PikMike

Untitled

Feb 11th, 2017
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     .file   "solution1.cpp"
  2.     .section .rdata,"dr"
  3.     .align 4
  4. _ZL1K:
  5.     .long   4194304
  6.     .def    __main; .scl    2;  .type   32; .endef
  7. .LC0:
  8.     .ascii "%d\0"
  9.     .text
  10.     .globl  main
  11.     .def    main;   .scl    2;  .type   32; .endef
  12.     .seh_proc   main
  13. main:
  14. .LFB15:
  15.     pushq   %rbp
  16.     .seh_pushreg    %rbp
  17.     movq    %rsp, %rbp
  18.     .seh_setframe   %rbp, 0
  19.     subq    $48, %rsp
  20.     .seh_stackalloc 48
  21.     .seh_endprologue
  22.     call    __main
  23.     leaq    -8(%rbp), %rax
  24.     movq    %rax, %rdx
  25.     leaq    .LC0(%rip), %rcx
  26.     call    scanf
  27.     movl    -8(%rbp), %eax
  28.     cltd
  29.     shrl    $10, %edx
  30.     addl    %edx, %eax
  31.     andl    $4194303, %eax
  32.     subl    %edx, %eax
  33.     movl    %eax, -4(%rbp)
  34.     movl    -4(%rbp), %eax
  35.     movl    %eax, %edx
  36.     leaq    .LC0(%rip), %rcx
  37.     call    printf
  38.     movl    $0, %eax
  39.     addq    $48, %rsp
  40.     popq    %rbp
  41.     ret
  42.     .seh_endproc
  43.     .ident  "GCC: (tdm64-1) 5.1.0"
  44.     .def    scanf;  .scl    2;  .type   32; .endef
  45.     .def    printf; .scl    2;  .type   32; .endef
Add Comment
Please, Sign In to add comment