text
stringlengths 197
24.1M
|
---|
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global act
.bss
.align 3
.type act, %object
.size act, 152
act:
.zero 152
.text
.align 2
.global sig_handler
.type sig_handler, %function
sig_handler:
.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]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 40]
mov x1, 0
ldr w0, [sp, 28]
cmp w0, 14
beq .L5
ldr w0, [sp, 28]
cmp w0, 17
bne .L6
add x0, sp, 36
bl wait
b .L3
.L5:
nop
.L3:
.L6:
nop
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 .L4
bl __stack_chk_fail
.L4:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size sig_handler, .-sig_handler
.section .rodata
.align 3
.LC0:
.string "Timeout--too much delay!\n"
.align 3
.LC1:
.string "ECHO: "
.align 3
.LC2:
.string "bye\r"
.align 3
.LC3:
.string "SigAction--can't install timeout"
.align 3
.LC4:
.string "Connection timed out\n"
.align 3
.LC5:
.string "Recv"
.text
.align 2
.global child
.type child, %function
child:
.LFB7:
.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]
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
str x0, [sp, 40]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
str x0, [sp, 48]
adrp x0, .LC2
add x0, x0, :lo12:.LC2
str x0, [sp, 56]
adrp x0, act
add x0, x0, :lo12:act
mov w1, -2147483648
str w1, [x0, 136]
mov x2, 0
adrp x0, act
add x1, x0, :lo12:act
mov w0, 14
bl sigaction
cmp w0, 0
bge .L8
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl perror
bl abort
.L8:
mov w0, 5
bl alarm
add x0, sp, 64
mov w3, 0
mov x2, 100
mov x1, x0
ldr w0, [sp, 28]
bl recv
str w0, [sp, 36]
ldr w0, [sp, 36]
cmp w0, 0
bge .L9
bl __errno_location
ldr w0, [x0]
cmp w0, 4
bne .L10
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 21
mov x1, 1
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl fwrite
ldr x0, [sp, 40]
bl strlen
mov w3, 0
mov x2, x0
ldr x1, [sp, 40]
ldr w0, [sp, 28]
bl send
ldr w0, [sp, 28]
bl close
mov w0, 0
bl exit
.L10:
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl perror
.L9:
ldr x0, [sp, 48]
bl strlen
mov w3, 0
mov x2, x0
ldr x1, [sp, 48]
ldr w0, [sp, 28]
bl send
ldrsw x1, [sp, 36]
add x0, sp, 64
mov w3, 0
mov x2, x1
mov x1, x0
ldr w0, [sp, 28]
bl send
ldr w0, [sp, 36]
cmp w0, 0
ble .L11
ldr x0, [sp, 56]
bl strlen
mov x1, x0
add x0, sp, 64
mov x2, x1
mov x1, x0
ldr x0, [sp, 56]
bl strncmp
cmp w0, 0
bne .L8
.L11:
ldr w0, [sp, 28]
bl close
mov w0, 0
bl exit
.cfi_endproc
.LFE7:
.size child, .-child
.section .rodata
.align 3
.LC6:
.string "Usage: timeout-server <portnum>"
.align 3
.LC7:
.string "SigAction--can't install sigchild"
.align 3
.LC8:
.string "Socket"
.align 3
.LC9:
.string "Bind"
.align 3
.LC10:
.string "Listen"
.align 3
.LC11:
.string "%s:%d connected\n"
.align 3
.LC12:
.string "Accept"
.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, 1
bgt .L14
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl puts
mov w0, 0
bl exit
.L14:
adrp x0, act
add x0, x0, :lo12:act
movi v0.4s, 0
stp q0, q0, [x0]
stp q0, q0, [x0, 32]
stp q0, q0, [x0, 64]
stp q0, q0, [x0, 96]
str q0, [x0, 128]
fmov x1, d0
str x1, [x0, 144]
adrp x0, act
add x0, x0, :lo12:act
adrp x1, sig_handler
add x1, x1, :lo12:sig_handler
str x1, [x0]
adrp x0, act
add x0, x0, :lo12:act
mov w1, 268435456
str w1, [x0, 136]
mov x2, 0
adrp x0, act
add x1, x0, :lo12:act
mov w0, 17
bl sigaction
cmp w0, 0
bge .L15
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl perror
bl abort
.L15:
mov w2, 0
mov w1, 1
mov w0, 2
bl socket
str w0, [sp, 64]
ldr w0, [sp, 64]
cmp w0, 0
bge .L16
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl perror
bl abort
.L16:
add x0, sp, 72
stp xzr, xzr, [x0]
mov w0, 2
strh w0, [sp, 72]
ldr x0, [sp, 32]
add x0, x0, 8
ldr x0, [x0]
bl atoi
and w0, w0, 65535
bl htons
and w0, w0, 65535
strh w0, [sp, 74]
str wzr, [sp, 76]
add x0, sp, 72
mov w2, 16
mov x1, x0
ldr w0, [sp, 64]
bl bind
cmp w0, 0
bge .L17
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl perror
bl abort
.L17:
mov w1, 20
ldr w0, [sp, 64]
bl listen
cmp w0, 0
bge .L18
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl perror
bl abort
.L18:
mov w0, 16
str w0, [sp, 60]
add x1, sp, 60
add x0, sp, 72
mov x2, x1
mov x1, x0
ldr w0, [sp, 64]
bl accept
str w0, [sp, 68]
ldr w0, [sp, 68]
cmp w0, 0
ble .L19
ldr w0, [sp, 76]
bl inet_ntoa
mov x19, x0
ldrh w0, [sp, 74]
bl ntohs
and w0, w0, 65535
mov w2, w0
mov x1, x19
adrp x0, .LC11
add x0, x0, :lo12:.LC11
bl printf
bl fork
cmp w0, 0
bne .L20
ldr w0, [sp, 68]
bl child
b .L18
.L20:
ldr w0, [sp, 68]
bl close
b .L18
.L19:
adrp x0, .LC12
add x0, x0, :lo12:.LC12
bl perror
b .L18
.cfi_endproc
.LFE8:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "r"
.align 3
.LC1:
.string "input.txt"
.align 3
.LC2:
.string "optab.txt"
.align 3
.LC3:
.string "w"
.align 3
.LC4:
.string "symtbl.txt"
.align 3
.LC5:
.string "out.txt"
.align 3
.LC6:
.string "%s\t%s\t%s"
.align 3
.LC7:
.string "START"
.align 3
.LC8:
.string "\t%s\t%s\t%s\n"
.align 3
.LC9:
.string "%d\t"
.align 3
.LC10:
.string "**"
.align 3
.LC11:
.string "%s\t%d\n"
.align 3
.LC12:
.string "%s\t%s"
.align 3
.LC13:
.string "END"
.align 3
.LC14:
.string "WORD"
.align 3
.LC15:
.string "RESW"
.align 3
.LC16:
.string "RESB"
.align 3
.LC17:
.string "BYTE"
.align 3
.LC18:
.string "%s\t%s\t%s\t\n"
.align 3
.LC19:
.string "%d\t%s\t%s\t%s\n"
.align 3
.LC20:
.string "The length of the code : %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
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 152]
mov x1, 0
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl fopen
str x0, [sp, 40]
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl fopen
str x0, [sp, 48]
adrp x0, .LC3
add x1, x0, :lo12:.LC3
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl fopen
str x0, [sp, 56]
adrp x0, .LC3
add x1, x0, :lo12:.LC3
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl fopen
str x0, [sp, 64]
add x2, sp, 88
add x1, sp, 72
add x0, sp, 104
mov x4, x2
mov x3, x1
mov x2, x0
adrp x0, .LC6
add x1, x0, :lo12:.LC6
ldr x0, [sp, 40]
bl __isoc99_fscanf
add x2, sp, 72
adrp x0, .LC7
add x1, x0, :lo12:.LC7
mov x0, x2
bl strcmp
cmp w0, 0
bne .L2
add x0, sp, 88
bl atoi
str w0, [sp, 32]
ldr w0, [sp, 32]
str w0, [sp, 28]
add x2, sp, 88
add x1, sp, 72
add x0, sp, 104
mov x4, x2
mov x3, x1
mov x2, x0
adrp x0, .LC8
add x1, x0, :lo12:.LC8
ldr x0, [sp, 64]
bl fprintf
add x2, sp, 88
add x1, sp, 72
add x0, sp, 104
mov x4, x2
mov x3, x1
mov x2, x0
adrp x0, .LC6
add x1, x0, :lo12:.LC6
ldr x0, [sp, 40]
bl __isoc99_fscanf
b .L4
.L2:
str wzr, [sp, 28]
b .L4
.L14:
ldr w2, [sp, 28]
adrp x0, .LC9
add x1, x0, :lo12:.LC9
ldr x0, [sp, 64]
bl fprintf
add x2, sp, 104
adrp x0, .LC10
add x1, x0, :lo12:.LC10
mov x0, x2
bl strcmp
cmp w0, 0
beq .L5
add x0, sp, 104
ldr w3, [sp, 28]
mov x2, x0
adrp x0, .LC11
add x1, x0, :lo12:.LC11
ldr x0, [sp, 56]
bl fprintf
.L5:
add x1, sp, 136
add x0, sp, 120
mov x3, x1
mov x2, x0
adrp x0, .LC12
add x1, x0, :lo12:.LC12
ldr x0, [sp, 48]
bl __isoc99_fscanf
b .L6
.L9:
add x1, sp, 120
add x0, sp, 72
bl strcmp
cmp w0, 0
bne .L7
ldr w0, [sp, 28]
add w0, w0, 3
str w0, [sp, 28]
b .L8
.L7:
add x1, sp, 136
add x0, sp, 120
mov x3, x1
mov x2, x0
adrp x0, .LC12
add x1, x0, :lo12:.LC12
ldr x0, [sp, 48]
bl __isoc99_fscanf
.L6:
add x2, sp, 120
adrp x0, .LC13
add x1, x0, :lo12:.LC13
mov x0, x2
bl strcmp
cmp w0, 0
bne .L9
.L8:
add x2, sp, 72
adrp x0, .LC14
add x1, x0, :lo12:.LC14
mov x0, x2
bl strcmp
cmp w0, 0
bne .L10
ldr w0, [sp, 28]
add w0, w0, 3
str w0, [sp, 28]
b .L11
.L10:
add x2, sp, 72
adrp x0, .LC15
add x1, x0, :lo12:.LC15
mov x0, x2
bl strcmp
cmp w0, 0
bne .L12
add x0, sp, 88
bl atoi
mov w1, w0
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
ldr w1, [sp, 28]
add w0, w1, w0
str w0, [sp, 28]
b .L11
.L12:
add x2, sp, 72
adrp x0, .LC16
add x1, x0, :lo12:.LC16
mov x0, x2
bl strcmp
cmp w0, 0
bne .L13
add x0, sp, 88
bl atoi
mov w1, w0
ldr w0, [sp, 28]
add w0, w0, w1
str w0, [sp, 28]
b .L11
.L13:
add x2, sp, 72
adrp x0, .LC17
add x1, x0, :lo12:.LC17
mov x0, x2
bl strcmp
cmp w0, 0
bne .L11
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L11:
add x2, sp, 88
add x1, sp, 72
add x0, sp, 104
mov x4, x2
mov x3, x1
mov x2, x0
adrp x0, .LC18
add x1, x0, :lo12:.LC18
ldr x0, [sp, 64]
bl fprintf
add x2, sp, 88
add x1, sp, 72
add x0, sp, 104
mov x4, x2
mov x3, x1
mov x2, x0
adrp x0, .LC6
add x1, x0, :lo12:.LC6
ldr x0, [sp, 40]
bl __isoc99_fscanf
.L4:
add x2, sp, 72
adrp x0, .LC13
add x1, x0, :lo12:.LC13
mov x0, x2
bl strcmp
cmp w0, 0
bne .L14
add x2, sp, 88
add x1, sp, 72
add x0, sp, 104
mov x5, x2
mov x4, x1
mov x3, x0
ldr w2, [sp, 28]
adrp x0, .LC19
add x1, x0, :lo12:.LC19
ldr x0, [sp, 64]
bl fprintf
ldr w1, [sp, 28]
ldr w0, [sp, 32]
sub w0, w1, w0
str w0, [sp, 36]
ldr w1, [sp, 36]
adrp x0, .LC20
add x0, x0, :lo12:.LC20
bl printf
ldr x0, [sp, 40]
bl fclose
ldr x0, [sp, 48]
bl fclose
ldr x0, [sp, 56]
bl fclose
ldr x0, [sp, 64]
bl fclose
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 152]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L15
bl __stack_chk_fail
.L15:
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 "%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
str w0, [sp, 28]
str x1, [sp, 16]
nop
.L3:
ldr w0, [sp, 28]
cmp w0, 10
bgt .L2
ldr w1, [sp, 28]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
cmp w0, 0
beq .L2
ldr w0, [sp, 28]
add w1, w0, 1
str w1, [sp, 28]
cmp w0, 0
bne .L3
.L2:
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 "%ld"
.align 3
.LC1:
.string "%d"
.text
.align 2
.global create
.type create, %function
create:
.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 w0, [sp, 28]
str xzr, [sp, 40]
str xzr, [sp, 56]
str xzr, [sp, 48]
mov w0, 1
str w0, [sp, 36]
b .L2
.L5:
mov x0, 24
bl malloc
str x0, [sp, 56]
ldr x0, [sp, 56]
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
ldr x0, [sp, 56]
add x0, x0, 8
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
ldr x0, [sp, 56]
str xzr, [x0, 16]
ldr w0, [sp, 36]
cmp w0, 1
bne .L3
ldr x0, [sp, 56]
str x0, [sp, 40]
b .L4
.L3:
ldr x0, [sp, 48]
ldr x1, [sp, 56]
str x1, [x0, 16]
.L4:
ldr x0, [sp, 56]
str x0, [sp, 48]
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L2:
ldr w1, [sp, 36]
ldr w0, [sp, 28]
cmp w1, w0
ble .L5
ldr x0, [sp, 40]
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size create, .-create
.align 2
.global reverse
.type reverse, %function
reverse:
.LFB1:
.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]
mov x0, 24
bl malloc
str x0, [sp, 48]
ldr x0, [sp, 48]
str xzr, [x0, 16]
ldr x0, [sp, 24]
cmp x0, 0
bne .L8
mov x0, 0
b .L9
.L8:
ldr x0, [sp, 24]
str x0, [sp, 40]
b .L10
.L11:
mov x0, 24
bl malloc
str x0, [sp, 56]
ldr x0, [sp, 40]
ldr x1, [x0]
ldr x0, [sp, 56]
str x1, [x0]
ldr x0, [sp, 40]
ldr w1, [x0, 8]
ldr x0, [sp, 56]
str w1, [x0, 8]
ldr x0, [sp, 48]
ldr x1, [x0, 16]
ldr x0, [sp, 56]
str x1, [x0, 16]
ldr x0, [sp, 48]
ldr x1, [sp, 56]
str x1, [x0, 16]
ldr x0, [sp, 40]
ldr x0, [x0, 16]
str x0, [sp, 40]
.L10:
ldr x0, [sp, 40]
cmp x0, 0
bne .L11
ldr x0, [sp, 48]
ldr x0, [x0, 16]
.L9:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size reverse, .-reverse
.section .rodata
.align 3
.LC2:
.string "%8ld%8d"
.text
.align 2
.global print
.type print, %function
print:
.LFB2:
.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]
b .L13
.L14:
ldr x0, [sp, 40]
ldr x1, [x0]
ldr x0, [sp, 40]
ldr w0, [x0, 8]
mov w2, w0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
ldr x0, [sp, 40]
ldr x0, [x0, 16]
str x0, [sp, 40]
mov w0, 10
bl putchar
.L13:
ldr x0, [sp, 40]
cmp x0, 0
bne .L14
nop
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size print, .-print
.align 2
.global main
.type main, %function
main:
.LFB3:
.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, 28
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
ldr w0, [sp, 28]
bl create
str x0, [sp, 32]
ldr x0, [sp, 32]
bl print
ldr x0, [sp, 32]
bl reverse
str x0, [sp, 32]
ldr x0, [sp, 32]
bl print
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 .L17
bl __stack_chk_fail
.L17:
mov w0, w1
ldp x29, x30, [sp], 48
.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
.local u
.comm u,80,16
.global A
.data
.type A, %object
.size A, 1
A:
.byte 65
.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 wzr, [sp, 20]
b .L2
.L37:
mov w0, 1
str w0, [sp, 24]
b .L3
.L36:
str wzr, [sp, 28]
b .L4
.L5:
adrp x0, u
add x1, x0, :lo12:u
ldrsw x0, [sp, 28]
mov w2, 97
strb w2, [x1, x0]
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L4:
ldr w0, [sp, 28]
cmp w0, 79
bls .L5
ldrsw x1, [sp, 20]
adrp x0, u
add x0, x0, :lo12:u
add x0, x1, x0
ldrsw x1, [sp, 24]
mov x2, x1
mov w1, 0
bl memset
str x0, [sp, 40]
ldrsw x1, [sp, 20]
adrp x0, u
add x0, x0, :lo12:u
add x0, x1, x0
ldr x1, [sp, 40]
cmp x1, x0
beq .L6
bl abort
.L6:
adrp x0, u
add x0, x0, :lo12:u
str x0, [sp, 32]
str wzr, [sp, 28]
b .L7
.L9:
ldr x0, [sp, 32]
ldrb w0, [x0]
cmp w0, 97
beq .L8
bl abort
.L8:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
ldr x0, [sp, 32]
add x0, x0, 1
str x0, [sp, 32]
.L7:
ldr w1, [sp, 28]
ldr w0, [sp, 20]
cmp w1, w0
blt .L9
str wzr, [sp, 28]
b .L10
.L12:
ldr x0, [sp, 32]
ldrb w0, [x0]
cmp w0, 0
beq .L11
bl abort
.L11:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
ldr x0, [sp, 32]
add x0, x0, 1
str x0, [sp, 32]
.L10:
ldr w1, [sp, 28]
ldr w0, [sp, 24]
cmp w1, w0
blt .L12
str wzr, [sp, 28]
b .L13
.L15:
ldr x0, [sp, 32]
ldrb w0, [x0]
cmp w0, 97
beq .L14
bl abort
.L14:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
ldr x0, [sp, 32]
add x0, x0, 1
str x0, [sp, 32]
.L13:
ldr w0, [sp, 28]
cmp w0, 7
bls .L15
ldrsw x1, [sp, 20]
adrp x0, u
add x0, x0, :lo12:u
add x3, x1, x0
adrp x0, A
add x0, x0, :lo12:A
ldrb w0, [x0]
mov w1, w0
ldrsw x0, [sp, 24]
mov x2, x0
mov x0, x3
bl memset
str x0, [sp, 40]
ldrsw x1, [sp, 20]
adrp x0, u
add x0, x0, :lo12:u
add x0, x1, x0
ldr x1, [sp, 40]
cmp x1, x0
beq .L16
bl abort
.L16:
adrp x0, u
add x0, x0, :lo12:u
str x0, [sp, 32]
str wzr, [sp, 28]
b .L17
.L19:
ldr x0, [sp, 32]
ldrb w0, [x0]
cmp w0, 97
beq .L18
bl abort
.L18:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
ldr x0, [sp, 32]
add x0, x0, 1
str x0, [sp, 32]
.L17:
ldr w1, [sp, 28]
ldr w0, [sp, 20]
cmp w1, w0
blt .L19
str wzr, [sp, 28]
b .L20
.L22:
ldr x0, [sp, 32]
ldrb w0, [x0]
cmp w0, 65
beq .L21
bl abort
.L21:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
ldr x0, [sp, 32]
add x0, x0, 1
str x0, [sp, 32]
.L20:
ldr w1, [sp, 28]
ldr w0, [sp, 24]
cmp w1, w0
blt .L22
str wzr, [sp, 28]
b .L23
.L25:
ldr x0, [sp, 32]
ldrb w0, [x0]
cmp w0, 97
beq .L24
bl abort
.L24:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
ldr x0, [sp, 32]
add x0, x0, 1
str x0, [sp, 32]
.L23:
ldr w0, [sp, 28]
cmp w0, 7
bls .L25
ldrsw x1, [sp, 20]
adrp x0, u
add x0, x0, :lo12:u
add x0, x1, x0
ldrsw x1, [sp, 24]
mov x2, x1
mov w1, 66
bl memset
str x0, [sp, 40]
ldrsw x1, [sp, 20]
adrp x0, u
add x0, x0, :lo12:u
add x0, x1, x0
ldr x1, [sp, 40]
cmp x1, x0
beq .L26
bl abort
.L26:
adrp x0, u
add x0, x0, :lo12:u
str x0, [sp, 32]
str wzr, [sp, 28]
b .L27
.L29:
ldr x0, [sp, 32]
ldrb w0, [x0]
cmp w0, 97
beq .L28
bl abort
.L28:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
ldr x0, [sp, 32]
add x0, x0, 1
str x0, [sp, 32]
.L27:
ldr w1, [sp, 28]
ldr w0, [sp, 20]
cmp w1, w0
blt .L29
str wzr, [sp, 28]
b .L30
.L32:
ldr x0, [sp, 32]
ldrb w0, [x0]
cmp w0, 66
beq .L31
bl abort
.L31:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
ldr x0, [sp, 32]
add x0, x0, 1
str x0, [sp, 32]
.L30:
ldr w1, [sp, 28]
ldr w0, [sp, 24]
cmp w1, w0
blt .L32
str wzr, [sp, 28]
b .L33
.L35:
ldr x0, [sp, 32]
ldrb w0, [x0]
cmp w0, 97
beq .L34
bl abort
.L34:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
ldr x0, [sp, 32]
add x0, x0, 1
str x0, [sp, 32]
.L33:
ldr w0, [sp, 28]
cmp w0, 7
bls .L35
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L3:
ldr w0, [sp, 24]
cmp w0, 63
bls .L36
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
.L2:
ldr w0, [sp, 20]
cmp w0, 7
bls .L37
mov w0, 0
bl exit
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string " ---------|---------|---------|"
.align 3
.LC1:
.string "Input the divised real number:"
.align 3
.LC2:
.string "%s"
.align 3
.LC3:
.string "Input the divisor real number:"
.align 3
.LC4:
.string "Result: "
.align 3
.LC5:
.string "0"
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -240]!
.cfi_def_cfa_offset 240
.cfi_offset 29, -240
.cfi_offset 30, -232
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 232]
mov x1, 0
add x0, sp, 168
bl ident_buf
add x0, sp, 24
bl ident_num
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
add x0, sp, 168
mov x1, x0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl __isoc99_scanf
add x1, sp, 168
add x0, sp, 24
bl num_reconstruct
str w0, [sp, 20]
ldr w0, [sp, 20]
bl valid_check
cmp w0, 1
bne .L2
mov w0, 1
b .L9
.L2:
add x0, sp, 168
bl ident_buf
add x0, sp, 72
bl ident_num
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
add x0, sp, 168
mov x1, x0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl __isoc99_scanf
add x1, sp, 168
add x0, sp, 72
bl num_reconstruct
str w0, [sp, 20]
ldr w0, [sp, 20]
bl valid_check
cmp w0, 1
bne .L4
mov w0, 1
b .L9
.L4:
add x0, sp, 72
add x0, x0, 6
ldrb w0, [x0]
cmp w0, 0
bne .L5
mov w0, 6
str w0, [sp, 20]
.L5:
ldr w0, [sp, 20]
bl valid_check
cmp w0, 1
bne .L6
mov w0, 1
b .L9
.L6:
add x0, sp, 24
add x0, x0, 6
ldrb w0, [x0]
cmp w0, 0
bne .L7
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl puts
mov w0, 0
b .L9
.L7:
add x0, sp, 120
bl ident_num
add x2, sp, 120
add x1, sp, 72
add x0, sp, 24
bl my_division
str w0, [sp, 20]
ldr w0, [sp, 20]
bl valid_check
cmp w0, 1
bne .L8
mov w0, 1
b .L9
.L8:
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
add x0, sp, 120
bl num_out
mov w0, 0
.L9:
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 .L10
bl __stack_chk_fail
.L10:
mov w0, w1
ldp x29, x30, [sp], 240
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
.align 2
.global ident_num
.type ident_num, %function
ident_num:
.LFB7:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str wzr, [sp, 28]
b .L12
.L13:
ldr x1, [sp, 8]
ldrsw x0, [sp, 28]
add x0, x1, x0
strb wzr, [x0, 6]
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L12:
ldr w0, [sp, 28]
cmp w0, 34
ble .L13
ldr x0, [sp, 8]
str wzr, [x0]
ldr x0, [sp, 8]
strh wzr, [x0, 4]
nop
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size ident_num, .-ident_num
.align 2
.global ident_buf
.type ident_buf, %function
ident_buf:
.LFB8:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str wzr, [sp, 28]
b .L15
.L16:
ldrsw x0, [sp, 28]
ldr x1, [sp, 8]
add x0, x1, x0
strb wzr, [x0]
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L15:
ldr w0, [sp, 28]
cmp w0, 59
ble .L16
nop
nop
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size ident_buf, .-ident_buf
.section .rodata
.align 3
.LC6:
.string "0.%se%d\n"
.text
.align 2
.global num_out
.type num_out, %function
num_out:
.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 x0, [sp, 24]
ldr x0, [sp, 24]
ldrsh w0, [x0, 4]
cmp w0, 0
ble .L18
mov w0, 43
bl putchar
b .L19
.L18:
mov w0, 45
bl putchar
.L19:
ldr x0, [sp, 24]
add x1, x0, 6
ldr x0, [sp, 24]
ldr w0, [x0]
mov w2, w0
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl printf
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size num_out, .-num_out
.section .rodata
.align 3
.LC7:
.string "Overflow!"
.align 3
.LC8:
.string "Non valid symbol!"
.align 3
.LC9:
.string "Wrong number format!"
.align 3
.LC10:
.string "Mantissa overflow!"
.align 3
.LC11:
.string "Division by zero!"
.align 3
.LC12:
.string "Real number inputed!"
.text
.align 2
.global valid_check
.type valid_check, %function
valid_check:
.LFB10:
.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 w0, [sp, 28]
cmp w0, 2
bne .L21
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl puts
mov w0, 1
b .L22
.L21:
ldr w0, [sp, 28]
cmp w0, 3
bne .L23
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl puts
mov w0, 1
b .L22
.L23:
ldr w0, [sp, 28]
cmp w0, 5
bne .L24
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl puts
mov w0, 1
b .L22
.L24:
ldr w0, [sp, 28]
cmp w0, 7
bne .L25
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl puts
mov w0, 1
b .L22
.L25:
ldr w0, [sp, 28]
cmp w0, 6
bne .L26
adrp x0, .LC11
add x0, x0, :lo12:.LC11
bl puts
mov w0, 1
b .L22
.L26:
ldr w0, [sp, 28]
cmp w0, 8
bne .L27
adrp x0, .LC12
add x0, x0, :lo12:.LC12
bl puts
mov w0, 1
b .L22
.L27:
mov w0, 0
.L22:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size valid_check, .-valid_check
.align 2
.global num_reconstruct
.type num_reconstruct, %function
num_reconstruct:
.LFB11:
.cfi_startproc
stp x29, x30, [sp, -160]!
.cfi_def_cfa_offset 160
.cfi_offset 29, -160
.cfi_offset 30, -152
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -144
str x0, [sp, 40]
str x1, [sp, 32]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 152]
mov x1, 0
add x0, sp, 88
bl ident_buf
str wzr, [sp, 56]
str wzr, [sp, 60]
str wzr, [sp, 64]
str wzr, [sp, 68]
str wzr, [sp, 72]
mov w0, -1
str w0, [sp, 76]
ldrsw x0, [sp, 56]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 45
bne .L29
ldr x0, [sp, 40]
mov w1, -1
strh w1, [x0, 4]
mov w0, 1
str w0, [sp, 72]
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
b .L30
.L29:
ldrsw x0, [sp, 56]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 43
bne .L31
ldr x0, [sp, 40]
mov w1, 1
strh w1, [x0, 4]
mov w0, 1
str w0, [sp, 72]
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
b .L30
.L31:
ldr x0, [sp, 40]
mov w1, 1
strh w1, [x0, 4]
.L30:
ldrsw x0, [sp, 56]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 48
bls .L34
ldrsw x0, [sp, 56]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 57
bls .L34
ldrsw x0, [sp, 56]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 46
beq .L34
mov w0, 3
b .L58
.L39:
ldrsw x0, [sp, 56]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 47
bls .L35
ldrsw x0, [sp, 56]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 57
bhi .L35
ldrsw x0, [sp, 56]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 46
beq .L35
ldrsw x0, [sp, 56]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w2, [x0]
ldr x1, [sp, 40]
ldrsw x0, [sp, 60]
add x0, x1, x0
mov w1, w2
strb w1, [x0, 6]
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
b .L36
.L35:
ldrsw x0, [sp, 56]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 46
bne .L37
ldr w0, [sp, 68]
cmp w0, 0
bne .L37
mov w0, 1
str w0, [sp, 68]
ldr w0, [sp, 56]
str w0, [sp, 76]
b .L36
.L37:
mov w0, 3
b .L58
.L36:
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
ldrsw x0, [sp, 56]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 46
beq .L34
ldrsw x0, [sp, 56]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 69
beq .L34
ldrsw x0, [sp, 56]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 101
beq .L34
ldr w0, [sp, 60]
cmp w0, 31
bne .L34
mov w0, 7
b .L58
.L34:
ldrsw x0, [sp, 56]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 69
beq .L38
ldrsw x0, [sp, 56]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 101
beq .L38
ldrsw x0, [sp, 56]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 0
bne .L39
.L38:
ldrsw x0, [sp, 56]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 101
beq .L40
ldrsw x0, [sp, 56]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 69
bne .L41
.L40:
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
.L41:
ldr x0, [sp, 40]
add x0, x0, 6
ldrb w0, [x0]
cmp w0, 0
bne .L42
mov w0, 5
b .L58
.L42:
ldrsw x0, [sp, 56]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 45
bne .L43
mov w0, -1
str w0, [sp, 64]
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
b .L44
.L43:
ldrsw x0, [sp, 56]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 43
bne .L45
mov w0, 1
str w0, [sp, 64]
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
b .L44
.L45:
mov w0, 1
str w0, [sp, 64]
.L44:
str wzr, [sp, 60]
b .L46
.L48:
ldrsw x0, [sp, 56]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 47
bls .L47
ldrsw x0, [sp, 56]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 57
bhi .L47
ldrsw x0, [sp, 56]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w2, [x0]
ldrsw x0, [sp, 60]
add x1, sp, 88
strb w2, [x1, x0]
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
b .L46
.L47:
mov w0, 3
b .L58
.L46:
ldrsw x0, [sp, 56]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 0
bne .L48
add x0, sp, 88
bl atoi
mov w1, w0
ldr x0, [sp, 40]
str w1, [x0]
ldr x0, [sp, 40]
ldr w1, [x0]
mov w0, 31073
movk w0, 0xfffe, lsl 16
cmp w1, w0
blt .L49
ldr x0, [sp, 40]
ldr w1, [x0]
mov w0, 34463
movk w0, 0x1, lsl 16
cmp w1, w0
ble .L50
.L49:
mov w0, 2
b .L58
.L50:
ldr x0, [sp, 40]
ldr w1, [x0]
ldr w0, [sp, 64]
mul w1, w1, w0
ldr x0, [sp, 40]
str w1, [x0]
ldr w0, [sp, 76]
cmp w0, 0
blt .L52
ldr x0, [sp, 40]
ldr w19, [x0]
ldr x0, [sp, 40]
add x0, x0, 6
bl strlen
mov w1, w0
ldr w0, [sp, 76]
sub w1, w1, w0
ldr w0, [sp, 72]
add w0, w1, w0
sub w1, w19, w0
ldr x0, [sp, 40]
str w1, [x0]
b .L52
.L55:
ldr x0, [sp, 40]
add x0, x0, 6
bl strlen
str w0, [sp, 84]
str wzr, [sp, 80]
b .L53
.L54:
ldr w0, [sp, 80]
add w0, w0, 1
ldr x1, [sp, 40]
sxtw x0, w0
add x0, x1, x0
ldrb w2, [x0, 6]
ldr x1, [sp, 40]
ldrsw x0, [sp, 80]
add x0, x1, x0
mov w1, w2
strb w1, [x0, 6]
ldr w0, [sp, 80]
add w0, w0, 1
str w0, [sp, 80]
.L53:
ldr w1, [sp, 80]
ldr w0, [sp, 84]
cmp w1, w0
blt .L54
.L52:
ldr x0, [sp, 40]
ldrb w0, [x0, 6]
cmp w0, 48
beq .L55
ldr x0, [sp, 40]
ldr w19, [x0]
ldr x0, [sp, 40]
add x0, x0, 6
bl strlen
add w1, w19, w0
ldr x0, [sp, 40]
str w1, [x0]
ldr x0, [sp, 40]
add x0, x0, 6
bl strlen
str w0, [sp, 56]
b .L56
.L57:
ldr x1, [sp, 40]
ldrsw x0, [sp, 56]
add x0, x1, x0
strb wzr, [x0, 6]
ldr w0, [sp, 56]
sub w0, w0, #1
str w0, [sp, 56]
.L56:
ldr x0, [sp, 40]
add x0, x0, 6
bl strlen
sub x0, x0, #1
ldr x1, [sp, 40]
add x0, x1, x0
ldrb w0, [x0, 6]
cmp w0, 48
beq .L57
mov w0, 0
.L58:
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 .L59
bl __stack_chk_fail
.L59:
mov w0, w1
ldr x19, [sp, 16]
ldp x29, x30, [sp], 160
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size num_reconstruct, .-num_reconstruct
.align 2
.global num_reconstruct_int
.type num_reconstruct_int, %function
num_reconstruct_int:
.LFB12:
.cfi_startproc
stp x29, x30, [sp, -160]!
.cfi_def_cfa_offset 160
.cfi_offset 29, -160
.cfi_offset 30, -152
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -144
str x0, [sp, 40]
str x1, [sp, 32]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 152]
mov x1, 0
add x0, sp, 88
bl ident_buf
str wzr, [sp, 52]
str wzr, [sp, 56]
str wzr, [sp, 60]
str wzr, [sp, 64]
str wzr, [sp, 68]
str wzr, [sp, 72]
mov w0, -1
str w0, [sp, 76]
ldrsw x0, [sp, 52]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 45
bne .L61
ldr x0, [sp, 40]
mov w1, -1
strh w1, [x0, 4]
mov w0, 1
str w0, [sp, 72]
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
b .L62
.L61:
ldrsw x0, [sp, 52]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 43
bne .L63
ldr x0, [sp, 40]
mov w1, 1
strh w1, [x0, 4]
mov w0, 1
str w0, [sp, 72]
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
b .L62
.L63:
ldr x0, [sp, 40]
mov w1, 1
strh w1, [x0, 4]
.L62:
ldrsw x0, [sp, 52]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 48
bls .L66
ldrsw x0, [sp, 52]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 57
bls .L66
ldrsw x0, [sp, 52]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 46
beq .L66
mov w0, 3
b .L92
.L71:
ldrsw x0, [sp, 52]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 47
bls .L67
ldrsw x0, [sp, 52]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 57
bhi .L67
ldrsw x0, [sp, 52]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 46
beq .L67
ldrsw x0, [sp, 52]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w2, [x0]
ldr x1, [sp, 40]
ldrsw x0, [sp, 56]
add x0, x1, x0
mov w1, w2
strb w1, [x0, 6]
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
b .L68
.L67:
ldrsw x0, [sp, 52]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 46
bne .L69
ldr w0, [sp, 68]
cmp w0, 0
bne .L69
mov w0, 1
str w0, [sp, 68]
ldr w0, [sp, 52]
str w0, [sp, 76]
b .L68
.L69:
mov w0, 3
b .L92
.L68:
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
ldrsw x0, [sp, 52]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 46
beq .L66
ldrsw x0, [sp, 52]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 69
beq .L66
ldrsw x0, [sp, 52]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 101
beq .L66
ldr w0, [sp, 56]
cmp w0, 31
bne .L66
mov w0, 7
b .L92
.L66:
ldrsw x0, [sp, 52]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 69
beq .L70
ldrsw x0, [sp, 52]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 101
beq .L70
ldrsw x0, [sp, 52]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 0
bne .L71
.L70:
ldrsw x0, [sp, 52]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 101
beq .L72
ldrsw x0, [sp, 52]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 69
bne .L73
.L72:
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
mov w0, 1
str w0, [sp, 64]
.L73:
ldr x0, [sp, 40]
add x0, x0, 6
ldrb w0, [x0]
cmp w0, 0
bne .L74
mov w0, 5
b .L92
.L74:
ldrsw x0, [sp, 52]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 45
bne .L75
mov w0, -1
str w0, [sp, 60]
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
b .L76
.L75:
ldrsw x0, [sp, 52]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 43
bne .L77
mov w0, 1
str w0, [sp, 60]
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
b .L76
.L77:
mov w0, 1
str w0, [sp, 60]
.L76:
str wzr, [sp, 56]
b .L78
.L80:
ldrsw x0, [sp, 52]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 47
bls .L79
ldrsw x0, [sp, 52]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 57
bhi .L79
ldrsw x0, [sp, 52]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w2, [x0]
ldrsw x0, [sp, 56]
add x1, sp, 88
strb w2, [x1, x0]
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
b .L78
.L79:
mov w0, 3
b .L92
.L78:
ldrsw x0, [sp, 52]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 0
bne .L80
ldr x0, [sp, 40]
ldr w1, [x0]
mov w0, 31073
movk w0, 0xfffe, lsl 16
cmp w1, w0
blt .L81
ldr x0, [sp, 40]
ldr w1, [x0]
mov w0, 34463
movk w0, 0x1, lsl 16
cmp w1, w0
ble .L82
.L81:
mov w0, 2
b .L92
.L82:
add x0, sp, 88
bl atoi
mov w1, w0
ldr x0, [sp, 40]
str w1, [x0]
ldr x0, [sp, 40]
ldr w1, [x0]
ldr w0, [sp, 60]
mul w1, w1, w0
ldr x0, [sp, 40]
str w1, [x0]
ldr w0, [sp, 76]
cmp w0, 0
blt .L84
ldr x0, [sp, 40]
ldr w19, [x0]
ldr x0, [sp, 40]
add x0, x0, 6
bl strlen
mov w1, w0
ldr w0, [sp, 76]
sub w1, w1, w0
ldr w0, [sp, 72]
add w0, w1, w0
sub w1, w19, w0
ldr x0, [sp, 40]
str w1, [x0]
b .L84
.L87:
ldr x0, [sp, 40]
add x0, x0, 6
bl strlen
str w0, [sp, 84]
str wzr, [sp, 80]
b .L85
.L86:
ldr w0, [sp, 80]
add w0, w0, 1
ldr x1, [sp, 40]
sxtw x0, w0
add x0, x1, x0
ldrb w2, [x0, 6]
ldr x1, [sp, 40]
ldrsw x0, [sp, 80]
add x0, x1, x0
mov w1, w2
strb w1, [x0, 6]
ldr w0, [sp, 80]
add w0, w0, 1
str w0, [sp, 80]
.L85:
ldr w1, [sp, 80]
ldr w0, [sp, 84]
cmp w1, w0
blt .L86
.L84:
ldr x0, [sp, 40]
ldrb w0, [x0, 6]
cmp w0, 48
beq .L87
ldr x0, [sp, 40]
ldr w19, [x0]
ldr x0, [sp, 40]
add x0, x0, 6
bl strlen
add w1, w19, w0
ldr x0, [sp, 40]
str w1, [x0]
ldr x0, [sp, 40]
add x0, x0, 6
bl strlen
str w0, [sp, 52]
b .L88
.L89:
ldr x1, [sp, 40]
ldrsw x0, [sp, 52]
add x0, x1, x0
strb wzr, [x0, 6]
ldr w0, [sp, 52]
sub w0, w0, #1
str w0, [sp, 52]
.L88:
ldr x0, [sp, 40]
add x0, x0, 6
bl strlen
sub x0, x0, #1
ldr x1, [sp, 40]
add x0, x1, x0
ldrb w0, [x0, 6]
cmp w0, 48
beq .L89
ldr w0, [sp, 64]
cmp w0, 1
beq .L90
ldr w0, [sp, 68]
cmp w0, 1
bne .L91
.L90:
mov w0, 8
b .L92
.L91:
mov w0, 0
.L92:
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 .L93
bl __stack_chk_fail
.L93:
mov w0, w1
ldr x19, [sp, 16]
ldp x29, x30, [sp], 160
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE12:
.size num_reconstruct_int, .-num_reconstruct_int
.align 2
.global my_division
.type my_division, %function
my_division:
.LFB13:
.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 x0, [sp, 56]
str x1, [sp, 48]
str x2, [sp, 40]
str wzr, [sp, 72]
str wzr, [sp, 76]
str wzr, [sp, 80]
ldr x0, [sp, 56]
add x0, x0, 6
bl strlen
str w0, [sp, 84]
ldr x0, [sp, 48]
add x0, x0, 6
bl strlen
str w0, [sp, 88]
str wzr, [sp, 92]
b .L95
.L136:
str wzr, [sp, 92]
ldr x1, [sp, 40]
ldrsw x0, [sp, 76]
add x0, x1, x0
mov w1, 48
strb w1, [x0, 6]
ldr x0, [sp, 56]
ldrb w0, [x0, 6]
cmp w0, 48
beq .L96
ldr w1, [sp, 84]
ldr w0, [sp, 88]
cmp w1, w0
bge .L97
ldr x1, [sp, 56]
ldrsw x0, [sp, 84]
add x0, x1, x0
mov w1, 48
strb w1, [x0, 6]
ldr w0, [sp, 84]
add w0, w0, 1
str w0, [sp, 84]
b .L98
.L97:
ldr w1, [sp, 84]
ldr w0, [sp, 88]
cmp w1, w0
bne .L98
str wzr, [sp, 72]
b .L99
.L102:
ldr x1, [sp, 48]
ldrsw x0, [sp, 72]
add x0, x1, x0
ldrb w1, [x0, 6]
ldr x2, [sp, 56]
ldrsw x0, [sp, 72]
add x0, x2, x0
ldrb w0, [x0, 6]
cmp w1, w0
bne .L100
ldr w0, [sp, 72]
add w0, w0, 1
str w0, [sp, 72]
b .L99
.L100:
ldr x1, [sp, 48]
ldrsw x0, [sp, 72]
add x0, x1, x0
ldrb w1, [x0, 6]
ldr x2, [sp, 56]
ldrsw x0, [sp, 72]
add x0, x2, x0
ldrb w0, [x0, 6]
cmp w1, w0
bcs .L101
mov w0, 1
str w0, [sp, 92]
b .L98
.L101:
ldr x1, [sp, 56]
ldrsw x0, [sp, 84]
add x0, x1, x0
mov w1, 48
strb w1, [x0, 6]
ldr w0, [sp, 84]
add w0, w0, 1
str w0, [sp, 84]
b .L98
.L99:
ldr x1, [sp, 48]
ldrsw x0, [sp, 72]
add x0, x1, x0
ldrb w0, [x0, 6]
cmp w0, 0
bne .L102
.L98:
str wzr, [sp, 72]
ldr w1, [sp, 84]
ldr w0, [sp, 88]
cmp w1, w0
blt .L103
ldr w0, [sp, 92]
cmp w0, 0
bne .L103
.L108:
ldr x1, [sp, 48]
ldrsw x0, [sp, 72]
add x0, x1, x0
ldrb w0, [x0, 6]
cmp w0, 0
beq .L104
ldr x1, [sp, 48]
ldrsw x0, [sp, 72]
add x0, x1, x0
ldrb w1, [x0, 6]
ldr x2, [sp, 56]
ldrsw x0, [sp, 72]
add x0, x2, x0
ldrb w0, [x0, 6]
cmp w1, w0
bls .L105
str wzr, [sp, 92]
b .L103
.L105:
ldr x1, [sp, 48]
ldrsw x0, [sp, 72]
add x0, x1, x0
ldrb w1, [x0, 6]
ldr x2, [sp, 56]
ldrsw x0, [sp, 72]
add x0, x2, x0
ldrb w0, [x0, 6]
cmp w1, w0
bne .L106
ldr w0, [sp, 72]
add w0, w0, 1
str w0, [sp, 72]
b .L108
.L106:
mov w0, 1
str w0, [sp, 92]
b .L103
.L104:
mov w0, 1
str w0, [sp, 92]
.L103:
ldr w1, [sp, 84]
ldr w0, [sp, 88]
cmp w1, w0
ble .L109
ldr w0, [sp, 92]
cmp w0, 0
bne .L109
ldr w0, [sp, 88]
str w0, [sp, 72]
b .L110
.L111:
ldr w0, [sp, 72]
add w3, w0, 1
ldr x1, [sp, 48]
ldrsw x0, [sp, 72]
add x0, x1, x0
ldrb w2, [x0, 6]
ldr x1, [sp, 48]
sxtw x0, w3
add x0, x1, x0
mov w1, w2
strb w1, [x0, 6]
ldr w0, [sp, 72]
sub w0, w0, #1
str w0, [sp, 72]
.L110:
ldr w0, [sp, 72]
cmp w0, 0
bge .L111
ldr x0, [sp, 48]
mov w1, 48
strb w1, [x0, 6]
ldr w0, [sp, 88]
add w0, w0, 1
str w0, [sp, 88]
mov w0, 1
str w0, [sp, 92]
b .L112
.L109:
ldr w0, [sp, 76]
cmp w0, 0
bne .L113
ldr x0, [sp, 56]
ldrb w0, [x0, 6]
cmp w0, 49
bne .L114
ldr x0, [sp, 56]
ldrb w0, [x0, 7]
cmp w0, 48
beq .L113
.L114:
ldr x0, [sp, 40]
ldr w0, [x0]
add w1, w0, 1
ldr x0, [sp, 40]
str w1, [x0]
b .L112
.L113:
ldr w0, [sp, 76]
cmp w0, 0
bne .L115
ldr x0, [sp, 48]
ldrb w0, [x0, 6]
cmp w0, 49
bne .L115
ldr x0, [sp, 48]
ldrb w0, [x0, 7]
cmp w0, 49
bne .L115
ldr x0, [sp, 48]
add x0, x0, 6
bl strlen
sub x0, x0, #1
ldr x1, [sp, 48]
add x0, x1, x0
ldrb w19, [x0, 6]
ldr x0, [sp, 48]
add x0, x0, 6
bl strlen
sub x0, x0, #1
ldr x1, [sp, 56]
add x0, x1, x0
ldrb w0, [x0, 6]
cmp w19, w0
bls .L115
ldr w1, [sp, 84]
ldr w0, [sp, 88]
cmp w1, w0
bge .L115
ldr x0, [sp, 40]
ldr w0, [x0]
add w1, w0, 1
ldr x0, [sp, 40]
str w1, [x0]
.L112:
b .L115
.L123:
ldr w0, [sp, 88]
sub w0, w0, #1
str w0, [sp, 72]
b .L116
.L118:
ldr x1, [sp, 56]
ldrsw x0, [sp, 72]
add x0, x1, x0
ldrb w1, [x0, 6]
ldr x2, [sp, 48]
ldrsw x0, [sp, 72]
add x0, x2, x0
ldrb w0, [x0, 6]
sub w0, w1, w0
and w0, w0, 255
add w0, w0, 48
and w2, w0, 255
ldr x1, [sp, 56]
ldrsw x0, [sp, 72]
add x0, x1, x0
mov w1, w2
strb w1, [x0, 6]
ldr x1, [sp, 56]
ldrsw x0, [sp, 72]
add x0, x1, x0
ldrb w0, [x0, 6]
cmp w0, 47
bhi .L117
ldr x1, [sp, 56]
ldrsw x0, [sp, 72]
add x0, x1, x0
ldrb w0, [x0, 6]
add w0, w0, 10
and w2, w0, 255
ldr x1, [sp, 56]
ldrsw x0, [sp, 72]
add x0, x1, x0
mov w1, w2
strb w1, [x0, 6]
ldr w0, [sp, 72]
sub w2, w0, #1
ldr x1, [sp, 56]
sxtw x0, w2
add x0, x1, x0
ldrb w0, [x0, 6]
sub w0, w0, #1
and w3, w0, 255
ldr x1, [sp, 56]
sxtw x0, w2
add x0, x1, x0
mov w1, w3
strb w1, [x0, 6]
.L117:
ldr w0, [sp, 72]
sub w0, w0, #1
str w0, [sp, 72]
.L116:
ldr w0, [sp, 72]
cmp w0, 0
bge .L118
ldr x1, [sp, 40]
ldrsw x0, [sp, 76]
add x0, x1, x0
ldrb w0, [x0, 6]
add w0, w0, 1
and w2, w0, 255
ldr x1, [sp, 40]
ldrsw x0, [sp, 76]
add x0, x1, x0
mov w1, w2
strb w1, [x0, 6]
str wzr, [sp, 72]
b .L119
.L122:
ldr x1, [sp, 56]
ldrsw x0, [sp, 72]
add x0, x1, x0
ldrb w1, [x0, 6]
ldr x2, [sp, 48]
ldrsw x0, [sp, 72]
add x0, x2, x0
ldrb w0, [x0, 6]
cmp w1, w0
bcs .L120
mov w0, -1
str w0, [sp, 92]
b .L115
.L120:
ldr x1, [sp, 56]
ldrsw x0, [sp, 72]
add x0, x1, x0
ldrb w1, [x0, 6]
ldr x2, [sp, 48]
ldrsw x0, [sp, 72]
add x0, x2, x0
ldrb w0, [x0, 6]
cmp w1, w0
bne .L115
ldr w0, [sp, 72]
add w0, w0, 1
str w0, [sp, 72]
.L119:
ldr w1, [sp, 72]
ldr w0, [sp, 88]
cmp w1, w0
ble .L122
.L115:
ldr w0, [sp, 92]
cmp w0, 1
beq .L123
ldr x0, [sp, 56]
ldrb w0, [x0, 6]
cmp w0, 48
bne .L124
ldr x0, [sp, 48]
ldrb w0, [x0, 6]
cmp w0, 48
bne .L124
str wzr, [sp, 72]
b .L125
.L126:
ldr w0, [sp, 72]
add w0, w0, 1
ldr x1, [sp, 56]
sxtw x0, w0
add x0, x1, x0
ldrb w2, [x0, 6]
ldr x1, [sp, 56]
ldrsw x0, [sp, 72]
add x0, x1, x0
mov w1, w2
strb w1, [x0, 6]
ldr w0, [sp, 72]
add w0, w0, 1
str w0, [sp, 72]
.L125:
ldr w1, [sp, 72]
ldr w0, [sp, 84]
cmp w1, w0
blt .L126
str wzr, [sp, 72]
b .L127
.L128:
ldr w0, [sp, 72]
add w0, w0, 1
ldr x1, [sp, 48]
sxtw x0, w0
add x0, x1, x0
ldrb w2, [x0, 6]
ldr x1, [sp, 48]
ldrsw x0, [sp, 72]
add x0, x1, x0
mov w1, w2
strb w1, [x0, 6]
ldr w0, [sp, 72]
add w0, w0, 1
str w0, [sp, 72]
.L127:
ldr w1, [sp, 72]
ldr w0, [sp, 88]
cmp w1, w0
blt .L128
ldr x1, [sp, 56]
ldrsw x0, [sp, 84]
add x0, x1, x0
strb wzr, [x0, 6]
ldr x1, [sp, 48]
ldrsw x0, [sp, 88]
add x0, x1, x0
strb wzr, [x0, 6]
ldr w0, [sp, 84]
sub w0, w0, #1
str w0, [sp, 84]
ldr w0, [sp, 88]
sub w0, w0, #1
str w0, [sp, 88]
.L124:
ldr x0, [sp, 56]
ldrb w0, [x0, 6]
cmp w0, 48
bne .L96
ldr w1, [sp, 84]
ldr w0, [sp, 88]
cmp w1, w0
bne .L96
str wzr, [sp, 72]
b .L129
.L130:
ldr w0, [sp, 72]
add w0, w0, 1
ldr x1, [sp, 56]
sxtw x0, w0
add x0, x1, x0
ldrb w2, [x0, 6]
ldr x1, [sp, 56]
ldrsw x0, [sp, 72]
add x0, x1, x0
mov w1, w2
strb w1, [x0, 6]
ldr w0, [sp, 72]
add w0, w0, 1
str w0, [sp, 72]
.L129:
ldr w1, [sp, 72]
ldr w0, [sp, 84]
cmp w1, w0
blt .L130
ldr w0, [sp, 84]
sub w0, w0, #1
str w0, [sp, 84]
.L96:
ldr x0, [sp, 56]
ldrb w0, [x0, 6]
cmp w0, 48
bne .L131
ldr w1, [sp, 84]
ldr w0, [sp, 88]
cmp w1, w0
bne .L132
ldr w0, [sp, 76]
sub w0, w0, #1
str w0, [sp, 76]
.L132:
str wzr, [sp, 72]
b .L133
.L134:
ldr w0, [sp, 72]
add w0, w0, 1
ldr x1, [sp, 56]
sxtw x0, w0
add x0, x1, x0
ldrb w2, [x0, 6]
ldr x1, [sp, 56]
ldrsw x0, [sp, 72]
add x0, x1, x0
mov w1, w2
strb w1, [x0, 6]
ldr w0, [sp, 72]
add w0, w0, 1
str w0, [sp, 72]
.L133:
ldr w1, [sp, 72]
ldr w0, [sp, 84]
cmp w1, w0
blt .L134
ldr w0, [sp, 84]
sub w0, w0, #1
str w0, [sp, 84]
.L131:
ldr x0, [sp, 40]
ldrb w0, [x0, 6]
cmp w0, 48
beq .L95
ldr w0, [sp, 76]
add w0, w0, 1
str w0, [sp, 76]
.L95:
ldr x0, [sp, 40]
add x0, x0, 6
bl strlen
cmp x0, 31
bhi .L135
ldr x0, [sp, 56]
add x0, x0, 6
ldrb w0, [x0]
cmp w0, 0
bne .L136
.L135:
ldr x0, [sp, 40]
ldrb w0, [x0, 36]
cmp w0, 52
bls .L137
ldr x0, [sp, 40]
strb wzr, [x0, 36]
ldr x0, [sp, 40]
ldrb w0, [x0, 35]
add w0, w0, 1
and w1, w0, 255
ldr x0, [sp, 40]
strb w1, [x0, 35]
b .L138
.L137:
ldr x0, [sp, 40]
strb wzr, [x0, 36]
.L138:
str wzr, [sp, 92]
ldr x0, [sp, 40]
add x0, x0, 6
bl strlen
sub w0, w0, #1
str w0, [sp, 72]
ldr x0, [sp, 40]
add x0, x0, 6
bl strlen
cmp x0, 29
bls .L139
b .L140
.L143:
ldr x1, [sp, 40]
ldrsw x0, [sp, 72]
add x0, x1, x0
mov w1, 48
strb w1, [x0, 6]
ldr w0, [sp, 72]
sub w0, w0, #1
str w0, [sp, 72]
mov w0, 1
str w0, [sp, 92]
ldr w0, [sp, 72]
cmp w0, 0
bge .L140
ldr w0, [sp, 72]
str w0, [sp, 80]
b .L141
.L142:
ldr x1, [sp, 40]
ldrsw x0, [sp, 80]
add x0, x1, x0
strb wzr, [x0, 6]
ldr w0, [sp, 80]
sub w0, w0, #1
str w0, [sp, 80]
.L141:
ldr w0, [sp, 80]
cmp w0, 0
bge .L142
ldr x0, [sp, 40]
mov w1, 48
strb w1, [x0, 6]
b .L139
.L140:
ldr x1, [sp, 40]
ldrsw x0, [sp, 72]
add x0, x1, x0
ldrb w0, [x0, 6]
cmp w0, 56
bhi .L143
.L139:
ldr w0, [sp, 92]
cmp w0, 1
bne .L144
ldr x1, [sp, 40]
ldrsw x0, [sp, 72]
add x0, x1, x0
ldrb w0, [x0, 6]
add w0, w0, 1
and w2, w0, 255
ldr x1, [sp, 40]
ldrsw x0, [sp, 72]
add x0, x1, x0
mov w1, w2
strb w1, [x0, 6]
.L144:
ldr x0, [sp, 40]
ldr w1, [x0]
ldr x0, [sp, 56]
ldr w2, [x0]
ldr x0, [sp, 48]
ldr w0, [x0]
sub w0, w2, w0
add w1, w1, w0
ldr x0, [sp, 40]
str w1, [x0]
ldr x0, [sp, 40]
ldr w0, [x0]
cmp w0, 0
csneg w1, w0, w0, ge
mov w0, 34463
movk w0, 0x1, lsl 16
cmp w1, w0
ble .L145
mov w0, 2
b .L146
.L145:
ldr x0, [sp, 56]
ldrsh w1, [x0, 4]
ldr x0, [sp, 48]
ldrsh w0, [x0, 4]
cmp w1, w0
bne .L147
ldr x0, [sp, 40]
mov w1, 1
strh w1, [x0, 4]
b .L148
.L147:
ldr x0, [sp, 40]
mov w1, -1
strh w1, [x0, 4]
.L148:
ldr x0, [sp, 40]
add x0, x0, 6
bl strlen
sub w0, w0, #1
str w0, [sp, 72]
b .L149
.L153:
ldr x1, [sp, 40]
ldrsw x0, [sp, 72]
add x0, x1, x0
ldrb w0, [x0, 6]
cmp w0, 48
bne .L156
ldr x1, [sp, 40]
ldrsw x0, [sp, 72]
add x0, x1, x0
strb wzr, [x0, 6]
ldr w0, [sp, 72]
sub w0, w0, #1
str w0, [sp, 72]
.L149:
ldr w0, [sp, 72]
cmp w0, 0
bge .L153
b .L152
.L156:
nop
.L152:
ldr x0, [sp, 40]
add x0, x0, 6
ldrb w0, [x0]
cmp w0, 0
bne .L154
ldr x0, [sp, 40]
mov w1, 49
strb w1, [x0, 6]
ldr x0, [sp, 40]
ldr w0, [x0]
add w1, w0, 1
ldr x0, [sp, 40]
str w1, [x0]
.L154:
mov w0, 0
.L146:
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
.LFE13:
.size my_division, .-my_division
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Enter a number: "
.align 3
.LC1:
.string "%d"
.align 3
.LC2:
.string "%d is even"
.align 3
.LC3:
.string "%d is 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
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]
cmp w0, 0
and w0, w0, 1
csneg w0, w0, w0, ge
cmp w0, 0
beq .L2
cmp w0, 1
beq .L3
b .L4
.L2:
ldr w0, [sp, 20]
mov w1, w0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
b .L4
.L3:
ldr w0, [sp, 20]
mov w1, w0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
nop
.L4:
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 allocate_matrix
.type allocate_matrix, %function
allocate_matrix:
.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 w0, [sp, 28]
str w1, [sp, 24]
ldr w1, [sp, 28]
ldr w0, [sp, 24]
mul w0, w1, w0
sxtw x0, w0
lsl x0, x0, 3
bl malloc
str x0, [sp, 48]
ldrsw x0, [sp, 28]
lsl x0, x0, 3
bl malloc
str x0, [sp, 56]
str wzr, [sp, 44]
b .L2
.L3:
ldr w1, [sp, 24]
ldr w0, [sp, 44]
mul w0, w1, w0
sxtw x0, w0
lsl x1, x0, 3
ldrsw x0, [sp, 44]
lsl x0, x0, 3
ldr x2, [sp, 56]
add x0, x2, x0
ldr x2, [sp, 48]
add x1, x2, x1
str x1, [x0]
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L2:
ldr w1, [sp, 44]
ldr w0, [sp, 28]
cmp w1, w0
blt .L3
ldr x0, [sp, 56]
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size allocate_matrix, .-allocate_matrix
.align 2
.global deallocate_matrix
.type deallocate_matrix, %function
deallocate_matrix:
.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]
ldr x0, [sp, 24]
ldr x0, [x0]
ldr x0, [x0]
bl free
ldr x0, [sp, 24]
ldr x0, [x0]
bl free
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size deallocate_matrix, .-deallocate_matrix
.section .rodata
.align 3
.LC0:
.string "rb"
.text
.align 2
.global read_matrix_binaryformat
.type read_matrix_binaryformat, %function
read_matrix_binaryformat:
.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 x1, [sp, 32]
str x2, [sp, 24]
str x3, [sp, 16]
adrp x0, .LC0
add x1, x0, :lo12:.LC0
ldr x0, [sp, 40]
bl fopen
str x0, [sp, 56]
ldr x3, [sp, 56]
mov x2, 1
mov x1, 4
ldr x0, [sp, 24]
bl fread
ldr x3, [sp, 56]
mov x2, 1
mov x1, 4
ldr x0, [sp, 16]
bl fread
ldr x0, [sp, 24]
ldr w2, [x0]
ldr x0, [sp, 16]
ldr w0, [x0]
mov w1, w0
mov w0, w2
bl allocate_matrix
mov x1, x0
ldr x0, [sp, 32]
str x1, [x0]
ldr x0, [sp, 32]
ldr x0, [x0]
ldr x4, [x0]
ldr x0, [sp, 24]
ldr w1, [x0]
ldr x0, [sp, 16]
ldr w0, [x0]
mul w0, w1, w0
sxtw x0, w0
ldr x3, [sp, 56]
mov x2, x0
mov x1, 8
mov x0, x4
bl fread
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
.LFE8:
.size read_matrix_binaryformat, .-read_matrix_binaryformat
.section .rodata
.align 3
.LC1:
.string "wb"
.text
.align 2
.global write_matrix_binaryformat
.type write_matrix_binaryformat, %function
write_matrix_binaryformat:
.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 x0, [sp, 40]
str x1, [sp, 32]
str w2, [sp, 28]
str w3, [sp, 24]
adrp x0, .LC1
add x1, x0, :lo12:.LC1
ldr x0, [sp, 40]
bl fopen
str x0, [sp, 56]
add x0, sp, 28
ldr x3, [sp, 56]
mov x2, 1
mov x1, 4
bl fwrite
add x0, sp, 24
ldr x3, [sp, 56]
mov x2, 1
mov x1, 4
bl fwrite
ldr x0, [sp, 32]
ldr x4, [x0]
ldr w1, [sp, 28]
ldr w0, [sp, 24]
mul w0, w1, w0
sxtw x0, w0
ldr x3, [sp, 56]
mov x2, x0
mov x1, 8
mov x0, x4
bl fwrite
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
.LFE9:
.size write_matrix_binaryformat, .-write_matrix_binaryformat
.align 2
.global matrix_multiplication
.type matrix_multiplication, %function
matrix_multiplication:
.LFB10:
.cfi_startproc
sub sp, sp, #64
.cfi_def_cfa_offset 64
str x0, [sp, 40]
str x1, [sp, 32]
str x2, [sp, 24]
str w3, [sp, 20]
str w4, [sp, 16]
str w5, [sp, 12]
str w6, [sp, 8]
str wzr, [sp, 52]
b .L9
.L14:
str wzr, [sp, 56]
b .L10
.L13:
str wzr, [sp, 60]
b .L11
.L12:
ldr x0, [sp, 24]
ldr x1, [x0]
ldrsw x0, [sp, 52]
lsl x0, x0, 3
add x0, x1, x0
ldr x1, [x0]
ldrsw x0, [sp, 56]
lsl x0, x0, 3
add x0, x1, x0
ldr d1, [x0]
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 40]
add x0, x1, x0
ldr x1, [x0]
ldrsw x0, [sp, 60]
lsl x0, x0, 3
add x0, x1, x0
ldr d2, [x0]
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 32]
add x0, x1, x0
ldr x1, [x0]
ldrsw x0, [sp, 56]
lsl x0, x0, 3
add x0, x1, x0
ldr d0, [x0]
fmul d0, d2, d0
ldr x0, [sp, 24]
ldr x1, [x0]
ldrsw x0, [sp, 52]
lsl x0, x0, 3
add x0, x1, x0
ldr x1, [x0]
ldrsw x0, [sp, 56]
lsl x0, x0, 3
add x0, x1, x0
fadd d0, d1, d0
str d0, [x0]
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L11:
ldr w1, [sp, 60]
ldr w0, [sp, 16]
cmp w1, w0
blt .L12
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
.L10:
ldr w1, [sp, 56]
ldr w0, [sp, 8]
cmp w1, w0
blt .L13
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
.L9:
ldr w1, [sp, 52]
ldr w0, [sp, 20]
cmp w1, w0
blt .L14
nop
nop
add sp, sp, 64
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size matrix_multiplication, .-matrix_multiplication
.align 2
.global transposed_matrix_multiplication
.type transposed_matrix_multiplication, %function
transposed_matrix_multiplication:
.LFB11:
.cfi_startproc
sub sp, sp, #64
.cfi_def_cfa_offset 64
str x0, [sp, 40]
str x1, [sp, 32]
str x2, [sp, 24]
str w3, [sp, 20]
str w4, [sp, 16]
str w5, [sp, 12]
str w6, [sp, 8]
str wzr, [sp, 52]
b .L16
.L21:
str wzr, [sp, 56]
b .L17
.L20:
str wzr, [sp, 60]
b .L18
.L19:
ldr x0, [sp, 24]
ldr x1, [x0]
ldrsw x0, [sp, 52]
lsl x0, x0, 3
add x0, x1, x0
ldr x1, [x0]
ldrsw x0, [sp, 56]
lsl x0, x0, 3
add x0, x1, x0
ldr d1, [x0]
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 40]
add x0, x1, x0
ldr x1, [x0]
ldrsw x0, [sp, 60]
lsl x0, x0, 3
add x0, x1, x0
ldr d2, [x0]
ldrsw x0, [sp, 56]
lsl x0, x0, 3
ldr x1, [sp, 32]
add x0, x1, x0
ldr x1, [x0]
ldrsw x0, [sp, 60]
lsl x0, x0, 3
add x0, x1, x0
ldr d0, [x0]
fmul d0, d2, d0
ldr x0, [sp, 24]
ldr x1, [x0]
ldrsw x0, [sp, 52]
lsl x0, x0, 3
add x0, x1, x0
ldr x1, [x0]
ldrsw x0, [sp, 56]
lsl x0, x0, 3
add x0, x1, x0
fadd d0, d1, d0
str d0, [x0]
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L18:
ldr w1, [sp, 60]
ldr w0, [sp, 16]
cmp w1, w0
blt .L19
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
.L17:
ldr w1, [sp, 56]
ldr w0, [sp, 12]
cmp w1, w0
blt .L20
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
.L16:
ldr w1, [sp, 52]
ldr w0, [sp, 20]
cmp w1, w0
blt .L21
nop
nop
add sp, sp, 64
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size transposed_matrix_multiplication, .-transposed_matrix_multiplication
.align 2
.global transpose_matrix
.type transpose_matrix, %function
transpose_matrix:
.LFB12:
.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
ldr x0, [sp, 24]
ldr w2, [x0]
ldr x0, [sp, 32]
ldr w0, [x0]
mov w1, w0
mov w0, w2
bl allocate_matrix
str x0, [sp, 80]
ldr x0, [sp, 40]
ldr x0, [x0]
str x0, [sp, 72]
ldr x0, [sp, 32]
ldr w0, [x0]
str w0, [sp, 68]
str wzr, [sp, 60]
b .L23
.L26:
str wzr, [sp, 64]
b .L24
.L25:
ldr x0, [sp, 40]
ldr x1, [x0]
ldrsw x0, [sp, 60]
lsl x0, x0, 3
add x0, x1, x0
ldr x1, [x0]
ldrsw x0, [sp, 64]
lsl x0, x0, 3
add x1, x1, x0
ldrsw x0, [sp, 64]
lsl x0, x0, 3
ldr x2, [sp, 80]
add x0, x2, x0
ldr x2, [x0]
ldrsw x0, [sp, 60]
lsl x0, x0, 3
add x0, x2, x0
ldr d0, [x1]
str d0, [x0]
ldr w0, [sp, 64]
add w0, w0, 1
str w0, [sp, 64]
.L24:
ldr x0, [sp, 24]
ldr w0, [x0]
ldr w1, [sp, 64]
cmp w1, w0
blt .L25
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L23:
ldr x0, [sp, 32]
ldr w0, [x0]
ldr w1, [sp, 60]
cmp w1, w0
blt .L26
ldr x0, [sp, 24]
ldr w1, [x0]
ldr x0, [sp, 32]
str w1, [x0]
ldr x0, [sp, 24]
ldr w1, [sp, 68]
str w1, [x0]
ldr x0, [sp, 40]
ldr x1, [sp, 80]
str x1, [x0]
add x0, sp, 72
bl deallocate_matrix
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 .L27
bl __stack_chk_fail
.L27:
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE12:
.size transpose_matrix, .-transpose_matrix
.section .rodata
.align 3
.LC2:
.string "argc = %d\n"
.align 3
.LC3:
.string "Use: %s [infile a][infile b][outfile]\n"
.align 3
.LC4:
.string "%f seconds used in serial implementation\n"
.text
.align 2
.global main
.type main, %function
main:
.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 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
ldr w0, [sp, 28]
cmp w0, 4
beq .L29
ldr w1, [sp, 28]
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
ldr x0, [sp, 16]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
mov w0, -1
b .L31
.L29:
bl clock
str x0, [sp, 80]
ldr x0, [sp, 16]
add x0, x0, 8
ldr x0, [x0]
add x3, sp, 44
add x2, sp, 40
add x1, sp, 56
bl read_matrix_binaryformat
ldr x0, [sp, 16]
add x0, x0, 16
ldr x0, [x0]
add x3, sp, 52
add x2, sp, 48
add x1, sp, 64
bl read_matrix_binaryformat
ldr w0, [sp, 40]
ldr w1, [sp, 52]
bl allocate_matrix
str x0, [sp, 72]
ldr x0, [sp, 72]
ldr x3, [x0]
ldr w0, [sp, 40]
sxtw x1, w0
ldr w0, [sp, 52]
sxtw x0, w0
mul x0, x1, x0
lsl x0, x0, 3
mov x2, x0
mov w1, 0
mov x0, x3
bl memset
add x2, sp, 52
add x1, sp, 48
add x0, sp, 64
bl transpose_matrix
ldr x0, [sp, 56]
ldr x1, [sp, 64]
ldr w3, [sp, 40]
ldr w4, [sp, 44]
ldr w5, [sp, 48]
ldr w6, [sp, 52]
add x2, sp, 72
bl transposed_matrix_multiplication
ldr x0, [sp, 16]
add x0, x0, 24
ldr x0, [x0]
ldr x1, [sp, 72]
ldr w2, [sp, 40]
ldr w3, [sp, 48]
bl write_matrix_binaryformat
add x0, sp, 56
bl deallocate_matrix
add x0, sp, 64
bl deallocate_matrix
add x0, sp, 72
bl deallocate_matrix
bl clock
str x0, [sp, 88]
ldr x1, [sp, 88]
ldr x0, [sp, 80]
sub x0, x1, x0
fmov d0, x0
scvtf d0, d0
mov x0, 145685290680320
movk x0, 0x412e, lsl 48
fmov d1, x0
fdiv d0, d0, d1
str d0, [sp, 96]
ldr d0, [sp, 96]
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
mov w0, 0
.L31:
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 .L32
bl __stack_chk_fail
.L32:
mov w0, w1
ldp x29, x30, [sp], 112
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE13:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global wcstoul
.type wcstoul, %function
wcstoul:
.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, 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
mov x2, 0
ldr x1, [sp, 40]
mov x0, 0
bl wcstombs
str x0, [sp, 64]
ldr x0, [sp, 64]
cmn x0, #1
bne .L2
ldr x0, [sp, 32]
cmp x0, 0
beq .L3
ldr x0, [sp, 32]
ldr x1, [sp, 40]
str x1, [x0]
.L3:
mov x0, 0
b .L8
.L2:
ldr x0, [sp, 64]
add x0, x0, 1
bl malloc
str x0, [sp, 72]
ldr x0, [sp, 72]
cmp x0, 0
bne .L5
ldr x0, [sp, 32]
cmp x0, 0
beq .L6
ldr x0, [sp, 32]
ldr x1, [sp, 40]
str x1, [x0]
.L6:
mov x0, 0
b .L8
.L5:
ldr x2, [sp, 64]
ldr x1, [sp, 40]
ldr x0, [sp, 72]
bl wcstombs
add x0, sp, 56
ldr w2, [sp, 28]
mov x1, x0
ldr x0, [sp, 72]
bl strtoul
str x0, [sp, 80]
ldr x0, [sp, 32]
cmp x0, 0
beq .L7
ldr x1, [sp, 56]
ldr x0, [sp, 72]
sub x0, x1, x0
lsl x0, x0, 2
ldr x1, [sp, 40]
add x1, x1, x0
ldr x0, [sp, 32]
str x1, [x0]
.L7:
ldr x0, [sp, 72]
bl free
ldr x0, [sp, 80]
.L8:
mov x1, x0
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 .L9
bl __stack_chk_fail
.L9:
mov x0, x1
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size wcstoul, .-wcstoul
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global BirdThree
.section .rodata
.align 3
.type BirdThree, %object
.size BirdThree, 512
BirdThree:
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -6656
.hword 8456
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword 8456
.hword 8456
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword 8456
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -15872
.hword -15872
.hword 8456
.hword 8456
.hword 8456
.hword -34
.hword 8456
.hword 0
.hword 0
.hword -15872
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword 0
.hword 8456
.hword -15872
.hword -15872
.hword -15872
.hword 8456
.hword 8456
.hword 8456
.hword -15872
.hword -15872
.hword 0
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword 0
.hword 0
.hword 16904
.hword -34
.hword 0
.hword -15872
.hword 8456
.hword -15872
.hword -34
.hword 0
.hword 16904
.hword -1
.hword -1
.hword -1
.hword -1
.hword 0
.hword 0
.hword 0
.hword 16904
.hword -34
.hword -34
.hword 8456
.hword -15360
.hword -6656
.hword -34
.hword -34
.hword 16904
.hword 0
.hword -1
.hword -1
.hword -1
.hword 0
.hword 0
.hword 8456
.hword 16904
.hword 16904
.hword 16904
.hword -15360
.hword -6656
.hword -6656
.hword -6656
.hword -6656
.hword 16904
.hword 0
.hword -1
.hword -1
.hword -1
.hword 0
.hword 0
.hword 8456
.hword 8456
.hword 8456
.hword 8456
.hword -15360
.hword -15360
.hword -15360
.hword -15360
.hword 8456
.hword 8456
.hword 0
.hword -1
.hword -1
.hword -1
.hword 0
.hword 0
.hword 8456
.hword 8456
.hword 8456
.hword 8456
.hword 8456
.hword -15360
.hword -15360
.hword 8456
.hword 8456
.hword 8456
.hword 0
.hword -1
.hword -1
.hword -1
.hword 0
.hword 0
.hword 0
.hword 8456
.hword 8456
.hword 8456
.hword 8456
.hword 8456
.hword 8456
.hword 8456
.hword 8456
.hword 8456
.hword 0
.hword -1
.hword -1
.hword -1
.hword -1
.hword 0
.hword 0
.hword 8456
.hword 8456
.hword 16904
.hword 16904
.hword 16904
.hword 16904
.hword 16904
.hword 8456
.hword 0
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword 0
.hword 0
.hword 16904
.hword 16904
.hword 16904
.hword 16904
.hword 16904
.hword 16904
.hword 16904
.hword 16904
.hword 0
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword 0
.hword 0
.hword 16904
.hword 16904
.hword 16904
.hword 16904
.hword 16904
.hword 0
.hword 0
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
.hword -1
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global Tableau_des_fonctions
.bss
.align 3
.type Tableau_des_fonctions, %object
.size Tableau_des_fonctions, 168400
Tableau_des_fonctions:
.zero 168400
.global Tab_parametres
.align 3
.type Tab_parametres, %object
.size Tab_parametres, 3200
Tab_parametres:
.zero 3200
.global nom_fonction
.align 3
.type nom_fonction, %object
.size nom_fonction, 150
nom_fonction:
.zero 150
.global type_retour
.align 2
.type type_retour, %object
.size type_retour, 4
type_retour:
.zero 4
.global Tab_parametresDappel
.align 3
.type Tab_parametresDappel, %object
.size Tab_parametresDappel, 3200
Tab_parametresDappel:
.zero 3200
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global pointer
.type pointer, %function
pointer:
.LFB0:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
ldr x0, [sp, 8]
mov w1, 5
str w1, [x0]
nop
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size pointer, .-pointer
.section .rodata
.align 3
.LC0:
.string "%p\n"
.align 3
.LC1:
.string "%d\n"
.text
.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
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 24]
mov x1, 0
str wzr, [sp, 20]
add x0, sp, 20
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
ldr w0, [sp, 20]
mov w1, w0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
add x0, sp, 20
bl pointer
ldr w0, [sp, 20]
mov w1, w0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
add x0, sp, 20
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
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 .L4
bl __stack_chk_fail
.L4:
mov w0, w1
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
.section .rodata
.align 3
.LC0:
.string "%f\n%f\n%f"
.align 3
.LC1:
.string "%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
add x2, sp, 36
add x1, sp, 32
add x0, sp, 28
mov x3, x2
mov x2, x1
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
ldr s1, [sp, 28]
ldr s0, [sp, 32]
fmul s1, s1, s0
ldr s0, [sp, 36]
fdiv s0, s1, s0
fcvt d0, s0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
ldr s1, [sp, 28]
ldr s0, [sp, 28]
fmul s1, s1, s0
ldr s0, [sp, 32]
fadd s1, s1, s0
ldr s2, [sp, 36]
fmov s0, 5.0e+0
fmul s0, s2, s0
fadd s0, s1, s0
fcvt d0, s0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
ldr s1, [sp, 28]
ldr s0, [sp, 32]
fmul s1, s1, s0
ldr s0, [sp, 36]
fmul s1, s1, s0
ldr s0, [sp, 32]
fadd s1, s1, s0
ldr s2, [sp, 36]
fmov s0, 3.0e+0
fdiv s2, s2, s0
fmov s0, 5.0e+0
fmul s0, s2, s0
fadd s1, s1, s0
fmov s0, 1.0e+0
fsub s0, s1, s0
fcvt d0, s0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
ldr s1, [sp, 28]
ldr s0, [sp, 32]
fmul s1, s1, s0
ldr s0, [sp, 36]
fmul s1, s1, s0
ldr s2, [sp, 28]
ldr s0, [sp, 32]
fmul s2, s2, s0
ldr s0, [sp, 36]
fmul s0, s2, s0
fmul s1, s1, s0
ldr s2, [sp, 28]
ldr s0, [sp, 32]
fmul s2, s2, s0
ldr s0, [sp, 36]
fmul s0, s2, s0
fmul s0, s1, s0
fcvt d0, s0
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 "Usage: %s <VIC discharge> <observed discharge> <start rec> <end rec> <basin size factor> <R2 outfile>\n"
.align 3
.LC1:
.string "r"
.align 3
.LC2:
.string "ERROR: Unable to open VIC simulation file %s.\n"
.align 3
.LC3:
.string "ERROR: Unable to open observed flow file %s.\n"
.align 3
.LC4:
.string "w"
.align 3
.LC5:
.string "R2.out"
.align 3
.LC6:
.string "ERROR: Unable to open output file %s.\n"
.align 3
.LC7:
.string "%*s %f\n"
.align 3
.LC8:
.string "Total observed flow = %f km^3.\n"
.align 3
.LC9:
.string "Total simulated flow = %f km^3.\n"
.align 3
.LC10:
.string "Mean observed flow = %f cfs.\n"
.align 3
.LC11:
.string "Mean simulated flow = %f cfs.\n"
.align 3
.LC12:
.string "R^2 model error = %f.\n"
.align 3
.LC13:
.string "%f\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 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, 136]
mov x1, 0
ldr w0, [sp, 28]
cmp w0, 7
beq .L2
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
ldr x0, [sp, 16]
ldr x0, [x0]
mov x2, x0
adrp x0, .LC0
add x1, x0, :lo12:.LC0
mov x0, x3
bl fprintf
mov w0, 0
bl exit
.L2:
ldr x0, [sp, 16]
add x0, x0, 8
ldr x2, [x0]
adrp x0, .LC1
add x1, x0, :lo12:.LC1
mov x0, x2
bl fopen
str x0, [sp, 96]
ldr x0, [sp, 96]
cmp x0, 0
bne .L3
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
ldr x0, [sp, 16]
add x0, x0, 8
ldr x0, [x0]
mov x2, x0
adrp x0, .LC2
add x1, x0, :lo12:.LC2
mov x0, x3
bl fprintf
mov w0, 1
bl exit
.L3:
ldr x0, [sp, 16]
add x0, x0, 16
ldr x2, [x0]
adrp x0, .LC1
add x1, x0, :lo12:.LC1
mov x0, x2
bl fopen
str x0, [sp, 104]
ldr x0, [sp, 104]
cmp x0, 0
bne .L4
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
ldr x0, [sp, 16]
add x0, x0, 16
ldr x0, [x0]
mov x2, x0
adrp x0, .LC3
add x1, x0, :lo12:.LC3
mov x0, x3
bl fprintf
mov w0, 2
bl exit
.L4:
ldr x0, [sp, 16]
add x0, x0, 48
ldr x2, [x0]
adrp x0, .LC4
add x1, x0, :lo12:.LC4
mov x0, x2
bl fopen
str x0, [sp, 112]
ldr x0, [sp, 112]
cmp x0, 0
bne .L5
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
adrp x0, .LC5
add x2, x0, :lo12:.LC5
adrp x0, .LC6
add x1, x0, :lo12:.LC6
mov x0, x3
bl fprintf
mov w0, 1
bl exit
.L5:
ldr x0, [sp, 16]
add x0, x0, 24
ldr x0, [x0]
bl atoi
str w0, [sp, 76]
ldr x0, [sp, 16]
add x0, x0, 32
ldr x0, [x0]
bl atoi
str w0, [sp, 80]
ldr x0, [sp, 16]
add x0, x0, 40
ldr x0, [x0]
bl atof
fcvt s0, d0
str s0, [sp, 84]
ldr w1, [sp, 80]
ldr w0, [sp, 76]
sub w0, w1, w0
add w0, w0, 1
str w0, [sp, 88]
ldrsw x0, [sp, 88]
mov x1, 4
bl calloc
str x0, [sp, 120]
ldrsw x0, [sp, 88]
mov x1, 4
bl calloc
str x0, [sp, 128]
str wzr, [sp, 48]
b .L6
.L7:
add x0, sp, 44
mov x2, x0
adrp x0, .LC7
add x1, x0, :lo12:.LC7
ldr x0, [sp, 96]
bl __isoc99_fscanf
add x0, sp, 44
mov x2, x0
adrp x0, .LC7
add x1, x0, :lo12:.LC7
ldr x0, [sp, 104]
bl __isoc99_fscanf
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
.L6:
ldr w1, [sp, 48]
ldr w0, [sp, 76]
cmp w1, w0
blt .L7
str wzr, [sp, 52]
ldr s0, [sp, 52]
str s0, [sp, 56]
str wzr, [sp, 64]
ldr s0, [sp, 64]
str s0, [sp, 60]
str wzr, [sp, 48]
b .L8
.L9:
ldrsw x0, [sp, 48]
lsl x0, x0, 2
ldr x1, [sp, 120]
add x0, x1, x0
mov x2, x0
adrp x0, .LC7
add x1, x0, :lo12:.LC7
ldr x0, [sp, 96]
bl __isoc99_fscanf
ldrsw x0, [sp, 48]
lsl x0, x0, 2
ldr x1, [sp, 128]
add x0, x1, x0
mov x2, x0
adrp x0, .LC7
add x1, x0, :lo12:.LC7
ldr x0, [sp, 104]
bl __isoc99_fscanf
ldrsw x0, [sp, 48]
lsl x0, x0, 2
ldr x1, [sp, 120]
add x1, x1, x0
ldrsw x0, [sp, 48]
lsl x0, x0, 2
ldr x2, [sp, 120]
add x0, x2, x0
ldr s0, [x1]
str s0, [x0]
ldrsw x0, [sp, 48]
lsl x0, x0, 2
ldr x1, [sp, 120]
add x0, x1, x0
ldr s1, [x0]
ldrsw x0, [sp, 48]
lsl x0, x0, 2
ldr x1, [sp, 120]
add x0, x1, x0
ldr s0, [sp, 84]
fmul s0, s1, s0
str s0, [x0]
ldrsw x0, [sp, 48]
lsl x0, x0, 2
ldr x1, [sp, 120]
add x0, x1, x0
ldr s0, [x0]
ldr s1, [sp, 56]
fadd s0, s1, s0
str s0, [sp, 56]
ldrsw x0, [sp, 48]
lsl x0, x0, 2
ldr x1, [sp, 128]
add x0, x1, x0
ldr s0, [x0]
ldr s1, [sp, 52]
fadd s0, s1, s0
str s0, [sp, 52]
ldr s0, [sp, 60]
fcvt d1, s0
ldrsw x0, [sp, 48]
lsl x0, x0, 2
ldr x1, [sp, 120]
add x0, x1, x0
ldr s0, [x0]
fcvt d0, s0
adrp x0, .LC14
ldr d2, [x0, #:lo12:.LC14]
fmul d2, d0, d2
fmov d0, 2.4e+1
fmul d0, d2, d0
mov x0, 4633641066610819072
fmov d2, x0
fmul d0, d0, d2
mov x0, 4633641066610819072
fmov d2, x0
fmul d0, d0, d2
fadd d0, d1, d0
fcvt s0, d0
str s0, [sp, 60]
ldr s0, [sp, 64]
fcvt d1, s0
ldrsw x0, [sp, 48]
lsl x0, x0, 2
ldr x1, [sp, 128]
add x0, x1, x0
ldr s0, [x0]
fcvt d0, s0
adrp x0, .LC14
ldr d2, [x0, #:lo12:.LC14]
fmul d2, d0, d2
fmov d0, 2.4e+1
fmul d0, d2, d0
mov x0, 4633641066610819072
fmov d2, x0
fmul d0, d0, d2
mov x0, 4633641066610819072
fmov d2, x0
fmul d0, d0, d2
fadd d0, d1, d0
fcvt s0, d0
str s0, [sp, 64]
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
.L8:
ldr w1, [sp, 48]
ldr w0, [sp, 88]
cmp w1, w0
blt .L9
ldr s0, [sp, 88]
scvtf s0, s0
ldr s1, [sp, 56]
fdiv s0, s1, s0
str s0, [sp, 56]
ldr s0, [sp, 88]
scvtf s0, s0
ldr s1, [sp, 52]
fdiv s0, s1, s0
str s0, [sp, 52]
mov w0, 27432
movk w0, 0x4e6e, lsl 16
fmov s1, w0
ldr s0, [sp, 60]
fdiv s0, s0, s1
str s0, [sp, 60]
mov w0, 27432
movk w0, 0x4e6e, lsl 16
fmov s1, w0
ldr s0, [sp, 64]
fdiv s0, s0, s1
str s0, [sp, 64]
str wzr, [sp, 72]
ldr s0, [sp, 72]
str s0, [sp, 68]
str wzr, [sp, 48]
b .L10
.L11:
ldrsw x0, [sp, 48]
lsl x0, x0, 2
ldr x1, [sp, 128]
add x0, x1, x0
ldr s1, [x0]
ldrsw x0, [sp, 48]
lsl x0, x0, 2
ldr x1, [sp, 120]
add x0, x1, x0
ldr s0, [x0]
fsub s0, s1, s0
fcvt d0, s0
fmov d1, 2.0e+0
bl pow
fmov d1, d0
ldr s0, [sp, 68]
fcvt d0, s0
fadd d0, d1, d0
fcvt s0, d0
str s0, [sp, 68]
ldrsw x0, [sp, 48]
lsl x0, x0, 2
ldr x1, [sp, 128]
add x0, x1, x0
ldr s1, [x0]
ldr s0, [sp, 52]
fsub s0, s1, s0
fcvt d0, s0
fmov d1, 2.0e+0
bl pow
fmov d1, d0
ldr s0, [sp, 72]
fcvt d0, s0
fadd d0, d1, d0
fcvt s0, d0
str s0, [sp, 72]
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
.L10:
ldr w1, [sp, 48]
ldr w0, [sp, 88]
cmp w1, w0
blt .L11
ldr s0, [sp, 72]
ldr s1, [sp, 68]
fdiv s0, s1, s0
fcvt d0, s0
fmov d1, 1.0e+0
fsub d0, d1, d0
fcvt s0, d0
fneg s0, s0
str s0, [sp, 92]
ldr s0, [sp, 64]
fcvt d0, s0
adrp x0, .LC8
add x1, x0, :lo12:.LC8
ldr x0, [sp, 112]
bl fprintf
ldr s0, [sp, 60]
fcvt d0, s0
adrp x0, .LC9
add x1, x0, :lo12:.LC9
ldr x0, [sp, 112]
bl fprintf
ldr s0, [sp, 52]
fcvt d0, s0
adrp x0, .LC10
add x1, x0, :lo12:.LC10
ldr x0, [sp, 112]
bl fprintf
ldr s0, [sp, 56]
fcvt d0, s0
adrp x0, .LC11
add x1, x0, :lo12:.LC11
ldr x0, [sp, 112]
bl fprintf
ldr s0, [sp, 92]
fcvt d0, s0
adrp x0, .LC12
add x1, x0, :lo12:.LC12
ldr x0, [sp, 112]
bl fprintf
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x2, [x0]
ldr s0, [sp, 92]
fcvt d0, s0
adrp x0, .LC13
add x1, x0, :lo12:.LC13
mov x0, x2
bl fprintf
ldr x0, [sp, 120]
bl free
ldr x0, [sp, 128]
bl free
ldr x0, [sp, 96]
bl fclose
ldr x0, [sp, 104]
bl fclose
ldr x0, [sp, 112]
bl fclose
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 .L13
bl __stack_chk_fail
.L13:
mov w0, w1
ldp x29, x30, [sp], 144
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
.section .rodata
.align 3
.LC14:
.word -1565264753
.word 1067253527
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "%d, %d\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 w0, [sp, 28]
str x1, [sp, 16]
mov w0, 1
str w0, [sp, 36]
mov w0, 3
str w0, [sp, 40]
ldr w0, [sp, 36]
str w0, [sp, 44]
ldr w0, [sp, 40]
str w0, [sp, 36]
ldr w0, [sp, 44]
str w0, [sp, 40]
ldr w2, [sp, 40]
ldr w1, [sp, 36]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
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
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global monster_1_Sprite
.section .rodata
.align 2
.type monster_1_Sprite, %object
.size monster_1_Sprite, 4096
monster_1_Sprite:
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\016"
.string "\016"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\017"
.string "\016"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\r\r"
.string ""
.string "\016"
.string ""
.string "\r\016\016\017\r"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\r\r\r"
.string ""
.string ""
.string ""
.string ""
.string "\017\017\017\r"
.string ""
.string ""
.string ""
.string "\016\017\017\r"
.string ""
.string ""
.string ""
.string "\r\016\017"
.string ""
.string ""
.string ""
.string ""
.string "\016\017\017\r\f\f\f"
.string "\r\016\017\020\f\021\021"
.string "\r\020\020\021\021\021\022"
.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 "\f\f"
.string ""
.string ""
.string ""
.string ""
.string "\f"
.string "\f"
.string ""
.string ""
.string ""
.string "\f"
.string ""
.string ""
.string "\f\020\020\020\f"
.string ""
.string ""
.string "\022\f\023\023\020\020"
.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 "\r\016\016\016\017\017"
.string ""
.string ""
.string "\r\r\r\r\016"
.string ""
.string ""
.string "\017"
.string ""
.string ""
.string "\r"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\017"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\f"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\020\f"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\020\024"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\f\024"
.string "\020\021\021\021\022\022\022\016\f\021\022\022\022\022\022\020\f\f\022\022\022\022\022\f\024\021\f\022\022\022\f\f\024\024\022\022\022\022\f\f\024\024\022\022\022\022\f\f\f\024\021\022\022\022\022\024\f\f\021\022\022\022\022\022\022\022\023\023\023\f\f\022\022\022\023\023\f\n\n\f\f\f\f\023\f\n\n\n\n\n\n\f\f\n\n\n\n\f\n\f\023\f\f\n\n\n\n\f\023\023\023\f\f\f\f\023\022\023\023\022\022\022\022\022\022\022\f\f\f"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\n\n\f"
.string ""
.string ""
.string ""
.string ""
.string "\f\n\f"
.string ""
.string ""
.string ""
.string ""
.string "\n\n\f"
.string ""
.string ""
.string ""
.string ""
.string "\f\f"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\023"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\023\020"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\022\020"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\020\f\024"
.string ""
.string ""
.string ""
.string ""
.string "\020\f\f"
.string ""
.string ""
.string ""
.string ""
.string "\020\020\f"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\020\025"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\020\026"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\020\026"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\f\020"
.string ""
.string ""
.string ""
.string ""
.string "\f\f\f\024\024\f\021\021\022\022\022\024\024\024\024\021\021\022\022\f\024\024\024\024\021\022\022\f\024\024\024\024\021\021\022\025\025\024\024\024\024\021\021\026\025\025\024\024\024\021\021\026\026\026\025\025\024\021\024\020\020\025\026\026\025\f\020\022\022\022\022\022\f\f\022\022\022\022\022\022\022\023\022\022\022\022\022\022\023\023\020\022\022\022\023\023\023\023\020\023\023\023\023\023\020\020"
.string "\023\f\020\020\020\f"
.string ""
.string "\020\f"
.string ""
.string ""
.string ""
.string "\f"
.string ""
.string ""
.string "\f"
.string ""
.string ""
.string "\f"
.string "\022\020"
.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 ""
.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 "\f\f"
.string ""
.string ""
.string ""
.string ""
.string "\f"
.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 "\020\020\f\025\025\f"
.string ""
.string ""
.string ""
.string ""
.string "\f"
.string ""
.string "\f"
.string ""
.string ""
.string ""
.string ""
.string "\f"
.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 "\f\f"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\f"
.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 "\016"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\017\r"
.string ""
.string ""
.string ""
.string ""
.string "\017"
.string "\r"
.string ""
.string ""
.string ""
.string "\r\017\017"
.string ""
.string ""
.string ""
.string ""
.string "\016\017\016"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\017"
.string ""
.string ""
.string ""
.string ""
.string "\017\017"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\017\017"
.string "\017"
.string ""
.string ""
.string ""
.string "\016\016\017"
.string ""
.string "\f\f\f\r\017\016"
.string "\020\f\021\021"
.string "\r\020\020\021\021\021\022"
.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 "\f\f"
.string ""
.string ""
.string ""
.string ""
.string "\f"
.string "\f"
.string ""
.string ""
.string ""
.string "\f"
.string ""
.string ""
.string "\f\020\020\020\f"
.string ""
.string ""
.string "\022\f\023\023\020\020"
.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 "\017"
.string "\r\016\017\017"
.string ""
.string ""
.string ""
.string ""
.string "\r\r\016"
.string ""
.string ""
.string ""
.string "\017"
.string ""
.string "\r"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\f"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\020\f"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\020\024"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\f\024"
.string "\020\021\021\021\022\022\022\016\f\021\022\022\022\022\022\020\f\f\022\022\022\022\022\f\024\021\f\022\022\022\f\f\024\024\022\022\022\022\f\f\024\024\022\022\022\022\f\f\f\024\021\022\022\022\022\024\f\f\021\022\022\022\022\022\022\022\023\023\023\f\f\022\022\022\023\023\f\n\n\f\f\f\f\023\f\n\n\n\n\n\n\f\f\n\n\n\n\f\n\f\023\f\f\n\n\n\n\f\023\023\023\f\f\f\f\023\022\023\023\022\022\022\022\022\022\022\f\f\f"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\n\n\f"
.string ""
.string ""
.string ""
.string ""
.string "\f\n\f"
.string ""
.string ""
.string ""
.string ""
.string "\n\n\f"
.string ""
.string ""
.string ""
.string ""
.string "\f\f"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\023"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\023\020"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\022\020"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\020\f\024"
.string ""
.string ""
.string ""
.string ""
.string "\020\f\f"
.string ""
.string ""
.string ""
.string ""
.string "\020\020\f"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\020\025"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\020\026"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\020\026"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\f\020"
.string ""
.string ""
.string ""
.string ""
.string "\f\f\f\024\024\f\021\021\022\022\022\024\024\024\024\021\021\022\022\f\024\024\024\024\021\022\022\f\024\024\024\024\021\021\022\025\025\024\024\024\024\021\021\026\025\025\024\024\024\021\021\026\026\026\025\025\024\021\024\020\020\025\026\026\025\f\020\022\022\022\022\022\f\f\022\022\022\022\022\022\022\023\022\022\022\022\022\022\023\023\020\022\022\022\023\023\023\023\020\023\023\023\023\023\020\020"
.string "\023\f\020\020\020\f"
.string ""
.string "\020\f"
.string ""
.string ""
.string ""
.string "\f"
.string ""
.string ""
.string "\f"
.string ""
.string ""
.string "\f"
.string "\022\020"
.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 ""
.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 "\f\f"
.string ""
.string ""
.string ""
.string ""
.string "\f"
.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 "\020\020\f\025\025\f"
.string ""
.string ""
.string ""
.string ""
.string "\f"
.string ""
.string "\f"
.string ""
.string ""
.string ""
.string ""
.string "\f"
.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 "\f\f"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\f"
.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 "\017"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\r"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\017"
.string "\017\017\016"
.string ""
.string ""
.string ""
.string "\r\017\017\017"
.string ""
.string ""
.string ""
.string "\r\017\016\017"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\017"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\017\017\017\017"
.string ""
.string ""
.string ""
.string "\017\017\017\016\017"
.string ""
.string ""
.string ""
.string "\016\017\016"
.string "\f\f\f"
.string "\r\016\017\020\f\021\021"
.string "\016\020\020\021\021\021\022"
.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 "\f\f"
.string ""
.string ""
.string ""
.string ""
.string "\f"
.string "\f"
.string ""
.string ""
.string ""
.string "\f"
.string ""
.string ""
.string "\f\020\020\020\f"
.string ""
.string ""
.string "\022\f\023\023\020\020"
.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 "\r\017\017"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\r\016"
.string ""
.string ""
.string "\017"
.string ""
.string ""
.string "\r"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\f"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\020\f"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\020\024"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\f\024\017\020\021\021\021\022\022\022\017\f\021\022\022\022\022\022\020\f\f\022\022\022\022\022\f\024\021\f\022\022\022\f\f\024\024\022\022\022\022\f\f\024\024\022\022\022\022\f\f\f\024\021\022\022\022\022\024\f\f\021\022\022\022\022\022\022\022\023\023\023\f\f\022\022\022\023\023\f\n\n\f\f\f\f\023\f\n\n\n\n\n\n\f\f\n\n\n\n\f\n\f\023\f\f\n\n\n\n\f\023\023\023\f\f\f\f\023\022\023\023\022\022\022\022\022\022\022\f\f\f"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\n\n\f"
.string ""
.string ""
.string ""
.string ""
.string "\f\n\f"
.string ""
.string ""
.string ""
.string ""
.string "\n\n\f"
.string ""
.string ""
.string ""
.string ""
.string "\f\f"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\023"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\023\020"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\022\020"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\020\f\024"
.string ""
.string ""
.string ""
.string ""
.string "\020\f\f"
.string ""
.string ""
.string ""
.string ""
.string "\020\020\f"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\020\025"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\020\026"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\020\026"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\f\020"
.string ""
.string ""
.string ""
.string ""
.string "\f\f\f\024\024\f\021\021\022\022\022\024\024\024\024\021\021\022\022\f\024\024\024\024\021\022\022\f\024\024\024\024\021\021\022\025\025\024\024\024\024\021\021\026\025\025\024\024\024\021\021\026\026\026\025\025\024\021\024\020\020\025\026\026\025\f\020\022\022\022\022\022\f\f\022\022\022\022\022\022\022\023\022\022\022\022\022\022\023\023\020\022\022\022\023\023\023\023\020\023\023\023\023\023\020\020"
.string "\023\f\020\020\020\f"
.string ""
.string "\020\f"
.string ""
.string ""
.string ""
.string "\f"
.string ""
.string ""
.string "\f"
.string ""
.string ""
.string "\f"
.string "\022\020"
.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 ""
.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 "\f\f"
.string ""
.string ""
.string ""
.string ""
.string "\f"
.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 "\020\020\f\025\025\f"
.string ""
.string ""
.string ""
.string ""
.string "\f"
.string ""
.string "\f"
.string ""
.string ""
.string ""
.string ""
.string "\f"
.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 "\f\f"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\f"
.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 "\016"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\r\017\016"
.string ""
.string ""
.string "\016"
.string "\r\017\017"
.string ""
.string ""
.string ""
.string "\r\017\017\r"
.string ""
.string ""
.string ""
.string "\r\016\016\017"
.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 "\017"
.string "\016"
.string ""
.string ""
.string ""
.string ""
.string "\016\016"
.string ""
.string ""
.string "\f\f\f\017\017\016"
.string "\020\f\021\021\r\r\020\020\021\021\021\022"
.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 "\f\f"
.string ""
.string ""
.string ""
.string ""
.string "\f"
.string "\f"
.string ""
.string ""
.string ""
.string "\f"
.string ""
.string ""
.string "\f\020\020\020\f"
.string ""
.string ""
.string "\022\f\023\023\020\020"
.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 "\r\016\017"
.string ""
.string ""
.string "\016"
.string ""
.string "\r\016"
.string ""
.string ""
.string ""
.string "\016"
.string ""
.string "\r"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\f"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\020\f"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\020\024"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\f\024"
.string "\020\021\021\021\022\022\022\016\f\021\022\022\022\022\022\020\f\f\022\022\022\022\022\f\024\021\f\022\022\022\f\f\024\024\022\022\022\022\f\f\024\024\022\022\022\022\f\f\f\024\021\022\022\022\022\024\f\f\021\022\022\022\022\022\022\022\023\023\023\f\f\022\022\022\023\023\f\n\n\f\f\f\f\023\f\n\n\n\n\n\n\f\f\n\n\n\n\f\n\f\023\f\f\n\n\n\n\f\023\023\023\f\f\f\f\023\022\023\023\022\022\022\022\022\022\022\f\f\f"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\n\n\f"
.string ""
.string ""
.string ""
.string ""
.string "\f\n\f"
.string ""
.string ""
.string ""
.string ""
.string "\n\n\f"
.string ""
.string ""
.string ""
.string ""
.string "\f\f"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\023"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\023\020"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\022\020"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\020\f\024"
.string ""
.string ""
.string ""
.string ""
.string "\020\f\f"
.string ""
.string ""
.string ""
.string ""
.string "\020\020\f"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\020\025"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\020\026"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\020\026"
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\f\020"
.string ""
.string ""
.string ""
.string ""
.string "\f\f\f\024\024\f\021\021\022\022\022\024\024\024\024\021\021\022\022\f\024\024\024\024\021\022\022\f\024\024\024\024\021\021\022\025\025\024\024\024\024\021\021\026\025\025\024\024\024\021\021\026\026\026\025\025\024\021\024\020\020\025\026\026\025\f\020\022\022\022\022\022\f\f\022\022\022\022\022\022\022\023\022\022\022\022\022\022\023\023\020\022\022\022\023\023\023\023\020\023\023\023\023\023\020\020"
.string "\023\f\020\020\020\f"
.string ""
.string "\020\f"
.string ""
.string ""
.string ""
.string "\f"
.string ""
.string ""
.string "\f"
.string ""
.string ""
.string "\f"
.string "\022\020"
.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 ""
.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 "\f\f"
.string ""
.string ""
.string ""
.string ""
.string "\f"
.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 "\020\020\f\025\025\f"
.string ""
.string ""
.string ""
.string ""
.string "\f"
.string ""
.string "\f"
.string ""
.string ""
.string ""
.string ""
.string "\f"
.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 "\f\f"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\f"
.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 ""
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string " sum : %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
mov w0, 1
str w0, [sp, 24]
str wzr, [sp, 28]
.L2:
ldr w1, [sp, 28]
ldr w0, [sp, 24]
add w0, w1, w0
str w0, [sp, 28]
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
ldr w0, [sp, 24]
cmp w0, 0
ble .L2
ldr w1, [sp, 28]
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
.align 2
.global determinante
.type determinante, %function
determinante:
.LFB0:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
ldr x0, [sp, 8]
ldr w1, [x0]
ldr x0, [sp, 8]
add x0, x0, 12
ldr w0, [x0, 4]
mul w1, w1, w0
ldr x0, [sp, 8]
add x0, x0, 24
ldr w0, [x0, 8]
mul w1, w1, w0
ldr x0, [sp, 8]
ldr w2, [x0, 4]
ldr x0, [sp, 8]
add x0, x0, 12
ldr w0, [x0, 8]
mul w2, w2, w0
ldr x0, [sp, 8]
add x0, x0, 24
ldr w0, [x0]
mul w0, w2, w0
add w1, w1, w0
ldr x0, [sp, 8]
ldr w2, [x0, 8]
ldr x0, [sp, 8]
add x0, x0, 24
ldr w0, [x0, 4]
mul w2, w2, w0
ldr x0, [sp, 8]
add x0, x0, 12
ldr w0, [x0]
mul w0, w2, w0
add w1, w1, w0
ldr x0, [sp, 8]
add x0, x0, 24
ldr w2, [x0]
ldr x0, [sp, 8]
add x0, x0, 12
ldr w0, [x0, 4]
mul w2, w2, w0
ldr x0, [sp, 8]
ldr w0, [x0, 8]
mul w0, w2, w0
sub w1, w1, w0
ldr x0, [sp, 8]
add x0, x0, 24
ldr w2, [x0, 4]
ldr x0, [sp, 8]
add x0, x0, 12
ldr w0, [x0, 8]
mul w2, w2, w0
ldr x0, [sp, 8]
ldr w0, [x0]
mul w0, w2, w0
sub w1, w1, w0
ldr x0, [sp, 8]
add x0, x0, 24
ldr w2, [x0, 8]
ldr x0, [sp, 8]
ldr w0, [x0, 4]
mul w2, w2, w0
ldr x0, [sp, 8]
add x0, x0, 12
ldr w0, [x0]
mul w0, w2, w0
sub w0, w1, w0
str w0, [sp, 28]
ldr w0, [sp, 28]
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size determinante, .-determinante
.section .rodata
.align 3
.LC0:
.string "Digite a linha %i: "
.align 3
.LC1:
.string "%i"
.text
.align 2
.global main
.type main, %function
main:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -96]!
.cfi_def_cfa_offset 96
.cfi_offset 29, -96
.cfi_offset 30, -88
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, 88]
mov x1, 0
str wzr, [sp, 40]
b .L4
.L7:
ldr w1, [sp, 40]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
str wzr, [sp, 44]
b .L5
.L6:
add x2, sp, 48
ldrsw x3, [sp, 44]
ldrsw x1, [sp, 40]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
add x0, x3, x0
lsl x0, x0, 2
add x0, x2, x0
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L5:
ldr w0, [sp, 44]
cmp w0, 2
ble .L6
ldr w0, [sp, 40]
add w0, w0, 1
str w0, [sp, 40]
.L4:
ldr w0, [sp, 40]
cmp w0, 2
ble .L7
add x0, sp, 48
bl determinante
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, 88]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L9
bl __stack_chk_fail
.L9:
mov w0, w1
ldp x29, x30, [sp], 96
.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
.local pulStack
.comm pulStack,512,8
.global g_pfnVectors
.section .isr_vector,"aw"
.align 3
.type g_pfnVectors, %object
.size g_pfnVectors, 480
g_pfnVectors:
.xword pulStack+512
.xword ResetISR
.xword NmiSR
.xword FaultISR
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword 0
.xword 0
.xword 0
.xword 0
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword 0
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword GPIOGIntHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.xword IntDefaultHandler
.text
.align 2
.global ResetISR
.type ResetISR, %function
ResetISR:
.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:_etext
ldr x0, [x0, #:got_lo12:_etext]
str x0, [sp, 16]
adrp x0, :got:_data
ldr x0, [x0, #:got_lo12:_data]
str x0, [sp, 24]
b .L2
.L3:
ldr x1, [sp, 16]
add x0, x1, 8
str x0, [sp, 16]
ldr x0, [sp, 24]
add x2, x0, 8
str x2, [sp, 24]
ldr x1, [x1]
str x1, [x0]
.L2:
ldr x1, [sp, 24]
adrp x0, :got:_edata
ldr x0, [x0, #:got_lo12:_edata]
cmp x1, x0
bcc .L3
#APP
// 168 "program.c" 1
ldr r0, =_bss
ldr r1, =_ebss
mov r2, #0
.thumb_func
zero_loop:
cmp r0, r1
it lt
strlt r2, [r0], #4
blt zero_loop
// 0 "" 2
#NO_APP
bl main
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size ResetISR, .-ResetISR
.align 2
.type NmiSR, %function
NmiSR:
.LFB1:
.cfi_startproc
.L5:
b .L5
.cfi_endproc
.LFE1:
.size NmiSR, .-NmiSR
.align 2
.type FaultISR, %function
FaultISR:
.LFB2:
.cfi_startproc
.L7:
b .L7
.cfi_endproc
.LFE2:
.size FaultISR, .-FaultISR
.align 2
.type IntDefaultHandler, %function
IntDefaultHandler:
.LFB3:
.cfi_startproc
.L9:
b .L9
.cfi_endproc
.LFE3:
.size IntDefaultHandler, .-IntDefaultHandler
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global cov_radii
.section .rodata
.align 3
.type cov_radii, %object
.size cov_radii, 776
cov_radii:
.word 0
.word 1073741824
.word 1030792151
.word 1070847754
.word 515396076
.word 1070721925
.word 1202590843
.word 1072986849
.word -343597384
.word 1072609361
.word -1374389535
.word 1072357703
.word -2061584302
.word 1072189931
.word -343597384
.word 1072085073
.word 1374389535
.word 1071980216
.word -1546188227
.word 1071791472
.word 687194767
.word 1071812444
.word 687194767
.word 1073385308
.word 687194767
.word 1073123164
.word -171798692
.word 1072913448
.word 1546188227
.word 1072808591
.word 1374389535
.word 1072766648
.word -858993459
.word 1072745676
.word -2061584302
.word 1072714219
.word -1889785610
.word 1072756162
.word -1546188227
.word 1073757552
.word -1030792151
.word 1073490165
.word 858993459
.word 1073427251
.word -1717986918
.word 1073322393
.word 1202590843
.word 1073248993
.word -1546188227
.word 1073102192
.word 1546188227
.word 1073332879
.word -2061584302
.word 1073238507
.word 0
.word 1073217536
.word 1030792151
.word 1072944906
.word 1374389535
.word 1073028792
.word -1202590843
.word 1072923934
.word -1202590843
.word 1072923934
.word 858993459
.word 1072902963
.word 1889785610
.word 1072892477
.word 858993459
.word 1072902963
.word 858993459
.word 1072902963
.word 687194767
.word 1072861020
.word -1717986918
.word 1073846681
.word 858993459
.word 1073689395
.word 1717986918
.word 1073636966
.word 0
.word 1073479680
.word -1546188227
.word 1073364336
.word 171798692
.word 1073259479
.word -1202590843
.word 1073186078
.word -171798692
.word 1073175592
.word -343597384
.word 1073133649
.word -1546188227
.word 1073102192
.word 858993459
.word 1073165107
.word 1889785610
.word 1073154621
.word -343597384
.word 1073133649
.word -1546188227
.word 1073102192
.word -1546188227
.word 1073102192
.word -515396076
.word 1073091706
.word -1546188227
.word 1073102192
.word 1717986918
.word 1073112678
.word -1202590843
.word 1073972510
.word 858993459
.word 1073820467
.word 687194767
.word 1073778524
.word -2061584302
.word 1073762795
.word -1546188227
.word 1073757552
.word -515396076
.word 1073747066
.word 1030792151
.word 1073731338
.word 2061584302
.word 1073720852
.word 2061584302
.word 1073720852
.word -171798692
.word 1073699880
.word 1889785610
.word 1073678909
.word -343597384
.word 1073657937
.word -343597384
.word 1073657937
.word -1546188227
.word 1073626480
.word 1717986918
.word 1073636966
.word 515396076
.word 1073605509
.word 515396076
.word 1073605509
.word 0
.word 1073479680
.word 858993459
.word 1073427251
.word 515396076
.word 1073343365
.word -1030792151
.word 1073228021
.word 1889785610
.word 1073154621
.word 687194767
.word 1073123164
.word 1546188227
.word 1073070735
.word 1546188227
.word 1073070735
.word 1374389535
.word 1073028792
.word 858993459
.word 1073165107
.word -171798692
.word 1073175592
.word 2061584302
.word 1073196564
.word 1717986918
.word 1073112678
.word 0
.word 1073217536
.word 0
.word 1073217536
.word -858993459
.word 1074056396
.word 2061584302
.word 1073851924
.word 858993459
.word 1073820467
.word 1202590843
.word 1073773281
.word 0
.word 1073741824
.word -171798692
.word 1073699880
.word 1717986918
.word 1073636966
.word 515396076
.word 1073605509
.word -858993459
.word 1073532108
.word 1889785610
.word 1073416765
``` |
### 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 70811
.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_BEFORE_ENFORCEMENT, %object
.size MIN_PEER_PROTO_VERSION_BEFORE_ENFORCEMENT, 4
MIN_PEER_PROTO_VERSION_BEFORE_ENFORCEMENT:
.word 70710
.align 2
.type MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT, %object
.size MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT, 4
MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT:
.word 70811
.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 70909
.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 70005
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string " "
.align 3
.LC1:
.string " %d "
.align 3
.LC2:
.string "%d "
.align 3
.LC3:
.string "%d "
.align 3
.LC4:
.string "[X]"
.align 3
.LC5:
.string " G "
.align 3
.LC6:
.string " P "
.align 3
.LC7:
.string " T "
.text
.align 2
.global print_maze
.type print_maze, %function
print_maze:
.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 x0, [sp, 24]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
str wzr, [sp, 36]
b .L2
.L5:
ldr w0, [sp, 36]
cmp w0, 9
bgt .L3
ldr w1, [sp, 36]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
b .L4
.L3:
ldr w1, [sp, 36]
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
.L4:
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L2:
ldr w0, [sp, 36]
cmp w0, 29
ble .L5
mov w0, 10
bl putchar
str wzr, [sp, 44]
str wzr, [sp, 36]
b .L6
.L19:
ldr w0, [sp, 44]
cmp w0, 9
bgt .L7
ldr w0, [sp, 44]
add w1, w0, 1
str w1, [sp, 44]
mov w1, w0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
b .L8
.L7:
ldr w0, [sp, 44]
add w1, w0, 1
str w1, [sp, 44]
mov w1, w0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
.L8:
str wzr, [sp, 40]
b .L9
.L18:
ldrsw x1, [sp, 36]
mov x0, x1
lsl x0, x0, 4
sub x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 24]
add x1, x0, x1
ldrsw x0, [sp, 40]
ldrb w0, [x1, x0]
cmp w0, 84
beq .L10
cmp w0, 84
bgt .L11
cmp w0, 80
beq .L12
cmp w0, 80
bgt .L11
cmp w0, 71
beq .L13
cmp w0, 71
bgt .L11
cmp w0, 57
beq .L14
cmp w0, 57
bgt .L11
cmp w0, 55
beq .L15
cmp w0, 55
bgt .L11
cmp w0, 54
beq .L16
cmp w0, 54
bgt .L11
cmp w0, 32
beq .L17
cmp w0, 48
bne .L11
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
b .L11
.L15:
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
b .L11
.L16:
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
b .L11
.L13:
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
b .L11
.L12:
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl printf
b .L11
.L17:
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
b .L11
.L10:
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl printf
b .L11
.L14:
mov w0, 32
bl putchar
nop
.L11:
ldr w0, [sp, 40]
add w0, w0, 1
str w0, [sp, 40]
.L9:
ldr w0, [sp, 40]
cmp w0, 29
ble .L18
mov w0, 10
bl putchar
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L6:
ldr w0, [sp, 36]
cmp w0, 22
ble .L19
nop
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size print_maze, .-print_maze
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global PKEY_Photo_FNumberNumerator
.section .rodata
.align 3
.type PKEY_Photo_FNumberNumerator, %object
.size PKEY_Photo_FNumberNumerator, 24
PKEY_Photo_FNumberNumerator:
.xword 462910346
.hword -516
.hword 17967
.ascii "\235\223\031W\340\213\351\f"
.zero 4
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global average
.type average, %function
average:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -288]!
.cfi_def_cfa_offset 288
.cfi_offset 29, -288
.cfi_offset 30, -280
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 232]
str x2, [sp, 240]
str x3, [sp, 248]
str x4, [sp, 256]
str x5, [sp, 264]
str x6, [sp, 272]
str x7, [sp, 280]
str q0, [sp, 96]
str q1, [sp, 112]
str q2, [sp, 128]
str q3, [sp, 144]
str q4, [sp, 160]
str q5, [sp, 176]
str q6, [sp, 192]
str q7, [sp, 208]
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 xzr, [sp, 48]
add x0, sp, 288
str x0, [sp, 56]
add x0, sp, 288
str x0, [sp, 64]
add x0, sp, 224
str x0, [sp, 72]
mov w0, -56
str w0, [sp, 80]
mov w0, -128
str w0, [sp, 84]
str wzr, [sp, 44]
b .L2
.L7:
ldr w1, [sp, 84]
ldr x0, [sp, 56]
cmp w1, 0
blt .L3
add x1, x0, 15
and x1, x1, -8
str x1, [sp, 56]
b .L4
.L3:
add w2, w1, 16
str w2, [sp, 84]
ldr w2, [sp, 84]
cmp w2, 0
ble .L5
add x1, x0, 15
and x1, x1, -8
str x1, [sp, 56]
b .L4
.L5:
ldr x2, [sp, 72]
sxtw x0, w1
add x0, x2, x0
.L4:
ldr d0, [x0]
ldr d1, [sp, 48]
fadd d0, d1, d0
str d0, [sp, 48]
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L2:
ldr w1, [sp, 44]
ldr w0, [sp, 28]
cmp w1, w0
blt .L7
ldr w0, [sp, 28]
scvtf d0, w0
ldr d1, [sp, 48]
fdiv d0, d1, d0
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 .L9
bl __stack_chk_fail
.L9:
ldp x29, x30, [sp], 288
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size average, .-average
.align 2
.global message
.type message, %function
message:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -304]!
.cfi_def_cfa_offset 304
.cfi_offset 29, -304
.cfi_offset 30, -296
mov x29, sp
str x0, [sp, 56]
str x1, [sp, 248]
str x2, [sp, 256]
str x3, [sp, 264]
str x4, [sp, 272]
str x5, [sp, 280]
str x6, [sp, 288]
str x7, [sp, 296]
str q0, [sp, 112]
str q1, [sp, 128]
str q2, [sp, 144]
str q3, [sp, 160]
str q4, [sp, 176]
str q5, [sp, 192]
str q6, [sp, 208]
str q7, [sp, 224]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 104]
mov x1, 0
add x0, sp, 304
str x0, [sp, 72]
add x0, sp, 304
str x0, [sp, 80]
add x0, sp, 240
str x0, [sp, 88]
mov w0, -56
str w0, [sp, 96]
mov w0, -128
str w0, [sp, 100]
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x3, [x0]
add x0, sp, 16
add x1, sp, 72
ldp q0, q1, [x1]
stp q0, q1, [x0]
add x0, sp, 16
mov x2, x0
ldr x1, [sp, 56]
mov x0, x3
bl vfprintf
str w0, [sp, 68]
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x1, x0
mov w0, 10
bl fputc
ldr w0, [sp, 68]
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 .L12
bl __stack_chk_fail
.L12:
mov w0, w1
ldp x29, x30, [sp], 304
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size message, .-message
.section .rodata
.align 3
.LC0:
.string "this is message"
.align 3
.LC1:
.string "average: %lf"
.text
.align 2
.global main
.type main, %function
main:
.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 w0, [sp, 28]
str x1, [sp, 16]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl message
mov x0, 211106232532992
movk x0, 0x4052, lsl 48
fmov d4, x0
adrp x0, .LC2
ldr d3, [x0, #:lo12:.LC2]
adrp x0, .LC3
ldr d2, [x0, #:lo12:.LC3]
adrp x0, .LC4
ldr d1, [x0, #:lo12:.LC4]
fmov d0, 2.5e+1
mov w0, 5
bl average
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl message
mov w0, 0
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size main, .-main
.section .rodata
.align 3
.LC2:
.word 1717986918
.word 1080026726
.align 3
.LC3:
.word -858993459
.word 1078529228
.align 3
.LC4:
.word -1717986918
.word 1078057369
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global compare
.type compare, %function
compare:
.LFB6:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
str x1, [sp]
ldr x0, [sp, 8]
ldr w1, [x0]
ldr x0, [sp]
ldr w0, [x0]
cmp w1, w0
bge .L2
mov w0, -1
b .L3
.L2:
ldr x0, [sp, 8]
ldr w1, [x0]
ldr x0, [sp]
ldr w0, [x0]
cmp w1, w0
ble .L4
mov w0, 1
b .L3
.L4:
mov w0, 0
.L3:
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size compare, .-compare
.section .rodata
.align 3
.LC0:
.string "%d"
.align 3
.LC1:
.string "Find value: %d\n"
.align 3
.LC2:
.string "Can't Find"
.text
.align 2
.global main
.type main, %function
main:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -448]!
.cfi_def_cfa_offset 448
.cfi_offset 29, -448
.cfi_offset 30, -440
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 440]
mov x1, 0
add x0, sp, 20
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
str wzr, [sp, 28]
b .L6
.L7:
add x1, sp, 40
ldrsw x0, [sp, 28]
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, 28]
add w0, w0, 1
str w0, [sp, 28]
.L6:
ldr w0, [sp, 20]
ldr w1, [sp, 28]
cmp w1, w0
blt .L7
.L10:
add x0, sp, 24
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
ldr w0, [sp, 20]
sxtw x2, w0
add x1, sp, 40
add x5, sp, 24
adrp x0, compare
add x4, x0, :lo12:compare
mov x3, 4
mov x0, x5
bl bsearch
str x0, [sp, 32]
ldr x0, [sp, 32]
cmp x0, 0
beq .L8
ldr x0, [sp, 32]
ldr w0, [x0]
mov w1, w0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
b .L10
.L8:
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl puts
b .L10
.cfi_endproc
.LFE7:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Nthr - %lld\n"
.text
.align 2
.global comp
.type comp, %function
comp:
.LFB6:
.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]
ldr x0, [sp, 32]
str x0, [sp, 72]
bl omp_get_num_threads
sxtw x0, w0
str x0, [sp, 80]
ldr x1, [sp, 80]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
ldr x0, [sp, 80]
lsl x0, x0, 3
bl malloc
str x0, [sp, 88]
ldr x0, [sp, 80]
lsl x0, x0, 3
bl malloc
str x0, [sp, 96]
bl omp_get_thread_num
sxtw x0, w0
str x0, [sp, 104]
str xzr, [sp, 56]
str xzr, [sp, 48]
b .L2
.L3:
ldr x0, [sp, 48]
lsl x0, x0, 3
ldr x1, [sp, 40]
add x0, x1, x0
ldr x0, [x0]
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 48]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
ldr x1, [sp, 56]
str x1, [x0]
ldr x0, [sp, 48]
add x0, x0, 1
str x0, [sp, 48]
.L2:
ldr x0, [sp, 48]
ldr x1, [sp, 24]
cmp x1, x0
bhi .L3
ldr x0, [sp, 104]
lsl x0, x0, 3
ldr x1, [sp, 96]
add x0, x1, x0
ldr x1, [sp, 56]
str x1, [x0]
mov x0, 1
str x0, [sp, 48]
b .L4
.L6:
ldr x1, [sp, 104]
ldr x0, [sp, 48]
cmp x1, x0
blt .L5
ldr x0, [sp, 104]
lsl x0, x0, 3
ldr x1, [sp, 96]
add x0, x1, x0
ldr x2, [x0]
ldr x1, [sp, 104]
ldr x0, [sp, 48]
sub x0, x1, x0
lsl x0, x0, 3
ldr x1, [sp, 96]
add x0, x1, x0
ldr x1, [x0]
ldr x0, [sp, 104]
lsl x0, x0, 3
ldr x3, [sp, 88]
add x0, x3, x0
add x1, x2, x1
str x1, [x0]
.L5:
ldr x0, [sp, 96]
add x3, x0, 8
ldr x0, [sp, 88]
add x1, x0, 8
ldr x0, [sp, 80]
sub x0, x0, #1
lsl x0, x0, 3
mov x2, x0
mov x0, x3
bl memcpy
ldr x0, [sp, 48]
lsl x0, x0, 1
str x0, [sp, 48]
.L4:
ldr x1, [sp, 48]
ldr x0, [sp, 80]
cmp x1, x0
blt .L6
str xzr, [sp, 64]
b .L7
.L8:
ldr x0, [sp, 64]
add x0, x0, 1
str x0, [sp, 64]
.L7:
ldr x1, [sp, 64]
ldr x0, [sp, 80]
cmp x1, x0
blt .L8
str xzr, [sp, 48]
b .L9
.L11:
ldr x0, [sp, 104]
cmp x0, 0
ble .L10
ldr x0, [sp, 48]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
ldr x2, [x0]
ldr x0, [sp, 104]
lsl x0, x0, 3
sub x0, x0, #8
ldr x1, [sp, 96]
add x0, x1, x0
ldr x1, [x0]
ldr x0, [sp, 48]
lsl x0, x0, 3
ldr x3, [sp, 72]
add x0, x3, x0
add x1, x2, x1
str x1, [x0]
.L10:
ldr x0, [sp, 48]
add x0, x0, 1
str x0, [sp, 48]
.L9:
ldr x0, [sp, 48]
ldr x1, [sp, 24]
cmp x1, x0
bhi .L11
ldr x0, [sp, 88]
bl free
ldr x0, [sp, 96]
bl free
nop
ldp x29, x30, [sp], 112
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size comp, .-comp
.section .rodata
.align 3
.LC1:
.string "Time Taken - %f s.\n"
.align 3
.LC2:
.string "EEEEEEEEError"
.text
.align 2
.global main
.type main, %function
main:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
mov x0, 1600
movk x0, 0xb7, lsl 16
bl malloc
str x0, [sp, 32]
mov x0, 1600
movk x0, 0xb7, lsl 16
bl malloc
str x0, [sp, 40]
str xzr, [sp, 16]
b .L13
.L14:
ldr x0, [sp, 16]
lsl x0, x0, 3
ldr x1, [sp, 32]
add x0, x1, x0
ldr x1, [sp, 16]
add x1, x1, 1
str x1, [x0]
ldr x0, [sp, 16]
add x0, x0, 1
str x0, [sp, 16]
.L13:
ldr x1, [sp, 16]
mov x0, 57543
movk x0, 0x16, lsl 16
cmp x1, x0
ble .L14
bl omp_get_wtime
str d0, [sp, 48]
mov x2, 57544
movk x2, 0x16, lsl 16
ldr x1, [sp, 40]
ldr x0, [sp, 32]
bl comp
bl omp_get_wtime
str d0, [sp, 56]
ldr d1, [sp, 56]
ldr d0, [sp, 48]
fsub d0, d1, d0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
str xzr, [sp, 24]
b .L15
.L18:
ldr x0, [sp, 24]
lsl x0, x0, 3
ldr x1, [sp, 40]
add x0, x1, x0
ldr x1, [x0]
ldr x0, [sp, 24]
add x2, x0, 1
ldr x0, [sp, 24]
add x0, x0, 2
mul x0, x2, x0
lsr x2, x0, 63
add x0, x2, x0
asr x0, x0, 1
cmp x1, x0
beq .L16
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
b .L17
.L16:
ldr x0, [sp, 24]
add x0, x0, 1
str x0, [sp, 24]
.L15:
ldr x1, [sp, 24]
mov x0, 57543
movk x0, 0x16, lsl 16
cmp x1, x0
ble .L18
.L17:
ldr x0, [sp, 32]
bl free
ldr x0, [sp, 40]
bl free
mov w0, 0
ldp x29, x30, [sp], 64
.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 isUniAlpha
.type isUniAlpha, %function
isUniAlpha:
.LFB0:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, 12]
ldr w1, [sp, 12]
mov w0, 55203
cmp w1, w0
bhi .L10
str wzr, [sp, 20]
mov w0, 247
str w0, [sp, 24]
b .L4
.L8:
ldr w1, [sp, 20]
ldr w0, [sp, 24]
add w0, w1, w0
asr w0, w0, 1
str w0, [sp, 28]
adrp x0, table.0
add x1, x0, :lo12:table.0
ldrsw x0, [sp, 28]
lsl x0, x0, 2
add x0, x1, x0
ldrh w0, [x0]
mov w1, w0
ldr w0, [sp, 12]
cmp w0, w1
bcs .L5
ldr w0, [sp, 28]
sub w0, w0, #1
str w0, [sp, 24]
b .L4
.L5:
adrp x0, table.0
add x1, x0, :lo12:table.0
ldrsw x0, [sp, 28]
lsl x0, x0, 2
add x0, x1, x0
ldrh w0, [x0, 2]
mov w1, w0
ldr w0, [sp, 12]
cmp w0, w1
bls .L11
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 20]
.L4:
ldr w1, [sp, 20]
ldr w0, [sp, 24]
cmp w1, w0
ble .L8
b .L3
.L10:
nop
.L3:
mov w0, 0
b .L9
.L11:
nop
.L7:
mov w0, 1
.L9:
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size isUniAlpha, .-isUniAlpha
.data
.align 3
.type table.0, %object
.size table.0, 992
table.0:
.hword 170
.hword 170
.hword 181
.hword 181
.hword 183
.hword 183
.hword 186
.hword 186
.hword 192
.hword 214
.hword 216
.hword 246
.hword 248
.hword 501
.hword 506
.hword 535
.hword 592
.hword 680
.hword 688
.hword 696
.hword 699
.hword 699
.hword 701
.hword 705
.hword 720
.hword 721
.hword 736
.hword 740
.hword 890
.hword 890
.hword 902
.hword 902
.hword 904
.hword 906
.hword 908
.hword 908
.hword 910
.hword 929
.hword 931
.hword 974
.hword 976
.hword 982
.hword 986
.hword 986
.hword 988
.hword 988
.hword 990
.hword 990
.hword 992
.hword 992
.hword 994
.hword 1011
.hword 1025
.hword 1036
.hword 1038
.hword 1103
.hword 1105
.hword 1116
.hword 1118
.hword 1153
.hword 1168
.hword 1220
.hword 1223
.hword 1224
.hword 1227
.hword 1228
.hword 1232
.hword 1259
.hword 1262
.hword 1269
.hword 1272
.hword 1273
.hword 1329
.hword 1366
.hword 1369
.hword 1369
.hword 1377
.hword 1415
.hword 1456
.hword 1465
.hword 1467
.hword 1469
.hword 1471
.hword 1471
.hword 1473
.hword 1474
.hword 1488
.hword 1514
.hword 1520
.hword 1522
.hword 1569
.hword 1594
.hword 1600
.hword 1618
.hword 1632
.hword 1641
.hword 1648
.hword 1719
.hword 1722
.hword 1726
.hword 1728
.hword 1742
.hword 1744
.hword 1756
.hword 1765
.hword 1768
.hword 1770
.hword 1773
.hword 1776
.hword 1785
.hword 2305
.hword 2307
.hword 2309
.hword 2361
.hword 2365
.hword 2365
.hword 2366
.hword 2381
.hword 2384
.hword 2386
.hword 2392
.hword 2403
.hword 2406
.hword 2415
.hword 2433
.hword 2435
.hword 2437
.hword 2444
.hword 2447
.hword 2448
.hword 2451
.hword 2472
.hword 2474
.hword 2480
.hword 2482
.hword 2482
.hword 2486
.hword 2489
.hword 2494
.hword 2500
.hword 2503
.hword 2504
.hword 2507
.hword 2509
.hword 2524
.hword 2525
.hword 2527
.hword 2531
.hword 2534
.hword 2543
.hword 2544
.hword 2545
.hword 2562
.hword 2562
.hword 2565
.hword 2570
.hword 2575
.hword 2576
.hword 2579
.hword 2600
.hword 2602
.hword 2608
.hword 2610
.hword 2611
.hword 2613
.hword 2614
.hword 2616
.hword 2617
.hword 2622
.hword 2626
.hword 2631
.hword 2632
.hword 2635
.hword 2637
.hword 2649
.hword 2652
.hword 2654
.hword 2654
.hword 2662
.hword 2671
.hword 2676
.hword 2676
.hword 2689
.hword 2691
.hword 2693
.hword 2699
.hword 2701
.hword 2701
.hword 2703
.hword 2705
.hword 2707
.hword 2728
.hword 2730
.hword 2736
.hword 2738
.hword 2739
.hword 2741
.hword 2745
.hword 2749
.hword 2757
.hword 2759
.hword 2761
.hword 2763
.hword 2765
.hword 2768
.hword 2768
.hword 2784
.hword 2784
.hword 2790
.hword 2799
.hword 2817
.hword 2819
.hword 2821
.hword 2828
.hword 2831
.hword 2832
.hword 2835
.hword 2856
.hword 2858
.hword 2864
.hword 2866
.hword 2867
.hword 2870
.hword 2873
.hword 2877
.hword 2877
.hword 2878
.hword 2883
.hword 2887
.hword 2888
.hword 2891
.hword 2893
.hword 2908
.hword 2909
.hword 2911
.hword 2913
.hword 2918
.hword 2927
.hword 2946
.hword 2947
.hword 2949
.hword 2954
.hword 2958
.hword 2960
.hword 2962
.hword 2965
.hword 2969
.hword 2970
.hword 2972
.hword 2972
.hword 2974
.hword 2975
.hword 2979
.hword 2980
.hword 2984
.hword 2986
.hword 2990
.hword 2997
.hword 2999
.hword 3001
.hword 3006
.hword 3010
.hword 3014
.hword 3016
.hword 3018
.hword 3021
.hword 3047
.hword 3055
.hword 3073
.hword 3075
.hword 3077
.hword 3084
.hword 3086
.hword 3088
.hword 3090
.hword 3112
.hword 3114
.hword 3123
.hword 3125
.hword 3129
.hword 3134
.hword 3140
.hword 3142
.hword 3144
.hword 3146
.hword 3149
.hword 3168
.hword 3169
.hword 3174
.hword 3183
.hword 3202
.hword 3203
.hword 3205
.hword 3212
.hword 3214
.hword 3216
.hword 3218
.hword 3240
.hword 3242
.hword 3251
.hword 3253
.hword 3257
.hword 3262
.hword 3268
.hword 3270
.hword 3272
.hword 3274
.hword 3277
.hword 3294
.hword 3294
.hword 3296
.hword 3297
.hword 3302
.hword 3311
.hword 3330
.hword 3331
.hword 3333
.hword 3340
.hword 3342
.hword 3344
.hword 3346
.hword 3368
.hword 3370
.hword 3385
.hword 3390
.hword 3395
.hword 3398
.hword 3400
.hword 3402
.hword 3405
.hword 3424
.hword 3425
.hword 3430
.hword 3439
.hword 3585
.hword 3642
.hword 3648
.hword 3675
.hword 3713
.hword 3714
.hword 3716
.hword 3716
.hword 3719
.hword 3720
.hword 3722
.hword 3722
.hword 3725
.hword 3725
.hword 3732
.hword 3735
.hword 3737
.hword 3743
.hword 3745
.hword 3747
.hword 3749
.hword 3749
.hword 3751
.hword 3751
.hword 3754
.hword 3755
.hword 3757
.hword 3758
.hword 3760
.hword 3769
.hword 3771
.hword 3773
.hword 3776
.hword 3780
.hword 3782
.hword 3782
.hword 3784
.hword 3789
.hword 3792
.hword 3801
.hword 3804
.hword 3805
.hword 3840
.hword 3840
.hword 3864
.hword 3865
.hword 3872
.hword 3891
.hword 3893
.hword 3893
.hword 3895
.hword 3895
.hword 3897
.hword 3897
.hword 3902
.hword 3911
.hword 3913
.hword 3945
.hword 3953
.hword 3972
.hword 3974
.hword 3979
.hword 3984
.hword 3989
.hword 3991
.hword 3991
.hword 3993
.hword 4013
.hword 4017
.hword 4023
.hword 4025
.hword 4025
.hword 4256
.hword 4293
.hword 4304
.hword 4342
.hword 7680
.hword 7835
.hword 7840
.hword 7929
.hword 7936
.hword 7957
.hword 7960
.hword 7965
.hword 7968
.hword 8005
.hword 8008
.hword 8013
.hword 8016
.hword 8023
.hword 8025
.hword 8025
.hword 8027
.hword 8027
.hword 8029
.hword 8029
.hword 8031
.hword 8061
.hword 8064
.hword 8116
.hword 8118
.hword 8124
.hword 8126
.hword 8126
.hword 8130
.hword 8132
.hword 8134
.hword 8140
.hword 8144
.hword 8147
.hword 8150
.hword 8155
.hword 8160
.hword 8172
.hword 8178
.hword 8180
.hword 8182
.hword 8188
.hword 8255
.hword 8256
.hword 8319
.hword 8319
.hword 8450
.hword 8450
.hword 8455
.hword 8455
.hword 8458
.hword 8467
.hword 8469
.hword 8469
.hword 8472
.hword 8477
.hword 8484
.hword 8484
.hword 8486
.hword 8486
.hword 8488
.hword 8488
.hword 8490
.hword 8497
.hword 8499
.hword 8504
.hword 8544
.hword 8578
.hword 12293
.hword 12295
.hword 12321
.hword 12329
.hword 12353
.hword 12435
.hword 12443
.hword 12444
.hword 12449
.hword 12534
.hword 12539
.hword 12540
.hword 12549
.hword 12588
.hword 19968
.hword -24667
.hword -21504
.hword -10333
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Someone called raise! (signal: %d)\n"
.text
.align 2
.global raise
.type raise, %function
raise:
.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]
ldr w1, [sp, 28]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl pabort
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size raise, .-raise
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "\n"
.text
.align 2
.global printNewLine
.type printNewLine, %function
printNewLine:
.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, .LC0
add x0, x0, :lo12:.LC0
bl printf
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size printNewLine, .-printNewLine
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "r"
.align 3
.LC1:
.string "1.in"
.align 3
.LC2:
.string "w"
.align 3
.LC3:
.string "1.out"
.align 3
.LC4:
.string "1.err"
.align 3
.LC5:
.string "%d%d"
.align 3
.LC6:
.string "%d"
.align 3
.LC7:
.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
adrp x0, :got:stdin
ldr x0, [x0, #:got_lo12:stdin]
ldr x0, [x0]
mov x2, x0
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl freopen
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x2, x0
adrp x0, .LC2
add x1, x0, :lo12:.LC2
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl freopen
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x2, x0
adrp x0, .LC2
add x1, x0, :lo12:.LC2
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl freopen
add x1, sp, 32
add x0, sp, 28
mov x2, x1
mov x1, x0
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl __isoc99_scanf
b .L2
.L4:
add x0, sp, 36
mov x1, x0
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl __isoc99_scanf
ldr w1, [sp, 36]
ldr w0, [sp, 32]
cmp w1, w0
beq .L3
ldr w0, [sp, 36]
mov w1, w0
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl printf
.L3:
ldr w0, [sp, 28]
sub w0, w0, #1
str w0, [sp, 28]
.L2:
ldr w0, [sp, 28]
cmp w0, 0
bgt .L4
adrp x0, :got:stdin
ldr x0, [x0, #:got_lo12:stdin]
ldr x0, [x0]
bl fclose
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
bl fclose
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
bl fclose
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 .L6
bl __stack_chk_fail
.L6:
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 get_volume
.type get_volume, %function
get_volume:
.LFB6:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp]
ldr w0, [sp, 8]
bfi w0, w1, 0, 32
str w0, [sp, 8]
ldr w1, [sp]
ldr w0, [sp, 4]
mul w1, w1, w0
ldr w0, [sp, 8]
mul w0, w1, w0
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size get_volume, .-get_volume
.align 2
.global is_lower_than_max_height
.type is_lower_than_max_height, %function
is_lower_than_max_height:
.LFB7:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp]
ldr w0, [sp, 8]
bfi w0, w1, 0, 32
str w0, [sp, 8]
ldr w0, [sp, 8]
cmp w0, 40
bgt .L4
mov w0, 1
b .L5
.L4:
mov w0, 0
.L5:
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size is_lower_than_max_height, .-is_lower_than_max_height
.section .rodata
.align 3
.LC0:
.string "%d"
.align 3
.LC1:
.string "%d%d%d"
.align 3
.LC2:
.string "%d\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB8:
.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
ldr w0, [sp, 20]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
bl malloc
str x0, [sp, 32]
str wzr, [sp, 24]
b .L7
.L8:
ldrsw x1, [sp, 24]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 32]
add x0, x0, x1
mov x4, x0
ldrsw x1, [sp, 24]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 32]
add x0, x0, x1
add x2, x0, 4
ldrsw x1, [sp, 24]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 32]
add x0, x0, x1
add x0, x0, 8
mov x3, x0
mov x1, x4
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L7:
ldr w0, [sp, 20]
ldr w1, [sp, 24]
cmp w1, w0
blt .L8
str wzr, [sp, 28]
b .L9
.L11:
ldrsw x1, [sp, 28]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 32]
add x0, x0, x1
ldr x2, [x0]
ldr w1, [x0, 8]
mov x0, x2
bl is_lower_than_max_height
cmp w0, 0
beq .L10
ldrsw x1, [sp, 28]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 32]
add x0, x0, x1
ldr x2, [x0]
ldr w1, [x0, 8]
mov x0, x2
bl get_volume
mov w1, w0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
.L10:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L9:
ldr w0, [sp, 20]
ldr w1, [sp, 28]
cmp w1, w0
blt .L11
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 .L13
bl __stack_chk_fail
.L13:
mov w0, w1
ldp x29, x30, [sp], 48
.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
.section .rodata
.align 3
.LC0:
.string "%c"
.align 3
.LC1:
.string "%d %d %d\n%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
str wzr, [sp, 24]
str wzr, [sp, 28]
str wzr, [sp, 32]
add x0, sp, 22
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
b .L2
.L9:
ldrb w0, [sp, 22]
cmp w0, 48
beq .L3
cmp w0, 49
beq .L4
b .L6
.L3:
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
b .L6
.L4:
ldrb w0, [sp, 23]
cmp w0, 45
bne .L7
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
b .L12
.L7:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L12:
nop
.L6:
ldrb w0, [sp, 22]
strb w0, [sp, 23]
add x0, sp, 22
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
.L2:
ldrb w0, [sp, 22]
cmp w0, 35
bne .L9
ldr w0, [sp, 24]
ldr w2, [sp, 28]
ldr w1, [sp, 28]
cmp w2, w0
csel w0, w1, w0, ge
str w0, [sp, 36]
ldr w0, [sp, 36]
ldr w2, [sp, 32]
ldr w1, [sp, 32]
cmp w2, w0
csel w0, w1, w0, ge
str w0, [sp, 36]
ldr w4, [sp, 36]
ldr w3, [sp, 32]
ldr w2, [sp, 28]
ldr w1, [sp, 24]
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 .L11
bl __stack_chk_fail
.L11:
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 "node: %p, value: %d\n"
.text
.align 2
.global print_nodes
.type print_nodes, %function
print_nodes:
.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]
b .L2
.L3:
ldr x0, [sp, 24]
ldr w0, [x0]
mov w2, w0
ldr x1, [sp, 24]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
ldr x0, [sp, 24]
ldr x0, [x0, 8]
str x0, [sp, 24]
.L2:
ldr x0, [sp, 24]
cmp x0, 0
bne .L3
nop
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size print_nodes, .-print_nodes
.align 2
.global main
.type main, %function
main:
.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 w0, [sp, 28]
str x1, [sp, 16]
str xzr, [sp, 40]
str xzr, [sp, 48]
str wzr, [sp, 36]
b .L5
.L8:
mov x0, 16
bl malloc
str x0, [sp, 56]
ldr x0, [sp, 56]
ldr w1, [sp, 36]
str w1, [x0]
ldr x0, [sp, 40]
cmp x0, 0
beq .L6
ldr x0, [sp, 40]
ldr x1, [sp, 56]
str x1, [x0, 8]
b .L7
.L6:
ldr x0, [sp, 56]
str x0, [sp, 48]
.L7:
ldr x0, [sp, 56]
str x0, [sp, 40]
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L5:
ldr w0, [sp, 36]
cmp w0, 4
ble .L8
ldr x0, [sp, 48]
bl print_nodes
mov w0, 0
ldp x29, x30, [sp], 64
.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 "packcc"
.section .data.rel.local,"aw"
.align 3
.type g_cmdname, %object
.size g_cmdname, 8
g_cmdname:
.xword .LC0
.text
.align 2
.type max_int, %function
max_int:
.LFB6:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, 12]
str w1, [sp, 8]
ldr w0, [sp, 8]
ldr w2, [sp, 12]
ldr w1, [sp, 12]
cmp w2, w0
csel w0, w1, w0, ge
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size max_int, .-max_int
.align 2
.type min_size_t, %function
min_size_t:
.LFB7:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
str x1, [sp]
ldr x0, [sp]
ldr x2, [sp, 8]
ldr x1, [sp, 8]
cmp x2, x0
csel x0, x1, x0, ls
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size min_size_t, .-min_size_t
.section .rodata
.align 3
.LC1:
.string "%s: "
.text
.align 2
.type print_error, %function
print_error:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -320]!
.cfi_def_cfa_offset 320
.cfi_offset 29, -320
.cfi_offset 30, -312
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -304
str x0, [sp, 72]
str x1, [sp, 264]
str x2, [sp, 272]
str x3, [sp, 280]
str x4, [sp, 288]
str x5, [sp, 296]
str x6, [sp, 304]
str x7, [sp, 312]
str q0, [sp, 128]
str q1, [sp, 144]
str q2, [sp, 160]
str q3, [sp, 176]
str q4, [sp, 192]
str q5, [sp, 208]
str q6, [sp, 224]
str q7, [sp, 240]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 120]
mov x1, 0
add x0, sp, 320
str x0, [sp, 88]
add x0, sp, 320
str x0, [sp, 96]
add x0, sp, 256
str x0, [sp, 104]
mov w0, -56
str w0, [sp, 112]
mov w0, -128
str w0, [sp, 116]
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
adrp x0, g_cmdname
add x0, x0, :lo12:g_cmdname
ldr x0, [x0]
mov x2, x0
adrp x0, .LC1
add x1, x0, :lo12:.LC1
mov x0, x3
bl fprintf
mov w19, w0
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
add x0, sp, 32
add x1, sp, 88
ldp q0, q1, [x1]
stp q0, q1, [x0]
add x0, sp, 32
mov x2, x0
ldr x1, [sp, 72]
mov x0, x3
bl vfprintf
add w0, w19, w0
str w0, [sp, 84]
ldr w0, [sp, 84]
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 120]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L7
bl __stack_chk_fail
.L7:
mov w0, w1
ldr x19, [sp, 16]
ldp x29, x30, [sp], 320
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size print_error, .-print_error
.section .rodata
.align 3
.LC2:
.string "rb"
.align 3
.LC3:
.string "Cannot open file '%s' to read\n"
.text
.align 2
.type fopen_rb_e, %function
fopen_rb_e:
.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]
adrp x0, .LC2
add x1, x0, :lo12:.LC2
ldr x0, [sp, 24]
bl fopen
str x0, [sp, 40]
ldr x0, [sp, 40]
cmp x0, 0
bne .L9
ldr x1, [sp, 24]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl print_error
mov w0, 2
bl exit
.L9:
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 fopen_rb_e, .-fopen_rb_e
.section .rodata
.align 3
.LC4:
.string "wt"
.align 3
.LC5:
.string "Cannot open file '%s' to write\n"
.text
.align 2
.type fopen_wt_e, %function
fopen_wt_e:
.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]
adrp x0, .LC4
add x1, x0, :lo12:.LC4
ldr x0, [sp, 24]
bl fopen
str x0, [sp, 40]
ldr x0, [sp, 40]
cmp x0, 0
bne .L12
ldr x1, [sp, 24]
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl print_error
mov w0, 2
bl exit
.L12:
ldr x0, [sp, 40]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size fopen_wt_e, .-fopen_wt_e
.section .rodata
.align 3
.LC6:
.string "File closing error\n"
.text
.align 2
.type fclose_e, %function
fclose_e:
.LFB11:
.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 fclose
str w0, [sp, 44]
ldr w0, [sp, 44]
cmn w0, #1
bne .L15
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl print_error
mov w0, 2
bl exit
.L15:
ldr w0, [sp, 44]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size fclose_e, .-fclose_e
.section .rodata
.align 3
.LC7:
.string "File read error\n"
.text
.align 2
.type fgetc_e, %function
fgetc_e:
.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 x0, [sp, 24]
ldr x0, [sp, 24]
bl fgetc
str w0, [sp, 44]
ldr w0, [sp, 44]
cmn w0, #1
bne .L18
ldr x0, [sp, 24]
bl ferror
cmp w0, 0
beq .L18
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl print_error
mov w0, 2
bl exit
.L18:
ldr w0, [sp, 44]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE12:
.size fgetc_e, .-fgetc_e
.section .rodata
.align 3
.LC8:
.string "File write error\n"
.text
.align 2
.type fputc_e, %function
fputc_e:
.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 w0, [sp, 28]
str x1, [sp, 16]
ldr x1, [sp, 16]
ldr w0, [sp, 28]
bl fputc
str w0, [sp, 44]
ldr w0, [sp, 44]
cmn w0, #1
bne .L21
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl print_error
mov w0, 2
bl exit
.L21:
ldr w0, [sp, 44]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE13:
.size fputc_e, .-fputc_e
.align 2
.type fputs_e, %function
fputs_e:
.LFB14:
.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 x1, [sp, 16]
ldr x0, [sp, 24]
bl fputs
str w0, [sp, 44]
ldr w0, [sp, 44]
cmn w0, #1
bne .L24
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl print_error
mov w0, 2
bl exit
.L24:
ldr w0, [sp, 44]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE14:
.size fputs_e, .-fputs_e
.align 2
.type fprintf_e, %function
fprintf_e:
.LFB15:
.cfi_startproc
stp x29, x30, [sp, -288]!
.cfi_def_cfa_offset 288
.cfi_offset 29, -288
.cfi_offset 30, -280
mov x29, sp
str x0, [sp, 56]
str x1, [sp, 48]
str x2, [sp, 240]
str x3, [sp, 248]
str x4, [sp, 256]
str x5, [sp, 264]
str x6, [sp, 272]
str x7, [sp, 280]
str q0, [sp, 112]
str q1, [sp, 128]
str q2, [sp, 144]
str q3, [sp, 160]
str q4, [sp, 176]
str q5, [sp, 192]
str q6, [sp, 208]
str q7, [sp, 224]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 104]
mov x1, 0
add x0, sp, 288
str x0, [sp, 72]
add x0, sp, 288
str x0, [sp, 80]
add x0, sp, 240
str x0, [sp, 88]
mov w0, -48
str w0, [sp, 96]
mov w0, -128
str w0, [sp, 100]
add x0, sp, 16
add x1, sp, 72
ldp q0, q1, [x1]
stp q0, q1, [x0]
add x0, sp, 16
mov x2, x0
ldr x1, [sp, 48]
ldr x0, [sp, 56]
bl vfprintf
str w0, [sp, 68]
ldr w0, [sp, 68]
cmp w0, 0
bge .L27
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl print_error
mov w0, 2
bl exit
.L27:
ldr w0, [sp, 68]
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 .L29
bl __stack_chk_fail
.L29:
mov w0, w1
ldp x29, x30, [sp], 288
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE15:
.size fprintf_e, .-fprintf_e
.section .rodata
.align 3
.LC9:
.string "Out of memory\n"
.text
.align 2
.type malloc_e, %function
malloc_e:
.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]
bl malloc
str x0, [sp, 40]
ldr x0, [sp, 40]
cmp x0, 0
bne .L31
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl print_error
mov w0, 3
bl exit
.L31:
ldr x0, [sp, 40]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE16:
.size malloc_e, .-malloc_e
.align 2
.type realloc_e, %function
realloc_e:
.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]
ldr x1, [sp, 16]
ldr x0, [sp, 24]
bl realloc
str x0, [sp, 40]
ldr x0, [sp, 40]
cmp x0, 0
bne .L34
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl print_error
mov w0, 3
bl exit
.L34:
ldr x0, [sp, 40]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE17:
.size realloc_e, .-realloc_e
.align 2
.type strdup_e, %function
strdup_e:
.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]
ldr x0, [sp, 24]
bl strlen
str x0, [sp, 32]
ldr x0, [sp, 32]
add x0, x0, 1
bl malloc_e
str x0, [sp, 40]
ldr x2, [sp, 32]
ldr x1, [sp, 24]
ldr x0, [sp, 40]
bl memcpy
ldr x1, [sp, 40]
ldr x0, [sp, 32]
add x0, x1, x0
strb wzr, [x0]
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 strdup_e, .-strdup_e
.align 2
.type strndup_e, %function
strndup_e:
.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 x1, [sp, 16]
ldr x1, [sp, 16]
ldr x0, [sp, 24]
bl strnlen
str x0, [sp, 32]
ldr x0, [sp, 32]
add x0, x0, 1
bl malloc_e
str x0, [sp, 40]
ldr x2, [sp, 32]
ldr x1, [sp, 24]
ldr x0, [sp, 40]
bl memcpy
ldr x1, [sp, 40]
ldr x0, [sp, 32]
add x0, x1, x0
strb wzr, [x0]
ldr x0, [sp, 40]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE19:
.size strndup_e, .-strndup_e
.align 2
.type is_filled_string, %function
is_filled_string:
.LFB20:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str xzr, [sp, 24]
b .L41
.L44:
ldr x1, [sp, 8]
ldr x0, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 32
beq .L42
ldr x1, [sp, 8]
ldr x0, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 11
beq .L42
ldr x1, [sp, 8]
ldr x0, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 12
beq .L42
ldr x1, [sp, 8]
ldr x0, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 9
beq .L42
ldr x1, [sp, 8]
ldr x0, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 10
beq .L42
ldr x1, [sp, 8]
ldr x0, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 13
beq .L42
mov w0, 1
b .L43
.L42:
ldr x0, [sp, 24]
add x0, x0, 1
str x0, [sp, 24]
.L41:
ldr x1, [sp, 8]
ldr x0, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 0
bne .L44
mov w0, 0
.L43:
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE20:
.size is_filled_string, .-is_filled_string
.align 2
.type is_identifier_string, %function
is_identifier_string:
.LFB21:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
ldr x0, [sp, 8]
ldrb w0, [x0]
cmp w0, 96
bls .L46
ldr x0, [sp, 8]
ldrb w0, [x0]
cmp w0, 122
bls .L47
.L46:
ldr x0, [sp, 8]
ldrb w0, [x0]
cmp w0, 64
bls .L48
ldr x0, [sp, 8]
ldrb w0, [x0]
cmp w0, 90
bls .L47
.L48:
ldr x0, [sp, 8]
ldrb w0, [x0]
cmp w0, 95
beq .L47
mov w0, 0
b .L49
.L47:
mov x0, 1
str x0, [sp, 24]
b .L50
.L55:
ldr x1, [sp, 8]
ldr x0, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 96
bls .L51
ldr x1, [sp, 8]
ldr x0, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 122
bls .L52
.L51:
ldr x1, [sp, 8]
ldr x0, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 64
bls .L53
ldr x1, [sp, 8]
ldr x0, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 90
bls .L52
.L53:
ldr x1, [sp, 8]
ldr x0, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 47
bls .L54
ldr x1, [sp, 8]
ldr x0, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 57
bls .L52
.L54:
ldr x1, [sp, 8]
ldr x0, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 95
beq .L52
mov w0, 0
b .L49
.L52:
ldr x0, [sp, 24]
add x0, x0, 1
str x0, [sp, 24]
.L50:
ldr x1, [sp, 8]
ldr x0, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 0
bne .L55
mov w0, 1
.L49:
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE21:
.size is_identifier_string, .-is_identifier_string
.align 2
.type is_pointer_type, %function
is_pointer_type:
.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]
ldr x0, [sp, 24]
bl strlen
str x0, [sp, 40]
ldr x0, [sp, 40]
cmp x0, 0
beq .L57
ldr x0, [sp, 40]
sub x0, x0, #1
ldr x1, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 42
bne .L57
mov w0, 1
b .L58
.L57:
mov w0, 0
.L58:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE22:
.size is_pointer_type, .-is_pointer_type
.align 2
.type unescape_string, %function
unescape_string:
.LFB23:
.cfi_startproc
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, 8]
mov w0, 1
str w0, [sp, 28]
str xzr, [sp, 40]
str xzr, [sp, 32]
b .L61
.L94:
ldr x1, [sp, 8]
ldr x0, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 92
bne .L62
ldr x0, [sp, 32]
add x0, x0, 1
str x0, [sp, 32]
ldr x1, [sp, 8]
ldr x0, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 120
beq .L63
cmp w0, 120
bgt .L64
cmp w0, 118
beq .L65
cmp w0, 118
bgt .L64
cmp w0, 116
beq .L66
cmp w0, 116
bgt .L64
cmp w0, 114
beq .L67
cmp w0, 114
bgt .L64
cmp w0, 110
beq .L68
cmp w0, 110
bgt .L64
cmp w0, 102
beq .L69
cmp w0, 102
bgt .L64
cmp w0, 98
beq .L70
cmp w0, 98
bgt .L64
cmp w0, 97
beq .L71
cmp w0, 97
bgt .L64
cmp w0, 48
beq .L72
cmp w0, 48
bgt .L64
cmp w0, 13
beq .L73
cmp w0, 13
bgt .L64
cmp w0, 0
beq .L74
cmp w0, 10
beq .L95
b .L64
.L74:
ldr x0, [sp, 40]
add x1, x0, 1
str x1, [sp, 40]
ldr x1, [sp, 8]
add x0, x1, x0
mov w1, 92
strb w1, [x0]
ldr x1, [sp, 8]
ldr x0, [sp, 40]
add x0, x1, x0
strb wzr, [x0]
mov w0, 0
b .L76
.L72:
ldr x0, [sp, 40]
add x1, x0, 1
str x1, [sp, 40]
ldr x1, [sp, 8]
add x0, x1, x0
strb wzr, [x0]
b .L93
.L71:
ldr x0, [sp, 40]
add x1, x0, 1
str x1, [sp, 40]
ldr x1, [sp, 8]
add x0, x1, x0
mov w1, 7
strb w1, [x0]
b .L93
.L70:
ldr x0, [sp, 40]
add x1, x0, 1
str x1, [sp, 40]
ldr x1, [sp, 8]
add x0, x1, x0
mov w1, 8
strb w1, [x0]
b .L93
.L69:
ldr x0, [sp, 40]
add x1, x0, 1
str x1, [sp, 40]
ldr x1, [sp, 8]
add x0, x1, x0
mov w1, 12
strb w1, [x0]
b .L93
.L68:
ldr x0, [sp, 40]
add x1, x0, 1
str x1, [sp, 40]
ldr x1, [sp, 8]
add x0, x1, x0
mov w1, 10
strb w1, [x0]
b .L93
.L67:
ldr x0, [sp, 40]
add x1, x0, 1
str x1, [sp, 40]
ldr x1, [sp, 8]
add x0, x1, x0
mov w1, 13
strb w1, [x0]
b .L93
.L66:
ldr x0, [sp, 40]
add x1, x0, 1
str x1, [sp, 40]
ldr x1, [sp, 8]
add x0, x1, x0
mov w1, 9
strb w1, [x0]
b .L93
.L65:
ldr x0, [sp, 40]
add x1, x0, 1
str x1, [sp, 40]
ldr x1, [sp, 8]
add x0, x1, x0
mov w1, 11
strb w1, [x0]
b .L93
.L63:
ldr x0, [sp, 32]
add x0, x0, 1
ldr x1, [sp, 8]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 0
bne .L78
ldr x0, [sp, 40]
add x1, x0, 1
str x1, [sp, 40]
ldr x1, [sp, 8]
add x0, x1, x0
mov w1, 92
strb w1, [x0]
ldr x0, [sp, 40]
add x1, x0, 1
str x1, [sp, 40]
ldr x1, [sp, 8]
add x0, x1, x0
mov w1, 120
strb w1, [x0]
ldr x1, [sp, 8]
ldr x0, [sp, 40]
add x0, x1, x0
strb wzr, [x0]
mov w0, 0
b .L76
.L78:
ldr x0, [sp, 32]
add x0, x0, 2
ldr x1, [sp, 8]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 0
bne .L79
ldr x0, [sp, 40]
add x1, x0, 1
str x1, [sp, 40]
ldr x1, [sp, 8]
add x0, x1, x0
mov w1, 92
strb w1, [x0]
ldr x0, [sp, 40]
add x1, x0, 1
str x1, [sp, 40]
ldr x1, [sp, 8]
add x0, x1, x0
mov w1, 120
strb w1, [x0]
ldr x0, [sp, 32]
add x0, x0, 1
ldr x1, [sp, 8]
add x1, x1, x0
ldr x0, [sp, 40]
add x2, x0, 1
str x2, [sp, 40]
ldr x2, [sp, 8]
add x0, x2, x0
ldrb w1, [x1]
strb w1, [x0]
ldr x1, [sp, 8]
ldr x0, [sp, 40]
add x0, x1, x0
strb wzr, [x0]
mov w0, 0
b .L76
.L79:
ldr x0, [sp, 32]
add x0, x0, 1
ldr x1, [sp, 8]
add x0, x1, x0
ldrb w0, [x0]
strb w0, [sp, 26]
ldr x0, [sp, 32]
add x0, x0, 2
ldr x1, [sp, 8]
add x0, x1, x0
ldrb w0, [x0]
strb w0, [sp, 27]
ldrb w0, [sp, 26]
cmp w0, 47
bls .L80
ldrb w0, [sp, 26]
cmp w0, 57
bhi .L80
ldrb w0, [sp, 26]
sub w0, w0, #48
and w0, w0, 255
b .L81
.L80:
ldrb w0, [sp, 26]
cmp w0, 96
bls .L82
ldrb w0, [sp, 26]
cmp w0, 102
bhi .L82
ldrb w0, [sp, 26]
sub w0, w0, #87
and w0, w0, 255
b .L81
.L82:
ldrb w0, [sp, 26]
cmp w0, 64
bls .L84
ldrb w0, [sp, 26]
cmp w0, 70
bhi .L84
ldrb w0, [sp, 26]
sub w0, w0, #55
and w0, w0, 255
b .L81
.L84:
mov w0, 255
.L81:
strb w0, [sp, 26]
ldrb w0, [sp, 27]
cmp w0, 47
bls .L86
ldrb w0, [sp, 27]
cmp w0, 57
bhi .L86
ldrb w0, [sp, 27]
sub w0, w0, #48
and w0, w0, 255
b .L87
.L86:
ldrb w0, [sp, 27]
cmp w0, 96
bls .L88
ldrb w0, [sp, 27]
cmp w0, 102
bhi .L88
ldrb w0, [sp, 27]
sub w0, w0, #87
and w0, w0, 255
b .L87
.L88:
ldrb w0, [sp, 27]
cmp w0, 64
bls .L90
ldrb w0, [sp, 27]
cmp w0, 70
bhi .L90
ldrb w0, [sp, 27]
sub w0, w0, #55
and w0, w0, 255
b .L87
.L90:
mov w0, 255
.L87:
strb w0, [sp, 27]
ldrb w0, [sp, 26]
lsl w0, w0, 4
sxtb w1, w0
ldrsb w0, [sp, 27]
orr w0, w1, w0
sxtb w2, w0
ldr x0, [sp, 40]
add x1, x0, 1
str x1, [sp, 40]
ldr x1, [sp, 8]
add x0, x1, x0
and w1, w2, 255
strb w1, [x0]
ldr x0, [sp, 32]
add x0, x0, 2
str x0, [sp, 32]
b .L93
.L73:
ldr x0, [sp, 32]
add x0, x0, 1
ldr x1, [sp, 8]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 10
bne .L96
ldr x0, [sp, 32]
add x0, x0, 1
str x0, [sp, 32]
b .L96
.L64:
ldr x1, [sp, 8]
ldr x0, [sp, 32]
add x1, x1, x0
ldr x0, [sp, 40]
add x2, x0, 1
str x2, [sp, 40]
ldr x2, [sp, 8]
add x0, x2, x0
ldrb w1, [x1]
strb w1, [x0]
b .L93
.L62:
ldr x1, [sp, 8]
ldr x0, [sp, 32]
add x1, x1, x0
ldr x0, [sp, 40]
add x2, x0, 1
str x2, [sp, 40]
ldr x2, [sp, 8]
add x0, x2, x0
ldrb w1, [x1]
strb w1, [x0]
b .L93
.L95:
nop
b .L93
.L96:
nop
.L93:
ldr x0, [sp, 32]
add x0, x0, 1
str x0, [sp, 32]
.L61:
ldr x1, [sp, 8]
ldr x0, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 0
bne .L94
ldr x1, [sp, 8]
ldr x0, [sp, 40]
add x0, x1, x0
strb wzr, [x0]
ldr w0, [sp, 28]
.L76:
add sp, sp, 48
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE23:
.size unescape_string, .-unescape_string
.section .rodata
.align 3
.LC10:
.string "\\0"
.align 3
.LC11:
.string "\\a"
.align 3
.LC12:
.string "\\b"
.align 3
.LC13:
.string "\\f"
.align 3
.LC14:
.string "\\n"
.align 3
.LC15:
.string "\\r"
.align 3
.LC16:
.string "\\t"
.align 3
.LC17:
.string "\\v"
.align 3
.LC18:
.string "\\\\"
.align 3
.LC19:
.string "\\'"
.align 3
.LC20:
.string "\\\""
.align 3
.LC21:
.string "%c"
.align 3
.LC22:
.string "\\x%02x"
.text
.align 2
.type escape_character, %function
escape_character:
.LFB24:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
strb w0, [sp, 31]
str x1, [sp, 16]
ldrb w0, [sp, 31]
cmp w0, 92
beq .L98
cmp w0, 92
bgt .L99
cmp w0, 39
beq .L100
cmp w0, 39
bgt .L99
cmp w0, 34
beq .L101
cmp w0, 34
bgt .L99
cmp w0, 13
beq .L102
cmp w0, 13
bgt .L99
cmp w0, 12
beq .L103
cmp w0, 12
bgt .L99
cmp w0, 11
beq .L104
cmp w0, 11
bgt .L99
cmp w0, 10
beq .L105
cmp w0, 10
bgt .L99
cmp w0, 9
beq .L106
cmp w0, 9
bgt .L99
cmp w0, 8
beq .L107
cmp w0, 8
bgt .L99
cmp w0, 0
beq .L108
cmp w0, 7
beq .L109
b .L99
.L108:
mov x2, 5
adrp x0, .LC10
add x1, x0, :lo12:.LC10
ldr x0, [sp, 16]
bl strncpy
b .L110
.L109:
mov x2, 5
adrp x0, .LC11
add x1, x0, :lo12:.LC11
ldr x0, [sp, 16]
bl strncpy
b .L110
.L107:
mov x2, 5
adrp x0, .LC12
add x1, x0, :lo12:.LC12
ldr x0, [sp, 16]
bl strncpy
b .L110
.L103:
mov x2, 5
adrp x0, .LC13
add x1, x0, :lo12:.LC13
ldr x0, [sp, 16]
bl strncpy
b .L110
.L105:
mov x2, 5
adrp x0, .LC14
add x1, x0, :lo12:.LC14
ldr x0, [sp, 16]
bl strncpy
b .L110
.L102:
mov x2, 5
adrp x0, .LC15
add x1, x0, :lo12:.LC15
ldr x0, [sp, 16]
bl strncpy
b .L110
.L106:
mov x2, 5
adrp x0, .LC16
add x1, x0, :lo12:.LC16
ldr x0, [sp, 16]
bl strncpy
b .L110
.L104:
mov x2, 5
adrp x0, .LC17
add x1, x0, :lo12:.LC17
ldr x0, [sp, 16]
bl strncpy
b .L110
.L98:
mov x2, 5
adrp x0, .LC18
add x1, x0, :lo12:.LC18
ldr x0, [sp, 16]
bl strncpy
b .L110
.L100:
mov x2, 5
adrp x0, .LC19
add x1, x0, :lo12:.LC19
ldr x0, [sp, 16]
bl strncpy
b .L110
.L101:
mov x2, 5
adrp x0, .LC20
add x1, x0, :lo12:.LC20
ldr x0, [sp, 16]
bl strncpy
b .L110
.L99:
ldrb w0, [sp, 31]
cmp w0, 31
bls .L111
ldrb w0, [sp, 31]
cmp w0, 126
bhi .L111
ldrb w0, [sp, 31]
mov w3, w0
adrp x0, .LC21
add x2, x0, :lo12:.LC21
mov x1, 5
ldr x0, [sp, 16]
bl snprintf
b .L110
.L111:
ldrb w0, [sp, 31]
mov w3, w0
adrp x0, .LC22
add x2, x0, :lo12:.LC22
mov x1, 5
ldr x0, [sp, 16]
bl snprintf
.L110:
ldr x0, [sp, 16]
strb wzr, [x0, 4]
ldr x0, [sp, 16]
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE24:
.size escape_character, .-escape_character
.align 2
.type remove_heading_blank, %function
remove_heading_blank:
.LFB25:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str xzr, [sp, 16]
b .L114
.L117:
ldr x1, [sp, 8]
ldr x0, [sp, 16]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 32
beq .L115
ldr x1, [sp, 8]
ldr x0, [sp, 16]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 11
beq .L115
ldr x1, [sp, 8]
ldr x0, [sp, 16]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 12
beq .L115
ldr x1, [sp, 8]
ldr x0, [sp, 16]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 9
beq .L115
ldr x1, [sp, 8]
ldr x0, [sp, 16]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 10
beq .L115
ldr x1, [sp, 8]
ldr x0, [sp, 16]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 13
bne .L120
.L115:
ldr x0, [sp, 16]
add x0, x0, 1
str x0, [sp, 16]
.L114:
ldr x1, [sp, 8]
ldr x0, [sp, 16]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 0
bne .L117
b .L116
.L120:
nop
.L116:
str xzr, [sp, 24]
b .L118
.L119:
ldr x1, [sp, 8]
ldr x0, [sp, 16]
add x1, x1, x0
ldr x0, [sp, 24]
add x2, x0, 1
str x2, [sp, 24]
ldr x2, [sp, 8]
add x0, x2, x0
ldrb w1, [x1]
strb w1, [x0]
ldr x0, [sp, 16]
add x0, x0, 1
str x0, [sp, 16]
.L118:
ldr x1, [sp, 8]
ldr x0, [sp, 16]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 0
bne .L119
ldr x1, [sp, 8]
ldr x0, [sp, 24]
add x0, x1, x0
strb wzr, [x0]
nop
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE25:
.size remove_heading_blank, .-remove_heading_blank
.align 2
.type remove_trailing_blank, %function
remove_trailing_blank:
.LFB26:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str xzr, [sp, 24]
str xzr, [sp, 16]
b .L122
.L124:
ldr x1, [sp, 8]
ldr x0, [sp, 16]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 32
beq .L123
ldr x1, [sp, 8]
ldr x0, [sp, 16]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 11
beq .L123
ldr x1, [sp, 8]
ldr x0, [sp, 16]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 12
beq .L123
ldr x1, [sp, 8]
ldr x0, [sp, 16]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 9
beq .L123
ldr x1, [sp, 8]
ldr x0, [sp, 16]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 10
beq .L123
ldr x1, [sp, 8]
ldr x0, [sp, 16]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 13
beq .L123
ldr x0, [sp, 16]
add x0, x0, 1
str x0, [sp, 24]
.L123:
ldr x0, [sp, 16]
add x0, x0, 1
str x0, [sp, 16]
.L122:
ldr x1, [sp, 8]
ldr x0, [sp, 16]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 0
bne .L124
ldr x1, [sp, 8]
ldr x0, [sp, 24]
add x0, x1, x0
strb wzr, [x0]
nop
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE26:
.size remove_trailing_blank, .-remove_trailing_blank
.align 2
.type make_header_identifier, %function
make_header_identifier:
.LFB27:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str xzr, [sp, 24]
b .L126
.L133:
ldr x1, [sp, 8]
ldr x0, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 64
bls .L127
ldr x1, [sp, 8]
ldr x0, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 90
bls .L128
.L127:
ldr x1, [sp, 8]
ldr x0, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 47
bls .L129
ldr x1, [sp, 8]
ldr x0, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 57
bhi .L129
.L128:
ldr x1, [sp, 8]
ldr x0, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
b .L130
.L129:
ldr x1, [sp, 8]
ldr x0, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 96
bls .L131
ldr x1, [sp, 8]
ldr x0, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 122
bhi .L131
ldr x1, [sp, 8]
ldr x0, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
sub w0, w0, #32
and w0, w0, 255
b .L130
.L131:
mov w0, 95
.L130:
ldr x2, [sp, 8]
ldr x1, [sp, 24]
add x1, x2, x1
strb w0, [x1]
ldr x0, [sp, 24]
add x0, x0, 1
str x0, [sp, 24]
.L126:
ldr x1, [sp, 8]
ldr x0, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 0
bne .L133
nop
nop
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE27:
.size make_header_identifier, .-make_header_identifier
.align 2
.type write_characters, %function
write_characters:
.LFB28:
.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]
strb w1, [sp, 39]
str x2, [sp, 24]
str xzr, [sp, 56]
b .L135
.L136:
ldrb w0, [sp, 39]
ldr x1, [sp, 40]
bl fputc_e
ldr x0, [sp, 56]
add x0, x0, 1
str x0, [sp, 56]
.L135:
ldr x1, [sp, 56]
ldr x0, [sp, 24]
cmp x1, x0
bcc .L136
nop
nop
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE28:
.size write_characters, .-write_characters
.align 2
.type write_text, %function
write_text:
.LFB29:
.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]
str xzr, [sp, 56]
b .L138
.L142:
ldr x1, [sp, 32]
ldr x0, [sp, 56]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 13
bne .L139
ldr x0, [sp, 56]
add x0, x0, 1
ldr x1, [sp, 24]
cmp x1, x0
bls .L140
ldr x0, [sp, 56]
add x0, x0, 1
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 10
bne .L140
ldr x0, [sp, 56]
add x0, x0, 1
str x0, [sp, 56]
.L140:
ldr x1, [sp, 40]
mov w0, 10
bl fputc_e
b .L141
.L139:
ldr x1, [sp, 32]
ldr x0, [sp, 56]
add x0, x1, x0
ldrb w0, [x0]
ldr x1, [sp, 40]
bl fputc_e
.L141:
ldr x0, [sp, 56]
add x0, x0, 1
str x0, [sp, 56]
.L138:
ldr x1, [sp, 56]
ldr x0, [sp, 24]
cmp x1, x0
bcc .L142
nop
nop
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE29:
.size write_text, .-write_text
.section .rodata
.align 3
.LC23:
.string "program.c"
.align 3
.LC24:
.string "m >= 0"
.align 3
.LC25:
.string "(l - m) >= 0"
.text
.align 2
.type write_code_block, %function
write_code_block:
.LFB30:
.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 x2, [sp, 24]
str x3, [sp, 16]
str xzr, [sp, 64]
b .L144
.L149:
ldr x1, [sp, 32]
ldr x0, [sp, 64]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 10
beq .L190
ldr x1, [sp, 32]
ldr x0, [sp, 64]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 13
bne .L147
ldr x0, [sp, 64]
add x0, x0, 1
ldr x1, [sp, 24]
cmp x1, x0
bls .L191
ldr x0, [sp, 64]
add x0, x0, 1
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 10
bne .L191
ldr x0, [sp, 64]
add x0, x0, 1
str x0, [sp, 64]
b .L191
.L147:
ldr x0, [sp, 64]
add x0, x0, 1
str x0, [sp, 64]
.L144:
ldr x1, [sp, 64]
ldr x0, [sp, 24]
cmp x1, x0
bcc .L149
b .L146
.L190:
nop
b .L146
.L191:
nop
.L146:
ldr x1, [sp, 64]
ldr x0, [sp, 24]
cmp x1, x0
bcs .L150
mov w0, 1
str w0, [sp, 52]
ldr x0, [sp, 64]
add x0, x0, 1
str x0, [sp, 72]
str wzr, [sp, 56]
mov w0, -1
str w0, [sp, 60]
ldr x0, [sp, 72]
str x0, [sp, 64]
b .L151
.L163:
ldr x1, [sp, 32]
ldr x0, [sp, 64]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 32
beq .L152
cmp w0, 32
bgt .L153
cmp w0, 13
beq .L154
cmp w0, 13
bgt .L153
cmp w0, 12
bgt .L153
cmp w0, 11
bge .L152
cmp w0, 9
beq .L155
cmp w0, 10
beq .L156
b .L153
.L152:
ldr w0, [sp, 52]
cmp w0, 0
beq .L192
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
b .L192
.L155:
ldr w0, [sp, 52]
cmp w0, 0
beq .L193
ldr w0, [sp, 56]
add w0, w0, 8
and w0, w0, -8
str w0, [sp, 56]
b .L193
.L156:
mov w0, 1
str w0, [sp, 52]
str wzr, [sp, 56]
b .L158
.L154:
ldr x0, [sp, 64]
add x0, x0, 1
ldr x1, [sp, 24]
cmp x1, x0
bls .L160
ldr x0, [sp, 64]
add x0, x0, 1
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 10
bne .L160
ldr x0, [sp, 64]
add x0, x0, 1
str x0, [sp, 64]
.L160:
mov w0, 1
str w0, [sp, 52]
str wzr, [sp, 56]
b .L158
.L153:
str wzr, [sp, 52]
ldr w0, [sp, 60]
cmp w0, 0
blt .L161
ldr w1, [sp, 60]
ldr w0, [sp, 56]
cmp w1, w0
bge .L161
ldr w0, [sp, 60]
b .L162
.L161:
ldr w0, [sp, 56]
.L162:
str w0, [sp, 60]
b .L158
.L192:
nop
b .L158
.L193:
nop
.L158:
ldr x0, [sp, 64]
add x0, x0, 1
str x0, [sp, 64]
.L151:
ldr x1, [sp, 64]
ldr x0, [sp, 24]
cmp x1, x0
bcc .L163
str xzr, [sp, 64]
b .L164
.L167:
ldr x1, [sp, 32]
ldr x0, [sp, 64]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 32
beq .L165
ldr x1, [sp, 32]
ldr x0, [sp, 64]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 11
beq .L165
ldr x1, [sp, 32]
ldr x0, [sp, 64]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 12
beq .L165
ldr x1, [sp, 32]
ldr x0, [sp, 64]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 9
beq .L165
ldr x1, [sp, 32]
ldr x0, [sp, 64]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 10
beq .L165
ldr x1, [sp, 32]
ldr x0, [sp, 64]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 13
bne .L194
.L165:
ldr x0, [sp, 64]
add x0, x0, 1
str x0, [sp, 64]
.L164:
ldr x1, [sp, 64]
ldr x0, [sp, 72]
cmp x1, x0
bcc .L167
b .L166
.L194:
nop
.L166:
ldr x1, [sp, 64]
ldr x0, [sp, 72]
cmp x1, x0
bcs .L168
ldr x2, [sp, 16]
mov w1, 32
ldr x0, [sp, 40]
bl write_characters
ldr x1, [sp, 32]
ldr x0, [sp, 64]
add x3, x1, x0
ldr x1, [sp, 72]
ldr x0, [sp, 64]
sub x0, x1, x0
mov x2, x0
mov x1, x3
ldr x0, [sp, 40]
bl write_text
.L168:
mov w0, 1
str w0, [sp, 52]
str wzr, [sp, 56]
ldr x0, [sp, 72]
str x0, [sp, 64]
b .L169
.L184:
ldr x1, [sp, 32]
ldr x0, [sp, 64]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 32
beq .L170
cmp w0, 32
bgt .L171
cmp w0, 13
beq .L172
cmp w0, 13
bgt .L171
cmp w0, 12
bgt .L171
cmp w0, 11
bge .L170
cmp w0, 9
beq .L173
cmp w0, 10
beq .L174
b .L171
.L170:
ldr w0, [sp, 52]
cmp w0, 0
beq .L175
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
b .L177
.L175:
ldr x1, [sp, 32]
ldr x0, [sp, 64]
add x0, x1, x0
ldrb w0, [x0]
ldr x1, [sp, 40]
bl fputc_e
b .L177
.L173:
ldr w0, [sp, 52]
cmp w0, 0
beq .L178
ldr w0, [sp, 56]
add w0, w0, 8
and w0, w0, -8
str w0, [sp, 56]
b .L177
.L178:
ldr x1, [sp, 32]
ldr x0, [sp, 64]
add x0, x1, x0
ldrb w0, [x0]
ldr x1, [sp, 40]
bl fputc_e
b .L177
.L174:
ldr x1, [sp, 40]
mov w0, 10
bl fputc_e
mov w0, 1
str w0, [sp, 52]
str wzr, [sp, 56]
b .L177
.L172:
ldr x0, [sp, 64]
add x0, x0, 1
ldr x1, [sp, 24]
cmp x1, x0
bls .L180
ldr x0, [sp, 64]
add x0, x0, 1
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 10
bne .L180
ldr x0, [sp, 64]
add x0, x0, 1
str x0, [sp, 64]
.L180:
ldr x1, [sp, 40]
mov w0, 10
bl fputc_e
mov w0, 1
str w0, [sp, 52]
str wzr, [sp, 56]
b .L177
.L171:
ldr w0, [sp, 52]
cmp w0, 0
beq .L181
ldr w0, [sp, 60]
cmp w0, 0
bge .L182
adrp x0, __PRETTY_FUNCTION__.14
add x3, x0, :lo12:__PRETTY_FUNCTION__.14
mov w2, 630
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC24
add x0, x0, :lo12:.LC24
bl __assert_fail
.L182:
ldr w1, [sp, 56]
ldr w0, [sp, 60]
sub w0, w1, w0
cmp w0, 0
bge .L183
adrp x0, __PRETTY_FUNCTION__.14
add x3, x0, :lo12:__PRETTY_FUNCTION__.14
mov w2, 631
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC25
add x0, x0, :lo12:.LC25
bl __assert_fail
.L183:
ldr w1, [sp, 56]
ldr w0, [sp, 60]
sub w0, w1, w0
mov w1, 0
bl max_int
sxtw x1, w0
ldr x0, [sp, 16]
add x0, x1, x0
mov x2, x0
mov w1, 32
ldr x0, [sp, 40]
bl write_characters
str wzr, [sp, 52]
.L181:
ldr x1, [sp, 32]
ldr x0, [sp, 64]
add x0, x1, x0
ldrb w0, [x0]
ldr x1, [sp, 40]
bl fputc_e
.L177:
ldr x0, [sp, 64]
add x0, x0, 1
str x0, [sp, 64]
.L169:
ldr x1, [sp, 64]
ldr x0, [sp, 24]
cmp x1, x0
bcc .L184
ldr w0, [sp, 52]
cmp w0, 0
bne .L195
ldr x1, [sp, 40]
mov w0, 10
bl fputc_e
b .L195
.L150:
str xzr, [sp, 64]
b .L186
.L189:
ldr x1, [sp, 32]
ldr x0, [sp, 64]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 32
beq .L187
ldr x1, [sp, 32]
ldr x0, [sp, 64]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 11
beq .L187
ldr x1, [sp, 32]
ldr x0, [sp, 64]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 12
beq .L187
ldr x1, [sp, 32]
ldr x0, [sp, 64]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 9
bne .L196
.L187:
ldr x0, [sp, 64]
add x0, x0, 1
str x0, [sp, 64]
.L186:
ldr x1, [sp, 64]
ldr x0, [sp, 24]
cmp x1, x0
bcc .L189
b .L188
.L196:
nop
.L188:
ldr x1, [sp, 64]
ldr x0, [sp, 24]
cmp x1, x0
bcs .L195
ldr x2, [sp, 16]
mov w1, 32
ldr x0, [sp, 40]
bl write_characters
ldr x1, [sp, 32]
ldr x0, [sp, 64]
add x3, x1, x0
ldr x1, [sp, 24]
ldr x0, [sp, 64]
sub x0, x1, x0
mov x2, x0
mov x1, x3
ldr x0, [sp, 40]
bl write_text
ldr x1, [sp, 40]
mov w0, 10
bl fputc_e
.L195:
nop
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE30:
.size write_code_block, .-write_code_block
.align 2
.type extract_filename, %function
extract_filename:
.LFB31:
.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 x0, [sp, 40]
b .L198
.L200:
ldr x1, [sp, 24]
ldr x0, [sp, 40]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 47
beq .L199
ldr x1, [sp, 24]
ldr x0, [sp, 40]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 92
beq .L199
ldr x1, [sp, 24]
ldr x0, [sp, 40]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 58
beq .L199
.L198:
ldr x0, [sp, 40]
sub x1, x0, #1
str x1, [sp, 40]
cmp x0, 0
bne .L200
.L199:
ldr x0, [sp, 40]
add x0, x0, 1
ldr x1, [sp, 24]
add x0, x1, x0
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE31:
.size extract_filename, .-extract_filename
.align 2
.type extract_fileext, %function
extract_fileext:
.LFB32:
.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 x0, [sp, 40]
ldr x0, [sp, 40]
str x0, [sp, 32]
b .L203
.L206:
ldr x1, [sp, 24]
ldr x0, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 47
beq .L204
ldr x1, [sp, 24]
ldr x0, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 92
beq .L204
ldr x1, [sp, 24]
ldr x0, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 58
beq .L204
ldr x1, [sp, 24]
ldr x0, [sp, 32]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 46
bne .L203
ldr x1, [sp, 24]
ldr x0, [sp, 32]
add x0, x1, x0
b .L205
.L203:
ldr x0, [sp, 32]
sub x1, x0, #1
str x1, [sp, 32]
cmp x0, 0
bne .L206
.L204:
ldr x1, [sp, 24]
ldr x0, [sp, 40]
add x0, x1, x0
.L205:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE32:
.size extract_fileext, .-extract_fileext
.align 2
.type replace_fileext, %function
replace_fileext:
.LFB33:
.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]
ldr x0, [sp, 24]
bl extract_fileext
str x0, [sp, 32]
ldr x1, [sp, 32]
ldr x0, [sp, 24]
sub x0, x1, x0
str x0, [sp, 40]
ldr x0, [sp, 16]
bl strlen
str x0, [sp, 48]
ldr x1, [sp, 40]
ldr x0, [sp, 48]
add x0, x1, x0
add x0, x0, 2
bl malloc_e
str x0, [sp, 56]
ldr x2, [sp, 40]
ldr x1, [sp, 24]
ldr x0, [sp, 56]
bl memcpy
ldr x1, [sp, 56]
ldr x0, [sp, 40]
add x0, x1, x0
mov w1, 46
strb w1, [x0]
ldr x0, [sp, 40]
add x0, x0, 1
ldr x1, [sp, 56]
add x3, x1, x0
ldr x0, [sp, 48]
add x0, x0, 1
mov x2, x0
ldr x1, [sp, 16]
mov x0, x3
bl memcpy
ldr x0, [sp, 56]
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE33:
.size replace_fileext, .-replace_fileext
.align 2
.type add_fileext, %function
add_fileext:
.LFB34:
.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]
ldr x0, [sp, 24]
bl strlen
str x0, [sp, 40]
ldr x0, [sp, 16]
bl strlen
str x0, [sp, 48]
ldr x1, [sp, 40]
ldr x0, [sp, 48]
add x0, x1, x0
add x0, x0, 2
bl malloc_e
str x0, [sp, 56]
ldr x2, [sp, 40]
ldr x1, [sp, 24]
ldr x0, [sp, 56]
bl memcpy
ldr x1, [sp, 56]
ldr x0, [sp, 40]
add x0, x1, x0
mov w1, 46
strb w1, [x0]
ldr x0, [sp, 40]
add x0, x0, 1
ldr x1, [sp, 56]
add x3, x1, x0
ldr x0, [sp, 48]
add x0, x0, 1
mov x2, x0
ldr x1, [sp, 16]
mov x0, x3
bl memcpy
ldr x0, [sp, 56]
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE34:
.size add_fileext, .-add_fileext
.align 2
.type hash_string, %function
hash_string:
.LFB35:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str wzr, [sp, 28]
str wzr, [sp, 24]
b .L212
.L213:
ldr w1, [sp, 28]
mov w0, w1
lsl w0, w0, 5
sub w0, w0, w1
ldrsw x1, [sp, 24]
ldr x2, [sp, 8]
add x1, x2, x1
ldrb w1, [x1]
add w0, w0, w1
str w0, [sp, 28]
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L212:
ldrsw x0, [sp, 24]
ldr x1, [sp, 8]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 0
bne .L213
ldr w0, [sp, 28]
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE35:
.size hash_string, .-hash_string
.align 2
.type populate_bits, %function
populate_bits:
.LFB36:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, 12]
ldr w0, [sp, 12]
asr w0, w0, 1
ldr w1, [sp, 12]
orr w0, w1, w0
str w0, [sp, 12]
ldr w0, [sp, 12]
asr w0, w0, 2
ldr w1, [sp, 12]
orr w0, w1, w0
str w0, [sp, 12]
ldr w0, [sp, 12]
asr w0, w0, 4
ldr w1, [sp, 12]
orr w0, w1, w0
str w0, [sp, 12]
ldr w0, [sp, 12]
asr w0, w0, 8
ldr w1, [sp, 12]
orr w0, w1, w0
str w0, [sp, 12]
ldr w0, [sp, 12]
asr w0, w0, 16
ldr w1, [sp, 12]
orr w0, w1, w0
str w0, [sp, 12]
ldr w0, [sp, 12]
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE36:
.size populate_bits, .-populate_bits
.align 2
.type char_array__init, %function
char_array__init:
.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 x0, [sp, 24]
str wzr, [x0, 12]
ldr x0, [sp, 24]
ldr w1, [sp, 20]
str w1, [x0, 8]
ldr x0, [sp, 24]
ldr w0, [x0, 8]
sxtw x0, w0
bl malloc_e
mov x1, x0
ldr x0, [sp, 24]
str x1, [x0]
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE37:
.size char_array__init, .-char_array__init
.align 2
.type char_array__add, %function
char_array__add:
.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]
strb w1, [sp, 23]
ldr x0, [sp, 24]
ldr w0, [x0, 8]
cmp w0, 0
bgt .L220
ldr x0, [sp, 24]
mov w1, 1
str w1, [x0, 8]
b .L220
.L221:
ldr x0, [sp, 24]
ldr w0, [x0, 8]
lsl w1, w0, 1
ldr x0, [sp, 24]
str w1, [x0, 8]
.L220:
ldr x0, [sp, 24]
ldr w1, [x0, 8]
ldr x0, [sp, 24]
ldr w0, [x0, 12]
cmp w1, w0
ble .L221
ldr x0, [sp, 24]
ldr x2, [x0]
ldr x0, [sp, 24]
ldr w0, [x0, 8]
sxtw x0, w0
mov x1, x0
mov x0, x2
bl realloc_e
mov x1, x0
ldr x0, [sp, 24]
str x1, [x0]
ldr x0, [sp, 24]
ldr x1, [x0]
ldr x0, [sp, 24]
ldr w0, [x0, 12]
add w3, w0, 1
ldr x2, [sp, 24]
str w3, [x2, 12]
sxtw x0, w0
add x0, x1, x0
ldrb w1, [sp, 23]
strb w1, [x0]
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE38:
.size char_array__add, .-char_array__add
.align 2
.type char_array__term, %function
char_array__term:
.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]
ldr x0, [sp, 24]
ldr x0, [x0]
bl free
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE39:
.size char_array__term, .-char_array__term
.align 2
.type node_array__init, %function
node_array__init:
.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]
str w1, [sp, 20]
ldr x0, [sp, 24]
str wzr, [x0, 12]
ldr x0, [sp, 24]
ldr w1, [sp, 20]
str w1, [x0, 8]
ldr x0, [sp, 24]
ldr w0, [x0, 8]
sxtw x0, w0
lsl x0, x0, 3
bl malloc_e
mov x1, x0
ldr x0, [sp, 24]
str x1, [x0]
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE40:
.size node_array__init, .-node_array__init
.align 2
.type node_array__add, %function
node_array__add:
.LFB41:
.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, 24]
ldr w0, [x0, 8]
cmp w0, 0
bgt .L226
ldr x0, [sp, 24]
mov w1, 1
str w1, [x0, 8]
b .L226
.L227:
ldr x0, [sp, 24]
ldr w0, [x0, 8]
lsl w1, w0, 1
ldr x0, [sp, 24]
str w1, [x0, 8]
.L226:
ldr x0, [sp, 24]
ldr w1, [x0, 8]
ldr x0, [sp, 24]
ldr w0, [x0, 12]
cmp w1, w0
ble .L227
ldr x0, [sp, 24]
ldr x2, [x0]
ldr x0, [sp, 24]
ldr w0, [x0, 8]
sxtw x0, w0
lsl x0, x0, 3
mov x1, x0
mov x0, x2
bl realloc_e
mov x1, x0
ldr x0, [sp, 24]
str x1, [x0]
ldr x0, [sp, 24]
ldr x1, [x0]
ldr x0, [sp, 24]
ldr w0, [x0, 12]
add w3, w0, 1
ldr x2, [sp, 24]
str w3, [x2, 12]
sxtw x0, w0
lsl x0, x0, 3
add x0, x1, x0
ldr x1, [sp, 16]
str x1, [x0]
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE41:
.size node_array__add, .-node_array__add
.align 2
.type node_array__term, %function
node_array__term:
.LFB42:
.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, 12]
sub w0, w0, #1
str w0, [sp, 44]
b .L229
.L230:
ldr x0, [sp, 24]
ldr x1, [x0]
ldrsw x0, [sp, 44]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
bl destroy_node
ldr w0, [sp, 44]
sub w0, w0, #1
str w0, [sp, 44]
.L229:
ldr w0, [sp, 44]
cmp w0, 0
bge .L230
ldr x0, [sp, 24]
ldr x0, [x0]
bl free
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE42:
.size node_array__term, .-node_array__term
.align 2
.type node_const_array__init, %function
node_const_array__init:
.LFB43:
.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 x0, [sp, 24]
str wzr, [x0, 12]
ldr x0, [sp, 24]
ldr w1, [sp, 20]
str w1, [x0, 8]
ldr x0, [sp, 24]
ldr w0, [x0, 8]
sxtw x0, w0
lsl x0, x0, 3
bl malloc_e
mov x1, x0
ldr x0, [sp, 24]
str x1, [x0]
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE43:
.size node_const_array__init, .-node_const_array__init
.align 2
.type node_const_array__add, %function
node_const_array__add:
.LFB44:
.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, 24]
ldr w0, [x0, 8]
cmp w0, 0
bgt .L234
ldr x0, [sp, 24]
mov w1, 1
str w1, [x0, 8]
b .L234
.L235:
ldr x0, [sp, 24]
ldr w0, [x0, 8]
lsl w1, w0, 1
ldr x0, [sp, 24]
str w1, [x0, 8]
.L234:
ldr x0, [sp, 24]
ldr w1, [x0, 8]
ldr x0, [sp, 24]
ldr w0, [x0, 12]
cmp w1, w0
ble .L235
ldr x0, [sp, 24]
ldr x2, [x0]
ldr x0, [sp, 24]
ldr w0, [x0, 8]
sxtw x0, w0
lsl x0, x0, 3
mov x1, x0
mov x0, x2
bl realloc_e
mov x1, x0
ldr x0, [sp, 24]
str x1, [x0]
ldr x0, [sp, 24]
ldr x1, [x0]
ldr x0, [sp, 24]
ldr w0, [x0, 12]
add w3, w0, 1
ldr x2, [sp, 24]
str w3, [x2, 12]
sxtw x0, w0
lsl x0, x0, 3
add x0, x1, x0
ldr x1, [sp, 16]
str x1, [x0]
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE44:
.size node_const_array__add, .-node_const_array__add
.align 2
.type node_const_array__clear, %function
node_const_array__clear:
.LFB45:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
ldr x0, [sp, 8]
str wzr, [x0, 12]
nop
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE45:
.size node_const_array__clear, .-node_const_array__clear
.align 2
.type node_const_array__copy, %function
node_const_array__copy:
.LFB46:
.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, 24]
bl node_const_array__clear
str wzr, [sp, 44]
b .L238
.L239:
ldr x0, [sp, 16]
ldr x1, [x0]
ldrsw x0, [sp, 44]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
mov x1, x0
ldr x0, [sp, 24]
bl node_const_array__add
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L238:
ldr x0, [sp, 16]
ldr w0, [x0, 12]
ldr w1, [sp, 44]
cmp w1, w0
blt .L239
nop
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE46:
.size node_const_array__copy, .-node_const_array__copy
.align 2
.type node_const_array__term, %function
node_const_array__term:
.LFB47:
.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]
ldr x0, [x0]
bl free
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE47:
.size node_const_array__term, .-node_const_array__term
.section .rodata
.align 3
.LC26:
.string "-"
.align 3
.LC27:
.string "c"
.align 3
.LC28:
.string "h"
.text
.align 2
.type create_context, %function
create_context:
.LFB48:
.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]
mov x0, 152
bl malloc_e
str x0, [sp, 56]
ldr x0, [sp, 40]
cmp x0, 0
beq .L242
ldr x0, [sp, 40]
ldrb w0, [x0]
cmp w0, 0
beq .L242
ldr x0, [sp, 40]
b .L243
.L242:
adrp x0, .LC26
add x0, x0, :lo12:.LC26
.L243:
bl strdup_e
mov x1, x0
ldr x0, [sp, 56]
str x1, [x0]
ldr x0, [sp, 32]
cmp x0, 0
beq .L244
ldr x0, [sp, 32]
ldrb w0, [x0]
cmp w0, 0
beq .L244
adrp x0, .LC27
add x1, x0, :lo12:.LC27
ldr x0, [sp, 32]
bl add_fileext
b .L245
.L244:
ldr x0, [sp, 56]
ldr x2, [x0]
adrp x0, .LC27
add x1, x0, :lo12:.LC27
mov x0, x2
bl replace_fileext
.L245:
ldr x1, [sp, 56]
str x0, [x1, 8]
ldr x0, [sp, 32]
cmp x0, 0
beq .L246
ldr x0, [sp, 32]
ldrb w0, [x0]
cmp w0, 0
beq .L246
adrp x0, .LC28
add x1, x0, :lo12:.LC28
ldr x0, [sp, 32]
bl add_fileext
b .L247
.L246:
ldr x0, [sp, 56]
ldr x2, [x0]
adrp x0, .LC28
add x1, x0, :lo12:.LC28
mov x0, x2
bl replace_fileext
.L247:
ldr x1, [sp, 56]
str x0, [x1, 16]
ldr x0, [sp, 40]
cmp x0, 0
beq .L248
ldr x0, [sp, 40]
ldrb w0, [x0]
cmp w0, 0
beq .L248
ldr x0, [sp, 56]
ldr x0, [x0]
bl fopen_rb_e
b .L249
.L248:
adrp x0, :got:stdin
ldr x0, [x0, #:got_lo12:stdin]
ldr x0, [x0]
.L249:
ldr x1, [sp, 56]
str x0, [x1, 24]
ldr x0, [sp, 56]
ldr x0, [x0, 8]
bl fopen_wt_e
mov x1, x0
ldr x0, [sp, 56]
str x1, [x0, 32]
ldr x0, [sp, 56]
ldr x0, [x0, 16]
bl fopen_wt_e
mov x1, x0
ldr x0, [sp, 56]
str x1, [x0, 40]
ldr x0, [sp, 56]
ldr x0, [x0, 16]
bl strdup_e
mov x1, x0
ldr x0, [sp, 56]
str x1, [x0, 48]
ldr x0, [sp, 56]
ldr x0, [x0, 48]
bl make_header_identifier
ldr x0, [sp, 56]
str xzr, [x0, 56]
ldr x0, [sp, 56]
str xzr, [x0, 64]
ldr x0, [sp, 56]
str xzr, [x0, 72]
ldr x0, [sp, 56]
ldr w1, [sp, 28]
str w1, [x0, 80]
ldr x0, [sp, 56]
str wzr, [x0, 84]
ldr x0, [sp, 56]
str wzr, [x0, 88]
ldr x0, [sp, 56]
str wzr, [x0, 92]
ldr x0, [sp, 56]
str wzr, [x0, 96]
ldr x0, [sp, 56]
add x0, x0, 104
mov w1, 256
bl char_array__init
ldr x0, [sp, 56]
add x0, x0, 120
mov w1, 2
bl node_array__init
ldr x0, [sp, 56]
str wzr, [x0, 148]
ldr x0, [sp, 56]
str wzr, [x0, 144]
ldr x0, [sp, 56]
str xzr, [x0, 136]
ldr x0, [sp, 56]
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE48:
.size create_context, .-create_context
.section .rodata
.align 3
.LC29:
.string "Internal error [%d]\n"
.text
.align 2
.type create_node, %function
create_node:
.LFB49:
.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, 88
bl malloc_e
str x0, [sp, 40]
ldr x0, [sp, 40]
ldr w1, [sp, 28]
str w1, [x0]
ldr x0, [sp, 40]
ldr w0, [x0]
cmp w0, 11
beq .L252
cmp w0, 11
bhi .L253
cmp w0, 10
beq .L254
cmp w0, 10
bhi .L253
cmp w0, 9
beq .L255
cmp w0, 9
bhi .L253
cmp w0, 8
beq .L256
cmp w0, 8
bhi .L253
cmp w0, 7
beq .L257
cmp w0, 7
bhi .L253
cmp w0, 6
beq .L258
cmp w0, 6
bhi .L253
cmp w0, 5
beq .L259
cmp w0, 5
bhi .L253
cmp w0, 4
beq .L260
cmp w0, 4
bhi .L253
cmp w0, 3
beq .L261
cmp w0, 3
bhi .L253
cmp w0, 2
beq .L262
cmp w0, 2
bhi .L253
cmp w0, 0
beq .L263
cmp w0, 1
beq .L264
b .L253
.L263:
ldr x0, [sp, 40]
str xzr, [x0, 8]
ldr x0, [sp, 40]
str xzr, [x0, 16]
ldr x0, [sp, 40]
str wzr, [x0, 24]
ldr x0, [sp, 40]
add x0, x0, 32
mov w1, 2
bl node_const_array__init
ldr x0, [sp, 40]
add x0, x0, 48
mov w1, 2
bl node_const_array__init
ldr x0, [sp, 40]
add x0, x0, 64
mov w1, 2
bl node_const_array__init
ldr x0, [sp, 40]
mov w1, -1
str w1, [x0, 80]
ldr x0, [sp, 40]
mov w1, -1
str w1, [x0, 84]
b .L265
.L264:
ldr x0, [sp, 40]
str xzr, [x0, 8]
ldr x0, [sp, 40]
mov w1, -1
str w1, [x0, 16]
ldr x0, [sp, 40]
str xzr, [x0, 24]
ldr x0, [sp, 40]
str xzr, [x0, 32]
ldr x0, [sp, 40]
mov w1, -1
str w1, [x0, 40]
ldr x0, [sp, 40]
mov w1, -1
str w1, [x0, 44]
b .L265
.L262:
ldr x0, [sp, 40]
str xzr, [x0, 8]
b .L265
.L261:
ldr x0, [sp, 40]
str xzr, [x0, 8]
b .L265
.L260:
ldr x0, [sp, 40]
str wzr, [x0, 12]
ldr x0, [sp, 40]
ldr w1, [x0, 12]
ldr x0, [sp, 40]
str w1, [x0, 8]
ldr x0, [sp, 40]
str xzr, [x0, 16]
b .L265
.L259:
ldr x0, [sp, 40]
str wzr, [x0, 8]
ldr x0, [sp, 40]
str xzr, [x0, 16]
b .L265
.L258:
ldr x0, [sp, 40]
add x0, x0, 8
mov w1, 2
bl node_array__init
b .L265
.L257:
ldr x0, [sp, 40]
add x0, x0, 8
mov w1, 2
bl node_array__init
b .L265
.L256:
ldr x0, [sp, 40]
str xzr, [x0, 8]
ldr x0, [sp, 40]
mov w1, -1
str w1, [x0, 16]
b .L265
.L255:
ldr x0, [sp, 40]
mov w1, -1
str w1, [x0, 8]
ldr x0, [sp, 40]
mov w1, -1
str w1, [x0, 12]
ldr x0, [sp, 40]
mov w1, -1
str w1, [x0, 16]
b .L265
.L254:
ldr x0, [sp, 40]
str xzr, [x0, 8]
ldr x0, [sp, 40]
mov w1, -1
str w1, [x0, 16]
ldr x0, [sp, 40]
add x0, x0, 24
mov w1, 2
bl node_const_array__init
ldr x0, [sp, 40]
add x0, x0, 40
mov w1, 2
bl node_const_array__init
b .L265
.L252:
ldr x0, [sp, 40]
str xzr, [x0, 8]
ldr x0, [sp, 40]
str xzr, [x0, 16]
ldr x0, [sp, 40]
mov w1, -1
str w1, [x0, 24]
ldr x0, [sp, 40]
add x0, x0, 32
mov w1, 2
bl node_const_array__init
ldr x0, [sp, 40]
add x0, x0, 48
mov w1, 2
bl node_const_array__init
b .L265
.L253:
mov w1, 871
adrp x0, .LC29
add x0, x0, :lo12:.LC29
bl print_error
mov w0, -1
bl exit
.L265:
ldr x0, [sp, 40]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE49:
.size create_node, .-create_node
.align 2
.type destroy_node, %function
destroy_node:
.LFB50:
.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 .L284
ldr x0, [sp, 24]
ldr w0, [x0]
cmp w0, 11
beq .L270
cmp w0, 11
bhi .L271
cmp w0, 10
beq .L272
cmp w0, 10
bhi .L271
cmp w0, 9
beq .L285
cmp w0, 9
bhi .L271
cmp w0, 8
beq .L274
cmp w0, 8
bhi .L271
cmp w0, 7
beq .L275
cmp w0, 7
bhi .L271
cmp w0, 6
beq .L276
cmp w0, 6
bhi .L271
cmp w0, 5
beq .L277
cmp w0, 5
bhi .L271
cmp w0, 4
beq .L278
cmp w0, 4
bhi .L271
cmp w0, 3
beq .L279
cmp w0, 3
bhi .L271
cmp w0, 2
beq .L280
cmp w0, 2
bhi .L271
cmp w0, 0
beq .L281
cmp w0, 1
beq .L282
b .L271
.L281:
ldr x0, [sp, 24]
add x0, x0, 64
bl node_const_array__term
ldr x0, [sp, 24]
add x0, x0, 48
bl node_const_array__term
ldr x0, [sp, 24]
add x0, x0, 32
bl node_const_array__term
ldr x0, [sp, 24]
ldr x0, [x0, 16]
bl destroy_node
ldr x0, [sp, 24]
ldr x0, [x0, 8]
bl free
b .L283
.L282:
ldr x0, [sp, 24]
ldr x0, [x0, 24]
bl free
ldr x0, [sp, 24]
ldr x0, [x0, 8]
bl free
b .L283
.L280:
ldr x0, [sp, 24]
ldr x0, [x0, 8]
bl free
b .L283
.L279:
ldr x0, [sp, 24]
ldr x0, [x0, 8]
bl free
b .L283
.L278:
ldr x0, [sp, 24]
ldr x0, [x0, 16]
bl destroy_node
b .L283
.L277:
ldr x0, [sp, 24]
ldr x0, [x0, 16]
bl destroy_node
b .L283
.L276:
ldr x0, [sp, 24]
add x0, x0, 8
bl node_array__term
b .L283
.L275:
ldr x0, [sp, 24]
add x0, x0, 8
bl node_array__term
b .L283
.L274:
ldr x0, [sp, 24]
ldr x0, [x0, 8]
bl destroy_node
b .L283
.L272:
ldr x0, [sp, 24]
add x0, x0, 40
bl node_const_array__term
ldr x0, [sp, 24]
add x0, x0, 24
bl node_const_array__term
ldr x0, [sp, 24]
ldr x0, [x0, 8]
bl free
b .L283
.L270:
ldr x0, [sp, 24]
add x0, x0, 48
bl node_const_array__term
ldr x0, [sp, 24]
add x0, x0, 32
bl node_const_array__term
ldr x0, [sp, 24]
ldr x0, [x0, 16]
bl free
ldr x0, [sp, 24]
ldr x0, [x0, 8]
bl destroy_node
b .L283
.L271:
mov w1, 926
adrp x0, .LC29
add x0, x0, :lo12:.LC29
bl print_error
mov w0, -1
bl exit
.L285:
nop
.L283:
ldr x0, [sp, 24]
bl free
b .L267
.L284:
nop
.L267:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE50:
.size destroy_node, .-destroy_node
.align 2
.type destroy_context, %function
destroy_context:
.LFB51:
.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 .L291
ldr x0, [sp, 24]
ldr x0, [x0, 136]
bl free
ldr x0, [sp, 24]
add x0, x0, 120
bl node_array__term
ldr x0, [sp, 24]
add x0, x0, 104
bl char_array__term
ldr x0, [sp, 24]
ldr x0, [x0, 72]
bl free
ldr x0, [sp, 24]
ldr x0, [x0, 64]
bl free
ldr x0, [sp, 24]
ldr x0, [x0, 56]
bl free
ldr x0, [sp, 24]
ldr x0, [x0, 48]
bl free
ldr x0, [sp, 24]
ldr x0, [x0, 40]
bl fclose_e
ldr x0, [sp, 24]
ldr w0, [x0, 84]
cmp w0, 0
beq .L289
ldr x0, [sp, 24]
ldr x0, [x0, 16]
bl unlink
.L289:
ldr x0, [sp, 24]
ldr x0, [x0, 32]
bl fclose_e
ldr x0, [sp, 24]
ldr w0, [x0, 84]
cmp w0, 0
beq .L290
ldr x0, [sp, 24]
ldr x0, [x0, 8]
bl unlink
.L290:
ldr x0, [sp, 24]
ldr x0, [x0, 24]
bl fclose_e
ldr x0, [sp, 24]
ldr x0, [x0, 16]
bl free
ldr x0, [sp, 24]
ldr x0, [x0, 8]
bl free
ldr x0, [sp, 24]
ldr x0, [x0]
bl free
ldr x0, [sp, 24]
bl free
b .L286
.L291:
nop
.L286:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE51:
.size destroy_context, .-destroy_context
.section .rodata
.align 3
.LC30:
.string "ctx->rules.buf[i]->type == NODE_RULE"
.align 3
.LC31:
.string "ctx->rules.buf[i]->data.rule.ref == 0"
.align 3
.LC32:
.string "ctx->rulehash.buf[j]->data.rule.ref == 0"
.text
.align 2
.type make_rulehash, %function
make_rulehash:
.LFB52:
.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, 132]
lsl w0, w0, 2
bl populate_bits
mov w1, w0
ldr x0, [sp, 24]
str w1, [x0, 148]
ldr x0, [sp, 24]
ldr w0, [x0, 148]
add w1, w0, 1
ldr x0, [sp, 24]
str w1, [x0, 144]
ldr x0, [sp, 24]
ldr x2, [x0, 136]
ldr x0, [sp, 24]
ldr w0, [x0, 144]
sxtw x0, w0
lsl x0, x0, 3
mov x1, x0
mov x0, x2
bl realloc_e
mov x1, x0
ldr x0, [sp, 24]
str x1, [x0, 136]
str wzr, [sp, 40]
b .L293
.L294:
ldr x0, [sp, 24]
ldr x1, [x0, 136]
ldrsw x0, [sp, 40]
lsl x0, x0, 3
add x0, x1, x0
str xzr, [x0]
ldr w0, [sp, 40]
add w0, w0, 1
str w0, [sp, 40]
.L293:
ldr x0, [sp, 24]
ldr w0, [x0, 144]
ldr w1, [sp, 40]
cmp w1, w0
blt .L294
str wzr, [sp, 40]
b .L295
.L303:
ldr x0, [sp, 24]
ldr x1, [x0, 120]
ldrsw x0, [sp, 40]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0]
cmp w0, 0
beq .L296
adrp x0, __PRETTY_FUNCTION__.13
add x3, x0, :lo12:__PRETTY_FUNCTION__.13
mov w2, 959
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC30
add x0, x0, :lo12:.LC30
bl __assert_fail
.L296:
ldr x0, [sp, 24]
ldr x1, [x0, 120]
ldrsw x0, [sp, 40]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x0, [x0, 8]
bl hash_string
mov w1, w0
ldr x0, [sp, 24]
ldr w0, [x0, 148]
and w0, w1, w0
str w0, [sp, 44]
b .L297
.L302:
ldr x0, [sp, 24]
ldr x1, [x0, 120]
ldrsw x0, [sp, 40]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x2, [x0, 8]
ldr x0, [sp, 24]
ldr x1, [x0, 136]
ldrsw x0, [sp, 44]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x0, [x0, 8]
mov x1, x0
mov x0, x2
bl strcmp
cmp w0, 0
bne .L298
ldr x0, [sp, 24]
ldr x1, [x0, 120]
ldrsw x0, [sp, 40]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0, 24]
cmp w0, 0
beq .L299
adrp x0, __PRETTY_FUNCTION__.13
add x3, x0, :lo12:__PRETTY_FUNCTION__.13
mov w2, 963
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC31
add x0, x0, :lo12:.LC31
bl __assert_fail
.L299:
ldr x0, [sp, 24]
ldr x1, [x0, 136]
ldrsw x0, [sp, 44]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0, 24]
cmp w0, 0
beq .L300
adrp x0, __PRETTY_FUNCTION__.13
add x3, x0, :lo12:__PRETTY_FUNCTION__.13
mov w2, 964
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC32
add x0, x0, :lo12:.LC32
bl __assert_fail
.L300:
ldr x0, [sp, 24]
ldr x1, [x0, 120]
ldrsw x0, [sp, 40]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
mov w1, -1
str w1, [x0, 24]
b .L301
.L298:
ldr w0, [sp, 44]
add w1, w0, 1
ldr x0, [sp, 24]
ldr w0, [x0, 148]
and w0, w1, w0
str w0, [sp, 44]
.L297:
ldr x0, [sp, 24]
ldr x1, [x0, 136]
ldrsw x0, [sp, 44]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
cmp x0, 0
bne .L302
ldr x0, [sp, 24]
ldr x1, [x0, 120]
ldrsw x0, [sp, 40]
lsl x0, x0, 3
add x1, x1, x0
ldr x0, [sp, 24]
ldr x2, [x0, 136]
ldrsw x0, [sp, 44]
lsl x0, x0, 3
add x0, x2, x0
ldr x1, [x1]
str x1, [x0]
.L301:
ldr w0, [sp, 40]
add w0, w0, 1
str w0, [sp, 40]
.L295:
ldr x0, [sp, 24]
ldr w0, [x0, 132]
ldr w1, [sp, 40]
cmp w1, w0
blt .L303
nop
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE52:
.size make_rulehash, .-make_rulehash
.align 2
.type lookup_rulehash, %function
lookup_rulehash:
.LFB53:
.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]
bl hash_string
mov w1, w0
ldr x0, [sp, 24]
ldr w0, [x0, 148]
and w0, w1, w0
str w0, [sp, 44]
b .L305
.L307:
ldr w0, [sp, 44]
add w1, w0, 1
ldr x0, [sp, 24]
ldr w0, [x0, 148]
and w0, w1, w0
str w0, [sp, 44]
.L305:
ldr x0, [sp, 24]
ldr x1, [x0, 136]
ldrsw x0, [sp, 44]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
cmp x0, 0
beq .L306
ldr x0, [sp, 24]
ldr x1, [x0, 136]
ldrsw x0, [sp, 44]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x0, [x0, 8]
mov x1, x0
ldr x0, [sp, 16]
bl strcmp
cmp w0, 0
bne .L307
.L306:
ldr x0, [sp, 24]
ldr x1, [x0, 136]
ldrsw x0, [sp, 44]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE53:
.size lookup_rulehash, .-lookup_rulehash
.section .rodata
.align 3
.LC33:
.string "%s:%d:%d: No definition of rule '%s'\n"
.align 3
.LC34:
.string "node->data.reference.rule->type == NODE_RULE"
.text
.align 2
.type link_references, %function
link_references:
.LFB54:
.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, 0
beq .L332
ldr x0, [sp, 16]
ldr w0, [x0]
cmp w0, 11
beq .L312
cmp w0, 11
bhi .L313
cmp w0, 10
beq .L333
cmp w0, 10
bhi .L313
cmp w0, 9
beq .L334
cmp w0, 9
bhi .L313
cmp w0, 8
beq .L316
cmp w0, 8
bhi .L313
cmp w0, 7
beq .L317
cmp w0, 7
bhi .L313
cmp w0, 6
beq .L318
cmp w0, 6
bhi .L313
cmp w0, 5
beq .L319
cmp w0, 5
bhi .L313
cmp w0, 4
beq .L320
cmp w0, 4
bhi .L313
cmp w0, 3
beq .L335
cmp w0, 3
bhi .L313
cmp w0, 2
beq .L336
cmp w0, 2
bhi .L313
cmp w0, 0
beq .L323
cmp w0, 1
beq .L324
b .L313
.L323:
mov w1, 988
adrp x0, .LC29
add x0, x0, :lo12:.LC29
bl print_error
mov w0, -1
bl exit
.L324:
ldr x0, [sp, 16]
ldr x0, [x0, 24]
mov x1, x0
ldr x0, [sp, 24]
bl lookup_rulehash
mov x1, x0
ldr x0, [sp, 16]
str x1, [x0, 32]
ldr x0, [sp, 16]
ldr x0, [x0, 32]
cmp x0, 0
bne .L325
ldr x0, [sp, 24]
ldr x1, [x0]
ldr x0, [sp, 16]
ldr w0, [x0, 40]
add w2, w0, 1
ldr x0, [sp, 16]
ldr w0, [x0, 44]
add w3, w0, 1
ldr x0, [sp, 16]
ldr x0, [x0, 24]
mov x4, x0
adrp x0, .LC33
add x0, x0, :lo12:.LC33
bl print_error
ldr x0, [sp, 24]
ldr w0, [x0, 84]
add w1, w0, 1
ldr x0, [sp, 24]
str w1, [x0, 84]
b .L309
.L325:
ldr x0, [sp, 16]
ldr x0, [x0, 32]
ldr w0, [x0]
cmp w0, 0
beq .L327
adrp x0, __PRETTY_FUNCTION__.12
add x3, x0, :lo12:__PRETTY_FUNCTION__.12
mov w2, 998
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC34
add x0, x0, :lo12:.LC34
bl __assert_fail
.L327:
ldr x0, [sp, 16]
ldr x0, [x0, 32]
ldr w1, [x0, 24]
add w1, w1, 1
str w1, [x0, 24]
b .L309
.L320:
ldr x0, [sp, 16]
ldr x0, [x0, 16]
mov x1, x0
ldr x0, [sp, 24]
bl link_references
b .L309
.L319:
ldr x0, [sp, 16]
ldr x0, [x0, 16]
mov x1, x0
ldr x0, [sp, 24]
bl link_references
b .L309
.L318:
str wzr, [sp, 40]
b .L328
.L329:
ldr x0, [sp, 16]
ldr x1, [x0, 8]
ldrsw x0, [sp, 40]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
mov x1, x0
ldr x0, [sp, 24]
bl link_references
ldr w0, [sp, 40]
add w0, w0, 1
str w0, [sp, 40]
.L328:
ldr x0, [sp, 16]
ldr w0, [x0, 20]
ldr w1, [sp, 40]
cmp w1, w0
blt .L329
b .L309
.L317:
str wzr, [sp, 44]
b .L330
.L331:
ldr x0, [sp, 16]
ldr x1, [x0, 8]
ldrsw x0, [sp, 44]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
mov x1, x0
ldr x0, [sp, 24]
bl link_references
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L330:
ldr x0, [sp, 16]
ldr w0, [x0, 20]
ldr w1, [sp, 44]
cmp w1, w0
blt .L331
b .L309
.L316:
ldr x0, [sp, 16]
ldr x0, [x0, 8]
mov x1, x0
ldr x0, [sp, 24]
bl link_references
b .L309
.L312:
ldr x0, [sp, 16]
ldr x0, [x0, 8]
mov x1, x0
ldr x0, [sp, 24]
bl link_references
b .L309
.L313:
mov w1, 1039
adrp x0, .LC29
add x0, x0, :lo12:.LC29
bl print_error
mov w0, -1
bl exit
.L332:
nop
b .L309
.L333:
nop
b .L309
.L334:
nop
b .L309
.L335:
nop
b .L309
.L336:
nop
.L309:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE54:
.size link_references, .-link_references
.section .rodata
.align 3
.LC35:
.string "vars->buf[i]->type == NODE_REFERENCE"
.text
.align 2
.type verify_variables, %function
verify_variables:
.LFB55:
.cfi_startproc
stp x29, x30, [sp, -128]!
.cfi_def_cfa_offset 128
.cfi_offset 29, -128
.cfi_offset 30, -120
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, 120]
mov x1, 0
ldr x0, [sp, 24]
cmp x0, 0
cset w0, eq
and w0, w0, 255
str w0, [sp, 80]
ldr x0, [sp, 32]
cmp x0, 0
beq .L374
ldr w0, [sp, 80]
cmp w0, 0
beq .L340
add x0, sp, 88
mov w1, 2
bl node_const_array__init
add x0, sp, 88
str x0, [sp, 24]
.L340:
ldr x0, [sp, 32]
ldr w0, [x0]
cmp w0, 11
beq .L341
cmp w0, 11
bhi .L342
cmp w0, 10
beq .L343
cmp w0, 10
bhi .L342
cmp w0, 9
beq .L375
cmp w0, 9
bhi .L342
cmp w0, 8
beq .L345
cmp w0, 8
bhi .L342
cmp w0, 7
beq .L346
cmp w0, 7
bhi .L342
cmp w0, 6
beq .L347
cmp w0, 6
bhi .L342
cmp w0, 5
beq .L348
cmp w0, 5
bhi .L342
cmp w0, 4
beq .L349
cmp w0, 4
bhi .L342
cmp w0, 3
beq .L376
cmp w0, 3
bhi .L342
cmp w0, 2
beq .L377
cmp w0, 2
bhi .L342
cmp w0, 0
beq .L352
cmp w0, 1
beq .L353
b .L342
.L352:
mov w1, 1054
adrp x0, .LC29
add x0, x0, :lo12:.LC29
bl print_error
mov w0, -1
bl exit
.L353:
ldr x0, [sp, 32]
ldr w0, [x0, 16]
cmp w0, 0
blt .L378
str wzr, [sp, 60]
b .L355
.L359:
ldr x0, [sp, 24]
ldr x1, [x0]
ldrsw x0, [sp, 60]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0]
cmp w0, 1
beq .L356
adrp x0, __PRETTY_FUNCTION__.11
add x3, x0, :lo12:__PRETTY_FUNCTION__.11
mov w2, 1060
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC35
add x0, x0, :lo12:.LC35
bl __assert_fail
.L356:
ldr x0, [sp, 32]
ldr w1, [x0, 16]
ldr x0, [sp, 24]
ldr x2, [x0]
ldrsw x0, [sp, 60]
lsl x0, x0, 3
add x0, x2, x0
ldr x0, [x0]
ldr w0, [x0, 16]
cmp w1, w0
beq .L379
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L355:
ldr x0, [sp, 24]
ldr w0, [x0, 12]
ldr w1, [sp, 60]
cmp w1, w0
blt .L359
b .L358
.L379:
nop
.L358:
ldr x0, [sp, 24]
ldr w0, [x0, 12]
ldr w1, [sp, 60]
cmp w1, w0
bne .L378
ldr x1, [sp, 32]
ldr x0, [sp, 24]
bl node_const_array__add
b .L378
.L349:
ldr x0, [sp, 32]
ldr x0, [x0, 16]
ldr x2, [sp, 24]
mov x1, x0
ldr x0, [sp, 40]
bl verify_variables
b .L360
.L348:
ldr x0, [sp, 32]
ldr x0, [x0, 16]
ldr x2, [sp, 24]
mov x1, x0
ldr x0, [sp, 40]
bl verify_variables
b .L360
.L347:
str wzr, [sp, 64]
b .L361
.L362:
ldr x0, [sp, 32]
ldr x1, [x0, 8]
ldrsw x0, [sp, 64]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x2, [sp, 24]
mov x1, x0
ldr x0, [sp, 40]
bl verify_variables
ldr w0, [sp, 64]
add w0, w0, 1
str w0, [sp, 64]
.L361:
ldr x0, [sp, 32]
ldr w0, [x0, 20]
ldr w1, [sp, 64]
cmp w1, w0
blt .L362
b .L360
.L346:
ldr x0, [sp, 24]
ldr w0, [x0, 12]
str w0, [sp, 84]
add x0, sp, 104
mov w1, 2
bl node_const_array__init
add x0, sp, 104
ldr x1, [sp, 24]
bl node_const_array__copy
str wzr, [sp, 68]
b .L363
.L371:
ldr w0, [sp, 84]
str w0, [sp, 116]
ldr x0, [sp, 32]
ldr x1, [x0, 8]
ldrsw x0, [sp, 68]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
add x1, sp, 104
mov x2, x1
mov x1, x0
ldr x0, [sp, 40]
bl verify_variables
ldr w0, [sp, 84]
str w0, [sp, 72]
b .L364
.L370:
ldr w0, [sp, 84]
str w0, [sp, 76]
b .L365
.L368:
ldr x1, [sp, 104]
ldrsw x0, [sp, 72]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w1, [x0, 16]
ldr x0, [sp, 24]
ldr x2, [x0]
ldrsw x0, [sp, 76]
lsl x0, x0, 3
add x0, x2, x0
ldr x0, [x0]
ldr w0, [x0, 16]
cmp w1, w0
beq .L380
ldr w0, [sp, 76]
add w0, w0, 1
str w0, [sp, 76]
.L365:
ldr x0, [sp, 24]
ldr w0, [x0, 12]
ldr w1, [sp, 76]
cmp w1, w0
blt .L368
b .L367
.L380:
nop
.L367:
ldr x0, [sp, 24]
ldr w0, [x0, 12]
ldr w1, [sp, 76]
cmp w1, w0
bne .L369
ldr x1, [sp, 104]
ldrsw x0, [sp, 72]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
mov x1, x0
ldr x0, [sp, 24]
bl node_const_array__add
.L369:
ldr w0, [sp, 72]
add w0, w0, 1
str w0, [sp, 72]
.L364:
ldr w0, [sp, 116]
ldr w1, [sp, 72]
cmp w1, w0
blt .L370
ldr w0, [sp, 68]
add w0, w0, 1
str w0, [sp, 68]
.L363:
ldr x0, [sp, 32]
ldr w0, [x0, 20]
ldr w1, [sp, 68]
cmp w1, w0
blt .L371
add x0, sp, 104
bl node_const_array__term
b .L360
.L345:
ldr x0, [sp, 32]
ldr x0, [x0, 8]
ldr x2, [sp, 24]
mov x1, x0
ldr x0, [sp, 40]
bl verify_variables
b .L360
.L343:
ldr x0, [sp, 32]
add x0, x0, 24
ldr x1, [sp, 24]
bl node_const_array__copy
b .L360
.L341:
ldr x0, [sp, 32]
add x0, x0, 32
ldr x1, [sp, 24]
bl node_const_array__copy
ldr x0, [sp, 32]
ldr x0, [x0, 8]
ldr x2, [sp, 24]
mov x1, x0
ldr x0, [sp, 40]
bl verify_variables
b .L360
.L342:
mov w1, 1116
adrp x0, .LC29
add x0, x0, :lo12:.LC29
bl print_error
mov w0, -1
bl exit
.L375:
nop
b .L360
.L376:
nop
b .L360
.L377:
nop
b .L360
.L378:
nop
.L360:
ldr w0, [sp, 80]
cmp w0, 0
beq .L337
add x0, sp, 88
bl node_const_array__term
b .L337
.L374:
nop
.L337:
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 120]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L373
bl __stack_chk_fail
.L373:
ldp x29, x30, [sp], 128
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE55:
.size verify_variables, .-verify_variables
.section .rodata
.align 3
.LC36:
.string "capts->buf[i]->type == NODE_CAPTURE"
.align 3
.LC37:
.string "%s:%d:%d: Capture %d not available at this position\n"
.text
.align 2
.type verify_captures, %function
verify_captures:
.LFB56:
.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, 24]
cmp x0, 0
cset w0, eq
and w0, w0, 255
str w0, [sp, 64]
ldr x0, [sp, 32]
cmp x0, 0
beq .L413
ldr w0, [sp, 64]
cmp w0, 0
beq .L384
add x0, sp, 72
mov w1, 2
bl node_const_array__init
add x0, sp, 72
str x0, [sp, 24]
.L384:
ldr x0, [sp, 32]
ldr w0, [x0]
cmp w0, 11
beq .L385
cmp w0, 11
bhi .L386
cmp w0, 10
beq .L387
cmp w0, 10
bhi .L386
cmp w0, 9
beq .L388
cmp w0, 9
bhi .L386
cmp w0, 8
beq .L389
cmp w0, 8
bhi .L386
cmp w0, 7
beq .L390
cmp w0, 7
bhi .L386
cmp w0, 6
beq .L391
cmp w0, 6
bhi .L386
cmp w0, 5
beq .L392
cmp w0, 5
bhi .L386
cmp w0, 4
beq .L393
cmp w0, 4
bhi .L386
cmp w0, 3
beq .L414
cmp w0, 3
bhi .L386
cmp w0, 2
beq .L415
cmp w0, 2
bhi .L386
cmp w0, 0
beq .L396
cmp w0, 1
beq .L416
b .L386
.L396:
mov w1, 1134
adrp x0, .LC29
add x0, x0, :lo12:.LC29
bl print_error
mov w0, -1
bl exit
.L393:
ldr x0, [sp, 32]
ldr x0, [x0, 16]
ldr x2, [sp, 24]
mov x1, x0
ldr x0, [sp, 40]
bl verify_captures
b .L398
.L392:
ldr x0, [sp, 32]
ldr x0, [x0, 16]
ldr x2, [sp, 24]
mov x1, x0
ldr x0, [sp, 40]
bl verify_captures
b .L398
.L391:
str wzr, [sp, 48]
b .L399
.L400:
ldr x0, [sp, 32]
ldr x1, [x0, 8]
ldrsw x0, [sp, 48]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x2, [sp, 24]
mov x1, x0
ldr x0, [sp, 40]
bl verify_captures
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
.L399:
ldr x0, [sp, 32]
ldr w0, [x0, 20]
ldr w1, [sp, 48]
cmp w1, w0
blt .L400
b .L398
.L390:
ldr x0, [sp, 24]
ldr w0, [x0, 12]
str w0, [sp, 68]
add x0, sp, 88
mov w1, 2
bl node_const_array__init
add x0, sp, 88
ldr x1, [sp, 24]
bl node_const_array__copy
str wzr, [sp, 52]
b .L401
.L404:
ldr w0, [sp, 68]
str w0, [sp, 100]
ldr x0, [sp, 32]
ldr x1, [x0, 8]
ldrsw x0, [sp, 52]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
add x1, sp, 88
mov x2, x1
mov x1, x0
ldr x0, [sp, 40]
bl verify_captures
ldr w0, [sp, 68]
str w0, [sp, 56]
b .L402
.L403:
ldr x1, [sp, 88]
ldrsw x0, [sp, 56]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
mov x1, x0
ldr x0, [sp, 24]
bl node_const_array__add
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
.L402:
ldr w0, [sp, 100]
ldr w1, [sp, 56]
cmp w1, w0
blt .L403
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
.L401:
ldr x0, [sp, 32]
ldr w0, [x0, 20]
ldr w1, [sp, 52]
cmp w1, w0
blt .L404
add x0, sp, 88
bl node_const_array__term
b .L398
.L389:
ldr x0, [sp, 32]
ldr x0, [x0, 8]
ldr x2, [sp, 24]
mov x1, x0
ldr x0, [sp, 40]
bl verify_captures
ldr x1, [sp, 32]
ldr x0, [sp, 24]
bl node_const_array__add
b .L398
.L388:
str wzr, [sp, 60]
b .L405
.L409:
ldr x0, [sp, 24]
ldr x1, [x0]
ldrsw x0, [sp, 60]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0]
cmp w0, 8
beq .L406
adrp x0, __PRETTY_FUNCTION__.10
add x3, x0, :lo12:__PRETTY_FUNCTION__.10
mov w2, 1180
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC36
add x0, x0, :lo12:.LC36
bl __assert_fail
.L406:
ldr x0, [sp, 32]
ldr w1, [x0, 8]
ldr x0, [sp, 24]
ldr x2, [x0]
ldrsw x0, [sp, 60]
lsl x0, x0, 3
add x0, x2, x0
ldr x0, [x0]
ldr w0, [x0, 16]
cmp w1, w0
beq .L417
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L405:
ldr x0, [sp, 24]
ldr w0, [x0, 12]
ldr w1, [sp, 60]
cmp w1, w0
blt .L409
b .L408
.L417:
nop
.L408:
ldr x0, [sp, 24]
ldr w0, [x0, 12]
ldr w1, [sp, 60]
cmp w1, w0
blt .L418
ldr x0, [sp, 32]
ldr w0, [x0, 8]
cmp w0, 0
blt .L418
ldr x0, [sp, 40]
ldr x1, [x0]
ldr x0, [sp, 32]
ldr w0, [x0, 12]
add w2, w0, 1
ldr x0, [sp, 32]
ldr w0, [x0, 16]
add w3, w0, 1
ldr x0, [sp, 32]
ldr w0, [x0, 8]
add w0, w0, 1
mov w4, w0
adrp x0, .LC37
add x0, x0, :lo12:.LC37
bl print_error
ldr x0, [sp, 40]
ldr w0, [x0, 84]
add w1, w0, 1
ldr x0, [sp, 40]
str w1, [x0, 84]
b .L418
.L387:
ldr x0, [sp, 32]
add x0, x0, 40
ldr x1, [sp, 24]
bl node_const_array__copy
b .L398
.L385:
ldr x0, [sp, 32]
add x0, x0, 48
ldr x1, [sp, 24]
bl node_const_array__copy
ldr x0, [sp, 32]
ldr x0, [x0, 8]
ldr x2, [sp, 24]
mov x1, x0
ldr x0, [sp, 40]
bl verify_captures
b .L398
.L386:
mov w1, 1198
adrp x0, .LC29
add x0, x0, :lo12:.LC29
bl print_error
mov w0, -1
bl exit
.L414:
nop
b .L398
.L415:
nop
b .L398
.L416:
nop
b .L398
.L418:
nop
.L398:
ldr w0, [sp, 64]
cmp w0, 0
beq .L381
add x0, sp, 72
bl node_const_array__term
b .L381
.L413:
nop
.L381:
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 .L412
bl __stack_chk_fail
.L412:
ldp x29, x30, [sp], 112
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE56:
.size verify_captures, .-verify_captures
.section .rodata
.align 3
.LC38:
.string "Rule(name:'%s',ref:%d,vars.len:%d,capts.len:%d,codes.len:%d){\n"
.align 3
.LC39:
.string "}\n"
.align 3
.LC40:
.string "Reference(var:'%s',index:%d,name:'%s',rule:'%s')\n"
.align 3
.LC41:
.string "String(value:'%s')\n"
.align 3
.LC42:
.string "Charclass(value:'%s')\n"
.align 3
.LC43:
.string "Quantity(min:%d,max%d){\n"
.align 3
.LC44:
.string "Predicate(neg:%d){\n"
.align 3
.LC45:
.string "Sequence(max:%d,len:%d){\n"
.align 3
.LC46:
.string "Alternate(max:%d,len:%d){\n"
.align 3
.LC47:
.string "Capture(index:%d){\n"
.align 3
.LC48:
.string "Expand(index:%d)\n"
.align 3
.LC49:
.string "Action(index:%d,value:{%s},vars:\n"
.align 3
.LC50:
.string " '%s'\n"
.align 3
.LC51:
.string " $%d\n"
.align 3
.LC52:
.string ")\n"
.align 3
.LC53:
.string "Error(index:%d,value:{%s},vars:\n"
.align 3
.LC54:
.string "){\n"
.text
.align 2
.type dump_node, %function
dump_node:
.LFB57:
.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, 0
beq .L449
ldr x0, [sp, 16]
ldr w0, [x0]
cmp w0, 11
beq .L422
cmp w0, 11
bhi .L423
cmp w0, 10
beq .L424
cmp w0, 10
bhi .L423
cmp w0, 9
beq .L425
cmp w0, 9
bhi .L423
cmp w0, 8
beq .L426
cmp w0, 8
bhi .L423
cmp w0, 7
beq .L427
cmp w0, 7
bhi .L423
cmp w0, 6
beq .L428
cmp w0, 6
bhi .L423
cmp w0, 5
beq .L429
cmp w0, 5
bhi .L423
cmp w0, 4
beq .L430
cmp w0, 4
bhi .L423
cmp w0, 3
beq .L431
cmp w0, 3
bhi .L423
cmp w0, 2
beq .L432
cmp w0, 2
bhi .L423
cmp w0, 0
beq .L433
cmp w0, 1
beq .L434
b .L423
.L433:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x7, [x0]
ldr x0, [sp, 16]
ldr x1, [x0, 8]
ldr x0, [sp, 16]
ldr w2, [x0, 24]
ldr x0, [sp, 16]
ldr w3, [x0, 44]
ldr x0, [sp, 16]
ldr w4, [x0, 60]
ldr x0, [sp, 16]
ldr w0, [x0, 76]
mov w6, w0
mov w5, w4
mov w4, w3
mov w3, w2
mov x2, x1
adrp x0, .LC38
add x1, x0, :lo12:.LC38
mov x0, x7
bl fprintf
ldr x0, [sp, 16]
ldr x0, [x0, 16]
mov x1, x0
ldr x0, [sp, 24]
bl dump_node
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 2
mov x1, 1
adrp x0, .LC39
add x0, x0, :lo12:.LC39
bl fwrite
b .L419
.L434:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x6, [x0]
ldr x0, [sp, 16]
ldr x1, [x0, 8]
ldr x0, [sp, 16]
ldr w2, [x0, 16]
ldr x0, [sp, 16]
ldr x3, [x0, 24]
ldr x0, [sp, 16]
ldr x0, [x0, 32]
cmp x0, 0
beq .L435
ldr x0, [sp, 16]
ldr x0, [x0, 32]
ldr x0, [x0, 8]
b .L436
.L435:
mov x0, 0
.L436:
mov x5, x0
mov x4, x3
mov w3, w2
mov x2, x1
adrp x0, .LC40
add x1, x0, :lo12:.LC40
mov x0, x6
bl fprintf
b .L419
.L432:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x3, [x0]
ldr x0, [sp, 16]
ldr x0, [x0, 8]
mov x2, x0
adrp x0, .LC41
add x1, x0, :lo12:.LC41
mov x0, x3
bl fprintf
b .L419
.L431:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x3, [x0]
ldr x0, [sp, 16]
ldr x0, [x0, 8]
mov x2, x0
adrp x0, .LC42
add x1, x0, :lo12:.LC42
mov x0, x3
bl fprintf
b .L419
.L430:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x4, [x0]
ldr x0, [sp, 16]
ldr w1, [x0, 8]
ldr x0, [sp, 16]
ldr w0, [x0, 12]
mov w3, w0
mov w2, w1
adrp x0, .LC43
add x1, x0, :lo12:.LC43
mov x0, x4
bl fprintf
ldr x0, [sp, 16]
ldr x0, [x0, 16]
mov x1, x0
ldr x0, [sp, 24]
bl dump_node
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 2
mov x1, 1
adrp x0, .LC39
add x0, x0, :lo12:.LC39
bl fwrite
b .L419
.L429:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x3, [x0]
ldr x0, [sp, 16]
ldr w0, [x0, 8]
mov w2, w0
adrp x0, .LC44
add x1, x0, :lo12:.LC44
mov x0, x3
bl fprintf
ldr x0, [sp, 16]
ldr x0, [x0, 16]
mov x1, x0
ldr x0, [sp, 24]
bl dump_node
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 2
mov x1, 1
adrp x0, .LC39
add x0, x0, :lo12:.LC39
bl fwrite
b .L419
.L428:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x4, [x0]
ldr x0, [sp, 16]
ldr w1, [x0, 16]
ldr x0, [sp, 16]
ldr w0, [x0, 20]
mov w3, w0
mov w2, w1
adrp x0, .LC45
add x1, x0, :lo12:.LC45
mov x0, x4
bl fprintf
str wzr, [sp, 32]
b .L437
.L438:
ldr x0, [sp, 16]
ldr x1, [x0, 8]
ldrsw x0, [sp, 32]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
mov x1, x0
ldr x0, [sp, 24]
bl dump_node
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L437:
ldr x0, [sp, 16]
ldr w0, [x0, 20]
ldr w1, [sp, 32]
cmp w1, w0
blt .L438
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 2
mov x1, 1
adrp x0, .LC39
add x0, x0, :lo12:.LC39
bl fwrite
b .L419
.L427:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x4, [x0]
ldr x0, [sp, 16]
ldr w1, [x0, 16]
ldr x0, [sp, 16]
ldr w0, [x0, 20]
mov w3, w0
mov w2, w1
adrp x0, .LC46
add x1, x0, :lo12:.LC46
mov x0, x4
bl fprintf
str wzr, [sp, 36]
b .L439
.L440:
ldr x0, [sp, 16]
ldr x1, [x0, 8]
ldrsw x0, [sp, 36]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
mov x1, x0
ldr x0, [sp, 24]
bl dump_node
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L439:
ldr x0, [sp, 16]
ldr w0, [x0, 20]
ldr w1, [sp, 36]
cmp w1, w0
blt .L440
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 2
mov x1, 1
adrp x0, .LC39
add x0, x0, :lo12:.LC39
bl fwrite
b .L419
.L426:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x3, [x0]
ldr x0, [sp, 16]
ldr w0, [x0, 16]
mov w2, w0
adrp x0, .LC47
add x1, x0, :lo12:.LC47
mov x0, x3
bl fprintf
ldr x0, [sp, 16]
ldr x0, [x0, 8]
mov x1, x0
ldr x0, [sp, 24]
bl dump_node
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 2
mov x1, 1
adrp x0, .LC39
add x0, x0, :lo12:.LC39
bl fwrite
b .L419
.L425:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x3, [x0]
ldr x0, [sp, 16]
ldr w0, [x0, 8]
mov w2, w0
adrp x0, .LC48
add x1, x0, :lo12:.LC48
mov x0, x3
bl fprintf
b .L419
.L424:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x4, [x0]
ldr x0, [sp, 16]
ldr w1, [x0, 16]
ldr x0, [sp, 16]
ldr x0, [x0, 8]
mov x3, x0
mov w2, w1
adrp x0, .LC49
add x1, x0, :lo12:.LC49
mov x0, x4
bl fprintf
str wzr, [sp, 40]
b .L441
.L442:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x3, [x0]
ldr x0, [sp, 16]
ldr x1, [x0, 24]
ldrsw x0, [sp, 40]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x0, [x0, 8]
mov x2, x0
adrp x0, .LC50
add x1, x0, :lo12:.LC50
mov x0, x3
bl fprintf
ldr w0, [sp, 40]
add w0, w0, 1
str w0, [sp, 40]
.L441:
ldr x0, [sp, 16]
ldr w0, [x0, 36]
ldr w1, [sp, 40]
cmp w1, w0
blt .L442
str wzr, [sp, 40]
b .L443
.L444:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x3, [x0]
ldr x0, [sp, 16]
ldr x1, [x0, 40]
ldrsw x0, [sp, 40]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0, 16]
add w0, w0, 1
mov w2, w0
adrp x0, .LC51
add x1, x0, :lo12:.LC51
mov x0, x3
bl fprintf
ldr w0, [sp, 40]
add w0, w0, 1
str w0, [sp, 40]
.L443:
ldr x0, [sp, 16]
ldr w0, [x0, 52]
ldr w1, [sp, 40]
cmp w1, w0
blt .L444
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 2
mov x1, 1
adrp x0, .LC52
add x0, x0, :lo12:.LC52
bl fwrite
b .L419
.L422:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x4, [x0]
ldr x0, [sp, 16]
ldr w1, [x0, 24]
ldr x0, [sp, 16]
ldr x0, [x0, 16]
mov x3, x0
mov w2, w1
adrp x0, .LC53
add x1, x0, :lo12:.LC53
mov x0, x4
bl fprintf
str wzr, [sp, 44]
b .L445
.L446:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x3, [x0]
ldr x0, [sp, 16]
ldr x1, [x0, 32]
ldrsw x0, [sp, 44]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x0, [x0, 8]
mov x2, x0
adrp x0, .LC50
add x1, x0, :lo12:.LC50
mov x0, x3
bl fprintf
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L445:
ldr x0, [sp, 16]
ldr w0, [x0, 44]
ldr w1, [sp, 44]
cmp w1, w0
blt .L446
str wzr, [sp, 44]
b .L447
.L448:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x3, [x0]
ldr x0, [sp, 16]
ldr x1, [x0, 48]
ldrsw x0, [sp, 44]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0, 16]
add w0, w0, 1
mov w2, w0
adrp x0, .LC51
add x1, x0, :lo12:.LC51
mov x0, x3
bl fprintf
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L447:
ldr x0, [sp, 16]
ldr w0, [x0, 60]
ldr w1, [sp, 44]
cmp w1, w0
blt .L448
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 3
mov x1, 1
adrp x0, .LC54
add x0, x0, :lo12:.LC54
bl fwrite
ldr x0, [sp, 16]
ldr x0, [x0, 8]
mov x1, x0
ldr x0, [sp, 24]
bl dump_node
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 2
mov x1, 1
adrp x0, .LC39
add x0, x0, :lo12:.LC39
bl fwrite
b .L419
.L423:
mov w1, 1293
adrp x0, .LC29
add x0, x0, :lo12:.LC29
bl print_error
mov w0, -1
bl exit
.L449:
nop
.L419:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE57:
.size dump_node, .-dump_node
.align 2
.type refill_buffer, %function
refill_buffer:
.LFB58:
.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 w1, [x0, 116]
ldr x0, [sp, 24]
ldr w0, [x0, 96]
sub w0, w1, w0
str w0, [sp, 40]
ldr w1, [sp, 40]
ldr w0, [sp, 20]
cmp w1, w0
blt .L453
ldr w0, [sp, 40]
b .L452
.L456:
ldr x0, [sp, 24]
ldr x0, [x0, 24]
bl fgetc_e
str w0, [sp, 44]
ldr w0, [sp, 44]
cmn w0, #1
beq .L457
ldr x0, [sp, 24]
add x0, x0, 104
ldr w1, [sp, 44]
and w1, w1, 255
bl char_array__add
.L453:
ldr x0, [sp, 24]
ldr w1, [x0, 116]
ldr x0, [sp, 24]
ldr w2, [x0, 96]
ldr w0, [sp, 20]
add w0, w2, w0
cmp w1, w0
blt .L456
b .L455
.L457:
nop
.L455:
ldr x0, [sp, 24]
ldr w1, [x0, 116]
ldr x0, [sp, 24]
ldr w0, [x0, 96]
sub w0, w1, w0
.L452:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE58:
.size refill_buffer, .-refill_buffer
.section .rodata
.align 3
.LC55:
.string "(ctx->buffer.len - ctx->bufpos) >= 0"
.text
.align 2
.type commit_buffer, %function
commit_buffer:
.LFB59:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
stp x19, x20, [sp, 16]
.cfi_offset 19, -32
.cfi_offset 20, -24
str x0, [sp, 40]
ldr x0, [sp, 40]
ldr w1, [x0, 92]
ldr x0, [sp, 40]
ldr w0, [x0, 96]
sub w1, w1, w0
ldr x0, [sp, 40]
str w1, [x0, 92]
ldr x0, [sp, 40]
ldr x19, [x0, 104]
ldr x0, [sp, 40]
ldr x1, [x0, 104]
ldr x0, [sp, 40]
ldr w0, [x0, 96]
sxtw x0, w0
add x20, x1, x0
ldr x0, [sp, 40]
ldr w1, [x0, 116]
ldr x0, [sp, 40]
ldr w0, [x0, 96]
sub w0, w1, w0
cmp w0, 0
bge .L459
adrp x0, __PRETTY_FUNCTION__.9
add x3, x0, :lo12:__PRETTY_FUNCTION__.9
mov w2, 1311
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC55
add x0, x0, :lo12:.LC55
bl __assert_fail
.L459:
ldr x0, [sp, 40]
ldr w1, [x0, 116]
ldr x0, [sp, 40]
ldr w0, [x0, 96]
sub w0, w1, w0
mov w1, 0
bl max_int
sxtw x0, w0
mov x2, x0
mov x1, x20
mov x0, x19
bl memmove
ldr x0, [sp, 40]
ldr w1, [x0, 116]
ldr x0, [sp, 40]
ldr w0, [x0, 96]
sub w1, w1, w0
ldr x0, [sp, 40]
str w1, [x0, 116]
ldr x0, [sp, 40]
str wzr, [x0, 96]
nop
ldp x19, x20, [sp, 16]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_restore 20
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE59:
.size commit_buffer, .-commit_buffer
.align 2
.type match_eof, %function
match_eof:
.LFB60:
.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]
mov w1, 1
ldr x0, [sp, 24]
bl refill_buffer
cmp w0, 0
cset w0, le
and w0, w0, 255
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE60:
.size match_eof, .-match_eof
.align 2
.type match_eol, %function
match_eol:
.LFB61:
.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]
mov w1, 1
ldr x0, [sp, 24]
bl refill_buffer
cmp w0, 0
ble .L463
ldr x0, [sp, 24]
ldr x1, [x0, 104]
ldr x0, [sp, 24]
ldr w0, [x0, 96]
sxtw x0, w0
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 10
beq .L464
cmp w0, 13
beq .L465
b .L463
.L464:
ldr x0, [sp, 24]
ldr w0, [x0, 96]
add w1, w0, 1
ldr x0, [sp, 24]
str w1, [x0, 96]
ldr x0, [sp, 24]
ldr w0, [x0, 88]
add w1, w0, 1
ldr x0, [sp, 24]
str w1, [x0, 88]
ldr x0, [sp, 24]
ldr w1, [x0, 96]
ldr x0, [sp, 24]
str w1, [x0, 92]
mov w0, 1
b .L466
.L465:
ldr x0, [sp, 24]
ldr w0, [x0, 96]
add w1, w0, 1
ldr x0, [sp, 24]
str w1, [x0, 96]
mov w1, 1
ldr x0, [sp, 24]
bl refill_buffer
cmp w0, 0
ble .L467
ldr x0, [sp, 24]
ldr x1, [x0, 104]
ldr x0, [sp, 24]
ldr w0, [x0, 96]
sxtw x0, w0
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 10
bne .L467
ldr x0, [sp, 24]
ldr w0, [x0, 96]
add w1, w0, 1
ldr x0, [sp, 24]
str w1, [x0, 96]
.L467:
ldr x0, [sp, 24]
ldr w0, [x0, 88]
add w1, w0, 1
ldr x0, [sp, 24]
str w1, [x0, 88]
ldr x0, [sp, 24]
ldr w1, [x0, 96]
ldr x0, [sp, 24]
str w1, [x0, 92]
mov w0, 1
b .L466
.L463:
mov w0, 0
.L466:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE61:
.size match_eol, .-match_eol
.align 2
.type match_character, %function
match_character:
.LFB62:
.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]
strb w1, [sp, 23]
mov w1, 1
ldr x0, [sp, 24]
bl refill_buffer
cmp w0, 0
ble .L469
ldr x0, [sp, 24]
ldr x1, [x0, 104]
ldr x0, [sp, 24]
ldr w0, [x0, 96]
sxtw x0, w0
add x0, x1, x0
ldrb w0, [x0]
ldrb w1, [sp, 23]
cmp w1, w0
bne .L469
ldr x0, [sp, 24]
ldr w0, [x0, 96]
add w1, w0, 1
ldr x0, [sp, 24]
str w1, [x0, 96]
mov w0, 1
b .L470
.L469:
mov w0, 0
.L470:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE62:
.size match_character, .-match_character
.align 2
.type match_character_range, %function
match_character_range:
.LFB63:
.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]
strb w1, [sp, 23]
strb w2, [sp, 22]
mov w1, 1
ldr x0, [sp, 24]
bl refill_buffer
cmp w0, 0
ble .L472
ldr x0, [sp, 24]
ldr x1, [x0, 104]
ldr x0, [sp, 24]
ldr w0, [x0, 96]
sxtw x0, w0
add x0, x1, x0
ldrb w0, [x0]
strb w0, [sp, 47]
ldrb w1, [sp, 47]
ldrb w0, [sp, 23]
cmp w1, w0
bcc .L472
ldrb w1, [sp, 47]
ldrb w0, [sp, 22]
cmp w1, w0
bhi .L472
ldr x0, [sp, 24]
ldr w0, [x0, 96]
add w1, w0, 1
ldr x0, [sp, 24]
str w1, [x0, 96]
mov w0, 1
b .L473
.L472:
mov w0, 0
.L473:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE63:
.size match_character_range, .-match_character_range
.align 2
.type match_character_set, %function
match_character_set:
.LFB64:
.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]
mov w1, 1
ldr x0, [sp, 24]
bl refill_buffer
cmp w0, 0
ble .L475
ldr x0, [sp, 24]
ldr x1, [x0, 104]
ldr x0, [sp, 24]
ldr w0, [x0, 96]
sxtw x0, w0
add x0, x1, x0
ldrb w0, [x0]
strb w0, [sp, 43]
str wzr, [sp, 44]
b .L476
.L479:
ldrsw x0, [sp, 44]
ldr x1, [sp, 16]
add x0, x1, x0
ldrb w0, [x0]
ldrb w1, [sp, 43]
cmp w1, w0
bne .L477
ldr x0, [sp, 24]
ldr w0, [x0, 96]
add w1, w0, 1
ldr x0, [sp, 24]
str w1, [x0, 96]
mov w0, 1
b .L478
.L477:
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L476:
ldrsw x0, [sp, 44]
ldr x1, [sp, 16]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 0
bne .L479
.L475:
mov w0, 0
.L478:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE64:
.size match_character_set, .-match_character_set
.align 2
.type match_character_any, %function
match_character_any:
.LFB65:
.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]
mov w1, 1
ldr x0, [sp, 24]
bl refill_buffer
cmp w0, 0
ble .L481
ldr x0, [sp, 24]
ldr w0, [x0, 96]
add w1, w0, 1
ldr x0, [sp, 24]
str w1, [x0, 96]
mov w0, 1
b .L482
.L481:
mov w0, 0
.L482:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE65:
.size match_character_any, .-match_character_any
.section .rodata
.align 3
.LC56:
.string "(strlen(str)) <= INT_MAX"
.text
.align 2
.type match_string, %function
match_string:
.LFB66:
.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]
bl strlen
mov x1, x0
mov x0, 2147483647
cmp x1, x0
bls .L484
adrp x0, __PRETTY_FUNCTION__.8
add x3, x0, :lo12:__PRETTY_FUNCTION__.8
mov w2, 1385
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC56
add x0, x0, :lo12:.LC56
bl __assert_fail
.L484:
ldr x0, [sp, 16]
bl strlen
mov x1, 2147483647
bl min_size_t
str w0, [sp, 44]
ldr w1, [sp, 44]
ldr x0, [sp, 24]
bl refill_buffer
mov w1, w0
ldr w0, [sp, 44]
cmp w0, w1
bgt .L485
ldr x0, [sp, 24]
ldr x1, [x0, 104]
ldr x0, [sp, 24]
ldr w0, [x0, 96]
sxtw x0, w0
add x0, x1, x0
ldrsw x1, [sp, 44]
mov x2, x1
ldr x1, [sp, 16]
bl strncmp
cmp w0, 0
bne .L485
ldr x0, [sp, 24]
ldr w1, [x0, 96]
ldr w0, [sp, 44]
add w1, w1, w0
ldr x0, [sp, 24]
str w1, [x0, 96]
mov w0, 1
b .L486
.L485:
mov w0, 0
.L486:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE66:
.size match_string, .-match_string
.section .rodata
.align 3
.LC57:
.string " \t\013\f"
.text
.align 2
.type match_blank, %function
match_blank:
.LFB67:
.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, .LC57
add x1, x0, :lo12:.LC57
ldr x0, [sp, 24]
bl match_character_set
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE67:
.size match_blank, .-match_blank
.align 2
.type match_section_line_, %function
match_section_line_:
.LFB68:
.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 match_string
cmp w0, 0
beq .L490
b .L491
.L493:
ldr x0, [sp, 24]
bl match_character_any
.L491:
ldr x0, [sp, 24]
bl match_eol
cmp w0, 0
bne .L492
ldr x0, [sp, 24]
bl match_eof
cmp w0, 0
beq .L493
.L492:
mov w0, 1
b .L494
.L490:
mov w0, 0
.L494:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE68:
.size match_section_line_, .-match_section_line_
.align 2
.type match_section_line_continuable_, %function
match_section_line_continuable_:
.LFB69:
.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 x1, [sp, 16]
ldr x0, [sp, 24]
bl match_string
cmp w0, 0
beq .L496
b .L497
.L500:
ldr x0, [sp, 24]
ldr w0, [x0, 96]
str w0, [sp, 44]
ldr x0, [sp, 24]
bl match_eol
cmp w0, 0
beq .L498
ldr x0, [sp, 24]
ldr x1, [x0, 104]
ldrsw x0, [sp, 44]
sub x0, x0, #1
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 92
beq .L497
b .L499
.L498:
ldr x0, [sp, 24]
bl match_character_any
.L497:
ldr x0, [sp, 24]
bl match_eof
cmp w0, 0
beq .L500
.L499:
mov w0, 1
b .L501
.L496:
mov w0, 0
.L501:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE69:
.size match_section_line_continuable_, .-match_section_line_continuable_
.section .rodata
.align 3
.LC58:
.string "%s:%d:%d: Premature EOF in %s\n"
.text
.align 2
.type match_section_block_, %function
match_section_block_:
.LFB70:
.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]
str x3, [sp, 16]
ldr x0, [sp, 40]
ldr w0, [x0, 88]
str w0, [sp, 56]
ldr x0, [sp, 40]
ldr w1, [x0, 96]
ldr x0, [sp, 40]
ldr w0, [x0, 92]
sub w0, w1, w0
str w0, [sp, 60]
ldr x1, [sp, 32]
ldr x0, [sp, 40]
bl match_string
cmp w0, 0
beq .L503
b .L504
.L507:
ldr x0, [sp, 40]
bl match_eof
cmp w0, 0
beq .L505
ldr x0, [sp, 40]
ldr x1, [x0]
ldr w0, [sp, 56]
add w2, w0, 1
ldr w0, [sp, 60]
add w0, w0, 1
ldr x4, [sp, 16]
mov w3, w0
adrp x0, .LC58
add x0, x0, :lo12:.LC58
bl print_error
ldr x0, [sp, 40]
ldr w0, [x0, 84]
add w1, w0, 1
ldr x0, [sp, 40]
str w1, [x0, 84]
b .L506
.L505:
ldr x0, [sp, 40]
bl match_eol
cmp w0, 0
bne .L504
ldr x0, [sp, 40]
bl match_character_any
.L504:
ldr x1, [sp, 24]
ldr x0, [sp, 40]
bl match_string
cmp w0, 0
beq .L507
.L506:
mov w0, 1
b .L508
.L503:
mov w0, 0
.L508:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE70:
.size match_section_block_, .-match_section_block_
.section .rodata
.align 3
.LC59:
.string "%s:%d:%d: Premature EOL in %s\n"
.text
.align 2
.type match_quotation_, %function
match_quotation_:
.LFB71:
.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]
str x3, [sp, 16]
ldr x0, [sp, 40]
ldr w0, [x0, 88]
str w0, [sp, 56]
ldr x0, [sp, 40]
ldr w1, [x0, 96]
ldr x0, [sp, 40]
ldr w0, [x0, 92]
sub w0, w1, w0
str w0, [sp, 60]
ldr x1, [sp, 32]
ldr x0, [sp, 40]
bl match_string
cmp w0, 0
beq .L510
b .L511
.L516:
ldr x0, [sp, 40]
bl match_eof
cmp w0, 0
beq .L512
ldr x0, [sp, 40]
ldr x1, [x0]
ldr w0, [sp, 56]
add w2, w0, 1
ldr w0, [sp, 60]
add w0, w0, 1
ldr x4, [sp, 16]
mov w3, w0
adrp x0, .LC58
add x0, x0, :lo12:.LC58
bl print_error
ldr x0, [sp, 40]
ldr w0, [x0, 84]
add w1, w0, 1
ldr x0, [sp, 40]
str w1, [x0, 84]
b .L513
.L512:
mov w1, 92
ldr x0, [sp, 40]
bl match_character
cmp w0, 0
beq .L514
ldr x0, [sp, 40]
bl match_eol
cmp w0, 0
bne .L511
ldr x0, [sp, 40]
bl match_character_any
b .L511
.L514:
ldr x0, [sp, 40]
bl match_eol
cmp w0, 0
beq .L515
ldr x0, [sp, 40]
ldr x1, [x0]
ldr w0, [sp, 56]
add w2, w0, 1
ldr w0, [sp, 60]
add w0, w0, 1
ldr x4, [sp, 16]
mov w3, w0
adrp x0, .LC59
add x0, x0, :lo12:.LC59
bl print_error
ldr x0, [sp, 40]
ldr w0, [x0, 84]
add w1, w0, 1
ldr x0, [sp, 40]
str w1, [x0, 84]
b .L513
.L515:
ldr x0, [sp, 40]
bl match_character_any
.L511:
ldr x1, [sp, 24]
ldr x0, [sp, 40]
bl match_string
cmp w0, 0
beq .L516
.L513:
mov w0, 1
b .L517
.L510:
mov w0, 0
.L517:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE71:
.size match_quotation_, .-match_quotation_
.section .rodata
.align 3
.LC60:
.string "#"
.text
.align 2
.type match_directive_c, %function
match_directive_c:
.LFB72:
.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, .LC60
add x1, x0, :lo12:.LC60
ldr x0, [sp, 24]
bl match_section_line_continuable_
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE72:
.size match_directive_c, .-match_directive_c
.align 2
.type match_comment, %function
match_comment:
.LFB73:
.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, .LC60
add x1, x0, :lo12:.LC60
ldr x0, [sp, 24]
bl match_section_line_
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE73:
.size match_comment, .-match_comment
.section .rodata
.align 3
.LC61:
.string "C comment"
.align 3
.LC62:
.string "*/"
.align 3
.LC63:
.string "/*"
.text
.align 2
.type match_comment_c, %function
match_comment_c:
.LFB74:
.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, .LC61
add x3, x0, :lo12:.LC61
adrp x0, .LC62
add x2, x0, :lo12:.LC62
adrp x0, .LC63
add x1, x0, :lo12:.LC63
ldr x0, [sp, 24]
bl match_section_block_
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE74:
.size match_comment_c, .-match_comment_c
.section .rodata
.align 3
.LC64:
.string "//"
.text
.align 2
.type match_comment_cxx, %function
match_comment_cxx:
.LFB75:
.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, .LC64
add x1, x0, :lo12:.LC64
ldr x0, [sp, 24]
bl match_section_line_
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE75:
.size match_comment_cxx, .-match_comment_cxx
.section .rodata
.align 3
.LC65:
.string "single quotation"
.align 3
.LC66:
.string "'"
.text
.align 2
.type match_quotation_single, %function
match_quotation_single:
.LFB76:
.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, .LC65
add x3, x0, :lo12:.LC65
adrp x0, .LC66
add x2, x0, :lo12:.LC66
adrp x0, .LC66
add x1, x0, :lo12:.LC66
ldr x0, [sp, 24]
bl match_quotation_
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE76:
.size match_quotation_single, .-match_quotation_single
.section .rodata
.align 3
.LC67:
.string "double quotation"
.align 3
.LC68:
.string "\""
.text
.align 2
.type match_quotation_double, %function
match_quotation_double:
.LFB77:
.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, .LC67
add x3, x0, :lo12:.LC67
adrp x0, .LC68
add x2, x0, :lo12:.LC68
adrp x0, .LC68
add x1, x0, :lo12:.LC68
ldr x0, [sp, 24]
bl match_quotation_
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE77:
.size match_quotation_double, .-match_quotation_double
.section .rodata
.align 3
.LC69:
.string "character class"
.align 3
.LC70:
.string "]"
.align 3
.LC71:
.string "["
.text
.align 2
.type match_character_class, %function
match_character_class:
.LFB78:
.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, .LC69
add x3, x0, :lo12:.LC69
adrp x0, .LC70
add x2, x0, :lo12:.LC70
adrp x0, .LC71
add x1, x0, :lo12:.LC71
ldr x0, [sp, 24]
bl match_quotation_
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE78:
.size match_character_class, .-match_character_class
.align 2
.type match_spaces, %function
match_spaces:
.LFB79:
.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 .L533
.L534:
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L533:
ldr x0, [sp, 24]
bl match_blank
cmp w0, 0
bne .L534
ldr x0, [sp, 24]
bl match_eol
cmp w0, 0
bne .L534
ldr x0, [sp, 24]
bl match_comment
cmp w0, 0
bne .L534
ldr w0, [sp, 44]
cmp w0, 0
cset w0, gt
and w0, w0, 255
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE79:
.size match_spaces, .-match_spaces
.align 2
.type match_number, %function
match_number:
.LFB80:
.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]
mov w2, 57
mov w1, 48
ldr x0, [sp, 24]
bl match_character_range
cmp w0, 0
beq .L537
nop
.L538:
mov w2, 57
mov w1, 48
ldr x0, [sp, 24]
bl match_character_range
cmp w0, 0
bne .L538
mov w0, 1
b .L539
.L537:
mov w0, 0
.L539:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE80:
.size match_number, .-match_number
.align 2
.type match_identifier, %function
match_identifier:
.LFB81:
.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]
mov w2, 122
mov w1, 97
ldr x0, [sp, 24]
bl match_character_range
cmp w0, 0
bne .L545
mov w2, 90
mov w1, 65
ldr x0, [sp, 24]
bl match_character_range
cmp w0, 0
bne .L545
mov w1, 95
ldr x0, [sp, 24]
bl match_character
cmp w0, 0
beq .L542
.L545:
nop
.L543:
mov w2, 122
mov w1, 97
ldr x0, [sp, 24]
bl match_character_range
cmp w0, 0
bne .L543
mov w2, 90
mov w1, 65
ldr x0, [sp, 24]
bl match_character_range
cmp w0, 0
bne .L543
mov w2, 57
mov w1, 48
ldr x0, [sp, 24]
bl match_character_range
cmp w0, 0
bne .L543
mov w1, 95
ldr x0, [sp, 24]
bl match_character
cmp w0, 0
bne .L543
mov w0, 1
b .L544
.L542:
mov w0, 0
.L544:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE81:
.size match_identifier, .-match_identifier
.section .rodata
.align 3
.LC72:
.string "%s:%d:%d: Premature EOF in code block\n"
.text
.align 2
.type match_code_block, %function
match_code_block:
.LFB82:
.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, 88]
str w0, [sp, 40]
ldr x0, [sp, 24]
ldr w1, [x0, 96]
ldr x0, [sp, 24]
ldr w0, [x0, 92]
sub w0, w1, w0
str w0, [sp, 44]
mov w1, 123
ldr x0, [sp, 24]
bl match_character
cmp w0, 0
beq .L547
mov w0, 1
str w0, [sp, 36]
.L556:
ldr x0, [sp, 24]
bl match_eof
cmp w0, 0
beq .L548
ldr x0, [sp, 24]
ldr x1, [x0]
ldr w0, [sp, 40]
add w2, w0, 1
ldr w0, [sp, 44]
add w0, w0, 1
mov w3, w0
adrp x0, .LC72
add x0, x0, :lo12:.LC72
bl print_error
ldr x0, [sp, 24]
ldr w0, [x0, 84]
add w1, w0, 1
ldr x0, [sp, 24]
str w1, [x0, 84]
b .L549
.L548:
ldr x0, [sp, 24]
bl match_directive_c
cmp w0, 0
bne .L558
ldr x0, [sp, 24]
bl match_comment_c
cmp w0, 0
bne .L558
ldr x0, [sp, 24]
bl match_comment_cxx
cmp w0, 0
bne .L558
ldr x0, [sp, 24]
bl match_quotation_single
cmp w0, 0
bne .L558
ldr x0, [sp, 24]
bl match_quotation_double
cmp w0, 0
bne .L558
mov w1, 123
ldr x0, [sp, 24]
bl match_character
cmp w0, 0
beq .L553
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
b .L556
.L553:
mov w1, 125
ldr x0, [sp, 24]
bl match_character
cmp w0, 0
beq .L554
ldr w0, [sp, 36]
sub w0, w0, #1
str w0, [sp, 36]
ldr w0, [sp, 36]
cmp w0, 0
bne .L556
b .L549
.L554:
ldr x0, [sp, 24]
bl match_eol
cmp w0, 0
bne .L556
mov w1, 36
ldr x0, [sp, 24]
bl match_character
cmp w0, 0
beq .L555
ldr x0, [sp, 24]
ldr x1, [x0, 104]
ldr x0, [sp, 24]
ldr w0, [x0, 96]
sxtw x0, w0
sub x0, x0, #1
add x0, x1, x0
mov w1, 95
strb w1, [x0]
b .L556
.L555:
ldr x0, [sp, 24]
bl match_character_any
b .L556
.L558:
nop
b .L556
.L549:
mov w0, 1
b .L557
.L547:
mov w0, 0
.L557:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE82:
.size match_code_block, .-match_code_block
.section .rodata
.align 3
.LC73:
.string "%%"
.text
.align 2
.type match_footer_start, %function
match_footer_start:
.LFB83:
.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, .LC73
add x1, x0, :lo12:.LC73
ldr x0, [sp, 24]
bl match_string
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE83:
.size match_footer_start, .-match_footer_start
.section .rodata
.align 3
.LC74:
.string "<-"
.align 3
.LC75:
.string "(q - p) >= 0"
.align 3
.LC76:
.string "s >= 0"
.align 3
.LC77:
.string "rule->data.rule.vars.buf[i]->type == NODE_REFERENCE"
.align 3
.LC78:
.string "(s - r) >= 0"
.align 3
.LC79:
.string "%s:%d:%d: 0 not allowed\n"
.align 3
.LC80:
.string "%s:%d:%d: 0-prefixed number not allowed\n"
.align 3
.LC81:
.string "(q - p - 2) >= 0"
.align 3
.LC82:
.string "%s:%d:%d: Illegal escape sequence\n"
.text
.align 2
.type parse_primary, %function
parse_primary:
.LFB84:
.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 x0, [sp, 40]
str x1, [sp, 32]
ldr x0, [sp, 40]
ldr w0, [x0, 96]
str w0, [sp, 60]
ldr x0, [sp, 40]
ldr w0, [x0, 88]
str w0, [sp, 64]
ldr x0, [sp, 40]
ldr w1, [x0, 96]
ldr x0, [sp, 40]
ldr w0, [x0, 92]
sub w0, w1, w0
str w0, [sp, 68]
str xzr, [sp, 96]
ldr x0, [sp, 40]
bl match_identifier
cmp w0, 0
beq .L562
ldr x0, [sp, 40]
ldr w0, [x0, 96]
str w0, [sp, 92]
mov w0, -1
str w0, [sp, 48]
mov w0, -1
str w0, [sp, 52]
ldr x0, [sp, 40]
bl match_spaces
mov w1, 58
ldr x0, [sp, 40]
bl match_character
cmp w0, 0
beq .L563
ldr x0, [sp, 40]
bl match_spaces
ldr x0, [sp, 40]
ldr w0, [x0, 96]
str w0, [sp, 48]
ldr x0, [sp, 40]
bl match_identifier
cmp w0, 0
beq .L601
ldr x0, [sp, 40]
ldr w0, [x0, 96]
str w0, [sp, 52]
ldr x0, [sp, 40]
bl match_spaces
.L563:
adrp x0, .LC74
add x1, x0, :lo12:.LC74
ldr x0, [sp, 40]
bl match_string
cmp w0, 0
bne .L602
mov w0, 1
bl create_node
str x0, [sp, 96]
ldr w0, [sp, 48]
cmp w0, 0
bge .L567
ldr x0, [sp, 96]
str xzr, [x0, 8]
ldr x0, [sp, 96]
mov w1, -1
str w1, [x0, 16]
ldr x0, [sp, 40]
ldr x1, [x0, 104]
ldrsw x0, [sp, 60]
add x19, x1, x0
ldr w1, [sp, 92]
ldr w0, [sp, 60]
sub w0, w1, w0
cmp w0, 0
bge .L568
adrp x0, __PRETTY_FUNCTION__.7
add x3, x0, :lo12:__PRETTY_FUNCTION__.7
mov w2, 1594
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC75
add x0, x0, :lo12:.LC75
bl __assert_fail
.L568:
ldr w1, [sp, 92]
ldr w0, [sp, 60]
sub w0, w1, w0
mov w1, 0
bl max_int
sxtw x0, w0
mov x1, x0
mov x0, x19
bl strndup_e
mov x1, x0
ldr x0, [sp, 96]
str x1, [x0, 24]
b .L569
.L567:
ldr w0, [sp, 52]
cmp w0, 0
bge .L570
adrp x0, __PRETTY_FUNCTION__.7
add x3, x0, :lo12:__PRETTY_FUNCTION__.7
mov w2, 1597
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC76
add x0, x0, :lo12:.LC76
bl __assert_fail
.L570:
ldr x0, [sp, 40]
ldr x1, [x0, 104]
ldrsw x0, [sp, 60]
add x19, x1, x0
ldr w1, [sp, 92]
ldr w0, [sp, 60]
sub w0, w1, w0
cmp w0, 0
bge .L571
adrp x0, __PRETTY_FUNCTION__.7
add x3, x0, :lo12:__PRETTY_FUNCTION__.7
mov w2, 1598
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC75
add x0, x0, :lo12:.LC75
bl __assert_fail
.L571:
ldr w1, [sp, 92]
ldr w0, [sp, 60]
sub w0, w1, w0
mov w1, 0
bl max_int
sxtw x0, w0
mov x1, x0
mov x0, x19
bl strndup_e
mov x1, x0
ldr x0, [sp, 96]
str x1, [x0, 8]
str wzr, [sp, 56]
b .L572
.L576:
ldr x0, [sp, 32]
ldr x1, [x0, 32]
ldrsw x0, [sp, 56]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0]
cmp w0, 1
beq .L573
adrp x0, __PRETTY_FUNCTION__.7
add x3, x0, :lo12:__PRETTY_FUNCTION__.7
mov w2, 1602
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC77
add x0, x0, :lo12:.LC77
bl __assert_fail
.L573:
ldr x0, [sp, 96]
ldr x2, [x0, 8]
ldr x0, [sp, 32]
ldr x1, [x0, 32]
ldrsw x0, [sp, 56]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x0, [x0, 8]
mov x1, x0
mov x0, x2
bl strcmp
cmp w0, 0
beq .L603
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
.L572:
ldr x0, [sp, 32]
ldr w0, [x0, 44]
ldr w1, [sp, 56]
cmp w1, w0
blt .L576
b .L575
.L603:
nop
.L575:
ldr x0, [sp, 32]
ldr w0, [x0, 44]
ldr w1, [sp, 56]
cmp w1, w0
bne .L577
ldr x0, [sp, 32]
add x0, x0, 32
ldr x1, [sp, 96]
bl node_const_array__add
.L577:
ldr x0, [sp, 96]
ldr w1, [sp, 56]
str w1, [x0, 16]
ldr x0, [sp, 40]
ldr x1, [x0, 104]
ldrsw x0, [sp, 48]
add x19, x1, x0
ldr w1, [sp, 52]
ldr w0, [sp, 48]
sub w0, w1, w0
cmp w0, 0
bge .L578
adrp x0, __PRETTY_FUNCTION__.7
add x3, x0, :lo12:__PRETTY_FUNCTION__.7
mov w2, 1608
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC78
add x0, x0, :lo12:.LC78
bl __assert_fail
.L578:
ldr w1, [sp, 52]
ldr w0, [sp, 48]
sub w0, w1, w0
mov w1, 0
bl max_int
sxtw x0, w0
mov x1, x0
mov x0, x19
bl strndup_e
mov x1, x0
ldr x0, [sp, 96]
str x1, [x0, 24]
.L569:
ldr x0, [sp, 96]
ldr w1, [sp, 64]
str w1, [x0, 40]
ldr x0, [sp, 96]
ldr w1, [sp, 68]
str w1, [x0, 44]
b .L579
.L562:
mov w1, 40
ldr x0, [sp, 40]
bl match_character
cmp w0, 0
beq .L580
ldr x0, [sp, 40]
bl match_spaces
ldr x1, [sp, 32]
ldr x0, [sp, 40]
bl parse_expression
str x0, [sp, 96]
ldr x0, [sp, 96]
cmp x0, 0
beq .L604
mov w1, 41
ldr x0, [sp, 40]
bl match_character
cmp w0, 0
beq .L605
ldr x0, [sp, 40]
bl match_spaces
b .L579
.L580:
mov w1, 60
ldr x0, [sp, 40]
bl match_character
cmp w0, 0
beq .L583
ldr x0, [sp, 40]
bl match_spaces
mov w0, 8
bl create_node
str x0, [sp, 96]
ldr x0, [sp, 32]
ldr w1, [x0, 60]
ldr x0, [sp, 96]
str w1, [x0, 16]
ldr x0, [sp, 32]
add x0, x0, 48
ldr x1, [sp, 96]
bl node_const_array__add
ldr x1, [sp, 32]
ldr x0, [sp, 40]
bl parse_expression
mov x1, x0
ldr x0, [sp, 96]
str x1, [x0, 8]
ldr x0, [sp, 96]
ldr x0, [x0, 8]
cmp x0, 0
beq .L584
mov w1, 62
ldr x0, [sp, 40]
bl match_character
cmp w0, 0
bne .L585
.L584:
ldr x0, [sp, 96]
ldr w1, [x0, 16]
ldr x0, [sp, 32]
str w1, [x0, 60]
b .L565
.L585:
ldr x0, [sp, 40]
bl match_spaces
b .L579
.L583:
mov w1, 36
ldr x0, [sp, 40]
bl match_character
cmp w0, 0
beq .L586
ldr x0, [sp, 40]
bl match_spaces
ldr x0, [sp, 40]
ldr w0, [x0, 96]
str w0, [sp, 84]
ldr x0, [sp, 40]
bl match_number
cmp w0, 0
beq .L606
ldr x0, [sp, 40]
ldr w0, [x0, 96]
str w0, [sp, 88]
ldr x0, [sp, 40]
bl match_spaces
mov w0, 9
bl create_node
str x0, [sp, 96]
ldr x0, [sp, 40]
ldr x1, [x0, 104]
ldrsw x0, [sp, 84]
add x19, x1, x0
ldr w1, [sp, 88]
ldr w0, [sp, 84]
sub w0, w1, w0
cmp w0, 0
bge .L588
adrp x0, __PRETTY_FUNCTION__.7
add x3, x0, :lo12:__PRETTY_FUNCTION__.7
mov w2, 1641
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC75
add x0, x0, :lo12:.LC75
bl __assert_fail
.L588:
ldr w1, [sp, 88]
ldr w0, [sp, 84]
sub w0, w1, w0
mov w1, 0
bl max_int
sxtw x0, w0
mov x1, x0
mov x0, x19
bl strndup_e
str x0, [sp, 104]
ldr x0, [sp, 104]
bl atoi
mov w1, w0
ldr x0, [sp, 96]
str w1, [x0, 8]
ldr x0, [sp, 96]
ldr w0, [x0, 8]
cmp w0, 0
bne .L589
ldr x0, [sp, 40]
ldr x1, [x0]
ldr w0, [sp, 64]
add w2, w0, 1
ldr w0, [sp, 68]
add w0, w0, 1
mov w3, w0
adrp x0, .LC79
add x0, x0, :lo12:.LC79
bl print_error
ldr x0, [sp, 40]
ldr w0, [x0, 84]
add w1, w0, 1
ldr x0, [sp, 40]
str w1, [x0, 84]
b .L590
.L589:
ldr x0, [sp, 104]
ldrb w0, [x0]
cmp w0, 48
bne .L590
ldr x0, [sp, 40]
ldr x1, [x0]
ldr w0, [sp, 64]
add w2, w0, 1
ldr w0, [sp, 68]
add w0, w0, 1
mov w3, w0
adrp x0, .LC80
add x0, x0, :lo12:.LC80
bl print_error
ldr x0, [sp, 40]
ldr w0, [x0, 84]
add w1, w0, 1
ldr x0, [sp, 40]
str w1, [x0, 84]
.L590:
ldr x0, [sp, 104]
bl free
ldr x0, [sp, 96]
ldr w0, [x0, 8]
sub w1, w0, #1
ldr x0, [sp, 96]
str w1, [x0, 8]
ldr x0, [sp, 96]
ldr w1, [sp, 64]
str w1, [x0, 12]
ldr x0, [sp, 96]
ldr w1, [sp, 68]
str w1, [x0, 16]
b .L579
.L586:
mov w1, 46
ldr x0, [sp, 40]
bl match_character
cmp w0, 0
beq .L591
ldr x0, [sp, 40]
bl match_spaces
mov w0, 3
bl create_node
str x0, [sp, 96]
ldr x0, [sp, 96]
str xzr, [x0, 8]
b .L579
.L591:
ldr x0, [sp, 40]
bl match_character_class
cmp w0, 0
beq .L592
ldr x0, [sp, 40]
ldr w0, [x0, 96]
str w0, [sp, 80]
ldr x0, [sp, 40]
bl match_spaces
mov w0, 3
bl create_node
str x0, [sp, 96]
ldr x0, [sp, 40]
ldr x1, [x0, 104]
ldrsw x0, [sp, 60]
add x0, x0, 1
add x19, x1, x0
ldr w1, [sp, 80]
ldr w0, [sp, 60]
sub w0, w1, w0
cmp w0, 1
bgt .L593
adrp x0, __PRETTY_FUNCTION__.7
add x3, x0, :lo12:__PRETTY_FUNCTION__.7
mov w2, 1669
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC81
add x0, x0, :lo12:.LC81
bl __assert_fail
.L593:
ldr w1, [sp, 80]
ldr w0, [sp, 60]
sub w0, w1, w0
sub w0, w0, #2
mov w1, 0
bl max_int
sxtw x0, w0
mov x1, x0
mov x0, x19
bl strndup_e
mov x1, x0
ldr x0, [sp, 96]
str x1, [x0, 8]
ldr x0, [sp, 96]
ldr x0, [x0, 8]
bl unescape_string
cmp w0, 0
bne .L579
ldr x0, [sp, 40]
ldr x1, [x0]
ldr w0, [sp, 64]
add w2, w0, 1
ldr w0, [sp, 68]
add w0, w0, 1
mov w3, w0
adrp x0, .LC82
add x0, x0, :lo12:.LC82
bl print_error
ldr x0, [sp, 40]
ldr w0, [x0, 84]
add w1, w0, 1
ldr x0, [sp, 40]
str w1, [x0, 84]
b .L579
.L592:
ldr x0, [sp, 40]
bl match_quotation_single
cmp w0, 0
bne .L594
ldr x0, [sp, 40]
bl match_quotation_double
cmp w0, 0
beq .L595
.L594:
ldr x0, [sp, 40]
ldr w0, [x0, 96]
str w0, [sp, 76]
ldr x0, [sp, 40]
bl match_spaces
mov w0, 2
bl create_node
str x0, [sp, 96]
ldr x0, [sp, 40]
ldr x1, [x0, 104]
ldrsw x0, [sp, 60]
add x0, x0, 1
add x19, x1, x0
ldr w1, [sp, 76]
ldr w0, [sp, 60]
sub w0, w1, w0
cmp w0, 1
bgt .L596
adrp x0, __PRETTY_FUNCTION__.7
add x3, x0, :lo12:__PRETTY_FUNCTION__.7
mov w2, 1679
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC81
add x0, x0, :lo12:.LC81
bl __assert_fail
.L596:
ldr w1, [sp, 76]
ldr w0, [sp, 60]
sub w0, w1, w0
sub w0, w0, #2
mov w1, 0
bl max_int
sxtw x0, w0
mov x1, x0
mov x0, x19
bl strndup_e
mov x1, x0
ldr x0, [sp, 96]
str x1, [x0, 8]
ldr x0, [sp, 96]
ldr x0, [x0, 8]
bl unescape_string
cmp w0, 0
bne .L607
ldr x0, [sp, 40]
ldr x1, [x0]
ldr w0, [sp, 64]
add w2, w0, 1
ldr w0, [sp, 68]
add w0, w0, 1
mov w3, w0
adrp x0, .LC82
add x0, x0, :lo12:.LC82
bl print_error
ldr x0, [sp, 40]
ldr w0, [x0, 84]
add w1, w0, 1
ldr x0, [sp, 40]
str w1, [x0, 84]
b .L607
.L595:
ldr x0, [sp, 40]
bl match_code_block
cmp w0, 0
beq .L608
ldr x0, [sp, 40]
ldr w0, [x0, 96]
str w0, [sp, 72]
ldr x0, [sp, 40]
bl match_spaces
mov w0, 10
bl create_node
str x0, [sp, 96]
ldr x0, [sp, 40]
ldr x1, [x0, 104]
ldrsw x0, [sp, 60]
add x0, x0, 1
add x19, x1, x0
ldr w1, [sp, 72]
ldr w0, [sp, 60]
sub w0, w1, w0
cmp w0, 1
bgt .L599
adrp x0, __PRETTY_FUNCTION__.7
add x3, x0, :lo12:__PRETTY_FUNCTION__.7
mov w2, 1689
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC81
add x0, x0, :lo12:.LC81
bl __assert_fail
.L599:
ldr w1, [sp, 72]
ldr w0, [sp, 60]
sub w0, w1, w0
sub w0, w0, #2
mov w1, 0
bl max_int
sxtw x0, w0
mov x1, x0
mov x0, x19
bl strndup_e
mov x1, x0
ldr x0, [sp, 96]
str x1, [x0, 8]
ldr x0, [sp, 32]
ldr w1, [x0, 76]
ldr x0, [sp, 96]
str w1, [x0, 16]
ldr x0, [sp, 32]
add x0, x0, 64
ldr x1, [sp, 96]
bl node_const_array__add
b .L579
.L607:
nop
.L579:
ldr x0, [sp, 96]
b .L600
.L601:
nop
b .L565
.L602:
nop
b .L565
.L604:
nop
b .L565
.L605:
nop
b .L565
.L606:
nop
b .L565
.L608:
nop
.L565:
ldr x0, [sp, 96]
bl destroy_node
ldr x0, [sp, 40]
ldr w1, [sp, 60]
str w1, [x0, 96]
ldr x0, [sp, 40]
ldr w1, [sp, 64]
str w1, [x0, 88]
ldr w1, [sp, 60]
ldr w0, [sp, 68]
sub w1, w1, w0
ldr x0, [sp, 40]
str w1, [x0, 92]
mov x0, 0
.L600:
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
.LFE84:
.size parse_primary, .-parse_primary
.section .rodata
.align 3
.LC83:
.string "(q - p -2) >= 0"
.text
.align 2
.type parse_term, %function
parse_term:
.LFB85:
.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 x0, [sp, 40]
str x1, [sp, 32]
ldr x0, [sp, 40]
ldr w0, [x0, 96]
str w0, [sp, 60]
ldr x0, [sp, 40]
ldr w0, [x0, 88]
str w0, [sp, 64]
ldr x0, [sp, 40]
ldr w1, [x0, 96]
ldr x0, [sp, 40]
ldr w0, [x0, 92]
sub w0, w1, w0
str w0, [sp, 68]
str xzr, [sp, 104]
str xzr, [sp, 80]
str xzr, [sp, 88]
str xzr, [sp, 96]
mov w1, 38
ldr x0, [sp, 40]
bl match_character
cmp w0, 0
bne .L610
mov w1, 33
ldr x0, [sp, 40]
bl match_character
cmp w0, 0
beq .L611
mov w0, 33
b .L613
.L611:
mov w0, 0
b .L613
.L610:
mov w0, 38
.L613:
strb w0, [sp, 59]
ldrb w0, [sp, 59]
cmp w0, 0
beq .L614
ldr x0, [sp, 40]
bl match_spaces
.L614:
ldr x1, [sp, 32]
ldr x0, [sp, 40]
bl parse_primary
str x0, [sp, 104]
ldr x0, [sp, 104]
cmp x0, 0
beq .L629
mov w1, 42
ldr x0, [sp, 40]
bl match_character
cmp w0, 0
beq .L617
ldr x0, [sp, 40]
bl match_spaces
mov w0, 4
bl create_node
str x0, [sp, 80]
ldr x0, [sp, 80]
str wzr, [x0, 8]
ldr x0, [sp, 80]
mov w1, -1
str w1, [x0, 12]
ldr x0, [sp, 80]
ldr x1, [sp, 104]
str x1, [x0, 16]
b .L618
.L617:
mov w1, 43
ldr x0, [sp, 40]
bl match_character
cmp w0, 0
beq .L619
ldr x0, [sp, 40]
bl match_spaces
mov w0, 4
bl create_node
str x0, [sp, 80]
ldr x0, [sp, 80]
mov w1, 1
str w1, [x0, 8]
ldr x0, [sp, 80]
mov w1, -1
str w1, [x0, 12]
ldr x0, [sp, 80]
ldr x1, [sp, 104]
str x1, [x0, 16]
b .L618
.L619:
mov w1, 63
ldr x0, [sp, 40]
bl match_character
cmp w0, 0
beq .L620
ldr x0, [sp, 40]
bl match_spaces
mov w0, 4
bl create_node
str x0, [sp, 80]
ldr x0, [sp, 80]
str wzr, [x0, 8]
ldr x0, [sp, 80]
mov w1, 1
str w1, [x0, 12]
ldr x0, [sp, 80]
ldr x1, [sp, 104]
str x1, [x0, 16]
b .L618
.L620:
ldr x0, [sp, 104]
str x0, [sp, 80]
.L618:
ldrb w0, [sp, 59]
cmp w0, 33
beq .L621
cmp w0, 38
bne .L622
mov w0, 5
bl create_node
str x0, [sp, 88]
ldr x0, [sp, 88]
str wzr, [x0, 8]
ldr x0, [sp, 88]
ldr x1, [sp, 80]
str x1, [x0, 16]
b .L623
.L621:
mov w0, 5
bl create_node
str x0, [sp, 88]
ldr x0, [sp, 88]
mov w1, 1
str w1, [x0, 8]
ldr x0, [sp, 88]
ldr x1, [sp, 80]
str x1, [x0, 16]
b .L623
.L622:
ldr x0, [sp, 80]
str x0, [sp, 88]
.L623:
mov w1, 126
ldr x0, [sp, 40]
bl match_character
cmp w0, 0
beq .L624
ldr x0, [sp, 40]
bl match_spaces
ldr x0, [sp, 40]
ldr w0, [x0, 96]
str w0, [sp, 72]
ldr x0, [sp, 40]
bl match_code_block
cmp w0, 0
beq .L630
ldr x0, [sp, 40]
ldr w0, [x0, 96]
str w0, [sp, 76]
ldr x0, [sp, 40]
bl match_spaces
mov w0, 11
bl create_node
str x0, [sp, 96]
ldr x0, [sp, 96]
ldr x1, [sp, 88]
str x1, [x0, 8]
ldr x0, [sp, 40]
ldr x1, [x0, 104]
ldrsw x0, [sp, 72]
add x0, x0, 1
add x19, x1, x0
ldr w1, [sp, 76]
ldr w0, [sp, 72]
sub w0, w1, w0
cmp w0, 1
bgt .L626
adrp x0, __PRETTY_FUNCTION__.6
add x3, x0, :lo12:__PRETTY_FUNCTION__.6
mov w2, 1765
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC83
add x0, x0, :lo12:.LC83
bl __assert_fail
.L626:
ldr w1, [sp, 76]
ldr w0, [sp, 72]
sub w0, w1, w0
sub w0, w0, #2
mov w1, 0
bl max_int
sxtw x0, w0
mov x1, x0
mov x0, x19
bl strndup_e
mov x1, x0
ldr x0, [sp, 96]
str x1, [x0, 16]
ldr x0, [sp, 32]
ldr w1, [x0, 76]
ldr x0, [sp, 96]
str w1, [x0, 24]
ldr x0, [sp, 32]
add x0, x0, 64
ldr x1, [sp, 96]
bl node_const_array__add
b .L627
.L624:
ldr x0, [sp, 88]
str x0, [sp, 96]
.L627:
ldr x0, [sp, 96]
b .L628
.L629:
nop
b .L616
.L630:
nop
.L616:
ldr x0, [sp, 88]
bl destroy_node
ldr x0, [sp, 40]
ldr w1, [sp, 60]
str w1, [x0, 96]
ldr x0, [sp, 40]
ldr w1, [sp, 64]
str w1, [x0, 88]
ldr w1, [sp, 60]
ldr w0, [sp, 68]
sub w1, w1, w0
ldr x0, [sp, 40]
str w1, [x0, 92]
mov x0, 0
.L628:
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
.LFE85:
.size parse_term, .-parse_term
.align 2
.type parse_sequence, %function
parse_sequence:
.LFB86:
.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]
ldr x0, [sp, 24]
ldr w0, [x0, 96]
str w0, [sp, 36]
ldr x0, [sp, 24]
ldr w0, [x0, 88]
str w0, [sp, 40]
ldr x0, [sp, 24]
ldr w1, [x0, 96]
ldr x0, [sp, 24]
ldr w0, [x0, 92]
sub w0, w1, w0
str w0, [sp, 44]
str xzr, [sp, 56]
str xzr, [sp, 64]
str xzr, [sp, 72]
str xzr, [sp, 48]
ldr x1, [sp, 16]
ldr x0, [sp, 24]
bl parse_term
str x0, [sp, 64]
ldr x0, [sp, 64]
cmp x0, 0
beq .L640
ldr x1, [sp, 16]
ldr x0, [sp, 24]
bl parse_term
str x0, [sp, 72]
ldr x0, [sp, 72]
cmp x0, 0
beq .L634
mov w0, 6
bl create_node
str x0, [sp, 48]
ldr x0, [sp, 48]
add x0, x0, 8
str x0, [sp, 56]
ldr x1, [sp, 64]
ldr x0, [sp, 56]
bl node_array__add
ldr x1, [sp, 72]
ldr x0, [sp, 56]
bl node_array__add
b .L635
.L636:
ldr x1, [sp, 64]
ldr x0, [sp, 56]
bl node_array__add
.L635:
ldr x1, [sp, 16]
ldr x0, [sp, 24]
bl parse_term
str x0, [sp, 64]
ldr x0, [sp, 64]
cmp x0, 0
bne .L636
b .L637
.L634:
ldr x0, [sp, 64]
str x0, [sp, 48]
.L637:
ldr x0, [sp, 48]
b .L638
.L640:
nop
.L633:
ldr x0, [sp, 24]
ldr w1, [sp, 36]
str w1, [x0, 96]
ldr x0, [sp, 24]
ldr w1, [sp, 40]
str w1, [x0, 88]
ldr w1, [sp, 36]
ldr w0, [sp, 44]
sub w1, w1, w0
ldr x0, [sp, 24]
str w1, [x0, 92]
mov x0, 0
.L638:
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE86:
.size parse_sequence, .-parse_sequence
.align 2
.type parse_expression, %function
parse_expression:
.LFB87:
.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]
ldr x0, [sp, 24]
ldr w0, [x0, 96]
str w0, [sp, 40]
ldr x0, [sp, 24]
ldr w0, [x0, 88]
str w0, [sp, 44]
ldr x0, [sp, 24]
ldr w1, [x0, 96]
ldr x0, [sp, 24]
ldr w0, [x0, 92]
sub w0, w1, w0
str w0, [sp, 48]
str xzr, [sp, 64]
str xzr, [sp, 72]
str xzr, [sp, 56]
ldr x1, [sp, 16]
ldr x0, [sp, 24]
bl parse_sequence
str x0, [sp, 72]
ldr x0, [sp, 72]
cmp x0, 0
beq .L650
ldr x0, [sp, 24]
ldr w0, [x0, 96]
str w0, [sp, 52]
mov w1, 47
ldr x0, [sp, 24]
bl match_character
cmp w0, 0
beq .L644
ldr x0, [sp, 24]
ldr w1, [sp, 52]
str w1, [x0, 96]
mov w0, 7
bl create_node
str x0, [sp, 56]
ldr x0, [sp, 56]
add x0, x0, 8
str x0, [sp, 64]
ldr x1, [sp, 72]
ldr x0, [sp, 64]
bl node_array__add
b .L645
.L647:
ldr x0, [sp, 24]
bl match_spaces
ldr x1, [sp, 16]
ldr x0, [sp, 24]
bl parse_sequence
str x0, [sp, 72]
ldr x0, [sp, 72]
cmp x0, 0
beq .L651
ldr x1, [sp, 72]
ldr x0, [sp, 64]
bl node_array__add
.L645:
mov w1, 47
ldr x0, [sp, 24]
bl match_character
cmp w0, 0
bne .L647
b .L648
.L644:
ldr x0, [sp, 72]
str x0, [sp, 56]
.L648:
ldr x0, [sp, 56]
b .L649
.L650:
nop
b .L643
.L651:
nop
.L643:
ldr x0, [sp, 56]
bl destroy_node
ldr x0, [sp, 24]
ldr w1, [sp, 40]
str w1, [x0, 96]
ldr x0, [sp, 24]
ldr w1, [sp, 44]
str w1, [x0, 88]
ldr w1, [sp, 40]
ldr w0, [sp, 48]
sub w1, w1, w0
ldr x0, [sp, 24]
str w1, [x0, 92]
mov x0, 0
.L649:
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE87:
.size parse_expression, .-parse_expression
.align 2
.type parse_rule, %function
parse_rule:
.LFB88:
.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
str x0, [sp, 40]
ldr x0, [sp, 40]
ldr w0, [x0, 96]
str w0, [sp, 56]
ldr x0, [sp, 40]
ldr w0, [x0, 88]
str w0, [sp, 60]
ldr x0, [sp, 40]
ldr w1, [x0, 96]
ldr x0, [sp, 40]
ldr w0, [x0, 92]
sub w0, w1, w0
str w0, [sp, 64]
str xzr, [sp, 72]
ldr x0, [sp, 40]
bl match_identifier
cmp w0, 0
beq .L659
ldr x0, [sp, 40]
ldr w0, [x0, 96]
str w0, [sp, 68]
ldr x0, [sp, 40]
bl match_spaces
adrp x0, .LC74
add x1, x0, :lo12:.LC74
ldr x0, [sp, 40]
bl match_string
cmp w0, 0
beq .L660
ldr x0, [sp, 40]
bl match_spaces
mov w0, 0
bl create_node
str x0, [sp, 72]
ldr x1, [sp, 72]
ldr x0, [sp, 40]
bl parse_expression
mov x1, x0
ldr x0, [sp, 72]
str x1, [x0, 16]
ldr x0, [sp, 72]
ldr x0, [x0, 16]
cmp x0, 0
beq .L661
ldr x0, [sp, 40]
ldr x1, [x0, 104]
ldrsw x0, [sp, 56]
add x19, x1, x0
ldr w1, [sp, 68]
ldr w0, [sp, 56]
sub w0, w1, w0
cmp w0, 0
bge .L657
adrp x0, __PRETTY_FUNCTION__.5
add x3, x0, :lo12:__PRETTY_FUNCTION__.5
mov w2, 1868
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC75
add x0, x0, :lo12:.LC75
bl __assert_fail
.L657:
ldr w1, [sp, 68]
ldr w0, [sp, 56]
sub w0, w1, w0
mov w1, 0
bl max_int
sxtw x0, w0
mov x1, x0
mov x0, x19
bl strndup_e
mov x1, x0
ldr x0, [sp, 72]
str x1, [x0, 8]
ldr x0, [sp, 72]
ldr w1, [sp, 60]
str w1, [x0, 80]
ldr x0, [sp, 72]
ldr w1, [sp, 64]
str w1, [x0, 84]
ldr x0, [sp, 72]
b .L658
.L659:
nop
b .L654
.L660:
nop
b .L654
.L661:
nop
.L654:
ldr x0, [sp, 72]
bl destroy_node
ldr x0, [sp, 40]
ldr w1, [sp, 56]
str w1, [x0, 96]
ldr x0, [sp, 40]
ldr w1, [sp, 60]
str w1, [x0, 88]
ldr w1, [sp, 56]
ldr w0, [sp, 64]
sub w1, w1, w0
ldr x0, [sp, 40]
str w1, [x0, 92]
mov x0, 0
.L658:
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
.LFE88:
.size parse_rule, .-parse_rule
.section .rodata
.align 3
.LC84:
.string "int"
.text
.align 2
.type get_value_type, %function
get_value_type:
.LFB89:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
ldr x0, [sp, 8]
ldr x0, [x0, 56]
cmp x0, 0
beq .L663
ldr x0, [sp, 8]
ldr x0, [x0, 56]
ldrb w0, [x0]
cmp w0, 0
beq .L663
ldr x0, [sp, 8]
ldr x0, [x0, 56]
b .L665
.L663:
adrp x0, .LC84
add x0, x0, :lo12:.LC84
.L665:
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE89:
.size get_value_type, .-get_value_type
.section .rodata
.align 3
.LC85:
.string "void *"
.text
.align 2
.type get_auxil_type, %function
get_auxil_type:
.LFB90:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
ldr x0, [sp, 8]
ldr x0, [x0, 64]
cmp x0, 0
beq .L667
ldr x0, [sp, 8]
ldr x0, [x0, 64]
ldrb w0, [x0]
cmp w0, 0
beq .L667
ldr x0, [sp, 8]
ldr x0, [x0, 64]
b .L669
.L667:
adrp x0, .LC85
add x0, x0, :lo12:.LC85
.L669:
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE90:
.size get_auxil_type, .-get_auxil_type
.section .rodata
.align 3
.LC86:
.string "pcc"
.text
.align 2
.type get_prefix, %function
get_prefix:
.LFB91:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
ldr x0, [sp, 8]
ldr x0, [x0, 72]
cmp x0, 0
beq .L671
ldr x0, [sp, 8]
ldr x0, [x0, 72]
ldrb w0, [x0]
cmp w0, 0
beq .L671
ldr x0, [sp, 8]
ldr x0, [x0, 72]
b .L673
.L671:
adrp x0, .LC86
add x0, x0, :lo12:.LC86
.L673:
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE91:
.size get_prefix, .-get_prefix
.section .rodata
.align 3
.LC87:
.string "value_type:'%s'\n"
.align 3
.LC88:
.string "auxil_type:'%s'\n"
.align 3
.LC89:
.string "prefix:'%s'\n"
.text
.align 2
.type dump_options, %function
dump_options:
.LFB92:
.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, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x19, [x0]
ldr x0, [sp, 40]
bl get_value_type
mov x2, x0
adrp x0, .LC87
add x1, x0, :lo12:.LC87
mov x0, x19
bl fprintf
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x19, [x0]
ldr x0, [sp, 40]
bl get_auxil_type
mov x2, x0
adrp x0, .LC88
add x1, x0, :lo12:.LC88
mov x0, x19
bl fprintf
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x19, [x0]
ldr x0, [sp, 40]
bl get_prefix
mov x2, x0
adrp x0, .LC89
add x1, x0, :lo12:.LC89
mov x0, x19
bl fprintf
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
.LFE92:
.size dump_options, .-dump_options
.section .rodata
.align 3
.LC90:
.string "%s:%d:%d: Illegal %s syntax\n"
.text
.align 2
.type parse_directive_include_, %function
parse_directive_include_:
.LFB93:
.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
str x0, [sp, 56]
str x1, [sp, 48]
str x2, [sp, 40]
str x3, [sp, 32]
ldr x0, [sp, 56]
ldr w0, [x0, 88]
str w0, [sp, 64]
ldr x0, [sp, 56]
ldr w1, [x0, 96]
ldr x0, [sp, 56]
ldr w0, [x0, 92]
sub w0, w1, w0
str w0, [sp, 68]
ldr x1, [sp, 48]
ldr x0, [sp, 56]
bl match_string
cmp w0, 0
bne .L676
mov w0, 0
b .L677
.L676:
ldr x0, [sp, 56]
bl match_spaces
ldr x0, [sp, 56]
ldr w0, [x0, 96]
str w0, [sp, 72]
ldr x0, [sp, 56]
bl match_code_block
cmp w0, 0
beq .L678
ldr x0, [sp, 56]
ldr w0, [x0, 96]
str w0, [sp, 76]
ldr x0, [sp, 56]
bl match_spaces
ldr x0, [sp, 40]
cmp x0, 0
beq .L679
ldr x0, [sp, 56]
ldr x1, [x0, 104]
ldrsw x0, [sp, 72]
add x0, x0, 1
add x19, x1, x0
ldr w1, [sp, 76]
ldr w0, [sp, 72]
sub w0, w1, w0
cmp w0, 1
bgt .L680
adrp x0, __PRETTY_FUNCTION__.4
add x3, x0, :lo12:__PRETTY_FUNCTION__.4
mov w2, 1910
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC81
add x0, x0, :lo12:.LC81
bl __assert_fail
.L680:
ldr w1, [sp, 76]
ldr w0, [sp, 72]
sub w0, w1, w0
sub w0, w0, #2
mov w1, 0
bl max_int
sxtw x0, w0
mov x3, 0
mov x2, x0
mov x1, x19
ldr x0, [sp, 40]
bl write_code_block
ldr x1, [sp, 40]
mov w0, 10
bl fputc_e
.L679:
ldr x0, [sp, 32]
cmp x0, 0
beq .L681
ldr x0, [sp, 56]
ldr x1, [x0, 104]
ldrsw x0, [sp, 72]
add x0, x0, 1
add x19, x1, x0
ldr w1, [sp, 76]
ldr w0, [sp, 72]
sub w0, w1, w0
cmp w0, 1
bgt .L682
adrp x0, __PRETTY_FUNCTION__.4
add x3, x0, :lo12:__PRETTY_FUNCTION__.4
mov w2, 1914
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC81
add x0, x0, :lo12:.LC81
bl __assert_fail
.L682:
ldr w1, [sp, 76]
ldr w0, [sp, 72]
sub w0, w1, w0
sub w0, w0, #2
mov w1, 0
bl max_int
sxtw x0, w0
mov x3, 0
mov x2, x0
mov x1, x19
ldr x0, [sp, 32]
bl write_code_block
ldr x1, [sp, 32]
mov w0, 10
bl fputc_e
b .L681
.L678:
ldr x0, [sp, 56]
ldr x1, [x0]
ldr w0, [sp, 64]
add w2, w0, 1
ldr w0, [sp, 68]
add w0, w0, 1
ldr x4, [sp, 48]
mov w3, w0
adrp x0, .LC90
add x0, x0, :lo12:.LC90
bl print_error
ldr x0, [sp, 56]
ldr w0, [x0, 84]
add w1, w0, 1
ldr x0, [sp, 56]
str w1, [x0, 84]
.L681:
mov w0, 1
.L677:
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
.LFE93:
.size parse_directive_include_, .-parse_directive_include_
.section .rodata
.align 3
.LC91:
.string "(mode & ~7) == 0"
.align 3
.LC92:
.string "%s:%d:%d: Empty string\n"
.align 3
.LC93:
.string "void"
.align 3
.LC94:
.string "%s:%d:%d: 'void' not allowed\n"
.align 3
.LC95:
.string "%s:%d:%d: Invalid identifier\n"
.align 3
.LC96:
.string "%s:%d:%d: Multiple %s definition\n"
.text
.align 2
.type parse_directive_string_, %function
parse_directive_string_:
.LFB94:
.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 x0, [sp, 56]
str x1, [sp, 48]
str x2, [sp, 40]
str w3, [sp, 36]
ldr x0, [sp, 56]
ldr w0, [x0, 88]
str w0, [sp, 80]
ldr x0, [sp, 56]
ldr w1, [x0, 96]
ldr x0, [sp, 56]
ldr w0, [x0, 92]
sub w0, w1, w0
str w0, [sp, 84]
ldr x1, [sp, 48]
ldr x0, [sp, 56]
bl match_string
cmp w0, 0
bne .L684
mov w0, 0
b .L685
.L684:
ldr x0, [sp, 56]
bl match_spaces
str xzr, [sp, 104]
ldr x0, [sp, 56]
ldr w0, [x0, 96]
str w0, [sp, 88]
ldr x0, [sp, 56]
ldr w0, [x0, 88]
str w0, [sp, 92]
ldr x0, [sp, 56]
ldr w1, [x0, 96]
ldr x0, [sp, 56]
ldr w0, [x0, 92]
sub w0, w1, w0
str w0, [sp, 96]
ldr x0, [sp, 56]
bl match_quotation_single
cmp w0, 0
bne .L686
ldr x0, [sp, 56]
bl match_quotation_double
cmp w0, 0
beq .L687
.L686:
ldr x0, [sp, 56]
ldr w0, [x0, 96]
str w0, [sp, 100]
ldr x0, [sp, 56]
bl match_spaces
ldr x0, [sp, 56]
ldr x1, [x0, 104]
ldrsw x0, [sp, 88]
add x0, x0, 1
add x19, x1, x0
ldr w1, [sp, 100]
ldr w0, [sp, 88]
sub w0, w1, w0
cmp w0, 1
bgt .L688
adrp x0, __PRETTY_FUNCTION__.3
add x3, x0, :lo12:__PRETTY_FUNCTION__.3
mov w2, 1940
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC81
add x0, x0, :lo12:.LC81
bl __assert_fail
.L688:
ldr w1, [sp, 100]
ldr w0, [sp, 88]
sub w0, w1, w0
sub w0, w0, #2
mov w1, 0
bl max_int
sxtw x0, w0
mov x1, x0
mov x0, x19
bl strndup_e
str x0, [sp, 104]
ldr x0, [sp, 104]
bl unescape_string
cmp w0, 0
bne .L690
ldr x0, [sp, 56]
ldr x1, [x0]
ldr w0, [sp, 92]
add w2, w0, 1
ldr w0, [sp, 96]
add w0, w0, 1
mov w3, w0
adrp x0, .LC82
add x0, x0, :lo12:.LC82
bl print_error
ldr x0, [sp, 56]
ldr w0, [x0, 84]
add w1, w0, 1
ldr x0, [sp, 56]
str w1, [x0, 84]
b .L690
.L687:
ldr x0, [sp, 56]
ldr x1, [x0]
ldr w0, [sp, 80]
add w2, w0, 1
ldr w0, [sp, 84]
add w0, w0, 1
ldr x4, [sp, 48]
mov w3, w0
adrp x0, .LC90
add x0, x0, :lo12:.LC90
bl print_error
ldr x0, [sp, 56]
ldr w0, [x0, 84]
add w1, w0, 1
ldr x0, [sp, 56]
str w1, [x0, 84]
.L690:
ldr x0, [sp, 104]
cmp x0, 0
beq .L691
str wzr, [sp, 72]
mov w0, 1
str w0, [sp, 76]
ldr x0, [sp, 104]
bl remove_heading_blank
ldr x0, [sp, 104]
bl remove_trailing_blank
ldr w0, [sp, 36]
and w0, w0, -8
cmp w0, 0
beq .L692
adrp x0, __PRETTY_FUNCTION__.3
add x3, x0, :lo12:__PRETTY_FUNCTION__.3
mov w2, 1955
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC91
add x0, x0, :lo12:.LC91
bl __assert_fail
.L692:
ldr w0, [sp, 36]
and w0, w0, 1
cmp w0, 0
beq .L693
ldr x0, [sp, 104]
bl is_filled_string
cmp w0, 0
bne .L693
ldr x0, [sp, 56]
ldr x1, [x0]
ldr w0, [sp, 92]
add w2, w0, 1
ldr w0, [sp, 96]
add w0, w0, 1
mov w3, w0
adrp x0, .LC92
add x0, x0, :lo12:.LC92
bl print_error
ldr x0, [sp, 56]
ldr w0, [x0, 84]
add w1, w0, 1
ldr x0, [sp, 56]
str w1, [x0, 84]
ldr w0, [sp, 72]
orr w0, w0, 1
str w0, [sp, 72]
.L693:
ldr w0, [sp, 36]
and w0, w0, 2
cmp w0, 0
beq .L694
adrp x0, .LC93
add x1, x0, :lo12:.LC93
ldr x0, [sp, 104]
bl strcmp
cmp w0, 0
bne .L694
ldr x0, [sp, 56]
ldr x1, [x0]
ldr w0, [sp, 92]
add w2, w0, 1
ldr w0, [sp, 96]
add w0, w0, 1
mov w3, w0
adrp x0, .LC94
add x0, x0, :lo12:.LC94
bl print_error
ldr x0, [sp, 56]
ldr w0, [x0, 84]
add w1, w0, 1
ldr x0, [sp, 56]
str w1, [x0, 84]
ldr w0, [sp, 72]
orr w0, w0, 2
str w0, [sp, 72]
.L694:
ldr w0, [sp, 36]
and w0, w0, 4
cmp w0, 0
beq .L695
ldr x0, [sp, 104]
bl is_identifier_string
cmp w0, 0
bne .L695
ldr w0, [sp, 72]
and w0, w0, 1
cmp w0, 0
bne .L696
ldr x0, [sp, 56]
ldr x1, [x0]
ldr w0, [sp, 92]
add w2, w0, 1
ldr w0, [sp, 96]
add w0, w0, 1
mov w3, w0
adrp x0, .LC95
add x0, x0, :lo12:.LC95
bl print_error
ldr x0, [sp, 56]
ldr w0, [x0, 84]
add w1, w0, 1
ldr x0, [sp, 56]
str w1, [x0, 84]
.L696:
ldr w0, [sp, 72]
orr w0, w0, 4
str w0, [sp, 72]
.L695:
ldr x0, [sp, 40]
ldr x0, [x0]
cmp x0, 0
beq .L697
ldr x0, [sp, 56]
ldr x1, [x0]
ldr w0, [sp, 80]
add w2, w0, 1
ldr w0, [sp, 84]
add w0, w0, 1
ldr x4, [sp, 48]
mov w3, w0
adrp x0, .LC96
add x0, x0, :lo12:.LC96
bl print_error
ldr x0, [sp, 56]
ldr w0, [x0, 84]
add w1, w0, 1
ldr x0, [sp, 56]
str w1, [x0, 84]
str wzr, [sp, 76]
.L697:
ldr w0, [sp, 72]
cmp w0, 0
bne .L698
ldr w0, [sp, 76]
cmp w0, 0
beq .L698
ldr x0, [sp, 40]
ldr x1, [sp, 104]
str x1, [x0]
b .L691
.L698:
ldr x0, [sp, 104]
bl free
str xzr, [sp, 104]
.L691:
mov w0, 1
.L685:
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
.LFE94:
.size parse_directive_string_, .-parse_directive_string_
.section .rodata
.align 3
.LC97:
.string "1.3.1"
.align 3
.LC98:
.string "/* A packrat parser generated by PackCC %s */\n\n"
.align 3
.LC99:
.ascii "#ifdef _MSC_VER\n#undef _CRT_SECURE_NO_WARNINGS\n#define _CR"
.ascii "T_SECURE_NO_WARNINGS\n#endif /* _MSC_VER */\n#include <stdio"
.ascii ".h>\n#include <stdlib.h>\n#include <string.h>\n\n#ifndef _MS"
.ascii "C_VER\n#if defined __GNUC__ && defined _WIN32 /* MinGW */\n#"
.ascii "defi"
.string "ne strnlen(str, maxlen) pcc_strnlen(str, maxlen)\nstatic size_t pcc_strnlen(const char *str, size_t maxlen) {\n size_t i;\n for (i = 0; i < maxlen && str[i]; i++);\n return i;\n}\n#endif /* defined __GNUC__ && defined _WIN32 */ \n#endif /* !_MSC_VER */\n\n"
.align 3
.LC100:
.string "#include \"%s\"\n\n"
.align 3
.LC101:
.string "#ifndef PCC_INCLUDED_%s\n#define PCC_INCLUDED_%s\n\n"
.align 3
.LC102:
.string "%source"
.align 3
.LC103:
.string "%header"
.align 3
.LC104:
.string "%common"
.align 3
.LC105:
.string "%value"
.align 3
.LC106:
.string "%auxil"
.align 3
.LC107:
.string "%prefix"
.align 3
.LC108:
.string "%s:%d:%d: Invalid directive\n"
.align 3
.LC109:
.string "%s:%d:%d: Illegal rule syntax\n"
.align 3
.LC110:
.string "%s:%d:%d: Never used rule '%s'\n"
.align 3
.LC111:
.string "%s:%d:%d: Multiple definition of rule '%s'\n"
.text
.align 2
.type parse, %function
parse:
.LFB95:
.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]
ldr x0, [sp, 24]
ldr x3, [x0, 32]
adrp x0, .LC97
add x2, x0, :lo12:.LC97
adrp x0, .LC98
add x1, x0, :lo12:.LC98
mov x0, x3
bl fprintf_e
ldr x0, [sp, 24]
ldr x3, [x0, 40]
adrp x0, .LC97
add x2, x0, :lo12:.LC97
adrp x0, .LC98
add x1, x0, :lo12:.LC98
mov x0, x3
bl fprintf_e
ldr x0, [sp, 24]
ldr x0, [x0, 32]
mov x1, x0
adrp x0, .LC99
add x0, x0, :lo12:.LC99
bl fputs_e
ldr x0, [sp, 24]
ldr x3, [x0, 32]
ldr x0, [sp, 24]
ldr x0, [x0, 16]
mov x2, x0
adrp x0, .LC100
add x1, x0, :lo12:.LC100
mov x0, x3
bl fprintf_e
ldr x0, [sp, 24]
ldr x4, [x0, 40]
ldr x0, [sp, 24]
ldr x1, [x0, 48]
ldr x0, [sp, 24]
ldr x0, [x0, 48]
mov x3, x0
mov x2, x1
adrp x0, .LC101
add x1, x0, :lo12:.LC101
mov x0, x4
bl fprintf_e
mov w0, 1
str w0, [sp, 44]
ldr x0, [sp, 24]
bl match_spaces
.L709:
ldr x0, [sp, 24]
bl match_eof
cmp w0, 0
bne .L700
ldr x0, [sp, 24]
bl match_footer_start
cmp w0, 0
bne .L700
ldr x0, [sp, 24]
ldr w0, [x0, 96]
str w0, [sp, 60]
ldr x0, [sp, 24]
ldr w0, [x0, 88]
str w0, [sp, 64]
ldr x0, [sp, 24]
ldr w1, [x0, 96]
ldr x0, [sp, 24]
ldr w0, [x0, 92]
sub w0, w1, w0
str w0, [sp, 68]
ldr x0, [sp, 24]
ldr x0, [x0, 32]
mov x3, 0
mov x2, x0
adrp x0, .LC102
add x1, x0, :lo12:.LC102
ldr x0, [sp, 24]
bl parse_directive_include_
cmp w0, 0
bne .L701
ldr x0, [sp, 24]
ldr x0, [x0, 40]
mov x3, 0
mov x2, x0
adrp x0, .LC103
add x1, x0, :lo12:.LC103
ldr x0, [sp, 24]
bl parse_directive_include_
cmp w0, 0
bne .L701
ldr x0, [sp, 24]
ldr x1, [x0, 32]
ldr x0, [sp, 24]
ldr x0, [x0, 40]
mov x3, x0
mov x2, x1
adrp x0, .LC104
add x1, x0, :lo12:.LC104
ldr x0, [sp, 24]
bl parse_directive_include_
cmp w0, 0
bne .L701
ldr x0, [sp, 24]
add x0, x0, 56
mov w3, 3
mov x2, x0
adrp x0, .LC105
add x1, x0, :lo12:.LC105
ldr x0, [sp, 24]
bl parse_directive_string_
cmp w0, 0
bne .L701
ldr x0, [sp, 24]
add x0, x0, 64
mov w3, 3
mov x2, x0
adrp x0, .LC106
add x1, x0, :lo12:.LC106
ldr x0, [sp, 24]
bl parse_directive_string_
cmp w0, 0
bne .L701
ldr x0, [sp, 24]
add x0, x0, 72
mov w3, 5
mov x2, x0
adrp x0, .LC107
add x1, x0, :lo12:.LC107
ldr x0, [sp, 24]
bl parse_directive_string_
cmp w0, 0
beq .L702
.L701:
mov w0, 1
str w0, [sp, 44]
b .L703
.L702:
mov w1, 37
ldr x0, [sp, 24]
bl match_character
cmp w0, 0
beq .L704
ldr x0, [sp, 24]
ldr x1, [x0]
ldr w0, [sp, 64]
add w2, w0, 1
ldr w0, [sp, 68]
add w0, w0, 1
mov w3, w0
adrp x0, .LC108
add x0, x0, :lo12:.LC108
bl print_error
ldr x0, [sp, 24]
ldr w0, [x0, 84]
add w1, w0, 1
ldr x0, [sp, 24]
str w1, [x0, 84]
ldr x0, [sp, 24]
bl match_identifier
ldr x0, [sp, 24]
bl match_spaces
mov w0, 1
str w0, [sp, 44]
b .L703
.L704:
ldr x0, [sp, 24]
bl parse_rule
str x0, [sp, 72]
ldr x0, [sp, 72]
cmp x0, 0
bne .L705
ldr w0, [sp, 44]
cmp w0, 0
beq .L706
ldr x0, [sp, 24]
ldr x1, [x0]
ldr w0, [sp, 64]
add w2, w0, 1
ldr w0, [sp, 68]
add w0, w0, 1
mov w3, w0
adrp x0, .LC109
add x0, x0, :lo12:.LC109
bl print_error
ldr x0, [sp, 24]
ldr w0, [x0, 84]
add w1, w0, 1
ldr x0, [sp, 24]
str w1, [x0, 84]
str wzr, [sp, 44]
.L706:
ldr x0, [sp, 24]
ldr w1, [sp, 64]
str w1, [x0, 88]
ldr w1, [sp, 60]
ldr w0, [sp, 68]
sub w1, w1, w0
ldr x0, [sp, 24]
str w1, [x0, 92]
ldr x0, [sp, 24]
bl match_identifier
cmp w0, 0
bne .L722
ldr x0, [sp, 24]
bl match_spaces
cmp w0, 0
bne .L722
ldr x0, [sp, 24]
bl match_character_any
b .L722
.L705:
ldr x0, [sp, 24]
add x0, x0, 120
ldr x1, [sp, 72]
bl node_array__add
mov w0, 1
str w0, [sp, 44]
.L703:
ldr x0, [sp, 24]
bl commit_buffer
b .L709
.L722:
nop
b .L709
.L700:
ldr x0, [sp, 24]
bl commit_buffer
ldr x0, [sp, 24]
bl make_rulehash
str wzr, [sp, 48]
b .L710
.L711:
ldr x0, [sp, 24]
ldr x1, [x0, 120]
ldrsw x0, [sp, 48]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x0, [x0, 16]
mov x1, x0
ldr x0, [sp, 24]
bl link_references
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
.L710:
ldr x0, [sp, 24]
ldr w0, [x0, 132]
ldr w1, [sp, 48]
cmp w1, w0
blt .L711
mov w0, 1
str w0, [sp, 48]
b .L712
.L715:
ldr x0, [sp, 24]
ldr x1, [x0, 120]
ldrsw x0, [sp, 48]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0, 24]
cmp w0, 0
bne .L713
ldr x0, [sp, 24]
ldr x5, [x0]
ldr x0, [sp, 24]
ldr x1, [x0, 120]
ldrsw x0, [sp, 48]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0, 80]
add w2, w0, 1
ldr x0, [sp, 24]
ldr x1, [x0, 120]
ldrsw x0, [sp, 48]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0, 84]
add w3, w0, 1
ldr x0, [sp, 24]
ldr x1, [x0, 120]
ldrsw x0, [sp, 48]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x0, [x0, 8]
mov x4, x0
mov x1, x5
adrp x0, .LC110
add x0, x0, :lo12:.LC110
bl print_error
ldr x0, [sp, 24]
ldr w0, [x0, 84]
add w1, w0, 1
ldr x0, [sp, 24]
str w1, [x0, 84]
b .L714
.L713:
ldr x0, [sp, 24]
ldr x1, [x0, 120]
ldrsw x0, [sp, 48]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0, 24]
cmp w0, 0
bge .L714
ldr x0, [sp, 24]
ldr x5, [x0]
ldr x0, [sp, 24]
ldr x1, [x0, 120]
ldrsw x0, [sp, 48]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0, 80]
add w2, w0, 1
ldr x0, [sp, 24]
ldr x1, [x0, 120]
ldrsw x0, [sp, 48]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0, 84]
add w3, w0, 1
ldr x0, [sp, 24]
ldr x1, [x0, 120]
ldrsw x0, [sp, 48]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x0, [x0, 8]
mov x4, x0
mov x1, x5
adrp x0, .LC111
add x0, x0, :lo12:.LC111
bl print_error
ldr x0, [sp, 24]
ldr w0, [x0, 84]
add w1, w0, 1
ldr x0, [sp, 24]
str w1, [x0, 84]
.L714:
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
.L712:
ldr x0, [sp, 24]
ldr w0, [x0, 132]
ldr w1, [sp, 48]
cmp w1, w0
blt .L715
str wzr, [sp, 52]
b .L716
.L717:
ldr x0, [sp, 24]
ldr x1, [x0, 120]
ldrsw x0, [sp, 52]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x0, [x0, 16]
mov x2, 0
mov x1, x0
ldr x0, [sp, 24]
bl verify_variables
ldr x0, [sp, 24]
ldr x1, [x0, 120]
ldrsw x0, [sp, 52]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x0, [x0, 16]
mov x2, 0
mov x1, x0
ldr x0, [sp, 24]
bl verify_captures
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
.L716:
ldr x0, [sp, 24]
ldr w0, [x0, 132]
ldr w1, [sp, 52]
cmp w1, w0
blt .L717
ldr x0, [sp, 24]
ldr w0, [x0, 80]
cmp w0, 0
beq .L718
str wzr, [sp, 56]
b .L719
.L720:
ldr x0, [sp, 24]
ldr x1, [x0, 120]
ldrsw x0, [sp, 56]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
mov x1, x0
ldr x0, [sp, 24]
bl dump_node
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
.L719:
ldr x0, [sp, 24]
ldr w0, [x0, 132]
ldr w1, [sp, 56]
cmp w1, w0
blt .L720
ldr x0, [sp, 24]
bl dump_options
.L718:
ldr x0, [sp, 24]
ldr w0, [x0, 84]
cmp w0, 0
cset w0, eq
and w0, w0, 255
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE95:
.size parse, .-parse
.section .rodata
.align 3
.LC112:
.string "if (\n"
.align 3
.LC113:
.string "pcc_refill_buffer(ctx, %llu) < %llu ||\n"
.align 3
.LC114:
.string "(ctx->buffer.buf + ctx->pos)[%llu] != '%s' ||\n"
.align 3
.LC115:
.string "(ctx->buffer.buf + ctx->pos)[%llu] != '%s'\n"
.align 3
.LC116:
.string ") goto L%04d;\n"
.align 3
.LC117:
.string "ctx->pos += %llu;\n"
.align 3
.LC118:
.string "pcc_refill_buffer(ctx, 1) < 1 ||\n"
.align 3
.LC119:
.string "ctx->buffer.buf[ctx->pos] != '%s'\n"
.align 3
.LC120:
.string "ctx->pos++;\n"
.text
.align 2
.type generate_matching_string_code, %function
generate_matching_string_code:
.LFB96:
.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 x0, [sp, 56]
str x1, [sp, 48]
str w2, [sp, 44]
str x3, [sp, 32]
str w4, [sp, 40]
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 x0, [sp, 48]
cmp x0, 0
beq .L724
ldr x0, [sp, 48]
bl strlen
b .L725
.L724:
mov x0, 0
.L725:
str x0, [sp, 72]
ldr x0, [sp, 72]
cmp x0, 0
beq .L726
ldr x0, [sp, 72]
cmp x0, 1
bls .L727
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC112
add x0, x0, :lo12:.LC112
bl fputs_e
ldr x0, [sp, 56]
ldr x3, [x0]
ldr x0, [sp, 32]
add x0, x0, 4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 56]
ldr x4, [x0]
ldr x3, [sp, 72]
ldr x2, [sp, 72]
adrp x0, .LC113
add x1, x0, :lo12:.LC113
mov x0, x4
bl fprintf_e
str xzr, [sp, 64]
b .L728
.L729:
ldr x0, [sp, 56]
ldr x3, [x0]
ldr x0, [sp, 32]
add x0, x0, 4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 56]
ldr x19, [x0]
ldr x1, [sp, 48]
ldr x0, [sp, 64]
add x0, x1, x0
ldrb w2, [x0]
add x0, sp, 80
mov x1, x0
mov w0, w2
bl escape_character
mov x3, x0
ldr x2, [sp, 64]
adrp x0, .LC114
add x1, x0, :lo12:.LC114
mov x0, x19
bl fprintf_e
ldr x0, [sp, 64]
add x0, x0, 1
str x0, [sp, 64]
.L728:
ldr x0, [sp, 72]
sub x0, x0, #1
ldr x1, [sp, 64]
cmp x1, x0
bcc .L729
ldr x0, [sp, 56]
ldr x3, [x0]
ldr x0, [sp, 32]
add x0, x0, 4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 56]
ldr x19, [x0]
ldr x1, [sp, 48]
ldr x0, [sp, 64]
add x0, x1, x0
ldrb w2, [x0]
add x0, sp, 80
mov x1, x0
mov w0, w2
bl escape_character
mov x3, x0
ldr x2, [sp, 64]
adrp x0, .LC115
add x1, x0, :lo12:.LC115
mov x0, x19
bl fprintf_e
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x3, [x0]
ldr w2, [sp, 44]
adrp x0, .LC116
add x1, x0, :lo12:.LC116
mov x0, x3
bl fprintf_e
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x3, [x0]
ldr x2, [sp, 72]
adrp x0, .LC117
add x1, x0, :lo12:.LC117
mov x0, x3
bl fprintf_e
mov w0, 0
b .L731
.L727:
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC112
add x0, x0, :lo12:.LC112
bl fputs_e
ldr x0, [sp, 56]
ldr x3, [x0]
ldr x0, [sp, 32]
add x0, x0, 4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC118
add x0, x0, :lo12:.LC118
bl fputs_e
ldr x0, [sp, 56]
ldr x3, [x0]
ldr x0, [sp, 32]
add x0, x0, 4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 56]
ldr x19, [x0]
ldr x0, [sp, 48]
ldrb w2, [x0]
add x0, sp, 80
mov x1, x0
mov w0, w2
bl escape_character
mov x2, x0
adrp x0, .LC119
add x1, x0, :lo12:.LC119
mov x0, x19
bl fprintf_e
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x3, [x0]
ldr w2, [sp, 44]
adrp x0, .LC116
add x1, x0, :lo12:.LC116
mov x0, x3
bl fprintf_e
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC120
add x0, x0, :lo12:.LC120
bl fputs_e
mov w0, 0
b .L731
.L726:
mov w0, 1
.L731:
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 .L732
bl __stack_chk_fail
.L732:
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
.LFE96:
.size generate_matching_string_code, .-generate_matching_string_code
.section .rodata
.align 3
.LC121:
.string "ctx->buffer.buf[ctx->pos] == '%s'\n"
.align 3
.LC122:
.string "{\n"
.align 3
.LC123:
.string "char c;\n"
.align 3
.LC124:
.string "if (pcc_refill_buffer(ctx, 1) < 1) goto L%04d;\n"
.align 3
.LC125:
.string "c = ctx->buffer.buf[ctx->pos];\n"
.align 3
.LC126:
.string "if (c >= '%s' && c <= '%s') goto L%04d;\n"
.align 3
.LC127:
.string "if (!(c >= '%s' && c <= '%s')) goto L%04d;\n"
.align 3
.LC128:
.string "if (!(\n"
.align 3
.LC129:
.string ""
.align 3
.LC130:
.string " ||"
.align 3
.LC131:
.string "(c >= '%s' && c <= '%s')%s\n"
.align 3
.LC132:
.string "c == '%s'%s\n"
.align 3
.LC133:
.string ")) goto L%04d;\n"
.align 3
.LC134:
.string "goto L%04d;\n"
.text
.align 2
.type generate_matching_charclass_code, %function
generate_matching_charclass_code:
.LFB97:
.cfi_startproc
stp x29, x30, [sp, -128]!
.cfi_def_cfa_offset 128
.cfi_offset 29, -128
.cfi_offset 30, -120
mov x29, sp
stp x19, x20, [sp, 16]
str x21, [sp, 32]
.cfi_offset 19, -112
.cfi_offset 20, -104
.cfi_offset 21, -96
str x0, [sp, 72]
str x1, [sp, 64]
str w2, [sp, 60]
str x3, [sp, 48]
str w4, [sp, 56]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 120]
mov x1, 0
ldr x0, [sp, 64]
cmp x0, 0
beq .L734
ldr x0, [sp, 64]
bl strlen
str x0, [sp, 96]
ldr x0, [sp, 96]
cmp x0, 0
beq .L735
ldr x0, [sp, 96]
cmp x0, 1
bls .L736
ldr x0, [sp, 64]
ldrb w0, [x0]
cmp w0, 94
cset w0, eq
and w0, w0, 255
str w0, [sp, 84]
ldr w0, [sp, 84]
cmp w0, 0
cset w0, ne
and w0, w0, 255
and x0, x0, 255
str x0, [sp, 88]
ldr x0, [sp, 88]
add x0, x0, 1
ldr x1, [sp, 96]
cmp x1, x0
bne .L737
ldr x0, [sp, 72]
ldr x0, [x0]
ldr x2, [sp, 48]
mov w1, 32
bl write_characters
ldr x0, [sp, 72]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC112
add x0, x0, :lo12:.LC112
bl fputs_e
ldr x0, [sp, 72]
ldr x3, [x0]
ldr x0, [sp, 48]
add x0, x0, 4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 72]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC118
add x0, x0, :lo12:.LC118
bl fputs_e
ldr x0, [sp, 72]
ldr x3, [x0]
ldr x0, [sp, 48]
add x0, x0, 4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 72]
ldr x19, [x0]
ldr x1, [sp, 64]
ldr x0, [sp, 88]
add x0, x1, x0
ldrb w2, [x0]
add x0, sp, 104
mov x1, x0
mov w0, w2
bl escape_character
mov x2, x0
adrp x0, .LC121
add x1, x0, :lo12:.LC121
mov x0, x19
bl fprintf_e
ldr x0, [sp, 72]
ldr x0, [x0]
ldr x2, [sp, 48]
mov w1, 32
bl write_characters
ldr x0, [sp, 72]
ldr x3, [x0]
ldr w2, [sp, 60]
adrp x0, .LC116
add x1, x0, :lo12:.LC116
mov x0, x3
bl fprintf_e
ldr x0, [sp, 72]
ldr x0, [x0]
ldr x2, [sp, 48]
mov w1, 32
bl write_characters
ldr x0, [sp, 72]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC120
add x0, x0, :lo12:.LC120
bl fputs_e
mov w0, 0
b .L757
.L737:
ldr w0, [sp, 56]
cmp w0, 0
bne .L739
ldr x0, [sp, 72]
ldr x0, [x0]
ldr x2, [sp, 48]
mov w1, 32
bl write_characters
ldr x0, [sp, 72]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC122
add x0, x0, :lo12:.LC122
bl fputs_e
ldr x0, [sp, 48]
add x0, x0, 4
str x0, [sp, 48]
.L739:
ldr x0, [sp, 72]
ldr x0, [x0]
ldr x2, [sp, 48]
mov w1, 32
bl write_characters
ldr x0, [sp, 72]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC123
add x0, x0, :lo12:.LC123
bl fputs_e
ldr x0, [sp, 72]
ldr x0, [x0]
ldr x2, [sp, 48]
mov w1, 32
bl write_characters
ldr x0, [sp, 72]
ldr x3, [x0]
ldr w2, [sp, 60]
adrp x0, .LC124
add x1, x0, :lo12:.LC124
mov x0, x3
bl fprintf_e
ldr x0, [sp, 72]
ldr x0, [x0]
ldr x2, [sp, 48]
mov w1, 32
bl write_characters
ldr x0, [sp, 72]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC125
add x0, x0, :lo12:.LC125
bl fputs_e
ldr x0, [sp, 88]
add x0, x0, 3
ldr x1, [sp, 96]
cmp x1, x0
bne .L740
ldr x0, [sp, 88]
add x0, x0, 1
ldr x1, [sp, 64]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 45
bne .L740
ldr x0, [sp, 72]
ldr x0, [x0]
ldr x2, [sp, 48]
mov w1, 32
bl write_characters
ldr x0, [sp, 72]
ldr x20, [x0]
ldr w0, [sp, 84]
cmp w0, 0
beq .L741
adrp x0, .LC126
add x19, x0, :lo12:.LC126
b .L742
.L741:
adrp x0, .LC127
add x19, x0, :lo12:.LC127
.L742:
ldr x1, [sp, 64]
ldr x0, [sp, 88]
add x0, x1, x0
ldrb w2, [x0]
add x0, sp, 104
mov x1, x0
mov w0, w2
bl escape_character
mov x21, x0
ldr x0, [sp, 88]
add x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
ldrb w2, [x0]
add x0, sp, 112
mov x1, x0
mov w0, w2
bl escape_character
ldr w4, [sp, 60]
mov x3, x0
mov x2, x21
mov x1, x19
mov x0, x20
bl fprintf_e
b .L743
.L740:
ldr x0, [sp, 72]
ldr x0, [x0]
ldr x2, [sp, 48]
mov w1, 32
bl write_characters
ldr w0, [sp, 84]
cmp w0, 0
beq .L744
adrp x0, .LC112
add x0, x0, :lo12:.LC112
b .L745
.L744:
adrp x0, .LC128
add x0, x0, :lo12:.LC128
.L745:
ldr x1, [sp, 72]
ldr x1, [x1]
bl fputs_e
b .L746
.L753:
ldr x0, [sp, 72]
ldr x3, [x0]
ldr x0, [sp, 48]
add x0, x0, 4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 88]
add x0, x0, 2
ldr x1, [sp, 96]
cmp x1, x0
bls .L747
ldr x0, [sp, 88]
add x0, x0, 1
ldr x1, [sp, 64]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 45
bne .L747
ldr x0, [sp, 72]
ldr x19, [x0]
ldr x1, [sp, 64]
ldr x0, [sp, 88]
add x0, x1, x0
ldrb w2, [x0]
add x0, sp, 104
mov x1, x0
mov w0, w2
bl escape_character
mov x20, x0
ldr x0, [sp, 88]
add x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
ldrb w2, [x0]
add x0, sp, 112
mov x1, x0
mov w0, w2
bl escape_character
mov x2, x0
ldr x0, [sp, 88]
add x0, x0, 3
ldr x1, [sp, 96]
cmp x1, x0
bne .L748
adrp x0, .LC129
add x0, x0, :lo12:.LC129
b .L749
.L748:
adrp x0, .LC130
add x0, x0, :lo12:.LC130
.L749:
mov x4, x0
mov x3, x2
mov x2, x20
adrp x0, .LC131
add x1, x0, :lo12:.LC131
mov x0, x19
bl fprintf_e
ldr x0, [sp, 88]
add x0, x0, 2
str x0, [sp, 88]
b .L750
.L747:
ldr x0, [sp, 72]
ldr x19, [x0]
ldr x1, [sp, 64]
ldr x0, [sp, 88]
add x0, x1, x0
ldrb w2, [x0]
add x0, sp, 104
mov x1, x0
mov w0, w2
bl escape_character
mov x2, x0
ldr x0, [sp, 88]
add x0, x0, 1
ldr x1, [sp, 96]
cmp x1, x0
bne .L751
adrp x0, .LC129
add x0, x0, :lo12:.LC129
b .L752
.L751:
adrp x0, .LC130
add x0, x0, :lo12:.LC130
.L752:
mov x3, x0
adrp x0, .LC132
add x1, x0, :lo12:.LC132
mov x0, x19
bl fprintf_e
.L750:
ldr x0, [sp, 88]
add x0, x0, 1
str x0, [sp, 88]
.L746:
ldr x1, [sp, 88]
ldr x0, [sp, 96]
cmp x1, x0
bcc .L753
ldr x0, [sp, 72]
ldr x0, [x0]
ldr x2, [sp, 48]
mov w1, 32
bl write_characters
ldr x0, [sp, 72]
ldr x3, [x0]
ldr w0, [sp, 84]
cmp w0, 0
beq .L754
adrp x0, .LC116
add x0, x0, :lo12:.LC116
b .L755
.L754:
adrp x0, .LC133
add x0, x0, :lo12:.LC133
.L755:
ldr w2, [sp, 60]
mov x1, x0
mov x0, x3
bl fprintf_e
.L743:
ldr x0, [sp, 72]
ldr x0, [x0]
ldr x2, [sp, 48]
mov w1, 32
bl write_characters
ldr x0, [sp, 72]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC120
add x0, x0, :lo12:.LC120
bl fputs_e
ldr w0, [sp, 56]
cmp w0, 0
bne .L756
ldr x0, [sp, 48]
sub x0, x0, #4
str x0, [sp, 48]
ldr x0, [sp, 72]
ldr x0, [x0]
ldr x2, [sp, 48]
mov w1, 32
bl write_characters
ldr x0, [sp, 72]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC39
add x0, x0, :lo12:.LC39
bl fputs_e
.L756:
mov w0, 0
b .L757
.L736:
ldr x0, [sp, 72]
ldr x0, [x0]
ldr x2, [sp, 48]
mov w1, 32
bl write_characters
ldr x0, [sp, 72]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC112
add x0, x0, :lo12:.LC112
bl fputs_e
ldr x0, [sp, 72]
ldr x3, [x0]
ldr x0, [sp, 48]
add x0, x0, 4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 72]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC118
add x0, x0, :lo12:.LC118
bl fputs_e
ldr x0, [sp, 72]
ldr x3, [x0]
ldr x0, [sp, 48]
add x0, x0, 4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 72]
ldr x19, [x0]
ldr x0, [sp, 64]
ldrb w2, [x0]
add x0, sp, 104
mov x1, x0
mov w0, w2
bl escape_character
mov x2, x0
adrp x0, .LC119
add x1, x0, :lo12:.LC119
mov x0, x19
bl fprintf_e
ldr x0, [sp, 72]
ldr x0, [x0]
ldr x2, [sp, 48]
mov w1, 32
bl write_characters
ldr x0, [sp, 72]
ldr x3, [x0]
ldr w2, [sp, 60]
adrp x0, .LC116
add x1, x0, :lo12:.LC116
mov x0, x3
bl fprintf_e
ldr x0, [sp, 72]
ldr x0, [x0]
ldr x2, [sp, 48]
mov w1, 32
bl write_characters
ldr x0, [sp, 72]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC120
add x0, x0, :lo12:.LC120
bl fputs_e
mov w0, 0
b .L757
.L735:
ldr x0, [sp, 72]
ldr x0, [x0]
ldr x2, [sp, 48]
mov w1, 32
bl write_characters
ldr x0, [sp, 72]
ldr x3, [x0]
ldr w2, [sp, 60]
adrp x0, .LC134
add x1, x0, :lo12:.LC134
mov x0, x3
bl fprintf_e
mov w0, -1
b .L757
.L734:
ldr x0, [sp, 72]
ldr x0, [x0]
ldr x2, [sp, 48]
mov w1, 32
bl write_characters
ldr x0, [sp, 72]
ldr x3, [x0]
ldr w2, [sp, 60]
adrp x0, .LC124
add x1, x0, :lo12:.LC124
mov x0, x3
bl fprintf_e
ldr x0, [sp, 72]
ldr x0, [x0]
ldr x2, [sp, 48]
mov w1, 32
bl write_characters
ldr x0, [sp, 72]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC120
add x0, x0, :lo12:.LC120
bl fputs_e
mov w0, 0
.L757:
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 120]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L758
bl __stack_chk_fail
.L758:
mov w0, w1
ldp x19, x20, [sp, 16]
ldr x21, [sp, 32]
ldp x29, x30, [sp], 128
.cfi_restore 30
.cfi_restore 29
.cfi_restore 21
.cfi_restore 19
.cfi_restore 20
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE97:
.size generate_matching_charclass_code, .-generate_matching_charclass_code
.section .rodata
.align 3
.LC135:
.string "const int p0 = ctx->pos;\n"
.align 3
.LC136:
.string "const int n0 = chunk->thunks.len;\n"
.align 3
.LC137:
.string "int i;\n"
.align 3
.LC138:
.string "for (i = 0;; i++) {\n"
.align 3
.LC139:
.string "for (i = 0; i < %d; i++) {\n"
.align 3
.LC140:
.string "const int p = ctx->pos;\n"
.align 3
.LC141:
.string "const int n = chunk->thunks.len;\n"
.align 3
.LC142:
.string "if (ctx->pos == p) break;\n"
.align 3
.LC143:
.string "continue;\n"
.align 3
.LC144:
.string "L%04d:;\n"
.align 3
.LC145:
.string "ctx->pos = p;\n"
.align 3
.LC146:
.string "pcc_thunk_array__revert(ctx->auxil, &chunk->thunks, n);\n"
.align 3
.LC147:
.string "break;\n"
.align 3
.LC148:
.string "if (i < %d) {\n"
.align 3
.LC149:
.string "ctx->pos = p0;\n"
.align 3
.LC150:
.string "pcc_thunk_array__revert(ctx->auxil, &chunk->thunks, n0);\n"
.text
.align 2
.type generate_quantifying_code, %function
generate_quantifying_code:
.LFB98:
.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, 56]
str x1, [sp, 48]
str w2, [sp, 44]
str w3, [sp, 40]
str w4, [sp, 36]
str x5, [sp, 24]
str w6, [sp, 32]
ldr w0, [sp, 40]
cmp w0, 1
bgt .L760
ldr w0, [sp, 40]
cmp w0, 0
bge .L761
.L760:
ldr w0, [sp, 32]
cmp w0, 0
bne .L762
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 24]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC122
add x0, x0, :lo12:.LC122
bl fputs_e
ldr x0, [sp, 24]
add x0, x0, 4
str x0, [sp, 24]
.L762:
ldr w0, [sp, 44]
cmp w0, 0
ble .L763
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 24]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC135
add x0, x0, :lo12:.LC135
bl fputs_e
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 24]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC136
add x0, x0, :lo12:.LC136
bl fputs_e
.L763:
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 24]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC137
add x0, x0, :lo12:.LC137
bl fputs_e
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 24]
mov w1, 32
bl write_characters
ldr w0, [sp, 40]
cmp w0, 0
bge .L764
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC138
add x0, x0, :lo12:.LC138
bl fputs_e
b .L765
.L764:
ldr x0, [sp, 56]
ldr x3, [x0]
ldr w2, [sp, 40]
adrp x0, .LC139
add x1, x0, :lo12:.LC139
mov x0, x3
bl fprintf_e
.L765:
ldr x0, [sp, 56]
ldr x3, [x0]
ldr x0, [sp, 24]
add x0, x0, 4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC140
add x0, x0, :lo12:.LC140
bl fputs_e
ldr x0, [sp, 56]
ldr x3, [x0]
ldr x0, [sp, 24]
add x0, x0, 4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC141
add x0, x0, :lo12:.LC141
bl fputs_e
ldr x0, [sp, 56]
ldr w0, [x0, 16]
add w1, w0, 1
ldr x0, [sp, 56]
str w1, [x0, 16]
ldr x0, [sp, 56]
ldr w0, [x0, 16]
str w0, [sp, 72]
ldr x0, [sp, 24]
add x0, x0, 4
mov w4, 0
mov x3, x0
ldr w2, [sp, 72]
ldr x1, [sp, 48]
ldr x0, [sp, 56]
bl generate_code
str w0, [sp, 76]
ldr x0, [sp, 56]
ldr x3, [x0]
ldr x0, [sp, 24]
add x0, x0, 4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC142
add x0, x0, :lo12:.LC142
bl fputs_e
ldr w0, [sp, 76]
cmp w0, 1
beq .L766
ldr x0, [sp, 56]
ldr x3, [x0]
ldr x0, [sp, 24]
add x0, x0, 4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC143
add x0, x0, :lo12:.LC143
bl fputs_e
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 24]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x3, [x0]
ldr w2, [sp, 72]
adrp x0, .LC144
add x1, x0, :lo12:.LC144
mov x0, x3
bl fprintf_e
ldr x0, [sp, 56]
ldr x3, [x0]
ldr x0, [sp, 24]
add x0, x0, 4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC145
add x0, x0, :lo12:.LC145
bl fputs_e
ldr x0, [sp, 56]
ldr x3, [x0]
ldr x0, [sp, 24]
add x0, x0, 4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC146
add x0, x0, :lo12:.LC146
bl fputs_e
ldr x0, [sp, 56]
ldr x3, [x0]
ldr x0, [sp, 24]
add x0, x0, 4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC147
add x0, x0, :lo12:.LC147
bl fputs_e
.L766:
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 24]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC39
add x0, x0, :lo12:.LC39
bl fputs_e
ldr w0, [sp, 44]
cmp w0, 0
ble .L767
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 24]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x3, [x0]
ldr w2, [sp, 44]
adrp x0, .LC148
add x1, x0, :lo12:.LC148
mov x0, x3
bl fprintf_e
ldr x0, [sp, 56]
ldr x3, [x0]
ldr x0, [sp, 24]
add x0, x0, 4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC149
add x0, x0, :lo12:.LC149
bl fputs_e
ldr x0, [sp, 56]
ldr x3, [x0]
ldr x0, [sp, 24]
add x0, x0, 4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC150
add x0, x0, :lo12:.LC150
bl fputs_e
ldr x0, [sp, 56]
ldr x3, [x0]
ldr x0, [sp, 24]
add x0, x0, 4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 56]
ldr x3, [x0]
ldr w2, [sp, 36]
adrp x0, .LC134
add x1, x0, :lo12:.LC134
mov x0, x3
bl fprintf_e
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 24]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC39
add x0, x0, :lo12:.LC39
bl fputs_e
.L767:
ldr w0, [sp, 32]
cmp w0, 0
bne .L768
ldr x0, [sp, 24]
sub x0, x0, #4
str x0, [sp, 24]
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 24]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC39
add x0, x0, :lo12:.LC39
bl fputs_e
.L768:
ldr w0, [sp, 44]
cmp w0, 0
ble .L769
ldr w0, [sp, 76]
cmn w0, #1
bne .L770
mov w0, -1
b .L773
.L770:
mov w0, 0
b .L773
.L769:
mov w0, 1
b .L773
.L761:
ldr w0, [sp, 40]
cmp w0, 1
bne .L774
ldr w0, [sp, 44]
cmp w0, 0
ble .L775
ldr w4, [sp, 32]
ldr x3, [sp, 24]
ldr w2, [sp, 36]
ldr x1, [sp, 48]
ldr x0, [sp, 56]
bl generate_code
b .L773
.L775:
ldr w0, [sp, 32]
cmp w0, 0
bne .L776
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 24]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC122
add x0, x0, :lo12:.LC122
bl fputs_e
ldr x0, [sp, 24]
add x0, x0, 4
str x0, [sp, 24]
.L776:
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 24]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC140
add x0, x0, :lo12:.LC140
bl fputs_e
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 24]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC141
add x0, x0, :lo12:.LC141
bl fputs_e
ldr x0, [sp, 56]
ldr w0, [x0, 16]
add w1, w0, 1
ldr x0, [sp, 56]
str w1, [x0, 16]
ldr x0, [sp, 56]
ldr w0, [x0, 16]
str w0, [sp, 64]
mov w4, 0
ldr x3, [sp, 24]
ldr w2, [sp, 64]
ldr x1, [sp, 48]
ldr x0, [sp, 56]
bl generate_code
cmp w0, 1
beq .L777
ldr x0, [sp, 56]
ldr w0, [x0, 16]
add w1, w0, 1
ldr x0, [sp, 56]
str w1, [x0, 16]
ldr x0, [sp, 56]
ldr w0, [x0, 16]
str w0, [sp, 68]
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 24]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x3, [x0]
ldr w2, [sp, 68]
adrp x0, .LC134
add x1, x0, :lo12:.LC134
mov x0, x3
bl fprintf_e
ldr x0, [sp, 56]
ldr x3, [x0]
ldr x0, [sp, 24]
sub x0, x0, #4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 56]
ldr x3, [x0]
ldr w2, [sp, 64]
adrp x0, .LC144
add x1, x0, :lo12:.LC144
mov x0, x3
bl fprintf_e
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 24]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC145
add x0, x0, :lo12:.LC145
bl fputs_e
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 24]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC146
add x0, x0, :lo12:.LC146
bl fputs_e
ldr x0, [sp, 56]
ldr x3, [x0]
ldr x0, [sp, 24]
sub x0, x0, #4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 56]
ldr x3, [x0]
ldr w2, [sp, 68]
adrp x0, .LC144
add x1, x0, :lo12:.LC144
mov x0, x3
bl fprintf_e
.L777:
ldr w0, [sp, 32]
cmp w0, 0
bne .L778
ldr x0, [sp, 24]
sub x0, x0, #4
str x0, [sp, 24]
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 24]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC39
add x0, x0, :lo12:.LC39
bl fputs_e
.L778:
mov w0, 1
b .L773
.L774:
mov w0, 1
.L773:
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE98:
.size generate_quantifying_code, .-generate_quantifying_code
.align 2
.type generate_predicating_code, %function
generate_predicating_code:
.LFB99:
.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, 56]
str x1, [sp, 48]
str w2, [sp, 44]
str w3, [sp, 40]
str x4, [sp, 32]
str w5, [sp, 28]
ldr w0, [sp, 28]
cmp w0, 0
bne .L780
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC122
add x0, x0, :lo12:.LC122
bl fputs_e
ldr x0, [sp, 32]
add x0, x0, 4
str x0, [sp, 32]
.L780:
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC140
add x0, x0, :lo12:.LC140
bl fputs_e
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC141
add x0, x0, :lo12:.LC141
bl fputs_e
ldr w0, [sp, 44]
cmp w0, 0
beq .L781
ldr x0, [sp, 56]
ldr w0, [x0, 16]
add w1, w0, 1
ldr x0, [sp, 56]
str w1, [x0, 16]
ldr x0, [sp, 56]
ldr w0, [x0, 16]
str w0, [sp, 76]
mov w4, 0
ldr x3, [sp, 32]
ldr w2, [sp, 76]
ldr x1, [sp, 48]
ldr x0, [sp, 56]
bl generate_code
str w0, [sp, 64]
ldr w0, [sp, 64]
cmn w0, #1
beq .L782
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC145
add x0, x0, :lo12:.LC145
bl fputs_e
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC146
add x0, x0, :lo12:.LC146
bl fputs_e
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x3, [x0]
ldr w2, [sp, 40]
adrp x0, .LC134
add x1, x0, :lo12:.LC134
mov x0, x3
bl fprintf_e
.L782:
ldr w0, [sp, 64]
cmp w0, 1
beq .L783
ldr x0, [sp, 56]
ldr x3, [x0]
ldr x0, [sp, 32]
sub x0, x0, #4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 56]
ldr x3, [x0]
ldr w2, [sp, 76]
adrp x0, .LC144
add x1, x0, :lo12:.LC144
mov x0, x3
bl fprintf_e
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC145
add x0, x0, :lo12:.LC145
bl fputs_e
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC146
add x0, x0, :lo12:.LC146
bl fputs_e
.L783:
ldr w0, [sp, 64]
cmp w0, 1
beq .L784
ldr w0, [sp, 64]
cmp w0, 1
bgt .L788
ldr w0, [sp, 64]
cmn w0, #1
beq .L786
ldr w0, [sp, 64]
cmp w0, 0
b .L788
.L784:
mov w0, -1
str w0, [sp, 64]
b .L788
.L786:
mov w0, 1
str w0, [sp, 64]
b .L788
.L781:
ldr x0, [sp, 56]
ldr w0, [x0, 16]
add w1, w0, 1
ldr x0, [sp, 56]
str w1, [x0, 16]
ldr x0, [sp, 56]
ldr w0, [x0, 16]
str w0, [sp, 68]
ldr x0, [sp, 56]
ldr w0, [x0, 16]
add w1, w0, 1
ldr x0, [sp, 56]
str w1, [x0, 16]
ldr x0, [sp, 56]
ldr w0, [x0, 16]
str w0, [sp, 72]
mov w4, 0
ldr x3, [sp, 32]
ldr w2, [sp, 68]
ldr x1, [sp, 48]
ldr x0, [sp, 56]
bl generate_code
str w0, [sp, 64]
ldr w0, [sp, 64]
cmn w0, #1
beq .L789
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC145
add x0, x0, :lo12:.LC145
bl fputs_e
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC146
add x0, x0, :lo12:.LC146
bl fputs_e
.L789:
ldr w0, [sp, 64]
cmp w0, 0
bne .L790
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x3, [x0]
ldr w2, [sp, 72]
adrp x0, .LC134
add x1, x0, :lo12:.LC134
mov x0, x3
bl fprintf_e
.L790:
ldr w0, [sp, 64]
cmp w0, 1
beq .L791
ldr x0, [sp, 56]
ldr x3, [x0]
ldr x0, [sp, 32]
sub x0, x0, #4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 56]
ldr x3, [x0]
ldr w2, [sp, 68]
adrp x0, .LC144
add x1, x0, :lo12:.LC144
mov x0, x3
bl fprintf_e
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC145
add x0, x0, :lo12:.LC145
bl fputs_e
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC146
add x0, x0, :lo12:.LC146
bl fputs_e
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x3, [x0]
ldr w2, [sp, 40]
adrp x0, .LC134
add x1, x0, :lo12:.LC134
mov x0, x3
bl fprintf_e
.L791:
ldr w0, [sp, 64]
cmp w0, 0
bne .L788
ldr x0, [sp, 56]
ldr x3, [x0]
ldr x0, [sp, 32]
sub x0, x0, #4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 56]
ldr x3, [x0]
ldr w2, [sp, 72]
adrp x0, .LC144
add x1, x0, :lo12:.LC144
mov x0, x3
bl fprintf_e
.L788:
ldr w0, [sp, 28]
cmp w0, 0
bne .L792
ldr x0, [sp, 32]
sub x0, x0, #4
str x0, [sp, 32]
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC39
add x0, x0, :lo12:.LC39
bl fputs_e
.L792:
ldr w0, [sp, 64]
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE99:
.size generate_predicating_code, .-generate_predicating_code
.section .rodata
.align 3
.LC151:
.string "/* unreachable codes omitted */\n"
.text
.align 2
.type generate_sequential_code, %function
generate_sequential_code:
.LFB100:
.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]
str w4, [sp, 24]
str wzr, [sp, 56]
str wzr, [sp, 60]
b .L795
.L802:
ldr x0, [sp, 32]
ldr x1, [x0]
ldrsw x0, [sp, 60]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
mov w4, 0
ldr x3, [sp, 16]
ldr w2, [sp, 28]
mov x1, x0
ldr x0, [sp, 40]
bl generate_code
cmn w0, #1
beq .L796
cmp w0, 1
beq .L804
b .L803
.L796:
ldr x0, [sp, 32]
ldr w0, [x0, 12]
sub w0, w0, #1
ldr w1, [sp, 60]
cmp w1, w0
bge .L799
ldr x0, [sp, 40]
ldr x0, [x0]
ldr x2, [sp, 16]
mov w1, 32
bl write_characters
ldr x0, [sp, 40]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC151
add x0, x0, :lo12:.LC151
bl fputs_e
.L799:
mov w0, -1
b .L800
.L803:
mov w0, 1
str w0, [sp, 56]
b .L801
.L804:
nop
.L801:
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L795:
ldr x0, [sp, 32]
ldr w0, [x0, 12]
ldr w1, [sp, 60]
cmp w1, w0
blt .L802
ldr w0, [sp, 56]
cmp w0, 0
cset w0, eq
and w0, w0, 255
.L800:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE100:
.size generate_sequential_code, .-generate_sequential_code
.align 2
.type generate_alternative_code, %function
generate_alternative_code:
.LFB101:
.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]
str w4, [sp, 24]
str wzr, [sp, 60]
ldr x0, [sp, 40]
ldr w0, [x0, 16]
add w1, w0, 1
ldr x0, [sp, 40]
str w1, [x0, 16]
ldr x0, [sp, 40]
ldr w0, [x0, 16]
str w0, [sp, 68]
ldr w0, [sp, 24]
cmp w0, 0
bne .L806
ldr x0, [sp, 40]
ldr x0, [x0]
ldr x2, [sp, 16]
mov w1, 32
bl write_characters
ldr x0, [sp, 40]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC122
add x0, x0, :lo12:.LC122
bl fputs_e
ldr x0, [sp, 16]
add x0, x0, 4
str x0, [sp, 16]
.L806:
ldr x0, [sp, 40]
ldr x0, [x0]
ldr x2, [sp, 16]
mov w1, 32
bl write_characters
ldr x0, [sp, 40]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC140
add x0, x0, :lo12:.LC140
bl fputs_e
ldr x0, [sp, 40]
ldr x0, [x0]
ldr x2, [sp, 16]
mov w1, 32
bl write_characters
ldr x0, [sp, 40]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC141
add x0, x0, :lo12:.LC141
bl fputs_e
str wzr, [sp, 64]
b .L807
.L816:
ldr x0, [sp, 32]
ldr w0, [x0, 12]
sub w0, w0, #1
ldr w1, [sp, 64]
cmp w1, w0
cset w0, lt
and w0, w0, 255
str w0, [sp, 72]
ldr x0, [sp, 40]
ldr w0, [x0, 16]
add w1, w0, 1
ldr x0, [sp, 40]
str w1, [x0, 16]
ldr x0, [sp, 40]
ldr w0, [x0, 16]
str w0, [sp, 76]
ldr x0, [sp, 32]
ldr x1, [x0]
ldrsw x0, [sp, 64]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
mov w4, 0
ldr x3, [sp, 16]
ldr w2, [sp, 76]
mov x1, x0
ldr x0, [sp, 40]
bl generate_code
cmn w0, #1
beq .L821
cmp w0, 1
bne .L809
ldr w0, [sp, 72]
cmp w0, 0
beq .L810
ldr x0, [sp, 40]
ldr x0, [x0]
ldr x2, [sp, 16]
mov w1, 32
bl write_characters
ldr x0, [sp, 40]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC151
add x0, x0, :lo12:.LC151
bl fputs_e
.L810:
ldr w0, [sp, 60]
cmp w0, 0
beq .L811
ldr x0, [sp, 40]
ldr x3, [x0]
ldr x0, [sp, 16]
sub x0, x0, #4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 40]
ldr x3, [x0]
ldr w2, [sp, 68]
adrp x0, .LC144
add x1, x0, :lo12:.LC144
mov x0, x3
bl fprintf_e
.L811:
ldr w0, [sp, 24]
cmp w0, 0
bne .L812
ldr x0, [sp, 16]
sub x0, x0, #4
str x0, [sp, 16]
ldr x0, [sp, 40]
ldr x0, [x0]
ldr x2, [sp, 16]
mov w1, 32
bl write_characters
ldr x0, [sp, 40]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC39
add x0, x0, :lo12:.LC39
bl fputs_e
.L812:
mov w0, 1
b .L813
.L809:
mov w0, 1
str w0, [sp, 60]
ldr x0, [sp, 40]
ldr x0, [x0]
ldr x2, [sp, 16]
mov w1, 32
bl write_characters
ldr x0, [sp, 40]
ldr x3, [x0]
ldr w2, [sp, 68]
adrp x0, .LC134
add x1, x0, :lo12:.LC134
mov x0, x3
bl fprintf_e
b .L814
.L821:
nop
.L814:
ldr x0, [sp, 40]
ldr x3, [x0]
ldr x0, [sp, 16]
sub x0, x0, #4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 40]
ldr x3, [x0]
ldr w2, [sp, 76]
adrp x0, .LC144
add x1, x0, :lo12:.LC144
mov x0, x3
bl fprintf_e
ldr x0, [sp, 40]
ldr x0, [x0]
ldr x2, [sp, 16]
mov w1, 32
bl write_characters
ldr x0, [sp, 40]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC145
add x0, x0, :lo12:.LC145
bl fputs_e
ldr x0, [sp, 40]
ldr x0, [x0]
ldr x2, [sp, 16]
mov w1, 32
bl write_characters
ldr x0, [sp, 40]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC146
add x0, x0, :lo12:.LC146
bl fputs_e
ldr w0, [sp, 72]
cmp w0, 0
bne .L815
ldr x0, [sp, 40]
ldr x0, [x0]
ldr x2, [sp, 16]
mov w1, 32
bl write_characters
ldr x0, [sp, 40]
ldr x3, [x0]
ldr w2, [sp, 28]
adrp x0, .LC134
add x1, x0, :lo12:.LC134
mov x0, x3
bl fprintf_e
.L815:
ldr w0, [sp, 64]
add w0, w0, 1
str w0, [sp, 64]
.L807:
ldr x0, [sp, 32]
ldr w0, [x0, 12]
ldr w1, [sp, 64]
cmp w1, w0
blt .L816
ldr w0, [sp, 60]
cmp w0, 0
beq .L817
ldr x0, [sp, 40]
ldr x3, [x0]
ldr x0, [sp, 16]
sub x0, x0, #4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 40]
ldr x3, [x0]
ldr w2, [sp, 68]
adrp x0, .LC144
add x1, x0, :lo12:.LC144
mov x0, x3
bl fprintf_e
.L817:
ldr w0, [sp, 24]
cmp w0, 0
bne .L818
ldr x0, [sp, 16]
sub x0, x0, #4
str x0, [sp, 16]
ldr x0, [sp, 40]
ldr x0, [x0]
ldr x2, [sp, 16]
mov w1, 32
bl write_characters
ldr x0, [sp, 40]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC39
add x0, x0, :lo12:.LC39
bl fputs_e
.L818:
ldr w0, [sp, 60]
cmp w0, 0
beq .L819
mov w0, 0
b .L813
.L819:
mov w0, -1
.L813:
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE101:
.size generate_alternative_code, .-generate_alternative_code
.section .rodata
.align 3
.LC152:
.string "int q;\n"
.align 3
.LC153:
.string "q = ctx->pos;\n"
.align 3
.LC154:
.string "chunk->capts.buf[%d].range.start = p;\n"
.align 3
.LC155:
.string "chunk->capts.buf[%d].range.end = q;\n"
.text
.align 2
.type generate_capturing_code, %function
generate_capturing_code:
.LFB102:
.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, 56]
str x1, [sp, 48]
str w2, [sp, 44]
str w3, [sp, 40]
str x4, [sp, 32]
str w5, [sp, 28]
ldr w0, [sp, 28]
cmp w0, 0
bne .L823
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC122
add x0, x0, :lo12:.LC122
bl fputs_e
ldr x0, [sp, 32]
add x0, x0, 4
str x0, [sp, 32]
.L823:
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC140
add x0, x0, :lo12:.LC140
bl fputs_e
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC152
add x0, x0, :lo12:.LC152
bl fputs_e
mov w4, 0
ldr x3, [sp, 32]
ldr w2, [sp, 40]
ldr x1, [sp, 48]
ldr x0, [sp, 56]
bl generate_code
str w0, [sp, 76]
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC153
add x0, x0, :lo12:.LC153
bl fputs_e
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x3, [x0]
ldr w2, [sp, 44]
adrp x0, .LC154
add x1, x0, :lo12:.LC154
mov x0, x3
bl fprintf_e
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x3, [x0]
ldr w2, [sp, 44]
adrp x0, .LC155
add x1, x0, :lo12:.LC155
mov x0, x3
bl fprintf_e
ldr w0, [sp, 28]
cmp w0, 0
bne .L824
ldr x0, [sp, 32]
sub x0, x0, #4
str x0, [sp, 32]
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC39
add x0, x0, :lo12:.LC39
bl fputs_e
.L824:
ldr w0, [sp, 76]
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE102:
.size generate_capturing_code, .-generate_capturing_code
.section .rodata
.align 3
.LC156:
.string "const int n = chunk->capts.buf[%d].range.end - chunk->capts.buf[%d].range.start;\n"
.align 3
.LC157:
.string "if (pcc_refill_buffer(ctx, n) < n) goto L%04d;\n"
.align 3
.LC158:
.string "if (n > 0) {\n"
.align 3
.LC159:
.string "const char *const p = ctx->buffer.buf + ctx->pos;\n"
.align 3
.LC160:
.string "const char *const q = ctx->buffer.buf + chunk->capts.buf[%d].range.start;\n"
.align 3
.LC161:
.string "for (i = 0; i < n; i++) {\n"
.align 3
.LC162:
.string "if (p[i] != q[i]) goto L%04d;\n"
.align 3
.LC163:
.string "ctx->pos += n;\n"
.text
.align 2
.type generate_expanding_code, %function
generate_expanding_code:
.LFB103:
.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 w2, [sp, 32]
str x3, [sp, 24]
str w4, [sp, 20]
ldr w0, [sp, 20]
cmp w0, 0
bne .L827
ldr x0, [sp, 40]
ldr x0, [x0]
ldr x2, [sp, 24]
mov w1, 32
bl write_characters
ldr x0, [sp, 40]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC122
add x0, x0, :lo12:.LC122
bl fputs_e
ldr x0, [sp, 24]
add x0, x0, 4
str x0, [sp, 24]
.L827:
ldr x0, [sp, 40]
ldr x0, [x0]
ldr x2, [sp, 24]
mov w1, 32
bl write_characters
ldr x0, [sp, 40]
ldr x4, [x0]
ldr w3, [sp, 36]
ldr w2, [sp, 36]
adrp x0, .LC156
add x1, x0, :lo12:.LC156
mov x0, x4
bl fprintf_e
ldr x0, [sp, 40]
ldr x0, [x0]
ldr x2, [sp, 24]
mov w1, 32
bl write_characters
ldr x0, [sp, 40]
ldr x3, [x0]
ldr w2, [sp, 32]
adrp x0, .LC157
add x1, x0, :lo12:.LC157
mov x0, x3
bl fprintf_e
ldr x0, [sp, 40]
ldr x0, [x0]
ldr x2, [sp, 24]
mov w1, 32
bl write_characters
ldr x0, [sp, 40]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC158
add x0, x0, :lo12:.LC158
bl fputs_e
ldr x0, [sp, 40]
ldr x3, [x0]
ldr x0, [sp, 24]
add x0, x0, 4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 40]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC159
add x0, x0, :lo12:.LC159
bl fputs_e
ldr x0, [sp, 40]
ldr x3, [x0]
ldr x0, [sp, 24]
add x0, x0, 4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 40]
ldr x3, [x0]
ldr w2, [sp, 36]
adrp x0, .LC160
add x1, x0, :lo12:.LC160
mov x0, x3
bl fprintf_e
ldr x0, [sp, 40]
ldr x3, [x0]
ldr x0, [sp, 24]
add x0, x0, 4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 40]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC137
add x0, x0, :lo12:.LC137
bl fputs_e
ldr x0, [sp, 40]
ldr x3, [x0]
ldr x0, [sp, 24]
add x0, x0, 4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 40]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC161
add x0, x0, :lo12:.LC161
bl fputs_e
ldr x0, [sp, 40]
ldr x3, [x0]
ldr x0, [sp, 24]
add x0, x0, 8
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 40]
ldr x3, [x0]
ldr w2, [sp, 32]
adrp x0, .LC162
add x1, x0, :lo12:.LC162
mov x0, x3
bl fprintf_e
ldr x0, [sp, 40]
ldr x3, [x0]
ldr x0, [sp, 24]
add x0, x0, 4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 40]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC39
add x0, x0, :lo12:.LC39
bl fputs_e
ldr x0, [sp, 40]
ldr x3, [x0]
ldr x0, [sp, 24]
add x0, x0, 4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 40]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC163
add x0, x0, :lo12:.LC163
bl fputs_e
ldr x0, [sp, 40]
ldr x0, [x0]
ldr x2, [sp, 24]
mov w1, 32
bl write_characters
ldr x0, [sp, 40]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC39
add x0, x0, :lo12:.LC39
bl fputs_e
ldr w0, [sp, 20]
cmp w0, 0
bne .L828
ldr x0, [sp, 24]
sub x0, x0, #4
str x0, [sp, 24]
ldr x0, [sp, 40]
ldr x0, [x0]
ldr x2, [sp, 24]
mov w1, 32
bl write_characters
ldr x0, [sp, 40]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC39
add x0, x0, :lo12:.LC39
bl fputs_e
.L828:
mov w0, 0
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE103:
.size generate_expanding_code, .-generate_expanding_code
.section .rodata
.align 3
.LC164:
.string "gen->rule->type == NODE_RULE"
.align 3
.LC165:
.string "pcc_value_t null;\n"
.align 3
.LC166:
.string "pcc_thunk_t *const thunk = pcc_thunk__create_leaf(ctx->auxil, pcc_action_%s_%d, %d, %d);\n"
.align 3
.LC167:
.string "thunk->data.leaf.values.buf[%d] = &(chunk->values.buf[%d]);\n"
.align 3
.LC168:
.string "thunk->data.leaf.capts.buf[%d] = &(chunk->capts.buf[%d]);\n"
.align 3
.LC169:
.string "thunk->data.leaf.capt0.range.start = chunk->pos;\n"
.align 3
.LC170:
.string "thunk->data.leaf.capt0.range.end = ctx->pos;\n"
.align 3
.LC171:
.string "memset(&null, 0, sizeof(pcc_value_t)); /* in case */\n"
.align 3
.LC172:
.string "thunk->data.leaf.action(ctx, thunk, &null);\n"
.align 3
.LC173:
.string "pcc_thunk__destroy(ctx->auxil, thunk);\n"
.align 3
.LC174:
.string "pcc_thunk_array__add(ctx->auxil, &chunk->thunks, thunk);\n"
.text
.align 2
.type generate_thunking_action_code, %function
generate_thunking_action_code:
.LFB104:
.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, 56]
str w1, [sp, 52]
str x2, [sp, 40]
str x3, [sp, 32]
str w4, [sp, 48]
str w5, [sp, 28]
str x6, [sp, 16]
str w7, [sp, 24]
ldr x0, [sp, 56]
ldr x0, [x0, 8]
ldr w0, [x0]
cmp w0, 0
beq .L831
adrp x0, __PRETTY_FUNCTION__.2
add x3, x0, :lo12:__PRETTY_FUNCTION__.2
mov w2, 2581
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC164
add x0, x0, :lo12:.LC164
bl __assert_fail
.L831:
ldr w0, [sp, 24]
cmp w0, 0
bne .L832
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 16]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC122
add x0, x0, :lo12:.LC122
bl fputs_e
ldr x0, [sp, 16]
add x0, x0, 4
str x0, [sp, 16]
.L832:
ldr w0, [sp, 48]
cmp w0, 0
beq .L833
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 16]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC165
add x0, x0, :lo12:.LC165
bl fputs_e
.L833:
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 16]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x6, [x0]
ldr x0, [sp, 56]
ldr x0, [x0, 8]
ldr x1, [x0, 8]
ldr x0, [sp, 56]
ldr x0, [x0, 8]
ldr w2, [x0, 44]
ldr x0, [sp, 56]
ldr x0, [x0, 8]
ldr w0, [x0, 60]
mov w5, w0
mov w4, w2
ldr w3, [sp, 52]
mov x2, x1
adrp x0, .LC166
add x1, x0, :lo12:.LC166
mov x0, x6
bl fprintf_e
str wzr, [sp, 76]
b .L834
.L836:
ldr x0, [sp, 40]
ldr x1, [x0]
ldrsw x0, [sp, 76]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0]
cmp w0, 1
beq .L835
adrp x0, __PRETTY_FUNCTION__.2
add x3, x0, :lo12:__PRETTY_FUNCTION__.2
mov w2, 2597
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC35
add x0, x0, :lo12:.LC35
bl __assert_fail
.L835:
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 16]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x4, [x0]
ldr x0, [sp, 40]
ldr x1, [x0]
ldrsw x0, [sp, 76]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w2, [x0, 16]
ldr x0, [sp, 40]
ldr x1, [x0]
ldrsw x0, [sp, 76]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0, 16]
mov w3, w0
adrp x0, .LC167
add x1, x0, :lo12:.LC167
mov x0, x4
bl fprintf_e
ldr w0, [sp, 76]
add w0, w0, 1
str w0, [sp, 76]
.L834:
ldr x0, [sp, 40]
ldr w0, [x0, 12]
ldr w1, [sp, 76]
cmp w1, w0
blt .L836
str wzr, [sp, 76]
b .L837
.L839:
ldr x0, [sp, 32]
ldr x1, [x0]
ldrsw x0, [sp, 76]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0]
cmp w0, 8
beq .L838
adrp x0, __PRETTY_FUNCTION__.2
add x3, x0, :lo12:__PRETTY_FUNCTION__.2
mov w2, 2603
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC36
add x0, x0, :lo12:.LC36
bl __assert_fail
.L838:
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 16]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x4, [x0]
ldr x0, [sp, 32]
ldr x1, [x0]
ldrsw x0, [sp, 76]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w2, [x0, 16]
ldr x0, [sp, 32]
ldr x1, [x0]
ldrsw x0, [sp, 76]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0, 16]
mov w3, w0
adrp x0, .LC168
add x1, x0, :lo12:.LC168
mov x0, x4
bl fprintf_e
ldr w0, [sp, 76]
add w0, w0, 1
str w0, [sp, 76]
.L837:
ldr x0, [sp, 32]
ldr w0, [x0, 12]
ldr w1, [sp, 76]
cmp w1, w0
blt .L839
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 16]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC169
add x0, x0, :lo12:.LC169
bl fputs_e
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 16]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC170
add x0, x0, :lo12:.LC170
bl fputs_e
ldr w0, [sp, 48]
cmp w0, 0
beq .L840
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 16]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC171
add x0, x0, :lo12:.LC171
bl fputs_e
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 16]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC172
add x0, x0, :lo12:.LC172
bl fputs_e
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 16]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC173
add x0, x0, :lo12:.LC173
bl fputs_e
b .L841
.L840:
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 16]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC174
add x0, x0, :lo12:.LC174
bl fputs_e
.L841:
ldr w0, [sp, 24]
cmp w0, 0
bne .L842
ldr x0, [sp, 16]
sub x0, x0, #4
str x0, [sp, 16]
ldr x0, [sp, 56]
ldr x0, [x0]
ldr x2, [sp, 16]
mov w1, 32
bl write_characters
ldr x0, [sp, 56]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC39
add x0, x0, :lo12:.LC39
bl fputs_e
.L842:
mov w0, 1
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE104:
.size generate_thunking_action_code, .-generate_thunking_action_code
.align 2
.type generate_thunking_error_code, %function
generate_thunking_error_code:
.LFB105:
.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 w2, [sp, 60]
str x3, [sp, 48]
str x4, [sp, 40]
str w5, [sp, 56]
str x6, [sp, 32]
str w7, [sp, 28]
ldr x0, [sp, 72]
ldr w0, [x0, 16]
add w1, w0, 1
ldr x0, [sp, 72]
str w1, [x0, 16]
ldr x0, [sp, 72]
ldr w0, [x0, 16]
str w0, [sp, 84]
ldr x0, [sp, 72]
ldr w0, [x0, 16]
add w1, w0, 1
ldr x0, [sp, 72]
str w1, [x0, 16]
ldr x0, [sp, 72]
ldr w0, [x0, 16]
str w0, [sp, 88]
ldr x0, [sp, 72]
ldr x0, [x0, 8]
ldr w0, [x0]
cmp w0, 0
beq .L845
adrp x0, __PRETTY_FUNCTION__.1
add x3, x0, :lo12:__PRETTY_FUNCTION__.1
mov w2, 2639
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC164
add x0, x0, :lo12:.LC164
bl __assert_fail
.L845:
ldr w0, [sp, 28]
cmp w0, 0
bne .L846
ldr x0, [sp, 72]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 72]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC122
add x0, x0, :lo12:.LC122
bl fputs_e
ldr x0, [sp, 32]
add x0, x0, 4
str x0, [sp, 32]
.L846:
mov w4, 1
ldr x3, [sp, 32]
ldr w2, [sp, 84]
ldr x1, [sp, 64]
ldr x0, [sp, 72]
bl generate_code
str w0, [sp, 92]
ldr x0, [sp, 72]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 72]
ldr x3, [x0]
ldr w2, [sp, 88]
adrp x0, .LC134
add x1, x0, :lo12:.LC134
mov x0, x3
bl fprintf_e
ldr x0, [sp, 72]
ldr x3, [x0]
ldr x0, [sp, 32]
sub x0, x0, #4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 72]
ldr x3, [x0]
ldr w2, [sp, 84]
adrp x0, .LC144
add x1, x0, :lo12:.LC144
mov x0, x3
bl fprintf_e
mov w7, 0
ldr x6, [sp, 32]
ldr w5, [sp, 84]
mov w4, 1
ldr x3, [sp, 40]
ldr x2, [sp, 48]
ldr w1, [sp, 60]
ldr x0, [sp, 72]
bl generate_thunking_action_code
ldr x0, [sp, 72]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 72]
ldr x3, [x0]
ldr w2, [sp, 56]
adrp x0, .LC134
add x1, x0, :lo12:.LC134
mov x0, x3
bl fprintf_e
ldr x0, [sp, 72]
ldr x3, [x0]
ldr x0, [sp, 32]
sub x0, x0, #4
mov x2, x0
mov w1, 32
mov x0, x3
bl write_characters
ldr x0, [sp, 72]
ldr x3, [x0]
ldr w2, [sp, 88]
adrp x0, .LC144
add x1, x0, :lo12:.LC144
mov x0, x3
bl fprintf_e
ldr w0, [sp, 28]
cmp w0, 0
bne .L847
ldr x0, [sp, 32]
sub x0, x0, #4
str x0, [sp, 32]
ldr x0, [sp, 72]
ldr x0, [x0]
ldr x2, [sp, 32]
mov w1, 32
bl write_characters
ldr x0, [sp, 72]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC39
add x0, x0, :lo12:.LC39
bl fputs_e
.L847:
ldr w0, [sp, 92]
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE105:
.size generate_thunking_error_code, .-generate_thunking_error_code
.section .rodata
.align 3
.LC175:
.string "if (!pcc_apply_rule(ctx, pcc_evaluate_rule_%s, &chunk->thunks, &(chunk->values.buf[%d]))) goto L%04d;\n"
.align 3
.LC176:
.string "if (!pcc_apply_rule(ctx, pcc_evaluate_rule_%s, &chunk->thunks, NULL)) goto L%04d;\n"
.text
.align 2
.type generate_code, %function
generate_code:
.LFB106:
.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 w2, [sp, 28]
str x3, [sp, 16]
str w4, [sp, 24]
ldr x0, [sp, 32]
cmp x0, 0
bne .L850
mov w1, 2665
adrp x0, .LC29
add x0, x0, :lo12:.LC29
bl print_error
mov w0, -1
bl exit
.L850:
ldr x0, [sp, 32]
ldr w0, [x0]
cmp w0, 11
beq .L851
cmp w0, 11
bhi .L852
cmp w0, 10
beq .L853
cmp w0, 10
bhi .L852
cmp w0, 9
beq .L854
cmp w0, 9
bhi .L852
cmp w0, 8
beq .L855
cmp w0, 8
bhi .L852
cmp w0, 7
beq .L856
cmp w0, 7
bhi .L852
cmp w0, 6
beq .L857
cmp w0, 6
bhi .L852
cmp w0, 5
beq .L858
cmp w0, 5
bhi .L852
cmp w0, 4
beq .L859
cmp w0, 4
bhi .L852
cmp w0, 3
beq .L860
cmp w0, 3
bhi .L852
cmp w0, 2
beq .L861
cmp w0, 2
bhi .L852
cmp w0, 0
beq .L862
cmp w0, 1
beq .L863
b .L852
.L862:
mov w1, 2670
adrp x0, .LC29
add x0, x0, :lo12:.LC29
bl print_error
mov w0, -1
bl exit
.L863:
ldr x0, [sp, 40]
ldr x0, [x0]
ldr x2, [sp, 16]
mov w1, 32
bl write_characters
ldr x0, [sp, 32]
ldr w0, [x0, 16]
cmp w0, 0
blt .L864
ldr x0, [sp, 40]
ldr x5, [x0]
ldr x0, [sp, 32]
ldr x1, [x0, 24]
ldr x0, [sp, 32]
ldr w0, [x0, 16]
ldr w4, [sp, 28]
mov w3, w0
mov x2, x1
adrp x0, .LC175
add x1, x0, :lo12:.LC175
mov x0, x5
bl fprintf_e
b .L865
.L864:
ldr x0, [sp, 40]
ldr x4, [x0]
ldr x0, [sp, 32]
ldr x0, [x0, 24]
ldr w3, [sp, 28]
mov x2, x0
adrp x0, .LC176
add x1, x0, :lo12:.LC176
mov x0, x4
bl fprintf_e
.L865:
mov w0, 0
b .L866
.L861:
ldr x0, [sp, 32]
ldr x0, [x0, 8]
ldr w4, [sp, 24]
ldr x3, [sp, 16]
ldr w2, [sp, 28]
mov x1, x0
ldr x0, [sp, 40]
bl generate_matching_string_code
b .L866
.L860:
ldr x0, [sp, 32]
ldr x0, [x0, 8]
ldr w4, [sp, 24]
ldr x3, [sp, 16]
ldr w2, [sp, 28]
mov x1, x0
ldr x0, [sp, 40]
bl generate_matching_charclass_code
b .L866
.L859:
ldr x0, [sp, 32]
ldr x1, [x0, 16]
ldr x0, [sp, 32]
ldr w2, [x0, 8]
ldr x0, [sp, 32]
ldr w0, [x0, 12]
ldr w6, [sp, 24]
ldr x5, [sp, 16]
ldr w4, [sp, 28]
mov w3, w0
ldr x0, [sp, 40]
bl generate_quantifying_code
b .L866
.L858:
ldr x0, [sp, 32]
ldr x1, [x0, 16]
ldr x0, [sp, 32]
ldr w0, [x0, 8]
ldr w5, [sp, 24]
ldr x4, [sp, 16]
ldr w3, [sp, 28]
mov w2, w0
ldr x0, [sp, 40]
bl generate_predicating_code
b .L866
.L857:
ldr x0, [sp, 32]
add x0, x0, 8
ldr w4, [sp, 24]
ldr x3, [sp, 16]
ldr w2, [sp, 28]
mov x1, x0
ldr x0, [sp, 40]
bl generate_sequential_code
b .L866
.L856:
ldr x0, [sp, 32]
add x0, x0, 8
ldr w4, [sp, 24]
ldr x3, [sp, 16]
ldr w2, [sp, 28]
mov x1, x0
ldr x0, [sp, 40]
bl generate_alternative_code
b .L866
.L855:
ldr x0, [sp, 32]
ldr x1, [x0, 8]
ldr x0, [sp, 32]
ldr w0, [x0, 16]
ldr w5, [sp, 24]
ldr x4, [sp, 16]
ldr w3, [sp, 28]
mov w2, w0
ldr x0, [sp, 40]
bl generate_capturing_code
b .L866
.L854:
ldr x0, [sp, 32]
ldr w0, [x0, 8]
ldr w4, [sp, 24]
ldr x3, [sp, 16]
ldr w2, [sp, 28]
mov w1, w0
ldr x0, [sp, 40]
bl generate_expanding_code
b .L866
.L853:
ldr x0, [sp, 32]
ldr w1, [x0, 16]
ldr x0, [sp, 32]
add x2, x0, 24
ldr x0, [sp, 32]
add x0, x0, 40
ldr w7, [sp, 24]
ldr x6, [sp, 16]
ldr w5, [sp, 28]
mov w4, 0
mov x3, x0
ldr x0, [sp, 40]
bl generate_thunking_action_code
b .L866
.L851:
ldr x0, [sp, 32]
ldr x1, [x0, 8]
ldr x0, [sp, 32]
ldr w2, [x0, 24]
ldr x0, [sp, 32]
add x3, x0, 32
ldr x0, [sp, 32]
add x0, x0, 48
ldr w7, [sp, 24]
ldr x6, [sp, 16]
ldr w5, [sp, 28]
mov x4, x0
ldr x0, [sp, 40]
bl generate_thunking_error_code
b .L866
.L852:
mov w1, 2708
adrp x0, .LC29
add x0, x0, :lo12:.LC29
bl print_error
mov w0, -1
bl exit
.L866:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE106:
.size generate_code, .-generate_code
.section .rodata
.align 3
.LC177:
.ascii "#ifndef PCC_BUFFERSIZE\n#define PCC_BUFFERSIZE 256\n#endif /"
.ascii "* !PCC_BUFFERSIZE */\n\n#ifndef PCC_ARRAYSIZE\n#define PCC_A"
.ascii "RRAYSIZE 2\n#endif /* !PCC_ARRAYS"
.string "IZE */\n\ntypedef enum pcc_bool_tag {\n PCC_FALSE = 0,\n PCC_TRUE\n} pcc_bool_t;\n\ntypedef struct pcc_char_array_tag {\n char *buf;\n int max;\n int len;\n} pcc_char_array_t;\n\ntypedef struct pcc_range_tag {\n int start;\n int end;\n} pcc_range_t;\n\n"
.align 3
.LC178:
.string " "
.align 3
.LC179:
.string "typedef %s%spcc_value_t;\n\n"
.align 3
.LC180:
.string "typedef %s%spcc_auxil_t;\n\n"
.align 3
.LC181:
.ascii "typedef struct pcc_value_table_tag {\n pcc_value_t *buf;\n"
.ascii " int max;\n int len;\n} pcc_value_table_t;\n\ntypedef "
.ascii "struct pcc_value_refer_table_tag {\n pcc_value_t **buf;\n"
.ascii " int max;\n int len;\n} pcc_value_refer_table_t;\n\nty"
.ascii "pedef struct pcc_capture_tag {\n pcc_range_t range;\n "
.ascii "char *string; /* mutable */\n} pcc_capture_t;\n\ntypedef str"
.ascii "uct pcc_capture_table_tag {\n pcc_capture_t *buf;\n in"
.ascii "t max;\n int le"
.string "n;\n} pcc_capture_table_t;\n\ntypedef struct pcc_capture_const_table_tag {\n const pcc_capture_t **buf;\n int max;\n int len;\n} pcc_capture_const_table_t;\n\ntypedef struct pcc_thunk_tag pcc_thunk_t;\ntypedef struct pcc_thunk_array_tag pcc_thunk_array_t;\n\n"
.align 3
.LC182:
.string "typedef void (*pcc_action_t)(%s_context_t *, pcc_thunk_t *, pcc_value_t *);\n\n"
.align 3
.LC183:
.ascii "typedef enum pcc_thunk_type_tag {\n PCC_THUNK_LEAF,\n "
.ascii "PCC_THUNK_NODE\n} pcc_thunk_type_t;\n\ntypedef struct pcc_th"
.ascii "unk_leaf_tag {\n pcc_value_refer_table_t values;\n pcc"
.ascii "_capture_const_table_t capts;\n pcc_capture_t capt0;\n "
.ascii " pcc_action_t action;\n} pcc_thunk_leaf_t;\n\ntypedef struct"
.ascii " pcc_thunk_node_tag {\n const pcc_thunk_array_t *thunks; "
.ascii "/* just a reference */\n pcc_value_t *value; /* just a re"
.ascii "ference */\n} pcc_thunk_node_t;\n\ntypedef union pcc_thunk_d"
.ascii "ata_tag {\n pcc_thunk_leaf_t leaf;\n pcc_thunk_node_t "
.ascii "node;\n} pcc_thunk_data_t;\n\nstruct pcc_thunk_tag {\n pc"
.ascii "c_thunk_type_t type;\n pcc_thunk_data_t data;\n};\n\nstru"
.ascii "ct pcc_thunk_array_tag {\n pcc_thunk_t **buf;\n int ma"
.ascii "x;\n int len;\n};\n\ntypedef struct pcc_thunk_chunk_tag {"
.ascii "\n pcc_value_table_t values;\n pcc_capture_table_t cap"
.ascii "ts;\n pcc_thunk_array_t thunks;\n int pos;\n} pcc_thun"
.ascii "k_chunk_t;\n\ntypedef struct pcc_lr_entry_tag pcc_lr_entry_t"
.ascii ";\n\ntypedef enum pcc_lr_answer_type_tag {\n PCC_LR_ANSWE"
.ascii "R_LR,\n PCC_LR_ANSWER_CHUNK\n} pcc_lr_answer_type_t;\n\nt"
.ascii "ypedef union pcc_lr_answer_data_tag {\n pcc"
.string "_lr_entry_t *lr;\n pcc_thunk_chunk_t *chunk;\n} pcc_lr_answer_data_t;\n\ntypedef struct pcc_lr_answer_tag pcc_lr_answer_t;\n\nstruct pcc_lr_answer_tag {\n pcc_lr_answer_type_t type;\n pcc_lr_answer_data_t data;\n int pos;\n pcc_lr_answer_t *hold;\n};\n\n"
.align 3
.LC184:
.string "typedef pcc_thunk_chunk_t *(*pcc_rule_t)(%s_context_t *);\n\n"
.align 3
.LC185:
.ascii "typedef struct pcc_rule_set_tag {\n pcc_rule_t *buf;\n "
.ascii " int max;\n int len;\n} pcc_rule_set_t;\n\ntypedef struct"
.ascii " pcc_lr_head_tag pcc_lr_head_t;\n\nstruct pcc_lr_head_tag {\n"
.ascii " pcc_rule_t rule;\n pcc_rule_set_t invol;\n pcc_rul"
.ascii "e_set_t eval;\n pcc_lr_head_t *hold;\n};\n\ntypedef struc"
.ascii "t pcc_lr_memo_tag {\n pcc_rule_t rule;\n pcc_lr_answer"
.ascii "_t *answer;\n} pcc_lr_memo_t;\n\ntypedef struct pcc_lr_memo_"
.ascii "map_tag {\n pcc_lr_memo_t *buf;\n int max;\n int le"
.ascii "n;\n} pcc_lr_memo_map_t;\n\ntypedef struct pcc_lr_table_entr"
.ascii "y_tag {\n pcc_lr_head_t *head; /* just a reference */\n "
.ascii " pcc_lr_memo_map_t memos;\n pcc_lr_answer_t *hold_a;\n "
.ascii " pcc_lr_head_t *hold_h;\n} pcc_lr_table_entry_t;\n\ntypedef"
.ascii " struct pcc_lr_table_tag {\n pcc_lr_table_entry_t **buf;\n"
.ascii " int max;\n int len;\n} pcc_lr_table_t;\n\n"
.string "struct pcc_lr_entry_tag {\n pcc_rule_t rule;\n pcc_thunk_chunk_t *seed; /* just a reference */\n pcc_lr_head_t *head; /* just a reference */\n};\n\ntypedef struct pcc_lr_stack_tag {\n pcc_lr_entry_t **buf;\n int max;\n int len;\n} pcc_lr_stack_t;\n\n"
.align 3
.LC186:
.string "struct %s_context_tag {\n int pos;\n pcc_char_array_t buffer;\n pcc_lr_table_t lrtable;\n pcc_lr_stack_t lrstack;\n pcc_auxil_t auxil;\n};\n\n"
.align 3
.LC187:
.ascii "#ifndef PCC_ERROR\n#define PCC_ERROR(auxil) pcc_error()\nsta"
.ascii "tic void pcc_error(void) {\n fprintf(stderr, \"Syntax err"
.ascii "or\\n\");\n exit(1);\n}\n#endif /* !PCC_ERROR */\n\n#ifnd"
.ascii "ef PCC_GETCHAR\n#define PCC_GETCHAR(auxil) getchar()\n#endif"
.ascii " /* !PCC_GETCHAR */\n\n#ifndef PCC_MALLOC\n#define PCC_MALLO"
.ascii "C(auxil, size) pcc_malloc_e(size)\nstatic void *pcc_malloc_e"
.ascii "(size_t size) {\n void *const p = malloc(size);\n if ("
.ascii "p == NULL) {\n fprintf(stderr, \"Out of memory\\n\");"
.ascii "\n exit(1);\n }\n return p;\n}\n#endif /* !PCC_"
.ascii "MALLOC */\n\n#ifndef PCC_REALLOC\n#define PCC_REALLOC(auxil,"
.ascii " ptr, size) pcc_realloc_e(ptr, size)\nstatic void *pcc_reall"
.ascii "oc_e(void *ptr, size_t size) {\n void *const p = realloc("
.ascii "ptr, size);\n if (p == NULL) {\n fprintf(stderr, \""
.ascii "Out of memory\\n\");\n exit(1);\n }\n return p;"
.ascii "\n}\n#endif /* !PCC_REALLOC */\n\n#ifndef PCC_FREE\n#define "
.ascii "PCC_FREE(auxil, ptr) free(ptr)\n#endif /* !PCC_FREE */\n\nst"
.ascii "atic char *pcc_strndup_e(pcc_auxil_t auxil, const char *str,"
.ascii " size_t len) {\n const size_t m = strnlen(str, len);\n "
.ascii " char *const s = (char *)PCC_MALLOC(auxil, m + 1);\n memc"
.ascii "py(s, str, m);\n s[m] = '\\0';\n return s;\n}\n\nstati"
.ascii "c void pcc_char_array__init(pcc_auxil_t auxil, pcc_char_arra"
.ascii "y_t *array, int max) {\n array->len = 0;\n array->max "
.ascii "= max;\n array->buf = (char *)PCC_MALLOC(auxil, array->ma"
.ascii "x);\n}\n\nstatic void pcc_char_array__add(pcc_auxil_t auxil,"
.ascii " pcc_char_array_t *array, char ch) {\n if (array->max <= "
.ascii "0) array->max = 1;\n while (array->max <= array->len) arr"
.ascii "ay->max <<= 1;\n array->buf = (char *)PCC_REALLOC(auxil, "
.ascii "array->buf, array->max);\n array->buf[array->len++] = ch;"
.ascii "\n}\n\nstatic void pcc_char_array__term(pcc_auxil_t auxil, p"
.ascii "cc_char_array_t *array) {\n PCC_FREE(auxil, array->buf);\n"
.ascii "}\n\nstatic void pcc_value_table__init(pcc_auxil_t auxil, pc"
.ascii "c_value_table_t *table, int max) {\n table->len = 0;\n "
.ascii " table->max = max;\n table->buf = (pcc_value_t *)PCC_MALL"
.ascii "OC(auxil, table->max * sizeof(pcc_value_t));\n}\n\nstatic vo"
.ascii "id pcc_value_table__resize(pcc_auxil_t "
.ascii "auxil, pcc_value_table_t *table, int len) {\n if (table->"
.ascii "max < len) {\n if (table->max <= 0) table->max = 1;\n"
.ascii " while (table->max < len) table->max <<= 1;\n "
.ascii "table->buf = (pcc_value_t *)PCC_REALLOC(auxil, table->buf, t"
.ascii "able->max * sizeof(pcc_value_t));\n }\n table->len = l"
.ascii "en;\n}\n\nstatic void pcc_value_table__term(pcc_auxil_t auxi"
.ascii "l, pcc_value_table_t *table) {\n PCC_FREE(auxil, table->b"
.ascii "uf);\n}\n\nstatic void pcc_value_refer_table__init(pcc_auxil"
.ascii "_t auxil, pcc_value_refer_table_t *table, int max) {\n ta"
.ascii "ble->len = 0;\n table->max = max;\n table->buf = (pcc_"
.ascii "value_t **)PCC_MALLOC(auxil, table->max * sizeof(pcc_value_t"
.ascii " *));\n}\n\nstatic void pcc_value_refer_table__resize(pcc_au"
.ascii "xil_t auxil, pcc_value_refer_table_t *table, int len) {\n "
.ascii " int i;\n if (table->max < len) {\n if (table->max"
.ascii " <= 0) table->max = 1;\n while (table->max < len) tab"
.ascii "le->max <<= 1;\n table->buf = (pcc_value_t **)PCC_REA"
.ascii "LLOC(auxil, table->buf, table->max * sizeof(pcc_value_t *));"
.ascii "\n }\n for (i = table->len; i < len; i++) table->buf[i"
.ascii "] = NULL;\n table->len = len;\n}\n\nstatic void pcc_value"
.ascii "_refer_table__term(pcc_auxil_t auxil, pcc_value_refer_table_"
.ascii "t *table) {\n PCC_FREE(auxil, table->buf);\n}\n\nstatic v"
.ascii "oid pcc_capture_table__init(pcc_auxil_t auxil, pcc_capture_t"
.ascii "able_t *table, int max) {\n table->len = 0;\n table->m"
.ascii "ax = max;\n table->buf = (pcc_capture_t *)PCC_MALLOC(auxi"
.ascii "l, table->max * sizeof(pcc_capture_t));\n}\n\nstatic void pc"
.ascii "c_capture_table__resize(pcc_auxil_t auxil, pcc_capture_table"
.ascii "_t *table, int len) {\n int i;\n for (i = table->len -"
.ascii " 1; i >= len; i--) PCC_FREE(auxil, table->buf[i].string);\n "
.ascii " if (table->max < len) {\n if (table->max <= 0) tab"
.ascii "le->max = 1;\n while (table->max < len) table->max <<"
.ascii "= 1;\n table->buf = (pcc_capture_t *)PCC_REALLOC(auxi"
.ascii "l, table->buf, table->max * sizeof(pcc_capture_t));\n }\n"
.ascii " for (i = table->len; i < len; i++) {\n table->buf"
.ascii "[i].range.start = 0;\n table->buf[i].range.end = 0;\n"
.ascii " tab"
.ascii "le->buf[i].string = NULL;\n }\n table->len = len;\n}\n"
.ascii "\nstatic void pcc_capture_table__term(pcc_auxil_t auxil, pcc"
.ascii "_capture_table_t *table) {\n int i;\n for (i = table->"
.ascii "len - 1; i >= 0; i--) PCC_FREE(auxil, table->buf[i].string);"
.ascii "\n PCC_FREE(auxil, table->buf);\n}\n\nstatic void pcc_cap"
.ascii "ture_const_table__init(pcc_auxil_t auxil, pcc_capture_const_"
.ascii "table_t *table, int max) {\n table->len = 0;\n table->"
.ascii "max = max;\n table->buf = (const pcc_capture_t **)PCC_MAL"
.ascii "LOC(auxil, table->max * sizeof(const pcc_capture_t *));\n}\n"
.ascii "\nstatic void pcc_capture_const_table__resize(pcc_auxil_t au"
.ascii "xil, pcc_capture_const_table_t *table, int len) {\n int i"
.ascii ";\n if (table->max < len) {\n if (table->max <= 0)"
.ascii " table->max = 1;\n while (table->max < len) table->ma"
.ascii "x <<= 1;\n table->buf = (const pcc_capture_t **)PCC_R"
.ascii "EALLOC(auxil, (pcc_capture_t **)table->buf, table->max * siz"
.ascii "eof(const pcc_capture_t *));\n }\n for (i = table->len"
.ascii "; i < len; i++) table->buf[i] = NULL;\n table->len = len;"
.ascii "\n}\n\nstatic void pcc_capture_const_table__term(pcc_auxil_t"
.ascii " auxil, pcc_capture_const_table_t *table) {\n PCC_FREE(au"
.ascii "xil, table->buf);\n}\n\nstatic pcc_thunk_t *pcc_thunk__creat"
.ascii "e_leaf(pcc_auxil_t auxil, pcc_action_t action, int valuec, i"
.ascii "nt captc) {\n pcc_thunk_t *const thunk = (pcc_thunk_t *)P"
.ascii "CC_MALLOC(auxil, sizeof(pcc_thunk_t));\n thunk->type = PC"
.ascii "C_THUNK_LEAF;\n pcc_value_refer_table__init(auxil, &thunk"
.ascii "->data.leaf.values, valuec);\n pcc_value_refer_table__res"
.ascii "ize(auxil, &thunk->data.leaf.values, valuec);\n pcc_captu"
.ascii "re_const_table__init(auxil, &thunk->data.leaf.capts, captc);"
.ascii "\n pcc_capture_const_table__resize(auxil, &thunk->data.le"
.ascii "af.capts, captc);\n thunk->data.leaf.capt0.range.start = "
.ascii "0;\n thunk->data.leaf.capt0.range.end = 0;\n thunk->da"
.ascii "ta.leaf.capt0.string = NULL;\n thunk->data.leaf.action = "
.ascii "action;\n return thunk;\n}\n\nstatic pcc_thunk_t *pcc_thu"
.ascii "nk__create_node(pcc_auxil_t auxil, const pcc_thunk_array_t *"
.ascii "thunks, pcc_value_t *value) {\n pcc_thunk_t *const thunk "
.ascii "= (pcc_"
.ascii "thunk_t *)PCC_MALLOC(auxil, sizeof(pcc_thunk_t));\n thunk"
.ascii "->type = PCC_THUNK_NODE;\n thunk->data.node.thunks = thun"
.ascii "ks;\n thunk->data.node.value = value;\n return thunk;\n"
.ascii "}\n\nstatic void pcc_thunk__destroy(pcc_auxil_t auxil, pcc_t"
.ascii "hunk_t *thunk) {\n if (thunk == NULL) return;\n switch"
.ascii " (thunk->type) {\n case PCC_THUNK_LEAF:\n PCC_FREE"
.ascii "(auxil, thunk->data.leaf.capt0.string);\n pcc_capture"
.ascii "_const_table__term(auxil, &thunk->data.leaf.capts);\n "
.ascii " pcc_value_refer_table__term(auxil, &thunk->data.leaf.values"
.ascii ");\n break;\n case PCC_THUNK_NODE:\n break;"
.ascii "\n default: /* unknown */\n break;\n }\n PCC"
.ascii "_FREE(auxil, thunk);\n}\n\nstatic void pcc_thunk_array__init"
.ascii "(pcc_auxil_t auxil, pcc_thunk_array_t *array, int max) {\n "
.ascii " array->len = 0;\n array->max = max;\n array->buf = ("
.ascii "pcc_thunk_t **)PCC_MALLOC(auxil, array->max * sizeof(pcc_thu"
.ascii "nk_t *));\n}\n\nstatic void pcc_thunk_array__add(pcc_auxil_t"
.ascii " auxil, pcc_thunk_array_t *array, pcc_thunk_t *thunk) {\n "
.ascii " if (array->max <= 0) array->max = 1;\n while (array->max"
.ascii " <= array->len) array->max <<= 1;\n array->buf = (pcc_thu"
.ascii "nk_t **)PCC_REALLOC(auxil, array->buf, array->max * sizeof(p"
.ascii "cc_thunk_t *));\n array->buf[array->len++] = thunk;\n}\n\n"
.ascii "static void pcc_thunk_array__revert(pcc_auxil_t auxil, pcc_t"
.ascii "hunk_array_t *array, int len) {\n while (array->len > len"
.ascii ") {\n array->len--;\n pcc_thunk__destroy(auxil"
.ascii ", array->buf[array->len]);\n }\n}\n\nstatic void pcc_thun"
.ascii "k_array__term(pcc_auxil_t auxil, pcc_thunk_array_t *array) {"
.ascii "\n int i;\n for (i = array->len - 1; i >= 0; i--) pcc_"
.ascii "thunk__destroy(auxil, array->buf[i]);\n PCC_FREE(auxil, a"
.ascii "rray->buf);\n}\n\nstatic pcc_thunk_chunk_t *pcc_thunk_chunk_"
.ascii "_create(pcc_auxil_t auxil) {\n pcc_thunk_chunk_t *const c"
.ascii "hunk = (pcc_thunk_chunk_t *)PCC_MALLOC(auxil, sizeof(pcc_thu"
.ascii "nk_chunk_t));\n pcc_value_table__init(auxil, &chunk->valu"
.ascii "es, PCC_ARRAYSIZE);\n pcc_capture_table__init(auxil, &chu"
.ascii "nk->capts, PCC_ARRAYSIZE);\n pcc_thunk_array__init(auxil,"
.ascii " &chunk->th"
.ascii "unks, PCC_ARRAYSIZE);\n chunk->pos = 0;\n return chunk"
.ascii ";\n}\n\nstatic void pcc_thunk_chunk__destroy(pcc_auxil_t aux"
.ascii "il, pcc_thunk_chunk_t *chunk) {\n if (chunk == NULL) retu"
.ascii "rn;\n pcc_thunk_array__term(auxil, &chunk->thunks);\n "
.ascii "pcc_capture_table__term(auxil, &chunk->capts);\n pcc_valu"
.ascii "e_table__term(auxil, &chunk->values);\n PCC_FREE(auxil, c"
.ascii "hunk);\n}\n\nstatic void pcc_rule_set__init(pcc_auxil_t auxi"
.ascii "l, pcc_rule_set_t *set, int max) {\n set->len = 0;\n s"
.ascii "et->max = max;\n set->buf = (pcc_rule_t *)PCC_MALLOC(auxi"
.ascii "l, set->max * sizeof(pcc_rule_t));\n}\n\nstatic int pcc_rule"
.ascii "_set__index(pcc_auxil_t auxil, const pcc_rule_set_t *set, pc"
.ascii "c_rule_t rule) {\n int i;\n for (i = 0; i < set->len; "
.ascii "i++) {\n if (set->buf[i] == rule) return i;\n }\n "
.ascii " return -1;\n}\n\nstatic pcc_bool_t pcc_rule_set__add(pcc_"
.ascii "auxil_t auxil, pcc_rule_set_t *set, pcc_rule_t rule) {\n "
.ascii "const int i = pcc_rule_set__index(auxil, set, rule);\n if"
.ascii " (i >= 0) return PCC_FALSE;\n if (set->max <= 0) set->max"
.ascii " = 1;\n while (set->max <= set->len) set->max <<= 1;\n "
.ascii " set->buf = (pcc_rule_t *)PCC_REALLOC(auxil, set->buf, set->"
.ascii "max * sizeof(pcc_rule_t));\n set->buf[set->len++] = rule;"
.ascii "\n return PCC_TRUE;\n}\n\nstatic pcc_bool_t pcc_rule_set_"
.ascii "_remove(pcc_auxil_t auxil, pcc_rule_set_t *set, pcc_rule_t r"
.ascii "ule) {\n const int i = pcc_rule_set__index(auxil, set, ru"
.ascii "le);\n if (i < 0) return PCC_FALSE;\n memmove(set->buf"
.ascii " + i, set->buf + (i + 1), (set->len - (i + 1)) * sizeof(pcc_"
.ascii "rule_t));\n return PCC_TRUE;\n}\n\nstatic void pcc_rule_s"
.ascii "et__clear(pcc_auxil_t auxil, pcc_rule_set_t *set) {\n set"
.ascii "->len = 0;\n}\n\nstatic void pcc_rule_set__copy(pcc_auxil_t "
.ascii "auxil, pcc_rule_set_t *set, const pcc_rule_set_t *src) {\n "
.ascii " int i;\n pcc_rule_set__clear(auxil, set);\n for (i ="
.ascii " 0; i < src->len; i++) {\n pcc_rule_set__add(auxil, s"
.ascii "et, src->buf[i]);\n }\n}\n\nstatic void pcc_rule_set__ter"
.ascii "m(pcc_auxil_t auxil, pcc_rule_set_t *set) {\n PCC_FREE(au"
.ascii "xil, set->buf);\n}\n\nstatic pcc_lr_head_t *pcc_lr_head__cre"
.ascii "ate(pcc_auxil_t auxi"
.ascii "l, pcc_rule_t rule) {\n pcc_lr_head_t *const head = (pcc_"
.ascii "lr_head_t *)PCC_MALLOC(auxil, sizeof(pcc_lr_head_t));\n h"
.ascii "ead->rule = rule;\n pcc_rule_set__init(auxil, &head->invo"
.ascii "l, PCC_ARRAYSIZE);\n pcc_rule_set__init(auxil, &head->eva"
.ascii "l, PCC_ARRAYSIZE);\n head->hold = NULL;\n return head;"
.ascii "\n}\n\nstatic void pcc_lr_head__destroy(pcc_auxil_t auxil, p"
.ascii "cc_lr_head_t *head) {\n if (head == NULL) return;\n pc"
.ascii "c_lr_head__destroy(auxil, head->hold);\n pcc_rule_set__te"
.ascii "rm(auxil, &head->eval);\n pcc_rule_set__term(auxil, &head"
.ascii "->invol);\n PCC_FREE(auxil, head);\n}\n\nstatic void pcc_"
.ascii "lr_entry__destroy(pcc_auxil_t auxil, pcc_lr_entry_t *lr);\n\n"
.ascii "static pcc_lr_answer_t *pcc_lr_answer__create(pcc_auxil_t au"
.ascii "xil, pcc_lr_answer_type_t type, int pos) {\n pcc_lr_answe"
.ascii "r_t *answer = (pcc_lr_answer_t *)PCC_MALLOC(auxil, sizeof(pc"
.ascii "c_lr_answer_t));\n answer->type = type;\n answer->pos "
.ascii "= pos;\n answer->hold = NULL;\n switch (answer->type) "
.ascii "{\n case PCC_LR_ANSWER_LR:\n answer->data.lr = NUL"
.ascii "L;\n break;\n case PCC_LR_ANSWER_CHUNK:\n a"
.ascii "nswer->data.chunk = NULL;\n break;\n default: /* u"
.ascii "nknown */\n PCC_FREE(auxil, answer);\n answer "
.ascii "= NULL;\n }\n return answer;\n}\n\nstatic void pcc_lr_"
.ascii "answer__set_chunk(pcc_auxil_t auxil, pcc_lr_answer_t *answer"
.ascii ", pcc_thunk_chunk_t *chunk) {\n pcc_lr_answer_t *const a "
.ascii "= pcc_lr_answer__create(auxil, answer->type, answer->pos);\n"
.ascii " switch (answer->type) {\n case PCC_LR_ANSWER_LR:\n "
.ascii " a->data.lr = answer->data.lr;\n break;\n case"
.ascii " PCC_LR_ANSWER_CHUNK:\n a->data.chunk = answer->data."
.ascii "chunk;\n break;\n default: /* unknown */\n "
.ascii "break;\n }\n a->hold = answer->hold;\n answer->hold"
.ascii " = a;\n answer->type = PCC_LR_ANSWER_CHUNK;\n answer->"
.ascii "data.chunk = chunk;\n}\n\nstatic void pcc_lr_answer__destroy"
.ascii "(pcc_auxil_t auxil, pcc_lr_answer_t *answer) {\n if (answ"
.ascii "er == NULL) return;\n pcc_lr_answer__destroy(auxil, answe"
.ascii "r->hold);\n switch (answer->type) {\n case PCC_LR_ANSW"
.ascii "ER_LR:\n pcc_"
.ascii "lr_entry__destroy(auxil, answer->data.lr);\n break;\n"
.ascii " case PCC_LR_ANSWER_CHUNK:\n pcc_thunk_chunk__dest"
.ascii "roy(auxil, answer->data.chunk);\n break;\n default"
.ascii ": /* unknown */\n break;\n }\n PCC_FREE(auxil, "
.ascii "answer);\n}\n\nstatic void pcc_lr_memo_map__init(pcc_auxil_t"
.ascii " auxil, pcc_lr_memo_map_t *map, int max) {\n map->len = 0"
.ascii ";\n map->max = max;\n map->buf = (pcc_lr_memo_t *)PCC_"
.ascii "MALLOC(auxil, map->max * sizeof(pcc_lr_memo_t));\n}\n\nstati"
.ascii "c int pcc_lr_memo_map__index(pcc_auxil_t auxil, pcc_lr_memo_"
.ascii "map_t *map, pcc_rule_t rule) {\n int i;\n for (i = 0; "
.ascii "i < map->len; i++) {\n if (map->buf[i].rule == rule) "
.ascii "return i;\n }\n return -1;\n}\n\nstatic void pcc_lr_me"
.ascii "mo_map__put(pcc_auxil_t auxil, pcc_lr_memo_map_t *map, pcc_r"
.ascii "ule_t rule, pcc_lr_answer_t *answer) {\n const int i = pc"
.ascii "c_lr_memo_map__index(auxil, map, rule);\n if (i >= 0) {\n"
.ascii " pcc_lr_answer__destroy(auxil, map->buf[i].answer);\n"
.ascii " map->buf[i].answer = answer;\n }\n else {\n "
.ascii " if (map->max <= 0) map->max = 1;\n while (map->m"
.ascii "ax <= map->len) map->max <<= 1;\n map->buf = (pcc_lr_"
.ascii "memo_t *)PCC_REALLOC(auxil, map->buf, map->max * sizeof(pcc_"
.ascii "lr_memo_t));\n map->buf[map->len].rule = rule;\n "
.ascii " map->buf[map->len].answer = answer;\n map->len++;\n"
.ascii " }\n}\n\nstatic pcc_lr_answer_t *pcc_lr_memo_map__get(pcc"
.ascii "_auxil_t auxil, pcc_lr_memo_map_t *map, pcc_rule_t rule) {\n"
.ascii " const int i = pcc_lr_memo_map__index(auxil, map, rule);\n"
.ascii " return (i >= 0) ? map->buf[i].answer : NULL;\n}\n\nstati"
.ascii "c void pcc_lr_memo_map__term(pcc_auxil_t auxil, pcc_lr_memo_"
.ascii "map_t *map) {\n int i;\n for (i = map->len - 1; i >= 0"
.ascii "; i--) pcc_lr_answer__destroy(auxil, map->buf[i].answer);\n "
.ascii " PCC_FREE(auxil, map->buf);\n}\n\nstatic pcc_lr_table_entr"
.ascii "y_t *pcc_lr_table_entry__create(pcc_auxil_t auxil) {\n pc"
.ascii "c_lr_table_entry_t *const entry = (pcc_lr_table_entry_t *)PC"
.ascii "C_MALLOC(auxil, sizeof(pcc_lr_table_entry_t));\n entry->h"
.ascii "ead = NULL;\n pcc_lr_memo_map__init(auxil, &entry->memos,"
.ascii " PCC_ARRAYSIZ"
.ascii "E);\n entry->hold_a = NULL;\n entry->hold_h = NULL;\n "
.ascii " return entry;\n}\n\nstatic void pcc_lr_table_entry__destr"
.ascii "oy(pcc_auxil_t auxil, pcc_lr_table_entry_t *entry) {\n if"
.ascii " (entry == NULL) return;\n pcc_lr_head__destroy(auxil, en"
.ascii "try->hold_h);\n pcc_lr_answer__destroy(auxil, entry->hold"
.ascii "_a);\n pcc_lr_memo_map__term(auxil, &entry->memos);\n "
.ascii "PCC_FREE(auxil, entry);\n}\n\nstatic void pcc_lr_table__init"
.ascii "(pcc_auxil_t auxil, pcc_lr_table_t *table, int max) {\n t"
.ascii "able->len = 0;\n table->max = max;\n table->buf = (pcc"
.ascii "_lr_table_entry_t **)PCC_MALLOC(auxil, table->max * sizeof(p"
.ascii "cc_lr_table_entry_t *));\n}\n\nstatic void pcc_lr_table__res"
.ascii "ize(pcc_auxil_t auxil, pcc_lr_table_t *table, int len) {\n "
.ascii " int i;\n for (i = table->len - 1; i >= len; i--) pcc_lr"
.ascii "_table_entry__destroy(auxil, table->buf[i]);\n if (table-"
.ascii ">max < len) {\n if (table->max <= 0) table->max = 1;\n"
.ascii " while (table->max < len) table->max <<= 1;\n "
.ascii "table->buf = (pcc_lr_table_entry_t **)PCC_REALLOC(auxil, tab"
.ascii "le->buf, table->max * sizeof(pcc_lr_table_entry_t *));\n "
.ascii "}\n for (i = table->len; i < len; i++) table->buf[i] = NU"
.ascii "LL;\n table->len = len;\n}\n\nstatic void pcc_lr_table__s"
.ascii "et_head(pcc_auxil_t auxil, pcc_lr_table_t *table, int index,"
.ascii " pcc_lr_head_t *head) {\n if (index >= table->len) pcc_lr"
.ascii "_table__resize(auxil, table, index + 1);\n if (table->buf"
.ascii "[index] == NULL) table->buf[index] = pcc_lr_table_entry__cre"
.ascii "ate(auxil);\n table->buf[index]->head = head;\n}\n\nstati"
.ascii "c void pcc_lr_table__hold_head(pcc_auxil_t auxil, pcc_lr_tab"
.ascii "le_t *table, int index, pcc_lr_head_t *head) {\n if (inde"
.ascii "x >= table->len) pcc_lr_table__resize(auxil, table, index + "
.ascii "1);\n if (table->buf[index] == NULL) table->buf[index] = "
.ascii "pcc_lr_table_entry__create(auxil);\n head->hold = table->"
.ascii "buf[index]->hold_h;\n table->buf[index]->hold_h = head;\n"
.ascii "}\n\nstatic void pcc_lr_table__set_answer(pcc_auxil_t auxil,"
.ascii " pcc_lr_table_t *table, int index, pcc_rule_t rule, pcc_lr_a"
.ascii "nswer_t *answer) {\n if (index >= table->len) pcc_lr_tabl"
.ascii "e__re"
.ascii "size(auxil, table, index + 1);\n if (table->buf[index] =="
.ascii " NULL) table->buf[index] = pcc_lr_table_entry__create(auxil)"
.ascii ";\n pcc_lr_memo_map__put(auxil, &table->buf[index]->memos"
.ascii ", rule, answer);\n}\n\nstatic void pcc_lr_table__hold_answer"
.ascii "(pcc_auxil_t auxil, pcc_lr_table_t *table, int index, pcc_lr"
.ascii "_answer_t *answer) {\n if (index >= table->len) pcc_lr_ta"
.ascii "ble__resize(auxil, table, index + 1);\n if (table->buf[in"
.ascii "dex] == NULL) table->buf[index] = pcc_lr_table_entry__create"
.ascii "(auxil);\n answer->hold = table->buf[index]->hold_a;\n "
.ascii " table->buf[index]->hold_a = answer;\n}\n\nstatic pcc_lr_hea"
.ascii "d_t *pcc_lr_table__get_head(pcc_auxil_t auxil, pcc_lr_table_"
.ascii "t *table, int index) {\n if (index >= table->len || table"
.ascii "->buf[index] == NULL) return NULL;\n return table->buf[in"
.ascii "dex]->head;\n}\n\nstatic pcc_lr_answer_t *pcc_lr_table__get_"
.ascii "answer(pcc_auxil_t auxil, pcc_lr_table_t *table, int index, "
.ascii "pcc_rule_t rule) {\n if (index >= table->len || table->bu"
.ascii "f[index] == NULL) return NULL;\n return pcc_lr_memo_map__"
.ascii "get(auxil, &table->buf[index]->memos, rule);\n}\n\nstatic vo"
.ascii "id pcc_lr_table__shift(pcc_auxil_t auxil, pcc_lr_table_t *ta"
.ascii "ble, int count) {\n int i;\n if (count > table->len) c"
.ascii "ount = table->len;\n for (i = 0; i < count; i++) pcc_lr_t"
.ascii "able_entry__destroy(auxil, table->buf[i]);\n memmove(tabl"
.ascii "e->buf, table->buf + count, (table->len - count) * sizeof(pc"
.ascii "c_lr_table_entry_t *));\n table->len -= count;\n}\n\nstat"
.ascii "ic void pcc_lr_table__term(pcc_auxil_t auxil, pcc_lr_table_t"
.ascii " *table) {\n int i;\n for (i = table->len - 1; i >= 0;"
.ascii " i--) pcc_lr_table_entry__destroy(auxil, table->buf[i]);\n "
.ascii " PCC_FREE(auxil, table->buf);\n}\n\nstatic pcc_lr_entry_t *"
.ascii "pcc_lr_entry__create(pcc_auxil_t auxil, pcc_rule_t rule) {\n"
.ascii " pcc_lr_entry_t *const lr = (pcc_lr_entry_t *)PCC_MALLOC("
.ascii "auxil, sizeof(pcc_lr_entry_t));\n lr->rule = rule;\n l"
.ascii "r->seed = NULL;\n lr->head = NULL;\n return lr;\n}\n\n"
.ascii "static void pcc_lr_entry__destroy(pcc_auxil_t auxil, pcc_lr_"
.ascii "entry_t *lr) {\n PCC_FREE(auxil, lr);\n}\n\nstatic void p"
.ascii "cc_lr_st"
.ascii "ack__init(pcc_auxil_t auxil, pcc_lr_stack_t *stack, int max)"
.ascii " {\n stack->len = 0;\n stack->max = max;\n stack->b"
.ascii "uf = (pcc_lr_entry_t **)PCC_MALLOC(auxil, stack->max * sizeo"
.ascii "f(pcc_lr_entry_t *));\n}\n\nstatic void pcc_lr_stack__push(p"
.ascii "cc_auxil_t auxil, pcc_lr_stack_t *stack, pcc_lr_entry_t *lr)"
.ascii " {\n if (stack->max <= 0) stack->max = 1;\n while (sta"
.ascii "ck->max <= stack->len) stack->max <<= 1;\n stack->buf = ("
.ascii "pcc_lr_entry_t **)PCC_REALLOC(auxil, stack->buf, stack->max "
.ascii "* sizeof(pcc_lr_entry_t *));\n stack->buf[sta"
.string "ck->len++] = lr;\n}\n\nstatic pcc_lr_entry_t *pcc_lr_stack__pop(pcc_auxil_t auxil, pcc_lr_stack_t *stack) {\n return stack->buf[--stack->len];\n}\n\nstatic void pcc_lr_stack__term(pcc_auxil_t auxil, pcc_lr_stack_t *stack) {\n PCC_FREE(auxil, stack->buf);\n}\n\n"
.align 3
.LC188:
.string "static %s_context_t *pcc_context__create(pcc_auxil_t auxil) {\n %s_context_t *const ctx = (%s_context_t *)PCC_MALLOC(auxil, sizeof(%s_context_t));\n"
.align 3
.LC189:
.string " ctx->pos = 0;\n pcc_char_array__init(auxil, &ctx->buffer, PCC_BUFFERSIZE);\n pcc_lr_table__init(auxil, &ctx->lrtable, PCC_BUFFERSIZE);\n pcc_lr_stack__init(auxil, &ctx->lrstack, PCC_ARRAYSIZE);\n ctx->auxil = auxil;\n return ctx;\n}\n\n"
.align 3
.LC190:
.string "static void pcc_context__destroy(%s_context_t *ctx) {\n"
.align 3
.LC191:
.string " if (ctx == NULL) return;\n pcc_lr_stack__term(ctx->auxil, &ctx->lrstack);\n pcc_lr_table__term(ctx->auxil, &ctx->lrtable);\n pcc_char_array__term(ctx->auxil, &ctx->buffer);\n PCC_FREE(ctx->auxil, ctx);\n}\n\n"
.align 3
.LC192:
.string "static int pcc_refill_buffer(%s_context_t *ctx, int num) {\n"
.align 3
.LC193:
.ascii " int n, c;\n n = ctx->buffer.len - ctx->po"
.string "s;\n if (n >= num) return n;\n while (ctx->buffer.len < ctx->pos + num) {\n c = PCC_GETCHAR(ctx->auxil);\n if (c == EOF) break;\n pcc_char_array__add(ctx->auxil, &ctx->buffer, (char)c);\n }\n return ctx->buffer.len - ctx->pos;\n}\n\n"
.align 3
.LC194:
.string "static void pcc_commit_buffer(%s_context_t *ctx) {\n"
.align 3
.LC195:
.string " memmove(ctx->buffer.buf, ctx->buffer.buf + ctx->pos, ctx->buffer.len - ctx->pos);\n ctx->buffer.len -= ctx->pos;\n pcc_lr_table__shift(ctx->auxil, &ctx->lrtable, ctx->pos);\n ctx->pos = 0;\n}\n\n"
.align 3
.LC196:
.string "static const char *pcc_get_capture_string(%s_context_t *ctx, const pcc_capture_t *capt) {\n"
.align 3
.LC197:
.string " if (capt->string == NULL)\n ((pcc_capture_t *)capt)->string =\n pcc_strndup_e(ctx->auxil, ctx->buffer.buf + capt->range.start, capt->range.end - capt->range.start);\n return capt->string;\n}\n\n"
.align 3
.LC198:
.string "static pcc_bool_t pcc_apply_rule(%s_context_t *ctx, pcc_rule_t rule, pcc_thunk_array_t *thunks, pcc_value_t *value) {\n"
.align 3
.LC199:
.ascii " static pcc_value_t null;\n pcc_thunk_chunk_t *c = NUL"
.ascii "L;\n const int p = ctx->pos;\n pcc_bool_t b = PCC_TRUE"
.ascii ";\n pcc_lr_answer_t *a = pcc_lr_table__get_answer(ctx->au"
.ascii "xil, &ctx->lrtable, p, rule);\n pcc_lr_head_t *h = pcc_lr"
.ascii "_table__get_head(ctx->auxil, &ctx->lrtable, p);\n if (h !"
.ascii "= NULL) {\n if (a == NULL && rule != h->rule && pcc_r"
.ascii "ule_set__index(ctx->auxil, &h->invol, rule) < 0) {\n "
.ascii " b = PCC_FALSE;\n c = NULL;\n }\n "
.ascii " else if (pcc_rule_set__remove(ctx->auxil, &h->eval, rule))"
.ascii " {\n b = PCC_FALSE;\n c = rule(ctx);\n"
.ascii " a = pcc_lr_answer__create(ctx->auxil, PCC_LR_ANS"
.ascii "WER_CHUNK, ctx->pos);\n a->data.chunk = c;\n "
.ascii " pcc_lr_table__hold_answer(ctx->auxil, &ctx->lrtable, "
.ascii "p, a);\n }\n }\n if (b) {\n if (a != NUL"
.ascii "L) {\n ctx->pos = a->pos;\n switch (a-"
.ascii ">type) {\n case PCC_LR_ANSWER_LR:\n "
.ascii " if (a->data.lr->head == NULL) {\n a->da"
.ascii "ta.lr->head = pcc_lr_head__create(ctx->auxil, rule);\n "
.ascii " pcc_lr_table__hold_head(ctx->auxil, &ctx->lrta"
.ascii "ble, p, a->data.lr->head);\n }\n "
.ascii " {\n int i;\n for (i"
.ascii " = ctx->lrstack.len - 1; i >= 0; i--) {\n "
.ascii " if (ctx->lrstack.buf[i]->head == a->data.lr->head) brea"
.ascii "k;\n ctx->lrstack.buf[i]->head = a->d"
.ascii "ata.lr->head;\n pcc_rule_set__add(ctx"
.ascii "->auxil, &a->data.lr->head->invol, ctx->lrstack.buf[i]->rule"
.ascii ");\n }\n }\n "
.ascii " c = a->data.lr->seed;\n break;\n "
.ascii " case PCC_LR_ANSWER_CHUNK:\n c = a->data.chun"
.ascii "k;\n break;\n default: /* unknown "
.ascii "*/\n break;\n }\n }\n "
.ascii " else {\n pcc_lr_entry_t *const e = pcc_lr_entry"
.ascii "__create(ctx->auxil, rule);\n pcc_lr_stack__push("
.ascii "ctx->auxil, &ctx->lrstack, e);\n a = pcc_lr_answe"
.ascii "r__creat"
.ascii "e(ctx->auxil, PCC_LR_ANSWER_LR, p);\n a->data.lr "
.ascii "= e;\n pcc_lr_table__set_answer(ctx->auxil, &ctx-"
.ascii ">lrtable, p, rule, a);\n c = rule(ctx);\n "
.ascii " pcc_lr_stack__pop(ctx->auxil, &ctx->lrstack);\n "
.ascii " a->pos = ctx->pos;\n if (e->head == NULL) {\n "
.ascii " pcc_lr_answer__set_chunk(ctx->auxil, a, c);\n"
.ascii " }\n else {\n e->seed ="
.ascii " c;\n h = a->data.lr->head;\n "
.ascii "if (h->rule != rule) {\n c = a->data.lr->"
.ascii "seed;\n a = pcc_lr_answer__create(ctx->au"
.ascii "xil, PCC_LR_ANSWER_CHUNK, ctx->pos);\n a-"
.ascii ">data.chunk = c;\n pcc_lr_table__hold_ans"
.ascii "wer(ctx->auxil, &ctx->lrtable, p, a);\n }\n "
.ascii " else {\n pcc_lr_answer__set"
.ascii "_chunk(ctx->auxil, a, a->data.lr->seed);\n "
.ascii " if (a->data.chunk == NULL) {\n c = "
.ascii "NULL;\n }\n else {\n "
.ascii " pcc_lr_table__set_head(ctx->auxil, &ct"
.ascii "x->lrtable, p, h);\n for (;;) {\n "
.ascii " ctx->pos = p;\n "
.ascii " pcc_rule_set__copy(ctx->auxil, &h->eval, &h->invol);\n"
.ascii " c = rule(ctx);\n "
.ascii " if (c == NULL || ctx->pos <= a->pos) break;\n "
.ascii " pcc_lr_answer__set_chunk(ctx->auxil"
.ascii ", a, c);\n a->pos = ctx->pos;\n "
.ascii " }\n pcc_thunk_c"
.ascii "hunk__destroy(ctx->auxil, c);\n pcc_l"
.ascii "r_table__set_head(ctx->auxil, &ctx->lrtable, p, NULL);\n "
.ascii " ctx->pos = a->pos;\n "
.ascii " c = a->data.chunk;\n }\n "
.ascii " }\n }\n }\n }\n if (c == NULL) re"
.ascii "turn PCC_FALSE;\n if (value == NULL) value = &null;\n "
.ascii "memset(value, 0, sizeof(pcc_value_t)); /* in case */\n pc"
.ascii "c_thunk_array__add(ctx->auxil, thunks, pcc_thunk__create_nod"
.ascii "e(ct"
.string "x->auxil, &c->thunks, value));\n return PCC_TRUE;\n}\n\n"
.align 3
.LC200:
.string "static void pcc_do_action(%s_context_t *ctx, const pcc_thunk_array_t *thunks, pcc_value_t *value) {\n"
.align 3
.LC201:
.ascii " int i;\n for (i = 0; i < thunks->len; i++) {\n "
.ascii " pcc_thunk_t *const thunk = thunks->buf[i];\n switch "
.ascii "(thunk->type) {\n case PCC_THUNK_LEAF:\n t"
.ascii "hunk"
.string "->data.leaf.action(ctx, thunk, value);\n break;\n case PCC_THUNK_NODE:\n pcc_do_action(ctx, thunk->data.node.thunks, thunk->data.node.value);\n break;\n default: /* unknown */\n break;\n }\n }\n}\n\n"
.align 3
.LC202:
.string "static void pcc_action_%s_%d(%s_context_t *__pcc_ctx, pcc_thunk_t *__pcc_in, pcc_value_t *__pcc_out) {\n"
.align 3
.LC203:
.string "#define auxil (__pcc_ctx->auxil)\n#define __ (*__pcc_out)\n"
.align 3
.LC204:
.string "v->buf[k]->type == NODE_REFERENCE"
.align 3
.LC205:
.string "#define %s (*__pcc_in->data.leaf.values.buf[%d])\n"
.align 3
.LC206:
.string "#define _0 pcc_get_capture_string(__pcc_ctx, &__pcc_in->data.leaf.capt0)\n#define _0s ((const int)__pcc_in->data.leaf.capt0.range.start)\n#define _0e ((const int)__pcc_in->data.leaf.capt0.range.end)\n"
.align 3
.LC207:
.string "c->buf[k]->type == NODE_CAPTURE"
.align 3
.LC208:
.string "#define _%d pcc_get_capture_string(__pcc_ctx, __pcc_in->data.leaf.capts.buf[%d])\n"
.align 3
.LC209:
.string "#define _%ds __pcc_in->data.leaf.capts.buf[%d]->range.start\n"
.align 3
.LC210:
.string "#define _%de __pcc_in->data.leaf.capts.buf[%d]->range.end\n"
.align 3
.LC211:
.string "#undef _%de\n"
.align 3
.LC212:
.string "#undef _%ds\n"
.align 3
.LC213:
.string "#undef _%d\n"
.align 3
.LC214:
.string "#undef _0e\n#undef _0s\n#undef _0\n"
.align 3
.LC215:
.string "#undef %s\n"
.align 3
.LC216:
.string "#undef __\n#undef auxil\n"
.align 3
.LC217:
.string "}\n\n"
.align 3
.LC218:
.string "static pcc_thunk_chunk_t *pcc_evaluate_rule_%s(%s_context_t *ctx);\n"
.align 3
.LC219:
.string "\n"
.align 3
.LC220:
.string "static pcc_thunk_chunk_t *pcc_evaluate_rule_%s(%s_context_t *ctx) {\n"
.align 3
.LC221:
.string " pcc_thunk_chunk_t *const chunk = pcc_thunk_chunk__create(ctx->auxil);\n chunk->pos = ctx->pos;\n"
.align 3
.LC222:
.string " pcc_value_table__resize(ctx->auxil, &chunk->values, %d);\n"
.align 3
.LC223:
.string " pcc_capture_table__resize(ctx->auxil, &chunk->capts, %d);\n"
.align 3
.LC224:
.string " return chunk;\n"
.align 3
.LC225:
.string "L0000:;\n pcc_thunk_chunk__destroy(ctx->auxil, chunk);\n return NULL;\n"
.align 3
.LC226:
.string "%s_context_t *%s_create(%s%sauxil) {\n"
.align 3
.LC227:
.string " return pcc_context__create(auxil);\n}\n\n"
.align 3
.LC228:
.string "int %s_parse(%s_context_t *ctx, %s%s*ret) {\n"
.align 3
.LC229:
.string " pcc_thunk_array_t thunks;\n pcc_thunk_array__init(ctx->auxil, &thunks, PCC_ARRAYSIZE);\n"
.align 3
.LC230:
.string " if (pcc_apply_rule(ctx, pcc_evaluate_rule_%s, &thunks, ret))\n"
.align 3
.LC231:
.string " pcc_do_action(ctx, &thunks, ret);\n else\n PCC_ERROR(ctx->auxil);\n pcc_commit_buffer(ctx);\n"
.align 3
.LC232:
.string " pcc_thunk_array__term(ctx->auxil, &thunks);\n return pcc_refill_buffer(ctx, 1) >= 1;\n}\n\n"
.align 3
.LC233:
.string "void %s_destroy(%s_context_t *ctx) {\n"
.align 3
.LC234:
.string " pcc_context__destroy(ctx);\n}\n"
.align 3
.LC235:
.string "#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n"
.align 3
.LC236:
.string "typedef struct %s_context_tag %s_context_t;\n\n"
.align 3
.LC237:
.string "%s_context_t *%s_create(%s%sauxil);\n"
.align 3
.LC238:
.string "int %s_parse(%s_context_t *ctx, %s%s*ret);\n"
.align 3
.LC239:
.string "void %s_destroy(%s_context_t *ctx);\n"
.align 3
.LC240:
.string "\n#ifdef __cplusplus\n}\n#endif\n"
.align 3
.LC241:
.string "\n#endif /* !PCC_INCLUDED_%s */\n"
.text
.align 2
.type generate, %function
generate:
.LFB107:
.cfi_startproc
stp x29, x30, [sp, -192]!
.cfi_def_cfa_offset 192
.cfi_offset 29, -192
.cfi_offset 30, -184
mov x29, sp
stp x19, x20, [sp, 16]
str x21, [sp, 32]
.cfi_offset 19, -176
.cfi_offset 20, -168
.cfi_offset 21, -160
str x0, [sp, 56]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 184]
mov x1, 0
ldr x0, [sp, 56]
bl get_value_type
str x0, [sp, 128]
ldr x0, [sp, 56]
bl get_auxil_type
str x0, [sp, 136]
ldr x0, [sp, 128]
bl is_pointer_type
str w0, [sp, 88]
ldr x0, [sp, 136]
bl is_pointer_type
str w0, [sp, 92]
ldr x0, [sp, 56]
ldr x0, [x0, 32]
str x0, [sp, 144]
ldr x1, [sp, 144]
adrp x0, .LC177
add x0, x0, :lo12:.LC177
bl fputs_e
ldr w0, [sp, 88]
cmp w0, 0
beq .L868
adrp x0, .LC129
add x0, x0, :lo12:.LC129
b .L869
.L868:
adrp x0, .LC178
add x0, x0, :lo12:.LC178
.L869:
mov x3, x0
ldr x2, [sp, 128]
adrp x0, .LC179
add x1, x0, :lo12:.LC179
ldr x0, [sp, 144]
bl fprintf_e
ldr w0, [sp, 92]
cmp w0, 0
beq .L870
adrp x0, .LC129
add x0, x0, :lo12:.LC129
b .L871
.L870:
adrp x0, .LC178
add x0, x0, :lo12:.LC178
.L871:
mov x3, x0
ldr x2, [sp, 136]
adrp x0, .LC180
add x1, x0, :lo12:.LC180
ldr x0, [sp, 144]
bl fprintf_e
ldr x1, [sp, 144]
adrp x0, .LC181
add x0, x0, :lo12:.LC181
bl fputs_e
ldr x0, [sp, 56]
bl get_prefix
mov x2, x0
adrp x0, .LC182
add x1, x0, :lo12:.LC182
ldr x0, [sp, 144]
bl fprintf_e
ldr x1, [sp, 144]
adrp x0, .LC183
add x0, x0, :lo12:.LC183
bl fputs_e
ldr x0, [sp, 56]
bl get_prefix
mov x2, x0
adrp x0, .LC184
add x1, x0, :lo12:.LC184
ldr x0, [sp, 144]
bl fprintf_e
ldr x1, [sp, 144]
adrp x0, .LC185
add x0, x0, :lo12:.LC185
bl fputs_e
ldr x0, [sp, 56]
bl get_prefix
mov x2, x0
adrp x0, .LC186
add x1, x0, :lo12:.LC186
ldr x0, [sp, 144]
bl fprintf_e
ldr x1, [sp, 144]
adrp x0, .LC187
add x0, x0, :lo12:.LC187
bl fputs_e
ldr x0, [sp, 56]
bl get_prefix
mov x19, x0
ldr x0, [sp, 56]
bl get_prefix
mov x20, x0
ldr x0, [sp, 56]
bl get_prefix
mov x21, x0
ldr x0, [sp, 56]
bl get_prefix
mov x5, x0
mov x4, x21
mov x3, x20
mov x2, x19
adrp x0, .LC188
add x1, x0, :lo12:.LC188
ldr x0, [sp, 144]
bl fprintf_e
ldr x1, [sp, 144]
adrp x0, .LC189
add x0, x0, :lo12:.LC189
bl fputs_e
ldr x0, [sp, 56]
bl get_prefix
mov x2, x0
adrp x0, .LC190
add x1, x0, :lo12:.LC190
ldr x0, [sp, 144]
bl fprintf_e
ldr x1, [sp, 144]
adrp x0, .LC191
add x0, x0, :lo12:.LC191
bl fputs_e
ldr x0, [sp, 56]
bl get_prefix
mov x2, x0
adrp x0, .LC192
add x1, x0, :lo12:.LC192
ldr x0, [sp, 144]
bl fprintf_e
ldr x1, [sp, 144]
adrp x0, .LC193
add x0, x0, :lo12:.LC193
bl fputs_e
ldr x0, [sp, 56]
bl get_prefix
mov x2, x0
adrp x0, .LC194
add x1, x0, :lo12:.LC194
ldr x0, [sp, 144]
bl fprintf_e
ldr x1, [sp, 144]
adrp x0, .LC195
add x0, x0, :lo12:.LC195
bl fputs_e
ldr x0, [sp, 56]
bl get_prefix
mov x2, x0
adrp x0, .LC196
add x1, x0, :lo12:.LC196
ldr x0, [sp, 144]
bl fprintf_e
ldr x1, [sp, 144]
adrp x0, .LC197
add x0, x0, :lo12:.LC197
bl fputs_e
ldr x0, [sp, 56]
bl get_prefix
mov x2, x0
adrp x0, .LC198
add x1, x0, :lo12:.LC198
ldr x0, [sp, 144]
bl fprintf_e
ldr x1, [sp, 144]
adrp x0, .LC199
add x0, x0, :lo12:.LC199
bl fputs_e
ldr x0, [sp, 56]
bl get_prefix
mov x2, x0
adrp x0, .LC200
add x1, x0, :lo12:.LC200
ldr x0, [sp, 144]
bl fprintf_e
ldr x1, [sp, 144]
adrp x0, .LC201
add x0, x0, :lo12:.LC201
bl fputs_e
str wzr, [sp, 68]
b .L872
.L891:
ldr x0, [sp, 56]
ldr x1, [x0, 120]
ldrsw x0, [sp, 68]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
add x0, x0, 8
str x0, [sp, 152]
str wzr, [sp, 72]
b .L873
.L890:
ldr x0, [sp, 152]
ldr x1, [x0, 56]
ldrsw x0, [sp, 72]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0]
cmp w0, 10
beq .L874
cmp w0, 11
beq .L875
b .L913
.L874:
ldr x0, [sp, 152]
ldr x1, [x0, 56]
ldrsw x0, [sp, 72]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x0, [x0, 8]
str x0, [sp, 104]
ldr x0, [sp, 152]
ldr x1, [x0, 56]
ldrsw x0, [sp, 72]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0, 16]
str w0, [sp, 80]
ldr x0, [sp, 152]
ldr x1, [x0, 56]
ldrsw x0, [sp, 72]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
add x0, x0, 24
str x0, [sp, 112]
ldr x0, [sp, 152]
ldr x1, [x0, 56]
ldrsw x0, [sp, 72]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
add x0, x0, 40
str x0, [sp, 120]
b .L877
.L875:
ldr x0, [sp, 152]
ldr x1, [x0, 56]
ldrsw x0, [sp, 72]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x0, [x0, 16]
str x0, [sp, 104]
ldr x0, [sp, 152]
ldr x1, [x0, 56]
ldrsw x0, [sp, 72]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0, 24]
str w0, [sp, 80]
ldr x0, [sp, 152]
ldr x1, [x0, 56]
ldrsw x0, [sp, 72]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
add x0, x0, 32
str x0, [sp, 112]
ldr x0, [sp, 152]
ldr x1, [x0, 56]
ldrsw x0, [sp, 72]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
add x0, x0, 48
str x0, [sp, 120]
b .L877
.L913:
mov w1, 3692
adrp x0, .LC29
add x0, x0, :lo12:.LC29
bl print_error
mov w0, -1
bl exit
.L877:
ldr x0, [sp, 152]
ldr x19, [x0]
ldr x0, [sp, 56]
bl get_prefix
mov x4, x0
ldr w3, [sp, 80]
mov x2, x19
adrp x0, .LC202
add x1, x0, :lo12:.LC202
ldr x0, [sp, 144]
bl fprintf_e
ldr x1, [sp, 144]
adrp x0, .LC203
add x0, x0, :lo12:.LC203
bl fputs_e
str wzr, [sp, 76]
b .L878
.L880:
ldr x0, [sp, 112]
ldr x1, [x0]
ldrsw x0, [sp, 76]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0]
cmp w0, 1
beq .L879
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 3706
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC204
add x0, x0, :lo12:.LC204
bl __assert_fail
.L879:
ldr x0, [sp, 112]
ldr x1, [x0]
ldrsw x0, [sp, 76]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x2, [x0, 8]
ldr x0, [sp, 112]
ldr x1, [x0]
ldrsw x0, [sp, 76]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0, 16]
mov w3, w0
adrp x0, .LC205
add x1, x0, :lo12:.LC205
ldr x0, [sp, 144]
bl fprintf_e
ldr w0, [sp, 76]
add w0, w0, 1
str w0, [sp, 76]
.L878:
ldr x0, [sp, 112]
ldr w0, [x0, 12]
ldr w1, [sp, 76]
cmp w1, w0
blt .L880
ldr x1, [sp, 144]
adrp x0, .LC206
add x0, x0, :lo12:.LC206
bl fputs_e
str wzr, [sp, 76]
b .L881
.L883:
ldr x0, [sp, 120]
ldr x1, [x0]
ldrsw x0, [sp, 76]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0]
cmp w0, 8
beq .L882
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 3721
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC207
add x0, x0, :lo12:.LC207
bl __assert_fail
.L882:
ldr x0, [sp, 120]
ldr x1, [x0]
ldrsw x0, [sp, 76]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0, 16]
add w2, w0, 1
ldr x0, [sp, 120]
ldr x1, [x0]
ldrsw x0, [sp, 76]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0, 16]
mov w3, w0
adrp x0, .LC208
add x1, x0, :lo12:.LC208
ldr x0, [sp, 144]
bl fprintf_e
ldr x0, [sp, 120]
ldr x1, [x0]
ldrsw x0, [sp, 76]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0, 16]
add w2, w0, 1
ldr x0, [sp, 120]
ldr x1, [x0]
ldrsw x0, [sp, 76]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0, 16]
mov w3, w0
adrp x0, .LC209
add x1, x0, :lo12:.LC209
ldr x0, [sp, 144]
bl fprintf_e
ldr x0, [sp, 120]
ldr x1, [x0]
ldrsw x0, [sp, 76]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0, 16]
add w2, w0, 1
ldr x0, [sp, 120]
ldr x1, [x0]
ldrsw x0, [sp, 76]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0, 16]
mov w3, w0
adrp x0, .LC210
add x1, x0, :lo12:.LC210
ldr x0, [sp, 144]
bl fprintf_e
ldr w0, [sp, 76]
add w0, w0, 1
str w0, [sp, 76]
.L881:
ldr x0, [sp, 120]
ldr w0, [x0, 12]
ldr w1, [sp, 76]
cmp w1, w0
blt .L883
ldr x0, [sp, 104]
bl strlen
mov x3, 4
mov x2, x0
ldr x1, [sp, 104]
ldr x0, [sp, 144]
bl write_code_block
ldr x0, [sp, 120]
ldr w0, [x0, 12]
sub w0, w0, #1
str w0, [sp, 76]
b .L884
.L886:
ldr x0, [sp, 120]
ldr x1, [x0]
ldrsw x0, [sp, 76]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0]
cmp w0, 8
beq .L885
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 3743
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC207
add x0, x0, :lo12:.LC207
bl __assert_fail
.L885:
ldr x0, [sp, 120]
ldr x1, [x0]
ldrsw x0, [sp, 76]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0, 16]
add w0, w0, 1
mov w2, w0
adrp x0, .LC211
add x1, x0, :lo12:.LC211
ldr x0, [sp, 144]
bl fprintf_e
ldr x0, [sp, 120]
ldr x1, [x0]
ldrsw x0, [sp, 76]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0, 16]
add w0, w0, 1
mov w2, w0
adrp x0, .LC212
add x1, x0, :lo12:.LC212
ldr x0, [sp, 144]
bl fprintf_e
ldr x0, [sp, 120]
ldr x1, [x0]
ldrsw x0, [sp, 76]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0, 16]
add w0, w0, 1
mov w2, w0
adrp x0, .LC213
add x1, x0, :lo12:.LC213
ldr x0, [sp, 144]
bl fprintf_e
ldr w0, [sp, 76]
sub w0, w0, #1
str w0, [sp, 76]
.L884:
ldr w0, [sp, 76]
cmp w0, 0
bge .L886
ldr x1, [sp, 144]
adrp x0, .LC214
add x0, x0, :lo12:.LC214
bl fputs_e
ldr x0, [sp, 112]
ldr w0, [x0, 12]
sub w0, w0, #1
str w0, [sp, 76]
b .L887
.L889:
ldr x0, [sp, 112]
ldr x1, [x0]
ldrsw x0, [sp, 76]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0]
cmp w0, 1
beq .L888
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 3767
adrp x0, .LC23
add x1, x0, :lo12:.LC23
adrp x0, .LC204
add x0, x0, :lo12:.LC204
bl __assert_fail
.L888:
ldr x0, [sp, 112]
ldr x1, [x0]
ldrsw x0, [sp, 76]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x0, [x0, 8]
mov x2, x0
adrp x0, .LC215
add x1, x0, :lo12:.LC215
ldr x0, [sp, 144]
bl fprintf_e
ldr w0, [sp, 76]
sub w0, w0, #1
str w0, [sp, 76]
.L887:
ldr w0, [sp, 76]
cmp w0, 0
bge .L889
ldr x1, [sp, 144]
adrp x0, .LC216
add x0, x0, :lo12:.LC216
bl fputs_e
ldr x1, [sp, 144]
adrp x0, .LC217
add x0, x0, :lo12:.LC217
bl fputs_e
ldr w0, [sp, 72]
add w0, w0, 1
str w0, [sp, 72]
.L873:
ldr x0, [sp, 152]
ldr w0, [x0, 68]
ldr w1, [sp, 72]
cmp w1, w0
blt .L890
ldr w0, [sp, 68]
add w0, w0, 1
str w0, [sp, 68]
.L872:
ldr x0, [sp, 56]
ldr w0, [x0, 132]
ldr w1, [sp, 68]
cmp w1, w0
blt .L891
str wzr, [sp, 84]
b .L892
.L893:
ldr x0, [sp, 56]
ldr x1, [x0, 120]
ldrsw x0, [sp, 84]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x19, [x0, 8]
ldr x0, [sp, 56]
bl get_prefix
mov x3, x0
mov x2, x19
adrp x0, .LC218
add x1, x0, :lo12:.LC218
ldr x0, [sp, 144]
bl fprintf_e
ldr w0, [sp, 84]
add w0, w0, 1
str w0, [sp, 84]
.L892:
ldr x0, [sp, 56]
ldr w0, [x0, 132]
ldr w1, [sp, 84]
cmp w1, w0
blt .L893
ldr x1, [sp, 144]
adrp x0, .LC219
add x0, x0, :lo12:.LC219
bl fputs_e
str wzr, [sp, 84]
b .L894
.L896:
ldr x0, [sp, 144]
str x0, [sp, 160]
ldr x0, [sp, 56]
ldr x1, [x0, 120]
ldrsw x0, [sp, 84]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
str x0, [sp, 168]
str wzr, [sp, 176]
ldr x0, [sp, 56]
ldr x1, [x0, 120]
ldrsw x0, [sp, 84]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x19, [x0, 8]
ldr x0, [sp, 56]
bl get_prefix
mov x3, x0
mov x2, x19
adrp x0, .LC220
add x1, x0, :lo12:.LC220
ldr x0, [sp, 144]
bl fprintf_e
ldr x1, [sp, 144]
adrp x0, .LC221
add x0, x0, :lo12:.LC221
bl fputs_e
ldr x0, [sp, 56]
ldr x1, [x0, 120]
ldrsw x0, [sp, 84]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0, 44]
mov w2, w0
adrp x0, .LC222
add x1, x0, :lo12:.LC222
ldr x0, [sp, 144]
bl fprintf_e
ldr x0, [sp, 56]
ldr x1, [x0, 120]
ldrsw x0, [sp, 84]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr w0, [x0, 60]
mov w2, w0
adrp x0, .LC223
add x1, x0, :lo12:.LC223
ldr x0, [sp, 144]
bl fprintf_e
ldr x0, [sp, 56]
ldr x1, [x0, 120]
ldrsw x0, [sp, 84]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x1, [x0, 16]
add x0, sp, 160
mov w4, 0
mov x3, 4
mov w2, 0
bl generate_code
str w0, [sp, 100]
ldr x1, [sp, 144]
adrp x0, .LC224
add x0, x0, :lo12:.LC224
bl fputs_e
ldr w0, [sp, 100]
cmp w0, 1
beq .L895
ldr x1, [sp, 144]
adrp x0, .LC225
add x0, x0, :lo12:.LC225
bl fputs_e
.L895:
ldr x1, [sp, 144]
adrp x0, .LC217
add x0, x0, :lo12:.LC217
bl fputs_e
ldr w0, [sp, 84]
add w0, w0, 1
str w0, [sp, 84]
.L894:
ldr x0, [sp, 56]
ldr w0, [x0, 132]
ldr w1, [sp, 84]
cmp w1, w0
blt .L896
ldr x0, [sp, 56]
bl get_prefix
mov x19, x0
ldr x0, [sp, 56]
bl get_prefix
mov x1, x0
ldr w0, [sp, 92]
cmp w0, 0
beq .L897
adrp x0, .LC129
add x0, x0, :lo12:.LC129
b .L898
.L897:
adrp x0, .LC178
add x0, x0, :lo12:.LC178
.L898:
mov x5, x0
ldr x4, [sp, 136]
mov x3, x1
mov x2, x19
adrp x0, .LC226
add x1, x0, :lo12:.LC226
ldr x0, [sp, 144]
bl fprintf_e
ldr x1, [sp, 144]
adrp x0, .LC227
add x0, x0, :lo12:.LC227
bl fputs_e
ldr x0, [sp, 56]
bl get_prefix
mov x19, x0
ldr x0, [sp, 56]
bl get_prefix
mov x1, x0
ldr w0, [sp, 88]
cmp w0, 0
beq .L899
adrp x0, .LC129
add x0, x0, :lo12:.LC129
b .L900
.L899:
adrp x0, .LC178
add x0, x0, :lo12:.LC178
.L900:
mov x5, x0
ldr x4, [sp, 128]
mov x3, x1
mov x2, x19
adrp x0, .LC228
add x1, x0, :lo12:.LC228
ldr x0, [sp, 144]
bl fprintf_e
ldr x1, [sp, 144]
adrp x0, .LC229
add x0, x0, :lo12:.LC229
bl fputs_e
ldr x0, [sp, 56]
ldr w0, [x0, 132]
cmp w0, 0
ble .L901
ldr x0, [sp, 56]
ldr x0, [x0, 120]
ldr x0, [x0]
ldr x0, [x0, 8]
mov x2, x0
adrp x0, .LC230
add x1, x0, :lo12:.LC230
ldr x0, [sp, 144]
bl fprintf_e
ldr x1, [sp, 144]
adrp x0, .LC231
add x0, x0, :lo12:.LC231
bl fputs_e
.L901:
ldr x1, [sp, 144]
adrp x0, .LC232
add x0, x0, :lo12:.LC232
bl fputs_e
ldr x0, [sp, 56]
bl get_prefix
mov x19, x0
ldr x0, [sp, 56]
bl get_prefix
mov x3, x0
mov x2, x19
adrp x0, .LC233
add x1, x0, :lo12:.LC233
ldr x0, [sp, 144]
bl fprintf_e
ldr x1, [sp, 144]
adrp x0, .LC234
add x0, x0, :lo12:.LC234
bl fputs_e
ldr x0, [sp, 56]
ldr x0, [x0, 40]
mov x1, x0
adrp x0, .LC235
add x0, x0, :lo12:.LC235
bl fputs_e
ldr x0, [sp, 56]
ldr x19, [x0, 40]
ldr x0, [sp, 56]
bl get_prefix
mov x20, x0
ldr x0, [sp, 56]
bl get_prefix
mov x3, x0
mov x2, x20
adrp x0, .LC236
add x1, x0, :lo12:.LC236
mov x0, x19
bl fprintf_e
ldr x0, [sp, 56]
ldr x19, [x0, 40]
ldr x0, [sp, 56]
bl get_prefix
mov x20, x0
ldr x0, [sp, 56]
bl get_prefix
mov x1, x0
ldr w0, [sp, 92]
cmp w0, 0
beq .L902
adrp x0, .LC129
add x0, x0, :lo12:.LC129
b .L903
.L902:
adrp x0, .LC178
add x0, x0, :lo12:.LC178
.L903:
mov x5, x0
ldr x4, [sp, 136]
mov x3, x1
mov x2, x20
adrp x0, .LC237
add x1, x0, :lo12:.LC237
mov x0, x19
bl fprintf_e
ldr x0, [sp, 56]
ldr x19, [x0, 40]
ldr x0, [sp, 56]
bl get_prefix
mov x20, x0
ldr x0, [sp, 56]
bl get_prefix
mov x1, x0
ldr w0, [sp, 88]
cmp w0, 0
beq .L904
adrp x0, .LC129
add x0, x0, :lo12:.LC129
b .L905
.L904:
adrp x0, .LC178
add x0, x0, :lo12:.LC178
.L905:
mov x5, x0
ldr x4, [sp, 128]
mov x3, x1
mov x2, x20
adrp x0, .LC238
add x1, x0, :lo12:.LC238
mov x0, x19
bl fprintf_e
ldr x0, [sp, 56]
ldr x19, [x0, 40]
ldr x0, [sp, 56]
bl get_prefix
mov x20, x0
ldr x0, [sp, 56]
bl get_prefix
mov x3, x0
mov x2, x20
adrp x0, .LC239
add x1, x0, :lo12:.LC239
mov x0, x19
bl fprintf_e
ldr x0, [sp, 56]
ldr x0, [x0, 40]
mov x1, x0
adrp x0, .LC240
add x0, x0, :lo12:.LC240
bl fputs_e
ldr x0, [sp, 56]
ldr x3, [x0, 40]
ldr x0, [sp, 56]
ldr x0, [x0, 48]
mov x2, x0
adrp x0, .LC241
add x1, x0, :lo12:.LC241
mov x0, x3
bl fprintf_e
ldr x0, [sp, 56]
bl match_eol
ldr x0, [sp, 56]
bl match_eof
cmp w0, 0
bne .L906
ldr x1, [sp, 144]
mov w0, 10
bl fputc_e
.L906:
ldr x0, [sp, 56]
bl commit_buffer
b .L907
.L910:
ldr x0, [sp, 56]
ldr x1, [x0, 104]
ldr x0, [sp, 56]
ldr w0, [x0, 116]
sxtw x0, w0
sub x0, x0, #1
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 13
bne .L908
ldr x0, [sp, 56]
ldr w0, [x0, 116]
sub w0, w0, #1
b .L909
.L908:
ldr x0, [sp, 56]
ldr w0, [x0, 116]
.L909:
str w0, [sp, 96]
ldr x0, [sp, 56]
ldr x0, [x0, 104]
ldrsw x1, [sp, 96]
mov x2, x1
mov x1, x0
ldr x0, [sp, 144]
bl write_text
ldr x0, [sp, 56]
ldr w1, [sp, 96]
str w1, [x0, 96]
ldr x0, [sp, 56]
bl commit_buffer
.L907:
ldr x0, [sp, 56]
ldr w0, [x0, 112]
mov w1, w0
ldr x0, [sp, 56]
bl refill_buffer
cmp w0, 0
bgt .L910
ldr x0, [sp, 56]
ldr w0, [x0, 84]
cmp w0, 0
cset w0, eq
and w0, w0, 255
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 184]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L912
bl __stack_chk_fail
.L912:
mov w0, w1
ldp x19, x20, [sp, 16]
ldr x21, [sp, 32]
ldp x29, x30, [sp], 192
.cfi_restore 30
.cfi_restore 29
.cfi_restore 21
.cfi_restore 19
.cfi_restore 20
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE107:
.size generate, .-generate
.section .rodata
.align 3
.LC242:
.string "%s version %s\n"
.align 3
.LC243:
.string "Copyright (c) 2014, 2019, 2020 Arihiro Yoshida. All rights reserved.\n"
.text
.align 2
.type print_version, %function
print_version:
.LFB108:
.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, g_cmdname
add x0, x0, :lo12:g_cmdname
ldr x1, [x0]
adrp x0, .LC97
add x3, x0, :lo12:.LC97
mov x2, x1
adrp x0, .LC242
add x1, x0, :lo12:.LC242
ldr x0, [sp, 24]
bl fprintf
ldr x3, [sp, 24]
mov x2, 69
mov x1, 1
adrp x0, .LC243
add x0, x0, :lo12:.LC243
bl fwrite
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE108:
.size print_version, .-print_version
.section .rodata
.align 3
.LC244:
.string "Usage: %s [OPTIONS] [FILE]\n"
.align 3
.LC245:
.string "Generates a packrat parser for C.\n"
.align 3
.LC246:
.string " -o BASENAME specify a base name of output source and header files\n"
.align 3
.LC247:
.string " -d, --debug with debug information\n"
.align 3
.LC248:
.string " -h, --help print this help message and exit\n"
.align 3
.LC249:
.string " -v, --version print the version and exit\n"
.text
.align 2
.type print_usage, %function
print_usage:
.LFB109:
.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, g_cmdname
add x0, x0, :lo12:g_cmdname
ldr x0, [x0]
mov x2, x0
adrp x0, .LC244
add x1, x0, :lo12:.LC244
ldr x0, [sp, 24]
bl fprintf
ldr x3, [sp, 24]
mov x2, 34
mov x1, 1
adrp x0, .LC245
add x0, x0, :lo12:.LC245
bl fwrite
ldr x1, [sp, 24]
mov w0, 10
bl fputc
ldr x3, [sp, 24]
mov x2, 71
mov x1, 1
adrp x0, .LC246
add x0, x0, :lo12:.LC246
bl fwrite
ldr x3, [sp, 24]
mov x2, 40
mov x1, 1
adrp x0, .LC247
add x0, x0, :lo12:.LC247
bl fwrite
ldr x3, [sp, 24]
mov x2, 50
mov x1, 1
adrp x0, .LC248
add x0, x0, :lo12:.LC248
bl fwrite
ldr x3, [sp, 24]
mov x2, 44
mov x1, 1
adrp x0, .LC249
add x0, x0, :lo12:.LC249
bl fwrite
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE109:
.size print_usage, .-print_usage
.section .rodata
.align 3
.LC250:
.string "--"
.align 3
.LC251:
.string "Output base name missing\n"
.align 3
.LC252:
.string "Extra output base name '%s'\n"
.align 3
.LC253:
.string "-d"
.align 3
.LC254:
.string "--debug"
.align 3
.LC255:
.string "-h"
.align 3
.LC256:
.string "--help"
.align 3
.LC257:
.string "-v"
.align 3
.LC258:
.string "--version"
.align 3
.LC259:
.string "Invalid option '%s'\n"
.align 3
.LC260:
.string "Multiple input files\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB110:
.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]
str xzr, [sp, 80]
str xzr, [sp, 88]
str wzr, [sp, 56]
ldr x0, [sp, 16]
ldr x0, [x0]
bl extract_filename
mov x1, x0
adrp x0, g_cmdname
add x0, x0, :lo12:g_cmdname
str x1, [x0]
str xzr, [sp, 64]
str xzr, [sp, 72]
str wzr, [sp, 40]
str wzr, [sp, 44]
str wzr, [sp, 48]
mov w0, 1
str w0, [sp, 52]
b .L917
.L935:
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
ldr x0, [x0]
ldrb w0, [x0]
cmp w0, 45
bne .L954
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
ldr x2, [x0]
adrp x0, .LC250
add x1, x0, :lo12:.LC250
mov x0, x2
bl strcmp
cmp w0, 0
bne .L920
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
b .L919
.L920:
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
ldr x0, [x0]
add x0, x0, 1
ldrb w0, [x0]
cmp w0, 111
bne .L921
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
ldr x0, [x0]
add x0, x0, 2
ldrb w0, [x0]
cmp w0, 0
beq .L922
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
ldr x0, [x0]
add x0, x0, 2
b .L923
.L922:
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
ldr w1, [sp, 52]
ldr w0, [sp, 28]
cmp w1, w0
bge .L924
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
ldr x0, [x0]
b .L923
.L924:
mov x0, 0
.L923:
str x0, [sp, 96]
ldr x0, [sp, 96]
cmp x0, 0
bne .L926
adrp x0, .LC251
add x0, x0, :lo12:.LC251
bl print_error
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x1, x0
mov w0, 10
bl fputc
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
bl print_usage
mov w0, 1
bl exit
.L926:
ldr x0, [sp, 72]
cmp x0, 0
beq .L927
ldr x1, [sp, 96]
adrp x0, .LC252
add x0, x0, :lo12:.LC252
bl print_error
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x1, x0
mov w0, 10
bl fputc
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
bl print_usage
mov w0, 1
bl exit
.L927:
ldr x0, [sp, 96]
str x0, [sp, 72]
b .L928
.L921:
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
ldr x2, [x0]
adrp x0, .LC253
add x1, x0, :lo12:.LC253
mov x0, x2
bl strcmp
cmp w0, 0
beq .L929
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
ldr x2, [x0]
adrp x0, .LC254
add x1, x0, :lo12:.LC254
mov x0, x2
bl strcmp
cmp w0, 0
bne .L930
.L929:
mov w0, 1
str w0, [sp, 40]
b .L928
.L930:
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
ldr x2, [x0]
adrp x0, .LC255
add x1, x0, :lo12:.LC255
mov x0, x2
bl strcmp
cmp w0, 0
beq .L931
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
ldr x2, [x0]
adrp x0, .LC256
add x1, x0, :lo12:.LC256
mov x0, x2
bl strcmp
cmp w0, 0
bne .L932
.L931:
mov w0, 1
str w0, [sp, 44]
b .L928
.L932:
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
ldr x2, [x0]
adrp x0, .LC257
add x1, x0, :lo12:.LC257
mov x0, x2
bl strcmp
cmp w0, 0
beq .L933
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
ldr x2, [x0]
adrp x0, .LC258
add x1, x0, :lo12:.LC258
mov x0, x2
bl strcmp
cmp w0, 0
bne .L934
.L933:
mov w0, 1
str w0, [sp, 48]
b .L928
.L934:
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
ldr x0, [x0]
mov x1, x0
adrp x0, .LC259
add x0, x0, :lo12:.LC259
bl print_error
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x1, x0
mov w0, 10
bl fputc
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
bl print_usage
mov w0, 1
bl exit
.L928:
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
.L917:
ldr w1, [sp, 52]
ldr w0, [sp, 28]
cmp w1, w0
blt .L935
b .L919
.L954:
nop
.L919:
ldr w1, [sp, 28]
ldr w0, [sp, 52]
sub w0, w1, w0
cmp w0, 0
beq .L955
cmp w0, 1
bne .L953
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
ldr x0, [x0]
str x0, [sp, 64]
b .L939
.L953:
adrp x0, .LC260
add x0, x0, :lo12:.LC260
bl print_error
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x1, x0
mov w0, 10
bl fputc
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
bl print_usage
mov w0, 1
bl exit
.L955:
nop
.L939:
ldr w0, [sp, 44]
cmp w0, 0
bne .L940
ldr w0, [sp, 48]
cmp w0, 0
beq .L941
.L940:
ldr w0, [sp, 48]
cmp w0, 0
beq .L942
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
bl print_version
.L942:
ldr w0, [sp, 48]
cmp w0, 0
beq .L943
ldr w0, [sp, 44]
cmp w0, 0
beq .L943
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x1, x0
mov w0, 10
bl fputc
.L943:
ldr w0, [sp, 44]
cmp w0, 0
beq .L944
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
bl print_usage
.L944:
mov w0, 0
bl exit
.L941:
ldr x0, [sp, 64]
cmp x0, 0
beq .L945
ldr x0, [sp, 64]
ldrb w0, [x0]
cmp w0, 0
beq .L945
ldr x0, [sp, 64]
b .L946
.L945:
mov x0, 0
.L946:
str x0, [sp, 80]
ldr x0, [sp, 72]
cmp x0, 0
beq .L947
ldr x0, [sp, 72]
ldrb w0, [x0]
cmp w0, 0
beq .L947
ldr x0, [sp, 72]
b .L948
.L947:
mov x0, 0
.L948:
str x0, [sp, 88]
ldr w0, [sp, 40]
str w0, [sp, 56]
ldr w2, [sp, 56]
ldr x1, [sp, 88]
ldr x0, [sp, 80]
bl create_context
str x0, [sp, 104]
ldr x0, [sp, 104]
bl parse
cmp w0, 0
beq .L949
ldr x0, [sp, 104]
bl generate
cmp w0, 0
beq .L949
mov w0, 1
b .L950
.L949:
mov w0, 0
.L950:
str w0, [sp, 60]
ldr x0, [sp, 104]
bl destroy_context
ldr w0, [sp, 60]
cmp w0, 0
bne .L951
mov w0, 10
bl exit
.L951:
mov w0, 0
ldp x29, x30, [sp], 112
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE110:
.size main, .-main
.section .rodata
.align 3
.type __PRETTY_FUNCTION__.14, %object
.size __PRETTY_FUNCTION__.14, 17
__PRETTY_FUNCTION__.14:
.string "write_code_block"
.align 3
.type __PRETTY_FUNCTION__.13, %object
.size __PRETTY_FUNCTION__.13, 14
__PRETTY_FUNCTION__.13:
.string "make_rulehash"
.align 3
.type __PRETTY_FUNCTION__.12, %object
.size __PRETTY_FUNCTION__.12, 16
__PRETTY_FUNCTION__.12:
.string "link_references"
.align 3
.type __PRETTY_FUNCTION__.11, %object
.size __PRETTY_FUNCTION__.11, 17
__PRETTY_FUNCTION__.11:
.string "verify_variables"
.align 3
.type __PRETTY_FUNCTION__.10, %object
.size __PRETTY_FUNCTION__.10, 16
__PRETTY_FUNCTION__.10:
.string "verify_captures"
.align 3
.type __PRETTY_FUNCTION__.9, %object
.size __PRETTY_FUNCTION__.9, 14
__PRETTY_FUNCTION__.9:
.string "commit_buffer"
.align 3
.type __PRETTY_FUNCTION__.8, %object
.size __PRETTY_FUNCTION__.8, 13
__PRETTY_FUNCTION__.8:
.string "match_string"
.align 3
.type __PRETTY_FUNCTION__.7, %object
.size __PRETTY_FUNCTION__.7, 14
__PRETTY_FUNCTION__.7:
.string "parse_primary"
.align 3
.type __PRETTY_FUNCTION__.6, %object
.size __PRETTY_FUNCTION__.6, 11
__PRETTY_FUNCTION__.6:
.string "parse_term"
.align 3
.type __PRETTY_FUNCTION__.5, %object
.size __PRETTY_FUNCTION__.5, 11
__PRETTY_FUNCTION__.5:
.string "parse_rule"
.align 3
.type __PRETTY_FUNCTION__.4, %object
.size __PRETTY_FUNCTION__.4, 25
__PRETTY_FUNCTION__.4:
.string "parse_directive_include_"
.align 3
.type __PRETTY_FUNCTION__.3, %object
.size __PRETTY_FUNCTION__.3, 24
__PRETTY_FUNCTION__.3:
.string "parse_directive_string_"
.align 3
.type __PRETTY_FUNCTION__.2, %object
.size __PRETTY_FUNCTION__.2, 30
__PRETTY_FUNCTION__.2:
.string "generate_thunking_action_code"
.align 3
.type __PRETTY_FUNCTION__.1, %object
.size __PRETTY_FUNCTION__.1, 29
__PRETTY_FUNCTION__.1:
.string "generate_thunking_error_code"
.align 3
.type __PRETTY_FUNCTION__.0, %object
.size __PRETTY_FUNCTION__.0, 9
__PRETTY_FUNCTION__.0:
.string "generate"
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "%d"
.align 3
.LC1:
.string "%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
str wzr, [sp, 20]
add x0, sp, 16
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl scanf
.L3:
ldr w0, [sp, 16]
and w0, w0, 1
cmp w0, 0
beq .L2
ldr w0, [sp, 20]
mov w1, 1
lsl w0, w1, w0
mov w1, w0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
.L2:
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
ldr w0, [sp, 16]
lsr w1, w0, 31
add w0, w1, w0
asr w0, w0, 1
str w0, [sp, 16]
ldr w0, [sp, 16]
cmp w0, 0
bne .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
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global ft_tolower
.type ft_tolower, %function
ft_tolower:
.LFB0:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, 12]
ldr w0, [sp, 12]
cmp w0, 64
ble .L2
ldr w0, [sp, 12]
cmp w0, 90
bgt .L2
ldr w0, [sp, 12]
add w0, w0, 32
b .L3
.L2:
ldr w0, [sp, 12]
.L3:
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size ft_tolower, .-ft_tolower
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global ttUSHORT
.type ttUSHORT, %function
ttUSHORT:
.LFB6:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
ldr x0, [sp, 8]
ldrb w0, [x0]
and w0, w0, 65535
ubfiz w0, w0, 8, 8
and w1, w0, 65535
ldr x0, [sp, 8]
add x0, x0, 1
ldrb w0, [x0]
and w0, w0, 65535
add w0, w1, w0
and w0, w0, 65535
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size ttUSHORT, .-ttUSHORT
.align 2
.global ttSHORT
.type ttSHORT, %function
ttSHORT:
.LFB7:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
ldr x0, [sp, 8]
ldrb w0, [x0]
and w0, w0, 65535
ubfiz w0, w0, 8, 8
and w1, w0, 65535
ldr x0, [sp, 8]
add x0, x0, 1
ldrb w0, [x0]
and w0, w0, 65535
add w0, w1, w0
and w0, w0, 65535
sxth w0, w0
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size ttSHORT, .-ttSHORT
.align 2
.global ttULONG
.type ttULONG, %function
ttULONG:
.LFB8:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
ldr x0, [sp, 8]
ldrb w0, [x0]
lsl w1, w0, 24
ldr x0, [sp, 8]
add x0, x0, 1
ldrb w0, [x0]
lsl w0, w0, 16
add w1, w1, w0
ldr x0, [sp, 8]
add x0, x0, 2
ldrb w0, [x0]
lsl w0, w0, 8
add w0, w1, w0
ldr x1, [sp, 8]
add x1, x1, 3
ldrb w1, [x1]
add w0, w0, w1
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size ttULONG, .-ttULONG
.align 2
.global ttLONG
.type ttLONG, %function
ttLONG:
.LFB9:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
ldr x0, [sp, 8]
ldrb w0, [x0]
lsl w1, w0, 24
ldr x0, [sp, 8]
add x0, x0, 1
ldrb w0, [x0]
lsl w0, w0, 16
add w1, w1, w0
ldr x0, [sp, 8]
add x0, x0, 2
ldrb w0, [x0]
lsl w0, w0, 8
add w0, w1, w0
ldr x1, [sp, 8]
add x1, x1, 3
ldrb w1, [x1]
add w0, w0, w1
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size ttLONG, .-ttLONG
.align 2
.type stbtt__isfont, %function
stbtt__isfont:
.LFB10:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
ldr x0, [sp, 8]
ldrb w0, [x0]
cmp w0, 49
bne .L10
ldr x0, [sp, 8]
add x0, x0, 1
ldrb w0, [x0]
cmp w0, 0
bne .L10
ldr x0, [sp, 8]
add x0, x0, 2
ldrb w0, [x0]
cmp w0, 0
bne .L10
ldr x0, [sp, 8]
add x0, x0, 3
ldrb w0, [x0]
cmp w0, 0
bne .L10
mov w0, 1
b .L11
.L10:
ldr x0, [sp, 8]
ldrb w1, [x0]
mov w0, 116
cmp w1, w0
bne .L12
ldr x0, [sp, 8]
add x0, x0, 1
ldrb w1, [x0]
mov w0, 121
cmp w1, w0
bne .L12
ldr x0, [sp, 8]
add x0, x0, 2
ldrb w1, [x0]
mov w0, 112
cmp w1, w0
bne .L12
ldr x0, [sp, 8]
add x0, x0, 3
ldrb w1, [x0]
mov w0, 49
cmp w1, w0
bne .L12
mov w0, 1
b .L11
.L12:
ldr x0, [sp, 8]
ldrb w1, [x0]
mov w0, 79
cmp w1, w0
bne .L13
ldr x0, [sp, 8]
add x0, x0, 1
ldrb w1, [x0]
mov w0, 84
cmp w1, w0
bne .L13
ldr x0, [sp, 8]
add x0, x0, 2
ldrb w1, [x0]
mov w0, 84
cmp w1, w0
bne .L13
ldr x0, [sp, 8]
add x0, x0, 3
ldrb w1, [x0]
mov w0, 79
cmp w1, w0
bne .L13
mov w0, 1
b .L11
.L13:
ldr x0, [sp, 8]
ldrb w0, [x0]
cmp w0, 0
bne .L14
ldr x0, [sp, 8]
add x0, x0, 1
ldrb w0, [x0]
cmp w0, 1
bne .L14
ldr x0, [sp, 8]
add x0, x0, 2
ldrb w0, [x0]
cmp w0, 0
bne .L14
ldr x0, [sp, 8]
add x0, x0, 3
ldrb w0, [x0]
cmp w0, 0
bne .L14
mov w0, 1
b .L11
.L14:
mov w0, 0
.L11:
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size stbtt__isfont, .-stbtt__isfont
.align 2
.type stbtt__find_table, %function
stbtt__find_table:
.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, 40]
str w1, [sp, 36]
str x2, [sp, 24]
ldr w0, [sp, 36]
add x0, x0, 4
ldr x1, [sp, 40]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
str w0, [sp, 52]
ldr w0, [sp, 36]
add w0, w0, 12
str w0, [sp, 56]
str wzr, [sp, 48]
b .L16
.L19:
ldr w0, [sp, 48]
lsl w0, w0, 4
mov w1, w0
ldr w0, [sp, 56]
add w0, w0, w1
str w0, [sp, 60]
ldr w0, [sp, 60]
ldr x1, [sp, 40]
add x0, x1, x0
ldrb w1, [x0]
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w1, w0
bne .L17
ldr w0, [sp, 60]
add x0, x0, 1
ldr x1, [sp, 40]
add x0, x1, x0
ldrb w1, [x0]
ldr x0, [sp, 24]
add x0, x0, 1
ldrb w0, [x0]
cmp w1, w0
bne .L17
ldr w0, [sp, 60]
add x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
ldrb w1, [x0]
ldr x0, [sp, 24]
add x0, x0, 2
ldrb w0, [x0]
cmp w1, w0
bne .L17
ldr w0, [sp, 60]
add x0, x0, 3
ldr x1, [sp, 40]
add x0, x1, x0
ldrb w1, [x0]
ldr x0, [sp, 24]
add x0, x0, 3
ldrb w0, [x0]
cmp w1, w0
bne .L17
ldr w0, [sp, 60]
add x0, x0, 8
ldr x1, [sp, 40]
add x0, x1, x0
bl ttULONG
b .L18
.L17:
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
.L16:
ldr w1, [sp, 48]
ldr w0, [sp, 52]
cmp w1, w0
blt .L19
mov w0, 0
.L18:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size stbtt__find_table, .-stbtt__find_table
.align 2
.global stbtt_GetFontOffsetForIndex
.type stbtt_GetFontOffsetForIndex, %function
stbtt_GetFontOffsetForIndex:
.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 x0, [sp, 24]
str w1, [sp, 20]
ldr x0, [sp, 24]
bl stbtt__isfont
cmp w0, 0
beq .L21
ldr w0, [sp, 20]
cmp w0, 0
bne .L22
mov w0, 0
b .L24
.L22:
mov w0, -1
b .L24
.L21:
ldr x0, [sp, 24]
ldrb w1, [x0]
mov w0, 116
cmp w1, w0
bne .L25
ldr x0, [sp, 24]
add x0, x0, 1
ldrb w1, [x0]
mov w0, 116
cmp w1, w0
bne .L25
ldr x0, [sp, 24]
add x0, x0, 2
ldrb w1, [x0]
mov w0, 99
cmp w1, w0
bne .L25
ldr x0, [sp, 24]
add x0, x0, 3
ldrb w1, [x0]
mov w0, 102
cmp w1, w0
bne .L25
ldr x0, [sp, 24]
add x0, x0, 4
bl ttULONG
cmp w0, 65536
beq .L26
ldr x0, [sp, 24]
add x0, x0, 4
bl ttULONG
cmp w0, 131072
bne .L25
.L26:
ldr x0, [sp, 24]
add x0, x0, 8
bl ttLONG
str w0, [sp, 44]
ldr w1, [sp, 20]
ldr w0, [sp, 44]
cmp w1, w0
blt .L27
mov w0, -1
b .L24
.L27:
ldr w1, [sp, 20]
mov w0, w1
lsl w0, w0, 3
sub w0, w0, w1
lsl w0, w0, 1
sxtw x0, w0
add x0, x0, 12
ldr x1, [sp, 24]
add x0, x1, x0
bl ttULONG
b .L24
.L25:
mov w0, -1
.L24:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE12:
.size stbtt_GetFontOffsetForIndex, .-stbtt_GetFontOffsetForIndex
.section .rodata
.align 3
.LC1:
.string "cmap"
.align 3
.LC2:
.string "loca"
.align 3
.LC3:
.string "head"
.align 3
.LC4:
.string "glyf"
.align 3
.LC5:
.string "hhea"
.align 3
.LC6:
.string "hmtx"
.align 3
.LC7:
.string "kern"
.align 3
.LC8:
.string "maxp"
.text
.align 2
.global stbtt_InitFont
.type stbtt_InitFont, %function
stbtt_InitFont:
.LFB13:
.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]
ldr x0, [sp, 32]
str x0, [sp, 72]
ldr x0, [sp, 40]
ldr x1, [sp, 72]
str x1, [x0, 8]
ldr x0, [sp, 40]
ldr w1, [sp, 28]
str w1, [x0, 16]
ldr w1, [sp, 28]
adrp x0, .LC1
add x2, x0, :lo12:.LC1
ldr x0, [sp, 72]
bl stbtt__find_table
str w0, [sp, 56]
ldr w1, [sp, 28]
adrp x0, .LC2
add x2, x0, :lo12:.LC2
ldr x0, [sp, 72]
bl stbtt__find_table
mov w1, w0
ldr x0, [sp, 40]
str w1, [x0, 24]
ldr w1, [sp, 28]
adrp x0, .LC3
add x2, x0, :lo12:.LC3
ldr x0, [sp, 72]
bl stbtt__find_table
mov w1, w0
ldr x0, [sp, 40]
str w1, [x0, 28]
ldr w1, [sp, 28]
adrp x0, .LC4
add x2, x0, :lo12:.LC4
ldr x0, [sp, 72]
bl stbtt__find_table
mov w1, w0
ldr x0, [sp, 40]
str w1, [x0, 32]
ldr w1, [sp, 28]
adrp x0, .LC5
add x2, x0, :lo12:.LC5
ldr x0, [sp, 72]
bl stbtt__find_table
mov w1, w0
ldr x0, [sp, 40]
str w1, [x0, 36]
ldr w1, [sp, 28]
adrp x0, .LC6
add x2, x0, :lo12:.LC6
ldr x0, [sp, 72]
bl stbtt__find_table
mov w1, w0
ldr x0, [sp, 40]
str w1, [x0, 40]
ldr w1, [sp, 28]
adrp x0, .LC7
add x2, x0, :lo12:.LC7
ldr x0, [sp, 72]
bl stbtt__find_table
mov w1, w0
ldr x0, [sp, 40]
str w1, [x0, 44]
ldr w0, [sp, 56]
cmp w0, 0
beq .L29
ldr x0, [sp, 40]
ldr w0, [x0, 24]
cmp w0, 0
beq .L29
ldr x0, [sp, 40]
ldr w0, [x0, 28]
cmp w0, 0
beq .L29
ldr x0, [sp, 40]
ldr w0, [x0, 32]
cmp w0, 0
beq .L29
ldr x0, [sp, 40]
ldr w0, [x0, 36]
cmp w0, 0
beq .L29
ldr x0, [sp, 40]
ldr w0, [x0, 40]
cmp w0, 0
bne .L30
.L29:
mov w0, 0
b .L31
.L30:
ldr w1, [sp, 28]
adrp x0, .LC8
add x2, x0, :lo12:.LC8
ldr x0, [sp, 72]
bl stbtt__find_table
str w0, [sp, 60]
ldr w0, [sp, 60]
cmp w0, 0
beq .L32
ldr w0, [sp, 60]
add x0, x0, 4
ldr x1, [sp, 72]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
mov w1, w0
ldr x0, [sp, 40]
str w1, [x0, 20]
b .L33
.L32:
ldr x0, [sp, 40]
mov w1, 65535
str w1, [x0, 20]
.L33:
ldr w0, [sp, 56]
add x0, x0, 2
ldr x1, [sp, 72]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
str w0, [sp, 64]
ldr x0, [sp, 40]
str wzr, [x0, 48]
str wzr, [sp, 52]
b .L34
.L38:
ldr w0, [sp, 52]
lsl w0, w0, 3
mov w1, w0
ldr w0, [sp, 56]
add w0, w1, w0
add w0, w0, 4
str w0, [sp, 68]
ldr w0, [sp, 68]
ldr x1, [sp, 72]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
cmp w0, 3
bne .L35
ldr w0, [sp, 68]
add x0, x0, 2
ldr x1, [sp, 72]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
cmp w0, 1
beq .L36
cmp w0, 10
bne .L40
.L36:
ldr w0, [sp, 68]
add x0, x0, 4
ldr x1, [sp, 72]
add x0, x1, x0
bl ttULONG
mov w1, w0
ldr w0, [sp, 56]
add w0, w1, w0
mov w1, w0
ldr x0, [sp, 40]
str w1, [x0, 48]
nop
.L40:
nop
.L35:
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
.L34:
ldr w1, [sp, 52]
ldr w0, [sp, 64]
cmp w1, w0
blt .L38
ldr x0, [sp, 40]
ldr w0, [x0, 48]
cmp w0, 0
bne .L39
mov w0, 0
b .L31
.L39:
ldr x0, [sp, 40]
ldr w0, [x0, 28]
sxtw x0, w0
add x0, x0, 50
ldr x1, [sp, 72]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
mov w1, w0
ldr x0, [sp, 40]
str w1, [x0, 52]
mov w0, 1
.L31:
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE13:
.size stbtt_InitFont, .-stbtt_InitFont
.section .rodata
.align 3
.LC9:
.string "program.c"
.align 3
.LC10:
.string "0"
.align 3
.LC11:
.string "unicode_codepoint <= ttUSHORT(data + endCount + 2*item)"
.text
.align 2
.global stbtt_FindGlyphIndex
.type stbtt_FindGlyphIndex, %function
stbtt_FindGlyphIndex:
.LFB14:
.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 x0, [sp, 40]
str w1, [sp, 36]
ldr x0, [sp, 40]
ldr x0, [x0, 8]
str x0, [sp, 136]
ldr x0, [sp, 40]
ldr w0, [x0, 48]
str w0, [sp, 96]
ldr w0, [sp, 96]
ldr x1, [sp, 136]
add x0, x1, x0
bl ttUSHORT
strh w0, [sp, 66]
ldrh w0, [sp, 66]
cmp w0, 0
bne .L42
ldr w0, [sp, 96]
add x0, x0, 2
ldr x1, [sp, 136]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
str w0, [sp, 132]
ldr w0, [sp, 132]
sub w0, w0, #6
ldr w1, [sp, 36]
cmp w1, w0
bge .L43
ldr w1, [sp, 96]
ldrsw x0, [sp, 36]
add x0, x1, x0
add x0, x0, 6
ldr x1, [sp, 136]
add x0, x1, x0
ldrb w0, [x0]
b .L44
.L43:
mov w0, 0
b .L44
.L42:
ldrh w0, [sp, 66]
cmp w0, 6
bne .L45
ldr w0, [sp, 96]
add x0, x0, 6
ldr x1, [sp, 136]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
str w0, [sp, 124]
ldr w0, [sp, 96]
add x0, x0, 8
ldr x1, [sp, 136]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
str w0, [sp, 128]
ldr w0, [sp, 36]
ldr w1, [sp, 124]
cmp w1, w0
bhi .L46
ldr w1, [sp, 124]
ldr w0, [sp, 128]
add w1, w1, w0
ldr w0, [sp, 36]
cmp w1, w0
bls .L46
ldr w1, [sp, 96]
ldr w2, [sp, 36]
ldr w0, [sp, 124]
sub w0, w2, w0
lsl w0, w0, 1
uxtw x0, w0
add x0, x1, x0
add x0, x0, 10
ldr x1, [sp, 136]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
b .L44
.L46:
mov w0, 0
b .L44
.L45:
ldrh w0, [sp, 66]
cmp w0, 2
bne .L47
adrp x0, __PRETTY_FUNCTION__.4
add x3, x0, :lo12:__PRETTY_FUNCTION__.4
mov w2, 897
adrp x0, .LC9
add x1, x0, :lo12:.LC9
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl __assert_fail
.L47:
ldrh w0, [sp, 66]
cmp w0, 4
bne .L48
ldr w0, [sp, 96]
add x0, x0, 6
ldr x1, [sp, 136]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
lsr w0, w0, 1
strh w0, [sp, 68]
ldr w0, [sp, 96]
add x0, x0, 8
ldr x1, [sp, 136]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
lsr w0, w0, 1
strh w0, [sp, 62]
ldr w0, [sp, 96]
add x0, x0, 10
ldr x1, [sp, 136]
add x0, x1, x0
bl ttUSHORT
strh w0, [sp, 64]
ldr w0, [sp, 96]
add x0, x0, 12
ldr x1, [sp, 136]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
lsr w0, w0, 1
strh w0, [sp, 70]
ldr w0, [sp, 96]
add w0, w0, 14
str w0, [sp, 120]
ldr w0, [sp, 120]
str w0, [sp, 84]
ldr w1, [sp, 36]
mov w0, 65535
cmp w1, w0
ble .L49
mov w0, 0
b .L44
.L49:
ldr w1, [sp, 84]
ldrh w0, [sp, 70]
lsl w0, w0, 1
sxtw x0, w0
add x0, x1, x0
ldr x1, [sp, 136]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
mov w1, w0
ldr w0, [sp, 36]
cmp w0, w1
blt .L50
ldrh w0, [sp, 70]
lsl w0, w0, 1
mov w1, w0
ldr w0, [sp, 84]
add w0, w0, w1
str w0, [sp, 84]
.L50:
ldr w0, [sp, 84]
sub w0, w0, #2
str w0, [sp, 84]
b .L51
.L53:
ldrh w0, [sp, 62]
lsr w0, w0, 1
strh w0, [sp, 62]
ldr w1, [sp, 84]
ldrh w0, [sp, 68]
lsl w0, w0, 1
sxtw x0, w0
add x0, x1, x0
add x0, x0, 4
ldr x1, [sp, 136]
add x0, x1, x0
bl ttUSHORT
strh w0, [sp, 80]
ldr w0, [sp, 84]
add x0, x0, 2
ldr x1, [sp, 136]
add x0, x1, x0
bl ttUSHORT
strh w0, [sp, 82]
ldr w1, [sp, 84]
ldrh w0, [sp, 62]
lsl w0, w0, 1
sxtw x0, w0
add x1, x1, x0
ldrh w0, [sp, 68]
lsl w0, w0, 1
sxtw x0, w0
add x0, x1, x0
add x0, x0, 2
ldr x1, [sp, 136]
add x0, x1, x0
bl ttUSHORT
strh w0, [sp, 80]
ldr w1, [sp, 84]
ldrh w0, [sp, 62]
lsl w0, w0, 1
sxtw x0, w0
add x0, x1, x0
ldr x1, [sp, 136]
add x0, x1, x0
bl ttUSHORT
strh w0, [sp, 82]
ldrh w0, [sp, 82]
ldr w1, [sp, 36]
cmp w1, w0
ble .L52
ldrh w0, [sp, 62]
lsl w0, w0, 1
mov w1, w0
ldr w0, [sp, 84]
add w0, w0, w1
str w0, [sp, 84]
.L52:
ldrh w0, [sp, 64]
sub w0, w0, #1
strh w0, [sp, 64]
.L51:
ldrh w0, [sp, 64]
cmp w0, 0
bne .L53
ldr w0, [sp, 84]
add w0, w0, 2
str w0, [sp, 84]
ldr w1, [sp, 84]
ldr w0, [sp, 120]
sub w0, w1, w0
lsr w0, w0, 1
strh w0, [sp, 72]
ldr w1, [sp, 120]
ldrh w0, [sp, 72]
lsl w0, w0, 1
sxtw x0, w0
add x0, x1, x0
ldr x1, [sp, 136]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
mov w1, w0
ldr w0, [sp, 36]
cmp w0, w1
ble .L54
adrp x0, __PRETTY_FUNCTION__.4
add x3, x0, :lo12:__PRETTY_FUNCTION__.4
mov w2, 935
adrp x0, .LC9
add x1, x0, :lo12:.LC9
adrp x0, .LC11
add x0, x0, :lo12:.LC11
bl __assert_fail
.L54:
ldr w1, [sp, 96]
ldrh w0, [sp, 68]
lsl w0, w0, 1
sxtw x0, w0
add x1, x1, x0
ldrh w0, [sp, 72]
lsl w0, w0, 1
sxtw x0, w0
add x0, x1, x0
add x0, x0, 16
ldr x1, [sp, 136]
add x0, x1, x0
bl ttUSHORT
strh w0, [sp, 74]
ldr w1, [sp, 96]
ldrh w0, [sp, 72]
lsl w0, w0, 1
sxtw x0, w0
add x0, x1, x0
add x0, x0, 16
ldr x1, [sp, 136]
add x0, x1, x0
bl ttUSHORT
strh w0, [sp, 76]
ldrh w0, [sp, 74]
ldr w1, [sp, 36]
cmp w1, w0
bge .L55
mov w0, 0
b .L44
.L55:
ldr w2, [sp, 96]
ldrh w1, [sp, 68]
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
lsl w0, w0, 1
sxtw x0, w0
add x1, x2, x0
ldrh w0, [sp, 72]
lsl w0, w0, 1
sxtw x0, w0
add x0, x1, x0
add x0, x0, 16
ldr x1, [sp, 136]
add x0, x1, x0
bl ttUSHORT
strh w0, [sp, 78]
ldrh w0, [sp, 78]
cmp w0, 0
bne .L56
ldr w0, [sp, 36]
and w19, w0, 65535
ldr w1, [sp, 96]
ldrh w0, [sp, 68]
lsl w0, w0, 2
sxtw x0, w0
add x1, x1, x0
ldrh w0, [sp, 72]
lsl w0, w0, 1
sxtw x0, w0
add x0, x1, x0
add x0, x0, 16
ldr x1, [sp, 136]
add x0, x1, x0
bl ttSHORT
sxth w0, w0
and w0, w0, 65535
add w0, w19, w0
and w0, w0, 65535
b .L44
.L56:
ldrh w1, [sp, 78]
ldrh w0, [sp, 74]
ldr w2, [sp, 36]
sub w0, w2, w0
lsl w0, w0, 1
sxtw x0, w0
add x1, x1, x0
ldr w0, [sp, 96]
add x2, x1, x0
ldrh w1, [sp, 68]
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
lsl w0, w0, 1
sxtw x0, w0
add x1, x2, x0
ldrh w0, [sp, 72]
lsl w0, w0, 1
sxtw x0, w0
add x0, x1, x0
add x0, x0, 16
ldr x1, [sp, 136]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
b .L44
.L48:
ldrh w0, [sp, 66]
cmp w0, 12
beq .L57
ldrh w0, [sp, 66]
cmp w0, 13
bne .L58
.L57:
ldr w0, [sp, 96]
add x0, x0, 12
ldr x1, [sp, 136]
add x0, x1, x0
bl ttULONG
str w0, [sp, 100]
str wzr, [sp, 88]
ldr w0, [sp, 100]
str w0, [sp, 92]
b .L59
.L63:
ldr w1, [sp, 92]
ldr w0, [sp, 88]
sub w0, w1, w0
asr w0, w0, 1
ldr w1, [sp, 88]
add w0, w1, w0
str w0, [sp, 104]
ldr w2, [sp, 96]
ldr w1, [sp, 104]
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
lsl w0, w0, 2
sxtw x0, w0
add x0, x2, x0
add x0, x0, 16
ldr x1, [sp, 136]
add x0, x1, x0
bl ttULONG
str w0, [sp, 108]
ldr w2, [sp, 96]
ldr w1, [sp, 104]
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
lsl w0, w0, 2
sxtw x0, w0
add x0, x2, x0
add x0, x0, 20
ldr x1, [sp, 136]
add x0, x1, x0
bl ttULONG
str w0, [sp, 112]
ldr w0, [sp, 36]
ldr w1, [sp, 108]
cmp w1, w0
bls .L60
ldr w0, [sp, 104]
str w0, [sp, 92]
b .L59
.L60:
ldr w0, [sp, 36]
ldr w1, [sp, 112]
cmp w1, w0
bcs .L61
ldr w0, [sp, 104]
add w0, w0, 1
str w0, [sp, 88]
b .L59
.L61:
ldr w2, [sp, 96]
ldr w1, [sp, 104]
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
lsl w0, w0, 2
sxtw x0, w0
add x0, x2, x0
add x0, x0, 24
ldr x1, [sp, 136]
add x0, x1, x0
bl ttULONG
str w0, [sp, 116]
ldrh w0, [sp, 66]
cmp w0, 12
bne .L62
ldr w1, [sp, 36]
ldr w0, [sp, 116]
add w1, w1, w0
ldr w0, [sp, 108]
sub w0, w1, w0
b .L44
.L62:
ldr w0, [sp, 116]
b .L44
.L59:
ldr w1, [sp, 88]
ldr w0, [sp, 92]
cmp w1, w0
blt .L63
mov w0, 0
b .L44
.L58:
adrp x0, __PRETTY_FUNCTION__.4
add x3, x0, :lo12:__PRETTY_FUNCTION__.4
mov w2, 970
adrp x0, .LC9
add x1, x0, :lo12:.LC9
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl __assert_fail
.L44:
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
.LFE14:
.size stbtt_FindGlyphIndex, .-stbtt_FindGlyphIndex
.align 2
.global stbtt_GetCodepointShape
.type stbtt_GetCodepointShape, %function
stbtt_GetCodepointShape:
.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, 40]
str w1, [sp, 36]
str x2, [sp, 24]
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl stbtt_FindGlyphIndex
ldr x2, [sp, 24]
mov w1, w0
ldr x0, [sp, 40]
bl stbtt_GetGlyphShape
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE15:
.size stbtt_GetCodepointShape, .-stbtt_GetCodepointShape
.align 2
.type stbtt_setvertex, %function
stbtt_setvertex:
.LFB16:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 24]
strb w1, [sp, 23]
str w2, [sp, 16]
str w3, [sp, 12]
str w4, [sp, 8]
str w5, [sp, 4]
ldr x0, [sp, 24]
ldrb w1, [sp, 23]
strb w1, [x0, 8]
ldr w0, [sp, 16]
sxth w1, w0
ldr x0, [sp, 24]
strh w1, [x0]
ldr w0, [sp, 12]
sxth w1, w0
ldr x0, [sp, 24]
strh w1, [x0, 2]
ldr w0, [sp, 8]
sxth w1, w0
ldr x0, [sp, 24]
strh w1, [x0, 4]
ldr w0, [sp, 4]
sxth w1, w0
ldr x0, [sp, 24]
strh w1, [x0, 6]
nop
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE16:
.size stbtt_setvertex, .-stbtt_setvertex
.align 2
.type stbtt__GetGlyfOffset, %function
stbtt__GetGlyfOffset:
.LFB17:
.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 w1, [sp, 36]
ldr x0, [sp, 40]
ldr w0, [x0, 20]
ldr w1, [sp, 36]
cmp w1, w0
blt .L68
mov w0, -1
b .L69
.L68:
ldr x0, [sp, 40]
ldr w0, [x0, 52]
cmp w0, 1
ble .L70
mov w0, -1
b .L69
.L70:
ldr x0, [sp, 40]
ldr w0, [x0, 52]
cmp w0, 0
bne .L71
ldr x0, [sp, 40]
ldr w19, [x0, 32]
ldr x0, [sp, 40]
ldr x1, [x0, 8]
ldr x0, [sp, 40]
ldr w0, [x0, 24]
sxtw x2, w0
ldr w0, [sp, 36]
lsl w0, w0, 1
sxtw x0, w0
add x0, x2, x0
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
lsl w0, w0, 1
add w0, w19, w0
str w0, [sp, 56]
ldr x0, [sp, 40]
ldr w19, [x0, 32]
ldr x0, [sp, 40]
ldr x1, [x0, 8]
ldr x0, [sp, 40]
ldr w0, [x0, 24]
sxtw x2, w0
ldr w0, [sp, 36]
lsl w0, w0, 1
sxtw x0, w0
add x0, x2, x0
add x0, x0, 2
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
lsl w0, w0, 1
add w0, w19, w0
str w0, [sp, 60]
b .L72
.L71:
ldr x0, [sp, 40]
ldr w0, [x0, 32]
mov w19, w0
ldr x0, [sp, 40]
ldr x1, [x0, 8]
ldr x0, [sp, 40]
ldr w0, [x0, 24]
sxtw x2, w0
ldr w0, [sp, 36]
lsl w0, w0, 2
sxtw x0, w0
add x0, x2, x0
add x0, x1, x0
bl ttULONG
add w0, w19, w0
str w0, [sp, 56]
ldr x0, [sp, 40]
ldr w0, [x0, 32]
mov w19, w0
ldr x0, [sp, 40]
ldr x1, [x0, 8]
ldr x0, [sp, 40]
ldr w0, [x0, 24]
sxtw x2, w0
ldr w0, [sp, 36]
lsl w0, w0, 2
sxtw x0, w0
add x0, x2, x0
add x0, x0, 4
add x0, x1, x0
bl ttULONG
add w0, w19, w0
str w0, [sp, 60]
.L72:
ldr w1, [sp, 56]
ldr w0, [sp, 60]
cmp w1, w0
beq .L73
ldr w0, [sp, 56]
b .L69
.L73:
mov w0, -1
.L69:
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
.LFE17:
.size stbtt__GetGlyfOffset, .-stbtt__GetGlyfOffset
.align 2
.global stbtt_GetGlyphBox
.type stbtt_GetGlyphBox, %function
stbtt_GetGlyphBox:
.LFB18:
.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, 56]
str w1, [sp, 52]
str x2, [sp, 40]
str x3, [sp, 32]
str x4, [sp, 24]
str x5, [sp, 16]
ldr w1, [sp, 52]
ldr x0, [sp, 56]
bl stbtt__GetGlyfOffset
str w0, [sp, 76]
ldr w0, [sp, 76]
cmp w0, 0
bge .L76
mov w0, 0
b .L77
.L76:
ldr x0, [sp, 40]
cmp x0, 0
beq .L78
ldr x0, [sp, 56]
ldr x1, [x0, 8]
ldrsw x0, [sp, 76]
add x0, x0, 2
add x0, x1, x0
bl ttSHORT
sxth w0, w0
mov w1, w0
ldr x0, [sp, 40]
str w1, [x0]
.L78:
ldr x0, [sp, 32]
cmp x0, 0
beq .L79
ldr x0, [sp, 56]
ldr x1, [x0, 8]
ldrsw x0, [sp, 76]
add x0, x0, 4
add x0, x1, x0
bl ttSHORT
sxth w0, w0
mov w1, w0
ldr x0, [sp, 32]
str w1, [x0]
.L79:
ldr x0, [sp, 24]
cmp x0, 0
beq .L80
ldr x0, [sp, 56]
ldr x1, [x0, 8]
ldrsw x0, [sp, 76]
add x0, x0, 6
add x0, x1, x0
bl ttSHORT
sxth w0, w0
mov w1, w0
ldr x0, [sp, 24]
str w1, [x0]
.L80:
ldr x0, [sp, 16]
cmp x0, 0
beq .L81
ldr x0, [sp, 56]
ldr x1, [x0, 8]
ldrsw x0, [sp, 76]
add x0, x0, 8
add x0, x1, x0
bl ttSHORT
sxth w0, w0
mov w1, w0
ldr x0, [sp, 16]
str w1, [x0]
.L81:
mov w0, 1
.L77:
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE18:
.size stbtt_GetGlyphBox, .-stbtt_GetGlyphBox
.align 2
.global stbtt_GetCodepointBox
.type stbtt_GetCodepointBox, %function
stbtt_GetCodepointBox:
.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, 56]
str w1, [sp, 52]
str x2, [sp, 40]
str x3, [sp, 32]
str x4, [sp, 24]
str x5, [sp, 16]
ldr w1, [sp, 52]
ldr x0, [sp, 56]
bl stbtt_FindGlyphIndex
ldr x5, [sp, 16]
ldr x4, [sp, 24]
ldr x3, [sp, 32]
ldr x2, [sp, 40]
mov w1, w0
ldr x0, [sp, 56]
bl stbtt_GetGlyphBox
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE19:
.size stbtt_GetCodepointBox, .-stbtt_GetCodepointBox
.align 2
.global stbtt_IsGlyphEmpty
.type stbtt_IsGlyphEmpty, %function
stbtt_IsGlyphEmpty:
.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 w1, [sp, 20]
ldr w1, [sp, 20]
ldr x0, [sp, 24]
bl stbtt__GetGlyfOffset
str w0, [sp, 44]
ldr w0, [sp, 44]
cmp w0, 0
bge .L85
mov w0, 1
b .L86
.L85:
ldr x0, [sp, 24]
ldr x1, [x0, 8]
ldrsw x0, [sp, 44]
add x0, x1, x0
bl ttSHORT
strh w0, [sp, 42]
ldrsh w0, [sp, 42]
cmp w0, 0
cset w0, eq
and w0, w0, 255
.L86:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE20:
.size stbtt_IsGlyphEmpty, .-stbtt_IsGlyphEmpty
.align 2
.type stbtt__close_shape, %function
stbtt__close_shape:
.LFB21:
.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 w2, [sp, 48]
str w3, [sp, 44]
str w4, [sp, 40]
str w5, [sp, 36]
str w6, [sp, 32]
str w7, [sp, 28]
ldr w0, [sp, 44]
cmp w0, 0
beq .L88
ldr w0, [sp, 48]
cmp w0, 0
beq .L89
ldr w0, [sp, 52]
add w1, w0, 1
str w1, [sp, 52]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 56]
add x6, x0, x1
ldr w1, [sp, 64]
ldr w0, [sp, 32]
add w0, w1, w0
asr w2, w0, 1
ldr w1, [sp, 72]
ldr w0, [sp, 28]
add w0, w1, w0
asr w0, w0, 1
ldr w5, [sp, 72]
ldr w4, [sp, 64]
mov w3, w0
mov w1, 3
mov x0, x6
bl stbtt_setvertex
.L89:
ldr w0, [sp, 52]
add w1, w0, 1
str w1, [sp, 52]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 56]
add x0, x0, x1
ldr w5, [sp, 28]
ldr w4, [sp, 32]
ldr w3, [sp, 36]
ldr w2, [sp, 40]
mov w1, 3
bl stbtt_setvertex
b .L90
.L88:
ldr w0, [sp, 48]
cmp w0, 0
beq .L91
ldr w0, [sp, 52]
add w1, w0, 1
str w1, [sp, 52]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 56]
add x0, x0, x1
ldr w5, [sp, 72]
ldr w4, [sp, 64]
ldr w3, [sp, 36]
ldr w2, [sp, 40]
mov w1, 3
bl stbtt_setvertex
b .L90
.L91:
ldr w0, [sp, 52]
add w1, w0, 1
str w1, [sp, 52]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 56]
add x0, x0, x1
mov w5, 0
mov w4, 0
ldr w3, [sp, 36]
ldr w2, [sp, 40]
mov w1, 2
bl stbtt_setvertex
.L90:
ldr w0, [sp, 52]
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE21:
.size stbtt__close_shape, .-stbtt__close_shape
.align 2
.global stbtt_GetGlyphShape
.type stbtt_GetGlyphShape, %function
stbtt_GetGlyphShape:
.LFB22:
.cfi_startproc
sub sp, sp, #272
.cfi_def_cfa_offset 272
stp x29, x30, [sp, 16]
.cfi_offset 29, -256
.cfi_offset 30, -248
add x29, sp, 16
str x0, [sp, 56]
str w1, [sp, 52]
str x2, [sp, 40]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 264]
mov x1, 0
ldr x0, [sp, 56]
ldr x0, [x0, 8]
str x0, [sp, 208]
str xzr, [sp, 184]
str wzr, [sp, 80]
ldr w1, [sp, 52]
ldr x0, [sp, 56]
bl stbtt__GetGlyfOffset
str w0, [sp, 144]
ldr x0, [sp, 40]
str xzr, [x0]
ldr w0, [sp, 144]
cmp w0, 0
bge .L94
mov w0, 0
b .L95
.L94:
ldrsw x0, [sp, 144]
ldr x1, [sp, 208]
add x0, x1, x0
bl ttSHORT
strh w0, [sp, 66]
ldrsh w0, [sp, 66]
cmp w0, 0
ble .L96
strb wzr, [sp, 64]
str wzr, [sp, 88]
str wzr, [sp, 96]
str wzr, [sp, 100]
ldrsw x0, [sp, 144]
add x0, x0, 10
ldr x1, [sp, 208]
add x0, x1, x0
str x0, [sp, 232]
ldrsw x1, [sp, 144]
ldrsh w0, [sp, 66]
lsl w0, w0, 1
sxtw x0, w0
add x0, x1, x0
add x0, x0, 10
ldr x1, [sp, 208]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
str w0, [sp, 160]
ldrsw x1, [sp, 144]
ldrsh w0, [sp, 66]
lsl w0, w0, 1
sxtw x0, w0
add x1, x1, x0
ldrsw x0, [sp, 160]
add x0, x1, x0
add x0, x0, 12
ldr x1, [sp, 208]
add x0, x1, x0
str x0, [sp, 192]
ldrsh w0, [sp, 66]
lsl w0, w0, 1
sxtw x0, w0
sub x0, x0, #2
ldr x1, [sp, 232]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
add w0, w0, 1
str w0, [sp, 164]
ldrsh w0, [sp, 66]
lsl w0, w0, 1
ldr w1, [sp, 164]
add w0, w1, w0
str w0, [sp, 168]
ldrsw x1, [sp, 168]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
bl malloc
str x0, [sp, 184]
ldr x0, [sp, 184]
cmp x0, 0
bne .L97
mov w0, 0
b .L95
.L97:
str wzr, [sp, 92]
strb wzr, [sp, 65]
ldr w1, [sp, 168]
ldr w0, [sp, 164]
sub w0, w1, w0
str w0, [sp, 172]
str wzr, [sp, 84]
b .L98
.L101:
ldrb w0, [sp, 65]
cmp w0, 0
bne .L99
ldr x0, [sp, 192]
add x1, x0, 1
str x1, [sp, 192]
ldrb w0, [x0]
strb w0, [sp, 64]
ldrb w0, [sp, 64]
and w0, w0, 8
cmp w0, 0
beq .L100
ldr x0, [sp, 192]
add x1, x0, 1
str x1, [sp, 192]
ldrb w0, [x0]
strb w0, [sp, 65]
b .L100
.L99:
ldrb w0, [sp, 65]
sub w0, w0, #1
strb w0, [sp, 65]
.L100:
ldr w1, [sp, 172]
ldr w0, [sp, 84]
add w0, w1, w0
sxtw x1, w0
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 184]
add x0, x0, x1
ldrb w1, [sp, 64]
strb w1, [x0, 8]
ldr w0, [sp, 84]
add w0, w0, 1
str w0, [sp, 84]
.L98:
ldr w1, [sp, 84]
ldr w0, [sp, 164]
cmp w1, w0
blt .L101
str wzr, [sp, 104]
str wzr, [sp, 84]
b .L102
.L107:
ldr w1, [sp, 172]
ldr w0, [sp, 84]
add w0, w1, w0
sxtw x1, w0
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 184]
add x0, x0, x1
ldrb w0, [x0, 8]
strb w0, [sp, 64]
ldrb w0, [sp, 64]
and w0, w0, 2
cmp w0, 0
beq .L103
ldr x0, [sp, 192]
add x1, x0, 1
str x1, [sp, 192]
ldrb w0, [x0]
strh w0, [sp, 78]
ldrb w0, [sp, 64]
and w0, w0, 16
cmp w0, 0
beq .L104
ldrsh w0, [sp, 78]
b .L105
.L104:
ldrsh w0, [sp, 78]
neg w0, w0
.L105:
ldr w1, [sp, 104]
add w0, w1, w0
str w0, [sp, 104]
b .L106
.L103:
ldrb w0, [sp, 64]
and w0, w0, 16
cmp w0, 0
bne .L106
ldr x0, [sp, 192]
ldrb w0, [x0]
and w0, w0, 65535
ubfiz w0, w0, 8, 8
and w1, w0, 65535
ldr x0, [sp, 192]
add x0, x0, 1
ldrb w0, [x0]
and w0, w0, 65535
add w0, w1, w0
and w0, w0, 65535
sxth w0, w0
mov w1, w0
ldr w0, [sp, 104]
add w0, w0, w1
str w0, [sp, 104]
ldr x0, [sp, 192]
add x0, x0, 2
str x0, [sp, 192]
.L106:
ldr w1, [sp, 172]
ldr w0, [sp, 84]
add w0, w1, w0
sxtw x1, w0
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 184]
add x0, x0, x1
ldr w1, [sp, 104]
sxth w1, w1
strh w1, [x0]
ldr w0, [sp, 84]
add w0, w0, 1
str w0, [sp, 84]
.L102:
ldr w1, [sp, 84]
ldr w0, [sp, 164]
cmp w1, w0
blt .L107
str wzr, [sp, 108]
str wzr, [sp, 84]
b .L108
.L113:
ldr w1, [sp, 172]
ldr w0, [sp, 84]
add w0, w1, w0
sxtw x1, w0
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 184]
add x0, x0, x1
ldrb w0, [x0, 8]
strb w0, [sp, 64]
ldrb w0, [sp, 64]
and w0, w0, 4
cmp w0, 0
beq .L109
ldr x0, [sp, 192]
add x1, x0, 1
str x1, [sp, 192]
ldrb w0, [x0]
strh w0, [sp, 76]
ldrb w0, [sp, 64]
and w0, w0, 32
cmp w0, 0
beq .L110
ldrsh w0, [sp, 76]
b .L111
.L110:
ldrsh w0, [sp, 76]
neg w0, w0
.L111:
ldr w1, [sp, 108]
add w0, w1, w0
str w0, [sp, 108]
b .L112
.L109:
ldrb w0, [sp, 64]
and w0, w0, 32
cmp w0, 0
bne .L112
ldr x0, [sp, 192]
ldrb w0, [x0]
and w0, w0, 65535
ubfiz w0, w0, 8, 8
and w1, w0, 65535
ldr x0, [sp, 192]
add x0, x0, 1
ldrb w0, [x0]
and w0, w0, 65535
add w0, w1, w0
and w0, w0, 65535
sxth w0, w0
mov w1, w0
ldr w0, [sp, 108]
add w0, w0, w1
str w0, [sp, 108]
ldr x0, [sp, 192]
add x0, x0, 2
str x0, [sp, 192]
.L112:
ldr w1, [sp, 172]
ldr w0, [sp, 84]
add w0, w1, w0
sxtw x1, w0
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 184]
add x0, x0, x1
ldr w1, [sp, 108]
sxth w1, w1
strh w1, [x0, 2]
ldr w0, [sp, 84]
add w0, w0, 1
str w0, [sp, 84]
.L108:
ldr w1, [sp, 84]
ldr w0, [sp, 164]
cmp w1, w0
blt .L113
str wzr, [sp, 80]
str wzr, [sp, 132]
ldr w0, [sp, 132]
str w0, [sp, 128]
ldr w0, [sp, 128]
str w0, [sp, 116]
ldr w0, [sp, 116]
str w0, [sp, 112]
ldr w0, [sp, 112]
str w0, [sp, 124]
ldr w0, [sp, 124]
str w0, [sp, 120]
str wzr, [sp, 84]
b .L114
.L125:
ldr w1, [sp, 172]
ldr w0, [sp, 84]
add w0, w1, w0
sxtw x1, w0
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 184]
add x0, x0, x1
ldrb w0, [x0, 8]
strb w0, [sp, 64]
ldr w1, [sp, 172]
ldr w0, [sp, 84]
add w0, w1, w0
sxtw x1, w0
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 184]
add x0, x0, x1
ldrsh w0, [x0]
str w0, [sp, 104]
ldr w1, [sp, 172]
ldr w0, [sp, 84]
add w0, w1, w0
sxtw x1, w0
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 184]
add x0, x0, x1
ldrsh w0, [x0, 2]
str w0, [sp, 108]
ldr w1, [sp, 92]
ldr w0, [sp, 84]
cmp w1, w0
bne .L115
ldr w0, [sp, 84]
cmp w0, 0
beq .L116
ldr w0, [sp, 116]
str w0, [sp, 8]
ldr w0, [sp, 112]
str w0, [sp]
ldr w7, [sp, 132]
ldr w6, [sp, 128]
ldr w5, [sp, 124]
ldr w4, [sp, 120]
ldr w3, [sp, 100]
ldr w2, [sp, 96]
ldr w1, [sp, 80]
ldr x0, [sp, 184]
bl stbtt__close_shape
str w0, [sp, 80]
.L116:
ldrb w0, [sp, 64]
and w0, w0, 1
cmp w0, 0
cset w0, eq
and w0, w0, 255
str w0, [sp, 100]
ldr w0, [sp, 100]
cmp w0, 0
beq .L117
ldr w0, [sp, 104]
str w0, [sp, 128]
ldr w0, [sp, 108]
str w0, [sp, 132]
ldr w1, [sp, 172]
ldr w0, [sp, 84]
add w0, w1, w0
sxtw x0, w0
add x1, x0, 1
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 184]
add x0, x0, x1
ldrb w0, [x0, 8]
and w0, w0, 1
cmp w0, 0
bne .L118
ldr w1, [sp, 172]
ldr w0, [sp, 84]
add w0, w1, w0
sxtw x0, w0
add x1, x0, 1
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 184]
add x0, x0, x1
ldrsh w0, [x0]
mov w1, w0
ldr w0, [sp, 104]
add w0, w1, w0
asr w0, w0, 1
str w0, [sp, 120]
ldr w1, [sp, 172]
ldr w0, [sp, 84]
add w0, w1, w0
sxtw x0, w0
add x1, x0, 1
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 184]
add x0, x0, x1
ldrsh w0, [x0, 2]
mov w1, w0
ldr w0, [sp, 108]
add w0, w1, w0
asr w0, w0, 1
str w0, [sp, 124]
b .L119
.L118:
ldr w1, [sp, 172]
ldr w0, [sp, 84]
add w0, w1, w0
sxtw x0, w0
add x1, x0, 1
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 184]
add x0, x0, x1
ldrsh w0, [x0]
str w0, [sp, 120]
ldr w1, [sp, 172]
ldr w0, [sp, 84]
add w0, w1, w0
sxtw x0, w0
add x1, x0, 1
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 184]
add x0, x0, x1
ldrsh w0, [x0, 2]
str w0, [sp, 124]
ldr w0, [sp, 84]
add w0, w0, 1
str w0, [sp, 84]
b .L119
.L117:
ldr w0, [sp, 104]
str w0, [sp, 120]
ldr w0, [sp, 108]
str w0, [sp, 124]
.L119:
ldr w0, [sp, 80]
add w1, w0, 1
str w1, [sp, 80]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 184]
add x0, x0, x1
mov w5, 0
mov w4, 0
ldr w3, [sp, 124]
ldr w2, [sp, 120]
mov w1, 1
bl stbtt_setvertex
str wzr, [sp, 96]
ldr w0, [sp, 88]
lsl w0, w0, 1
sxtw x0, w0
ldr x1, [sp, 232]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
add w0, w0, 1
str w0, [sp, 92]
ldr w0, [sp, 88]
add w0, w0, 1
str w0, [sp, 88]
b .L120
.L115:
ldrb w0, [sp, 64]
and w0, w0, 1
cmp w0, 0
bne .L121
ldr w0, [sp, 96]
cmp w0, 0
beq .L122
ldr w0, [sp, 80]
add w1, w0, 1
str w1, [sp, 80]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 184]
add x6, x0, x1
ldr w1, [sp, 112]
ldr w0, [sp, 104]
add w0, w1, w0
asr w2, w0, 1
ldr w1, [sp, 116]
ldr w0, [sp, 108]
add w0, w1, w0
asr w0, w0, 1
ldr w5, [sp, 116]
ldr w4, [sp, 112]
mov w3, w0
mov w1, 3
mov x0, x6
bl stbtt_setvertex
.L122:
ldr w0, [sp, 104]
str w0, [sp, 112]
ldr w0, [sp, 108]
str w0, [sp, 116]
mov w0, 1
str w0, [sp, 96]
b .L120
.L121:
ldr w0, [sp, 96]
cmp w0, 0
beq .L123
ldr w0, [sp, 80]
add w1, w0, 1
str w1, [sp, 80]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 184]
add x0, x0, x1
ldr w5, [sp, 116]
ldr w4, [sp, 112]
ldr w3, [sp, 108]
ldr w2, [sp, 104]
mov w1, 3
bl stbtt_setvertex
b .L124
.L123:
ldr w0, [sp, 80]
add w1, w0, 1
str w1, [sp, 80]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 184]
add x0, x0, x1
mov w5, 0
mov w4, 0
ldr w3, [sp, 108]
ldr w2, [sp, 104]
mov w1, 2
bl stbtt_setvertex
.L124:
str wzr, [sp, 96]
.L120:
ldr w0, [sp, 84]
add w0, w0, 1
str w0, [sp, 84]
.L114:
ldr w1, [sp, 84]
ldr w0, [sp, 164]
cmp w1, w0
blt .L125
ldr w0, [sp, 116]
str w0, [sp, 8]
ldr w0, [sp, 112]
str w0, [sp]
ldr w7, [sp, 132]
ldr w6, [sp, 128]
ldr w5, [sp, 124]
ldr w4, [sp, 120]
ldr w3, [sp, 100]
ldr w2, [sp, 96]
ldr w1, [sp, 80]
ldr x0, [sp, 184]
bl stbtt__close_shape
str w0, [sp, 80]
b .L126
.L96:
ldrsh w0, [sp, 66]
cmn w0, #1
bne .L127
mov w0, 1
str w0, [sp, 136]
ldrsw x0, [sp, 144]
add x0, x0, 10
ldr x1, [sp, 208]
add x0, x1, x0
str x0, [sp, 200]
str wzr, [sp, 80]
str xzr, [sp, 184]
b .L128
.L143:
str wzr, [sp, 148]
str xzr, [sp, 176]
str xzr, [sp, 216]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
add x2, sp, 240
mov x3, x0
ldp x0, x1, [x3]
stp x0, x1, [x2]
ldr x0, [x3, 16]
str x0, [x2, 16]
ldr x0, [sp, 200]
bl ttSHORT
sxth w0, w0
strh w0, [sp, 68]
ldr x0, [sp, 200]
add x0, x0, 2
str x0, [sp, 200]
ldr x0, [sp, 200]
bl ttSHORT
sxth w0, w0
strh w0, [sp, 70]
ldr x0, [sp, 200]
add x0, x0, 2
str x0, [sp, 200]
ldrh w0, [sp, 68]
and w0, w0, 2
cmp w0, 0
beq .L129
ldrh w0, [sp, 68]
and w0, w0, 1
cmp w0, 0
beq .L130
ldr x0, [sp, 200]
bl ttSHORT
sxth w0, w0
scvtf s0, w0
str s0, [sp, 256]
ldr x0, [sp, 200]
add x0, x0, 2
str x0, [sp, 200]
ldr x0, [sp, 200]
bl ttSHORT
sxth w0, w0
scvtf s0, w0
str s0, [sp, 260]
ldr x0, [sp, 200]
add x0, x0, 2
str x0, [sp, 200]
b .L131
.L130:
ldr x0, [sp, 200]
ldrsb w0, [x0]
scvtf s0, w0
str s0, [sp, 256]
ldr x0, [sp, 200]
add x0, x0, 1
str x0, [sp, 200]
ldr x0, [sp, 200]
ldrsb w0, [x0]
scvtf s0, w0
str s0, [sp, 260]
ldr x0, [sp, 200]
add x0, x0, 1
str x0, [sp, 200]
b .L131
.L129:
adrp x0, __PRETTY_FUNCTION__.3
add x3, x0, :lo12:__PRETTY_FUNCTION__.3
mov w2, 1212
adrp x0, .LC9
add x1, x0, :lo12:.LC9
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl __assert_fail
.L131:
ldrh w0, [sp, 68]
and w0, w0, 8
cmp w0, 0
beq .L132
ldr x0, [sp, 200]
bl ttSHORT
sxth w0, w0
scvtf s0, w0
mov w0, 1182793728
fmov s1, w0
fdiv s0, s0, s1
str s0, [sp, 252]
ldr s0, [sp, 252]
str s0, [sp, 240]
ldr x0, [sp, 200]
add x0, x0, 2
str x0, [sp, 200]
str wzr, [sp, 248]
ldr s0, [sp, 248]
str s0, [sp, 244]
b .L133
.L132:
ldrh w0, [sp, 68]
and w0, w0, 64
cmp w0, 0
beq .L134
ldr x0, [sp, 200]
bl ttSHORT
sxth w0, w0
scvtf s0, w0
mov w0, 1182793728
fmov s1, w0
fdiv s0, s0, s1
str s0, [sp, 240]
ldr x0, [sp, 200]
add x0, x0, 2
str x0, [sp, 200]
str wzr, [sp, 248]
ldr s0, [sp, 248]
str s0, [sp, 244]
ldr x0, [sp, 200]
bl ttSHORT
sxth w0, w0
scvtf s0, w0
mov w0, 1182793728
fmov s1, w0
fdiv s0, s0, s1
str s0, [sp, 252]
ldr x0, [sp, 200]
add x0, x0, 2
str x0, [sp, 200]
b .L133
.L134:
ldrh w0, [sp, 68]
and w0, w0, 128
cmp w0, 0
beq .L133
ldr x0, [sp, 200]
bl ttSHORT
sxth w0, w0
scvtf s0, w0
mov w0, 1182793728
fmov s1, w0
fdiv s0, s0, s1
str s0, [sp, 240]
ldr x0, [sp, 200]
add x0, x0, 2
str x0, [sp, 200]
ldr x0, [sp, 200]
bl ttSHORT
sxth w0, w0
scvtf s0, w0
mov w0, 1182793728
fmov s1, w0
fdiv s0, s0, s1
str s0, [sp, 244]
ldr x0, [sp, 200]
add x0, x0, 2
str x0, [sp, 200]
ldr x0, [sp, 200]
bl ttSHORT
sxth w0, w0
scvtf s0, w0
mov w0, 1182793728
fmov s1, w0
fdiv s0, s0, s1
str s0, [sp, 248]
ldr x0, [sp, 200]
add x0, x0, 2
str x0, [sp, 200]
ldr x0, [sp, 200]
bl ttSHORT
sxth w0, w0
scvtf s0, w0
mov w0, 1182793728
fmov s1, w0
fdiv s0, s0, s1
str s0, [sp, 252]
ldr x0, [sp, 200]
add x0, x0, 2
str x0, [sp, 200]
.L133:
ldr s1, [sp, 240]
ldr s0, [sp, 240]
fmul s1, s1, s0
ldr s2, [sp, 244]
ldr s0, [sp, 244]
fmul s0, s2, s0
fadd s0, s1, s0
fcvt d0, s0
bl sqrt
fcvt s0, d0
str s0, [sp, 152]
ldr s1, [sp, 248]
ldr s0, [sp, 248]
fmul s1, s1, s0
ldr s2, [sp, 252]
ldr s0, [sp, 252]
fmul s0, s2, s0
fadd s0, s1, s0
fcvt d0, s0
bl sqrt
fcvt s0, d0
str s0, [sp, 156]
ldrh w0, [sp, 70]
add x1, sp, 176
mov x2, x1
mov w1, w0
ldr x0, [sp, 56]
bl stbtt_GetGlyphShape
str w0, [sp, 148]
ldr w0, [sp, 148]
cmp w0, 0
ble .L135
str wzr, [sp, 140]
b .L136
.L137:
ldr x2, [sp, 176]
ldrsw x1, [sp, 140]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
add x0, x2, x0
str x0, [sp, 224]
ldr x0, [sp, 224]
ldrh w0, [x0]
strh w0, [sp, 72]
ldr x0, [sp, 224]
ldrh w0, [x0, 2]
strh w0, [sp, 74]
ldr s1, [sp, 240]
ldrsh w0, [sp, 72]
scvtf s0, w0
fmul s1, s1, s0
ldr s2, [sp, 248]
ldrsh w0, [sp, 74]
scvtf s0, w0
fmul s0, s2, s0
fadd s1, s1, s0
ldr s0, [sp, 256]
fadd s1, s1, s0
ldr s0, [sp, 152]
fmul s0, s1, s0
fcvtzs s0, s0
umov w0, v0.h[0]
sxth w1, w0
ldr x0, [sp, 224]
strh w1, [x0]
ldr s1, [sp, 244]
ldrsh w0, [sp, 72]
scvtf s0, w0
fmul s1, s1, s0
ldr s2, [sp, 252]
ldrsh w0, [sp, 74]
scvtf s0, w0
fmul s0, s2, s0
fadd s1, s1, s0
ldr s0, [sp, 260]
fadd s1, s1, s0
ldr s0, [sp, 156]
fmul s0, s1, s0
fcvtzs s0, s0
umov w0, v0.h[0]
sxth w1, w0
ldr x0, [sp, 224]
strh w1, [x0, 2]
ldr x0, [sp, 224]
ldrh w0, [x0, 4]
strh w0, [sp, 72]
ldr x0, [sp, 224]
ldrh w0, [x0, 6]
strh w0, [sp, 74]
ldr s1, [sp, 240]
ldrsh w0, [sp, 72]
scvtf s0, w0
fmul s1, s1, s0
ldr s2, [sp, 248]
ldrsh w0, [sp, 74]
scvtf s0, w0
fmul s0, s2, s0
fadd s1, s1, s0
ldr s0, [sp, 256]
fadd s1, s1, s0
ldr s0, [sp, 152]
fmul s0, s1, s0
fcvtzs s0, s0
umov w0, v0.h[0]
sxth w1, w0
ldr x0, [sp, 224]
strh w1, [x0, 4]
ldr s1, [sp, 244]
ldrsh w0, [sp, 72]
scvtf s0, w0
fmul s1, s1, s0
ldr s2, [sp, 252]
ldrsh w0, [sp, 74]
scvtf s0, w0
fmul s0, s2, s0
fadd s1, s1, s0
ldr s0, [sp, 260]
fadd s1, s1, s0
ldr s0, [sp, 156]
fmul s0, s1, s0
fcvtzs s0, s0
umov w0, v0.h[0]
sxth w1, w0
ldr x0, [sp, 224]
strh w1, [x0, 6]
ldr w0, [sp, 140]
add w0, w0, 1
str w0, [sp, 140]
.L136:
ldr w1, [sp, 140]
ldr w0, [sp, 148]
cmp w1, w0
blt .L137
ldr w1, [sp, 80]
ldr w0, [sp, 148]
add w0, w1, w0
sxtw x1, w0
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
bl malloc
str x0, [sp, 216]
ldr x0, [sp, 216]
cmp x0, 0
bne .L138
ldr x0, [sp, 184]
cmp x0, 0
beq .L139
ldr x0, [sp, 184]
bl free
.L139:
ldr x0, [sp, 176]
cmp x0, 0
beq .L140
ldr x0, [sp, 176]
bl free
.L140:
mov w0, 0
b .L95
.L138:
ldr w0, [sp, 80]
cmp w0, 0
ble .L141
ldrsw x1, [sp, 80]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x2, x0
ldr x1, [sp, 184]
ldr x0, [sp, 216]
bl memcpy
.L141:
ldrsw x1, [sp, 80]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 216]
add x3, x0, x1
ldr x4, [sp, 176]
ldrsw x1, [sp, 148]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x2, x0
mov x1, x4
mov x0, x3
bl memcpy
ldr x0, [sp, 184]
cmp x0, 0
beq .L142
ldr x0, [sp, 184]
bl free
.L142:
ldr x0, [sp, 216]
str x0, [sp, 184]
ldr x0, [sp, 176]
bl free
ldr w1, [sp, 80]
ldr w0, [sp, 148]
add w0, w1, w0
str w0, [sp, 80]
.L135:
ldrh w0, [sp, 68]
and w0, w0, 32
str w0, [sp, 136]
.L128:
ldr w0, [sp, 136]
cmp w0, 0
bne .L143
b .L126
.L127:
ldrsh w0, [sp, 66]
cmp w0, 0
bge .L126
adrp x0, __PRETTY_FUNCTION__.3
add x3, x0, :lo12:__PRETTY_FUNCTION__.3
mov w2, 1265
adrp x0, .LC9
add x1, x0, :lo12:.LC9
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl __assert_fail
.L126:
ldr x0, [sp, 40]
ldr x1, [sp, 184]
str x1, [x0]
ldr w0, [sp, 80]
.L95:
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 264]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L144
bl __stack_chk_fail
.L144:
mov w0, w1
ldp x29, x30, [sp, 16]
add sp, sp, 272
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE22:
.size stbtt_GetGlyphShape, .-stbtt_GetGlyphShape
.section .rodata
.align 3
.LC0:
.word 1065353216
.word 0
.word 0
.word 1065353216
.word 0
.word 0
.text
.align 2
.global stbtt_GetGlyphHMetrics
.type stbtt_GetGlyphHMetrics, %function
stbtt_GetGlyphHMetrics:
.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, 40]
str w1, [sp, 36]
str x2, [sp, 24]
str x3, [sp, 16]
ldr x0, [sp, 40]
ldr x1, [x0, 8]
ldr x0, [sp, 40]
ldr w0, [x0, 36]
sxtw x0, w0
add x0, x0, 34
add x0, x1, x0
bl ttUSHORT
strh w0, [sp, 62]
ldrh w0, [sp, 62]
ldr w1, [sp, 36]
cmp w1, w0
bge .L146
ldr x0, [sp, 24]
cmp x0, 0
beq .L147
ldr x0, [sp, 40]
ldr x1, [x0, 8]
ldr x0, [sp, 40]
ldr w0, [x0, 40]
sxtw x2, w0
ldr w0, [sp, 36]
lsl w0, w0, 2
sxtw x0, w0
add x0, x2, x0
add x0, x1, x0
bl ttSHORT
sxth w0, w0
mov w1, w0
ldr x0, [sp, 24]
str w1, [x0]
.L147:
ldr x0, [sp, 16]
cmp x0, 0
beq .L150
ldr x0, [sp, 40]
ldr x1, [x0, 8]
ldr x0, [sp, 40]
ldr w0, [x0, 40]
sxtw x2, w0
ldr w0, [sp, 36]
lsl w0, w0, 2
sxtw x0, w0
add x0, x2, x0
add x0, x0, 2
add x0, x1, x0
bl ttSHORT
sxth w0, w0
mov w1, w0
ldr x0, [sp, 16]
str w1, [x0]
b .L150
.L146:
ldr x0, [sp, 24]
cmp x0, 0
beq .L149
ldr x0, [sp, 40]
ldr x1, [x0, 8]
ldr x0, [sp, 40]
ldr w0, [x0, 40]
sxtw x2, w0
ldrh w0, [sp, 62]
sub w0, w0, #1
lsl w0, w0, 2
sxtw x0, w0
add x0, x2, x0
add x0, x1, x0
bl ttSHORT
sxth w0, w0
mov w1, w0
ldr x0, [sp, 24]
str w1, [x0]
.L149:
ldr x0, [sp, 16]
cmp x0, 0
beq .L150
ldr x0, [sp, 40]
ldr x1, [x0, 8]
ldr x0, [sp, 40]
ldr w0, [x0, 40]
sxtw x2, w0
ldrh w0, [sp, 62]
lsl w0, w0, 2
sxtw x0, w0
add x2, x2, x0
ldrh w0, [sp, 62]
ldr w3, [sp, 36]
sub w0, w3, w0
lsl w0, w0, 1
sxtw x0, w0
add x0, x2, x0
add x0, x1, x0
bl ttSHORT
sxth w0, w0
mov w1, w0
ldr x0, [sp, 16]
str w1, [x0]
.L150:
nop
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE23:
.size stbtt_GetGlyphHMetrics, .-stbtt_GetGlyphHMetrics
.align 2
.global stbtt_GetGlyphKernAdvance
.type stbtt_GetGlyphKernAdvance, %function
stbtt_GetGlyphKernAdvance:
.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]
str w2, [sp, 16]
ldr x0, [sp, 24]
ldr x1, [x0, 8]
ldr x0, [sp, 24]
ldr w0, [x0, 44]
sxtw x0, w0
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 24]
ldr w0, [x0, 44]
cmp w0, 0
bne .L152
mov w0, 0
b .L153
.L152:
ldr x0, [sp, 56]
add x0, x0, 2
bl ttUSHORT
and w0, w0, 65535
cmp w0, 0
bne .L154
mov w0, 0
b .L153
.L154:
ldr x0, [sp, 56]
add x0, x0, 8
bl ttUSHORT
and w0, w0, 65535
cmp w0, 1
beq .L155
mov w0, 0
b .L153
.L155:
str wzr, [sp, 36]
ldr x0, [sp, 56]
add x0, x0, 10
bl ttUSHORT
and w0, w0, 65535
sub w0, w0, #1
str w0, [sp, 40]
ldr w0, [sp, 20]
lsl w1, w0, 16
ldr w0, [sp, 16]
orr w0, w1, w0
str w0, [sp, 44]
b .L156
.L159:
ldr w1, [sp, 36]
ldr w0, [sp, 40]
add w0, w1, w0
asr w0, w0, 1
str w0, [sp, 48]
ldr w1, [sp, 48]
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
lsl w0, w0, 1
sxtw x0, w0
add x0, x0, 18
ldr x1, [sp, 56]
add x0, x1, x0
bl ttULONG
str w0, [sp, 52]
ldr w1, [sp, 44]
ldr w0, [sp, 52]
cmp w1, w0
bcs .L157
ldr w0, [sp, 48]
sub w0, w0, #1
str w0, [sp, 40]
b .L156
.L157:
ldr w1, [sp, 44]
ldr w0, [sp, 52]
cmp w1, w0
bls .L158
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 36]
b .L156
.L158:
ldr w1, [sp, 48]
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
lsl w0, w0, 1
sxtw x0, w0
add x0, x0, 22
ldr x1, [sp, 56]
add x0, x1, x0
bl ttSHORT
sxth w0, w0
b .L153
.L156:
ldr w1, [sp, 36]
ldr w0, [sp, 40]
cmp w1, w0
ble .L159
mov w0, 0
.L153:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE24:
.size stbtt_GetGlyphKernAdvance, .-stbtt_GetGlyphKernAdvance
.align 2
.global stbtt_GetCodepointKernAdvance
.type stbtt_GetCodepointKernAdvance, %function
stbtt_GetCodepointKernAdvance:
.LFB25:
.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]
str w1, [sp, 36]
str w2, [sp, 32]
ldr x0, [sp, 40]
ldr w0, [x0, 44]
cmp w0, 0
bne .L161
mov w0, 0
b .L162
.L161:
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl stbtt_FindGlyphIndex
mov w19, w0
ldr w1, [sp, 32]
ldr x0, [sp, 40]
bl stbtt_FindGlyphIndex
mov w2, w0
mov w1, w19
ldr x0, [sp, 40]
bl stbtt_GetGlyphKernAdvance
.L162:
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
.LFE25:
.size stbtt_GetCodepointKernAdvance, .-stbtt_GetCodepointKernAdvance
.align 2
.global stbtt_GetCodepointHMetrics
.type stbtt_GetCodepointHMetrics, %function
stbtt_GetCodepointHMetrics:
.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 w1, [sp, 36]
str x2, [sp, 24]
str x3, [sp, 16]
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl stbtt_FindGlyphIndex
ldr x3, [sp, 16]
ldr x2, [sp, 24]
mov w1, w0
ldr x0, [sp, 40]
bl stbtt_GetGlyphHMetrics
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE26:
.size stbtt_GetCodepointHMetrics, .-stbtt_GetCodepointHMetrics
.align 2
.global stbtt_GetFontVMetrics
.type stbtt_GetFontVMetrics, %function
stbtt_GetFontVMetrics:
.LFB27:
.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 x0, [sp, 32]
cmp x0, 0
beq .L165
ldr x0, [sp, 40]
ldr x1, [x0, 8]
ldr x0, [sp, 40]
ldr w0, [x0, 36]
sxtw x0, w0
add x0, x0, 4
add x0, x1, x0
bl ttSHORT
sxth w0, w0
mov w1, w0
ldr x0, [sp, 32]
str w1, [x0]
.L165:
ldr x0, [sp, 24]
cmp x0, 0
beq .L166
ldr x0, [sp, 40]
ldr x1, [x0, 8]
ldr x0, [sp, 40]
ldr w0, [x0, 36]
sxtw x0, w0
add x0, x0, 6
add x0, x1, x0
bl ttSHORT
sxth w0, w0
mov w1, w0
ldr x0, [sp, 24]
str w1, [x0]
.L166:
ldr x0, [sp, 16]
cmp x0, 0
beq .L168
ldr x0, [sp, 40]
ldr x1, [x0, 8]
ldr x0, [sp, 40]
ldr w0, [x0, 36]
sxtw x0, w0
add x0, x0, 8
add x0, x1, x0
bl ttSHORT
sxth w0, w0
mov w1, w0
ldr x0, [sp, 16]
str w1, [x0]
.L168:
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE27:
.size stbtt_GetFontVMetrics, .-stbtt_GetFontVMetrics
.align 2
.global stbtt_GetFontBoundingBox
.type stbtt_GetFontBoundingBox, %function
stbtt_GetFontBoundingBox:
.LFB28:
.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 x1, [sp, 48]
str x2, [sp, 40]
str x3, [sp, 32]
str x4, [sp, 24]
ldr x0, [sp, 56]
ldr x1, [x0, 8]
ldr x0, [sp, 56]
ldr w0, [x0, 28]
sxtw x0, w0
add x0, x0, 36
add x0, x1, x0
bl ttSHORT
sxth w0, w0
mov w1, w0
ldr x0, [sp, 48]
str w1, [x0]
ldr x0, [sp, 56]
ldr x1, [x0, 8]
ldr x0, [sp, 56]
ldr w0, [x0, 28]
sxtw x0, w0
add x0, x0, 38
add x0, x1, x0
bl ttSHORT
sxth w0, w0
mov w1, w0
ldr x0, [sp, 40]
str w1, [x0]
ldr x0, [sp, 56]
ldr x1, [x0, 8]
ldr x0, [sp, 56]
ldr w0, [x0, 28]
sxtw x0, w0
add x0, x0, 40
add x0, x1, x0
bl ttSHORT
sxth w0, w0
mov w1, w0
ldr x0, [sp, 32]
str w1, [x0]
ldr x0, [sp, 56]
ldr x1, [x0, 8]
ldr x0, [sp, 56]
ldr w0, [x0, 28]
sxtw x0, w0
add x0, x0, 42
add x0, x1, x0
bl ttSHORT
sxth w0, w0
mov w1, w0
ldr x0, [sp, 24]
str w1, [x0]
nop
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE28:
.size stbtt_GetFontBoundingBox, .-stbtt_GetFontBoundingBox
.align 2
.global stbtt_ScaleForPixelHeight
.type stbtt_ScaleForPixelHeight, %function
stbtt_ScaleForPixelHeight:
.LFB29:
.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 s0, [sp, 36]
ldr x0, [sp, 40]
ldr x1, [x0, 8]
ldr x0, [sp, 40]
ldr w0, [x0, 36]
sxtw x0, w0
add x0, x0, 4
add x0, x1, x0
bl ttSHORT
sxth w0, w0
mov w19, w0
ldr x0, [sp, 40]
ldr x1, [x0, 8]
ldr x0, [sp, 40]
ldr w0, [x0, 36]
sxtw x0, w0
add x0, x0, 6
add x0, x1, x0
bl ttSHORT
sxth w0, w0
sub w0, w19, w0
str w0, [sp, 60]
ldr s0, [sp, 60]
scvtf s0, s0
ldr s1, [sp, 36]
fdiv s0, s1, s0
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
.LFE29:
.size stbtt_ScaleForPixelHeight, .-stbtt_ScaleForPixelHeight
.align 2
.global stbtt_ScaleForMappingEmToPixels
.type stbtt_ScaleForMappingEmToPixels, %function
stbtt_ScaleForMappingEmToPixels:
.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, 24]
str s0, [sp, 20]
ldr x0, [sp, 24]
ldr x1, [x0, 8]
ldr x0, [sp, 24]
ldr w0, [x0, 28]
sxtw x0, w0
add x0, x0, 18
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
str w0, [sp, 44]
ldr s0, [sp, 44]
scvtf s0, s0
ldr s1, [sp, 20]
fdiv s0, s1, s0
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE30:
.size stbtt_ScaleForMappingEmToPixels, .-stbtt_ScaleForMappingEmToPixels
.align 2
.global stbtt_FreeShape
.type stbtt_FreeShape, %function
stbtt_FreeShape:
.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 x1, [sp, 16]
ldr x0, [sp, 16]
bl free
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE31:
.size stbtt_FreeShape, .-stbtt_FreeShape
.align 2
.global stbtt_GetGlyphBitmapBoxSubpixel
.type stbtt_GetGlyphBitmapBoxSubpixel, %function
stbtt_GetGlyphBitmapBoxSubpixel:
.LFB32:
.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, 72]
str w1, [sp, 68]
str s0, [sp, 64]
str s1, [sp, 60]
str s2, [sp, 56]
str s3, [sp, 52]
str x2, [sp, 40]
str x3, [sp, 32]
str x4, [sp, 24]
str x5, [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
add x3, sp, 100
add x2, sp, 96
add x1, sp, 92
add x0, sp, 88
mov x5, x3
mov x4, x2
mov x3, x1
mov x2, x0
ldr w1, [sp, 68]
ldr x0, [sp, 72]
bl stbtt_GetGlyphBox
cmp w0, 0
bne .L176
str wzr, [sp, 100]
ldr w0, [sp, 100]
str w0, [sp, 96]
ldr w0, [sp, 96]
str w0, [sp, 92]
ldr w0, [sp, 92]
str w0, [sp, 88]
.L176:
ldr x0, [sp, 40]
cmp x0, 0
beq .L177
ldr s0, [sp, 88]
scvtf s1, s0
ldr s0, [sp, 64]
fmul s1, s1, s0
ldr s0, [sp, 56]
fadd s0, s1, s0
fcvt d0, s0
bl floor
fcvtzs w1, d0
ldr x0, [sp, 40]
str w1, [x0]
.L177:
ldr x0, [sp, 32]
cmp x0, 0
beq .L178
ldr s0, [sp, 100]
scvtf s1, s0
ldr s0, [sp, 60]
fmul s1, s1, s0
ldr s0, [sp, 52]
fadd s0, s1, s0
fcvt d0, s0
bl ceil
fcvtzs w0, d0
neg w1, w0
ldr x0, [sp, 32]
str w1, [x0]
.L178:
ldr x0, [sp, 24]
cmp x0, 0
beq .L179
ldr s0, [sp, 96]
scvtf s1, s0
ldr s0, [sp, 64]
fmul s1, s1, s0
ldr s0, [sp, 56]
fadd s0, s1, s0
fcvt d0, s0
bl ceil
fcvtzs w1, d0
ldr x0, [sp, 24]
str w1, [x0]
.L179:
ldr x0, [sp, 16]
cmp x0, 0
beq .L182
ldr s0, [sp, 92]
scvtf s1, s0
ldr s0, [sp, 60]
fmul s1, s1, s0
ldr s0, [sp, 52]
fadd s0, s1, s0
fcvt d0, s0
bl floor
fcvtzs w0, d0
neg w1, w0
ldr x0, [sp, 16]
str w1, [x0]
.L182:
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 .L181
bl __stack_chk_fail
.L181:
ldp x29, x30, [sp], 112
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE32:
.size stbtt_GetGlyphBitmapBoxSubpixel, .-stbtt_GetGlyphBitmapBoxSubpixel
.align 2
.global stbtt_GetGlyphBitmapBox
.type stbtt_GetGlyphBitmapBox, %function
stbtt_GetGlyphBitmapBox:
.LFB33:
.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, 72]
str w1, [sp, 68]
str s0, [sp, 64]
str s1, [sp, 60]
str x2, [sp, 48]
str x3, [sp, 40]
str x4, [sp, 32]
str x5, [sp, 24]
ldr x5, [sp, 24]
ldr x4, [sp, 32]
ldr x3, [sp, 40]
ldr x2, [sp, 48]
movi v3.2s, #0
movi v2.2s, #0
ldr s1, [sp, 60]
ldr s0, [sp, 64]
ldr w1, [sp, 68]
ldr x0, [sp, 72]
bl stbtt_GetGlyphBitmapBoxSubpixel
nop
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE33:
.size stbtt_GetGlyphBitmapBox, .-stbtt_GetGlyphBitmapBox
.align 2
.global stbtt_GetCodepointBitmapBoxSubpixel
.type stbtt_GetCodepointBitmapBoxSubpixel, %function
stbtt_GetCodepointBitmapBoxSubpixel:
.LFB34:
.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, 72]
str w1, [sp, 68]
str s0, [sp, 64]
str s1, [sp, 60]
str s2, [sp, 56]
str s3, [sp, 52]
str x2, [sp, 40]
str x3, [sp, 32]
str x4, [sp, 24]
str x5, [sp, 16]
ldr w1, [sp, 68]
ldr x0, [sp, 72]
bl stbtt_FindGlyphIndex
ldr x5, [sp, 16]
ldr x4, [sp, 24]
ldr x3, [sp, 32]
ldr x2, [sp, 40]
ldr s3, [sp, 52]
ldr s2, [sp, 56]
ldr s1, [sp, 60]
ldr s0, [sp, 64]
mov w1, w0
ldr x0, [sp, 72]
bl stbtt_GetGlyphBitmapBoxSubpixel
nop
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE34:
.size stbtt_GetCodepointBitmapBoxSubpixel, .-stbtt_GetCodepointBitmapBoxSubpixel
.align 2
.global stbtt_GetCodepointBitmapBox
.type stbtt_GetCodepointBitmapBox, %function
stbtt_GetCodepointBitmapBox:
.LFB35:
.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, 72]
str w1, [sp, 68]
str s0, [sp, 64]
str s1, [sp, 60]
str x2, [sp, 48]
str x3, [sp, 40]
str x4, [sp, 32]
str x5, [sp, 24]
ldr x5, [sp, 24]
ldr x4, [sp, 32]
ldr x3, [sp, 40]
ldr x2, [sp, 48]
movi v3.2s, #0
movi v2.2s, #0
ldr s1, [sp, 60]
ldr s0, [sp, 64]
ldr w1, [sp, 68]
ldr x0, [sp, 72]
bl stbtt_GetCodepointBitmapBoxSubpixel
nop
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE35:
.size stbtt_GetCodepointBitmapBox, .-stbtt_GetCodepointBitmapBox
.section .rodata
.align 3
.LC12:
.string "e->y0 <= start_point"
.text
.align 2
.type new_active, %function
new_active:
.LFB36:
.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 s0, [sp, 32]
str x2, [sp, 24]
mov x0, 32
bl malloc
str x0, [sp, 56]
ldr x0, [sp, 40]
ldr s1, [x0, 8]
ldr x0, [sp, 40]
ldr s0, [x0]
fsub s1, s1, s0
ldr x0, [sp, 40]
ldr s2, [x0, 12]
ldr x0, [sp, 40]
ldr s0, [x0, 4]
fsub s0, s2, s0
fdiv s0, s1, s0
str s0, [sp, 52]
ldr x0, [sp, 40]
ldr s0, [x0, 4]
ldr s1, [sp, 32]
fcmpe s1, s0
bge .L187
adrp x0, __PRETTY_FUNCTION__.2
add x3, x0, :lo12:__PRETTY_FUNCTION__.2
mov w2, 1412
adrp x0, .LC9
add x1, x0, :lo12:.LC9
adrp x0, .LC12
add x0, x0, :lo12:.LC12
bl __assert_fail
.L187:
ldr x0, [sp, 56]
cmp x0, 0
bne .L188
ldr x0, [sp, 56]
b .L189
.L188:
ldr s0, [sp, 52]
fcmpe s0, #0.0
bmi .L195
b .L196
.L195:
ldr s0, [sp, 52]
fneg s0, s0
mov w0, 1149239296
fmov s1, w0
fmul s0, s0, s1
fcvt d0, s0
bl floor
fcvtzs w0, d0
neg w1, w0
ldr x0, [sp, 56]
str w1, [x0, 4]
b .L192
.L196:
ldr s0, [sp, 52]
mov w0, 1149239296
fmov s1, w0
fmul s0, s0, s1
fcvt d0, s0
bl floor
fcvtzs w1, d0
ldr x0, [sp, 56]
str w1, [x0, 4]
.L192:
ldr x0, [sp, 40]
ldr s1, [x0]
ldr x0, [sp, 40]
ldr s0, [x0, 4]
ldr s2, [sp, 32]
fsub s2, s2, s0
ldr s0, [sp, 52]
fmul s0, s2, s0
fadd s0, s1, s0
mov w0, 1149239296
fmov s1, w0
fmul s0, s0, s1
fcvt d0, s0
bl floor
fcvtzs w1, d0
ldr x0, [sp, 56]
str w1, [x0]
ldr x0, [sp, 56]
ldr w1, [x0]
ldr w0, [sp, 36]
lsl w0, w0, 10
sub w1, w1, w0
ldr x0, [sp, 56]
str w1, [x0]
ldr x0, [sp, 40]
ldr s0, [x0, 12]
ldr x0, [sp, 56]
str s0, [x0, 8]
ldr x0, [sp, 56]
str xzr, [x0, 16]
ldr x0, [sp, 40]
ldr w0, [x0, 16]
cmp w0, 0
beq .L193
mov w0, 1
b .L194
.L193:
mov w0, -1
.L194:
ldr x1, [sp, 56]
str w0, [x1, 24]
ldr x0, [sp, 56]
.L189:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE36:
.size new_active, .-new_active
.align 2
.type stbtt__fill_active_edges, %function
stbtt__fill_active_edges:
.LFB37:
.cfi_startproc
sub sp, sp, #64
.cfi_def_cfa_offset 64
str x0, [sp, 24]
str w1, [sp, 20]
str x2, [sp, 8]
str w3, [sp, 16]
str wzr, [sp, 44]
str wzr, [sp, 48]
b .L198
.L208:
ldr w0, [sp, 48]
cmp w0, 0
bne .L199
ldr x0, [sp, 8]
ldr w0, [x0]
str w0, [sp, 44]
ldr x0, [sp, 8]
ldr w0, [x0, 24]
ldr w1, [sp, 48]
add w0, w1, w0
str w0, [sp, 48]
b .L200
.L199:
ldr x0, [sp, 8]
ldr w0, [x0]
str w0, [sp, 60]
ldr x0, [sp, 8]
ldr w0, [x0, 24]
ldr w1, [sp, 48]
add w0, w1, w0
str w0, [sp, 48]
ldr w0, [sp, 48]
cmp w0, 0
bne .L200
ldr w0, [sp, 44]
asr w0, w0, 10
str w0, [sp, 52]
ldr w0, [sp, 60]
asr w0, w0, 10
str w0, [sp, 56]
ldr w1, [sp, 52]
ldr w0, [sp, 20]
cmp w1, w0
bge .L200
ldr w0, [sp, 56]
cmp w0, 0
blt .L200
ldr w1, [sp, 52]
ldr w0, [sp, 56]
cmp w1, w0
bne .L201
ldrsw x0, [sp, 52]
ldr x1, [sp, 24]
add x0, x1, x0
ldrb w2, [x0]
ldr w1, [sp, 60]
ldr w0, [sp, 44]
sub w1, w1, w0
ldr w0, [sp, 16]
mul w0, w1, w0
asr w0, w0, 10
and w1, w0, 255
ldrsw x0, [sp, 52]
ldr x3, [sp, 24]
add x0, x3, x0
add w1, w2, w1
and w1, w1, 255
strb w1, [x0]
b .L200
.L201:
ldr w0, [sp, 52]
cmp w0, 0
blt .L202
ldrsw x0, [sp, 52]
ldr x1, [sp, 24]
add x0, x1, x0
ldrb w2, [x0]
ldr w0, [sp, 44]
and w0, w0, 1023
mov w1, 1024
sub w1, w1, w0
ldr w0, [sp, 16]
mul w0, w1, w0
asr w0, w0, 10
and w1, w0, 255
ldrsw x0, [sp, 52]
ldr x3, [sp, 24]
add x0, x3, x0
add w1, w2, w1
and w1, w1, 255
strb w1, [x0]
b .L203
.L202:
mov w0, -1
str w0, [sp, 52]
.L203:
ldr w1, [sp, 56]
ldr w0, [sp, 20]
cmp w1, w0
bge .L204
ldrsw x0, [sp, 56]
ldr x1, [sp, 24]
add x0, x1, x0
ldrb w2, [x0]
ldr w0, [sp, 60]
and w1, w0, 1023
ldr w0, [sp, 16]
mul w0, w1, w0
asr w0, w0, 10
and w1, w0, 255
ldrsw x0, [sp, 56]
ldr x3, [sp, 24]
add x0, x3, x0
add w1, w2, w1
and w1, w1, 255
strb w1, [x0]
b .L205
.L204:
ldr w0, [sp, 20]
str w0, [sp, 56]
.L205:
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
b .L206
.L207:
ldrsw x0, [sp, 52]
ldr x1, [sp, 24]
add x0, x1, x0
ldrb w2, [x0]
ldr w0, [sp, 16]
and w1, w0, 255
ldrsw x0, [sp, 52]
ldr x3, [sp, 24]
add x0, x3, x0
add w1, w2, w1
and w1, w1, 255
strb w1, [x0]
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
.L206:
ldr w1, [sp, 52]
ldr w0, [sp, 56]
cmp w1, w0
blt .L207
.L200:
ldr x0, [sp, 8]
ldr x0, [x0, 16]
str x0, [sp, 8]
.L198:
ldr x0, [sp, 8]
cmp x0, 0
bne .L208
nop
nop
add sp, sp, 64
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE37:
.size stbtt__fill_active_edges, .-stbtt__fill_active_edges
.section .rodata
.align 3
.LC13:
.string "z->valid"
.text
.align 2
.type stbtt__rasterize_sorted_edges, %function
stbtt__rasterize_sorted_edges:
.LFB38:
.cfi_startproc
sub sp, sp, #688
.cfi_def_cfa_offset 688
stp x29, x30, [sp]
.cfi_offset 29, -688
.cfi_offset 30, -680
mov x29, sp
str x0, [sp, 56]
str x1, [sp, 48]
str w2, [sp, 44]
str w3, [sp, 40]
str w4, [sp, 36]
str w5, [sp, 32]
str x6, [sp, 24]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 680]
mov x1, 0
str xzr, [sp, 96]
str wzr, [sp, 76]
mov w1, 255
ldr w0, [sp, 40]
sdiv w0, w1, w0
str w0, [sp, 88]
ldr x0, [sp, 56]
ldr w0, [x0]
cmp w0, 512
ble .L210
ldr x0, [sp, 56]
ldr w0, [x0]
sxtw x0, w0
bl malloc
str x0, [sp, 104]
b .L211
.L210:
add x0, sp, 168
str x0, [sp, 104]
.L211:
ldr w1, [sp, 32]
ldr w0, [sp, 40]
mul w0, w1, w0
str w0, [sp, 72]
ldr x0, [sp, 56]
ldr w1, [x0, 4]
ldr w0, [sp, 32]
add w0, w1, w0
fmov s0, w0
scvtf s1, s0
ldr s0, [sp, 40]
scvtf s0, s0
fmul s1, s1, s0
ldrsw x1, [sp, 44]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 48]
add x0, x0, x1
fmov s0, 1.0e+0
fadd s0, s1, s0
str s0, [x0, 4]
b .L212
.L237:
ldr x0, [sp, 56]
ldr w0, [x0]
sxtw x0, w0
mov x2, x0
mov w1, 0
ldr x0, [sp, 104]
bl memset
str wzr, [sp, 80]
b .L213
.L236:
ldr s0, [sp, 72]
scvtf s1, s0
fmov s0, 5.0e-1
fadd s0, s1, s0
str s0, [sp, 92]
add x0, sp, 96
str x0, [sp, 112]
b .L214
.L218:
ldr x0, [sp, 112]
ldr x0, [x0]
str x0, [sp, 160]
ldr x0, [sp, 160]
ldr s0, [x0, 8]
ldr s1, [sp, 92]
fcmpe s1, s0
bge .L242
b .L244
.L242:
ldr x0, [sp, 160]
ldr x1, [x0, 16]
ldr x0, [sp, 112]
str x1, [x0]
ldr x0, [sp, 160]
ldr w0, [x0, 24]
cmp w0, 0
bne .L217
adrp x0, __PRETTY_FUNCTION__.1
add x3, x0, :lo12:__PRETTY_FUNCTION__.1
mov w2, 1501
adrp x0, .LC9
add x1, x0, :lo12:.LC9
adrp x0, .LC13
add x0, x0, :lo12:.LC13
bl __assert_fail
.L217:
ldr x0, [sp, 160]
str wzr, [x0, 24]
ldr x0, [sp, 160]
bl free
b .L214
.L244:
ldr x0, [sp, 160]
ldr w1, [x0]
ldr x0, [sp, 160]
ldr w0, [x0, 4]
add w1, w1, w0
ldr x0, [sp, 160]
str w1, [x0]
ldr x0, [sp, 112]
ldr x0, [x0]
add x0, x0, 16
str x0, [sp, 112]
.L214:
ldr x0, [sp, 112]
ldr x0, [x0]
cmp x0, 0
bne .L218
.L225:
str wzr, [sp, 84]
add x0, sp, 96
str x0, [sp, 112]
b .L219
.L222:
ldr x0, [sp, 112]
ldr x0, [x0]
ldr w1, [x0]
ldr x0, [sp, 112]
ldr x0, [x0]
ldr x0, [x0, 16]
ldr w0, [x0]
cmp w1, w0
ble .L220
ldr x0, [sp, 112]
ldr x0, [x0]
str x0, [sp, 136]
ldr x0, [sp, 136]
ldr x0, [x0, 16]
str x0, [sp, 144]
ldr x0, [sp, 144]
ldr x1, [x0, 16]
ldr x0, [sp, 136]
str x1, [x0, 16]
ldr x0, [sp, 144]
ldr x1, [sp, 136]
str x1, [x0, 16]
ldr x0, [sp, 112]
ldr x1, [sp, 144]
str x1, [x0]
mov w0, 1
str w0, [sp, 84]
.L220:
ldr x0, [sp, 112]
ldr x0, [x0]
add x0, x0, 16
str x0, [sp, 112]
.L219:
ldr x0, [sp, 112]
ldr x0, [x0]
cmp x0, 0
beq .L221
ldr x0, [sp, 112]
ldr x0, [x0]
ldr x0, [x0, 16]
cmp x0, 0
bne .L222
.L221:
ldr w0, [sp, 84]
cmp w0, 0
beq .L246
b .L225
.L246:
nop
b .L226
.L234:
ldr x0, [sp, 48]
ldr s0, [x0, 12]
ldr s1, [sp, 92]
fcmpe s1, s0
bmi .L243
b .L227
.L243:
ldr x2, [sp, 24]
ldr s0, [sp, 92]
ldr w1, [sp, 36]
ldr x0, [sp, 48]
bl new_active
str x0, [sp, 152]
ldr x0, [sp, 96]
cmp x0, 0
bne .L229
ldr x0, [sp, 152]
str x0, [sp, 96]
b .L227
.L229:
ldr x0, [sp, 152]
ldr w1, [x0]
ldr x0, [sp, 96]
ldr w0, [x0]
cmp w1, w0
bge .L230
ldr x1, [sp, 96]
ldr x0, [sp, 152]
str x1, [x0, 16]
ldr x0, [sp, 152]
str x0, [sp, 96]
b .L227
.L230:
ldr x0, [sp, 96]
str x0, [sp, 120]
b .L231
.L233:
ldr x0, [sp, 120]
ldr x0, [x0, 16]
str x0, [sp, 120]
.L231:
ldr x0, [sp, 120]
ldr x0, [x0, 16]
cmp x0, 0
beq .L232
ldr x0, [sp, 120]
ldr x0, [x0, 16]
ldr w1, [x0]
ldr x0, [sp, 152]
ldr w0, [x0]
cmp w1, w0
blt .L233
.L232:
ldr x0, [sp, 120]
ldr x1, [x0, 16]
ldr x0, [sp, 152]
str x1, [x0, 16]
ldr x0, [sp, 120]
ldr x1, [sp, 152]
str x1, [x0, 16]
.L227:
ldr x0, [sp, 48]
add x0, x0, 20
str x0, [sp, 48]
.L226:
ldr x0, [sp, 48]
ldr s0, [x0, 4]
ldr s1, [sp, 92]
fcmpe s1, s0
bge .L234
ldr x0, [sp, 96]
cmp x0, 0
beq .L235
ldr x0, [sp, 56]
ldr w0, [x0]
ldr x1, [sp, 96]
ldr w3, [sp, 88]
mov x2, x1
mov w1, w0
ldr x0, [sp, 104]
bl stbtt__fill_active_edges
.L235:
ldr w0, [sp, 72]
add w0, w0, 1
str w0, [sp, 72]
ldr w0, [sp, 80]
add w0, w0, 1
str w0, [sp, 80]
.L213:
ldr w1, [sp, 80]
ldr w0, [sp, 40]
cmp w1, w0
blt .L236
ldr x0, [sp, 56]
ldr x1, [x0, 16]
ldr x0, [sp, 56]
ldr w2, [x0, 8]
ldr w0, [sp, 76]
mul w0, w2, w0
sxtw x0, w0
add x3, x1, x0
ldr x0, [sp, 56]
ldr w0, [x0]
sxtw x0, w0
mov x2, x0
ldr x1, [sp, 104]
mov x0, x3
bl memcpy
ldr w0, [sp, 76]
add w0, w0, 1
str w0, [sp, 76]
.L212:
ldr x0, [sp, 56]
ldr w0, [x0, 4]
ldr w1, [sp, 76]
cmp w1, w0
blt .L237
b .L238
.L239:
ldr x0, [sp, 96]
str x0, [sp, 128]
ldr x0, [sp, 96]
ldr x0, [x0, 16]
str x0, [sp, 96]
ldr x0, [sp, 128]
bl free
.L238:
ldr x0, [sp, 96]
cmp x0, 0
bne .L239
add x0, sp, 168
ldr x1, [sp, 104]
cmp x1, x0
beq .L247
ldr x0, [sp, 104]
bl free
.L247:
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 680]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L241
bl __stack_chk_fail
.L241:
ldp x29, x30, [sp]
add sp, sp, 688
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE38:
.size stbtt__rasterize_sorted_edges, .-stbtt__rasterize_sorted_edges
.align 2
.type stbtt__edge_compare, %function
stbtt__edge_compare:
.LFB39:
.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 s1, [x0, 4]
ldr x0, [sp, 24]
ldr s0, [x0, 4]
fcmpe s1, s0
bmi .L254
b .L256
.L254:
mov w0, -1
b .L251
.L256:
ldr x0, [sp, 16]
ldr s1, [x0, 4]
ldr x0, [sp, 24]
ldr s0, [x0, 4]
fcmpe s1, s0
bgt .L255
b .L257
.L255:
mov w0, 1
b .L251
.L257:
mov w0, 0
.L251:
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE39:
.size stbtt__edge_compare, .-stbtt__edge_compare
.align 2
.type stbtt__rasterize, %function
stbtt__rasterize:
.LFB40:
.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, 72]
str x1, [sp, 64]
str x2, [sp, 56]
str w3, [sp, 52]
str s0, [sp, 48]
str s1, [sp, 44]
str s2, [sp, 40]
str s3, [sp, 36]
str w4, [sp, 32]
str w5, [sp, 28]
str w6, [sp, 24]
str x7, [sp, 16]
ldr w0, [sp, 24]
cmp w0, 0
beq .L259
ldr s0, [sp, 44]
fneg s0, s0
b .L260
.L259:
ldr s0, [sp, 44]
.L260:
str s0, [sp, 120]
ldr x0, [sp, 72]
ldr w0, [x0, 4]
cmp w0, 7
bgt .L261
mov w0, 15
b .L262
.L261:
mov w0, 5
.L262:
str w0, [sp, 124]
str wzr, [sp, 92]
str wzr, [sp, 96]
b .L263
.L264:
ldrsw x0, [sp, 96]
lsl x0, x0, 2
ldr x1, [sp, 56]
add x0, x1, x0
ldr w0, [x0]
ldr w1, [sp, 92]
add w0, w1, w0
str w0, [sp, 92]
ldr w0, [sp, 96]
add w0, w0, 1
str w0, [sp, 96]
.L263:
ldr w1, [sp, 96]
ldr w0, [sp, 52]
cmp w1, w0
blt .L264
ldr w0, [sp, 92]
add w0, w0, 1
sxtw x1, w0
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 2
bl malloc
str x0, [sp, 128]
ldr x0, [sp, 128]
cmp x0, 0
beq .L276
str wzr, [sp, 92]
str wzr, [sp, 108]
str wzr, [sp, 96]
b .L267
.L275:
ldrsw x0, [sp, 108]
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 136]
ldrsw x0, [sp, 96]
lsl x0, x0, 2
ldr x1, [sp, 56]
add x0, x1, x0
ldr w0, [x0]
ldr w1, [sp, 108]
add w0, w1, w0
str w0, [sp, 108]
ldrsw x0, [sp, 96]
lsl x0, x0, 2
ldr x1, [sp, 56]
add x0, x1, x0
ldr w0, [x0]
sub w0, w0, #1
str w0, [sp, 100]
str wzr, [sp, 104]
b .L268
.L274:
ldr w0, [sp, 104]
str w0, [sp, 112]
ldr w0, [sp, 100]
str w0, [sp, 116]
ldrsw x0, [sp, 100]
lsl x0, x0, 3
ldr x1, [sp, 136]
add x0, x1, x0
ldr s1, [x0, 4]
ldrsw x0, [sp, 104]
lsl x0, x0, 3
ldr x1, [sp, 136]
add x0, x1, x0
ldr s0, [x0, 4]
fcmp s1, s0
beq .L277
ldrsw x1, [sp, 92]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 128]
add x0, x0, x1
str wzr, [x0, 16]
ldr w0, [sp, 24]
cmp w0, 0
beq .L271
ldrsw x0, [sp, 100]
lsl x0, x0, 3
ldr x1, [sp, 136]
add x0, x1, x0
ldr s1, [x0, 4]
ldrsw x0, [sp, 104]
lsl x0, x0, 3
ldr x1, [sp, 136]
add x0, x1, x0
ldr s0, [x0, 4]
fcmpe s1, s0
cset w0, gt
and w0, w0, 255
b .L272
.L271:
ldrsw x0, [sp, 100]
lsl x0, x0, 3
ldr x1, [sp, 136]
add x0, x1, x0
ldr s1, [x0, 4]
ldrsw x0, [sp, 104]
lsl x0, x0, 3
ldr x1, [sp, 136]
add x0, x1, x0
ldr s0, [x0, 4]
fcmpe s1, s0
cset w0, mi
and w0, w0, 255
.L272:
cmp w0, 0
beq .L273
ldrsw x1, [sp, 92]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 128]
add x0, x0, x1
mov w1, 1
str w1, [x0, 16]
ldr w0, [sp, 100]
str w0, [sp, 112]
ldr w0, [sp, 104]
str w0, [sp, 116]
.L273:
ldrsw x0, [sp, 112]
lsl x0, x0, 3
ldr x1, [sp, 136]
add x0, x1, x0
ldr s1, [x0]
ldr s0, [sp, 48]
fmul s1, s1, s0
ldrsw x1, [sp, 92]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 128]
add x0, x0, x1
ldr s0, [sp, 40]
fadd s0, s1, s0
str s0, [x0]
ldrsw x0, [sp, 112]
lsl x0, x0, 3
ldr x1, [sp, 136]
add x0, x1, x0
ldr s1, [x0, 4]
ldr s0, [sp, 120]
fmul s1, s1, s0
ldr s0, [sp, 124]
scvtf s0, s0
fmul s1, s1, s0
ldrsw x1, [sp, 92]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 128]
add x0, x0, x1
ldr s0, [sp, 36]
fadd s0, s1, s0
str s0, [x0, 4]
ldrsw x0, [sp, 116]
lsl x0, x0, 3
ldr x1, [sp, 136]
add x0, x1, x0
ldr s1, [x0]
ldr s0, [sp, 48]
fmul s1, s1, s0
ldrsw x1, [sp, 92]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 128]
add x0, x0, x1
ldr s0, [sp, 40]
fadd s0, s1, s0
str s0, [x0, 8]
ldrsw x0, [sp, 116]
lsl x0, x0, 3
ldr x1, [sp, 136]
add x0, x1, x0
ldr s1, [x0, 4]
ldr s0, [sp, 120]
fmul s1, s1, s0
ldr s0, [sp, 124]
scvtf s0, s0
fmul s1, s1, s0
ldrsw x1, [sp, 92]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 128]
add x0, x0, x1
ldr s0, [sp, 36]
fadd s0, s1, s0
str s0, [x0, 12]
ldr w0, [sp, 92]
add w0, w0, 1
str w0, [sp, 92]
b .L270
.L277:
nop
.L270:
ldr w0, [sp, 104]
add w1, w0, 1
str w1, [sp, 104]
str w0, [sp, 100]
.L268:
ldrsw x0, [sp, 96]
lsl x0, x0, 2
ldr x1, [sp, 56]
add x0, x1, x0
ldr w0, [x0]
ldr w1, [sp, 104]
cmp w1, w0
blt .L274
ldr w0, [sp, 96]
add w0, w0, 1
str w0, [sp, 96]
.L267:
ldr w1, [sp, 96]
ldr w0, [sp, 52]
cmp w1, w0
blt .L275
ldrsw x1, [sp, 92]
adrp x0, stbtt__edge_compare
add x3, x0, :lo12:stbtt__edge_compare
mov x2, 20
ldr x0, [sp, 128]
bl qsort
ldr x6, [sp, 16]
ldr w5, [sp, 28]
ldr w4, [sp, 32]
ldr w3, [sp, 124]
ldr w2, [sp, 92]
ldr x1, [sp, 128]
ldr x0, [sp, 72]
bl stbtt__rasterize_sorted_edges
ldr x0, [sp, 128]
bl free
b .L258
.L276:
nop
.L258:
ldp x29, x30, [sp], 144
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE40:
.size stbtt__rasterize, .-stbtt__rasterize
.align 2
.type stbtt__add_point, %function
stbtt__add_point:
.LFB41:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 24]
str w1, [sp, 20]
str s0, [sp, 16]
str s1, [sp, 12]
ldr x0, [sp, 24]
cmp x0, 0
beq .L281
ldrsw x0, [sp, 20]
lsl x0, x0, 3
ldr x1, [sp, 24]
add x0, x1, x0
ldr s0, [sp, 16]
str s0, [x0]
ldrsw x0, [sp, 20]
lsl x0, x0, 3
ldr x1, [sp, 24]
add x0, x1, x0
ldr s0, [sp, 12]
str s0, [x0, 4]
b .L278
.L281:
nop
.L278:
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE41:
.size stbtt__add_point, .-stbtt__add_point
.align 2
.type stbtt__tesselate_curve, %function
stbtt__tesselate_curve:
.LFB42:
.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, 56]
str x1, [sp, 48]
str s0, [sp, 44]
str s1, [sp, 40]
str s2, [sp, 36]
str s3, [sp, 32]
str s4, [sp, 28]
str s5, [sp, 24]
str s6, [sp, 20]
str w2, [sp, 16]
ldr s0, [sp, 36]
fadd s1, s0, s0
ldr s0, [sp, 44]
fadd s1, s1, s0
ldr s0, [sp, 28]
fadd s1, s1, s0
fmov s0, 4.0e+0
fdiv s0, s1, s0
str s0, [sp, 64]
ldr s0, [sp, 32]
fadd s1, s0, s0
ldr s0, [sp, 40]
fadd s1, s1, s0
ldr s0, [sp, 24]
fadd s1, s1, s0
fmov s0, 4.0e+0
fdiv s0, s1, s0
str s0, [sp, 68]
ldr s1, [sp, 44]
ldr s0, [sp, 28]
fadd s1, s1, s0
fmov s0, 2.0e+0
fdiv s1, s1, s0
ldr s0, [sp, 64]
fsub s0, s1, s0
str s0, [sp, 72]
ldr s1, [sp, 40]
ldr s0, [sp, 24]
fadd s1, s1, s0
fmov s0, 2.0e+0
fdiv s1, s1, s0
ldr s0, [sp, 68]
fsub s0, s1, s0
str s0, [sp, 76]
ldr w0, [sp, 16]
cmp w0, 16
ble .L283
mov w0, 1
b .L284
.L283:
ldr s0, [sp, 72]
fmul s1, s0, s0
ldr s0, [sp, 76]
fmul s0, s0, s0
fadd s0, s1, s0
ldr s1, [sp, 20]
fcmpe s1, s0
bmi .L288
b .L289
.L288:
ldr s1, [sp, 44]
ldr s0, [sp, 36]
fadd s1, s1, s0
fmov s0, 2.0e+0
fdiv s2, s1, s0
ldr s1, [sp, 40]
ldr s0, [sp, 32]
fadd s1, s1, s0
fmov s0, 2.0e+0
fdiv s0, s1, s0
ldr w0, [sp, 16]
add w0, w0, 1
mov w2, w0
ldr s6, [sp, 20]
ldr s5, [sp, 68]
ldr s4, [sp, 64]
fmov s3, s0
ldr s1, [sp, 40]
ldr s0, [sp, 44]
ldr x1, [sp, 48]
ldr x0, [sp, 56]
bl stbtt__tesselate_curve
ldr s1, [sp, 36]
ldr s0, [sp, 28]
fadd s1, s1, s0
fmov s0, 2.0e+0
fdiv s2, s1, s0
ldr s1, [sp, 32]
ldr s0, [sp, 24]
fadd s1, s1, s0
fmov s0, 2.0e+0
fdiv s0, s1, s0
ldr w0, [sp, 16]
add w0, w0, 1
mov w2, w0
ldr s6, [sp, 20]
ldr s5, [sp, 24]
ldr s4, [sp, 28]
fmov s3, s0
ldr s1, [sp, 68]
ldr s0, [sp, 64]
ldr x1, [sp, 48]
ldr x0, [sp, 56]
bl stbtt__tesselate_curve
b .L287
.L289:
ldr x0, [sp, 48]
ldr w0, [x0]
ldr s1, [sp, 24]
ldr s0, [sp, 28]
mov w1, w0
ldr x0, [sp, 56]
bl stbtt__add_point
ldr x0, [sp, 48]
ldr w0, [x0]
add w1, w0, 1
ldr x0, [sp, 48]
str w1, [x0]
.L287:
mov w0, 1
.L284:
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE42:
.size stbtt__tesselate_curve, .-stbtt__tesselate_curve
.align 2
.global stbtt_FlattenCurves
.type stbtt_FlattenCurves, %function
stbtt_FlattenCurves:
.LFB43:
.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, 56]
str w1, [sp, 52]
str s0, [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, 104]
mov x1, 0
str xzr, [sp, 96]
str wzr, [sp, 64]
ldr s0, [sp, 48]
fmul s0, s0, s0
str s0, [sp, 92]
str wzr, [sp, 72]
str wzr, [sp, 76]
str wzr, [sp, 68]
b .L291
.L293:
ldrsw x1, [sp, 68]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 56]
add x0, x0, x1
ldrb w0, [x0, 8]
cmp w0, 1
bne .L292
ldr w0, [sp, 72]
add w0, w0, 1
str w0, [sp, 72]
.L292:
ldr w0, [sp, 68]
add w0, w0, 1
str w0, [sp, 68]
.L291:
ldr w1, [sp, 68]
ldr w0, [sp, 52]
cmp w1, w0
blt .L293
ldr x0, [sp, 32]
ldr w1, [sp, 72]
str w1, [x0]
ldr w0, [sp, 72]
cmp w0, 0
bne .L294
mov x0, 0
b .L308
.L294:
ldrsw x0, [sp, 72]
lsl x0, x0, 2
bl malloc
mov x1, x0
ldr x0, [sp, 40]
str x1, [x0]
ldr x0, [sp, 40]
ldr x0, [x0]
cmp x0, 0
bne .L296
ldr x0, [sp, 32]
str wzr, [x0]
mov x0, 0
b .L308
.L296:
str wzr, [sp, 80]
b .L297
.L307:
str wzr, [sp, 84]
str wzr, [sp, 88]
ldr w0, [sp, 80]
cmp w0, 1
bne .L298
ldr w0, [sp, 64]
sxtw x0, w0
lsl x0, x0, 3
bl malloc
str x0, [sp, 96]
ldr x0, [sp, 96]
cmp x0, 0
beq .L311
.L298:
str wzr, [sp, 64]
mov w0, -1
str w0, [sp, 72]
str wzr, [sp, 68]
b .L300
.L306:
ldrsw x1, [sp, 68]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 56]
add x0, x0, x1
ldrb w0, [x0, 8]
cmp w0, 3
beq .L301
cmp w0, 3
bgt .L302
cmp w0, 1
beq .L303
cmp w0, 2
beq .L304
b .L302
.L303:
ldr w0, [sp, 72]
cmp w0, 0
blt .L305
ldr w2, [sp, 64]
ldr x0, [sp, 40]
ldr x1, [x0]
ldrsw x0, [sp, 72]
lsl x0, x0, 2
add x0, x1, x0
ldr w1, [sp, 76]
sub w1, w2, w1
str w1, [x0]
.L305:
ldr w0, [sp, 72]
add w0, w0, 1
str w0, [sp, 72]
ldr w0, [sp, 64]
str w0, [sp, 76]
ldrsw x1, [sp, 68]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 56]
add x0, x0, x1
ldrsh w0, [x0]
scvtf s0, w0
str s0, [sp, 84]
ldrsw x1, [sp, 68]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 56]
add x0, x0, x1
ldrsh w0, [x0, 2]
scvtf s0, w0
str s0, [sp, 88]
ldr w0, [sp, 64]
add w1, w0, 1
str w1, [sp, 64]
ldr s1, [sp, 88]
ldr s0, [sp, 84]
mov w1, w0
ldr x0, [sp, 96]
bl stbtt__add_point
b .L302
.L304:
ldrsw x1, [sp, 68]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 56]
add x0, x0, x1
ldrsh w0, [x0]
scvtf s0, w0
str s0, [sp, 84]
ldrsw x1, [sp, 68]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 56]
add x0, x0, x1
ldrsh w0, [x0, 2]
scvtf s0, w0
str s0, [sp, 88]
ldr w0, [sp, 64]
add w1, w0, 1
str w1, [sp, 64]
ldr s1, [sp, 88]
ldr s0, [sp, 84]
mov w1, w0
ldr x0, [sp, 96]
bl stbtt__add_point
b .L302
.L301:
ldrsw x1, [sp, 68]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 56]
add x0, x0, x1
ldrsh w0, [x0, 4]
scvtf s0, w0
ldrsw x1, [sp, 68]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 56]
add x0, x0, x1
ldrsh w0, [x0, 6]
scvtf s1, w0
ldrsw x1, [sp, 68]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 56]
add x0, x0, x1
ldrsh w0, [x0]
scvtf s2, w0
ldrsw x1, [sp, 68]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 56]
add x0, x0, x1
ldrsh w0, [x0, 2]
scvtf s3, w0
add x0, sp, 64
mov w2, 0
ldr s6, [sp, 92]
fmov s5, s3
fmov s4, s2
fmov s3, s1
fmov s2, s0
ldr s1, [sp, 88]
ldr s0, [sp, 84]
mov x1, x0
ldr x0, [sp, 96]
bl stbtt__tesselate_curve
ldrsw x1, [sp, 68]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 56]
add x0, x0, x1
ldrsh w0, [x0]
scvtf s0, w0
str s0, [sp, 84]
ldrsw x1, [sp, 68]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
mov x1, x0
ldr x0, [sp, 56]
add x0, x0, x1
ldrsh w0, [x0, 2]
scvtf s0, w0
str s0, [sp, 88]
nop
.L302:
ldr w0, [sp, 68]
add w0, w0, 1
str w0, [sp, 68]
.L300:
ldr w1, [sp, 68]
ldr w0, [sp, 52]
cmp w1, w0
blt .L306
ldr w2, [sp, 64]
ldr x0, [sp, 40]
ldr x1, [x0]
ldrsw x0, [sp, 72]
lsl x0, x0, 2
add x0, x1, x0
ldr w1, [sp, 76]
sub w1, w2, w1
str w1, [x0]
ldr w0, [sp, 80]
add w0, w0, 1
str w0, [sp, 80]
.L297:
ldr w0, [sp, 80]
cmp w0, 1
ble .L307
ldr x0, [sp, 96]
b .L308
.L311:
nop
.L299:
ldr x0, [sp, 96]
bl free
ldr x0, [sp, 40]
ldr x0, [x0]
bl free
ldr x0, [sp, 40]
str xzr, [x0]
ldr x0, [sp, 32]
str wzr, [x0]
mov x0, 0
.L308:
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 .L309
bl __stack_chk_fail
.L309:
mov x0, x1
ldp x29, x30, [sp], 112
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE43:
.size stbtt_FlattenCurves, .-stbtt_FlattenCurves
.align 2
.global stbtt_Rasterize
.type stbtt_Rasterize, %function
stbtt_Rasterize:
.LFB44:
.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, 72]
str s0, [sp, 68]
str x1, [sp, 56]
str w2, [sp, 64]
str s1, [sp, 52]
str s2, [sp, 48]
str s3, [sp, 44]
str s4, [sp, 40]
str w3, [sp, 36]
str w4, [sp, 32]
str w5, [sp, 28]
str x6, [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 s1, [sp, 52]
ldr s0, [sp, 48]
fcmpe s1, s0
bgt .L318
b .L319
.L318:
ldr s0, [sp, 48]
b .L315
.L319:
ldr s0, [sp, 52]
.L315:
str s0, [sp, 84]
ldr s0, [sp, 84]
ldr s1, [sp, 68]
fdiv s0, s1, s0
add x1, sp, 80
add x0, sp, 88
ldr x4, [sp, 16]
mov x3, x1
mov x2, x0
ldr w1, [sp, 64]
ldr x0, [sp, 56]
bl stbtt_FlattenCurves
str x0, [sp, 96]
ldr x0, [sp, 96]
cmp x0, 0
beq .L320
ldr x0, [sp, 88]
ldr w1, [sp, 80]
ldr x7, [sp, 16]
ldr w6, [sp, 28]
ldr w5, [sp, 32]
ldr w4, [sp, 36]
ldr s3, [sp, 40]
ldr s2, [sp, 44]
ldr s1, [sp, 48]
ldr s0, [sp, 52]
mov w3, w1
mov x2, x0
ldr x1, [sp, 96]
ldr x0, [sp, 72]
bl stbtt__rasterize
ldr x0, [sp, 88]
bl free
ldr x0, [sp, 96]
bl free
.L320:
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 .L317
bl __stack_chk_fail
.L317:
ldp x29, x30, [sp], 112
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE44:
.size stbtt_Rasterize, .-stbtt_Rasterize
.align 2
.global stbtt_FreeBitmap
.type stbtt_FreeBitmap, %function
stbtt_FreeBitmap:
.LFB45:
.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, 24]
bl free
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE45:
.size stbtt_FreeBitmap, .-stbtt_FreeBitmap
.align 2
.global stbtt_GetGlyphBitmapSubpixel
.type stbtt_GetGlyphBitmapSubpixel, %function
stbtt_GetGlyphBitmapSubpixel:
.LFB46:
.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, 72]
str s0, [sp, 68]
str s1, [sp, 64]
str s2, [sp, 60]
str s3, [sp, 56]
str w1, [sp, 52]
str x2, [sp, 40]
str x3, [sp, 32]
str x4, [sp, 24]
str x5, [sp, 16]
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, 104
mov x2, x0
ldr w1, [sp, 52]
ldr x0, [sp, 72]
bl stbtt_GetGlyphShape
str w0, [sp, 100]
ldr s0, [sp, 68]
fcmp s0, #0.0
bne .L323
ldr s0, [sp, 64]
str s0, [sp, 68]
.L323:
ldr s0, [sp, 64]
fcmp s0, #0.0
bne .L324
ldr s0, [sp, 68]
fcmp s0, #0.0
bne .L325
mov x0, 0
b .L332
.L325:
ldr s0, [sp, 68]
str s0, [sp, 64]
.L324:
add x3, sp, 96
add x2, sp, 92
add x1, sp, 88
add x0, sp, 84
mov x5, x3
mov x4, x2
mov x3, x1
mov x2, x0
ldr s3, [sp, 56]
ldr s2, [sp, 60]
ldr s1, [sp, 64]
ldr s0, [sp, 68]
ldr w1, [sp, 52]
ldr x0, [sp, 72]
bl stbtt_GetGlyphBitmapBoxSubpixel
ldr w1, [sp, 92]
ldr w0, [sp, 84]
sub w0, w1, w0
str w0, [sp, 112]
ldr w1, [sp, 96]
ldr w0, [sp, 88]
sub w0, w1, w0
str w0, [sp, 116]
str xzr, [sp, 128]
ldr x0, [sp, 40]
cmp x0, 0
beq .L327
ldr w1, [sp, 112]
ldr x0, [sp, 40]
str w1, [x0]
.L327:
ldr x0, [sp, 32]
cmp x0, 0
beq .L328
ldr w1, [sp, 116]
ldr x0, [sp, 32]
str w1, [x0]
.L328:
ldr x0, [sp, 24]
cmp x0, 0
beq .L329
ldr w1, [sp, 84]
ldr x0, [sp, 24]
str w1, [x0]
.L329:
ldr x0, [sp, 16]
cmp x0, 0
beq .L330
ldr w1, [sp, 88]
ldr x0, [sp, 16]
str w1, [x0]
.L330:
ldr w0, [sp, 112]
cmp w0, 0
beq .L331
ldr w0, [sp, 116]
cmp w0, 0
beq .L331
ldr w1, [sp, 112]
ldr w0, [sp, 116]
mul w0, w1, w0
sxtw x0, w0
bl malloc
str x0, [sp, 128]
ldr x0, [sp, 128]
cmp x0, 0
beq .L331
ldr w0, [sp, 112]
str w0, [sp, 120]
ldr x1, [sp, 104]
ldr w2, [sp, 84]
ldr w3, [sp, 88]
ldr x0, [sp, 72]
ldr x4, [x0]
add x0, sp, 112
mov x6, x4
mov w5, 1
mov w4, w3
mov w3, w2
ldr s4, [sp, 56]
ldr s3, [sp, 60]
ldr s2, [sp, 64]
ldr s1, [sp, 68]
ldr w2, [sp, 100]
mov w7, 13107
movk w7, 0x3eb3, lsl 16
fmov s0, w7
bl stbtt_Rasterize
.L331:
ldr x0, [sp, 104]
bl free
ldr x0, [sp, 128]
.L332:
mov x1, x0
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 .L333
bl __stack_chk_fail
.L333:
mov x0, x1
ldp x29, x30, [sp], 144
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE46:
.size stbtt_GetGlyphBitmapSubpixel, .-stbtt_GetGlyphBitmapSubpixel
.align 2
.global stbtt_GetGlyphBitmap
.type stbtt_GetGlyphBitmap, %function
stbtt_GetGlyphBitmap:
.LFB47:
.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, 72]
str s0, [sp, 68]
str s1, [sp, 64]
str w1, [sp, 60]
str x2, [sp, 48]
str x3, [sp, 40]
str x4, [sp, 32]
str x5, [sp, 24]
ldr x5, [sp, 24]
ldr x4, [sp, 32]
ldr x3, [sp, 40]
ldr x2, [sp, 48]
ldr w1, [sp, 60]
movi v3.2s, #0
movi v2.2s, #0
ldr s1, [sp, 64]
ldr s0, [sp, 68]
ldr x0, [sp, 72]
bl stbtt_GetGlyphBitmapSubpixel
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE47:
.size stbtt_GetGlyphBitmap, .-stbtt_GetGlyphBitmap
.align 2
.global stbtt_MakeGlyphBitmapSubpixel
.type stbtt_MakeGlyphBitmapSubpixel, %function
stbtt_MakeGlyphBitmapSubpixel:
.LFB48:
.cfi_startproc
stp x29, x30, [sp, -128]!
.cfi_def_cfa_offset 128
.cfi_offset 29, -128
.cfi_offset 30, -120
mov x29, sp
str x0, [sp, 56]
str x1, [sp, 48]
str w2, [sp, 44]
str w3, [sp, 40]
str w4, [sp, 36]
str s0, [sp, 32]
str s1, [sp, 28]
str s2, [sp, 24]
str s3, [sp, 20]
str w5, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 120]
mov x1, 0
add x0, sp, 88
mov x2, x0
ldr w1, [sp, 16]
ldr x0, [sp, 56]
bl stbtt_GetGlyphShape
str w0, [sp, 84]
add x1, sp, 80
add x0, sp, 76
mov x5, 0
mov x4, 0
mov x3, x1
mov x2, x0
ldr s3, [sp, 20]
ldr s2, [sp, 24]
ldr s1, [sp, 28]
ldr s0, [sp, 32]
ldr w1, [sp, 16]
ldr x0, [sp, 56]
bl stbtt_GetGlyphBitmapBoxSubpixel
ldr x0, [sp, 48]
str x0, [sp, 112]
ldr w0, [sp, 44]
str w0, [sp, 96]
ldr w0, [sp, 40]
str w0, [sp, 100]
ldr w0, [sp, 36]
str w0, [sp, 104]
ldr w0, [sp, 96]
cmp w0, 0
beq .L337
ldr w0, [sp, 100]
cmp w0, 0
beq .L337
ldr x1, [sp, 88]
ldr w2, [sp, 76]
ldr w3, [sp, 80]
ldr x0, [sp, 56]
ldr x4, [x0]
add x0, sp, 96
mov x6, x4
mov w5, 1
mov w4, w3
mov w3, w2
ldr s4, [sp, 20]
ldr s3, [sp, 24]
ldr s2, [sp, 28]
ldr s1, [sp, 32]
ldr w2, [sp, 84]
mov w7, 13107
movk w7, 0x3eb3, lsl 16
fmov s0, w7
bl stbtt_Rasterize
.L337:
ldr x0, [sp, 88]
bl free
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 120]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L338
bl __stack_chk_fail
.L338:
ldp x29, x30, [sp], 128
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE48:
.size stbtt_MakeGlyphBitmapSubpixel, .-stbtt_MakeGlyphBitmapSubpixel
.align 2
.global stbtt_MakeGlyphBitmap
.type stbtt_MakeGlyphBitmap, %function
stbtt_MakeGlyphBitmap:
.LFB49:
.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 x1, [sp, 48]
str w2, [sp, 44]
str w3, [sp, 40]
str w4, [sp, 36]
str s0, [sp, 32]
str s1, [sp, 28]
str w5, [sp, 24]
ldr w5, [sp, 24]
movi v3.2s, #0
movi v2.2s, #0
ldr s1, [sp, 28]
ldr s0, [sp, 32]
ldr w4, [sp, 36]
ldr w3, [sp, 40]
ldr w2, [sp, 44]
ldr x1, [sp, 48]
ldr x0, [sp, 56]
bl stbtt_MakeGlyphBitmapSubpixel
nop
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE49:
.size stbtt_MakeGlyphBitmap, .-stbtt_MakeGlyphBitmap
.align 2
.global stbtt_GetCodepointBitmapSubpixel
.type stbtt_GetCodepointBitmapSubpixel, %function
stbtt_GetCodepointBitmapSubpixel:
.LFB50:
.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, 72]
str s0, [sp, 68]
str s1, [sp, 64]
str s2, [sp, 60]
str s3, [sp, 56]
str w1, [sp, 52]
str x2, [sp, 40]
str x3, [sp, 32]
str x4, [sp, 24]
str x5, [sp, 16]
ldr w1, [sp, 52]
ldr x0, [sp, 72]
bl stbtt_FindGlyphIndex
ldr x5, [sp, 16]
ldr x4, [sp, 24]
ldr x3, [sp, 32]
ldr x2, [sp, 40]
mov w1, w0
ldr s3, [sp, 56]
ldr s2, [sp, 60]
ldr s1, [sp, 64]
ldr s0, [sp, 68]
ldr x0, [sp, 72]
bl stbtt_GetGlyphBitmapSubpixel
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE50:
.size stbtt_GetCodepointBitmapSubpixel, .-stbtt_GetCodepointBitmapSubpixel
.align 2
.global stbtt_MakeCodepointBitmapSubpixel
.type stbtt_MakeCodepointBitmapSubpixel, %function
stbtt_MakeCodepointBitmapSubpixel:
.LFB51:
.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 x1, [sp, 48]
str w2, [sp, 44]
str w3, [sp, 40]
str w4, [sp, 36]
str s0, [sp, 32]
str s1, [sp, 28]
str s2, [sp, 24]
str s3, [sp, 20]
str w5, [sp, 16]
ldr w1, [sp, 16]
ldr x0, [sp, 56]
bl stbtt_FindGlyphIndex
mov w5, w0
ldr s3, [sp, 20]
ldr s2, [sp, 24]
ldr s1, [sp, 28]
ldr s0, [sp, 32]
ldr w4, [sp, 36]
ldr w3, [sp, 40]
ldr w2, [sp, 44]
ldr x1, [sp, 48]
ldr x0, [sp, 56]
bl stbtt_MakeGlyphBitmapSubpixel
nop
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE51:
.size stbtt_MakeCodepointBitmapSubpixel, .-stbtt_MakeCodepointBitmapSubpixel
.align 2
.global stbtt_GetCodepointBitmap
.type stbtt_GetCodepointBitmap, %function
stbtt_GetCodepointBitmap:
.LFB52:
.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, 72]
str s0, [sp, 68]
str s1, [sp, 64]
str w1, [sp, 60]
str x2, [sp, 48]
str x3, [sp, 40]
str x4, [sp, 32]
str x5, [sp, 24]
ldr x5, [sp, 24]
ldr x4, [sp, 32]
ldr x3, [sp, 40]
ldr x2, [sp, 48]
ldr w1, [sp, 60]
movi v3.2s, #0
movi v2.2s, #0
ldr s1, [sp, 64]
ldr s0, [sp, 68]
ldr x0, [sp, 72]
bl stbtt_GetCodepointBitmapSubpixel
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE52:
.size stbtt_GetCodepointBitmap, .-stbtt_GetCodepointBitmap
.align 2
.global stbtt_MakeCodepointBitmap
.type stbtt_MakeCodepointBitmap, %function
stbtt_MakeCodepointBitmap:
.LFB53:
.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 x1, [sp, 48]
str w2, [sp, 44]
str w3, [sp, 40]
str w4, [sp, 36]
str s0, [sp, 32]
str s1, [sp, 28]
str w5, [sp, 24]
ldr w5, [sp, 24]
movi v3.2s, #0
movi v2.2s, #0
ldr s1, [sp, 28]
ldr s0, [sp, 32]
ldr w4, [sp, 36]
ldr w3, [sp, 40]
ldr w2, [sp, 44]
ldr x1, [sp, 48]
ldr x0, [sp, 56]
bl stbtt_MakeCodepointBitmapSubpixel
nop
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE53:
.size stbtt_MakeCodepointBitmap, .-stbtt_MakeCodepointBitmap
.section .rodata
.align 3
.LC14:
.string "x+gw < pw"
.align 3
.LC15:
.string "y+gh < ph"
.text
.align 2
.global stbtt_BakeFontBitmap
.type stbtt_BakeFontBitmap, %function
stbtt_BakeFontBitmap:
.LFB54:
.cfi_startproc
stp x29, x30, [sp, -192]!
.cfi_def_cfa_offset 192
.cfi_offset 29, -192
.cfi_offset 30, -184
mov x29, sp
str x0, [sp, 56]
str w1, [sp, 52]
str s0, [sp, 48]
str x2, [sp, 40]
str w3, [sp, 36]
str w4, [sp, 32]
str w5, [sp, 28]
str w6, [sp, 24]
str x7, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 184]
mov x1, 0
add x0, sp, 128
ldr w2, [sp, 52]
ldr x1, [sp, 56]
bl stbtt_InitFont
ldr w1, [sp, 36]
ldr w0, [sp, 32]
mul w0, w1, w0
sxtw x0, w0
mov x2, x0
mov w1, 0
ldr x0, [sp, 40]
bl memset
mov w0, 1
str w0, [sp, 100]
ldr w0, [sp, 100]
str w0, [sp, 96]
mov w0, 1
str w0, [sp, 104]
add x0, sp, 128
ldr s0, [sp, 48]
bl stbtt_ScaleForPixelHeight
str s0, [sp, 112]
str wzr, [sp, 108]
b .L347
.L354:
ldr w1, [sp, 28]
ldr w0, [sp, 108]
add w1, w1, w0
add x0, sp, 128
bl stbtt_FindGlyphIndex
str w0, [sp, 116]
add x2, sp, 76
add x1, sp, 72
add x0, sp, 128
mov x3, x2
mov x2, x1
ldr w1, [sp, 116]
bl stbtt_GetGlyphHMetrics
add x4, sp, 92
add x3, sp, 88
add x2, sp, 84
add x1, sp, 80
add x0, sp, 128
mov x5, x4
mov x4, x3
mov x3, x2
mov x2, x1
ldr s1, [sp, 112]
ldr s0, [sp, 112]
ldr w1, [sp, 116]
bl stbtt_GetGlyphBitmapBox
ldr w1, [sp, 88]
ldr w0, [sp, 80]
sub w0, w1, w0
str w0, [sp, 120]
ldr w1, [sp, 92]
ldr w0, [sp, 84]
sub w0, w1, w0
str w0, [sp, 124]
ldr w1, [sp, 96]
ldr w0, [sp, 120]
add w0, w1, w0
add w0, w0, 1
ldr w1, [sp, 36]
cmp w1, w0
bgt .L348
ldr w0, [sp, 104]
str w0, [sp, 100]
mov w0, 1
str w0, [sp, 96]
.L348:
ldr w1, [sp, 100]
ldr w0, [sp, 124]
add w0, w1, w0
add w0, w0, 1
ldr w1, [sp, 32]
cmp w1, w0
bgt .L349
ldr w0, [sp, 108]
neg w0, w0
b .L355
.L349:
ldr w1, [sp, 96]
ldr w0, [sp, 120]
add w0, w1, w0
ldr w1, [sp, 36]
cmp w1, w0
bgt .L351
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 1872
adrp x0, .LC9
add x1, x0, :lo12:.LC9
adrp x0, .LC14
add x0, x0, :lo12:.LC14
bl __assert_fail
.L351:
ldr w1, [sp, 100]
ldr w0, [sp, 124]
add w0, w1, w0
ldr w1, [sp, 32]
cmp w1, w0
bgt .L352
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 1873
adrp x0, .LC9
add x1, x0, :lo12:.LC9
adrp x0, .LC15
add x0, x0, :lo12:.LC15
bl __assert_fail
.L352:
ldrsw x1, [sp, 96]
ldr w2, [sp, 100]
ldr w0, [sp, 36]
mul w0, w2, w0
sxtw x0, w0
add x0, x1, x0
ldr x1, [sp, 40]
add x1, x1, x0
add x0, sp, 128
ldr w5, [sp, 116]
ldr s1, [sp, 112]
ldr s0, [sp, 112]
ldr w4, [sp, 36]
ldr w3, [sp, 124]
ldr w2, [sp, 120]
bl stbtt_MakeGlyphBitmap
ldrsw x1, [sp, 108]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 16]
add x0, x0, x1
ldr w1, [sp, 96]
and w1, w1, 65535
strh w1, [x0]
ldrsw x1, [sp, 108]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 16]
add x0, x0, x1
ldr w1, [sp, 100]
and w1, w1, 65535
strh w1, [x0, 2]
ldr w0, [sp, 96]
and w3, w0, 65535
ldr w0, [sp, 120]
and w2, w0, 65535
ldrsw x1, [sp, 108]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 16]
add x0, x0, x1
add w1, w3, w2
and w1, w1, 65535
strh w1, [x0, 4]
ldr w0, [sp, 100]
and w3, w0, 65535
ldr w0, [sp, 124]
and w2, w0, 65535
ldrsw x1, [sp, 108]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 16]
add x0, x0, x1
add w1, w3, w2
and w1, w1, 65535
strh w1, [x0, 6]
ldr s0, [sp, 72]
scvtf s1, s0
ldrsw x1, [sp, 108]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 16]
add x0, x0, x1
ldr s0, [sp, 112]
fmul s0, s1, s0
str s0, [x0, 16]
ldr s0, [sp, 80]
ldrsw x1, [sp, 108]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 16]
add x0, x0, x1
scvtf s0, s0
str s0, [x0, 8]
ldr s0, [sp, 84]
ldrsw x1, [sp, 108]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 16]
add x0, x0, x1
scvtf s0, s0
str s0, [x0, 12]
ldr w1, [sp, 96]
ldr w0, [sp, 120]
add w0, w1, w0
add w0, w0, 2
str w0, [sp, 96]
ldr w1, [sp, 100]
ldr w0, [sp, 124]
add w0, w1, w0
add w0, w0, 1
ldr w1, [sp, 104]
cmp w1, w0
bgt .L353
ldr w1, [sp, 100]
ldr w0, [sp, 124]
add w0, w1, w0
add w0, w0, 2
str w0, [sp, 104]
.L353:
ldr w0, [sp, 108]
add w0, w0, 1
str w0, [sp, 108]
.L347:
ldr w1, [sp, 108]
ldr w0, [sp, 24]
cmp w1, w0
blt .L354
ldr w0, [sp, 104]
.L355:
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 184]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L356
bl __stack_chk_fail
.L356:
mov w0, w1
ldp x29, x30, [sp], 192
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE54:
.size stbtt_BakeFontBitmap, .-stbtt_BakeFontBitmap
.align 2
.global stbtt_GetBakedQuad
.type stbtt_GetBakedQuad, %function
stbtt_GetBakedQuad:
.LFB55:
.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, 56]
str w1, [sp, 52]
str w2, [sp, 48]
str w3, [sp, 44]
str x4, [sp, 32]
str x5, [sp, 24]
str x6, [sp, 16]
str w7, [sp, 40]
ldr w0, [sp, 40]
cmp w0, 0
beq .L358
movi v0.2s, #0
b .L359
.L358:
fmov s0, -5.0e-1
.L359:
str s0, [sp, 68]
ldr s0, [sp, 52]
scvtf s0, s0
fmov s1, 1.0e+0
fdiv s0, s1, s0
str s0, [sp, 72]
ldr s0, [sp, 48]
scvtf s0, s0
fmov s1, 1.0e+0
fdiv s0, s1, s0
str s0, [sp, 76]
ldrsw x1, [sp, 44]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 56]
add x0, x0, x1
str x0, [sp, 88]
ldr x0, [sp, 32]
ldr s1, [x0]
ldr x0, [sp, 88]
ldr s0, [x0, 8]
fadd s0, s1, s0
fcvt d1, s0
fmov d0, 5.0e-1
fadd d0, d1, d0
bl floor
fcvtzs w0, d0
str w0, [sp, 80]
ldr x0, [sp, 24]
ldr s1, [x0]
ldr x0, [sp, 88]
ldr s0, [x0, 12]
fadd s0, s1, s0
fcvt d1, s0
fmov d0, 5.0e-1
fadd d0, d1, d0
bl floor
fcvtzs w0, d0
str w0, [sp, 84]
ldr s0, [sp, 80]
scvtf s1, s0
ldr s0, [sp, 68]
fadd s0, s1, s0
ldr x0, [sp, 16]
str s0, [x0]
ldr s0, [sp, 84]
scvtf s1, s0
ldr s0, [sp, 68]
fadd s0, s1, s0
ldr x0, [sp, 16]
str s0, [x0, 4]
ldr x0, [sp, 88]
ldrh w0, [x0, 4]
mov w1, w0
ldr w0, [sp, 80]
add w0, w1, w0
ldr x1, [sp, 88]
ldrh w1, [x1]
sub w0, w0, w1
scvtf s1, w0
ldr s0, [sp, 68]
fadd s0, s1, s0
ldr x0, [sp, 16]
str s0, [x0, 16]
ldr x0, [sp, 88]
ldrh w0, [x0, 6]
mov w1, w0
ldr w0, [sp, 84]
add w0, w1, w0
ldr x1, [sp, 88]
ldrh w1, [x1, 2]
sub w0, w0, w1
scvtf s1, w0
ldr s0, [sp, 68]
fadd s0, s1, s0
ldr x0, [sp, 16]
str s0, [x0, 20]
ldr x0, [sp, 88]
ldrh w0, [x0]
fmov s0, w0
scvtf s1, s0
ldr s0, [sp, 72]
fmul s0, s1, s0
ldr x0, [sp, 16]
str s0, [x0, 8]
ldr x0, [sp, 88]
ldrh w0, [x0, 2]
fmov s0, w0
scvtf s1, s0
ldr s0, [sp, 76]
fmul s0, s1, s0
ldr x0, [sp, 16]
str s0, [x0, 12]
ldr x0, [sp, 88]
ldrh w0, [x0, 4]
fmov s0, w0
scvtf s1, s0
ldr s0, [sp, 72]
fmul s0, s1, s0
ldr x0, [sp, 16]
str s0, [x0, 24]
ldr x0, [sp, 88]
ldrh w0, [x0, 6]
fmov s0, w0
scvtf s1, s0
ldr s0, [sp, 76]
fmul s0, s1, s0
ldr x0, [sp, 16]
str s0, [x0, 28]
ldr x0, [sp, 32]
ldr s1, [x0]
ldr x0, [sp, 88]
ldr s0, [x0, 16]
fadd s0, s1, s0
ldr x0, [sp, 32]
str s0, [x0]
nop
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE55:
.size stbtt_GetBakedQuad, .-stbtt_GetBakedQuad
.align 2
.type stbtt__CompareUTF8toUTF16_bigendian_prefix, %function
stbtt__CompareUTF8toUTF16_bigendian_prefix:
.LFB56:
.cfi_startproc
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, 24]
str w1, [sp, 20]
str x2, [sp, 8]
str w3, [sp, 16]
str wzr, [sp, 40]
b .L361
.L379:
ldr x0, [sp, 8]
ldrb w0, [x0]
and w0, w0, 65535
ubfiz w0, w0, 8, 8
and w1, w0, 65535
ldr x0, [sp, 8]
add x0, x0, 1
ldrb w0, [x0]
and w0, w0, 65535
add w0, w1, w0
strh w0, [sp, 36]
ldrh w0, [sp, 36]
cmp w0, 127
bhi .L362
ldr w1, [sp, 40]
ldr w0, [sp, 20]
cmp w1, w0
blt .L363
mov w0, -1
b .L364
.L363:
ldr w0, [sp, 40]
add w1, w0, 1
str w1, [sp, 40]
sxtw x0, w0
ldr x1, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
and w0, w0, 65535
ldrh w1, [sp, 36]
cmp w1, w0
beq .L365
mov w0, -1
b .L364
.L362:
ldrh w0, [sp, 36]
cmp w0, 2047
bhi .L366
ldr w0, [sp, 40]
add w0, w0, 1
ldr w1, [sp, 20]
cmp w1, w0
bgt .L367
mov w0, -1
b .L364
.L367:
ldr w0, [sp, 40]
add w1, w0, 1
str w1, [sp, 40]
sxtw x0, w0
ldr x1, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
mov w1, w0
ldrh w0, [sp, 36]
lsr w0, w0, 6
and w0, w0, 65535
add w0, w0, 192
cmp w1, w0
beq .L368
mov w0, -1
b .L364
.L368:
ldr w0, [sp, 40]
add w1, w0, 1
str w1, [sp, 40]
sxtw x0, w0
ldr x1, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
mov w1, w0
ldrh w0, [sp, 36]
and w0, w0, 63
add w0, w0, 128
cmp w1, w0
beq .L365
mov w0, -1
b .L364
.L366:
ldrh w1, [sp, 36]
mov w0, 55295
cmp w1, w0
bls .L369
ldrh w1, [sp, 36]
mov w0, 56319
cmp w1, w0
bhi .L369
ldr x0, [sp, 8]
add x0, x0, 2
ldrb w0, [x0]
and w0, w0, 65535
ubfiz w0, w0, 8, 8
and w1, w0, 65535
ldr x0, [sp, 8]
add x0, x0, 3
ldrb w0, [x0]
and w0, w0, 65535
add w0, w1, w0
strh w0, [sp, 38]
ldr w0, [sp, 40]
add w0, w0, 3
ldr w1, [sp, 20]
cmp w1, w0
bgt .L370
mov w0, -1
b .L364
.L370:
ldrh w1, [sp, 36]
mov w0, -55296
add w0, w1, w0
lsl w1, w0, 10
ldrh w2, [sp, 38]
mov w0, -56320
add w0, w2, w0
add w0, w1, w0
add w0, w0, 65536
str w0, [sp, 44]
ldr w0, [sp, 40]
add w1, w0, 1
str w1, [sp, 40]
sxtw x0, w0
ldr x1, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
mov w1, w0
ldr w0, [sp, 44]
lsr w0, w0, 18
add w0, w0, 240
cmp w1, w0
beq .L371
mov w0, -1
b .L364
.L371:
ldr w0, [sp, 40]
add w1, w0, 1
str w1, [sp, 40]
sxtw x0, w0
ldr x1, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
mov w1, w0
ldr w0, [sp, 44]
lsr w0, w0, 12
and w0, w0, 63
add w0, w0, 128
cmp w1, w0
beq .L372
mov w0, -1
b .L364
.L372:
ldr w0, [sp, 40]
add w1, w0, 1
str w1, [sp, 40]
sxtw x0, w0
ldr x1, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
mov w1, w0
ldr w0, [sp, 44]
lsr w0, w0, 6
and w0, w0, 63
add w0, w0, 128
cmp w1, w0
beq .L373
mov w0, -1
b .L364
.L373:
ldr w0, [sp, 40]
add w1, w0, 1
str w1, [sp, 40]
sxtw x0, w0
ldr x1, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
mov w1, w0
ldr w0, [sp, 44]
and w0, w0, 63
add w0, w0, 128
cmp w1, w0
beq .L374
mov w0, -1
b .L364
.L374:
ldr x0, [sp, 8]
add x0, x0, 2
str x0, [sp, 8]
ldr w0, [sp, 16]
sub w0, w0, #2
str w0, [sp, 16]
b .L365
.L369:
ldrh w1, [sp, 36]
mov w0, 56319
cmp w1, w0
bls .L375
ldrh w1, [sp, 36]
mov w0, 57343
cmp w1, w0
bhi .L375
mov w0, -1
b .L364
.L375:
ldr w0, [sp, 40]
add w0, w0, 2
ldr w1, [sp, 20]
cmp w1, w0
bgt .L376
mov w0, -1
b .L364
.L376:
ldr w0, [sp, 40]
add w1, w0, 1
str w1, [sp, 40]
sxtw x0, w0
ldr x1, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
mov w1, w0
ldrh w0, [sp, 36]
lsr w0, w0, 12
and w0, w0, 65535
add w0, w0, 224
cmp w1, w0
beq .L377
mov w0, -1
b .L364
.L377:
ldr w0, [sp, 40]
add w1, w0, 1
str w1, [sp, 40]
sxtw x0, w0
ldr x1, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
mov w1, w0
ldrh w0, [sp, 36]
lsr w0, w0, 6
and w0, w0, 65535
and w0, w0, 63
add w0, w0, 128
cmp w1, w0
beq .L378
mov w0, -1
b .L364
.L378:
ldr w0, [sp, 40]
add w1, w0, 1
str w1, [sp, 40]
sxtw x0, w0
ldr x1, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
mov w1, w0
ldrh w0, [sp, 36]
and w0, w0, 63
add w0, w0, 128
cmp w1, w0
beq .L365
mov w0, -1
b .L364
.L365:
ldr x0, [sp, 8]
add x0, x0, 2
str x0, [sp, 8]
ldr w0, [sp, 16]
sub w0, w0, #2
str w0, [sp, 16]
.L361:
ldr w0, [sp, 16]
cmp w0, 0
bne .L379
ldr w0, [sp, 40]
.L364:
add sp, sp, 48
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE56:
.size stbtt__CompareUTF8toUTF16_bigendian_prefix, .-stbtt__CompareUTF8toUTF16_bigendian_prefix
.align 2
.global stbtt_CompareUTF8toUTF16_bigendian
.type stbtt_CompareUTF8toUTF16_bigendian, %function
stbtt_CompareUTF8toUTF16_bigendian:
.LFB57:
.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]
str w3, [sp, 32]
ldr w3, [sp, 32]
ldr x2, [sp, 24]
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl stbtt__CompareUTF8toUTF16_bigendian_prefix
mov w1, w0
ldr w0, [sp, 36]
cmp w0, w1
cset w0, eq
and w0, w0, 255
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE57:
.size stbtt_CompareUTF8toUTF16_bigendian, .-stbtt_CompareUTF8toUTF16_bigendian
.section .rodata
.align 3
.LC16:
.string "name"
.text
.align 2
.global stbtt_GetFontNameString
.type stbtt_GetFontNameString, %function
stbtt_GetFontNameString:
.LFB58:
.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 x0, [sp, 56]
str x1, [sp, 48]
str w2, [sp, 44]
str w3, [sp, 40]
str w4, [sp, 36]
str w5, [sp, 32]
ldr x0, [sp, 56]
ldr x0, [x0, 8]
str x0, [sp, 88]
ldr x0, [sp, 56]
ldr w0, [x0, 16]
str w0, [sp, 68]
adrp x0, .LC16
add x2, x0, :lo12:.LC16
ldr w1, [sp, 68]
ldr x0, [sp, 88]
bl stbtt__find_table
str w0, [sp, 72]
ldr w0, [sp, 72]
cmp w0, 0
bne .L383
mov x0, 0
b .L384
.L383:
ldr w0, [sp, 72]
add x0, x0, 2
ldr x1, [sp, 88]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
str w0, [sp, 76]
ldr w0, [sp, 72]
add x0, x0, 4
ldr x1, [sp, 88]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
mov w1, w0
ldr w0, [sp, 72]
add w0, w1, w0
str w0, [sp, 80]
str wzr, [sp, 64]
b .L385
.L387:
ldr w1, [sp, 64]
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
lsl w0, w0, 2
mov w1, w0
ldr w0, [sp, 72]
add w0, w1, w0
add w0, w0, 6
str w0, [sp, 84]
ldr w0, [sp, 84]
ldr x1, [sp, 88]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
mov w1, w0
ldr w0, [sp, 44]
cmp w0, w1
bne .L386
ldr w0, [sp, 84]
add x0, x0, 2
ldr x1, [sp, 88]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
mov w1, w0
ldr w0, [sp, 40]
cmp w0, w1
bne .L386
ldr w0, [sp, 84]
add x0, x0, 4
ldr x1, [sp, 88]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
mov w1, w0
ldr w0, [sp, 36]
cmp w0, w1
bne .L386
ldr w0, [sp, 84]
add x0, x0, 6
ldr x1, [sp, 88]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
mov w1, w0
ldr w0, [sp, 32]
cmp w0, w1
bne .L386
ldr w0, [sp, 84]
add x0, x0, 8
ldr x1, [sp, 88]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
mov w1, w0
ldr x0, [sp, 48]
str w1, [x0]
ldrsw x19, [sp, 80]
ldr w0, [sp, 84]
add x0, x0, 10
ldr x1, [sp, 88]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
and x0, x0, 65535
add x0, x19, x0
ldr x1, [sp, 88]
add x0, x1, x0
b .L384
.L386:
ldr w0, [sp, 64]
add w0, w0, 1
str w0, [sp, 64]
.L385:
ldr w1, [sp, 64]
ldr w0, [sp, 76]
cmp w1, w0
blt .L387
mov x0, 0
.L384:
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
.LFE58:
.size stbtt_GetFontNameString, .-stbtt_GetFontNameString
.align 2
.type stbtt__matchpair, %function
stbtt__matchpair:
.LFB59:
.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 w3, [sp, 32]
str w4, [sp, 20]
str w5, [sp, 16]
ldr w0, [sp, 36]
add x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
str w0, [sp, 64]
ldr w0, [sp, 36]
add x0, x0, 4
ldr x1, [sp, 40]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
mov w1, w0
ldr w0, [sp, 36]
add w0, w1, w0
str w0, [sp, 68]
str wzr, [sp, 60]
b .L389
.L397:
ldr w1, [sp, 60]
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
lsl w0, w0, 2
mov w1, w0
ldr w0, [sp, 36]
add w0, w1, w0
add w0, w0, 6
str w0, [sp, 72]
ldr w0, [sp, 72]
add x0, x0, 6
ldr x1, [sp, 40]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
str w0, [sp, 76]
ldr w1, [sp, 76]
ldr w0, [sp, 20]
cmp w1, w0
bne .L390
ldr w0, [sp, 72]
ldr x1, [sp, 40]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
str w0, [sp, 80]
ldr w0, [sp, 72]
add x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
str w0, [sp, 84]
ldr w0, [sp, 72]
add x0, x0, 4
ldr x1, [sp, 40]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
str w0, [sp, 88]
ldr w0, [sp, 80]
cmp w0, 0
beq .L391
ldr w0, [sp, 80]
cmp w0, 3
bne .L392
ldr w0, [sp, 84]
cmp w0, 1
beq .L391
.L392:
ldr w0, [sp, 80]
cmp w0, 3
bne .L390
ldr w0, [sp, 84]
cmp w0, 10
bne .L390
.L391:
ldr w0, [sp, 72]
add x0, x0, 8
ldr x1, [sp, 40]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
str w0, [sp, 92]
ldr w0, [sp, 72]
add x0, x0, 10
ldr x1, [sp, 40]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
str w0, [sp, 96]
ldrsw x1, [sp, 68]
ldrsw x0, [sp, 96]
add x0, x1, x0
ldr x1, [sp, 40]
add x0, x1, x0
ldr w3, [sp, 92]
mov x2, x0
ldr w1, [sp, 32]
ldr x0, [sp, 24]
bl stbtt__CompareUTF8toUTF16_bigendian_prefix
str w0, [sp, 100]
ldr w0, [sp, 100]
cmp w0, 0
blt .L390
ldr w0, [sp, 60]
add w0, w0, 1
ldr w1, [sp, 64]
cmp w1, w0
ble .L393
ldr w0, [sp, 72]
add x0, x0, 18
ldr x1, [sp, 40]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
mov w1, w0
ldr w0, [sp, 16]
cmp w0, w1
bne .L393
ldr w0, [sp, 72]
add x0, x0, 12
ldr x1, [sp, 40]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
mov w1, w0
ldr w0, [sp, 80]
cmp w0, w1
bne .L393
ldr w0, [sp, 72]
add x0, x0, 14
ldr x1, [sp, 40]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
mov w1, w0
ldr w0, [sp, 84]
cmp w0, w1
bne .L393
ldr w0, [sp, 72]
add x0, x0, 16
ldr x1, [sp, 40]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
mov w1, w0
ldr w0, [sp, 88]
cmp w0, w1
bne .L393
ldr w0, [sp, 72]
add x0, x0, 20
ldr x1, [sp, 40]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
str w0, [sp, 104]
ldr w0, [sp, 72]
add x0, x0, 22
ldr x1, [sp, 40]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
str w0, [sp, 108]
ldr w0, [sp, 104]
cmp w0, 0
bne .L394
ldr w1, [sp, 100]
ldr w0, [sp, 32]
cmp w1, w0
bne .L398
mov w0, 1
b .L396
.L394:
ldr w1, [sp, 100]
ldr w0, [sp, 32]
cmp w1, w0
bge .L398
ldrsw x0, [sp, 100]
ldr x1, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 32
bne .L398
ldr w0, [sp, 100]
add w0, w0, 1
str w0, [sp, 100]
ldrsw x0, [sp, 100]
ldr x1, [sp, 24]
add x4, x1, x0
ldr w1, [sp, 32]
ldr w0, [sp, 100]
sub w5, w1, w0
ldrsw x1, [sp, 68]
ldrsw x0, [sp, 108]
add x0, x1, x0
ldr x1, [sp, 40]
add x0, x1, x0
ldr w3, [sp, 104]
mov x2, x0
mov w1, w5
mov x0, x4
bl stbtt_CompareUTF8toUTF16_bigendian
cmp w0, 0
beq .L398
mov w0, 1
b .L396
.L393:
ldr w1, [sp, 100]
ldr w0, [sp, 32]
cmp w1, w0
bne .L390
mov w0, 1
b .L396
.L398:
nop
.L390:
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L389:
ldr w1, [sp, 60]
ldr w0, [sp, 64]
cmp w1, w0
blt .L397
mov w0, 0
.L396:
ldp x29, x30, [sp], 112
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE59:
.size stbtt__matchpair, .-stbtt__matchpair
.align 2
.type stbtt__matches, %function
stbtt__matches:
.LFB60:
.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 x2, [sp, 24]
str w3, [sp, 32]
ldr x0, [sp, 24]
bl strlen
str w0, [sp, 52]
ldr w0, [sp, 36]
ldr x1, [sp, 40]
add x0, x1, x0
bl stbtt__isfont
cmp w0, 0
bne .L400
mov w0, 0
b .L401
.L400:
ldr w0, [sp, 32]
cmp w0, 0
beq .L402
adrp x0, .LC3
add x2, x0, :lo12:.LC3
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl stbtt__find_table
str w0, [sp, 56]
ldr w0, [sp, 56]
add x0, x0, 44
ldr x1, [sp, 40]
add x0, x1, x0
bl ttUSHORT
and w0, w0, 65535
mov w1, w0
ldr w0, [sp, 32]
eor w0, w1, w0
and w0, w0, 7
cmp w0, 0
beq .L402
mov w0, 0
b .L401
.L402:
adrp x0, .LC16
add x2, x0, :lo12:.LC16
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl stbtt__find_table
str w0, [sp, 60]
ldr w0, [sp, 60]
cmp w0, 0
bne .L403
mov w0, 0
b .L401
.L403:
ldr w0, [sp, 32]
cmp w0, 0
beq .L404
mov w5, -1
mov w4, 16
ldr w3, [sp, 52]
ldr x2, [sp, 24]
ldr w1, [sp, 60]
ldr x0, [sp, 40]
bl stbtt__matchpair
cmp w0, 0
beq .L405
mov w0, 1
b .L401
.L405:
mov w5, -1
mov w4, 1
ldr w3, [sp, 52]
ldr x2, [sp, 24]
ldr w1, [sp, 60]
ldr x0, [sp, 40]
bl stbtt__matchpair
cmp w0, 0
beq .L406
mov w0, 1
b .L401
.L406:
mov w5, -1
mov w4, 3
ldr w3, [sp, 52]
ldr x2, [sp, 24]
ldr w1, [sp, 60]
ldr x0, [sp, 40]
bl stbtt__matchpair
cmp w0, 0
beq .L407
mov w0, 1
b .L401
.L404:
mov w5, 17
mov w4, 16
ldr w3, [sp, 52]
ldr x2, [sp, 24]
ldr w1, [sp, 60]
ldr x0, [sp, 40]
bl stbtt__matchpair
cmp w0, 0
beq .L408
mov w0, 1
b .L401
.L408:
mov w5, 2
mov w4, 1
ldr w3, [sp, 52]
ldr x2, [sp, 24]
ldr w1, [sp, 60]
ldr x0, [sp, 40]
bl stbtt__matchpair
cmp w0, 0
beq .L409
mov w0, 1
b .L401
.L409:
mov w5, -1
mov w4, 3
ldr w3, [sp, 52]
ldr x2, [sp, 24]
ldr w1, [sp, 60]
ldr x0, [sp, 40]
bl stbtt__matchpair
cmp w0, 0
beq .L407
mov w0, 1
b .L401
.L407:
mov w0, 0
.L401:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE60:
.size stbtt__matches, .-stbtt__matches
.align 2
.global stbtt_FindMatchingFont
.type stbtt_FindMatchingFont, %function
stbtt_FindMatchingFont:
.LFB61:
.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 wzr, [sp, 56]
.L414:
ldr w1, [sp, 56]
ldr x0, [sp, 40]
bl stbtt_GetFontOffsetForIndex
str w0, [sp, 60]
ldr w0, [sp, 60]
cmp w0, 0
bge .L411
ldr w0, [sp, 60]
b .L412
.L411:
ldr w0, [sp, 60]
ldr w3, [sp, 28]
ldr x2, [sp, 32]
mov w1, w0
ldr x0, [sp, 40]
bl stbtt__matches
cmp w0, 0
beq .L413
ldr w0, [sp, 60]
b .L412
.L413:
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
b .L414
.L412:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE61:
.size stbtt_FindMatchingFont, .-stbtt_FindMatchingFont
.section .rodata
.align 3
.type __PRETTY_FUNCTION__.4, %object
.size __PRETTY_FUNCTION__.4, 21
__PRETTY_FUNCTION__.4:
.string "stbtt_FindGlyphIndex"
.align 3
.type __PRETTY_FUNCTION__.3, %object
.size __PRETTY_FUNCTION__.3, 20
__PRETTY_FUNCTION__.3:
.string "stbtt_GetGlyphShape"
.align 3
.type __PRETTY_FUNCTION__.2, %object
.size __PRETTY_FUNCTION__.2, 11
__PRETTY_FUNCTION__.2:
.string "new_active"
.align 3
.type __PRETTY_FUNCTION__.1, %object
.size __PRETTY_FUNCTION__.1, 30
__PRETTY_FUNCTION__.1:
.string "stbtt__rasterize_sorted_edges"
.align 3
.type __PRETTY_FUNCTION__.0, %object
.size __PRETTY_FUNCTION__.0, 21
__PRETTY_FUNCTION__.0:
.string "stbtt_BakeFontBitmap"
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global n
.bss
.align 2
.type n, %object
.size n, 4
n:
.zero 4
.text
.align 2
.global M
.type M, %function
M:
.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
str w0, [sp, 44]
str w1, [sp, 40]
str x2, [sp, 32]
ldr w1, [sp, 44]
ldr w0, [sp, 40]
cmp w1, w0
bne .L2
ldrsw x0, [sp, 40]
lsl x0, x0, 2
ldr x1, [sp, 32]
add x0, x1, x0
ldr w0, [x0]
adrp x1, n
add x1, x1, :lo12:n
ldr w1, [x1]
sdiv w2, w0, w1
mul w1, w2, w1
sub w0, w0, w1
b .L3
.L2:
ldrsw x0, [sp, 40]
lsl x0, x0, 2
ldr x1, [sp, 32]
add x0, x1, x0
ldr w0, [x0]
adrp x1, n
add x1, x1, :lo12:n
ldr w1, [x1]
sdiv w2, w0, w1
mul w1, w2, w1
sub w19, w0, w1
ldr w0, [sp, 40]
sub w0, w0, #1
ldr x2, [sp, 32]
mov w1, w0
ldr w0, [sp, 44]
bl M
mul w0, w19, w0
adrp x1, n
add x1, x1, :lo12:n
ldr w1, [x1]
sdiv w2, w0, w1
mul w1, w2, w1
sub w0, w0, w1
.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 M, .-M
.align 2
.global N
.type N, %function
N:
.LFB7:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, 12]
str w1, [sp, 8]
str x2, [sp]
str wzr, [sp, 28]
ldr w0, [sp, 12]
str w0, [sp, 24]
b .L5
.L6:
ldrsw x0, [sp, 24]
lsl x0, x0, 2
ldr x1, [sp]
add x0, x1, x0
ldr w0, [x0]
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 w1, [sp, 24]
ldr w0, [sp, 8]
cmp w1, w0
ble .L6
adrp x0, n
add x0, x0, :lo12:n
ldr w1, [x0]
ldr w0, [sp, 28]
sdiv w2, w0, w1
mul w1, w2, w1
sub w0, w0, w1
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size N, .-N
.align 2
.global H
.type H, %function
H:
.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 x19, [sp, 16]
.cfi_offset 19, -32
str w0, [sp, 44]
str w1, [sp, 40]
str x2, [sp, 32]
ldr w1, [sp, 44]
ldr w0, [sp, 40]
cmp w1, w0
bne .L9
ldrsw x0, [sp, 40]
lsl x0, x0, 2
ldr x1, [sp, 32]
add x0, x1, x0
ldr w0, [x0]
b .L10
.L9:
ldrsw x0, [sp, 40]
lsl x0, x0, 2
ldr x1, [sp, 32]
add x0, x1, x0
ldr w19, [x0]
ldr w0, [sp, 40]
sub w0, w0, #1
ldr x2, [sp, 32]
mov w1, w0
ldr w0, [sp, 44]
bl H
eor w0, w19, w0
.L10:
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
.LFE8:
.size H, .-H
.section .rodata
.align 3
.LC0:
.string "%d %d"
.align 3
.LC1:
.string "%d"
.align 3
.LC2:
.string "%d\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB9:
.cfi_startproc
stp x29, x30, [sp, -144]!
.cfi_def_cfa_offset 144
.cfi_offset 29, -144
.cfi_offset 30, -136
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, -128
.cfi_offset 20, -120
.cfi_offset 21, -112
.cfi_offset 22, -104
.cfi_offset 23, -96
.cfi_offset 24, -88
.cfi_offset 25, -80
.cfi_offset 26, -72
.cfi_offset 27, -64
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [x29, 136]
mov x1, 0
mov x0, sp
mov x19, x0
add x0, x29, 96
mov x2, x0
adrp x0, n
add x1, x0, :lo12:n
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
adrp x0, n
add x0, x0, :lo12:n
ldr w0, [x0]
sxtw x1, w0
sub x1, x1, #1
str x1, [x29, 120]
sxtw x1, w0
mov x26, x1
mov x27, 0
lsr x1, x26, 59
lsl x23, x27, 5
orr x23, x1, x23
lsl x22, x26, 5
sxtw x1, w0
mov x24, x1
mov x25, 0
lsr x1, x24, 59
lsl x21, x25, 5
orr x21, x1, x21
lsl x20, x24, 5
sxtw x0, w0
lsl x0, x0, 2
add x0, x0, 15
lsr x0, x0, 4
lsl x0, x0, 4
and x1, x0, -65536
sub x1, sp, x1
.L12:
cmp sp, x1
beq .L13
sub sp, sp, #65536
str xzr, [sp, 1024]
b .L12
.L13:
and x1, x0, 65535
sub sp, sp, x1
str xzr, [sp]
and x0, x0, 65535
cmp x0, 1024
bcc .L14
str xzr, [sp, 1024]
.L14:
add x0, sp, 16
add x0, x0, 3
lsr x0, x0, 2
lsl x0, x0, 2
str x0, [x29, 128]
str wzr, [x29, 108]
b .L15
.L16:
ldrsw x0, [x29, 108]
lsl x0, x0, 2
ldr x1, [x29, 128]
add x0, x1, x0
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
ldr w0, [x29, 108]
add w0, w0, 1
str w0, [x29, 108]
.L15:
adrp x0, n
add x0, x0, :lo12:n
ldr w0, [x0]
ldr w1, [x29, 108]
cmp w1, w0
blt .L16
str wzr, [x29, 108]
b .L17
.L18:
add x1, x29, 104
add x0, x29, 100
mov x2, x1
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
ldr w0, [x29, 100]
ldr w1, [x29, 104]
ldr x2, [x29, 128]
bl N
str w0, [x29, 112]
ldr w0, [x29, 100]
ldr w1, [x29, 104]
ldr x2, [x29, 128]
bl M
str w0, [x29, 116]
ldr w0, [x29, 112]
ldr w2, [x29, 116]
ldr w1, [x29, 116]
cmp w2, w0
csel w3, w1, w0, le
ldr w0, [x29, 112]
ldr w2, [x29, 116]
ldr w1, [x29, 116]
cmp w2, w0
csel w0, w1, w0, ge
ldr x2, [x29, 128]
mov w1, w0
mov w0, w3
bl H
mov w1, w0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
ldr w0, [x29, 108]
add w0, w0, 1
str w0, [x29, 108]
.L17:
ldr w0, [x29, 96]
ldr w1, [x29, 108]
cmp w1, w0
blt .L18
mov sp, x19
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [x29, 136]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L20
bl __stack_chk_fail
.L20:
mov w0, w1
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], 144
.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
.LFE9:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "usage: %s filename\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 w0, [sp, 28]
str x1, [sp, 16]
ldr w0, [sp, 28]
cmp w0, 2
beq .L2
ldr x0, [sp, 16]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
mov w0, -1
bl exit
.L2:
ldr x0, [sp, 16]
add x0, x0, 8
ldr x0, [x0]
cmp x0, 0
beq .L3
ldr x0, [sp, 16]
ldr x0, [x0, 8]
str x0, [sp, 40]
.L3:
mov w2, 2541
mov w1, 66
ldr x0, [sp, 40]
bl open
str w0, [sp, 36]
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
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Digite o %d numero da %d coluna"
.align 3
.LC1:
.string "%d"
.align 3
.LC2:
.string "a soma dos valores da primeira linha e %d\n"
.align 3
.LC3:
.string "a soma dos valores da terceira coluna e %d\n"
.align 3
.LC4:
.string "a soma dos valores da diagonal e%d\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.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, 32]
str wzr, [sp, 36]
str wzr, [sp, 40]
str wzr, [sp, 44]
str wzr, [sp, 24]
b .L2
.L5:
str wzr, [sp, 28]
b .L3
.L4:
ldr w0, [sp, 28]
add w1, w0, 1
ldr w0, [sp, 24]
add w0, w0, 1
mov w2, w0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
add x2, sp, 48
ldrsw x3, [sp, 28]
ldrsw x1, [sp, 24]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
add x0, x3, x0
lsl x0, x0, 2
add x0, x2, x0
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L3:
ldr w0, [sp, 28]
cmp w0, 2
ble .L4
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L2:
ldr w0, [sp, 24]
cmp w0, 2
ble .L5
str wzr, [sp, 24]
b .L6
.L7:
ldrsw x0, [sp, 24]
lsl x0, x0, 2
add x1, sp, 48
ldr w0, [x1, x0]
ldr w1, [sp, 32]
add w0, w1, w0
str w0, [sp, 32]
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L6:
ldr w0, [sp, 24]
cmp w0, 2
ble .L7
str wzr, [sp, 24]
b .L8
.L9:
ldrsw x1, [sp, 24]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x1, sp, 56
ldr w0, [x1, x0]
ldr w1, [sp, 36]
add w0, w1, w0
str w0, [sp, 36]
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L8:
ldr w0, [sp, 24]
cmp w0, 2
ble .L9
str wzr, [sp, 24]
b .L10
.L11:
ldr w1, [sp, 44]
ldr w0, [sp, 24]
add w0, w1, w0
sxtw x2, w0
ldrsw x1, [sp, 24]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
add x0, x0, x2
lsl x0, x0, 2
add x1, sp, 48
ldr w0, [x1, x0]
ldr w1, [sp, 40]
add w0, w1, w0
str w0, [sp, 40]
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L10:
ldr w0, [sp, 24]
cmp w0, 2
ble .L11
ldr w1, [sp, 32]
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
ldr w1, [sp, 36]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
ldr w1, [sp, 40]
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, 88]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L13
bl __stack_chk_fail
.L13:
mov w0, w1
ldp x29, x30, [sp], 96
.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 f
.type f, %function
f:
.LFB0:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
str x1, [sp]
ldr x0, [sp, 8]
ldr x1, [sp]
str x1, [x0]
nop
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size f, .-f
.section .rodata
.align 3
.LC0:
.string "%d\n"
.text
.align 2
.global g
.type g, %function
g:
.LFB1:
.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
add x0, sp, 40
add x0, x0, 8
ldr x1, [sp, 24]
bl f
ldr x0, [sp, 48]
ldr w0, [x0]
mov w1, w0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
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 .L3
bl __stack_chk_fail
.L3:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size g, .-g
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.data
.align 2
.type circle_width, %object
.size circle_width, 4
circle_width:
.word 16
.align 2
.type circle_height, %object
.size circle_height, 4
circle_height:
.word 16
.section .rodata
.align 3
.LC0:
.ascii "!!!!!!!!!!!!!!!!C)C)SML+\\/TM`0T]`0T]\\/TMSML+C)C)!!!!!!!!!!"
.ascii "!!!!!!!!!!!!!!7FJ;S-D)````````````````````````````````S-D)7F"
.ascii "J;!!!!!!!!!!!!7FJ;V.45``````````````````````````````````````"
.ascii "``V.457FJ;!!!!!!!!S-D)``````````````````````````````````````"
.ascii "``````````S-D)!!!!C)C)``````````````````````````````````````"
.ascii "``````````````````C)C)SML+``````````````````````````````````"
.ascii "``````````````````````SML+\\/TM`````````````````````````````"
.ascii "```````````````````````````\\/TM`0T]````````````````````````"
.ascii "`````````````````````````````````0T]`0T]````````````````````"
.ascii "`````````````````````````````````````0T]\\/TM```````````````"
.ascii "`````````````````````````````````````````\\/TMSML+``````````"
.ascii "``````````````````````````````````````````````SML+C)C)``````"
.ascii "``````````````````````````````````````````````````C)C)"
.string "!!!!S-D)````````````````````````````````````````````````S-D)!!!!!!!!7FJ;V.45````````````````````````````````````````V.457FJ;!!!!!!!!!!!!7FJ;S-D)````````````````````````````````S-D)7FJ;!!!!!!!!!!!!!!!!!!!!!!!!C)C)SML+\\/TM`0T]`0T]\\/TMSML+C)C)!!!!!!!!!!!!!!!!"
.section .data.rel.local,"aw"
.align 3
.type circle_data, %object
.size circle_data, 8
circle_data:
.xword .LC0
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "test.txt"
.align 3
.LC1:
.string "fail to stat"
.align 3
.LC2:
.string "fail to get ruid"
.align 3
.LC3:
.string "fail to get euid"
.align 3
.LC4:
.string "real id is : %u, effective id is : %u \n"
.align 3
.LC5:
.string "file owner is : %u\n"
.align 3
.LC6:
.string "fail to access"
.align 3
.LC7:
.string "access successfully"
.align 3
.LC8:
.string "fail to open"
.align 3
.LC9:
.string "ready to read"
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.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
add x0, sp, 40
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl stat
cmn w0, #1
bne .L2
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl perror
mov w0, 1
bl exit
.L2:
bl getuid
str w0, [sp, 28]
ldr w0, [sp, 28]
cmn w0, #1
bne .L3
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl perror
mov w0, 1
bl exit
.L3:
bl geteuid
str w0, [sp, 32]
ldr w0, [sp, 32]
cmn w0, #1
bne .L4
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl perror
mov w0, 1
bl exit
.L4:
ldr w2, [sp, 32]
ldr w1, [sp, 28]
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
ldr w0, [sp, 64]
mov w1, w0
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
mov w1, 4
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl access
cmn w0, #1
bne .L5
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl perror
mov w0, 1
bl exit
.L5:
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl puts
mov w1, 0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl open
str w0, [sp, 36]
ldr w0, [sp, 36]
cmn w0, #1
bne .L6
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl perror
mov w0, 1
bl exit
.L6:
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl puts
ldr w0, [sp, 36]
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 .L8
bl __stack_chk_fail
.L8:
mov w0, w1
ldp x29, x30, [sp], 176
.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 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
mov w0, 12
str w0, [sp, 20]
adrp x0, .LC0
add x1, x0, :lo12:.LC0
add x0, sp, 24
ldp q0, q1, [x1]
stp q0, q1, [x0]
ldr q0, [x1, 32]
str q0, [x0, 32]
add x0, sp, 24
ldr w1, [sp, 20]
bl printArr
add x0, sp, 24
ldr w1, [sp, 20]
bl shellsort
add x0, sp, 24
ldr w1, [sp, 20]
bl printArr
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 .L3
bl __stack_chk_fail
.L3:
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
.LC0:
.word 11
.word 10
.word 9
.word 8
.word 7
.word 6
.word 5
.word 4
.word 3
.word 2
.word 1
.word 0
.text
.section .rodata
.align 3
.LC1:
.string "gap: %d, i: %d, j: %d, j+gap: %d\n"
.text
.align 2
.global shellsort
.type shellsort, %function
shellsort:
.LFB1:
.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]
lsr w1, w0, 31
add w0, w1, w0
asr w0, w0, 1
str w0, [sp, 32]
b .L5
.L11:
ldr w0, [sp, 32]
str w0, [sp, 36]
b .L6
.L10:
ldr w1, [sp, 36]
ldr w0, [sp, 32]
sub w0, w1, w0
str w0, [sp, 40]
b .L7
.L9:
ldr w1, [sp, 40]
ldr w0, [sp, 32]
add w0, w1, w0
mov w4, w0
ldr w3, [sp, 40]
ldr w2, [sp, 36]
ldr w1, [sp, 32]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
ldrsw x0, [sp, 40]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w0, [x0]
str w0, [sp, 44]
ldr w1, [sp, 40]
ldr w0, [sp, 32]
add w0, w1, w0
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 24]
add x1, x1, x0
ldrsw x0, [sp, 40]
lsl x0, x0, 2
ldr x2, [sp, 24]
add x0, x2, x0
ldr w1, [x1]
str w1, [x0]
ldr w1, [sp, 40]
ldr w0, [sp, 32]
add w0, w1, w0
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w1, [sp, 44]
str w1, [x0]
ldr w1, [sp, 40]
ldr w0, [sp, 32]
sub w0, w1, w0
str w0, [sp, 40]
.L7:
ldr w0, [sp, 40]
cmp w0, 0
blt .L8
ldrsw x0, [sp, 40]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w1, [x0]
ldr w2, [sp, 40]
ldr w0, [sp, 32]
add w0, w2, w0
sxtw x0, w0
lsl x0, x0, 2
ldr x2, [sp, 24]
add x0, x2, x0
ldr w0, [x0]
cmp w1, w0
bgt .L9
.L8:
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L6:
ldr w1, [sp, 36]
ldr w0, [sp, 20]
cmp w1, w0
blt .L10
ldr w0, [sp, 32]
lsr w1, w0, 31
add w0, w1, w0
asr w0, w0, 1
str w0, [sp, 32]
.L5:
ldr w0, [sp, 32]
cmp w0, 0
bgt .L11
nop
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size shellsort, .-shellsort
.section .rodata
.align 3
.LC2:
.string "%d "
.text
.align 2
.global printArr
.type printArr, %function
printArr:
.LFB2:
.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 .L13
.L14:
ldrsw x0, [sp, 44]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w0, [x0]
mov w1, w0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L13:
ldr w1, [sp, 44]
ldr w0, [sp, 20]
cmp w1, w0
blt .L14
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
.LFE2:
.size printArr, .-printArr
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "%d is a prime number!\n"
.align 3
.LC1:
.string "%d is not a prime number!\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
bl get_valid_number
str w0, [sp, 28]
b .L2
.L5:
ldr w0, [sp, 28]
bl is_prime
cmp w0, 0
beq .L3
ldr w1, [sp, 28]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
b .L4
.L3:
ldr w1, [sp, 28]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
.L4:
bl get_valid_number
str w0, [sp, 28]
.L2:
ldr w0, [sp, 28]
cmn w0, #1
bne .L5
mov w0, 0
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
.align 2
.global is_prime
.type is_prime, %function
is_prime:
.LFB7:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, 12]
mov w0, 2
str w0, [sp, 28]
b .L8
.L11:
ldr w0, [sp, 12]
ldr w1, [sp, 28]
sdiv w2, w0, w1
ldr w1, [sp, 28]
mul w1, w2, w1
sub w0, w0, w1
cmp w0, 0
bne .L9
mov w0, 0
b .L10
.L9:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L8:
ldr w1, [sp, 28]
ldr w0, [sp, 12]
cmp w1, w0
blt .L11
mov w0, 1
.L10:
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size is_prime, .-is_prime
.section .rodata
.align 3
.LC2:
.string "Please enter an integer greater than 2 to test its primality, enter -1 to exit "
.align 3
.LC3:
.string "%d"
.text
.align 2
.global get_valid_number
.type get_valid_number, %function
get_valid_number:
.LFB8:
.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, .LC2
add x0, x0, :lo12:.LC2
bl puts
add x0, sp, 20
mov x1, x0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl __isoc99_scanf
b .L13
.L15:
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl puts
add x0, sp, 20
mov x1, x0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl __isoc99_scanf
.L13:
ldr w0, [sp, 20]
cmp w0, 2
bgt .L14
ldr w0, [sp, 20]
cmn w0, #1
bne .L15
.L14:
ldr w0, [sp, 20]
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 .L17
bl __stack_chk_fail
.L17:
mov w0, w1
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size get_valid_number, .-get_valid_number
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.local tm_time
.comm tm_time,56,8
.data
.align 3
.type days_month, %object
.size days_month, 48
days_month:
.word 0
.word 31
.word 60
.word 91
.word 121
.word 152
.word 182
.word 213
.word 244
.word 274
.word 305
.word 335
.section .rodata
.align 3
.type sweekdays, %object
.size sweekdays, 28
sweekdays:
.string "Sun"
.string "Mon"
.string "Tue"
.string "Wed"
.string "Thu"
.string "Fri"
.string "Sat"
.align 3
.type weekdays, %object
.size weekdays, 70
weekdays:
.string "Sunday"
.zero 3
.string "Monday"
.zero 3
.string "Tuesday"
.zero 2
.string "Wednesday"
.string "Thursday"
.zero 1
.string "Friday"
.zero 3
.string "Saturday"
.zero 1
.align 3
.type smonths, %object
.size smonths, 48
smonths:
.string "Jan"
.string "Feb"
.string "Mar"
.string "Apr"
.string "May"
.string "Jun"
.string "Jul"
.string "Aug"
.string "Sep"
.string "Oct"
.string "Nov"
.string "Dec"
.align 3
.LC0:
.string "January"
.align 3
.LC1:
.string "February"
.align 3
.LC2:
.string "March"
.align 3
.LC3:
.string "April"
.align 3
.LC4:
.string "May"
.align 3
.LC5:
.string "June"
.align 3
.LC6:
.string "July"
.align 3
.LC7:
.string "August"
.align 3
.LC8:
.string "September"
.align 3
.LC9:
.string "October"
.align 3
.LC10:
.string "November"
.align 3
.LC11:
.string "December"
.section .data.rel.local,"aw"
.align 3
.type months, %object
.size months, 96
months:
.xword .LC0
.xword .LC1
.xword .LC2
.xword .LC3
.xword .LC4
.xword .LC5
.xword .LC6
.xword .LC7
.xword .LC8
.xword .LC9
.xword .LC10
.xword .LC11
.section .rodata
.align 3
.type ampm, %object
.size ampm, 12
ampm:
.string "am"
.string "pm"
.string "AM"
.string "PM"
.text
.align 2
.type to_string, %function
to_string:
.LFB0:
.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]
str wzr, [sp, 48]
.L2:
ldr w1, [sp, 20]
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 w0, w1, w0
str w0, [sp, 52]
ldr w0, [sp, 52]
cmp w0, 0
csneg w0, w0, w0, ge
str w0, [sp, 52]
ldr w0, [sp, 52]
and w1, w0, 255
ldr w0, [sp, 44]
add w2, w0, 1
str w2, [sp, 44]
add w1, w1, 48
and w2, w1, 255
sxtw x0, w0
add x1, sp, 56
strb w2, [x1, x0]
ldr w0, [sp, 20]
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, 20]
ldr w0, [sp, 20]
cmp w0, 0
bne .L2
ldr w0, [sp, 44]
sub w0, w0, #1
str w0, [sp, 44]
str wzr, [sp, 48]
b .L3
.L4:
ldrsw x0, [sp, 48]
ldr x1, [sp, 24]
add x0, x1, x0
ldrsw x1, [sp, 44]
add x2, sp, 56
ldrb w1, [x2, x1]
strb w1, [x0]
ldr w0, [sp, 44]
sub w0, w0, #1
str w0, [sp, 44]
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
.L3:
ldr w0, [sp, 44]
cmp w0, 0
bge .L4
ldrsw x0, [sp, 48]
ldr x1, [sp, 24]
add x0, x1, x0
strb wzr, [x0]
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 .L5
bl __stack_chk_fail
.L5:
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size to_string, .-to_string
.align 2
.global clock
.type clock, %function
clock:
.LFB1:
.cfi_startproc
mov x0, -1
ret
.cfi_endproc
.LFE1:
.size clock, .-clock
.align 2
.global difftime
.type difftime, %function
difftime:
.LFB2:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
str x1, [sp]
ldr d0, [sp, 8]
scvtf d1, d0
ldr d0, [sp]
scvtf d0, d0
fsub d0, d1, d0
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size difftime, .-difftime
.align 2
.global mktime
.type mktime, %function
mktime:
.LFB3:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
ldr x0, [sp, 8]
ldr w0, [x0, 20]
sub w0, w0, #1970
str w0, [sp, 20]
ldr x0, [sp, 8]
ldr w0, [x0]
sxtw x0, w0
str x0, [sp, 24]
ldr x0, [sp, 8]
ldr w1, [x0, 4]
mov w0, w1
lsl w0, w0, 4
sub w0, w0, w1
lsl w0, w0, 2
sxtw x0, w0
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 24]
ldr x0, [sp, 8]
ldr w1, [x0, 8]
mov w0, 3600
mul w0, w1, w0
sxtw x0, w0
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 24]
ldr x0, [sp, 8]
ldr w0, [x0, 12]
sub w1, w0, #1
mov w0, 20864
movk w0, 0x1, lsl 16
mul w0, w1, w0
sxtw x0, w0
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 24]
ldr x0, [sp, 8]
ldr w1, [x0, 16]
adrp x0, days_month
add x0, x0, :lo12:days_month
sxtw x1, w1
ldr w1, [x0, x1, lsl 2]
mov w0, 20864
movk w0, 0x1, lsl 16
mul w0, w1, w0
sxtw x0, w0
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 24]
ldr x0, [sp, 8]
ldr w0, [x0, 16]
cmp w0, 1
ble .L11
ldr w0, [sp, 20]
add w0, w0, 2
and w0, w0, 3
cmp w0, 0
beq .L11
ldr x1, [sp, 24]
mov x0, -20864
movk x0, 0xfffe, lsl 16
add x0, x1, x0
str x0, [sp, 24]
.L11:
ldr w1, [sp, 20]
mov w0, 13184
movk w0, 0x1e1, lsl 16
mul w1, w1, w0
ldr w0, [sp, 20]
add w0, w0, 1
add w2, w0, 3
cmp w0, 0
csel w0, w2, w0, lt
asr w0, w0, 2
mov w2, w0
mov w0, 20864
movk w0, 0x1, lsl 16
mul w0, w2, w0
add w0, w1, w0
sxtw x0, w0
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 24]
ldr x0, [sp, 24]
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE3:
.size mktime, .-mktime
.align 2
.global ctime
.type ctime, %function
ctime:
.LFB4:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
mov x0, 0
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE4:
.size ctime, .-ctime
.align 2
.global gmtime
.type gmtime, %function
gmtime:
.LFB5:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
mov x0, 0
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE5:
.size gmtime, .-gmtime
.data
.align 3
.type magic_month_number, %object
.size magic_month_number, 48
magic_month_number:
.word 1
.word 4
.word 5
.word 0
.word 2
.word 5
.word 0
.word 3
.word 6
.word 1
.word 4
.word 6
.align 3
.type magic_century_number, %object
.size magic_century_number, 20
magic_century_number:
.word 4
.word 2
.word 0
.word 6
.word 4
.text
.align 2
.global localtime
.type localtime, %function
localtime:
.LFB6:
.cfi_startproc
str x19, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 19, -32
str x0, [sp, 24]
ldr x0, [sp, 24]
ldr x19, [x0]
mov x0, -21600
add x0, x19, x0
mov x1, 11727
movk x1, 0xc550, lsl 16
movk x1, 0xb5e3, lsl 32
movk x1, 0x440c, lsl 48
smulh x1, x0, x1
asr x1, x1, 23
asr x0, x0, 63
sub x0, x1, x0
add w0, w0, 1970
mov w1, w0
adrp x0, tm_time
add x0, x0, :lo12:tm_time
str w1, [x0, 20]
mov x0, 10583
movk x0, 0xce51, lsl 16
movk x0, 0xc8a0, lsl 32
movk x0, 0x1845, lsl 48
smulh x0, x19, x0
asr x1, x0, 13
asr x0, x19, 63
sub x1, x1, x0
adrp x0, tm_time
add x0, x0, :lo12:tm_time
ldr w0, [x0, 20]
sub w0, w0, #1969
asr w0, w0, 2
sxtw x0, w0
sub x0, x1, x0
mov x1, 13287
movk x1, 0x2ce, lsl 16
movk x1, 0x3e6c, lsl 32
movk x1, 0x2ce3, lsl 48
smulh x1, x0, x1
asr x2, x1, 6
asr x1, x0, 63
sub x1, x2, x1
mov x2, 365
mul x1, x1, x2
sub x1, x0, x1
mov w0, w1
add w0, w0, 1
mov w1, w0
adrp x0, tm_time
add x0, x0, :lo12:tm_time
str w1, [x0, 28]
adrp x0, tm_time
add x0, x0, :lo12:tm_time
str wzr, [x0, 16]
b .L18
.L21:
adrp x0, tm_time
add x0, x0, :lo12:tm_time
ldr w1, [x0, 16]
adrp x0, days_month
add x0, x0, :lo12:days_month
sxtw x1, w1
ldr w1, [x0, x1, lsl 2]
adrp x0, tm_time
add x0, x0, :lo12:tm_time
ldr w0, [x0, 28]
cmp w1, w0
ble .L19
adrp x0, tm_time
add x0, x0, :lo12:tm_time
ldr w0, [x0, 16]
sub w1, w0, #1
adrp x0, tm_time
add x0, x0, :lo12:tm_time
str w1, [x0, 16]
b .L20
.L19:
adrp x0, tm_time
add x0, x0, :lo12:tm_time
ldr w0, [x0, 16]
add w1, w0, 1
adrp x0, tm_time
add x0, x0, :lo12:tm_time
str w1, [x0, 16]
.L18:
adrp x0, tm_time
add x0, x0, :lo12:tm_time
ldr w0, [x0, 16]
cmp w0, 11
ble .L21
.L20:
adrp x0, tm_time
add x0, x0, :lo12:tm_time
ldr w0, [x0, 28]
adrp x1, tm_time
add x1, x1, :lo12:tm_time
ldr w2, [x1, 16]
adrp x1, days_month
add x1, x1, :lo12:days_month
sxtw x2, w2
ldr w1, [x1, x2, lsl 2]
sdiv w2, w0, w1
mul w1, w2, w1
sub w0, w0, w1
add w1, w0, 1
adrp x0, tm_time
add x0, x0, :lo12:tm_time
str w1, [x0, 12]
adrp x0, tm_time
add x0, x0, :lo12:tm_time
ldr w0, [x0, 20]
mov w1, 34079
movk w1, 0x51eb, lsl 16
smull x1, w0, w1
lsr x1, x1, 32
asr w2, w1, 5
asr w1, w0, 31
sub w1, w2, w1
mov w2, 100
mul w1, w1, w2
sub w1, w0, w1
mov w0, w1
add w1, w0, 3
cmp w0, 0
csel w0, w1, w0, lt
asr w0, w0, 2
mov w1, w0
adrp x0, tm_time
add x0, x0, :lo12:tm_time
ldr w0, [x0, 12]
add w1, w1, w0
adrp x0, tm_time
add x0, x0, :lo12:tm_time
ldr w2, [x0, 16]
adrp x0, magic_month_number
add x0, x0, :lo12:magic_month_number
sxtw x2, w2
ldr w0, [x0, x2, lsl 2]
add w1, w1, w0
adrp x0, tm_time
add x0, x0, :lo12:tm_time
ldr w0, [x0, 20]
mov w2, 34079
movk w2, 0x51eb, lsl 16
smull x2, w0, w2
lsr x2, x2, 32
asr w2, w2, 5
asr w0, w0, 31
sub w2, w2, w0
adrp x0, magic_century_number
add x0, x0, :lo12:magic_century_number
sxtw x2, w2
ldr w0, [x0, x2, lsl 2]
add w1, w1, w0
adrp x0, tm_time
add x0, x0, :lo12:tm_time
str w1, [x0, 24]
adrp x0, tm_time
add x0, x0, :lo12:tm_time
ldr w0, [x0, 16]
cmp w0, 1
ble .L22
adrp x0, tm_time
add x0, x0, :lo12:tm_time
ldr w0, [x0, 28]
add w0, w0, 2
and w0, w0, 3
cmp w0, 0
beq .L22
adrp x0, tm_time
add x0, x0, :lo12:tm_time
ldr w0, [x0, 24]
sub w1, w0, #1
adrp x0, tm_time
add x0, x0, :lo12:tm_time
str w1, [x0, 24]
.L22:
adrp x0, tm_time
add x0, x0, :lo12:tm_time
ldr w0, [x0, 12]
mov w1, 9363
movk w1, 0x9249, lsl 16
smull x1, w0, w1
lsr x1, x1, 32
add w1, w0, w1
asr w2, w1, 2
asr w1, w0, 31
sub w2, w2, w1
mov w1, w2
lsl w1, w1, 3
sub w1, w1, w2
sub w2, w0, w1
sub w1, w2, #1
adrp x0, tm_time
add x0, x0, :lo12:tm_time
str w1, [x0, 24]
mov x0, 10583
movk x0, 0xce51, lsl 16
movk x0, 0xc8a0, lsl 32
movk x0, 0x1845, lsl 48
smulh x0, x19, x0
asr x1, x0, 13
asr x0, x19, 63
sub x0, x1, x0
mov x1, 20864
movk x1, 0x1, lsl 16
mul x0, x0, x1
sub x0, x19, x0
mov x1, 31749
movk x1, 0x6af3, lsl 16
movk x1, 0x59e2, lsl 32
movk x1, 0x48d1, lsl 48
smulh x1, x0, x1
asr x1, x1, 10
asr x0, x0, 63
sub x0, x1, x0
add w0, w0, 1
mov w1, w0
adrp x0, tm_time
add x0, x0, :lo12:tm_time
str w1, [x0, 8]
mov x0, 31749
movk x0, 0x6af3, lsl 16
movk x0, 0x59e2, lsl 32
movk x0, 0x48d1, lsl 48
smulh x0, x19, x0
asr x1, x0, 10
asr x0, x19, 63
sub x1, x1, x0
mov x0, x1
lsl x0, x0, 3
sub x0, x0, x1
lsl x0, x0, 5
add x0, x0, x1
lsl x0, x0, 4
sub x1, x19, x0
mov x0, -8608480567731124088
movk x0, 0x8889, lsl 0
smulh x0, x1, x0
add x0, x0, x1
asr x2, x0, 5
asr x0, x1, 63
sub x0, x2, x0
mov w1, w0
adrp x0, tm_time
add x0, x0, :lo12:tm_time
str w1, [x0, 4]
mov x0, -8608480567731124088
movk x0, 0x8889, lsl 0
smulh x0, x19, x0
add x0, x0, x19
asr x1, x0, 5
asr x0, x19, 63
sub x1, x1, x0
mov x0, x1
lsl x0, x0, 4
sub x0, x0, x1
lsl x0, x0, 2
sub x1, x19, x0
adrp x0, tm_time
add x0, x0, :lo12:tm_time
str w1, [x0]
adrp x0, tm_time
add x0, x0, :lo12:tm_time
ldr x19, [sp], 32
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size localtime, .-localtime
.section .rodata
.align 3
.LC12:
.string "%b %a %d %k:%M:%S %Z %Y"
.align 3
.LC13:
.string "%I:%M:%S %p"
.align 3
.LC14:
.string "%H:%M"
.align 3
.LC15:
.string "%b %a %d"
.align 3
.LC16:
.string "%k:%M:%S"
.align 3
.LC17:
.string "%m/%d/%y"
.align 3
.LC18:
.string "%H:%M:%S"
.align 3
.LC19:
.string "[unknown timezone]"
.text
.align 2
.global strftime
.type strftime, %function
strftime:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -208]!
.cfi_def_cfa_offset 208
.cfi_offset 29, -208
.cfi_offset 30, -200
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
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, 200]
mov x1, 0
ldr x0, [sp, 40]
str x0, [sp, 48]
ldr x0, [sp, 32]
cmp x0, 0
bne .L27
mov x0, 0
b .L89
.L88:
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 37
bne .L28
ldr x0, [sp, 24]
add x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 37
bne .L91
ldr x0, [sp, 48]
add x1, x0, 1
str x1, [sp, 48]
mov w1, 37
strb w1, [x0]
b .L85
.L91:
nop
.L29:
ldr x0, [sp, 24]
ldrb w0, [x0]
sub w0, w0, #65
cmp w0, 56
bhi .L85
adrp x1, .L32
add x1, x1, :lo12:.L32
ldr w0, [x1,w0,uxtw #2]
adr x1, .Lrtx32
add x0, x1, w0, sxtw #2
br x0
.Lrtx32:
.section .rodata
.align 0
.align 2
.L32:
.word (.L66 - .Lrtx32) / 4
.word (.L65 - .Lrtx32) / 4
.word (.L64 - .Lrtx32) / 4
.word (.L63 - .Lrtx32) / 4
.word (.L59 - .Lrtx32) / 4
.word (.L85 - .Lrtx32) / 4
.word (.L85 - .Lrtx32) / 4
.word (.L62 - .Lrtx32) / 4
.word (.L61 - .Lrtx32) / 4
.word (.L85 - .Lrtx32) / 4
.word (.L85 - .Lrtx32) / 4
.word (.L85 - .Lrtx32) / 4
.word (.L60 - .Lrtx32) / 4
.word (.L85 - .Lrtx32) / 4
.word (.L59 - .Lrtx32) / 4
.word (.L58 - .Lrtx32) / 4
.word (.L85 - .Lrtx32) / 4
.word (.L57 - .Lrtx32) / 4
.word (.L56 - .Lrtx32) / 4
.word (.L55 - .Lrtx32) / 4
.word (.L54 - .Lrtx32) / 4
.word (.L85 - .Lrtx32) / 4
.word (.L53 - .Lrtx32) / 4
.word (.L52 - .Lrtx32) / 4
.word (.L51 - .Lrtx32) / 4
.word (.L50 - .Lrtx32) / 4
.word (.L85 - .Lrtx32) / 4
.word (.L85 - .Lrtx32) / 4
.word (.L85 - .Lrtx32) / 4
.word (.L85 - .Lrtx32) / 4
.word (.L85 - .Lrtx32) / 4
.word (.L85 - .Lrtx32) / 4
.word (.L49 - .Lrtx32) / 4
.word (.L45 - .Lrtx32) / 4
.word (.L48 - .Lrtx32) / 4
.word (.L47 - .Lrtx32) / 4
.word (.L46 - .Lrtx32) / 4
.word (.L85 - .Lrtx32) / 4
.word (.L85 - .Lrtx32) / 4
.word (.L45 - .Lrtx32) / 4
.word (.L85 - .Lrtx32) / 4
.word (.L44 - .Lrtx32) / 4
.word (.L43 - .Lrtx32) / 4
.word (.L42 - .Lrtx32) / 4
.word (.L41 - .Lrtx32) / 4
.word (.L40 - .Lrtx32) / 4
.word (.L85 - .Lrtx32) / 4
.word (.L39 - .Lrtx32) / 4
.word (.L85 - .Lrtx32) / 4
.word (.L38 - .Lrtx32) / 4
.word (.L37 - .Lrtx32) / 4
.word (.L36 - .Lrtx32) / 4
.word (.L35 - .Lrtx32) / 4
.word (.L85 - .Lrtx32) / 4
.word (.L34 - .Lrtx32) / 4
.word (.L33 - .Lrtx32) / 4
.word (.L31 - .Lrtx32) / 4
.text
.L40:
ldr x0, [sp, 48]
add x1, x0, 1
str x1, [sp, 48]
mov w1, 10
strb w1, [x0]
b .L85
.L36:
ldr x0, [sp, 48]
add x1, x0, 1
str x1, [sp, 48]
mov w1, 9
strb w1, [x0]
b .L85
.L59:
ldr x0, [sp, 24]
add x0, x0, 1
str x0, [sp, 24]
b .L29
.L48:
adrp x0, .LC12
add x0, x0, :lo12:.LC12
str x0, [sp, 56]
b .L67
.L38:
adrp x0, .LC13
add x0, x0, :lo12:.LC13
str x0, [sp, 56]
b .L67
.L57:
adrp x0, .LC14
add x0, x0, :lo12:.LC14
str x0, [sp, 56]
b .L67
.L33:
adrp x0, .LC15
add x0, x0, :lo12:.LC15
str x0, [sp, 56]
b .L67
.L52:
adrp x0, .LC16
add x0, x0, :lo12:.LC16
str x0, [sp, 56]
b .L67
.L63:
adrp x0, .LC17
add x0, x0, :lo12:.LC17
str x0, [sp, 56]
b .L67
.L55:
adrp x0, .LC18
add x0, x0, :lo12:.LC18
str x0, [sp, 56]
.L67:
ldr x1, [sp, 40]
ldr x0, [sp, 32]
add x1, x1, x0
ldr x0, [sp, 48]
sub x0, x1, x0
ldr x3, [sp, 16]
ldr x2, [sp, 56]
mov x1, x0
ldr x0, [sp, 48]
bl strftime
mov x1, x0
ldr x0, [sp, 48]
add x0, x0, x1
str x0, [sp, 48]
b .L85
.L49:
ldr x0, [sp, 16]
ldr w0, [x0, 24]
sxtw x0, w0
lsl x1, x0, 2
adrp x0, sweekdays
add x0, x0, :lo12:sweekdays
add x0, x1, x0
str x0, [sp, 56]
b .L68
.L66:
ldr x0, [sp, 16]
ldr w0, [x0, 24]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
adrp x1, weekdays
add x1, x1, :lo12:weekdays
add x0, x0, x1
str x0, [sp, 56]
b .L68
.L45:
ldr x0, [sp, 16]
ldr w0, [x0, 16]
sxtw x0, w0
lsl x1, x0, 2
adrp x0, smonths
add x0, x0, :lo12:smonths
add x0, x1, x0
str x0, [sp, 56]
b .L68
.L65:
ldr x0, [sp, 16]
ldr w1, [x0, 16]
adrp x0, months
add x0, x0, :lo12:months
sxtw x1, w1
ldr x0, [x0, x1, lsl 3]
str x0, [sp, 56]
b .L68
.L39:
ldr x0, [sp, 16]
ldr w0, [x0, 8]
cmp w0, 11
cset w0, gt
and w0, w0, 255
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
adrp x1, ampm
add x1, x1, :lo12:ampm
add x0, x0, x1
str x0, [sp, 56]
b .L68
.L58:
ldr x0, [sp, 16]
ldr w0, [x0, 8]
cmp w0, 11
ble .L69
mov w0, 3
b .L70
.L69:
mov w0, 2
.L70:
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
adrp x1, ampm
add x1, x1, :lo12:ampm
add x0, x0, x1
str x0, [sp, 56]
b .L68
.L64:
ldr x0, [sp, 16]
ldr w0, [x0, 20]
mov w1, 34079
movk w1, 0x51eb, lsl 16
smull x1, w0, w1
lsr x1, x1, 32
asr w1, w1, 5
asr w0, w0, 31
sub w0, w1, w0
add w0, w0, 19
sxtw x0, w0
str x0, [sp, 64]
b .L71
.L47:
ldr x0, [sp, 16]
ldr w0, [x0, 12]
sxtw x0, w0
str x0, [sp, 64]
b .L71
.L46:
ldr x0, [sp, 16]
ldr w0, [x0, 12]
sxtw x0, w0
str x0, [sp, 64]
b .L72
.L62:
ldr x0, [sp, 16]
ldr w0, [x0, 8]
sxtw x0, w0
str x0, [sp, 64]
b .L71
.L61:
ldr x0, [sp, 16]
ldr w0, [x0, 8]
cmp w0, 12
bne .L73
mov x0, 12
str x0, [sp, 64]
b .L71
.L73:
ldr x0, [sp, 16]
ldr w1, [x0, 8]
mov w0, 43691
movk w0, 0x2aaa, lsl 16
smull x0, w1, w0
lsr x0, x0, 32
asr w2, w0, 1
asr w0, w1, 31
sub w2, w2, w0
mov w0, w2
lsl w0, w0, 1
add w0, w0, w2
lsl w0, w0, 2
sub w2, w1, w0
sxtw x0, w2
str x0, [sp, 64]
b .L71
.L44:
ldr x0, [sp, 16]
ldr w0, [x0, 28]
sxtw x0, w0
str x0, [sp, 64]
b .L71
.L43:
ldr x0, [sp, 16]
ldr w0, [x0, 8]
sxtw x0, w0
str x0, [sp, 64]
b .L72
.L42:
ldr x0, [sp, 16]
ldr w1, [x0, 8]
mov w0, 43691
movk w0, 0x2aaa, lsl 16
smull x0, w1, w0
lsr x0, x0, 32
asr w2, w0, 1
asr w0, w1, 31
sub w2, w2, w0
mov w0, w2
lsl w0, w0, 1
add w0, w0, w2
lsl w0, w0, 2
sub w2, w1, w0
sxtw x0, w2
str x0, [sp, 64]
b .L72
.L41:
ldr x0, [sp, 16]
ldr w0, [x0, 16]
add w0, w0, 1
sxtw x0, w0
str x0, [sp, 64]
b .L71
.L60:
ldr x0, [sp, 16]
ldr w0, [x0, 4]
sxtw x0, w0
str x0, [sp, 64]
b .L71
.L56:
ldr x0, [sp, 16]
ldr w0, [x0]
sxtw x0, w0
str x0, [sp, 64]
b .L71
.L35:
ldr x0, [sp, 16]
ldr w0, [x0, 24]
cmp w0, 0
beq .L75
ldr x0, [sp, 16]
ldr w0, [x0, 24]
sxtw x0, w0
b .L76
.L75:
mov x0, 7
.L76:
str x0, [sp, 64]
b .L71
.L34:
ldr x0, [sp, 16]
ldr w0, [x0, 24]
sxtw x0, w0
str x0, [sp, 64]
b .L71
.L54:
ldr x0, [sp, 16]
ldr w1, [x0, 28]
ldr x0, [sp, 16]
ldr w0, [x0, 24]
sub w0, w1, w0
add w0, w0, 7
mov w1, 9363
movk w1, 0x9249, lsl 16
smull x1, w0, w1
lsr x1, x1, 32
add w1, w0, w1
asr w1, w1, 2
asr w0, w0, 31
sub w0, w1, w0
sxtw x0, w0
str x0, [sp, 64]
b .L71
.L53:
ldr x0, [sp, 16]
ldr w3, [x0, 28]
ldr x0, [sp, 16]
ldr w0, [x0, 24]
add w0, w0, 6
mov w1, 9363
movk w1, 0x9249, lsl 16
smull x1, w0, w1
lsr x1, x1, 32
add w1, w0, w1
asr w2, w1, 2
asr w1, w0, 31
sub w2, w2, w1
mov w1, w2
lsl w1, w1, 3
sub w1, w1, w2
sub w2, w0, w1
sub w0, w3, w2
add w0, w0, 7
mov w1, 9363
movk w1, 0x9249, lsl 16
smull x1, w0, w1
lsr x1, x1, 32
add w1, w0, w1
asr w1, w1, 2
asr w0, w0, 31
sub w0, w1, w0
sxtw x0, w0
str x0, [sp, 64]
b .L71
.L37:
ldr x0, [sp, 16]
bl mktime
str x0, [sp, 72]
strb wzr, [sp, 196]
add x0, sp, 96
add x0, x0, 99
str x0, [sp, 80]
b .L77
.L80:
ldr x1, [sp, 72]
mov x0, 7378697629483820646
movk x0, 0x6667, lsl 0
smulh x0, x1, x0
asr x2, x0, 2
asr x0, x1, 63
sub x2, x2, x0
mov x0, x2
lsl x0, x0, 2
add x0, x0, x2
lsl x0, x0, 1
sub x2, x1, x0
and w0, w2, 255
add w0, w0, 48
and w1, w0, 255
ldr x0, [sp, 80]
strb w1, [x0]
ldr x0, [sp, 72]
mov x1, 7378697629483820646
movk x1, 0x6667, lsl 0
smulh x1, x0, x1
asr x1, x1, 2
asr x0, x0, 63
sub x0, x1, x0
str x0, [sp, 72]
ldr x0, [sp, 72]
cmp x0, 0
beq .L92
ldr x0, [sp, 80]
sub x0, x0, #1
str x0, [sp, 80]
.L77:
add x0, sp, 96
ldr x1, [sp, 80]
cmp x1, x0
bhi .L80
b .L79
.L92:
nop
.L79:
ldr x0, [sp, 80]
str x0, [sp, 56]
b .L82
.L50:
adrp x0, .LC19
add x0, x0, :lo12:.LC19
str x0, [sp, 56]
b .L68
.L51:
ldr x0, [sp, 16]
ldr w1, [x0, 20]
add x0, sp, 88
bl to_string
add x0, sp, 88
str x0, [sp, 56]
b .L68
.L31:
ldr x0, [sp, 16]
ldr w0, [x0, 20]
mov w1, 34079
movk w1, 0x51eb, lsl 16
smull x1, w0, w1
lsr x1, x1, 32
asr w2, w1, 5
asr w1, w0, 31
sub w1, w2, w1
mov w2, 100
mul w1, w1, w2
sub w1, w0, w1
sxtw x0, w1
str x0, [sp, 64]
nop
.L71:
ldr x0, [sp, 64]
mov w1, w0
add x0, sp, 88
bl to_string
add x0, sp, 88
str x0, [sp, 56]
b .L68
.L72:
ldr x0, [sp, 64]
mov w1, w0
add x0, sp, 88
bl to_string
ldrb w0, [sp, 88]
cmp w0, 48
bne .L81
mov w0, 32
strb w0, [sp, 88]
.L81:
add x0, sp, 88
str x0, [sp, 56]
.L68:
b .L82
.L84:
ldr x1, [sp, 56]
add x0, x1, 1
str x0, [sp, 56]
ldr x0, [sp, 48]
add x2, x0, 1
str x2, [sp, 48]
ldrb w1, [x1]
strb w1, [x0]
.L82:
ldr x0, [sp, 56]
ldrb w0, [x0]
cmp w0, 0
beq .L93
ldr x1, [sp, 40]
ldr x0, [sp, 32]
add x0, x1, x0
ldr x1, [sp, 48]
cmp x1, x0
bcc .L84
b .L93
.L28:
ldr x0, [sp, 48]
add x1, x0, 1
str x1, [sp, 48]
ldr x1, [sp, 24]
ldrb w1, [x1]
strb w1, [x0]
b .L85
.L93:
nop
.L85:
ldr x1, [sp, 40]
ldr x0, [sp, 32]
add x0, x1, x0
ldr x1, [sp, 48]
cmp x1, x0
bcs .L94
ldr x0, [sp, 24]
add x0, x0, 1
str x0, [sp, 24]
.L27:
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 0
bne .L88
b .L87
.L94:
nop
.L87:
ldr x0, [sp, 48]
strb wzr, [x0]
ldr x1, [sp, 48]
ldr x0, [sp, 40]
sub x0, x1, x0
.L89:
mov x1, x0
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 .L90
bl __stack_chk_fail
.L90:
mov x0, x1
ldp x29, x30, [sp], 208
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size strftime, .-strftime
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global visc_force
.type visc_force, %function
visc_force:
.LFB0:
.cfi_startproc
sub sp, sp, #48
.cfi_def_cfa_offset 48
str w0, [sp, 28]
str x1, [sp, 16]
str x2, [sp, 8]
str x3, [sp]
str wzr, [sp, 44]
b .L2
.L3:
ldrsw x0, [sp, 44]
lsl x0, x0, 3
ldr x1, [sp, 8]
add x0, x1, x0
ldr d0, [x0]
fneg d1, d0
ldrsw x0, [sp, 44]
lsl x0, x0, 3
ldr x1, [sp]
add x0, x1, x0
ldr d0, [x0]
ldrsw x0, [sp, 44]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
fmul d0, d1, d0
str d0, [x0]
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L2:
ldr w1, [sp, 44]
ldr w0, [sp, 28]
cmp w1, w0
blt .L3
nop
nop
add sp, sp, 48
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size visc_force, .-visc_force
.align 2
.global wind_force
.type wind_force, %function
wind_force:
.LFB1:
.cfi_startproc
sub sp, sp, #48
.cfi_def_cfa_offset 48
str w0, [sp, 28]
str x1, [sp, 16]
str x2, [sp, 8]
str d0, [sp]
str wzr, [sp, 44]
b .L5
.L6:
ldrsw x0, [sp, 44]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
ldr d1, [x0]
ldrsw x0, [sp, 44]
lsl x0, x0, 3
ldr x1, [sp, 8]
add x0, x1, x0
ldr d2, [x0]
ldr d0, [sp]
fmul d0, d2, d0
ldrsw x0, [sp, 44]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
fsub d0, d1, d0
str d0, [x0]
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L5:
ldr w1, [sp, 44]
ldr w0, [sp, 28]
cmp w1, w0
blt .L6
nop
nop
add sp, sp, 48
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size wind_force, .-wind_force
.align 2
.global add_norm
.type add_norm, %function
add_norm:
.LFB2:
.cfi_startproc
sub sp, sp, #48
.cfi_def_cfa_offset 48
str w0, [sp, 28]
str x1, [sp, 16]
str x2, [sp, 8]
str wzr, [sp, 44]
b .L8
.L9:
ldrsw x0, [sp, 44]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
ldr d1, [x0]
ldrsw x0, [sp, 44]
lsl x0, x0, 3
ldr x1, [sp, 8]
add x0, x1, x0
ldr d2, [x0]
ldrsw x0, [sp, 44]
lsl x0, x0, 3
ldr x1, [sp, 8]
add x0, x1, x0
ldr d0, [x0]
fmul d0, d2, d0
ldrsw x0, [sp, 44]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
fadd d0, d1, d0
str d0, [x0]
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L8:
ldr w1, [sp, 44]
ldr w0, [sp, 28]
cmp w1, w0
blt .L9
nop
nop
add sp, sp, 48
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size add_norm, .-add_norm
.align 2
.global force
.type force, %function
force:
.LFB3:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str d8, [sp, 16]
.cfi_offset 72, -48
str d0, [sp, 56]
str d1, [sp, 48]
str d2, [sp, 40]
ldr d1, [sp, 56]
ldr d0, [sp, 48]
fmul d8, d1, d0
fmov d1, 3.0e+0
ldr d0, [sp, 40]
bl pow
fdiv d0, d8, d0
ldr d8, [sp, 16]
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_restore 72
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE3:
.size force, .-force
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "r"
.align 3
.LC1:
.string "myfile"
.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, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl fopen
str x0, [sp, 24]
b .L2
.L3:
ldr x0, [sp, 24]
bl fgetc
strb w0, [sp, 23]
.L2:
ldr x0, [sp, 24]
bl feof
cmp w0, 0
beq .L3
mov w0, 0
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
.global g1
.bss
.align 2
.type g1, %object
.size g1, 4
g1:
.zero 4
.global g2
.align 2
.type g2, %object
.size g2, 4
g2:
.zero 4
.global g3
.align 2
.type g3, %object
.size g3, 4
g3:
.zero 4
.global g4
.align 2
.type g4, %object
.size g4, 4
g4:
.zero 4
.text
.align 2
.global testFoo
.type testFoo, %function
testFoo:
.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, g4
add x0, x0, :lo12:g4
ldr w0, [x0]
add w1, w0, 1
adrp x0, g4
add x0, x0, :lo12:g4
str w1, [x0]
.L2:
mov w0, 17
str w0, [sp, 28]
ldr w0, [sp, 28]
cmp w0, 0
bne .L3
nop
.L4:
mov w0, 10
str w0, [sp, 28]
ldr w0, [sp, 28]
cmp w0, 10
beq .L3
nop
.L5:
mov w2, 1
mov w1, 1
mov w0, 1
bl foo
.L6:
b .L4
.L3:
ldr w0, [sp, 28]
cmp w0, 9
bgt .L7
nop
.L8:
b .L10
.L7:
mov w0, 20
str w0, [sp, 28]
adrp x0, g4
add x0, x0, :lo12:g4
mov w1, 1
str w1, [x0]
b .L8
.L10:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size testFoo, .-testFoo
.align 2
.global my2
.type my2, %function
my2:
.LFB1:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, 12]
mov w0, 1
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size my2, .-my2
.align 2
.global my
.type my, %function
my:
.LFB2:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, 12]
.L14:
ldr w0, [sp, 12]
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size my, .-my
.align 2
.global foo
.type foo, %function
foo:
.LFB3:
.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 w1, [sp, 24]
str w2, [sp, 20]
str wzr, [sp, 44]
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
ldr w0, [sp, 28]
cmp w0, 10
ble .L17
bl testFoo
.L17:
ldr w0, [sp, 24]
cmp w0, 20
ble .L18
ldr w1, [sp, 28]
ldr w0, [sp, 24]
add w1, w1, w0
ldr w0, [sp, 20]
add w0, w1, w0
b .L19
.L18:
adrp x0, g1
add x0, x0, :lo12:g1
mov w1, 10
str w1, [x0]
adrp x0, g1
add x0, x0, :lo12:g1
ldr w0, [x0]
add w1, w0, 100
adrp x0, g2
add x0, x0, :lo12:g2
str w1, [x0]
.L20:
mov w0, 18
bl my
.L19:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE3:
.size foo, .-foo
.align 2
.global newFunc2
.type newFunc2, %function
newFunc2:
.LFB4:
.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, 30
str w0, [sp, 24]
mov w0, 40
str w0, [sp, 28]
ldr w0, [sp, 28]
cmp w0, 40
beq .L25
ldr w0, [sp, 28]
cmp w0, 40
ble .L24
mov w0, 60
str w0, [sp, 24]
mov w2, 2
mov w1, 1
mov w0, 0
bl newFoo
mov w0, 50
str w0, [sp, 28]
b .L21
.L24:
mov w0, 10
bl my2
mov w0, 60
str w0, [sp, 24]
b .L21
.L25:
nop
.L21:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE4:
.size newFunc2, .-newFunc2
.align 2
.global newFunc
.type newFunc, %function
newFunc:
.LFB5:
.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]
mov w0, 20
str w0, [sp, 28]
.L27:
ldr w1, [sp, 24]
ldr w0, [sp, 28]
add w0, w1, w0
str w0, [sp, 24]
mov w0, 100
str w0, [sp, 24]
bl newFunc2
mov w0, 110
str w0, [sp, 24]
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE5:
.size newFunc, .-newFunc
.align 2
.global newFoo
.type newFoo, %function
newFoo:
.LFB6:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, 12]
str w1, [sp, 8]
str w2, [sp, 4]
str wzr, [sp, 24]
mov w0, 11
str w0, [sp, 28]
.L30:
ldr w0, [sp, 24]
add w0, w0, 10
str w0, [sp, 24]
ldr w0, [sp, 28]
add w0, w0, 11
str w0, [sp, 24]
ldr w0, [sp, 24]
add w0, w0, 33
str w0, [sp, 24]
ldr w1, [sp, 12]
ldr w0, [sp, 8]
add w1, w1, w0
ldr w0, [sp, 4]
add w1, w1, w0
ldr w0, [sp, 24]
mul w0, w1, w0
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size newFoo, .-newFoo
.align 2
.global main
.type main, %function
main:
.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 w0, [sp, 28]
str x1, [sp, 16]
str wzr, [sp, 32]
mov w0, 11
str w0, [sp, 48]
.L33:
ldr w0, [sp, 32]
add w0, w0, 10
str w0, [sp, 32]
ldr w1, [sp, 48]
ldr w0, [sp, 28]
add w0, w1, w0
str w0, [sp, 32]
ldr w0, [sp, 32]
add w0, w0, 33
str w0, [sp, 32]
nop
.L34:
.L35:
ldr w0, [sp, 32]
add w0, w0, 6
str w0, [sp, 32]
.L36:
str wzr, [sp, 36]
b .L37
.L38:
mov w0, 8
bl my
mov w1, w0
ldr w0, [sp, 40]
add w0, w0, w1
str w0, [sp, 40]
mov w2, 1
ldr w1, [sp, 60]
ldr w0, [sp, 40]
bl foo
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L37:
ldr w0, [sp, 36]
cmp w0, 7
ble .L38
str wzr, [sp, 44]
adrp x0, g3
add x0, x0, :lo12:g3
ldr w0, [x0]
add w1, w0, 1
adrp x0, g3
add x0, x0, :lo12:g3
str w1, [x0]
adrp x0, i.1
add x0, x0, :lo12:i.1
ldr w0, [x0]
add w1, w0, 1
adrp x0, i.1
add x0, x0, :lo12:i.1
str w1, [x0]
.L39:
str wzr, [sp, 36]
b .L40
.L65:
nop
.L41:
ldr w0, [sp, 44]
add w0, w0, 5
str w0, [sp, 44]
.L42:
mov w0, 1
str w0, [sp, 52]
mov w2, 1
ldr w1, [sp, 56]
ldr w0, [sp, 52]
bl foo
adrp x0, y.0
add x0, x0, :lo12:y.0
mov w1, 10
str w1, [x0]
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L40:
ldr w0, [sp, 36]
cmp w0, 7
ble .L65
nop
.L43:
.L44:
ldr w0, [sp, 32]
add w0, w0, 6
str w0, [sp, 32]
nop
.L45:
adrp x0, y.0
add x0, x0, :lo12:y.0
ldr w0, [x0]
add w1, w0, 5
adrp x0, y.0
add x0, x0, :lo12:y.0
str w1, [x0]
adrp x0, y.0
add x0, x0, :lo12:y.0
ldr w0, [x0]
add w1, w0, 10
adrp x0, y.0
add x0, x0, :lo12:y.0
str w1, [x0]
mov w2, 3
mov w1, 1
mov w0, 1
bl foo
.L46:
ldr w0, [sp, 32]
add w0, w0, 2
str w0, [sp, 32]
.L47:
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
adrp x0, y.0
add x0, x0, :lo12:y.0
ldr w0, [x0]
mov w2, 3
mov w1, w0
ldr w0, [sp, 32]
bl foo
adrp x0, y.0
add x0, x0, :lo12:y.0
mov w1, 1
str w1, [x0]
mov w0, 10
str w0, [sp, 32]
.L48:
adrp x0, y.0
add x0, x0, :lo12:y.0
ldr w1, [x0]
adrp x0, y.0
add x0, x0, :lo12:y.0
str w1, [x0]
ldr w0, [sp, 32]
cmp w0, 11
ble .L49
ldr w0, [sp, 32]
sub w0, w0, #1
str w0, [sp, 32]
.L49:
ldr w0, [sp, 32]
add w0, w0, 9
str w0, [sp, 32]
.L50:
b .L51
.L52:
ldr w0, [sp, 32]
sub w0, w0, #1
str w0, [sp, 32]
.L51:
ldr w0, [sp, 32]
cmp w0, 0
bne .L52
nop
.L53:
.L54:
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
ldr w0, [sp, 32]
cmp w0, 10
beq .L54
nop
.L55:
str wzr, [sp, 32]
b .L56
.L57:
adrp x0, g1
add x0, x0, :lo12:g1
ldr w1, [sp, 32]
str w1, [x0]
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L56:
ldr w0, [sp, 32]
cmp w0, 9
ble .L57
nop
.L58:
ldr w0, [sp, 32]
cmp w0, 1
beq .L59
ldr w0, [sp, 32]
cmp w0, 2
beq .L60
b .L61
.L59:
ldr w0, [sp, 32]
add w0, w0, 11
str w0, [sp, 32]
b .L62
.L60:
ldr w0, [sp, 32]
add w0, w0, 12
str w0, [sp, 32]
.L61:
ldr w0, [sp, 32]
add w0, w0, 13
str w0, [sp, 32]
.L63:
nop
.L62:
mov w2, 3
mov w1, 1
mov w0, 1
bl newFoo
mov w0, 0
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size main, .-main
.local i.1
.comm i.1,4,4
.local y.0
.comm y.0,4,4
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.data
.align 3
.type info_size, %object
.size info_size, 34
info_size:
.string "INFO:size[00008] key[__aarch64__]"
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, 12]
str x1, [sp]
str wzr, [sp, 28]
adrp x0, info_size
add x1, x0, :lo12:info_size
ldrsw x0, [sp, 12]
ldrb w0, [x1, x0]
mov w1, w0
ldr w0, [sp, 28]
add w0, w0, w1
str w0, [sp, 28]
ldr w0, [sp, 28]
add sp, sp, 32
.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 get_unmarked_sum
.type get_unmarked_sum, %function
get_unmarked_sum:
.LFB6:
.cfi_startproc
str x19, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 19, -48
mov x19, x0
str xzr, [sp, 24]
str xzr, [sp, 32]
b .L2
.L6:
str xzr, [sp, 40]
b .L3
.L5:
ldr x1, [sp, 32]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
ldr x1, [sp, 40]
add x0, x0, x1
ldr w0, [x19, x0, lsl 2]
cmn w0, #1
beq .L4
ldr x1, [sp, 32]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
ldr x1, [sp, 40]
add x0, x0, x1
ldr w0, [x19, x0, lsl 2]
sxtw x0, w0
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 24]
.L4:
ldr x0, [sp, 40]
add x0, x0, 1
str x0, [sp, 40]
.L3:
ldr x0, [sp, 40]
cmp x0, 4
bls .L5
ldr x0, [sp, 32]
add x0, x0, 1
str x0, [sp, 32]
.L2:
ldr x0, [sp, 32]
cmp x0, 4
bls .L6
ldr x0, [sp, 24]
ldr x19, [sp], 48
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size get_unmarked_sum, .-get_unmarked_sum
.align 2
.global board_complete
.type board_complete, %function
board_complete:
.LFB7:
.cfi_startproc
str x19, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 19, -64
mov x19, x0
str x1, [sp, 24]
str x2, [sp, 16]
mov x0, 1
str x0, [sp, 32]
mov x0, 1
str x0, [sp, 40]
str xzr, [sp, 48]
b .L9
.L12:
ldr x1, [sp, 24]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
ldr x1, [sp, 48]
add x0, x0, x1
ldr w0, [x19, x0, lsl 2]
cmn w0, #1
beq .L10
str xzr, [sp, 32]
b .L11
.L10:
ldr x0, [sp, 48]
add x0, x0, 1
str x0, [sp, 48]
.L9:
ldr x0, [sp, 48]
cmp x0, 4
bls .L12
.L11:
ldr x0, [sp, 32]
cmp x0, 0
bne .L13
str xzr, [sp, 56]
b .L14
.L16:
ldr x1, [sp, 56]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
ldr x1, [sp, 16]
add x0, x0, x1
ldr w0, [x19, x0, lsl 2]
cmn w0, #1
beq .L15
str xzr, [sp, 40]
b .L13
.L15:
ldr x0, [sp, 56]
add x0, x0, 1
str x0, [sp, 56]
.L14:
ldr x0, [sp, 56]
cmp x0, 4
bls .L16
.L13:
ldr x0, [sp, 32]
cmp x0, 0
bne .L17
ldr x0, [sp, 40]
cmp x0, 0
beq .L18
.L17:
mov w0, 1
b .L19
.L18:
mov w0, 0
.L19:
sxtw x0, w0
ldr x19, [sp], 64
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size board_complete, .-board_complete
.section .rodata
.align 3
.LC0:
.string "%d\t"
.text
.align 2
.global print_board
.type print_board, %function
print_board:
.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 x19, [sp, 16]
.cfi_offset 19, -32
mov x19, x0
str xzr, [sp, 32]
b .L22
.L25:
str xzr, [sp, 40]
b .L23
.L24:
ldr x1, [sp, 32]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
ldr x1, [sp, 40]
add x0, x0, x1
ldr w0, [x19, x0, lsl 2]
mov w1, w0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
ldr x0, [sp, 40]
add x0, x0, 1
str x0, [sp, 40]
.L23:
ldr x0, [sp, 40]
cmp x0, 4
bls .L24
mov w0, 10
bl putchar
ldr x0, [sp, 32]
add x0, x0, 1
str x0, [sp, 32]
.L22:
ldr x0, [sp, 32]
cmp x0, 4
bls .L25
nop
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
.LFE8:
.size print_board, .-print_board
.section .rodata
.align 3
.LC1:
.string "Current call: %zu\n"
.align 3
.LC2:
.string "Current board : %zu\n"
.align 3
.LC3:
.string "Unmarked sum: %zu\n"
.text
.align 2
.global solve_board
.type solve_board, %function
solve_board:
.LFB9:
.cfi_startproc
stp x29, x30, [sp, -336]!
.cfi_def_cfa_offset 336
.cfi_offset 29, -336
.cfi_offset 30, -328
mov x29, sp
str x0, [sp, 152]
str x1, [sp, 144]
str x2, [sp, 136]
str x3, [sp, 128]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 328]
mov x1, 0
str xzr, [sp, 208]
mov x1, 8
ldr x0, [sp, 128]
bl calloc
str x0, [sp, 216]
ldr x0, [sp, 128]
str x0, [sp, 168]
str xzr, [sp, 176]
b .L27
.L38:
ldr x0, [sp, 176]
lsl x0, x0, 3
ldr x1, [sp, 152]
add x0, x1, x0
ldr x0, [x0]
str x0, [sp, 160]
ldr x1, [sp, 160]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
str xzr, [sp, 184]
b .L28
.L37:
ldr x0, [sp, 184]
lsl x0, x0, 3
ldr x1, [sp, 216]
add x0, x1, x0
ldr x0, [x0]
cmp x0, 1
beq .L29
str xzr, [sp, 192]
b .L30
.L36:
str xzr, [sp, 200]
b .L31
.L35:
ldr x1, [sp, 184]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 3
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 136]
add x2, x0, x1
ldr x1, [sp, 192]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
ldr x1, [sp, 200]
add x0, x0, x1
ldr w0, [x2, x0, lsl 2]
sxtw x0, w0
ldr x1, [sp, 160]
cmp x1, x0
bne .L32
ldr x1, [sp, 184]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 3
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 136]
add x2, x0, x1
ldr x1, [sp, 192]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
ldr x1, [sp, 200]
add x0, x0, x1
mov w1, -1
str w1, [x2, x0, lsl 2]
ldr x1, [sp, 184]
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
ldr x1, [sp, 184]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 3
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 136]
add x1, x0, x1
add x0, sp, 16
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]
ldr w1, [x1, 96]
str w1, [x0, 96]
add x0, sp, 16
bl print_board
ldr x1, [sp, 184]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 3
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 136]
add x1, x0, x1
add x0, sp, 16
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]
ldr w1, [x1, 96]
str w1, [x0, 96]
add x0, sp, 16
ldr x2, [sp, 200]
ldr x1, [sp, 192]
bl board_complete
cmp x0, 0
beq .L33
ldr x0, [sp, 184]
lsl x0, x0, 3
ldr x1, [sp, 216]
add x0, x1, x0
mov x1, 1
str x1, [x0]
ldr x0, [sp, 168]
sub x0, x0, #1
str x0, [sp, 168]
.L33:
ldr x0, [sp, 168]
cmp x0, 0
bne .L32
ldr x1, [sp, 184]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 3
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 136]
add x1, x0, x1
add x0, sp, 224
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]
ldr w1, [x1, 96]
str w1, [x0, 96]
b .L34
.L32:
ldr x0, [sp, 200]
add x0, x0, 1
str x0, [sp, 200]
.L31:
ldr x0, [sp, 200]
cmp x0, 4
bls .L35
ldr x0, [sp, 192]
add x0, x0, 1
str x0, [sp, 192]
.L30:
ldr x0, [sp, 192]
cmp x0, 4
bls .L36
.L29:
ldr x0, [sp, 184]
add x0, x0, 1
str x0, [sp, 184]
.L28:
ldr x1, [sp, 184]
ldr x0, [sp, 128]
cmp x1, x0
bcc .L37
ldr x0, [sp, 176]
add x0, x0, 1
str x0, [sp, 176]
.L27:
ldr x1, [sp, 176]
ldr x0, [sp, 144]
cmp x1, x0
bcc .L38
nop
.L34:
add x0, sp, 16
add x1, sp, 224
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]
ldr w1, [x1, 96]
str w1, [x0, 96]
add x0, sp, 16
bl get_unmarked_sum
str x0, [sp, 208]
ldr x1, [sp, 160]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
ldr x1, [sp, 208]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
ldr x1, [sp, 208]
ldr x0, [sp, 160]
mul x0, x1, x0
mov x1, x0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 328]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L40
bl __stack_chk_fail
.L40:
mov x0, x1
ldp x29, x30, [sp], 336
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size solve_board, .-solve_board
.section .rodata
.align 3
.LC4:
.string " "
.text
.align 2
.global assign_row_to_board
.type assign_row_to_board, %function
assign_row_to_board:
.LFB10:
.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 x2, [sp, 24]
str xzr, [sp, 72]
str xzr, [sp, 56]
adrp x0, .LC4
add x1, x0, :lo12:.LC4
ldr x0, [sp, 32]
bl strtok
str x0, [sp, 64]
b .L42
.L43:
mov w2, 10
mov x1, 0
ldr x0, [sp, 64]
bl strtoul
str x0, [sp, 72]
ldr x1, [sp, 56]
add x0, x1, 1
str x0, [sp, 56]
ldr x0, [sp, 72]
mov w4, w0
ldr x3, [sp, 40]
ldr x2, [sp, 24]
mov x0, x2
lsl x0, x0, 2
add x0, x0, x2
add x0, x0, x1
str w4, [x3, x0, lsl 2]
adrp x0, .LC4
add x1, x0, :lo12:.LC4
mov x0, 0
bl strtok
str x0, [sp, 64]
.L42:
ldr x0, [sp, 64]
cmp x0, 0
bne .L43
nop
nop
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size assign_row_to_board, .-assign_row_to_board
.section .rodata
.align 3
.LC5:
.string ","
.align 3
.LC6:
.string "Error in realloc. Exiting."
.text
.align 2
.global callout_array_intializer
.type callout_array_intializer, %function
callout_array_intializer:
.LFB11:
.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
str x0, [sp, 56]
str x1, [sp, 48]
str x2, [sp, 40]
adrp x0, .LC5
add x1, x0, :lo12:.LC5
ldr x0, [sp, 56]
bl strtok
str x0, [sp, 72]
ldr x0, [sp, 40]
str xzr, [x0]
b .L45
.L47:
ldr x0, [sp, 40]
ldr x0, [x0]
add x1, x0, 1
ldr x0, [sp, 40]
str x1, [x0]
ldr x0, [sp, 48]
ldr x2, [x0]
ldr x0, [sp, 40]
ldr x0, [x0]
add x0, x0, 1
lsl x0, x0, 3
mov x1, x0
mov x0, x2
bl realloc
mov x1, x0
ldr x0, [sp, 48]
str x1, [x0]
ldr x0, [sp, 48]
ldr x0, [x0]
cmp x0, 0
bne .L46
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl puts
mov w0, 0
bl exit
.L46:
ldr x0, [sp, 48]
ldr x1, [x0]
ldr x0, [sp, 40]
ldr x0, [x0]
lsl x0, x0, 3
sub x0, x0, #8
add x19, x1, x0
mov w2, 10
mov x1, 0
ldr x0, [sp, 72]
bl strtoul
str x0, [x19]
adrp x0, .LC5
add x1, x0, :lo12:.LC5
mov x0, 0
bl strtok
str x0, [sp, 72]
.L45:
ldr x0, [sp, 72]
cmp x0, 0
bne .L47
nop
nop
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
.LFE11:
.size callout_array_intializer, .-callout_array_intializer
.section .rodata
.align 3
.LC7:
.string "r"
.align 3
.LC8:
.string "input_day4.txt"
.align 3
.LC9:
.string "No callout array"
.align 3
.LC10:
.string "Result: %zu\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB12:
.cfi_startproc
stp x29, x30, [sp, -144]!
.cfi_def_cfa_offset 144
.cfi_offset 29, -144
.cfi_offset 30, -136
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, 136]
mov x1, 0
str xzr, [sp, 40]
str xzr, [sp, 48]
str xzr, [sp, 80]
str xzr, [sp, 88]
str xzr, [sp, 96]
str xzr, [sp, 56]
str xzr, [sp, 64]
str xzr, [sp, 72]
str xzr, [sp, 104]
adrp x0, .LC7
add x1, x0, :lo12:.LC7
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl fopen
str x0, [sp, 112]
add x1, sp, 48
add x0, sp, 56
ldr x2, [sp, 112]
bl getline
str x0, [sp, 120]
ldr x0, [sp, 120]
cmn x0, #1
bne .L50
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl puts
mov w0, 0
bl exit
.L54:
ldr x0, [sp, 96]
cmp x0, 0
bne .L51
ldr x0, [sp, 96]
add x0, x0, 1
str x0, [sp, 96]
ldr x0, [sp, 88]
add x0, x0, 1
str x0, [sp, 88]
ldr x0, [sp, 88]
add x1, x0, 1
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 3
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 80]
bl realloc
str x0, [sp, 80]
b .L50
.L51:
ldr x1, [sp, 88]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 3
add x0, x0, x1
lsl x0, x0, 2
sub x0, x0, #100
ldr x1, [sp, 80]
add x3, x1, x0
ldr x1, [sp, 40]
ldr x0, [sp, 96]
sub x0, x0, #1
mov x2, x0
mov x0, x3
bl assign_row_to_board
ldr x2, [sp, 96]
mov x0, -3689348814741910324
movk x0, 0xcccd, lsl 0
umulh x0, x2, x0
lsr x1, x0, 2
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
sub x1, x2, x0
cmp x1, 0
beq .L52
ldr x0, [sp, 96]
add x0, x0, 1
b .L53
.L52:
mov x0, 0
.L53:
str x0, [sp, 96]
.L50:
add x1, sp, 48
add x0, sp, 40
ldr x2, [sp, 112]
bl getline
str x0, [sp, 120]
ldr x0, [sp, 120]
cmn x0, #1
bne .L54
ldr x0, [sp, 56]
add x2, sp, 72
add x1, sp, 64
bl callout_array_intializer
ldr x0, [sp, 64]
ldr x1, [sp, 72]
ldr x3, [sp, 88]
ldr x2, [sp, 80]
bl solve_board
str x0, [sp, 128]
ldr x1, [sp, 128]
adrp x0, .LC10
add x0, x0, :lo12:.LC10
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, 136]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L56
bl __stack_chk_fail
.L56:
mov w0, w1
ldp x29, x30, [sp], 144
.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 EC_DISCONNECT
.bss
.align 2
.type EC_DISCONNECT, %object
.size EC_DISCONNECT, 4
EC_DISCONNECT:
.zero 4
.global EVENT_ECM
.align 2
.type EVENT_ECM, %object
.size EVENT_ECM, 4
EVENT_ECM:
.zero 4
.global EVENT_RMT
.align 2
.type EVENT_RMT, %object
.size EVENT_RMT, 4
EVENT_RMT:
.zero 4
.global INDEX_MAC
.align 2
.type INDEX_MAC, %object
.size INDEX_MAC, 4
INDEX_MAC:
.zero 4
.global INDEX_PATH
.align 2
.type INDEX_PATH, %object
.size INDEX_PATH, 4
INDEX_PATH:
.zero 4
.global INDEX_PORT
.align 2
.type INDEX_PORT, %object
.size INDEX_PORT, 4
INDEX_PORT:
.zero 4
.global MIB_P_PATH_PRIM_ALTER
.align 2
.type MIB_P_PATH_PRIM_ALTER, %object
.size MIB_P_PATH_PRIM_ALTER, 4
MIB_P_PATH_PRIM_ALTER:
.zero 4
.global MIB_P_PATH_PRIM_PREFER
.align 2
.type MIB_P_PATH_PRIM_PREFER, %object
.size MIB_P_PATH_PRIM_PREFER, 4
MIB_P_PATH_PRIM_PREFER:
.zero 4
.global NUMMACS
.align 2
.type NUMMACS, %object
.size NUMMACS, 4
NUMMACS:
.zero 4
.global NUMPATHS
.align 2
.type NUMPATHS, %object
.size NUMPATHS, 4
NUMPATHS:
.zero 4
.global POLICY_MM
.align 2
.type POLICY_MM, %object
.size POLICY_MM, 4
POLICY_MM:
.zero 4
.global RM_ENABLE_FLAG
.align 2
.type RM_ENABLE_FLAG, %object
.size RM_ENABLE_FLAG, 4
RM_ENABLE_FLAG:
.zero 4
.global RS_EVENT
.align 2
.type RS_EVENT, %object
.size RS_EVENT, 4
RS_EVENT:
.zero 4
.global SB_START
.align 2
.type SB_START, %object
.size SB_START, 4
SB_START:
.zero 4
.global SB_STOP
.align 2
.type SB_STOP, %object
.size SB_STOP, 4
SB_STOP:
.zero 4
.global SMT_E0120
.align 2
.type SMT_E0120, %object
.size SMT_E0120, 4
SMT_E0120:
.zero 4
.global SMT_E0120_MSG
.align 2
.type SMT_E0120_MSG, %object
.size SMT_E0120_MSG, 4
SMT_E0120_MSG:
.zero 4
.global SMT_PORT_ACTION
.align 2
.type SMT_PORT_ACTION, %object
.size SMT_PORT_ACTION, 4
SMT_PORT_ACTION:
.zero 4
.global SMT_RDF_AUTHOR
.align 2
.type SMT_RDF_AUTHOR, %object
.size SMT_RDF_AUTHOR, 4
SMT_RDF_AUTHOR:
.zero 4
.global SMT_RDF_ILLEGAL
.align 2
.type SMT_RDF_ILLEGAL, %object
.size SMT_RDF_ILLEGAL, 4
SMT_RDF_ILLEGAL:
.zero 4
.global SMT_RDF_LENGTH
.align 2
.type SMT_RDF_LENGTH, %object
.size SMT_RDF_LENGTH, 4
SMT_RDF_LENGTH:
.zero 4
.global SMT_RDF_NOPARAM
.align 2
.type SMT_RDF_NOPARAM, %object
.size SMT_RDF_NOPARAM, 4
SMT_RDF_NOPARAM:
.zero 4
.global SMT_RDF_RANGE
.align 2
.type SMT_RDF_RANGE, %object
.size SMT_RDF_RANGE, 4
SMT_RDF_RANGE:
.zero 4
.global SMT_STATION_ACTION
.align 2
.type SMT_STATION_ACTION, %object
.size SMT_STATION_ACTION, 4
SMT_STATION_ACTION:
.zero 4
.global TRUE
.align 3
.type TRUE, %object
.size TRUE, 8
TRUE:
.zero 8
.global byte_val
.align 2
.type byte_val, %object
.size byte_val, 4
byte_val:
.zero 4
.global long_val
.align 3
.type long_val, %object
.size long_val, 8
long_val:
.zero 8
.global u_char
.align 2
.type u_char, %object
.size u_char, 4
u_char:
.zero 4
.global u_long
.align 2
.type u_long, %object
.size u_long, 4
u_long:
.zero 4
.global u_short
.align 2
.type u_short, %object
.size u_short, 4
u_short:
.zero 4
.global word_val
.align 2
.type word_val, %object
.size word_val, 4
word_val:
.zero 4
.text
.align 2
.type smt_set_para, %function
smt_set_para:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -160]!
.cfi_def_cfa_offset 160
.cfi_offset 29, -160
.cfi_offset 30, -152
mov x29, sp
stp x19, x20, [sp, 16]
.cfi_offset 19, -144
.cfi_offset 20, -136
str x0, [sp, 56]
str x1, [sp, 48]
str w2, [sp, 44]
str w3, [sp, 40]
str w4, [sp, 36]
str xzr, [sp, 120]
str xzr, [sp, 128]
str xzr, [sp, 136]
adrp x0, u_char
add x0, x0, :lo12:u_char
ldr w2, [x0]
adrp x0, byte_val
add x0, x0, :lo12:byte_val
ldr w0, [x0]
sxtw x0, w0
mov x1, x0
mov w0, w2
bl SK_LOC_DECL
adrp x0, u_short
add x0, x0, :lo12:u_short
ldr w2, [x0]
adrp x0, word_val
add x0, x0, :lo12:word_val
ldr w0, [x0]
sxtw x0, w0
mov x1, x0
mov w0, w2
bl SK_LOC_DECL
adrp x0, u_long
add x0, x0, :lo12:u_long
ldr w2, [x0]
adrp x0, long_val
add x0, x0, :lo12:long_val
ldr x0, [x0]
mov x1, x0
mov w0, w2
bl SK_LOC_DECL
adrp x0, INDEX_MAC
add x0, x0, :lo12:INDEX_MAC
ldr w0, [x0]
ldr w1, [sp, 44]
sub w0, w1, w0
str w0, [sp, 76]
adrp x0, INDEX_PATH
add x0, x0, :lo12:INDEX_PATH
ldr w0, [x0]
ldr w1, [sp, 44]
sub w0, w1, w0
str w0, [sp, 80]
adrp x0, INDEX_PORT
add x0, x0, :lo12:INDEX_PORT
ldr w0, [x0]
ldr w1, [sp, 44]
sub w0, w1, w0
str w0, [sp, 84]
ldr x0, [sp, 48]
ldr w0, [x0]
str w0, [sp, 72]
ldr x0, [sp, 48]
add x0, x0, 8
str x0, [sp, 88]
ldr x0, [sp, 56]
add x0, x0, 8
str x0, [sp, 144]
ldr x0, [sp, 48]
ldr w0, [x0, 4]
and w0, w0, 61440
cmp w0, 16384
beq .L2
cmp w0, 16384
bgt .L3
cmp w0, 8192
beq .L4
cmp w0, 12288
beq .L5
.L3:
ldr x0, [sp, 144]
str x0, [sp, 112]
b .L6
.L4:
ldr w0, [sp, 76]
cmp w0, 0
blt .L7
adrp x0, NUMMACS
add x0, x0, :lo12:NUMMACS
ldr w0, [x0]
ldr w1, [sp, 76]
cmp w1, w0
blt .L8
.L7:
adrp x0, SMT_RDF_NOPARAM
add x0, x0, :lo12:SMT_RDF_NOPARAM
ldr w0, [x0]
b .L9
.L8:
ldr x0, [sp, 56]
ldr x2, [x0, 88]
ldrsw x1, [sp, 76]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
str x0, [sp, 120]
ldr x0, [sp, 120]
str x0, [sp, 112]
ldr x0, [sp, 88]
add x0, x0, 4
str x0, [sp, 88]
ldr w0, [sp, 72]
sub w0, w0, #4
str w0, [sp, 72]
b .L6
.L5:
ldr w0, [sp, 80]
cmp w0, 0
blt .L10
adrp x0, NUMPATHS
add x0, x0, :lo12:NUMPATHS
ldr w0, [x0]
ldr w1, [sp, 80]
cmp w1, w0
blt .L11
.L10:
adrp x0, SMT_RDF_NOPARAM
add x0, x0, :lo12:SMT_RDF_NOPARAM
ldr w0, [x0]
b .L9
.L11:
ldr x0, [sp, 56]
ldr x1, [x0, 80]
ldrsw x0, [sp, 80]
lsl x0, x0, 5
add x0, x1, x0
str x0, [sp, 128]
ldr x0, [sp, 128]
str x0, [sp, 112]
ldr x0, [sp, 88]
add x0, x0, 4
str x0, [sp, 88]
ldr w0, [sp, 72]
sub w0, w0, #4
str w0, [sp, 72]
b .L6
.L2:
ldr w0, [sp, 84]
cmp w0, 0
blt .L12
ldr x0, [sp, 56]
bl smt_mib_phys
mov w1, w0
ldr w0, [sp, 84]
cmp w0, w1
blt .L13
.L12:
adrp x0, SMT_RDF_NOPARAM
add x0, x0, :lo12:SMT_RDF_NOPARAM
ldr w0, [x0]
b .L9
.L13:
ldr x0, [sp, 56]
ldr x19, [x0, 72]
ldr w1, [sp, 84]
ldr x0, [sp, 56]
bl port_to_mib
mov x1, x0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 3
add x0, x19, x0
str x0, [sp, 136]
ldr x0, [sp, 136]
str x0, [sp, 112]
ldr x0, [sp, 88]
add x0, x0, 4
str x0, [sp, 88]
ldr w0, [sp, 72]
sub w0, w0, #4
str w0, [sp, 72]
nop
.L6:
ldr x0, [sp, 48]
ldr w0, [x0, 4]
cmp w0, 141
beq .L14
cmp w0, 141
blt .L15
sub w0, w0, #154
cmp w0, 1
bhi .L15
.L14:
ldr w0, [sp, 40]
cmp w0, 0
bne .L124
adrp x0, SMT_RDF_NOPARAM
add x0, x0, :lo12:SMT_RDF_NOPARAM
ldr w0, [x0]
b .L9
.L124:
nop
.L15:
ldr x0, [sp, 48]
ldr w0, [x0, 4]
bl smt_get_ptab
str x0, [sp, 152]
ldr x0, [sp, 152]
cmp x0, 0
bne .L17
ldr x0, [sp, 48]
ldr w0, [x0, 4]
and w0, w0, 65280
cmp w0, 0
beq .L18
adrp x0, SMT_RDF_NOPARAM
add x0, x0, :lo12:SMT_RDF_NOPARAM
ldr w0, [x0]
b .L9
.L18:
adrp x0, SMT_RDF_ILLEGAL
add x0, x0, :lo12:SMT_RDF_ILLEGAL
ldr w0, [x0]
b .L9
.L17:
ldr x0, [sp, 152]
ldr w0, [x0]
sub w0, w0, #162
cmp w0, 1
bls .L125
adrp x0, SMT_RDF_ILLEGAL
add x0, x0, :lo12:SMT_RDF_ILLEGAL
ldr w0, [x0]
b .L9
.L125:
nop
ldr x0, [sp, 152]
ldr w0, [x0, 4]
sxtw x0, w0
ldr x1, [sp, 112]
add x0, x1, x0
str x0, [sp, 96]
ldr x0, [sp, 152]
ldr x0, [x0, 8]
str x0, [sp, 104]
b .L22
.L52:
ldrb w0, [sp, 71]
cmp w0, 119
beq .L23
cmp w0, 119
bgt .L24
cmp w0, 114
beq .L25
cmp w0, 114
bgt .L24
cmp w0, 108
beq .L26
cmp w0, 108
bgt .L24
cmp w0, 98
beq .L27
cmp w0, 98
bgt .L24
cmp w0, 84
beq .L28
cmp w0, 84
bgt .L24
cmp w0, 83
bgt .L24
cmp w0, 82
bge .L25
cmp w0, 80
beq .L29
cmp w0, 80
bgt .L24
cmp w0, 76
beq .L28
cmp w0, 76
bgt .L24
cmp w0, 70
beq .L30
cmp w0, 70
bgt .L24
cmp w0, 69
beq .L25
cmp w0, 69
bgt .L24
cmp w0, 68
beq .L31
cmp w0, 68
bgt .L24
cmp w0, 67
beq .L28
cmp w0, 67
bgt .L24
cmp w0, 66
beq .L30
cmp w0, 66
bgt .L24
cmp w0, 65
beq .L32
cmp w0, 65
bgt .L24
cmp w0, 52
beq .L33
cmp w0, 56
beq .L34
b .L24
.L27:
adrp x0, byte_val
add x0, x0, :lo12:byte_val
str x0, [sp, 96]
b .L22
.L23:
adrp x0, word_val
add x0, x0, :lo12:word_val
str x0, [sp, 96]
b .L22
.L26:
adrp x0, long_val
add x0, x0, :lo12:long_val
str x0, [sp, 96]
b .L22
.L25:
ldr w0, [sp, 72]
cmp w0, 3
ble .L126
ldr x0, [sp, 88]
ldrb w1, [x0]
ldr x0, [sp, 88]
add x0, x0, 1
ldrb w0, [x0]
orr w0, w1, w0
and w0, w0, 255
cmp w0, 0
bne .L127
ldr x0, [sp, 88]
ldrb w1, [x0, 2]
ldr x0, [sp, 96]
strb w1, [x0]
ldr x0, [sp, 96]
add x0, x0, 1
ldr x1, [sp, 88]
ldrb w1, [x1, 3]
strb w1, [x0]
ldr x0, [sp, 88]
add x0, x0, 4
str x0, [sp, 88]
ldr x0, [sp, 96]
add x0, x0, 2
str x0, [sp, 96]
ldr w0, [sp, 72]
sub w0, w0, #4
str w0, [sp, 72]
b .L22
.L30:
ldr w0, [sp, 72]
cmp w0, 3
ble .L128
ldr x0, [sp, 88]
ldrb w1, [x0]
ldr x0, [sp, 88]
add x0, x0, 1
ldrb w0, [x0]
orr w0, w1, w0
and w1, w0, 255
ldr x0, [sp, 88]
add x0, x0, 2
ldrb w0, [x0]
orr w0, w1, w0
and w0, w0, 255
cmp w0, 0
bne .L129
ldr x0, [sp, 88]
ldrb w1, [x0, 3]
ldr x0, [sp, 96]
strb w1, [x0]
ldr w0, [sp, 72]
sub w0, w0, #4
str w0, [sp, 72]
ldr x0, [sp, 88]
add x0, x0, 4
str x0, [sp, 88]
ldr x0, [sp, 96]
add x0, x0, 4
str x0, [sp, 96]
b .L22
.L28:
ldr w0, [sp, 72]
cmp w0, 3
ble .L130
ldr x0, [sp, 88]
add x1, x0, 1
str x1, [sp, 88]
ldrb w1, [x0]
ldr x0, [sp, 96]
strb w1, [x0]
ldr x0, [sp, 88]
add x1, x0, 1
str x1, [sp, 88]
ldr x1, [sp, 96]
add x1, x1, 1
ldrb w0, [x0]
strb w0, [x1]
ldr x0, [sp, 88]
add x1, x0, 1
str x1, [sp, 88]
ldr x1, [sp, 96]
add x1, x1, 2
ldrb w0, [x0]
strb w0, [x1]
ldr x0, [sp, 88]
add x1, x0, 1
str x1, [sp, 88]
ldr x1, [sp, 96]
add x1, x1, 3
ldrb w0, [x0]
strb w0, [x1]
ldr w0, [sp, 72]
sub w0, w0, #4
str w0, [sp, 72]
ldr x0, [sp, 96]
add x0, x0, 4
str x0, [sp, 96]
b .L22
.L32:
ldr w0, [sp, 72]
cmp w0, 7
ble .L131
ldr w0, [sp, 36]
cmp w0, 0
beq .L43
ldr x0, [sp, 88]
add x0, x0, 2
mov w2, 6
mov x1, x0
ldr x0, [sp, 96]
bl memcpy
.L43:
ldr x0, [sp, 96]
add x0, x0, 8
str x0, [sp, 96]
ldr x0, [sp, 88]
add x0, x0, 8
str x0, [sp, 88]
ldr w0, [sp, 72]
sub w0, w0, #8
str w0, [sp, 72]
b .L22
.L33:
ldr w0, [sp, 72]
cmp w0, 3
ble .L132
ldr w0, [sp, 36]
cmp w0, 0
beq .L45
mov w2, 4
ldr x1, [sp, 88]
ldr x0, [sp, 96]
bl memcpy
.L45:
ldr x0, [sp, 96]
add x0, x0, 4
str x0, [sp, 96]
ldr x0, [sp, 88]
add x0, x0, 4
str x0, [sp, 88]
ldr w0, [sp, 72]
sub w0, w0, #4
str w0, [sp, 72]
b .L22
.L34:
ldr w0, [sp, 72]
cmp w0, 7
ble .L133
ldr w0, [sp, 36]
cmp w0, 0
beq .L47
mov w2, 8
ldr x1, [sp, 88]
ldr x0, [sp, 96]
bl memcpy
.L47:
ldr x0, [sp, 96]
add x0, x0, 8
str x0, [sp, 96]
ldr x0, [sp, 88]
add x0, x0, 8
str x0, [sp, 88]
ldr w0, [sp, 72]
sub w0, w0, #8
str w0, [sp, 72]
b .L22
.L31:
ldr w0, [sp, 72]
cmp w0, 31
ble .L134
ldr w0, [sp, 36]
cmp w0, 0
beq .L49
mov w2, 32
ldr x1, [sp, 88]
ldr x0, [sp, 96]
bl memcpy
.L49:
ldr x0, [sp, 96]
add x0, x0, 32
str x0, [sp, 96]
ldr x0, [sp, 88]
add x0, x0, 32
str x0, [sp, 88]
ldr w0, [sp, 72]
sub w0, w0, #32
str w0, [sp, 72]
b .L22
.L29:
ldr w0, [sp, 36]
cmp w0, 0
beq .L50
ldr x0, [sp, 88]
add x1, x0, 1
str x1, [sp, 88]
ldrb w1, [x0]
ldr x0, [sp, 96]
strb w1, [x0]
ldr x0, [sp, 88]
add x1, x0, 1
str x1, [sp, 88]
ldr x1, [sp, 96]
add x1, x1, 1
ldrb w0, [x0]
strb w0, [x1]
ldr x0, [sp, 88]
add x1, x0, 1
str x1, [sp, 88]
ldr x1, [sp, 96]
add x1, x1, 2
ldrb w0, [x0]
strb w0, [x1]
ldr x0, [sp, 88]
add x1, x0, 1
str x1, [sp, 88]
ldr x1, [sp, 96]
add x1, x1, 3
ldrb w0, [x0]
strb w0, [x1]
ldr x0, [sp, 88]
add x1, x0, 1
str x1, [sp, 88]
ldr x1, [sp, 96]
add x1, x1, 4
ldrb w0, [x0]
strb w0, [x1]
ldr x0, [sp, 88]
add x1, x0, 1
str x1, [sp, 88]
ldr x1, [sp, 96]
add x1, x1, 5
ldrb w0, [x0]
strb w0, [x1]
ldr x0, [sp, 88]
add x1, x0, 1
str x1, [sp, 88]
ldr x1, [sp, 96]
add x1, x1, 6
ldrb w0, [x0]
strb w0, [x1]
ldr x0, [sp, 88]
add x1, x0, 1
str x1, [sp, 88]
ldr x1, [sp, 96]
add x1, x1, 7
ldrb w0, [x0]
strb w0, [x1]
.L50:
ldr x0, [sp, 96]
add x0, x0, 8
str x0, [sp, 96]
ldr w0, [sp, 72]
sub w0, w0, #8
str w0, [sp, 72]
b .L22
.L24:
adrp x0, SMT_E0120
add x0, x0, :lo12:SMT_E0120
ldr w1, [x0]
adrp x0, SMT_E0120_MSG
add x0, x0, :lo12:SMT_E0120_MSG
ldr w0, [x0]
mov w2, w0
ldr x0, [sp, 56]
bl SMT_PANIC
adrp x0, SMT_RDF_ILLEGAL
add x0, x0, :lo12:SMT_RDF_ILLEGAL
ldr w0, [x0]
b .L9
.L22:
ldr x0, [sp, 104]
cmp x0, 0
beq .L51
ldr x0, [sp, 104]
add x1, x0, 1
str x1, [sp, 104]
ldrb w0, [x0]
strb w0, [sp, 71]
ldrb w0, [sp, 71]
cmp w0, 0
bne .L52
.L51:
ldr x0, [sp, 48]
ldr w0, [x0, 4]
sub w0, w0, #128
cmp w0, 33
bhi .L135
adrp x1, .L55
add x1, x1, :lo12:.L55
ldr w0, [x1,w0,uxtw #2]
adr x1, .Lrtx55
add x0, x1, w0, sxtw #2
br x0
.Lrtx55:
.section .rodata
.align 0
.align 2
.L55:
.word (.L78 - .Lrtx55) / 4
.word (.L77 - .Lrtx55) / 4
.word (.L76 - .Lrtx55) / 4
.word (.L75 - .Lrtx55) / 4
.word (.L74 - .Lrtx55) / 4
.word (.L73 - .Lrtx55) / 4
.word (.L72 - .Lrtx55) / 4
.word (.L71 - .Lrtx55) / 4
.word (.L70 - .Lrtx55) / 4
.word (.L69 - .Lrtx55) / 4
.word (.L68 - .Lrtx55) / 4
.word (.L67 - .Lrtx55) / 4
.word (.L66 - .Lrtx55) / 4
.word (.L65 - .Lrtx55) / 4
.word (.L64 - .Lrtx55) / 4
.word (.L63 - .Lrtx55) / 4
.word (.L62 - .Lrtx55) / 4
.word (.L61 - .Lrtx55) / 4
.word (.L135 - .Lrtx55) / 4
.word (.L135 - .Lrtx55) / 4
.word (.L135 - .Lrtx55) / 4
.word (.L135 - .Lrtx55) / 4
.word (.L135 - .Lrtx55) / 4
.word (.L135 - .Lrtx55) / 4
.word (.L135 - .Lrtx55) / 4
.word (.L135 - .Lrtx55) / 4
.word (.L135 - .Lrtx55) / 4
.word (.L135 - .Lrtx55) / 4
.word (.L60 - .Lrtx55) / 4
.word (.L59 - .Lrtx55) / 4
.word (.L58 - .Lrtx55) / 4
.word (.L57 - .Lrtx55) / 4
.word (.L56 - .Lrtx55) / 4
.word (.L54 - .Lrtx55) / 4
.text
.L54:
adrp x0, word_val
add x0, x0, :lo12:word_val
ldr w0, [x0]
and w0, w0, -2
cmp w0, 0
bne .L136
ldr w0, [sp, 36]
cmp w0, 0
beq .L137
adrp x0, word_val
add x0, x0, :lo12:word_val
ldr w1, [x0]
ldr x0, [sp, 144]
str w1, [x0]
b .L137
.L56:
adrp x0, word_val
add x0, x0, :lo12:word_val
ldr w1, [x0]
adrp x0, POLICY_MM
add x0, x0, :lo12:POLICY_MM
ldr w0, [x0]
and w0, w1, w0
cmp w0, 0
beq .L138
ldr w0, [sp, 36]
cmp w0, 0
beq .L139
adrp x0, word_val
add x0, x0, :lo12:word_val
ldr w1, [x0]
ldr x0, [sp, 144]
str w1, [x0, 4]
b .L139
.L57:
adrp x0, word_val
add x0, x0, :lo12:word_val
ldr w0, [x0]
cmp w0, 1
ble .L140
adrp x0, word_val
add x0, x0, :lo12:word_val
ldr w0, [x0]
cmp w0, 30
bgt .L140
ldr w0, [sp, 36]
cmp w0, 0
beq .L141
adrp x0, word_val
add x0, x0, :lo12:word_val
ldr w1, [x0]
ldr x0, [sp, 144]
str w1, [x0, 8]
b .L141
.L58:
adrp x0, byte_val
add x0, x0, :lo12:byte_val
ldr w0, [x0]
and w0, w0, -2
cmp w0, 0
bne .L142
ldr w0, [sp, 36]
cmp w0, 0
beq .L143
adrp x0, byte_val
add x0, x0, :lo12:byte_val
ldr w1, [x0]
ldr x0, [sp, 144]
str w1, [x0, 12]
b .L143
.L59:
adrp x0, long_val
add x0, x0, :lo12:long_val
ldr x1, [x0]
mov x0, 48976
movk x0, 0x478, lsl 16
cmp x1, x0
ble .L144
ldr w0, [sp, 36]
cmp w0, 0
beq .L145
adrp x0, long_val
add x0, x0, :lo12:long_val
ldr x0, [x0]
mov w1, w0
ldr x0, [sp, 144]
str w1, [x0, 16]
b .L145
.L61:
adrp x0, MIB_P_PATH_PRIM_PREFER
add x0, x0, :lo12:MIB_P_PATH_PRIM_PREFER
ldr w1, [x0]
adrp x0, MIB_P_PATH_PRIM_ALTER
add x0, x0, :lo12:MIB_P_PATH_PRIM_ALTER
ldr w0, [x0]
orr w1, w1, w0
adrp x0, word_val
add x0, x0, :lo12:word_val
ldr w0, [x0]
and w0, w1, w0
cmp w0, 0
beq .L146
ldr w0, [sp, 36]
cmp w0, 0
beq .L147
adrp x0, word_val
add x0, x0, :lo12:word_val
ldr w1, [x0]
ldr x0, [sp, 120]
str w1, [x0]
b .L147
.L62:
ldr w0, [sp, 36]
cmp w0, 0
beq .L148
adrp x0, word_val
add x0, x0, :lo12:word_val
ldr w1, [x0]
ldr x0, [sp, 120]
str w1, [x0, 4]
b .L148
.L63:
ldr w0, [sp, 36]
cmp w0, 0
beq .L149
adrp x0, word_val
add x0, x0, :lo12:word_val
ldr w1, [x0]
ldr x0, [sp, 120]
str w1, [x0, 8]
b .L149
.L64:
adrp x0, byte_val
add x0, x0, :lo12:byte_val
ldr w0, [x0]
and w0, w0, -2
cmp w0, 0
bne .L150
ldr w0, [sp, 36]
cmp w0, 0
beq .L151
adrp x0, byte_val
add x0, x0, :lo12:byte_val
ldr w1, [x0]
ldr x0, [sp, 120]
str w1, [x0, 12]
adrp x0, EVENT_RMT
add x0, x0, :lo12:EVENT_RMT
ldr w1, [x0]
adrp x0, RM_ENABLE_FLAG
add x0, x0, :lo12:RM_ENABLE_FLAG
ldr w0, [x0]
mov w2, w0
ldr x0, [sp, 56]
bl queue_event
b .L151
.L65:
ldr w0, [sp, 36]
cmp w0, 0
beq .L152
adrp x0, long_val
add x0, x0, :lo12:long_val
ldr x0, [x0]
mov w1, w0
ldr x0, [sp, 120]
str w1, [x0, 16]
b .L152
.L66:
adrp x0, long_val
add x0, x0, :lo12:long_val
ldr x0, [x0]
cmp x0, 1562
bgt .L153
ldr w0, [sp, 36]
cmp w0, 0
beq .L154
adrp x0, long_val
add x0, x0, :lo12:long_val
ldr x0, [x0]
mov w1, w0
ldr x0, [sp, 128]
str w1, [x0]
b .L154
.L67:
adrp x0, long_val
add x0, x0, :lo12:long_val
ldr x1, [x0]
mov x0, 5000
cmp x1, x0
bgt .L155
adrp x0, long_val
add x0, x0, :lo12:long_val
ldr x0, [x0]
cmp x0, 0
beq .L101
ldr x0, [sp, 128]
ldr w0, [x0]
cmp w0, 0
beq .L156
.L101:
ldr w0, [sp, 36]
cmp w0, 0
beq .L157
adrp x0, long_val
add x0, x0, :lo12:long_val
ldr x0, [x0]
mov w1, w0
ldr x0, [sp, 128]
str w1, [x0, 4]
b .L157
.L68:
ldr w0, [sp, 36]
cmp w0, 0
beq .L158
adrp x0, long_val
add x0, x0, :lo12:long_val
ldr x1, [x0]
ldr x0, [sp, 128]
str x1, [x0, 8]
ldr x0, [sp, 56]
bl rtm_set_timer
b .L158
.L69:
adrp x0, long_val
add x0, x0, :lo12:long_val
ldr x1, [x0]
mov x0, 48160
movk x0, 0xbe, lsl 16
cmp x1, x0
bgt .L159
ldr w0, [sp, 36]
cmp w0, 0
beq .L160
adrp x0, long_val
add x0, x0, :lo12:long_val
ldr x0, [x0]
mov w1, w0
ldr x0, [sp, 128]
str w1, [x0, 16]
b .L160
.L70:
ldr w0, [sp, 36]
cmp w0, 0
beq .L161
adrp x0, long_val
add x0, x0, :lo12:long_val
ldr x0, [x0]
mov w1, w0
ldr x0, [sp, 128]
str w1, [x0, 20]
b .L161
.L71:
ldr w0, [sp, 36]
cmp w0, 0
beq .L162
adrp x0, long_val
add x0, x0, :lo12:long_val
ldr x0, [x0]
mov w1, w0
ldr x0, [sp, 128]
str w1, [x0, 24]
b .L162
.L72:
ldr w0, [sp, 36]
cmp w0, 0
beq .L163
adrp x0, long_val
add x0, x0, :lo12:long_val
ldr x0, [x0]
mov w1, w0
ldr x0, [sp, 128]
str w1, [x0, 28]
b .L107
.L161:
nop
b .L107
.L162:
nop
b .L107
.L163:
nop
.L107:
ldr w0, [sp, 36]
cmp w0, 0
beq .L164
ldr x0, [sp, 56]
bl smt_set_mac_opvalues
cmp w0, 0
beq .L164
adrp x0, RS_EVENT
add x0, x0, :lo12:RS_EVENT
ldr w0, [x0]
mov w1, w0
ldr x0, [sp, 56]
bl RS_SET
ldr x0, [sp, 56]
mov w1, 1
str w1, [x0]
adrp x0, EVENT_ECM
add x0, x0, :lo12:EVENT_ECM
ldr w1, [x0]
adrp x0, EC_DISCONNECT
add x0, x0, :lo12:EC_DISCONNECT
ldr w0, [x0]
mov w2, w0
ldr x0, [sp, 56]
bl queue_event
b .L164
.L73:
adrp x0, byte_val
add x0, x0, :lo12:byte_val
ldr w0, [x0]
cmp w0, 1
bgt .L165
ldr w0, [sp, 36]
cmp w0, 0
beq .L166
adrp x0, byte_val
add x0, x0, :lo12:byte_val
ldr w1, [x0]
ldr x0, [sp, 136]
str w1, [x0]
b .L166
.L74:
ldr w0, [sp, 36]
cmp w0, 0
beq .L167
ldr x0, [sp, 136]
ldr x0, [x0, 16]
mov x3, x0
mov w2, 4
adrp x0, long_val
add x1, x0, :lo12:long_val
mov x0, x3
bl memcpy
b .L167
.L75:
adrp x0, word_val
add x0, x0, :lo12:word_val
ldr w0, [x0]
cmp w0, 4
bgt .L168
ldr w0, [sp, 36]
cmp w0, 0
beq .L169
adrp x0, word_val
add x0, x0, :lo12:word_val
ldr w1, [x0]
ldr x0, [sp, 136]
str w1, [x0, 4]
b .L169
.L76:
adrp x0, byte_val
add x0, x0, :lo12:byte_val
ldr w0, [x0]
cmp w0, 3
ble .L170
adrp x0, byte_val
add x0, x0, :lo12:byte_val
ldr w0, [x0]
cmp w0, 15
bgt .L170
ldr w0, [sp, 36]
cmp w0, 0
beq .L171
adrp x0, byte_val
add x0, x0, :lo12:byte_val
ldr w1, [x0]
ldr x0, [sp, 136]
str w1, [x0, 8]
b .L171
.L77:
adrp x0, byte_val
add x0, x0, :lo12:byte_val
ldr w0, [x0]
cmp w0, 3
ble .L172
adrp x0, byte_val
add x0, x0, :lo12:byte_val
ldr w0, [x0]
cmp w0, 15
bgt .L172
ldr w0, [sp, 36]
cmp w0, 0
beq .L173
adrp x0, byte_val
add x0, x0, :lo12:byte_val
ldr w1, [x0]
ldr x0, [sp, 136]
str w1, [x0, 12]
b .L173
.L60:
adrp x0, SMT_STATION_ACTION
add x0, x0, :lo12:SMT_STATION_ACTION
ldr w1, [x0]
adrp x0, word_val
add x0, x0, :lo12:word_val
ldr w0, [x0]
mov x3, 0
mov w2, w0
ldr x0, [sp, 56]
bl smt_action
cmp w0, 0
beq .L174
b .L38
.L78:
adrp x0, SMT_PORT_ACTION
add x0, x0, :lo12:SMT_PORT_ACTION
ldr w19, [x0]
adrp x0, word_val
add x0, x0, :lo12:word_val
ldr w20, [x0]
ldr w1, [sp, 84]
ldr x0, [sp, 56]
bl port_to_mib
mov x3, x0
mov w2, w20
mov w1, w19
ldr x0, [sp, 56]
bl smt_action
cmp w0, 0
bne .L175
b .L81
.L135:
nop
b .L81
.L137:
nop
b .L81
.L139:
nop
b .L81
.L141:
nop
b .L81
.L143:
nop
b .L81
.L145:
nop
b .L81
.L147:
nop
b .L81
.L148:
nop
b .L81
.L149:
nop
b .L81
.L151:
nop
b .L81
.L152:
nop
b .L81
.L154:
nop
b .L81
.L157:
nop
b .L81
.L158:
nop
b .L81
.L160:
nop
b .L81
.L164:
nop
b .L81
.L166:
nop
b .L81
.L167:
nop
b .L81
.L169:
nop
b .L81
.L171:
nop
b .L81
.L173:
nop
b .L81
.L174:
nop
.L81:
mov w0, 0
b .L9
.L127:
nop
b .L38
.L129:
nop
b .L38
.L136:
nop
b .L38
.L138:
nop
b .L38
.L140:
nop
b .L38
.L142:
nop
b .L38
.L144:
nop
b .L38
.L146:
nop
b .L38
.L150:
nop
b .L38
.L153:
nop
b .L38
.L155:
nop
b .L38
.L156:
nop
b .L38
.L159:
nop
b .L38
.L165:
nop
b .L38
.L168:
nop
b .L38
.L170:
nop
b .L38
.L172:
nop
b .L38
.L175:
nop
.L38:
adrp x0, SMT_RDF_RANGE
add x0, x0, :lo12:SMT_RDF_RANGE
ldr w0, [x0]
b .L9
.L126:
nop
b .L36
.L128:
nop
b .L36
.L130:
nop
b .L36
.L131:
nop
b .L36
.L132:
nop
b .L36
.L133:
nop
b .L36
.L134:
nop
.L36:
adrp x0, SMT_RDF_LENGTH
add x0, x0, :lo12:SMT_RDF_LENGTH
ldr w0, [x0]
.L9:
ldp x19, x20, [sp, 16]
ldp x29, x30, [sp], 160
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_restore 20
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size smt_set_para, .-smt_set_para
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global __puts
.type __puts, %function
__puts:
.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 x0, [sp, 24]
str wzr, [sp, 44]
b .L2
.L3:
ldr x0, [sp, 24]
ldrb w0, [x0]
bl putchar
ldr x0, [sp, 24]
add x0, x0, 1
str x0, [sp, 24]
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L2:
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 0
bne .L3
ldr w0, [sp, 44]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size __puts, .-__puts
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global head
.bss
.align 3
.type head, %object
.size head, 8
head:
.zero 8
.global max
.align 3
.type max, %object
.size max, 8
max:
.zero 8
.text
.align 2
.global isempty
.type isempty, %function
isempty:
.LFB6:
.cfi_startproc
adrp x0, head
add x0, x0, :lo12:head
ldr x0, [x0]
cmp x0, 0
bne .L2
mov w0, 1
b .L3
.L2:
mov w0, 0
.L3:
ret
.cfi_endproc
.LFE6:
.size isempty, .-isempty
.align 2
.global isoneelement
.type isoneelement, %function
isoneelement:
.LFB7:
.cfi_startproc
adrp x0, head
add x0, x0, :lo12:head
ldr x0, [x0]
ldr x0, [x0, 8]
cmp x0, 0
bne .L5
mov w0, 1
b .L6
.L5:
mov w0, 0
.L6:
ret
.cfi_endproc
.LFE7:
.size isoneelement, .-isoneelement
.section .rodata
.align 3
.LC0:
.string "%d "
.text
.align 2
.global display
.type display, %function
display:
.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 w0, 10
bl putchar
bl isempty
cmp w0, 0
bne .L10
adrp x0, head
add x0, x0, :lo12:head
ldr x0, [x0]
str x0, [sp, 24]
.L9:
ldr x0, [sp, 24]
ldr w0, [x0]
mov w1, w0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
ldr x0, [sp, 24]
ldr x0, [x0, 8]
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
bne .L9
mov w0, 10
bl putchar
.L10:
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size display, .-display
.align 2
.global add
.type add, %function
add:
.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]
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]
bl isempty
cmp w0, 0
beq .L12
adrp x0, head
add x0, x0, :lo12:head
ldr x1, [sp, 40]
str x1, [x0]
adrp x0, max
add x0, x0, :lo12:max
ldr x1, [sp, 40]
str x1, [x0]
b .L15
.L12:
adrp x0, max
add x0, x0, :lo12:max
ldr x0, [x0]
ldr w1, [x0]
ldr x0, [sp, 40]
ldr w0, [x0]
cmp w1, w0
bge .L14
adrp x0, max
add x0, x0, :lo12:max
ldr x1, [sp, 40]
str x1, [x0]
.L14:
adrp x0, head
add x0, x0, :lo12:head
ldr x1, [x0]
ldr x0, [sp, 40]
str x1, [x0, 8]
adrp x0, head
add x0, x0, :lo12:head
ldr x1, [sp, 40]
str x1, [x0]
.L15:
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size add, .-add
.align 2
.global del
.type del, %function
del:
.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 w0, [sp, 28]
bl isempty
cmp w0, 0
beq .L17
mov w0, 0
b .L18
.L17:
bl isoneelement
cmp w0, 0
beq .L19
adrp x0, head
add x0, x0, :lo12:head
ldr x0, [x0]
ldr w0, [x0]
ldr w1, [sp, 28]
cmp w1, w0
bne .L20
adrp x0, head
add x0, x0, :lo12:head
ldr x0, [x0]
bl free
adrp x0, head
add x0, x0, :lo12:head
str xzr, [x0]
mov w0, 1
b .L18
.L20:
mov w0, 0
b .L18
.L19:
adrp x0, head
add x0, x0, :lo12:head
ldr x0, [x0]
str x0, [sp, 40]
ldr x0, [sp, 40]
ldr x0, [x0, 8]
str x0, [sp, 32]
ldr x0, [sp, 40]
ldr w0, [x0]
ldr w1, [sp, 28]
cmp w1, w0
bne .L22
ldr x0, [sp, 40]
ldr x1, [x0, 8]
adrp x0, head
add x0, x0, :lo12:head
str x1, [x0]
ldr x0, [sp, 40]
bl free
mov w0, 1
b .L18
.L24:
ldr x0, [sp, 32]
ldr w0, [x0]
ldr w1, [sp, 28]
cmp w1, w0
bne .L23
ldr x0, [sp, 32]
ldr x1, [x0, 8]
ldr x0, [sp, 40]
str x1, [x0, 8]
ldr x0, [sp, 32]
bl free
mov w0, 1
b .L18
.L23:
ldr x0, [sp, 40]
ldr x0, [x0, 8]
str x0, [sp, 40]
ldr x0, [sp, 32]
ldr x0, [x0, 8]
str x0, [sp, 32]
.L22:
ldr x0, [sp, 32]
cmp x0, 0
bne .L24
mov w0, 0
.L18:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size del, .-del
.align 2
.global findmax
.type findmax, %function
findmax:
.LFB11:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
bl isempty
cmp w0, 0
bne .L31
bl isoneelement
cmp w0, 0
beq .L27
adrp x0, head
add x0, x0, :lo12:head
ldr x1, [x0]
adrp x0, max
add x0, x0, :lo12:max
str x1, [x0]
b .L31
.L27:
adrp x0, head
add x0, x0, :lo12:head
ldr x1, [x0]
adrp x0, max
add x0, x0, :lo12:max
str x1, [x0]
adrp x0, head
add x0, x0, :lo12:head
ldr x0, [x0]
ldr x0, [x0, 8]
str x0, [sp, 24]
b .L28
.L30:
ldr x0, [sp, 24]
ldr w1, [x0]
adrp x0, max
add x0, x0, :lo12:max
ldr x0, [x0]
ldr w0, [x0]
cmp w1, w0
ble .L29
adrp x0, max
add x0, x0, :lo12:max
ldr x1, [sp, 24]
str x1, [x0]
.L29:
ldr x0, [sp, 24]
ldr x0, [x0, 8]
str x0, [sp, 24]
.L28:
ldr x0, [sp, 24]
cmp x0, 0
bne .L30
.L31:
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size findmax, .-findmax
.align 2
.global rec
.type rec, %function
rec:
.LFB12:
.cfi_startproc
stp x29, x30, [sp, -128]!
.cfi_def_cfa_offset 128
.cfi_offset 29, -128
.cfi_offset 30, -120
mov x29, sp
str x0, [sp, 40]
str w1, [sp, 36]
str w2, [sp, 32]
str w3, [sp, 28]
str w4, [sp, 24]
str w5, [sp, 20]
ldr w1, [sp, 32]
ldr w0, [sp, 28]
cmp w1, w0
bge .L33
mov w0, 1
b .L34
.L33:
ldrsw x0, [sp, 24]
lsl x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
ldr w1, [sp, 20]
str w1, [x0]
ldr w1, [sp, 28]
ldr w0, [sp, 24]
cmp w1, w0
bne .L35
mov w0, 1
str w0, [sp, 52]
str wzr, [sp, 56]
b .L36
.L42:
ldrsw x0, [sp, 56]
lsl x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
ldr w0, [x0]
ldr w1, [sp, 20]
sub w0, w1, w0
bl del
str w0, [sp, 112]
ldr w0, [sp, 112]
cmp w0, 0
bne .L37
str wzr, [sp, 52]
.L37:
ldr w0, [sp, 52]
cmp w0, 0
bne .L38
str wzr, [sp, 60]
b .L39
.L40:
ldrsw x0, [sp, 56]
lsl x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
ldr w0, [x0]
ldr w1, [sp, 20]
sub w0, w1, w0
bl add
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L39:
ldr w1, [sp, 60]
ldr w0, [sp, 56]
cmp w1, w0
blt .L40
b .L41
.L38:
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
.L36:
ldr w1, [sp, 56]
ldr w0, [sp, 28]
cmp w1, w0
blt .L42
.L41:
ldr w0, [sp, 32]
str w0, [sp, 64]
b .L43
.L51:
ldrsw x0, [sp, 64]
lsl x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
ldr w1, [x0]
ldr w0, [sp, 20]
sub w0, w1, w0
bl del
str w0, [sp, 116]
ldr w0, [sp, 116]
cmp w0, 0
bne .L44
str wzr, [sp, 52]
.L44:
ldr w0, [sp, 52]
cmp w0, 0
bne .L45
str wzr, [sp, 68]
b .L46
.L47:
ldrsw x0, [sp, 68]
lsl x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
ldr w0, [x0]
ldr w1, [sp, 20]
sub w0, w1, w0
bl add
ldr w0, [sp, 68]
add w0, w0, 1
str w0, [sp, 68]
.L46:
ldr w1, [sp, 68]
ldr w0, [sp, 28]
cmp w1, w0
blt .L47
ldr w0, [sp, 32]
str w0, [sp, 72]
b .L48
.L49:
ldrsw x0, [sp, 72]
lsl x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
ldr w1, [x0]
ldr w0, [sp, 20]
sub w0, w1, w0
bl add
ldr w0, [sp, 72]
add w0, w0, 1
str w0, [sp, 72]
.L48:
ldr w1, [sp, 72]
ldr w0, [sp, 64]
cmp w1, w0
blt .L49
b .L52
.L45:
ldr w0, [sp, 64]
add w0, w0, 1
str w0, [sp, 64]
.L43:
ldr w1, [sp, 64]
ldr w0, [sp, 36]
cmp w1, w0
blt .L51
b .L52
.L35:
mov w0, 1
str w0, [sp, 52]
str wzr, [sp, 76]
b .L53
.L59:
ldrsw x0, [sp, 76]
lsl x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
ldr w0, [x0]
ldr w1, [sp, 20]
sub w0, w1, w0
bl del
str w0, [sp, 104]
ldr w0, [sp, 104]
cmp w0, 0
bne .L54
str wzr, [sp, 52]
.L54:
ldr w0, [sp, 52]
cmp w0, 0
bne .L55
str wzr, [sp, 80]
b .L56
.L57:
ldrsw x0, [sp, 76]
lsl x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
ldr w0, [x0]
ldr w1, [sp, 20]
sub w0, w1, w0
bl add
ldr w0, [sp, 80]
add w0, w0, 1
str w0, [sp, 80]
.L56:
ldr w1, [sp, 80]
ldr w0, [sp, 76]
cmp w1, w0
blt .L57
b .L58
.L55:
ldr w0, [sp, 76]
add w0, w0, 1
str w0, [sp, 76]
.L53:
ldr w1, [sp, 76]
ldr w0, [sp, 28]
cmp w1, w0
ble .L59
.L58:
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 84]
b .L60
.L67:
ldrsw x0, [sp, 84]
lsl x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
ldr w1, [x0]
ldr w0, [sp, 20]
sub w0, w1, w0
bl del
str w0, [sp, 108]
ldr w0, [sp, 108]
cmp w0, 0
bne .L61
str wzr, [sp, 52]
.L61:
ldr w0, [sp, 52]
cmp w0, 0
bne .L62
str wzr, [sp, 88]
b .L63
.L64:
ldrsw x0, [sp, 88]
lsl x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
ldr w0, [x0]
ldr w1, [sp, 20]
sub w0, w1, w0
bl add
ldr w0, [sp, 88]
add w0, w0, 1
str w0, [sp, 88]
.L63:
ldr w1, [sp, 88]
ldr w0, [sp, 28]
cmp w1, w0
ble .L64
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 92]
b .L65
.L66:
ldrsw x0, [sp, 92]
lsl x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
ldr w1, [x0]
ldr w0, [sp, 20]
sub w0, w1, w0
bl add
ldr w0, [sp, 92]
add w0, w0, 1
str w0, [sp, 92]
.L65:
ldr w1, [sp, 92]
ldr w0, [sp, 84]
cmp w1, w0
blt .L66
b .L52
.L62:
ldr w0, [sp, 84]
add w0, w0, 1
str w0, [sp, 84]
.L60:
ldr w1, [sp, 84]
ldr w0, [sp, 36]
cmp w1, w0
blt .L67
.L52:
bl isempty
cmp w0, 0
beq .L68
mov w0, 1
b .L34
.L68:
ldr w0, [sp, 52]
cmp w0, 1
bne .L69
bl findmax
ldr w0, [sp, 32]
sub w1, w0, #1
ldr w0, [sp, 32]
sub w2, w0, #1
adrp x0, max
add x0, x0, :lo12:max
ldr x0, [x0]
ldr w0, [x0]
mov w5, w0
mov w4, w2
ldr w3, [sp, 28]
mov w2, w1
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl rec
str w0, [sp, 120]
ldr w0, [sp, 120]
cmp w0, 0
bne .L70
bl findmax
ldr w0, [sp, 28]
add w2, w0, 1
ldr w0, [sp, 28]
add w3, w0, 1
ldrsw x0, [sp, 36]
lsl x0, x0, 2
sub x0, x0, #4
ldr x1, [sp, 40]
add x0, x1, x0
ldr w1, [x0]
adrp x0, max
add x0, x0, :lo12:max
ldr x0, [x0]
ldr w0, [x0]
sub w0, w1, w0
mov w5, w0
mov w4, w3
mov w3, w2
ldr w2, [sp, 32]
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl rec
str w0, [sp, 124]
ldr w0, [sp, 124]
cmp w0, 0
bne .L70
str wzr, [sp, 96]
b .L71
.L72:
ldrsw x0, [sp, 96]
lsl x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
ldr w0, [x0]
ldr w1, [sp, 20]
sub w0, w1, w0
bl add
ldr w0, [sp, 96]
add w0, w0, 1
str w0, [sp, 96]
.L71:
ldr w1, [sp, 96]
ldr w0, [sp, 28]
cmp w1, w0
ble .L72
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 100]
b .L73
.L74:
ldrsw x0, [sp, 100]
lsl x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
ldr w1, [x0]
ldr w0, [sp, 20]
sub w0, w1, w0
bl add
ldr w0, [sp, 100]
add w0, w0, 1
str w0, [sp, 100]
.L73:
ldr w1, [sp, 100]
ldr w0, [sp, 36]
cmp w1, w0
blt .L74
mov w0, 0
b .L34
.L70:
mov w0, 1
b .L34
.L69:
mov w0, 0
.L34:
ldp x29, x30, [sp], 128
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE12:
.size rec, .-rec
.section .rodata
.align 3
.LC1:
.string "%d"
.align 3
.LC2:
.string "m=%d\n"
.align 3
.LC3:
.string "\nnot possible"
.text
.align 2
.global main
.type main, %function
main:
.LFB13:
.cfi_startproc
stp x29, x30, [sp, -240]!
.cfi_def_cfa_offset 240
.cfi_offset 29, -240
.cfi_offset 30, -232
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, -224
.cfi_offset 20, -216
.cfi_offset 21, -208
.cfi_offset 22, -200
.cfi_offset 23, -192
.cfi_offset 24, -184
.cfi_offset 25, -176
.cfi_offset 26, -168
.cfi_offset 27, -160
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [x29, 232]
mov x1, 0
mov x0, sp
mov x19, x0
add x0, x29, 164
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
ldr w0, [x29, 164]
sxtw x1, w0
sub x1, x1, #1
str x1, [x29, 200]
sxtw x1, w0
str x1, [x29, 144]
str xzr, [x29, 152]
ldp x2, x3, [x29, 144]
mov x1, x2
lsr x1, x1, 59
mov x4, x3
lsl x27, x4, 5
orr x27, x1, x27
mov x1, x2
lsl x26, x1, 5
sxtw x1, w0
str x1, [x29, 128]
str xzr, [x29, 136]
ldp x2, x3, [x29, 128]
mov x1, x2
lsr x1, x1, 59
mov x4, x3
lsl x25, x4, 5
orr x25, x1, x25
mov x1, x2
lsl x24, x1, 5
sxtw x0, w0
lsl x0, x0, 2
add x0, x0, 15
lsr x0, x0, 4
lsl x0, x0, 4
and x1, x0, -65536
sub x1, sp, x1
.L76:
cmp sp, x1
beq .L77
sub sp, sp, #65536
str xzr, [sp, 1024]
b .L76
.L77:
and x1, x0, 65535
sub sp, sp, x1
str xzr, [sp]
and x0, x0, 65535
cmp x0, 1024
bcc .L78
str xzr, [sp, 1024]
.L78:
add x0, sp, 16
add x0, x0, 3
lsr x0, x0, 2
lsl x0, x0, 2
str x0, [x29, 208]
str wzr, [x29, 168]
b .L79
.L80:
ldrsw x0, [x29, 168]
lsl x0, x0, 2
ldr x1, [x29, 208]
add x0, x1, x0
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
ldr w0, [x29, 168]
add w0, w0, 1
str w0, [x29, 168]
.L79:
ldr w0, [x29, 164]
ldr w1, [x29, 168]
cmp w1, w0
blt .L80
adrp x0, head
add x0, x0, :lo12:head
str xzr, [x0]
ldr w0, [x29, 164]
sub w1, w0, #1
ldr w0, [x29, 164]
mul w0, w1, w0
lsr w1, w0, 31
add w0, w1, w0
asr w0, w0, 1
str w0, [x29, 184]
ldr w1, [x29, 184]
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
ldr w0, [x29, 164]
sub w0, w0, #1
str w0, [x29, 172]
b .L81
.L84:
ldr w0, [x29, 172]
sub w0, w0, #1
str w0, [x29, 176]
b .L82
.L83:
ldr x0, [x29, 208]
ldrsw x1, [x29, 172]
ldr w1, [x0, x1, lsl 2]
ldr x0, [x29, 208]
ldrsw x2, [x29, 176]
ldr w0, [x0, x2, lsl 2]
sub w0, w1, w0
str w0, [x29, 196]
ldr w0, [x29, 196]
bl add
ldr w0, [x29, 176]
sub w0, w0, #1
str w0, [x29, 176]
.L82:
ldr w0, [x29, 176]
cmp w0, 0
bge .L83
ldr w0, [x29, 172]
sub w0, w0, #1
str w0, [x29, 172]
.L81:
ldr w0, [x29, 172]
cmp w0, 0
bge .L84
bl display
ldr w0, [x29, 164]
sxtw x1, w0
sub x1, x1, #1
str x1, [x29, 216]
sxtw x1, w0
str x1, [x29, 112]
str xzr, [x29, 120]
ldp x2, x3, [x29, 112]
mov x1, x2
lsr x1, x1, 59
mov x4, x3
lsl x23, x4, 5
orr x23, x1, x23
mov x1, x2
lsl x22, x1, 5
sxtw x1, w0
str x1, [x29, 96]
str xzr, [x29, 104]
ldp x2, x3, [x29, 96]
mov x1, x2
lsr x1, x1, 59
mov x4, x3
lsl x21, x4, 5
orr x21, x1, x21
mov x1, x2
lsl x20, x1, 5
sxtw x0, w0
lsl x0, x0, 2
add x0, x0, 15
lsr x0, x0, 4
lsl x0, x0, 4
and x1, x0, -65536
sub x1, sp, x1
.L85:
cmp sp, x1
beq .L86
sub sp, sp, #65536
str xzr, [sp, 1024]
b .L85
.L86:
and x1, x0, 65535
sub sp, sp, x1
str xzr, [sp]
and x0, x0, 65535
cmp x0, 1024
bcc .L87
str xzr, [sp, 1024]
.L87:
add x0, sp, 16
add x0, x0, 3
lsr x0, x0, 2
lsl x0, x0, 2
str x0, [x29, 224]
ldr x0, [x29, 224]
str wzr, [x0]
adrp x0, max
add x0, x0, :lo12:max
ldr x0, [x0]
ldr w1, [x29, 164]
sub w1, w1, #1
ldr w2, [x0]
ldr x0, [x29, 224]
sxtw x1, w1
str w2, [x0, x1, lsl 2]
adrp x0, max
add x0, x0, :lo12:max
ldr x0, [x0]
ldr w0, [x0]
bl del
bl display
bl findmax
ldr w0, [x29, 164]
sub w0, w0, #2
str w0, [x29, 188]
str wzr, [x29, 192]
ldr w1, [x29, 164]
adrp x0, max
add x0, x0, :lo12:max
ldr x0, [x0]
ldr w0, [x0]
mov w5, w0
ldr w4, [x29, 188]
ldr w3, [x29, 192]
ldr w2, [x29, 188]
ldr x0, [x29, 224]
bl rec
cmp w0, 0
bne .L88
ldr w6, [x29, 164]
ldr w0, [x29, 164]
sub w1, w0, #1
ldr x0, [x29, 224]
sxtw x1, w1
ldr w1, [x0, x1, lsl 2]
adrp x0, max
add x0, x0, :lo12:max
ldr x0, [x0]
ldr w0, [x0]
sub w0, w1, w0
mov w5, w0
ldr w4, [x29, 192]
ldr w3, [x29, 192]
ldr w2, [x29, 188]
mov w1, w6
ldr x0, [x29, 224]
bl rec
cmp w0, 0
bne .L88
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
.L88:
str wzr, [x29, 180]
b .L89
.L90:
ldr x0, [x29, 224]
ldrsw x1, [x29, 180]
ldr w0, [x0, x1, lsl 2]
mov w1, w0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
ldr w0, [x29, 180]
add w0, w0, 1
str w0, [x29, 180]
.L89:
ldr w0, [x29, 164]
ldr w1, [x29, 180]
cmp w1, w0
blt .L90
mov w0, 0
mov sp, x19
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [x29, 232]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L92
bl __stack_chk_fail
.L92:
mov w0, w1
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], 240
.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
.LFE13:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global __udivti3
.section .rodata
.align 3
.LC0:
.string "Result = %ju\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
mov x0, 1000
mov x1, 0
stp x0, x1, [sp, 16]
mov x0, 10
mov x1, 0
stp x0, x1, [sp, 32]
ldp x2, x3, [sp, 32]
ldp x0, x1, [sp, 16]
bl __udivti3
stp x0, x1, [sp, 48]
ldr x0, [sp, 48]
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
mov w0, 0
ldp x29, x30, [sp], 64
.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 _execve
.type _execve, %function
_execve:
.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 x0, [sp, 40]
str x1, [sp, 32]
str x2, [sp, 24]
bl __errno_location
mov x1, x0
mov w0, 38
str w0, [x1]
mov w0, -1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size _execve, .-_execve
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global s
.bss
.align 3
.type s, %object
.size s, 10000
s:
.zero 10000
.section .rodata
.align 3
.LC0:
.string "%d"
.align 3
.LC1:
.string "%s"
.align 3
.LC2:
.string "%d\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -160]!
.cfi_def_cfa_offset 160
.cfi_offset 29, -160
.cfi_offset 30, -152
mov x29, sp
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, 44]
add x0, sp, 28
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
str wzr, [sp, 32]
b .L2
.L7:
add x0, sp, 48
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
str wzr, [sp, 36]
b .L3
.L6:
ldr w0, [sp, 32]
and w0, w0, 1
cmp w0, 0
bne .L4
ldr w0, [sp, 44]
add w1, w0, 1
str w1, [sp, 44]
ldrsw x1, [sp, 36]
add x2, sp, 48
ldrb w2, [x2, x1]
adrp x1, s
add x1, x1, :lo12:s
sxtw x0, w0
strb w2, [x1, x0]
b .L5
.L4:
ldr w0, [sp, 28]
sub w1, w0, #1
ldr w0, [sp, 36]
sub w2, w1, w0
ldr w0, [sp, 44]
add w1, w0, 1
str w1, [sp, 44]
sxtw x1, w2
add x2, sp, 48
ldrb w2, [x2, x1]
adrp x1, s
add x1, x1, :lo12:s
sxtw x0, w0
strb w2, [x1, x0]
.L5:
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L3:
ldr w0, [sp, 28]
ldr w1, [sp, 36]
cmp w1, w0
blt .L6
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L2:
ldr w0, [sp, 28]
ldr w1, [sp, 32]
cmp w1, w0
blt .L7
str wzr, [sp, 44]
str wzr, [sp, 40]
str wzr, [sp, 32]
b .L8
.L12:
adrp x0, s
add x1, x0, :lo12:s
ldrsw x0, [sp, 32]
ldrb w0, [x1, x0]
cmp w0, 111
bne .L9
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L9:
adrp x0, s
add x1, x0, :lo12:s
ldrsw x0, [sp, 32]
ldrb w0, [x1, x0]
cmp w0, 65
bne .L10
ldr w1, [sp, 44]
ldr w0, [sp, 40]
cmp w1, w0
ble .L11
ldr w0, [sp, 44]
str w0, [sp, 40]
.L11:
str wzr, [sp, 44]
.L10:
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L8:
ldr w1, [sp, 28]
ldr w0, [sp, 28]
mul w0, w1, w0
ldr w1, [sp, 32]
cmp w1, w0
blt .L12
ldr w1, [sp, 44]
ldr w0, [sp, 40]
cmp w1, w0
ble .L13
ldr w0, [sp, 44]
str w0, [sp, 40]
.L13:
ldr w1, [sp, 40]
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, 152]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L15
bl __stack_chk_fail
.L15:
mov w0, w1
ldp x29, x30, [sp], 160
.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 start_thread
.type start_thread, %function
start_thread:
.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 puts
mov w0, 1
bl sleep
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size start_thread, .-start_thread
.section .rodata
.align 3
.LC0:
.string "Thing 1"
.align 3
.LC1:
.string "Thing 2"
.text
.align 2
.global main
.type main, %function
main:
.LFB7:
.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
str x0, [sp, 40]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
str x0, [sp, 48]
add x4, sp, 24
ldr x3, [sp, 40]
adrp x0, start_thread
add x2, x0, :lo12:start_thread
mov x1, 0
mov x0, x4
bl pthread_create
add x4, sp, 32
ldr x3, [sp, 48]
adrp x0, start_thread
add x2, x0, :lo12:start_thread
mov x1, 0
mov x0, x4
bl pthread_create
ldr x0, [sp, 24]
mov x1, 0
bl pthread_join
ldr x0, [sp, 32]
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, 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
.LFE7:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global size
.data
.align 2
.type size, %object
.size size, 4
size:
.word 9
.global box
.bss
.align 3
.type box, %object
.size box, 648
box:
.zero 648
.global sampleBox
.data
.align 3
.type sampleBox, %object
.size sampleBox, 324
sampleBox:
.word 1
.word 2
.word 3
.word 4
.word 5
.word 6
.word 7
.word 8
.word 9
.word 4
.word 5
.word 6
.word 7
.word 8
.word 9
.word 1
.word 2
.word 3
.word 7
.word 8
.word 9
.word 1
.word 2
.word 3
.word 4
.word 5
.word 6
.word 2
.word 3
.word 4
.word 5
.word 6
.word 7
.word 8
.word 9
.word 1
.word 5
.word 6
.word 7
.word 8
.word 9
.word 1
.word 2
.word 3
.word 4
.word 8
.word 9
.word 1
.word 2
.word 3
.word 4
.word 5
.word 6
.word 7
.word 3
.word 4
.word 5
.word 6
.word 7
.word 8
.word 9
.word 1
.word 2
.word 6
.word 7
.word 8
.word 9
.word 1
.word 2
.word 3
.word 4
.word 5
.word 9
.word 1
.word 2
.word 3
.word 4
.word 5
.word 6
.word 7
.word 8
.text
.align 2
.global initialize
.type initialize, %function
initialize:
.LFB6:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str wzr, [sp, 8]
b .L2
.L5:
str wzr, [sp, 12]
b .L3
.L4:
adrp x0, sampleBox
add x2, x0, :lo12:sampleBox
ldrsw x3, [sp, 12]
ldrsw x1, [sp, 8]
mov x0, x1
lsl x0, x0, 3
add x0, x0, x1
add x0, x0, x3
ldr w2, [x2, x0, lsl 2]
adrp x0, box
add x3, x0, :lo12:box
ldrsw x4, [sp, 12]
ldrsw x1, [sp, 8]
mov x0, x1
lsl x0, x0, 3
add x0, x0, x1
add x0, x0, x4
lsl x0, x0, 3
add x0, x3, x0
str w2, [x0]
adrp x0, box
add x2, x0, :lo12:box
ldrsw x3, [sp, 12]
ldrsw x1, [sp, 8]
mov x0, x1
lsl x0, x0, 3
add x0, x0, x1
add x0, x0, x3
lsl x0, x0, 3
add x0, x2, x0
str wzr, [x0, 4]
ldr w0, [sp, 12]
add w0, w0, 1
str w0, [sp, 12]
.L3:
adrp x0, size
add x0, x0, :lo12:size
ldr w0, [x0]
ldr w1, [sp, 12]
cmp w1, w0
blt .L4
ldr w0, [sp, 8]
add w0, w0, 1
str w0, [sp, 8]
.L2:
adrp x0, size
add x0, x0, :lo12:size
ldr w0, [x0]
ldr w1, [sp, 8]
cmp w1, w0
blt .L5
nop
nop
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size initialize, .-initialize
.section .rodata
.align 3
.LC0:
.string "%i"
.text
.align 2
.global printSudoku
.type printSudoku, %function
printSudoku:
.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 d0, [sp, 24]
mov x0, 281474972516352
movk x0, 0x41df, lsl 48
fmov d0, x0
str d0, [sp, 48]
str wzr, [sp, 40]
b .L7
.L13:
str wzr, [sp, 44]
b .L8
.L12:
bl rand
scvtf d1, w0
ldr d0, [sp, 48]
fdiv d0, d1, d0
str d0, [sp, 56]
ldr d1, [sp, 56]
ldr d0, [sp, 24]
fcmpe d1, d0
bmi .L14
b .L15
.L14:
mov w0, 46
bl putchar
b .L11
.L15:
adrp x0, box
add x2, x0, :lo12:box
ldrsw x3, [sp, 44]
ldrsw x1, [sp, 40]
mov x0, x1
lsl x0, x0, 3
add x0, x0, x1
add x0, x0, x3
lsl x0, x0, 3
add x0, x2, x0
ldr w0, [x0]
mov w1, w0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
.L11:
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L8:
adrp x0, size
add x0, x0, :lo12:size
ldr w0, [x0]
ldr w1, [sp, 44]
cmp w1, w0
blt .L12
ldr w0, [sp, 40]
add w0, w0, 1
str w0, [sp, 40]
.L7:
adrp x0, size
add x0, x0, :lo12:size
ldr w0, [x0]
ldr w1, [sp, 40]
cmp w1, w0
blt .L13
mov w0, 10
bl putchar
nop
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size printSudoku, .-printSudoku
.align 2
.global swapLittleRow
.type swapLittleRow, %function
swapLittleRow:
.LFB8:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, 12]
str w1, [sp, 8]
str wzr, [sp, 24]
b .L17
.L18:
adrp x0, box
add x2, x0, :lo12:box
ldrsw x3, [sp, 24]
ldrsw x1, [sp, 12]
mov x0, x1
lsl x0, x0, 3
add x0, x0, x1
add x0, x0, x3
lsl x0, x0, 3
add x0, x2, x0
ldr w0, [x0]
str w0, [sp, 28]
adrp x0, box
add x2, x0, :lo12:box
ldrsw x3, [sp, 24]
ldrsw x1, [sp, 8]
mov x0, x1
lsl x0, x0, 3
add x0, x0, x1
add x0, x0, x3
lsl x0, x0, 3
add x0, x2, x0
ldr w2, [x0]
adrp x0, box
add x3, x0, :lo12:box
ldrsw x4, [sp, 24]
ldrsw x1, [sp, 12]
mov x0, x1
lsl x0, x0, 3
add x0, x0, x1
add x0, x0, x4
lsl x0, x0, 3
add x0, x3, x0
str w2, [x0]
adrp x0, box
add x2, x0, :lo12:box
ldrsw x3, [sp, 24]
ldrsw x1, [sp, 8]
mov x0, x1
lsl x0, x0, 3
add x0, x0, x1
add x0, x0, x3
lsl x0, x0, 3
add x0, x2, x0
ldr w1, [sp, 28]
str w1, [x0]
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L17:
adrp x0, size
add x0, x0, :lo12:size
ldr w0, [x0]
ldr w1, [sp, 24]
cmp w1, w0
blt .L18
nop
nop
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size swapLittleRow, .-swapLittleRow
.section .rodata
.align 3
.LC1:
.string "BIG ERROR"
.text
.align 2
.global swapBigRow
.type swapBigRow, %function
swapBigRow:
.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 w1, [sp, 24]
ldr w0, [sp, 28]
cmp w0, 2
bgt .L20
ldr w0, [sp, 24]
cmp w0, 2
ble .L21
.L20:
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
b .L22
.L21:
ldr w1, [sp, 28]
mov w0, w1
lsl w0, w0, 1
add w2, w0, w1
ldr w1, [sp, 24]
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
mov w1, w0
mov w0, w2
bl swapLittleRow
ldr w1, [sp, 28]
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
add w2, w0, 1
ldr w1, [sp, 24]
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
add w0, w0, 1
mov w1, w0
mov w0, w2
bl swapLittleRow
ldr w1, [sp, 28]
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
add w2, w0, 2
ldr w1, [sp, 24]
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
add w0, w0, 2
mov w1, w0
mov w0, w2
bl swapLittleRow
nop
.L22:
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size swapBigRow, .-swapBigRow
.align 2
.global swapLittleCol
.type swapLittleCol, %function
swapLittleCol:
.LFB10:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, 12]
str w1, [sp, 8]
str wzr, [sp, 24]
b .L24
.L25:
adrp x0, box
add x2, x0, :lo12:box
ldrsw x3, [sp, 12]
ldrsw x1, [sp, 24]
mov x0, x1
lsl x0, x0, 3
add x0, x0, x1
add x0, x0, x3
lsl x0, x0, 3
add x0, x2, x0
ldr w0, [x0]
str w0, [sp, 28]
adrp x0, box
add x2, x0, :lo12:box
ldrsw x3, [sp, 8]
ldrsw x1, [sp, 24]
mov x0, x1
lsl x0, x0, 3
add x0, x0, x1
add x0, x0, x3
lsl x0, x0, 3
add x0, x2, x0
ldr w2, [x0]
adrp x0, box
add x3, x0, :lo12:box
ldrsw x4, [sp, 12]
ldrsw x1, [sp, 24]
mov x0, x1
lsl x0, x0, 3
add x0, x0, x1
add x0, x0, x4
lsl x0, x0, 3
add x0, x3, x0
str w2, [x0]
adrp x0, box
add x2, x0, :lo12:box
ldrsw x3, [sp, 8]
ldrsw x1, [sp, 24]
mov x0, x1
lsl x0, x0, 3
add x0, x0, x1
add x0, x0, x3
lsl x0, x0, 3
add x0, x2, x0
ldr w1, [sp, 28]
str w1, [x0]
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L24:
adrp x0, size
add x0, x0, :lo12:size
ldr w0, [x0]
ldr w1, [sp, 24]
cmp w1, w0
blt .L25
nop
nop
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size swapLittleCol, .-swapLittleCol
.align 2
.global swapBigCol
.type swapBigCol, %function
swapBigCol:
.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 w0, [sp, 28]
str w1, [sp, 24]
ldr w0, [sp, 28]
cmp w0, 2
bgt .L27
ldr w0, [sp, 24]
cmp w0, 2
ble .L28
.L27:
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
b .L29
.L28:
ldr w1, [sp, 28]
mov w0, w1
lsl w0, w0, 1
add w2, w0, w1
ldr w1, [sp, 24]
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
mov w1, w0
mov w0, w2
bl swapLittleCol
ldr w1, [sp, 28]
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
add w2, w0, 1
ldr w1, [sp, 24]
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
add w0, w0, 1
mov w1, w0
mov w0, w2
bl swapLittleCol
ldr w1, [sp, 28]
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
add w2, w0, 2
ldr w1, [sp, 24]
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
add w0, w0, 2
mov w1, w0
mov w0, w2
bl swapLittleCol
nop
.L29:
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size swapBigCol, .-swapBigCol
.align 2
.global flipVert
.type flipVert, %function
flipVert:
.LFB12:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str wzr, [sp, 4]
b .L31
.L34:
str wzr, [sp, 8]
b .L32
.L33:
adrp x0, box
add x2, x0, :lo12:box
ldrsw x3, [sp, 8]
ldrsw x1, [sp, 4]
mov x0, x1
lsl x0, x0, 3
add x0, x0, x1
add x0, x0, x3
lsl x0, x0, 3
add x0, x2, x0
ldr w0, [x0]
str w0, [sp, 12]
mov w1, 8
ldr w0, [sp, 8]
sub w1, w1, w0
adrp x0, box
add x2, x0, :lo12:box
sxtw x3, w1
ldrsw x1, [sp, 4]
mov x0, x1
lsl x0, x0, 3
add x0, x0, x1
add x0, x0, x3
lsl x0, x0, 3
add x0, x2, x0
ldr w2, [x0]
adrp x0, box
add x3, x0, :lo12:box
ldrsw x4, [sp, 8]
ldrsw x1, [sp, 4]
mov x0, x1
lsl x0, x0, 3
add x0, x0, x1
add x0, x0, x4
lsl x0, x0, 3
add x0, x3, x0
str w2, [x0]
mov w1, 8
ldr w0, [sp, 8]
sub w1, w1, w0
adrp x0, box
add x2, x0, :lo12:box
sxtw x3, w1
ldrsw x1, [sp, 4]
mov x0, x1
lsl x0, x0, 3
add x0, x0, x1
add x0, x0, x3
lsl x0, x0, 3
add x0, x2, x0
ldr w1, [sp, 12]
str w1, [x0]
ldr w0, [sp, 8]
add w0, w0, 1
str w0, [sp, 8]
.L32:
adrp x0, size
add x0, x0, :lo12:size
ldr w0, [x0]
lsr w1, w0, 31
add w0, w1, w0
asr w0, w0, 1
mov w1, w0
ldr w0, [sp, 8]
cmp w0, w1
blt .L33
ldr w0, [sp, 4]
add w0, w0, 1
str w0, [sp, 4]
.L31:
adrp x0, size
add x0, x0, :lo12:size
ldr w0, [x0]
ldr w1, [sp, 4]
cmp w1, w0
blt .L34
nop
nop
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE12:
.size flipVert, .-flipVert
.align 2
.global flipHorz
.type flipHorz, %function
flipHorz:
.LFB13:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str wzr, [sp, 4]
b .L36
.L39:
str wzr, [sp, 8]
b .L37
.L38:
adrp x0, box
add x2, x0, :lo12:box
ldrsw x3, [sp, 8]
ldrsw x1, [sp, 4]
mov x0, x1
lsl x0, x0, 3
add x0, x0, x1
add x0, x0, x3
lsl x0, x0, 3
add x0, x2, x0
ldr w0, [x0]
str w0, [sp, 12]
mov w1, 8
ldr w0, [sp, 4]
sub w1, w1, w0
adrp x0, box
add x2, x0, :lo12:box
ldrsw x3, [sp, 8]
sxtw x1, w1
mov x0, x1
lsl x0, x0, 3
add x0, x0, x1
add x0, x0, x3
lsl x0, x0, 3
add x0, x2, x0
ldr w2, [x0]
adrp x0, box
add x3, x0, :lo12:box
ldrsw x4, [sp, 8]
ldrsw x1, [sp, 4]
mov x0, x1
lsl x0, x0, 3
add x0, x0, x1
add x0, x0, x4
lsl x0, x0, 3
add x0, x3, x0
str w2, [x0]
mov w1, 8
ldr w0, [sp, 4]
sub w1, w1, w0
adrp x0, box
add x2, x0, :lo12:box
ldrsw x3, [sp, 8]
sxtw x1, w1
mov x0, x1
lsl x0, x0, 3
add x0, x0, x1
add x0, x0, x3
lsl x0, x0, 3
add x0, x2, x0
ldr w1, [sp, 12]
str w1, [x0]
ldr w0, [sp, 8]
add w0, w0, 1
str w0, [sp, 8]
.L37:
adrp x0, size
add x0, x0, :lo12:size
ldr w0, [x0]
ldr w1, [sp, 8]
cmp w1, w0
blt .L38
ldr w0, [sp, 4]
add w0, w0, 1
str w0, [sp, 4]
.L36:
adrp x0, size
add x0, x0, :lo12:size
ldr w0, [x0]
lsr w1, w0, 31
add w0, w1, w0
asr w0, w0, 1
mov w1, w0
ldr w0, [sp, 4]
cmp w0, w1
blt .L39
nop
nop
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE13:
.size flipHorz, .-flipHorz
.align 2
.global flipDiag
.type flipDiag, %function
flipDiag:
.LFB14:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str wzr, [sp, 4]
b .L41
.L44:
ldr w0, [sp, 4]
str w0, [sp, 8]
b .L42
.L43:
adrp x0, box
add x2, x0, :lo12:box
ldrsw x3, [sp, 8]
ldrsw x1, [sp, 4]
mov x0, x1
lsl x0, x0, 3
add x0, x0, x1
add x0, x0, x3
lsl x0, x0, 3
add x0, x2, x0
ldr w0, [x0]
str w0, [sp, 12]
adrp x0, box
add x2, x0, :lo12:box
ldrsw x3, [sp, 4]
ldrsw x1, [sp, 8]
mov x0, x1
lsl x0, x0, 3
add x0, x0, x1
add x0, x0, x3
lsl x0, x0, 3
add x0, x2, x0
ldr w2, [x0]
adrp x0, box
add x3, x0, :lo12:box
ldrsw x4, [sp, 8]
ldrsw x1, [sp, 4]
mov x0, x1
lsl x0, x0, 3
add x0, x0, x1
add x0, x0, x4
lsl x0, x0, 3
add x0, x3, x0
str w2, [x0]
adrp x0, box
add x2, x0, :lo12:box
ldrsw x3, [sp, 4]
ldrsw x1, [sp, 8]
mov x0, x1
lsl x0, x0, 3
add x0, x0, x1
add x0, x0, x3
lsl x0, x0, 3
add x0, x2, x0
ldr w1, [sp, 12]
str w1, [x0]
ldr w0, [sp, 8]
add w0, w0, 1
str w0, [sp, 8]
.L42:
adrp x0, size
add x0, x0, :lo12:size
ldr w0, [x0]
ldr w1, [sp, 8]
cmp w1, w0
blt .L43
ldr w0, [sp, 4]
add w0, w0, 1
str w0, [sp, 4]
.L41:
adrp x0, size
add x0, x0, :lo12:size
ldr w0, [x0]
ldr w1, [sp, 4]
cmp w1, w0
blt .L44
nop
nop
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE14:
.size flipDiag, .-flipDiag
.align 2
.global rotate90cw
.type rotate90cw, %function
rotate90cw:
.LFB15:
.cfi_startproc
stp x29, x30, [sp, -112]!
.cfi_def_cfa_offset 112
.cfi_offset 29, -112
.cfi_offset 30, -104
mov x29, sp
.cfi_def_cfa_register 29
stp x19, x20, [sp, 16]
stp x21, x22, [sp, 32]
str x23, [sp, 48]
sub sp, sp, #16
.cfi_offset 19, -96
.cfi_offset 20, -88
.cfi_offset 21, -80
.cfi_offset 22, -72
.cfi_offset 23, -64
adrp x20, :got:__stack_chk_guard
ldr x20, [x20, #:got_lo12:__stack_chk_guard]
ldr x21, [x20]
str x21, [x29, 104]
mov x21, 0
mov x20, sp
mov x23, x20
adrp x20, size
add x20, x20, :lo12:size
ldr w20, [x20]
adrp x21, size
add x21, x21, :lo12:size
ldr w21, [x21]
sxtw x22, w20
sub x22, x22, #1
str x22, [x29, 80]
sxtw x22, w20
mov x18, x22
mov x19, 0
lsr x22, x18, 58
lsl x13, x19, 6
orr x13, x22, x13
lsl x12, x18, 6
sxtw x12, w20
lsl x13, x12, 3
sxtw x12, w21
sub x12, x12, #1
str x12, [x29, 88]
sxtw x12, w20
mov x6, x12
mov x7, 0
sxtw x12, w21
mov x4, x12
mov x5, 0
mul x18, x6, x4
umulh x12, x6, x4
madd x12, x7, x4, x12
madd x12, x6, x5, x12
mov x16, x18
mov x17, x12
lsr x4, x16, 58
lsl x11, x17, 6
orr x11, x4, x11
lsl x10, x16, 6
sxtw x4, w20
mov x2, x4
mov x3, 0
sxtw x4, w21
mov x0, x4
mov x1, 0
mul x5, x2, x0
umulh x4, x2, x0
madd x4, x3, x0, x4
madd x4, x2, x1, x4
mov x14, x5
mov x15, x4
lsr x0, x14, 58
lsl x9, x15, 6
orr x9, x0, x9
lsl x8, x14, 6
sxtw x1, w20
sxtw x0, w21
mul x0, x1, x0
lsl x0, x0, 3
add x0, x0, 15
lsr x0, x0, 4
lsl x0, x0, 4
and x1, x0, -65536
sub x1, sp, x1
.L46:
cmp sp, x1
beq .L47
sub sp, sp, #65536
str xzr, [sp, 1024]
b .L46
.L47:
and x1, x0, 65535
sub sp, sp, x1
str xzr, [sp]
and x0, x0, 65535
cmp x0, 1024
bcc .L48
str xzr, [sp, 1024]
.L48:
add x0, sp, 16
add x0, x0, 3
lsr x0, x0, 2
lsl x0, x0, 2
str x0, [x29, 96]
str wzr, [x29, 72]
b .L49
.L52:
str wzr, [x29, 76]
b .L50
.L51:
lsr x4, x13, 2
adrp x0, box
add x2, x0, :lo12:box
ldrsw x3, [x29, 76]
ldrsw x1, [x29, 72]
mov x0, x1
lsl x0, x0, 3
add x0, x0, x1
add x0, x0, x3
lsl x0, x0, 3
add x0, x2, x0
ldr w2, [x0]
ldr x0, [x29, 96]
ldrsw x3, [x29, 76]
ldrsw x1, [x29, 72]
mul x1, x1, x4
lsl x3, x3, 1
add x1, x3, x1
str w2, [x0, x1, lsl 2]
lsr x0, x13, 2
ldr x1, [x29, 96]
ldrsw x2, [x29, 76]
ldrsw x3, [x29, 72]
mul x0, x3, x0
lsl x2, x2, 1
add x0, x2, x0
lsl x0, x0, 2
add x0, x1, x0
str wzr, [x0, 4]
ldr w0, [x29, 76]
add w0, w0, 1
str w0, [x29, 76]
.L50:
adrp x0, size
add x0, x0, :lo12:size
ldr w0, [x0]
ldr w1, [x29, 76]
cmp w1, w0
blt .L51
ldr w0, [x29, 72]
add w0, w0, 1
str w0, [x29, 72]
.L49:
adrp x0, size
add x0, x0, :lo12:size
ldr w0, [x0]
ldr w1, [x29, 72]
cmp w1, w0
blt .L52
str wzr, [x29, 72]
b .L53
.L56:
str wzr, [x29, 76]
b .L54
.L55:
lsr x1, x13, 2
ldr x0, [x29, 96]
ldrsw x2, [x29, 72]
ldrsw x3, [x29, 76]
mul x1, x3, x1
lsl x2, x2, 1
add x1, x2, x1
ldr w2, [x0, x1, lsl 2]
adrp x0, box
add x3, x0, :lo12:box
ldrsw x4, [x29, 76]
ldrsw x1, [x29, 72]
mov x0, x1
lsl x0, x0, 3
add x0, x0, x1
add x0, x0, x4
lsl x0, x0, 3
add x0, x3, x0
str w2, [x0]
ldr w0, [x29, 76]
add w0, w0, 1
str w0, [x29, 76]
.L54:
adrp x0, size
add x0, x0, :lo12:size
ldr w0, [x0]
ldr w1, [x29, 76]
cmp w1, w0
blt .L55
ldr w0, [x29, 72]
add w0, w0, 1
str w0, [x29, 72]
.L53:
adrp x0, size
add x0, x0, :lo12:size
ldr w0, [x0]
ldr w1, [x29, 72]
cmp w1, w0
blt .L56
mov sp, x23
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [x29, 104]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L57
bl __stack_chk_fail
.L57:
mov sp, x29
ldp x19, x20, [sp, 16]
ldp x21, x22, [sp, 32]
ldr x23, [sp, 48]
ldp x29, x30, [sp], 112
.cfi_restore 30
.cfi_restore 29
.cfi_restore 23
.cfi_restore 21
.cfi_restore 22
.cfi_restore 19
.cfi_restore 20
.cfi_def_cfa 31, 0
ret
.cfi_endproc
.LFE15:
.size rotate90cw, .-rotate90cw
.align 2
.global rotate90ccw
.type rotate90ccw, %function
rotate90ccw:
.LFB16:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
bl flipVert
bl rotate90cw
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE16:
.size rotate90ccw, .-rotate90ccw
.align 2
.global replace
.type replace, %function
replace:
.LFB17:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, 12]
str w1, [sp, 8]
str wzr, [sp, 24]
b .L60
.L65:
str wzr, [sp, 28]
b .L61
.L64:
adrp x0, box
add x2, x0, :lo12:box
ldrsw x3, [sp, 28]
ldrsw x1, [sp, 24]
mov x0, x1
lsl x0, x0, 3
add x0, x0, x1
add x0, x0, x3
lsl x0, x0, 3
add x0, x2, x0
ldr w0, [x0]
ldr w1, [sp, 12]
cmp w1, w0
bne .L62
adrp x0, box
add x2, x0, :lo12:box
ldrsw x3, [sp, 28]
ldrsw x1, [sp, 24]
mov x0, x1
lsl x0, x0, 3
add x0, x0, x1
add x0, x0, x3
lsl x0, x0, 3
add x0, x2, x0
ldr w1, [sp, 8]
str w1, [x0]
b .L63
.L62:
adrp x0, box
add x2, x0, :lo12:box
ldrsw x3, [sp, 28]
ldrsw x1, [sp, 24]
mov x0, x1
lsl x0, x0, 3
add x0, x0, x1
add x0, x0, x3
lsl x0, x0, 3
add x0, x2, x0
ldr w0, [x0]
ldr w1, [sp, 8]
cmp w1, w0
bne .L63
adrp x0, box
add x2, x0, :lo12:box
ldrsw x3, [sp, 28]
ldrsw x1, [sp, 24]
mov x0, x1
lsl x0, x0, 3
add x0, x0, x1
add x0, x0, x3
lsl x0, x0, 3
add x0, x2, x0
ldr w1, [sp, 12]
str w1, [x0]
.L63:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L61:
adrp x0, size
add x0, x0, :lo12:size
ldr w0, [x0]
ldr w1, [sp, 28]
cmp w1, w0
blt .L64
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L60:
adrp x0, size
add x0, x0, :lo12:size
ldr w0, [x0]
ldr w1, [sp, 24]
cmp w1, w0
blt .L65
nop
nop
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE17:
.size replace, .-replace
.align 2
.global generate
.type generate, %function
generate:
.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 x19, [sp, 16]
.cfi_offset 19, -32
str wzr, [sp, 36]
b .L67
.L87:
bl rand
mov w1, w0
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 w0, w1, w0
str w0, [sp, 40]
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 w0, w1, w0
str w0, [sp, 44]
ldr w0, [sp, 40]
cmp w0, 9
beq .L68
ldr w0, [sp, 40]
cmp w0, 9
bgt .L69
ldr w0, [sp, 40]
cmp w0, 8
beq .L70
ldr w0, [sp, 40]
cmp w0, 8
bgt .L69
ldr w0, [sp, 40]
cmp w0, 7
beq .L71
ldr w0, [sp, 40]
cmp w0, 7
bgt .L69
ldr w0, [sp, 40]
cmp w0, 6
beq .L72
ldr w0, [sp, 40]
cmp w0, 6
bgt .L69
ldr w0, [sp, 40]
cmp w0, 5
beq .L73
ldr w0, [sp, 40]
cmp w0, 5
bgt .L69
ldr w0, [sp, 40]
cmp w0, 4
beq .L74
ldr w0, [sp, 40]
cmp w0, 4
bgt .L69
ldr w0, [sp, 40]
cmp w0, 3
beq .L75
ldr w0, [sp, 40]
cmp w0, 3
bgt .L69
ldr w0, [sp, 40]
cmp w0, 2
beq .L76
ldr w0, [sp, 40]
cmp w0, 2
bgt .L69
ldr w0, [sp, 40]
cmp w0, 0
beq .L77
ldr w0, [sp, 40]
cmp w0, 1
beq .L78
b .L69
.L77:
ldr w0, [sp, 44]
cmp w0, 2
beq .L79
ldr w0, [sp, 44]
cmp w0, 2
bgt .L88
ldr w0, [sp, 44]
cmp w0, 0
beq .L81
ldr w0, [sp, 44]
cmp w0, 1
beq .L82
b .L88
.L81:
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 w19, w2, w0
mov w0, w19
lsl w0, w0, 1
add w0, w0, w19
sub w19, w1, w0
bl rand
mov w2, w0
mov w0, 21846
movk w0, 0x5555, lsl 16
smull x0, w2, w0
lsr x1, x0, 32
asr w0, w2, 31
sub w1, w1, w0
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
sub w1, w2, w0
mov w0, w19
bl swapLittleRow
b .L80
.L82:
bl rand
mov w2, w0
mov w0, 21846
movk w0, 0x5555, lsl 16
smull x0, w2, w0
lsr x1, x0, 32
asr w0, w2, 31
sub w1, w1, w0
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
sub w1, w2, w0
add w19, w1, 3
bl rand
mov w2, w0
mov w0, 21846
movk w0, 0x5555, lsl 16
smull x0, w2, w0
lsr x1, x0, 32
asr w0, w2, 31
sub w1, w1, w0
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
sub w1, w2, w0
add w0, w1, 3
mov w1, w0
mov w0, w19
bl swapLittleRow
b .L80
.L79:
bl rand
mov w2, w0
mov w0, 21846
movk w0, 0x5555, lsl 16
smull x0, w2, w0
lsr x1, x0, 32
asr w0, w2, 31
sub w1, w1, w0
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
sub w1, w2, w0
add w19, w1, 6
bl rand
mov w2, w0
mov w0, 21846
movk w0, 0x5555, lsl 16
smull x0, w2, w0
lsr x1, x0, 32
asr w0, w2, 31
sub w1, w1, w0
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
sub w1, w2, w0
add w0, w1, 6
mov w1, w0
mov w0, w19
bl swapLittleRow
nop
.L80:
b .L88
.L78:
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 w19, w2, w0
mov w0, w19
lsl w0, w0, 1
add w0, w0, w19
sub w19, w1, w0
bl rand
mov w2, w0
mov w0, 21846
movk w0, 0x5555, lsl 16
smull x0, w2, w0
lsr x1, x0, 32
asr w0, w2, 31
sub w1, w1, w0
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
sub w1, w2, w0
mov w0, w19
bl swapBigRow
b .L69
.L76:
ldr w0, [sp, 44]
cmp w0, 2
beq .L83
ldr w0, [sp, 44]
cmp w0, 2
bgt .L89
ldr w0, [sp, 44]
cmp w0, 0
beq .L85
ldr w0, [sp, 44]
cmp w0, 1
beq .L86
b .L89
.L85:
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 w19, w2, w0
mov w0, w19
lsl w0, w0, 1
add w0, w0, w19
sub w19, w1, w0
bl rand
mov w2, w0
mov w0, 21846
movk w0, 0x5555, lsl 16
smull x0, w2, w0
lsr x1, x0, 32
asr w0, w2, 31
sub w1, w1, w0
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
sub w1, w2, w0
mov w0, w19
bl swapLittleCol
b .L84
.L86:
bl rand
mov w2, w0
mov w0, 21846
movk w0, 0x5555, lsl 16
smull x0, w2, w0
lsr x1, x0, 32
asr w0, w2, 31
sub w1, w1, w0
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
sub w1, w2, w0
add w19, w1, 3
bl rand
mov w2, w0
mov w0, 21846
movk w0, 0x5555, lsl 16
smull x0, w2, w0
lsr x1, x0, 32
asr w0, w2, 31
sub w1, w1, w0
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
sub w1, w2, w0
add w0, w1, 3
mov w1, w0
mov w0, w19
bl swapLittleCol
b .L84
.L83:
bl rand
mov w2, w0
mov w0, 21846
movk w0, 0x5555, lsl 16
smull x0, w2, w0
lsr x1, x0, 32
asr w0, w2, 31
sub w1, w1, w0
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
sub w1, w2, w0
add w19, w1, 6
bl rand
mov w2, w0
mov w0, 21846
movk w0, 0x5555, lsl 16
smull x0, w2, w0
lsr x1, x0, 32
asr w0, w2, 31
sub w1, w1, w0
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
sub w1, w2, w0
add w0, w1, 6
mov w1, w0
mov w0, w19
bl swapLittleCol
nop
.L84:
b .L89
.L75:
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 w19, w2, w0
mov w0, w19
lsl w0, w0, 1
add w0, w0, w19
sub w19, w1, w0
bl rand
mov w2, w0
mov w0, 21846
movk w0, 0x5555, lsl 16
smull x0, w2, w0
lsr x1, x0, 32
asr w0, w2, 31
sub w1, w1, w0
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
sub w1, w2, w0
mov w0, w19
bl swapBigCol
b .L69
.L74:
bl flipVert
b .L69
.L73:
bl flipHorz
b .L69
.L72:
bl flipDiag
b .L69
.L71:
bl rotate90cw
b .L69
.L70:
bl rotate90ccw
b .L69
.L68:
bl rand
mov w2, w0
mov w0, 36409
movk w0, 0x38e3, 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, 3
add w0, w0, w1
sub w1, w2, w0
add w19, w1, 1
bl rand
mov w2, w0
mov w0, 36409
movk w0, 0x38e3, 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, 3
add w0, w0, w1
sub w1, w2, w0
add w0, w1, 1
mov w1, w0
mov w0, w19
bl replace
b .L69
.L88:
nop
b .L69
.L89:
nop
.L69:
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L67:
ldr w0, [sp, 36]
cmp w0, 9
ble .L87
adrp x0, .LC2
ldr d0, [x0, #:lo12:.LC2]
bl printSudoku
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
.LFE18:
.size generate, .-generate
.align 2
.global main
.type main, %function
main:
.LFB19:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
bl initialize
mov x0, 0
bl time
bl srand
.L91:
bl generate
b .L91
.cfi_endproc
.LFE19:
.size main, .-main
.section .rodata
.align 3
.LC2:
.word 1374389535
.word 1071980216
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.local sBegin
.comm sBegin,144,8
.local enableTimer
.comm enableTimer,4,4
.align 2
.type beginTimer, %function
beginTimer:
.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, enableTimer
add x0, x0, :lo12:enableTimer
ldr w0, [x0]
cmp w0, 0
beq .L4
adrp x0, sBegin
add x1, x0, :lo12:sBegin
mov w0, 0
bl getrusage
nop
.L4:
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size beginTimer, .-beginTimer
.align 2
.type timeDiff, %function
timeDiff:
.LFB1:
.cfi_startproc
sub sp, sp, #160
.cfi_def_cfa_offset 160
str x0, [sp, 8]
str x1, [sp]
ldr x0, [sp, 8]
str x0, [sp, 24]
ldr x0, [sp, 24]
ldr x0, [x0]
str x0, [sp, 32]
ldr x0, [sp]
str x0, [sp, 40]
ldr x0, [sp, 40]
ldr x0, [x0]
str x0, [sp, 48]
ldr x1, [sp, 48]
ldr x0, [sp, 32]
sub x0, x1, x0
str x0, [sp, 56]
ldr d0, [sp, 56]
scvtf d0, d0
str d0, [sp, 64]
ldr x0, [sp, 8]
str x0, [sp, 72]
ldr x0, [sp, 72]
add x0, x0, 8
str x0, [sp, 80]
ldr x0, [sp, 80]
str x0, [sp, 88]
ldr x0, [sp, 88]
ldr x0, [x0]
str x0, [sp, 96]
ldr x0, [sp]
str x0, [sp, 104]
ldr x0, [sp, 104]
add x0, x0, 8
str x0, [sp, 112]
ldr x0, [sp, 112]
str x0, [sp, 120]
ldr x0, [sp, 120]
ldr x0, [x0]
str x0, [sp, 128]
ldr x1, [sp, 128]
ldr x0, [sp, 96]
sub x0, x1, x0
str x0, [sp, 136]
ldr d0, [sp, 136]
scvtf d0, d0
str d0, [sp, 144]
ldr d0, [sp, 144]
adrp x0, .LC0
ldr d1, [x0, #:lo12:.LC0]
fmul d0, d0, d1
str d0, [sp, 152]
ldr d1, [sp, 152]
ldr d0, [sp, 64]
fadd d0, d1, d0
add sp, sp, 160
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size timeDiff, .-timeDiff
.section .rodata
.align 3
.LC1:
.string "CPU Time: user %f sys %f\n"
.text
.align 2
.type endTimer, %function
endTimer:
.LFB2:
.cfi_startproc
stp x29, x30, [sp, -256]!
.cfi_def_cfa_offset 256
.cfi_offset 29, -256
.cfi_offset 30, -248
mov x29, sp
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, enableTimer
add x0, x0, :lo12:enableTimer
ldr w0, [x0]
cmp w0, 0
beq .L11
add x0, sp, 104
mov x1, x0
mov w0, 0
bl getrusage
adrp x0, sBegin
add x0, x0, :lo12:sBegin
add x0, x0, 16
str x0, [sp, 16]
ldr x0, [sp, 16]
str x0, [sp, 24]
add x0, sp, 104
add x0, x0, 16
str x0, [sp, 32]
ldr x0, [sp, 32]
str x0, [sp, 40]
ldr x1, [sp, 40]
ldr x0, [sp, 24]
bl timeDiff
str d0, [sp, 48]
adrp x0, sBegin
add x0, x0, :lo12:sBegin
str x0, [sp, 56]
ldr x0, [sp, 56]
str x0, [sp, 64]
add x0, sp, 104
str x0, [sp, 72]
ldr x0, [sp, 72]
str x0, [sp, 80]
ldr x1, [sp, 80]
ldr x0, [sp, 64]
bl timeDiff
str d0, [sp, 88]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
str x0, [sp, 96]
ldr d1, [sp, 48]
ldr d0, [sp, 88]
ldr x0, [sp, 96]
bl printf
nop
.L11:
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 248]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L10
bl __stack_chk_fail
.L10:
ldp x29, x30, [sp], 256
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size endTimer, .-endTimer
.local bail_on_error
.comm bail_on_error,4,4
.data
.align 2
.type stdin_is_interactive, %object
.size stdin_is_interactive, 4
stdin_is_interactive:
.word 1
.local db
.comm db,8,8
.local seenInterrupt
.comm seenInterrupt,4,4
.local Argv0
.comm Argv0,8,8
.local mainPrompt
.comm mainPrompt,20,8
.local continuePrompt
.comm continuePrompt,20,8
.text
.align 2
.type isNumber, %function
isNumber:
.LFB3:
.cfi_startproc
stp x29, x30, [sp, -288]!
.cfi_def_cfa_offset 288
.cfi_offset 29, -288
.cfi_offset 30, -280
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
ldr x0, [sp, 24]
ldrb w0, [x0]
strb w0, [sp, 38]
ldrb w0, [sp, 38]
str w0, [sp, 64]
ldr w0, [sp, 64]
cmp w0, 45
bne .L13
ldr x0, [sp, 24]
add x0, x0, 1
str x0, [sp, 24]
b .L14
.L13:
ldr x0, [sp, 24]
ldrb w0, [x0]
strb w0, [sp, 39]
ldrb w0, [sp, 39]
str w0, [sp, 68]
ldr w0, [sp, 68]
cmp w0, 43
bne .L14
ldr x0, [sp, 24]
add x0, x0, 1
str x0, [sp, 24]
.L14:
bl __ctype_b_loc
str x0, [sp, 144]
ldr x0, [sp, 24]
ldrb w0, [x0]
strb w0, [sp, 40]
ldrb w0, [sp, 40]
str w0, [sp, 72]
ldr x0, [sp, 144]
ldr x0, [x0]
str x0, [sp, 152]
ldrsw x0, [sp, 72]
lsl x0, x0, 1
ldr x1, [sp, 152]
add x0, x1, x0
str x0, [sp, 160]
ldr x0, [sp, 160]
ldrh w0, [x0]
strh w0, [sp, 52]
ldrh w0, [sp, 52]
str w0, [sp, 76]
ldr w0, [sp, 76]
and w0, w0, 2048
cmp w0, 0
bne .L15
mov w0, 0
b .L16
.L15:
ldr x0, [sp, 24]
add x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 16]
cmp x0, 0
beq .L36
ldr x0, [sp, 16]
str wzr, [x0]
b .L20
.L36:
nop
.L17:
.L20:
bl __ctype_b_loc
str x0, [sp, 168]
ldr x0, [sp, 24]
ldrb w0, [x0]
strb w0, [sp, 41]
ldrb w0, [sp, 41]
str w0, [sp, 80]
ldr x0, [sp, 168]
ldr x0, [x0]
str x0, [sp, 176]
ldrsw x0, [sp, 80]
lsl x0, x0, 1
ldr x1, [sp, 176]
add x0, x1, x0
str x0, [sp, 184]
ldr x0, [sp, 184]
ldrh w0, [x0]
strh w0, [sp, 54]
ldrh w0, [sp, 54]
str w0, [sp, 84]
ldr w0, [sp, 84]
and w0, w0, 2048
cmp w0, 0
beq .L37
ldr x0, [sp, 24]
add x0, x0, 1
str x0, [sp, 24]
b .L20
.L37:
nop
.L19:
ldr x0, [sp, 24]
ldrb w0, [x0]
strb w0, [sp, 42]
ldrb w0, [sp, 42]
str w0, [sp, 88]
ldr w0, [sp, 88]
cmp w0, 46
bne .L21
ldr x0, [sp, 24]
add x0, x0, 1
str x0, [sp, 24]
bl __ctype_b_loc
str x0, [sp, 192]
ldr x0, [sp, 24]
ldrb w0, [x0]
strb w0, [sp, 43]
ldrb w0, [sp, 43]
str w0, [sp, 92]
ldr x0, [sp, 192]
ldr x0, [x0]
str x0, [sp, 200]
ldrsw x0, [sp, 92]
lsl x0, x0, 1
ldr x1, [sp, 200]
add x0, x1, x0
str x0, [sp, 208]
ldr x0, [sp, 208]
ldrh w0, [x0]
strh w0, [sp, 56]
ldrh w0, [sp, 56]
str w0, [sp, 96]
ldr w0, [sp, 96]
and w0, w0, 2048
cmp w0, 0
bne .L22
mov w0, 0
b .L16
.L22:
bl __ctype_b_loc
str x0, [sp, 216]
ldr x0, [sp, 24]
ldrb w0, [x0]
strb w0, [sp, 44]
ldrb w0, [sp, 44]
str w0, [sp, 100]
ldr x0, [sp, 216]
ldr x0, [x0]
str x0, [sp, 224]
ldrsw x0, [sp, 100]
lsl x0, x0, 1
ldr x1, [sp, 224]
add x0, x1, x0
str x0, [sp, 232]
ldr x0, [sp, 232]
ldrh w0, [x0]
strh w0, [sp, 58]
ldrh w0, [sp, 58]
str w0, [sp, 104]
ldr w0, [sp, 104]
and w0, w0, 2048
cmp w0, 0
beq .L38
ldr x0, [sp, 24]
add x0, x0, 1
str x0, [sp, 24]
b .L22
.L38:
nop
.L24:
ldr x0, [sp, 16]
cmp x0, 0
beq .L21
ldr x0, [sp, 16]
mov w1, 1
str w1, [x0]
.L21:
ldr x0, [sp, 24]
ldrb w0, [x0]
strb w0, [sp, 45]
ldrb w0, [sp, 45]
str w0, [sp, 108]
ldr w0, [sp, 108]
cmp w0, 101
beq .L39
ldr x0, [sp, 24]
ldrb w0, [x0]
strb w0, [sp, 46]
ldrb w0, [sp, 46]
str w0, [sp, 112]
ldr w0, [sp, 112]
cmp w0, 69
bne .L27
b .L26
.L39:
nop
.L26:
ldr x0, [sp, 24]
add x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
ldrb w0, [x0]
strb w0, [sp, 47]
ldrb w0, [sp, 47]
str w0, [sp, 116]
ldr w0, [sp, 116]
cmp w0, 43
bne .L28
ldr x0, [sp, 24]
add x0, x0, 1
str x0, [sp, 24]
b .L29
.L28:
ldr x0, [sp, 24]
ldrb w0, [x0]
strb w0, [sp, 48]
ldrb w0, [sp, 48]
str w0, [sp, 120]
ldr w0, [sp, 120]
cmp w0, 45
bne .L29
ldr x0, [sp, 24]
add x0, x0, 1
str x0, [sp, 24]
.L29:
bl __ctype_b_loc
str x0, [sp, 240]
ldr x0, [sp, 24]
ldrb w0, [x0]
strb w0, [sp, 49]
ldrb w0, [sp, 49]
str w0, [sp, 124]
ldr x0, [sp, 240]
ldr x0, [x0]
str x0, [sp, 248]
ldrsw x0, [sp, 124]
lsl x0, x0, 1
ldr x1, [sp, 248]
add x0, x1, x0
str x0, [sp, 256]
ldr x0, [sp, 256]
ldrh w0, [x0]
strh w0, [sp, 60]
ldrh w0, [sp, 60]
str w0, [sp, 128]
ldr w0, [sp, 128]
and w0, w0, 2048
cmp w0, 0
bne .L30
mov w0, 0
b .L16
.L30:
bl __ctype_b_loc
str x0, [sp, 264]
ldr x0, [sp, 24]
ldrb w0, [x0]
strb w0, [sp, 50]
ldrb w0, [sp, 50]
str w0, [sp, 132]
ldr x0, [sp, 264]
ldr x0, [x0]
str x0, [sp, 272]
ldrsw x0, [sp, 132]
lsl x0, x0, 1
ldr x1, [sp, 272]
add x0, x1, x0
str x0, [sp, 280]
ldr x0, [sp, 280]
ldrh w0, [x0]
strh w0, [sp, 62]
ldrh w0, [sp, 62]
str w0, [sp, 136]
ldr w0, [sp, 136]
and w0, w0, 2048
cmp w0, 0
beq .L40
ldr x0, [sp, 24]
add x0, x0, 1
str x0, [sp, 24]
b .L30
.L40:
nop
.L32:
ldr x0, [sp, 16]
cmp x0, 0
beq .L27
ldr x0, [sp, 16]
mov w1, 1
str w1, [x0]
.L27:
ldr x0, [sp, 24]
ldrb w0, [x0]
strb w0, [sp, 51]
ldrb w0, [sp, 51]
str w0, [sp, 140]
ldr w0, [sp, 140]
cmp w0, 0
cset w0, eq
and w0, w0, 255
.L16:
ldp x29, x30, [sp], 288
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE3:
.size isNumber, .-isNumber
.local zShellStatic
.comm zShellStatic,8,8
.section .rodata
.align 3
.LC2:
.string "shellstaticFunc"
.align 3
.LC3:
.string "shell.c"
.align 3
.LC4:
.string "0==argc"
.align 3
.LC5:
.string "zShellStatic"
.text
.align 2
.type shellstaticFunc, %function
shellstaticFunc:
.LFB4:
.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 x2, [sp, 24]
ldr w0, [sp, 36]
cmp w0, 0
beq .L42
adrp x0, .LC2
add x3, x0, :lo12:.LC2
mov w2, 217
adrp x0, .LC3
add x1, x0, :lo12:.LC3
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl __assert_fail
.L42:
adrp x0, zShellStatic
add x0, x0, :lo12:zShellStatic
ldr x0, [x0]
cmp x0, 0
bne .L43
adrp x0, .LC2
add x3, x0, :lo12:.LC2
mov w2, 218
adrp x0, .LC3
add x1, x0, :lo12:.LC3
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl __assert_fail
.L43:
str xzr, [sp, 56]
adrp x0, zShellStatic
add x0, x0, :lo12:zShellStatic
ldr x0, [x0]
ldr x3, [sp, 56]
mov w2, -1
mov x1, x0
ldr x0, [sp, 40]
bl sqlite3_result_text
nop
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE4:
.size shellstaticFunc, .-shellstaticFunc
.section .rodata
.align 3
.LC6:
.string "%s"
.text
.align 2
.type local_getline, %function
local_getline:
.LFB5:
.cfi_startproc
stp x29, x30, [sp, -304]!
.cfi_def_cfa_offset 304
.cfi_offset 29, -304
.cfi_offset 30, -296
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
ldr x0, [sp, 24]
cmp x0, 0
beq .L46
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 0
beq .L46
adrp x0, .LC6
add x0, x0, :lo12:.LC6
str x0, [sp, 88]
ldr x1, [sp, 24]
ldr x0, [sp, 88]
bl printf
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
bl fflush
.L46:
mov w0, 100
str w0, [sp, 44]
ldrsw x0, [sp, 44]
str x0, [sp, 96]
ldr x0, [sp, 96]
bl malloc
str x0, [sp, 104]
ldr x0, [sp, 104]
str x0, [sp, 80]
str xzr, [sp, 112]
ldr x0, [sp, 112]
str x0, [sp, 120]
ldr x0, [sp, 80]
str x0, [sp, 128]
ldr x1, [sp, 128]
ldr x0, [sp, 120]
cmp x1, x0
bne .L47
mov x0, 0
b .L48
.L47:
str wzr, [sp, 48]
str wzr, [sp, 52]
.L49:
ldr w0, [sp, 52]
cmp w0, 0
bne .L59
ldr w0, [sp, 48]
add w0, w0, 100
str w0, [sp, 56]
ldr w1, [sp, 56]
ldr w0, [sp, 44]
cmp w1, w0
ble .L52
ldr w0, [sp, 44]
lsl w0, w0, 1
str w0, [sp, 60]
ldr w0, [sp, 60]
add w0, w0, 100
str w0, [sp, 44]
ldr x0, [sp, 80]
str x0, [sp, 136]
ldrsw x0, [sp, 44]
str x0, [sp, 144]
ldr x1, [sp, 144]
ldr x0, [sp, 136]
bl realloc
str x0, [sp, 152]
ldr x0, [sp, 152]
str x0, [sp, 80]
str xzr, [sp, 160]
ldr x0, [sp, 160]
str x0, [sp, 168]
ldr x0, [sp, 80]
str x0, [sp, 176]
ldr x1, [sp, 176]
ldr x0, [sp, 168]
cmp x1, x0
bne .L52
mov x0, 0
b .L48
.L52:
ldrsw x0, [sp, 48]
ldr x1, [sp, 80]
add x0, x1, x0
str x0, [sp, 184]
ldr x0, [sp, 184]
str x0, [sp, 192]
ldr w1, [sp, 44]
ldr w0, [sp, 48]
sub w0, w1, w0
str w0, [sp, 64]
ldr x0, [sp, 16]
str x0, [sp, 200]
ldr x2, [sp, 200]
ldr w1, [sp, 64]
ldr x0, [sp, 192]
bl fgets
str x0, [sp, 208]
str xzr, [sp, 216]
ldr x0, [sp, 216]
str x0, [sp, 224]
ldr x0, [sp, 208]
str x0, [sp, 232]
ldr x1, [sp, 232]
ldr x0, [sp, 224]
cmp x1, x0
bne .L60
ldr w0, [sp, 48]
cmp w0, 0
bne .L54
ldr x0, [sp, 80]
str x0, [sp, 272]
ldr x0, [sp, 272]
bl free
mov x0, 0
b .L48
.L54:
ldrsw x0, [sp, 48]
ldr x1, [sp, 80]
add x0, x1, x0
str x0, [sp, 264]
ldr x0, [sp, 264]
strb wzr, [x0]
mov w0, 1
str w0, [sp, 52]
b .L51
.L60:
nop
.L53:
ldrsw x0, [sp, 48]
ldr x1, [sp, 80]
add x0, x1, x0
str x0, [sp, 240]
ldr x0, [sp, 240]
ldrb w0, [x0]
cmp w0, 0
beq .L61
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
b .L60
.L61:
nop
.L56:
ldr w0, [sp, 48]
cmp w0, 0
ble .L49
ldr w0, [sp, 48]
sub w0, w0, #1
str w0, [sp, 68]
ldrsw x0, [sp, 68]
ldr x1, [sp, 80]
add x0, x1, x0
str x0, [sp, 248]
ldr x0, [sp, 248]
ldrb w0, [x0]
strb w0, [sp, 43]
ldrb w0, [sp, 43]
str w0, [sp, 72]
ldr w0, [sp, 72]
cmp w0, 10
bne .L49
ldr w0, [sp, 48]
sub w0, w0, #1
str w0, [sp, 48]
ldrsw x0, [sp, 48]
ldr x1, [sp, 80]
add x0, x1, x0
str x0, [sp, 256]
ldr x0, [sp, 256]
strb wzr, [x0]
mov w0, 1
str w0, [sp, 52]
b .L49
.L59:
nop
.L51:
ldr x0, [sp, 80]
str x0, [sp, 280]
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 76]
ldrsw x0, [sp, 76]
str x0, [sp, 288]
ldr x1, [sp, 288]
ldr x0, [sp, 280]
bl realloc
str x0, [sp, 296]
ldr x0, [sp, 296]
str x0, [sp, 80]
ldr x0, [sp, 80]
.L48:
ldp x29, x30, [sp], 304
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE5:
.size local_getline, .-local_getline
.align 2
.type one_input_line, %function
one_input_line:
.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, 24]
str x1, [sp, 16]
str xzr, [sp, 40]
ldr x0, [sp, 40]
str x0, [sp, 48]
ldr x0, [sp, 16]
str x0, [sp, 56]
ldr x1, [sp, 56]
ldr x0, [sp, 48]
cmp x1, x0
beq .L63
str xzr, [sp, 128]
ldr x1, [sp, 16]
ldr x0, [sp, 128]
bl local_getline
str x0, [sp, 136]
ldr x0, [sp, 136]
b .L64
.L63:
ldr x0, [sp, 24]
cmp x0, 0
beq .L65
ldr x0, [sp, 24]
str x0, [sp, 80]
ldr x0, [sp, 80]
ldrb w0, [x0]
cmp w0, 0
beq .L66
str xzr, [sp, 104]
adrp x0, continuePrompt
add x0, x0, :lo12:continuePrompt
ldr x1, [sp, 104]
add x0, x1, x0
str x0, [sp, 112]
ldr x0, [sp, 112]
str x0, [sp, 32]
b .L67
.L66:
str xzr, [sp, 88]
adrp x0, mainPrompt
add x0, x0, :lo12:mainPrompt
ldr x1, [sp, 88]
add x0, x1, x0
str x0, [sp, 96]
ldr x0, [sp, 96]
str x0, [sp, 32]
b .L67
.L65:
str xzr, [sp, 64]
adrp x0, mainPrompt
add x0, x0, :lo12:mainPrompt
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 72]
ldr x0, [sp, 72]
str x0, [sp, 32]
.L67:
adrp x0, :got:stdin
ldr x0, [x0, #:got_lo12:stdin]
ldr x0, [x0]
mov x1, x0
ldr x0, [sp, 32]
bl local_getline
str x0, [sp, 120]
ldr x0, [sp, 120]
.L64:
ldp x29, x30, [sp], 144
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size one_input_line, .-one_input_line
.section .rodata
.align 3
.LC7:
.string "line"
.align 3
.LC8:
.string "column"
.align 3
.LC9:
.string "list"
.align 3
.LC10:
.string "semi"
.align 3
.LC11:
.string "html"
.align 3
.LC12:
.string "insert"
.align 3
.LC13:
.string "tcl"
.align 3
.LC14:
.string "csv"
.align 3
.LC15:
.string "explain"
.section .data.rel.local,"aw"
.align 3
.type modeDescr, %object
.size modeDescr, 72
modeDescr:
.xword .LC7
.xword .LC8
.xword .LC9
.xword .LC10
.xword .LC11
.xword .LC12
.xword .LC13
.xword .LC14
.xword .LC15
.section .rodata
.align 3
.LC16:
.string "'%s'"
.align 3
.LC17:
.string "'"
.align 3
.LC18:
.string "''"
.align 3
.LC19:
.string "%.*s''"
.text
.align 2
.type output_quoted_string, %function
output_quoted_string:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -208]!
.cfi_def_cfa_offset 208
.cfi_offset 29, -208
.cfi_offset 30, -200
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
str wzr, [sp, 52]
str wzr, [sp, 48]
.L69:
ldrsw x0, [sp, 48]
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 72]
ldr x0, [sp, 72]
ldrb w0, [x0]
cmp w0, 0
beq .L87
ldrsw x0, [sp, 48]
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 200]
ldr x0, [sp, 200]
ldrb w0, [x0]
strb w0, [sp, 47]
ldrb w0, [sp, 47]
str w0, [sp, 68]
ldr w0, [sp, 68]
cmp w0, 39
bne .L72
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
.L72:
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
b .L69
.L87:
nop
.L71:
ldr w0, [sp, 52]
cmp w0, 0
bne .L73
ldr x0, [sp, 24]
str x0, [sp, 184]
adrp x0, .LC16
add x0, x0, :lo12:.LC16
str x0, [sp, 192]
ldr x2, [sp, 16]
ldr x1, [sp, 192]
ldr x0, [sp, 184]
bl fprintf
b .L68
.L73:
ldr x0, [sp, 24]
str x0, [sp, 80]
adrp x0, .LC17
add x0, x0, :lo12:.LC17
str x0, [sp, 88]
ldr x1, [sp, 88]
ldr x0, [sp, 80]
bl fprintf
.L75:
ldr x0, [sp, 16]
ldrb w0, [x0]
cmp w0, 0
beq .L88
str wzr, [sp, 48]
.L78:
ldrsw x0, [sp, 48]
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 96]
ldr x0, [sp, 96]
ldrb w0, [x0]
cmp w0, 0
beq .L89
ldrsw x0, [sp, 48]
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 104]
ldr x0, [sp, 104]
ldrb w0, [x0]
strb w0, [sp, 45]
ldrb w0, [sp, 45]
str w0, [sp, 56]
ldr w0, [sp, 56]
cmp w0, 39
beq .L90
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
b .L78
.L89:
nop
b .L81
.L90:
nop
.L81:
ldr w0, [sp, 48]
cmp w0, 0
bne .L82
ldr x0, [sp, 24]
str x0, [sp, 152]
adrp x0, .LC18
add x0, x0, :lo12:.LC18
str x0, [sp, 160]
ldr x1, [sp, 160]
ldr x0, [sp, 152]
bl fprintf
ldr x0, [sp, 16]
add x0, x0, 1
str x0, [sp, 16]
b .L75
.L82:
ldrsw x0, [sp, 48]
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 112]
ldr x0, [sp, 112]
ldrb w0, [x0]
strb w0, [sp, 46]
ldrb w0, [sp, 46]
str w0, [sp, 60]
ldr w0, [sp, 60]
cmp w0, 39
bne .L84
ldr x0, [sp, 24]
str x0, [sp, 136]
adrp x0, .LC19
add x0, x0, :lo12:.LC19
str x0, [sp, 144]
ldr x3, [sp, 16]
ldr w2, [sp, 48]
ldr x1, [sp, 144]
ldr x0, [sp, 136]
bl fprintf
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 64]
ldrsw x0, [sp, 64]
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 16]
b .L75
.L84:
ldr x0, [sp, 24]
str x0, [sp, 120]
adrp x0, .LC6
add x0, x0, :lo12:.LC6
str x0, [sp, 128]
ldr x2, [sp, 16]
ldr x1, [sp, 128]
ldr x0, [sp, 120]
bl fprintf
b .L77
.L88:
nop
.L77:
ldr x0, [sp, 24]
str x0, [sp, 168]
adrp x0, .LC17
add x0, x0, :lo12:.LC17
str x0, [sp, 176]
ldr x1, [sp, 176]
ldr x0, [sp, 168]
bl fprintf
nop
.L68:
ldp x29, x30, [sp], 208
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size output_quoted_string, .-output_quoted_string
.section .rodata
.align 3
.LC20:
.string "\\%03o"
.text
.align 2
.type output_c_string, %function
output_c_string:
.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 x0, [sp, 24]
str x1, [sp, 16]
ldr x1, [sp, 24]
mov w0, 34
bl fputc
.L92:
ldr x0, [sp, 16]
str x0, [sp, 64]
ldr x0, [sp, 16]
add x0, x0, 1
str x0, [sp, 16]
ldr x0, [sp, 64]
ldrb w0, [x0]
strb w0, [sp, 33]
ldrb w0, [sp, 33]
str w0, [sp, 36]
ldr w0, [sp, 36]
cmp w0, 0
beq .L103
ldr w0, [sp, 36]
cmp w0, 92
bne .L95
ldr w0, [sp, 36]
str w0, [sp, 56]
ldr x1, [sp, 24]
ldr w0, [sp, 56]
bl fputc
ldr w0, [sp, 36]
str w0, [sp, 60]
ldr x1, [sp, 24]
ldr w0, [sp, 60]
bl fputc
b .L92
.L95:
ldr w0, [sp, 36]
cmp w0, 9
bne .L97
ldr x1, [sp, 24]
mov w0, 92
bl fputc
ldr x1, [sp, 24]
mov w0, 116
bl fputc
b .L92
.L97:
ldr w0, [sp, 36]
cmp w0, 10
bne .L98
ldr x1, [sp, 24]
mov w0, 92
bl fputc
ldr x1, [sp, 24]
mov w0, 110
bl fputc
b .L92
.L98:
ldr w0, [sp, 36]
cmp w0, 13
bne .L99
ldr x1, [sp, 24]
mov w0, 92
bl fputc
ldr x1, [sp, 24]
mov w0, 114
bl fputc
b .L92
.L99:
bl __ctype_b_loc
str x0, [sp, 72]
ldr w0, [sp, 36]
str w0, [sp, 40]
ldr x0, [sp, 72]
ldr x0, [x0]
str x0, [sp, 80]
ldrsw x0, [sp, 40]
lsl x0, x0, 1
ldr x1, [sp, 80]
add x0, x1, x0
str x0, [sp, 88]
ldr x0, [sp, 88]
ldrh w0, [x0]
strh w0, [sp, 34]
ldrh w0, [sp, 34]
str w0, [sp, 44]
ldr w0, [sp, 44]
and w0, w0, 16384
cmp w0, 0
beq .L100
ldr w0, [sp, 36]
str w0, [sp, 52]
ldr x1, [sp, 24]
ldr w0, [sp, 52]
bl fputc
b .L92
.L100:
ldr x0, [sp, 24]
str x0, [sp, 96]
adrp x0, .LC20
add x0, x0, :lo12:.LC20
str x0, [sp, 104]
ldr w0, [sp, 36]
and w0, w0, 255
str w0, [sp, 48]
ldr w2, [sp, 48]
ldr x1, [sp, 104]
ldr x0, [sp, 96]
bl fprintf
b .L92
.L103:
nop
.L94:
ldr x1, [sp, 24]
mov w0, 34
bl fputc
nop
ldp x29, x30, [sp], 112
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size output_c_string, .-output_c_string
.section .rodata
.align 3
.LC21:
.string "%.*s"
.align 3
.LC22:
.string "<"
.align 3
.LC23:
.string "&"
.text
.align 2
.type output_html_string, %function
output_html_string:
.LFB9:
.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]
str x1, [sp, 16]
.L105:
ldr x0, [sp, 16]
ldrb w0, [x0]
cmp w0, 0
beq .L118
str wzr, [sp, 48]
.L108:
ldrsw x0, [sp, 48]
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 72]
ldr x0, [sp, 72]
ldrb w0, [x0]
cmp w0, 0
beq .L119
ldrsw x0, [sp, 48]
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 80]
ldr x0, [sp, 80]
ldrb w0, [x0]
strb w0, [sp, 44]
ldrb w0, [sp, 44]
str w0, [sp, 52]
ldr w0, [sp, 52]
cmp w0, 60
beq .L120
ldrsw x0, [sp, 48]
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 88]
ldr x0, [sp, 88]
ldrb w0, [x0]
strb w0, [sp, 45]
ldrb w0, [sp, 45]
str w0, [sp, 56]
ldr w0, [sp, 56]
cmp w0, 38
beq .L121
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
b .L108
.L119:
nop
b .L112
.L120:
nop
b .L112
.L121:
nop
.L112:
ldr w0, [sp, 48]
cmp w0, 0
ble .L113
ldr x0, [sp, 24]
str x0, [sp, 96]
adrp x0, .LC21
add x0, x0, :lo12:.LC21
str x0, [sp, 104]
ldr x3, [sp, 16]
ldr w2, [sp, 48]
ldr x1, [sp, 104]
ldr x0, [sp, 96]
bl fprintf
.L113:
ldrsw x0, [sp, 48]
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 112]
ldr x0, [sp, 112]
ldrb w0, [x0]
strb w0, [sp, 46]
ldrb w0, [sp, 46]
str w0, [sp, 60]
ldr w0, [sp, 60]
cmp w0, 60
bne .L114
ldr x0, [sp, 24]
str x0, [sp, 144]
adrp x0, .LC22
add x0, x0, :lo12:.LC22
str x0, [sp, 152]
ldr x1, [sp, 152]
ldr x0, [sp, 144]
bl fprintf
b .L115
.L114:
ldrsw x0, [sp, 48]
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 120]
ldr x0, [sp, 120]
ldrb w0, [x0]
strb w0, [sp, 47]
ldrb w0, [sp, 47]
str w0, [sp, 64]
ldr w0, [sp, 64]
cmp w0, 38
bne .L122
ldr x0, [sp, 24]
str x0, [sp, 128]
adrp x0, .LC23
add x0, x0, :lo12:.LC23
str x0, [sp, 136]
ldr x1, [sp, 136]
ldr x0, [sp, 128]
bl fprintf
.L115:
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 68]
ldrsw x0, [sp, 68]
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 16]
b .L105
.L118:
nop
b .L107
.L122:
nop
.L107:
nop
ldp x29, x30, [sp], 160
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size output_html_string, .-output_html_string
.section .rodata
.align 3
.type needCsvQuote, %object
.size needCsvQuote, 256
needCsvQuote:
.string "\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001"
.string "\001"
.string ""
.string ""
.string ""
.string "\001"
.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 "\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"
.ascii "\001\001\001\001\001\001\001\001\001"
.text
.align 2
.type output_csv, %function
output_csv:
.LFB10:
.cfi_startproc
sub sp, sp, #544
.cfi_def_cfa_offset 544
stp x29, x30, [sp]
.cfi_offset 29, -544
.cfi_offset 30, -536
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str w2, [sp, 28]
ldr x0, [sp, 40]
str x0, [sp, 88]
ldr x0, [sp, 88]
add x0, x0, 16
str x0, [sp, 96]
ldr x0, [sp, 96]
str x0, [sp, 104]
ldr x0, [sp, 104]
ldr x0, [x0]
str x0, [sp, 112]
str xzr, [sp, 120]
ldr x0, [sp, 120]
str x0, [sp, 128]
ldr x0, [sp, 32]
str x0, [sp, 136]
ldr x1, [sp, 136]
ldr x0, [sp, 128]
cmp x1, x0
bne .L124
ldr x0, [sp, 112]
str x0, [sp, 400]
adrp x0, .LC6
add x0, x0, :lo12:.LC6
str x0, [sp, 408]
str xzr, [sp, 416]
ldr x0, [sp, 416]
add x0, x0, 868
str x0, [sp, 424]
ldr x0, [sp, 40]
str x0, [sp, 432]
ldr x1, [sp, 432]
ldr x0, [sp, 424]
add x0, x1, x0
str x0, [sp, 440]
ldr x0, [sp, 440]
str x0, [sp, 448]
ldr x2, [sp, 448]
ldr x1, [sp, 408]
ldr x0, [sp, 400]
bl fprintf
b .L125
.L124:
str xzr, [sp, 144]
ldr x0, [sp, 144]
add x0, x0, 48
str x0, [sp, 152]
ldr x0, [sp, 40]
str x0, [sp, 160]
ldr x1, [sp, 160]
ldr x0, [sp, 152]
add x0, x1, x0
str x0, [sp, 168]
ldr x0, [sp, 168]
str x0, [sp, 176]
ldr x0, [sp, 176]
str x0, [sp, 184]
ldr x0, [sp, 184]
bl strlen
str x0, [sp, 192]
ldr x0, [sp, 192]
str w0, [sp, 64]
str wzr, [sp, 60]
.L126:
ldrsw x0, [sp, 60]
ldr x1, [sp, 32]
add x0, x1, x0
str x0, [sp, 200]
ldr x0, [sp, 200]
ldrb w0, [x0]
cmp w0, 0
beq .L140
ldr x0, [sp, 32]
str x0, [sp, 208]
ldrsw x0, [sp, 60]
ldr x1, [sp, 208]
add x0, x1, x0
str x0, [sp, 216]
ldr x0, [sp, 216]
ldrb w0, [x0]
strb w0, [sp, 55]
ldrb w0, [sp, 55]
str x0, [sp, 224]
adrp x0, needCsvQuote
add x0, x0, :lo12:needCsvQuote
ldr x1, [sp, 224]
add x0, x1, x0
str x0, [sp, 232]
ldr x0, [sp, 232]
str x0, [sp, 240]
ldr x0, [sp, 240]
ldrb w0, [x0]
cmp w0, 0
beq .L129
str wzr, [sp, 60]
b .L128
.L129:
str xzr, [sp, 248]
ldr x0, [sp, 248]
add x0, x0, 48
str x0, [sp, 256]
ldr x0, [sp, 40]
str x0, [sp, 264]
ldr x1, [sp, 264]
ldr x0, [sp, 256]
add x0, x1, x0
str x0, [sp, 272]
ldr x0, [sp, 272]
str x0, [sp, 280]
ldr x0, [sp, 280]
ldrb w0, [x0]
strb w0, [sp, 56]
ldrb w0, [sp, 56]
str w0, [sp, 68]
ldrsw x0, [sp, 60]
ldr x1, [sp, 32]
add x0, x1, x0
str x0, [sp, 288]
ldr x0, [sp, 288]
ldrb w0, [x0]
strb w0, [sp, 57]
ldrb w0, [sp, 57]
str w0, [sp, 72]
ldr w1, [sp, 72]
ldr w0, [sp, 68]
cmp w1, w0
bne .L130
ldr w0, [sp, 64]
cmp w0, 1
bne .L131
str wzr, [sp, 60]
b .L128
.L131:
ldr x0, [sp, 32]
str x0, [sp, 296]
str xzr, [sp, 304]
ldr x0, [sp, 304]
add x0, x0, 48
str x0, [sp, 312]
ldr x0, [sp, 40]
str x0, [sp, 320]
ldr x1, [sp, 320]
ldr x0, [sp, 312]
add x0, x1, x0
str x0, [sp, 328]
ldr x0, [sp, 328]
str x0, [sp, 336]
ldr x0, [sp, 336]
str x0, [sp, 344]
ldrsw x0, [sp, 64]
str x0, [sp, 352]
ldr x2, [sp, 352]
ldr x1, [sp, 344]
ldr x0, [sp, 296]
bl memcmp
str w0, [sp, 76]
ldr w0, [sp, 76]
cmp w0, 0
bne .L130
str wzr, [sp, 60]
b .L128
.L130:
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
b .L126
.L140:
nop
.L128:
ldr w0, [sp, 60]
cmp w0, 0
bne .L132
ldr x1, [sp, 112]
mov w0, 34
bl _IO_putc
str wzr, [sp, 60]
.L133:
ldrsw x0, [sp, 60]
ldr x1, [sp, 32]
add x0, x1, x0
str x0, [sp, 376]
ldr x0, [sp, 376]
ldrb w0, [x0]
cmp w0, 0
beq .L141
ldrsw x0, [sp, 60]
ldr x1, [sp, 32]
add x0, x1, x0
str x0, [sp, 384]
ldr x0, [sp, 384]
ldrb w0, [x0]
strb w0, [sp, 58]
ldrb w0, [sp, 58]
str w0, [sp, 80]
ldr w0, [sp, 80]
cmp w0, 34
bne .L136
ldr x1, [sp, 112]
mov w0, 34
bl _IO_putc
.L136:
ldrsw x0, [sp, 60]
ldr x1, [sp, 32]
add x0, x1, x0
str x0, [sp, 392]
ldr x0, [sp, 392]
ldrb w0, [x0]
strb w0, [sp, 59]
ldrb w0, [sp, 59]
str w0, [sp, 84]
ldr x1, [sp, 112]
ldr w0, [sp, 84]
bl _IO_putc
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
b .L133
.L141:
nop
.L135:
ldr x1, [sp, 112]
mov w0, 34
bl _IO_putc
b .L125
.L132:
ldr x0, [sp, 112]
str x0, [sp, 360]
adrp x0, .LC6
add x0, x0, :lo12:.LC6
str x0, [sp, 368]
ldr x2, [sp, 32]
ldr x1, [sp, 368]
ldr x0, [sp, 360]
bl fprintf
.L125:
ldr w0, [sp, 28]
cmp w0, 0
beq .L142
ldr x0, [sp, 40]
str x0, [sp, 456]
ldr x0, [sp, 456]
add x0, x0, 16
str x0, [sp, 464]
ldr x0, [sp, 464]
str x0, [sp, 472]
ldr x0, [sp, 472]
ldr x0, [x0]
str x0, [sp, 480]
ldr x0, [sp, 480]
str x0, [sp, 488]
adrp x0, .LC6
add x0, x0, :lo12:.LC6
str x0, [sp, 496]
str xzr, [sp, 504]
ldr x0, [sp, 504]
add x0, x0, 48
str x0, [sp, 512]
ldr x0, [sp, 40]
str x0, [sp, 520]
ldr x1, [sp, 520]
ldr x0, [sp, 512]
add x0, x1, x0
str x0, [sp, 528]
ldr x0, [sp, 528]
str x0, [sp, 536]
ldr x2, [sp, 536]
ldr x1, [sp, 496]
ldr x0, [sp, 488]
bl fprintf
nop
.L142:
nop
ldp x29, x30, [sp]
add sp, sp, 544
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size output_csv, .-output_csv
.align 2
.type interrupt_handler, %function
interrupt_handler:
.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 w0, [sp, 28]
adrp x0, seenInterrupt
add x0, x0, :lo12:seenInterrupt
mov w1, 1
str w1, [x0]
adrp x0, db
add x0, x0, :lo12:db
ldr x0, [x0]
cmp x0, 0
beq .L146
adrp x0, db
add x0, x0, :lo12:db
ldr x0, [x0]
bl sqlite3_interrupt
nop
.L146:
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size interrupt_handler, .-interrupt_handler
.section .rodata
.align 3
.LC24:
.string ""
.align 3
.LC25:
.string "\n"
.align 3
.LC26:
.string "%*s = %s\n"
.align 3
.LC27:
.string " "
.align 3
.LC28:
.string "%-*.*s%s"
.align 3
.LC29:
.string "---------------------------------------------------------------------------------------------"
.align 3
.LC30:
.string "%s%s"
.align 3
.LC31:
.string ";\n"
.align 3
.LC32:
.string "<TR>"
.align 3
.LC33:
.string "<TH>%s</TH>"
.align 3
.LC34:
.string "</TR>\n"
.align 3
.LC35:
.string "<TD>"
.align 3
.LC36:
.string "</TD>\n"
.align 3
.LC37:
.string "INSERT INTO %s VALUES("
.align 3
.LC38:
.string ","
.align 3
.LC39:
.string "%sNULL"
.align 3
.LC40:
.string ");\n"
.text
.align 2
.type callback, %function
callback:
.LFB12:
.cfi_startproc
sub sp, sp, #3856
.cfi_def_cfa_offset 3856
stp x29, x30, [sp]
.cfi_offset 29, -3856
.cfi_offset 30, -3848
mov x29, sp
str x0, [sp, 40]
str w1, [sp, 36]
str x2, [sp, 24]
str x3, [sp, 16]
ldr x0, [sp, 40]
str x0, [sp, 304]
ldr x0, [sp, 304]
str x0, [sp, 312]
ldr x0, [sp, 312]
add x0, x0, 24
str x0, [sp, 320]
ldr x0, [sp, 320]
str x0, [sp, 328]
ldr x0, [sp, 328]
ldr w0, [x0]
cmp w0, 0
beq .L289
ldr x0, [sp, 320]
str x0, [sp, 336]
ldr x0, [sp, 336]
ldr w0, [x0]
cmp w0, 8
beq .L290
ldr x0, [sp, 320]
str x0, [sp, 344]
ldr x0, [sp, 344]
ldr w0, [x0]
cmp w0, 1
beq .L291
ldr x0, [sp, 320]
str x0, [sp, 352]
ldr x0, [sp, 352]
ldr w0, [x0]
cmp w0, 3
beq .L292
ldr x0, [sp, 320]
str x0, [sp, 360]
ldr x0, [sp, 360]
ldr w0, [x0]
cmp w0, 2
beq .L293
ldr x0, [sp, 320]
str x0, [sp, 368]
ldr x0, [sp, 368]
ldr w0, [x0]
cmp w0, 4
beq .L294
ldr x0, [sp, 320]
str x0, [sp, 376]
ldr x0, [sp, 376]
ldr w0, [x0]
cmp w0, 6
beq .L295
ldr x0, [sp, 320]
str x0, [sp, 384]
ldr x0, [sp, 384]
ldr w0, [x0]
cmp w0, 7
beq .L296
ldr x0, [sp, 320]
str x0, [sp, 392]
ldr x0, [sp, 392]
ldr w0, [x0]
cmp w0, 5
bne .L297
b .L276
.L289:
nop
.L149:
mov w0, 5
str w0, [sp, 64]
str xzr, [sp, 3568]
ldr x0, [sp, 3568]
str x0, [sp, 3576]
ldr x0, [sp, 24]
str x0, [sp, 3584]
ldr x1, [sp, 3584]
ldr x0, [sp, 3576]
cmp x1, x0
beq .L298
str wzr, [sp, 60]
.L166:
ldr w1, [sp, 60]
ldr w0, [sp, 36]
cmp w1, w0
bge .L299
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 3824]
ldr x0, [sp, 3824]
ldr x0, [x0]
cmp x0, 0
beq .L169
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 3832]
ldr x0, [sp, 3832]
ldr x0, [x0]
str x0, [sp, 3840]
ldr x0, [sp, 3840]
str x0, [sp, 184]
b .L170
.L169:
adrp x0, .LC24
add x0, x0, :lo12:.LC24
str x0, [sp, 184]
.L170:
ldr x0, [sp, 184]
bl strlen
str x0, [sp, 3848]
ldr x0, [sp, 3848]
str w0, [sp, 180]
ldr w1, [sp, 180]
ldr w0, [sp, 64]
cmp w1, w0
ble .L171
ldr w0, [sp, 180]
str w0, [sp, 64]
.L171:
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
b .L166
.L299:
nop
.L168:
ldr x0, [sp, 304]
str x0, [sp, 3592]
ldr x0, [sp, 3592]
add x0, x0, 12
str x0, [sp, 3600]
ldr x0, [sp, 3600]
str x0, [sp, 3608]
ldr x0, [sp, 3608]
ldr w0, [x0]
str w0, [sp, 172]
ldr x0, [sp, 304]
str x0, [sp, 3616]
ldr x0, [sp, 3616]
add x0, x0, 12
str x0, [sp, 3624]
ldr x0, [sp, 304]
str x0, [sp, 3632]
ldr x0, [sp, 3632]
add x0, x0, 12
str x0, [sp, 3640]
ldr x0, [sp, 3640]
str x0, [sp, 3648]
ldr x0, [sp, 3648]
ldr w0, [x0]
str w0, [sp, 176]
ldr x0, [sp, 3624]
str x0, [sp, 3656]
ldr w0, [sp, 176]
add w1, w0, 1
ldr x0, [sp, 3656]
str w1, [x0]
ldr w0, [sp, 172]
cmp w0, 0
ble .L172
ldr x0, [sp, 304]
str x0, [sp, 3664]
ldr x0, [sp, 3664]
add x0, x0, 16
str x0, [sp, 3672]
ldr x0, [sp, 3672]
str x0, [sp, 3680]
ldr x0, [sp, 3680]
ldr x0, [x0]
str x0, [sp, 3688]
ldr x0, [sp, 3688]
str x0, [sp, 3696]
adrp x0, .LC25
add x0, x0, :lo12:.LC25
str x0, [sp, 3704]
ldr x1, [sp, 3704]
ldr x0, [sp, 3696]
bl fprintf
.L172:
str wzr, [sp, 60]
.L173:
ldr w1, [sp, 60]
ldr w0, [sp, 36]
cmp w1, w0
bge .L300
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 3712]
ldr x0, [sp, 3712]
ldr x0, [x0]
cmp x0, 0
beq .L176
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 3752]
ldr x0, [sp, 3752]
ldr x0, [x0]
str x0, [sp, 192]
b .L177
.L176:
str xzr, [sp, 3720]
ldr x0, [sp, 3720]
add x0, x0, 868
str x0, [sp, 3728]
ldr x0, [sp, 304]
str x0, [sp, 3736]
ldr x1, [sp, 3736]
ldr x0, [sp, 3728]
add x0, x1, x0
str x0, [sp, 3744]
ldr x0, [sp, 3744]
str x0, [sp, 192]
.L177:
ldr x0, [sp, 304]
str x0, [sp, 3760]
ldr x0, [sp, 3760]
add x0, x0, 16
str x0, [sp, 3768]
ldr x0, [sp, 3768]
str x0, [sp, 3776]
ldr x0, [sp, 3776]
ldr x0, [x0]
str x0, [sp, 3784]
ldr x0, [sp, 3784]
str x0, [sp, 3792]
adrp x0, .LC26
add x0, x0, :lo12:.LC26
str x0, [sp, 3800]
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 3808]
ldr x0, [sp, 3808]
ldr x0, [x0]
str x0, [sp, 3816]
ldr x4, [sp, 192]
ldr x3, [sp, 3816]
ldr w2, [sp, 64]
ldr x1, [sp, 3800]
ldr x0, [sp, 3792]
bl fprintf
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
b .L173
.L300:
nop
.L175:
b .L164
.L151:
.L290:
nop
b .L178
.L291:
nop
.L178:
ldr x0, [sp, 304]
str x0, [sp, 2760]
ldr x0, [sp, 2760]
add x0, x0, 12
str x0, [sp, 2768]
ldr x0, [sp, 2768]
str x0, [sp, 2776]
ldr x0, [sp, 2776]
ldr w0, [x0]
str w0, [sp, 144]
ldr x0, [sp, 304]
str x0, [sp, 2784]
ldr x0, [sp, 2784]
add x0, x0, 12
str x0, [sp, 2792]
ldr x0, [sp, 304]
str x0, [sp, 2800]
ldr x0, [sp, 2800]
add x0, x0, 12
str x0, [sp, 2808]
ldr x0, [sp, 2808]
str x0, [sp, 2816]
ldr x0, [sp, 2816]
ldr w0, [x0]
str w0, [sp, 148]
ldr x0, [sp, 2792]
str x0, [sp, 2824]
ldr w0, [sp, 148]
add w1, w0, 1
ldr x0, [sp, 2824]
str w1, [x0]
ldr w0, [sp, 144]
cmp w0, 0
bne .L179
str wzr, [sp, 60]
.L180:
ldr w1, [sp, 60]
ldr w0, [sp, 36]
cmp w1, w0
bge .L301
mov x0, 100
str x0, [sp, 2960]
ldrsw x0, [sp, 60]
str x0, [sp, 2968]
ldr x1, [sp, 2968]
ldr x0, [sp, 2960]
cmp x1, x0
bcs .L183
ldrsw x0, [sp, 60]
lsl x0, x0, 2
str x0, [sp, 2976]
ldr x0, [sp, 2976]
add x0, x0, 68
str x0, [sp, 2984]
ldr x0, [sp, 304]
str x0, [sp, 2992]
ldr x1, [sp, 2992]
ldr x0, [sp, 2984]
add x0, x1, x0
str x0, [sp, 3000]
ldr x0, [sp, 3000]
str x0, [sp, 3008]
ldr x0, [sp, 3008]
ldr w0, [x0]
str w0, [sp, 68]
b .L184
.L183:
str wzr, [sp, 68]
.L184:
ldr w0, [sp, 68]
cmp w0, 0
bgt .L185
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 3016]
ldr x0, [sp, 3016]
ldr x0, [x0]
cmp x0, 0
beq .L186
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 3024]
ldr x0, [sp, 3024]
ldr x0, [x0]
str x0, [sp, 3032]
ldr x0, [sp, 3032]
str x0, [sp, 200]
b .L187
.L186:
adrp x0, .LC24
add x0, x0, :lo12:.LC24
str x0, [sp, 200]
.L187:
ldr x0, [sp, 200]
bl strlen
str x0, [sp, 3040]
ldr x0, [sp, 3040]
str w0, [sp, 68]
ldr w0, [sp, 68]
cmp w0, 9
bgt .L188
mov w0, 10
str w0, [sp, 68]
.L188:
ldr x0, [sp, 24]
cmp x0, 0
beq .L189
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 3080]
ldr x0, [sp, 3080]
ldr x0, [x0]
cmp x0, 0
beq .L190
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 3120]
ldr x0, [sp, 3120]
ldr x0, [x0]
str x0, [sp, 208]
b .L191
.L190:
str xzr, [sp, 3088]
ldr x0, [sp, 3088]
add x0, x0, 868
str x0, [sp, 3096]
ldr x0, [sp, 304]
str x0, [sp, 3104]
ldr x1, [sp, 3104]
ldr x0, [sp, 3096]
add x0, x1, x0
str x0, [sp, 3112]
ldr x0, [sp, 3112]
str x0, [sp, 208]
b .L191
.L189:
str xzr, [sp, 3048]
ldr x0, [sp, 3048]
add x0, x0, 868
str x0, [sp, 3056]
ldr x0, [sp, 304]
str x0, [sp, 3064]
ldr x1, [sp, 3064]
ldr x0, [sp, 3056]
add x0, x1, x0
str x0, [sp, 3072]
ldr x0, [sp, 3072]
str x0, [sp, 208]
.L191:
ldr x0, [sp, 208]
str x0, [sp, 3128]
ldr x0, [sp, 3128]
bl strlen
str x0, [sp, 3136]
ldr x0, [sp, 3136]
str w0, [sp, 156]
ldr w1, [sp, 68]
ldr w0, [sp, 156]
cmp w1, w0
bge .L185
ldr w0, [sp, 156]
str w0, [sp, 68]
.L185:
mov x0, 100
str x0, [sp, 3144]
ldrsw x0, [sp, 60]
str x0, [sp, 3152]
ldr x1, [sp, 3152]
ldr x0, [sp, 3144]
cmp x1, x0
bcs .L192
ldrsw x0, [sp, 60]
lsl x0, x0, 2
str x0, [sp, 3160]
ldr x0, [sp, 3160]
add x0, x0, 468
str x0, [sp, 3168]
ldr x0, [sp, 304]
str x0, [sp, 3176]
ldr x1, [sp, 3176]
ldr x0, [sp, 3168]
add x0, x1, x0
str x0, [sp, 3184]
ldr x0, [sp, 3184]
str x0, [sp, 3192]
ldr x0, [sp, 3192]
ldr w1, [sp, 68]
str w1, [x0]
.L192:
ldr x0, [sp, 304]
str x0, [sp, 3200]
ldr x0, [sp, 3200]
add x0, x0, 32
str x0, [sp, 3208]
ldr x0, [sp, 3208]
str x0, [sp, 3216]
ldr x0, [sp, 3216]
ldr w0, [x0]
cmp w0, 0
beq .L193
ldr w0, [sp, 36]
sub w0, w0, #1
str w0, [sp, 160]
ldr w1, [sp, 60]
ldr w0, [sp, 160]
cmp w1, w0
bne .L194
adrp x0, .LC25
add x0, x0, :lo12:.LC25
str x0, [sp, 216]
b .L195
.L194:
adrp x0, .LC27
add x0, x0, :lo12:.LC27
str x0, [sp, 216]
.L195:
ldr x0, [sp, 304]
str x0, [sp, 3224]
ldr x0, [sp, 3224]
add x0, x0, 16
str x0, [sp, 3232]
ldr x0, [sp, 3232]
str x0, [sp, 3240]
ldr x0, [sp, 3240]
ldr x0, [x0]
str x0, [sp, 3248]
ldr x0, [sp, 3248]
str x0, [sp, 3256]
adrp x0, .LC28
add x0, x0, :lo12:.LC28
str x0, [sp, 3264]
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 3272]
ldr x0, [sp, 3272]
ldr x0, [x0]
str x0, [sp, 3280]
ldr x5, [sp, 216]
ldr x4, [sp, 3280]
ldr w3, [sp, 68]
ldr w2, [sp, 68]
ldr x1, [sp, 3264]
ldr x0, [sp, 3256]
bl fprintf
.L193:
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
b .L180
.L301:
nop
.L182:
ldr x0, [sp, 304]
str x0, [sp, 2832]
ldr x0, [sp, 2832]
add x0, x0, 32
str x0, [sp, 2840]
ldr x0, [sp, 2840]
str x0, [sp, 2848]
ldr x0, [sp, 2848]
ldr w0, [x0]
cmp w0, 0
beq .L179
str wzr, [sp, 60]
.L196:
ldr w1, [sp, 60]
ldr w0, [sp, 36]
cmp w1, w0
bge .L302
mov x0, 100
str x0, [sp, 2856]
ldrsw x0, [sp, 60]
str x0, [sp, 2864]
ldr x1, [sp, 2864]
ldr x0, [sp, 2856]
cmp x1, x0
bcs .L199
ldrsw x0, [sp, 60]
lsl x0, x0, 2
str x0, [sp, 2872]
ldr x0, [sp, 2872]
add x0, x0, 468
str x0, [sp, 2880]
ldr x0, [sp, 304]
str x0, [sp, 2888]
ldr x1, [sp, 2888]
ldr x0, [sp, 2880]
add x0, x1, x0
str x0, [sp, 2896]
ldr x0, [sp, 2896]
str x0, [sp, 2904]
ldr x0, [sp, 2904]
ldr w0, [x0]
str w0, [sp, 72]
b .L200
.L199:
mov w0, 10
str w0, [sp, 72]
.L200:
ldr w0, [sp, 36]
sub w0, w0, #1
str w0, [sp, 152]
ldr w1, [sp, 60]
ldr w0, [sp, 152]
cmp w1, w0
bne .L201
adrp x0, .LC25
add x0, x0, :lo12:.LC25
str x0, [sp, 224]
b .L202
.L201:
adrp x0, .LC27
add x0, x0, :lo12:.LC27
str x0, [sp, 224]
.L202:
ldr x0, [sp, 304]
str x0, [sp, 2912]
ldr x0, [sp, 2912]
add x0, x0, 16
str x0, [sp, 2920]
ldr x0, [sp, 2920]
str x0, [sp, 2928]
ldr x0, [sp, 2928]
ldr x0, [x0]
str x0, [sp, 2936]
ldr x0, [sp, 2936]
str x0, [sp, 2944]
adrp x0, .LC28
add x0, x0, :lo12:.LC28
str x0, [sp, 2952]
ldr x5, [sp, 224]
adrp x0, .LC29
add x4, x0, :lo12:.LC29
ldr w3, [sp, 72]
ldr w2, [sp, 72]
ldr x1, [sp, 2952]
ldr x0, [sp, 2944]
bl fprintf
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
b .L196
.L198:
.L302:
nop
.L179:
str xzr, [sp, 3288]
ldr x0, [sp, 3288]
str x0, [sp, 3296]
ldr x0, [sp, 24]
str x0, [sp, 3304]
ldr x1, [sp, 3304]
ldr x0, [sp, 3296]
cmp x1, x0
beq .L303
str wzr, [sp, 60]
.L204:
ldr w1, [sp, 60]
ldr w0, [sp, 36]
cmp w1, w0
bge .L304
mov x0, 100
str x0, [sp, 3312]
ldrsw x0, [sp, 60]
str x0, [sp, 3320]
ldr x1, [sp, 3320]
ldr x0, [sp, 3312]
cmp x1, x0
bcs .L207
ldrsw x0, [sp, 60]
lsl x0, x0, 2
str x0, [sp, 3328]
ldr x0, [sp, 3328]
add x0, x0, 468
str x0, [sp, 3336]
ldr x0, [sp, 304]
str x0, [sp, 3344]
ldr x1, [sp, 3344]
ldr x0, [sp, 3336]
add x0, x1, x0
str x0, [sp, 3352]
ldr x0, [sp, 3352]
str x0, [sp, 3360]
ldr x0, [sp, 3360]
ldr w0, [x0]
str w0, [sp, 76]
b .L208
.L207:
mov w0, 10
str w0, [sp, 76]
.L208:
ldr x0, [sp, 304]
str x0, [sp, 3368]
ldr x0, [sp, 3368]
add x0, x0, 24
str x0, [sp, 3376]
ldr x0, [sp, 3376]
str x0, [sp, 3384]
ldr x0, [sp, 3384]
ldr w0, [x0]
str w0, [sp, 164]
ldr w0, [sp, 164]
cmp w0, 8
bne .L209
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 3392]
ldr x0, [sp, 3392]
ldr x0, [x0]
cmp x0, 0
beq .L209
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 3400]
ldr x0, [sp, 3400]
ldr x0, [x0]
str x0, [sp, 3408]
ldr x0, [sp, 3408]
str x0, [sp, 3416]
ldr x0, [sp, 3416]
bl strlen
str x0, [sp, 3424]
ldrsw x0, [sp, 76]
str x0, [sp, 3432]
ldr x1, [sp, 3424]
ldr x0, [sp, 3432]
cmp x1, x0
bls .L209
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 3440]
ldr x0, [sp, 3440]
ldr x0, [x0]
str x0, [sp, 3448]
ldr x0, [sp, 3448]
str x0, [sp, 3456]
ldr x0, [sp, 3456]
bl strlen
str x0, [sp, 3464]
ldr x0, [sp, 3464]
str w0, [sp, 76]
.L209:
ldr w0, [sp, 36]
sub w0, w0, #1
str w0, [sp, 168]
ldr w1, [sp, 60]
ldr w0, [sp, 168]
cmp w1, w0
bne .L210
adrp x0, .LC25
add x0, x0, :lo12:.LC25
str x0, [sp, 232]
b .L211
.L210:
adrp x0, .LC27
add x0, x0, :lo12:.LC27
str x0, [sp, 232]
.L211:
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 3472]
ldr x0, [sp, 3472]
ldr x0, [x0]
cmp x0, 0
beq .L212
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 3512]
ldr x0, [sp, 3512]
ldr x0, [x0]
str x0, [sp, 240]
b .L213
.L212:
str xzr, [sp, 3480]
ldr x0, [sp, 3480]
add x0, x0, 868
str x0, [sp, 3488]
ldr x0, [sp, 304]
str x0, [sp, 3496]
ldr x1, [sp, 3496]
ldr x0, [sp, 3488]
add x0, x1, x0
str x0, [sp, 3504]
ldr x0, [sp, 3504]
str x0, [sp, 240]
.L213:
ldr x0, [sp, 304]
str x0, [sp, 3520]
ldr x0, [sp, 3520]
add x0, x0, 16
str x0, [sp, 3528]
ldr x0, [sp, 3528]
str x0, [sp, 3536]
ldr x0, [sp, 3536]
ldr x0, [x0]
str x0, [sp, 3544]
ldr x0, [sp, 3544]
str x0, [sp, 3552]
adrp x0, .LC28
add x0, x0, :lo12:.LC28
str x0, [sp, 3560]
ldr x5, [sp, 232]
ldr x4, [sp, 240]
ldr w3, [sp, 76]
ldr w2, [sp, 76]
ldr x1, [sp, 3560]
ldr x0, [sp, 3552]
bl fprintf
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
b .L204
.L304:
nop
.L206:
b .L164
.L154:
.L292:
nop
b .L214
.L293:
nop
.L214:
ldr x0, [sp, 304]
str x0, [sp, 2216]
ldr x0, [sp, 2216]
add x0, x0, 12
str x0, [sp, 2224]
ldr x0, [sp, 2224]
str x0, [sp, 2232]
ldr x0, [sp, 2232]
ldr w0, [x0]
str w0, [sp, 124]
ldr x0, [sp, 304]
str x0, [sp, 2240]
ldr x0, [sp, 2240]
add x0, x0, 12
str x0, [sp, 2248]
ldr x0, [sp, 304]
str x0, [sp, 2256]
ldr x0, [sp, 2256]
add x0, x0, 12
str x0, [sp, 2264]
ldr x0, [sp, 2264]
str x0, [sp, 2272]
ldr x0, [sp, 2272]
ldr w0, [x0]
str w0, [sp, 128]
ldr x0, [sp, 2248]
str x0, [sp, 2280]
ldr w0, [sp, 128]
add w1, w0, 1
ldr x0, [sp, 2280]
str w1, [x0]
ldr w0, [sp, 124]
cmp w0, 0
bne .L215
ldr x0, [sp, 304]
str x0, [sp, 2288]
ldr x0, [sp, 2288]
add x0, x0, 32
str x0, [sp, 2296]
ldr x0, [sp, 2296]
str x0, [sp, 2304]
ldr x0, [sp, 2304]
ldr w0, [x0]
cmp w0, 0
beq .L215
str wzr, [sp, 60]
.L216:
ldr w1, [sp, 60]
ldr w0, [sp, 36]
cmp w1, w0
bge .L305
ldr w0, [sp, 36]
sub w0, w0, #1
str w0, [sp, 132]
ldr w1, [sp, 60]
ldr w0, [sp, 132]
cmp w1, w0
bne .L219
adrp x0, .LC25
add x0, x0, :lo12:.LC25
str x0, [sp, 248]
b .L220
.L219:
str xzr, [sp, 2312]
ldr x0, [sp, 2312]
add x0, x0, 48
str x0, [sp, 2320]
ldr x0, [sp, 304]
str x0, [sp, 2328]
ldr x1, [sp, 2328]
ldr x0, [sp, 2320]
add x0, x1, x0
str x0, [sp, 2336]
ldr x0, [sp, 2336]
str x0, [sp, 2344]
ldr x0, [sp, 2344]
str x0, [sp, 248]
.L220:
ldr x0, [sp, 304]
str x0, [sp, 2352]
ldr x0, [sp, 2352]
add x0, x0, 16
str x0, [sp, 2360]
ldr x0, [sp, 2360]
str x0, [sp, 2368]
ldr x0, [sp, 2368]
ldr x0, [x0]
str x0, [sp, 2376]
ldr x0, [sp, 2376]
str x0, [sp, 2384]
adrp x0, .LC30
add x0, x0, :lo12:.LC30
str x0, [sp, 2392]
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 2400]
ldr x0, [sp, 2400]
ldr x0, [x0]
str x0, [sp, 2408]
ldr x3, [sp, 248]
ldr x2, [sp, 2408]
ldr x1, [sp, 2392]
ldr x0, [sp, 2384]
bl fprintf
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
b .L216
.L218:
.L305:
nop
.L215:
str xzr, [sp, 2416]
ldr x0, [sp, 2416]
str x0, [sp, 2424]
ldr x0, [sp, 24]
str x0, [sp, 2432]
ldr x1, [sp, 2432]
ldr x0, [sp, 2424]
cmp x1, x0
beq .L306
str wzr, [sp, 60]
.L222:
ldr w1, [sp, 60]
ldr w0, [sp, 36]
cmp w1, w0
bge .L307
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 2440]
ldr x0, [sp, 2440]
ldr x0, [x0]
str x0, [sp, 256]
str xzr, [sp, 2448]
ldr x0, [sp, 2448]
str x0, [sp, 2456]
ldr x0, [sp, 256]
str x0, [sp, 2464]
ldr x1, [sp, 2464]
ldr x0, [sp, 2456]
cmp x1, x0
bne .L225
str xzr, [sp, 2472]
ldr x0, [sp, 2472]
add x0, x0, 868
str x0, [sp, 2480]
ldr x0, [sp, 304]
str x0, [sp, 2488]
ldr x1, [sp, 2488]
ldr x0, [sp, 2480]
add x0, x1, x0
str x0, [sp, 2496]
ldr x0, [sp, 2496]
str x0, [sp, 256]
.L225:
ldr x0, [sp, 304]
str x0, [sp, 2504]
ldr x0, [sp, 2504]
add x0, x0, 16
str x0, [sp, 2512]
ldr x0, [sp, 2512]
str x0, [sp, 2520]
ldr x0, [sp, 2520]
ldr x0, [x0]
str x0, [sp, 2528]
ldr x0, [sp, 2528]
str x0, [sp, 2536]
adrp x0, .LC6
add x0, x0, :lo12:.LC6
str x0, [sp, 2544]
ldr x2, [sp, 256]
ldr x1, [sp, 2544]
ldr x0, [sp, 2536]
bl fprintf
ldr w0, [sp, 36]
sub w0, w0, #1
str w0, [sp, 136]
ldr w1, [sp, 60]
ldr w0, [sp, 136]
cmp w1, w0
bge .L226
ldr x0, [sp, 304]
str x0, [sp, 2672]
ldr x0, [sp, 2672]
add x0, x0, 16
str x0, [sp, 2680]
ldr x0, [sp, 2680]
str x0, [sp, 2688]
ldr x0, [sp, 2688]
ldr x0, [x0]
str x0, [sp, 2696]
ldr x0, [sp, 2696]
str x0, [sp, 2704]
adrp x0, .LC6
add x0, x0, :lo12:.LC6
str x0, [sp, 2712]
str xzr, [sp, 2720]
ldr x0, [sp, 2720]
add x0, x0, 48
str x0, [sp, 2728]
ldr x0, [sp, 304]
str x0, [sp, 2736]
ldr x1, [sp, 2736]
ldr x0, [sp, 2728]
add x0, x1, x0
str x0, [sp, 2744]
ldr x0, [sp, 2744]
str x0, [sp, 2752]
ldr x2, [sp, 2752]
ldr x1, [sp, 2712]
ldr x0, [sp, 2704]
bl fprintf
b .L227
.L226:
ldr x0, [sp, 304]
str x0, [sp, 2552]
ldr x0, [sp, 2552]
add x0, x0, 24
str x0, [sp, 2560]
ldr x0, [sp, 2560]
str x0, [sp, 2568]
ldr x0, [sp, 2568]
ldr w0, [x0]
str w0, [sp, 140]
ldr w0, [sp, 140]
cmp w0, 3
bne .L228
ldr x0, [sp, 304]
str x0, [sp, 2624]
ldr x0, [sp, 2624]
add x0, x0, 16
str x0, [sp, 2632]
ldr x0, [sp, 2632]
str x0, [sp, 2640]
ldr x0, [sp, 2640]
ldr x0, [x0]
str x0, [sp, 2648]
ldr x0, [sp, 2648]
str x0, [sp, 2656]
adrp x0, .LC31
add x0, x0, :lo12:.LC31
str x0, [sp, 2664]
ldr x1, [sp, 2664]
ldr x0, [sp, 2656]
bl fprintf
b .L227
.L228:
ldr x0, [sp, 304]
str x0, [sp, 2576]
ldr x0, [sp, 2576]
add x0, x0, 16
str x0, [sp, 2584]
ldr x0, [sp, 2584]
str x0, [sp, 2592]
ldr x0, [sp, 2592]
ldr x0, [x0]
str x0, [sp, 2600]
ldr x0, [sp, 2600]
str x0, [sp, 2608]
adrp x0, .LC25
add x0, x0, :lo12:.LC25
str x0, [sp, 2616]
ldr x1, [sp, 2616]
ldr x0, [sp, 2608]
bl fprintf
.L227:
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
b .L222
.L307:
nop
.L224:
b .L164
.L294:
nop
.L157:
ldr x0, [sp, 304]
str x0, [sp, 1656]
ldr x0, [sp, 1656]
add x0, x0, 12
str x0, [sp, 1664]
ldr x0, [sp, 1664]
str x0, [sp, 1672]
ldr x0, [sp, 1672]
ldr w0, [x0]
str w0, [sp, 116]
ldr x0, [sp, 304]
str x0, [sp, 1680]
ldr x0, [sp, 1680]
add x0, x0, 12
str x0, [sp, 1688]
ldr x0, [sp, 304]
str x0, [sp, 1696]
ldr x0, [sp, 1696]
add x0, x0, 12
str x0, [sp, 1704]
ldr x0, [sp, 1704]
str x0, [sp, 1712]
ldr x0, [sp, 1712]
ldr w0, [x0]
str w0, [sp, 120]
ldr x0, [sp, 1688]
str x0, [sp, 1720]
ldr w0, [sp, 120]
add w1, w0, 1
ldr x0, [sp, 1720]
str w1, [x0]
ldr w0, [sp, 116]
cmp w0, 0
bne .L229
ldr x0, [sp, 304]
str x0, [sp, 1728]
ldr x0, [sp, 1728]
add x0, x0, 32
str x0, [sp, 1736]
ldr x0, [sp, 1736]
str x0, [sp, 1744]
ldr x0, [sp, 1744]
ldr w0, [x0]
cmp w0, 0
beq .L229
ldr x0, [sp, 304]
str x0, [sp, 1752]
ldr x0, [sp, 1752]
add x0, x0, 16
str x0, [sp, 1760]
ldr x0, [sp, 1760]
str x0, [sp, 1768]
ldr x0, [sp, 1768]
ldr x0, [x0]
str x0, [sp, 1776]
ldr x0, [sp, 1776]
str x0, [sp, 1784]
adrp x0, .LC32
add x0, x0, :lo12:.LC32
str x0, [sp, 1792]
ldr x1, [sp, 1792]
ldr x0, [sp, 1784]
bl fprintf
str wzr, [sp, 60]
.L230:
ldr w1, [sp, 60]
ldr w0, [sp, 36]
cmp w1, w0
bge .L308
ldr x0, [sp, 304]
str x0, [sp, 1848]
ldr x0, [sp, 1848]
add x0, x0, 16
str x0, [sp, 1856]
ldr x0, [sp, 1856]
str x0, [sp, 1864]
ldr x0, [sp, 1864]
ldr x0, [x0]
str x0, [sp, 1872]
ldr x0, [sp, 1872]
str x0, [sp, 1880]
adrp x0, .LC33
add x0, x0, :lo12:.LC33
str x0, [sp, 1888]
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 1896]
ldr x0, [sp, 1896]
ldr x0, [x0]
str x0, [sp, 1904]
ldr x2, [sp, 1904]
ldr x1, [sp, 1888]
ldr x0, [sp, 1880]
bl fprintf
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
b .L230
.L308:
nop
.L232:
ldr x0, [sp, 304]
str x0, [sp, 1800]
ldr x0, [sp, 1800]
add x0, x0, 16
str x0, [sp, 1808]
ldr x0, [sp, 1808]
str x0, [sp, 1816]
ldr x0, [sp, 1816]
ldr x0, [x0]
str x0, [sp, 1824]
ldr x0, [sp, 1824]
str x0, [sp, 1832]
adrp x0, .LC34
add x0, x0, :lo12:.LC34
str x0, [sp, 1840]
ldr x1, [sp, 1840]
ldr x0, [sp, 1832]
bl fprintf
.L229:
str xzr, [sp, 1912]
ldr x0, [sp, 1912]
str x0, [sp, 1920]
ldr x0, [sp, 24]
str x0, [sp, 1928]
ldr x1, [sp, 1928]
ldr x0, [sp, 1920]
cmp x1, x0
beq .L309
ldr x0, [sp, 304]
str x0, [sp, 1936]
ldr x0, [sp, 1936]
add x0, x0, 16
str x0, [sp, 1944]
ldr x0, [sp, 1944]
str x0, [sp, 1952]
ldr x0, [sp, 1952]
ldr x0, [x0]
str x0, [sp, 1960]
ldr x0, [sp, 1960]
str x0, [sp, 1968]
adrp x0, .LC32
add x0, x0, :lo12:.LC32
str x0, [sp, 1976]
ldr x1, [sp, 1976]
ldr x0, [sp, 1968]
bl fprintf
str wzr, [sp, 60]
.L234:
ldr w1, [sp, 60]
ldr w0, [sp, 36]
cmp w1, w0
bge .L310
ldr x0, [sp, 304]
str x0, [sp, 2032]
ldr x0, [sp, 2032]
add x0, x0, 16
str x0, [sp, 2040]
ldr x0, [sp, 2040]
str x0, [sp, 2048]
ldr x0, [sp, 2048]
ldr x0, [x0]
str x0, [sp, 2056]
ldr x0, [sp, 2056]
str x0, [sp, 2064]
adrp x0, .LC35
add x0, x0, :lo12:.LC35
str x0, [sp, 2072]
ldr x1, [sp, 2072]
ldr x0, [sp, 2064]
bl fprintf
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 2080]
ldr x0, [sp, 2080]
ldr x0, [x0]
cmp x0, 0
beq .L237
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 2120]
ldr x0, [sp, 2120]
ldr x0, [x0]
str x0, [sp, 264]
b .L238
.L237:
str xzr, [sp, 2088]
ldr x0, [sp, 2088]
add x0, x0, 868
str x0, [sp, 2096]
ldr x0, [sp, 304]
str x0, [sp, 2104]
ldr x1, [sp, 2104]
ldr x0, [sp, 2096]
add x0, x1, x0
str x0, [sp, 2112]
ldr x0, [sp, 2112]
str x0, [sp, 264]
.L238:
ldr x0, [sp, 304]
str x0, [sp, 2128]
ldr x0, [sp, 2128]
add x0, x0, 16
str x0, [sp, 2136]
ldr x0, [sp, 2136]
str x0, [sp, 2144]
ldr x0, [sp, 2144]
ldr x0, [x0]
str x0, [sp, 2152]
ldr x0, [sp, 264]
str x0, [sp, 2160]
ldr x1, [sp, 2160]
ldr x0, [sp, 2152]
bl output_html_string
ldr x0, [sp, 304]
str x0, [sp, 2168]
ldr x0, [sp, 2168]
add x0, x0, 16
str x0, [sp, 2176]
ldr x0, [sp, 2176]
str x0, [sp, 2184]
ldr x0, [sp, 2184]
ldr x0, [x0]
str x0, [sp, 2192]
ldr x0, [sp, 2192]
str x0, [sp, 2200]
adrp x0, .LC36
add x0, x0, :lo12:.LC36
str x0, [sp, 2208]
ldr x1, [sp, 2208]
ldr x0, [sp, 2200]
bl fprintf
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
b .L234
.L310:
nop
.L236:
ldr x0, [sp, 304]
str x0, [sp, 1984]
ldr x0, [sp, 1984]
add x0, x0, 16
str x0, [sp, 1992]
ldr x0, [sp, 1992]
str x0, [sp, 2000]
ldr x0, [sp, 2000]
ldr x0, [x0]
str x0, [sp, 2008]
ldr x0, [sp, 2008]
str x0, [sp, 2016]
adrp x0, .LC34
add x0, x0, :lo12:.LC34
str x0, [sp, 2024]
ldr x1, [sp, 2024]
ldr x0, [sp, 2016]
bl fprintf
b .L164
.L295:
nop
.L159:
ldr x0, [sp, 304]
str x0, [sp, 1120]
ldr x0, [sp, 1120]
add x0, x0, 12
str x0, [sp, 1128]
ldr x0, [sp, 1128]
str x0, [sp, 1136]
ldr x0, [sp, 1136]
ldr w0, [x0]
str w0, [sp, 108]
ldr x0, [sp, 304]
str x0, [sp, 1144]
ldr x0, [sp, 1144]
add x0, x0, 12
str x0, [sp, 1152]
ldr x0, [sp, 304]
str x0, [sp, 1160]
ldr x0, [sp, 1160]
add x0, x0, 12
str x0, [sp, 1168]
ldr x0, [sp, 1168]
str x0, [sp, 1176]
ldr x0, [sp, 1176]
ldr w0, [x0]
str w0, [sp, 112]
ldr x0, [sp, 1152]
str x0, [sp, 1184]
ldr w0, [sp, 112]
add w1, w0, 1
ldr x0, [sp, 1184]
str w1, [x0]
ldr w0, [sp, 108]
cmp w0, 0
bne .L239
ldr x0, [sp, 304]
str x0, [sp, 1192]
ldr x0, [sp, 1192]
add x0, x0, 32
str x0, [sp, 1200]
ldr x0, [sp, 1200]
str x0, [sp, 1208]
ldr x0, [sp, 1208]
ldr w0, [x0]
cmp w0, 0
beq .L239
str wzr, [sp, 60]
.L240:
ldr w1, [sp, 60]
ldr w0, [sp, 36]
cmp w1, w0
bge .L311
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 1264]
ldr x0, [sp, 1264]
ldr x0, [x0]
cmp x0, 0
beq .L243
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 1272]
ldr x0, [sp, 1272]
ldr x0, [x0]
str x0, [sp, 1280]
ldr x0, [sp, 1280]
str x0, [sp, 272]
b .L244
.L243:
adrp x0, .LC24
add x0, x0, :lo12:.LC24
str x0, [sp, 272]
.L244:
ldr x0, [sp, 304]
str x0, [sp, 1288]
ldr x0, [sp, 1288]
add x0, x0, 16
str x0, [sp, 1296]
ldr x0, [sp, 1296]
str x0, [sp, 1304]
ldr x0, [sp, 1304]
ldr x0, [x0]
str x0, [sp, 1312]
ldr x1, [sp, 272]
ldr x0, [sp, 1312]
bl output_c_string
ldr x0, [sp, 304]
str x0, [sp, 1320]
ldr x0, [sp, 1320]
add x0, x0, 16
str x0, [sp, 1328]
ldr x0, [sp, 1328]
str x0, [sp, 1336]
ldr x0, [sp, 1336]
ldr x0, [x0]
str x0, [sp, 1344]
ldr x0, [sp, 1344]
str x0, [sp, 1352]
adrp x0, .LC6
add x0, x0, :lo12:.LC6
str x0, [sp, 1360]
str xzr, [sp, 1368]
ldr x0, [sp, 1368]
add x0, x0, 48
str x0, [sp, 1376]
ldr x0, [sp, 304]
str x0, [sp, 1384]
ldr x1, [sp, 1384]
ldr x0, [sp, 1376]
add x0, x1, x0
str x0, [sp, 1392]
ldr x0, [sp, 1392]
str x0, [sp, 1400]
ldr x2, [sp, 1400]
ldr x1, [sp, 1360]
ldr x0, [sp, 1352]
bl fprintf
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
b .L240
.L311:
nop
.L242:
ldr x0, [sp, 304]
str x0, [sp, 1216]
ldr x0, [sp, 1216]
add x0, x0, 16
str x0, [sp, 1224]
ldr x0, [sp, 1224]
str x0, [sp, 1232]
ldr x0, [sp, 1232]
ldr x0, [x0]
str x0, [sp, 1240]
ldr x0, [sp, 1240]
str x0, [sp, 1248]
adrp x0, .LC25
add x0, x0, :lo12:.LC25
str x0, [sp, 1256]
ldr x1, [sp, 1256]
ldr x0, [sp, 1248]
bl fprintf
.L239:
str xzr, [sp, 1408]
ldr x0, [sp, 1408]
str x0, [sp, 1416]
ldr x0, [sp, 24]
str x0, [sp, 1424]
ldr x1, [sp, 1424]
ldr x0, [sp, 1416]
cmp x1, x0
beq .L312
str wzr, [sp, 60]
.L246:
ldr w1, [sp, 60]
ldr w0, [sp, 36]
cmp w1, w0
bge .L313
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 1480]
ldr x0, [sp, 1480]
ldr x0, [x0]
cmp x0, 0
beq .L249
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 1520]
ldr x0, [sp, 1520]
ldr x0, [x0]
str x0, [sp, 280]
b .L250
.L249:
str xzr, [sp, 1488]
ldr x0, [sp, 1488]
add x0, x0, 868
str x0, [sp, 1496]
ldr x0, [sp, 304]
str x0, [sp, 1504]
ldr x1, [sp, 1504]
ldr x0, [sp, 1496]
add x0, x1, x0
str x0, [sp, 1512]
ldr x0, [sp, 1512]
str x0, [sp, 280]
.L250:
ldr x0, [sp, 304]
str x0, [sp, 1528]
ldr x0, [sp, 1528]
add x0, x0, 16
str x0, [sp, 1536]
ldr x0, [sp, 1536]
str x0, [sp, 1544]
ldr x0, [sp, 1544]
ldr x0, [x0]
str x0, [sp, 1552]
ldr x0, [sp, 280]
str x0, [sp, 1560]
ldr x1, [sp, 1560]
ldr x0, [sp, 1552]
bl output_c_string
ldr x0, [sp, 304]
str x0, [sp, 1568]
ldr x0, [sp, 1568]
add x0, x0, 16
str x0, [sp, 1576]
ldr x0, [sp, 1576]
str x0, [sp, 1584]
ldr x0, [sp, 1584]
ldr x0, [x0]
str x0, [sp, 1592]
ldr x0, [sp, 1592]
str x0, [sp, 1600]
adrp x0, .LC6
add x0, x0, :lo12:.LC6
str x0, [sp, 1608]
str xzr, [sp, 1616]
ldr x0, [sp, 1616]
add x0, x0, 48
str x0, [sp, 1624]
ldr x0, [sp, 304]
str x0, [sp, 1632]
ldr x1, [sp, 1632]
ldr x0, [sp, 1624]
add x0, x1, x0
str x0, [sp, 1640]
ldr x0, [sp, 1640]
str x0, [sp, 1648]
ldr x2, [sp, 1648]
ldr x1, [sp, 1608]
ldr x0, [sp, 1600]
bl fprintf
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
b .L246
.L313:
nop
.L248:
ldr x0, [sp, 304]
str x0, [sp, 1432]
ldr x0, [sp, 1432]
add x0, x0, 16
str x0, [sp, 1440]
ldr x0, [sp, 1440]
str x0, [sp, 1448]
ldr x0, [sp, 1448]
ldr x0, [x0]
str x0, [sp, 1456]
ldr x0, [sp, 1456]
str x0, [sp, 1464]
adrp x0, .LC25
add x0, x0, :lo12:.LC25
str x0, [sp, 1472]
ldr x1, [sp, 1472]
ldr x0, [sp, 1464]
bl fprintf
b .L164
.L296:
nop
.L161:
ldr x0, [sp, 304]
str x0, [sp, 856]
ldr x0, [sp, 856]
add x0, x0, 12
str x0, [sp, 864]
ldr x0, [sp, 864]
str x0, [sp, 872]
ldr x0, [sp, 872]
ldr w0, [x0]
str w0, [sp, 84]
ldr x0, [sp, 304]
str x0, [sp, 880]
ldr x0, [sp, 880]
add x0, x0, 12
str x0, [sp, 888]
ldr x0, [sp, 304]
str x0, [sp, 896]
ldr x0, [sp, 896]
add x0, x0, 12
str x0, [sp, 904]
ldr x0, [sp, 904]
str x0, [sp, 912]
ldr x0, [sp, 912]
ldr w0, [x0]
str w0, [sp, 88]
ldr x0, [sp, 888]
str x0, [sp, 920]
ldr w0, [sp, 88]
add w1, w0, 1
ldr x0, [sp, 920]
str w1, [x0]
ldr w0, [sp, 84]
cmp w0, 0
bne .L251
ldr x0, [sp, 304]
str x0, [sp, 928]
ldr x0, [sp, 928]
add x0, x0, 32
str x0, [sp, 936]
ldr x0, [sp, 936]
str x0, [sp, 944]
ldr x0, [sp, 944]
ldr w0, [x0]
cmp w0, 0
beq .L251
str wzr, [sp, 60]
.L252:
ldr w1, [sp, 60]
ldr w0, [sp, 36]
cmp w1, w0
bge .L314
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 1000]
ldr x0, [sp, 1000]
ldr x0, [x0]
cmp x0, 0
beq .L255
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 1008]
ldr x0, [sp, 1008]
ldr x0, [x0]
str x0, [sp, 1016]
ldr x0, [sp, 1016]
str x0, [sp, 288]
b .L256
.L255:
adrp x0, .LC24
add x0, x0, :lo12:.LC24
str x0, [sp, 288]
.L256:
ldr w0, [sp, 36]
sub w0, w0, #1
str w0, [sp, 92]
ldr w1, [sp, 60]
ldr w0, [sp, 92]
cmp w1, w0
cset w0, lt
and w0, w0, 255
str w0, [sp, 96]
ldr w2, [sp, 96]
ldr x1, [sp, 288]
ldr x0, [sp, 304]
bl output_csv
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
b .L252
.L314:
nop
.L254:
ldr x0, [sp, 304]
str x0, [sp, 952]
ldr x0, [sp, 952]
add x0, x0, 16
str x0, [sp, 960]
ldr x0, [sp, 960]
str x0, [sp, 968]
ldr x0, [sp, 968]
ldr x0, [x0]
str x0, [sp, 976]
ldr x0, [sp, 976]
str x0, [sp, 984]
adrp x0, .LC25
add x0, x0, :lo12:.LC25
str x0, [sp, 992]
ldr x1, [sp, 992]
ldr x0, [sp, 984]
bl fprintf
.L251:
str xzr, [sp, 1024]
ldr x0, [sp, 1024]
str x0, [sp, 1032]
ldr x0, [sp, 24]
str x0, [sp, 1040]
ldr x1, [sp, 1040]
ldr x0, [sp, 1032]
cmp x1, x0
beq .L315
str wzr, [sp, 60]
.L258:
ldr w1, [sp, 60]
ldr w0, [sp, 36]
cmp w1, w0
bge .L316
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 1096]
ldr x0, [sp, 1096]
ldr x0, [x0]
str x0, [sp, 1104]
ldr x0, [sp, 1104]
str x0, [sp, 1112]
ldr w0, [sp, 36]
sub w0, w0, #1
str w0, [sp, 100]
ldr w1, [sp, 60]
ldr w0, [sp, 100]
cmp w1, w0
cset w0, lt
and w0, w0, 255
str w0, [sp, 104]
ldr w2, [sp, 104]
ldr x1, [sp, 1112]
ldr x0, [sp, 304]
bl output_csv
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
b .L258
.L316:
nop
.L260:
ldr x0, [sp, 304]
str x0, [sp, 1048]
ldr x0, [sp, 1048]
add x0, x0, 16
str x0, [sp, 1056]
ldr x0, [sp, 1056]
str x0, [sp, 1064]
ldr x0, [sp, 1064]
ldr x0, [x0]
str x0, [sp, 1072]
ldr x0, [sp, 1072]
str x0, [sp, 1080]
adrp x0, .LC25
add x0, x0, :lo12:.LC25
str x0, [sp, 1088]
ldr x1, [sp, 1088]
ldr x0, [sp, 1080]
bl fprintf
b .L164
.L276:
.L163:
str xzr, [sp, 400]
ldr x0, [sp, 400]
str x0, [sp, 408]
ldr x0, [sp, 24]
str x0, [sp, 416]
ldr x1, [sp, 416]
ldr x0, [sp, 408]
cmp x1, x0
beq .L317
ldr x0, [sp, 304]
str x0, [sp, 424]
ldr x0, [sp, 424]
add x0, x0, 16
str x0, [sp, 432]
ldr x0, [sp, 432]
str x0, [sp, 440]
ldr x0, [sp, 440]
ldr x0, [x0]
str x0, [sp, 448]
ldr x0, [sp, 448]
str x0, [sp, 456]
adrp x0, .LC37
add x0, x0, :lo12:.LC37
str x0, [sp, 464]
ldr x0, [sp, 304]
str x0, [sp, 472]
ldr x0, [sp, 472]
add x0, x0, 40
str x0, [sp, 480]
ldr x0, [sp, 480]
str x0, [sp, 488]
ldr x0, [sp, 488]
ldr x0, [x0]
str x0, [sp, 496]
ldr x2, [sp, 496]
ldr x1, [sp, 464]
ldr x0, [sp, 456]
bl fprintf
str wzr, [sp, 60]
.L262:
ldr w1, [sp, 60]
ldr w0, [sp, 36]
cmp w1, w0
bge .L318
ldr w0, [sp, 60]
cmp w0, 0
ble .L265
adrp x0, .LC38
add x0, x0, :lo12:.LC38
str x0, [sp, 296]
b .L266
.L265:
adrp x0, .LC24
add x0, x0, :lo12:.LC24
str x0, [sp, 296]
.L266:
ldr x0, [sp, 296]
str x0, [sp, 552]
str xzr, [sp, 560]
ldr x0, [sp, 560]
str x0, [sp, 568]
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 576]
ldr x0, [sp, 576]
ldr x0, [x0]
str x0, [sp, 584]
ldr x0, [sp, 584]
str x0, [sp, 592]
ldr x1, [sp, 592]
ldr x0, [sp, 568]
cmp x1, x0
bne .L267
ldr x0, [sp, 304]
str x0, [sp, 808]
ldr x0, [sp, 808]
add x0, x0, 16
str x0, [sp, 816]
ldr x0, [sp, 816]
str x0, [sp, 824]
ldr x0, [sp, 824]
ldr x0, [x0]
str x0, [sp, 832]
ldr x0, [sp, 832]
str x0, [sp, 840]
adrp x0, .LC39
add x0, x0, :lo12:.LC39
str x0, [sp, 848]
ldr x2, [sp, 552]
ldr x1, [sp, 848]
ldr x0, [sp, 840]
bl fprintf
b .L268
.L267:
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 600]
ldr x0, [sp, 600]
ldr x0, [x0]
str x0, [sp, 608]
ldr x0, [sp, 608]
str x0, [sp, 616]
str xzr, [sp, 624]
ldr x1, [sp, 624]
ldr x0, [sp, 616]
bl isNumber
str w0, [sp, 80]
ldr w0, [sp, 80]
cmp w0, 0
beq .L269
ldr x0, [sp, 304]
str x0, [sp, 744]
ldr x0, [sp, 744]
add x0, x0, 16
str x0, [sp, 752]
ldr x0, [sp, 752]
str x0, [sp, 760]
ldr x0, [sp, 760]
ldr x0, [x0]
str x0, [sp, 768]
ldr x0, [sp, 768]
str x0, [sp, 776]
adrp x0, .LC30
add x0, x0, :lo12:.LC30
str x0, [sp, 784]
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 792]
ldr x0, [sp, 792]
ldr x0, [x0]
str x0, [sp, 800]
ldr x3, [sp, 800]
ldr x2, [sp, 552]
ldr x1, [sp, 784]
ldr x0, [sp, 776]
bl fprintf
b .L268
.L269:
ldr x0, [sp, 552]
str x0, [sp, 632]
ldr x0, [sp, 632]
ldrb w0, [x0]
cmp w0, 0
beq .L270
ldr x0, [sp, 304]
str x0, [sp, 640]
ldr x0, [sp, 640]
add x0, x0, 16
str x0, [sp, 648]
ldr x0, [sp, 648]
str x0, [sp, 656]
ldr x0, [sp, 656]
ldr x0, [x0]
str x0, [sp, 664]
ldr x0, [sp, 664]
str x0, [sp, 672]
adrp x0, .LC6
add x0, x0, :lo12:.LC6
str x0, [sp, 680]
ldr x2, [sp, 552]
ldr x1, [sp, 680]
ldr x0, [sp, 672]
bl fprintf
.L270:
ldr x0, [sp, 304]
str x0, [sp, 688]
ldr x0, [sp, 688]
add x0, x0, 16
str x0, [sp, 696]
ldr x0, [sp, 696]
str x0, [sp, 704]
ldr x0, [sp, 704]
ldr x0, [x0]
str x0, [sp, 712]
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 720]
ldr x0, [sp, 720]
ldr x0, [x0]
str x0, [sp, 728]
ldr x0, [sp, 728]
str x0, [sp, 736]
ldr x1, [sp, 736]
ldr x0, [sp, 712]
bl output_quoted_string
.L268:
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
b .L262
.L318:
nop
.L264:
ldr x0, [sp, 304]
str x0, [sp, 504]
ldr x0, [sp, 504]
add x0, x0, 16
str x0, [sp, 512]
ldr x0, [sp, 512]
str x0, [sp, 520]
ldr x0, [sp, 520]
ldr x0, [x0]
str x0, [sp, 528]
ldr x0, [sp, 528]
str x0, [sp, 536]
adrp x0, .LC40
add x0, x0, :lo12:.LC40
str x0, [sp, 544]
ldr x1, [sp, 544]
ldr x0, [sp, 536]
bl fprintf
b .L164
.L297:
nop
b .L164
.L298:
nop
b .L164
.L303:
nop
b .L164
.L306:
nop
b .L164
.L309:
nop
b .L164
.L312:
nop
b .L164
.L315:
nop
b .L164
.L317:
nop
.L164:
mov w0, 0
ldp x29, x30, [sp]
add sp, sp, 3856
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE12:
.size callback, .-callback
.section .rodata
.align 3
.LC41:
.string "Out of memory!\n"
.text
.align 2
.type set_table_name, %function
set_table_name:
.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, 24]
str x1, [sp, 16]
ldr x0, [sp, 24]
str x0, [sp, 128]
ldr x0, [sp, 128]
add x0, x0, 40
str x0, [sp, 136]
ldr x0, [sp, 136]
str x0, [sp, 144]
ldr x0, [sp, 144]
ldr x0, [x0]
cmp x0, 0
beq .L320
ldr x0, [sp, 24]
str x0, [sp, 152]
ldr x0, [sp, 152]
add x0, x0, 40
str x0, [sp, 160]
ldr x0, [sp, 160]
str x0, [sp, 168]
ldr x0, [sp, 168]
ldr x0, [x0]
str x0, [sp, 176]
ldr x0, [sp, 176]
str x0, [sp, 184]
ldr x0, [sp, 184]
bl free
ldr x0, [sp, 24]
str x0, [sp, 192]
ldr x0, [sp, 192]
add x0, x0, 40
str x0, [sp, 200]
ldr x0, [sp, 200]
str x0, [sp, 208]
ldr x0, [sp, 208]
str xzr, [x0]
.L320:
str xzr, [sp, 216]
ldr x0, [sp, 216]
str x0, [sp, 224]
ldr x0, [sp, 16]
str x0, [sp, 232]
ldr x1, [sp, 232]
ldr x0, [sp, 224]
cmp x1, x0
beq .L340
bl __ctype_b_loc
str x0, [sp, 240]
ldr x0, [sp, 16]
ldrb w0, [x0]
strb w0, [sp, 47]
ldrb w0, [sp, 47]
strb w0, [sp, 48]
ldrb w0, [sp, 48]
str w0, [sp, 76]
ldr x0, [sp, 240]
ldr x0, [x0]
str x0, [sp, 248]
ldrsw x0, [sp, 76]
lsl x0, x0, 1
ldr x1, [sp, 248]
add x0, x1, x0
str x0, [sp, 256]
ldr x0, [sp, 256]
ldrh w0, [x0]
strh w0, [sp, 56]
ldrh w0, [sp, 56]
str w0, [sp, 80]
ldr w0, [sp, 80]
and w0, w0, 1024
cmp w0, 0
beq .L323
str wzr, [sp, 72]
b .L324
.L323:
ldr x0, [sp, 16]
ldrb w0, [x0]
strb w0, [sp, 49]
ldrb w0, [sp, 49]
str w0, [sp, 84]
ldr w0, [sp, 84]
cmp w0, 95
beq .L325
mov w0, 1
str w0, [sp, 72]
b .L324
.L325:
str wzr, [sp, 72]
.L324:
ldr w0, [sp, 72]
str w0, [sp, 68]
str wzr, [sp, 64]
ldr w0, [sp, 64]
str w0, [sp, 60]
.L326:
ldrsw x0, [sp, 60]
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 264]
ldr x0, [sp, 264]
ldrb w0, [x0]
cmp w0, 0
beq .L341
bl __ctype_b_loc
str x0, [sp, 432]
ldrsw x0, [sp, 60]
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 440]
ldr x0, [sp, 440]
ldrb w0, [x0]
strb w0, [sp, 52]
ldrb w0, [sp, 52]
strb w0, [sp, 53]
ldrb w0, [sp, 53]
str w0, [sp, 112]
ldr x0, [sp, 432]
ldr x0, [x0]
str x0, [sp, 448]
ldrsw x0, [sp, 112]
lsl x0, x0, 1
ldr x1, [sp, 448]
add x0, x1, x0
str x0, [sp, 456]
ldr x0, [sp, 456]
ldrh w0, [x0]
strh w0, [sp, 58]
ldrh w0, [sp, 58]
str w0, [sp, 116]
ldr w0, [sp, 116]
and w0, w0, 8
cmp w0, 0
bne .L329
ldrsw x0, [sp, 60]
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 464]
ldr x0, [sp, 464]
ldrb w0, [x0]
strb w0, [sp, 54]
ldrb w0, [sp, 54]
str w0, [sp, 120]
ldr w0, [sp, 120]
cmp w0, 95
beq .L329
mov w0, 1
str w0, [sp, 68]
ldrsw x0, [sp, 60]
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 472]
ldr x0, [sp, 472]
ldrb w0, [x0]
strb w0, [sp, 55]
ldrb w0, [sp, 55]
str w0, [sp, 124]
ldr w0, [sp, 124]
cmp w0, 39
bne .L329
ldr w0, [sp, 64]
add w0, w0, 1
str w0, [sp, 64]
.L329:
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
ldr w0, [sp, 64]
add w0, w0, 1
str w0, [sp, 64]
b .L326
.L341:
nop
.L328:
ldr w0, [sp, 68]
cmp w0, 0
beq .L330
ldr w0, [sp, 64]
add w0, w0, 2
str w0, [sp, 64]
.L330:
ldr w0, [sp, 64]
add w0, w0, 1
str w0, [sp, 88]
ldrsw x0, [sp, 88]
str x0, [sp, 272]
ldr x0, [sp, 272]
bl malloc
str x0, [sp, 280]
ldr x0, [sp, 280]
str x0, [sp, 288]
ldr x0, [sp, 24]
str x0, [sp, 296]
ldr x0, [sp, 296]
add x0, x0, 40
str x0, [sp, 304]
ldr x0, [sp, 304]
str x0, [sp, 312]
ldr x0, [sp, 312]
ldr x1, [sp, 288]
str x1, [x0]
ldr x0, [sp, 288]
str x0, [sp, 320]
str xzr, [sp, 328]
ldr x0, [sp, 328]
str x0, [sp, 336]
ldr x0, [sp, 320]
str x0, [sp, 344]
ldr x1, [sp, 344]
ldr x0, [sp, 336]
cmp x1, x0
bne .L331
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 416]
adrp x0, .LC41
add x0, x0, :lo12:.LC41
str x0, [sp, 424]
ldr x1, [sp, 424]
ldr x0, [sp, 416]
bl fprintf
mov w0, 1
bl exit
.L331:
str wzr, [sp, 64]
ldr w0, [sp, 68]
cmp w0, 0
beq .L332
ldr w0, [sp, 64]
str w0, [sp, 92]
ldr w0, [sp, 64]
add w0, w0, 1
str w0, [sp, 64]
ldrsw x0, [sp, 92]
ldr x1, [sp, 320]
add x0, x1, x0
str x0, [sp, 352]
ldr x0, [sp, 352]
mov w1, 39
strb w1, [x0]
.L332:
str wzr, [sp, 60]
.L333:
ldrsw x0, [sp, 60]
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 360]
ldr x0, [sp, 360]
ldrb w0, [x0]
cmp w0, 0
beq .L342
ldr w0, [sp, 64]
str w0, [sp, 100]
ldr w0, [sp, 64]
add w0, w0, 1
str w0, [sp, 64]
ldrsw x0, [sp, 100]
ldr x1, [sp, 320]
add x0, x1, x0
str x0, [sp, 384]
ldrsw x0, [sp, 60]
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 392]
ldr x0, [sp, 392]
ldrb w0, [x0]
strb w0, [sp, 50]
ldr x0, [sp, 384]
ldrb w1, [sp, 50]
strb w1, [x0]
ldrsw x0, [sp, 60]
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 400]
ldr x0, [sp, 400]
ldrb w0, [x0]
strb w0, [sp, 51]
ldrb w0, [sp, 51]
str w0, [sp, 104]
ldr w0, [sp, 104]
cmp w0, 39
bne .L336
ldr w0, [sp, 64]
str w0, [sp, 108]
ldr w0, [sp, 64]
add w0, w0, 1
str w0, [sp, 64]
ldrsw x0, [sp, 108]
ldr x1, [sp, 320]
add x0, x1, x0
str x0, [sp, 408]
ldr x0, [sp, 408]
mov w1, 39
strb w1, [x0]
.L336:
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
b .L333
.L342:
nop
.L335:
ldr w0, [sp, 68]
cmp w0, 0
beq .L337
ldr w0, [sp, 64]
str w0, [sp, 96]
ldr w0, [sp, 64]
add w0, w0, 1
str w0, [sp, 64]
ldrsw x0, [sp, 96]
ldr x1, [sp, 320]
add x0, x1, x0
str x0, [sp, 368]
ldr x0, [sp, 368]
mov w1, 39
strb w1, [x0]
.L337:
ldrsw x0, [sp, 64]
ldr x1, [sp, 320]
add x0, x1, x0
str x0, [sp, 376]
ldr x0, [sp, 376]
strb wzr, [x0]
b .L319
.L340:
nop
.L319:
ldp x29, x30, [sp], 480
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE13:
.size set_table_name, .-set_table_name
.section .rodata
.align 3
.LC42:
.string "appendText"
.align 3
.LC43:
.string "(zCsr-zIn)==len"
.text
.align 2
.type appendText, %function
appendText:
.LFB14:
.cfi_startproc
stp x29, x30, [sp, -272]!
.cfi_def_cfa_offset 272
.cfi_offset 29, -272
.cfi_offset 30, -264
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
strb w2, [sp, 31]
ldr x0, [sp, 32]
bl strlen
str x0, [sp, 120]
ldr x0, [sp, 120]
str w0, [sp, 68]
ldr x0, [sp, 40]
cmp x0, 0
beq .L344
ldr x0, [sp, 40]
str x0, [sp, 128]
ldr x0, [sp, 128]
bl strlen
str x0, [sp, 136]
ldr x0, [sp, 136]
str x0, [sp, 104]
b .L345
.L344:
str xzr, [sp, 104]
.L345:
ldr x0, [sp, 104]
str w0, [sp, 72]
ldr w1, [sp, 68]
ldr w0, [sp, 72]
add w0, w1, w0
str w0, [sp, 76]
ldr w0, [sp, 76]
add w0, w0, 1
str w0, [sp, 60]
ldrb w0, [sp, 31]
cmp w0, 0
beq .L346
ldr w0, [sp, 60]
add w0, w0, 2
str w0, [sp, 60]
str wzr, [sp, 64]
.L347:
ldr w1, [sp, 64]
ldr w0, [sp, 68]
cmp w1, w0
bge .L360
ldrb w0, [sp, 31]
str w0, [sp, 80]
ldrsw x0, [sp, 64]
ldr x1, [sp, 32]
add x0, x1, x0
str x0, [sp, 144]
ldr x0, [sp, 144]
ldrb w0, [x0]
strb w0, [sp, 57]
ldrb w0, [sp, 57]
str w0, [sp, 84]
ldr w1, [sp, 84]
ldr w0, [sp, 80]
cmp w1, w0
bne .L350
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L350:
ldr w0, [sp, 64]
add w0, w0, 1
str w0, [sp, 64]
b .L347
.L349:
.L360:
nop
.L346:
ldr x0, [sp, 40]
str x0, [sp, 152]
ldrsw x0, [sp, 60]
str x0, [sp, 160]
ldr x1, [sp, 160]
ldr x0, [sp, 152]
bl realloc
str x0, [sp, 168]
ldr x0, [sp, 168]
str x0, [sp, 40]
ldr x0, [sp, 40]
cmp x0, 0
bne .L351
mov x0, 0
b .L352
.L351:
ldrb w0, [sp, 31]
cmp w0, 0
beq .L353
ldrsw x0, [sp, 72]
ldr x1, [sp, 40]
add x0, x1, x0
str x0, [sp, 112]
ldr x0, [sp, 112]
str x0, [sp, 216]
ldr x0, [sp, 112]
add x0, x0, 1
str x0, [sp, 112]
ldr x0, [sp, 216]
ldrb w1, [sp, 31]
strb w1, [x0]
str wzr, [sp, 64]
.L354:
ldr w1, [sp, 64]
ldr w0, [sp, 68]
cmp w1, w0
bge .L361
ldr x0, [sp, 112]
str x0, [sp, 240]
ldr x0, [sp, 112]
add x0, x0, 1
str x0, [sp, 112]
ldrsw x0, [sp, 64]
ldr x1, [sp, 32]
add x0, x1, x0
str x0, [sp, 248]
ldr x0, [sp, 248]
ldrb w0, [x0]
strb w0, [sp, 58]
ldr x0, [sp, 240]
ldrb w1, [sp, 58]
strb w1, [x0]
ldrb w0, [sp, 31]
str w0, [sp, 96]
ldrsw x0, [sp, 64]
ldr x1, [sp, 32]
add x0, x1, x0
str x0, [sp, 256]
ldr x0, [sp, 256]
ldrb w0, [x0]
strb w0, [sp, 59]
ldrb w0, [sp, 59]
str w0, [sp, 100]
ldr w1, [sp, 100]
ldr w0, [sp, 96]
cmp w1, w0
bne .L357
ldr x0, [sp, 112]
str x0, [sp, 264]
ldr x0, [sp, 112]
add x0, x0, 1
str x0, [sp, 112]
ldr x0, [sp, 264]
ldrb w1, [sp, 31]
strb w1, [x0]
.L357:
ldr w0, [sp, 64]
add w0, w0, 1
str w0, [sp, 64]
b .L354
.L361:
nop
.L356:
ldr x0, [sp, 112]
str x0, [sp, 224]
ldr x0, [sp, 112]
add x0, x0, 1
str x0, [sp, 112]
ldr x0, [sp, 224]
ldrb w1, [sp, 31]
strb w1, [x0]
ldr x0, [sp, 112]
str x0, [sp, 232]
ldr x0, [sp, 112]
add x0, x0, 1
str x0, [sp, 112]
ldr x0, [sp, 232]
strb wzr, [x0]
ldr x1, [sp, 112]
ldr x0, [sp, 40]
sub x0, x1, x0
str w0, [sp, 92]
ldr w1, [sp, 92]
ldr w0, [sp, 60]
cmp w1, w0
beq .L358
adrp x0, .LC42
add x3, x0, :lo12:.LC42
mov w2, 750
adrp x0, .LC3
add x1, x0, :lo12:.LC3
adrp x0, .LC43
add x0, x0, :lo12:.LC43
bl __assert_fail
.L353:
ldrsw x0, [sp, 72]
ldr x1, [sp, 40]
add x0, x1, x0
str x0, [sp, 176]
ldr x0, [sp, 176]
str x0, [sp, 184]
ldr x0, [sp, 32]
str x0, [sp, 192]
ldrsw x0, [sp, 68]
str x0, [sp, 200]
ldr x2, [sp, 200]
ldr x1, [sp, 192]
ldr x0, [sp, 184]
bl memcpy
ldr w0, [sp, 60]
sub w0, w0, #1
str w0, [sp, 88]
ldrsw x0, [sp, 88]
ldr x1, [sp, 40]
add x0, x1, x0
str x0, [sp, 208]
ldr x0, [sp, 208]
strb wzr, [x0]
.L358:
ldr x0, [sp, 40]
.L352:
ldp x29, x30, [sp], 272
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE14:
.size appendText, .-appendText
.section .rodata
.align 3
.LC44:
.string "%s;\n"
.text
.align 2
.type run_table_dump_query, %function
run_table_dump_query:
.LFB15:
.cfi_startproc
stp x29, x30, [sp, -192]!
.cfi_def_cfa_offset 192
.cfi_offset 29, -192
.cfi_offset 30, -184
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, 184]
mov x1, 0
str xzr, [sp, 72]
add x0, sp, 64
ldr x4, [sp, 72]
mov x3, x0
mov w2, -1
ldr x1, [sp, 24]
ldr x0, [sp, 32]
bl sqlite3_prepare
str w0, [sp, 56]
ldr w0, [sp, 56]
cmp w0, 0
beq .L363
ldr w0, [sp, 56]
b .L369
.L363:
add x0, sp, 64
str x0, [sp, 80]
ldr x0, [sp, 80]
ldr x0, [x0]
str x0, [sp, 88]
ldr x0, [sp, 88]
cmp x0, 0
bne .L365
ldr w0, [sp, 56]
b .L369
.L365:
add x0, sp, 64
str x0, [sp, 96]
ldr x0, [sp, 96]
ldr x0, [x0]
str x0, [sp, 104]
ldr x0, [sp, 104]
bl sqlite3_step
str w0, [sp, 56]
.L366:
ldr w0, [sp, 56]
cmp w0, 100
bne .L372
add x0, sp, 64
str x0, [sp, 128]
ldr x0, [sp, 128]
ldr x0, [x0]
str x0, [sp, 136]
mov w1, 0
ldr x0, [sp, 136]
bl sqlite3_column_text
str x0, [sp, 144]
ldr x0, [sp, 40]
str x0, [sp, 152]
adrp x0, .LC44
add x0, x0, :lo12:.LC44
str x0, [sp, 160]
ldr x2, [sp, 144]
ldr x1, [sp, 160]
ldr x0, [sp, 152]
bl fprintf
add x0, sp, 64
str x0, [sp, 168]
ldr x0, [sp, 168]
ldr x0, [x0]
str x0, [sp, 176]
ldr x0, [sp, 176]
bl sqlite3_step
str w0, [sp, 56]
b .L366
.L372:
nop
.L368:
add x0, sp, 64
str x0, [sp, 112]
ldr x0, [sp, 112]
ldr x0, [x0]
str x0, [sp, 120]
ldr x0, [sp, 120]
bl sqlite3_finalize
str w0, [sp, 60]
ldr w0, [sp, 60]
.L369:
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 184]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L370
bl __stack_chk_fail
.L370:
mov w0, w1
ldp x29, x30, [sp], 192
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE15:
.size run_table_dump_query, .-run_table_dump_query
.section .rodata
.align 3
.LC45:
.string "sqlite_sequence"
.align 3
.LC46:
.string "DELETE FROM sqlite_sequence;\n"
.align 3
.LC47:
.string "sqlite_stat1"
.align 3
.LC48:
.string "ANALYZE sqlite_master;\n"
.align 3
.LC49:
.string "sqlite_"
.align 3
.LC50:
.string "CREATE VIRTUAL TABLE"
.align 3
.LC51:
.string "PRAGMA writable_schema=ON;\n"
.align 3
.LC52:
.string "INSERT INTO sqlite_master(type,name,tbl_name,rootpage,sql)VALUES('table','%q','%q',0,'%q');"
.align 3
.LC53:
.string "%s\n"
.align 3
.LC54:
.string "table"
.align 3
.LC55:
.string "PRAGMA table_info("
.align 3
.LC56:
.string ");"
.align 3
.LC57:
.string "SELECT 'INSERT INTO ' || "
.align 3
.LC58:
.string " || ' VALUES(' || "
.align 3
.LC59:
.string "quote("
.align 3
.LC60:
.string ") || ',' || "
.align 3
.LC61:
.string ") "
.align 3
.LC62:
.string "|| ')' FROM "
.align 3
.LC63:
.string " ORDER BY rowid DESC"
.text
.align 2
.type dump_callback, %function
dump_callback:
.LFB16:
.cfi_startproc
sub sp, sp, #800
.cfi_def_cfa_offset 800
stp x29, x30, [sp]
.cfi_offset 29, -800
.cfi_offset 30, -792
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, 792]
mov x1, 0
ldr x0, [sp, 40]
str x0, [sp, 112]
ldr w0, [sp, 36]
cmp w0, 3
beq .L374
mov w0, 1
b .L395
.L374:
ldr x0, [sp, 24]
str x0, [sp, 120]
ldr x0, [sp, 120]
ldr x0, [x0]
str x0, [sp, 128]
ldr x0, [sp, 128]
str x0, [sp, 136]
ldr x0, [sp, 24]
add x0, x0, 8
str x0, [sp, 144]
ldr x0, [sp, 144]
ldr x0, [x0]
str x0, [sp, 152]
ldr x0, [sp, 152]
str x0, [sp, 160]
ldr x0, [sp, 24]
add x0, x0, 16
str x0, [sp, 168]
ldr x0, [sp, 168]
ldr x0, [x0]
str x0, [sp, 176]
ldr x0, [sp, 176]
str x0, [sp, 184]
adrp x0, .LC45
add x1, x0, :lo12:.LC45
ldr x0, [sp, 136]
bl strcmp
str w0, [sp, 72]
ldr w0, [sp, 72]
cmp w0, 0
bne .L376
ldr x0, [sp, 112]
str x0, [sp, 448]
ldr x0, [sp, 448]
add x0, x0, 16
str x0, [sp, 456]
ldr x0, [sp, 456]
str x0, [sp, 464]
ldr x0, [sp, 464]
ldr x0, [x0]
str x0, [sp, 472]
ldr x0, [sp, 472]
str x0, [sp, 480]
adrp x0, .LC46
add x0, x0, :lo12:.LC46
str x0, [sp, 488]
ldr x1, [sp, 488]
ldr x0, [sp, 480]
bl fprintf
b .L377
.L376:
adrp x0, .LC47
add x1, x0, :lo12:.LC47
ldr x0, [sp, 136]
bl strcmp
str w0, [sp, 76]
ldr w0, [sp, 76]
cmp w0, 0
bne .L378
ldr x0, [sp, 112]
str x0, [sp, 400]
ldr x0, [sp, 400]
add x0, x0, 16
str x0, [sp, 408]
ldr x0, [sp, 408]
str x0, [sp, 416]
ldr x0, [sp, 416]
ldr x0, [x0]
str x0, [sp, 424]
ldr x0, [sp, 424]
str x0, [sp, 432]
adrp x0, .LC48
add x0, x0, :lo12:.LC48
str x0, [sp, 440]
ldr x1, [sp, 440]
ldr x0, [sp, 432]
bl fprintf
b .L377
.L378:
mov x2, 7
adrp x0, .LC49
add x1, x0, :lo12:.LC49
ldr x0, [sp, 136]
bl strncmp
str w0, [sp, 80]
ldr w0, [sp, 80]
cmp w0, 0
bne .L379
mov w0, 0
b .L395
.L379:
mov x2, 20
adrp x0, .LC50
add x1, x0, :lo12:.LC50
ldr x0, [sp, 184]
bl strncmp
str w0, [sp, 84]
ldr w0, [sp, 84]
cmp w0, 0
bne .L380
ldr x0, [sp, 112]
str x0, [sp, 240]
ldr x0, [sp, 240]
add x0, x0, 28
str x0, [sp, 248]
ldr x0, [sp, 248]
str x0, [sp, 256]
ldr x0, [sp, 256]
ldr w0, [x0]
str w0, [sp, 88]
ldr w0, [sp, 88]
cmp w0, 0
bne .L381
ldr x0, [sp, 112]
str x0, [sp, 264]
ldr x0, [sp, 264]
add x0, x0, 16
str x0, [sp, 272]
ldr x0, [sp, 272]
str x0, [sp, 280]
ldr x0, [sp, 280]
ldr x0, [x0]
str x0, [sp, 288]
ldr x0, [sp, 288]
str x0, [sp, 296]
adrp x0, .LC51
add x0, x0, :lo12:.LC51
str x0, [sp, 304]
ldr x1, [sp, 304]
ldr x0, [sp, 296]
bl fprintf
ldr x0, [sp, 112]
str x0, [sp, 312]
ldr x0, [sp, 312]
add x0, x0, 28
str x0, [sp, 320]
ldr x0, [sp, 320]
str x0, [sp, 328]
ldr x0, [sp, 328]
mov w1, 1
str w1, [x0]
.L381:
ldr x3, [sp, 184]
ldr x2, [sp, 136]
ldr x1, [sp, 136]
adrp x0, .LC52
add x0, x0, :lo12:.LC52
bl sqlite3_mprintf
str x0, [sp, 336]
ldr x0, [sp, 112]
str x0, [sp, 344]
ldr x0, [sp, 344]
add x0, x0, 16
str x0, [sp, 352]
ldr x0, [sp, 352]
str x0, [sp, 360]
ldr x0, [sp, 360]
ldr x0, [x0]
str x0, [sp, 368]
ldr x0, [sp, 368]
str x0, [sp, 376]
adrp x0, .LC53
add x0, x0, :lo12:.LC53
str x0, [sp, 384]
ldr x2, [sp, 336]
ldr x1, [sp, 384]
ldr x0, [sp, 376]
bl fprintf
ldr x0, [sp, 336]
str x0, [sp, 392]
ldr x0, [sp, 392]
bl sqlite3_free
mov w0, 0
b .L395
.L380:
ldr x0, [sp, 112]
str x0, [sp, 192]
ldr x0, [sp, 192]
add x0, x0, 16
str x0, [sp, 200]
ldr x0, [sp, 200]
str x0, [sp, 208]
ldr x0, [sp, 208]
ldr x0, [x0]
str x0, [sp, 216]
ldr x0, [sp, 216]
str x0, [sp, 224]
adrp x0, .LC44
add x0, x0, :lo12:.LC44
str x0, [sp, 232]
ldr x2, [sp, 184]
ldr x1, [sp, 232]
ldr x0, [sp, 224]
bl fprintf
.L377:
adrp x0, .LC54
add x1, x0, :lo12:.LC54
ldr x0, [sp, 160]
bl strcmp
str w0, [sp, 92]
ldr w0, [sp, 92]
cmp w0, 0
bne .L382
add x0, sp, 96
str x0, [sp, 496]
ldr x0, [sp, 496]
str xzr, [x0]
str xzr, [sp, 104]
str xzr, [sp, 504]
str xzr, [sp, 512]
mov w2, 0
adrp x0, .LC55
add x1, x0, :lo12:.LC55
ldr x0, [sp, 504]
bl appendText
str x0, [sp, 504]
mov w0, 34
strb w0, [sp, 63]
ldrb w2, [sp, 63]
ldr x1, [sp, 136]
ldr x0, [sp, 504]
bl appendText
str x0, [sp, 504]
mov w2, 0
adrp x0, .LC56
add x1, x0, :lo12:.LC56
ldr x0, [sp, 504]
bl appendText
str x0, [sp, 504]
ldr x0, [sp, 112]
str x0, [sp, 520]
ldr x0, [sp, 520]
ldr x0, [x0]
str x0, [sp, 528]
ldr x0, [sp, 504]
str x0, [sp, 536]
str xzr, [sp, 544]
add x0, sp, 96
ldr x4, [sp, 544]
mov x3, x0
mov w2, -1
ldr x1, [sp, 536]
ldr x0, [sp, 528]
bl sqlite3_prepare
str w0, [sp, 68]
ldr x0, [sp, 504]
cmp x0, 0
beq .L383
ldr x0, [sp, 504]
str x0, [sp, 552]
ldr x0, [sp, 552]
bl free
.L383:
ldr w0, [sp, 68]
cmp w0, 0
beq .L384
mov w0, 1
b .L395
.L384:
add x0, sp, 96
str x0, [sp, 560]
ldr x0, [sp, 560]
ldr x0, [x0]
str x0, [sp, 568]
ldr x0, [sp, 568]
cmp x0, 0
bne .L385
mov w0, 1
b .L395
.L385:
mov w2, 0
adrp x0, .LC57
add x1, x0, :lo12:.LC57
ldr x0, [sp, 104]
bl appendText
str x0, [sp, 104]
mov w0, 34
strb w0, [sp, 64]
ldrb w2, [sp, 64]
ldr x1, [sp, 136]
ldr x0, [sp, 512]
bl appendText
str x0, [sp, 512]
ldr x0, [sp, 512]
cmp x0, 0
beq .L386
ldr x0, [sp, 512]
str x0, [sp, 576]
mov w0, 39
strb w0, [sp, 65]
ldrb w2, [sp, 65]
ldr x1, [sp, 576]
ldr x0, [sp, 104]
bl appendText
str x0, [sp, 104]
.L386:
mov w2, 0
adrp x0, .LC58
add x1, x0, :lo12:.LC58
ldr x0, [sp, 104]
bl appendText
str x0, [sp, 104]
add x0, sp, 96
str x0, [sp, 584]
ldr x0, [sp, 584]
ldr x0, [x0]
str x0, [sp, 592]
ldr x0, [sp, 592]
bl sqlite3_step
str w0, [sp, 68]
.L387:
ldr w0, [sp, 68]
cmp w0, 100
bne .L398
add x0, sp, 96
str x0, [sp, 744]
ldr x0, [sp, 744]
ldr x0, [x0]
str x0, [sp, 752]
mov w1, 1
ldr x0, [sp, 752]
bl sqlite3_column_text
str x0, [sp, 760]
ldr x0, [sp, 760]
str x0, [sp, 768]
mov w2, 0
adrp x0, .LC59
add x1, x0, :lo12:.LC59
ldr x0, [sp, 104]
bl appendText
str x0, [sp, 104]
mov w0, 34
strb w0, [sp, 67]
ldrb w2, [sp, 67]
ldr x1, [sp, 768]
ldr x0, [sp, 104]
bl appendText
str x0, [sp, 104]
add x0, sp, 96
str x0, [sp, 776]
ldr x0, [sp, 776]
ldr x0, [x0]
str x0, [sp, 784]
ldr x0, [sp, 784]
bl sqlite3_step
str w0, [sp, 68]
ldr w0, [sp, 68]
cmp w0, 100
bne .L390
mov w2, 0
adrp x0, .LC60
add x1, x0, :lo12:.LC60
ldr x0, [sp, 104]
bl appendText
str x0, [sp, 104]
b .L387
.L390:
mov w2, 0
adrp x0, .LC61
add x1, x0, :lo12:.LC61
ldr x0, [sp, 104]
bl appendText
str x0, [sp, 104]
b .L387
.L398:
nop
.L389:
add x0, sp, 96
str x0, [sp, 600]
ldr x0, [sp, 600]
ldr x0, [x0]
str x0, [sp, 608]
ldr x0, [sp, 608]
bl sqlite3_finalize
str w0, [sp, 68]
ldr w0, [sp, 68]
cmp w0, 0
beq .L392
ldr x0, [sp, 104]
cmp x0, 0
beq .L393
ldr x0, [sp, 104]
str x0, [sp, 736]
ldr x0, [sp, 736]
bl free
.L393:
mov w0, 1
b .L395
.L392:
mov w2, 0
adrp x0, .LC62
add x1, x0, :lo12:.LC62
ldr x0, [sp, 104]
bl appendText
str x0, [sp, 104]
mov w0, 34
strb w0, [sp, 66]
ldrb w2, [sp, 66]
ldr x1, [sp, 136]
ldr x0, [sp, 104]
bl appendText
str x0, [sp, 104]
ldr x0, [sp, 112]
str x0, [sp, 616]
ldr x0, [sp, 616]
add x0, x0, 16
str x0, [sp, 624]
ldr x0, [sp, 624]
str x0, [sp, 632]
ldr x0, [sp, 632]
ldr x0, [x0]
str x0, [sp, 640]
ldr x0, [sp, 112]
str x0, [sp, 648]
ldr x0, [sp, 648]
ldr x0, [x0]
str x0, [sp, 656]
ldr x0, [sp, 104]
str x0, [sp, 664]
ldr x2, [sp, 664]
ldr x1, [sp, 656]
ldr x0, [sp, 640]
bl run_table_dump_query
str w0, [sp, 68]
ldr w0, [sp, 68]
cmp w0, 11
bne .L394
mov w2, 0
adrp x0, .LC63
add x1, x0, :lo12:.LC63
ldr x0, [sp, 104]
bl appendText
str x0, [sp, 104]
ldr x0, [sp, 112]
str x0, [sp, 672]
ldr x0, [sp, 672]
add x0, x0, 16
str x0, [sp, 680]
ldr x0, [sp, 680]
str x0, [sp, 688]
ldr x0, [sp, 688]
ldr x0, [x0]
str x0, [sp, 696]
ldr x0, [sp, 112]
str x0, [sp, 704]
ldr x0, [sp, 704]
ldr x0, [x0]
str x0, [sp, 712]
ldr x0, [sp, 104]
str x0, [sp, 720]
ldr x2, [sp, 720]
ldr x1, [sp, 712]
ldr x0, [sp, 696]
bl run_table_dump_query
str w0, [sp, 68]
.L394:
ldr x0, [sp, 104]
cmp x0, 0
beq .L382
ldr x0, [sp, 104]
str x0, [sp, 728]
ldr x0, [sp, 728]
bl free
.L382:
mov w0, 0
.L395:
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 792]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L396
bl __stack_chk_fail
.L396:
mov w0, w1
ldp x29, x30, [sp]
add sp, sp, 800
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE16:
.size dump_callback, .-dump_callback
.section .rodata
.align 3
.LC64:
.string "%s ORDER BY rowid DESC"
.text
.align 2
.type run_schema_dump_query, %function
run_schema_dump_query:
.LFB17:
.cfi_startproc
stp x29, x30, [sp, -208]!
.cfi_def_cfa_offset 208
.cfi_offset 29, -208
.cfi_offset 30, -200
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str x2, [sp, 24]
ldr x0, [sp, 40]
str x0, [sp, 72]
ldr x0, [sp, 72]
ldr x0, [x0]
str x0, [sp, 80]
ldr x0, [sp, 40]
str x0, [sp, 88]
ldr x4, [sp, 24]
ldr x3, [sp, 88]
adrp x0, dump_callback
add x2, x0, :lo12:dump_callback
ldr x1, [sp, 32]
ldr x0, [sp, 80]
bl sqlite3_exec
str w0, [sp, 56]
ldr w0, [sp, 56]
cmp w0, 11
bne .L400
ldr x0, [sp, 32]
bl strlen
str x0, [sp, 96]
ldr x0, [sp, 96]
str w0, [sp, 60]
ldr x0, [sp, 24]
cmp x0, 0
beq .L401
ldr x0, [sp, 24]
ldr x0, [x0]
str x0, [sp, 104]
ldr x0, [sp, 104]
str x0, [sp, 112]
ldr x0, [sp, 112]
bl sqlite3_free
.L401:
ldr w0, [sp, 60]
add w0, w0, 100
str w0, [sp, 64]
ldrsw x0, [sp, 64]
str x0, [sp, 120]
ldr x0, [sp, 120]
bl malloc
str x0, [sp, 128]
ldr x0, [sp, 128]
str x0, [sp, 136]
str xzr, [sp, 144]
ldr x0, [sp, 144]
str x0, [sp, 152]
ldr x0, [sp, 136]
str x0, [sp, 160]
ldr x1, [sp, 160]
ldr x0, [sp, 152]
cmp x1, x0
bne .L402
ldr w0, [sp, 56]
b .L403
.L402:
mov w0, 8
str w0, [sp, 68]
ldr x3, [sp, 32]
adrp x0, .LC64
add x2, x0, :lo12:.LC64
ldr x1, [sp, 136]
ldr w0, [sp, 68]
bl sqlite3_snprintf
ldr x0, [sp, 40]
str x0, [sp, 168]
ldr x0, [sp, 168]
ldr x0, [x0]
str x0, [sp, 176]
ldr x0, [sp, 136]
str x0, [sp, 184]
ldr x0, [sp, 40]
str x0, [sp, 192]
ldr x4, [sp, 24]
ldr x3, [sp, 192]
adrp x0, dump_callback
add x2, x0, :lo12:dump_callback
ldr x1, [sp, 184]
ldr x0, [sp, 176]
bl sqlite3_exec
str w0, [sp, 56]
ldr x0, [sp, 136]
str x0, [sp, 200]
ldr x0, [sp, 200]
bl free
.L400:
ldr w0, [sp, 56]
.L403:
ldp x29, x30, [sp], 208
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE17:
.size run_schema_dump_query, .-run_schema_dump_query
.data
.align 3
.type zHelp, %object
.size zHelp, 1904
zHelp:
.ascii ".bail ON|OFF Stop after hitting an error. Default"
.ascii " OFF\n.databases List names and files of attache"
.ascii "d databases\n.dump ?TABLE? ... Dump the database in an "
.ascii "SQL text format\n.echo ON|OFF Turn command echo on"
.ascii " or off\n.exit Exit this program\n.explain "
.ascii "ON|OFF Turn output mode suitable for EXPLAIN on or of"
.ascii "f.\n.header(s) ON|OFF Turn display of headers on or off"
.ascii "\n.help Show this message\n.import FILE TAB"
.ascii "LE Import data from FILE into TABLE\n.indices TABLE "
.ascii " Show names of all indices on TABLE\n.load FILE ?ENTRY? "
.ascii " Load an extension library\n.mode MODE ?TABLE? Set out"
.ascii "put mode where MODE is one of:\n csv"
.ascii " Comma-separated values\n colum"
.ascii "n Left-aligned columns. (See .width)\n "
.ascii " html HTML <table> code\n i"
.ascii "nsert SQL insert statements for TABLE\n "
.ascii " line One value per line\n "
.ascii "list Values delimited by .separator string\n "
.ascii " tabs Tab-separated values\n "
.ascii " tcl TCL list elements\n.nullvalue STRING "
.ascii "Print STRING in place of NULL values\n.output FILENAME "
.ascii " Send output to FILENAME\n.output stdout Send output"
.ascii " to the screen\n.prompt MAIN CONTINUE Replace the standard "
.ascii "prompts\n.quit Exit this program\n.read FIL"
.ascii "ENAME Execute SQL in FILENAME\n.schema ?TABLE? "
.ascii " Show the CREATE statements\n.separator STRING Change "
.ascii "separator used by output mode and .import\n.show "
.ascii " Show the current values for various settings\n.tab"
.string "les ?PATTERN? List names of tables matching a LIKE pattern\n.timeout MS Try opening locked tables for MS milliseconds\n.timer ON|OFF Turn the CPU timer measurement on or off\n.width NUM NUM ... Set column widths for \"column\" mode\n"
.section .rodata
.align 3
.LC65:
.string "shellstatic"
.align 3
.LC66:
.string "Unable to open database \"%s\": %s\n"
.text
.align 2
.type open_db, %function
open_db:
.LFB18:
.cfi_startproc
stp x29, x30, [sp, -304]!
.cfi_def_cfa_offset 304
.cfi_offset 29, -304
.cfi_offset 30, -296
mov x29, sp
str x0, [sp, 24]
str xzr, [sp, 48]
ldr x0, [sp, 48]
str x0, [sp, 56]
ldr x0, [sp, 24]
str x0, [sp, 64]
ldr x0, [sp, 64]
ldr x0, [x0]
str x0, [sp, 72]
ldr x0, [sp, 72]
str x0, [sp, 80]
ldr x1, [sp, 80]
ldr x0, [sp, 56]
cmp x1, x0
bne .L410
ldr x0, [sp, 24]
str x0, [sp, 88]
ldr x1, [sp, 88]
mov x0, 5400
add x0, x1, x0
str x0, [sp, 96]
ldr x0, [sp, 96]
str x0, [sp, 104]
ldr x0, [sp, 104]
ldr x0, [x0]
str x0, [sp, 112]
ldr x0, [sp, 24]
str x0, [sp, 120]
ldr x1, [sp, 120]
ldr x0, [sp, 112]
bl sqlite3_open
ldr x0, [sp, 24]
str x0, [sp, 128]
ldr x0, [sp, 128]
ldr x1, [x0]
adrp x0, db
add x0, x0, :lo12:db
str x1, [x0]
adrp x0, db
add x0, x0, :lo12:db
ldr x0, [x0]
cmp x0, 0
beq .L406
adrp x0, db
add x0, x0, :lo12:db
ldr x0, [x0]
bl sqlite3_errcode
str w0, [sp, 40]
ldr w0, [sp, 40]
cmp w0, 0
bne .L406
str xzr, [sp, 136]
str xzr, [sp, 144]
str xzr, [sp, 152]
adrp x0, db
add x0, x0, :lo12:db
ldr x8, [x0]
ldr x7, [sp, 152]
ldr x6, [sp, 144]
adrp x0, shellstaticFunc
add x5, x0, :lo12:shellstaticFunc
ldr x4, [sp, 136]
mov w3, 1
mov w2, 0
adrp x0, .LC65
add x1, x0, :lo12:.LC65
mov x0, x8
bl sqlite3_create_function
.L406:
str xzr, [sp, 160]
ldr x0, [sp, 160]
str x0, [sp, 168]
adrp x0, db
add x0, x0, :lo12:db
ldr x0, [x0]
str x0, [sp, 176]
ldr x1, [sp, 176]
ldr x0, [sp, 168]
cmp x1, x0
bne .L407
adrp x0, db
add x0, x0, :lo12:db
ldr x0, [x0]
bl sqlite3_errmsg
str x0, [sp, 200]
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 256]
adrp x0, .LC66
add x0, x0, :lo12:.LC66
str x0, [sp, 264]
ldr x0, [sp, 24]
str x0, [sp, 272]
ldr x1, [sp, 272]
mov x0, 5400
add x0, x1, x0
str x0, [sp, 280]
ldr x0, [sp, 280]
str x0, [sp, 288]
ldr x0, [sp, 288]
ldr x0, [x0]
str x0, [sp, 296]
ldr x3, [sp, 200]
ldr x2, [sp, 296]
ldr x1, [sp, 264]
ldr x0, [sp, 256]
bl fprintf
mov w0, 1
bl exit
.L407:
adrp x0, db
add x0, x0, :lo12:db
ldr x0, [x0]
bl sqlite3_errcode
str w0, [sp, 44]
ldr w0, [sp, 44]
cmp w0, 0
beq .L408
adrp x0, db
add x0, x0, :lo12:db
ldr x0, [x0]
bl sqlite3_errmsg
str x0, [sp, 200]
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 208]
adrp x0, .LC66
add x0, x0, :lo12:.LC66
str x0, [sp, 216]
ldr x0, [sp, 24]
str x0, [sp, 224]
ldr x1, [sp, 224]
mov x0, 5400
add x0, x1, x0
str x0, [sp, 232]
ldr x0, [sp, 232]
str x0, [sp, 240]
ldr x0, [sp, 240]
ldr x0, [x0]
str x0, [sp, 248]
ldr x3, [sp, 200]
ldr x2, [sp, 248]
ldr x1, [sp, 216]
ldr x0, [sp, 208]
bl fprintf
mov w0, 1
bl exit
.L408:
ldr x0, [sp, 24]
str x0, [sp, 184]
ldr x0, [sp, 184]
ldr x0, [x0]
str x0, [sp, 192]
mov w1, 1
ldr x0, [sp, 192]
bl sqlite3_enable_load_extension
nop
.L410:
nop
ldp x29, x30, [sp], 304
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE18:
.size open_db, .-open_db
.align 2
.type resolve_backslashes, %function
resolve_backslashes:
.LFB19:
.cfi_startproc
sub sp, sp, #176
.cfi_def_cfa_offset 176
str x0, [sp, 8]
str wzr, [sp, 32]
ldr w0, [sp, 32]
str w0, [sp, 28]
.L412:
ldrsw x0, [sp, 28]
ldr x1, [sp, 8]
add x0, x1, x0
str x0, [sp, 96]
ldr x0, [sp, 96]
ldrb w0, [x0]
strb w0, [sp, 20]
ldrb w0, [sp, 20]
str w0, [sp, 36]
ldr w0, [sp, 36]
cmp w0, 0
beq .L421
ldr w0, [sp, 36]
cmp w0, 92
bne .L415
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
ldrsw x0, [sp, 28]
ldr x1, [sp, 8]
add x0, x1, x0
str x0, [sp, 112]
ldr x0, [sp, 112]
ldrb w0, [x0]
strb w0, [sp, 21]
ldrb w0, [sp, 21]
str w0, [sp, 36]
ldr w0, [sp, 36]
cmp w0, 110
bne .L416
mov w0, 10
str w0, [sp, 36]
b .L415
.L416:
ldr w0, [sp, 36]
cmp w0, 116
bne .L417
mov w0, 9
str w0, [sp, 36]
b .L415
.L417:
ldr w0, [sp, 36]
cmp w0, 114
bne .L418
mov w0, 13
str w0, [sp, 36]
b .L415
.L418:
ldr w0, [sp, 36]
cmp w0, 47
ble .L415
ldr w0, [sp, 36]
cmp w0, 55
bgt .L415
ldr w0, [sp, 36]
sub w0, w0, #48
str w0, [sp, 36]
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 40]
ldrsw x0, [sp, 40]
ldr x1, [sp, 8]
add x0, x1, x0
str x0, [sp, 120]
ldr x0, [sp, 120]
ldrb w0, [x0]
strb w0, [sp, 22]
ldrb w0, [sp, 22]
str w0, [sp, 44]
ldr w0, [sp, 44]
cmp w0, 47
ble .L415
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 48]
ldrsw x0, [sp, 48]
ldr x1, [sp, 8]
add x0, x1, x0
str x0, [sp, 128]
ldr x0, [sp, 128]
ldrb w0, [x0]
strb w0, [sp, 23]
ldrb w0, [sp, 23]
str w0, [sp, 52]
ldr w0, [sp, 52]
cmp w0, 55
bgt .L415
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
ldrsw x0, [sp, 28]
ldr x1, [sp, 8]
add x0, x1, x0
str x0, [sp, 136]
ldr x0, [sp, 136]
ldrb w0, [x0]
strb w0, [sp, 24]
ldrb w0, [sp, 24]
str w0, [sp, 56]
ldr w0, [sp, 36]
lsl w0, w0, 3
str w0, [sp, 60]
ldr w1, [sp, 60]
ldr w0, [sp, 56]
add w0, w1, w0
str w0, [sp, 64]
ldr w0, [sp, 64]
sub w0, w0, #48
str w0, [sp, 36]
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 68]
ldrsw x0, [sp, 68]
ldr x1, [sp, 8]
add x0, x1, x0
str x0, [sp, 144]
ldr x0, [sp, 144]
ldrb w0, [x0]
strb w0, [sp, 25]
ldrb w0, [sp, 25]
str w0, [sp, 72]
ldr w0, [sp, 72]
cmp w0, 47
ble .L415
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 76]
ldrsw x0, [sp, 76]
ldr x1, [sp, 8]
add x0, x1, x0
str x0, [sp, 152]
ldr x0, [sp, 152]
ldrb w0, [x0]
strb w0, [sp, 26]
ldrb w0, [sp, 26]
str w0, [sp, 80]
ldr w0, [sp, 80]
cmp w0, 55
bgt .L415
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
ldrsw x0, [sp, 28]
ldr x1, [sp, 8]
add x0, x1, x0
str x0, [sp, 160]
ldr x0, [sp, 160]
ldrb w0, [x0]
strb w0, [sp, 27]
ldrb w0, [sp, 27]
str w0, [sp, 84]
ldr w0, [sp, 36]
lsl w0, w0, 3
str w0, [sp, 88]
ldr w1, [sp, 88]
ldr w0, [sp, 84]
add w0, w1, w0
str w0, [sp, 92]
ldr w0, [sp, 92]
sub w0, w0, #48
str w0, [sp, 36]
.L415:
ldrsw x0, [sp, 32]
ldr x1, [sp, 8]
add x0, x1, x0
str x0, [sp, 168]
ldr w0, [sp, 36]
and w1, w0, 255
ldr x0, [sp, 168]
strb w1, [x0]
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
b .L412
.L421:
nop
.L414:
ldrsw x0, [sp, 32]
ldr x1, [sp, 8]
add x0, x1, x0
str x0, [sp, 104]
ldr x0, [sp, 104]
strb wzr, [x0]
nop
add sp, sp, 176
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE19:
.size resolve_backslashes, .-resolve_backslashes
.section .rodata
.align 3
.LC67:
.string "on"
.align 3
.LC68:
.string "yes"
.text
.align 2
.type booleanValue, %function
booleanValue:
.LFB20:
.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, 24]
ldr x0, [sp, 24]
str x0, [sp, 64]
ldr x0, [sp, 64]
bl atoi
str w0, [sp, 44]
ldr w0, [sp, 44]
str w0, [sp, 36]
str wzr, [sp, 40]
.L423:
ldrsw x0, [sp, 40]
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 72]
ldr x0, [sp, 72]
ldrb w0, [x0]
cmp w0, 0
beq .L430
ldrsw x0, [sp, 40]
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 96]
ldr x0, [sp, 96]
ldrb w0, [x0]
strb w0, [sp, 35]
ldrb w0, [sp, 35]
str w0, [sp, 56]
ldr w0, [sp, 56]
bl tolower
str w0, [sp, 60]
ldrsw x0, [sp, 40]
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 104]
ldr w0, [sp, 60]
and w1, w0, 255
ldr x0, [sp, 104]
strb w1, [x0]
ldr w0, [sp, 40]
add w0, w0, 1
str w0, [sp, 40]
b .L423
.L430:
nop
.L425:
ldr x0, [sp, 24]
str x0, [sp, 80]
adrp x0, .LC67
add x1, x0, :lo12:.LC67
ldr x0, [sp, 80]
bl strcmp
str w0, [sp, 48]
ldr w0, [sp, 48]
cmp w0, 0
bne .L426
mov w0, 1
str w0, [sp, 36]
b .L427
.L426:
ldr x0, [sp, 24]
str x0, [sp, 88]
adrp x0, .LC68
add x1, x0, :lo12:.LC68
ldr x0, [sp, 88]
bl strcmp
str w0, [sp, 52]
ldr w0, [sp, 52]
cmp w0, 0
bne .L427
mov w0, 1
str w0, [sp, 36]
.L427:
ldr w0, [sp, 36]
ldp x29, x30, [sp], 112
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE20:
.size booleanValue, .-booleanValue
.section .rodata
.align 3
.LC69:
.string "bail"
.align 3
.LC70:
.string "databases"
.align 3
.LC71:
.string "PRAGMA database_list; "
.align 3
.LC72:
.string "Error: %s\n"
.align 3
.LC73:
.string "dump"
.align 3
.LC74:
.string "BEGIN TRANSACTION;\n"
.align 3
.LC75:
.string "PRAGMA writable_schema=ON"
.align 3
.LC76:
.string "SELECT name, type, sql FROM sqlite_master WHERE sql NOT NULL AND type=='table'"
.align 3
.LC77:
.string "SELECT sql FROM sqlite_master WHERE sql NOT NULL AND type IN ('index','trigger','view')"
.align 3
.LC78:
.string "SELECT name, type, sql FROM sqlite_master WHERE tbl_name LIKE shellstatic() AND type=='table' AND sql NOT NULL"
.align 3
.LC79:
.string "SELECT sql FROM sqlite_master WHERE sql NOT NULL AND type IN ('index','trigger','view') AND tbl_name LIKE shellstatic()"
.align 3
.LC80:
.string "PRAGMA writable_schema=OFF;\n"
.align 3
.LC81:
.string "PRAGMA writable_schema=OFF"
.align 3
.LC82:
.string "COMMIT;\n"
.align 3
.LC83:
.string "echo"
.align 3
.LC84:
.string "exit"
.align 3
.LC85:
.string "header"
.align 3
.LC86:
.string "headers"
.align 3
.LC87:
.string "help"
.align 3
.LC88:
.string "import"
.align 3
.LC89:
.string "non-null separator required for import\n"
.align 3
.LC90:
.string "SELECT * FROM '%q'"
.align 3
.LC91:
.string "INSERT INTO '%q' VALUES(?"
.align 3
.LC92:
.string "rb"
.align 3
.LC93:
.string "cannot open file: %s\n"
.align 3
.LC94:
.string "BEGIN"
.align 3
.LC95:
.string "COMMIT"
.align 3
.LC96:
.string "%s line %d: expected %d columns of data but found %d\n"
.align 3
.LC97:
.string "ROLLBACK"
.align 3
.LC98:
.string "indices"
.align 3
.LC99:
.string "SELECT name FROM sqlite_master WHERE type='index' AND tbl_name LIKE shellstatic() UNION ALL SELECT name FROM sqlite_temp_master WHERE type='index' AND tbl_name LIKE shellstatic() ORDER BY 1"
.align 3
.LC100:
.string "load"
.align 3
.LC101:
.string "mode"
.align 3
.LC102:
.string "lines"
.align 3
.LC103:
.string "columns"
.align 3
.LC104:
.string "tabs"
.align 3
.LC105:
.string "\t"
.align 3
.LC106:
.string "mode should be one of: column csv html insert line list tabs tcl\n"
.align 3
.LC107:
.string "nullvalue"
.align 3
.LC108:
.string "output"
.align 3
.LC109:
.string "stdout"
.align 3
.LC110:
.string "wb"
.align 3
.LC111:
.string "can't write to \"%s\"\n"
.align 3
.LC112:
.string "prompt"
.align 3
.LC113:
.string "quit"
.align 3
.LC114:
.string "read"
.align 3
.LC115:
.string "can't open \"%s\"\n"
.align 3
.LC116:
.string "schema"
.align 3
.LC117:
.string "sqlite_master"
.align 3
.LC118:
.string "CREATE TABLE sqlite_master (\n type text,\n name text,\n tbl_name text,\n rootpage integer,\n sql text\n)"
.align 3
.LC119:
.string "sql"
.align 3
.LC120:
.string "sqlite_temp_master"
.align 3
.LC121:
.string "CREATE TEMP TABLE sqlite_temp_master (\n type text,\n name text,\n tbl_name text,\n rootpage integer,\n sql text\n)"
.align 3
.LC122:
.string "SELECT sql FROM (SELECT * FROM sqlite_master UNION ALL SELECT * FROM sqlite_temp_master) WHERE tbl_name LIKE shellstatic() AND type!='meta' AND sql NOTNULL ORDER BY substr(type,2,1), name"
.align 3
.LC123:
.string "SELECT sql FROM (SELECT * FROM sqlite_master UNION ALL SELECT * FROM sqlite_temp_master) WHERE type!='meta' AND sql NOTNULL AND name NOT LIKE 'sqlite_%'ORDER BY substr(type,2,1), name"
.align 3
.LC124:
.string "separator"
.align 3
.LC125:
.string "show"
.align 3
.LC126:
.string "off"
.align 3
.LC127:
.string "%9.9s: %s\n"
.align 3
.LC128:
.string "%9.9s: "
.align 3
.LC129:
.string "width"
.align 3
.LC130:
.string "%d "
.align 3
.LC131:
.string "tables"
.align 3
.LC132:
.string "SELECT name FROM sqlite_master WHERE type IN ('table','view') AND name NOT LIKE 'sqlite_%'UNION ALL SELECT name FROM sqlite_temp_master WHERE type IN ('table','view') ORDER BY 1"
.align 3
.LC133:
.string "SELECT name FROM sqlite_master WHERE type IN ('table','view') AND name LIKE '%'||shellstatic()||'%' UNION ALL SELECT name FROM sqlite_temp_master WHERE type IN ('table','view') AND name LIKE '%'||shellstatic()||'%' ORDER BY 1"
.align 3
.LC134:
.string "%s%-*s"
.align 3
.LC135:
.string "timeout"
.align 3
.LC136:
.string "timer"
.align 3
.LC137:
.string "do_meta_command"
.align 3
.LC138:
.string "nArg<=(sizeof(azArg)/sizeof(azArg[0]))"
.align 3
.LC139:
.string "unknown command or invalid arguments: \"%s\". Enter \".help\" for help\n"
.text
.align 2
.type do_meta_command, %function
do_meta_command:
.LFB21:
.cfi_startproc
mov x12, 26448
sub sp, sp, x12
.cfi_def_cfa_offset 26448
stp x29, x30, [sp]
.cfi_offset 29, -26448
.cfi_offset 30, -26440
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, 26440]
mov x1, 0
mov w0, 1
str w0, [sp, 68]
str wzr, [sp, 72]
str wzr, [sp, 76]
.L432:
ldrsw x0, [sp, 68]
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 712]
ldr x0, [sp, 712]
ldrb w0, [x0]
cmp w0, 0
beq .L635
mov x0, 50
str x0, [sp, 720]
ldrsw x0, [sp, 72]
str x0, [sp, 728]
ldr x1, [sp, 728]
ldr x0, [sp, 720]
cmp x1, x0
bcs .L636
.L434:
bl __ctype_b_loc
str x0, [sp, 736]
ldrsw x0, [sp, 68]
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 744]
ldr x0, [sp, 744]
ldrb w0, [x0]
strb w0, [sp, 44]
ldrb w0, [sp, 44]
strb w0, [sp, 45]
ldrb w0, [sp, 45]
str w0, [sp, 136]
ldr x0, [sp, 736]
ldr x0, [x0]
str x0, [sp, 752]
ldrsw x0, [sp, 136]
lsl x0, x0, 1
ldr x1, [sp, 752]
add x0, x1, x0
str x0, [sp, 760]
ldr x0, [sp, 760]
ldrh w0, [x0]
strh w0, [sp, 60]
ldrh w0, [sp, 60]
str w0, [sp, 140]
ldr w0, [sp, 140]
and w0, w0, 8192
cmp w0, 0
beq .L637
ldr w0, [sp, 68]
add w0, w0, 1
str w0, [sp, 68]
b .L434
.L637:
nop
.L437:
ldrsw x0, [sp, 68]
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 768]
ldr x0, [sp, 768]
ldrb w0, [x0]
strb w0, [sp, 46]
ldrb w0, [sp, 46]
str w0, [sp, 144]
ldr w0, [sp, 144]
cmp w0, 0
beq .L638
ldrsw x0, [sp, 68]
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 776]
ldr x0, [sp, 776]
ldrb w0, [x0]
strb w0, [sp, 47]
ldrb w0, [sp, 47]
str w0, [sp, 148]
ldr w0, [sp, 148]
cmp w0, 39
beq .L639
ldrsw x0, [sp, 68]
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 784]
ldr x0, [sp, 784]
ldrb w0, [x0]
strb w0, [sp, 48]
ldrb w0, [sp, 48]
str w0, [sp, 152]
ldr w0, [sp, 152]
cmp w0, 34
bne .L441
b .L440
.L639:
nop
.L440:
ldr w0, [sp, 68]
str w0, [sp, 176]
ldr w0, [sp, 68]
add w0, w0, 1
str w0, [sp, 68]
ldrsw x0, [sp, 176]
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 904]
ldr x0, [sp, 904]
ldrb w0, [x0]
strb w0, [sp, 51]
ldrb w0, [sp, 51]
str w0, [sp, 180]
ldr w0, [sp, 72]
str w0, [sp, 184]
ldr w0, [sp, 72]
add w0, w0, 1
str w0, [sp, 72]
ldrsw x0, [sp, 184]
lsl x0, x0, 3
str x0, [sp, 912]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 912]
add x0, x1, x0
str x0, [sp, 920]
ldr x0, [sp, 920]
str x0, [sp, 928]
ldrsw x0, [sp, 68]
ldr x1, [sp, 24]
add x1, x1, x0
ldr x0, [sp, 928]
str x1, [x0]
.L442:
ldrsw x0, [sp, 68]
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 936]
ldr x0, [sp, 936]
ldrb w0, [x0]
cmp w0, 0
beq .L640
ldrsw x0, [sp, 68]
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 944]
ldr x0, [sp, 944]
ldrb w0, [x0]
strb w0, [sp, 52]
ldrb w0, [sp, 52]
str w0, [sp, 188]
ldr w1, [sp, 188]
ldr w0, [sp, 180]
cmp w1, w0
beq .L641
ldr w0, [sp, 68]
add w0, w0, 1
str w0, [sp, 68]
b .L442
.L640:
nop
b .L445
.L641:
nop
.L445:
ldrsw x0, [sp, 68]
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 952]
ldr x0, [sp, 952]
ldrb w0, [x0]
strb w0, [sp, 53]
ldrb w0, [sp, 53]
str w0, [sp, 192]
ldr w1, [sp, 192]
ldr w0, [sp, 180]
cmp w1, w0
bne .L446
ldr w0, [sp, 68]
str w0, [sp, 196]
ldr w0, [sp, 68]
add w0, w0, 1
str w0, [sp, 68]
ldrsw x0, [sp, 196]
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 960]
ldr x0, [sp, 960]
strb wzr, [x0]
.L446:
ldr w0, [sp, 180]
cmp w0, 34
bne .L432
ldr w0, [sp, 72]
sub w0, w0, #1
str w0, [sp, 200]
ldrsw x0, [sp, 200]
lsl x0, x0, 3
str x0, [sp, 968]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 968]
add x0, x1, x0
str x0, [sp, 976]
ldr x0, [sp, 976]
str x0, [sp, 984]
ldr x0, [sp, 984]
ldr x0, [x0]
str x0, [sp, 992]
ldr x0, [sp, 992]
bl resolve_backslashes
b .L432
.L441:
ldr w0, [sp, 72]
str w0, [sp, 156]
ldr w0, [sp, 72]
add w0, w0, 1
str w0, [sp, 72]
ldrsw x0, [sp, 156]
lsl x0, x0, 3
str x0, [sp, 792]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 792]
add x0, x1, x0
str x0, [sp, 800]
ldr x0, [sp, 800]
str x0, [sp, 808]
ldrsw x0, [sp, 68]
ldr x1, [sp, 24]
add x1, x1, x0
ldr x0, [sp, 808]
str x1, [x0]
.L448:
ldrsw x0, [sp, 68]
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 816]
ldr x0, [sp, 816]
ldrb w0, [x0]
cmp w0, 0
beq .L642
bl __ctype_b_loc
str x0, [sp, 824]
ldrsw x0, [sp, 68]
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 832]
ldr x0, [sp, 832]
ldrb w0, [x0]
strb w0, [sp, 49]
ldrb w0, [sp, 49]
strb w0, [sp, 50]
ldrb w0, [sp, 50]
str w0, [sp, 160]
ldr x0, [sp, 824]
ldr x0, [x0]
str x0, [sp, 840]
ldrsw x0, [sp, 160]
lsl x0, x0, 1
ldr x1, [sp, 840]
add x0, x1, x0
str x0, [sp, 848]
ldr x0, [sp, 848]
ldrh w0, [x0]
strh w0, [sp, 62]
ldrh w0, [sp, 62]
str w0, [sp, 164]
ldr w0, [sp, 164]
and w0, w0, 8192
cmp w0, 0
bne .L643
ldr w0, [sp, 68]
add w0, w0, 1
str w0, [sp, 68]
b .L448
.L642:
nop
b .L451
.L643:
nop
.L451:
ldrsw x0, [sp, 68]
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 856]
ldr x0, [sp, 856]
ldrb w0, [x0]
cmp w0, 0
beq .L452
ldr w0, [sp, 68]
str w0, [sp, 168]
ldr w0, [sp, 68]
add w0, w0, 1
str w0, [sp, 68]
ldrsw x0, [sp, 168]
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 864]
ldr x0, [sp, 864]
strb wzr, [x0]
.L452:
ldr w0, [sp, 72]
sub w0, w0, #1
str w0, [sp, 172]
ldrsw x0, [sp, 172]
lsl x0, x0, 3
str x0, [sp, 872]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 872]
add x0, x1, x0
str x0, [sp, 880]
ldr x0, [sp, 880]
str x0, [sp, 888]
ldr x0, [sp, 888]
ldr x0, [x0]
str x0, [sp, 896]
ldr x0, [sp, 896]
bl resolve_backslashes
b .L432
.L635:
nop
b .L435
.L636:
nop
b .L435
.L638:
nop
.L435:
ldr w0, [sp, 72]
cmp w0, 0
bne .L453
ldr w0, [sp, 76]
b .L627
.L453:
str xzr, [sp, 1000]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 1000]
add x0, x1, x0
str x0, [sp, 1008]
ldr x0, [sp, 1008]
str x0, [sp, 1016]
ldr x0, [sp, 1016]
ldr x0, [x0]
str x0, [sp, 1024]
ldr x0, [sp, 1024]
str x0, [sp, 1032]
ldr x0, [sp, 1032]
bl strlen
str x0, [sp, 1040]
ldr x0, [sp, 1040]
str w0, [sp, 204]
str xzr, [sp, 1048]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 1048]
add x0, x1, x0
str x0, [sp, 1056]
ldr x0, [sp, 1056]
str x0, [sp, 1064]
ldr x0, [sp, 1064]
ldr x0, [x0]
str x0, [sp, 1072]
ldr x0, [sp, 1072]
str x0, [sp, 1080]
ldr x0, [sp, 1080]
ldrb w0, [x0]
strb w0, [sp, 54]
ldrb w0, [sp, 54]
str w0, [sp, 208]
ldr w0, [sp, 208]
cmp w0, 98
bne .L644
ldr w0, [sp, 204]
cmp w0, 1
ble .L645
str xzr, [sp, 1088]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 1088]
add x0, x1, x0
str x0, [sp, 1096]
ldr x0, [sp, 1096]
str x0, [sp, 1104]
ldr x0, [sp, 1104]
ldr x0, [x0]
str x0, [sp, 1112]
ldr x0, [sp, 1112]
str x0, [sp, 1120]
ldrsw x0, [sp, 204]
str x0, [sp, 1128]
ldr x2, [sp, 1128]
adrp x0, .LC69
add x1, x0, :lo12:.LC69
ldr x0, [sp, 1120]
bl strncmp
str w0, [sp, 212]
ldr w0, [sp, 212]
cmp w0, 0
bne .L646
ldr w0, [sp, 72]
cmp w0, 1
ble .L647
mov x0, 8
str x0, [sp, 1136]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 1136]
add x0, x1, x0
str x0, [sp, 1144]
ldr x0, [sp, 1144]
str x0, [sp, 1152]
ldr x0, [sp, 1152]
ldr x0, [x0]
str x0, [sp, 1160]
ldr x0, [sp, 1160]
bl booleanValue
mov w1, w0
adrp x0, bail_on_error
add x0, x0, :lo12:bail_on_error
str w1, [x0]
b .L459
.L644:
nop
b .L455
.L645:
nop
b .L455
.L646:
nop
b .L455
.L647:
nop
.L455:
ldr w0, [sp, 208]
cmp w0, 100
bne .L648
ldr w0, [sp, 204]
cmp w0, 1
ble .L649
str xzr, [sp, 1168]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 1168]
add x0, x1, x0
str x0, [sp, 1176]
ldr x0, [sp, 1176]
str x0, [sp, 1184]
ldr x0, [sp, 1184]
ldr x0, [x0]
str x0, [sp, 1192]
ldr x0, [sp, 1192]
str x0, [sp, 1200]
ldrsw x0, [sp, 204]
str x0, [sp, 1208]
ldr x2, [sp, 1208]
adrp x0, .LC70
add x1, x0, :lo12:.LC70
ldr x0, [sp, 1200]
bl strncmp
str w0, [sp, 216]
ldr w0, [sp, 216]
cmp w0, 0
bne .L650
add x0, sp, 584
str x0, [sp, 1216]
ldr x0, [sp, 1216]
str xzr, [x0]
ldr x0, [sp, 16]
bl open_db
add x0, sp, 8192
add x0, x0, 2024
str x0, [sp, 1224]
ldr x0, [sp, 16]
str x0, [sp, 1232]
mov x2, 5408
ldr x1, [sp, 1232]
ldr x0, [sp, 1224]
bl memcpy
add x0, sp, 8192
add x0, x0, 2024
add x0, x0, 32
str x0, [sp, 1240]
ldr x0, [sp, 1240]
str x0, [sp, 1248]
ldr x0, [sp, 1248]
mov w1, 1
str w1, [x0]
add x0, sp, 8192
add x0, x0, 2024
add x0, x0, 24
str x0, [sp, 1256]
ldr x0, [sp, 1256]
str x0, [sp, 1264]
ldr x0, [sp, 1264]
mov w1, 1
str w1, [x0]
str xzr, [sp, 1272]
ldr x0, [sp, 1272]
add x0, x0, 68
str x0, [sp, 1280]
add x0, sp, 8192
add x0, x0, 2024
ldr x1, [sp, 1280]
add x0, x1, x0
str x0, [sp, 1288]
ldr x0, [sp, 1288]
str x0, [sp, 1296]
ldr x0, [sp, 1296]
mov w1, 3
str w1, [x0]
mov x0, 4
str x0, [sp, 1304]
ldr x0, [sp, 1304]
add x0, x0, 68
str x0, [sp, 1312]
add x0, sp, 8192
add x0, x0, 2024
ldr x1, [sp, 1312]
add x0, x1, x0
str x0, [sp, 1320]
ldr x0, [sp, 1320]
str x0, [sp, 1328]
ldr x0, [sp, 1328]
mov w1, 15
str w1, [x0]
mov x0, 8
str x0, [sp, 1336]
ldr x0, [sp, 1336]
add x0, x0, 68
str x0, [sp, 1344]
add x0, sp, 8192
add x0, x0, 2024
ldr x1, [sp, 1344]
add x0, x1, x0
str x0, [sp, 1352]
ldr x0, [sp, 1352]
str x0, [sp, 1360]
ldr x0, [sp, 1360]
mov w1, 58
str w1, [x0]
add x0, sp, 8192
add x0, x0, 2024
add x0, x0, 12
str x0, [sp, 1368]
ldr x0, [sp, 1368]
str x0, [sp, 1376]
ldr x0, [sp, 1376]
str wzr, [x0]
ldr x0, [sp, 16]
str x0, [sp, 1384]
ldr x0, [sp, 1384]
ldr x0, [x0]
str x0, [sp, 1392]
add x0, sp, 8192
add x0, x0, 2024
str x0, [sp, 1400]
add x0, sp, 584
mov x4, x0
ldr x3, [sp, 1400]
adrp x0, callback
add x2, x0, :lo12:callback
adrp x0, .LC71
add x1, x0, :lo12:.LC71
ldr x0, [sp, 1392]
bl sqlite3_exec
add x0, sp, 584
str x0, [sp, 1408]
ldr x0, [sp, 1408]
ldr x0, [x0]
cmp x0, 0
beq .L459
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 1416]
adrp x0, .LC72
add x0, x0, :lo12:.LC72
str x0, [sp, 1424]
add x0, sp, 584
str x0, [sp, 1432]
ldr x0, [sp, 1432]
ldr x0, [x0]
str x0, [sp, 1440]
ldr x2, [sp, 1440]
ldr x1, [sp, 1424]
ldr x0, [sp, 1416]
bl fprintf
add x0, sp, 584
str x0, [sp, 1448]
ldr x0, [sp, 1448]
ldr x0, [x0]
str x0, [sp, 1456]
ldr x0, [sp, 1456]
str x0, [sp, 1464]
ldr x0, [sp, 1464]
bl sqlite3_free
b .L459
.L648:
nop
b .L460
.L649:
nop
b .L460
.L650:
nop
.L460:
ldr w0, [sp, 208]
cmp w0, 100
bne .L651
str xzr, [sp, 1472]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 1472]
add x0, x1, x0
str x0, [sp, 1480]
ldr x0, [sp, 1480]
str x0, [sp, 1488]
ldr x0, [sp, 1488]
ldr x0, [x0]
str x0, [sp, 1496]
ldr x0, [sp, 1496]
str x0, [sp, 1504]
ldrsw x0, [sp, 204]
str x0, [sp, 1512]
ldr x2, [sp, 1512]
adrp x0, .LC73
add x1, x0, :lo12:.LC73
ldr x0, [sp, 1504]
bl strncmp
str w0, [sp, 220]
ldr w0, [sp, 220]
cmp w0, 0
bne .L652
str xzr, [sp, 1520]
ldr x0, [sp, 16]
bl open_db
ldr x0, [sp, 16]
str x0, [sp, 1528]
ldr x0, [sp, 1528]
add x0, x0, 16
str x0, [sp, 1536]
ldr x0, [sp, 1536]
str x0, [sp, 1544]
ldr x0, [sp, 1544]
ldr x0, [x0]
str x0, [sp, 1552]
ldr x0, [sp, 1552]
str x0, [sp, 1560]
adrp x0, .LC74
add x0, x0, :lo12:.LC74
str x0, [sp, 1568]
ldr x1, [sp, 1568]
ldr x0, [sp, 1560]
bl fprintf
ldr x0, [sp, 16]
str x0, [sp, 1576]
ldr x0, [sp, 1576]
add x0, x0, 28
str x0, [sp, 1584]
ldr x0, [sp, 1584]
str x0, [sp, 1592]
ldr x0, [sp, 1592]
str wzr, [x0]
ldr x0, [sp, 16]
str x0, [sp, 1600]
ldr x0, [sp, 1600]
ldr x0, [x0]
str x0, [sp, 1608]
str xzr, [sp, 1616]
str xzr, [sp, 1624]
str xzr, [sp, 1632]
ldr x4, [sp, 1632]
ldr x3, [sp, 1624]
ldr x2, [sp, 1616]
adrp x0, .LC75
add x1, x0, :lo12:.LC75
ldr x0, [sp, 1608]
bl sqlite3_exec
ldr w0, [sp, 72]
cmp w0, 1
bne .L465
str xzr, [sp, 1728]
ldr x2, [sp, 1728]
adrp x0, .LC76
add x1, x0, :lo12:.LC76
ldr x0, [sp, 16]
bl run_schema_dump_query
ldr x0, [sp, 16]
str x0, [sp, 1736]
ldr x0, [sp, 1736]
add x0, x0, 16
str x0, [sp, 1744]
ldr x0, [sp, 1744]
str x0, [sp, 1752]
ldr x0, [sp, 1752]
ldr x0, [x0]
str x0, [sp, 1760]
ldr x0, [sp, 16]
str x0, [sp, 1768]
ldr x0, [sp, 1768]
ldr x0, [x0]
str x0, [sp, 1776]
adrp x0, .LC77
add x2, x0, :lo12:.LC77
ldr x1, [sp, 1776]
ldr x0, [sp, 1760]
bl run_table_dump_query
b .L466
.L465:
mov w0, 1
str w0, [sp, 80]
.L467:
ldr w1, [sp, 80]
ldr w0, [sp, 72]
cmp w1, w0
bge .L653
ldrsw x0, [sp, 80]
lsl x0, x0, 3
str x0, [sp, 1640]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 1640]
add x0, x1, x0
str x0, [sp, 1648]
ldr x0, [sp, 1648]
str x0, [sp, 1656]
ldr x0, [sp, 1656]
ldr x0, [x0]
str x0, [sp, 1664]
adrp x0, zShellStatic
add x0, x0, :lo12:zShellStatic
ldr x1, [sp, 1664]
str x1, [x0]
str xzr, [sp, 1672]
ldr x2, [sp, 1672]
adrp x0, .LC78
add x1, x0, :lo12:.LC78
ldr x0, [sp, 16]
bl run_schema_dump_query
ldr x0, [sp, 16]
str x0, [sp, 1680]
ldr x0, [sp, 1680]
add x0, x0, 16
str x0, [sp, 1688]
ldr x0, [sp, 1688]
str x0, [sp, 1696]
ldr x0, [sp, 1696]
ldr x0, [x0]
str x0, [sp, 1704]
ldr x0, [sp, 16]
str x0, [sp, 1712]
ldr x0, [sp, 1712]
ldr x0, [x0]
str x0, [sp, 1720]
adrp x0, .LC79
add x2, x0, :lo12:.LC79
ldr x1, [sp, 1720]
ldr x0, [sp, 1704]
bl run_table_dump_query
adrp x0, zShellStatic
add x0, x0, :lo12:zShellStatic
str xzr, [x0]
ldr w0, [sp, 80]
add w0, w0, 1
str w0, [sp, 80]
b .L467
.L469:
.L653:
nop
.L466:
ldr x0, [sp, 16]
str x0, [sp, 1784]
ldr x0, [sp, 1784]
add x0, x0, 28
str x0, [sp, 1792]
ldr x0, [sp, 1792]
str x0, [sp, 1800]
ldr x0, [sp, 1800]
ldr w0, [x0]
cmp w0, 0
beq .L470
ldr x0, [sp, 16]
str x0, [sp, 1808]
ldr x0, [sp, 1808]
add x0, x0, 16
str x0, [sp, 1816]
ldr x0, [sp, 1816]
str x0, [sp, 1824]
ldr x0, [sp, 1824]
ldr x0, [x0]
str x0, [sp, 1832]
ldr x0, [sp, 1832]
str x0, [sp, 1840]
adrp x0, .LC80
add x0, x0, :lo12:.LC80
str x0, [sp, 1848]
ldr x1, [sp, 1848]
ldr x0, [sp, 1840]
bl fprintf
ldr x0, [sp, 16]
str x0, [sp, 1856]
ldr x0, [sp, 1856]
add x0, x0, 28
str x0, [sp, 1864]
ldr x0, [sp, 1864]
str x0, [sp, 1872]
ldr x0, [sp, 1872]
str wzr, [x0]
.L470:
ldr x0, [sp, 16]
str x0, [sp, 1880]
ldr x0, [sp, 1880]
ldr x0, [x0]
str x0, [sp, 1888]
str xzr, [sp, 1896]
str xzr, [sp, 1904]
str xzr, [sp, 1912]
ldr x4, [sp, 1912]
ldr x3, [sp, 1904]
ldr x2, [sp, 1896]
adrp x0, .LC81
add x1, x0, :lo12:.LC81
ldr x0, [sp, 1888]
bl sqlite3_exec
ldr x0, [sp, 1520]
cmp x0, 0
beq .L471
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 1968]
adrp x0, .LC72
add x0, x0, :lo12:.LC72
str x0, [sp, 1976]
ldr x2, [sp, 1520]
ldr x1, [sp, 1976]
ldr x0, [sp, 1968]
bl fprintf
ldr x0, [sp, 1520]
str x0, [sp, 1984]
ldr x0, [sp, 1984]
bl sqlite3_free
b .L459
.L471:
ldr x0, [sp, 16]
str x0, [sp, 1920]
ldr x0, [sp, 1920]
add x0, x0, 16
str x0, [sp, 1928]
ldr x0, [sp, 1928]
str x0, [sp, 1936]
ldr x0, [sp, 1936]
ldr x0, [x0]
str x0, [sp, 1944]
ldr x0, [sp, 1944]
str x0, [sp, 1952]
adrp x0, .LC82
add x0, x0, :lo12:.LC82
str x0, [sp, 1960]
ldr x1, [sp, 1960]
ldr x0, [sp, 1952]
bl fprintf
b .L459
.L651:
nop
b .L463
.L652:
nop
.L463:
ldr w0, [sp, 208]
cmp w0, 101
bne .L654
str xzr, [sp, 1992]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 1992]
add x0, x1, x0
str x0, [sp, 2000]
ldr x0, [sp, 2000]
str x0, [sp, 2008]
ldr x0, [sp, 2008]
ldr x0, [x0]
str x0, [sp, 2016]
ldr x0, [sp, 2016]
str x0, [sp, 2024]
ldrsw x0, [sp, 204]
str x0, [sp, 2032]
ldr x2, [sp, 2032]
adrp x0, .LC83
add x1, x0, :lo12:.LC83
ldr x0, [sp, 2024]
bl strncmp
str w0, [sp, 224]
ldr w0, [sp, 224]
cmp w0, 0
bne .L655
ldr w0, [sp, 72]
cmp w0, 1
ble .L656
ldr x0, [sp, 16]
str x0, [sp, 2040]
ldr x0, [sp, 2040]
add x0, x0, 8
str x0, [sp, 2048]
mov x0, 8
str x0, [sp, 2056]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 2056]
add x0, x1, x0
str x0, [sp, 2064]
ldr x0, [sp, 2064]
str x0, [sp, 2072]
ldr x0, [sp, 2072]
ldr x0, [x0]
str x0, [sp, 2080]
ldr x0, [sp, 2048]
str x0, [sp, 2088]
ldr x0, [sp, 2080]
bl booleanValue
mov w1, w0
ldr x0, [sp, 2088]
str w1, [x0]
b .L459
.L654:
nop
b .L472
.L655:
nop
b .L472
.L656:
nop
.L472:
ldr w0, [sp, 208]
cmp w0, 101
bne .L657
str xzr, [sp, 2096]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 2096]
add x0, x1, x0
str x0, [sp, 2104]
ldr x0, [sp, 2104]
str x0, [sp, 2112]
ldr x0, [sp, 2112]
ldr x0, [x0]
str x0, [sp, 2120]
ldr x0, [sp, 2120]
str x0, [sp, 2128]
ldrsw x0, [sp, 204]
str x0, [sp, 2136]
ldr x2, [sp, 2136]
adrp x0, .LC84
add x1, x0, :lo12:.LC84
ldr x0, [sp, 2128]
bl strncmp
str w0, [sp, 228]
ldr w0, [sp, 228]
cmp w0, 0
bne .L658
mov w0, 2
str w0, [sp, 76]
b .L459
.L657:
nop
b .L475
.L658:
nop
.L475:
ldr w0, [sp, 208]
cmp w0, 101
bne .L659
str xzr, [sp, 2144]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 2144]
add x0, x1, x0
str x0, [sp, 2152]
ldr x0, [sp, 2152]
str x0, [sp, 2160]
ldr x0, [sp, 2160]
ldr x0, [x0]
str x0, [sp, 2168]
ldr x0, [sp, 2168]
str x0, [sp, 2176]
ldrsw x0, [sp, 204]
str x0, [sp, 2184]
ldr x2, [sp, 2184]
adrp x0, .LC15
add x1, x0, :lo12:.LC15
ldr x0, [sp, 2176]
bl strncmp
str w0, [sp, 232]
ldr w0, [sp, 232]
cmp w0, 0
bne .L660
ldr w0, [sp, 72]
cmp w0, 1
ble .L479
mov x0, 8
str x0, [sp, 2192]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 2192]
add x0, x1, x0
str x0, [sp, 2200]
ldr x0, [sp, 2200]
str x0, [sp, 2208]
ldr x0, [sp, 2208]
ldr x0, [x0]
str x0, [sp, 2216]
ldr x0, [sp, 2216]
bl booleanValue
str w0, [sp, 236]
ldr w0, [sp, 236]
str w0, [sp, 84]
b .L480
.L479:
mov w0, 1
str w0, [sp, 84]
.L480:
ldr w0, [sp, 84]
str w0, [sp, 240]
ldr w0, [sp, 240]
cmp w0, 1
bne .L481
ldr x0, [sp, 16]
str x0, [sp, 2488]
ldr x0, [sp, 2488]
add x0, x0, 888
str x0, [sp, 2496]
ldr x0, [sp, 2496]
str x0, [sp, 2504]
ldr x0, [sp, 2504]
ldr w0, [x0]
str w0, [sp, 244]
ldr w0, [sp, 244]
cmp w0, 0
bne .L482
ldr x0, [sp, 16]
str x0, [sp, 2512]
ldr x0, [sp, 2512]
add x0, x0, 888
str x0, [sp, 2520]
ldr x0, [sp, 2520]
str x0, [sp, 2528]
ldr x0, [sp, 2528]
mov w1, 1
str w1, [x0]
mov x0, 892
str x0, [sp, 2536]
ldr x0, [sp, 16]
str x0, [sp, 2544]
ldr x1, [sp, 2544]
ldr x0, [sp, 2536]
add x0, x1, x0
str x0, [sp, 2552]
ldr x0, [sp, 16]
str x0, [sp, 2560]
ldr x0, [sp, 2560]
add x0, x0, 24
str x0, [sp, 2568]
ldr x0, [sp, 2552]
str x0, [sp, 2576]
ldr x0, [sp, 2568]
str x0, [sp, 2584]
ldr x0, [sp, 2584]
ldr w1, [x0]
ldr x0, [sp, 2576]
str w1, [x0]
mov x0, 896
str x0, [sp, 2592]
ldr x0, [sp, 16]
str x0, [sp, 2600]
ldr x1, [sp, 2600]
ldr x0, [sp, 2592]
add x0, x1, x0
str x0, [sp, 2608]
ldr x0, [sp, 16]
str x0, [sp, 2616]
ldr x0, [sp, 2616]
add x0, x0, 32
str x0, [sp, 2624]
ldr x0, [sp, 2608]
str x0, [sp, 2632]
ldr x0, [sp, 2624]
str x0, [sp, 2640]
ldr x0, [sp, 2640]
ldr w1, [x0]
ldr x0, [sp, 2632]
str w1, [x0]
str xzr, [sp, 2648]
ldr x0, [sp, 2648]
add x0, x0, 12
str x0, [sp, 2656]
ldr x0, [sp, 2656]
add x0, x0, 888
str x0, [sp, 2664]
ldr x0, [sp, 16]
str x0, [sp, 2672]
ldr x1, [sp, 2672]
ldr x0, [sp, 2664]
add x0, x1, x0
str x0, [sp, 2680]
ldr x0, [sp, 2680]
str x0, [sp, 2688]
ldr x0, [sp, 2688]
str x0, [sp, 2696]
str xzr, [sp, 2704]
ldr x0, [sp, 2704]
add x0, x0, 68
str x0, [sp, 2712]
ldr x0, [sp, 16]
str x0, [sp, 2720]
ldr x1, [sp, 2720]
ldr x0, [sp, 2712]
add x0, x1, x0
str x0, [sp, 2728]
ldr x0, [sp, 2728]
str x0, [sp, 2736]
ldr x0, [sp, 2736]
str x0, [sp, 2744]
mov x2, 400
ldr x1, [sp, 2744]
ldr x0, [sp, 2696]
bl memcpy
.L482:
ldr x0, [sp, 16]
str x0, [sp, 2752]
ldr x0, [sp, 2752]
add x0, x0, 24
str x0, [sp, 2760]
ldr x0, [sp, 2760]
str x0, [sp, 2768]
ldr x0, [sp, 2768]
mov w1, 8
str w1, [x0]
ldr x0, [sp, 16]
str x0, [sp, 2776]
ldr x0, [sp, 2776]
add x0, x0, 32
str x0, [sp, 2784]
ldr x0, [sp, 2784]
str x0, [sp, 2792]
ldr x0, [sp, 2792]
mov w1, 1
str w1, [x0]
str xzr, [sp, 2800]
ldr x0, [sp, 2800]
add x0, x0, 68
str x0, [sp, 2808]
ldr x0, [sp, 16]
str x0, [sp, 2816]
ldr x1, [sp, 2816]
ldr x0, [sp, 2808]
add x0, x1, x0
str x0, [sp, 2824]
ldr x0, [sp, 2824]
str x0, [sp, 2832]
ldr x0, [sp, 2832]
str x0, [sp, 2840]
mov x0, 100
str x0, [sp, 2848]
ldr x2, [sp, 2848]
mov w1, 0
ldr x0, [sp, 2840]
bl memset
str xzr, [sp, 2856]
ldr x0, [sp, 2856]
add x0, x0, 68
str x0, [sp, 2864]
ldr x0, [sp, 16]
str x0, [sp, 2872]
ldr x1, [sp, 2872]
ldr x0, [sp, 2864]
add x0, x1, x0
str x0, [sp, 2880]
ldr x0, [sp, 2880]
str x0, [sp, 2888]
ldr x0, [sp, 2888]
mov w1, 4
str w1, [x0]
mov x0, 4
str x0, [sp, 2896]
ldr x0, [sp, 2896]
add x0, x0, 68
str x0, [sp, 2904]
ldr x0, [sp, 16]
str x0, [sp, 2912]
ldr x1, [sp, 2912]
ldr x0, [sp, 2904]
add x0, x1, x0
str x0, [sp, 2920]
ldr x0, [sp, 2920]
str x0, [sp, 2928]
ldr x0, [sp, 2928]
mov w1, 13
str w1, [x0]
mov x0, 8
str x0, [sp, 2936]
ldr x0, [sp, 2936]
add x0, x0, 68
str x0, [sp, 2944]
ldr x0, [sp, 16]
str x0, [sp, 2952]
ldr x1, [sp, 2952]
ldr x0, [sp, 2944]
add x0, x1, x0
str x0, [sp, 2960]
ldr x0, [sp, 2960]
str x0, [sp, 2968]
ldr x0, [sp, 2968]
mov w1, 4
str w1, [x0]
mov x0, 12
str x0, [sp, 2976]
ldr x0, [sp, 2976]
add x0, x0, 68
str x0, [sp, 2984]
ldr x0, [sp, 16]
str x0, [sp, 2992]
ldr x1, [sp, 2992]
ldr x0, [sp, 2984]
add x0, x1, x0
str x0, [sp, 3000]
ldr x0, [sp, 3000]
str x0, [sp, 3008]
ldr x0, [sp, 3008]
mov w1, 4
str w1, [x0]
mov x0, 16
str x0, [sp, 3016]
ldr x0, [sp, 3016]
add x0, x0, 68
str x0, [sp, 3024]
ldr x0, [sp, 16]
str x0, [sp, 3032]
ldr x1, [sp, 3032]
ldr x0, [sp, 3024]
add x0, x1, x0
str x0, [sp, 3040]
ldr x0, [sp, 3040]
str x0, [sp, 3048]
ldr x0, [sp, 3048]
mov w1, 4
str w1, [x0]
mov x0, 20
str x0, [sp, 3056]
ldr x0, [sp, 3056]
add x0, x0, 68
str x0, [sp, 3064]
ldr x0, [sp, 16]
str x0, [sp, 3072]
ldr x1, [sp, 3072]
ldr x0, [sp, 3064]
add x0, x1, x0
str x0, [sp, 3080]
ldr x0, [sp, 3080]
str x0, [sp, 3088]
ldr x0, [sp, 3088]
mov w1, 13
str w1, [x0]
mov x0, 24
str x0, [sp, 3096]
ldr x0, [sp, 3096]
add x0, x0, 68
str x0, [sp, 3104]
ldr x0, [sp, 16]
str x0, [sp, 3112]
ldr x1, [sp, 3112]
ldr x0, [sp, 3104]
add x0, x1, x0
str x0, [sp, 3120]
ldr x0, [sp, 3120]
str x0, [sp, 3128]
ldr x0, [sp, 3128]
mov w1, 2
str w1, [x0]
mov x0, 28
str x0, [sp, 3136]
ldr x0, [sp, 3136]
add x0, x0, 68
str x0, [sp, 3144]
ldr x0, [sp, 16]
str x0, [sp, 3152]
ldr x1, [sp, 3152]
ldr x0, [sp, 3144]
add x0, x1, x0
str x0, [sp, 3160]
ldr x0, [sp, 3160]
str x0, [sp, 3168]
ldr x0, [sp, 3168]
mov w1, 13
str w1, [x0]
b .L459
.L481:
ldr x0, [sp, 16]
str x0, [sp, 2224]
ldr x0, [sp, 2224]
add x0, x0, 888
str x0, [sp, 2232]
ldr x0, [sp, 2232]
str x0, [sp, 2240]
ldr x0, [sp, 2240]
ldr w0, [x0]
cmp w0, 0
beq .L459
ldr x0, [sp, 16]
str x0, [sp, 2248]
ldr x0, [sp, 2248]
add x0, x0, 888
str x0, [sp, 2256]
ldr x0, [sp, 2256]
str x0, [sp, 2264]
ldr x0, [sp, 2264]
str wzr, [x0]
ldr x0, [sp, 16]
str x0, [sp, 2272]
ldr x0, [sp, 2272]
add x0, x0, 24
str x0, [sp, 2280]
mov x0, 892
str x0, [sp, 2288]
ldr x0, [sp, 16]
str x0, [sp, 2296]
ldr x1, [sp, 2296]
ldr x0, [sp, 2288]
add x0, x1, x0
str x0, [sp, 2304]
ldr x0, [sp, 2280]
str x0, [sp, 2312]
ldr x0, [sp, 2304]
str x0, [sp, 2320]
ldr x0, [sp, 2320]
ldr w1, [x0]
ldr x0, [sp, 2312]
str w1, [x0]
ldr x0, [sp, 16]
str x0, [sp, 2328]
ldr x0, [sp, 2328]
add x0, x0, 32
str x0, [sp, 2336]
mov x0, 896
str x0, [sp, 2344]
ldr x0, [sp, 16]
str x0, [sp, 2352]
ldr x1, [sp, 2352]
ldr x0, [sp, 2344]
add x0, x1, x0
str x0, [sp, 2360]
ldr x0, [sp, 2336]
str x0, [sp, 2368]
ldr x0, [sp, 2360]
str x0, [sp, 2376]
ldr x0, [sp, 2376]
ldr w1, [x0]
ldr x0, [sp, 2368]
str w1, [x0]
str xzr, [sp, 2384]
ldr x0, [sp, 2384]
add x0, x0, 68
str x0, [sp, 2392]
ldr x0, [sp, 16]
str x0, [sp, 2400]
ldr x1, [sp, 2400]
ldr x0, [sp, 2392]
add x0, x1, x0
str x0, [sp, 2408]
ldr x0, [sp, 2408]
str x0, [sp, 2416]
ldr x0, [sp, 2416]
str x0, [sp, 2424]
str xzr, [sp, 2432]
ldr x0, [sp, 2432]
add x0, x0, 12
str x0, [sp, 2440]
ldr x0, [sp, 2440]
add x0, x0, 888
str x0, [sp, 2448]
ldr x0, [sp, 16]
str x0, [sp, 2456]
ldr x1, [sp, 2456]
ldr x0, [sp, 2448]
add x0, x1, x0
str x0, [sp, 2464]
ldr x0, [sp, 2464]
str x0, [sp, 2472]
ldr x0, [sp, 2472]
str x0, [sp, 2480]
mov x2, 400
ldr x1, [sp, 2480]
ldr x0, [sp, 2424]
bl memcpy
b .L459
.L659:
nop
b .L477
.L660:
nop
.L477:
ldr w0, [sp, 208]
cmp w0, 104
bne .L661
str xzr, [sp, 3176]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 3176]
add x0, x1, x0
str x0, [sp, 3184]
ldr x0, [sp, 3184]
str x0, [sp, 3192]
ldr x0, [sp, 3192]
ldr x0, [x0]
str x0, [sp, 3200]
ldr x0, [sp, 3200]
str x0, [sp, 3208]
ldrsw x0, [sp, 204]
str x0, [sp, 3216]
ldr x2, [sp, 3216]
adrp x0, .LC85
add x1, x0, :lo12:.LC85
ldr x0, [sp, 3208]
bl strncmp
str w0, [sp, 248]
ldr w0, [sp, 248]
cmp w0, 0
beq .L662
str xzr, [sp, 3224]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 3224]
add x0, x1, x0
str x0, [sp, 3232]
ldr x0, [sp, 3232]
str x0, [sp, 3240]
ldr x0, [sp, 3240]
ldr x0, [x0]
str x0, [sp, 3248]
ldr x0, [sp, 3248]
str x0, [sp, 3256]
ldrsw x0, [sp, 204]
str x0, [sp, 3264]
ldr x2, [sp, 3264]
adrp x0, .LC86
add x1, x0, :lo12:.LC86
ldr x0, [sp, 3256]
bl strncmp
str w0, [sp, 252]
ldr w0, [sp, 252]
cmp w0, 0
bne .L663
b .L485
.L662:
nop
.L485:
ldr w0, [sp, 72]
cmp w0, 1
ble .L664
ldr x0, [sp, 16]
str x0, [sp, 3272]
ldr x0, [sp, 3272]
add x0, x0, 32
str x0, [sp, 3280]
mov x0, 8
str x0, [sp, 3288]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 3288]
add x0, x1, x0
str x0, [sp, 3296]
ldr x0, [sp, 3296]
str x0, [sp, 3304]
ldr x0, [sp, 3304]
ldr x0, [x0]
str x0, [sp, 3312]
ldr x0, [sp, 3280]
str x0, [sp, 3320]
ldr x0, [sp, 3312]
bl booleanValue
mov w1, w0
ldr x0, [sp, 3320]
str w1, [x0]
b .L459
.L661:
nop
b .L483
.L663:
nop
b .L483
.L664:
nop
.L483:
ldr w0, [sp, 208]
cmp w0, 104
bne .L665
str xzr, [sp, 3328]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 3328]
add x0, x1, x0
str x0, [sp, 3336]
ldr x0, [sp, 3336]
str x0, [sp, 3344]
ldr x0, [sp, 3344]
ldr x0, [x0]
str x0, [sp, 3352]
ldr x0, [sp, 3352]
str x0, [sp, 3360]
ldrsw x0, [sp, 204]
str x0, [sp, 3368]
ldr x2, [sp, 3368]
adrp x0, .LC87
add x1, x0, :lo12:.LC87
ldr x0, [sp, 3360]
bl strncmp
str w0, [sp, 256]
ldr w0, [sp, 256]
cmp w0, 0
bne .L666
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 3376]
str xzr, [sp, 3384]
adrp x0, zHelp
add x0, x0, :lo12:zHelp
ldr x1, [sp, 3384]
add x0, x1, x0
str x0, [sp, 3392]
ldr x0, [sp, 3392]
str x0, [sp, 3400]
ldr x0, [sp, 3400]
str x0, [sp, 3408]
ldr x1, [sp, 3408]
ldr x0, [sp, 3376]
bl fprintf
b .L459
.L665:
nop
b .L488
.L666:
nop
.L488:
ldr w0, [sp, 208]
cmp w0, 105
bne .L667
str xzr, [sp, 3416]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 3416]
add x0, x1, x0
str x0, [sp, 3424]
ldr x0, [sp, 3424]
str x0, [sp, 3432]
ldr x0, [sp, 3432]
ldr x0, [x0]
str x0, [sp, 3440]
ldr x0, [sp, 3440]
str x0, [sp, 3448]
ldrsw x0, [sp, 204]
str x0, [sp, 3456]
ldr x2, [sp, 3456]
adrp x0, .LC88
add x1, x0, :lo12:.LC88
ldr x0, [sp, 3448]
bl strncmp
str w0, [sp, 260]
ldr w0, [sp, 260]
cmp w0, 0
bne .L668
ldr w0, [sp, 72]
cmp w0, 2
ble .L669
mov x0, 16
str x0, [sp, 3464]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 3464]
add x0, x1, x0
str x0, [sp, 3472]
ldr x0, [sp, 3472]
str x0, [sp, 3480]
ldr x0, [sp, 3480]
ldr x0, [x0]
str x0, [sp, 3488]
mov x0, 8
str x0, [sp, 3496]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 3496]
add x0, x1, x0
str x0, [sp, 3504]
ldr x0, [sp, 3504]
str x0, [sp, 3512]
ldr x0, [sp, 3512]
ldr x0, [x0]
str x0, [sp, 3520]
str wzr, [sp, 100]
ldr x0, [sp, 16]
bl open_db
str xzr, [sp, 3528]
ldr x0, [sp, 3528]
add x0, x0, 48
str x0, [sp, 3536]
ldr x0, [sp, 16]
str x0, [sp, 3544]
ldr x1, [sp, 3544]
ldr x0, [sp, 3536]
add x0, x1, x0
str x0, [sp, 3552]
ldr x0, [sp, 3552]
str x0, [sp, 3560]
ldr x0, [sp, 3560]
str x0, [sp, 3568]
ldr x0, [sp, 3568]
bl strlen
str x0, [sp, 3576]
ldr x0, [sp, 3576]
str w0, [sp, 264]
ldr w0, [sp, 264]
cmp w0, 0
bne .L493
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 4432]
adrp x0, .LC89
add x0, x0, :lo12:.LC89
str x0, [sp, 4440]
ldr x1, [sp, 4440]
ldr x0, [sp, 4432]
bl fprintf
mov w0, 0
b .L627
.L493:
ldr x1, [sp, 3488]
adrp x0, .LC90
add x0, x0, :lo12:.LC90
bl sqlite3_mprintf
str x0, [sp, 3584]
str xzr, [sp, 3592]
ldr x0, [sp, 3592]
str x0, [sp, 3600]
ldr x0, [sp, 3584]
str x0, [sp, 3608]
ldr x1, [sp, 3608]
ldr x0, [sp, 3600]
cmp x1, x0
bne .L494
mov w0, 0
b .L627
.L494:
ldr x0, [sp, 3584]
str x0, [sp, 3616]
ldr x0, [sp, 3616]
bl strlen
str x0, [sp, 3624]
ldr x0, [sp, 3624]
str w0, [sp, 268]
ldr x0, [sp, 16]
str x0, [sp, 3632]
ldr x0, [sp, 3632]
ldr x0, [x0]
str x0, [sp, 3640]
ldr x0, [sp, 3584]
str x0, [sp, 3648]
str xzr, [sp, 3656]
add x0, sp, 592
ldr x4, [sp, 3656]
mov x3, x0
mov w2, -1
ldr x1, [sp, 3648]
ldr x0, [sp, 3640]
bl sqlite3_prepare
str w0, [sp, 272]
ldr x0, [sp, 3584]
str x0, [sp, 3664]
ldr x0, [sp, 3664]
bl sqlite3_free
ldr w0, [sp, 272]
cmp w0, 0
beq .L495
adrp x0, db
add x0, x0, :lo12:db
ldr x0, [x0]
bl sqlite3_errmsg
str x0, [sp, 3688]
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 3696]
adrp x0, .LC72
add x0, x0, :lo12:.LC72
str x0, [sp, 3704]
ldr x2, [sp, 3688]
ldr x1, [sp, 3704]
ldr x0, [sp, 3696]
bl fprintf
str wzr, [sp, 88]
mov w0, 1
str w0, [sp, 272]
b .L496
.L495:
add x0, sp, 592
str x0, [sp, 3672]
ldr x0, [sp, 3672]
ldr x0, [x0]
str x0, [sp, 3680]
ldr x0, [sp, 3680]
bl sqlite3_column_count
str w0, [sp, 88]
.L496:
add x0, sp, 592
str x0, [sp, 3712]
ldr x0, [sp, 3712]
ldr x0, [x0]
str x0, [sp, 3720]
ldr x0, [sp, 3720]
bl sqlite3_finalize
ldr w0, [sp, 88]
cmp w0, 0
bne .L497
mov w0, 0
b .L627
.L497:
ldr w0, [sp, 88]
lsl w0, w0, 1
str w0, [sp, 276]
ldr w0, [sp, 268]
add w0, w0, 20
str w0, [sp, 280]
ldr w1, [sp, 280]
ldr w0, [sp, 276]
add w0, w1, w0
str w0, [sp, 284]
ldrsw x0, [sp, 284]
str x0, [sp, 3728]
ldr x0, [sp, 3728]
bl malloc
str x0, [sp, 3736]
ldr x0, [sp, 3736]
str x0, [sp, 3584]
str xzr, [sp, 3744]
ldr x0, [sp, 3744]
str x0, [sp, 3752]
ldr x0, [sp, 3584]
str x0, [sp, 3760]
ldr x1, [sp, 3760]
ldr x0, [sp, 3752]
cmp x1, x0
bne .L498
mov w0, 0
b .L627
.L498:
ldr w0, [sp, 268]
add w0, w0, 20
str w0, [sp, 288]
ldr x3, [sp, 3488]
adrp x0, .LC91
add x2, x0, :lo12:.LC91
ldr x1, [sp, 3584]
ldr w0, [sp, 288]
bl sqlite3_snprintf
ldr x0, [sp, 3584]
str x0, [sp, 3768]
ldr x0, [sp, 3768]
bl strlen
str x0, [sp, 3776]
ldr x0, [sp, 3776]
str w0, [sp, 96]
mov w0, 1
str w0, [sp, 92]
.L499:
ldr w1, [sp, 92]
ldr w0, [sp, 88]
cmp w1, w0
bge .L670
ldr w0, [sp, 96]
str w0, [sp, 336]
ldr w0, [sp, 96]
add w0, w0, 1
str w0, [sp, 96]
ldrsw x0, [sp, 336]
ldr x1, [sp, 3584]
add x0, x1, x0
str x0, [sp, 4416]
ldr x0, [sp, 4416]
mov w1, 44
strb w1, [x0]
ldr w0, [sp, 96]
str w0, [sp, 340]
ldr w0, [sp, 96]
add w0, w0, 1
str w0, [sp, 96]
ldrsw x0, [sp, 340]
ldr x1, [sp, 3584]
add x0, x1, x0
str x0, [sp, 4424]
ldr x0, [sp, 4424]
mov w1, 63
strb w1, [x0]
ldr w0, [sp, 92]
add w0, w0, 1
str w0, [sp, 92]
b .L499
.L670:
nop
.L501:
ldr w0, [sp, 96]
str w0, [sp, 292]
ldr w0, [sp, 96]
add w0, w0, 1
str w0, [sp, 96]
ldrsw x0, [sp, 292]
ldr x1, [sp, 3584]
add x0, x1, x0
str x0, [sp, 3784]
ldr x0, [sp, 3784]
mov w1, 41
strb w1, [x0]
ldrsw x0, [sp, 96]
ldr x1, [sp, 3584]
add x0, x1, x0
str x0, [sp, 3792]
ldr x0, [sp, 3792]
strb wzr, [x0]
ldr x0, [sp, 16]
str x0, [sp, 3800]
ldr x0, [sp, 3800]
ldr x0, [x0]
str x0, [sp, 3808]
ldr x0, [sp, 3584]
str x0, [sp, 3816]
str xzr, [sp, 3824]
add x0, sp, 592
ldr x4, [sp, 3824]
mov x3, x0
mov w2, -1
ldr x1, [sp, 3816]
ldr x0, [sp, 3808]
bl sqlite3_prepare
str w0, [sp, 272]
ldr x0, [sp, 3584]
str x0, [sp, 3832]
ldr x0, [sp, 3832]
bl free
ldr w0, [sp, 272]
cmp w0, 0
beq .L502
adrp x0, db
add x0, x0, :lo12:db
ldr x0, [x0]
bl sqlite3_errmsg
str x0, [sp, 4376]
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 4384]
adrp x0, .LC72
add x0, x0, :lo12:.LC72
str x0, [sp, 4392]
ldr x2, [sp, 4376]
ldr x1, [sp, 4392]
ldr x0, [sp, 4384]
bl fprintf
add x0, sp, 592
str x0, [sp, 4400]
ldr x0, [sp, 4400]
ldr x0, [x0]
str x0, [sp, 4408]
ldr x0, [sp, 4408]
bl sqlite3_finalize
mov w0, 1
b .L627
.L502:
ldr x0, [sp, 3520]
str x0, [sp, 3840]
adrp x0, .LC92
add x0, x0, :lo12:.LC92
str x0, [sp, 3848]
ldr x1, [sp, 3848]
ldr x0, [sp, 3840]
bl fopen
str x0, [sp, 3856]
str xzr, [sp, 3864]
ldr x0, [sp, 3864]
str x0, [sp, 3872]
ldr x0, [sp, 3856]
str x0, [sp, 3880]
ldr x1, [sp, 3880]
ldr x0, [sp, 3872]
cmp x1, x0
bne .L503
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 4344]
adrp x0, .LC93
add x0, x0, :lo12:.LC93
str x0, [sp, 4352]
ldr x2, [sp, 3520]
ldr x1, [sp, 4352]
ldr x0, [sp, 4344]
bl fprintf
add x0, sp, 592
str x0, [sp, 4360]
ldr x0, [sp, 4360]
ldr x0, [x0]
str x0, [sp, 4368]
ldr x0, [sp, 4368]
bl sqlite3_finalize
mov w0, 0
b .L627
.L503:
ldr w0, [sp, 88]
add w0, w0, 1
str w0, [sp, 296]
ldrsw x0, [sp, 296]
str x0, [sp, 3888]
ldr x0, [sp, 3888]
lsl x0, x0, 3
str x0, [sp, 3896]
ldr x0, [sp, 3896]
bl malloc
str x0, [sp, 3904]
ldr x0, [sp, 3904]
str x0, [sp, 3912]
str xzr, [sp, 3920]
ldr x0, [sp, 3920]
str x0, [sp, 3928]
ldr x0, [sp, 3912]
str x0, [sp, 3936]
ldr x1, [sp, 3936]
ldr x0, [sp, 3928]
cmp x1, x0
bne .L504
ldr x0, [sp, 3856]
bl fclose
mov w0, 0
b .L627
.L504:
ldr x0, [sp, 16]
str x0, [sp, 3944]
ldr x0, [sp, 3944]
ldr x0, [x0]
str x0, [sp, 3952]
str xzr, [sp, 3960]
str xzr, [sp, 3968]
str xzr, [sp, 3976]
ldr x4, [sp, 3976]
ldr x3, [sp, 3968]
ldr x2, [sp, 3960]
adrp x0, .LC94
add x1, x0, :lo12:.LC94
ldr x0, [sp, 3952]
bl sqlite3_exec
adrp x0, .LC95
add x0, x0, :lo12:.LC95
str x0, [sp, 640]
.L505:
str xzr, [sp, 3984]
ldr x1, [sp, 3856]
ldr x0, [sp, 3984]
bl local_getline
str x0, [sp, 3992]
str xzr, [sp, 4000]
ldr x0, [sp, 4000]
str x0, [sp, 4008]
ldr x0, [sp, 3992]
str x0, [sp, 4016]
ldr x1, [sp, 4016]
ldr x0, [sp, 4008]
cmp x1, x0
beq .L671
str wzr, [sp, 92]
ldr w0, [sp, 100]
add w0, w0, 1
str w0, [sp, 100]
ldr x0, [sp, 3912]
str x0, [sp, 4024]
ldr x0, [sp, 4024]
ldr x1, [sp, 3992]
str x1, [x0]
str wzr, [sp, 92]
ldr x0, [sp, 3992]
str x0, [sp, 648]
.L508:
ldr x0, [sp, 648]
ldrb w0, [x0]
cmp w0, 0
beq .L672
ldr x0, [sp, 648]
ldrb w0, [x0]
strb w0, [sp, 55]
ldrb w0, [sp, 55]
str w0, [sp, 300]
ldr w0, [sp, 300]
cmp w0, 10
beq .L673
ldr x0, [sp, 648]
ldrb w0, [x0]
strb w0, [sp, 56]
ldrb w0, [sp, 56]
str w0, [sp, 304]
ldr w0, [sp, 304]
cmp w0, 13
beq .L674
str xzr, [sp, 4032]
ldr x0, [sp, 4032]
add x0, x0, 48
str x0, [sp, 4040]
ldr x0, [sp, 16]
str x0, [sp, 4048]
ldr x1, [sp, 4048]
ldr x0, [sp, 4040]
add x0, x1, x0
str x0, [sp, 4056]
ldr x0, [sp, 4056]
str x0, [sp, 4064]
ldr x0, [sp, 4064]
ldrb w0, [x0]
strb w0, [sp, 57]
ldrb w0, [sp, 57]
str w0, [sp, 308]
ldr x0, [sp, 648]
ldrb w0, [x0]
strb w0, [sp, 58]
ldrb w0, [sp, 58]
str w0, [sp, 312]
ldr w1, [sp, 312]
ldr w0, [sp, 308]
cmp w1, w0
bne .L513
ldr x0, [sp, 648]
str x0, [sp, 4072]
str xzr, [sp, 4080]
ldr x0, [sp, 4080]
add x0, x0, 48
str x0, [sp, 4088]
ldr x0, [sp, 16]
str x0, [sp, 4096]
ldr x1, [sp, 4096]
ldr x0, [sp, 4088]
add x0, x1, x0
str x0, [sp, 4104]
ldr x0, [sp, 4104]
str x0, [sp, 4112]
ldr x0, [sp, 4112]
str x0, [sp, 4120]
ldrsw x0, [sp, 264]
str x0, [sp, 4128]
ldr x2, [sp, 4128]
ldr x1, [sp, 4120]
ldr x0, [sp, 4072]
bl strncmp
str w0, [sp, 316]
ldr w0, [sp, 316]
cmp w0, 0
bne .L513
ldr x0, [sp, 648]
strb wzr, [x0]
ldr w0, [sp, 92]
add w0, w0, 1
str w0, [sp, 92]
ldr w1, [sp, 92]
ldr w0, [sp, 88]
cmp w1, w0
bge .L513
ldrsw x0, [sp, 92]
lsl x0, x0, 3
ldr x1, [sp, 3912]
add x0, x1, x0
str x0, [sp, 4136]
ldrsw x0, [sp, 264]
ldr x1, [sp, 648]
add x1, x1, x0
ldr x0, [sp, 4136]
str x1, [x0]
ldr w0, [sp, 264]
sub w0, w0, #1
str w0, [sp, 320]
ldrsw x0, [sp, 320]
ldr x1, [sp, 648]
add x0, x1, x0
str x0, [sp, 648]
.L513:
ldr x0, [sp, 648]
add x0, x0, 1
str x0, [sp, 648]
b .L508
.L672:
nop
b .L512
.L673:
nop
b .L512
.L674:
nop
.L512:
ldr x0, [sp, 648]
strb wzr, [x0]
ldr w0, [sp, 92]
add w0, w0, 1
str w0, [sp, 324]
ldr w1, [sp, 324]
ldr w0, [sp, 88]
cmp w1, w0
beq .L514
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 4256]
adrp x0, .LC96
add x0, x0, :lo12:.LC96
str x0, [sp, 4264]
ldr w0, [sp, 92]
add w0, w0, 1
str w0, [sp, 332]
ldr w5, [sp, 332]
ldr w4, [sp, 88]
ldr w3, [sp, 100]
ldr x2, [sp, 3520]
ldr x1, [sp, 4264]
ldr x0, [sp, 4256]
bl fprintf
adrp x0, .LC97
add x0, x0, :lo12:.LC97
str x0, [sp, 640]
b .L507
.L514:
str wzr, [sp, 92]
.L515:
ldr w1, [sp, 92]
ldr w0, [sp, 88]
cmp w1, w0
bge .L675
add x0, sp, 592
str x0, [sp, 4208]
ldr x0, [sp, 4208]
ldr x0, [x0]
str x0, [sp, 4216]
ldr w0, [sp, 92]
add w0, w0, 1
str w0, [sp, 328]
ldrsw x0, [sp, 92]
lsl x0, x0, 3
ldr x1, [sp, 3912]
add x0, x1, x0
str x0, [sp, 4224]
ldr x0, [sp, 4224]
ldr x0, [x0]
str x0, [sp, 4232]
ldr x0, [sp, 4232]
str x0, [sp, 4240]
str xzr, [sp, 4248]
ldr x4, [sp, 4248]
mov w3, -1
ldr x2, [sp, 4240]
ldr w1, [sp, 328]
ldr x0, [sp, 4216]
bl sqlite3_bind_text
ldr w0, [sp, 92]
add w0, w0, 1
str w0, [sp, 92]
b .L515
.L675:
nop
.L517:
add x0, sp, 592
str x0, [sp, 4144]
ldr x0, [sp, 4144]
ldr x0, [x0]
str x0, [sp, 4152]
ldr x0, [sp, 4152]
bl sqlite3_step
add x0, sp, 592
str x0, [sp, 4160]
ldr x0, [sp, 4160]
ldr x0, [x0]
str x0, [sp, 4168]
ldr x0, [sp, 4168]
bl sqlite3_reset
str w0, [sp, 272]
ldr x0, [sp, 3992]
str x0, [sp, 4176]
ldr x0, [sp, 4176]
bl free
ldr w0, [sp, 272]
cmp w0, 0
beq .L505
adrp x0, db
add x0, x0, :lo12:db
ldr x0, [x0]
bl sqlite3_errmsg
str x0, [sp, 4184]
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 4192]
adrp x0, .LC72
add x0, x0, :lo12:.LC72
str x0, [sp, 4200]
ldr x2, [sp, 4184]
ldr x1, [sp, 4200]
ldr x0, [sp, 4192]
bl fprintf
adrp x0, .LC97
add x0, x0, :lo12:.LC97
str x0, [sp, 640]
mov w0, 1
str w0, [sp, 272]
b .L507
.L671:
nop
.L507:
ldr x0, [sp, 3912]
str x0, [sp, 4272]
ldr x0, [sp, 4272]
bl free
ldr x0, [sp, 3856]
bl fclose
add x0, sp, 592
str x0, [sp, 4280]
ldr x0, [sp, 4280]
ldr x0, [x0]
str x0, [sp, 4288]
ldr x0, [sp, 4288]
bl sqlite3_finalize
ldr x0, [sp, 16]
str x0, [sp, 4296]
ldr x0, [sp, 4296]
ldr x0, [x0]
str x0, [sp, 4304]
ldr x0, [sp, 640]
str x0, [sp, 4312]
str xzr, [sp, 4320]
str xzr, [sp, 4328]
str xzr, [sp, 4336]
ldr x4, [sp, 4336]
ldr x3, [sp, 4328]
ldr x2, [sp, 4320]
ldr x1, [sp, 4312]
ldr x0, [sp, 4304]
bl sqlite3_exec
b .L459
.L667:
nop
b .L490
.L668:
nop
b .L490
.L669:
nop
.L490:
ldr w0, [sp, 208]
cmp w0, 105
bne .L676
str xzr, [sp, 4448]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 4448]
add x0, x1, x0
str x0, [sp, 4456]
ldr x0, [sp, 4456]
str x0, [sp, 4464]
ldr x0, [sp, 4464]
ldr x0, [x0]
str x0, [sp, 4472]
ldr x0, [sp, 4472]
str x0, [sp, 4480]
ldrsw x0, [sp, 204]
str x0, [sp, 4488]
ldr x2, [sp, 4488]
adrp x0, .LC98
add x1, x0, :lo12:.LC98
ldr x0, [sp, 4480]
bl strncmp
str w0, [sp, 344]
ldr w0, [sp, 344]
cmp w0, 0
bne .L677
ldr w0, [sp, 72]
cmp w0, 1
ble .L678
add x0, sp, 600
str x0, [sp, 4496]
ldr x0, [sp, 4496]
str xzr, [x0]
ldr x0, [sp, 16]
bl open_db
add x0, sp, 12288
add x0, x0, 3336
str x0, [sp, 4504]
ldr x0, [sp, 16]
str x0, [sp, 4512]
mov x2, 5408
ldr x1, [sp, 4512]
ldr x0, [sp, 4504]
bl memcpy
add x0, sp, 12288
add x0, x0, 3336
add x0, x0, 32
str x0, [sp, 4520]
ldr x0, [sp, 4520]
str x0, [sp, 4528]
ldr x0, [sp, 4528]
str wzr, [x0]
add x0, sp, 12288
add x0, x0, 3336
add x0, x0, 24
str x0, [sp, 4536]
ldr x0, [sp, 4536]
str x0, [sp, 4544]
ldr x0, [sp, 4544]
mov w1, 2
str w1, [x0]
mov x0, 8
str x0, [sp, 4552]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 4552]
add x0, x1, x0
str x0, [sp, 4560]
ldr x0, [sp, 4560]
str x0, [sp, 4568]
ldr x0, [sp, 4568]
ldr x0, [x0]
str x0, [sp, 4576]
adrp x0, zShellStatic
add x0, x0, :lo12:zShellStatic
ldr x1, [sp, 4576]
str x1, [x0]
ldr x0, [sp, 16]
str x0, [sp, 4584]
ldr x0, [sp, 4584]
ldr x0, [x0]
str x0, [sp, 4592]
add x0, sp, 12288
add x0, x0, 3336
str x0, [sp, 4600]
add x0, sp, 600
mov x4, x0
ldr x3, [sp, 4600]
adrp x0, callback
add x2, x0, :lo12:callback
adrp x0, .LC99
add x1, x0, :lo12:.LC99
ldr x0, [sp, 4592]
bl sqlite3_exec
adrp x0, zShellStatic
add x0, x0, :lo12:zShellStatic
str xzr, [x0]
add x0, sp, 600
str x0, [sp, 4608]
ldr x0, [sp, 4608]
ldr x0, [x0]
cmp x0, 0
beq .L459
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 4616]
adrp x0, .LC72
add x0, x0, :lo12:.LC72
str x0, [sp, 4624]
add x0, sp, 600
str x0, [sp, 4632]
ldr x0, [sp, 4632]
ldr x0, [x0]
str x0, [sp, 4640]
ldr x2, [sp, 4640]
ldr x1, [sp, 4624]
ldr x0, [sp, 4616]
bl fprintf
add x0, sp, 600
str x0, [sp, 4648]
ldr x0, [sp, 4648]
ldr x0, [x0]
str x0, [sp, 4656]
ldr x0, [sp, 4656]
str x0, [sp, 4664]
ldr x0, [sp, 4664]
bl sqlite3_free
b .L459
.L676:
nop
b .L519
.L677:
nop
b .L519
.L678:
nop
.L519:
ldr w0, [sp, 208]
cmp w0, 108
bne .L679
str xzr, [sp, 4672]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 4672]
add x0, x1, x0
str x0, [sp, 4680]
ldr x0, [sp, 4680]
str x0, [sp, 4688]
ldr x0, [sp, 4688]
ldr x0, [x0]
str x0, [sp, 4696]
ldr x0, [sp, 4696]
str x0, [sp, 4704]
ldrsw x0, [sp, 204]
str x0, [sp, 4712]
ldr x2, [sp, 4712]
adrp x0, .LC100
add x1, x0, :lo12:.LC100
ldr x0, [sp, 4704]
bl strncmp
str w0, [sp, 348]
ldr w0, [sp, 348]
cmp w0, 0
bne .L680
ldr w0, [sp, 72]
cmp w0, 1
ble .L681
add x0, sp, 608
str x0, [sp, 4720]
ldr x0, [sp, 4720]
str xzr, [x0]
mov x0, 8
str x0, [sp, 4728]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 4728]
add x0, x1, x0
str x0, [sp, 4736]
ldr x0, [sp, 4736]
str x0, [sp, 4744]
ldr x0, [sp, 4744]
ldr x0, [x0]
str x0, [sp, 4752]
ldr x0, [sp, 4752]
str x0, [sp, 4760]
ldr w0, [sp, 72]
cmp w0, 2
ble .L525
mov x0, 16
str x0, [sp, 4768]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 4768]
add x0, x1, x0
str x0, [sp, 4776]
ldr x0, [sp, 4776]
str x0, [sp, 4784]
ldr x0, [sp, 4784]
ldr x0, [x0]
str x0, [sp, 4792]
ldr x0, [sp, 4792]
str x0, [sp, 656]
b .L526
.L525:
str xzr, [sp, 656]
.L526:
ldr x0, [sp, 16]
bl open_db
ldr x0, [sp, 16]
str x0, [sp, 4800]
ldr x0, [sp, 4800]
ldr x0, [x0]
str x0, [sp, 4808]
add x0, sp, 608
mov x3, x0
ldr x2, [sp, 656]
ldr x1, [sp, 4760]
ldr x0, [sp, 4808]
bl sqlite3_load_extension
str w0, [sp, 352]
ldr w0, [sp, 352]
cmp w0, 0
beq .L459
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 4816]
adrp x0, .LC53
add x0, x0, :lo12:.LC53
str x0, [sp, 4824]
add x0, sp, 608
str x0, [sp, 4832]
ldr x0, [sp, 4832]
ldr x0, [x0]
str x0, [sp, 4840]
ldr x2, [sp, 4840]
ldr x1, [sp, 4824]
ldr x0, [sp, 4816]
bl fprintf
add x0, sp, 608
str x0, [sp, 4848]
ldr x0, [sp, 4848]
ldr x0, [x0]
str x0, [sp, 4856]
ldr x0, [sp, 4856]
str x0, [sp, 4864]
ldr x0, [sp, 4864]
bl sqlite3_free
mov w0, 1
str w0, [sp, 352]
b .L459
.L679:
nop
b .L522
.L680:
nop
b .L522
.L681:
nop
.L522:
ldr w0, [sp, 208]
cmp w0, 109
bne .L682
str xzr, [sp, 4872]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 4872]
add x0, x1, x0
str x0, [sp, 4880]
ldr x0, [sp, 4880]
str x0, [sp, 4888]
ldr x0, [sp, 4888]
ldr x0, [x0]
str x0, [sp, 4896]
ldr x0, [sp, 4896]
str x0, [sp, 4904]
ldrsw x0, [sp, 204]
str x0, [sp, 4912]
ldr x2, [sp, 4912]
adrp x0, .LC101
add x1, x0, :lo12:.LC101
ldr x0, [sp, 4904]
bl strncmp
str w0, [sp, 356]
ldr w0, [sp, 356]
cmp w0, 0
bne .L683
ldr w0, [sp, 72]
cmp w0, 1
ble .L684
mov x0, 8
str x0, [sp, 4920]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 4920]
add x0, x1, x0
str x0, [sp, 4928]
ldr x0, [sp, 4928]
str x0, [sp, 4936]
ldr x0, [sp, 4936]
ldr x0, [x0]
str x0, [sp, 4944]
ldr x0, [sp, 4944]
str x0, [sp, 4952]
ldr x0, [sp, 4952]
bl strlen
str x0, [sp, 4960]
ldr x0, [sp, 4960]
str w0, [sp, 360]
mov x0, 8
str x0, [sp, 4968]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 4968]
add x0, x1, x0
str x0, [sp, 4976]
ldr x0, [sp, 4976]
str x0, [sp, 4984]
ldr x0, [sp, 4984]
ldr x0, [x0]
str x0, [sp, 4992]
ldr x0, [sp, 4992]
str x0, [sp, 5000]
ldrsw x0, [sp, 360]
str x0, [sp, 5008]
ldr x2, [sp, 5008]
adrp x0, .LC7
add x1, x0, :lo12:.LC7
ldr x0, [sp, 5000]
bl strncmp
str w0, [sp, 364]
ldr w0, [sp, 364]
cmp w0, 0
bne .L530
ldr x0, [sp, 16]
str x0, [sp, 5800]
ldr x0, [sp, 5800]
add x0, x0, 24
str x0, [sp, 5808]
ldr x0, [sp, 5808]
str x0, [sp, 5816]
ldr x0, [sp, 5816]
str wzr, [x0]
b .L459
.L530:
mov x0, 8
str x0, [sp, 5016]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 5016]
add x0, x1, x0
str x0, [sp, 5024]
ldr x0, [sp, 5024]
str x0, [sp, 5032]
ldr x0, [sp, 5032]
ldr x0, [x0]
str x0, [sp, 5040]
ldr x0, [sp, 5040]
str x0, [sp, 5048]
ldrsw x0, [sp, 360]
str x0, [sp, 5056]
ldr x2, [sp, 5056]
adrp x0, .LC102
add x1, x0, :lo12:.LC102
ldr x0, [sp, 5048]
bl strncmp
str w0, [sp, 368]
ldr w0, [sp, 368]
cmp w0, 0
bne .L531
ldr x0, [sp, 16]
str x0, [sp, 5776]
ldr x0, [sp, 5776]
add x0, x0, 24
str x0, [sp, 5784]
ldr x0, [sp, 5784]
str x0, [sp, 5792]
ldr x0, [sp, 5792]
str wzr, [x0]
b .L459
.L531:
mov x0, 8
str x0, [sp, 5064]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 5064]
add x0, x1, x0
str x0, [sp, 5072]
ldr x0, [sp, 5072]
str x0, [sp, 5080]
ldr x0, [sp, 5080]
ldr x0, [x0]
str x0, [sp, 5088]
ldr x0, [sp, 5088]
str x0, [sp, 5096]
ldrsw x0, [sp, 360]
str x0, [sp, 5104]
ldr x2, [sp, 5104]
adrp x0, .LC8
add x1, x0, :lo12:.LC8
ldr x0, [sp, 5096]
bl strncmp
str w0, [sp, 372]
ldr w0, [sp, 372]
cmp w0, 0
bne .L532
ldr x0, [sp, 16]
str x0, [sp, 5752]
ldr x0, [sp, 5752]
add x0, x0, 24
str x0, [sp, 5760]
ldr x0, [sp, 5760]
str x0, [sp, 5768]
ldr x0, [sp, 5768]
mov w1, 1
str w1, [x0]
b .L459
.L532:
mov x0, 8
str x0, [sp, 5112]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 5112]
add x0, x1, x0
str x0, [sp, 5120]
ldr x0, [sp, 5120]
str x0, [sp, 5128]
ldr x0, [sp, 5128]
ldr x0, [x0]
str x0, [sp, 5136]
ldr x0, [sp, 5136]
str x0, [sp, 5144]
ldrsw x0, [sp, 360]
str x0, [sp, 5152]
ldr x2, [sp, 5152]
adrp x0, .LC103
add x1, x0, :lo12:.LC103
ldr x0, [sp, 5144]
bl strncmp
str w0, [sp, 376]
ldr w0, [sp, 376]
cmp w0, 0
bne .L533
ldr x0, [sp, 16]
str x0, [sp, 5728]
ldr x0, [sp, 5728]
add x0, x0, 24
str x0, [sp, 5736]
ldr x0, [sp, 5736]
str x0, [sp, 5744]
ldr x0, [sp, 5744]
mov w1, 1
str w1, [x0]
b .L459
.L533:
mov x0, 8
str x0, [sp, 5160]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 5160]
add x0, x1, x0
str x0, [sp, 5168]
ldr x0, [sp, 5168]
str x0, [sp, 5176]
ldr x0, [sp, 5176]
ldr x0, [x0]
str x0, [sp, 5184]
ldr x0, [sp, 5184]
str x0, [sp, 5192]
ldrsw x0, [sp, 360]
str x0, [sp, 5200]
ldr x2, [sp, 5200]
adrp x0, .LC9
add x1, x0, :lo12:.LC9
ldr x0, [sp, 5192]
bl strncmp
str w0, [sp, 380]
ldr w0, [sp, 380]
cmp w0, 0
bne .L534
ldr x0, [sp, 16]
str x0, [sp, 5704]
ldr x0, [sp, 5704]
add x0, x0, 24
str x0, [sp, 5712]
ldr x0, [sp, 5712]
str x0, [sp, 5720]
ldr x0, [sp, 5720]
mov w1, 2
str w1, [x0]
b .L459
.L534:
mov x0, 8
str x0, [sp, 5208]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 5208]
add x0, x1, x0
str x0, [sp, 5216]
ldr x0, [sp, 5216]
str x0, [sp, 5224]
ldr x0, [sp, 5224]
ldr x0, [x0]
str x0, [sp, 5232]
ldr x0, [sp, 5232]
str x0, [sp, 5240]
ldrsw x0, [sp, 360]
str x0, [sp, 5248]
ldr x2, [sp, 5248]
adrp x0, .LC11
add x1, x0, :lo12:.LC11
ldr x0, [sp, 5240]
bl strncmp
str w0, [sp, 384]
ldr w0, [sp, 384]
cmp w0, 0
bne .L535
ldr x0, [sp, 16]
str x0, [sp, 5680]
ldr x0, [sp, 5680]
add x0, x0, 24
str x0, [sp, 5688]
ldr x0, [sp, 5688]
str x0, [sp, 5696]
ldr x0, [sp, 5696]
mov w1, 4
str w1, [x0]
b .L459
.L535:
mov x0, 8
str x0, [sp, 5256]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 5256]
add x0, x1, x0
str x0, [sp, 5264]
ldr x0, [sp, 5264]
str x0, [sp, 5272]
ldr x0, [sp, 5272]
ldr x0, [x0]
str x0, [sp, 5280]
ldr x0, [sp, 5280]
str x0, [sp, 5288]
ldrsw x0, [sp, 360]
str x0, [sp, 5296]
ldr x2, [sp, 5296]
adrp x0, .LC13
add x1, x0, :lo12:.LC13
ldr x0, [sp, 5288]
bl strncmp
str w0, [sp, 388]
ldr w0, [sp, 388]
cmp w0, 0
bne .L536
ldr x0, [sp, 16]
str x0, [sp, 5656]
ldr x0, [sp, 5656]
add x0, x0, 24
str x0, [sp, 5664]
ldr x0, [sp, 5664]
str x0, [sp, 5672]
ldr x0, [sp, 5672]
mov w1, 6
str w1, [x0]
b .L459
.L536:
mov x0, 8
str x0, [sp, 5304]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 5304]
add x0, x1, x0
str x0, [sp, 5312]
ldr x0, [sp, 5312]
str x0, [sp, 5320]
ldr x0, [sp, 5320]
ldr x0, [x0]
str x0, [sp, 5328]
ldr x0, [sp, 5328]
str x0, [sp, 5336]
ldrsw x0, [sp, 360]
str x0, [sp, 5344]
ldr x2, [sp, 5344]
adrp x0, .LC14
add x1, x0, :lo12:.LC14
ldr x0, [sp, 5336]
bl strncmp
str w0, [sp, 392]
ldr w0, [sp, 392]
cmp w0, 0
bne .L537
ldr x0, [sp, 16]
str x0, [sp, 5592]
ldr x0, [sp, 5592]
add x0, x0, 24
str x0, [sp, 5600]
ldr x0, [sp, 5600]
str x0, [sp, 5608]
ldr x0, [sp, 5608]
mov w1, 7
str w1, [x0]
mov w0, 20
str w0, [sp, 408]
str xzr, [sp, 5616]
ldr x0, [sp, 5616]
add x0, x0, 48
str x0, [sp, 5624]
ldr x0, [sp, 16]
str x0, [sp, 5632]
ldr x1, [sp, 5632]
ldr x0, [sp, 5624]
add x0, x1, x0
str x0, [sp, 5640]
ldr x0, [sp, 5640]
str x0, [sp, 5648]
adrp x0, .LC38
add x2, x0, :lo12:.LC38
ldr x1, [sp, 5648]
ldr w0, [sp, 408]
bl sqlite3_snprintf
b .L459
.L537:
mov x0, 8
str x0, [sp, 5352]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 5352]
add x0, x1, x0
str x0, [sp, 5360]
ldr x0, [sp, 5360]
str x0, [sp, 5368]
ldr x0, [sp, 5368]
ldr x0, [x0]
str x0, [sp, 5376]
ldr x0, [sp, 5376]
str x0, [sp, 5384]
ldrsw x0, [sp, 360]
str x0, [sp, 5392]
ldr x2, [sp, 5392]
adrp x0, .LC104
add x1, x0, :lo12:.LC104
ldr x0, [sp, 5384]
bl strncmp
str w0, [sp, 396]
ldr w0, [sp, 396]
cmp w0, 0
bne .L538
ldr x0, [sp, 16]
str x0, [sp, 5528]
ldr x0, [sp, 5528]
add x0, x0, 24
str x0, [sp, 5536]
ldr x0, [sp, 5536]
str x0, [sp, 5544]
ldr x0, [sp, 5544]
mov w1, 2
str w1, [x0]
mov w0, 20
str w0, [sp, 404]
str xzr, [sp, 5552]
ldr x0, [sp, 5552]
add x0, x0, 48
str x0, [sp, 5560]
ldr x0, [sp, 16]
str x0, [sp, 5568]
ldr x1, [sp, 5568]
ldr x0, [sp, 5560]
add x0, x1, x0
str x0, [sp, 5576]
ldr x0, [sp, 5576]
str x0, [sp, 5584]
adrp x0, .LC105
add x2, x0, :lo12:.LC105
ldr x1, [sp, 5584]
ldr w0, [sp, 404]
bl sqlite3_snprintf
b .L459
.L538:
mov x0, 8
str x0, [sp, 5400]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 5400]
add x0, x1, x0
str x0, [sp, 5408]
ldr x0, [sp, 5408]
str x0, [sp, 5416]
ldr x0, [sp, 5416]
ldr x0, [x0]
str x0, [sp, 5424]
ldr x0, [sp, 5424]
str x0, [sp, 5432]
ldrsw x0, [sp, 360]
str x0, [sp, 5440]
ldr x2, [sp, 5440]
adrp x0, .LC12
add x1, x0, :lo12:.LC12
ldr x0, [sp, 5432]
bl strncmp
str w0, [sp, 400]
ldr w0, [sp, 400]
cmp w0, 0
bne .L539
ldr x0, [sp, 16]
str x0, [sp, 5464]
ldr x0, [sp, 5464]
add x0, x0, 24
str x0, [sp, 5472]
ldr x0, [sp, 5472]
str x0, [sp, 5480]
ldr x0, [sp, 5480]
mov w1, 5
str w1, [x0]
ldr w0, [sp, 72]
cmp w0, 2
ble .L540
mov x0, 16
str x0, [sp, 5488]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 5488]
add x0, x1, x0
str x0, [sp, 5496]
ldr x0, [sp, 5496]
str x0, [sp, 5504]
ldr x0, [sp, 5504]
ldr x0, [x0]
str x0, [sp, 5512]
ldr x0, [sp, 5512]
str x0, [sp, 5520]
ldr x1, [sp, 5520]
ldr x0, [sp, 16]
bl set_table_name
b .L459
.L540:
adrp x0, .LC54
add x1, x0, :lo12:.LC54
ldr x0, [sp, 16]
bl set_table_name
b .L459
.L539:
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 5448]
adrp x0, .LC106
add x0, x0, :lo12:.LC106
str x0, [sp, 5456]
ldr x1, [sp, 5456]
ldr x0, [sp, 5448]
bl fprintf
b .L459
.L682:
nop
b .L527
.L683:
nop
b .L527
.L684:
nop
.L527:
ldr w0, [sp, 208]
cmp w0, 110
bne .L685
str xzr, [sp, 5824]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 5824]
add x0, x1, x0
str x0, [sp, 5832]
ldr x0, [sp, 5832]
str x0, [sp, 5840]
ldr x0, [sp, 5840]
ldr x0, [x0]
str x0, [sp, 5848]
ldr x0, [sp, 5848]
str x0, [sp, 5856]
ldrsw x0, [sp, 204]
str x0, [sp, 5864]
ldr x2, [sp, 5864]
adrp x0, .LC107
add x1, x0, :lo12:.LC107
ldr x0, [sp, 5856]
bl strncmp
str w0, [sp, 412]
ldr w0, [sp, 412]
cmp w0, 0
bne .L686
ldr w0, [sp, 72]
cmp w0, 2
bne .L687
mov w0, 20
str w0, [sp, 416]
str xzr, [sp, 5872]
ldr x0, [sp, 5872]
add x0, x0, 868
str x0, [sp, 5880]
ldr x0, [sp, 16]
str x0, [sp, 5888]
ldr x1, [sp, 5888]
ldr x0, [sp, 5880]
add x0, x1, x0
str x0, [sp, 5896]
ldr x0, [sp, 5896]
str x0, [sp, 5904]
mov x0, 20
str x0, [sp, 5912]
ldr x0, [sp, 5912]
str w0, [sp, 420]
ldr w0, [sp, 420]
sub w0, w0, #1
str w0, [sp, 424]
mov x0, 8
str x0, [sp, 5920]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 5920]
add x0, x1, x0
str x0, [sp, 5928]
ldr x0, [sp, 5928]
str x0, [sp, 5936]
ldr x0, [sp, 5936]
ldr x0, [x0]
str x0, [sp, 5944]
ldr x4, [sp, 5944]
ldr w3, [sp, 424]
adrp x0, .LC21
add x2, x0, :lo12:.LC21
ldr x1, [sp, 5904]
ldr w0, [sp, 416]
bl sqlite3_snprintf
b .L459
.L685:
nop
b .L541
.L686:
nop
b .L541
.L687:
nop
.L541:
ldr w0, [sp, 208]
cmp w0, 111
bne .L688
str xzr, [sp, 5952]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 5952]
add x0, x1, x0
str x0, [sp, 5960]
ldr x0, [sp, 5960]
str x0, [sp, 5968]
ldr x0, [sp, 5968]
ldr x0, [x0]
str x0, [sp, 5976]
ldr x0, [sp, 5976]
str x0, [sp, 5984]
ldrsw x0, [sp, 204]
str x0, [sp, 5992]
ldr x2, [sp, 5992]
adrp x0, .LC108
add x1, x0, :lo12:.LC108
ldr x0, [sp, 5984]
bl strncmp
str w0, [sp, 428]
ldr w0, [sp, 428]
cmp w0, 0
bne .L689
ldr w0, [sp, 72]
cmp w0, 2
bne .L690
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
str x0, [sp, 6000]
ldr x0, [sp, 16]
str x0, [sp, 6008]
ldr x0, [sp, 6008]
add x0, x0, 16
str x0, [sp, 6016]
ldr x0, [sp, 6016]
str x0, [sp, 6024]
ldr x0, [sp, 6024]
ldr x0, [x0]
str x0, [sp, 6032]
ldr x0, [sp, 6032]
str x0, [sp, 6040]
ldr x1, [sp, 6040]
ldr x0, [sp, 6000]
cmp x1, x0
beq .L547
ldr x0, [sp, 16]
str x0, [sp, 6048]
ldr x0, [sp, 6048]
add x0, x0, 16
str x0, [sp, 6056]
ldr x0, [sp, 6056]
str x0, [sp, 6064]
ldr x0, [sp, 6064]
ldr x0, [x0]
str x0, [sp, 6072]
ldr x0, [sp, 6072]
bl fclose
.L547:
mov x0, 8
str x0, [sp, 6080]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 6080]
add x0, x1, x0
str x0, [sp, 6088]
ldr x0, [sp, 6088]
str x0, [sp, 6096]
ldr x0, [sp, 6096]
ldr x0, [x0]
str x0, [sp, 6104]
ldr x0, [sp, 6104]
str x0, [sp, 6112]
adrp x0, .LC109
add x1, x0, :lo12:.LC109
ldr x0, [sp, 6112]
bl strcmp
str w0, [sp, 432]
ldr w0, [sp, 432]
cmp w0, 0
bne .L548
ldr x0, [sp, 16]
str x0, [sp, 6392]
ldr x0, [sp, 6392]
add x0, x0, 16
str x0, [sp, 6400]
ldr x0, [sp, 6400]
str x0, [sp, 6408]
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x1, [x0]
ldr x0, [sp, 6408]
str x1, [x0]
mov w0, 4096
str w0, [sp, 440]
str xzr, [sp, 6416]
ldr x0, [sp, 6416]
add x0, x0, 1300
str x0, [sp, 6424]
ldr x0, [sp, 16]
str x0, [sp, 6432]
ldr x1, [sp, 6432]
ldr x0, [sp, 6424]
add x0, x1, x0
str x0, [sp, 6440]
ldr x0, [sp, 6440]
str x0, [sp, 6448]
adrp x0, .LC109
add x2, x0, :lo12:.LC109
ldr x1, [sp, 6448]
ldr w0, [sp, 440]
bl sqlite3_snprintf
b .L459
.L548:
ldr x0, [sp, 16]
str x0, [sp, 6120]
ldr x0, [sp, 6120]
add x0, x0, 16
str x0, [sp, 6128]
mov x0, 8
str x0, [sp, 6136]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 6136]
add x0, x1, x0
str x0, [sp, 6144]
ldr x0, [sp, 6144]
str x0, [sp, 6152]
ldr x0, [sp, 6152]
ldr x0, [x0]
str x0, [sp, 6160]
ldr x0, [sp, 6160]
str x0, [sp, 6168]
adrp x0, .LC110
add x0, x0, :lo12:.LC110
str x0, [sp, 6176]
ldr x0, [sp, 6128]
str x0, [sp, 6184]
ldr x1, [sp, 6176]
ldr x0, [sp, 6168]
bl fopen
mov x1, x0
ldr x0, [sp, 6184]
str x1, [x0]
str xzr, [sp, 6192]
ldr x0, [sp, 6192]
str x0, [sp, 6200]
ldr x0, [sp, 16]
str x0, [sp, 6208]
ldr x0, [sp, 6208]
add x0, x0, 16
str x0, [sp, 6216]
ldr x0, [sp, 6216]
str x0, [sp, 6224]
ldr x0, [sp, 6224]
ldr x0, [x0]
str x0, [sp, 6232]
ldr x0, [sp, 6232]
str x0, [sp, 6240]
ldr x1, [sp, 6240]
ldr x0, [sp, 6200]
cmp x1, x0
bne .L549
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 6320]
adrp x0, .LC111
add x0, x0, :lo12:.LC111
str x0, [sp, 6328]
mov x0, 8
str x0, [sp, 6336]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 6336]
add x0, x1, x0
str x0, [sp, 6344]
ldr x0, [sp, 6344]
str x0, [sp, 6352]
ldr x0, [sp, 6352]
ldr x0, [x0]
str x0, [sp, 6360]
ldr x2, [sp, 6360]
ldr x1, [sp, 6328]
ldr x0, [sp, 6320]
bl fprintf
ldr x0, [sp, 16]
str x0, [sp, 6368]
ldr x0, [sp, 6368]
add x0, x0, 16
str x0, [sp, 6376]
ldr x0, [sp, 6376]
str x0, [sp, 6384]
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x1, [x0]
ldr x0, [sp, 6384]
str x1, [x0]
b .L459
.L549:
mov w0, 4096
str w0, [sp, 436]
str xzr, [sp, 6248]
ldr x0, [sp, 6248]
add x0, x0, 1300
str x0, [sp, 6256]
ldr x0, [sp, 16]
str x0, [sp, 6264]
ldr x1, [sp, 6264]
ldr x0, [sp, 6256]
add x0, x1, x0
str x0, [sp, 6272]
ldr x0, [sp, 6272]
str x0, [sp, 6280]
mov x0, 8
str x0, [sp, 6288]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 6288]
add x0, x1, x0
str x0, [sp, 6296]
ldr x0, [sp, 6296]
str x0, [sp, 6304]
ldr x0, [sp, 6304]
ldr x0, [x0]
str x0, [sp, 6312]
ldr x3, [sp, 6312]
adrp x0, .LC6
add x2, x0, :lo12:.LC6
ldr x1, [sp, 6280]
ldr w0, [sp, 436]
bl sqlite3_snprintf
b .L459
.L688:
nop
b .L544
.L689:
nop
b .L544
.L690:
nop
.L544:
ldr w0, [sp, 208]
cmp w0, 112
bne .L691
str xzr, [sp, 6456]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 6456]
add x0, x1, x0
str x0, [sp, 6464]
ldr x0, [sp, 6464]
str x0, [sp, 6472]
ldr x0, [sp, 6472]
ldr x0, [x0]
str x0, [sp, 6480]
ldr x0, [sp, 6480]
str x0, [sp, 6488]
ldrsw x0, [sp, 204]
str x0, [sp, 6496]
ldr x2, [sp, 6496]
adrp x0, .LC112
add x1, x0, :lo12:.LC112
ldr x0, [sp, 6488]
bl strncmp
str w0, [sp, 444]
ldr w0, [sp, 444]
cmp w0, 0
bne .L692
ldr w0, [sp, 72]
cmp w0, 2
beq .L693
ldr w0, [sp, 72]
cmp w0, 3
bne .L694
b .L553
.L693:
nop
.L553:
ldr w0, [sp, 72]
cmp w0, 1
ble .L555
str xzr, [sp, 6504]
adrp x0, mainPrompt
add x0, x0, :lo12:mainPrompt
ldr x1, [sp, 6504]
add x0, x1, x0
str x0, [sp, 6512]
ldr x0, [sp, 6512]
str x0, [sp, 6520]
ldr x0, [sp, 6520]
str x0, [sp, 6528]
mov x0, 8
str x0, [sp, 6536]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 6536]
add x0, x1, x0
str x0, [sp, 6544]
ldr x0, [sp, 6544]
str x0, [sp, 6552]
ldr x0, [sp, 6552]
ldr x0, [x0]
str x0, [sp, 6560]
ldr x0, [sp, 6560]
str x0, [sp, 6568]
mov x0, 20
str x0, [sp, 6576]
ldr x0, [sp, 6576]
str w0, [sp, 448]
ldr w0, [sp, 448]
sub w0, w0, #1
str w0, [sp, 452]
ldrsw x0, [sp, 452]
str x0, [sp, 6584]
ldr x2, [sp, 6584]
ldr x1, [sp, 6568]
ldr x0, [sp, 6528]
bl strncpy
.L555:
ldr w0, [sp, 72]
cmp w0, 2
ble .L459
str xzr, [sp, 6592]
adrp x0, continuePrompt
add x0, x0, :lo12:continuePrompt
ldr x1, [sp, 6592]
add x0, x1, x0
str x0, [sp, 6600]
ldr x0, [sp, 6600]
str x0, [sp, 6608]
ldr x0, [sp, 6608]
str x0, [sp, 6616]
mov x0, 16
str x0, [sp, 6624]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 6624]
add x0, x1, x0
str x0, [sp, 6632]
ldr x0, [sp, 6632]
str x0, [sp, 6640]
ldr x0, [sp, 6640]
ldr x0, [x0]
str x0, [sp, 6648]
ldr x0, [sp, 6648]
str x0, [sp, 6656]
mov x0, 20
str x0, [sp, 6664]
ldr x0, [sp, 6664]
str w0, [sp, 456]
ldr w0, [sp, 456]
sub w0, w0, #1
str w0, [sp, 460]
ldrsw x0, [sp, 460]
str x0, [sp, 6672]
ldr x2, [sp, 6672]
ldr x1, [sp, 6656]
ldr x0, [sp, 6616]
bl strncpy
b .L459
.L691:
nop
b .L550
.L692:
nop
b .L550
.L694:
nop
.L550:
ldr w0, [sp, 208]
cmp w0, 113
bne .L695
str xzr, [sp, 6680]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 6680]
add x0, x1, x0
str x0, [sp, 6688]
ldr x0, [sp, 6688]
str x0, [sp, 6696]
ldr x0, [sp, 6696]
ldr x0, [x0]
str x0, [sp, 6704]
ldr x0, [sp, 6704]
str x0, [sp, 6712]
ldrsw x0, [sp, 204]
str x0, [sp, 6720]
ldr x2, [sp, 6720]
adrp x0, .LC113
add x1, x0, :lo12:.LC113
ldr x0, [sp, 6712]
bl strncmp
str w0, [sp, 464]
ldr w0, [sp, 464]
cmp w0, 0
bne .L696
mov w0, 2
str w0, [sp, 76]
b .L459
.L695:
nop
b .L556
.L696:
nop
.L556:
ldr w0, [sp, 208]
cmp w0, 114
bne .L697
str xzr, [sp, 6728]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 6728]
add x0, x1, x0
str x0, [sp, 6736]
ldr x0, [sp, 6736]
str x0, [sp, 6744]
ldr x0, [sp, 6744]
ldr x0, [x0]
str x0, [sp, 6752]
ldr x0, [sp, 6752]
str x0, [sp, 6760]
ldrsw x0, [sp, 204]
str x0, [sp, 6768]
ldr x2, [sp, 6768]
adrp x0, .LC114
add x1, x0, :lo12:.LC114
ldr x0, [sp, 6760]
bl strncmp
str w0, [sp, 468]
ldr w0, [sp, 468]
cmp w0, 0
bne .L698
ldr w0, [sp, 72]
cmp w0, 2
bne .L699
mov x0, 8
str x0, [sp, 6776]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 6776]
add x0, x1, x0
str x0, [sp, 6784]
ldr x0, [sp, 6784]
str x0, [sp, 6792]
ldr x0, [sp, 6792]
ldr x0, [x0]
str x0, [sp, 6800]
ldr x0, [sp, 6800]
str x0, [sp, 6808]
adrp x0, .LC92
add x0, x0, :lo12:.LC92
str x0, [sp, 6816]
ldr x1, [sp, 6816]
ldr x0, [sp, 6808]
bl fopen
str x0, [sp, 6824]
ldr x0, [sp, 6824]
str x0, [sp, 6832]
str xzr, [sp, 6840]
ldr x0, [sp, 6840]
str x0, [sp, 6848]
ldr x0, [sp, 6832]
str x0, [sp, 6856]
ldr x1, [sp, 6856]
ldr x0, [sp, 6848]
cmp x1, x0
bne .L561
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 6864]
adrp x0, .LC115
add x0, x0, :lo12:.LC115
str x0, [sp, 6872]
mov x0, 8
str x0, [sp, 6880]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 6880]
add x0, x1, x0
str x0, [sp, 6888]
ldr x0, [sp, 6888]
str x0, [sp, 6896]
ldr x0, [sp, 6896]
ldr x0, [x0]
str x0, [sp, 6904]
ldr x2, [sp, 6904]
ldr x1, [sp, 6872]
ldr x0, [sp, 6864]
bl fprintf
b .L459
.L561:
ldr x1, [sp, 6832]
ldr x0, [sp, 16]
bl process_input
ldr x0, [sp, 6832]
bl fclose
b .L459
.L697:
nop
b .L558
.L698:
nop
b .L558
.L699:
nop
.L558:
ldr w0, [sp, 208]
cmp w0, 115
bne .L700
str xzr, [sp, 6912]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 6912]
add x0, x1, x0
str x0, [sp, 6920]
ldr x0, [sp, 6920]
str x0, [sp, 6928]
ldr x0, [sp, 6928]
ldr x0, [x0]
str x0, [sp, 6936]
ldr x0, [sp, 6936]
str x0, [sp, 6944]
ldrsw x0, [sp, 204]
str x0, [sp, 6952]
ldr x2, [sp, 6952]
adrp x0, .LC116
add x1, x0, :lo12:.LC116
ldr x0, [sp, 6944]
bl strncmp
str w0, [sp, 472]
ldr w0, [sp, 472]
cmp w0, 0
bne .L701
add x0, sp, 616
str x0, [sp, 6960]
ldr x0, [sp, 6960]
str xzr, [x0]
ldr x0, [sp, 16]
bl open_db
add x0, sp, 20480
add x0, x0, 552
str x0, [sp, 6968]
ldr x0, [sp, 16]
str x0, [sp, 6976]
mov x2, 5408
ldr x1, [sp, 6976]
ldr x0, [sp, 6968]
bl memcpy
add x0, sp, 20480
add x0, x0, 552
add x0, x0, 32
str x0, [sp, 6984]
ldr x0, [sp, 6984]
str x0, [sp, 6992]
ldr x0, [sp, 6992]
str wzr, [x0]
add x0, sp, 20480
add x0, x0, 552
add x0, x0, 24
str x0, [sp, 7000]
ldr x0, [sp, 7000]
str x0, [sp, 7008]
ldr x0, [sp, 7008]
mov w1, 3
str w1, [x0]
ldr w0, [sp, 72]
cmp w0, 1
ble .L564
str wzr, [sp, 104]
.L565:
mov x0, 8
str x0, [sp, 7040]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 7040]
add x0, x1, x0
str x0, [sp, 7048]
ldr x0, [sp, 7048]
str x0, [sp, 7056]
ldr x0, [sp, 7056]
ldr x0, [x0]
str x0, [sp, 7064]
ldrsw x0, [sp, 104]
ldr x1, [sp, 7064]
add x0, x1, x0
str x0, [sp, 7072]
ldr x0, [sp, 7072]
ldrb w0, [x0]
cmp w0, 0
beq .L702
mov x0, 8
str x0, [sp, 7536]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 7536]
add x0, x1, x0
str x0, [sp, 7544]
ldr x0, [sp, 7544]
str x0, [sp, 7552]
ldr x0, [sp, 7552]
ldr x0, [x0]
str x0, [sp, 7560]
ldrsw x0, [sp, 104]
ldr x1, [sp, 7560]
add x0, x1, x0
str x0, [sp, 7568]
ldr x0, [sp, 7568]
ldrb w0, [x0]
strb w0, [sp, 59]
ldrb w0, [sp, 59]
str w0, [sp, 484]
ldr w0, [sp, 484]
bl tolower
str w0, [sp, 488]
mov x0, 8
str x0, [sp, 7576]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 7576]
add x0, x1, x0
str x0, [sp, 7584]
ldr x0, [sp, 7584]
str x0, [sp, 7592]
ldr x0, [sp, 7592]
ldr x0, [x0]
str x0, [sp, 7600]
ldrsw x0, [sp, 104]
ldr x1, [sp, 7600]
add x0, x1, x0
str x0, [sp, 7608]
ldr w0, [sp, 488]
and w1, w0, 255
ldr x0, [sp, 7608]
strb w1, [x0]
ldr w0, [sp, 104]
add w0, w0, 1
str w0, [sp, 104]
b .L565
.L702:
nop
.L567:
mov x0, 8
str x0, [sp, 7080]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 7080]
add x0, x1, x0
str x0, [sp, 7088]
ldr x0, [sp, 7088]
str x0, [sp, 7096]
ldr x0, [sp, 7096]
ldr x0, [x0]
str x0, [sp, 7104]
ldr x0, [sp, 7104]
str x0, [sp, 7112]
adrp x0, .LC117
add x1, x0, :lo12:.LC117
ldr x0, [sp, 7112]
bl strcmp
str w0, [sp, 476]
ldr w0, [sp, 476]
cmp w0, 0
bne .L568
str xzr, [sp, 7376]
add x0, sp, 8192
add x0, x0, 1560
ldr x1, [sp, 7376]
add x0, x1, x0
str x0, [sp, 7384]
ldr x0, [sp, 7384]
str x0, [sp, 7392]
ldr x0, [sp, 7392]
adrp x1, .LC118
add x1, x1, :lo12:.LC118
str x1, [x0]
mov x0, 8
str x0, [sp, 7400]
add x0, sp, 8192
add x0, x0, 1560
ldr x1, [sp, 7400]
add x0, x1, x0
str x0, [sp, 7408]
ldr x0, [sp, 7408]
str x0, [sp, 7416]
ldr x0, [sp, 7416]
str xzr, [x0]
str xzr, [sp, 7424]
add x0, sp, 8192
add x0, x0, 1576
ldr x1, [sp, 7424]
add x0, x1, x0
str x0, [sp, 7432]
ldr x0, [sp, 7432]
str x0, [sp, 7440]
ldr x0, [sp, 7440]
adrp x1, .LC119
add x1, x1, :lo12:.LC119
str x1, [x0]
mov x0, 8
str x0, [sp, 7448]
add x0, sp, 8192
add x0, x0, 1576
ldr x1, [sp, 7448]
add x0, x1, x0
str x0, [sp, 7456]
ldr x0, [sp, 7456]
str x0, [sp, 7464]
ldr x0, [sp, 7464]
str xzr, [x0]
adrp x0, callback
add x0, x0, :lo12:callback
str x0, [sp, 7472]
add x0, sp, 20480
add x0, x0, 552
str x0, [sp, 7480]
str xzr, [sp, 7488]
add x0, sp, 8192
add x0, x0, 1560
ldr x1, [sp, 7488]
add x0, x1, x0
str x0, [sp, 7496]
ldr x0, [sp, 7496]
str x0, [sp, 7504]
str xzr, [sp, 7512]
add x0, sp, 8192
add x0, x0, 1576
ldr x1, [sp, 7512]
add x0, x1, x0
str x0, [sp, 7520]
ldr x0, [sp, 7520]
str x0, [sp, 7528]
ldr x4, [sp, 7472]
ldr x3, [sp, 7528]
ldr x2, [sp, 7504]
mov w1, 1
ldr x0, [sp, 7480]
blr x4
b .L569
.L568:
mov x0, 8
str x0, [sp, 7120]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 7120]
add x0, x1, x0
str x0, [sp, 7128]
ldr x0, [sp, 7128]
str x0, [sp, 7136]
ldr x0, [sp, 7136]
ldr x0, [x0]
str x0, [sp, 7144]
ldr x0, [sp, 7144]
str x0, [sp, 7152]
adrp x0, .LC120
add x1, x0, :lo12:.LC120
ldr x0, [sp, 7152]
bl strcmp
str w0, [sp, 480]
ldr w0, [sp, 480]
cmp w0, 0
bne .L570
str xzr, [sp, 7216]
add x0, sp, 8192
add x0, x0, 1592
ldr x1, [sp, 7216]
add x0, x1, x0
str x0, [sp, 7224]
ldr x0, [sp, 7224]
str x0, [sp, 7232]
ldr x0, [sp, 7232]
adrp x1, .LC121
add x1, x1, :lo12:.LC121
str x1, [x0]
mov x0, 8
str x0, [sp, 7240]
add x0, sp, 8192
add x0, x0, 1592
ldr x1, [sp, 7240]
add x0, x1, x0
str x0, [sp, 7248]
ldr x0, [sp, 7248]
str x0, [sp, 7256]
ldr x0, [sp, 7256]
str xzr, [x0]
str xzr, [sp, 7264]
add x0, sp, 8192
add x0, x0, 1608
ldr x1, [sp, 7264]
add x0, x1, x0
str x0, [sp, 7272]
ldr x0, [sp, 7272]
str x0, [sp, 7280]
ldr x0, [sp, 7280]
adrp x1, .LC119
add x1, x1, :lo12:.LC119
str x1, [x0]
mov x0, 8
str x0, [sp, 7288]
add x0, sp, 8192
add x0, x0, 1608
ldr x1, [sp, 7288]
add x0, x1, x0
str x0, [sp, 7296]
ldr x0, [sp, 7296]
str x0, [sp, 7304]
ldr x0, [sp, 7304]
str xzr, [x0]
adrp x0, callback
add x0, x0, :lo12:callback
str x0, [sp, 7312]
add x0, sp, 20480
add x0, x0, 552
str x0, [sp, 7320]
str xzr, [sp, 7328]
add x0, sp, 8192
add x0, x0, 1592
ldr x1, [sp, 7328]
add x0, x1, x0
str x0, [sp, 7336]
ldr x0, [sp, 7336]
str x0, [sp, 7344]
str xzr, [sp, 7352]
add x0, sp, 8192
add x0, x0, 1608
ldr x1, [sp, 7352]
add x0, x1, x0
str x0, [sp, 7360]
ldr x0, [sp, 7360]
str x0, [sp, 7368]
ldr x4, [sp, 7312]
ldr x3, [sp, 7368]
ldr x2, [sp, 7344]
mov w1, 1
ldr x0, [sp, 7320]
blr x4
b .L569
.L570:
mov x0, 8
str x0, [sp, 7160]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 7160]
add x0, x1, x0
str x0, [sp, 7168]
ldr x0, [sp, 7168]
str x0, [sp, 7176]
ldr x0, [sp, 7176]
ldr x0, [x0]
str x0, [sp, 7184]
adrp x0, zShellStatic
add x0, x0, :lo12:zShellStatic
ldr x1, [sp, 7184]
str x1, [x0]
ldr x0, [sp, 16]
str x0, [sp, 7192]
ldr x0, [sp, 7192]
ldr x0, [x0]
str x0, [sp, 7200]
add x0, sp, 20480
add x0, x0, 552
str x0, [sp, 7208]
add x0, sp, 616
mov x4, x0
ldr x3, [sp, 7208]
adrp x0, callback
add x2, x0, :lo12:callback
adrp x0, .LC122
add x1, x0, :lo12:.LC122
ldr x0, [sp, 7200]
bl sqlite3_exec
adrp x0, zShellStatic
add x0, x0, :lo12:zShellStatic
str xzr, [x0]
b .L569
.L564:
ldr x0, [sp, 16]
str x0, [sp, 7016]
ldr x0, [sp, 7016]
ldr x0, [x0]
str x0, [sp, 7024]
add x0, sp, 20480
add x0, x0, 552
str x0, [sp, 7032]
add x0, sp, 616
mov x4, x0
ldr x3, [sp, 7032]
adrp x0, callback
add x2, x0, :lo12:callback
adrp x0, .LC123
add x1, x0, :lo12:.LC123
ldr x0, [sp, 7024]
bl sqlite3_exec
.L569:
add x0, sp, 616
str x0, [sp, 7616]
ldr x0, [sp, 7616]
ldr x0, [x0]
cmp x0, 0
beq .L459
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 7624]
adrp x0, .LC72
add x0, x0, :lo12:.LC72
str x0, [sp, 7632]
add x0, sp, 616
str x0, [sp, 7640]
ldr x0, [sp, 7640]
ldr x0, [x0]
str x0, [sp, 7648]
ldr x2, [sp, 7648]
ldr x1, [sp, 7632]
ldr x0, [sp, 7624]
bl fprintf
add x0, sp, 616
str x0, [sp, 7656]
ldr x0, [sp, 7656]
ldr x0, [x0]
str x0, [sp, 7664]
ldr x0, [sp, 7664]
str x0, [sp, 7672]
ldr x0, [sp, 7672]
bl sqlite3_free
b .L459
.L700:
nop
b .L562
.L701:
nop
.L562:
ldr w0, [sp, 208]
cmp w0, 115
bne .L703
str xzr, [sp, 7680]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 7680]
add x0, x1, x0
str x0, [sp, 7688]
ldr x0, [sp, 7688]
str x0, [sp, 7696]
ldr x0, [sp, 7696]
ldr x0, [x0]
str x0, [sp, 7704]
ldr x0, [sp, 7704]
str x0, [sp, 7712]
ldrsw x0, [sp, 204]
str x0, [sp, 7720]
ldr x2, [sp, 7720]
adrp x0, .LC124
add x1, x0, :lo12:.LC124
ldr x0, [sp, 7712]
bl strncmp
str w0, [sp, 492]
ldr w0, [sp, 492]
cmp w0, 0
bne .L704
ldr w0, [sp, 72]
cmp w0, 2
bne .L705
mov w0, 20
str w0, [sp, 496]
str xzr, [sp, 7728]
ldr x0, [sp, 7728]
add x0, x0, 48
str x0, [sp, 7736]
ldr x0, [sp, 16]
str x0, [sp, 7744]
ldr x1, [sp, 7744]
ldr x0, [sp, 7736]
add x0, x1, x0
str x0, [sp, 7752]
ldr x0, [sp, 7752]
str x0, [sp, 7760]
mov w0, 20
str w0, [sp, 500]
ldr w0, [sp, 500]
sub w0, w0, #1
str w0, [sp, 504]
mov x0, 8
str x0, [sp, 7768]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 7768]
add x0, x1, x0
str x0, [sp, 7776]
ldr x0, [sp, 7776]
str x0, [sp, 7784]
ldr x0, [sp, 7784]
ldr x0, [x0]
str x0, [sp, 7792]
ldr x4, [sp, 7792]
ldr w3, [sp, 504]
adrp x0, .LC21
add x2, x0, :lo12:.LC21
ldr x1, [sp, 7760]
ldr w0, [sp, 496]
bl sqlite3_snprintf
b .L459
.L703:
nop
b .L571
.L704:
nop
b .L571
.L705:
nop
.L571:
ldr w0, [sp, 208]
cmp w0, 115
bne .L706
str xzr, [sp, 7800]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 7800]
add x0, x1, x0
str x0, [sp, 7808]
ldr x0, [sp, 7808]
str x0, [sp, 7816]
ldr x0, [sp, 7816]
ldr x0, [x0]
str x0, [sp, 7824]
ldr x0, [sp, 7824]
str x0, [sp, 7832]
ldrsw x0, [sp, 204]
str x0, [sp, 7840]
ldr x2, [sp, 7840]
adrp x0, .LC125
add x1, x0, :lo12:.LC125
ldr x0, [sp, 7832]
bl strncmp
str w0, [sp, 508]
ldr w0, [sp, 508]
cmp w0, 0
bne .L707
ldr x0, [sp, 16]
str x0, [sp, 7848]
ldr x0, [sp, 7848]
add x0, x0, 8
str x0, [sp, 7856]
ldr x0, [sp, 7856]
str x0, [sp, 7864]
ldr x0, [sp, 7864]
ldr w0, [x0]
cmp w0, 0
beq .L576
adrp x0, .LC67
add x0, x0, :lo12:.LC67
str x0, [sp, 664]
b .L577
.L576:
adrp x0, .LC126
add x0, x0, :lo12:.LC126
str x0, [sp, 664]
.L577:
ldr x0, [sp, 16]
str x0, [sp, 7872]
ldr x0, [sp, 7872]
add x0, x0, 16
str x0, [sp, 7880]
ldr x0, [sp, 7880]
str x0, [sp, 7888]
ldr x0, [sp, 7888]
ldr x0, [x0]
str x0, [sp, 7896]
ldr x0, [sp, 7896]
str x0, [sp, 7904]
adrp x0, .LC127
add x0, x0, :lo12:.LC127
str x0, [sp, 7912]
ldr x3, [sp, 664]
adrp x0, .LC83
add x2, x0, :lo12:.LC83
ldr x1, [sp, 7912]
ldr x0, [sp, 7904]
bl fprintf
ldr x0, [sp, 16]
str x0, [sp, 7920]
ldr x0, [sp, 7920]
add x0, x0, 888
str x0, [sp, 7928]
ldr x0, [sp, 7928]
str x0, [sp, 7936]
ldr x0, [sp, 7936]
ldr w0, [x0]
cmp w0, 0
beq .L578
adrp x0, .LC67
add x0, x0, :lo12:.LC67
str x0, [sp, 672]
b .L579
.L578:
adrp x0, .LC126
add x0, x0, :lo12:.LC126
str x0, [sp, 672]
.L579:
ldr x0, [sp, 16]
str x0, [sp, 7944]
ldr x0, [sp, 7944]
add x0, x0, 16
str x0, [sp, 7952]
ldr x0, [sp, 7952]
str x0, [sp, 7960]
ldr x0, [sp, 7960]
ldr x0, [x0]
str x0, [sp, 7968]
ldr x0, [sp, 7968]
str x0, [sp, 7976]
adrp x0, .LC127
add x0, x0, :lo12:.LC127
str x0, [sp, 7984]
ldr x3, [sp, 672]
adrp x0, .LC15
add x2, x0, :lo12:.LC15
ldr x1, [sp, 7984]
ldr x0, [sp, 7976]
bl fprintf
ldr x0, [sp, 16]
str x0, [sp, 7992]
ldr x0, [sp, 7992]
add x0, x0, 32
str x0, [sp, 8000]
ldr x0, [sp, 8000]
str x0, [sp, 8008]
ldr x0, [sp, 8008]
ldr w0, [x0]
cmp w0, 0
beq .L580
adrp x0, .LC67
add x0, x0, :lo12:.LC67
str x0, [sp, 680]
b .L581
.L580:
adrp x0, .LC126
add x0, x0, :lo12:.LC126
str x0, [sp, 680]
.L581:
ldr x0, [sp, 16]
str x0, [sp, 8016]
ldr x0, [sp, 8016]
add x0, x0, 16
str x0, [sp, 8024]
ldr x0, [sp, 8024]
str x0, [sp, 8032]
ldr x0, [sp, 8032]
ldr x0, [x0]
str x0, [sp, 8040]
ldr x0, [sp, 8040]
str x0, [sp, 8048]
adrp x0, .LC127
add x0, x0, :lo12:.LC127
str x0, [sp, 8056]
ldr x3, [sp, 680]
adrp x0, .LC86
add x2, x0, :lo12:.LC86
ldr x1, [sp, 8056]
ldr x0, [sp, 8048]
bl fprintf
ldr x0, [sp, 16]
str x0, [sp, 8064]
ldr x0, [sp, 8064]
add x0, x0, 16
str x0, [sp, 8072]
ldr x0, [sp, 8072]
str x0, [sp, 8080]
ldr x0, [sp, 8080]
ldr x0, [x0]
str x0, [sp, 8088]
ldr x0, [sp, 8088]
str x0, [sp, 8096]
adrp x0, .LC127
add x0, x0, :lo12:.LC127
str x0, [sp, 8104]
ldr x0, [sp, 16]
str x0, [sp, 8112]
ldr x0, [sp, 8112]
add x0, x0, 24
str x0, [sp, 8120]
ldr x0, [sp, 8120]
str x0, [sp, 8128]
ldr x0, [sp, 8128]
ldr w0, [x0]
str w0, [sp, 512]
ldrsw x0, [sp, 512]
lsl x0, x0, 3
str x0, [sp, 8136]
adrp x0, modeDescr
add x0, x0, :lo12:modeDescr
ldr x1, [sp, 8136]
add x0, x1, x0
str x0, [sp, 8144]
ldr x0, [sp, 8144]
str x0, [sp, 8152]
ldr x0, [sp, 8152]
ldr x0, [x0]
str x0, [sp, 8160]
ldr x3, [sp, 8160]
adrp x0, .LC101
add x2, x0, :lo12:.LC101
ldr x1, [sp, 8104]
ldr x0, [sp, 8096]
bl fprintf
ldr x0, [sp, 16]
str x0, [sp, 8168]
ldr x0, [sp, 8168]
add x0, x0, 16
str x0, [sp, 8176]
ldr x0, [sp, 8176]
str x0, [sp, 8184]
ldr x0, [sp, 8184]
ldr x0, [x0]
str x0, [sp, 8192]
ldr x0, [sp, 8192]
str x0, [sp, 8200]
adrp x0, .LC128
add x0, x0, :lo12:.LC128
str x0, [sp, 8208]
adrp x0, .LC107
add x2, x0, :lo12:.LC107
ldr x1, [sp, 8208]
ldr x0, [sp, 8200]
bl fprintf
ldr x0, [sp, 16]
str x0, [sp, 8216]
ldr x0, [sp, 8216]
add x0, x0, 16
str x0, [sp, 8224]
ldr x0, [sp, 8224]
str x0, [sp, 8232]
ldr x0, [sp, 8232]
ldr x0, [x0]
str x0, [sp, 8240]
str xzr, [sp, 8248]
ldr x0, [sp, 8248]
add x0, x0, 868
str x0, [sp, 8256]
ldr x0, [sp, 16]
str x0, [sp, 8264]
ldr x1, [sp, 8264]
ldr x0, [sp, 8256]
add x0, x1, x0
str x0, [sp, 8272]
ldr x0, [sp, 8272]
str x0, [sp, 8280]
ldr x0, [sp, 8280]
str x0, [sp, 8288]
ldr x1, [sp, 8288]
ldr x0, [sp, 8240]
bl output_c_string
ldr x0, [sp, 16]
str x0, [sp, 8296]
ldr x0, [sp, 8296]
add x0, x0, 16
str x0, [sp, 8304]
ldr x0, [sp, 8304]
str x0, [sp, 8312]
ldr x0, [sp, 8312]
ldr x0, [x0]
str x0, [sp, 8320]
ldr x0, [sp, 8320]
str x0, [sp, 8328]
adrp x0, .LC25
add x0, x0, :lo12:.LC25
str x0, [sp, 8336]
ldr x1, [sp, 8336]
ldr x0, [sp, 8328]
bl fprintf
str xzr, [sp, 8344]
ldr x0, [sp, 8344]
add x0, x0, 1300
str x0, [sp, 8352]
ldr x0, [sp, 16]
str x0, [sp, 8360]
ldr x1, [sp, 8360]
ldr x0, [sp, 8352]
add x0, x1, x0
str x0, [sp, 8368]
ldr x0, [sp, 8368]
str x0, [sp, 8376]
ldr x0, [sp, 8376]
str x0, [sp, 8384]
ldr x0, [sp, 8384]
bl strlen
str x0, [sp, 8392]
ldr x0, [sp, 8392]
cmp x0, 0
beq .L582
str xzr, [sp, 8400]
ldr x0, [sp, 8400]
add x0, x0, 1300
str x0, [sp, 8408]
ldr x0, [sp, 16]
str x0, [sp, 8416]
ldr x1, [sp, 8416]
ldr x0, [sp, 8408]
add x0, x1, x0
str x0, [sp, 8424]
ldr x0, [sp, 8424]
str x0, [sp, 8432]
ldr x0, [sp, 8432]
str x0, [sp, 688]
b .L583
.L582:
adrp x0, .LC109
add x0, x0, :lo12:.LC109
str x0, [sp, 688]
.L583:
ldr x0, [sp, 16]
str x0, [sp, 8440]
ldr x0, [sp, 8440]
add x0, x0, 16
str x0, [sp, 8448]
ldr x0, [sp, 8448]
str x0, [sp, 8456]
ldr x0, [sp, 8456]
ldr x0, [x0]
str x0, [sp, 8464]
ldr x0, [sp, 8464]
str x0, [sp, 8472]
adrp x0, .LC127
add x0, x0, :lo12:.LC127
str x0, [sp, 8480]
ldr x3, [sp, 688]
adrp x0, .LC108
add x2, x0, :lo12:.LC108
ldr x1, [sp, 8480]
ldr x0, [sp, 8472]
bl fprintf
ldr x0, [sp, 16]
str x0, [sp, 8488]
ldr x0, [sp, 8488]
add x0, x0, 16
str x0, [sp, 8496]
ldr x0, [sp, 8496]
str x0, [sp, 8504]
ldr x0, [sp, 8504]
ldr x0, [x0]
str x0, [sp, 8512]
ldr x0, [sp, 8512]
str x0, [sp, 8520]
adrp x0, .LC128
add x0, x0, :lo12:.LC128
str x0, [sp, 8528]
adrp x0, .LC124
add x2, x0, :lo12:.LC124
ldr x1, [sp, 8528]
ldr x0, [sp, 8520]
bl fprintf
ldr x0, [sp, 16]
str x0, [sp, 8536]
ldr x0, [sp, 8536]
add x0, x0, 16
str x0, [sp, 8544]
ldr x0, [sp, 8544]
str x0, [sp, 8552]
ldr x0, [sp, 8552]
ldr x0, [x0]
str x0, [sp, 8560]
str xzr, [sp, 8568]
ldr x0, [sp, 8568]
add x0, x0, 48
str x0, [sp, 8576]
ldr x0, [sp, 16]
str x0, [sp, 8584]
ldr x1, [sp, 8584]
ldr x0, [sp, 8576]
add x0, x1, x0
str x0, [sp, 8592]
ldr x0, [sp, 8592]
str x0, [sp, 8600]
ldr x0, [sp, 8600]
str x0, [sp, 8608]
ldr x1, [sp, 8608]
ldr x0, [sp, 8560]
bl output_c_string
ldr x0, [sp, 16]
str x0, [sp, 8616]
ldr x0, [sp, 8616]
add x0, x0, 16
str x0, [sp, 8624]
ldr x0, [sp, 8624]
str x0, [sp, 8632]
ldr x0, [sp, 8632]
ldr x0, [x0]
str x0, [sp, 8640]
ldr x0, [sp, 8640]
str x0, [sp, 8648]
adrp x0, .LC25
add x0, x0, :lo12:.LC25
str x0, [sp, 8656]
ldr x1, [sp, 8656]
ldr x0, [sp, 8648]
bl fprintf
ldr x0, [sp, 16]
str x0, [sp, 8664]
ldr x0, [sp, 8664]
add x0, x0, 16
str x0, [sp, 8672]
ldr x0, [sp, 8672]
str x0, [sp, 8680]
ldr x0, [sp, 8680]
ldr x0, [x0]
str x0, [sp, 8688]
ldr x0, [sp, 8688]
str x0, [sp, 8696]
adrp x0, .LC128
add x0, x0, :lo12:.LC128
str x0, [sp, 8704]
adrp x0, .LC129
add x2, x0, :lo12:.LC129
ldr x1, [sp, 8704]
ldr x0, [sp, 8696]
bl fprintf
str wzr, [sp, 108]
.L584:
mov x0, 100
str x0, [sp, 8712]
ldr x0, [sp, 8712]
str w0, [sp, 516]
ldr w1, [sp, 108]
ldr w0, [sp, 516]
cmp w1, w0
bge .L708
ldrsw x0, [sp, 108]
lsl x0, x0, 2
str x0, [sp, 8720]
ldr x0, [sp, 8720]
add x0, x0, 68
str x0, [sp, 8728]
ldr x0, [sp, 16]
str x0, [sp, 8736]
ldr x1, [sp, 8736]
ldr x0, [sp, 8728]
add x0, x1, x0
str x0, [sp, 8744]
ldr x0, [sp, 8744]
str x0, [sp, 8752]
ldr x0, [sp, 8752]
ldr w0, [x0]
str w0, [sp, 520]
ldr w0, [sp, 520]
cmp w0, 0
beq .L709
ldr x0, [sp, 16]
str x0, [sp, 8760]
ldr x0, [sp, 8760]
add x0, x0, 16
str x0, [sp, 8768]
ldr x0, [sp, 8768]
str x0, [sp, 8776]
ldr x0, [sp, 8776]
ldr x0, [x0]
str x0, [sp, 8784]
ldr x0, [sp, 8784]
str x0, [sp, 8792]
adrp x0, .LC130
add x0, x0, :lo12:.LC130
str x0, [sp, 8800]
ldrsw x0, [sp, 108]
lsl x0, x0, 2
str x0, [sp, 8808]
ldr x0, [sp, 8808]
add x0, x0, 68
str x0, [sp, 8816]
ldr x0, [sp, 16]
str x0, [sp, 8824]
ldr x1, [sp, 8824]
ldr x0, [sp, 8816]
add x0, x1, x0
str x0, [sp, 8832]
ldr x0, [sp, 8832]
str x0, [sp, 8840]
ldr x0, [sp, 8840]
ldr w0, [x0]
str w0, [sp, 524]
ldr w2, [sp, 524]
ldr x1, [sp, 8800]
ldr x0, [sp, 8792]
bl fprintf
ldr w0, [sp, 108]
add w0, w0, 1
str w0, [sp, 108]
b .L584
.L708:
nop
b .L587
.L709:
nop
.L587:
ldr x0, [sp, 16]
str x0, [sp, 8848]
ldr x0, [sp, 8848]
add x0, x0, 16
str x0, [sp, 8856]
ldr x0, [sp, 8856]
str x0, [sp, 8864]
ldr x0, [sp, 8864]
ldr x0, [x0]
str x0, [sp, 8872]
ldr x0, [sp, 8872]
str x0, [sp, 8880]
adrp x0, .LC25
add x0, x0, :lo12:.LC25
str x0, [sp, 8888]
ldr x1, [sp, 8888]
ldr x0, [sp, 8880]
bl fprintf
b .L459
.L706:
nop
b .L574
.L707:
nop
.L574:
ldr w0, [sp, 208]
cmp w0, 116
bne .L710
ldr w0, [sp, 204]
cmp w0, 1
ble .L711
str xzr, [sp, 8896]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 8896]
add x0, x1, x0
str x0, [sp, 8904]
ldr x0, [sp, 8904]
str x0, [sp, 8912]
ldr x0, [sp, 8912]
ldr x0, [x0]
str x0, [sp, 8920]
ldr x0, [sp, 8920]
str x0, [sp, 8928]
ldrsw x0, [sp, 204]
str x0, [sp, 8936]
ldr x2, [sp, 8936]
adrp x0, .LC131
add x1, x0, :lo12:.LC131
ldr x0, [sp, 8928]
bl strncmp
str w0, [sp, 528]
ldr w0, [sp, 528]
cmp w0, 0
bne .L712
ldr x0, [sp, 16]
bl open_db
ldr w0, [sp, 72]
cmp w0, 1
bne .L591
ldr x0, [sp, 16]
str x0, [sp, 9000]
ldr x0, [sp, 9000]
ldr x0, [x0]
str x0, [sp, 9008]
str xzr, [sp, 9016]
add x2, sp, 632
add x1, sp, 64
add x0, sp, 624
mov x5, x2
ldr x4, [sp, 9016]
mov x3, x1
mov x2, x0
adrp x0, .LC132
add x1, x0, :lo12:.LC132
ldr x0, [sp, 9008]
bl sqlite3_get_table
str w0, [sp, 112]
b .L592
.L591:
mov x0, 8
str x0, [sp, 8944]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 8944]
add x0, x1, x0
str x0, [sp, 8952]
ldr x0, [sp, 8952]
str x0, [sp, 8960]
ldr x0, [sp, 8960]
ldr x0, [x0]
str x0, [sp, 8968]
adrp x0, zShellStatic
add x0, x0, :lo12:zShellStatic
ldr x1, [sp, 8968]
str x1, [x0]
ldr x0, [sp, 16]
str x0, [sp, 8976]
ldr x0, [sp, 8976]
ldr x0, [x0]
str x0, [sp, 8984]
str xzr, [sp, 8992]
add x2, sp, 632
add x1, sp, 64
add x0, sp, 624
mov x5, x2
ldr x4, [sp, 8992]
mov x3, x1
mov x2, x0
adrp x0, .LC133
add x1, x0, :lo12:.LC133
ldr x0, [sp, 8984]
bl sqlite3_get_table
str w0, [sp, 112]
adrp x0, zShellStatic
add x0, x0, :lo12:zShellStatic
str xzr, [x0]
.L592:
add x0, sp, 632
str x0, [sp, 9024]
ldr x0, [sp, 9024]
ldr x0, [x0]
cmp x0, 0
beq .L593
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 9032]
adrp x0, .LC72
add x0, x0, :lo12:.LC72
str x0, [sp, 9040]
add x0, sp, 632
str x0, [sp, 9048]
ldr x0, [sp, 9048]
ldr x0, [x0]
str x0, [sp, 9056]
ldr x2, [sp, 9056]
ldr x1, [sp, 9040]
ldr x0, [sp, 9032]
bl fprintf
add x0, sp, 632
str x0, [sp, 9064]
ldr x0, [sp, 9064]
ldr x0, [x0]
str x0, [sp, 9072]
ldr x0, [sp, 9072]
str x0, [sp, 9080]
ldr x0, [sp, 9080]
bl sqlite3_free
.L593:
ldr w0, [sp, 112]
cmp w0, 0
bne .L594
str wzr, [sp, 116]
mov w0, 1
str w0, [sp, 120]
.L595:
add x0, sp, 64
str x0, [sp, 9088]
ldr x0, [sp, 9088]
ldr w0, [x0]
str w0, [sp, 532]
ldr w1, [sp, 120]
ldr w0, [sp, 532]
cmp w1, w0
bgt .L713
str xzr, [sp, 9192]
ldr x0, [sp, 9192]
str x0, [sp, 9200]
add x0, sp, 624
str x0, [sp, 9208]
ldr x0, [sp, 9208]
ldr x0, [x0]
str x0, [sp, 9216]
ldrsw x0, [sp, 120]
lsl x0, x0, 3
ldr x1, [sp, 9216]
add x0, x1, x0
str x0, [sp, 9224]
ldr x0, [sp, 9224]
ldr x0, [x0]
str x0, [sp, 9232]
ldr x0, [sp, 9232]
str x0, [sp, 9240]
ldr x1, [sp, 9240]
ldr x0, [sp, 9200]
cmp x1, x0
beq .L714
add x0, sp, 624
str x0, [sp, 9248]
ldr x0, [sp, 9248]
ldr x0, [x0]
str x0, [sp, 9256]
ldrsw x0, [sp, 120]
lsl x0, x0, 3
ldr x1, [sp, 9256]
add x0, x1, x0
str x0, [sp, 9264]
ldr x0, [sp, 9264]
ldr x0, [x0]
str x0, [sp, 9272]
ldr x0, [sp, 9272]
str x0, [sp, 9280]
ldr x0, [sp, 9280]
bl strlen
str x0, [sp, 9288]
ldr x0, [sp, 9288]
str w0, [sp, 560]
ldr w1, [sp, 560]
ldr w0, [sp, 116]
cmp w1, w0
ble .L715
ldr w0, [sp, 560]
str w0, [sp, 116]
b .L599
.L714:
nop
b .L599
.L715:
nop
.L599:
ldr w0, [sp, 120]
add w0, w0, 1
str w0, [sp, 120]
b .L595
.L713:
nop
.L597:
ldr w0, [sp, 116]
add w0, w0, 2
str w0, [sp, 536]
mov w1, 80
ldr w0, [sp, 536]
sdiv w0, w1, w0
str w0, [sp, 128]
ldr w0, [sp, 128]
cmp w0, 0
bgt .L600
mov w0, 1
str w0, [sp, 128]
.L600:
add x0, sp, 64
str x0, [sp, 9096]
ldr x0, [sp, 9096]
ldr w0, [x0]
str w0, [sp, 540]
ldr w1, [sp, 540]
ldr w0, [sp, 128]
add w0, w1, w0
str w0, [sp, 544]
ldr w0, [sp, 544]
sub w0, w0, #1
str w0, [sp, 548]
ldr w1, [sp, 548]
ldr w0, [sp, 128]
sdiv w0, w1, w0
str w0, [sp, 552]
str wzr, [sp, 120]
.L601:
ldr w1, [sp, 120]
ldr w0, [sp, 552]
cmp w1, w0
bge .L716
ldr w0, [sp, 120]
add w0, w0, 1
str w0, [sp, 124]
.L604:
add x0, sp, 64
str x0, [sp, 9104]
ldr x0, [sp, 9104]
ldr w0, [x0]
str w0, [sp, 556]
ldr w1, [sp, 124]
ldr w0, [sp, 556]
cmp w1, w0
bgt .L717
ldr w1, [sp, 124]
ldr w0, [sp, 552]
cmp w1, w0
bgt .L607
adrp x0, .LC24
add x0, x0, :lo12:.LC24
str x0, [sp, 696]
b .L608
.L607:
adrp x0, .LC27
add x0, x0, :lo12:.LC27
str x0, [sp, 696]
.L608:
ldr x0, [sp, 696]
str x0, [sp, 9120]
add x0, sp, 624
str x0, [sp, 9128]
ldr x0, [sp, 9128]
ldr x0, [x0]
str x0, [sp, 9136]
ldrsw x0, [sp, 124]
lsl x0, x0, 3
ldr x1, [sp, 9136]
add x0, x1, x0
str x0, [sp, 9144]
ldr x0, [sp, 9144]
ldr x0, [x0]
cmp x0, 0
beq .L609
add x0, sp, 624
str x0, [sp, 9152]
ldr x0, [sp, 9152]
ldr x0, [x0]
str x0, [sp, 9160]
ldrsw x0, [sp, 124]
lsl x0, x0, 3
ldr x1, [sp, 9160]
add x0, x1, x0
str x0, [sp, 9168]
ldr x0, [sp, 9168]
ldr x0, [x0]
str x0, [sp, 9176]
ldr x0, [sp, 9176]
str x0, [sp, 704]
b .L610
.L609:
adrp x0, .LC24
add x0, x0, :lo12:.LC24
str x0, [sp, 704]
.L610:
adrp x0, .LC134
add x0, x0, :lo12:.LC134
str x0, [sp, 9184]
ldr x3, [sp, 704]
ldr w2, [sp, 116]
ldr x1, [sp, 9120]
ldr x0, [sp, 9184]
bl printf
ldr w1, [sp, 124]
ldr w0, [sp, 552]
add w0, w1, w0
str w0, [sp, 124]
b .L604
.L717:
nop
.L606:
adrp x0, .LC25
add x0, x0, :lo12:.LC25
str x0, [sp, 9112]
ldr x0, [sp, 9112]
bl printf
ldr w0, [sp, 120]
add w0, w0, 1
str w0, [sp, 120]
b .L601
.L603:
.L594:
mov w0, 1
str w0, [sp, 112]
b .L611
.L716:
nop
.L611:
add x0, sp, 624
str x0, [sp, 9296]
ldr x0, [sp, 9296]
ldr x0, [x0]
str x0, [sp, 9304]
ldr x0, [sp, 9304]
bl sqlite3_free_table
b .L459
.L710:
nop
b .L588
.L711:
nop
b .L588
.L712:
nop
.L588:
ldr w0, [sp, 208]
cmp w0, 116
bne .L718
ldr w0, [sp, 204]
cmp w0, 4
ble .L719
str xzr, [sp, 9312]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 9312]
add x0, x1, x0
str x0, [sp, 9320]
ldr x0, [sp, 9320]
str x0, [sp, 9328]
ldr x0, [sp, 9328]
ldr x0, [x0]
str x0, [sp, 9336]
ldr x0, [sp, 9336]
str x0, [sp, 9344]
ldrsw x0, [sp, 204]
str x0, [sp, 9352]
ldr x2, [sp, 9352]
adrp x0, .LC135
add x1, x0, :lo12:.LC135
ldr x0, [sp, 9344]
bl strncmp
str w0, [sp, 564]
ldr w0, [sp, 564]
cmp w0, 0
bne .L720
ldr w0, [sp, 72]
cmp w0, 1
ble .L721
ldr x0, [sp, 16]
bl open_db
mov x0, 8
str x0, [sp, 9360]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 9360]
add x0, x1, x0
str x0, [sp, 9368]
ldr x0, [sp, 9368]
str x0, [sp, 9376]
ldr x0, [sp, 9376]
ldr x0, [x0]
str x0, [sp, 9384]
ldr x0, [sp, 9384]
str x0, [sp, 9392]
ldr x0, [sp, 9392]
bl atoi
str w0, [sp, 568]
ldr x0, [sp, 16]
str x0, [sp, 9400]
ldr x0, [sp, 9400]
ldr x0, [x0]
str x0, [sp, 9408]
ldr w1, [sp, 568]
ldr x0, [sp, 9408]
bl sqlite3_busy_timeout
b .L459
.L718:
nop
b .L612
.L719:
nop
b .L612
.L720:
nop
b .L612
.L721:
nop
.L612:
ldr w0, [sp, 208]
cmp w0, 116
bne .L722
ldr w0, [sp, 204]
cmp w0, 4
ble .L723
str xzr, [sp, 9416]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 9416]
add x0, x1, x0
str x0, [sp, 9424]
ldr x0, [sp, 9424]
str x0, [sp, 9432]
ldr x0, [sp, 9432]
ldr x0, [x0]
str x0, [sp, 9440]
ldr x0, [sp, 9440]
str x0, [sp, 9448]
ldrsw x0, [sp, 204]
str x0, [sp, 9456]
ldr x2, [sp, 9456]
adrp x0, .LC136
add x1, x0, :lo12:.LC136
ldr x0, [sp, 9448]
bl strncmp
str w0, [sp, 572]
ldr w0, [sp, 572]
cmp w0, 0
bne .L724
ldr w0, [sp, 72]
cmp w0, 1
ble .L725
mov x0, 8
str x0, [sp, 9464]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 9464]
add x0, x1, x0
str x0, [sp, 9472]
ldr x0, [sp, 9472]
str x0, [sp, 9480]
ldr x0, [sp, 9480]
ldr x0, [x0]
str x0, [sp, 9488]
ldr x0, [sp, 9488]
bl booleanValue
mov w1, w0
adrp x0, enableTimer
add x0, x0, :lo12:enableTimer
str w1, [x0]
b .L459
.L722:
nop
b .L616
.L723:
nop
b .L616
.L724:
nop
b .L616
.L725:
nop
.L616:
ldr w0, [sp, 208]
cmp w0, 119
bne .L620
str xzr, [sp, 9544]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 9544]
add x0, x1, x0
str x0, [sp, 9552]
ldr x0, [sp, 9552]
str x0, [sp, 9560]
ldr x0, [sp, 9560]
ldr x0, [x0]
str x0, [sp, 9568]
ldr x0, [sp, 9568]
str x0, [sp, 9576]
ldrsw x0, [sp, 204]
str x0, [sp, 9584]
ldr x2, [sp, 9584]
adrp x0, .LC129
add x1, x0, :lo12:.LC129
ldr x0, [sp, 9576]
bl strncmp
str w0, [sp, 576]
ldr w0, [sp, 576]
cmp w0, 0
bne .L621
mov x0, 50
str x0, [sp, 9640]
ldrsw x0, [sp, 72]
str x0, [sp, 9648]
ldr x1, [sp, 9648]
ldr x0, [sp, 9640]
cmp x1, x0
bls .L622
adrp x0, .LC137
add x3, x0, :lo12:.LC137
mov w2, 1597
adrp x0, .LC3
add x1, x0, :lo12:.LC3
adrp x0, .LC138
add x0, x0, :lo12:.LC138
bl __assert_fail
.L622:
mov w0, 1
str w0, [sp, 132]
.L623:
ldr w1, [sp, 132]
ldr w0, [sp, 72]
cmp w1, w0
bge .L726
mov x0, 100
str x0, [sp, 9656]
ldrsw x0, [sp, 132]
str x0, [sp, 9664]
ldr x1, [sp, 9664]
ldr x0, [sp, 9656]
cmp x1, x0
bcs .L727
ldr w0, [sp, 132]
sub w0, w0, #1
str w0, [sp, 580]
ldrsw x0, [sp, 580]
lsl x0, x0, 2
str x0, [sp, 9672]
ldr x0, [sp, 9672]
add x0, x0, 68
str x0, [sp, 9680]
ldr x0, [sp, 16]
str x0, [sp, 9688]
ldr x1, [sp, 9688]
ldr x0, [sp, 9680]
add x0, x1, x0
str x0, [sp, 9696]
ldrsw x0, [sp, 132]
lsl x0, x0, 3
str x0, [sp, 9704]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 9704]
add x0, x1, x0
str x0, [sp, 9712]
ldr x0, [sp, 9712]
str x0, [sp, 9720]
ldr x0, [sp, 9720]
ldr x0, [x0]
str x0, [sp, 9728]
ldr x0, [sp, 9728]
str x0, [sp, 9736]
ldr x0, [sp, 9696]
str x0, [sp, 9744]
ldr x0, [sp, 9736]
bl atoi
mov w1, w0
ldr x0, [sp, 9744]
str w1, [x0]
ldr w0, [sp, 132]
add w0, w0, 1
str w0, [sp, 132]
b .L623
.L626:
.L621:
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 9592]
adrp x0, .LC139
add x0, x0, :lo12:.LC139
str x0, [sp, 9600]
str xzr, [sp, 9608]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 9608]
add x0, x1, x0
str x0, [sp, 9616]
ldr x0, [sp, 9616]
str x0, [sp, 9624]
ldr x0, [sp, 9624]
ldr x0, [x0]
str x0, [sp, 9632]
ldr x2, [sp, 9632]
ldr x1, [sp, 9600]
ldr x0, [sp, 9592]
bl fprintf
b .L459
.L620:
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 9496]
adrp x0, .LC139
add x0, x0, :lo12:.LC139
str x0, [sp, 9504]
str xzr, [sp, 9512]
add x0, sp, 8192
add x0, x0, 1624
ldr x1, [sp, 9512]
add x0, x1, x0
str x0, [sp, 9520]
ldr x0, [sp, 9520]
str x0, [sp, 9528]
ldr x0, [sp, 9528]
ldr x0, [x0]
str x0, [sp, 9536]
ldr x2, [sp, 9536]
ldr x1, [sp, 9504]
ldr x0, [sp, 9496]
bl fprintf
b .L459
.L726:
nop
b .L459
.L727:
nop
.L459:
ldr w0, [sp, 76]
.L627:
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 26440]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L628
bl __stack_chk_fail
.L628:
mov w0, w1
ldp x29, x30, [sp]
mov x12, 26448
add sp, sp, x12
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE21:
.size do_meta_command, .-do_meta_command
.align 2
.type _contains_semicolon, %function
_contains_semicolon:
.LFB22:
.cfi_startproc
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, 8]
str w1, [sp, 4]
str wzr, [sp, 32]
.L729:
ldr w1, [sp, 32]
ldr w0, [sp, 4]
cmp w1, w0
bge .L735
ldrsw x0, [sp, 32]
ldr x1, [sp, 8]
add x0, x1, x0
str x0, [sp, 40]
ldr x0, [sp, 40]
ldrb w0, [x0]
strb w0, [sp, 31]
ldrb w0, [sp, 31]
str w0, [sp, 36]
ldr w0, [sp, 36]
cmp w0, 59
bne .L732
mov w0, 1
b .L733
.L732:
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
b .L729
.L735:
nop
.L731:
mov w0, 0
.L733:
add sp, sp, 48
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE22:
.size _contains_semicolon, .-_contains_semicolon
.align 2
.type _all_whitespace, %function
_all_whitespace:
.LFB23:
.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, 24]
.L737:
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 0
beq .L756
bl __ctype_b_loc
str x0, [sp, 88]
ldr x0, [sp, 24]
str x0, [sp, 96]
ldr x0, [sp, 96]
ldrb w0, [x0]
strb w0, [sp, 32]
ldrb w0, [sp, 32]
str w0, [sp, 44]
ldr x0, [sp, 88]
ldr x0, [x0]
str x0, [sp, 104]
ldrsw x0, [sp, 44]
lsl x0, x0, 1
ldr x1, [sp, 104]
add x0, x1, x0
str x0, [sp, 112]
ldr x0, [sp, 112]
ldrh w0, [x0]
strh w0, [sp, 42]
ldrh w0, [sp, 42]
str w0, [sp, 48]
ldr w0, [sp, 48]
and w0, w0, 8192
cmp w0, 0
bne .L757
ldr x0, [sp, 24]
ldrb w0, [x0]
strb w0, [sp, 33]
ldrb w0, [sp, 33]
str w0, [sp, 52]
ldr w0, [sp, 52]
cmp w0, 47
bne .L742
ldr x0, [sp, 24]
add x0, x0, 1
str x0, [sp, 120]
ldr x0, [sp, 120]
ldrb w0, [x0]
strb w0, [sp, 34]
ldrb w0, [sp, 34]
str w0, [sp, 56]
ldr w0, [sp, 56]
cmp w0, 42
bne .L742
ldr x0, [sp, 24]
add x0, x0, 2
str x0, [sp, 24]
.L743:
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 0
beq .L758
ldr x0, [sp, 24]
ldrb w0, [x0]
strb w0, [sp, 35]
ldrb w0, [sp, 35]
str w0, [sp, 60]
ldr w0, [sp, 60]
cmp w0, 42
bne .L745
ldr x0, [sp, 24]
add x0, x0, 1
str x0, [sp, 128]
ldr x0, [sp, 128]
ldrb w0, [x0]
strb w0, [sp, 36]
ldrb w0, [sp, 36]
str w0, [sp, 64]
ldr w0, [sp, 64]
cmp w0, 47
beq .L759
.L745:
ldr x0, [sp, 24]
add x0, x0, 1
str x0, [sp, 24]
b .L743
.L758:
nop
b .L746
.L759:
nop
.L746:
ldr x0, [sp, 24]
ldrb w0, [x0]
strb w0, [sp, 37]
ldrb w0, [sp, 37]
str w0, [sp, 68]
ldr w0, [sp, 68]
cmp w0, 0
bne .L747
mov w0, 0
b .L748
.L747:
ldr x0, [sp, 24]
add x0, x0, 1
str x0, [sp, 24]
b .L741
.L742:
ldr x0, [sp, 24]
ldrb w0, [x0]
strb w0, [sp, 38]
ldrb w0, [sp, 38]
str w0, [sp, 72]
ldr w0, [sp, 72]
cmp w0, 45
bne .L749
ldr x0, [sp, 24]
add x0, x0, 1
str x0, [sp, 136]
ldr x0, [sp, 136]
ldrb w0, [x0]
strb w0, [sp, 39]
ldrb w0, [sp, 39]
str w0, [sp, 76]
ldr w0, [sp, 76]
cmp w0, 45
bne .L749
ldr x0, [sp, 24]
add x0, x0, 2
str x0, [sp, 24]
.L750:
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 0
beq .L760
ldr x0, [sp, 24]
ldrb w0, [x0]
strb w0, [sp, 40]
ldrb w0, [sp, 40]
str w0, [sp, 80]
ldr w0, [sp, 80]
cmp w0, 10
beq .L761
ldr x0, [sp, 24]
add x0, x0, 1
str x0, [sp, 24]
b .L750
.L760:
nop
b .L753
.L761:
nop
.L753:
ldr x0, [sp, 24]
ldrb w0, [x0]
strb w0, [sp, 41]
ldrb w0, [sp, 41]
str w0, [sp, 84]
ldr w0, [sp, 84]
cmp w0, 0
bne .L762
mov w0, 1
b .L748
.L749:
mov w0, 0
b .L748
.L757:
nop
b .L741
.L762:
nop
.L741:
ldr x0, [sp, 24]
add x0, x0, 1
str x0, [sp, 24]
b .L737
.L756:
nop
.L739:
mov w0, 1
.L748:
ldp x29, x30, [sp], 144
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE23:
.size _all_whitespace, .-_all_whitespace
.align 2
.type _is_command_terminator, %function
_is_command_terminator:
.LFB24:
.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]
.L764:
bl __ctype_b_loc
str x0, [sp, 88]
ldr x0, [sp, 24]
str x0, [sp, 96]
ldr x0, [sp, 96]
ldrb w0, [x0]
strb w0, [sp, 46]
ldrb w0, [sp, 46]
str w0, [sp, 52]
ldr x0, [sp, 88]
ldr x0, [x0]
str x0, [sp, 104]
ldrsw x0, [sp, 52]
lsl x0, x0, 1
ldr x1, [sp, 104]
add x0, x1, x0
str x0, [sp, 112]
ldr x0, [sp, 112]
ldrh w0, [x0]
strh w0, [sp, 50]
ldrh w0, [sp, 50]
str w0, [sp, 56]
ldr w0, [sp, 56]
and w0, w0, 8192
cmp w0, 0
beq .L771
ldr x0, [sp, 24]
add x0, x0, 1
str x0, [sp, 24]
b .L764
.L771:
nop
.L766:
ldr x0, [sp, 24]
str x0, [sp, 120]
ldr x0, [sp, 120]
ldrb w0, [x0]
strb w0, [sp, 47]
ldrb w0, [sp, 47]
str w0, [sp, 60]
ldr w0, [sp, 60]
cmp w0, 47
bne .L767
ldr x0, [sp, 24]
add x0, x0, 1
str x0, [sp, 128]
ldr x0, [sp, 128]
bl _all_whitespace
str w0, [sp, 64]
ldr w0, [sp, 64]
cmp w0, 0
beq .L767
mov w0, 1
b .L768
.L767:
ldr x0, [sp, 24]
str x0, [sp, 136]
ldr x0, [sp, 136]
ldrb w0, [x0]
strb w0, [sp, 48]
ldrb w0, [sp, 48]
str w0, [sp, 68]
ldr w0, [sp, 68]
bl tolower
str w0, [sp, 72]
ldr w0, [sp, 72]
cmp w0, 103
bne .L769
ldr x0, [sp, 24]
add x0, x0, 1
str x0, [sp, 144]
ldr x0, [sp, 144]
ldrb w0, [x0]
strb w0, [sp, 49]
ldrb w0, [sp, 49]
str w0, [sp, 76]
ldr w0, [sp, 76]
bl tolower
str w0, [sp, 80]
ldr w0, [sp, 80]
cmp w0, 111
bne .L769
ldr x0, [sp, 24]
add x0, x0, 2
str x0, [sp, 152]
ldr x0, [sp, 152]
bl _all_whitespace
str w0, [sp, 84]
ldr w0, [sp, 84]
cmp w0, 0
beq .L769
mov w0, 1
b .L768
.L769:
mov w0, 0
.L768:
ldp x29, x30, [sp], 160
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE24:
.size _is_command_terminator, .-_is_command_terminator
.section .rodata
.align 3
.LC140:
.string ";"
.align 3
.LC141:
.string "out of memory\n"
.align 3
.LC142:
.string "%s: out of memory!\n"
.align 3
.LC143:
.string "SQL error near line %d:"
.align 3
.LC144:
.string "SQL error:"
.align 3
.LC145:
.string "%s %s\n"
.align 3
.LC146:
.string "Incomplete SQL: %s\n"
.text
.align 2
.type process_input, %function
process_input:
.LFB25:
.cfi_startproc
sub sp, sp, #1232
.cfi_def_cfa_offset 1232
stp x29, x30, [sp]
.cfi_offset 29, -1232
.cfi_offset 30, -1224
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, 1224]
mov x1, 0
str xzr, [sp, 176]
str xzr, [sp, 184]
str wzr, [sp, 52]
str wzr, [sp, 72]
str wzr, [sp, 56]
str wzr, [sp, 60]
str wzr, [sp, 64]
.L773:
ldr w0, [sp, 56]
cmp w0, 0
beq .L774
adrp x0, bail_on_error
add x0, x0, :lo12:bail_on_error
ldr w0, [x0]
cmp w0, 0
beq .L774
str xzr, [sp, 192]
ldr x0, [sp, 192]
str x0, [sp, 200]
ldr x0, [sp, 16]
str x0, [sp, 208]
ldr x1, [sp, 208]
ldr x0, [sp, 200]
cmp x1, x0
bne .L809
adrp x0, stdin_is_interactive
add x0, x0, :lo12:stdin_is_interactive
ldr w0, [x0]
cmp w0, 0
beq .L810
.L774:
ldr x0, [sp, 24]
str x0, [sp, 216]
ldr x0, [sp, 216]
add x0, x0, 16
str x0, [sp, 224]
ldr x0, [sp, 224]
str x0, [sp, 232]
ldr x0, [sp, 232]
ldr x0, [x0]
str x0, [sp, 240]
ldr x0, [sp, 240]
bl fflush
ldr x0, [sp, 176]
str x0, [sp, 248]
ldr x0, [sp, 248]
bl free
ldr x0, [sp, 184]
str x0, [sp, 256]
ldr x1, [sp, 16]
ldr x0, [sp, 256]
bl one_input_line
str x0, [sp, 176]
str xzr, [sp, 264]
ldr x0, [sp, 264]
str x0, [sp, 272]
ldr x0, [sp, 176]
str x0, [sp, 280]
ldr x1, [sp, 280]
ldr x0, [sp, 272]
cmp x1, x0
beq .L811
adrp x0, seenInterrupt
add x0, x0, :lo12:seenInterrupt
ldr w0, [x0]
cmp w0, 0
beq .L778
str xzr, [sp, 288]
ldr x0, [sp, 288]
str x0, [sp, 296]
ldr x0, [sp, 16]
str x0, [sp, 304]
ldr x1, [sp, 304]
ldr x0, [sp, 296]
cmp x1, x0
bne .L812
adrp x0, seenInterrupt
add x0, x0, :lo12:seenInterrupt
str wzr, [x0]
.L778:
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
ldr x0, [sp, 24]
str x0, [sp, 312]
ldr x0, [sp, 312]
add x0, x0, 8
str x0, [sp, 320]
ldr x0, [sp, 320]
str x0, [sp, 328]
ldr x0, [sp, 328]
ldr w0, [x0]
cmp w0, 0
beq .L780
adrp x0, .LC53
add x0, x0, :lo12:.LC53
str x0, [sp, 336]
ldr x1, [sp, 176]
ldr x0, [sp, 336]
bl printf
.L780:
str xzr, [sp, 344]
ldr x0, [sp, 344]
str x0, [sp, 352]
ldr x0, [sp, 184]
str x0, [sp, 360]
ldr x1, [sp, 360]
ldr x0, [sp, 352]
cmp x1, x0
beq .L813
ldr x0, [sp, 184]
str x0, [sp, 368]
ldr x0, [sp, 368]
ldrb w0, [x0]
strb w0, [sp, 45]
ldrb w0, [sp, 45]
str w0, [sp, 76]
ldr w0, [sp, 76]
cmp w0, 0
bne .L783
b .L782
.L813:
nop
.L782:
ldr x0, [sp, 176]
str x0, [sp, 376]
ldr x0, [sp, 376]
bl _all_whitespace
str w0, [sp, 80]
ldr w0, [sp, 80]
cmp w0, 0
beq .L783
b .L773
.L783:
ldr x0, [sp, 176]
cmp x0, 0
beq .L784
ldr x0, [sp, 176]
str x0, [sp, 384]
ldr x0, [sp, 384]
ldrb w0, [x0]
strb w0, [sp, 46]
ldrb w0, [sp, 46]
str w0, [sp, 84]
ldr w0, [sp, 84]
cmp w0, 46
bne .L784
ldr w0, [sp, 52]
cmp w0, 0
bne .L784
ldr x1, [sp, 24]
ldr x0, [sp, 176]
bl do_meta_command
str w0, [sp, 88]
ldr w0, [sp, 88]
cmp w0, 2
beq .L814
ldr w0, [sp, 88]
cmp w0, 0
beq .L773
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
b .L773
.L784:
ldr x0, [sp, 176]
str x0, [sp, 392]
ldr x0, [sp, 392]
bl _is_command_terminator
str w0, [sp, 92]
ldr w0, [sp, 92]
cmp w0, 0
beq .L787
ldr x0, [sp, 184]
str x0, [sp, 400]
ldr x0, [sp, 400]
bl sqlite3_complete
str w0, [sp, 96]
ldr w0, [sp, 96]
cmp w0, 0
beq .L787
ldr x0, [sp, 176]
str x0, [sp, 408]
adrp x0, .LC140
add x0, x0, :lo12:.LC140
str x0, [sp, 416]
ldr x0, [sp, 416]
ldrh w1, [x0]
ldr x0, [sp, 408]
strh w1, [x0]
.L787:
ldr w0, [sp, 52]
str w0, [sp, 72]
str xzr, [sp, 424]
ldr x0, [sp, 424]
str x0, [sp, 432]
ldr x0, [sp, 184]
str x0, [sp, 440]
ldr x1, [sp, 440]
ldr x0, [sp, 432]
cmp x1, x0
bne .L788
str wzr, [sp, 68]
.L789:
ldrsw x0, [sp, 68]
ldr x1, [sp, 176]
add x0, x1, x0
str x0, [sp, 568]
ldr x0, [sp, 568]
ldrb w0, [x0]
cmp w0, 0
beq .L815
bl __ctype_b_loc
str x0, [sp, 576]
ldrsw x0, [sp, 68]
ldr x1, [sp, 176]
add x0, x1, x0
str x0, [sp, 584]
ldr x0, [sp, 584]
ldrb w0, [x0]
strb w0, [sp, 47]
ldrb w0, [sp, 47]
strb w0, [sp, 48]
ldrb w0, [sp, 48]
str w0, [sp, 120]
ldr x0, [sp, 576]
ldr x0, [x0]
str x0, [sp, 592]
ldrsw x0, [sp, 120]
lsl x0, x0, 1
ldr x1, [sp, 592]
add x0, x1, x0
str x0, [sp, 600]
ldr x0, [sp, 600]
ldrh w0, [x0]
strh w0, [sp, 50]
ldrh w0, [sp, 50]
str w0, [sp, 124]
ldr w0, [sp, 124]
and w0, w0, 8192
cmp w0, 0
beq .L816
ldr w0, [sp, 68]
add w0, w0, 1
str w0, [sp, 68]
b .L789
.L815:
nop
b .L792
.L816:
nop
.L792:
ldrsw x0, [sp, 68]
ldr x1, [sp, 176]
add x0, x1, x0
str x0, [sp, 608]
ldr x0, [sp, 608]
ldrb w0, [x0]
strb w0, [sp, 49]
ldrb w0, [sp, 49]
str w0, [sp, 128]
ldr w0, [sp, 128]
cmp w0, 0
beq .L793
ldr x0, [sp, 176]
str x0, [sp, 616]
ldr x0, [sp, 616]
bl strlen
str x0, [sp, 624]
ldr x0, [sp, 624]
str w0, [sp, 52]
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 132]
ldrsw x0, [sp, 132]
str x0, [sp, 632]
ldr x0, [sp, 632]
bl malloc
str x0, [sp, 640]
ldr x0, [sp, 640]
str x0, [sp, 184]
str xzr, [sp, 648]
ldr x0, [sp, 648]
str x0, [sp, 656]
ldr x0, [sp, 184]
str x0, [sp, 664]
ldr x1, [sp, 664]
ldr x0, [sp, 656]
cmp x1, x0
bne .L794
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 696]
adrp x0, .LC141
add x0, x0, :lo12:.LC141
str x0, [sp, 704]
ldr x1, [sp, 704]
ldr x0, [sp, 696]
bl fprintf
mov w0, 1
bl exit
.L794:
ldr x0, [sp, 184]
str x0, [sp, 672]
ldr x0, [sp, 176]
str x0, [sp, 680]
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 136]
ldrsw x0, [sp, 136]
str x0, [sp, 688]
ldr x2, [sp, 688]
ldr x1, [sp, 680]
ldr x0, [sp, 672]
bl memcpy
ldr w0, [sp, 60]
str w0, [sp, 64]
b .L793
.L788:
ldr x0, [sp, 176]
str x0, [sp, 448]
ldr x0, [sp, 448]
bl strlen
str x0, [sp, 456]
ldr x0, [sp, 456]
str w0, [sp, 100]
ldr x0, [sp, 184]
str x0, [sp, 464]
ldr w1, [sp, 52]
ldr w0, [sp, 100]
add w0, w1, w0
str w0, [sp, 104]
ldr w0, [sp, 104]
add w0, w0, 2
str w0, [sp, 108]
ldrsw x0, [sp, 108]
str x0, [sp, 472]
ldr x1, [sp, 472]
ldr x0, [sp, 464]
bl realloc
str x0, [sp, 480]
ldr x0, [sp, 480]
str x0, [sp, 184]
str xzr, [sp, 488]
ldr x0, [sp, 488]
str x0, [sp, 496]
ldr x0, [sp, 184]
str x0, [sp, 504]
ldr x1, [sp, 504]
ldr x0, [sp, 496]
cmp x1, x0
bne .L795
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 552]
adrp x0, .LC142
add x0, x0, :lo12:.LC142
str x0, [sp, 560]
adrp x0, Argv0
add x0, x0, :lo12:Argv0
ldr x0, [x0]
mov x2, x0
ldr x1, [sp, 560]
ldr x0, [sp, 552]
bl fprintf
mov w0, 1
bl exit
.L795:
ldr w0, [sp, 52]
str w0, [sp, 112]
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
ldrsw x0, [sp, 112]
ldr x1, [sp, 184]
add x0, x1, x0
str x0, [sp, 512]
ldr x0, [sp, 512]
mov w1, 10
strb w1, [x0]
ldrsw x0, [sp, 52]
ldr x1, [sp, 184]
add x0, x1, x0
str x0, [sp, 520]
ldr x0, [sp, 520]
str x0, [sp, 528]
ldr x0, [sp, 176]
str x0, [sp, 536]
ldr w0, [sp, 100]
add w0, w0, 1
str w0, [sp, 116]
ldrsw x0, [sp, 116]
str x0, [sp, 544]
ldr x2, [sp, 544]
ldr x1, [sp, 536]
ldr x0, [sp, 528]
bl memcpy
ldr w1, [sp, 52]
ldr w0, [sp, 100]
add w0, w1, w0
str w0, [sp, 52]
.L793:
ldr x0, [sp, 184]
cmp x0, 0
beq .L773
ldrsw x0, [sp, 72]
ldr x1, [sp, 184]
add x0, x1, x0
str x0, [sp, 712]
ldr x0, [sp, 712]
str x0, [sp, 720]
ldr w1, [sp, 52]
ldr w0, [sp, 72]
sub w0, w1, w0
str w0, [sp, 140]
ldr w1, [sp, 140]
ldr x0, [sp, 720]
bl _contains_semicolon
str w0, [sp, 144]
ldr w0, [sp, 144]
cmp w0, 0
beq .L773
ldr x0, [sp, 184]
str x0, [sp, 728]
ldr x0, [sp, 728]
bl sqlite3_complete
str w0, [sp, 148]
ldr w0, [sp, 148]
cmp w0, 0
beq .L773
ldr x0, [sp, 24]
str x0, [sp, 736]
ldr x0, [sp, 736]
add x0, x0, 12
str x0, [sp, 744]
ldr x0, [sp, 744]
str x0, [sp, 752]
ldr x0, [sp, 752]
str wzr, [x0]
ldr x0, [sp, 24]
bl open_db
bl beginTimer
ldr x0, [sp, 24]
str x0, [sp, 760]
ldr x0, [sp, 760]
ldr x0, [x0]
str x0, [sp, 768]
ldr x0, [sp, 184]
str x0, [sp, 776]
ldr x0, [sp, 24]
str x0, [sp, 784]
add x0, sp, 168
mov x4, x0
ldr x3, [sp, 784]
adrp x0, callback
add x2, x0, :lo12:callback
ldr x1, [sp, 776]
ldr x0, [sp, 768]
bl sqlite3_exec
str w0, [sp, 88]
bl endTimer
ldr w0, [sp, 88]
cmp w0, 0
bne .L817
add x0, sp, 168
str x0, [sp, 792]
ldr x0, [sp, 792]
ldr x0, [x0]
cmp x0, 0
beq .L799
b .L798
.L817:
nop
.L798:
str xzr, [sp, 800]
ldr x0, [sp, 800]
str x0, [sp, 808]
ldr x0, [sp, 16]
str x0, [sp, 816]
ldr x1, [sp, 816]
ldr x0, [sp, 808]
cmp x1, x0
beq .L800
mov w0, 100
str w0, [sp, 160]
str xzr, [sp, 872]
add x0, sp, 1120
ldr x1, [sp, 872]
add x0, x1, x0
str x0, [sp, 880]
ldr x0, [sp, 880]
str x0, [sp, 888]
ldr w3, [sp, 64]
adrp x0, .LC143
add x2, x0, :lo12:.LC143
ldr x1, [sp, 888]
ldr w0, [sp, 160]
bl sqlite3_snprintf
b .L801
.L800:
adrp x0, stdin_is_interactive
add x0, x0, :lo12:stdin_is_interactive
ldr w0, [x0]
cmp w0, 0
bne .L802
mov w0, 100
str w0, [sp, 156]
str xzr, [sp, 848]
add x0, sp, 1120
ldr x1, [sp, 848]
add x0, x1, x0
str x0, [sp, 856]
ldr x0, [sp, 856]
str x0, [sp, 864]
ldr w3, [sp, 64]
adrp x0, .LC143
add x2, x0, :lo12:.LC143
ldr x1, [sp, 864]
ldr w0, [sp, 156]
bl sqlite3_snprintf
b .L801
.L802:
mov w0, 100
str w0, [sp, 152]
str xzr, [sp, 824]
add x0, sp, 1120
ldr x1, [sp, 824]
add x0, x1, x0
str x0, [sp, 832]
ldr x0, [sp, 832]
str x0, [sp, 840]
adrp x0, .LC144
add x2, x0, :lo12:.LC144
ldr x1, [sp, 840]
ldr w0, [sp, 152]
bl sqlite3_snprintf
.L801:
str xzr, [sp, 896]
ldr x0, [sp, 896]
str x0, [sp, 904]
add x0, sp, 168
str x0, [sp, 912]
ldr x0, [sp, 912]
ldr x0, [x0]
str x0, [sp, 920]
ldr x0, [sp, 920]
str x0, [sp, 928]
ldr x1, [sp, 928]
ldr x0, [sp, 904]
cmp x1, x0
beq .L803
adrp x0, .LC145
add x0, x0, :lo12:.LC145
str x0, [sp, 992]
str xzr, [sp, 1000]
add x0, sp, 1120
ldr x1, [sp, 1000]
add x0, x1, x0
str x0, [sp, 1008]
ldr x0, [sp, 1008]
str x0, [sp, 1016]
add x0, sp, 168
str x0, [sp, 1024]
ldr x0, [sp, 1024]
ldr x0, [x0]
str x0, [sp, 1032]
ldr x2, [sp, 1032]
ldr x1, [sp, 1016]
ldr x0, [sp, 992]
bl printf
add x0, sp, 168
str x0, [sp, 1040]
ldr x0, [sp, 1040]
ldr x0, [x0]
str x0, [sp, 1048]
ldr x0, [sp, 1048]
str x0, [sp, 1056]
ldr x0, [sp, 1056]
bl sqlite3_free
add x0, sp, 168
str x0, [sp, 1064]
ldr x0, [sp, 1064]
str xzr, [x0]
b .L804
.L803:
ldr x0, [sp, 24]
str x0, [sp, 936]
ldr x0, [sp, 936]
ldr x0, [x0]
str x0, [sp, 944]
ldr x0, [sp, 944]
bl sqlite3_errmsg
str x0, [sp, 952]
adrp x0, .LC145
add x0, x0, :lo12:.LC145
str x0, [sp, 960]
str xzr, [sp, 968]
add x0, sp, 1120
ldr x1, [sp, 968]
add x0, x1, x0
str x0, [sp, 976]
ldr x0, [sp, 976]
str x0, [sp, 984]
ldr x2, [sp, 952]
ldr x1, [sp, 984]
ldr x0, [sp, 960]
bl printf
.L804:
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
.L799:
ldr x0, [sp, 184]
str x0, [sp, 1072]
ldr x0, [sp, 1072]
bl free
str xzr, [sp, 184]
str wzr, [sp, 52]
b .L773
.L809:
nop
b .L776
.L810:
nop
b .L776
.L811:
nop
b .L776
.L812:
nop
b .L776
.L814:
nop
.L776:
ldr x0, [sp, 184]
cmp x0, 0
beq .L805
ldr x0, [sp, 184]
str x0, [sp, 1080]
ldr x0, [sp, 1080]
bl _all_whitespace
str w0, [sp, 164]
ldr w0, [sp, 164]
cmp w0, 0
bne .L806
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 1088]
adrp x0, .LC146
add x0, x0, :lo12:.LC146
str x0, [sp, 1096]
ldr x2, [sp, 184]
ldr x1, [sp, 1096]
ldr x0, [sp, 1088]
bl fprintf
.L806:
ldr x0, [sp, 184]
str x0, [sp, 1104]
ldr x0, [sp, 1104]
bl free
.L805:
ldr x0, [sp, 176]
str x0, [sp, 1112]
ldr x0, [sp, 1112]
bl free
ldr w0, [sp, 56]
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 1224]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L808
bl __stack_chk_fail
.L808:
mov w0, w1
ldp x29, x30, [sp]
add sp, sp, 1232
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE25:
.size process_input, .-process_input
.section .rodata
.align 3
.LC147:
.string "HOME"
.text
.align 2
.type find_home_dir, %function
find_home_dir:
.LFB26:
.cfi_startproc
stp x29, x30, [sp, -176]!
.cfi_def_cfa_offset 176
.cfi_offset 29, -176
.cfi_offset 30, -168
mov x29, sp
str xzr, [sp, 40]
ldr x0, [sp, 40]
str x0, [sp, 32]
bl getuid
str w0, [sp, 20]
ldr w0, [sp, 20]
str w0, [sp, 24]
ldr w0, [sp, 24]
bl getpwuid
str x0, [sp, 48]
str xzr, [sp, 56]
ldr x0, [sp, 56]
str x0, [sp, 64]
ldr x0, [sp, 48]
str x0, [sp, 72]
ldr x1, [sp, 72]
ldr x0, [sp, 64]
cmp x1, x0
beq .L819
ldr x0, [sp, 48]
str x0, [sp, 80]
ldr x0, [sp, 80]
add x0, x0, 32
str x0, [sp, 88]
ldr x0, [sp, 88]
str x0, [sp, 96]
ldr x0, [sp, 96]
ldr x0, [x0]
str x0, [sp, 32]
.L819:
ldr x0, [sp, 32]
cmp x0, 0
bne .L820
adrp x0, .LC147
add x0, x0, :lo12:.LC147
bl getenv
str x0, [sp, 32]
.L820:
ldr x0, [sp, 32]
cmp x0, 0
beq .L821
ldr x0, [sp, 32]
str x0, [sp, 104]
ldr x0, [sp, 104]
bl strlen
str x0, [sp, 112]
ldr x0, [sp, 112]
add x0, x0, 1
str x0, [sp, 120]
ldr x0, [sp, 120]
str w0, [sp, 28]
ldrsw x0, [sp, 28]
str x0, [sp, 128]
ldr x0, [sp, 128]
bl malloc
str x0, [sp, 136]
ldr x0, [sp, 136]
str x0, [sp, 144]
ldr x0, [sp, 144]
cmp x0, 0
beq .L822
ldr x0, [sp, 144]
str x0, [sp, 152]
ldr x0, [sp, 32]
str x0, [sp, 160]
ldrsw x0, [sp, 28]
str x0, [sp, 168]
ldr x2, [sp, 168]
ldr x1, [sp, 160]
ldr x0, [sp, 152]
bl memcpy
.L822:
ldr x0, [sp, 144]
str x0, [sp, 32]
.L821:
ldr x0, [sp, 32]
ldp x29, x30, [sp], 176
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE26:
.size find_home_dir, .-find_home_dir
.section .rodata
.align 3
.LC148:
.string "%s: cannot locate your home directory!\n"
.align 3
.LC149:
.string "%s/.sqliterc"
.align 3
.LC150:
.string "-- Loading resources from %s\n"
.text
.align 2
.type process_sqliterc, %function
process_sqliterc:
.LFB27:
.cfi_startproc
stp x29, x30, [sp, -272]!
.cfi_def_cfa_offset 272
.cfi_offset 29, -272
.cfi_offset 30, -264
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
str xzr, [sp, 56]
ldr x0, [sp, 56]
str x0, [sp, 64]
ldr x0, [sp, 16]
str x0, [sp, 40]
str xzr, [sp, 48]
str xzr, [sp, 72]
ldr x0, [sp, 72]
str x0, [sp, 80]
str xzr, [sp, 88]
ldr x0, [sp, 88]
str x0, [sp, 96]
ldr x0, [sp, 40]
str x0, [sp, 104]
ldr x1, [sp, 104]
ldr x0, [sp, 96]
cmp x1, x0
bne .L825
bl find_home_dir
str x0, [sp, 64]
str xzr, [sp, 112]
ldr x0, [sp, 112]
str x0, [sp, 120]
ldr x0, [sp, 64]
str x0, [sp, 128]
ldr x1, [sp, 128]
ldr x0, [sp, 120]
cmp x1, x0
bne .L826
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 224]
adrp x0, .LC148
add x0, x0, :lo12:.LC148
str x0, [sp, 232]
adrp x0, Argv0
add x0, x0, :lo12:Argv0
ldr x0, [x0]
mov x2, x0
ldr x1, [sp, 232]
ldr x0, [sp, 224]
bl fprintf
b .L824
.L826:
ldr x0, [sp, 64]
str x0, [sp, 136]
ldr x0, [sp, 136]
bl strlen
str x0, [sp, 144]
ldr x0, [sp, 144]
add x0, x0, 16
str x0, [sp, 152]
ldr x0, [sp, 152]
str w0, [sp, 36]
ldrsw x0, [sp, 36]
str x0, [sp, 160]
ldr x0, [sp, 160]
bl malloc
str x0, [sp, 168]
ldr x0, [sp, 168]
str x0, [sp, 48]
str xzr, [sp, 176]
ldr x0, [sp, 176]
str x0, [sp, 184]
ldr x0, [sp, 48]
str x0, [sp, 192]
ldr x1, [sp, 192]
ldr x0, [sp, 184]
cmp x1, x0
bne .L828
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 208]
adrp x0, .LC142
add x0, x0, :lo12:.LC142
str x0, [sp, 216]
adrp x0, Argv0
add x0, x0, :lo12:Argv0
ldr x0, [x0]
mov x2, x0
ldr x1, [sp, 216]
ldr x0, [sp, 208]
bl fprintf
mov w0, 1
bl exit
.L828:
ldr x3, [sp, 64]
adrp x0, .LC149
add x2, x0, :lo12:.LC149
ldr x1, [sp, 48]
ldr w0, [sp, 36]
bl sqlite3_snprintf
ldr x0, [sp, 64]
str x0, [sp, 200]
ldr x0, [sp, 200]
bl free
ldr x0, [sp, 48]
str x0, [sp, 40]
.L825:
ldr x0, [sp, 40]
str x0, [sp, 240]
adrp x0, .LC92
add x0, x0, :lo12:.LC92
str x0, [sp, 248]
ldr x1, [sp, 248]
ldr x0, [sp, 240]
bl fopen
str x0, [sp, 80]
ldr x0, [sp, 80]
cmp x0, 0
beq .L829
adrp x0, stdin_is_interactive
add x0, x0, :lo12:stdin_is_interactive
ldr w0, [x0]
cmp w0, 0
beq .L830
adrp x0, .LC150
add x0, x0, :lo12:.LC150
str x0, [sp, 256]
ldr x1, [sp, 40]
ldr x0, [sp, 256]
bl printf
.L830:
ldr x1, [sp, 80]
ldr x0, [sp, 24]
bl process_input
ldr x0, [sp, 80]
bl fclose
.L829:
ldr x0, [sp, 48]
str x0, [sp, 264]
ldr x0, [sp, 264]
bl free
nop
.L824:
ldp x29, x30, [sp], 272
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE27:
.size process_sqliterc, .-process_sqliterc
.section .rodata
.align 3
.type zOptions, %object
.size zOptions, 694
zOptions:
.ascii " -init filename read/process named file\n -echo "
.ascii " print commands before execution\n -[no]header"
.ascii " turn headers on or off\n -bail st"
.ascii "op after hitting an error\n -interactive force int"
.ascii "eractive I/O\n -batch force batch I/O\n -c"
.ascii "olumn set output mode to 'column'\n -csv "
.ascii " set output mode to 'csv'\n -html "
.ascii " set output mode to HTML"
.string "\n -line set output mode to 'line'\n -list set output mode to 'list'\n -separator 'x' set output field separator (|)\n -nullvalue 'text' set text string for NULL values\n -version show SQLite version\n"
.align 3
.LC151:
.string "Usage: %s [OPTIONS] FILENAME [SQL]\nFILENAME is the name of an SQLite database. A new database is created\nif the file does not previously exist.\n"
.align 3
.LC152:
.string "OPTIONS include:\n%s"
.align 3
.LC153:
.string "Use the -help option for additional information\n"
.text
.align 2
.type usage, %function
usage:
.LFB28:
.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]
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 40]
adrp x0, .LC151
add x0, x0, :lo12:.LC151
str x0, [sp, 48]
adrp x0, Argv0
add x0, x0, :lo12:Argv0
ldr x0, [x0]
mov x2, x0
ldr x1, [sp, 48]
ldr x0, [sp, 40]
bl fprintf
ldr w0, [sp, 28]
cmp w0, 0
beq .L832
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 72]
adrp x0, .LC152
add x0, x0, :lo12:.LC152
str x0, [sp, 80]
str xzr, [sp, 88]
adrp x0, zOptions
add x0, x0, :lo12:zOptions
ldr x1, [sp, 88]
add x0, x1, x0
str x0, [sp, 96]
ldr x0, [sp, 96]
str x0, [sp, 104]
ldr x2, [sp, 104]
ldr x1, [sp, 80]
ldr x0, [sp, 72]
bl fprintf
b .L833
.L832:
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 56]
adrp x0, .LC153
add x0, x0, :lo12:.LC153
str x0, [sp, 64]
ldr x1, [sp, 64]
ldr x0, [sp, 56]
bl fprintf
.L833:
mov w0, 1
bl exit
.cfi_endproc
.LFE28:
.size usage, .-usage
.section .rodata
.align 3
.LC154:
.string "|"
.align 3
.LC155:
.string "sqlite> "
.align 3
.LC156:
.string " ...> "
.text
.align 2
.type main_init, %function
main_init:
.LFB29:
.cfi_startproc
stp x29, x30, [sp, -208]!
.cfi_def_cfa_offset 208
.cfi_offset 29, -208
.cfi_offset 30, -200
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
str x0, [sp, 48]
mov x2, 5408
mov w1, 0
ldr x0, [sp, 48]
bl memset
ldr x0, [sp, 24]
str x0, [sp, 56]
ldr x0, [sp, 56]
add x0, x0, 24
str x0, [sp, 64]
ldr x0, [sp, 64]
str x0, [sp, 72]
ldr x0, [sp, 72]
mov w1, 2
str w1, [x0]
str xzr, [sp, 80]
ldr x0, [sp, 80]
add x0, x0, 48
str x0, [sp, 88]
ldr x0, [sp, 24]
str x0, [sp, 96]
ldr x1, [sp, 96]
ldr x0, [sp, 88]
add x0, x1, x0
str x0, [sp, 104]
ldr x0, [sp, 104]
str x0, [sp, 112]
ldr x0, [sp, 112]
str x0, [sp, 120]
adrp x0, .LC154
add x0, x0, :lo12:.LC154
str x0, [sp, 128]
ldr x0, [sp, 128]
ldrh w1, [x0]
ldr x0, [sp, 120]
strh w1, [x0]
ldr x0, [sp, 24]
str x0, [sp, 136]
ldr x0, [sp, 136]
add x0, x0, 32
str x0, [sp, 144]
ldr x0, [sp, 144]
str x0, [sp, 152]
ldr x0, [sp, 152]
str wzr, [x0]
mov w0, 20
str w0, [sp, 40]
str xzr, [sp, 160]
adrp x0, mainPrompt
add x0, x0, :lo12:mainPrompt
ldr x1, [sp, 160]
add x0, x1, x0
str x0, [sp, 168]
ldr x0, [sp, 168]
str x0, [sp, 176]
adrp x0, .LC155
add x2, x0, :lo12:.LC155
ldr x1, [sp, 176]
ldr w0, [sp, 40]
bl sqlite3_snprintf
mov w0, 20
str w0, [sp, 44]
str xzr, [sp, 184]
adrp x0, continuePrompt
add x0, x0, :lo12:continuePrompt
ldr x1, [sp, 184]
add x0, x1, x0
str x0, [sp, 192]
ldr x0, [sp, 192]
str x0, [sp, 200]
adrp x0, .LC156
add x2, x0, :lo12:.LC156
ldr x1, [sp, 200]
ldr w0, [sp, 44]
bl sqlite3_snprintf
nop
ldp x29, x30, [sp], 208
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE29:
.size main_init, .-main_init
.section .rodata
.align 3
.LC157:
.string "-separator"
.align 3
.LC158:
.string "-nullvalue"
.align 3
.LC159:
.string "-init"
.align 3
.LC160:
.string ":memory:"
.align 3
.LC161:
.string "-html"
.align 3
.LC162:
.string "-list"
.align 3
.LC163:
.string "-line"
.align 3
.LC164:
.string "-column"
.align 3
.LC165:
.string "-csv"
.align 3
.LC166:
.string "-header"
.align 3
.LC167:
.string "-noheader"
.align 3
.LC168:
.string "-echo"
.align 3
.LC169:
.string "-bail"
.align 3
.LC170:
.string "-version"
.align 3
.LC171:
.string "-interactive"
.align 3
.LC172:
.string "-batch"
.align 3
.LC173:
.string "-help"
.align 3
.LC174:
.string "--help"
.align 3
.LC175:
.string "%s: unknown option: %s\n"
.align 3
.LC176:
.string "Use -help for a list of options.\n"
.align 3
.LC177:
.string "SQL error: %s\n"
.align 3
.LC178:
.string "SQLite version %s\nEnter \".help\" for instructions\nEnter SQL statements terminated with a \";\"\n"
.align 3
.LC179:
.string "%s/.sqlite_history"
.align 3
.LC180:
.string "error closing database: %s\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB30:
.cfi_startproc
mov x12, 6688
sub sp, sp, x12
.cfi_def_cfa_offset 6688
stp x29, x30, [sp]
.cfi_offset 29, -6688
.cfi_offset 30, -6680
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, 6680]
mov x1, 0
add x0, sp, 216
str x0, [sp, 256]
ldr x0, [sp, 256]
str xzr, [x0]
str xzr, [sp, 224]
str xzr, [sp, 232]
str wzr, [sp, 56]
ldr x0, [sp, 16]
str x0, [sp, 264]
ldr x0, [sp, 264]
ldr x1, [x0]
adrp x0, Argv0
add x0, x0, :lo12:Argv0
str x1, [x0]
add x0, sp, 1272
bl main_init
mov w0, 0
bl isatty
mov w1, w0
adrp x0, stdin_is_interactive
add x0, x0, :lo12:stdin_is_interactive
str w1, [x0]
adrp x0, interrupt_handler
add x1, x0, :lo12:interrupt_handler
mov w0, 2
bl signal
mov w0, 1
str w0, [sp, 52]
.L837:
ldr w0, [sp, 28]
sub w0, w0, #1
str w0, [sp, 60]
ldr w1, [sp, 52]
ldr w0, [sp, 60]
cmp w1, w0
bge .L882
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 272]
ldr x0, [sp, 272]
ldr x0, [x0]
str x0, [sp, 280]
ldr x0, [sp, 280]
str x0, [sp, 288]
ldr x0, [sp, 288]
ldrb w0, [x0]
strb w0, [sp, 46]
ldrb w0, [sp, 46]
str w0, [sp, 64]
ldr w0, [sp, 64]
cmp w0, 45
bne .L883
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 296]
ldr x0, [sp, 296]
ldr x0, [x0]
str x0, [sp, 304]
ldr x0, [sp, 304]
str x0, [sp, 312]
ldr x0, [sp, 312]
ldrb w0, [x0]
strb w0, [sp, 47]
ldrb w0, [sp, 47]
str w0, [sp, 68]
ldr w0, [sp, 68]
cmp w0, 45
bne .L841
ldr x0, [sp, 304]
add x0, x0, 1
str x0, [sp, 320]
ldr x0, [sp, 320]
ldrb w0, [x0]
strb w0, [sp, 48]
ldrb w0, [sp, 48]
str w0, [sp, 72]
ldr w0, [sp, 72]
cmp w0, 45
bne .L841
ldr x0, [sp, 304]
add x0, x0, 1
str x0, [sp, 304]
.L841:
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 328]
ldr x0, [sp, 328]
ldr x0, [x0]
str x0, [sp, 336]
ldr x0, [sp, 336]
str x0, [sp, 344]
adrp x0, .LC157
add x1, x0, :lo12:.LC157
ldr x0, [sp, 344]
bl strcmp
str w0, [sp, 76]
ldr w0, [sp, 76]
cmp w0, 0
bne .L842
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
b .L843
.L842:
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 352]
ldr x0, [sp, 352]
ldr x0, [x0]
str x0, [sp, 360]
ldr x0, [sp, 360]
str x0, [sp, 368]
adrp x0, .LC158
add x1, x0, :lo12:.LC158
ldr x0, [sp, 368]
bl strcmp
str w0, [sp, 80]
ldr w0, [sp, 80]
cmp w0, 0
bne .L844
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
b .L843
.L844:
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 376]
ldr x0, [sp, 376]
ldr x0, [x0]
str x0, [sp, 384]
ldr x0, [sp, 384]
str x0, [sp, 392]
adrp x0, .LC159
add x1, x0, :lo12:.LC159
ldr x0, [sp, 392]
bl strcmp
str w0, [sp, 84]
ldr w0, [sp, 84]
cmp w0, 0
bne .L843
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 400]
ldr x0, [sp, 400]
ldr x0, [x0]
str x0, [sp, 408]
ldr x0, [sp, 408]
str x0, [sp, 224]
.L843:
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
b .L837
.L882:
nop
b .L839
.L883:
nop
.L839:
ldr w1, [sp, 52]
ldr w0, [sp, 28]
cmp w1, w0
bge .L845
ldr w0, [sp, 52]
str w0, [sp, 88]
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
add x1, sp, 1272
mov x0, 5400
add x0, x1, x0
str x0, [sp, 432]
ldrsw x0, [sp, 88]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 440]
ldr x0, [sp, 440]
ldr x0, [x0]
str x0, [sp, 448]
ldr x0, [sp, 432]
str x0, [sp, 456]
ldr x0, [sp, 456]
ldr x1, [sp, 448]
str x1, [x0]
b .L846
.L845:
add x1, sp, 1272
mov x0, 5400
add x0, x1, x0
str x0, [sp, 416]
ldr x0, [sp, 416]
str x0, [sp, 424]
ldr x0, [sp, 424]
adrp x1, .LC160
add x1, x1, :lo12:.LC160
str x1, [x0]
.L846:
ldr w1, [sp, 52]
ldr w0, [sp, 28]
cmp w1, w0
bge .L847
ldr w0, [sp, 52]
str w0, [sp, 92]
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
ldrsw x0, [sp, 92]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 464]
ldr x0, [sp, 464]
ldr x0, [x0]
str x0, [sp, 232]
.L847:
add x0, sp, 1272
add x0, x0, 16
str x0, [sp, 472]
ldr x0, [sp, 472]
str x0, [sp, 480]
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x1, [x0]
ldr x0, [sp, 480]
str x1, [x0]
add x1, sp, 1272
mov x0, 5400
add x0, x1, x0
str x0, [sp, 488]
ldr x0, [sp, 488]
str x0, [sp, 496]
ldr x0, [sp, 496]
ldr x0, [x0]
str x0, [sp, 504]
mov w1, 0
ldr x0, [sp, 504]
bl access
str w0, [sp, 96]
ldr w0, [sp, 96]
cmp w0, 0
bne .L848
add x0, sp, 1272
bl open_db
.L848:
add x0, sp, 1272
ldr x1, [sp, 224]
bl process_sqliterc
mov w0, 1
str w0, [sp, 52]
.L849:
ldr w1, [sp, 52]
ldr w0, [sp, 28]
cmp w1, w0
bge .L884
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 512]
ldr x0, [sp, 512]
ldr x0, [x0]
str x0, [sp, 520]
ldr x0, [sp, 520]
str x0, [sp, 528]
ldr x0, [sp, 528]
ldrb w0, [x0]
strb w0, [sp, 49]
ldrb w0, [sp, 49]
str w0, [sp, 100]
ldr w0, [sp, 100]
cmp w0, 45
bne .L885
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 536]
ldr x0, [sp, 536]
ldr x0, [x0]
str x0, [sp, 240]
ldr x0, [sp, 240]
add x0, x0, 1
str x0, [sp, 544]
ldr x0, [sp, 544]
ldrb w0, [x0]
strb w0, [sp, 50]
ldrb w0, [sp, 50]
str w0, [sp, 104]
ldr w0, [sp, 104]
cmp w0, 45
bne .L853
ldr x0, [sp, 240]
add x0, x0, 1
str x0, [sp, 240]
.L853:
ldr x0, [sp, 240]
str x0, [sp, 552]
adrp x0, .LC159
add x1, x0, :lo12:.LC159
ldr x0, [sp, 552]
bl strcmp
str w0, [sp, 108]
ldr w0, [sp, 108]
cmp w0, 0
bne .L854
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
b .L855
.L854:
ldr x0, [sp, 240]
str x0, [sp, 560]
adrp x0, .LC161
add x1, x0, :lo12:.LC161
ldr x0, [sp, 560]
bl strcmp
str w0, [sp, 112]
ldr w0, [sp, 112]
cmp w0, 0
bne .L856
add x0, sp, 1272
add x0, x0, 24
str x0, [sp, 992]
ldr x0, [sp, 992]
str x0, [sp, 1000]
ldr x0, [sp, 1000]
mov w1, 4
str w1, [x0]
b .L855
.L856:
ldr x0, [sp, 240]
str x0, [sp, 568]
adrp x0, .LC162
add x1, x0, :lo12:.LC162
ldr x0, [sp, 568]
bl strcmp
str w0, [sp, 116]
ldr w0, [sp, 116]
cmp w0, 0
bne .L857
add x0, sp, 1272
add x0, x0, 24
str x0, [sp, 976]
ldr x0, [sp, 976]
str x0, [sp, 984]
ldr x0, [sp, 984]
mov w1, 2
str w1, [x0]
b .L855
.L857:
ldr x0, [sp, 240]
str x0, [sp, 576]
adrp x0, .LC163
add x1, x0, :lo12:.LC163
ldr x0, [sp, 576]
bl strcmp
str w0, [sp, 120]
ldr w0, [sp, 120]
cmp w0, 0
bne .L858
add x0, sp, 1272
add x0, x0, 24
str x0, [sp, 960]
ldr x0, [sp, 960]
str x0, [sp, 968]
ldr x0, [sp, 968]
str wzr, [x0]
b .L855
.L858:
ldr x0, [sp, 240]
str x0, [sp, 584]
adrp x0, .LC164
add x1, x0, :lo12:.LC164
ldr x0, [sp, 584]
bl strcmp
str w0, [sp, 124]
ldr w0, [sp, 124]
cmp w0, 0
bne .L859
add x0, sp, 1272
add x0, x0, 24
str x0, [sp, 944]
ldr x0, [sp, 944]
str x0, [sp, 952]
ldr x0, [sp, 952]
mov w1, 1
str w1, [x0]
b .L855
.L859:
ldr x0, [sp, 240]
str x0, [sp, 592]
adrp x0, .LC165
add x1, x0, :lo12:.LC165
ldr x0, [sp, 592]
bl strcmp
str w0, [sp, 128]
ldr w0, [sp, 128]
cmp w0, 0
bne .L860
add x0, sp, 1272
add x0, x0, 24
str x0, [sp, 880]
ldr x0, [sp, 880]
str x0, [sp, 888]
ldr x0, [sp, 888]
mov w1, 7
str w1, [x0]
str xzr, [sp, 896]
ldr x0, [sp, 896]
add x0, x0, 48
str x0, [sp, 904]
add x0, sp, 1272
ldr x1, [sp, 904]
add x0, x1, x0
str x0, [sp, 912]
ldr x0, [sp, 912]
str x0, [sp, 920]
ldr x0, [sp, 920]
str x0, [sp, 928]
adrp x0, .LC38
add x0, x0, :lo12:.LC38
str x0, [sp, 936]
ldr x0, [sp, 936]
ldrh w1, [x0]
ldr x0, [sp, 928]
strh w1, [x0]
b .L855
.L860:
ldr x0, [sp, 240]
str x0, [sp, 600]
adrp x0, .LC157
add x1, x0, :lo12:.LC157
ldr x0, [sp, 600]
bl strcmp
str w0, [sp, 132]
ldr w0, [sp, 132]
cmp w0, 0
bne .L861
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
mov w0, 20
str w0, [sp, 188]
str xzr, [sp, 832]
ldr x0, [sp, 832]
add x0, x0, 48
str x0, [sp, 840]
add x0, sp, 1272
ldr x1, [sp, 840]
add x0, x1, x0
str x0, [sp, 848]
ldr x0, [sp, 848]
str x0, [sp, 856]
mov w0, 20
str w0, [sp, 192]
ldr w0, [sp, 192]
sub w0, w0, #1
str w0, [sp, 196]
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 864]
ldr x0, [sp, 864]
ldr x0, [x0]
str x0, [sp, 872]
ldr x4, [sp, 872]
ldr w3, [sp, 196]
adrp x0, .LC21
add x2, x0, :lo12:.LC21
ldr x1, [sp, 856]
ldr w0, [sp, 188]
bl sqlite3_snprintf
b .L855
.L861:
ldr x0, [sp, 240]
str x0, [sp, 608]
adrp x0, .LC158
add x1, x0, :lo12:.LC158
ldr x0, [sp, 608]
bl strcmp
str w0, [sp, 136]
ldr w0, [sp, 136]
cmp w0, 0
bne .L862
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
mov w0, 20
str w0, [sp, 176]
str xzr, [sp, 784]
ldr x0, [sp, 784]
add x0, x0, 868
str x0, [sp, 792]
add x0, sp, 1272
ldr x1, [sp, 792]
add x0, x1, x0
str x0, [sp, 800]
ldr x0, [sp, 800]
str x0, [sp, 808]
mov w0, 20
str w0, [sp, 180]
ldr w0, [sp, 180]
sub w0, w0, #1
str w0, [sp, 184]
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
str x0, [sp, 816]
ldr x0, [sp, 816]
ldr x0, [x0]
str x0, [sp, 824]
ldr x4, [sp, 824]
ldr w3, [sp, 184]
adrp x0, .LC21
add x2, x0, :lo12:.LC21
ldr x1, [sp, 808]
ldr w0, [sp, 176]
bl sqlite3_snprintf
b .L855
.L862:
ldr x0, [sp, 240]
str x0, [sp, 616]
adrp x0, .LC166
add x1, x0, :lo12:.LC166
ldr x0, [sp, 616]
bl strcmp
str w0, [sp, 140]
ldr w0, [sp, 140]
cmp w0, 0
bne .L863
add x0, sp, 1272
add x0, x0, 32
str x0, [sp, 768]
ldr x0, [sp, 768]
str x0, [sp, 776]
ldr x0, [sp, 776]
mov w1, 1
str w1, [x0]
b .L855
.L863:
ldr x0, [sp, 240]
str x0, [sp, 624]
adrp x0, .LC167
add x1, x0, :lo12:.LC167
ldr x0, [sp, 624]
bl strcmp
str w0, [sp, 144]
ldr w0, [sp, 144]
cmp w0, 0
bne .L864
add x0, sp, 1272
add x0, x0, 32
str x0, [sp, 752]
ldr x0, [sp, 752]
str x0, [sp, 760]
ldr x0, [sp, 760]
str wzr, [x0]
b .L855
.L864:
ldr x0, [sp, 240]
str x0, [sp, 632]
adrp x0, .LC168
add x1, x0, :lo12:.LC168
ldr x0, [sp, 632]
bl strcmp
str w0, [sp, 148]
ldr w0, [sp, 148]
cmp w0, 0
bne .L865
add x0, sp, 1272
add x0, x0, 8
str x0, [sp, 736]
ldr x0, [sp, 736]
str x0, [sp, 744]
ldr x0, [sp, 744]
mov w1, 1
str w1, [x0]
b .L855
.L865:
ldr x0, [sp, 240]
str x0, [sp, 640]
adrp x0, .LC169
add x1, x0, :lo12:.LC169
ldr x0, [sp, 640]
bl strcmp
str w0, [sp, 152]
ldr w0, [sp, 152]
cmp w0, 0
bne .L866
adrp x0, bail_on_error
add x0, x0, :lo12:bail_on_error
mov w1, 1
str w1, [x0]
b .L855
.L866:
ldr x0, [sp, 240]
str x0, [sp, 648]
adrp x0, .LC170
add x1, x0, :lo12:.LC170
ldr x0, [sp, 648]
bl strcmp
str w0, [sp, 156]
ldr w0, [sp, 156]
cmp w0, 0
bne .L867
bl sqlite3_libversion
str x0, [sp, 720]
adrp x0, .LC53
add x0, x0, :lo12:.LC53
str x0, [sp, 728]
ldr x1, [sp, 720]
ldr x0, [sp, 728]
bl printf
mov w0, 0
b .L880
.L867:
ldr x0, [sp, 240]
str x0, [sp, 656]
adrp x0, .LC171
add x1, x0, :lo12:.LC171
ldr x0, [sp, 656]
bl strcmp
str w0, [sp, 160]
ldr w0, [sp, 160]
cmp w0, 0
bne .L869
adrp x0, stdin_is_interactive
add x0, x0, :lo12:stdin_is_interactive
mov w1, 1
str w1, [x0]
b .L855
.L869:
ldr x0, [sp, 240]
str x0, [sp, 664]
adrp x0, .LC172
add x1, x0, :lo12:.LC172
ldr x0, [sp, 664]
bl strcmp
str w0, [sp, 164]
ldr w0, [sp, 164]
cmp w0, 0
bne .L870
adrp x0, stdin_is_interactive
add x0, x0, :lo12:stdin_is_interactive
str wzr, [x0]
b .L855
.L870:
ldr x0, [sp, 240]
str x0, [sp, 672]
adrp x0, .LC173
add x1, x0, :lo12:.LC173
ldr x0, [sp, 672]
bl strcmp
str w0, [sp, 168]
ldr w0, [sp, 168]
cmp w0, 0
bne .L871
mov w0, 1
bl usage
b .L855
.L871:
ldr x0, [sp, 240]
str x0, [sp, 680]
adrp x0, .LC174
add x1, x0, :lo12:.LC174
ldr x0, [sp, 680]
bl strcmp
str w0, [sp, 172]
ldr w0, [sp, 172]
cmp w0, 0
bne .L872
mov w0, 1
bl usage
b .L855
.L872:
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 688]
adrp x0, .LC175
add x0, x0, :lo12:.LC175
str x0, [sp, 696]
adrp x0, Argv0
add x0, x0, :lo12:Argv0
ldr x0, [x0]
ldr x3, [sp, 240]
mov x2, x0
ldr x1, [sp, 696]
ldr x0, [sp, 688]
bl fprintf
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 704]
adrp x0, .LC176
add x0, x0, :lo12:.LC176
str x0, [sp, 712]
ldr x1, [sp, 712]
ldr x0, [sp, 704]
bl fprintf
mov w0, 1
b .L880
.L855:
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
b .L849
.L884:
nop
b .L852
.L885:
nop
.L852:
ldr x0, [sp, 232]
cmp x0, 0
beq .L873
ldr x0, [sp, 232]
str x0, [sp, 1120]
ldr x0, [sp, 1120]
ldrb w0, [x0]
strb w0, [sp, 51]
ldrb w0, [sp, 51]
str w0, [sp, 204]
ldr w0, [sp, 204]
cmp w0, 46
bne .L874
add x0, sp, 1272
mov x1, x0
ldr x0, [sp, 232]
bl do_meta_command
mov w0, 0
bl exit
.L874:
add x0, sp, 1272
bl open_db
add x0, sp, 1272
str x0, [sp, 1128]
ldr x0, [sp, 1128]
str x0, [sp, 1136]
ldr x0, [sp, 1136]
ldr x0, [x0]
str x0, [sp, 1144]
ldr x0, [sp, 232]
str x0, [sp, 1152]
add x0, sp, 1272
str x0, [sp, 1160]
add x0, sp, 216
mov x4, x0
ldr x3, [sp, 1160]
adrp x0, callback
add x2, x0, :lo12:callback
ldr x1, [sp, 1152]
ldr x0, [sp, 1144]
bl sqlite3_exec
str w0, [sp, 208]
ldr w0, [sp, 208]
cmp w0, 0
beq .L875
str xzr, [sp, 1168]
ldr x0, [sp, 1168]
str x0, [sp, 1176]
add x0, sp, 216
str x0, [sp, 1184]
ldr x0, [sp, 1184]
ldr x0, [x0]
str x0, [sp, 1192]
ldr x0, [sp, 1192]
str x0, [sp, 1200]
ldr x1, [sp, 1200]
ldr x0, [sp, 1176]
cmp x1, x0
beq .L875
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 1208]
adrp x0, .LC177
add x0, x0, :lo12:.LC177
str x0, [sp, 1216]
add x0, sp, 216
str x0, [sp, 1224]
ldr x0, [sp, 1224]
ldr x0, [x0]
str x0, [sp, 1232]
ldr x2, [sp, 1232]
ldr x1, [sp, 1216]
ldr x0, [sp, 1208]
bl fprintf
mov w0, 1
bl exit
.L873:
adrp x0, stdin_is_interactive
add x0, x0, :lo12:stdin_is_interactive
ldr w0, [x0]
cmp w0, 0
beq .L876
str xzr, [sp, 248]
bl sqlite3_libversion
str x0, [sp, 1008]
adrp x0, .LC178
add x0, x0, :lo12:.LC178
str x0, [sp, 1016]
ldr x1, [sp, 1008]
ldr x0, [sp, 1016]
bl printf
bl find_home_dir
str x0, [sp, 1024]
ldr x0, [sp, 1024]
cmp x0, 0
beq .L877
ldr x0, [sp, 1024]
str x0, [sp, 1032]
ldr x0, [sp, 1032]
bl strlen
str x0, [sp, 1040]
ldr x0, [sp, 1040]
add x0, x0, 20
str x0, [sp, 1048]
ldr x0, [sp, 1048]
str w0, [sp, 200]
ldrsw x0, [sp, 200]
str x0, [sp, 1056]
ldr x0, [sp, 1056]
bl malloc
str x0, [sp, 1064]
ldr x0, [sp, 1064]
str x0, [sp, 248]
str xzr, [sp, 1072]
ldr x0, [sp, 1072]
str x0, [sp, 1080]
ldr x0, [sp, 248]
str x0, [sp, 1088]
ldr x1, [sp, 1088]
ldr x0, [sp, 1080]
cmp x1, x0
beq .L877
ldr x3, [sp, 1024]
adrp x0, .LC179
add x2, x0, :lo12:.LC179
ldr x1, [sp, 248]
ldr w0, [sp, 200]
bl sqlite3_snprintf
.L877:
str xzr, [sp, 1096]
add x0, sp, 1272
ldr x1, [sp, 1096]
bl process_input
str w0, [sp, 56]
ldr x0, [sp, 248]
cmp x0, 0
beq .L878
ldr x0, [sp, 248]
str x0, [sp, 1104]
ldr x0, [sp, 1104]
bl free
.L878:
ldr x0, [sp, 1024]
str x0, [sp, 1112]
ldr x0, [sp, 1112]
bl free
b .L875
.L876:
adrp x0, :got:stdin
ldr x0, [x0, #:got_lo12:stdin]
ldr x1, [x0]
add x0, sp, 1272
bl process_input
str w0, [sp, 56]
.L875:
str xzr, [sp, 1240]
add x0, sp, 1272
ldr x1, [sp, 1240]
bl set_table_name
adrp x0, db
add x0, x0, :lo12:db
ldr x0, [x0]
cmp x0, 0
beq .L879
adrp x0, db
add x0, x0, :lo12:db
ldr x0, [x0]
bl sqlite3_close
str w0, [sp, 212]
ldr w0, [sp, 212]
cmp w0, 0
beq .L879
adrp x0, db
add x0, x0, :lo12:db
ldr x0, [x0]
bl sqlite3_errmsg
str x0, [sp, 1248]
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
str x0, [sp, 1256]
adrp x0, .LC180
add x0, x0, :lo12:.LC180
str x0, [sp, 1264]
ldr x2, [sp, 1248]
ldr x1, [sp, 1264]
ldr x0, [sp, 1256]
bl fprintf
.L879:
ldr w0, [sp, 56]
.L880:
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 6680]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L881
bl __stack_chk_fail
.L881:
mov w0, w1
ldp x29, x30, [sp]
mov x12, 6688
add sp, sp, x12
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE30:
.size main, .-main
.section .rodata
.align 3
.LC0:
.word -1598689907
.word 1051772663
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global int48_to_f24
.type int48_to_f24, %function
int48_to_f24:
.LFB6:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str x1, [sp]
mov x0, 140737488355328
str x0, [sp, 24]
str wzr, [sp, 16]
b .L2
.L5:
ldr w0, [sp, 16]
ldr x1, [sp, 8]
lsl x1, x1, x0
ldr x0, [sp, 24]
and x0, x1, x0
cmp x0, 0
bne .L9
ldr w0, [sp, 16]
add w0, w0, 1
str w0, [sp, 16]
.L2:
ldr w0, [sp, 16]
cmp w0, 47
ble .L5
b .L4
.L9:
nop
.L4:
ldr w0, [sp, 16]
cmp w0, 23
bgt .L6
mov w1, 24
ldr w0, [sp, 16]
sub w0, w1, w0
str w0, [sp, 20]
ldr w0, [sp, 20]
ldr x1, [sp, 8]
lsr x0, x1, x0
str x0, [sp, 8]
b .L7
.L6:
ldr w0, [sp, 16]
sub w0, w0, #24
str w0, [sp, 20]
ldr w0, [sp, 20]
ldr x1, [sp, 8]
lsl x0, x1, x0
str x0, [sp, 8]
ldr w0, [sp, 20]
orr w0, w0, 128
str w0, [sp, 20]
.L7:
ldr w0, [sp, 20]
and w1, w0, 255
ldr x0, [sp]
strb w1, [x0]
ldr x0, [sp, 8]
and w0, w0, 16777215
and w2, w0, 16776960
ldr x1, [sp]
ldr w0, [x1]
bfi w0, w2, 8, 24
str w0, [x1]
mov w0, 0
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size int48_to_f24, .-int48_to_f24
.align 2
.global int48_to_f32
.type int48_to_f32, %function
int48_to_f32:
.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]
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
ldr x0, [sp, 24]
ucvtf s0, x0
str s0, [sp, 36]
add x1, sp, 36
ldr x0, [sp, 16]
ldr w1, [x1]
str w1, [x0]
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
.LFE7:
.size int48_to_f32, .-int48_to_f32
.align 2
.global f24_to_f32
.type f24_to_f32, %function
f24_to_f32:
.LFB8:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str x1, [sp]
str wzr, [sp, 28]
ldr x0, [sp, 8]
ldrb w0, [x0]
sxtb w0, w0
cmp w0, 0
bge .L14
ldr x0, [sp, 8]
ldrb w0, [x0]
and w0, w0, -129
neg w0, w0
str w0, [sp, 28]
b .L15
.L14:
ldr x0, [sp, 8]
ldrb w0, [x0]
str w0, [sp, 28]
.L15:
ldr w0, [sp, 28]
and w0, w0, 255
sub w0, w0, #106
and w2, w0, 255
ldr x1, [sp]
ldr w0, [x1]
bfi w0, w2, 23, 8
str w0, [x1]
ldr x0, [sp, 8]
ldr w0, [x0]
lsr w0, w0, 8
and w2, w0, 8388607
ldr x1, [sp]
ldr w0, [x1]
bfi w0, w2, 0, 23
str w0, [x1]
mov w0, 0
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size f24_to_f32, .-f24_to_f32
.section .rodata
.align 3
.LC0:
.string "exponent=-0x%07x, significand=24'b"
.align 3
.LC1:
.string "exponent=+0x%07x, significand=24'b"
.text
.align 2
.global dump_f24
.type dump_f24, %function
dump_f24:
.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]
ldrb w0, [x0]
sxtb w0, w0
cmp w0, 0
bge .L18
ldr x0, [sp, 24]
ldrb w0, [x0]
and w0, w0, -129
mov w1, w0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
b .L19
.L18:
ldr x0, [sp, 24]
ldrb w0, [x0]
mov w1, w0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
.L19:
mov w0, 23
str w0, [sp, 44]
b .L20
.L24:
ldr x0, [sp, 24]
ldr w0, [x0]
lsr w0, w0, 8
mov w1, w0
ldr w0, [sp, 44]
asr w0, w1, w0
and w0, w0, 1
cmp w0, 0
beq .L21
mov w0, 49
bl putchar
b .L22
.L21:
mov w0, 48
bl putchar
.L22:
ldr w0, [sp, 44]
and w0, w0, 3
cmp w0, 0
bne .L23
ldr w0, [sp, 44]
cmp w0, 0
beq .L23
mov w0, 95
bl putchar
.L23:
ldr w0, [sp, 44]
sub w0, w0, #1
str w0, [sp, 44]
.L20:
ldr w0, [sp, 44]
cmp w0, 0
bge .L24
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 dump_f24, .-dump_f24
.section .rodata
.align 3
.LC2:
.string "exponent=0x%08x, significand=24'b1"
.text
.align 2
.global dump_f32
.type dump_f32, %function
dump_f32:
.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]
ldr w0, [x0]
ubfx x0, x0, 23, 8
and w0, w0, 255
mov w1, w0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
mov w0, 22
str w0, [sp, 44]
b .L26
.L30:
ldr x0, [sp, 24]
ldr w0, [x0]
ubfx x0, x0, 0, 23
mov w1, w0
ldr w0, [sp, 44]
asr w0, w1, w0
and w0, w0, 1
cmp w0, 0
beq .L27
mov w0, 49
bl putchar
b .L28
.L27:
mov w0, 48
bl putchar
.L28:
ldr w0, [sp, 44]
and w0, w0, 3
cmp w0, 0
bne .L29
ldr w0, [sp, 44]
cmp w0, 0
beq .L29
mov w0, 95
bl putchar
.L29:
ldr w0, [sp, 44]
sub w0, w0, #1
str w0, [sp, 44]
.L26:
ldr w0, [sp, 44]
cmp w0, 0
bge .L30
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
.LFE10:
.size dump_f32, .-dump_f32
.section .rodata
.align 3
.LC3:
.string "<< %d\n"
.align 3
.LC4:
.string ">> %d\n"
.align 3
.LC5:
.string "0x%08x\n"
.text
.align 2
.global print_f32
.type print_f32, %function
print_f32:
.LFB11:
.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]
and w0, w0, 8388607
cmp w0, 0
bne .L32
ldr x0, [sp, 24]
ldr w0, [x0]
and w0, w0, 2139095040
cmp w0, 0
bne .L32
str xzr, [sp, 40]
b .L33
.L32:
ldr x0, [sp, 24]
ldr w0, [x0]
ubfx x0, x0, 0, 23
orr w0, w0, 8388608
sxtw x0, w0
str x0, [sp, 40]
ldr x0, [sp, 24]
ldr w0, [x0]
ubfx x0, x0, 23, 8
and w0, w0, 255
sub w0, w0, #23
str w0, [sp, 36]
ldr w0, [sp, 36]
cmp w0, 127
ble .L34
ldr w0, [sp, 36]
sub w0, w0, #127
mov w1, w0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
ldr w0, [sp, 36]
sub w0, w0, #127
ldr x1, [sp, 40]
lsl x0, x1, x0
str x0, [sp, 40]
b .L33
.L34:
mov w1, 127
ldr w0, [sp, 36]
sub w0, w1, w0
mov w1, w0
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
mov w1, 127
ldr w0, [sp, 36]
sub w0, w1, w0
ldr x1, [sp, 40]
lsr x0, x1, x0
str x0, [sp, 40]
.L33:
ldr x1, [sp, 40]
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size print_f32, .-print_f32
.section .rodata
.align 3
.LC6:
.string "pcap24 : 0x%06x\n"
.align 3
.LC7:
.string "float32: 0x%08x\n"
.text
.align 2
.global main
.type main, %function
main:
.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 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
add x0, sp, 32
mov x1, x0
mov x0, 9024
movk x0, 0x1, lsl 16
bl int48_to_f24
add x0, sp, 40
mov x1, x0
mov x0, 9024
movk x0, 0x1, lsl 16
bl int48_to_f32
add x0, sp, 40
bl print_f32
ldr x0, [sp, 32]
lsr w0, w0, 8
mov w1, w0
ldrb w0, [sp, 32]
orr w0, w1, w0
mov w1, w0
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl printf
add x0, sp, 40
ldr w0, [x0]
mov w1, w0
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl printf
add x1, sp, 48
add x0, sp, 32
bl f24_to_f32
add x0, sp, 32
bl dump_f24
add x0, sp, 40
bl dump_f32
add x0, sp, 48
bl dump_f32
mov w0, 10
bl putchar
add x0, sp, 32
mov x1, x0
mov x0, 9024
movk x0, 0xfee1, lsl 16
bl int48_to_f24
add x0, sp, 40
mov x1, x0
mov x0, 9024
movk x0, 0xfee1, lsl 16
bl int48_to_f32
add x0, sp, 40
bl print_f32
ldr x0, [sp, 32]
lsr w0, w0, 8
mov w1, w0
ldrb w0, [sp, 32]
orr w0, w1, w0
mov w1, w0
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl printf
add x0, sp, 40
ldr w0, [x0]
mov w1, w0
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl printf
add x1, sp, 48
add x0, sp, 32
bl f24_to_f32
add x0, sp, 32
bl dump_f24
add x0, sp, 40
bl dump_f32
add x0, sp, 48
bl dump_f32
mov w0, 10
bl putchar
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 .L37
bl __stack_chk_fail
.L37:
mov w0, w1
ldp x29, x30, [sp], 64
.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
.align 2
.global SetBit
.type SetBit, %function
SetBit:
.LFB0:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str w1, [sp, 4]
ldr w0, [sp, 4]
add w1, w0, 31
cmp w0, 0
csel w0, w1, w0, lt
asr w0, w0, 5
str w0, [sp, 20]
ldr w0, [sp, 4]
negs w1, w0
and w0, w0, 31
and w1, w1, 31
csneg w0, w0, w1, mi
str w0, [sp, 24]
mov w0, 1
str w0, [sp, 28]
ldr w0, [sp, 24]
ldr w1, [sp, 28]
lsl w0, w1, w0
str w0, [sp, 28]
ldrsw x0, [sp, 20]
lsl x0, x0, 2
ldr x1, [sp, 8]
add x0, x1, x0
ldr w0, [x0]
mov w1, w0
ldr w0, [sp, 28]
orr w2, w1, w0
ldrsw x0, [sp, 20]
lsl x0, x0, 2
ldr x1, [sp, 8]
add x0, x1, x0
mov w1, w2
str w1, [x0]
nop
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size SetBit, .-SetBit
.align 2
.global ClearBit
.type ClearBit, %function
ClearBit:
.LFB1:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str w1, [sp, 4]
ldr w0, [sp, 4]
add w1, w0, 31
cmp w0, 0
csel w0, w1, w0, lt
asr w0, w0, 5
str w0, [sp, 20]
ldr w0, [sp, 4]
negs w1, w0
and w0, w0, 31
and w1, w1, 31
csneg w0, w0, w1, mi
str w0, [sp, 24]
mov w0, 1
str w0, [sp, 28]
ldr w0, [sp, 24]
ldr w1, [sp, 28]
lsl w0, w1, w0
str w0, [sp, 28]
ldr w0, [sp, 28]
mvn w0, w0
str w0, [sp, 28]
ldrsw x0, [sp, 20]
lsl x0, x0, 2
ldr x1, [sp, 8]
add x0, x1, x0
ldr w0, [x0]
mov w1, w0
ldr w0, [sp, 28]
and w2, w1, w0
ldrsw x0, [sp, 20]
lsl x0, x0, 2
ldr x1, [sp, 8]
add x0, x1, x0
mov w1, w2
str w1, [x0]
nop
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size ClearBit, .-ClearBit
.align 2
.global TestBit
.type TestBit, %function
TestBit:
.LFB2:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str w1, [sp, 4]
ldr w0, [sp, 4]
add w1, w0, 31
cmp w0, 0
csel w0, w1, w0, lt
asr w0, w0, 5
str w0, [sp, 20]
ldr w0, [sp, 4]
negs w1, w0
and w0, w0, 31
and w1, w1, 31
csneg w0, w0, w1, mi
str w0, [sp, 24]
mov w0, 1
str w0, [sp, 28]
ldr w0, [sp, 24]
ldr w1, [sp, 28]
lsl w0, w1, w0
str w0, [sp, 28]
ldrsw x0, [sp, 20]
lsl x0, x0, 2
ldr x1, [sp, 8]
add x0, x1, x0
ldr w0, [x0]
mov w1, w0
ldr w0, [sp, 28]
and w0, w1, w0
cmp w0, 0
beq .L4
mov w0, 1
b .L5
.L4:
mov w0, 0
.L5:
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size TestBit, .-TestBit
.section .rodata
.align 3
.LC0:
.string "Set bit poistions 100, 200 and 300"
.align 3
.LC1:
.string "Bit %d was set !\n"
.align 3
.LC2:
.string "\nClear bit poistions 200 "
.text
.align 2
.global main
.type main, %function
main:
.LFB3:
.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
str wzr, [sp, 36]
b .L7
.L8:
ldrsw x0, [sp, 36]
lsl x0, x0, 2
add x1, sp, 40
str wzr, [x1, x0]
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L7:
ldr w0, [sp, 36]
cmp w0, 7
ble .L8
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
add x0, sp, 40
mov w1, 100
bl SetBit
add x0, sp, 40
mov w1, 200
bl SetBit
add x0, sp, 40
mov w1, 300
bl SetBit
str wzr, [sp, 36]
b .L9
.L11:
add x0, sp, 40
ldr w1, [sp, 36]
bl TestBit
cmp w0, 0
beq .L10
ldr w1, [sp, 36]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
.L10:
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L9:
ldr w0, [sp, 36]
cmp w0, 319
ble .L11
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl puts
add x0, sp, 40
mov w1, 200
bl ClearBit
str wzr, [sp, 36]
b .L12
.L14:
add x0, sp, 40
ldr w1, [sp, 36]
bl TestBit
cmp w0, 0
beq .L13
ldr w1, [sp, 36]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
.L13:
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L12:
ldr w0, [sp, 36]
cmp w0, 319
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, 72]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L16
bl __stack_chk_fail
.L16:
mov w0, w1
ldp x29, x30, [sp], 80
.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 func
.type func, %function
func:
.LFB0:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, 12]
str w1, [sp, 8]
ldr w1, [sp, 12]
ldr w0, [sp, 8]
add w0, w1, w0
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size func, .-func
.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
mov w0, 3
str w0, [sp, 28]
mov w0, 4
str w0, [sp, 32]
adrp x0, func
add x0, x0, :lo12:func
str x0, [sp, 40]
ldr x2, [sp, 40]
ldr w1, [sp, 32]
ldr w0, [sp, 28]
blr x2
str w0, [sp, 36]
mov w0, 0
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 my_empty_function
.type my_empty_function, %function
my_empty_function:
.LFB0:
.cfi_startproc
mov w0, 99
ret
.cfi_endproc
.LFE0:
.size my_empty_function, .-my_empty_function
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global list
.bss
.align 3
.type list, %object
.size list, 8
list:
.zero 8
.global node
.align 3
.type node, %object
.size node, 24
node:
.zero 24
.text
.align 2
.global createedgelist
.type createedgelist, %function
createedgelist:
.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 x0, [sp, 40]
str x1, [sp, 32]
str w2, [sp, 28]
str wzr, [sp, 60]
b .L2
.L5:
mov x0, 24
bl malloc
str x0, [sp, 72]
ldr w1, [sp, 60]
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 32]
add x0, x1, x0
ldr w1, [x0]
ldr x0, [sp, 72]
str w1, [x0]
ldr w1, [sp, 60]
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
sxtw x0, w0
add x0, x0, 1
lsl x0, x0, 2
ldr x1, [sp, 32]
add x0, x1, x0
ldr w1, [x0]
ldr x0, [sp, 72]
str w1, [x0, 4]
ldr w1, [sp, 60]
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
sxtw x0, w0
add x0, x0, 2
lsl x0, x0, 2
ldr x1, [sp, 32]
add x0, x1, x0
ldr w1, [x0]
ldr x0, [sp, 72]
str w1, [x0, 8]
ldr x0, [sp, 72]
str xzr, [x0, 16]
ldr x0, [sp, 40]
cmp x0, 0
bne .L3
ldr x0, [sp, 72]
str x0, [sp, 40]
ldr x0, [sp, 40]
str x0, [sp, 64]
b .L4
.L3:
ldr x0, [sp, 64]
ldr x1, [sp, 72]
str x1, [x0, 16]
ldr x0, [sp, 72]
str x0, [sp, 64]
.L4:
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L2:
ldr w1, [sp, 60]
ldr w0, [sp, 28]
cmp w1, w0
blt .L5
ldr x0, [sp, 40]
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size createedgelist, .-createedgelist
.align 2
.global uniongroup
.type uniongroup, %function
uniongroup:
.LFB7:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, 12]
str w1, [sp, 8]
ldr w0, [sp, 8]
str w0, [sp, 28]
b .L8
.L9:
adrp x0, node
add x0, x0, :lo12:node
ldrsw x1, [sp, 28]
ldr w0, [x0, x1, lsl 2]
str w0, [sp, 28]
.L8:
adrp x0, node
add x0, x0, :lo12:node
ldrsw x1, [sp, 28]
ldr w0, [x0, x1, lsl 2]
cmp w0, 0
bgt .L9
adrp x0, node
add x0, x0, :lo12:node
ldrsw x1, [sp, 28]
ldr w2, [sp, 12]
str w2, [x0, x1, lsl 2]
mov w0, 0
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size uniongroup, .-uniongroup
.align 2
.global samegroup
.type samegroup, %function
samegroup:
.LFB8:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, 12]
str w1, [sp, 8]
ldr w0, [sp, 12]
str w0, [sp, 24]
b .L12
.L13:
adrp x0, node
add x0, x0, :lo12:node
ldrsw x1, [sp, 24]
ldr w0, [x0, x1, lsl 2]
str w0, [sp, 24]
.L12:
adrp x0, node
add x0, x0, :lo12:node
ldrsw x1, [sp, 24]
ldr w0, [x0, x1, lsl 2]
cmp w0, 0
bgt .L13
ldr w0, [sp, 8]
str w0, [sp, 28]
b .L14
.L15:
adrp x0, node
add x0, x0, :lo12:node
ldrsw x1, [sp, 28]
ldr w0, [x0, x1, lsl 2]
str w0, [sp, 28]
.L14:
adrp x0, node
add x0, x0, :lo12:node
ldrsw x1, [sp, 28]
ldr w0, [x0, x1, lsl 2]
cmp w0, 0
bgt .L15
ldr w1, [sp, 24]
ldr w0, [sp, 28]
cmp w1, w0
bne .L16
mov w0, 1
b .L17
.L16:
mov w0, 0
.L17:
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size samegroup, .-samegroup
.section .rodata
.align 3
.LC1:
.string " \344\273\216\351\241\266\347\202\271\357\274\232 %d \345\210\260\357\274\232%d \346\235\203\345\200\274\357\274\232%d\n"
.text
.align 2
.global minspantree
.type minspantree, %function
minspantree:
.LFB9:
.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, list
add x0, x0, :lo12:list
ldr x0, [x0]
str x0, [sp, 24]
b .L19
.L21:
ldr x0, [sp, 24]
ldr w2, [x0]
ldr x0, [sp, 24]
ldr w0, [x0, 4]
mov w1, w0
mov w0, w2
bl samegroup
cmp w0, 0
bne .L20
ldr x0, [sp, 24]
ldr w1, [x0]
ldr x0, [sp, 24]
ldr w2, [x0, 4]
ldr x0, [sp, 24]
ldr w0, [x0, 8]
mov w3, w0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
ldr x0, [sp, 24]
ldr w2, [x0]
ldr x0, [sp, 24]
ldr w0, [x0, 4]
mov w1, w0
mov w0, w2
bl uniongroup
.L20:
ldr x0, [sp, 24]
ldr x0, [x0, 16]
str x0, [sp, 24]
.L19:
ldr x0, [sp, 24]
cmp x0, 0
bne .L21
nop
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size minspantree, .-minspantree
.section .rodata
.align 3
.LC2:
.string "\345\233\276\347\232\204\346\234\200\345\260\217\347\224\237\346\210\220\346\240\221\357\274\232"
.align 3
.LC3:
.string "\351\241\266\347\202\271\346\225\260\347\273\204\345\206\205\345\256\271\357\274\232"
.align 3
.LC4:
.string "[%d]"
.text
.align 2
.global main
.type main, %function
main:
.LFB10:
.cfi_startproc
stp x29, x30, [sp, -128]!
.cfi_def_cfa_offset 128
.cfi_offset 29, -128
.cfi_offset 30, -120
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 120]
mov x1, 0
adrp x0, .LC0
add x1, x0, :lo12:.LC0
add x0, sp, 24
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]
adrp x0, list
add x0, x0, :lo12:list
ldr x0, [x0]
add x1, sp, 24
mov w2, 8
bl createedgelist
mov x1, x0
adrp x0, list
add x0, x0, :lo12:list
str x1, [x0]
mov w0, 1
str w0, [sp, 20]
b .L23
.L24:
adrp x0, node
add x0, x0, :lo12:node
ldrsw x1, [sp, 20]
mov w2, -1
str w2, [x0, x1, lsl 2]
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
.L23:
ldr w0, [sp, 20]
cmp w0, 5
ble .L24
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl puts
bl minspantree
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl puts
mov w0, 1
str w0, [sp, 20]
b .L25
.L26:
adrp x0, node
add x0, x0, :lo12:node
ldrsw x1, [sp, 20]
ldr w0, [x0, x1, lsl 2]
mov w1, w0
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
.L25:
ldr w0, [sp, 20]
cmp w0, 5
ble .L26
mov w0, 10
bl putchar
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 120]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L28
bl __stack_chk_fail
.L28:
mov w0, w1
ldp x29, x30, [sp], 128
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size main, .-main
.section .rodata
.align 3
.LC0:
.word 1
.word 2
.word 2
.word 2
.word 4
.word 3
.word 1
.word 4
.word 4
.word 3
.word 5
.word 5
.word 2
.word 5
.word 6
.word 2
.word 3
.word 8
.word 3
.word 4
.word 10
.word 4
.word 5
.word 15
.text
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global test
.type test, %function
test:
.LFB6:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str xzr, [sp, 8]
ldr x0, [sp, 8]
mov w1, 2
str w1, [x0]
nop
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size test, .-test
.section .rodata
.align 3
.LC0:
.string "pid = %d\n"
.align 3
.LC1:
.string "1 + 2 = %d\n"
.text
.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
bl getpid
mov w1, w0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
mov w1, 2
mov w0, 1
bl add
mov w1, w0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
bl test
nop
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
.LC2:
.string "%s o' clock\n"
.align 3
.LC3:
.string "quarter past %s\n"
.align 3
.LC4:
.string "half past %s\n"
.align 3
.LC5:
.string "quarter to %s\n"
.align 3
.LC6:
.string "%s past %s\n"
.align 3
.LC7:
.string "twenty past %s\n"
.align 3
.LC8:
.string "twenty-%s past %s\n"
.align 3
.LC9:
.string "twenty-%s to %s\n"
.align 3
.LC10:
.string "twenty to %s\n"
.align 3
.LC11:
.string "%s to %s\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.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, 56
ldp q0, q1, [x1]
stp q0, q1, [x0]
ldp q0, q1, [x1, 32]
stp q0, q1, [x0, 32]
ldr q0, [x1, 64]
str q0, [x0, 64]
ldr w1, [x1, 80]
str w1, [x0, 80]
adrp x0, .LC1
add x1, x0, :lo12:.LC1
add x0, sp, 144
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]
ldr w1, [x1, 96]
str w1, [x0, 96]
mov x0, 0
bl time
str x0, [sp, 40]
add x0, sp, 40
bl localtime
str x0, [sp, 48]
ldr x0, [sp, 48]
ldr w0, [x0, 8]
str w0, [sp, 32]
ldr x0, [sp, 48]
ldr w0, [x0, 4]
str w0, [sp, 36]
ldr w0, [sp, 32]
cmp w0, 11
ble .L2
ldr w0, [sp, 32]
sub w0, w0, #12
str w0, [sp, 32]
.L2:
ldr w0, [sp, 36]
cmp w0, 0
bne .L3
add x2, sp, 56
ldrsw x1, [sp, 32]
mov x0, x1
lsl x0, x0, 3
sub x0, x0, x1
add x0, x2, x0
mov x1, x0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
b .L4
.L3:
ldr w0, [sp, 36]
cmp w0, 15
bne .L5
add x2, sp, 56
ldrsw x1, [sp, 32]
mov x0, x1
lsl x0, x0, 3
sub x0, x0, x1
add x0, x2, x0
mov x1, x0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
b .L4
.L5:
ldr w0, [sp, 36]
cmp w0, 30
bne .L6
add x2, sp, 56
ldrsw x1, [sp, 32]
mov x0, x1
lsl x0, x0, 3
sub x0, x0, x1
add x0, x2, x0
mov x1, x0
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
b .L4
.L6:
ldr w0, [sp, 36]
cmp w0, 45
bne .L7
add x2, sp, 56
ldrsw x1, [sp, 32]
mov x0, x1
lsl x0, x0, 3
sub x0, x0, x1
add x0, x2, x0
mov x1, x0
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
b .L4
.L7:
ldr w0, [sp, 36]
cmp w0, 29
bgt .L8
ldr w0, [sp, 36]
cmp w0, 10
bgt .L9
add x2, sp, 56
ldrsw x1, [sp, 36]
mov x0, x1
lsl x0, x0, 3
sub x0, x0, x1
add x3, x2, x0
add x2, sp, 56
ldrsw x1, [sp, 32]
mov x0, x1
lsl x0, x0, 3
sub x0, x0, x1
add x0, x2, x0
mov x2, x0
mov x1, x3
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl printf
b .L4
.L9:
ldr w0, [sp, 36]
cmp w0, 19
bgt .L10
ldr w0, [sp, 36]
sub w0, w0, #10
add x2, sp, 144
sxtw x1, w0
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
add x3, x2, x0
add x2, sp, 56
ldrsw x1, [sp, 32]
mov x0, x1
lsl x0, x0, 3
sub x0, x0, x1
add x0, x2, x0
mov x2, x0
mov x1, x3
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl printf
b .L4
.L10:
ldr w0, [sp, 36]
cmp w0, 20
bne .L11
add x2, sp, 56
ldrsw x1, [sp, 32]
mov x0, x1
lsl x0, x0, 3
sub x0, x0, x1
add x0, x2, x0
mov x1, x0
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl printf
b .L4
.L11:
ldr w0, [sp, 36]
sub w0, w0, #20
add x2, sp, 56
sxtw x1, w0
mov x0, x1
lsl x0, x0, 3
sub x0, x0, x1
add x3, x2, x0
add x2, sp, 56
ldrsw x1, [sp, 32]
mov x0, x1
lsl x0, x0, 3
sub x0, x0, x1
add x0, x2, x0
mov x2, x0
mov x1, x3
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl printf
b .L4
.L8:
ldr w0, [sp, 36]
cmp w0, 40
bgt .L12
mov w1, 40
ldr w0, [sp, 36]
sub w0, w1, w0
add x2, sp, 56
sxtw x1, w0
mov x0, x1
lsl x0, x0, 3
sub x0, x0, x1
add x3, x2, x0
add x2, sp, 56
ldrsw x1, [sp, 32]
mov x0, x1
lsl x0, x0, 3
sub x0, x0, x1
add x0, x2, x0
mov x2, x0
mov x1, x3
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl printf
b .L4
.L12:
ldr w0, [sp, 36]
cmp w0, 40
bne .L13
add x2, sp, 56
ldrsw x1, [sp, 32]
mov x0, x1
lsl x0, x0, 3
sub x0, x0, x1
add x0, x2, x0
mov x1, x0
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl printf
b .L4
.L13:
ldr w0, [sp, 36]
cmp w0, 49
bgt .L14
mov w1, 50
ldr w0, [sp, 36]
sub w0, w1, w0
add x2, sp, 56
sxtw x1, w0
mov x0, x1
lsl x0, x0, 3
sub x0, x0, x1
add x3, x2, x0
add x2, sp, 56
ldrsw x1, [sp, 32]
mov x0, x1
lsl x0, x0, 3
sub x0, x0, x1
add x0, x2, x0
mov x2, x0
mov x1, x3
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl printf
b .L4
.L14:
mov w1, 60
ldr w0, [sp, 36]
sub w0, w1, w0
add x2, sp, 56
sxtw x1, w0
mov x0, x1
lsl x0, x0, 3
sub x0, x0, x1
add x3, x2, x0
add x2, sp, 56
ldrsw x1, [sp, 32]
mov x0, x1
lsl x0, x0, 3
sub x0, x0, x1
add x0, x2, x0
mov x2, x0
mov x1, x3
adrp x0, .LC11
add x0, x0, :lo12:.LC11
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, 248]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L16
bl __stack_chk_fail
.L16:
mov w0, w1
ldp x29, x30, [sp], 256
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
.section .rodata
.align 3
.LC0:
.string "twelve"
.string "one"
.zero 3
.string "two"
.zero 3
.string "three"
.zero 1
.string "four"
.zero 2
.string "five"
.zero 2
.string "six"
.zero 3
.string "seven"
.zero 1
.string "eight"
.zero 1
.string "nine"
.zero 2
.string "ten"
.zero 3
.string "eleven"
.align 3
.LC1:
.string "ten"
.zero 6
.string "eleven"
.zero 3
.string "twelve"
.zero 3
.string "thirteen"
.zero 1
.string "fourteen"
.zero 1
.string "fifteen"
.zero 2
.string "sixteen"
.zero 2
.string "seventeen"
.string "eighteen"
.zero 1
.string "nineteen"
.zero 1
.text
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Enter values of a, b and c: "
.align 3
.LC1:
.string "%lf %lf %lf"
.align 3
.LC2:
.string "The euation has two equal values\nx = %.2lf\n"
.align 3
.LC3:
.string "The Equation has two distinct values.\n x = %.2lf\n x = %.2lf\n"
.align 3
.LC4:
.string "The equation has no roots..."
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -96]!
.cfi_def_cfa_offset 96
.cfi_offset 29, -96
.cfi_offset 30, -88
mov x29, sp
str d8, [sp, 16]
.cfi_offset 72, -80
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, .LC0
add x0, x0, :lo12:.LC0
bl puts
add x2, sp, 56
add x1, sp, 48
add x0, sp, 40
mov x3, x2
mov x2, x1
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
ldr d1, [sp, 48]
ldr d0, [sp, 48]
fmul d1, d1, d0
ldr d2, [sp, 40]
fmov d0, 4.0e+0
fmul d2, d2, d0
ldr d0, [sp, 56]
fmul d0, d2, d0
fsub d0, d1, d0
str d0, [sp, 64]
ldr d0, [sp, 64]
fcmp d0, #0.0
bne .L2
ldr d0, [sp, 48]
fneg d1, d0
ldr d0, [sp, 40]
fadd d0, d0, d0
fdiv d0, d1, d0
str d0, [sp, 80]
ldr d0, [sp, 80]
str d0, [sp, 72]
ldr d0, [sp, 72]
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
b .L3
.L2:
ldr d0, [sp, 64]
fcmpe d0, #0.0
bgt .L8
b .L9
.L8:
ldr d0, [sp, 64]
bl sqrt
fmov d1, d0
ldr d0, [sp, 48]
fsub d1, d1, d0
ldr d0, [sp, 40]
fadd d0, d0, d0
fdiv d0, d1, d0
str d0, [sp, 72]
ldr d0, [sp, 48]
fneg d8, d0
ldr d0, [sp, 64]
bl sqrt
fsub d1, d8, d0
ldr d0, [sp, 40]
fadd d0, d0, d0
fdiv d0, d1, d0
str d0, [sp, 80]
ldr d1, [sp, 80]
ldr d0, [sp, 72]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
b .L3
.L9:
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
.L3:
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 .L7
bl __stack_chk_fail
.L7:
mov w0, w1
ldr d8, [sp, 16]
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_restore 72
.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 is_no_perfect_square_by_last_digit
.type is_no_perfect_square_by_last_digit, %function
is_no_perfect_square_by_last_digit:
.LFB0:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
ldr x2, [sp, 8]
mov x0, -3689348814741910324
movk x0, 0xcccd, lsl 0
umulh x0, x2, x0
lsr x1, x0, 3
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
sub x1, x2, x0
mov w0, w1
str w0, [sp, 28]
ldr w0, [sp, 28]
cmp w0, 2
beq .L2
ldr w0, [sp, 28]
cmp w0, 3
beq .L2
ldr w0, [sp, 28]
cmp w0, 7
beq .L2
ldr w0, [sp, 28]
cmp w0, 8
bne .L3
.L2:
mov w0, 1
b .L4
.L3:
mov w0, 0
.L4:
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size is_no_perfect_square_by_last_digit, .-is_no_perfect_square_by_last_digit
.align 2
.global is_perfect_square
.type is_perfect_square, %function
is_perfect_square:
.LFB1:
.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]
bl is_no_perfect_square_by_last_digit
cmp w0, 0
beq .L6
mov w0, 0
b .L7
.L6:
str xzr, [sp, 32]
ldr x0, [sp, 24]
lsr x0, x0, 1
str x0, [sp, 40]
b .L8
.L11:
ldr x1, [sp, 32]
ldr x0, [sp, 40]
add x0, x1, x0
lsr x0, x0, 1
str x0, [sp, 48]
ldr x0, [sp, 48]
mul x0, x0, x0
str x0, [sp, 56]
ldr x1, [sp, 56]
ldr x0, [sp, 24]
cmp x1, x0
bne .L9
mov w0, 1
b .L7
.L9:
ldr x1, [sp, 56]
ldr x0, [sp, 24]
cmp x1, x0
bcs .L10
ldr x0, [sp, 48]
add x0, x0, 1
str x0, [sp, 32]
b .L8
.L10:
ldr x0, [sp, 48]
sub x0, x0, #1
str x0, [sp, 40]
.L8:
ldr x1, [sp, 32]
ldr x0, [sp, 40]
cmp x1, x0
bls .L11
mov w0, 0
.L7:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size is_perfect_square, .-is_perfect_square
.section .rodata
.align 3
.LC0:
.string "%lu"
.align 3
.LC1:
.string "yes"
.align 3
.LC2:
.string "no"
.text
.align 2
.global main
.type main, %function
main:
.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, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 24]
mov x1, 0
.L19:
add x0, sp, 16
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
ldr x0, [sp, 16]
cmp x0, 0
bne .L13
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 .L20
b .L21
.L13:
ldr x0, [sp, 16]
cmp x0, 1
bne .L15
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl puts
b .L19
.L15:
ldr x0, [sp, 16]
bl is_perfect_square
cmp w0, 0
beq .L17
adrp x0, .LC1
add x0, x0, :lo12:.LC1
b .L18
.L17:
adrp x0, .LC2
add x0, x0, :lo12:.LC2
.L18:
bl puts
b .L19
.L21:
bl __stack_chk_fail
.L20:
mov w0, w1
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global _res_opcodes
.section .rodata
.align 3
.LC0:
.string "QUERY"
.align 3
.LC1:
.string "IQUERY"
.align 3
.LC2:
.string "CQUERYM"
.align 3
.LC3:
.string "CQUERYU"
.align 3
.LC4:
.string "4"
.align 3
.LC5:
.string "5"
.align 3
.LC6:
.string "6"
.align 3
.LC7:
.string "7"
.align 3
.LC8:
.string "8"
.align 3
.LC9:
.string "UPDATEA"
.align 3
.LC10:
.string "UPDATED"
.align 3
.LC11:
.string "UPDATEDA"
.align 3
.LC12:
.string "UPDATEM"
.align 3
.LC13:
.string "UPDATEMA"
.align 3
.LC14:
.string "ZONEINIT"
.align 3
.LC15:
.string "ZONEREF"
.section .data.rel.local,"aw"
.align 3
.type _res_opcodes, %object
.size _res_opcodes, 128
_res_opcodes:
.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
.global _res_resultcodes
.section .rodata
.align 3
.LC16:
.string "NOERROR"
.align 3
.LC17:
.string "FORMERR"
.align 3
.LC18:
.string "SERVFAIL"
.align 3
.LC19:
.string "NXDOMAIN"
.align 3
.LC20:
.string "NOTIMP"
.align 3
.LC21:
.string "REFUSED"
.align 3
.LC22:
.string "9"
.align 3
.LC23:
.string "10"
.align 3
.LC24:
.string "11"
.align 3
.LC25:
.string "12"
.align 3
.LC26:
.string "13"
.align 3
.LC27:
.string "14"
.align 3
.LC28:
.string "NOCHANGE"
.section .data.rel.local
.align 3
.type _res_resultcodes, %object
.size _res_resultcodes, 128
_res_resultcodes:
.xword .LC16
.xword .LC17
.xword .LC18
.xword .LC19
.xword .LC20
.xword .LC21
.xword .LC6
.xword .LC7
.xword .LC8
.xword .LC22
.xword .LC23
.xword .LC24
.xword .LC25
.xword .LC26
.xword .LC27
.xword .LC28
.text
.align 2
.global p_query
.type p_query, %function
p_query:
.LFB6:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
nop
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size p_query, .-p_query
.align 2
.global fp_query
.type fp_query, %function
fp_query:
.LFB7:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
str x1, [sp]
nop
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size fp_query, .-fp_query
.align 2
.global p_cdname
.type p_cdname, %function
p_cdname:
.LFB8:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 24]
str x1, [sp, 16]
str x2, [sp, 8]
nop
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size p_cdname, .-p_cdname
.align 2
.global p_rr
.type p_rr, %function
p_rr:
.LFB9:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 24]
str x1, [sp, 16]
str x2, [sp, 8]
nop
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size p_rr, .-p_rr
.local nbuf
.comm nbuf,40,8
.section .rodata
.align 3
.LC29:
.string "A"
.align 3
.LC30:
.string "NS"
.align 3
.LC31:
.string "CNAME"
.align 3
.LC32:
.string "SOA"
.align 3
.LC33:
.string "MB"
.align 3
.LC34:
.string "MG"
.align 3
.LC35:
.string "MX"
.align 3
.LC36:
.string "MR"
.align 3
.LC37:
.string "NULL"
.align 3
.LC38:
.string "WKS"
.align 3
.LC39:
.string "PTR"
.align 3
.LC40:
.string "HINFO"
.align 3
.LC41:
.string "MINFO"
.align 3
.LC42:
.string "AXFR"
.align 3
.LC43:
.string "MAILB"
.align 3
.LC44:
.string "MAILA"
.align 3
.LC45:
.string "ANY"
.align 3
.LC46:
.string "UINFO"
.align 3
.LC47:
.string "UID"
.align 3
.LC48:
.string "GID"
.align 3
.LC49:
.string "%d"
.text
.align 2
.global p_type
.type p_type, %function
p_type:
.LFB10:
.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 w0, [sp, 28]
cmp w0, 255
beq .L6
ldr w0, [sp, 28]
cmp w0, 255
bgt .L7
ldr w0, [sp, 28]
cmp w0, 254
beq .L8
ldr w0, [sp, 28]
cmp w0, 254
bgt .L7
ldr w0, [sp, 28]
cmp w0, 253
beq .L9
ldr w0, [sp, 28]
cmp w0, 253
bgt .L7
ldr w0, [sp, 28]
cmp w0, 252
beq .L10
ldr w0, [sp, 28]
cmp w0, 252
bgt .L7
ldr w0, [sp, 28]
cmp w0, 102
beq .L11
ldr w0, [sp, 28]
cmp w0, 102
bgt .L7
ldr w0, [sp, 28]
cmp w0, 101
beq .L12
ldr w0, [sp, 28]
cmp w0, 101
bgt .L7
ldr w0, [sp, 28]
cmp w0, 100
beq .L13
ldr w0, [sp, 28]
cmp w0, 100
bgt .L7
ldr w0, [sp, 28]
cmp w0, 15
beq .L14
ldr w0, [sp, 28]
cmp w0, 15
bgt .L7
ldr w0, [sp, 28]
cmp w0, 14
beq .L15
ldr w0, [sp, 28]
cmp w0, 14
bgt .L7
ldr w0, [sp, 28]
cmp w0, 13
beq .L16
ldr w0, [sp, 28]
cmp w0, 13
bgt .L7
ldr w0, [sp, 28]
cmp w0, 12
beq .L17
ldr w0, [sp, 28]
cmp w0, 12
bgt .L7
ldr w0, [sp, 28]
cmp w0, 11
beq .L18
ldr w0, [sp, 28]
cmp w0, 11
bgt .L7
ldr w0, [sp, 28]
cmp w0, 10
beq .L19
ldr w0, [sp, 28]
cmp w0, 10
bgt .L7
ldr w0, [sp, 28]
cmp w0, 9
beq .L20
ldr w0, [sp, 28]
cmp w0, 9
bgt .L7
ldr w0, [sp, 28]
cmp w0, 8
beq .L21
ldr w0, [sp, 28]
cmp w0, 8
bgt .L7
ldr w0, [sp, 28]
cmp w0, 7
beq .L22
ldr w0, [sp, 28]
cmp w0, 7
bgt .L7
ldr w0, [sp, 28]
cmp w0, 6
beq .L23
ldr w0, [sp, 28]
cmp w0, 6
bgt .L7
ldr w0, [sp, 28]
cmp w0, 5
beq .L24
ldr w0, [sp, 28]
cmp w0, 5
bgt .L7
ldr w0, [sp, 28]
cmp w0, 1
beq .L25
ldr w0, [sp, 28]
cmp w0, 2
beq .L26
b .L7
.L25:
adrp x0, .LC29
add x0, x0, :lo12:.LC29
b .L27
.L26:
adrp x0, .LC30
add x0, x0, :lo12:.LC30
b .L27
.L24:
adrp x0, .LC31
add x0, x0, :lo12:.LC31
b .L27
.L23:
adrp x0, .LC32
add x0, x0, :lo12:.LC32
b .L27
.L22:
adrp x0, .LC33
add x0, x0, :lo12:.LC33
b .L27
.L21:
adrp x0, .LC34
add x0, x0, :lo12:.LC34
b .L27
.L14:
adrp x0, .LC35
add x0, x0, :lo12:.LC35
b .L27
.L20:
adrp x0, .LC36
add x0, x0, :lo12:.LC36
b .L27
.L19:
adrp x0, .LC37
add x0, x0, :lo12:.LC37
b .L27
.L18:
adrp x0, .LC38
add x0, x0, :lo12:.LC38
b .L27
.L17:
adrp x0, .LC39
add x0, x0, :lo12:.LC39
b .L27
.L16:
adrp x0, .LC40
add x0, x0, :lo12:.LC40
b .L27
.L15:
adrp x0, .LC41
add x0, x0, :lo12:.LC41
b .L27
.L10:
adrp x0, .LC42
add x0, x0, :lo12:.LC42
b .L27
.L9:
adrp x0, .LC43
add x0, x0, :lo12:.LC43
b .L27
.L8:
adrp x0, .LC44
add x0, x0, :lo12:.LC44
b .L27
.L6:
adrp x0, .LC45
add x0, x0, :lo12:.LC45
b .L27
.L13:
adrp x0, .LC46
add x0, x0, :lo12:.LC46
b .L27
.L12:
adrp x0, .LC47
add x0, x0, :lo12:.LC47
b .L27
.L11:
adrp x0, .LC48
add x0, x0, :lo12:.LC48
b .L27
.L7:
ldr w2, [sp, 28]
adrp x0, .LC49
add x1, x0, :lo12:.LC49
adrp x0, nbuf
add x0, x0, :lo12:nbuf
bl sprintf
adrp x0, nbuf
add x0, x0, :lo12:nbuf
.L27:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size p_type, .-p_type
.section .rodata
.align 3
.LC50:
.string "IN"
.text
.align 2
.global p_class
.type p_class, %function
p_class:
.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 w0, [sp, 28]
ldr w0, [sp, 28]
cmp w0, 1
beq .L29
ldr w0, [sp, 28]
cmp w0, 255
beq .L30
b .L33
.L29:
adrp x0, .LC50
add x0, x0, :lo12:.LC50
b .L32
.L30:
adrp x0, .LC45
add x0, x0, :lo12:.LC45
b .L32
.L33:
ldr w2, [sp, 28]
adrp x0, .LC49
add x1, x0, :lo12:.LC49
adrp x0, nbuf
add x0, x0, :lo12:nbuf
bl sprintf
adrp x0, nbuf
add x0, x0, :lo12:nbuf
.L32:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size p_class, .-p_class
.section .rodata
.align 3
.LC51:
.string ""
.align 3
.LC52:
.string "s"
.align 3
.LC53:
.string "%d day%s"
.align 3
.LC54:
.string "%d hour%s"
.align 3
.LC55:
.string "%d min%s"
.align 3
.LC56:
.string "%d sec%s"
.text
.align 2
.global p_time
.type p_time, %function
p_time:
.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 x19, [sp, 16]
.cfi_offset 19, -48
str x0, [sp, 40]
ldr x2, [sp, 40]
mov x0, -8608480567731124088
movk x0, 0x8889, lsl 0
umulh x0, x2, x0
lsr x1, x0, 5
mov x0, x1
lsl x0, x0, 4
sub x0, x0, x1
lsl x0, x0, 2
sub x1, x2, x0
mov w0, w1
str w0, [sp, 52]
ldr x1, [sp, 40]
mov x0, -8608480567731124088
movk x0, 0x8889, lsl 0
umulh x0, x1, x0
lsr x0, x0, 5
str x0, [sp, 40]
ldr x2, [sp, 40]
mov x0, -8608480567731124088
movk x0, 0x8889, lsl 0
umulh x0, x2, x0
lsr x1, x0, 5
mov x0, x1
lsl x0, x0, 4
sub x0, x0, x1
lsl x0, x0, 2
sub x1, x2, x0
mov w0, w1
str w0, [sp, 56]
ldr x1, [sp, 40]
mov x0, -8608480567731124088
movk x0, 0x8889, lsl 0
umulh x0, x1, x0
lsr x0, x0, 5
str x0, [sp, 40]
ldr x2, [sp, 40]
mov x0, -6148914691236517206
movk x0, 0xaaab, lsl 0
umulh x0, x2, x0
lsr x1, x0, 4
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 3
sub x1, x2, x0
mov w0, w1
str w0, [sp, 60]
ldr x1, [sp, 40]
mov x0, -6148914691236517206
movk x0, 0xaaab, lsl 0
umulh x0, x1, x0
lsr x0, x0, 4
str x0, [sp, 40]
adrp x0, nbuf
add x19, x0, :lo12:nbuf
ldr x0, [sp, 40]
cmp x0, 0
beq .L35
ldr x0, [sp, 40]
cmp x0, 1
bne .L36
adrp x0, .LC51
add x0, x0, :lo12:.LC51
b .L37
.L36:
adrp x0, .LC52
add x0, x0, :lo12:.LC52
.L37:
mov x3, x0
ldr x2, [sp, 40]
adrp x0, .LC53
add x1, x0, :lo12:.LC53
mov x0, x19
bl sprintf
nop
.L38:
add x19, x19, 1
ldrb w0, [x19]
cmp w0, 0
bne .L38
.L35:
ldr w0, [sp, 60]
cmp w0, 0
beq .L39
adrp x0, nbuf
add x0, x0, :lo12:nbuf
cmp x19, x0
beq .L40
mov x0, x19
add x19, x0, 1
mov w1, 32
strb w1, [x0]
.L40:
ldr w0, [sp, 60]
cmp w0, 1
bne .L41
adrp x0, .LC51
add x0, x0, :lo12:.LC51
b .L42
.L41:
adrp x0, .LC52
add x0, x0, :lo12:.LC52
.L42:
mov x3, x0
ldr w2, [sp, 60]
adrp x0, .LC54
add x1, x0, :lo12:.LC54
mov x0, x19
bl sprintf
nop
.L43:
add x19, x19, 1
ldrb w0, [x19]
cmp w0, 0
bne .L43
.L39:
ldr w0, [sp, 56]
cmp w0, 0
beq .L44
adrp x0, nbuf
add x0, x0, :lo12:nbuf
cmp x19, x0
beq .L45
mov x0, x19
add x19, x0, 1
mov w1, 32
strb w1, [x0]
.L45:
ldr w0, [sp, 56]
cmp w0, 1
bne .L46
adrp x0, .LC51
add x0, x0, :lo12:.LC51
b .L47
.L46:
adrp x0, .LC52
add x0, x0, :lo12:.LC52
.L47:
mov x3, x0
ldr w2, [sp, 56]
adrp x0, .LC55
add x1, x0, :lo12:.LC55
mov x0, x19
bl sprintf
nop
.L48:
add x19, x19, 1
ldrb w0, [x19]
cmp w0, 0
bne .L48
.L44:
ldr w0, [sp, 52]
cmp w0, 0
beq .L49
adrp x0, nbuf
add x0, x0, :lo12:nbuf
cmp x19, x0
beq .L50
mov x0, x19
add x19, x0, 1
mov w1, 32
strb w1, [x0]
.L50:
ldr w0, [sp, 52]
cmp w0, 1
bne .L51
adrp x0, .LC51
add x0, x0, :lo12:.LC51
b .L52
.L51:
adrp x0, .LC52
add x0, x0, :lo12:.LC52
.L52:
mov x3, x0
ldr w2, [sp, 52]
adrp x0, .LC56
add x1, x0, :lo12:.LC56
mov x0, x19
bl sprintf
nop
.L53:
add x19, x19, 1
ldrb w0, [x19]
cmp w0, 0
bne .L53
.L49:
adrp x0, nbuf
add x0, x0, :lo12:nbuf
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
.LFE12:
.size p_time, .-p_time
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "r"
.text
.align 2
.global numOfProcesses
.type numOfProcesses, %function
numOfProcesses:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -256]!
.cfi_def_cfa_offset 256
.cfi_offset 29, -256
.cfi_offset 30, -248
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, 248]
mov x1, 0
adrp x0, .LC0
add x1, x0, :lo12:.LC0
ldr x0, [sp, 24]
bl fopen
str x0, [sp, 40]
ldr x0, [sp, 40]
cmp x0, 0
bne .L2
mov w0, 0
b .L6
.L2:
str wzr, [sp, 36]
b .L4
.L5:
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L4:
add x0, sp, 48
ldr x2, [sp, 40]
mov w1, 200
bl fgets
cmp x0, 0
bne .L5
ldr x0, [sp, 40]
bl fclose
ldr w0, [sp, 36]
sub w0, w0, #2
.L6:
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 .L7
bl __stack_chk_fail
.L7:
mov w0, w1
ldp x29, x30, [sp], 256
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size numOfProcesses, .-numOfProcesses
.section .rodata
.align 3
.LC1:
.string ","
.align 3
.LC2:
.string ",\n"
.text
.align 2
.global getElement
.type getElement, %function
getElement:
.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]
str w1, [sp, 20]
adrp x0, .LC1
add x1, x0, :lo12:.LC1
ldr x0, [sp, 24]
bl strtok
str x0, [sp, 40]
b .L9
.L13:
ldr w0, [sp, 20]
sub w0, w0, #1
str w0, [sp, 20]
ldr w0, [sp, 20]
cmp w0, 0
bne .L10
ldr x0, [sp, 40]
b .L11
.L10:
adrp x0, .LC2
add x1, x0, :lo12:.LC2
mov x0, 0
bl strtok
str x0, [sp, 40]
.L9:
ldr x0, [sp, 40]
cmp x0, 0
beq .L12
ldr x0, [sp, 40]
ldrb w0, [x0]
cmp w0, 0
bne .L13
.L12:
mov x0, 0
.L11:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size getElement, .-getElement
.align 2
.global randomInclusive
.type randomInclusive, %function
randomInclusive:
.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 w1, [sp, 24]
bl rand
mov w2, w0
ldr w1, [sp, 24]
ldr w0, [sp, 28]
sub w0, w1, w0
add w0, w0, 1
mov w1, 2147483647
sdiv w0, w1, w0
add w0, w0, 1
sdiv w1, w2, w0
ldr w0, [sp, 28]
add w0, w1, w0
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size randomInclusive, .-randomInclusive
.section .rodata
.align 3
.LC3:
.string "Enter input file name: "
.align 3
.LC4:
.string "%s"
.align 3
.LC5:
.string "Enter Output file name: "
.align 3
.LC6:
.string "FILE DOESN'T EXIST!!"
.align 3
.LC7:
.string "a"
.align 3
.LC8:
.string "Time %d: "
.align 3
.LC9:
.string "P%d "
.align 3
.LC10:
.string "Entering quantum "
.align 3
.LC11:
.string " ||=> Done Turn Around: %d "
.align 3
.LC12:
.string " || Waiting Time: %d "
.align 3
.LC13:
.string "\nAverage Turnaround Time = %f\n"
.align 3
.LC14:
.string "Average Waiting Time= %f\n"
.align 3
.LC15:
.string "Success, output file has been written to %s\n"
.align 3
.LC16:
.string "Time elapsed during simulation = %f msec\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB9:
.cfi_startproc
sub sp, sp, #1776
.cfi_def_cfa_offset 1776
stp x29, x30, [sp, 16]
.cfi_offset 29, -1760
.cfi_offset 30, -1752
add x29, sp, 16
.cfi_def_cfa 29, 1760
stp x19, x20, [sp, 32]
stp x21, x22, [sp, 48]
stp x23, x24, [sp, 64]
stp x25, x26, [sp, 80]
str x27, [sp, 96]
.cfi_offset 19, -1744
.cfi_offset 20, -1736
.cfi_offset 21, -1728
.cfi_offset 22, -1720
.cfi_offset 23, -1712
.cfi_offset 24, -1704
.cfi_offset 25, -1696
.cfi_offset 26, -1688
.cfi_offset 27, -1680
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [x29, 1752]
mov x1, 0
mov x0, sp
mov x19, x0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
add x0, x29, 472
mov x1, x0
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl __isoc99_scanf
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
add x0, x29, 728
mov x1, x0
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl __isoc99_scanf
str wzr, [x29, 296]
str wzr, [x29, 308]
add x0, x29, 472
bl numOfProcesses
str w0, [x29, 324]
str wzr, [x29, 312]
str wzr, [x29, 316]
ldr w1, [x29, 324]
sxtw x0, w1
sub x0, x0, #1
str x0, [x29, 352]
sxtw x0, w1
str x0, [x29, 208]
str xzr, [x29, 216]
ldp x2, x3, [x29, 208]
mov x0, x2
lsr x0, x0, 59
mov x4, x3
lsl x21, x4, 5
orr x21, x0, x21
mov x0, x2
lsl x20, x0, 5
sxtw x0, w1
str x0, [x29, 192]
str xzr, [x29, 200]
ldp x2, x3, [x29, 192]
mov x0, x2
lsr x0, x0, 59
mov x4, x3
lsl x4, x4, 5
str x4, [x29, 280]
ldr x4, [x29, 280]
orr x0, x0, x4
str x0, [x29, 280]
mov x0, x2
lsl x0, x0, 5
str x0, [x29, 272]
sxtw x0, w1
lsl x0, x0, 2
add x0, x0, 15
lsr x0, x0, 4
lsl x0, x0, 4
and x1, x0, -65536
sub x1, sp, x1
.L17:
cmp sp, x1
beq .L18
sub sp, sp, #65536
str xzr, [sp, 1024]
b .L17
.L18:
and x1, x0, 65535
sub sp, sp, x1
str xzr, [sp]
and x0, x0, 65535
cmp x0, 1024
bcc .L19
str xzr, [sp, 1024]
.L19:
add x0, sp, 16
add x0, x0, 3
lsr x0, x0, 2
lsl x0, x0, 2
str x0, [x29, 360]
ldr w0, [x29, 324]
sxtw x1, w0
sub x1, x1, #1
str x1, [x29, 368]
sxtw x1, w0
str x1, [x29, 176]
str xzr, [x29, 184]
ldp x2, x3, [x29, 176]
mov x1, x2
lsr x1, x1, 59
mov x4, x3
lsl x4, x4, 5
str x4, [x29, 264]
ldr x4, [x29, 264]
orr x1, x1, x4
str x1, [x29, 264]
mov x1, x2
lsl x1, x1, 5
str x1, [x29, 256]
sxtw x1, w0
str x1, [x29, 160]
str xzr, [x29, 168]
ldp x2, x3, [x29, 160]
mov x1, x2
lsr x1, x1, 59
mov x4, x3
lsl x4, x4, 5
str x4, [x29, 248]
ldr x4, [x29, 248]
orr x1, x1, x4
str x1, [x29, 248]
mov x1, x2
lsl x1, x1, 5
str x1, [x29, 240]
sxtw x0, w0
lsl x0, x0, 2
add x0, x0, 15
lsr x0, x0, 4
lsl x0, x0, 4
and x1, x0, -65536
sub x1, sp, x1
.L20:
cmp sp, x1
beq .L21
sub sp, sp, #65536
str xzr, [sp, 1024]
b .L20
.L21:
and x1, x0, 65535
sub sp, sp, x1
str xzr, [sp]
and x0, x0, 65535
cmp x0, 1024
bcc .L22
str xzr, [sp, 1024]
.L22:
add x0, sp, 16
add x0, x0, 3
lsr x0, x0, 2
lsl x0, x0, 2
str x0, [x29, 376]
ldr w0, [x29, 324]
sxtw x1, w0
sub x1, x1, #1
str x1, [x29, 384]
sxtw x1, w0
str x1, [x29, 144]
str xzr, [x29, 152]
ldp x2, x3, [x29, 144]
mov x1, x2
lsr x1, x1, 59
mov x4, x3
lsl x4, x4, 5
str x4, [x29, 232]
ldr x4, [x29, 232]
orr x1, x1, x4
str x1, [x29, 232]
mov x1, x2
lsl x1, x1, 5
str x1, [x29, 224]
sxtw x1, w0
str x1, [x29, 128]
str xzr, [x29, 136]
ldp x2, x3, [x29, 128]
mov x1, x2
lsr x1, x1, 59
mov x4, x3
lsl x27, x4, 5
orr x27, x1, x27
mov x1, x2
lsl x26, x1, 5
sxtw x0, w0
lsl x0, x0, 2
add x0, x0, 15
lsr x0, x0, 4
lsl x0, x0, 4
and x1, x0, -65536
sub x1, sp, x1
.L23:
cmp sp, x1
beq .L24
sub sp, sp, #65536
str xzr, [sp, 1024]
b .L23
.L24:
and x1, x0, 65535
sub sp, sp, x1
str xzr, [sp]
and x0, x0, 65535
cmp x0, 1024
bcc .L25
str xzr, [sp, 1024]
.L25:
add x0, sp, 16
add x0, x0, 3
lsr x0, x0, 2
lsl x0, x0, 2
str x0, [x29, 392]
ldr w0, [x29, 324]
sxtw x1, w0
sub x1, x1, #1
str x1, [x29, 400]
sxtw x1, w0
str x1, [x29, 112]
str xzr, [x29, 120]
ldp x2, x3, [x29, 112]
mov x1, x2
lsr x1, x1, 59
mov x4, x3
lsl x25, x4, 5
orr x25, x1, x25
mov x1, x2
lsl x24, x1, 5
sxtw x1, w0
str x1, [x29, 96]
str xzr, [x29, 104]
ldp x2, x3, [x29, 96]
mov x1, x2
lsr x1, x1, 59
mov x4, x3
lsl x23, x4, 5
orr x23, x1, x23
mov x1, x2
lsl x22, x1, 5
sxtw x0, w0
lsl x0, x0, 2
add x0, x0, 15
lsr x0, x0, 4
lsl x0, x0, 4
and x1, x0, -65536
sub x1, sp, x1
.L26:
cmp sp, x1
beq .L27
sub sp, sp, #65536
str xzr, [sp, 1024]
b .L26
.L27:
and x1, x0, 65535
sub sp, sp, x1
str xzr, [sp]
and x0, x0, 65535
cmp x0, 1024
bcc .L28
str xzr, [sp, 1024]
.L28:
add x0, sp, 16
add x0, x0, 3
lsr x0, x0, 2
lsl x0, x0, 2
str x0, [x29, 408]
add x2, x29, 472
adrp x0, .LC0
add x1, x0, :lo12:.LC0
mov x0, x2
bl fopen
str x0, [x29, 416]
ldr x0, [x29, 416]
cmp x0, 0
bne .L29
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl puts
mov w0, 0
b .L30
.L29:
add x0, x29, 984
ldr x2, [x29, 416]
mov w1, 256
bl fgets
add x0, x29, 984
bl atoi
str w0, [x29, 328]
ldr w0, [x29, 324]
str w0, [x29, 304]
add x0, x29, 1240
ldr x2, [x29, 416]
mov w1, 256
bl fgets
add x0, x29, 1240
bl atoi
str w0, [x29, 332]
b .L31
.L34:
add x0, x29, 1496
bl strdup
str x0, [x29, 464]
mov w1, 2
ldr x0, [x29, 464]
bl getElement
bl atoi
str w0, [x29, 340]
add x0, x29, 1496
bl strdup
str x0, [x29, 464]
mov w1, 3
ldr x0, [x29, 464]
bl getElement
bl atoi
str w0, [x29, 344]
add x0, x29, 1496
bl strdup
str x0, [x29, 464]
mov w1, 4
ldr x0, [x29, 464]
bl getElement
bl atoi
str w0, [x29, 348]
ldr x0, [x29, 360]
ldrsw x1, [x29, 296]
ldr w2, [x29, 340]
str w2, [x0, x1, lsl 2]
ldr x0, [x29, 376]
ldrsw x1, [x29, 296]
ldr w2, [x29, 344]
str w2, [x0, x1, lsl 2]
ldr x0, [x29, 376]
ldrsw x1, [x29, 296]
ldr w2, [x0, x1, lsl 2]
ldr x0, [x29, 392]
ldrsw x1, [x29, 296]
str w2, [x0, x1, lsl 2]
ldr w0, [x29, 296]
cmp w0, 0
bne .L32
ldr x0, [x29, 408]
ldrsw x1, [x29, 296]
ldr w2, [x29, 348]
str w2, [x0, x1, lsl 2]
b .L33
.L32:
ldr w0, [x29, 296]
sub w1, w0, #1
ldr x0, [x29, 408]
sxtw x1, w1
ldr w1, [x0, x1, lsl 2]
ldr w0, [x29, 348]
add w2, w1, w0
ldr x0, [x29, 408]
ldrsw x1, [x29, 296]
str w2, [x0, x1, lsl 2]
.L33:
ldr w0, [x29, 296]
add w0, w0, 1
str w0, [x29, 296]
.L31:
add x0, x29, 1496
ldr x2, [x29, 416]
mov w1, 256
bl fgets
cmp x0, 0
bne .L34
ldr x0, [x29, 416]
bl fclose
str xzr, [x29, 424]
add x2, x29, 728
adrp x0, .LC7
add x1, x0, :lo12:.LC7
mov x0, x2
bl fopen
str x0, [x29, 424]
mov x0, 0
bl time
bl srand
bl clock
str x0, [x29, 432]
str wzr, [x29, 300]
str wzr, [x29, 296]
b .L35
.L44:
ldr w1, [x29, 332]
mov w0, 0
bl randomInclusive
str w0, [x29, 336]
str wzr, [x29, 320]
b .L36
.L39:
ldr x0, [x29, 408]
ldrsw x1, [x29, 320]
ldr w0, [x0, x1, lsl 2]
ldr w1, [x29, 336]
cmp w1, w0
bge .L37
ldr w0, [x29, 320]
str w0, [x29, 296]
b .L38
.L37:
ldr w0, [x29, 320]
add w0, w0, 1
str w0, [x29, 320]
.L36:
ldr w1, [x29, 320]
ldr w0, [x29, 324]
cmp w1, w0
blt .L39
.L38:
ldr x0, [x29, 392]
ldrsw x1, [x29, 296]
ldr w0, [x0, x1, lsl 2]
ldr w1, [x29, 328]
cmp w1, w0
blt .L40
ldr x0, [x29, 392]
ldrsw x1, [x29, 296]
ldr w0, [x0, x1, lsl 2]
cmp w0, 0
ble .L40
ldr x1, [x29, 424]
mov w0, 10
bl fputc
ldr w2, [x29, 300]
adrp x0, .LC8
add x1, x0, :lo12:.LC8
ldr x0, [x29, 424]
bl fprintf
ldr w0, [x29, 296]
add w0, w0, 1
mov w2, w0
adrp x0, .LC9
add x1, x0, :lo12:.LC9
ldr x0, [x29, 424]
bl fprintf
bl clock
str x0, [x29, 456]
nop
.L41:
bl clock
mov x1, x0
ldr x0, [x29, 456]
sub x0, x1, x0
fmov d0, x0
scvtf d0, d0
mov x0, 145685290680320
movk x0, 0x412e, lsl 48
fmov d1, x0
fdiv d0, d0, d1
mov x0, 70368744177664
movk x0, 0x408f, lsl 48
fmov d1, x0
fmul d1, d0, d1
ldr x0, [x29, 392]
ldrsw x1, [x29, 296]
ldr w0, [x0, x1, lsl 2]
scvtf d0, w0
fcmpe d1, d0
bmi .L41
ldr x0, [x29, 392]
ldrsw x1, [x29, 296]
ldr w0, [x0, x1, lsl 2]
ldr w1, [x29, 300]
add w0, w1, w0
str w0, [x29, 300]
ldr x0, [x29, 392]
ldrsw x1, [x29, 296]
str wzr, [x0, x1, lsl 2]
mov w0, 1
str w0, [x29, 308]
b .L42
.L40:
ldr x0, [x29, 392]
ldrsw x1, [x29, 296]
ldr w0, [x0, x1, lsl 2]
cmp w0, 0
ble .L42
ldr x1, [x29, 424]
mov w0, 10
bl fputc
ldr w2, [x29, 300]
adrp x0, .LC8
add x1, x0, :lo12:.LC8
ldr x0, [x29, 424]
bl fprintf
ldr w0, [x29, 296]
add w0, w0, 1
mov w2, w0
adrp x0, .LC9
add x1, x0, :lo12:.LC9
ldr x0, [x29, 424]
bl fprintf
ldr x3, [x29, 424]
mov x2, 17
mov x1, 1
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl fwrite
bl clock
str x0, [x29, 456]
nop
.L43:
bl clock
mov x1, x0
ldr x0, [x29, 456]
sub x0, x1, x0
fmov d0, x0
scvtf d0, d0
mov x0, 145685290680320
movk x0, 0x412e, lsl 48
fmov d1, x0
fdiv d0, d0, d1
mov x0, 70368744177664
movk x0, 0x408f, lsl 48
fmov d1, x0
fmul d1, d0, d1
ldr w0, [x29, 328]
scvtf d0, w0
fcmpe d1, d0
bmi .L43
ldr x0, [x29, 392]
ldrsw x1, [x29, 296]
ldr w1, [x0, x1, lsl 2]
ldr w0, [x29, 328]
sub w2, w1, w0
ldr x0, [x29, 392]
ldrsw x1, [x29, 296]
str w2, [x0, x1, lsl 2]
ldr w1, [x29, 300]
ldr w0, [x29, 328]
add w0, w1, w0
str w0, [x29, 300]
.L42:
ldr x0, [x29, 392]
ldrsw x1, [x29, 296]
ldr w0, [x0, x1, lsl 2]
cmp w0, 0
bne .L35
ldr w0, [x29, 308]
cmp w0, 1
bne .L35
ldr w0, [x29, 304]
sub w0, w0, #1
str w0, [x29, 304]
ldr x0, [x29, 360]
ldrsw x1, [x29, 296]
ldr w0, [x0, x1, lsl 2]
ldr w1, [x29, 300]
sub w0, w1, w0
mov w2, w0
adrp x0, .LC11
add x1, x0, :lo12:.LC11
ldr x0, [x29, 424]
bl fprintf
ldr x0, [x29, 360]
ldrsw x1, [x29, 296]
ldr w0, [x0, x1, lsl 2]
ldr w1, [x29, 300]
sub w1, w1, w0
ldr x0, [x29, 376]
ldrsw x2, [x29, 296]
ldr w0, [x0, x2, lsl 2]
sub w0, w1, w0
mov w2, w0
adrp x0, .LC12
add x1, x0, :lo12:.LC12
ldr x0, [x29, 424]
bl fprintf
ldr x0, [x29, 360]
ldrsw x1, [x29, 296]
ldr w0, [x0, x1, lsl 2]
ldr w1, [x29, 300]
sub w1, w1, w0
ldr x0, [x29, 376]
ldrsw x2, [x29, 296]
ldr w0, [x0, x2, lsl 2]
sub w0, w1, w0
ldr w1, [x29, 312]
add w0, w1, w0
str w0, [x29, 312]
ldr x0, [x29, 360]
ldrsw x1, [x29, 296]
ldr w0, [x0, x1, lsl 2]
ldr w1, [x29, 300]
sub w0, w1, w0
ldr w1, [x29, 316]
add w0, w1, w0
str w0, [x29, 316]
str wzr, [x29, 308]
.L35:
ldr w0, [x29, 304]
cmp w0, 0
bne .L44
ldr x1, [x29, 424]
mov w0, 10
bl fputc
ldr w0, [x29, 316]
scvtf d1, w0
ldr w0, [x29, 324]
scvtf d0, w0
fdiv d0, d1, d0
adrp x0, .LC13
add x1, x0, :lo12:.LC13
ldr x0, [x29, 424]
bl fprintf
ldr w0, [x29, 312]
scvtf d1, w0
ldr w0, [x29, 324]
scvtf d0, w0
fdiv d0, d1, d0
adrp x0, .LC14
add x1, x0, :lo12:.LC14
ldr x0, [x29, 424]
bl fprintf
ldr x0, [x29, 424]
bl fclose
add x0, x29, 728
mov x1, x0
adrp x0, .LC15
add x0, x0, :lo12:.LC15
bl printf
bl clock
str x0, [x29, 440]
ldr x1, [x29, 440]
ldr x0, [x29, 432]
sub x0, x1, x0
fmov d0, x0
scvtf d0, d0
mov x0, 145685290680320
movk x0, 0x412e, lsl 48
fmov d1, x0
fdiv d0, d0, d1
mov x0, 70368744177664
movk x0, 0x408f, lsl 48
fmov d1, x0
fmul d0, d0, d1
str d0, [x29, 448]
ldr d0, [x29, 448]
adrp x0, .LC16
add x0, x0, :lo12:.LC16
bl printf
mov w0, 0
.L30:
mov sp, x19
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [x29, 1752]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L46
bl __stack_chk_fail
.L46:
mov w0, w1
sub sp, x29, #16
.cfi_def_cfa 31, 1776
ldp x19, x20, [sp, 32]
ldp x21, x22, [sp, 48]
ldp x23, x24, [sp, 64]
ldp x25, x26, [sp, 80]
ldr x27, [sp, 96]
ldp x29, x30, [sp, 16]
add sp, sp, 1776
.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
.LFE9:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "It was the best of times."
.align 3
.LC1:
.string "It was the worst of times."
.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]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl puts
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 "%d%d"
.align 3
.LC1:
.string "program.c"
.align 3
.LC2:
.string "r ==2"
.align 3
.LC3:
.string "%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
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
str w0, [sp, 36]
ldr w0, [sp, 36]
cmp w0, 2
beq .L2
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 8
adrp x0, .LC1
add x1, x0, :lo12:.LC1
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl __assert_fail
.L2:
ldr w1, [sp, 28]
ldr w0, [sp, 32]
add w0, w1, w0
mov w1, w0
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 .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
.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
.LC3:
.string "hello"
.text
.align 2
.global f0
.type f0, %function
f0:
.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 w0, 513
movk w0, 0x403, lsl 16
str w0, [sp, 16]
str xzr, [sp, 24]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl strdup
str x0, [sp, 24]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 32]
ldr w0, [sp, 32]
str w0, [sp, 16]
ldrb w0, [sp, 16]
cmp w0, 97
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 17]
cmp w0, 98
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 18]
cmp w0, 99
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 19]
cmp w0, 100
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
cmp x0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
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, 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 f0, .-f0
.align 2
.global f1
.type f1, %function
f1:
.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, .LC3
add x0, x0, :lo12:.LC3
bl strdup
str x0, [sp, 24]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 32]
ldr w0, [sp, 32]
str w0, [sp, 16]
ldrb w0, [sp, 16]
cmp w0, 97
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 17]
cmp w0, 98
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 18]
cmp w0, 99
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 19]
cmp w0, 100
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
cmp x0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
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, 40]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L6
bl __stack_chk_fail
.L6:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size f1, .-f1
.align 2
.global f2
.type f2, %function
f2:
.LFB2:
.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
stp xzr, xzr, [sp, 16]
mov w0, 513
str w0, [sp, 16]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl strdup
str x0, [sp, 24]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 32]
ldr w0, [sp, 32]
str w0, [sp, 16]
ldrb w0, [sp, 16]
cmp w0, 97
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 17]
cmp w0, 98
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 18]
cmp w0, 99
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 19]
cmp w0, 100
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
cmp x0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
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, 40]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L9
bl __stack_chk_fail
.L9:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size f2, .-f2
.align 2
.global f3
.type f3, %function
f3:
.LFB3:
.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, 513
movk w0, 0x403, lsl 16
str w0, [sp, 32]
str xzr, [sp, 40]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl strdup
str x0, [sp, 40]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 48]
add x0, sp, 32
str x0, [sp, 24]
ldr w1, [sp, 48]
ldr x0, [sp, 24]
str w1, [x0]
ldrb w0, [sp, 32]
cmp w0, 97
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldr w0, [x0]
cmp w0, 97
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 33]
cmp w0, 98
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
add x0, x0, 4
ldr w0, [x0]
cmp w0, 98
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 34]
cmp w0, 99
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
add x0, x0, 8
ldr w0, [x0]
cmp w0, 99
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 35]
cmp w0, 100
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
add x0, x0, 12
ldr w0, [x0]
cmp w0, 100
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 40]
cmp x0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 40]
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, 56]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L12
bl __stack_chk_fail
.L12:
mov w0, w1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE3:
.size f3, .-f3
.section .rodata
.align 3
.LC4:
.string "hola"
.text
.align 2
.global f4
.type f4, %function
f4:
.LFB4:
.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
stp xzr, xzr, [sp, 24]
str xzr, [sp, 40]
mov w0, 513
movk w0, 0x403, lsl 16
str w0, [sp, 24]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl strdup
str x0, [sp, 40]
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl strdup
str x0, [sp, 32]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 48]
add x0, sp, 24
str x0, [sp, 16]
ldr w1, [sp, 48]
ldr x0, [sp, 16]
str w1, [x0]
ldrb w0, [sp, 24]
cmp w0, 97
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 16]
ldrb w0, [x0]
cmp w0, 97
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 25]
cmp w0, 98
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 16]
add x0, x0, 1
ldrb w0, [x0]
cmp w0, 98
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 26]
cmp w0, 99
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 16]
add x0, x0, 2
ldrb w0, [x0]
cmp w0, 99
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 27]
cmp w0, 100
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 16]
add x0, x0, 3
ldrb w0, [x0]
cmp w0, 100
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 40]
cmp x0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 32]
bl free
ldr x0, [sp, 40]
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, 56]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L15
bl __stack_chk_fail
.L15:
mov w0, w1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE4:
.size f4, .-f4
.align 2
.global f5
.type f5, %function
f5:
.LFB5:
.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 w0, 513
movk w0, 0x403, lsl 16
str w0, [sp, 16]
str xzr, [sp, 24]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl strdup
str x0, [sp, 24]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 32]
ldr w0, [sp, 32]
str w0, [sp, 16]
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 .L18
bl __stack_chk_fail
.L18:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE5:
.size f5, .-f5
.align 2
.global f6
.type f6, %function
f6:
.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
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl strdup
str x0, [sp, 24]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 32]
ldr w0, [sp, 32]
str w0, [sp, 16]
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 .L21
bl __stack_chk_fail
.L21:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size f6, .-f6
.align 2
.global f7
.type f7, %function
f7:
.LFB7:
.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
stp xzr, xzr, [sp, 16]
mov w0, 513
str w0, [sp, 16]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl strdup
str x0, [sp, 24]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 32]
ldr w0, [sp, 32]
str w0, [sp, 16]
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 .L24
bl __stack_chk_fail
.L24:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size f7, .-f7
.align 2
.global f8
.type f8, %function
f8:
.LFB8:
.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, 513
movk w0, 0x403, lsl 16
str w0, [sp, 32]
str xzr, [sp, 40]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl strdup
str x0, [sp, 40]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 48]
add x0, sp, 32
str x0, [sp, 24]
ldr w1, [sp, 48]
ldr x0, [sp, 24]
str w1, [x0]
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 .L27
bl __stack_chk_fail
.L27:
mov w0, w1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size f8, .-f8
.align 2
.global f9
.type f9, %function
f9:
.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
stp xzr, xzr, [sp, 24]
str xzr, [sp, 40]
mov w0, 513
movk w0, 0x403, lsl 16
str w0, [sp, 24]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl strdup
str x0, [sp, 40]
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl strdup
str x0, [sp, 32]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 48]
add x0, sp, 24
str x0, [sp, 16]
ldr w1, [sp, 48]
ldr x0, [sp, 16]
str w1, [x0]
ldr x0, [sp, 32]
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, 56]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L30
bl __stack_chk_fail
.L30:
mov w0, w1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size f9, .-f9
.align 2
.global f10
.type f10, %function
f10:
.LFB10:
.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
stp xzr, xzr, [sp, 24]
str xzr, [sp, 40]
mov w0, 513
movk w0, 0x403, lsl 16
str w0, [sp, 24]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl strdup
str x0, [sp, 40]
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl strdup
str x0, [sp, 32]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 48]
add x0, sp, 24
str x0, [sp, 16]
ldr w1, [sp, 48]
ldr x0, [sp, 16]
str w1, [x0]
ldr x0, [sp, 40]
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, 56]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L33
bl __stack_chk_fail
.L33:
mov w0, w1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size f10, .-f10
.align 2
.global f11
.type f11, %function
f11:
.LFB11:
.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, 513
str w0, [sp, 40]
mov w0, 1
strb w0, [sp, 40]
mov w0, 2
strb w0, [sp, 41]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl strdup
str x0, [sp, 32]
add x0, sp, 40
str x0, [sp, 24]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 48]
ldr x0, [sp, 24]
ldr w1, [sp, 48]
str w1, [x0]
ldrb w0, [sp, 40]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 41]
cmp w0, 2
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 97
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
add x0, x0, 1
ldrb w0, [x0]
cmp w0, 98
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
add x0, x0, 2
ldrb w0, [x0]
cmp w0, 99
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
add x0, x0, 3
ldrb w0, [x0]
cmp w0, 100
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 32]
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, 56]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L36
bl __stack_chk_fail
.L36:
mov w0, w1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size f11, .-f11
.align 2
.global f12
.type f12, %function
f12:
.LFB12:
.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 xzr, [sp, 16]
mov w0, 513
movk w0, 0x403, lsl 16
str w0, [sp, 24]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl strdup
str x0, [sp, 16]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 32]
ldr w0, [sp, 32]
str w0, [sp, 24]
ldrb w0, [sp, 24]
cmp w0, 97
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 25]
cmp w0, 98
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 26]
cmp w0, 99
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 27]
cmp w0, 100
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 16]
cmp x0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 16]
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, 40]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L39
bl __stack_chk_fail
.L39:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE12:
.size f12, .-f12
.align 2
.global f13
.type f13, %function
f13:
.LFB13:
.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, 24
mov x3, x0
ldp x0, x1, [x3]
stp x0, x1, [x2]
ldr x0, [x3, 16]
str x0, [x2, 16]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl strdup
str x0, [sp, 40]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 48]
ldr w0, [sp, 48]
str w0, [sp, 24]
ldr w0, [sp, 24]
cmp w0, 97
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 28]
cmp w0, 98
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr w0, [sp, 32]
cmp w0, 99
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 36]
cmp w0, 100
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 40]
cmp x0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 40]
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, 56]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L42
bl __stack_chk_fail
.L42:
mov w0, w1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE13:
.size f13, .-f13
.section .rodata
.align 3
.LC0:
.word 1
.byte 2
.zero 3
.word 3
.byte 4
.zero 3
.xword 0
.text
.global a15
.data
.align 3
.type a15, %object
.size a15, 16
a15:
.ascii "\001\002\003\004"
.zero 4
.xword 0
.text
.align 2
.global f15
.type f15, %function
f15:
.LFB14:
.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, .LC3
add x0, x0, :lo12:.LC3
bl strdup
mov x1, x0
adrp x0, a15
add x0, x0, :lo12:a15
str x1, [x0, 8]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 16]
ldr w1, [sp, 16]
adrp x0, a15
add x0, x0, :lo12:a15
str w1, [x0]
adrp x0, a15
add x0, x0, :lo12:a15
ldrb w0, [x0]
cmp w0, 97
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
adrp x0, a15
add x0, x0, :lo12:a15
ldrb w0, [x0, 1]
cmp w0, 98
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
adrp x0, a15
add x0, x0, :lo12:a15
ldrb w0, [x0, 2]
cmp w0, 99
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
adrp x0, a15
add x0, x0, :lo12:a15
ldrb w0, [x0, 3]
cmp w0, 100
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
adrp x0, a15
add x0, x0, :lo12:a15
ldr x0, [x0, 8]
cmp x0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
adrp x0, a15
add x0, x0, :lo12:a15
ldr x0, [x0, 8]
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, 24]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L45
bl __stack_chk_fail
.L45:
mov w0, w1
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE14:
.size f15, .-f15
.align 2
.global f16
.type f16, %function
f16:
.LFB15:
.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 xzr, [sp, 24]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl strdup
str x0, [sp, 24]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 32]
ldr w0, [sp, 32]
str w0, [sp, 24]
add x0, sp, 24
ldr w0, [x0]
cmp w0, 97
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
add x0, sp, 24
ldr w0, [x0]
cmp w0, 98
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
add x0, sp, 24
ldr w0, [x0]
cmp w0, 99
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
add x0, sp, 24
ldr w0, [x0]
cmp w0, 100
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
cmp x0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
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, 40]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L48
bl __stack_chk_fail
.L48:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE15:
.size f16, .-f16
.align 2
.global f17
.type f17, %function
f17:
.LFB16:
.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, .LC3
add x0, x0, :lo12:.LC3
bl strdup
str x0, [sp, 24]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 32]
ldr w0, [sp, 32]
str w0, [sp, 24]
ldrb w0, [sp, 24]
cmp w0, 97
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
cmp x0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
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, 40]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L51
bl __stack_chk_fail
.L51:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE16:
.size f17, .-f17
.align 2
.global f18
.type f18, %function
f18:
.LFB17:
.cfi_startproc
stp x29, x30, [sp, -160]!
.cfi_def_cfa_offset 160
.cfi_offset 29, -160
.cfi_offset 30, -152
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 152]
mov x1, 0
stp xzr, xzr, [sp, 24]
str xzr, [sp, 40]
mov w0, 513
movk w0, 0x403, lsl 16
str w0, [sp, 24]
mov w0, 5
str w0, [sp, 28]
mov w0, 6
str w0, [sp, 32]
mov w0, 10
str w0, [sp, 28]
mov w0, 11
str w0, [sp, 32]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl strdup
str x0, [sp, 40]
mov x0, 3
mov x1, 0
stp x0, x1, [sp, 48]
add x0, sp, 64
movi v0.4s, 0
stp q0, q0, [x0]
stp q0, q0, [x0, 32]
str q0, [x0, 64]
fmov w1, s0
str w1, [x0, 80]
add x1, sp, 48
add x0, sp, 24
mov x2, 100
bl memcpy
ldrb w0, [sp, 24]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 25]
cmp w0, 2
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 26]
cmp w0, 3
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 27]
cmp w0, 4
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr w0, [sp, 28]
cmp w0, 10
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr w0, [sp, 32]
cmp w0, 11
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
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 .L54
bl __stack_chk_fail
.L54:
mov w0, w1
ldp x29, x30, [sp], 160
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE17:
.size f18, .-f18
.align 2
.global f181
.type f181, %function
f181:
.LFB18:
.cfi_startproc
stp x29, x30, [sp, -160]!
.cfi_def_cfa_offset 160
.cfi_offset 29, -160
.cfi_offset 30, -152
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 152]
mov x1, 0
stp xzr, xzr, [sp, 24]
str xzr, [sp, 40]
mov w0, 513
movk w0, 0x403, lsl 16
str w0, [sp, 24]
mov w0, 5
str w0, [sp, 28]
mov w0, 6
str w0, [sp, 32]
mov w0, 10
str w0, [sp, 28]
mov w0, 11
str w0, [sp, 32]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl strdup
str x0, [sp, 40]
mov x0, 3
mov x1, 0
stp x0, x1, [sp, 48]
add x0, sp, 64
movi v0.4s, 0
stp q0, q0, [x0]
stp q0, q0, [x0, 32]
str q0, [x0, 64]
fmov w1, s0
str w1, [x0, 80]
add x1, sp, 48
add x0, sp, 24
mov x2, 5
bl memcpy
ldrb w0, [sp, 24]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 25]
cmp w0, 2
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 26]
cmp w0, 3
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 27]
cmp w0, 4
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr w0, [sp, 28]
cmp w0, 10
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr w0, [sp, 32]
cmp w0, 11
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
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 .L57
bl __stack_chk_fail
.L57:
mov w0, w1
ldp x29, x30, [sp], 160
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE18:
.size f181, .-f181
.section .rodata
.align 3
.LC5:
.string "hi"
.align 3
.LC6:
.string "world"
.text
.align 2
.global f19
.type f19, %function
f19:
.LFB19:
.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]
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, .LC1
add x1, x0, :lo12:.LC1
add x0, sp, 40
ldp q0, q1, [x1]
stp q0, q1, [x0]
ldr q0, [x1, 32]
str q0, [x0, 32]
ldr x1, [x1, 48]
str x1, [x0, 48]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl strdup
str x0, [sp, 88]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl strdup
str x0, [sp, 48]
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl strdup
str x0, [sp, 64]
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl strdup
str x0, [sp, 80]
mov w0, 25185
strh w0, [sp, 96]
add x1, sp, 40
ldrsw x0, [sp, 28]
lsl x0, x0, 4
add x0, x1, x0
ldrh w1, [sp, 96]
strh w1, [x0]
ldrb w0, [sp, 40]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 41]
cmp w0, 2
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 56]
cmp w0, 3
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 57]
cmp w0, 4
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 72]
cmp w0, 5
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 73]
cmp w0, 6
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrsw x0, [sp, 28]
lsl x0, x0, 4
add x1, sp, 40
ldrb w0, [x1, x0]
cmp w0, 5
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrsw x0, [sp, 28]
lsl x0, x0, 4
add x1, sp, 41
ldrb w0, [x1, x0]
cmp w0, 6
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
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 .L60
bl __stack_chk_fail
.L60:
mov w0, w1
ldp x29, x30, [sp], 112
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE19:
.size f19, .-f19
.section .rodata
.align 3
.LC1:
.ascii "\001\002"
.zero 6
.xword 0
.ascii "\003\004"
.zero 6
.xword 0
.ascii "\005\006"
.zero 6
.xword 0
.xword 0
.text
.align 2
.global f20
.type f20, %function
f20:
.LFB20:
.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
str w0, [sp, 44]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 72]
mov x1, 0
mov x0, 32
bl malloc
str x0, [sp, 56]
ldr x0, [sp, 56]
mov w1, 1
strb w1, [x0]
ldr x0, [sp, 56]
mov w1, 2
strb w1, [x0, 1]
ldr x0, [sp, 56]
mov w1, 3
strb w1, [x0, 2]
ldr x0, [sp, 56]
mov w1, 4
strb w1, [x0, 3]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl strdup
mov x1, x0
ldr x0, [sp, 56]
str x1, [x0, 8]
ldr x0, [sp, 56]
add x0, x0, 16
mov w1, 5
strb w1, [x0]
ldr x0, [sp, 56]
add x0, x0, 16
mov w1, 6
strb w1, [x0, 1]
ldr x0, [sp, 56]
add x0, x0, 16
mov w1, 7
strb w1, [x0, 2]
ldr x0, [sp, 56]
add x0, x0, 16
mov w1, 8
strb w1, [x0, 3]
ldr x0, [sp, 56]
add x19, x0, 16
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl strdup
str x0, [x19, 8]
ldrsw x0, [sp, 44]
lsl x0, x0, 4
ldr x1, [sp, 56]
add x19, x1, x0
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl strdup
str x0, [x19, 8]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 64]
ldr x0, [sp, 56]
ldr w1, [sp, 64]
str w1, [x0]
ldr x0, [sp, 56]
ldrb w0, [x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 56]
ldrb w0, [x0, 1]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 56]
ldrb w0, [x0, 2]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 56]
ldrb w0, [x0, 3]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 56]
ldr x0, [x0, 8]
cmp x0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 56]
add x0, x0, 16
ldrb w0, [x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 56]
add x0, x0, 16
ldrb w0, [x0, 1]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 56]
add x0, x0, 16
ldrb w0, [x0, 2]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 56]
add x0, x0, 16
ldrb w0, [x0, 3]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 56]
add x0, x0, 16
ldr x0, [x0, 8]
cmp x0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrsw x0, [sp, 44]
lsl x0, x0, 4
ldr x1, [sp, 56]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrsw x0, [sp, 44]
lsl x0, x0, 4
ldr x1, [sp, 56]
add x0, x1, x0
ldrb w0, [x0, 1]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrsw x0, [sp, 44]
lsl x0, x0, 4
ldr x1, [sp, 56]
add x0, x1, x0
ldrb w0, [x0, 2]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrsw x0, [sp, 44]
lsl x0, x0, 4
ldr x1, [sp, 56]
add x0, x1, x0
ldrb w0, [x0, 3]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrsw x0, [sp, 44]
lsl x0, x0, 4
ldr x1, [sp, 56]
add x0, x1, x0
ldr x0, [x0, 8]
cmp x0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
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 .L63
bl __stack_chk_fail
.L63:
mov w0, w1
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
.LFE20:
.size f20, .-f20
.align 2
.global f21
.type f21, %function
f21:
.LFB21:
.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
str w0, [sp, 44]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 72]
mov x1, 0
mov x0, 32
bl malloc
str x0, [sp, 56]
ldr x0, [sp, 56]
mov w1, 1
strb w1, [x0]
ldr x0, [sp, 56]
mov w1, 2
strb w1, [x0, 1]
ldr x0, [sp, 56]
mov w1, 3
strb w1, [x0, 2]
ldr x0, [sp, 56]
mov w1, 4
strb w1, [x0, 3]
ldr x0, [sp, 56]
str xzr, [x0, 8]
ldr x0, [sp, 56]
add x0, x0, 16
mov w1, 5
strb w1, [x0]
ldr x0, [sp, 56]
add x0, x0, 16
mov w1, 6
strb w1, [x0, 1]
ldr x0, [sp, 56]
add x0, x0, 16
mov w1, 7
strb w1, [x0, 2]
ldr x0, [sp, 56]
add x0, x0, 16
mov w1, 8
strb w1, [x0, 3]
ldr x0, [sp, 56]
add x0, x0, 16
str xzr, [x0, 8]
ldrsw x0, [sp, 44]
lsl x0, x0, 4
ldr x1, [sp, 56]
add x19, x1, x0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl strdup
str x0, [x19, 8]
ldrsw x0, [sp, 44]
lsl x0, x0, 4
ldr x1, [sp, 56]
add x0, x1, x0
mov w1, 1
strb w1, [x0]
ldrsw x0, [sp, 44]
lsl x0, x0, 4
ldr x1, [sp, 56]
add x0, x1, x0
mov w1, 2
strb w1, [x0, 1]
ldrsw x0, [sp, 44]
lsl x0, x0, 4
ldr x1, [sp, 56]
add x0, x1, x0
mov w1, 3
strb w1, [x0, 2]
ldrsw x0, [sp, 44]
lsl x0, x0, 4
ldr x1, [sp, 56]
add x0, x1, x0
mov w1, 4
strb w1, [x0, 3]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 64]
ldrsw x0, [sp, 44]
lsl x0, x0, 4
ldr x1, [sp, 56]
add x0, x1, x0
mov x1, x0
ldr w0, [sp, 64]
str w0, [x1]
ldr x0, [sp, 56]
ldrb w0, [x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 56]
ldrb w0, [x0, 1]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 56]
ldrb w0, [x0, 2]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 56]
ldrb w0, [x0, 3]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 56]
ldr x0, [x0, 8]
cmp x0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 56]
add x0, x0, 16
ldrb w0, [x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 56]
add x0, x0, 16
ldrb w0, [x0, 1]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 56]
add x0, x0, 16
ldrb w0, [x0, 2]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 56]
add x0, x0, 16
ldrb w0, [x0, 3]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 56]
add x0, x0, 16
ldr x0, [x0, 8]
cmp x0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrsw x0, [sp, 44]
lsl x0, x0, 4
ldr x1, [sp, 56]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrsw x0, [sp, 44]
lsl x0, x0, 4
ldr x1, [sp, 56]
add x0, x1, x0
ldrb w0, [x0, 1]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrsw x0, [sp, 44]
lsl x0, x0, 4
ldr x1, [sp, 56]
add x0, x1, x0
ldrb w0, [x0, 2]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrsw x0, [sp, 44]
lsl x0, x0, 4
ldr x1, [sp, 56]
add x0, x1, x0
ldrb w0, [x0, 3]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrsw x0, [sp, 44]
lsl x0, x0, 4
ldr x1, [sp, 56]
add x0, x1, x0
ldr x0, [x0, 8]
cmp x0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
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 .L66
bl __stack_chk_fail
.L66:
mov w0, w1
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
.LFE21:
.size f21, .-f21
.align 2
.global f24
.type f24, %function
f24:
.LFB22:
.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, 513
movk w0, 0x403, lsl 16
str w0, [sp, 32]
str xzr, [sp, 40]
add x0, sp, 32
str x0, [sp, 24]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl strdup
mov x1, x0
ldr x0, [sp, 24]
str x1, [x0, 8]
mov w0, 513
movk w0, 0x403, lsl 16
str w0, [sp, 48]
ldr x0, [sp, 24]
ldr w1, [sp, 48]
str w1, [x0]
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 1]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 2]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 3]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 32]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 33]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 34]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 35]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
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 .L69
bl __stack_chk_fail
.L69:
mov w0, w1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE22:
.size f24, .-f24
.align 2
.global f25
.type f25, %function
f25:
.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 w0, [sp, 44]
str w1, [sp, 40]
str x2, [sp, 32]
str x3, [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
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl strdup
mov x1, x0
ldr x0, [sp, 24]
str x1, [x0, 8]
ldr x0, [sp, 24]
mov w1, 1
strb w1, [x0]
ldr x0, [sp, 24]
mov w1, 2
strb w1, [x0, 1]
ldr x0, [sp, 24]
mov w1, 3
strb w1, [x0, 2]
ldr x0, [sp, 24]
mov w1, 4
strb w1, [x0, 3]
ldr x1, [sp, 24]
ldrsw x0, [sp, 40]
mov w2, 5
strb w2, [x1, x0]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl strdup
mov x1, x0
ldr x0, [sp, 32]
str x1, [x0, 8]
ldr x0, [sp, 32]
mov w1, 6
strb w1, [x0]
ldr x0, [sp, 32]
mov w1, 7
strb w1, [x0, 1]
ldr x0, [sp, 32]
mov w1, 8
strb w1, [x0, 2]
ldr x0, [sp, 32]
mov w1, 9
strb w1, [x0, 3]
ldr x1, [sp, 32]
ldrsw x0, [sp, 44]
mov w2, 10
strb w2, [x1, x0]
mov w0, 513
movk w0, 0x403, lsl 16
str w0, [sp, 48]
ldr x0, [sp, 24]
ldr w1, [sp, 48]
str w1, [x0]
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 1]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 2]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 3]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x1, [sp, 24]
ldrsw x0, [sp, 44]
ldrb w0, [x1, x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x1, [sp, 24]
ldrsw x0, [sp, 40]
ldrb w0, [x1, x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 32]
ldrb w0, [x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 32]
ldrb w0, [x0, 1]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 32]
ldrb w0, [x0, 2]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 32]
ldrb w0, [x0, 3]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x1, [sp, 32]
ldrsw x0, [sp, 44]
ldrb w0, [x1, x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x1, [sp, 32]
ldrsw x0, [sp, 40]
ldrb w0, [x1, x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
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 .L72
bl __stack_chk_fail
.L72:
mov w0, w1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE23:
.size f25, .-f25
.align 2
.global f26
.type f26, %function
f26:
.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 w0, [sp, 28]
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, 513
movk w0, 0x403, lsl 16
str w0, [sp, 32]
str xzr, [sp, 40]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl strdup
str x0, [sp, 40]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 48]
ldrsw x2, [sp, 28]
add x1, sp, 48
add x0, sp, 32
bl memcpy
ldrb w0, [sp, 32]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 33]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 34]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 35]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
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 .L75
bl __stack_chk_fail
.L75:
mov w0, w1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE24:
.size f26, .-f26
.align 2
.global f261
.type f261, %function
f261:
.LFB25:
.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 w0, 513
movk w0, 0x403, lsl 16
str w0, [sp, 16]
str xzr, [sp, 24]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl strdup
str x0, [sp, 24]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 32]
ldr w0, [sp, 32]
str w0, [sp, 16]
ldrb w0, [sp, 16]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 17]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 18]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 19]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
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 .L78
bl __stack_chk_fail
.L78:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE25:
.size f261, .-f261
.align 2
.global f262
.type f262, %function
f262:
.LFB26:
.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 w0, 513
movk w0, 0x403, lsl 16
str w0, [sp, 16]
str xzr, [sp, 24]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl strdup
str x0, [sp, 24]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 32]
add x1, sp, 32
add x0, sp, 16
mov x2, -1
bl memcpy
ldrb w0, [sp, 16]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 17]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 18]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 19]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
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 .L81
bl __stack_chk_fail
.L81:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE26:
.size f262, .-f262
.align 2
.global f263
.type f263, %function
f263:
.LFB27:
.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
stp xzr, xzr, [sp, 32]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl strdup
str x0, [sp, 40]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 48]
ldrsw x0, [sp, 28]
ldr x1, [sp, 16]
add x0, x1, x0
ldrb w0, [x0]
and x2, x0, 255
add x1, sp, 48
add x0, sp, 32
bl memcpy
ldrb w0, [sp, 32]
cmp w0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 33]
cmp w0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 34]
cmp w0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 35]
cmp w0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 40]
cmp x0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
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 .L84
bl __stack_chk_fail
.L84:
mov w0, w1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE27:
.size f263, .-f263
.align 2
.global f27
.type f27, %function
f27:
.LFB28:
.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]
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, 513
movk w0, 0x403, lsl 16
str w0, [sp, 32]
str xzr, [sp, 40]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl strdup
str x0, [sp, 40]
ldrsw x0, [sp, 28]
add x1, sp, 32
mov w2, 5
strb w2, [x1, x0]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 48]
add x0, sp, 32
mov x1, x0
ldr w0, [sp, 48]
str w0, [x1]
ldrb w0, [sp, 32]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 33]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 34]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 35]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrsw x0, [sp, 28]
add x1, sp, 32
ldrb w0, [x1, x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
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 .L87
bl __stack_chk_fail
.L87:
mov w0, w1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE28:
.size f27, .-f27
.align 2
.global f28
.type f28, %function
f28:
.LFB29:
.cfi_startproc
stp x29, x30, [sp, -96]!
.cfi_def_cfa_offset 96
.cfi_offset 29, -96
.cfi_offset 30, -88
mov x29, sp
str w0, [sp, 28]
str w1, [sp, 24]
str w2, [sp, 20]
str w3, [sp, 16]
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, .LC3
add x0, x0, :lo12:.LC3
bl strdup
mov x2, x0
ldrsw x0, [sp, 28]
lsl x0, x0, 4
add x1, sp, 56
str x2, [x1, x0]
ldrsw x0, [sp, 20]
ldrsw x1, [sp, 24]
lsl x1, x1, 4
add x1, x1, 96
add x1, sp, x1
add x0, x1, x0
mov w1, 1
strb w1, [x0, -48]
add x0, sp, 48
add x0, x0, 16
str x0, [sp, 40]
ldr x1, [sp, 40]
ldrsw x0, [sp, 16]
mov w2, 2
strb w2, [x1, x0]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 80]
ldr x0, [sp, 40]
ldr w1, [sp, 80]
str w1, [x0]
ldrb w0, [sp, 48]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 49]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 50]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 51]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 64]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 65]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 66]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 67]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrsw x0, [sp, 28]
lsl x0, x0, 4
add x1, sp, 48
ldrb w0, [x1, x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrsw x0, [sp, 28]
lsl x0, x0, 4
add x1, sp, 49
ldrb w0, [x1, x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrsw x0, [sp, 28]
lsl x0, x0, 4
add x1, sp, 50
ldrb w0, [x1, x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrsw x0, [sp, 28]
lsl x0, x0, 4
add x1, sp, 51
ldrb w0, [x1, x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrsw x0, [sp, 20]
ldrsw x1, [sp, 24]
lsl x1, x1, 4
add x1, x1, 96
add x1, sp, x1
add x0, x1, x0
ldrb w0, [x0, -48]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x1, [sp, 40]
ldrsw x0, [sp, 16]
ldrb w0, [x1, x0]
cmp w0, 2
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
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 .L90
bl __stack_chk_fail
.L90:
mov w0, w1
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE29:
.size f28, .-f28
.align 2
.global f29
.type f29, %function
f29:
.LFB30:
.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, 44]
str w1, [sp, 40]
str w2, [sp, 36]
str w3, [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, 104]
mov x1, 0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl strdup
mov x2, x0
ldrsw x0, [sp, 44]
lsl x0, x0, 4
add x1, sp, 72
str x2, [x1, x0]
ldrsw x0, [sp, 36]
ldrsw x1, [sp, 40]
lsl x1, x1, 4
add x1, x1, 112
add x1, sp, x1
add x0, x1, x0
mov w1, 1
strb w1, [x0, -48]
add x1, sp, 64
ldrsw x0, [sp, 32]
lsl x0, x0, 4
add x0, x1, x0
str x0, [sp, 56]
ldr x1, [sp, 56]
ldrsw x0, [sp, 28]
mov w2, 2
strb w2, [x1, x0]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 96]
ldr x0, [sp, 56]
ldr w1, [sp, 96]
str w1, [x0]
ldrb w0, [sp, 64]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 65]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 66]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 67]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 80]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 81]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 82]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 83]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrsw x0, [sp, 44]
lsl x0, x0, 4
add x1, sp, 64
ldrb w0, [x1, x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrsw x0, [sp, 44]
lsl x0, x0, 4
add x1, sp, 65
ldrb w0, [x1, x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrsw x0, [sp, 44]
lsl x0, x0, 4
add x1, sp, 66
ldrb w0, [x1, x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrsw x0, [sp, 44]
lsl x0, x0, 4
add x1, sp, 67
ldrb w0, [x1, x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrsw x0, [sp, 36]
ldrsw x1, [sp, 40]
lsl x1, x1, 4
add x1, x1, 112
add x1, sp, x1
add x0, x1, x0
ldrb w0, [x0, -48]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x1, [sp, 56]
ldrsw x0, [sp, 28]
ldrb w0, [x1, x0]
cmp w0, 2
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
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 .L93
bl __stack_chk_fail
.L93:
mov w0, w1
ldp x29, x30, [sp], 112
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE30:
.size f29, .-f29
.align 2
.global f30
.type f30, %function
f30:
.LFB31:
.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 w0, 1
strb w0, [sp, 24]
mov w0, 2
strb w0, [sp, 25]
mov w0, 3
strb w0, [sp, 26]
mov w0, 4
strb w0, [sp, 27]
mov w0, 513
movk w0, 0x403, lsl 16
str w0, [sp, 32]
ldr w0, [sp, 32]
str w0, [sp, 24]
ldrb w0, [sp, 24]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 25]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 26]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 27]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 24]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
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 .L96
bl __stack_chk_fail
.L96:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE31:
.size f30, .-f30
.align 2
.global f31
.type f31, %function
f31:
.LFB32:
.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, .LC3
add x0, x0, :lo12:.LC3
bl strdup
str x0, [sp, 24]
mov w0, 1
strb w0, [sp, 16]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 32]
ldr w0, [sp, 32]
str w0, [sp, 16]
ldrb w0, [sp, 16]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 17]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 18]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 19]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 16]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
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 .L99
bl __stack_chk_fail
.L99:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE32:
.size f31, .-f31
.align 2
.global f32
.type f32, %function
f32:
.LFB33:
.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, .LC3
add x0, x0, :lo12:.LC3
bl strdup
str x0, [sp, 24]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 32]
ldr x0, [sp, 24]
ldr w1, [sp, 32]
str w1, [x0]
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
add x0, x0, 1
ldrb w0, [x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
add x0, x0, 2
ldrb w0, [x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
add x0, x0, 3
ldrb w0, [x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
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 .L102
bl __stack_chk_fail
.L102:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE33:
.size f32, .-f32
.align 2
.global f33
.type f33, %function
f33:
.LFB34:
.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, .LC2
add x0, x0, :lo12:.LC2
add x2, sp, 24
mov x3, x0
ldp x0, x1, [x3]
stp x0, x1, [x2]
ldr x0, [x3, 16]
str x0, [x2, 16]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl strdup
str x0, [sp, 40]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 48]
ldr w0, [sp, 24]
sxtw x0, w0
mov x1, x0
ldr w0, [sp, 48]
str w0, [x1]
ldr w0, [sp, 28]
cmp w0, 2
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr w0, [sp, 32]
cmp w0, 3
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr w0, [sp, 36]
cmp w0, 4
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr w0, [sp, 24]
sxtw x0, w0
ldrb w0, [x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr w0, [sp, 24]
sxtw x0, w0
add x0, x0, 1
ldrb w0, [x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr w0, [sp, 24]
sxtw x0, w0
add x0, x0, 2
ldrb w0, [x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr w0, [sp, 24]
sxtw x0, w0
add x0, x0, 3
ldrb w0, [x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 40]
cmp x0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
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 .L105
bl __stack_chk_fail
.L105:
mov w0, w1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE34:
.size f33, .-f33
.section .rodata
.align 3
.LC2:
.word 1
.word 2
.word 3
.word 4
.xword 0
.text
.align 2
.global f34
.type f34, %function
f34:
.LFB35:
.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]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 40]
mov x1, 0
ldr x0, [sp, 24]
mov w1, 3
strb w1, [x0, 16]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 32]
ldr x1, [sp, 24]
ldrsw x0, [sp, 20]
lsl x0, x0, 2
add x0, x1, x0
ldr w1, [sp, 32]
str w1, [x0]
ldr x0, [sp, 24]
ldr w0, [x0]
cmp w0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldr w0, [x0, 4]
cmp w0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldr w0, [x0, 8]
cmp w0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldr w0, [x0, 12]
cmp w0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrsw x1, [sp, 20]
ldr w0, [x0, x1, lsl 2]
cmp w0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 16]
cmp w0, 3
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
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 .L108
bl __stack_chk_fail
.L108:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE35:
.size f34, .-f34
.align 2
.global f35
.type f35, %function
f35:
.LFB36:
.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 w1, [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
mov w0, 513
movk w0, 0x403, lsl 16
str w0, [sp, 32]
str xzr, [sp, 40]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl strdup
str x0, [sp, 40]
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 48]
add x1, sp, 32
ldrsw x0, [sp, 28]
add x0, x1, x0
ldrsw x2, [sp, 24]
add x1, sp, 48
bl memcpy
ldrb w0, [sp, 32]
cmp w0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 33]
cmp w0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 34]
cmp w0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrb w0, [sp, 35]
cmp w0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldrsw x0, [sp, 28]
add x1, sp, 32
ldrb w0, [x1, x0]
cmp w0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 40]
cmp x0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
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 .L111
bl __stack_chk_fail
.L111:
mov w0, w1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE36:
.size f35, .-f35
.align 2
.global f36
.type f36, %function
f36:
.LFB37:
.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:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 40]
mov x1, 0
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 32]
ldr x0, [sp, 24]
strb wzr, [x0]
ldr x0, [sp, 24]
mov w1, 1
strb w1, [x0, 1]
ldr x0, [sp, 24]
mov w1, 2
strb w1, [x0, 2]
ldr x0, [sp, 24]
mov w1, 3
strb w1, [x0, 3]
ldr x0, [sp, 24]
mov w1, 10
str w1, [x0, 4]
ldr x0, [sp, 24]
sub x0, x0, #8
str x0, [sp, 24]
ldr x0, [sp, 24]
mov w1, 4
strb w1, [x0]
ldr x0, [sp, 24]
mov w1, 5
strb w1, [x0, 1]
ldr x0, [sp, 24]
mov w1, 6
strb w1, [x0, 2]
ldr x0, [sp, 24]
mov w1, 7
strb w1, [x0, 3]
ldr x0, [sp, 24]
mov w1, 11
str w1, [x0, 4]
ldr x0, [sp, 24]
ldr w1, [sp, 32]
str w1, [x0]
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 1]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 2]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 3]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldr w0, [x0, 4]
cmp w0, 11
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
add x0, x0, 8
str x0, [sp, 24]
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 0
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 1]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 2]
cmp w0, 2
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 3]
cmp w0, 3
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldr w0, [x0, 4]
cmp w0, 10
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
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 .L114
bl __stack_chk_fail
.L114:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE37:
.size f36, .-f36
.align 2
.global f37
.type f37, %function
f37:
.LFB38:
.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:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 40]
mov x1, 0
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 32]
ldr x0, [sp, 24]
strb wzr, [x0]
ldr x0, [sp, 24]
mov w1, 1
strb w1, [x0, 1]
ldr x0, [sp, 24]
mov w1, 2
strb w1, [x0, 2]
ldr x0, [sp, 24]
mov w1, 3
strb w1, [x0, 3]
ldr x0, [sp, 24]
mov w1, 10
str w1, [x0, 4]
ldr x0, [sp, 24]
sub x0, x0, #4
str x0, [sp, 24]
ldr x0, [sp, 24]
mov w1, 4
strb w1, [x0]
ldr x0, [sp, 24]
mov w1, 5
strb w1, [x0, 1]
ldr x0, [sp, 24]
mov w1, 6
strb w1, [x0, 2]
ldr x0, [sp, 24]
mov w1, 7
strb w1, [x0, 3]
ldr x0, [sp, 24]
mov w1, 11
str w1, [x0, 4]
ldr x0, [sp, 24]
ldr w1, [sp, 32]
str w1, [x0]
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 1]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 2]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 3]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldr w0, [x0, 4]
cmp w0, 11
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
add x0, x0, 4
str x0, [sp, 24]
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 11
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 1]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 2]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 3]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldr w0, [x0, 4]
cmp w0, 10
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
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 .L117
bl __stack_chk_fail
.L117:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE38:
.size f37, .-f37
.align 2
.global f38
.type f38, %function
f38:
.LFB39:
.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:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 40]
mov x1, 0
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 32]
ldr x0, [sp, 24]
strb wzr, [x0]
ldr x0, [sp, 24]
mov w1, 1
strb w1, [x0, 1]
ldr x0, [sp, 24]
mov w1, 2
strb w1, [x0, 2]
ldr x0, [sp, 24]
mov w1, 3
strb w1, [x0, 3]
ldr x0, [sp, 24]
mov w1, 10
str w1, [x0, 4]
ldr x0, [sp, 24]
sub x0, x0, #2
str x0, [sp, 24]
ldr x0, [sp, 24]
mov w1, 4
strb w1, [x0]
ldr x0, [sp, 24]
mov w1, 5
strb w1, [x0, 1]
ldr x0, [sp, 24]
mov w1, 6
strb w1, [x0, 2]
ldr x0, [sp, 24]
mov w1, 7
strb w1, [x0, 3]
ldr x0, [sp, 24]
mov w1, 11
str w1, [x0, 4]
ldr x0, [sp, 24]
ldr w1, [sp, 32]
str w1, [x0]
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 1]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 2]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 3]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldr w0, [x0, 4]
cmp w0, 11
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
add x0, x0, 2
str x0, [sp, 24]
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 1]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 2]
cmp w0, 11
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 3]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldr w0, [x0, 4]
cmp w0, 10
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
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 .L120
bl __stack_chk_fail
.L120:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE39:
.size f38, .-f38
.align 2
.global f39
.type f39, %function
f39:
.LFB40:
.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:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 40]
mov x1, 0
mov w0, 25185
movk w0, 0x6463, lsl 16
str w0, [sp, 32]
ldr x0, [sp, 24]
strb wzr, [x0, 4]
ldr x0, [sp, 24]
mov w1, 1
strb w1, [x0, 5]
ldr x0, [sp, 24]
mov w1, 2
strb w1, [x0, 6]
ldr x0, [sp, 24]
mov w1, 3
strb w1, [x0, 7]
ldr x0, [sp, 24]
mov w1, 10
str w1, [x0]
ldr x0, [sp, 24]
sub x0, x0, #2
str x0, [sp, 24]
ldr x0, [sp, 24]
mov w1, 4
strb w1, [x0, 4]
ldr x0, [sp, 24]
mov w1, 5
strb w1, [x0, 5]
ldr x0, [sp, 24]
mov w1, 6
strb w1, [x0, 6]
ldr x0, [sp, 24]
mov w1, 7
strb w1, [x0, 7]
ldr x0, [sp, 24]
mov w1, 11
str w1, [x0]
ldr x0, [sp, 24]
add x0, x0, 4
ldr w1, [sp, 32]
str w1, [x0]
ldr x0, [sp, 24]
ldrb w0, [x0, 4]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 5]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 6]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 7]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldr w0, [x0]
cmp w0, 11
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
add x0, x0, 2
str x0, [sp, 24]
ldr x0, [sp, 24]
ldrb w0, [x0, 4]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 5]
cmp w0, 1
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 6]
cmp w0, 2
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldrb w0, [x0, 7]
cmp w0, 3
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
ldr x0, [sp, 24]
ldr w0, [x0]
cmp w0, 10
cset w0, eq
and w0, w0, 255
bl clang_analyzer_eval
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 .L123
bl __stack_chk_fail
.L123:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE40:
.size f39, .-f39
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "%d:%d\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.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
mov x0, 0
bl time
bl srand
add x0, sp, 48
movi v0.4s, 0
stp q0, q0, [x0]
str q0, [x0, 32]
fmov w1, s0
str w1, [x0, 48]
str wzr, [sp, 32]
b .L2
.L3:
bl rand
mov w2, w0
mov w0, 43691
movk w0, 0x2aaa, lsl 16
smull x0, w2, w0
lsr x1, x0, 32
asr w0, w2, 31
sub w1, w1, w0
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
lsl w0, w0, 1
sub w1, w2, w0
add w0, w1, 1
str w0, [sp, 36]
bl rand
mov w2, w0
mov w0, 43691
movk w0, 0x2aaa, lsl 16
smull x0, w2, w0
lsr x1, x0, 32
asr w0, w2, 31
sub w1, w1, w0
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
lsl w0, w0, 1
sub w1, w2, w0
add w0, w1, 1
str w0, [sp, 40]
ldr w1, [sp, 36]
ldr w0, [sp, 40]
add w0, w1, w0
str w0, [sp, 44]
ldrsw x0, [sp, 44]
lsl x0, x0, 2
add x1, sp, 48
ldr w0, [x1, x0]
add w2, w0, 1
ldrsw x0, [sp, 44]
lsl x0, x0, 2
add x1, sp, 48
str w2, [x1, x0]
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L2:
ldr w0, [sp, 32]
cmp w0, 3599
ble .L3
mov w0, 2
str w0, [sp, 32]
b .L4
.L5:
ldrsw x0, [sp, 32]
lsl x0, x0, 2
add x1, sp, 48
ldr w0, [x1, x0]
mov w2, w0
ldr w1, [sp, 32]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L4:
ldr w0, [sp, 32]
cmp w0, 12
ble .L5
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 .L7
bl __stack_chk_fail
.L7:
mov w0, w1
ldp x29, x30, [sp], 112
.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 main
.type main, %function
main:
.LFB0:
.cfi_startproc
sub sp, sp, #144
.cfi_def_cfa_offset 144
mov x0, 3072
str x0, [sp, 40]
mov x0, 3080
str x0, [sp, 48]
mov x0, 3088
str x0, [sp, 56]
mov x0, 3104
str x0, [sp, 64]
mov x0, 3120
str x0, [sp, 72]
mov x0, 3136
str x0, [sp, 80]
mov x0, 3152
str x0, [sp, 88]
mov x0, 3192
str x0, [sp, 96]
mov x0, 3232
str x0, [sp, 104]
mov x0, 3272
str x0, [sp, 112]
mov x0, 3276
str x0, [sp, 120]
mov x0, 3292
str x0, [sp, 128]
mov x0, 3308
str x0, [sp, 136]
nop
.L2:
ldr x0, [sp, 136]
ldr w0, [x0]
cmp w0, 0
beq .L2
ldr x0, [sp, 112]
ldr w0, [x0]
cmp w0, 10
bne .L3
.L4:
b .L4
.L3:
str wzr, [sp, 8]
b .L5
.L13:
ldr x0, [sp, 120]
add x0, x0, 8
ldr w1, [sp, 8]
add w1, w1, 1
str w1, [x0]
ldr w0, [sp, 8]
lsl x0, x0, 2
ldr x1, [sp, 128]
add x0, x1, x0
mov w1, 2
str w1, [x0]
.L12:
ldr w0, [sp, 8]
lsl x0, x0, 2
ldr x1, [sp, 128]
add x0, x1, x0
ldr w0, [x0]
cmp w0, 2
bne .L39
mov w0, 1
str w0, [sp, 4]
str wzr, [sp, 12]
b .L8
.L10:
ldr w0, [sp, 12]
cmp w0, 2
beq .L9
ldr w0, [sp, 12]
lsl x0, x0, 2
ldr x1, [sp, 120]
add x0, x1, x0
ldr w1, [x0]
ldr w0, [sp, 8]
add w0, w0, 1
cmp w1, w0
bcc .L9
str wzr, [sp, 4]
.L9:
ldr w0, [sp, 12]
add w0, w0, 1
str w0, [sp, 12]
.L8:
ldr w0, [sp, 12]
cmp w0, 3
bls .L10
ldr w0, [sp, 4]
cmp w0, 1
beq .L40
b .L12
.L39:
nop
b .L7
.L40:
nop
.L7:
ldr w0, [sp, 8]
add w0, w0, 1
str w0, [sp, 8]
.L5:
ldr w0, [sp, 8]
cmp w0, 2
bls .L13
ldr x0, [sp, 112]
ldr w0, [x0]
uxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 88]
add x0, x1, x0
ldr w0, [x0]
str w0, [sp, 16]
ldr x0, [sp, 112]
ldr w0, [x0]
uxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 96]
add x0, x1, x0
ldr w0, [x0]
str w0, [sp, 20]
ldr x0, [sp, 112]
ldr w0, [x0]
uxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 104]
add x0, x1, x0
ldr w0, [x0]
str w0, [sp, 24]
ldr x0, [sp, 112]
ldr w0, [x0]
cmp w0, 10
cset w0, eq
and w0, w0, 255
str w0, [sp, 28]
ldr w0, [sp, 28]
cmp w0, 0
bne .L14
ldr x0, [sp, 112]
ldr w0, [x0]
add w1, w0, 1
ldr x0, [sp, 112]
str w1, [x0]
.L14:
ldr x0, [sp, 120]
add x0, x0, 8
str wzr, [x0]
ldr w0, [sp, 28]
cmp w0, 1
beq .L41
str wzr, [sp, 8]
b .L17
.L25:
ldr x0, [sp, 56]
add x0, x0, 8
ldr w1, [sp, 8]
add w1, w1, 1
str w1, [x0]
ldr w0, [sp, 8]
lsl x0, x0, 2
ldr x1, [sp, 72]
add x0, x1, x0
mov w1, 2
str w1, [x0]
.L24:
ldr w0, [sp, 8]
lsl x0, x0, 2
ldr x1, [sp, 72]
add x0, x1, x0
ldr w0, [x0]
cmp w0, 2
bne .L42
mov w0, 1
str w0, [sp, 4]
str wzr, [sp, 12]
b .L20
.L22:
ldr w0, [sp, 12]
cmp w0, 2
beq .L21
ldr w0, [sp, 12]
lsl x0, x0, 2
ldr x1, [sp, 56]
add x0, x1, x0
ldr w1, [x0]
ldr w0, [sp, 8]
add w0, w0, 1
cmp w1, w0
bcc .L21
str wzr, [sp, 4]
.L21:
ldr w0, [sp, 12]
add w0, w0, 1
str w0, [sp, 12]
.L20:
ldr w0, [sp, 12]
cmp w0, 3
bls .L22
ldr w0, [sp, 4]
cmp w0, 1
beq .L43
b .L24
.L42:
nop
b .L19
.L43:
nop
.L19:
ldr w0, [sp, 8]
add w0, w0, 1
str w0, [sp, 8]
.L17:
ldr w0, [sp, 8]
cmp w0, 2
bls .L25
ldr w0, [sp, 16]
ldr w2, [sp, 20]
ldr w1, [sp, 20]
cmp w2, w0
csel w0, w1, w0, cs
str w0, [sp, 32]
nop
.L26:
ldr w0, [sp, 32]
lsl x0, x0, 2
ldr x1, [sp, 48]
add x0, x1, x0
ldr w0, [x0]
cmp w0, 1
beq .L26
ldr w0, [sp, 32]
lsl x0, x0, 2
ldr x1, [sp, 48]
add x0, x1, x0
mov w1, 1
str w1, [x0]
ldr x0, [sp, 56]
add x0, x0, 8
str wzr, [x0]
str wzr, [sp, 8]
b .L27
.L35:
ldr x0, [sp, 64]
add x0, x0, 8
ldr w1, [sp, 8]
add w1, w1, 1
str w1, [x0]
ldr w0, [sp, 8]
lsl x0, x0, 2
ldr x1, [sp, 80]
add x0, x1, x0
mov w1, 2
str w1, [x0]
.L34:
ldr w0, [sp, 8]
lsl x0, x0, 2
ldr x1, [sp, 80]
add x0, x1, x0
ldr w0, [x0]
cmp w0, 2
bne .L44
mov w0, 1
str w0, [sp, 4]
str wzr, [sp, 12]
b .L30
.L32:
ldr w0, [sp, 12]
cmp w0, 2
beq .L31
ldr w0, [sp, 12]
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
ldr w1, [x0]
ldr w0, [sp, 8]
add w0, w0, 1
cmp w1, w0
bcc .L31
str wzr, [sp, 4]
.L31:
ldr w0, [sp, 12]
add w0, w0, 1
str w0, [sp, 12]
.L30:
ldr w0, [sp, 12]
cmp w0, 3
bls .L32
ldr w0, [sp, 4]
cmp w0, 1
beq .L45
b .L34
.L44:
nop
b .L29
.L45:
nop
.L29:
ldr w0, [sp, 8]
add w0, w0, 1
str w0, [sp, 8]
.L27:
ldr w0, [sp, 8]
cmp w0, 2
bls .L35
ldr w0, [sp, 20]
ldr w2, [sp, 16]
ldr w1, [sp, 16]
cmp w2, w0
csel w0, w1, w0, ls
str w0, [sp, 36]
nop
.L36:
ldr w0, [sp, 36]
lsl x0, x0, 2
ldr x1, [sp, 48]
add x0, x1, x0
ldr w0, [x0]
cmp w0, 1
beq .L36
ldr w0, [sp, 36]
lsl x0, x0, 2
ldr x1, [sp, 48]
add x0, x1, x0
mov w1, 1
str w1, [x0]
ldr x0, [sp, 64]
add x0, x0, 8
str wzr, [x0]
ldr w0, [sp, 16]
lsl x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
ldr w2, [x0]
ldr w0, [sp, 16]
lsl x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
ldr w1, [sp, 24]
sub w1, w2, w1
str w1, [x0]
ldr w0, [sp, 20]
lsl x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
ldr w2, [x0]
ldr w0, [sp, 20]
lsl x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
ldr w1, [sp, 24]
add w1, w2, w1
str w1, [x0]
ldr w0, [sp, 32]
lsl x0, x0, 2
ldr x1, [sp, 48]
add x0, x1, x0
str wzr, [x0]
ldr w0, [sp, 36]
lsl x0, x0, 2
ldr x1, [sp, 48]
add x0, x1, x0
str wzr, [x0]
b .L3
.L41:
nop
ldr x0, [sp, 40]
add x0, x0, 4
ldr w0, [x0]
add sp, sp, 144
.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 gray_to_rgb_process
.type gray_to_rgb_process, %function
gray_to_rgb_process:
.LFB6:
.cfi_startproc
sub sp, sp, #80
.cfi_def_cfa_offset 80
str x0, [sp, 40]
str x1, [sp, 32]
str w2, [sp, 28]
str x3, [sp, 16]
str w4, [sp, 24]
str x5, [sp, 8]
ldr w0, [sp, 28]
cmp w0, 1
beq .L2
mov w0, 0
b .L3
.L2:
ldr x0, [sp, 32]
ldr w1, [x0]
ldr w0, [sp, 24]
mov w2, 21846
movk w2, 0x5555, lsl 16
smull x2, w0, w2
lsr x2, x2, 32
asr w0, w0, 31
sub w0, w2, w0
cmp w1, w0
beq .L4
mov w0, 0
b .L3
.L4:
ldr x0, [sp, 40]
ldr x0, [x0]
str x0, [sp, 64]
ldr x0, [sp, 16]
str x0, [sp, 72]
ldr x0, [sp, 64]
cmp x0, 0
beq .L5
ldr x0, [sp, 72]
cmp x0, 0
bne .L6
.L5:
mov w0, 0
b .L3
.L6:
str wzr, [sp, 60]
b .L7
.L8:
ldr x0, [sp, 72]
add x1, x0, 1
str x1, [sp, 72]
ldr x1, [sp, 64]
ldrb w1, [x1]
strb w1, [x0]
ldr x0, [sp, 72]
add x1, x0, 1
str x1, [sp, 72]
ldr x1, [sp, 64]
ldrb w1, [x1]
strb w1, [x0]
ldr x1, [sp, 64]
add x0, x1, 1
str x0, [sp, 64]
ldr x0, [sp, 72]
add x2, x0, 1
str x2, [sp, 72]
ldrb w1, [x1]
strb w1, [x0]
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L7:
ldr x0, [sp, 32]
ldr w0, [x0]
ldr w1, [sp, 60]
cmp w1, w0
blt .L8
mov w0, 1
.L3:
add sp, sp, 80
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size gray_to_rgb_process, .-gray_to_rgb_process
.align 2
.global rgba_to_rgb_process
.type rgba_to_rgb_process, %function
rgba_to_rgb_process:
.LFB7:
.cfi_startproc
sub sp, sp, #80
.cfi_def_cfa_offset 80
str x0, [sp, 40]
str x1, [sp, 32]
str w2, [sp, 28]
str x3, [sp, 16]
str w4, [sp, 24]
str x5, [sp, 8]
ldr w0, [sp, 28]
cmp w0, 1
beq .L10
mov w0, 0
b .L11
.L10:
ldr x0, [sp, 32]
ldr w0, [x0]
add w1, w0, 3
cmp w0, 0
csel w0, w1, w0, lt
asr w0, w0, 2
mov w2, w0
ldr w0, [sp, 24]
mov w1, 21846
movk w1, 0x5555, lsl 16
smull x1, w0, w1
lsr x1, x1, 32
asr w0, w0, 31
sub w0, w1, w0
cmp w2, w0
beq .L12
mov w0, 0
b .L11
.L12:
ldr x0, [sp, 40]
ldr x0, [x0]
str x0, [sp, 64]
ldr x0, [sp, 16]
str x0, [sp, 72]
ldr x0, [sp, 64]
cmp x0, 0
beq .L13
ldr x0, [sp, 72]
cmp x0, 0
bne .L14
.L13:
mov w0, 0
b .L11
.L14:
str wzr, [sp, 60]
b .L15
.L16:
ldr x1, [sp, 64]
add x0, x1, 1
str x0, [sp, 64]
ldr x0, [sp, 72]
add x2, x0, 1
str x2, [sp, 72]
ldrb w1, [x1]
strb w1, [x0]
ldr x1, [sp, 64]
add x0, x1, 1
str x0, [sp, 64]
ldr x0, [sp, 72]
add x2, x0, 1
str x2, [sp, 72]
ldrb w1, [x1]
strb w1, [x0]
ldr x1, [sp, 64]
add x0, x1, 1
str x0, [sp, 64]
ldr x0, [sp, 72]
add x2, x0, 1
str x2, [sp, 72]
ldrb w1, [x1]
strb w1, [x0]
ldr x0, [sp, 64]
add x0, x0, 1
str x0, [sp, 64]
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L15:
ldr x0, [sp, 32]
ldr w0, [x0]
add w1, w0, 3
cmp w0, 0
csel w0, w1, w0, lt
asr w0, w0, 2
mov w1, w0
ldr w0, [sp, 60]
cmp w0, w1
blt .L16
mov w0, 1
.L11:
add sp, sp, 80
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size rgba_to_rgb_process, .-rgba_to_rgb_process
.align 2
.global gray_to_rgba_process
.type gray_to_rgba_process, %function
gray_to_rgba_process:
.LFB8:
.cfi_startproc
sub sp, sp, #80
.cfi_def_cfa_offset 80
str x0, [sp, 40]
str x1, [sp, 32]
str w2, [sp, 28]
str x3, [sp, 16]
str w4, [sp, 24]
str x5, [sp, 8]
ldr w0, [sp, 28]
cmp w0, 1
beq .L18
mov w0, 0
b .L19
.L18:
ldr x0, [sp, 32]
ldr w1, [x0]
ldr w0, [sp, 24]
add w2, w0, 3
cmp w0, 0
csel w0, w2, w0, lt
asr w0, w0, 2
cmp w1, w0
beq .L20
mov w0, 0
b .L19
.L20:
ldr x0, [sp, 40]
ldr x0, [x0]
str x0, [sp, 64]
ldr x0, [sp, 16]
str x0, [sp, 72]
ldr x0, [sp, 64]
cmp x0, 0
beq .L21
ldr x0, [sp, 72]
cmp x0, 0
bne .L22
.L21:
mov w0, 0
b .L19
.L22:
str wzr, [sp, 60]
b .L23
.L24:
ldr x0, [sp, 72]
add x1, x0, 1
str x1, [sp, 72]
ldr x1, [sp, 64]
ldrb w1, [x1]
strb w1, [x0]
ldr x0, [sp, 72]
add x1, x0, 1
str x1, [sp, 72]
ldr x1, [sp, 64]
ldrb w1, [x1]
strb w1, [x0]
ldr x1, [sp, 64]
add x0, x1, 1
str x0, [sp, 64]
ldr x0, [sp, 72]
add x2, x0, 1
str x2, [sp, 72]
ldrb w1, [x1]
strb w1, [x0]
ldr x0, [sp, 72]
add x1, x0, 1
str x1, [sp, 72]
mov w1, -1
strb w1, [x0]
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L23:
ldr x0, [sp, 32]
ldr w0, [x0]
ldr w1, [sp, 60]
cmp w1, w0
blt .L24
mov w0, 1
.L19:
add sp, sp, 80
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size gray_to_rgba_process, .-gray_to_rgba_process
.align 2
.global rgb_to_rgba_process
.type rgb_to_rgba_process, %function
rgb_to_rgba_process:
.LFB9:
.cfi_startproc
sub sp, sp, #80
.cfi_def_cfa_offset 80
str x0, [sp, 40]
str x1, [sp, 32]
str w2, [sp, 28]
str x3, [sp, 16]
str w4, [sp, 24]
str x5, [sp, 8]
ldr w0, [sp, 28]
cmp w0, 1
beq .L26
mov w0, 0
b .L27
.L26:
ldr x0, [sp, 32]
ldr w0, [x0]
mov w1, 21846
movk w1, 0x5555, lsl 16
smull x1, w0, w1
lsr x1, x1, 32
asr w0, w0, 31
sub w1, w1, w0
ldr w0, [sp, 24]
add w2, w0, 3
cmp w0, 0
csel w0, w2, w0, lt
asr w0, w0, 2
cmp w1, w0
beq .L28
mov w0, 0
b .L27
.L28:
ldr x0, [sp, 40]
ldr x0, [x0]
str x0, [sp, 64]
ldr x0, [sp, 16]
str x0, [sp, 72]
ldr x0, [sp, 64]
cmp x0, 0
beq .L29
ldr x0, [sp, 72]
cmp x0, 0
bne .L30
.L29:
mov w0, 0
b .L27
.L30:
str wzr, [sp, 60]
b .L31
.L32:
ldr x1, [sp, 64]
add x0, x1, 1
str x0, [sp, 64]
ldr x0, [sp, 72]
add x2, x0, 1
str x2, [sp, 72]
ldrb w1, [x1]
strb w1, [x0]
ldr x1, [sp, 64]
add x0, x1, 1
str x0, [sp, 64]
ldr x0, [sp, 72]
add x2, x0, 1
str x2, [sp, 72]
ldrb w1, [x1]
strb w1, [x0]
ldr x1, [sp, 64]
add x0, x1, 1
str x0, [sp, 64]
ldr x0, [sp, 72]
add x2, x0, 1
str x2, [sp, 72]
ldrb w1, [x1]
strb w1, [x0]
ldr x0, [sp, 72]
add x1, x0, 1
str x1, [sp, 72]
mov w1, -1
strb w1, [x0]
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L31:
ldr w0, [sp, 24]
add w1, w0, 3
cmp w0, 0
csel w0, w1, w0, lt
asr w0, w0, 2
mov w1, w0
ldr w0, [sp, 60]
cmp w0, w1
blt .L32
mov w0, 1
.L27:
add sp, sp, 80
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size rgb_to_rgba_process, .-rgb_to_rgba_process
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "%lf"
.align 3
.LC1:
.string "A AREA DO TRIANGULO E = %0.2f\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
add x0, sp, 24
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
add x0, sp, 32
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
add x0, sp, 40
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
ldr d1, [sp, 24]
ldr d0, [sp, 32]
fadd d1, d1, d0
ldr d0, [sp, 40]
fadd d1, d1, d0
fmov d0, 2.0e+0
fdiv d0, d1, d0
str d0, [sp, 48]
ldr d0, [sp, 24]
ldr d1, [sp, 48]
fsub d1, d1, d0
ldr d0, [sp, 48]
fmul d1, d1, d0
ldr d0, [sp, 32]
ldr d2, [sp, 48]
fsub d0, d2, d0
fmul d1, d1, d0
ldr d0, [sp, 40]
ldr d2, [sp, 48]
fsub d0, d2, d0
fmul d0, d1, d0
str d0, [sp, 56]
ldr d0, [sp, 56]
bl sqrt
str d0, [sp, 64]
ldr d0, [sp, 64]
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, 72]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L3
bl __stack_chk_fail
.L3:
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
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "program.c"
.align 3
.LC1:
.string "2 <= telephone_key && telephone_key <= 9"
.align 3
.LC2:
.string "1 <= place && place <= 3"
.text
.align 2
.global get_char_key
.type get_char_key, %function
get_char_key:
.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 w1, [sp, 24]
ldr w0, [sp, 28]
cmp w0, 1
ble .L2
ldr w0, [sp, 28]
cmp w0, 9
ble .L7
.L2:
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 54
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L7:
ldr w0, [sp, 24]
cmp w0, 0
ble .L4
ldr w0, [sp, 24]
cmp w0, 3
ble .L8
.L4:
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 55
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl __assert_fail
.L8:
ldr w0, [sp, 28]
sub w0, w0, #2
and w0, w0, 255
mov w1, w0
mov w0, w1
ubfiz w0, w0, 1, 7
add w0, w0, w1
and w1, w0, 255
ldr w0, [sp, 24]
and w0, w0, 255
add w0, w1, w0
and w0, w0, 255
add w0, w0, 96
and w0, w0, 255
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size get_char_key, .-get_char_key
.align 2
.type print_words_aux, %function
print_words_aux:
.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 x19, [sp, 16]
.cfi_offset 19, -64
str x0, [sp, 56]
str x1, [sp, 48]
str x2, [sp, 40]
str x3, [sp, 32]
ldr x0, [sp, 48]
cmp x0, 7
bne .L10
ldr x1, [sp, 40]
ldr x0, [sp, 32]
add x0, x1, x0
strb wzr, [x0]
ldr x0, [sp, 40]
bl puts
b .L9
.L10:
ldr x0, [sp, 48]
lsl x0, x0, 2
ldr x1, [sp, 56]
add x0, x1, x0
ldr w0, [x0]
cmp w0, 1
bgt .L12
ldr x0, [sp, 48]
lsl x0, x0, 2
ldr x1, [sp, 56]
add x0, x1, x0
ldr w0, [x0]
and w1, w0, 255
ldr x2, [sp, 40]
ldr x0, [sp, 32]
add x0, x2, x0
add w1, w1, 48
and w1, w1, 255
strb w1, [x0]
ldr x0, [sp, 48]
add x1, x0, 1
ldr x0, [sp, 32]
add x0, x0, 1
mov x3, x0
ldr x2, [sp, 40]
ldr x0, [sp, 56]
bl print_words_aux
b .L9
.L12:
mov x0, 1
str x0, [sp, 72]
b .L13
.L14:
ldr x0, [sp, 48]
lsl x0, x0, 2
ldr x1, [sp, 56]
add x0, x1, x0
ldr w2, [x0]
ldr x0, [sp, 72]
mov w3, w0
ldr x1, [sp, 40]
ldr x0, [sp, 32]
add x19, x1, x0
mov w1, w3
mov w0, w2
bl get_char_key
and w0, w0, 255
strb w0, [x19]
ldr x0, [sp, 48]
add x1, x0, 1
ldr x0, [sp, 32]
add x0, x0, 1
mov x3, x0
ldr x2, [sp, 40]
ldr x0, [sp, 56]
bl print_words_aux
ldr x0, [sp, 72]
add x0, x0, 1
str x0, [sp, 72]
.L13:
ldr x0, [sp, 72]
cmp x0, 3
bls .L14
.L9:
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
.LFE1:
.size print_words_aux, .-print_words_aux
.align 2
.global print_words
.type print_words, %function
print_words:
.LFB2:
.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:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 40]
mov x1, 0
add x0, sp, 32
mov x3, 0
mov x2, x0
mov x1, 0
ldr x0, [sp, 24]
bl print_words_aux
nop
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 .L16
bl __stack_chk_fail
.L16:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size print_words, .-print_words
.align 2
.type read_number, %function
read_number:
.LFB3:
.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]
nop
.L18:
bl __ctype_b_loc
ldr x19, [x0]
bl getchar
str w0, [sp, 52]
ldrsw x0, [sp, 52]
lsl x0, x0, 1
add x0, x19, x0
ldrh w0, [x0]
and w0, w0, 8192
cmp w0, 0
bne .L18
adrp x0, :got:stdin
ldr x0, [x0, #:got_lo12:stdin]
ldr x0, [x0]
mov x1, x0
ldr w0, [sp, 52]
bl ungetc
str xzr, [sp, 56]
b .L19
.L23:
bl getchar
str w0, [sp, 52]
ldr w0, [sp, 52]
cmp w0, 47
ble .L20
ldr w0, [sp, 52]
cmp w0, 57
ble .L21
.L20:
mov w0, 0
b .L22
.L21:
ldr x0, [sp, 56]
lsl x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
ldr w1, [sp, 52]
sub w1, w1, #48
str w1, [x0]
ldr x0, [sp, 56]
add x0, x0, 1
str x0, [sp, 56]
.L19:
ldr x0, [sp, 56]
cmp x0, 6
bls .L23
mov w0, 1
.L22:
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
.LFE3:
.size read_number, .-read_number
.section .rodata
.align 3
.LC3:
.string "Enter 7 consecutive digits representing a US phone number (without area code)"
.align 3
.LC4:
.string "> "
.text
.align 2
.global main
.type main, %function
main:
.LFB4:
.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, .LC3
add x0, x0, :lo12:.LC3
bl puts
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
b .L25
.L26:
add x0, sp, 24
bl print_words
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
.L25:
add x0, sp, 24
bl read_number
cmp w0, 0
bne .L26
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 .L28
bl __stack_chk_fail
.L28:
mov w0, w1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE4:
.size main, .-main
.section .rodata
.align 3
.type __PRETTY_FUNCTION__.0, %object
.size __PRETTY_FUNCTION__.0, 13
__PRETTY_FUNCTION__.0:
.string "get_char_key"
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "[0;31m"
.text
.align 2
.global set_font_red
.type set_font_red, %function
set_font_red:
.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, .LC0
add x0, x0, :lo12:.LC0
bl printf
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size set_font_red, .-set_font_red
.section .rodata
.align 3
.LC1:
.string "[1;31m"
.text
.align 2
.global set_font_red_b
.type set_font_red_b, %function
set_font_red_b:
.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, .LC1
add x0, x0, :lo12:.LC1
bl printf
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size set_font_red_b, .-set_font_red_b
.section .rodata
.align 3
.LC2:
.string "[0;32m"
.text
.align 2
.global set_font_green
.type set_font_green, %function
set_font_green:
.LFB2:
.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, .LC2
add x0, x0, :lo12:.LC2
bl printf
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size set_font_green, .-set_font_green
.section .rodata
.align 3
.LC3:
.string "[1;32m"
.text
.align 2
.global set_font_green_b
.type set_font_green_b, %function
set_font_green_b:
.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, .LC3
add x0, x0, :lo12:.LC3
bl printf
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE3:
.size set_font_green_b, .-set_font_green_b
.section .rodata
.align 3
.LC4:
.string "[0;33m"
.text
.align 2
.global set_font_yellow
.type set_font_yellow, %function
set_font_yellow:
.LFB4:
.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, .LC4
add x0, x0, :lo12:.LC4
bl printf
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE4:
.size set_font_yellow, .-set_font_yellow
.section .rodata
.align 3
.LC5:
.string "[01;33m"
.text
.align 2
.global set_font_yellow_b
.type set_font_yellow_b, %function
set_font_yellow_b:
.LFB5:
.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 printf
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE5:
.size set_font_yellow_b, .-set_font_yellow_b
.section .rodata
.align 3
.LC6:
.string "[0;34m"
.text
.align 2
.global set_font_blue
.type set_font_blue, %function
set_font_blue:
.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, .LC6
add x0, x0, :lo12:.LC6
bl printf
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size set_font_blue, .-set_font_blue
.section .rodata
.align 3
.LC7:
.string "[1;34m"
.text
.align 2
.global set_font_blue_b
.type set_font_blue_b, %function
set_font_blue_b:
.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, .LC7
add x0, x0, :lo12:.LC7
bl printf
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size set_font_blue_b, .-set_font_blue_b
.section .rodata
.align 3
.LC8:
.string "[0;35m"
.text
.align 2
.global set_font_magenta
.type set_font_magenta, %function
set_font_magenta:
.LFB8:
.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, .LC8
add x0, x0, :lo12:.LC8
bl printf
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size set_font_magenta, .-set_font_magenta
.section .rodata
.align 3
.LC9:
.string "[1;35m"
.text
.align 2
.global set_font_magenta_b
.type set_font_magenta_b, %function
set_font_magenta_b:
.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, .LC9
add x0, x0, :lo12:.LC9
bl printf
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size set_font_magenta_b, .-set_font_magenta_b
.section .rodata
.align 3
.LC10:
.string "[0;36m"
.text
.align 2
.global set_font_cyan
.type set_font_cyan, %function
set_font_cyan:
.LFB10:
.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, .LC10
add x0, x0, :lo12:.LC10
bl printf
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size set_font_cyan, .-set_font_cyan
.section .rodata
.align 3
.LC11:
.string "[1;36m"
.text
.align 2
.global set_font_cyan_b
.type set_font_cyan_b, %function
set_font_cyan_b:
.LFB11:
.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, .LC11
add x0, x0, :lo12:.LC11
bl printf
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size set_font_cyan_b, .-set_font_cyan_b
.section .rodata
.align 3
.LC12:
.string "[0m"
.text
.align 2
.global reset_font_color
.type reset_font_color, %function
reset_font_color:
.LFB12:
.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, .LC12
add x0, x0, :lo12:.LC12
bl printf
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE12:
.size reset_font_color, .-reset_font_color
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global ROMlib_rcsid_genrand_h
.data
.align 3
.type ROMlib_rcsid_genrand_h, %object
.size ROMlib_rcsid_genrand_h, 47
ROMlib_rcsid_genrand_h:
.string "$Id: genrand_h.c 86 2005-05-25 00:47:12Z ctm $"
.section .rodata
.align 3
.LC0:
.string "#define STOPBITS 0x%04x\n"
.align 3
.LC1:
.string "#define RAND%02d 0x%08x\n"
.align 3
.LC2:
.string "#define STOP%02d 0x%08x\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
mov w1, 6176
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
str wzr, [sp, 20]
b .L2
.L3:
bl random
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
.L2:
ldr w1, [sp, 20]
mov w0, 5407
cmp w1, w0
ble .L3
str wzr, [sp, 20]
b .L4
.L5:
bl random
str x0, [sp, 24]
ldr x1, [sp, 24]
mov x0, 6176
and x0, x1, x0
cmp x0, 0
beq .L5
ldr x2, [sp, 24]
ldr w1, [sp, 20]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
.L4:
ldr w0, [sp, 20]
cmp w0, 99
ble .L5
str wzr, [sp, 20]
b .L6
.L7:
bl random
str x0, [sp, 24]
ldr x1, [sp, 24]
mov x0, -6177
and x0, x1, x0
mov x2, x0
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]
.L6:
ldr w0, [sp, 20]
cmp w0, 27
ble .L7
mov w0, 0
bl exit
.cfi_endproc
.LFE6:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
mov w0, 5
str w0, [sp, 8]
mov w0, 2
str w0, [sp, 12]
ldr w1, [sp, 8]
ldr w0, [sp, 12]
mul w0, w1, w0
str w0, [sp, 8]
ldr w0, [sp, 8]
add sp, sp, 16
.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 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, 3
bl sleep
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 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 w1, 4
mov w0, 62719
movk w0, 0x7fef, lsl 16
bl __builtin_bfin_shl_fr1x32
sxtw x0, w0
str x0, [sp, 24]
ldr x1, [sp, 24]
mov x0, 2147483647
cmp x1, x0
beq .L2
bl abort
.L2:
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
.global _ini
.bss
.align 3
.type _ini, %object
.size _ini, 8
_ini:
.zero 8
.global _fim
.align 3
.type _fim, %object
.size _fim, 8
_fim:
.zero 8
.text
.align 2
.global converter
.type converter, %function
converter:
.LFB6:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str wzr, [sp, 24]
str wzr, [sp, 28]
b .L2
.L3:
ldr w0, [sp, 24]
lsl w0, w0, 8
ldrsw x1, [sp, 28]
ldr x2, [sp, 8]
add x1, x2, x1
ldrb w1, [x1]
add w0, w0, w1
str w0, [sp, 24]
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L2:
ldrsw x0, [sp, 28]
ldr x1, [sp, 8]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 0
bne .L3
ldr w0, [sp, 24]
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size converter, .-converter
.section .rodata
.align 3
.LC0:
.string "r"
.align 3
.LC1:
.string "%s\n"
.text
.align 2
.global ler_strings
.type ler_strings, %function
ler_strings:
.LFB7:
.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
str x0, [sp, 40]
str w1, [sp, 36]
adrp x0, .LC0
add x1, x0, :lo12:.LC0
ldr x0, [sp, 40]
bl fopen
str x0, [sp, 64]
ldrsw x0, [sp, 36]
lsl x0, x0, 3
bl malloc
str x0, [sp, 72]
str wzr, [sp, 60]
b .L6
.L7:
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x19, x1, x0
mov x0, 20
bl malloc
str x0, [x19]
ldrsw x0, [sp, 60]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
ldr x0, [x0]
mov x2, x0
adrp x0, .LC1
add x1, x0, :lo12:.LC1
ldr x0, [sp, 64]
bl __isoc99_fscanf
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L6:
ldr x0, [sp, 64]
bl feof
cmp w0, 0
beq .L7
ldr x0, [sp, 64]
bl fclose
ldr x0, [sp, 72]
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
.LFE7:
.size ler_strings, .-ler_strings
.align 2
.global inicia_tempo
.type inicia_tempo, %function
inicia_tempo:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
mov x0, 0
bl time
bl srand
bl clock
mov x1, x0
adrp x0, _ini
add x0, x0, :lo12:_ini
str x1, [x0]
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size inicia_tempo, .-inicia_tempo
.align 2
.global finaliza_tempo
.type finaliza_tempo, %function
finaliza_tempo:
.LFB9:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
bl clock
mov x1, x0
adrp x0, _fim
add x0, x0, :lo12:_fim
str x1, [x0]
adrp x0, _fim
add x0, x0, :lo12:_fim
ldr x1, [x0]
adrp x0, _ini
add x0, x0, :lo12:_ini
ldr x0, [x0]
sub x0, x1, x0
fmov d0, x0
scvtf d0, d0
mov x0, 145685290680320
movk x0, 0x412e, lsl 48
fmov d1, x0
fdiv d0, d0, d1
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size finaliza_tempo, .-finaliza_tempo
.align 2
.global h_div
.type h_div, %function
h_div:
.LFB10:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, 12]
str w1, [sp, 8]
str w2, [sp, 4]
ldr w0, [sp, 12]
ldr w1, [sp, 4]
udiv w2, w0, w1
ldr w1, [sp, 4]
mul w1, w2, w1
sub w1, w0, w1
ldr w0, [sp, 8]
add w0, w1, w0
ldr w1, [sp, 4]
udiv w2, w0, w1
ldr w1, [sp, 4]
mul w1, w2, w1
sub w0, w0, w1
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size h_div, .-h_div
.align 2
.global h_mul
.type h_mul, %function
h_mul:
.LFB11:
.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 w1, [sp, 24]
str w2, [sp, 20]
adrp x0, .LC2
ldr d0, [x0, #:lo12:.LC2]
str d0, [sp, 40]
ldr w0, [sp, 28]
ucvtf d1, w0
ldr d0, [sp, 40]
fmul d0, d1, d0
fmov d1, 1.0e+0
bl fmod
fmov d1, d0
ldr w0, [sp, 20]
ucvtf d0, w0
fmul d1, d1, d0
ldr w0, [sp, 24]
ucvtf d0, w0
fadd d0, d1, d0
fcvtzs w0, d0
ldr w1, [sp, 20]
udiv w2, w0, w1
ldr w1, [sp, 20]
mul w1, w2, w1
sub w0, w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size h_mul, .-h_mul
.align 2
.global criar
.type criar, %function
criar:
.LFB12:
.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]
mov x1, 8
bl calloc
mov x1, x0
ldr x0, [sp, 24]
str x1, [x0]
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE12:
.size criar, .-criar
.align 2
.global inserir
.type inserir, %function
inserir:
.LFB13:
.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
str x0, [sp, 56]
str w1, [sp, 52]
str x2, [sp, 40]
ldr x0, [sp, 40]
bl converter
str w0, [sp, 72]
str wzr, [sp, 68]
b .L18
.L22:
ldr w2, [sp, 52]
mov w1, 0
ldr w0, [sp, 72]
bl h_mul
mov w19, w0
ldr w2, [sp, 52]
mov w1, 0
ldr w0, [sp, 72]
bl h_div
mov w1, w0
ldr w0, [sp, 68]
mul w0, w1, w0
add w0, w19, w0
ldr w1, [sp, 52]
udiv w2, w0, w1
ldr w1, [sp, 52]
mul w1, w2, w1
sub w0, w0, w1
str w0, [sp, 76]
ldr x0, [sp, 56]
ldr x1, [x0]
ldr w0, [sp, 76]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
cmp x0, 0
bne .L19
ldr x0, [sp, 56]
ldr x1, [x0]
ldr w0, [sp, 76]
lsl x0, x0, 3
add x19, x1, x0
mov x1, 1
mov x0, 20
bl calloc
str x0, [x19]
ldr x0, [sp, 56]
ldr x1, [x0]
ldr w0, [sp, 76]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x1, [sp, 40]
bl strcpy
ldr w0, [sp, 68]
b .L20
.L19:
ldr x0, [sp, 56]
ldr x1, [x0]
ldr w0, [sp, 76]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x1, [sp, 40]
bl strcmp
cmp w0, 0
bne .L21
mov w0, -1
b .L20
.L21:
ldr w0, [sp, 68]
add w0, w0, 1
str w0, [sp, 68]
.L18:
ldr w1, [sp, 68]
ldr w0, [sp, 52]
cmp w1, w0
bcc .L22
mov w0, -1
.L20:
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
.LFE13:
.size inserir, .-inserir
.align 2
.global buscar
.type buscar, %function
buscar:
.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 x19, [sp, 16]
.cfi_offset 19, -64
str x0, [sp, 56]
str w1, [sp, 52]
str x2, [sp, 40]
ldr x0, [sp, 40]
bl converter
str w0, [sp, 72]
str wzr, [sp, 68]
b .L24
.L28:
ldr w2, [sp, 52]
mov w1, 0
ldr w0, [sp, 72]
bl h_mul
mov w19, w0
ldr w2, [sp, 52]
mov w1, 0
ldr w0, [sp, 72]
bl h_div
mov w1, w0
ldr w0, [sp, 68]
mul w0, w1, w0
add w0, w19, w0
ldr w1, [sp, 52]
udiv w2, w0, w1
ldr w1, [sp, 52]
mul w1, w2, w1
sub w0, w0, w1
str w0, [sp, 76]
ldr x0, [sp, 56]
ldr x1, [x0]
ldr w0, [sp, 76]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
cmp x0, 0
bne .L25
mov w0, -1
b .L26
.L25:
ldr x0, [sp, 56]
ldr x1, [x0]
ldr w0, [sp, 76]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
ldr x1, [sp, 40]
bl strcmp
cmp w0, 0
bne .L27
ldr w0, [sp, 76]
b .L26
.L27:
ldr w0, [sp, 68]
add w0, w0, 1
str w0, [sp, 68]
.L24:
ldr w1, [sp, 68]
ldr w0, [sp, 52]
cmp w1, w0
bcc .L28
mov w0, -1
.L26:
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
.LFE14:
.size buscar, .-buscar
.section .rodata
.align 3
.LC3:
.string "strings_entrada.txt"
.align 3
.LC4:
.string "strings_busca.txt"
.align 3
.LC5:
.string "Colisoes na insercao: %d\n"
.align 3
.LC6:
.string "Tempo de insercao : %fs\n"
.align 3
.LC7:
.string "Tempo de busca : %fs\n"
.align 3
.LC8:
.string "Itens encontrados : %d\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB15:
.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
mov w0, 50000
str w0, [sp, 52]
mov w0, 4464
movk w0, 0x1, lsl 16
str w0, [sp, 56]
mov w0, 18929
movk w0, 0x2, lsl 16
str w0, [sp, 60]
str wzr, [sp, 36]
str wzr, [sp, 40]
ldr w1, [sp, 52]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl ler_strings
str x0, [sp, 72]
ldr w1, [sp, 56]
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl ler_strings
str x0, [sp, 80]
ldr w1, [sp, 60]
add x0, sp, 64
bl criar
bl inicia_tempo
str wzr, [sp, 44]
b .L30
.L32:
ldr w3, [sp, 60]
ldrsw x0, [sp, 44]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
ldr x1, [x0]
add x0, sp, 64
mov x2, x1
mov w1, w3
bl inserir
cmp w0, 0
ble .L31
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L31:
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L30:
ldr w1, [sp, 44]
ldr w0, [sp, 52]
cmp w1, w0
blt .L32
bl finaliza_tempo
str d0, [sp, 88]
bl inicia_tempo
str wzr, [sp, 48]
b .L33
.L35:
ldr w3, [sp, 60]
ldrsw x0, [sp, 48]
lsl x0, x0, 3
ldr x1, [sp, 80]
add x0, x1, x0
ldr x1, [x0]
add x0, sp, 64
mov x2, x1
mov w1, w3
bl buscar
cmn w0, #1
beq .L34
ldr w0, [sp, 40]
add w0, w0, 1
str w0, [sp, 40]
.L34:
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
.L33:
ldr w1, [sp, 48]
ldr w0, [sp, 56]
cmp w1, w0
blt .L35
bl finaliza_tempo
str d0, [sp, 96]
ldr x0, [sp, 72]
bl free
ldr x0, [sp, 80]
bl free
ldr w1, [sp, 36]
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
ldr d0, [sp, 88]
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl printf
ldr d0, [sp, 96]
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl printf
ldr w1, [sp, 40]
adrp x0, .LC8
add x0, x0, :lo12:.LC8
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, 104]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L37
bl __stack_chk_fail
.L37:
mov w0, w1
ldp x29, x30, [sp], 112
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE15:
.size main, .-main
.section .rodata
.align 3
.LC2:
.word -274877907
.word 1071892135
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Agent loaded"
.text
.align 2
.global Agent_OnAttach
.type Agent_OnAttach, %function
Agent_OnAttach:
.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 x0, [sp, 40]
str x1, [sp, 32]
str x2, [sp, 24]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
mov w0, 0
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size Agent_OnAttach, .-Agent_OnAttach
``` |
### 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, 60
bl sleep
mov w0, 1
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
.global IID_IMXAttributes
.section .rodata
.align 3
.type IID_IMXAttributes, %object
.size IID_IMXAttributes, 24
IID_IMXAttributes:
.xword 4044171212
.hword 16064
.hword 16732
.ascii "\216\330w\253\034^rb"
.zero 4
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
mov w0, 1
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global ibuf
.bss
.align 3
.type ibuf, %object
.size ibuf, 8192
ibuf:
.zero 8192
.global expbuf
.align 3
.type expbuf, %object
.size expbuf, 256
expbuf:
.zero 256
.global linebuf
.align 3
.type linebuf, %object
.size linebuf, 1025
linebuf:
.zero 1025
.global circf
.align 2
.type circf, %object
.size circf, 4
circf:
.zero 4
.global cc
.data
.align 3
.type cc, %object
.size cc, 128
cc:
.string ""
.ascii "\001\002\003\004\005\006\007\b\t\n\013\f\r\016\017\020\021\022"
.ascii "\023\024\025\026\027\030\031\032\033\034\035\036\037 !\"#$%&"
.ascii "'()*+,-./0123456789:;<=>?@abcdefghijklmnopqrstuvwxyz[\\]^_`a"
.ascii "bcdefghijklmnopqrstuvwxyz{|}~\177"
.text
.align 2
.global compile
.type compile, %function
compile:
.LFB0:
.cfi_startproc
stp x19, x20, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 19, -64
.cfi_offset 20, -56
str x21, [sp, 16]
.cfi_offset 21, -48
str x0, [sp, 40]
adrp x0, expbuf
add x20, x0, :lo12:expbuf
ldr x21, [sp, 40]
ldrb w0, [x21]
cmp w0, 94
bne .L22
adrp x0, circf
add x0, x0, :lo12:circf
ldr w0, [x0]
add w1, w0, 1
adrp x0, circf
add x0, x0, :lo12:circf
str w1, [x0]
add x21, x21, 1
.L22:
adrp x0, expbuf+256
add x0, x0, :lo12:expbuf+256
cmp x20, x0
bcs .L23
mov x0, x21
add x21, x0, 1
ldrb w0, [x0]
mov w19, w0
cmp w19, 42
beq .L5
str x20, [sp, 56]
.L5:
cmp w19, 92
beq .L6
cmp w19, 92
bgt .L7
cmp w19, 91
beq .L8
cmp w19, 91
bgt .L7
cmp w19, 46
beq .L9
cmp w19, 46
bgt .L7
cmp w19, 42
beq .L10
cmp w19, 42
bgt .L7
cmp w19, 0
beq .L11
cmp w19, 36
beq .L12
b .L7
.L11:
mov x0, x20
mov w1, 11
strb w1, [x0]
mov w0, 1
b .L13
.L9:
mov x0, x20
add x20, x0, 1
mov w1, 4
strb w1, [x0]
b .L14
.L10:
ldr x0, [sp, 56]
cmp x0, 0
beq .L24
ldr x0, [sp, 56]
ldrb w0, [x0]
orr w0, w0, 1
and w1, w0, 255
ldr x0, [sp, 56]
strb w1, [x0]
b .L14
.L12:
ldrb w0, [x21]
cmp w0, 0
bne .L25
mov x0, x20
add x20, x0, 1
mov w1, 10
strb w1, [x0]
b .L14
.L8:
mov x0, x20
add x20, x0, 1
mov w1, 6
strb w1, [x0]
mov x0, x20
add x20, x0, 1
strb wzr, [x0]
mov w0, 1
str w0, [sp, 52]
mov x0, x21
add x21, x0, 1
ldrb w0, [x0]
mov w19, w0
cmp w19, 94
bne .L21
mov x0, x21
add x21, x0, 1
ldrb w0, [x0]
mov w19, w0
sub x0, x20, #2
mov w1, 8
strb w1, [x0]
.L21:
mov x0, x20
add x20, x0, 1
and w1, w19, 255
strb w1, [x0]
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
cmp w19, 0
beq .L26
adrp x0, expbuf+256
add x0, x0, :lo12:expbuf+256
cmp x20, x0
bcs .L26
mov x0, x21
add x21, x0, 1
ldrb w0, [x0]
mov w19, w0
cmp w19, 93
bne .L21
ldr x0, [sp, 56]
add x0, x0, 1
ldr w1, [sp, 52]
and w1, w1, 255
strb w1, [x0]
b .L14
.L6:
mov x0, x21
add x21, x0, 1
ldrb w0, [x0]
mov w19, w0
cmp w19, 0
beq .L27
b .L7
.L16:
.L24:
nop
b .L7
.L25:
nop
.L7:
mov x0, x20
add x20, x0, 1
mov w1, 2
strb w1, [x0]
mov x0, x20
add x20, x0, 1
and w1, w19, 255
strb w1, [x0]
.L14:
b .L22
.L23:
nop
b .L4
.L26:
nop
b .L4
.L27:
nop
.L4:
mov w0, 0
.L13:
ldr x21, [sp, 16]
ldp x19, x20, [sp], 64
.cfi_restore 20
.cfi_restore 19
.cfi_restore 21
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size compile, .-compile
.section .rodata
.align 3
.LC0:
.string "Grep: Can't open %s\n"
.text
.align 2
.global execute
.type execute, %function
execute:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -96]!
.cfi_def_cfa_offset 96
.cfi_offset 29, -96
.cfi_offset 30, -88
mov x29, sp
stp x19, x20, [sp, 16]
str x21, [sp, 32]
.cfi_offset 19, -80
.cfi_offset 20, -72
.cfi_offset 21, -64
str x0, [sp, 56]
mov w1, 0
ldr x0, [sp, 56]
bl open
str w0, [sp, 76]
ldr w0, [sp, 76]
cmp w0, 0
bge .L29
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
ldr x2, [sp, 56]
adrp x0, .LC0
add x1, x0, :lo12:.LC0
mov x0, x3
bl fprintf
mov w0, 0
b .L30
.L29:
str wzr, [sp, 68]
adrp x0, ibuf
add x0, x0, :lo12:ibuf
str x0, [sp, 80]
adrp x0, ibuf
add x0, x0, :lo12:ibuf
str x0, [sp, 88]
.L51:
adrp x0, linebuf
add x19, x0, :lo12:linebuf
ldr x20, [sp, 88]
str wzr, [sp, 72]
.L41:
ldr x0, [sp, 80]
cmp x20, x0
bcc .L31
mov x2, 8192
adrp x0, ibuf
add x1, x0, :lo12:ibuf
ldr w0, [sp, 76]
bl read
mov w21, w0
cmp w21, 0
bgt .L32
ldr w0, [sp, 76]
bl close
ldr w0, [sp, 72]
cmp w0, 0
bne .L52
mov w0, 0
b .L30
.L32:
adrp x0, ibuf
add x20, x0, :lo12:ibuf
sxtw x1, w21
adrp x0, ibuf
add x0, x0, :lo12:ibuf
add x0, x1, x0
str x0, [sp, 80]
.L31:
mov x0, x20
add x20, x0, 1
ldrb w0, [x0]
mov w21, w0
ldr w0, [sp, 72]
cmp w0, 0
beq .L35
cmp w21, 32
beq .L36
cmp w21, 9
beq .L36
sub x20, x20, #1
b .L34
.L36:
str wzr, [sp, 72]
.L35:
cmp w21, 10
bne .L37
ldr w0, [sp, 68]
cmp w0, 0
bne .L53
ldr w0, [sp, 72]
cmp w0, 0
beq .L39
ldr w0, [sp, 68]
add w0, w0, 1
str w0, [sp, 68]
b .L34
.L39:
ldr w0, [sp, 72]
add w0, w0, 1
str w0, [sp, 72]
mov w21, 32
.L37:
cmp w21, 0
beq .L41
adrp x0, linebuf+1023
add x0, x0, :lo12:linebuf+1023
cmp x19, x0
bcs .L41
mov x0, x19
add x19, x0, 1
and w1, w21, 255
strb w1, [x0]
b .L41
.L52:
nop
b .L34
.L53:
nop
.L34:
mov x0, x19
strb wzr, [x0]
str x20, [sp, 88]
adrp x0, linebuf
add x19, x0, :lo12:linebuf
adrp x0, expbuf
add x20, x0, :lo12:expbuf
adrp x0, circf
add x0, x0, :lo12:circf
ldr w0, [x0]
cmp w0, 0
beq .L42
mov x1, x20
mov x0, x19
bl advance
cmp w0, 0
beq .L54
b .L44
.L42:
ldrb w0, [x20]
cmp w0, 2
bne .L46
add x0, x20, 1
ldrb w0, [x0]
mov w21, w0
.L49:
ldrb w0, [x19]
cmp w21, w0
beq .L47
ldrb w0, [x19]
mov w2, w0
adrp x0, cc
add x1, x0, :lo12:cc
sxtw x0, w2
ldrb w0, [x1, x0]
cmp w21, w0
bne .L48
.L47:
mov x1, x20
mov x0, x19
bl advance
cmp w0, 0
bne .L55
.L48:
mov x0, x19
add x19, x0, 1
ldrb w0, [x0]
cmp w0, 0
bne .L49
b .L45
.L46:
mov x1, x20
mov x0, x19
bl advance
cmp w0, 0
bne .L56
mov x0, x19
add x19, x0, 1
ldrb w0, [x0]
cmp w0, 0
bne .L46
b .L45
.L55:
nop
b .L44
.L56:
nop
.L44:
ldr w0, [sp, 76]
bl close
mov w0, 1
b .L30
.L54:
nop
.L45:
b .L51
.L30:
ldp x19, x20, [sp, 16]
ldr x21, [sp, 32]
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_restore 21
.cfi_restore 19
.cfi_restore 20
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size execute, .-execute
.section .rodata
.align 3
.LC1:
.string "RE botch"
.text
.align 2
.global advance
.type advance, %function
advance:
.LFB2:
.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]
str x1, [sp, 48]
ldr x20, [sp, 56]
ldr x19, [sp, 48]
.L82:
mov x0, x19
add x19, x0, 1
ldrb w0, [x0]
cmp w0, 11
beq .L58
cmp w0, 11
bgt .L59
cmp w0, 10
beq .L60
cmp w0, 10
bgt .L59
cmp w0, 9
beq .L61
cmp w0, 9
bgt .L59
cmp w0, 8
beq .L62
cmp w0, 8
bgt .L59
cmp w0, 7
beq .L61
cmp w0, 7
bgt .L59
cmp w0, 6
beq .L63
cmp w0, 6
bgt .L59
cmp w0, 5
beq .L64
cmp w0, 5
bgt .L59
cmp w0, 4
beq .L65
cmp w0, 4
bgt .L59
cmp w0, 2
beq .L66
cmp w0, 3
beq .L67
b .L59
.L66:
mov x0, x19
add x19, x0, 1
ldrb w1, [x0]
mov x0, x20
add x20, x0, 1
ldrb w0, [x0]
cmp w1, w0
beq .L83
sub x0, x19, #1
ldrb w1, [x0]
sub x0, x20, #1
ldrb w0, [x0]
mov w3, w0
adrp x0, cc
add x2, x0, :lo12:cc
sxtw x0, w3
ldrb w0, [x2, x0]
cmp w1, w0
beq .L83
mov w0, 0
b .L71
.L65:
mov x0, x20
add x20, x0, 1
ldrb w0, [x0]
cmp w0, 0
bne .L84
mov w0, 0
b .L71
.L60:
ldrb w0, [x20]
cmp w0, 0
beq .L85
mov w0, 0
b .L71
.L58:
mov w0, 1
b .L71
.L63:
mov x0, x20
add x20, x0, 1
ldrb w0, [x0]
mov w2, 1
mov w1, w0
mov x0, x19
bl cclass
cmp w0, 0
beq .L74
ldrb w0, [x19]
and x0, x0, 255
add x19, x19, x0
b .L70
.L74:
mov w0, 0
b .L71
.L62:
mov x0, x20
add x20, x0, 1
ldrb w0, [x0]
mov w2, 0
mov w1, w0
mov x0, x19
bl cclass
cmp w0, 0
beq .L75
ldrb w0, [x19]
and x0, x0, 255
add x19, x19, x0
b .L70
.L75:
mov w0, 0
b .L71
.L64:
mov x21, x20
nop
.L76:
mov x0, x20
add x20, x0, 1
ldrb w0, [x0]
cmp w0, 0
bne .L76
b .L81
.L67:
mov x21, x20
nop
.L78:
mov x0, x20
add x20, x0, 1
ldrb w1, [x0]
ldrb w0, [x19]
cmp w1, w0
beq .L78
sub x0, x20, #1
ldrb w0, [x0]
mov w2, w0
adrp x0, cc
add x1, x0, :lo12:cc
sxtw x0, w2
ldrb w1, [x1, x0]
ldrb w0, [x19]
cmp w1, w0
beq .L78
add x19, x19, 1
b .L81
.L61:
mov x21, x20
nop
.L79:
mov x0, x20
add x20, x0, 1
ldrb w0, [x0]
mov w1, w0
sub x0, x19, #1
ldrb w0, [x0]
cmp w0, 7
cset w0, eq
and w0, w0, 255
mov w2, w0
mov x0, x19
bl cclass
cmp w0, 0
bne .L79
ldrb w0, [x19]
and x0, x0, 255
add x19, x19, x0
nop
.L77:
.L81:
sub x20, x20, #1
mov x1, x19
mov x0, x20
bl advance
cmp w0, 0
beq .L80
mov w0, 1
b .L71
.L80:
cmp x20, x21
bhi .L81
mov w0, 0
b .L71
.L59:
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl puts
mov w0, 0
b .L71
.L83:
nop
b .L82
.L84:
nop
b .L82
.L85:
nop
.L70:
b .L82
.L71:
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
.LFE2:
.size advance, .-advance
.align 2
.global cclass
.type cclass, %function
cclass:
.LFB3:
.cfi_startproc
stp x19, x20, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 19, -48
.cfi_offset 20, -40
str x21, [sp, 16]
.cfi_offset 21, -32
str x0, [sp, 40]
str w1, [sp, 36]
str w2, [sp, 32]
ldr x19, [sp, 40]
ldr w0, [sp, 36]
and w21, w0, 255
cmp w21, 0
bne .L87
mov w0, 0
b .L88
.L87:
mov x0, x19
add x19, x0, 1
ldrb w0, [x0]
mov w20, w0
b .L89
.L90:
mov x0, x19
add x19, x0, 1
ldrb w0, [x0]
cmp w21, w0
bne .L89
ldr w0, [sp, 32]
b .L88
.L89:
sub w20, w20, #1
cmp w20, 0
bne .L90
ldr w0, [sp, 32]
cmp w0, 0
cset w0, eq
and w0, w0, 255
.L88:
ldr x21, [sp, 16]
ldp x19, x20, [sp], 48
.cfi_restore 20
.cfi_restore 19
.cfi_restore 21
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE3:
.size cclass, .-cclass
``` |
### 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]
str w1, [sp, 4]
ldr x0, [sp, 8]
ldr w1, [sp, 4]
str w1, [x0]
ldr x0, [sp, 8]
ldr w0, [x0]
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size foo, .-foo
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global a
.bss
.align 3
.type a, %object
.size a, 1600
a:
.zero 1600
.global q
.align 3
.type q, %object
.size q, 80
q:
.zero 80
.global visited
.align 3
.type visited, %object
.size visited, 80
visited:
.zero 80
.global n
.align 2
.type n, %object
.size n, 4
n:
.zero 4
.global i
.align 2
.type i, %object
.size i, 4
i:
.zero 4
.global j
.align 2
.type j, %object
.size j, 4
j:
.zero 4
.global f
.align 2
.type f, %object
.size f, 4
f:
.zero 4
.global r
.data
.align 2
.type r, %object
.size r, 4
r:
.word -1
.text
.align 2
.global bfs
.type bfs, %function
bfs:
.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]
adrp x0, i
add x0, x0, :lo12:i
mov w1, 1
str w1, [x0]
b .L2
.L4:
adrp x0, i
add x0, x0, :lo12:i
ldr w1, [x0]
adrp x0, a
add x2, x0, :lo12:a
sxtw x3, w1
ldrsw x1, [sp, 28]
mov 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
beq .L3
adrp x0, i
add x0, x0, :lo12:i
ldr w1, [x0]
adrp x0, visited
add x0, x0, :lo12:visited
sxtw x1, w1
ldr w0, [x0, x1, lsl 2]
cmp w0, 0
bne .L3
adrp x0, r
add x0, x0, :lo12:r
ldr w0, [x0]
add w1, w0, 1
adrp x0, r
add x0, x0, :lo12:r
str w1, [x0]
adrp x0, r
add x0, x0, :lo12:r
ldr w1, [x0]
adrp x0, i
add x0, x0, :lo12:i
ldr w2, [x0]
adrp x0, q
add x0, x0, :lo12:q
sxtw x1, w1
str w2, [x0, x1, lsl 2]
.L3:
adrp x0, i
add x0, x0, :lo12:i
ldr w0, [x0]
add w1, w0, 1
adrp x0, i
add x0, x0, :lo12:i
str w1, [x0]
.L2:
adrp x0, i
add x0, x0, :lo12:i
ldr w1, [x0]
adrp x0, n
add x0, x0, :lo12:n
ldr w0, [x0]
cmp w1, w0
ble .L4
adrp x0, f
add x0, x0, :lo12:f
ldr w1, [x0]
adrp x0, r
add x0, x0, :lo12:r
ldr w0, [x0]
cmp w1, w0
bgt .L6
adrp x0, f
add x0, x0, :lo12:f
ldr w1, [x0]
adrp x0, q
add x0, x0, :lo12:q
sxtw x1, w1
ldr w1, [x0, x1, lsl 2]
adrp x0, visited
add x0, x0, :lo12:visited
sxtw x1, w1
mov w2, 1
str w2, [x0, x1, lsl 2]
adrp x0, f
add x0, x0, :lo12:f
ldr w0, [x0]
add w2, w0, 1
adrp x1, f
add x1, x1, :lo12:f
str w2, [x1]
adrp x1, q
add x1, x1, :lo12:q
sxtw x0, w0
ldr w0, [x1, x0, lsl 2]
bl bfs
.L6:
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size bfs, .-bfs
.section .rodata
.align 3
.LC0:
.string "\n Enter the number of vertices:"
.align 3
.LC1:
.string "%d"
.align 3
.LC2:
.string "\n Enter graph data in matrix form:"
.align 3
.LC3:
.string "\n Enter the starting vertex:"
.align 3
.LC4:
.string "\n The node which are reachable are:"
.align 3
.LC5:
.string "%d\t"
.align 3
.LC6:
.string "\n Bfs is not possible"
.text
.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
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
adrp x0, n
add x1, x0, :lo12:n
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
adrp x0, i
add x0, x0, :lo12:i
mov w1, 1
str w1, [x0]
b .L8
.L9:
adrp x0, i
add x0, x0, :lo12:i
ldr w1, [x0]
adrp x0, q
add x0, x0, :lo12:q
sxtw x1, w1
str wzr, [x0, x1, lsl 2]
adrp x0, i
add x0, x0, :lo12:i
ldr w1, [x0]
adrp x0, visited
add x0, x0, :lo12:visited
sxtw x1, w1
str wzr, [x0, x1, lsl 2]
adrp x0, i
add x0, x0, :lo12:i
ldr w0, [x0]
add w1, w0, 1
adrp x0, i
add x0, x0, :lo12:i
str w1, [x0]
.L8:
adrp x0, i
add x0, x0, :lo12:i
ldr w1, [x0]
adrp x0, n
add x0, x0, :lo12:n
ldr w0, [x0]
cmp w1, w0
ble .L9
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl puts
adrp x0, i
add x0, x0, :lo12:i
mov w1, 1
str w1, [x0]
b .L10
.L13:
adrp x0, j
add x0, x0, :lo12:j
mov w1, 1
str w1, [x0]
b .L11
.L12:
adrp x0, i
add x0, x0, :lo12:i
ldr w1, [x0]
adrp x0, j
add x0, x0, :lo12:j
ldr w0, [x0]
sxtw x2, w0
sxtw x1, w1
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 2
add x0, x2, x0
lsl x1, x0, 2
adrp x0, a
add x0, x0, :lo12:a
add x0, x1, x0
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
adrp x0, j
add x0, x0, :lo12:j
ldr w0, [x0]
add w1, w0, 1
adrp x0, j
add x0, x0, :lo12:j
str w1, [x0]
.L11:
adrp x0, j
add x0, x0, :lo12:j
ldr w1, [x0]
adrp x0, n
add x0, x0, :lo12:n
ldr w0, [x0]
cmp w1, w0
ble .L12
adrp x0, i
add x0, x0, :lo12:i
ldr w0, [x0]
add w1, w0, 1
adrp x0, i
add x0, x0, :lo12:i
str w1, [x0]
.L10:
adrp x0, i
add x0, x0, :lo12:i
ldr w1, [x0]
adrp x0, n
add x0, x0, :lo12:n
ldr w0, [x0]
cmp w1, w0
ble .L13
adrp x0, .LC3
add x0, x0, :lo12:.LC3
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 bfs
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl puts
adrp x0, i
add x0, x0, :lo12:i
mov w1, 1
str w1, [x0]
b .L14
.L17:
adrp x0, i
add x0, x0, :lo12:i
ldr w1, [x0]
adrp x0, visited
add x0, x0, :lo12:visited
sxtw x1, w1
ldr w0, [x0, x1, lsl 2]
cmp w0, 0
beq .L15
adrp x0, i
add x0, x0, :lo12:i
ldr w0, [x0]
mov w1, w0
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
b .L16
.L15:
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl printf
.L16:
adrp x0, i
add x0, x0, :lo12:i
ldr w0, [x0]
add w1, w0, 1
adrp x0, i
add x0, x0, :lo12:i
str w1, [x0]
.L14:
adrp x0, i
add x0, x0, :lo12:i
ldr w1, [x0]
adrp x0, n
add x0, x0, :lo12:n
ldr w0, [x0]
cmp w1, w0
ble .L17
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 .L19
bl __stack_chk_fail
.L19:
mov w0, w1
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
.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
.align 2
.type c_n1, %object
.size c_n1, 4
c_n1:
.word -1
.align 2
.type c__2, %object
.size c__2, 4
c__2:
.word 2
.align 2
.type c__3, %object
.size c__3, 4
c__3:
.word 3
.align 2
.type c__4, %object
.size c__4, 4
c__4:
.word 4
.local c__0
.comm c__0,4,4
.align 3
.type c_b27, %object
.size c_b27, 8
c_b27:
.word 0
.word 1072693248
.section .rodata
.align 3
.LC0:
.string "V"
.align 3
.LC1:
.string "L"
.align 3
.LC2:
.string "N"
.align 3
.LC3:
.string "U"
.align 3
.LC4:
.string "DSYTRD_2STAGE"
.align 3
.LC5:
.string "DSYEV_2STAGE "
.align 3
.LC6:
.string "Safe minimum"
.align 3
.LC7:
.string "Precision"
.align 3
.LC8:
.string "M"
.text
.align 2
.global dsyev_2stage_
.type dsyev_2stage_, %function
dsyev_2stage_:
.LFB21:
.cfi_startproc
sub sp, sp, #304
.cfi_def_cfa_offset 304
stp x29, x30, [sp, 48]
.cfi_offset 29, -256
.cfi_offset 30, -248
add x29, sp, 48
str x0, [sp, 136]
str x1, [sp, 128]
str x2, [sp, 120]
str x3, [sp, 112]
str x4, [sp, 104]
str x5, [sp, 96]
str x6, [sp, 88]
str x7, [sp, 80]
ldr x0, [sp, 304]
str x0, [sp, 72]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 296]
mov x1, 0
ldr x0, [sp, 104]
ldr w0, [x0]
str w0, [sp, 184]
ldr w0, [sp, 184]
add w0, w0, 1
str w0, [sp, 188]
ldrsw x0, [sp, 188]
lsl x0, x0, 3
neg x0, x0
ldr x1, [sp, 112]
add x0, x1, x0
str x0, [sp, 112]
ldr x0, [sp, 96]
sub x0, x0, #8
str x0, [sp, 96]
ldr x0, [sp, 88]
sub x0, x0, #8
str x0, [sp, 88]
adrp x0, .LC0
add x1, x0, :lo12:.LC0
ldr x0, [sp, 136]
bl lsame_
str w0, [sp, 192]
adrp x0, .LC1
add x1, x0, :lo12:.LC1
ldr x0, [sp, 128]
bl lsame_
str w0, [sp, 196]
ldr x0, [sp, 80]
ldr w0, [x0]
cmn w0, #1
cset w0, eq
and w0, w0, 255
str w0, [sp, 200]
ldr x0, [sp, 72]
str wzr, [x0]
adrp x0, .LC2
add x1, x0, :lo12:.LC2
ldr x0, [sp, 136]
bl lsame_
cmp w0, 0
bne .L69
ldr x0, [sp, 72]
mov w1, -1
str w1, [x0]
b .L70
.L69:
ldr w0, [sp, 196]
cmp w0, 0
bne .L71
adrp x0, .LC3
add x1, x0, :lo12:.LC3
ldr x0, [sp, 128]
bl lsame_
cmp w0, 0
bne .L71
ldr x0, [sp, 72]
mov w1, -2
str w1, [x0]
b .L70
.L71:
ldr x0, [sp, 120]
ldr w0, [x0]
cmp w0, 0
bge .L72
ldr x0, [sp, 72]
mov w1, -3
str w1, [x0]
b .L70
.L72:
ldr x0, [sp, 104]
ldr w1, [x0]
ldr x0, [sp, 120]
ldr w0, [x0]
mov w2, 1
cmp w0, 0
csel w0, w0, w2, gt
cmp w1, w0
bge .L70
ldr x0, [sp, 72]
mov w1, -5
str w1, [x0]
.L70:
ldr x0, [sp, 72]
ldr w0, [x0]
cmp w0, 0
bne .L73
adrp x0, c_n1
add x6, x0, :lo12:c_n1
adrp x0, c_n1
add x5, x0, :lo12:c_n1
adrp x0, c_n1
add x4, x0, :lo12:c_n1
ldr x3, [sp, 120]
ldr x2, [sp, 136]
adrp x0, .LC4
add x1, x0, :lo12:.LC4
adrp x0, c__1
add x0, x0, :lo12:c__1
bl ilaenv2stage_
str w0, [sp, 168]
add x1, sp, 168
adrp x0, c_n1
add x6, x0, :lo12:c_n1
adrp x0, c_n1
add x5, x0, :lo12:c_n1
mov x4, x1
ldr x3, [sp, 120]
ldr x2, [sp, 136]
adrp x0, .LC4
add x1, x0, :lo12:.LC4
adrp x0, c__2
add x0, x0, :lo12:c__2
bl ilaenv2stage_
str w0, [sp, 164]
add x2, sp, 164
add x1, sp, 168
adrp x0, c_n1
add x6, x0, :lo12:c_n1
mov x5, x2
mov x4, x1
ldr x3, [sp, 120]
ldr x2, [sp, 136]
adrp x0, .LC4
add x1, x0, :lo12:.LC4
adrp x0, c__3
add x0, x0, :lo12:c__3
bl ilaenv2stage_
str w0, [sp, 160]
add x2, sp, 164
add x1, sp, 168
adrp x0, c_n1
add x6, x0, :lo12:c_n1
mov x5, x2
mov x4, x1
ldr x3, [sp, 120]
ldr x2, [sp, 136]
adrp x0, .LC4
add x1, x0, :lo12:.LC4
adrp x0, c__4
add x0, x0, :lo12:c__4
bl ilaenv2stage_
str w0, [sp, 204]
ldr x0, [sp, 120]
ldr w0, [x0]
lsl w1, w0, 1
ldr w0, [sp, 160]
add w0, w1, w0
ldr w1, [sp, 204]
add w0, w1, w0
str w0, [sp, 176]
ldr x0, [sp, 88]
add x0, x0, 8
ldr w1, [sp, 176]
scvtf d0, w1
str d0, [x0]
ldr x0, [sp, 80]
ldr w0, [x0]
ldr w1, [sp, 176]
cmp w1, w0
ble .L73
ldr w0, [sp, 200]
cmp w0, 0
bne .L73
ldr x0, [sp, 72]
mov w1, -8
str w1, [x0]
.L73:
ldr x0, [sp, 72]
ldr w0, [x0]
cmp w0, 0
beq .L74
ldr x0, [sp, 72]
ldr w0, [x0]
neg w0, w0
str w0, [sp, 232]
add x0, sp, 232
mov w2, 13
mov x1, x0
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl xerbla_
mov w0, 0
b .L91
.L74:
ldr w0, [sp, 200]
cmp w0, 0
beq .L76
mov w0, 0
b .L91
.L76:
ldr x0, [sp, 120]
ldr w0, [x0]
cmp w0, 0
bne .L77
mov w0, 0
b .L91
.L77:
ldr x0, [sp, 120]
ldr w0, [x0]
cmp w0, 1
bne .L78
ldrsw x0, [sp, 184]
add x0, x0, 1
lsl x0, x0, 3
ldr x1, [sp, 112]
add x1, x1, x0
ldr x0, [sp, 96]
add x0, x0, 8
ldr d0, [x1]
str d0, [x0]
ldr x0, [sp, 88]
add x0, x0, 8
fmov d0, 2.0e+0
str d0, [x0]
ldr w0, [sp, 192]
cmp w0, 0
beq .L79
ldrsw x0, [sp, 184]
add x0, x0, 1
lsl x0, x0, 3
ldr x1, [sp, 112]
add x0, x1, x0
fmov d0, 1.0e+0
str d0, [x0]
.L79:
mov w0, 0
b .L91
.L78:
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl dlamch_
str d0, [sp, 240]
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl dlamch_
str d0, [sp, 248]
ldr d0, [sp, 248]
ldr d1, [sp, 240]
fdiv d0, d1, d0
str d0, [sp, 256]
ldr d0, [sp, 256]
fmov d1, 1.0e+0
fdiv d0, d1, d0
str d0, [sp, 264]
ldr d0, [sp, 256]
bl sqrt
str d0, [sp, 272]
ldr d0, [sp, 264]
bl sqrt
str d0, [sp, 280]
ldrsw x0, [sp, 188]
lsl x0, x0, 3
ldr x1, [sp, 112]
add x1, x1, x0
ldr x0, [sp, 88]
add x0, x0, 8
mov x5, x0
ldr x4, [sp, 104]
mov x3, x1
ldr x2, [sp, 120]
ldr x1, [sp, 128]
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl dlansy_
str d0, [sp, 288]
str wzr, [sp, 180]
ldr d0, [sp, 288]
fcmpe d0, #0.0
bgt .L93
b .L80
.L93:
ldr d1, [sp, 288]
ldr d0, [sp, 272]
fcmpe d1, d0
bmi .L94
b .L80
.L94:
mov w0, 1
str w0, [sp, 180]
ldr d0, [sp, 288]
ldr d1, [sp, 272]
fdiv d0, d1, d0
str d0, [sp, 232]
b .L83
.L80:
ldr d1, [sp, 288]
ldr d0, [sp, 280]
fcmpe d1, d0
bgt .L95
b .L83
.L95:
mov w0, 1
str w0, [sp, 180]
ldr d0, [sp, 288]
ldr d1, [sp, 280]
fdiv d0, d1, d0
str d0, [sp, 232]
.L83:
ldr w0, [sp, 180]
cmp w0, 1
bne .L85
ldrsw x0, [sp, 188]
lsl x0, x0, 3
ldr x1, [sp, 112]
add x2, x1, x0
add x1, sp, 232
ldr x0, [sp, 72]
str x0, [sp, 8]
ldr x0, [sp, 104]
str x0, [sp]
mov x7, x2
ldr x6, [sp, 120]
ldr x5, [sp, 120]
mov x4, x1
adrp x0, c_b27
add x3, x0, :lo12:c_b27
adrp x0, c__0
add x2, x0, :lo12:c__0
adrp x0, c__0
add x1, x0, :lo12:c__0
ldr x0, [sp, 128]
bl dlascl_
.L85:
mov w0, 1
str w0, [sp, 208]
ldr x0, [sp, 120]
ldr w0, [x0]
ldr w1, [sp, 208]
add w0, w1, w0
str w0, [sp, 212]
ldr x0, [sp, 120]
ldr w0, [x0]
ldr w1, [sp, 212]
add w0, w1, w0
str w0, [sp, 216]
ldr w0, [sp, 160]
ldr w1, [sp, 216]
add w0, w1, w0
str w0, [sp, 220]
ldr x0, [sp, 80]
ldr w1, [x0]
ldr w0, [sp, 220]
sub w0, w1, w0
add w0, w0, 1
str w0, [sp, 172]
ldrsw x0, [sp, 188]
lsl x0, x0, 3
ldr x1, [sp, 112]
add x3, x1, x0
ldr x0, [sp, 96]
add x4, x0, 8
ldrsw x0, [sp, 208]
lsl x0, x0, 3
ldr x1, [sp, 88]
add x5, x1, x0
ldrsw x0, [sp, 212]
lsl x0, x0, 3
ldr x1, [sp, 88]
add x6, x1, x0
ldrsw x0, [sp, 216]
lsl x0, x0, 3
ldr x1, [sp, 88]
add x0, x1, x0
ldrsw x1, [sp, 220]
lsl x1, x1, 3
ldr x2, [sp, 88]
add x1, x2, x1
add x2, sp, 156
str x2, [sp, 32]
add x2, sp, 172
str x2, [sp, 24]
str x1, [sp, 16]
add x1, sp, 160
str x1, [sp, 8]
str x0, [sp]
mov x7, x6
mov x6, x5
mov x5, x4
ldr x4, [sp, 104]
ldr x2, [sp, 120]
ldr x1, [sp, 128]
ldr x0, [sp, 136]
bl dsytrd_2stage_
ldr w0, [sp, 192]
cmp w0, 0
bne .L86
ldr x0, [sp, 96]
add x4, x0, 8
ldrsw x0, [sp, 208]
lsl x0, x0, 3
ldr x1, [sp, 88]
add x0, x1, x0
ldr x3, [sp, 72]
mov x2, x0
mov x1, x4
ldr x0, [sp, 120]
bl dsterf_
ldr w0, [sp, 180]
cmp w0, 1
bne .L88
b .L96
.L86:
mov w0, 0
b .L91
.L96:
ldr x0, [sp, 72]
ldr w0, [x0]
cmp w0, 0
bne .L89
ldr x0, [sp, 120]
ldr w0, [x0]
str w0, [sp, 152]
b .L90
.L89:
ldr x0, [sp, 72]
ldr w0, [x0]
sub w0, w0, #1
str w0, [sp, 152]
.L90:
ldr d0, [sp, 232]
fmov d1, 1.0e+0
fdiv d0, d1, d0
str d0, [sp, 224]
ldr x0, [sp, 96]
add x2, x0, 8
add x1, sp, 224
add x4, sp, 152
adrp x0, c__1
add x3, x0, :lo12:c__1
mov x0, x4
bl dscal_
.L88:
ldr x0, [sp, 88]
add x0, x0, 8
ldr w1, [sp, 176]
scvtf d0, w1
str d0, [x0]
mov w0, 0
.L91:
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 .L92
bl __stack_chk_fail
.L92:
mov w0, w1
ldp x29, x30, [sp, 48]
add sp, sp, 304
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE21:
.size dsyev_2stage_, .-dsyev_2stage_
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "/dev/rtc0"
.align 3
.LC1:
.string "====== RTC Test ===="
.align 3
.LC2:
.string "0. open and release"
.align 3
.LC3:
.string "failed to open '%s': %s\n"
.align 3
.LC4:
.string "opened '%s': fd = %d\n"
.align 3
.LC5:
.string "1. ioctl RTC_UIE_ON"
.align 3
.LC6:
.string "rtc ioctl RTC_UIE_ON error"
.align 3
.LC7:
.string "2. RTC read 5 times"
.align 3
.LC8:
.string "rtc read error"
.align 3
.LC9:
.string "RTC read %d\n"
.align 3
.LC10:
.string "3. ioctl RTC_UIE_OFF"
.align 3
.LC11:
.string "rtc ioctl RTC_UIE_OFF error"
.align 3
.LC12:
.string "4. Get RTC Time"
.align 3
.LC13:
.string "rtc ioctl RTC_RD_TIME error"
.align 3
.LC14:
.string "Current RTC date/time is %d-%d-%d, %02d:%02d:%02d\n"
.align 3
.LC15:
.string "5. Set RTC Time"
.align 3
.LC16:
.string "rtc ioctl RTC_SET_TIME error"
.align 3
.LC17:
.string "Set Current RTC date/time to %d-%d-%d, %02d:%02d:%02d\n"
.align 3
.LC18:
.string "Get RTC time"
.align 3
.LC19:
.string "6. Set alarm Time"
.align 3
.LC20:
.string "rtc ioctl RTC_ALM_SET error"
.align 3
.LC21:
.string "7. Get alarm Time"
.align 3
.LC22:
.string "rtc ioctl RTC_ALM_READ error"
.align 3
.LC23:
.string "Alarm time now set to %02d:%02d:%02d\n"
.align 3
.LC24:
.string "rtc ioctl RTC_ALE_ON error"
.align 3
.LC25:
.string "Waiting 50 seconds for alarm..."
.align 3
.LC26:
.string " Fail! Alarm rang too fast ... took %i seconds instead of 50!\n"
.align 3
.LC27:
.string " Okay. Alarm rang."
.align 3
.LC28:
.string "8. ioctl RTC_AIE_OFF"
.align 3
.LC29:
.string "ioctl RTC_ALE_OFF error"
.align 3
.LC30:
.string "8.5 test sleep 10"
.align 3
.LC31:
.string "RTC Tests done !!"
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -128]!
.cfi_def_cfa_offset 128
.cfi_offset 29, -128
.cfi_offset 30, -120
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, 120]
mov x1, 0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
str x0, [sp, 56]
ldr w0, [sp, 28]
cmp w0, 1
ble .L2
ldr x0, [sp, 16]
ldr x0, [x0, 8]
str x0, [sp, 56]
.L2:
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl puts
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl puts
mov w1, 0
ldr x0, [sp, 56]
bl open
str w0, [sp, 40]
ldr w0, [sp, 40]
cmn w0, #1
bne .L3
bl __errno_location
ldr w0, [x0]
bl strerror
mov x2, x0
ldr x1, [sp, 56]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
mov w0, 1
bl exit
.L3:
ldr w2, [sp, 40]
ldr x1, [sp, 56]
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl puts
mov w2, 0
mov x1, 28675
ldr w0, [sp, 40]
bl ioctl
str w0, [sp, 44]
ldr w0, [sp, 44]
cmn w0, #1
bne .L4
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl perror
.L4:
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl puts
mov w0, 1
str w0, [sp, 36]
b .L5
.L7:
add x0, sp, 48
mov x2, 8
mov x1, x0
ldr w0, [sp, 40]
bl read
str w0, [sp, 44]
ldr w0, [sp, 44]
cmn w0, #1
bne .L6
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl perror
.L6:
ldr w1, [sp, 36]
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl printf
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L5:
ldr w0, [sp, 36]
cmp w0, 5
ble .L7
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl puts
mov w2, 0
mov x1, 28676
ldr w0, [sp, 40]
bl ioctl
str w0, [sp, 44]
ldr w0, [sp, 44]
cmn w0, #1
bne .L8
adrp x0, .LC11
add x0, x0, :lo12:.LC11
bl perror
.L8:
adrp x0, .LC12
add x0, x0, :lo12:.LC12
bl puts
add x0, sp, 80
mov x2, x0
mov x1, 28681
movk x1, 0x8024, lsl 16
ldr w0, [sp, 40]
bl ioctl
str w0, [sp, 44]
ldr w0, [sp, 44]
cmn w0, #1
bne .L9
adrp x0, .LC13
add x0, x0, :lo12:.LC13
bl perror
.L9:
ldr w1, [sp, 92]
ldr w0, [sp, 96]
add w0, w0, 1
ldr w2, [sp, 100]
ldr w3, [sp, 88]
ldr w4, [sp, 84]
ldr w5, [sp, 80]
mov w6, w5
mov w5, w4
mov w4, w3
mov w3, w2
mov w2, w0
adrp x0, .LC14
add x0, x0, :lo12:.LC14
bl printf
mov w0, 31
str w0, [sp, 92]
mov w0, 4
str w0, [sp, 96]
mov w0, 104
str w0, [sp, 100]
mov w0, 2
str w0, [sp, 88]
mov w0, 30
str w0, [sp, 84]
str wzr, [sp, 80]
adrp x0, .LC15
add x0, x0, :lo12:.LC15
bl puts
add x0, sp, 80
mov x2, x0
mov x1, 28682
movk x1, 0x4024, lsl 16
ldr w0, [sp, 40]
bl ioctl
str w0, [sp, 44]
ldr w0, [sp, 44]
cmn w0, #1
bne .L10
adrp x0, .LC16
add x0, x0, :lo12:.LC16
bl perror
.L10:
ldr w1, [sp, 92]
ldr w0, [sp, 96]
add w0, w0, 1
ldr w2, [sp, 100]
ldr w3, [sp, 88]
ldr w4, [sp, 84]
ldr w5, [sp, 80]
mov w6, w5
mov w5, w4
mov w4, w3
mov w3, w2
mov w2, w0
adrp x0, .LC17
add x0, x0, :lo12:.LC17
bl printf
adrp x0, .LC18
add x0, x0, :lo12:.LC18
bl puts
add x0, sp, 80
mov x2, x0
mov x1, 28681
movk x1, 0x8024, lsl 16
ldr w0, [sp, 40]
bl ioctl
str w0, [sp, 44]
ldr w0, [sp, 44]
cmn w0, #1
bne .L11
adrp x0, .LC13
add x0, x0, :lo12:.LC13
bl perror
.L11:
ldr w1, [sp, 92]
ldr w0, [sp, 96]
add w0, w0, 1
ldr w2, [sp, 100]
ldr w3, [sp, 88]
ldr w4, [sp, 84]
ldr w5, [sp, 80]
mov w6, w5
mov w5, w4
mov w4, w3
mov w3, w2
mov w2, w0
adrp x0, .LC14
add x0, x0, :lo12:.LC14
bl printf
ldr w0, [sp, 80]
add w0, w0, 50
str w0, [sp, 80]
ldr w0, [sp, 80]
cmp w0, 59
ble .L12
ldr w1, [sp, 80]
mov w0, 34953
movk w0, 0x8888, lsl 16
smull x0, w1, w0
lsr x0, x0, 32
add w0, w1, w0
asr w2, w0, 5
asr w0, w1, 31
sub w2, w2, w0
mov w0, w2
lsl w0, w0, 4
sub w0, w0, w2
lsl w0, w0, 2
sub w2, w1, w0
str w2, [sp, 80]
ldr w0, [sp, 84]
add w0, w0, 1
str w0, [sp, 84]
.L12:
ldr w0, [sp, 84]
cmp w0, 60
bne .L13
str wzr, [sp, 84]
ldr w0, [sp, 88]
add w0, w0, 1
str w0, [sp, 88]
.L13:
ldr w0, [sp, 88]
cmp w0, 24
bne .L14
str wzr, [sp, 88]
.L14:
adrp x0, .LC19
add x0, x0, :lo12:.LC19
bl puts
add x0, sp, 80
mov x2, x0
mov x1, 28679
movk x1, 0x4024, lsl 16
ldr w0, [sp, 40]
bl ioctl
str w0, [sp, 44]
ldr w0, [sp, 44]
cmn w0, #1
bne .L15
adrp x0, .LC20
add x0, x0, :lo12:.LC20
bl perror
.L15:
adrp x0, .LC21
add x0, x0, :lo12:.LC21
bl puts
add x0, sp, 80
mov x2, x0
mov x1, 28680
movk x1, 0x8024, lsl 16
ldr w0, [sp, 40]
bl ioctl
str w0, [sp, 44]
ldr w0, [sp, 44]
cmn w0, #1
bne .L16
adrp x0, .LC22
add x0, x0, :lo12:.LC22
bl perror
.L16:
mov x0, 0
bl time
str x0, [sp, 64]
ldr w0, [sp, 88]
ldr w1, [sp, 84]
ldr w2, [sp, 80]
mov w3, w2
mov w2, w1
mov w1, w0
adrp x0, .LC23
add x0, x0, :lo12:.LC23
bl printf
mov w2, 0
mov x1, 28673
ldr w0, [sp, 40]
bl ioctl
str w0, [sp, 44]
ldr w0, [sp, 44]
cmn w0, #1
bne .L17
adrp x0, .LC24
add x0, x0, :lo12:.LC24
bl perror
.L17:
adrp x0, .LC25
add x0, x0, :lo12:.LC25
bl puts
add x0, sp, 48
mov x2, 8
mov x1, x0
ldr w0, [sp, 40]
bl read
str w0, [sp, 44]
ldr w0, [sp, 44]
cmn w0, #1
bne .L18
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl perror
.L18:
mov x0, 0
bl time
str x0, [sp, 72]
ldr x1, [sp, 72]
ldr x0, [sp, 64]
sub x0, x1, x0
cmp x0, 39
bgt .L19
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
ldr x0, [sp, 72]
mov w1, w0
ldr x0, [sp, 64]
sub w0, w1, w0
mov w2, w0
adrp x0, .LC26
add x1, x0, :lo12:.LC26
mov x0, x3
bl fprintf
b .L20
.L19:
adrp x0, .LC27
add x0, x0, :lo12:.LC27
bl puts
.L20:
add x0, sp, 80
mov x2, x0
mov x1, 28681
movk x1, 0x8024, lsl 16
ldr w0, [sp, 40]
bl ioctl
str w0, [sp, 44]
ldr w0, [sp, 44]
cmn w0, #1
bne .L21
adrp x0, .LC13
add x0, x0, :lo12:.LC13
bl perror
.L21:
ldr w1, [sp, 92]
ldr w0, [sp, 96]
add w0, w0, 1
ldr w2, [sp, 100]
ldr w3, [sp, 88]
ldr w4, [sp, 84]
ldr w5, [sp, 80]
mov w6, w5
mov w5, w4
mov w4, w3
mov w3, w2
mov w2, w0
adrp x0, .LC14
add x0, x0, :lo12:.LC14
bl printf
adrp x0, .LC28
add x0, x0, :lo12:.LC28
bl puts
mov w2, 0
mov x1, 28674
ldr w0, [sp, 40]
bl ioctl
str w0, [sp, 44]
ldr w0, [sp, 44]
cmn w0, #1
bne .L22
adrp x0, .LC29
add x0, x0, :lo12:.LC29
bl perror
.L22:
adrp x0, .LC30
add x0, x0, :lo12:.LC30
bl puts
mov w0, 10
bl sleep
add x0, sp, 80
mov x2, x0
mov x1, 28681
movk x1, 0x8024, lsl 16
ldr w0, [sp, 40]
bl ioctl
str w0, [sp, 44]
ldr w0, [sp, 44]
cmn w0, #1
bne .L23
adrp x0, .LC13
add x0, x0, :lo12:.LC13
bl perror
.L23:
ldr w1, [sp, 92]
ldr w0, [sp, 96]
add w0, w0, 1
ldr w2, [sp, 100]
ldr w3, [sp, 88]
ldr w4, [sp, 84]
ldr w5, [sp, 80]
mov w6, w5
mov w5, w4
mov w4, w3
mov w3, w2
mov w2, w0
adrp x0, .LC14
add x0, x0, :lo12:.LC14
bl printf
add x0, sp, 80
mov x2, x0
mov x1, 28681
movk x1, 0x8024, lsl 16
ldr w0, [sp, 40]
bl ioctl
str w0, [sp, 44]
ldr w0, [sp, 44]
cmn w0, #1
bne .L24
adrp x0, .LC13
add x0, x0, :lo12:.LC13
bl perror
.L24:
ldr w1, [sp, 92]
ldr w0, [sp, 96]
add w0, w0, 1
ldr w2, [sp, 100]
ldr w3, [sp, 88]
ldr w4, [sp, 84]
ldr w5, [sp, 80]
mov w6, w5
mov w5, w4
mov w4, w3
mov w3, w2
mov w2, w0
adrp x0, .LC14
add x0, x0, :lo12:.LC14
bl printf
adrp x0, .LC31
add x0, x0, :lo12:.LC31
bl puts
ldr w0, [sp, 40]
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, 120]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L26
bl __stack_chk_fail
.L26:
mov w0, w1
ldp x29, x30, [sp], 128
.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 main
.type main, %function
main:
.LFB0:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str wzr, [sp]
str wzr, [sp, 4]
mov w0, 1
str w0, [sp, 8]
mov w0, 2
str w0, [sp, 12]
mov w0, 3
str w0, [sp, 16]
mov w0, 4
str w0, [sp, 20]
mov w0, 5
str w0, [sp, 24]
mov w0, 6
str w0, [sp, 28]
.L2:
ldr w0, [sp, 12]
add w0, w0, 1
str w0, [sp, 12]
ldr w1, [sp, 12]
ldr w0, [sp, 8]
add w1, w1, w0
ldr w0, [sp, 16]
sub w2, w0, #1
str w2, [sp, 16]
ldr w2, [sp, 20]
mul w0, w0, w2
add w1, w1, w0
ldr w0, [sp, 24]
add w1, w1, w0
ldr w0, [sp, 28]
add w2, w0, 1
str w2, [sp, 28]
add w0, w1, w0
str w0, [sp, 4]
mov w0, 0
add sp, sp, 32
.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 "Age in years: %d\n"
.align 3
.LC1:
.string "Age in days: %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
mov w0, 9490
str w0, [sp, 28]
mov w1, 26
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
ldr w1, [sp, 28]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
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
.global input
.bss
.align 3
.type input, %object
.size input, 8
input:
.zero 8
.global output
.align 3
.type output, %object
.size output, 8
output:
.zero 8
.global inputString
.align 3
.type inputString, %object
.size inputString, 16
inputString:
.zero 16
.global conVal
.align 1
.type conVal, %object
.size conVal, 2
conVal:
.zero 2
.section .rodata
.align 3
.LC0:
.string "Invalid input. Correct usage: parseADC input output\r"
.align 3
.LC1:
.string "r"
.align 3
.LC2:
.string "Couldn't open %s for reading.\r\n"
.align 3
.LC3:
.string "w"
.align 3
.LC4:
.string "Couldn't open %s for writing.\r\n"
.align 3
.LC5:
.string "%i\r\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
str w0, [sp, 28]
str x1, [sp, 16]
ldr x0, [sp, 16]
add x0, x0, 16
ldr x0, [x0]
cmp x0, 0
bne .L2
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
b .L6
.L2:
ldr x0, [sp, 16]
add x0, x0, 8
ldr x2, [x0]
adrp x0, .LC1
add x1, x0, :lo12:.LC1
mov x0, x2
bl fopen
mov x1, x0
adrp x0, input
add x0, x0, :lo12:input
str x1, [x0]
adrp x0, input
add x0, x0, :lo12:input
ldr x0, [x0]
cmp x0, 0
bne .L4
ldr x0, [sp, 16]
add x0, x0, 8
ldr x0, [x0]
mov x1, x0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
mov w0, 1
b .L5
.L4:
ldr x0, [sp, 16]
add x0, x0, 16
ldr x2, [x0]
adrp x0, .LC3
add x1, x0, :lo12:.LC3
mov x0, x2
bl fopen
mov x1, x0
adrp x0, output
add x0, x0, :lo12:output
str x1, [x0]
adrp x0, output
add x0, x0, :lo12:output
ldr x0, [x0]
cmp x0, 0
bne .L6
ldr x0, [sp, 16]
add x0, x0, 16
ldr x0, [x0]
mov x1, x0
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
mov w0, 1
b .L5
.L7:
adrp x0, inputString
add x0, x0, :lo12:inputString
bl strlen
sub x0, x0, #2
adrp x1, inputString
add x1, x1, :lo12:inputString
strb wzr, [x1, x0]
mov w2, 16
mov x1, 0
adrp x0, inputString
add x0, x0, :lo12:inputString
bl strtol
sxth w1, w0
adrp x0, conVal
add x0, x0, :lo12:conVal
strh w1, [x0]
adrp x0, output
add x0, x0, :lo12:output
ldr x3, [x0]
adrp x0, conVal
add x0, x0, :lo12:conVal
ldrsh w0, [x0]
mov w2, w0
adrp x0, .LC5
add x1, x0, :lo12:.LC5
mov x0, x3
bl fprintf
.L6:
adrp x0, input
add x0, x0, :lo12:input
ldr x0, [x0]
mov x2, x0
mov w1, 16
adrp x0, inputString
add x0, x0, :lo12:inputString
bl fgets
cmp x0, 0
bne .L7
adrp x0, input
add x0, x0, :lo12:input
ldr x0, [x0]
bl fclose
adrp x0, output
add x0, x0, :lo12:output
ldr x0, [x0]
bl fclose
mov w0, 0
.L5:
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
.local i
.comm i,4,8
.data
.align 3
.type j, %object
.size j, 4
j:
.word 1
.align 3
.type k, %object
.size k, 4
k:
.word 2
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global initrd_data
.bss
.align 3
.type initrd_data, %object
.size initrd_data, 1
initrd_data:
.zero 1
.global initrd_len
.align 2
.type initrd_len, %object
.size initrd_len, 4
initrd_len:
.zero 4
``` |
### 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
str w0, [sp, 28]
str x1, [sp, 16]
mov w0, 97
bl generate_paths
mov w0, 65
bl generate_paths
mov w0, 120
bl generate_paths
mov w0, 100
bl generate_paths
mov w0, 48
bl generate_paths
mov w0, 71
bl generate_paths
mov w0, 97
bl generate_paths
mov w0, 122
bl generate_paths
mov w0, 105
bl generate_paths
mov w0, 57
bl generate_paths
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
.section .rodata
.align 3
.LC0:
.string "path 1"
.align 3
.LC1:
.string "path 2"
.align 3
.LC2:
.string "path 3"
.align 3
.LC3:
.string "path 4"
.align 3
.LC4:
.string "path 5"
.align 3
.LC5:
.string "path 6"
.align 3
.LC6:
.string "path 7"
.align 3
.LC7:
.string "path 8"
.align 3
.LC8:
.string "path 9"
.align 3
.LC9:
.string "path 10"
.align 3
.LC10:
.string "path 11"
.align 3
.LC11:
.string "path 12"
.align 3
.LC12:
.string "path 13"
.align 3
.LC13:
.string "path 14"
.align 3
.LC14:
.string "path 15"
.align 3
.LC15:
.string "path 16"
.text
.align 2
.global generate_paths
.type generate_paths, %function
generate_paths:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
strb w0, [sp, 31]
ldrsb w0, [sp, 31]
cmp w0, 0
blt .L4
ldrb w0, [sp, 31]
cmp w0, 63
bhi .L5
ldrb w0, [sp, 31]
cmp w0, 31
bhi .L6
ldrb w0, [sp, 31]
cmp w0, 15
bhi .L7
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
b .L8
.L7:
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl puts
b .L8
.L6:
ldrb w0, [sp, 31]
cmp w0, 47
bhi .L9
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl puts
b .L8
.L9:
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl puts
b .L8
.L5:
ldrb w0, [sp, 31]
cmp w0, 95
bhi .L10
ldrb w0, [sp, 31]
cmp w0, 79
bhi .L11
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl puts
b .L8
.L11:
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl puts
b .L8
.L10:
ldrb w0, [sp, 31]
cmp w0, 111
bhi .L12
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl puts
b .L8
.L12:
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl puts
b .L8
.L4:
ldrb w0, [sp, 31]
cmp w0, 191
bhi .L13
ldrb w0, [sp, 31]
cmp w0, 159
bhi .L14
ldrb w0, [sp, 31]
cmp w0, 143
bhi .L15
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl puts
b .L8
.L15:
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl puts
b .L8
.L14:
ldrb w0, [sp, 31]
cmp w0, 175
bhi .L16
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl puts
b .L8
.L16:
adrp x0, .LC11
add x0, x0, :lo12:.LC11
bl puts
b .L8
.L13:
ldrb w0, [sp, 31]
cmp w0, 223
bhi .L17
ldrb w0, [sp, 31]
cmp w0, 207
bhi .L18
adrp x0, .LC12
add x0, x0, :lo12:.LC12
bl puts
b .L8
.L18:
adrp x0, .LC13
add x0, x0, :lo12:.LC13
bl puts
b .L8
.L17:
ldrb w0, [sp, 31]
cmp w0, 239
bhi .L19
adrp x0, .LC14
add x0, x0, :lo12:.LC14
bl puts
b .L8
.L19:
adrp x0, .LC15
add x0, x0, :lo12:.LC15
bl puts
.L8:
mov w0, 0
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size generate_paths, .-generate_paths
``` |