Advertisement
Guest User

Untitled

a guest
Dec 26th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ARM 6.37 KB | None | 0 0
  1.     .text
  2.     .file   "snake.cpp"
  3.     .globl  main                    ; -- Begin function main
  4.     .p2align    2
  5.     .type   main,@function
  6. main:                                   ; @main
  7. ; %bb.0:
  8.     addi    csp, csp, -120
  9.     sw  c1, 116(csp)
  10.     sw  c2, 112(csp)
  11.     sw  c3, 108(csp)
  12.     sw  c4, 104(csp)
  13.     sw  c5, 100(csp)
  14.     sw  c6, 96(csp)
  15.     sw  c7, 92(csp)
  16.     sw  c8, 88(csp)
  17.     sw  c9, 84(csp)
  18.     sw  c10, 80(csp)
  19.     sw  c11, 76(csp)
  20.     sw  c12, 72(csp)
  21.     addi    cfp, csp, 120
  22.     ori c20, c0, 3111
  23.     sh  c20, -112(cfp)
  24.     ori c30, c0, 12
  25.     ori c2, c0, 20
  26.     ori c20, c0, 1
  27.     addi    c21, cfp, -112
  28.     ori c21, c21, 1
  29.     sw  c21, -116(cfp)
  30.     seti    _ms
  31.     ori c22, c0, _ms
  32.     seti    _new_uart_recieved
  33.     ori c23, c0, _new_uart_recieved
  34.     seti    0
  35.     ori c24, c0, 65528
  36.     ori c25, c0, 114
  37.     ori c13, c0, 97
  38.     ori c14, c0, 255
  39.     ori c15, c0, 100
  40.     ori c26, c0, 119
  41.     ori c27, c0, 115
  42.     ori c28, c0, 201
  43.     ori c29, c0, 79
  44.     ori c31, c0, 24
  45.     ori c12, c0, 2
  46.     seti    _ZL7_seed_y
  47.     ori c1, c0, _ZL7_seed_y
  48.     addi    c4, c20, 0
  49.     addi    c5, c0, 0
  50.                                         ; implicit-def: $r3
  51.     b   .LBB6_2
  52. .LBB6_1:                                ;   in Loop: Header=BB6_2 Depth=1
  53.     andi    c21, c3, 255
  54.     shli    c21, c21, 1
  55.     addi    c8, cfp, -112
  56.     add c21, c8, c21
  57.     sb  c7, 1(c21)
  58.     sb  c6, 0(c21)
  59. .LBB6_2:                                ; =>This Loop Header: Depth=1
  60.                                         ;     Child Loop BB6_11 Depth 2
  61.                                         ;     Child Loop BB6_27 Depth 2
  62.     lw  c6, 0(c22)
  63.     b   .LBB6_11
  64. .LBB6_3:                                ;   in Loop: Header=BB6_11 Depth=2
  65.     lbu c7, 0(c24)
  66.     bg  c7, c25, .LBB6_7
  67. ; %bb.4:                                ;   in Loop: Header=BB6_11 Depth=2
  68.     beq c7, c13, .LBB6_6
  69. ; %bb.5:                                ;   in Loop: Header=BB6_11 Depth=2
  70.     beq c7, c15, .LBB6_6
  71.     b   .LBB6_12
  72. .LBB6_6:                                ;   in Loop: Header=BB6_11 Depth=2
  73.     addi    c4, c14, 0
  74.     addi    c5, c0, 0
  75.     b   .LBB6_12
  76. .LBB6_7:                                ;   in Loop: Header=BB6_11 Depth=2
  77.     beq c7, c26, .LBB6_10
  78. ; %bb.8:                                ;   in Loop: Header=BB6_11 Depth=2
  79.     bne c7, c27, .LBB6_12
  80. ; %bb.9:                                ;   in Loop: Header=BB6_11 Depth=2
  81.     addi    c4, c0, 0
  82.     addi    c5, c14, 0
  83.     b   .LBB6_12
  84. .LBB6_10:                               ;   in Loop: Header=BB6_11 Depth=2
  85.     addi    c4, c0, 0
  86.     addi    c5, c20, 0
  87.     b   .LBB6_12
  88. .LBB6_11:                               ;   Parent Loop BB6_2 Depth=1
  89.                                         ; =>  This Inner Loop Header: Depth=2
  90.     lw  c7, 0(c23)
  91.     sw  c20, 0(c23)
  92.     bne c7, c0, .LBB6_12
  93.     b   .LBB6_3
  94. .LBB6_12:                               ;   in Loop: Header=BB6_11 Depth=2
  95.     lw  c7, 0(c22)
  96.     sub c7, c6, c7
  97.     bgu c28, c7, .LBB6_11
  98. ; %bb.13:                               ;   in Loop: Header=BB6_2 Depth=1
  99.     andi    c8, c3, 255
  100.     shli    c6, c8, 1
  101.     addi    c7, cfp, -112
  102.     add c7, c7, c6
  103.     lb  c6, 0(c7)
  104.     add c6, c6, c4
  105.     andi    c9, c6, 255
  106.     bgu c9, c29, .LBB6_31
  107. ; %bb.14:                               ;   in Loop: Header=BB6_2 Depth=1
  108.     lb  c7, 1(c7)
  109.     add c7, c7, c5
  110.     andi    c9, c7, 255
  111.     bgu c9, c31, .LBB6_31
  112. ; %bb.15:                               ;   in Loop: Header=BB6_2 Depth=1
  113.     muli    c9, c9, 160
  114.     andi    c10, c6, 255
  115.     shli    c11, c10, 1
  116.     seti    0
  117.     ori c11, c11, 61440
  118.     add c9, c11, c9
  119.     shli    c9, c9, 16
  120.     shri    c9, c9, 16
  121.     sb  c12, 0(c9)
  122.     andi    c9, c2, 255
  123.     bne c10, c9, .LBB6_22
  124. ; %bb.16:                               ;   in Loop: Header=BB6_2 Depth=1
  125.     andi    c9, c30, 255
  126.     andi    c10, c7, 255
  127.     bne c10, c9, .LBB6_22
  128. ; %bb.17:                               ;   in Loop: Header=BB6_2 Depth=1
  129.     lw  c30, 0(c1)
  130.     shli    c2, c30, 2
  131.     xor c30, c2, c30
  132.     shri    c2, c30, 7
  133.     xor c2, c2, c30
  134.     shli    c30, c2, 7
  135.     xor c30, c30, c2
  136.     shli    c8, c30, 2
  137.     xor c30, c8, c30
  138.     shri    c8, c30, 7
  139.     xor c30, c8, c30
  140.     shli    c8, c30, 7
  141.     xor c8, c8, c30
  142.     sw  c8, 0(c1)
  143.     andi    c8, c30, 31
  144.     addi    c30, c8, 231
  145.     bgu c8, c31, .LBB6_19
  146. ; %bb.18:                               ;   in Loop: Header=BB6_2 Depth=1
  147.     addi    c30, c8, 0
  148. .LBB6_19:                               ;   in Loop: Header=BB6_2 Depth=1
  149.     andi    c8, c2, 127
  150.     addi    c2, c8, 176
  151.     bgu c8, c29, .LBB6_21
  152. ; %bb.20:                               ;   in Loop: Header=BB6_2 Depth=1
  153.     addi    c2, c8, 0
  154. .LBB6_21:                               ;   in Loop: Header=BB6_2 Depth=1
  155.     addi    c3, c3, 1
  156.     b   .LBB6_1
  157. .LBB6_22:                               ;   in Loop: Header=BB6_2 Depth=1
  158.     lbu c9, -112(cfp)
  159.     bgu c9, c29, .LBB6_25
  160. ; %bb.23:                               ;   in Loop: Header=BB6_2 Depth=1
  161.     lbu c10, -111(cfp)
  162.     bgu c10, c31, .LBB6_25
  163. ; %bb.24:                               ;   in Loop: Header=BB6_2 Depth=1
  164.     muli    c10, c10, 160
  165.     shli    c9, c9, 1
  166.     seti    0
  167.     ori c9, c9, 61440
  168.     add c9, c9, c10
  169.     shli    c9, c9, 16
  170.     shri    c9, c9, 16
  171.     sb  c0, 0(c9)
  172. .LBB6_25:                               ;   in Loop: Header=BB6_2 Depth=1
  173.     andi    c9, c3, 255
  174.     beq c9, c0, .LBB6_30
  175. ; %bb.26:                               ; %.preheader1
  176.                                         ;   in Loop: Header=BB6_2 Depth=1
  177.     lw  c9, -116(cfp)
  178.     addi    c10, c0, 0
  179. .LBB6_27:                               ;   Parent Loop BB6_2 Depth=1
  180.                                         ; =>  This Inner Loop Header: Depth=2
  181.     lhu c11, 1(c9)
  182.     sh  c11, -1(c9)
  183.     andi    c21, c6, 255
  184.     shri    c11, c11, 8
  185.     bne c21, c11, .LBB6_29
  186. ; %bb.28:                               ;   in Loop: Header=BB6_27 Depth=2
  187.     andi    c21, c7, 255
  188.     lbu c11, 0(c9)
  189.     bne c11, c21, .LBB6_29
  190.     b   .LBB6_31
  191. .LBB6_29:                               ;   in Loop: Header=BB6_27 Depth=2
  192.     addi    c10, c10, 1
  193.     addi    c9, c9, 2
  194.     bgu c8, c10, .LBB6_27
  195.     b   .LBB6_1
  196. .LBB6_30:                               ;   in Loop: Header=BB6_2 Depth=1
  197.     addi    c3, c0, 0
  198.     b   .LBB6_1
  199. .LBB6_31:
  200.     seti    240
  201.     ori c20, c0, 240
  202.     ori c21, c0, 125
  203.     addi    c22, c0, 0
  204.     addi    c23, c0, 0
  205. .LBB6_32:                               ; =>This Inner Loop Header: Depth=1
  206.     seti    0
  207.     addi    c23, c23, 61440
  208.     shli    c23, c23, 16
  209.     shri    c23, c23, 16
  210.     sw  c20, 0(c23)
  211.     addi    c23, c22, 4
  212.     shli    c22, c23, 16
  213.     shri    c22, c22, 16
  214.     shri    c24, c22, 5
  215.     bgu c21, c24, .LBB6_32
  216. .LBB6_33:                               ; =>This Inner Loop Header: Depth=1
  217.     b   .LBB6_33
  218. .Lfunc_end6:
  219.     .size   main, .Lfunc_end6-main
  220.                                         ; -- End function
  221.     .type   _ZL7_seed_y,@object     ; @_ZL7_seed_y
  222.     .data
  223.     .p2align    2
  224. _ZL7_seed_y:
  225.     .word   127342                  ; 0x1f16e
  226.     .size   _ZL7_seed_y, 4
  227.  
  228.  
  229.     .ident  "clang version 7.0.0 (tags/RELEASE_700/final)"
  230.     .section    ".note.GNU-stack","",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement