Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .text
- .file "snake.cpp"
- .globl main ; -- Begin function main
- .p2align 2
- .type main,@function
- main: ; @main
- ; %bb.0:
- addi csp, csp, -120
- sw c1, 116(csp)
- sw c2, 112(csp)
- sw c3, 108(csp)
- sw c4, 104(csp)
- sw c5, 100(csp)
- sw c6, 96(csp)
- sw c7, 92(csp)
- sw c8, 88(csp)
- sw c9, 84(csp)
- sw c10, 80(csp)
- sw c11, 76(csp)
- sw c12, 72(csp)
- addi cfp, csp, 120
- ori c20, c0, 3111
- sh c20, -112(cfp)
- ori c30, c0, 12
- ori c2, c0, 20
- ori c20, c0, 1
- addi c21, cfp, -112
- ori c21, c21, 1
- sw c21, -116(cfp)
- seti _ms
- ori c22, c0, _ms
- seti _new_uart_recieved
- ori c23, c0, _new_uart_recieved
- seti 0
- ori c24, c0, 65528
- ori c25, c0, 114
- ori c13, c0, 97
- ori c14, c0, 255
- ori c15, c0, 100
- ori c26, c0, 119
- ori c27, c0, 115
- ori c28, c0, 201
- ori c29, c0, 79
- ori c31, c0, 24
- ori c12, c0, 2
- seti _ZL7_seed_y
- ori c1, c0, _ZL7_seed_y
- addi c4, c20, 0
- addi c5, c0, 0
- ; implicit-def: $r3
- b .LBB6_2
- .LBB6_1: ; in Loop: Header=BB6_2 Depth=1
- andi c21, c3, 255
- shli c21, c21, 1
- addi c8, cfp, -112
- add c21, c8, c21
- sb c7, 1(c21)
- sb c6, 0(c21)
- .LBB6_2: ; =>This Loop Header: Depth=1
- ; Child Loop BB6_11 Depth 2
- ; Child Loop BB6_27 Depth 2
- lw c6, 0(c22)
- b .LBB6_11
- .LBB6_3: ; in Loop: Header=BB6_11 Depth=2
- lbu c7, 0(c24)
- bg c7, c25, .LBB6_7
- ; %bb.4: ; in Loop: Header=BB6_11 Depth=2
- beq c7, c13, .LBB6_6
- ; %bb.5: ; in Loop: Header=BB6_11 Depth=2
- beq c7, c15, .LBB6_6
- b .LBB6_12
- .LBB6_6: ; in Loop: Header=BB6_11 Depth=2
- addi c4, c14, 0
- addi c5, c0, 0
- b .LBB6_12
- .LBB6_7: ; in Loop: Header=BB6_11 Depth=2
- beq c7, c26, .LBB6_10
- ; %bb.8: ; in Loop: Header=BB6_11 Depth=2
- bne c7, c27, .LBB6_12
- ; %bb.9: ; in Loop: Header=BB6_11 Depth=2
- addi c4, c0, 0
- addi c5, c14, 0
- b .LBB6_12
- .LBB6_10: ; in Loop: Header=BB6_11 Depth=2
- addi c4, c0, 0
- addi c5, c20, 0
- b .LBB6_12
- .LBB6_11: ; Parent Loop BB6_2 Depth=1
- ; => This Inner Loop Header: Depth=2
- lw c7, 0(c23)
- sw c20, 0(c23)
- bne c7, c0, .LBB6_12
- b .LBB6_3
- .LBB6_12: ; in Loop: Header=BB6_11 Depth=2
- lw c7, 0(c22)
- sub c7, c6, c7
- bgu c28, c7, .LBB6_11
- ; %bb.13: ; in Loop: Header=BB6_2 Depth=1
- andi c8, c3, 255
- shli c6, c8, 1
- addi c7, cfp, -112
- add c7, c7, c6
- lb c6, 0(c7)
- add c6, c6, c4
- andi c9, c6, 255
- bgu c9, c29, .LBB6_31
- ; %bb.14: ; in Loop: Header=BB6_2 Depth=1
- lb c7, 1(c7)
- add c7, c7, c5
- andi c9, c7, 255
- bgu c9, c31, .LBB6_31
- ; %bb.15: ; in Loop: Header=BB6_2 Depth=1
- muli c9, c9, 160
- andi c10, c6, 255
- shli c11, c10, 1
- seti 0
- ori c11, c11, 61440
- add c9, c11, c9
- shli c9, c9, 16
- shri c9, c9, 16
- sb c12, 0(c9)
- andi c9, c2, 255
- bne c10, c9, .LBB6_22
- ; %bb.16: ; in Loop: Header=BB6_2 Depth=1
- andi c9, c30, 255
- andi c10, c7, 255
- bne c10, c9, .LBB6_22
- ; %bb.17: ; in Loop: Header=BB6_2 Depth=1
- lw c30, 0(c1)
- shli c2, c30, 2
- xor c30, c2, c30
- shri c2, c30, 7
- xor c2, c2, c30
- shli c30, c2, 7
- xor c30, c30, c2
- shli c8, c30, 2
- xor c30, c8, c30
- shri c8, c30, 7
- xor c30, c8, c30
- shli c8, c30, 7
- xor c8, c8, c30
- sw c8, 0(c1)
- andi c8, c30, 31
- addi c30, c8, 231
- bgu c8, c31, .LBB6_19
- ; %bb.18: ; in Loop: Header=BB6_2 Depth=1
- addi c30, c8, 0
- .LBB6_19: ; in Loop: Header=BB6_2 Depth=1
- andi c8, c2, 127
- addi c2, c8, 176
- bgu c8, c29, .LBB6_21
- ; %bb.20: ; in Loop: Header=BB6_2 Depth=1
- addi c2, c8, 0
- .LBB6_21: ; in Loop: Header=BB6_2 Depth=1
- addi c3, c3, 1
- b .LBB6_1
- .LBB6_22: ; in Loop: Header=BB6_2 Depth=1
- lbu c9, -112(cfp)
- bgu c9, c29, .LBB6_25
- ; %bb.23: ; in Loop: Header=BB6_2 Depth=1
- lbu c10, -111(cfp)
- bgu c10, c31, .LBB6_25
- ; %bb.24: ; in Loop: Header=BB6_2 Depth=1
- muli c10, c10, 160
- shli c9, c9, 1
- seti 0
- ori c9, c9, 61440
- add c9, c9, c10
- shli c9, c9, 16
- shri c9, c9, 16
- sb c0, 0(c9)
- .LBB6_25: ; in Loop: Header=BB6_2 Depth=1
- andi c9, c3, 255
- beq c9, c0, .LBB6_30
- ; %bb.26: ; %.preheader1
- ; in Loop: Header=BB6_2 Depth=1
- lw c9, -116(cfp)
- addi c10, c0, 0
- .LBB6_27: ; Parent Loop BB6_2 Depth=1
- ; => This Inner Loop Header: Depth=2
- lhu c11, 1(c9)
- sh c11, -1(c9)
- andi c21, c6, 255
- shri c11, c11, 8
- bne c21, c11, .LBB6_29
- ; %bb.28: ; in Loop: Header=BB6_27 Depth=2
- andi c21, c7, 255
- lbu c11, 0(c9)
- bne c11, c21, .LBB6_29
- b .LBB6_31
- .LBB6_29: ; in Loop: Header=BB6_27 Depth=2
- addi c10, c10, 1
- addi c9, c9, 2
- bgu c8, c10, .LBB6_27
- b .LBB6_1
- .LBB6_30: ; in Loop: Header=BB6_2 Depth=1
- addi c3, c0, 0
- b .LBB6_1
- .LBB6_31:
- seti 240
- ori c20, c0, 240
- ori c21, c0, 125
- addi c22, c0, 0
- addi c23, c0, 0
- .LBB6_32: ; =>This Inner Loop Header: Depth=1
- seti 0
- addi c23, c23, 61440
- shli c23, c23, 16
- shri c23, c23, 16
- sw c20, 0(c23)
- addi c23, c22, 4
- shli c22, c23, 16
- shri c22, c22, 16
- shri c24, c22, 5
- bgu c21, c24, .LBB6_32
- .LBB6_33: ; =>This Inner Loop Header: Depth=1
- b .LBB6_33
- .Lfunc_end6:
- .size main, .Lfunc_end6-main
- ; -- End function
- .type _ZL7_seed_y,@object ; @_ZL7_seed_y
- .data
- .p2align 2
- _ZL7_seed_y:
- .word 127342 ; 0x1f16e
- .size _ZL7_seed_y, 4
- .ident "clang version 7.0.0 (tags/RELEASE_700/final)"
- .section ".note.GNU-stack","",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement