Advertisement
PikMike

Untitled

Feb 11th, 2017
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     .file   "solution.cpp"
  2.     .section .rdata,"dr"
  3.     .align 4
  4. _ZL1K:
  5.     .long   1337420228
  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), %ecx
  28.     movl    $1724097603, %edx
  29.     movl    %ecx, %eax
  30.     imull   %edx
  31.     sarl    $29, %edx
  32.     movl    %ecx, %eax
  33.     sarl    $31, %eax
  34.     subl    %eax, %edx
  35.     movl    %edx, %eax
  36.     movl    %eax, -4(%rbp)
  37.     movl    -4(%rbp), %eax
  38.     imull   $1337420228, %eax, %eax
  39.     subl    %eax, %ecx
  40.     movl    %ecx, %eax
  41.     movl    %eax, -4(%rbp)
  42.     movl    -4(%rbp), %eax
  43.     movl    %eax, %edx
  44.     leaq    .LC0(%rip), %rcx
  45.     call    printf
  46.     movl    $0, %eax
  47.     addq    $48, %rsp
  48.     popq    %rbp
  49.     ret
  50.     .seh_endproc
  51.     .ident  "GCC: (tdm64-1) 5.1.0"
  52.     .def    scanf;  .scl    2;  .type   32; .endef
  53.     .def    printf; .scl    2;  .type   32; .endef
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement