text
stringlengths 197
24.1M
|
---|
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global create_qnode
.type create_qnode, %function
create_qnode:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str w0, [sp, 28]
mov x0, 16
bl malloc
str x0, [sp, 40]
ldr x0, [sp, 40]
ldr w1, [sp, 28]
str w1, [x0]
ldr x0, [sp, 40]
str xzr, [x0, 8]
ldr x0, [sp, 40]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size create_qnode, .-create_qnode
.align 2
.global create_Queue
.type create_Queue, %function
create_Queue:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
mov x0, 16
bl malloc
str x0, [sp, 24]
ldr x0, [sp, 24]
str xzr, [x0, 8]
ldr x0, [sp, 24]
ldr x1, [x0, 8]
ldr x0, [sp, 24]
str x1, [x0]
ldr x0, [sp, 24]
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size create_Queue, .-create_Queue
.align 2
.global enQueue
.type enQueue, %function
enQueue:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
str w1, [sp, 20]
ldr w0, [sp, 20]
bl create_qnode
str x0, [sp, 40]
ldr x0, [sp, 24]
ldr x0, [x0, 8]
cmp x0, 0
bne .L6
ldr x0, [sp, 24]
ldr x1, [sp, 40]
str x1, [x0, 8]
ldr x0, [sp, 24]
ldr x1, [x0, 8]
ldr x0, [sp, 24]
str x1, [x0]
b .L5
.L6:
ldr x0, [sp, 24]
ldr x0, [x0, 8]
ldr x1, [sp, 40]
str x1, [x0, 8]
ldr x0, [sp, 24]
ldr x1, [sp, 40]
str x1, [x0, 8]
.L5:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size enQueue, .-enQueue
.align 2
.global is_emptyq
.type is_emptyq, %function
is_emptyq:
.LFB9:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
ldr x0, [sp, 8]
ldr x0, [x0]
cmp x0, 0
bne .L9
mov w0, 1
b .L10
.L9:
mov w0, 0
.L10:
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size is_emptyq, .-is_emptyq
.align 2
.global deQueue
.type deQueue, %function
deQueue:
.LFB10:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
bl is_emptyq
cmp w0, 0
bne .L12
ldr x0, [sp, 24]
ldr x0, [x0]
str x0, [sp, 40]
ldr x0, [sp, 40]
ldr w0, [x0]
str w0, [sp, 36]
ldr x0, [sp, 24]
ldr x0, [x0]
ldr x1, [x0, 8]
ldr x0, [sp, 24]
str x1, [x0]
ldr x0, [sp, 24]
ldr x0, [x0]
cmp x0, 0
bne .L13
ldr x0, [sp, 24]
str xzr, [x0, 8]
.L13:
ldr x0, [sp, 40]
bl free
ldr w0, [sp, 36]
b .L11
.L12:
.L11:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size deQueue, .-deQueue
.align 2
.global create_stack
.type create_stack, %function
create_stack:
.LFB11:
.cfi_startproc
mov x0, 0
ret
.cfi_endproc
.LFE11:
.size create_stack, .-create_stack
.align 2
.global create_node
.type create_node, %function
create_node:
.LFB12:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str w0, [sp, 28]
mov x0, 16
bl malloc
str x0, [sp, 40]
ldr x0, [sp, 40]
ldr w1, [sp, 28]
str w1, [x0]
ldr x0, [sp, 40]
str xzr, [x0, 8]
ldr x0, [sp, 40]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE12:
.size create_node, .-create_node
.align 2
.global push
.type push, %function
push:
.LFB13:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
str w1, [sp, 20]
ldr x0, [sp, 24]
ldr x0, [x0]
cmp x0, 0
bne .L20
ldr w0, [sp, 20]
bl create_node
mov x1, x0
ldr x0, [sp, 24]
str x1, [x0]
b .L19
.L20:
ldr w0, [sp, 20]
bl create_node
str x0, [sp, 40]
ldr x0, [sp, 24]
ldr x1, [x0]
ldr x0, [sp, 40]
str x1, [x0, 8]
ldr x0, [sp, 24]
ldr x1, [sp, 40]
str x1, [x0]
nop
.L19:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE13:
.size push, .-push
.align 2
.global is_empty
.type is_empty, %function
is_empty:
.LFB14:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
ldr x0, [sp, 8]
cmp x0, 0
bne .L23
mov w0, 1
b .L24
.L23:
mov w0, 0
.L24:
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE14:
.size is_empty, .-is_empty
.align 2
.global pop
.type pop, %function
pop:
.LFB15:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
ldr x0, [x0]
bl is_empty
cmp w0, 0
bne .L25
ldr x0, [sp, 24]
ldr x0, [x0]
str x0, [sp, 40]
ldr x0, [sp, 24]
ldr x0, [x0]
ldr x1, [x0, 8]
ldr x0, [sp, 24]
str x1, [x0]
ldr x0, [sp, 40]
bl free
nop
.L25:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE15:
.size pop, .-pop
.align 2
.global top
.type top, %function
top:
.LFB16:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
ldr x0, [x0]
bl is_empty
cmp w0, 0
bne .L28
ldr x0, [sp, 24]
ldr x0, [x0]
ldr w0, [x0]
str w0, [sp, 44]
ldr w0, [sp, 44]
b .L27
.L28:
.L27:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE16:
.size top, .-top
.section .rodata
.align 3
.LC0:
.string "%d"
.text
.align 2
.global scan_arr
.type scan_arr, %function
scan_arr:
.LFB17:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
str wzr, [sp, 44]
b .L31
.L32:
ldrsw x0, [sp, 44]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L31:
ldr w0, [sp, 44]
cmp w0, 7
ble .L32
nop
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE17:
.size scan_arr, .-scan_arr
.section .rodata
.align 3
.LC1:
.string "%d "
.text
.align 2
.global print_arr
.type print_arr, %function
print_arr:
.LFB18:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
str wzr, [sp, 44]
b .L34
.L35:
ldrsw x0, [sp, 44]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w0, [x0]
mov w1, w0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L34:
ldr w0, [sp, 44]
cmp w0, 7
ble .L35
mov w0, 10
bl putchar
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE18:
.size print_arr, .-print_arr
.align 2
.global scan_mat
.type scan_mat, %function
scan_mat:
.LFB19:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
str wzr, [sp, 40]
b .L37
.L40:
str wzr, [sp, 44]
b .L38
.L39:
ldrsw x0, [sp, 40]
lsl x0, x0, 3
ldr x1, [sp, 24]
add x0, x1, x0
ldr x1, [x0]
ldrsw x0, [sp, 44]
lsl x0, x0, 2
add x0, x1, x0
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L38:
ldr w0, [sp, 44]
cmp w0, 7
ble .L39
ldr w0, [sp, 40]
add w0, w0, 1
str w0, [sp, 40]
.L37:
ldr w0, [sp, 40]
cmp w0, 7
ble .L40
nop
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE19:
.size scan_mat, .-scan_mat
.align 2
.global print_mat
.type print_mat, %function
print_mat:
.LFB20:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
str wzr, [sp, 40]
b .L42
.L45:
str wzr, [sp, 44]
b .L43
.L44:
ldrsw x0, [sp, 40]
lsl x0, x0, 3
ldr x1, [sp, 24]
add x0, x1, x0
ldr x1, [x0]
ldrsw x0, [sp, 44]
lsl x0, x0, 2
add x0, x1, x0
ldr w0, [x0]
mov w1, w0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L43:
ldr w0, [sp, 44]
cmp w0, 7
ble .L44
mov w0, 10
bl putchar
ldr w0, [sp, 40]
add w0, w0, 1
str w0, [sp, 40]
.L42:
ldr w0, [sp, 40]
cmp w0, 7
ble .L45
nop
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE20:
.size print_mat, .-print_mat
.align 2
.global create
.type create, %function
create:
.LFB21:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -32
mov x0, 64
bl malloc
str x0, [sp, 40]
str wzr, [sp, 36]
b .L47
.L48:
ldrsw x0, [sp, 36]
lsl x0, x0, 3
ldr x1, [sp, 40]
add x19, x1, x0
mov x0, 32
bl malloc
str x0, [x19]
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L47:
ldr w0, [sp, 36]
cmp w0, 7
ble .L48
ldr x0, [sp, 40]
ldr x19, [sp, 16]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE21:
.size create, .-create
.align 2
.global find_index
.type find_index, %function
find_index:
.LFB22:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, 12]
str x1, [sp]
str wzr, [sp, 28]
b .L51
.L54:
ldrsw x0, [sp, 28]
lsl x0, x0, 2
ldr x1, [sp]
add x0, x1, x0
ldr w0, [x0]
ldr w1, [sp, 12]
cmp w1, w0
bne .L52
ldr w0, [sp, 28]
b .L53
.L52:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L51:
ldr w0, [sp, 28]
cmp w0, 7
ble .L54
mov w0, -1
.L53:
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE22:
.size find_index, .-find_index
.section .rodata
.align 3
.LC2:
.string "%d\t"
.text
.align 2
.global bfs_connected
.type bfs_connected, %function
bfs_connected:
.LFB23:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str w2, [sp, 28]
str x3, [sp, 16]
bl create_Queue
str x0, [sp, 72]
ldrsw x0, [sp, 28]
lsl x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
ldr w0, [x0]
mov w1, w0
ldr x0, [sp, 72]
bl enQueue
ldrsw x0, [sp, 28]
lsl x0, x0, 2
ldr x1, [sp, 16]
add x0, x1, x0
mov w1, 1
str w1, [x0]
b .L56
.L60:
ldr x0, [sp, 72]
bl deQueue
str w0, [sp, 64]
ldr x1, [sp, 40]
ldr w0, [sp, 64]
bl find_index
str w0, [sp, 68]
ldr w1, [sp, 64]
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
str wzr, [sp, 60]
b .L57
.L59:
ldrsw x0, [sp, 68]
lsl x0, x0, 3
ldr x1, [sp, 32]
add x0, x1, x0
ldr x1, [x0]
ldrsw x0, [sp, 60]
lsl x0, x0, 2
add x0, x1, x0
ldr w0, [x0]
cmp w0, 0
beq .L58
ldrsw x0, [sp, 60]
lsl x0, x0, 2
ldr x1, [sp, 16]
add x0, x1, x0
ldr w0, [x0]
cmp w0, 1
beq .L58
ldrsw x0, [sp, 60]
lsl x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
ldr w0, [x0]
mov w1, w0
ldr x0, [sp, 72]
bl enQueue
ldrsw x0, [sp, 60]
lsl x0, x0, 2
ldr x1, [sp, 16]
add x0, x1, x0
mov w1, 1
str w1, [x0]
.L58:
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L57:
ldr w0, [sp, 60]
cmp w0, 7
ble .L59
.L56:
ldr x0, [sp, 72]
bl is_emptyq
cmp w0, 0
beq .L60
mov w0, 10
bl putchar
nop
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE23:
.size bfs_connected, .-bfs_connected
.align 2
.global bfs
.type bfs, %function
bfs:
.LFB24:
.cfi_startproc
stp x29, x30, [sp, -96]!
.cfi_def_cfa_offset 96
.cfi_offset 29, -96
.cfi_offset 30, -88
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str w2, [sp, 28]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 88]
mov x1, 0
stp xzr, xzr, [sp, 56]
stp xzr, xzr, [sp, 72]
add x0, sp, 56
mov x3, x0
ldr w2, [sp, 28]
ldr x1, [sp, 32]
ldr x0, [sp, 40]
bl bfs_connected
str wzr, [sp, 52]
b .L62
.L64:
ldrsw x0, [sp, 52]
lsl x0, x0, 2
add x1, sp, 56
ldr w0, [x1, x0]
cmp w0, 0
bne .L63
add x0, sp, 56
mov x3, x0
ldr w2, [sp, 52]
ldr x1, [sp, 32]
ldr x0, [sp, 40]
bl bfs_connected
.L63:
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
.L62:
ldr w0, [sp, 52]
cmp w0, 7
ble .L64
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 88]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L65
bl __stack_chk_fail
.L65:
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE24:
.size bfs, .-bfs
.align 2
.global dfs_connected
.type dfs_connected, %function
dfs_connected:
.LFB25:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str w2, [sp, 28]
str x3, [sp, 16]
ldrsw x0, [sp, 28]
lsl x0, x0, 2
ldr x1, [sp, 16]
add x0, x1, x0
mov w1, 1
str w1, [x0]
ldrsw x0, [sp, 28]
lsl x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
ldr w0, [x0]
mov w1, w0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
str wzr, [sp, 60]
b .L67
.L69:
ldrsw x0, [sp, 28]
lsl x0, x0, 3
ldr x1, [sp, 32]
add x0, x1, x0
ldr x1, [x0]
ldrsw x0, [sp, 60]
lsl x0, x0, 2
add x0, x1, x0
ldr w0, [x0]
cmp w0, 1
bne .L68
ldrsw x0, [sp, 60]
lsl x0, x0, 2
ldr x1, [sp, 16]
add x0, x1, x0
ldr w0, [x0]
cmp w0, 0
bne .L68
ldr x3, [sp, 16]
ldr w2, [sp, 60]
ldr x1, [sp, 32]
ldr x0, [sp, 40]
bl dfs_connected
.L68:
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L67:
ldr w0, [sp, 60]
cmp w0, 7
ble .L69
nop
nop
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE25:
.size dfs_connected, .-dfs_connected
.align 2
.global dfs
.type dfs, %function
dfs:
.LFB26:
.cfi_startproc
stp x29, x30, [sp, -96]!
.cfi_def_cfa_offset 96
.cfi_offset 29, -96
.cfi_offset 30, -88
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str w2, [sp, 28]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 88]
mov x1, 0
stp xzr, xzr, [sp, 56]
stp xzr, xzr, [sp, 72]
add x0, sp, 56
mov x3, x0
ldr w2, [sp, 28]
ldr x1, [sp, 32]
ldr x0, [sp, 40]
bl dfs_connected
mov w0, 10
bl putchar
str wzr, [sp, 52]
b .L71
.L73:
ldrsw x0, [sp, 52]
lsl x0, x0, 2
add x1, sp, 56
ldr w0, [x1, x0]
cmp w0, 0
bne .L72
add x0, sp, 56
mov x3, x0
ldr w2, [sp, 52]
ldr x1, [sp, 32]
ldr x0, [sp, 40]
bl dfs_connected
mov w0, 10
bl putchar
.L72:
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
.L71:
ldr w0, [sp, 52]
cmp w0, 7
ble .L73
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 88]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L74
bl __stack_chk_fail
.L74:
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE26:
.size dfs, .-dfs
.align 2
.global main
.type main, %function
main:
.LFB27:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 72]
mov x1, 0
add x0, sp, 40
bl scan_arr
bl create
str x0, [sp, 32]
ldr x0, [sp, 32]
bl scan_mat
mov w0, 8
str w0, [sp, 28]
b .L76
.L77:
mov w0, 10
bl putchar
add x0, sp, 40
ldr w2, [sp, 28]
ldr x1, [sp, 32]
bl bfs
add x0, sp, 40
ldr w2, [sp, 28]
ldr x1, [sp, 32]
bl dfs
.L76:
ldr w0, [sp, 28]
sub w1, w0, #1
str w1, [sp, 28]
cmp w0, 0
bne .L77
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 72]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L79
bl __stack_chk_fail
.L79:
mov w0, w1
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE27:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 2
.type PROTOCOL_VERSION, %object
.size PROTOCOL_VERSION, 4
PROTOCOL_VERSION:
.word 70201
.align 2
.type INIT_PROTO_VERSION, %object
.size INIT_PROTO_VERSION, 4
INIT_PROTO_VERSION:
.word 209
.align 2
.type GETHEADERS_VERSION, %object
.size GETHEADERS_VERSION, 4
GETHEADERS_VERSION:
.word 70077
.align 2
.type MIN_PEER_PROTO_VERSION, %object
.size MIN_PEER_PROTO_VERSION, 4
MIN_PEER_PROTO_VERSION:
.word 70103
.align 2
.type MIN_POOL_PEER_PROTO_VERSION, %object
.size MIN_POOL_PEER_PROTO_VERSION, 4
MIN_POOL_PEER_PROTO_VERSION:
.word 70201
.align 2
.type MSG_GOVERNANCE_PEER_PROTO_VERSION, %object
.size MSG_GOVERNANCE_PEER_PROTO_VERSION, 4
MSG_GOVERNANCE_PEER_PROTO_VERSION:
.word 70201
.align 2
.type MIN_MNW_PEER_PROTO_VERSION, %object
.size MIN_MNW_PEER_PROTO_VERSION, 4
MIN_MNW_PEER_PROTO_VERSION:
.word 70103
.align 2
.type MIN_MASTERNODE_PAYMENT_PROTO_VERSION_1, %object
.size MIN_MASTERNODE_PAYMENT_PROTO_VERSION_1, 4
MIN_MASTERNODE_PAYMENT_PROTO_VERSION_1:
.word 70103
.align 2
.type MIN_MASTERNODE_PAYMENT_PROTO_VERSION_2, %object
.size MIN_MASTERNODE_PAYMENT_PROTO_VERSION_2, 4
MIN_MASTERNODE_PAYMENT_PROTO_VERSION_2:
.word 70201
.align 2
.type CADDR_TIME_VERSION, %object
.size CADDR_TIME_VERSION, 4
CADDR_TIME_VERSION:
.word 31402
.align 2
.type NOBLKS_VERSION_START, %object
.size NOBLKS_VERSION_START, 4
NOBLKS_VERSION_START:
.word 32000
.align 2
.type NOBLKS_VERSION_END, %object
.size NOBLKS_VERSION_END, 4
NOBLKS_VERSION_END:
.word 32400
.align 2
.type BIP0031_VERSION, %object
.size BIP0031_VERSION, 4
BIP0031_VERSION:
.word 60000
.align 2
.type MEMPOOL_GD_VERSION, %object
.size MEMPOOL_GD_VERSION, 4
MEMPOOL_GD_VERSION:
.word 60002
.align 2
.type NO_BLOOM_VERSION, %object
.size NO_BLOOM_VERSION, 4
NO_BLOOM_VERSION:
.word 70011
.align 2
.type SENDHEADERS_VERSION, %object
.size SENDHEADERS_VERSION, 4
SENDHEADERS_VERSION:
.word 70012
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "%lf %lf %lf %lf"
.align 3
.LC1:
.string "Media: %.1lf\n"
.align 3
.LC2:
.string "Aluno aprovado."
.align 3
.LC3:
.string "Aluno reprovado."
.align 3
.LC4:
.string "Aluno em exame."
.align 3
.LC5:
.string "%lf"
.align 3
.LC6:
.string "Nota do exame: %.1lf\n"
.align 3
.LC7:
.string "Media final: %.1lf\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 72]
mov x1, 0
str xzr, [sp, 56]
str xzr, [sp, 48]
str xzr, [sp, 64]
add x3, sp, 40
add x2, sp, 32
add x1, sp, 24
add x0, sp, 16
mov x4, x3
mov x3, x2
mov x2, x1
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
ldr d0, [sp, 16]
fadd d1, d0, d0
ldr d2, [sp, 24]
fmov d0, 3.0e+0
fmul d0, d2, d0
fadd d1, d1, d0
ldr d2, [sp, 32]
fmov d0, 4.0e+0
fmul d0, d2, d0
fadd d1, d1, d0
ldr d0, [sp, 40]
fadd d1, d1, d0
fmov d0, 1.0e+1
fdiv d0, d1, d0
str d0, [sp, 56]
ldr d1, [sp, 56]
fmov d0, 7.0e+0
fcmpe d1, d0
bge .L15
b .L21
.L15:
ldr d0, [sp, 56]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl puts
b .L4
.L21:
ldr d1, [sp, 56]
fmov d0, 5.0e+0
fcmpe d1, d0
bmi .L16
b .L22
.L16:
ldr d0, [sp, 56]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl puts
b .L4
.L22:
ldr d1, [sp, 56]
fmov d0, 5.0e+0
fcmpe d1, d0
bge .L17
b .L4
.L17:
ldr d0, [sp, 56]
adrp x0, .LC8
ldr d1, [x0, #:lo12:.LC8]
fcmpe d0, d1
bls .L18
b .L4
.L18:
ldr d0, [sp, 56]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl puts
add x0, sp, 48
mov x1, x0
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl __isoc99_scanf
ldr d0, [sp, 48]
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl printf
ldr d1, [sp, 48]
ldr d0, [sp, 56]
fadd d1, d1, d0
fmov d0, 2.0e+0
fdiv d0, d1, d0
str d0, [sp, 64]
ldr d1, [sp, 64]
fmov d0, 5.0e+0
fcmpe d1, d0
bge .L19
b .L23
.L19:
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl puts
b .L11
.L23:
ldr d1, [sp, 64]
fmov d0, 5.0e+0
fcmpe d1, d0
bmi .L20
b .L11
.L20:
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl puts
.L11:
ldr d0, [sp, 64]
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl printf
.L4:
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 72]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L14
bl __stack_chk_fail
.L14:
mov w0, w1
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
.section .rodata
.align 3
.LC8:
.word -1717986918
.word 1075550617
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "name: "
.align 3
.LC1:
.string "%s"
.align 3
.LC2:
.string "Age: "
.align 3
.LC3:
.string "%d"
.align 3
.LC4:
.string "Tall: "
.align 3
.LC5:
.string "%lf"
.align 3
.LC6:
.string "a"
.align 3
.LC7:
.string "data.txt"
.align 3
.LC8:
.string "%s %d %f\n"
.align 3
.LC9:
.string "Faild to close file. "
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -304]!
.cfi_def_cfa_offset 304
.cfi_offset 29, -304
.cfi_offset 30, -296
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 296]
mov x1, 0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
add x0, sp, 40
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
add x0, sp, 20
mov x1, x0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl __isoc99_scanf
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
add x0, sp, 24
mov x1, x0
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl __isoc99_scanf
adrp x0, .LC6
add x1, x0, :lo12:.LC6
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl fopen
str x0, [sp, 32]
ldr x0, [sp, 32]
cmp x0, 0
beq .L2
ldr w1, [sp, 20]
ldr d0, [sp, 24]
add x0, sp, 40
mov w3, w1
mov x2, x0
adrp x0, .LC8
add x1, x0, :lo12:.LC8
ldr x0, [sp, 32]
bl fprintf
ldr x0, [sp, 32]
bl fflush
ldr x0, [sp, 32]
bl fclose
cmp w0, 0
beq .L2
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl puts
.L2:
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 296]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L4
bl __stack_chk_fail
.L4:
mov w0, w1
ldp x29, x30, [sp], 304
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global stdout
.bss
.align 3
.type stdout, %object
.size stdout, 8
stdout:
.zero 8
.global stderr
.align 3
.type stderr, %object
.size stderr, 8
stderr:
.zero 8
.global EOF
.data
.align 2
.type EOF, %object
.size EOF, 4
EOF:
.word -1
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global MF_SESSION_APPROX_EVENT_OCCURRENCE_TIME
.section .rodata
.align 3
.type MF_SESSION_APPROX_EVENT_OCCURRENCE_TIME, %object
.size MF_SESSION_APPROX_EVENT_OCCURRENCE_TIME, 24
MF_SESSION_APPROX_EVENT_OCCURRENCE_TIME:
.xword 420381999
.hword 25144
.hword 17105
.ascii "\265\257i\3523\216\370P"
.zero 4
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 2
.type PROTOCOL_VERSION, %object
.size PROTOCOL_VERSION, 4
PROTOCOL_VERSION:
.word 90008
.align 2
.type TORV3_SERVICES_VERSION, %object
.size TORV3_SERVICES_VERSION, 4
TORV3_SERVICES_VERSION:
.word 90007
.align 2
.type INIT_PROTO_VERSION, %object
.size INIT_PROTO_VERSION, 4
INIT_PROTO_VERSION:
.word 209
.align 2
.type GETHEADERS_VERSION, %object
.size GETHEADERS_VERSION, 4
GETHEADERS_VERSION:
.word 90001
.align 2
.type MIN_PEER_PROTO_VERSION, %object
.size MIN_PEER_PROTO_VERSION, 4
MIN_PEER_PROTO_VERSION:
.word 90001
.align 2
.type CADDR_TIME_VERSION, %object
.size CADDR_TIME_VERSION, 4
CADDR_TIME_VERSION:
.word 31402
.align 2
.type BIP0031_VERSION, %object
.size BIP0031_VERSION, 4
BIP0031_VERSION:
.word 60000
.align 2
.type NO_BLOOM_VERSION, %object
.size NO_BLOOM_VERSION, 4
NO_BLOOM_VERSION:
.word 90007
.align 2
.type SENDHEADERS_VERSION, %object
.size SENDHEADERS_VERSION, 4
SENDHEADERS_VERSION:
.word 90007
.align 2
.type FEEFILTER_VERSION, %object
.size FEEFILTER_VERSION, 4
FEEFILTER_VERSION:
.word 90007
.align 2
.type SHORT_IDS_BLOCKS_VERSION, %object
.size SHORT_IDS_BLOCKS_VERSION, 4
SHORT_IDS_BLOCKS_VERSION:
.word 90007
.align 2
.type INVALID_CB_NO_BAN_VERSION, %object
.size INVALID_CB_NO_BAN_VERSION, 4
INVALID_CB_NO_BAN_VERSION:
.word 90007
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global header
.bss
.align 3
.type header, %object
.size header, 22
header:
.zero 22
.global R
.align 3
.type R, %object
.size R, 12000000
R:
.zero 12000000
.global G
.align 3
.type G, %object
.size G, 12000000
G:
.zero 12000000
.global B
.align 3
.type B, %object
.size B, 12000000
B:
.zero 12000000
.global convR
.align 3
.type convR, %object
.size convR, 12000000
convR:
.zero 12000000
.global convG
.align 3
.type convG, %object
.size convG, 12000000
convG:
.zero 12000000
.global convB
.align 3
.type convB, %object
.size convB, 12000000
convB:
.zero 12000000
.global RGB
.align 3
.type RGB, %object
.size RGB, 36000000
RGB:
.zero 36000000
.global PSF
.data
.align 3
.type PSF, %object
.size PSF, 72
PSF:
.word 0
.word -1075838976
.word 0
.word -1075838976
.word 0
.word -1075838976
.word 0
.word -1075838976
.word 0
.word 1075052544
.word 0
.word -1075838976
.word 0
.word -1075838976
.word 0
.word -1075838976
.word 0
.word -1075838976
.section .rodata
.align 3
.LC0:
.string "Usage: sharpen input_file.ppm output_file.ppm"
.align 3
.LC1:
.string "Error opening %s\n"
.align 3
.LC2:
.string "header = %s\n"
.align 3
.LC3:
.string "START: read %d, bytesRead=%d, bytesLeft=%d\n"
.align 3
.LC4:
.string "read %d, bytesRead=%d, bytesLeft=%d\n"
.align 3
.LC5:
.string "END: read %d, bytesRead=%d, bytesLeft=%d\n"
.align 3
.LC6:
.string "\nstart test at %lf\n"
.align 3
.LC7:
.string "stop test at %lf for %d frames\n\n"
.align 3
.LC8:
.string "START: write %d, bytesWritten=%d, bytesLeft=%d\n"
.align 3
.LC9:
.string "write %d, bytesWritten=%d, bytesLeft=%d\n"
.align 3
.LC10:
.string "END: write %d, bytesWritten=%d, bytesLeft=%d\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -160]!
.cfi_def_cfa_offset 160
.cfi_offset 29, -160
.cfi_offset 30, -152
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 152]
mov x1, 0
str wzr, [sp, 32]
str wzr, [sp, 36]
str wzr, [sp, 60]
str wzr, [sp, 64]
str xzr, [sp, 88]
str xzr, [sp, 96]
add x0, sp, 120
mov x1, x0
mov w0, 1
bl clock_gettime
ldr d0, [sp, 120]
scvtf d1, d0
ldr d0, [sp, 128]
scvtf d0, d0
mov x0, 225833675390976
movk x0, 0x41cd, lsl 48
fmov d2, x0
fdiv d0, d0, d2
fadd d0, d1, d0
str d0, [sp, 104]
ldr w0, [sp, 28]
cmp w0, 2
bgt .L2
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
mov w0, -1
bl exit
.L2:
ldr x0, [sp, 16]
add x0, x0, 8
ldr x0, [x0]
mov w2, 420
mov w1, 0
bl open
str w0, [sp, 68]
ldr w0, [sp, 68]
cmp w0, 0
bge .L3
ldr x0, [sp, 16]
add x0, x0, 8
ldr x0, [x0]
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
.L3:
ldr x0, [sp, 16]
add x0, x0, 16
ldr x0, [x0]
mov w2, 438
mov w1, 66
bl open
str w0, [sp, 72]
ldr w0, [sp, 72]
cmp w0, 0
bge .L4
ldr x0, [sp, 16]
add x0, x0, 8
ldr x0, [x0]
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
.L4:
mov w0, 21
str w0, [sp, 40]
.L5:
ldrsw x0, [sp, 40]
mov x2, x0
adrp x0, header
add x1, x0, :lo12:header
ldr w0, [sp, 68]
bl read
str w0, [sp, 32]
ldr w1, [sp, 40]
ldr w0, [sp, 32]
sub w0, w1, w0
str w0, [sp, 40]
ldr w0, [sp, 40]
cmp w0, 0
bgt .L5
adrp x0, header
add x0, x0, :lo12:header
strb wzr, [x0, 21]
adrp x0, header
add x1, x0, :lo12:header
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
str wzr, [sp, 32]
mov w0, 20736
movk w0, 0x225, lsl 16
str w0, [sp, 40]
str wzr, [sp, 60]
ldr w3, [sp, 40]
ldr w2, [sp, 32]
ldr w1, [sp, 60]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
.L7:
ldrsw x1, [sp, 32]
adrp x0, RGB
add x0, x0, :lo12:RGB
add x0, x1, x0
ldrsw x1, [sp, 40]
mov x2, x1
mov x1, x0
ldr w0, [sp, 68]
bl read
str w0, [sp, 32]
ldr w1, [sp, 40]
ldr w0, [sp, 32]
sub w0, w1, w0
str w0, [sp, 40]
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
ldr w3, [sp, 40]
ldr w2, [sp, 32]
ldr w1, [sp, 60]
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
ldr w0, [sp, 40]
cmp w0, 0
ble .L6
ldr w0, [sp, 60]
cmp w0, 2
ble .L7
.L6:
ldr w3, [sp, 40]
ldr w2, [sp, 32]
ldr w1, [sp, 60]
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
str wzr, [sp, 44]
str wzr, [sp, 56]
b .L8
.L9:
adrp x0, RGB
add x1, x0, :lo12:RGB
ldrsw x0, [sp, 56]
ldrb w2, [x1, x0]
adrp x0, R
add x1, x0, :lo12:R
ldrsw x0, [sp, 44]
strb w2, [x1, x0]
adrp x0, R
add x1, x0, :lo12:R
ldrsw x0, [sp, 44]
ldrb w2, [x1, x0]
adrp x0, convR
add x1, x0, :lo12:convR
ldrsw x0, [sp, 44]
strb w2, [x1, x0]
ldr w0, [sp, 56]
add w2, w0, 1
adrp x0, RGB
add x1, x0, :lo12:RGB
sxtw x0, w2
ldrb w2, [x1, x0]
adrp x0, G
add x1, x0, :lo12:G
ldrsw x0, [sp, 44]
strb w2, [x1, x0]
adrp x0, G
add x1, x0, :lo12:G
ldrsw x0, [sp, 44]
ldrb w2, [x1, x0]
adrp x0, convG
add x1, x0, :lo12:convG
ldrsw x0, [sp, 44]
strb w2, [x1, x0]
ldr w0, [sp, 56]
add w2, w0, 2
adrp x0, RGB
add x1, x0, :lo12:RGB
sxtw x0, w2
ldrb w2, [x1, x0]
adrp x0, B
add x1, x0, :lo12:B
ldrsw x0, [sp, 44]
strb w2, [x1, x0]
adrp x0, B
add x1, x0, :lo12:B
ldrsw x0, [sp, 44]
ldrb w2, [x1, x0]
adrp x0, convB
add x1, x0, :lo12:convB
ldrsw x0, [sp, 44]
strb w2, [x1, x0]
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
ldr w0, [sp, 56]
add w0, w0, 3
str w0, [sp, 56]
.L8:
ldr w1, [sp, 44]
mov w0, 6911
movk w0, 0xb7, lsl 16
cmp w1, w0
ble .L9
add x0, sp, 136
mov x1, x0
mov w0, 1
bl clock_gettime
ldr d0, [sp, 136]
scvtf d1, d0
ldr d0, [sp, 144]
scvtf d0, d0
mov x0, 225833675390976
movk x0, 0x41cd, lsl 48
fmov d2, x0
fdiv d0, d0, d2
fadd d0, d1, d0
str d0, [sp, 112]
ldr d1, [sp, 112]
ldr d0, [sp, 104]
fsub d0, d1, d0
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl printf
str wzr, [sp, 52]
b .L10
.L27:
mov w0, 1
str w0, [sp, 44]
b .L11
.L26:
mov w0, 1
str w0, [sp, 48]
b .L12
.L25:
str xzr, [sp, 80]
adrp x0, PSF
add x0, x0, :lo12:PSF
ldr d1, [x0]
ldr w0, [sp, 44]
sub w1, w0, #1
mov w0, 4000
mul w1, w1, w0
ldr w0, [sp, 48]
add w0, w1, w0
sub w2, w0, #1
adrp x0, R
add x1, x0, :lo12:R
sxtw x0, w2
ldrb w0, [x1, x0]
ucvtf d0, w0
fmul d0, d1, d0
ldr d1, [sp, 80]
fadd d0, d1, d0
str d0, [sp, 80]
adrp x0, PSF
add x0, x0, :lo12:PSF
ldr d1, [x0, 8]
ldr w0, [sp, 44]
sub w1, w0, #1
mov w0, 4000
mul w1, w1, w0
ldr w0, [sp, 48]
add w2, w1, w0
adrp x0, R
add x1, x0, :lo12:R
sxtw x0, w2
ldrb w0, [x1, x0]
ucvtf d0, w0
fmul d0, d1, d0
ldr d1, [sp, 80]
fadd d0, d1, d0
str d0, [sp, 80]
adrp x0, PSF
add x0, x0, :lo12:PSF
ldr d1, [x0, 16]
ldr w0, [sp, 44]
sub w1, w0, #1
mov w0, 4000
mul w1, w1, w0
ldr w0, [sp, 48]
add w0, w1, w0
add w2, w0, 1
adrp x0, R
add x1, x0, :lo12:R
sxtw x0, w2
ldrb w0, [x1, x0]
ucvtf d0, w0
fmul d0, d1, d0
ldr d1, [sp, 80]
fadd d0, d1, d0
str d0, [sp, 80]
adrp x0, PSF
add x0, x0, :lo12:PSF
ldr d1, [x0, 24]
ldr w1, [sp, 44]
mov w0, 4000
mul w1, w1, w0
ldr w0, [sp, 48]
add w0, w1, w0
sub w2, w0, #1
adrp x0, R
add x1, x0, :lo12:R
sxtw x0, w2
ldrb w0, [x1, x0]
ucvtf d0, w0
fmul d0, d1, d0
ldr d1, [sp, 80]
fadd d0, d1, d0
str d0, [sp, 80]
adrp x0, PSF
add x0, x0, :lo12:PSF
ldr d1, [x0, 32]
ldr w1, [sp, 44]
mov w0, 4000
mul w1, w1, w0
ldr w0, [sp, 48]
add w2, w1, w0
adrp x0, R
add x1, x0, :lo12:R
sxtw x0, w2
ldrb w0, [x1, x0]
ucvtf d0, w0
fmul d0, d1, d0
ldr d1, [sp, 80]
fadd d0, d1, d0
str d0, [sp, 80]
adrp x0, PSF
add x0, x0, :lo12:PSF
ldr d1, [x0, 40]
ldr w1, [sp, 44]
mov w0, 4000
mul w1, w1, w0
ldr w0, [sp, 48]
add w0, w1, w0
add w2, w0, 1
adrp x0, R
add x1, x0, :lo12:R
sxtw x0, w2
ldrb w0, [x1, x0]
ucvtf d0, w0
fmul d0, d1, d0
ldr d1, [sp, 80]
fadd d0, d1, d0
str d0, [sp, 80]
adrp x0, PSF
add x0, x0, :lo12:PSF
ldr d1, [x0, 48]
ldr w0, [sp, 44]
add w1, w0, 1
mov w0, 4000
mul w1, w1, w0
ldr w0, [sp, 48]
add w0, w1, w0
sub w2, w0, #1
adrp x0, R
add x1, x0, :lo12:R
sxtw x0, w2
ldrb w0, [x1, x0]
ucvtf d0, w0
fmul d0, d1, d0
ldr d1, [sp, 80]
fadd d0, d1, d0
str d0, [sp, 80]
adrp x0, PSF
add x0, x0, :lo12:PSF
ldr d1, [x0, 56]
ldr w0, [sp, 44]
add w1, w0, 1
mov w0, 4000
mul w1, w1, w0
ldr w0, [sp, 48]
add w2, w1, w0
adrp x0, R
add x1, x0, :lo12:R
sxtw x0, w2
ldrb w0, [x1, x0]
ucvtf d0, w0
fmul d0, d1, d0
ldr d1, [sp, 80]
fadd d0, d1, d0
str d0, [sp, 80]
adrp x0, PSF
add x0, x0, :lo12:PSF
ldr d1, [x0, 64]
ldr w0, [sp, 44]
add w1, w0, 1
mov w0, 4000
mul w1, w1, w0
ldr w0, [sp, 48]
add w0, w1, w0
add w2, w0, 1
adrp x0, R
add x1, x0, :lo12:R
sxtw x0, w2
ldrb w0, [x1, x0]
ucvtf d0, w0
fmul d0, d1, d0
ldr d1, [sp, 80]
fadd d0, d1, d0
str d0, [sp, 80]
ldr d0, [sp, 80]
fcmpe d0, #0.0
bmi .L34
b .L13
.L34:
str xzr, [sp, 80]
.L13:
ldr d0, [sp, 80]
mov x0, 246290604621824
movk x0, 0x406f, lsl 48
fmov d1, x0
fcmpe d0, d1
bgt .L35
b .L15
.L35:
mov x0, 246290604621824
movk x0, 0x406f, lsl 48
fmov d0, x0
str d0, [sp, 80]
.L15:
ldr w1, [sp, 44]
mov w0, 4000
mul w1, w1, w0
ldr w0, [sp, 48]
add w3, w1, w0
ldr d0, [sp, 80]
fcvtzu w0, d0
and w2, w0, 255
adrp x0, convR
add x1, x0, :lo12:convR
sxtw x0, w3
strb w2, [x1, x0]
str xzr, [sp, 80]
adrp x0, PSF
add x0, x0, :lo12:PSF
ldr d1, [x0]
ldr w0, [sp, 44]
sub w1, w0, #1
mov w0, 4000
mul w1, w1, w0
ldr w0, [sp, 48]
add w0, w1, w0
sub w2, w0, #1
adrp x0, G
add x1, x0, :lo12:G
sxtw x0, w2
ldrb w0, [x1, x0]
ucvtf d0, w0
fmul d0, d1, d0
ldr d1, [sp, 80]
fadd d0, d1, d0
str d0, [sp, 80]
adrp x0, PSF
add x0, x0, :lo12:PSF
ldr d1, [x0, 8]
ldr w0, [sp, 44]
sub w1, w0, #1
mov w0, 4000
mul w1, w1, w0
ldr w0, [sp, 48]
add w2, w1, w0
adrp x0, G
add x1, x0, :lo12:G
sxtw x0, w2
ldrb w0, [x1, x0]
ucvtf d0, w0
fmul d0, d1, d0
ldr d1, [sp, 80]
fadd d0, d1, d0
str d0, [sp, 80]
adrp x0, PSF
add x0, x0, :lo12:PSF
ldr d1, [x0, 16]
ldr w0, [sp, 44]
sub w1, w0, #1
mov w0, 4000
mul w1, w1, w0
ldr w0, [sp, 48]
add w0, w1, w0
add w2, w0, 1
adrp x0, G
add x1, x0, :lo12:G
sxtw x0, w2
ldrb w0, [x1, x0]
ucvtf d0, w0
fmul d0, d1, d0
ldr d1, [sp, 80]
fadd d0, d1, d0
str d0, [sp, 80]
adrp x0, PSF
add x0, x0, :lo12:PSF
ldr d1, [x0, 24]
ldr w1, [sp, 44]
mov w0, 4000
mul w1, w1, w0
ldr w0, [sp, 48]
add w0, w1, w0
sub w2, w0, #1
adrp x0, G
add x1, x0, :lo12:G
sxtw x0, w2
ldrb w0, [x1, x0]
ucvtf d0, w0
fmul d0, d1, d0
ldr d1, [sp, 80]
fadd d0, d1, d0
str d0, [sp, 80]
adrp x0, PSF
add x0, x0, :lo12:PSF
ldr d1, [x0, 32]
ldr w1, [sp, 44]
mov w0, 4000
mul w1, w1, w0
ldr w0, [sp, 48]
add w2, w1, w0
adrp x0, G
add x1, x0, :lo12:G
sxtw x0, w2
ldrb w0, [x1, x0]
ucvtf d0, w0
fmul d0, d1, d0
ldr d1, [sp, 80]
fadd d0, d1, d0
str d0, [sp, 80]
adrp x0, PSF
add x0, x0, :lo12:PSF
ldr d1, [x0, 40]
ldr w1, [sp, 44]
mov w0, 4000
mul w1, w1, w0
ldr w0, [sp, 48]
add w0, w1, w0
add w2, w0, 1
adrp x0, G
add x1, x0, :lo12:G
sxtw x0, w2
ldrb w0, [x1, x0]
ucvtf d0, w0
fmul d0, d1, d0
ldr d1, [sp, 80]
fadd d0, d1, d0
str d0, [sp, 80]
adrp x0, PSF
add x0, x0, :lo12:PSF
ldr d1, [x0, 48]
ldr w0, [sp, 44]
add w1, w0, 1
mov w0, 4000
mul w1, w1, w0
ldr w0, [sp, 48]
add w0, w1, w0
sub w2, w0, #1
adrp x0, G
add x1, x0, :lo12:G
sxtw x0, w2
ldrb w0, [x1, x0]
ucvtf d0, w0
fmul d0, d1, d0
ldr d1, [sp, 80]
fadd d0, d1, d0
str d0, [sp, 80]
adrp x0, PSF
add x0, x0, :lo12:PSF
ldr d1, [x0, 56]
ldr w0, [sp, 44]
add w1, w0, 1
mov w0, 4000
mul w1, w1, w0
ldr w0, [sp, 48]
add w2, w1, w0
adrp x0, G
add x1, x0, :lo12:G
sxtw x0, w2
ldrb w0, [x1, x0]
ucvtf d0, w0
fmul d0, d1, d0
ldr d1, [sp, 80]
fadd d0, d1, d0
str d0, [sp, 80]
adrp x0, PSF
add x0, x0, :lo12:PSF
ldr d1, [x0, 64]
ldr w0, [sp, 44]
add w1, w0, 1
mov w0, 4000
mul w1, w1, w0
ldr w0, [sp, 48]
add w0, w1, w0
add w2, w0, 1
adrp x0, G
add x1, x0, :lo12:G
sxtw x0, w2
ldrb w0, [x1, x0]
ucvtf d0, w0
fmul d0, d1, d0
ldr d1, [sp, 80]
fadd d0, d1, d0
str d0, [sp, 80]
ldr d0, [sp, 80]
fcmpe d0, #0.0
bmi .L36
b .L17
.L36:
str xzr, [sp, 80]
.L17:
ldr d0, [sp, 80]
mov x0, 246290604621824
movk x0, 0x406f, lsl 48
fmov d1, x0
fcmpe d0, d1
bgt .L37
b .L19
.L37:
mov x0, 246290604621824
movk x0, 0x406f, lsl 48
fmov d0, x0
str d0, [sp, 80]
.L19:
ldr w1, [sp, 44]
mov w0, 4000
mul w1, w1, w0
ldr w0, [sp, 48]
add w3, w1, w0
ldr d0, [sp, 80]
fcvtzu w0, d0
and w2, w0, 255
adrp x0, convG
add x1, x0, :lo12:convG
sxtw x0, w3
strb w2, [x1, x0]
str xzr, [sp, 80]
adrp x0, PSF
add x0, x0, :lo12:PSF
ldr d1, [x0]
ldr w0, [sp, 44]
sub w1, w0, #1
mov w0, 4000
mul w1, w1, w0
ldr w0, [sp, 48]
add w0, w1, w0
sub w2, w0, #1
adrp x0, B
add x1, x0, :lo12:B
sxtw x0, w2
ldrb w0, [x1, x0]
ucvtf d0, w0
fmul d0, d1, d0
ldr d1, [sp, 80]
fadd d0, d1, d0
str d0, [sp, 80]
adrp x0, PSF
add x0, x0, :lo12:PSF
ldr d1, [x0, 8]
ldr w0, [sp, 44]
sub w1, w0, #1
mov w0, 4000
mul w1, w1, w0
ldr w0, [sp, 48]
add w2, w1, w0
adrp x0, B
add x1, x0, :lo12:B
sxtw x0, w2
ldrb w0, [x1, x0]
ucvtf d0, w0
fmul d0, d1, d0
ldr d1, [sp, 80]
fadd d0, d1, d0
str d0, [sp, 80]
adrp x0, PSF
add x0, x0, :lo12:PSF
ldr d1, [x0, 16]
ldr w0, [sp, 44]
sub w1, w0, #1
mov w0, 4000
mul w1, w1, w0
ldr w0, [sp, 48]
add w0, w1, w0
add w2, w0, 1
adrp x0, B
add x1, x0, :lo12:B
sxtw x0, w2
ldrb w0, [x1, x0]
ucvtf d0, w0
fmul d0, d1, d0
ldr d1, [sp, 80]
fadd d0, d1, d0
str d0, [sp, 80]
adrp x0, PSF
add x0, x0, :lo12:PSF
ldr d1, [x0, 24]
ldr w1, [sp, 44]
mov w0, 4000
mul w1, w1, w0
ldr w0, [sp, 48]
add w0, w1, w0
sub w2, w0, #1
adrp x0, B
add x1, x0, :lo12:B
sxtw x0, w2
ldrb w0, [x1, x0]
ucvtf d0, w0
fmul d0, d1, d0
ldr d1, [sp, 80]
fadd d0, d1, d0
str d0, [sp, 80]
adrp x0, PSF
add x0, x0, :lo12:PSF
ldr d1, [x0, 32]
ldr w1, [sp, 44]
mov w0, 4000
mul w1, w1, w0
ldr w0, [sp, 48]
add w2, w1, w0
adrp x0, B
add x1, x0, :lo12:B
sxtw x0, w2
ldrb w0, [x1, x0]
ucvtf d0, w0
fmul d0, d1, d0
ldr d1, [sp, 80]
fadd d0, d1, d0
str d0, [sp, 80]
adrp x0, PSF
add x0, x0, :lo12:PSF
ldr d1, [x0, 40]
ldr w1, [sp, 44]
mov w0, 4000
mul w1, w1, w0
ldr w0, [sp, 48]
add w0, w1, w0
add w2, w0, 1
adrp x0, B
add x1, x0, :lo12:B
sxtw x0, w2
ldrb w0, [x1, x0]
ucvtf d0, w0
fmul d0, d1, d0
ldr d1, [sp, 80]
fadd d0, d1, d0
str d0, [sp, 80]
adrp x0, PSF
add x0, x0, :lo12:PSF
ldr d1, [x0, 48]
ldr w0, [sp, 44]
add w1, w0, 1
mov w0, 4000
mul w1, w1, w0
ldr w0, [sp, 48]
add w0, w1, w0
sub w2, w0, #1
adrp x0, B
add x1, x0, :lo12:B
sxtw x0, w2
ldrb w0, [x1, x0]
ucvtf d0, w0
fmul d0, d1, d0
ldr d1, [sp, 80]
fadd d0, d1, d0
str d0, [sp, 80]
adrp x0, PSF
add x0, x0, :lo12:PSF
ldr d1, [x0, 56]
ldr w0, [sp, 44]
add w1, w0, 1
mov w0, 4000
mul w1, w1, w0
ldr w0, [sp, 48]
add w2, w1, w0
adrp x0, B
add x1, x0, :lo12:B
sxtw x0, w2
ldrb w0, [x1, x0]
ucvtf d0, w0
fmul d0, d1, d0
ldr d1, [sp, 80]
fadd d0, d1, d0
str d0, [sp, 80]
adrp x0, PSF
add x0, x0, :lo12:PSF
ldr d1, [x0, 64]
ldr w0, [sp, 44]
add w1, w0, 1
mov w0, 4000
mul w1, w1, w0
ldr w0, [sp, 48]
add w0, w1, w0
add w2, w0, 1
adrp x0, B
add x1, x0, :lo12:B
sxtw x0, w2
ldrb w0, [x1, x0]
ucvtf d0, w0
fmul d0, d1, d0
ldr d1, [sp, 80]
fadd d0, d1, d0
str d0, [sp, 80]
ldr d0, [sp, 80]
fcmpe d0, #0.0
bmi .L38
b .L21
.L38:
str xzr, [sp, 80]
.L21:
ldr d0, [sp, 80]
mov x0, 246290604621824
movk x0, 0x406f, lsl 48
fmov d1, x0
fcmpe d0, d1
bgt .L39
b .L23
.L39:
mov x0, 246290604621824
movk x0, 0x406f, lsl 48
fmov d0, x0
str d0, [sp, 80]
.L23:
ldr w1, [sp, 44]
mov w0, 4000
mul w1, w1, w0
ldr w0, [sp, 48]
add w3, w1, w0
ldr d0, [sp, 80]
fcvtzu w0, d0
and w2, w0, 255
adrp x0, convB
add x1, x0, :lo12:convB
sxtw x0, w3
strb w2, [x1, x0]
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
.L12:
ldr w0, [sp, 48]
cmp w0, 3998
ble .L25
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L11:
ldr w0, [sp, 44]
cmp w0, 2998
ble .L26
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
.L10:
ldr w0, [sp, 52]
cmp w0, 89
ble .L27
add x0, sp, 136
mov x1, x0
mov w0, 1
bl clock_gettime
ldr d0, [sp, 136]
scvtf d1, d0
ldr d0, [sp, 144]
scvtf d0, d0
mov x0, 225833675390976
movk x0, 0x41cd, lsl 48
fmov d2, x0
fdiv d0, d0, d2
fadd d0, d1, d0
str d0, [sp, 112]
ldr d1, [sp, 112]
ldr d0, [sp, 104]
fsub d0, d1, d0
mov w1, 90
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl printf
mov x2, 21
adrp x0, header
add x1, x0, :lo12:header
ldr w0, [sp, 72]
bl write
str w0, [sp, 76]
str wzr, [sp, 44]
str wzr, [sp, 56]
b .L28
.L29:
adrp x0, convR
add x1, x0, :lo12:convR
ldrsw x0, [sp, 44]
ldrb w2, [x1, x0]
adrp x0, RGB
add x1, x0, :lo12:RGB
ldrsw x0, [sp, 56]
strb w2, [x1, x0]
ldr w0, [sp, 56]
add w3, w0, 1
adrp x0, convG
add x1, x0, :lo12:convG
ldrsw x0, [sp, 44]
ldrb w2, [x1, x0]
adrp x0, RGB
add x1, x0, :lo12:RGB
sxtw x0, w3
strb w2, [x1, x0]
ldr w0, [sp, 56]
add w3, w0, 2
adrp x0, convB
add x1, x0, :lo12:convB
ldrsw x0, [sp, 44]
ldrb w2, [x1, x0]
adrp x0, RGB
add x1, x0, :lo12:RGB
sxtw x0, w3
strb w2, [x1, x0]
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
ldr w0, [sp, 56]
add w0, w0, 3
str w0, [sp, 56]
.L28:
ldr w1, [sp, 44]
mov w0, 6911
movk w0, 0xb7, lsl 16
cmp w1, w0
ble .L29
str wzr, [sp, 36]
mov w0, 20736
movk w0, 0x225, lsl 16
str w0, [sp, 40]
str wzr, [sp, 64]
ldr w3, [sp, 40]
ldr w2, [sp, 36]
ldr w1, [sp, 64]
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl printf
.L31:
ldrsw x1, [sp, 36]
adrp x0, RGB
add x0, x0, :lo12:RGB
add x0, x1, x0
ldrsw x1, [sp, 40]
mov x2, x1
mov x1, x0
ldr w0, [sp, 72]
bl write
str w0, [sp, 36]
ldr w1, [sp, 40]
ldr w0, [sp, 36]
sub w0, w1, w0
str w0, [sp, 40]
ldr w0, [sp, 64]
add w0, w0, 1
str w0, [sp, 64]
ldr w3, [sp, 40]
ldr w2, [sp, 36]
ldr w1, [sp, 64]
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl printf
ldr w0, [sp, 40]
cmp w0, 0
ble .L30
ldr w0, [sp, 64]
cmp w0, 2
ble .L31
.L30:
ldr w3, [sp, 40]
ldr w2, [sp, 36]
ldr w1, [sp, 64]
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl printf
ldr w0, [sp, 68]
bl close
ldr w0, [sp, 72]
bl close
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 152]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L33
bl __stack_chk_fail
.L33:
mov w0, w1
ldp x29, x30, [sp], 160
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Please enter the book title : "
.align 3
.LC1:
.string "Now enter the author : "
.align 3
.LC2:
.string "Enter the price of the book : $"
.align 3
.LC3:
.string "%f"
.align 3
.LC4:
.string "\033[3;33m%s\033[0m by \033[0;31m%s \033[0m: \033[0;30m$%.2f[0m\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -176]!
.cfi_def_cfa_offset 176
.cfi_offset 29, -176
.cfi_offset 30, -168
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 168]
mov x1, 0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
add x0, sp, 32
bl gets
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
add x0, sp, 32
add x0, x0, 64
bl gets
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
add x0, sp, 32
add x0, x0, 128
mov x1, x0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl __isoc99_scanf
ldr s0, [sp, 160]
fcvt d0, s0
add x0, sp, 32
add x1, x0, 64
add x0, sp, 32
mov x2, x1
mov x1, x0
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 168]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L3
bl __stack_chk_fail
.L3:
mov w0, w1
ldp x29, x30, [sp], 176
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global x
.bss
.align 3
.type x, %object
.size x, 16
x:
.zero 16
.section .rodata
.align 3
.LC0:
.string "T: %lu\n"
.align 3
.LC1:
.string "Bools: %lu\n"
.align 3
.LC2:
.string "struct k: %lu\n"
.align 3
.LC3:
.string "struct s: %lu\n"
.align 3
.LC4:
.string "union u1: %lu\n"
.align 3
.LC5:
.string "union u2: %lu\n"
.align 3
.LC6:
.string "union u3: %lu\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
mov x1, 3
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
mov x1, 10
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
mov x1, 6
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
mov x1, 92
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
mov x1, 10
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
mov x1, 10
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
mov x1, 16
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl printf
mov w0, 0
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global fibo
.type fibo, %function
fibo:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -32
str w0, [sp, 44]
ldr w0, [sp, 44]
cmp w0, 0
bgt .L2
mov w0, 0
b .L3
.L2:
ldr w0, [sp, 44]
cmp w0, 1
bne .L4
mov w0, 1
b .L3
.L4:
ldr w0, [sp, 44]
sub w0, w0, #1
bl fibo
mov w19, w0
ldr w0, [sp, 44]
sub w0, w0, #2
bl fibo
add w0, w19, w0
.L3:
ldr x19, [sp, 16]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size fibo, .-fibo
.align 2
.global main
.type main, %function
main:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
mov w0, 10
str w0, [sp, 24]
ldr w0, [sp, 24]
bl fibo
str w0, [sp, 28]
ldr w0, [sp, 28]
cmp w0, 55
beq .L6
bl __VERIFIER_error
.L6:
mov w0, 0
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global FOLDERID_Music
.section .rodata
.align 3
.type FOLDERID_Music, %object
.size FOLDERID_Music, 24
FOLDERID_Music:
.xword 1272501617
.hword 27929
.hword 18643
.ascii "\276\227B\" \b\016C"
.zero 4
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global ft_strstr
.type ft_strstr, %function
ft_strstr:
.LFB0:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str x1, [sp]
str wzr, [sp, 20]
str wzr, [sp, 24]
str wzr, [sp, 28]
b .L2
.L3:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L2:
ldrsw x0, [sp, 28]
ldr x1, [sp]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 0
bne .L3
ldr w0, [sp, 28]
cmp w0, 0
bne .L6
ldr x0, [sp, 8]
b .L5
.L9:
ldr w0, [sp, 28]
sub w0, w0, #1
ldr w1, [sp, 24]
cmp w1, w0
bne .L8
ldrsw x0, [sp, 20]
ldr x1, [sp, 8]
add x0, x1, x0
b .L5
.L8:
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L7:
ldr w1, [sp, 20]
ldr w0, [sp, 24]
add w0, w1, w0
sxtw x0, w0
ldr x1, [sp, 8]
add x0, x1, x0
ldrb w1, [x0]
ldrsw x0, [sp, 24]
ldr x2, [sp]
add x0, x2, x0
ldrb w0, [x0]
cmp w1, w0
beq .L9
str wzr, [sp, 24]
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
.L6:
ldrsw x0, [sp, 20]
ldr x1, [sp, 8]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 0
bne .L7
mov x0, 0
.L5:
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size ft_strstr, .-ft_strstr
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global gfx_CAPEX
.data
.align 3
.type gfx_CAPEX, %object
.size gfx_CAPEX, 3446
gfx_CAPEX:
.string "BMv\r"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "v"
.string ""
.string ""
.string "("
.string ""
.string ""
.string "{"
.string ""
.string ""
.string "4"
.string ""
.string ""
.string "\001"
.string "\004"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\r"
.string ""
.string " N"
.string ""
.string " N"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "PPP"
.string "ooo"
.string "\377"
.string "\377"
.string "\221\221\221"
.string "\253\253\253"
.string "\307\307\307"
.string "\344\344\344"
.string "\377\377\377"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "33333333333333333333333333333333333333333333333333333333333330"
.string ""
.string "33333333333333333333333333333333333333333333333333333333333330"
.string ""
.string "3333\210\210\2033333333333333333333333333333333333333333333338\210\210\210\210\2103330"
.string ""
.string "33388\2108338388\210\2108\210\21083333333333333333333338\210\210838838333\210\2103\210\210\210\203330"
.string ""
.string "333\210\203\203\210\203383883383383333333333333333333338333\203\203838333\210\21033\210\210\203330"
.string ""
.string "333\210\2108\210\20338\210\2108\21038338\210\20333333333333333333338\2103383838333\210\210338\210\203330"
.string ""
.string "333\210\203\203\210\203383883383383833333333333333333338333\203\203838333\210\21033\210\210\203330"
.string ""
.string "33388\2108338388\210\2108338\210\20333333333333333333338\210\21083888\210\21033\210\2103\210\210\210\203330"
.string ""
.string "3333\210\210\2033333333333333333333333333333333333333333333338\210\210\210\210\2103330"
.string ""
.string "33333333333333333333333333333333333333333333333333333333333330"
.string ""
.string "33333333333333333333333333333333333333333333333333333333333330"
.string ""
.string "3333\210\210\2033333333333333333333333333333333333333333333338\210\210\210\210\2103330"
.string ""
.string "33388\2108338383\210\20383833333333333333\210\20383338383\210\2038388\210\20333\210\210338\210\203330"
.string ""
.string "333\2108\2108\203383883883\2103333333333333838833383883883\21033833\210\210338\210\203330"
.string ""
.string "333\210338\20338\210\20383888833333333333338388\210\20338388388883\210\20333\210\210338\210\203330"
.string ""
.string "333\2108\2108\20338388388\2038333333333333383883838388388\203883333\210\210338\210\203330"
.string ""
.string "3338\2033\210338\210\20383883833333333333333\210\2038\210\2038\210\21083\210\2038383\210\21033\210\210338\210\203330"
.string ""
.string "3333\210\210\2033333333333333333333333333333333333333333333338\210\210\210\210\2103330"
.string ""
.string "33333333333333333333333333333333333333333333333333333333333330"
.string ""
.string "33333333333333333333333333333333333333333333333333333333333330"
.string ""
.string "33333333333333333333333333333333333333333333333333333333333330"
.string ""
.string "3333333333"
.string "3330"
.string ""
.string "3"
.string "\0030"
.string "33"
.string ""
.string ""
.string "0\003333"
.string ""
.string ""
.string "0"
.string ""
.string ""
.string "0"
.string ""
.string ""
.string "0"
.string "3"
.string "3"
.string ""
.string "\00333333333330"
.string ""
.string "3333333330D\00333\004DD"
.string "D\003\004@30DD@\004@330DD@\004DDD\004DDD\004@"
.string "D"
.string "DD@33333333330"
.string ""
.string "3333333330U\00330U"
.string "\005PU\003\005P3\005P"
.string "U\005P33\005P"
.string "U\005P"
.string ""
.string "\005P"
.string ""
.string "\005PPU\005P"
.string "U33333333330"
.string ""
.string "3333333330f"
.string ""
.string "0f\003\006`f"
.string "\006`3\006`0f\006`"
.string "\0030"
.string ""
.string "f"
.string "f`"
.string "\006`"
.string "3\006fff\006`0f\0033333333330"
.string ""
.string "3333333330www"
.string "w\003\007pwww\0033\007p3"
.string "\007wwp0wwp3"
.string "wp\007ww\003\007w\007w\007p0w\0033333333330"
.string ""
.string "3333333330f"
.string ""
.string "0f\003\006`f"
.string "\006`3\006`0f\006`"
.string "f\006`"
.string ""
.string ""
.string ""
.string ""
.string "f\006`"
.string "3\006f\006f\006`0f\0033333333330"
.string ""
.string "3333333330U"
.string ""
.string ""
.string "U"
.string "\005PU"
.string "\005P3\005P"
.string "U\005P"
.string "U\005P"
.string "U\005P"
.string "U\005P"
.string ""
.string "\005P0U\005P0U\0033333333330"
.string ""
.string "3333333330DDD@\004DD"
.string "DDD\00330UUP\004DD@0DD@0DD@\004DDD\004@0D\004@0D\0033333333330"
.string ""
.string "3333333333"
.string ""
.string ""
.string "\0030"
.string ""
.string "3"
.string ""
.string ""
.string "333"
.string ""
.string "\0030"
.string ""
.string "\0033"
.string ""
.string "\0033"
.string ""
.string "\0030"
.string ""
.string ""
.string "0\0033"
.string "0\0033"
.string "\0033333333330"
.string ""
.string "33333333333333333333333333333333333333333333333333333333333330"
.string ""
.string "3333333333330"
.string ""
.string ""
.string "\0033"
.string ""
.string ""
.string "33"
.string ""
.string ""
.string "3"
.string ""
.string ""
.string ""
.string "3333"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "3"
.string ""
.string ""
.string "33"
.string ""
.string ""
.string "33333333330"
.string ""
.string "333333333330\004DDD@0DDG\0030DDG"
.string "DDDG\003330DDDDDDG"
.string "DDD\0030DDD33333333330"
.string ""
.string "33333333333\004B\"\"\"'"
.string "B\"\"p\004\"\"'\003\004\"\"p3333\004\"\"\"\"\"'\003\004\"$p\004\"\"p\0033333333330"
.string ""
.string "33333333330A\021\021\021\021\027\003\004\021\021p\004\021\021p30A\021p33330A\021\021\021\021\027\003\004\021\021p\004\021\021p33333333330"
.string ""
.string "3333333333\004\"\"\"\"\"'\003\004\"\"$B\"\"p30B\"p33330B\"\"\"\"'\0030B\"'B\"'\00333333333330"
.string ""
.string "3333333333\004DDGwww\0030DDDDDG\00330DDp33330DDwwww33\004DDDDp333333333330"
.string ""
.string "3333333330EUUp"
.string ""
.string "\007\0030EUUUUW\00330EUp"
.string ""
.string "330EUp"
.string ""
.string ""
.string "33\004UUUUp333333333330"
.string ""
.string "3333333330EUW\00333033\004UUUUp330EUDDD\00330EUtDDG\00330EUUW\003333333333330"
.string ""
.string "3333333330Ffg\00333333\004ffffp330Fffff@30Fffffg\00333\004ffp3333333333330"
.string ""
.string "3333333330Ffd\003333330Fffg\003330Fffffg\0030Fffffg\00333\004ffp3333333333330"
.string ""
.string "3333333330Gwt\00333"
.string "330Gwww\003330Gwwtww\0030Gwwwww\00330Gwww\003333333333330"
.string ""
.string "3333333330Gww@"
.string ""
.string "G\00333\004wwp3330Gw"
.string "\004ww\0030Gwp"
.string ""
.string ""
.string "33\004wwwwp333333333330"
.string ""
.string "3333333333\004wwtDDG\00333\004wwp3330GwDDww\0030GwtDDD\0033\004wwwwp333333333330"
.string ""
.string "3333333333\004wwwwwG\003330Gw\0033330Gwwwww\0030Gwwwww\0030GwwGww\00333333333330"
.string ""
.string "33333333330Gwwwww\003330Gw\0033330Gwwwwp30Gwwwww\003\004wwp\004wwp33333333330"
.string ""
.string "33333333333\004Gwwww\003333\004p3333\004wwwww\0033\004wwwwww\003\004wwp\004wwp33333333330"
.string ""
.string "333333333330\007wwwp3333\004p3330wwwwwp30wwwwwww"
.string "www\0030www33333333330"
.string ""
.string "3333333333330"
.string ""
.string ""
.string "\00333330\0033333"
.string ""
.string ""
.string ""
.string ""
.string "\00333"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "3"
.string ""
.string ""
.string "33"
.string ""
.string ""
.string "\0033333333330"
.string ""
.string "33333333333333333333333333333333333333333333333333333333333330"
.string ""
.string "33333333333333333333333333333333333333333333333333333333333330"
.string ""
.string "33333333333333333333333333333333333333333333333333333333333330"
.string ""
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global strtok_r
.type strtok_r, %function
strtok_r:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str x2, [sp, 24]
ldr x0, [sp, 40]
cmp x0, 0
beq .L2
ldr x0, [sp, 24]
ldr x1, [sp, 40]
str x1, [x0]
.L2:
ldr x0, [sp, 24]
ldr x0, [x0]
str x0, [sp, 48]
ldr x0, [sp, 48]
cmp x0, 0
bne .L5
mov x0, 0
b .L4
.L7:
ldr x0, [sp, 48]
add x0, x0, 1
str x0, [sp, 48]
.L5:
ldr x0, [sp, 48]
ldrb w0, [x0]
cmp w0, 0
beq .L6
ldr x0, [sp, 48]
ldrb w0, [x0]
mov w1, w0
ldr x0, [sp, 32]
bl strchr
cmp x0, 0
bne .L7
.L6:
ldr x0, [sp, 48]
ldrb w0, [x0]
cmp w0, 0
bne .L8
ldr x0, [sp, 24]
str xzr, [x0]
mov x0, 0
b .L4
.L8:
ldr x0, [sp, 48]
str x0, [sp, 56]
b .L9
.L11:
ldr x0, [sp, 56]
add x0, x0, 1
str x0, [sp, 56]
.L9:
ldr x0, [sp, 56]
ldrb w0, [x0]
cmp w0, 0
beq .L10
ldr x0, [sp, 56]
ldrb w0, [x0]
mov w1, w0
ldr x0, [sp, 32]
bl strchr
cmp x0, 0
beq .L11
.L10:
ldr x0, [sp, 56]
ldrb w0, [x0]
cmp w0, 0
bne .L12
ldr x0, [sp, 24]
str xzr, [x0]
b .L13
.L12:
ldr x0, [sp, 56]
strb wzr, [x0]
ldr x0, [sp, 56]
add x0, x0, 1
str x0, [sp, 56]
ldr x0, [sp, 24]
ldr x1, [sp, 56]
str x1, [x0]
.L13:
ldr x0, [sp, 48]
.L4:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size strtok_r, .-strtok_r
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Entre com a nota n1: "
.align 3
.LC1:
.string "%d"
.align 3
.LC2:
.string "Entre com a nota n2: "
.align 3
.LC3:
.string "\n Media = %f \n"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 40]
mov x1, 0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
add x0, sp, 28
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
add x0, sp, 32
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
ldr w1, [sp, 28]
ldr w0, [sp, 32]
add w0, w1, w0
fmov s0, w0
scvtf s1, s0
fmov s0, 2.0e+0
fdiv s0, s1, s0
str s0, [sp, 36]
ldr s0, [sp, 36]
fcvt d0, s0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 40]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L3
bl __stack_chk_fail
.L3:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Digite um valor de n"
.align 3
.LC1:
.string "%i"
.align 3
.LC2:
.string "%d\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 24]
mov x1, 0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
add x0, sp, 16
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
str wzr, [sp, 20]
b .L2
.L3:
ldr w1, [sp, 20]
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
.L2:
ldr w0, [sp, 16]
ldr w1, [sp, 20]
cmp w1, w0
ble .L3
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 24]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L5
bl __stack_chk_fail
.L5:
mov w0, w1
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global compareIntVal
.type compareIntVal, %function
compareIntVal:
.LFB6:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str x1, [sp]
ldr x0, [sp, 8]
str x0, [sp, 16]
ldr x0, [sp]
str x0, [sp, 24]
ldr x0, [sp, 16]
ldr w1, [x0]
ldr x0, [sp, 24]
ldr w0, [x0]
sub w0, w1, w0
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size compareIntVal, .-compareIntVal
.align 2
.global compareInt
.type compareInt, %function
compareInt:
.LFB7:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str x1, [sp]
ldr x0, [sp, 8]
ldr x0, [x0]
str x0, [sp, 16]
ldr x0, [sp]
ldr x0, [x0]
str x0, [sp, 24]
ldr x0, [sp, 16]
ldr w1, [x0]
ldr x0, [sp, 24]
ldr w0, [x0]
sub w0, w1, w0
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size compareInt, .-compareInt
.section .rodata
.align 3
.LC0:
.string "Running UseFiveSort ..."
.text
.align 2
.global main
.type main, %function
main:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
bl compareBentleyAgainstFivesort
mov w0, 0
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size main, .-main
.section .rodata
.align 3
.LC1:
.string "malloc fails for: %s\n"
.text
.align 2
.global myMalloc
.type myMalloc, %function
myMalloc:
.LFB9:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
str w1, [sp, 20]
ldrsw x0, [sp, 20]
bl malloc
str x0, [sp, 40]
ldr x0, [sp, 40]
cmp x0, 0
bne .L8
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
ldr x2, [sp, 24]
adrp x0, .LC1
add x1, x0, :lo12:.LC1
mov x0, x3
bl fprintf
mov w0, 1
bl exit
.L8:
ldr x0, [sp, 40]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size myMalloc, .-myMalloc
.align 2
.global fillarray
.type fillarray, %function
fillarray:
.LFB10:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
str w1, [sp, 20]
str w2, [sp, 16]
mov w0, 33554432
str w0, [sp, 36]
ldr w0, [sp, 16]
bl srand
str wzr, [sp, 32]
b .L11
.L12:
ldrsw x0, [sp, 32]
lsl x0, x0, 3
ldr x1, [sp, 24]
add x0, x1, x0
ldr x0, [x0]
str x0, [sp, 40]
bl rand
ldr w1, [sp, 36]
sdiv w2, w0, w1
ldr w1, [sp, 36]
mul w1, w2, w1
sub w1, w0, w1
ldr x0, [sp, 40]
str w1, [x0]
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L11:
ldr w1, [sp, 32]
ldr w0, [sp, 20]
cmp w1, w0
blt .L12
nop
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size fillarray, .-fillarray
.section .rodata
.align 3
.LC2:
.string "\n"
.align 3
.LC3:
.string " A[i]: "
.align 3
.LC4:
.string "Error at: "
.align 3
.LC5:
.string "%s %d %s %d %s"
.align 3
.LC6:
.string "check # errors: %d\n"
.text
.align 2
.global check
.type check, %function
check:
.LFB11:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 24]
str w1, [sp, 20]
str w2, [sp, 16]
str wzr, [sp, 36]
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 32]
b .L14
.L16:
ldrsw x0, [sp, 32]
lsl x0, x0, 3
sub x0, x0, #8
ldr x1, [sp, 24]
add x0, x1, x0
ldr x0, [x0]
str x0, [sp, 40]
ldrsw x0, [sp, 32]
lsl x0, x0, 3
ldr x1, [sp, 24]
add x0, x1, x0
ldr x0, [x0]
str x0, [sp, 48]
ldr x1, [sp, 40]
ldr x0, [sp, 48]
bl compareIntVal
cmp w0, 0
bge .L15
ldr x0, [sp, 48]
str x0, [sp, 56]
ldr x0, [sp, 56]
ldr w1, [x0]
adrp x0, .LC2
add x5, x0, :lo12:.LC2
mov w4, w1
adrp x0, .LC3
add x3, x0, :lo12:.LC3
ldr w2, [sp, 32]
adrp x0, .LC4
add x1, x0, :lo12:.LC4
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L15:
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L14:
ldr w1, [sp, 32]
ldr w0, [sp, 16]
cmp w1, w0
ble .L16
ldr w1, [sp, 36]
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl printf
nop
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size check, .-check
.align 2
.global check2
.type check2, %function
check2:
.LFB12:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 24]
str w1, [sp, 20]
str w2, [sp, 16]
str wzr, [sp, 36]
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 32]
b .L18
.L20:
ldrsw x0, [sp, 32]
lsl x0, x0, 3
sub x0, x0, #8
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 40]
ldrsw x0, [sp, 32]
lsl x0, x0, 3
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 48]
ldr x1, [sp, 40]
ldr x0, [sp, 48]
bl compareInt
cmp w0, 0
bge .L19
ldr x0, [sp, 48]
str x0, [sp, 56]
ldr x0, [sp, 56]
ldr w1, [x0]
adrp x0, .LC2
add x5, x0, :lo12:.LC2
mov w4, w1
adrp x0, .LC3
add x3, x0, :lo12:.LC3
ldr w2, [sp, 32]
adrp x0, .LC4
add x1, x0, :lo12:.LC4
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L19:
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L18:
ldr w1, [sp, 32]
ldr w0, [sp, 16]
cmp w1, w0
ble .L20
ldr w1, [sp, 36]
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl printf
nop
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE12:
.size check2, .-check2
.section .rodata
.align 3
.LC7:
.string "Running testFivesort on size %d ...\n"
.align 3
.LC8:
.string "testFivesort 1"
.align 3
.LC9:
.string "testFivesort 2"
.text
.align 2
.global testFivesort
.type testFivesort, %function
testFivesort:
.LFB13:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
mov w0, 16777216
str w0, [sp, 28]
ldr w1, [sp, 28]
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl printf
ldrsw x0, [sp, 28]
lsl w0, w0, 3
mov w1, w0
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl myMalloc
str x0, [sp, 32]
str wzr, [sp, 24]
b .L22
.L23:
mov w1, 8
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl myMalloc
str x0, [sp, 40]
ldrsw x0, [sp, 24]
lsl x0, x0, 3
ldr x1, [sp, 32]
add x0, x1, x0
ldr x1, [sp, 40]
str x1, [x0]
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L22:
ldr w1, [sp, 24]
ldr w0, [sp, 28]
cmp w1, w0
blt .L23
mov w2, 100
ldr w1, [sp, 28]
ldr x0, [sp, 32]
bl fillarray
adrp x0, compareIntVal
add x2, x0, :lo12:compareIntVal
ldr w1, [sp, 28]
ldr x0, [sp, 32]
bl fivesort
ldr w0, [sp, 28]
sub w0, w0, #1
mov w2, w0
mov w1, 0
ldr x0, [sp, 32]
bl check
str wzr, [sp, 24]
b .L24
.L25:
ldrsw x0, [sp, 24]
lsl x0, x0, 3
ldr x1, [sp, 32]
add x0, x1, x0
ldr x0, [x0]
bl free
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L24:
ldr w1, [sp, 24]
ldr w0, [sp, 28]
cmp w1, w0
blt .L25
ldr x0, [sp, 32]
bl free
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE13:
.size testFivesort, .-testFivesort
.section .rodata
.align 3
.LC10:
.string "%s on size: %d\n"
.align 3
.LC11:
.string "testAlgorithm0 1"
.align 3
.LC12:
.string "testAlgorithm0 2"
.text
.align 2
.global testAlgorithm0
.type testAlgorithm0, %function
testAlgorithm0:
.LFB14:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
str x0, [sp, 40]
str w1, [sp, 36]
str x2, [sp, 24]
ldr w2, [sp, 36]
ldr x1, [sp, 40]
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl printf
ldrsw x0, [sp, 36]
lsl w0, w0, 3
mov w1, w0
adrp x0, .LC11
add x0, x0, :lo12:.LC11
bl myMalloc
str x0, [sp, 64]
str wzr, [sp, 60]
b .L27
.L28:
mov w1, 8
adrp x0, .LC12
add x0, x0, :lo12:.LC12
bl myMalloc
str x0, [sp, 72]
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
ldr x1, [sp, 72]
str x1, [x0]
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L27:
ldr w1, [sp, 60]
ldr w0, [sp, 36]
cmp w1, w0
blt .L28
mov w2, 100
ldr w1, [sp, 36]
ldr x0, [sp, 64]
bl fillarray
ldr x3, [sp, 24]
adrp x0, compareIntVal
add x2, x0, :lo12:compareIntVal
ldr w1, [sp, 36]
ldr x0, [sp, 64]
blr x3
ldr w0, [sp, 36]
sub w0, w0, #1
mov w2, w0
mov w1, 0
ldr x0, [sp, 64]
bl check
str wzr, [sp, 60]
b .L29
.L30:
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
ldr x0, [x0]
bl free
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L29:
ldr w1, [sp, 60]
ldr w0, [sp, 36]
cmp w1, w0
blt .L30
ldr x0, [sp, 64]
bl free
nop
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE14:
.size testAlgorithm0, .-testAlgorithm0
.align 2
.global testAlgorithm
.type testAlgorithm, %function
testAlgorithm:
.LFB15:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
ldr x2, [sp, 16]
mov w1, 1048576
ldr x0, [sp, 24]
bl testAlgorithm0
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE15:
.size testAlgorithm, .-testAlgorithm
.section .rodata
.align 3
.LC13:
.string "Running fivesort ..."
.text
.align 2
.global testFiveSort2
.type testFiveSort2, %function
testFiveSort2:
.LFB16:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
adrp x0, :got:fivesort
ldr x1, [x0, #:got_lo12:fivesort]
adrp x0, .LC13
add x0, x0, :lo12:.LC13
bl testAlgorithm
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE16:
.size testFiveSort2, .-testFiveSort2
.section .rodata
.align 3
.LC14:
.string "Check quicksortm()"
.text
.align 2
.global testQuicksortm
.type testQuicksortm, %function
testQuicksortm:
.LFB17:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
adrp x0, callQuicksortm
add x2, x0, :lo12:callQuicksortm
mov w1, 1048576
adrp x0, .LC14
add x0, x0, :lo12:.LC14
bl testAlgorithm0
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE17:
.size testQuicksortm, .-testQuicksortm
.section .rodata
.align 3
.LC15:
.string "Running testBentley ..."
.align 3
.LC16:
.string "testBentley 1"
.align 3
.LC17:
.string "testBentley 2"
.text
.align 2
.global testBentley
.type testBentley, %function
testBentley:
.LFB18:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
adrp x0, .LC15
add x0, x0, :lo12:.LC15
bl puts
mov w0, 64
str w0, [sp, 28]
ldrsw x0, [sp, 28]
lsl w0, w0, 3
mov w1, w0
adrp x0, .LC16
add x0, x0, :lo12:.LC16
bl myMalloc
str x0, [sp, 32]
str wzr, [sp, 24]
b .L35
.L36:
mov w1, 8
adrp x0, .LC17
add x0, x0, :lo12:.LC17
bl myMalloc
str x0, [sp, 40]
ldrsw x0, [sp, 24]
lsl x0, x0, 3
ldr x1, [sp, 32]
add x0, x1, x0
ldr x1, [sp, 40]
str x1, [x0]
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L35:
ldr w1, [sp, 24]
ldr w0, [sp, 28]
cmp w1, w0
blt .L36
mov w2, 100
ldr w1, [sp, 28]
ldr x0, [sp, 32]
bl fillarray
ldr w0, [sp, 28]
sub w0, w0, #1
mov w2, w0
mov w1, 0
ldr x0, [sp, 32]
bl callBentley
ldr w0, [sp, 28]
sub w0, w0, #1
mov w2, w0
mov w1, 0
ldr x0, [sp, 32]
bl check2
str wzr, [sp, 24]
b .L37
.L38:
ldrsw x0, [sp, 24]
lsl x0, x0, 3
ldr x1, [sp, 32]
add x0, x1, x0
ldr x0, [x0]
bl free
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L37:
ldr w1, [sp, 24]
ldr w0, [sp, 28]
cmp w1, w0
blt .L38
ldr x0, [sp, 32]
bl free
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE18:
.size testBentley, .-testBentley
.section .rodata
.align 3
.LC18:
.string "validateAlgorithm0 1"
.align 3
.LC19:
.string "validateAlgorithm0 2"
.align 3
.LC20:
.string "validateAlgorithm0 3"
.align 3
.LC21:
.string "validateAlgorithm0 4"
.align 3
.LC22:
.string "validate error i: %d\n"
.align 3
.LC23:
.string "NO error found ..."
.text
.align 2
.global validateAlgorithm0
.type validateAlgorithm0, %function
validateAlgorithm0:
.LFB19:
.cfi_startproc
stp x29, x30, [sp, -96]!
.cfi_def_cfa_offset 96
.cfi_offset 29, -96
.cfi_offset 30, -88
mov x29, sp
str x0, [sp, 40]
str w1, [sp, 36]
str x2, [sp, 24]
str x3, [sp, 16]
ldr w2, [sp, 36]
ldr x1, [sp, 40]
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl printf
ldrsw x0, [sp, 36]
lsl w0, w0, 3
mov w1, w0
adrp x0, .LC18
add x0, x0, :lo12:.LC18
bl myMalloc
str x0, [sp, 72]
str wzr, [sp, 60]
b .L40
.L41:
mov w1, 8
adrp x0, .LC19
add x0, x0, :lo12:.LC19
bl myMalloc
str x0, [sp, 88]
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
ldr x1, [sp, 88]
str x1, [x0]
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L40:
ldr w1, [sp, 60]
ldr w0, [sp, 36]
cmp w1, w0
blt .L41
mov w0, 102
str w0, [sp, 68]
ldr w2, [sp, 68]
ldr w1, [sp, 36]
ldr x0, [sp, 72]
bl fillarray
ldr x3, [sp, 24]
adrp x0, compareIntVal
add x2, x0, :lo12:compareIntVal
ldr w1, [sp, 36]
ldr x0, [sp, 72]
blr x3
ldrsw x0, [sp, 36]
lsl w0, w0, 3
mov w1, w0
adrp x0, .LC20
add x0, x0, :lo12:.LC20
bl myMalloc
str x0, [sp, 80]
str wzr, [sp, 60]
b .L42
.L43:
mov w1, 8
adrp x0, .LC21
add x0, x0, :lo12:.LC21
bl myMalloc
str x0, [sp, 88]
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 80]
add x0, x1, x0
ldr x1, [sp, 88]
str x1, [x0]
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L42:
ldr w1, [sp, 60]
ldr w0, [sp, 36]
cmp w1, w0
blt .L43
ldr w2, [sp, 68]
ldr w1, [sp, 36]
ldr x0, [sp, 80]
bl fillarray
ldr x3, [sp, 16]
adrp x0, compareIntVal
add x2, x0, :lo12:compareIntVal
ldr w1, [sp, 36]
ldr x0, [sp, 80]
blr x3
str wzr, [sp, 64]
str wzr, [sp, 60]
b .L44
.L46:
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
ldr x2, [x0]
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 80]
add x0, x1, x0
ldr x0, [x0]
mov x1, x0
mov x0, x2
bl compareIntVal
cmp w0, 0
beq .L45
ldr w1, [sp, 60]
adrp x0, .LC22
add x0, x0, :lo12:.LC22
bl printf
mov w0, 1
str w0, [sp, 64]
.L45:
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L44:
ldr w1, [sp, 60]
ldr w0, [sp, 36]
cmp w1, w0
blt .L46
ldr w0, [sp, 64]
cmp w0, 0
bne .L47
adrp x0, .LC23
add x0, x0, :lo12:.LC23
bl puts
.L47:
str wzr, [sp, 60]
b .L48
.L49:
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
ldr x0, [x0]
bl free
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L48:
ldr w1, [sp, 60]
ldr w0, [sp, 36]
cmp w1, w0
blt .L49
ldr x0, [sp, 72]
bl free
str wzr, [sp, 60]
b .L50
.L51:
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 80]
add x0, x1, x0
ldr x0, [x0]
bl free
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L50:
ldr w1, [sp, 60]
ldr w0, [sp, 36]
cmp w1, w0
blt .L51
ldr x0, [sp, 80]
bl free
nop
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE19:
.size validateAlgorithm0, .-validateAlgorithm0
.align 2
.global validateAlgorithm
.type validateAlgorithm, %function
validateAlgorithm:
.LFB20:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str x2, [sp, 24]
ldr x3, [sp, 24]
ldr x2, [sp, 32]
mov w1, 16777216
ldr x0, [sp, 40]
bl validateAlgorithm0
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE20:
.size validateAlgorithm, .-validateAlgorithm
.section .rodata
.align 3
.LC24:
.string "Running validate XYZ against trusted callQuicksortm ..."
.text
.align 2
.global validateXYZ
.type validateXYZ, %function
validateXYZ:
.LFB21:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
adrp x0, callQuicksortm
add x2, x0, :lo12:callQuicksortm
adrp x0, :got:fivesort
ldr x1, [x0, #:got_lo12:fivesort]
adrp x0, .LC24
add x0, x0, :lo12:.LC24
bl validateAlgorithm
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE21:
.size validateXYZ, .-validateXYZ
.section .rodata
.align 3
.LC25:
.string "Validate Bentley against Cut2"
.text
.align 2
.global validateBentley
.type validateBentley, %function
validateBentley:
.LFB22:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
mov w0, 1048576
str w0, [sp, 24]
adrp x0, .LC25
add x0, x0, :lo12:.LC25
str x0, [sp, 32]
ldr w2, [sp, 24]
ldr x1, [sp, 32]
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl printf
ldrsw x0, [sp, 24]
lsl w0, w0, 3
mov w1, w0
adrp x0, .LC18
add x0, x0, :lo12:.LC18
bl myMalloc
str x0, [sp, 40]
str wzr, [sp, 16]
b .L55
.L56:
mov w1, 8
adrp x0, .LC19
add x0, x0, :lo12:.LC19
bl myMalloc
str x0, [sp, 56]
ldrsw x0, [sp, 16]
lsl x0, x0, 3
ldr x1, [sp, 40]
add x0, x1, x0
ldr x1, [sp, 56]
str x1, [x0]
ldr w0, [sp, 16]
add w0, w0, 1
str w0, [sp, 16]
.L55:
ldr w1, [sp, 16]
ldr w0, [sp, 24]
cmp w1, w0
blt .L56
mov w0, 102
str w0, [sp, 28]
ldr w2, [sp, 28]
ldr w1, [sp, 24]
ldr x0, [sp, 40]
bl fillarray
adrp x0, compareIntVal
add x2, x0, :lo12:compareIntVal
ldr w1, [sp, 24]
ldr x0, [sp, 40]
bl callCut2
ldrsw x0, [sp, 24]
lsl w0, w0, 3
mov w1, w0
adrp x0, .LC20
add x0, x0, :lo12:.LC20
bl myMalloc
str x0, [sp, 48]
str wzr, [sp, 16]
b .L57
.L58:
mov w1, 8
adrp x0, .LC21
add x0, x0, :lo12:.LC21
bl myMalloc
str x0, [sp, 56]
ldrsw x0, [sp, 16]
lsl x0, x0, 3
ldr x1, [sp, 48]
add x0, x1, x0
ldr x1, [sp, 56]
str x1, [x0]
ldr w0, [sp, 16]
add w0, w0, 1
str w0, [sp, 16]
.L57:
ldr w1, [sp, 16]
ldr w0, [sp, 24]
cmp w1, w0
blt .L58
ldr w2, [sp, 28]
ldr w1, [sp, 24]
ldr x0, [sp, 48]
bl fillarray
ldr w0, [sp, 24]
sub w0, w0, #1
mov w2, w0
mov w1, 0
ldr x0, [sp, 48]
bl callBentley
str wzr, [sp, 20]
str wzr, [sp, 16]
b .L59
.L61:
ldrsw x0, [sp, 16]
lsl x0, x0, 3
ldr x1, [sp, 40]
add x0, x1, x0
ldr x2, [x0]
ldrsw x0, [sp, 16]
lsl x0, x0, 3
ldr x1, [sp, 48]
add x0, x1, x0
ldr x0, [x0]
mov x1, x0
mov x0, x2
bl compareIntVal
cmp w0, 0
beq .L60
ldr w1, [sp, 16]
adrp x0, .LC22
add x0, x0, :lo12:.LC22
bl printf
mov w0, 1
str w0, [sp, 20]
.L60:
ldr w0, [sp, 16]
add w0, w0, 1
str w0, [sp, 16]
.L59:
ldr w1, [sp, 16]
ldr w0, [sp, 24]
cmp w1, w0
blt .L61
ldr w0, [sp, 20]
cmp w0, 0
bne .L62
adrp x0, .LC23
add x0, x0, :lo12:.LC23
bl puts
.L62:
str wzr, [sp, 16]
b .L63
.L64:
ldrsw x0, [sp, 16]
lsl x0, x0, 3
ldr x1, [sp, 40]
add x0, x1, x0
ldr x0, [x0]
bl free
ldr w0, [sp, 16]
add w0, w0, 1
str w0, [sp, 16]
.L63:
ldr w1, [sp, 16]
ldr w0, [sp, 24]
cmp w1, w0
blt .L64
ldr x0, [sp, 40]
bl free
str wzr, [sp, 16]
b .L65
.L66:
ldrsw x0, [sp, 16]
lsl x0, x0, 3
ldr x1, [sp, 48]
add x0, x1, x0
ldr x0, [x0]
bl free
ldr w0, [sp, 16]
add w0, w0, 1
str w0, [sp, 16]
.L65:
ldr w1, [sp, 16]
ldr w0, [sp, 24]
cmp w1, w0
blt .L66
ldr x0, [sp, 48]
bl free
nop
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE22:
.size validateBentley, .-validateBentley
.section .rodata
.align 3
.LC26:
.string "timeTest() of fivesort "
.align 3
.LC27:
.string "timeTest 1"
.align 3
.LC28:
.string "timeTest 2"
.align 3
.LC29:
.string "algTime: %f \n"
.align 3
.LC30:
.string "sumTimes: "
.align 3
.LC31:
.string "%s %f %s"
.text
.align 2
.global timeTest
.type timeTest, %function
timeTest:
.LFB23:
.cfi_startproc
stp x29, x30, [sp, -96]!
.cfi_def_cfa_offset 96
.cfi_offset 29, -96
.cfi_offset 30, -88
mov x29, sp
adrp x0, .LC26
add x0, x0, :lo12:.LC26
bl puts
mov w0, 10
str w0, [sp, 40]
mov w0, 1048576
str w0, [sp, 44]
ldrsw x0, [sp, 44]
lsl w0, w0, 3
mov w1, w0
adrp x0, .LC27
add x0, x0, :lo12:.LC27
bl myMalloc
str x0, [sp, 56]
str wzr, [sp, 36]
b .L68
.L69:
mov w1, 8
adrp x0, .LC28
add x0, x0, :lo12:.LC28
bl myMalloc
str x0, [sp, 88]
ldrsw x0, [sp, 36]
lsl x0, x0, 3
ldr x1, [sp, 56]
add x0, x1, x0
ldr x1, [sp, 88]
str x1, [x0]
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L68:
ldr w1, [sp, 36]
ldr w0, [sp, 44]
cmp w1, w0
blt .L69
mov w2, 666
ldr w1, [sp, 44]
ldr x0, [sp, 56]
bl fillarray
str xzr, [sp, 48]
str wzr, [sp, 32]
b .L70
.L75:
bl clock
str x0, [sp, 64]
str wzr, [sp, 28]
b .L71
.L72:
ldr w2, [sp, 28]
ldr w1, [sp, 44]
ldr x0, [sp, 56]
bl fillarray
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L71:
ldr w1, [sp, 28]
ldr w0, [sp, 40]
cmp w1, w0
blt .L72
bl clock
mov x1, x0
ldr x0, [sp, 64]
sub x0, x1, x0
str x0, [sp, 64]
bl clock
scvtf d0, x0
str d0, [sp, 72]
str wzr, [sp, 28]
b .L73
.L74:
ldr w2, [sp, 28]
ldr w1, [sp, 44]
ldr x0, [sp, 56]
bl fillarray
adrp x0, compareIntVal
add x2, x0, :lo12:compareIntVal
ldr w1, [sp, 44]
ldr x0, [sp, 56]
bl fivesort
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L73:
ldr w1, [sp, 28]
ldr w0, [sp, 40]
cmp w1, w0
blt .L74
bl clock
scvtf d1, x0
ldr d0, [sp, 72]
fsub d1, d1, d0
ldr d0, [sp, 64]
scvtf d0, d0
fsub d0, d1, d0
str d0, [sp, 80]
mov x0, 145685290680320
movk x0, 0x412e, lsl 48
fmov d1, x0
ldr d0, [sp, 80]
fdiv d0, d0, d1
str d0, [sp, 80]
ldr d0, [sp, 80]
adrp x0, .LC29
add x0, x0, :lo12:.LC29
bl printf
ldr d1, [sp, 48]
ldr d0, [sp, 80]
fadd d0, d1, d0
str d0, [sp, 48]
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L70:
ldr w0, [sp, 32]
cmp w0, 2
ble .L75
adrp x0, .LC2
add x2, x0, :lo12:.LC2
ldr d0, [sp, 48]
adrp x0, .LC30
add x1, x0, :lo12:.LC30
adrp x0, .LC31
add x0, x0, :lo12:.LC31
bl printf
str wzr, [sp, 36]
b .L76
.L77:
ldrsw x0, [sp, 36]
lsl x0, x0, 3
ldr x1, [sp, 56]
add x0, x1, x0
ldr x0, [x0]
bl free
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L76:
ldr w1, [sp, 36]
ldr w0, [sp, 44]
cmp w1, w0
blt .L77
ldr x0, [sp, 56]
bl free
nop
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE23:
.size timeTest, .-timeTest
.align 2
.global add
.type add, %function
add:
.LFB24:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str w0, [sp, 44]
str d0, [sp, 32]
str x1, [sp, 24]
ldr w0, [sp, 44]
cmp w0, 0
bgt .L79
ldr x0, [sp, 24]
ldr d0, [sp, 32]
str d0, [x0]
b .L78
.L79:
ldrsw x0, [sp, 44]
lsl x0, x0, 3
sub x0, x0, #8
ldr x1, [sp, 24]
add x0, x1, x0
ldr d0, [x0]
ldr d1, [sp, 32]
fcmpe d1, d0
bge .L83
b .L84
.L83:
ldrsw x0, [sp, 44]
lsl x0, x0, 3
ldr x1, [sp, 24]
add x0, x1, x0
ldr d0, [sp, 32]
str d0, [x0]
b .L78
.L84:
ldrsw x0, [sp, 44]
lsl x0, x0, 3
sub x0, x0, #8
ldr x1, [sp, 24]
add x1, x1, x0
ldrsw x0, [sp, 44]
lsl x0, x0, 3
ldr x2, [sp, 24]
add x0, x2, x0
ldr d0, [x1]
str d0, [x0]
ldr w0, [sp, 44]
sub w0, w0, #1
ldr x1, [sp, 24]
ldr d0, [sp, 32]
bl add
.L78:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE24:
.size add, .-add
.section .rodata
.align 3
.LC32:
.string "%s on size: %d seedLimit: %d\n"
.align 3
.LC33:
.string "The actual sort time must be divided by seedLimit."
.align 3
.LC34:
.string " seedLimit: "
.align 3
.LC35:
.string "siz: "
.align 3
.LC36:
.string "compareAlgorithms0 1"
.align 3
.LC37:
.string "compareAlgorithms0 2"
.align 3
.LC38:
.string " "
.align 3
.LC39:
.string "%s %d %s"
.align 3
.LC40:
.string "alg1Time: "
.align 3
.LC41:
.string "alg2Time: "
.align 3
.LC42:
.string "frac: "
.align 3
.LC43:
.string "alg1Middle %f alg2Middle %f\n"
.align 3
.LC44:
.string "siz: %d ratio: %f\n"
.text
.align 2
.global compareAlgorithms0
.type compareAlgorithms0, %function
compareAlgorithms0:
.LFB25:
.cfi_startproc
stp x29, x30, [sp, -336]!
.cfi_def_cfa_offset 336
.cfi_offset 29, -336
.cfi_offset 30, -328
mov x29, sp
.cfi_def_cfa_register 29
stp x19, x20, [sp, 16]
stp x21, x22, [sp, 32]
stp x23, x24, [sp, 48]
stp x25, x26, [sp, 64]
str x27, [sp, 80]
sub sp, sp, #16
.cfi_offset 19, -320
.cfi_offset 20, -312
.cfi_offset 21, -304
.cfi_offset 22, -296
.cfi_offset 23, -288
.cfi_offset 24, -280
.cfi_offset 25, -272
.cfi_offset 26, -264
.cfi_offset 27, -256
str x0, [x29, 184]
str w1, [x29, 180]
str w2, [x29, 176]
str x3, [x29, 168]
str x4, [x29, 160]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [x29, 328]
mov x1, 0
ldr w3, [x29, 176]
ldr w2, [x29, 180]
ldr x1, [x29, 184]
adrp x0, .LC32
add x0, x0, :lo12:.LC32
bl printf
adrp x0, .LC33
add x0, x0, :lo12:.LC33
bl puts
mov w0, 1
movk w0, 0x100, lsl 16
str w0, [x29, 204]
b .L86
.L111:
mov x0, sp
mov x19, x0
adrp x0, .LC2
add x5, x0, :lo12:.LC2
ldr w4, [x29, 176]
adrp x0, .LC34
add x3, x0, :lo12:.LC34
ldr w2, [x29, 180]
adrp x0, .LC35
add x1, x0, :lo12:.LC35
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
ldrsw x0, [x29, 180]
lsl w0, w0, 3
mov w1, w0
adrp x0, .LC36
add x0, x0, :lo12:.LC36
bl myMalloc
str x0, [x29, 232]
str wzr, [x29, 200]
b .L87
.L88:
mov w1, 8
adrp x0, .LC37
add x0, x0, :lo12:.LC37
bl myMalloc
str x0, [x29, 320]
ldrsw x0, [x29, 200]
lsl x0, x0, 3
ldr x1, [x29, 232]
add x0, x1, x0
ldr x1, [x29, 320]
str x1, [x0]
ldr w0, [x29, 200]
add w0, w0, 1
str w0, [x29, 200]
.L87:
ldr w1, [x29, 200]
ldr w0, [x29, 180]
cmp w1, w0
blt .L88
str wzr, [x29, 192]
b .L89
.L90:
ldr w2, [x29, 192]
ldr w1, [x29, 180]
ldr x0, [x29, 232]
bl fillarray
ldr w0, [x29, 192]
add w0, w0, 1
str w0, [x29, 192]
.L89:
ldr w1, [x29, 192]
ldr w0, [x29, 176]
cmp w1, w0
blt .L90
mov w0, 6
str w0, [x29, 208]
ldr w0, [x29, 208]
sub w0, w0, #1
sxtw x1, w0
sub x1, x1, #1
str x1, [x29, 240]
sxtw x1, w0
str x1, [x29, 144]
str xzr, [x29, 152]
ldp x2, x3, [x29, 144]
mov x1, x2
lsr x1, x1, 58
mov x4, x3
lsl x21, x4, 6
orr x21, x1, x21
mov x1, x2
lsl x20, x1, 6
sxtw x1, w0
str x1, [x29, 128]
str xzr, [x29, 136]
ldp x2, x3, [x29, 128]
mov x1, x2
lsr x1, x1, 58
mov x4, x3
lsl x23, x4, 6
orr x23, x1, x23
mov x1, x2
lsl x22, x1, 6
sxtw x0, w0
lsl x0, x0, 3
add x0, x0, 15
lsr x0, x0, 4
lsl x0, x0, 4
and x1, x0, -65536
sub x1, sp, x1
.L91:
cmp sp, x1
beq .L92
sub sp, sp, #65536
str xzr, [sp, 1024]
b .L91
.L92:
and x1, x0, 65535
sub sp, sp, x1
str xzr, [sp]
and x0, x0, 65535
cmp x0, 1024
bcc .L93
str xzr, [sp, 1024]
.L93:
add x0, sp, 16
add x0, x0, 7
lsr x0, x0, 3
lsl x0, x0, 3
str x0, [x29, 248]
ldr w0, [x29, 208]
sub w0, w0, #1
sxtw x1, w0
sub x1, x1, #1
str x1, [x29, 256]
sxtw x1, w0
str x1, [x29, 112]
str xzr, [x29, 120]
ldp x2, x3, [x29, 112]
mov x1, x2
lsr x1, x1, 58
mov x4, x3
lsl x25, x4, 6
orr x25, x1, x25
mov x1, x2
lsl x24, x1, 6
sxtw x1, w0
str x1, [x29, 96]
str xzr, [x29, 104]
ldp x2, x3, [x29, 96]
mov x1, x2
lsr x1, x1, 58
mov x4, x3
lsl x27, x4, 6
orr x27, x1, x27
mov x1, x2
lsl x26, x1, 6
sxtw x0, w0
lsl x0, x0, 3
add x0, x0, 15
lsr x0, x0, 4
lsl x0, x0, 4
and x1, x0, -65536
sub x1, sp, x1
.L94:
cmp sp, x1
beq .L95
sub sp, sp, #65536
str xzr, [sp, 1024]
b .L94
.L95:
and x1, x0, 65535
sub sp, sp, x1
str xzr, [sp]
and x0, x0, 65535
cmp x0, 1024
bcc .L96
str xzr, [sp, 1024]
.L96:
add x0, sp, 16
add x0, x0, 7
lsr x0, x0, 3
lsl x0, x0, 3
str x0, [x29, 264]
str wzr, [x29, 196]
b .L97
.L107:
bl clock
str x0, [x29, 288]
str wzr, [x29, 192]
b .L98
.L99:
ldr w2, [x29, 192]
ldr w1, [x29, 180]
ldr x0, [x29, 232]
bl fillarray
ldr w0, [x29, 192]
add w0, w0, 1
str w0, [x29, 192]
.L98:
ldr w1, [x29, 192]
ldr w0, [x29, 176]
cmp w1, w0
blt .L99
bl clock
mov x1, x0
ldr x0, [x29, 288]
sub x0, x1, x0
str x0, [x29, 288]
bl clock
str x0, [x29, 296]
str wzr, [x29, 192]
b .L100
.L101:
ldr w2, [x29, 192]
ldr w1, [x29, 180]
ldr x0, [x29, 232]
bl fillarray
ldr x3, [x29, 168]
adrp x0, compareIntVal
add x2, x0, :lo12:compareIntVal
ldr w1, [x29, 180]
ldr x0, [x29, 232]
blr x3
ldr w0, [x29, 192]
add w0, w0, 1
str w0, [x29, 192]
.L100:
ldr w1, [x29, 192]
ldr w0, [x29, 176]
cmp w1, w0
blt .L101
bl clock
mov x1, x0
ldr x0, [x29, 296]
sub x1, x1, x0
ldr x0, [x29, 288]
sub x0, x1, x0
fmov d0, x0
scvtf d0, d0
str d0, [x29, 304]
mov x0, 145685290680320
movk x0, 0x412e, lsl 48
fmov d1, x0
ldr d0, [x29, 304]
fdiv d0, d0, d1
str d0, [x29, 304]
ldr w0, [x29, 196]
cmp w0, 0
ble .L102
ldr w0, [x29, 196]
sub w0, w0, #1
ldr x1, [x29, 248]
ldr d0, [x29, 304]
bl add
.L102:
bl clock
str x0, [x29, 296]
str wzr, [x29, 192]
b .L103
.L104:
ldr w2, [x29, 192]
ldr w1, [x29, 180]
ldr x0, [x29, 232]
bl fillarray
ldr x3, [x29, 160]
adrp x0, compareIntVal
add x2, x0, :lo12:compareIntVal
ldr w1, [x29, 180]
ldr x0, [x29, 232]
blr x3
ldr w0, [x29, 192]
add w0, w0, 1
str w0, [x29, 192]
.L103:
ldr w1, [x29, 192]
ldr w0, [x29, 176]
cmp w1, w0
blt .L104
bl clock
mov x1, x0
ldr x0, [x29, 296]
sub x1, x1, x0
ldr x0, [x29, 288]
sub x0, x1, x0
fmov d0, x0
scvtf d0, d0
str d0, [x29, 312]
mov x0, 145685290680320
movk x0, 0x412e, lsl 48
fmov d1, x0
ldr d0, [x29, 312]
fdiv d0, d0, d1
str d0, [x29, 312]
ldr w0, [x29, 196]
cmp w0, 0
ble .L105
ldr w0, [x29, 196]
sub w0, w0, #1
ldr x1, [x29, 264]
ldr d0, [x29, 312]
bl add
.L105:
adrp x0, .LC38
add x3, x0, :lo12:.LC38
ldr w2, [x29, 180]
adrp x0, .LC35
add x1, x0, :lo12:.LC35
adrp x0, .LC39
add x0, x0, :lo12:.LC39
bl printf
adrp x0, .LC38
add x2, x0, :lo12:.LC38
ldr d0, [x29, 304]
adrp x0, .LC40
add x1, x0, :lo12:.LC40
adrp x0, .LC31
add x0, x0, :lo12:.LC31
bl printf
adrp x0, .LC38
add x2, x0, :lo12:.LC38
ldr d0, [x29, 312]
adrp x0, .LC41
add x1, x0, :lo12:.LC41
adrp x0, .LC31
add x0, x0, :lo12:.LC31
bl printf
str xzr, [x29, 216]
ldr d0, [x29, 304]
fcmp d0, #0.0
beq .L106
ldr d0, [x29, 304]
ldr d1, [x29, 312]
fdiv d0, d1, d0
str d0, [x29, 216]
.L106:
adrp x0, .LC2
add x2, x0, :lo12:.LC2
ldr d0, [x29, 216]
adrp x0, .LC42
add x1, x0, :lo12:.LC42
adrp x0, .LC31
add x0, x0, :lo12:.LC31
bl printf
ldr w0, [x29, 196]
add w0, w0, 1
str w0, [x29, 196]
.L97:
ldr w1, [x29, 196]
ldr w0, [x29, 208]
cmp w1, w0
blt .L107
ldr w0, [x29, 208]
lsr w1, w0, 31
add w0, w1, w0
asr w0, w0, 1
sub w0, w0, #1
str w0, [x29, 212]
ldr x0, [x29, 248]
ldrsw x1, [x29, 212]
ldr d0, [x0, x1, lsl 3]
str d0, [x29, 272]
ldr x0, [x29, 264]
ldrsw x1, [x29, 212]
ldr d0, [x0, x1, lsl 3]
str d0, [x29, 280]
ldr d1, [x29, 280]
ldr d0, [x29, 272]
adrp x0, .LC43
add x0, x0, :lo12:.LC43
bl printf
str xzr, [x29, 224]
ldr d0, [x29, 272]
fcmp d0, #0.0
beq .L108
ldr d0, [x29, 272]
ldr d1, [x29, 280]
fdiv d0, d1, d0
str d0, [x29, 224]
.L108:
ldr d0, [x29, 224]
ldr w1, [x29, 180]
adrp x0, .LC44
add x0, x0, :lo12:.LC44
bl printf
str wzr, [x29, 200]
b .L109
.L110:
ldrsw x0, [x29, 200]
lsl x0, x0, 3
ldr x1, [x29, 232]
add x0, x1, x0
ldr x0, [x0]
bl free
ldr w0, [x29, 200]
add w0, w0, 1
str w0, [x29, 200]
.L109:
ldr w1, [x29, 200]
ldr w0, [x29, 180]
cmp w1, w0
blt .L110
ldr x0, [x29, 232]
bl free
ldr w0, [x29, 180]
lsl w0, w0, 2
str w0, [x29, 180]
ldr w0, [x29, 176]
add w1, w0, 3
cmp w0, 0
csel w0, w1, w0, lt
asr w0, w0, 2
str w0, [x29, 176]
mov sp, x19
.L86:
ldr w1, [x29, 180]
ldr w0, [x29, 204]
cmp w1, w0
ble .L111
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [x29, 328]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L112
bl __stack_chk_fail
.L112:
mov sp, x29
ldp x19, x20, [sp, 16]
ldp x21, x22, [sp, 32]
ldp x23, x24, [sp, 48]
ldp x25, x26, [sp, 64]
ldr x27, [sp, 80]
ldp x29, x30, [sp], 336
.cfi_restore 30
.cfi_restore 29
.cfi_restore 27
.cfi_restore 25
.cfi_restore 26
.cfi_restore 23
.cfi_restore 24
.cfi_restore 21
.cfi_restore 22
.cfi_restore 19
.cfi_restore 20
.cfi_def_cfa 31, 0
ret
.cfi_endproc
.LFE25:
.size compareAlgorithms0, .-compareAlgorithms0
.align 2
.global compareAlgorithms
.type compareAlgorithms, %function
compareAlgorithms:
.LFB26:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str x2, [sp, 24]
ldr x4, [sp, 24]
ldr x3, [sp, 32]
mov w2, 32768
mov w1, 1024
ldr x0, [sp, 40]
bl compareAlgorithms0
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE26:
.size compareAlgorithms, .-compareAlgorithms
.section .rodata
.align 3
.LC45:
.string "Compare quicksortm vs fivesort"
.text
.align 2
.global compareQuicksortmAgainstFivesort
.type compareQuicksortmAgainstFivesort, %function
compareQuicksortmAgainstFivesort:
.LFB27:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
adrp x0, :got:fivesort
ldr x2, [x0, #:got_lo12:fivesort]
adrp x0, callQuicksortm
add x1, x0, :lo12:callQuicksortm
adrp x0, .LC45
add x0, x0, :lo12:.LC45
bl compareAlgorithms
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE27:
.size compareQuicksortmAgainstFivesort, .-compareQuicksortmAgainstFivesort
.section .rodata
.align 3
.LC46:
.string "Compare cut2 vs fivesort"
.text
.align 2
.global compareCut2AgainstFivesort
.type compareCut2AgainstFivesort, %function
compareCut2AgainstFivesort:
.LFB28:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
adrp x0, :got:fivesort
ldr x2, [x0, #:got_lo12:fivesort]
adrp x0, callCut2
add x1, x0, :lo12:callCut2
adrp x0, .LC46
add x0, x0, :lo12:.LC46
bl compareAlgorithms
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE28:
.size compareCut2AgainstFivesort, .-compareCut2AgainstFivesort
.align 2
.global callQuicksortm
.type callQuicksortm, %function
callQuicksortm:
.LFB29:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 40]
str w1, [sp, 36]
str x2, [sp, 24]
ldr w0, [sp, 36]
sub w0, w0, #1
ldr x3, [sp, 24]
mov w2, w0
mov w1, 0
ldr x0, [sp, 40]
bl quicksortm
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE29:
.size callQuicksortm, .-callQuicksortm
.align 2
.global callCut2
.type callCut2, %function
callCut2:
.LFB30:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 40]
str w1, [sp, 36]
str x2, [sp, 24]
ldr w0, [sp, 36]
sub w0, w0, #1
ldr x3, [sp, 24]
mov w2, w0
mov w1, 0
ldr x0, [sp, 40]
bl cut2
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE30:
.size callCut2, .-callCut2
.align 2
.global callBentley
.type callBentley, %function
callBentley:
.LFB31:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
str w1, [sp, 20]
str w2, [sp, 16]
ldrsw x0, [sp, 20]
lsl x0, x0, 3
ldr x1, [sp, 24]
add x4, x1, x0
ldr w1, [sp, 16]
ldr w0, [sp, 20]
sub w0, w1, w0
add w1, w0, 1
adrp x0, compareInt
add x3, x0, :lo12:compareInt
mov x2, 8
mov x0, x4
bl bentley
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE31:
.size callBentley, .-callBentley
.align 2
.type swapfunc, %function
swapfunc:
.LFB32:
.cfi_startproc
stp x19, x20, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 19, -80
.cfi_offset 20, -72
str x21, [sp, 16]
.cfi_offset 21, -64
str x0, [sp, 56]
str x1, [sp, 48]
str w2, [sp, 44]
str w3, [sp, 40]
ldr w0, [sp, 40]
cmp w0, 1
bgt .L120
ldrsw x0, [sp, 44]
lsr x0, x0, 3
str x0, [sp, 64]
ldr x20, [sp, 56]
ldr x19, [sp, 48]
.L121:
ldr x21, [x20]
mov x0, x20
add x20, x0, 8
ldr x1, [x19]
str x1, [x0]
mov x0, x19
add x19, x0, 8
str x21, [x0]
ldr x0, [sp, 64]
sub x0, x0, #1
str x0, [sp, 64]
ldr x0, [sp, 64]
cmp x0, 0
bgt .L121
b .L124
.L120:
ldrsw x0, [sp, 44]
str x0, [sp, 72]
ldr x20, [sp, 56]
ldr x19, [sp, 48]
.L123:
ldrb w21, [x20]
mov x0, x20
add x20, x0, 1
ldrb w1, [x19]
strb w1, [x0]
mov x0, x19
add x19, x0, 1
mov w1, w21
strb w1, [x0]
ldr x0, [sp, 72]
sub x0, x0, #1
str x0, [sp, 72]
ldr x0, [sp, 72]
cmp x0, 0
bgt .L123
.L124:
nop
ldr x21, [sp, 16]
ldp x19, x20, [sp], 80
.cfi_restore 20
.cfi_restore 19
.cfi_restore 21
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE32:
.size swapfunc, .-swapfunc
.align 2
.type med33, %function
med33:
.LFB33:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str x2, [sp, 24]
str x3, [sp, 16]
ldr x2, [sp, 16]
ldr x1, [sp, 32]
ldr x0, [sp, 40]
blr x2
cmp w0, 0
bge .L126
ldr x2, [sp, 16]
ldr x1, [sp, 24]
ldr x0, [sp, 32]
blr x2
cmp w0, 0
blt .L127
ldr x2, [sp, 16]
ldr x1, [sp, 24]
ldr x0, [sp, 40]
blr x2
cmp w0, 0
bge .L128
ldr x0, [sp, 24]
b .L136
.L128:
ldr x0, [sp, 40]
b .L136
.L127:
ldr x0, [sp, 32]
b .L136
.L126:
ldr x2, [sp, 16]
ldr x1, [sp, 24]
ldr x0, [sp, 32]
blr x2
cmp w0, 0
bgt .L132
ldr x2, [sp, 16]
ldr x1, [sp, 24]
ldr x0, [sp, 40]
blr x2
cmp w0, 0
bge .L133
ldr x0, [sp, 40]
b .L136
.L133:
ldr x0, [sp, 24]
b .L136
.L132:
ldr x0, [sp, 32]
.L136:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE33:
.size med33, .-med33
.align 2
.global bentley
.type bentley, %function
bentley:
.LFB34:
.cfi_startproc
stp x29, x30, [sp, -176]!
.cfi_def_cfa_offset 176
.cfi_offset 29, -176
.cfi_offset 30, -168
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str x2, [sp, 24]
str x3, [sp, 16]
.L138:
ldr x0, [sp, 40]
and x0, x0, 7
cmp x0, 0
bne .L139
ldr x0, [sp, 24]
and x0, x0, 7
cmp x0, 0
bne .L139
ldr x0, [sp, 24]
cmp x0, 8
cset w0, ne
and w0, w0, 255
b .L140
.L139:
mov w0, 2
.L140:
str w0, [sp, 60]
ldr x0, [sp, 32]
cmp x0, 6
bhi .L141
ldr x1, [sp, 40]
ldr x0, [sp, 24]
add x0, x1, x0
str x0, [sp, 120]
b .L142
.L148:
ldr x0, [sp, 120]
str x0, [sp, 112]
b .L143
.L147:
ldr w0, [sp, 60]
cmp w0, 0
bne .L144
ldr x0, [sp, 112]
ldr x0, [x0]
str x0, [sp, 168]
ldr x0, [sp, 24]
neg x0, x0
ldr x1, [sp, 112]
add x0, x1, x0
ldr x1, [x0]
ldr x0, [sp, 112]
str x1, [x0]
ldr x0, [sp, 24]
neg x0, x0
ldr x1, [sp, 112]
add x0, x1, x0
ldr x1, [sp, 168]
str x1, [x0]
b .L145
.L144:
ldr x0, [sp, 24]
neg x0, x0
ldr x1, [sp, 112]
add x0, x1, x0
ldr w3, [sp, 60]
ldr x2, [sp, 24]
mov x1, x0
ldr x0, [sp, 112]
bl swapfunc
.L145:
ldr x0, [sp, 24]
neg x0, x0
ldr x1, [sp, 112]
add x0, x1, x0
str x0, [sp, 112]
.L143:
ldr x1, [sp, 112]
ldr x0, [sp, 40]
cmp x1, x0
bls .L146
ldr x0, [sp, 24]
neg x0, x0
ldr x1, [sp, 112]
add x0, x1, x0
ldr x2, [sp, 16]
ldr x1, [sp, 112]
blr x2
cmp w0, 0
bgt .L147
.L146:
ldr x1, [sp, 120]
ldr x0, [sp, 24]
add x0, x1, x0
str x0, [sp, 120]
.L142:
ldr x1, [sp, 32]
ldr x0, [sp, 24]
mul x0, x1, x0
ldr x1, [sp, 40]
add x0, x1, x0
ldr x1, [sp, 120]
cmp x1, x0
bcc .L148
b .L137
.L141:
ldr x0, [sp, 32]
lsr x1, x0, 1
ldr x0, [sp, 24]
mul x0, x1, x0
ldr x1, [sp, 40]
add x0, x1, x0
str x0, [sp, 120]
ldr x0, [sp, 32]
cmp x0, 7
bls .L150
ldr x0, [sp, 40]
str x0, [sp, 112]
ldr x0, [sp, 32]
sub x1, x0, #1
ldr x0, [sp, 24]
mul x0, x1, x0
ldr x1, [sp, 40]
add x0, x1, x0
str x0, [sp, 128]
ldr x0, [sp, 32]
cmp x0, 40
bls .L151
ldr x0, [sp, 32]
lsr x0, x0, 3
mov w1, w0
ldr x0, [sp, 24]
mul w0, w1, w0
str w0, [sp, 64]
ldrsw x0, [sp, 64]
ldr x1, [sp, 112]
add x4, x1, x0
ldr w0, [sp, 64]
lsl w0, w0, 1
sxtw x0, w0
ldr x1, [sp, 112]
add x0, x1, x0
ldr x3, [sp, 16]
mov x2, x0
mov x1, x4
ldr x0, [sp, 112]
bl med33
str x0, [sp, 112]
ldrsw x0, [sp, 64]
neg x0, x0
ldr x1, [sp, 120]
add x4, x1, x0
ldrsw x0, [sp, 64]
ldr x1, [sp, 120]
add x0, x1, x0
ldr x3, [sp, 16]
mov x2, x0
ldr x1, [sp, 120]
mov x0, x4
bl med33
str x0, [sp, 120]
ldr w0, [sp, 64]
lsl w0, w0, 1
sxtw x0, w0
neg x0, x0
ldr x1, [sp, 128]
add x4, x1, x0
ldrsw x0, [sp, 64]
neg x0, x0
ldr x1, [sp, 128]
add x0, x1, x0
ldr x3, [sp, 16]
ldr x2, [sp, 128]
mov x1, x0
mov x0, x4
bl med33
str x0, [sp, 128]
.L151:
ldr x3, [sp, 16]
ldr x2, [sp, 128]
ldr x1, [sp, 120]
ldr x0, [sp, 112]
bl med33
str x0, [sp, 120]
.L150:
ldr w0, [sp, 60]
cmp w0, 0
bne .L152
ldr x0, [sp, 40]
ldr x0, [x0]
str x0, [sp, 136]
ldr x0, [sp, 120]
ldr x1, [x0]
ldr x0, [sp, 40]
str x1, [x0]
ldr x0, [sp, 120]
ldr x1, [sp, 136]
str x1, [x0]
b .L153
.L152:
ldr w3, [sp, 60]
ldr x2, [sp, 24]
ldr x1, [sp, 120]
ldr x0, [sp, 40]
bl swapfunc
.L153:
ldr x1, [sp, 40]
ldr x0, [sp, 24]
add x0, x1, x0
str x0, [sp, 88]
ldr x0, [sp, 88]
str x0, [sp, 80]
ldr x0, [sp, 32]
sub x1, x0, #1
ldr x0, [sp, 24]
mul x0, x1, x0
ldr x1, [sp, 40]
add x0, x1, x0
str x0, [sp, 104]
ldr x0, [sp, 104]
str x0, [sp, 96]
b .L154
.L159:
ldr w0, [sp, 68]
cmp w0, 0
bne .L155
ldr w0, [sp, 60]
cmp w0, 0
bne .L156
ldr x0, [sp, 80]
ldr x0, [x0]
str x0, [sp, 144]
ldr x0, [sp, 88]
ldr x1, [x0]
ldr x0, [sp, 80]
str x1, [x0]
ldr x0, [sp, 88]
ldr x1, [sp, 144]
str x1, [x0]
b .L157
.L156:
ldr w3, [sp, 60]
ldr x2, [sp, 24]
ldr x1, [sp, 88]
ldr x0, [sp, 80]
bl swapfunc
.L157:
ldr x1, [sp, 80]
ldr x0, [sp, 24]
add x0, x1, x0
str x0, [sp, 80]
.L155:
ldr x1, [sp, 88]
ldr x0, [sp, 24]
add x0, x1, x0
str x0, [sp, 88]
.L154:
ldr x1, [sp, 88]
ldr x0, [sp, 96]
cmp x1, x0
bhi .L160
ldr x2, [sp, 16]
ldr x1, [sp, 40]
ldr x0, [sp, 88]
blr x2
str w0, [sp, 68]
ldr w0, [sp, 68]
cmp w0, 0
ble .L159
b .L160
.L165:
ldr w0, [sp, 68]
cmp w0, 0
bne .L161
ldr w0, [sp, 60]
cmp w0, 0
bne .L162
ldr x0, [sp, 96]
ldr x0, [x0]
str x0, [sp, 152]
ldr x0, [sp, 104]
ldr x1, [x0]
ldr x0, [sp, 96]
str x1, [x0]
ldr x0, [sp, 104]
ldr x1, [sp, 152]
str x1, [x0]
b .L163
.L162:
ldr w3, [sp, 60]
ldr x2, [sp, 24]
ldr x1, [sp, 104]
ldr x0, [sp, 96]
bl swapfunc
.L163:
ldr x0, [sp, 24]
neg x0, x0
ldr x1, [sp, 104]
add x0, x1, x0
str x0, [sp, 104]
.L161:
ldr x0, [sp, 24]
neg x0, x0
ldr x1, [sp, 96]
add x0, x1, x0
str x0, [sp, 96]
.L160:
ldr x1, [sp, 88]
ldr x0, [sp, 96]
cmp x1, x0
bhi .L164
ldr x2, [sp, 16]
ldr x1, [sp, 40]
ldr x0, [sp, 96]
blr x2
str w0, [sp, 68]
ldr w0, [sp, 68]
cmp w0, 0
bge .L165
.L164:
ldr x1, [sp, 88]
ldr x0, [sp, 96]
cmp x1, x0
bhi .L177
ldr w0, [sp, 60]
cmp w0, 0
bne .L168
ldr x0, [sp, 88]
ldr x0, [x0]
str x0, [sp, 160]
ldr x0, [sp, 96]
ldr x1, [x0]
ldr x0, [sp, 88]
str x1, [x0]
ldr x0, [sp, 96]
ldr x1, [sp, 160]
str x1, [x0]
b .L169
.L168:
ldr w3, [sp, 60]
ldr x2, [sp, 24]
ldr x1, [sp, 96]
ldr x0, [sp, 88]
bl swapfunc
.L169:
ldr x1, [sp, 88]
ldr x0, [sp, 24]
add x0, x1, x0
str x0, [sp, 88]
ldr x0, [sp, 24]
neg x0, x0
ldr x1, [sp, 96]
add x0, x1, x0
str x0, [sp, 96]
b .L154
.L177:
nop
ldr x1, [sp, 32]
ldr x0, [sp, 24]
mul x0, x1, x0
ldr x1, [sp, 40]
add x0, x1, x0
str x0, [sp, 128]
ldr x1, [sp, 88]
ldr x0, [sp, 80]
sub x1, x1, x0
ldr x2, [sp, 80]
ldr x0, [sp, 40]
sub x0, x2, x0
cmp x1, x0
csel x0, x1, x0, le
str w0, [sp, 68]
ldr w0, [sp, 68]
cmp w0, 0
ble .L171
ldrsw x0, [sp, 68]
neg x0, x0
ldr x1, [sp, 88]
add x0, x1, x0
ldr w3, [sp, 60]
ldr w2, [sp, 68]
mov x1, x0
ldr x0, [sp, 40]
bl swapfunc
.L171:
ldr x1, [sp, 128]
ldr x0, [sp, 104]
sub x0, x1, x0
mov x1, x0
ldr x0, [sp, 24]
sub x0, x1, x0
ldr x2, [sp, 104]
ldr x1, [sp, 96]
sub x1, x2, x1
cmp x0, x1
csel x0, x0, x1, ls
str w0, [sp, 68]
ldr w0, [sp, 68]
cmp w0, 0
ble .L172
ldrsw x0, [sp, 68]
neg x0, x0
ldr x1, [sp, 128]
add x0, x1, x0
ldr w3, [sp, 60]
ldr w2, [sp, 68]
mov x1, x0
ldr x0, [sp, 88]
bl swapfunc
.L172:
ldr x1, [sp, 88]
ldr x0, [sp, 80]
sub x0, x1, x0
str w0, [sp, 72]
ldr x1, [sp, 104]
ldr x0, [sp, 96]
sub x0, x1, x0
str w0, [sp, 76]
ldr w1, [sp, 72]
ldr w0, [sp, 76]
cmp w1, w0
bgt .L173
ldrsw x0, [sp, 72]
ldr x1, [sp, 24]
cmp x1, x0
bcs .L174
ldrsw x1, [sp, 72]
ldr x0, [sp, 24]
udiv x0, x1, x0
ldr x3, [sp, 16]
ldr x2, [sp, 24]
mov x1, x0
ldr x0, [sp, 40]
bl bentley
.L174:
ldrsw x0, [sp, 76]
ldr x1, [sp, 24]
cmp x1, x0
bcs .L137
ldrsw x0, [sp, 76]
neg x0, x0
ldr x1, [sp, 128]
add x0, x1, x0
str x0, [sp, 40]
ldrsw x1, [sp, 76]
ldr x0, [sp, 24]
udiv x0, x1, x0
str x0, [sp, 32]
b .L138
.L173:
ldrsw x0, [sp, 76]
ldr x1, [sp, 24]
cmp x1, x0
bcs .L175
ldrsw x0, [sp, 76]
neg x0, x0
ldr x1, [sp, 128]
add x4, x1, x0
ldrsw x1, [sp, 76]
ldr x0, [sp, 24]
udiv x0, x1, x0
ldr x3, [sp, 16]
ldr x2, [sp, 24]
mov x1, x0
mov x0, x4
bl bentley
.L175:
ldrsw x0, [sp, 72]
ldr x1, [sp, 24]
cmp x1, x0
bcs .L137
ldrsw x1, [sp, 72]
ldr x0, [sp, 24]
udiv x0, x1, x0
str x0, [sp, 32]
b .L138
.L137:
ldp x29, x30, [sp], 176
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE34:
.size bentley, .-bentley
.align 2
.global reverse
.type reverse, %function
reverse:
.LFB35:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
str w1, [sp, 20]
ldr w0, [sp, 20]
sub w0, w0, #1
mov w2, w0
mov w1, 0
ldr x0, [sp, 24]
bl reverse2
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE35:
.size reverse, .-reverse
.align 2
.global reverse2
.type reverse2, %function
reverse2:
.LFB36:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str w1, [sp, 4]
str w2, [sp]
b .L180
.L181:
ldrsw x0, [sp, 4]
lsl x0, x0, 3
ldr x1, [sp, 8]
add x0, x1, x0
ldr x0, [x0]
str x0, [sp, 24]
ldrsw x0, [sp]
lsl x0, x0, 3
ldr x1, [sp, 8]
add x1, x1, x0
ldr w0, [sp, 4]
add w2, w0, 1
str w2, [sp, 4]
sxtw x0, w0
lsl x0, x0, 3
ldr x2, [sp, 8]
add x0, x2, x0
ldr x1, [x1]
str x1, [x0]
ldr w0, [sp]
sub w1, w0, #1
str w1, [sp]
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 8]
add x0, x1, x0
ldr x1, [sp, 24]
str x1, [x0]
.L180:
ldr w1, [sp, 4]
ldr w0, [sp]
cmp w1, w0
blt .L181
nop
nop
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE36:
.size reverse2, .-reverse2
.align 2
.global reverseFront
.type reverseFront, %function
reverseFront:
.LFB37:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
str w1, [sp, 20]
ldr w0, [sp, 20]
lsr w1, w0, 31
add w0, w1, w0
asr w0, w0, 1
mov w2, w0
mov w1, 0
ldr x0, [sp, 24]
bl reverse2
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE37:
.size reverseFront, .-reverseFront
.align 2
.global reverseBack
.type reverseBack, %function
reverseBack:
.LFB38:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
str w1, [sp, 20]
ldr w0, [sp, 20]
lsr w1, w0, 31
add w0, w1, w0
asr w0, w0, 1
mov w1, w0
ldr w0, [sp, 20]
sub w0, w0, #1
mov w2, w0
ldr x0, [sp, 24]
bl reverse2
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE38:
.size reverseBack, .-reverseBack
.align 2
.global tweakSort
.type tweakSort, %function
tweakSort:
.LFB39:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
str w1, [sp, 20]
adrp x0, compareIntVal
add x2, x0, :lo12:compareIntVal
ldr w1, [sp, 20]
ldr x0, [sp, 24]
bl callCut2
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE39:
.size tweakSort, .-tweakSort
.align 2
.global dither
.type dither, %function
dither:
.LFB40:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str w1, [sp, 4]
str wzr, [sp, 20]
b .L186
.L187:
ldrsw x0, [sp, 20]
lsl x0, x0, 3
ldr x1, [sp, 8]
add x0, x1, x0
ldr x0, [x0]
str x0, [sp, 24]
ldr x0, [sp, 24]
ldr w3, [x0]
ldr w2, [sp, 20]
mov w0, 26215
movk w0, 0x6666, lsl 16
smull x0, w2, w0
lsr x0, x0, 32
asr w1, w0, 1
asr w0, w2, 31
sub w1, w1, w0
mov w0, w1
lsl w0, w0, 2
add w0, w0, w1
sub w1, w2, w0
add w1, w3, w1
ldr x0, [sp, 24]
str w1, [x0]
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
.L186:
ldr w1, [sp, 20]
ldr w0, [sp, 4]
cmp w1, w0
blt .L187
nop
nop
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE40:
.size dither, .-dither
.align 2
.global sawtooth
.type sawtooth, %function
sawtooth:
.LFB41:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 40]
str w1, [sp, 36]
str w2, [sp, 32]
str w3, [sp, 28]
str wzr, [sp, 52]
b .L189
.L190:
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 40]
add x0, x1, x0
ldr x0, [x0]
str x0, [sp, 56]
ldr w0, [sp, 52]
ldr w1, [sp, 32]
sdiv w2, w0, w1
ldr w1, [sp, 32]
mul w1, w2, w1
sub w1, w0, w1
ldr x0, [sp, 56]
str w1, [x0]
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
.L189:
ldr w1, [sp, 52]
ldr w0, [sp, 36]
cmp w1, w0
blt .L190
ldr w0, [sp, 28]
cmp w0, 0
ble .L197
ldr w0, [sp, 28]
cmp w0, 1
bne .L193
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl reverse
b .L188
.L193:
ldr w0, [sp, 28]
cmp w0, 2
bne .L194
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl reverseFront
b .L188
.L194:
ldr w0, [sp, 28]
cmp w0, 3
bne .L195
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl reverseBack
b .L188
.L195:
ldr w0, [sp, 28]
cmp w0, 4
bne .L196
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl tweakSort
b .L188
.L196:
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl dither
b .L188
.L197:
nop
.L188:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE41:
.size sawtooth, .-sawtooth
.align 2
.global rand2
.type rand2, %function
rand2:
.LFB42:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 40]
str w1, [sp, 36]
str w2, [sp, 32]
str w3, [sp, 28]
str w4, [sp, 24]
ldr w0, [sp, 24]
bl srand
str wzr, [sp, 52]
b .L199
.L200:
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 40]
add x0, x1, x0
ldr x0, [x0]
str x0, [sp, 56]
bl rand
ldr w1, [sp, 32]
sdiv w2, w0, w1
ldr w1, [sp, 32]
mul w1, w2, w1
sub w1, w0, w1
ldr x0, [sp, 56]
str w1, [x0]
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
.L199:
ldr w1, [sp, 52]
ldr w0, [sp, 36]
cmp w1, w0
blt .L200
ldr w0, [sp, 28]
cmp w0, 0
ble .L207
ldr w0, [sp, 28]
cmp w0, 1
bne .L203
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl reverse
b .L198
.L203:
ldr w0, [sp, 28]
cmp w0, 2
bne .L204
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl reverseFront
b .L198
.L204:
ldr w0, [sp, 28]
cmp w0, 3
bne .L205
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl reverseBack
b .L198
.L205:
ldr w0, [sp, 28]
cmp w0, 4
bne .L206
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl tweakSort
b .L198
.L206:
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl dither
b .L198
.L207:
nop
.L198:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE42:
.size rand2, .-rand2
.align 2
.global stagger
.type stagger, %function
stagger:
.LFB43:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 40]
str w1, [sp, 36]
str w2, [sp, 32]
str w3, [sp, 28]
str wzr, [sp, 52]
b .L209
.L210:
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 40]
add x0, x1, x0
ldr x0, [x0]
str x0, [sp, 56]
ldr w1, [sp, 52]
ldr w0, [sp, 32]
mul w1, w1, w0
ldr w0, [sp, 52]
add w0, w1, w0
ldr w1, [sp, 36]
sdiv w2, w0, w1
ldr w1, [sp, 36]
mul w1, w2, w1
sub w1, w0, w1
ldr x0, [sp, 56]
str w1, [x0]
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
.L209:
ldr w1, [sp, 52]
ldr w0, [sp, 36]
cmp w1, w0
blt .L210
ldr w0, [sp, 28]
cmp w0, 0
ble .L217
ldr w0, [sp, 28]
cmp w0, 1
bne .L213
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl reverse
b .L208
.L213:
ldr w0, [sp, 28]
cmp w0, 2
bne .L214
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl reverseFront
b .L208
.L214:
ldr w0, [sp, 28]
cmp w0, 3
bne .L215
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl reverseBack
b .L208
.L215:
ldr w0, [sp, 28]
cmp w0, 4
bne .L216
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl tweakSort
b .L208
.L216:
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl dither
b .L208
.L217:
nop
.L208:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE43:
.size stagger, .-stagger
.align 2
.global plateau
.type plateau, %function
plateau:
.LFB44:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 40]
str w1, [sp, 36]
str w2, [sp, 32]
str w3, [sp, 28]
str wzr, [sp, 52]
b .L219
.L220:
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 40]
add x0, x1, x0
ldr x0, [x0]
str x0, [sp, 56]
ldr w0, [sp, 32]
ldr w2, [sp, 52]
ldr w1, [sp, 52]
cmp w2, w0
csel w1, w1, w0, le
ldr x0, [sp, 56]
str w1, [x0]
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
.L219:
ldr w1, [sp, 52]
ldr w0, [sp, 36]
cmp w1, w0
blt .L220
ldr w0, [sp, 28]
cmp w0, 0
ble .L227
ldr w0, [sp, 28]
cmp w0, 1
bne .L223
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl reverse
b .L218
.L223:
ldr w0, [sp, 28]
cmp w0, 2
bne .L224
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl reverseFront
b .L218
.L224:
ldr w0, [sp, 28]
cmp w0, 3
bne .L225
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl reverseBack
b .L218
.L225:
ldr w0, [sp, 28]
cmp w0, 4
bne .L226
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl tweakSort
b .L218
.L226:
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl dither
b .L218
.L227:
nop
.L218:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE44:
.size plateau, .-plateau
.align 2
.global shuffle
.type shuffle, %function
shuffle:
.LFB45:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
str x0, [sp, 40]
str w1, [sp, 36]
str w2, [sp, 32]
str w3, [sp, 28]
str w4, [sp, 24]
ldr w0, [sp, 24]
bl srand
str wzr, [sp, 68]
ldr w0, [sp, 68]
str w0, [sp, 64]
str wzr, [sp, 60]
b .L229
.L232:
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 40]
add x0, x1, x0
ldr x0, [x0]
str x0, [sp, 72]
bl rand
ldr w1, [sp, 32]
sdiv w2, w0, w1
ldr w1, [sp, 32]
mul w1, w2, w1
sub w0, w0, w1
cmp w0, 0
bne .L230
ldr w0, [sp, 68]
add w0, w0, 2
str w0, [sp, 68]
ldr x0, [sp, 72]
ldr w1, [sp, 68]
str w1, [x0]
b .L231
.L230:
ldr w0, [sp, 64]
add w0, w0, 2
str w0, [sp, 64]
ldr x0, [sp, 72]
ldr w1, [sp, 64]
str w1, [x0]
.L231:
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L229:
ldr w1, [sp, 60]
ldr w0, [sp, 36]
cmp w1, w0
blt .L232
ldr w0, [sp, 28]
cmp w0, 0
ble .L239
ldr w0, [sp, 28]
cmp w0, 1
bne .L235
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl reverse
b .L228
.L235:
ldr w0, [sp, 28]
cmp w0, 2
bne .L236
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl reverseFront
b .L228
.L236:
ldr w0, [sp, 28]
cmp w0, 3
bne .L237
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl reverseBack
b .L228
.L237:
ldr w0, [sp, 28]
cmp w0, 4
bne .L238
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl tweakSort
b .L228
.L238:
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl dither
b .L228
.L239:
nop
.L228:
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE45:
.size shuffle, .-shuffle
.align 2
.global slopes
.type slopes, %function
slopes:
.LFB46:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
str x0, [sp, 40]
str w1, [sp, 36]
str w2, [sp, 32]
str w3, [sp, 28]
str wzr, [sp, 64]
ldr w0, [sp, 64]
str w0, [sp, 56]
ldr w0, [sp, 56]
str w0, [sp, 60]
mov w0, 1
str w0, [sp, 68]
b .L241
.L245:
ldr w1, [sp, 68]
mov w0, 16960
movk w0, 0xf, lsl 16
cmp w1, w0
ble .L242
ldr w0, [sp, 56]
str w0, [sp, 68]
b .L243
.L242:
ldr w1, [sp, 68]
mov w0, 48576
movk w0, 0xfff0, lsl 16
cmp w1, w0
bge .L243
ldr w0, [sp, 56]
neg w0, w0
str w0, [sp, 68]
.L243:
ldrsw x0, [sp, 56]
lsl x0, x0, 3
ldr x1, [sp, 40]
add x0, x1, x0
ldr x0, [x0]
str x0, [sp, 72]
ldr w1, [sp, 68]
ldr w0, [sp, 64]
add w0, w1, w0
neg w0, w0
str w0, [sp, 68]
ldr x0, [sp, 72]
ldr w1, [sp, 68]
str w1, [x0]
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
ldr w0, [sp, 64]
add w0, w0, 1
str w0, [sp, 64]
ldr w0, [sp, 64]
cmp w0, 11
bne .L244
str wzr, [sp, 64]
.L244:
ldr w1, [sp, 32]
ldr w0, [sp, 60]
cmp w1, w0
bne .L241
ldr w0, [sp, 68]
lsl w0, w0, 1
str w0, [sp, 68]
str wzr, [sp, 60]
.L241:
ldr w1, [sp, 56]
ldr w0, [sp, 36]
cmp w1, w0
blt .L245
ldr w0, [sp, 28]
cmp w0, 0
ble .L252
ldr w0, [sp, 28]
cmp w0, 1
bne .L248
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl reverse
b .L240
.L248:
ldr w0, [sp, 28]
cmp w0, 2
bne .L249
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl reverseFront
b .L240
.L249:
ldr w0, [sp, 28]
cmp w0, 3
bne .L250
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl reverseBack
b .L240
.L250:
ldr w0, [sp, 28]
cmp w0, 4
bne .L251
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl tweakSort
b .L240
.L251:
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl dither
b .L240
.L252:
nop
.L240:
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE46:
.size slopes, .-slopes
.section .rodata
.align 3
.LC47:
.string "The displayed timings have only relative meaning."
.align 3
.LC48:
.string "Entering compareBentleyAgainstCut3 Sawtooth ........"
.align 3
.LC49:
.string "compareBentleyAgainstFivesort 1"
.align 3
.LC50:
.string "compareBentleyAgainstFivesort 2"
.align 3
.LC51:
.string "Plateau size: %d m: %d tweak: %d "
.align 3
.LC52:
.string "bentleyTime: %d "
.align 3
.LC53:
.string "Cut3Time: %d "
.align 3
.LC54:
.string "frac: %f \n"
.align 3
.LC55:
.string "sumQsortB: %i sumCut3: %i frac: %f"
.align 3
.LC56:
.string " bentleyCnt: %i cut3Cnt: %i\n"
.align 3
.LC57:
.string "Measurements:"
.text
.align 2
.global compareBentleyAgainstFivesort
.type compareBentleyAgainstFivesort, %function
compareBentleyAgainstFivesort:
.LFB47:
.cfi_startproc
stp x29, x30, [sp, -112]!
.cfi_def_cfa_offset 112
.cfi_offset 29, -112
.cfi_offset 30, -104
mov x29, sp
adrp x0, .LC47
add x0, x0, :lo12:.LC47
bl puts
adrp x0, .LC48
add x0, x0, :lo12:.LC48
bl puts
mov w0, 666
str w0, [sp, 28]
mov w0, 1048576
str w0, [sp, 36]
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 76]
mov w0, 1
str w0, [sp, 40]
b .L254
.L274:
adrp x0, .LC2
add x5, x0, :lo12:.LC2
ldr w4, [sp, 40]
adrp x0, .LC34
add x3, x0, :lo12:.LC34
ldr w2, [sp, 36]
adrp x0, .LC35
add x1, x0, :lo12:.LC35
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
ldrsw x0, [sp, 36]
lsl w0, w0, 3
mov w1, w0
adrp x0, .LC49
add x0, x0, :lo12:.LC49
bl myMalloc
str x0, [sp, 96]
str wzr, [sp, 48]
b .L255
.L256:
mov w1, 8
adrp x0, .LC50
add x0, x0, :lo12:.LC50
bl myMalloc
str x0, [sp, 104]
ldrsw x0, [sp, 48]
lsl x0, x0, 3
ldr x1, [sp, 96]
add x0, x1, x0
ldr x1, [sp, 104]
str x1, [x0]
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
.L255:
ldr w1, [sp, 48]
ldr w0, [sp, 36]
cmp w1, w0
blt .L256
ldr w2, [sp, 28]
ldr w1, [sp, 36]
ldr x0, [sp, 96]
bl fillarray
str wzr, [sp, 32]
b .L257
.L273:
str wzr, [sp, 72]
ldr w0, [sp, 72]
str w0, [sp, 68]
ldr w0, [sp, 68]
str w0, [sp, 64]
ldr w0, [sp, 64]
str w0, [sp, 60]
mov w0, 1
str w0, [sp, 52]
b .L258
.L271:
str wzr, [sp, 56]
b .L259
.L270:
ldr w0, [sp, 56]
cmp w0, 4
beq .L275
str wzr, [sp, 80]
str wzr, [sp, 84]
bl clock
str w0, [sp, 88]
str wzr, [sp, 28]
b .L262
.L263:
ldr w3, [sp, 56]
ldr w2, [sp, 52]
ldr w1, [sp, 36]
ldr x0, [sp, 96]
bl slopes
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L262:
ldr w1, [sp, 28]
ldr w0, [sp, 40]
cmp w1, w0
blt .L263
bl clock
mov w1, w0
ldr w0, [sp, 88]
sub w0, w1, w0
str w0, [sp, 88]
bl clock
str w0, [sp, 92]
str wzr, [sp, 28]
b .L264
.L265:
ldr w3, [sp, 56]
ldr w2, [sp, 52]
ldr w1, [sp, 36]
ldr x0, [sp, 96]
bl slopes
adrp x0, compareIntVal
add x2, x0, :lo12:compareIntVal
ldr w1, [sp, 36]
ldr x0, [sp, 96]
bl callCut2
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L264:
ldr w1, [sp, 28]
ldr w0, [sp, 40]
cmp w1, w0
blt .L265
bl clock
mov w1, w0
ldr w0, [sp, 80]
add w1, w1, w0
ldr w0, [sp, 92]
sub w1, w1, w0
ldr w0, [sp, 88]
sub w0, w1, w0
str w0, [sp, 80]
ldr w1, [sp, 68]
ldr w0, [sp, 80]
add w0, w1, w0
str w0, [sp, 68]
bl clock
str w0, [sp, 92]
str wzr, [sp, 28]
b .L266
.L267:
ldr w3, [sp, 56]
ldr w2, [sp, 52]
ldr w1, [sp, 36]
ldr x0, [sp, 96]
bl slopes
adrp x0, compareIntVal
add x2, x0, :lo12:compareIntVal
ldr w1, [sp, 36]
ldr x0, [sp, 96]
bl fivesort
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L266:
ldr w1, [sp, 28]
ldr w0, [sp, 40]
cmp w1, w0
blt .L267
bl clock
mov w1, w0
ldr w0, [sp, 84]
add w1, w1, w0
ldr w0, [sp, 92]
sub w1, w1, w0
ldr w0, [sp, 88]
sub w0, w1, w0
str w0, [sp, 84]
ldr w1, [sp, 72]
ldr w0, [sp, 84]
add w0, w1, w0
str w0, [sp, 72]
ldr w3, [sp, 56]
ldr w2, [sp, 52]
ldr w1, [sp, 36]
adrp x0, .LC51
add x0, x0, :lo12:.LC51
bl printf
ldr w1, [sp, 80]
adrp x0, .LC52
add x0, x0, :lo12:.LC52
bl printf
ldr w1, [sp, 84]
adrp x0, .LC53
add x0, x0, :lo12:.LC53
bl printf
str wzr, [sp, 44]
ldr w0, [sp, 80]
cmp w0, 0
beq .L268
ldr w0, [sp, 84]
scvtf d1, w0
ldr w0, [sp, 80]
scvtf d0, w0
fdiv d0, d1, d0
fcvt s0, d0
str s0, [sp, 44]
.L268:
ldr s0, [sp, 44]
fcvt d0, s0
adrp x0, .LC54
add x0, x0, :lo12:.LC54
bl printf
ldr w1, [sp, 80]
ldr w0, [sp, 84]
cmp w1, w0
bge .L269
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
b .L261
.L269:
ldr w0, [sp, 64]
add w0, w0, 1
str w0, [sp, 64]
b .L261
.L275:
nop
.L261:
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
.L259:
ldr w0, [sp, 56]
cmp w0, 5
ble .L270
ldr w0, [sp, 72]
scvtf d1, w0
ldr w0, [sp, 68]
scvtf d0, w0
fdiv d0, d1, d0
ldr w2, [sp, 72]
ldr w1, [sp, 68]
adrp x0, .LC55
add x0, x0, :lo12:.LC55
bl printf
ldr w2, [sp, 64]
ldr w1, [sp, 60]
adrp x0, .LC56
add x0, x0, :lo12:.LC56
bl printf
ldr w0, [sp, 52]
lsl w0, w0, 1
str w0, [sp, 52]
.L258:
ldr w0, [sp, 36]
lsl w0, w0, 1
ldr w1, [sp, 52]
cmp w1, w0
blt .L271
str wzr, [sp, 44]
ldr w0, [sp, 68]
cmp w0, 0
beq .L272
ldr w0, [sp, 72]
scvtf d1, w0
ldr w0, [sp, 68]
scvtf d0, w0
fdiv d0, d1, d0
fcvt s0, d0
str s0, [sp, 44]
.L272:
adrp x0, .LC57
add x0, x0, :lo12:.LC57
bl puts
ldr w0, [sp, 72]
scvtf d1, w0
ldr w0, [sp, 68]
scvtf d0, w0
fdiv d0, d1, d0
ldr w2, [sp, 72]
ldr w1, [sp, 68]
adrp x0, .LC55
add x0, x0, :lo12:.LC55
bl printf
ldr w2, [sp, 64]
ldr w1, [sp, 60]
adrp x0, .LC56
add x0, x0, :lo12:.LC56
bl printf
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L257:
ldr w0, [sp, 32]
cmp w0, 0
ble .L273
ldr x0, [sp, 96]
bl free
ldr w0, [sp, 36]
lsl w0, w0, 1
str w0, [sp, 36]
ldr w0, [sp, 40]
lsr w1, w0, 31
add w0, w1, w0
asr w0, w0, 1
str w0, [sp, 40]
.L254:
ldr w1, [sp, 36]
ldr w0, [sp, 76]
cmp w1, w0
ble .L274
nop
nop
ldp x29, x30, [sp], 112
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE47:
.size compareBentleyAgainstFivesort, .-compareBentleyAgainstFivesort
.section .rodata
.align 3
.LC58:
.string "Entering validateFiveSortBT Sawtooth ........"
.align 3
.LC59:
.string "compareAlgorithms0 3"
.align 3
.LC60:
.string "compareAlgorithms0 4"
.align 3
.LC61:
.string "Size: %d m: %d tweak: %d "
.align 3
.LC62:
.string "callBentleyTime: %d "
.align 3
.LC63:
.string "Cut2Time: %d "
.align 3
.LC64:
.string "***** validateFiveSortBT m: %i tweak: %i at i: %i\n"
.align 3
.LC65:
.string "sumQsortB: %i sumCut2: %i frac: %f"
.align 3
.LC66:
.string " callBentleyCnt: %i cut2Cnt: %i\n"
.text
.align 2
.global validateFiveSortBT
.type validateFiveSortBT, %function
validateFiveSortBT:
.LFB48:
.cfi_startproc
stp x29, x30, [sp, -112]!
.cfi_def_cfa_offset 112
.cfi_offset 29, -112
.cfi_offset 30, -104
mov x29, sp
adrp x0, .LC58
add x0, x0, :lo12:.LC58
bl puts
mov w0, 666
str w0, [sp, 20]
mov w0, 1048576
str w0, [sp, 28]
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 68]
mov w0, 1
str w0, [sp, 32]
b .L277
.L301:
adrp x0, .LC2
add x5, x0, :lo12:.LC2
ldr w4, [sp, 32]
adrp x0, .LC34
add x3, x0, :lo12:.LC34
ldr w2, [sp, 28]
adrp x0, .LC35
add x1, x0, :lo12:.LC35
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
ldrsw x0, [sp, 28]
lsl w0, w0, 3
mov w1, w0
adrp x0, .LC36
add x0, x0, :lo12:.LC36
bl myMalloc
str x0, [sp, 88]
ldrsw x0, [sp, 28]
lsl w0, w0, 3
mov w1, w0
adrp x0, .LC59
add x0, x0, :lo12:.LC59
bl myMalloc
str x0, [sp, 96]
str wzr, [sp, 40]
b .L278
.L279:
mov w1, 8
adrp x0, .LC37
add x0, x0, :lo12:.LC37
bl myMalloc
str x0, [sp, 104]
ldrsw x0, [sp, 40]
lsl x0, x0, 3
ldr x1, [sp, 88]
add x0, x1, x0
ldr x1, [sp, 104]
str x1, [x0]
mov w1, 8
adrp x0, .LC60
add x0, x0, :lo12:.LC60
bl myMalloc
str x0, [sp, 104]
ldrsw x0, [sp, 40]
lsl x0, x0, 3
ldr x1, [sp, 96]
add x0, x1, x0
ldr x1, [sp, 104]
str x1, [x0]
ldr w0, [sp, 40]
add w0, w0, 1
str w0, [sp, 40]
.L278:
ldr w1, [sp, 40]
ldr w0, [sp, 28]
cmp w1, w0
blt .L279
ldr w2, [sp, 20]
ldr w1, [sp, 28]
ldr x0, [sp, 88]
bl fillarray
str wzr, [sp, 24]
b .L280
.L298:
str wzr, [sp, 64]
ldr w0, [sp, 64]
str w0, [sp, 60]
ldr w0, [sp, 60]
str w0, [sp, 56]
ldr w0, [sp, 56]
str w0, [sp, 52]
mov w0, 1
str w0, [sp, 44]
b .L281
.L296:
str wzr, [sp, 48]
b .L282
.L295:
str wzr, [sp, 72]
str wzr, [sp, 76]
bl clock
str w0, [sp, 80]
str wzr, [sp, 20]
b .L283
.L284:
ldr w3, [sp, 48]
ldr w2, [sp, 44]
ldr w1, [sp, 28]
ldr x0, [sp, 88]
bl sawtooth
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
.L283:
ldr w1, [sp, 20]
ldr w0, [sp, 32]
cmp w1, w0
blt .L284
bl clock
mov w1, w0
ldr w0, [sp, 80]
sub w0, w1, w0
str w0, [sp, 80]
bl clock
str w0, [sp, 84]
str wzr, [sp, 20]
b .L285
.L286:
ldr w3, [sp, 48]
ldr w2, [sp, 44]
ldr w1, [sp, 28]
ldr x0, [sp, 88]
bl sawtooth
ldr w0, [sp, 28]
sub w1, w0, #1
adrp x0, compareIntVal
add x3, x0, :lo12:compareIntVal
mov w2, w1
mov w1, 0
ldr x0, [sp, 88]
bl heapc
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
.L285:
ldr w1, [sp, 20]
ldr w0, [sp, 32]
cmp w1, w0
blt .L286
bl clock
mov w1, w0
ldr w0, [sp, 72]
add w1, w1, w0
ldr w0, [sp, 84]
sub w1, w1, w0
ldr w0, [sp, 80]
sub w0, w1, w0
str w0, [sp, 72]
ldr w1, [sp, 60]
ldr w0, [sp, 72]
add w0, w1, w0
str w0, [sp, 60]
bl clock
str w0, [sp, 84]
str wzr, [sp, 20]
b .L287
.L288:
ldr w3, [sp, 48]
ldr w2, [sp, 44]
ldr w1, [sp, 28]
ldr x0, [sp, 96]
bl sawtooth
adrp x0, compareIntVal
add x2, x0, :lo12:compareIntVal
ldr w1, [sp, 28]
ldr x0, [sp, 96]
bl fivesort
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
.L287:
ldr w1, [sp, 20]
ldr w0, [sp, 32]
cmp w1, w0
blt .L288
bl clock
mov w1, w0
ldr w0, [sp, 76]
add w1, w1, w0
ldr w0, [sp, 84]
sub w1, w1, w0
ldr w0, [sp, 80]
sub w0, w1, w0
str w0, [sp, 76]
ldr w1, [sp, 64]
ldr w0, [sp, 76]
add w0, w1, w0
str w0, [sp, 64]
ldr w3, [sp, 48]
ldr w2, [sp, 44]
ldr w1, [sp, 28]
adrp x0, .LC61
add x0, x0, :lo12:.LC61
bl printf
ldr w1, [sp, 72]
adrp x0, .LC62
add x0, x0, :lo12:.LC62
bl printf
ldr w1, [sp, 76]
adrp x0, .LC63
add x0, x0, :lo12:.LC63
bl printf
str wzr, [sp, 36]
ldr w0, [sp, 72]
cmp w0, 0
beq .L289
ldr w0, [sp, 76]
scvtf d1, w0
ldr w0, [sp, 72]
scvtf d0, w0
fdiv d0, d1, d0
fcvt s0, d0
str s0, [sp, 36]
.L289:
ldr s0, [sp, 36]
fcvt d0, s0
adrp x0, .LC54
add x0, x0, :lo12:.LC54
bl printf
ldr w1, [sp, 72]
ldr w0, [sp, 76]
cmp w1, w0
bge .L290
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
b .L291
.L290:
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
.L291:
str wzr, [sp, 40]
b .L292
.L294:
ldrsw x0, [sp, 40]
lsl x0, x0, 3
ldr x1, [sp, 88]
add x0, x1, x0
ldr x2, [x0]
ldrsw x0, [sp, 40]
lsl x0, x0, 3
ldr x1, [sp, 96]
add x0, x1, x0
ldr x0, [x0]
mov x1, x0
mov x0, x2
bl compareIntVal
cmp w0, 0
beq .L293
ldr w3, [sp, 40]
ldr w2, [sp, 48]
ldr w1, [sp, 44]
adrp x0, .LC64
add x0, x0, :lo12:.LC64
bl printf
mov w0, 0
bl exit
.L293:
ldr w0, [sp, 40]
add w0, w0, 1
str w0, [sp, 40]
.L292:
ldr w1, [sp, 40]
ldr w0, [sp, 28]
cmp w1, w0
blt .L294
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
.L282:
ldr w0, [sp, 48]
cmp w0, 5
ble .L295
ldr w0, [sp, 64]
scvtf d1, w0
ldr w0, [sp, 60]
scvtf d0, w0
fdiv d0, d1, d0
ldr w2, [sp, 64]
ldr w1, [sp, 60]
adrp x0, .LC65
add x0, x0, :lo12:.LC65
bl printf
ldr w2, [sp, 56]
ldr w1, [sp, 52]
adrp x0, .LC66
add x0, x0, :lo12:.LC66
bl printf
ldr w0, [sp, 44]
lsl w0, w0, 1
str w0, [sp, 44]
.L281:
ldr w0, [sp, 28]
lsl w0, w0, 1
ldr w1, [sp, 44]
cmp w1, w0
blt .L296
str wzr, [sp, 36]
ldr w0, [sp, 60]
cmp w0, 0
beq .L297
ldr w0, [sp, 64]
scvtf d1, w0
ldr w0, [sp, 60]
scvtf d0, w0
fdiv d0, d1, d0
fcvt s0, d0
str s0, [sp, 36]
.L297:
adrp x0, .LC57
add x0, x0, :lo12:.LC57
bl puts
ldr w0, [sp, 64]
scvtf d1, w0
ldr w0, [sp, 60]
scvtf d0, w0
fdiv d0, d1, d0
ldr w2, [sp, 64]
ldr w1, [sp, 60]
adrp x0, .LC65
add x0, x0, :lo12:.LC65
bl printf
ldr w2, [sp, 56]
ldr w1, [sp, 52]
adrp x0, .LC66
add x0, x0, :lo12:.LC66
bl printf
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L280:
ldr w0, [sp, 24]
cmp w0, 0
ble .L298
str wzr, [sp, 40]
b .L299
.L300:
ldrsw x0, [sp, 40]
lsl x0, x0, 3
ldr x1, [sp, 88]
add x0, x1, x0
ldr x0, [x0]
bl free
ldrsw x0, [sp, 40]
lsl x0, x0, 3
ldr x1, [sp, 96]
add x0, x1, x0
ldr x0, [x0]
bl free
ldr w0, [sp, 40]
add w0, w0, 1
str w0, [sp, 40]
.L299:
ldr w1, [sp, 40]
ldr w0, [sp, 28]
cmp w1, w0
blt .L300
ldr x0, [sp, 88]
bl free
ldr x0, [sp, 96]
bl free
ldr w0, [sp, 28]
lsl w0, w0, 1
str w0, [sp, 28]
ldr w0, [sp, 32]
lsr w1, w0, 31
add w0, w1, w0
asr w0, w0, 1
str w0, [sp, 32]
.L277:
ldr w1, [sp, 28]
ldr w0, [sp, 68]
cmp w1, w0
ble .L301
nop
nop
ldp x29, x30, [sp], 112
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE48:
.size validateFiveSortBT, .-validateFiveSortBT
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global GUID_NDIS_802_3_PERMANENT_ADDRESS
.section .rodata
.align 3
.type GUID_NDIS_802_3_PERMANENT_ADDRESS, %object
.size GUID_NDIS_802_3_PERMANENT_ADDRESS, 24
GUID_NDIS_802_3_PERMANENT_ADDRESS:
.xword 1148802815
.hword -23013
.hword 4560
.string "\215\324"
.ascii "\300O\3035\214"
.zero 4
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "wb"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
str x0, [sp, 40]
ldr w0, [sp, 28]
cmp w0, 2
ble .L2
ldr x0, [sp, 16]
add x0, x0, 8
ldr x0, [x0]
cmp x0, 0
beq .L2
ldr x0, [sp, 16]
add x0, x0, 16
ldr x0, [x0]
cmp x0, 0
bne .L3
.L2:
mov w0, 64
b .L4
.L3:
ldr x0, [sp, 16]
add x0, x0, 8
ldr x0, [x0]
ldrb w0, [x0]
cmp w0, 45
bne .L5
ldr x0, [sp, 16]
add x0, x0, 8
ldr x0, [x0]
add x0, x0, 1
ldrb w0, [x0]
cmp w0, 0
beq .L6
.L5:
ldr x0, [sp, 16]
add x0, x0, 8
ldr x2, [x0]
adrp x0, .LC0
add x1, x0, :lo12:.LC0
mov x0, x2
bl fopen
str x0, [sp, 40]
ldr x0, [sp, 40]
cmp x0, 0
bne .L6
mov w0, 73
b .L4
.L6:
mov w0, 2
str w0, [sp, 36]
b .L7
.L11:
ldr w0, [sp, 36]
cmp w0, 2
ble .L8
ldr x1, [sp, 40]
mov w0, 32
bl fputc
cmp w0, 0
bge .L8
mov w0, 74
b .L4
.L8:
ldrsw x0, [sp, 36]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
ldr x0, [x0]
ldr x1, [sp, 40]
bl fputs
cmp w0, 0
bge .L9
mov w0, 74
b .L4
.L9:
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L7:
ldr w1, [sp, 36]
ldr w0, [sp, 28]
cmp w1, w0
bge .L10
ldrsw x0, [sp, 36]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
ldr x0, [x0]
cmp x0, 0
bne .L11
.L10:
ldr x1, [sp, 40]
mov w0, 10
bl fputc
cmp w0, 0
bge .L12
mov w0, 74
b .L4
.L12:
ldr x0, [sp, 40]
bl fclose
cmp w0, 0
beq .L13
mov w0, 74
b .L4
.L13:
mov w0, 0
.L4:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC1:
.string "cls"
.align 3
.LC2:
.string "%d\n\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 56]
mov x1, 0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
add x2, sp, 32
mov x3, x0
ldp x0, x1, [x3]
stp x0, x1, [x2]
ldr x0, [x3, 16]
str x0, [x2, 16]
mov w0, 6
str w0, [sp, 28]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl system
add x0, sp, 32
ldr w1, [sp, 28]
bl firstDuplicate
mov w1, w0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 56]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L3
bl __stack_chk_fail
.L3:
mov w0, w1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
.section .rodata
.align 3
.LC0:
.word 2
.word 6
.word 8
.word 2
.word 4
.word 4
.text
.align 2
.global firstDuplicate
.type firstDuplicate, %function
firstDuplicate:
.LFB1:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str w1, [sp, 4]
mov w0, -1
str w0, [sp, 28]
ldr w0, [sp, 4]
add w0, w0, 1
str w0, [sp, 24]
str wzr, [sp, 16]
b .L5
.L10:
str wzr, [sp, 20]
b .L6
.L9:
ldrsw x0, [sp, 16]
lsl x0, x0, 2
ldr x1, [sp, 8]
add x0, x1, x0
ldr w1, [x0]
ldrsw x0, [sp, 20]
lsl x0, x0, 2
ldr x2, [sp, 8]
add x0, x2, x0
ldr w0, [x0]
cmp w1, w0
bne .L7
ldr w1, [sp, 16]
ldr w0, [sp, 20]
cmp w1, w0
beq .L7
ldr w1, [sp, 20]
ldr w0, [sp, 16]
cmp w1, w0
blt .L8
ldr w1, [sp, 20]
ldr w0, [sp, 16]
sub w0, w1, w0
ldr w1, [sp, 24]
cmp w1, w0
ble .L8
ldrsw x0, [sp, 20]
lsl x0, x0, 2
ldr x1, [sp, 8]
add x0, x1, x0
ldr w0, [x0]
str w0, [sp, 28]
ldr w1, [sp, 20]
ldr w0, [sp, 16]
sub w0, w1, w0
str w0, [sp, 24]
b .L7
.L8:
ldr w1, [sp, 20]
ldr w0, [sp, 16]
cmp w1, w0
bge .L7
ldr w1, [sp, 16]
ldr w0, [sp, 20]
sub w0, w1, w0
ldr w1, [sp, 24]
cmp w1, w0
ble .L7
ldrsw x0, [sp, 20]
lsl x0, x0, 2
ldr x1, [sp, 8]
add x0, x1, x0
ldr w0, [x0]
str w0, [sp, 28]
ldr w1, [sp, 16]
ldr w0, [sp, 20]
sub w0, w1, w0
str w0, [sp, 24]
.L7:
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
.L6:
ldr w1, [sp, 20]
ldr w0, [sp, 4]
cmp w1, w0
blt .L9
ldr w0, [sp, 16]
add w0, w0, 1
str w0, [sp, 16]
.L5:
ldr w1, [sp, 16]
ldr w0, [sp, 4]
cmp w1, w0
blt .L10
ldr w0, [sp, 28]
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size firstDuplicate, .-firstDuplicate
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.type x2c, %function
x2c:
.LFB6:
.cfi_startproc
str x19, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 19, -32
str x0, [sp, 24]
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 64
bls .L2
ldr x0, [sp, 24]
ldrb w0, [x0]
and w0, w0, -33
and w0, w0, 255
sub w0, w0, #55
and w0, w0, 255
b .L3
.L2:
ldr x0, [sp, 24]
ldrb w0, [x0]
sub w0, w0, #48
and w0, w0, 255
.L3:
mov w19, w0
ubfiz w0, w19, 4, 4
and w19, w0, 255
ldr x0, [sp, 24]
add x0, x0, 1
ldrb w0, [x0]
cmp w0, 64
bls .L4
ldr x0, [sp, 24]
add x0, x0, 1
ldrb w0, [x0]
and w0, w0, -33
and w0, w0, 255
sub w0, w0, #55
and w0, w0, 255
b .L5
.L4:
ldr x0, [sp, 24]
add x0, x0, 1
ldrb w0, [x0]
sub w0, w0, #48
and w0, w0, 255
.L5:
add w0, w0, w19
and w19, w0, 255
mov w0, w19
ldr x19, [sp], 32
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size x2c, .-x2c
.align 2
.global unescape_url
.type unescape_url, %function
unescape_url:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
stp x19, x20, [sp, 16]
str x21, [sp, 32]
.cfi_offset 19, -48
.cfi_offset 20, -40
.cfi_offset 21, -32
str x0, [sp, 56]
mov w20, 0
mov w19, 0
b .L8
.L10:
sxtw x0, w19
ldr x1, [sp, 56]
add x1, x1, x0
sxtw x0, w20
ldr x2, [sp, 56]
add x0, x2, x0
ldrb w1, [x1]
strb w1, [x0]
ldrb w0, [x0]
cmp w0, 37
bne .L9
sxtw x0, w19
add x0, x0, 1
ldr x1, [sp, 56]
add x2, x1, x0
sxtw x0, w20
ldr x1, [sp, 56]
add x21, x1, x0
mov x0, x2
bl x2c
and w0, w0, 255
strb w0, [x21]
add w19, w19, 2
.L9:
add w20, w20, 1
add w19, w19, 1
.L8:
sxtw x0, w19
ldr x1, [sp, 56]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 0
bne .L10
sxtw x0, w20
ldr x1, [sp, 56]
add x0, x1, x0
strb wzr, [x0]
nop
ldp x19, x20, [sp, 16]
ldr x21, [sp, 32]
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_restore 21
.cfi_restore 19
.cfi_restore 20
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size unescape_url, .-unescape_url
.section .rodata
.align 3
.LC0:
.string "\r\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 56]
mov x1, 0
str xzr, [sp, 32]
ldr w0, [sp, 28]
cmp w0, 1
bgt .L12
adrp x0, :got:stdin
ldr x0, [x0, #:got_lo12:stdin]
ldr x2, [x0]
add x1, sp, 40
add x0, sp, 32
bl getline
b .L13
.L12:
ldr x0, [sp, 16]
add x0, x0, 8
ldr x0, [x0]
bl strlen
add x0, x0, 1
mov x1, 1
bl calloc
str x0, [sp, 32]
ldr x2, [sp, 32]
ldr x0, [sp, 16]
add x0, x0, 8
ldr x0, [x0]
mov x1, x0
mov x0, x2
bl strcpy
.L13:
ldr x2, [sp, 32]
adrp x0, .LC0
add x1, x0, :lo12:.LC0
mov x0, x2
bl strpbrk
str x0, [sp, 48]
ldr x0, [sp, 48]
cmp x0, 0
beq .L15
ldr x0, [sp, 48]
strb wzr, [x0]
b .L15
.L16:
ldr x0, [sp, 48]
mov w1, 32
strb w1, [x0]
.L15:
ldr x0, [sp, 32]
mov w1, 43
bl strchr
str x0, [sp, 48]
ldr x0, [sp, 48]
cmp x0, 0
bne .L16
ldr x0, [sp, 32]
bl unescape_url
ldr x2, [sp, 32]
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x1, x0
mov x0, x2
bl fputs
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 56]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L18
bl __stack_chk_fail
.L18:
mov w0, w1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global successful_rtld_next_test
.type successful_rtld_next_test, %function
successful_rtld_next_test:
.LFB0:
.cfi_startproc
mov w0, 42
ret
.cfi_endproc
.LFE0:
.size successful_rtld_next_test, .-successful_rtld_next_test
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Enter number"
.align 3
.LC1:
.string "%d"
.align 3
.LC2:
.string "Factorial= %.2li"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 24]
mov x1, 0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
add x0, sp, 20
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
ldr w0, [sp, 20]
bl fact
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 24]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L2
bl __stack_chk_fail
.L2:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
.align 2
.global fact
.type fact, %function
fact:
.LFB1:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, 12]
mov w0, 1
str w0, [sp, 24]
mov w0, 1
str w0, [sp, 28]
b .L4
.L5:
ldr w1, [sp, 24]
ldr w0, [sp, 28]
mul w0, w1, w0
str w0, [sp, 24]
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L4:
ldr w1, [sp, 28]
ldr w0, [sp, 12]
cmp w1, w0
ble .L5
ldr w0, [sp, 24]
scvtf d0, w0
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size fact, .-fact
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global twice_sum
.type twice_sum, %function
twice_sum:
.LFB0:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, 12]
ldr w0, [sp, 12]
lsl w0, w0, 1
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size twice_sum, .-twice_sum
.align 2
.global bar
.type bar, %function
bar:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str wzr, [sp, 28]
str wzr, [sp, 20]
b .L4
.L7:
str wzr, [sp, 24]
b .L5
.L6:
ldr w1, [sp, 20]
ldr w0, [sp, 24]
add w0, w1, w0
ldr w1, [sp, 28]
add w0, w1, w0
str w0, [sp, 28]
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L5:
ldr w0, [sp, 24]
cmp w0, 99
ble .L6
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
.L4:
ldr w0, [sp, 20]
cmp w0, 99
ble .L7
ldr w0, [sp, 28]
bl twice_sum
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size bar, .-bar
.align 2
.global foo
.type foo, %function
foo:
.LFB2:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str wzr, [sp, 28]
str wzr, [sp, 20]
b .L10
.L13:
str wzr, [sp, 24]
b .L11
.L12:
ldr w1, [sp, 20]
ldr w0, [sp, 24]
add w0, w1, w0
ldr w1, [sp, 28]
add w0, w1, w0
str w0, [sp, 28]
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L11:
ldr w0, [sp, 24]
cmp w0, 99
ble .L12
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
.L10:
ldr w0, [sp, 20]
cmp w0, 99
ble .L13
ldr w0, [sp, 28]
bl twice_sum
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size foo, .-foo
.align 2
.global main
.type main, %function
main:
.LFB3:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
bl foo
str w0, [sp, 24]
bl bar
str w0, [sp, 28]
ldr w0, [sp, 24]
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE3:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Inserisci n: "
.align 3
.LC1:
.string "%d"
.align 3
.LC2:
.string "Inserisci k: "
.align 3
.LC3:
.string "Coefficiente binomiale: %d\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 40]
mov x1, 0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
add x0, sp, 16
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
add x0, sp, 20
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
ldr w0, [sp, 16]
bl fattoriale
str w0, [sp, 24]
ldr w0, [sp, 20]
bl fattoriale
str w0, [sp, 28]
ldr w1, [sp, 16]
ldr w0, [sp, 20]
sub w0, w1, w0
bl fattoriale
str w0, [sp, 32]
ldr w1, [sp, 28]
ldr w0, [sp, 32]
mul w0, w1, w0
ldr w1, [sp, 24]
sdiv w0, w1, w0
str w0, [sp, 36]
ldr w1, [sp, 36]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 40]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L3
bl __stack_chk_fail
.L3:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
.align 2
.global fattoriale
.type fattoriale, %function
fattoriale:
.LFB1:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, 12]
mov w0, 1
str w0, [sp, 24]
mov w0, 1
str w0, [sp, 28]
b .L5
.L6:
ldr w1, [sp, 24]
ldr w0, [sp, 28]
mul w0, w1, w0
str w0, [sp, 24]
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L5:
ldr w1, [sp, 28]
ldr w0, [sp, 12]
cmp w1, w0
ble .L6
ldr w0, [sp, 24]
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size fattoriale, .-fattoriale
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.type clock_adjtime, %function
clock_adjtime:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
ldr x2, [sp, 16]
ldr w1, [sp, 28]
mov x0, 266
bl syscall
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size clock_adjtime, .-clock_adjtime
.align 2
.type get_clockid, %function
get_clockid:
.LFB7:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, 12]
ldr w0, [sp, 12]
mvn w0, w0
lsl w0, w0, 3
orr w0, w0, 3
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size get_clockid, .-get_clockid
.section .rodata
.align 3
.LC0:
.string "received signal %d\n"
.text
.align 2
.type handle_alarm, %function
handle_alarm:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str w0, [sp, 28]
ldr w1, [sp, 28]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size handle_alarm, .-handle_alarm
.align 2
.type install_handler, %function
install_handler:
.LFB9:
.cfi_startproc
stp x29, x30, [sp, -320]!
.cfi_def_cfa_offset 320
.cfi_offset 29, -320
.cfi_offset 30, -312
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 312]
mov x1, 0
add x0, sp, 32
bl sigemptyset
add x0, sp, 32
ldr w1, [sp, 28]
bl sigaddset
add x0, sp, 32
mov x2, 0
mov x1, x0
mov w0, 1
bl sigprocmask
ldr x0, [sp, 16]
str x0, [sp, 160]
str wzr, [sp, 296]
add x0, sp, 160
add x0, x0, 8
bl sigemptyset
add x0, sp, 160
mov x2, 0
mov x1, x0
ldr w0, [sp, 28]
bl sigaction
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 312]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L8
bl __stack_chk_fail
.L8:
mov w0, w1
ldp x29, x30, [sp], 320
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size install_handler, .-install_handler
.align 2
.type ppb_to_scaled_ppm, %function
ppb_to_scaled_ppm:
.LFB10:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, 12]
ldr w0, [sp, 12]
scvtf d0, w0
adrp x0, .LC1
ldr d1, [x0, #:lo12:.LC1]
fmul d0, d0, d1
fcvtzs d0, d0
fmov x0, d0
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size ppb_to_scaled_ppm, .-ppb_to_scaled_ppm
.section .rodata
.align 3
.LC2:
.ascii "usage: %s [options]\n -a val request a one-shot alarm af"
.ascii "ter 'val' seconds\n -A val request a periodic alarm ever"
.ascii "y 'val' seconds\n -c query the ptp clock's capabilit"
.ascii "ies\n -d name device to open\n -e val read 'val' exte"
.ascii "rnal time stamp events\n -f val adjust the ptp clock fre"
.ascii "quency by 'val' ppb\n -g get the ptp clock time\n -h"
.ascii " prints this message\n -p val enable output with"
.ascii " a"
.string " period of 'val' nanoseconds\n -P val enable or disable (val=1|0) the system clock PPS\n -s set the ptp clock time from the system time\n -S set the system time from the ptp clock time\n -t val shift the ptp clock time by 'val' seconds\n"
.text
.align 2
.type usage, %function
usage:
.LFB11:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
ldr x2, [sp, 24]
adrp x0, .LC2
add x1, x0, :lo12:.LC2
mov x0, x3
bl fprintf
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size usage, .-usage
.section .rodata
.align 3
.LC3:
.string "/dev/ptp0"
.align 3
.LC4:
.string "a:A:cd:e:f:ghp:P:sSt:v"
.align 3
.LC5:
.string "opening %s: %s\n"
.align 3
.LC6:
.string "failed to read clock id\n"
.align 3
.LC7:
.string "PTP_CLOCK_GETCAPS"
.align 3
.LC8:
.string "capabilities:\n %d maximum frequency adjustment (ppb)\n %d programmable alarms\n %d external time stamp channels\n %d programmable periodic signals\n %d pulse per second\n"
.align 3
.LC9:
.string "clock_adjtime"
.align 3
.LC10:
.string "frequency adjustment okay"
.align 3
.LC11:
.string "time shift okay"
.align 3
.LC12:
.string "clock_gettime"
.align 3
.LC13:
.string "clock time: %ld.%09ld or %s"
.align 3
.LC14:
.string "clock_settime"
.align 3
.LC15:
.string "set time okay"
.align 3
.LC16:
.string "PTP_EXTTS_REQUEST"
.align 3
.LC17:
.string "external time stamp request okay"
.align 3
.LC18:
.string "read"
.align 3
.LC19:
.string "event index %u at %lld.%09u\n"
.align 3
.LC20:
.string "timer_create"
.align 3
.LC21:
.string "timer_settime"
.align 3
.LC22:
.string "PTP_PEROUT_REQUEST"
.align 3
.LC23:
.string "periodic output request okay"
.align 3
.LC24:
.string "PTP_ENABLE_PPS"
.align 3
.LC25:
.string "pps for system time request okay"
.text
.align 2
.global main
.type main, %function
main:
.LFB12:
.cfi_startproc
sub sp, sp, #640
.cfi_def_cfa_offset 640
stp x29, x30, [sp]
.cfi_offset 29, -640
.cfi_offset 30, -632
mov x29, sp
stp x19, x20, [sp, 16]
.cfi_offset 19, -624
.cfi_offset 20, -616
str w0, [sp, 44]
str x1, [sp, 32]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 632]
mov x1, 0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
str x0, [sp, 112]
mov w0, 2147483647
str w0, [sp, 52]
str wzr, [sp, 56]
str wzr, [sp, 60]
str wzr, [sp, 64]
str wzr, [sp, 68]
str wzr, [sp, 72]
str wzr, [sp, 76]
mov w0, -1
str w0, [sp, 80]
mov w0, -1
str w0, [sp, 84]
str wzr, [sp, 88]
ldr x0, [sp, 32]
ldr x0, [x0]
mov w1, 47
bl strrchr
str x0, [sp, 120]
ldr x0, [sp, 120]
cmp x0, 0
beq .L13
ldr x0, [sp, 120]
add x0, x0, 1
b .L14
.L13:
ldr x0, [sp, 32]
ldr x0, [x0]
.L14:
str x0, [sp, 120]
b .L15
.L31:
ldr w0, [sp, 92]
cmp w0, 116
beq .L16
ldr w0, [sp, 92]
cmp w0, 116
bgt .L17
ldr w0, [sp, 92]
cmp w0, 115
beq .L18
ldr w0, [sp, 92]
cmp w0, 115
bgt .L17
ldr w0, [sp, 92]
cmp w0, 112
beq .L19
ldr w0, [sp, 92]
cmp w0, 112
bgt .L17
ldr w0, [sp, 92]
cmp w0, 104
beq .L20
ldr w0, [sp, 92]
cmp w0, 104
bgt .L17
ldr w0, [sp, 92]
cmp w0, 103
beq .L21
ldr w0, [sp, 92]
cmp w0, 103
bgt .L17
ldr w0, [sp, 92]
cmp w0, 102
beq .L22
ldr w0, [sp, 92]
cmp w0, 102
bgt .L17
ldr w0, [sp, 92]
cmp w0, 101
beq .L23
ldr w0, [sp, 92]
cmp w0, 101
bgt .L17
ldr w0, [sp, 92]
cmp w0, 100
beq .L24
ldr w0, [sp, 92]
cmp w0, 100
bgt .L17
ldr w0, [sp, 92]
cmp w0, 99
beq .L25
ldr w0, [sp, 92]
cmp w0, 99
bgt .L17
ldr w0, [sp, 92]
cmp w0, 97
beq .L26
ldr w0, [sp, 92]
cmp w0, 97
bgt .L17
ldr w0, [sp, 92]
cmp w0, 83
beq .L27
ldr w0, [sp, 92]
cmp w0, 83
bgt .L17
ldr w0, [sp, 92]
cmp w0, 65
beq .L28
ldr w0, [sp, 92]
cmp w0, 80
beq .L29
b .L17
.L26:
adrp x0, :got:optarg
ldr x0, [x0, #:got_lo12:optarg]
ldr x0, [x0]
bl atoi
str w0, [sp, 72]
b .L15
.L28:
adrp x0, :got:optarg
ldr x0, [x0, #:got_lo12:optarg]
ldr x0, [x0]
bl atoi
str w0, [sp, 76]
b .L15
.L25:
mov w0, 1
str w0, [sp, 60]
b .L15
.L24:
adrp x0, :got:optarg
ldr x0, [x0, #:got_lo12:optarg]
ldr x0, [x0]
str x0, [sp, 112]
b .L15
.L23:
adrp x0, :got:optarg
ldr x0, [x0, #:got_lo12:optarg]
ldr x0, [x0]
bl atoi
str w0, [sp, 64]
b .L15
.L22:
adrp x0, :got:optarg
ldr x0, [x0, #:got_lo12:optarg]
ldr x0, [x0]
bl atoi
str w0, [sp, 52]
b .L15
.L21:
mov w0, 1
str w0, [sp, 68]
b .L15
.L19:
adrp x0, :got:optarg
ldr x0, [x0, #:got_lo12:optarg]
ldr x0, [x0]
bl atoi
str w0, [sp, 80]
b .L15
.L29:
adrp x0, :got:optarg
ldr x0, [x0, #:got_lo12:optarg]
ldr x0, [x0]
bl atoi
str w0, [sp, 84]
b .L15
.L18:
mov w0, 1
str w0, [sp, 88]
b .L15
.L27:
mov w0, 2
str w0, [sp, 88]
b .L15
.L16:
adrp x0, :got:optarg
ldr x0, [x0, #:got_lo12:optarg]
ldr x0, [x0]
bl atoi
str w0, [sp, 56]
b .L15
.L20:
ldr x0, [sp, 120]
bl usage
mov w0, 0
b .L64
.L17:
ldr x0, [sp, 120]
bl usage
mov w0, -1
b .L64
.L15:
adrp x0, .LC4
add x2, x0, :lo12:.LC4
ldr x1, [sp, 32]
ldr w0, [sp, 44]
bl getopt
str w0, [sp, 92]
ldr w0, [sp, 92]
cmn w0, #1
bne .L31
mov w1, 2
ldr x0, [sp, 112]
bl open
str w0, [sp, 96]
ldr w0, [sp, 96]
cmp w0, 0
bge .L32
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x19, [x0]
bl __errno_location
ldr w0, [x0]
bl strerror
mov x3, x0
ldr x2, [sp, 112]
adrp x0, .LC5
add x1, x0, :lo12:.LC5
mov x0, x19
bl fprintf
mov w0, -1
b .L64
.L32:
ldr w0, [sp, 96]
bl get_clockid
str w0, [sp, 100]
ldr w0, [sp, 100]
cmn w0, #1
bne .L33
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 24
mov x1, 1
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl fwrite
mov w0, -1
b .L64
.L33:
ldr w0, [sp, 60]
cmp w0, 0
beq .L34
add x0, sp, 552
mov x2, x0
mov x1, 15617
movk x1, 0x8050, lsl 16
ldr w0, [sp, 96]
bl ioctl
cmp w0, 0
beq .L35
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl perror
b .L34
.L35:
ldr w0, [sp, 552]
ldr w1, [sp, 556]
ldr w2, [sp, 560]
ldr w3, [sp, 564]
ldr w4, [sp, 568]
mov w5, w4
mov w4, w3
mov w3, w2
mov w2, w1
mov w1, w0
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl printf
.L34:
ldr w1, [sp, 52]
mov w0, 2147483647
cmp w1, w0
beq .L36
add x0, sp, 176
mov x2, 208
mov w1, 0
bl memset
mov w0, 2
str w0, [sp, 176]
ldr w0, [sp, 52]
bl ppb_to_scaled_ppm
str x0, [sp, 192]
add x0, sp, 176
mov x1, x0
ldr w0, [sp, 100]
bl clock_adjtime
cmp w0, 0
beq .L37
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl perror
b .L36
.L37:
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl puts
.L36:
ldr w0, [sp, 56]
cmp w0, 0
beq .L38
add x0, sp, 176
mov x2, 208
mov w1, 0
bl memset
mov w0, 256
str w0, [sp, 176]
ldrsw x0, [sp, 56]
str x0, [sp, 248]
str xzr, [sp, 256]
add x0, sp, 176
mov x1, x0
ldr w0, [sp, 100]
bl clock_adjtime
cmp w0, 0
bge .L39
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl perror
b .L38
.L39:
adrp x0, .LC11
add x0, x0, :lo12:.LC11
bl puts
.L38:
ldr w0, [sp, 68]
cmp w0, 0
beq .L40
add x0, sp, 128
mov x1, x0
ldr w0, [sp, 100]
bl clock_gettime
cmp w0, 0
beq .L41
adrp x0, .LC12
add x0, x0, :lo12:.LC12
bl perror
b .L40
.L41:
ldr x19, [sp, 128]
ldr x20, [sp, 136]
add x0, sp, 128
bl ctime
mov x3, x0
mov x2, x20
mov x1, x19
adrp x0, .LC13
add x0, x0, :lo12:.LC13
bl printf
.L40:
ldr w0, [sp, 88]
cmp w0, 1
bne .L42
add x0, sp, 128
mov x1, x0
mov w0, 0
bl clock_gettime
add x0, sp, 128
mov x1, x0
ldr w0, [sp, 100]
bl clock_settime
cmp w0, 0
beq .L43
adrp x0, .LC14
add x0, x0, :lo12:.LC14
bl perror
b .L42
.L43:
adrp x0, .LC15
add x0, x0, :lo12:.LC15
bl puts
.L42:
ldr w0, [sp, 88]
cmp w0, 2
bne .L44
add x0, sp, 128
mov x1, x0
ldr w0, [sp, 100]
bl clock_gettime
add x0, sp, 128
mov x1, x0
mov w0, 0
bl clock_settime
cmp w0, 0
beq .L45
adrp x0, .LC14
add x0, x0, :lo12:.LC14
bl perror
b .L44
.L45:
adrp x0, .LC15
add x0, x0, :lo12:.LC15
bl puts
.L44:
ldr w0, [sp, 64]
cmp w0, 0
beq .L46
add x0, sp, 384
mov x2, 16
mov w1, 0
bl memset
str wzr, [sp, 384]
mov w0, 1
str w0, [sp, 388]
add x0, sp, 384
mov x2, x0
mov x1, 15618
movk x1, 0x4010, lsl 16
ldr w0, [sp, 96]
bl ioctl
cmp w0, 0
beq .L47
adrp x0, .LC16
add x0, x0, :lo12:.LC16
bl perror
str wzr, [sp, 64]
b .L49
.L47:
adrp x0, .LC17
add x0, x0, :lo12:.LC17
bl puts
b .L49
.L52:
add x0, sp, 400
mov x2, 32
mov x1, x0
ldr w0, [sp, 96]
bl read
str w0, [sp, 104]
ldr w0, [sp, 104]
cmp w0, 32
beq .L50
adrp x0, .LC18
add x0, x0, :lo12:.LC18
bl perror
b .L51
.L50:
ldr w0, [sp, 416]
ldr x1, [sp, 400]
ldr w2, [sp, 408]
mov w3, w2
mov x2, x1
mov w1, w0
adrp x0, .LC19
add x0, x0, :lo12:.LC19
bl printf
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
bl fflush
ldr w0, [sp, 64]
sub w0, w0, #1
str w0, [sp, 64]
.L49:
ldr w0, [sp, 64]
cmp w0, 0
bne .L52
.L51:
str wzr, [sp, 388]
add x0, sp, 384
mov x2, x0
mov x1, 15618
movk x1, 0x4010, lsl 16
ldr w0, [sp, 96]
bl ioctl
cmp w0, 0
beq .L46
adrp x0, .LC16
add x0, x0, :lo12:.LC16
bl perror
.L46:
ldr w0, [sp, 72]
cmp w0, 0
beq .L53
adrp x0, handle_alarm
add x1, x0, :lo12:handle_alarm
mov w0, 14
bl install_handler
str wzr, [sp, 500]
mov w0, 14
str w0, [sp, 496]
add x1, sp, 488
adrp x0, timerid.0
add x2, x0, :lo12:timerid.0
ldr w0, [sp, 100]
bl timer_create
cmp w0, 0
beq .L54
adrp x0, .LC20
add x0, x0, :lo12:.LC20
bl perror
mov w0, -1
b .L64
.L54:
add x0, sp, 144
mov x2, 32
mov w1, 0
bl memset
ldrsw x0, [sp, 72]
str x0, [sp, 160]
adrp x0, timerid.0
add x0, x0, :lo12:timerid.0
ldr x0, [x0]
add x1, sp, 144
mov x3, 0
mov x2, x1
mov w1, 0
bl timer_settime
cmp w0, 0
beq .L55
adrp x0, .LC21
add x0, x0, :lo12:.LC21
bl perror
mov w0, -1
b .L64
.L55:
bl pause
adrp x0, timerid.0
add x0, x0, :lo12:timerid.0
ldr x0, [x0]
bl timer_delete
.L53:
ldr w0, [sp, 76]
cmp w0, 0
beq .L56
adrp x0, handle_alarm
add x1, x0, :lo12:handle_alarm
mov w0, 14
bl install_handler
str wzr, [sp, 500]
mov w0, 14
str w0, [sp, 496]
add x1, sp, 488
adrp x0, timerid.0
add x2, x0, :lo12:timerid.0
ldr w0, [sp, 100]
bl timer_create
cmp w0, 0
beq .L57
adrp x0, .LC20
add x0, x0, :lo12:.LC20
bl perror
mov w0, -1
b .L64
.L57:
add x0, sp, 144
mov x2, 32
mov w1, 0
bl memset
ldrsw x0, [sp, 76]
str x0, [sp, 144]
ldrsw x0, [sp, 76]
str x0, [sp, 160]
adrp x0, timerid.0
add x0, x0, :lo12:timerid.0
ldr x0, [x0]
add x1, sp, 144
mov x3, 0
mov x2, x1
mov w1, 0
bl timer_settime
cmp w0, 0
beq .L58
adrp x0, .LC21
add x0, x0, :lo12:.LC21
bl perror
mov w0, -1
b .L64
.L58:
bl pause
b .L58
.L56:
ldr w0, [sp, 80]
cmp w0, 0
blt .L59
add x0, sp, 128
mov x1, x0
ldr w0, [sp, 100]
bl clock_gettime
cmp w0, 0
beq .L60
adrp x0, .LC12
add x0, x0, :lo12:.LC12
bl perror
mov w0, -1
b .L64
.L60:
add x0, sp, 432
mov x2, 56
mov w1, 0
bl memset
str wzr, [sp, 464]
ldr x0, [sp, 128]
add x0, x0, 2
str x0, [sp, 432]
str wzr, [sp, 440]
str xzr, [sp, 448]
ldr w0, [sp, 80]
str w0, [sp, 456]
add x0, sp, 432
mov x2, x0
mov x1, 15619
movk x1, 0x4038, lsl 16
ldr w0, [sp, 96]
bl ioctl
cmp w0, 0
beq .L61
adrp x0, .LC22
add x0, x0, :lo12:.LC22
bl perror
b .L59
.L61:
adrp x0, .LC23
add x0, x0, :lo12:.LC23
bl puts
.L59:
ldr w0, [sp, 84]
cmn w0, #1
beq .L62
ldr w0, [sp, 84]
cmp w0, 0
cset w0, ne
and w0, w0, 255
str w0, [sp, 108]
ldr w2, [sp, 108]
mov x1, 15620
movk x1, 0x4004, lsl 16
ldr w0, [sp, 96]
bl ioctl
cmp w0, 0
beq .L63
adrp x0, .LC24
add x0, x0, :lo12:.LC24
bl perror
b .L62
.L63:
adrp x0, .LC25
add x0, x0, :lo12:.LC25
bl puts
.L62:
ldr w0, [sp, 96]
bl close
mov w0, 0
.L64:
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 632]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L65
bl __stack_chk_fail
.L65:
mov w0, w1
ldp x19, x20, [sp, 16]
ldp x29, x30, [sp]
add sp, sp, 640
.cfi_restore 29
.cfi_restore 30
.cfi_restore 19
.cfi_restore 20
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE12:
.size main, .-main
.local timerid.0
.comm timerid.0,8,8
.section .rodata
.align 3
.LC1:
.word -755914244
.word 1079009869
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global rvyuvCustomMessage
.bss
.align 3
.type rvyuvCustomMessage, %object
.size rvyuvCustomMessage, 8
rvyuvCustomMessage:
.zero 8
.global rvyuvFree
.align 3
.type rvyuvFree, %object
.size rvyuvFree, 8
rvyuvFree:
.zero 8
.global rvyuvHiveMessage
.align 3
.type rvyuvHiveMessage, %object
.size rvyuvHiveMessage, 8
rvyuvHiveMessage:
.zero 8
.global rvyuvInit
.align 3
.type rvyuvInit, %object
.size rvyuvInit, 8
rvyuvInit:
.zero 8
.global rvyuvTransform
.align 3
.type rvyuvTransform, %object
.size rvyuvTransform, 8
rvyuvTransform:
.zero 8
.global rvyuvRNFRUFree
.align 3
.type rvyuvRNFRUFree, %object
.size rvyuvRNFRUFree, 8
rvyuvRNFRUFree:
.zero 8
.global rvyuvRNFRUGetFrame
.align 3
.type rvyuvRNFRUGetFrame, %object
.size rvyuvRNFRUGetFrame, 8
rvyuvRNFRUGetFrame:
.zero 8
.global rvyuvRNFRUInit
.align 3
.type rvyuvRNFRUInit, %object
.size rvyuvRNFRUInit, 8
rvyuvRNFRUInit:
.zero 8
.global rvyuvRNFRUSetup
.align 3
.type rvyuvRNFRUSetup, %object
.size rvyuvRNFRUSetup, 8
rvyuvRNFRUSetup:
.zero 8
.global b_dlOpened
.align 2
.type b_dlOpened, %object
.size b_dlOpened, 4
b_dlOpened:
.zero 4
.global handle
.align 3
.type handle, %object
.size handle, 8
handle:
.zero 8
.section .rodata
.align 3
.LC0:
.string "loadSyms()\n"
.align 3
.LC1:
.string "opening dll...\n"
.align 3
.LC2:
.string "/usr/local/RealPlayer8/Codecs/realdrv2.so.6.0"
.align 3
.LC3:
.string "RV20toYUV420CustomMessage"
.align 3
.LC4:
.string "dlsym(rvyuvCustomMessage): %s\n"
.align 3
.LC5:
.string "RV20toYUV420CustomMessage()=0x%0x\n"
.align 3
.LC6:
.string "RV20toYUV420Free"
.align 3
.LC7:
.string "dlsym(rvyuvFree): %s\n"
.align 3
.LC8:
.string "RV20toYUV420Free()=0x%0x\n"
.align 3
.LC9:
.string "RV20toYUV420HiveMessage"
.align 3
.LC10:
.string "dlsym(rvyuvHiveMessage): %s\n"
.align 3
.LC11:
.string "RV20toYUV420HiveMessage()=0x%0x\n"
.align 3
.LC12:
.string "RV20toYUV420Init"
.align 3
.LC13:
.string "dlsym(rvyuvInit): %s\n"
.align 3
.LC14:
.string "RV20toYUV420Init()=0x%0x\n"
.align 3
.LC15:
.string "RV20toYUV420Transform"
.align 3
.LC16:
.string "dlsym(rvyuvTransform): %s\n"
.align 3
.LC17:
.string "RV20toYUV420Transform()=0x%0x\n"
.align 3
.LC18:
.string "RV20toYUV420_RN_FRU_Free"
.align 3
.LC19:
.string "dlsym(rvyuvRNFRUFree): %s\n"
.align 3
.LC20:
.string "RV20toYUV420_RN_FRU_Free()=0x%0x\n"
.align 3
.LC21:
.string "RV20toYUV420_RN_FRU_GetFrame"
.align 3
.LC22:
.string "dlsym(rvyuvRNFRUGetFrame): %s\n"
.align 3
.LC23:
.string "RV20toYUV420_RN_FRU_GetFrame()=0x%0x\n"
.align 3
.LC24:
.string "RV20toYUV420_RN_FRU_Init"
.align 3
.LC25:
.string "dlsym(rvyuvRNFRUInit): %s\n"
.align 3
.LC26:
.string "RV20toYUV420_RN_FRU_Init()=0x%0x\n"
.align 3
.LC27:
.string "RV20toYUV420_RN_FRU_Setup"
.align 3
.LC28:
.string "dlsym(rvyuvRNFRUSetup): %s\n"
.align 3
.LC29:
.string "RV20toYUV420_RN_FRU_Setup()=0x%0x\n"
.text
.align 2
.global loadSyms
.type loadSyms, %function
loadSyms:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 11
mov x1, 1
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl fwrite
adrp x0, b_dlOpened
add x0, x0, :lo12:b_dlOpened
ldr w0, [x0]
cmp w0, 0
bne .L13
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 15
mov x1, 1
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl fwrite
mov w1, 1
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl dlopen
mov x1, x0
adrp x0, handle
add x0, x0, :lo12:handle
str x1, [x0]
adrp x0, handle
add x0, x0, :lo12:handle
ldr x0, [x0]
cmp x0, 0
bne .L3
bl dlerror
mov x2, x0
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x1, x0
mov x0, x2
bl fputs
mov w0, 1
bl exit
.L3:
adrp x0, handle
add x0, x0, :lo12:handle
ldr x2, [x0]
adrp x0, .LC3
add x1, x0, :lo12:.LC3
mov x0, x2
bl dlsym
mov x1, x0
adrp x0, rvyuvCustomMessage
add x0, x0, :lo12:rvyuvCustomMessage
str x1, [x0]
bl dlerror
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
beq .L4
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
ldr x2, [sp, 24]
adrp x0, .LC4
add x1, x0, :lo12:.LC4
mov x0, x3
bl fprintf
mov w0, 1
bl exit
.L4:
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
adrp x0, rvyuvCustomMessage
add x0, x0, :lo12:rvyuvCustomMessage
ldr x0, [x0]
mov x2, x0
adrp x0, .LC5
add x1, x0, :lo12:.LC5
mov x0, x3
bl fprintf
adrp x0, handle
add x0, x0, :lo12:handle
ldr x2, [x0]
adrp x0, .LC6
add x1, x0, :lo12:.LC6
mov x0, x2
bl dlsym
mov x1, x0
adrp x0, rvyuvFree
add x0, x0, :lo12:rvyuvFree
str x1, [x0]
bl dlerror
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
beq .L5
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
ldr x2, [sp, 24]
adrp x0, .LC7
add x1, x0, :lo12:.LC7
mov x0, x3
bl fprintf
mov w0, 1
bl exit
.L5:
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
adrp x0, rvyuvFree
add x0, x0, :lo12:rvyuvFree
ldr x0, [x0]
mov x2, x0
adrp x0, .LC8
add x1, x0, :lo12:.LC8
mov x0, x3
bl fprintf
adrp x0, handle
add x0, x0, :lo12:handle
ldr x2, [x0]
adrp x0, .LC9
add x1, x0, :lo12:.LC9
mov x0, x2
bl dlsym
mov x1, x0
adrp x0, rvyuvHiveMessage
add x0, x0, :lo12:rvyuvHiveMessage
str x1, [x0]
bl dlerror
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
beq .L6
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
ldr x2, [sp, 24]
adrp x0, .LC10
add x1, x0, :lo12:.LC10
mov x0, x3
bl fprintf
mov w0, 1
bl exit
.L6:
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
adrp x0, rvyuvHiveMessage
add x0, x0, :lo12:rvyuvHiveMessage
ldr x0, [x0]
mov x2, x0
adrp x0, .LC11
add x1, x0, :lo12:.LC11
mov x0, x3
bl fprintf
adrp x0, handle
add x0, x0, :lo12:handle
ldr x2, [x0]
adrp x0, .LC12
add x1, x0, :lo12:.LC12
mov x0, x2
bl dlsym
mov x1, x0
adrp x0, rvyuvInit
add x0, x0, :lo12:rvyuvInit
str x1, [x0]
bl dlerror
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
beq .L7
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
ldr x2, [sp, 24]
adrp x0, .LC13
add x1, x0, :lo12:.LC13
mov x0, x3
bl fprintf
mov w0, 1
bl exit
.L7:
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
adrp x0, rvyuvInit
add x0, x0, :lo12:rvyuvInit
ldr x0, [x0]
mov x2, x0
adrp x0, .LC14
add x1, x0, :lo12:.LC14
mov x0, x3
bl fprintf
adrp x0, handle
add x0, x0, :lo12:handle
ldr x2, [x0]
adrp x0, .LC15
add x1, x0, :lo12:.LC15
mov x0, x2
bl dlsym
mov x1, x0
adrp x0, rvyuvTransform
add x0, x0, :lo12:rvyuvTransform
str x1, [x0]
bl dlerror
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
beq .L8
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
ldr x2, [sp, 24]
adrp x0, .LC16
add x1, x0, :lo12:.LC16
mov x0, x3
bl fprintf
mov w0, 1
bl exit
.L8:
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
adrp x0, rvyuvTransform
add x0, x0, :lo12:rvyuvTransform
ldr x0, [x0]
mov x2, x0
adrp x0, .LC17
add x1, x0, :lo12:.LC17
mov x0, x3
bl fprintf
adrp x0, handle
add x0, x0, :lo12:handle
ldr x2, [x0]
adrp x0, .LC18
add x1, x0, :lo12:.LC18
mov x0, x2
bl dlsym
mov x1, x0
adrp x0, rvyuvRNFRUFree
add x0, x0, :lo12:rvyuvRNFRUFree
str x1, [x0]
bl dlerror
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
beq .L9
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
ldr x2, [sp, 24]
adrp x0, .LC19
add x1, x0, :lo12:.LC19
mov x0, x3
bl fprintf
mov w0, 1
bl exit
.L9:
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
adrp x0, rvyuvRNFRUFree
add x0, x0, :lo12:rvyuvRNFRUFree
ldr x0, [x0]
mov x2, x0
adrp x0, .LC20
add x1, x0, :lo12:.LC20
mov x0, x3
bl fprintf
adrp x0, handle
add x0, x0, :lo12:handle
ldr x2, [x0]
adrp x0, .LC21
add x1, x0, :lo12:.LC21
mov x0, x2
bl dlsym
mov x1, x0
adrp x0, rvyuvRNFRUGetFrame
add x0, x0, :lo12:rvyuvRNFRUGetFrame
str x1, [x0]
bl dlerror
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
beq .L10
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
ldr x2, [sp, 24]
adrp x0, .LC22
add x1, x0, :lo12:.LC22
mov x0, x3
bl fprintf
mov w0, 1
bl exit
.L10:
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
adrp x0, rvyuvRNFRUGetFrame
add x0, x0, :lo12:rvyuvRNFRUGetFrame
ldr x0, [x0]
mov x2, x0
adrp x0, .LC23
add x1, x0, :lo12:.LC23
mov x0, x3
bl fprintf
adrp x0, handle
add x0, x0, :lo12:handle
ldr x2, [x0]
adrp x0, .LC24
add x1, x0, :lo12:.LC24
mov x0, x2
bl dlsym
mov x1, x0
adrp x0, rvyuvRNFRUInit
add x0, x0, :lo12:rvyuvRNFRUInit
str x1, [x0]
bl dlerror
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
beq .L11
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
ldr x2, [sp, 24]
adrp x0, .LC25
add x1, x0, :lo12:.LC25
mov x0, x3
bl fprintf
mov w0, 1
bl exit
.L11:
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
adrp x0, rvyuvRNFRUInit
add x0, x0, :lo12:rvyuvRNFRUInit
ldr x0, [x0]
mov x2, x0
adrp x0, .LC26
add x1, x0, :lo12:.LC26
mov x0, x3
bl fprintf
adrp x0, handle
add x0, x0, :lo12:handle
ldr x2, [x0]
adrp x0, .LC27
add x1, x0, :lo12:.LC27
mov x0, x2
bl dlsym
mov x1, x0
adrp x0, rvyuvRNFRUSetup
add x0, x0, :lo12:rvyuvRNFRUSetup
str x1, [x0]
bl dlerror
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
beq .L12
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
ldr x2, [sp, 24]
adrp x0, .LC28
add x1, x0, :lo12:.LC28
mov x0, x3
bl fprintf
mov w0, 1
bl exit
.L12:
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
adrp x0, rvyuvRNFRUSetup
add x0, x0, :lo12:rvyuvRNFRUSetup
ldr x0, [x0]
mov x2, x0
adrp x0, .LC29
add x1, x0, :lo12:.LC29
mov x0, x3
bl fprintf
adrp x0, b_dlOpened
add x0, x0, :lo12:b_dlOpened
mov w1, 1
str w1, [x0]
.L13:
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size loadSyms, .-loadSyms
.align 2
.global closeDll
.type closeDll, %function
closeDll:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
adrp x0, handle
add x0, x0, :lo12:handle
ldr x0, [x0]
cmp x0, 0
beq .L16
adrp x0, b_dlOpened
add x0, x0, :lo12:b_dlOpened
str wzr, [x0]
adrp x0, handle
add x0, x0, :lo12:handle
ldr x0, [x0]
bl dlclose
adrp x0, handle
add x0, x0, :lo12:handle
str xzr, [x0]
.L16:
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size closeDll, .-closeDll
.align 2
.global _init
.type _init, %function
_init:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
bl loadSyms
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size _init, .-_init
.global tz
.bss
.align 3
.type tz, %object
.size tz, 8
tz:
.zero 8
.global tv1
.align 3
.type tv1, %object
.size tv1, 16
tv1:
.zero 16
.global tv2
.align 3
.type tv2, %object
.size tv2, 16
tv2:
.zero 16
.text
.align 2
.global tic
.type tic, %function
tic:
.LFB9:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
adrp x0, tz
add x1, x0, :lo12:tz
adrp x0, tv1
add x0, x0, :lo12:tv1
bl gettimeofday
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size tic, .-tic
.align 2
.global toc
.type toc, %function
toc:
.LFB10:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
adrp x0, tz
add x1, x0, :lo12:tz
adrp x0, tv2
add x0, x0, :lo12:tv2
bl gettimeofday
adrp x0, tv2
add x0, x0, :lo12:tv2
ldr x1, [x0]
adrp x0, tv1
add x0, x0, :lo12:tv1
ldr x0, [x0]
sub x0, x1, x0
str x0, [sp, 16]
adrp x0, tv2
add x0, x0, :lo12:tv2
ldr x1, [x0, 8]
adrp x0, tv1
add x0, x0, :lo12:tv1
ldr x0, [x0, 8]
sub x0, x1, x0
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
bge .L21
ldr x1, [sp, 24]
mov x0, 16960
movk x0, 0xf, lsl 16
add x0, x1, x0
str x0, [sp, 24]
ldr x0, [sp, 16]
sub x0, x0, #1
str x0, [sp, 16]
.L21:
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size toc, .-toc
.section .rodata
.align 3
.LC30:
.string "#R# %0x "
.align 3
.LC31:
.string "%02x "
.align 3
.LC32:
.string " "
.align 3
.LC33:
.string " "
.text
.align 2
.type hexdump, %function
hexdump:
.LFB11:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 24]
str w1, [sp, 20]
ldr x0, [sp, 24]
str x0, [sp, 48]
ldr w0, [sp, 20]
add w0, w0, 15
asr w0, w0, 4
str w0, [sp, 36]
b .L23
.L33:
ldr w0, [sp, 20]
str w0, [sp, 40]
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
ldr x0, [sp, 48]
mov w1, w0
ldr x0, [sp, 24]
sub w0, w1, w0
mov w2, w0
adrp x0, .LC30
add x1, x0, :lo12:.LC30
mov x0, x3
bl fprintf
ldr x0, [sp, 48]
str x0, [sp, 56]
str wzr, [sp, 44]
b .L24
.L27:
ldr w0, [sp, 40]
cmp w0, 0
ble .L25
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
ldr x0, [sp, 48]
add x1, x0, 1
str x1, [sp, 48]
ldrb w0, [x0]
mov w2, w0
adrp x0, .LC31
add x1, x0, :lo12:.LC31
mov x0, x3
bl fprintf
b .L26
.L25:
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 3
mov x1, 1
adrp x0, .LC32
add x0, x0, :lo12:.LC32
bl fwrite
.L26:
ldr w0, [sp, 40]
sub w0, w0, #1
str w0, [sp, 40]
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L24:
ldr w0, [sp, 44]
cmp w0, 15
ble .L27
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 2
mov x1, 1
adrp x0, .LC33
add x0, x0, :lo12:.LC33
bl fwrite
ldr x0, [sp, 56]
str x0, [sp, 48]
str wzr, [sp, 44]
b .L28
.L32:
ldr w0, [sp, 20]
cmp w0, 0
ble .L29
ldr x0, [sp, 48]
add x1, x0, 1
str x1, [sp, 48]
ldrb w0, [x0]
strb w0, [sp, 35]
ldrb w0, [sp, 35]
cmp w0, 31
bls .L30
ldrsb w0, [sp, 35]
cmp w0, 0
bge .L31
.L30:
mov w0, 46
strb w0, [sp, 35]
.L31:
ldrb w2, [sp, 35]
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x1, x0
mov w0, w2
bl fputc
.L29:
ldr w0, [sp, 20]
sub w0, w0, #1
str w0, [sp, 20]
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L28:
ldr w0, [sp, 44]
cmp w0, 15
ble .L32
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x1, x0
mov w0, 10
bl fputc
.L23:
ldr w0, [sp, 36]
sub w1, w0, #1
str w1, [sp, 36]
cmp w0, 0
bne .L33
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x1, x0
mov w0, 10
bl fputc
nop
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size hexdump, .-hexdump
.section .rodata
.align 3
.LC34:
.string "#R# => RV20toYUV420CustomMessage(%p,%p) [%ld,%ld,%ld] \n"
.align 3
.LC35:
.string "#R# <= RV20toYUV420CustomMessage --> 0x%0lx(%ld)\n"
.text
.align 2
.global RV20toYUV420CustomMessage
.type RV20toYUV420CustomMessage, %function
RV20toYUV420CustomMessage:
.LFB12:
.cfi_startproc
stp x29, x30, [sp, -176]!
.cfi_def_cfa_offset 176
.cfi_offset 29, -176
.cfi_offset 30, -168
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 168]
mov x1, 0
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x7, [x0]
ldr x0, [sp, 24]
ldr x1, [x0]
ldr x0, [sp, 24]
add x0, x0, 8
ldr x2, [x0]
ldr x0, [sp, 24]
add x0, x0, 16
ldr x0, [x0]
mov x6, x0
mov x5, x2
mov x4, x1
ldr x3, [sp, 16]
ldr x2, [sp, 24]
adrp x0, .LC34
add x1, x0, :lo12:.LC34
mov x0, x7
bl fprintf
ldr x0, [sp, 24]
ldr x0, [x0]
cmp x0, 36
bne .L35
ldr x0, [sp, 24]
add x0, x0, 16
ldr x0, [x0]
mov w1, 64
bl hexdump
add x0, sp, 40
mov x2, 64
mov w1, 119
bl memset
ldr x0, [sp, 24]
add x0, x0, 16
ldr x0, [x0]
ldp x0, x1, [x0]
stp x0, x1, [sp, 40]
ldr x0, [sp, 24]
add x0, x0, 16
add x1, sp, 40
str x1, [x0]
b .L36
.L35:
ldr x0, [sp, 24]
ldr x0, [x0]
cmp x0, 17
bne .L37
ldr x0, [sp, 24]
add x0, x0, 8
ldr x0, [x0]
cmp x0, 1
beq .L41
.L37:
mov x0, 0
b .L39
.L41:
nop
.L36:
adrp x0, rvyuvCustomMessage
add x0, x0, :lo12:rvyuvCustomMessage
ldr x2, [x0]
ldr x0, [sp, 24]
ldr x1, [sp, 16]
blr x2
str x0, [sp, 32]
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x4, [x0]
ldr x3, [sp, 32]
ldr x2, [sp, 32]
adrp x0, .LC35
add x1, x0, :lo12:.LC35
mov x0, x4
bl fprintf
ldr x0, [sp, 32]
.L39:
mov x1, x0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 168]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L40
bl __stack_chk_fail
.L40:
mov x0, x1
ldp x29, x30, [sp], 176
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE12:
.size RV20toYUV420CustomMessage, .-RV20toYUV420CustomMessage
.section .rodata
.align 3
.LC36:
.string "RV20toYUV420Free(ulong p1=0x%0lx(%ld))\n"
.align 3
.LC37:
.string "RV20toYUV420Free --> 0x%0lx(%ld)\n\n\n"
.text
.align 2
.global RV20toYUV420Free
.type RV20toYUV420Free, %function
RV20toYUV420Free:
.LFB13:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x4, [x0]
ldr x3, [sp, 24]
ldr x2, [sp, 24]
adrp x0, .LC36
add x1, x0, :lo12:.LC36
mov x0, x4
bl fprintf
bl tic
adrp x0, rvyuvFree
add x0, x0, :lo12:rvyuvFree
ldr x1, [x0]
ldr x0, [sp, 24]
blr x1
str x0, [sp, 40]
bl toc
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x4, [x0]
ldr x3, [sp, 40]
ldr x2, [sp, 40]
adrp x0, .LC37
add x1, x0, :lo12:.LC37
mov x0, x4
bl fprintf
ldr x0, [sp, 40]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE13:
.size RV20toYUV420Free, .-RV20toYUV420Free
.global h_temp
.bss
.align 3
.type h_temp, %object
.size h_temp, 32768
h_temp:
.zero 32768
.section .rodata
.align 3
.LC38:
.string "#R# RV20toYUV420HiveMessage(%p,%p)\n"
.align 3
.LC39:
.string ">HIVE %ld %p\n"
.text
.align 2
.global RV20toYUV420HiveMessage
.type RV20toYUV420HiveMessage, %function
RV20toYUV420HiveMessage:
.LFB14:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x4, [x0]
ldr x3, [sp, 16]
ldr x2, [sp, 24]
adrp x0, .LC38
add x1, x0, :lo12:.LC38
mov x0, x4
bl fprintf
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x4, [x0]
ldr x0, [sp, 24]
ldr x1, [x0]
ldr x0, [sp, 24]
add x0, x0, 8
ldr x0, [x0]
mov x3, x0
mov x2, x1
adrp x0, .LC39
add x1, x0, :lo12:.LC39
mov x0, x4
bl fprintf
ldr x0, [sp, 24]
ldr x0, [x0]
cmp x0, 0
beq .L45
mov x0, 0
b .L46
.L45:
ldr x0, [sp, 24]
add x0, x0, 8
mov x1, 268435456
str x1, [x0]
mov x0, 0
.L46:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE14:
.size RV20toYUV420HiveMessage, .-RV20toYUV420HiveMessage
.local i_temp
.comm i_temp,32768,8
.section .rodata
.align 3
.LC40:
.string "#R# RV20toYUV420Init(ulong p1=0x%0lx(%ld), "
.align 3
.LC41:
.string "ulong p2=0x%0lx(%ld))\n"
.align 3
.LC42:
.string "COPY INIT DATA!\n"
.align 3
.LC43:
.string "COPY OK!\n"
.align 3
.LC44:
.string "#R# RV20toYUV420Init --> 0x%0lx(%ld)\n\n\n"
.text
.align 2
.global RV20toYUV420Init
.type RV20toYUV420Init, %function
RV20toYUV420Init:
.LFB15:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x4, [x0]
ldr x3, [sp, 24]
ldr x2, [sp, 24]
adrp x0, .LC40
add x1, x0, :lo12:.LC40
mov x0, x4
bl fprintf
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x4, [x0]
ldr x3, [sp, 16]
ldr x2, [sp, 16]
adrp x0, .LC41
add x1, x0, :lo12:.LC41
mov x0, x4
bl fprintf
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 16
mov x1, 1
adrp x0, .LC42
add x0, x0, :lo12:.LC42
bl fwrite
ldr x0, [sp, 24]
mov x2, 24
mov x1, x0
adrp x0, i_temp
add x0, x0, :lo12:i_temp
bl memcpy
adrp x0, i_temp
add x0, x0, :lo12:i_temp
str x0, [sp, 24]
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 9
mov x1, 1
adrp x0, .LC43
add x0, x0, :lo12:.LC43
bl fwrite
ldr x0, [sp, 24]
mov w1, 24
bl hexdump
bl tic
adrp x0, rvyuvInit
add x0, x0, :lo12:rvyuvInit
ldr x2, [x0]
ldr x1, [sp, 16]
ldr x0, [sp, 24]
blr x2
str x0, [sp, 40]
bl toc
ldr x0, [sp, 24]
mov w1, 24
bl hexdump
mov x2, 1000
mov w1, 119
adrp x0, i_temp
add x0, x0, :lo12:i_temp
bl memset
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x4, [x0]
ldr x3, [sp, 40]
ldr x2, [sp, 40]
adrp x0, .LC44
add x1, x0, :lo12:.LC44
mov x0, x4
bl fprintf
ldr x0, [sp, 40]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE15:
.size RV20toYUV420Init, .-RV20toYUV420Init
.align 2
.global build_crc
.type build_crc, %function
build_crc:
.LFB16:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str x1, [sp]
str xzr, [sp, 16]
b .L50
.L51:
ldr x0, [sp, 8]
add x1, x0, 1
str x1, [sp, 8]
ldrb w0, [x0]
and x0, x0, 255
str x0, [sp, 24]
ldr x1, [sp, 16]
ldr x0, [sp, 24]
eor x0, x1, x0
str x0, [sp, 16]
.L50:
ldr x0, [sp]
sub x1, x0, #1
str x1, [sp]
cmp x0, 0
bne .L51
ldr x0, [sp, 16]
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE16:
.size build_crc, .-build_crc
.section .rodata
.align 3
.LC45:
.string "#R# RV20toYUV420Transform(in=%p,out=%p,tin=%p,tout=%p,yuv=%p)\n"
.align 3
.LC46:
.string "transin1[%p]: {%ld/%ld} "
.align 3
.LC47:
.string " %p(%ld)"
.align 3
.LC48:
.string "#R# Decode: %ld(%ld) [%08lX] pts=%ld -> %ld [%08lX]\n"
.text
.align 2
.global RV20toYUV420Transform
.type RV20toYUV420Transform, %function
RV20toYUV420Transform:
.LFB17:
.cfi_startproc
sub sp, sp, #1168
.cfi_def_cfa_offset 1168
stp x29, x30, [sp]
.cfi_offset 29, -1168
.cfi_offset 30, -1160
mov x29, sp
str x0, [sp, 56]
str x1, [sp, 48]
str x2, [sp, 40]
str x3, [sp, 32]
str x4, [sp, 24]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 1160]
mov x1, 0
ldr x0, [sp, 40]
str x0, [sp, 80]
ldr x0, [sp, 32]
str x0, [sp, 88]
ldr x0, [sp, 56]
str x0, [sp, 96]
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x7, [x0]
ldr x6, [sp, 24]
ldr x5, [sp, 32]
ldr x4, [sp, 40]
ldr x3, [sp, 48]
ldr x2, [sp, 56]
adrp x0, .LC45
add x1, x0, :lo12:.LC45
mov x0, x7
bl fprintf
ldr x0, [sp, 40]
str x0, [sp, 80]
ldr x0, [sp, 56]
str x0, [sp, 96]
ldr x0, [sp, 80]
ldr x0, [x0]
mov x1, x0
ldr x0, [sp, 96]
bl build_crc
str x0, [sp, 104]
ldr x0, [sp, 80]
add x0, x0, 24
ldr x0, [x0]
str x0, [sp, 88]
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x5, [x0]
ldr x0, [sp, 80]
add x0, x0, 16
ldr x1, [x0]
ldr x0, [sp, 80]
ldr x0, [x0]
mov x4, x0
mov x3, x1
ldr x2, [sp, 88]
adrp x0, .LC46
add x1, x0, :lo12:.LC46
mov x0, x5
bl fprintf
add x0, sp, 136
mov x2, 512
mov w1, 119
bl memset
ldr x0, [sp, 80]
add x0, x0, 16
ldr x0, [x0]
add x0, x0, 1
lsl x1, x0, 3
add x0, sp, 136
mov x2, x1
ldr x1, [sp, 88]
bl memcpy
str wzr, [sp, 76]
b .L54
.L55:
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x4, [x0]
ldr w0, [sp, 76]
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 3
add x1, sp, 136
ldr x2, [x1, x0]
ldr w0, [sp, 76]
lsl w0, w0, 1
add w0, w0, 1
sxtw x0, w0
lsl x0, x0, 3
add x1, sp, 136
ldr x0, [x1, x0]
mov x3, x0
adrp x0, .LC47
add x1, x0, :lo12:.LC47
mov x0, x4
bl fprintf
ldr w0, [sp, 76]
add w0, w0, 1
str w0, [sp, 76]
.L54:
ldrsw x1, [sp, 76]
ldr x0, [sp, 80]
add x0, x0, 16
ldr x0, [x0]
cmp x1, x0
bls .L55
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x1, x0
mov w0, 10
bl fputc
add x0, sp, 136
str x0, [sp, 88]
ldr x0, [sp, 80]
add x0, x0, 24
ldr x1, [sp, 88]
str x1, [x0]
ldr x0, [sp, 24]
str x0, [sp, 112]
adrp x0, rvyuvTransform
add x0, x0, :lo12:rvyuvTransform
ldr x5, [x0]
ldr x4, [sp, 24]
ldr x3, [sp, 32]
ldr x2, [sp, 40]
ldr x1, [sp, 48]
ldr x0, [sp, 56]
blr x5
str x0, [sp, 120]
ldr x0, [sp, 48]
mov x1, 25344
bl build_crc
str x0, [sp, 128]
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x8, [x0]
ldr x0, [sp, 80]
ldr x1, [x0]
ldr x0, [sp, 80]
add x0, x0, 16
ldr x2, [x0]
ldr x0, [sp, 80]
add x0, x0, 40
ldr x0, [x0]
ldr x7, [sp, 128]
ldr x6, [sp, 120]
mov x5, x0
ldr x4, [sp, 104]
mov x3, x2
mov x2, x1
adrp x0, .LC48
add x1, x0, :lo12:.LC48
mov x0, x8
bl fprintf
ldr x0, [sp, 120]
mov x1, x0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 1160]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L57
bl __stack_chk_fail
.L57:
mov x0, x1
ldp x29, x30, [sp]
add sp, sp, 1168
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE17:
.size RV20toYUV420Transform, .-RV20toYUV420Transform
.section .rodata
.align 3
.LC49:
.string "RV20toYUV420_RN_FRU_Free(ulong p1=0x%0lx(%ld))\n"
.align 3
.LC50:
.string "RV20toYUV420_RN_FRU_Free --> 0x%0lx(%ld)\n\n\n"
.text
.align 2
.global RV20toYUV420_RN_FRU_Free
.type RV20toYUV420_RN_FRU_Free, %function
RV20toYUV420_RN_FRU_Free:
.LFB18:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x4, [x0]
ldr x3, [sp, 24]
ldr x2, [sp, 24]
adrp x0, .LC49
add x1, x0, :lo12:.LC49
mov x0, x4
bl fprintf
bl tic
adrp x0, rvyuvRNFRUFree
add x0, x0, :lo12:rvyuvRNFRUFree
ldr x1, [x0]
ldr x0, [sp, 24]
blr x1
str x0, [sp, 40]
bl toc
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x4, [x0]
ldr x3, [sp, 40]
ldr x2, [sp, 40]
adrp x0, .LC50
add x1, x0, :lo12:.LC50
mov x0, x4
bl fprintf
ldr x0, [sp, 40]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE18:
.size RV20toYUV420_RN_FRU_Free, .-RV20toYUV420_RN_FRU_Free
.align 2
.global RV20toYUV420_RN_FRU_GetFrame
.type RV20toYUV420_RN_FRU_GetFrame, %function
RV20toYUV420_RN_FRU_GetFrame:
.LFB19:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str x2, [sp, 24]
bl tic
adrp x0, rvyuvRNFRUGetFrame
add x0, x0, :lo12:rvyuvRNFRUGetFrame
ldr x3, [x0]
ldr x2, [sp, 24]
ldr x1, [sp, 32]
ldr x0, [sp, 40]
blr x3
str x0, [sp, 56]
bl toc
ldr x0, [sp, 56]
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE19:
.size RV20toYUV420_RN_FRU_GetFrame, .-RV20toYUV420_RN_FRU_GetFrame
.align 2
.global RV20toYUV420_RN_FRU_Init
.type RV20toYUV420_RN_FRU_Init, %function
RV20toYUV420_RN_FRU_Init:
.LFB20:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str x2, [sp, 24]
bl tic
adrp x0, rvyuvRNFRUInit
add x0, x0, :lo12:rvyuvRNFRUInit
ldr x3, [x0]
ldr x2, [sp, 24]
ldr x1, [sp, 32]
ldr x0, [sp, 40]
blr x3
str x0, [sp, 56]
bl toc
ldr x0, [sp, 56]
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE20:
.size RV20toYUV420_RN_FRU_Init, .-RV20toYUV420_RN_FRU_Init
.align 2
.global RV20toYUV420_RN_FRU_Setup
.type RV20toYUV420_RN_FRU_Setup, %function
RV20toYUV420_RN_FRU_Setup:
.LFB21:
.cfi_startproc
stp x29, x30, [sp, -96]!
.cfi_def_cfa_offset 96
.cfi_offset 29, -96
.cfi_offset 30, -88
mov x29, sp
str x0, [sp, 72]
str x1, [sp, 64]
str x2, [sp, 56]
str x3, [sp, 48]
str x4, [sp, 40]
str x5, [sp, 32]
str x6, [sp, 24]
str x7, [sp, 16]
bl tic
adrp x0, rvyuvRNFRUSetup
add x0, x0, :lo12:rvyuvRNFRUSetup
ldr x8, [x0]
ldr x7, [sp, 16]
ldr x6, [sp, 24]
ldr x5, [sp, 32]
ldr x4, [sp, 40]
ldr x3, [sp, 48]
ldr x2, [sp, 56]
ldr x1, [sp, 64]
ldr x0, [sp, 72]
blr x8
str x0, [sp, 88]
bl toc
ldr x0, [sp, 88]
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE21:
.size RV20toYUV420_RN_FRU_Setup, .-RV20toYUV420_RN_FRU_Setup
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global GUID_StandardMIDIFile
.section .rodata
.align 3
.type GUID_StandardMIDIFile, %object
.size GUID_StandardMIDIFile, 24
GUID_StandardMIDIFile:
.xword 107090037
.hword -5842
.hword 4561
.string "\250\305"
.ascii "\300O\243rn"
.zero 4
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global zx_des
.type zx_des, %function
zx_des:
.LFB6:
.cfi_startproc
sub sp, sp, #1360
.cfi_def_cfa_offset 1360
stp x29, x30, [sp]
.cfi_offset 29, -1360
.cfi_offset 30, -1352
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str x2, [sp, 24]
strb w3, [sp, 23]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 1352]
mov x1, 0
adrp x0, .LC8
add x0, x0, :lo12:.LC8
ldp x0, x1, [x0]
add x2, sp, 1024
stp x0, x1, [x2, 248]
adrp x0, .LC9
add x1, x0, :lo12:.LC9
add x0, sp, 1288
ldp q0, q1, [x1]
stp q0, q1, [x0]
ldp q0, q1, [x1, 32]
stp q0, q1, [x0, 32]
adrp x0, .LC0
add x1, x0, :lo12:.LC0
add x0, sp, 72
ldp q0, q1, [x1]
stp q0, q1, [x0]
ldp q0, q1, [x1, 32]
stp q0, q1, [x0, 32]
adrp x0, .LC1
add x1, x0, :lo12:.LC1
add x0, sp, 136
ldp q0, q1, [x1]
stp q0, q1, [x0]
ldp q0, q1, [x1, 32]
stp q0, q1, [x0, 32]
adrp x0, .LC2
add x1, x0, :lo12:.LC2
add x0, sp, 200
ldp q0, q1, [x1]
stp q0, q1, [x0]
ldp q0, q1, [x1, 32]
stp q0, q1, [x0, 32]
adrp x0, .LC3
add x1, x0, :lo12:.LC3
add x0, sp, 264
ldp q0, q1, [x1]
stp q0, q1, [x0]
ldp q0, q1, [x1, 32]
stp q0, q1, [x0, 32]
adrp x0, .LC4
add x1, x0, :lo12:.LC4
add x0, sp, 328
ldp q0, q1, [x1]
stp q0, q1, [x0]
ldp q0, q1, [x1, 32]
stp q0, q1, [x0, 32]
adrp x0, .LC5
add x1, x0, :lo12:.LC5
add x0, sp, 392
ldp q0, q1, [x1]
stp q0, q1, [x0]
ldp q0, q1, [x1, 32]
stp q0, q1, [x0, 32]
adrp x0, .LC6
add x1, x0, :lo12:.LC6
add x0, sp, 456
ldp q0, q1, [x1]
stp q0, q1, [x0]
ldp q0, q1, [x1, 32]
stp q0, q1, [x0, 32]
adrp x0, .LC7
add x1, x0, :lo12:.LC7
add x0, sp, 520
ldp q0, q1, [x1]
stp q0, q1, [x0]
ldp q0, q1, [x1, 32]
stp q0, q1, [x0, 32]
strh wzr, [sp, 56]
b .L2
.L3:
ldrsh x0, [sp, 56]
ldr x1, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
strh w0, [sp, 58]
ldrsh w0, [sp, 58]
add w1, w0, 127
cmp w0, 0
csel w0, w1, w0, lt
asr w0, w0, 7
sxth w0, w0
and w0, w0, 65535
ldrsh w1, [sp, 56]
lsl w1, w1, 3
and w0, w0, 1
and w2, w0, 65535
sxtw x0, w1
lsl x0, x0, 1
add x1, sp, 1144
strh w2, [x1, x0]
ldrsh w0, [sp, 58]
add w1, w0, 63
cmp w0, 0
csel w0, w1, w0, lt
asr w0, w0, 6
sxth w0, w0
cmp w0, 0
and w0, w0, 1
csneg w0, w0, w0, ge
sxth w1, w0
ldrsh w0, [sp, 56]
lsl w0, w0, 3
add w0, w0, 1
and w2, w1, 65535
sxtw x0, w0
lsl x0, x0, 1
add x1, sp, 1144
strh w2, [x1, x0]
ldrsh w0, [sp, 58]
add w1, w0, 31
cmp w0, 0
csel w0, w1, w0, lt
asr w0, w0, 5
sxth w0, w0
cmp w0, 0
and w0, w0, 1
csneg w0, w0, w0, ge
sxth w1, w0
ldrsh w0, [sp, 56]
lsl w0, w0, 3
add w0, w0, 2
and w2, w1, 65535
sxtw x0, w0
lsl x0, x0, 1
add x1, sp, 1144
strh w2, [x1, x0]
ldrsh w0, [sp, 58]
add w1, w0, 15
cmp w0, 0
csel w0, w1, w0, lt
asr w0, w0, 4
sxth w0, w0
cmp w0, 0
and w0, w0, 1
csneg w0, w0, w0, ge
sxth w1, w0
ldrsh w0, [sp, 56]
lsl w0, w0, 3
add w0, w0, 3
and w2, w1, 65535
sxtw x0, w0
lsl x0, x0, 1
add x1, sp, 1144
strh w2, [x1, x0]
ldrsh w0, [sp, 58]
add w1, w0, 7
cmp w0, 0
csel w0, w1, w0, lt
asr w0, w0, 3
sxth w0, w0
cmp w0, 0
and w0, w0, 1
csneg w0, w0, w0, ge
sxth w1, w0
ldrsh w0, [sp, 56]
lsl w0, w0, 3
add w0, w0, 4
and w2, w1, 65535
sxtw x0, w0
lsl x0, x0, 1
add x1, sp, 1144
strh w2, [x1, x0]
ldrsh w0, [sp, 58]
add w1, w0, 3
cmp w0, 0
csel w0, w1, w0, lt
asr w0, w0, 2
sxth w0, w0
cmp w0, 0
and w0, w0, 1
csneg w0, w0, w0, ge
sxth w1, w0
ldrsh w0, [sp, 56]
lsl w0, w0, 3
add w0, w0, 5
and w2, w1, 65535
sxtw x0, w0
lsl x0, x0, 1
add x1, sp, 1144
strh w2, [x1, x0]
ldrsh w0, [sp, 58]
lsr w1, w0, 31
add w0, w1, w0
asr w0, w0, 1
sxth w0, w0
cmp w0, 0
and w0, w0, 1
csneg w0, w0, w0, ge
sxth w1, w0
ldrsh w0, [sp, 56]
lsl w0, w0, 3
add w0, w0, 6
and w2, w1, 65535
sxtw x0, w0
lsl x0, x0, 1
add x1, sp, 1144
strh w2, [x1, x0]
ldrsh w0, [sp, 58]
cmp w0, 0
and w0, w0, 1
csneg w0, w0, w0, ge
sxth w1, w0
ldrsh w0, [sp, 56]
lsl w0, w0, 3
add w0, w0, 7
and w2, w1, 65535
sxtw x0, w0
lsl x0, x0, 1
add x1, sp, 1144
strh w2, [x1, x0]
ldrsh w0, [sp, 56]
and w0, w0, 65535
add w0, w0, 1
and w0, w0, 65535
strh w0, [sp, 56]
.L2:
ldrsh w0, [sp, 56]
cmp w0, 7
ble .L3
strh wzr, [sp, 56]
b .L4
.L5:
ldrsh x0, [sp, 56]
ldr x1, [sp, 40]
add x0, x1, x0
ldrb w0, [x0]
strh w0, [sp, 58]
ldrsh w0, [sp, 58]
add w1, w0, 127
cmp w0, 0
csel w0, w1, w0, lt
asr w0, w0, 7
sxth w0, w0
and w0, w0, 65535
ldrsh w1, [sp, 56]
lsl w1, w1, 3
and w0, w0, 1
and w2, w0, 65535
sxtw x0, w1
lsl x0, x0, 1
add x1, sp, 1016
strh w2, [x1, x0]
ldrsh w0, [sp, 58]
add w1, w0, 63
cmp w0, 0
csel w0, w1, w0, lt
asr w0, w0, 6
sxth w0, w0
cmp w0, 0
and w0, w0, 1
csneg w0, w0, w0, ge
sxth w1, w0
ldrsh w0, [sp, 56]
lsl w0, w0, 3
add w0, w0, 1
and w2, w1, 65535
sxtw x0, w0
lsl x0, x0, 1
add x1, sp, 1016
strh w2, [x1, x0]
ldrsh w0, [sp, 58]
add w1, w0, 31
cmp w0, 0
csel w0, w1, w0, lt
asr w0, w0, 5
sxth w0, w0
cmp w0, 0
and w0, w0, 1
csneg w0, w0, w0, ge
sxth w1, w0
ldrsh w0, [sp, 56]
lsl w0, w0, 3
add w0, w0, 2
and w2, w1, 65535
sxtw x0, w0
lsl x0, x0, 1
add x1, sp, 1016
strh w2, [x1, x0]
ldrsh w0, [sp, 58]
add w1, w0, 15
cmp w0, 0
csel w0, w1, w0, lt
asr w0, w0, 4
sxth w0, w0
cmp w0, 0
and w0, w0, 1
csneg w0, w0, w0, ge
sxth w1, w0
ldrsh w0, [sp, 56]
lsl w0, w0, 3
add w0, w0, 3
and w2, w1, 65535
sxtw x0, w0
lsl x0, x0, 1
add x1, sp, 1016
strh w2, [x1, x0]
ldrsh w0, [sp, 58]
add w1, w0, 7
cmp w0, 0
csel w0, w1, w0, lt
asr w0, w0, 3
sxth w0, w0
cmp w0, 0
and w0, w0, 1
csneg w0, w0, w0, ge
sxth w1, w0
ldrsh w0, [sp, 56]
lsl w0, w0, 3
add w0, w0, 4
and w2, w1, 65535
sxtw x0, w0
lsl x0, x0, 1
add x1, sp, 1016
strh w2, [x1, x0]
ldrsh w0, [sp, 58]
add w1, w0, 3
cmp w0, 0
csel w0, w1, w0, lt
asr w0, w0, 2
sxth w0, w0
cmp w0, 0
and w0, w0, 1
csneg w0, w0, w0, ge
sxth w1, w0
ldrsh w0, [sp, 56]
lsl w0, w0, 3
add w0, w0, 5
and w2, w1, 65535
sxtw x0, w0
lsl x0, x0, 1
add x1, sp, 1016
strh w2, [x1, x0]
ldrsh w0, [sp, 58]
lsr w1, w0, 31
add w0, w1, w0
asr w0, w0, 1
sxth w0, w0
cmp w0, 0
and w0, w0, 1
csneg w0, w0, w0, ge
sxth w1, w0
ldrsh w0, [sp, 56]
lsl w0, w0, 3
add w0, w0, 6
and w2, w1, 65535
sxtw x0, w0
lsl x0, x0, 1
add x1, sp, 1016
strh w2, [x1, x0]
ldrsh w0, [sp, 58]
cmp w0, 0
and w0, w0, 1
csneg w0, w0, w0, ge
sxth w1, w0
ldrsh w0, [sp, 56]
lsl w0, w0, 3
add w0, w0, 7
and w2, w1, 65535
sxtw x0, w0
lsl x0, x0, 1
add x1, sp, 1016
strh w2, [x1, x0]
ldrsh w0, [sp, 56]
and w0, w0, 65535
add w0, w0, 1
and w0, w0, 65535
strh w0, [sp, 56]
.L4:
ldrsh w0, [sp, 56]
cmp w0, 7
ble .L5
ldrh w0, [sp, 1130]
strh w0, [sp, 888]
ldrh w0, [sp, 1114]
strh w0, [sp, 890]
ldrh w0, [sp, 1098]
strh w0, [sp, 892]
ldrh w0, [sp, 1082]
strh w0, [sp, 894]
ldrh w0, [sp, 1066]
strh w0, [sp, 896]
ldrh w0, [sp, 1050]
strh w0, [sp, 898]
ldrh w0, [sp, 1034]
strh w0, [sp, 900]
ldrh w0, [sp, 1018]
strh w0, [sp, 902]
ldrh w0, [sp, 1134]
strh w0, [sp, 904]
ldrh w0, [sp, 1118]
strh w0, [sp, 906]
ldrh w0, [sp, 1102]
strh w0, [sp, 908]
ldrh w0, [sp, 1086]
strh w0, [sp, 910]
ldrh w0, [sp, 1070]
strh w0, [sp, 912]
ldrh w0, [sp, 1054]
strh w0, [sp, 914]
ldrh w0, [sp, 1038]
strh w0, [sp, 916]
ldrh w0, [sp, 1022]
strh w0, [sp, 918]
ldrh w0, [sp, 1138]
strh w0, [sp, 920]
ldrh w0, [sp, 1122]
strh w0, [sp, 922]
ldrh w0, [sp, 1106]
strh w0, [sp, 924]
ldrh w0, [sp, 1090]
strh w0, [sp, 926]
ldrh w0, [sp, 1074]
strh w0, [sp, 928]
ldrh w0, [sp, 1058]
strh w0, [sp, 930]
ldrh w0, [sp, 1042]
strh w0, [sp, 932]
ldrh w0, [sp, 1026]
strh w0, [sp, 934]
ldrh w0, [sp, 1142]
strh w0, [sp, 936]
ldrh w0, [sp, 1126]
strh w0, [sp, 938]
ldrh w0, [sp, 1110]
strh w0, [sp, 940]
ldrh w0, [sp, 1094]
strh w0, [sp, 942]
ldrh w0, [sp, 1078]
strh w0, [sp, 944]
ldrh w0, [sp, 1062]
strh w0, [sp, 946]
ldrh w0, [sp, 1046]
strh w0, [sp, 948]
ldrh w0, [sp, 1030]
strh w0, [sp, 950]
ldrh w0, [sp, 1128]
strh w0, [sp, 952]
ldrh w0, [sp, 1112]
strh w0, [sp, 954]
ldrh w0, [sp, 1096]
strh w0, [sp, 956]
ldrh w0, [sp, 1080]
strh w0, [sp, 958]
ldrh w0, [sp, 1064]
strh w0, [sp, 960]
ldrh w0, [sp, 1048]
strh w0, [sp, 962]
ldrh w0, [sp, 1032]
strh w0, [sp, 964]
ldrh w0, [sp, 1016]
strh w0, [sp, 966]
ldrh w0, [sp, 1132]
strh w0, [sp, 968]
ldrh w0, [sp, 1116]
strh w0, [sp, 970]
ldrh w0, [sp, 1100]
strh w0, [sp, 972]
ldrh w0, [sp, 1084]
strh w0, [sp, 974]
ldrh w0, [sp, 1068]
strh w0, [sp, 976]
ldrh w0, [sp, 1052]
strh w0, [sp, 978]
ldrh w0, [sp, 1036]
strh w0, [sp, 980]
ldrh w0, [sp, 1020]
strh w0, [sp, 982]
ldrh w0, [sp, 1136]
strh w0, [sp, 984]
ldrh w0, [sp, 1120]
strh w0, [sp, 986]
ldrh w0, [sp, 1104]
strh w0, [sp, 988]
ldrh w0, [sp, 1088]
strh w0, [sp, 990]
ldrh w0, [sp, 1072]
strh w0, [sp, 992]
ldrh w0, [sp, 1056]
strh w0, [sp, 994]
ldrh w0, [sp, 1040]
strh w0, [sp, 996]
ldrh w0, [sp, 1024]
strh w0, [sp, 998]
ldrh w0, [sp, 1140]
strh w0, [sp, 1000]
ldrh w0, [sp, 1124]
strh w0, [sp, 1002]
ldrh w0, [sp, 1108]
strh w0, [sp, 1004]
ldrh w0, [sp, 1092]
strh w0, [sp, 1006]
ldrh w0, [sp, 1076]
strh w0, [sp, 1008]
ldrh w0, [sp, 1060]
strh w0, [sp, 1010]
ldrh w0, [sp, 1044]
strh w0, [sp, 1012]
ldrh w0, [sp, 1028]
strh w0, [sp, 1014]
ldrh w0, [sp, 1256]
strh w0, [sp, 776]
ldrh w0, [sp, 1240]
strh w0, [sp, 778]
ldrh w0, [sp, 1224]
strh w0, [sp, 780]
ldrh w0, [sp, 1208]
strh w0, [sp, 782]
ldrh w0, [sp, 1192]
strh w0, [sp, 784]
ldrh w0, [sp, 1176]
strh w0, [sp, 786]
ldrh w0, [sp, 1160]
strh w0, [sp, 788]
ldrh w0, [sp, 1144]
strh w0, [sp, 790]
ldrh w0, [sp, 1258]
strh w0, [sp, 792]
ldrh w0, [sp, 1242]
strh w0, [sp, 794]
ldrh w0, [sp, 1226]
strh w0, [sp, 796]
ldrh w0, [sp, 1210]
strh w0, [sp, 798]
ldrh w0, [sp, 1194]
strh w0, [sp, 800]
ldrh w0, [sp, 1178]
strh w0, [sp, 802]
ldrh w0, [sp, 1162]
strh w0, [sp, 804]
ldrh w0, [sp, 1146]
strh w0, [sp, 806]
ldrh w0, [sp, 1260]
strh w0, [sp, 808]
ldrh w0, [sp, 1244]
strh w0, [sp, 810]
ldrh w0, [sp, 1228]
strh w0, [sp, 812]
ldrh w0, [sp, 1212]
strh w0, [sp, 814]
ldrh w0, [sp, 1196]
strh w0, [sp, 816]
ldrh w0, [sp, 1180]
strh w0, [sp, 818]
ldrh w0, [sp, 1164]
strh w0, [sp, 820]
ldrh w0, [sp, 1148]
strh w0, [sp, 822]
ldrh w0, [sp, 1262]
strh w0, [sp, 824]
ldrh w0, [sp, 1246]
strh w0, [sp, 826]
ldrh w0, [sp, 1230]
strh w0, [sp, 828]
ldrh w0, [sp, 1214]
strh w0, [sp, 830]
ldrh w0, [sp, 1268]
strh w0, [sp, 832]
ldrh w0, [sp, 1252]
strh w0, [sp, 834]
ldrh w0, [sp, 1236]
strh w0, [sp, 836]
ldrh w0, [sp, 1220]
strh w0, [sp, 838]
ldrh w0, [sp, 1204]
strh w0, [sp, 840]
ldrh w0, [sp, 1188]
strh w0, [sp, 842]
ldrh w0, [sp, 1172]
strh w0, [sp, 844]
ldrh w0, [sp, 1156]
strh w0, [sp, 846]
ldrh w0, [sp, 1266]
strh w0, [sp, 848]
ldrh w0, [sp, 1250]
strh w0, [sp, 850]
ldrh w0, [sp, 1234]
strh w0, [sp, 852]
ldrh w0, [sp, 1218]
strh w0, [sp, 854]
ldrh w0, [sp, 1202]
strh w0, [sp, 856]
ldrh w0, [sp, 1186]
strh w0, [sp, 858]
ldrh w0, [sp, 1170]
strh w0, [sp, 860]
ldrh w0, [sp, 1154]
strh w0, [sp, 862]
ldrh w0, [sp, 1264]
strh w0, [sp, 864]
ldrh w0, [sp, 1248]
strh w0, [sp, 866]
ldrh w0, [sp, 1232]
strh w0, [sp, 868]
ldrh w0, [sp, 1216]
strh w0, [sp, 870]
ldrh w0, [sp, 1200]
strh w0, [sp, 872]
ldrh w0, [sp, 1184]
strh w0, [sp, 874]
ldrh w0, [sp, 1168]
strh w0, [sp, 876]
ldrh w0, [sp, 1152]
strh w0, [sp, 878]
ldrh w0, [sp, 1198]
strh w0, [sp, 880]
ldrh w0, [sp, 1182]
strh w0, [sp, 882]
ldrh w0, [sp, 1166]
strh w0, [sp, 884]
ldrh w0, [sp, 1150]
strh w0, [sp, 886]
mov w0, 1
strh w0, [sp, 62]
b .L6
.L23:
strh wzr, [sp, 56]
b .L7
.L8:
ldrsh w0, [sp, 56]
add w0, w0, 32
ldrsh w3, [sp, 56]
sxtw x0, w0
lsl x0, x0, 1
add x1, sp, 888
ldrh w2, [x1, x0]
sxtw x0, w3
lsl x0, x0, 1
add x1, sp, 1016
strh w2, [x1, x0]
ldrsh w0, [sp, 56]
and w0, w0, 65535
add w0, w0, 1
and w0, w0, 65535
strh w0, [sp, 56]
.L7:
ldrsh w0, [sp, 56]
cmp w0, 31
ble .L8
ldrh w0, [sp, 1078]
strh w0, [sp, 584]
ldrh w0, [sp, 1016]
strh w0, [sp, 586]
ldrh w0, [sp, 1018]
strh w0, [sp, 588]
ldrh w0, [sp, 1020]
strh w0, [sp, 590]
ldrh w0, [sp, 1022]
strh w0, [sp, 592]
ldrh w0, [sp, 1024]
strh w0, [sp, 594]
ldrh w0, [sp, 1022]
strh w0, [sp, 596]
ldrh w0, [sp, 1024]
strh w0, [sp, 598]
ldrh w0, [sp, 1026]
strh w0, [sp, 600]
ldrh w0, [sp, 1028]
strh w0, [sp, 602]
ldrh w0, [sp, 1030]
strh w0, [sp, 604]
ldrh w0, [sp, 1032]
strh w0, [sp, 606]
ldrh w0, [sp, 1030]
strh w0, [sp, 608]
ldrh w0, [sp, 1032]
strh w0, [sp, 610]
ldrh w0, [sp, 1034]
strh w0, [sp, 612]
ldrh w0, [sp, 1036]
strh w0, [sp, 614]
ldrh w0, [sp, 1038]
strh w0, [sp, 616]
ldrh w0, [sp, 1040]
strh w0, [sp, 618]
ldrh w0, [sp, 1038]
strh w0, [sp, 620]
ldrh w0, [sp, 1040]
strh w0, [sp, 622]
ldrh w0, [sp, 1042]
strh w0, [sp, 624]
ldrh w0, [sp, 1044]
strh w0, [sp, 626]
ldrh w0, [sp, 1046]
strh w0, [sp, 628]
ldrh w0, [sp, 1048]
strh w0, [sp, 630]
ldrh w0, [sp, 1046]
strh w0, [sp, 632]
ldrh w0, [sp, 1048]
strh w0, [sp, 634]
ldrh w0, [sp, 1050]
strh w0, [sp, 636]
ldrh w0, [sp, 1052]
strh w0, [sp, 638]
ldrh w0, [sp, 1054]
strh w0, [sp, 640]
ldrh w0, [sp, 1056]
strh w0, [sp, 642]
ldrh w0, [sp, 1054]
strh w0, [sp, 644]
ldrh w0, [sp, 1056]
strh w0, [sp, 646]
ldrh w0, [sp, 1058]
strh w0, [sp, 648]
ldrh w0, [sp, 1060]
strh w0, [sp, 650]
ldrh w0, [sp, 1062]
strh w0, [sp, 652]
ldrh w0, [sp, 1064]
strh w0, [sp, 654]
ldrh w0, [sp, 1062]
strh w0, [sp, 656]
ldrh w0, [sp, 1064]
strh w0, [sp, 658]
ldrh w0, [sp, 1066]
strh w0, [sp, 660]
ldrh w0, [sp, 1068]
strh w0, [sp, 662]
ldrh w0, [sp, 1070]
strh w0, [sp, 664]
ldrh w0, [sp, 1072]
strh w0, [sp, 666]
ldrh w0, [sp, 1070]
strh w0, [sp, 668]
ldrh w0, [sp, 1072]
strh w0, [sp, 670]
ldrh w0, [sp, 1074]
strh w0, [sp, 672]
ldrh w0, [sp, 1076]
strh w0, [sp, 674]
ldrh w0, [sp, 1078]
strh w0, [sp, 676]
ldrh w0, [sp, 1016]
strh w0, [sp, 678]
ldrb w0, [sp, 23]
cmp w0, 0
beq .L9
ldrsh w0, [sp, 62]
sub w0, w0, #1
sxtw x0, w0
add x1, sp, 1272
ldrb w0, [x1, x0]
strh w0, [sp, 64]
strh wzr, [sp, 56]
b .L10
.L13:
ldrh w0, [sp, 776]
strh w0, [sp, 66]
ldrh w0, [sp, 832]
strh w0, [sp, 68]
strh wzr, [sp, 58]
b .L11
.L12:
ldrsh w0, [sp, 58]
add w0, w0, 1
ldrsh w3, [sp, 58]
sxtw x0, w0
lsl x0, x0, 1
add x1, sp, 776
ldrh w2, [x1, x0]
sxtw x0, w3
lsl x0, x0, 1
add x1, sp, 776
strh w2, [x1, x0]
ldrsh w0, [sp, 58]
add w1, w0, 29
ldrsh w0, [sp, 58]
add w3, w0, 28
sxtw x0, w1
lsl x0, x0, 1
add x1, sp, 776
ldrh w2, [x1, x0]
sxtw x0, w3
lsl x0, x0, 1
add x1, sp, 776
strh w2, [x1, x0]
ldrsh w0, [sp, 58]
and w0, w0, 65535
add w0, w0, 1
and w0, w0, 65535
strh w0, [sp, 58]
.L11:
ldrsh w0, [sp, 58]
cmp w0, 26
ble .L12
ldrh w0, [sp, 66]
strh w0, [sp, 830]
ldrh w0, [sp, 68]
strh w0, [sp, 886]
ldrsh w0, [sp, 56]
and w0, w0, 65535
add w0, w0, 1
and w0, w0, 65535
strh w0, [sp, 56]
.L10:
ldrsh w1, [sp, 56]
ldrh w0, [sp, 64]
cmp w1, w0
blt .L13
b .L14
.L9:
ldrsh w0, [sp, 62]
cmp w0, 1
ble .L14
ldrsh w0, [sp, 62]
mov w1, 17
sub w0, w1, w0
sxtw x0, w0
add x1, sp, 1272
ldrb w0, [x1, x0]
strh w0, [sp, 64]
strh wzr, [sp, 56]
b .L15
.L18:
ldrh w0, [sp, 830]
strh w0, [sp, 66]
ldrh w0, [sp, 886]
strh w0, [sp, 68]
mov w0, 27
strh w0, [sp, 58]
b .L16
.L17:
ldrsh w0, [sp, 58]
sub w0, w0, #1
ldrsh w3, [sp, 58]
sxtw x0, w0
lsl x0, x0, 1
add x1, sp, 776
ldrh w2, [x1, x0]
sxtw x0, w3
lsl x0, x0, 1
add x1, sp, 776
strh w2, [x1, x0]
ldrsh w0, [sp, 58]
add w1, w0, 27
ldrsh w0, [sp, 58]
add w3, w0, 28
sxtw x0, w1
lsl x0, x0, 1
add x1, sp, 776
ldrh w2, [x1, x0]
sxtw x0, w3
lsl x0, x0, 1
add x1, sp, 776
strh w2, [x1, x0]
ldrsh w0, [sp, 58]
and w0, w0, 65535
sub w0, w0, #1
and w0, w0, 65535
strh w0, [sp, 58]
.L16:
ldrsh w0, [sp, 58]
cmp w0, 0
bgt .L17
ldrh w0, [sp, 66]
strh w0, [sp, 776]
ldrh w0, [sp, 68]
strh w0, [sp, 832]
ldrsh w0, [sp, 56]
and w0, w0, 65535
add w0, w0, 1
and w0, w0, 65535
strh w0, [sp, 56]
.L15:
ldrsh w1, [sp, 56]
ldrh w0, [sp, 64]
cmp w1, w0
blt .L18
.L14:
ldrh w0, [sp, 802]
strh w0, [sp, 680]
ldrh w0, [sp, 808]
strh w0, [sp, 682]
ldrh w0, [sp, 796]
strh w0, [sp, 684]
ldrh w0, [sp, 822]
strh w0, [sp, 686]
ldrh w0, [sp, 776]
strh w0, [sp, 688]
ldrh w0, [sp, 784]
strh w0, [sp, 690]
ldrh w0, [sp, 780]
strh w0, [sp, 692]
ldrh w0, [sp, 830]
strh w0, [sp, 694]
ldrh w0, [sp, 804]
strh w0, [sp, 696]
ldrh w0, [sp, 786]
strh w0, [sp, 698]
ldrh w0, [sp, 816]
strh w0, [sp, 700]
ldrh w0, [sp, 794]
strh w0, [sp, 702]
ldrh w0, [sp, 820]
strh w0, [sp, 704]
ldrh w0, [sp, 812]
strh w0, [sp, 706]
ldrh w0, [sp, 798]
strh w0, [sp, 708]
ldrh w0, [sp, 782]
strh w0, [sp, 710]
ldrh w0, [sp, 826]
strh w0, [sp, 712]
ldrh w0, [sp, 790]
strh w0, [sp, 714]
ldrh w0, [sp, 806]
strh w0, [sp, 716]
ldrh w0, [sp, 788]
strh w0, [sp, 718]
ldrh w0, [sp, 828]
strh w0, [sp, 720]
ldrh w0, [sp, 814]
strh w0, [sp, 722]
ldrh w0, [sp, 800]
strh w0, [sp, 724]
ldrh w0, [sp, 778]
strh w0, [sp, 726]
ldrh w0, [sp, 856]
strh w0, [sp, 728]
ldrh w0, [sp, 878]
strh w0, [sp, 730]
ldrh w0, [sp, 836]
strh w0, [sp, 732]
ldrh w0, [sp, 848]
strh w0, [sp, 734]
ldrh w0, [sp, 868]
strh w0, [sp, 736]
ldrh w0, [sp, 884]
strh w0, [sp, 738]
ldrh w0, [sp, 834]
strh w0, [sp, 740]
ldrh w0, [sp, 854]
strh w0, [sp, 742]
ldrh w0, [sp, 876]
strh w0, [sp, 744]
ldrh w0, [sp, 864]
strh w0, [sp, 746]
ldrh w0, [sp, 840]
strh w0, [sp, 748]
ldrh w0, [sp, 870]
strh w0, [sp, 750]
ldrh w0, [sp, 862]
strh w0, [sp, 752]
ldrh w0, [sp, 872]
strh w0, [sp, 754]
ldrh w0, [sp, 852]
strh w0, [sp, 756]
ldrh w0, [sp, 886]
strh w0, [sp, 758]
ldrh w0, [sp, 842]
strh w0, [sp, 760]
ldrh w0, [sp, 880]
strh w0, [sp, 762]
ldrh w0, [sp, 866]
strh w0, [sp, 764]
ldrh w0, [sp, 858]
strh w0, [sp, 766]
ldrh w0, [sp, 874]
strh w0, [sp, 768]
ldrh w0, [sp, 846]
strh w0, [sp, 770]
ldrh w0, [sp, 832]
strh w0, [sp, 772]
ldrh w0, [sp, 838]
strh w0, [sp, 774]
strh wzr, [sp, 56]
b .L19
.L20:
ldrsh w0, [sp, 56]
sxtw x0, w0
lsl x0, x0, 1
add x1, sp, 584
ldrh w1, [x1, x0]
ldrsh w0, [sp, 56]
sxtw x0, w0
lsl x0, x0, 1
add x2, sp, 680
ldrh w0, [x2, x0]
ldrsh w3, [sp, 56]
eor w0, w1, w0
and w2, w0, 65535
sxtw x0, w3
lsl x0, x0, 1
add x1, sp, 584
strh w2, [x1, x0]
ldrsh w0, [sp, 56]
and w0, w0, 65535
add w0, w0, 1
and w0, w0, 65535
strh w0, [sp, 56]
.L19:
ldrsh w0, [sp, 56]
cmp w0, 47
ble .L20
ldrh w0, [sp, 584]
lsl w0, w0, 1
ldrh w1, [sp, 594]
add w1, w0, w1
ldrh w0, [sp, 586]
lsl w0, w0, 1
ldrh w2, [sp, 588]
add w0, w0, w2
lsl w0, w0, 1
ldrh w2, [sp, 590]
add w0, w0, w2
lsl w0, w0, 1
ldrh w2, [sp, 592]
add w0, w0, w2
sxtw x0, w0
sxtw x1, w1
lsl x1, x1, 4
add x1, x1, 1360
add x1, sp, x1
add x0, x1, x0
sub x0, x0, #4096
ldrb w0, [x0, 2808]
strh w0, [sp, 70]
ldrh w0, [sp, 70]
ubfiz w0, w0, 2, 14
and w0, w0, 65535
strh w0, [sp, 70]
ldrsh w0, [sp, 70]
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 680]
ldrsh w0, [sp, 70]
add w0, w0, 1
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 682]
ldrsh w0, [sp, 70]
add w0, w0, 2
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 684]
ldrsh w0, [sp, 70]
add w0, w0, 3
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 686]
ldrh w0, [sp, 596]
lsl w0, w0, 1
ldrh w1, [sp, 606]
add w1, w0, w1
ldrh w0, [sp, 598]
lsl w0, w0, 1
ldrh w2, [sp, 600]
add w0, w0, w2
lsl w0, w0, 1
ldrh w2, [sp, 602]
add w0, w0, w2
lsl w0, w0, 1
ldrh w2, [sp, 604]
add w0, w0, w2
sxtw x0, w0
sxtw x1, w1
lsl x1, x1, 4
add x1, x1, 1360
add x1, sp, x1
add x0, x1, x0
sub x0, x0, #4096
ldrb w0, [x0, 2872]
strh w0, [sp, 70]
ldrh w0, [sp, 70]
ubfiz w0, w0, 2, 14
and w0, w0, 65535
strh w0, [sp, 70]
ldrsh w0, [sp, 70]
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 688]
ldrsh w0, [sp, 70]
add w0, w0, 1
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 690]
ldrsh w0, [sp, 70]
add w0, w0, 2
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 692]
ldrsh w0, [sp, 70]
add w0, w0, 3
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 694]
ldrh w0, [sp, 608]
lsl w0, w0, 1
ldrh w1, [sp, 618]
add w1, w0, w1
ldrh w0, [sp, 610]
lsl w0, w0, 1
ldrh w2, [sp, 612]
add w0, w0, w2
lsl w0, w0, 1
ldrh w2, [sp, 614]
add w0, w0, w2
lsl w0, w0, 1
ldrh w2, [sp, 616]
add w0, w0, w2
sxtw x0, w0
sxtw x1, w1
lsl x1, x1, 4
add x1, x1, 1360
add x1, sp, x1
add x0, x1, x0
sub x0, x0, #4096
ldrb w0, [x0, 2936]
strh w0, [sp, 70]
ldrh w0, [sp, 70]
ubfiz w0, w0, 2, 14
and w0, w0, 65535
strh w0, [sp, 70]
ldrsh w0, [sp, 70]
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 696]
ldrsh w0, [sp, 70]
add w0, w0, 1
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 698]
ldrsh w0, [sp, 70]
add w0, w0, 2
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 700]
ldrsh w0, [sp, 70]
add w0, w0, 3
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 702]
ldrh w0, [sp, 620]
lsl w0, w0, 1
ldrh w1, [sp, 630]
add w1, w0, w1
ldrh w0, [sp, 622]
lsl w0, w0, 1
ldrh w2, [sp, 624]
add w0, w0, w2
lsl w0, w0, 1
ldrh w2, [sp, 626]
add w0, w0, w2
lsl w0, w0, 1
ldrh w2, [sp, 628]
add w0, w0, w2
sxtw x0, w0
sxtw x1, w1
lsl x1, x1, 4
add x1, x1, 1360
add x1, sp, x1
add x0, x1, x0
sub x0, x0, #4096
ldrb w0, [x0, 3000]
strh w0, [sp, 70]
ldrh w0, [sp, 70]
ubfiz w0, w0, 2, 14
and w0, w0, 65535
strh w0, [sp, 70]
ldrsh w0, [sp, 70]
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 704]
ldrsh w0, [sp, 70]
add w0, w0, 1
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 706]
ldrsh w0, [sp, 70]
add w0, w0, 2
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 708]
ldrsh w0, [sp, 70]
add w0, w0, 3
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 710]
ldrh w0, [sp, 632]
lsl w0, w0, 1
ldrh w1, [sp, 642]
add w1, w0, w1
ldrh w0, [sp, 634]
lsl w0, w0, 1
ldrh w2, [sp, 636]
add w0, w0, w2
lsl w0, w0, 1
ldrh w2, [sp, 638]
add w0, w0, w2
lsl w0, w0, 1
ldrh w2, [sp, 640]
add w0, w0, w2
sxtw x0, w0
sxtw x1, w1
lsl x1, x1, 4
add x1, x1, 1360
add x1, sp, x1
add x0, x1, x0
sub x0, x0, #4096
ldrb w0, [x0, 3064]
strh w0, [sp, 70]
ldrh w0, [sp, 70]
ubfiz w0, w0, 2, 14
and w0, w0, 65535
strh w0, [sp, 70]
ldrsh w0, [sp, 70]
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 712]
ldrsh w0, [sp, 70]
add w0, w0, 1
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 714]
ldrsh w0, [sp, 70]
add w0, w0, 2
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 716]
ldrsh w0, [sp, 70]
add w0, w0, 3
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 718]
ldrh w0, [sp, 644]
lsl w0, w0, 1
ldrh w1, [sp, 654]
add w1, w0, w1
ldrh w0, [sp, 646]
lsl w0, w0, 1
ldrh w2, [sp, 648]
add w0, w0, w2
lsl w0, w0, 1
ldrh w2, [sp, 650]
add w0, w0, w2
lsl w0, w0, 1
ldrh w2, [sp, 652]
add w0, w0, w2
sxtw x0, w0
sxtw x1, w1
lsl x1, x1, 4
add x1, x1, 1360
add x1, sp, x1
add x0, x1, x0
sub x0, x0, #4096
ldrb w0, [x0, 3128]
strh w0, [sp, 70]
ldrh w0, [sp, 70]
ubfiz w0, w0, 2, 14
and w0, w0, 65535
strh w0, [sp, 70]
ldrsh w0, [sp, 70]
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 720]
ldrsh w0, [sp, 70]
add w0, w0, 1
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 722]
ldrsh w0, [sp, 70]
add w0, w0, 2
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 724]
ldrsh w0, [sp, 70]
add w0, w0, 3
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 726]
ldrh w0, [sp, 656]
lsl w0, w0, 1
ldrh w1, [sp, 666]
add w1, w0, w1
ldrh w0, [sp, 658]
lsl w0, w0, 1
ldrh w2, [sp, 660]
add w0, w0, w2
lsl w0, w0, 1
ldrh w2, [sp, 662]
add w0, w0, w2
lsl w0, w0, 1
ldrh w2, [sp, 664]
add w0, w0, w2
sxtw x0, w0
sxtw x1, w1
lsl x1, x1, 4
add x1, x1, 1360
add x1, sp, x1
add x0, x1, x0
sub x0, x0, #4096
ldrb w0, [x0, 3192]
strh w0, [sp, 70]
ldrh w0, [sp, 70]
ubfiz w0, w0, 2, 14
and w0, w0, 65535
strh w0, [sp, 70]
ldrsh w0, [sp, 70]
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 728]
ldrsh w0, [sp, 70]
add w0, w0, 1
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 730]
ldrsh w0, [sp, 70]
add w0, w0, 2
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 732]
ldrsh w0, [sp, 70]
add w0, w0, 3
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 734]
ldrh w0, [sp, 668]
lsl w0, w0, 1
ldrh w1, [sp, 678]
add w1, w0, w1
ldrh w0, [sp, 670]
lsl w0, w0, 1
ldrh w2, [sp, 672]
add w0, w0, w2
lsl w0, w0, 1
ldrh w2, [sp, 674]
add w0, w0, w2
lsl w0, w0, 1
ldrh w2, [sp, 676]
add w0, w0, w2
sxtw x0, w0
sxtw x1, w1
lsl x1, x1, 4
add x1, x1, 1360
add x1, sp, x1
add x0, x1, x0
sub x0, x0, #4096
ldrb w0, [x0, 3256]
strh w0, [sp, 70]
ldrh w0, [sp, 70]
ubfiz w0, w0, 2, 14
and w0, w0, 65535
strh w0, [sp, 70]
ldrsh w0, [sp, 70]
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 736]
ldrsh w0, [sp, 70]
add w0, w0, 1
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 738]
ldrsh w0, [sp, 70]
add w0, w0, 2
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 740]
ldrsh w0, [sp, 70]
add w0, w0, 3
sxtw x0, w0
add x1, sp, 1288
ldrb w0, [x1, x0]
and w0, w0, 65535
strh w0, [sp, 742]
ldrh w0, [sp, 710]
strh w0, [sp, 584]
ldrh w0, [sp, 692]
strh w0, [sp, 586]
ldrh w0, [sp, 718]
strh w0, [sp, 588]
ldrh w0, [sp, 720]
strh w0, [sp, 590]
ldrh w0, [sp, 736]
strh w0, [sp, 592]
ldrh w0, [sp, 702]
strh w0, [sp, 594]
ldrh w0, [sp, 734]
strh w0, [sp, 596]
ldrh w0, [sp, 712]
strh w0, [sp, 598]
ldrh w0, [sp, 680]
strh w0, [sp, 600]
ldrh w0, [sp, 708]
strh w0, [sp, 602]
ldrh w0, [sp, 724]
strh w0, [sp, 604]
ldrh w0, [sp, 730]
strh w0, [sp, 606]
ldrh w0, [sp, 688]
strh w0, [sp, 608]
ldrh w0, [sp, 714]
strh w0, [sp, 610]
ldrh w0, [sp, 740]
strh w0, [sp, 612]
ldrh w0, [sp, 698]
strh w0, [sp, 614]
ldrh w0, [sp, 682]
strh w0, [sp, 616]
ldrh w0, [sp, 694]
strh w0, [sp, 618]
ldrh w0, [sp, 726]
strh w0, [sp, 620]
ldrh w0, [sp, 706]
strh w0, [sp, 622]
ldrh w0, [sp, 742]
strh w0, [sp, 624]
ldrh w0, [sp, 732]
strh w0, [sp, 626]
ldrh w0, [sp, 684]
strh w0, [sp, 628]
ldrh w0, [sp, 696]
strh w0, [sp, 630]
ldrh w0, [sp, 716]
strh w0, [sp, 632]
ldrh w0, [sp, 704]
strh w0, [sp, 634]
ldrh w0, [sp, 738]
strh w0, [sp, 636]
ldrh w0, [sp, 690]
strh w0, [sp, 638]
ldrh w0, [sp, 722]
strh w0, [sp, 640]
ldrh w0, [sp, 700]
strh w0, [sp, 642]
ldrh w0, [sp, 686]
strh w0, [sp, 644]
ldrh w0, [sp, 728]
strh w0, [sp, 646]
strh wzr, [sp, 56]
b .L21
.L22:
ldrsh w0, [sp, 56]
sxtw x0, w0
lsl x0, x0, 1
add x1, sp, 888
ldrh w1, [x1, x0]
ldrsh w0, [sp, 56]
sxtw x0, w0
lsl x0, x0, 1
add x2, sp, 584
ldrh w0, [x2, x0]
ldrsh w2, [sp, 56]
add w3, w2, 32
eor w0, w1, w0
and w2, w0, 65535
sxtw x0, w3
lsl x0, x0, 1
add x1, sp, 888
strh w2, [x1, x0]
ldrsh w0, [sp, 56]
ldrsh w3, [sp, 56]
sxtw x0, w0
lsl x0, x0, 1
add x1, sp, 1016
ldrh w2, [x1, x0]
sxtw x0, w3
lsl x0, x0, 1
add x1, sp, 888
strh w2, [x1, x0]
ldrsh w0, [sp, 56]
and w0, w0, 65535
add w0, w0, 1
and w0, w0, 65535
strh w0, [sp, 56]
.L21:
ldrsh w0, [sp, 56]
cmp w0, 31
ble .L22
ldrsh w0, [sp, 62]
and w0, w0, 65535
add w0, w0, 1
and w0, w0, 65535
strh w0, [sp, 62]
.L6:
ldrsh w0, [sp, 62]
cmp w0, 16
ble .L23
strh wzr, [sp, 56]
b .L24
.L25:
ldrsh w0, [sp, 56]
sxtw x0, w0
lsl x0, x0, 1
add x1, sp, 888
ldrh w0, [x1, x0]
strh w0, [sp, 58]
ldrsh w0, [sp, 56]
add w0, w0, 32
ldrsh w3, [sp, 56]
sxtw x0, w0
lsl x0, x0, 1
add x1, sp, 888
ldrh w2, [x1, x0]
sxtw x0, w3
lsl x0, x0, 1
add x1, sp, 888
strh w2, [x1, x0]
ldrsh w0, [sp, 56]
add w0, w0, 32
ldrh w2, [sp, 58]
sxtw x0, w0
lsl x0, x0, 1
add x1, sp, 888
strh w2, [x1, x0]
ldrsh w0, [sp, 56]
and w0, w0, 65535
add w0, w0, 1
and w0, w0, 65535
strh w0, [sp, 56]
.L24:
ldrsh w0, [sp, 56]
cmp w0, 31
ble .L25
ldrh w0, [sp, 966]
strh w0, [sp, 1016]
ldrh w0, [sp, 902]
strh w0, [sp, 1018]
ldrh w0, [sp, 982]
strh w0, [sp, 1020]
ldrh w0, [sp, 918]
strh w0, [sp, 1022]
ldrh w0, [sp, 998]
strh w0, [sp, 1024]
ldrh w0, [sp, 934]
strh w0, [sp, 1026]
ldrh w0, [sp, 1014]
strh w0, [sp, 1028]
ldrh w0, [sp, 950]
strh w0, [sp, 1030]
ldrh w0, [sp, 964]
strh w0, [sp, 1032]
ldrh w0, [sp, 900]
strh w0, [sp, 1034]
ldrh w0, [sp, 980]
strh w0, [sp, 1036]
ldrh w0, [sp, 916]
strh w0, [sp, 1038]
ldrh w0, [sp, 996]
strh w0, [sp, 1040]
ldrh w0, [sp, 932]
strh w0, [sp, 1042]
ldrh w0, [sp, 1012]
strh w0, [sp, 1044]
ldrh w0, [sp, 948]
strh w0, [sp, 1046]
ldrh w0, [sp, 962]
strh w0, [sp, 1048]
ldrh w0, [sp, 898]
strh w0, [sp, 1050]
ldrh w0, [sp, 978]
strh w0, [sp, 1052]
ldrh w0, [sp, 914]
strh w0, [sp, 1054]
ldrh w0, [sp, 994]
strh w0, [sp, 1056]
ldrh w0, [sp, 930]
strh w0, [sp, 1058]
ldrh w0, [sp, 1010]
strh w0, [sp, 1060]
ldrh w0, [sp, 946]
strh w0, [sp, 1062]
ldrh w0, [sp, 960]
strh w0, [sp, 1064]
ldrh w0, [sp, 896]
strh w0, [sp, 1066]
ldrh w0, [sp, 976]
strh w0, [sp, 1068]
ldrh w0, [sp, 912]
strh w0, [sp, 1070]
ldrh w0, [sp, 992]
strh w0, [sp, 1072]
ldrh w0, [sp, 928]
strh w0, [sp, 1074]
ldrh w0, [sp, 1008]
strh w0, [sp, 1076]
ldrh w0, [sp, 944]
strh w0, [sp, 1078]
ldrh w0, [sp, 958]
strh w0, [sp, 1080]
ldrh w0, [sp, 894]
strh w0, [sp, 1082]
ldrh w0, [sp, 974]
strh w0, [sp, 1084]
ldrh w0, [sp, 910]
strh w0, [sp, 1086]
ldrh w0, [sp, 990]
strh w0, [sp, 1088]
ldrh w0, [sp, 926]
strh w0, [sp, 1090]
ldrh w0, [sp, 1006]
strh w0, [sp, 1092]
ldrh w0, [sp, 942]
strh w0, [sp, 1094]
ldrh w0, [sp, 956]
strh w0, [sp, 1096]
ldrh w0, [sp, 892]
strh w0, [sp, 1098]
ldrh w0, [sp, 972]
strh w0, [sp, 1100]
ldrh w0, [sp, 908]
strh w0, [sp, 1102]
ldrh w0, [sp, 988]
strh w0, [sp, 1104]
ldrh w0, [sp, 924]
strh w0, [sp, 1106]
ldrh w0, [sp, 1004]
strh w0, [sp, 1108]
ldrh w0, [sp, 940]
strh w0, [sp, 1110]
ldrh w0, [sp, 954]
strh w0, [sp, 1112]
ldrh w0, [sp, 890]
strh w0, [sp, 1114]
ldrh w0, [sp, 970]
strh w0, [sp, 1116]
ldrh w0, [sp, 906]
strh w0, [sp, 1118]
ldrh w0, [sp, 986]
strh w0, [sp, 1120]
ldrh w0, [sp, 922]
strh w0, [sp, 1122]
ldrh w0, [sp, 1002]
strh w0, [sp, 1124]
ldrh w0, [sp, 938]
strh w0, [sp, 1126]
ldrh w0, [sp, 952]
strh w0, [sp, 1128]
ldrh w0, [sp, 888]
strh w0, [sp, 1130]
ldrh w0, [sp, 968]
strh w0, [sp, 1132]
ldrh w0, [sp, 904]
strh w0, [sp, 1134]
ldrh w0, [sp, 984]
strh w0, [sp, 1136]
ldrh w0, [sp, 920]
strh w0, [sp, 1138]
ldrh w0, [sp, 1000]
strh w0, [sp, 1140]
ldrh w0, [sp, 936]
strh w0, [sp, 1142]
strh wzr, [sp, 58]
strh wzr, [sp, 56]
b .L26
.L29:
ldrsh x0, [sp, 56]
ldr x1, [sp, 32]
add x0, x1, x0
strb wzr, [x0]
strh wzr, [sp, 60]
b .L27
.L28:
ldrsh x0, [sp, 56]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
mov w2, w0
ldrsh w1, [sp, 58]
ldrsh w0, [sp, 60]
add w0, w1, w0
sxtw x0, w0
lsl x0, x0, 1
add x1, sp, 1016
ldrh w0, [x1, x0]
add w0, w2, w0
and w1, w0, 255
ldrsh x0, [sp, 56]
ldr x2, [sp, 32]
add x0, x2, x0
ubfiz w1, w1, 1, 7
and w1, w1, 255
strb w1, [x0]
ldrsh w0, [sp, 60]
and w0, w0, 65535
add w0, w0, 1
and w0, w0, 65535
strh w0, [sp, 60]
.L27:
ldrsh w0, [sp, 60]
cmp w0, 6
ble .L28
ldrsh x0, [sp, 56]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w2, [x0]
ldrsh w0, [sp, 58]
add w0, w0, 7
sxtw x0, w0
lsl x0, x0, 1
add x1, sp, 1016
ldrh w0, [x1, x0]
and w1, w0, 255
ldrsh x0, [sp, 56]
ldr x3, [sp, 32]
add x0, x3, x0
add w1, w2, w1
and w1, w1, 255
strb w1, [x0]
ldrh w0, [sp, 58]
add w0, w0, 8
and w0, w0, 65535
strh w0, [sp, 58]
ldrsh w0, [sp, 56]
and w0, w0, 65535
add w0, w0, 1
and w0, w0, 65535
strh w0, [sp, 56]
.L26:
ldrsh w0, [sp, 56]
cmp w0, 7
ble .L29
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 1352]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L30
bl __stack_chk_fail
.L30:
ldp x29, x30, [sp]
add sp, sp, 1360
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size zx_des, .-zx_des
.section .rodata
.align 3
.LC8:
.ascii "\001\001\002\002\002\002\002\002\001\002\002\002\002\002\002"
.ascii "\001"
.align 3
.LC9:
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\001"
.string ""
.string "\001"
.string ""
.string ""
.string "\001\001"
.string "\001"
.string ""
.string ""
.string "\001"
.string "\001"
.string "\001\001"
.string ""
.string "\001\001\001\001"
.string ""
.string ""
.string "\001"
.string ""
.string "\001\001"
.string "\001"
.string "\001"
.string "\001\001\001\001"
.string ""
.string "\001\001"
.string "\001\001\001\001"
.ascii "\001\001\001\001"
.align 3
.LC0:
.string "\016\004\r\001\002\017\013\b\003\n\006\f\005\t"
.ascii "\007"
.string ""
.ascii "\017\007\004\016\002\r\001\n\006\f\013\t\005\003\b"
.string "\004\001\016\b\r\006\002\013\017\f\t\007\003\n\005"
.string "\017\f\b\002\004\t\001\007\005\013\003\016\n"
.ascii "\006\r"
.align 3
.LC1:
.string "\017\001\b\016\006\013\003\004\t\007\002\r\f"
.ascii "\005\n"
.string "\003\r\004\007\017\002\b\016\f"
.ascii "\001\n\006\t\013\005"
.string ""
.ascii "\016\007\013\n\004\r\001\005\b\f\006\t\003\002\017"
.string "\r\b\n\001\003\017\004\002\013\006\007\f"
.ascii "\005\016\t"
.align 3
.LC2:
.string "\n"
.ascii "\t\016\006\003\017\005\001\r\f\007\013\004\002\b"
.string "\r\007"
.ascii "\t\003\004\006\n\002\b\005\016\f\013\017\001"
.string "\r\006\004\t\b\017\003"
.ascii "\013\001\002\f\005\n\016\007"
.string "\001\n\r"
.ascii "\006\t\b\007\004\017\016\003\013\005\002\f"
.align 3
.LC3:
.string "\007\r\016\003"
.ascii "\006\t\n\001\002\b\005\013\f\004\017"
.string "\r\b\013\005\006\017"
.ascii "\003\004\007\002\f\001\n\016\t"
.string "\n\006\t"
.ascii "\f\013\007\r\017\001\003\016\005\002\b\004"
.string "\003\017"
.ascii "\006\n\001\r\b\t\004\005\013\f\007\002\016"
.align 3
.LC4:
.string "\002\f\004\001\007\n\013\006\b\005\003\017\r"
.ascii "\016\t"
.string "\016\013\002\f\004\007\r\001\005"
.ascii "\017\n\003\t\b\006"
.string "\004\002\001\013\n\r\007\b\017\t\f\005\006\003"
.ascii "\016"
.string "\013\b\f\007\001\016\002\r\006\017"
.ascii "\t\n\004\005\003"
.align 3
.LC5:
.string "\f\001\n\017\t\002\006\b"
.ascii "\r\003\004\016\007\005\013"
.string "\n\017\004\002\007\f\t\005\006\001\r\016"
.ascii "\013\003\b"
.string "\t\016\017\005\002\b\f\003\007"
.ascii "\004\n\001\r\013\006"
.string "\004\003\002\f\t\005\017\n\013\016\001\007\006"
.ascii "\b\r"
.align 3
.LC6:
.string "\004\013\002\016\017"
.ascii "\b\r\003\f\t\007\005\n\006\001"
.string "\r"
.ascii "\013\007\004\t\001\n\016\003\005\f\002\017\b\006"
.string "\001\004\013\r\f\003\007\016\n\017\006\b"
.ascii "\005\t\002"
.string "\006\013\r\b\001\004\n\007\t\005"
.ascii "\017\016\002\003\f"
.align 3
.LC7:
.string "\r\002\b\004\006\017\013\001\n\t\003\016\005"
.ascii "\f\007"
.string "\001\017\r\b\n\003\007\004\f\005\006\013"
.ascii "\016\t\002"
.string "\007\013\004\001\t\f\016\002"
.ascii "\006\n\r\017\003\005\b"
.string "\002\001\016\007\004\n\b\r\017\f\t"
.ascii "\003\005\006\013"
.text
.align 2
.global ZX_3desEncryption
.type ZX_3desEncryption, %function
ZX_3desEncryption:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -96]!
.cfi_def_cfa_offset 96
.cfi_offset 29, -96
.cfi_offset 30, -88
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str x2, [sp, 24]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 88]
mov x1, 0
add x0, sp, 56
mov w3, 1
ldr x2, [sp, 24]
mov x1, x0
ldr x0, [sp, 40]
bl zx_des
ldr x0, [sp, 24]
add x2, x0, 8
add x1, sp, 72
add x0, sp, 56
mov w3, 0
bl zx_des
add x0, sp, 72
mov w3, 1
ldr x2, [sp, 24]
ldr x1, [sp, 32]
bl zx_des
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 88]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L32
bl __stack_chk_fail
.L32:
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size ZX_3desEncryption, .-ZX_3desEncryption
.align 2
.global ZX_3desEncryption2
.type ZX_3desEncryption2, %function
ZX_3desEncryption2:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -96]!
.cfi_def_cfa_offset 96
.cfi_offset 29, -96
.cfi_offset 30, -88
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str x2, [sp, 24]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 88]
mov x1, 0
add x0, sp, 48
mov w2, 32
ldr x1, [sp, 24]
bl ZX_ASCToBCD
add x0, sp, 48
mov x2, x0
ldr x1, [sp, 32]
ldr x0, [sp, 40]
bl ZX_3desEncryption
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 88]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L34
bl __stack_chk_fail
.L34:
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size ZX_3desEncryption2, .-ZX_3desEncryption2
.align 2
.global ZX_3desEncryptionStr
.type ZX_3desEncryptionStr, %function
ZX_3desEncryptionStr:
.LFB9:
.cfi_startproc
stp x29, x30, [sp, -112]!
.cfi_def_cfa_offset 112
.cfi_offset 29, -112
.cfi_offset 30, -104
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str x2, [sp, 24]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 104]
mov x1, 0
ldr x0, [sp, 40]
bl strlen
str w0, [sp, 60]
str wzr, [sp, 56]
b .L36
.L37:
ldr w0, [sp, 56]
lsl w0, w0, 4
sxtw x0, w0
ldr x1, [sp, 40]
add x1, x1, x0
add x0, sp, 64
mov w2, 16
bl ZX_ASCToBCD
ldr w0, [sp, 56]
lsl w0, w0, 3
sxtw x0, w0
ldr x1, [sp, 32]
add x1, x1, x0
add x0, sp, 64
ldr x2, [sp, 24]
bl ZX_3desEncryption
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
.L36:
ldr w0, [sp, 60]
add w1, w0, 15
cmp w0, 0
csel w0, w1, w0, lt
asr w0, w0, 4
mov w1, w0
ldr w0, [sp, 56]
cmp w0, w1
blt .L37
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 104]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L38
bl __stack_chk_fail
.L38:
ldp x29, x30, [sp], 112
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size ZX_3desEncryptionStr, .-ZX_3desEncryptionStr
.align 2
.global ZX_3desDecryption
.type ZX_3desDecryption, %function
ZX_3desDecryption:
.LFB10:
.cfi_startproc
stp x29, x30, [sp, -96]!
.cfi_def_cfa_offset 96
.cfi_offset 29, -96
.cfi_offset 30, -88
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str x2, [sp, 24]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 88]
mov x1, 0
add x0, sp, 56
mov w3, 0
ldr x2, [sp, 24]
mov x1, x0
ldr x0, [sp, 40]
bl zx_des
ldr x0, [sp, 24]
add x2, x0, 8
add x1, sp, 72
add x0, sp, 56
mov w3, 1
bl zx_des
add x0, sp, 72
mov w3, 0
ldr x2, [sp, 24]
ldr x1, [sp, 32]
bl zx_des
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 88]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L40
bl __stack_chk_fail
.L40:
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size ZX_3desDecryption, .-ZX_3desDecryption
.align 2
.global ZX_3desDecryption2
.type ZX_3desDecryption2, %function
ZX_3desDecryption2:
.LFB11:
.cfi_startproc
stp x29, x30, [sp, -96]!
.cfi_def_cfa_offset 96
.cfi_offset 29, -96
.cfi_offset 30, -88
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str x2, [sp, 24]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 88]
mov x1, 0
add x0, sp, 48
mov w2, 32
ldr x1, [sp, 24]
bl ZX_ASCToBCD
add x0, sp, 48
mov x2, x0
ldr x1, [sp, 32]
ldr x0, [sp, 40]
bl ZX_3desDecryption
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 88]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L42
bl __stack_chk_fail
.L42:
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size ZX_3desDecryption2, .-ZX_3desDecryption2
.align 2
.global ZX_3desDecryptionStr
.type ZX_3desDecryptionStr, %function
ZX_3desDecryptionStr:
.LFB12:
.cfi_startproc
stp x29, x30, [sp, -112]!
.cfi_def_cfa_offset 112
.cfi_offset 29, -112
.cfi_offset 30, -104
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str x2, [sp, 24]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 104]
mov x1, 0
ldr x0, [sp, 40]
bl strlen
str w0, [sp, 60]
str wzr, [sp, 56]
b .L44
.L45:
ldr w0, [sp, 56]
lsl w0, w0, 4
sxtw x0, w0
ldr x1, [sp, 40]
add x1, x1, x0
add x0, sp, 64
mov w2, 16
bl ZX_ASCToBCD
ldr w0, [sp, 56]
lsl w0, w0, 3
sxtw x0, w0
ldr x1, [sp, 32]
add x1, x1, x0
add x0, sp, 64
ldr x2, [sp, 24]
bl ZX_3desDecryption
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
.L44:
ldr w0, [sp, 60]
add w1, w0, 15
cmp w0, 0
csel w0, w1, w0, lt
asr w0, w0, 4
mov w1, w0
ldr w0, [sp, 56]
cmp w0, w1
blt .L45
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 104]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L46
bl __stack_chk_fail
.L46:
ldp x29, x30, [sp], 112
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE12:
.size ZX_3desDecryptionStr, .-ZX_3desDecryptionStr
.align 2
.global ZX_3desEncryptionText
.type ZX_3desEncryptionText, %function
ZX_3desEncryptionText:
.LFB13:
.cfi_startproc
stp x29, x30, [sp, -112]!
.cfi_def_cfa_offset 112
.cfi_offset 29, -112
.cfi_offset 30, -104
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str x2, [sp, 24]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 104]
mov x1, 0
ldr x0, [sp, 40]
bl strlen
str w0, [sp, 60]
str wzr, [sp, 56]
b .L48
.L49:
ldr w0, [sp, 56]
lsl w0, w0, 3
sxtw x0, w0
ldr x1, [sp, 40]
add x0, x1, x0
ldr x0, [x0]
str x0, [sp, 64]
ldr w0, [sp, 56]
lsl w0, w0, 3
sxtw x0, w0
ldr x1, [sp, 32]
add x1, x1, x0
add x0, sp, 64
ldr x2, [sp, 24]
bl ZX_3desEncryption
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
.L48:
ldr w0, [sp, 60]
add w0, w0, 7
add w1, w0, 7
cmp w0, 0
csel w0, w1, w0, lt
asr w0, w0, 3
mov w1, w0
ldr w0, [sp, 56]
cmp w0, w1
blt .L49
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 104]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L51
bl __stack_chk_fail
.L51:
mov w0, w1
ldp x29, x30, [sp], 112
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE13:
.size ZX_3desEncryptionText, .-ZX_3desEncryptionText
.align 2
.global ZX_3desDecryptionText
.type ZX_3desDecryptionText, %function
ZX_3desDecryptionText:
.LFB14:
.cfi_startproc
stp x29, x30, [sp, -112]!
.cfi_def_cfa_offset 112
.cfi_offset 29, -112
.cfi_offset 30, -104
mov x29, sp
str x0, [sp, 40]
str w1, [sp, 36]
str x2, [sp, 24]
str x3, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 104]
mov x1, 0
ldr w0, [sp, 36]
str w0, [sp, 60]
str wzr, [sp, 56]
b .L53
.L54:
ldr w0, [sp, 56]
lsl w0, w0, 3
sxtw x0, w0
ldr x1, [sp, 40]
add x0, x1, x0
ldr x0, [x0]
str x0, [sp, 64]
ldr w0, [sp, 56]
lsl w0, w0, 3
sxtw x0, w0
ldr x1, [sp, 24]
add x1, x1, x0
add x0, sp, 64
ldr x2, [sp, 16]
bl ZX_3desDecryption
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
.L53:
ldr w0, [sp, 60]
add w0, w0, 7
add w1, w0, 7
cmp w0, 0
csel w0, w1, w0, lt
asr w0, w0, 3
mov w1, w0
ldr w0, [sp, 56]
cmp w0, w1
blt .L54
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 104]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L56
bl __stack_chk_fail
.L56:
mov w0, w1
ldp x29, x30, [sp], 112
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE14:
.size ZX_3desDecryptionText, .-ZX_3desDecryptionText
.align 2
.global zx_mac
.type zx_mac, %function
zx_mac:
.LFB15:
.cfi_startproc
sub sp, sp, #592
.cfi_def_cfa_offset 592
stp x29, x30, [sp]
.cfi_offset 29, -592
.cfi_offset 30, -584
mov x29, sp
str x0, [sp, 40]
str w1, [sp, 36]
str x2, [sp, 24]
str x3, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 584]
mov x1, 0
add x0, sp, 328
mov x2, 9
mov w1, 0
bl memset
ldrsw x0, [sp, 36]
ldr x1, [sp, 40]
add x0, x1, x0
mov x2, 8
mov w1, 0
bl memset
ldr w0, [sp, 36]
and w0, w0, 7
cmp w0, 0
beq .L58
ldr w0, [sp, 36]
add w1, w0, 7
cmp w0, 0
csel w0, w1, w0, lt
asr w0, w0, 3
add w0, w0, 1
b .L59
.L58:
ldr w0, [sp, 36]
add w1, w0, 7
cmp w0, 0
csel w0, w1, w0, lt
asr w0, w0, 3
.L59:
str w0, [sp, 68]
str wzr, [sp, 60]
b .L60
.L63:
str wzr, [sp, 64]
b .L61
.L62:
ldrsw x0, [sp, 64]
add x1, sp, 328
ldrb w1, [x1, x0]
ldr w0, [sp, 60]
lsl w2, w0, 3
ldr w0, [sp, 64]
add w0, w2, w0
sxtw x0, w0
ldr x2, [sp, 40]
add x0, x2, x0
ldrb w0, [x0]
eor w0, w1, w0
and w2, w0, 255
ldrsw x0, [sp, 64]
add x1, sp, 328
strb w2, [x1, x0]
ldr w0, [sp, 64]
add w0, w0, 1
str w0, [sp, 64]
.L61:
ldr w0, [sp, 64]
cmp w0, 7
ble .L62
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L60:
ldr w1, [sp, 60]
ldr w0, [sp, 68]
cmp w1, w0
blt .L63
ldr x0, [sp, 328]
str x0, [sp, 200]
strb wzr, [sp, 208]
add x1, sp, 200
add x0, sp, 456
mov w2, 16
bl ZX_BCDToASC
ldr x0, [sp, 16]
ldp x0, x1, [x0]
stp x0, x1, [sp, 72]
strb wzr, [sp, 88]
add x2, sp, 72
add x1, sp, 328
add x0, sp, 456
mov w3, 1
bl zx_des
add x1, sp, 328
add x0, sp, 200
mov w2, 16
bl ZX_BCDToASC
str wzr, [sp, 64]
b .L64
.L65:
ldrsw x0, [sp, 64]
add x1, sp, 328
ldrb w1, [x1, x0]
ldr w0, [sp, 64]
add w0, w0, 8
sxtw x0, w0
add x2, sp, 456
ldrb w0, [x2, x0]
eor w0, w1, w0
and w2, w0, 255
ldrsw x0, [sp, 64]
add x1, sp, 328
strb w2, [x1, x0]
ldr w0, [sp, 64]
add w0, w0, 1
str w0, [sp, 64]
.L64:
ldr w0, [sp, 64]
cmp w0, 7
ble .L65
add x1, sp, 328
add x0, sp, 200
mov w2, 16
bl ZX_BCDToASC
add x2, sp, 72
add x1, sp, 200
add x0, sp, 328
mov w3, 1
bl zx_des
add x1, sp, 200
add x0, sp, 456
mov w2, 16
bl ZX_BCDToASC
ldr x1, [sp, 456]
ldr x0, [sp, 24]
str x1, [x0]
ldr x0, [sp, 24]
add x0, x0, 8
strb wzr, [x0]
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 584]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L66
bl __stack_chk_fail
.L66:
ldp x29, x30, [sp]
add sp, sp, 592
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE15:
.size zx_mac, .-zx_mac
.align 2
.global zx_unx98
.type zx_unx98, %function
zx_unx98:
.LFB16:
.cfi_startproc
stp x29, x30, [sp, -144]!
.cfi_def_cfa_offset 144
.cfi_offset 29, -144
.cfi_offset 30, -136
mov x29, sp
str x0, [sp, 56]
str x1, [sp, 48]
str x2, [sp, 40]
str x3, [sp, 32]
str w4, [sp, 28]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 136]
mov x1, 0
add x0, sp, 112
mov x2, 17
mov w1, 0
bl memset
add x0, sp, 80
mov x2, 9
mov w1, 0
bl memset
add x0, sp, 96
mov x2, 9
mov w1, 0
bl memset
ldr w0, [sp, 28]
cmp w0, 0
bne .L68
add x0, sp, 96
mov w3, 0
ldr x2, [sp, 32]
mov x1, x0
ldr x0, [sp, 48]
bl zx_des
b .L69
.L68:
add x0, sp, 96
ldr x2, [sp, 32]
mov x1, x0
ldr x0, [sp, 48]
bl ZX_3desDecryption
.L69:
ldr x0, [sp, 40]
cmp x0, 0
beq .L70
ldr x0, [sp, 40]
bl strlen
cmp x0, 11
bls .L70
ldr x0, [sp, 40]
bl strlen
str w0, [sp, 68]
add x0, sp, 112
mov x2, 17
mov w1, 0
bl memset
add x0, sp, 112
mov x2, 16
mov w1, 48
bl memset
add x0, sp, 112
add x0, x0, 4
ldrsw x1, [sp, 68]
sub x1, x1, #13
ldr x2, [sp, 40]
add x1, x2, x1
mov x2, 12
bl memcpy
add x1, sp, 112
add x0, sp, 80
mov w2, 16
bl ZX_BCDToASC
str wzr, [sp, 64]
b .L71
.L72:
ldrsw x0, [sp, 64]
add x1, sp, 96
ldrb w1, [x1, x0]
ldrsw x0, [sp, 64]
add x2, sp, 80
ldrb w0, [x2, x0]
eor w0, w1, w0
and w2, w0, 255
ldrsw x0, [sp, 64]
add x1, sp, 96
strb w2, [x1, x0]
ldr w0, [sp, 64]
add w0, w0, 1
str w0, [sp, 64]
.L71:
ldr w0, [sp, 64]
cmp w0, 7
ble .L72
.L70:
add x1, sp, 96
add x0, sp, 112
mov w2, 16
bl ZX_BCDToASC
add x0, sp, 72
mov x2, 3
mov w1, 0
bl memset
ldrh w0, [sp, 112]
strh w0, [sp, 72]
add x0, sp, 72
bl atoi
str w0, [sp, 68]
ldr w0, [sp, 68]
cmp w0, 12
bgt .L73
ldr w0, [sp, 68]
cmp w0, 0
bge .L74
.L73:
mov w0, -2
b .L76
.L74:
add x0, sp, 112
add x0, x0, 2
ldrsw x1, [sp, 68]
mov x2, x1
mov x1, x0
ldr x0, [sp, 56]
bl memcpy
ldrsw x0, [sp, 68]
ldr x1, [sp, 56]
add x0, x1, x0
strb wzr, [x0]
mov w0, 0
.L76:
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 136]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L77
bl __stack_chk_fail
.L77:
mov w0, w1
ldp x29, x30, [sp], 144
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE16:
.size zx_unx98, .-zx_unx98
.section .rodata
.align 3
.LC10:
.string "%02d"
.align 3
.LC11:
.string "FFFFFFFFFFFFFFFF"
.text
.align 2
.global zx_x98
.type zx_x98, %function
zx_x98:
.LFB17:
.cfi_startproc
stp x29, x30, [sp, -224]!
.cfi_def_cfa_offset 224
.cfi_offset 29, -224
.cfi_offset 30, -216
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -208
str x0, [sp, 72]
str x1, [sp, 64]
str x2, [sp, 56]
str x3, [sp, 48]
str w4, [sp, 44]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 216]
mov x1, 0
add x0, sp, 120
mov x2, 32
mov w1, 0
bl memset
ldr x0, [sp, 64]
bl strlen
add x3, sp, 120
mov w2, w0
adrp x0, .LC10
add x1, x0, :lo12:.LC10
mov x0, x3
bl sprintf
add x0, sp, 120
ldr x1, [sp, 64]
bl strcat
add x0, sp, 120
bl strlen
mov x1, x0
add x0, sp, 120
add x1, x0, x1
adrp x0, .LC11
add x0, x0, :lo12:.LC11
mov x2, x1
mov x3, x0
ldp x0, x1, [x3]
stp x0, x1, [x2]
ldrb w0, [x3, 16]
strb w0, [x2, 16]
strb wzr, [sp, 136]
add x1, sp, 120
add x0, sp, 184
mov w2, 16
bl ZX_ASCToBCD
strb wzr, [sp, 192]
ldr x0, [sp, 72]
cmp x0, 0
beq .L79
ldr x0, [sp, 72]
bl strlen
cmp x0, 11
bls .L79
add x0, sp, 88
mov x2, 16
mov w1, 48
bl memset
ldr x0, [sp, 72]
bl strlen
cmp x0, 12
bls .L80
add x19, sp, 88
add x19, x19, 4
ldr x0, [sp, 72]
bl strlen
sub x0, x0, #13
ldr x1, [sp, 72]
add x0, x1, x0
mov x2, 12
mov x1, x0
mov x0, x19
bl memcpy
b .L81
.L80:
ldr x0, [sp, 72]
bl strlen
mov x1, x0
mov x0, 16
sub x0, x0, x1
add x1, sp, 88
add x0, x1, x0
ldr x1, [sp, 72]
bl strcpy
.L81:
strb wzr, [sp, 104]
add x1, sp, 88
add x0, sp, 152
mov w2, 16
bl ZX_ASCToBCD
str wzr, [sp, 84]
b .L82
.L83:
ldrsw x0, [sp, 84]
add x1, sp, 184
ldrb w1, [x1, x0]
ldrsw x0, [sp, 84]
add x2, sp, 152
ldrb w0, [x2, x0]
eor w0, w1, w0
and w2, w0, 255
ldrsw x0, [sp, 84]
add x1, sp, 184
strb w2, [x1, x0]
ldr w0, [sp, 84]
add w0, w0, 1
str w0, [sp, 84]
.L82:
ldr w0, [sp, 84]
cmp w0, 7
ble .L83
.L79:
ldr w0, [sp, 44]
cmp w0, 0
bne .L84
add x0, sp, 184
mov w3, 1
ldr x2, [sp, 48]
ldr x1, [sp, 56]
bl zx_des
b .L87
.L84:
add x0, sp, 184
ldr x2, [sp, 48]
ldr x1, [sp, 56]
bl ZX_3desEncryption
.L87:
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 216]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L86
bl __stack_chk_fail
.L86:
ldr x19, [sp, 16]
ldp x29, x30, [sp], 224
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE17:
.size zx_x98, .-zx_x98
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global stack
.bss
.align 3
.type stack, %object
.size stack, 400
stack:
.zero 400
.global choice
.align 2
.type choice, %object
.size choice, 4
choice:
.zero 4
.global n
.align 2
.type n, %object
.size n, 4
n:
.zero 4
.global top
.align 2
.type top, %object
.size top, 4
top:
.zero 4
.global i
.align 2
.type i, %object
.size i, 4
i:
.zero 4
.global val
.align 2
.type val, %object
.size val, 4
val:
.zero 4
.section .rodata
.align 3
.LC0:
.string "STACK is over flow"
.align 3
.LC1:
.string " Enter a value to be pushed:"
.align 3
.LC2:
.string "%d"
.text
.align 2
.global push
.type push, %function
push:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
adrp x0, n
add x0, x0, :lo12:n
ldr w0, [x0]
sub w1, w0, #1
adrp x0, top
add x0, x0, :lo12:top
ldr w0, [x0]
cmp w1, w0
bgt .L2
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
b .L4
.L2:
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
adrp x0, val
add x1, x0, :lo12:val
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl __isoc99_scanf
adrp x0, top
add x0, x0, :lo12:top
ldr w0, [x0]
add w1, w0, 1
adrp x0, top
add x0, x0, :lo12:top
str w1, [x0]
adrp x0, top
add x0, x0, :lo12:top
ldr w1, [x0]
adrp x0, val
add x0, x0, :lo12:val
ldr w2, [x0]
adrp x0, stack
add x0, x0, :lo12:stack
sxtw x1, w1
str w2, [x0, x1, lsl 2]
.L4:
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size push, .-push
.section .rodata
.align 3
.LC3:
.string "\nStack is empty!!"
.align 3
.LC4:
.string "\nDeleted element is %d\n"
.text
.align 2
.global pop
.type pop, %function
pop:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
adrp x0, top
add x0, x0, :lo12:top
ldr w0, [x0]
cmn w0, #1
bne .L6
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
b .L8
.L6:
adrp x0, top
add x0, x0, :lo12:top
ldr w1, [x0]
adrp x0, stack
add x0, x0, :lo12:stack
sxtw x1, w1
ldr w0, [x0, x1, lsl 2]
mov w1, w0
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
adrp x0, top
add x0, x0, :lo12:top
ldr w0, [x0]
sub w1, w0, #1
adrp x0, top
add x0, x0, :lo12:top
str w1, [x0]
.L8:
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size pop, .-pop
.section .rodata
.align 3
.LC5:
.string "\nStack is"
.align 3
.LC6:
.string "%d\n"
.text
.align 2
.global display
.type display, %function
display:
.LFB2:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
adrp x0, top
add x0, x0, :lo12:top
ldr w0, [x0]
cmn w0, #1
bne .L10
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
b .L14
.L10:
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl puts
adrp x0, top
add x0, x0, :lo12:top
ldr w0, [x0]
str w0, [sp, 28]
b .L12
.L13:
adrp x0, stack
add x0, x0, :lo12:stack
ldrsw x1, [sp, 28]
ldr w0, [x0, x1, lsl 2]
mov w1, w0
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl printf
ldr w0, [sp, 28]
sub w0, w0, #1
str w0, [sp, 28]
.L12:
ldr w0, [sp, 28]
cmp w0, 0
bge .L13
.L14:
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size display, .-display
.section .rodata
.align 3
.LC7:
.string "\n Enter the size of STACK:"
.align 3
.LC8:
.string " STACK OPERATIONS USING ARRAY"
.align 3
.LC9:
.string "\n\t 1.PUSH\n\t 2.POP\n\t 3.DISPLAY\n\t 4.EXIT"
.align 3
.LC10:
.string "Enter the Choice:"
.align 3
.LC11:
.string " EXIT "
.align 3
.LC12:
.string "Enter a Valid Choice"
.text
.align 2
.global main
.type main, %function
main:
.LFB3:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
adrp x0, top
add x0, x0, :lo12:top
mov w1, -1
str w1, [x0]
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl printf
adrp x0, n
add x1, x0, :lo12:n
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl __isoc99_scanf
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl puts
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl puts
.L22:
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl printf
adrp x0, choice
add x1, x0, :lo12:choice
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl __isoc99_scanf
adrp x0, choice
add x0, x0, :lo12:choice
ldr w0, [x0]
cmp w0, 4
beq .L16
cmp w0, 4
bgt .L17
cmp w0, 3
beq .L18
cmp w0, 3
bgt .L17
cmp w0, 1
beq .L19
cmp w0, 2
beq .L20
b .L17
.L19:
bl push
b .L21
.L20:
bl pop
b .L21
.L18:
bl display
b .L21
.L16:
adrp x0, .LC11
add x0, x0, :lo12:.LC11
bl printf
b .L21
.L17:
adrp x0, .LC12
add x0, x0, :lo12:.LC12
bl printf
.L21:
adrp x0, choice
add x0, x0, :lo12:choice
ldr w0, [x0]
cmp w0, 4
bne .L22
mov w0, 0
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE3:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global megaInit
.type megaInit, %function
megaInit:
.LFB0:
.cfi_startproc
nop
ret
.cfi_endproc
.LFE0:
.size megaInit, .-megaInit
.section .rodata
.align 3
.LC0:
.string "Call this program with %i arguments\n"
.align 3
.LC1:
.string "You win!"
.align 3
.LC2:
.string "%u\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 72]
mov x1, 0
bl megaInit
ldr w0, [sp, 28]
cmp w0, 2
beq .L3
mov w1, 1
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
mov w0, -1
bl exit
.L3:
str wzr, [sp, 48]
b .L4
.L5:
ldrsw x0, [sp, 48]
add x0, x0, 1
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
ldr x0, [x0]
mov w2, 10
mov x1, 0
bl strtoul
strh w0, [sp, 46]
ldrsw x0, [sp, 48]
lsl x0, x0, 1
add x1, sp, 56
ldrh w2, [sp, 46]
strh w2, [x1, x0]
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
.L4:
ldr w0, [sp, 48]
cmp w0, 0
ble .L5
add x1, sp, 64
add x0, sp, 56
bl RandomFunc
ldrh w1, [sp, 64]
mov w0, 63958
cmp w1, w0
bne .L6
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl puts
.L6:
str wzr, [sp, 52]
b .L7
.L8:
ldrsw x0, [sp, 52]
lsl x0, x0, 1
add x1, sp, 64
ldrh w0, [x1, x0]
mov w1, w0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
.L7:
ldr w0, [sp, 52]
cmp w0, 0
ble .L8
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 72]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L10
bl __stack_chk_fail
.L10:
mov w0, w1
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size main, .-main
.align 2
.global RandomFunc
.type RandomFunc, %function
RandomFunc:
.LFB2:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 56]
mov x1, 0
ldr x0, [sp, 24]
ldrh w1, [x0]
mov w0, 26986
add w0, w1, w0
and w1, w0, 65535
mov w0, 11
eor w0, w1, w0
and w0, w0, 65535
strh w0, [sp, 48]
strh wzr, [sp, 46]
nop
ldrh w1, [sp, 48]
mov w0, 5099
add w0, w1, w0
and w0, w0, 65535
ubfiz w0, w0, 7, 9
and w1, w0, 65535
ldrh w0, [sp, 48]
and x2, x0, 65535
mov x0, 5099
movk x0, 0x3e73, lsl 16
add x0, x2, x0
lsr x0, x0, 9
and w0, w0, 65535
orr w0, w1, w0
and w1, w0, 65535
ldr x0, [sp, 16]
strh w1, [x0]
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 56]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L12
bl __stack_chk_fail
.L12:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size RandomFunc, .-RandomFunc
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "%d"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 40]
mov x1, 0
add x0, sp, 20
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
str wzr, [sp, 24]
mov w0, 1110704128
fmov s0, w0
str s0, [sp, 28]
mov w0, 32768
movk w0, 0x43ac, lsl 16
fmov s0, w0
str s0, [sp, 32]
ldr w0, [sp, 20]
sub w0, w0, #3500
str w0, [sp, 36]
ldr w0, [sp, 36]
cmp w0, 0
beq .L2
mov w0, 0
b .L3
.L2:
mov w0, 0
.L3:
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 40]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L4
bl __stack_chk_fail
.L4:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global swap
.type swap, %function
swap:
.LFB6:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str w1, [sp, 4]
str w2, [sp]
ldrsw x0, [sp, 4]
lsl x0, x0, 2
ldr x1, [sp, 8]
add x0, x1, x0
ldr w0, [x0]
str w0, [sp, 28]
ldrsw x0, [sp]
lsl x0, x0, 2
ldr x1, [sp, 8]
add x1, x1, x0
ldrsw x0, [sp, 4]
lsl x0, x0, 2
ldr x2, [sp, 8]
add x0, x2, x0
ldr w1, [x1]
str w1, [x0]
ldrsw x0, [sp]
lsl x0, x0, 2
ldr x1, [sp, 8]
add x0, x1, x0
ldr w1, [sp, 28]
str w1, [x0]
nop
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size swap, .-swap
.section .rodata
.align 3
.LC1:
.string "%d "
.text
.align 2
.global quicksplit_findtopk
.type quicksplit_findtopk, %function
quicksplit_findtopk:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 40]
str w1, [sp, 36]
str w2, [sp, 32]
str w3, [sp, 28]
ldr w1, [sp, 36]
ldr w0, [sp, 32]
cmp w1, w0
bge .L17
ldrsw x0, [sp, 32]
lsl x0, x0, 2
sub x0, x0, #4
ldr x1, [sp, 40]
add x0, x1, x0
ldr w0, [x0]
str w0, [sp, 60]
ldr w0, [sp, 36]
str w0, [sp, 48]
ldr w0, [sp, 32]
sub w0, w0, #2
str w0, [sp, 52]
b .L5
.L8:
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
.L6:
ldr w0, [sp, 32]
sub w0, w0, #1
ldr w1, [sp, 48]
cmp w1, w0
bge .L9
ldrsw x0, [sp, 48]
lsl x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
ldr w0, [x0]
ldr w1, [sp, 60]
cmp w1, w0
bgt .L8
b .L9
.L11:
ldr w0, [sp, 52]
sub w0, w0, #1
str w0, [sp, 52]
.L9:
ldr w0, [sp, 52]
cmp w0, 0
blt .L10
ldrsw x0, [sp, 52]
lsl x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
ldr w0, [x0]
ldr w1, [sp, 60]
cmp w1, w0
ble .L11
.L10:
ldr w1, [sp, 48]
ldr w0, [sp, 52]
cmp w1, w0
bge .L5
ldr w2, [sp, 52]
ldr w1, [sp, 48]
ldr x0, [sp, 40]
bl swap
.L5:
ldr w1, [sp, 48]
ldr w0, [sp, 52]
cmp w1, w0
ble .L6
ldr w0, [sp, 32]
sub w0, w0, #1
mov w2, w0
ldr w1, [sp, 48]
ldr x0, [sp, 40]
bl swap
ldr w1, [sp, 48]
ldr w0, [sp, 28]
cmp w1, w0
ble .L13
ldr w3, [sp, 28]
ldr w2, [sp, 48]
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl quicksplit_findtopk
b .L2
.L13:
ldr w1, [sp, 48]
ldr w0, [sp, 28]
cmp w1, w0
bge .L14
ldr w0, [sp, 48]
add w0, w0, 1
ldr w3, [sp, 28]
ldr w2, [sp, 32]
mov w1, w0
ldr x0, [sp, 40]
bl quicksplit_findtopk
b .L2
.L14:
str wzr, [sp, 56]
b .L15
.L16:
ldr w0, [sp, 56]
add w1, w0, 1
str w1, [sp, 56]
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
ldr w0, [x0]
mov w1, w0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
.L15:
ldr w1, [sp, 56]
ldr w0, [sp, 48]
cmp w1, w0
blt .L16
mov w0, 10
bl putchar
b .L2
.L17:
nop
.L2:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size quicksplit_findtopk, .-quicksplit_findtopk
.section .rodata
.align 3
.LC2:
.string "%dth minest number=%d\n"
.text
.align 2
.global quicksplit_find_kth_min
.type quicksplit_find_kth_min, %function
quicksplit_find_kth_min:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 40]
str w1, [sp, 36]
str w2, [sp, 32]
str w3, [sp, 28]
ldr w1, [sp, 36]
ldr w0, [sp, 32]
cmp w1, w0
bge .L31
ldrsw x0, [sp, 32]
lsl x0, x0, 2
sub x0, x0, #4
ldr x1, [sp, 40]
add x0, x1, x0
ldr w0, [x0]
str w0, [sp, 60]
ldr w0, [sp, 36]
str w0, [sp, 52]
ldr w0, [sp, 32]
sub w0, w0, #2
str w0, [sp, 56]
b .L21
.L24:
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
.L22:
ldr w0, [sp, 32]
sub w0, w0, #1
ldr w1, [sp, 52]
cmp w1, w0
bge .L25
ldrsw x0, [sp, 52]
lsl x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
ldr w0, [x0]
ldr w1, [sp, 60]
cmp w1, w0
bgt .L24
b .L25
.L27:
ldr w0, [sp, 56]
sub w0, w0, #1
str w0, [sp, 56]
.L25:
ldr w0, [sp, 56]
cmp w0, 0
blt .L26
ldrsw x0, [sp, 56]
lsl x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
ldr w0, [x0]
ldr w1, [sp, 60]
cmp w1, w0
ble .L27
.L26:
ldr w1, [sp, 52]
ldr w0, [sp, 56]
cmp w1, w0
bge .L21
ldr w2, [sp, 56]
ldr w1, [sp, 52]
ldr x0, [sp, 40]
bl swap
.L21:
ldr w1, [sp, 52]
ldr w0, [sp, 56]
cmp w1, w0
ble .L22
ldr w0, [sp, 32]
sub w0, w0, #1
mov w2, w0
ldr w1, [sp, 52]
ldr x0, [sp, 40]
bl swap
ldr w1, [sp, 28]
ldr w0, [sp, 52]
cmp w1, w0
bgt .L29
ldr w3, [sp, 28]
ldr w2, [sp, 52]
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl quicksplit_find_kth_min
b .L18
.L29:
ldr w0, [sp, 28]
sub w0, w0, #1
ldr w1, [sp, 52]
cmp w1, w0
bge .L30
ldr w0, [sp, 52]
add w0, w0, 1
ldr w3, [sp, 28]
ldr w2, [sp, 32]
mov w1, w0
ldr x0, [sp, 40]
bl quicksplit_find_kth_min
b .L18
.L30:
ldr w2, [sp, 60]
ldr w1, [sp, 28]
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
b .L18
.L31:
nop
.L18:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size quicksplit_find_kth_min, .-quicksplit_find_kth_min
.section .rodata
.align 3
.LC3:
.string "top%d minest numbers:\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB9:
.cfi_startproc
stp x29, x30, [sp, -256]!
.cfi_def_cfa_offset 256
.cfi_offset 29, -256
.cfi_offset 30, -248
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 248]
mov x1, 0
adrp x0, .LC0
add x1, x0, :lo12:.LC0
add x0, sp, 48
ldp q0, q1, [x1]
stp q0, q1, [x0]
ldp q0, q1, [x1, 32]
stp q0, q1, [x0, 32]
ldp q0, q1, [x1, 64]
stp q0, q1, [x0, 64]
ldp q0, q1, [x1, 96]
stp q0, q1, [x0, 96]
ldp q0, q1, [x1, 128]
stp q0, q1, [x0, 128]
ldp q0, q1, [x1, 160]
stp q0, q1, [x0, 160]
ldr x1, [x1, 192]
str x1, [x0, 192]
mov w0, 50
str w0, [sp, 44]
ldr x0, [sp, 16]
add x0, x0, 8
ldr x0, [x0]
bl atoi
str w0, [sp, 40]
ldr w1, [sp, 40]
ldr w0, [sp, 44]
cmp w1, w0
ble .L33
ldr w0, [sp, 44]
str w0, [sp, 40]
.L33:
add x0, sp, 48
ldr w3, [sp, 40]
ldr w2, [sp, 44]
mov w1, 0
bl quicksplit_find_kth_min
ldr w1, [sp, 40]
ldr w0, [sp, 44]
cmp w1, w0
bne .L34
ldr w0, [sp, 40]
sub w0, w0, #1
str w0, [sp, 40]
.L34:
ldr w1, [sp, 40]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
add x0, sp, 48
ldr w3, [sp, 40]
ldr w2, [sp, 44]
mov w1, 0
bl quicksplit_findtopk
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 248]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L36
bl __stack_chk_fail
.L36:
mov w0, w1
ldp x29, x30, [sp], 256
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size main, .-main
.section .rodata
.align 3
.LC0:
.word 60
.word 2
.word 97
.word 78
.word 0
.word 84
.word 68
.word 23
.word 48
.word 22
.word 63
.word 31
.word 43
.word 42
.word 82
.word 9
.word 57
.word 21
.word 42
.word 62
.word 83
.word 98
.word 64
.word 72
.word 96
.word 31
.word 76
.word 13
.word 70
.word 49
.word 10
.word 60
.word 72
.word 36
.word 26
.word 4
.word 56
.word 54
.word 13
.word 9
.word 98
.word 45
.word 61
.word 90
.word 88
.word 80
.word 30
.word 50
.word 77
.word 83
.text
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global err_msg
.data
.align 3
.type err_msg, %object
.size err_msg, 24
err_msg:
.string "ERR 01: File Not Found\n"
.global prompt_msg
.align 3
.type prompt_msg, %object
.size prompt_msg, 32
prompt_msg:
.string "Please enter the name of file: "
.global complete_msg
.align 3
.type complete_msg, %object
.size complete_msg, 34
complete_msg:
.string "The file transfer is successful. "
.text
.align 2
.global error
.type error, %function
error:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
bl perror
mov w0, 0
bl exit
.cfi_endproc
.LFE6:
.size error, .-error
.section .rodata
.align 3
.LC0:
.string "Failed to create socket"
.align 3
.LC1:
.string "ERROR connecting"
.align 3
.LC2:
.string "ERROR writing to socket"
.align 3
.LC3:
.string "\nt:%s\n"
.align 3
.LC4:
.string "tt:%d\n"
.align 3
.LC5:
.string "received.txt"
.align 3
.LC6:
.string "\tT:%d %d\n"
.align 3
.LC7:
.string "\tT:%d\n"
.align 3
.LC8:
.string "%s\nTotal number of blocks received = %d\nLast block size = %d\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -176]!
.cfi_def_cfa_offset 176
.cfi_offset 29, -176
.cfi_offset 30, -168
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 168]
mov x1, 0
mov w0, 8001
str w0, [sp, 20]
mov w0, 20
str w0, [sp, 24]
mov w2, 0
mov w1, 1
mov w0, 2
bl socket
str w0, [sp, 28]
ldr w0, [sp, 28]
cmp w0, 0
bge .L3
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl perror
mov w0, 1
bl exit
.L3:
add x0, sp, 48
stp xzr, xzr, [x0]
mov w0, 2
strh w0, [sp, 48]
str wzr, [sp, 52]
ldr w0, [sp, 20]
and w0, w0, 65535
bl htons
and w0, w0, 65535
strh w0, [sp, 50]
add x0, sp, 48
mov w2, 16
mov x1, x0
ldr w0, [sp, 28]
bl connect
cmp w0, 0
bge .L4
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl error
.L4:
adrp x0, prompt_msg
add x0, x0, :lo12:prompt_msg
bl strlen
mov x2, x0
adrp x0, prompt_msg
add x1, x0, :lo12:prompt_msg
mov w0, 1
bl write
add x0, sp, 64
movi v0.4s, 0
stp q0, q0, [x0]
stp q0, q0, [x0, 32]
stp q0, q0, [x0, 64]
fmov w1, s0
str w1, [x0, 96]
add x0, sp, 64
mov x2, 100
mov x1, x0
mov w0, 0
bl read
add x0, sp, 64
bl strlen
mov x1, x0
add x0, sp, 64
mov w3, 0
mov x2, x1
mov x1, x0
ldr w0, [sp, 28]
bl send
str w0, [sp, 32]
ldr w0, [sp, 32]
cmp w0, 0
bge .L5
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl error
.L5:
add x0, sp, 64
movi v0.4s, 0
stp q0, q0, [x0]
stp q0, q0, [x0, 32]
stp q0, q0, [x0, 64]
fmov w1, s0
str w1, [x0, 96]
add x0, sp, 64
mov w3, 256
mov x2, 1
mov x1, x0
ldr w0, [sp, 28]
bl recv
str w0, [sp, 32]
ldrb w0, [sp, 64]
cmp w0, 69
bne .L6
adrp x0, err_msg
add x0, x0, :lo12:err_msg
bl strlen
mov x2, x0
adrp x0, err_msg
add x1, x0, :lo12:err_msg
mov w0, 1
bl write
ldr w0, [sp, 28]
bl close
mov w0, 0
bl exit
.L6:
add x0, sp, 64
bl puts
add x0, sp, 64
movi v0.4s, 0
stp q0, q0, [x0]
stp q0, q0, [x0, 32]
stp q0, q0, [x0, 64]
fmov w1, s0
str w1, [x0, 96]
add x0, sp, 64
mov w3, 256
mov x2, 100
mov x1, x0
ldr w0, [sp, 28]
bl recv
str w0, [sp, 32]
add x0, sp, 64
mov x1, x0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
add x0, sp, 64
bl atoi
str w0, [sp, 36]
ldr w1, [sp, 36]
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
ldr w0, [sp, 36]
ldr w1, [sp, 24]
sdiv w2, w0, w1
ldr w1, [sp, 24]
mul w1, w2, w1
sub w0, w0, w1
str w0, [sp, 40]
ldr w1, [sp, 36]
ldr w0, [sp, 24]
sdiv w0, w1, w0
str w0, [sp, 16]
mov w2, 511
mov w1, 577
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl open
str w0, [sp, 44]
b .L7
.L8:
add x0, sp, 64
movi v0.4s, 0
stp q0, q0, [x0]
stp q0, q0, [x0, 32]
stp q0, q0, [x0, 64]
fmov w1, s0
str w1, [x0, 96]
ldrsw x1, [sp, 24]
add x0, sp, 64
mov w3, 256
mov x2, x1
mov x1, x0
ldr w0, [sp, 28]
bl recv
str w0, [sp, 32]
ldr w1, [sp, 36]
ldr w0, [sp, 24]
sdiv w1, w1, w0
ldr w0, [sp, 16]
sub w0, w1, w0
ldr w2, [sp, 32]
mov w1, w0
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl printf
ldrsw x1, [sp, 24]
add x0, sp, 64
mov x2, x1
mov x1, x0
ldr w0, [sp, 44]
bl write
.L7:
ldr w0, [sp, 16]
sub w1, w0, #1
str w1, [sp, 16]
cmp w0, 0
bne .L8
ldr w0, [sp, 40]
cmp w0, 0
beq .L9
add x0, sp, 64
movi v0.4s, 0
stp q0, q0, [x0]
stp q0, q0, [x0, 32]
stp q0, q0, [x0, 64]
fmov w1, s0
str w1, [x0, 96]
ldrsw x1, [sp, 40]
add x0, sp, 64
mov w3, 256
mov x2, x1
mov x1, x0
ldr w0, [sp, 28]
bl recv
str w0, [sp, 32]
ldr w1, [sp, 32]
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl printf
ldr w0, [sp, 32]
cmp w0, 0
ble .L9
ldrsw x1, [sp, 40]
add x0, sp, 64
mov x2, x1
mov x1, x0
ldr w0, [sp, 44]
bl write
.L9:
ldr w1, [sp, 36]
ldr w0, [sp, 24]
sdiv w0, w1, w0
ldr w3, [sp, 40]
mov w2, w0
adrp x0, complete_msg
add x1, x0, :lo12:complete_msg
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl printf
ldr w0, [sp, 44]
bl close
ldr w0, [sp, 28]
bl close
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 168]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L11
bl __stack_chk_fail
.L11:
mov w0, w1
ldp x29, x30, [sp], 176
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global SumOfElement
.type SumOfElement, %function
SumOfElement:
.LFB0:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str w1, [sp, 4]
str wzr, [sp, 24]
str wzr, [sp, 28]
b .L2
.L3:
ldrsw x0, [sp, 28]
lsl x0, x0, 2
ldr x1, [sp, 8]
add x0, x1, x0
ldr w0, [x0]
ldr w1, [sp, 24]
add w0, w1, w0
str w0, [sp, 24]
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L2:
ldr w1, [sp, 28]
ldr w0, [sp, 4]
cmp w1, w0
blt .L3
ldr w0, [sp, 24]
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size SumOfElement, .-SumOfElement
.section .rodata
.align 3
.LC1:
.string "Sum is : %d"
.text
.align 2
.global main
.type main, %function
main:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 56]
mov x1, 0
adrp x0, .LC0
add x1, x0, :lo12:.LC0
add x0, sp, 24
ldr q0, [x1]
str q0, [x0]
ldr q0, [x1, 12]
str q0, [x0, 12]
mov w0, 7
str w0, [sp, 16]
add x0, sp, 24
ldr w1, [sp, 16]
bl SumOfElement
str w0, [sp, 20]
ldr w1, [sp, 20]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 56]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L7
bl __stack_chk_fail
.L7:
mov w0, w1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size main, .-main
.section .rodata
.align 3
.LC0:
.word 7
.word 5
.word 3
.word 9
.word 6
.word 1
.word 4
.text
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global __VERIFIER_nondet_bool
.type __VERIFIER_nondet_bool, %function
__VERIFIER_nondet_bool:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
bl __VERIFIER_nondet_int
cmp w0, 0
cset w0, ne
and w0, w0, 255
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size __VERIFIER_nondet_bool, .-__VERIFIER_nondet_bool
.align 2
.global main
.type main, %function
main:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -192]!
.cfi_def_cfa_offset 192
.cfi_offset 29, -192
.cfi_offset 30, -184
mov x29, sp
bl __VERIFIER_nondet_int
str w0, [sp, 104]
bl __VERIFIER_nondet_float
str s0, [sp, 24]
bl __VERIFIER_nondet_float
str s0, [sp, 28]
bl __VERIFIER_nondet_float
str s0, [sp, 32]
bl __VERIFIER_nondet_float
str s0, [sp, 36]
bl __VERIFIER_nondet_float
str s0, [sp, 40]
bl __VERIFIER_nondet_float
str s0, [sp, 44]
bl __VERIFIER_nondet_float
str s0, [sp, 48]
bl __VERIFIER_nondet_float
str s0, [sp, 52]
bl __VERIFIER_nondet_float
str s0, [sp, 56]
bl __VERIFIER_nondet_float
str s0, [sp, 60]
bl __VERIFIER_nondet_float
str s0, [sp, 64]
bl __VERIFIER_nondet_float
str s0, [sp, 68]
bl __VERIFIER_nondet_float
str s0, [sp, 72]
bl __VERIFIER_nondet_float
str s0, [sp, 76]
bl __VERIFIER_nondet_float
str s0, [sp, 80]
bl __VERIFIER_nondet_float
str s0, [sp, 84]
bl __VERIFIER_nondet_float
str s0, [sp, 88]
bl __VERIFIER_nondet_float
str s0, [sp, 92]
bl __VERIFIER_nondet_float
str s0, [sp, 96]
bl __VERIFIER_nondet_float
str s0, [sp, 100]
ldr s0, [sp, 52]
fcvt d1, s0
ldr s0, [sp, 48]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.2e+1
fcmpe d1, d0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L4
ldr s0, [sp, 44]
fcvt d1, s0
ldr s0, [sp, 40]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+0
fcmpe d1, d0
bge .L5
ldr s0, [sp, 32]
fcvt d1, s0
ldr s0, [sp, 28]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.2e+1
fcmpe d1, d0
bge .L5
b .L4
.L5:
mov w0, 1
b .L7
.L4:
mov w0, 0
.L7:
str w0, [sp, 108]
b .L8
.L232:
bl __VERIFIER_nondet_int
str w0, [sp, 104]
bl __VERIFIER_nondet_float
str s0, [sp, 112]
bl __VERIFIER_nondet_float
str s0, [sp, 116]
bl __VERIFIER_nondet_float
str s0, [sp, 120]
bl __VERIFIER_nondet_float
str s0, [sp, 124]
bl __VERIFIER_nondet_float
str s0, [sp, 128]
bl __VERIFIER_nondet_float
str s0, [sp, 132]
bl __VERIFIER_nondet_float
str s0, [sp, 136]
bl __VERIFIER_nondet_float
str s0, [sp, 140]
bl __VERIFIER_nondet_float
str s0, [sp, 144]
bl __VERIFIER_nondet_float
str s0, [sp, 148]
bl __VERIFIER_nondet_float
str s0, [sp, 152]
bl __VERIFIER_nondet_float
str s0, [sp, 156]
bl __VERIFIER_nondet_float
str s0, [sp, 160]
bl __VERIFIER_nondet_float
str s0, [sp, 164]
bl __VERIFIER_nondet_float
str s0, [sp, 168]
bl __VERIFIER_nondet_float
str s0, [sp, 172]
bl __VERIFIER_nondet_float
str s0, [sp, 176]
bl __VERIFIER_nondet_float
str s0, [sp, 180]
bl __VERIFIER_nondet_float
str s0, [sp, 184]
bl __VERIFIER_nondet_float
str s0, [sp, 188]
ldr s0, [sp, 40]
fcvt d1, s0
ldr s0, [sp, 132]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -6.0e+0
fcmpe d1, d0
bls .L234
b .L9
.L234:
ldr s0, [sp, 76]
fcvt d1, s0
ldr s0, [sp, 132]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.9e+1
fcmpe d1, d0
bls .L235
b .L9
.L235:
ldr s0, [sp, 72]
fcvt d1, s0
ldr s0, [sp, 132]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -4.0e+0
fcmpe d1, d0
bls .L236
b .L9
.L236:
ldr s0, [sp, 24]
fcvt d1, s0
ldr s0, [sp, 132]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -3.0e+0
fcmpe d1, d0
bls .L237
b .L9
.L237:
ldr s0, [sp, 68]
fcvt d1, s0
ldr s0, [sp, 132]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -2.0e+1
fcmpe d1, d0
bls .L238
b .L9
.L238:
ldr s0, [sp, 96]
fcvt d1, s0
ldr s0, [sp, 132]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.4e+1
fcmpe d1, d0
bls .L239
b .L9
.L239:
ldr s0, [sp, 28]
fcvt d1, s0
ldr s0, [sp, 132]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.4e+1
fcmpe d1, d0
bls .L240
b .L9
.L240:
ldr s0, [sp, 100]
fcvt d1, s0
ldr s0, [sp, 132]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -2.0e+1
fcmpe d1, d0
bls .L241
b .L9
.L241:
ldr s0, [sp, 56]
fcvt d1, s0
ldr s0, [sp, 132]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.7e+1
fcmpe d1, d0
bls .L242
b .L9
.L242:
ldr s0, [sp, 48]
fcvt d1, s0
ldr s0, [sp, 132]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -2.0e+0
fcmpe d1, d0
bls .L243
b .L9
.L243:
ldr s0, [sp, 40]
fcvt d1, s0
ldr s0, [sp, 132]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -6.0e+0
fcmp d1, d0
beq .L20
ldr s0, [sp, 76]
fcvt d1, s0
ldr s0, [sp, 132]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.9e+1
fcmp d1, d0
beq .L20
ldr s0, [sp, 72]
fcvt d1, s0
ldr s0, [sp, 132]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -4.0e+0
fcmp d1, d0
beq .L20
ldr s0, [sp, 24]
fcvt d1, s0
ldr s0, [sp, 132]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -3.0e+0
fcmp d1, d0
beq .L20
ldr s0, [sp, 68]
fcvt d1, s0
ldr s0, [sp, 132]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -2.0e+1
fcmp d1, d0
beq .L20
ldr s0, [sp, 96]
fcvt d1, s0
ldr s0, [sp, 132]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.4e+1
fcmp d1, d0
beq .L20
ldr s0, [sp, 28]
fcvt d1, s0
ldr s0, [sp, 132]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.4e+1
fcmp d1, d0
beq .L20
ldr s0, [sp, 100]
fcvt d1, s0
ldr s0, [sp, 132]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -2.0e+1
fcmp d1, d0
beq .L20
ldr s0, [sp, 56]
fcvt d1, s0
ldr s0, [sp, 132]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.7e+1
fcmp d1, d0
beq .L20
ldr s0, [sp, 48]
fcvt d1, s0
ldr s0, [sp, 132]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -2.0e+0
fcmp d1, d0
bne .L9
.L20:
ldr s0, [sp, 40]
fcvt d1, s0
ldr s0, [sp, 120]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.9e+1
fcmpe d1, d0
bls .L244
b .L9
.L244:
ldr s0, [sp, 72]
fcvt d1, s0
ldr s0, [sp, 120]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.1e+1
fcmpe d1, d0
bls .L245
b .L9
.L245:
ldr s0, [sp, 24]
fcvt d1, s0
ldr s0, [sp, 120]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.9e+1
fcmpe d1, d0
bls .L246
b .L9
.L246:
ldr s0, [sp, 68]
fcvt d1, s0
ldr s0, [sp, 120]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -8.0e+0
fcmpe d1, d0
bls .L247
b .L9
.L247:
ldr s0, [sp, 96]
fcvt d1, s0
ldr s0, [sp, 120]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmpe d1, d0
bls .L248
b .L9
.L248:
ldr s0, [sp, 28]
fcvt d1, s0
ldr s0, [sp, 120]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmpe d1, d0
bls .L249
b .L9
.L249:
ldr s0, [sp, 48]
fcvt d1, s0
ldr s0, [sp, 120]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -7.0e+0
fcmpe d1, d0
bls .L250
b .L9
.L250:
ldr s0, [sp, 92]
fcvt d1, s0
ldr s0, [sp, 120]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -4.0e+0
fcmpe d1, d0
bls .L251
b .L9
.L251:
ldr s0, [sp, 52]
fcvt d1, s0
ldr s0, [sp, 120]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -7.0e+0
fcmpe d1, d0
bls .L252
b .L9
.L252:
ldr s0, [sp, 60]
fcvt d1, s0
ldr s0, [sp, 120]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.7e+1
fcmpe d1, d0
bls .L253
b .L9
.L253:
ldr s0, [sp, 40]
fcvt d1, s0
ldr s0, [sp, 120]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.9e+1
fcmp d1, d0
beq .L31
ldr s0, [sp, 72]
fcvt d1, s0
ldr s0, [sp, 120]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.1e+1
fcmp d1, d0
beq .L31
ldr s0, [sp, 24]
fcvt d1, s0
ldr s0, [sp, 120]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.9e+1
fcmp d1, d0
beq .L31
ldr s0, [sp, 68]
fcvt d1, s0
ldr s0, [sp, 120]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -8.0e+0
fcmp d1, d0
beq .L31
ldr s0, [sp, 96]
fcvt d1, s0
ldr s0, [sp, 120]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmp d1, d0
beq .L31
ldr s0, [sp, 28]
fcvt d1, s0
ldr s0, [sp, 120]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmp d1, d0
beq .L31
ldr s0, [sp, 48]
fcvt d1, s0
ldr s0, [sp, 120]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -7.0e+0
fcmp d1, d0
beq .L31
ldr s0, [sp, 92]
fcvt d1, s0
ldr s0, [sp, 120]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -4.0e+0
fcmp d1, d0
beq .L31
ldr s0, [sp, 52]
fcvt d1, s0
ldr s0, [sp, 120]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -7.0e+0
fcmp d1, d0
beq .L31
ldr s0, [sp, 60]
fcvt d1, s0
ldr s0, [sp, 120]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.7e+1
fcmp d1, d0
bne .L9
.L31:
ldr s0, [sp, 76]
fcvt d1, s0
ldr s0, [sp, 144]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.1e+1
fcmpe d1, d0
bls .L254
b .L9
.L254:
ldr s0, [sp, 24]
fcvt d1, s0
ldr s0, [sp, 144]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.9e+1
fcmpe d1, d0
bls .L255
b .L9
.L255:
ldr s0, [sp, 68]
fcvt d1, s0
ldr s0, [sp, 144]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.9e+1
fcmpe d1, d0
bls .L256
b .L9
.L256:
ldr s0, [sp, 96]
fcvt d1, s0
ldr s0, [sp, 144]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.6e+1
fcmpe d1, d0
bls .L257
b .L9
.L257:
ldr s0, [sp, 28]
fcvt d1, s0
ldr s0, [sp, 144]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmpe d1, d0
bls .L258
b .L9
.L258:
ldr s0, [sp, 64]
fcvt d1, s0
ldr s0, [sp, 144]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -9.0e+0
fcmpe d1, d0
bls .L259
b .L9
.L259:
ldr s0, [sp, 100]
fcvt d1, s0
ldr s0, [sp, 144]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmpe d1, d0
bls .L260
b .L9
.L260:
ldr s0, [sp, 52]
fcvt d1, s0
ldr s0, [sp, 144]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -7.0e+0
fcmpe d1, d0
bls .L261
b .L9
.L261:
ldr s0, [sp, 44]
fcvt d1, s0
ldr s0, [sp, 144]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.5e+1
fcmpe d1, d0
bls .L262
b .L9
.L262:
ldr s0, [sp, 32]
fcvt d1, s0
ldr s0, [sp, 144]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -6.0e+0
fcmpe d1, d0
bls .L263
b .L9
.L263:
ldr s0, [sp, 76]
fcvt d1, s0
ldr s0, [sp, 144]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.1e+1
fcmp d1, d0
beq .L42
ldr s0, [sp, 24]
fcvt d1, s0
ldr s0, [sp, 144]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.9e+1
fcmp d1, d0
beq .L42
ldr s0, [sp, 68]
fcvt d1, s0
ldr s0, [sp, 144]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.9e+1
fcmp d1, d0
beq .L42
ldr s0, [sp, 96]
fcvt d1, s0
ldr s0, [sp, 144]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.6e+1
fcmp d1, d0
beq .L42
ldr s0, [sp, 28]
fcvt d1, s0
ldr s0, [sp, 144]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmp d1, d0
beq .L42
ldr s0, [sp, 64]
fcvt d1, s0
ldr s0, [sp, 144]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -9.0e+0
fcmp d1, d0
beq .L42
ldr s0, [sp, 100]
fcvt d1, s0
ldr s0, [sp, 144]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmp d1, d0
beq .L42
ldr s0, [sp, 52]
fcvt d1, s0
ldr s0, [sp, 144]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -7.0e+0
fcmp d1, d0
beq .L42
ldr s0, [sp, 44]
fcvt d1, s0
ldr s0, [sp, 144]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.5e+1
fcmp d1, d0
beq .L42
ldr s0, [sp, 32]
fcvt d1, s0
ldr s0, [sp, 144]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -6.0e+0
fcmp d1, d0
bne .L9
.L42:
ldr s0, [sp, 40]
fcvt d1, s0
ldr s0, [sp, 172]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.1e+1
fcmpe d1, d0
bls .L264
b .L9
.L264:
ldr s0, [sp, 68]
fcvt d1, s0
ldr s0, [sp, 172]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmpe d1, d0
bls .L265
b .L9
.L265:
ldr s0, [sp, 28]
fcvt d1, s0
ldr s0, [sp, 172]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -2.0e+1
fcmpe d1, d0
bls .L266
b .L9
.L266:
ldr s0, [sp, 64]
fcvt d1, s0
ldr s0, [sp, 172]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmpe d1, d0
bls .L267
b .L9
.L267:
ldr s0, [sp, 100]
fcvt d1, s0
ldr s0, [sp, 172]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.1e+1
fcmpe d1, d0
bls .L268
b .L9
.L268:
ldr s0, [sp, 48]
fcvt d1, s0
ldr s0, [sp, 172]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.4e+1
fcmpe d1, d0
bls .L269
b .L9
.L269:
ldr s0, [sp, 60]
fcvt d1, s0
ldr s0, [sp, 172]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -2.0e+1
fcmpe d1, d0
bls .L270
b .L9
.L270:
ldr s0, [sp, 84]
fcvt d1, s0
ldr s0, [sp, 172]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.6e+1
fcmpe d1, d0
bls .L271
b .L9
.L271:
ldr s0, [sp, 44]
fcvt d1, s0
ldr s0, [sp, 172]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.7e+1
fcmpe d1, d0
bls .L272
b .L9
.L272:
ldr s0, [sp, 56]
fcvt d1, s0
ldr s0, [sp, 172]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmpe d1, d0
bls .L273
b .L9
.L273:
ldr s0, [sp, 40]
fcvt d1, s0
ldr s0, [sp, 172]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.1e+1
fcmp d1, d0
beq .L53
ldr s0, [sp, 68]
fcvt d1, s0
ldr s0, [sp, 172]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmp d1, d0
beq .L53
ldr s0, [sp, 28]
fcvt d1, s0
ldr s0, [sp, 172]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -2.0e+1
fcmp d1, d0
beq .L53
ldr s0, [sp, 64]
fcvt d1, s0
ldr s0, [sp, 172]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmp d1, d0
beq .L53
ldr s0, [sp, 100]
fcvt d1, s0
ldr s0, [sp, 172]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.1e+1
fcmp d1, d0
beq .L53
ldr s0, [sp, 48]
fcvt d1, s0
ldr s0, [sp, 172]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.4e+1
fcmp d1, d0
beq .L53
ldr s0, [sp, 60]
fcvt d1, s0
ldr s0, [sp, 172]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -2.0e+1
fcmp d1, d0
beq .L53
ldr s0, [sp, 84]
fcvt d1, s0
ldr s0, [sp, 172]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.6e+1
fcmp d1, d0
beq .L53
ldr s0, [sp, 44]
fcvt d1, s0
ldr s0, [sp, 172]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.7e+1
fcmp d1, d0
beq .L53
ldr s0, [sp, 56]
fcvt d1, s0
ldr s0, [sp, 172]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmp d1, d0
bne .L9
.L53:
ldr s0, [sp, 40]
fcvt d1, s0
ldr s0, [sp, 176]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -2.0e+1
fcmpe d1, d0
bls .L274
b .L9
.L274:
ldr s0, [sp, 80]
fcvt d1, s0
ldr s0, [sp, 176]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.8e+1
fcmpe d1, d0
bls .L275
b .L9
.L275:
ldr s0, [sp, 72]
fcvt d1, s0
ldr s0, [sp, 176]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmpe d1, d0
bls .L276
b .L9
.L276:
ldr s0, [sp, 68]
fcvt d1, s0
ldr s0, [sp, 176]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.8e+1
fcmpe d1, d0
bls .L277
b .L9
.L277:
ldr s0, [sp, 96]
fcvt d1, s0
ldr s0, [sp, 176]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.5e+1
fcmpe d1, d0
bls .L278
b .L9
.L278:
ldr s0, [sp, 28]
fcvt d1, s0
ldr s0, [sp, 176]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.8e+1
fcmpe d1, d0
bls .L279
b .L9
.L279:
ldr s0, [sp, 64]
fcvt d1, s0
ldr s0, [sp, 176]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -4.0e+0
fcmpe d1, d0
bls .L280
b .L9
.L280:
ldr s0, [sp, 60]
fcvt d1, s0
ldr s0, [sp, 176]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmpe d1, d0
bls .L281
b .L9
.L281:
ldr s0, [sp, 32]
fcvt d1, s0
ldr s0, [sp, 176]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -4.0e+0
fcmpe d1, d0
bls .L282
b .L9
.L282:
ldr s0, [sp, 88]
fcvt d1, s0
ldr s0, [sp, 176]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.1e+1
fcmpe d1, d0
bls .L283
b .L9
.L283:
ldr s0, [sp, 40]
fcvt d1, s0
ldr s0, [sp, 176]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -2.0e+1
fcmp d1, d0
beq .L64
ldr s0, [sp, 80]
fcvt d1, s0
ldr s0, [sp, 176]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.8e+1
fcmp d1, d0
beq .L64
ldr s0, [sp, 72]
fcvt d1, s0
ldr s0, [sp, 176]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmp d1, d0
beq .L64
ldr s0, [sp, 68]
fcvt d1, s0
ldr s0, [sp, 176]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.8e+1
fcmp d1, d0
beq .L64
ldr s0, [sp, 96]
fcvt d1, s0
ldr s0, [sp, 176]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.5e+1
fcmp d1, d0
beq .L64
ldr s0, [sp, 28]
fcvt d1, s0
ldr s0, [sp, 176]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.8e+1
fcmp d1, d0
beq .L64
ldr s0, [sp, 64]
fcvt d1, s0
ldr s0, [sp, 176]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -4.0e+0
fcmp d1, d0
beq .L64
ldr s0, [sp, 60]
fcvt d1, s0
ldr s0, [sp, 176]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmp d1, d0
beq .L64
ldr s0, [sp, 32]
fcvt d1, s0
ldr s0, [sp, 176]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -4.0e+0
fcmp d1, d0
beq .L64
ldr s0, [sp, 88]
fcvt d1, s0
ldr s0, [sp, 176]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.1e+1
fcmp d1, d0
bne .L9
.L64:
ldr s0, [sp, 40]
fcvt d1, s0
ldr s0, [sp, 140]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmpe d1, d0
bls .L284
b .L9
.L284:
ldr s0, [sp, 68]
fcvt d1, s0
ldr s0, [sp, 140]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.2e+1
fcmpe d1, d0
bls .L285
b .L9
.L285:
ldr s0, [sp, 96]
fcvt d1, s0
ldr s0, [sp, 140]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.9e+1
fcmpe d1, d0
bls .L286
b .L9
.L286:
ldr s0, [sp, 64]
fcvt d1, s0
ldr s0, [sp, 140]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmpe d1, d0
bls .L287
b .L9
.L287:
ldr s0, [sp, 100]
fcvt d1, s0
ldr s0, [sp, 140]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -8.0e+0
fcmpe d1, d0
bls .L288
b .L9
.L288:
ldr s0, [sp, 92]
fcvt d1, s0
ldr s0, [sp, 140]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.5e+1
fcmpe d1, d0
bls .L289
b .L9
.L289:
ldr s0, [sp, 88]
fcvt d1, s0
ldr s0, [sp, 140]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.5e+1
fcmpe d1, d0
bls .L290
b .L9
.L290:
ldr s0, [sp, 84]
fcvt d1, s0
ldr s0, [sp, 140]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.4e+1
fcmpe d1, d0
bls .L291
b .L9
.L291:
ldr s0, [sp, 32]
fcvt d1, s0
ldr s0, [sp, 140]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -7.0e+0
fcmpe d1, d0
bls .L292
b .L9
.L292:
ldr s0, [sp, 56]
fcvt d1, s0
ldr s0, [sp, 140]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -2.0e+1
fcmpe d1, d0
bls .L293
b .L9
.L293:
ldr s0, [sp, 40]
fcvt d1, s0
ldr s0, [sp, 140]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmp d1, d0
beq .L75
ldr s0, [sp, 68]
fcvt d1, s0
ldr s0, [sp, 140]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.2e+1
fcmp d1, d0
beq .L75
ldr s0, [sp, 96]
fcvt d1, s0
ldr s0, [sp, 140]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.9e+1
fcmp d1, d0
beq .L75
ldr s0, [sp, 64]
fcvt d1, s0
ldr s0, [sp, 140]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmp d1, d0
beq .L75
ldr s0, [sp, 100]
fcvt d1, s0
ldr s0, [sp, 140]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -8.0e+0
fcmp d1, d0
beq .L75
ldr s0, [sp, 92]
fcvt d1, s0
ldr s0, [sp, 140]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.5e+1
fcmp d1, d0
beq .L75
ldr s0, [sp, 88]
fcvt d1, s0
ldr s0, [sp, 140]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.5e+1
fcmp d1, d0
beq .L75
ldr s0, [sp, 84]
fcvt d1, s0
ldr s0, [sp, 140]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.4e+1
fcmp d1, d0
beq .L75
ldr s0, [sp, 32]
fcvt d1, s0
ldr s0, [sp, 140]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -7.0e+0
fcmp d1, d0
beq .L75
ldr s0, [sp, 56]
fcvt d1, s0
ldr s0, [sp, 140]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -2.0e+1
fcmp d1, d0
bne .L9
.L75:
ldr s0, [sp, 80]
fcvt d1, s0
ldr s0, [sp, 148]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -6.0e+0
fcmpe d1, d0
bls .L294
b .L9
.L294:
ldr s0, [sp, 72]
fcvt d1, s0
ldr s0, [sp, 148]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -4.0e+0
fcmpe d1, d0
bls .L295
b .L9
.L295:
ldr s0, [sp, 24]
fcvt d1, s0
ldr s0, [sp, 148]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.4e+1
fcmpe d1, d0
bls .L296
b .L9
.L296:
ldr s0, [sp, 96]
fcvt d1, s0
ldr s0, [sp, 148]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -6.0e+0
fcmpe d1, d0
bls .L297
b .L9
.L297:
ldr s0, [sp, 28]
fcvt d1, s0
ldr s0, [sp, 148]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -7.0e+0
fcmpe d1, d0
bls .L298
b .L9
.L298:
ldr s0, [sp, 64]
fcvt d1, s0
ldr s0, [sp, 148]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -2.0e+0
fcmpe d1, d0
bls .L299
b .L9
.L299:
ldr s0, [sp, 48]
fcvt d1, s0
ldr s0, [sp, 148]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+1
fcmpe d1, d0
bls .L300
b .L9
.L300:
ldr s0, [sp, 92]
fcvt d1, s0
ldr s0, [sp, 148]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.6e+1
fcmpe d1, d0
bls .L301
b .L9
.L301:
ldr s0, [sp, 32]
fcvt d1, s0
ldr s0, [sp, 148]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmpe d1, d0
bls .L302
b .L9
.L302:
ldr s0, [sp, 56]
fcvt d1, s0
ldr s0, [sp, 148]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.2e+1
fcmpe d1, d0
bls .L303
b .L9
.L303:
ldr s0, [sp, 80]
fcvt d1, s0
ldr s0, [sp, 148]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -6.0e+0
fcmp d1, d0
beq .L86
ldr s0, [sp, 72]
fcvt d1, s0
ldr s0, [sp, 148]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -4.0e+0
fcmp d1, d0
beq .L86
ldr s0, [sp, 24]
fcvt d1, s0
ldr s0, [sp, 148]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.4e+1
fcmp d1, d0
beq .L86
ldr s0, [sp, 96]
fcvt d1, s0
ldr s0, [sp, 148]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -6.0e+0
fcmp d1, d0
beq .L86
ldr s0, [sp, 28]
fcvt d1, s0
ldr s0, [sp, 148]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -7.0e+0
fcmp d1, d0
beq .L86
ldr s0, [sp, 64]
fcvt d1, s0
ldr s0, [sp, 148]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -2.0e+0
fcmp d1, d0
beq .L86
ldr s0, [sp, 48]
fcvt d1, s0
ldr s0, [sp, 148]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+1
fcmp d1, d0
beq .L86
ldr s0, [sp, 92]
fcvt d1, s0
ldr s0, [sp, 148]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.6e+1
fcmp d1, d0
beq .L86
ldr s0, [sp, 32]
fcvt d1, s0
ldr s0, [sp, 148]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmp d1, d0
beq .L86
ldr s0, [sp, 56]
fcvt d1, s0
ldr s0, [sp, 148]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.2e+1
fcmp d1, d0
bne .L9
.L86:
ldr s0, [sp, 40]
fcvt d1, s0
ldr s0, [sp, 180]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -8.0e+0
fcmpe d1, d0
bls .L304
b .L9
.L304:
ldr s0, [sp, 80]
fcvt d1, s0
ldr s0, [sp, 180]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmpe d1, d0
bls .L305
b .L9
.L305:
ldr s0, [sp, 36]
fcvt d1, s0
ldr s0, [sp, 180]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -8.0e+0
fcmpe d1, d0
bls .L306
b .L9
.L306:
ldr s0, [sp, 96]
fcvt d1, s0
ldr s0, [sp, 180]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -8.0e+0
fcmpe d1, d0
bls .L307
b .L9
.L307:
ldr s0, [sp, 28]
fcvt d1, s0
ldr s0, [sp, 180]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -2.0e+0
fcmpe d1, d0
bls .L308
b .L9
.L308:
ldr s0, [sp, 64]
fcvt d1, s0
ldr s0, [sp, 180]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.4e+1
fcmpe d1, d0
bls .L309
b .L9
.L309:
ldr s0, [sp, 60]
fcvt d1, s0
ldr s0, [sp, 180]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+1
fcmpe d1, d0
bls .L310
b .L9
.L310:
ldr s0, [sp, 88]
fcvt d1, s0
ldr s0, [sp, 180]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.4e+1
fcmpe d1, d0
bls .L311
b .L9
.L311:
ldr s0, [sp, 32]
fcvt d1, s0
ldr s0, [sp, 180]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+0
fcmpe d1, d0
bls .L312
b .L9
.L312:
ldr s0, [sp, 56]
fcvt d1, s0
ldr s0, [sp, 180]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.6e+1
fcmpe d1, d0
bls .L313
b .L9
.L313:
ldr s0, [sp, 40]
fcvt d1, s0
ldr s0, [sp, 180]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -8.0e+0
fcmp d1, d0
beq .L97
ldr s0, [sp, 80]
fcvt d1, s0
ldr s0, [sp, 180]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmp d1, d0
beq .L97
ldr s0, [sp, 36]
fcvt d1, s0
ldr s0, [sp, 180]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -8.0e+0
fcmp d1, d0
beq .L97
ldr s0, [sp, 96]
fcvt d1, s0
ldr s0, [sp, 180]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -8.0e+0
fcmp d1, d0
beq .L97
ldr s0, [sp, 28]
fcvt d1, s0
ldr s0, [sp, 180]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -2.0e+0
fcmp d1, d0
beq .L97
ldr s0, [sp, 64]
fcvt d1, s0
ldr s0, [sp, 180]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.4e+1
fcmp d1, d0
beq .L97
ldr s0, [sp, 60]
fcvt d1, s0
ldr s0, [sp, 180]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+1
fcmp d1, d0
beq .L97
ldr s0, [sp, 88]
fcvt d1, s0
ldr s0, [sp, 180]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.4e+1
fcmp d1, d0
beq .L97
ldr s0, [sp, 32]
fcvt d1, s0
ldr s0, [sp, 180]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+0
fcmp d1, d0
beq .L97
ldr s0, [sp, 56]
fcvt d1, s0
ldr s0, [sp, 180]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.6e+1
fcmp d1, d0
bne .L9
.L97:
ldr s0, [sp, 40]
fcvt d1, s0
ldr s0, [sp, 136]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.6e+1
fcmpe d1, d0
bls .L314
b .L9
.L314:
ldr s0, [sp, 80]
fcvt d1, s0
ldr s0, [sp, 136]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.8e+1
fcmpe d1, d0
bls .L315
b .L9
.L315:
ldr s0, [sp, 76]
fcvt d1, s0
ldr s0, [sp, 136]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -7.0e+0
fcmpe d1, d0
bls .L316
b .L9
.L316:
ldr s0, [sp, 72]
fcvt d1, s0
ldr s0, [sp, 136]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.5e+1
fcmpe d1, d0
bls .L317
b .L9
.L317:
ldr s0, [sp, 68]
fcvt d1, s0
ldr s0, [sp, 136]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -4.0e+0
fcmpe d1, d0
bls .L318
b .L9
.L318:
ldr s0, [sp, 64]
fcvt d1, s0
ldr s0, [sp, 136]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.5e+1
fcmpe d1, d0
bls .L319
b .L9
.L319:
ldr s0, [sp, 60]
fcvt d1, s0
ldr s0, [sp, 136]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -8.0e+0
fcmpe d1, d0
bls .L320
b .L9
.L320:
ldr s0, [sp, 52]
fcvt d1, s0
ldr s0, [sp, 136]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.6e+1
fcmpe d1, d0
bls .L321
b .L9
.L321:
ldr s0, [sp, 84]
fcvt d1, s0
ldr s0, [sp, 136]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.7e+1
fcmpe d1, d0
bls .L322
b .L9
.L322:
ldr s0, [sp, 88]
fcvt d1, s0
ldr s0, [sp, 136]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+1
fcmpe d1, d0
bls .L323
b .L9
.L323:
ldr s0, [sp, 40]
fcvt d1, s0
ldr s0, [sp, 136]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.6e+1
fcmp d1, d0
beq .L108
ldr s0, [sp, 80]
fcvt d1, s0
ldr s0, [sp, 136]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.8e+1
fcmp d1, d0
beq .L108
ldr s0, [sp, 76]
fcvt d1, s0
ldr s0, [sp, 136]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -7.0e+0
fcmp d1, d0
beq .L108
ldr s0, [sp, 72]
fcvt d1, s0
ldr s0, [sp, 136]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.5e+1
fcmp d1, d0
beq .L108
ldr s0, [sp, 68]
fcvt d1, s0
ldr s0, [sp, 136]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -4.0e+0
fcmp d1, d0
beq .L108
ldr s0, [sp, 64]
fcvt d1, s0
ldr s0, [sp, 136]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.5e+1
fcmp d1, d0
beq .L108
ldr s0, [sp, 60]
fcvt d1, s0
ldr s0, [sp, 136]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -8.0e+0
fcmp d1, d0
beq .L108
ldr s0, [sp, 52]
fcvt d1, s0
ldr s0, [sp, 136]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.6e+1
fcmp d1, d0
beq .L108
ldr s0, [sp, 84]
fcvt d1, s0
ldr s0, [sp, 136]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.7e+1
fcmp d1, d0
beq .L108
ldr s0, [sp, 88]
fcvt d1, s0
ldr s0, [sp, 136]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+1
fcmp d1, d0
bne .L9
.L108:
ldr s0, [sp, 40]
fcvt d1, s0
ldr s0, [sp, 188]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.1e+1
fcmpe d1, d0
bls .L324
b .L9
.L324:
ldr s0, [sp, 80]
fcvt d1, s0
ldr s0, [sp, 188]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+1
fcmpe d1, d0
bls .L325
b .L9
.L325:
ldr s0, [sp, 76]
fcvt d1, s0
ldr s0, [sp, 188]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -6.0e+0
fcmpe d1, d0
bls .L326
b .L9
.L326:
ldr s0, [sp, 24]
fcvt d1, s0
ldr s0, [sp, 188]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -6.0e+0
fcmpe d1, d0
bls .L327
b .L9
.L327:
ldr s0, [sp, 68]
fcvt d1, s0
ldr s0, [sp, 188]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.7e+1
fcmpe d1, d0
bls .L328
b .L9
.L328:
ldr s0, [sp, 64]
fcvt d1, s0
ldr s0, [sp, 188]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.8e+1
fcmpe d1, d0
bls .L329
b .L9
.L329:
ldr s0, [sp, 100]
fcvt d1, s0
ldr s0, [sp, 188]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.9e+1
fcmpe d1, d0
bls .L330
b .L9
.L330:
ldr s0, [sp, 48]
fcvt d1, s0
ldr s0, [sp, 188]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.9e+1
fcmpe d1, d0
bls .L331
b .L9
.L331:
ldr s0, [sp, 88]
fcvt d1, s0
ldr s0, [sp, 188]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmpe d1, d0
bls .L332
b .L9
.L332:
ldr s0, [sp, 92]
fcvt d1, s0
ldr s0, [sp, 188]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.7e+1
fcmpe d1, d0
bls .L333
b .L9
.L333:
ldr s0, [sp, 40]
fcvt d1, s0
ldr s0, [sp, 188]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.1e+1
fcmp d1, d0
beq .L119
ldr s0, [sp, 80]
fcvt d1, s0
ldr s0, [sp, 188]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+1
fcmp d1, d0
beq .L119
ldr s0, [sp, 76]
fcvt d1, s0
ldr s0, [sp, 188]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -6.0e+0
fcmp d1, d0
beq .L119
ldr s0, [sp, 24]
fcvt d1, s0
ldr s0, [sp, 188]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -6.0e+0
fcmp d1, d0
beq .L119
ldr s0, [sp, 68]
fcvt d1, s0
ldr s0, [sp, 188]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.7e+1
fcmp d1, d0
beq .L119
ldr s0, [sp, 64]
fcvt d1, s0
ldr s0, [sp, 188]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.8e+1
fcmp d1, d0
beq .L119
ldr s0, [sp, 100]
fcvt d1, s0
ldr s0, [sp, 188]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.9e+1
fcmp d1, d0
beq .L119
ldr s0, [sp, 48]
fcvt d1, s0
ldr s0, [sp, 188]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.9e+1
fcmp d1, d0
beq .L119
ldr s0, [sp, 88]
fcvt d1, s0
ldr s0, [sp, 188]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmp d1, d0
beq .L119
ldr s0, [sp, 92]
fcvt d1, s0
ldr s0, [sp, 188]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.7e+1
fcmp d1, d0
bne .L9
.L119:
ldr s0, [sp, 40]
fcvt d1, s0
ldr s0, [sp, 152]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -4.0e+0
fcmpe d1, d0
bls .L334
b .L9
.L334:
ldr s0, [sp, 36]
fcvt d1, s0
ldr s0, [sp, 152]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.8e+1
fcmpe d1, d0
bls .L335
b .L9
.L335:
ldr s0, [sp, 72]
fcvt d1, s0
ldr s0, [sp, 152]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.7e+1
fcmpe d1, d0
bls .L336
b .L9
.L336:
ldr s0, [sp, 24]
fcvt d1, s0
ldr s0, [sp, 152]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -8.0e+0
fcmpe d1, d0
bls .L337
b .L9
.L337:
ldr s0, [sp, 48]
fcvt d1, s0
ldr s0, [sp, 152]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmpe d1, d0
bls .L338
b .L9
.L338:
ldr s0, [sp, 92]
fcvt d1, s0
ldr s0, [sp, 152]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -9.0e+0
fcmpe d1, d0
bls .L339
b .L9
.L339:
ldr s0, [sp, 88]
fcvt d1, s0
ldr s0, [sp, 152]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.8e+1
fcmpe d1, d0
bls .L340
b .L9
.L340:
ldr s0, [sp, 56]
fcvt d1, s0
ldr s0, [sp, 152]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.1e+1
fcmpe d1, d0
bls .L341
b .L9
.L341:
ldr s0, [sp, 44]
fcvt d1, s0
ldr s0, [sp, 152]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+0
fcmpe d1, d0
bls .L342
b .L9
.L342:
ldr s0, [sp, 32]
fcvt d1, s0
ldr s0, [sp, 152]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -6.0e+0
fcmpe d1, d0
bls .L343
b .L9
.L343:
ldr s0, [sp, 40]
fcvt d1, s0
ldr s0, [sp, 152]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -4.0e+0
fcmp d1, d0
beq .L130
ldr s0, [sp, 36]
fcvt d1, s0
ldr s0, [sp, 152]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.8e+1
fcmp d1, d0
beq .L130
ldr s0, [sp, 72]
fcvt d1, s0
ldr s0, [sp, 152]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.7e+1
fcmp d1, d0
beq .L130
ldr s0, [sp, 24]
fcvt d1, s0
ldr s0, [sp, 152]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -8.0e+0
fcmp d1, d0
beq .L130
ldr s0, [sp, 48]
fcvt d1, s0
ldr s0, [sp, 152]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmp d1, d0
beq .L130
ldr s0, [sp, 92]
fcvt d1, s0
ldr s0, [sp, 152]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -9.0e+0
fcmp d1, d0
beq .L130
ldr s0, [sp, 88]
fcvt d1, s0
ldr s0, [sp, 152]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.8e+1
fcmp d1, d0
beq .L130
ldr s0, [sp, 56]
fcvt d1, s0
ldr s0, [sp, 152]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.1e+1
fcmp d1, d0
beq .L130
ldr s0, [sp, 44]
fcvt d1, s0
ldr s0, [sp, 152]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+0
fcmp d1, d0
beq .L130
ldr s0, [sp, 32]
fcvt d1, s0
ldr s0, [sp, 152]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -6.0e+0
fcmp d1, d0
bne .L9
.L130:
ldr s0, [sp, 40]
fcvt d1, s0
ldr s0, [sp, 116]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -4.0e+0
fcmpe d1, d0
bls .L344
b .L9
.L344:
ldr s0, [sp, 80]
fcvt d1, s0
ldr s0, [sp, 116]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmpe d1, d0
bls .L345
b .L9
.L345:
ldr s0, [sp, 76]
fcvt d1, s0
ldr s0, [sp, 116]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -8.0e+0
fcmpe d1, d0
bls .L346
b .L9
.L346:
ldr s0, [sp, 36]
fcvt d1, s0
ldr s0, [sp, 116]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -9.0e+0
fcmpe d1, d0
bls .L347
b .L9
.L347:
ldr s0, [sp, 72]
fcvt d1, s0
ldr s0, [sp, 116]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -9.0e+0
fcmpe d1, d0
bls .L348
b .L9
.L348:
ldr s0, [sp, 100]
fcvt d1, s0
ldr s0, [sp, 116]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+1
fcmpe d1, d0
bls .L349
b .L9
.L349:
ldr s0, [sp, 48]
fcvt d1, s0
ldr s0, [sp, 116]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.1e+1
fcmpe d1, d0
bls .L350
b .L9
.L350:
ldr s0, [sp, 92]
fcvt d1, s0
ldr s0, [sp, 116]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.5e+1
fcmpe d1, d0
bls .L351
b .L9
.L351:
ldr s0, [sp, 84]
fcvt d1, s0
ldr s0, [sp, 116]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -9.0e+0
fcmpe d1, d0
bls .L352
b .L9
.L352:
ldr s0, [sp, 88]
fcvt d1, s0
ldr s0, [sp, 116]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+1
fcmpe d1, d0
bls .L353
b .L9
.L353:
ldr s0, [sp, 40]
fcvt d1, s0
ldr s0, [sp, 116]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -4.0e+0
fcmp d1, d0
beq .L141
ldr s0, [sp, 80]
fcvt d1, s0
ldr s0, [sp, 116]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmp d1, d0
beq .L141
ldr s0, [sp, 76]
fcvt d1, s0
ldr s0, [sp, 116]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -8.0e+0
fcmp d1, d0
beq .L141
ldr s0, [sp, 36]
fcvt d1, s0
ldr s0, [sp, 116]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -9.0e+0
fcmp d1, d0
beq .L141
ldr s0, [sp, 72]
fcvt d1, s0
ldr s0, [sp, 116]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -9.0e+0
fcmp d1, d0
beq .L141
ldr s0, [sp, 100]
fcvt d1, s0
ldr s0, [sp, 116]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+1
fcmp d1, d0
beq .L141
ldr s0, [sp, 48]
fcvt d1, s0
ldr s0, [sp, 116]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.1e+1
fcmp d1, d0
beq .L141
ldr s0, [sp, 92]
fcvt d1, s0
ldr s0, [sp, 116]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.5e+1
fcmp d1, d0
beq .L141
ldr s0, [sp, 84]
fcvt d1, s0
ldr s0, [sp, 116]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -9.0e+0
fcmp d1, d0
beq .L141
ldr s0, [sp, 88]
fcvt d1, s0
ldr s0, [sp, 116]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+1
fcmp d1, d0
bne .L9
.L141:
ldr s0, [sp, 72]
fcvt d1, s0
ldr s0, [sp, 184]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.1e+1
fcmpe d1, d0
bls .L354
b .L9
.L354:
ldr s0, [sp, 24]
fcvt d1, s0
ldr s0, [sp, 184]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -9.0e+0
fcmpe d1, d0
bls .L355
b .L9
.L355:
ldr s0, [sp, 64]
fcvt d1, s0
ldr s0, [sp, 184]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -7.0e+0
fcmpe d1, d0
bls .L356
b .L9
.L356:
ldr s0, [sp, 100]
fcvt d1, s0
ldr s0, [sp, 184]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmpe d1, d0
bls .L357
b .L9
.L357:
ldr s0, [sp, 48]
fcvt d1, s0
ldr s0, [sp, 184]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.7e+1
fcmpe d1, d0
bls .L358
b .L9
.L358:
ldr s0, [sp, 92]
fcvt d1, s0
ldr s0, [sp, 184]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.2e+1
fcmpe d1, d0
bls .L359
b .L9
.L359:
ldr s0, [sp, 60]
fcvt d1, s0
ldr s0, [sp, 184]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -9.0e+0
fcmpe d1, d0
bls .L360
b .L9
.L360:
ldr s0, [sp, 88]
fcvt d1, s0
ldr s0, [sp, 184]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmpe d1, d0
bls .L361
b .L9
.L361:
ldr s0, [sp, 44]
fcvt d1, s0
ldr s0, [sp, 184]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+1
fcmpe d1, d0
bls .L362
b .L9
.L362:
ldr s0, [sp, 56]
fcvt d1, s0
ldr s0, [sp, 184]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.4e+1
fcmpe d1, d0
bls .L363
b .L9
.L363:
ldr s0, [sp, 72]
fcvt d1, s0
ldr s0, [sp, 184]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.1e+1
fcmp d1, d0
beq .L152
ldr s0, [sp, 24]
fcvt d1, s0
ldr s0, [sp, 184]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -9.0e+0
fcmp d1, d0
beq .L152
ldr s0, [sp, 64]
fcvt d1, s0
ldr s0, [sp, 184]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -7.0e+0
fcmp d1, d0
beq .L152
ldr s0, [sp, 100]
fcvt d1, s0
ldr s0, [sp, 184]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmp d1, d0
beq .L152
ldr s0, [sp, 48]
fcvt d1, s0
ldr s0, [sp, 184]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.7e+1
fcmp d1, d0
beq .L152
ldr s0, [sp, 92]
fcvt d1, s0
ldr s0, [sp, 184]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.2e+1
fcmp d1, d0
beq .L152
ldr s0, [sp, 60]
fcvt d1, s0
ldr s0, [sp, 184]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -9.0e+0
fcmp d1, d0
beq .L152
ldr s0, [sp, 88]
fcvt d1, s0
ldr s0, [sp, 184]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmp d1, d0
beq .L152
ldr s0, [sp, 44]
fcvt d1, s0
ldr s0, [sp, 184]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+1
fcmp d1, d0
beq .L152
ldr s0, [sp, 56]
fcvt d1, s0
ldr s0, [sp, 184]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.4e+1
fcmp d1, d0
bne .L9
.L152:
ldr s0, [sp, 80]
fcvt d1, s0
ldr s0, [sp, 156]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -9.0e+0
fcmpe d1, d0
bls .L364
b .L9
.L364:
ldr s0, [sp, 24]
fcvt d1, s0
ldr s0, [sp, 156]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmpe d1, d0
bls .L365
b .L9
.L365:
ldr s0, [sp, 68]
fcvt d1, s0
ldr s0, [sp, 156]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+0
fcmpe d1, d0
bls .L366
b .L9
.L366:
ldr s0, [sp, 28]
fcvt d1, s0
ldr s0, [sp, 156]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.1e+1
fcmpe d1, d0
bls .L367
b .L9
.L367:
ldr s0, [sp, 64]
fcvt d1, s0
ldr s0, [sp, 156]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmpe d1, d0
bls .L368
b .L9
.L368:
ldr s0, [sp, 100]
fcvt d1, s0
ldr s0, [sp, 156]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.8e+1
fcmpe d1, d0
bls .L369
b .L9
.L369:
ldr s0, [sp, 48]
fcvt d1, s0
ldr s0, [sp, 156]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmpe d1, d0
bls .L370
b .L9
.L370:
ldr s0, [sp, 92]
fcvt d1, s0
ldr s0, [sp, 156]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.2e+1
fcmpe d1, d0
bls .L371
b .L9
.L371:
ldr s0, [sp, 56]
fcvt d1, s0
ldr s0, [sp, 156]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -2.0e+1
fcmpe d1, d0
bls .L372
b .L9
.L372:
ldr s0, [sp, 52]
fcvt d1, s0
ldr s0, [sp, 156]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.5e+1
fcmpe d1, d0
bls .L373
b .L9
.L373:
ldr s0, [sp, 80]
fcvt d1, s0
ldr s0, [sp, 156]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -9.0e+0
fcmp d1, d0
beq .L163
ldr s0, [sp, 24]
fcvt d1, s0
ldr s0, [sp, 156]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmp d1, d0
beq .L163
ldr s0, [sp, 68]
fcvt d1, s0
ldr s0, [sp, 156]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+0
fcmp d1, d0
beq .L163
ldr s0, [sp, 28]
fcvt d1, s0
ldr s0, [sp, 156]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.1e+1
fcmp d1, d0
beq .L163
ldr s0, [sp, 64]
fcvt d1, s0
ldr s0, [sp, 156]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmp d1, d0
beq .L163
ldr s0, [sp, 100]
fcvt d1, s0
ldr s0, [sp, 156]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.8e+1
fcmp d1, d0
beq .L163
ldr s0, [sp, 48]
fcvt d1, s0
ldr s0, [sp, 156]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmp d1, d0
beq .L163
ldr s0, [sp, 92]
fcvt d1, s0
ldr s0, [sp, 156]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.2e+1
fcmp d1, d0
beq .L163
ldr s0, [sp, 56]
fcvt d1, s0
ldr s0, [sp, 156]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -2.0e+1
fcmp d1, d0
beq .L163
ldr s0, [sp, 52]
fcvt d1, s0
ldr s0, [sp, 156]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.5e+1
fcmp d1, d0
bne .L9
.L163:
ldr s0, [sp, 40]
fcvt d1, s0
ldr s0, [sp, 112]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+1
fcmpe d1, d0
bls .L374
b .L9
.L374:
ldr s0, [sp, 76]
fcvt d1, s0
ldr s0, [sp, 112]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -7.0e+0
fcmpe d1, d0
bls .L375
b .L9
.L375:
ldr s0, [sp, 24]
fcvt d1, s0
ldr s0, [sp, 112]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmpe d1, d0
bls .L376
b .L9
.L376:
ldr s0, [sp, 68]
fcvt d1, s0
ldr s0, [sp, 112]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -2.0e+1
fcmpe d1, d0
bls .L377
b .L9
.L377:
ldr s0, [sp, 28]
fcvt d1, s0
ldr s0, [sp, 112]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.9e+1
fcmpe d1, d0
bls .L378
b .L9
.L378:
ldr s0, [sp, 100]
fcvt d1, s0
ldr s0, [sp, 112]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -4.0e+0
fcmpe d1, d0
bls .L379
b .L9
.L379:
ldr s0, [sp, 48]
fcvt d1, s0
ldr s0, [sp, 112]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.2e+1
fcmpe d1, d0
bls .L380
b .L9
.L380:
ldr s0, [sp, 92]
fcvt d1, s0
ldr s0, [sp, 112]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+0
fcmpe d1, d0
bls .L381
b .L9
.L381:
ldr s0, [sp, 84]
fcvt d1, s0
ldr s0, [sp, 112]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.2e+1
fcmpe d1, d0
bls .L382
b .L9
.L382:
ldr s0, [sp, 52]
fcvt d1, s0
ldr s0, [sp, 112]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmpe d1, d0
bls .L383
b .L9
.L383:
ldr s0, [sp, 40]
fcvt d1, s0
ldr s0, [sp, 112]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+1
fcmp d1, d0
beq .L174
ldr s0, [sp, 76]
fcvt d1, s0
ldr s0, [sp, 112]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -7.0e+0
fcmp d1, d0
beq .L174
ldr s0, [sp, 24]
fcvt d1, s0
ldr s0, [sp, 112]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmp d1, d0
beq .L174
ldr s0, [sp, 68]
fcvt d1, s0
ldr s0, [sp, 112]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -2.0e+1
fcmp d1, d0
beq .L174
ldr s0, [sp, 28]
fcvt d1, s0
ldr s0, [sp, 112]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.9e+1
fcmp d1, d0
beq .L174
ldr s0, [sp, 100]
fcvt d1, s0
ldr s0, [sp, 112]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -4.0e+0
fcmp d1, d0
beq .L174
ldr s0, [sp, 48]
fcvt d1, s0
ldr s0, [sp, 112]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.2e+1
fcmp d1, d0
beq .L174
ldr s0, [sp, 92]
fcvt d1, s0
ldr s0, [sp, 112]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+0
fcmp d1, d0
beq .L174
ldr s0, [sp, 84]
fcvt d1, s0
ldr s0, [sp, 112]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.2e+1
fcmp d1, d0
beq .L174
ldr s0, [sp, 52]
fcvt d1, s0
ldr s0, [sp, 112]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmp d1, d0
bne .L9
.L174:
ldr s0, [sp, 40]
fcvt d1, s0
ldr s0, [sp, 160]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.6e+1
fcmpe d1, d0
bls .L384
b .L9
.L384:
ldr s0, [sp, 36]
fcvt d1, s0
ldr s0, [sp, 160]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.2e+1
fcmpe d1, d0
bls .L385
b .L9
.L385:
ldr s0, [sp, 72]
fcvt d1, s0
ldr s0, [sp, 160]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -6.0e+0
fcmpe d1, d0
bls .L386
b .L9
.L386:
ldr s0, [sp, 24]
fcvt d1, s0
ldr s0, [sp, 160]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmpe d1, d0
bls .L387
b .L9
.L387:
ldr s0, [sp, 96]
fcvt d1, s0
ldr s0, [sp, 160]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.5e+1
fcmpe d1, d0
bls .L388
b .L9
.L388:
ldr s0, [sp, 28]
fcvt d1, s0
ldr s0, [sp, 160]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -7.0e+0
fcmpe d1, d0
bls .L389
b .L9
.L389:
ldr s0, [sp, 100]
fcvt d1, s0
ldr s0, [sp, 160]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+0
fcmpe d1, d0
bls .L390
b .L9
.L390:
ldr s0, [sp, 48]
fcvt d1, s0
ldr s0, [sp, 160]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.1e+1
fcmpe d1, d0
bls .L391
b .L9
.L391:
ldr s0, [sp, 56]
fcvt d1, s0
ldr s0, [sp, 160]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -4.0e+0
fcmpe d1, d0
bls .L392
b .L9
.L392:
ldr s0, [sp, 84]
fcvt d1, s0
ldr s0, [sp, 160]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.9e+1
fcmpe d1, d0
bls .L393
b .L9
.L393:
ldr s0, [sp, 40]
fcvt d1, s0
ldr s0, [sp, 160]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.6e+1
fcmp d1, d0
beq .L185
ldr s0, [sp, 36]
fcvt d1, s0
ldr s0, [sp, 160]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.2e+1
fcmp d1, d0
beq .L185
ldr s0, [sp, 72]
fcvt d1, s0
ldr s0, [sp, 160]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -6.0e+0
fcmp d1, d0
beq .L185
ldr s0, [sp, 24]
fcvt d1, s0
ldr s0, [sp, 160]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmp d1, d0
beq .L185
ldr s0, [sp, 96]
fcvt d1, s0
ldr s0, [sp, 160]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.5e+1
fcmp d1, d0
beq .L185
ldr s0, [sp, 28]
fcvt d1, s0
ldr s0, [sp, 160]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -7.0e+0
fcmp d1, d0
beq .L185
ldr s0, [sp, 100]
fcvt d1, s0
ldr s0, [sp, 160]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+0
fcmp d1, d0
beq .L185
ldr s0, [sp, 48]
fcvt d1, s0
ldr s0, [sp, 160]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.1e+1
fcmp d1, d0
beq .L185
ldr s0, [sp, 56]
fcvt d1, s0
ldr s0, [sp, 160]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -4.0e+0
fcmp d1, d0
beq .L185
ldr s0, [sp, 84]
fcvt d1, s0
ldr s0, [sp, 160]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.9e+1
fcmp d1, d0
bne .L9
.L185:
ldr s0, [sp, 76]
fcvt d1, s0
ldr s0, [sp, 124]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -2.0e+1
fcmpe d1, d0
bls .L394
b .L9
.L394:
ldr s0, [sp, 36]
fcvt d1, s0
ldr s0, [sp, 124]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmpe d1, d0
bls .L395
b .L9
.L395:
ldr s0, [sp, 24]
fcvt d1, s0
ldr s0, [sp, 124]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.9e+1
fcmpe d1, d0
bls .L396
b .L9
.L396:
ldr s0, [sp, 68]
fcvt d1, s0
ldr s0, [sp, 124]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmpe d1, d0
bls .L397
b .L9
.L397:
ldr s0, [sp, 96]
fcvt d1, s0
ldr s0, [sp, 124]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmpe d1, d0
bls .L398
b .L9
.L398:
ldr s0, [sp, 28]
fcvt d1, s0
ldr s0, [sp, 124]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.7e+1
fcmpe d1, d0
bls .L399
b .L9
.L399:
ldr s0, [sp, 52]
fcvt d1, s0
ldr s0, [sp, 124]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+0
fcmpe d1, d0
bls .L400
b .L9
.L400:
ldr s0, [sp, 88]
fcvt d1, s0
ldr s0, [sp, 124]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.6e+1
fcmpe d1, d0
bls .L401
b .L9
.L401:
ldr s0, [sp, 44]
fcvt d1, s0
ldr s0, [sp, 124]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.9e+1
fcmpe d1, d0
bls .L402
b .L9
.L402:
ldr s0, [sp, 84]
fcvt d1, s0
ldr s0, [sp, 124]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -3.0e+0
fcmpe d1, d0
bls .L403
b .L9
.L403:
ldr s0, [sp, 76]
fcvt d1, s0
ldr s0, [sp, 124]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -2.0e+1
fcmp d1, d0
beq .L196
ldr s0, [sp, 36]
fcvt d1, s0
ldr s0, [sp, 124]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmp d1, d0
beq .L196
ldr s0, [sp, 24]
fcvt d1, s0
ldr s0, [sp, 124]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.9e+1
fcmp d1, d0
beq .L196
ldr s0, [sp, 68]
fcvt d1, s0
ldr s0, [sp, 124]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmp d1, d0
beq .L196
ldr s0, [sp, 96]
fcvt d1, s0
ldr s0, [sp, 124]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmp d1, d0
beq .L196
ldr s0, [sp, 28]
fcvt d1, s0
ldr s0, [sp, 124]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.7e+1
fcmp d1, d0
beq .L196
ldr s0, [sp, 52]
fcvt d1, s0
ldr s0, [sp, 124]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+0
fcmp d1, d0
beq .L196
ldr s0, [sp, 88]
fcvt d1, s0
ldr s0, [sp, 124]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.6e+1
fcmp d1, d0
beq .L196
ldr s0, [sp, 44]
fcvt d1, s0
ldr s0, [sp, 124]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.9e+1
fcmp d1, d0
beq .L196
ldr s0, [sp, 84]
fcvt d1, s0
ldr s0, [sp, 124]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -3.0e+0
fcmp d1, d0
bne .L9
.L196:
ldr s0, [sp, 76]
fcvt d1, s0
ldr s0, [sp, 164]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+0
fcmpe d1, d0
bls .L404
b .L9
.L404:
ldr s0, [sp, 36]
fcvt d1, s0
ldr s0, [sp, 164]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmpe d1, d0
bls .L405
b .L9
.L405:
ldr s0, [sp, 72]
fcvt d1, s0
ldr s0, [sp, 164]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.2e+1
fcmpe d1, d0
bls .L406
b .L9
.L406:
ldr s0, [sp, 68]
fcvt d1, s0
ldr s0, [sp, 164]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.7e+1
fcmpe d1, d0
bls .L407
b .L9
.L407:
ldr s0, [sp, 48]
fcvt d1, s0
ldr s0, [sp, 164]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -6.0e+0
fcmpe d1, d0
bls .L408
b .L9
.L408:
ldr s0, [sp, 60]
fcvt d1, s0
ldr s0, [sp, 164]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmpe d1, d0
bls .L409
b .L9
.L409:
ldr s0, [sp, 52]
fcvt d1, s0
ldr s0, [sp, 164]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.4e+1
fcmpe d1, d0
bls .L410
b .L9
.L410:
ldr s0, [sp, 56]
fcvt d1, s0
ldr s0, [sp, 164]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.5e+1
fcmpe d1, d0
bls .L411
b .L9
.L411:
ldr s0, [sp, 44]
fcvt d1, s0
ldr s0, [sp, 164]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -3.0e+0
fcmpe d1, d0
bls .L412
b .L9
.L412:
ldr s0, [sp, 32]
fcvt d1, s0
ldr s0, [sp, 164]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.7e+1
fcmpe d1, d0
bls .L413
b .L9
.L413:
ldr s0, [sp, 76]
fcvt d1, s0
ldr s0, [sp, 164]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+0
fcmp d1, d0
beq .L207
ldr s0, [sp, 36]
fcvt d1, s0
ldr s0, [sp, 164]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmp d1, d0
beq .L207
ldr s0, [sp, 72]
fcvt d1, s0
ldr s0, [sp, 164]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.2e+1
fcmp d1, d0
beq .L207
ldr s0, [sp, 68]
fcvt d1, s0
ldr s0, [sp, 164]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.7e+1
fcmp d1, d0
beq .L207
ldr s0, [sp, 48]
fcvt d1, s0
ldr s0, [sp, 164]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -6.0e+0
fcmp d1, d0
beq .L207
ldr s0, [sp, 60]
fcvt d1, s0
ldr s0, [sp, 164]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmp d1, d0
beq .L207
ldr s0, [sp, 52]
fcvt d1, s0
ldr s0, [sp, 164]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.4e+1
fcmp d1, d0
beq .L207
ldr s0, [sp, 56]
fcvt d1, s0
ldr s0, [sp, 164]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.5e+1
fcmp d1, d0
beq .L207
ldr s0, [sp, 44]
fcvt d1, s0
ldr s0, [sp, 164]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -3.0e+0
fcmp d1, d0
beq .L207
ldr s0, [sp, 32]
fcvt d1, s0
ldr s0, [sp, 164]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.7e+1
fcmp d1, d0
bne .L9
.L207:
ldr s0, [sp, 76]
fcvt d1, s0
ldr s0, [sp, 168]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.7e+1
fcmpe d1, d0
bls .L414
b .L9
.L414:
ldr s0, [sp, 36]
fcvt d1, s0
ldr s0, [sp, 168]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmpe d1, d0
bls .L415
b .L9
.L415:
ldr s0, [sp, 24]
fcvt d1, s0
ldr s0, [sp, 168]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmpe d1, d0
bls .L416
b .L9
.L416:
ldr s0, [sp, 68]
fcvt d1, s0
ldr s0, [sp, 168]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+1
fcmpe d1, d0
bls .L417
b .L9
.L417:
ldr s0, [sp, 64]
fcvt d1, s0
ldr s0, [sp, 168]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -3.0e+0
fcmpe d1, d0
bls .L418
b .L9
.L418:
ldr s0, [sp, 100]
fcvt d1, s0
ldr s0, [sp, 168]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -2.0e+0
fcmpe d1, d0
bls .L419
b .L9
.L419:
ldr s0, [sp, 48]
fcvt d1, s0
ldr s0, [sp, 168]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmpe d1, d0
bls .L420
b .L9
.L420:
ldr s0, [sp, 92]
fcvt d1, s0
ldr s0, [sp, 168]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.7e+1
fcmpe d1, d0
bls .L421
b .L9
.L421:
ldr s0, [sp, 44]
fcvt d1, s0
ldr s0, [sp, 168]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.5e+1
fcmpe d1, d0
bls .L422
b .L9
.L422:
ldr s0, [sp, 32]
fcvt d1, s0
ldr s0, [sp, 168]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -3.0e+0
fcmpe d1, d0
bls .L423
b .L9
.L423:
ldr s0, [sp, 76]
fcvt d1, s0
ldr s0, [sp, 168]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.7e+1
fcmp d1, d0
beq .L218
ldr s0, [sp, 36]
fcvt d1, s0
ldr s0, [sp, 168]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmp d1, d0
beq .L218
ldr s0, [sp, 24]
fcvt d1, s0
ldr s0, [sp, 168]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -5.0e+0
fcmp d1, d0
beq .L218
ldr s0, [sp, 68]
fcvt d1, s0
ldr s0, [sp, 168]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+1
fcmp d1, d0
beq .L218
ldr s0, [sp, 64]
fcvt d1, s0
ldr s0, [sp, 168]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -3.0e+0
fcmp d1, d0
beq .L218
ldr s0, [sp, 100]
fcvt d1, s0
ldr s0, [sp, 168]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -2.0e+0
fcmp d1, d0
beq .L218
ldr s0, [sp, 48]
fcvt d1, s0
ldr s0, [sp, 168]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmp d1, d0
beq .L218
ldr s0, [sp, 92]
fcvt d1, s0
ldr s0, [sp, 168]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.7e+1
fcmp d1, d0
beq .L218
ldr s0, [sp, 44]
fcvt d1, s0
ldr s0, [sp, 168]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.5e+1
fcmp d1, d0
beq .L218
ldr s0, [sp, 32]
fcvt d1, s0
ldr s0, [sp, 168]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -3.0e+0
fcmp d1, d0
bne .L9
.L218:
ldr s0, [sp, 80]
fcvt d1, s0
ldr s0, [sp, 128]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmpe d1, d0
bls .L424
b .L9
.L424:
ldr s0, [sp, 76]
fcvt d1, s0
ldr s0, [sp, 128]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+0
fcmpe d1, d0
bls .L425
b .L9
.L425:
ldr s0, [sp, 72]
fcvt d1, s0
ldr s0, [sp, 128]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -3.0e+0
fcmpe d1, d0
bls .L426
b .L9
.L426:
ldr s0, [sp, 68]
fcvt d1, s0
ldr s0, [sp, 128]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -3.0e+0
fcmpe d1, d0
bls .L427
b .L9
.L427:
ldr s0, [sp, 28]
fcvt d1, s0
ldr s0, [sp, 128]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -6.0e+0
fcmpe d1, d0
bls .L428
b .L9
.L428:
ldr s0, [sp, 64]
fcvt d1, s0
ldr s0, [sp, 128]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -4.0e+0
fcmpe d1, d0
bls .L429
b .L9
.L429:
ldr s0, [sp, 60]
fcvt d1, s0
ldr s0, [sp, 128]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.1e+1
fcmpe d1, d0
bls .L430
b .L9
.L430:
ldr s0, [sp, 52]
fcvt d1, s0
ldr s0, [sp, 128]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.5e+1
fcmpe d1, d0
bls .L431
b .L9
.L431:
ldr s0, [sp, 44]
fcvt d1, s0
ldr s0, [sp, 128]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.5e+1
fcmpe d1, d0
bls .L432
b .L9
.L432:
ldr s0, [sp, 32]
fcvt d1, s0
ldr s0, [sp, 128]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.8e+1
fcmpe d1, d0
bls .L433
b .L9
.L433:
ldr s0, [sp, 80]
fcvt d1, s0
ldr s0, [sp, 128]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.3e+1
fcmp d1, d0
beq .L229
ldr s0, [sp, 76]
fcvt d1, s0
ldr s0, [sp, 128]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.0e+0
fcmp d1, d0
beq .L229
ldr s0, [sp, 72]
fcvt d1, s0
ldr s0, [sp, 128]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -3.0e+0
fcmp d1, d0
beq .L229
ldr s0, [sp, 68]
fcvt d1, s0
ldr s0, [sp, 128]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -3.0e+0
fcmp d1, d0
beq .L229
ldr s0, [sp, 28]
fcvt d1, s0
ldr s0, [sp, 128]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -6.0e+0
fcmp d1, d0
beq .L229
ldr s0, [sp, 64]
fcvt d1, s0
ldr s0, [sp, 128]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -4.0e+0
fcmp d1, d0
beq .L229
ldr s0, [sp, 60]
fcvt d1, s0
ldr s0, [sp, 128]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.1e+1
fcmp d1, d0
beq .L229
ldr s0, [sp, 52]
fcvt d1, s0
ldr s0, [sp, 128]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.5e+1
fcmp d1, d0
beq .L229
ldr s0, [sp, 44]
fcvt d1, s0
ldr s0, [sp, 128]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.5e+1
fcmp d1, d0
beq .L229
ldr s0, [sp, 32]
fcvt d1, s0
ldr s0, [sp, 128]
fcvt d0, s0
fsub d1, d1, d0
fmov d0, -1.8e+1
fcmp d1, d0
bne .L9
.L229:
mov w0, 1
b .L230
.L9:
mov w0, 0
.L230:
str w0, [sp, 108]
ldr s0, [sp, 112]
str s0, [sp, 24]
ldr s0, [sp, 116]
str s0, [sp, 28]
ldr s0, [sp, 120]
str s0, [sp, 32]
ldr s0, [sp, 124]
str s0, [sp, 36]
ldr s0, [sp, 128]
str s0, [sp, 40]
ldr s0, [sp, 132]
str s0, [sp, 44]
ldr s0, [sp, 136]
str s0, [sp, 48]
ldr s0, [sp, 140]
str s0, [sp, 52]
ldr s0, [sp, 144]
str s0, [sp, 56]
ldr s0, [sp, 148]
str s0, [sp, 60]
ldr s0, [sp, 152]
str s0, [sp, 64]
ldr s0, [sp, 156]
str s0, [sp, 68]
ldr s0, [sp, 160]
str s0, [sp, 72]
ldr s0, [sp, 164]
str s0, [sp, 76]
ldr s0, [sp, 168]
str s0, [sp, 80]
ldr s0, [sp, 172]
str s0, [sp, 84]
ldr s0, [sp, 176]
str s0, [sp, 88]
ldr s0, [sp, 180]
str s0, [sp, 92]
ldr s0, [sp, 184]
str s0, [sp, 96]
ldr s0, [sp, 188]
str s0, [sp, 100]
.L8:
ldr w0, [sp, 104]
cmp w0, 0
blt .L231
ldr w0, [sp, 108]
cmp w0, 0
bne .L232
.L231:
mov w0, 0
ldp x29, x30, [sp], 192
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "%d"
.align 3
.LC1:
.string "%d\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
sub sp, sp, #2048
.cfi_def_cfa_offset 2048
stp x29, x30, [sp]
.cfi_offset 29, -2048
.cfi_offset 30, -2040
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 2040]
mov x1, 0
str wzr, [sp, 36]
add x0, sp, 24
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
b .L2
.L3:
add x1, sp, 40
ldrsw x0, [sp, 36]
lsl x0, x0, 2
add x0, x1, x0
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L2:
ldr w0, [sp, 24]
ldr w1, [sp, 36]
cmp w1, w0
blt .L3
ldr w1, [sp, 24]
add x3, sp, 32
add x2, sp, 28
add x0, sp, 40
bl minmax
ldr w1, [sp, 28]
ldr w0, [sp, 32]
add w0, w1, w0
mov w1, w0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 2040]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L5
bl __stack_chk_fail
.L5:
mov w0, w1
ldp x29, x30, [sp]
add sp, sp, 2048
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
.align 2
.global minmax
.type minmax, %function
minmax:
.LFB1:
.cfi_startproc
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, 24]
str w1, [sp, 20]
str x2, [sp, 8]
str x3, [sp]
str wzr, [sp, 44]
ldr x0, [sp, 24]
ldr w1, [x0]
ldr x0, [sp, 8]
str w1, [x0]
ldr x0, [sp, 24]
ldr w1, [x0]
ldr x0, [sp]
str w1, [x0]
b .L7
.L9:
ldrsw x0, [sp, 44]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w1, [x0]
ldr x0, [sp]
str w1, [x0]
.L8:
ldrsw x0, [sp, 44]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w1, [x0]
ldr x0, [sp]
ldr w0, [x0]
cmp w1, w0
bgt .L9
b .L10
.L11:
ldrsw x0, [sp, 44]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w1, [x0]
ldr x0, [sp, 8]
str w1, [x0]
.L10:
ldrsw x0, [sp, 44]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w1, [x0]
ldr x0, [sp, 8]
ldr w0, [x0]
cmp w1, w0
blt .L11
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L7:
ldr w1, [sp, 44]
ldr w0, [sp, 20]
cmp w1, w0
blt .L8
nop
nop
add sp, sp, 48
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size minmax, .-minmax
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
.L2:
bl f
b .L2
.cfi_endproc
.LFE6:
.size main, .-main
.section .rodata
.align 3
.LC0:
.string "%d\n"
.text
.align 2
.global f
.type f, %function
f:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
adrp x0, cnt.0
add x0, x0, :lo12:cnt.0
ldr w0, [x0]
add w1, w0, 1
adrp x0, cnt.0
add x0, x0, :lo12:cnt.0
str w1, [x0]
adrp x0, cnt.0
add x0, x0, :lo12:cnt.0
ldr w0, [x0]
mov w1, w0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
adrp x0, cnt.0
add x0, x0, :lo12:cnt.0
ldr w0, [x0]
cmp w0, 17
bne .L5
mov w0, 0
bl exit
.L5:
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size f, .-f
.local cnt.0
.comm cnt.0,4,4
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global crc16_table
.section .rodata
.align 3
.type crc16_table, %object
.size crc16_table, 512
crc16_table:
.hword 0
.hword 4129
.hword 8258
.hword 12387
.hword 16516
.hword 20645
.hword 24774
.hword 28903
.hword -32504
.hword -28375
.hword -24246
.hword -20117
.hword -15988
.hword -11859
.hword -7730
.hword -3601
.hword 4657
.hword 528
.hword 12915
.hword 8786
.hword 21173
.hword 17044
.hword 29431
.hword 25302
.hword -27847
.hword -31976
.hword -19589
.hword -23718
.hword -11331
.hword -15460
.hword -3073
.hword -7202
.hword 9314
.hword 13379
.hword 1056
.hword 5121
.hword 25830
.hword 29895
.hword 17572
.hword 21637
.hword -23190
.hword -19125
.hword -31448
.hword -27383
.hword -6674
.hword -2609
.hword -14932
.hword -10867
.hword 13907
.hword 9842
.hword 5649
.hword 1584
.hword 30423
.hword 26358
.hword 22165
.hword 18100
.hword -18597
.hword -22662
.hword -26855
.hword -30920
.hword -2081
.hword -6146
.hword -10339
.hword -14404
.hword 18628
.hword 22757
.hword 26758
.hword 30887
.hword 2112
.hword 6241
.hword 10242
.hword 14371
.hword -13876
.hword -9747
.hword -5746
.hword -1617
.hword -30392
.hword -26263
.hword -22262
.hword -18133
.hword 23285
.hword 19156
.hword 31415
.hword 27286
.hword 6769
.hword 2640
.hword 14899
.hword 10770
.hword -9219
.hword -13348
.hword -1089
.hword -5218
.hword -25735
.hword -29864
.hword -17605
.hword -21734
.hword 27814
.hword 31879
.hword 19684
.hword 23749
.hword 11298
.hword 15363
.hword 3168
.hword 7233
.hword -4690
.hword -625
.hword -12820
.hword -8755
.hword -21206
.hword -17141
.hword -29336
.hword -25271
.hword 32407
.hword 28342
.hword 24277
.hword 20212
.hword 15891
.hword 11826
.hword 7761
.hword 3696
.hword -97
.hword -4162
.hword -8227
.hword -12292
.hword -16613
.hword -20678
.hword -24743
.hword -28808
.hword -28280
.hword -32343
.hword -20022
.hword -24085
.hword -12020
.hword -16083
.hword -3762
.hword -7825
.hword 4224
.hword 161
.hword 12482
.hword 8419
.hword 20484
.hword 16421
.hword 28742
.hword 24679
.hword -31815
.hword -27752
.hword -23557
.hword -19494
.hword -15555
.hword -11492
.hword -7297
.hword -3234
.hword 689
.hword 4752
.hword 8947
.hword 13010
.hword 16949
.hword 21012
.hword 25207
.hword 29270
.hword -18966
.hword -23093
.hword -27224
.hword -31351
.hword -2706
.hword -6833
.hword -10964
.hword -15091
.hword 13538
.hword 9411
.hword 5280
.hword 1153
.hword 29798
.hword 25671
.hword 21540
.hword 17413
.hword -22565
.hword -18438
.hword -30823
.hword -26696
.hword -6305
.hword -2178
.hword -14563
.hword -10436
.hword 9939
.hword 14066
.hword 1681
.hword 5808
.hword 26199
.hword 30326
.hword 17941
.hword 22068
.hword -9908
.hword -13971
.hword -1778
.hword -5841
.hword -26168
.hword -30231
.hword -18038
.hword -22101
.hword 22596
.hword 18533
.hword 30726
.hword 26663
.hword 6336
.hword 2273
.hword 14466
.hword 10403
.hword -13443
.hword -9380
.hword -5313
.hword -1250
.hword -29703
.hword -25640
.hword -21573
.hword -17510
.hword 19061
.hword 23124
.hword 27191
.hword 31254
.hword 2801
.hword 6864
.hword 10931
.hword 14994
.hword -722
.hword -4849
.hword -8852
.hword -12979
.hword -16982
.hword -21109
.hword -25112
.hword -29239
.hword 31782
.hword 27655
.hword 23652
.hword 19525
.hword 15522
.hword 11395
.hword 7392
.hword 3265
.hword -4321
.hword -194
.hword -12451
.hword -8324
.hword -20581
.hword -16454
.hword -28711
.hword -24584
.hword 28183
.hword 32310
.hword 20053
.hword 24180
.hword 11923
.hword 16050
.hword 3793
.hword 7920
.text
.align 2
.global CALC_CRC1a
.type CALC_CRC1a, %function
CALC_CRC1a:
.LFB0:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
strh w0, [sp, 14]
strb w1, [sp, 13]
mov w0, 8
str w0, [sp, 28]
ldrb w0, [sp, 13]
and w0, w0, 65535
ubfiz w0, w0, 8, 8
strh w0, [sp, 26]
b .L2
.L5:
ldrh w0, [sp, 14]
lsl w0, w0, 1
sxth w1, w0
ldrh w2, [sp, 14]
ldrh w0, [sp, 26]
eor w0, w2, w0
and w0, w0, 65535
sxth w0, w0
cmp w0, 0
bge .L3
mov w0, 4129
b .L4
.L3:
mov w0, 0
.L4:
eor w0, w0, w1
sxth w0, w0
strh w0, [sp, 14]
ldrh w0, [sp, 26]
ubfiz w0, w0, 1, 15
strh w0, [sp, 26]
.L2:
ldr w0, [sp, 28]
sub w1, w0, #1
str w1, [sp, 28]
cmp w0, 0
bne .L5
ldrh w0, [sp, 14]
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size CALC_CRC1a, .-CALC_CRC1a
.align 2
.global calc_crc
.type calc_crc, %function
calc_crc:
.LFB1:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
strh w0, [sp, 14]
str x1, [sp]
str w2, [sp, 8]
b .L8
.L9:
ldrh w0, [sp, 14]
lsl w0, w0, 8
sxth w1, w0
ldrh w0, [sp, 14]
lsr w0, w0, 8
and w0, w0, 65535
mov w3, w0
ldr x0, [sp]
add x2, x0, 1
str x2, [sp]
ldrb w0, [x0]
eor w2, w3, w0
adrp x0, crc16_table
add x0, x0, :lo12:crc16_table
sxtw x2, w2
ldrh w0, [x0, x2, lsl 1]
sxth w0, w0
eor w0, w1, w0
sxth w0, w0
strh w0, [sp, 14]
.L8:
ldr w0, [sp, 8]
sub w1, w0, #1
str w1, [sp, 8]
cmp w0, 0
bne .L9
ldrh w0, [sp, 14]
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size calc_crc, .-calc_crc
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Informe NOme: "
.align 3
.LC1:
.string "%[^\n]s"
.align 3
.LC2:
.string "Nome :%s\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 40]
mov x1, 0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
add x0, sp, 24
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
add x0, sp, 24
mov x1, x0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 40]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L3
bl __stack_chk_fail
.L3:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global getNextCard
.type getNextCard, %function
getNextCard:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -96]!
.cfi_def_cfa_offset 96
.cfi_offset 29, -96
.cfi_offset 30, -88
mov x29, sp
str x0, [sp, 24]
str w1, [sp, 20]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 88]
mov x1, 0
adrp x0, .LC1
add x1, x0, :lo12:.LC1
add x0, sp, 64
ldrh w2, [x1]
strh w2, [x0]
ldrb w1, [x1, 2]
strb w1, [x0, 2]
adrp x0, .LC2
add x1, x0, :lo12:.LC2
add x0, sp, 72
ldrh w2, [x1]
strh w2, [x0]
ldrb w1, [x1, 2]
strb w1, [x0, 2]
adrp x0, .LC0
add x1, x0, :lo12:.LC0
add x0, sp, 48
ldr x2, [x1]
str x2, [x0]
ldr w1, [x1, 8]
str w1, [x0, 8]
adrp x0, .LC3
add x1, x0, :lo12:.LC3
add x0, sp, 80
ldrh w2, [x1]
strh w2, [x0]
ldrb w1, [x1, 2]
strb w1, [x0, 2]
str wzr, [sp, 40]
str wzr, [sp, 44]
mov x0, 0
bl time
bl srand
str wzr, [sp, 32]
b .L2
.L3:
bl rand
mov w1, w0
mov w0, 21846
movk w0, 0x5555, lsl 16
smull x0, w1, w0
lsr x2, x0, 32
asr w0, w1, 31
sub w2, w2, w0
mov w0, w2
lsl w0, w0, 1
add w0, w0, w2
sub w2, w1, w0
ldrsw x1, [sp, 32]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 24]
add x0, x0, x1
sxtw x1, w2
add x2, sp, 64
ldrb w1, [x2, x1]
strb w1, [x0]
bl rand
mov w1, w0
mov w0, 21846
movk w0, 0x5555, lsl 16
smull x0, w1, w0
lsr x2, x0, 32
asr w0, w1, 31
sub w2, w2, w0
mov w0, w2
lsl w0, w0, 1
add w0, w0, w2
sub w2, w1, w0
ldrsw x1, [sp, 32]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 24]
add x0, x0, x1
sxtw x1, w2
add x2, sp, 72
ldrb w1, [x2, x1]
strb w1, [x0, 1]
bl rand
mov w1, w0
mov w0, 21846
movk w0, 0x5555, lsl 16
smull x0, w1, w0
lsr x2, x0, 32
asr w0, w1, 31
sub w2, w2, w0
mov w0, w2
lsl w0, w0, 1
add w0, w0, w2
sub w2, w1, w0
ldrsw x1, [sp, 32]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 24]
add x0, x0, x1
sxtw x1, w2
lsl x1, x1, 2
add x2, sp, 48
ldr w1, [x2, x1]
str w1, [x0, 4]
bl rand
mov w1, w0
mov w0, 21846
movk w0, 0x5555, lsl 16
smull x0, w1, w0
lsr x2, x0, 32
asr w0, w1, 31
sub w2, w2, w0
mov w0, w2
lsl w0, w0, 1
add w0, w0, w2
sub w2, w1, w0
ldrsw x1, [sp, 32]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 24]
add x0, x0, x1
sxtw x1, w2
add x2, sp, 80
ldrb w1, [x2, x1]
strb w1, [x0, 8]
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L2:
ldr w1, [sp, 32]
ldr w0, [sp, 20]
cmp w1, w0
blt .L3
str wzr, [sp, 32]
b .L4
.L8:
str wzr, [sp, 36]
b .L5
.L7:
ldr w1, [sp, 32]
ldr w0, [sp, 36]
cmp w1, w0
beq .L6
ldrsw x1, [sp, 32]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 24]
add x0, x0, x1
ldrb w2, [x0]
ldrsw x1, [sp, 36]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 24]
add x0, x0, x1
ldrb w0, [x0]
cmp w2, w0
bne .L6
ldrsw x1, [sp, 32]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 24]
add x0, x0, x1
ldrb w2, [x0, 1]
ldrsw x1, [sp, 36]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 24]
add x0, x0, x1
ldrb w0, [x0, 1]
cmp w2, w0
bne .L6
ldrsw x1, [sp, 32]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 24]
add x0, x0, x1
ldr w2, [x0, 4]
ldrsw x1, [sp, 36]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 24]
add x0, x0, x1
ldr w0, [x0, 4]
cmp w2, w0
bne .L6
ldrsw x1, [sp, 32]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 24]
add x0, x0, x1
ldrb w2, [x0, 8]
ldrsw x1, [sp, 36]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 24]
add x0, x0, x1
ldrb w0, [x0, 8]
cmp w2, w0
bne .L6
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L6:
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L5:
ldr w1, [sp, 36]
ldr w0, [sp, 20]
cmp w1, w0
blt .L7
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L4:
ldr w1, [sp, 32]
ldr w0, [sp, 20]
cmp w1, w0
blt .L8
ldr w0, [sp, 44]
cmp w0, 0
ble .L9
mov w0, 1
str w0, [sp, 40]
str wzr, [sp, 44]
b .L11
.L9:
ldr w0, [sp, 44]
cmp w0, 0
bne .L11
str wzr, [sp, 40]
b .L11
.L20:
str wzr, [sp, 32]
b .L12
.L13:
bl rand
mov w1, w0
mov w0, 21846
movk w0, 0x5555, lsl 16
smull x0, w1, w0
lsr x2, x0, 32
asr w0, w1, 31
sub w2, w2, w0
mov w0, w2
lsl w0, w0, 1
add w0, w0, w2
sub w2, w1, w0
ldrsw x1, [sp, 32]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 24]
add x0, x0, x1
sxtw x1, w2
add x2, sp, 64
ldrb w1, [x2, x1]
strb w1, [x0]
bl rand
mov w1, w0
mov w0, 21846
movk w0, 0x5555, lsl 16
smull x0, w1, w0
lsr x2, x0, 32
asr w0, w1, 31
sub w2, w2, w0
mov w0, w2
lsl w0, w0, 1
add w0, w0, w2
sub w2, w1, w0
ldrsw x1, [sp, 32]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 24]
add x0, x0, x1
sxtw x1, w2
add x2, sp, 72
ldrb w1, [x2, x1]
strb w1, [x0, 1]
bl rand
mov w1, w0
mov w0, 21846
movk w0, 0x5555, lsl 16
smull x0, w1, w0
lsr x2, x0, 32
asr w0, w1, 31
sub w2, w2, w0
mov w0, w2
lsl w0, w0, 1
add w0, w0, w2
sub w2, w1, w0
ldrsw x1, [sp, 32]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 24]
add x0, x0, x1
sxtw x1, w2
lsl x1, x1, 2
add x2, sp, 48
ldr w1, [x2, x1]
str w1, [x0, 4]
bl rand
mov w1, w0
mov w0, 21846
movk w0, 0x5555, lsl 16
smull x0, w1, w0
lsr x2, x0, 32
asr w0, w1, 31
sub w2, w2, w0
mov w0, w2
lsl w0, w0, 1
add w0, w0, w2
sub w2, w1, w0
ldrsw x1, [sp, 32]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 24]
add x0, x0, x1
sxtw x1, w2
add x2, sp, 80
ldrb w1, [x2, x1]
strb w1, [x0, 8]
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L12:
ldr w1, [sp, 32]
ldr w0, [sp, 20]
cmp w1, w0
blt .L13
str wzr, [sp, 32]
b .L14
.L18:
str wzr, [sp, 36]
b .L15
.L17:
ldr w1, [sp, 32]
ldr w0, [sp, 36]
cmp w1, w0
beq .L16
ldrsw x1, [sp, 32]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 24]
add x0, x0, x1
ldrb w2, [x0]
ldrsw x1, [sp, 36]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 24]
add x0, x0, x1
ldrb w0, [x0]
cmp w2, w0
bne .L16
ldrsw x1, [sp, 32]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 24]
add x0, x0, x1
ldrb w2, [x0, 1]
ldrsw x1, [sp, 36]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 24]
add x0, x0, x1
ldrb w0, [x0, 1]
cmp w2, w0
bne .L16
ldrsw x1, [sp, 32]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 24]
add x0, x0, x1
ldr w2, [x0, 4]
ldrsw x1, [sp, 36]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 24]
add x0, x0, x1
ldr w0, [x0, 4]
cmp w2, w0
bne .L16
ldrsw x1, [sp, 32]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 24]
add x0, x0, x1
ldrb w2, [x0, 8]
ldrsw x1, [sp, 36]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 24]
add x0, x0, x1
ldrb w0, [x0, 8]
cmp w2, w0
bne .L16
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L16:
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L15:
ldr w1, [sp, 36]
ldr w0, [sp, 20]
cmp w1, w0
blt .L17
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L14:
ldr w1, [sp, 32]
ldr w0, [sp, 20]
cmp w1, w0
blt .L18
ldr w0, [sp, 44]
cmp w0, 0
ble .L19
mov w0, 1
str w0, [sp, 40]
str wzr, [sp, 44]
b .L11
.L19:
ldr w0, [sp, 44]
cmp w0, 0
bne .L11
str wzr, [sp, 40]
.L11:
ldr w0, [sp, 40]
cmp w0, 0
bne .L20
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 88]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L21
bl __stack_chk_fail
.L21:
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size getNextCard, .-getNextCard
.section .rodata
.align 3
.LC1:
.ascii "rbg"
.align 3
.LC2:
.ascii "ctr"
.align 3
.LC0:
.word 1
.word 2
.word 3
.align 3
.LC3:
.ascii "bhe"
.text
.section .rodata
.align 3
.LC4:
.string "[%c, %c, %d, %c] \t"
.align 3
.LC5:
.string "\n-- Same Color -- "
.align 3
.LC6:
.string "\n-- Different Color -- "
.align 3
.LC7:
.string "\n-- Same Shape -- "
.align 3
.LC8:
.string "\n-- Different Shape -- "
.align 3
.LC9:
.string "\n-- Same Number -- "
.align 3
.LC10:
.string "\n-- Different number -- "
.align 3
.LC11:
.string "\n-- Same Texture -- "
.align 3
.LC12:
.string "\n-- Different Texture -- "
.align 3
.LC13:
.string "\n--> NOT SET "
.align 3
.LC14:
.string "\n--> SET "
.text
.align 2
.global CheckSET
.type CheckSET, %function
CheckSET:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -112]!
.cfi_def_cfa_offset 112
.cfi_offset 29, -112
.cfi_offset 30, -104
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -96
str w0, [sp, 76]
str w1, [sp, 72]
str x2, [sp, 64]
str x3, [sp, 56]
str x4, [sp, 48]
str w5, [sp, 44]
ldr w19, [sp, 72]
sxtw x0, w19
sub x0, x0, #1
str x0, [sp, 104]
sxtw x0, w19
mov x12, x0
mov x13, 0
mov x0, x12
mov x1, x13
lsr x2, x0, 63
lsl x9, x1, 1
orr x9, x2, x9
lsl x8, x0, 1
mov x0, x8
mov x1, x9
mov x2, x12
adds x2, x0, x2
mov x3, x13
adc x0, x1, x3
mov x10, x2
mov x11, x0
lsr x0, x10, 59
lsl x7, x11, 5
orr x7, x0, x7
lsl x6, x10, 5
mov w0, -1
str w0, [sp, 88]
mov w0, -1
str w0, [sp, 92]
mov w0, -1
str w0, [sp, 96]
mov w0, -1
str w0, [sp, 100]
str wzr, [sp, 84]
b .L23
.L24:
ldrsw x0, [sp, 84]
lsl x0, x0, 2
ldr x1, [sp, 56]
add x0, x1, x0
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x2, x0, x1
ldrsw x0, [sp, 84]
lsl x0, x0, 2
ldr x1, [sp, 48]
add x0, x1, x0
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldrb w0, [x0]
mov w5, w0
ldrsw x0, [sp, 84]
lsl x0, x0, 2
ldr x1, [sp, 56]
add x0, x1, x0
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x2, x0, x1
ldrsw x0, [sp, 84]
lsl x0, x0, 2
ldr x1, [sp, 48]
add x0, x1, x0
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldrb w0, [x0, 1]
mov w6, w0
ldrsw x0, [sp, 84]
lsl x0, x0, 2
ldr x1, [sp, 56]
add x0, x1, x0
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x2, x0, x1
ldrsw x0, [sp, 84]
lsl x0, x0, 2
ldr x1, [sp, 48]
add x0, x1, x0
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldr w3, [x0, 4]
ldrsw x0, [sp, 84]
lsl x0, x0, 2
ldr x1, [sp, 56]
add x0, x1, x0
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x2, x0, x1
ldrsw x0, [sp, 84]
lsl x0, x0, 2
ldr x1, [sp, 48]
add x0, x1, x0
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldrb w0, [x0, 8]
mov w4, w0
mov w2, w6
mov w1, w5
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
ldr w0, [sp, 84]
add w0, w0, 1
str w0, [sp, 84]
.L23:
ldr w1, [sp, 84]
ldr w0, [sp, 44]
cmp w1, w0
blt .L24
ldr x0, [sp, 56]
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x2, x0, x1
ldr x0, [sp, 48]
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldrb w2, [x0]
ldr x0, [sp, 56]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x3, x0, x1
ldr x0, [sp, 48]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x3, x0
ldrb w0, [x0]
cmp w2, w0
bne .L25
ldr x0, [sp, 56]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x2, x0, x1
ldr x0, [sp, 48]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldrb w2, [x0]
ldr x0, [sp, 56]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x3, x0, x1
ldr x0, [sp, 48]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x3, x0
ldrb w0, [x0]
cmp w2, w0
bne .L25
ldr x0, [sp, 56]
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x2, x0, x1
ldr x0, [sp, 48]
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldrb w2, [x0]
ldr x0, [sp, 56]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x3, x0, x1
ldr x0, [sp, 48]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x3, x0
ldrb w0, [x0]
cmp w2, w0
bne .L25
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl puts
str wzr, [sp, 88]
.L25:
ldr x0, [sp, 56]
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x2, x0, x1
ldr x0, [sp, 48]
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldrb w2, [x0]
ldr x0, [sp, 56]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x3, x0, x1
ldr x0, [sp, 48]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x3, x0
ldrb w0, [x0]
cmp w2, w0
beq .L26
ldr x0, [sp, 56]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x2, x0, x1
ldr x0, [sp, 48]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldrb w2, [x0]
ldr x0, [sp, 56]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x3, x0, x1
ldr x0, [sp, 48]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x3, x0
ldrb w0, [x0]
cmp w2, w0
beq .L26
ldr x0, [sp, 56]
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x2, x0, x1
ldr x0, [sp, 48]
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldrb w2, [x0]
ldr x0, [sp, 56]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x3, x0, x1
ldr x0, [sp, 48]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x3, x0
ldrb w0, [x0]
cmp w2, w0
beq .L26
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl puts
mov w0, 1
str w0, [sp, 88]
.L26:
ldr x0, [sp, 56]
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x2, x0, x1
ldr x0, [sp, 48]
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldrb w2, [x0, 1]
ldr x0, [sp, 56]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x3, x0, x1
ldr x0, [sp, 48]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x3, x0
ldrb w0, [x0, 1]
cmp w2, w0
bne .L27
ldr x0, [sp, 56]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x2, x0, x1
ldr x0, [sp, 48]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldrb w2, [x0, 1]
ldr x0, [sp, 56]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x3, x0, x1
ldr x0, [sp, 48]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x3, x0
ldrb w0, [x0, 1]
cmp w2, w0
bne .L27
ldr x0, [sp, 56]
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x2, x0, x1
ldr x0, [sp, 48]
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldrb w2, [x0, 1]
ldr x0, [sp, 56]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x3, x0, x1
ldr x0, [sp, 48]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x3, x0
ldrb w0, [x0, 1]
cmp w2, w0
bne .L27
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl puts
str wzr, [sp, 92]
.L27:
ldr x0, [sp, 56]
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x2, x0, x1
ldr x0, [sp, 48]
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldrb w2, [x0, 1]
ldr x0, [sp, 56]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x3, x0, x1
ldr x0, [sp, 48]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x3, x0
ldrb w0, [x0, 1]
cmp w2, w0
beq .L28
ldr x0, [sp, 56]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x2, x0, x1
ldr x0, [sp, 48]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldrb w2, [x0, 1]
ldr x0, [sp, 56]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x3, x0, x1
ldr x0, [sp, 48]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x3, x0
ldrb w0, [x0, 1]
cmp w2, w0
beq .L28
ldr x0, [sp, 56]
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x2, x0, x1
ldr x0, [sp, 48]
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldrb w2, [x0, 1]
ldr x0, [sp, 56]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x3, x0, x1
ldr x0, [sp, 48]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x3, x0
ldrb w0, [x0, 1]
cmp w2, w0
beq .L28
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl puts
mov w0, 1
str w0, [sp, 92]
.L28:
ldr x0, [sp, 56]
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x2, x0, x1
ldr x0, [sp, 48]
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldr w2, [x0, 4]
ldr x0, [sp, 56]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x3, x0, x1
ldr x0, [sp, 48]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x3, x0
ldr w0, [x0, 4]
cmp w2, w0
bne .L29
ldr x0, [sp, 56]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x2, x0, x1
ldr x0, [sp, 48]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldr w2, [x0, 4]
ldr x0, [sp, 56]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x3, x0, x1
ldr x0, [sp, 48]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x3, x0
ldr w0, [x0, 4]
cmp w2, w0
bne .L29
ldr x0, [sp, 56]
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x2, x0, x1
ldr x0, [sp, 48]
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldr w2, [x0, 4]
ldr x0, [sp, 56]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x3, x0, x1
ldr x0, [sp, 48]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x3, x0
ldr w0, [x0, 4]
cmp w2, w0
bne .L29
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl puts
str wzr, [sp, 96]
.L29:
ldr x0, [sp, 56]
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x2, x0, x1
ldr x0, [sp, 48]
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldr w2, [x0, 4]
ldr x0, [sp, 56]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x3, x0, x1
ldr x0, [sp, 48]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x3, x0
ldr w0, [x0, 4]
cmp w2, w0
beq .L30
ldr x0, [sp, 56]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x2, x0, x1
ldr x0, [sp, 48]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldr w2, [x0, 4]
ldr x0, [sp, 56]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x3, x0, x1
ldr x0, [sp, 48]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x3, x0
ldr w0, [x0, 4]
cmp w2, w0
beq .L30
ldr x0, [sp, 56]
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x2, x0, x1
ldr x0, [sp, 48]
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldr w2, [x0, 4]
ldr x0, [sp, 56]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x3, x0, x1
ldr x0, [sp, 48]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x3, x0
ldr w0, [x0, 4]
cmp w2, w0
beq .L30
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl puts
mov w0, 1
str w0, [sp, 96]
.L30:
ldr x0, [sp, 56]
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x2, x0, x1
ldr x0, [sp, 48]
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldrb w2, [x0, 8]
ldr x0, [sp, 56]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x3, x0, x1
ldr x0, [sp, 48]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x3, x0
ldrb w0, [x0, 8]
cmp w2, w0
bne .L31
ldr x0, [sp, 56]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x2, x0, x1
ldr x0, [sp, 48]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldrb w2, [x0, 8]
ldr x0, [sp, 56]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x3, x0, x1
ldr x0, [sp, 48]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x3, x0
ldrb w0, [x0, 8]
cmp w2, w0
bne .L31
ldr x0, [sp, 56]
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x2, x0, x1
ldr x0, [sp, 48]
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldrb w2, [x0, 8]
ldr x0, [sp, 56]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x3, x0, x1
ldr x0, [sp, 48]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x3, x0
ldrb w0, [x0, 8]
cmp w2, w0
bne .L31
adrp x0, .LC11
add x0, x0, :lo12:.LC11
bl puts
str wzr, [sp, 100]
.L31:
ldr x0, [sp, 56]
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x2, x0, x1
ldr x0, [sp, 48]
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldrb w2, [x0, 8]
ldr x0, [sp, 56]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x3, x0, x1
ldr x0, [sp, 48]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x3, x0
ldrb w0, [x0, 8]
cmp w2, w0
beq .L32
ldr x0, [sp, 56]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x2, x0, x1
ldr x0, [sp, 48]
add x0, x0, 4
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldrb w2, [x0, 8]
ldr x0, [sp, 56]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x3, x0, x1
ldr x0, [sp, 48]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x3, x0
ldrb w0, [x0, 8]
cmp w2, w0
beq .L32
ldr x0, [sp, 56]
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x2, x0, x1
ldr x0, [sp, 48]
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldrb w2, [x0, 8]
ldr x0, [sp, 56]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 64]
add x3, x0, x1
ldr x0, [sp, 48]
add x0, x0, 8
ldr w0, [x0]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x3, x0
ldrb w0, [x0, 8]
cmp w2, w0
beq .L32
adrp x0, .LC12
add x0, x0, :lo12:.LC12
bl puts
mov w0, 1
str w0, [sp, 100]
.L32:
ldr w0, [sp, 88]
cmn w0, #1
beq .L33
ldr w0, [sp, 92]
cmn w0, #1
beq .L33
ldr w0, [sp, 96]
cmn w0, #1
beq .L33
ldr w0, [sp, 100]
cmn w0, #1
bne .L34
.L33:
adrp x0, .LC13
add x0, x0, :lo12:.LC13
bl puts
mov w0, 0
b .L22
.L34:
ldr w0, [sp, 88]
cmp w0, 0
bne .L36
ldr w0, [sp, 92]
cmp w0, 0
bne .L36
ldr w0, [sp, 96]
cmp w0, 0
bne .L36
ldr w0, [sp, 100]
cmp w0, 0
beq .L37
.L36:
ldr w0, [sp, 88]
cmp w0, 0
bne .L38
ldr w0, [sp, 92]
cmp w0, 0
bne .L38
ldr w0, [sp, 96]
cmp w0, 0
bne .L38
ldr w0, [sp, 100]
cmp w0, 1
beq .L37
.L38:
ldr w0, [sp, 88]
cmp w0, 0
bne .L39
ldr w0, [sp, 92]
cmp w0, 0
bne .L39
ldr w0, [sp, 96]
cmp w0, 1
bne .L39
ldr w0, [sp, 100]
cmp w0, 0
beq .L37
.L39:
ldr w0, [sp, 88]
cmp w0, 0
bne .L40
ldr w0, [sp, 92]
cmp w0, 0
bne .L40
ldr w0, [sp, 96]
cmp w0, 1
bne .L40
ldr w0, [sp, 100]
cmp w0, 1
beq .L37
.L40:
ldr w0, [sp, 88]
cmp w0, 0
bne .L41
ldr w0, [sp, 92]
cmp w0, 1
bne .L41
ldr w0, [sp, 96]
cmp w0, 0
bne .L41
ldr w0, [sp, 100]
cmp w0, 0
beq .L37
.L41:
ldr w0, [sp, 88]
cmp w0, 0
bne .L42
ldr w0, [sp, 92]
cmp w0, 1
bne .L42
ldr w0, [sp, 96]
cmp w0, 0
bne .L42
ldr w0, [sp, 100]
cmp w0, 1
beq .L37
.L42:
ldr w0, [sp, 88]
cmp w0, 0
bne .L43
ldr w0, [sp, 92]
cmp w0, 1
bne .L43
ldr w0, [sp, 96]
cmp w0, 1
bne .L43
ldr w0, [sp, 100]
cmp w0, 0
beq .L37
.L43:
ldr w0, [sp, 88]
cmp w0, 0
bne .L44
ldr w0, [sp, 92]
cmp w0, 1
bne .L44
ldr w0, [sp, 96]
cmp w0, 1
bne .L44
ldr w0, [sp, 100]
cmp w0, 1
beq .L37
.L44:
ldr w0, [sp, 88]
cmp w0, 1
bne .L45
ldr w0, [sp, 92]
cmp w0, 0
bne .L45
ldr w0, [sp, 96]
cmp w0, 0
bne .L45
ldr w0, [sp, 100]
cmp w0, 0
beq .L37
.L45:
ldr w0, [sp, 88]
cmp w0, 1
bne .L46
ldr w0, [sp, 92]
cmp w0, 0
bne .L46
ldr w0, [sp, 96]
cmp w0, 0
bne .L46
ldr w0, [sp, 100]
cmp w0, 1
beq .L37
.L46:
ldr w0, [sp, 88]
cmp w0, 1
bne .L47
ldr w0, [sp, 92]
cmp w0, 0
bne .L47
ldr w0, [sp, 96]
cmp w0, 1
bne .L47
ldr w0, [sp, 100]
cmp w0, 0
beq .L37
.L47:
ldr w0, [sp, 88]
cmp w0, 1
bne .L48
ldr w0, [sp, 92]
cmp w0, 0
bne .L48
ldr w0, [sp, 96]
cmp w0, 1
bne .L48
ldr w0, [sp, 100]
cmp w0, 1
beq .L37
.L48:
ldr w0, [sp, 88]
cmp w0, 1
bne .L49
ldr w0, [sp, 92]
cmp w0, 1
bne .L49
ldr w0, [sp, 96]
cmp w0, 0
bne .L49
ldr w0, [sp, 100]
cmp w0, 0
beq .L37
.L49:
ldr w0, [sp, 88]
cmp w0, 1
bne .L50
ldr w0, [sp, 92]
cmp w0, 1
bne .L50
ldr w0, [sp, 96]
cmp w0, 0
bne .L50
ldr w0, [sp, 100]
cmp w0, 1
beq .L37
.L50:
ldr w0, [sp, 88]
cmp w0, 1
bne .L51
ldr w0, [sp, 92]
cmp w0, 1
bne .L51
ldr w0, [sp, 96]
cmp w0, 1
bne .L51
ldr w0, [sp, 100]
cmp w0, 0
beq .L37
.L51:
ldr w0, [sp, 88]
cmp w0, 1
bne .L52
ldr w0, [sp, 92]
cmp w0, 1
bne .L52
ldr w0, [sp, 96]
cmp w0, 1
bne .L52
ldr w0, [sp, 100]
cmp w0, 1
bne .L52
.L37:
adrp x0, .LC14
add x0, x0, :lo12:.LC14
bl puts
mov w0, 1
b .L22
.L52:
.L22:
ldr x19, [sp, 16]
ldp x29, x30, [sp], 112
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size CheckSET, .-CheckSET
.align 2
.global MakeCardsGrid
.type MakeCardsGrid, %function
MakeCardsGrid:
.LFB8:
.cfi_startproc
sub sp, sp, #64
.cfi_def_cfa_offset 64
str x0, [sp, 24]
str w1, [sp, 20]
str w2, [sp, 16]
str x3, [sp, 8]
ldr w2, [sp, 16]
sxtw x0, w2
sub x0, x0, #1
str x0, [sp, 56]
sxtw x0, w2
mov x10, x0
mov x11, 0
mov x0, x10
mov x1, x11
lsr x3, x0, 63
lsl x7, x1, 1
orr x7, x3, x7
lsl x6, x0, 1
mov x0, x6
mov x1, x7
mov x3, x10
adds x3, x0, x3
mov x6, x11
adc x0, x1, x6
mov x8, x3
mov x9, x0
lsr x0, x8, 59
lsl x5, x9, 5
orr x5, x0, x5
lsl x4, x8, 5
str wzr, [sp, 52]
str wzr, [sp, 44]
b .L54
.L57:
str wzr, [sp, 48]
b .L55
.L56:
ldrsw x1, [sp, 52]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 24]
add x4, x0, x1
ldrsw x1, [sp, 44]
sxtw x0, w2
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 8]
add x3, x0, x1
ldrsw x1, [sp, 48]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x3, x0
mov x1, x4
ldr x3, [x1]
str x3, [x0]
ldr w1, [x1, 8]
str w1, [x0, 8]
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
.L55:
ldr w1, [sp, 48]
ldr w0, [sp, 16]
cmp w1, w0
blt .L56
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L54:
ldr w1, [sp, 44]
ldr w0, [sp, 20]
cmp w1, w0
blt .L57
nop
nop
add sp, sp, 64
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size MakeCardsGrid, .-MakeCardsGrid
.align 2
.global PrintGrid
.type PrintGrid, %function
PrintGrid:
.LFB9:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -48
str w0, [sp, 44]
str w1, [sp, 40]
str x2, [sp, 32]
ldr w19, [sp, 40]
sxtw x0, w19
sub x0, x0, #1
str x0, [sp, 56]
sxtw x0, w19
mov x10, x0
mov x11, 0
mov x0, x10
mov x1, x11
lsr x2, x0, 63
lsl x7, x1, 1
orr x7, x2, x7
lsl x6, x0, 1
mov x0, x6
mov x1, x7
mov x2, x10
adds x2, x0, x2
mov x3, x11
adc x0, x1, x3
mov x8, x2
mov x9, x0
lsr x0, x8, 59
lsl x5, x9, 5
orr x5, x0, x5
lsl x4, x8, 5
str wzr, [sp, 48]
b .L59
.L62:
str wzr, [sp, 52]
b .L60
.L61:
ldrsw x1, [sp, 48]
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 32]
add x2, x0, x1
ldrsw x1, [sp, 52]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldrb w0, [x0]
mov w5, w0
ldrsw x1, [sp, 48]
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 32]
add x2, x0, x1
ldrsw x1, [sp, 52]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldrb w0, [x0, 1]
mov w6, w0
ldrsw x1, [sp, 48]
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 32]
add x2, x0, x1
ldrsw x1, [sp, 52]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldr w3, [x0, 4]
ldrsw x1, [sp, 48]
sxtw x0, w19
mul x1, x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 32]
add x2, x0, x1
ldrsw x1, [sp, 52]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
ldrb w0, [x0, 8]
mov w4, w0
mov w2, w6
mov w1, w5
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
.L60:
ldr w1, [sp, 52]
ldr w0, [sp, 40]
cmp w1, w0
blt .L61
mov w0, 10
bl putchar
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
.L59:
ldr w1, [sp, 48]
ldr w0, [sp, 44]
cmp w1, w0
blt .L62
nop
nop
ldr x19, [sp, 16]
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size PrintGrid, .-PrintGrid
.section .rodata
.align 3
.LC15:
.string "======================== "
.align 3
.LC16:
.string "|| SET GAME || "
.align 3
.LC18:
.string "a"
.align 3
.LC20:
.string "g"
.align 3
.LC22:
.string "p"
.align 3
.LC23:
.string "\n---------------------------------------------------------------"
.align 3
.LC24:
.string "| Epilekste to id {a, g, p} tou paikti pou 8elete na paiksei "
.align 3
.LC25:
.string "| Epilekste -0- gia eksodo "
.align 3
.LC26:
.string "---------------------------------------------------------------"
.align 3
.LC27:
.string "\nYour choice is : "
.align 3
.LC28:
.string " %c"
.align 3
.LC29:
.string "Dwste syntetagmenes twn triwn kartwn pou 8elete na epileksete\n"
.align 3
.LC30:
.string "x[%d] : "
.align 3
.LC31:
.string "%d"
.align 3
.LC32:
.string "y[%d] : "
.align 3
.LC33:
.string " **************** WINNER **************** "
.align 3
.LC34:
.string " O nikitis einai o %s \n"
.align 3
.LC35:
.string " **************************************** "
.align 3
.LC36:
.string "\n ========== GAME RESULTS ========== "
.align 3
.LC37:
.string " - Name: %s Score: %d \n"
.align 3
.LC38:
.string " - Name: %s Score: %d \n"
.align 3
.LC39:
.string " - Name: %s Score: %d \n"
.align 3
.LC40:
.string " ================================== "
.text
.align 2
.global main
.type main, %function
main:
.LFB10:
.cfi_startproc
stp x29, x30, [sp, -464]!
.cfi_def_cfa_offset 464
.cfi_offset 29, -464
.cfi_offset 30, -456
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 456]
mov x1, 0
adrp x0, .LC15
add x0, x0, :lo12:.LC15
bl puts
adrp x0, .LC16
add x0, x0, :lo12:.LC16
bl puts
adrp x0, .LC15
add x0, x0, :lo12:.LC15
bl puts
adrp x0, .LC17
add x1, x0, :lo12:.LC17
add x0, sp, 72
ldr x2, [x1]
str x2, [x0]
ldr x1, [x1, 7]
str x1, [x0, 7]
strh wzr, [sp, 87]
str wzr, [sp, 92]
adrp x0, .LC18
add x0, x0, :lo12:.LC18
and w0, w0, 255
strb w0, [sp, 96]
adrp x0, .LC19
add x0, x0, :lo12:.LC19
add x2, sp, 104
mov x3, x0
ldp x0, x1, [x3]
stp x0, x1, [x2]
ldrb w0, [x3, 16]
strb w0, [x2, 16]
str wzr, [sp, 124]
adrp x0, .LC20
add x0, x0, :lo12:.LC20
and w0, w0, 255
strb w0, [sp, 128]
adrp x0, .LC21
add x1, x0, :lo12:.LC21
add x0, sp, 136
ldr x2, [x1]
str x2, [x0]
ldr x1, [x1, 6]
str x1, [x0, 6]
strh wzr, [sp, 150]
strb wzr, [sp, 152]
str wzr, [sp, 156]
adrp x0, .LC22
add x0, x0, :lo12:.LC22
and w0, w0, 255
strb w0, [sp, 160]
add x0, sp, 168
mov w1, 12
bl getNextCard
add x1, sp, 312
add x0, sp, 168
mov x3, x1
mov w2, 4
mov w1, 3
bl MakeCardsGrid
add x0, sp, 312
mov x2, x0
mov w1, 4
mov w0, 3
bl PrintGrid
.L97:
adrp x0, .LC23
add x0, x0, :lo12:.LC23
bl puts
adrp x0, .LC24
add x0, x0, :lo12:.LC24
bl puts
adrp x0, .LC25
add x0, x0, :lo12:.LC25
bl puts
adrp x0, .LC26
add x0, x0, :lo12:.LC26
bl puts
adrp x0, .LC27
add x0, x0, :lo12:.LC27
bl printf
add x0, sp, 31
mov x1, x0
adrp x0, .LC28
add x0, x0, :lo12:.LC28
bl __isoc99_scanf
ldrb w0, [sp, 31]
cmp w0, 97
bne .L64
adrp x0, .LC29
add x0, x0, :lo12:.LC29
bl puts
str wzr, [sp, 32]
b .L65
.L70:
ldr w1, [sp, 32]
adrp x0, .LC30
add x0, x0, :lo12:.LC30
bl printf
add x1, sp, 40
ldrsw x0, [sp, 32]
lsl x0, x0, 2
add x0, x1, x0
mov x1, x0
adrp x0, .LC31
add x0, x0, :lo12:.LC31
bl __isoc99_scanf
b .L66
.L67:
ldr w1, [sp, 32]
adrp x0, .LC30
add x0, x0, :lo12:.LC30
bl printf
add x1, sp, 40
ldrsw x0, [sp, 32]
lsl x0, x0, 2
add x0, x1, x0
mov x1, x0
adrp x0, .LC31
add x0, x0, :lo12:.LC31
bl __isoc99_scanf
.L66:
ldrsw x0, [sp, 32]
lsl x0, x0, 2
add x1, sp, 40
ldr w0, [x1, x0]
cmp w0, 0
blt .L67
ldrsw x0, [sp, 32]
lsl x0, x0, 2
add x1, sp, 40
ldr w0, [x1, x0]
cmp w0, 2
bgt .L67
ldr w1, [sp, 32]
adrp x0, .LC32
add x0, x0, :lo12:.LC32
bl printf
add x1, sp, 56
ldrsw x0, [sp, 32]
lsl x0, x0, 2
add x0, x1, x0
mov x1, x0
adrp x0, .LC31
add x0, x0, :lo12:.LC31
bl __isoc99_scanf
b .L68
.L69:
ldr w1, [sp, 32]
adrp x0, .LC32
add x0, x0, :lo12:.LC32
bl printf
add x1, sp, 56
ldrsw x0, [sp, 32]
lsl x0, x0, 2
add x0, x1, x0
mov x1, x0
adrp x0, .LC31
add x0, x0, :lo12:.LC31
bl __isoc99_scanf
.L68:
ldrsw x0, [sp, 32]
lsl x0, x0, 2
add x1, sp, 56
ldr w0, [x1, x0]
cmp w0, 0
blt .L69
ldrsw x0, [sp, 32]
lsl x0, x0, 2
add x1, sp, 56
ldr w0, [x1, x0]
cmp w0, 3
bgt .L69
mov w0, 10
bl putchar
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L65:
ldr w0, [sp, 32]
cmp w0, 2
ble .L70
add x2, sp, 56
add x1, sp, 40
add x0, sp, 312
mov w5, 3
mov x4, x2
mov x3, x1
mov x2, x0
mov w1, 4
mov w0, 3
bl CheckSET
str w0, [sp, 36]
ldr w0, [sp, 36]
cmp w0, 0
beq .L71
ldr w0, [sp, 92]
add w0, w0, 2
str w0, [sp, 92]
ldr w0, [sp, 92]
cmp w0, 9
ble .L72
adrp x0, .LC33
add x0, x0, :lo12:.LC33
bl puts
add x0, sp, 72
mov x1, x0
adrp x0, .LC34
add x0, x0, :lo12:.LC34
bl printf
adrp x0, .LC35
add x0, x0, :lo12:.LC35
bl puts
b .L73
.L72:
add x0, sp, 168
mov w1, 12
bl getNextCard
add x1, sp, 312
add x0, sp, 168
mov x3, x1
mov w2, 4
mov w1, 3
bl MakeCardsGrid
add x0, sp, 312
mov x2, x0
mov w1, 4
mov w0, 3
bl PrintGrid
b .L97
.L71:
ldr w0, [sp, 92]
sub w0, w0, #1
str w0, [sp, 92]
ldr w0, [sp, 92]
cmp w0, 0
bge .L75
str wzr, [sp, 92]
.L75:
add x0, sp, 312
mov x2, x0
mov w1, 4
mov w0, 3
bl PrintGrid
b .L97
.L64:
ldrb w0, [sp, 31]
cmp w0, 103
bne .L76
adrp x0, .LC29
add x0, x0, :lo12:.LC29
bl puts
str wzr, [sp, 32]
b .L77
.L82:
ldr w1, [sp, 32]
adrp x0, .LC30
add x0, x0, :lo12:.LC30
bl printf
add x1, sp, 40
ldrsw x0, [sp, 32]
lsl x0, x0, 2
add x0, x1, x0
mov x1, x0
adrp x0, .LC31
add x0, x0, :lo12:.LC31
bl __isoc99_scanf
b .L78
.L79:
ldr w1, [sp, 32]
adrp x0, .LC30
add x0, x0, :lo12:.LC30
bl printf
add x1, sp, 40
ldrsw x0, [sp, 32]
lsl x0, x0, 2
add x0, x1, x0
mov x1, x0
adrp x0, .LC31
add x0, x0, :lo12:.LC31
bl __isoc99_scanf
.L78:
ldrsw x0, [sp, 32]
lsl x0, x0, 2
add x1, sp, 40
ldr w0, [x1, x0]
cmp w0, 0
blt .L79
ldrsw x0, [sp, 32]
lsl x0, x0, 2
add x1, sp, 40
ldr w0, [x1, x0]
cmp w0, 2
bgt .L79
ldr w1, [sp, 32]
adrp x0, .LC32
add x0, x0, :lo12:.LC32
bl printf
add x1, sp, 56
ldrsw x0, [sp, 32]
lsl x0, x0, 2
add x0, x1, x0
mov x1, x0
adrp x0, .LC31
add x0, x0, :lo12:.LC31
bl __isoc99_scanf
b .L80
.L81:
ldr w1, [sp, 32]
adrp x0, .LC32
add x0, x0, :lo12:.LC32
bl printf
add x1, sp, 56
ldrsw x0, [sp, 32]
lsl x0, x0, 2
add x0, x1, x0
mov x1, x0
adrp x0, .LC31
add x0, x0, :lo12:.LC31
bl __isoc99_scanf
.L80:
ldrsw x0, [sp, 32]
lsl x0, x0, 2
add x1, sp, 56
ldr w0, [x1, x0]
cmp w0, 0
blt .L81
ldrsw x0, [sp, 32]
lsl x0, x0, 2
add x1, sp, 56
ldr w0, [x1, x0]
cmp w0, 3
bgt .L81
mov w0, 10
bl putchar
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L77:
ldr w0, [sp, 32]
cmp w0, 2
ble .L82
add x2, sp, 56
add x1, sp, 40
add x0, sp, 312
mov w5, 3
mov x4, x2
mov x3, x1
mov x2, x0
mov w1, 4
mov w0, 3
bl CheckSET
str w0, [sp, 36]
ldr w0, [sp, 36]
cmp w0, 0
beq .L83
ldr w0, [sp, 124]
add w0, w0, 2
str w0, [sp, 124]
ldr w0, [sp, 124]
cmp w0, 9
ble .L84
adrp x0, .LC33
add x0, x0, :lo12:.LC33
bl puts
add x0, sp, 104
mov x1, x0
adrp x0, .LC34
add x0, x0, :lo12:.LC34
bl printf
adrp x0, .LC35
add x0, x0, :lo12:.LC35
bl puts
b .L73
.L84:
add x0, sp, 168
mov w1, 12
bl getNextCard
add x1, sp, 312
add x0, sp, 168
mov x3, x1
mov w2, 4
mov w1, 3
bl MakeCardsGrid
add x0, sp, 312
mov x2, x0
mov w1, 4
mov w0, 3
bl PrintGrid
b .L97
.L83:
ldr w0, [sp, 124]
sub w0, w0, #1
str w0, [sp, 124]
ldr w0, [sp, 124]
cmp w0, 0
bge .L85
str wzr, [sp, 124]
.L85:
add x0, sp, 312
mov x2, x0
mov w1, 4
mov w0, 3
bl PrintGrid
b .L97
.L76:
ldrb w0, [sp, 31]
cmp w0, 112
bne .L86
adrp x0, .LC29
add x0, x0, :lo12:.LC29
bl puts
str wzr, [sp, 32]
b .L87
.L92:
ldr w1, [sp, 32]
adrp x0, .LC30
add x0, x0, :lo12:.LC30
bl printf
add x1, sp, 40
ldrsw x0, [sp, 32]
lsl x0, x0, 2
add x0, x1, x0
mov x1, x0
adrp x0, .LC31
add x0, x0, :lo12:.LC31
bl __isoc99_scanf
b .L88
.L89:
ldr w1, [sp, 32]
adrp x0, .LC30
add x0, x0, :lo12:.LC30
bl printf
add x1, sp, 40
ldrsw x0, [sp, 32]
lsl x0, x0, 2
add x0, x1, x0
mov x1, x0
adrp x0, .LC31
add x0, x0, :lo12:.LC31
bl __isoc99_scanf
.L88:
ldrsw x0, [sp, 32]
lsl x0, x0, 2
add x1, sp, 40
ldr w0, [x1, x0]
cmp w0, 0
blt .L89
ldrsw x0, [sp, 32]
lsl x0, x0, 2
add x1, sp, 40
ldr w0, [x1, x0]
cmp w0, 2
bgt .L89
ldr w1, [sp, 32]
adrp x0, .LC32
add x0, x0, :lo12:.LC32
bl printf
add x1, sp, 56
ldrsw x0, [sp, 32]
lsl x0, x0, 2
add x0, x1, x0
mov x1, x0
adrp x0, .LC31
add x0, x0, :lo12:.LC31
bl __isoc99_scanf
b .L90
.L91:
ldr w1, [sp, 32]
adrp x0, .LC32
add x0, x0, :lo12:.LC32
bl printf
add x1, sp, 56
ldrsw x0, [sp, 32]
lsl x0, x0, 2
add x0, x1, x0
mov x1, x0
adrp x0, .LC31
add x0, x0, :lo12:.LC31
bl __isoc99_scanf
.L90:
ldrsw x0, [sp, 32]
lsl x0, x0, 2
add x1, sp, 56
ldr w0, [x1, x0]
cmp w0, 0
blt .L91
ldrsw x0, [sp, 32]
lsl x0, x0, 2
add x1, sp, 56
ldr w0, [x1, x0]
cmp w0, 3
bgt .L91
mov w0, 10
bl putchar
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L87:
ldr w0, [sp, 32]
cmp w0, 2
ble .L92
add x2, sp, 56
add x1, sp, 40
add x0, sp, 312
mov w5, 3
mov x4, x2
mov x3, x1
mov x2, x0
mov w1, 4
mov w0, 3
bl CheckSET
str w0, [sp, 36]
ldr w0, [sp, 36]
cmp w0, 0
beq .L93
ldr w0, [sp, 156]
add w0, w0, 2
str w0, [sp, 156]
ldr w0, [sp, 156]
cmp w0, 9
ble .L94
adrp x0, .LC33
add x0, x0, :lo12:.LC33
bl puts
add x0, sp, 136
mov x1, x0
adrp x0, .LC34
add x0, x0, :lo12:.LC34
bl printf
adrp x0, .LC35
add x0, x0, :lo12:.LC35
bl puts
b .L73
.L94:
add x0, sp, 168
mov w1, 12
bl getNextCard
add x1, sp, 312
add x0, sp, 168
mov x3, x1
mov w2, 4
mov w1, 3
bl MakeCardsGrid
add x0, sp, 312
mov x2, x0
mov w1, 4
mov w0, 3
bl PrintGrid
b .L97
.L93:
ldr w0, [sp, 156]
sub w0, w0, #1
str w0, [sp, 156]
ldr w0, [sp, 156]
cmp w0, 0
bge .L95
str wzr, [sp, 156]
.L95:
add x0, sp, 312
mov x2, x0
mov w1, 4
mov w0, 3
bl PrintGrid
b .L97
.L86:
ldrb w0, [sp, 31]
cmp w0, 48
bne .L96
adrp x0, .LC36
add x0, x0, :lo12:.LC36
bl puts
ldr w1, [sp, 92]
add x0, sp, 72
mov w2, w1
mov x1, x0
adrp x0, .LC37
add x0, x0, :lo12:.LC37
bl printf
ldr w1, [sp, 124]
add x0, sp, 104
mov w2, w1
mov x1, x0
adrp x0, .LC38
add x0, x0, :lo12:.LC38
bl printf
ldr w1, [sp, 156]
add x0, sp, 136
mov w2, w1
mov x1, x0
adrp x0, .LC39
add x0, x0, :lo12:.LC39
bl printf
adrp x0, .LC40
add x0, x0, :lo12:.LC40
bl puts
b .L73
.L96:
add x0, sp, 168
mov w1, 12
bl getNextCard
add x1, sp, 312
add x0, sp, 168
mov x3, x1
mov w2, 4
mov w1, 3
bl MakeCardsGrid
add x0, sp, 312
mov x2, x0
mov w1, 4
mov w0, 3
bl PrintGrid
b .L97
.L73:
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 456]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L98
bl __stack_chk_fail
.L98:
ldp x29, x30, [sp], 464
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size main, .-main
.section .rodata
.align 3
.LC17:
.string "Marina Andreou"
.zero 2
.align 3
.LC19:
.string "Kostas Grammenos"
.align 3
.LC21:
.string "Maria Perdika"
.zero 3
.text
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "<br><br>--------<pre>Directory listing for %s:\n\n"
.align 3
.LC1:
.string "No such directory\n</pre>"
.align 3
.LC2:
.string "%s/\n"
.align 3
.LC3:
.string "%s\n"
.align 3
.LC4:
.string "</pre>"
.text
.align 2
.type print_dirlist, %function
print_dirlist:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x3, [x0]
ldr x2, [sp, 24]
adrp x0, .LC0
add x1, x0, :lo12:.LC0
mov x0, x3
bl fprintf
ldr x0, [sp, 24]
bl opendir
str x0, [sp, 32]
ldr x0, [sp, 32]
cmp x0, 0
bne .L4
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 24
mov x1, 1
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl fwrite
mov w0, -1
b .L3
.L6:
ldr x0, [sp, 40]
ldrb w0, [x0, 18]
cmp w0, 4
bne .L5
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x3, [x0]
ldr x0, [sp, 40]
add x0, x0, 19
mov x2, x0
adrp x0, .LC2
add x1, x0, :lo12:.LC2
mov x0, x3
bl fprintf
b .L4
.L5:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x3, [x0]
ldr x0, [sp, 40]
add x0, x0, 19
mov x2, x0
adrp x0, .LC3
add x1, x0, :lo12:.LC3
mov x0, x3
bl fprintf
.L4:
ldr x0, [sp, 32]
bl readdir
str x0, [sp, 40]
ldr x0, [sp, 40]
cmp x0, 0
bne .L6
ldr x0, [sp, 32]
bl closedir
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 6
mov x1, 1
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl fwrite
mov w0, 0
.L3:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size print_dirlist, .-print_dirlist
.section .rodata
.align 3
.LC5:
.string "w"
.align 3
.LC6:
.string "<br><br>--------<pre>Writing %s to file %s:\n\n"
.align 3
.LC7:
.string "Write failed\n"
.align 3
.LC8:
.string "Write succeeded\n"
.text
.align 2
.type write_to_file, %function
write_to_file:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -48
str x0, [sp, 40]
str x1, [sp, 32]
str xzr, [sp, 48]
adrp x0, .LC5
add x1, x0, :lo12:.LC5
ldr x0, [sp, 40]
bl fopen
str x0, [sp, 56]
ldr x0, [sp, 56]
cmp x0, 0
bne .L8
mov w0, -1
b .L9
.L8:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x4, [x0]
ldr x3, [sp, 40]
ldr x2, [sp, 32]
adrp x0, .LC6
add x1, x0, :lo12:.LC6
mov x0, x4
bl fprintf
ldr x0, [sp, 32]
bl strlen
ldr x3, [sp, 56]
mov x2, 1
mov x1, x0
ldr x0, [sp, 32]
bl fwrite
mov x19, x0
ldr x0, [sp, 32]
bl strlen
cmp x19, x0
bcs .L10
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 13
mov x1, 1
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl fwrite
b .L11
.L10:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 16
mov x1, 1
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl fwrite
.L11:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 6
mov x1, 1
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl fwrite
ldr x0, [sp, 56]
bl fclose
mov w0, 0
.L9:
ldr x19, [sp, 16]
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size write_to_file, .-write_to_file
.section .rodata
.align 3
.LC9:
.string "r"
.align 3
.LC10:
.string "No such file or directory\n</pre>"
.align 3
.LC11:
.string "<br><br>--------<pre>Contents of file %s:\n\n"
.text
.align 2
.type cat_file, %function
cat_file:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 24]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 56]
mov x1, 0
str xzr, [sp, 32]
adrp x0, .LC9
add x1, x0, :lo12:.LC9
ldr x0, [sp, 24]
bl fopen
str x0, [sp, 48]
ldr x0, [sp, 48]
cmp x0, 0
bne .L13
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 32
mov x1, 1
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl fwrite
mov w0, -1
b .L17
.L13:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x3, [x0]
ldr x2, [sp, 24]
adrp x0, .LC11
add x1, x0, :lo12:.LC11
mov x0, x3
bl fprintf
b .L15
.L16:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x1, [x0]
ldr x0, [sp, 32]
bl fputs
.L15:
add x1, sp, 40
add x0, sp, 32
ldr x2, [sp, 48]
bl getline
cmn x0, #1
bne .L16
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 6
mov x1, 1
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl fwrite
ldr x0, [sp, 32]
bl free
ldr x0, [sp, 48]
bl fclose
mov w0, 0
.L17:
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 56]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L18
bl __stack_chk_fail
.L18:
mov w0, w1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size cat_file, .-cat_file
.align 2
.global replace_special_chars
.type replace_special_chars, %function
replace_special_chars:
.LFB9:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
bl strlen
add w0, w0, 1
str w0, [sp, 44]
str wzr, [sp, 36]
str wzr, [sp, 40]
b .L20
.L25:
ldrsw x0, [sp, 36]
ldr x1, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 37
bne .L21
ldr w0, [sp, 36]
add w0, w0, 2
str w0, [sp, 36]
ldr w1, [sp, 36]
ldr w0, [sp, 44]
cmp w1, w0
bge .L26
ldrsw x0, [sp, 40]
ldr x1, [sp, 24]
add x0, x1, x0
mov w1, 47
strb w1, [x0]
b .L24
.L21:
ldrsw x0, [sp, 36]
ldr x1, [sp, 24]
add x1, x1, x0
ldrsw x0, [sp, 40]
ldr x2, [sp, 24]
add x0, x2, x0
ldrb w1, [x1]
strb w1, [x0]
.L24:
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
ldr w0, [sp, 40]
add w0, w0, 1
str w0, [sp, 40]
.L20:
ldr w1, [sp, 36]
ldr w0, [sp, 44]
cmp w1, w0
blt .L25
b .L23
.L26:
nop
.L23:
ldrsw x0, [sp, 40]
ldr x1, [sp, 24]
add x0, x1, x0
strb wzr, [x0]
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size replace_special_chars, .-replace_special_chars
.section .rodata
.align 3
.LC12:
.string "Content-type: text/html\n\n"
.align 3
.LC13:
.string "<html><head><title>Cat-a-file</title></head>"
.align 3
.LC14:
.string "<body>"
.align 3
.LC15:
.string "<fieldset>"
.align 3
.LC16:
.string "<legend>Enter a (proc/debugfs) file to 'cat' or write</legend>"
.align 3
.LC17:
.string "<form action=catafile?catfile method=post>"
.align 3
.LC18:
.string " <table>"
.align 3
.LC19:
.string " <tr>"
.align 3
.LC20:
.string " <td align=right>File or directory:</td>"
.align 3
.LC21:
.string " <td align=left><input type=text name=filename size=75></td>"
.align 3
.LC22:
.string " </tr>"
.align 3
.LC23:
.string " <td align=right>Write this to file (or leave blank):</td>"
.align 3
.LC24:
.string " <td align=left><input type=text name=writeval size=75></td>"
.align 3
.LC25:
.string " <input type=submit value='Submit'>"
.align 3
.LC26:
.string "</fieldset>"
.align 3
.LC27:
.string "</form>"
.align 3
.LC28:
.string "CONTENT_LENGTH"
.align 3
.LC29:
.string "&"
.align 3
.LC30:
.string "="
.align 3
.LC31:
.string "filename"
.align 3
.LC32:
.string "writeval"
.align 3
.LC33:
.string "</body></html>\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB10:
.cfi_startproc
stp x29, x30, [sp, -240]!
.cfi_def_cfa_offset 240
.cfi_offset 29, -240
.cfi_offset 30, -232
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 232]
mov x1, 0
str xzr, [sp, 56]
str xzr, [sp, 64]
str xzr, [sp, 72]
str xzr, [sp, 80]
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 25
mov x1, 1
adrp x0, .LC12
add x0, x0, :lo12:.LC12
bl fwrite
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 44
mov x1, 1
adrp x0, .LC13
add x0, x0, :lo12:.LC13
bl fwrite
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 6
mov x1, 1
adrp x0, .LC14
add x0, x0, :lo12:.LC14
bl fwrite
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 10
mov x1, 1
adrp x0, .LC15
add x0, x0, :lo12:.LC15
bl fwrite
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 62
mov x1, 1
adrp x0, .LC16
add x0, x0, :lo12:.LC16
bl fwrite
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 42
mov x1, 1
adrp x0, .LC17
add x0, x0, :lo12:.LC17
bl fwrite
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 8
mov x1, 1
adrp x0, .LC18
add x0, x0, :lo12:.LC18
bl fwrite
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 6
mov x1, 1
adrp x0, .LC19
add x0, x0, :lo12:.LC19
bl fwrite
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 42
mov x1, 1
adrp x0, .LC20
add x0, x0, :lo12:.LC20
bl fwrite
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 62
mov x1, 1
adrp x0, .LC21
add x0, x0, :lo12:.LC21
bl fwrite
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 7
mov x1, 1
adrp x0, .LC22
add x0, x0, :lo12:.LC22
bl fwrite
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 6
mov x1, 1
adrp x0, .LC19
add x0, x0, :lo12:.LC19
bl fwrite
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 60
mov x1, 1
adrp x0, .LC23
add x0, x0, :lo12:.LC23
bl fwrite
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 62
mov x1, 1
adrp x0, .LC24
add x0, x0, :lo12:.LC24
bl fwrite
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 7
mov x1, 1
adrp x0, .LC22
add x0, x0, :lo12:.LC22
bl fwrite
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 6
mov x1, 1
adrp x0, .LC19
add x0, x0, :lo12:.LC19
bl fwrite
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 8
mov x1, 1
adrp x0, .LC18
add x0, x0, :lo12:.LC18
bl fwrite
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 35
mov x1, 1
adrp x0, .LC25
add x0, x0, :lo12:.LC25
bl fwrite
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 11
mov x1, 1
adrp x0, .LC26
add x0, x0, :lo12:.LC26
bl fwrite
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 7
mov x1, 1
adrp x0, .LC27
add x0, x0, :lo12:.LC27
bl fwrite
adrp x0, .LC28
add x0, x0, :lo12:.LC28
bl getenv
str x0, [sp, 88]
ldr x0, [sp, 88]
cmp x0, 0
beq .L28
mov w2, 10
mov x1, 0
ldr x0, [sp, 88]
bl strtol
str x0, [sp, 72]
ldr x0, [sp, 80]
cmp x0, 0
bne .L40
ldr x0, [sp, 72]
cmp x0, 0
beq .L40
.L28:
ldr x0, [sp, 72]
add x0, x0, 1
bl malloc
str x0, [sp, 48]
ldr x0, [sp, 72]
add w0, w0, 1
mov w1, w0
adrp x0, :got:stdin
ldr x0, [x0, #:got_lo12:stdin]
ldr x0, [x0]
mov x2, x0
ldr x0, [sp, 48]
bl fgets
cmp x0, 0
beq .L41
ldr x0, [sp, 48]
str x0, [sp, 40]
add x2, sp, 40
adrp x0, .LC29
add x1, x0, :lo12:.LC29
mov x0, x2
bl strsep
str x0, [sp, 32]
ldr x0, [sp, 32]
cmp x0, 0
beq .L42
add x2, sp, 32
adrp x0, .LC30
add x1, x0, :lo12:.LC30
mov x0, x2
bl strsep
str x0, [sp, 96]
adrp x0, .LC31
add x1, x0, :lo12:.LC31
ldr x0, [sp, 96]
bl strcmp
cmp w0, 0
bne .L33
ldr x0, [sp, 32]
cmp x0, 0
beq .L43
ldr x0, [sp, 32]
str x0, [sp, 56]
.L33:
ldr x0, [sp, 40]
str x0, [sp, 32]
add x2, sp, 32
adrp x0, .LC30
add x1, x0, :lo12:.LC30
mov x0, x2
bl strsep
str x0, [sp, 96]
adrp x0, .LC32
add x1, x0, :lo12:.LC32
ldr x0, [sp, 96]
bl strcmp
cmp w0, 0
bne .L35
ldr x0, [sp, 32]
cmp x0, 0
beq .L35
ldr x0, [sp, 32]
str x0, [sp, 64]
.L35:
ldr x0, [sp, 56]
bl replace_special_chars
add x0, sp, 104
mov x1, x0
ldr x0, [sp, 56]
bl stat
ldr w0, [sp, 120]
and w0, w0, 61440
cmp w0, 16384
bne .L36
ldr x0, [sp, 56]
bl print_dirlist
b .L30
.L36:
ldr x0, [sp, 64]
cmp x0, 0
beq .L37
ldr x0, [sp, 64]
ldrb w0, [x0]
cmp w0, 0
beq .L37
ldr x1, [sp, 64]
ldr x0, [sp, 56]
bl write_to_file
b .L30
.L37:
ldr x0, [sp, 56]
bl cat_file
b .L30
.L40:
nop
b .L30
.L41:
nop
b .L30
.L42:
nop
b .L30
.L43:
nop
.L30:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 15
mov x1, 1
adrp x0, .LC33
add x0, x0, :lo12:.LC33
bl fwrite
ldr x0, [sp, 48]
bl free
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 232]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L39
bl __stack_chk_fail
.L39:
mov w0, w1
ldp x29, x30, [sp], 240
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Digite um numero de 0 a 9: "
.align 3
.LC1:
.string "%c/n"
.align 3
.LC2:
.string "Digite uma letra: "
.align 3
.LC3:
.string "%c"
.align 3
.LC4:
.string "o numero %c \303\251 v\303\241lido\n"
.align 3
.LC5:
.string "Digite um n\303\272mero v\303\241lido"
.align 3
.LC6:
.string "a letra %c \303\251 v\303\241lida\n"
.align 3
.LC7:
.string "Maiuscula : %c \n\n"
.align 3
.LC8:
.string "Minuscula: %c \n\n"
.align 3
.LC9:
.string "Voc\303\252 n\303\243o digitou uma letra!!!"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 40]
mov x1, 0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
add x0, sp, 38
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
adrp x0, :got:stdin
ldr x0, [x0, #:got_lo12:stdin]
ldr x0, [x0]
mov x1, 0
bl setbuf
bl __ctype_b_loc
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
add x0, sp, 39
mov x1, x0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl __isoc99_scanf
bl __ctype_b_loc
bl __ctype_b_loc
ldr x1, [x0]
ldrb w0, [sp, 38]
and x0, x0, 255
lsl x0, x0, 1
add x0, x1, x0
ldrh w0, [x0]
and w0, w0, 2048
cmp w0, 0
ble .L2
ldrb w0, [sp, 38]
mov w1, w0
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
b .L3
.L2:
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl puts
.L3:
bl __ctype_b_loc
ldr x1, [x0]
ldrb w0, [sp, 39]
and x0, x0, 255
lsl x0, x0, 1
add x0, x1, x0
ldrh w0, [x0]
and w0, w0, 1024
cmp w0, 0
ble .L4
ldrb w0, [sp, 39]
mov w1, w0
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl printf
ldrb w0, [sp, 39]
bl toupper
and w0, w0, 255
strb w0, [sp, 39]
ldrb w0, [sp, 39]
mov w1, w0
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl printf
ldrb w0, [sp, 39]
bl tolower
and w0, w0, 255
strb w0, [sp, 39]
ldrb w0, [sp, 39]
mov w1, w0
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl printf
b .L5
.L4:
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl puts
.L5:
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 40]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L7
bl __stack_chk_fail
.L7:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC3:
.string "Usage:"
.align 3
.LC4:
.string "Create a user and change permissions:"
.align 3
.LC5:
.string " secureops -c <username> [file] ..."
.align 3
.LC6:
.string "Restart apache:"
.align 3
.LC7:
.string " secureops -r"
.align 3
.LC8:
.string "Delete a user from the system:"
.align 3
.LC9:
.string " secureops -d <username>"
.align 3
.LC10:
.string "Creates a new RabbitMQ user/vhost and writes to stdout the password:"
.align 3
.LC11:
.string " secureops -e <username>"
.align 3
.LC12:
.string "Delete a RabbitMQ user and vhost:"
.align 3
.LC13:
.string " secureops -b <username>"
.align 3
.LC14:
.string "Supervisord operations:"
.align 3
.LC15:
.string " secureops -s <username> <projectdir> <operation>"
.align 3
.LC16:
.string " where <operation> is one of:"
.align 3
.LC17:
.string " -S to start supervisord"
.align 3
.LC18:
.string " -T to send SIGTERM to supervisord"
.align 3
.LC19:
.string " -H to send SIGHUP to supervisord"
.align 3
.LC20:
.string "End all processes. (Sends SIGTERM, waits 15 seconds, and sends SIGKILL)"
.align 3
.LC21:
.string " secureops -k <username>"
.align 3
.LC22:
.string "Changes to the given user and runs 'django-admin.py syncdb' and that's it"
.align 3
.LC23:
.string "(You probably want to set the DJANGO_SETTINGS_FILE env var before calling"
.align 3
.LC24:
.string " secureops -y <username> <path to environment python> <path to django-admin.py>"
.align 3
.LC25:
.string "Run pip install on a requirements file"
.align 3
.LC26:
.string " secureops -i <username> <path to pip> <path to requirements file>"
.text
.align 2
.global help
.type help, %function
help:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl puts
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl puts
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl puts
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl puts
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl puts
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl puts
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl puts
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl puts
adrp x0, .LC11
add x0, x0, :lo12:.LC11
bl puts
adrp x0, .LC12
add x0, x0, :lo12:.LC12
bl puts
adrp x0, .LC13
add x0, x0, :lo12:.LC13
bl puts
adrp x0, .LC14
add x0, x0, :lo12:.LC14
bl puts
adrp x0, .LC15
add x0, x0, :lo12:.LC15
bl puts
adrp x0, .LC16
add x0, x0, :lo12:.LC16
bl puts
adrp x0, .LC17
add x0, x0, :lo12:.LC17
bl puts
adrp x0, .LC18
add x0, x0, :lo12:.LC18
bl puts
adrp x0, .LC19
add x0, x0, :lo12:.LC19
bl puts
adrp x0, .LC20
add x0, x0, :lo12:.LC20
bl puts
adrp x0, .LC21
add x0, x0, :lo12:.LC21
bl puts
adrp x0, .LC22
add x0, x0, :lo12:.LC22
bl puts
adrp x0, .LC23
add x0, x0, :lo12:.LC23
bl puts
adrp x0, .LC24
add x0, x0, :lo12:.LC24
bl puts
adrp x0, .LC25
add x0, x0, :lo12:.LC25
bl puts
adrp x0, .LC26
add x0, x0, :lo12:.LC26
bl puts
mov w0, 1
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size help, .-help
.section .rodata
.align 3
.LC27:
.string "r"
.align 3
.LC28:
.string "/dev/urandom"
.align 3
.LC29:
.string "EOF on read from urandom?\n"
.text
.align 2
.global getpwd
.type getpwd, %function
getpwd:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 24]
str w1, [sp, 20]
adrp x0, .LC27
add x1, x0, :lo12:.LC27
adrp x0, .LC28
add x0, x0, :lo12:.LC28
bl fopen
str x0, [sp, 56]
str wzr, [sp, 48]
b .L4
.L9:
ldr x0, [sp, 56]
bl fgetc
str w0, [sp, 52]
ldr w0, [sp, 52]
cmn w0, #1
bne .L5
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 26
mov x1, 1
adrp x0, .LC29
add x0, x0, :lo12:.LC29
bl fwrite
mov w0, 1
bl exit
.L5:
ldr w0, [sp, 52]
strb w0, [sp, 47]
ldrb w0, [sp, 47]
cmp w0, 47
bls .L6
ldrb w0, [sp, 47]
cmp w0, 57
bls .L7
.L6:
ldrb w0, [sp, 47]
cmp w0, 64
bls .L8
ldrb w0, [sp, 47]
cmp w0, 90
bls .L7
.L8:
ldrb w0, [sp, 47]
cmp w0, 96
bls .L4
ldrb w0, [sp, 47]
cmp w0, 122
bhi .L4
.L7:
ldrsw x0, [sp, 48]
ldr x1, [sp, 24]
add x0, x1, x0
ldrb w1, [sp, 47]
strb w1, [x0]
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
.L4:
ldr w1, [sp, 48]
ldr w0, [sp, 20]
cmp w1, w0
blt .L9
ldr x0, [sp, 56]
bl fclose
nop
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size getpwd, .-getpwd
.section .rodata
.align 3
.LC30:
.string "Bad username"
.align 3
.LC31:
.string "opus"
.align 3
.LC32:
.string "Won't change to that user"
.text
.align 2
.global check_username
.type check_username, %function
check_username:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
bl strlen
cmp x0, 4
bhi .L11
adrp x0, .LC30
add x0, x0, :lo12:.LC30
bl printf
mov w0, 1
b .L12
.L11:
mov x2, 4
adrp x0, .LC31
add x1, x0, :lo12:.LC31
ldr x0, [sp, 24]
bl strncmp
cmp w0, 0
beq .L13
adrp x0, .LC32
add x0, x0, :lo12:.LC32
bl printf
mov w0, 1
b .L12
.L13:
mov w0, 0
.L12:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size check_username, .-check_username
.align 2
.global find_nogroup
.type find_nogroup, %function
find_nogroup:
.LFB9:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 56]
mov x1, 0
adrp x0, .LC33
add x0, x0, :lo12:.LC33
add x2, sp, 32
mov x3, x0
ldp x0, x1, [x3]
stp x0, x1, [x2]
ldr x0, [x3, 16]
str x0, [x2, 16]
add x0, sp, 32
str x0, [sp, 16]
b .L15
.L18:
ldr x0, [sp, 16]
ldr x0, [x0]
bl getgrnam
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
beq .L16
ldr x0, [sp, 24]
ldr w0, [x0, 16]
b .L19
.L16:
ldr x0, [sp, 16]
add x0, x0, 8
str x0, [sp, 16]
.L15:
ldr x0, [sp, 16]
ldr x0, [x0]
cmp x0, 0
bne .L18
mov w0, -999
.L19:
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 56]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L20
bl __stack_chk_fail
.L20:
mov w0, w1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size find_nogroup, .-find_nogroup
.section .rodata
.align 3
.LC0:
.string "nobody"
.align 3
.LC1:
.string "nogroup"
.data
.align 3
.LC33:
.xword .LC0
.xword .LC1
.xword 0
.text
.section .rodata
.align 3
.LC34:
.string "Couldn't get uid"
.align 3
.LC35:
.string "Could not find the anonymous group"
.align 3
.LC36:
.string "setgid"
.align 3
.LC37:
.string "setuid"
.text
.align 2
.global drop_privs
.type drop_privs, %function
drop_privs:
.LFB10:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
bl check_username
cmp w0, 0
beq .L22
mov w0, 1
b .L23
.L22:
ldr x0, [sp, 24]
bl getpwnam
str x0, [sp, 40]
ldr x0, [sp, 40]
cmp x0, 0
bne .L24
adrp x0, .LC34
add x0, x0, :lo12:.LC34
bl puts
mov w0, 1
b .L23
.L24:
ldr x0, [sp, 40]
ldr w0, [x0, 16]
str w0, [sp, 32]
bl find_nogroup
str w0, [sp, 36]
ldr w0, [sp, 36]
cmp w0, 0
bgt .L25
adrp x0, .LC35
add x0, x0, :lo12:.LC35
bl puts
mov w0, 1
b .L23
.L25:
ldr w0, [sp, 36]
bl setgid
cmn w0, #1
bne .L26
adrp x0, .LC36
add x0, x0, :lo12:.LC36
bl perror
mov w0, 1
b .L23
.L26:
ldr w0, [sp, 32]
bl setuid
cmn w0, #1
bne .L27
adrp x0, .LC37
add x0, x0, :lo12:.LC37
bl perror
mov w0, 1
b .L23
.L27:
mov w0, 0
.L23:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size drop_privs, .-drop_privs
.section .rodata
.align 3
.LC38:
.string "Not enough arguments"
.align 3
.LC39:
.string "-r"
.align 3
.LC40:
.string "graceful"
.align 3
.LC41:
.string "/usr/sbin/apachectl"
.align 3
.LC42:
.string "/bin/sh"
.align 3
.LC43:
.string "-d"
.align 3
.LC44:
.string "Won't delete that user"
.align 3
.LC45:
.string "/usr/sbin/userdel"
.align 3
.LC46:
.string "Launching of userdel failed. %d\n"
.align 3
.LC47:
.string "-c"
.align 3
.LC48:
.string "Must specify a username with -c"
.align 3
.LC49:
.string "/bin/false"
.align 3
.LC50:
.string "-s"
.align 3
.LC51:
.string "-N"
.align 3
.LC52:
.string "-M"
.align 3
.LC53:
.string "/nonexistant"
.align 3
.LC54:
.string "/usr/sbin/useradd"
.align 3
.LC55:
.string "Useradd failed to launch, errno: %d\n"
.align 3
.LC56:
.string "Useradd failed"
.align 3
.LC57:
.string "Error code: %d\n"
.align 3
.LC58:
.string "Could not stat %s\n"
.align 3
.LC59:
.string "Couldn't chown or chmod %s\n"
.align 3
.LC60:
.string "Failed to chmod and chown files"
.align 3
.LC61:
.string "Some files failed to set permissions"
.align 3
.LC62:
.string "-e"
.align 3
.LC63:
.string "Must specify a username with -e"
.align 3
.LC64:
.string "add_vhost"
.align 3
.LC65:
.string "-q"
.align 3
.LC66:
.string "/usr/sbin/rabbitmqctl"
.align 3
.LC67:
.string "rabbitmqctl failed to launch, errno: %d\n"
.align 3
.LC68:
.string "rabbitmqctl add_vhost failed"
.align 3
.LC69:
.string "add_user"
.align 3
.LC70:
.string "rabbitmqctl add_user failed"
.align 3
.LC71:
.string ""
.align 3
.LC72:
.string "-p"
.align 3
.LC73:
.string "set_permissions"
.align 3
.LC74:
.string ".*"
.align 3
.LC75:
.string "rabbitmqctl set_permissions failed"
.align 3
.LC76:
.string "%s"
.align 3
.LC77:
.string "-b"
.align 3
.LC78:
.string "Must specify a username with -b"
.align 3
.LC79:
.string "delete_vhost"
.align 3
.LC80:
.string "rabbitmqctl delete_vhost failed"
.align 3
.LC81:
.string "delete_user"
.align 3
.LC82:
.string "rabbitmqctl delete_user failed"
.align 3
.LC83:
.string "Could not drop privs"
.align 3
.LC84:
.string "-S"
.align 3
.LC86:
.string "supervisord"
.align 3
.LC87:
.string "supervisord couldn't launch. %d\n"
.align 3
.LC88:
.string "Failed to launch supervisord"
.align 3
.LC90:
.string "Could not open the pid file"
.align 3
.LC91:
.string "PID file didn't seem to contain a number"
.align 3
.LC92:
.string "-T"
.align 3
.LC93:
.string "-H"
.align 3
.LC94:
.string "Unknown secureops option"
.align 3
.LC95:
.string "Sending of signal failed. pid was %d. errno: %d"
.align 3
.LC96:
.string "-k"
.align 3
.LC97:
.string "-u"
.align 3
.LC98:
.string "-SIGTERM"
.align 3
.LC99:
.string "pkill"
.align 3
.LC100:
.string "pkill couldn't launch. %d\n"
.align 3
.LC101:
.string "pkill exited abnormally"
.align 3
.LC102:
.string "-SIGKILL"
.align 3
.LC103:
.string "-y"
.align 3
.LC104:
.string "--noinput"
.align 3
.LC105:
.string "syncdb"
.align 3
.LC106:
.string "Couldn't launch django-admin.py"
.align 3
.LC107:
.string "-i"
.align 3
.LC108:
.string "install"
.align 3
.LC109:
.string "Could not launch pip install"
.align 3
.LC110:
.string "Bad mode"
.text
.align 2
.global main
.type main, %function
main:
.LFB11:
.cfi_startproc
sub sp, sp, #608
.cfi_def_cfa_offset 608
stp x29, x30, [sp, 32]
.cfi_offset 29, -576
.cfi_offset 30, -568
add x29, sp, 32
.cfi_def_cfa 29, 576
stp x19, x20, [sp, 48]
stp x21, x22, [sp, 64]
stp x23, x24, [sp, 80]
stp x25, x26, [sp, 96]
str x27, [sp, 112]
.cfi_offset 19, -560
.cfi_offset 20, -552
.cfi_offset 21, -544
.cfi_offset 22, -536
.cfi_offset 23, -528
.cfi_offset 24, -520
.cfi_offset 25, -512
.cfi_offset 26, -504
.cfi_offset 27, -496
str w0, [x29, 172]
str x1, [x29, 160]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [x29, 568]
mov x1, 0
mov w0, 0
bl setuid
ldr w0, [x29, 172]
cmp w0, 1
bgt .L29
adrp x0, .LC38
add x0, x0, :lo12:.LC38
bl puts
bl help
b .L30
.L29:
ldr x0, [x29, 160]
add x0, x0, 8
ldr x2, [x0]
adrp x0, .LC39
add x1, x0, :lo12:.LC39
mov x0, x2
bl strcmp
cmp w0, 0
bne .L31
mov x4, 0
adrp x0, .LC40
add x3, x0, :lo12:.LC40
adrp x0, .LC41
add x2, x0, :lo12:.LC41
adrp x0, .LC41
add x1, x0, :lo12:.LC41
adrp x0, .LC42
add x0, x0, :lo12:.LC42
bl execl
mov w0, 1
b .L30
.L31:
ldr x0, [x29, 160]
add x0, x0, 8
ldr x2, [x0]
adrp x0, .LC43
add x1, x0, :lo12:.LC43
mov x0, x2
bl strcmp
cmp w0, 0
bne .L32
ldr x0, [x29, 160]
ldr x0, [x0, 16]
str x0, [x29, 384]
ldr x0, [x29, 384]
bl strlen
cmp x0, 4
bhi .L33
adrp x0, .LC30
add x0, x0, :lo12:.LC30
bl printf
mov w0, 1
b .L30
.L33:
mov x2, 4
adrp x0, .LC31
add x1, x0, :lo12:.LC31
ldr x0, [x29, 384]
bl strncmp
cmp w0, 0
beq .L34
adrp x0, .LC44
add x0, x0, :lo12:.LC44
bl printf
mov w0, 1
b .L30
.L34:
mov x3, 0
ldr x2, [x29, 384]
adrp x0, .LC45
add x1, x0, :lo12:.LC45
adrp x0, .LC45
add x0, x0, :lo12:.LC45
bl execl
bl __errno_location
ldr w0, [x0]
mov w1, w0
adrp x0, .LC46
add x0, x0, :lo12:.LC46
bl printf
mov w0, 255
b .L30
.L32:
ldr x0, [x29, 160]
add x0, x0, 8
ldr x2, [x0]
adrp x0, .LC47
add x1, x0, :lo12:.LC47
mov x0, x2
bl strcmp
cmp w0, 0
bne .L35
ldr w0, [x29, 172]
cmp w0, 2
bgt .L36
adrp x0, .LC48
add x0, x0, :lo12:.LC48
bl puts
bl help
b .L30
.L36:
ldr x0, [x29, 160]
ldr x0, [x0, 16]
str x0, [x29, 360]
bl fork
cmp w0, 0
bne .L38
str xzr, [sp, 8]
ldr x0, [x29, 360]
str x0, [sp]
adrp x0, .LC49
add x7, x0, :lo12:.LC49
adrp x0, .LC50
add x6, x0, :lo12:.LC50
adrp x0, .LC51
add x5, x0, :lo12:.LC51
adrp x0, .LC52
add x4, x0, :lo12:.LC52
adrp x0, .LC53
add x3, x0, :lo12:.LC53
adrp x0, .LC43
add x2, x0, :lo12:.LC43
adrp x0, .LC54
add x1, x0, :lo12:.LC54
adrp x0, .LC54
add x0, x0, :lo12:.LC54
bl execl
bl __errno_location
ldr w0, [x0]
mov w1, w0
adrp x0, .LC55
add x0, x0, :lo12:.LC55
bl printf
mov w0, 255
bl _exit
.L38:
add x0, x29, 184
bl wait
ldr w0, [x29, 184]
and w0, w0, 127
cmp w0, 0
bne .L39
ldr w0, [x29, 184]
asr w0, w0, 8
and w0, w0, 255
cmp w0, 0
beq .L40
.L39:
adrp x0, .LC56
add x0, x0, :lo12:.LC56
bl puts
ldr w0, [x29, 184]
asr w0, w0, 8
and w0, w0, 255
mov w1, w0
adrp x0, .LC57
add x0, x0, :lo12:.LC57
bl printf
mov w0, 1
b .L30
.L40:
ldr x0, [x29, 360]
bl getpwnam
str x0, [x29, 368]
ldr x0, [x29, 368]
cmp x0, 0
bne .L41
adrp x0, .LC34
add x0, x0, :lo12:.LC34
bl puts
mov w0, 1
b .L30
.L41:
ldr x0, [x29, 368]
ldr w0, [x0, 16]
str w0, [x29, 228]
str wzr, [x29, 192]
str wzr, [x29, 196]
mov w0, 3
str w0, [x29, 188]
b .L42
.L49:
ldrsw x0, [x29, 188]
lsl x0, x0, 3
ldr x1, [x29, 160]
add x0, x1, x0
ldr x0, [x0]
str x0, [x29, 376]
add x0, x29, 392
mov x1, x0
ldr x0, [x29, 376]
bl stat
cmp w0, 0
beq .L43
ldr w0, [x29, 196]
add w0, w0, 1
str w0, [x29, 196]
ldr w0, [x29, 192]
add w0, w0, 1
str w0, [x29, 192]
ldr x1, [x29, 376]
adrp x0, .LC58
add x0, x0, :lo12:.LC58
bl printf
b .L44
.L43:
ldr w0, [x29, 408]
and w0, w0, 61440
cmp w0, 16384
bne .L45
mov w0, 504
str w0, [x29, 200]
b .L46
.L45:
mov w0, 432
str w0, [x29, 200]
.L46:
ldr w0, [x29, 228]
mov w2, -1
mov w1, w0
ldr x0, [x29, 376]
bl chown
cmp w0, 0
bne .L47
ldr w1, [x29, 200]
ldr x0, [x29, 376]
bl chmod
cmp w0, 0
beq .L48
.L47:
ldr w0, [x29, 196]
add w0, w0, 1
str w0, [x29, 196]
ldr x1, [x29, 376]
adrp x0, .LC59
add x0, x0, :lo12:.LC59
bl printf
.L48:
ldr w0, [x29, 192]
add w0, w0, 1
str w0, [x29, 192]
.L44:
ldr w0, [x29, 188]
add w0, w0, 1
str w0, [x29, 188]
.L42:
ldr w1, [x29, 188]
ldr w0, [x29, 172]
cmp w1, w0
blt .L49
ldr w0, [x29, 192]
cmp w0, 0
beq .L50
ldr w0, [x29, 196]
cmp w0, 0
bne .L51
.L50:
mov w0, 0
b .L30
.L51:
ldr w1, [x29, 196]
ldr w0, [x29, 192]
cmp w1, w0
bne .L52
adrp x0, .LC60
add x0, x0, :lo12:.LC60
bl puts
mov w0, 1
b .L30
.L52:
adrp x0, .LC61
add x0, x0, :lo12:.LC61
bl puts
mov w0, 2
b .L30
.L35:
ldr x0, [x29, 160]
add x0, x0, 8
ldr x2, [x0]
adrp x0, .LC62
add x1, x0, :lo12:.LC62
mov x0, x2
bl strcmp
cmp w0, 0
bne .L53
ldr w0, [x29, 172]
cmp w0, 2
bgt .L54
adrp x0, .LC63
add x0, x0, :lo12:.LC63
bl puts
bl help
b .L30
.L54:
ldr x0, [x29, 160]
ldr x0, [x0, 16]
str x0, [x29, 352]
bl fork
cmp w0, 0
bne .L56
mov x5, 0
ldr x4, [x29, 352]
adrp x0, .LC64
add x3, x0, :lo12:.LC64
adrp x0, .LC65
add x2, x0, :lo12:.LC65
adrp x0, .LC66
add x1, x0, :lo12:.LC66
adrp x0, .LC66
add x0, x0, :lo12:.LC66
bl execl
bl __errno_location
ldr w0, [x0]
mov w1, w0
adrp x0, .LC67
add x0, x0, :lo12:.LC67
bl printf
mov w0, 255
bl _exit
.L56:
add x0, x29, 184
bl wait
ldr w0, [x29, 184]
and w0, w0, 127
cmp w0, 0
bne .L57
ldr w0, [x29, 184]
asr w0, w0, 8
and w0, w0, 255
cmp w0, 0
beq .L58
.L57:
adrp x0, .LC68
add x0, x0, :lo12:.LC68
bl puts
ldr w0, [x29, 184]
asr w0, w0, 8
and w0, w0, 255
mov w1, w0
adrp x0, .LC57
add x0, x0, :lo12:.LC57
bl printf
mov w0, 1
b .L30
.L58:
add x0, x29, 536
mov w1, 30
bl getpwd
strb wzr, [x29, 566]
bl fork
cmp w0, 0
bne .L59
add x0, x29, 536
mov x6, 0
mov x5, x0
ldr x4, [x29, 352]
adrp x0, .LC69
add x3, x0, :lo12:.LC69
adrp x0, .LC65
add x2, x0, :lo12:.LC65
adrp x0, .LC66
add x1, x0, :lo12:.LC66
adrp x0, .LC66
add x0, x0, :lo12:.LC66
bl execl
bl __errno_location
ldr w0, [x0]
mov w1, w0
adrp x0, .LC67
add x0, x0, :lo12:.LC67
bl printf
mov w0, 255
bl _exit
.L59:
add x0, x29, 184
bl wait
ldr w0, [x29, 184]
and w0, w0, 127
cmp w0, 0
bne .L60
ldr w0, [x29, 184]
asr w0, w0, 8
and w0, w0, 255
cmp w0, 0
beq .L61
.L60:
adrp x0, .LC70
add x0, x0, :lo12:.LC70
bl puts
ldr w0, [x29, 184]
asr w0, w0, 8
and w0, w0, 255
mov w1, w0
adrp x0, .LC57
add x0, x0, :lo12:.LC57
bl printf
mov w0, 1
b .L30
.L61:
bl fork
cmp w0, 0
bne .L62
str xzr, [sp, 16]
adrp x0, .LC74
add x0, x0, :lo12:.LC74
str x0, [sp, 8]
adrp x0, .LC74
add x0, x0, :lo12:.LC74
str x0, [sp]
adrp x0, .LC71
add x7, x0, :lo12:.LC71
ldr x6, [x29, 352]
ldr x5, [x29, 352]
adrp x0, .LC72
add x4, x0, :lo12:.LC72
adrp x0, .LC73
add x3, x0, :lo12:.LC73
adrp x0, .LC65
add x2, x0, :lo12:.LC65
adrp x0, .LC66
add x1, x0, :lo12:.LC66
adrp x0, .LC66
add x0, x0, :lo12:.LC66
bl execl
bl __errno_location
ldr w0, [x0]
mov w1, w0
adrp x0, .LC67
add x0, x0, :lo12:.LC67
bl printf
mov w0, 255
bl _exit
.L62:
add x0, x29, 184
bl wait
ldr w0, [x29, 184]
and w0, w0, 127
cmp w0, 0
bne .L63
ldr w0, [x29, 184]
asr w0, w0, 8
and w0, w0, 255
cmp w0, 0
beq .L64
.L63:
adrp x0, .LC75
add x0, x0, :lo12:.LC75
bl puts
ldr w0, [x29, 184]
asr w0, w0, 8
and w0, w0, 255
mov w1, w0
adrp x0, .LC57
add x0, x0, :lo12:.LC57
bl printf
mov w0, 1
b .L30
.L64:
add x0, x29, 536
mov x1, x0
adrp x0, .LC76
add x0, x0, :lo12:.LC76
bl printf
mov w0, 0
b .L30
.L53:
ldr x0, [x29, 160]
add x0, x0, 8
ldr x2, [x0]
adrp x0, .LC77
add x1, x0, :lo12:.LC77
mov x0, x2
bl strcmp
cmp w0, 0
bne .L65
ldr w0, [x29, 172]
cmp w0, 2
bgt .L66
adrp x0, .LC78
add x0, x0, :lo12:.LC78
bl puts
bl help
b .L30
.L66:
ldr x0, [x29, 160]
ldr x0, [x0, 16]
str x0, [x29, 344]
ldr x0, [x29, 344]
bl strlen
cmp x0, 4
bhi .L67
adrp x0, .LC30
add x0, x0, :lo12:.LC30
bl printf
mov w0, 1
b .L30
.L67:
mov x2, 4
adrp x0, .LC31
add x1, x0, :lo12:.LC31
ldr x0, [x29, 344]
bl strncmp
cmp w0, 0
beq .L68
adrp x0, .LC44
add x0, x0, :lo12:.LC44
bl printf
mov w0, 1
b .L30
.L68:
bl fork
cmp w0, 0
bne .L69
mov x5, 0
ldr x4, [x29, 344]
adrp x0, .LC79
add x3, x0, :lo12:.LC79
adrp x0, .LC65
add x2, x0, :lo12:.LC65
adrp x0, .LC66
add x1, x0, :lo12:.LC66
adrp x0, .LC66
add x0, x0, :lo12:.LC66
bl execl
bl __errno_location
ldr w0, [x0]
mov w1, w0
adrp x0, .LC67
add x0, x0, :lo12:.LC67
bl printf
mov w0, 255
bl _exit
.L69:
add x0, x29, 184
bl wait
ldr w0, [x29, 184]
and w0, w0, 127
cmp w0, 0
bne .L70
ldr w0, [x29, 184]
asr w0, w0, 8
and w0, w0, 255
cmp w0, 0
beq .L71
.L70:
adrp x0, .LC80
add x0, x0, :lo12:.LC80
bl puts
ldr w0, [x29, 184]
asr w0, w0, 8
and w0, w0, 255
mov w1, w0
adrp x0, .LC57
add x0, x0, :lo12:.LC57
bl printf
ldr w0, [x29, 184]
asr w0, w0, 8
and w0, w0, 255
cmp w0, 2
beq .L71
ldr w0, [x29, 184]
asr w0, w0, 8
and w0, w0, 255
b .L30
.L71:
bl fork
cmp w0, 0
bne .L72
mov x5, 0
ldr x4, [x29, 344]
adrp x0, .LC81
add x3, x0, :lo12:.LC81
adrp x0, .LC65
add x2, x0, :lo12:.LC65
adrp x0, .LC66
add x1, x0, :lo12:.LC66
adrp x0, .LC66
add x0, x0, :lo12:.LC66
bl execl
bl __errno_location
ldr w0, [x0]
mov w1, w0
adrp x0, .LC67
add x0, x0, :lo12:.LC67
bl printf
mov w0, 255
bl _exit
.L72:
add x0, x29, 184
bl wait
ldr w0, [x29, 184]
and w0, w0, 127
cmp w0, 0
bne .L73
ldr w0, [x29, 184]
asr w0, w0, 8
and w0, w0, 255
cmp w0, 0
beq .L74
.L73:
adrp x0, .LC82
add x0, x0, :lo12:.LC82
bl puts
ldr w0, [x29, 184]
asr w0, w0, 8
and w0, w0, 255
mov w1, w0
adrp x0, .LC57
add x0, x0, :lo12:.LC57
bl printf
ldr w0, [x29, 184]
asr w0, w0, 8
and w0, w0, 255
b .L30
.L74:
mov w0, 0
b .L30
.L65:
ldr x0, [x29, 160]
add x0, x0, 8
ldr x2, [x0]
adrp x0, .LC50
add x1, x0, :lo12:.LC50
mov x0, x2
bl strcmp
cmp w0, 0
bne .L75
ldr w0, [x29, 172]
cmp w0, 4
bgt .L76
adrp x0, .LC38
add x0, x0, :lo12:.LC38
bl puts
bl help
b .L30
.L76:
ldr x0, [x29, 160]
ldr x0, [x0, 16]
str x0, [x29, 288]
ldr x0, [x29, 288]
bl drop_privs
cmp w0, 0
beq .L77
adrp x0, .LC83
add x0, x0, :lo12:.LC83
bl printf
mov w0, 1
b .L30
.L77:
ldr x0, [x29, 160]
ldr x0, [x0, 24]
str x0, [x29, 296]
ldr x0, [x29, 160]
add x0, x0, 32
ldr x2, [x0]
adrp x0, .LC84
add x1, x0, :lo12:.LC84
mov x0, x2
bl strcmp
cmp w0, 0
bne .L78
mov x0, sp
mov x19, x0
adrp x0, .LC85
add x0, x0, :lo12:.LC85
add x2, x29, 536
mov x3, x0
ldp x0, x1, [x3]
stp x0, x1, [x2]
ldrh w0, [x3, 16]
strh w0, [x2, 16]
add x0, x29, 536
bl strlen
str w0, [x29, 220]
ldr x0, [x29, 296]
bl strlen
str w0, [x29, 224]
ldr w1, [x29, 224]
ldr w0, [x29, 220]
add w0, w1, w0
add w0, w0, 1
sxtw x1, w0
sub x1, x1, #1
str x1, [x29, 328]
sxtw x1, w0
str x1, [x29, 144]
str xzr, [x29, 152]
ldp x2, x3, [x29, 144]
mov x1, x2
lsr x1, x1, 61
mov x4, x3
lsl x27, x4, 3
orr x27, x1, x27
mov x1, x2
lsl x26, x1, 3
sxtw x1, w0
str x1, [x29, 128]
str xzr, [x29, 136]
ldp x2, x3, [x29, 128]
mov x1, x2
lsr x1, x1, 61
mov x4, x3
lsl x25, x4, 3
orr x25, x1, x25
mov x1, x2
lsl x24, x1, 3
sxtw x0, w0
add x0, x0, 15
lsr x0, x0, 4
lsl x0, x0, 4
and x1, x0, -65536
sub x1, sp, x1
.L79:
cmp sp, x1
beq .L80
sub sp, sp, #65536
str xzr, [sp, 1024]
b .L79
.L80:
and x1, x0, 65535
sub sp, sp, x1
str xzr, [sp]
and x0, x0, 65535
cmp x0, 1024
bcc .L81
str xzr, [sp, 1024]
.L81:
add x0, sp, 32
add x0, x0, 0
str x0, [x29, 336]
ldrsw x0, [x29, 224]
mov x2, x0
ldr x1, [x29, 296]
ldr x0, [x29, 336]
bl strncpy
ldrsw x0, [x29, 224]
ldr x1, [x29, 336]
add x0, x1, x0
ldrsw x2, [x29, 220]
add x1, x29, 536
bl strncpy
ldr w1, [x29, 224]
ldr w0, [x29, 220]
add w0, w1, w0
ldr x1, [x29, 336]
sxtw x0, w0
strb wzr, [x1, x0]
bl fork
cmp w0, 0
bne .L82
mov x4, 0
ldr x3, [x29, 336]
adrp x0, .LC47
add x2, x0, :lo12:.LC47
adrp x0, .LC86
add x1, x0, :lo12:.LC86
adrp x0, .LC86
add x0, x0, :lo12:.LC86
bl execlp
bl __errno_location
ldr w0, [x0]
mov w1, w0
adrp x0, .LC87
add x0, x0, :lo12:.LC87
bl printf
mov w0, 255
bl _exit
.L82:
add x0, x29, 184
bl wait
ldr w0, [x29, 184]
and w0, w0, 127
cmp w0, 0
bne .L83
ldr w0, [x29, 184]
asr w0, w0, 8
and w0, w0, 255
cmp w0, 0
beq .L84
.L83:
adrp x0, .LC88
add x0, x0, :lo12:.LC88
bl puts
ldr w0, [x29, 184]
asr w0, w0, 8
and w0, w0, 255
mov w1, w0
adrp x0, .LC57
add x0, x0, :lo12:.LC57
bl printf
mov w0, 1
b .L85
.L84:
mov w0, 0
.L85:
mov sp, x19
b .L30
.L78:
mov x0, sp
mov x19, x0
adrp x0, .LC89
add x0, x0, :lo12:.LC89
add x2, x29, 536
mov x3, x0
ldp x0, x1, [x3]
stp x0, x1, [x2]
add x1, x3, 13
add x0, x2, 13
ldr x1, [x1]
str x1, [x0]
add x0, x29, 536
bl strlen
str w0, [x29, 208]
ldr x0, [x29, 296]
bl strlen
str w0, [x29, 212]
ldr w1, [x29, 212]
ldr w0, [x29, 208]
add w0, w1, w0
add w0, w0, 1
sxtw x1, w0
sub x1, x1, #1
str x1, [x29, 304]
sxtw x1, w0
str x1, [x29, 112]
str xzr, [x29, 120]
ldp x2, x3, [x29, 112]
mov x1, x2
lsr x1, x1, 61
mov x4, x3
lsl x23, x4, 3
orr x23, x1, x23
mov x1, x2
lsl x22, x1, 3
sxtw x1, w0
str x1, [x29, 96]
str xzr, [x29, 104]
ldp x2, x3, [x29, 96]
mov x1, x2
lsr x1, x1, 61
mov x4, x3
lsl x21, x4, 3
orr x21, x1, x21
mov x1, x2
lsl x20, x1, 3
sxtw x0, w0
add x0, x0, 15
lsr x0, x0, 4
lsl x0, x0, 4
and x1, x0, -65536
sub x1, sp, x1
.L86:
cmp sp, x1
beq .L87
sub sp, sp, #65536
str xzr, [sp, 1024]
b .L86
.L87:
and x1, x0, 65535
sub sp, sp, x1
str xzr, [sp]
and x0, x0, 65535
cmp x0, 1024
bcc .L88
str xzr, [sp, 1024]
.L88:
add x0, sp, 32
add x0, x0, 0
str x0, [x29, 312]
ldrsw x0, [x29, 212]
mov x2, x0
ldr x1, [x29, 296]
ldr x0, [x29, 312]
bl strncpy
ldrsw x0, [x29, 212]
ldr x1, [x29, 312]
add x0, x1, x0
ldrsw x2, [x29, 208]
add x1, x29, 536
bl strncpy
ldr w1, [x29, 212]
ldr w0, [x29, 208]
add w0, w1, w0
ldr x1, [x29, 312]
sxtw x0, w0
strb wzr, [x1, x0]
adrp x0, .LC27
add x1, x0, :lo12:.LC27
ldr x0, [x29, 312]
bl fopen
str x0, [x29, 320]
ldr x0, [x29, 320]
cmp x0, 0
bne .L89
adrp x0, .LC90
add x0, x0, :lo12:.LC90
bl puts
mov w0, 1
b .L90
.L89:
add x0, x29, 520
ldr x3, [x29, 320]
mov x2, 9
mov x1, 1
bl fread
strb wzr, [x29, 529]
bl __errno_location
str wzr, [x0]
add x0, x29, 520
mov w2, 10
mov x1, 0
bl strtol
str w0, [x29, 216]
bl __errno_location
ldr w0, [x0]
cmp w0, 0
beq .L91
adrp x0, .LC91
add x0, x0, :lo12:.LC91
bl puts
mov w0, 1
b .L90
.L91:
mov sp, x19
ldr x0, [x29, 160]
add x0, x0, 32
ldr x2, [x0]
adrp x0, .LC92
add x1, x0, :lo12:.LC92
mov x0, x2
bl strcmp
cmp w0, 0
beq .L92
b .L114
.L90:
mov sp, x19
b .L30
.L92:
mov w1, 15
ldr w0, [x29, 216]
bl kill
str w0, [x29, 204]
b .L94
.L114:
ldr x0, [x29, 160]
add x0, x0, 32
ldr x2, [x0]
adrp x0, .LC93
add x1, x0, :lo12:.LC93
mov x0, x2
bl strcmp
cmp w0, 0
bne .L95
mov w1, 1
ldr w0, [x29, 216]
bl kill
str w0, [x29, 204]
b .L94
.L95:
adrp x0, .LC94
add x0, x0, :lo12:.LC94
bl puts
bl help
b .L30
.L94:
ldr w0, [x29, 204]
cmn w0, #1
bne .L96
bl __errno_location
ldr w0, [x0]
cmp w0, 3
beq .L96
bl __errno_location
ldr w0, [x0]
mov w2, w0
ldr w1, [x29, 216]
adrp x0, .LC95
add x0, x0, :lo12:.LC95
bl printf
mov w0, 1
b .L30
.L96:
mov w0, 0
b .L30
.L75:
ldr x0, [x29, 160]
add x0, x0, 8
ldr x2, [x0]
adrp x0, .LC96
add x1, x0, :lo12:.LC96
mov x0, x2
bl strcmp
cmp w0, 0
bne .L97
ldr w0, [x29, 172]
cmp w0, 2
bgt .L98
adrp x0, .LC38
add x0, x0, :lo12:.LC38
bl puts
bl help
b .L30
.L98:
ldr x0, [x29, 160]
ldr x0, [x0, 16]
str x0, [x29, 280]
ldr x0, [x29, 280]
bl check_username
cmp w0, 0
beq .L100
mov w0, 1
b .L30
.L100:
bl fork
cmp w0, 0
bne .L101
mov x5, 0
ldr x4, [x29, 280]
adrp x0, .LC97
add x3, x0, :lo12:.LC97
adrp x0, .LC98
add x2, x0, :lo12:.LC98
adrp x0, .LC99
add x1, x0, :lo12:.LC99
adrp x0, .LC99
add x0, x0, :lo12:.LC99
bl execlp
bl __errno_location
ldr w0, [x0]
mov w1, w0
adrp x0, .LC100
add x0, x0, :lo12:.LC100
bl printf
mov w0, 255
bl _exit
.L101:
add x0, x29, 184
bl wait
ldr w0, [x29, 184]
and w0, w0, 127
cmp w0, 0
bne .L102
ldr w0, [x29, 184]
asr w0, w0, 8
and w0, w0, 254
cmp w0, 0
beq .L103
.L102:
adrp x0, .LC101
add x0, x0, :lo12:.LC101
bl puts
ldr w0, [x29, 184]
asr w0, w0, 8
and w0, w0, 255
mov w1, w0
adrp x0, .LC57
add x0, x0, :lo12:.LC57
bl printf
mov w0, 1
b .L30
.L103:
mov w0, 10
bl sleep
bl fork
cmp w0, 0
bne .L104
mov x5, 0
ldr x4, [x29, 280]
adrp x0, .LC97
add x3, x0, :lo12:.LC97
adrp x0, .LC102
add x2, x0, :lo12:.LC102
adrp x0, .LC99
add x1, x0, :lo12:.LC99
adrp x0, .LC99
add x0, x0, :lo12:.LC99
bl execlp
bl __errno_location
ldr w0, [x0]
mov w1, w0
adrp x0, .LC100
add x0, x0, :lo12:.LC100
bl printf
mov w0, 255
bl _exit
.L104:
add x0, x29, 184
bl wait
ldr w0, [x29, 184]
and w0, w0, 127
cmp w0, 0
bne .L105
ldr w0, [x29, 184]
asr w0, w0, 8
and w0, w0, 254
cmp w0, 0
beq .L106
.L105:
adrp x0, .LC101
add x0, x0, :lo12:.LC101
bl puts
ldr w0, [x29, 184]
asr w0, w0, 8
and w0, w0, 255
mov w1, w0
adrp x0, .LC57
add x0, x0, :lo12:.LC57
bl printf
mov w0, 1
b .L30
.L106:
mov w0, 0
b .L30
.L97:
ldr x0, [x29, 160]
add x0, x0, 8
ldr x2, [x0]
adrp x0, .LC103
add x1, x0, :lo12:.LC103
mov x0, x2
bl strcmp
cmp w0, 0
bne .L107
ldr w0, [x29, 172]
cmp w0, 4
bgt .L108
adrp x0, .LC38
add x0, x0, :lo12:.LC38
bl puts
bl help
b .L30
.L108:
ldr x0, [x29, 160]
ldr x0, [x0, 16]
str x0, [x29, 256]
ldr x0, [x29, 256]
bl drop_privs
cmp w0, 0
beq .L109
mov w0, 1
b .L30
.L109:
ldr x0, [x29, 160]
ldr x0, [x0, 24]
str x0, [x29, 264]
ldr x0, [x29, 160]
ldr x0, [x0, 32]
str x0, [x29, 272]
mov x5, 0
adrp x0, .LC104
add x4, x0, :lo12:.LC104
adrp x0, .LC105
add x3, x0, :lo12:.LC105
ldr x2, [x29, 272]
ldr x1, [x29, 264]
ldr x0, [x29, 264]
bl execl
adrp x0, .LC106
add x0, x0, :lo12:.LC106
bl puts
mov w0, 255
b .L30
.L107:
ldr x0, [x29, 160]
add x0, x0, 8
ldr x2, [x0]
adrp x0, .LC107
add x1, x0, :lo12:.LC107
mov x0, x2
bl strcmp
cmp w0, 0
bne .L110
ldr w0, [x29, 172]
cmp w0, 4
bgt .L111
adrp x0, .LC38
add x0, x0, :lo12:.LC38
bl puts
bl help
b .L30
.L111:
ldr x0, [x29, 160]
ldr x0, [x0, 16]
str x0, [x29, 232]
ldr x0, [x29, 232]
bl drop_privs
cmp w0, 0
beq .L112
mov w0, 1
b .L30
.L112:
ldr x0, [x29, 160]
ldr x0, [x0, 24]
str x0, [x29, 240]
ldr x0, [x29, 160]
ldr x0, [x0, 32]
str x0, [x29, 248]
mov x5, 0
ldr x4, [x29, 248]
adrp x0, .LC39
add x3, x0, :lo12:.LC39
adrp x0, .LC108
add x2, x0, :lo12:.LC108
ldr x1, [x29, 240]
ldr x0, [x29, 240]
bl execl
adrp x0, .LC109
add x0, x0, :lo12:.LC109
bl puts
mov w0, 255
b .L30
.L110:
adrp x0, .LC110
add x0, x0, :lo12:.LC110
bl puts
bl help
.L30:
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [x29, 568]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L113
bl __stack_chk_fail
.L113:
mov w0, w1
sub sp, x29, #32
.cfi_def_cfa 31, 608
ldp x19, x20, [sp, 48]
ldp x21, x22, [sp, 64]
ldp x23, x24, [sp, 80]
ldp x25, x26, [sp, 96]
ldr x27, [sp, 112]
ldp x29, x30, [sp, 32]
add sp, sp, 608
.cfi_restore 29
.cfi_restore 30
.cfi_restore 27
.cfi_restore 25
.cfi_restore 26
.cfi_restore 23
.cfi_restore 24
.cfi_restore 21
.cfi_restore 22
.cfi_restore 19
.cfi_restore 20
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size main, .-main
.section .rodata
.align 3
.LC85:
.string "/supervisord.conf"
.align 3
.LC89:
.string "/run/supervisord.pid"
.text
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global mDmpMemory
.section .rodata
.align 3
.type mDmpMemory, %object
.size mDmpMemory, 3414
mDmpMemory:
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\001\013\020\344"
.string ""
.string ""
.string ""
.string ""
.string "P"
.string "\n\006\270\201\241\341\211\262x7\370Z\234\317\335\205;"
.string ""
.string ""
.string ""
.string "\037\333\342\271;{\021{2W\203{\001\360\031\200@"
.string ""
.string ""
.string "\002\312\343\t>\200"
.string ""
.string " "
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "@"
.string ""
.string ""
.string "`"
.string ""
.string ""
.string ""
.string "\f"
.string ""
.string ""
.string "\f\030n"
.string ""
.string "\006\222\n\026\300\337"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\002"
.string ""
.string ""
.string "\004"
.string ""
.string ""
.string "\007"
.string ""
.string ""
.string ""
.string "\377\377\013+"
.string ""
.string "\026W"
.string ""
.string "\003Y"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\035\372"
.string "\002l\035"
.string ""
.string ""
.string ""
.string "@"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "6fff"
.string ""
.string ""
.string ""
.string "?\200"
.string ""
.string ""
.string "\200"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\004"
.string ""
.string ""
.string ""
.string "\200"
.string ""
.string "\b"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "Q\353\205?\256\024{"
.string "("
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\001"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\020r"
.string ""
.string ""
.string "@"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\310\377\377"
.string "\001"
.string "\006"
.string "\001"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\002X"
.string "]\300"
.string ""
.string ""
.string ""
.string "\310"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\001"
.string "\003"
.string ""
.string ""
.string "\377\b"
.string "\002"
.string "\004"
.string "\001"
.string "\200"
.string "\020"
.string " "
.string "@"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\013]\027"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "5\241\t"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\200"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\262j"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\002"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string " "
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "333"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\001G\256\024>\270Q\354"
.string "\017"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\024"
.string "("
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\006fff9\231\231\232"
.string "\f\200"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\033"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\006t\252"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\016A(\024\305\257>\362Y\331J_\3026\331Q"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\005"
.string "\005"
.string "\005"
.string "\005"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\033"
.string ""
.string ""
.string "\331\350>8"
.string ""
.string ""
.string "0"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\005"
.string "\005"
.string "\005"
.string "\005"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\005"
.string "\005"
.string "\005"
.string "\005\377\345"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\001"
.string ""
.string ""
.string ""
.string ""
.string "\001"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\001\200"
.string ""
.string "\001\200"
.string ""
.string "\001\200"
.string ""
.string "\021\314\367"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\005"
.string "\020"
.string "K"
.string "<"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\r(\262D\312~\265\244Si\330\377\304\374\274_"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\020"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\b"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\020"
.string ""
.string ""
.string "<"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string " 1\210"
.string ""
.string "@"
.string ""
.string ""
.string ""
.string "\003"
.string ""
.string ""
.string "\003"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "@"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\002"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "g}\337~r\220.UL\366\346\210"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "("
.string ""
.string ""
.string ""
.string ""
.string ""
.string "@"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\006"
.string ""
.string ""
.string ""
.string "\024"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "Gx\242"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.ascii "\330\260\265\271\363\246\370\371\321\331\201\226\370\367>\330"
.ascii "\363\261\206\226\2431\321\332\361\361\330\263\267\273\216\236"
.ascii "\256\3612\365\033\361\264\270\260\200\227\361\251\337\337\337"
.ascii "\252\337\337\337\362\252\305\315\307\251\f\311,\227\361\251\211"
.ascii "&Ff\237\251.Nn\262\211\231\251-U}\260\212\250\2266Vv\330\361"
.ascii "\276\210\240\303\305\307\274\275\241\202\300\240\222\021\201"
.ascii "\220\241\360$\bD\020d\030\220\201\361\257)U}\241\217\237\002"
.ascii "\360(P\365\243\201\221(T|\361\257\204\221a\244\332\336\337\333"
.ascii "\205\223\245\365`hp\361\332\244\337\331\244\372\257\204\224\333"
.ascii "1\244\331\336\370\337\201\276\276\273\255\361\361\361\276\330"
.ascii "\361\274\274\275\275\276\276\330\361\271\251\337\337\337\260"
.ascii "\200\362\251\301\311\303\361\261\215\265\231\251\016\026\036"
.ascii "\256-U}\365\216\236\256,T|\360\260\215\237\257L\236h\237T\236"
.ascii "p\237\\\236x\361\261\211\255\303\305\307\217\237\243,T|\203\223"
.ascii "\243,T|\216\243\016\026\036\272\243\336\217\223\253I\333i\243"
.ascii "\336\370\330\2539\333Y\243\336\370\330\2531\333q\243\336\370"
.ascii "\330\361\260\211\271"
.string "\243\303\305\307\261\201\264\227\243\021\265\223\241\360$\bD\020d\030\361\223\201\243-U}\362\246\372\371\321\331\370\361\203\242\303\305\307\330\363\242\336\361\202\223\243-U}\203\225\365\2430\331\363\242\370\330\365\243P\331\363\242\370\330\365\243p\331\363\242\370\330\362\271\242\370\371\321\331\246\336\337\364\006\235\330\362\246\370\371\321\331\364\006\237\330\362\371\321\331\370\364\006\263\330\362\371\321\331\370\370\364\006\261\330\364\006\257\330\363\242\370\371\321\332\362\246\370\361\245\336\330\364\243\006\306\006\310\330\361\245\370\243\205\225\t\331\361\245\336\362\246\370\337\330\364\243\006\322\330\363\242\370\371\321\364\331\006\347\006\345\330\361\272\243\370\371\321\271\331\364B\362\242\336\364\006\363\006\370\330\361\245\370\243\205\225\031\332\364\006\370\330\362\246\336\337\330\361\270\252\263\215\264\230\r5]\262\266\272\257\214\226\031\217\237\270\250\016\026\036\264\232\252\210,T|\330\361\270\264\260\257\211\231\002\360\213\233"
.string "\361\217\237"
.string ""
.string ""
.string ""
.string "\250E\257\331\304\330\250\035\257\331\306\330\206\361\227\2501\217\233\006\231\007\253\206\227(\210\233\360\f \024@\361\213\253,(((TPPP\330\260\264\270\360\250\212\232(Px\267\233\250$pYDi8dH1-Qy\361\273\253\210"
.string ",T|\360\263\213\270\250\004(Px\361\260\210\264\227&\250Y\230\273\253\263\213\002&Ff\260\270\360\212\234\250$pY\213 X\212Di8\2139@\212dH1\2130I\212-Qy\213)Q\210\361\254"
.ascii ",T|\360\214\250\004(Px\361\210\227&\250Y\230\254\214\002&Ff\360"
.ascii "\211\234\250$pYDi8dH1-Qy\251\210\361\013\360 Yp\253\361\023\360"
.ascii "8@i\250"
.string "\361\033\3601H`\214\250<A\\ |"
.ascii "\361\207\230\031\206\250nv~\251\231\210-U}\263\213\264\227\273"
.ascii "\253\370\371\271\243\332\303\305\307\331-Mm\330\260\214\270\254"
.ascii "\370\371\250\332\303\305\307\331-Mm\330\363\271\254\336\330\261"
.ascii "\266\271\361\250\370\363\271\252\372\371\321\332\362\212\312"
.ascii "\364\bV\363\261\207\335\302\302\361\214\304\334\363\271\254\370"
.ascii "\330\362\262\266\272\255\372\215\235\2539\331\255\337\364\bz"
.ascii "\335\362\261\207\265\232\b\b\361\261\203\302\304\306\334\363"
.ascii "\271\254\370\330\363\262\266\272\255\370\215\235\253\021\331"
.ascii "\255\336\364\b\236\335\362\261\207\265\232((\361\260\210\302"
.ascii "\304\306\334\363\271\254\370\330\363\262\266\272\255\372\215"
.ascii "\235\2539\331\255\337\364\b\301\335\363\261\207\265\232\b\362"
.ascii "\362\210\302\304\306\334\363\271\254\370\330\362\262\266\272"
.ascii "\256\370\216\236\253\021\331\256\336\364\b\344\335\363\261\207"
.ascii "\265\232h\362\260\200\300\310\302\334\363\271\254\370\330\362"
.ascii "\262\266\272\256\372\216\236\2539\331\256\337\364\t\007\335\362"
.ascii "\261\207\265\232"
.string "h\362\260\200\304\314\306\334\363\271\254\370\330\362\260\210\271\250\303\305\307\261\265\271\363\254\372\371\321\332\364\t.\330\363\254\370\371\321\332\361\271\252\337\364\tI\331\364\tK\330\363\254\370\371\321\331\364\tY\330\362\214\254\370\371\321\331\302\330\362\371\331\336\364\tU\tl\te\332\362\335\306\334\364\tA\361\271\252\337\330\361\253\372\213\233\243i\331\364\tm\tm\332\361\271\253\337\376\330\361\273\263\267\252\371\332\377\331\200\232\252(\264\200\230\247 \330\267\207\252\320\301\247\201\227b\223\360qq`\205\224\001)Qy\220\245\361(Ll\207\f\225\030\205x\260\264\270\207\230\245 \203\225\"\267\223\36011 \216\264\224\001)Qy\227\256\361(Ll\205\f\236\030\216x\207\230\245 \203\225\"\267\223\36011 \262\201\264\224\001\225)Qy\227\272\241\361(Ll\260\205\f\266\221\030\262\201x\260\207\264\230\272\253 \262\206\266\233\002\267\223\360\021\021"
.string "\204\266\227\001)Qy\264\227\244\361(Ll\213\f\266\224\030\262\204x\273\243\263\203\267\220(Ll\212l\330\362\260\203\264\223\270\243q\331\320\370\365\216\236\271\243x\361\261\212\265\223E\262\214.\261\212T\203\252\320\306\365\262\201\266\221\243x\361\261\212\265\223e\262\214.\261\212t\203\252\320\307\330\362\260\203\270\245\306\371\243\264\225A\331\361\261\212\272\246\305\307\262\266\271\206\226\243P\261\203\265\223\004,\363\270\243\320\370\371\321\333\361\266\234\271\243\320V\330\362\260\203\264\225\270\243A\333\363\227I\361\261\203\266\234\271\243\320^\330\362\260\203\270\243\264\225A\331\363\243\320\336\370\361\261\203\266\226\271\243\333i\212\t\363\270\243\320\336\362\255\337\361\263\206\272\240\300\330\362\260\203\270\243\264\225A\331\320\336\330\363\273\263\267\220\242\202"
.ascii "\362\020\361\262\202\265\233\272\242\320d\362\263\202\253\302"
.ascii "\370\371\321\361\271\244\331\336\332\370\330\362\273\257\200"
.ascii "\267\222P\217\r\333\361\261\204\265\224!\331\365\263\205\267"
.ascii "\225\271\243x\361\261\200\265\220\240\032\360\223@\365\262\204"
.ascii "\266\224\243x\361\261\200\265\220\240>\360\223@\330\361\271\243"
.ascii "\320\337\260\215\265\220\271\243\n\261\200\223\005\331\320\370"
.ascii "\330\362\263\200\267\222\273\257P\370\217\r\333\361\261\204\265"
.ascii "\224\271\243!\320\372\330\361\271\243\320\372\371\321\331\361"
.ascii "\262\204\273\250\320\304\307\363\271\244\320\336\332\361\263"
.ascii "\205\273\250\320\304\307\363\271\244\320\336\370\337\370\330"
.ascii "\363\261\204\267\220\271\243i\333\263\200\265\224\021\331\362"
.ascii "\244\320\336\330\362\273\257\267\222\263\202\031\200\242\331"
.ascii "&\363\247\320\337\330\361\257\211\230\031\251\200\3318\330\257"
.ascii "\2119\251\200\332<\330\257.\210\365u\332\377\330q\200\251\332"
.ascii "\361\377\330\202\247\363\301\362\200\302\361\227\206I.\246\320"
.ascii "P\226\206\257u\331\210\242\320\363\300\303"
.string "\361\332\217\226\242\320\363\302\303\202\264\223xx\361\330\200\267\220\257\r\211\231\257\020\200\237!\332.\330\211\231\2571\200\332.\330\257\202\222\363A\200\361\331.\330\257\202\363\031\200\361\331.\330\361\211\220\257\320\t\217\231\257Q\333\2111\363\202\222\031\362\261\204\265\224q\331\361\337\371\362\271\244\320\370\370\363\337\330\263\267\273\202\254\363\300\242\200\"\361\251\"&\237\257)\332\254\336\377\330\242\362\336\361\251\337\363\270\243\320\370\371\321\331\377\330\362\262\266\272\242\320\336\370\361\260\207\220\253\320~\262\200\267\226\253\001\213\266\222\253\005\333\202\233y\363\261\204\264\227I\362\242\320\370\330\363\271\244\320\370\371\321\331\362\272\242\320\370\330\263\267\273\227\214\257\363y\332\361\361\361\361\261\210\271\254\320\300\263\363\363\363\271\252\372\361\273\252\320\370\364\f\310\330\363\247\320\372\227\214\257y\332\361\207\232\252\320p\330\362\202\222\2571\331\361\336\262\202\266\222\314\263\217\267\226\246"
.string "\254\214\234\f0\333\262\266\272\202\222\2539\363\261\204\264\227I\331\361\262\266\200\220\240\320^\360\2228\330\361\262\202\272\253\306\363\271\244\320\370\371\321\331\361\213\264\227\272\253\002\330\362\263\202\267\222\273\2571\331\361\262\266\272\203\223\243\320^\360\233 \361\273\254\336\320\336\272\242\320\337\361\377\330\363\271\244\320\370\371\321\331\362\273\242\372\370\332\362\273\242\372\330\362\263\267\273\200\222\257I\321\331\361\271\244\336\240\336\337\330\361\214\234\273\254\320\020\254\336\272\242\320\337\273\222\202\257\361\312\3625\361\226\217\246\331"
.ascii "\330\377"
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "%s"
.text
.align 2
.global taC
.type taC, %function
taC:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
beq .L12
str wzr, [sp, 48]
mov w0, 40
str w0, [sp, 52]
ldrsw x0, [sp, 52]
bl malloc
str x0, [sp, 56]
b .L4
.L11:
ldr w0, [sp, 52]
add w0, w0, 40
str w0, [sp, 52]
ldrsw x0, [sp, 52]
mov x1, x0
ldr x0, [sp, 56]
bl realloc
str x0, [sp, 56]
.L5:
ldrsw x0, [sp, 48]
ldr x1, [sp, 56]
add x0, x1, x0
ldrb w1, [sp, 47]
strb w1, [x0]
ldrb w0, [sp, 47]
cmp w0, 10
beq .L13
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
.L4:
ldr x0, [sp, 24]
bl getc
strb w0, [sp, 47]
ldr w1, [sp, 48]
ldr w0, [sp, 52]
cmp w1, w0
blt .L5
b .L11
.L13:
nop
ldr x0, [sp, 24]
bl taC
ldr x1, [sp, 56]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
ldr x0, [sp, 56]
bl free
str xzr, [sp, 56]
b .L1
.L12:
nop
.L1:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size taC, .-taC
.align 2
.global main
.type main, %function
main:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
adrp x0, :got:stdin
ldr x0, [x0, #:got_lo12:stdin]
ldr x0, [x0]
bl taC
mov w0, 0
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "TAP version 13"
.text
.align 2
.global print_version
.type print_version, %function
print_version:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size print_version, .-print_version
.section .rodata
.align 3
.LC1:
.string "#"
.align 3
.LC2:
.string "1..%d\n"
.align 3
.LC3:
.string "# total %d\n"
.align 3
.LC4:
.string "# pass %d\n"
.align 3
.LC5:
.string "# ok"
.text
.align 2
.global print_summary
.type print_summary, %function
print_summary:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str w0, [sp, 28]
str w1, [sp, 24]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl puts
ldr w1, [sp, 28]
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
ldr w1, [sp, 28]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
ldr w1, [sp, 24]
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl puts
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl puts
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size print_summary, .-print_summary
.section .rodata
.align 3
.LC6:
.string " ---"
.align 3
.LC7:
.string " iterations: %d\n"
.align 3
.LC8:
.string " elapsed: %0.9f\n"
.align 3
.LC9:
.string " rate: %0.9f\n"
.align 3
.LC10:
.string " ..."
.text
.align 2
.global print_results
.type print_results, %function
print_results:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str d0, [sp, 24]
ldr d0, [sp, 24]
mov x0, 145685290680320
movk x0, 0x412e, lsl 48
fmov d1, x0
fdiv d0, d1, d0
str d0, [sp, 40]
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl puts
mov w1, 16960
movk w1, 0xf, lsl 16
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl printf
ldr d0, [sp, 24]
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl printf
ldr d0, [sp, 40]
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl printf
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl puts
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size print_results, .-print_results
.align 2
.global tic
.type tic, %function
tic:
.LFB9:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 40]
mov x1, 0
add x0, sp, 24
mov x1, 0
bl gettimeofday
ldr d0, [sp, 24]
scvtf d1, d0
ldr d0, [sp, 32]
scvtf d0, d0
mov x0, 145685290680320
movk x0, 0x412e, lsl 48
fmov d2, x0
fdiv d0, d0, d2
fadd d0, d1, d0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 40]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L6
bl __stack_chk_fail
.L6:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size tic, .-tic
.align 2
.global rand_double
.type rand_double, %function
rand_double:
.LFB10:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
bl rand
str w0, [sp, 28]
ldr w0, [sp, 28]
scvtf d0, w0
mov x0, 4746794007248502784
fmov d1, x0
fdiv d0, d0, d1
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size rand_double, .-rand_double
.section .rodata
.align 3
.LC11:
.string "should not return NaN"
.text
.align 2
.global benchmark
.type benchmark, %function
benchmark:
.LFB11:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
bl tic
str d0, [sp, 40]
str wzr, [sp, 28]
b .L10
.L13:
bl rand_double
fmov d1, d0
fmov d0, 2.0e+1
fmul d1, d1, d0
fmov d0, 1.0e+1
fsub d0, d1, d0
str d0, [sp, 48]
ldr d0, [sp, 48]
bl sin
str d0, [sp, 32]
ldr d1, [sp, 32]
ldr d0, [sp, 32]
fcmp d1, d0
beq .L11
adrp x0, .LC11
add x0, x0, :lo12:.LC11
bl puts
b .L12
.L11:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L10:
ldr w1, [sp, 28]
mov w0, 16959
movk w0, 0xf, lsl 16
cmp w1, w0
ble .L13
.L12:
bl tic
fmov d1, d0
ldr d0, [sp, 40]
fsub d0, d1, d0
str d0, [sp, 56]
ldr d1, [sp, 32]
ldr d0, [sp, 32]
fcmp d1, d0
beq .L14
adrp x0, .LC11
add x0, x0, :lo12:.LC11
bl puts
.L14:
ldr d0, [sp, 56]
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size benchmark, .-benchmark
.section .rodata
.align 3
.LC12:
.string "sin"
.align 3
.LC13:
.string "# c::%s\n"
.align 3
.LC14:
.string "ok %d benchmark finished\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB12:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
mov x0, 0
bl time
bl srand
bl print_version
str wzr, [sp, 20]
b .L17
.L18:
adrp x0, .LC12
add x1, x0, :lo12:.LC12
adrp x0, .LC13
add x0, x0, :lo12:.LC13
bl printf
bl benchmark
str d0, [sp, 24]
ldr d0, [sp, 24]
bl print_results
ldr w0, [sp, 20]
add w0, w0, 1
mov w1, w0
adrp x0, .LC14
add x0, x0, :lo12:.LC14
bl printf
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
.L17:
ldr w0, [sp, 20]
cmp w0, 2
ble .L18
mov w1, 3
mov w0, 3
bl print_summary
mov w0, 0
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE12:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global mem
.bss
.align 3
.type mem, %object
.size mem, 10816
mem:
.zero 10816
.global cuts
.align 3
.type cuts, %object
.size cuts, 208
cuts:
.zero 208
.global ncuts
.align 2
.type ncuts, %object
.size ncuts, 4
ncuts:
.zero 4
.section .rodata
.align 3
.LC0:
.string "%d"
.text
.align 2
.global load_stick
.type load_stick, %function
load_stick:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 24]
mov x1, 0
add x0, sp, 16
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
ldr w0, [sp, 16]
cmp w0, 0
bne .L2
mov w0, 0
b .L6
.L2:
adrp x0, ncuts
add x1, x0, :lo12:ncuts
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
str wzr, [sp, 20]
b .L4
.L5:
ldr w0, [sp, 20]
add w0, w0, 1
sxtw x0, w0
lsl x1, x0, 2
adrp x0, cuts
add x0, x0, :lo12:cuts
add x0, x1, x0
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
.L4:
adrp x0, ncuts
add x0, x0, :lo12:ncuts
ldr w0, [x0]
ldr w1, [sp, 20]
cmp w1, w0
blt .L5
adrp x0, ncuts
add x0, x0, :lo12:ncuts
ldr w0, [x0]
add w1, w0, 1
ldr w2, [sp, 16]
adrp x0, cuts
add x0, x0, :lo12:cuts
sxtw x1, w1
str w2, [x0, x1, lsl 2]
adrp x0, cuts
add x0, x0, :lo12:cuts
str wzr, [x0]
adrp x0, ncuts
add x0, x0, :lo12:ncuts
ldr w0, [x0]
add w1, w0, 2
adrp x0, ncuts
add x0, x0, :lo12:ncuts
str w1, [x0]
mov w0, 1
.L6:
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 24]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L7
bl __stack_chk_fail
.L7:
mov w0, w1
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size load_stick, .-load_stick
.align 2
.global cost
.type cost, %function
cost:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -48
str w0, [sp, 44]
str w1, [sp, 40]
mov w0, 2147483647
str w0, [sp, 52]
adrp x0, mem
add x2, x0, :lo12:mem
ldrsw x3, [sp, 40]
ldrsw x1, [sp, 44]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 2
add x0, x0, x3
ldr w0, [x2, x0, lsl 2]
cmp w0, 0
blt .L9
adrp x0, mem
add x2, x0, :lo12:mem
ldrsw x3, [sp, 40]
ldrsw x1, [sp, 44]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 2
add x0, x0, x3
ldr w0, [x2, x0, lsl 2]
b .L10
.L9:
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 48]
b .L11
.L12:
ldr w1, [sp, 48]
ldr w0, [sp, 44]
bl cost
mov w19, w0
ldr w1, [sp, 40]
ldr w0, [sp, 48]
bl cost
add w0, w19, w0
str w0, [sp, 56]
ldr w0, [sp, 52]
str w0, [sp, 60]
ldr w0, [sp, 56]
ldr w2, [sp, 60]
ldr w1, [sp, 60]
cmp w2, w0
csel w0, w1, w0, le
str w0, [sp, 52]
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
.L11:
ldr w1, [sp, 48]
ldr w0, [sp, 40]
cmp w1, w0
blt .L12
adrp x0, cuts
add x0, x0, :lo12:cuts
ldrsw x1, [sp, 40]
ldr w1, [x0, x1, lsl 2]
ldr w0, [sp, 52]
add w1, w1, w0
adrp x0, cuts
add x0, x0, :lo12:cuts
ldrsw x2, [sp, 44]
ldr w0, [x0, x2, lsl 2]
sub w3, w1, w0
adrp x0, mem
add x2, x0, :lo12:mem
ldrsw x4, [sp, 40]
ldrsw x1, [sp, 44]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 2
add x0, x0, x4
str w3, [x2, x0, lsl 2]
adrp x0, mem
add x2, x0, :lo12:mem
ldrsw x3, [sp, 40]
ldrsw x1, [sp, 44]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 2
add x0, x0, x3
ldr w0, [x2, x0, lsl 2]
.L10:
ldr x19, [sp, 16]
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size cost, .-cost
.align 2
.global min_cost
.type min_cost, %function
min_cost:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
mov x2, 10816
mov w1, -1
adrp x0, mem
add x0, x0, :lo12:mem
bl memset
strh wzr, [sp, 30]
b .L14
.L15:
ldrsh w1, [sp, 30]
ldrsh w0, [sp, 30]
add w3, w0, 1
adrp x0, mem
add x2, x0, :lo12:mem
sxtw x3, w3
sxtw x1, w1
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 2
add x0, x0, x3
str wzr, [x2, x0, lsl 2]
ldrsh w0, [sp, 30]
and w0, w0, 65535
add w0, w0, 1
and w0, w0, 65535
strh w0, [sp, 30]
.L14:
ldrsh w1, [sp, 30]
adrp x0, ncuts
add x0, x0, :lo12:ncuts
ldr w0, [x0]
cmp w1, w0
blt .L15
adrp x0, ncuts
add x0, x0, :lo12:ncuts
ldr w0, [x0]
sub w0, w0, #1
mov w1, w0
mov w0, 0
bl cost
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size min_cost, .-min_cost
.section .rodata
.align 3
.LC1:
.string "The minimum cutting is %d.\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB9:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
b .L18
.L19:
bl min_cost
mov w1, w0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
.L18:
bl load_stick
cmp w0, 0
bne .L19
mov w0, 0
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global gfbyte
.type gfbyte, %function
gfbyte:
.LFB0:
.cfi_startproc
mov w0, 0
ret
.cfi_endproc
.LFE0:
.size gfbyte, .-gfbyte
.align 2
.global main
.type main, %function
main:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
bl gfbyte
str w0, [sp, 24]
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
ldr w0, [sp, 24]
cmp w0, 0
bne .L4
str wzr, [sp, 20]
b .L5
.L4:
ldr w0, [sp, 24]
str w0, [sp, 20]
.L5:
ldr w0, [sp, 24]
cmp w0, 1
beq .L6
bl abort
.L6:
mov w0, 1
str w0, [sp, 20]
ldr w1, [sp, 20]
ldr w0, [sp, 24]
cmp w1, w0
bgt .L7
.L8:
bl gfbyte
str w0, [sp, 28]
ldr w0, [sp, 20]
add w1, w0, 1
str w1, [sp, 20]
ldr w1, [sp, 24]
cmp w1, w0
bgt .L8
.L7:
mov w0, 0
bl exit
.cfi_endproc
.LFE1:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global max_
.type max_, %function
max_:
.LFB6:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, 12]
str w1, [sp, 8]
ldr w1, [sp, 12]
ldr w0, [sp, 8]
cmp w1, w0
blt .L2
ldr w0, [sp, 12]
str w0, [sp, 28]
b .L3
.L2:
ldr w0, [sp, 8]
str w0, [sp, 28]
.L3:
ldr w0, [sp, 28]
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size max_, .-max_
.section .rodata
.align 3
.LC0:
.string "%d"
.align 3
.LC1:
.string "%d %d"
.text
.align 2
.global main
.type main, %function
main:
.LFB7:
.cfi_startproc
sub x12, sp, #393216
.cfi_def_cfa 12, 393216
.LPSRL0:
sub sp, sp, 65536
str xzr, [sp, 1024]
cmp sp, x12
b.ne .LPSRL0
.cfi_def_cfa_register 31
mov x12, 6848
sub sp, sp, x12
.cfi_def_cfa_offset 400064
stp x29, x30, [sp]
.cfi_offset 29, -400064
.cfi_offset 30, -400056
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
add x1, sp, 393216
ldr x2, [x0]
str x2, [x1, 6840]
mov x2, 0
add x0, sp, 48
mov x1, 6788
movk x1, 0x6, lsl 16
mov x2, x1
mov w1, 0
bl memset
add x0, sp, 16
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
str wzr, [sp, 28]
mov w0, 1
str w0, [sp, 32]
b .L6
.L7:
add x0, sp, 20
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
ldr w3, [sp, 20]
sxtw x0, w3
lsl x0, x0, 2
add x1, sp, 48
ldr w0, [x1, x0]
add w2, w0, 1
sxtw x0, w3
lsl x0, x0, 2
add x1, sp, 48
str w2, [x1, x0]
ldr w0, [sp, 20]
mov w1, w0
ldr w0, [sp, 28]
bl max_
str w0, [sp, 28]
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L6:
ldr w0, [sp, 16]
ldr w1, [sp, 32]
cmp w1, w0
ble .L7
add x0, sp, 24
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
str wzr, [sp, 40]
ldr w0, [sp, 28]
str w0, [sp, 44]
b .L8
.L10:
ldrsw x0, [sp, 44]
lsl x0, x0, 2
add x1, sp, 48
ldr w0, [x1, x0]
cmp w0, 0
beq .L9
ldr w0, [sp, 44]
str w0, [sp, 36]
ldr w0, [sp, 40]
add w0, w0, 1
str w0, [sp, 40]
.L9:
ldr w0, [sp, 44]
sub w0, w0, #1
str w0, [sp, 44]
.L8:
ldr w0, [sp, 24]
ldr w1, [sp, 40]
cmp w1, w0
blt .L10
ldrsw x0, [sp, 36]
lsl x0, x0, 2
add x1, sp, 48
ldr w0, [x1, x0]
mov w2, w0
ldr w1, [sp, 36]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
add x3, sp, 393216
ldr x4, [x3, 6840]
ldr x2, [x0]
subs x4, x4, x2
mov x2, 0
beq .L12
bl __stack_chk_fail
.L12:
mov w0, w1
ldp x29, x30, [sp]
.cfi_restore 29
.cfi_restore 30
add sp, sp, 2752
.cfi_def_cfa_offset 397312
add sp, sp, 397312
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.local args
.comm args,16,8
.section .rodata
.align 3
.LC0:
.string "ln (Nanvix Coreutils) %d.%d\n\n"
.align 3
.LC1:
.string "Copyright(C) 2011-2014 Pedro H. Penna"
.align 3
.LC2:
.string "This is free software under the "
.align 3
.LC3:
.string "GNU General Public License Version 3."
.align 3
.LC4:
.string "There is NO WARRANTY, to the extent permitted by law.\n"
.text
.align 2
.type version, %function
version:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
mov w2, 0
mov w1, 1
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl puts
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl puts
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl puts
mov w0, 0
bl exit
.cfi_endproc
.LFE6:
.size version, .-version
.section .rodata
.align 3
.LC5:
.string "Usage: ln [options] <source file> <taget file>\n"
.align 3
.LC6:
.string "Brief: Creates a link between two files.\n"
.align 3
.LC7:
.string "Options:"
.align 3
.LC8:
.string " --help Display this information and exit"
.align 3
.LC9:
.string " --version Display program version and exit"
.text
.align 2
.type usage, %function
usage:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl puts
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl puts
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl puts
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl puts
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl puts
mov w0, 0
bl exit
.cfi_endproc
.LFE7:
.size usage, .-usage
.section .rodata
.align 3
.LC10:
.string "--help"
.align 3
.LC11:
.string "--version"
.align 3
.LC12:
.string "ln: missing arguments\n"
.text
.align 2
.type getargs, %function
getargs:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
mov w0, 1
str w0, [sp, 36]
mov w0, 1
str w0, [sp, 32]
b .L4
.L9:
ldrsw x0, [sp, 32]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
ldr x0, [x0]
str x0, [sp, 40]
adrp x0, .LC10
add x1, x0, :lo12:.LC10
ldr x0, [sp, 40]
bl strcmp
cmp w0, 0
bne .L5
bl usage
b .L6
.L5:
adrp x0, .LC11
add x1, x0, :lo12:.LC11
ldr x0, [sp, 40]
bl strcmp
cmp w0, 0
bne .L7
bl version
b .L6
.L7:
ldr w0, [sp, 36]
cmp w0, 1
bne .L8
adrp x0, args
add x0, x0, :lo12:args
ldr x1, [sp, 40]
str x1, [x0]
mov w0, 2
str w0, [sp, 36]
b .L6
.L8:
ldr w0, [sp, 36]
cmp w0, 2
bne .L6
adrp x0, args
add x0, x0, :lo12:args
ldr x1, [sp, 40]
str x1, [x0, 8]
str wzr, [sp, 36]
.L6:
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L4:
ldr w1, [sp, 32]
ldr w0, [sp, 28]
cmp w1, w0
blt .L9
adrp x0, args
add x0, x0, :lo12:args
ldr x0, [x0]
cmp x0, 0
beq .L10
adrp x0, args
add x0, x0, :lo12:args
ldr x0, [x0, 8]
cmp x0, 0
bne .L12
.L10:
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 22
mov x1, 1
adrp x0, .LC12
add x0, x0, :lo12:.LC12
bl fwrite
bl usage
.L12:
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size getargs, .-getargs
.section .rodata
.align 3
.LC13:
.string "ln: cannot link()\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB9:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
ldr x1, [sp, 16]
ldr w0, [sp, 28]
bl getargs
adrp x0, args
add x0, x0, :lo12:args
ldr x2, [x0]
adrp x0, args
add x0, x0, :lo12:args
ldr x0, [x0, 8]
mov x1, x0
mov x0, x2
bl link
cmp w0, 0
bge .L14
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 18
mov x1, 1
adrp x0, .LC13
add x0, x0, :lo12:.LC13
bl fwrite
mov w0, 1
b .L15
.L14:
mov w0, 0
.L15:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global cstpncpy
.type cstpncpy, %function
cstpncpy:
.LFB6:
.cfi_startproc
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, 24]
str x1, [sp, 16]
str x2, [sp, 8]
ldr x0, [sp, 8]
cmp x0, 0
beq .L2
ldr x0, [sp, 24]
str x0, [sp, 32]
ldr x0, [sp, 16]
str x0, [sp, 40]
ldr x1, [sp, 24]
ldr x0, [sp, 8]
add x0, x1, x0
str x0, [sp, 24]
.L6:
ldr x1, [sp, 40]
add x0, x1, 1
str x0, [sp, 40]
ldr x0, [sp, 32]
add x2, x0, 1
str x2, [sp, 32]
ldrb w1, [x1]
strb w1, [x0]
ldrb w0, [x0]
cmp w0, 0
bne .L3
ldr x0, [sp, 32]
sub x0, x0, #1
str x0, [sp, 24]
b .L4
.L5:
ldr x0, [sp, 32]
add x1, x0, 1
str x1, [sp, 32]
strb wzr, [x0]
.L4:
ldr x0, [sp, 8]
sub x0, x0, #1
str x0, [sp, 8]
ldr x0, [sp, 8]
cmp x0, 0
bne .L5
b .L2
.L3:
ldr x0, [sp, 8]
sub x0, x0, #1
str x0, [sp, 8]
ldr x0, [sp, 8]
cmp x0, 0
bne .L6
.L2:
ldr x0, [sp, 24]
add sp, sp, 48
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size cstpncpy, .-cstpncpy
.align 2
.global main
.type main, %function
main:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
.cfi_def_cfa_register 29
sub sp, sp, #16
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [x29, 40]
mov x1, 0
bl __VERIFIER_nondet_int
str w0, [x29, 16]
bl __VERIFIER_nondet_int
str w0, [x29, 20]
ldr w0, [x29, 16]
cmp w0, 0
bgt .L9
mov w0, 1
str w0, [x29, 16]
.L9:
ldr w0, [x29, 20]
cmp w0, 0
bgt .L10
mov w0, 1
str w0, [x29, 20]
.L10:
ldrsw x0, [x29, 20]
add x0, x0, 15
lsr x0, x0, 4
lsl x0, x0, 4
and x1, x0, -65536
sub x1, sp, x1
.L11:
cmp sp, x1
beq .L12
sub sp, sp, #65536
str xzr, [sp, 1024]
b .L11
.L12:
and x1, x0, 65535
sub sp, sp, x1
str xzr, [sp]
and x0, x0, 65535
cmp x0, 1024
bcc .L13
str xzr, [sp, 1024]
.L13:
add x0, sp, 16
add x0, x0, 15
lsr x0, x0, 4
lsl x0, x0, 4
str x0, [x29, 24]
ldrsw x0, [x29, 16]
add x0, x0, 15
lsr x0, x0, 4
lsl x0, x0, 4
and x1, x0, -65536
sub x1, sp, x1
.L14:
cmp sp, x1
beq .L15
sub sp, sp, #65536
str xzr, [sp, 1024]
b .L14
.L15:
and x1, x0, 65535
sub sp, sp, x1
str xzr, [sp]
and x0, x0, 65535
cmp x0, 1024
bcc .L16
str xzr, [sp, 1024]
.L16:
add x0, sp, 16
add x0, x0, 15
lsr x0, x0, 4
lsl x0, x0, 4
str x0, [x29, 32]
ldrsw x0, [x29, 16]
sub x0, x0, #1
ldr x1, [x29, 32]
add x0, x1, x0
strb wzr, [x0]
ldrsw x0, [x29, 20]
mov x2, x0
ldr x1, [x29, 32]
ldr x0, [x29, 24]
bl cstpncpy
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [x29, 40]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L18
bl __stack_chk_fail
.L18:
mov w0, w1
mov sp, x29
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa 31, 0
ret
.cfi_endproc
.LFE7:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Usage: ./agora [input.file]"
.align 3
.LC1:
.string "r"
.align 3
.LC2:
.string "%d"
.align 3
.LC3:
.string "Failed to read"
.align 3
.LC4:
.string "%ld %d\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -144]!
.cfi_def_cfa_offset 144
.cfi_offset 29, -144
.cfi_offset 30, -136
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -128
str w0, [sp, 44]
str x1, [sp, 32]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 136]
mov x1, 0
ldr w0, [sp, 44]
cmp w0, 1
bgt .L2
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
mov w0, 1
bl exit
.L2:
ldr x0, [sp, 32]
add x0, x0, 8
ldr x2, [x0]
adrp x0, .LC1
add x1, x0, :lo12:.LC1
mov x0, x2
bl fopen
str x0, [sp, 96]
add x0, sp, 60
mov x2, x0
adrp x0, .LC2
add x1, x0, :lo12:.LC2
ldr x0, [sp, 96]
bl __isoc99_fscanf
cmp w0, 0
bne .L3
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl puts
ldr x0, [sp, 96]
bl fclose
mov w0, 1
bl exit
.L3:
str wzr, [sp, 64]
ldr w0, [sp, 60]
sxtw x0, w0
lsl x0, x0, 2
bl malloc
str x0, [sp, 104]
ldr w0, [sp, 60]
sxtw x0, w0
lsl x0, x0, 3
bl malloc
str x0, [sp, 112]
ldr w0, [sp, 60]
sxtw x0, w0
lsl x0, x0, 3
bl malloc
str x0, [sp, 120]
nop
.L4:
ldr w0, [sp, 64]
add w1, w0, 1
str w1, [sp, 64]
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 104]
add x0, x1, x0
mov x2, x0
adrp x0, .LC2
add x1, x0, :lo12:.LC2
ldr x0, [sp, 96]
bl __isoc99_fscanf
cmp w0, 1
beq .L4
ldr x0, [sp, 96]
bl fclose
ldr x0, [sp, 104]
ldr w0, [x0]
sxtw x1, w0
ldr x0, [sp, 112]
str x1, [x0]
ldr w0, [sp, 60]
sxtw x0, w0
lsl x0, x0, 2
sub x0, x0, #4
ldr x1, [sp, 104]
add x0, x1, x0
ldr w2, [x0]
ldr w0, [sp, 60]
sxtw x0, w0
lsl x0, x0, 3
sub x0, x0, #8
ldr x1, [sp, 120]
add x0, x1, x0
sxtw x1, w2
str x1, [x0]
mov w0, 1
str w0, [sp, 64]
b .L5
.L6:
ldrsw x0, [sp, 64]
lsl x0, x0, 3
sub x0, x0, #8
ldr x1, [sp, 112]
add x0, x1, x0
ldr x2, [x0]
ldrsw x0, [sp, 64]
lsl x0, x0, 2
ldr x1, [sp, 104]
add x0, x1, x0
ldr w0, [x0]
sxtw x3, w0
ldrsw x0, [sp, 64]
lsl x0, x0, 3
ldr x1, [sp, 112]
add x19, x1, x0
mov x1, x3
mov x0, x2
bl findlcm
str x0, [x19]
ldr w1, [sp, 60]
ldr w0, [sp, 64]
sub w0, w1, w0
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 120]
add x0, x1, x0
ldr x2, [x0]
ldr w1, [sp, 60]
ldr w0, [sp, 64]
sub w0, w1, w0
sxtw x0, w0
lsl x0, x0, 2
sub x0, x0, #4
ldr x1, [sp, 104]
add x0, x1, x0
ldr w0, [x0]
sxtw x3, w0
ldr w1, [sp, 60]
ldr w0, [sp, 64]
sub w0, w1, w0
sxtw x0, w0
lsl x0, x0, 3
sub x0, x0, #8
ldr x1, [sp, 120]
add x19, x1, x0
mov x1, x3
mov x0, x2
bl findlcm
str x0, [x19]
ldr w0, [sp, 64]
add w0, w0, 1
str w0, [sp, 64]
.L5:
ldr w0, [sp, 60]
ldr w1, [sp, 64]
cmp w1, w0
blt .L6
ldr w0, [sp, 60]
sxtw x0, w0
lsl x0, x0, 3
sub x0, x0, #8
ldr x1, [sp, 112]
add x0, x1, x0
ldr x0, [x0]
str x0, [sp, 80]
mov x0, -1
str x0, [sp, 88]
str wzr, [sp, 68]
str wzr, [sp, 72]
str wzr, [sp, 76]
mov w0, 1
str w0, [sp, 64]
b .L7
.L10:
ldrsw x0, [sp, 64]
lsl x0, x0, 3
sub x0, x0, #8
ldr x1, [sp, 112]
add x0, x1, x0
ldr x1, [x0]
ldrsw x0, [sp, 64]
add x0, x0, 1
lsl x0, x0, 3
ldr x2, [sp, 120]
add x0, x2, x0
ldr x0, [x0]
cmp x1, x0
bne .L8
ldr w0, [sp, 64]
add w0, w0, 1
str w0, [sp, 76]
ldrsw x0, [sp, 64]
lsl x0, x0, 3
sub x0, x0, #8
ldr x1, [sp, 112]
add x0, x1, x0
ldr x0, [x0]
str x0, [sp, 88]
ldr w0, [sp, 72]
add w0, w0, 1
str w0, [sp, 72]
b .L9
.L8:
ldrsw x0, [sp, 64]
lsl x0, x0, 3
sub x0, x0, #8
ldr x1, [sp, 112]
add x0, x1, x0
ldr x2, [x0]
ldrsw x0, [sp, 64]
add x0, x0, 1
lsl x0, x0, 3
ldr x1, [sp, 120]
add x0, x1, x0
ldr x0, [x0]
mov x1, x0
mov x0, x2
bl findlcm
str x0, [sp, 128]
ldr x1, [sp, 128]
ldr x0, [sp, 80]
cmp x1, x0
bge .L9
ldr x0, [sp, 128]
cmp x0, 0
ble .L9
ldr x0, [sp, 128]
str x0, [sp, 80]
ldr w0, [sp, 64]
add w0, w0, 1
str w0, [sp, 68]
.L9:
ldr w0, [sp, 64]
add w0, w0, 1
str w0, [sp, 64]
.L7:
ldr w0, [sp, 60]
sub w0, w0, #1
ldr w1, [sp, 64]
cmp w1, w0
blt .L10
ldr x0, [sp, 88]
cmn x0, #1
beq .L11
ldr w0, [sp, 72]
cmp w0, 1
bne .L11
ldr w2, [sp, 76]
ldr x1, [sp, 88]
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
b .L12
.L11:
ldr w2, [sp, 68]
ldr x1, [sp, 80]
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
.L12:
ldr x0, [sp, 104]
bl free
ldr x0, [sp, 112]
bl free
ldr x0, [sp, 120]
bl free
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 136]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L14
bl __stack_chk_fail
.L14:
mov w0, w1
ldr x19, [sp, 16]
ldp x29, x30, [sp], 144
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
.align 2
.global gcd
.type gcd, %function
gcd:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
ldr x0, [sp, 16]
cmp x0, 0
bne .L16
ldr x0, [sp, 24]
b .L17
.L16:
ldr x0, [sp, 24]
ldr x1, [sp, 16]
sdiv x2, x0, x1
ldr x1, [sp, 16]
mul x1, x2, x1
sub x0, x0, x1
mov x1, x0
ldr x0, [sp, 16]
bl gcd
.L17:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size gcd, .-gcd
.align 2
.global findlcm
.type findlcm, %function
findlcm:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
ldr x1, [sp, 16]
ldr x0, [sp, 24]
bl gcd
sxtw x0, w0
ldr x1, [sp, 16]
sdiv x1, x1, x0
ldr x0, [sp, 24]
mul x0, x1, x0
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size findlcm, .-findlcm
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global IID_ICiCDocName
.section .rodata
.align 3
.type IID_ICiCDocName, %object
.size IID_ICiCDocName, 24
IID_ICiCDocName:
.xword 1986089078
.hword 15403
.hword 4560
.string "\214\220"
.ascii " \257\035t\016"
.zero 4
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "r"
.align 3
.LC1:
.string "myfile.txt"
.align 3
.LC2:
.string "Can't find the source file."
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl fopen
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
bne .L2
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
mov w0, 1
b .L3
.L2:
ldr x0, [sp, 24]
bl fgetc
str w0, [sp, 20]
ldr x0, [sp, 24]
bl feof
cmp w0, 0
bne .L7
ldr w0, [sp, 20]
bl putchar
b .L2
.L7:
nop
ldr x0, [sp, 24]
bl fclose
mov w0, 0
.L3:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.data
.align 3
.type junk, %object
.size junk, 30
junk:
.string "\n@(#)LIBF77 VERSION 19990503\n"
.text
.align 2
.type spow_ui, %function
spow_ui:
.LFB10:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str s0, [sp, 12]
str w0, [sp, 8]
fmov s0, 1.0e+0
str s0, [sp, 20]
ldr w0, [sp, 8]
cmp w0, 0
beq .L2
ldr w0, [sp, 8]
cmp w0, 0
bge .L3
ldr w0, [sp, 8]
neg w0, w0
str w0, [sp, 8]
ldr s0, [sp, 12]
fmov s1, 1.0e+0
fdiv s0, s1, s0
str s0, [sp, 12]
.L3:
ldrsw x0, [sp, 8]
str x0, [sp, 24]
.L7:
ldr x0, [sp, 24]
and x0, x0, 1
cmp x0, 0
beq .L4
ldr s1, [sp, 20]
ldr s0, [sp, 12]
fmul s0, s1, s0
str s0, [sp, 20]
.L4:
ldr x0, [sp, 24]
lsr x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
beq .L9
ldr s0, [sp, 12]
fmul s0, s0, s0
str s0, [sp, 12]
b .L7
.L9:
nop
.L2:
ldr s0, [sp, 20]
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size spow_ui, .-spow_ui
.align 2
.type dpow_ui, %function
dpow_ui:
.LFB11:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str d0, [sp, 8]
str w0, [sp, 4]
fmov d0, 1.0e+0
str d0, [sp, 16]
ldr w0, [sp, 4]
cmp w0, 0
beq .L11
ldr w0, [sp, 4]
cmp w0, 0
bge .L12
ldr w0, [sp, 4]
neg w0, w0
str w0, [sp, 4]
ldr d0, [sp, 8]
fmov d1, 1.0e+0
fdiv d0, d1, d0
str d0, [sp, 8]
.L12:
ldrsw x0, [sp, 4]
str x0, [sp, 24]
.L16:
ldr x0, [sp, 24]
and x0, x0, 1
cmp x0, 0
beq .L13
ldr d1, [sp, 16]
ldr d0, [sp, 8]
fmul d0, d1, d0
str d0, [sp, 16]
.L13:
ldr x0, [sp, 24]
lsr x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
beq .L18
ldr d0, [sp, 8]
fmul d0, d0, d0
str d0, [sp, 8]
b .L16
.L18:
nop
.L11:
ldr d0, [sp, 16]
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size dpow_ui, .-dpow_ui
.align 2
.type cpow_ui, %function
cpow_ui:
.LFB12:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
fmov s2, s0
fmov s0, s1
fmov s1, s2
str s1, [sp, 24]
str s0, [sp, 28]
str w0, [sp, 20]
ldr s0, [sp, 24]
str s0, [sp, 32]
ldr s0, [sp, 28]
str s0, [sp, 36]
fmov s0, 1.0e+0
str s0, [sp, 56]
str wzr, [sp, 60]
ldr w0, [sp, 20]
cmp w0, 0
beq .L27
ldr w0, [sp, 20]
cmp w0, 0
bge .L21
ldr w0, [sp, 20]
neg w0, w0
str w0, [sp, 20]
ldr s3, [sp, 36]
ldr s2, [sp, 32]
movi v1.2s, #0
fmov s0, 1.0e+0
bl __divsc3
fmov s2, s0
fmov s0, s1
str s2, [sp, 24]
str s0, [sp, 28]
ldr s0, [sp, 24]
str s0, [sp, 32]
ldr s0, [sp, 28]
str s0, [sp, 36]
.L21:
ldrsw x0, [sp, 20]
str x0, [sp, 48]
str wzr, [sp, 44]
fmov s0, 1.0e+0
str s0, [sp, 40]
.L25:
ldr x0, [sp, 48]
and x0, x0, 1
cmp x0, 0
beq .L22
ldr s3, [sp, 36]
ldr s2, [sp, 32]
ldr s1, [sp, 44]
ldr s0, [sp, 40]
bl __mulsc3
fmov s2, s0
fmov s0, s1
str s2, [sp, 56]
str s0, [sp, 60]
ldr s0, [sp, 56]
str s0, [sp, 40]
ldr s0, [sp, 60]
str s0, [sp, 44]
.L22:
ldr x0, [sp, 48]
lsr x0, x0, 1
str x0, [sp, 48]
ldr x0, [sp, 48]
cmp x0, 0
beq .L28
ldr s3, [sp, 36]
ldr s2, [sp, 32]
ldr s1, [sp, 36]
ldr s0, [sp, 32]
bl __mulsc3
fmov s2, s0
fmov s0, s1
str s2, [sp, 24]
str s0, [sp, 28]
ldr s0, [sp, 24]
str s0, [sp, 32]
ldr s0, [sp, 28]
str s0, [sp, 36]
b .L25
.L27:
str wzr, [sp, 44]
fmov s0, 1.0e+0
str s0, [sp, 40]
b .L20
.L28:
nop
.L20:
ldr s1, [sp, 40]
ldr s0, [sp, 44]
fmov s2, s1
fmov s1, s0
fmov s0, s2
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE12:
.size cpow_ui, .-cpow_ui
.align 2
.type zpow_ui, %function
zpow_ui:
.LFB13:
.cfi_startproc
stp x29, x30, [sp, -112]!
.cfi_def_cfa_offset 112
.cfi_offset 29, -112
.cfi_offset 30, -104
mov x29, sp
fmov d2, d0
fmov d0, d1
fmov d1, d2
str d1, [sp, 32]
str d0, [sp, 40]
str w0, [sp, 28]
ldr d0, [sp, 32]
str d0, [sp, 64]
ldr d0, [sp, 40]
str d0, [sp, 72]
fmov d0, 1.0e+0
str d0, [sp, 96]
str xzr, [sp, 104]
ldr w0, [sp, 28]
cmp w0, 0
beq .L37
ldr w0, [sp, 28]
cmp w0, 0
bge .L31
ldr w0, [sp, 28]
neg w0, w0
str w0, [sp, 28]
ldr d3, [sp, 72]
ldr d2, [sp, 64]
movi d1, #0
fmov d0, 1.0e+0
bl __divdc3
fmov d2, d0
fmov d0, d1
str d2, [sp, 32]
str d0, [sp, 40]
ldr d0, [sp, 32]
str d0, [sp, 64]
ldr d0, [sp, 40]
str d0, [sp, 72]
.L31:
ldrsw x0, [sp, 28]
str x0, [sp, 56]
str xzr, [sp, 88]
fmov d0, 1.0e+0
str d0, [sp, 80]
.L35:
ldr x0, [sp, 56]
and x0, x0, 1
cmp x0, 0
beq .L32
ldr d3, [sp, 72]
ldr d2, [sp, 64]
ldr d1, [sp, 88]
ldr d0, [sp, 80]
bl __muldc3
fmov d2, d0
fmov d0, d1
str d2, [sp, 96]
str d0, [sp, 104]
ldr d0, [sp, 96]
str d0, [sp, 80]
ldr d0, [sp, 104]
str d0, [sp, 88]
.L32:
ldr x0, [sp, 56]
lsr x0, x0, 1
str x0, [sp, 56]
ldr x0, [sp, 56]
cmp x0, 0
beq .L38
ldr d3, [sp, 72]
ldr d2, [sp, 64]
ldr d1, [sp, 72]
ldr d0, [sp, 64]
bl __muldc3
fmov d2, d0
fmov d0, d1
str d2, [sp, 32]
str d0, [sp, 40]
ldr d0, [sp, 32]
str d0, [sp, 64]
ldr d0, [sp, 40]
str d0, [sp, 72]
b .L35
.L37:
str xzr, [sp, 88]
fmov d0, 1.0e+0
str d0, [sp, 80]
b .L30
.L38:
nop
.L30:
ldr d1, [sp, 80]
ldr d0, [sp, 88]
fmov d2, d1
fmov d1, d0
fmov d0, d2
ldp x29, x30, [sp], 112
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE13:
.size zpow_ui, .-zpow_ui
.align 2
.type pow_ii, %function
pow_ii:
.LFB14:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, 12]
str w1, [sp, 8]
ldr w0, [sp, 8]
cmp w0, 0
bgt .L40
ldr w0, [sp, 8]
cmp w0, 0
beq .L41
ldr w0, [sp, 12]
cmp w0, 1
bne .L42
.L41:
mov w0, 1
str w0, [sp, 20]
b .L40
.L42:
ldr w0, [sp, 12]
cmn w0, #1
beq .L43
ldr w0, [sp, 12]
cmp w0, 0
bne .L44
mov w1, 1
ldr w0, [sp, 12]
sdiv w0, w1, w0
b .L45
.L44:
mov w0, 0
.L45:
str w0, [sp, 20]
b .L40
.L43:
ldr w0, [sp, 8]
neg w0, w0
str w0, [sp, 8]
.L40:
ldr w0, [sp, 8]
cmp w0, 0
bgt .L46
ldr w0, [sp, 8]
cmp w0, 0
beq .L47
ldr w0, [sp, 12]
cmp w0, 1
beq .L47
ldr w0, [sp, 12]
cmn w0, #1
bne .L47
.L46:
ldrsw x0, [sp, 8]
str x0, [sp, 24]
mov w0, 1
str w0, [sp, 20]
.L51:
ldr x0, [sp, 24]
and x0, x0, 1
cmp x0, 0
beq .L48
ldr w1, [sp, 20]
ldr w0, [sp, 12]
mul w0, w1, w0
str w0, [sp, 20]
.L48:
ldr x0, [sp, 24]
lsr x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
beq .L53
ldr w0, [sp, 12]
mul w0, w0, w0
str w0, [sp, 12]
b .L51
.L53:
nop
.L47:
ldr w0, [sp, 20]
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE14:
.size pow_ii, .-pow_ii
.align 2
.type dmaxloc_, %function
dmaxloc_:
.LFB15:
.cfi_startproc
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, 24]
str w1, [sp, 20]
str w2, [sp, 16]
str x3, [sp, 8]
ldrsw x0, [sp, 20]
lsl x0, x0, 3
sub x0, x0, #8
ldr x1, [sp, 24]
add x0, x1, x0
ldr d0, [x0]
str d0, [sp, 40]
ldr w0, [sp, 20]
str w0, [sp, 36]
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 32]
b .L55
.L58:
ldrsw x0, [sp, 32]
lsl x0, x0, 3
sub x0, x0, #8
ldr x1, [sp, 24]
add x0, x1, x0
ldr d0, [x0]
ldr d1, [sp, 40]
fcmpe d1, d0
bmi .L60
b .L56
.L60:
ldr w0, [sp, 32]
str w0, [sp, 36]
ldrsw x0, [sp, 32]
lsl x0, x0, 3
sub x0, x0, #8
ldr x1, [sp, 24]
add x0, x1, x0
ldr d0, [x0]
str d0, [sp, 40]
.L56:
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L55:
ldr w1, [sp, 32]
ldr w0, [sp, 16]
cmp w1, w0
ble .L58
ldr w1, [sp, 36]
ldr w0, [sp, 20]
sub w0, w1, w0
add w0, w0, 1
add sp, sp, 48
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE15:
.size dmaxloc_, .-dmaxloc_
.align 2
.type smaxloc_, %function
smaxloc_:
.LFB16:
.cfi_startproc
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, 24]
str w1, [sp, 20]
str w2, [sp, 16]
str x3, [sp, 8]
ldrsw x0, [sp, 20]
lsl x0, x0, 2
sub x0, x0, #4
ldr x1, [sp, 24]
add x0, x1, x0
ldr s0, [x0]
str s0, [sp, 36]
ldr w0, [sp, 20]
str w0, [sp, 44]
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 40]
b .L62
.L65:
ldrsw x0, [sp, 40]
lsl x0, x0, 2
sub x0, x0, #4
ldr x1, [sp, 24]
add x0, x1, x0
ldr s0, [x0]
ldr s1, [sp, 36]
fcmpe s1, s0
bmi .L67
b .L63
.L67:
ldr w0, [sp, 40]
str w0, [sp, 44]
ldrsw x0, [sp, 40]
lsl x0, x0, 2
sub x0, x0, #4
ldr x1, [sp, 24]
add x0, x1, x0
ldr s0, [x0]
str s0, [sp, 36]
.L63:
ldr w0, [sp, 40]
add w0, w0, 1
str w0, [sp, 40]
.L62:
ldr w1, [sp, 40]
ldr w0, [sp, 16]
cmp w1, w0
ble .L65
ldr w1, [sp, 44]
ldr w0, [sp, 20]
sub w0, w1, w0
add w0, w0, 1
add sp, sp, 48
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE16:
.size smaxloc_, .-smaxloc_
.data
.align 2
.type c__1, %object
.size c__1, 4
c__1:
.word 1
.section .rodata
.align 3
.LC0:
.string "U"
.align 3
.LC1:
.string "L"
.align 3
.LC2:
.string "CPBTRS"
.align 3
.LC3:
.string "Non-unit"
.align 3
.LC4:
.string "Conjugate transpose"
.align 3
.LC5:
.string "Upper"
.align 3
.LC6:
.string "No transpose"
.align 3
.LC7:
.string "Lower"
.text
.align 2
.global cpbtrs_
.type cpbtrs_, %function
cpbtrs_:
.LFB21:
.cfi_startproc
sub sp, sp, #160
.cfi_def_cfa_offset 160
stp x29, x30, [sp, 16]
.cfi_offset 29, -144
.cfi_offset 30, -136
add x29, sp, 16
str x0, [sp, 104]
str x1, [sp, 96]
str x2, [sp, 88]
str x3, [sp, 80]
str x4, [sp, 72]
str x5, [sp, 64]
str x6, [sp, 56]
str x7, [sp, 48]
ldr x0, [sp, 160]
str x0, [sp, 40]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 152]
mov x1, 0
ldr x0, [sp, 64]
ldr w0, [x0]
str w0, [sp, 132]
ldr w0, [sp, 132]
add w0, w0, 1
str w0, [sp, 136]
ldrsw x0, [sp, 136]
lsl x0, x0, 3
neg x0, x0
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
ldr x0, [sp, 48]
ldr w0, [x0]
str w0, [sp, 140]
ldr w0, [sp, 140]
add w0, w0, 1
str w0, [sp, 144]
ldrsw x0, [sp, 144]
lsl x0, x0, 3
neg x0, x0
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 40]
str wzr, [x0]
adrp x0, .LC0
add x1, x0, :lo12:.LC0
ldr x0, [sp, 104]
bl lsame_
str w0, [sp, 148]
ldr w0, [sp, 148]
cmp w0, 0
bne .L69
adrp x0, .LC1
add x1, x0, :lo12:.LC1
ldr x0, [sp, 104]
bl lsame_
cmp w0, 0
bne .L69
ldr x0, [sp, 40]
mov w1, -1
str w1, [x0]
b .L70
.L69:
ldr x0, [sp, 96]
ldr w0, [x0]
cmp w0, 0
bge .L71
ldr x0, [sp, 40]
mov w1, -2
str w1, [x0]
b .L70
.L71:
ldr x0, [sp, 88]
ldr w0, [x0]
cmp w0, 0
bge .L72
ldr x0, [sp, 40]
mov w1, -3
str w1, [x0]
b .L70
.L72:
ldr x0, [sp, 80]
ldr w0, [x0]
cmp w0, 0
bge .L73
ldr x0, [sp, 40]
mov w1, -4
str w1, [x0]
b .L70
.L73:
ldr x0, [sp, 88]
ldr w1, [x0]
ldr x0, [sp, 64]
ldr w0, [x0]
cmp w1, w0
blt .L74
ldr x0, [sp, 40]
mov w1, -6
str w1, [x0]
b .L70
.L74:
ldr x0, [sp, 48]
ldr w1, [x0]
ldr x0, [sp, 96]
ldr w0, [x0]
mov w2, 1
cmp w0, 0
csel w0, w0, w2, gt
cmp w1, w0
bge .L70
ldr x0, [sp, 40]
mov w1, -8
str w1, [x0]
.L70:
ldr x0, [sp, 40]
ldr w0, [x0]
cmp w0, 0
beq .L75
ldr x0, [sp, 40]
ldr w0, [x0]
neg w0, w0
str w0, [sp, 124]
add x0, sp, 124
mov w2, 6
mov x1, x0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl xerbla_
mov w0, 0
b .L85
.L75:
ldr x0, [sp, 96]
ldr w0, [x0]
cmp w0, 0
beq .L77
ldr x0, [sp, 80]
ldr w0, [x0]
cmp w0, 0
bne .L78
.L77:
mov w0, 0
b .L85
.L78:
ldr w0, [sp, 148]
cmp w0, 0
beq .L79
ldr x0, [sp, 80]
ldr w0, [x0]
str w0, [sp, 124]
mov w0, 1
str w0, [sp, 128]
b .L80
.L81:
ldrsw x0, [sp, 136]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x2, x1, x0
ldr w1, [sp, 128]
ldr w0, [sp, 140]
mul w0, w1, w0
sxtw x0, w0
add x0, x0, 1
lsl x0, x0, 3
ldr x1, [sp, 56]
add x1, x1, x0
adrp x0, c__1
add x0, x0, :lo12:c__1
str x0, [sp]
mov x7, x1
ldr x6, [sp, 64]
mov x5, x2
ldr x4, [sp, 88]
ldr x3, [sp, 96]
adrp x0, .LC3
add x2, x0, :lo12:.LC3
adrp x0, .LC4
add x1, x0, :lo12:.LC4
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl ctbsv_
ldrsw x0, [sp, 136]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x2, x1, x0
ldr w1, [sp, 128]
ldr w0, [sp, 140]
mul w0, w1, w0
sxtw x0, w0
add x0, x0, 1
lsl x0, x0, 3
ldr x1, [sp, 56]
add x1, x1, x0
adrp x0, c__1
add x0, x0, :lo12:c__1
str x0, [sp]
mov x7, x1
ldr x6, [sp, 64]
mov x5, x2
ldr x4, [sp, 88]
ldr x3, [sp, 96]
adrp x0, .LC3
add x2, x0, :lo12:.LC3
adrp x0, .LC6
add x1, x0, :lo12:.LC6
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl ctbsv_
ldr w0, [sp, 128]
add w0, w0, 1
str w0, [sp, 128]
.L80:
ldr w0, [sp, 124]
ldr w1, [sp, 128]
cmp w1, w0
ble .L81
b .L82
.L79:
ldr x0, [sp, 80]
ldr w0, [x0]
str w0, [sp, 124]
mov w0, 1
str w0, [sp, 128]
b .L83
.L84:
ldrsw x0, [sp, 136]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x2, x1, x0
ldr w1, [sp, 128]
ldr w0, [sp, 140]
mul w0, w1, w0
sxtw x0, w0
add x0, x0, 1
lsl x0, x0, 3
ldr x1, [sp, 56]
add x1, x1, x0
adrp x0, c__1
add x0, x0, :lo12:c__1
str x0, [sp]
mov x7, x1
ldr x6, [sp, 64]
mov x5, x2
ldr x4, [sp, 88]
ldr x3, [sp, 96]
adrp x0, .LC3
add x2, x0, :lo12:.LC3
adrp x0, .LC6
add x1, x0, :lo12:.LC6
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl ctbsv_
ldrsw x0, [sp, 136]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x2, x1, x0
ldr w1, [sp, 128]
ldr w0, [sp, 140]
mul w0, w1, w0
sxtw x0, w0
add x0, x0, 1
lsl x0, x0, 3
ldr x1, [sp, 56]
add x1, x1, x0
adrp x0, c__1
add x0, x0, :lo12:c__1
str x0, [sp]
mov x7, x1
ldr x6, [sp, 64]
mov x5, x2
ldr x4, [sp, 88]
ldr x3, [sp, 96]
adrp x0, .LC3
add x2, x0, :lo12:.LC3
adrp x0, .LC4
add x1, x0, :lo12:.LC4
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl ctbsv_
ldr w0, [sp, 128]
add w0, w0, 1
str w0, [sp, 128]
.L83:
ldr w0, [sp, 124]
ldr w1, [sp, 128]
cmp w1, w0
ble .L84
.L82:
mov w0, 0
.L85:
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 152]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L86
bl __stack_chk_fail
.L86:
mov w0, w1
ldp x29, x30, [sp, 16]
add sp, sp, 160
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE21:
.size cpbtrs_, .-cpbtrs_
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global foo
.type foo, %function
foo:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -272]!
.cfi_def_cfa_offset 272
.cfi_offset 29, -272
.cfi_offset 30, -264
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 216]
str x2, [sp, 224]
str x3, [sp, 232]
str x4, [sp, 240]
str x5, [sp, 248]
str x6, [sp, 256]
str x7, [sp, 264]
str q0, [sp, 80]
str q1, [sp, 96]
str q2, [sp, 112]
str q3, [sp, 128]
str q4, [sp, 144]
str q5, [sp, 160]
str q6, [sp, 176]
str q7, [sp, 192]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 72]
mov x1, 0
add x0, sp, 272
str x0, [sp, 40]
add x0, sp, 272
str x0, [sp, 48]
add x0, sp, 208
str x0, [sp, 56]
mov w0, -56
str w0, [sp, 64]
mov w0, -128
str w0, [sp, 68]
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 72]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L2
bl __stack_chk_fail
.L2:
ldp x29, x30, [sp], 272
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size foo, .-foo
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "%lf\n"
.text
.align 2
.global printWorker
.type printWorker, %function
printWorker:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
str x0, [sp, 40]
ldr x0, [sp, 40]
ldr d0, [x0]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size printWorker, .-printWorker
.align 2
.global sqrtWorker
.type sqrtWorker, %function
sqrtWorker:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 24]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 56]
mov x1, 0
ldr x0, [sp, 24]
str x0, [sp, 48]
ldr x0, [sp, 48]
ldr d0, [x0]
scvtf d0, d0
bl sqrt
str d0, [sp, 32]
add x0, sp, 32
add x4, sp, 40
mov x3, x0
adrp x0, printWorker
add x2, x0, :lo12:printWorker
mov x1, 0
mov x0, x4
bl pthread_create
mov x0, 0
bl pthread_exit
.cfi_endproc
.LFE7:
.size sqrtWorker, .-sqrtWorker
.align 2
.global main
.type main, %function
main:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -112]!
.cfi_def_cfa_offset 112
.cfi_offset 29, -112
.cfi_offset 30, -104
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 104]
mov x1, 0
str xzr, [sp, 56]
mov x0, 10
str x0, [sp, 40]
b .L5
.L6:
add x1, sp, 64
ldr x0, [sp, 56]
lsl x0, x0, 3
add x4, x1, x0
add x0, sp, 40
mov x3, x0
adrp x0, sqrtWorker
add x2, x0, :lo12:sqrtWorker
mov x1, 0
mov x0, x4
bl pthread_create
ldr x0, [sp, 56]
add x0, x0, 1
str x0, [sp, 56]
ldr x0, [sp, 40]
add x0, x0, 1
str x0, [sp, 40]
.L5:
ldr x0, [sp, 56]
cmp x0, 4
ble .L6
str xzr, [sp, 56]
b .L7
.L8:
ldr x0, [sp, 56]
lsl x0, x0, 3
add x1, sp, 64
ldr x0, [x1, x0]
add x1, sp, 48
bl pthread_join
ldr x0, [sp, 56]
add x0, x0, 1
str x0, [sp, 56]
.L7:
ldr x0, [sp, 56]
cmp x0, 4
ble .L8
mov x0, 0
bl pthread_exit
.cfi_endproc
.LFE8:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "%lf"
.align 3
.LC1:
.string "%.2lf\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 56]
mov x1, 0
add x0, sp, 24
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
ldr d0, [sp, 24]
adrp x0, .LC2
ldr d1, [x0, #:lo12:.LC2]
fmul d0, d0, d1
str d0, [sp, 32]
ldr d0, [sp, 24]
adrp x0, .LC3
ldr d1, [x0, #:lo12:.LC3]
fmul d0, d0, d1
str d0, [sp, 40]
ldr d1, [sp, 24]
ldr d0, [sp, 32]
fadd d1, d1, d0
ldr d0, [sp, 40]
fsub d0, d1, d0
str d0, [sp, 48]
ldr d0, [sp, 48]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 56]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L3
bl __stack_chk_fail
.L3:
mov w0, w1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
.section .rodata
.align 3
.LC2:
.word -1717986918
.word 1068079513
.align 3
.LC3:
.word 515396076
.word 1068624773
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.type dfs, %function
dfs:
.LFB6:
.cfi_startproc
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, 16]
.cfi_offset 29, -96
.cfi_offset 30, -88
add x29, sp, 16
str x19, [sp, 32]
.cfi_offset 19, -80
str w0, [sp, 92]
str w1, [sp, 88]
str w2, [sp, 84]
str x3, [sp, 72]
str w4, [sp, 80]
str x5, [sp, 64]
str x6, [sp, 56]
str x7, [sp, 48]
ldr w1, [sp, 80]
ldr w0, [sp, 88]
cmp w1, w0
bne .L2
ldr x0, [sp, 112]
ldr w0, [x0]
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 56]
add x0, x1, x0
ldr w1, [sp, 88]
str w1, [x0]
ldrsw x0, [sp, 88]
lsl x2, x0, 2
ldr x0, [sp, 112]
ldr w0, [x0]
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 48]
add x19, x1, x0
mov x0, x2
bl malloc
str x0, [x19]
ldr x0, [sp, 112]
ldr w0, [x0]
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 48]
add x0, x1, x0
ldr x3, [x0]
ldrsw x0, [sp, 88]
lsl x0, x0, 2
mov x2, x0
ldr x1, [sp, 72]
mov x0, x3
bl memcpy
ldr x0, [sp, 112]
ldr w0, [x0]
add w1, w0, 1
ldr x0, [sp, 112]
str w1, [x0]
b .L7
.L2:
ldr w0, [sp, 84]
str w0, [sp, 108]
b .L4
.L6:
ldrsw x0, [sp, 108]
ldr x1, [sp, 64]
add x0, x1, x0
ldrb w0, [x0]
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L5
ldrsw x0, [sp, 80]
lsl x0, x0, 2
ldr x1, [sp, 72]
add x0, x1, x0
ldr w1, [sp, 108]
str w1, [x0]
ldrsw x0, [sp, 108]
ldr x1, [sp, 64]
add x0, x1, x0
mov w1, 1
strb w1, [x0]
ldr w0, [sp, 108]
add w1, w0, 1
ldr w0, [sp, 80]
add w2, w0, 1
ldr x0, [sp, 112]
str x0, [sp]
ldr x7, [sp, 48]
ldr x6, [sp, 56]
ldr x5, [sp, 64]
mov w4, w2
ldr x3, [sp, 72]
mov w2, w1
ldr w1, [sp, 88]
ldr w0, [sp, 92]
bl dfs
ldrsw x0, [sp, 108]
ldr x1, [sp, 64]
add x0, x1, x0
strb wzr, [x0]
.L5:
ldr w0, [sp, 108]
add w0, w0, 1
str w0, [sp, 108]
.L4:
ldr w1, [sp, 108]
ldr w0, [sp, 92]
cmp w1, w0
ble .L6
.L7:
nop
ldr x19, [sp, 32]
ldp x29, x30, [sp, 16]
add sp, sp, 112
.cfi_restore 29
.cfi_restore 30
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size dfs, .-dfs
.align 2
.global combine
.type combine, %function
combine:
.LFB7:
.cfi_startproc
sub sp, sp, #112
.cfi_def_cfa_offset 112
stp x29, x30, [sp, 16]
.cfi_offset 29, -96
.cfi_offset 30, -88
add x29, sp, 16
str w0, [sp, 60]
str w1, [sp, 56]
str x2, [sp, 48]
str x3, [sp, 40]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 104]
mov x1, 0
mov w0, 10000
str w0, [sp, 76]
str wzr, [sp, 72]
ldrsw x0, [sp, 76]
lsl x0, x0, 3
bl malloc
str x0, [sp, 80]
ldrsw x0, [sp, 56]
lsl x0, x0, 2
bl malloc
str x0, [sp, 88]
ldr w0, [sp, 60]
add w0, w0, 1
sxtw x0, w0
bl malloc
str x0, [sp, 96]
ldr w0, [sp, 60]
add w0, w0, 1
sxtw x0, w0
mov x2, x0
mov w1, 0
ldr x0, [sp, 96]
bl memset
ldrsw x0, [sp, 76]
lsl x0, x0, 2
bl malloc
mov x1, x0
ldr x0, [sp, 48]
str x1, [x0]
ldr x0, [sp, 48]
ldr x1, [x0]
add x0, sp, 72
str x0, [sp]
ldr x7, [sp, 80]
mov x6, x1
ldr x5, [sp, 96]
mov w4, 0
ldr x3, [sp, 88]
mov w2, 1
ldr w1, [sp, 56]
ldr w0, [sp, 60]
bl dfs
ldr w1, [sp, 72]
ldr x0, [sp, 40]
str w1, [x0]
ldr x0, [sp, 80]
mov x1, x0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 104]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L10
bl __stack_chk_fail
.L10:
mov x0, x1
ldp x29, x30, [sp, 16]
add sp, sp, 112
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size combine, .-combine
.section .rodata
.align 3
.LC0:
.string "Usage: ./test n k\n"
.align 3
.LC1:
.string "%d "
.text
.align 2
.global main
.type main, %function
main:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -96]!
.cfi_def_cfa_offset 96
.cfi_offset 29, -96
.cfi_offset 30, -88
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -80
str w0, [sp, 44]
str x1, [sp, 32]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 88]
mov x1, 0
ldr w0, [sp, 44]
cmp w0, 3
beq .L12
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 18
mov x1, 1
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl fwrite
mov w0, -1
bl exit
.L12:
str wzr, [sp, 60]
ldr x0, [sp, 32]
add x0, x0, 8
ldr x0, [x0]
bl atoi
mov w19, w0
ldr x0, [sp, 32]
add x0, x0, 16
ldr x0, [x0]
bl atoi
mov w4, w0
add x1, sp, 60
add x0, sp, 72
mov x3, x1
mov x2, x0
mov w1, w4
mov w0, w19
bl combine
str x0, [sp, 80]
str wzr, [sp, 64]
b .L13
.L16:
str wzr, [sp, 68]
b .L14
.L15:
ldrsw x0, [sp, 64]
lsl x0, x0, 3
ldr x1, [sp, 80]
add x0, x1, x0
ldr x1, [x0]
ldrsw x0, [sp, 68]
lsl x0, x0, 2
add x0, x1, x0
ldr w0, [x0]
mov w1, w0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
ldr w0, [sp, 68]
add w0, w0, 1
str w0, [sp, 68]
.L14:
ldr x1, [sp, 72]
ldrsw x0, [sp, 64]
lsl x0, x0, 2
add x0, x1, x0
ldr w0, [x0]
ldr w1, [sp, 68]
cmp w1, w0
blt .L15
mov w0, 10
bl putchar
ldr w0, [sp, 64]
add w0, w0, 1
str w0, [sp, 64]
.L13:
ldr w0, [sp, 60]
ldr w1, [sp, 64]
cmp w1, w0
blt .L16
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 88]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L18
bl __stack_chk_fail
.L18:
mov w0, w1
ldr x19, [sp, 16]
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global x
.bss
.align 3
.type x, %object
.size x, 8
x:
.zero 8
.local y
.comm y,8,8
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
adrp x0, x
add x0, x0, :lo12:x
ldr x0, [x0]
mov w1, w0
adrp x0, y
add x0, x0, :lo12:y
ldr x0, [x0]
add w0, w1, w0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global reverse_string
.type reverse_string, %function
reverse_string:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
str wzr, [sp, 36]
ldr x0, [sp, 24]
bl strlen
sub w0, w0, #1
str w0, [sp, 40]
b .L2
.L3:
ldrsw x0, [sp, 36]
ldr x1, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
str w0, [sp, 44]
ldrsw x0, [sp, 40]
ldr x1, [sp, 24]
add x1, x1, x0
ldrsw x0, [sp, 36]
ldr x2, [sp, 24]
add x0, x2, x0
ldrb w1, [x1]
strb w1, [x0]
ldrsw x0, [sp, 40]
ldr x1, [sp, 24]
add x0, x1, x0
ldr w1, [sp, 44]
and w1, w1, 255
strb w1, [x0]
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
ldr w0, [sp, 40]
sub w0, w0, #1
str w0, [sp, 40]
.L2:
ldr w1, [sp, 36]
ldr w0, [sp, 40]
cmp w1, w0
blt .L3
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size reverse_string, .-reverse_string
.align 2
.global compare_char
.type compare_char, %function
compare_char:
.LFB7:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
str x1, [sp]
ldr x0, [sp, 8]
ldrb w0, [x0]
mov w1, w0
ldr x0, [sp]
ldrb w0, [x0]
sub w0, w1, w0
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size compare_char, .-compare_char
.align 2
.global sort_string
.type sort_string, %function
sort_string:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
bl strlen
str w0, [sp, 44]
ldrsw x1, [sp, 44]
adrp x0, compare_char
add x3, x0, :lo12:compare_char
mov x2, 1
ldr x0, [sp, 24]
bl qsort
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size sort_string, .-sort_string
.align 2
.global convert_int_to_string
.type convert_int_to_string, %function
convert_int_to_string:
.LFB9:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
str wzr, [sp, 44]
b .L10
.L11:
ldr w1, [sp, 28]
mov w0, 26215
movk w0, 0x6666, lsl 16
smull x0, w1, w0
lsr x0, x0, 32
asr w2, w0, 2
asr w0, w1, 31
sub w2, w2, w0
mov w0, w2
lsl w0, w0, 2
add w0, w0, w2
lsl w0, w0, 1
sub w2, w1, w0
and w1, w2, 255
ldr w0, [sp, 44]
add w2, w0, 1
str w2, [sp, 44]
sxtw x0, w0
ldr x2, [sp, 16]
add x0, x2, x0
add w1, w1, 48
and w1, w1, 255
strb w1, [x0]
ldr w0, [sp, 28]
mov w1, 26215
movk w1, 0x6666, lsl 16
smull x1, w0, w1
lsr x1, x1, 32
asr w1, w1, 2
asr w0, w0, 31
sub w0, w1, w0
str w0, [sp, 28]
.L10:
ldr w0, [sp, 28]
cmp w0, 0
bgt .L11
ldrsw x0, [sp, 44]
ldr x1, [sp, 16]
add x0, x1, x0
strb wzr, [x0]
ldr x0, [sp, 16]
bl reverse_string
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size convert_int_to_string, .-convert_int_to_string
.align 2
.global convert_string_to_int
.type convert_string_to_int, %function
convert_string_to_int:
.LFB10:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
bl atoi
str w0, [sp, 44]
ldr w0, [sp, 44]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size convert_string_to_int, .-convert_string_to_int
.align 2
.global check_num_table
.type check_num_table, %function
check_num_table:
.LFB11:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, 12]
str x1, [sp]
str w2, [sp, 8]
str wzr, [sp, 28]
b .L16
.L19:
ldrsw x0, [sp, 28]
lsl x0, x0, 2
ldr x1, [sp]
add x0, x1, x0
ldr w0, [x0]
ldr w1, [sp, 12]
cmp w1, w0
bne .L17
mov w0, 1
b .L18
.L17:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L16:
ldr w1, [sp, 28]
ldr w0, [sp, 8]
cmp w1, w0
blt .L19
mov w0, 0
.L18:
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size check_num_table, .-check_num_table
.section .rodata
.align 3
.LC0:
.string "Original number was %d\n"
.align 3
.LC1:
.string "%d - %d = %d\n"
.align 3
.LC2:
.string "Chain length %d\n\n"
.align 3
.LC3:
.string "%d\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB12:
.cfi_startproc
mov x12, 4160
sub sp, sp, x12
.cfi_def_cfa_offset 4160
stp x29, x30, [sp]
.cfi_offset 29, -4160
.cfi_offset 30, -4152
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 4152]
mov x1, 0
b .L21
.L25:
ldr w0, [sp, 24]
mov w1, w0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
str wzr, [sp, 28]
ldr w0, [sp, 28]
add w1, w0, 1
str w1, [sp, 28]
ldr w2, [sp, 24]
sxtw x0, w0
lsl x0, x0, 2
add x1, sp, 40
str w2, [x1, x0]
.L23:
ldr w0, [sp, 24]
add x1, sp, 4096
add x1, x1, 40
bl convert_int_to_string
add x0, sp, 4096
add x0, x0, 40
bl sort_string
add x0, sp, 4096
add x0, x0, 40
bl convert_string_to_int
str w0, [sp, 32]
add x0, sp, 4096
add x0, x0, 40
bl reverse_string
add x0, sp, 4096
add x0, x0, 40
bl convert_string_to_int
str w0, [sp, 36]
ldr w1, [sp, 36]
ldr w0, [sp, 32]
sub w0, w1, w0
str w0, [sp, 24]
ldr w0, [sp, 24]
mov w3, w0
ldr w2, [sp, 32]
ldr w1, [sp, 36]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
ldr w0, [sp, 24]
add x1, sp, 40
ldr w2, [sp, 28]
bl check_num_table
cmp w0, 1
bne .L22
ldr w1, [sp, 28]
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
b .L21
.L22:
ldr w0, [sp, 28]
add w1, w0, 1
str w1, [sp, 28]
ldr w2, [sp, 24]
sxtw x0, w0
lsl x0, x0, 2
add x1, sp, 40
str w2, [x1, x0]
b .L23
.L21:
add x0, sp, 24
mov x1, x0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl __isoc99_scanf
cmn w0, #1
beq .L24
ldr w0, [sp, 24]
cmp w0, 0
bne .L25
.L24:
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 4152]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L27
bl __stack_chk_fail
.L27:
mov w0, w1
ldp x29, x30, [sp]
mov x12, 4160
add sp, sp, x12
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE12:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC1:
.string "Please enter the name of the file name:"
.align 3
.LC2:
.string "a"
.align 3
.LC3:
.string "Can not open file."
.align 3
.LC4:
.string "%s"
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 56]
mov x1, 0
adrp x0, .LC0
add x1, x0, :lo12:.LC0
add x0, sp, 32
ldr x2, [x1]
str x2, [x0]
ldr x1, [x1, 5]
str x1, [x0, 5]
str wzr, [sp, 45]
strh wzr, [sp, 49]
strb wzr, [sp, 51]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl puts
add x2, sp, 32
adrp x0, .LC2
add x1, x0, :lo12:.LC2
mov x0, x2
bl fopen
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
bne .L2
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl puts
mov w0, 0
bl exit
.L2:
add x0, sp, 32
bl puts
add x0, sp, 32
mov x1, x0
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
add x0, sp, 32
mov x1, x0
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl __isoc99_scanf
bl getchar
strb w0, [sp, 23]
b .L3
.L4:
ldrb w0, [sp, 23]
ldr x1, [sp, 24]
bl fputc
ldrb w0, [sp, 23]
bl putchar
bl getchar
strb w0, [sp, 23]
.L3:
ldrb w0, [sp, 23]
cmp w0, 35
bne .L4
ldr x0, [sp, 24]
bl fclose
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 56]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L5
bl __stack_chk_fail
.L5:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
.section .rodata
.align 3
.LC0:
.string "../i13.1.txt"
.zero 7
.text
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.data
.align 3
.type sqlCreate, %object
.size sqlCreate, 667
sqlCreate:
.ascii "create table domainmetadata ( id INTEGER PRIMARY KEY"
.ascii ", domain VARCHAR(255) COLLATE NOCASE, kind VARCHAR"
.ascii "(16) COLLATE NOCASE, content TEXT);create index domainmet"
.ascii "anameindex on domainmetadata(domain);create table cryptokeys"
.ascii " ( id INTEGER PRIMARY KEY, domain VARCHAR(255) C"
.ascii "OLLATE NOCASE, flags INT NOT NULL, active BOOL, con"
.ascii "tent TEXT); create index domainnameindex "
.string "on cryptokeys(domain); create table tsigkeys ( id INTEGER PRIMARY KEY, name VARCHAR(255) COLLATE NOCASE, algorithm VARCHAR(50) COLLATE NOCASE, secret VARCHAR(255));create unique index namealgoindex on tsigkeys(name, algorithm);"
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "bad input"
.align 3
.LC1:
.string "%d"
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -96]!
.cfi_def_cfa_offset 96
.cfi_offset 29, -96
.cfi_offset 30, -88
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 88]
mov x1, 0
str wzr, [sp, 28]
b .L2
.L6:
ldrb w0, [sp, 23]
cmp w0, 47
bls .L3
ldrb w0, [sp, 23]
cmp w0, 57
bls .L4
.L3:
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
mov w0, 0
b .L14
.L4:
ldrb w0, [sp, 23]
sub w2, w0, #48
ldrsw x0, [sp, 28]
lsl x0, x0, 2
add x1, sp, 40
str w2, [x1, x0]
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L2:
bl getchar
strb w0, [sp, 23]
ldrb w0, [sp, 23]
cmp w0, 10
bne .L6
mov w0, 1
str w0, [sp, 36]
str wzr, [sp, 32]
b .L7
.L9:
ldrsw x0, [sp, 32]
lsl x0, x0, 2
add x1, sp, 40
ldr w1, [x1, x0]
ldr w0, [sp, 32]
add w0, w0, 1
sxtw x0, w0
lsl x0, x0, 2
add x2, sp, 40
ldr w0, [x2, x0]
cmp w1, w0
bne .L8
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L8:
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L7:
ldr w0, [sp, 28]
sub w0, w0, #1
ldr w1, [sp, 32]
cmp w1, w0
blt .L9
ldr w1, [sp, 36]
ldr w0, [sp, 28]
cmp w1, w0
bne .L10
ldr w0, [sp, 28]
cmp w0, 1
beq .L10
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
mov w0, 0
b .L14
.L10:
add x0, sp, 24
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
b .L11
.L13:
add x0, sp, 40
ldr w1, [sp, 28]
bl printArray
ldr w0, [sp, 24]
sub w0, w0, #1
str w0, [sp, 24]
.L11:
add x0, sp, 40
ldr w1, [sp, 28]
bl nextPermutation
cmp w0, 0
beq .L12
ldr w0, [sp, 24]
cmp w0, 0
bgt .L13
.L12:
mov w0, 0
.L14:
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 88]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L15
bl __stack_chk_fail
.L15:
mov w0, w1
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
.align 2
.global swap
.type swap, %function
swap:
.LFB7:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str w1, [sp, 4]
str w2, [sp]
ldrsw x0, [sp, 4]
lsl x0, x0, 2
ldr x1, [sp, 8]
add x0, x1, x0
ldr w0, [x0]
str w0, [sp, 28]
ldrsw x0, [sp]
lsl x0, x0, 2
ldr x1, [sp, 8]
add x1, x1, x0
ldrsw x0, [sp, 4]
lsl x0, x0, 2
ldr x2, [sp, 8]
add x0, x2, x0
ldr w1, [x1]
str w1, [x0]
ldrsw x0, [sp]
lsl x0, x0, 2
ldr x1, [sp, 8]
add x0, x1, x0
ldr w1, [sp, 28]
str w1, [x0]
nop
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size swap, .-swap
.align 2
.global nextPermutation
.type nextPermutation, %function
nextPermutation:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
str w1, [sp, 20]
ldr w0, [sp, 20]
sub w0, w0, #2
str w0, [sp, 32]
b .L18
.L20:
ldr w0, [sp, 32]
sub w0, w0, #1
str w0, [sp, 32]
.L18:
ldr w0, [sp, 32]
cmn w0, #1
beq .L19
ldrsw x0, [sp, 32]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w1, [x0]
ldrsw x0, [sp, 32]
add x0, x0, 1
lsl x0, x0, 2
ldr x2, [sp, 24]
add x0, x2, x0
ldr w0, [x0]
cmp w1, w0
bge .L20
.L19:
ldr w0, [sp, 32]
cmn w0, #1
bne .L21
mov w0, 0
b .L22
.L21:
ldr w0, [sp, 20]
sub w0, w0, #1
str w0, [sp, 36]
b .L23
.L24:
ldr w0, [sp, 36]
sub w0, w0, #1
str w0, [sp, 36]
.L23:
ldrsw x0, [sp, 32]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w1, [x0]
ldrsw x0, [sp, 36]
lsl x0, x0, 2
ldr x2, [sp, 24]
add x0, x2, x0
ldr w0, [x0]
cmp w1, w0
bge .L24
ldr w2, [sp, 36]
ldr w1, [sp, 32]
ldr x0, [sp, 24]
bl swap
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 40]
ldr w0, [sp, 20]
sub w0, w0, #1
str w0, [sp, 44]
b .L25
.L26:
ldr w0, [sp, 40]
add w1, w0, 1
str w1, [sp, 40]
ldr w1, [sp, 44]
sub w2, w1, #1
str w2, [sp, 44]
mov w2, w1
mov w1, w0
ldr x0, [sp, 24]
bl swap
.L25:
ldr w1, [sp, 40]
ldr w0, [sp, 44]
cmp w1, w0
blt .L26
mov w0, 1
.L22:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size nextPermutation, .-nextPermutation
.align 2
.global printArray
.type printArray, %function
printArray:
.LFB9:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
str w1, [sp, 20]
str wzr, [sp, 44]
b .L28
.L29:
ldrsw x0, [sp, 44]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w0, [x0]
mov w1, w0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L28:
ldr w1, [sp, 44]
ldr w0, [sp, 20]
cmp w1, w0
blt .L29
mov w0, 10
bl putchar
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size printArray, .-printArray
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Input a: "
.align 3
.LC1:
.string "%d"
.align 3
.LC2:
.string "Input b: "
.align 3
.LC3:
.string "Input c: "
.align 3
.LC4:
.string "%d = %d\n"
.align 3
.LC5:
.string "%d > %d\n"
.align 3
.LC6:
.string "%d < %d\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 40]
mov x1, 0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
add x0, sp, 24
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
add x0, sp, 28
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
add x0, sp, 32
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
ldr w1, [sp, 24]
ldr w0, [sp, 28]
cmp w1, w0
bne .L2
ldr w1, [sp, 28]
ldr w0, [sp, 32]
cmp w1, w0
ble .L2
mov w0, 1
b .L3
.L2:
mov w0, 0
.L3:
str w0, [sp, 36]
ldr w1, [sp, 24]
ldr w0, [sp, 28]
cmp w1, w0
blt .L4
ldr w1, [sp, 24]
ldr w0, [sp, 28]
cmp w1, w0
bne .L5
ldr w0, [sp, 24]
ldr w1, [sp, 28]
mov w2, w1
mov w1, w0
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
b .L6
.L5:
ldr w0, [sp, 24]
ldr w1, [sp, 28]
mov w2, w1
mov w1, w0
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
b .L6
.L4:
ldr w0, [sp, 24]
ldr w1, [sp, 28]
mov w2, w1
mov w1, w0
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl printf
.L6:
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 40]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L8
bl __stack_chk_fail
.L8:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "inet_pton (%s) = "
.align 3
.LC1:
.string "IPv6 : "
.align 3
.LC2:
.string "inet_ntop () = %s \n"
.align 3
.LC3:
.string "IPv4 : "
.align 3
.LC4:
.string "invalide \n"
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -320]!
.cfi_def_cfa_offset 320
.cfi_offset 29, -320
.cfi_offset 30, -312
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 312]
mov x1, 0
mov w0, 1
str w0, [sp, 36]
b .L2
.L6:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x3, [x0]
ldrsw x0, [sp, 36]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
ldr x0, [x0]
mov x2, x0
adrp x0, .LC0
add x1, x0, :lo12:.LC0
mov x0, x3
bl fprintf
ldrsw x0, [sp, 36]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
ldr x0, [x0]
add x1, sp, 40
mov x2, x1
mov x1, x0
mov w0, 10
bl inet_pton
cmp w0, 0
beq .L3
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 7
mov x1, 1
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl fwrite
add x1, sp, 56
add x0, sp, 40
mov w3, 256
mov x2, x1
mov x1, x0
mov w0, 10
bl inet_ntop
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x3, [x0]
add x0, sp, 56
mov x2, x0
adrp x0, .LC2
add x1, x0, :lo12:.LC2
mov x0, x3
bl fprintf
b .L4
.L3:
ldrsw x0, [sp, 36]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
ldr x0, [x0]
add x1, sp, 32
mov x2, x1
mov x1, x0
mov w0, 2
bl inet_pton
cmp w0, 0
beq .L5
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 7
mov x1, 1
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl fwrite
add x1, sp, 56
add x0, sp, 32
mov w3, 256
mov x2, x1
mov x1, x0
mov w0, 2
bl inet_ntop
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x3, [x0]
add x0, sp, 56
mov x2, x0
adrp x0, .LC2
add x1, x0, :lo12:.LC2
mov x0, x3
bl fprintf
b .L4
.L5:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 10
mov x1, 1
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl fwrite
.L4:
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L2:
ldr w1, [sp, 36]
ldr w0, [sp, 28]
cmp w1, w0
blt .L6
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 312]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L8
bl __stack_chk_fail
.L8:
mov w0, w1
ldp x29, x30, [sp], 320
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global snprintf
.type snprintf, %function
snprintf:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -336]!
.cfi_def_cfa_offset 336
.cfi_offset 29, -336
.cfi_offset 30, -328
mov x29, sp
.cfi_def_cfa_register 29
sub sp, sp, #16
str x0, [x29, 72]
str x1, [x29, 64]
str x2, [x29, 56]
str x3, [x29, 296]
str x4, [x29, 304]
str x5, [x29, 312]
str x6, [x29, 320]
str x7, [x29, 328]
str q0, [x29, 160]
str q1, [x29, 176]
str q2, [x29, 192]
str q3, [x29, 208]
str q4, [x29, 224]
str q5, [x29, 240]
str q6, [x29, 256]
str q7, [x29, 272]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [x29, 152]
mov x1, 0
ldr x0, [x29, 56]
bl strlen
add x0, x0, 1
str x0, [x29, 104]
ldr x0, [x29, 104]
add x0, x0, 15
lsr x0, x0, 4
lsl x0, x0, 4
and x1, x0, -65536
sub x1, sp, x1
.L2:
cmp sp, x1
beq .L3
sub sp, sp, #65536
str xzr, [sp, 1024]
b .L2
.L3:
and x1, x0, 65535
sub sp, sp, x1
str xzr, [sp]
and x0, x0, 65535
cmp x0, 1024
bcc .L4
str xzr, [sp, 1024]
.L4:
add x0, sp, 16
add x0, x0, 15
lsr x0, x0, 4
lsl x0, x0, 4
str x0, [x29, 112]
str xzr, [x29, 96]
b .L5
.L8:
ldr x1, [x29, 56]
ldr x0, [x29, 96]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 70
beq .L6
ldr x1, [x29, 56]
ldr x0, [x29, 96]
add x0, x1, x0
ldrb w0, [x0]
b .L7
.L6:
mov w0, 102
.L7:
ldr x2, [x29, 112]
ldr x1, [x29, 96]
add x1, x2, x1
strb w0, [x1]
ldr x0, [x29, 96]
add x0, x0, 1
str x0, [x29, 96]
.L5:
ldr x1, [x29, 96]
ldr x0, [x29, 104]
cmp x1, x0
bcc .L8
add x0, x29, 336
str x0, [x29, 120]
add x0, x29, 336
str x0, [x29, 128]
add x0, x29, 288
str x0, [x29, 136]
mov w0, -40
str w0, [x29, 144]
mov w0, -128
str w0, [x29, 148]
add x0, x29, 16
add x1, x29, 120
ldp q0, q1, [x1]
stp q0, q1, [x0]
add x0, x29, 16
mov x3, x0
ldr x2, [x29, 112]
ldr x1, [x29, 64]
ldr x0, [x29, 72]
bl vsnprintf
str w0, [x29, 92]
ldr w0, [x29, 92]
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [x29, 152]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L10
bl __stack_chk_fail
.L10:
mov w0, w1
mov sp, x29
ldp x29, x30, [sp], 336
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa 31, 0
ret
.cfi_endproc
.LFE0:
.size snprintf, .-snprintf
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
mov w0, 0
bl close
mov w1, 524288
mov x0, 20
bl syscall
cmp x0, 0
beq .L2
mov w0, 77
b .L3
.L2:
mov w1, 2048
movk w1, 0x8, lsl 16
mov x0, 20
bl syscall
mvn x0, x0
lsr x0, x0, 63
and w0, w0, 255
.L3:
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "\346\240\207\345\207\206\350\276\223\345\205\245\344\270\255\350\241\214\346\225\260\344\270\272: %d\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str wzr, [sp, 24]
str wzr, [sp, 28]
b .L2
.L3:
ldr w0, [sp, 28]
cmp w0, 10
bne .L2
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L2:
bl getchar
str w0, [sp, 28]
ldr w0, [sp, 28]
cmn w0, #1
bne .L3
ldr w1, [sp, 24]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
mov w0, 0
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "10"
.align 3
.LC1:
.string "program.c"
.align 3
.LC2:
.string "x"
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 40]
mov x1, 0
str wzr, [sp, 24]
ldr w0, [sp, 28]
cmp w0, 0
beq .L2
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl atoi
str w0, [sp, 24]
.L2:
ldr w0, [sp, 24]
cmp w0, 0
bne .L3
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 12
adrp x0, .LC1
add x1, x0, :lo12:.LC1
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl __assert_fail
.L3:
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 40]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L5
bl __stack_chk_fail
.L5:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
.section .rodata
.align 3
.type __PRETTY_FUNCTION__.0, %object
.size __PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
.string "main"
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global buf
.bss
.align 3
.type buf, %object
.size buf, 100
buf:
.zero 100
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, 12]
str x1, [sp]
.L2:
b .L2
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global f
.type f, %function
f:
.LFB0:
.cfi_startproc
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, 24]
str w1, [sp, 20]
str x2, [sp, 8]
ldr x0, [sp, 24]
ldrh w0, [x0]
strh w0, [sp, 46]
ldr x0, [sp, 24]
add x0, x0, 2
str x0, [sp, 24]
ldrsh w0, [sp, 46]
ldr w1, [sp, 20]
lsl w0, w1, w0
strh w0, [sp, 46]
ldrsh w1, [sp, 46]
ldr x0, [sp, 8]
str w1, [x0]
ldr x0, [sp, 24]
add sp, sp, 48
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size f, .-f
.align 2
.global main
.type main, %function
main:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 40]
mov x1, 0
strh wzr, [sp, 32]
add x1, sp, 28
add x0, sp, 32
mov x2, x1
mov w1, 1
bl f
mov x1, x0
add x0, sp, 32
add x0, x0, 2
cmp x1, x0
beq .L4
bl abort
.L4:
ldr w0, [sp, 28]
cmp w0, 1
beq .L5
bl abort
.L5:
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 40]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L7
bl __stack_chk_fail
.L7:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global clock_settime
.type clock_settime, %function
clock_settime:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
ldr x2, [sp, 16]
ldr w1, [sp, 28]
mov w0, 112
bl syscall
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size clock_settime, .-clock_settime
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global sys_msleep
.type sys_msleep, %function
sys_msleep:
.LFB23:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 24]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 56]
mov x1, 0
ldr x0, [sp, 24]
cmp x0, 0
beq .L5
add x0, sp, 48
mov w1, 0
bl sys_sem_new
strb w0, [sp, 47]
ldrsb w0, [sp, 47]
cmp w0, 0
bne .L5
add x0, sp, 48
ldr x1, [sp, 24]
bl sys_arch_sem_wait
add x0, sp, 48
bl sys_sem_free
.L5:
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 56]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L4
bl __stack_chk_fail
.L4:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE23:
.size sys_msleep, .-sys_msleep
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global waitingRoom
.bss
.align 3
.type waitingRoom, %object
.size waitingRoom, 32
waitingRoom:
.zero 32
.global barberChair
.align 3
.type barberChair, %object
.size barberChair, 32
barberChair:
.zero 32
.global barberPillow
.align 3
.type barberPillow, %object
.size barberPillow, 32
barberPillow:
.zero 32
.global seatBelt
.align 3
.type seatBelt, %object
.size seatBelt, 32
seatBelt:
.zero 32
.global allDone
.align 2
.type allDone, %object
.size allDone, 4
allDone:
.zero 4
.section .rodata
.align 3
.LC0:
.string "Use: SleepBarber <Num Customers> <Num Chairs> <rand seed>"
.align 3
.LC1:
.string "The maximum number of Customers is %d.\n"
.align 3
.LC2:
.string "\nSleepBarber.c\n"
.align 3
.LC3:
.string "A solution to the sleeping barber problem using semaphores."
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -384]!
.cfi_def_cfa_offset 384
.cfi_offset 29, -384
.cfi_offset 30, -376
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 376]
mov x1, 0
ldr w0, [sp, 28]
cmp w0, 4
beq .L2
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
mov w0, -1
bl exit
.L2:
ldr x0, [sp, 16]
add x0, x0, 8
ldr x0, [x0]
bl atoi
str w0, [sp, 48]
ldr x0, [sp, 16]
add x0, x0, 16
ldr x0, [x0]
bl atoi
str w0, [sp, 52]
ldr x0, [sp, 16]
add x0, x0, 24
ldr x0, [x0]
bl atol
str x0, [sp, 64]
ldr w0, [sp, 48]
cmp w0, 25
ble .L3
mov w1, 25
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
mov w0, -1
bl exit
.L3:
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl puts
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl puts
ldr x0, [sp, 64]
bl srand48
str wzr, [sp, 44]
b .L4
.L5:
ldrsw x0, [sp, 44]
lsl x0, x0, 2
add x1, sp, 72
ldr w2, [sp, 44]
str w2, [x1, x0]
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L4:
ldr w0, [sp, 44]
cmp w0, 24
ble .L5
ldr w0, [sp, 52]
mov w2, w0
mov w1, 0
adrp x0, waitingRoom
add x0, x0, :lo12:waitingRoom
bl sem_init
mov w2, 1
mov w1, 0
adrp x0, barberChair
add x0, x0, :lo12:barberChair
bl sem_init
mov w2, 0
mov w1, 0
adrp x0, barberPillow
add x0, x0, :lo12:barberPillow
bl sem_init
mov w2, 0
mov w1, 0
adrp x0, seatBelt
add x0, x0, :lo12:seatBelt
bl sem_init
add x4, sp, 56
mov x3, 0
adrp x0, barber
add x2, x0, :lo12:barber
mov x1, 0
mov x0, x4
bl pthread_create
str wzr, [sp, 44]
b .L6
.L7:
add x1, sp, 176
ldrsw x0, [sp, 44]
lsl x0, x0, 3
add x4, x1, x0
add x1, sp, 72
ldrsw x0, [sp, 44]
lsl x0, x0, 2
add x0, x1, x0
mov x3, x0
adrp x0, customer
add x2, x0, :lo12:customer
mov x1, 0
mov x0, x4
bl pthread_create
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L6:
ldr w1, [sp, 44]
ldr w0, [sp, 48]
cmp w1, w0
blt .L7
str wzr, [sp, 44]
b .L8
.L9:
ldrsw x0, [sp, 44]
lsl x0, x0, 3
add x1, sp, 176
ldr x0, [x1, x0]
mov x1, 0
bl pthread_join
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L8:
ldr w1, [sp, 44]
ldr w0, [sp, 48]
cmp w1, w0
blt .L9
adrp x0, allDone
add x0, x0, :lo12:allDone
mov w1, 1
str w1, [x0]
adrp x0, barberPillow
add x0, x0, :lo12:barberPillow
bl sem_post
ldr x0, [sp, 56]
mov x1, 0
bl pthread_join
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 376]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L11
bl __stack_chk_fail
.L11:
mov w0, w1
ldp x29, x30, [sp], 384
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
.section .rodata
.align 3
.LC4:
.string "Customer %d leaving for barber shop.\n"
.align 3
.LC5:
.string "Customer %d arrived at barber shop.\n"
.align 3
.LC6:
.string "Customer %d entering waiting room.\n"
.align 3
.LC7:
.string "Customer %d waking the barber.\n"
.align 3
.LC8:
.string "Customer %d leaving barber shop.\n"
.text
.align 2
.global customer
.type customer, %function
customer:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
ldr w0, [x0]
str w0, [sp, 44]
ldr w1, [sp, 44]
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
mov w0, 5
bl randwait
ldr w1, [sp, 44]
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
adrp x0, waitingRoom
add x0, x0, :lo12:waitingRoom
bl sem_wait
ldr w1, [sp, 44]
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl printf
adrp x0, barberChair
add x0, x0, :lo12:barberChair
bl sem_wait
adrp x0, waitingRoom
add x0, x0, :lo12:waitingRoom
bl sem_post
ldr w1, [sp, 44]
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl printf
adrp x0, barberPillow
add x0, x0, :lo12:barberPillow
bl sem_post
adrp x0, seatBelt
add x0, x0, :lo12:seatBelt
bl sem_wait
adrp x0, barberChair
add x0, x0, :lo12:barberChair
bl sem_post
ldr w1, [sp, 44]
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl printf
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size customer, .-customer
.section .rodata
.align 3
.LC9:
.string "The barber is sleeping"
.align 3
.LC10:
.string "The barber is cutting hair"
.align 3
.LC11:
.string "The barber has finished cutting hair."
.align 3
.LC12:
.string "The barber is going home for the day."
.text
.align 2
.global barber
.type barber, %function
barber:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
b .L14
.L16:
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl puts
adrp x0, barberPillow
add x0, x0, :lo12:barberPillow
bl sem_wait
adrp x0, allDone
add x0, x0, :lo12:allDone
ldr w0, [x0]
cmp w0, 0
bne .L15
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl puts
mov w0, 3
bl randwait
adrp x0, .LC11
add x0, x0, :lo12:.LC11
bl puts
adrp x0, seatBelt
add x0, x0, :lo12:seatBelt
bl sem_post
b .L14
.L15:
adrp x0, .LC12
add x0, x0, :lo12:.LC12
bl puts
.L14:
adrp x0, allDone
add x0, x0, :lo12:allDone
ldr w0, [x0]
cmp w0, 0
beq .L16
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size barber, .-barber
.align 2
.global randwait
.type randwait, %function
randwait:
.LFB9:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str w0, [sp, 28]
bl drand48
fmov d1, d0
ldr w0, [sp, 28]
scvtf d0, w0
fmul d1, d1, d0
fmov d0, 1.0e+0
fadd d0, d1, d0
fcvtzs w0, d0
str w0, [sp, 44]
ldr w0, [sp, 44]
bl sleep
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size randwait, .-randwait
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "%d\n%d"
.align 3
.LC1:
.string "one"
.align 3
.LC2:
.string "two"
.align 3
.LC3:
.string "three"
.align 3
.LC4:
.string "four"
.align 3
.LC5:
.string "five"
.align 3
.LC6:
.string "six"
.align 3
.LC7:
.string "seven"
.align 3
.LC8:
.string "eight"
.align 3
.LC9:
.string "nine"
.align 3
.LC10:
.string "odd"
.align 3
.LC11:
.string "even"
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 40]
mov x1, 0
add x1, sp, 32
add x0, sp, 28
mov x2, x1
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
ldr w0, [sp, 28]
str w0, [sp, 36]
b .L2
.L14:
ldr w0, [sp, 36]
cmp w0, 1
bne .L3
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
b .L4
.L3:
ldr w0, [sp, 36]
cmp w0, 2
bne .L5
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
b .L4
.L5:
ldr w0, [sp, 36]
cmp w0, 3
bne .L6
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
b .L4
.L6:
ldr w0, [sp, 36]
cmp w0, 4
bne .L7
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
b .L4
.L7:
ldr w0, [sp, 36]
cmp w0, 5
bne .L8
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
b .L4
.L8:
ldr w0, [sp, 36]
cmp w0, 6
bne .L9
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl printf
b .L4
.L9:
ldr w0, [sp, 36]
cmp w0, 7
bne .L10
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl printf
b .L4
.L10:
ldr w0, [sp, 36]
cmp w0, 8
bne .L11
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl printf
b .L4
.L11:
ldr w0, [sp, 36]
cmp w0, 9
bne .L12
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl printf
b .L4
.L12:
ldr w0, [sp, 36]
and w0, w0, 1
cmp w0, 0
beq .L13
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl printf
b .L4
.L13:
adrp x0, .LC11
add x0, x0, :lo12:.LC11
bl printf
.L4:
mov w0, 10
bl putchar
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L2:
ldr w0, [sp, 32]
ldr w1, [sp, 36]
cmp w1, w0
ble .L14
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 40]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L16
bl __stack_chk_fail
.L16:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global wordlist
.section .rodata
.align 3
.LC0:
.string "abandon"
.align 3
.LC1:
.string "ability"
.align 3
.LC2:
.string "able"
.align 3
.LC3:
.string "about"
.align 3
.LC4:
.string "above"
.align 3
.LC5:
.string "absent"
.align 3
.LC6:
.string "absorb"
.align 3
.LC7:
.string "abstract"
.align 3
.LC8:
.string "absurd"
.align 3
.LC9:
.string "abuse"
.align 3
.LC10:
.string "access"
.align 3
.LC11:
.string "accident"
.align 3
.LC12:
.string "account"
.align 3
.LC13:
.string "accuse"
.align 3
.LC14:
.string "achieve"
.align 3
.LC15:
.string "acid"
.align 3
.LC16:
.string "acoustic"
.align 3
.LC17:
.string "acquire"
.align 3
.LC18:
.string "across"
.align 3
.LC19:
.string "act"
.align 3
.LC20:
.string "action"
.align 3
.LC21:
.string "actor"
.align 3
.LC22:
.string "actress"
.align 3
.LC23:
.string "actual"
.align 3
.LC24:
.string "adapt"
.align 3
.LC25:
.string "add"
.align 3
.LC26:
.string "addict"
.align 3
.LC27:
.string "address"
.align 3
.LC28:
.string "adjust"
.align 3
.LC29:
.string "admit"
.align 3
.LC30:
.string "adult"
.align 3
.LC31:
.string "advance"
.align 3
.LC32:
.string "advice"
.align 3
.LC33:
.string "aerobic"
.align 3
.LC34:
.string "affair"
.align 3
.LC35:
.string "afford"
.align 3
.LC36:
.string "afraid"
.align 3
.LC37:
.string "again"
.align 3
.LC38:
.string "age"
.align 3
.LC39:
.string "agent"
.align 3
.LC40:
.string "agree"
.align 3
.LC41:
.string "ahead"
.align 3
.LC42:
.string "aim"
.align 3
.LC43:
.string "air"
.align 3
.LC44:
.string "airport"
.align 3
.LC45:
.string "aisle"
.align 3
.LC46:
.string "alarm"
.align 3
.LC47:
.string "album"
.align 3
.LC48:
.string "alcohol"
.align 3
.LC49:
.string "alert"
.align 3
.LC50:
.string "alien"
.align 3
.LC51:
.string "all"
.align 3
.LC52:
.string "alley"
.align 3
.LC53:
.string "allow"
.align 3
.LC54:
.string "almost"
.align 3
.LC55:
.string "alone"
.align 3
.LC56:
.string "alpha"
.align 3
.LC57:
.string "already"
.align 3
.LC58:
.string "also"
.align 3
.LC59:
.string "alter"
.align 3
.LC60:
.string "always"
.align 3
.LC61:
.string "amateur"
.align 3
.LC62:
.string "amazing"
.align 3
.LC63:
.string "among"
.align 3
.LC64:
.string "amount"
.align 3
.LC65:
.string "amused"
.align 3
.LC66:
.string "analyst"
.align 3
.LC67:
.string "anchor"
.align 3
.LC68:
.string "ancient"
.align 3
.LC69:
.string "anger"
.align 3
.LC70:
.string "angle"
.align 3
.LC71:
.string "angry"
.align 3
.LC72:
.string "animal"
.align 3
.LC73:
.string "ankle"
.align 3
.LC74:
.string "announce"
.align 3
.LC75:
.string "annual"
.align 3
.LC76:
.string "another"
.align 3
.LC77:
.string "answer"
.align 3
.LC78:
.string "antenna"
.align 3
.LC79:
.string "antique"
.align 3
.LC80:
.string "anxiety"
.align 3
.LC81:
.string "any"
.align 3
.LC82:
.string "apart"
.align 3
.LC83:
.string "apology"
.align 3
.LC84:
.string "appear"
.align 3
.LC85:
.string "apple"
.align 3
.LC86:
.string "approve"
.align 3
.LC87:
.string "april"
.align 3
.LC88:
.string "arch"
.align 3
.LC89:
.string "arctic"
.align 3
.LC90:
.string "area"
.align 3
.LC91:
.string "arena"
.align 3
.LC92:
.string "argue"
.align 3
.LC93:
.string "arm"
.align 3
.LC94:
.string "armed"
.align 3
.LC95:
.string "armor"
.align 3
.LC96:
.string "army"
.align 3
.LC97:
.string "around"
.align 3
.LC98:
.string "arrange"
.align 3
.LC99:
.string "arrest"
.align 3
.LC100:
.string "arrive"
.align 3
.LC101:
.string "arrow"
.align 3
.LC102:
.string "art"
.align 3
.LC103:
.string "artefact"
.align 3
.LC104:
.string "artist"
.align 3
.LC105:
.string "artwork"
.align 3
.LC106:
.string "ask"
.align 3
.LC107:
.string "aspect"
.align 3
.LC108:
.string "assault"
.align 3
.LC109:
.string "asset"
.align 3
.LC110:
.string "assist"
.align 3
.LC111:
.string "assume"
.align 3
.LC112:
.string "asthma"
.align 3
.LC113:
.string "athlete"
.align 3
.LC114:
.string "atom"
.align 3
.LC115:
.string "attack"
.align 3
.LC116:
.string "attend"
.align 3
.LC117:
.string "attitude"
.align 3
.LC118:
.string "attract"
.align 3
.LC119:
.string "auction"
.align 3
.LC120:
.string "audit"
.align 3
.LC121:
.string "august"
.align 3
.LC122:
.string "aunt"
.align 3
.LC123:
.string "author"
.align 3
.LC124:
.string "auto"
.align 3
.LC125:
.string "autumn"
.align 3
.LC126:
.string "average"
.align 3
.LC127:
.string "avocado"
.align 3
.LC128:
.string "avoid"
.align 3
.LC129:
.string "awake"
.align 3
.LC130:
.string "aware"
.align 3
.LC131:
.string "away"
.align 3
.LC132:
.string "awesome"
.align 3
.LC133:
.string "awful"
.align 3
.LC134:
.string "awkward"
.align 3
.LC135:
.string "axis"
.align 3
.LC136:
.string "baby"
.align 3
.LC137:
.string "bachelor"
.align 3
.LC138:
.string "bacon"
.align 3
.LC139:
.string "badge"
.align 3
.LC140:
.string "bag"
.align 3
.LC141:
.string "balance"
.align 3
.LC142:
.string "balcony"
.align 3
.LC143:
.string "ball"
.align 3
.LC144:
.string "bamboo"
.align 3
.LC145:
.string "banana"
.align 3
.LC146:
.string "banner"
.align 3
.LC147:
.string "bar"
.align 3
.LC148:
.string "barely"
.align 3
.LC149:
.string "bargain"
.align 3
.LC150:
.string "barrel"
.align 3
.LC151:
.string "base"
.align 3
.LC152:
.string "basic"
.align 3
.LC153:
.string "basket"
.align 3
.LC154:
.string "battle"
.align 3
.LC155:
.string "beach"
.align 3
.LC156:
.string "bean"
.align 3
.LC157:
.string "beauty"
.align 3
.LC158:
.string "because"
.align 3
.LC159:
.string "become"
.align 3
.LC160:
.string "beef"
.align 3
.LC161:
.string "before"
.align 3
.LC162:
.string "begin"
.align 3
.LC163:
.string "behave"
.align 3
.LC164:
.string "behind"
.align 3
.LC165:
.string "believe"
.align 3
.LC166:
.string "below"
.align 3
.LC167:
.string "belt"
.align 3
.LC168:
.string "bench"
.align 3
.LC169:
.string "benefit"
.align 3
.LC170:
.string "best"
.align 3
.LC171:
.string "betray"
.align 3
.LC172:
.string "better"
.align 3
.LC173:
.string "between"
.align 3
.LC174:
.string "beyond"
.align 3
.LC175:
.string "bicycle"
.align 3
.LC176:
.string "bid"
.align 3
.LC177:
.string "bike"
.align 3
.LC178:
.string "bind"
.align 3
.LC179:
.string "biology"
.align 3
.LC180:
.string "bird"
.align 3
.LC181:
.string "birth"
.align 3
.LC182:
.string "bitter"
.align 3
.LC183:
.string "black"
.align 3
.LC184:
.string "blade"
.align 3
.LC185:
.string "blame"
.align 3
.LC186:
.string "blanket"
.align 3
.LC187:
.string "blast"
.align 3
.LC188:
.string "bleak"
.align 3
.LC189:
.string "bless"
.align 3
.LC190:
.string "blind"
.align 3
.LC191:
.string "blood"
.align 3
.LC192:
.string "blossom"
.align 3
.LC193:
.string "blouse"
.align 3
.LC194:
.string "blue"
.align 3
.LC195:
.string "blur"
.align 3
.LC196:
.string "blush"
.align 3
.LC197:
.string "board"
.align 3
.LC198:
.string "boat"
.align 3
.LC199:
.string "body"
.align 3
.LC200:
.string "boil"
.align 3
.LC201:
.string "bomb"
.align 3
.LC202:
.string "bone"
.align 3
.LC203:
.string "bonus"
.align 3
.LC204:
.string "book"
.align 3
.LC205:
.string "boost"
.align 3
.LC206:
.string "border"
.align 3
.LC207:
.string "boring"
.align 3
.LC208:
.string "borrow"
.align 3
.LC209:
.string "boss"
.align 3
.LC210:
.string "bottom"
.align 3
.LC211:
.string "bounce"
.align 3
.LC212:
.string "box"
.align 3
.LC213:
.string "boy"
.align 3
.LC214:
.string "bracket"
.align 3
.LC215:
.string "brain"
.align 3
.LC216:
.string "brand"
.align 3
.LC217:
.string "brass"
.align 3
.LC218:
.string "brave"
.align 3
.LC219:
.string "bread"
.align 3
.LC220:
.string "breeze"
.align 3
.LC221:
.string "brick"
.align 3
.LC222:
.string "bridge"
.align 3
.LC223:
.string "brief"
.align 3
.LC224:
.string "bright"
.align 3
.LC225:
.string "bring"
.align 3
.LC226:
.string "brisk"
.align 3
.LC227:
.string "broccoli"
.align 3
.LC228:
.string "broken"
.align 3
.LC229:
.string "bronze"
.align 3
.LC230:
.string "broom"
.align 3
.LC231:
.string "brother"
.align 3
.LC232:
.string "brown"
.align 3
.LC233:
.string "brush"
.align 3
.LC234:
.string "bubble"
.align 3
.LC235:
.string "buddy"
.align 3
.LC236:
.string "budget"
.align 3
.LC237:
.string "buffalo"
.align 3
.LC238:
.string "build"
.align 3
.LC239:
.string "bulb"
.align 3
.LC240:
.string "bulk"
.align 3
.LC241:
.string "bullet"
.align 3
.LC242:
.string "bundle"
.align 3
.LC243:
.string "bunker"
.align 3
.LC244:
.string "burden"
.align 3
.LC245:
.string "burger"
.align 3
.LC246:
.string "burst"
.align 3
.LC247:
.string "bus"
.align 3
.LC248:
.string "business"
.align 3
.LC249:
.string "busy"
.align 3
.LC250:
.string "butter"
.align 3
.LC251:
.string "buyer"
.align 3
.LC252:
.string "buzz"
.align 3
.LC253:
.string "cabbage"
.align 3
.LC254:
.string "cabin"
.align 3
.LC255:
.string "cable"
.align 3
.LC256:
.string "cactus"
.align 3
.LC257:
.string "cage"
.align 3
.LC258:
.string "cake"
.align 3
.LC259:
.string "call"
.align 3
.LC260:
.string "calm"
.align 3
.LC261:
.string "camera"
.align 3
.LC262:
.string "camp"
.align 3
.LC263:
.string "can"
.align 3
.LC264:
.string "canal"
.align 3
.LC265:
.string "cancel"
.align 3
.LC266:
.string "candy"
.align 3
.LC267:
.string "cannon"
.align 3
.LC268:
.string "canoe"
.align 3
.LC269:
.string "canvas"
.align 3
.LC270:
.string "canyon"
.align 3
.LC271:
.string "capable"
.align 3
.LC272:
.string "capital"
.align 3
.LC273:
.string "captain"
.align 3
.LC274:
.string "car"
.align 3
.LC275:
.string "carbon"
.align 3
.LC276:
.string "card"
.align 3
.LC277:
.string "cargo"
.align 3
.LC278:
.string "carpet"
.align 3
.LC279:
.string "carry"
.align 3
.LC280:
.string "cart"
.align 3
.LC281:
.string "case"
.align 3
.LC282:
.string "cash"
.align 3
.LC283:
.string "casino"
.align 3
.LC284:
.string "castle"
.align 3
.LC285:
.string "casual"
.align 3
.LC286:
.string "cat"
.align 3
.LC287:
.string "catalog"
.align 3
.LC288:
.string "catch"
.align 3
.LC289:
.string "category"
.align 3
.LC290:
.string "cattle"
.align 3
.LC291:
.string "caught"
.align 3
.LC292:
.string "cause"
.align 3
.LC293:
.string "caution"
.align 3
.LC294:
.string "cave"
.align 3
.LC295:
.string "ceiling"
.align 3
.LC296:
.string "celery"
.align 3
.LC297:
.string "cement"
.align 3
.LC298:
.string "census"
.align 3
.LC299:
.string "century"
.align 3
.LC300:
.string "cereal"
.align 3
.LC301:
.string "certain"
.align 3
.LC302:
.string "chair"
.align 3
.LC303:
.string "chalk"
.align 3
.LC304:
.string "champion"
.align 3
.LC305:
.string "change"
.align 3
.LC306:
.string "chaos"
.align 3
.LC307:
.string "chapter"
.align 3
.LC308:
.string "charge"
.align 3
.LC309:
.string "chase"
.align 3
.LC310:
.string "chat"
.align 3
.LC311:
.string "cheap"
.align 3
.LC312:
.string "check"
.align 3
.LC313:
.string "cheese"
.align 3
.LC314:
.string "chef"
.align 3
.LC315:
.string "cherry"
.align 3
.LC316:
.string "chest"
.align 3
.LC317:
.string "chicken"
.align 3
.LC318:
.string "chief"
.align 3
.LC319:
.string "child"
.align 3
.LC320:
.string "chimney"
.align 3
.LC321:
.string "choice"
.align 3
.LC322:
.string "choose"
.align 3
.LC323:
.string "chronic"
.align 3
.LC324:
.string "chuckle"
.align 3
.LC325:
.string "chunk"
.align 3
.LC326:
.string "churn"
.align 3
.LC327:
.string "cigar"
.align 3
.LC328:
.string "cinnamon"
.align 3
.LC329:
.string "circle"
.align 3
.LC330:
.string "citizen"
.align 3
.LC331:
.string "city"
.align 3
.LC332:
.string "civil"
.align 3
.LC333:
.string "claim"
.align 3
.LC334:
.string "clap"
.align 3
.LC335:
.string "clarify"
.align 3
.LC336:
.string "claw"
.align 3
.LC337:
.string "clay"
.align 3
.LC338:
.string "clean"
.align 3
.LC339:
.string "clerk"
.align 3
.LC340:
.string "clever"
.align 3
.LC341:
.string "click"
.align 3
.LC342:
.string "client"
.align 3
.LC343:
.string "cliff"
.align 3
.LC344:
.string "climb"
.align 3
.LC345:
.string "clinic"
.align 3
.LC346:
.string "clip"
.align 3
.LC347:
.string "clock"
.align 3
.LC348:
.string "clog"
.align 3
.LC349:
.string "close"
.align 3
.LC350:
.string "cloth"
.align 3
.LC351:
.string "cloud"
.align 3
.LC352:
.string "clown"
.align 3
.LC353:
.string "club"
.align 3
.LC354:
.string "clump"
.align 3
.LC355:
.string "cluster"
.align 3
.LC356:
.string "clutch"
.align 3
.LC357:
.string "coach"
.align 3
.LC358:
.string "coast"
.align 3
.LC359:
.string "coconut"
.align 3
.LC360:
.string "code"
.align 3
.LC361:
.string "coffee"
.align 3
.LC362:
.string "coil"
.align 3
.LC363:
.string "coin"
.align 3
.LC364:
.string "collect"
.align 3
.LC365:
.string "color"
.align 3
.LC366:
.string "column"
.align 3
.LC367:
.string "combine"
.align 3
.LC368:
.string "come"
.align 3
.LC369:
.string "comfort"
.align 3
.LC370:
.string "comic"
.align 3
.LC371:
.string "common"
.align 3
.LC372:
.string "company"
.align 3
.LC373:
.string "concert"
.align 3
.LC374:
.string "conduct"
.align 3
.LC375:
.string "confirm"
.align 3
.LC376:
.string "congress"
.align 3
.LC377:
.string "connect"
.align 3
.LC378:
.string "consider"
.align 3
.LC379:
.string "control"
.align 3
.LC380:
.string "convince"
.align 3
.LC381:
.string "cook"
.align 3
.LC382:
.string "cool"
.align 3
.LC383:
.string "copper"
.align 3
.LC384:
.string "copy"
.align 3
.LC385:
.string "coral"
.align 3
.LC386:
.string "core"
.align 3
.LC387:
.string "corn"
.align 3
.LC388:
.string "correct"
.align 3
.LC389:
.string "cost"
.align 3
.LC390:
.string "cotton"
.align 3
.LC391:
.string "couch"
.align 3
.LC392:
.string "country"
.align 3
.LC393:
.string "couple"
.align 3
.LC394:
.string "course"
.align 3
.LC395:
.string "cousin"
.align 3
.LC396:
.string "cover"
.align 3
.LC397:
.string "coyote"
.align 3
.LC398:
.string "crack"
.align 3
.LC399:
.string "cradle"
.align 3
.LC400:
.string "craft"
.align 3
.LC401:
.string "cram"
.align 3
.LC402:
.string "crane"
.align 3
.LC403:
.string "crash"
.align 3
.LC404:
.string "crater"
.align 3
.LC405:
.string "crawl"
.align 3
.LC406:
.string "crazy"
.align 3
.LC407:
.string "cream"
.align 3
.LC408:
.string "credit"
.align 3
.LC409:
.string "creek"
.align 3
.LC410:
.string "crew"
.align 3
.LC411:
.string "cricket"
.align 3
.LC412:
.string "crime"
.align 3
.LC413:
.string "crisp"
.align 3
.LC414:
.string "critic"
.align 3
.LC415:
.string "crop"
.align 3
.LC416:
.string "cross"
.align 3
.LC417:
.string "crouch"
.align 3
.LC418:
.string "crowd"
.align 3
.LC419:
.string "crucial"
.align 3
.LC420:
.string "cruel"
.align 3
.LC421:
.string "cruise"
.align 3
.LC422:
.string "crumble"
.align 3
.LC423:
.string "crunch"
.align 3
.LC424:
.string "crush"
.align 3
.LC425:
.string "cry"
.align 3
.LC426:
.string "crystal"
.align 3
.LC427:
.string "cube"
.align 3
.LC428:
.string "culture"
.align 3
.LC429:
.string "cup"
.align 3
.LC430:
.string "cupboard"
.align 3
.LC431:
.string "curious"
.align 3
.LC432:
.string "current"
.align 3
.LC433:
.string "curtain"
.align 3
.LC434:
.string "curve"
.align 3
.LC435:
.string "cushion"
.align 3
.LC436:
.string "custom"
.align 3
.LC437:
.string "cute"
.align 3
.LC438:
.string "cycle"
.align 3
.LC439:
.string "dad"
.align 3
.LC440:
.string "damage"
.align 3
.LC441:
.string "damp"
.align 3
.LC442:
.string "dance"
.align 3
.LC443:
.string "danger"
.align 3
.LC444:
.string "daring"
.align 3
.LC445:
.string "steelhorsecoin"
.align 3
.LC446:
.string "daughter"
.align 3
.LC447:
.string "dawn"
.align 3
.LC448:
.string "day"
.align 3
.LC449:
.string "deal"
.align 3
.LC450:
.string "debate"
.align 3
.LC451:
.string "debris"
.align 3
.LC452:
.string "decade"
.align 3
.LC453:
.string "december"
.align 3
.LC454:
.string "decide"
.align 3
.LC455:
.string "decline"
.align 3
.LC456:
.string "decorate"
.align 3
.LC457:
.string "decrease"
.align 3
.LC458:
.string "deer"
.align 3
.LC459:
.string "defense"
.align 3
.LC460:
.string "define"
.align 3
.LC461:
.string "defy"
.align 3
.LC462:
.string "degree"
.align 3
.LC463:
.string "delay"
.align 3
.LC464:
.string "deliver"
.align 3
.LC465:
.string "demand"
.align 3
.LC466:
.string "demise"
.align 3
.LC467:
.string "denial"
.align 3
.LC468:
.string "dentist"
.align 3
.LC469:
.string "deny"
.align 3
.LC470:
.string "depart"
.align 3
.LC471:
.string "depend"
.align 3
.LC472:
.string "deposit"
.align 3
.LC473:
.string "depth"
.align 3
.LC474:
.string "deputy"
.align 3
.LC475:
.string "derive"
.align 3
.LC476:
.string "describe"
.align 3
.LC477:
.string "desert"
.align 3
.LC478:
.string "design"
.align 3
.LC479:
.string "desk"
.align 3
.LC480:
.string "despair"
.align 3
.LC481:
.string "destroy"
.align 3
.LC482:
.string "detail"
.align 3
.LC483:
.string "detect"
.align 3
.LC484:
.string "develop"
.align 3
.LC485:
.string "device"
.align 3
.LC486:
.string "devote"
.align 3
.LC487:
.string "diagram"
.align 3
.LC488:
.string "dial"
.align 3
.LC489:
.string "diamond"
.align 3
.LC490:
.string "diary"
.align 3
.LC491:
.string "dice"
.align 3
.LC492:
.string "diesel"
.align 3
.LC493:
.string "diet"
.align 3
.LC494:
.string "differ"
.align 3
.LC495:
.string "digital"
.align 3
.LC496:
.string "dignity"
.align 3
.LC497:
.string "dilemma"
.align 3
.LC498:
.string "dinner"
.align 3
.LC499:
.string "dinosaur"
.align 3
.LC500:
.string "direct"
.align 3
.LC501:
.string "dirt"
.align 3
.LC502:
.string "disagree"
.align 3
.LC503:
.string "discover"
.align 3
.LC504:
.string "disease"
.align 3
.LC505:
.string "dish"
.align 3
.LC506:
.string "dismiss"
.align 3
.LC507:
.string "disorder"
.align 3
.LC508:
.string "display"
.align 3
.LC509:
.string "distance"
.align 3
.LC510:
.string "divert"
.align 3
.LC511:
.string "divide"
.align 3
.LC512:
.string "divorce"
.align 3
.LC513:
.string "dizzy"
.align 3
.LC514:
.string "doctor"
.align 3
.LC515:
.string "document"
.align 3
.LC516:
.string "dog"
.align 3
.LC517:
.string "doll"
.align 3
.LC518:
.string "dolphin"
.align 3
.LC519:
.string "domain"
.align 3
.LC520:
.string "donate"
.align 3
.LC521:
.string "donkey"
.align 3
.LC522:
.string "donor"
.align 3
.LC523:
.string "door"
.align 3
.LC524:
.string "dose"
.align 3
.LC525:
.string "double"
.align 3
.LC526:
.string "dove"
.align 3
.LC527:
.string "draft"
.align 3
.LC528:
.string "dragon"
.align 3
.LC529:
.string "drama"
.align 3
.LC530:
.string "drastic"
.align 3
.LC531:
.string "draw"
.align 3
.LC532:
.string "dream"
.align 3
.LC533:
.string "dress"
.align 3
.LC534:
.string "drift"
.align 3
.LC535:
.string "drill"
.align 3
.LC536:
.string "drink"
.align 3
.LC537:
.string "drip"
.align 3
.LC538:
.string "drive"
.align 3
.LC539:
.string "drop"
.align 3
.LC540:
.string "drum"
.align 3
.LC541:
.string "dry"
.align 3
.LC542:
.string "duck"
.align 3
.LC543:
.string "dumb"
.align 3
.LC544:
.string "dune"
.align 3
.LC545:
.string "during"
.align 3
.LC546:
.string "dust"
.align 3
.LC547:
.string "dutch"
.align 3
.LC548:
.string "duty"
.align 3
.LC549:
.string "dwarf"
.align 3
.LC550:
.string "dynamic"
.align 3
.LC551:
.string "eager"
.align 3
.LC552:
.string "eagle"
.align 3
.LC553:
.string "early"
.align 3
.LC554:
.string "earn"
.align 3
.LC555:
.string "earth"
.align 3
.LC556:
.string "easily"
.align 3
.LC557:
.string "east"
.align 3
.LC558:
.string "easy"
.align 3
.LC559:
.string "echo"
.align 3
.LC560:
.string "ecology"
.align 3
.LC561:
.string "economy"
.align 3
.LC562:
.string "edge"
.align 3
.LC563:
.string "edit"
.align 3
.LC564:
.string "educate"
.align 3
.LC565:
.string "effort"
.align 3
.LC566:
.string "egg"
.align 3
.LC567:
.string "eight"
.align 3
.LC568:
.string "either"
.align 3
.LC569:
.string "elbow"
.align 3
.LC570:
.string "elder"
.align 3
.LC571:
.string "electric"
.align 3
.LC572:
.string "elegant"
.align 3
.LC573:
.string "element"
.align 3
.LC574:
.string "elephant"
.align 3
.LC575:
.string "elevator"
.align 3
.LC576:
.string "elite"
.align 3
.LC577:
.string "else"
.align 3
.LC578:
.string "embark"
.align 3
.LC579:
.string "embody"
.align 3
.LC580:
.string "embrace"
.align 3
.LC581:
.string "emerge"
.align 3
.LC582:
.string "emotion"
.align 3
.LC583:
.string "employ"
.align 3
.LC584:
.string "empower"
.align 3
.LC585:
.string "empty"
.align 3
.LC586:
.string "enable"
.align 3
.LC587:
.string "enact"
.align 3
.LC588:
.string "end"
.align 3
.LC589:
.string "endless"
.align 3
.LC590:
.string "endorse"
.align 3
.LC591:
.string "enemy"
.align 3
.LC592:
.string "energy"
.align 3
.LC593:
.string "enforce"
.align 3
.LC594:
.string "engage"
.align 3
.LC595:
.string "engine"
.align 3
.LC596:
.string "enhance"
.align 3
.LC597:
.string "enjoy"
.align 3
.LC598:
.string "enlist"
.align 3
.LC599:
.string "enough"
.align 3
.LC600:
.string "enrich"
.align 3
.LC601:
.string "enroll"
.align 3
.LC602:
.string "ensure"
.align 3
.LC603:
.string "enter"
.align 3
.LC604:
.string "entire"
.align 3
.LC605:
.string "entry"
.align 3
.LC606:
.string "envelope"
.align 3
.LC607:
.string "episode"
.align 3
.LC608:
.string "equal"
.align 3
.LC609:
.string "equip"
.align 3
.LC610:
.string "era"
.align 3
.LC611:
.string "erase"
.align 3
.LC612:
.string "erode"
.align 3
.LC613:
.string "erosion"
.align 3
.LC614:
.string "error"
.align 3
.LC615:
.string "erupt"
.align 3
.LC616:
.string "escape"
.align 3
.LC617:
.string "essay"
.align 3
.LC618:
.string "essence"
.align 3
.LC619:
.string "estate"
.align 3
.LC620:
.string "eternal"
.align 3
.LC621:
.string "ethics"
.align 3
.LC622:
.string "evidence"
.align 3
.LC623:
.string "evil"
.align 3
.LC624:
.string "evoke"
.align 3
.LC625:
.string "evolve"
.align 3
.LC626:
.string "exact"
.align 3
.LC627:
.string "example"
.align 3
.LC628:
.string "excess"
.align 3
.LC629:
.string "exchange"
.align 3
.LC630:
.string "excite"
.align 3
.LC631:
.string "exclude"
.align 3
.LC632:
.string "excuse"
.align 3
.LC633:
.string "execute"
.align 3
.LC634:
.string "exercise"
.align 3
.LC635:
.string "exhaust"
.align 3
.LC636:
.string "exhibit"
.align 3
.LC637:
.string "exile"
.align 3
.LC638:
.string "exist"
.align 3
.LC639:
.string "exit"
.align 3
.LC640:
.string "exotic"
.align 3
.LC641:
.string "expand"
.align 3
.LC642:
.string "expect"
.align 3
.LC643:
.string "expire"
.align 3
.LC644:
.string "explain"
.align 3
.LC645:
.string "expose"
.align 3
.LC646:
.string "express"
.align 3
.LC647:
.string "extend"
.align 3
.LC648:
.string "extra"
.align 3
.LC649:
.string "eye"
.align 3
.LC650:
.string "eyebrow"
.align 3
.LC651:
.string "fabric"
.align 3
.LC652:
.string "face"
.align 3
.LC653:
.string "faculty"
.align 3
.LC654:
.string "fade"
.align 3
.LC655:
.string "faint"
.align 3
.LC656:
.string "faith"
.align 3
.LC657:
.string "fall"
.align 3
.LC658:
.string "false"
.align 3
.LC659:
.string "fame"
.align 3
.LC660:
.string "family"
.align 3
.LC661:
.string "famous"
.align 3
.LC662:
.string "fan"
.align 3
.LC663:
.string "fancy"
.align 3
.LC664:
.string "fantasy"
.align 3
.LC665:
.string "farm"
.align 3
.LC666:
.string "fashion"
.align 3
.LC667:
.string "fat"
.align 3
.LC668:
.string "fatal"
.align 3
.LC669:
.string "father"
.align 3
.LC670:
.string "fatigue"
.align 3
.LC671:
.string "fault"
.align 3
.LC672:
.string "favorite"
.align 3
.LC673:
.string "feature"
.align 3
.LC674:
.string "february"
.align 3
.LC675:
.string "federal"
.align 3
.LC676:
.string "fee"
.align 3
.LC677:
.string "feed"
.align 3
.LC678:
.string "feel"
.align 3
.LC679:
.string "female"
.align 3
.LC680:
.string "fence"
.align 3
.LC681:
.string "festival"
.align 3
.LC682:
.string "fetch"
.align 3
.LC683:
.string "fever"
.align 3
.LC684:
.string "few"
.align 3
.LC685:
.string "fiber"
.align 3
.LC686:
.string "fiction"
.align 3
.LC687:
.string "field"
.align 3
.LC688:
.string "figure"
.align 3
.LC689:
.string "file"
.align 3
.LC690:
.string "film"
.align 3
.LC691:
.string "filter"
.align 3
.LC692:
.string "final"
.align 3
.LC693:
.string "find"
.align 3
.LC694:
.string "fine"
.align 3
.LC695:
.string "finger"
.align 3
.LC696:
.string "finish"
.align 3
.LC697:
.string "fire"
.align 3
.LC698:
.string "firm"
.align 3
.LC699:
.string "first"
.align 3
.LC700:
.string "fiscal"
.align 3
.LC701:
.string "fish"
.align 3
.LC702:
.string "fit"
.align 3
.LC703:
.string "fitness"
.align 3
.LC704:
.string "fix"
.align 3
.LC705:
.string "flag"
.align 3
.LC706:
.string "flame"
.align 3
.LC707:
.string "flash"
.align 3
.LC708:
.string "flat"
.align 3
.LC709:
.string "flavor"
.align 3
.LC710:
.string "flee"
.align 3
.LC711:
.string "flight"
.align 3
.LC712:
.string "flip"
.align 3
.LC713:
.string "float"
.align 3
.LC714:
.string "flock"
.align 3
.LC715:
.string "floor"
.align 3
.LC716:
.string "flower"
.align 3
.LC717:
.string "fluid"
.align 3
.LC718:
.string "flush"
.align 3
.LC719:
.string "fly"
.align 3
.LC720:
.string "foam"
.align 3
.LC721:
.string "focus"
.align 3
.LC722:
.string "fog"
.align 3
.LC723:
.string "foil"
.align 3
.LC724:
.string "fold"
.align 3
.LC725:
.string "follow"
.align 3
.LC726:
.string "food"
.align 3
.LC727:
.string "foot"
.align 3
.LC728:
.string "force"
.align 3
.LC729:
.string "forest"
.align 3
.LC730:
.string "forget"
.align 3
.LC731:
.string "fork"
.align 3
.LC732:
.string "fortune"
.align 3
.LC733:
.string "forum"
.align 3
.LC734:
.string "forward"
.align 3
.LC735:
.string "fossil"
.align 3
.LC736:
.string "foster"
.align 3
.LC737:
.string "found"
.align 3
.LC738:
.string "fox"
.align 3
.LC739:
.string "fragile"
.align 3
.LC740:
.string "frame"
.align 3
.LC741:
.string "frequent"
.align 3
.LC742:
.string "fresh"
.align 3
.LC743:
.string "friend"
.align 3
.LC744:
.string "fringe"
.align 3
.LC745:
.string "frog"
.align 3
.LC746:
.string "front"
.align 3
.LC747:
.string "frost"
.align 3
.LC748:
.string "frown"
.align 3
.LC749:
.string "frozen"
.align 3
.LC750:
.string "fruit"
.align 3
.LC751:
.string "fuel"
.align 3
.LC752:
.string "fun"
.align 3
.LC753:
.string "funny"
.align 3
.LC754:
.string "furnace"
.align 3
.LC755:
.string "fury"
.align 3
.LC756:
.string "future"
.align 3
.LC757:
.string "gadget"
.align 3
.LC758:
.string "gain"
.align 3
.LC759:
.string "galaxy"
.align 3
.LC760:
.string "gallery"
.align 3
.LC761:
.string "game"
.align 3
.LC762:
.string "gap"
.align 3
.LC763:
.string "garage"
.align 3
.LC764:
.string "garbage"
.align 3
.LC765:
.string "garden"
.align 3
.LC766:
.string "garlic"
.align 3
.LC767:
.string "garment"
.align 3
.LC768:
.string "gas"
.align 3
.LC769:
.string "gasp"
.align 3
.LC770:
.string "gate"
.align 3
.LC771:
.string "gather"
.align 3
.LC772:
.string "gauge"
.align 3
.LC773:
.string "gaze"
.align 3
.LC774:
.string "general"
.align 3
.LC775:
.string "genius"
.align 3
.LC776:
.string "genre"
.align 3
.LC777:
.string "gentle"
.align 3
.LC778:
.string "genuine"
.align 3
.LC779:
.string "gesture"
.align 3
.LC780:
.string "ghost"
.align 3
.LC781:
.string "giant"
.align 3
.LC782:
.string "gift"
.align 3
.LC783:
.string "giggle"
.align 3
.LC784:
.string "ginger"
.align 3
.LC785:
.string "giraffe"
.align 3
.LC786:
.string "girl"
.align 3
.LC787:
.string "give"
.align 3
.LC788:
.string "glad"
.align 3
.LC789:
.string "glance"
.align 3
.LC790:
.string "glare"
.align 3
.LC791:
.string "glass"
.align 3
.LC792:
.string "glide"
.align 3
.LC793:
.string "glimpse"
.align 3
.LC794:
.string "globe"
.align 3
.LC795:
.string "gloom"
.align 3
.LC796:
.string "glory"
.align 3
.LC797:
.string "glove"
.align 3
.LC798:
.string "glow"
.align 3
.LC799:
.string "glue"
.align 3
.LC800:
.string "goat"
.align 3
.LC801:
.string "goddess"
.align 3
.LC802:
.string "gold"
.align 3
.LC803:
.string "good"
.align 3
.LC804:
.string "goose"
.align 3
.LC805:
.string "gorilla"
.align 3
.LC806:
.string "gospel"
.align 3
.LC807:
.string "gossip"
.align 3
.LC808:
.string "govern"
.align 3
.LC809:
.string "gown"
.align 3
.LC810:
.string "grab"
.align 3
.LC811:
.string "grace"
.align 3
.LC812:
.string "grain"
.align 3
.LC813:
.string "grant"
.align 3
.LC814:
.string "grape"
.align 3
.LC815:
.string "grass"
.align 3
.LC816:
.string "gravity"
.align 3
.LC817:
.string "great"
.align 3
.LC818:
.string "green"
.align 3
.LC819:
.string "grid"
.align 3
.LC820:
.string "grief"
.align 3
.LC821:
.string "grit"
.align 3
.LC822:
.string "grocery"
.align 3
.LC823:
.string "group"
.align 3
.LC824:
.string "grow"
.align 3
.LC825:
.string "grunt"
.align 3
.LC826:
.string "guard"
.align 3
.LC827:
.string "guess"
.align 3
.LC828:
.string "guide"
.align 3
.LC829:
.string "guilt"
.align 3
.LC830:
.string "guitar"
.align 3
.LC831:
.string "gun"
.align 3
.LC832:
.string "gym"
.align 3
.LC833:
.string "habit"
.align 3
.LC834:
.string "hair"
.align 3
.LC835:
.string "half"
.align 3
.LC836:
.string "hammer"
.align 3
.LC837:
.string "hamster"
.align 3
.LC838:
.string "hand"
.align 3
.LC839:
.string "happy"
.align 3
.LC840:
.string "harbor"
.align 3
.LC841:
.string "hard"
.align 3
.LC842:
.string "harsh"
.align 3
.LC843:
.string "harvest"
.align 3
.LC844:
.string "hat"
.align 3
.LC845:
.string "have"
.align 3
.LC846:
.string "hawk"
.align 3
.LC847:
.string "hazard"
.align 3
.LC848:
.string "head"
.align 3
.LC849:
.string "health"
.align 3
.LC850:
.string "heart"
.align 3
.LC851:
.string "heavy"
.align 3
.LC852:
.string "hedgehog"
.align 3
.LC853:
.string "height"
.align 3
.LC854:
.string "hello"
.align 3
.LC855:
.string "helmet"
.align 3
.LC856:
.string "help"
.align 3
.LC857:
.string "hen"
.align 3
.LC858:
.string "hero"
.align 3
.LC859:
.string "hidden"
.align 3
.LC860:
.string "high"
.align 3
.LC861:
.string "hill"
.align 3
.LC862:
.string "hint"
.align 3
.LC863:
.string "hip"
.align 3
.LC864:
.string "hire"
.align 3
.LC865:
.string "history"
.align 3
.LC866:
.string "hobby"
.align 3
.LC867:
.string "hockey"
.align 3
.LC868:
.string "hold"
.align 3
.LC869:
.string "hole"
.align 3
.LC870:
.string "holiday"
.align 3
.LC871:
.string "hollow"
.align 3
.LC872:
.string "home"
.align 3
.LC873:
.string "honey"
.align 3
.LC874:
.string "hood"
.align 3
.LC875:
.string "hope"
.align 3
.LC876:
.string "horn"
.align 3
.LC877:
.string "horror"
.align 3
.LC878:
.string "horse"
.align 3
.LC879:
.string "hospital"
.align 3
.LC880:
.string "host"
.align 3
.LC881:
.string "hotel"
.align 3
.LC882:
.string "hour"
.align 3
.LC883:
.string "hover"
.align 3
.LC884:
.string "hub"
.align 3
.LC885:
.string "huge"
.align 3
.LC886:
.string "human"
.align 3
.LC887:
.string "humble"
.align 3
.LC888:
.string "humor"
.align 3
.LC889:
.string "hundred"
.align 3
.LC890:
.string "hungry"
.align 3
.LC891:
.string "hunt"
.align 3
.LC892:
.string "hurdle"
.align 3
.LC893:
.string "hurry"
.align 3
.LC894:
.string "hurt"
.align 3
.LC895:
.string "husband"
.align 3
.LC896:
.string "hybrid"
.align 3
.LC897:
.string "ice"
.align 3
.LC898:
.string "icon"
.align 3
.LC899:
.string "idea"
.align 3
.LC900:
.string "identify"
.align 3
.LC901:
.string "idle"
.align 3
.LC902:
.string "ignore"
.align 3
.LC903:
.string "ill"
.align 3
.LC904:
.string "illegal"
.align 3
.LC905:
.string "illness"
.align 3
.LC906:
.string "image"
.align 3
.LC907:
.string "imitate"
.align 3
.LC908:
.string "immense"
.align 3
.LC909:
.string "immune"
.align 3
.LC910:
.string "impact"
.align 3
.LC911:
.string "impose"
.align 3
.LC912:
.string "improve"
.align 3
.LC913:
.string "impulse"
.align 3
.LC914:
.string "inch"
.align 3
.LC915:
.string "include"
.align 3
.LC916:
.string "income"
.align 3
.LC917:
.string "increase"
.align 3
.LC918:
.string "index"
.align 3
.LC919:
.string "indicate"
.align 3
.LC920:
.string "indoor"
.align 3
.LC921:
.string "industry"
.align 3
.LC922:
.string "infant"
.align 3
.LC923:
.string "inflict"
.align 3
.LC924:
.string "inform"
.align 3
.LC925:
.string "inhale"
.align 3
.LC926:
.string "inherit"
.align 3
.LC927:
.string "initial"
.align 3
.LC928:
.string "inject"
.align 3
.LC929:
.string "injury"
.align 3
.LC930:
.string "inmate"
.align 3
.LC931:
.string "inner"
.align 3
.LC932:
.string "innocent"
.align 3
.LC933:
.string "input"
.align 3
.LC934:
.string "inquiry"
.align 3
.LC935:
.string "insane"
.align 3
.LC936:
.string "insect"
.align 3
.LC937:
.string "inside"
.align 3
.LC938:
.string "inspire"
.align 3
.LC939:
.string "install"
.align 3
.LC940:
.string "intact"
.align 3
.LC941:
.string "interest"
.align 3
.LC942:
.string "into"
.align 3
.LC943:
.string "invest"
.align 3
.LC944:
.string "invite"
.align 3
.LC945:
.string "involve"
.align 3
.LC946:
.string "iron"
.align 3
.LC947:
.string "island"
.align 3
.LC948:
.string "isolate"
.align 3
.LC949:
.string "issue"
.align 3
.LC950:
.string "item"
.align 3
.LC951:
.string "ivory"
.align 3
.LC952:
.string "jacket"
.align 3
.LC953:
.string "jaguar"
.align 3
.LC954:
.string "jar"
.align 3
.LC955:
.string "jazz"
.align 3
.LC956:
.string "jealous"
.align 3
.LC957:
.string "jeans"
.align 3
.LC958:
.string "jelly"
.align 3
.LC959:
.string "jewel"
.align 3
.LC960:
.string "job"
.align 3
.LC961:
.string "join"
.align 3
.LC962:
.string "joke"
.align 3
.LC963:
.string "journey"
.align 3
.LC964:
.string "joy"
.align 3
.LC965:
.string "judge"
.align 3
.LC966:
.string "juice"
.align 3
.LC967:
.string "jump"
.align 3
.LC968:
.string "jungle"
.align 3
.LC969:
.string "junior"
.align 3
.LC970:
.string "junk"
.align 3
.LC971:
.string "just"
.align 3
.LC972:
.string "kangaroo"
.align 3
.LC973:
.string "keen"
.align 3
.LC974:
.string "keep"
.align 3
.LC975:
.string "ketchup"
.align 3
.LC976:
.string "key"
.align 3
.LC977:
.string "kick"
.align 3
.LC978:
.string "kid"
.align 3
.LC979:
.string "kidney"
.align 3
.LC980:
.string "kind"
.align 3
.LC981:
.string "kingdom"
.align 3
.LC982:
.string "kiss"
.align 3
.LC983:
.string "kit"
.align 3
.LC984:
.string "kitchen"
.align 3
.LC985:
.string "kite"
.align 3
.LC986:
.string "kitten"
.align 3
.LC987:
.string "kiwi"
.align 3
.LC988:
.string "knee"
.align 3
.LC989:
.string "knife"
.align 3
.LC990:
.string "knock"
.align 3
.LC991:
.string "know"
.align 3
.LC992:
.string "lab"
.align 3
.LC993:
.string "label"
.align 3
.LC994:
.string "labor"
.align 3
.LC995:
.string "ladder"
.align 3
.LC996:
.string "lady"
.align 3
.LC997:
.string "lake"
.align 3
.LC998:
.string "lamp"
.align 3
.LC999:
.string "language"
.align 3
.LC1000:
.string "laptop"
.align 3
.LC1001:
.string "large"
.align 3
.LC1002:
.string "later"
.align 3
.LC1003:
.string "latin"
.align 3
.LC1004:
.string "laugh"
.align 3
.LC1005:
.string "laundry"
.align 3
.LC1006:
.string "lava"
.align 3
.LC1007:
.string "law"
.align 3
.LC1008:
.string "lawn"
.align 3
.LC1009:
.string "lawsuit"
.align 3
.LC1010:
.string "layer"
.align 3
.LC1011:
.string "lazy"
.align 3
.LC1012:
.string "leader"
.align 3
.LC1013:
.string "leaf"
.align 3
.LC1014:
.string "learn"
.align 3
.LC1015:
.string "leave"
.align 3
.LC1016:
.string "lecture"
.align 3
.LC1017:
.string "left"
.align 3
.LC1018:
.string "leg"
.align 3
.LC1019:
.string "legal"
.align 3
.LC1020:
.string "legend"
.align 3
.LC1021:
.string "leisure"
.align 3
.LC1022:
.string "lemon"
.align 3
.LC1023:
.string "lend"
.align 3
.LC1024:
.string "length"
.align 3
.LC1025:
.string "lens"
.align 3
.LC1026:
.string "leopard"
.align 3
.LC1027:
.string "lesson"
.align 3
.LC1028:
.string "letter"
.align 3
.LC1029:
.string "level"
.align 3
.LC1030:
.string "liar"
.align 3
.LC1031:
.string "liberty"
.align 3
.LC1032:
.string "library"
.align 3
.LC1033:
.string "license"
.align 3
.LC1034:
.string "life"
.align 3
.LC1035:
.string "lift"
.align 3
.LC1036:
.string "light"
.align 3
.LC1037:
.string "like"
.align 3
.LC1038:
.string "limb"
.align 3
.LC1039:
.string "limit"
.align 3
.LC1040:
.string "link"
.align 3
.LC1041:
.string "lion"
.align 3
.LC1042:
.string "liquid"
.align 3
.LC1043:
.string "list"
.align 3
.LC1044:
.string "little"
.align 3
.LC1045:
.string "live"
.align 3
.LC1046:
.string "lizard"
.align 3
.LC1047:
.string "load"
.align 3
.LC1048:
.string "loan"
.align 3
.LC1049:
.string "lobster"
.align 3
.LC1050:
.string "local"
.align 3
.LC1051:
.string "lock"
.align 3
.LC1052:
.string "logic"
.align 3
.LC1053:
.string "lonely"
.align 3
.LC1054:
.string "long"
.align 3
.LC1055:
.string "loop"
.align 3
.LC1056:
.string "lottery"
.align 3
.LC1057:
.string "loud"
.align 3
.LC1058:
.string "lounge"
.align 3
.LC1059:
.string "love"
.align 3
.LC1060:
.string "loyal"
.align 3
.LC1061:
.string "lucky"
.align 3
.LC1062:
.string "luggage"
.align 3
.LC1063:
.string "lumber"
.align 3
.LC1064:
.string "lunar"
.align 3
.LC1065:
.string "lunch"
.align 3
.LC1066:
.string "luxury"
.align 3
.LC1067:
.string "lyrics"
.align 3
.LC1068:
.string "machine"
.align 3
.LC1069:
.string "mad"
.align 3
.LC1070:
.string "magic"
.align 3
.LC1071:
.string "magnet"
.align 3
.LC1072:
.string "maid"
.align 3
.LC1073:
.string "mail"
.align 3
.LC1074:
.string "main"
.align 3
.LC1075:
.string "major"
.align 3
.LC1076:
.string "make"
.align 3
.LC1077:
.string "mammal"
.align 3
.LC1078:
.string "man"
.align 3
.LC1079:
.string "manage"
.align 3
.LC1080:
.string "mandate"
.align 3
.LC1081:
.string "mango"
.align 3
.LC1082:
.string "mansion"
.align 3
.LC1083:
.string "manual"
.align 3
.LC1084:
.string "maple"
.align 3
.LC1085:
.string "marble"
.align 3
.LC1086:
.string "march"
.align 3
.LC1087:
.string "margin"
.align 3
.LC1088:
.string "marine"
.align 3
.LC1089:
.string "market"
.align 3
.LC1090:
.string "marriage"
.align 3
.LC1091:
.string "mask"
.align 3
.LC1092:
.string "mass"
.align 3
.LC1093:
.string "master"
.align 3
.LC1094:
.string "match"
.align 3
.LC1095:
.string "material"
.align 3
.LC1096:
.string "math"
.align 3
.LC1097:
.string "matrix"
.align 3
.LC1098:
.string "matter"
.align 3
.LC1099:
.string "maximum"
.align 3
.LC1100:
.string "maze"
.align 3
.LC1101:
.string "meadow"
.align 3
.LC1102:
.string "mean"
.align 3
.LC1103:
.string "measure"
.align 3
.LC1104:
.string "meat"
.align 3
.LC1105:
.string "mechanic"
.align 3
.LC1106:
.string "medal"
.align 3
.LC1107:
.string "media"
.align 3
.LC1108:
.string "melody"
.align 3
.LC1109:
.string "melt"
.align 3
.LC1110:
.string "member"
.align 3
.LC1111:
.string "memory"
.align 3
.LC1112:
.string "mention"
.align 3
.LC1113:
.string "menu"
.align 3
.LC1114:
.string "mercy"
.align 3
.LC1115:
.string "merge"
.align 3
.LC1116:
.string "merit"
.align 3
.LC1117:
.string "merry"
.align 3
.LC1118:
.string "mesh"
.align 3
.LC1119:
.string "message"
.align 3
.LC1120:
.string "metal"
.align 3
.LC1121:
.string "method"
.align 3
.LC1122:
.string "middle"
.align 3
.LC1123:
.string "midnight"
.align 3
.LC1124:
.string "milk"
.align 3
.LC1125:
.string "million"
.align 3
.LC1126:
.string "mimic"
.align 3
.LC1127:
.string "mind"
.align 3
.LC1128:
.string "minimum"
.align 3
.LC1129:
.string "minor"
.align 3
.LC1130:
.string "minute"
.align 3
.LC1131:
.string "miracle"
.align 3
.LC1132:
.string "mirror"
.align 3
.LC1133:
.string "misery"
.align 3
.LC1134:
.string "miss"
.align 3
.LC1135:
.string "mistake"
.align 3
.LC1136:
.string "mix"
.align 3
.LC1137:
.string "mixed"
.align 3
.LC1138:
.string "mixture"
.align 3
.LC1139:
.string "mobile"
.align 3
.LC1140:
.string "model"
.align 3
.LC1141:
.string "modify"
.align 3
.LC1142:
.string "mom"
.align 3
.LC1143:
.string "moment"
.align 3
.LC1144:
.string "monitor"
.align 3
.LC1145:
.string "monkey"
.align 3
.LC1146:
.string "monster"
.align 3
.LC1147:
.string "month"
.align 3
.LC1148:
.string "moon"
.align 3
.LC1149:
.string "moral"
.align 3
.LC1150:
.string "more"
.align 3
.LC1151:
.string "morning"
.align 3
.LC1152:
.string "mosquito"
.align 3
.LC1153:
.string "mother"
.align 3
.LC1154:
.string "motion"
.align 3
.LC1155:
.string "motor"
.align 3
.LC1156:
.string "mountain"
.align 3
.LC1157:
.string "mouse"
.align 3
.LC1158:
.string "move"
.align 3
.LC1159:
.string "movie"
.align 3
.LC1160:
.string "much"
.align 3
.LC1161:
.string "muffin"
.align 3
.LC1162:
.string "mule"
.align 3
.LC1163:
.string "multiply"
.align 3
.LC1164:
.string "muscle"
.align 3
.LC1165:
.string "museum"
.align 3
.LC1166:
.string "mushroom"
.align 3
.LC1167:
.string "music"
.align 3
.LC1168:
.string "must"
.align 3
.LC1169:
.string "mutual"
.align 3
.LC1170:
.string "myself"
.align 3
.LC1171:
.string "mystery"
.align 3
.LC1172:
.string "myth"
.align 3
.LC1173:
.string "naive"
.align 3
.LC1174:
.string "name"
.align 3
.LC1175:
.string "napkin"
.align 3
.LC1176:
.string "narrow"
.align 3
.LC1177:
.string "nasty"
.align 3
.LC1178:
.string "nation"
.align 3
.LC1179:
.string "nature"
.align 3
.LC1180:
.string "near"
.align 3
.LC1181:
.string "neck"
.align 3
.LC1182:
.string "need"
.align 3
.LC1183:
.string "negative"
.align 3
.LC1184:
.string "neglect"
.align 3
.LC1185:
.string "neither"
.align 3
.LC1186:
.string "nephew"
.align 3
.LC1187:
.string "nerve"
.align 3
.LC1188:
.string "nest"
.align 3
.LC1189:
.string "net"
.align 3
.LC1190:
.string "network"
.align 3
.LC1191:
.string "neutral"
.align 3
.LC1192:
.string "never"
.align 3
.LC1193:
.string "news"
.align 3
.LC1194:
.string "next"
.align 3
.LC1195:
.string "nice"
.align 3
.LC1196:
.string "night"
.align 3
.LC1197:
.string "noble"
.align 3
.LC1198:
.string "noise"
.align 3
.LC1199:
.string "nominee"
.align 3
.LC1200:
.string "noodle"
.align 3
.LC1201:
.string "normal"
.align 3
.LC1202:
.string "north"
.align 3
.LC1203:
.string "nose"
.align 3
.LC1204:
.string "notable"
.align 3
.LC1205:
.string "note"
.align 3
.LC1206:
.string "nothing"
.align 3
.LC1207:
.string "notice"
.align 3
.LC1208:
.string "novel"
.align 3
.LC1209:
.string "now"
.align 3
.LC1210:
.string "nuclear"
.align 3
.LC1211:
.string "number"
.align 3
.LC1212:
.string "nurse"
.align 3
.LC1213:
.string "nut"
.align 3
.LC1214:
.string "oak"
.align 3
.LC1215:
.string "obey"
.align 3
.LC1216:
.string "object"
.align 3
.LC1217:
.string "oblige"
.align 3
.LC1218:
.string "obscure"
.align 3
.LC1219:
.string "observe"
.align 3
.LC1220:
.string "obtain"
.align 3
.LC1221:
.string "obvious"
.align 3
.LC1222:
.string "occur"
.align 3
.LC1223:
.string "ocean"
.align 3
.LC1224:
.string "october"
.align 3
.LC1225:
.string "odor"
.align 3
.LC1226:
.string "off"
.align 3
.LC1227:
.string "offer"
.align 3
.LC1228:
.string "office"
.align 3
.LC1229:
.string "often"
.align 3
.LC1230:
.string "oil"
.align 3
.LC1231:
.string "okay"
.align 3
.LC1232:
.string "old"
.align 3
.LC1233:
.string "olive"
.align 3
.LC1234:
.string "olympic"
.align 3
.LC1235:
.string "omit"
.align 3
.LC1236:
.string "once"
.align 3
.LC1237:
.string "one"
.align 3
.LC1238:
.string "onion"
.align 3
.LC1239:
.string "online"
.align 3
.LC1240:
.string "only"
.align 3
.LC1241:
.string "open"
.align 3
.LC1242:
.string "opera"
.align 3
.LC1243:
.string "opinion"
.align 3
.LC1244:
.string "oppose"
.align 3
.LC1245:
.string "option"
.align 3
.LC1246:
.string "orange"
.align 3
.LC1247:
.string "orbit"
.align 3
.LC1248:
.string "orchard"
.align 3
.LC1249:
.string "order"
.align 3
.LC1250:
.string "ordinary"
.align 3
.LC1251:
.string "organ"
.align 3
.LC1252:
.string "orient"
.align 3
.LC1253:
.string "original"
.align 3
.LC1254:
.string "orphan"
.align 3
.LC1255:
.string "ostrich"
.align 3
.LC1256:
.string "other"
.align 3
.LC1257:
.string "outdoor"
.align 3
.LC1258:
.string "outer"
.align 3
.LC1259:
.string "output"
.align 3
.LC1260:
.string "outside"
.align 3
.LC1261:
.string "oval"
.align 3
.LC1262:
.string "oven"
.align 3
.LC1263:
.string "over"
.align 3
.LC1264:
.string "own"
.align 3
.LC1265:
.string "owner"
.align 3
.LC1266:
.string "oxygen"
.align 3
.LC1267:
.string "oyster"
.align 3
.LC1268:
.string "ozone"
.align 3
.LC1269:
.string "pact"
.align 3
.LC1270:
.string "paddle"
.align 3
.LC1271:
.string "page"
.align 3
.LC1272:
.string "pair"
.align 3
.LC1273:
.string "palace"
.align 3
.LC1274:
.string "palm"
.align 3
.LC1275:
.string "panda"
.align 3
.LC1276:
.string "panel"
.align 3
.LC1277:
.string "panic"
.align 3
.LC1278:
.string "panther"
.align 3
.LC1279:
.string "paper"
.align 3
.LC1280:
.string "parade"
.align 3
.LC1281:
.string "parent"
.align 3
.LC1282:
.string "park"
.align 3
.LC1283:
.string "parrot"
.align 3
.LC1284:
.string "party"
.align 3
.LC1285:
.string "pass"
.align 3
.LC1286:
.string "patch"
.align 3
.LC1287:
.string "path"
.align 3
.LC1288:
.string "patient"
.align 3
.LC1289:
.string "patrol"
.align 3
.LC1290:
.string "pattern"
.align 3
.LC1291:
.string "pause"
.align 3
.LC1292:
.string "pave"
.align 3
.LC1293:
.string "payment"
.align 3
.LC1294:
.string "peace"
.align 3
.LC1295:
.string "peanut"
.align 3
.LC1296:
.string "pear"
.align 3
.LC1297:
.string "peasant"
.align 3
.LC1298:
.string "pelican"
.align 3
.LC1299:
.string "pen"
.align 3
.LC1300:
.string "penalty"
.align 3
.LC1301:
.string "pencil"
.align 3
.LC1302:
.string "people"
.align 3
.LC1303:
.string "pepper"
.align 3
.LC1304:
.string "perfect"
.align 3
.LC1305:
.string "permit"
.align 3
.LC1306:
.string "person"
.align 3
.LC1307:
.string "pet"
.align 3
.LC1308:
.string "phone"
.align 3
.LC1309:
.string "photo"
.align 3
.LC1310:
.string "phrase"
.align 3
.LC1311:
.string "physical"
.align 3
.LC1312:
.string "piano"
.align 3
.LC1313:
.string "picnic"
.align 3
.LC1314:
.string "picture"
.align 3
.LC1315:
.string "piece"
.align 3
.LC1316:
.string "pig"
.align 3
.LC1317:
.string "pigeon"
.align 3
.LC1318:
.string "pill"
.align 3
.LC1319:
.string "pilot"
.align 3
.LC1320:
.string "pink"
.align 3
.LC1321:
.string "pioneer"
.align 3
.LC1322:
.string "pipe"
.align 3
.LC1323:
.string "pistol"
.align 3
.LC1324:
.string "pitch"
.align 3
.LC1325:
.string "pizza"
.align 3
.LC1326:
.string "place"
.align 3
.LC1327:
.string "planet"
.align 3
.LC1328:
.string "plastic"
.align 3
.LC1329:
.string "plate"
.align 3
.LC1330:
.string "play"
.align 3
.LC1331:
.string "please"
.align 3
.LC1332:
.string "pledge"
.align 3
.LC1333:
.string "pluck"
.align 3
.LC1334:
.string "plug"
.align 3
.LC1335:
.string "plunge"
.align 3
.LC1336:
.string "poem"
.align 3
.LC1337:
.string "poet"
.align 3
.LC1338:
.string "point"
.align 3
.LC1339:
.string "polar"
.align 3
.LC1340:
.string "pole"
.align 3
.LC1341:
.string "police"
.align 3
.LC1342:
.string "pond"
.align 3
.LC1343:
.string "pony"
.align 3
.LC1344:
.string "pool"
.align 3
.LC1345:
.string "popular"
.align 3
.LC1346:
.string "portion"
.align 3
.LC1347:
.string "position"
.align 3
.LC1348:
.string "possible"
.align 3
.LC1349:
.string "post"
.align 3
.LC1350:
.string "potato"
.align 3
.LC1351:
.string "pottery"
.align 3
.LC1352:
.string "poverty"
.align 3
.LC1353:
.string "powder"
.align 3
.LC1354:
.string "power"
.align 3
.LC1355:
.string "practice"
.align 3
.LC1356:
.string "praise"
.align 3
.LC1357:
.string "predict"
.align 3
.LC1358:
.string "prefer"
.align 3
.LC1359:
.string "prepare"
.align 3
.LC1360:
.string "present"
.align 3
.LC1361:
.string "pretty"
.align 3
.LC1362:
.string "prevent"
.align 3
.LC1363:
.string "price"
.align 3
.LC1364:
.string "pride"
.align 3
.LC1365:
.string "primary"
.align 3
.LC1366:
.string "print"
.align 3
.LC1367:
.string "priority"
.align 3
.LC1368:
.string "prison"
.align 3
.LC1369:
.string "private"
.align 3
.LC1370:
.string "prize"
.align 3
.LC1371:
.string "problem"
.align 3
.LC1372:
.string "process"
.align 3
.LC1373:
.string "produce"
.align 3
.LC1374:
.string "profit"
.align 3
.LC1375:
.string "program"
.align 3
.LC1376:
.string "project"
.align 3
.LC1377:
.string "promote"
.align 3
.LC1378:
.string "proof"
.align 3
.LC1379:
.string "property"
.align 3
.LC1380:
.string "prosper"
.align 3
.LC1381:
.string "protect"
.align 3
.LC1382:
.string "proud"
.align 3
.LC1383:
.string "provide"
.align 3
.LC1384:
.string "public"
.align 3
.LC1385:
.string "pudding"
.align 3
.LC1386:
.string "pull"
.align 3
.LC1387:
.string "pulp"
.align 3
.LC1388:
.string "pulse"
.align 3
.LC1389:
.string "pumpkin"
.align 3
.LC1390:
.string "punch"
.align 3
.LC1391:
.string "pupil"
.align 3
.LC1392:
.string "puppy"
.align 3
.LC1393:
.string "purchase"
.align 3
.LC1394:
.string "purity"
.align 3
.LC1395:
.string "purpose"
.align 3
.LC1396:
.string "purse"
.align 3
.LC1397:
.string "push"
.align 3
.LC1398:
.string "put"
.align 3
.LC1399:
.string "puzzle"
.align 3
.LC1400:
.string "pyramid"
.align 3
.LC1401:
.string "quality"
.align 3
.LC1402:
.string "quantum"
.align 3
.LC1403:
.string "quarter"
.align 3
.LC1404:
.string "question"
.align 3
.LC1405:
.string "quick"
.align 3
.LC1406:
.string "quit"
.align 3
.LC1407:
.string "quiz"
.align 3
.LC1408:
.string "quote"
.align 3
.LC1409:
.string "rabbit"
.align 3
.LC1410:
.string "raccoon"
.align 3
.LC1411:
.string "race"
.align 3
.LC1412:
.string "rack"
.align 3
.LC1413:
.string "radar"
.align 3
.LC1414:
.string "radio"
.align 3
.LC1415:
.string "rail"
.align 3
.LC1416:
.string "rain"
.align 3
.LC1417:
.string "raise"
.align 3
.LC1418:
.string "rally"
.align 3
.LC1419:
.string "ramp"
.align 3
.LC1420:
.string "ranch"
.align 3
.LC1421:
.string "random"
.align 3
.LC1422:
.string "range"
.align 3
.LC1423:
.string "rapid"
.align 3
.LC1424:
.string "rare"
.align 3
.LC1425:
.string "rate"
.align 3
.LC1426:
.string "rather"
.align 3
.LC1427:
.string "raven"
.align 3
.LC1428:
.string "raw"
.align 3
.LC1429:
.string "razor"
.align 3
.LC1430:
.string "ready"
.align 3
.LC1431:
.string "real"
.align 3
.LC1432:
.string "reason"
.align 3
.LC1433:
.string "rebel"
.align 3
.LC1434:
.string "rebuild"
.align 3
.LC1435:
.string "recall"
.align 3
.LC1436:
.string "receive"
.align 3
.LC1437:
.string "recipe"
.align 3
.LC1438:
.string "record"
.align 3
.LC1439:
.string "recycle"
.align 3
.LC1440:
.string "reduce"
.align 3
.LC1441:
.string "reflect"
.align 3
.LC1442:
.string "reform"
.align 3
.LC1443:
.string "refuse"
.align 3
.LC1444:
.string "region"
.align 3
.LC1445:
.string "regret"
.align 3
.LC1446:
.string "regular"
.align 3
.LC1447:
.string "reject"
.align 3
.LC1448:
.string "relax"
.align 3
.LC1449:
.string "release"
.align 3
.LC1450:
.string "relief"
.align 3
.LC1451:
.string "rely"
.align 3
.LC1452:
.string "remain"
.align 3
.LC1453:
.string "remember"
.align 3
.LC1454:
.string "remind"
.align 3
.LC1455:
.string "remove"
.align 3
.LC1456:
.string "render"
.align 3
.LC1457:
.string "renew"
.align 3
.LC1458:
.string "rent"
.align 3
.LC1459:
.string "reopen"
.align 3
.LC1460:
.string "repair"
.align 3
.LC1461:
.string "repeat"
.align 3
.LC1462:
.string "replace"
.align 3
.LC1463:
.string "report"
.align 3
.LC1464:
.string "require"
.align 3
.LC1465:
.string "rescue"
.align 3
.LC1466:
.string "resemble"
.align 3
.LC1467:
.string "resist"
.align 3
.LC1468:
.string "resource"
.align 3
.LC1469:
.string "response"
.align 3
.LC1470:
.string "result"
.align 3
.LC1471:
.string "retire"
.align 3
.LC1472:
.string "retreat"
.align 3
.LC1473:
.string "return"
.align 3
.LC1474:
.string "reunion"
.align 3
.LC1475:
.string "reveal"
.align 3
.LC1476:
.string "review"
.align 3
.LC1477:
.string "reward"
.align 3
.LC1478:
.string "rhythm"
.align 3
.LC1479:
.string "rib"
.align 3
.LC1480:
.string "ribbon"
.align 3
.LC1481:
.string "rice"
.align 3
.LC1482:
.string "rich"
.align 3
.LC1483:
.string "ride"
.align 3
.LC1484:
.string "ridge"
.align 3
.LC1485:
.string "rifle"
.align 3
.LC1486:
.string "right"
.align 3
.LC1487:
.string "rigid"
.align 3
.LC1488:
.string "ring"
.align 3
.LC1489:
.string "riot"
.align 3
.LC1490:
.string "ripple"
.align 3
.LC1491:
.string "risk"
.align 3
.LC1492:
.string "ritual"
.align 3
.LC1493:
.string "rival"
.align 3
.LC1494:
.string "river"
.align 3
.LC1495:
.string "road"
.align 3
.LC1496:
.string "roast"
.align 3
.LC1497:
.string "robot"
.align 3
.LC1498:
.string "robust"
.align 3
.LC1499:
.string "rocket"
.align 3
.LC1500:
.string "romance"
.align 3
.LC1501:
.string "roof"
.align 3
.LC1502:
.string "rookie"
.align 3
.LC1503:
.string "room"
.align 3
.LC1504:
.string "rose"
.align 3
.LC1505:
.string "rotate"
.align 3
.LC1506:
.string "rough"
.align 3
.LC1507:
.string "round"
.align 3
.LC1508:
.string "route"
.align 3
.LC1509:
.string "royal"
.align 3
.LC1510:
.string "rubber"
.align 3
.LC1511:
.string "rude"
.align 3
.LC1512:
.string "rug"
.align 3
.LC1513:
.string "rule"
.align 3
.LC1514:
.string "run"
.align 3
.LC1515:
.string "runway"
.align 3
.LC1516:
.string "rural"
.align 3
.LC1517:
.string "sad"
.align 3
.LC1518:
.string "saddle"
.align 3
.LC1519:
.string "sadness"
.align 3
.LC1520:
.string "safe"
.align 3
.LC1521:
.string "sail"
.align 3
.LC1522:
.string "salad"
.align 3
.LC1523:
.string "salmon"
.align 3
.LC1524:
.string "salon"
.align 3
.LC1525:
.string "salt"
.align 3
.LC1526:
.string "salute"
.align 3
.LC1527:
.string "same"
.align 3
.LC1528:
.string "sample"
.align 3
.LC1529:
.string "sand"
.align 3
.LC1530:
.string "satisfy"
.align 3
.LC1531:
.string "satoshi"
.align 3
.LC1532:
.string "sauce"
.align 3
.LC1533:
.string "sausage"
.align 3
.LC1534:
.string "save"
.align 3
.LC1535:
.string "say"
.align 3
.LC1536:
.string "scale"
.align 3
.LC1537:
.string "scan"
.align 3
.LC1538:
.string "scare"
.align 3
.LC1539:
.string "scatter"
.align 3
.LC1540:
.string "scene"
.align 3
.LC1541:
.string "scheme"
.align 3
.LC1542:
.string "school"
.align 3
.LC1543:
.string "science"
.align 3
.LC1544:
.string "scissors"
.align 3
.LC1545:
.string "scorpion"
.align 3
.LC1546:
.string "scout"
.align 3
.LC1547:
.string "scrap"
.align 3
.LC1548:
.string "screen"
.align 3
.LC1549:
.string "script"
.align 3
.LC1550:
.string "scrub"
.align 3
.LC1551:
.string "sea"
.align 3
.LC1552:
.string "search"
.align 3
.LC1553:
.string "season"
.align 3
.LC1554:
.string "seat"
.align 3
.LC1555:
.string "second"
.align 3
.LC1556:
.string "secret"
.align 3
.LC1557:
.string "section"
.align 3
.LC1558:
.string "security"
.align 3
.LC1559:
.string "seed"
.align 3
.LC1560:
.string "seek"
.align 3
.LC1561:
.string "segment"
.align 3
.LC1562:
.string "select"
.align 3
.LC1563:
.string "sell"
.align 3
.LC1564:
.string "seminar"
.align 3
.LC1565:
.string "senior"
.align 3
.LC1566:
.string "sense"
.align 3
.LC1567:
.string "sentence"
.align 3
.LC1568:
.string "series"
.align 3
.LC1569:
.string "service"
.align 3
.LC1570:
.string "session"
.align 3
.LC1571:
.string "settle"
.align 3
.LC1572:
.string "setup"
.align 3
.LC1573:
.string "seven"
.align 3
.LC1574:
.string "shadow"
.align 3
.LC1575:
.string "shaft"
.align 3
.LC1576:
.string "shallow"
.align 3
.LC1577:
.string "share"
.align 3
.LC1578:
.string "shed"
.align 3
.LC1579:
.string "shell"
.align 3
.LC1580:
.string "sheriff"
.align 3
.LC1581:
.string "shield"
.align 3
.LC1582:
.string "shift"
.align 3
.LC1583:
.string "shine"
.align 3
.LC1584:
.string "ship"
.align 3
.LC1585:
.string "shiver"
.align 3
.LC1586:
.string "shock"
.align 3
.LC1587:
.string "shoe"
.align 3
.LC1588:
.string "shoot"
.align 3
.LC1589:
.string "shop"
.align 3
.LC1590:
.string "short"
.align 3
.LC1591:
.string "shoulder"
.align 3
.LC1592:
.string "shove"
.align 3
.LC1593:
.string "shrimp"
.align 3
.LC1594:
.string "shrug"
.align 3
.LC1595:
.string "shuffle"
.align 3
.LC1596:
.string "shy"
.align 3
.LC1597:
.string "sibling"
.align 3
.LC1598:
.string "sick"
.align 3
.LC1599:
.string "side"
.align 3
.LC1600:
.string "siege"
.align 3
.LC1601:
.string "sight"
.align 3
.LC1602:
.string "sign"
.align 3
.LC1603:
.string "silent"
.align 3
.LC1604:
.string "silk"
.align 3
.LC1605:
.string "silly"
.align 3
.LC1606:
.string "silver"
.align 3
.LC1607:
.string "similar"
.align 3
.LC1608:
.string "simple"
.align 3
.LC1609:
.string "since"
.align 3
.LC1610:
.string "sing"
.align 3
.LC1611:
.string "siren"
.align 3
.LC1612:
.string "sister"
.align 3
.LC1613:
.string "situate"
.align 3
.LC1614:
.string "six"
.align 3
.LC1615:
.string "size"
.align 3
.LC1616:
.string "skate"
.align 3
.LC1617:
.string "sketch"
.align 3
.LC1618:
.string "ski"
.align 3
.LC1619:
.string "skill"
.align 3
.LC1620:
.string "skin"
.align 3
.LC1621:
.string "skirt"
.align 3
.LC1622:
.string "skull"
.align 3
.LC1623:
.string "slab"
.align 3
.LC1624:
.string "slam"
.align 3
.LC1625:
.string "sleep"
.align 3
.LC1626:
.string "slender"
.align 3
.LC1627:
.string "slice"
.align 3
.LC1628:
.string "slide"
.align 3
.LC1629:
.string "slight"
.align 3
.LC1630:
.string "slim"
.align 3
.LC1631:
.string "slogan"
.align 3
.LC1632:
.string "slot"
.align 3
.LC1633:
.string "slow"
.align 3
.LC1634:
.string "slush"
.align 3
.LC1635:
.string "small"
.align 3
.LC1636:
.string "smart"
.align 3
.LC1637:
.string "smile"
.align 3
.LC1638:
.string "smoke"
.align 3
.LC1639:
.string "smooth"
.align 3
.LC1640:
.string "snack"
.align 3
.LC1641:
.string "snake"
.align 3
.LC1642:
.string "snap"
.align 3
.LC1643:
.string "sniff"
.align 3
.LC1644:
.string "snow"
.align 3
.LC1645:
.string "soap"
.align 3
.LC1646:
.string "soccer"
.align 3
.LC1647:
.string "social"
.align 3
.LC1648:
.string "sock"
.align 3
.LC1649:
.string "soda"
.align 3
.LC1650:
.string "soft"
.align 3
.LC1651:
.string "solar"
.align 3
.LC1652:
.string "soldier"
.align 3
.LC1653:
.string "solid"
.align 3
.LC1654:
.string "solution"
.align 3
.LC1655:
.string "solve"
.align 3
.LC1656:
.string "someone"
.align 3
.LC1657:
.string "song"
.align 3
.LC1658:
.string "soon"
.align 3
.LC1659:
.string "sorry"
.align 3
.LC1660:
.string "sort"
.align 3
.LC1661:
.string "soul"
.align 3
.LC1662:
.string "sound"
.align 3
.LC1663:
.string "soup"
.align 3
.LC1664:
.string "source"
.align 3
.LC1665:
.string "south"
.align 3
.LC1666:
.string "space"
.align 3
.LC1667:
.string "spare"
.align 3
.LC1668:
.string "spatial"
.align 3
.LC1669:
.string "spawn"
.align 3
.LC1670:
.string "speak"
.align 3
.LC1671:
.string "special"
.align 3
.LC1672:
.string "speed"
.align 3
.LC1673:
.string "spell"
.align 3
.LC1674:
.string "spend"
.align 3
.LC1675:
.string "sphere"
.align 3
.LC1676:
.string "spice"
.align 3
.LC1677:
.string "spider"
.align 3
.LC1678:
.string "spike"
.align 3
.LC1679:
.string "spin"
.align 3
.LC1680:
.string "spirit"
.align 3
.LC1681:
.string "split"
.align 3
.LC1682:
.string "spoil"
.align 3
.LC1683:
.string "sponsor"
.align 3
.LC1684:
.string "spoon"
.align 3
.LC1685:
.string "sport"
.align 3
.LC1686:
.string "spot"
.align 3
.LC1687:
.string "spray"
.align 3
.LC1688:
.string "spread"
.align 3
.LC1689:
.string "spring"
.align 3
.LC1690:
.string "spy"
.align 3
.LC1691:
.string "square"
.align 3
.LC1692:
.string "squeeze"
.align 3
.LC1693:
.string "squirrel"
.align 3
.LC1694:
.string "stable"
.align 3
.LC1695:
.string "stadium"
.align 3
.LC1696:
.string "staff"
.align 3
.LC1697:
.string "stage"
.align 3
.LC1698:
.string "stairs"
.align 3
.LC1699:
.string "stamp"
.align 3
.LC1700:
.string "stand"
.align 3
.LC1701:
.string "start"
.align 3
.LC1702:
.string "state"
.align 3
.LC1703:
.string "stay"
.align 3
.LC1704:
.string "steak"
.align 3
.LC1705:
.string "steel"
.align 3
.LC1706:
.string "stem"
.align 3
.LC1707:
.string "step"
.align 3
.LC1708:
.string "stereo"
.align 3
.LC1709:
.string "stick"
.align 3
.LC1710:
.string "still"
.align 3
.LC1711:
.string "sting"
.align 3
.LC1712:
.string "stock"
.align 3
.LC1713:
.string "stomach"
.align 3
.LC1714:
.string "stone"
.align 3
.LC1715:
.string "stool"
.align 3
.LC1716:
.string "story"
.align 3
.LC1717:
.string "stove"
.align 3
.LC1718:
.string "strategy"
.align 3
.LC1719:
.string "street"
.align 3
.LC1720:
.string "strike"
.align 3
.LC1721:
.string "strong"
.align 3
.LC1722:
.string "struggle"
.align 3
.LC1723:
.string "student"
.align 3
.LC1724:
.string "stuff"
.align 3
.LC1725:
.string "stumble"
.align 3
.LC1726:
.string "style"
.align 3
.LC1727:
.string "subject"
.align 3
.LC1728:
.string "submit"
.align 3
.LC1729:
.string "subway"
.align 3
.LC1730:
.string "success"
.align 3
.LC1731:
.string "such"
.align 3
.LC1732:
.string "sudden"
.align 3
.LC1733:
.string "suffer"
.align 3
.LC1734:
.string "sugar"
.align 3
.LC1735:
.string "suggest"
.align 3
.LC1736:
.string "suit"
.align 3
.LC1737:
.string "summer"
.align 3
.LC1738:
.string "sun"
.align 3
.LC1739:
.string "sunny"
.align 3
.LC1740:
.string "sunset"
.align 3
.LC1741:
.string "super"
.align 3
.LC1742:
.string "supply"
.align 3
.LC1743:
.string "supreme"
.align 3
.LC1744:
.string "sure"
.align 3
.LC1745:
.string "surface"
.align 3
.LC1746:
.string "surge"
.align 3
.LC1747:
.string "surprise"
.align 3
.LC1748:
.string "surround"
.align 3
.LC1749:
.string "survey"
.align 3
.LC1750:
.string "suspect"
.align 3
.LC1751:
.string "sustain"
.align 3
.LC1752:
.string "swallow"
.align 3
.LC1753:
.string "swamp"
.align 3
.LC1754:
.string "swap"
.align 3
.LC1755:
.string "swarm"
.align 3
.LC1756:
.string "swear"
.align 3
.LC1757:
.string "sweet"
.align 3
.LC1758:
.string "swift"
.align 3
.LC1759:
.string "swim"
.align 3
.LC1760:
.string "swing"
.align 3
.LC1761:
.string "switch"
.align 3
.LC1762:
.string "sword"
.align 3
.LC1763:
.string "symbol"
.align 3
.LC1764:
.string "symptom"
.align 3
.LC1765:
.string "syrup"
.align 3
.LC1766:
.string "system"
.align 3
.LC1767:
.string "table"
.align 3
.LC1768:
.string "tackle"
.align 3
.LC1769:
.string "tag"
.align 3
.LC1770:
.string "tail"
.align 3
.LC1771:
.string "talent"
.align 3
.LC1772:
.string "talk"
.align 3
.LC1773:
.string "tank"
.align 3
.LC1774:
.string "tape"
.align 3
.LC1775:
.string "target"
.align 3
.LC1776:
.string "task"
.align 3
.LC1777:
.string "taste"
.align 3
.LC1778:
.string "tattoo"
.align 3
.LC1779:
.string "taxi"
.align 3
.LC1780:
.string "teach"
.align 3
.LC1781:
.string "team"
.align 3
.LC1782:
.string "tell"
.align 3
.LC1783:
.string "ten"
.align 3
.LC1784:
.string "tenant"
.align 3
.LC1785:
.string "tennis"
.align 3
.LC1786:
.string "tent"
.align 3
.LC1787:
.string "term"
.align 3
.LC1788:
.string "test"
.align 3
.LC1789:
.string "text"
.align 3
.LC1790:
.string "thank"
.align 3
.LC1791:
.string "that"
.align 3
.LC1792:
.string "theme"
.align 3
.LC1793:
.string "then"
.align 3
.LC1794:
.string "theory"
.align 3
.LC1795:
.string "there"
.align 3
.LC1796:
.string "they"
.align 3
.LC1797:
.string "thing"
.align 3
.LC1798:
.string "this"
.align 3
.LC1799:
.string "thought"
.align 3
.LC1800:
.string "three"
.align 3
.LC1801:
.string "thrive"
.align 3
.LC1802:
.string "throw"
.align 3
.LC1803:
.string "thumb"
.align 3
.LC1804:
.string "thunder"
.align 3
.LC1805:
.string "ticket"
.align 3
.LC1806:
.string "tide"
.align 3
.LC1807:
.string "tiger"
.align 3
.LC1808:
.string "tilt"
.align 3
.LC1809:
.string "timber"
.align 3
.LC1810:
.string "time"
.align 3
.LC1811:
.string "tiny"
.align 3
.LC1812:
.string "tip"
.align 3
.LC1813:
.string "tired"
.align 3
.LC1814:
.string "tissue"
.align 3
.LC1815:
.string "title"
.align 3
.LC1816:
.string "toast"
.align 3
.LC1817:
.string "tobacco"
.align 3
.LC1818:
.string "today"
.align 3
.LC1819:
.string "toddler"
.align 3
.LC1820:
.string "toe"
.align 3
.LC1821:
.string "together"
.align 3
.LC1822:
.string "toilet"
.align 3
.LC1823:
.string "token"
.align 3
.LC1824:
.string "tomato"
.align 3
.LC1825:
.string "tomorrow"
.align 3
.LC1826:
.string "tone"
.align 3
.LC1827:
.string "tongue"
.align 3
.LC1828:
.string "tonight"
.align 3
.LC1829:
.string "tool"
.align 3
.LC1830:
.string "tooth"
.align 3
.LC1831:
.string "top"
.align 3
.LC1832:
.string "topic"
.align 3
.LC1833:
.string "topple"
.align 3
.LC1834:
.string "torch"
.align 3
.LC1835:
.string "tornado"
.align 3
.LC1836:
.string "tortoise"
.align 3
.LC1837:
.string "toss"
.align 3
.LC1838:
.string "total"
.align 3
.LC1839:
.string "tourist"
.align 3
.LC1840:
.string "toward"
.align 3
.LC1841:
.string "tower"
.align 3
.LC1842:
.string "town"
.align 3
.LC1843:
.string "toy"
.align 3
.LC1844:
.string "track"
.align 3
.LC1845:
.string "trade"
.align 3
.LC1846:
.string "traffic"
.align 3
.LC1847:
.string "tragic"
.align 3
.LC1848:
.string "train"
.align 3
.LC1849:
.string "transfer"
.align 3
.LC1850:
.string "trap"
.align 3
.LC1851:
.string "trash"
.align 3
.LC1852:
.string "travel"
.align 3
.LC1853:
.string "tray"
.align 3
.LC1854:
.string "treat"
.align 3
.LC1855:
.string "tree"
.align 3
.LC1856:
.string "trend"
.align 3
.LC1857:
.string "trial"
.align 3
.LC1858:
.string "tribe"
.align 3
.LC1859:
.string "trick"
.align 3
.LC1860:
.string "trigger"
.align 3
.LC1861:
.string "trim"
.align 3
.LC1862:
.string "trip"
.align 3
.LC1863:
.string "trophy"
.align 3
.LC1864:
.string "trouble"
.align 3
.LC1865:
.string "truck"
.align 3
.LC1866:
.string "true"
.align 3
.LC1867:
.string "truly"
.align 3
.LC1868:
.string "trumpet"
.align 3
.LC1869:
.string "trust"
.align 3
.LC1870:
.string "truth"
.align 3
.LC1871:
.string "try"
.align 3
.LC1872:
.string "tube"
.align 3
.LC1873:
.string "tuition"
.align 3
.LC1874:
.string "tumble"
.align 3
.LC1875:
.string "tuna"
.align 3
.LC1876:
.string "tunnel"
.align 3
.LC1877:
.string "turkey"
.align 3
.LC1878:
.string "turn"
.align 3
.LC1879:
.string "turtle"
.align 3
.LC1880:
.string "twelve"
.align 3
.LC1881:
.string "twenty"
.align 3
.LC1882:
.string "twice"
.align 3
.LC1883:
.string "twin"
.align 3
.LC1884:
.string "twist"
.align 3
.LC1885:
.string "two"
.align 3
.LC1886:
.string "type"
.align 3
.LC1887:
.string "typical"
.align 3
.LC1888:
.string "ugly"
.align 3
.LC1889:
.string "umbrella"
.align 3
.LC1890:
.string "unable"
.align 3
.LC1891:
.string "unaware"
.align 3
.LC1892:
.string "uncle"
.align 3
.LC1893:
.string "uncover"
.align 3
.LC1894:
.string "under"
.align 3
.LC1895:
.string "undo"
.align 3
.LC1896:
.string "unfair"
.align 3
.LC1897:
.string "unfold"
.align 3
.LC1898:
.string "unhappy"
.align 3
.LC1899:
.string "uniform"
.align 3
.LC1900:
.string "unique"
.align 3
.LC1901:
.string "unit"
.align 3
.LC1902:
.string "universe"
.align 3
.LC1903:
.string "unknown"
.align 3
.LC1904:
.string "unlock"
.align 3
.LC1905:
.string "until"
.align 3
.LC1906:
.string "unusual"
.align 3
.LC1907:
.string "unveil"
.align 3
.LC1908:
.string "update"
.align 3
.LC1909:
.string "upgrade"
.align 3
.LC1910:
.string "uphold"
.align 3
.LC1911:
.string "upon"
.align 3
.LC1912:
.string "upper"
.align 3
.LC1913:
.string "upset"
.align 3
.LC1914:
.string "urban"
.align 3
.LC1915:
.string "urge"
.align 3
.LC1916:
.string "usage"
.align 3
.LC1917:
.string "use"
.align 3
.LC1918:
.string "used"
.align 3
.LC1919:
.string "useful"
.align 3
.LC1920:
.string "useless"
.align 3
.LC1921:
.string "usual"
.align 3
.LC1922:
.string "utility"
.align 3
.LC1923:
.string "vacant"
.align 3
.LC1924:
.string "vacuum"
.align 3
.LC1925:
.string "vague"
.align 3
.LC1926:
.string "valid"
.align 3
.LC1927:
.string "valley"
.align 3
.LC1928:
.string "valve"
.align 3
.LC1929:
.string "van"
.align 3
.LC1930:
.string "vanish"
.align 3
.LC1931:
.string "vapor"
.align 3
.LC1932:
.string "various"
.align 3
.LC1933:
.string "vast"
.align 3
.LC1934:
.string "vault"
.align 3
.LC1935:
.string "vehicle"
.align 3
.LC1936:
.string "velvet"
.align 3
.LC1937:
.string "vendor"
.align 3
.LC1938:
.string "venture"
.align 3
.LC1939:
.string "venue"
.align 3
.LC1940:
.string "verb"
.align 3
.LC1941:
.string "verify"
.align 3
.LC1942:
.string "version"
.align 3
.LC1943:
.string "very"
.align 3
.LC1944:
.string "vessel"
.align 3
.LC1945:
.string "veteran"
.align 3
.LC1946:
.string "viable"
.align 3
.LC1947:
.string "vibrant"
.align 3
.LC1948:
.string "vicious"
.align 3
.LC1949:
.string "victory"
.align 3
.LC1950:
.string "video"
.align 3
.LC1951:
.string "view"
.align 3
.LC1952:
.string "village"
.align 3
.LC1953:
.string "vintage"
.align 3
.LC1954:
.string "violin"
.align 3
.LC1955:
.string "virtual"
.align 3
.LC1956:
.string "virus"
.align 3
.LC1957:
.string "visa"
.align 3
.LC1958:
.string "visit"
.align 3
.LC1959:
.string "visual"
.align 3
.LC1960:
.string "vital"
.align 3
.LC1961:
.string "vivid"
.align 3
.LC1962:
.string "vocal"
.align 3
.LC1963:
.string "voice"
.align 3
.LC1964:
.string "void"
.align 3
.LC1965:
.string "volcano"
.align 3
.LC1966:
.string "volume"
.align 3
.LC1967:
.string "vote"
.align 3
.LC1968:
.string "voyage"
.align 3
.LC1969:
.string "wage"
.align 3
.LC1970:
.string "wagon"
.align 3
.LC1971:
.string "wait"
.align 3
.LC1972:
.string "walk"
.align 3
.LC1973:
.string "wall"
.align 3
.LC1974:
.string "walnut"
.align 3
.LC1975:
.string "want"
.align 3
.LC1976:
.string "warfare"
.align 3
.LC1977:
.string "warm"
.align 3
.LC1978:
.string "warrior"
.align 3
.LC1979:
.string "wash"
.align 3
.LC1980:
.string "wasp"
.align 3
.LC1981:
.string "waste"
.align 3
.LC1982:
.string "water"
.align 3
.LC1983:
.string "wave"
.align 3
.LC1984:
.string "way"
.align 3
.LC1985:
.string "wealth"
.align 3
.LC1986:
.string "weapon"
.align 3
.LC1987:
.string "wear"
.align 3
.LC1988:
.string "weasel"
.align 3
.LC1989:
.string "weather"
.align 3
.LC1990:
.string "web"
.align 3
.LC1991:
.string "wedding"
.align 3
.LC1992:
.string "weekend"
.align 3
.LC1993:
.string "weird"
.align 3
.LC1994:
.string "welcome"
.align 3
.LC1995:
.string "west"
.align 3
.LC1996:
.string "wet"
.align 3
.LC1997:
.string "whale"
.align 3
.LC1998:
.string "what"
.align 3
.LC1999:
.string "wheat"
.align 3
.LC2000:
.string "wheel"
.align 3
.LC2001:
.string "when"
.align 3
.LC2002:
.string "where"
.align 3
.LC2003:
.string "whip"
.align 3
.LC2004:
.string "whisper"
.align 3
.LC2005:
.string "wide"
.align 3
.LC2006:
.string "width"
.align 3
.LC2007:
.string "wife"
.align 3
.LC2008:
.string "wild"
.align 3
.LC2009:
.string "will"
.align 3
.LC2010:
.string "win"
.align 3
.LC2011:
.string "window"
.align 3
.LC2012:
.string "wine"
.align 3
.LC2013:
.string "wing"
.align 3
.LC2014:
.string "wink"
.align 3
.LC2015:
.string "winner"
.align 3
.LC2016:
.string "winter"
.align 3
.LC2017:
.string "wire"
.align 3
.LC2018:
.string "wisdom"
.align 3
.LC2019:
.string "wise"
.align 3
.LC2020:
.string "wish"
.align 3
.LC2021:
.string "witness"
.align 3
.LC2022:
.string "wolf"
.align 3
.LC2023:
.string "woman"
.align 3
.LC2024:
.string "wonder"
.align 3
.LC2025:
.string "wood"
.align 3
.LC2026:
.string "wool"
.align 3
.LC2027:
.string "word"
.align 3
.LC2028:
.string "work"
.align 3
.LC2029:
.string "world"
.align 3
.LC2030:
.string "worry"
.align 3
.LC2031:
.string "worth"
.align 3
.LC2032:
.string "wrap"
.align 3
.LC2033:
.string "wreck"
.align 3
.LC2034:
.string "wrestle"
.align 3
.LC2035:
.string "wrist"
.align 3
.LC2036:
.string "write"
.align 3
.LC2037:
.string "wrong"
.align 3
.LC2038:
.string "yard"
.align 3
.LC2039:
.string "year"
.align 3
.LC2040:
.string "yellow"
.align 3
.LC2041:
.string "you"
.align 3
.LC2042:
.string "young"
.align 3
.LC2043:
.string "youth"
.align 3
.LC2044:
.string "zebra"
.align 3
.LC2045:
.string "zero"
.align 3
.LC2046:
.string "zone"
.align 3
.LC2047:
.string "zoo"
.section .data.rel.ro.local,"aw"
.align 3
.type wordlist, %object
.size wordlist, 16392
wordlist:
.xword .LC0
.xword .LC1
.xword .LC2
.xword .LC3
.xword .LC4
.xword .LC5
.xword .LC6
.xword .LC7
.xword .LC8
.xword .LC9
.xword .LC10
.xword .LC11
.xword .LC12
.xword .LC13
.xword .LC14
.xword .LC15
.xword .LC16
.xword .LC17
.xword .LC18
.xword .LC19
.xword .LC20
.xword .LC21
.xword .LC22
.xword .LC23
.xword .LC24
.xword .LC25
.xword .LC26
.xword .LC27
.xword .LC28
.xword .LC29
.xword .LC30
.xword .LC31
.xword .LC32
.xword .LC33
.xword .LC34
.xword .LC35
.xword .LC36
.xword .LC37
.xword .LC38
.xword .LC39
.xword .LC40
.xword .LC41
.xword .LC42
.xword .LC43
.xword .LC44
.xword .LC45
.xword .LC46
.xword .LC47
.xword .LC48
.xword .LC49
.xword .LC50
.xword .LC51
.xword .LC52
.xword .LC53
.xword .LC54
.xword .LC55
.xword .LC56
.xword .LC57
.xword .LC58
.xword .LC59
.xword .LC60
.xword .LC61
.xword .LC62
.xword .LC63
.xword .LC64
.xword .LC65
.xword .LC66
.xword .LC67
.xword .LC68
.xword .LC69
.xword .LC70
.xword .LC71
.xword .LC72
.xword .LC73
.xword .LC74
.xword .LC75
.xword .LC76
.xword .LC77
.xword .LC78
.xword .LC79
.xword .LC80
.xword .LC81
.xword .LC82
.xword .LC83
.xword .LC84
.xword .LC85
.xword .LC86
.xword .LC87
.xword .LC88
.xword .LC89
.xword .LC90
.xword .LC91
.xword .LC92
.xword .LC93
.xword .LC94
.xword .LC95
.xword .LC96
.xword .LC97
.xword .LC98
.xword .LC99
.xword .LC100
.xword .LC101
.xword .LC102
.xword .LC103
.xword .LC104
.xword .LC105
.xword .LC106
.xword .LC107
.xword .LC108
.xword .LC109
.xword .LC110
.xword .LC111
.xword .LC112
.xword .LC113
.xword .LC114
.xword .LC115
.xword .LC116
.xword .LC117
.xword .LC118
.xword .LC119
.xword .LC120
.xword .LC121
.xword .LC122
.xword .LC123
.xword .LC124
.xword .LC125
.xword .LC126
.xword .LC127
.xword .LC128
.xword .LC129
.xword .LC130
.xword .LC131
.xword .LC132
.xword .LC133
.xword .LC134
.xword .LC135
.xword .LC136
.xword .LC137
.xword .LC138
.xword .LC139
.xword .LC140
.xword .LC141
.xword .LC142
.xword .LC143
.xword .LC144
.xword .LC145
.xword .LC146
.xword .LC147
.xword .LC148
.xword .LC149
.xword .LC150
.xword .LC151
.xword .LC152
.xword .LC153
.xword .LC154
.xword .LC155
.xword .LC156
.xword .LC157
.xword .LC158
.xword .LC159
.xword .LC160
.xword .LC161
.xword .LC162
.xword .LC163
.xword .LC164
.xword .LC165
.xword .LC166
.xword .LC167
.xword .LC168
.xword .LC169
.xword .LC170
.xword .LC171
.xword .LC172
.xword .LC173
.xword .LC174
.xword .LC175
.xword .LC176
.xword .LC177
.xword .LC178
.xword .LC179
.xword .LC180
.xword .LC181
.xword .LC182
.xword .LC183
.xword .LC184
.xword .LC185
.xword .LC186
.xword .LC187
.xword .LC188
.xword .LC189
.xword .LC190
.xword .LC191
.xword .LC192
.xword .LC193
.xword .LC194
.xword .LC195
.xword .LC196
.xword .LC197
.xword .LC198
.xword .LC199
.xword .LC200
.xword .LC201
.xword .LC202
.xword .LC203
.xword .LC204
.xword .LC205
.xword .LC206
.xword .LC207
.xword .LC208
.xword .LC209
.xword .LC210
.xword .LC211
.xword .LC212
.xword .LC213
.xword .LC214
.xword .LC215
.xword .LC216
.xword .LC217
.xword .LC218
.xword .LC219
.xword .LC220
.xword .LC221
.xword .LC222
.xword .LC223
.xword .LC224
.xword .LC225
.xword .LC226
.xword .LC227
.xword .LC228
.xword .LC229
.xword .LC230
.xword .LC231
.xword .LC232
.xword .LC233
.xword .LC234
.xword .LC235
.xword .LC236
.xword .LC237
.xword .LC238
.xword .LC239
.xword .LC240
.xword .LC241
.xword .LC242
.xword .LC243
.xword .LC244
.xword .LC245
.xword .LC246
.xword .LC247
.xword .LC248
.xword .LC249
.xword .LC250
.xword .LC251
.xword .LC252
.xword .LC253
.xword .LC254
.xword .LC255
.xword .LC256
.xword .LC257
.xword .LC258
.xword .LC259
.xword .LC260
.xword .LC261
.xword .LC262
.xword .LC263
.xword .LC264
.xword .LC265
.xword .LC266
.xword .LC267
.xword .LC268
.xword .LC269
.xword .LC270
.xword .LC271
.xword .LC272
.xword .LC273
.xword .LC274
.xword .LC275
.xword .LC276
.xword .LC277
.xword .LC278
.xword .LC279
.xword .LC280
.xword .LC281
.xword .LC282
.xword .LC283
.xword .LC284
.xword .LC285
.xword .LC286
.xword .LC287
.xword .LC288
.xword .LC289
.xword .LC290
.xword .LC291
.xword .LC292
.xword .LC293
.xword .LC294
.xword .LC295
.xword .LC296
.xword .LC297
.xword .LC298
.xword .LC299
.xword .LC300
.xword .LC301
.xword .LC302
.xword .LC303
.xword .LC304
.xword .LC305
.xword .LC306
.xword .LC307
.xword .LC308
.xword .LC309
.xword .LC310
.xword .LC311
.xword .LC312
.xword .LC313
.xword .LC314
.xword .LC315
.xword .LC316
.xword .LC317
.xword .LC318
.xword .LC319
.xword .LC320
.xword .LC321
.xword .LC322
.xword .LC323
.xword .LC324
.xword .LC325
.xword .LC326
.xword .LC327
.xword .LC328
.xword .LC329
.xword .LC330
.xword .LC331
.xword .LC332
.xword .LC333
.xword .LC334
.xword .LC335
.xword .LC336
.xword .LC337
.xword .LC338
.xword .LC339
.xword .LC340
.xword .LC341
.xword .LC342
.xword .LC343
.xword .LC344
.xword .LC345
.xword .LC346
.xword .LC347
.xword .LC348
.xword .LC349
.xword .LC350
.xword .LC351
.xword .LC352
.xword .LC353
.xword .LC354
.xword .LC355
.xword .LC356
.xword .LC357
.xword .LC358
.xword .LC359
.xword .LC360
.xword .LC361
.xword .LC362
.xword .LC363
.xword .LC364
.xword .LC365
.xword .LC366
.xword .LC367
.xword .LC368
.xword .LC369
.xword .LC370
.xword .LC371
.xword .LC372
.xword .LC373
.xword .LC374
.xword .LC375
.xword .LC376
.xword .LC377
.xword .LC378
.xword .LC379
.xword .LC380
.xword .LC381
.xword .LC382
.xword .LC383
.xword .LC384
.xword .LC385
.xword .LC386
.xword .LC387
.xword .LC388
.xword .LC389
.xword .LC390
.xword .LC391
.xword .LC392
.xword .LC393
.xword .LC394
.xword .LC395
.xword .LC396
.xword .LC397
.xword .LC398
.xword .LC399
.xword .LC400
.xword .LC401
.xword .LC402
.xword .LC403
.xword .LC404
.xword .LC405
.xword .LC406
.xword .LC407
.xword .LC408
.xword .LC409
.xword .LC410
.xword .LC411
.xword .LC412
.xword .LC413
.xword .LC414
.xword .LC415
.xword .LC416
.xword .LC417
.xword .LC418
.xword .LC419
.xword .LC420
.xword .LC421
.xword .LC422
.xword .LC423
.xword .LC424
.xword .LC425
.xword .LC426
.xword .LC427
.xword .LC428
.xword .LC429
.xword .LC430
.xword .LC431
.xword .LC432
.xword .LC433
.xword .LC434
.xword .LC435
.xword .LC436
.xword .LC437
.xword .LC438
.xword .LC439
.xword .LC440
.xword .LC441
.xword .LC442
.xword .LC443
.xword .LC444
.xword .LC445
.xword .LC446
.xword .LC447
.xword .LC448
.xword .LC449
.xword .LC450
.xword .LC451
.xword .LC452
.xword .LC453
.xword .LC454
.xword .LC455
.xword .LC456
.xword .LC457
.xword .LC458
.xword .LC459
.xword .LC460
.xword .LC461
.xword .LC462
.xword .LC463
.xword .LC464
.xword .LC465
.xword .LC466
.xword .LC467
.xword .LC468
.xword .LC469
.xword .LC470
.xword .LC471
.xword .LC472
.xword .LC473
.xword .LC474
.xword .LC475
.xword .LC476
.xword .LC477
.xword .LC478
.xword .LC479
.xword .LC480
.xword .LC481
.xword .LC482
.xword .LC483
.xword .LC484
.xword .LC485
.xword .LC486
.xword .LC487
.xword .LC488
.xword .LC489
.xword .LC490
.xword .LC491
.xword .LC492
.xword .LC493
.xword .LC494
.xword .LC495
.xword .LC496
.xword .LC497
.xword .LC498
.xword .LC499
.xword .LC500
.xword .LC501
.xword .LC502
.xword .LC503
.xword .LC504
.xword .LC505
.xword .LC506
.xword .LC507
.xword .LC508
.xword .LC509
.xword .LC510
.xword .LC511
.xword .LC512
.xword .LC513
.xword .LC514
.xword .LC515
.xword .LC516
.xword .LC517
.xword .LC518
.xword .LC519
.xword .LC520
.xword .LC521
.xword .LC522
.xword .LC523
.xword .LC524
.xword .LC525
.xword .LC526
.xword .LC527
.xword .LC528
.xword .LC529
.xword .LC530
.xword .LC531
.xword .LC532
.xword .LC533
.xword .LC534
.xword .LC535
.xword .LC536
.xword .LC537
.xword .LC538
.xword .LC539
.xword .LC540
.xword .LC541
.xword .LC542
.xword .LC543
.xword .LC544
.xword .LC545
.xword .LC546
.xword .LC547
.xword .LC548
.xword .LC549
.xword .LC550
.xword .LC551
.xword .LC552
.xword .LC553
.xword .LC554
.xword .LC555
.xword .LC556
.xword .LC557
.xword .LC558
.xword .LC559
.xword .LC560
.xword .LC561
.xword .LC562
.xword .LC563
.xword .LC564
.xword .LC565
.xword .LC566
.xword .LC567
.xword .LC568
.xword .LC569
.xword .LC570
.xword .LC571
.xword .LC572
.xword .LC573
.xword .LC574
.xword .LC575
.xword .LC576
.xword .LC577
.xword .LC578
.xword .LC579
.xword .LC580
.xword .LC581
.xword .LC582
.xword .LC583
.xword .LC584
.xword .LC585
.xword .LC586
.xword .LC587
.xword .LC588
.xword .LC589
.xword .LC590
.xword .LC591
.xword .LC592
.xword .LC593
.xword .LC594
.xword .LC595
.xword .LC596
.xword .LC597
.xword .LC598
.xword .LC599
.xword .LC600
.xword .LC601
.xword .LC602
.xword .LC603
.xword .LC604
.xword .LC605
.xword .LC606
.xword .LC607
.xword .LC608
.xword .LC609
.xword .LC610
.xword .LC611
.xword .LC612
.xword .LC613
.xword .LC614
.xword .LC615
.xword .LC616
.xword .LC617
.xword .LC618
.xword .LC619
.xword .LC620
.xword .LC621
.xword .LC622
.xword .LC623
.xword .LC624
.xword .LC625
.xword .LC626
.xword .LC627
.xword .LC628
.xword .LC629
.xword .LC630
.xword .LC631
.xword .LC632
.xword .LC633
.xword .LC634
.xword .LC635
.xword .LC636
.xword .LC637
.xword .LC638
.xword .LC639
.xword .LC640
.xword .LC641
.xword .LC642
.xword .LC643
.xword .LC644
.xword .LC645
.xword .LC646
.xword .LC647
.xword .LC648
.xword .LC649
.xword .LC650
.xword .LC651
.xword .LC652
.xword .LC653
.xword .LC654
.xword .LC655
.xword .LC656
.xword .LC657
.xword .LC658
.xword .LC659
.xword .LC660
.xword .LC661
.xword .LC662
.xword .LC663
.xword .LC664
.xword .LC665
.xword .LC666
.xword .LC667
.xword .LC668
.xword .LC669
.xword .LC670
.xword .LC671
.xword .LC672
.xword .LC673
.xword .LC674
.xword .LC675
.xword .LC676
.xword .LC677
.xword .LC678
.xword .LC679
.xword .LC680
.xword .LC681
.xword .LC682
.xword .LC683
.xword .LC684
.xword .LC685
.xword .LC686
.xword .LC687
.xword .LC688
.xword .LC689
.xword .LC690
.xword .LC691
.xword .LC692
.xword .LC693
.xword .LC694
.xword .LC695
.xword .LC696
.xword .LC697
.xword .LC698
.xword .LC699
.xword .LC700
.xword .LC701
.xword .LC702
.xword .LC703
.xword .LC704
.xword .LC705
.xword .LC706
.xword .LC707
.xword .LC708
.xword .LC709
.xword .LC710
.xword .LC711
.xword .LC712
.xword .LC713
.xword .LC714
.xword .LC715
.xword .LC716
.xword .LC717
.xword .LC718
.xword .LC719
.xword .LC720
.xword .LC721
.xword .LC722
.xword .LC723
.xword .LC724
.xword .LC725
.xword .LC726
.xword .LC727
.xword .LC728
.xword .LC729
.xword .LC730
.xword .LC731
.xword .LC732
.xword .LC733
.xword .LC734
.xword .LC735
.xword .LC736
.xword .LC737
.xword .LC738
.xword .LC739
.xword .LC740
.xword .LC741
.xword .LC742
.xword .LC743
.xword .LC744
.xword .LC745
.xword .LC746
.xword .LC747
.xword .LC748
.xword .LC749
.xword .LC750
.xword .LC751
.xword .LC752
.xword .LC753
.xword .LC754
.xword .LC755
.xword .LC756
.xword .LC757
.xword .LC758
.xword .LC759
.xword .LC760
.xword .LC761
.xword .LC762
.xword .LC763
.xword .LC764
.xword .LC765
.xword .LC766
.xword .LC767
.xword .LC768
.xword .LC769
.xword .LC770
.xword .LC771
.xword .LC772
.xword .LC773
.xword .LC774
.xword .LC775
.xword .LC776
.xword .LC777
.xword .LC778
.xword .LC779
.xword .LC780
.xword .LC781
.xword .LC782
.xword .LC783
.xword .LC784
.xword .LC785
.xword .LC786
.xword .LC787
.xword .LC788
.xword .LC789
.xword .LC790
.xword .LC791
.xword .LC792
.xword .LC793
.xword .LC794
.xword .LC795
.xword .LC796
.xword .LC797
.xword .LC798
.xword .LC799
.xword .LC800
.xword .LC801
.xword .LC802
.xword .LC803
.xword .LC804
.xword .LC805
.xword .LC806
.xword .LC807
.xword .LC808
.xword .LC809
.xword .LC810
.xword .LC811
.xword .LC812
.xword .LC813
.xword .LC814
.xword .LC815
.xword .LC816
.xword .LC817
.xword .LC818
.xword .LC819
.xword .LC820
.xword .LC821
.xword .LC822
.xword .LC823
.xword .LC824
.xword .LC825
.xword .LC826
.xword .LC827
.xword .LC828
.xword .LC829
.xword .LC830
.xword .LC831
.xword .LC832
.xword .LC833
.xword .LC834
.xword .LC835
.xword .LC836
.xword .LC837
.xword .LC838
.xword .LC839
.xword .LC840
.xword .LC841
.xword .LC842
.xword .LC843
.xword .LC844
.xword .LC845
.xword .LC846
.xword .LC847
.xword .LC848
.xword .LC849
.xword .LC850
.xword .LC851
.xword .LC852
.xword .LC853
.xword .LC854
.xword .LC855
.xword .LC856
.xword .LC857
.xword .LC858
.xword .LC859
.xword .LC860
.xword .LC861
.xword .LC862
.xword .LC863
.xword .LC864
.xword .LC865
.xword .LC866
.xword .LC867
.xword .LC868
.xword .LC869
.xword .LC870
.xword .LC871
.xword .LC872
.xword .LC873
.xword .LC874
.xword .LC875
.xword .LC876
.xword .LC877
.xword .LC878
.xword .LC879
.xword .LC880
.xword .LC881
.xword .LC882
.xword .LC883
.xword .LC884
.xword .LC885
.xword .LC886
.xword .LC887
.xword .LC888
.xword .LC889
.xword .LC890
.xword .LC891
.xword .LC892
.xword .LC893
.xword .LC894
.xword .LC895
.xword .LC896
.xword .LC897
.xword .LC898
.xword .LC899
.xword .LC900
.xword .LC901
.xword .LC902
.xword .LC903
.xword .LC904
.xword .LC905
.xword .LC906
.xword .LC907
.xword .LC908
.xword .LC909
.xword .LC910
.xword .LC911
.xword .LC912
.xword .LC913
.xword .LC914
.xword .LC915
.xword .LC916
.xword .LC917
.xword .LC918
.xword .LC919
.xword .LC920
.xword .LC921
.xword .LC922
.xword .LC923
.xword .LC924
.xword .LC925
.xword .LC926
.xword .LC927
.xword .LC928
.xword .LC929
.xword .LC930
.xword .LC931
.xword .LC932
.xword .LC933
.xword .LC934
.xword .LC935
.xword .LC936
.xword .LC937
.xword .LC938
.xword .LC939
.xword .LC940
.xword .LC941
.xword .LC942
.xword .LC943
.xword .LC944
.xword .LC945
.xword .LC946
.xword .LC947
.xword .LC948
.xword .LC949
.xword .LC950
.xword .LC951
.xword .LC952
.xword .LC953
.xword .LC954
.xword .LC955
.xword .LC956
.xword .LC957
.xword .LC958
.xword .LC959
.xword .LC960
.xword .LC961
.xword .LC962
.xword .LC963
.xword .LC964
.xword .LC965
.xword .LC966
.xword .LC967
.xword .LC968
.xword .LC969
.xword .LC970
.xword .LC971
.xword .LC972
.xword .LC973
.xword .LC974
.xword .LC975
.xword .LC976
.xword .LC977
.xword .LC978
.xword .LC979
.xword .LC980
.xword .LC981
.xword .LC982
.xword .LC983
.xword .LC984
.xword .LC985
.xword .LC986
.xword .LC987
.xword .LC988
.xword .LC989
.xword .LC990
.xword .LC991
.xword .LC992
.xword .LC993
.xword .LC994
.xword .LC995
.xword .LC996
.xword .LC997
.xword .LC998
.xword .LC999
.xword .LC1000
.xword .LC1001
.xword .LC1002
.xword .LC1003
.xword .LC1004
.xword .LC1005
.xword .LC1006
.xword .LC1007
.xword .LC1008
.xword .LC1009
.xword .LC1010
.xword .LC1011
.xword .LC1012
.xword .LC1013
.xword .LC1014
.xword .LC1015
.xword .LC1016
.xword .LC1017
.xword .LC1018
.xword .LC1019
.xword .LC1020
.xword .LC1021
.xword .LC1022
.xword .LC1023
.xword .LC1024
.xword .LC1025
.xword .LC1026
.xword .LC1027
.xword .LC1028
.xword .LC1029
.xword .LC1030
.xword .LC1031
.xword .LC1032
.xword .LC1033
.xword .LC1034
.xword .LC1035
.xword .LC1036
.xword .LC1037
.xword .LC1038
.xword .LC1039
.xword .LC1040
.xword .LC1041
.xword .LC1042
.xword .LC1043
.xword .LC1044
.xword .LC1045
.xword .LC1046
.xword .LC1047
.xword .LC1048
.xword .LC1049
.xword .LC1050
.xword .LC1051
.xword .LC1052
.xword .LC1053
.xword .LC1054
.xword .LC1055
.xword .LC1056
.xword .LC1057
.xword .LC1058
.xword .LC1059
.xword .LC1060
.xword .LC1061
.xword .LC1062
.xword .LC1063
.xword .LC1064
.xword .LC1065
.xword .LC1066
.xword .LC1067
.xword .LC1068
.xword .LC1069
.xword .LC1070
.xword .LC1071
.xword .LC1072
.xword .LC1073
.xword .LC1074
.xword .LC1075
.xword .LC1076
.xword .LC1077
.xword .LC1078
.xword .LC1079
.xword .LC1080
.xword .LC1081
.xword .LC1082
.xword .LC1083
.xword .LC1084
.xword .LC1085
.xword .LC1086
.xword .LC1087
.xword .LC1088
.xword .LC1089
.xword .LC1090
.xword .LC1091
.xword .LC1092
.xword .LC1093
.xword .LC1094
.xword .LC1095
.xword .LC1096
.xword .LC1097
.xword .LC1098
.xword .LC1099
.xword .LC1100
.xword .LC1101
.xword .LC1102
.xword .LC1103
.xword .LC1104
.xword .LC1105
.xword .LC1106
.xword .LC1107
.xword .LC1108
.xword .LC1109
.xword .LC1110
.xword .LC1111
.xword .LC1112
.xword .LC1113
.xword .LC1114
.xword .LC1115
.xword .LC1116
.xword .LC1117
.xword .LC1118
.xword .LC1119
.xword .LC1120
.xword .LC1121
.xword .LC1122
.xword .LC1123
.xword .LC1124
.xword .LC1125
.xword .LC1126
.xword .LC1127
.xword .LC1128
.xword .LC1129
.xword .LC1130
.xword .LC1131
.xword .LC1132
.xword .LC1133
.xword .LC1134
.xword .LC1135
.xword .LC1136
.xword .LC1137
.xword .LC1138
.xword .LC1139
.xword .LC1140
.xword .LC1141
.xword .LC1142
.xword .LC1143
.xword .LC1144
.xword .LC1145
.xword .LC1146
.xword .LC1147
.xword .LC1148
.xword .LC1149
.xword .LC1150
.xword .LC1151
.xword .LC1152
.xword .LC1153
.xword .LC1154
.xword .LC1155
.xword .LC1156
.xword .LC1157
.xword .LC1158
.xword .LC1159
.xword .LC1160
.xword .LC1161
.xword .LC1162
.xword .LC1163
.xword .LC1164
.xword .LC1165
.xword .LC1166
.xword .LC1167
.xword .LC1168
.xword .LC1169
.xword .LC1170
.xword .LC1171
.xword .LC1172
.xword .LC1173
.xword .LC1174
.xword .LC1175
.xword .LC1176
.xword .LC1177
.xword .LC1178
.xword .LC1179
.xword .LC1180
.xword .LC1181
.xword .LC1182
.xword .LC1183
.xword .LC1184
.xword .LC1185
.xword .LC1186
.xword .LC1187
.xword .LC1188
.xword .LC1189
.xword .LC1190
.xword .LC1191
.xword .LC1192
.xword .LC1193
.xword .LC1194
.xword .LC1195
.xword .LC1196
.xword .LC1197
.xword .LC1198
.xword .LC1199
.xword .LC1200
.xword .LC1201
.xword .LC1202
.xword .LC1203
.xword .LC1204
.xword .LC1205
.xword .LC1206
.xword .LC1207
.xword .LC1208
.xword .LC1209
.xword .LC1210
.xword .LC1211
.xword .LC1212
.xword .LC1213
.xword .LC1214
.xword .LC1215
.xword .LC1216
.xword .LC1217
.xword .LC1218
.xword .LC1219
.xword .LC1220
.xword .LC1221
.xword .LC1222
.xword .LC1223
.xword .LC1224
.xword .LC1225
.xword .LC1226
.xword .LC1227
.xword .LC1228
.xword .LC1229
.xword .LC1230
.xword .LC1231
.xword .LC1232
.xword .LC1233
.xword .LC1234
.xword .LC1235
.xword .LC1236
.xword .LC1237
.xword .LC1238
.xword .LC1239
.xword .LC1240
.xword .LC1241
.xword .LC1242
.xword .LC1243
.xword .LC1244
.xword .LC1245
.xword .LC1246
.xword .LC1247
.xword .LC1248
.xword .LC1249
.xword .LC1250
.xword .LC1251
.xword .LC1252
.xword .LC1253
.xword .LC1254
.xword .LC1255
.xword .LC1256
.xword .LC1257
.xword .LC1258
.xword .LC1259
.xword .LC1260
.xword .LC1261
.xword .LC1262
.xword .LC1263
.xword .LC1264
.xword .LC1265
.xword .LC1266
.xword .LC1267
.xword .LC1268
.xword .LC1269
.xword .LC1270
.xword .LC1271
.xword .LC1272
.xword .LC1273
.xword .LC1274
.xword .LC1275
.xword .LC1276
.xword .LC1277
.xword .LC1278
.xword .LC1279
.xword .LC1280
.xword .LC1281
.xword .LC1282
.xword .LC1283
.xword .LC1284
.xword .LC1285
.xword .LC1286
.xword .LC1287
.xword .LC1288
.xword .LC1289
.xword .LC1290
.xword .LC1291
.xword .LC1292
.xword .LC1293
.xword .LC1294
.xword .LC1295
.xword .LC1296
.xword .LC1297
.xword .LC1298
.xword .LC1299
.xword .LC1300
.xword .LC1301
.xword .LC1302
.xword .LC1303
.xword .LC1304
.xword .LC1305
.xword .LC1306
.xword .LC1307
.xword .LC1308
.xword .LC1309
.xword .LC1310
.xword .LC1311
.xword .LC1312
.xword .LC1313
.xword .LC1314
.xword .LC1315
.xword .LC1316
.xword .LC1317
.xword .LC1318
.xword .LC1319
.xword .LC1320
.xword .LC1321
.xword .LC1322
.xword .LC1323
.xword .LC1324
.xword .LC1325
.xword .LC1326
.xword .LC1327
.xword .LC1328
.xword .LC1329
.xword .LC1330
.xword .LC1331
.xword .LC1332
.xword .LC1333
.xword .LC1334
.xword .LC1335
.xword .LC1336
.xword .LC1337
.xword .LC1338
.xword .LC1339
.xword .LC1340
.xword .LC1341
.xword .LC1342
.xword .LC1343
.xword .LC1344
.xword .LC1345
.xword .LC1346
.xword .LC1347
.xword .LC1348
.xword .LC1349
.xword .LC1350
.xword .LC1351
.xword .LC1352
.xword .LC1353
.xword .LC1354
.xword .LC1355
.xword .LC1356
.xword .LC1357
.xword .LC1358
.xword .LC1359
.xword .LC1360
.xword .LC1361
.xword .LC1362
.xword .LC1363
.xword .LC1364
.xword .LC1365
.xword .LC1366
.xword .LC1367
.xword .LC1368
.xword .LC1369
.xword .LC1370
.xword .LC1371
.xword .LC1372
.xword .LC1373
.xword .LC1374
.xword .LC1375
.xword .LC1376
.xword .LC1377
.xword .LC1378
.xword .LC1379
.xword .LC1380
.xword .LC1381
.xword .LC1382
.xword .LC1383
.xword .LC1384
.xword .LC1385
.xword .LC1386
.xword .LC1387
.xword .LC1388
.xword .LC1389
.xword .LC1390
.xword .LC1391
.xword .LC1392
.xword .LC1393
.xword .LC1394
.xword .LC1395
.xword .LC1396
.xword .LC1397
.xword .LC1398
.xword .LC1399
.xword .LC1400
.xword .LC1401
.xword .LC1402
.xword .LC1403
.xword .LC1404
.xword .LC1405
.xword .LC1406
.xword .LC1407
.xword .LC1408
.xword .LC1409
.xword .LC1410
.xword .LC1411
.xword .LC1412
.xword .LC1413
.xword .LC1414
.xword .LC1415
.xword .LC1416
.xword .LC1417
.xword .LC1418
.xword .LC1419
.xword .LC1420
.xword .LC1421
.xword .LC1422
.xword .LC1423
.xword .LC1424
.xword .LC1425
.xword .LC1426
.xword .LC1427
.xword .LC1428
.xword .LC1429
.xword .LC1430
.xword .LC1431
.xword .LC1432
.xword .LC1433
.xword .LC1434
.xword .LC1435
.xword .LC1436
.xword .LC1437
.xword .LC1438
.xword .LC1439
.xword .LC1440
.xword .LC1441
.xword .LC1442
.xword .LC1443
.xword .LC1444
.xword .LC1445
.xword .LC1446
.xword .LC1447
.xword .LC1448
.xword .LC1449
.xword .LC1450
.xword .LC1451
.xword .LC1452
.xword .LC1453
.xword .LC1454
.xword .LC1455
.xword .LC1456
.xword .LC1457
.xword .LC1458
.xword .LC1459
.xword .LC1460
.xword .LC1461
.xword .LC1462
.xword .LC1463
.xword .LC1464
.xword .LC1465
.xword .LC1466
.xword .LC1467
.xword .LC1468
.xword .LC1469
.xword .LC1470
.xword .LC1471
.xword .LC1472
.xword .LC1473
.xword .LC1474
.xword .LC1475
.xword .LC1476
.xword .LC1477
.xword .LC1478
.xword .LC1479
.xword .LC1480
.xword .LC1481
.xword .LC1482
.xword .LC1483
.xword .LC1484
.xword .LC1485
.xword .LC1486
.xword .LC1487
.xword .LC1488
.xword .LC1489
.xword .LC1490
.xword .LC1491
.xword .LC1492
.xword .LC1493
.xword .LC1494
.xword .LC1495
.xword .LC1496
.xword .LC1497
.xword .LC1498
.xword .LC1499
.xword .LC1500
.xword .LC1501
.xword .LC1502
.xword .LC1503
.xword .LC1504
.xword .LC1505
.xword .LC1506
.xword .LC1507
.xword .LC1508
.xword .LC1509
.xword .LC1510
.xword .LC1511
.xword .LC1512
.xword .LC1513
.xword .LC1514
.xword .LC1515
.xword .LC1516
.xword .LC1517
.xword .LC1518
.xword .LC1519
.xword .LC1520
.xword .LC1521
.xword .LC1522
.xword .LC1523
.xword .LC1524
.xword .LC1525
.xword .LC1526
.xword .LC1527
.xword .LC1528
.xword .LC1529
.xword .LC1530
.xword .LC1531
.xword .LC1532
.xword .LC1533
.xword .LC1534
.xword .LC1535
.xword .LC1536
.xword .LC1537
.xword .LC1538
.xword .LC1539
.xword .LC1540
.xword .LC1541
.xword .LC1542
.xword .LC1543
.xword .LC1544
.xword .LC1545
.xword .LC1546
.xword .LC1547
.xword .LC1548
.xword .LC1549
.xword .LC1550
.xword .LC1551
.xword .LC1552
.xword .LC1553
.xword .LC1554
.xword .LC1555
.xword .LC1556
.xword .LC1557
.xword .LC1558
.xword .LC1559
.xword .LC1560
.xword .LC1561
.xword .LC1562
.xword .LC1563
.xword .LC1564
.xword .LC1565
.xword .LC1566
.xword .LC1567
.xword .LC1568
.xword .LC1569
.xword .LC1570
.xword .LC1571
.xword .LC1572
.xword .LC1573
.xword .LC1574
.xword .LC1575
.xword .LC1576
.xword .LC1577
.xword .LC1578
.xword .LC1579
.xword .LC1580
.xword .LC1581
.xword .LC1582
.xword .LC1583
.xword .LC1584
.xword .LC1585
.xword .LC1586
.xword .LC1587
.xword .LC1588
.xword .LC1589
.xword .LC1590
.xword .LC1591
.xword .LC1592
.xword .LC1593
.xword .LC1594
.xword .LC1595
.xword .LC1596
.xword .LC1597
.xword .LC1598
.xword .LC1599
.xword .LC1600
.xword .LC1601
.xword .LC1602
.xword .LC1603
.xword .LC1604
.xword .LC1605
.xword .LC1606
.xword .LC1607
.xword .LC1608
.xword .LC1609
.xword .LC1610
.xword .LC1611
.xword .LC1612
.xword .LC1613
.xword .LC1614
.xword .LC1615
.xword .LC1616
.xword .LC1617
.xword .LC1618
.xword .LC1619
.xword .LC1620
.xword .LC1621
.xword .LC1622
.xword .LC1623
.xword .LC1624
.xword .LC1625
.xword .LC1626
.xword .LC1627
.xword .LC1628
.xword .LC1629
.xword .LC1630
.xword .LC1631
.xword .LC1632
.xword .LC1633
.xword .LC1634
.xword .LC1635
.xword .LC1636
.xword .LC1637
.xword .LC1638
.xword .LC1639
.xword .LC1640
.xword .LC1641
.xword .LC1642
.xword .LC1643
.xword .LC1644
.xword .LC1645
.xword .LC1646
.xword .LC1647
.xword .LC1648
.xword .LC1649
.xword .LC1650
.xword .LC1651
.xword .LC1652
.xword .LC1653
.xword .LC1654
.xword .LC1655
.xword .LC1656
.xword .LC1657
.xword .LC1658
.xword .LC1659
.xword .LC1660
.xword .LC1661
.xword .LC1662
.xword .LC1663
.xword .LC1664
.xword .LC1665
.xword .LC1666
.xword .LC1667
.xword .LC1668
.xword .LC1669
.xword .LC1670
.xword .LC1671
.xword .LC1672
.xword .LC1673
.xword .LC1674
.xword .LC1675
.xword .LC1676
.xword .LC1677
.xword .LC1678
.xword .LC1679
.xword .LC1680
.xword .LC1681
.xword .LC1682
.xword .LC1683
.xword .LC1684
.xword .LC1685
.xword .LC1686
.xword .LC1687
.xword .LC1688
.xword .LC1689
.xword .LC1690
.xword .LC1691
.xword .LC1692
.xword .LC1693
.xword .LC1694
.xword .LC1695
.xword .LC1696
.xword .LC1697
.xword .LC1698
.xword .LC1699
.xword .LC1700
.xword .LC1701
.xword .LC1702
.xword .LC1703
.xword .LC1704
.xword .LC1705
.xword .LC1706
.xword .LC1707
.xword .LC1708
.xword .LC1709
.xword .LC1710
.xword .LC1711
.xword .LC1712
.xword .LC1713
.xword .LC1714
.xword .LC1715
.xword .LC1716
.xword .LC1717
.xword .LC1718
.xword .LC1719
.xword .LC1720
.xword .LC1721
.xword .LC1722
.xword .LC1723
.xword .LC1724
.xword .LC1725
.xword .LC1726
.xword .LC1727
.xword .LC1728
.xword .LC1729
.xword .LC1730
.xword .LC1731
.xword .LC1732
.xword .LC1733
.xword .LC1734
.xword .LC1735
.xword .LC1736
.xword .LC1737
.xword .LC1738
.xword .LC1739
.xword .LC1740
.xword .LC1741
.xword .LC1742
.xword .LC1743
.xword .LC1744
.xword .LC1745
.xword .LC1746
.xword .LC1747
.xword .LC1748
.xword .LC1749
.xword .LC1750
.xword .LC1751
.xword .LC1752
.xword .LC1753
.xword .LC1754
.xword .LC1755
.xword .LC1756
.xword .LC1757
.xword .LC1758
.xword .LC1759
.xword .LC1760
.xword .LC1761
.xword .LC1762
.xword .LC1763
.xword .LC1764
.xword .LC1765
.xword .LC1766
.xword .LC1767
.xword .LC1768
.xword .LC1769
.xword .LC1770
.xword .LC1771
.xword .LC1772
.xword .LC1773
.xword .LC1774
.xword .LC1775
.xword .LC1776
.xword .LC1777
.xword .LC1778
.xword .LC1779
.xword .LC1780
.xword .LC1781
.xword .LC1782
.xword .LC1783
.xword .LC1784
.xword .LC1785
.xword .LC1786
.xword .LC1787
.xword .LC1788
.xword .LC1789
.xword .LC1790
.xword .LC1791
.xword .LC1792
.xword .LC1793
.xword .LC1794
.xword .LC1795
.xword .LC1796
.xword .LC1797
.xword .LC1798
.xword .LC1799
.xword .LC1800
.xword .LC1801
.xword .LC1802
.xword .LC1803
.xword .LC1804
.xword .LC1805
.xword .LC1806
.xword .LC1807
.xword .LC1808
.xword .LC1809
.xword .LC1810
.xword .LC1811
.xword .LC1812
.xword .LC1813
.xword .LC1814
.xword .LC1815
.xword .LC1816
.xword .LC1817
.xword .LC1818
.xword .LC1819
.xword .LC1820
.xword .LC1821
.xword .LC1822
.xword .LC1823
.xword .LC1824
.xword .LC1825
.xword .LC1826
.xword .LC1827
.xword .LC1828
.xword .LC1829
.xword .LC1830
.xword .LC1831
.xword .LC1832
.xword .LC1833
.xword .LC1834
.xword .LC1835
.xword .LC1836
.xword .LC1837
.xword .LC1838
.xword .LC1839
.xword .LC1840
.xword .LC1841
.xword .LC1842
.xword .LC1843
.xword .LC1844
.xword .LC1845
.xword .LC1846
.xword .LC1847
.xword .LC1848
.xword .LC1849
.xword .LC1850
.xword .LC1851
.xword .LC1852
.xword .LC1853
.xword .LC1854
.xword .LC1855
.xword .LC1856
.xword .LC1857
.xword .LC1858
.xword .LC1859
.xword .LC1860
.xword .LC1861
.xword .LC1862
.xword .LC1863
.xword .LC1864
.xword .LC1865
.xword .LC1866
.xword .LC1867
.xword .LC1868
.xword .LC1869
.xword .LC1870
.xword .LC1871
.xword .LC1872
.xword .LC1873
.xword .LC1874
.xword .LC1875
.xword .LC1876
.xword .LC1877
.xword .LC1878
.xword .LC1879
.xword .LC1880
.xword .LC1881
.xword .LC1882
.xword .LC1883
.xword .LC1884
.xword .LC1885
.xword .LC1886
.xword .LC1887
.xword .LC1888
.xword .LC1889
.xword .LC1890
.xword .LC1891
.xword .LC1892
.xword .LC1893
.xword .LC1894
.xword .LC1895
.xword .LC1896
.xword .LC1897
.xword .LC1898
.xword .LC1899
.xword .LC1900
.xword .LC1901
.xword .LC1902
.xword .LC1903
.xword .LC1904
.xword .LC1905
.xword .LC1906
.xword .LC1907
.xword .LC1908
.xword .LC1909
.xword .LC1910
.xword .LC1911
.xword .LC1912
.xword .LC1913
.xword .LC1914
.xword .LC1915
.xword .LC1916
.xword .LC1917
.xword .LC1918
.xword .LC1919
.xword .LC1920
.xword .LC1921
.xword .LC1922
.xword .LC1923
.xword .LC1924
.xword .LC1925
.xword .LC1926
.xword .LC1927
.xword .LC1928
.xword .LC1929
.xword .LC1930
.xword .LC1931
.xword .LC1932
.xword .LC1933
.xword .LC1934
.xword .LC1935
.xword .LC1936
.xword .LC1937
.xword .LC1938
.xword .LC1939
.xword .LC1940
.xword .LC1941
.xword .LC1942
.xword .LC1943
.xword .LC1944
.xword .LC1945
.xword .LC1946
.xword .LC1947
.xword .LC1948
.xword .LC1949
.xword .LC1950
.xword .LC1951
.xword .LC1952
.xword .LC1953
.xword .LC1954
.xword .LC1955
.xword .LC1956
.xword .LC1957
.xword .LC1958
.xword .LC1959
.xword .LC1960
.xword .LC1961
.xword .LC1962
.xword .LC1963
.xword .LC1964
.xword .LC1965
.xword .LC1966
.xword .LC1967
.xword .LC1968
.xword .LC1969
.xword .LC1970
.xword .LC1971
.xword .LC1972
.xword .LC1973
.xword .LC1974
.xword .LC1975
.xword .LC1976
.xword .LC1977
.xword .LC1978
.xword .LC1979
.xword .LC1980
.xword .LC1981
.xword .LC1982
.xword .LC1983
.xword .LC1984
.xword .LC1985
.xword .LC1986
.xword .LC1987
.xword .LC1988
.xword .LC1989
.xword .LC1990
.xword .LC1991
.xword .LC1992
.xword .LC1993
.xword .LC1994
.xword .LC1995
.xword .LC1996
.xword .LC1997
.xword .LC1998
.xword .LC1999
.xword .LC2000
.xword .LC2001
.xword .LC2002
.xword .LC2003
.xword .LC2004
.xword .LC2005
.xword .LC2006
.xword .LC2007
.xword .LC2008
.xword .LC2009
.xword .LC2010
.xword .LC2011
.xword .LC2012
.xword .LC2013
.xword .LC2014
.xword .LC2015
.xword .LC2016
.xword .LC2017
.xword .LC2018
.xword .LC2019
.xword .LC2020
.xword .LC2021
.xword .LC2022
.xword .LC2023
.xword .LC2024
.xword .LC2025
.xword .LC2026
.xword .LC2027
.xword .LC2028
.xword .LC2029
.xword .LC2030
.xword .LC2031
.xword .LC2032
.xword .LC2033
.xword .LC2034
.xword .LC2035
.xword .LC2036
.xword .LC2037
.xword .LC2038
.xword .LC2039
.xword .LC2040
.xword .LC2041
.xword .LC2042
.xword .LC2043
.xword .LC2044
.xword .LC2045
.xword .LC2046
.xword .LC2047
.xword 0
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global RBBAnimationVersionString
.section .rodata
.align 3
.type RBBAnimationVersionString, %object
.size RBBAnimationVersionString, 42
RBBAnimationVersionString:
.string "@(#)PROGRAM:RBBAnimation PROJECT:Pods-1\n"
.global RBBAnimationVersionNumber
.align 3
.type RBBAnimationVersionNumber, %object
.size RBBAnimationVersionNumber, 8
RBBAnimationVersionNumber:
.word 0
.word 1072693248
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
mov x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
bne .L2
mov w0, 0
bl _exit
.L2:
mov w0, 1
bl _exit
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global twoSum
.type twoSum, %function
twoSum:
.LFB0:
.cfi_startproc
mov x12, 40080
sub sp, sp, x12
.cfi_def_cfa_offset 40080
stp x29, x30, [sp]
.cfi_offset 29, -40080
.cfi_offset 30, -40072
mov x29, sp
str x0, [sp, 40]
str w1, [sp, 36]
str w2, [sp, 32]
str x3, [sp, 24]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
add x1, sp, 32768
ldr x2, [x0]
str x2, [x1, 7304]
mov x2, 0
ldr x0, [sp, 24]
mov w1, 2
str w1, [x0]
mov x0, 8
bl malloc
str x0, [sp, 64]
add x0, sp, 72
mov x1, 40000
mov x2, x1
mov w1, 0
bl memset
mov w0, 1
str w0, [sp, 52]
str wzr, [sp, 56]
b .L2
.L8:
str wzr, [sp, 60]
b .L3
.L6:
ldrsw x0, [sp, 60]
lsl x0, x0, 2
add x1, sp, 72
ldr w1, [x1, x0]
ldrsw x0, [sp, 56]
lsl x0, x0, 2
ldr x2, [sp, 40]
add x0, x2, x0
ldr w0, [x0]
cmp w1, w0
bne .L4
ldr x0, [sp, 64]
ldr w1, [sp, 60]
str w1, [x0]
ldr x0, [sp, 64]
add x0, x0, 4
ldr w1, [sp, 56]
str w1, [x0]
str wzr, [sp, 52]
b .L5
.L4:
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L3:
ldr w1, [sp, 60]
ldr w0, [sp, 56]
cmp w1, w0
blt .L6
.L5:
ldrsw x0, [sp, 56]
lsl x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
ldr w0, [x0]
ldr w1, [sp, 32]
sub w2, w1, w0
ldrsw x0, [sp, 56]
lsl x0, x0, 2
add x1, sp, 72
str w2, [x1, x0]
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
.L2:
ldr w1, [sp, 56]
ldr w0, [sp, 36]
cmp w1, w0
bge .L7
ldr w0, [sp, 52]
cmp w0, 0
bne .L8
.L7:
ldr x0, [sp, 64]
mov x1, x0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
add x3, sp, 32768
ldr x4, [x3, 7304]
ldr x2, [x0]
subs x4, x4, x2
mov x2, 0
beq .L10
bl __stack_chk_fail
.L10:
mov x0, x1
ldp x29, x30, [sp]
mov x12, 40080
add sp, sp, x12
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size twoSum, .-twoSum
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "atomic: %lld\n"
.align 3
.LC1:
.string "atomic: %d\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 40]
mov x1, 0
mov x0, 3
str x0, [sp, 32]
str wzr, [sp, 28]
add x0, sp, 32
mov x1, 100
str x1, [x0]
ldr x0, [sp, 32]
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
ldr x0, [sp, 32]
cmp x0, 0
cset w0, ne
and w0, w0, 255
mov w1, w0
add x0, sp, 28
str w1, [x0]
add x0, sp, 28
ldr w0, [x0]
mov w1, w0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 40]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L3
bl __stack_chk_fail
.L3:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "%d"
.align 3
.LC1:
.string "i=%d"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 24]
mov x1, 0
add x0, sp, 20
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
ldr w0, [sp, 20]
mov w1, w0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 24]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L3
bl __stack_chk_fail
.L3:
mov w0, w1
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "ejercicio5prueba.c"
.align 3
.LC1:
.string "Error open() %d: %s\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -32
mov w2, 421
mov w1, 578
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl open
str w0, [sp, 44]
ldr w0, [sp, 44]
cmn w0, #1
bne .L2
bl __errno_location
ldr w19, [x0]
bl __errno_location
ldr w0, [x0]
bl strerror
mov x2, x0
mov w1, w19
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
mov w0, -1
b .L3
.L2:
mov w0, 0
.L3:
ldr x19, [sp, 16]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.local yy_buffer_stack_top
.comm yy_buffer_stack_top,8,8
.local yy_buffer_stack_max
.comm yy_buffer_stack_max,8,8
.local yy_buffer_stack
.comm yy_buffer_stack,8,8
.local yy_hold_char
.comm yy_hold_char,1,1
.local yy_n_chars
.comm yy_n_chars,4,4
.global yyleng
.bss
.align 2
.type yyleng, %object
.size yyleng, 4
yyleng:
.zero 4
.local yy_c_buf_p
.comm yy_c_buf_p,8,8
.local yy_init
.comm yy_init,4,4
.local yy_start
.comm yy_start,4,4
.local yy_did_buffer_switch_on_eof
.comm yy_did_buffer_switch_on_eof,4,4
.global yyin
.align 3
.type yyin, %object
.size yyin, 8
yyin:
.zero 8
.global yyout
.align 3
.type yyout, %object
.size yyout, 8
yyout:
.zero 8
.global yylineno
.data
.align 2
.type yylineno, %object
.size yylineno, 4
yylineno:
.word 1
.section .rodata
.align 3
.type yy_accept, %object
.size yy_accept, 20
yy_accept:
.hword 0
.hword 0
.hword 0
.hword 3
.hword 2
.hword 2
.hword 2
.hword 0
.hword 1
.hword 0
.align 3
.type yy_ec, %object
.size yy_ec, 256
yy_ec:
.string ""
.ascii "\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001"
.ascii "\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001"
.ascii "\001\001\001\001\001\001\001\001\001\001\001\001\002\001\002"
.ascii "\001\001\003\003\003\003\003\003\003\003\003\003\001\001\001"
.ascii "\001\001\001\001\001\001\001\001\001\004\001\001\001\001\001"
.ascii "\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001"
.ascii "\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001"
.ascii "\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001"
.ascii "\001\001\001\002\001\001\001\001\001\001\001\001\001\001\001"
.ascii "\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001"
.ascii "\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001"
.ascii "\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001"
.ascii "\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001"
.ascii "\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001"
.ascii "\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001"
.ascii "\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001"
.ascii "\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001"
.align 3
.type yy_meta, %object
.size yy_meta, 5
yy_meta:
.string ""
.ascii "\001\001\002\003"
.align 3
.type yy_base, %object
.size yy_base, 24
yy_base:
.hword 0
.hword 0
.hword 0
.hword 8
.hword 9
.hword 0
.hword 3
.hword 0
.hword 0
.hword 9
.hword 4
.hword 2
.align 3
.type yy_def, %object
.size yy_def, 24
yy_def:
.hword 0
.hword 9
.hword 1
.hword 9
.hword 9
.hword 10
.hword 10
.hword 6
.hword 11
.hword 0
.hword 9
.hword 9
.align 3
.type yy_nxt, %object
.size yy_nxt, 28
yy_nxt:
.hword 0
.hword 4
.hword 5
.hword 6
.hword 4
.hword 8
.hword 7
.hword 8
.hword 9
.hword 3
.hword 9
.hword 9
.hword 9
.hword 9
.align 3
.type yy_chk, %object
.size yy_chk, 28
yy_chk:
.hword 0
.hword 1
.hword 1
.hword 1
.hword 1
.hword 11
.hword 10
.hword 6
.hword 3
.hword 9
.hword 9
.hword 9
.hword 9
.hword 9
.local yy_last_accepting_state
.comm yy_last_accepting_state,4,4
.local yy_last_accepting_cpos
.comm yy_last_accepting_cpos,8,8
.global yy_flex_debug
.bss
.align 2
.type yy_flex_debug, %object
.size yy_flex_debug, 4
yy_flex_debug:
.zero 4
.global yytext
.align 3
.type yytext, %object
.size yytext, 8
yytext:
.zero 8
.global F
.align 2
.type F, %object
.size F, 4
F:
.zero 4
.global C
.align 2
.type C, %object
.size C, 4
C:
.zero 4
.section .rodata
.align 3
.LC0:
.string "%dC"
.align 3
.LC1:
.string "fatal flex scanner internal error--no action found"
.text
.align 2
.global yylex
.type yylex, %function
yylex:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -64
adrp x0, yy_init
add x0, x0, :lo12:yy_init
ldr w0, [x0]
cmp w0, 0
bne .L30
adrp x0, yy_init
add x0, x0, :lo12:yy_init
mov w1, 1
str w1, [x0]
adrp x0, yy_start
add x0, x0, :lo12:yy_start
ldr w0, [x0]
cmp w0, 0
bne .L3
adrp x0, yy_start
add x0, x0, :lo12:yy_start
mov w1, 1
str w1, [x0]
.L3:
adrp x0, yyin
add x0, x0, :lo12:yyin
ldr x0, [x0]
cmp x0, 0
bne .L4
adrp x0, :got:stdin
ldr x0, [x0, #:got_lo12:stdin]
ldr x1, [x0]
adrp x0, yyin
add x0, x0, :lo12:yyin
str x1, [x0]
.L4:
adrp x0, yyout
add x0, x0, :lo12:yyout
ldr x0, [x0]
cmp x0, 0
bne .L5
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x1, [x0]
adrp x0, yyout
add x0, x0, :lo12:yyout
str x1, [x0]
.L5:
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x0, [x0]
cmp x0, 0
beq .L6
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
cmp x0, 0
bne .L7
.L6:
bl yyensure_buffer_stack
adrp x0, yyin
add x0, x0, :lo12:yyin
ldr x2, [x0]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x19, x1, x0
mov w1, 16384
mov x0, x2
bl yy_create_buffer
str x0, [x19]
.L7:
bl yy_load_buffer_state
.L30:
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
ldr x0, [x0]
str x0, [sp, 64]
adrp x0, yy_hold_char
add x0, x0, :lo12:yy_hold_char
ldrb w1, [x0]
ldr x0, [sp, 64]
strb w1, [x0]
ldr x0, [sp, 64]
str x0, [sp, 72]
adrp x0, yy_start
add x0, x0, :lo12:yy_start
ldr w0, [x0]
str w0, [sp, 48]
.L8:
.L12:
ldr x0, [sp, 64]
ldrb w0, [x0]
mov w2, w0
adrp x0, yy_ec
add x1, x0, :lo12:yy_ec
sxtw x0, w2
ldrb w0, [x1, x0]
strb w0, [sp, 47]
adrp x0, yy_accept
add x0, x0, :lo12:yy_accept
ldrsw x1, [sp, 48]
ldrsh w0, [x0, x1, lsl 1]
cmp w0, 0
beq .L10
adrp x0, yy_last_accepting_state
add x0, x0, :lo12:yy_last_accepting_state
ldr w1, [sp, 48]
str w1, [x0]
adrp x0, yy_last_accepting_cpos
add x0, x0, :lo12:yy_last_accepting_cpos
ldr x1, [sp, 64]
str x1, [x0]
b .L10
.L11:
adrp x0, yy_def
add x0, x0, :lo12:yy_def
ldrsw x1, [sp, 48]
ldrsh w0, [x0, x1, lsl 1]
str w0, [sp, 48]
ldr w0, [sp, 48]
cmp w0, 9
ble .L10
ldrb w2, [sp, 47]
adrp x0, yy_meta
add x1, x0, :lo12:yy_meta
sxtw x0, w2
ldrb w0, [x1, x0]
strb w0, [sp, 47]
.L10:
adrp x0, yy_base
add x0, x0, :lo12:yy_base
ldrsw x1, [sp, 48]
ldrsh w0, [x0, x1, lsl 1]
mov w1, w0
ldrb w0, [sp, 47]
add w1, w1, w0
adrp x0, yy_chk
add x0, x0, :lo12:yy_chk
sxtw x1, w1
ldrsh w0, [x0, x1, lsl 1]
mov w1, w0
ldr w0, [sp, 48]
cmp w0, w1
bne .L11
adrp x0, yy_base
add x0, x0, :lo12:yy_base
ldrsw x1, [sp, 48]
ldrsh w0, [x0, x1, lsl 1]
mov w1, w0
ldrb w0, [sp, 47]
add w1, w1, w0
adrp x0, yy_nxt
add x0, x0, :lo12:yy_nxt
sxtw x1, w1
ldrsh w0, [x0, x1, lsl 1]
str w0, [sp, 48]
ldr x0, [sp, 64]
add x0, x0, 1
str x0, [sp, 64]
adrp x0, yy_base
add x0, x0, :lo12:yy_base
ldrsw x1, [sp, 48]
ldrsh w0, [x0, x1, lsl 1]
cmp w0, 9
bne .L12
nop
.L13:
adrp x0, yy_accept
add x0, x0, :lo12:yy_accept
ldrsw x1, [sp, 48]
ldrsh w0, [x0, x1, lsl 1]
str w0, [sp, 52]
ldr w0, [sp, 52]
cmp w0, 0
bne .L14
adrp x0, yy_last_accepting_cpos
add x0, x0, :lo12:yy_last_accepting_cpos
ldr x0, [x0]
str x0, [sp, 64]
adrp x0, yy_last_accepting_state
add x0, x0, :lo12:yy_last_accepting_state
ldr w0, [x0]
str w0, [sp, 48]
adrp x0, yy_accept
add x0, x0, :lo12:yy_accept
ldrsw x1, [sp, 48]
ldrsh w0, [x0, x1, lsl 1]
str w0, [sp, 52]
.L14:
adrp x0, yytext
add x0, x0, :lo12:yytext
ldr x1, [sp, 72]
str x1, [x0]
ldr x1, [sp, 64]
ldr x0, [sp, 72]
sub x0, x1, x0
mov w1, w0
adrp x0, yyleng
add x0, x0, :lo12:yyleng
str w1, [x0]
ldr x0, [sp, 64]
ldrb w1, [x0]
adrp x0, yy_hold_char
add x0, x0, :lo12:yy_hold_char
strb w1, [x0]
ldr x0, [sp, 64]
strb wzr, [x0]
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
ldr x1, [sp, 64]
str x1, [x0]
.L15:
ldr w0, [sp, 52]
cmp w0, 4
beq .L16
ldr w0, [sp, 52]
cmp w0, 4
bgt .L17
ldr w0, [sp, 52]
cmp w0, 3
beq .L18
ldr w0, [sp, 52]
cmp w0, 3
bgt .L17
ldr w0, [sp, 52]
cmp w0, 2
beq .L19
ldr w0, [sp, 52]
cmp w0, 2
bgt .L17
ldr w0, [sp, 52]
cmp w0, 0
beq .L20
ldr w0, [sp, 52]
cmp w0, 1
beq .L21
b .L17
.L20:
adrp x0, yy_hold_char
add x0, x0, :lo12:yy_hold_char
ldrb w1, [x0]
ldr x0, [sp, 64]
strb w1, [x0]
adrp x0, yy_last_accepting_cpos
add x0, x0, :lo12:yy_last_accepting_cpos
ldr x0, [x0]
str x0, [sp, 64]
adrp x0, yy_last_accepting_state
add x0, x0, :lo12:yy_last_accepting_state
ldr w0, [x0]
str w0, [sp, 48]
b .L13
.L21:
adrp x0, yytext
add x0, x0, :lo12:yytext
ldr x0, [x0]
bl atoi
mov w1, w0
adrp x0, F
add x0, x0, :lo12:F
str w1, [x0]
adrp x0, F
add x0, x0, :lo12:F
ldr w0, [x0]
sub w1, w0, #32
mov w0, w1
lsl w0, w0, 2
add w0, w0, w1
mov w1, 36409
movk w1, 0x38e3, lsl 16
smull x1, w0, w1
lsr x1, x1, 32
asr w1, w1, 1
asr w0, w0, 31
sub w1, w1, w0
adrp x0, C
add x0, x0, :lo12:C
str w1, [x0]
adrp x0, C
add x0, x0, :lo12:C
ldr w0, [x0]
mov w1, w0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
adrp x0, C
add x0, x0, :lo12:C
str wzr, [x0]
adrp x0, F
add x0, x0, :lo12:F
str wzr, [x0]
b .L22
.L19:
adrp x0, yytext
add x0, x0, :lo12:yytext
ldr x4, [x0]
adrp x0, yyleng
add x0, x0, :lo12:yyleng
ldr w0, [x0]
sxtw x1, w0
adrp x0, yyout
add x0, x0, :lo12:yyout
ldr x0, [x0]
mov x3, x0
mov x2, 1
mov x0, x4
bl fwrite
b .L22
.L16:
mov w0, 0
b .L31
.L18:
adrp x0, yytext
add x0, x0, :lo12:yytext
ldr x0, [x0]
ldr x1, [sp, 64]
sub x0, x1, x0
sub w0, w0, #1
str w0, [sp, 56]
adrp x0, yy_hold_char
add x0, x0, :lo12:yy_hold_char
ldrb w1, [x0]
ldr x0, [sp, 64]
strb w1, [x0]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0, 56]
cmp w0, 0
bne .L24
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w1, [x0, 28]
adrp x0, yy_n_chars
add x0, x0, :lo12:yy_n_chars
str w1, [x0]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
adrp x1, yyin
add x1, x1, :lo12:yyin
ldr x1, [x1]
str x1, [x0]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
mov w1, 1
str w1, [x0, 56]
.L24:
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x1, [x0, 8]
adrp x0, yy_n_chars
add x0, x0, :lo12:yy_n_chars
ldr w0, [x0]
sxtw x0, w0
add x1, x1, x0
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
ldr x0, [x0]
cmp x1, x0
bcc .L25
adrp x0, yytext
add x0, x0, :lo12:yytext
ldr x1, [x0]
ldrsw x0, [sp, 56]
add x1, x1, x0
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
str x1, [x0]
bl yy_get_previous_state
str w0, [sp, 48]
ldr w0, [sp, 48]
bl yy_try_NUL_trans
str w0, [sp, 60]
adrp x0, yytext
add x0, x0, :lo12:yytext
ldr x0, [x0]
str x0, [sp, 72]
ldr w0, [sp, 60]
cmp w0, 0
beq .L26
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
ldr x0, [x0]
add x1, x0, 1
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
str x1, [x0]
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
ldr x0, [x0]
str x0, [sp, 64]
ldr w0, [sp, 60]
str w0, [sp, 48]
b .L12
.L26:
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
ldr x0, [x0]
str x0, [sp, 64]
b .L13
.L25:
bl yy_get_next_buffer
cmp w0, 2
beq .L27
cmp w0, 2
bgt .L32
cmp w0, 0
beq .L29
cmp w0, 1
bne .L32
adrp x0, yy_did_buffer_switch_on_eof
add x0, x0, :lo12:yy_did_buffer_switch_on_eof
str wzr, [x0]
adrp x0, yytext
add x0, x0, :lo12:yytext
ldr x1, [x0]
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
str x1, [x0]
adrp x0, yy_start
add x0, x0, :lo12:yy_start
ldr w0, [x0]
sub w0, w0, #1
lsr w1, w0, 31
add w0, w1, w0
asr w0, w0, 1
add w0, w0, 4
str w0, [sp, 52]
b .L15
.L29:
adrp x0, yytext
add x0, x0, :lo12:yytext
ldr x1, [x0]
ldrsw x0, [sp, 56]
add x1, x1, x0
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
str x1, [x0]
bl yy_get_previous_state
str w0, [sp, 48]
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
ldr x0, [x0]
str x0, [sp, 64]
adrp x0, yytext
add x0, x0, :lo12:yytext
ldr x0, [x0]
str x0, [sp, 72]
b .L12
.L27:
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x1, [x0, 8]
adrp x0, yy_n_chars
add x0, x0, :lo12:yy_n_chars
ldr w0, [x0]
sxtw x0, w0
add x1, x1, x0
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
str x1, [x0]
bl yy_get_previous_state
str w0, [sp, 48]
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
ldr x0, [x0]
str x0, [sp, 64]
adrp x0, yytext
add x0, x0, :lo12:yytext
ldr x0, [x0]
str x0, [sp, 72]
b .L13
.L17:
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl yy_fatal_error
.L32:
nop
.L22:
b .L30
.L31:
ldr x19, [sp, 16]
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size yylex, .-yylex
.section .rodata
.align 3
.LC2:
.string "fatal flex scanner internal error--end of buffer missed"
.align 3
.LC3:
.string "fatal error - scanner input buffer overflow"
.align 3
.LC4:
.string "input in flex scanner failed"
.align 3
.LC5:
.string "out of dynamic memory in yy_get_next_buffer()"
.text
.align 2
.type yy_get_next_buffer, %function
yy_get_next_buffer:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -96]!
.cfi_def_cfa_offset 96
.cfi_offset 29, -96
.cfi_offset 30, -88
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -80
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x0, [x0, 8]
str x0, [sp, 72]
adrp x0, yytext
add x0, x0, :lo12:yytext
ldr x0, [x0]
str x0, [sp, 80]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x1, [x0, 8]
adrp x0, yy_n_chars
add x0, x0, :lo12:yy_n_chars
ldr w0, [x0]
sxtw x0, w0
add x0, x0, 1
add x1, x1, x0
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
ldr x0, [x0]
cmp x1, x0
bcs .L34
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl yy_fatal_error
.L34:
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0, 52]
cmp w0, 0
bne .L35
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
ldr x1, [x0]
adrp x0, yytext
add x0, x0, :lo12:yytext
ldr x0, [x0]
sub x0, x1, x0
cmp x0, 1
bne .L36
mov w0, 1
b .L37
.L36:
mov w0, 2
b .L37
.L35:
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
ldr x1, [x0]
adrp x0, yytext
add x0, x0, :lo12:yytext
ldr x0, [x0]
sub x0, x1, x0
sub w0, w0, #1
str w0, [sp, 56]
str wzr, [sp, 36]
b .L38
.L39:
ldr x1, [sp, 80]
add x0, x1, 1
str x0, [sp, 80]
ldr x0, [sp, 72]
add x2, x0, 1
str x2, [sp, 72]
ldrb w1, [x1]
strb w1, [x0]
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L38:
ldr w1, [sp, 36]
ldr w0, [sp, 56]
cmp w1, w0
blt .L39
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0, 56]
cmp w0, 2
bne .L40
adrp x0, yy_n_chars
add x0, x0, :lo12:yy_n_chars
str wzr, [x0]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
adrp x1, yy_n_chars
add x1, x1, :lo12:yy_n_chars
ldr w1, [x1]
str w1, [x0, 28]
b .L41
.L40:
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w1, [x0, 24]
ldr w0, [sp, 56]
sub w0, w1, w0
sub w0, w0, #1
str w0, [sp, 44]
b .L42
.L48:
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
str x0, [sp, 88]
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
ldr x1, [x0]
ldr x0, [sp, 88]
ldr x0, [x0, 8]
sub x0, x1, x0
str w0, [sp, 60]
ldr x0, [sp, 88]
ldr w0, [x0, 32]
cmp w0, 0
beq .L43
ldr x0, [sp, 88]
ldr w0, [x0, 24]
lsl w0, w0, 1
str w0, [sp, 64]
ldr w0, [sp, 64]
cmp w0, 0
bgt .L44
ldr x0, [sp, 88]
ldr w1, [x0, 24]
ldr x0, [sp, 88]
ldr w0, [x0, 24]
add w2, w0, 7
cmp w0, 0
csel w0, w2, w0, lt
asr w0, w0, 3
add w1, w1, w0
ldr x0, [sp, 88]
str w1, [x0, 24]
b .L45
.L44:
ldr x0, [sp, 88]
ldr w0, [x0, 24]
lsl w1, w0, 1
ldr x0, [sp, 88]
str w1, [x0, 24]
.L45:
ldr x0, [sp, 88]
ldr x2, [x0, 8]
ldr x0, [sp, 88]
ldr w0, [x0, 24]
add w0, w0, 2
sxtw x0, w0
mov x1, x0
mov x0, x2
bl yyrealloc
mov x1, x0
ldr x0, [sp, 88]
str x1, [x0, 8]
b .L46
.L43:
ldr x0, [sp, 88]
str xzr, [x0, 8]
.L46:
ldr x0, [sp, 88]
ldr x0, [x0, 8]
cmp x0, 0
bne .L47
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl yy_fatal_error
.L47:
ldr x0, [sp, 88]
ldr x1, [x0, 8]
ldrsw x0, [sp, 60]
add x1, x1, x0
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
str x1, [x0]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w1, [x0, 24]
ldr w0, [sp, 56]
sub w0, w1, w0
sub w0, w0, #1
str w0, [sp, 44]
.L42:
ldr w0, [sp, 44]
cmp w0, 0
ble .L48
ldr w0, [sp, 44]
cmp w0, 8192
ble .L49
mov w0, 8192
str w0, [sp, 44]
.L49:
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0, 36]
cmp w0, 0
beq .L50
mov w0, 42
str w0, [sp, 48]
str wzr, [sp, 52]
b .L51
.L53:
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x1, [x0, 8]
ldrsw x2, [sp, 56]
ldrsw x0, [sp, 52]
add x0, x2, x0
add x0, x1, x0
ldr w1, [sp, 48]
and w1, w1, 255
strb w1, [x0]
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
.L51:
ldr w1, [sp, 52]
ldr w0, [sp, 44]
cmp w1, w0
bge .L52
adrp x0, yyin
add x0, x0, :lo12:yyin
ldr x0, [x0]
bl getc
str w0, [sp, 48]
ldr w0, [sp, 48]
cmn w0, #1
beq .L52
ldr w0, [sp, 48]
cmp w0, 10
bne .L53
.L52:
ldr w0, [sp, 48]
cmp w0, 10
bne .L54
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x1, [x0, 8]
ldrsw x2, [sp, 56]
ldr w0, [sp, 52]
add w3, w0, 1
str w3, [sp, 52]
sxtw x0, w0
add x0, x2, x0
add x0, x1, x0
ldr w1, [sp, 48]
and w1, w1, 255
strb w1, [x0]
.L54:
ldr w0, [sp, 48]
cmn w0, #1
bne .L55
adrp x0, yyin
add x0, x0, :lo12:yyin
ldr x0, [x0]
bl ferror
cmp w0, 0
beq .L55
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl yy_fatal_error
.L55:
adrp x0, yy_n_chars
add x0, x0, :lo12:yy_n_chars
ldr w1, [sp, 52]
str w1, [x0]
b .L56
.L50:
bl __errno_location
str wzr, [x0]
b .L57
.L59:
bl __errno_location
ldr w0, [x0]
cmp w0, 4
beq .L58
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl yy_fatal_error
.L58:
bl __errno_location
str wzr, [x0]
adrp x0, yyin
add x0, x0, :lo12:yyin
ldr x0, [x0]
bl clearerr
.L57:
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x1, [x0, 8]
ldrsw x0, [sp, 56]
add x4, x1, x0
ldrsw x1, [sp, 44]
adrp x0, yyin
add x0, x0, :lo12:yyin
ldr x0, [x0]
mov x3, x0
mov x2, x1
mov x1, 1
mov x0, x4
bl fread
mov w1, w0
adrp x0, yy_n_chars
add x0, x0, :lo12:yy_n_chars
str w1, [x0]
adrp x0, yy_n_chars
add x0, x0, :lo12:yy_n_chars
ldr w0, [x0]
cmp w0, 0
bne .L56
adrp x0, yyin
add x0, x0, :lo12:yyin
ldr x0, [x0]
bl ferror
cmp w0, 0
bne .L59
.L56:
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
adrp x1, yy_n_chars
add x1, x1, :lo12:yy_n_chars
ldr w1, [x1]
str w1, [x0, 28]
.L41:
adrp x0, yy_n_chars
add x0, x0, :lo12:yy_n_chars
ldr w0, [x0]
cmp w0, 0
bne .L60
ldr w0, [sp, 56]
cmp w0, 0
bne .L61
mov w0, 1
str w0, [sp, 40]
adrp x0, yyin
add x0, x0, :lo12:yyin
ldr x0, [x0]
bl yyrestart
b .L62
.L61:
mov w0, 2
str w0, [sp, 40]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
mov w1, 2
str w1, [x0, 56]
b .L62
.L60:
str wzr, [sp, 40]
.L62:
adrp x0, yy_n_chars
add x0, x0, :lo12:yy_n_chars
ldr w1, [x0]
ldr w0, [sp, 56]
add w1, w1, w0
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x2, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x2, x0
ldr x0, [x0]
ldr w0, [x0, 24]
cmp w1, w0
ble .L63
adrp x0, yy_n_chars
add x0, x0, :lo12:yy_n_chars
ldr w1, [x0]
ldr w0, [sp, 56]
add w1, w1, w0
adrp x0, yy_n_chars
add x0, x0, :lo12:yy_n_chars
ldr w0, [x0]
asr w0, w0, 1
add w0, w1, w0
str w0, [sp, 68]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x2, [x0, 8]
ldrsw x3, [sp, 68]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x19, [x0]
mov x1, x3
mov x0, x2
bl yyrealloc
str x0, [x19, 8]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x0, [x0, 8]
cmp x0, 0
bne .L64
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl yy_fatal_error
.L64:
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w1, [sp, 68]
sub w1, w1, #2
str w1, [x0, 24]
.L63:
adrp x0, yy_n_chars
add x0, x0, :lo12:yy_n_chars
ldr w1, [x0]
ldr w0, [sp, 56]
add w1, w1, w0
adrp x0, yy_n_chars
add x0, x0, :lo12:yy_n_chars
str w1, [x0]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x1, [x0, 8]
adrp x0, yy_n_chars
add x0, x0, :lo12:yy_n_chars
ldr w0, [x0]
sxtw x0, w0
add x0, x1, x0
strb wzr, [x0]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x1, [x0, 8]
adrp x0, yy_n_chars
add x0, x0, :lo12:yy_n_chars
ldr w0, [x0]
sxtw x0, w0
add x0, x0, 1
add x0, x1, x0
strb wzr, [x0]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x1, [x0, 8]
adrp x0, yytext
add x0, x0, :lo12:yytext
str x1, [x0]
ldr w0, [sp, 40]
.L37:
ldr x19, [sp, 16]
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size yy_get_next_buffer, .-yy_get_next_buffer
.align 2
.type yy_get_previous_state, %function
yy_get_previous_state:
.LFB8:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
adrp x0, yy_start
add x0, x0, :lo12:yy_start
ldr w0, [x0]
str w0, [sp, 4]
adrp x0, yytext
add x0, x0, :lo12:yytext
ldr x0, [x0]
str x0, [sp, 8]
b .L66
.L72:
ldr x0, [sp, 8]
ldrb w0, [x0]
cmp w0, 0
beq .L67
ldr x0, [sp, 8]
ldrb w0, [x0]
mov w2, w0
adrp x0, yy_ec
add x1, x0, :lo12:yy_ec
sxtw x0, w2
ldrb w0, [x1, x0]
b .L68
.L67:
mov w0, 1
.L68:
strb w0, [sp, 3]
adrp x0, yy_accept
add x0, x0, :lo12:yy_accept
ldrsw x1, [sp, 4]
ldrsh w0, [x0, x1, lsl 1]
cmp w0, 0
beq .L70
adrp x0, yy_last_accepting_state
add x0, x0, :lo12:yy_last_accepting_state
ldr w1, [sp, 4]
str w1, [x0]
adrp x0, yy_last_accepting_cpos
add x0, x0, :lo12:yy_last_accepting_cpos
ldr x1, [sp, 8]
str x1, [x0]
b .L70
.L71:
adrp x0, yy_def
add x0, x0, :lo12:yy_def
ldrsw x1, [sp, 4]
ldrsh w0, [x0, x1, lsl 1]
str w0, [sp, 4]
ldr w0, [sp, 4]
cmp w0, 9
ble .L70
ldrb w2, [sp, 3]
adrp x0, yy_meta
add x1, x0, :lo12:yy_meta
sxtw x0, w2
ldrb w0, [x1, x0]
strb w0, [sp, 3]
.L70:
adrp x0, yy_base
add x0, x0, :lo12:yy_base
ldrsw x1, [sp, 4]
ldrsh w0, [x0, x1, lsl 1]
mov w1, w0
ldrb w0, [sp, 3]
add w1, w1, w0
adrp x0, yy_chk
add x0, x0, :lo12:yy_chk
sxtw x1, w1
ldrsh w0, [x0, x1, lsl 1]
mov w1, w0
ldr w0, [sp, 4]
cmp w0, w1
bne .L71
adrp x0, yy_base
add x0, x0, :lo12:yy_base
ldrsw x1, [sp, 4]
ldrsh w0, [x0, x1, lsl 1]
mov w1, w0
ldrb w0, [sp, 3]
add w1, w1, w0
adrp x0, yy_nxt
add x0, x0, :lo12:yy_nxt
sxtw x1, w1
ldrsh w0, [x0, x1, lsl 1]
str w0, [sp, 4]
ldr x0, [sp, 8]
add x0, x0, 1
str x0, [sp, 8]
.L66:
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
ldr x0, [x0]
ldr x1, [sp, 8]
cmp x1, x0
bcc .L72
ldr w0, [sp, 4]
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size yy_get_previous_state, .-yy_get_previous_state
.align 2
.type yy_try_NUL_trans, %function
yy_try_NUL_trans:
.LFB9:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, 12]
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
ldr x0, [x0]
str x0, [sp, 24]
mov w0, 1
strb w0, [sp, 19]
adrp x0, yy_accept
add x0, x0, :lo12:yy_accept
ldrsw x1, [sp, 12]
ldrsh w0, [x0, x1, lsl 1]
cmp w0, 0
beq .L76
adrp x0, yy_last_accepting_state
add x0, x0, :lo12:yy_last_accepting_state
ldr w1, [sp, 12]
str w1, [x0]
adrp x0, yy_last_accepting_cpos
add x0, x0, :lo12:yy_last_accepting_cpos
ldr x1, [sp, 24]
str x1, [x0]
b .L76
.L77:
adrp x0, yy_def
add x0, x0, :lo12:yy_def
ldrsw x1, [sp, 12]
ldrsh w0, [x0, x1, lsl 1]
str w0, [sp, 12]
ldr w0, [sp, 12]
cmp w0, 9
ble .L76
ldrb w2, [sp, 19]
adrp x0, yy_meta
add x1, x0, :lo12:yy_meta
sxtw x0, w2
ldrb w0, [x1, x0]
strb w0, [sp, 19]
.L76:
adrp x0, yy_base
add x0, x0, :lo12:yy_base
ldrsw x1, [sp, 12]
ldrsh w0, [x0, x1, lsl 1]
mov w1, w0
ldrb w0, [sp, 19]
add w1, w1, w0
adrp x0, yy_chk
add x0, x0, :lo12:yy_chk
sxtw x1, w1
ldrsh w0, [x0, x1, lsl 1]
mov w1, w0
ldr w0, [sp, 12]
cmp w0, w1
bne .L77
adrp x0, yy_base
add x0, x0, :lo12:yy_base
ldrsw x1, [sp, 12]
ldrsh w0, [x0, x1, lsl 1]
mov w1, w0
ldrb w0, [sp, 19]
add w1, w1, w0
adrp x0, yy_nxt
add x0, x0, :lo12:yy_nxt
sxtw x1, w1
ldrsh w0, [x0, x1, lsl 1]
str w0, [sp, 12]
ldr w0, [sp, 12]
cmp w0, 9
cset w0, eq
and w0, w0, 255
str w0, [sp, 20]
ldr w0, [sp, 20]
cmp w0, 0
bne .L78
ldr w0, [sp, 12]
b .L80
.L78:
mov w0, 0
.L80:
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size yy_try_NUL_trans, .-yy_try_NUL_trans
.section .rodata
.align 3
.LC6:
.string "flex scanner push-back overflow"
.text
.align 2
.type yyunput, %function
yyunput:
.LFB10:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
ldr x0, [x0]
str x0, [sp, 40]
adrp x0, yy_hold_char
add x0, x0, :lo12:yy_hold_char
ldrb w1, [x0]
ldr x0, [sp, 40]
strb w1, [x0]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x0, [x0, 8]
add x0, x0, 2
ldr x1, [sp, 40]
cmp x1, x0
bcs .L82
adrp x0, yy_n_chars
add x0, x0, :lo12:yy_n_chars
ldr w0, [x0]
add w0, w0, 2
str w0, [sp, 36]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x1, [x0, 8]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x2, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x2, x0
ldr x0, [x0]
ldr w0, [x0, 24]
sxtw x0, w0
add x0, x0, 2
add x0, x1, x0
str x0, [sp, 48]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x1, [x0, 8]
ldrsw x0, [sp, 36]
add x0, x1, x0
str x0, [sp, 56]
b .L83
.L84:
ldr x0, [sp, 56]
sub x0, x0, #1
str x0, [sp, 56]
ldr x0, [sp, 48]
sub x0, x0, #1
str x0, [sp, 48]
ldr x0, [sp, 56]
ldrb w1, [x0]
ldr x0, [sp, 48]
strb w1, [x0]
.L83:
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x0, [x0, 8]
ldr x1, [sp, 56]
cmp x1, x0
bhi .L84
ldr x1, [sp, 48]
ldr x0, [sp, 56]
sub x0, x1, x0
sxtw x0, w0
ldr x1, [sp, 40]
add x0, x1, x0
str x0, [sp, 40]
ldr x1, [sp, 48]
ldr x0, [sp, 56]
sub x0, x1, x0
sxtw x0, w0
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 16]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w1, [x0, 24]
adrp x0, yy_n_chars
add x0, x0, :lo12:yy_n_chars
str w1, [x0]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
adrp x1, yy_n_chars
add x1, x1, :lo12:yy_n_chars
ldr w1, [x1]
str w1, [x0, 28]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x0, [x0, 8]
add x0, x0, 2
ldr x1, [sp, 40]
cmp x1, x0
bcs .L82
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl yy_fatal_error
.L82:
ldr x0, [sp, 40]
sub x0, x0, #1
str x0, [sp, 40]
ldr w0, [sp, 28]
and w1, w0, 255
ldr x0, [sp, 40]
strb w1, [x0]
adrp x0, yytext
add x0, x0, :lo12:yytext
ldr x1, [sp, 16]
str x1, [x0]
ldr x0, [sp, 40]
ldrb w1, [x0]
adrp x0, yy_hold_char
add x0, x0, :lo12:yy_hold_char
strb w1, [x0]
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
ldr x1, [sp, 40]
str x1, [x0]
nop
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size yyunput, .-yyunput
.align 2
.type input, %function
input:
.LFB11:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
ldr x0, [x0]
adrp x1, yy_hold_char
add x1, x1, :lo12:yy_hold_char
ldrb w1, [x1]
strb w1, [x0]
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
ldr x0, [x0]
ldrb w0, [x0]
cmp w0, 0
bne .L86
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x1, [x0, 8]
adrp x0, yy_n_chars
add x0, x0, :lo12:yy_n_chars
ldr w0, [x0]
sxtw x0, w0
add x1, x1, x0
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
ldr x0, [x0]
cmp x1, x0
bls .L87
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
ldr x0, [x0]
strb wzr, [x0]
b .L86
.L87:
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
ldr x1, [x0]
adrp x0, yytext
add x0, x0, :lo12:yytext
ldr x0, [x0]
sub x0, x1, x0
str w0, [sp, 24]
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
ldr x0, [x0]
add x1, x0, 1
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
str x1, [x0]
bl yy_get_next_buffer
cmp w0, 2
beq .L88
cmp w0, 2
bgt .L86
cmp w0, 0
beq .L89
cmp w0, 1
beq .L92
b .L86
.L88:
adrp x0, yyin
add x0, x0, :lo12:yyin
ldr x0, [x0]
bl yyrestart
.L92:
mov w0, 0
b .L91
.L89:
adrp x0, yytext
add x0, x0, :lo12:yytext
ldr x1, [x0]
ldrsw x0, [sp, 24]
add x1, x1, x0
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
str x1, [x0]
nop
.L86:
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
ldr x0, [x0]
ldrb w0, [x0]
str w0, [sp, 28]
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
ldr x0, [x0]
strb wzr, [x0]
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
ldr x0, [x0]
add x1, x0, 1
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
str x1, [x0]
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
ldr x0, [x0]
ldrb w1, [x0]
adrp x0, yy_hold_char
add x0, x0, :lo12:yy_hold_char
strb w1, [x0]
ldr w0, [sp, 28]
.L91:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size input, .-input
.align 2
.global yyrestart
.type yyrestart, %function
yyrestart:
.LFB12:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -32
str x0, [sp, 40]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x0, [x0]
cmp x0, 0
beq .L94
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
cmp x0, 0
bne .L95
.L94:
bl yyensure_buffer_stack
adrp x0, yyin
add x0, x0, :lo12:yyin
ldr x2, [x0]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x19, x1, x0
mov w1, 16384
mov x0, x2
bl yy_create_buffer
str x0, [x19]
.L95:
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x0, [x0]
cmp x0, 0
beq .L96
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
b .L97
.L96:
mov x0, 0
.L97:
ldr x1, [sp, 40]
bl yy_init_buffer
bl yy_load_buffer_state
nop
ldr x19, [sp, 16]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE12:
.size yyrestart, .-yyrestart
.align 2
.global yy_switch_to_buffer
.type yy_switch_to_buffer, %function
yy_switch_to_buffer:
.LFB13:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
bl yyensure_buffer_stack
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x0, [x0]
cmp x0, 0
beq .L99
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
b .L100
.L99:
mov x0, 0
.L100:
ldr x1, [sp, 24]
cmp x0, x1
beq .L104
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x0, [x0]
cmp x0, 0
beq .L103
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
cmp x0, 0
beq .L103
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
ldr x0, [x0]
adrp x1, yy_hold_char
add x1, x1, :lo12:yy_hold_char
ldrb w1, [x1]
strb w1, [x0]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
adrp x1, yy_c_buf_p
add x1, x1, :lo12:yy_c_buf_p
ldr x1, [x1]
str x1, [x0, 16]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
adrp x1, yy_n_chars
add x1, x1, :lo12:yy_n_chars
ldr w1, [x1]
str w1, [x0, 28]
.L103:
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x1, [sp, 24]
str x1, [x0]
bl yy_load_buffer_state
adrp x0, yy_did_buffer_switch_on_eof
add x0, x0, :lo12:yy_did_buffer_switch_on_eof
mov w1, 1
str w1, [x0]
b .L98
.L104:
nop
.L98:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE13:
.size yy_switch_to_buffer, .-yy_switch_to_buffer
.align 2
.type yy_load_buffer_state, %function
yy_load_buffer_state:
.LFB14:
.cfi_startproc
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w1, [x0, 28]
adrp x0, yy_n_chars
add x0, x0, :lo12:yy_n_chars
str w1, [x0]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x1, [x0, 16]
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
str x1, [x0]
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
ldr x1, [x0]
adrp x0, yytext
add x0, x0, :lo12:yytext
str x1, [x0]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x1, [x0]
adrp x0, yyin
add x0, x0, :lo12:yyin
str x1, [x0]
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
ldr x0, [x0]
ldrb w1, [x0]
adrp x0, yy_hold_char
add x0, x0, :lo12:yy_hold_char
strb w1, [x0]
nop
ret
.cfi_endproc
.LFE14:
.size yy_load_buffer_state, .-yy_load_buffer_state
.section .rodata
.align 3
.LC7:
.string "out of dynamic memory in yy_create_buffer()"
.text
.align 2
.global yy_create_buffer
.type yy_create_buffer, %function
yy_create_buffer:
.LFB15:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
str w1, [sp, 20]
mov x0, 64
bl yyalloc
str x0, [sp, 40]
ldr x0, [sp, 40]
cmp x0, 0
bne .L107
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl yy_fatal_error
.L107:
ldr x0, [sp, 40]
ldr w1, [sp, 20]
str w1, [x0, 24]
ldr x0, [sp, 40]
ldr w0, [x0, 24]
add w0, w0, 2
sxtw x0, w0
bl yyalloc
mov x1, x0
ldr x0, [sp, 40]
str x1, [x0, 8]
ldr x0, [sp, 40]
ldr x0, [x0, 8]
cmp x0, 0
bne .L108
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl yy_fatal_error
.L108:
ldr x0, [sp, 40]
mov w1, 1
str w1, [x0, 32]
ldr x1, [sp, 24]
ldr x0, [sp, 40]
bl yy_init_buffer
ldr x0, [sp, 40]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE15:
.size yy_create_buffer, .-yy_create_buffer
.align 2
.global yy_delete_buffer
.type yy_delete_buffer, %function
yy_delete_buffer:
.LFB16:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
beq .L117
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x0, [x0]
cmp x0, 0
beq .L113
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
b .L114
.L113:
mov x0, 0
.L114:
ldr x1, [sp, 24]
cmp x0, x1
bne .L115
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
str xzr, [x0]
.L115:
ldr x0, [sp, 24]
ldr w0, [x0, 32]
cmp w0, 0
beq .L116
ldr x0, [sp, 24]
ldr x0, [x0, 8]
bl yyfree
.L116:
ldr x0, [sp, 24]
bl yyfree
b .L110
.L117:
nop
.L110:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE16:
.size yy_delete_buffer, .-yy_delete_buffer
.align 2
.type yy_init_buffer, %function
yy_init_buffer:
.LFB17:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
bl __errno_location
ldr w0, [x0]
str w0, [sp, 44]
ldr x0, [sp, 24]
bl yy_flush_buffer
ldr x0, [sp, 24]
ldr x1, [sp, 16]
str x1, [x0]
ldr x0, [sp, 24]
mov w1, 1
str w1, [x0, 52]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x0, [x0]
cmp x0, 0
beq .L119
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
b .L120
.L119:
mov x0, 0
.L120:
ldr x1, [sp, 24]
cmp x0, x1
beq .L121
ldr x0, [sp, 24]
mov w1, 1
str w1, [x0, 44]
ldr x0, [sp, 24]
str wzr, [x0, 48]
.L121:
ldr x0, [sp, 16]
cmp x0, 0
beq .L122
ldr x0, [sp, 16]
bl fileno
bl isatty
cmp w0, 0
ble .L122
mov w0, 1
b .L123
.L122:
mov w0, 0
.L123:
ldr x1, [sp, 24]
str w0, [x1, 36]
bl __errno_location
mov x1, x0
ldr w0, [sp, 44]
str w0, [x1]
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE17:
.size yy_init_buffer, .-yy_init_buffer
.align 2
.global yy_flush_buffer
.type yy_flush_buffer, %function
yy_flush_buffer:
.LFB18:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
beq .L129
ldr x0, [sp, 24]
str wzr, [x0, 28]
ldr x0, [sp, 24]
ldr x0, [x0, 8]
strb wzr, [x0]
ldr x0, [sp, 24]
ldr x0, [x0, 8]
add x0, x0, 1
strb wzr, [x0]
ldr x0, [sp, 24]
ldr x1, [x0, 8]
ldr x0, [sp, 24]
str x1, [x0, 16]
ldr x0, [sp, 24]
mov w1, 1
str w1, [x0, 40]
ldr x0, [sp, 24]
str wzr, [x0, 56]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x0, [x0]
cmp x0, 0
beq .L127
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
b .L128
.L127:
mov x0, 0
.L128:
ldr x1, [sp, 24]
cmp x0, x1
bne .L124
bl yy_load_buffer_state
b .L124
.L129:
nop
.L124:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE18:
.size yy_flush_buffer, .-yy_flush_buffer
.align 2
.global yypush_buffer_state
.type yypush_buffer_state, %function
yypush_buffer_state:
.LFB19:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
beq .L135
bl yyensure_buffer_stack
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x0, [x0]
cmp x0, 0
beq .L133
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
cmp x0, 0
beq .L133
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
ldr x0, [x0]
adrp x1, yy_hold_char
add x1, x1, :lo12:yy_hold_char
ldrb w1, [x1]
strb w1, [x0]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
adrp x1, yy_c_buf_p
add x1, x1, :lo12:yy_c_buf_p
ldr x1, [x1]
str x1, [x0, 16]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
adrp x1, yy_n_chars
add x1, x1, :lo12:yy_n_chars
ldr w1, [x1]
str w1, [x0, 28]
.L133:
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x0, [x0]
cmp x0, 0
beq .L134
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
cmp x0, 0
beq .L134
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
add x1, x0, 1
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
str x1, [x0]
.L134:
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x1, [sp, 24]
str x1, [x0]
bl yy_load_buffer_state
adrp x0, yy_did_buffer_switch_on_eof
add x0, x0, :lo12:yy_did_buffer_switch_on_eof
mov w1, 1
str w1, [x0]
b .L130
.L135:
nop
.L130:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE19:
.size yypush_buffer_state, .-yypush_buffer_state
.align 2
.global yypop_buffer_state
.type yypop_buffer_state, %function
yypop_buffer_state:
.LFB20:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x0, [x0]
cmp x0, 0
beq .L143
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
cmp x0, 0
beq .L143
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x0, [x0]
cmp x0, 0
beq .L140
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
b .L141
.L140:
mov x0, 0
.L141:
bl yy_delete_buffer
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
str xzr, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
cmp x0, 0
beq .L142
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
sub x1, x0, #1
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
str x1, [x0]
.L142:
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x0, [x0]
cmp x0, 0
beq .L136
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
cmp x0, 0
beq .L136
bl yy_load_buffer_state
adrp x0, yy_did_buffer_switch_on_eof
add x0, x0, :lo12:yy_did_buffer_switch_on_eof
mov w1, 1
str w1, [x0]
b .L136
.L143:
nop
.L136:
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE20:
.size yypop_buffer_state, .-yypop_buffer_state
.section .rodata
.align 3
.LC8:
.string "out of dynamic memory in yyensure_buffer_stack()"
.text
.align 2
.type yyensure_buffer_stack, %function
yyensure_buffer_stack:
.LFB21:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x0, [x0]
cmp x0, 0
bne .L145
mov x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x0, x0, 3
bl yyalloc
mov x1, x0
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
str x1, [x0]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x0, [x0]
cmp x0, 0
bne .L146
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl yy_fatal_error
.L146:
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x3, [x0]
ldr x0, [sp, 24]
lsl x0, x0, 3
mov x2, x0
mov w1, 0
mov x0, x3
bl memset
adrp x0, yy_buffer_stack_max
add x0, x0, :lo12:yy_buffer_stack_max
ldr x1, [sp, 24]
str x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
str xzr, [x0]
b .L144
.L145:
adrp x0, yy_buffer_stack_max
add x0, x0, :lo12:yy_buffer_stack_max
ldr x0, [x0]
sub x1, x0, #1
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
cmp x1, x0
bhi .L144
mov x0, 8
str x0, [sp, 16]
adrp x0, yy_buffer_stack_max
add x0, x0, :lo12:yy_buffer_stack_max
ldr x0, [x0]
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 24]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x2, [x0]
ldr x0, [sp, 24]
lsl x0, x0, 3
mov x1, x0
mov x0, x2
bl yyrealloc
mov x1, x0
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
str x1, [x0]
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x0, [x0]
cmp x0, 0
bne .L148
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl yy_fatal_error
.L148:
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_max
add x0, x0, :lo12:yy_buffer_stack_max
ldr x0, [x0]
lsl x0, x0, 3
add x3, x1, x0
ldr x0, [sp, 16]
lsl x0, x0, 3
mov x2, x0
mov w1, 0
mov x0, x3
bl memset
adrp x0, yy_buffer_stack_max
add x0, x0, :lo12:yy_buffer_stack_max
ldr x1, [sp, 24]
str x1, [x0]
.L144:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE21:
.size yyensure_buffer_stack, .-yyensure_buffer_stack
.section .rodata
.align 3
.LC9:
.string "out of dynamic memory in yy_scan_buffer()"
.text
.align 2
.global yy_scan_buffer
.type yy_scan_buffer, %function
yy_scan_buffer:
.LFB22:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
ldr x0, [sp, 16]
cmp x0, 1
bls .L150
ldr x0, [sp, 16]
sub x0, x0, #2
ldr x1, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 0
bne .L150
ldr x0, [sp, 16]
sub x0, x0, #1
ldr x1, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 0
beq .L151
.L150:
mov x0, 0
b .L152
.L151:
mov x0, 64
bl yyalloc
str x0, [sp, 40]
ldr x0, [sp, 40]
cmp x0, 0
bne .L153
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl yy_fatal_error
.L153:
ldr x0, [sp, 16]
sub w0, w0, #2
mov w1, w0
ldr x0, [sp, 40]
str w1, [x0, 24]
ldr x0, [sp, 40]
ldr x1, [sp, 24]
str x1, [x0, 8]
ldr x0, [sp, 40]
ldr x1, [x0, 8]
ldr x0, [sp, 40]
str x1, [x0, 16]
ldr x0, [sp, 40]
str wzr, [x0, 32]
ldr x0, [sp, 40]
str xzr, [x0]
ldr x0, [sp, 40]
ldr w1, [x0, 24]
ldr x0, [sp, 40]
str w1, [x0, 28]
ldr x0, [sp, 40]
str wzr, [x0, 36]
ldr x0, [sp, 40]
mov w1, 1
str w1, [x0, 40]
ldr x0, [sp, 40]
str wzr, [x0, 52]
ldr x0, [sp, 40]
str wzr, [x0, 56]
ldr x0, [sp, 40]
bl yy_switch_to_buffer
ldr x0, [sp, 40]
.L152:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE22:
.size yy_scan_buffer, .-yy_scan_buffer
.align 2
.global yy_scan_string
.type yy_scan_string, %function
yy_scan_string:
.LFB23:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
bl strlen
mov w1, w0
ldr x0, [sp, 24]
bl yy_scan_bytes
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE23:
.size yy_scan_string, .-yy_scan_string
.section .rodata
.align 3
.LC10:
.string "out of dynamic memory in yy_scan_bytes()"
.align 3
.LC11:
.string "bad buffer in yy_scan_bytes()"
.text
.align 2
.global yy_scan_bytes
.type yy_scan_bytes, %function
yy_scan_bytes:
.LFB24:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 24]
str w1, [sp, 20]
ldr w0, [sp, 20]
add w0, w0, 2
sxtw x0, w0
str x0, [sp, 40]
ldr x0, [sp, 40]
bl yyalloc
str x0, [sp, 48]
ldr x0, [sp, 48]
cmp x0, 0
bne .L157
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl yy_fatal_error
.L157:
str wzr, [sp, 36]
b .L158
.L159:
ldrsw x0, [sp, 36]
ldr x1, [sp, 24]
add x1, x1, x0
ldrsw x0, [sp, 36]
ldr x2, [sp, 48]
add x0, x2, x0
ldrb w1, [x1]
strb w1, [x0]
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L158:
ldr w1, [sp, 36]
ldr w0, [sp, 20]
cmp w1, w0
blt .L159
ldrsw x0, [sp, 20]
add x0, x0, 1
ldr x1, [sp, 48]
add x0, x1, x0
strb wzr, [x0]
ldrsw x1, [sp, 20]
ldr x2, [sp, 48]
add x1, x2, x1
ldrb w0, [x0]
strb w0, [x1]
ldr x1, [sp, 40]
ldr x0, [sp, 48]
bl yy_scan_buffer
str x0, [sp, 56]
ldr x0, [sp, 56]
cmp x0, 0
bne .L160
adrp x0, .LC11
add x0, x0, :lo12:.LC11
bl yy_fatal_error
.L160:
ldr x0, [sp, 56]
mov w1, 1
str w1, [x0, 32]
ldr x0, [sp, 56]
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE24:
.size yy_scan_bytes, .-yy_scan_bytes
.section .rodata
.align 3
.LC12:
.string "%s\n"
.text
.align 2
.type yy_fatal_error, %function
yy_fatal_error:
.LFB25:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
ldr x2, [sp, 24]
adrp x0, .LC12
add x1, x0, :lo12:.LC12
mov x0, x3
bl fprintf
mov w0, 2
bl exit
.cfi_endproc
.LFE25:
.size yy_fatal_error, .-yy_fatal_error
.align 2
.global yyget_lineno
.type yyget_lineno, %function
yyget_lineno:
.LFB26:
.cfi_startproc
adrp x0, yylineno
add x0, x0, :lo12:yylineno
ldr w0, [x0]
ret
.cfi_endproc
.LFE26:
.size yyget_lineno, .-yyget_lineno
.align 2
.global yyget_in
.type yyget_in, %function
yyget_in:
.LFB27:
.cfi_startproc
adrp x0, yyin
add x0, x0, :lo12:yyin
ldr x0, [x0]
ret
.cfi_endproc
.LFE27:
.size yyget_in, .-yyget_in
.align 2
.global yyget_out
.type yyget_out, %function
yyget_out:
.LFB28:
.cfi_startproc
adrp x0, yyout
add x0, x0, :lo12:yyout
ldr x0, [x0]
ret
.cfi_endproc
.LFE28:
.size yyget_out, .-yyget_out
.align 2
.global yyget_leng
.type yyget_leng, %function
yyget_leng:
.LFB29:
.cfi_startproc
adrp x0, yyleng
add x0, x0, :lo12:yyleng
ldr w0, [x0]
ret
.cfi_endproc
.LFE29:
.size yyget_leng, .-yyget_leng
.align 2
.global yyget_text
.type yyget_text, %function
yyget_text:
.LFB30:
.cfi_startproc
adrp x0, yytext
add x0, x0, :lo12:yytext
ldr x0, [x0]
ret
.cfi_endproc
.LFE30:
.size yyget_text, .-yyget_text
.align 2
.global yyset_lineno
.type yyset_lineno, %function
yyset_lineno:
.LFB31:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, 12]
adrp x0, yylineno
add x0, x0, :lo12:yylineno
ldr w1, [sp, 12]
str w1, [x0]
nop
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE31:
.size yyset_lineno, .-yyset_lineno
.align 2
.global yyset_in
.type yyset_in, %function
yyset_in:
.LFB32:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
adrp x0, yyin
add x0, x0, :lo12:yyin
ldr x1, [sp, 8]
str x1, [x0]
nop
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE32:
.size yyset_in, .-yyset_in
.align 2
.global yyset_out
.type yyset_out, %function
yyset_out:
.LFB33:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
adrp x0, yyout
add x0, x0, :lo12:yyout
ldr x1, [sp, 8]
str x1, [x0]
nop
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE33:
.size yyset_out, .-yyset_out
.align 2
.global yyget_debug
.type yyget_debug, %function
yyget_debug:
.LFB34:
.cfi_startproc
adrp x0, yy_flex_debug
add x0, x0, :lo12:yy_flex_debug
ldr w0, [x0]
ret
.cfi_endproc
.LFE34:
.size yyget_debug, .-yyget_debug
.align 2
.global yyset_debug
.type yyset_debug, %function
yyset_debug:
.LFB35:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, 12]
adrp x0, yy_flex_debug
add x0, x0, :lo12:yy_flex_debug
ldr w1, [sp, 12]
str w1, [x0]
nop
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE35:
.size yyset_debug, .-yyset_debug
.align 2
.type yy_init_globals, %function
yy_init_globals:
.LFB36:
.cfi_startproc
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
str xzr, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
str xzr, [x0]
adrp x0, yy_buffer_stack_max
add x0, x0, :lo12:yy_buffer_stack_max
str xzr, [x0]
adrp x0, yy_c_buf_p
add x0, x0, :lo12:yy_c_buf_p
str xzr, [x0]
adrp x0, yy_init
add x0, x0, :lo12:yy_init
str wzr, [x0]
adrp x0, yy_start
add x0, x0, :lo12:yy_start
str wzr, [x0]
adrp x0, yyin
add x0, x0, :lo12:yyin
str xzr, [x0]
adrp x0, yyout
add x0, x0, :lo12:yyout
str xzr, [x0]
mov w0, 0
ret
.cfi_endproc
.LFE36:
.size yy_init_globals, .-yy_init_globals
.align 2
.global yylex_destroy
.type yylex_destroy, %function
yylex_destroy:
.LFB37:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
b .L182
.L186:
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x0, [x0]
cmp x0, 0
beq .L183
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
b .L184
.L183:
mov x0, 0
.L184:
bl yy_delete_buffer
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
str xzr, [x0]
bl yypop_buffer_state
.L182:
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x0, [x0]
cmp x0, 0
beq .L185
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x1, [x0]
adrp x0, yy_buffer_stack_top
add x0, x0, :lo12:yy_buffer_stack_top
ldr x0, [x0]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
cmp x0, 0
bne .L186
.L185:
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
ldr x0, [x0]
bl yyfree
adrp x0, yy_buffer_stack
add x0, x0, :lo12:yy_buffer_stack
str xzr, [x0]
bl yy_init_globals
mov w0, 0
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE37:
.size yylex_destroy, .-yylex_destroy
.align 2
.global yyalloc
.type yyalloc, %function
yyalloc:
.LFB38:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
bl malloc
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE38:
.size yyalloc, .-yyalloc
.align 2
.global yyrealloc
.type yyrealloc, %function
yyrealloc:
.LFB39:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
ldr x1, [sp, 16]
ldr x0, [sp, 24]
bl realloc
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE39:
.size yyrealloc, .-yyrealloc
.align 2
.global yyfree
.type yyfree, %function
yyfree:
.LFB40:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
bl free
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE40:
.size yyfree, .-yyfree
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "%d"
.align 3
.LC1:
.string "positive"
.align 3
.LC2:
.string "negative"
.align 3
.LC3:
.string "even"
.align 3
.LC4:
.string "odd"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 24]
mov x1, 0
add x0, sp, 20
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
ldr w0, [sp, 20]
cmp w0, 0
ble .L2
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl puts
b .L3
.L2:
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl puts
.L3:
ldr w0, [sp, 20]
and w0, w0, 1
cmp w0, 0
bne .L4
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl puts
b .L5
.L4:
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
.L5:
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 24]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L7
bl __stack_chk_fail
.L7:
mov w0, w1
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global getitimer
.type getitimer, %function
getitimer:
.LFB0:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, 12]
str x1, [sp]
mov w0, 0
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size getitimer, .-getitimer
.align 2
.global setitimer
.type setitimer, %function
setitimer:
.LFB1:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, 28]
str x1, [sp, 16]
str x2, [sp, 8]
mov w0, 0
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size setitimer, .-setitimer
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global a
.bss
.align 3
.type a, %object
.size a, 8
a:
.zero 8
.global __extenddftf2
.section .rodata
.align 3
.LC0:
.string "result"
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
mov x0, 64
bl malloc
mov x1, x0
adrp x0, a
add x0, x0, :lo12:a
str x1, [x0]
adrp x0, a
add x0, x0, :lo12:a
ldr x0, [x0]
fmov d0, 2.0e+0
str d0, [x0]
adrp x0, a
add x0, x0, :lo12:a
ldr x0, [x0]
add x0, x0, 8
fmov d0, 3.0e+0
str d0, [x0]
mov w0, 2
str w0, [sp, 44]
b .L2
.L3:
adrp x0, a
add x0, x0, :lo12:a
ldr x1, [x0]
ldrsw x0, [sp, 44]
lsl x0, x0, 3
sub x0, x0, #8
add x0, x1, x0
ldr d1, [x0]
adrp x0, a
add x0, x0, :lo12:a
ldr x1, [x0]
ldrsw x0, [sp, 44]
lsl x0, x0, 3
sub x0, x0, #16
add x0, x1, x0
ldr d0, [x0]
adrp x0, a
add x0, x0, :lo12:a
ldr x1, [x0]
ldrsw x0, [sp, 44]
lsl x0, x0, 3
add x0, x1, x0
fadd d0, d1, d0
str d0, [x0]
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L2:
ldr w0, [sp, 44]
cmp w0, 7
ble .L3
adrp x0, a
add x0, x0, :lo12:a
ldr x0, [x0]
add x0, x0, 56
ldr d0, [x0]
bl __extenddftf2
ldr x0, [sp, 16]
add x0, x0, 16
ldr x0, [x0]
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl cov_log
ldr x0, [sp, 16]
add x0, x0, 16
ldr x3, [x0]
ldr x0, [sp, 16]
add x0, x0, 8
ldr x1, [x0]
ldr x0, [sp, 16]
add x0, x0, 24
ldr x0, [x0]
mov x2, x0
mov x0, x3
bl cov_check
mov w0, 0
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
.align 2
.global cov_serialize
.type cov_serialize, %function
cov_serialize:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -96]!
.cfi_def_cfa_offset 96
.cfi_offset 29, -96
.cfi_offset 30, -88
mov x29, sp
str q0, [sp, 32]
str x0, [sp, 24]
str w1, [sp, 20]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 88]
mov x1, 0
ldr q0, [sp, 32]
str q0, [sp, 64]
str wzr, [sp, 60]
b .L6
.L7:
ldrsw x0, [sp, 60]
ldr x1, [sp, 24]
add x0, x1, x0
ldrsw x1, [sp, 60]
add x2, sp, 64
ldrb w1, [x2, x1]
strb w1, [x0]
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L6:
ldr w1, [sp, 60]
ldr w0, [sp, 20]
cmp w1, w0
blt .L7
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 88]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L8
bl __stack_chk_fail
.L8:
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size cov_serialize, .-cov_serialize
.section .rodata
.align 3
.LC1:
.string "%02X"
.text
.align 2
.global cov_deserialize
.type cov_deserialize, %function
cov_deserialize:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
str x0, [sp, 24]
str w1, [sp, 20]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 72]
mov x1, 0
str wzr, [sp, 44]
b .L10
.L11:
add x0, sp, 40
mov x2, x0
adrp x0, .LC1
add x1, x0, :lo12:.LC1
ldr x0, [sp, 24]
bl __isoc99_sscanf
ldr w0, [sp, 40]
and w2, w0, 255
ldrsw x0, [sp, 44]
add x1, sp, 48
strb w2, [x1, x0]
ldr x0, [sp, 24]
add x0, x0, 2
str x0, [sp, 24]
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L10:
ldr w1, [sp, 44]
ldr w0, [sp, 20]
cmp w1, w0
blt .L11
ldr q0, [sp, 48]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 72]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L13
bl __stack_chk_fail
.L13:
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size cov_deserialize, .-cov_deserialize
.section .rodata
.align 3
.LC2:
.string "a"
.align 3
.LC3:
.string "#%s\n"
.text
.align 2
.global cov_log
.type cov_log, %function
cov_log:
.LFB9:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
str q0, [sp, 32]
str x0, [sp, 24]
str x1, [sp, 16]
adrp x0, .LC2
add x1, x0, :lo12:.LC2
ldr x0, [sp, 16]
bl fopen
str x0, [sp, 64]
mov w0, 10
str w0, [sp, 60]
ldrsw x0, [sp, 60]
bl malloc
str x0, [sp, 72]
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 0
beq .L15
ldr x2, [sp, 24]
adrp x0, .LC3
add x1, x0, :lo12:.LC3
ldr x0, [sp, 64]
bl fprintf
.L15:
ldr w1, [sp, 60]
ldr x0, [sp, 72]
ldr q0, [sp, 32]
bl cov_serialize
str wzr, [sp, 56]
b .L16
.L17:
ldrsw x0, [sp, 56]
ldr x1, [sp, 72]
add x0, x1, x0
ldrb w0, [x0]
mov w2, w0
adrp x0, .LC1
add x1, x0, :lo12:.LC1
ldr x0, [sp, 64]
bl fprintf
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
.L16:
ldr w1, [sp, 56]
ldr w0, [sp, 60]
cmp w1, w0
blt .L17
ldr x1, [sp, 64]
mov w0, 10
bl fputc
ldr x0, [sp, 64]
bl fclose
nop
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size cov_log, .-cov_log
.section .rodata
.align 3
.LC4:
.string "ideal"
.align 3
.LC5:
.string "delta"
.text
.align 2
.global cov_spec_log
.type cov_spec_log, %function
cov_spec_log:
.LFB10:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str q0, [sp, 48]
str q1, [sp, 32]
str x0, [sp, 24]
ldr x1, [sp, 24]
adrp x0, .LC4
add x0, x0, :lo12:.LC4
ldr q0, [sp, 48]
bl cov_log
ldr x1, [sp, 24]
adrp x0, .LC5
add x0, x0, :lo12:.LC5
ldr q0, [sp, 32]
bl cov_log
nop
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size cov_spec_log, .-cov_spec_log
.align 2
.global cov_arr_log
.type cov_arr_log, %function
cov_arr_log:
.LFB11:
.cfi_startproc
stp x29, x30, [sp, -96]!
.cfi_def_cfa_offset 96
.cfi_offset 29, -96
.cfi_offset 30, -88
mov x29, sp
str x0, [sp, 40]
str w1, [sp, 36]
str x2, [sp, 24]
str x3, [sp, 16]
adrp x0, .LC2
add x1, x0, :lo12:.LC2
ldr x0, [sp, 16]
bl fopen
str x0, [sp, 64]
mov w0, 10
str w0, [sp, 60]
ldrsw x0, [sp, 60]
bl malloc
str x0, [sp, 72]
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 0
beq .L20
ldr x2, [sp, 24]
adrp x0, .LC3
add x1, x0, :lo12:.LC3
ldr x0, [sp, 64]
bl fprintf
.L20:
str wzr, [sp, 52]
b .L21
.L25:
ldrsw x0, [sp, 52]
lsl x0, x0, 4
ldr x1, [sp, 40]
add x0, x1, x0
ldr q0, [x0]
str q0, [sp, 80]
ldr w1, [sp, 60]
ldr x0, [sp, 72]
ldr q0, [sp, 80]
bl cov_serialize
ldr w0, [sp, 52]
cmp w0, 0
ble .L22
ldr x1, [sp, 64]
mov w0, 32
bl fputc
.L22:
str wzr, [sp, 56]
b .L23
.L24:
ldrsw x0, [sp, 56]
ldr x1, [sp, 72]
add x0, x1, x0
ldrb w0, [x0]
mov w2, w0
adrp x0, .LC1
add x1, x0, :lo12:.LC1
ldr x0, [sp, 64]
bl fprintf
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
.L23:
ldr w1, [sp, 56]
ldr w0, [sp, 60]
cmp w1, w0
blt .L24
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
.L21:
ldr w1, [sp, 52]
ldr w0, [sp, 36]
cmp w1, w0
blt .L25
ldr x1, [sp, 64]
mov w0, 10
bl fputc
ldr x0, [sp, 64]
bl fclose
nop
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size cov_arr_log, .-cov_arr_log
.align 2
.global cov_spec_arr_log
.type cov_spec_arr_log, %function
cov_spec_arr_log:
.LFB12:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 56]
str w1, [sp, 52]
str q0, [sp, 32]
str x2, [sp, 24]
ldr x3, [sp, 24]
adrp x0, .LC4
add x2, x0, :lo12:.LC4
ldr w1, [sp, 52]
ldr x0, [sp, 56]
bl cov_arr_log
ldr x1, [sp, 24]
adrp x0, .LC5
add x0, x0, :lo12:.LC5
ldr q0, [sp, 32]
bl cov_log
nop
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE12:
.size cov_spec_arr_log, .-cov_spec_arr_log
.section .rodata
.align 3
.LC6:
.string "rt"
.align 3
.LC7:
.string "#ideal"
.align 3
.LC8:
.string "#delta"
.global __gttf2
.global __subtf3
.align 3
.LC9:
.string "w"
.global __getf2
.align 3
.LC10:
.string "true\n"
.align 3
.LC11:
.string "false\n"
.text
.align 2
.global cov_check
.type cov_check, %function
cov_check:
.LFB13:
.cfi_startproc
stp x29, x30, [sp, -480]!
.cfi_def_cfa_offset 480
.cfi_offset 29, -480
.cfi_offset 30, -472
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str x2, [sp, 24]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 472]
mov x1, 0
mov w0, 10
str w0, [sp, 52]
adrp x0, .LC6
add x1, x0, :lo12:.LC6
ldr x0, [sp, 40]
bl fopen
str x0, [sp, 56]
b .L28
.L29:
ldrb w0, [sp, 152]
cmp w0, 35
beq .L28
add x1, sp, 152
add x0, sp, 232
bl strcpy
.L28:
add x0, sp, 152
ldr x2, [sp, 56]
mov w1, 80
bl fgets
cmp x0, 0
bne .L29
ldr x0, [sp, 56]
bl fclose
adrp x0, .LC6
add x1, x0, :lo12:.LC6
ldr x0, [sp, 32]
bl fopen
str x0, [sp, 64]
b .L30
.L32:
add x3, sp, 152
mov x2, 6
adrp x0, .LC7
add x1, x0, :lo12:.LC7
mov x0, x3
bl strncmp
cmp w0, 0
bne .L31
add x0, sp, 312
ldr x2, [sp, 64]
mov w1, 80
bl fgets
b .L30
.L31:
add x3, sp, 152
mov x2, 6
adrp x0, .LC8
add x1, x0, :lo12:.LC8
mov x0, x3
bl strncmp
cmp w0, 0
bne .L30
add x0, sp, 392
ldr x2, [sp, 64]
mov w1, 80
bl fgets
.L30:
add x0, sp, 152
ldr x2, [sp, 64]
mov w1, 80
bl fgets
cmp x0, 0
bne .L32
ldr x0, [sp, 64]
bl fclose
add x0, sp, 232
ldr w1, [sp, 52]
bl cov_deserialize
str q0, [sp, 96]
add x0, sp, 312
ldr w1, [sp, 52]
bl cov_deserialize
str q0, [sp, 112]
add x0, sp, 392
ldr w1, [sp, 52]
bl cov_deserialize
str q0, [sp, 128]
ldr q1, [sp, 112]
ldr q0, [sp, 96]
bl __gttf2
cmp w0, 0
ble .L42
ldr q1, [sp, 112]
ldr q0, [sp, 96]
bl __subtf3
str q0, [sp, 80]
b .L35
.L42:
ldr q1, [sp, 96]
ldr q0, [sp, 112]
bl __subtf3
str q0, [sp, 80]
.L35:
adrp x0, .LC9
add x1, x0, :lo12:.LC9
ldr x0, [sp, 24]
bl fopen
str x0, [sp, 72]
ldr q1, [sp, 80]
ldr q0, [sp, 128]
bl __getf2
cmp w0, 0
blt .L43
ldr x3, [sp, 72]
mov x2, 5
mov x1, 1
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl fwrite
b .L38
.L43:
ldr x3, [sp, 72]
mov x2, 6
mov x1, 1
adrp x0, .LC11
add x0, x0, :lo12:.LC11
bl fwrite
.L38:
ldr x0, [sp, 72]
bl fclose
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 472]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L39
bl __stack_chk_fail
.L39:
ldp x29, x30, [sp], 480
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE13:
.size cov_check, .-cov_check
.section .rodata
.align 3
.LC12:
.string " "
.global __lttf2
.align 3
.LC13:
.string "true"
.align 3
.LC14:
.string "false"
.text
.align 2
.global cov_arr_check
.type cov_arr_check, %function
cov_arr_check:
.LFB14:
.cfi_startproc
sub sp, sp, #1216
.cfi_def_cfa_offset 1216
stp x29, x30, [sp, 16]
.cfi_offset 29, -1200
.cfi_offset 30, -1192
add x29, sp, 16
.cfi_def_cfa 29, 1200
stp x19, x20, [sp, 32]
.cfi_offset 19, -1184
.cfi_offset 20, -1176
str x0, [x29, 56]
str x1, [x29, 48]
str w2, [x29, 44]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [x29, 1192]
mov x1, 0
mov x0, sp
mov x20, x0
ldr w0, [x29, 44]
sxtw x1, w0
sub x1, x1, #1
str x1, [x29, 104]
sxtw x1, w0
mov x18, x1
mov x19, 0
lsr x1, x18, 57
lsl x11, x19, 7
orr x11, x1, x11
lsl x10, x18, 7
sxtw x1, w0
mov x16, x1
mov x17, 0
lsr x1, x16, 57
lsl x9, x17, 7
orr x9, x1, x9
lsl x8, x16, 7
sxtw x0, w0
lsl x0, x0, 4
add x0, x0, 15
lsr x0, x0, 4
lsl x0, x0, 4
and x1, x0, -65536
sub x1, sp, x1
.L45:
cmp sp, x1
beq .L46
sub sp, sp, #65536
str xzr, [sp, 1024]
b .L45
.L46:
and x1, x0, 65535
sub sp, sp, x1
str xzr, [sp]
and x0, x0, 65535
cmp x0, 1024
bcc .L47
str xzr, [sp, 1024]
.L47:
add x0, sp, 16
add x0, x0, 15
lsr x0, x0, 4
lsl x0, x0, 4
str x0, [x29, 112]
ldr w0, [x29, 44]
sxtw x1, w0
sub x1, x1, #1
str x1, [x29, 120]
sxtw x1, w0
mov x14, x1
mov x15, 0
lsr x1, x14, 57
lsl x7, x15, 7
orr x7, x1, x7
lsl x6, x14, 7
sxtw x1, w0
mov x12, x1
mov x13, 0
lsr x1, x12, 57
lsl x5, x13, 7
orr x5, x1, x5
lsl x4, x12, 7
sxtw x0, w0
lsl x0, x0, 4
add x0, x0, 15
lsr x0, x0, 4
lsl x0, x0, 4
and x1, x0, -65536
sub x1, sp, x1
.L48:
cmp sp, x1
beq .L49
sub sp, sp, #65536
str xzr, [sp, 1024]
b .L48
.L49:
and x1, x0, 65535
sub sp, sp, x1
str xzr, [sp]
and x0, x0, 65535
cmp x0, 1024
bcc .L50
str xzr, [sp, 1024]
.L50:
add x0, sp, 16
add x0, x0, 15
lsr x0, x0, 4
lsl x0, x0, 4
str x0, [x29, 128]
adrp x0, .LC12
add x0, x0, :lo12:.LC12
str x0, [x29, 136]
mov w0, 10
str w0, [x29, 76]
adrp x0, .LC6
add x1, x0, :lo12:.LC6
ldr x0, [x29, 56]
bl fopen
str x0, [x29, 144]
b .L51
.L54:
ldrb w0, [x29, 192]
cmp w0, 35
beq .L51
str wzr, [x29, 64]
add x1, x29, 80
add x0, x29, 192
mov x2, x1
ldr x1, [x29, 136]
bl strtok_r
str x0, [x29, 96]
b .L52
.L53:
ldr w1, [x29, 76]
ldr x0, [x29, 96]
bl cov_deserialize
ldr x1, [x29, 112]
ldrsw x0, [x29, 64]
lsl x0, x0, 4
add x0, x1, x0
str q0, [x0]
ldr w0, [x29, 64]
add w0, w0, 1
str w0, [x29, 64]
add x0, x29, 80
mov x2, x0
ldr x1, [x29, 136]
mov x0, 0
bl strtok_r
str x0, [x29, 96]
.L52:
ldr x0, [x29, 96]
cmp x0, 0
bne .L53
.L51:
add x0, x29, 192
ldr x2, [x29, 144]
mov w1, 1000
bl fgets
cmp x0, 0
bne .L54
ldr x0, [x29, 144]
bl fclose
adrp x0, .LC6
add x1, x0, :lo12:.LC6
ldr x0, [x29, 48]
bl fopen
str x0, [x29, 152]
b .L55
.L59:
add x3, x29, 192
mov x2, 6
adrp x0, .LC7
add x1, x0, :lo12:.LC7
mov x0, x3
bl strncmp
cmp w0, 0
bne .L56
str wzr, [x29, 64]
add x0, x29, 192
ldr x2, [x29, 152]
mov w1, 1000
bl fgets
add x1, x29, 88
add x0, x29, 192
mov x2, x1
ldr x1, [x29, 136]
bl strtok_r
str x0, [x29, 96]
b .L57
.L58:
ldr w1, [x29, 76]
ldr x0, [x29, 96]
bl cov_deserialize
ldr x1, [x29, 128]
ldrsw x0, [x29, 64]
lsl x0, x0, 4
add x0, x1, x0
str q0, [x0]
ldr w0, [x29, 64]
add w0, w0, 1
str w0, [x29, 64]
add x0, x29, 88
mov x2, x0
ldr x1, [x29, 136]
mov x0, 0
bl strtok_r
str x0, [x29, 96]
.L57:
ldr x0, [x29, 96]
cmp x0, 0
bne .L58
b .L55
.L56:
add x3, x29, 192
mov x2, 6
adrp x0, .LC8
add x1, x0, :lo12:.LC8
mov x0, x3
bl strncmp
cmp w0, 0
bne .L55
add x0, x29, 192
ldr x2, [x29, 152]
mov w1, 80
bl fgets
add x0, x29, 192
ldr w1, [x29, 76]
bl cov_deserialize
str q0, [x29, 160]
.L55:
add x0, x29, 192
ldr x2, [x29, 144]
mov w1, 1000
bl fgets
cmp x0, 0
bne .L59
ldr x0, [x29, 152]
bl fclose
mov w0, 1
str w0, [x29, 72]
str wzr, [x29, 68]
b .L60
.L67:
ldr x1, [x29, 112]
ldrsw x0, [x29, 68]
lsl x0, x0, 4
add x0, x1, x0
ldr q0, [x0]
ldr x1, [x29, 128]
ldrsw x0, [x29, 68]
lsl x0, x0, 4
add x0, x1, x0
ldr q2, [x0]
mov v1.16b, v2.16b
bl __gttf2
cmp w0, 0
ble .L73
ldr x1, [x29, 112]
ldrsw x0, [x29, 68]
lsl x0, x0, 4
add x0, x1, x0
ldr q0, [x0]
ldr x1, [x29, 128]
ldrsw x0, [x29, 68]
lsl x0, x0, 4
add x0, x1, x0
ldr q2, [x0]
mov v1.16b, v2.16b
bl __subtf3
str q0, [x29, 176]
b .L63
.L73:
ldr x1, [x29, 128]
ldrsw x0, [x29, 68]
lsl x0, x0, 4
add x0, x1, x0
ldr q0, [x0]
ldr x1, [x29, 112]
ldrsw x0, [x29, 68]
lsl x0, x0, 4
add x0, x1, x0
ldr q2, [x0]
mov v1.16b, v2.16b
bl __subtf3
str q0, [x29, 176]
.L63:
ldr q1, [x29, 176]
ldr q0, [x29, 160]
bl __lttf2
cmp w0, 0
bge .L74
str wzr, [x29, 72]
b .L66
.L74:
ldr w0, [x29, 68]
add w0, w0, 1
str w0, [x29, 68]
.L60:
ldr w1, [x29, 68]
ldr w0, [x29, 44]
cmp w1, w0
blt .L67
.L66:
ldr w0, [x29, 72]
cmp w0, 0
beq .L68
adrp x0, .LC13
add x0, x0, :lo12:.LC13
bl puts
b .L69
.L68:
adrp x0, .LC14
add x0, x0, :lo12:.LC14
bl puts
.L69:
mov sp, x20
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [x29, 1192]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L70
bl __stack_chk_fail
.L70:
sub sp, x29, #16
.cfi_def_cfa 31, 1216
ldp x19, x20, [sp, 32]
ldp x29, x30, [sp, 16]
add sp, sp, 1216
.cfi_restore 29
.cfi_restore 30
.cfi_restore 19
.cfi_restore 20
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE14:
.size cov_arr_check, .-cov_arr_check
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global IID_IDXTFade
.section .rodata
.align 3
.type IID_IDXTFade, %object
.size IID_IDXTFade, 24
IID_IDXTFade:
.xword 380797124
.hword -4496
.hword 4561
.string "\220f"
.ascii "\300O\331\030\235"
.zero 4
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 2
.type MODEL_UPDATE_DELAY, %object
.size MODEL_UPDATE_DELAY, 4
MODEL_UPDATE_DELAY:
.word 250
.align 2
.type MAX_PASSPHRASE_SIZE, %object
.size MAX_PASSPHRASE_SIZE, 4
MAX_PASSPHRASE_SIZE:
.word 1024
.align 2
.type STATUSBAR_ICONSIZE, %object
.size STATUSBAR_ICONSIZE, 4
STATUSBAR_ICONSIZE:
.word 16
.align 2
.type TOOLTIP_WRAP_THRESHOLD, %object
.size TOOLTIP_WRAP_THRESHOLD, 4
TOOLTIP_WRAP_THRESHOLD:
.word 80
.align 2
.type MAX_URI_LENGTH, %object
.size MAX_URI_LENGTH, 4
MAX_URI_LENGTH:
.word 255
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "\320\222\320\262\320\265\320\264\320\270\321\202\320\265 \320\277\321\200\320\265\320\264\320\273\320\276\320\266\320\265\320\275\320\270\320\265:"
.align 3
.LC1:
.string "\n"
.align 3
.LC2:
.string "\320\222\321\213 \320\262\320\262\320\265\320\273\320\270 \321\201\320\273\320\265\320\264\321\203\321\216\321\211\320\265\320\265 \320\277\321\200\320\265\320\264\320\273\320\276\320\266\320\265\320\275\320\270\320\265:\n%s\n"
.align 3
.LC3:
.string " "
.align 3
.LC4:
.string "\320\241\320\273\320\276\320\262\320\276 \342\204\226%d: %s\n"
.align 3
.LC5:
.string "\320\232\320\276\320\273\320\270\321\207\320\265\321\201\321\202\320\262\320\276 \321\201\320\273\320\276\320\262 = %d\n"
.align 3
.LC6:
.string "\320\222\321\201\320\265 \321\201\320\273\320\276\320\262\320\260 \320\262 \320\260\320\273\321\204\320\260\320\262\320\270\321\202\320\275\320\276\320\274 \320\277\320\276\321\200\321\217\320\264\320\272\320\265:"
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
sub sp, sp, #1120
.cfi_def_cfa_offset 1120
stp x29, x30, [sp]
.cfi_offset 29, -1120
.cfi_offset 30, -1112
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -1104
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 1112]
mov x1, 0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
adrp x0, :got:stdin
ldr x0, [x0, #:got_lo12:stdin]
ldr x1, [x0]
add x0, sp, 88
mov x2, x1
mov w1, 1024
bl fgets
add x2, sp, 88
adrp x0, .LC1
add x1, x0, :lo12:.LC1
mov x0, x2
bl strcspn
mov x1, x0
add x0, sp, 88
strb wzr, [x0, x1]
add x0, sp, 88
mov x1, x0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
add x0, sp, 88
bl strlen
add x0, x0, 1
bl malloc
str x0, [sp, 64]
add x0, sp, 88
mov x1, x0
ldr x0, [sp, 64]
bl strcpy
adrp x0, .LC3
add x1, x0, :lo12:.LC3
ldr x0, [sp, 64]
bl strtok
str x0, [sp, 56]
str wzr, [sp, 44]
b .L2
.L3:
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
ldr x2, [sp, 56]
ldr w1, [sp, 44]
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
adrp x0, .LC3
add x1, x0, :lo12:.LC3
mov x0, 0
bl strtok
str x0, [sp, 56]
.L2:
ldr x0, [sp, 56]
cmp x0, 0
bne .L3
ldr x0, [sp, 64]
bl free
ldr w1, [sp, 44]
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
ldrsw x0, [sp, 44]
lsl x0, x0, 3
bl malloc
str x0, [sp, 72]
add x2, sp, 88
adrp x0, .LC3
add x1, x0, :lo12:.LC3
mov x0, x2
bl strtok
str x0, [sp, 56]
str wzr, [sp, 48]
b .L4
.L7:
ldr x0, [sp, 56]
bl strlen
add x2, x0, 1
ldrsw x0, [sp, 48]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x19, x1, x0
mov x0, x2
bl malloc
str x0, [x19]
ldrsw x0, [sp, 48]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
ldr x0, [x0]
ldr x1, [sp, 56]
bl strcpy
str wzr, [sp, 52]
b .L5
.L6:
ldrsw x0, [sp, 48]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
ldr x1, [x0]
ldrsw x0, [sp, 52]
add x0, x1, x0
ldrb w0, [x0]
bl tolower
mov w2, w0
ldrsw x0, [sp, 48]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
ldr x1, [x0]
ldrsw x0, [sp, 52]
add x0, x1, x0
and w1, w2, 255
strb w1, [x0]
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
.L5:
ldrsw x0, [sp, 48]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
ldr x1, [x0]
ldrsw x0, [sp, 52]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 0
bne .L6
adrp x0, .LC3
add x1, x0, :lo12:.LC3
mov x0, 0
bl strtok
str x0, [sp, 56]
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
.L4:
ldr x0, [sp, 56]
cmp x0, 0
bne .L7
str wzr, [sp, 52]
b .L8
.L12:
str wzr, [sp, 48]
b .L9
.L11:
ldrsw x0, [sp, 48]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
ldr x2, [x0]
ldrsw x0, [sp, 48]
add x0, x0, 1
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
ldr x0, [x0]
mov x1, x0
mov x0, x2
bl strcmp
cmp w0, 0
ble .L10
ldrsw x0, [sp, 48]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
ldr x0, [x0]
str x0, [sp, 80]
ldrsw x0, [sp, 48]
add x0, x0, 1
lsl x0, x0, 3
ldr x1, [sp, 72]
add x1, x1, x0
ldrsw x0, [sp, 48]
lsl x0, x0, 3
ldr x2, [sp, 72]
add x0, x2, x0
ldr x1, [x1]
str x1, [x0]
ldrsw x0, [sp, 48]
add x0, x0, 1
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
ldr x1, [sp, 80]
str x1, [x0]
.L10:
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
.L9:
ldr w0, [sp, 44]
sub w0, w0, #1
ldr w1, [sp, 48]
cmp w1, w0
blt .L11
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
.L8:
ldr w0, [sp, 44]
sub w0, w0, #1
ldr w1, [sp, 52]
cmp w1, w0
blt .L12
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl puts
str wzr, [sp, 48]
b .L13
.L14:
ldrsw x0, [sp, 48]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
ldr x0, [x0]
bl puts
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
.L13:
ldr w1, [sp, 48]
ldr w0, [sp, 44]
cmp w1, w0
blt .L14
str wzr, [sp, 48]
b .L15
.L16:
ldrsw x0, [sp, 48]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
ldr x0, [x0]
bl free
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
.L15:
ldr w1, [sp, 48]
ldr w0, [sp, 44]
cmp w1, w0
blt .L16
ldr x0, [sp, 72]
bl free
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 1112]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L18
bl __stack_chk_fail
.L18:
mov w0, w1
ldr x19, [sp, 16]
ldp x29, x30, [sp]
add sp, sp, 1120
.cfi_restore 29
.cfi_restore 30
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Menu"
.align 3
.LC1:
.string "> 1. Whoa"
.align 3
.LC2:
.string "> 2. Beh"
.align 3
.LC3:
.string "Masukkan menu? "
.align 3
.LC4:
.string "%d"
.align 3
.LC5:
.string "Kamu memasukkan angka 1"
.align 3
.LC6:
.string "Kamu memasukkan angka 2"
.align 3
.LC7:
.string "Kamu memasukkan angka diluar menu"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 24]
mov x1, 0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl puts
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl puts
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
add x0, sp, 20
mov x1, x0
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl __isoc99_scanf
ldr w0, [sp, 20]
cmp w0, 1
bne .L2
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl puts
b .L3
.L2:
ldr w0, [sp, 20]
cmp w0, 2
bne .L4
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl puts
b .L3
.L4:
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl puts
.L3:
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 24]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L6
bl __stack_chk_fail
.L6:
mov w0, w1
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global foo
.type foo, %function
foo:
.LFB0:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
ldr x0, [sp, 8]
add x0, x0, 8
str x0, [sp, 8]
ldr x0, [sp, 8]
sub x0, x0, #8
str x0, [sp, 8]
ldr x0, [sp, 8]
ldr x0, [x0]
add x1, x0, 8
ldr x0, [sp, 8]
str x1, [x0]
ldr x0, [sp, 8]
ldr x0, [x0]
sub x1, x0, #8
ldr x0, [sp, 8]
str x1, [x0]
ldr x0, [sp, 8]
ldr x0, [x0]
ldr x1, [x0]
ldr x0, [sp, 8]
ldr x0, [x0]
add x1, x1, 4
str x1, [x0]
ldr x0, [sp, 8]
ldr x0, [x0]
ldr x1, [x0]
ldr x0, [sp, 8]
ldr x0, [x0]
sub x1, x1, #4
str x1, [x0]
ldr x0, [sp, 8]
ldr x0, [x0]
ldr x0, [x0]
mov w1, 23
str w1, [x0]
nop
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size foo, .-foo
.align 2
.global main
.type main, %function
main:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 56]
mov x1, 0
mov w0, 1
str w0, [sp, 28]
add x0, sp, 28
str x0, [sp, 32]
add x0, sp, 32
str x0, [sp, 40]
add x0, sp, 40
str x0, [sp, 48]
ldr x0, [sp, 48]
bl foo
ldr w0, [sp, 28]
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 56]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L4
bl __stack_chk_fail
.L4:
mov w0, w1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global maxNo
.type maxNo, %function
maxNo:
.LFB6:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, 12]
str w1, [sp, 8]
str x2, [sp]
ldr w0, [sp, 12]
str w0, [sp, 20]
ldrsw x0, [sp, 12]
lsl x0, x0, 2
ldr x1, [sp]
add x0, x1, x0
ldr w0, [x0]
str w0, [sp, 24]
ldr w0, [sp, 12]
str w0, [sp, 28]
b .L2
.L5:
ldrsw x0, [sp, 28]
lsl x0, x0, 2
ldr x1, [sp]
add x0, x1, x0
ldr w0, [x0]
ldr w1, [sp, 24]
cmp w1, w0
bge .L3
ldrsw x0, [sp, 28]
lsl x0, x0, 2
ldr x1, [sp]
add x0, x1, x0
ldr w0, [x0]
str w0, [sp, 24]
ldr w0, [sp, 28]
str w0, [sp, 20]
.L3:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L2:
ldr w1, [sp, 12]
ldr w0, [sp, 8]
add w0, w1, w0
ldr w1, [sp, 28]
cmp w1, w0
bge .L4
ldr w0, [sp, 28]
cmp w0, 255
ble .L5
.L4:
ldr w0, [sp, 20]
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size maxNo, .-maxNo
.align 2
.global minNo
.type minNo, %function
minNo:
.LFB7:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, 12]
str w1, [sp, 8]
str x2, [sp]
ldr w0, [sp, 12]
str w0, [sp, 20]
ldrsw x0, [sp, 12]
lsl x0, x0, 2
ldr x1, [sp]
add x0, x1, x0
ldr w0, [x0]
str w0, [sp, 24]
ldr w0, [sp, 12]
str w0, [sp, 28]
b .L8
.L10:
ldrsw x0, [sp, 28]
lsl x0, x0, 2
ldr x1, [sp]
add x0, x1, x0
ldr w0, [x0]
ldr w1, [sp, 24]
cmp w1, w0
ble .L9
ldrsw x0, [sp, 28]
lsl x0, x0, 2
ldr x1, [sp]
add x0, x1, x0
ldr w0, [x0]
str w0, [sp, 24]
ldr w0, [sp, 28]
str w0, [sp, 20]
.L9:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L8:
ldr w1, [sp, 28]
ldr w0, [sp, 8]
cmp w1, w0
blt .L10
ldr w0, [sp, 20]
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size minNo, .-minNo
.section .rodata
.align 3
.LC0:
.string "don't read filename"
.align 3
.LC1:
.string "many arguments"
.align 3
.LC2:
.string "rb"
.align 3
.LC3:
.string "."
.align 3
.LC4:
.string "many peaks"
.align 3
.LC5:
.string "\351\226\276\345\200\244 = %d\n"
.align 3
.LC6:
.string "don't appear peak"
.align 3
.LC7:
.string "girl"
.align 3
.LC8:
.string "wb"
.align 3
.LC9:
.string "plot_ex4girl.dat"
.align 3
.LC10:
.string "plot_ex4ei.dat"
.align 3
.LC11:
.string "%3d %3d\n"
.align 3
.LC12:
.string "girlex4_binary.dat"
.align 3
.LC13:
.string "eiex4_binary.dat"
.align 3
.LC14:
.string "zsh ex4_girl.sh"
.align 3
.LC15:
.string "zsh ex4_ei.sh"
.text
.align 2
.global main
.type main, %function
main:
.LFB8:
.cfi_startproc
sub sp, sp, #65536
.cfi_def_cfa_offset 65536
str xzr, [sp, 1024]
sub sp, sp, #65536
.cfi_def_cfa_offset 131072
str xzr, [sp, 1024]
mov x12, 5264
sub sp, sp, x12
.cfi_def_cfa_offset 136336
stp x29, x30, [sp]
.cfi_offset 29, -136336
.cfi_offset 30, -136328
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -136320
str w0, [sp, 44]
str x1, [sp, 32]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
add x1, sp, 131072
ldr x2, [x0]
str x2, [x1, 5256]
mov x2, 0
add x0, sp, 136
mov x1, 1024
mov x2, x1
mov w1, 0
bl memset
mov w0, 16
str w0, [sp, 112]
mov w0, 150
str w0, [sp, 116]
ldr w0, [sp, 44]
cmp w0, 1
bgt .L13
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
mov w0, 0
b .L55
.L13:
ldr w0, [sp, 44]
cmp w0, 2
ble .L15
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl puts
mov w0, 0
b .L55
.L15:
ldr x0, [sp, 32]
add x0, x0, 8
ldr x2, [x0]
adrp x0, .LC2
add x1, x0, :lo12:.LC2
mov x0, x2
bl fopen
str x0, [sp, 120]
add x0, sp, 4096
add x0, x0, 1160
ldr x3, [sp, 120]
mov x2, 65536
mov x1, 1
bl fread
ldr x0, [sp, 120]
bl fclose
ldr x0, [sp, 32]
add x0, x0, 8
ldr x2, [x0]
adrp x0, .LC3
add x1, x0, :lo12:.LC3
mov x0, x2
bl strtok
str x0, [sp, 128]
str wzr, [sp, 60]
b .L16
.L19:
str wzr, [sp, 64]
b .L17
.L18:
ldrsw x0, [sp, 64]
ldrsw x1, [sp, 60]
lsl x1, x1, 8
add x1, x1, 135168
add x1, x1, 1168
add x1, sp, x1
add x0, x1, x0
sub x0, x0, #135168
ldrb w0, [x0, 4088]
mov w3, w0
sxtw x0, w3
lsl x0, x0, 2
add x1, sp, 136
ldr w0, [x1, x0]
add w2, w0, 1
sxtw x0, w3
lsl x0, x0, 2
add x1, sp, 136
str w2, [x1, x0]
ldr w0, [sp, 64]
add w0, w0, 1
str w0, [sp, 64]
.L17:
ldr w0, [sp, 64]
cmp w0, 255
ble .L18
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L16:
ldr w0, [sp, 60]
cmp w0, 255
ble .L19
str wzr, [sp, 68]
str wzr, [sp, 72]
b .L20
.L25:
add x0, sp, 136
mov x2, x0
ldr w1, [sp, 112]
ldr w0, [sp, 72]
bl maxNo
mov w19, w0
ldr w0, [sp, 72]
add w0, w0, 1
add x1, sp, 136
mov x2, x1
ldr w1, [sp, 112]
bl maxNo
cmp w19, w0
bne .L21
str wzr, [sp, 76]
mov w0, 1
str w0, [sp, 80]
b .L22
.L24:
add x0, sp, 136
mov x2, x0
ldr w1, [sp, 112]
ldr w0, [sp, 72]
bl maxNo
mov w19, w0
ldr w1, [sp, 72]
ldr w0, [sp, 80]
add w0, w1, w0
add x1, sp, 136
mov x2, x1
ldr w1, [sp, 112]
bl maxNo
cmp w19, w0
bne .L23
ldr w0, [sp, 76]
add w0, w0, 1
str w0, [sp, 76]
.L23:
ldr w0, [sp, 80]
add w0, w0, 1
str w0, [sp, 80]
.L22:
ldr w1, [sp, 80]
ldr w0, [sp, 112]
cmp w1, w0
blt .L24
ldr w0, [sp, 112]
sub w0, w0, #1
ldr w1, [sp, 76]
cmp w1, w0
bne .L21
add x0, sp, 136
mov x2, x0
ldr w1, [sp, 112]
ldr w0, [sp, 72]
bl maxNo
mov w2, w0
ldrsw x0, [sp, 68]
lsl x0, x0, 2
add x1, sp, 1160
str w2, [x1, x0]
ldr w0, [sp, 68]
add w0, w0, 1
str w0, [sp, 68]
.L21:
ldr w0, [sp, 72]
add w0, w0, 1
str w0, [sp, 72]
.L20:
mov w1, 256
ldr w0, [sp, 112]
sub w0, w1, w0
ldr w1, [sp, 72]
cmp w1, w0
blt .L25
ldr w0, [sp, 1160]
add x1, sp, 136
mov x2, x1
mov w1, w0
mov w0, 0
bl minNo
str w0, [sp, 2184]
str wzr, [sp, 84]
b .L26
.L29:
ldr w0, [sp, 84]
add w0, w0, 1
sxtw x0, w0
lsl x0, x0, 2
add x1, sp, 1160
ldr w0, [x1, x0]
cmp w0, 0
beq .L57
ldrsw x0, [sp, 84]
lsl x0, x0, 2
add x1, sp, 1160
ldr w3, [x1, x0]
ldr w0, [sp, 84]
add w0, w0, 1
sxtw x0, w0
lsl x0, x0, 2
add x1, sp, 1160
ldr w1, [x1, x0]
ldr w0, [sp, 84]
add w19, w0, 1
add x0, sp, 136
mov x2, x0
mov w0, w3
bl minNo
mov w2, w0
sxtw x0, w19
lsl x0, x0, 2
add x1, sp, 2184
str w2, [x1, x0]
ldr w0, [sp, 84]
add w0, w0, 1
str w0, [sp, 84]
.L26:
ldr w0, [sp, 84]
cmp w0, 255
ble .L29
b .L28
.L57:
nop
.L28:
str wzr, [sp, 88]
str wzr, [sp, 92]
b .L30
.L32:
ldrsw x0, [sp, 92]
lsl x0, x0, 2
add x1, sp, 1160
ldr w0, [x1, x0]
sxtw x0, w0
lsl x0, x0, 2
add x1, sp, 136
ldr w1, [x1, x0]
ldrsw x0, [sp, 92]
lsl x0, x0, 2
add x2, sp, 2184
ldr w0, [x2, x0]
sxtw x0, w0
lsl x0, x0, 2
add x2, sp, 136
ldr w0, [x2, x0]
sub w0, w1, w0
ldr w1, [sp, 116]
cmp w1, w0
bgt .L31
ldrsw x0, [sp, 92]
lsl x0, x0, 2
add x1, sp, 2184
ldr w2, [x1, x0]
ldrsw x0, [sp, 88]
lsl x0, x0, 2
add x1, sp, 3208
str w2, [x1, x0]
ldr w0, [sp, 88]
add w0, w0, 1
str w0, [sp, 88]
.L31:
ldr w0, [sp, 92]
add w0, w0, 1
str w0, [sp, 92]
.L30:
ldr w0, [sp, 92]
cmp w0, 255
ble .L32
ldr w0, [sp, 3208]
cmp w0, 0
ble .L33
ldr w0, [sp, 3212]
cmp w0, 0
ble .L34
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl puts
b .L35
.L34:
ldr w0, [sp, 3208]
str w0, [sp, 56]
ldr w1, [sp, 56]
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
b .L35
.L33:
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl puts
mov w0, 0
b .L55
.L35:
str wzr, [sp, 96]
b .L37
.L40:
ldr w1, [sp, 96]
ldr w0, [sp, 56]
cmp w1, w0
bge .L38
ldr w0, [sp, 4232]
add w0, w0, 1
str w0, [sp, 4232]
b .L39
.L38:
ldr w0, [sp, 5252]
add w0, w0, 1
str w0, [sp, 5252]
.L39:
ldr w0, [sp, 96]
add w0, w0, 1
str w0, [sp, 96]
.L37:
ldr w0, [sp, 96]
cmp w0, 255
ble .L40
str wzr, [sp, 100]
b .L41
.L46:
str wzr, [sp, 104]
b .L42
.L45:
ldrsw x0, [sp, 104]
ldrsw x1, [sp, 100]
lsl x1, x1, 8
add x1, x1, 135168
add x1, x1, 1168
add x1, sp, x1
add x0, x1, x0
sub x0, x0, #135168
ldrb w0, [x0, 4088]
mov w1, w0
ldr w0, [sp, 56]
cmp w0, w1
bge .L43
ldrsw x0, [sp, 104]
ldrsw x1, [sp, 100]
lsl x1, x1, 8
add x1, x1, 135168
add x1, x1, 1168
add x1, sp, x1
add x0, x1, x0
sub x0, x0, #69632
mov w1, -1
strb w1, [x0, 4088]
b .L44
.L43:
ldrsw x0, [sp, 104]
ldrsw x1, [sp, 100]
lsl x1, x1, 8
add x1, x1, 135168
add x1, x1, 1168
add x1, sp, x1
add x0, x1, x0
sub x0, x0, #69632
strb wzr, [x0, 4088]
.L44:
ldr w0, [sp, 104]
add w0, w0, 1
str w0, [sp, 104]
.L42:
ldr w0, [sp, 104]
cmp w0, 255
ble .L45
ldr w0, [sp, 100]
add w0, w0, 1
str w0, [sp, 100]
.L41:
ldr w0, [sp, 100]
cmp w0, 255
ble .L46
adrp x0, .LC7
add x1, x0, :lo12:.LC7
ldr x0, [sp, 128]
bl strcmp
cmp w0, 0
bne .L47
adrp x0, .LC8
add x1, x0, :lo12:.LC8
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl fopen
str x0, [sp, 120]
b .L48
.L47:
adrp x0, .LC8
add x1, x0, :lo12:.LC8
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl fopen
str x0, [sp, 120]
.L48:
str wzr, [sp, 108]
b .L49
.L50:
ldrsw x0, [sp, 108]
lsl x0, x0, 2
add x1, sp, 4096
add x1, x1, 136
ldr w0, [x1, x0]
mov w3, w0
ldr w2, [sp, 108]
adrp x0, .LC11
add x1, x0, :lo12:.LC11
ldr x0, [sp, 120]
bl fprintf
ldr w0, [sp, 108]
add w0, w0, 1
str w0, [sp, 108]
.L49:
ldr w0, [sp, 108]
cmp w0, 255
ble .L50
ldr x0, [sp, 120]
bl fclose
adrp x0, .LC7
add x1, x0, :lo12:.LC7
ldr x0, [sp, 128]
bl strcmp
cmp w0, 0
bne .L51
adrp x0, .LC8
add x1, x0, :lo12:.LC8
adrp x0, .LC12
add x0, x0, :lo12:.LC12
bl fopen
str x0, [sp, 120]
b .L52
.L51:
adrp x0, .LC8
add x1, x0, :lo12:.LC8
adrp x0, .LC13
add x0, x0, :lo12:.LC13
bl fopen
str x0, [sp, 120]
.L52:
add x0, sp, 69632
add x0, x0, 1160
ldr x3, [sp, 120]
mov x2, 65536
mov x1, 1
bl fwrite
ldr x0, [sp, 120]
bl fclose
adrp x0, .LC7
add x1, x0, :lo12:.LC7
ldr x0, [sp, 128]
bl strcmp
cmp w0, 0
bne .L53
adrp x0, .LC14
add x0, x0, :lo12:.LC14
bl system
b .L54
.L53:
adrp x0, .LC15
add x0, x0, :lo12:.LC15
bl system
.L54:
mov w0, 0
.L55:
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
add x3, sp, 131072
ldr x4, [x3, 5256]
ldr x2, [x0]
subs x4, x4, x2
mov x2, 0
beq .L56
bl __stack_chk_fail
.L56:
mov w0, w1
ldr x19, [sp, 16]
ldp x29, x30, [sp]
.cfi_restore 29
.cfi_restore 30
.cfi_restore 19
add sp, sp, 1168
.cfi_def_cfa_offset 135168
add sp, sp, 135168
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global vars
.bss
.align 3
.type vars, %object
.size vars, 12
vars:
.zero 12
.global atom_1_r1_1
.align 2
.type atom_1_r1_1, %object
.size atom_1_r1_1, 4
atom_1_r1_1:
.zero 4
.global atom_1_r4_0
.align 2
.type atom_1_r4_0, %object
.size atom_1_r4_0, 4
atom_1_r4_0:
.zero 4
.global atom_1_r7_1
.align 2
.type atom_1_r7_1, %object
.size atom_1_r7_1, 4
atom_1_r7_1:
.zero 4
.global atom_1_r9_0
.align 2
.type atom_1_r9_0, %object
.size atom_1_r9_0, 4
atom_1_r9_0:
.zero 4
.global atom_2_r3_0
.align 2
.type atom_2_r3_0, %object
.size atom_2_r3_0, 4
atom_2_r3_0:
.zero 4
.text
.align 2
.global t0
.type t0, %function
t0:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 24]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 56]
mov x1, 0
.L2:
adrp x0, vars
add x0, x0, :lo12:vars
str x0, [sp, 48]
mov w0, 1
str w0, [sp, 44]
ldr w0, [sp, 44]
mov w1, w0
ldr x0, [sp, 48]
stlr w1, [x0]
mov x0, 0
mov x1, x0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 56]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L4
bl __stack_chk_fail
.L4:
mov x0, x1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size t0, .-t0
.align 2
.global t1
.type t1, %function
t1:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -160]!
.cfi_def_cfa_offset 160
.cfi_offset 29, -160
.cfi_offset 30, -152
mov x29, sp
str x0, [sp, 24]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 152]
mov x1, 0
.L6:
adrp x0, vars
add x0, x0, :lo12:vars
str x0, [sp, 80]
ldr x0, [sp, 80]
ldar w0, [x0]
str w0, [sp, 36]
ldr w0, [sp, 36]
str w0, [sp, 40]
str wzr, [sp, 44]
ldr w0, [sp, 44]
add w0, w0, 1
sxtw x0, w0
lsl x1, x0, 2
adrp x0, vars
add x0, x0, :lo12:vars
add x0, x1, x0
str x0, [sp, 88]
ldr x0, [sp, 88]
ldar w0, [x0]
str w0, [sp, 36]
ldr w0, [sp, 36]
str w0, [sp, 48]
adrp x0, vars+4
add x0, x0, :lo12:vars+4
str x0, [sp, 96]
mov w0, 1
str w0, [sp, 36]
ldr w0, [sp, 36]
mov w1, w0
ldr x0, [sp, 96]
stlr w1, [x0]
adrp x0, vars+4
add x0, x0, :lo12:vars+4
str x0, [sp, 104]
ldr x0, [sp, 104]
ldar w0, [x0]
str w0, [sp, 36]
ldr w0, [sp, 36]
str w0, [sp, 52]
str wzr, [sp, 56]
ldr w0, [sp, 56]
add w0, w0, 2
sxtw x0, w0
lsl x1, x0, 2
adrp x0, vars
add x0, x0, :lo12:vars
add x0, x1, x0
str x0, [sp, 112]
ldr x0, [sp, 112]
ldar w0, [x0]
str w0, [sp, 36]
ldr w0, [sp, 36]
str w0, [sp, 60]
ldr w0, [sp, 40]
cmp w0, 1
cset w0, eq
and w0, w0, 255
str w0, [sp, 64]
adrp x0, atom_1_r1_1
add x0, x0, :lo12:atom_1_r1_1
str x0, [sp, 120]
ldr w0, [sp, 64]
str w0, [sp, 36]
ldr w0, [sp, 36]
mov w1, w0
ldr x0, [sp, 120]
stlr w1, [x0]
ldr w0, [sp, 48]
cmp w0, 0
cset w0, eq
and w0, w0, 255
str w0, [sp, 68]
adrp x0, atom_1_r4_0
add x0, x0, :lo12:atom_1_r4_0
str x0, [sp, 128]
ldr w0, [sp, 68]
str w0, [sp, 36]
ldr w0, [sp, 36]
mov w1, w0
ldr x0, [sp, 128]
stlr w1, [x0]
ldr w0, [sp, 52]
cmp w0, 1
cset w0, eq
and w0, w0, 255
str w0, [sp, 72]
adrp x0, atom_1_r7_1
add x0, x0, :lo12:atom_1_r7_1
str x0, [sp, 136]
ldr w0, [sp, 72]
str w0, [sp, 36]
ldr w0, [sp, 36]
mov w1, w0
ldr x0, [sp, 136]
stlr w1, [x0]
ldr w0, [sp, 60]
cmp w0, 0
cset w0, eq
and w0, w0, 255
str w0, [sp, 76]
adrp x0, atom_1_r9_0
add x0, x0, :lo12:atom_1_r9_0
str x0, [sp, 144]
ldr w0, [sp, 76]
str w0, [sp, 36]
ldr w0, [sp, 36]
mov w1, w0
ldr x0, [sp, 144]
stlr w1, [x0]
mov x0, 0
mov x1, x0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 152]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L8
bl __stack_chk_fail
.L8:
mov x0, x1
ldp x29, x30, [sp], 160
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size t1, .-t1
.align 2
.global t2
.type t2, %function
t2:
.LFB2:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
str x0, [sp, 24]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 72]
mov x1, 0
.L10:
adrp x0, vars+8
add x0, x0, :lo12:vars+8
str x0, [sp, 48]
mov w0, 1
str w0, [sp, 36]
ldr w0, [sp, 36]
mov w1, w0
ldr x0, [sp, 48]
stlr w1, [x0]
adrp x0, vars
add x0, x0, :lo12:vars
str x0, [sp, 56]
ldr x0, [sp, 56]
ldar w0, [x0]
str w0, [sp, 36]
ldr w0, [sp, 36]
str w0, [sp, 40]
ldr w0, [sp, 40]
cmp w0, 0
cset w0, eq
and w0, w0, 255
str w0, [sp, 44]
adrp x0, atom_2_r3_0
add x0, x0, :lo12:atom_2_r3_0
str x0, [sp, 64]
ldr w0, [sp, 44]
str w0, [sp, 36]
ldr w0, [sp, 36]
mov w1, w0
ldr x0, [sp, 64]
stlr w1, [x0]
mov x0, 0
mov x1, x0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 72]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L12
bl __stack_chk_fail
.L12:
mov x0, x1
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size t2, .-t2
.section .rodata
.align 3
.LC0:
.string "program.c"
.align 3
.LC1:
.string "0"
.text
.align 2
.global main
.type main, %function
main:
.LFB3:
.cfi_startproc
stp x29, x30, [sp, -208]!
.cfi_def_cfa_offset 208
.cfi_offset 29, -208
.cfi_offset 30, -200
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 200]
mov x1, 0
adrp x0, vars
add x0, x0, :lo12:vars
str x0, [sp, 96]
str wzr, [sp, 88]
ldr w0, [sp, 88]
mov w1, w0
ldr x0, [sp, 96]
str w1, [x0]
adrp x0, vars+4
add x0, x0, :lo12:vars+4
str x0, [sp, 104]
str wzr, [sp, 88]
ldr w0, [sp, 88]
mov w1, w0
ldr x0, [sp, 104]
str w1, [x0]
adrp x0, vars+8
add x0, x0, :lo12:vars+8
str x0, [sp, 112]
str wzr, [sp, 88]
ldr w0, [sp, 88]
mov w1, w0
ldr x0, [sp, 112]
str w1, [x0]
adrp x0, atom_1_r1_1
add x0, x0, :lo12:atom_1_r1_1
str x0, [sp, 120]
str wzr, [sp, 88]
ldr w0, [sp, 88]
mov w1, w0
ldr x0, [sp, 120]
str w1, [x0]
adrp x0, atom_1_r4_0
add x0, x0, :lo12:atom_1_r4_0
str x0, [sp, 128]
str wzr, [sp, 88]
ldr w0, [sp, 88]
mov w1, w0
ldr x0, [sp, 128]
str w1, [x0]
adrp x0, atom_1_r7_1
add x0, x0, :lo12:atom_1_r7_1
str x0, [sp, 136]
str wzr, [sp, 88]
ldr w0, [sp, 88]
mov w1, w0
ldr x0, [sp, 136]
str w1, [x0]
adrp x0, atom_1_r9_0
add x0, x0, :lo12:atom_1_r9_0
str x0, [sp, 144]
str wzr, [sp, 88]
ldr w0, [sp, 88]
mov w1, w0
ldr x0, [sp, 144]
str w1, [x0]
adrp x0, atom_2_r3_0
add x0, x0, :lo12:atom_2_r3_0
str x0, [sp, 152]
str wzr, [sp, 88]
ldr w0, [sp, 88]
mov w1, w0
ldr x0, [sp, 152]
str w1, [x0]
add x4, sp, 72
mov x3, 0
adrp x0, t0
add x2, x0, :lo12:t0
mov x1, 0
mov x0, x4
bl pthread_create
add x4, sp, 80
mov x3, 0
adrp x0, t1
add x2, x0, :lo12:t1
mov x1, 0
mov x0, x4
bl pthread_create
add x4, sp, 88
mov x3, 0
adrp x0, t2
add x2, x0, :lo12:t2
mov x1, 0
mov x0, x4
bl pthread_create
ldr x0, [sp, 72]
mov x1, 0
bl pthread_join
ldr x0, [sp, 80]
mov x1, 0
bl pthread_join
ldr x0, [sp, 88]
mov x1, 0
bl pthread_join
adrp x0, atom_1_r1_1
add x0, x0, :lo12:atom_1_r1_1
str x0, [sp, 160]
ldr x0, [sp, 160]
ldar w0, [x0]
str w0, [sp, 32]
ldr w0, [sp, 32]
str w0, [sp, 36]
adrp x0, atom_1_r4_0
add x0, x0, :lo12:atom_1_r4_0
str x0, [sp, 168]
ldr x0, [sp, 168]
ldar w0, [x0]
str w0, [sp, 32]
ldr w0, [sp, 32]
str w0, [sp, 40]
adrp x0, atom_1_r7_1
add x0, x0, :lo12:atom_1_r7_1
str x0, [sp, 176]
ldr x0, [sp, 176]
ldar w0, [x0]
str w0, [sp, 32]
ldr w0, [sp, 32]
str w0, [sp, 44]
adrp x0, atom_1_r9_0
add x0, x0, :lo12:atom_1_r9_0
str x0, [sp, 184]
ldr x0, [sp, 184]
ldar w0, [x0]
str w0, [sp, 32]
ldr w0, [sp, 32]
str w0, [sp, 48]
adrp x0, atom_2_r3_0
add x0, x0, :lo12:atom_2_r3_0
str x0, [sp, 192]
ldr x0, [sp, 192]
ldar w0, [x0]
str w0, [sp, 32]
ldr w0, [sp, 32]
str w0, [sp, 52]
ldr w1, [sp, 48]
ldr w0, [sp, 52]
and w0, w1, w0
str w0, [sp, 56]
ldr w1, [sp, 44]
ldr w0, [sp, 56]
and w0, w1, w0
str w0, [sp, 60]
ldr w1, [sp, 40]
ldr w0, [sp, 60]
and w0, w1, w0
str w0, [sp, 64]
ldr w1, [sp, 36]
ldr w0, [sp, 64]
and w0, w1, w0
str w0, [sp, 68]
ldr w0, [sp, 68]
cmp w0, 1
bne .L14
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 83
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L14:
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 200]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L16
bl __stack_chk_fail
.L16:
mov w0, w1
ldp x29, x30, [sp], 208
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE3:
.size main, .-main
.section .rodata
.align 3
.type __PRETTY_FUNCTION__.0, %object
.size __PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
.string "main"
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "(%s)"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
ldr x0, [sp, 16]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
ldr w0, [sp, 28]
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global FILE_MEMINFO
.section .rodata
.align 3
.LC0:
.string "/proc/meminfo"
.section .data.rel.local,"aw"
.align 3
.type FILE_MEMINFO, %object
.size FILE_MEMINFO, 8
FILE_MEMINFO:
.xword .LC0
.global REGEX_MEM_TOTAL
.section .rodata
.align 3
.LC1:
.string "^MemTotal"
.section .data.rel.local
.align 3
.type REGEX_MEM_TOTAL, %object
.size REGEX_MEM_TOTAL, 8
REGEX_MEM_TOTAL:
.xword .LC1
.global REGEX_MEM_AVAILABLE
.section .rodata
.align 3
.LC2:
.string "^MemFree"
.section .data.rel.local
.align 3
.type REGEX_MEM_AVAILABLE, %object
.size REGEX_MEM_AVAILABLE, 8
REGEX_MEM_AVAILABLE:
.xword .LC2
.global REGEX_SWAP_TOTAL
.section .rodata
.align 3
.LC3:
.string "^SwapTotal"
.section .data.rel.local
.align 3
.type REGEX_SWAP_TOTAL, %object
.size REGEX_SWAP_TOTAL, 8
REGEX_SWAP_TOTAL:
.xword .LC3
.global REGEX_SWAP_AVAILABLE
.section .rodata
.align 3
.LC4:
.string "^SwapFree"
.section .data.rel.local
.align 3
.type REGEX_SWAP_AVAILABLE, %object
.size REGEX_SWAP_AVAILABLE, 8
REGEX_SWAP_AVAILABLE:
.xword .LC4
.section .rodata
.align 3
.LC5:
.string " "
.text
.align 2
.global read_stat
.type read_stat, %function
read_stat:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -144]!
.cfi_def_cfa_offset 144
.cfi_offset 29, -144
.cfi_offset 30, -136
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str x2, [sp, 24]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 136]
mov x1, 0
add x0, sp, 72
mov w2, 0
ldr x1, [sp, 32]
bl regcomp
add x0, sp, 72
mov w4, 0
mov x3, 0
mov x2, 0
ldr x1, [sp, 40]
bl regexec
cmp w0, 0
bne .L7
adrp x0, .LC5
add x1, x0, :lo12:.LC5
ldr x0, [sp, 40]
bl strtok
str x0, [sp, 56]
str wzr, [sp, 52]
b .L3
.L5:
ldr w0, [sp, 52]
cmp w0, 1
bne .L4
mov w2, 10
mov x1, 0
ldr x0, [sp, 56]
bl strtol
str x0, [sp, 64]
ldr x0, [sp, 64]
cmp x0, 0
ble .L4
ldr x0, [sp, 24]
ldr x1, [sp, 64]
str x1, [x0]
.L4:
adrp x0, .LC5
add x1, x0, :lo12:.LC5
mov x0, 0
bl strtok
str x0, [sp, 56]
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
.L3:
ldr x0, [sp, 56]
cmp x0, 0
bne .L5
.L7:
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 136]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L6
bl __stack_chk_fail
.L6:
ldp x29, x30, [sp], 144
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size read_stat, .-read_stat
.align 2
.global calc_percent
.type calc_percent, %function
calc_percent:
.LFB7:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
ldr x0, [sp, 8]
ldr d0, [x0, 8]
scvtf d0, d0
mov x0, 4636737291354636288
fmov d1, x0
fmul d1, d0, d1
ldr x0, [sp, 8]
ldr d0, [x0]
scvtf d0, d0
fdiv d0, d1, d0
mov x0, 4636737291354636288
fmov d1, x0
fsub d0, d1, d0
ldr x0, [sp, 8]
str d0, [x0, 16]
nop
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size calc_percent, .-calc_percent
.section .rodata
.align 3
.LC6:
.string "r"
.text
.align 2
.global read_mem
.type read_mem, %function
read_mem:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 72]
mov x1, 0
adrp x0, FILE_MEMINFO
add x0, x0, :lo12:FILE_MEMINFO
ldr x2, [x0]
adrp x0, .LC6
add x1, x0, :lo12:.LC6
mov x0, x2
bl fopen
str x0, [sp, 56]
ldr x0, [sp, 56]
cmp x0, 0
beq .L14
str xzr, [sp, 48]
b .L11
.L12:
ldr x3, [sp, 48]
adrp x0, REGEX_MEM_TOTAL
add x0, x0, :lo12:REGEX_MEM_TOTAL
ldr x0, [x0]
ldr x1, [sp, 24]
mov x2, x1
mov x1, x0
mov x0, x3
bl read_stat
ldr x3, [sp, 48]
adrp x0, REGEX_MEM_AVAILABLE
add x0, x0, :lo12:REGEX_MEM_AVAILABLE
ldr x1, [x0]
ldr x0, [sp, 24]
add x0, x0, 8
mov x2, x0
mov x0, x3
bl read_stat
ldr x3, [sp, 48]
adrp x0, REGEX_SWAP_TOTAL
add x0, x0, :lo12:REGEX_SWAP_TOTAL
ldr x0, [x0]
ldr x1, [sp, 16]
mov x2, x1
mov x1, x0
mov x0, x3
bl read_stat
ldr x3, [sp, 48]
adrp x0, REGEX_SWAP_AVAILABLE
add x0, x0, :lo12:REGEX_SWAP_AVAILABLE
ldr x1, [x0]
ldr x0, [sp, 16]
add x0, x0, 8
mov x2, x0
mov x0, x3
bl read_stat
ldr x0, [sp, 24]
bl calc_percent
ldr x0, [sp, 16]
bl calc_percent
.L11:
add x1, sp, 40
add x0, sp, 48
ldr x2, [sp, 56]
bl getline
str x0, [sp, 64]
ldr x0, [sp, 64]
cmn x0, #1
bne .L12
ldr x0, [sp, 48]
bl free
ldr x0, [sp, 56]
bl fclose
.L14:
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 72]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L13
bl __stack_chk_fail
.L13:
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size read_mem, .-read_mem
.section .rodata
.align 3
.LC7:
.string "[{\"type\":\"memory\",\"percent\":\"%.0f\"},{\"type\":\"swap\",\"percent\":\"%.0f\"}]\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB9:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 72]
mov x1, 0
str xzr, [sp, 24]
str xzr, [sp, 32]
str xzr, [sp, 48]
str xzr, [sp, 56]
add x1, sp, 48
add x0, sp, 24
bl read_mem
ldr d0, [sp, 40]
ldr d1, [sp, 64]
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl printf
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 72]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L17
bl __stack_chk_fail
.L17:
mov w0, w1
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "r"
.align 3
.LC1:
.string "ls"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -112]!
.cfi_def_cfa_offset 112
.cfi_offset 29, -112
.cfi_offset 30, -104
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 104]
mov x1, 0
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl popen
str x0, [sp, 40]
add x0, sp, 48
ldr x3, [sp, 40]
mov x2, 50
mov x1, 1
bl fread
add x0, sp, 48
bl puts
ldr x0, [sp, 40]
bl pclose
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 104]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L3
bl __stack_chk_fail
.L3:
mov w0, w1
ldp x29, x30, [sp], 112
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global maxProfit
.type maxProfit, %function
maxProfit:
.LFB0:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str w1, [sp, 4]
ldr w0, [sp, 4]
cmp w0, 1
bgt .L2
mov w0, 0
b .L3
.L2:
ldr w0, [sp, 4]
sub w0, w0, #2
str w0, [sp, 20]
ldr w0, [sp, 4]
sub w0, w0, #1
str w0, [sp, 24]
ldr w0, [sp, 24]
str w0, [sp, 28]
ldr w0, [sp, 4]
sub w0, w0, #2
str w0, [sp, 16]
b .L4
.L7:
ldrsw x0, [sp, 28]
lsl x0, x0, 2
ldr x1, [sp, 8]
add x0, x1, x0
ldr w1, [x0]
ldrsw x0, [sp, 16]
lsl x0, x0, 2
ldr x2, [sp, 8]
add x0, x2, x0
ldr w0, [x0]
sub w1, w1, w0
ldrsw x0, [sp, 24]
lsl x0, x0, 2
ldr x2, [sp, 8]
add x0, x2, x0
ldr w2, [x0]
ldrsw x0, [sp, 20]
lsl x0, x0, 2
ldr x3, [sp, 8]
add x0, x3, x0
ldr w0, [x0]
sub w0, w2, w0
cmp w1, w0
ble .L5
ldr w0, [sp, 16]
str w0, [sp, 20]
ldr w0, [sp, 28]
str w0, [sp, 24]
.L5:
ldrsw x0, [sp, 16]
lsl x0, x0, 2
ldr x1, [sp, 8]
add x0, x1, x0
ldr w1, [x0]
ldrsw x0, [sp, 28]
lsl x0, x0, 2
ldr x2, [sp, 8]
add x0, x2, x0
ldr w0, [x0]
cmp w1, w0
ble .L6
ldr w0, [sp, 16]
str w0, [sp, 28]
.L6:
ldr w0, [sp, 16]
sub w0, w0, #1
str w0, [sp, 16]
.L4:
ldr w0, [sp, 16]
cmp w0, 0
bge .L7
ldrsw x0, [sp, 24]
lsl x0, x0, 2
ldr x1, [sp, 8]
add x0, x1, x0
ldr w1, [x0]
ldrsw x0, [sp, 20]
lsl x0, x0, 2
ldr x2, [sp, 8]
add x0, x2, x0
ldr w0, [x0]
cmp w1, w0
ble .L8
ldrsw x0, [sp, 24]
lsl x0, x0, 2
ldr x1, [sp, 8]
add x0, x1, x0
ldr w1, [x0]
ldrsw x0, [sp, 20]
lsl x0, x0, 2
ldr x2, [sp, 8]
add x0, x2, x0
ldr w0, [x0]
sub w0, w1, w0
b .L3
.L8:
mov w0, 0
.L3:
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size maxProfit, .-maxProfit
.section .rodata
.align 3
.LC1:
.string "%d\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 40]
mov x1, 0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
add x2, sp, 16
mov x3, x0
ldp x0, x1, [x3]
stp x0, x1, [x2]
ldr w0, [x3, 16]
str w0, [x2, 16]
add x0, sp, 16
mov w1, 5
bl maxProfit
mov w1, w0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 40]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L12
bl __stack_chk_fail
.L12:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size main, .-main
.section .rodata
.align 3
.LC0:
.word 5
.word 1
.word 4
.word 7
.word 24
.text
``` |