You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
914 B

.text
.globl doubleWhile
.p2align 2
doubleWhile:
.L.doubleWhile.0:
stp x29, x30, [sp, #-16]!
mov x29, sp
mov w8, #7
mov w9, #5
b .L.doubleWhile.1
.L.doubleWhile.1:
mov w10, #100
cmp w9, w10
b.lt .L.doubleWhile.2
b .L.doubleWhile.3
.L.doubleWhile.2:
mov w10, #30
add w10, w9, w10
mov w9, w8
b .L.doubleWhile.4
.L.doubleWhile.3:
mov w0, w8
ldp x29, x30, [sp], #16
ret
.L.doubleWhile.4:
mov w8, #100
cmp w9, w8
b.lt .L.doubleWhile.5
b .L.doubleWhile.6
.L.doubleWhile.5:
mov w8, #6
add w8, w9, w8
mov w9, w8
b .L.doubleWhile.4
.L.doubleWhile.6:
mov w8, #100
sub w8, w9, w8
mov w9, w10
b .L.doubleWhile.1
.text
.globl main
.p2align 2
main:
.L.main.0:
stp x29, x30, [sp, #-16]!
mov x29, sp
bl doubleWhile
mov w8, w0
mov w0, w8
ldp x29, x30, [sp], #16
ret