Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .LC0:
  2.  
  3.     .string "%d %d %d %d\n"
  4.  
  5.     .text
  6.  
  7.     .globl  main
  8.  
  9.     .type   main, @function
  10.  
  11. main:
  12.  
  13. .LFB0:
  14.  
  15.     .cfi_startproc
  16.  
  17.     pushl   %ebp
  18.  
  19.     .cfi_def_cfa_offset 8
  20.  
  21.     .cfi_offset 5, -8
  22.  
  23.     movl    %esp, %ebp
  24.  
  25.     .cfi_def_cfa_register 5
  26.  
  27.     andl    $-16, %esp
  28.  
  29.     subl    $64, %esp
  30.  
  31.     movl    $0, 56(%esp)
  32.  
  33.     movl    56(%esp), %eax
  34.  
  35.     movl    %eax, 52(%esp)
  36.  
  37.     movl    52(%esp), %eax
  38.  
  39.     movl    %eax, 48(%esp)
  40.  
  41.     movl    48(%esp), %eax
  42.  
  43.     movl    %eax, 44(%esp)
  44.  
  45.     movl    $0, 60(%esp)
  46.  
  47.     jmp .L2
  48.  
  49. .L9:
  50.  
  51.     movl    12(%ebp), %eax
  52.  
  53.     addl    $4, %eax
  54.  
  55.     movl    (%eax), %edx
  56.  
  57.     movl    60(%esp), %eax
  58.  
  59.     addl    %edx, %eax
  60.  
  61.     movzbl  (%eax), %eax
  62.  
  63.     movsbl  %al, %eax
  64.  
  65.     cmpl    $67, %eax
  66.  
  67.     je  .L5
  68.  
  69.     cmpl    $67, %eax
  70.  
  71.     jg  .L8
  72.  
  73.     cmpl    $65, %eax
  74.  
  75.     je  .L4
  76.  
  77.     jmp .L3
  78.  
  79. .L8:
  80.  
  81.     cmpl    $71, %eax
  82.  
  83.     je  .L6
  84.  
  85.     cmpl    $84, %eax
  86.  
  87.     je  .L7
  88.  
  89.     jmp .L3
  90.  
  91. .L4:
  92.  
  93.     addl    $1, 44(%esp)
  94.  
  95.     jmp .L3
  96.  
  97. .L6:
  98.  
  99.     addl    $1, 48(%esp)
  100.  
  101.     jmp .L3
  102.  
  103. .L5:
  104.  
  105.     addl    $1, 52(%esp)
  106.  
  107.     jmp .L3
  108.  
  109. .L7:
  110.  
  111.     addl    $1, 56(%esp)
  112.  
  113.     nop
  114.  
  115. .L3:
  116.  
  117.     addl    $1, 60(%esp)
  118.  
  119. .L2:
  120.  
  121.     movl    12(%ebp), %eax
  122.  
  123.     addl    $4, %eax
  124.  
  125.     movl    (%eax), %edx
  126.  
  127.     movl    60(%esp), %eax
  128.  
  129.     addl    %edx, %eax
  130.  
  131.     movzbl  (%eax), %eax
  132.  
  133.     testb   %al, %al
  134.  
  135.     jne .L9
  136.  
  137.     movl    56(%esp), %eax
  138.  
  139.     movl    %eax, 16(%esp)
  140.  
  141.     movl    48(%esp), %eax
  142.  
  143.     movl    %eax, 12(%esp)
  144.  
  145.     movl    52(%esp), %eax
  146.  
  147.     movl    %eax, 8(%esp)
  148.  
  149.     movl    44(%esp), %eax
  150.  
  151.     movl    %eax, 4(%esp)
  152.  
  153.     movl    $.LC0, (%esp)
  154.  
  155.     call    printf
  156.  
  157.     movl    $0, %eax
  158.  
  159.     leave
  160.  
  161.     .cfi_restore 5
  162.  
  163.     .cfi_def_cfa 4, 4
  164.  
  165.     ret
  166.  
  167.     .cfi_endproc
  168.  
  169. .LFE0:
  170.  
  171.     .size   main, .-main
  172.  
  173.     .ident  "GCC: (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2"
  174.  
  175.     .section    .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement