Advertisement
Guest User

Minix

a guest
Sep 5th, 2018
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     .file   "/mnt/file.c"
  2.     .section    .rodata.cst4,"aM",@progbits,4
  3.     .align  4
  4. .LCPI0_0:
  5.     .long   3217031168              # float -1.5
  6. .LCPI0_1:
  7.     .long   1287568416              # float 1.0E+8
  8.     .text
  9.     .globl  main
  10.     .align  16, 0x90
  11.     .type   main,@function
  12. main:                                   # @main
  13.     .cfi_startproc
  14. # BB#0:
  15.     pushl   %ebp
  16. .Ltmp2:
  17.     .cfi_def_cfa_offset 8
  18. .Ltmp3:
  19.     .cfi_offset %ebp, -8
  20.     movl    %esp, %ebp
  21. .Ltmp4:
  22.     .cfi_def_cfa_register %ebp
  23.     andl    $-8, %esp
  24.     subl    $64, %esp
  25.     movl    12(%ebp), %eax
  26.     movl    8(%ebp), %ecx
  27.     movl    $0, 60(%esp)
  28.     movl    %ecx, 56(%esp)
  29.     movl    %eax, 52(%esp)
  30.     movl    $0, 44(%esp)
  31.     movl    $0, 40(%esp)
  32.     movl    $1072798105, 36(%esp)   # imm = 0x3FF19999
  33.     movl    $-1717986918, 32(%esp)  # imm = 0xFFFFFFFF9999999A
  34.     movl    $0, 28(%esp)
  35.     movl    $0, 24(%esp)
  36.     movl    $0, 48(%esp)
  37. .LBB0_1:                                # =>This Inner Loop Header: Depth=1
  38.     movl    48(%esp), %eax
  39.     movl    52(%esp), %ecx
  40.     movl    4(%ecx), %ecx
  41.     movl    %ecx, (%esp)
  42.     movl    %eax, 20(%esp)          # 4-byte Spill
  43.     calll   atoi
  44.     movl    20(%esp), %ecx          # 4-byte Reload
  45.     cmpl    %eax, %ecx
  46.     jae .LBB0_8
  47. # BB#2:                                 #   in Loop: Header=BB0_1 Depth=1
  48.     fldl    32(%esp)
  49.     flds    .LCPI0_0
  50.     fmulp   %st(1)
  51.     fstl    32(%esp)
  52.     fldl    24(%esp)
  53.     faddp   %st(1)
  54.     fstl    24(%esp)
  55.     fabs
  56.     fldl    40(%esp)
  57.     faddp   %st(1)
  58.     fstpl   40(%esp)
  59.     fldl    24(%esp)
  60.     flds    .LCPI0_1
  61.     fxch    %st(1)
  62.     fucompp
  63.     fnstsw  %ax
  64.                                         # implicit-def: ECX
  65.     movw    %ax, %cx
  66.     movb    %ch, %dl
  67.     movb    %dl, %ah
  68.     sahf
  69.     jbe .LBB0_4
  70.     jmp .LBB0_3
  71. .LBB0_3:                                #   in Loop: Header=BB0_1 Depth=1
  72.     movl    $0, 28(%esp)
  73.     movl    $0, 24(%esp)
  74. .LBB0_4:                                #   in Loop: Header=BB0_1 Depth=1
  75.     fldl    32(%esp)
  76.     flds    .LCPI0_1
  77.     fxch    %st(1)
  78.     fucompp
  79.     fnstsw  %ax
  80.                                         # implicit-def: ECX
  81.     movw    %ax, %cx
  82.     movb    %ch, %dl
  83.     movb    %dl, %ah
  84.     sahf
  85.     jbe .LBB0_6
  86.     jmp .LBB0_5
  87. .LBB0_5:                                #   in Loop: Header=BB0_1 Depth=1
  88.     movl    $1072798105, 36(%esp)   # imm = 0x3FF19999
  89.     movl    $-1717986918, 32(%esp)  # imm = 0xFFFFFFFF9999999A
  90. .LBB0_6:                                #   in Loop: Header=BB0_1 Depth=1
  91.     jmp .LBB0_7
  92. .LBB0_7:                                #   in Loop: Header=BB0_1 Depth=1
  93.     movl    48(%esp), %eax
  94.     addl    $1, %eax
  95.     movl    %eax, 48(%esp)
  96.     jmp .LBB0_1
  97. .LBB0_8:
  98.     leal    .L.str, %eax
  99.     fldl    40(%esp)
  100.     movl    %esp, %ecx
  101.     fstpl   4(%ecx)
  102.     movl    $.L.str, (%ecx)
  103.     movl    %eax, 16(%esp)          # 4-byte Spill
  104.     calll   printf
  105.     movl    $0, %ecx
  106.     movl    %eax, 12(%esp)          # 4-byte Spill
  107.     movl    %ecx, %eax
  108.     movl    %ebp, %esp
  109.     popl    %ebp
  110.     ret
  111. .Ltmp5:
  112.     .size   main, .Ltmp5-main
  113.     .cfi_endproc
  114.  
  115.     .type   .L.str,@object          # @.str
  116.     .section    .rodata.str1.1,"aMS",@progbits,1
  117. .L.str:
  118.     .asciz  "%f\n"
  119.     .size   .L.str, 4
  120.  
  121.  
  122.     .ident  "clang version 3.4 (branches/release_34)"
  123.     .section    ".note.GNU-stack","",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement