text
stringlengths 197
24.1M
|
---|
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global qToFloat
.type qToFloat, %function
qToFloat:
.LFB6:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, 12]
strb w1, [sp, 11]
ldr w0, [sp, 12]
scvtf d1, w0
ldrb w0, [sp, 11]
mov w1, 1
lsl w0, w1, w0
scvtf d0, w0
fdiv d0, d1, d0
fcvt s0, d0
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size qToFloat, .-qToFloat
.align 2
.global floatToQ
.type floatToQ, %function
floatToQ:
.LFB7:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str s0, [sp, 12]
strb w0, [sp, 11]
ldrb w0, [sp, 11]
mov w1, 1
lsl w0, w1, w0
fmov s0, w0
scvtf s1, s0
ldr s0, [sp, 12]
fmul s0, s1, s0
fcvtzs s0, s0
fmov w0, s0
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size floatToQ, .-floatToQ
.section .rodata
.align 3
.LC0:
.string "Q -> f: %f\n"
.align 3
.LC1:
.string "f -> Q: %d\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
fmov s0, 3.0e+1
str s0, [sp, 24]
ldr s0, [sp, 24]
fcvtzu s0, s0
umov w0, v0.b[0]
and w0, w0, 255
mov w1, w0
mov w0, 41205
movk w0, 0xe9f, lsl 16
bl qToFloat
str s0, [sp, 28]
ldr s0, [sp, 28]
fcvt d0, s0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
ldr s0, [sp, 24]
fcvtzu s0, s0
umov w0, v0.b[0]
and w0, w0, 255
ldr s0, [sp, 28]
bl floatToQ
mov w1, w0
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
.LFE8:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Enter the number : "
.align 3
.LC1:
.string "%d"
.align 3
.LC2:
.string "Factorial = %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
mov w0, 1
str w0, [sp, 36]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
add x0, sp, 28
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
mov w0, 1
str w0, [sp, 32]
b .L2
.L3:
ldr w1, [sp, 36]
ldr w0, [sp, 32]
mul w0, w1, w0
str w0, [sp, 36]
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L2:
ldr w0, [sp, 28]
ldr w1, [sp, 32]
cmp w1, w0
ble .L3
ldr w1, [sp, 36]
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 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
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global strsep
.type strsep, %function
strsep:
.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 x1, [sp, 16]
ldr x0, [sp, 24]
ldr x0, [x0]
str x0, [sp, 40]
ldr x0, [sp, 40]
cmp x0, 0
bne .L2
mov x0, 0
b .L3
.L2:
ldr x0, [sp, 16]
ldrb w0, [x0]
cmp w0, 0
bne .L4
ldr x0, [sp, 24]
str xzr, [x0]
ldr x0, [sp, 40]
b .L3
.L4:
ldr x0, [sp, 16]
add x0, x0, 1
ldrb w0, [x0]
cmp w0, 0
bne .L5
ldr x0, [sp, 16]
ldrb w0, [x0]
mov w1, w0
ldr x0, [sp, 40]
bl strchr
str x0, [sp, 32]
b .L6
.L5:
ldr x1, [sp, 16]
ldr x0, [sp, 40]
bl strpbrk
str x0, [sp, 32]
.L6:
ldr x0, [sp, 32]
cmp x0, 0
bne .L7
ldr x0, [sp, 24]
str xzr, [x0]
ldr x0, [sp, 40]
b .L3
.L7:
ldr x0, [sp, 32]
strb wzr, [x0]
ldr x0, [sp, 32]
add x1, x0, 1
ldr x0, [sp, 24]
str x1, [x0]
ldr x0, [sp, 40]
.L3:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size strsep, .-strsep
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global num_loop
.data
.align 2
.type num_loop, %object
.size num_loop, 4
num_loop:
.word 100
.global semid
.bss
.align 2
.type semid, %object
.size semid, 4
semid:
.zero 4
.text
.align 2
.type my_yield, %function
my_yield:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
mov w0, 0
bl usleep
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size my_yield, .-my_yield
.section .rodata
.align 3
.LC0:
.string "Usage: %s -h -l NUML -t NUMT\n\t -h Help!\n\t -l Number of loops: Default: %d\n\t -t Number of threads to generate: Default: %d\n"
.text
.align 2
.type usage, %function
usage:
.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]
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x5, [x0]
adrp x0, num_loop
add x0, x0, :lo12:num_loop
ldr w0, [x0]
mov w4, 60
mov w3, w0
ldr x2, [sp, 24]
adrp x0, .LC0
add x1, x0, :lo12:.LC0
mov x0, x5
bl fprintf
mov w0, -1
bl exit
.cfi_endproc
.LFE7:
.size usage, .-usage
.section .rodata
.align 3
.LC1:
.string "program.c"
.align 3
.LC2:
.string "0"
.align 3
.LC3:
.string "pid[%d]: fail: bad sentinel value\n"
.text
.align 2
.global allocate_free
.type allocate_free, %function
allocate_free:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -176]!
.cfi_def_cfa_offset 176
.cfi_offset 29, -176
.cfi_offset 30, -168
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, -160
.cfi_offset 20, -152
.cfi_offset 21, -144
.cfi_offset 22, -136
.cfi_offset 23, -128
.cfi_offset 24, -120
.cfi_offset 25, -112
.cfi_offset 26, -104
.cfi_offset 27, -96
str w0, [x29, 108]
str w1, [x29, 104]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [x29, 168]
mov x1, 0
mov w0, 50
str w0, [x29, 124]
str wzr, [x29, 112]
b .L4
.L23:
mov x0, sp
mov x19, x0
mov x0, 5
str x0, [x29, 128]
mov x0, 8
str x0, [x29, 136]
ldrsw x0, [x29, 124]
sub x0, x0, #1
str x0, [x29, 152]
ldrsw x0, [x29, 124]
mov x24, x0
mov x25, 0
lsr x0, x24, 58
lsl x21, x25, 6
orr x21, x0, x21
lsl x20, x24, 6
ldrsw x0, [x29, 124]
mov x26, x0
mov x27, 0
lsr x0, x26, 58
lsl x23, x27, 6
orr x23, x0, x23
lsl x22, x26, 6
ldrsw x0, [x29, 124]
lsl x0, x0, 3
add x0, x0, 15
lsr x0, x0, 4
lsl x0, x0, 4
and x1, x0, -65536
sub x1, sp, x1
.L5:
cmp sp, x1
beq .L6
sub sp, sp, #65536
str xzr, [sp, 1024]
b .L5
.L6:
and x1, x0, 65535
sub sp, sp, x1
str xzr, [sp]
and x0, x0, 65535
cmp x0, 1024
bcc .L7
str xzr, [sp, 1024]
.L7:
add x0, sp, 16
add x0, x0, 7
lsr x0, x0, 3
lsl x0, x0, 3
str x0, [x29, 160]
str wzr, [x29, 116]
b .L8
.L18:
str xzr, [x29, 144]
ldr x0, [x29, 136]
bl malloc
mov x2, x0
ldr x0, [x29, 160]
ldrsw x1, [x29, 116]
str x2, [x0, x1, lsl 3]
ldr x0, [x29, 160]
ldrsw x1, [x29, 116]
ldr x0, [x0, x1, lsl 3]
cmp x0, 0
beq .L25
ldr x0, [x29, 160]
ldrsw x1, [x29, 116]
ldr x0, [x0, x1, lsl 3]
ldrsw x1, [x29, 116]
str x1, [x0]
ldr w0, [x29, 104]
cmp w0, 3
beq .L11
ldr w0, [x29, 104]
cmp w0, 3
bgt .L12
ldr w0, [x29, 104]
cmp w0, 2
beq .L13
ldr w0, [x29, 104]
cmp w0, 2
bgt .L12
ldr w0, [x29, 104]
cmp w0, 0
beq .L14
ldr w0, [x29, 104]
cmp w0, 1
beq .L15
b .L12
.L14:
ldr x1, [x29, 136]
ldr x0, [x29, 128]
add x0, x1, x0
str x0, [x29, 144]
ldr x0, [x29, 136]
str x0, [x29, 128]
b .L16
.L15:
ldr x0, [x29, 136]
lsl x0, x0, 1
str x0, [x29, 144]
b .L16
.L13:
ldr x1, [x29, 136]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
str x0, [x29, 144]
b .L16
.L11:
ldr x1, [x29, 136]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
str x0, [x29, 144]
b .L16
.L12:
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 212
adrp x0, .LC1
add x1, x0, :lo12:.LC1
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl __assert_fail
.L16:
ldr x1, [x29, 144]
ldr x0, [x29, 136]
cmp x1, x0
bcc .L26
ldr x0, [x29, 144]
str x0, [x29, 136]
bl my_yield
ldr w0, [x29, 116]
add w0, w0, 1
str w0, [x29, 116]
.L8:
ldr w1, [x29, 116]
ldr w0, [x29, 124]
cmp w1, w0
blt .L18
b .L10
.L25:
nop
b .L10
.L26:
nop
.L10:
str wzr, [x29, 120]
b .L19
.L22:
ldr x0, [x29, 160]
ldrsw x1, [x29, 120]
ldr x0, [x0, x1, lsl 3]
ldr x1, [x0]
ldrsw x0, [x29, 120]
cmp x1, x0
beq .L20
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x20, [x0]
bl getpid
mov w2, w0
adrp x0, .LC3
add x1, x0, :lo12:.LC3
mov x0, x20
bl fprintf
mov w0, 1
mov sp, x19
b .L21
.L20:
ldr x0, [x29, 160]
ldrsw x1, [x29, 120]
ldr x0, [x0, x1, lsl 3]
bl free
bl my_yield
ldr w0, [x29, 120]
add w0, w0, 1
str w0, [x29, 120]
.L19:
ldr w1, [x29, 120]
ldr w0, [x29, 116]
cmp w1, w0
blt .L22
bl my_yield
mov sp, x19
ldr w0, [x29, 112]
add w0, w0, 1
str w0, [x29, 112]
.L4:
ldr w1, [x29, 112]
ldr w0, [x29, 108]
cmp w1, w0
blt .L23
mov w0, 0
.L21:
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [x29, 168]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L24
bl __stack_chk_fail
.L24:
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], 176
.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
.LFE8:
.size allocate_free, .-allocate_free
.section .rodata
.align 3
.LC4:
.string "semop"
.align 3
.LC5:
.string "failed"
.align 3
.LC6:
.string "succeeded"
.align 3
.LC7:
.string "Thread [%d]: allocate_free() returned %d, %s. Thread exiting.\n"
.text
.align 2
.global alloc_mem
.type alloc_mem, %function
alloc_mem:
.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, 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
strh wzr, [sp, 48]
strh wzr, [sp, 50]
strh wzr, [sp, 52]
adrp x0, semid
add x0, x0, :lo12:semid
ldr w0, [x0]
add x1, sp, 48
mov x2, 1
bl semop
cmn w0, #1
bne .L28
bl __errno_location
ldr w0, [x0]
cmp w0, 43
beq .L29
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl perror
.L29:
mov x0, -1
b .L35
.L28:
adrp x0, num_loop
add x0, x0, :lo12:num_loop
ldr w0, [x0]
ldr x1, [sp, 24]
and w1, w1, 3
bl allocate_free
str w0, [sp, 44]
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x5, [x0]
ldr x0, [sp, 24]
mov w1, w0
ldr w0, [sp, 44]
cmp w0, 0
beq .L31
adrp x0, .LC5
add x0, x0, :lo12:.LC5
b .L32
.L31:
adrp x0, .LC6
add x0, x0, :lo12:.LC6
.L32:
mov x4, x0
ldr w3, [sp, 44]
mov w2, w1
adrp x0, .LC7
add x1, x0, :lo12:.LC7
mov x0, x5
bl fprintf
ldr w0, [sp, 44]
cmp w0, 0
beq .L33
mov x0, -1
b .L35
.L33:
mov x0, 0
.L35:
mov x1, x0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 56]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L36
bl __stack_chk_fail
.L36:
mov x0, x1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size alloc_mem, .-alloc_mem
.section .rodata
.align 3
.LC8:
.string "%s: option -%c "
.align 3
.LC9:
.string "requires an argument\n"
.align 3
.LC10:
.string "WARNING: bad argument. Using default\n"
.align 3
.LC11:
.string "hl:t:"
.align 3
.LC12:
.string "main(): allocating space for thrdid[] malloc()"
.align 3
.LC13:
.string "Semaphore creation failed Reason:"
.align 3
.LC14:
.string "main(): pthread_create failed with EINTR!\n"
.align 3
.LC15:
.string "main(): pthread_create()"
.align 3
.LC16:
.string "main(): pthread_join()"
.align 3
.LC17:
.string "main(): thread [%d] - exited with errors\n"
.align 3
.LC18:
.string "main(): test passed."
.align 3
.LC19:
.string "semctl\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB10:
.cfi_startproc
stp x29, x30, [sp, -96]!
.cfi_def_cfa_offset 96
.cfi_offset 29, -96
.cfi_offset 30, -88
mov x29, sp
str 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
mov w0, 60
str w0, [sp, 44]
str wzr, [sp, 52]
b .L38
.L47:
ldr w0, [sp, 56]
cmp w0, 116
beq .L39
ldr w0, [sp, 56]
cmp w0, 116
bgt .L40
ldr w0, [sp, 56]
cmp w0, 104
beq .L41
ldr w0, [sp, 56]
cmp w0, 108
beq .L42
b .L40
.L41:
ldr x0, [sp, 16]
ldr x0, [x0]
bl usage
b .L38
.L42:
adrp x0, :got:optarg
ldr x0, [x0, #:got_lo12:optarg]
ldr x0, [x0]
bl atoi
mov w1, w0
adrp x0, num_loop
add x0, x0, :lo12:num_loop
str w1, [x0]
adrp x0, num_loop
add x0, x0, :lo12:num_loop
ldr w0, [x0]
cmp w0, 0
bne .L43
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x4, [x0]
ldr x0, [sp, 16]
ldr x1, [x0]
adrp x0, :got:optopt
ldr x0, [x0, #:got_lo12:optopt]
ldr w0, [x0]
mov w3, w0
mov x2, x1
adrp x0, .LC8
add x1, x0, :lo12:.LC8
mov x0, x4
bl fprintf
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 21
mov x1, 1
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl fwrite
ldr x0, [sp, 16]
ldr x0, [x0]
bl usage
b .L38
.L43:
adrp x0, num_loop
add x0, x0, :lo12:num_loop
ldr w0, [x0]
cmp w0, 0
bgt .L38
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 37
mov x1, 1
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl fwrite
adrp x0, num_loop
add x0, x0, :lo12:num_loop
mov w1, 100
str w1, [x0]
b .L38
.L39:
adrp x0, :got:optarg
ldr x0, [x0, #:got_lo12:optarg]
ldr x0, [x0]
bl atoi
str w0, [sp, 44]
ldr w0, [sp, 44]
cmp w0, 0
bne .L45
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x4, [x0]
ldr x0, [sp, 16]
ldr x1, [x0]
adrp x0, :got:optopt
ldr x0, [x0, #:got_lo12:optopt]
ldr w0, [x0]
mov w3, w0
mov x2, x1
adrp x0, .LC8
add x1, x0, :lo12:.LC8
mov x0, x4
bl fprintf
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 21
mov x1, 1
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl fwrite
ldr x0, [sp, 16]
ldr x0, [x0]
bl usage
b .L38
.L45:
ldr w0, [sp, 44]
cmp w0, 0
bgt .L38
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 37
mov x1, 1
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl fwrite
mov w0, 60
str w0, [sp, 44]
b .L38
.L40:
ldr x0, [sp, 16]
ldr x0, [x0]
bl usage
nop
.L38:
adrp x0, .LC11
add x2, x0, :lo12:.LC11
ldr x1, [sp, 16]
ldr w0, [sp, 28]
bl getopt
str w0, [sp, 56]
ldr w0, [sp, 56]
cmn w0, #1
bne .L47
ldrsw x0, [sp, 44]
lsl x0, x0, 3
bl malloc
str x0, [sp, 72]
ldr x0, [sp, 72]
cmp x0, 0
bne .L48
adrp x0, .LC12
add x0, x0, :lo12:.LC12
bl perror
mov w0, 1
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 .L65
b .L66
.L48:
mov w2, 950
mov w1, 1
mov w0, 0
bl semget
mov w1, w0
adrp x0, semid
add x0, x0, :lo12:semid
str w1, [x0]
adrp x0, semid
add x0, x0, :lo12:semid
ldr w0, [x0]
cmp w0, 0
bge .L50
adrp x0, .LC13
add x0, x0, :lo12:.LC13
bl perror
.L50:
strh wzr, [sp, 80]
mov w0, 1
strh w0, [sp, 82]
strh wzr, [sp, 84]
adrp x0, semid
add x0, x0, :lo12:semid
ldr w0, [x0]
add x1, sp, 80
mov x2, 1
bl semop
cmn w0, #1
bne .L51
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl perror
mov w0, -1
str w0, [sp, 52]
b .L52
.L51:
str wzr, [sp, 48]
b .L53
.L56:
ldrsw x0, [sp, 48]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x4, x1, x0
ldrsw x0, [sp, 48]
mov x3, x0
adrp x0, alloc_mem
add x2, x0, :lo12:alloc_mem
mov x1, 0
mov x0, x4
bl pthread_create
cmp w0, 0
beq .L54
bl __errno_location
ldr w0, [x0]
str w0, [sp, 60]
ldr w0, [sp, 60]
cmp w0, 4
bne .L55
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 42
mov x1, 1
adrp x0, .LC14
add x0, x0, :lo12:.LC14
bl fwrite
mov w0, -1
str w0, [sp, 52]
b .L52
.L55:
adrp x0, .LC15
add x0, x0, :lo12:.LC15
bl perror
mov w0, -11
str w0, [sp, 52]
b .L52
.L54:
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
.L53:
ldr w1, [sp, 48]
ldr w0, [sp, 44]
cmp w1, w0
blt .L56
bl my_yield
mov w0, -1
strh w0, [sp, 82]
adrp x0, semid
add x0, x0, :lo12:semid
ldr w0, [x0]
add x1, sp, 80
mov x2, 1
bl semop
cmn w0, #1
bne .L57
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl perror
mov w0, -1
str w0, [sp, 52]
b .L52
.L57:
str wzr, [sp, 48]
b .L58
.L62:
ldrsw x0, [sp, 48]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
ldr x0, [x0]
add x1, sp, 64
bl pthread_join
cmp w0, 0
beq .L59
adrp x0, .LC16
add x0, x0, :lo12:.LC16
bl perror
mov w0, -1
str w0, [sp, 52]
b .L52
.L59:
ldr x0, [sp, 64]
cmp x0, 0
beq .L61
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
ldr w2, [sp, 48]
adrp x0, .LC17
add x1, x0, :lo12:.LC17
mov x0, x3
bl fprintf
mov w0, -1
str w0, [sp, 52]
b .L52
.L61:
bl my_yield
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
.L58:
ldr w1, [sp, 48]
ldr w0, [sp, 44]
cmp w1, w0
blt .L62
adrp x0, .LC18
add x0, x0, :lo12:.LC18
bl puts
.L52:
adrp x0, semid
add x0, x0, :lo12:semid
ldr w0, [x0]
mov w2, 0
mov w1, 0
bl semctl
cmn w0, #1
bne .L63
adrp x0, .LC19
add x0, x0, :lo12:.LC19
bl perror
mov w0, -1
str w0, [sp, 52]
.L63:
ldr x0, [sp, 72]
cmp x0, 0
beq .L64
ldr x0, [sp, 72]
bl free
str xzr, [sp, 72]
.L64:
ldr w0, [sp, 52]
bl exit
.L66:
bl __stack_chk_fail
.L65:
mov w0, w1
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size main, .-main
.section .rodata
.align 3
.type __PRETTY_FUNCTION__.0, %object
.size __PRETTY_FUNCTION__.0, 14
__PRETTY_FUNCTION__.0:
.string "allocate_free"
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "%d"
.align 3
.LC1:
.string " "
.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 w0, 1
str w0, [sp, 28]
mov w0, 1
str w0, [sp, 28]
b .L2
.L3:
ldr w1, [sp, 28]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L2:
ldr w0, [sp, 28]
cmp w0, 10
ble .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
.section .rodata
.align 3
.LC0:
.string "e1=%d,e2=%d,e3=%d,e4=%d\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
mov w4, 20
mov w3, 11
mov w2, 10
mov w1, 0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
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
.section .rodata
.align 3
.LC0:
.string "uname"
.align 3
.LC1:
.string "sysname %s\n"
.align 3
.LC2:
.string "nodename %s\n"
.align 3
.LC3:
.string "release %s\n"
.align 3
.LC4:
.string "version %s\n"
.align 3
.LC5:
.string "machine %s\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -448]!
.cfi_def_cfa_offset 448
.cfi_offset 29, -448
.cfi_offset 30, -440
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, 440]
mov x1, 0
add x0, sp, 48
bl uname
str w0, [sp, 44]
ldr w0, [sp, 44]
cmn w0, #1
bne .L2
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl perror
mov w0, -1
b .L4
.L2:
add x0, sp, 48
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
add x0, sp, 48
add x0, x0, 65
mov x1, x0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
add x0, sp, 48
add x0, x0, 130
mov x1, x0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
add x0, sp, 48
add x0, x0, 195
mov x1, x0
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
add x0, sp, 48
add x0, x0, 260
mov x1, x0
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
mov w0, 0
.L4:
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 440]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L5
bl __stack_chk_fail
.L5:
mov w0, w1
ldp x29, x30, [sp], 448
.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 "O n\303\272mero digitado \303\251 positivo."
.align 3
.LC1:
.string "O n\303\272mero digitado \303\251 negativo."
.text
.align 2
.global verificaNumero
.type verificaNumero, %function
verificaNumero:
.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 w0, [sp, 28]
cmp w0, 0
ble .L2
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
b .L3
.L2:
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
.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 verificaNumero, .-verificaNumero
.section .rodata
.align 3
.LC2:
.string "Digite aqui o n\303\272mero: "
.align 3
.LC3:
.string "%d"
.text
.align 2
.global main
.type main, %function
main:
.LFB7:
.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
ldr w0, [sp, 20]
bl verificaNumero
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 24]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L7
bl __stack_chk_fail
.L7:
mov w0, w1
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.type image_missing_16x16_png, %object
.size image_missing_16x16_png, 427
image_missing_16x16_png:
.string "\211PNG\r\n\032\n"
.string ""
.string ""
.string "\rIHDR"
.string ""
.string ""
.string "\020"
.string ""
.string ""
.string "\020\b\006"
.string ""
.string ""
.string "\037\363\377a"
.string ""
.string ""
.string "\006bKGD"
.string "\377"
.string "\377"
.string "\377\240\275\247\223"
.string ""
.string ""
.string "\tpHYs"
.string ""
.string "\r\327"
.string ""
.string "\r\327\001B(\233x"
.string ""
.string ""
.string "\007tIME\007\325\t\033\024\021+\340eD/"
.string ""
.string "\0018IDAT8\313\275\223\337*\204Q\024\305\177k\357=&\222(\345\002\245\f)\271\360<\336\302;L\246\to\341\215L\241\241\334q\241\246A\222\371\276\355B\363\215\017%sa\325\351\374\333{\355u\316YG\235n\373\0048d:\234\322\351\266\263,\313\251Z\247\333\316"
.string "\310Lz\275\336\237J\267Z-"
.string "\002@R\265\360WT\n\256o/\353\033\321 \334q\017\334\203\210 \314\361h\340\0364\033\315\t\301\030\253+\353\325X\322G\217H\222q!"
.string "7\253+\250Ap\263\264\f\300\366p\300\325\302\""
.string "[\303\001Y&\231%\366\211\300\276\346\233\234\355\341"
.string "\240J\336yz\304\31503$\253\021\324\024\230\tI\265"
.string "\200p\247\314\004%\b$\253\216S\213\224\f\223q1\277"
.string "\300\336\353+"
.string "\347\263s\230\031f\302\020\346?(\030W\225\304\356\31332\307L\354\217F\224\t\231\005Y$2\3412\n\212:\201d\334?\334\021\036\304\370\351\334\361\230\314\335\203\306\314\f\372\351\0166\3266\177wM\302\350\255`\364V|'\350\367\373\377k\345fs\342\304\263\356\361\321\301\264\337\371\035\001\237\215\233N\365v\221"
.string ""
.string ""
.string ""
.ascii "IEND\256B`\202"
.align 3
.type image_missing_24x24_png, %object
.size image_missing_24x24_png, 933
image_missing_24x24_png:
.string "\211PNG\r\n\032\n"
.string ""
.string ""
.string "\rIHDR"
.string ""
.string ""
.string "\030"
.string ""
.string ""
.string "\030\020\006"
.string ""
.string ""
.string "\260\347\341\273"
.string ""
.string ""
.string "\006bKGD"
.string "\377"
.string "\377"
.string "\377\240\275\247\223"
.string ""
.string ""
.string "\tpHYs"
.string ""
.string "\r\327"
.string ""
.string "\r\327\001B(\233x"
.string ""
.string ""
.string "\tvpAg"
.string ""
.string ""
.string "\030"
.string ""
.string ""
.string "\030"
.string "xL\245\246"
.string ""
.string "\0030IDATX\303\355WMK2Q\024>\367^uJ\305\205h#\205CD\266(\334\324O\220\332\270\311\276~\201\277\240\240\"[\026\204\253>\266\032\326\256E\375\206Z\324\326@\211V!B0\202\330\340\3400\342|\274\213\333e\320\222\231zE\341\345}6\207{\347\314\235\3479\347\314=\367\002\374\307h\201z'NN\262\331\343\343\255-:\272\271\0315\301n\354\355\355\357\357\356f2\331l_\027*\3004EQ\024E\321\0349dY\226e\3314\031\257^\276\256~Bx\236\347y\036\240T*\225J\245oR\207\020B\350\353\370\247\363v~\261X,\026\213Y\343t:\235N\2471\316\345r\271\\\3160\372\n`\210\307\343\361x|h5\342\020\226D[\001\345\362\353\353\363\263\375r\204`\2141"
.string "\306\324\"\204\020\035\023B\b"
.string "\3064\262\275~\030c\354ru\217\021\242\376\204"
.string "\204\303\241\020\317\367\377\266\255"
.string "\206\251)\236\217F\207\027c\323\0040\f{?<<J?\003\306\030\0232D\001oo\301`(dYE\271\277\177x\260\236\277\277//\257\254"
.string "T*\263\263ss\316\004`\007\354l]\020\2425i\207\211\211|>\227\263\306\242\270\266\266\276\016\320l\026\nWW"
.string "\272^\253\325j"
.string "^o\"\221H8\0230\220\f\020\342l!\277?\225Z]\005\210D\356\356no\255\371z}{{g\007@\327\033\215\217\017"
.string "\217gaa~\336\231\200\201d\300\351B\f\232V\251T*"
.string "\034\267\264\264\270h\315\233\246\242(\n"
.string "\306\201@ `\277\216\323\3009\022\340d!I:?\277\270"
.string "\220\244\323\323\2633"
.string "\303\220eY\006\020\204\227\227r\331\362c\031a\245\325\017\b\321\355\327\016\266\333h\277\fh\232(\212\"@\263\231\317_^\002\250\352\343\343\323\023\200\337\277\271\271\261AK*\225\002p\271\"\221H\004`f\246\321\250\327\355\tY\031\240}d"
.string "\002hC\371\362\342'\261`0\22398pN\314)0&d \002\b\241\013)\212\252\322\032f\235\222\226\026\353\254\bY\235\224\316\323\b\"D\337g\201`\304\254\347\275\235\231\3729\331\371\034\t\210F''\247\247\007\037\341A\301V@\265Z\255V\253\277?M\376\355)5\034\016\207\303\341_\b\250\325h\343\021\004A\020\204\321E\230\361\350\206uJ\352#\340\350\250P\270\276\316\347\017\017GG\375{^\364\036`]l\372\376*\311d2\231L\216\217\033\206a\030\006\317K\222$I\222\327\333j\265Z\255\226\327\253\252\252\252\252^\257\246i\232\246\215\215\351\272\256\353:\307Q\353\361\320\373\224\313E-!\2644L\223ZM\243?m\247C\b!\204\264\333n\267\333\355v+\n\307q\034\307)\212\317\347\363\371|\255V\273\335n\267\333\242X,\026\213\305\242$9\314"
.string "C\247C-\333\301]\237\376lce\004\335nj1\356\266\204\320"
.string "\320\275\006c\0269]\247\317\031\021f5\355{\253(\275\304\377\031\374\001a\020\340\366\2413u\201"
.string ""
.string ""
.string ""
.ascii "IEND\256B`\202"
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global MF_MT_MPEG_START_TIME_CODE
.section .rodata
.align 3
.type MF_MT_MPEG_START_TIME_CODE, %object
.size MF_MT_MPEG_START_TIME_CODE, 24
MF_MT_MPEG_START_TIME_CODE:
.xword 2448849029
.hword 17203
.hword 17024
.ascii "\227\315\275Zl\003\240n"
.zero 4
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global check
.type check, %function
check:
.LFB0:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, 12]
ldr w0, [sp, 12]
cmp w0, 1
bne .L4
mov w0, 0
b .L3
.L4:
nop
.L2:
mov w0, 0
.L3:
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size check, .-check
.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
str wzr, [sp, 20]
str wzr, [sp, 24]
ldr w0, [sp, 24]
cmp w0, 0
bne .L6
mov w0, 0
b .L7
.L6:
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
ldr w0, [sp, 20]
bl check
str w0, [sp, 28]
ldr w0, [sp, 28]
.L7:
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
.align 2
.global index_BF
.type index_BF, %function
index_BF:
.LFB6:
.cfi_startproc
stp x19, x20, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 19, -48
.cfi_offset 20, -40
mov x20, x0
mov x19, x1
str w2, [sp, 28]
mov w0, 1
str w0, [sp, 44]
b .L2
.L5:
ldrsw x0, [sp, 28]
ldrb w1, [x20, x0]
ldrsw x0, [sp, 44]
ldrb w0, [x19, x0]
cmp w1, w0
bne .L3
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
b .L2
.L3:
ldr w1, [sp, 28]
ldr w0, [sp, 44]
sub w0, w1, w0
add w0, w0, 2
str w0, [sp, 28]
mov w0, 1
str w0, [sp, 44]
.L2:
ldr w0, [x20, 256]
ldr w1, [sp, 28]
cmp w1, w0
bgt .L4
ldr w0, [x19, 256]
ldr w1, [sp, 44]
cmp w1, w0
ble .L5
.L4:
ldr w0, [x19, 256]
ldr w1, [sp, 44]
cmp w1, w0
ble .L6
ldr w0, [x19, 256]
ldr w1, [sp, 28]
sub w0, w1, w0
b .L8
.L6:
mov w0, 0
.L8:
ldp x19, x20, [sp], 48
.cfi_restore 20
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size index_BF, .-index_BF
.align 2
.global index_KMP
.type index_KMP, %function
index_KMP:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
.cfi_def_cfa_register 29
stp x19, x20, [sp, 16]
sub sp, sp, #16
.cfi_offset 19, -64
.cfi_offset 20, -56
mov x20, x0
mov x19, x1
str w2, [x29, 44]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [x29, 72]
mov x1, 0
mov x0, sp
mov x3, x0
ldr w0, [x19, 256]
sxtw x1, w0
sub x1, x1, #1
str x1, [x29, 56]
sxtw x1, w0
mov x10, x1
mov x11, 0
lsr x1, x10, 59
lsl x7, x11, 5
orr x7, x1, x7
lsl x6, x10, 5
sxtw x1, w0
mov x8, x1
mov x9, 0
lsr x1, x8, 59
lsl x5, x9, 5
orr x5, x1, x5
lsl x4, x8, 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
.L10:
cmp sp, x1
beq .L11
sub sp, sp, #65536
str xzr, [sp, 1024]
b .L10
.L11:
and x1, x0, 65535
sub sp, sp, x1
str xzr, [sp]
and x0, x0, 65535
cmp x0, 1024
bcc .L12
str xzr, [sp, 1024]
.L12:
add x0, sp, 16
add x0, x0, 3
lsr x0, x0, 2
lsl x0, x0, 2
str x0, [x29, 64]
mov w0, 1
str w0, [x29, 48]
str wzr, [x29, 52]
ldr x0, [x29, 64]
str wzr, [x0, 4]
b .L13
.L18:
ldr w0, [x29, 48]
cmp w0, 0
beq .L14
ldrsw x0, [x29, 48]
ldrb w1, [x19, x0]
ldrsw x0, [x29, 52]
ldrb w0, [x19, x0]
cmp w1, w0
bne .L15
.L14:
ldr w0, [x29, 48]
add w0, w0, 1
str w0, [x29, 48]
ldr w0, [x29, 52]
add w0, w0, 1
str w0, [x29, 52]
ldrsw x0, [x29, 48]
ldrb w1, [x19, x0]
ldrsw x0, [x29, 52]
ldrb w0, [x19, x0]
cmp w1, w0
bne .L16
ldr x0, [x29, 64]
ldrsw x1, [x29, 52]
ldr w0, [x0, x1, lsl 2]
b .L17
.L16:
ldr w0, [x29, 52]
.L17:
ldr x1, [x29, 64]
ldrsw x2, [x29, 48]
str w0, [x1, x2, lsl 2]
b .L13
.L15:
ldr x0, [x29, 64]
ldrsw x1, [x29, 48]
ldr w0, [x0, x1, lsl 2]
str w0, [x29, 48]
.L13:
ldr w0, [x19, 256]
ldr w1, [x29, 48]
cmp w1, w0
blt .L18
mov w0, 1
str w0, [x29, 48]
b .L19
.L23:
ldr w0, [x29, 48]
cmp w0, 0
beq .L20
ldrsw x0, [x29, 44]
ldrb w1, [x20, x0]
ldrsw x0, [x29, 48]
ldrb w0, [x19, x0]
cmp w1, w0
bne .L21
.L20:
ldr w0, [x29, 44]
add w0, w0, 1
str w0, [x29, 44]
ldr w0, [x29, 48]
add w0, w0, 1
str w0, [x29, 48]
b .L19
.L21:
ldr x0, [x29, 64]
ldrsw x1, [x29, 48]
ldr w0, [x0, x1, lsl 2]
str w0, [x29, 48]
.L19:
ldr w0, [x20, 256]
ldr w1, [x29, 44]
cmp w1, w0
bgt .L22
ldr w0, [x19, 256]
ldr w1, [x29, 48]
cmp w1, w0
ble .L23
.L22:
ldr w0, [x19, 256]
ldr w1, [x29, 48]
cmp w1, w0
ble .L24
ldr w0, [x19, 256]
ldr w1, [x29, 44]
sub w0, w1, w0
b .L25
.L24:
mov w0, 0
.L25:
mov sp, x3
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [x29, 72]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L27
bl __stack_chk_fail
.L27:
mov w0, w1
mov sp, x29
ldp x19, x20, [sp, 16]
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_restore 20
.cfi_def_cfa 31, 0
ret
.cfi_endproc
.LFE7:
.size index_KMP, .-index_KMP
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global recvbuf
.bss
.align 3
.type recvbuf, %object
.size recvbuf, 1048576
recvbuf:
.zero 1048576
.section .rodata
.align 3
.LC0:
.string "Socket error: socket()"
.align 3
.LC1:
.string "Socket error: bind()"
.align 3
.LC2:
.string "Socket error: listen()"
.align 3
.LC3:
.string "Socket error: accept()"
.text
.align 2
.global init_server_socket
.type init_server_socket, %function
init_server_socket:
.LFB34:
.cfi_startproc
stp x29, x30, [sp, -96]!
.cfi_def_cfa_offset 96
.cfi_offset 29, -96
.cfi_offset 30, -88
mov x29, sp
str x0, [sp, 24]
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 w2, 0
mov w1, 1
mov w0, 2
bl socket
str w0, [sp, 48]
ldr w0, [sp, 48]
cmn w0, #1
bne .L2
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
mov w0, 0
b .L8
.L2:
add x0, sp, 56
mov x2, 16
mov w1, 0
bl memset
mov w0, 2
strh w0, [sp, 56]
str wzr, [sp, 60]
mov w0, 8756
bl htons
and w0, w0, 65535
strh w0, [sp, 58]
add x0, sp, 56
mov w2, 16
mov x1, x0
ldr w0, [sp, 48]
bl bind
cmn w0, #1
bne .L4
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl puts
b .L5
.L4:
mov w1, 5
ldr w0, [sp, 48]
bl listen
cmn w0, #1
bne .L6
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl puts
b .L5
.L6:
mov w0, 16
str w0, [sp, 44]
add x1, sp, 44
add x0, sp, 72
mov x2, x1
mov x1, x0
ldr w0, [sp, 48]
bl accept
str w0, [sp, 52]
ldr w0, [sp, 52]
cmn w0, #1
bne .L7
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl puts
b .L5
.L7:
ldr x0, [sp, 24]
ldr w1, [sp, 52]
str w1, [x0]
ldr w0, [sp, 48]
b .L8
.L5:
ldr w0, [sp, 48]
bl close
mov w0, -1
bl exit
.L8:
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
.LFE34:
.size init_server_socket, .-init_server_socket
.section .rodata
.align 3
.LC4:
.string "Socket error: recv()"
.align 3
.LC5:
.string "total size=%d\n"
.align 3
.LC6:
.string "Error allocating memory for input buffer."
.align 3
.LC7:
.string "Server: Warmup..."
.align 3
.LC8:
.string "I/O error"
.align 3
.LC9:
.string "Socket error: cannot send recv to client"
.align 3
.LC10:
.string "Send Ack"
.align 3
.LC11:
.string "Server: Real Run..."
.align 3
.LC12:
.string "Complete: %12u(%d%)\n"
.align 3
.LC13:
.string "Complete: %12u(100%)\n"
.align 3
.LC14:
.string "Data size = %dB, time = %9.6fs, BW = %8.3fMB/s\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB35:
.cfi_startproc
stp x29, x30, [sp, -240]!
.cfi_def_cfa_offset 240
.cfi_offset 29, -240
.cfi_offset 30, -232
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 232]
mov x1, 0
str wzr, [sp, 56]
str wzr, [sp, 60]
str wzr, [sp, 40]
str wzr, [sp, 44]
add x0, sp, 36
bl init_server_socket
str w0, [sp, 64]
ldr w0, [sp, 36]
add x1, sp, 40
mov w3, 0
mov x2, 4
bl recv
str w0, [sp, 56]
ldr w0, [sp, 56]
cmn w0, #1
bne .L11
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl puts
.L11:
ldr w0, [sp, 40]
mov w1, w0
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
ldr w0, [sp, 40]
sxtw x0, w0
mov x1, 1
bl calloc
str x0, [sp, 80]
ldr x0, [sp, 80]
cmp x0, 0
bne .L12
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl puts
.L12:
mov w0, 1
str w0, [sp, 68]
ldr w0, [sp, 40]
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, 48]
ldr w0, [sp, 40]
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, 72]
str wzr, [sp, 52]
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl puts
ldr w0, [sp, 40]
mov w2, 16777216
mov w1, 16777216
cmp w0, w2
csel w0, w0, w1, le
str w0, [sp, 76]
str wzr, [sp, 44]
b .L13
.L15:
ldr w4, [sp, 36]
ldr w0, [sp, 44]
sxtw x0, w0
ldr x1, [sp, 80]
add x5, x1, x0
ldr w0, [sp, 44]
ldr w1, [sp, 76]
sub w0, w1, w0
sxtw x0, w0
mov w3, 0
mov x2, x0
mov x1, x5
mov w0, w4
bl recv
str w0, [sp, 56]
ldr w0, [sp, 56]
cmn w0, #1
bne .L14
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl puts
mov w0, 1
bl exit
.L14:
ldr w1, [sp, 44]
ldr w0, [sp, 56]
add w0, w1, w0
str w0, [sp, 44]
.L13:
ldr w0, [sp, 44]
ldr w1, [sp, 76]
cmp w1, w0
bgt .L15
ldr w0, [sp, 36]
add x1, sp, 44
mov w3, 0
mov x2, 4
bl send
cmn x0, #1
bne .L16
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl puts
.L16:
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl puts
adrp x0, .LC11
add x0, x0, :lo12:.LC11
bl puts
add x0, sp, 96
mov x1, 0
bl gettimeofday
str wzr, [sp, 44]
b .L17
.L19:
ldr w4, [sp, 36]
ldr w0, [sp, 44]
sxtw x0, w0
ldr x1, [sp, 80]
add x5, x1, x0
ldr w1, [sp, 40]
ldr w0, [sp, 44]
sub w0, w1, w0
sxtw x0, w0
mov w3, 0
mov x2, x0
mov x1, x5
mov w0, w4
bl recv
str w0, [sp, 56]
ldr w0, [sp, 56]
cmn w0, #1
bne .L18
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl puts
mov w0, 1
bl exit
.L18:
ldr w1, [sp, 44]
ldr w0, [sp, 56]
add w0, w1, w0
str w0, [sp, 44]
ldr w0, [sp, 44]
ldr w1, [sp, 48]
cmp w1, w0
bge .L17
ldr w0, [sp, 52]
add w0, w0, 10
str w0, [sp, 52]
ldr w0, [sp, 44]
ldr w2, [sp, 52]
mov w1, w0
adrp x0, .LC12
add x0, x0, :lo12:.LC12
bl printf
ldr w1, [sp, 48]
ldr w0, [sp, 72]
add w0, w1, w0
str w0, [sp, 48]
.L17:
ldr w1, [sp, 44]
ldr w0, [sp, 40]
cmp w1, w0
blt .L19
ldr w0, [sp, 44]
mov w1, w0
adrp x0, .LC13
add x0, x0, :lo12:.LC13
bl printf
add x0, sp, 112
mov x1, 0
bl gettimeofday
ldr x1, [sp, 112]
mov x0, 16960
movk x0, 0xf, lsl 16
mul x1, x1, x0
ldr x0, [sp, 120]
add x1, x1, x0
ldr x2, [sp, 96]
mov x0, 16960
movk x0, 0xf, lsl 16
mul x2, x2, x0
ldr x0, [sp, 104]
add x0, x2, x0
sub x0, x1, x0
str x0, [sp, 88]
ldr w1, [sp, 44]
ldr d0, [sp, 88]
ucvtf d0, d0
mov x0, 145685290680320
movk x0, 0x412e, lsl 48
fmov d1, x0
fdiv d2, d0, d1
ldr w0, [sp, 44]
scvtf d1, w0
ldr d0, [sp, 88]
ucvtf d0, d0
fdiv d0, d1, d0
fmov d1, d0
fmov d0, d2
adrp x0, .LC14
add x0, x0, :lo12:.LC14
bl printf
ldr w0, [sp, 36]
add x1, sp, 44
mov w3, 0
mov x2, 4
bl send
cmn x0, #1
bne .L20
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl puts
.L20:
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl puts
ldr w0, [sp, 36]
bl close
ldr w0, [sp, 64]
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, 232]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L22
bl __stack_chk_fail
.L22:
mov w0, w1
ldp x29, x30, [sp], 240
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE35:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC1:
.string "A man a plan a canal Panama"
.align 3
.LC2:
.string "Superman in the sky"
.align 3
.LC3:
.string "()"
.align 3
.LC4:
.string "not balanced!"
.align 3
.LC5:
.string "balanced!"
.align 3
.LC6:
.string "[()]"
.align 3
.LC7:
.string "{[]()[]}"
.align 3
.LC8:
.string "[({{)])"
.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
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 136]
mov x1, 0
adrp x0, .LC0
add x1, x0, :lo12:.LC0
add x0, sp, 88
ldp q0, q1, [x1]
stp q0, q1, [x0]
ldr q0, [x1, 28]
str q0, [x0, 28]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
str x0, [sp, 24]
adrp x0, .LC2
add x0, x0, :lo12:.LC2
str x0, [sp, 32]
str xzr, [sp, 48]
str wzr, [sp, 40]
str xzr, [sp, 56]
str wzr, [sp, 20]
b .L2
.L3:
ldrsw x0, [sp, 20]
lsl x0, x0, 2
add x1, sp, 88
ldr w1, [x1, x0]
add x0, sp, 40
bl push
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
.L2:
ldr w0, [sp, 20]
cmp w0, 10
ble .L3
ldr x0, [sp, 48]
bl printList
add x0, sp, 40
mov w1, 5
bl removeUntil
ldr x0, [sp, 48]
bl printList
str xzr, [sp, 72]
str wzr, [sp, 64]
str xzr, [sp, 80]
str wzr, [sp, 20]
b .L4
.L5:
add x0, sp, 64
ldr w1, [sp, 20]
bl enqueue
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
.L4:
ldr w0, [sp, 20]
cmp w0, 9
ble .L5
ldr x0, [sp, 72]
bl printList
add x0, sp, 64
bl recursiveReverse
ldr x0, [sp, 72]
bl printList
ldr x0, [sp, 24]
bl palindrome
ldr x0, [sp, 32]
bl palindrome
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl balanced
cmp w0, 0
beq .L6
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl puts
b .L7
.L6:
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl puts
.L7:
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl balanced
cmp w0, 0
beq .L8
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl puts
b .L9
.L8:
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl puts
.L9:
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl balanced
cmp w0, 0
beq .L10
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl puts
b .L11
.L10:
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl puts
.L11:
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl balanced
cmp w0, 0
beq .L12
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl puts
b .L13
.L12:
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl puts
.L13:
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 .L15
bl __stack_chk_fail
.L15:
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
.LC0:
.word 1
.word 2
.word 3
.word 4
.word 5
.word 6
.word 5
.word 4
.word 3
.word 2
.word 1
.text
.align 2
.global removeUntil
.type removeUntil, %function
removeUntil:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
str w1, [sp, 20]
b .L17
.L19:
ldr x0, [sp, 24]
bl pop
.L17:
ldr x0, [sp, 24]
bl isEmptyStack
cmp w0, 0
bne .L20
ldr x0, [sp, 24]
bl peek
mov w1, w0
ldr w0, [sp, 20]
cmp w0, w1
bne .L19
.L20:
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size removeUntil, .-removeUntil
.align 2
.global recursiveReverse
.type recursiveReverse, %function
recursiveReverse:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
bl isEmptyQueue
cmp w0, 0
bne .L23
ldr x0, [sp, 24]
ldr x0, [x0, 8]
ldr w0, [x0]
str w0, [sp, 44]
ldr x0, [sp, 24]
bl dequeue
ldr x0, [sp, 24]
bl recursiveReverse
ldr w1, [sp, 44]
ldr x0, [sp, 24]
bl enqueue
.L23:
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size recursiveReverse, .-recursiveReverse
.section .rodata
.align 3
.LC9:
.string "The string is not a palindrome."
.align 3
.LC10:
.string "The string is a palindrome."
.text
.align 2
.global palindrome
.type palindrome, %function
palindrome:
.LFB9:
.cfi_startproc
stp x29, x30, [sp, -112]!
.cfi_def_cfa_offset 112
.cfi_offset 29, -112
.cfi_offset 30, -104
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -96
str x0, [sp, 40]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 104]
mov x1, 0
str wzr, [sp, 56]
str xzr, [sp, 72]
ldr x0, [sp, 72]
str x0, [sp, 64]
str wzr, [sp, 80]
str xzr, [sp, 96]
ldr x0, [sp, 96]
str x0, [sp, 88]
str wzr, [sp, 48]
b .L25
.L29:
ldrsw x0, [sp, 48]
ldr x1, [sp, 40]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 32
beq .L26
ldrsw x0, [sp, 48]
ldr x1, [sp, 40]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 64
bls .L27
ldrsw x0, [sp, 48]
ldr x1, [sp, 40]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 90
bhi .L27
ldrsw x0, [sp, 48]
ldr x1, [sp, 40]
add x0, x1, x0
ldrb w0, [x0]
add w0, w0, 32
b .L28
.L27:
ldrsw x0, [sp, 48]
ldr x1, [sp, 40]
add x0, x1, x0
ldrb w0, [x0]
.L28:
str w0, [sp, 52]
add x0, sp, 56
ldr w1, [sp, 52]
bl enqueue
add x0, sp, 80
ldr w1, [sp, 52]
bl push
.L26:
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
.L25:
ldrsw x0, [sp, 48]
ldr x1, [sp, 40]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 0
bne .L29
b .L30
.L32:
add x0, sp, 56
bl dequeue
mov w19, w0
add x0, sp, 80
bl pop
cmp w19, w0
beq .L30
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl puts
mov w0, -1
b .L33
.L30:
ldr w0, [sp, 56]
cmp w0, 0
bne .L32
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl puts
mov w0, 0
.L33:
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 .L34
bl __stack_chk_fail
.L34:
mov w0, w1
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
.LFE9:
.size palindrome, .-palindrome
.align 2
.global balanced
.type balanced, %function
balanced:
.LFB10:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 24]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 56]
mov x1, 0
str wzr, [sp, 32]
str xzr, [sp, 48]
ldr x0, [sp, 48]
str x0, [sp, 40]
b .L36
.L44:
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 40
beq .L37
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 91
beq .L37
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 123
bne .L38
.L37:
ldr x0, [sp, 24]
ldrb w0, [x0]
mov w1, w0
add x0, sp, 32
bl push
b .L39
.L38:
add x0, sp, 32
bl isEmptyStack
cmp w0, 0
beq .L40
mov w0, 1
b .L45
.L40:
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 41
bne .L42
add x0, sp, 32
bl pop
cmp w0, 40
beq .L42
mov w0, 1
b .L45
.L42:
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 93
bne .L43
add x0, sp, 32
bl pop
cmp w0, 91
beq .L43
mov w0, 1
b .L45
.L43:
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 125
bne .L39
add x0, sp, 32
bl pop
cmp w0, 123
beq .L39
mov w0, 1
b .L45
.L39:
ldr x0, [sp, 24]
add x0, x0, 1
str x0, [sp, 24]
.L36:
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 0
bne .L44
add x0, sp, 32
bl isEmptyStack
cmp w0, 0
cset w0, eq
and w0, w0, 255
.L45:
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 .L46
bl __stack_chk_fail
.L46:
mov w0, w1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size balanced, .-balanced
.align 2
.global push
.type push, %function
push:
.LFB11:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
str w1, [sp, 20]
ldr x0, [sp, 24]
ldr w2, [sp, 20]
mov w1, 0
bl insertNode
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size push, .-push
.align 2
.global pop
.type pop, %function
pop:
.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]
ldr x0, [x0, 8]
ldr w0, [x0]
str w0, [sp, 44]
ldr x0, [sp, 24]
mov w1, 0
bl removeNode
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 pop, .-pop
.align 2
.global peek
.type peek, %function
peek:
.LFB13:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
ldr x0, [sp, 8]
ldr x0, [x0, 8]
ldr w0, [x0]
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE13:
.size peek, .-peek
.align 2
.global isEmptyStack
.type isEmptyStack, %function
isEmptyStack:
.LFB14:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
ldr x0, [sp, 8]
ldr w0, [x0]
cmp w0, 0
bne .L53
mov w0, 1
b .L54
.L53:
mov w0, 0
.L54:
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE14:
.size isEmptyStack, .-isEmptyStack
.align 2
.global enqueue
.type enqueue, %function
enqueue:
.LFB15:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
str w1, [sp, 20]
ldr x3, [sp, 24]
ldr x0, [sp, 24]
ldr w0, [x0]
ldr w2, [sp, 20]
mov w1, w0
mov x0, x3
bl insertNode
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE15:
.size enqueue, .-enqueue
.align 2
.global dequeue
.type dequeue, %function
dequeue:
.LFB16:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
ldr x0, [x0, 8]
ldr w0, [x0]
str w0, [sp, 44]
ldr x0, [sp, 24]
mov w1, 0
bl removeNode
ldr w0, [sp, 44]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE16:
.size dequeue, .-dequeue
.align 2
.global isEmptyQueue
.type isEmptyQueue, %function
isEmptyQueue:
.LFB17:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
ldr x0, [sp, 8]
ldr w0, [x0]
cmp w0, 0
bne .L59
mov w0, 1
b .L60
.L59:
mov w0, 0
.L60:
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE17:
.size isEmptyQueue, .-isEmptyQueue
.section .rodata
.align 3
.LC11:
.string "%d "
.text
.align 2
.global printList
.type printList, %function
printList:
.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]
str x0, [sp, 40]
ldr x0, [sp, 40]
cmp x0, 0
beq .L66
b .L64
.L65:
ldr x0, [sp, 40]
ldr w0, [x0]
mov w1, w0
adrp x0, .LC11
add x0, x0, :lo12:.LC11
bl printf
ldr x0, [sp, 40]
ldr x0, [x0, 8]
str x0, [sp, 40]
.L64:
ldr x0, [sp, 40]
cmp x0, 0
bne .L65
mov w0, 10
bl putchar
b .L61
.L66:
nop
.L61:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE18:
.size printList, .-printList
.align 2
.global findNode
.type findNode, %function
findNode:
.LFB19:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str w1, [sp, 4]
ldr x0, [sp, 8]
cmp x0, 0
beq .L68
ldr w0, [sp, 4]
cmp w0, 0
blt .L68
ldr x0, [sp, 8]
ldr w0, [x0]
ldr w1, [sp, 4]
cmp w1, w0
blt .L69
.L68:
mov x0, 0
b .L70
.L69:
ldr x0, [sp, 8]
ldr x0, [x0, 8]
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
beq .L71
ldr w0, [sp, 4]
cmp w0, 0
bge .L73
.L71:
mov x0, 0
b .L70
.L75:
ldr x0, [sp, 24]
ldr x0, [x0, 8]
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
bne .L74
mov x0, 0
b .L70
.L74:
ldr w0, [sp, 4]
sub w0, w0, #1
str w0, [sp, 4]
.L73:
ldr w0, [sp, 4]
cmp w0, 0
bgt .L75
ldr x0, [sp, 24]
.L70:
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE19:
.size findNode, .-findNode
.align 2
.global insertNode
.type insertNode, %function
insertNode:
.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]
str w2, [sp, 16]
ldr x0, [sp, 24]
cmp x0, 0
beq .L77
ldr w0, [sp, 20]
cmp w0, 0
blt .L77
ldr x0, [sp, 24]
ldr w0, [x0]
add w0, w0, 1
ldr w1, [sp, 20]
cmp w1, w0
ble .L78
.L77:
mov w0, -1
b .L79
.L78:
ldr x0, [sp, 24]
ldr x0, [x0, 8]
cmp x0, 0
beq .L80
ldr w0, [sp, 20]
cmp w0, 0
bne .L81
.L80:
ldr x0, [sp, 24]
ldr x0, [x0, 8]
str x0, [sp, 40]
mov x0, 16
bl malloc
mov x1, x0
ldr x0, [sp, 24]
str x1, [x0, 8]
ldr x0, [sp, 24]
ldr x1, [x0, 8]
ldr x0, [sp, 24]
str x1, [x0, 16]
ldr x0, [sp, 24]
ldr x0, [x0, 8]
ldr w1, [sp, 16]
str w1, [x0]
ldr x0, [sp, 24]
ldr x0, [x0, 8]
ldr x1, [sp, 40]
str x1, [x0, 8]
ldr x0, [sp, 24]
ldr w0, [x0]
add w1, w0, 1
ldr x0, [sp, 24]
str w1, [x0]
mov w0, 0
b .L79
.L81:
ldr x0, [sp, 24]
ldr w0, [x0]
ldr w1, [sp, 20]
cmp w1, w0
bne .L82
ldr x0, [sp, 24]
ldr x0, [x0, 16]
str x0, [sp, 32]
ldr x0, [sp, 32]
ldr x0, [x0, 8]
str x0, [sp, 40]
mov x0, 16
bl malloc
mov x1, x0
ldr x0, [sp, 32]
str x1, [x0, 8]
ldr x0, [sp, 32]
ldr x1, [x0, 8]
ldr x0, [sp, 24]
str x1, [x0, 16]
ldr x0, [sp, 32]
ldr x0, [x0, 8]
ldr w1, [sp, 16]
str w1, [x0]
ldr x0, [sp, 32]
ldr x0, [x0, 8]
ldr x1, [sp, 40]
str x1, [x0, 8]
ldr x0, [sp, 24]
ldr w0, [x0]
add w1, w0, 1
ldr x0, [sp, 24]
str w1, [x0]
mov w0, 0
b .L79
.L82:
ldr w0, [sp, 20]
sub w0, w0, #1
mov w1, w0
ldr x0, [sp, 24]
bl findNode
str x0, [sp, 32]
ldr x0, [sp, 32]
cmp x0, 0
beq .L83
ldr x0, [sp, 32]
ldr x0, [x0, 8]
str x0, [sp, 40]
mov x0, 16
bl malloc
mov x1, x0
ldr x0, [sp, 32]
str x1, [x0, 8]
ldr x0, [sp, 24]
ldr w0, [x0]
ldr w1, [sp, 20]
cmp w1, w0
bne .L84
ldr x0, [sp, 32]
ldr x1, [x0, 8]
ldr x0, [sp, 24]
str x1, [x0, 16]
.L84:
ldr x0, [sp, 32]
ldr x0, [x0, 8]
ldr w1, [sp, 16]
str w1, [x0]
ldr x0, [sp, 32]
ldr x0, [x0, 8]
ldr x1, [sp, 40]
str x1, [x0, 8]
ldr x0, [sp, 24]
ldr w0, [x0]
add w1, w0, 1
ldr x0, [sp, 24]
str w1, [x0]
mov w0, 0
b .L79
.L83:
mov w0, -1
.L79:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE20:
.size insertNode, .-insertNode
.align 2
.global removeNode
.type removeNode, %function
removeNode:
.LFB21:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
str w1, [sp, 20]
ldr x0, [sp, 24]
cmp x0, 0
beq .L86
ldr w0, [sp, 20]
cmp w0, 0
blt .L86
ldr x0, [sp, 24]
ldr w0, [x0]
ldr w1, [sp, 20]
cmp w1, w0
blt .L87
.L86:
mov w0, -1
b .L88
.L87:
ldr w0, [sp, 20]
cmp w0, 0
bne .L89
ldr x0, [sp, 24]
ldr x0, [x0, 8]
ldr x0, [x0, 8]
str x0, [sp, 40]
ldr x0, [sp, 24]
ldr x0, [x0, 8]
bl free
ldr x0, [sp, 24]
ldr x1, [sp, 40]
str x1, [x0, 8]
ldr x0, [sp, 24]
ldr w0, [x0]
sub w1, w0, #1
ldr x0, [sp, 24]
str w1, [x0]
ldr x0, [sp, 24]
ldr w0, [x0]
cmp w0, 0
bne .L90
ldr x0, [sp, 24]
str xzr, [x0, 16]
.L90:
mov w0, 0
b .L88
.L89:
ldr w0, [sp, 20]
sub w0, w0, #1
mov w1, w0
ldr x0, [sp, 24]
bl findNode
str x0, [sp, 32]
ldr x0, [sp, 32]
cmp x0, 0
beq .L91
ldr x0, [sp, 24]
ldr w0, [x0]
sub w0, w0, #1
ldr w1, [sp, 20]
cmp w1, w0
bne .L92
ldr x0, [sp, 24]
ldr x1, [sp, 32]
str x1, [x0, 16]
ldr x0, [sp, 32]
ldr x0, [x0, 8]
bl free
ldr x0, [sp, 32]
str xzr, [x0, 8]
b .L93
.L92:
ldr x0, [sp, 32]
ldr x0, [x0, 8]
ldr x0, [x0, 8]
str x0, [sp, 40]
ldr x0, [sp, 32]
ldr x0, [x0, 8]
bl free
ldr x0, [sp, 32]
ldr x1, [sp, 40]
str x1, [x0, 8]
.L93:
ldr x0, [sp, 24]
ldr w0, [x0]
sub w1, w0, #1
ldr x0, [sp, 24]
str w1, [x0]
mov w0, 0
b .L88
.L91:
mov w0, -1
.L88:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE21:
.size removeNode, .-removeNode
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "192.168.68.128"
.align 3
.LC1:
.string "buf=%s\n"
.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
str w0, [sp, 28]
str x1, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 168]
mov x1, 0
add x0, sp, 32
mov x2, x0
adrp x0, .LC0
add x1, x0, :lo12:.LC0
mov w0, 2
bl inet_pton
add x1, sp, 40
add x0, sp, 32
mov w3, 128
mov x2, x1
mov x1, x0
mov w0, 2
bl inet_ntop
add x0, sp, 40
mov x1, x0
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, 168]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L3
bl __stack_chk_fail
.L3:
mov w0, w1
ldp x29, x30, [sp], 176
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "r"
.align 3
.LC1:
.string "output.ammp"
.align 3
.LC2:
.string "input.mol2"
.align 3
.LC3:
.string "w"
.align 3
.LC4:
.string "output.mol2"
.align 3
.LC5:
.string "@<TRIPOS>MOLECULE"
.align 3
.LC6:
.string "%i %i"
.align 3
.LC7:
.string "@<TRIPOS>ATOM"
.align 3
.LC8:
.string "atom"
.align 3
.LC9:
.string "mompar"
.align 3
.LC10:
.string "%s"
.align 3
.LC11:
.string "%s %f %f %f %i %s %f %f %f %f"
.align 3
.LC12:
.string "%i %s %f %f %f %s %s %s %f"
.align 3
.LC13:
.string "%7i %-5s%13.4f%10.4f%10.4f %-5s%6s%4s%15.4f\n"
.align 3
.LC14:
.string "%i %i %i %s"
.align 3
.LC15:
.string "%6i%5i%5i %s\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
mov x12, 12320
sub sp, sp, x12
.cfi_def_cfa_offset 12320
stp x29, x30, [sp, 32]
.cfi_offset 29, -12288
.cfi_offset 30, -12280
add x29, sp, 32
.cfi_def_cfa 29, 12288
str x19, [sp, 48]
.cfi_offset 19, -12272
adrp x16, :got:__stack_chk_guard
ldr x16, [x16, #:got_lo12:__stack_chk_guard]
ldr x17, [x16]
str x17, [x29, 12280]
mov x17, 0
mov x16, sp
mov x19, x16
str wzr, [x29, 92]
str wzr, [x29, 96]
str wzr, [x29, 100]
str wzr, [x29, 36]
str wzr, [x29, 104]
mov w16, 1000
str w16, [x29, 108]
ldr w16, [x29, 108]
sxtw x17, w16
sub x17, x17, #1
str x17, [x29, 112]
sxtw x17, w16
mov x14, x17
mov x15, 0
lsr x17, x14, 61
lsl x7, x15, 3
orr x7, x17, x7
lsl x6, x14, 3
sxtw x6, w16
mov x12, x6
mov x13, 0
lsr x6, x12, 61
lsl x5, x13, 3
orr x5, x6, x5
lsl x4, x12, 3
sxtw x4, w16
add x4, x4, 15
lsr x4, x4, 4
lsl x4, x4, 4
and x5, x4, -65536
sub x5, sp, x5
.L2:
cmp sp, x5
beq .L3
sub sp, sp, #65536
str xzr, [sp, 1024]
b .L2
.L3:
and x5, x4, 65535
sub sp, sp, x5
str xzr, [sp]
and x4, x4, 65535
cmp x4, 1024
bcc .L4
str xzr, [sp, 1024]
.L4:
add x4, sp, 32
add x4, x4, 0
str x4, [x29, 120]
ldr w4, [x29, 108]
sxtw x5, w4
sub x5, x5, #1
str x5, [x29, 128]
sxtw x5, w4
mov x10, x5
mov x11, 0
lsr x5, x10, 61
lsl x3, x11, 3
orr x3, x5, x3
lsl x2, x10, 3
sxtw x2, w4
mov x8, x2
mov x9, 0
lsr x2, x8, 61
lsl x1, x9, 3
orr x1, x2, x1
lsl x0, x8, 3
sxtw x0, w4
add x0, x0, 15
lsr x0, x0, 4
lsl x0, x0, 4
and x1, x0, -65536
sub x1, sp, x1
.L5:
cmp sp, x1
beq .L6
sub sp, sp, #65536
str xzr, [sp, 1024]
b .L5
.L6:
and x1, x0, 65535
sub sp, sp, x1
str xzr, [sp]
and x0, x0, 65535
cmp x0, 1024
bcc .L7
str xzr, [sp, 1024]
.L7:
add x0, sp, 32
add x0, x0, 0
str x0, [x29, 136]
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl fopen
str x0, [x29, 144]
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl fopen
str x0, [x29, 152]
adrp x0, .LC3
add x1, x0, :lo12:.LC3
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl fopen
str x0, [x29, 160]
ldr x2, [x29, 152]
ldr w1, [x29, 108]
ldr x0, [x29, 120]
bl fgets
ldr x1, [x29, 160]
ldr x0, [x29, 120]
bl fputs
b .L8
.L9:
ldr x2, [x29, 152]
ldr w1, [x29, 108]
ldr x0, [x29, 120]
bl fgets
ldr x1, [x29, 160]
ldr x0, [x29, 120]
bl fputs
.L8:
mov x2, 17
adrp x0, .LC5
add x1, x0, :lo12:.LC5
ldr x0, [x29, 120]
bl strncmp
cmp w0, 0
bne .L9
ldr x2, [x29, 152]
ldr w1, [x29, 108]
ldr x0, [x29, 120]
bl fgets
ldr x1, [x29, 160]
ldr x0, [x29, 120]
bl fputs
ldr x2, [x29, 152]
ldr w1, [x29, 108]
ldr x0, [x29, 120]
bl fgets
ldr x1, [x29, 160]
ldr x0, [x29, 120]
bl fputs
add x1, x29, 44
add x0, x29, 40
mov x3, x1
mov x2, x0
adrp x0, .LC6
add x1, x0, :lo12:.LC6
ldr x0, [x29, 120]
bl __isoc99_sscanf
ldr x2, [x29, 152]
ldr w1, [x29, 108]
ldr x0, [x29, 120]
bl fgets
ldr x1, [x29, 160]
ldr x0, [x29, 120]
bl fputs
b .L10
.L11:
ldr x2, [x29, 152]
ldr w1, [x29, 108]
ldr x0, [x29, 120]
bl fgets
ldr x1, [x29, 160]
ldr x0, [x29, 120]
bl fputs
.L10:
mov x2, 13
adrp x0, .LC7
add x1, x0, :lo12:.LC7
ldr x0, [x29, 120]
bl strncmp
cmp w0, 0
bne .L11
str wzr, [x29, 92]
b .L12
.L19:
ldr w0, [x29, 40]
sub w1, w0, #1
ldr w0, [x29, 48]
cmp w1, w0
beq .L26
add x3, x29, 8192
add x3, x3, 4024
mov x2, 4
adrp x0, .LC8
add x1, x0, :lo12:.LC8
mov x0, x3
bl strncmp
cmp w0, 0
bne .L15
add x3, x29, 8192
add x3, x3, 4024
mov x2, 6
adrp x0, .LC9
add x1, x0, :lo12:.LC9
mov x0, x3
bl strncmp
cmp w0, 0
beq .L16
.L15:
ldr x2, [x29, 144]
ldr w1, [x29, 108]
ldr x0, [x29, 136]
bl fgets
add x0, x29, 8192
add x0, x0, 4024
mov x2, x0
adrp x0, .LC10
add x1, x0, :lo12:.LC10
ldr x0, [x29, 136]
bl __isoc99_sscanf
.L16:
add x3, x29, 8192
add x3, x3, 4024
mov x2, 6
adrp x0, .LC9
add x1, x0, :lo12:.LC9
mov x0, x3
bl strncmp
cmp w0, 0
bne .L17
ldr x2, [x29, 144]
ldr w1, [x29, 108]
ldr x0, [x29, 136]
bl fgets
add x0, x29, 8192
add x0, x0, 4024
mov x2, x0
adrp x0, .LC10
add x1, x0, :lo12:.LC10
ldr x0, [x29, 136]
bl __isoc99_sscanf
.L17:
add x3, x29, 8192
add x3, x3, 4024
mov x2, 4
adrp x0, .LC8
add x1, x0, :lo12:.LC8
mov x0, x3
bl strncmp
cmp w0, 0
bne .L18
add x1, x29, 168
ldrsw x0, [x29, 92]
lsl x0, x0, 2
add x2, x1, x0
add x1, x29, 4096
add x1, x1, 72
ldrsw x0, [x29, 92]
lsl x0, x0, 2
add x3, x1, x0
add x1, x29, 4096
add x1, x1, 4072
ldrsw x0, [x29, 92]
lsl x0, x0, 2
add x4, x1, x0
add x6, x29, 8192
add x6, x6, 4056
add x5, x29, 48
add x1, x29, 8192
add x1, x1, 4024
add x0, x29, 84
str x0, [sp, 24]
add x0, x29, 80
str x0, [sp, 16]
add x0, x29, 76
str x0, [sp, 8]
add x0, x29, 72
str x0, [sp]
mov x7, x6
mov x6, x5
mov x5, x4
mov x4, x3
mov x3, x2
mov x2, x1
adrp x0, .LC11
add x1, x0, :lo12:.LC11
ldr x0, [x29, 136]
bl __isoc99_sscanf
.L18:
ldr w0, [x29, 92]
add w0, w0, 1
str w0, [x29, 92]
.L12:
ldr w0, [x29, 92]
cmp w0, 999
ble .L19
b .L14
.L26:
nop
.L14:
str wzr, [x29, 100]
b .L20
.L21:
ldr x2, [x29, 152]
ldr w1, [x29, 108]
ldr x0, [x29, 120]
bl fgets
add x6, x29, 8192
add x6, x6, 3976
add x5, x29, 68
add x4, x29, 64
add x3, x29, 60
add x2, x29, 8192
add x2, x2, 4040
add x1, x29, 36
add x0, x29, 88
str x0, [sp, 16]
add x0, x29, 8192
add x0, x0, 4008
str x0, [sp, 8]
add x0, x29, 8192
add x0, x0, 3992
str x0, [sp]
mov x7, x6
mov x6, x5
mov x5, x4
mov x4, x3
mov x3, x2
mov x2, x1
adrp x0, .LC12
add x1, x0, :lo12:.LC12
ldr x0, [x29, 120]
bl __isoc99_sscanf
ldr w2, [x29, 36]
ldrsw x0, [x29, 100]
lsl x0, x0, 2
add x1, x29, 168
ldr s0, [x1, x0]
fcvt d4, s0
ldrsw x0, [x29, 100]
lsl x0, x0, 2
add x1, x29, 4096
add x1, x1, 72
ldr s0, [x1, x0]
fcvt d1, s0
ldrsw x0, [x29, 100]
lsl x0, x0, 2
add x1, x29, 4096
add x1, x1, 4072
ldr s0, [x1, x0]
fcvt d2, s0
ldr s0, [x29, 88]
fcvt d0, s0
add x4, x29, 8192
add x4, x4, 4008
add x3, x29, 8192
add x3, x3, 3992
add x1, x29, 8192
add x1, x1, 3976
add x0, x29, 8192
add x0, x0, 4040
fmov d3, d0
mov x6, x4
mov x5, x3
mov x4, x1
fmov d0, d4
mov x3, x0
adrp x0, .LC13
add x1, x0, :lo12:.LC13
ldr x0, [x29, 160]
bl fprintf
ldr w0, [x29, 100]
add w0, w0, 1
str w0, [x29, 100]
.L20:
ldr w0, [x29, 40]
ldr w1, [x29, 100]
cmp w1, w0
blt .L21
ldr x2, [x29, 152]
ldr w1, [x29, 108]
ldr x0, [x29, 120]
bl fgets
ldr x1, [x29, 160]
ldr x0, [x29, 120]
bl fputs
str wzr, [x29, 96]
b .L22
.L23:
ldr x2, [x29, 152]
ldr w1, [x29, 108]
ldr x0, [x29, 120]
bl fgets
add x3, x29, 8192
add x3, x3, 4072
add x2, x29, 56
add x1, x29, 52
add x0, x29, 36
mov x5, x3
mov x4, x2
mov x3, x1
mov x2, x0
adrp x0, .LC14
add x1, x0, :lo12:.LC14
ldr x0, [x29, 120]
bl __isoc99_sscanf
ldr w0, [x29, 36]
ldr w1, [x29, 52]
ldr w2, [x29, 56]
add x3, x29, 8192
add x3, x3, 4072
mov x5, x3
mov w4, w2
mov w3, w1
mov w2, w0
adrp x0, .LC15
add x1, x0, :lo12:.LC15
ldr x0, [x29, 160]
bl fprintf
ldr w0, [x29, 96]
add w0, w0, 1
str w0, [x29, 96]
.L22:
ldr w0, [x29, 44]
ldr w1, [x29, 96]
cmp w1, w0
blt .L23
ldr x0, [x29, 152]
bl fclose
ldr x0, [x29, 160]
bl fclose
ldr x0, [x29, 144]
bl fclose
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, 12280]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L25
bl __stack_chk_fail
.L25:
mov w0, w1
sub sp, x29, #32
.cfi_def_cfa 31, 12320
ldr x19, [sp, 48]
ldp x29, x30, [sp, 32]
mov x12, 12320
add sp, sp, x12
.cfi_restore 29
.cfi_restore 30
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "ERROR: %s\n"
.text
.align 2
.global die
.type die, %function
die:
.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]
bl __errno_location
ldr w0, [x0]
cmp w0, 0
beq .L2
ldr x0, [sp, 24]
bl perror
b .L3
.L2:
ldr x1, [sp, 24]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
.L3:
mov w0, 1
bl exit
.cfi_endproc
.LFE6:
.size die, .-die
.section .rodata
.align 3
.LC1:
.string "Memory error."
.text
.align 2
.global bubble_sort
.type bubble_sort, %function
bubble_sort:
.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 x0, [sp, 40]
str w1, [sp, 36]
str x2, [sp, 24]
str wzr, [sp, 68]
str wzr, [sp, 60]
str wzr, [sp, 64]
ldrsw x0, [sp, 36]
lsl x0, x0, 2
bl malloc
str x0, [sp, 72]
ldr x0, [sp, 72]
cmp x0, 0
bne .L5
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl die
.L5:
ldrsw x0, [sp, 36]
lsl x0, x0, 2
mov x2, x0
ldr x1, [sp, 40]
ldr x0, [sp, 72]
bl memcpy
str wzr, [sp, 60]
b .L6
.L10:
str wzr, [sp, 64]
b .L7
.L9:
ldrsw x0, [sp, 64]
lsl x0, x0, 2
ldr x1, [sp, 72]
add x0, x1, x0
ldr w3, [x0]
ldrsw x0, [sp, 64]
add x0, x0, 1
lsl x0, x0, 2
ldr x1, [sp, 72]
add x0, x1, x0
ldr w0, [x0]
ldr x2, [sp, 24]
mov w1, w0
mov w0, w3
blr x2
cmp w0, 0
ble .L8
ldrsw x0, [sp, 64]
add x0, x0, 1
lsl x0, x0, 2
ldr x1, [sp, 72]
add x0, x1, x0
ldr w0, [x0]
str w0, [sp, 68]
ldrsw x0, [sp, 64]
lsl x0, x0, 2
ldr x1, [sp, 72]
add x1, x1, x0
ldrsw x0, [sp, 64]
add x0, x0, 1
lsl x0, x0, 2
ldr x2, [sp, 72]
add x0, x2, x0
ldr w1, [x1]
str w1, [x0]
ldrsw x0, [sp, 64]
lsl x0, x0, 2
ldr x1, [sp, 72]
add x0, x1, x0
ldr w1, [sp, 68]
str w1, [x0]
.L8:
ldr w0, [sp, 64]
add w0, w0, 1
str w0, [sp, 64]
.L7:
ldr w0, [sp, 36]
sub w0, w0, #1
ldr w1, [sp, 64]
cmp w1, w0
blt .L9
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L6:
ldr w1, [sp, 60]
ldr w0, [sp, 36]
cmp w1, w0
blt .L10
ldr x0, [sp, 72]
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size bubble_sort, .-bubble_sort
.align 2
.global sorted_order
.type sorted_order, %function
sorted_order:
.LFB8:
.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]
sub w0, w1, w0
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size sorted_order, .-sorted_order
.align 2
.global reverse_order
.type reverse_order, %function
reverse_order:
.LFB9:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, 12]
str w1, [sp, 8]
ldr w1, [sp, 8]
ldr w0, [sp, 12]
sub w0, w1, w0
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size reverse_order, .-reverse_order
.align 2
.global strange_order
.type strange_order, %function
strange_order:
.LFB10:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, 12]
str w1, [sp, 8]
ldr w0, [sp, 12]
cmp w0, 0
beq .L17
ldr w0, [sp, 8]
cmp w0, 0
bne .L18
.L17:
mov w0, 0
b .L19
.L18:
ldr w0, [sp, 12]
ldr w1, [sp, 8]
sdiv w2, w0, w1
ldr w1, [sp, 8]
mul w1, w2, w1
sub w0, w0, w1
.L19:
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size strange_order, .-strange_order
.section .rodata
.align 3
.LC2:
.string "Failed to sort as requested."
.align 3
.LC3:
.string "%d "
.text
.align 2
.global test_sorting
.type test_sorting, %function
test_sorting:
.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]
str wzr, [sp, 52]
ldr x2, [sp, 24]
ldr w1, [sp, 36]
ldr x0, [sp, 40]
bl bubble_sort
str x0, [sp, 56]
ldr x0, [sp, 56]
cmp x0, 0
bne .L21
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl die
.L21:
str wzr, [sp, 52]
b .L22
.L23:
ldrsw x0, [sp, 52]
lsl x0, x0, 2
ldr x1, [sp, 56]
add x0, x1, x0
ldr w0, [x0]
mov w1, w0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
.L22:
ldr w1, [sp, 52]
ldr w0, [sp, 36]
cmp w1, w0
blt .L23
mov w0, 10
bl putchar
ldr x0, [sp, 56]
bl free
nop
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size test_sorting, .-test_sorting
.section .rodata
.align 3
.LC4:
.string "USAGE: ex18 4 3 1 5 6"
.text
.align 2
.global main
.type main, %function
main:
.LFB12:
.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]
str x1, [sp, 32]
ldr w0, [sp, 44]
cmp w0, 1
bgt .L25
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl die
.L25:
ldr w0, [sp, 44]
sub w0, w0, #1
str w0, [sp, 60]
str wzr, [sp, 56]
ldr x0, [sp, 32]
add x0, x0, 8
str x0, [sp, 64]
ldrsw x0, [sp, 60]
lsl x0, x0, 2
bl malloc
str x0, [sp, 72]
ldr x0, [sp, 72]
cmp x0, 0
bne .L26
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl die
.L26:
str wzr, [sp, 56]
b .L27
.L28:
ldrsw x0, [sp, 56]
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
ldr x2, [x0]
ldrsw x0, [sp, 56]
lsl x0, x0, 2
ldr x1, [sp, 72]
add x19, x1, x0
mov x0, x2
bl atoi
str w0, [x19]
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
.L27:
ldr w1, [sp, 56]
ldr w0, [sp, 60]
cmp w1, w0
blt .L28
adrp x0, sorted_order
add x2, x0, :lo12:sorted_order
ldr w1, [sp, 60]
ldr x0, [sp, 72]
bl test_sorting
adrp x0, reverse_order
add x2, x0, :lo12:reverse_order
ldr w1, [sp, 60]
ldr x0, [sp, 72]
bl test_sorting
adrp x0, strange_order
add x2, x0, :lo12:strange_order
ldr w1, [sp, 60]
ldr x0, [sp, 72]
bl test_sorting
ldr x0, [sp, 72]
bl free
mov w0, 0
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
.LFE12:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "piperun"
.align 3
.LC1:
.string "error creating memfd"
.align 3
.LC2:
.string "%s"
.align 3
.LC3:
.string "error allocating buffer"
.align 3
.LC4:
.string "error reading from stdin"
.align 3
.LC5:
.string "couldn't do the thing :["
.align 3
.LC6:
.string "failed call to mprotect"
.align 3
.LC7:
.string "%x%x%x%x\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -96]!
.cfi_def_cfa_offset 96
.cfi_offset 29, -96
.cfi_offset 30, -88
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
bl getpagesize
str w0, [sp, 48]
str xzr, [sp, 56]
str wzr, [sp, 44]
str xzr, [sp, 64]
mov w2, 1
adrp x0, .LC0
add x1, x0, :lo12:.LC0
mov x0, 279
bl syscall
str w0, [sp, 52]
ldr w0, [sp, 52]
cmn w0, #1
bne .L2
adrp x0, .LC1
add x2, x0, :lo12:.LC1
adrp x0, .LC2
add x1, x0, :lo12:.LC2
mov w0, 1
bl err
.L2:
ldr w0, [sp, 48]
bl malloc
str x0, [sp, 72]
ldr x0, [sp, 72]
cmp x0, 0
bne .L3
adrp x0, .LC3
add x2, x0, :lo12:.LC3
adrp x0, .LC2
add x1, x0, :lo12:.LC2
mov w0, 1
bl err
.L3:
ldr w0, [sp, 48]
mov x2, x0
ldr x1, [sp, 72]
mov w0, 0
bl read
str x0, [sp, 80]
ldr x0, [sp, 80]
cmn x0, #1
bne .L4
ldr x0, [sp, 72]
bl free
str xzr, [sp, 72]
adrp x0, .LC4
add x2, x0, :lo12:.LC4
adrp x0, .LC2
add x1, x0, :lo12:.LC2
mov w0, 1
bl err
.L4:
ldr x0, [sp, 80]
cmp x0, 0
beq .L13
ldr x0, [sp, 80]
mov w1, w0
ldr w0, [sp, 44]
add w0, w0, w1
str w0, [sp, 44]
ldr x0, [sp, 56]
str x0, [sp, 88]
ldr w0, [sp, 44]
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 88]
bl realloc
str x0, [sp, 56]
ldr x0, [sp, 56]
cmp x0, 0
bne .L7
ldr x0, [sp, 88]
cmp x0, 0
bne .L8
ldr x0, [sp, 88]
bl free
.L8:
adrp x0, .LC3
add x2, x0, :lo12:.LC3
adrp x0, .LC2
add x1, x0, :lo12:.LC2
mov w0, 1
bl err
.L7:
ldr w1, [sp, 44]
ldr x0, [sp, 80]
sub x0, x1, x0
ldr x1, [sp, 56]
add x0, x1, x0
ldr x1, [sp, 80]
mov x2, x1
ldr x1, [sp, 72]
bl memcpy
b .L3
.L13:
nop
ldr x0, [sp, 72]
bl free
str xzr, [sp, 72]
ldr x0, [sp, 56]
str x0, [sp, 88]
ldr w0, [sp, 44]
bl valloc
str x0, [sp, 56]
ldr x0, [sp, 56]
cmp x0, 0
bne .L9
ldr x0, [sp, 88]
bl free
adrp x0, .LC5
add x1, x0, :lo12:.LC5
mov w0, 1
bl err
.L9:
ldr w0, [sp, 44]
mov x2, x0
ldr x1, [sp, 88]
ldr x0, [sp, 56]
bl memcpy
ldr x0, [sp, 88]
bl free
ldr w0, [sp, 44]
mov w2, 5
mov x1, x0
ldr x0, [sp, 56]
bl mprotect
cmp w0, 0
beq .L10
ldr x0, [sp, 56]
bl free
adrp x0, .LC6
add x1, x0, :lo12:.LC6
mov w0, 1
bl err
.L10:
ldr x0, [sp, 56]
add x0, x0, 2733
str x0, [sp, 56]
ldr x0, [sp, 56]
ldrb w0, [x0]
mov w1, w0
ldr x0, [sp, 56]
add x0, x0, 1
ldrb w0, [x0]
mov w2, w0
ldr x0, [sp, 56]
add x0, x0, 2
ldrb w0, [x0]
mov w3, w0
ldr x0, [sp, 56]
add x0, x0, 3
ldrb w0, [x0]
mov w4, w0
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl printf
ldr x0, [sp, 56]
str x0, [sp, 64]
ldr x2, [sp, 64]
ldr x1, [sp, 16]
ldr w0, [sp, 28]
blr x2
ldr x0, [sp, 56]
bl free
mov w0, 0
ldp x29, x30, [sp], 96
.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
.data
.align 3
.type sccsid, %object
.size sccsid, 36
sccsid:
.string "@(#)acosh.c\t1.2 (Berkeley) 08/21/85"
.align 3
.type ln2hi, %object
.size ln2hi, 8
ln2hi:
.word -18874368
.word 1072049730
.align 3
.type ln2lo, %object
.size ln2lo, 8
ln2lo:
.word 897137782
.word 1038760431
.text
.align 2
.global acosh
.type acosh, %function
acosh:
.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 d0, [sp, 24]
adrp x0, .LC0
ldr d0, [x0, #:lo12:.LC0]
str d0, [sp, 32]
ldr d1, [sp, 24]
ldr d0, [sp, 24]
fcmp d1, d0
beq .L2
ldr d0, [sp, 24]
b .L3
.L2:
ldr d1, [sp, 24]
ldr d0, [sp, 32]
fcmpe d1, d0
bgt .L6
b .L7
.L6:
ldr d0, [sp, 24]
bl log1p
fmov d1, d0
adrp x0, ln2lo
add x0, x0, :lo12:ln2lo
ldr d0, [x0]
fadd d0, d1, d0
str d0, [sp, 40]
adrp x0, ln2hi
add x0, x0, :lo12:ln2hi
ldr d1, [x0]
ldr d0, [sp, 40]
fadd d0, d1, d0
b .L3
.L7:
ldr d1, [sp, 24]
fmov d0, 1.0e+0
fsub d0, d1, d0
bl sqrt
str d0, [sp, 40]
ldr d1, [sp, 24]
fmov d0, 1.0e+0
fadd d0, d1, d0
bl sqrt
fmov d1, d0
ldr d0, [sp, 40]
fadd d1, d1, d0
ldr d0, [sp, 40]
fmul d0, d1, d0
bl log1p
.L3:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size acosh, .-acosh
.section .rodata
.align 3
.LC0:
.word 2025163840
.word 1142271773
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global add_integers
.type add_integers, %function
add_integers:
.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 add_integers, .-add_integers
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.local lt_debug
.comm lt_debug,4,4
.global program_name
.section .rodata
.align 3
.LC0:
.string "libtool-wrapper"
.section .data.rel.local,"aw"
.align 3
.type program_name, %object
.size program_name, 8
program_name:
.xword .LC0
.global MAGIC_EXE
.section .rodata
.align 3
.LC1:
.string "%%%MAGIC EXE variable%%%"
.section .data.rel.local
.align 3
.type MAGIC_EXE, %object
.size MAGIC_EXE, 8
MAGIC_EXE:
.xword .LC1
.global LIB_PATH_VARNAME
.section .rodata
.align 3
.LC2:
.string "PATH"
.section .data.rel.local
.align 3
.type LIB_PATH_VARNAME, %object
.size LIB_PATH_VARNAME, 8
LIB_PATH_VARNAME:
.xword .LC2
.global LIB_PATH_VALUE
.section .rodata
.align 3
.LC3:
.string ""
.section .data.rel.local
.align 3
.type LIB_PATH_VALUE, %object
.size LIB_PATH_VALUE, 8
LIB_PATH_VALUE:
.xword .LC3
.global EXE_PATH_VARNAME
.align 3
.type EXE_PATH_VARNAME, %object
.size EXE_PATH_VARNAME, 8
EXE_PATH_VARNAME:
.xword .LC3
.global EXE_PATH_VALUE
.align 3
.type EXE_PATH_VALUE, %object
.size EXE_PATH_VALUE, 8
EXE_PATH_VALUE:
.xword .LC3
.global TARGET_PROGRAM_NAME
.section .rodata
.align 3
.LC4:
.string "main"
.section .data.rel.local
.align 3
.type TARGET_PROGRAM_NAME, %object
.size TARGET_PROGRAM_NAME, 8
TARGET_PROGRAM_NAME:
.xword .LC4
.section .rodata
.align 3
.LC5:
.string "--lt-"
.section .data.rel.local
.align 3
.type ltwrapper_option_prefix, %object
.size ltwrapper_option_prefix, 8
ltwrapper_option_prefix:
.xword .LC5
.section .rodata
.align 3
.LC6:
.string "--lt-dump-script"
.section .data.rel.local
.align 3
.type dumpscript_opt, %object
.size dumpscript_opt, 8
dumpscript_opt:
.xword .LC6
.section .rodata
.align 3
.LC7:
.string "--lt-debug"
.section .data.rel.local
.align 3
.type debug_opt, %object
.size debug_opt, 8
debug_opt:
.xword .LC7
.section .rodata
.align 3
.LC8:
.string "unrecognized %s option: '%s'"
.align 3
.LC9:
.string "program.c"
.align 3
.LC10:
.string "libtool wrapper (GNU libtool) 2.4.6\n"
.align 3
.LC11:
.string "(main) argv[0]: %s\n"
.align 3
.LC12:
.string "(main) program_name: %s\n"
.align 3
.LC13:
.string "couldn't find %s"
.align 3
.LC14:
.string "(main) found exe (before symlink chase) at: %s\n"
.align 3
.LC15:
.string "(main) found exe (after symlink chase) at: %s\n"
.align 3
.LC16:
.string ".exe"
.align 3
.LC17:
.string "(main) libtool target name: %s\n"
.align 3
.LC18:
.string ".libs"
.align 3
.LC19:
.string "xpg4"
.align 3
.LC20:
.string "BIN_SH"
.align 3
.LC21:
.string "1"
.align 3
.LC22:
.string "DUALCASE"
.align 3
.LC23:
.string "(main) lt_argv_zero: %s\n"
.align 3
.LC24:
.string "(main) newargz[%d]: %s\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 x19, [sp, 16]
.cfi_offset 19, -96
str w0, [sp, 44]
str x1, [sp, 32]
mov w0, 127
str w0, [sp, 60]
ldr x0, [sp, 32]
ldr x0, [x0]
bl base_name
bl xstrdup
mov x1, x0
adrp x0, program_name
add x0, x0, :lo12:program_name
str x1, [x0]
ldrsw x0, [sp, 44]
add x0, x0, 1
lsl x0, x0, 3
bl xmalloc
str x0, [sp, 64]
str wzr, [sp, 52]
mov w0, 1
str w0, [sp, 56]
b .L2
.L8:
ldrsw x0, [sp, 56]
lsl x0, x0, 3
ldr x1, [sp, 32]
add x0, x1, x0
ldr x2, [x0]
adrp x0, dumpscript_opt
add x0, x0, :lo12:dumpscript_opt
ldr x0, [x0]
mov x1, x0
mov x0, x2
bl strcmp
cmp w0, 0
bne .L3
mov w1, 0
mov w0, 1
bl setmode
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
bl lt_dump_script
mov w0, 0
b .L4
.L3:
ldrsw x0, [sp, 56]
lsl x0, x0, 3
ldr x1, [sp, 32]
add x0, x1, x0
ldr x2, [x0]
adrp x0, debug_opt
add x0, x0, :lo12:debug_opt
ldr x0, [x0]
mov x1, x0
mov x0, x2
bl strcmp
cmp w0, 0
bne .L5
adrp x0, lt_debug
add x0, x0, :lo12:lt_debug
mov w1, 1
str w1, [x0]
b .L6
.L5:
ldrsw x0, [sp, 56]
lsl x0, x0, 3
ldr x1, [sp, 32]
add x0, x1, x0
ldr x2, [x0]
adrp x0, ltwrapper_option_prefix
add x0, x0, :lo12:ltwrapper_option_prefix
ldr x0, [x0]
mov x1, x0
mov x0, x2
bl strcmp
cmp w0, 0
bne .L7
adrp x0, ltwrapper_option_prefix
add x0, x0, :lo12:ltwrapper_option_prefix
ldr x2, [x0]
ldrsw x0, [sp, 56]
lsl x0, x0, 3
ldr x1, [sp, 32]
add x0, x1, x0
ldr x0, [x0]
mov x4, x0
mov x3, x2
adrp x0, .LC8
add x2, x0, :lo12:.LC8
mov w1, 220
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl lt_fatal
.L7:
ldrsw x0, [sp, 56]
lsl x0, x0, 3
ldr x1, [sp, 32]
add x0, x1, x0
ldr x2, [x0]
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 64]
add x19, x1, x0
mov x0, x2
bl xstrdup
str x0, [x19]
.L6:
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
.L2:
ldr w1, [sp, 56]
ldr w0, [sp, 44]
cmp w1, w0
blt .L8
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
ldrsw x0, [sp, 52]
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str xzr, [x0]
adrp x0, .LC10
add x2, x0, :lo12:.LC10
mov w1, 230
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl lt_debugprintf
ldr x0, [sp, 32]
ldr x0, [x0]
mov x3, x0
adrp x0, .LC11
add x2, x0, :lo12:.LC11
mov w1, 231
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl lt_debugprintf
adrp x0, program_name
add x0, x0, :lo12:program_name
ldr x0, [x0]
mov x3, x0
adrp x0, .LC12
add x2, x0, :lo12:.LC12
mov w1, 232
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl lt_debugprintf
ldr x0, [sp, 32]
ldr x0, [x0]
bl find_executable
str x0, [sp, 72]
ldr x0, [sp, 72]
cmp x0, 0
bne .L9
ldr x0, [sp, 32]
ldr x0, [x0]
mov x3, x0
adrp x0, .LC13
add x2, x0, :lo12:.LC13
mov w1, 236
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl lt_fatal
.L9:
ldr x3, [sp, 72]
adrp x0, .LC14
add x2, x0, :lo12:.LC14
mov w1, 237
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl lt_debugprintf
ldr x0, [sp, 72]
bl chase_symlinks
str x0, [sp, 80]
ldr x3, [sp, 80]
adrp x0, .LC15
add x2, x0, :lo12:.LC15
mov w1, 242
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl lt_debugprintf
ldr x0, [sp, 72]
cmp x0, 0
beq .L10
ldr x0, [sp, 72]
bl free
str xzr, [sp, 72]
.L10:
ldr x0, [sp, 80]
bl base_name
bl xstrdup
str x0, [sp, 88]
ldr x1, [sp, 88]
ldr x0, [sp, 80]
bl strendzap
adrp x0, .LC16
add x1, x0, :lo12:.LC16
ldr x0, [sp, 88]
bl strendzap
mov w2, 1
adrp x0, .LC16
add x1, x0, :lo12:.LC16
ldr x0, [sp, 88]
bl lt_extend_str
str x0, [sp, 72]
ldr x0, [sp, 88]
cmp x0, 0
beq .L11
ldr x0, [sp, 88]
bl free
str xzr, [sp, 88]
.L11:
ldr x0, [sp, 72]
str x0, [sp, 88]
str xzr, [sp, 72]
adrp x0, TARGET_PROGRAM_NAME
add x0, x0, :lo12:TARGET_PROGRAM_NAME
ldr x0, [x0]
bl base_name
bl xstrdup
str x0, [sp, 96]
adrp x0, .LC16
add x1, x0, :lo12:.LC16
ldr x0, [sp, 96]
bl strendzap
mov w2, 1
adrp x0, .LC16
add x1, x0, :lo12:.LC16
ldr x0, [sp, 96]
bl lt_extend_str
str x0, [sp, 72]
ldr x0, [sp, 96]
cmp x0, 0
beq .L12
ldr x0, [sp, 96]
bl free
str xzr, [sp, 96]
.L12:
ldr x0, [sp, 72]
str x0, [sp, 96]
str xzr, [sp, 72]
ldr x3, [sp, 96]
adrp x0, .LC17
add x2, x0, :lo12:.LC17
mov w1, 265
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl lt_debugprintf
ldr x0, [sp, 80]
bl strlen
mov x19, x0
ldr x0, [sp, 88]
bl strlen
add x0, x19, x0
add x0, x0, 7
bl xmalloc
mov x1, x0
ldr x0, [sp, 64]
str x1, [x0]
ldr x0, [sp, 64]
ldr x0, [x0]
ldr x1, [sp, 80]
bl strcpy
ldr x0, [sp, 64]
ldr x19, [x0]
mov x0, x19
bl strlen
add x2, x19, x0
adrp x0, .LC18
add x1, x0, :lo12:.LC18
mov x0, x2
ldr w2, [x1]
str w2, [x0]
ldrh w1, [x1, 4]
strh w1, [x0, 4]
ldr x0, [sp, 64]
ldr x19, [x0]
mov x0, x19
bl strlen
add x0, x19, x0
mov w1, 47
strh w1, [x0]
ldr x0, [sp, 64]
ldr x0, [x0]
bl xstrdup
str x0, [sp, 72]
ldr x0, [sp, 64]
ldr x0, [x0]
ldr x1, [sp, 88]
bl strcat
mov w2, 1
ldr x1, [sp, 96]
ldr x0, [sp, 72]
bl lt_extend_str
str x0, [sp, 104]
ldr x0, [sp, 72]
cmp x0, 0
beq .L13
ldr x0, [sp, 72]
bl free
str xzr, [sp, 72]
.L13:
str xzr, [sp, 72]
ldr x0, [sp, 96]
cmp x0, 0
beq .L14
ldr x0, [sp, 96]
bl free
str xzr, [sp, 96]
.L14:
ldr x0, [sp, 80]
cmp x0, 0
beq .L15
ldr x0, [sp, 80]
bl free
str xzr, [sp, 80]
.L15:
ldr x0, [sp, 88]
cmp x0, 0
beq .L16
ldr x0, [sp, 88]
bl free
str xzr, [sp, 88]
.L16:
adrp x0, .LC19
add x1, x0, :lo12:.LC19
adrp x0, .LC20
add x0, x0, :lo12:.LC20
bl lt_setenv
adrp x0, .LC21
add x1, x0, :lo12:.LC21
adrp x0, .LC22
add x0, x0, :lo12:.LC22
bl lt_setenv
adrp x0, EXE_PATH_VARNAME
add x0, x0, :lo12:EXE_PATH_VARNAME
ldr x2, [x0]
adrp x0, EXE_PATH_VALUE
add x0, x0, :lo12:EXE_PATH_VALUE
ldr x0, [x0]
mov x1, x0
mov x0, x2
bl lt_update_exe_path
adrp x0, LIB_PATH_VARNAME
add x0, x0, :lo12:LIB_PATH_VARNAME
ldr x2, [x0]
adrp x0, LIB_PATH_VALUE
add x0, x0, :lo12:LIB_PATH_VALUE
ldr x0, [x0]
mov x1, x0
mov x0, x2
bl lt_update_lib_path
ldr x0, [sp, 104]
bl nonnull
mov x3, x0
adrp x0, .LC23
add x2, x0, :lo12:.LC23
mov w1, 297
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl lt_debugprintf
str wzr, [sp, 56]
b .L17
.L18:
ldrsw x0, [sp, 56]
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
ldr x0, [x0]
bl nonnull
mov x4, x0
ldr w3, [sp, 56]
adrp x0, .LC24
add x2, x0, :lo12:.LC24
mov w1, 301
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl lt_debugprintf
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
.L17:
ldr w1, [sp, 56]
ldr w0, [sp, 52]
cmp w1, w0
blt .L18
ldr x1, [sp, 64]
ldr x0, [sp, 104]
bl execv
ldr w0, [sp, 60]
.L4:
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
.LFE6:
.size main, .-main
.section .rodata
.align 3
.LC25:
.string "memory exhausted"
.text
.align 2
.global xmalloc
.type xmalloc, %function
xmalloc:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
bl malloc
str x0, [sp, 40]
ldr x0, [sp, 40]
cmp x0, 0
bne .L20
adrp x0, .LC25
add x2, x0, :lo12:.LC25
mov w1, 314
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl lt_fatal
.L20:
ldr x0, [sp, 40]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size xmalloc, .-xmalloc
.align 2
.global xstrdup
.type xstrdup, %function
xstrdup:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
beq .L23
ldr x0, [sp, 24]
bl strlen
add x0, x0, 1
bl xmalloc
ldr x1, [sp, 24]
bl strcpy
b .L25
.L23:
mov x0, 0
.L25:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size xstrdup, .-xstrdup
.align 2
.global base_name
.type base_name, %function
base_name:
.LFB9:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
ldr x0, [sp, 8]
str x0, [sp, 24]
b .L27
.L29:
ldr x0, [sp, 8]
ldrb w0, [x0]
cmp w0, 47
bne .L28
ldr x0, [sp, 8]
add x0, x0, 1
str x0, [sp, 24]
.L28:
ldr x0, [sp, 8]
add x0, x0, 1
str x0, [sp, 8]
.L27:
ldr x0, [sp, 8]
ldrb w0, [x0]
cmp w0, 0
bne .L29
ldr x0, [sp, 24]
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size base_name, .-base_name
.section .rodata
.align 3
.LC26:
.string "(check_executable): %s\n"
.text
.align 2
.global check_executable
.type check_executable, %function
check_executable:
.LFB10:
.cfi_startproc
stp x29, x30, [sp, -176]!
.cfi_def_cfa_offset 176
.cfi_offset 29, -176
.cfi_offset 30, -168
mov x29, sp
str x0, [sp, 24]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 168]
mov x1, 0
ldr x0, [sp, 24]
bl nonempty
mov x3, x0
adrp x0, .LC26
add x2, x0, :lo12:.LC26
mov w1, 348
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl lt_debugprintf
ldr x0, [sp, 24]
cmp x0, 0
beq .L32
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 0
bne .L33
.L32:
mov w0, 0
b .L36
.L33:
add x0, sp, 40
mov x1, x0
ldr x0, [sp, 24]
bl stat
cmp w0, 0
blt .L35
ldr w1, [sp, 56]
mov w0, 73
and w0, w1, w0
cmp w0, 0
beq .L35
mov w0, 1
b .L36
.L35:
mov w0, 0
.L36:
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 .L37
bl __stack_chk_fail
.L37:
mov w0, w1
ldp x29, x30, [sp], 176
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size check_executable, .-check_executable
.section .rodata
.align 3
.LC27:
.string "(make_executable): %s\n"
.text
.align 2
.global make_executable
.type make_executable, %function
make_executable:
.LFB11:
.cfi_startproc
stp x29, x30, [sp, -176]!
.cfi_def_cfa_offset 176
.cfi_offset 29, -176
.cfi_offset 30, -168
mov x29, sp
str x0, [sp, 24]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 168]
mov x1, 0
str wzr, [sp, 36]
ldr x0, [sp, 24]
bl nonempty
mov x3, x0
adrp x0, .LC27
add x2, x0, :lo12:.LC27
mov w1, 366
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl lt_debugprintf
ldr x0, [sp, 24]
cmp x0, 0
beq .L39
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 0
bne .L40
.L39:
mov w0, 0
b .L43
.L40:
add x0, sp, 40
mov x1, x0
ldr x0, [sp, 24]
bl stat
cmp w0, 0
blt .L42
ldr w1, [sp, 56]
mov w0, 73
orr w0, w1, w0
mov w1, w0
ldr x0, [sp, 24]
bl chmod
str w0, [sp, 36]
.L42:
ldr w0, [sp, 36]
.L43:
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 .L44
bl __stack_chk_fail
.L44:
mov w0, w1
ldp x29, x30, [sp], 176
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size make_executable, .-make_executable
.section .rodata
.align 3
.LC28:
.string "(find_executable): %s\n"
.align 3
.LC29:
.string "getcwd failed: %s"
.text
.align 2
.global find_executable
.type find_executable, %function
find_executable:
.LFB12:
.cfi_startproc
sub sp, sp, #1136
.cfi_def_cfa_offset 1136
stp x29, x30, [sp]
.cfi_offset 29, -1136
.cfi_offset 30, -1128
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, 1128]
mov x1, 0
str wzr, [sp, 36]
ldr x0, [sp, 24]
bl nonempty
mov x3, x0
adrp x0, .LC28
add x2, x0, :lo12:.LC28
mov w1, 393
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl lt_debugprintf
ldr x0, [sp, 24]
cmp x0, 0
beq .L46
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 0
bne .L47
.L46:
mov x0, 0
b .L72
.L47:
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 47
bne .L49
ldr x0, [sp, 24]
bl xstrdup
str x0, [sp, 48]
ldr x0, [sp, 48]
bl check_executable
cmp w0, 0
beq .L50
ldr x0, [sp, 48]
b .L72
.L50:
ldr x0, [sp, 48]
cmp x0, 0
beq .L49
ldr x0, [sp, 48]
bl free
str xzr, [sp, 48]
.L49:
ldr x0, [sp, 24]
str x0, [sp, 40]
b .L51
.L54:
ldr x0, [sp, 40]
ldrb w0, [x0]
cmp w0, 47
bne .L52
mov w0, 1
str w0, [sp, 36]
b .L53
.L52:
ldr x0, [sp, 40]
add x0, x0, 1
str x0, [sp, 40]
.L51:
ldr x0, [sp, 40]
ldrb w0, [x0]
cmp w0, 0
bne .L54
.L53:
ldr w0, [sp, 36]
cmp w0, 0
bne .L55
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl getenv
str x0, [sp, 64]
ldr x0, [sp, 64]
cmp x0, 0
beq .L55
ldr x0, [sp, 64]
str x0, [sp, 40]
b .L56
.L68:
ldr x0, [sp, 40]
str x0, [sp, 56]
b .L57
.L60:
ldr x0, [sp, 56]
ldrb w0, [x0]
cmp w0, 58
beq .L74
ldr x0, [sp, 56]
add x0, x0, 1
str x0, [sp, 56]
.L57:
ldr x0, [sp, 56]
ldrb w0, [x0]
cmp w0, 0
bne .L60
b .L59
.L74:
nop
.L59:
ldr x1, [sp, 56]
ldr x0, [sp, 40]
sub x0, x1, x0
str x0, [sp, 72]
ldr x0, [sp, 56]
ldrb w0, [x0]
cmp w0, 0
beq .L61
ldr x0, [sp, 56]
add x0, x0, 1
b .L62
.L61:
ldr x0, [sp, 56]
.L62:
str x0, [sp, 80]
ldr x0, [sp, 72]
cmp x0, 0
bne .L63
add x0, sp, 96
mov x1, 1024
bl getcwd
cmp x0, 0
bne .L64
bl __errno_location
ldr w0, [x0]
bl strerror
bl nonnull
mov x3, x0
adrp x0, .LC29
add x2, x0, :lo12:.LC29
mov w1, 447
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl lt_fatal
.L64:
add x0, sp, 96
bl strlen
str x0, [sp, 88]
ldr x0, [sp, 24]
bl strlen
mov x1, x0
ldr x0, [sp, 88]
add x0, x1, x0
add x0, x0, 2
bl xmalloc
str x0, [sp, 48]
add x0, sp, 96
ldr x2, [sp, 88]
mov x1, x0
ldr x0, [sp, 48]
bl memcpy
ldr x1, [sp, 48]
ldr x0, [sp, 88]
add x0, x1, x0
mov w1, 47
strb w1, [x0]
ldr x0, [sp, 88]
add x0, x0, 1
ldr x1, [sp, 48]
add x0, x1, x0
ldr x1, [sp, 24]
bl strcpy
b .L65
.L63:
ldr x0, [sp, 24]
bl strlen
mov x1, x0
ldr x0, [sp, 72]
add x0, x1, x0
add x0, x0, 2
bl xmalloc
str x0, [sp, 48]
ldr x2, [sp, 72]
ldr x1, [sp, 40]
ldr x0, [sp, 48]
bl memcpy
ldr x1, [sp, 48]
ldr x0, [sp, 72]
add x0, x1, x0
mov w1, 47
strb w1, [x0]
ldr x0, [sp, 72]
add x0, x0, 1
ldr x1, [sp, 48]
add x0, x1, x0
ldr x1, [sp, 24]
bl strcpy
.L65:
ldr x0, [sp, 48]
bl check_executable
cmp w0, 0
beq .L66
ldr x0, [sp, 48]
b .L72
.L66:
ldr x0, [sp, 48]
cmp x0, 0
beq .L67
ldr x0, [sp, 48]
bl free
str xzr, [sp, 48]
.L67:
ldr x0, [sp, 80]
str x0, [sp, 40]
.L56:
ldr x0, [sp, 40]
ldrb w0, [x0]
cmp w0, 0
bne .L68
.L55:
add x0, sp, 96
mov x1, 1024
bl getcwd
cmp x0, 0
bne .L69
bl __errno_location
ldr w0, [x0]
bl strerror
bl nonnull
mov x3, x0
adrp x0, .LC29
add x2, x0, :lo12:.LC29
mov w1, 473
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl lt_fatal
.L69:
add x0, sp, 96
bl strlen
str x0, [sp, 88]
ldr x0, [sp, 24]
bl strlen
mov x1, x0
ldr x0, [sp, 88]
add x0, x1, x0
add x0, x0, 2
bl xmalloc
str x0, [sp, 48]
add x0, sp, 96
ldr x2, [sp, 88]
mov x1, x0
ldr x0, [sp, 48]
bl memcpy
ldr x1, [sp, 48]
ldr x0, [sp, 88]
add x0, x1, x0
mov w1, 47
strb w1, [x0]
ldr x0, [sp, 88]
add x0, x0, 1
ldr x1, [sp, 48]
add x0, x1, x0
ldr x1, [sp, 24]
bl strcpy
ldr x0, [sp, 48]
bl check_executable
cmp w0, 0
beq .L70
ldr x0, [sp, 48]
b .L72
.L70:
ldr x0, [sp, 48]
cmp x0, 0
beq .L71
ldr x0, [sp, 48]
bl free
str xzr, [sp, 48]
.L71:
mov x0, 0
.L72:
mov x1, x0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 1128]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L73
bl __stack_chk_fail
.L73:
mov x0, x1
ldp x29, x30, [sp]
add sp, sp, 1136
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE12:
.size find_executable, .-find_executable
.section .rodata
.align 3
.LC30:
.string "checking path component for symlinks: %s\n"
.align 3
.LC31:
.string "error accessing file \"%s\": %s"
.align 3
.LC32:
.string "could not follow symlinks for %s"
.text
.align 2
.global chase_symlinks
.type chase_symlinks, %function
chase_symlinks:
.LFB13:
.cfi_startproc
sub sp, sp, #1216
.cfi_def_cfa_offset 1216
stp x29, x30, [sp]
.cfi_offset 29, -1216
.cfi_offset 30, -1208
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, 1208]
mov x1, 0
ldr x0, [sp, 24]
bl xstrdup
str x0, [sp, 48]
str wzr, [sp, 36]
b .L76
.L84:
ldr x3, [sp, 48]
adrp x0, .LC30
add x2, x0, :lo12:.LC30
mov w1, 500
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl lt_debugprintf
add x0, sp, 56
mov x1, x0
ldr x0, [sp, 48]
bl lstat
cmp w0, 0
bne .L77
ldr w0, [sp, 72]
and w0, w0, 61440
cmp w0, 40960
bne .L78
mov w0, 1
str w0, [sp, 36]
b .L79
.L78:
ldr x0, [sp, 48]
bl strlen
sub x0, x0, #1
ldr x1, [sp, 48]
add x0, x1, x0
str x0, [sp, 40]
b .L80
.L82:
ldr x0, [sp, 40]
sub x0, x0, #1
str x0, [sp, 40]
.L80:
ldr x1, [sp, 40]
ldr x0, [sp, 48]
cmp x1, x0
bls .L81
ldr x0, [sp, 40]
ldrb w0, [x0]
cmp w0, 47
bne .L82
.L81:
ldr x1, [sp, 40]
ldr x0, [sp, 48]
cmp x1, x0
bne .L83
ldr x0, [sp, 40]
ldrb w0, [x0]
cmp w0, 47
bne .L91
.L83:
ldr x0, [sp, 40]
strb wzr, [x0]
b .L76
.L77:
bl __errno_location
ldr w0, [x0]
bl strerror
bl nonnull
mov x4, x0
ldr x3, [sp, 48]
adrp x0, .LC31
add x2, x0, :lo12:.LC31
mov w1, 524
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl lt_fatal
.L76:
ldr x0, [sp, 48]
ldrb w0, [x0]
cmp w0, 0
beq .L79
ldr w0, [sp, 36]
cmp w0, 0
beq .L84
b .L79
.L91:
nop
.L79:
ldr x0, [sp, 48]
cmp x0, 0
beq .L85
ldr x0, [sp, 48]
bl free
str xzr, [sp, 48]
.L85:
ldr w0, [sp, 36]
cmp w0, 0
bne .L86
ldr x0, [sp, 24]
bl xstrdup
b .L89
.L86:
add x0, sp, 184
mov x1, x0
ldr x0, [sp, 24]
bl realpath
str x0, [sp, 48]
ldr x0, [sp, 48]
cmp x0, 0
bne .L88
ldr x3, [sp, 24]
adrp x0, .LC32
add x2, x0, :lo12:.LC32
mov w1, 539
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl lt_fatal
.L88:
ldr x0, [sp, 48]
bl xstrdup
.L89:
mov x1, x0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 1208]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L90
bl __stack_chk_fail
.L90:
mov x0, x1
ldp x29, x30, [sp]
add sp, sp, 1216
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE13:
.size chase_symlinks, .-chase_symlinks
.section .rodata
.align 3
.LC33:
.string "str != NULL"
.align 3
.LC34:
.string "pat != NULL"
.text
.align 2
.global strendzap
.type strendzap, %function
strendzap:
.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 x0, [sp, 24]
cmp x0, 0
bne .L93
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 551
adrp x0, .LC9
add x1, x0, :lo12:.LC9
adrp x0, .LC33
add x0, x0, :lo12:.LC33
bl __assert_fail
.L93:
ldr x0, [sp, 16]
cmp x0, 0
bne .L94
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 552
adrp x0, .LC9
add x1, x0, :lo12:.LC9
adrp x0, .LC34
add x0, x0, :lo12:.LC34
bl __assert_fail
.L94:
ldr x0, [sp, 24]
bl strlen
str x0, [sp, 32]
ldr x0, [sp, 16]
bl strlen
str x0, [sp, 40]
ldr x1, [sp, 40]
ldr x0, [sp, 32]
cmp x1, x0
bhi .L95
ldr x1, [sp, 32]
ldr x0, [sp, 40]
sub x0, x1, x0
ldr x1, [sp, 24]
add x0, x1, x0
str x0, [sp, 24]
ldr x1, [sp, 16]
ldr x0, [sp, 24]
bl strcmp
cmp w0, 0
bne .L95
ldr x0, [sp, 24]
strb wzr, [x0]
.L95:
ldr x0, [sp, 24]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE14:
.size strendzap, .-strendzap
.section .rodata
.align 3
.LC35:
.string "%s:%s:%d: "
.text
.align 2
.global lt_debugprintf
.type lt_debugprintf, %function
lt_debugprintf:
.LFB15:
.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, 72]
str w1, [sp, 68]
str x2, [sp, 56]
str x3, [sp, 264]
str x4, [sp, 272]
str x5, [sp, 280]
str x6, [sp, 288]
str x7, [sp, 296]
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
adrp x0, lt_debug
add x0, x0, :lo12:lt_debug
ldr w0, [x0]
cmp w0, 0
beq .L100
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x5, [x0]
adrp x0, program_name
add x0, x0, :lo12:program_name
ldr x0, [x0]
ldr w4, [sp, 68]
ldr x3, [sp, 72]
mov x2, x0
adrp x0, .LC35
add x1, x0, :lo12:.LC35
mov x0, x5
bl fprintf
add x0, sp, 304
str x0, [sp, 88]
add x0, sp, 304
str x0, [sp, 96]
add x0, sp, 256
str x0, [sp, 104]
mov w0, -40
str w0, [sp, 112]
mov w0, -128
str w0, [sp, 116]
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
add x0, sp, 16
add x1, sp, 88
ldp q0, q1, [x1]
stp q0, q1, [x0]
add x0, sp, 16
mov x2, x0
ldr x1, [sp, 56]
mov x0, x3
bl vfprintf
.L100:
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 .L99
bl __stack_chk_fail
.L99:
ldp x29, x30, [sp], 304
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE15:
.size lt_debugprintf, .-lt_debugprintf
.section .rodata
.align 3
.LC36:
.string "%s:%s:%d: %s: "
.align 3
.LC37:
.string ".\n"
.text
.align 2
.type lt_error_core, %function
lt_error_core:
.LFB16:
.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, 92]
str x1, [sp, 80]
str w2, [sp, 88]
str x3, [sp, 72]
str x4, [sp, 64]
mov x19, x5
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x6, [x0]
adrp x0, program_name
add x0, x0, :lo12:program_name
ldr x0, [x0]
ldr x5, [sp, 72]
ldr w4, [sp, 88]
ldr x3, [sp, 80]
mov x2, x0
adrp x0, .LC36
add x1, x0, :lo12:.LC36
mov x0, x6
bl fprintf
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
add x0, sp, 32
mov x1, x19
ldp q0, q1, [x1]
stp q0, q1, [x0]
add x0, sp, 32
mov x2, x0
ldr x1, [sp, 64]
mov x0, x3
bl vfprintf
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 2
mov x1, 1
adrp x0, .LC37
add x0, x0, :lo12:.LC37
bl fwrite
ldr w0, [sp, 92]
cmp w0, 0
blt .L103
ldr w0, [sp, 92]
bl exit
.L103:
nop
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
.LFE16:
.size lt_error_core, .-lt_error_core
.section .rodata
.align 3
.LC38:
.string "FATAL"
.text
.align 2
.global lt_fatal
.type lt_fatal, %function
lt_fatal:
.LFB17:
.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, 72]
str w1, [sp, 68]
str x2, [sp, 56]
str x3, [sp, 264]
str x4, [sp, 272]
str x5, [sp, 280]
str x6, [sp, 288]
str x7, [sp, 296]
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, 304
str x0, [sp, 88]
add x0, sp, 304
str x0, [sp, 96]
add x0, sp, 256
str x0, [sp, 104]
mov w0, -40
str w0, [sp, 112]
mov w0, -128
str w0, [sp, 116]
add x0, sp, 16
add x1, sp, 88
ldp q0, q1, [x1]
stp q0, q1, [x0]
add x0, sp, 16
mov x5, x0
ldr x4, [sp, 56]
adrp x0, .LC38
add x3, x0, :lo12:.LC38
ldr w2, [sp, 68]
ldr x1, [sp, 72]
mov w0, 1
bl lt_error_core
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 .L105
bl __stack_chk_fail
.L105:
ldp x29, x30, [sp], 304
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE17:
.size lt_fatal, .-lt_fatal
.section .rodata
.align 3
.LC39:
.string "(null)"
.text
.align 2
.type nonnull, %function
nonnull:
.LFB18:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
ldr x0, [sp, 8]
cmp x0, 0
beq .L107
ldr x0, [sp, 8]
b .L109
.L107:
adrp x0, .LC39
add x0, x0, :lo12:.LC39
.L109:
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE18:
.size nonnull, .-nonnull
.section .rodata
.align 3
.LC40:
.string "(empty)"
.text
.align 2
.type nonempty, %function
nonempty:
.LFB19:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
beq .L111
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 0
beq .L112
.L111:
ldr x0, [sp, 24]
bl nonnull
b .L114
.L112:
adrp x0, .LC40
add x0, x0, :lo12:.LC40
.L114:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE19:
.size nonempty, .-nonempty
.section .rodata
.align 3
.LC41:
.string "(lt_setenv) setting '%s' to '%s'\n"
.align 3
.LC42:
.string "%s=%s"
.text
.align 2
.global lt_setenv
.type lt_setenv, %function
lt_setenv:
.LFB20:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -48
str x0, [sp, 40]
str x1, [sp, 32]
ldr x0, [sp, 40]
bl nonnull
mov x19, x0
ldr x0, [sp, 32]
bl nonnull
mov x4, x0
mov x3, x19
adrp x0, .LC41
add x2, x0, :lo12:.LC41
mov w1, 616
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl lt_debugprintf
ldr x0, [sp, 40]
bl strlen
mov x19, x0
ldr x0, [sp, 32]
bl strlen
add x0, x19, x0
add x0, x0, 2
str x0, [sp, 48]
ldr x0, [sp, 48]
bl xmalloc
str x0, [sp, 56]
ldr x3, [sp, 32]
ldr x2, [sp, 40]
adrp x0, .LC42
add x1, x0, :lo12:.LC42
ldr x0, [sp, 56]
bl sprintf
ldr x0, [sp, 56]
bl putenv
cmp w0, 0
beq .L117
ldr x0, [sp, 56]
cmp x0, 0
beq .L117
ldr x0, [sp, 56]
bl free
str xzr, [sp, 56]
.L117:
nop
ldr x19, [sp, 16]
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE20:
.size lt_setenv, .-lt_setenv
.align 2
.global lt_extend_str
.type lt_extend_str, %function
lt_extend_str:
.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 x0, [sp, 40]
str x1, [sp, 32]
str w2, [sp, 28]
ldr x0, [sp, 40]
cmp x0, 0
beq .L119
ldr x0, [sp, 40]
ldrb w0, [x0]
cmp w0, 0
beq .L119
ldr x0, [sp, 40]
bl strlen
str x0, [sp, 64]
ldr x0, [sp, 32]
bl strlen
str x0, [sp, 72]
ldr x1, [sp, 72]
ldr x0, [sp, 64]
add x0, x1, x0
add x0, x0, 1
bl xmalloc
str x0, [sp, 56]
ldr w0, [sp, 28]
cmp w0, 0
beq .L120
ldr x1, [sp, 40]
ldr x0, [sp, 56]
bl strcpy
ldr x1, [sp, 56]
ldr x0, [sp, 64]
add x0, x1, x0
ldr x1, [sp, 32]
bl strcpy
b .L122
.L120:
ldr x1, [sp, 32]
ldr x0, [sp, 56]
bl strcpy
ldr x1, [sp, 56]
ldr x0, [sp, 72]
add x0, x1, x0
ldr x1, [sp, 40]
bl strcpy
b .L122
.L119:
ldr x0, [sp, 32]
bl xstrdup
str x0, [sp, 56]
.L122:
ldr x0, [sp, 56]
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE21:
.size lt_extend_str, .-lt_extend_str
.section .rodata
.align 3
.LC43:
.string "(lt_update_exe_path) modifying '%s' by prepending '%s'\n"
.text
.align 2
.global lt_update_exe_path
.type lt_update_exe_path, %function
lt_update_exe_path:
.LFB22:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -48
str x0, [sp, 40]
str x1, [sp, 32]
ldr x0, [sp, 40]
bl nonnull
mov x19, x0
ldr x0, [sp, 32]
bl nonnull
mov x4, x0
mov x3, x19
adrp x0, .LC43
add x2, x0, :lo12:.LC43
mov w1, 666
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl lt_debugprintf
ldr x0, [sp, 40]
cmp x0, 0
beq .L129
ldr x0, [sp, 40]
ldrb w0, [x0]
cmp w0, 0
beq .L129
ldr x0, [sp, 32]
cmp x0, 0
beq .L129
ldr x0, [sp, 32]
ldrb w0, [x0]
cmp w0, 0
beq .L129
ldr x0, [sp, 40]
bl getenv
mov w2, 0
ldr x1, [sp, 32]
bl lt_extend_str
str x0, [sp, 56]
ldr x0, [sp, 56]
bl strlen
str x0, [sp, 48]
b .L126
.L128:
ldr x0, [sp, 48]
sub x0, x0, #1
str x0, [sp, 48]
ldr x1, [sp, 56]
ldr x0, [sp, 48]
add x0, x1, x0
strb wzr, [x0]
.L126:
ldr x0, [sp, 48]
cmp x0, 0
beq .L127
ldr x0, [sp, 48]
sub x0, x0, #1
ldr x1, [sp, 56]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 58
beq .L128
.L127:
ldr x1, [sp, 56]
ldr x0, [sp, 40]
bl lt_setenv
ldr x0, [sp, 56]
cmp x0, 0
beq .L129
ldr x0, [sp, 56]
bl free
str xzr, [sp, 56]
.L129:
nop
ldr x19, [sp, 16]
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE22:
.size lt_update_exe_path, .-lt_update_exe_path
.section .rodata
.align 3
.LC44:
.string "(lt_update_lib_path) modifying '%s' by prepending '%s'\n"
.text
.align 2
.global lt_update_lib_path
.type lt_update_lib_path, %function
lt_update_lib_path:
.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 x19, [sp, 16]
.cfi_offset 19, -48
str x0, [sp, 40]
str x1, [sp, 32]
ldr x0, [sp, 40]
bl nonnull
mov x19, x0
ldr x0, [sp, 32]
bl nonnull
mov x4, x0
mov x3, x19
adrp x0, .LC44
add x2, x0, :lo12:.LC44
mov w1, 687
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl lt_debugprintf
ldr x0, [sp, 40]
cmp x0, 0
beq .L132
ldr x0, [sp, 40]
ldrb w0, [x0]
cmp w0, 0
beq .L132
ldr x0, [sp, 32]
cmp x0, 0
beq .L132
ldr x0, [sp, 32]
ldrb w0, [x0]
cmp w0, 0
beq .L132
ldr x0, [sp, 40]
bl getenv
mov w2, 0
ldr x1, [sp, 32]
bl lt_extend_str
str x0, [sp, 56]
ldr x1, [sp, 56]
ldr x0, [sp, 40]
bl lt_setenv
ldr x0, [sp, 56]
cmp x0, 0
beq .L132
ldr x0, [sp, 56]
bl free
str xzr, [sp, 56]
.L132:
nop
ldr x19, [sp, 16]
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE23:
.size lt_update_lib_path, .-lt_update_lib_path
.section .rodata
.align 3
.LC45:
.string "#! /bin/sh\n"
.align 3
.LC46:
.string "# main - temporary wrapper script for .libs/main\n"
.align 3
.LC47:
.string "# Generated by libtool (GNU libtool) 2.4.6\n"
.align 3
.LC48:
.string "#\n"
.align 3
.LC49:
.string "# The main program cannot be directly executed until all the libtool\n"
.align 3
.LC50:
.string "# libraries that it depends on are installed.\n"
.align 3
.LC51:
.string "# This wrapper script should never be moved out of the build directory.\n"
.align 3
.LC52:
.string "# If it is, it will not operate correctly.\n"
.align 3
.LC53:
.string "# Sed substitution that helps us do robust quoting. It backslashifies\n"
.align 3
.LC54:
.string "# metacharacters that are still active within double-quoted strings.\n"
.align 3
.LC55:
.string "sed_quote_subst='s|\\([`\"$\\\\]\\)|\\\\\\1|g'\n"
.align 3
.LC56:
.string "# Be Bourne compatible\n"
.align 3
.LC57:
.string "if test -n \"${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then\n"
.align 3
.LC58:
.string " emulate sh\n"
.align 3
.LC59:
.string " NULLCMD=:\n"
.align 3
.LC60:
.string " # Zsh 3.x and 4.x performs word splitting on ${1+\"$@\"}, which\n"
.align 3
.LC61:
.string " # is contrary to our usage. Disable this feature.\n"
.align 3
.LC62:
.string " alias -g '${1+\"$@\"}'='\"$@\"'\n"
.align 3
.LC63:
.string " setopt NO_GLOB_SUBST\n"
.align 3
.LC64:
.string "else\n"
.align 3
.LC65:
.string " case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac\n"
.align 3
.LC66:
.string "fi\n"
.align 3
.LC67:
.string "BIN_SH=xpg4; export BIN_SH # for Tru64\n"
.align 3
.LC68:
.string "DUALCASE=1; export DUALCASE # for MKS sh\n"
.align 3
.LC69:
.string "# The HP-UX ksh and POSIX shell print the target directory to stdout\n"
.align 3
.LC70:
.string "# if CDPATH is set.\n"
.align 3
.LC71:
.string "(unset CDPATH) >/dev/null 2>&1 && unset CDPATH\n"
.align 3
.LC72:
.string "relink_command=\"\"\n"
.align 3
.LC73:
.string "# This environment variable determines our operation mode.\n"
.align 3
.LC74:
.string "if test \"$libtool_install_magic\" = \"%%%MAGIC variable%%%\"; then\n"
.align 3
.LC75:
.string " # install mode needs the following variables:\n"
.align 3
.LC76:
.string " generated_by_libtool_version='2.4.6'\n"
.align 3
.LC77:
.string " notinst_deplibs=''\n"
.align 3
.LC78:
.string " # When we are sourced in execute mode, $file and $ECHO are already set.\n"
.align 3
.LC79:
.string " if test \"$libtool_execute_magic\" != \"%%%MAGIC variable%%%\"; then\n"
.align 3
.LC80:
.string " file=\"$0\"\n"
.align 3
.LC81:
.string "# A function that is used when there is no print builtin or printf.\n"
.align 3
.LC82:
.string "func_fallback_echo ()\n"
.align 3
.LC83:
.string "{\n"
.align 3
.LC84:
.string " eval 'cat <<_LTECHO_EOF\n"
.align 3
.LC85:
.string "$1\n"
.align 3
.LC86:
.string "_LTECHO_EOF'\n"
.align 3
.LC87:
.string "}\n"
.align 3
.LC88:
.string " ECHO=\"printf %s\\\\n\"\n"
.align 3
.LC89:
.string " fi\n"
.align 3
.LC90:
.string "# Very basic option parsing. These options are (a) specific to\n"
.align 3
.LC91:
.string "# the libtool wrapper, (b) are identical between the wrapper\n"
.align 3
.LC92:
.string "# /script/ and the wrapper /executable/ that is used only on\n"
.align 3
.LC93:
.string "# windows platforms, and (c) all begin with the string --lt-\n"
.align 3
.LC94:
.string "# (application programs are unlikely to have options that match\n"
.align 3
.LC95:
.string "# this pattern).\n"
.align 3
.LC96:
.string "# There are only two supported options: --lt-debug and\n"
.align 3
.LC97:
.string "# --lt-dump-script. There is, deliberately, no --lt-help.\n"
.align 3
.LC98:
.string "# The first argument to this parsing function should be the\n"
.align 3
.LC99:
.string "# script's ../libtool value, followed by yes.\n"
.align 3
.LC100:
.string "lt_option_debug=\n"
.align 3
.LC101:
.string "func_parse_lt_options ()\n"
.align 3
.LC102:
.string " lt_script_arg0=$0\n"
.align 3
.LC103:
.string " shift\n"
.align 3
.LC104:
.string " for lt_opt\n"
.align 3
.LC105:
.string " do\n"
.align 3
.LC106:
.string " case \"$lt_opt\" in\n"
.align 3
.LC107:
.string " --lt-debug) lt_option_debug=1 ;;\n"
.align 3
.LC108:
.string " --lt-dump-script)\n"
.align 3
.LC109:
.string " lt_dump_D=`$ECHO \"X$lt_script_arg0\" | /usr/bin/sed -e 's/^X//' -e 's%/["
.align 3
.LC110:
.string "^/]*$%%'`\n"
.align 3
.LC111:
.string " test \"X$lt_dump_D\" = \"X$lt_script_arg0\" && lt_dump_D=.\n"
.align 3
.LC112:
.string " lt_dump_F=`$ECHO \"X$lt_script_arg0\" | /usr/bin/sed -e 's/^X//' -e 's%^."
.align 3
.LC113:
.string "*/%%'`\n"
.align 3
.LC114:
.string " cat \"$lt_dump_D/$lt_dump_F\"\n"
.align 3
.LC115:
.string " exit 0\n"
.align 3
.LC116:
.string " ;;\n"
.align 3
.LC117:
.string " --lt-*)\n"
.align 3
.LC118:
.string " $ECHO \"Unrecognized --lt- option: '$lt_opt'\" 1>&2\n"
.align 3
.LC119:
.string " exit 1\n"
.align 3
.LC120:
.string " esac\n"
.align 3
.LC121:
.string " done\n"
.align 3
.LC122:
.string " # Print the debug banner immediately:\n"
.align 3
.LC123:
.string " if test -n \"$lt_option_debug\"; then\n"
.align 3
.LC124:
.string " echo \"main:main:$LINENO: libtool wrapper (GNU libtool) 2.4.6\" 1>&2\n"
.align 3
.LC125:
.string "# Used when --lt-debug. Prints its arguments to stdout\n"
.align 3
.LC126:
.string "# (redirection is the responsibility of the caller)\n"
.align 3
.LC127:
.string "func_lt_dump_args ()\n"
.align 3
.LC128:
.string " lt_dump_args_N=1;\n"
.align 3
.LC129:
.string " for lt_arg\n"
.align 3
.LC130:
.string " $ECHO \"main:main:$LINENO: newargv[$lt_dump_args_N]: $lt_arg\"\n"
.align 3
.LC131:
.string " lt_dump_args_N=`expr $lt_dump_args_N + 1`\n"
.align 3
.LC132:
.string "# Core function for launching the target application\n"
.align 3
.LC133:
.string "func_exec_program_core ()\n"
.align 3
.LC134:
.string " if test -n \"$lt_option_debug\"; then\n"
.align 3
.LC135:
.string " $ECHO \"main:main:$LINENO: newargv[0]: $progdir/$program\" 1>&2\n"
.align 3
.LC136:
.string " func_lt_dump_args ${1+\"$@\"} 1>&2\n"
.align 3
.LC137:
.string " fi\n"
.align 3
.LC138:
.string " exec \"$progdir/$program\" ${1+\"$@\"}\n"
.align 3
.LC139:
.string " $ECHO \"$0: cannot exec $program $*\" 1>&2\n"
.align 3
.LC140:
.string " exit 1\n"
.align 3
.LC141:
.string "# A function to encapsulate launching the target application\n"
.align 3
.LC142:
.string "# Strips options in the --lt-* namespace from $@ and\n"
.align 3
.LC143:
.string "# launches target application with the remaining arguments.\n"
.align 3
.LC144:
.string "func_exec_program ()\n"
.align 3
.LC145:
.string " case \" $* \" in\n"
.align 3
.LC146:
.string " *\\ --lt-*)\n"
.align 3
.LC147:
.string " for lt_wr_arg\n"
.align 3
.LC148:
.string " do\n"
.align 3
.LC149:
.string " case $lt_wr_arg in\n"
.align 3
.LC150:
.string " --lt-*) ;;\n"
.align 3
.LC151:
.string " *) set x \"$@\" \"$lt_wr_arg\"; shift;;\n"
.align 3
.LC152:
.string " esac\n"
.align 3
.LC153:
.string " shift\n"
.align 3
.LC154:
.string " done ;;\n"
.align 3
.LC155:
.string " esac\n"
.align 3
.LC156:
.string " func_exec_program_core ${1+\"$@\"}\n"
.align 3
.LC157:
.string " # Parse options\n"
.align 3
.LC158:
.string " func_parse_lt_options \"$0\" ${1+\"$@\"}\n"
.align 3
.LC159:
.string " # Find the directory that this script lives in.\n"
.align 3
.LC160:
.string " thisdir=`$ECHO \"$file\" | /usr/bin/sed 's%/[^/]*$%%'`\n"
.align 3
.LC161:
.string " test \"x$thisdir\" = \"x$file\" && thisdir=.\n"
.align 3
.LC162:
.string " # Follow symbolic links until we get to the real thisdir.\n"
.align 3
.LC163:
.string " file=`ls -ld \"$file\" | /usr/bin/sed -n 's/.*-> //p'`\n"
.align 3
.LC164:
.string " while test -n \"$file\"; do\n"
.align 3
.LC165:
.string " destdir=`$ECHO \"$file\" | /usr/bin/sed 's%/[^/]*$%%'`\n"
.align 3
.LC166:
.string " # If there was a directory component, then change thisdir.\n"
.align 3
.LC167:
.string " if test \"x$destdir\" != \"x$file\"; then\n"
.align 3
.LC168:
.string " case \"$destdir\" in\n"
.align 3
.LC169:
.string " [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"$destdir\" ;;\n"
.align 3
.LC170:
.string " *) thisdir=\"$thisdir/$destdir\" ;;\n"
.align 3
.LC171:
.string " fi\n"
.align 3
.LC172:
.string " file=`$ECHO \"$file\" | /usr/bin/sed 's%^.*/%%'`\n"
.align 3
.LC173:
.string " file=`ls -ld \"$thisdir/$file\" | /usr/bin/sed -n 's/.*-> //p'`\n"
.align 3
.LC174:
.string " # Usually 'no', except on cygwin/mingw when embedded into\n"
.align 3
.LC175:
.string " # the cwrapper.\n"
.align 3
.LC176:
.string " WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=yes\n"
.align 3
.LC177:
.string " if test \"$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then\n"
.align 3
.LC178:
.string " # special case for '.'\n"
.align 3
.LC179:
.string " if test \"$thisdir\" = \".\"; then\n"
.align 3
.LC180:
.string " thisdir=`pwd`\n"
.align 3
.LC181:
.string " # remove .libs from thisdir\n"
.align 3
.LC182:
.string " case \"$thisdir\" in\n"
.align 3
.LC183:
.string " *[\\\\/].libs ) thisdir=`$ECHO \"$thisdir\" | /usr/bin/sed 's%[\\\\/][^\\\\/]*$%%'`"
.align 3
.LC184:
.string " ;;\n"
.align 3
.LC185:
.string " .libs ) thisdir=. ;;\n"
.align 3
.LC186:
.string " # Try to get the absolute directory name.\n"
.align 3
.LC187:
.string " absdir=`cd \"$thisdir\" && pwd`\n"
.align 3
.LC188:
.string " test -n \"$absdir\" && thisdir=\"$absdir\"\n"
.align 3
.LC189:
.string " program='main'\n"
.align 3
.LC190:
.string " progdir=\"$thisdir/.libs\"\n"
.align 3
.LC191:
.string " if test -f \"$progdir/$program\"; then\n"
.align 3
.LC192:
.string " if test \"$libtool_execute_magic\" != \"%%%MAGIC variable%%%\"; then\n"
.align 3
.LC193:
.string " # Run the actual program with our arguments.\n"
.align 3
.LC194:
.string " func_exec_program ${1+\"$@\"}\n"
.align 3
.LC195:
.string " else\n"
.align 3
.LC196:
.string " # The program doesn't exist.\n"
.align 3
.LC197:
.string " $ECHO \"$0: error: '$progdir/$program' does not exist\" 1>&2\n"
.align 3
.LC198:
.string " $ECHO \"This script is just a wrapper for $program.\" 1>&2\n"
.align 3
.LC199:
.string " $ECHO \"See the libtool documentation for more information.\" 1>&2\n"
.align 3
.LC200:
.string " exit 1\n"
.text
.align 2
.global lt_dump_script
.type lt_dump_script, %function
lt_dump_script:
.LFB24:
.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 x3, [sp, 24]
mov x2, 11
mov x1, 1
adrp x0, .LC45
add x0, x0, :lo12:.LC45
bl fwrite
ldr x1, [sp, 24]
mov w0, 10
bl fputc
ldr x3, [sp, 24]
mov x2, 49
mov x1, 1
adrp x0, .LC46
add x0, x0, :lo12:.LC46
bl fwrite
ldr x3, [sp, 24]
mov x2, 43
mov x1, 1
adrp x0, .LC47
add x0, x0, :lo12:.LC47
bl fwrite
ldr x3, [sp, 24]
mov x2, 2
mov x1, 1
adrp x0, .LC48
add x0, x0, :lo12:.LC48
bl fwrite
ldr x3, [sp, 24]
mov x2, 69
mov x1, 1
adrp x0, .LC49
add x0, x0, :lo12:.LC49
bl fwrite
ldr x3, [sp, 24]
mov x2, 46
mov x1, 1
adrp x0, .LC50
add x0, x0, :lo12:.LC50
bl fwrite
ldr x3, [sp, 24]
mov x2, 2
mov x1, 1
adrp x0, .LC48
add x0, x0, :lo12:.LC48
bl fwrite
ldr x3, [sp, 24]
mov x2, 72
mov x1, 1
adrp x0, .LC51
add x0, x0, :lo12:.LC51
bl fwrite
ldr x3, [sp, 24]
mov x2, 43
mov x1, 1
adrp x0, .LC52
add x0, x0, :lo12:.LC52
bl fwrite
ldr x1, [sp, 24]
mov w0, 10
bl fputc
ldr x3, [sp, 24]
mov x2, 71
mov x1, 1
adrp x0, .LC53
add x0, x0, :lo12:.LC53
bl fwrite
ldr x3, [sp, 24]
mov x2, 69
mov x1, 1
adrp x0, .LC54
add x0, x0, :lo12:.LC54
bl fwrite
ldr x3, [sp, 24]
mov x2, 39
mov x1, 1
adrp x0, .LC55
add x0, x0, :lo12:.LC55
bl fwrite
ldr x1, [sp, 24]
mov w0, 10
bl fputc
ldr x3, [sp, 24]
mov x2, 23
mov x1, 1
adrp x0, .LC56
add x0, x0, :lo12:.LC56
bl fwrite
ldr x3, [sp, 24]
mov x2, 70
mov x1, 1
adrp x0, .LC57
add x0, x0, :lo12:.LC57
bl fwrite
ldr x3, [sp, 24]
mov x2, 13
mov x1, 1
adrp x0, .LC58
add x0, x0, :lo12:.LC58
bl fwrite
ldr x3, [sp, 24]
mov x2, 12
mov x1, 1
adrp x0, .LC59
add x0, x0, :lo12:.LC59
bl fwrite
ldr x3, [sp, 24]
mov x2, 64
mov x1, 1
adrp x0, .LC60
add x0, x0, :lo12:.LC60
bl fwrite
ldr x3, [sp, 24]
mov x2, 53
mov x1, 1
adrp x0, .LC61
add x0, x0, :lo12:.LC61
bl fwrite
ldr x3, [sp, 24]
mov x2, 30
mov x1, 1
adrp x0, .LC62
add x0, x0, :lo12:.LC62
bl fwrite
ldr x3, [sp, 24]
mov x2, 23
mov x1, 1
adrp x0, .LC63
add x0, x0, :lo12:.LC63
bl fwrite
ldr x3, [sp, 24]
mov x2, 5
mov x1, 1
adrp x0, .LC64
add x0, x0, :lo12:.LC64
bl fwrite
ldr x3, [sp, 24]
mov x2, 62
mov x1, 1
adrp x0, .LC65
add x0, x0, :lo12:.LC65
bl fwrite
ldr x3, [sp, 24]
mov x2, 3
mov x1, 1
adrp x0, .LC66
add x0, x0, :lo12:.LC66
bl fwrite
ldr x3, [sp, 24]
mov x2, 39
mov x1, 1
adrp x0, .LC67
add x0, x0, :lo12:.LC67
bl fwrite
ldr x3, [sp, 24]
mov x2, 41
mov x1, 1
adrp x0, .LC68
add x0, x0, :lo12:.LC68
bl fwrite
ldr x1, [sp, 24]
mov w0, 10
bl fputc
ldr x3, [sp, 24]
mov x2, 69
mov x1, 1
adrp x0, .LC69
add x0, x0, :lo12:.LC69
bl fwrite
ldr x3, [sp, 24]
mov x2, 20
mov x1, 1
adrp x0, .LC70
add x0, x0, :lo12:.LC70
bl fwrite
ldr x3, [sp, 24]
mov x2, 47
mov x1, 1
adrp x0, .LC71
add x0, x0, :lo12:.LC71
bl fwrite
ldr x1, [sp, 24]
mov w0, 10
bl fputc
ldr x3, [sp, 24]
mov x2, 18
mov x1, 1
adrp x0, .LC72
add x0, x0, :lo12:.LC72
bl fwrite
ldr x1, [sp, 24]
mov w0, 10
bl fputc
ldr x3, [sp, 24]
mov x2, 59
mov x1, 1
adrp x0, .LC73
add x0, x0, :lo12:.LC73
bl fwrite
ldr x3, [sp, 24]
mov x2, 64
mov x1, 1
adrp x0, .LC74
add x0, x0, :lo12:.LC74
bl fwrite
ldr x3, [sp, 24]
mov x2, 48
mov x1, 1
adrp x0, .LC75
add x0, x0, :lo12:.LC75
bl fwrite
ldr x3, [sp, 24]
mov x2, 39
mov x1, 1
adrp x0, .LC76
add x0, x0, :lo12:.LC76
bl fwrite
ldr x3, [sp, 24]
mov x2, 21
mov x1, 1
adrp x0, .LC77
add x0, x0, :lo12:.LC77
bl fwrite
ldr x3, [sp, 24]
mov x2, 5
mov x1, 1
adrp x0, .LC64
add x0, x0, :lo12:.LC64
bl fwrite
ldr x3, [sp, 24]
mov x2, 74
mov x1, 1
adrp x0, .LC78
add x0, x0, :lo12:.LC78
bl fwrite
ldr x3, [sp, 24]
mov x2, 67
mov x1, 1
adrp x0, .LC79
add x0, x0, :lo12:.LC79
bl fwrite
ldr x3, [sp, 24]
mov x2, 14
mov x1, 1
adrp x0, .LC80
add x0, x0, :lo12:.LC80
bl fwrite
ldr x1, [sp, 24]
mov w0, 10
bl fputc
ldr x3, [sp, 24]
mov x2, 68
mov x1, 1
adrp x0, .LC81
add x0, x0, :lo12:.LC81
bl fwrite
ldr x3, [sp, 24]
mov x2, 22
mov x1, 1
adrp x0, .LC82
add x0, x0, :lo12:.LC82
bl fwrite
ldr x3, [sp, 24]
mov x2, 2
mov x1, 1
adrp x0, .LC83
add x0, x0, :lo12:.LC83
bl fwrite
ldr x3, [sp, 24]
mov x2, 26
mov x1, 1
adrp x0, .LC84
add x0, x0, :lo12:.LC84
bl fwrite
ldr x3, [sp, 24]
mov x2, 3
mov x1, 1
adrp x0, .LC85
add x0, x0, :lo12:.LC85
bl fwrite
ldr x3, [sp, 24]
mov x2, 13
mov x1, 1
adrp x0, .LC86
add x0, x0, :lo12:.LC86
bl fwrite
ldr x3, [sp, 24]
mov x2, 2
mov x1, 1
adrp x0, .LC87
add x0, x0, :lo12:.LC87
bl fwrite
ldr x3, [sp, 24]
mov x2, 24
mov x1, 1
adrp x0, .LC88
add x0, x0, :lo12:.LC88
bl fwrite
ldr x3, [sp, 24]
mov x2, 5
mov x1, 1
adrp x0, .LC89
add x0, x0, :lo12:.LC89
bl fwrite
ldr x1, [sp, 24]
mov w0, 10
bl fputc
ldr x3, [sp, 24]
mov x2, 63
mov x1, 1
adrp x0, .LC90
add x0, x0, :lo12:.LC90
bl fwrite
ldr x3, [sp, 24]
mov x2, 61
mov x1, 1
adrp x0, .LC91
add x0, x0, :lo12:.LC91
bl fwrite
ldr x3, [sp, 24]
mov x2, 61
mov x1, 1
adrp x0, .LC92
add x0, x0, :lo12:.LC92
bl fwrite
ldr x3, [sp, 24]
mov x2, 61
mov x1, 1
adrp x0, .LC93
add x0, x0, :lo12:.LC93
bl fwrite
ldr x3, [sp, 24]
mov x2, 64
mov x1, 1
adrp x0, .LC94
add x0, x0, :lo12:.LC94
bl fwrite
ldr x3, [sp, 24]
mov x2, 17
mov x1, 1
adrp x0, .LC95
add x0, x0, :lo12:.LC95
bl fwrite
ldr x3, [sp, 24]
mov x2, 2
mov x1, 1
adrp x0, .LC48
add x0, x0, :lo12:.LC48
bl fwrite
ldr x3, [sp, 24]
mov x2, 55
mov x1, 1
adrp x0, .LC96
add x0, x0, :lo12:.LC96
bl fwrite
ldr x3, [sp, 24]
mov x2, 58
mov x1, 1
adrp x0, .LC97
add x0, x0, :lo12:.LC97
bl fwrite
ldr x3, [sp, 24]
mov x2, 2
mov x1, 1
adrp x0, .LC48
add x0, x0, :lo12:.LC48
bl fwrite
ldr x3, [sp, 24]
mov x2, 60
mov x1, 1
adrp x0, .LC98
add x0, x0, :lo12:.LC98
bl fwrite
ldr x3, [sp, 24]
mov x2, 46
mov x1, 1
adrp x0, .LC99
add x0, x0, :lo12:.LC99
bl fwrite
ldr x3, [sp, 24]
mov x2, 17
mov x1, 1
adrp x0, .LC100
add x0, x0, :lo12:.LC100
bl fwrite
ldr x3, [sp, 24]
mov x2, 25
mov x1, 1
adrp x0, .LC101
add x0, x0, :lo12:.LC101
bl fwrite
ldr x3, [sp, 24]
mov x2, 2
mov x1, 1
adrp x0, .LC83
add x0, x0, :lo12:.LC83
bl fwrite
ldr x3, [sp, 24]
mov x2, 20
mov x1, 1
adrp x0, .LC102
add x0, x0, :lo12:.LC102
bl fwrite
ldr x3, [sp, 24]
mov x2, 8
mov x1, 1
adrp x0, .LC103
add x0, x0, :lo12:.LC103
bl fwrite
ldr x3, [sp, 24]
mov x2, 13
mov x1, 1
adrp x0, .LC104
add x0, x0, :lo12:.LC104
bl fwrite
ldr x3, [sp, 24]
mov x2, 5
mov x1, 1
adrp x0, .LC105
add x0, x0, :lo12:.LC105
bl fwrite
ldr x3, [sp, 24]
mov x2, 22
mov x1, 1
adrp x0, .LC106
add x0, x0, :lo12:.LC106
bl fwrite
ldr x3, [sp, 24]
mov x2, 37
mov x1, 1
adrp x0, .LC107
add x0, x0, :lo12:.LC107
bl fwrite
ldr x3, [sp, 24]
mov x2, 22
mov x1, 1
adrp x0, .LC108
add x0, x0, :lo12:.LC108
bl fwrite
ldr x3, [sp, 24]
mov x2, 79
mov x1, 1
adrp x0, .LC109
add x0, x0, :lo12:.LC109
bl fwrite
ldr x3, [sp, 24]
mov x2, 10
mov x1, 1
adrp x0, .LC110
add x0, x0, :lo12:.LC110
bl fwrite
ldr x3, [sp, 24]
mov x2, 63
mov x1, 1
adrp x0, .LC111
add x0, x0, :lo12:.LC111
bl fwrite
ldr x3, [sp, 24]
mov x2, 79
mov x1, 1
adrp x0, .LC112
add x0, x0, :lo12:.LC112
bl fwrite
ldr x3, [sp, 24]
mov x2, 7
mov x1, 1
adrp x0, .LC113
add x0, x0, :lo12:.LC113
bl fwrite
ldr x3, [sp, 24]
mov x2, 36
mov x1, 1
adrp x0, .LC114
add x0, x0, :lo12:.LC114
bl fwrite
ldr x3, [sp, 24]
mov x2, 15
mov x1, 1
adrp x0, .LC115
add x0, x0, :lo12:.LC115
bl fwrite
ldr x3, [sp, 24]
mov x2, 9
mov x1, 1
adrp x0, .LC116
add x0, x0, :lo12:.LC116
bl fwrite
ldr x3, [sp, 24]
mov x2, 12
mov x1, 1
adrp x0, .LC117
add x0, x0, :lo12:.LC117
bl fwrite
ldr x3, [sp, 24]
mov x2, 58
mov x1, 1
adrp x0, .LC118
add x0, x0, :lo12:.LC118
bl fwrite
ldr x3, [sp, 24]
mov x2, 15
mov x1, 1
adrp x0, .LC119
add x0, x0, :lo12:.LC119
bl fwrite
ldr x3, [sp, 24]
mov x2, 9
mov x1, 1
adrp x0, .LC116
add x0, x0, :lo12:.LC116
bl fwrite
ldr x3, [sp, 24]
mov x2, 9
mov x1, 1
adrp x0, .LC120
add x0, x0, :lo12:.LC120
bl fwrite
ldr x3, [sp, 24]
mov x2, 7
mov x1, 1
adrp x0, .LC121
add x0, x0, :lo12:.LC121
bl fwrite
ldr x1, [sp, 24]
mov w0, 10
bl fputc
ldr x3, [sp, 24]
mov x2, 40
mov x1, 1
adrp x0, .LC122
add x0, x0, :lo12:.LC122
bl fwrite
ldr x3, [sp, 24]
mov x2, 38
mov x1, 1
adrp x0, .LC123
add x0, x0, :lo12:.LC123
bl fwrite
ldr x3, [sp, 24]
mov x2, 71
mov x1, 1
adrp x0, .LC124
add x0, x0, :lo12:.LC124
bl fwrite
ldr x3, [sp, 24]
mov x2, 5
mov x1, 1
adrp x0, .LC89
add x0, x0, :lo12:.LC89
bl fwrite
ldr x3, [sp, 24]
mov x2, 2
mov x1, 1
adrp x0, .LC87
add x0, x0, :lo12:.LC87
bl fwrite
ldr x1, [sp, 24]
mov w0, 10
bl fputc
ldr x3, [sp, 24]
mov x2, 55
mov x1, 1
adrp x0, .LC125
add x0, x0, :lo12:.LC125
bl fwrite
ldr x3, [sp, 24]
mov x2, 52
mov x1, 1
adrp x0, .LC126
add x0, x0, :lo12:.LC126
bl fwrite
ldr x3, [sp, 24]
mov x2, 21
mov x1, 1
adrp x0, .LC127
add x0, x0, :lo12:.LC127
bl fwrite
ldr x3, [sp, 24]
mov x2, 2
mov x1, 1
adrp x0, .LC83
add x0, x0, :lo12:.LC83
bl fwrite
ldr x3, [sp, 24]
mov x2, 20
mov x1, 1
adrp x0, .LC128
add x0, x0, :lo12:.LC128
bl fwrite
ldr x3, [sp, 24]
mov x2, 13
mov x1, 1
adrp x0, .LC129
add x0, x0, :lo12:.LC129
bl fwrite
ldr x3, [sp, 24]
mov x2, 5
mov x1, 1
adrp x0, .LC105
add x0, x0, :lo12:.LC105
bl fwrite
ldr x3, [sp, 24]
mov x2, 65
mov x1, 1
adrp x0, .LC130
add x0, x0, :lo12:.LC130
bl fwrite
ldr x3, [sp, 24]
mov x2, 46
mov x1, 1
adrp x0, .LC131
add x0, x0, :lo12:.LC131
bl fwrite
ldr x3, [sp, 24]
mov x2, 7
mov x1, 1
adrp x0, .LC121
add x0, x0, :lo12:.LC121
bl fwrite
ldr x3, [sp, 24]
mov x2, 2
mov x1, 1
adrp x0, .LC87
add x0, x0, :lo12:.LC87
bl fwrite
ldr x1, [sp, 24]
mov w0, 10
bl fputc
ldr x3, [sp, 24]
mov x2, 53
mov x1, 1
adrp x0, .LC132
add x0, x0, :lo12:.LC132
bl fwrite
ldr x3, [sp, 24]
mov x2, 26
mov x1, 1
adrp x0, .LC133
add x0, x0, :lo12:.LC133
bl fwrite
ldr x3, [sp, 24]
mov x2, 2
mov x1, 1
adrp x0, .LC83
add x0, x0, :lo12:.LC83
bl fwrite
ldr x1, [sp, 24]
mov w0, 10
bl fputc
ldr x3, [sp, 24]
mov x2, 42
mov x1, 1
adrp x0, .LC134
add x0, x0, :lo12:.LC134
bl fwrite
ldr x3, [sp, 24]
mov x2, 70
mov x1, 1
adrp x0, .LC135
add x0, x0, :lo12:.LC135
bl fwrite
ldr x3, [sp, 24]
mov x2, 41
mov x1, 1
adrp x0, .LC136
add x0, x0, :lo12:.LC136
bl fwrite
ldr x3, [sp, 24]
mov x2, 9
mov x1, 1
adrp x0, .LC137
add x0, x0, :lo12:.LC137
bl fwrite
ldr x3, [sp, 24]
mov x2, 41
mov x1, 1
adrp x0, .LC138
add x0, x0, :lo12:.LC138
bl fwrite
ldr x1, [sp, 24]
mov w0, 10
bl fputc
ldr x3, [sp, 24]
mov x2, 47
mov x1, 1
adrp x0, .LC139
add x0, x0, :lo12:.LC139
bl fwrite
ldr x3, [sp, 24]
mov x2, 13
mov x1, 1
adrp x0, .LC140
add x0, x0, :lo12:.LC140
bl fwrite
ldr x3, [sp, 24]
mov x2, 2
mov x1, 1
adrp x0, .LC87
add x0, x0, :lo12:.LC87
bl fwrite
ldr x1, [sp, 24]
mov w0, 10
bl fputc
ldr x3, [sp, 24]
mov x2, 61
mov x1, 1
adrp x0, .LC141
add x0, x0, :lo12:.LC141
bl fwrite
ldr x3, [sp, 24]
mov x2, 53
mov x1, 1
adrp x0, .LC142
add x0, x0, :lo12:.LC142
bl fwrite
ldr x3, [sp, 24]
mov x2, 60
mov x1, 1
adrp x0, .LC143
add x0, x0, :lo12:.LC143
bl fwrite
ldr x3, [sp, 24]
mov x2, 21
mov x1, 1
adrp x0, .LC144
add x0, x0, :lo12:.LC144
bl fwrite
ldr x3, [sp, 24]
mov x2, 2
mov x1, 1
adrp x0, .LC83
add x0, x0, :lo12:.LC83
bl fwrite
ldr x3, [sp, 24]
mov x2, 17
mov x1, 1
adrp x0, .LC145
add x0, x0, :lo12:.LC145
bl fwrite
ldr x3, [sp, 24]
mov x2, 13
mov x1, 1
adrp x0, .LC146
add x0, x0, :lo12:.LC146
bl fwrite
ldr x3, [sp, 24]
mov x2, 18
mov x1, 1
adrp x0, .LC147
add x0, x0, :lo12:.LC147
bl fwrite
ldr x3, [sp, 24]
mov x2, 7
mov x1, 1
adrp x0, .LC148
add x0, x0, :lo12:.LC148
bl fwrite
ldr x3, [sp, 24]
mov x2, 25
mov x1, 1
adrp x0, .LC149
add x0, x0, :lo12:.LC149
bl fwrite
ldr x3, [sp, 24]
mov x2, 17
mov x1, 1
adrp x0, .LC150
add x0, x0, :lo12:.LC150
bl fwrite
ldr x3, [sp, 24]
mov x2, 42
mov x1, 1
adrp x0, .LC151
add x0, x0, :lo12:.LC151
bl fwrite
ldr x3, [sp, 24]
mov x2, 11
mov x1, 1
adrp x0, .LC152
add x0, x0, :lo12:.LC152
bl fwrite
ldr x3, [sp, 24]
mov x2, 12
mov x1, 1
adrp x0, .LC153
add x0, x0, :lo12:.LC153
bl fwrite
ldr x3, [sp, 24]
mov x2, 12
mov x1, 1
adrp x0, .LC154
add x0, x0, :lo12:.LC154
bl fwrite
ldr x3, [sp, 24]
mov x2, 7
mov x1, 1
adrp x0, .LC155
add x0, x0, :lo12:.LC155
bl fwrite
ldr x3, [sp, 24]
mov x2, 35
mov x1, 1
adrp x0, .LC156
add x0, x0, :lo12:.LC156
bl fwrite
ldr x3, [sp, 24]
mov x2, 2
mov x1, 1
adrp x0, .LC87
add x0, x0, :lo12:.LC87
bl fwrite
ldr x1, [sp, 24]
mov w0, 10
bl fputc
ldr x3, [sp, 24]
mov x2, 18
mov x1, 1
adrp x0, .LC157
add x0, x0, :lo12:.LC157
bl fwrite
ldr x3, [sp, 24]
mov x2, 39
mov x1, 1
adrp x0, .LC158
add x0, x0, :lo12:.LC158
bl fwrite
ldr x1, [sp, 24]
mov w0, 10
bl fputc
ldr x3, [sp, 24]
mov x2, 50
mov x1, 1
adrp x0, .LC159
add x0, x0, :lo12:.LC159
bl fwrite
ldr x3, [sp, 24]
mov x2, 55
mov x1, 1
adrp x0, .LC160
add x0, x0, :lo12:.LC160
bl fwrite
ldr x3, [sp, 24]
mov x2, 43
mov x1, 1
adrp x0, .LC161
add x0, x0, :lo12:.LC161
bl fwrite
ldr x1, [sp, 24]
mov w0, 10
bl fputc
ldr x3, [sp, 24]
mov x2, 60
mov x1, 1
adrp x0, .LC162
add x0, x0, :lo12:.LC162
bl fwrite
ldr x3, [sp, 24]
mov x2, 55
mov x1, 1
adrp x0, .LC163
add x0, x0, :lo12:.LC163
bl fwrite
ldr x3, [sp, 24]
mov x2, 28
mov x1, 1
adrp x0, .LC164
add x0, x0, :lo12:.LC164
bl fwrite
ldr x3, [sp, 24]
mov x2, 57
mov x1, 1
adrp x0, .LC165
add x0, x0, :lo12:.LC165
bl fwrite
ldr x1, [sp, 24]
mov w0, 10
bl fputc
ldr x3, [sp, 24]
mov x2, 63
mov x1, 1
adrp x0, .LC166
add x0, x0, :lo12:.LC166
bl fwrite
ldr x3, [sp, 24]
mov x2, 42
mov x1, 1
adrp x0, .LC167
add x0, x0, :lo12:.LC167
bl fwrite
ldr x3, [sp, 24]
mov x2, 25
mov x1, 1
adrp x0, .LC168
add x0, x0, :lo12:.LC168
bl fwrite
ldr x3, [sp, 24]
mov x2, 54
mov x1, 1
adrp x0, .LC169
add x0, x0, :lo12:.LC169
bl fwrite
ldr x3, [sp, 24]
mov x2, 40
mov x1, 1
adrp x0, .LC170
add x0, x0, :lo12:.LC170
bl fwrite
ldr x3, [sp, 24]
mov x2, 11
mov x1, 1
adrp x0, .LC152
add x0, x0, :lo12:.LC152
bl fwrite
ldr x3, [sp, 24]
mov x2, 7
mov x1, 1
adrp x0, .LC171
add x0, x0, :lo12:.LC171
bl fwrite
ldr x1, [sp, 24]
mov w0, 10
bl fputc
ldr x3, [sp, 24]
mov x2, 51
mov x1, 1
adrp x0, .LC172
add x0, x0, :lo12:.LC172
bl fwrite
ldr x3, [sp, 24]
mov x2, 66
mov x1, 1
adrp x0, .LC173
add x0, x0, :lo12:.LC173
bl fwrite
ldr x3, [sp, 24]
mov x2, 7
mov x1, 1
adrp x0, .LC121
add x0, x0, :lo12:.LC121
bl fwrite
ldr x1, [sp, 24]
mov w0, 10
bl fputc
ldr x3, [sp, 24]
mov x2, 60
mov x1, 1
adrp x0, .LC174
add x0, x0, :lo12:.LC174
bl fwrite
ldr x3, [sp, 24]
mov x2, 18
mov x1, 1
adrp x0, .LC175
add x0, x0, :lo12:.LC175
bl fwrite
ldr x3, [sp, 24]
mov x2, 39
mov x1, 1
adrp x0, .LC176
add x0, x0, :lo12:.LC176
bl fwrite
ldr x3, [sp, 24]
mov x2, 60
mov x1, 1
adrp x0, .LC177
add x0, x0, :lo12:.LC177
bl fwrite
ldr x3, [sp, 24]
mov x2, 27
mov x1, 1
adrp x0, .LC178
add x0, x0, :lo12:.LC178
bl fwrite
ldr x3, [sp, 24]
mov x2, 35
mov x1, 1
adrp x0, .LC179
add x0, x0, :lo12:.LC179
bl fwrite
ldr x3, [sp, 24]
mov x2, 20
mov x1, 1
adrp x0, .LC180
add x0, x0, :lo12:.LC180
bl fwrite
ldr x3, [sp, 24]
mov x2, 7
mov x1, 1
adrp x0, .LC171
add x0, x0, :lo12:.LC171
bl fwrite
ldr x3, [sp, 24]
mov x2, 32
mov x1, 1
adrp x0, .LC181
add x0, x0, :lo12:.LC181
bl fwrite
ldr x3, [sp, 24]
mov x2, 23
mov x1, 1
adrp x0, .LC182
add x0, x0, :lo12:.LC182
bl fwrite
ldr x3, [sp, 24]
mov x2, 79
mov x1, 1
adrp x0, .LC183
add x0, x0, :lo12:.LC183
bl fwrite
ldr x3, [sp, 24]
mov x2, 4
mov x1, 1
adrp x0, .LC184
add x0, x0, :lo12:.LC184
bl fwrite
ldr x3, [sp, 24]
mov x2, 27
mov x1, 1
adrp x0, .LC185
add x0, x0, :lo12:.LC185
bl fwrite
ldr x3, [sp, 24]
mov x2, 9
mov x1, 1
adrp x0, .LC120
add x0, x0, :lo12:.LC120
bl fwrite
ldr x3, [sp, 24]
mov x2, 5
mov x1, 1
adrp x0, .LC89
add x0, x0, :lo12:.LC89
bl fwrite
ldr x1, [sp, 24]
mov w0, 10
bl fputc
ldr x3, [sp, 24]
mov x2, 44
mov x1, 1
adrp x0, .LC186
add x0, x0, :lo12:.LC186
bl fwrite
ldr x3, [sp, 24]
mov x2, 32
mov x1, 1
adrp x0, .LC187
add x0, x0, :lo12:.LC187
bl fwrite
ldr x3, [sp, 24]
mov x2, 41
mov x1, 1
adrp x0, .LC188
add x0, x0, :lo12:.LC188
bl fwrite
ldr x1, [sp, 24]
mov w0, 10
bl fputc
ldr x3, [sp, 24]
mov x2, 17
mov x1, 1
adrp x0, .LC189
add x0, x0, :lo12:.LC189
bl fwrite
ldr x3, [sp, 24]
mov x2, 27
mov x1, 1
adrp x0, .LC190
add x0, x0, :lo12:.LC190
bl fwrite
ldr x1, [sp, 24]
mov w0, 10
bl fputc
ldr x1, [sp, 24]
mov w0, 10
bl fputc
ldr x3, [sp, 24]
mov x2, 39
mov x1, 1
adrp x0, .LC191
add x0, x0, :lo12:.LC191
bl fwrite
ldr x3, [sp, 24]
mov x2, 69
mov x1, 1
adrp x0, .LC192
add x0, x0, :lo12:.LC192
bl fwrite
ldr x3, [sp, 24]
mov x2, 51
mov x1, 1
adrp x0, .LC193
add x0, x0, :lo12:.LC193
bl fwrite
ldr x3, [sp, 24]
mov x2, 34
mov x1, 1
adrp x0, .LC194
add x0, x0, :lo12:.LC194
bl fwrite
ldr x3, [sp, 24]
mov x2, 7
mov x1, 1
adrp x0, .LC171
add x0, x0, :lo12:.LC171
bl fwrite
ldr x3, [sp, 24]
mov x2, 7
mov x1, 1
adrp x0, .LC195
add x0, x0, :lo12:.LC195
bl fwrite
ldr x3, [sp, 24]
mov x2, 33
mov x1, 1
adrp x0, .LC196
add x0, x0, :lo12:.LC196
bl fwrite
ldr x3, [sp, 24]
mov x2, 63
mov x1, 1
adrp x0, .LC197
add x0, x0, :lo12:.LC197
bl fwrite
ldr x3, [sp, 24]
mov x2, 61
mov x1, 1
adrp x0, .LC198
add x0, x0, :lo12:.LC198
bl fwrite
ldr x3, [sp, 24]
mov x2, 69
mov x1, 1
adrp x0, .LC199
add x0, x0, :lo12:.LC199
bl fwrite
ldr x3, [sp, 24]
mov x2, 11
mov x1, 1
adrp x0, .LC200
add x0, x0, :lo12:.LC200
bl fwrite
ldr x3, [sp, 24]
mov x2, 5
mov x1, 1
adrp x0, .LC89
add x0, x0, :lo12:.LC89
bl fwrite
ldr x3, [sp, 24]
mov x2, 3
mov x1, 1
adrp x0, .LC66
add x0, x0, :lo12:.LC66
bl fwrite
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE24:
.size lt_dump_script, .-lt_dump_script
.section .rodata
.align 3
.type __PRETTY_FUNCTION__.0, %object
.size __PRETTY_FUNCTION__.0, 10
__PRETTY_FUNCTION__.0:
.string "strendzap"
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "haziq is %d years old\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 w0, 2017
str w0, [sp, 20]
mov w0, 2004
str w0, [sp, 24]
ldr w1, [sp, 20]
ldr w0, [sp, 24]
sub w0, w1, w0
str w0, [sp, 28]
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
.LFE6:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.type _mutex_initialize, %function
_mutex_initialize:
.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, :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
bl pthread_mutexattr_init
add x0, sp, 32
mov w1, 1
bl pthread_mutexattr_settype
ldr x0, [sp, 24]
add x1, sp, 32
bl pthread_mutex_init
add x0, sp, 32
bl pthread_mutexattr_destroy
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 .L2
bl __stack_chk_fail
.L2:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size _mutex_initialize, .-_mutex_initialize
.align 2
.type _mutex_finalize, %function
_mutex_finalize:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
bl pthread_mutex_destroy
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size _mutex_finalize, .-_mutex_finalize
.align 2
.global mutex_allocate
.type mutex_allocate, %function
mutex_allocate:
.LFB2:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
mov x0, 48
bl malloc
str x0, [sp, 24]
ldr x0, [sp, 24]
bl _mutex_initialize
ldr x0, [sp, 24]
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size mutex_allocate, .-mutex_allocate
.align 2
.global mutex_deallocate
.type mutex_deallocate, %function
mutex_deallocate:
.LFB3:
.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 .L9
ldr x0, [sp, 24]
bl _mutex_finalize
ldr x0, [sp, 24]
bl free
b .L6
.L9:
nop
.L6:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE3:
.size mutex_deallocate, .-mutex_deallocate
.align 2
.global mutex_lock
.type mutex_lock, %function
mutex_lock:
.LFB4:
.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 pthread_mutex_lock
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE4:
.size mutex_lock, .-mutex_lock
.align 2
.global mutex_unlock
.type mutex_unlock, %function
mutex_unlock:
.LFB5:
.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 pthread_mutex_unlock
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE5:
.size mutex_unlock, .-mutex_unlock
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global XXX
.type XXX, %function
XXX:
.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]
ldr x0, [sp, 24]
ldr w0, [x0]
str w0, [sp, 32]
str wzr, [sp, 36]
str wzr, [sp, 40]
b .L2
.L4:
ldrsw x0, [sp, 40]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w0, [x0]
ldr w1, [sp, 32]
cmp w1, w0
bge .L3
ldr w0, [sp, 40]
str w0, [sp, 36]
ldrsw x0, [sp, 40]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w0, [x0]
str w0, [sp, 32]
.L3:
ldr w0, [sp, 40]
add w0, w0, 1
str w0, [sp, 40]
.L2:
ldr w1, [sp, 40]
ldr w0, [sp, 20]
cmp w1, w0
blt .L4
ldrsw x0, [sp, 20]
lsl x0, x0, 2
bl malloc
str x0, [sp, 72]
str wzr, [sp, 44]
b .L5
.L6:
ldrsw x0, [sp, 44]
lsl x0, x0, 2
ldr x1, [sp, 72]
add x0, x1, x0
str wzr, [x0]
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L5:
ldr w1, [sp, 44]
ldr w0, [sp, 20]
cmp w1, w0
blt .L6
str wzr, [sp, 48]
str wzr, [sp, 52]
b .L7
.L9:
ldrsw x0, [sp, 52]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w0, [x0]
ldr w1, [sp, 48]
cmp w1, w0
bgt .L8
ldrsw x0, [sp, 52]
lsl x0, x0, 2
ldr x1, [sp, 72]
add x0, x1, x0
mov w1, 1
str w1, [x0]
ldrsw x0, [sp, 52]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w0, [x0]
str w0, [sp, 48]
.L8:
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
.L7:
ldr w1, [sp, 52]
ldr w0, [sp, 36]
cmp w1, w0
ble .L9
str wzr, [sp, 48]
ldr w0, [sp, 20]
sub w0, w0, #1
str w0, [sp, 56]
b .L10
.L12:
ldrsw x0, [sp, 56]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w0, [x0]
ldr w1, [sp, 48]
cmp w1, w0
bgt .L11
ldrsw x0, [sp, 56]
lsl x0, x0, 2
ldr x1, [sp, 72]
add x0, x1, x0
mov w1, 1
str w1, [x0]
ldrsw x0, [sp, 56]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w0, [x0]
str w0, [sp, 48]
.L11:
ldr w0, [sp, 56]
sub w0, w0, #1
str w0, [sp, 56]
.L10:
ldr w1, [sp, 56]
ldr w0, [sp, 36]
cmp w1, w0
bge .L12
str wzr, [sp, 60]
ldr w0, [sp, 20]
sub w0, w0, #1
str w0, [sp, 64]
str wzr, [sp, 68]
b .L13
.L19:
ldrsw x0, [sp, 60]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w1, [x0]
ldrsw x0, [sp, 64]
lsl x0, x0, 2
ldr x2, [sp, 24]
add x0, x2, x0
ldr w0, [x0]
cmp w1, w0
bge .L14
ldrsw x0, [sp, 60]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w1, [x0]
ldr w2, [sp, 64]
ldr w0, [sp, 60]
sub w0, w2, w0
mul w0, w1, w0
ldr w1, [sp, 68]
cmp w1, w0
bge .L21
ldrsw x0, [sp, 60]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w1, [x0]
ldr w2, [sp, 64]
ldr w0, [sp, 60]
sub w0, w2, w0
mul w0, w1, w0
str w0, [sp, 68]
.L21:
nop
.L16:
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
ldrsw x0, [sp, 60]
lsl x0, x0, 2
ldr x1, [sp, 72]
add x0, x1, x0
ldr w0, [x0]
cmp w0, 0
beq .L16
b .L13
.L14:
ldrsw x0, [sp, 64]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w1, [x0]
ldr w2, [sp, 64]
ldr w0, [sp, 60]
sub w0, w2, w0
mul w0, w1, w0
ldr w1, [sp, 68]
cmp w1, w0
bge .L22
ldrsw x0, [sp, 64]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w1, [x0]
ldr w2, [sp, 64]
ldr w0, [sp, 60]
sub w0, w2, w0
mul w0, w1, w0
str w0, [sp, 68]
.L22:
nop
.L18:
ldr w0, [sp, 64]
sub w0, w0, #1
str w0, [sp, 64]
ldrsw x0, [sp, 64]
lsl x0, x0, 2
ldr x1, [sp, 72]
add x0, x1, x0
ldr w0, [x0]
cmp w0, 0
beq .L18
.L13:
ldr w1, [sp, 60]
ldr w0, [sp, 64]
cmp w1, w0
blt .L19
ldr w0, [sp, 68]
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size XXX, .-XXX
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global pubnative_vast_2_0_1_xsd
.data
.align 3
.type pubnative_vast_2_0_1_xsd, %object
.size pubnative_vast_2_0_1_xsd, 26977
pubnative_vast_2_0_1_xsd:
.ascii "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<xs:schema xmlns"
.ascii ":xs=\"http://www.w3.org/2001/XMLSchema\" elementFormDefault="
.ascii "\"qualified\"\n\tattributeFormDefault=\"unqualified\">\n\t<x"
.ascii "s:element name=\"VAST\">\n\t\t<xs:annotation>\n\t\t\t<xs:doc"
.ascii "umentation>IAB VAST, Video Ad Serving Template, video xml ad"
.ascii " response, Version 2.0.1, xml schema prepared by Tremor Medi"
.ascii "a</xs:documentation>\n\t\t</xs:annotation>\n\t\t<xs:complexT"
.ascii "ype>\n\t\t\t<xs:sequence>\n\t\t\t\t<xs:element name=\"Ad\" m"
.ascii "axOccurs=\"unbounded\" minOccurs=\"0\">\n\t\t\t\t\t<xs:annot"
.ascii "ation>\n\t\t\t\t\t\t<xs:documentation>Top-level element, wra"
.ascii "ps each ad in the response</xs:documentation>\n\t\t\t\t\t</x"
.ascii "s:annotation>\n\t\t\t\t\t<xs:complexType>\n\t\t\t\t\t\t<xs:c"
.ascii "hoice maxOccurs=\"1\" minOccurs=\"1\">\n\t\t\t\t\t\t\t<xs:el"
.ascii "ement name=\"InLine\" maxOccurs=\"1\" minOccurs=\"0\">\n\t\t"
.ascii "\t\t\t\t\t\t<xs:annotation>\n\t\t\t\t\t\t\t\t\t<xs:documenta"
.ascii "tion>Second-level element surrounding complete ad data for a"
.ascii " single ad</xs:documentation>\n\t\t\t\t\t\t\t\t</xs:annotati"
.ascii "on>\n\t\t\t\t\t\t\t\t<xs:complexType>\n\t\t\t\t\t\t\t\t\t<xs"
.ascii ":sequence>\n\t\t\t\t\t\t\t\t\t\t<xs:element name=\"AdSystem\""
.ascii " maxOccurs=\"1\" minOccurs=\"1\"\n\t\t\t\t\t\t\t\t\t\t\ttype"
.ascii "=\"AdSystem_type\">\n\t\t\t\t\t\t\t\t\t\t\t<xs:annotation>\n"
.ascii "\t\t\t\t\t\t\t\t\t\t\t\t<xs:documentation>Indicates source a"
.ascii "d server</xs:documentation>\n\t\t\t\t\t\t\t\t\t\t\t</xs:anno"
.ascii "tation>\n\t\t\t\t\t\t\t\t\t\t</xs:element>\n\t\t\t\t\t\t\t\t"
.ascii "\t\t<xs:element name=\"AdTitle\" type=\"xs:string\" maxOccur"
.ascii "s=\"1\"\n\t\t\t\t\t\t\t\t\t\t\tminOccurs=\"1\">\n\t\t\t\t\t\t"
.ascii "\t\t\t\t\t<xs:annotation>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:docum"
.ascii "entation>Common name of ad</xs:documentation>\n\t\t\t\t\t\t\t"
.ascii "\t\t\t\t</xs:annotation>\n\t\t\t\t\t\t\t\t\t\t</xs:element>\n"
.ascii "\t\t\t\t\t\t\t\t\t\t<xs:element name=\"Description\" type=\""
.ascii "xs:string\"\n\t\t\t\t\t\t\t\t\t\t\tminOccurs=\"0\" maxOccurs"
.ascii "=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t<xs:annotation>\n\t\t\t\t\t\t"
.ascii "\t\t\t\t\t\t<xs:documentation>Longer description of ad</xs:d"
.ascii "ocumentation>\n\t\t\t\t\t\t\t\t\t\t\t</xs:annotation>\n\t\t\t"
.ascii "\t\t\t\t\t\t\t</xs:element>\n\t\t\t\t\t\t\t\t\t\t<xs:element"
.ascii " name=\"Survey\" type=\"xs:anyURI\" minOccurs=\"0\"\n\t\t\t\t"
.ascii "\t\t\t\t\t\t\tmaxOccurs=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t<xs:an"
.ascii "notation>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:documentation>URL of "
.ascii "request to survey vendor</xs:documentation>\n\t\t\t\t\t\t\t\t"
.ascii "\t\t\t</xs:annotation>\n\t\t\t\t\t\t\t\t\t\t</xs:element>\n\t"
.ascii "\t\t\t\t\t\t\t\t\t<xs:element name=\"Error\" type=\"xs:anyUR"
.ascii "I\" m"
.ascii "inOccurs=\"0\"\n\t\t\t\t\t\t\t\t\t\t\tmaxOccurs=\"1\">\n\t\t"
.ascii "\t\t\t\t\t\t\t\t\t<xs:annotation>\n\t\t\t\t\t\t\t\t\t\t\t\t<"
.ascii "xs:documentation>URL to request if ad does not play due to e"
.ascii "rror</xs:documentation>\n\t\t\t\t\t\t\t\t\t\t\t</xs:annotati"
.ascii "on>\n\t\t\t\t\t\t\t\t\t\t</xs:element>\n\t\t\t\t\t\t\t\t\t\t"
.ascii "<xs:element name=\"Impression\" type=\"Impression_type\"\n\t"
.ascii "\t\t\t\t\t\t\t\t\t\tmaxOccurs=\"unbounded\" minOccurs=\"1\">"
.ascii "\n\t\t\t\t\t\t\t\t\t\t\t<xs:annotation>\n\t\t\t\t\t\t\t\t\t\t"
.ascii "\t\t<xs:documentation>URL to track impression</xs:documentat"
.ascii "ion>\n\t\t\t\t\t\t\t\t\t\t\t</xs:annotation>\n\t\t\t\t\t\t\t"
.ascii "\t\t\t</xs:element>\n\t\t\t\t\t\t\t\t\t\t<xs:element maxOccu"
.ascii "rs=\"1\" minOccurs=\"1\" name=\"Creatives\">\n\t\t\t\t\t\t\t"
.ascii "\t\t\t\t<xs:annotation>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:documen"
.ascii "tation>Any number of companions in any desired pixel dimensi"
.ascii "ons.</xs:documentation>\n\t\t\t\t\t\t\t\t\t\t\t</xs:annotati"
.ascii "on>\n\t\t\t\t\t\t\t\t\t\t\t<xs:complexType>\n\t\t\t\t\t\t\t\t"
.ascii "\t\t\t\t<xs:sequence>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:element n"
.ascii "ame=\"Creative\" maxOccurs=\"unbounded\">\n\t\t\t\t\t\t\t\t\t"
.ascii "\t\t\t<xs:annotation>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:documenta"
.ascii "tion>Wraps each creative element within an InLine or Wrapper"
.ascii " Ad</xs:documentation>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:annotat"
.ascii "ion>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:complexType>\n\t\t\t\t\t\t"
.ascii "\t\t\t\t\t\t<xs:choice>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:element"
.ascii " name=\"Linear\" minOccurs=\"0\"\n\t\t\t\t\t\t\t\t\t\t\t\tma"
.ascii "xOccurs=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:complexType>\n\t"
.ascii "\t\t\t\t\t\t\t\t\t\t\t<xs:sequence>\n\t\t\t\t\t\t\t\t\t\t\t\t"
.ascii "<xs:element name=\"Duration\" type=\"xs:time\"\n\t\t\t\t\t\t"
.ascii "\t\t\t\t\t\tmaxOccurs=\"1\" minOccurs=\"1\">\n\t\t\t\t\t\t\t"
.ascii "\t\t\t\t\t<xs:annotation>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:docum"
.ascii "entation>Duration in standard time format, hh:mm:ss</xs:docu"
.ascii "mentation>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:annotation>\n\t\t\t"
.ascii "\t\t\t\t\t\t\t\t\t</xs:element>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs"
.ascii ":element name=\"TrackingEvents\" minOccurs=\"0\"\n\t\t\t\t\t"
.ascii "\t\t\t\t\t\t\ttype=\"TrackingEvents_type\" maxOccurs=\"1\"> "
.ascii "</xs:element>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:element name=\"Ad"
.ascii "Parameters\" type=\"xs:string\"\n\t\t\t\t\t\t\t\t\t\t\t\tmin"
.ascii "Occurs=\"0\" maxOccurs=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:a"
.ascii "nnotation>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:documentation>Data t"
.ascii "o be passed into the video ad</xs:documentation>\n\t\t\t\t\t"
.ascii "\t\t\t\t\t\t\t</xs:annotation>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs"
.ascii ":element>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:element name=\"VideoC"
.ascii "licks\" minOccurs=\"0\"\n\t\t\t\t\t\t\t\t\t\t\t\ttype=\"Vide"
.ascii "oClicks_type\" maxOccurs=\"1\"> </xs:element>\n\t\t\t\t\t\t\t"
.ascii "\t\t\t\t\t<xs:element name=\"Me"
.ascii "diaFiles\" minOccurs=\"0\"\n\t\t\t\t\t\t\t\t\t\t\t\tmaxOccur"
.ascii "s=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:complexType>\n\t\t\t\t"
.ascii "\t\t\t\t\t\t\t\t<xs:sequence>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:e"
.ascii "lement name=\"MediaFile\" minOccurs=\"1\"\n\t\t\t\t\t\t\t\t\t"
.ascii "\t\t\tmaxOccurs=\"unbounded\">\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:"
.ascii "annotation>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:documentation>Locat"
.ascii "ion of linear file</xs:documentation>\n\t\t\t\t\t\t\t\t\t\t\t"
.ascii "\t</xs:annotation>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:complexType>"
.ascii "\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:simpleContent>\n\t\t\t\t\t\t\t"
.ascii "\t\t\t\t\t<xs:extension base=\"xs:anyURI\">\n\t\t\t\t\t\t\t\t"
.ascii "\t\t\t\t<xs:attribute name=\"id\" type=\"xs:string\"\n\t\t\t"
.ascii "\t\t\t\t\t\t\t\t\tuse=\"optional\">\n\t\t\t\t\t\t\t\t\t\t\t\t"
.ascii "<xs:annotation>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:documentation>O"
.ascii "ptional identifier</xs:documentation>\n\t\t\t\t\t\t\t\t\t\t\t"
.ascii "\t</xs:annotation>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:attribute>\n"
.ascii "\t\t\t\t\t\t\t\t\t\t\t\t<xs:attribute name=\"delivery\" use="
.ascii "\"required\">\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:annotation>\n\t\t"
.ascii "\t\t\t\t\t\t\t\t\t\t<xs:documentation>Method of delivery of "
.ascii "ad</xs:documentation>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:annotati"
.ascii "on>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:simpleType>\n\t\t\t\t\t\t\t"
.ascii "\t\t\t\t\t<xs:restriction base=\"xs:NMTOKEN\">\n\t\t\t\t\t\t"
.ascii "\t\t\t\t\t\t<xs:enumeration value=\"streaming\"/>\n\t\t\t\t\t"
.ascii "\t\t\t\t\t\t\t<xs:enumeration value=\"progressive\"/>\n\t\t\t"
.ascii "\t\t\t\t\t\t\t\t\t</xs:restriction>\n\t\t\t\t\t\t\t\t\t\t\t\t"
.ascii "</xs:simpleType>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:attribute>\n\t"
.ascii "\t\t\t\t\t\t\t\t\t\t\t<xs:attribute name=\"type\" use=\"requ"
.ascii "ired\"\n\t\t\t\t\t\t\t\t\t\t\t\ttype=\"xs:string\">\n\t\t\t\t"
.ascii "\t\t\t\t\t\t\t\t<xs:annotation>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs"
.ascii ":documentation>MIME type. Popular MIME types include, but ar"
.ascii "e not limited to \342\200\234video/x-ms-wmv\342\200\235 for "
.ascii "Windows Media, and \342\200\234video/x-flv\342\200\235 for F"
.ascii "lash Video. Image ads or interactive ads can be included in "
.ascii "the MediaFiles section with appropriate Mime types</xs:docum"
.ascii "entation>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:annotation>\n\t\t\t\t"
.ascii "\t\t\t\t\t\t\t\t</xs:attribute>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs"
.ascii ":attribute name=\"bitrate\" type=\"xs:integer\"\n\t\t\t\t\t\t"
.ascii "\t\t\t\t\t\tuse=\"optional\">\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:a"
.ascii "nnotation>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:documentation>Bitrat"
.ascii "e of encoded video in Kbps</xs:documentation>\n\t\t\t\t\t\t\t"
.ascii "\t\t\t\t\t</xs:annotation>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:att"
.ascii "ribute>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:attribute name=\"width\""
.ascii " type=\"xs:integer\"\n\t\t\t\t\t\t\t\t\t\t\t\tuse=\"required"
.ascii "\">\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:annotation>\n\t\t\t\t\t\t\t"
.ascii "\t\t\t\t\t<xs:documentation>Pixel dimensions of video</xs:do"
.ascii "cumentation>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:annotation>\n\t\t"
.ascii "\t\t\t\t\t\t\t\t\t\t</xs:attribute>\n\t\t\t\t\t\t\t\t\t\t\t\t"
.ascii "<xs:attribute name=\"height\" type=\"xs:integer\"\n\t\t\t\t\t"
.ascii "\t\t\t\t\t\t\tuse=\"required\">\n\t\t\t\t\t\t\t\t\t\t\t\t<xs"
.ascii ":annotation>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:documentation>Pixe"
.ascii "l dimensions of video</xs:documentation>\n\t\t\t\t\t\t\t\t\t"
.ascii "\t\t\t</xs:annotation>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:attribu"
.ascii "te>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:attribute name=\"scalable\""
.ascii " type=\"xs:boolean\"\n\t\t\t\t\t\t\t\t\t\t\t\tuse=\"optional"
.ascii "\">\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:annotation>\n\t\t\t\t\t\t\t"
.ascii "\t\t\t\t\t<xs:documentation>Whether it is acceptable to scal"
.ascii "e the image.</xs:documentation>\n\t\t\t\t\t\t\t\t\t\t\t\t</x"
.ascii "s:annotation>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:attribute>\n\t\t"
.ascii "\t\t\t\t\t\t\t\t\t\t<xs:attribute name=\"maintainAspectRatio"
.ascii "\"\n\t\t\t\t\t\t\t\t\t\t\t\ttype=\"xs:boolean\" use=\"option"
.ascii "al\">\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:annotation>\n\t\t\t\t\t\t"
.ascii "\t\t\t\t\t\t<xs:documentation>Whether the ad must have its a"
.ascii "spect ratio maintained when scales</xs:documentation>\n\t\t\t"
.ascii "\t\t\t\t\t\t\t\t\t</xs:annotation>\n\t\t\t\t\t\t\t\t\t\t\t\t"
.ascii "</xs:attribute>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:attribute name="
.ascii "\"apiFramework\" type=\"xs:string\"\n\t\t\t\t\t\t\t\t\t\t\t\t"
.ascii "use=\"optional\">\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:annotation>\n"
.ascii "\t\t\t\t\t\t\t\t\t\t\t\t<xs:documentation>The apiFramework d"
.ascii "efines the method to use for communication if the MediaFile "
.ascii "is interactive. Suggested values for this element are \342\200"
.ascii "\234VPAID\342\200\235, \342\200\234FlashVars\342\200\235 (fo"
.ascii "r Flash/Flex), \342\200\234initParams\342\200\235 (for Silve"
.ascii "rlight) and \342\200\234GetVariables\342\200\235 (variables "
.ascii "placed in key/value pairs on the asset request).</xs:documen"
.ascii "tation>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:annotation>\n\t\t\t\t\t"
.ascii "\t\t\t\t\t\t\t</xs:attribute>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:"
.ascii "extension>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:simpleContent>\n\t\t"
.ascii "\t\t\t\t\t\t\t\t\t\t</xs:complexType>\n\t\t\t\t\t\t\t\t\t\t\t"
.ascii "\t</xs:element>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:sequence>\n\t\t"
.ascii "\t\t\t\t\t\t\t\t\t\t</xs:complexType>\n\t\t\t\t\t\t\t\t\t\t\t"
.ascii "\t</xs:element>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:sequence>\n\t\t"
.ascii "\t\t\t\t\t\t\t\t\t\t</xs:complexType>\n\t\t\t\t\t\t\t\t\t\t\t"
.ascii "\t</xs:element>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:element name=\""
.ascii "CompanionAds\" minOccurs=\"0\"\n\t\t\t\t\t\t\t\t\t\t\t\tmaxO"
.ascii "ccurs=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:complexType>\n\t\t"
.ascii "\t\t\t\t\t\t\t\t\t\t<xs:sequence>\n\t\t\t\t\t\t\t\t\t\t\t\t<"
.ascii "xs:element name=\"Companion\" minOccurs=\"0\"\n\t\t\t\t\t\t\t"
.ascii "\t\t\t\t\tmaxOccurs=\"unbounded\" type=\"Companion_type\">\n"
.ascii "\t\t\t\t\t\t\t\t\t\t\t\t<xs:annotation>\n\t\t\t\t\t\t\t\t\t\t"
.ascii "\t\t<xs:documentation>Any n"
.ascii "umber of companions in any desired pixel dimensions.</xs:doc"
.ascii "umentation>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:annotation>\n\t\t\t"
.ascii "\t\t\t\t\t\t\t\t\t</xs:element>\n\t\t\t\t\t\t\t\t\t\t\t\t</x"
.ascii "s:sequence>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:complexType>\n\t\t"
.ascii "\t\t\t\t\t\t\t\t\t\t</xs:element>\n\t\t\t\t\t\t\t\t\t\t\t\t<"
.ascii "xs:element name=\"NonLinearAds\" minOccurs=\"0\"\n\t\t\t\t\t"
.ascii "\t\t\t\t\t\t\tmaxOccurs=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:"
.ascii "complexType>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:sequence>\n\t\t\t\t"
.ascii "\t\t\t\t\t\t\t\t<xs:element name=\"TrackingEvents\" minOccur"
.ascii "s=\"0\"\n\t\t\t\t\t\t\t\t\t\t\t\ttype=\"TrackingEvents_type\""
.ascii " maxOccurs=\"1\"> </xs:element>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs"
.ascii ":element name=\"NonLinear\" minOccurs=\"1\"\n\t\t\t\t\t\t\t\t"
.ascii "\t\t\t\tmaxOccurs=\"unbounded\" type=\"NonLinear_type\">\n\t"
.ascii "\t\t\t\t\t\t\t\t\t\t\t<xs:annotation>\n\t\t\t\t\t\t\t\t\t\t\t"
.ascii "\t<xs:documentation>Any number of companions in any desired "
.ascii "pixel dimensions.</xs:documentation>\n\t\t\t\t\t\t\t\t\t\t\t"
.ascii "\t</xs:annotation>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:element>\n\t"
.ascii "\t\t\t\t\t\t\t\t\t\t\t</xs:sequence>\n\t\t\t\t\t\t\t\t\t\t\t"
.ascii "\t</xs:complexType>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:element>\n"
.ascii "\t\t\t\t\t\t\t\t\t\t\t\t</xs:choice>\n\t\t\t\t\t\t\t\t\t\t\t"
.ascii "\t<xs:attribute name=\"id\" type=\"xs:string\"\n\t\t\t\t\t\t"
.ascii "\t\t\t\t\t\tuse=\"optional\"/>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:"
.ascii "attribute name=\"sequence\" type=\"xs:integer\"\n\t\t\t\t\t\t"
.ascii "\t\t\t\t\t\tuse=\"optional\">\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:a"
.ascii "nnotation>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:documentation>The pr"
.ascii "eferred order in which multiple Creatives should be displaye"
.ascii "d</xs:documentation>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:annotatio"
.ascii "n>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:attribute>\n\t\t\t\t\t\t\t\t"
.ascii "\t\t\t\t<xs:attribute name=\"AdID\" type=\"xs:string\"\n\t\t"
.ascii "\t\t\t\t\t\t\t\t\t\tuse=\"optional\">\n\t\t\t\t\t\t\t\t\t\t\t"
.ascii "\t<xs:annotation>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:documentation"
.ascii ">Ad-ID for the creative (formerly ISCI)</xs:documentation>\n"
.ascii "\t\t\t\t\t\t\t\t\t\t\t\t</xs:annotation>\n\t\t\t\t\t\t\t\t\t"
.ascii "\t\t\t</xs:attribute>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:complexT"
.ascii "ype>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:element>\n\t\t\t\t\t\t\t\t"
.ascii "\t\t\t\t</xs:sequence>\n\t\t\t\t\t\t\t\t\t\t\t</xs:complexTy"
.ascii "pe>\n\t\t\t\t\t\t\t\t\t\t</xs:element>\n\t\t\t\t\t\t\t\t\t\t"
.ascii "<xs:element name=\"Extensions\" minOccurs=\"0\" maxOccurs=\""
.ascii "1\">\n\t\t\t\t\t\t\t\t\t\t\t<xs:complexType>\n\t\t\t\t\t\t\t"
.ascii "\t\t\t\t\t<xs:sequence>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:element"
.ascii " name=\"Extension\" type=\"xs:anyType\"\n\t\t\t\t\t\t\t\t\t\t"
.ascii "\t\tminOccurs=\"0\" maxOccurs=\"unbounded\">\n\t\t\t\t\t\t\t"
.ascii "\t\t\t\t\t<xs:annotation>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:docum"
.ascii "entation>Any valid XML may be included in the Extensions nod"
.ascii "e</xs:do"
.ascii "cumentation>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:annotation>\n\t\t"
.ascii "\t\t\t\t\t\t\t\t\t\t</xs:element>\n\t\t\t\t\t\t\t\t\t\t\t\t<"
.ascii "/xs:sequence>\n\t\t\t\t\t\t\t\t\t\t\t</xs:complexType>\n\t\t"
.ascii "\t\t\t\t\t\t\t\t</xs:element>\n\t\t\t\t\t\t\t\t\t</xs:sequen"
.ascii "ce>\n\t\t\t\t\t\t\t\t</xs:complexType>\n\t\t\t\t\t\t\t</xs:e"
.ascii "lement>\n\t\t\t\t\t\t\t<xs:element name=\"Wrapper\" maxOccur"
.ascii "s=\"1\" minOccurs=\"0\">\n\t\t\t\t\t\t\t\t<xs:annotation>\n\t"
.ascii "\t\t\t\t\t\t\t\t<xs:documentation>Second-level element surro"
.ascii "unding wrapper ad pointing to Secondary ad server.</xs:docum"
.ascii "entation>\n\t\t\t\t\t\t\t\t</xs:annotation>\n\t\t\t\t\t\t\t\t"
.ascii "<xs:complexType>\n\t\t\t\t\t\t\t\t\t<xs:sequence>\n\t\t\t\t\t"
.ascii "\t\t\t\t\t<xs:element name=\"AdSystem\" type=\"AdSystem_type"
.ascii "\"\n\t\t\t\t\t\t\t\t\t\t\tmaxOccurs=\"1\" minOccurs=\"1\">\n"
.ascii "\t\t\t\t\t\t\t\t\t\t\t<xs:annotation>\n\t\t\t\t\t\t\t\t\t\t\t"
.ascii "\t<xs:documentation>Indicates source ad server</xs:documenta"
.ascii "tion>\n\t\t\t\t\t\t\t\t\t\t\t</xs:annotation>\n\t\t\t\t\t\t\t"
.ascii "\t\t\t</xs:element>\n\t\t\t\t\t\t\t\t\t\t<xs:element name=\""
.ascii "VASTAdTagURI\" type=\"xs:anyURI\"\n\t\t\t\t\t\t\t\t\t\t\tmax"
.ascii "Occurs=\"1\" minOccurs=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t<xs:ann"
.ascii "otation>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:documentation>URL of a"
.ascii "d tag of downstream Secondary Ad Server</xs:documentation>\n"
.ascii "\t\t\t\t\t\t\t\t\t\t\t</xs:annotation>\n\t\t\t\t\t\t\t\t\t\t"
.ascii "</xs:element>\n\t\t\t\t\t\t\t\t\t\t<xs:element name=\"Error\""
.ascii " type=\"xs:anyURI\" minOccurs=\"0\"\n\t\t\t\t\t\t\t\t\t\t\tm"
.ascii "axOccurs=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t<xs:annotation>\n\t\t"
.ascii "\t\t\t\t\t\t\t\t\t\t<xs:documentation>URL to request if ad d"
.ascii "oes not play due to error</xs:documentation>\n\t\t\t\t\t\t\t"
.ascii "\t\t\t\t</xs:annotation>\n\t\t\t\t\t\t\t\t\t\t</xs:element>\n"
.ascii "\t\t\t\t\t\t\t\t\t\t<xs:element name=\"Impression\" type=\"x"
.ascii "s:anyURI\"\n\t\t\t\t\t\t\t\t\t\t\tmaxOccurs=\"unbounded\" mi"
.ascii "nOccurs=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t<xs:annotation>\n\t\t\t"
.ascii "\t\t\t\t\t\t\t\t\t<xs:documentation>URL to request to track "
.ascii "an impression</xs:documentation>\n\t\t\t\t\t\t\t\t\t\t\t</xs"
.ascii ":annotation>\n\t\t\t\t\t\t\t\t\t\t</xs:element>\n\t\t\t\t\t\t"
.ascii "\t\t\t\t<xs:element name=\"Creatives\">\n\t\t\t\t\t\t\t\t\t\t"
.ascii "\t<xs:complexType>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:sequence>\n\t"
.ascii "\t\t\t\t\t\t\t\t\t\t\t<xs:element name=\"Creative\" maxOccur"
.ascii "s=\"unbounded\"\n\t\t\t\t\t\t\t\t\t\t\t\tminOccurs=\"0\">\n\t"
.ascii "\t\t\t\t\t\t\t\t\t\t\t<xs:complexType>\n\t\t\t\t\t\t\t\t\t\t"
.ascii "\t\t<xs:choice>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:element name=\""
.ascii "Linear\" minOccurs=\"0\"\n\t\t\t\t\t\t\t\t\t\t\t\tmaxOccurs="
.ascii "\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:complexType>\n\t\t\t\t\t"
.ascii "\t\t\t\t\t\t\t<xs:sequence>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:ele"
.ascii "ment name=\"TrackingEvents\" minOccurs=\"0\"\n"
.ascii "\t\t\t\t\t\t\t\t\t\t\t\ttype=\"TrackingEvents_type\" maxOccu"
.ascii "rs=\"1\"> </xs:element>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:element"
.ascii " name=\"VideoClicks\" minOccurs=\"0\"\n\t\t\t\t\t\t\t\t\t\t\t"
.ascii "\tmaxOccurs=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:complexType>"
.ascii "\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:sequence>\n\t\t\t\t\t\t\t\t\t\t"
.ascii "\t\t<xs:element name=\"ClickTracking\" minOccurs=\"0\"\n\t\t"
.ascii "\t\t\t\t\t\t\t\t\t\tmaxOccurs=\"unbounded\">\n\t\t\t\t\t\t\t"
.ascii "\t\t\t\t\t<xs:annotation>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:docum"
.ascii "entation>URL to request for tracking purposes when user clic"
.ascii "ks on the video</xs:documentation>\n\t\t\t\t\t\t\t\t\t\t\t\t"
.ascii "</xs:annotation>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:complexType>\n"
.ascii "\t\t\t\t\t\t\t\t\t\t\t\t<xs:simpleContent>\n\t\t\t\t\t\t\t\t"
.ascii "\t\t\t\t<xs:extension base=\"xs:anyURI\">\n\t\t\t\t\t\t\t\t\t"
.ascii "\t\t\t<xs:attribute name=\"id\" type=\"xs:string\"\n\t\t\t\t"
.ascii "\t\t\t\t\t\t\t\tuse=\"optional\"/>\n\t\t\t\t\t\t\t\t\t\t\t\t"
.ascii "</xs:extension>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:simpleContent>"
.ascii "\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:complexType>\n\t\t\t\t\t\t\t\t"
.ascii "\t\t\t\t</xs:element>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:sequence"
.ascii ">\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:complexType>\n\t\t\t\t\t\t\t"
.ascii "\t\t\t\t\t</xs:element>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:sequen"
.ascii "ce>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:complexType>\n\t\t\t\t\t\t"
.ascii "\t\t\t\t\t\t</xs:element>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:eleme"
.ascii "nt name=\"CompanionAds\" minOccurs=\"0\"\n\t\t\t\t\t\t\t\t\t"
.ascii "\t\t\tmaxOccurs=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:complexT"
.ascii "ype>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:sequence>\n\t\t\t\t\t\t\t\t"
.ascii "\t\t\t\t<xs:element name=\"Companion\" minOccurs=\"0\"\n\t\t"
.ascii "\t\t\t\t\t\t\t\t\t\tmaxOccurs=\"unbounded\" type=\"Companion"
.ascii "_type\">\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:annotation>\n\t\t\t\t\t"
.ascii "\t\t\t\t\t\t\t<xs:documentation>Definition of Companion ad, "
.ascii "if served separately</xs:documentation>\n\t\t\t\t\t\t\t\t\t\t"
.ascii "\t\t</xs:annotation>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:element>\n"
.ascii "\t\t\t\t\t\t\t\t\t\t\t\t</xs:sequence>\n\t\t\t\t\t\t\t\t\t\t"
.ascii "\t\t</xs:complexType>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:element>"
.ascii "\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:element name=\"NonLinearAds\" "
.ascii "minOccurs=\"0\"\n\t\t\t\t\t\t\t\t\t\t\t\tmaxOccurs=\"1\">\n\t"
.ascii "\t\t\t\t\t\t\t\t\t\t\t<xs:complexType>\n\t\t\t\t\t\t\t\t\t\t"
.ascii "\t\t<xs:sequence>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:element name="
.ascii "\"TrackingEvents\" minOccurs=\"0\"\n\t\t\t\t\t\t\t\t\t\t\t\t"
.ascii "type=\"TrackingEvents_type\" maxOccurs=\"1\"> </xs:element>\n"
.ascii "\t\t\t\t\t\t\t\t\t\t\t\t<xs:element name=\"NonLinear\" minOc"
.ascii "curs=\"0\"\n\t\t\t\t\t\t\t\t\t\t\t\tmaxOccurs=\"unbounded\" "
.ascii "type=\"NonLinear_type\">\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:annota"
.ascii "tion>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:documentation>Any number "
.ascii "of companions in any desired pixel dimensions.</xs:documenta"
.ascii "tion>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:annotation"
.ascii ">\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:element>\n\t\t\t\t\t\t\t\t\t"
.ascii "\t\t\t</xs:sequence>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:complexTy"
.ascii "pe>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:element>\n\t\t\t\t\t\t\t\t"
.ascii "\t\t\t\t</xs:choice>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:attribute "
.ascii "name=\"id\" type=\"xs:string\"\n\t\t\t\t\t\t\t\t\t\t\t\tuse="
.ascii "\"optional\"/>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:attribute name=\""
.ascii "sequence\" type=\"xs:integer\"\n\t\t\t\t\t\t\t\t\t\t\t\tuse="
.ascii "\"optional\">\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:annotation>\n\t\t"
.ascii "\t\t\t\t\t\t\t\t\t\t<xs:documentation>The preferred order in"
.ascii " which multiple Creatives should be displayed</xs:documentat"
.ascii "ion>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:annotation>\n\t\t\t\t\t\t"
.ascii "\t\t\t\t\t\t</xs:attribute>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:att"
.ascii "ribute name=\"AdID\" type=\"xs:string\"\n\t\t\t\t\t\t\t\t\t\t"
.ascii "\t\tuse=\"optional\">\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:annotatio"
.ascii "n>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:documentation>Ad-ID for the "
.ascii "creative (formerly ISCI)</xs:documentation>\n\t\t\t\t\t\t\t\t"
.ascii "\t\t\t\t</xs:annotation>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:attri"
.ascii "bute>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:complexType>\n\t\t\t\t\t"
.ascii "\t\t\t\t\t\t\t</xs:element>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:se"
.ascii "quence>\n\t\t\t\t\t\t\t\t\t\t\t</xs:complexType>\n\t\t\t\t\t"
.ascii "\t\t\t\t\t</xs:element>\n\t\t\t\t\t\t\t\t\t\t<xs:element nam"
.ascii "e=\"Extensions\" minOccurs=\"0\" maxOccurs=\"1\">\n\t\t\t\t\t"
.ascii "\t\t\t\t\t\t<xs:complexType>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:se"
.ascii "quence>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:element name=\"Extensio"
.ascii "n\" type=\"xs:anyType\"\n\t\t\t\t\t\t\t\t\t\t\t\tminOccurs=\""
.ascii "0\" maxOccurs=\"unbounded\">\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:an"
.ascii "notation>\n\t\t\t\t\t\t\t\t\t\t\t\t<xs:documentation>Any val"
.ascii "id XML may be included in the Extensions node</xs:documentat"
.ascii "ion>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:annotation>\n\t\t\t\t\t\t"
.ascii "\t\t\t\t\t\t</xs:element>\n\t\t\t\t\t\t\t\t\t\t\t\t</xs:sequ"
.ascii "ence>\n\t\t\t\t\t\t\t\t\t\t\t</xs:complexType>\n\t\t\t\t\t\t"
.ascii "\t\t\t\t</xs:element>\n\t\t\t\t\t\t\t\t\t</xs:sequence>\n\t\t"
.ascii "\t\t\t\t\t\t</xs:complexType>\n\t\t\t\t\t\t\t</xs:element>\n"
.ascii "\t\t\t\t\t\t</xs:choice>\n\t\t\t\t\t\t<xs:attribute name=\"i"
.ascii "d\" type=\"xs:string\" use=\"required\"/>\n\t\t\t\t\t</xs:co"
.ascii "mplexType>\n\t\t\t\t</xs:element>\n\t\t\t</xs:sequence>\n\t\t"
.ascii "\t<xs:attribute name=\"version\" type=\"xs:string\" use=\"re"
.ascii "quired\">\n\t\t\t\t<xs:annotation>\n\t\t\t\t\t<xs:documentat"
.ascii "ion>Current version is 2.0. The 2.0.1 version corrects an er"
.ascii "ror in the Wrapper section related the Linear node's Trackin"
.ascii "gEvents and VideoCLicks elements.</xs:documentation>\n\t\t\t"
.ascii "\t</xs:annotation>\n\t\t\t</xs:attribute>\n\t\t</xs:complexT"
.ascii "ype>\n\t</xs:element>\n\t<xs:complexType name=\"TrackingEven"
.ascii "ts_t"
.ascii "ype\">\n\t\t<xs:sequence>\n\t\t\t<xs:element name=\"Tracking"
.ascii "\" minOccurs=\"0\" maxOccurs=\"unbounded\">\n\t\t\t\t<xs:ann"
.ascii "otation>\n\t\t\t\t\t<xs:documentation>The name of the event "
.ascii "to track for the Linear element. The creativeView should alw"
.ascii "ays be requested when present.</xs:documentation>\n\t\t\t\t<"
.ascii "/xs:annotation>\n\t\t\t\t<xs:complexType>\n\t\t\t\t\t<xs:sim"
.ascii "pleContent>\n\t\t\t\t\t\t<xs:extension base=\"xs:anyURI\">\n"
.ascii "\t\t\t\t\t\t\t<xs:attribute name=\"event\" use=\"required\">"
.ascii "\n\t\t\t\t\t\t\t\t<xs:annotation>\n\t\t\t\t\t\t\t\t\t<xs:doc"
.ascii "umentation>The name of the event to track. For nonlinear ads"
.ascii " these events should be recorded on the video within the ad."
.ascii "</xs:documentation>\n\t\t\t\t\t\t\t\t</xs:annotation>\n\t\t\t"
.ascii "\t\t\t\t\t<xs:simpleType>\n\t\t\t\t\t\t\t\t\t<xs:restriction"
.ascii " base=\"xs:NMTOKEN\">\n\t\t\t\t\t\t\t\t\t\t<xs:enumeration v"
.ascii "alue=\"creativeView\"/>\n\t\t\t\t\t\t\t\t\t\t<xs:enumeration"
.ascii " value=\"start\"/>\n\t\t\t\t\t\t\t\t\t\t<xs:enumeration valu"
.ascii "e=\"midpoint\"/>\n\t\t\t\t\t\t\t\t\t\t<xs:enumeration value="
.ascii "\"firstQuartile\"/>\n\t\t\t\t\t\t\t\t\t\t<xs:enumeration val"
.ascii "ue=\"thirdQuartile\"/>\n\t\t\t\t\t\t\t\t\t\t<xs:enumeration "
.ascii "value=\"complete\"/>\n\t\t\t\t\t\t\t\t\t\t<xs:enumeration va"
.ascii "lue=\"mute\"/>\n\t\t\t\t\t\t\t\t\t\t<xs:enumeration value=\""
.ascii "unmute\"/>\n\t\t\t\t\t\t\t\t\t\t<xs:enumeration value=\"paus"
.ascii "e\"/>\n\t\t\t\t\t\t\t\t\t\t<xs:enumeration value=\"rewind\"/"
.ascii ">\n\t\t\t\t\t\t\t\t\t\t<xs:enumeration value=\"resume\"/>\n\t"
.ascii "\t\t\t\t\t\t\t\t\t<xs:enumeration value=\"fullscreen\"/>\n\t"
.ascii "\t\t\t\t\t\t\t\t\t<xs:enumeration value=\"expand\"/>\n\t\t\t"
.ascii "\t\t\t\t\t\t\t<xs:enumeration value=\"collapse\"/>\n\t\t\t\t"
.ascii "\t\t\t\t\t\t<xs:enumeration value=\"acceptInvitation\"/>\n\t"
.ascii "\t\t\t\t\t\t\t\t\t<xs:enumeration value=\"close\"/>\n\t\t\t\t"
.ascii "\t\t\t\t\t</xs:restriction>\n\t\t\t\t\t\t\t\t</xs:simpleType"
.ascii ">\n\t\t\t\t\t\t\t</xs:attribute>\n\t\t\t\t\t\t</xs:extension"
.ascii ">\n\t\t\t\t\t</xs:simpleContent>\n\t\t\t\t</xs:complexType>\n"
.ascii "\t\t\t</xs:element>\n\t\t</xs:sequence>\n\t</xs:complexType>"
.ascii "\n\t<xs:complexType name=\"VideoClicks_type\">\n\t\t<xs:sequ"
.ascii "ence>\n\t\t\t<xs:element name=\"ClickThrough\" minOccurs=\"0"
.ascii "\" maxOccurs=\"1\">\n\t\t\t\t<xs:annotation>\n\t\t\t\t\t<xs:"
.ascii "documentation>URL to open as destination page when user clic"
.ascii "ks on the video</xs:documentation>\n\t\t\t\t</xs:annotation>"
.ascii "\n\t\t\t\t<xs:complexType>\n\t\t\t\t\t<xs:simpleContent>\n\t"
.ascii "\t\t\t\t\t<xs:extension base=\"xs:anyURI\">\n\t\t\t\t\t\t\t<"
.ascii "xs:attribute name=\"id\" type=\"x"
.ascii "s:string\" use=\"optional\"/>\n\t\t\t\t\t\t</xs:extension>\n"
.ascii "\t\t\t\t\t</xs:simpleContent>\n\t\t\t\t</xs:complexType>\n\t"
.ascii "\t\t</xs:element>\n\t\t\t<xs:element name=\"ClickTracking\" "
.ascii "minOccurs=\"0\" maxOccurs=\"unbounded\">\n\t\t\t\t<xs:annota"
.ascii "tion>\n\t\t\t\t\t<xs:documentation>URL to request for tracki"
.ascii "ng purposes when user clicks on the video</xs:documentation>"
.ascii "\n\t\t\t\t</xs:annotation>\n\t\t\t\t<xs:complexType>\n\t\t\t"
.ascii "\t\t<xs:simpleContent>\n\t\t\t\t\t\t<xs:extension base=\"xs:"
.ascii "anyURI\">\n\t\t\t\t\t\t\t<xs:attribute name=\"id\" type=\"xs"
.ascii ":string\" use=\"optional\"/>\n\t\t\t\t\t\t</xs:extension>\n\t"
.ascii "\t\t\t\t</xs:simpleContent>\n\t\t\t\t</xs:complexType>\n\t\t"
.ascii "\t</xs:element>\n\t\t\t<xs:element name=\"CustomClick\" minO"
.ascii "ccurs=\"0\" maxOccurs=\"unbounded\">\n\t\t\t\t<xs:annotation"
.ascii ">\n\t\t\t\t\t<xs:documentation>URLs to request on custom eve"
.ascii "nts such as hotspotted video</xs:documentation>\n\t\t\t\t</x"
.ascii "s:annotation>\n\t\t\t\t<xs:complexType>\n\t\t\t\t\t<xs:simpl"
.ascii "eContent>\n\t\t\t\t\t\t<xs:extension base=\"xs:anyURI\">\n\t"
.ascii "\t\t\t\t\t\t<xs:attribute name=\"id\" type=\"xs:string\" use"
.ascii "=\"optional\"/>\n\t\t\t\t\t\t</xs:extension>\n\t\t\t\t\t</xs"
.ascii ":simpleContent>\n\t\t\t\t</xs:complexType>\n\t\t\t</xs:eleme"
.ascii "nt>\n\t\t</xs:sequence>\n\t</xs:complexType>\n\t<xs:complexT"
.ascii "ype name=\"Companion_type\">\n\t\t<xs:sequence>\n\t\t\t<xs:c"
.ascii "hoice>\n\t\t\t\t<xs:element name=\"StaticResource\" minOccur"
.ascii "s=\"0\" maxOccurs=\"1\">\n\t\t\t\t\t<xs:annotation>\n\t\t\t\t"
.ascii "\t\t<xs:documentation>URL to a static file, such as an image"
.ascii " or SWF file</xs:documentation>\n\t\t\t\t\t</xs:annotation>\n"
.ascii "\t\t\t\t\t<xs:complexType>\n\t\t\t\t\t\t<xs:simpleContent>\n"
.ascii "\t\t\t\t\t\t\t<xs:extension base=\"xs:anyURI\">\n\t\t\t\t\t\t"
.ascii "\t\t<xs:attribute name=\"creativeType\" type=\"xs:string\" u"
.ascii "se=\"required\">\n\t\t\t\t\t\t\t\t\t<xs:annotation>\n\t\t\t\t"
.ascii "\t\t\t\t\t\t<xs:documentation>Mime type of static resource</"
.ascii "xs:documentation>\n\t\t\t\t\t\t\t\t\t</xs:annotation>\n\t\t\t"
.ascii "\t\t\t\t\t</xs:attribute>\n\t\t\t\t\t\t\t</xs:extension>\n\t"
.ascii "\t\t\t\t\t</xs:simpleContent>\n\t\t\t\t\t</xs:complexType>\n"
.ascii "\t\t\t\t</xs:element>\n\t\t\t\t<xs:element name=\"IFrameReso"
.ascii "urce\" type=\"xs:anyURI\" minOccurs=\"0\" maxOccurs=\"1\">\n"
.ascii "\t\t\t\t\t<xs:annotation>\n\t\t\t\t\t\t<xs:documentation>URL"
.ascii " source for an IFrame to display the companion element</xs:d"
.ascii "ocumentation>\n\t\t\t\t\t</xs:annotation>\n\t\t\t\t</xs:elem"
.ascii "ent>\n\t\t\t\t<xs:element name=\"HTM"
.ascii "LResource\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\"1"
.ascii "\">\n\t\t\t\t\t<xs:annotation>\n\t\t\t\t\t\t<xs:documentatio"
.ascii "n>HTML to display the companion element</xs:documentation>\n"
.ascii "\t\t\t\t\t</xs:annotation>\n\t\t\t\t</xs:element>\n\t\t\t</x"
.ascii "s:choice>\n\t\t\t<xs:element maxOccurs=\"1\" minOccurs=\"0\""
.ascii " name=\"TrackingEvents\" type=\"TrackingEvents_type\">\n\t\t"
.ascii "\t\t<xs:annotation>\n\t\t\t\t\t<xs:documentation>The creativ"
.ascii "eView should always be requested when present. For Companion"
.ascii "s creativeView is the only supported event.</xs:documentatio"
.ascii "n>\n\t\t\t\t</xs:annotation>\n\t\t\t</xs:element>\n\t\t\t<xs"
.ascii ":element name=\"CompanionClickThrough\" type=\"xs:anyURI\" m"
.ascii "inOccurs=\"0\" maxOccurs=\"1\">\n\t\t\t\t<xs:annotation>\n\t"
.ascii "\t\t\t\t<xs:documentation>URL to open as destination page wh"
.ascii "en user clicks on the the companion banner ad.</xs:documenta"
.ascii "tion>\n\t\t\t\t</xs:annotation>\n\t\t\t</xs:element>\n\t\t\t"
.ascii "<xs:element name=\"AltText\" type=\"xs:string\" minOccurs=\""
.ascii "0\" maxOccurs=\"1\">\n\t\t\t\t<xs:annotation>\n\t\t\t\t\t<xs"
.ascii ":documentation>Alt text to be displayed when companion is re"
.ascii "ndered in HTML environment.</xs:documentation>\n\t\t\t\t</xs"
.ascii ":annotation>\n\t\t\t</xs:element>\n\t\t\t<xs:element name=\""
.ascii "AdParameters\" type=\"xs:string\" minOccurs=\"0\" maxOccurs="
.ascii "\"1\">\n\t\t\t\t<xs:annotation>\n\t\t\t\t\t<xs:documentation"
.ascii ">Data to be passed into the companion ads. The apiFramework "
.ascii "defines the method to use for communication (e.g. \342\200\234"
.ascii "FlashVar\342\200\235)</xs:documentation>\n\t\t\t\t</xs:annot"
.ascii "ation>\n\t\t\t</xs:element>\n\t\t</xs:sequence>\n\t\t<xs:att"
.ascii "ribute name=\"id\" type=\"xs:string\" use=\"optional\">\n\t\t"
.ascii "\t<xs:annotation>\n\t\t\t\t<xs:documentation>Optional identi"
.ascii "fier</xs:documentation>\n\t\t\t</xs:annotation>\n\t\t</xs:at"
.ascii "tribute>\n\t\t<xs:attribute name=\"width\" type=\"xs:integer"
.ascii "\" use=\"required\">\n\t\t\t<xs:annotation>\n\t\t\t\t<xs:doc"
.ascii "umentation>Pixel dimensions of companion</xs:documentation>\n"
.ascii "\t\t\t</xs:annotation>\n\t\t</xs:attribute>\n\t\t<xs:attribu"
.ascii "te name=\"height\" type=\"xs:integer\" use=\"required\">\n\t"
.ascii "\t\t<xs:annotation>\n\t\t\t\t<xs:documentation>Pixel dimensi"
.ascii "ons of companion</xs:documentation>\n\t\t\t</xs:annotation>\n"
.ascii "\t\t</xs:attribute>\n\t\t<xs:attribute name=\"expandedWidth\""
.ascii " type=\"xs:integer\" use=\"optional\">\n\t\t\t"
.ascii "<xs:annotation>\n\t\t\t\t<xs:documentation>Pixel dimensions "
.ascii "of expanding companion ad when in expanded state</xs:documen"
.ascii "tation>\n\t\t\t</xs:annotation>\n\t\t</xs:attribute>\n\t\t<x"
.ascii "s:attribute name=\"expandedHeight\" type=\"xs:integer\" use="
.ascii "\"optional\">\n\t\t\t<xs:annotation>\n\t\t\t\t<xs:documentat"
.ascii "ion>Pixel dimensions of expanding companion ad when in expan"
.ascii "ded state</xs:documentation>\n\t\t\t</xs:annotation>\n\t\t</"
.ascii "xs:attribute>\n\t\t<xs:attribute name=\"apiFramework\" type="
.ascii "\"xs:string\" use=\"optional\">\n\t\t\t<xs:annotation>\n\t\t"
.ascii "\t\t<xs:documentation>The apiFramework defines the method to"
.ascii " use for communication with the companion</xs:documentation>"
.ascii "\n\t\t\t</xs:annotation>\n\t\t</xs:attribute>\n\t</xs:comple"
.ascii "xType>\n\t<xs:complexType name=\"NonLinear_type\">\n\t\t<xs:"
.ascii "sequence>\n\t\t\t<xs:choice>\n\t\t\t\t<xs:element name=\"Sta"
.ascii "ticResource\" minOccurs=\"0\" maxOccurs=\"1\">\n\t\t\t\t\t<x"
.ascii "s:annotation>\n\t\t\t\t\t\t<xs:documentation>URL to a static"
.ascii " file, such as an image or SWF file</xs:documentation>\n\t\t"
.ascii "\t\t\t</xs:annotation>\n\t\t\t\t\t<xs:complexType>\n\t\t\t\t"
.ascii "\t\t<xs:simpleContent>\n\t\t\t\t\t\t\t<xs:extension base=\"x"
.ascii "s:anyURI\">\n\t\t\t\t\t\t\t\t<xs:attribute name=\"creativeTy"
.ascii "pe\" type=\"xs:string\" use=\"required\">\n\t\t\t\t\t\t\t\t\t"
.ascii "<xs:annotation>\n\t\t\t\t\t\t\t\t\t\t<xs:documentation>Mime "
.ascii "type of static resource</xs:documentation>\n\t\t\t\t\t\t\t\t"
.ascii "\t</xs:annotation>\n\t\t\t\t\t\t\t\t</xs:attribute>\n\t\t\t\t"
.ascii "\t\t\t</xs:extension>\n\t\t\t\t\t\t</xs:simpleContent>\n\t\t"
.ascii "\t\t\t</xs:complexType>\n\t\t\t\t</xs:element>\n\t\t\t\t<xs:"
.ascii "element name=\"IFrameResource\" type=\"xs:anyURI\" minOccurs"
.ascii "=\"0\" maxOccurs=\"1\">\n\t\t\t\t\t<xs:annotation>\n\t\t\t\t"
.ascii "\t\t<xs:documentation>URL source for an IFrame to display th"
.ascii "e companion element</xs:documentation>\n\t\t\t\t\t</xs:annot"
.ascii "ation>\n\t\t\t\t</xs:element>\n\t\t\t\t<xs:element name=\"HT"
.ascii "MLResource\" type=\"xs:string\" minOccurs=\"0\" maxOccurs=\""
.ascii "1\">\n\t\t\t\t\t<xs:annotation>\n\t\t\t\t\t\t<xs:documentati"
.ascii "on>HTML to display the companion element</xs:documentation>\n"
.ascii "\t\t\t\t\t</xs:annotation>\n\t\t\t\t</xs:element>\n\t\t\t</x"
.ascii "s:choice>\n\t\t\t<xs:element name=\"NonLinearClickThrough\" "
.ascii "type=\"xs:anyURI\" minOccurs=\"0\" maxOccurs=\"1\">\n\t\t\t\t"
.ascii "<xs:annotation>\n\t\t\t\t\t<xs:documentation>URL to open as "
.ascii "destination page when user"
.ascii " clicks on the the non-linear ad unit.</xs:documentation>\n\t"
.ascii "\t\t\t</xs:annotation>\n\t\t\t</xs:element>\n\t\t\t<xs:eleme"
.ascii "nt name=\"AdParameters\" type=\"xs:string\" minOccurs=\"0\" "
.ascii "maxOccurs=\"1\">\n\t\t\t\t<xs:annotation>\n\t\t\t\t\t<xs:doc"
.ascii "umentation>Data to be passed into the video ad. </xs:documen"
.ascii "tation>\n\t\t\t\t</xs:annotation>\n\t\t\t</xs:element>\n\t\t"
.ascii "</xs:sequence>\n\t\t<xs:attribute name=\"id\" type=\"xs:stri"
.ascii "ng\" use=\"optional\">\n\t\t\t<xs:annotation>\n\t\t\t\t<xs:d"
.ascii "ocumentation>Optional identifier</xs:documentation>\n\t\t\t<"
.ascii "/xs:annotation>\n\t\t</xs:attribute>\n\t\t<xs:attribute name"
.ascii "=\"width\" type=\"xs:integer\" use=\"required\">\n\t\t\t<xs:"
.ascii "annotation>\n\t\t\t\t<xs:documentation>Pixel dimensions of c"
.ascii "ompanion</xs:documentation>\n\t\t\t</xs:annotation>\n\t\t</x"
.ascii "s:attribute>\n\t\t<xs:attribute name=\"height\" type=\"xs:in"
.ascii "teger\" use=\"required\">\n\t\t\t<xs:annotation>\n\t\t\t\t<x"
.ascii "s:documentation>Pixel dimensions of companion</xs:documentat"
.ascii "ion>\n\t\t\t</xs:annotation>\n\t\t</xs:attribute>\n\t\t<xs:a"
.ascii "ttribute name=\"expandedWidth\" type=\"xs:integer\" use=\"op"
.ascii "tional\">\n\t\t\t<xs:annotation>\n\t\t\t\t<xs:documentation>"
.ascii "Pixel dimensions of expanding nonlinear ad when in expanded "
.ascii "state</xs:documentation>\n\t\t\t</xs:annotation>\n\t\t</xs:a"
.ascii "ttribute>\n\t\t<xs:attribute name=\"expandedHeight\" type=\""
.ascii "xs:integer\" use=\"optional\">\n\t\t\t<xs:annotation>\n\t\t\t"
.ascii "\t<xs:documentation>Pixel dimensions of expanding nonlinear "
.ascii "ad when in expanded state</xs:documentation>\n\t\t\t</xs:ann"
.ascii "otation>\n\t\t</xs:attribute>\n\t\t<xs:attribute name=\"scal"
.ascii "able\" type=\"xs:boolean\" use=\"optional\">\n\t\t\t<xs:anno"
.ascii "tation>\n\t\t\t\t<xs:documentation>Whether it is acceptable "
.ascii "to scale the image.</xs:documentation>\n\t\t\t</xs:annotatio"
.ascii "n>\n\t\t</xs:attribute>\n\t\t<xs:attribute name=\"maintainAs"
.ascii "pectRatio\" type=\"xs:boolean\" use=\"optional\">\n\t\t\t<xs"
.ascii ":annotation>\n\t\t\t\t<xs:documentation>Whether the ad must "
.ascii "have its aspect ratio maintained when scales</xs:documentati"
.ascii "on>\n\t\t\t</xs:annotation>\n\t\t</xs:attribute>\n\t\t<xs:at"
.ascii "tribute name=\"minSuggestedDuration\" type=\"xs:time\" use=\""
.ascii "optional\">\n\t\t\t<xs:annotation>\n\t\t\t\t<xs:documentatio"
.ascii "n>Suggested duration to display non-linear ad, typically for"
.ascii " animation to "
.ascii "complete. Expressed in standard time format hh:mm:ss</xs:doc"
.ascii "umentation>\n\t\t\t</xs:annotation>\n\t\t</xs:attribute>\n\t"
.ascii "\t<xs:attribute name=\"apiFramework\" type=\"xs:string\" use"
.ascii "=\"optional\">\n\t\t\t<xs:annotation>\n\t\t\t\t<xs:documenta"
.ascii "tion>The apiFramework defines the method to use for communic"
.ascii "ation with the nonlinear element</xs:documentation>\n\t\t\t<"
.ascii "/xs:annotation>\n\t\t</xs:attribute>\n\t</xs:complexType>\n\t"
.ascii "<xs:complexType name=\"AdSystem_type\">\n\t\t<xs:simpleConte"
.ascii "nt>\n\t\t\t<xs:extension base=\"xs:string\">\n\t\t\t\t<xs:at"
.ascii "tribute name=\"version\" type=\"xs:string\" use=\"optional\""
.ascii ">\n\t\t\t\t\t<xs:annotation>\n\t\t\t\t\t\t<xs:documentation>"
.ascii "Internal version used by ad system</xs:documentation>\n\t\t\t"
.ascii "\t\t</xs:annotation>\n\t\t\t\t</xs:attribute>\n\t\t\t</xs:ex"
.ascii "tension>\n\t\t</xs:simpleContent>\n\t</xs:complexType>\n\t<x"
.ascii "s:complexType name=\"Impression_type\">\n\t\t<xs:simpleConte"
.ascii "nt>\n\t\t\t<xs:extension base=\"xs:anyURI\">\n\t\t\t\t<xs:at"
.ascii "tribute name=\"id\" type=\"xs:string\" use=\"optional\"/>\n\t"
.ascii "\t\t</xs:extension>\n\t\t</xs:simpleContent>\n\t</xs:complex"
.ascii "Type>\n</xs:schema>"
.global pubnative_vast_2_0_1_xsd_len
.align 2
.type pubnative_vast_2_0_1_xsd_len, %object
.size pubnative_vast_2_0_1_xsd_len, 4
pubnative_vast_2_0_1_xsd_len:
.word 26977
``` |
### 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
str wzr, [sp, 12]
str wzr, [sp, 4]
b .L2
.L5:
str wzr, [sp, 8]
b .L3
.L4:
ldr w0, [sp, 12]
add w0, w0, 1
str w0, [sp, 12]
ldr w0, [sp, 8]
add w0, w0, 1
str w0, [sp, 8]
.L3:
ldr w0, [sp, 8]
cmp w0, 9
ble .L4
ldr w0, [sp, 4]
add w0, w0, 1
str w0, [sp, 4]
.L2:
ldr w0, [sp, 4]
cmp w0, 9
ble .L5
mov w0, 0
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
.local clientCounter
.comm clientCounter,4,4
.data
.align 2
.type uid, %object
.size uid, 4
uid:
.word 10
.global clients
.bss
.align 3
.type clients, %object
.size clients, 240
clients:
.zero 240
.global groups
.align 3
.type groups, %object
.size groups, 80
groups:
.zero 80
.text
.align 2
.global insertClientServer
.type insertClientServer, %function
insertClientServer:
.LFB6:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str wzr, [sp, 28]
b .L2
.L5:
adrp x0, clients
add x0, x0, :lo12:clients
ldrsw x1, [sp, 28]
ldr x0, [x0, x1, lsl 3]
cmp x0, 0
bne .L3
adrp x0, clients
add x0, x0, :lo12:clients
ldrsw x1, [sp, 28]
ldr x2, [sp, 8]
str x2, [x0, x1, lsl 3]
b .L4
.L3:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L2:
ldr w0, [sp, 28]
cmp w0, 29
ble .L5
nop
.L4:
nop
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size insertClientServer, .-insertClientServer
.align 2
.global gcreateGroup
.type gcreateGroup, %function
gcreateGroup:
.LFB7:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str wzr, [sp, 28]
b .L7
.L10:
adrp x0, groups
add x0, x0, :lo12:groups
ldrsw x1, [sp, 28]
ldr x0, [x0, x1, lsl 3]
cmp x0, 0
bne .L8
adrp x0, groups
add x0, x0, :lo12:groups
ldrsw x1, [sp, 28]
ldr x2, [sp, 8]
str x2, [x0, x1, lsl 3]
b .L9
.L8:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L7:
ldr w0, [sp, 28]
cmp w0, 9
ble .L10
nop
.L9:
nop
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size gcreateGroup, .-gcreateGroup
.align 2
.global joinClientGroup
.type joinClientGroup, %function
joinClientGroup:
.LFB8:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str w1, [sp, 4]
adrp x0, groups
add x0, x0, :lo12:groups
ldrsw x1, [sp, 4]
ldr x0, [x0, x1, lsl 3]
cmp x0, 0
beq .L16
str wzr, [sp, 28]
b .L13
.L15:
adrp x0, groups
add x0, x0, :lo12:groups
ldrsw x1, [sp, 4]
ldr x0, [x0, x1, lsl 3]
ldrsw x1, [sp, 28]
ldr x0, [x0, x1, lsl 3]
cmp x0, 0
bne .L14
adrp x0, groups
add x0, x0, :lo12:groups
ldrsw x1, [sp, 4]
ldr x0, [x0, x1, lsl 3]
ldrsw x1, [sp, 28]
ldr x2, [sp, 8]
str x2, [x0, x1, lsl 3]
nop
b .L16
.L14:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L13:
ldr w0, [sp, 28]
cmp w0, 9
ble .L15
.L16:
nop
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size joinClientGroup, .-joinClientGroup
.align 2
.global removeClientGroup
.type removeClientGroup, %function
removeClientGroup:
.LFB9:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, 12]
str w1, [sp, 8]
str wzr, [sp, 20]
str wzr, [sp, 24]
b .L18
.L21:
adrp x0, groups
add x0, x0, :lo12:groups
ldrsw x1, [sp, 8]
ldr x0, [x0, x1, lsl 3]
ldrsw x1, [sp, 24]
ldr x0, [x0, x1, lsl 3]
cmp x0, 0
beq .L19
adrp x0, groups
add x0, x0, :lo12:groups
ldrsw x1, [sp, 8]
ldr x0, [x0, x1, lsl 3]
ldrsw x1, [sp, 24]
ldr x0, [x0, x1, lsl 3]
ldr w0, [x0, 20]
ldr w1, [sp, 12]
cmp w1, w0
bne .L19
adrp x0, groups
add x0, x0, :lo12:groups
ldrsw x1, [sp, 8]
ldr x0, [x0, x1, lsl 3]
ldrsw x1, [sp, 24]
str xzr, [x0, x1, lsl 3]
b .L20
.L19:
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L18:
ldr w0, [sp, 24]
cmp w0, 9
ble .L21
.L20:
str wzr, [sp, 28]
b .L22
.L24:
adrp x0, groups
add x0, x0, :lo12:groups
ldrsw x1, [sp, 8]
ldr x0, [x0, x1, lsl 3]
ldrsw x1, [sp, 28]
ldr x0, [x0, x1, lsl 3]
cmp x0, 0
beq .L23
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
.L23:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L22:
ldr w0, [sp, 28]
cmp w0, 9
ble .L24
ldr w0, [sp, 20]
cmp w0, 0
bne .L26
adrp x0, groups
add x0, x0, :lo12:groups
ldrsw x1, [sp, 8]
str xzr, [x0, x1, lsl 3]
.L26:
nop
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size removeClientGroup, .-removeClientGroup
.align 2
.global findGroupIndexByClientId
.type findGroupIndexByClientId, %function
findGroupIndexByClientId:
.LFB10:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, 12]
mov w0, -1
str w0, [sp, 20]
str wzr, [sp, 24]
b .L28
.L33:
adrp x0, groups
add x0, x0, :lo12:groups
ldrsw x1, [sp, 24]
ldr x0, [x0, x1, lsl 3]
cmp x0, 0
beq .L29
str wzr, [sp, 28]
b .L30
.L32:
adrp x0, groups
add x0, x0, :lo12:groups
ldrsw x1, [sp, 24]
ldr x0, [x0, x1, lsl 3]
ldrsw x1, [sp, 28]
ldr x0, [x0, x1, lsl 3]
cmp x0, 0
beq .L31
adrp x0, groups
add x0, x0, :lo12:groups
ldrsw x1, [sp, 24]
ldr x0, [x0, x1, lsl 3]
ldrsw x1, [sp, 28]
ldr x0, [x0, x1, lsl 3]
ldr w0, [x0, 20]
ldr w1, [sp, 12]
cmp w1, w0
bne .L31
ldr w0, [sp, 24]
str w0, [sp, 20]
b .L29
.L31:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L30:
ldr w0, [sp, 28]
cmp w0, 9
ble .L32
.L29:
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L28:
ldr w0, [sp, 24]
cmp w0, 9
ble .L33
ldr w0, [sp, 20]
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size findGroupIndexByClientId, .-findGroupIndexByClientId
.align 2
.global sendMsgOthers
.type sendMsgOthers, %function
sendMsgOthers:
.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 x19, [sp, 16]
.cfi_offset 19, -48
str x0, [sp, 40]
str w1, [sp, 36]
ldr w0, [sp, 36]
bl findGroupIndexByClientId
str w0, [sp, 60]
str wzr, [sp, 56]
b .L36
.L39:
adrp x0, groups
add x0, x0, :lo12:groups
ldrsw x1, [sp, 60]
ldr x0, [x0, x1, lsl 3]
ldrsw x1, [sp, 56]
ldr x0, [x0, x1, lsl 3]
cmp x0, 0
beq .L37
adrp x0, groups
add x0, x0, :lo12:groups
ldrsw x1, [sp, 60]
ldr x0, [x0, x1, lsl 3]
ldrsw x1, [sp, 56]
ldr x0, [x0, x1, lsl 3]
ldr w0, [x0, 20]
ldr w1, [sp, 36]
cmp w1, w0
beq .L37
adrp x0, groups
add x0, x0, :lo12:groups
ldrsw x1, [sp, 60]
ldr x0, [x0, x1, lsl 3]
ldrsw x1, [sp, 56]
ldr x0, [x0, x1, lsl 3]
ldr w19, [x0, 16]
ldr x0, [sp, 40]
bl strlen
mov x2, x0
ldr x1, [sp, 40]
mov w0, w19
bl write
cmp x0, 0
blt .L40
.L37:
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
.L36:
ldr w0, [sp, 56]
cmp w0, 9
ble .L39
b .L41
.L40:
nop
.L41:
nop
ldr x19, [sp, 16]
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size sendMsgOthers, .-sendMsgOthers
.align 2
.global findGroupIndexByName
.type findGroupIndexByName, %function
findGroupIndexByName:
.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]
mov w0, -1
str w0, [sp, 40]
str wzr, [sp, 44]
b .L43
.L46:
adrp x0, groups
add x0, x0, :lo12:groups
ldrsw x1, [sp, 44]
ldr x0, [x0, x1, lsl 3]
cmp x0, 0
beq .L44
adrp x0, groups
add x0, x0, :lo12:groups
ldrsw x1, [sp, 44]
ldr x0, [x0, x1, lsl 3]
add x0, x0, 80
cmp x0, 0
beq .L44
adrp x0, groups
add x0, x0, :lo12:groups
ldrsw x1, [sp, 44]
ldr x0, [x0, x1, lsl 3]
add x0, x0, 80
ldr x1, [sp, 24]
bl strcmp
cmp w0, 0
bne .L44
ldr w0, [sp, 44]
str w0, [sp, 40]
b .L45
.L44:
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L43:
ldr w0, [sp, 44]
cmp w0, 9
ble .L46
.L45:
ldr w0, [sp, 40]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE12:
.size findGroupIndexByName, .-findGroupIndexByName
.align 2
.global findClientIndexByNumber
.type findClientIndexByNumber, %function
findClientIndexByNumber:
.LFB13:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
mov w0, -1
str w0, [sp, 40]
str wzr, [sp, 44]
b .L49
.L52:
adrp x0, clients
add x0, x0, :lo12:clients
ldrsw x1, [sp, 44]
ldr x0, [x0, x1, lsl 3]
cmp x0, 0
beq .L50
adrp x0, clients
add x0, x0, :lo12:clients
ldrsw x1, [sp, 44]
ldr x0, [x0, x1, lsl 3]
add x0, x0, 24
cmp x0, 0
beq .L50
adrp x0, clients
add x0, x0, :lo12:clients
ldrsw x1, [sp, 44]
ldr x0, [x0, x1, lsl 3]
add x0, x0, 24
ldr x1, [sp, 24]
bl strcmp
cmp w0, 0
bne .L50
ldr w0, [sp, 44]
str w0, [sp, 40]
b .L51
.L50:
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L49:
ldr w0, [sp, 44]
cmp w0, 29
ble .L52
.L51:
ldr w0, [sp, 40]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE13:
.size findClientIndexByNumber, .-findClientIndexByNumber
.align 2
.global sendMsg
.type sendMsg, %function
sendMsg:
.LFB14:
.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]
str wzr, [sp, 60]
b .L55
.L58:
adrp x0, clients
add x0, x0, :lo12:clients
ldrsw x1, [sp, 60]
ldr x0, [x0, x1, lsl 3]
cmp x0, 0
beq .L56
adrp x0, clients
add x0, x0, :lo12:clients
ldrsw x1, [sp, 60]
ldr x0, [x0, x1, lsl 3]
ldr w0, [x0, 20]
ldr w1, [sp, 36]
cmp w1, w0
bne .L56
adrp x0, clients
add x0, x0, :lo12:clients
ldrsw x1, [sp, 60]
ldr x0, [x0, x1, lsl 3]
ldr w19, [x0, 16]
ldr x0, [sp, 40]
bl strlen
mov w3, 0
mov x2, x0
ldr x1, [sp, 40]
mov w0, w19
bl send
cmp x0, 0
blt .L59
.L56:
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L55:
ldr w0, [sp, 60]
cmp w0, 29
ble .L58
b .L60
.L59:
nop
.L60:
nop
ldr x19, [sp, 16]
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE14:
.size sendMsg, .-sendMsg
.section .rodata
.align 3
.LC0:
.string "Didn't enter the number."
.align 3
.LC1:
.string "%s connected.\n"
.align 3
.LC2:
.string "%s"
.align 3
.LC3:
.string "-"
.align 3
.LC4:
.string " "
.align 3
.LC5:
.string "\n"
.align 3
.LC6:
.string "-gcreate"
.align 3
.LC7:
.string "Please create password : "
.align 3
.LC8:
.string "Welcome to "
.align 3
.LC9:
.string "Password length must be greater than 0 !!\n"
.align 3
.LC10:
.string "-send"
.align 3
.LC11:
.string "\t\t"
.align 3
.LC12:
.string "-exit"
.align 3
.LC13:
.string "You left chat\n"
.align 3
.LC14:
.string " left from chat"
.align 3
.LC15:
.string "-join"
.align 3
.LC16:
.string "Enter group's password : "
.align 3
.LC17:
.string " joined group\n"
.align 3
.LC18:
.string "Password is incorrect.\n"
.align 3
.LC19:
.string "Private chat with "
.align 3
.LC20:
.string "There is no group or user with this name!\n"
.align 3
.LC21:
.string "-whoami"
.align 3
.LC22:
.string "Your number : "
.align 3
.LC23:
.string " has left\n"
.text
.align 2
.global handle_client
.type handle_client, %function
handle_client:
.LFB15:
.cfi_startproc
mov x12, 10464
sub sp, sp, x12
.cfi_def_cfa_offset 10464
stp x29, x30, [sp]
.cfi_offset 29, -10464
.cfi_offset 30, -10456
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, 10456]
mov x1, 0
str wzr, [sp, 32]
adrp x0, clientCounter
add x0, x0, :lo12:clientCounter
ldr w0, [x0]
add w1, w0, 1
adrp x0, clientCounter
add x0, x0, :lo12:clientCounter
str w1, [x0]
ldr x0, [sp, 24]
str x0, [sp, 72]
ldr x0, [sp, 24]
str x0, [sp, 80]
ldr x0, [sp, 72]
ldr w0, [x0, 16]
add x1, sp, 184
mov w3, 0
mov x2, 32
bl recv
cmp x0, 0
bgt .L62
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
mov w0, 1
str w0, [sp, 32]
b .L63
.L62:
ldr x0, [sp, 72]
add x0, x0, 24
add x1, sp, 184
bl strcpy
ldr x0, [sp, 72]
add x0, x0, 24
add x3, sp, 216
mov x2, x0
adrp x0, .LC1
add x1, x0, :lo12:.LC1
mov x0, x3
bl sprintf
add x0, sp, 216
mov x1, x0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
.L63:
add x0, sp, 216
mov x3, x0
mov x0, 2048
mov x2, x0
mov w1, 0
mov x0, x3
bl memset
.L83:
ldr w0, [sp, 32]
cmp w0, 0
bne .L91
ldr x0, [sp, 72]
ldr w0, [x0, 16]
add x1, sp, 216
mov w3, 0
mov x2, 2048
bl recv
str w0, [sp, 44]
add x1, sp, 216
add x0, sp, 4096
add x0, x0, 216
bl strcpy
ldr w0, [sp, 44]
cmp w0, 0
ble .L66
add x0, sp, 216
ldrb w0, [x0]
cmp w0, 0
beq .L82
ldrb w1, [sp, 216]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
ldrb w0, [x0]
sub w0, w1, w0
cmp w0, 0
bne .L82
str wzr, [sp, 36]
add x2, sp, 216
adrp x0, .LC4
add x1, x0, :lo12:.LC4
mov x0, x2
bl strtok
str x0, [sp, 64]
b .L68
.L69:
ldrsw x0, [sp, 36]
lsl x0, x0, 3
add x1, sp, 104
ldr x2, [sp, 64]
str x2, [x1, x0]
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
adrp x0, .LC5
add x1, x0, :lo12:.LC5
mov x0, 0
bl strtok
str x0, [sp, 64]
.L68:
ldr x0, [sp, 64]
cmp x0, 0
bne .L69
ldr x2, [sp, 104]
adrp x0, .LC6
add x1, x0, :lo12:.LC6
mov x0, x2
bl strcmp
cmp w0, 0
bne .L70
ldr x0, [sp, 112]
cmp x0, 0
beq .L70
add x2, sp, 4096
add x2, x2, 2264
adrp x0, .LC7
add x1, x0, :lo12:.LC7
mov x0, x2
ldr q0, [x1]
str q0, [x0]
ldr q0, [x1, 10]
str q0, [x0, 10]
ldr x0, [sp, 72]
ldr w1, [x0, 20]
add x0, sp, 4096
add x0, x0, 2264
bl sendMsg
ldr x0, [sp, 72]
ldr w0, [x0, 16]
add x1, sp, 2264
mov w3, 0
mov x2, 2048
bl recv
str w0, [sp, 48]
ldr w0, [sp, 48]
cmp w0, 0
ble .L92
add x0, sp, 2264
ldrb w0, [x0]
cmp w0, 0
beq .L72
mov x0, 104
bl malloc
str x0, [sp, 88]
ldr x0, [sp, 88]
add x0, x0, 80
ldr x1, [sp, 112]
bl strcpy
ldr x0, [sp, 88]
add x0, x0, 90
add x1, sp, 2264
bl strcpy
ldr x0, [sp, 88]
bl gcreateGroup
ldr x0, [sp, 88]
add x0, x0, 80
bl findGroupIndexByName
str w0, [sp, 52]
ldr w1, [sp, 52]
ldr x0, [sp, 72]
bl joinClientGroup
add x2, sp, 8192
add x2, x2, 216
adrp x0, .LC8
add x1, x0, :lo12:.LC8
mov x0, x2
ldr x2, [x1]
str x2, [x0]
ldr w1, [x1, 8]
str w1, [x0, 8]
ldr x0, [sp, 88]
add x1, x0, 80
add x0, sp, 8192
add x0, x0, 216
bl strcat
add x0, sp, 8192
add x0, x0, 216
bl strlen
mov x1, x0
add x0, sp, 8192
add x0, x0, 216
add x0, x0, x1
mov w1, 10
strh w1, [x0]
ldr x0, [sp, 72]
ldr w1, [x0, 20]
add x0, sp, 8192
add x0, x0, 216
bl sendMsg
add x0, sp, 2264
mov x3, x0
mov x0, 2048
mov x2, x0
mov w1, 0
mov x0, x3
bl memset
b .L92
.L72:
add x2, sp, 8192
add x2, x2, 216
adrp x0, .LC9
add x1, x0, :lo12:.LC9
mov x0, x2
ldp q0, q1, [x1]
stp q0, q1, [x0]
ldr q0, [x1, 27]
str q0, [x0, 27]
ldr x0, [sp, 72]
ldr w1, [x0, 20]
add x0, sp, 8192
add x0, x0, 216
bl sendMsg
b .L92
.L70:
ldr x2, [sp, 104]
adrp x0, .LC10
add x1, x0, :lo12:.LC10
mov x0, x2
bl strcmp
cmp w0, 0
bne .L73
ldr x0, [sp, 112]
cmp x0, 0
beq .L73
add x2, sp, 8192
add x2, x2, 216
adrp x0, .LC11
add x1, x0, :lo12:.LC11
mov x0, x2
ldrh w2, [x1]
strh w2, [x0]
ldrb w1, [x1, 2]
strb w1, [x0, 2]
ldr x0, [sp, 72]
add x1, x0, 24
add x0, sp, 8192
add x0, x0, 216
bl strcat
add x0, sp, 8192
add x0, x0, 216
bl strlen
mov x1, x0
add x0, sp, 8192
add x0, x0, 216
add x0, x0, x1
mov w1, 14880
movk w1, 0x20, lsl 16
str w1, [x0]
ldr x1, [sp, 112]
add x0, sp, 8192
add x0, x0, 216
bl strcat
add x0, sp, 8192
add x0, x0, 216
bl strlen
mov x1, x0
add x0, sp, 8192
add x0, x0, 216
add x0, x0, x1
mov w1, 10
strh w1, [x0]
ldr x0, [sp, 72]
ldr w1, [x0, 20]
add x0, sp, 8192
add x0, x0, 216
bl sendMsgOthers
b .L82
.L73:
ldr x2, [sp, 104]
adrp x0, .LC12
add x1, x0, :lo12:.LC12
mov x0, x2
bl strcmp
cmp w0, 0
bne .L74
ldr x0, [sp, 112]
cmp x0, 0
beq .L74
ldr x0, [sp, 72]
ldr w0, [x0, 20]
bl findGroupIndexByClientId
str w0, [sp, 52]
add x2, sp, 8192
add x2, x2, 216
adrp x0, .LC13
add x1, x0, :lo12:.LC13
mov x0, x2
ldr x2, [x1]
str x2, [x0]
ldr x1, [x1, 7]
str x1, [x0, 7]
ldr x0, [sp, 72]
ldr w1, [x0, 20]
add x0, sp, 8192
add x0, x0, 216
bl sendMsg
add x0, sp, 8192
add x0, x0, 216
mov x3, x0
mov x0, 2048
mov x2, x0
mov w1, 0
mov x0, x3
bl memset
add x2, sp, 8192
add x2, x2, 216
adrp x0, .LC11
add x1, x0, :lo12:.LC11
mov x0, x2
ldrh w2, [x1]
strh w2, [x0]
ldrb w1, [x1, 2]
strb w1, [x0, 2]
ldr x0, [sp, 72]
add x1, x0, 24
add x0, sp, 8192
add x0, x0, 216
bl strcat
add x0, sp, 8192
add x0, x0, 216
bl strlen
mov x1, x0
add x0, sp, 8192
add x0, x0, 216
add x2, x0, x1
adrp x0, .LC14
add x0, x0, :lo12:.LC14
ldp x0, x1, [x0]
stp x0, x1, [x2]
add x0, sp, 8192
add x0, x0, 216
bl strlen
mov x1, x0
add x0, sp, 8192
add x0, x0, 216
add x0, x0, x1
mov w1, 10
strh w1, [x0]
ldr x0, [sp, 72]
ldr w1, [x0, 20]
add x0, sp, 8192
add x0, x0, 216
bl sendMsgOthers
ldr x0, [sp, 72]
ldr w0, [x0, 20]
ldr w1, [sp, 52]
bl removeClientGroup
b .L82
.L74:
ldr x2, [sp, 104]
adrp x0, .LC15
add x1, x0, :lo12:.LC15
mov x0, x2
bl strcmp
cmp w0, 0
bne .L75
ldr x0, [sp, 112]
cmp x0, 0
beq .L75
ldr x0, [sp, 112]
bl findGroupIndexByName
cmn w0, #1
beq .L76
add x2, sp, 8192
add x2, x2, 216
adrp x0, .LC16
add x1, x0, :lo12:.LC16
mov x0, x2
ldr q0, [x1]
str q0, [x0]
ldr q0, [x1, 10]
str q0, [x0, 10]
ldr x0, [sp, 72]
ldr w1, [x0, 20]
add x0, sp, 8192
add x0, x0, 216
bl sendMsg
ldr x0, [sp, 72]
ldr w0, [x0, 16]
add x1, sp, 2264
mov w3, 0
mov x2, 2048
bl recv
str w0, [sp, 60]
ldr x0, [sp, 112]
bl findGroupIndexByName
mov w1, w0
adrp x0, groups
add x0, x0, :lo12:groups
sxtw x1, w1
ldr x0, [x0, x1, lsl 3]
add x0, x0, 90
add x1, sp, 2264
bl strcmp
cmp w0, 0
bne .L77
ldr x0, [sp, 112]
bl findGroupIndexByName
mov w1, w0
ldr x0, [sp, 72]
bl joinClientGroup
add x2, sp, 8192
add x2, x2, 216
adrp x0, .LC8
add x1, x0, :lo12:.LC8
mov x0, x2
ldr x2, [x1]
str x2, [x0]
ldr w1, [x1, 8]
str w1, [x0, 8]
ldr x0, [sp, 112]
bl findGroupIndexByName
mov w1, w0
adrp x0, groups
add x0, x0, :lo12:groups
sxtw x1, w1
ldr x0, [x0, x1, lsl 3]
add x1, x0, 80
add x0, sp, 8192
add x0, x0, 216
bl strcat
add x0, sp, 8192
add x0, x0, 216
bl strlen
mov x1, x0
add x0, sp, 8192
add x0, x0, 216
add x0, x0, x1
mov w1, 10
strh w1, [x0]
ldr x0, [sp, 72]
ldr w1, [x0, 20]
add x0, sp, 8192
add x0, x0, 216
bl sendMsg
add x0, sp, 8192
add x0, x0, 216
mov x3, x0
mov x0, 2048
mov x2, x0
mov w1, 0
mov x0, x3
bl memset
add x2, sp, 8192
add x2, x2, 216
adrp x0, .LC11
add x1, x0, :lo12:.LC11
mov x0, x2
ldrh w2, [x1]
strh w2, [x0]
ldrb w1, [x1, 2]
strb w1, [x0, 2]
ldr x0, [sp, 72]
add x1, x0, 24
add x0, sp, 8192
add x0, x0, 216
bl strcat
add x0, sp, 8192
add x0, x0, 216
bl strlen
mov x1, x0
add x0, sp, 8192
add x0, x0, 216
add x2, x0, x1
adrp x0, .LC17
add x1, x0, :lo12:.LC17
mov x0, x2
ldr x2, [x1]
str x2, [x0]
ldr x1, [x1, 7]
str x1, [x0, 7]
ldr x0, [sp, 72]
ldr w1, [x0, 20]
add x0, sp, 8192
add x0, x0, 216
bl sendMsgOthers
add x0, sp, 2264
mov x3, x0
mov x0, 2048
mov x2, x0
mov w1, 0
mov x0, x3
bl memset
b .L93
.L77:
add x0, sp, 8192
add x0, x0, 216
mov x3, x0
mov x0, 2048
mov x2, x0
mov w1, 0
mov x0, x3
bl memset
add x0, sp, 2264
mov x3, x0
mov x0, 2048
mov x2, x0
mov w1, 0
mov x0, x3
bl memset
add x1, sp, 8192
add x1, x1, 216
adrp x0, .LC18
add x0, x0, :lo12:.LC18
mov x2, x1
mov x3, x0
ldp x0, x1, [x3]
stp x0, x1, [x2]
ldr x0, [x3, 16]
str x0, [x2, 16]
ldr x0, [sp, 72]
ldr w1, [x0, 20]
add x0, sp, 8192
add x0, x0, 216
bl sendMsg
b .L93
.L76:
ldr x0, [sp, 112]
bl findClientIndexByNumber
cmn w0, #1
beq .L79
add x2, sp, 4096
add x2, x2, 2264
adrp x0, .LC7
add x1, x0, :lo12:.LC7
mov x0, x2
ldr q0, [x1]
str q0, [x0]
ldr q0, [x1, 10]
str q0, [x0, 10]
ldr x0, [sp, 72]
ldr w1, [x0, 20]
add x0, sp, 4096
add x0, x0, 2264
bl sendMsg
ldr x0, [sp, 72]
ldr w0, [x0, 16]
add x1, sp, 2264
mov w3, 0
mov x2, 2048
bl recv
str w0, [sp, 56]
ldr w0, [sp, 56]
cmp w0, 0
ble .L93
add x0, sp, 2264
ldrb w0, [x0]
cmp w0, 0
beq .L81
mov x0, 104
bl malloc
str x0, [sp, 96]
ldr x0, [sp, 96]
add x0, x0, 80
ldr x1, [sp, 112]
bl strcpy
ldr x0, [sp, 96]
add x0, x0, 90
add x1, sp, 2264
bl strcpy
ldr x0, [sp, 96]
bl gcreateGroup
ldr x0, [sp, 96]
add x0, x0, 80
bl findGroupIndexByName
str w0, [sp, 52]
ldr w1, [sp, 52]
ldr x0, [sp, 72]
bl joinClientGroup
add x1, sp, 8192
add x1, x1, 216
adrp x0, .LC19
add x0, x0, :lo12:.LC19
mov x2, x1
mov x3, x0
ldp x0, x1, [x3]
stp x0, x1, [x2]
ldr w0, [x3, 16]
str w0, [x2, 16]
ldr x0, [sp, 96]
add x1, x0, 80
add x0, sp, 8192
add x0, x0, 216
bl strcat
add x0, sp, 8192
add x0, x0, 216
bl strlen
mov x1, x0
add x0, sp, 8192
add x0, x0, 216
add x0, x0, x1
mov w1, 10
strh w1, [x0]
ldr x0, [sp, 72]
ldr w1, [x0, 20]
add x0, sp, 8192
add x0, x0, 216
bl sendMsg
add x0, sp, 2264
mov x3, x0
mov x0, 2048
mov x2, x0
mov w1, 0
mov x0, x3
bl memset
b .L93
.L81:
add x2, sp, 8192
add x2, x2, 216
adrp x0, .LC9
add x1, x0, :lo12:.LC9
mov x0, x2
ldp q0, q1, [x1]
stp q0, q1, [x0]
ldr q0, [x1, 27]
str q0, [x0, 27]
ldr x0, [sp, 72]
ldr w1, [x0, 20]
add x0, sp, 8192
add x0, x0, 216
bl sendMsg
b .L93
.L79:
add x2, sp, 8192
add x2, x2, 216
adrp x0, .LC20
add x1, x0, :lo12:.LC20
mov x0, x2
ldp q0, q1, [x1]
stp q0, q1, [x0]
ldr q0, [x1, 27]
str q0, [x0, 27]
ldr x0, [sp, 72]
ldr w1, [x0, 20]
add x0, sp, 8192
add x0, x0, 216
bl sendMsg
b .L93
.L75:
ldr x2, [sp, 104]
adrp x0, .LC21
add x1, x0, :lo12:.LC21
mov x0, x2
bl strcmp
cmp w0, 0
bne .L82
add x2, sp, 8192
add x2, x2, 216
adrp x0, .LC22
add x0, x0, :lo12:.LC22
ldp x0, x1, [x0]
stp x0, x1, [x2]
ldr x0, [sp, 72]
add x1, x0, 24
add x0, sp, 8192
add x0, x0, 216
bl strcat
add x0, sp, 8192
add x0, x0, 216
bl strlen
mov x1, x0
add x0, sp, 8192
add x0, x0, 216
add x0, x0, x1
mov w1, 10
strh w1, [x0]
ldr x0, [sp, 72]
ldr w1, [x0, 20]
add x0, sp, 8192
add x0, x0, 216
bl sendMsg
b .L82
.L66:
ldr w0, [sp, 44]
cmp w0, 0
bne .L82
ldr x0, [sp, 72]
add x1, x0, 24
add x0, sp, 8192
add x0, x0, 216
bl strcpy
add x0, sp, 8192
add x0, x0, 216
bl strlen
mov x1, x0
add x0, sp, 8192
add x0, x0, 216
add x2, x0, x1
adrp x0, .LC23
add x1, x0, :lo12:.LC23
mov x0, x2
ldr x2, [x1]
str x2, [x0]
ldr w1, [x1, 7]
str w1, [x0, 7]
add x0, sp, 8192
add x0, x0, 216
mov x1, x0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
mov w0, 1
str w0, [sp, 32]
b .L82
.L92:
nop
b .L82
.L93:
nop
.L82:
add x0, sp, 216
mov x3, x0
mov x0, 2048
mov x2, x0
mov w1, 0
mov x0, x3
bl memset
b .L83
.L91:
nop
ldr x0, [sp, 72]
ldr w0, [x0, 16]
bl close
str wzr, [sp, 40]
b .L84
.L87:
adrp x0, clients
add x0, x0, :lo12:clients
ldrsw x1, [sp, 40]
ldr x0, [x0, x1, lsl 3]
cmp x0, 0
beq .L85
adrp x0, clients
add x0, x0, :lo12:clients
ldrsw x1, [sp, 40]
ldr x0, [x0, x1, lsl 3]
ldr w1, [x0, 20]
ldr x0, [sp, 72]
ldr w0, [x0, 20]
cmp w1, w0
bne .L85
adrp x0, clients
add x0, x0, :lo12:clients
ldrsw x1, [sp, 40]
str xzr, [x0, x1, lsl 3]
b .L86
.L85:
ldr w0, [sp, 40]
add w0, w0, 1
str w0, [sp, 40]
.L84:
ldr w0, [sp, 40]
cmp w0, 29
ble .L87
.L86:
ldr x0, [sp, 72]
bl free
adrp x0, clientCounter
add x0, x0, :lo12:clientCounter
ldr w0, [x0]
sub w1, w0, #1
adrp x0, clientCounter
add x0, x0, :lo12:clientCounter
str w1, [x0]
mov x0, 0
mov x1, x0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 10456]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L89
bl __stack_chk_fail
.L89:
mov x0, x1
ldp x29, x30, [sp]
mov x12, 10464
add sp, sp, x12
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE15:
.size handle_client, .-handle_client
.section .rodata
.align 3
.LC24:
.string "ERROR: Socket binding failed"
.align 3
.LC25:
.string "ERROR: Socket listening failed"
.align 3
.LC26:
.string "Whatsapp Server Online"
.text
.align 2
.global main
.type main, %function
main:
.LFB16:
.cfi_startproc
sub sp, sp, #2160
.cfi_def_cfa_offset 2160
stp x29, x30, [sp]
.cfi_offset 29, -2160
.cfi_offset 30, -2152
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, 2152]
mov x1, 0
str wzr, [sp, 48]
str wzr, [sp, 52]
mov w2, 0
mov w1, 1
mov w0, 2
bl socket
str w0, [sp, 48]
mov w0, 2
strh w0, [sp, 72]
str wzr, [sp, 76]
mov w0, 3205
bl htons
and w0, w0, 65535
strh w0, [sp, 74]
add x0, sp, 72
mov w2, 16
mov x1, x0
ldr w0, [sp, 48]
bl bind
cmp w0, 0
bge .L95
adrp x0, .LC24
add x0, x0, :lo12:.LC24
bl perror
mov w0, 1
b .L99
.L95:
mov w1, 10
ldr w0, [sp, 48]
bl listen
cmp w0, 0
bge .L97
adrp x0, .LC25
add x0, x0, :lo12:.LC25
bl perror
mov w0, 1
b .L99
.L97:
adrp x0, .LC26
add x0, x0, :lo12:.LC26
bl puts
.L98:
mov w0, 16
str w0, [sp, 44]
add x1, sp, 44
add x0, sp, 88
mov x2, x1
mov x1, x0
ldr w0, [sp, 48]
bl accept
str w0, [sp, 52]
mov x0, 56
bl malloc
str x0, [sp, 64]
ldr x2, [sp, 64]
ldp x0, x1, [sp, 88]
stp x0, x1, [x2]
ldr x0, [sp, 64]
ldr w1, [sp, 52]
str w1, [x0, 16]
adrp x0, uid
add x0, x0, :lo12:uid
ldr w0, [x0]
add w2, w0, 1
adrp x1, uid
add x1, x1, :lo12:uid
str w2, [x1]
ldr x1, [sp, 64]
str w0, [x1, 20]
ldr x0, [sp, 64]
bl insertClientServer
add x4, sp, 56
ldr x3, [sp, 64]
adrp x0, handle_client
add x2, x0, :lo12:handle_client
mov x1, 0
mov x0, x4
bl pthread_create
mov w0, 1
bl sleep
b .L98
.L99:
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 2152]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L100
bl __stack_chk_fail
.L100:
mov w0, w1
ldp x29, x30, [sp]
add sp, sp, 2160
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE16:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global TEMPLATE_HEADER
.section .rodata
.align 3
.type TEMPLATE_HEADER, %object
.size TEMPLATE_HEADER, 3274
TEMPLATE_HEADER:
.ascii "<!DOCTYPE html><html><head><title>ESP8266 Air Quality IoT De"
.ascii "vice</title><meta name=\"viewport\" content=\"width=device-w"
.ascii "idth, initial-scale=1, user-scalable=no\"><link rel=\"styles"
.ascii "heet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3."
.ascii "5/css/bootstrap.min.css\" integrity=\"sha512-dTfge/zgoMYpP7Q"
.ascii "bHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHu"
.ascii "beNikyKGVyQ==\" crossorigin=\"anonymous\"><link rel=\"styles"
.ascii "heet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3."
.ascii "5/css/bootstrap-theme.min.css\" integrity=\"sha384-aUGj/X2zp"
.ascii "5rLCbBxumKTCw2Z50WgIr1vs/PFN4praOTvYXWlVyh2UtNUU0KAUhAX\" cr"
.ascii "ossorigin=\"anonymous\"><script src=\"//code.jquery.com/jque"
.ascii "ry-1.11.3.min.js\"></script><script src=\"//code.jquery.com/"
.ascii "jquery-migrate-1.2.1.min.js\"></script><script src=\"triangl"
.ascii "ify.min.js\"></script></head><body id=\"homepage\"><div clas"
.ascii "s=\"container\"> <h1><center><b>ESP8266 DSM501a Air Quality"
.ascii "</b></center></h1> <div class=\"row\"> <div class=\"col-"
.ascii "md-4\"> <div class=\"panel panel-primary\"> <div class"
.ascii "=\"panel-heading\"> <h3 class=\"panel-title\"><b>ESP826"
.ascii "6</b></h3> </div> <table class=\"table table-striped\""
.ascii "><thead><tr><th></th><th>Parameter</th><th>Value</th></tr></"
.ascii "thead><tbody> <tr><td><i class=\"glyphicon glyphicon-link"
.ascii "\"></i></td><td><b> Firmware Version: </b></td><td>%s</td></"
.ascii "tr><tr><td><i class=\"glyphicon glyphicon-link\"></i></td><t"
.ascii "d><b> ESP8266 IP: </b></td><td>%s</td></tr><tr><td><i class="
.ascii "\"glyphicon glyphicon-cloud\"></i></td><td><b> ESP8266 GW: <"
.ascii "/b></td><td>%s</td></tr><tr><td><i class=\"glyphicon glyphic"
.ascii "on-grain\"></i></td><td><b> Wifi SSID: </b></td><td>%s</td><"
.ascii "/tr><tr><td><i class=\"glyphicon glyphicon-signal\"></i></td"
.ascii "><td><b> Wifi RSSI: </b></td><td>%s</td></tr><tr><td><i clas"
.ascii "s=\"glyphicon glyphicon-wrench\"></i></td><td><b> Log Server"
.ascii ": </b></td><td>%s</td></tr><tr><td><i class=\"glyphicon glyp"
.ascii "hicon-flash\"></i></td><td><b> ESP Heap: </b></td><td>%s</td"
.ascii "></tr></tbody></table></td></tr></div></div><div class=\"col"
.ascii "-md-4\"><div class=\"panel panel-primary\"><div class=\"pane"
.ascii "l-heading\"><h3 class="
.ascii "\"panel-title\"><b>DSM501a Data</b></h3></div><table class=\""
.ascii "table table-striped\"><thead><tr><th></th><th>Parameter</th>"
.ascii "<th>Value</th></tr></thead><tbody><tr><td><i class=\"glyphic"
.ascii "on glyphicon-scale\"></i></td><td><b>Air Quality: </b></td><"
.ascii "td>%s</td></tr><tr><td><i class=\"glyphicon glyphicon-scale\""
.ascii "></i></td><td><b>Concentration PM1.0: </b></td><td>%s ppm</t"
.ascii "d></tr><tr><td><i class=\"glyphicon glyphicon-scale\"></i></"
.ascii "td><td><b>Concentration PM2.5: </b></td><td>%s ppm</td></tr>"
.ascii "<tr><td><i class=\"glyphicon glyphicon-scale\"></i></td><td>"
.ascii "<b>Particles PM1.0: </b></td><td>%s ug/m3</td></tr><tr><td><"
.ascii "i class=\"glyphicon glyphicon-scale\"></i></td><td><b>Partic"
.ascii "les PM2.5: </b></td><td>%s ug/m3</td></tr><tr><td><i class=\""
.ascii "glyphicon glyphicon-flash\"></i></td><td><b>Samples: </b></t"
.ascii "d><td>%s</td></tr></tbody></table></div></div><div class=\"c"
.ascii "ol-md-4\"><div class=\"panel panel-primary\"><div class=\"pa"
.ascii "nel-heading\"><h3 class=\"panel-title\"><b>BMP180</b></h3></"
.ascii "div><table class=\"table table-striped\"><thead><tr><th></th"
.ascii "><th>Parameter</th><"
.string "th>Value</th></tr></thead><tbody><tr><td><i class=\"glyphicon glyphicon-scale\"></i></td><td><b>Temp: </b></td><td>%s C</td></tr><tr><td><i class=\"glyphicon glyphicon-scale\"></i></td><td><b>Press:</b></td><td>%s hPa</td></tr></tr></tbody></table></div></div>"
.global TEMPLATE_FOOTER
.align 3
.type TEMPLATE_FOOTER, %object
.size TEMPLATE_FOOTER, 738
TEMPLATE_FOOTER:
.ascii "</div></div><script> function addTriangleTo(target) { "
.ascii " var dimensions = target.getClientRects()[0]; var pat"
.ascii "tern = Trianglify({ width: 1920, "
.ascii " height: 1080 }); target.style['background-image"
.ascii "'] = 'url(' + pattern.png() + ')'; target.style['backg"
.ascii "round-size'] = 'cover'; target.style['-webkit-backgrou"
.ascii "nd-size'] = 'cover'; target.style['-moz-background-siz"
.ascii "e'] = 'cover'; target.style['-o-background-size'] = 'c"
.ascii "o"
.string "ver'; } var resizeTimer; $(window).on('resize', function(e) { clearTimeout(resizeTimer); resizeTimer = setTimeout(function() { addTriangleTo(homepage); }, 400); }); addTriangleTo(homepage); </script></body></html>"
``` |
### 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, 52
bl ft_putchar
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
.global HOUGH_CU_COUNT
.section .rodata
.align 2
.type HOUGH_CU_COUNT, %object
.size HOUGH_CU_COUNT, 4
HOUGH_CU_COUNT:
.word 32
.global HOUGH_MAX_LINES_PER_CU
.align 2
.type HOUGH_MAX_LINES_PER_CU, %object
.size HOUGH_MAX_LINES_PER_CU, 4
HOUGH_MAX_LINES_PER_CU:
.word 32
.global HOUGH_MAX_BLOCK_SIZE
.align 2
.type HOUGH_MAX_BLOCK_SIZE, %object
.size HOUGH_MAX_BLOCK_SIZE, 4
HOUGH_MAX_BLOCK_SIZE:
.word 40
.global HOUGH_ACCUM_BUFFER_SIZE
.align 2
.type HOUGH_ACCUM_BUFFER_SIZE, %object
.size HOUGH_ACCUM_BUFFER_SIZE, 4
HOUGH_ACCUM_BUFFER_SIZE:
.word 1604
.global HOUGH_PIXEL_BUFFER_SIZE
.align 2
.type HOUGH_PIXEL_BUFFER_SIZE, %object
.size HOUGH_PIXEL_BUFFER_SIZE, 4
HOUGH_PIXEL_BUFFER_SIZE:
.word 1280
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global strlcat
.type strlcat, %function
strlcat:
.LFB6:
.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, 72]
str x1, [sp, 64]
str x2, [sp, 56]
ldr x19, [sp, 72]
ldr x21, [sp, 64]
ldr x20, [sp, 56]
b .L2
.L4:
add x19, x19, 1
.L2:
mov x0, x20
sub x20, x0, #1
cmp x0, 0
beq .L3
ldrb w0, [x19]
cmp w0, 0
bne .L4
.L3:
ldr x0, [sp, 72]
sub x0, x19, x0
str x0, [sp, 88]
ldr x1, [sp, 56]
ldr x0, [sp, 88]
sub x20, x1, x0
cmp x20, 0
bne .L7
mov x0, x21
bl strlen
mov x1, x0
ldr x0, [sp, 88]
add x0, x1, x0
b .L6
.L9:
cmp x20, 1
beq .L8
mov x0, x19
add x19, x0, 1
ldrb w1, [x21]
strb w1, [x0]
sub x20, x20, #1
.L8:
add x21, x21, 1
.L7:
ldrb w0, [x21]
cmp w0, 0
bne .L9
strb wzr, [x19]
ldr x0, [sp, 64]
sub x0, x21, x0
mov x1, x0
ldr x0, [sp, 88]
add x0, x1, x0
.L6:
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
.LFE6:
.size strlcat, .-strlcat
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "%s"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
sub sp, sp, #544
.cfi_def_cfa_offset 544
stp x29, x30, [sp]
.cfi_offset 29, -544
.cfi_offset 30, -536
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 536]
mov x1, 0
adrp x0, :got:stdin
ldr x0, [x0, #:got_lo12:stdin]
ldr x1, [x0]
add x0, sp, 24
mov x2, x1
mov w1, 512
bl fgets
add x0, sp, 24
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, 536]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L3
bl __stack_chk_fail
.L3:
mov w0, w1
ldp x29, x30, [sp]
add sp, sp, 544
.cfi_restore 29
.cfi_restore 30
.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 "Wert: "
.align 3
.LC1:
.string "%lf"
.text
.align 2
.global liefereEingabewert
.type liefereEingabewert, %function
liefereEingabewert:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -144]!
.cfi_def_cfa_offset 144
.cfi_offset 29, -144
.cfi_offset 30, -136
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 136]
mov x1, 0
.L2:
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
adrp x0, :got:stdin
ldr x0, [x0, #:got_lo12:stdin]
ldr x1, [x0]
add x0, sp, 32
mov x2, x1
mov w1, 100
bl fgets
add x0, sp, 24
add x3, sp, 32
mov x2, x0
adrp x0, .LC1
add x1, x0, :lo12:.LC1
mov x0, x3
bl __isoc99_sscanf
str w0, [sp, 20]
ldr w0, [sp, 20]
cmp w0, 1
bne .L2
ldr d0, [sp, 24]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 136]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L4
bl __stack_chk_fail
.L4:
ldp x29, x30, [sp], 144
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size liefereEingabewert, .-liefereEingabewert
.section .rodata
.align 3
.LC2:
.string "UE08 - Spannungsteiler\n"
.align 3
.LC3:
.string "R1: "
.align 3
.LC4:
.string "R2: "
.align 3
.LC5:
.string "Uein "
.align 3
.LC6:
.string "Uaus = %.2lf\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl puts
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
bl liefereEingabewert
str d0, [sp, 16]
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
bl liefereEingabewert
str d0, [sp, 24]
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
bl liefereEingabewert
str d0, [sp, 32]
ldr d1, [sp, 32]
ldr d0, [sp, 24]
fmul d1, d1, d0
ldr d2, [sp, 16]
ldr d0, [sp, 24]
fadd d0, d2, d0
fdiv d0, d1, d0
str d0, [sp, 40]
ldr d0, [sp, 40]
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl printf
mov w0, 0
ldp x29, x30, [sp], 48
.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 "/SHM_USER1"
.align 3
.LC1:
.string "/SHM_USER2"
.align 3
.LC2:
.string "open"
.align 3
.LC3:
.string "ftruncate"
.align 3
.LC4:
.string "mmap"
.align 3
.LC5:
.string "USER 2: "
.align 3
.LC6:
.string "USER 1 (enter to get the message):"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.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
mov w2, 384
mov w1, 66
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl shm_open
str w0, [sp, 40]
mov w2, 384
mov w1, 66
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl shm_open
str w0, [sp, 44]
ldr w0, [sp, 40]
cmn w0, #1
beq .L2
ldr w0, [sp, 44]
cmn w0, #1
bne .L3
.L2:
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl perror
mov w0, 10
b .L8
.L3:
mov x1, 32
ldr w0, [sp, 44]
bl ftruncate
str w0, [sp, 48]
ldr w0, [sp, 48]
cmn w0, #1
bne .L5
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl perror
mov w0, 20
b .L8
.L5:
mov x5, 0
ldr w4, [sp, 40]
mov w3, 1
mov w2, 2
mov x1, 32
mov x0, 0
bl mmap
str x0, [sp, 56]
mov x5, 0
ldr w4, [sp, 44]
mov w3, 1
mov w2, 2
mov x1, 32
mov x0, 0
bl mmap
str x0, [sp, 64]
ldr x0, [sp, 56]
cmn x0, #1
beq .L6
ldr x0, [sp, 64]
cmn x0, #1
bne .L7
.L6:
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl perror
mov w0, 30
b .L8
.L7:
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
adrp x0, :got:stdin
ldr x0, [x0, #:got_lo12:stdin]
ldr x1, [x0]
add x0, sp, 72
mov x2, x1
mov w1, 32
bl fgets
add x0, sp, 72
bl strlen
add w0, w0, 1
str w0, [sp, 52]
ldrsw x1, [sp, 52]
add x0, sp, 72
mov x2, x1
mov x1, x0
ldr x0, [sp, 64]
bl memcpy
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl printf
bl getchar
ldr x1, [sp, 56]
add x0, sp, 104
ldp q0, q1, [x1]
stp q0, q1, [x0]
add x0, sp, 104
bl puts
b .L7
.L8:
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 .L9
bl __stack_chk_fail
.L9:
mov w0, w1
ldp x29, x30, [sp], 144
.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 __ArgParser__
.type __ArgParser__, %function
__ArgParser__:
.LFB6:
.cfi_startproc
sub sp, sp, #64
.cfi_def_cfa_offset 64
str x0, [sp, 24]
str x1, [sp, 16]
str x2, [sp, 8]
str wzr, [sp, 44]
str wzr, [sp, 48]
str wzr, [sp, 52]
b .L2
.L19:
ldr w0, [sp, 48]
cmp w0, 0
bne .L3
ldr w0, [sp, 60]
cmp w0, 34
bne .L4
mov w0, 1
str w0, [sp, 48]
b .L5
.L4:
ldr w0, [sp, 60]
cmp w0, 32
beq .L5
ldr w0, [sp, 60]
cmp w0, 9
beq .L5
ldr x0, [sp, 24]
sub x0, x0, #1
str x0, [sp, 24]
mov w0, 2
str w0, [sp, 48]
.L5:
ldr w0, [sp, 48]
cmp w0, 0
beq .L2
str wzr, [sp, 52]
ldr w0, [sp, 44]
add w1, w0, 1
str w1, [sp, 44]
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 8]
add x0, x1, x0
ldr x1, [sp, 16]
str x1, [x0]
b .L2
.L3:
ldr w0, [sp, 60]
cmp w0, 92
bne .L6
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
b .L2
.L6:
ldr w0, [sp, 60]
cmp w0, 34
bne .L7
ldr w0, [sp, 52]
lsr w0, w0, 1
str w0, [sp, 56]
b .L8
.L9:
ldr x0, [sp, 16]
add x1, x0, 1
str x1, [sp, 16]
mov w1, 92
strb w1, [x0]
.L8:
ldr w0, [sp, 56]
sub w1, w0, #1
str w1, [sp, 56]
cmp w0, 0
bne .L9
ldr w0, [sp, 52]
and w0, w0, 1
cmp w0, 0
beq .L10
ldr x0, [sp, 16]
add x1, x0, 1
str x1, [sp, 16]
mov w1, 34
strb w1, [x0]
b .L11
.L10:
ldr w0, [sp, 48]
cmp w0, 1
bne .L12
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 34
bne .L13
ldr x1, [sp, 24]
add x0, x1, 1
str x0, [sp, 24]
ldr x0, [sp, 16]
add x2, x0, 1
str x2, [sp, 16]
ldrb w1, [x1]
strb w1, [x0]
b .L11
.L13:
mov w0, 2
str w0, [sp, 48]
b .L11
.L12:
mov w0, 1
str w0, [sp, 48]
.L11:
str wzr, [sp, 52]
b .L2
.L7:
ldr w0, [sp, 52]
cmp w0, 0
beq .L14
b .L15
.L16:
ldr x0, [sp, 16]
add x1, x0, 1
str x1, [sp, 16]
mov w1, 92
strb w1, [x0]
.L15:
ldr w0, [sp, 52]
sub w1, w0, #1
str w1, [sp, 52]
cmp w0, 0
bne .L16
str wzr, [sp, 52]
ldr x0, [sp, 24]
sub x0, x0, #1
str x0, [sp, 24]
b .L2
.L14:
ldr w0, [sp, 48]
cmp w0, 2
bne .L17
ldr w0, [sp, 60]
cmp w0, 32
beq .L18
ldr w0, [sp, 60]
cmp w0, 9
bne .L17
.L18:
ldr x0, [sp, 16]
add x1, x0, 1
str x1, [sp, 16]
strb wzr, [x0]
str wzr, [sp, 48]
b .L2
.L17:
ldr x0, [sp, 16]
add x1, x0, 1
str x1, [sp, 16]
ldr w1, [sp, 60]
and w1, w1, 255
strb w1, [x0]
.L2:
ldr x0, [sp, 24]
add x1, x0, 1
str x1, [sp, 24]
ldrb w0, [x0]
str w0, [sp, 60]
ldr w0, [sp, 60]
cmp w0, 0
bne .L19
ldr w0, [sp, 48]
cmp w0, 0
beq .L20
b .L21
.L22:
ldr x0, [sp, 16]
add x1, x0, 1
str x1, [sp, 16]
mov w1, 92
strb w1, [x0]
.L21:
ldr w0, [sp, 52]
sub w1, w0, #1
str w1, [sp, 52]
cmp w0, 0
bne .L22
ldr x0, [sp, 16]
strb wzr, [x0]
.L20:
ldrsw x0, [sp, 44]
lsl x0, x0, 3
ldr x1, [sp, 8]
add x0, x1, x0
str xzr, [x0]
ldr w0, [sp, 44]
add sp, sp, 64
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size __ArgParser__, .-__ArgParser__
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global long2vector
.type long2vector, %function
long2vector:
.LFB1:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str xzr, [sp, 16]
ldr x0, [sp, 8]
str x0, [sp, 24]
ldr d0, [sp, 24]
ldr d1, [sp, 16]
ins v0.d[1], v1.d[0]
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size long2vector, .-long2vector
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "HELLWORLD!"
.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
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
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
.section .rodata
.align 3
.type codebook0, %object
.size codebook0, 16
codebook0:
.ascii "\002\n\b\016\007\f\013\016\001\005\003\007\004\t\007\r"
.align 3
.type codebook1, %object
.size codebook1, 8
codebook1:
.ascii "\001\004\002\006\003\007\005\007"
.align 3
.type codebook2, %object
.size codebook2, 256
codebook2:
.ascii "\001\005\007\025\005\b\t\025\n\t\f\024\024\020\024\024\004\b"
.ascii "\t\024\006\b\t\024\013\013\r\024\024\017\021\024\t\013\016\024"
.ascii "\b\n\017\024\013\r\017\024\024\024\024\024\024\024\024\024\r"
.ascii "\024\024\024\022\022\024\024\024\024\024\024\003\006\b\024\006"
.ascii "\007\t\024\n\t\f\024\024\024\024\024\005\007\t\024\006\006\t"
.ascii "\024\n\t\f\024\024\024\024\024\b\n\r\024\b\t\f\024\013\n\f\024"
.ascii "\024\024\024\024\022\024\024\024\017\021\022\024\022\021\022"
.ascii "\024\024\024\024\024\007\n\f\024\b\t\013\024\016\r\016\024\024"
.ascii "\024\024\024\006\t\f\024\007\b\013\024\f\013\r\024\024\024\024"
.ascii "\024\t\013\017\024\b\n\016\024\f\013\016\024\024\024\024\024"
.ascii "\024\024\024\024\024\024\024\024\024\024\024\024\024\024\024"
.ascii "\024\013\020\022\024\017\017\021\024\024\021\024\024\024\024"
.ascii "\024\024\t\016\020\024\f\f\017\024\021\017\022\024\024\024\024"
.ascii "\024\020\023\022\024\017\020\024\024\021\021\024\024\024\024"
.ascii "\024\024\024\024\024\024\024\024\024\024\024\024\024\024\024"
.ascii "\024\024\024"
.align 3
.type codebook3, %object
.size codebook3, 64
codebook3:
.ascii "\002\003\007\r\004\004\007\017\b\006\t\021\025\020\017\025\002"
.ascii "\005\007\013\005\005\007\016\t\007\n\020\021\017\020\025\004"
.ascii "\007\n\021\007\007\t\017\013\t\013\020\025\022\017\025\022\025"
.ascii "\025\025\017\021\021\023\025\023\022\024\025\025\025\024"
.align 3
.type codebook4, %object
.size codebook4, 128
codebook4:
.ascii "\005\005\005\005\006\005\006\005\006\005\006\005\006\005\006"
.ascii "\005\006\005\006\005\006\005\006\005\007\005\007\005\007\005"
.ascii "\007\005\b\006\b\006\b\006\t\006\t\006\n\006\n\006\013\006\013"
.ascii "\007\013\007\f\007\f\007\f\007\f\007\f\007\f\007\f\007\f\b\r"
.ascii "\b\f\b\f\b\r\b\r\t\r\t\r\t\r\t\f\n\f\n\r\n\016\013\016\f\016"
.ascii "\r\016\r\016\016\017\020\017\017\017\016\017\021\025\026\026"
.ascii "\025\026\026\026\026\026\026\025\025\025\025\025\025\025\025"
.ascii "\025\025"
.align 3
.type codebook5, %object
.size codebook5, 32
codebook5:
.ascii "\002\005\005\004\005\004\005\004\005\004\006\005\006\005\006"
.ascii "\005\006\005\007\005\007\006\b\006\b\006\b\006\t\006\t\006"
.align 3
.type codebook6, %object
.size codebook6, 96
codebook6:
.ascii "\b\005\b\004\t\004\t\004\t\004\t\004\t\004\t\004\t\004\t\004"
.ascii "\t\004\b\004\b\004\t\005\t\005\t\005\t\005\t\006\n\006\n\007"
.ascii "\n\b\013\t\013\013\f\r\f\016\r\017\r\017\016\020\016\021\017"
.ascii "\021\017\017\020\020\017\020\020\020\017\022\020\017\021\021"
.ascii "\023\023\023\023\023\023\023\023\023\023\023\023\023\023\023"
.ascii "\023\023\023\023\023\023\023"
.align 3
.type codebook7, %object
.size codebook7, 32
codebook7:
.ascii "\001\005\005\005\005\005\005\005\006\005\006\005\006\005\006"
.ascii "\005\006\006\007\007\007\007\b\007\b\b\t\b\n\t\n\t"
.align 3
.type codebook8, %object
.size codebook8, 96
codebook8:
.ascii "\004\003\004\003\004\004\005\004\005\004\005\005\006\005\006"
.ascii "\005\007\005\007\006\007\006\b\007\b\007\b\007\t\b\t\t\t\t\n"
.ascii "\n\n\013\t\f\t\f\t\017\n\016\t\r\n\r\n\f\n\f\n\r\n\f\013\r\013"
.ascii "\016\f\r\r\016\016\r\016\017\016\020\r\r\016\020\020\020\020"
.ascii "\020\020\020\020\020\020\020\020\020\020\020\020\020\020\020"
.ascii "\017\017"
.align 3
.type codebook9, %object
.size codebook9, 17
codebook9:
.ascii "\004\005\004\005\003\005\003\005\003\005\004\004\004\004\005"
.ascii "\005\005"
.align 3
.type codebook10, %object
.size codebook10, 32
codebook10:
.ascii "\003\003\004\003\004\004\004\004\005\005\005\005\005\006\005"
.ascii "\007\005\b\006\b\006\t\007\n\007\n\b\n\b\013\t\013"
.align 3
.type codebook11, %object
.size codebook11, 78
codebook11:
.ascii "\003\007\003\b\003\n\003\b\003\t\003\b\004\t\004\t\005\t\006"
.ascii "\n\006\t\007\013\007\f\t\r\n\r\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f"
.ascii "\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f"
.ascii "\f\f\f"
.align 3
.type codebook12, %object
.size codebook12, 17
codebook12:
.ascii "\004\005\004\005\004\005\004\005\003\005\003\005\003\005\004"
.ascii "\005\004"
.align 3
.type codebook13, %object
.size codebook13, 32
codebook13:
.ascii "\004\002\004\002\005\003\005\004\006\006\006\007\007\b\007\b"
.ascii "\007\b\007\t\b\t\b\t\b\n\b\013\t\f\t\f"
.align 3
.type codebook14, %object
.size codebook14, 78
codebook14:
.ascii "\002\005\002\006\003\006\004\007\004\007\005\t\005\013\006\013"
.ascii "\006\013\007\013\006\013\006\013\t\013\b\013\013\013\013\013"
.ascii "\013\013\013\013\013\013\013\013\013\013\013\013\013\013\013"
.ascii "\013\013\013\013\013\013\013\013\013\013\013\013\013\013\013"
.ascii "\013\013\013\013\013\013\013\013\013\013\n\n\n\n\n\n"
.align 3
.type codebook15, %object
.size codebook15, 100
codebook15:
.ascii "\005\006\013\013\013\013\n\n\f\013\005\002\013\005\006\006\007"
.ascii "\t\013\r\r\n\007\013\006\007\b\t\n\f\013\005\013\006\b\007\t"
.ascii "\013\016\017\013\006\006\b\004\005\007\b\n\r\n\005\007\007\005"
.ascii "\005\006\b\n\013\n\007\007\b\006\005\005\007\t\t\013\b\b\013"
.ascii "\b\007\006\006\007\t\f\013\n\r\t\t\007\007\007\t\013\r\f\017"
.ascii "\f\013\t\b\b\b"
.align 3
.type codebook16, %object
.size codebook16, 1641
codebook16:
.byte 2
.byte 4
.byte 4
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 5
.byte 6
.byte 6
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 5
.byte 6
.byte 6
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 5
.byte 7
.byte 7
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 7
.byte 8
.byte 8
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 6
.byte 7
.byte 8
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 5
.byte 7
.byte 7
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 6
.byte 8
.byte 7
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 7
.byte 8
.byte 8
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 5
.byte 7
.byte 7
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 7
.byte 8
.byte 8
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 7
.byte 8
.byte 8
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 7
.byte 8
.byte 8
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 8
.byte 8
.byte 9
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 8
.byte 9
.byte 9
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 6
.byte 8
.byte 8
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 7
.byte 9
.byte 8
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 8
.byte 9
.byte 9
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 5
.byte 7
.byte 7
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 7
.byte 8
.byte 8
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 7
.byte 8
.byte 8
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 6
.byte 8
.byte 8
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 8
.byte 9
.byte 9
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 7
.byte 8
.byte 9
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 6
.byte 8
.byte 8
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 8
.byte 9
.byte 9
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 8
.byte 9
.byte 8
.align 3
.type codebook17, %object
.size codebook17, 443
codebook17:
.string "\002\005\005"
.string ""
.string ""
.string "\005\005"
.string ""
.string ""
.string "\005\005"
.string ""
.string ""
.string "\007\b"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\005\006\006"
.string ""
.string ""
.string "\007\007"
.string ""
.string ""
.string "\007\007"
.string ""
.string ""
.string "\n\n"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\005\006\006"
.string ""
.string ""
.string "\007\007"
.string ""
.string ""
.string "\007\007"
.string ""
.string ""
.string "\n\n"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\005\007\007"
.string ""
.string ""
.string "\007\007"
.string ""
.string ""
.string "\007\007"
.string ""
.string ""
.string "\t\t"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\005\007\007"
.string ""
.string ""
.string "\007\007"
.string ""
.string ""
.string "\007\007"
.string ""
.string ""
.string "\t\t"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\005\007\007"
.string ""
.string ""
.string "\007\007"
.string ""
.string ""
.string "\007\007"
.string ""
.string ""
.string "\t\t"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\005\007\007"
.string ""
.string ""
.string "\007\007"
.string ""
.string ""
.string "\007\007"
.string ""
.string ""
.string "\t\t"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\b\n\n"
.string ""
.string ""
.string "\t\t"
.string ""
.string ""
.string "\t\t"
.string ""
.string ""
.string "\n\n"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\b\n\n"
.string ""
.string ""
.string "\t\t"
.string ""
.string ""
.string "\t\t"
.string ""
.string ""
.ascii "\n\n"
.align 3
.type codebook18, %object
.size codebook18, 105
codebook18:
.string "\002\004\003\006\006"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\004\004\004\006\006"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\004\004\004\006\006"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\006\006\006\t\t"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.ascii "\006\006\007\t\t"
.align 3
.type codebook19, %object
.size codebook19, 68
codebook19:
.string "\002\003\003\006\006"
.string ""
.string ""
.string ""
.string ""
.string "\004\004\006\006"
.string ""
.string ""
.string ""
.string ""
.string "\004\004\006\006"
.string ""
.string ""
.string ""
.string ""
.string "\005\005\006\006"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\006\006"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\007\b"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\007\007"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.ascii "\t\t"
.align 3
.type codebook20, %object
.size codebook20, 81
codebook20:
.string "\001\003\004\006\006\007\007\t\t"
.string "\005\005\007\007\007\b\t\t"
.string "\005\005\007\007\b\b\t\t"
.string "\007\007\b\b\b\b\n\n"
.string ""
.string ""
.string "\b\b\b\b\n\n"
.string ""
.string ""
.string "\t\t\t\t\n\n"
.string ""
.string ""
.string "\t\t\t\t\n\n"
.string ""
.string ""
.string "\n\n\n\n\013\013"
.string ""
.string ""
.string ""
.string ""
.ascii "\n\n\013\013"
.align 3
.type codebook21, %object
.size codebook21, 289
codebook21:
.string "\002\003\003\006\006\007\007\b\b\b\b\t\t\n\n\013\n"
.string "\005\005\007\007\b\b\t\t\t\t\n\n\n\n\013\013"
.string "\005\005\007\007\b\b\t\t\t\t\n\n\n\n\013\013"
.string "\006\006\007\007\b\b\t\t\t\t\n\n\013\013\013\013"
.string ""
.string ""
.string "\007\007\b\b\t\t\t\t\n\n\013\013\013\f"
.string ""
.string ""
.string "\b\b\b\b\t\t\t\t\n\n\013\013\f\f"
.string ""
.string ""
.string "\b\b\b\b\t\t\t\t\n\n\013\013\f\f"
.string ""
.string ""
.string "\t\t\t\t\n\n\n\n\013\n\013\013\f\f"
.string ""
.string ""
.string ""
.string ""
.string "\t\t\n\n\n\n\013\013\013\013\f\f"
.string ""
.string ""
.string ""
.string ""
.string "\t\b\t\t\n\n\013\013\f\f\f\f"
.string ""
.string ""
.string ""
.string ""
.string "\b\b\t\t\n\n\013\013\f\013\f\f"
.string ""
.string ""
.string ""
.string ""
.string "\t\n\n\n\013\013\013\013\f\f\r\r"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\n\n\n\n\013\013\f\f\r\r"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\013\013\013\013\f\f\f\f\r\r"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\013\013\013\013\f\f\f\f\r\r"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string "\013\013\f\f\f\f\r\r\r\r"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.ascii "\f\f\f\f\r\r\r\r"
.align 3
.type codebook22, %object
.size codebook22, 81
codebook22:
.ascii "\001\004\004\007\006\006\007\006\006\004\007\007\n\t\t\013\t"
.ascii "\t\004\007\007\n\t\t\013\t\t\007\n\n\013\013\n\f\013\013\006"
.ascii "\t\t\013\n\n\013\n\n\006\t\t\013\n\n\013\n\n\007\013\013\013"
.ascii "\013\013\f\013\013\006\t\t\013\n\n\013\n\n\006\t\t\013\n\n\013"
.ascii "\n\n"
.align 3
.type codebook23, %object
.size codebook23, 121
codebook23:
.ascii "\002\004\004\006\006\007\007\007\007\b\b\n\005\005\006\006\007"
.ascii "\007\b\b\b\b\n\005\005\006\006\007\007\b\b\b\b\n\006\006\007"
.ascii "\007\b\b\b\b\b\b\n\n\n\007\007\b\007\b\b\b\b\n\n\n\b\b\b\b\b"
.ascii "\b\b\b\n\n\n\007\b\b\b\b\b\b\b\n\n\n\b\b\b\b\b\b\b\b\n\n\n\n"
.ascii "\n\b\b\b\b\b\b\n\n\n\n\n\t\t\b\b\t\b\n\n\n\n\n\b\b\b\b\b\b"
.align 3
.type codebook24, %object
.size codebook24, 169
codebook24:
.string "\001\004\004\006\006\007\007\b\b\t\t\n\n\006\005\005\007\007\b\b\b\b\t\t\n\n\007\005\005\007\007\b\b\b\b\t\t\013\n"
.string "\b\b\b\b\t\t\t\t\n\n\013\013"
.string "\b\b\b\b\t\t\t\t\n\n\013\013"
.string "\f\f\t\t\n\n\n\n\013\013\013\f"
.string "\r\r\t\t\n\n\n\n\013\013\f\f"
.string ""
.string ""
.string "\n\n\n\n\013\013\f\f\f\f"
.string ""
.string ""
.string "\n\n\n\n\013\013\f\f\f\f"
.string ""
.string ""
.string "\016\016\013\013\013\013\f\f\r\r"
.string ""
.string ""
.string "\016\016\013\013\013\013\f\f\r\r"
.string ""
.string ""
.string ""
.string ""
.string "\f\f\f\f\r\r\016\r"
.string ""
.string ""
.string ""
.string ""
.ascii "\r\r\f\f\r\f\016\r"
.align 3
.type codebook25, %object
.size codebook25, 25
codebook25:
.ascii "\002\004\004\005\005\006\005\005\005\005\006\004\005\005\005"
.ascii "\006\005\005\005\005\006\006\006\005\005"
.align 3
.type codebook26, %object
.size codebook26, 169
codebook26:
.ascii "\001\004\004\f\f\f\f\f\f\f\f\f\f\004\t\b\f\f\f\f\f\f\f\f\f\f"
.ascii "\002\t\007\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f"
.ascii "\013\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f"
.ascii "\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f"
.ascii "\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\013\013\013"
.ascii "\013\013\013\013\013\013\013\013\013\013\013\013\013\013\013"
.ascii "\013\013\013\013\013\013\013\013\013\013\013\013\013"
.align 3
.type codebook27, %object
.size codebook27, 225
codebook27:
.ascii "\001\004\004\006\006\007\007\b\007\t\t\n\n\n\n\006\005\005\007"
.ascii "\007\b\b\n\b\013\n\f\f\r\r\006\005\005\007\007\b\b\n\t\013\013"
.ascii "\f\f\r\f\022\b\b\b\b\t\t\n\t\013\n\f\f\r\r\022\b\b\b\b\t\t\n"
.ascii "\n\013\013\r\f\016\r\022\013\013\t\t\n\n\013\013\013\f\r\f\r"
.ascii "\016\022\013\013\t\b\013\n\013\013\013\013\f\f\016\r\022\022"
.ascii "\022\n\013\n\013\f\f\f\f\r\f\016\r\022\022\022\n\013\013\t\f"
.ascii "\013\f\f\f\r\r\r\022\022\021\016\016\013\013\f\f\r\f\016\f\016"
.ascii "\r\022\022\022\016\016\013\n\f\t\f\r\r\r\r\r\022\022\021\020"
.ascii "\022\r\r\f\f\r\013\016\f\016\016\021\022\022\021\022\r\f\r\n"
.ascii "\f\013\016\016\016\016\021\022\022\022\022\017\020\f\f\r\n\016"
.ascii "\f\016\017\022\022\022\020\021\020\016\f\013\r\n\r\r\016\017"
.align 3
.type codebook28, %object
.size codebook28, 289
codebook28:
.ascii "\002\005\005\006\006\007\007\007\007\007\007\b\b\b\b\b\b\n\006"
.ascii "\006\007\007\b\007\b\b\b\b\b\t\t\t\t\t\n\006\006\007\007\007"
.ascii "\007\b\b\b\b\t\t\t\t\t\t\n\007\007\007\007\b\b\b\b\t\t\t\t\t"
.ascii "\t\t\t\n\n\n\007\007\b\b\b\t\t\t\t\t\t\t\t\t\013\013\013\b\b"
.ascii "\b\b\t\t\t\t\t\t\t\t\t\t\n\n\n\b\b\b\b\t\t\t\t\t\t\t\t\t\t\n"
.ascii "\n\n\b\t\t\t\t\t\t\t\t\t\t\t\n\t\n\n\n\013\013\t\t\t\t\t\t\t"
.ascii "\t\t\t\t\t\013\n\013\013\013\t\t\t\t\t\t\n\n\t\t\n\t\013\n\013"
.ascii "\013\013\t\t\t\t\t\t\t\t\n\n\n\t\013\013\013\013\013\t\t\t\t"
.ascii "\n\n\t\t\t\t\n\t\013\013\013\013\013\013\013\t\t\t\t\t\t\n\n"
.ascii "\n\n\013\013\013\013\013\013\013\n\t\n\n\t\n\t\t\n\t\013\n\n"
.ascii "\013\013\013\013\t\n\t\t\t\t\n\n\n\n\013\013\013\013\013\013"
.ascii "\n\n\n\t\t\n\t\n\t\n\n\n\n\013\013\013\013\013\013\013\t\t\t"
.ascii "\t\t\n\n\n"
.align 3
.type __compound_literal.0, %object
.size __compound_literal.0, 3
__compound_literal.0:
.byte 1
.byte 0
.byte 2
.align 3
.type __compound_literal.1, %object
.size __compound_literal.1, 5
__compound_literal.1:
.byte 2
.byte 1
.byte 3
.byte 0
.byte 4
.align 3
.type __compound_literal.2, %object
.size __compound_literal.2, 5
__compound_literal.2:
.byte 2
.byte 1
.byte 3
.byte 0
.byte 4
.align 3
.type __compound_literal.3, %object
.size __compound_literal.3, 9
__compound_literal.3:
.byte 4
.byte 3
.byte 5
.byte 2
.byte 6
.byte 1
.byte 7
.byte 0
.byte 8
.align 3
.type __compound_literal.4, %object
.size __compound_literal.4, 9
__compound_literal.4:
.byte 4
.byte 3
.byte 5
.byte 2
.byte 6
.byte 1
.byte 7
.byte 0
.byte 8
.align 3
.type __compound_literal.5, %object
.size __compound_literal.5, 17
__compound_literal.5:
.byte 8
.byte 7
.byte 9
.byte 6
.byte 10
.byte 5
.byte 11
.byte 4
.byte 12
.byte 3
.byte 13
.byte 2
.byte 14
.byte 1
.byte 15
.byte 0
.byte 16
.align 3
.type __compound_literal.6, %object
.size __compound_literal.6, 3
__compound_literal.6:
.byte 1
.byte 0
.byte 2
.align 3
.type __compound_literal.7, %object
.size __compound_literal.7, 11
__compound_literal.7:
.byte 5
.byte 4
.byte 6
.byte 3
.byte 7
.byte 2
.byte 8
.byte 1
.byte 9
.byte 0
.byte 10
.align 3
.type __compound_literal.8, %object
.size __compound_literal.8, 13
__compound_literal.8:
.byte 6
.byte 5
.byte 7
.byte 4
.byte 8
.byte 3
.byte 9
.byte 2
.byte 10
.byte 1
.byte 11
.byte 0
.byte 12
.align 3
.type __compound_literal.9, %object
.size __compound_literal.9, 5
__compound_literal.9:
.byte 2
.byte 1
.byte 3
.byte 0
.byte 4
.align 3
.type __compound_literal.10, %object
.size __compound_literal.10, 13
__compound_literal.10:
.byte 6
.byte 5
.byte 7
.byte 4
.byte 8
.byte 3
.byte 9
.byte 2
.byte 10
.byte 1
.byte 11
.byte 0
.byte 12
.align 3
.type __compound_literal.11, %object
.size __compound_literal.11, 15
__compound_literal.11:
.byte 7
.byte 6
.byte 8
.byte 5
.byte 9
.byte 4
.byte 10
.byte 3
.byte 11
.byte 2
.byte 12
.byte 1
.byte 13
.byte 0
.byte 14
.align 3
.type __compound_literal.12, %object
.size __compound_literal.12, 17
__compound_literal.12:
.byte 8
.byte 7
.byte 9
.byte 6
.byte 10
.byte 5
.byte 11
.byte 4
.byte 12
.byte 3
.byte 13
.byte 2
.byte 14
.byte 1
.byte 15
.byte 0
.byte 16
.section .data.rel.ro.local,"aw"
.align 3
.type cvectors, %object
.size cvectors, 1392
cvectors:
.word 2
.word 16
.word 16
.zero 4
.xword codebook0
.word 0
.zero 20
.word 2
.word 8
.word 8
.zero 4
.xword codebook1
.word 0
.zero 20
.word 2
.word 256
.word 256
.zero 4
.xword codebook2
.word 0
.zero 20
.word 2
.word 64
.word 64
.zero 4
.xword codebook3
.word 0
.zero 20
.word 2
.word 128
.word 128
.zero 4
.xword codebook4
.word 0
.zero 20
.word 2
.word 32
.word 32
.zero 4
.xword codebook5
.word 0
.zero 20
.word 2
.word 96
.word 96
.zero 4
.xword codebook6
.word 0
.zero 20
.word 2
.word 32
.word 32
.zero 4
.xword codebook7
.word 0
.zero 20
.word 2
.word 96
.word 96
.zero 4
.xword codebook8
.word 0
.zero 20
.word 2
.word 17
.word 17
.zero 4
.xword codebook9
.word 0
.zero 20
.word 2
.word 32
.word 32
.zero 4
.xword codebook10
.word 0
.zero 20
.word 2
.word 78
.word 78
.zero 4
.xword codebook11
.word 0
.zero 20
.word 2
.word 17
.word 17
.zero 4
.xword codebook12
.word 0
.zero 20
.word 2
.word 32
.word 32
.zero 4
.xword codebook13
.word 0
.zero 20
.word 2
.word 78
.word 78
.zero 4
.xword codebook14
.word 0
.zero 20
.word 2
.word 100
.word 100
.zero 4
.xword codebook15
.word 0
.zero 20
.word 8
.word 1641
.word 6561
.zero 4
.xword codebook16
.word 1
.word -1082130432
.word 1065353216
.zero 4
.xword __compound_literal.0
.word 4
.word 443
.word 625
.zero 4
.xword codebook17
.word 1
.word -1073741824
.word 1065353216
.zero 4
.xword __compound_literal.1
.word 4
.word 105
.word 625
.zero 4
.xword codebook18
.word 1
.word -1073741824
.word 1065353216
.zero 4
.xword __compound_literal.2
.word 2
.word 68
.word 81
.zero 4
.xword codebook19
.word 1
.word -1065353216
.word 1065353216
.zero 4
.xword __compound_literal.3
.word 2
.word 81
.word 81
.zero 4
.xword codebook20
.word 1
.word -1065353216
.word 1065353216
.zero 4
.xword __compound_literal.4
.word 2
.word 289
.word 289
.zero 4
.xword codebook21
.word 1
.word -1056964608
.word 1065353216
.zero 4
.xword __compound_literal.5
.word 4
.word 81
.word 81
.zero 4
.xword codebook22
.word 1
.word -1053818880
.word 1093664768
.zero 4
.xword __compound_literal.6
.word 2
.word 121
.word 121
.zero 4
.xword codebook23
.word 1
.word -1063256064
.word 1065353216
.zero 4
.xword __compound_literal.7
.word 2
.word 169
.word 169
.zero 4
.xword codebook24
.word 1
.word -1041235968
.word 1084227584
.zero 4
.xword __compound_literal.8
.word 2
.word 25
.word 25
.zero 4
.xword codebook25
.word 1
.word -1073741824
.word 1065353216
.zero 4
.xword __compound_literal.9
.word 2
.word 169
.word 169
.zero 4
.xword codebook26
.word 1
.word -994099200
.word 1132396544
.zero 4
.xword __compound_literal.10
.word 2
.word 225
.word 225
.zero 4
.xword codebook27
.word 1
.word -1024589824
.word 1099431936
.zero 4
.xword __compound_literal.11
.word 2
.word 289
.word 289
.zero 4
.xword codebook28
.word 1
.word -1056964608
.word 1065353216
.zero 4
.xword __compound_literal.12
.section .rodata
.align 3
.type __compound_literal.13, %object
.size __compound_literal.13, 4
__compound_literal.13:
.word 4
.align 3
.type __compound_literal.14, %object
.size __compound_literal.14, 8
__compound_literal.14:
.word 5
.word 6
.align 3
.type __compound_literal.15, %object
.size __compound_literal.15, 8
__compound_literal.15:
.word 7
.word 8
.align 3
.type __compound_literal.16, %object
.size __compound_literal.16, 16
__compound_literal.16:
.word -1
.word 9
.word 10
.word 11
.align 3
.type __compound_literal.17, %object
.size __compound_literal.17, 16
__compound_literal.17:
.word -1
.word 12
.word 13
.word 14
.section .data.rel.ro.local
.align 3
.type floor_classes, %object
.size floor_classes, 120
floor_classes:
.word 3
.word 0
.word 0
.zero 4
.xword __compound_literal.13
.word 4
.word 1
.word 0
.zero 4
.xword __compound_literal.14
.word 3
.word 1
.word 1
.zero 4
.xword __compound_literal.15
.word 4
.word 2
.word 2
.zero 4
.xword __compound_literal.16
.word 3
.word 2
.word 3
.zero 4
.xword __compound_literal.17
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string ": "
.align 3
.LC1:
.string "%s\n"
.text
.align 2
.global verr
.type verr, %function
verr:
.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 x19, [sp, 16]
.cfi_offset 19, -80
str w0, [sp, 76]
str x1, [sp, 64]
mov x19, x2
bl __errno_location
ldr w0, [x0]
str w0, [sp, 92]
ldr x0, [sp, 64]
cmp x0, 0
beq .L2
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
add x0, sp, 32
mov x1, x19
ldp q0, q1, [x1]
stp q0, q1, [x0]
add x0, sp, 32
mov x2, x0
ldr x1, [sp, 64]
mov x0, x3
bl vfprintf
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 2
mov x1, 1
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl fwrite
.L2:
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x19, [x0]
ldr w0, [sp, 92]
bl strerror
mov x2, x0
adrp x0, .LC1
add x1, x0, :lo12:.LC1
mov x0, x19
bl fprintf
ldr w0, [sp, 76]
bl exit
.cfi_endproc
.LFE6:
.size verr, .-verr
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global uselocale
.type uselocale, %function
uselocale:
.LFB0:
.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
.LFE0:
.size uselocale, .-uselocale
``` |
### 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
bl __assert_func
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
.section .rodata
.align 3
.LC0:
.string "r"
.text
.align 2
.global read_from_pipe
.type read_from_pipe, %function
read_from_pipe:
.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, .LC0
add x1, x0, :lo12:.LC0
ldr w0, [sp, 28]
bl fdopen
str x0, [sp, 40]
b .L2
.L3:
ldr w0, [sp, 36]
bl putchar
.L2:
ldr x0, [sp, 40]
bl fgetc
str w0, [sp, 36]
ldr w0, [sp, 36]
cmn w0, #1
bne .L3
ldr x0, [sp, 40]
bl fclose
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size read_from_pipe, .-read_from_pipe
.section .rodata
.align 3
.LC1:
.string "w"
.align 3
.LC2:
.string "hello, world!\n"
.align 3
.LC3:
.string "goodbye, world!\n"
.text
.align 2
.global write_to_pipe
.type write_to_pipe, %function
write_to_pipe:
.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 w0, [sp, 28]
adrp x0, .LC1
add x1, x0, :lo12:.LC1
ldr w0, [sp, 28]
bl fdopen
str x0, [sp, 40]
ldr x3, [sp, 40]
mov x2, 14
mov x1, 1
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl fwrite
ldr x3, [sp, 40]
mov x2, 16
mov x1, 1
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl fwrite
ldr x0, [sp, 40]
bl fclose
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size write_to_pipe, .-write_to_pipe
.section .rodata
.align 3
.LC4:
.string "Pipe failed.\n"
.align 3
.LC5:
.string "Fork failed.\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, 32
bl pipe
cmp w0, 0
beq .L6
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 13
mov x1, 1
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl fwrite
mov w0, 1
b .L10
.L6:
bl fork
str w0, [sp, 28]
ldr w0, [sp, 28]
cmp w0, 0
bne .L8
ldr w0, [sp, 36]
bl close
ldr w0, [sp, 32]
bl read_from_pipe
mov w0, 0
b .L10
.L8:
ldr w0, [sp, 28]
cmp w0, 0
bge .L9
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 13
mov x1, 1
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl fwrite
mov w0, 1
b .L10
.L9:
ldr w0, [sp, 32]
bl close
ldr w0, [sp, 36]
bl write_to_pipe
mov w0, 0
.L10:
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
.LFE8:
.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 w0, [sp, 12]
str s0, [sp, 8]
ldr w1, [sp, 16]
ldr w0, [sp, 20]
add w0, w1, w0
str w0, [sp, 24]
ldr w1, [sp, 24]
mov w0, w1
lsl w0, w0, 2
add w0, w0, w1
scvtf d1, w0
fmov d0, 6.0e+0
fdiv d0, d1, d0
fcvtzs w0, d0
str w0, [sp, 28]
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 "%d\t"
.align 3
.LC1:
.string "Tridiagnal matrix:"
.align 3
.LC2:
.string "%d\t%d\n"
.align 3
.LC3:
.string "%d\t%d\t%d"
.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
mov x0, 0
bl time
bl srand
str wzr, [sp, 40]
b .L2
.L5:
str wzr, [sp, 44]
b .L3
.L4:
bl rand
mov w1, w0
mov w0, 34953
movk w0, 0x8888, lsl 16
smull x0, w1, w0
lsr x0, x0, 32
add w0, w1, w0
asr w2, w0, 4
asr w0, w1, 31
sub w2, w2, w0
mov w0, w2
lsl w0, w0, 4
sub w0, w0, w2
lsl w0, w0, 1
sub w2, w1, w0
ldrsw x3, [sp, 44]
ldrsw x1, [sp, 40]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
add x0, x0, x3
lsl x0, x0, 2
add x1, sp, 48
str w2, [x1, x0]
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L3:
ldr w0, [sp, 44]
cmp w0, 4
ble .L4
ldr w0, [sp, 40]
add w0, w0, 1
str w0, [sp, 40]
.L2:
ldr w0, [sp, 40]
cmp w0, 4
ble .L5
str wzr, [sp, 28]
b .L6
.L9:
str wzr, [sp, 32]
b .L7
.L8:
ldrsw x2, [sp, 32]
ldrsw x1, [sp, 28]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
add x0, x0, x2
lsl x0, x0, 2
add x1, sp, 48
ldr w0, [x1, x0]
mov w1, w0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L7:
ldr w0, [sp, 32]
cmp w0, 4
ble .L8
mov w0, 10
bl putchar
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L6:
ldr w0, [sp, 28]
cmp w0, 4
ble .L9
mov w0, 10
bl putchar
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl puts
ldr w0, [sp, 48]
ldr w1, [sp, 52]
mov w2, w1
mov w1, w0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
mov w0, 1
str w0, [sp, 28]
b .L10
.L18:
mov w0, 1
str w0, [sp, 36]
b .L11
.L12:
mov w0, 9
bl putchar
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L11:
ldr w1, [sp, 36]
ldr w0, [sp, 28]
cmp w1, w0
blt .L12
ldr w0, [sp, 28]
cmp w0, 4
bne .L13
ldr w0, [sp, 140]
ldr w1, [sp, 144]
mov w2, w1
mov w1, w0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
b .L14
.L13:
ldr w0, [sp, 28]
str w0, [sp, 32]
b .L15
.L17:
ldr w1, [sp, 28]
ldr w0, [sp, 32]
cmp w1, w0
bne .L16
ldr w0, [sp, 32]
sub w0, w0, #1
sxtw x2, w0
ldrsw x1, [sp, 28]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
add x0, x0, x2
lsl x0, x0, 2
add x1, sp, 48
ldr w4, [x1, x0]
ldrsw x2, [sp, 32]
ldrsw x1, [sp, 28]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
add x0, x0, x2
lsl x0, x0, 2
add x1, sp, 48
ldr w5, [x1, x0]
ldr w0, [sp, 32]
add w0, w0, 1
sxtw x2, w0
ldrsw x1, [sp, 28]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
add x0, x0, x2
lsl x0, x0, 2
add x1, sp, 48
ldr w0, [x1, x0]
mov w3, w0
mov w2, w5
mov w1, w4
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
.L16:
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L15:
ldr w0, [sp, 32]
cmp w0, 4
ble .L17
mov w0, 10
bl putchar
.L14:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L10:
ldr w0, [sp, 28]
cmp w0, 4
ble .L18
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 .L20
bl __stack_chk_fail
.L20:
mov w0, w1
ldp x29, x30, [sp], 160
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
mov w0, 6
str w0, [sp, 8]
mov w0, 15
str w0, [sp, 12]
ldr w1, [sp, 8]
ldr w0, [sp, 12]
and w0, w1, w0
str w0, [sp, 8]
ldr w0, [sp, 8]
cmp w0, 6
bne .L2
mov w0, 6
b .L3
.L2:
mov w0, 1
.L3:
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
.section .rodata
.align 3
.LC0:
.string "Parkinson's Law:\nWork expands so as to "
.align 3
.LC1:
.string "fill the time"
.align 3
.LC2:
.string "available for its completion."
.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
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl puts
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl puts
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
.section .rodata
.align 3
.LC0:
.string "%d"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
mov x12, 12048
sub sp, sp, x12
.cfi_def_cfa_offset 12048
stp x29, x30, [sp]
.cfi_offset 29, -12048
.cfi_offset 30, -12040
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 12040]
mov x1, 0
add x0, sp, 28
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
str wzr, [sp, 36]
b .L2
.L3:
add x0, sp, 32
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
ldr w2, [sp, 32]
add x1, sp, 4040
add x0, sp, 40
bl input
ldr w3, [sp, 32]
add x2, sp, 4096
add x2, x2, 3944
add x1, sp, 4040
add x0, sp, 40
bl add
ldr w1, [sp, 32]
add x0, sp, 4096
add x0, x0, 3944
bl output
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L2:
ldr w0, [sp, 28]
ldr w1, [sp, 36]
cmp w1, w0
blt .L3
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 12040]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L5
bl __stack_chk_fail
.L5:
mov w0, w1
ldp x29, x30, [sp]
mov x12, 12048
add sp, sp, x12
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
.align 2
.global input
.type input, %function
input:
.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, 40]
str x1, [sp, 32]
str w2, [sp, 28]
str wzr, [sp, 60]
b .L7
.L8:
ldrsw x0, [sp, 60]
lsl x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L7:
ldr w1, [sp, 60]
ldr w0, [sp, 28]
cmp w1, w0
blt .L8
str wzr, [sp, 60]
b .L9
.L10:
ldrsw x0, [sp, 60]
lsl x0, x0, 2
ldr x1, [sp, 32]
add x0, x1, x0
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L9:
ldr w1, [sp, 60]
ldr w0, [sp, 28]
cmp w1, w0
blt .L10
nop
nop
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size input, .-input
.section .rodata
.align 3
.LC1:
.string "%s"
.text
.align 2
.global add
.type add, %function
add:
.LFB2:
.cfi_startproc
sub sp, sp, #1072
.cfi_def_cfa_offset 1072
stp x29, x30, [sp]
.cfi_offset 29, -1072
.cfi_offset 30, -1064
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str x2, [sp, 24]
str w3, [sp, 20]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 1064]
mov x1, 0
add x0, sp, 64
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
add x0, sp, 64
mov w1, 1
bl get_index
str w0, [sp, 56]
ldr w0, [sp, 56]
add w1, w0, 2
add x0, sp, 64
bl get_index
str w0, [sp, 60]
str wzr, [sp, 52]
b .L12
.L13:
ldrsw x0, [sp, 52]
lsl x0, x0, 2
ldr x1, [sp, 40]
add x0, x1, x0
ldr w2, [x0]
ldr w1, [sp, 52]
ldr w0, [sp, 56]
add w0, w1, w0
ldr w1, [sp, 20]
sdiv w3, w0, w1
ldr w1, [sp, 20]
mul w1, w3, w1
sub w0, w0, w1
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 32]
add x0, x1, x0
ldr w1, [x0]
ldr w3, [sp, 52]
ldr w0, [sp, 60]
add w0, w3, w0
ldr w3, [sp, 20]
sdiv w4, w0, w3
ldr w3, [sp, 20]
mul w3, w4, w3
sub w0, w0, w3
sxtw x0, w0
lsl x0, x0, 2
ldr x3, [sp, 24]
add x0, x3, x0
add w1, w2, w1
str w1, [x0]
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
.L12:
ldr w1, [sp, 52]
ldr w0, [sp, 20]
cmp w1, w0
blt .L13
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 1064]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L14
bl __stack_chk_fail
.L14:
ldp x29, x30, [sp]
add sp, sp, 1072
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size add, .-add
.align 2
.global get_index
.type get_index, %function
get_index:
.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]
str w1, [sp, 36]
str wzr, [sp, 60]
b .L16
.L19:
ldrsw x0, [sp, 36]
ldr x1, [sp, 40]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 49
beq .L21
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L16:
ldrsw x19, [sp, 36]
ldr x0, [sp, 40]
bl strlen
cmp x19, x0
bcc .L19
b .L18
.L21:
nop
.L18:
ldr w0, [sp, 60]
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 get_index, .-get_index
.section .rodata
.align 3
.LC2:
.string " %d"
.text
.align 2
.global output
.type output, %function
output:
.LFB4:
.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 w0, [x0]
mov w1, w0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
mov w0, 1
str w0, [sp, 44]
b .L23
.L24:
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]
.L23:
ldr w1, [sp, 44]
ldr w0, [sp, 20]
cmp w1, w0
blt .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
.LFE4:
.size output, .-output
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global __infer_nondet_int
.type __infer_nondet_int, %function
__infer_nondet_int:
.LFB6:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
ldr w0, [sp, 12]
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size __infer_nondet_int, .-__infer_nondet_int
.align 2
.global nop
.type nop, %function
nop:
.LFB7:
.cfi_startproc
nop
ret
.cfi_endproc
.LFE7:
.size nop, .-nop
.align 2
.global condition_always_true_bad
.type condition_always_true_bad, %function
condition_always_true_bad:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
bl nop
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size condition_always_true_bad, .-condition_always_true_bad
.align 2
.global condition_always_false_bad
.type condition_always_false_bad, %function
condition_always_false_bad:
.LFB9:
.cfi_startproc
nop
ret
.cfi_endproc
.LFE9:
.size condition_always_false_bad, .-condition_always_false_bad
.align 2
.global condition_always_true_with_else_bad
.type condition_always_true_with_else_bad, %function
condition_always_true_with_else_bad:
.LFB10:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
bl nop
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size condition_always_true_with_else_bad, .-condition_always_true_with_else_bad
.align 2
.global exit_at_end_of_if_good
.type exit_at_end_of_if_good, %function
exit_at_end_of_if_good:
.LFB11:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
bl __infer_nondet_int
cmp w0, 0
beq .L9
mov w0, 4
bl exit
.L9:
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size exit_at_end_of_if_good, .-exit_at_end_of_if_good
.align 2
.global FP_exit_at_end_of_proc_good
.type FP_exit_at_end_of_proc_good, %function
FP_exit_at_end_of_proc_good:
.LFB12:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
bl nop
mov w0, 5
bl exit
.cfi_endproc
.LFE12:
.size FP_exit_at_end_of_proc_good, .-FP_exit_at_end_of_proc_good
.align 2
.global FP_exit_at_end_of_proc_good_local_var
.type FP_exit_at_end_of_proc_good_local_var, %function
FP_exit_at_end_of_proc_good_local_var:
.LFB13:
.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, 57
str w0, [sp, 28]
mov w0, 5
bl exit
.cfi_endproc
.LFE13:
.size FP_exit_at_end_of_proc_good_local_var, .-FP_exit_at_end_of_proc_good_local_var
.align 2
.global FN_useless_else_bad
.type FN_useless_else_bad, %function
FN_useless_else_bad:
.LFB14:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
bl __infer_nondet_int
cmp w0, 0
beq .L13
mov w0, 0
bl exit
.L13:
bl nop
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE14:
.size FN_useless_else_bad, .-FN_useless_else_bad
.align 2
.global never_loops_bad
.type never_loops_bad, %function
never_loops_bad:
.LFB15:
.cfi_startproc
nop
nop
ret
.cfi_endproc
.LFE15:
.size never_loops_bad, .-never_loops_bad
.align 2
.global infinite_loop_bad
.type infinite_loop_bad, %function
infinite_loop_bad:
.LFB16:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
.L16:
bl nop
b .L16
.cfi_endproc
.LFE16:
.size infinite_loop_bad, .-infinite_loop_bad
.align 2
.global FP_loop_with_break_good
.type FP_loop_with_break_good, %function
FP_loop_with_break_good:
.LFB17:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
.L20:
bl __infer_nondet_int
cmp w0, 0
bne .L22
b .L20
.L22:
nop
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE17:
.size FP_loop_with_break_good, .-FP_loop_with_break_good
.align 2
.global FP_loop_with_return_good
.type FP_loop_with_return_good, %function
FP_loop_with_return_good:
.LFB18:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
.L26:
bl __infer_nondet_int
cmp w0, 0
bne .L28
b .L26
.L28:
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE18:
.size FP_loop_with_return_good, .-FP_loop_with_return_good
.align 2
.global FP_loop_with_exit_good
.type FP_loop_with_exit_good, %function
FP_loop_with_exit_good:
.LFB19:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
.L31:
bl __infer_nondet_int
cmp w0, 0
beq .L31
mov w0, 1
bl exit
.cfi_endproc
.LFE19:
.size FP_loop_with_exit_good, .-FP_loop_with_exit_good
.align 2
.global FP_loop_with_unreachable_good
.type FP_loop_with_unreachable_good, %function
FP_loop_with_unreachable_good:
.LFB20:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
.L34:
bl __infer_nondet_int
cmp w0, 0
beq .L34
bl infinite_loop_bad
b .L34
.cfi_endproc
.LFE20:
.size FP_loop_with_unreachable_good, .-FP_loop_with_unreachable_good
.align 2
.global FP_loop_once_intentional_good
.type FP_loop_once_intentional_good, %function
FP_loop_once_intentional_good:
.LFB21:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
bl nop
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE21:
.size FP_loop_once_intentional_good, .-FP_loop_once_intentional_good
.align 2
.global FN_loop_once_break_bad
.type FN_loop_once_break_bad, %function
FN_loop_once_break_bad:
.LFB22:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
nop
bl __infer_nondet_int
cmp w0, 0
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE22:
.size FN_loop_once_break_bad, .-FN_loop_once_break_bad
.align 2
.global FN_loop_once_return_bad
.type FN_loop_once_return_bad, %function
FN_loop_once_return_bad:
.LFB23:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
nop
bl __infer_nondet_int
cmp w0, 0
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE23:
.size FN_loop_once_return_bad, .-FN_loop_once_return_bad
.align 2
.global FN_loop_once_exit_bad
.type FN_loop_once_exit_bad, %function
FN_loop_once_exit_bad:
.LFB24:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
nop
bl __infer_nondet_int
cmp w0, 0
beq .L48
mov w0, 2
bl exit
.L48:
nop
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE24:
.size FN_loop_once_exit_bad, .-FN_loop_once_exit_bad
.align 2
.global FN_loop_once_unreachable_bad
.type FN_loop_once_unreachable_bad, %function
FN_loop_once_unreachable_bad:
.LFB25:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
b .L50
.L51:
bl infinite_loop_bad
.L50:
bl __infer_nondet_int
cmp w0, 0
bne .L51
nop
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE25:
.size FN_loop_once_unreachable_bad, .-FN_loop_once_unreachable_bad
.align 2
.global FN_unreachable_statement_call_bad
.type FN_unreachable_statement_call_bad, %function
FN_unreachable_statement_call_bad:
.LFB26:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
bl infinite_loop_bad
bl nop
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE26:
.size FN_unreachable_statement_call_bad, .-FN_unreachable_statement_call_bad
.align 2
.global unreachable_statement_exit_bad
.type unreachable_statement_exit_bad, %function
unreachable_statement_exit_bad:
.LFB27:
.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, 2
bl exit
.cfi_endproc
.LFE27:
.size unreachable_statement_exit_bad, .-unreachable_statement_exit_bad
.align 2
.global FN_unreachable_statement_return_bad
.type FN_unreachable_statement_return_bad, %function
FN_unreachable_statement_return_bad:
.LFB28:
.cfi_startproc
nop
ret
.cfi_endproc
.LFE28:
.size FN_unreachable_statement_return_bad, .-FN_unreachable_statement_return_bad
.align 2
.global FN_unreachable_statement_break_bad
.type FN_unreachable_statement_break_bad, %function
FN_unreachable_statement_break_bad:
.LFB29:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
b .L57
.L59:
bl __infer_nondet_int
cmp w0, 0
bne .L60
.L57:
bl __infer_nondet_int
cmp w0, 0
bne .L59
b .L61
.L60:
nop
.L61:
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE29:
.size FN_unreachable_statement_break_bad, .-FN_unreachable_statement_break_bad
.align 2
.global FN_unreachable_statement_continue_bad
.type FN_unreachable_statement_continue_bad, %function
FN_unreachable_statement_continue_bad:
.LFB30:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
b .L63
.L64:
nop
.L63:
bl __infer_nondet_int
cmp w0, 0
bne .L64
nop
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE30:
.size FN_unreachable_statement_continue_bad, .-FN_unreachable_statement_continue_bad
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.type lbinom, %function
lbinom:
.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 d8, [sp, 16]
.cfi_offset 72, -32
str w0, [sp, 44]
str w1, [sp, 40]
ldr w0, [sp, 40]
cmp w0, 0
beq .L2
ldr w1, [sp, 44]
ldr w0, [sp, 40]
cmp w1, w0
bne .L3
.L2:
movi d0, #0
b .L4
.L3:
ldr w0, [sp, 44]
add w0, w0, 1
scvtf d0, w0
bl lgamma
fmov d8, d0
ldr w0, [sp, 40]
add w0, w0, 1
scvtf d0, w0
bl lgamma
fsub d8, d8, d0
ldr w1, [sp, 44]
ldr w0, [sp, 40]
sub w0, w1, w0
add w0, w0, 1
scvtf d0, w0
bl lgamma
fsub d0, d8, d0
.L4:
ldr d8, [sp, 16]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_restore 72
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size lbinom, .-lbinom
.align 2
.type hypergeo, %function
hypergeo:
.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 d8, [sp, 16]
.cfi_offset 72, -32
str w0, [sp, 44]
str w1, [sp, 40]
str w2, [sp, 36]
str w3, [sp, 32]
ldr w1, [sp, 44]
ldr w0, [sp, 40]
bl lbinom
fmov d8, d0
ldr w1, [sp, 32]
ldr w0, [sp, 40]
sub w2, w1, w0
ldr w1, [sp, 36]
ldr w0, [sp, 44]
sub w0, w1, w0
mov w1, w0
mov w0, w2
bl lbinom
fadd d8, d8, d0
ldr w1, [sp, 36]
ldr w0, [sp, 32]
bl lbinom
fsub d0, d8, d0
bl exp
ldr d8, [sp, 16]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_restore 72
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size hypergeo, .-hypergeo
.align 2
.type hypergeo_acc, %function
hypergeo_acc:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str w0, [sp, 44]
str w1, [sp, 40]
str w2, [sp, 36]
str w3, [sp, 32]
str x4, [sp, 24]
ldr w0, [sp, 40]
cmp w0, 0
bne .L8
ldr w0, [sp, 36]
cmp w0, 0
bne .L8
ldr w0, [sp, 32]
cmp w0, 0
beq .L9
.L8:
ldr x0, [sp, 24]
ldr w1, [sp, 44]
str w1, [x0]
ldr x0, [sp, 24]
ldr w1, [sp, 40]
str w1, [x0, 4]
ldr x0, [sp, 24]
ldr w1, [sp, 36]
str w1, [x0, 8]
ldr x0, [sp, 24]
ldr w1, [sp, 32]
str w1, [x0, 12]
b .L10
.L9:
ldr w1, [sp, 44]
mov w0, 41705
movk w0, 0x2e8b, lsl 16
smull x0, w1, w0
lsr x0, x0, 32
asr w2, w0, 1
asr w0, w1, 31
sub w0, w2, w0
mov w2, 11
mul w0, w0, w2
sub w0, w1, w0
cmp w0, 0
beq .L11
ldr x0, [sp, 24]
ldr w1, [x0, 12]
ldr w0, [sp, 44]
add w1, w1, w0
ldr x0, [sp, 24]
ldr w0, [x0, 4]
sub w1, w1, w0
ldr x0, [sp, 24]
ldr w0, [x0, 8]
cmp w1, w0
beq .L11
ldr x0, [sp, 24]
ldr w0, [x0]
add w0, w0, 1
ldr w1, [sp, 44]
cmp w1, w0
bne .L12
ldr x0, [sp, 24]
ldr d1, [x0, 16]
ldr x0, [sp, 24]
ldr w1, [x0, 4]
ldr x0, [sp, 24]
ldr w0, [x0]
sub w0, w1, w0
scvtf d2, w0
ldr w0, [sp, 44]
scvtf d0, w0
fdiv d2, d2, d0
ldr x0, [sp, 24]
ldr w1, [x0, 8]
ldr x0, [sp, 24]
ldr w0, [x0]
sub w0, w1, w0
scvtf d0, w0
fmul d2, d2, d0
ldr x0, [sp, 24]
ldr w1, [x0, 12]
ldr w0, [sp, 44]
add w1, w1, w0
ldr x0, [sp, 24]
ldr w0, [x0, 4]
sub w1, w1, w0
ldr x0, [sp, 24]
ldr w0, [x0, 8]
sub w0, w1, w0
scvtf d0, w0
fdiv d0, d2, d0
fmul d0, d1, d0
ldr x0, [sp, 24]
str d0, [x0, 16]
ldr x0, [sp, 24]
ldr w1, [sp, 44]
str w1, [x0]
ldr x0, [sp, 24]
ldr d0, [x0, 16]
b .L13
.L12:
ldr x0, [sp, 24]
ldr w0, [x0]
sub w0, w0, #1
ldr w1, [sp, 44]
cmp w1, w0
bne .L11
ldr x0, [sp, 24]
ldr d1, [x0, 16]
ldr x0, [sp, 24]
ldr w0, [x0]
scvtf d2, w0
ldr x0, [sp, 24]
ldr w1, [x0, 4]
ldr w0, [sp, 44]
sub w0, w1, w0
scvtf d0, w0
fdiv d2, d2, d0
ldr x0, [sp, 24]
ldr w1, [x0]
ldr x0, [sp, 24]
ldr w0, [x0, 12]
add w1, w1, w0
ldr x0, [sp, 24]
ldr w0, [x0, 4]
sub w1, w1, w0
ldr x0, [sp, 24]
ldr w0, [x0, 8]
sub w0, w1, w0
scvtf d0, w0
fmul d2, d2, d0
ldr x0, [sp, 24]
ldr w1, [x0, 8]
ldr w0, [sp, 44]
sub w0, w1, w0
scvtf d0, w0
fdiv d0, d2, d0
fmul d0, d1, d0
ldr x0, [sp, 24]
str d0, [x0, 16]
ldr x0, [sp, 24]
ldr w1, [sp, 44]
str w1, [x0]
ldr x0, [sp, 24]
ldr d0, [x0, 16]
b .L13
.L11:
ldr x0, [sp, 24]
ldr w1, [sp, 44]
str w1, [x0]
.L10:
ldr x0, [sp, 24]
ldr w4, [x0]
ldr x0, [sp, 24]
ldr w1, [x0, 4]
ldr x0, [sp, 24]
ldr w2, [x0, 8]
ldr x0, [sp, 24]
ldr w0, [x0, 12]
mov w3, w0
mov w0, w4
bl hypergeo
ldr x0, [sp, 24]
str d0, [x0, 16]
ldr x0, [sp, 24]
ldr d0, [x0, 16]
.L13:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size hypergeo_acc, .-hypergeo_acc
.align 2
.global kt_fisher_exact
.type kt_fisher_exact, %function
kt_fisher_exact:
.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 w0, [sp, 60]
str w1, [sp, 56]
str w2, [sp, 52]
str w3, [sp, 48]
str x4, [sp, 40]
str x5, [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, 152]
mov x1, 0
ldr w1, [sp, 60]
ldr w0, [sp, 56]
add w0, w1, w0
str w0, [sp, 80]
ldr w1, [sp, 60]
ldr w0, [sp, 52]
add w0, w1, w0
str w0, [sp, 84]
ldr w1, [sp, 60]
ldr w0, [sp, 56]
add w1, w1, w0
ldr w0, [sp, 52]
add w0, w1, w0
ldr w1, [sp, 48]
add w0, w1, w0
str w0, [sp, 88]
ldr w0, [sp, 84]
ldr w2, [sp, 80]
ldr w1, [sp, 80]
cmp w2, w0
csel w0, w1, w0, le
str w0, [sp, 92]
ldr w1, [sp, 80]
ldr w0, [sp, 84]
add w1, w1, w0
ldr w0, [sp, 88]
sub w0, w1, w0
str w0, [sp, 76]
ldr w0, [sp, 76]
cmp w0, 0
bge .L15
str wzr, [sp, 76]
.L15:
ldr x0, [sp, 32]
fmov d0, 1.0e+0
str d0, [x0]
ldr x0, [sp, 32]
ldr d0, [x0]
ldr x0, [sp, 40]
str d0, [x0]
ldr x0, [sp, 40]
ldr d0, [x0]
ldr x0, [sp, 24]
str d0, [x0]
ldr w1, [sp, 76]
ldr w0, [sp, 92]
cmp w1, w0
bne .L16
fmov d0, 1.0e+0
b .L36
.L16:
add x0, sp, 128
mov x4, x0
ldr w3, [sp, 88]
ldr w2, [sp, 84]
ldr w1, [sp, 80]
ldr w0, [sp, 60]
bl hypergeo_acc
str d0, [sp, 120]
add x0, sp, 128
mov x4, x0
mov w3, 0
mov w2, 0
mov w1, 0
ldr w0, [sp, 76]
bl hypergeo_acc
str d0, [sp, 96]
str xzr, [sp, 104]
ldr w0, [sp, 76]
add w0, w0, 1
str w0, [sp, 68]
b .L18
.L21:
ldr d1, [sp, 104]
ldr d0, [sp, 96]
fadd d0, d1, d0
str d0, [sp, 104]
add x0, sp, 128
mov x4, x0
mov w3, 0
mov w2, 0
mov w1, 0
ldr w0, [sp, 68]
bl hypergeo_acc
str d0, [sp, 96]
ldr w0, [sp, 68]
add w0, w0, 1
str w0, [sp, 68]
.L18:
ldr d0, [sp, 120]
adrp x0, .LC0
ldr d1, [x0, #:lo12:.LC0]
fmul d0, d0, d1
ldr d1, [sp, 96]
fcmpe d1, d0
bmi .L38
b .L19
.L38:
ldr d0, [sp, 96]
fcmpe d0, #0.0
bgt .L21
.L19:
ldr w0, [sp, 68]
sub w0, w0, #1
str w0, [sp, 68]
ldr d0, [sp, 120]
adrp x0, .LC1
ldr d1, [x0, #:lo12:.LC1]
fmul d0, d0, d1
ldr d1, [sp, 96]
fcmpe d1, d0
bmi .L39
b .L43
.L39:
ldr d1, [sp, 104]
ldr d0, [sp, 96]
fadd d0, d1, d0
str d0, [sp, 104]
b .L24
.L43:
ldr w0, [sp, 68]
sub w0, w0, #1
str w0, [sp, 68]
.L24:
add x0, sp, 128
mov x4, x0
mov w3, 0
mov w2, 0
mov w1, 0
ldr w0, [sp, 92]
bl hypergeo_acc
str d0, [sp, 96]
str xzr, [sp, 112]
ldr w0, [sp, 92]
sub w0, w0, #1
str w0, [sp, 72]
b .L25
.L28:
ldr d1, [sp, 112]
ldr d0, [sp, 96]
fadd d0, d1, d0
str d0, [sp, 112]
add x0, sp, 128
mov x4, x0
mov w3, 0
mov w2, 0
mov w1, 0
ldr w0, [sp, 72]
bl hypergeo_acc
str d0, [sp, 96]
ldr w0, [sp, 72]
sub w0, w0, #1
str w0, [sp, 72]
.L25:
ldr d0, [sp, 120]
adrp x0, .LC0
ldr d1, [x0, #:lo12:.LC0]
fmul d0, d0, d1
ldr d1, [sp, 96]
fcmpe d1, d0
bmi .L40
b .L26
.L40:
ldr d0, [sp, 96]
fcmpe d0, #0.0
bgt .L28
.L26:
ldr w0, [sp, 72]
add w0, w0, 1
str w0, [sp, 72]
ldr d0, [sp, 120]
adrp x0, .LC1
ldr d1, [x0, #:lo12:.LC1]
fmul d0, d0, d1
ldr d1, [sp, 96]
fcmpe d1, d0
bmi .L41
b .L44
.L41:
ldr d1, [sp, 112]
ldr d0, [sp, 96]
fadd d0, d1, d0
str d0, [sp, 112]
b .L31
.L44:
ldr w0, [sp, 72]
add w0, w0, 1
str w0, [sp, 72]
.L31:
ldr d1, [sp, 104]
ldr d0, [sp, 112]
fadd d0, d1, d0
ldr x0, [sp, 24]
str d0, [x0]
ldr x0, [sp, 24]
ldr d1, [x0]
fmov d0, 1.0e+0
fcmpe d1, d0
bgt .L42
b .L32
.L42:
ldr x0, [sp, 24]
fmov d0, 1.0e+0
str d0, [x0]
.L32:
ldr w1, [sp, 68]
ldr w0, [sp, 60]
sub w0, w1, w0
cmp w0, 0
csneg w1, w0, w0, ge
ldr w2, [sp, 72]
ldr w0, [sp, 60]
sub w0, w2, w0
cmp w0, 0
csneg w0, w0, w0, ge
cmp w1, w0
bge .L34
fmov d1, 1.0e+0
ldr d0, [sp, 104]
fsub d0, d1, d0
ldr d1, [sp, 120]
fadd d0, d1, d0
str d0, [sp, 112]
b .L35
.L34:
fmov d1, 1.0e+0
ldr d0, [sp, 112]
fsub d0, d1, d0
ldr d1, [sp, 120]
fadd d0, d1, d0
str d0, [sp, 104]
.L35:
ldr x0, [sp, 40]
ldr d0, [sp, 104]
str d0, [x0]
ldr x0, [sp, 32]
ldr d0, [sp, 112]
str d0, [x0]
ldr d0, [sp, 120]
.L36:
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 .L37
bl __stack_chk_fail
.L37:
ldp x29, x30, [sp], 160
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size kt_fisher_exact, .-kt_fisher_exact
.section .rodata
.align 3
.LC0:
.word -90071993
.word 1072693247
.align 3
.LC1:
.word 45035996
.word 1072693248
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global setproctitle
.type setproctitle, %function
setproctitle:
.LFB0:
.cfi_startproc
sub sp, sp, #208
.cfi_def_cfa_offset 208
str x0, [sp, 8]
str x1, [sp, 152]
str x2, [sp, 160]
str x3, [sp, 168]
str x4, [sp, 176]
str x5, [sp, 184]
str x6, [sp, 192]
str x7, [sp, 200]
str q0, [sp, 16]
str q1, [sp, 32]
str q2, [sp, 48]
str q3, [sp, 64]
str q4, [sp, 80]
str q5, [sp, 96]
str q6, [sp, 112]
str q7, [sp, 128]
nop
add sp, sp, 208
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size setproctitle, .-setproctitle
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.local error_string
.comm error_string,4096,8
.section .rodata
.align 3
.LC0:
.string "Not enough space for writing error\n"
.section .data.rel.local,"aw"
.align 3
.type not_enough_space, %object
.size not_enough_space, 8
not_enough_space:
.xword .LC0
.section .rodata
.align 3
.LC1:
.string "Error while writing error (errorception)\n"
.section .data.rel.local
.align 3
.type internal_error, %object
.size internal_error, 8
internal_error:
.xword .LC1
.text
.align 2
.global freq_gen_error_string
.type freq_gen_error_string, %function
freq_gen_error_string:
.LFB2:
.cfi_startproc
adrp x0, error_string
add x0, x0, :lo12:error_string
ret
.cfi_endproc
.LFE2:
.size freq_gen_error_string, .-freq_gen_error_string
.section .rodata
.align 3
.LC2:
.string "Error in function %s at %s:%d: "
.text
.align 2
.global freq_gen_set_error_string
.type freq_gen_set_error_string, %function
freq_gen_set_error_string:
.LFB3:
.cfi_startproc
stp x29, x30, [sp, -304]!
.cfi_def_cfa_offset 304
.cfi_offset 29, -304
.cfi_offset 30, -296
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -288
str x0, [sp, 88]
str x1, [sp, 80]
str w2, [sp, 76]
str x3, [sp, 64]
str x4, [sp, 272]
str x5, [sp, 280]
str x6, [sp, 288]
str x7, [sp, 296]
str q0, [sp, 144]
str q1, [sp, 160]
str q2, [sp, 176]
str q3, [sp, 192]
str q4, [sp, 208]
str q5, [sp, 224]
str q6, [sp, 240]
str q7, [sp, 256]
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 w5, [sp, 76]
ldr x4, [sp, 88]
ldr x3, [sp, 80]
adrp x0, .LC2
add x2, x0, :lo12:.LC2
mov x1, 4096
adrp x0, error_string
add x0, x0, :lo12:error_string
bl snprintf
bl libfreqgen_handle_problematic_error_string
cmp w0, 0
bne .L7
add x0, sp, 304
str x0, [sp, 104]
add x0, sp, 304
str x0, [sp, 112]
add x0, sp, 272
str x0, [sp, 120]
mov w0, -32
str w0, [sp, 128]
mov w0, -128
str w0, [sp, 132]
adrp x0, error_string
add x0, x0, :lo12:error_string
bl strlen
mov x1, x0
adrp x0, error_string
add x0, x0, :lo12:error_string
add x19, x1, x0
adrp x0, error_string
add x0, x0, :lo12:error_string
bl strlen
mov x1, x0
mov x0, 4096
sub x4, x0, x1
add x0, sp, 32
add x1, sp, 104
ldp q0, q1, [x1]
stp q0, q1, [x0]
add x0, sp, 32
mov x3, x0
ldr x2, [sp, 64]
mov x1, x4
mov x0, x19
bl vsnprintf
bl libfreqgen_handle_problematic_error_string
mov w1, 4096
adrp x0, error_string
add x0, x0, :lo12:error_string
bl libfreqgen_append_newline
nop
.L7:
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 136]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L6
bl __stack_chk_fail
.L6:
ldr x19, [sp, 16]
ldp x29, x30, [sp], 304
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE3:
.size freq_gen_set_error_string, .-freq_gen_set_error_string
.align 2
.global freq_gen_append_error_string
.type freq_gen_append_error_string, %function
freq_gen_append_error_string:
.LFB4:
.cfi_startproc
stp x29, x30, [sp, -304]!
.cfi_def_cfa_offset 304
.cfi_offset 29, -304
.cfi_offset 30, -296
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -288
str x0, [sp, 88]
str x1, [sp, 80]
str w2, [sp, 76]
str x3, [sp, 64]
str x4, [sp, 272]
str x5, [sp, 280]
str x6, [sp, 288]
str x7, [sp, 296]
str q0, [sp, 144]
str q1, [sp, 160]
str q2, [sp, 176]
str q3, [sp, 192]
str q4, [sp, 208]
str q5, [sp, 224]
str q6, [sp, 240]
str q7, [sp, 256]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 136]
mov x1, 0
adrp x0, error_string
add x0, x0, :lo12:error_string
bl strlen
mov x1, x0
adrp x0, error_string
add x0, x0, :lo12:error_string
add x19, x1, x0
adrp x0, error_string
add x0, x0, :lo12:error_string
bl strlen
mov x1, x0
mov x0, 4096
sub x1, x0, x1
ldr w5, [sp, 76]
ldr x4, [sp, 88]
ldr x3, [sp, 80]
adrp x0, .LC2
add x2, x0, :lo12:.LC2
mov x0, x19
bl snprintf
bl libfreqgen_handle_problematic_error_string
cmp w0, 0
bne .L12
add x0, sp, 304
str x0, [sp, 104]
add x0, sp, 304
str x0, [sp, 112]
add x0, sp, 272
str x0, [sp, 120]
mov w0, -32
str w0, [sp, 128]
mov w0, -128
str w0, [sp, 132]
adrp x0, error_string
add x0, x0, :lo12:error_string
bl strlen
mov x1, x0
adrp x0, error_string
add x0, x0, :lo12:error_string
add x19, x1, x0
adrp x0, error_string
add x0, x0, :lo12:error_string
bl strlen
mov x1, x0
mov x0, 4096
sub x4, x0, x1
add x0, sp, 32
add x1, sp, 104
ldp q0, q1, [x1]
stp q0, q1, [x0]
add x0, sp, 32
mov x3, x0
ldr x2, [sp, 64]
mov x1, x4
mov x0, x19
bl vsnprintf
bl libfreqgen_handle_problematic_error_string
mov w1, 4096
adrp x0, error_string
add x0, x0, :lo12:error_string
bl libfreqgen_append_newline
nop
.L12:
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 136]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L11
bl __stack_chk_fail
.L11:
ldr x19, [sp, 16]
ldp x29, x30, [sp], 304
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE4:
.size freq_gen_append_error_string, .-freq_gen_append_error_string
.section .rodata
.align 3
.LC3:
.string "%s"
.text
.align 2
.type libfreqgen_handle_problematic_error_string, %function
libfreqgen_handle_problematic_error_string:
.LFB5:
.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]
ldrsw x19, [sp, 44]
adrp x0, error_string
add x0, x0, :lo12:error_string
bl strlen
add x0, x19, x0
cmp x0, 4095
bls .L14
adrp x0, not_enough_space
add x0, x0, :lo12:not_enough_space
ldr x0, [x0]
mov x2, x0
adrp x0, .LC3
add x1, x0, :lo12:.LC3
adrp x0, error_string
add x0, x0, :lo12:error_string
bl sprintf
mov w0, -1
b .L15
.L14:
ldr w0, [sp, 44]
cmp w0, 0
bge .L16
adrp x0, internal_error
add x0, x0, :lo12:internal_error
ldr x0, [x0]
mov x2, x0
adrp x0, .LC3
add x1, x0, :lo12:.LC3
adrp x0, error_string
add x0, x0, :lo12:error_string
bl sprintf
mov w0, -2
b .L15
.L16:
mov w0, 0
.L15:
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
.LFE5:
.size libfreqgen_handle_problematic_error_string, .-libfreqgen_handle_problematic_error_string
.align 2
.type libfreqgen_append_newline, %function
libfreqgen_append_newline:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
str w1, [sp, 20]
ldr x0, [sp, 24]
bl strlen
str w0, [sp, 44]
ldr w0, [sp, 44]
add w0, w0, 2
ldr w1, [sp, 20]
cmp w1, w0
ble .L18
ldrsw x0, [sp, 44]
ldr x1, [sp, 24]
add x0, x1, x0
mov w1, 10
strb w1, [x0]
ldrsw x0, [sp, 44]
add x0, x0, 1
ldr x1, [sp, 24]
add x0, x1, x0
strb wzr, [x0]
mov w0, 0
b .L20
.L18:
mov w0, -1
.L20:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size libfreqgen_append_newline, .-libfreqgen_append_newline
``` |
### 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, -272]!
.cfi_def_cfa_offset 272
.cfi_offset 29, -272
.cfi_offset 30, -264
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 264]
mov x1, 0
adrp x0, .LC25
add x1, x0, :lo12:.LC25
add x0, sp, 136
ldp q0, q1, [x1]
stp q0, q1, [x0]
ldp q0, q1, [x1, 32]
stp q0, q1, [x0, 32]
ldp q0, q1, [x1, 64]
stp q0, q1, [x0, 64]
ldp q0, q1, [x1, 96]
stp q0, q1, [x0, 96]
adrp x0, .LC26
add x1, x0, :lo12:.LC26
add x0, sp, 32
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 x1, [x1, 96]
str x1, [x0, 96]
ldr x0, [sp, 136]
bl puts
str wzr, [sp, 20]
b .L2
.L3:
ldr x4, [sp, 144]
ldrsw x0, [sp, 20]
lsl x0, x0, 3
add x1, sp, 32
ldr x0, [x1, x0]
mov w3, 39
mov x2, x0
mov w1, 39
mov x0, x4
bl printf
mov w0, 10
bl putchar
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
.L2:
ldr w0, [sp, 20]
cmp w0, 12
ble .L3
ldr x0, [sp, 152]
bl puts
ldr x0, [sp, 160]
bl puts
str wzr, [sp, 24]
b .L4
.L5:
ldr x4, [sp, 168]
ldrsw x0, [sp, 24]
lsl x0, x0, 3
add x1, sp, 136
ldr x0, [x1, x0]
mov w3, 39
mov x2, x0
mov w1, 39
mov x0, x4
bl printf
mov w0, 10
bl putchar
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L4:
ldr w0, [sp, 24]
cmp w0, 15
ble .L5
mov w0, 5
str w0, [sp, 28]
b .L6
.L7:
ldrsw x0, [sp, 28]
lsl x0, x0, 3
add x1, sp, 136
ldr x0, [x1, x0]
bl puts
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L6:
ldr w0, [sp, 28]
cmp w0, 15
ble .L7
mov w0, 0
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 .L9
bl __stack_chk_fail
.L9:
mov w0, w1
ldp x29, x30, [sp], 272
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
.section .rodata
.align 3
.LC0:
.string "c_code = ["
.align 3
.LC1:
.string " %c%s%c,"
.align 3
.LC2:
.string "]"
.align 3
.LC3:
.string "python_code = ["
.align 3
.LC4:
.string "for i in range(3):"
.align 3
.LC5:
.string " print(c_code[i])"
.align 3
.LC6:
.string "for code in python_code:"
.align 3
.LC7:
.string " print(python_code[1] % (0x22, code, 0x22))"
.align 3
.LC8:
.string "for i in range(3, 5):"
.align 3
.LC9:
.string "for code in c_code:"
.align 3
.LC10:
.string "for i in range(5, 13):"
.data
.align 3
.LC25:
.xword .LC0
.xword .LC1
.xword .LC2
.xword .LC3
.xword .LC1
.xword .LC2
.xword .LC4
.xword .LC5
.xword .LC6
.xword .LC7
.xword .LC8
.xword .LC5
.xword .LC9
.xword .LC7
.xword .LC10
.xword .LC5
.section .rodata
.align 3
.LC12:
.string "#include<stdio.h>"
.align 3
.LC13:
.string "int main(void) {"
.align 3
.LC14:
.string " const char* python_code[] = {"
.align 3
.LC15:
.string " };"
.align 3
.LC16:
.string " const char* c_code[] = {"
.align 3
.LC17:
.string " puts(python_code[0]);"
.align 3
.LC18:
.string " for (int i = 0; i < 13; i++) { printf(python_code[1], 0x27, c_code[i], 0x27); putchar(0x0A); }"
.align 3
.LC19:
.string " puts(python_code[2]); puts(python_code[3]);"
.align 3
.LC20:
.string " for (int i = 0; i < 16; i++) { printf(python_code[4], 0x27, python_code[i], 0x27); putchar(0x0A); }"
.align 3
.LC21:
.string " for (int i = 5; i < 16; i++) puts(python_code[i]);"
.align 3
.LC22:
.string " return 0;"
.align 3
.LC23:
.string "}"
.data
.align 3
.LC26:
.xword .LC12
.xword .LC13
.xword .LC14
.xword .LC15
.xword .LC16
.xword .LC15
.xword .LC17
.xword .LC18
.xword .LC19
.xword .LC20
.xword .LC21
.xword .LC22
.xword .LC23
.text
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "result = %f\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
mov w0, 10
str w0, [sp, 32]
b .L3
.L2:
ldr x0, [sp, 16]
add x0, x0, 8
ldr x0, [x0]
bl atoi
str w0, [sp, 32]
.L3:
str xzr, [sp, 40]
mov w0, 1
str w0, [sp, 36]
b .L4
.L5:
ldr w0, [sp, 36]
scvtf d0, w0
ldr d1, [sp, 40]
fadd d0, d1, d0
str d0, [sp, 40]
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L4:
ldr w1, [sp, 36]
ldr w0, [sp, 32]
cmp w1, w0
ble .L5
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x2, [x0]
ldr d0, [sp, 40]
adrp x0, .LC0
add x1, x0, :lo12:.LC0
mov x0, x2
bl fprintf
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 "usage: runbg [-l logpath] -- command args...\n"
.align 3
.LC1:
.string " -l logpath path to log stderr/stdout (default bgproc.log)\n"
.align 3
.LC2:
.string " -v enable verbose logging\n"
.text
.align 2
.global usage
.type usage, %function
usage:
.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, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 45
mov x1, 1
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl fwrite
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 63
mov x1, 1
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl fwrite
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 39
mov x1, 1
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl fwrite
mov w0, 2
bl exit
.cfi_endproc
.LFE6:
.size usage, .-usage
.section .rodata
.align 3
.LC3:
.string "bgproc.log"
.align 3
.LC4:
.string "unkown %c\n"
.align 3
.LC5:
.string "hvl:"
.align 3
.LC6:
.string "command: %s\n"
.align 3
.LC7:
.string "narg: %d\n"
.align 3
.LC8:
.string "arg %d: %s\n"
.align 3
.LC9:
.string "runbg: unable to create log file"
.align 3
.LC10:
.string "/dev/null"
.text
.align 2
.global main
.type main, %function
main:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -112]!
.cfi_def_cfa_offset 112
.cfi_offset 29, -112
.cfi_offset 30, -104
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 104]
mov x1, 0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
str x0, [sp, 64]
strb wzr, [sp, 43]
b .L3
.L7:
ldr w0, [sp, 48]
cmp w0, 118
beq .L4
ldr w0, [sp, 48]
cmp w0, 118
bgt .L3
ldr w0, [sp, 48]
cmp w0, 108
beq .L5
ldr w0, [sp, 48]
cmp w0, 108
bgt .L3
ldr w0, [sp, 48]
cmp w0, 63
beq .L6
ldr w0, [sp, 48]
cmp w0, 104
beq .L6
b .L3
.L5:
adrp x0, :got:optarg
ldr x0, [x0, #:got_lo12:optarg]
ldr x0, [x0]
str x0, [sp, 64]
b .L3
.L4:
mov w0, 1
strb w0, [sp, 43]
b .L3
.L6:
adrp x0, :got:optopt
ldr x0, [x0, #:got_lo12:optopt]
ldr w0, [x0]
mov w1, w0
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
bl usage
nop
.L3:
adrp x0, .LC5
add x2, x0, :lo12:.LC5
ldr x1, [sp, 16]
ldr w0, [sp, 28]
bl getopt
str w0, [sp, 48]
ldr w0, [sp, 48]
cmn w0, #1
bne .L7
adrp x0, :got:optind
ldr x0, [x0, #:got_lo12:optind]
ldr w0, [x0]
ldr w1, [sp, 28]
cmp w1, w0
bgt .L8
bl usage
.L8:
adrp x0, :got:optind
ldr x0, [x0, #:got_lo12:optind]
ldr w0, [x0]
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
ldr x0, [x0]
str x0, [sp, 72]
adrp x0, :got:optind
ldr x0, [x0, #:got_lo12:optind]
ldr w0, [x0]
ldr w1, [sp, 28]
sub w0, w1, w0
add w0, w0, 1
sxtw x0, w0
mov x1, 8
bl calloc
str x0, [sp, 80]
adrp x0, :got:optind
ldr x0, [x0, #:got_lo12:optind]
ldr w0, [x0]
str w0, [sp, 44]
b .L9
.L10:
ldrsw x0, [sp, 44]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x1, x1, x0
adrp x0, :got:optind
ldr x0, [x0, #:got_lo12:optind]
ldr w0, [x0]
ldr w2, [sp, 44]
sub w0, w2, w0
sxtw x0, w0
lsl x0, x0, 3
ldr x2, [sp, 80]
add x0, x2, x0
ldr x1, [x1]
str x1, [x0]
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L9:
ldr w1, [sp, 44]
ldr w0, [sp, 28]
cmp w1, w0
blt .L10
ldrb w0, [sp, 43]
cmp w0, 0
beq .L11
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
ldr x2, [sp, 72]
adrp x0, .LC6
add x1, x0, :lo12:.LC6
mov x0, x3
bl fprintf
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
adrp x0, :got:optind
ldr x0, [x0, #:got_lo12:optind]
ldr w0, [x0]
ldr w1, [sp, 28]
sub w0, w1, w0
mov w2, w0
adrp x0, .LC7
add x1, x0, :lo12:.LC7
mov x0, x3
bl fprintf
str wzr, [sp, 44]
b .L12
.L13:
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x4, [x0]
ldrsw x0, [sp, 44]
lsl x0, x0, 3
ldr x1, [sp, 80]
add x0, x1, x0
ldr x0, [x0]
mov x3, x0
ldr w2, [sp, 44]
adrp x0, .LC8
add x1, x0, :lo12:.LC8
mov x0, x4
bl fprintf
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L12:
adrp x0, :got:optind
ldr x0, [x0, #:got_lo12:optind]
ldr w0, [x0]
ldr w1, [sp, 28]
sub w0, w1, w0
ldr w1, [sp, 44]
cmp w1, w0
blt .L13
.L11:
mov w1, 420
ldr x0, [sp, 64]
bl creat
str w0, [sp, 52]
ldr w0, [sp, 52]
cmp w0, 0
bge .L14
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl perror
mov w0, 3
bl exit
.L14:
add x0, sp, 88
mov x1, x0
mov w0, 7
bl getrlimit
mov w0, 3
str w0, [sp, 44]
b .L15
.L16:
ldr w0, [sp, 44]
bl close
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L15:
ldrsw x1, [sp, 44]
ldr x0, [sp, 88]
cmp x1, x0
bcc .L16
bl fork
str w0, [sp, 56]
ldr w0, [sp, 56]
cmn w0, #1
bne .L17
mov w0, -1
b .L23
.L17:
ldr w0, [sp, 56]
cmp w0, 0
beq .L19
ldr w0, [sp, 52]
bl close
mov w0, 0
bl exit
.L19:
bl setsid
cmn w0, #1
bne .L20
mov w0, -1
b .L23
.L20:
bl fork
str w0, [sp, 56]
ldr w0, [sp, 56]
cmn w0, #1
bne .L21
mov w0, -1
b .L23
.L21:
ldr w0, [sp, 56]
cmp w0, 0
beq .L22
mov w0, 0
bl exit
.L22:
mov w1, 0
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl open
str w0, [sp, 60]
mov w1, 420
ldr x0, [sp, 64]
bl creat
str w0, [sp, 52]
mov w1, 0
ldr w0, [sp, 60]
bl dup2
mov w1, 1
ldr w0, [sp, 52]
bl dup2
mov w1, 2
ldr w0, [sp, 52]
bl dup2
ldr x1, [sp, 80]
ldr x0, [sp, 72]
bl execvp
mov w0, 0
.L23:
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 .L24
bl __stack_chk_fail
.L24:
mov w0, w1
ldp x29, x30, [sp], 112
.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 vars
.bss
.align 3
.type vars, %object
.size vars, 16
vars:
.zero 16
.text
.align 2
.global lam_1
.type lam_1, %function
lam_1:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -96]!
.cfi_def_cfa_offset 96
.cfi_offset 29, -96
.cfi_offset 30, -88
mov x29, sp
stp x0, x1, [sp, 32]
str x2, [sp, 24]
mov x0, 32
bl malloc
str x0, [sp, 80]
adrp x0, lam_2
add x0, x0, :lo12:lam_2
str x0, [sp, 88]
ldr x2, [sp, 80]
adrp x0, vars
add x0, x0, :lo12:vars
ldp x0, x1, [x0]
stp x0, x1, [x2]
ldr x0, [sp, 24]
ldr x0, [x0]
ldr x1, [sp, 80]
add x2, x1, 16
ldp x0, x1, [x0]
stp x0, x1, [x2]
mov x0, 16
bl malloc
str x0, [sp, 56]
ldr x1, [sp, 88]
ldr x0, [sp, 56]
str x1, [x0, 8]
ldr x1, [sp, 80]
ldr x0, [sp, 56]
str x1, [x0]
mov w0, 4
str w0, [sp, 64]
ldr x0, [sp, 56]
str x0, [sp, 72]
ldp x0, x1, [sp, 64]
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size lam_1, .-lam_1
.section .rodata
.align 3
.LC0:
.string "program.c"
.align 3
.LC1:
.string "(x5).tag == (x6).tag"
.align 3
.LC2:
.string "type tag = %d\n"
.align 3
.LC3:
.string "0 && \"Attempting to perform arithmetic on non-numeric types\""
.text
.align 2
.global lam_2
.type lam_2, %function
lam_2:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -96]!
.cfi_def_cfa_offset 96
.cfi_offset 29, -96
.cfi_offset 30, -88
mov x29, sp
stp x0, x1, [sp, 32]
str x2, [sp, 24]
ldr x0, [sp, 24]
ldr x0, [x0]
ldp x0, x1, [x0, 16]
stp x0, x1, [sp, 64]
ldr x0, [sp, 24]
ldr x0, [x0]
ldp x0, x1, [x0, 16]
stp x0, x1, [sp, 80]
ldr w1, [sp, 64]
ldr w0, [sp, 80]
cmp w1, w0
beq .L4
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 82
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L4:
ldr w0, [sp, 64]
str w0, [sp, 48]
ldr w0, [sp, 64]
cmp w0, 2
beq .L5
cmp w0, 2
bhi .L6
cmp w0, 0
beq .L7
cmp w0, 1
beq .L8
b .L6
.L7:
mov x0, 4
bl malloc
str x0, [sp, 56]
ldr x0, [sp, 72]
ldr w2, [x0]
ldr x0, [sp, 88]
ldr w1, [x0]
ldr x0, [sp, 56]
mul w1, w2, w1
str w1, [x0]
b .L9
.L8:
mov x0, 4
bl malloc
str x0, [sp, 56]
ldr x0, [sp, 72]
ldr s1, [x0]
ldr x0, [sp, 88]
ldr s0, [x0]
ldr x0, [sp, 56]
fmul s0, s1, s0
str s0, [x0]
b .L9
.L5:
mov x0, 8
bl malloc
str x0, [sp, 56]
ldr x0, [sp, 72]
ldr d1, [x0]
ldr x0, [sp, 88]
ldr d0, [x0]
ldr x0, [sp, 56]
fmul d0, d1, d0
str d0, [x0]
b .L9
.L6:
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
ldr w0, [sp, 64]
mov w2, w0
adrp x0, .LC2
add x1, x0, :lo12:.LC2
mov x0, x3
bl fprintf
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 82
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl __assert_fail
.L9:
ldp x0, x1, [sp, 48]
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size lam_2, .-lam_2
.align 2
.global top_level
.type top_level, %function
top_level:
.LFB8:
.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
adrp x0, vars
add x0, x0, :lo12:vars
ldp x0, x1, [x0]
stp x0, x1, [sp, 40]
mov x0, 32
bl malloc
str x0, [sp, 56]
adrp x0, lam_2
add x0, x0, :lo12:lam_2
str x0, [sp, 64]
ldr x2, [sp, 56]
adrp x0, vars
add x0, x0, :lo12:vars
ldp x0, x1, [x0]
stp x0, x1, [x2]
ldr x0, [sp, 48]
ldr x1, [sp, 56]
add x2, x1, 16
ldp x0, x1, [x0]
stp x0, x1, [x2]
ldr x3, [sp, 64]
ldr x0, [sp, 48]
add x0, x0, 16
add x1, sp, 56
mov x2, x1
ldp x0, x1, [x0]
blr x3
stp x0, x1, [sp, 24]
ldp x0, x1, [sp, 24]
mov x2, x0
mov x3, x1
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x4, [sp, 72]
ldr x1, [x0]
subs x4, x4, x1
mov x1, 0
beq .L13
bl __stack_chk_fail
.L13:
mov x0, x2
mov x1, x3
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size top_level, .-top_level
.section .rodata
.align 3
.LC4:
.string "%d\n"
.text
.align 2
.global main
.type main, %function
main:
.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 x19, [sp, 16]
.cfi_offset 19, -32
adrp x0, vars
add x0, x0, :lo12:vars
mov w1, 7
str w1, [x0]
mov x0, 32
bl malloc
mov x1, x0
adrp x0, vars
add x0, x0, :lo12:vars
str x1, [x0, 8]
adrp x0, vars
add x0, x0, :lo12:vars
ldr x0, [x0, 8]
str wzr, [x0]
adrp x0, vars
add x0, x0, :lo12:vars
ldr x19, [x0, 8]
mov x0, 4
bl malloc
str x0, [x19, 8]
adrp x0, vars
add x0, x0, :lo12:vars
ldr x0, [x0, 8]
ldr x0, [x0, 8]
mov w1, 3
str w1, [x0]
adrp x0, vars
add x0, x0, :lo12:vars
ldr x0, [x0, 8]
add x0, x0, 16
str wzr, [x0]
adrp x0, vars
add x0, x0, :lo12:vars
ldr x0, [x0, 8]
add x19, x0, 16
mov x0, 4
bl malloc
str x0, [x19, 8]
adrp x0, vars
add x0, x0, :lo12:vars
ldr x0, [x0, 8]
add x0, x0, 16
ldr x0, [x0, 8]
mov w1, 2
str w1, [x0]
bl top_level
stp x0, x1, [sp, 32]
ldr x0, [sp, 40]
ldr w0, [x0]
mov w1, w0
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
mov w0, 0
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
.LFE9:
.size main, .-main
.section .rodata
.align 3
.type __PRETTY_FUNCTION__.0, %object
.size __PRETTY_FUNCTION__.0, 6
__PRETTY_FUNCTION__.0:
.string "lam_2"
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "\\t"
.align 3
.LC1:
.string "\\b"
.align 3
.LC2:
.string "\\\\"
.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
b .L2
.L6:
ldr w0, [sp, 28]
cmp w0, 9
bne .L3
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
b .L2
.L3:
ldr w0, [sp, 28]
cmp w0, 8
bne .L4
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
b .L2
.L4:
ldr w0, [sp, 28]
cmp w0, 92
bne .L5
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
b .L2
.L5:
ldr w0, [sp, 28]
bl putchar
.L2:
bl getchar
str w0, [sp, 28]
ldr w0, [sp, 28]
cmn w0, #1
bne .L6
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"
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 40]
mov x1, 0
add x0, sp, 20
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
str xzr, [sp, 32]
str wzr, [sp, 28]
b .L2
.L3:
add x0, sp, 24
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
ldr w0, [sp, 24]
mov x2, 0
ldr x1, [sp, 32]
bl insert
str x0, [sp, 32]
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L2:
ldr w0, [sp, 20]
ldr w1, [sp, 28]
cmp w1, w0
blt .L3
ldr x0, [sp, 32]
bl delleaves
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, 40]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L5
bl __stack_chk_fail
.L5:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
.align 2
.global insert
.type insert, %function
insert:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -96]!
.cfi_def_cfa_offset 96
.cfi_offset 29, -96
.cfi_offset 30, -88
mov x29, sp
str w0, [sp, 44]
str x1, [sp, 32]
str x2, [sp, 24]
ldr x0, [sp, 32]
cmp x0, 0
bne .L7
mov x0, 32
bl malloc
str x0, [sp, 56]
ldr x0, [sp, 56]
str xzr, [x0]
ldr x0, [sp, 56]
ldr w1, [sp, 44]
str w1, [x0, 8]
ldr x0, [sp, 56]
str xzr, [x0, 16]
ldr x0, [sp, 56]
ldr x1, [sp, 24]
str x1, [x0, 24]
ldr x0, [sp, 56]
b .L8
.L7:
ldr x0, [sp, 32]
ldr w0, [x0, 8]
ldr w1, [sp, 44]
cmp w1, w0
bge .L9
ldr x0, [sp, 32]
ldr x0, [x0]
ldr x2, [sp, 32]
mov x1, x0
ldr w0, [sp, 44]
bl insert
mov x1, x0
ldr x0, [sp, 32]
str x1, [x0]
b .L10
.L9:
ldr x0, [sp, 32]
ldr x0, [x0, 16]
ldr x2, [sp, 32]
mov x1, x0
ldr w0, [sp, 44]
bl insert
mov x1, x0
ldr x0, [sp, 32]
str x1, [x0, 16]
.L10:
ldr x0, [sp, 32]
.L8:
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size insert, .-insert
.section .rodata
.align 3
.LC1:
.string "%d_"
.text
.align 2
.global delleaves
.type delleaves, %function
delleaves:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
beq .L17
ldr x0, [sp, 24]
ldr x0, [x0]
cmp x0, 0
bne .L14
ldr x0, [sp, 24]
ldr x0, [x0, 16]
cmp x0, 0
bne .L14
ldr x0, [sp, 24]
ldr x0, [x0, 24]
cmp x0, 0
beq .L15
ldr x0, [sp, 24]
ldr x0, [x0, 24]
ldr x0, [x0]
ldr x1, [sp, 24]
cmp x1, x0
bne .L16
ldr x0, [sp, 24]
ldr x0, [x0, 24]
str xzr, [x0]
b .L15
.L16:
ldr x0, [sp, 24]
ldr x0, [x0, 24]
str xzr, [x0, 16]
.L15:
ldr x0, [sp, 24]
ldr w0, [x0, 8]
mov w1, w0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
ldr x0, [sp, 24]
bl free
b .L11
.L14:
ldr x0, [sp, 24]
ldr x0, [x0]
bl delleaves
ldr x0, [sp, 24]
ldr x0, [x0, 16]
bl delleaves
b .L11
.L17:
nop
.L11:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size delleaves, .-delleaves
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "error in conv1_s: dim must be in [0 3]\n"
.align 3
.LC1:
.string "error in conv1_s: str (stride) must be positive\n"
.align 3
.LC2:
.string "error in conv1_s: dil (dilation) must be positive\n"
.align 3
.LC3:
.string "error in conv1_s: L2 (length of X2) must be positive\n"
.align 3
.LC4:
.string "error in conv1_s: N (total length of X1) must be positive\n"
.align 3
.LC5:
.string "error in conv1_s: L1 (length of vecs in X1) must be positive\n"
.text
.align 2
.global conv1_s
.type conv1_s, %function
conv1_s:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -240]!
.cfi_def_cfa_offset 240
.cfi_offset 29, -240
.cfi_offset 30, -232
mov x29, sp
str x0, [sp, 72]
str x1, [sp, 64]
str x2, [sp, 56]
str x3, [sp, 48]
str x4, [sp, 40]
str x5, [sp, 32]
str x6, [sp, 24]
str w7, [sp, 20]
ldr x0, [sp, 280]
cmp x0, 3
bls .L2
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 39
mov x1, 1
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl fwrite
mov w0, 1
b .L3
.L2:
ldr x0, [sp, 256]
cmp x0, 0
bne .L4
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 48
mov x1, 1
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl fwrite
mov w0, 1
b .L3
.L4:
ldr x0, [sp, 264]
cmp x0, 0
bne .L5
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 50
mov x1, 1
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl fwrite
mov w0, 1
b .L3
.L5:
ldr x0, [sp, 240]
cmp x0, 0
bne .L6
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 53
mov x1, 1
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl fwrite
mov w0, 1
b .L3
.L6:
ldr x1, [sp, 48]
ldr x0, [sp, 40]
mul x1, x1, x0
ldr x0, [sp, 32]
mul x0, x1, x0
ldr x1, [sp, 24]
mul x0, x1, x0
str x0, [sp, 192]
ldr x0, [sp, 280]
cmp x0, 0
beq .L7
ldr x0, [sp, 280]
cmp x0, 1
beq .L8
ldr x0, [sp, 280]
cmp x0, 2
bne .L9
ldr x0, [sp, 32]
b .L12
.L9:
ldr x0, [sp, 24]
b .L12
.L8:
ldr x0, [sp, 40]
b .L12
.L7:
ldr x0, [sp, 48]
.L12:
str x0, [sp, 200]
ldr x0, [sp, 192]
cmp x0, 0
bne .L13
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 58
mov x1, 1
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl fwrite
mov w0, 1
b .L3
.L13:
ldr x0, [sp, 200]
cmp x0, 0
bne .L14
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 61
mov x1, 1
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl fwrite
mov w0, 1
b .L3
.L14:
ldr x0, [sp, 264]
mov w1, w0
ldr x0, [sp, 240]
sub x0, x0, #1
mul w0, w1, w0
add w0, w0, 1
str w0, [sp, 128]
ldr x0, [sp, 256]
mov w1, w0
ldr x0, [sp, 264]
mov w2, w0
ldr x0, [sp, 240]
mul w0, w2, w0
sub w0, w1, w0
str w0, [sp, 132]
str xzr, [sp, 136]
ldr w0, [sp, 248]
str w0, [sp, 92]
ldr w1, [sp, 92]
ldr w0, [sp, 128]
sub w0, w1, w0
add w0, w0, 1
str w0, [sp, 96]
ldr x0, [sp, 272]
cmp x0, 0
beq .L15
ldr x1, [sp, 200]
ldr x0, [sp, 192]
cmp x1, x0
bne .L16
b .L17
.L19:
ldr x0, [sp, 72]
add x1, x0, 4
str x1, [sp, 72]
str wzr, [x0]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 92]
add w0, w1, w0
str w0, [sp, 92]
ldr x0, [sp, 136]
add x0, x0, 1
str x0, [sp, 136]
.L17:
ldr w0, [sp, 92]
cmp w0, 0
bge .L18
ldr x1, [sp, 136]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L19
.L18:
ldr w1, [sp, 92]
ldr w0, [sp, 128]
sub w0, w1, w0
add w0, w0, 1
str w0, [sp, 96]
b .L20
.L24:
str wzr, [sp, 100]
ldrsw x0, [sp, 92]
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr w0, [sp, 92]
str w0, [sp, 104]
b .L21
.L22:
ldr x0, [sp, 64]
ldr s1, [x0]
ldr x0, [sp, 56]
ldr s0, [x0]
fmul s0, s1, s0
ldr s1, [sp, 100]
fadd s0, s1, s0
str s0, [sp, 100]
ldr w0, [sp, 104]
ldr x1, [sp, 264]
sub w0, w0, w1
str w0, [sp, 104]
ldr x0, [sp, 264]
lsl x0, x0, 2
neg x0, x0
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 56]
add x0, x0, 4
str x0, [sp, 56]
.L21:
ldr w0, [sp, 104]
cmp w0, 0
bge .L22
ldr x0, [sp, 72]
add x1, x0, 4
str x1, [sp, 72]
ldr s0, [sp, 100]
str s0, [x0]
ldrsw x0, [sp, 92]
ldr x1, [sp, 264]
udiv x2, x0, x1
ldr x1, [sp, 264]
mul x1, x2, x1
sub x0, x0, x1
ldr x1, [sp, 264]
sub x0, x1, x0
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 92]
sdiv w0, w0, w1
add w0, w0, 1
sxtw x0, w0
lsl x0, x0, 2
neg x0, x0
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 96]
add w0, w1, w0
str w0, [sp, 96]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 92]
add w0, w1, w0
str w0, [sp, 92]
ldr x0, [sp, 136]
add x0, x0, 1
str x0, [sp, 136]
.L20:
ldr w0, [sp, 96]
cmp w0, 0
bge .L23
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 92]
cmp w0, w1
bge .L23
ldr x1, [sp, 136]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L24
.L23:
ldr w0, [sp, 96]
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 240]
lsl x0, x0, 2
sub x0, x0, #4
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 128]
cmp w0, w1
ble .L32
b .L26
.L30:
str wzr, [sp, 100]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 96]
neg w0, w0
ldr x2, [sp, 264]
sdiv w0, w0, w2
mul w0, w1, w0
str w0, [sp, 108]
b .L27
.L28:
ldr w1, [sp, 108]
ldr w0, [sp, 96]
add w0, w1, w0
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
ldr s1, [x0]
ldr w0, [sp, 108]
neg w0, w0
ldr x1, [sp, 264]
sdiv w0, w0, w1
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 56]
add x0, x1, x0
ldr s0, [x0]
fmul s0, s1, s0
ldr s1, [sp, 100]
fadd s0, s1, s0
str s0, [sp, 100]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 108]
add w0, w1, w0
str w0, [sp, 108]
.L27:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 96]
sub w0, w1, w0
ldr w1, [sp, 108]
cmp w1, w0
blt .L28
ldr x0, [sp, 72]
add x1, x0, 4
str x1, [sp, 72]
ldr s0, [sp, 100]
str s0, [x0]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 96]
add w0, w1, w0
str w0, [sp, 96]
ldr x0, [sp, 136]
add x0, x0, 1
str x0, [sp, 136]
.L26:
ldr w0, [sp, 96]
cmp w0, 0
bge .L29
ldr x1, [sp, 136]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L30
.L29:
ldrsw x0, [sp, 96]
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr w1, [sp, 96]
ldr w0, [sp, 128]
add w0, w1, w0
sub w0, w0, #1
str w0, [sp, 92]
b .L37
.L36:
str wzr, [sp, 100]
ldr x0, [sp, 240]
str x0, [sp, 144]
b .L33
.L34:
ldr x0, [sp, 64]
ldr s1, [x0]
ldr x0, [sp, 56]
ldr s0, [x0]
fmul s0, s1, s0
ldr s1, [sp, 100]
fadd s0, s1, s0
str s0, [sp, 100]
ldr x0, [sp, 144]
sub x0, x0, #1
str x0, [sp, 144]
ldr x0, [sp, 264]
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 56]
sub x0, x0, #4
str x0, [sp, 56]
.L33:
ldr x0, [sp, 144]
cmp x0, 0
bne .L34
ldr x0, [sp, 72]
add x1, x0, 4
str x1, [sp, 72]
ldr s0, [sp, 100]
str s0, [x0]
ldrsw x0, [sp, 132]
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 240]
lsl x0, x0, 2
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 92]
add w0, w1, w0
str w0, [sp, 92]
ldr x0, [sp, 136]
add x0, x0, 1
str x0, [sp, 136]
.L32:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 92]
cmp w0, w1
bge .L35
ldr x1, [sp, 136]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L36
.L35:
ldr w1, [sp, 92]
ldr w0, [sp, 128]
sub w0, w1, w0
add w0, w0, 1
str w0, [sp, 96]
b .L37
.L41:
str xzr, [sp, 152]
str wzr, [sp, 100]
ldr w0, [sp, 96]
str w0, [sp, 112]
b .L38
.L39:
ldr x0, [sp, 64]
ldr s1, [x0]
ldr x0, [sp, 56]
ldr s0, [x0]
fmul s0, s1, s0
ldr s1, [sp, 100]
fadd s0, s1, s0
str s0, [sp, 100]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 112]
add w0, w1, w0
str w0, [sp, 112]
ldr x0, [sp, 152]
add x0, x0, 1
str x0, [sp, 152]
ldr x0, [sp, 264]
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 56]
sub x0, x0, #4
str x0, [sp, 56]
.L38:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 112]
cmp w0, w1
blt .L39
ldr x0, [sp, 72]
add x1, x0, 4
str x1, [sp, 72]
ldr s0, [sp, 100]
str s0, [x0]
ldr x0, [sp, 256]
mov w1, w0
ldr x0, [sp, 264]
mov w2, w0
ldr x0, [sp, 152]
mul w0, w2, w0
sub w0, w1, w0
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 152]
lsl x0, x0, 2
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 96]
add w0, w1, w0
str w0, [sp, 96]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 92]
add w0, w1, w0
str w0, [sp, 92]
ldr x0, [sp, 136]
add x0, x0, 1
str x0, [sp, 136]
.L37:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 96]
cmp w0, w1
bge .L42
ldr x1, [sp, 136]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L41
b .L42
.L43:
ldr x0, [sp, 72]
add x1, x0, 4
str x1, [sp, 72]
str wzr, [x0]
ldr x0, [sp, 136]
add x0, x0, 1
str x0, [sp, 136]
.L42:
ldr x1, [sp, 136]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L43
b .L15
.L16:
ldr w0, [sp, 20]
cmp w0, 0
beq .L44
ldr x0, [sp, 280]
cmp x0, 0
beq .L45
ldr x0, [sp, 280]
cmp x0, 1
beq .L46
ldr x0, [sp, 280]
cmp x0, 2
bne .L47
ldr x1, [sp, 48]
ldr x0, [sp, 40]
mul x0, x1, x0
b .L51
.L47:
ldr x1, [sp, 48]
ldr x0, [sp, 40]
mul x1, x1, x0
ldr x0, [sp, 32]
mul x0, x1, x0
b .L51
.L46:
ldr x0, [sp, 48]
b .L51
.L45:
mov x0, 1
b .L51
.L44:
ldr x0, [sp, 280]
cmp x0, 0
bne .L52
ldr x1, [sp, 40]
ldr x0, [sp, 32]
mul x1, x1, x0
ldr x0, [sp, 24]
mul x0, x1, x0
b .L51
.L52:
ldr x0, [sp, 280]
cmp x0, 1
bne .L54
ldr x1, [sp, 32]
ldr x0, [sp, 24]
mul x0, x1, x0
b .L51
.L54:
ldr x0, [sp, 280]
cmp x0, 2
bne .L56
ldr x0, [sp, 24]
b .L51
.L56:
mov x0, 1
.L51:
str x0, [sp, 208]
ldr w0, [sp, 20]
cmp w0, 0
beq .L58
ldr x0, [sp, 280]
cmp x0, 0
bne .L58
ldr x1, [sp, 40]
ldr x0, [sp, 32]
mul x1, x1, x0
ldr x0, [sp, 24]
mul x0, x1, x0
b .L59
.L58:
ldr x0, [sp, 208]
.L59:
str x0, [sp, 216]
ldr x1, [sp, 192]
ldr x0, [sp, 200]
udiv x0, x1, x0
str x0, [sp, 224]
ldr x1, [sp, 224]
ldr x0, [sp, 216]
udiv x0, x1, x0
str x0, [sp, 232]
ldr x0, [sp, 232]
str x0, [sp, 160]
b .L60
.L90:
ldr x0, [sp, 216]
str x0, [sp, 168]
b .L61
.L89:
ldr w0, [sp, 248]
str w0, [sp, 92]
ldr w1, [sp, 92]
ldr w0, [sp, 128]
sub w0, w1, w0
add w0, w0, 1
str w0, [sp, 96]
str xzr, [sp, 136]
b .L62
.L64:
ldr x0, [sp, 72]
str wzr, [x0]
ldr x0, [sp, 208]
lsl x0, x0, 2
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 92]
add w0, w1, w0
str w0, [sp, 92]
ldr x0, [sp, 136]
add x0, x0, 1
str x0, [sp, 136]
.L62:
ldr w0, [sp, 92]
cmp w0, 0
bge .L63
ldr x1, [sp, 136]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L64
.L63:
ldr w1, [sp, 92]
ldr w0, [sp, 128]
sub w0, w1, w0
add w0, w0, 1
str w0, [sp, 96]
b .L65
.L69:
str wzr, [sp, 100]
ldr x0, [sp, 208]
mov w1, w0
ldr w0, [sp, 92]
mul w0, w1, w0
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr w0, [sp, 92]
str w0, [sp, 116]
b .L66
.L67:
ldr x0, [sp, 64]
ldr s1, [x0]
ldr x0, [sp, 56]
ldr s0, [x0]
fmul s0, s1, s0
ldr s1, [sp, 100]
fadd s0, s1, s0
str s0, [sp, 100]
ldr w0, [sp, 116]
ldr x1, [sp, 264]
sub w0, w0, w1
str w0, [sp, 116]
ldr x1, [sp, 264]
ldr x0, [sp, 208]
mul x0, x1, x0
lsl x0, x0, 2
neg x0, x0
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 56]
add x0, x0, 4
str x0, [sp, 56]
.L66:
ldr w0, [sp, 116]
cmp w0, 0
bge .L67
ldr x0, [sp, 72]
ldr s0, [sp, 100]
str s0, [x0]
ldr x0, [sp, 208]
lsl x0, x0, 2
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
ldrsw x0, [sp, 92]
ldr x1, [sp, 264]
udiv x2, x0, x1
ldr x1, [sp, 264]
mul x1, x2, x1
sub x0, x0, x1
ldr x1, [sp, 264]
sub x1, x1, x0
ldr x0, [sp, 208]
mul x0, x1, x0
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 92]
sdiv w0, w0, w1
add w0, w0, 1
sxtw x0, w0
lsl x0, x0, 2
neg x0, x0
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 96]
add w0, w1, w0
str w0, [sp, 96]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 92]
add w0, w1, w0
str w0, [sp, 92]
ldr x0, [sp, 136]
add x0, x0, 1
str x0, [sp, 136]
.L65:
ldr w0, [sp, 96]
cmp w0, 0
bge .L68
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 92]
cmp w0, w1
bge .L68
ldr x1, [sp, 136]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L69
.L68:
ldr x0, [sp, 208]
mov w1, w0
ldr w0, [sp, 96]
mul w0, w1, w0
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 240]
lsl x0, x0, 2
sub x0, x0, #4
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 128]
cmp w0, w1
ble .L77
b .L71
.L75:
str wzr, [sp, 100]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 96]
neg w0, w0
ldr x2, [sp, 264]
sdiv w0, w0, w2
mul w0, w1, w0
str w0, [sp, 120]
b .L72
.L73:
ldr x0, [sp, 208]
mov w2, w0
ldr w1, [sp, 120]
ldr w0, [sp, 96]
add w0, w1, w0
mul w0, w2, w0
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
ldr s1, [x0]
ldr w0, [sp, 120]
neg w0, w0
ldr x1, [sp, 264]
sdiv w0, w0, w1
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 56]
add x0, x1, x0
ldr s0, [x0]
fmul s0, s1, s0
ldr s1, [sp, 100]
fadd s0, s1, s0
str s0, [sp, 100]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 120]
add w0, w1, w0
str w0, [sp, 120]
.L72:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 96]
sub w0, w1, w0
ldr w1, [sp, 120]
cmp w1, w0
blt .L73
ldr x0, [sp, 72]
ldr s0, [sp, 100]
str s0, [x0]
ldr x0, [sp, 208]
lsl x0, x0, 2
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 96]
add w0, w1, w0
str w0, [sp, 96]
ldr x0, [sp, 136]
add x0, x0, 1
str x0, [sp, 136]
.L71:
ldr w0, [sp, 96]
cmp w0, 0
bge .L74
ldr x1, [sp, 136]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L75
.L74:
ldr x0, [sp, 208]
mov w1, w0
ldr w0, [sp, 96]
mul w0, w1, w0
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr w1, [sp, 96]
ldr w0, [sp, 128]
add w0, w1, w0
sub w0, w0, #1
str w0, [sp, 92]
b .L82
.L81:
str wzr, [sp, 100]
ldr x0, [sp, 240]
str x0, [sp, 176]
b .L78
.L79:
ldr x0, [sp, 64]
ldr s1, [x0]
ldr x0, [sp, 56]
ldr s0, [x0]
fmul s0, s1, s0
ldr s1, [sp, 100]
fadd s0, s1, s0
str s0, [sp, 100]
ldr x0, [sp, 176]
sub x0, x0, #1
str x0, [sp, 176]
ldr x1, [sp, 264]
ldr x0, [sp, 208]
mul x0, x1, x0
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 56]
sub x0, x0, #4
str x0, [sp, 56]
.L78:
ldr x0, [sp, 176]
cmp x0, 0
bne .L79
ldr x0, [sp, 72]
ldr s0, [sp, 100]
str s0, [x0]
ldr x0, [sp, 208]
lsl x0, x0, 2
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
ldr x0, [sp, 208]
mov w1, w0
ldr w0, [sp, 132]
mul w0, w1, w0
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 240]
lsl x0, x0, 2
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 92]
add w0, w1, w0
str w0, [sp, 92]
ldr x0, [sp, 136]
add x0, x0, 1
str x0, [sp, 136]
.L77:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 92]
cmp w0, w1
bge .L80
ldr x1, [sp, 136]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L81
.L80:
ldr w1, [sp, 92]
ldr w0, [sp, 128]
sub w0, w1, w0
add w0, w0, 1
str w0, [sp, 96]
b .L82
.L86:
str xzr, [sp, 184]
str wzr, [sp, 100]
ldr w0, [sp, 96]
str w0, [sp, 124]
b .L83
.L84:
ldr x0, [sp, 64]
ldr s1, [x0]
ldr x0, [sp, 56]
ldr s0, [x0]
fmul s0, s1, s0
ldr s1, [sp, 100]
fadd s0, s1, s0
str s0, [sp, 100]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 124]
add w0, w1, w0
str w0, [sp, 124]
ldr x0, [sp, 184]
add x0, x0, 1
str x0, [sp, 184]
ldr x1, [sp, 264]
ldr x0, [sp, 208]
mul x0, x1, x0
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 56]
sub x0, x0, #4
str x0, [sp, 56]
.L83:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 124]
cmp w0, w1
blt .L84
ldr x0, [sp, 72]
ldr s0, [sp, 100]
str s0, [x0]
ldr x0, [sp, 208]
lsl x0, x0, 2
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
ldr x0, [sp, 208]
mov w1, w0
ldr x0, [sp, 256]
mov w2, w0
ldr x0, [sp, 264]
mov w3, w0
ldr x0, [sp, 184]
mul w0, w3, w0
sub w0, w2, w0
mul w0, w1, w0
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 184]
lsl x0, x0, 2
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 96]
add w0, w1, w0
str w0, [sp, 96]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 92]
add w0, w1, w0
str w0, [sp, 92]
ldr x0, [sp, 136]
add x0, x0, 1
str x0, [sp, 136]
.L82:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 96]
cmp w0, w1
bge .L87
ldr x1, [sp, 136]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L86
b .L87
.L88:
ldr x0, [sp, 72]
str wzr, [x0]
ldr x0, [sp, 208]
lsl x0, x0, 2
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
ldr x0, [sp, 136]
add x0, x0, 1
str x0, [sp, 136]
.L87:
ldr x1, [sp, 136]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L88
ldr x0, [sp, 208]
mov w1, w0
ldr w0, [sp, 96]
mul w0, w1, w0
sxtw x0, w0
lsl x0, x0, 2
neg x0, x0
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
mov x1, 1
ldr x0, [sp, 240]
sub x0, x1, x0
lsl x0, x0, 2
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 168]
sub x0, x0, #1
str x0, [sp, 168]
ldr x0, [sp, 64]
add x0, x0, 4
str x0, [sp, 64]
ldr x1, [sp, 208]
ldr x0, [sp, 272]
mul x0, x1, x0
mov x1, 1
sub x0, x1, x0
lsl x0, x0, 2
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
.L61:
ldr x0, [sp, 168]
cmp x0, 0
bne .L89
ldr x0, [sp, 160]
sub x0, x0, #1
str x0, [sp, 160]
ldr x0, [sp, 200]
sub x1, x0, #1
ldr x0, [sp, 216]
mul x0, x1, x0
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 272]
sub x1, x0, #1
ldr x0, [sp, 216]
mul x0, x1, x0
lsl x0, x0, 2
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
.L60:
ldr x0, [sp, 160]
cmp x0, 0
bne .L90
.L15:
mov w0, 0
.L3:
ldp x29, x30, [sp], 240
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size conv1_s, .-conv1_s
.section .rodata
.align 3
.LC6:
.string "error in conv1_d: dim must be in [0 3]\n"
.align 3
.LC7:
.string "error in conv1_d: str (stride) must be positive\n"
.align 3
.LC8:
.string "error in conv1_d: dil (dilation) must be positive\n"
.align 3
.LC9:
.string "error in conv1_d: L2 (length of X2) must be positive\n"
.align 3
.LC10:
.string "error in conv1_d: N (total length of X1) must be positive\n"
.align 3
.LC11:
.string "error in conv1_d: L1 (length of vecs in X1) must be positive\n"
.text
.align 2
.global conv1_d
.type conv1_d, %function
conv1_d:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -240]!
.cfi_def_cfa_offset 240
.cfi_offset 29, -240
.cfi_offset 30, -232
mov x29, sp
str x0, [sp, 72]
str x1, [sp, 64]
str x2, [sp, 56]
str x3, [sp, 48]
str x4, [sp, 40]
str x5, [sp, 32]
str x6, [sp, 24]
str w7, [sp, 20]
ldr x0, [sp, 280]
cmp x0, 3
bls .L92
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 39
mov x1, 1
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl fwrite
mov w0, 1
b .L93
.L92:
ldr x0, [sp, 256]
cmp x0, 0
bne .L94
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 48
mov x1, 1
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl fwrite
mov w0, 1
b .L93
.L94:
ldr x0, [sp, 264]
cmp x0, 0
bne .L95
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 50
mov x1, 1
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl fwrite
mov w0, 1
b .L93
.L95:
ldr x0, [sp, 240]
cmp x0, 0
bne .L96
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 53
mov x1, 1
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl fwrite
mov w0, 1
b .L93
.L96:
ldr x1, [sp, 48]
ldr x0, [sp, 40]
mul x1, x1, x0
ldr x0, [sp, 32]
mul x0, x1, x0
ldr x1, [sp, 24]
mul x0, x1, x0
str x0, [sp, 192]
ldr x0, [sp, 280]
cmp x0, 0
beq .L97
ldr x0, [sp, 280]
cmp x0, 1
beq .L98
ldr x0, [sp, 280]
cmp x0, 2
bne .L99
ldr x0, [sp, 32]
b .L102
.L99:
ldr x0, [sp, 24]
b .L102
.L98:
ldr x0, [sp, 40]
b .L102
.L97:
ldr x0, [sp, 48]
.L102:
str x0, [sp, 200]
ldr x0, [sp, 192]
cmp x0, 0
bne .L103
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 58
mov x1, 1
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl fwrite
mov w0, 1
b .L93
.L103:
ldr x0, [sp, 200]
cmp x0, 0
bne .L104
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 61
mov x1, 1
adrp x0, .LC11
add x0, x0, :lo12:.LC11
bl fwrite
mov w0, 1
b .L93
.L104:
ldr x0, [sp, 264]
mov w1, w0
ldr x0, [sp, 240]
sub x0, x0, #1
mul w0, w1, w0
add w0, w0, 1
str w0, [sp, 120]
ldr x0, [sp, 256]
mov w1, w0
ldr x0, [sp, 264]
mov w2, w0
ldr x0, [sp, 240]
mul w0, w2, w0
sub w0, w1, w0
str w0, [sp, 124]
str xzr, [sp, 128]
ldr w0, [sp, 248]
str w0, [sp, 88]
ldr w1, [sp, 88]
ldr w0, [sp, 120]
sub w0, w1, w0
add w0, w0, 1
str w0, [sp, 92]
ldr x0, [sp, 272]
cmp x0, 0
beq .L105
ldr x1, [sp, 200]
ldr x0, [sp, 192]
cmp x1, x0
bne .L106
b .L107
.L109:
ldr x0, [sp, 72]
add x1, x0, 8
str x1, [sp, 72]
str xzr, [x0]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 88]
add w0, w1, w0
str w0, [sp, 88]
ldr x0, [sp, 128]
add x0, x0, 1
str x0, [sp, 128]
.L107:
ldr w0, [sp, 88]
cmp w0, 0
bge .L108
ldr x1, [sp, 128]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L109
.L108:
ldr w1, [sp, 88]
ldr w0, [sp, 120]
sub w0, w1, w0
add w0, w0, 1
str w0, [sp, 92]
b .L110
.L114:
str xzr, [sp, 136]
ldrsw x0, [sp, 88]
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr w0, [sp, 88]
str w0, [sp, 96]
b .L111
.L112:
ldr x0, [sp, 64]
ldr d1, [x0]
ldr x0, [sp, 56]
ldr d0, [x0]
fmul d0, d1, d0
ldr d1, [sp, 136]
fadd d0, d1, d0
str d0, [sp, 136]
ldr w0, [sp, 96]
ldr x1, [sp, 264]
sub w0, w0, w1
str w0, [sp, 96]
ldr x0, [sp, 264]
lsl x0, x0, 3
neg x0, x0
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 56]
add x0, x0, 8
str x0, [sp, 56]
.L111:
ldr w0, [sp, 96]
cmp w0, 0
bge .L112
ldr x0, [sp, 72]
add x1, x0, 8
str x1, [sp, 72]
ldr d0, [sp, 136]
str d0, [x0]
ldrsw x0, [sp, 88]
ldr x1, [sp, 264]
udiv x2, x0, x1
ldr x1, [sp, 264]
mul x1, x2, x1
sub x0, x0, x1
ldr x1, [sp, 264]
sub x0, x1, x0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 88]
sdiv w0, w0, w1
add w0, w0, 1
sxtw x0, w0
lsl x0, x0, 3
neg x0, x0
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 92]
add w0, w1, w0
str w0, [sp, 92]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 88]
add w0, w1, w0
str w0, [sp, 88]
ldr x0, [sp, 128]
add x0, x0, 1
str x0, [sp, 128]
.L110:
ldr w0, [sp, 92]
cmp w0, 0
bge .L113
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 88]
cmp w0, w1
bge .L113
ldr x1, [sp, 128]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L114
.L113:
ldr w0, [sp, 92]
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 240]
lsl x0, x0, 3
sub x0, x0, #8
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 120]
cmp w0, w1
ble .L122
b .L116
.L120:
str xzr, [sp, 136]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 92]
neg w0, w0
ldr x2, [sp, 264]
sdiv w0, w0, w2
mul w0, w1, w0
str w0, [sp, 100]
b .L117
.L118:
ldr w1, [sp, 100]
ldr w0, [sp, 92]
add w0, w1, w0
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
ldr d1, [x0]
ldr w0, [sp, 100]
neg w0, w0
ldr x1, [sp, 264]
sdiv w0, w0, w1
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 56]
add x0, x1, x0
ldr d0, [x0]
fmul d0, d1, d0
ldr d1, [sp, 136]
fadd d0, d1, d0
str d0, [sp, 136]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 100]
add w0, w1, w0
str w0, [sp, 100]
.L117:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 92]
sub w0, w1, w0
ldr w1, [sp, 100]
cmp w1, w0
blt .L118
ldr x0, [sp, 72]
add x1, x0, 8
str x1, [sp, 72]
ldr d0, [sp, 136]
str d0, [x0]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 92]
add w0, w1, w0
str w0, [sp, 92]
ldr x0, [sp, 128]
add x0, x0, 1
str x0, [sp, 128]
.L116:
ldr w0, [sp, 92]
cmp w0, 0
bge .L119
ldr x1, [sp, 128]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L120
.L119:
ldrsw x0, [sp, 92]
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr w1, [sp, 92]
ldr w0, [sp, 120]
add w0, w1, w0
sub w0, w0, #1
str w0, [sp, 88]
b .L127
.L126:
str xzr, [sp, 136]
ldr x0, [sp, 240]
str x0, [sp, 144]
b .L123
.L124:
ldr x0, [sp, 64]
ldr d1, [x0]
ldr x0, [sp, 56]
ldr d0, [x0]
fmul d0, d1, d0
ldr d1, [sp, 136]
fadd d0, d1, d0
str d0, [sp, 136]
ldr x0, [sp, 144]
sub x0, x0, #1
str x0, [sp, 144]
ldr x0, [sp, 264]
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 56]
sub x0, x0, #8
str x0, [sp, 56]
.L123:
ldr x0, [sp, 144]
cmp x0, 0
bne .L124
ldr x0, [sp, 72]
add x1, x0, 8
str x1, [sp, 72]
ldr d0, [sp, 136]
str d0, [x0]
ldrsw x0, [sp, 124]
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 240]
lsl x0, x0, 3
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 88]
add w0, w1, w0
str w0, [sp, 88]
ldr x0, [sp, 128]
add x0, x0, 1
str x0, [sp, 128]
.L122:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 88]
cmp w0, w1
bge .L125
ldr x1, [sp, 128]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L126
.L125:
ldr w1, [sp, 88]
ldr w0, [sp, 120]
sub w0, w1, w0
add w0, w0, 1
str w0, [sp, 92]
b .L127
.L131:
str xzr, [sp, 152]
str xzr, [sp, 136]
ldr w0, [sp, 92]
str w0, [sp, 104]
b .L128
.L129:
ldr x0, [sp, 64]
ldr d1, [x0]
ldr x0, [sp, 56]
ldr d0, [x0]
fmul d0, d1, d0
ldr d1, [sp, 136]
fadd d0, d1, d0
str d0, [sp, 136]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 104]
add w0, w1, w0
str w0, [sp, 104]
ldr x0, [sp, 152]
add x0, x0, 1
str x0, [sp, 152]
ldr x0, [sp, 264]
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 56]
sub x0, x0, #8
str x0, [sp, 56]
.L128:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 104]
cmp w0, w1
blt .L129
ldr x0, [sp, 72]
add x1, x0, 8
str x1, [sp, 72]
ldr d0, [sp, 136]
str d0, [x0]
ldr x0, [sp, 256]
mov w1, w0
ldr x0, [sp, 264]
mov w2, w0
ldr x0, [sp, 152]
mul w0, w2, w0
sub w0, w1, w0
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 152]
lsl x0, x0, 3
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 92]
add w0, w1, w0
str w0, [sp, 92]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 88]
add w0, w1, w0
str w0, [sp, 88]
ldr x0, [sp, 128]
add x0, x0, 1
str x0, [sp, 128]
.L127:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 92]
cmp w0, w1
bge .L132
ldr x1, [sp, 128]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L131
b .L132
.L133:
ldr x0, [sp, 72]
add x1, x0, 8
str x1, [sp, 72]
str xzr, [x0]
ldr x0, [sp, 128]
add x0, x0, 1
str x0, [sp, 128]
.L132:
ldr x1, [sp, 128]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L133
b .L105
.L106:
ldr w0, [sp, 20]
cmp w0, 0
beq .L134
ldr x0, [sp, 280]
cmp x0, 0
beq .L135
ldr x0, [sp, 280]
cmp x0, 1
beq .L136
ldr x0, [sp, 280]
cmp x0, 2
bne .L137
ldr x1, [sp, 48]
ldr x0, [sp, 40]
mul x0, x1, x0
b .L141
.L137:
ldr x1, [sp, 48]
ldr x0, [sp, 40]
mul x1, x1, x0
ldr x0, [sp, 32]
mul x0, x1, x0
b .L141
.L136:
ldr x0, [sp, 48]
b .L141
.L135:
mov x0, 1
b .L141
.L134:
ldr x0, [sp, 280]
cmp x0, 0
bne .L142
ldr x1, [sp, 40]
ldr x0, [sp, 32]
mul x1, x1, x0
ldr x0, [sp, 24]
mul x0, x1, x0
b .L141
.L142:
ldr x0, [sp, 280]
cmp x0, 1
bne .L144
ldr x1, [sp, 32]
ldr x0, [sp, 24]
mul x0, x1, x0
b .L141
.L144:
ldr x0, [sp, 280]
cmp x0, 2
bne .L146
ldr x0, [sp, 24]
b .L141
.L146:
mov x0, 1
.L141:
str x0, [sp, 208]
ldr w0, [sp, 20]
cmp w0, 0
beq .L148
ldr x0, [sp, 280]
cmp x0, 0
bne .L148
ldr x1, [sp, 40]
ldr x0, [sp, 32]
mul x1, x1, x0
ldr x0, [sp, 24]
mul x0, x1, x0
b .L149
.L148:
ldr x0, [sp, 208]
.L149:
str x0, [sp, 216]
ldr x1, [sp, 192]
ldr x0, [sp, 200]
udiv x0, x1, x0
str x0, [sp, 224]
ldr x1, [sp, 224]
ldr x0, [sp, 216]
udiv x0, x1, x0
str x0, [sp, 232]
ldr x0, [sp, 232]
str x0, [sp, 160]
b .L150
.L180:
ldr x0, [sp, 216]
str x0, [sp, 168]
b .L151
.L179:
ldr w0, [sp, 248]
str w0, [sp, 88]
ldr w1, [sp, 88]
ldr w0, [sp, 120]
sub w0, w1, w0
add w0, w0, 1
str w0, [sp, 92]
str xzr, [sp, 128]
b .L152
.L154:
ldr x0, [sp, 72]
str xzr, [x0]
ldr x0, [sp, 208]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 88]
add w0, w1, w0
str w0, [sp, 88]
ldr x0, [sp, 128]
add x0, x0, 1
str x0, [sp, 128]
.L152:
ldr w0, [sp, 88]
cmp w0, 0
bge .L153
ldr x1, [sp, 128]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L154
.L153:
ldr w1, [sp, 88]
ldr w0, [sp, 120]
sub w0, w1, w0
add w0, w0, 1
str w0, [sp, 92]
b .L155
.L159:
str xzr, [sp, 136]
ldr x0, [sp, 208]
mov w1, w0
ldr w0, [sp, 88]
mul w0, w1, w0
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr w0, [sp, 88]
str w0, [sp, 108]
b .L156
.L157:
ldr x0, [sp, 64]
ldr d1, [x0]
ldr x0, [sp, 56]
ldr d0, [x0]
fmul d0, d1, d0
ldr d1, [sp, 136]
fadd d0, d1, d0
str d0, [sp, 136]
ldr w0, [sp, 108]
ldr x1, [sp, 264]
sub w0, w0, w1
str w0, [sp, 108]
ldr x1, [sp, 264]
ldr x0, [sp, 208]
mul x0, x1, x0
lsl x0, x0, 3
neg x0, x0
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 56]
add x0, x0, 8
str x0, [sp, 56]
.L156:
ldr w0, [sp, 108]
cmp w0, 0
bge .L157
ldr x0, [sp, 72]
ldr d0, [sp, 136]
str d0, [x0]
ldr x0, [sp, 208]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
ldrsw x0, [sp, 88]
ldr x1, [sp, 264]
udiv x2, x0, x1
ldr x1, [sp, 264]
mul x1, x2, x1
sub x0, x0, x1
ldr x1, [sp, 264]
sub x1, x1, x0
ldr x0, [sp, 208]
mul x0, x1, x0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 88]
sdiv w0, w0, w1
add w0, w0, 1
sxtw x0, w0
lsl x0, x0, 3
neg x0, x0
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 92]
add w0, w1, w0
str w0, [sp, 92]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 88]
add w0, w1, w0
str w0, [sp, 88]
ldr x0, [sp, 128]
add x0, x0, 1
str x0, [sp, 128]
.L155:
ldr w0, [sp, 92]
cmp w0, 0
bge .L158
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 88]
cmp w0, w1
bge .L158
ldr x1, [sp, 128]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L159
.L158:
ldr x0, [sp, 208]
mov w1, w0
ldr w0, [sp, 92]
mul w0, w1, w0
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 240]
lsl x0, x0, 3
sub x0, x0, #8
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 120]
cmp w0, w1
ble .L167
b .L161
.L165:
str xzr, [sp, 136]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 92]
neg w0, w0
ldr x2, [sp, 264]
sdiv w0, w0, w2
mul w0, w1, w0
str w0, [sp, 112]
b .L162
.L163:
ldr x0, [sp, 208]
mov w2, w0
ldr w1, [sp, 112]
ldr w0, [sp, 92]
add w0, w1, w0
mul w0, w2, w0
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
ldr d1, [x0]
ldr w0, [sp, 112]
neg w0, w0
ldr x1, [sp, 264]
sdiv w0, w0, w1
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 56]
add x0, x1, x0
ldr d0, [x0]
fmul d0, d1, d0
ldr d1, [sp, 136]
fadd d0, d1, d0
str d0, [sp, 136]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 112]
add w0, w1, w0
str w0, [sp, 112]
.L162:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 92]
sub w0, w1, w0
ldr w1, [sp, 112]
cmp w1, w0
blt .L163
ldr x0, [sp, 72]
ldr d0, [sp, 136]
str d0, [x0]
ldr x0, [sp, 208]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 92]
add w0, w1, w0
str w0, [sp, 92]
ldr x0, [sp, 128]
add x0, x0, 1
str x0, [sp, 128]
.L161:
ldr w0, [sp, 92]
cmp w0, 0
bge .L164
ldr x1, [sp, 128]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L165
.L164:
ldr x0, [sp, 208]
mov w1, w0
ldr w0, [sp, 92]
mul w0, w1, w0
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr w1, [sp, 92]
ldr w0, [sp, 120]
add w0, w1, w0
sub w0, w0, #1
str w0, [sp, 88]
b .L172
.L171:
str xzr, [sp, 136]
ldr x0, [sp, 240]
str x0, [sp, 176]
b .L168
.L169:
ldr x0, [sp, 64]
ldr d1, [x0]
ldr x0, [sp, 56]
ldr d0, [x0]
fmul d0, d1, d0
ldr d1, [sp, 136]
fadd d0, d1, d0
str d0, [sp, 136]
ldr x0, [sp, 176]
sub x0, x0, #1
str x0, [sp, 176]
ldr x1, [sp, 264]
ldr x0, [sp, 208]
mul x0, x1, x0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 56]
sub x0, x0, #8
str x0, [sp, 56]
.L168:
ldr x0, [sp, 176]
cmp x0, 0
bne .L169
ldr x0, [sp, 72]
ldr d0, [sp, 136]
str d0, [x0]
ldr x0, [sp, 208]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
ldr x0, [sp, 208]
mov w1, w0
ldr w0, [sp, 124]
mul w0, w1, w0
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 240]
lsl x0, x0, 3
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 88]
add w0, w1, w0
str w0, [sp, 88]
ldr x0, [sp, 128]
add x0, x0, 1
str x0, [sp, 128]
.L167:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 88]
cmp w0, w1
bge .L170
ldr x1, [sp, 128]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L171
.L170:
ldr w1, [sp, 88]
ldr w0, [sp, 120]
sub w0, w1, w0
add w0, w0, 1
str w0, [sp, 92]
b .L172
.L176:
str xzr, [sp, 184]
str xzr, [sp, 136]
ldr w0, [sp, 92]
str w0, [sp, 116]
b .L173
.L174:
ldr x0, [sp, 64]
ldr d1, [x0]
ldr x0, [sp, 56]
ldr d0, [x0]
fmul d0, d1, d0
ldr d1, [sp, 136]
fadd d0, d1, d0
str d0, [sp, 136]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 116]
add w0, w1, w0
str w0, [sp, 116]
ldr x0, [sp, 184]
add x0, x0, 1
str x0, [sp, 184]
ldr x1, [sp, 264]
ldr x0, [sp, 208]
mul x0, x1, x0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 56]
sub x0, x0, #8
str x0, [sp, 56]
.L173:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 116]
cmp w0, w1
blt .L174
ldr x0, [sp, 72]
ldr d0, [sp, 136]
str d0, [x0]
ldr x0, [sp, 208]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
ldr x0, [sp, 208]
mov w1, w0
ldr x0, [sp, 256]
mov w2, w0
ldr x0, [sp, 264]
mov w3, w0
ldr x0, [sp, 184]
mul w0, w3, w0
sub w0, w2, w0
mul w0, w1, w0
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 184]
lsl x0, x0, 3
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 92]
add w0, w1, w0
str w0, [sp, 92]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 88]
add w0, w1, w0
str w0, [sp, 88]
ldr x0, [sp, 128]
add x0, x0, 1
str x0, [sp, 128]
.L172:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 92]
cmp w0, w1
bge .L177
ldr x1, [sp, 128]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L176
b .L177
.L178:
ldr x0, [sp, 72]
str xzr, [x0]
ldr x0, [sp, 208]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
ldr x0, [sp, 128]
add x0, x0, 1
str x0, [sp, 128]
.L177:
ldr x1, [sp, 128]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L178
ldr x0, [sp, 208]
mov w1, w0
ldr w0, [sp, 92]
mul w0, w1, w0
sxtw x0, w0
lsl x0, x0, 3
neg x0, x0
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
mov x1, 1
ldr x0, [sp, 240]
sub x0, x1, x0
lsl x0, x0, 3
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 168]
sub x0, x0, #1
str x0, [sp, 168]
ldr x0, [sp, 64]
add x0, x0, 8
str x0, [sp, 64]
ldr x1, [sp, 208]
ldr x0, [sp, 272]
mul x0, x1, x0
mov x1, 1
sub x0, x1, x0
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
.L151:
ldr x0, [sp, 168]
cmp x0, 0
bne .L179
ldr x0, [sp, 160]
sub x0, x0, #1
str x0, [sp, 160]
ldr x0, [sp, 200]
sub x1, x0, #1
ldr x0, [sp, 216]
mul x0, x1, x0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 272]
sub x1, x0, #1
ldr x0, [sp, 216]
mul x0, x1, x0
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
.L150:
ldr x0, [sp, 160]
cmp x0, 0
bne .L180
.L105:
mov w0, 0
.L93:
ldp x29, x30, [sp], 240
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size conv1_d, .-conv1_d
.section .rodata
.align 3
.LC12:
.string "error in conv1_c: dim must be in [0 3]\n"
.align 3
.LC13:
.string "error in conv1_c: str (stride) must be positive\n"
.align 3
.LC14:
.string "error in conv1_c: dil (dilation) must be positive\n"
.align 3
.LC15:
.string "error in conv1_c: L2 (length of X2) must be positive\n"
.align 3
.LC16:
.string "error in conv1_c: N (total length of X1) must be positive\n"
.align 3
.LC17:
.string "error in conv1_c: L1 (length of vecs in X1) must be positive\n"
.text
.align 2
.global conv1_c
.type conv1_c, %function
conv1_c:
.LFB2:
.cfi_startproc
stp x29, x30, [sp, -240]!
.cfi_def_cfa_offset 240
.cfi_offset 29, -240
.cfi_offset 30, -232
mov x29, sp
str x0, [sp, 72]
str x1, [sp, 64]
str x2, [sp, 56]
str x3, [sp, 48]
str x4, [sp, 40]
str x5, [sp, 32]
str x6, [sp, 24]
str w7, [sp, 20]
ldr x0, [sp, 280]
cmp x0, 3
bls .L182
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 39
mov x1, 1
adrp x0, .LC12
add x0, x0, :lo12:.LC12
bl fwrite
mov w0, 1
b .L183
.L182:
ldr x0, [sp, 256]
cmp x0, 0
bne .L184
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 48
mov x1, 1
adrp x0, .LC13
add x0, x0, :lo12:.LC13
bl fwrite
mov w0, 1
b .L183
.L184:
ldr x0, [sp, 264]
cmp x0, 0
bne .L185
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 50
mov x1, 1
adrp x0, .LC14
add x0, x0, :lo12:.LC14
bl fwrite
mov w0, 1
b .L183
.L185:
ldr x0, [sp, 240]
cmp x0, 0
bne .L186
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 53
mov x1, 1
adrp x0, .LC15
add x0, x0, :lo12:.LC15
bl fwrite
mov w0, 1
b .L183
.L186:
ldr x1, [sp, 48]
ldr x0, [sp, 40]
mul x1, x1, x0
ldr x0, [sp, 32]
mul x0, x1, x0
ldr x1, [sp, 24]
mul x0, x1, x0
str x0, [sp, 192]
ldr x0, [sp, 280]
cmp x0, 0
beq .L187
ldr x0, [sp, 280]
cmp x0, 1
beq .L188
ldr x0, [sp, 280]
cmp x0, 2
bne .L189
ldr x0, [sp, 32]
b .L192
.L189:
ldr x0, [sp, 24]
b .L192
.L188:
ldr x0, [sp, 40]
b .L192
.L187:
ldr x0, [sp, 48]
.L192:
str x0, [sp, 200]
ldr x0, [sp, 192]
cmp x0, 0
bne .L193
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 58
mov x1, 1
adrp x0, .LC16
add x0, x0, :lo12:.LC16
bl fwrite
mov w0, 1
b .L183
.L193:
ldr x0, [sp, 200]
cmp x0, 0
bne .L194
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 61
mov x1, 1
adrp x0, .LC17
add x0, x0, :lo12:.LC17
bl fwrite
mov w0, 1
b .L183
.L194:
ldr x0, [sp, 264]
mov w1, w0
ldr x0, [sp, 240]
sub x0, x0, #1
mul w0, w1, w0
add w0, w0, 1
str w0, [sp, 128]
ldr x0, [sp, 256]
mov w1, w0
ldr x0, [sp, 264]
mov w2, w0
ldr x0, [sp, 240]
mul w0, w2, w0
sub w0, w1, w0
lsl w0, w0, 1
str w0, [sp, 132]
str xzr, [sp, 136]
ldr w0, [sp, 248]
str w0, [sp, 88]
ldr w1, [sp, 88]
ldr w0, [sp, 128]
sub w0, w1, w0
add w0, w0, 1
str w0, [sp, 92]
ldr x0, [sp, 272]
cmp x0, 0
beq .L195
ldr x1, [sp, 200]
ldr x0, [sp, 192]
cmp x1, x0
bne .L196
b .L197
.L199:
ldr x0, [sp, 72]
add x1, x0, 4
str x1, [sp, 72]
str wzr, [x0]
ldr x0, [sp, 72]
add x1, x0, 4
str x1, [sp, 72]
str wzr, [x0]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 88]
add w0, w1, w0
str w0, [sp, 88]
ldr x0, [sp, 136]
add x0, x0, 1
str x0, [sp, 136]
.L197:
ldr w0, [sp, 88]
cmp w0, 0
bge .L198
ldr x1, [sp, 136]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L199
.L198:
ldr w1, [sp, 88]
ldr w0, [sp, 128]
sub w0, w1, w0
add w0, w0, 1
str w0, [sp, 92]
b .L200
.L204:
str wzr, [sp, 100]
ldr s0, [sp, 100]
str s0, [sp, 96]
ldr w0, [sp, 88]
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr w0, [sp, 88]
str w0, [sp, 104]
b .L201
.L202:
ldr x0, [sp, 64]
ldr s1, [x0]
ldr x0, [sp, 56]
ldr s0, [x0]
fmul s1, s1, s0
ldr x0, [sp, 64]
add x0, x0, 4
ldr s2, [x0]
ldr x0, [sp, 56]
add x0, x0, 4
ldr s0, [x0]
fmul s0, s2, s0
fsub s0, s1, s0
ldr s1, [sp, 96]
fadd s0, s1, s0
str s0, [sp, 96]
ldr x0, [sp, 64]
ldr s1, [x0]
ldr x0, [sp, 56]
add x0, x0, 4
ldr s0, [x0]
fmul s1, s1, s0
ldr x0, [sp, 64]
add x0, x0, 4
ldr s2, [x0]
ldr x0, [sp, 56]
ldr s0, [x0]
fmul s0, s2, s0
fadd s0, s1, s0
ldr s1, [sp, 100]
fadd s0, s1, s0
str s0, [sp, 100]
ldr w0, [sp, 104]
ldr x1, [sp, 264]
sub w0, w0, w1
str w0, [sp, 104]
ldr x0, [sp, 264]
lsl x0, x0, 3
neg x0, x0
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 56]
add x0, x0, 8
str x0, [sp, 56]
.L201:
ldr w0, [sp, 104]
cmp w0, 0
bge .L202
ldr x0, [sp, 72]
add x1, x0, 4
str x1, [sp, 72]
ldr s0, [sp, 96]
str s0, [x0]
ldr x0, [sp, 72]
add x1, x0, 4
str x1, [sp, 72]
ldr s0, [sp, 100]
str s0, [x0]
ldrsw x0, [sp, 88]
ldr x1, [sp, 264]
udiv x2, x0, x1
ldr x1, [sp, 264]
mul x1, x2, x1
sub x0, x0, x1
ldr x1, [sp, 264]
sub x0, x1, x0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 88]
sdiv w0, w0, w1
add w0, w0, 1
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 2
neg x0, x0
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 92]
add w0, w1, w0
str w0, [sp, 92]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 88]
add w0, w1, w0
str w0, [sp, 88]
ldr x0, [sp, 136]
add x0, x0, 1
str x0, [sp, 136]
.L200:
ldr w0, [sp, 92]
cmp w0, 0
bge .L203
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 88]
cmp w0, w1
bge .L203
ldr x1, [sp, 136]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L204
.L203:
ldr w0, [sp, 92]
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 240]
sub x0, x0, #1
lsl x0, x0, 3
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 128]
cmp w0, w1
ble .L212
b .L206
.L210:
str wzr, [sp, 100]
ldr s0, [sp, 100]
str s0, [sp, 96]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 92]
neg w0, w0
ldr x2, [sp, 264]
sdiv w0, w0, w2
mul w0, w1, w0
str w0, [sp, 108]
b .L207
.L208:
ldr w1, [sp, 108]
ldr w0, [sp, 92]
add w0, w1, w0
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
ldr s1, [x0]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 108]
sdiv w1, w0, w1
mov w0, 0
sub w0, w0, w1
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 56]
add x0, x1, x0
ldr s0, [x0]
fmul s1, s1, s0
ldr w1, [sp, 108]
ldr w0, [sp, 92]
add w0, w1, w0
lsl w0, w0, 1
sxtw x0, w0
add x0, x0, 1
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
ldr s2, [x0]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 108]
sdiv w1, w0, w1
mov w0, 0
sub w0, w0, w1
lsl w0, w0, 1
sxtw x0, w0
add x0, x0, 1
lsl x0, x0, 2
ldr x1, [sp, 56]
add x0, x1, x0
ldr s0, [x0]
fmul s0, s2, s0
fsub s0, s1, s0
ldr s1, [sp, 96]
fadd s0, s1, s0
str s0, [sp, 96]
ldr w1, [sp, 108]
ldr w0, [sp, 92]
add w0, w1, w0
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
ldr s1, [x0]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 108]
sdiv w1, w0, w1
mov w0, 0
sub w0, w0, w1
lsl w0, w0, 1
sxtw x0, w0
add x0, x0, 1
lsl x0, x0, 2
ldr x1, [sp, 56]
add x0, x1, x0
ldr s0, [x0]
fmul s1, s1, s0
ldr w1, [sp, 108]
ldr w0, [sp, 92]
add w0, w1, w0
lsl w0, w0, 1
sxtw x0, w0
add x0, x0, 1
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
ldr s2, [x0]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 108]
sdiv w1, w0, w1
mov w0, 0
sub w0, w0, w1
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 56]
add x0, x1, x0
ldr s0, [x0]
fmul s0, s2, s0
fadd s0, s1, s0
ldr s1, [sp, 100]
fadd s0, s1, s0
str s0, [sp, 100]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 108]
add w0, w1, w0
str w0, [sp, 108]
.L207:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 92]
sub w0, w1, w0
ldr w1, [sp, 108]
cmp w1, w0
blt .L208
ldr x0, [sp, 72]
add x1, x0, 4
str x1, [sp, 72]
ldr s0, [sp, 96]
str s0, [x0]
ldr x0, [sp, 72]
add x1, x0, 4
str x1, [sp, 72]
ldr s0, [sp, 100]
str s0, [x0]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 92]
add w0, w1, w0
str w0, [sp, 92]
ldr x0, [sp, 136]
add x0, x0, 1
str x0, [sp, 136]
.L206:
ldr w0, [sp, 92]
cmp w0, 0
bge .L209
ldr x1, [sp, 136]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L210
.L209:
ldr w0, [sp, 92]
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr w1, [sp, 92]
ldr w0, [sp, 128]
add w0, w1, w0
sub w0, w0, #1
str w0, [sp, 88]
b .L217
.L216:
str wzr, [sp, 100]
ldr s0, [sp, 100]
str s0, [sp, 96]
ldr x0, [sp, 240]
str x0, [sp, 144]
b .L213
.L214:
ldr x0, [sp, 64]
ldr s1, [x0]
ldr x0, [sp, 56]
ldr s0, [x0]
fmul s1, s1, s0
ldr x0, [sp, 64]
add x0, x0, 4
ldr s2, [x0]
ldr x0, [sp, 56]
add x0, x0, 4
ldr s0, [x0]
fmul s0, s2, s0
fsub s0, s1, s0
ldr s1, [sp, 96]
fadd s0, s1, s0
str s0, [sp, 96]
ldr x0, [sp, 64]
ldr s1, [x0]
ldr x0, [sp, 56]
add x0, x0, 4
ldr s0, [x0]
fmul s1, s1, s0
ldr x0, [sp, 64]
add x0, x0, 4
ldr s2, [x0]
ldr x0, [sp, 56]
ldr s0, [x0]
fmul s0, s2, s0
fadd s0, s1, s0
ldr s1, [sp, 100]
fadd s0, s1, s0
str s0, [sp, 100]
ldr x0, [sp, 144]
sub x0, x0, #1
str x0, [sp, 144]
ldr x0, [sp, 264]
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 56]
sub x0, x0, #8
str x0, [sp, 56]
.L213:
ldr x0, [sp, 144]
cmp x0, 0
bne .L214
ldr x0, [sp, 72]
add x1, x0, 4
str x1, [sp, 72]
ldr s0, [sp, 96]
str s0, [x0]
ldr x0, [sp, 72]
add x1, x0, 4
str x1, [sp, 72]
ldr s0, [sp, 100]
str s0, [x0]
ldrsw x0, [sp, 132]
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 240]
lsl x0, x0, 3
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 88]
add w0, w1, w0
str w0, [sp, 88]
ldr x0, [sp, 136]
add x0, x0, 1
str x0, [sp, 136]
.L212:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 88]
cmp w0, w1
bge .L215
ldr x1, [sp, 136]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L216
.L215:
ldr w1, [sp, 88]
ldr w0, [sp, 128]
sub w0, w1, w0
add w0, w0, 1
str w0, [sp, 92]
b .L217
.L221:
str xzr, [sp, 152]
str wzr, [sp, 100]
ldr s0, [sp, 100]
str s0, [sp, 96]
ldr w0, [sp, 92]
str w0, [sp, 112]
b .L218
.L219:
ldr x0, [sp, 64]
ldr s1, [x0]
ldr x0, [sp, 56]
ldr s0, [x0]
fmul s1, s1, s0
ldr x0, [sp, 64]
add x0, x0, 4
ldr s2, [x0]
ldr x0, [sp, 56]
add x0, x0, 4
ldr s0, [x0]
fmul s0, s2, s0
fsub s0, s1, s0
ldr s1, [sp, 96]
fadd s0, s1, s0
str s0, [sp, 96]
ldr x0, [sp, 64]
ldr s1, [x0]
ldr x0, [sp, 56]
add x0, x0, 4
ldr s0, [x0]
fmul s1, s1, s0
ldr x0, [sp, 64]
add x0, x0, 4
ldr s2, [x0]
ldr x0, [sp, 56]
ldr s0, [x0]
fmul s0, s2, s0
fadd s0, s1, s0
ldr s1, [sp, 100]
fadd s0, s1, s0
str s0, [sp, 100]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 112]
add w0, w1, w0
str w0, [sp, 112]
ldr x0, [sp, 152]
add x0, x0, 1
str x0, [sp, 152]
ldr x0, [sp, 264]
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 56]
sub x0, x0, #8
str x0, [sp, 56]
.L218:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 112]
cmp w0, w1
blt .L219
ldr x0, [sp, 72]
add x1, x0, 4
str x1, [sp, 72]
ldr s0, [sp, 96]
str s0, [x0]
ldr x0, [sp, 72]
add x1, x0, 4
str x1, [sp, 72]
ldr s0, [sp, 100]
str s0, [x0]
ldr x0, [sp, 256]
mov w1, w0
ldr x0, [sp, 264]
mov w2, w0
ldr x0, [sp, 152]
mul w0, w2, w0
sub w0, w1, w0
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 152]
lsl x0, x0, 3
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 92]
add w0, w1, w0
str w0, [sp, 92]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 88]
add w0, w1, w0
str w0, [sp, 88]
ldr x0, [sp, 136]
add x0, x0, 1
str x0, [sp, 136]
.L217:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 92]
cmp w0, w1
bge .L222
ldr x1, [sp, 136]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L221
b .L222
.L223:
ldr x0, [sp, 72]
add x1, x0, 4
str x1, [sp, 72]
str wzr, [x0]
ldr x0, [sp, 72]
add x1, x0, 4
str x1, [sp, 72]
str wzr, [x0]
ldr x0, [sp, 136]
add x0, x0, 1
str x0, [sp, 136]
.L222:
ldr x1, [sp, 136]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L223
b .L195
.L196:
ldr w0, [sp, 20]
cmp w0, 0
beq .L224
ldr x0, [sp, 280]
cmp x0, 0
beq .L225
ldr x0, [sp, 280]
cmp x0, 1
beq .L226
ldr x0, [sp, 280]
cmp x0, 2
bne .L227
ldr x1, [sp, 48]
ldr x0, [sp, 40]
mul x0, x1, x0
b .L231
.L227:
ldr x1, [sp, 48]
ldr x0, [sp, 40]
mul x1, x1, x0
ldr x0, [sp, 32]
mul x0, x1, x0
b .L231
.L226:
ldr x0, [sp, 48]
b .L231
.L225:
mov x0, 1
b .L231
.L224:
ldr x0, [sp, 280]
cmp x0, 0
bne .L232
ldr x1, [sp, 40]
ldr x0, [sp, 32]
mul x1, x1, x0
ldr x0, [sp, 24]
mul x0, x1, x0
b .L231
.L232:
ldr x0, [sp, 280]
cmp x0, 1
bne .L234
ldr x1, [sp, 32]
ldr x0, [sp, 24]
mul x0, x1, x0
b .L231
.L234:
ldr x0, [sp, 280]
cmp x0, 2
bne .L236
ldr x0, [sp, 24]
b .L231
.L236:
mov x0, 1
.L231:
str x0, [sp, 208]
ldr w0, [sp, 20]
cmp w0, 0
beq .L238
ldr x0, [sp, 280]
cmp x0, 0
bne .L238
ldr x1, [sp, 40]
ldr x0, [sp, 32]
mul x1, x1, x0
ldr x0, [sp, 24]
mul x0, x1, x0
b .L239
.L238:
ldr x0, [sp, 208]
.L239:
str x0, [sp, 216]
ldr x1, [sp, 192]
ldr x0, [sp, 200]
udiv x0, x1, x0
str x0, [sp, 224]
ldr x1, [sp, 224]
ldr x0, [sp, 216]
udiv x0, x1, x0
str x0, [sp, 232]
ldr x0, [sp, 232]
str x0, [sp, 160]
b .L240
.L270:
ldr x0, [sp, 216]
str x0, [sp, 168]
b .L241
.L269:
ldr w0, [sp, 248]
str w0, [sp, 88]
ldr w1, [sp, 88]
ldr w0, [sp, 128]
sub w0, w1, w0
add w0, w0, 1
str w0, [sp, 92]
str xzr, [sp, 136]
b .L242
.L244:
ldr x0, [sp, 72]
add x0, x0, 4
str wzr, [x0]
ldr s0, [x0]
ldr x0, [sp, 72]
str s0, [x0]
ldr x0, [sp, 208]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 88]
add w0, w1, w0
str w0, [sp, 88]
ldr x0, [sp, 136]
add x0, x0, 1
str x0, [sp, 136]
.L242:
ldr w0, [sp, 88]
cmp w0, 0
bge .L243
ldr x1, [sp, 136]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L244
.L243:
ldr w1, [sp, 88]
ldr w0, [sp, 128]
sub w0, w1, w0
add w0, w0, 1
str w0, [sp, 92]
b .L245
.L249:
str wzr, [sp, 100]
ldr s0, [sp, 100]
str s0, [sp, 96]
ldr x0, [sp, 208]
mov w1, w0
ldr w0, [sp, 88]
mul w0, w1, w0
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr w0, [sp, 88]
str w0, [sp, 116]
b .L246
.L247:
ldr x0, [sp, 64]
ldr s1, [x0]
ldr x0, [sp, 56]
ldr s0, [x0]
fmul s1, s1, s0
ldr x0, [sp, 64]
add x0, x0, 4
ldr s2, [x0]
ldr x0, [sp, 56]
add x0, x0, 4
ldr s0, [x0]
fmul s0, s2, s0
fsub s0, s1, s0
ldr s1, [sp, 96]
fadd s0, s1, s0
str s0, [sp, 96]
ldr x0, [sp, 64]
ldr s1, [x0]
ldr x0, [sp, 56]
add x0, x0, 4
ldr s0, [x0]
fmul s1, s1, s0
ldr x0, [sp, 64]
add x0, x0, 4
ldr s2, [x0]
ldr x0, [sp, 56]
ldr s0, [x0]
fmul s0, s2, s0
fadd s0, s1, s0
ldr s1, [sp, 100]
fadd s0, s1, s0
str s0, [sp, 100]
ldr w0, [sp, 116]
ldr x1, [sp, 264]
sub w0, w0, w1
str w0, [sp, 116]
ldr x1, [sp, 264]
ldr x0, [sp, 208]
mul x0, x1, x0
lsl x0, x0, 3
neg x0, x0
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 56]
add x0, x0, 8
str x0, [sp, 56]
.L246:
ldr w0, [sp, 116]
cmp w0, 0
bge .L247
ldr x0, [sp, 72]
ldr s0, [sp, 96]
str s0, [x0]
ldr x0, [sp, 72]
add x0, x0, 4
ldr s0, [sp, 100]
str s0, [x0]
ldr x0, [sp, 208]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
ldrsw x0, [sp, 88]
ldr x1, [sp, 264]
udiv x2, x0, x1
ldr x1, [sp, 264]
mul x1, x2, x1
sub x0, x0, x1
ldr x1, [sp, 264]
sub x1, x1, x0
ldr x0, [sp, 208]
mul x0, x1, x0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 88]
sdiv w0, w0, w1
add w0, w0, 1
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 2
neg x0, x0
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 92]
add w0, w1, w0
str w0, [sp, 92]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 88]
add w0, w1, w0
str w0, [sp, 88]
ldr x0, [sp, 136]
add x0, x0, 1
str x0, [sp, 136]
.L245:
ldr w0, [sp, 92]
cmp w0, 0
bge .L248
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 88]
cmp w0, w1
bge .L248
ldr x1, [sp, 136]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L249
.L248:
ldr x0, [sp, 208]
mov w1, w0
ldr w0, [sp, 92]
mul w0, w1, w0
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 240]
sub x0, x0, #1
lsl x0, x0, 3
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 128]
cmp w0, w1
ble .L257
b .L251
.L255:
str wzr, [sp, 100]
ldr s0, [sp, 100]
str s0, [sp, 96]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 92]
neg w0, w0
ldr x2, [sp, 264]
sdiv w0, w0, w2
mul w0, w1, w0
str w0, [sp, 120]
b .L252
.L253:
ldr x0, [sp, 208]
mov w2, w0
ldr w1, [sp, 120]
ldr w0, [sp, 92]
add w0, w1, w0
mul w0, w2, w0
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
ldr s1, [x0]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 120]
sdiv w1, w0, w1
mov w0, 0
sub w0, w0, w1
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 56]
add x0, x1, x0
ldr s0, [x0]
fmul s1, s1, s0
ldr x0, [sp, 208]
mov w2, w0
ldr w1, [sp, 120]
ldr w0, [sp, 92]
add w0, w1, w0
mul w0, w2, w0
lsl w0, w0, 1
sxtw x0, w0
add x0, x0, 1
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
ldr s2, [x0]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 120]
sdiv w1, w0, w1
mov w0, 0
sub w0, w0, w1
lsl w0, w0, 1
sxtw x0, w0
add x0, x0, 1
lsl x0, x0, 2
ldr x1, [sp, 56]
add x0, x1, x0
ldr s0, [x0]
fmul s0, s2, s0
fsub s0, s1, s0
ldr s1, [sp, 96]
fadd s0, s1, s0
str s0, [sp, 96]
ldr x0, [sp, 208]
mov w2, w0
ldr w1, [sp, 120]
ldr w0, [sp, 92]
add w0, w1, w0
mul w0, w2, w0
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
ldr s1, [x0]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 120]
sdiv w1, w0, w1
mov w0, 0
sub w0, w0, w1
lsl w0, w0, 1
sxtw x0, w0
add x0, x0, 1
lsl x0, x0, 2
ldr x1, [sp, 56]
add x0, x1, x0
ldr s0, [x0]
fmul s1, s1, s0
ldr x0, [sp, 208]
mov w2, w0
ldr w1, [sp, 120]
ldr w0, [sp, 92]
add w0, w1, w0
mul w0, w2, w0
lsl w0, w0, 1
sxtw x0, w0
add x0, x0, 1
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
ldr s2, [x0]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 120]
sdiv w1, w0, w1
mov w0, 0
sub w0, w0, w1
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 56]
add x0, x1, x0
ldr s0, [x0]
fmul s0, s2, s0
fadd s0, s1, s0
ldr s1, [sp, 100]
fadd s0, s1, s0
str s0, [sp, 100]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 120]
add w0, w1, w0
str w0, [sp, 120]
.L252:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 92]
sub w0, w1, w0
ldr w1, [sp, 120]
cmp w1, w0
blt .L253
ldr x0, [sp, 72]
ldr s0, [sp, 96]
str s0, [x0]
ldr x0, [sp, 72]
add x0, x0, 4
ldr s0, [sp, 100]
str s0, [x0]
ldr x0, [sp, 208]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 92]
add w0, w1, w0
str w0, [sp, 92]
ldr x0, [sp, 136]
add x0, x0, 1
str x0, [sp, 136]
.L251:
ldr w0, [sp, 92]
cmp w0, 0
bge .L254
ldr x1, [sp, 136]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L255
.L254:
ldr x0, [sp, 208]
mov w1, w0
ldr w0, [sp, 92]
mul w0, w1, w0
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr w1, [sp, 92]
ldr w0, [sp, 128]
add w0, w1, w0
sub w0, w0, #1
str w0, [sp, 88]
b .L262
.L261:
str wzr, [sp, 100]
ldr s0, [sp, 100]
str s0, [sp, 96]
ldr x0, [sp, 240]
str x0, [sp, 176]
b .L258
.L259:
ldr x0, [sp, 64]
ldr s1, [x0]
ldr x0, [sp, 56]
ldr s0, [x0]
fmul s1, s1, s0
ldr x0, [sp, 64]
add x0, x0, 4
ldr s2, [x0]
ldr x0, [sp, 56]
add x0, x0, 4
ldr s0, [x0]
fmul s0, s2, s0
fsub s0, s1, s0
ldr s1, [sp, 96]
fadd s0, s1, s0
str s0, [sp, 96]
ldr x0, [sp, 64]
ldr s1, [x0]
ldr x0, [sp, 56]
add x0, x0, 4
ldr s0, [x0]
fmul s1, s1, s0
ldr x0, [sp, 64]
add x0, x0, 4
ldr s2, [x0]
ldr x0, [sp, 56]
ldr s0, [x0]
fmul s0, s2, s0
fadd s0, s1, s0
ldr s1, [sp, 100]
fadd s0, s1, s0
str s0, [sp, 100]
ldr x0, [sp, 176]
sub x0, x0, #1
str x0, [sp, 176]
ldr x1, [sp, 264]
ldr x0, [sp, 208]
mul x0, x1, x0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 56]
sub x0, x0, #8
str x0, [sp, 56]
.L258:
ldr x0, [sp, 176]
cmp x0, 0
bne .L259
ldr x0, [sp, 72]
ldr s0, [sp, 96]
str s0, [x0]
ldr x0, [sp, 72]
add x0, x0, 4
ldr s0, [sp, 100]
str s0, [x0]
ldr x0, [sp, 208]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
ldr x0, [sp, 208]
mov w1, w0
ldr w0, [sp, 132]
mul w0, w1, w0
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 240]
lsl x0, x0, 3
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 88]
add w0, w1, w0
str w0, [sp, 88]
ldr x0, [sp, 136]
add x0, x0, 1
str x0, [sp, 136]
.L257:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 88]
cmp w0, w1
bge .L260
ldr x1, [sp, 136]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L261
.L260:
ldr w1, [sp, 88]
ldr w0, [sp, 128]
sub w0, w1, w0
add w0, w0, 1
str w0, [sp, 92]
b .L262
.L266:
str xzr, [sp, 184]
str wzr, [sp, 100]
ldr s0, [sp, 100]
str s0, [sp, 96]
ldr w0, [sp, 92]
str w0, [sp, 124]
b .L263
.L264:
ldr x0, [sp, 64]
ldr s1, [x0]
ldr x0, [sp, 56]
ldr s0, [x0]
fmul s1, s1, s0
ldr x0, [sp, 64]
add x0, x0, 4
ldr s2, [x0]
ldr x0, [sp, 56]
add x0, x0, 4
ldr s0, [x0]
fmul s0, s2, s0
fsub s0, s1, s0
ldr s1, [sp, 96]
fadd s0, s1, s0
str s0, [sp, 96]
ldr x0, [sp, 64]
ldr s1, [x0]
ldr x0, [sp, 56]
add x0, x0, 4
ldr s0, [x0]
fmul s1, s1, s0
ldr x0, [sp, 64]
add x0, x0, 4
ldr s2, [x0]
ldr x0, [sp, 56]
ldr s0, [x0]
fmul s0, s2, s0
fadd s0, s1, s0
ldr s1, [sp, 100]
fadd s0, s1, s0
str s0, [sp, 100]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 124]
add w0, w1, w0
str w0, [sp, 124]
ldr x0, [sp, 184]
add x0, x0, 1
str x0, [sp, 184]
ldr x1, [sp, 264]
ldr x0, [sp, 208]
mul x0, x1, x0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 56]
sub x0, x0, #8
str x0, [sp, 56]
.L263:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 124]
cmp w0, w1
blt .L264
ldr x0, [sp, 72]
ldr s0, [sp, 96]
str s0, [x0]
ldr x0, [sp, 72]
add x0, x0, 4
ldr s0, [sp, 100]
str s0, [x0]
ldr x0, [sp, 208]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
ldr x0, [sp, 208]
mov w1, w0
ldr x0, [sp, 256]
mov w2, w0
ldr x0, [sp, 264]
mov w3, w0
ldr x0, [sp, 184]
mul w0, w3, w0
sub w0, w2, w0
mul w0, w1, w0
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 184]
lsl x0, x0, 3
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 92]
add w0, w1, w0
str w0, [sp, 92]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 88]
add w0, w1, w0
str w0, [sp, 88]
ldr x0, [sp, 136]
add x0, x0, 1
str x0, [sp, 136]
.L262:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 92]
cmp w0, w1
bge .L267
ldr x1, [sp, 136]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L266
b .L267
.L268:
ldr x0, [sp, 72]
add x0, x0, 4
str wzr, [x0]
ldr s0, [x0]
ldr x0, [sp, 72]
str s0, [x0]
ldr x0, [sp, 208]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
ldr x0, [sp, 136]
add x0, x0, 1
str x0, [sp, 136]
.L267:
ldr x1, [sp, 136]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L268
ldr x0, [sp, 208]
mov w1, w0
ldr w0, [sp, 92]
mul w0, w1, w0
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 2
neg x0, x0
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
mov x1, 1
ldr x0, [sp, 240]
sub x0, x1, x0
lsl x0, x0, 3
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 168]
sub x0, x0, #1
str x0, [sp, 168]
ldr x0, [sp, 64]
add x0, x0, 8
str x0, [sp, 64]
ldr x1, [sp, 208]
ldr x0, [sp, 272]
mul x0, x1, x0
mov x1, 1
sub x0, x1, x0
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
.L241:
ldr x0, [sp, 168]
cmp x0, 0
bne .L269
ldr x0, [sp, 160]
sub x0, x0, #1
str x0, [sp, 160]
ldr x0, [sp, 200]
sub x1, x0, #1
ldr x0, [sp, 216]
mul x0, x1, x0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 272]
sub x1, x0, #1
ldr x0, [sp, 216]
mul x0, x1, x0
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
.L240:
ldr x0, [sp, 160]
cmp x0, 0
bne .L270
.L195:
mov w0, 0
.L183:
ldp x29, x30, [sp], 240
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size conv1_c, .-conv1_c
.section .rodata
.align 3
.LC18:
.string "error in conv1_z: dim must be in [0 3]\n"
.align 3
.LC19:
.string "error in conv1_z: str (stride) must be positive\n"
.align 3
.LC20:
.string "error in conv1_z: dil (dilation) must be positive\n"
.align 3
.LC21:
.string "error in conv1_z: L2 (length of X2) must be positive\n"
.align 3
.LC22:
.string "error in conv1_z: N (total length of X1) must be positive\n"
.align 3
.LC23:
.string "error in conv1_z: L1 (length of vecs in X1) must be positive\n"
.text
.align 2
.global conv1_z
.type conv1_z, %function
conv1_z:
.LFB3:
.cfi_startproc
stp x29, x30, [sp, -240]!
.cfi_def_cfa_offset 240
.cfi_offset 29, -240
.cfi_offset 30, -232
mov x29, sp
str x0, [sp, 72]
str x1, [sp, 64]
str x2, [sp, 56]
str x3, [sp, 48]
str x4, [sp, 40]
str x5, [sp, 32]
str x6, [sp, 24]
str w7, [sp, 20]
ldr x0, [sp, 280]
cmp x0, 3
bls .L272
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 39
mov x1, 1
adrp x0, .LC18
add x0, x0, :lo12:.LC18
bl fwrite
mov w0, 1
b .L273
.L272:
ldr x0, [sp, 256]
cmp x0, 0
bne .L274
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 48
mov x1, 1
adrp x0, .LC19
add x0, x0, :lo12:.LC19
bl fwrite
mov w0, 1
b .L273
.L274:
ldr x0, [sp, 264]
cmp x0, 0
bne .L275
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 50
mov x1, 1
adrp x0, .LC20
add x0, x0, :lo12:.LC20
bl fwrite
mov w0, 1
b .L273
.L275:
ldr x0, [sp, 240]
cmp x0, 0
bne .L276
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 53
mov x1, 1
adrp x0, .LC21
add x0, x0, :lo12:.LC21
bl fwrite
mov w0, 1
b .L273
.L276:
ldr x1, [sp, 48]
ldr x0, [sp, 40]
mul x1, x1, x0
ldr x0, [sp, 32]
mul x0, x1, x0
ldr x1, [sp, 24]
mul x0, x1, x0
str x0, [sp, 192]
ldr x0, [sp, 280]
cmp x0, 0
beq .L277
ldr x0, [sp, 280]
cmp x0, 1
beq .L278
ldr x0, [sp, 280]
cmp x0, 2
bne .L279
ldr x0, [sp, 32]
b .L282
.L279:
ldr x0, [sp, 24]
b .L282
.L278:
ldr x0, [sp, 40]
b .L282
.L277:
ldr x0, [sp, 48]
.L282:
str x0, [sp, 200]
ldr x0, [sp, 192]
cmp x0, 0
bne .L283
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 58
mov x1, 1
adrp x0, .LC22
add x0, x0, :lo12:.LC22
bl fwrite
mov w0, 1
b .L273
.L283:
ldr x0, [sp, 200]
cmp x0, 0
bne .L284
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 61
mov x1, 1
adrp x0, .LC23
add x0, x0, :lo12:.LC23
bl fwrite
mov w0, 1
b .L273
.L284:
ldr x0, [sp, 264]
mov w1, w0
ldr x0, [sp, 240]
sub x0, x0, #1
mul w0, w1, w0
add w0, w0, 1
str w0, [sp, 112]
ldr x0, [sp, 256]
mov w1, w0
ldr x0, [sp, 264]
mov w2, w0
ldr x0, [sp, 240]
mul w0, w2, w0
sub w0, w1, w0
lsl w0, w0, 1
str w0, [sp, 116]
str xzr, [sp, 120]
ldr w0, [sp, 248]
str w0, [sp, 80]
ldr w1, [sp, 80]
ldr w0, [sp, 112]
sub w0, w1, w0
add w0, w0, 1
str w0, [sp, 84]
ldr x0, [sp, 272]
cmp x0, 0
beq .L285
ldr x1, [sp, 200]
ldr x0, [sp, 192]
cmp x1, x0
bne .L286
b .L287
.L289:
ldr x0, [sp, 72]
add x1, x0, 8
str x1, [sp, 72]
str xzr, [x0]
ldr x0, [sp, 72]
add x1, x0, 8
str x1, [sp, 72]
str xzr, [x0]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 80]
add w0, w1, w0
str w0, [sp, 80]
ldr x0, [sp, 120]
add x0, x0, 1
str x0, [sp, 120]
.L287:
ldr w0, [sp, 80]
cmp w0, 0
bge .L288
ldr x1, [sp, 120]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L289
.L288:
ldr w1, [sp, 80]
ldr w0, [sp, 112]
sub w0, w1, w0
add w0, w0, 1
str w0, [sp, 84]
b .L290
.L294:
str xzr, [sp, 136]
ldr d0, [sp, 136]
str d0, [sp, 128]
ldr w0, [sp, 80]
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr w0, [sp, 80]
str w0, [sp, 88]
b .L291
.L292:
ldr x0, [sp, 64]
ldr d1, [x0]
ldr x0, [sp, 56]
ldr d0, [x0]
fmul d1, d1, d0
ldr x0, [sp, 64]
add x0, x0, 8
ldr d2, [x0]
ldr x0, [sp, 56]
add x0, x0, 8
ldr d0, [x0]
fmul d0, d2, d0
fsub d0, d1, d0
ldr d1, [sp, 128]
fadd d0, d1, d0
str d0, [sp, 128]
ldr x0, [sp, 64]
ldr d1, [x0]
ldr x0, [sp, 56]
add x0, x0, 8
ldr d0, [x0]
fmul d1, d1, d0
ldr x0, [sp, 64]
add x0, x0, 8
ldr d2, [x0]
ldr x0, [sp, 56]
ldr d0, [x0]
fmul d0, d2, d0
fadd d0, d1, d0
ldr d1, [sp, 136]
fadd d0, d1, d0
str d0, [sp, 136]
ldr w0, [sp, 88]
ldr x1, [sp, 264]
sub w0, w0, w1
str w0, [sp, 88]
ldr x0, [sp, 264]
lsl x0, x0, 4
neg x0, x0
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 56]
add x0, x0, 16
str x0, [sp, 56]
.L291:
ldr w0, [sp, 88]
cmp w0, 0
bge .L292
ldr x0, [sp, 72]
add x1, x0, 8
str x1, [sp, 72]
ldr d0, [sp, 128]
str d0, [x0]
ldr x0, [sp, 72]
add x1, x0, 8
str x1, [sp, 72]
ldr d0, [sp, 136]
str d0, [x0]
ldrsw x0, [sp, 80]
ldr x1, [sp, 264]
udiv x2, x0, x1
ldr x1, [sp, 264]
mul x1, x2, x1
sub x0, x0, x1
ldr x1, [sp, 264]
sub x0, x1, x0
lsl x0, x0, 4
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 80]
sdiv w0, w0, w1
add w0, w0, 1
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 3
neg x0, x0
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 84]
add w0, w1, w0
str w0, [sp, 84]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 80]
add w0, w1, w0
str w0, [sp, 80]
ldr x0, [sp, 120]
add x0, x0, 1
str x0, [sp, 120]
.L290:
ldr w0, [sp, 84]
cmp w0, 0
bge .L293
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 80]
cmp w0, w1
bge .L293
ldr x1, [sp, 120]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L294
.L293:
ldr w0, [sp, 84]
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 240]
sub x0, x0, #1
lsl x0, x0, 4
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 112]
cmp w0, w1
ble .L302
b .L296
.L300:
str xzr, [sp, 136]
ldr d0, [sp, 136]
str d0, [sp, 128]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 84]
neg w0, w0
ldr x2, [sp, 264]
sdiv w0, w0, w2
mul w0, w1, w0
str w0, [sp, 92]
b .L297
.L298:
ldr w1, [sp, 92]
ldr w0, [sp, 84]
add w0, w1, w0
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
ldr d1, [x0]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 92]
sdiv w1, w0, w1
mov w0, 0
sub w0, w0, w1
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 56]
add x0, x1, x0
ldr d0, [x0]
fmul d1, d1, d0
ldr w1, [sp, 92]
ldr w0, [sp, 84]
add w0, w1, w0
lsl w0, w0, 1
sxtw x0, w0
add x0, x0, 1
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
ldr d2, [x0]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 92]
sdiv w1, w0, w1
mov w0, 0
sub w0, w0, w1
lsl w0, w0, 1
sxtw x0, w0
add x0, x0, 1
lsl x0, x0, 3
ldr x1, [sp, 56]
add x0, x1, x0
ldr d0, [x0]
fmul d0, d2, d0
fsub d0, d1, d0
ldr d1, [sp, 128]
fadd d0, d1, d0
str d0, [sp, 128]
ldr w1, [sp, 92]
ldr w0, [sp, 84]
add w0, w1, w0
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
ldr d1, [x0]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 92]
sdiv w1, w0, w1
mov w0, 0
sub w0, w0, w1
lsl w0, w0, 1
sxtw x0, w0
add x0, x0, 1
lsl x0, x0, 3
ldr x1, [sp, 56]
add x0, x1, x0
ldr d0, [x0]
fmul d1, d1, d0
ldr w1, [sp, 92]
ldr w0, [sp, 84]
add w0, w1, w0
lsl w0, w0, 1
sxtw x0, w0
add x0, x0, 1
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
ldr d2, [x0]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 92]
sdiv w1, w0, w1
mov w0, 0
sub w0, w0, w1
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 56]
add x0, x1, x0
ldr d0, [x0]
fmul d0, d2, d0
fadd d0, d1, d0
ldr d1, [sp, 136]
fadd d0, d1, d0
str d0, [sp, 136]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 92]
add w0, w1, w0
str w0, [sp, 92]
.L297:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 84]
sub w0, w1, w0
ldr w1, [sp, 92]
cmp w1, w0
blt .L298
ldr x0, [sp, 72]
add x1, x0, 8
str x1, [sp, 72]
ldr d0, [sp, 128]
str d0, [x0]
ldr x0, [sp, 72]
add x1, x0, 8
str x1, [sp, 72]
ldr d0, [sp, 136]
str d0, [x0]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 84]
add w0, w1, w0
str w0, [sp, 84]
ldr x0, [sp, 120]
add x0, x0, 1
str x0, [sp, 120]
.L296:
ldr w0, [sp, 84]
cmp w0, 0
bge .L299
ldr x1, [sp, 120]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L300
.L299:
ldr w0, [sp, 84]
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr w1, [sp, 84]
ldr w0, [sp, 112]
add w0, w1, w0
sub w0, w0, #1
str w0, [sp, 80]
b .L307
.L306:
str xzr, [sp, 136]
ldr d0, [sp, 136]
str d0, [sp, 128]
ldr x0, [sp, 240]
str x0, [sp, 144]
b .L303
.L304:
ldr x0, [sp, 64]
ldr d1, [x0]
ldr x0, [sp, 56]
ldr d0, [x0]
fmul d1, d1, d0
ldr x0, [sp, 64]
add x0, x0, 8
ldr d2, [x0]
ldr x0, [sp, 56]
add x0, x0, 8
ldr d0, [x0]
fmul d0, d2, d0
fsub d0, d1, d0
ldr d1, [sp, 128]
fadd d0, d1, d0
str d0, [sp, 128]
ldr x0, [sp, 64]
ldr d1, [x0]
ldr x0, [sp, 56]
add x0, x0, 8
ldr d0, [x0]
fmul d1, d1, d0
ldr x0, [sp, 64]
add x0, x0, 8
ldr d2, [x0]
ldr x0, [sp, 56]
ldr d0, [x0]
fmul d0, d2, d0
fadd d0, d1, d0
ldr d1, [sp, 136]
fadd d0, d1, d0
str d0, [sp, 136]
ldr x0, [sp, 144]
sub x0, x0, #1
str x0, [sp, 144]
ldr x0, [sp, 264]
lsl x0, x0, 4
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 56]
sub x0, x0, #16
str x0, [sp, 56]
.L303:
ldr x0, [sp, 144]
cmp x0, 0
bne .L304
ldr x0, [sp, 72]
add x1, x0, 8
str x1, [sp, 72]
ldr d0, [sp, 128]
str d0, [x0]
ldr x0, [sp, 72]
add x1, x0, 8
str x1, [sp, 72]
ldr d0, [sp, 136]
str d0, [x0]
ldrsw x0, [sp, 116]
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 240]
lsl x0, x0, 4
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 80]
add w0, w1, w0
str w0, [sp, 80]
ldr x0, [sp, 120]
add x0, x0, 1
str x0, [sp, 120]
.L302:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 80]
cmp w0, w1
bge .L305
ldr x1, [sp, 120]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L306
.L305:
ldr w1, [sp, 80]
ldr w0, [sp, 112]
sub w0, w1, w0
add w0, w0, 1
str w0, [sp, 84]
b .L307
.L311:
str xzr, [sp, 152]
str xzr, [sp, 136]
ldr d0, [sp, 136]
str d0, [sp, 128]
ldr w0, [sp, 84]
str w0, [sp, 96]
b .L308
.L309:
ldr x0, [sp, 64]
ldr d1, [x0]
ldr x0, [sp, 56]
ldr d0, [x0]
fmul d1, d1, d0
ldr x0, [sp, 64]
add x0, x0, 8
ldr d2, [x0]
ldr x0, [sp, 56]
add x0, x0, 8
ldr d0, [x0]
fmul d0, d2, d0
fsub d0, d1, d0
ldr d1, [sp, 128]
fadd d0, d1, d0
str d0, [sp, 128]
ldr x0, [sp, 64]
ldr d1, [x0]
ldr x0, [sp, 56]
add x0, x0, 8
ldr d0, [x0]
fmul d1, d1, d0
ldr x0, [sp, 64]
add x0, x0, 8
ldr d2, [x0]
ldr x0, [sp, 56]
ldr d0, [x0]
fmul d0, d2, d0
fadd d0, d1, d0
ldr d1, [sp, 136]
fadd d0, d1, d0
str d0, [sp, 136]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 96]
add w0, w1, w0
str w0, [sp, 96]
ldr x0, [sp, 152]
add x0, x0, 1
str x0, [sp, 152]
ldr x0, [sp, 264]
lsl x0, x0, 4
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 56]
sub x0, x0, #16
str x0, [sp, 56]
.L308:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 96]
cmp w0, w1
blt .L309
ldr x0, [sp, 72]
add x1, x0, 8
str x1, [sp, 72]
ldr d0, [sp, 128]
str d0, [x0]
ldr x0, [sp, 72]
add x1, x0, 8
str x1, [sp, 72]
ldr d0, [sp, 136]
str d0, [x0]
ldr x0, [sp, 256]
mov w1, w0
ldr x0, [sp, 264]
mov w2, w0
ldr x0, [sp, 152]
mul w0, w2, w0
sub w0, w1, w0
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 152]
lsl x0, x0, 4
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 84]
add w0, w1, w0
str w0, [sp, 84]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 80]
add w0, w1, w0
str w0, [sp, 80]
ldr x0, [sp, 120]
add x0, x0, 1
str x0, [sp, 120]
.L307:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 84]
cmp w0, w1
bge .L312
ldr x1, [sp, 120]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L311
b .L312
.L313:
ldr x0, [sp, 72]
add x1, x0, 8
str x1, [sp, 72]
str xzr, [x0]
ldr x0, [sp, 72]
add x1, x0, 8
str x1, [sp, 72]
str xzr, [x0]
ldr x0, [sp, 120]
add x0, x0, 1
str x0, [sp, 120]
.L312:
ldr x1, [sp, 120]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L313
b .L285
.L286:
ldr w0, [sp, 20]
cmp w0, 0
beq .L314
ldr x0, [sp, 280]
cmp x0, 0
beq .L315
ldr x0, [sp, 280]
cmp x0, 1
beq .L316
ldr x0, [sp, 280]
cmp x0, 2
bne .L317
ldr x1, [sp, 48]
ldr x0, [sp, 40]
mul x0, x1, x0
b .L321
.L317:
ldr x1, [sp, 48]
ldr x0, [sp, 40]
mul x1, x1, x0
ldr x0, [sp, 32]
mul x0, x1, x0
b .L321
.L316:
ldr x0, [sp, 48]
b .L321
.L315:
mov x0, 1
b .L321
.L314:
ldr x0, [sp, 280]
cmp x0, 0
bne .L322
ldr x1, [sp, 40]
ldr x0, [sp, 32]
mul x1, x1, x0
ldr x0, [sp, 24]
mul x0, x1, x0
b .L321
.L322:
ldr x0, [sp, 280]
cmp x0, 1
bne .L324
ldr x1, [sp, 32]
ldr x0, [sp, 24]
mul x0, x1, x0
b .L321
.L324:
ldr x0, [sp, 280]
cmp x0, 2
bne .L326
ldr x0, [sp, 24]
b .L321
.L326:
mov x0, 1
.L321:
str x0, [sp, 208]
ldr w0, [sp, 20]
cmp w0, 0
beq .L328
ldr x0, [sp, 280]
cmp x0, 0
bne .L328
ldr x1, [sp, 40]
ldr x0, [sp, 32]
mul x1, x1, x0
ldr x0, [sp, 24]
mul x0, x1, x0
b .L329
.L328:
ldr x0, [sp, 208]
.L329:
str x0, [sp, 216]
ldr x1, [sp, 192]
ldr x0, [sp, 200]
udiv x0, x1, x0
str x0, [sp, 224]
ldr x1, [sp, 224]
ldr x0, [sp, 216]
udiv x0, x1, x0
str x0, [sp, 232]
ldr x0, [sp, 232]
str x0, [sp, 160]
b .L330
.L360:
ldr x0, [sp, 216]
str x0, [sp, 168]
b .L331
.L359:
ldr w0, [sp, 248]
str w0, [sp, 80]
ldr w1, [sp, 80]
ldr w0, [sp, 112]
sub w0, w1, w0
add w0, w0, 1
str w0, [sp, 84]
str xzr, [sp, 120]
b .L332
.L334:
ldr x0, [sp, 72]
add x0, x0, 8
str xzr, [x0]
ldr d0, [x0]
ldr x0, [sp, 72]
str d0, [x0]
ldr x0, [sp, 208]
lsl x0, x0, 4
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 80]
add w0, w1, w0
str w0, [sp, 80]
ldr x0, [sp, 120]
add x0, x0, 1
str x0, [sp, 120]
.L332:
ldr w0, [sp, 80]
cmp w0, 0
bge .L333
ldr x1, [sp, 120]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L334
.L333:
ldr w1, [sp, 80]
ldr w0, [sp, 112]
sub w0, w1, w0
add w0, w0, 1
str w0, [sp, 84]
b .L335
.L339:
str xzr, [sp, 136]
ldr d0, [sp, 136]
str d0, [sp, 128]
ldr x0, [sp, 208]
mov w1, w0
ldr w0, [sp, 80]
mul w0, w1, w0
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr w0, [sp, 80]
str w0, [sp, 100]
b .L336
.L337:
ldr x0, [sp, 64]
ldr d1, [x0]
ldr x0, [sp, 56]
ldr d0, [x0]
fmul d1, d1, d0
ldr x0, [sp, 64]
add x0, x0, 8
ldr d2, [x0]
ldr x0, [sp, 56]
add x0, x0, 8
ldr d0, [x0]
fmul d0, d2, d0
fsub d0, d1, d0
ldr d1, [sp, 128]
fadd d0, d1, d0
str d0, [sp, 128]
ldr x0, [sp, 64]
ldr d1, [x0]
ldr x0, [sp, 56]
add x0, x0, 8
ldr d0, [x0]
fmul d1, d1, d0
ldr x0, [sp, 64]
add x0, x0, 8
ldr d2, [x0]
ldr x0, [sp, 56]
ldr d0, [x0]
fmul d0, d2, d0
fadd d0, d1, d0
ldr d1, [sp, 136]
fadd d0, d1, d0
str d0, [sp, 136]
ldr w0, [sp, 100]
ldr x1, [sp, 264]
sub w0, w0, w1
str w0, [sp, 100]
ldr x1, [sp, 264]
ldr x0, [sp, 208]
mul x0, x1, x0
lsl x0, x0, 4
neg x0, x0
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 56]
add x0, x0, 16
str x0, [sp, 56]
.L336:
ldr w0, [sp, 100]
cmp w0, 0
bge .L337
ldr x0, [sp, 72]
ldr d0, [sp, 128]
str d0, [x0]
ldr x0, [sp, 72]
add x0, x0, 8
ldr d0, [sp, 136]
str d0, [x0]
ldr x0, [sp, 208]
lsl x0, x0, 4
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
ldrsw x0, [sp, 80]
ldr x1, [sp, 264]
udiv x2, x0, x1
ldr x1, [sp, 264]
mul x1, x2, x1
sub x0, x0, x1
ldr x1, [sp, 264]
sub x1, x1, x0
ldr x0, [sp, 208]
mul x0, x1, x0
lsl x0, x0, 4
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 80]
sdiv w0, w0, w1
add w0, w0, 1
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 3
neg x0, x0
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 84]
add w0, w1, w0
str w0, [sp, 84]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 80]
add w0, w1, w0
str w0, [sp, 80]
ldr x0, [sp, 120]
add x0, x0, 1
str x0, [sp, 120]
.L335:
ldr w0, [sp, 84]
cmp w0, 0
bge .L338
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 80]
cmp w0, w1
bge .L338
ldr x1, [sp, 120]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L339
.L338:
ldr x0, [sp, 208]
mov w1, w0
ldr w0, [sp, 84]
mul w0, w1, w0
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 240]
sub x0, x0, #1
lsl x0, x0, 4
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 112]
cmp w0, w1
ble .L347
b .L341
.L345:
str xzr, [sp, 136]
ldr d0, [sp, 136]
str d0, [sp, 128]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 84]
neg w0, w0
ldr x2, [sp, 264]
sdiv w0, w0, w2
mul w0, w1, w0
str w0, [sp, 104]
b .L342
.L343:
ldr x0, [sp, 208]
mov w2, w0
ldr w1, [sp, 104]
ldr w0, [sp, 84]
add w0, w1, w0
mul w0, w2, w0
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
ldr d1, [x0]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 104]
sdiv w1, w0, w1
mov w0, 0
sub w0, w0, w1
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 56]
add x0, x1, x0
ldr d0, [x0]
fmul d1, d1, d0
ldr x0, [sp, 208]
mov w2, w0
ldr w1, [sp, 104]
ldr w0, [sp, 84]
add w0, w1, w0
mul w0, w2, w0
lsl w0, w0, 1
sxtw x0, w0
add x0, x0, 1
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
ldr d2, [x0]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 104]
sdiv w1, w0, w1
mov w0, 0
sub w0, w0, w1
lsl w0, w0, 1
sxtw x0, w0
add x0, x0, 1
lsl x0, x0, 3
ldr x1, [sp, 56]
add x0, x1, x0
ldr d0, [x0]
fmul d0, d2, d0
fsub d0, d1, d0
ldr d1, [sp, 128]
fadd d0, d1, d0
str d0, [sp, 128]
ldr x0, [sp, 208]
mov w2, w0
ldr w1, [sp, 104]
ldr w0, [sp, 84]
add w0, w1, w0
mul w0, w2, w0
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
ldr d1, [x0]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 104]
sdiv w1, w0, w1
mov w0, 0
sub w0, w0, w1
lsl w0, w0, 1
sxtw x0, w0
add x0, x0, 1
lsl x0, x0, 3
ldr x1, [sp, 56]
add x0, x1, x0
ldr d0, [x0]
fmul d1, d1, d0
ldr x0, [sp, 208]
mov w2, w0
ldr w1, [sp, 104]
ldr w0, [sp, 84]
add w0, w1, w0
mul w0, w2, w0
lsl w0, w0, 1
sxtw x0, w0
add x0, x0, 1
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
ldr d2, [x0]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 104]
sdiv w1, w0, w1
mov w0, 0
sub w0, w0, w1
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 56]
add x0, x1, x0
ldr d0, [x0]
fmul d0, d2, d0
fadd d0, d1, d0
ldr d1, [sp, 136]
fadd d0, d1, d0
str d0, [sp, 136]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 104]
add w0, w1, w0
str w0, [sp, 104]
.L342:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 84]
sub w0, w1, w0
ldr w1, [sp, 104]
cmp w1, w0
blt .L343
ldr x0, [sp, 72]
ldr d0, [sp, 128]
str d0, [x0]
ldr x0, [sp, 72]
add x0, x0, 8
ldr d0, [sp, 136]
str d0, [x0]
ldr x0, [sp, 208]
lsl x0, x0, 4
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 84]
add w0, w1, w0
str w0, [sp, 84]
ldr x0, [sp, 120]
add x0, x0, 1
str x0, [sp, 120]
.L341:
ldr w0, [sp, 84]
cmp w0, 0
bge .L344
ldr x1, [sp, 120]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L345
.L344:
ldr x0, [sp, 208]
mov w1, w0
ldr w0, [sp, 84]
mul w0, w1, w0
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr w1, [sp, 84]
ldr w0, [sp, 112]
add w0, w1, w0
sub w0, w0, #1
str w0, [sp, 80]
b .L352
.L351:
str xzr, [sp, 136]
ldr d0, [sp, 136]
str d0, [sp, 128]
ldr x0, [sp, 240]
str x0, [sp, 176]
b .L348
.L349:
ldr x0, [sp, 64]
ldr d1, [x0]
ldr x0, [sp, 56]
ldr d0, [x0]
fmul d1, d1, d0
ldr x0, [sp, 64]
add x0, x0, 8
ldr d2, [x0]
ldr x0, [sp, 56]
add x0, x0, 8
ldr d0, [x0]
fmul d0, d2, d0
fsub d0, d1, d0
ldr d1, [sp, 128]
fadd d0, d1, d0
str d0, [sp, 128]
ldr x0, [sp, 64]
ldr d1, [x0]
ldr x0, [sp, 56]
add x0, x0, 8
ldr d0, [x0]
fmul d1, d1, d0
ldr x0, [sp, 64]
add x0, x0, 8
ldr d2, [x0]
ldr x0, [sp, 56]
ldr d0, [x0]
fmul d0, d2, d0
fadd d0, d1, d0
ldr d1, [sp, 136]
fadd d0, d1, d0
str d0, [sp, 136]
ldr x0, [sp, 176]
sub x0, x0, #1
str x0, [sp, 176]
ldr x1, [sp, 264]
ldr x0, [sp, 208]
mul x0, x1, x0
lsl x0, x0, 4
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 56]
sub x0, x0, #16
str x0, [sp, 56]
.L348:
ldr x0, [sp, 176]
cmp x0, 0
bne .L349
ldr x0, [sp, 72]
ldr d0, [sp, 128]
str d0, [x0]
ldr x0, [sp, 72]
add x0, x0, 8
ldr d0, [sp, 136]
str d0, [x0]
ldr x0, [sp, 208]
lsl x0, x0, 4
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
ldr x0, [sp, 208]
mov w1, w0
ldr w0, [sp, 116]
mul w0, w1, w0
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 240]
lsl x0, x0, 4
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 80]
add w0, w1, w0
str w0, [sp, 80]
ldr x0, [sp, 120]
add x0, x0, 1
str x0, [sp, 120]
.L347:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 80]
cmp w0, w1
bge .L350
ldr x1, [sp, 120]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L351
.L350:
ldr w1, [sp, 80]
ldr w0, [sp, 112]
sub w0, w1, w0
add w0, w0, 1
str w0, [sp, 84]
b .L352
.L356:
str xzr, [sp, 184]
str xzr, [sp, 136]
ldr d0, [sp, 136]
str d0, [sp, 128]
ldr w0, [sp, 84]
str w0, [sp, 108]
b .L353
.L354:
ldr x0, [sp, 64]
ldr d1, [x0]
ldr x0, [sp, 56]
ldr d0, [x0]
fmul d1, d1, d0
ldr x0, [sp, 64]
add x0, x0, 8
ldr d2, [x0]
ldr x0, [sp, 56]
add x0, x0, 8
ldr d0, [x0]
fmul d0, d2, d0
fsub d0, d1, d0
ldr d1, [sp, 128]
fadd d0, d1, d0
str d0, [sp, 128]
ldr x0, [sp, 64]
ldr d1, [x0]
ldr x0, [sp, 56]
add x0, x0, 8
ldr d0, [x0]
fmul d1, d1, d0
ldr x0, [sp, 64]
add x0, x0, 8
ldr d2, [x0]
ldr x0, [sp, 56]
ldr d0, [x0]
fmul d0, d2, d0
fadd d0, d1, d0
ldr d1, [sp, 136]
fadd d0, d1, d0
str d0, [sp, 136]
ldr x0, [sp, 264]
mov w1, w0
ldr w0, [sp, 108]
add w0, w1, w0
str w0, [sp, 108]
ldr x0, [sp, 184]
add x0, x0, 1
str x0, [sp, 184]
ldr x1, [sp, 264]
ldr x0, [sp, 208]
mul x0, x1, x0
lsl x0, x0, 4
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 56]
sub x0, x0, #16
str x0, [sp, 56]
.L353:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 108]
cmp w0, w1
blt .L354
ldr x0, [sp, 72]
ldr d0, [sp, 128]
str d0, [x0]
ldr x0, [sp, 72]
add x0, x0, 8
ldr d0, [sp, 136]
str d0, [x0]
ldr x0, [sp, 208]
lsl x0, x0, 4
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
ldr x0, [sp, 208]
mov w1, w0
ldr x0, [sp, 256]
mov w2, w0
ldr x0, [sp, 264]
mov w3, w0
ldr x0, [sp, 184]
mul w0, w3, w0
sub w0, w2, w0
mul w0, w1, w0
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 184]
lsl x0, x0, 4
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 84]
add w0, w1, w0
str w0, [sp, 84]
ldr x0, [sp, 256]
mov w1, w0
ldr w0, [sp, 80]
add w0, w1, w0
str w0, [sp, 80]
ldr x0, [sp, 120]
add x0, x0, 1
str x0, [sp, 120]
.L352:
ldr x0, [sp, 200]
mov w1, w0
ldr w0, [sp, 84]
cmp w0, w1
bge .L357
ldr x1, [sp, 120]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L356
b .L357
.L358:
ldr x0, [sp, 72]
add x0, x0, 8
str xzr, [x0]
ldr d0, [x0]
ldr x0, [sp, 72]
str d0, [x0]
ldr x0, [sp, 208]
lsl x0, x0, 4
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
ldr x0, [sp, 120]
add x0, x0, 1
str x0, [sp, 120]
.L357:
ldr x1, [sp, 120]
ldr x0, [sp, 272]
cmp x1, x0
bcc .L358
ldr x0, [sp, 208]
mov w1, w0
ldr w0, [sp, 84]
mul w0, w1, w0
lsl w0, w0, 1
sxtw x0, w0
lsl x0, x0, 3
neg x0, x0
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
mov x1, 1
ldr x0, [sp, 240]
sub x0, x1, x0
lsl x0, x0, 4
ldr x1, [sp, 56]
add x0, x1, x0
str x0, [sp, 56]
ldr x0, [sp, 168]
sub x0, x0, #1
str x0, [sp, 168]
ldr x0, [sp, 64]
add x0, x0, 16
str x0, [sp, 64]
ldr x1, [sp, 208]
ldr x0, [sp, 272]
mul x0, x1, x0
mov x1, 1
sub x0, x1, x0
lsl x0, x0, 4
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
.L331:
ldr x0, [sp, 168]
cmp x0, 0
bne .L359
ldr x0, [sp, 160]
sub x0, x0, #1
str x0, [sp, 160]
ldr x0, [sp, 200]
sub x1, x0, #1
ldr x0, [sp, 216]
mul x0, x1, x0
lsl x0, x0, 4
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 64]
ldr x0, [sp, 272]
sub x1, x0, #1
ldr x0, [sp, 216]
mul x0, x1, x0
lsl x0, x0, 4
ldr x1, [sp, 72]
add x0, x1, x0
str x0, [sp, 72]
.L330:
ldr x0, [sp, 160]
cmp x0, 0
bne .L360
.L285:
mov w0, 0
.L273:
ldp x29, x30, [sp], 240
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE3:
.size conv1_z, .-conv1_z
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global get_sp
.type get_sp, %function
get_sp:
.LFB0:
.cfi_startproc
#APP
// 4 "program.c" 1
movl %esp,%eax
// 0 "" 2
#NO_APP
nop
ret
.cfi_endproc
.LFE0:
.size get_sp, .-get_sp
.section .rodata
.align 3
.LC0:
.string "0x%lx\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
bl get_sp
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
mov w0, 0
ldp x29, x30, [sp], 16
.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 "Zahl 1 eingeben: "
.align 3
.LC1:
.string "%lf"
.align 3
.LC2:
.string "Zahl 2 eingeben: "
.align 3
.LC3:
.string "Zahl 3 eingeben: "
.align 3
.LC4:
.string "Zahl 4 eingeben: "
.align 3
.LC5:
.string "Pause"
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 40]
mov x1, 0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
add x0, sp, 24
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
add x0, sp, 28
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
add x0, sp, 32
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
add x0, sp, 36
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl system
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
.LFE6:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.type pendfunc1, %function
pendfunc1:
.LFB0:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str wzr, [sp, 8]
ldr w0, [sp, 8]
add w0, w0, 4
str w0, [sp, 12]
nop
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size pendfunc1, .-pendfunc1
.align 2
.global pendfunc
.type pendfunc, %function
pendfunc:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str w0, [sp, 28]
bl pendfunc1
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size pendfunc, .-pendfunc
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
mov w0, 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "%f\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
adrp x0, .LC1
ldr d0, [x0, #:lo12:.LC1]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
mov w0, 0
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
.section .rodata
.align 3
.LC1:
.word -1431655765
.word 1074440874
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "%c[%d;%df"
.text
.align 2
.global gotoxy
.type gotoxy, %function
gotoxy:
.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 w3, [sp, 28]
ldr w2, [sp, 24]
mov w1, 27
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size gotoxy, .-gotoxy
.section .rodata
.align 3
.LC1:
.string "clear"
.text
.align 2
.global clr
.type clr, %function
clr:
.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 system
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size clr, .-clr
.section .rodata
.align 3
.LC2:
.string "The value of 'a' is %d \n"
.align 3
.LC3:
.string "a %d is stored at address %u \n"
.align 3
.LC4:
.string "*p %d is stored ad address %u \n"
.align 3
.LC5:
.string "b %d is stored at address %u \n"
.align 3
.LC6:
.string "c %d is stored at address %u \n"
.align 3
.LC7:
.string "**ptr %d is stored at address %u \n"
.align 3
.LC8:
.string "Assigning value 5 to variable a "
.align 3
.LC9:
.string "***ptr2 %d is stored at address %u \n"
.text
.align 2
.global main
.type main, %function
main:
.LFB2:
.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, 10
str w0, [sp, 24]
bl clr
add x0, sp, 24
str x0, [sp, 32]
ldr x0, [sp, 32]
ldr w0, [x0]
str w0, [sp, 28]
ldr x0, [sp, 32]
str w0, [sp, 20]
add x0, sp, 32
str x0, [sp, 40]
mov w1, 10
mov w0, 10
bl gotoxy
ldr w0, [sp, 24]
mov w1, w0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
ldr w0, [sp, 24]
add x1, sp, 24
mov x2, x1
mov w1, w0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
ldr x0, [sp, 32]
ldr w0, [x0]
ldr x1, [sp, 32]
mov x2, x1
mov w1, w0
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
ldr w0, [sp, 28]
add x1, sp, 28
mov x2, x1
mov w1, w0
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
ldr w0, [sp, 20]
add x1, sp, 20
mov x2, x1
mov w1, w0
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl printf
ldr x0, [sp, 40]
ldr x0, [x0]
ldr w0, [x0]
ldr x1, [sp, 40]
mov x2, x1
mov w1, w0
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl printf
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl puts
mov w0, 5
str w0, [sp, 24]
ldr w0, [sp, 24]
add x1, sp, 24
mov x2, x1
mov w1, w0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
ldr x0, [sp, 32]
ldr w0, [x0]
ldr x1, [sp, 32]
mov x2, x1
mov w1, w0
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
ldr w0, [sp, 28]
add x1, sp, 28
mov x2, x1
mov w1, w0
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
ldr w0, [sp, 20]
add x1, sp, 20
mov x2, x1
mov w1, w0
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl printf
ldr x0, [sp, 40]
ldr x0, [x0]
ldr w0, [x0]
ldr x1, [sp, 40]
mov x2, x1
mov w1, w0
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl printf
add x0, sp, 40
str x0, [sp, 48]
ldr x0, [sp, 48]
ldr x0, [x0]
ldr x0, [x0]
ldr w0, [x0]
ldr x2, [sp, 48]
mov w1, w0
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl printf
bl getchar
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 .L5
bl __stack_chk_fail
.L5:
mov w0, w1
ldp x29, x30, [sp], 64
.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
.section .rodata
.align 3
.LC0:
.string "%c - %d\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
sub sp, sp, #1040
.cfi_def_cfa_offset 1040
stp x29, x30, [sp]
.cfi_offset 29, -1040
.cfi_offset 30, -1032
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 1032]
mov x1, 0
str wzr, [sp, 28]
adrp x0, :got:stdin
ldr x0, [x0, #:got_lo12:stdin]
ldr x1, [x0]
add x0, sp, 32
mov x2, x1
mov w1, 1000
bl fgets
str wzr, [sp, 16]
b .L2
.L4:
ldrsw x0, [sp, 16]
add x1, sp, 32
ldrb w0, [x1, x0]
cmp w0, 59
bls .L3
ldrsw x0, [sp, 16]
add x1, sp, 32
ldrb w0, [x1, x0]
cmp w0, 90
bhi .L3
ldrsw x0, [sp, 16]
add x1, sp, 32
ldrb w0, [x1, x0]
add w0, w0, 32
and w2, w0, 255
ldrsw x0, [sp, 16]
add x1, sp, 32
strb w2, [x1, x0]
.L3:
ldr w0, [sp, 16]
add w0, w0, 1
str w0, [sp, 16]
.L2:
ldrsw x0, [sp, 16]
add x1, sp, 32
ldrb w0, [x1, x0]
cmp w0, 0
bne .L4
mov w0, 65
str w0, [sp, 20]
b .L5
.L13:
str wzr, [sp, 16]
b .L6
.L11:
ldrsw x0, [sp, 16]
add x1, sp, 32
ldrb w0, [x1, x0]
mov w1, w0
ldr w0, [sp, 20]
cmp w0, w1
bne .L7
str wzr, [sp, 24]
b .L8
.L10:
ldrsw x0, [sp, 16]
add x1, sp, 32
ldrb w1, [x1, x0]
ldrsw x0, [sp, 24]
add x2, sp, 32
ldrb w0, [x2, x0]
cmp w1, w0
bne .L9
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
ldr w1, [sp, 16]
ldr w0, [sp, 24]
cmp w1, w0
beq .L9
ldrsw x0, [sp, 24]
add x1, sp, 32
mov w2, 42
strb w2, [x1, x0]
.L9:
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L8:
ldrsw x0, [sp, 24]
add x1, sp, 32
ldrb w0, [x1, x0]
cmp w0, 0
bne .L10
ldrsw x0, [sp, 16]
add x1, sp, 32
ldrb w0, [x1, x0]
ldr w2, [sp, 28]
mov w1, w0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
str wzr, [sp, 28]
.L7:
ldr w0, [sp, 16]
add w0, w0, 1
str w0, [sp, 16]
.L6:
ldrsw x0, [sp, 16]
add x1, sp, 32
ldrb w0, [x1, x0]
cmp w0, 0
bne .L11
ldr w0, [sp, 20]
cmp w0, 90
bne .L12
mov w0, 96
str w0, [sp, 20]
.L12:
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
.L5:
ldr w0, [sp, 20]
cmp w0, 122
ble .L13
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 1032]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L15
bl __stack_chk_fail
.L15:
mov w0, w1
ldp x29, x30, [sp]
add sp, sp, 1040
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global swap
.type swap, %function
swap:
.LFB0:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str x1, [sp]
ldr x0, [sp, 8]
ldr w0, [x0]
str w0, [sp, 28]
ldr x0, [sp]
ldr w1, [x0]
ldr x0, [sp, 8]
str w1, [x0]
ldr x0, [sp]
ldr w1, [sp, 28]
str w1, [x0]
nop
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size swap, .-swap
.align 2
.global insert
.type insert, %function
insert:
.LFB1:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str w1, [sp, 4]
ldr w0, [sp, 4]
str w0, [sp, 24]
ldrsw x0, [sp, 24]
lsl x0, x0, 2
ldr x1, [sp, 8]
add x0, x1, x0
ldr w0, [x0]
str w0, [sp, 28]
b .L3
.L5:
ldr w0, [sp, 24]
lsr w1, w0, 31
add w0, w1, w0
asr w0, w0, 1
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 8]
add x1, x1, x0
ldrsw x0, [sp, 24]
lsl x0, x0, 2
ldr x2, [sp, 8]
add x0, x2, x0
ldr w1, [x1]
str w1, [x0]
ldr w0, [sp, 24]
lsr w1, w0, 31
add w0, w1, w0
asr w0, w0, 1
str w0, [sp, 24]
.L3:
ldr w0, [sp, 24]
lsr w1, w0, 31
add w0, w1, w0
asr w0, w0, 1
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 8]
add x0, x1, x0
ldr w0, [x0]
ldr w1, [sp, 28]
cmp w1, w0
ble .L4
ldr w0, [sp, 24]
cmp w0, 1
bgt .L5
.L4:
ldrsw x0, [sp, 24]
lsl x0, x0, 2
ldr x1, [sp, 8]
add x0, x1, x0
ldr w1, [sp, 28]
str w1, [x0]
nop
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size insert, .-insert
.section .rodata
.align 3
.LC0:
.string "\n The deleted element is: %d "
.text
.align 2
.global Delete
.type Delete, %function
Delete:
.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]
ldr x0, [sp, 24]
ldr w0, [x0, 4]
str w0, [sp, 40]
ldrsw x0, [sp, 20]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x1, x1, x0
ldr x0, [sp, 24]
add x0, x0, 4
ldr w1, [x1]
str w1, [x0]
ldrsw x0, [sp, 20]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w1, [sp, 40]
str w1, [x0]
mov w0, 1
str w0, [sp, 32]
ldr w0, [sp, 32]
lsl w0, w0, 1
str w0, [sp, 36]
b .L7
.L11:
ldr w0, [sp, 20]
sub w0, w0, #1
ldr w1, [sp, 36]
cmp w1, w0
bge .L8
ldrsw x0, [sp, 36]
add x0, x0, 1
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w1, [x0]
ldrsw x0, [sp, 36]
lsl x0, x0, 2
ldr x2, [sp, 24]
add x0, x2, x0
ldr w0, [x0]
cmp w1, w0
ble .L8
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L8:
ldrsw x0, [sp, 32]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w1, [x0]
ldrsw x0, [sp, 36]
lsl x0, x0, 2
ldr x2, [sp, 24]
add x0, x2, x0
ldr w0, [x0]
cmp w1, w0
bge .L12
ldrsw x0, [sp, 32]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w0, [x0]
str w0, [sp, 44]
ldrsw x0, [sp, 36]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x1, x1, x0
ldrsw x0, [sp, 32]
lsl x0, x0, 2
ldr x2, [sp, 24]
add x0, x2, x0
ldr w1, [x1]
str w1, [x0]
ldrsw x0, [sp, 36]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w1, [sp, 44]
str w1, [x0]
ldr w0, [sp, 36]
str w0, [sp, 32]
ldr w0, [sp, 32]
lsl w0, w0, 1
str w0, [sp, 36]
.L7:
ldr w1, [sp, 20]
ldr w0, [sp, 36]
cmp w1, w0
bgt .L11
b .L10
.L12:
nop
.L10:
ldr w1, [sp, 40]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size Delete, .-Delete
.section .rodata
.align 3
.LC1:
.string "Enter the size of an array: "
.align 3
.LC2:
.string "%d"
.align 3
.LC3:
.string "\n\nNote: Enter the the first element of array as '0' because the heap DS will start from 1st index"
.align 3
.LC4:
.string "\nInsert the elements into the array: "
.align 3
.LC5:
.string "\nEnter your choice: "
.align 3
.LC6:
.string "1. Creation of a heap\n2. Deleting a element from a heap\n3. Displaying a heap"
.align 3
.LC7:
.string "\nCreating a heap..."
.align 3
.LC8:
.string "Deleting..."
.align 3
.LC9:
.string "The deleted element will be stored at the free space of given array."
.align 3
.LC10:
.string "Heap: [ "
.align 3
.LC11:
.string "%d "
.align 3
.LC12:
.string "]"
.text
.align 2
.global main
.type main, %function
main:
.LFB3:
.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]
stp x27, x28, [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
.cfi_offset 28, -56
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 x28, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
add x0, x29, 100
mov x1, x0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl __isoc99_scanf
ldr w19, [x29, 100]
sxtw x0, w19
sub x0, x0, #1
str x0, [x29, 120]
sxtw x0, w19
mov x26, x0
mov x27, 0
lsr x0, x26, 59
lsl x23, x27, 5
orr x23, x0, x23
lsl x22, x26, 5
sxtw x0, w19
mov x24, x0
mov x25, 0
lsr x0, x24, 59
lsl x21, x25, 5
orr x21, x0, x21
lsl x20, x24, 5
sxtw x0, w19
lsl x0, x0, 2
add x0, x0, 15
lsr x0, x0, 4
lsl x0, x0, 4
and x1, x0, -65536
sub x1, sp, x1
.L14:
cmp sp, x1
beq .L15
sub sp, sp, #65536
str xzr, [sp, 1024]
b .L14
.L15:
and x1, x0, 65535
sub sp, sp, x1
str xzr, [sp]
and x0, x0, 65535
cmp x0, 1024
bcc .L16
str xzr, [sp, 1024]
.L16:
add x0, sp, 16
add x0, x0, 3
lsr x0, x0, 2
lsl x0, x0, 2
str x0, [x29, 128]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl puts
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl puts
str wzr, [x29, 108]
b .L17
.L18:
ldrsw x0, [x29, 108]
lsl x0, x0, 2
ldr x1, [x29, 128]
add x0, x1, x0
mov x1, x0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl __isoc99_scanf
ldr w0, [x29, 108]
add w0, w0, 1
str w0, [x29, 108]
.L17:
ldr w0, [x29, 100]
ldr w1, [x29, 108]
cmp w1, w0
blt .L18
b .L19
.L27:
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl puts
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl puts
add x0, x29, 104
mov x1, x0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl __isoc99_scanf
ldr w0, [x29, 104]
cmp w0, 3
beq .L20
cmp w0, 3
bgt .L19
cmp w0, 2
beq .L21
cmp w0, 2
bgt .L19
cmp w0, 0
beq .L30
cmp w0, 1
bne .L19
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl puts
mov w0, 2
str w0, [x29, 112]
b .L23
.L24:
ldr w1, [x29, 112]
ldr x0, [x29, 128]
bl insert
ldr w0, [x29, 112]
add w0, w0, 1
str w0, [x29, 112]
.L23:
ldrsw x1, [x29, 112]
sxtw x0, w19
lsl x0, x0, 2
lsr x0, x0, 2
sub x0, x0, #1
cmp x1, x0
bls .L24
b .L19
.L21:
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl puts
sxtw x0, w19
lsl x0, x0, 2
lsr x0, x0, 2
sub w0, w0, #1
mov w1, w0
ldr x0, [x29, 128]
bl Delete
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl printf
b .L19
.L20:
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl printf
mov w0, 1
str w0, [x29, 116]
b .L25
.L26:
ldr x0, [x29, 128]
ldrsw x1, [x29, 116]
ldr w0, [x0, x1, lsl 2]
mov w1, w0
adrp x0, .LC11
add x0, x0, :lo12:.LC11
bl printf
ldr w0, [x29, 116]
add w0, w0, 1
str w0, [x29, 116]
.L25:
ldrsw x1, [x29, 116]
sxtw x0, w19
lsl x0, x0, 2
lsr x0, x0, 2
sub x0, x0, #1
cmp x1, x0
bls .L26
adrp x0, .LC12
add x0, x0, :lo12:.LC12
bl puts
b .L19
.L30:
nop
.L19:
ldr w0, [x29, 104]
cmp w0, 0
bne .L27
mov w0, 0
mov sp, x28
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 .L29
bl __stack_chk_fail
.L29:
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]
ldp x27, x28, [sp, 80]
ldp x29, x30, [sp], 144
.cfi_restore 30
.cfi_restore 29
.cfi_restore 27
.cfi_restore 28
.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
.LFE3:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "%f"
.align 3
.LC1:
.string "Fora de intervalo"
.align 3
.LC2:
.string "Intervalo [0,25]"
.align 3
.LC3:
.string "Intervalo (25,50]"
.align 3
.LC4:
.string "Intervalo (50,75]"
.align 3
.LC5:
.string "Intervalo (75,100]"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 24]
mov x1, 0
add x0, sp, 20
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
ldr s0, [sp, 20]
fcmpe s0, #0.0
bmi .L2
ldr s0, [sp, 20]
mov w0, 1120403456
fmov s1, w0
fcmpe s0, s1
bgt .L2
b .L27
.L2:
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl puts
b .L5
.L27:
ldr s0, [sp, 20]
fcmpe s0, #0.0
bge .L19
b .L6
.L19:
ldr s1, [sp, 20]
fmov s0, 2.5e+1
fcmpe s1, s0
bls .L20
b .L6
.L20:
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl puts
.L6:
ldr s1, [sp, 20]
fmov s0, 2.5e+1
fcmpe s1, s0
bgt .L21
b .L9
.L21:
ldr s0, [sp, 20]
mov w0, 1112014848
fmov s1, w0
fcmpe s0, s1
bls .L22
b .L9
.L22:
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl puts
.L9:
ldr s0, [sp, 20]
mov w0, 1112014848
fmov s1, w0
fcmpe s0, s1
bgt .L23
b .L12
.L23:
ldr s0, [sp, 20]
mov w0, 1117126656
fmov s1, w0
fcmpe s0, s1
bls .L24
b .L12
.L24:
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl puts
.L12:
ldr s0, [sp, 20]
mov w0, 1117126656
fmov s1, w0
fcmpe s0, s1
bgt .L25
b .L5
.L25:
ldr s0, [sp, 20]
mov w0, 1120403456
fmov s1, w0
fcmpe s0, s1
bls .L26
b .L5
.L26:
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl puts
.L5:
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 24]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L18
bl __stack_chk_fail
.L18:
mov w0, w1
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global foo
.type foo, %function
foo:
.LFB0:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
mov w0, 1
strb w0, [sp, 13]
mov w0, 2
strb w0, [sp, 14]
ldrb w1, [sp, 13]
ldrb w0, [sp, 14]
and w0, w1, w0
strb w0, [sp, 15]
nop
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
.local legal_bits
.comm legal_bits,32,8
.align 2
.type legal, %function
legal:
.LFB0:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, 12]
ldr w0, [sp, 12]
add w1, w0, 7
cmp w0, 0
csel w0, w1, w0, lt
asr w0, w0, 3
str w0, [sp, 24]
ldr w0, [sp, 12]
negs w1, w0
and w0, w0, 7
and w1, w1, 7
csneg w0, w0, w1, mi
str w0, [sp, 28]
adrp x0, legal_bits
add x1, x0, :lo12:legal_bits
ldrsw x0, [sp, 24]
ldrb w1, [x1, x0]
ldr w0, [sp, 28]
mov w2, 1
lsl w0, w2, w0
and w0, w0, 255
orr w0, w1, w0
and w2, w0, 255
adrp x0, legal_bits
add x1, x0, :lo12:legal_bits
ldrsw x0, [sp, 24]
strb w2, [x1, x0]
nop
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size legal, .-legal
.section .rodata
.align 3
.LC0:
.string "static const gpr_uint8 legal_header_bits[256/8] = "
.align 3
.LC1:
.string "%c 0x%02x"
.align 3
.LC2:
.string " };"
.text
.align 2
.type dump, %function
dump:
.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, .LC0
add x0, x0, :lo12:.LC0
bl printf
str wzr, [sp, 28]
b .L3
.L6:
ldr w0, [sp, 28]
cmp w0, 0
beq .L4
mov w0, 44
b .L5
.L4:
mov w0, 123
.L5:
adrp x1, legal_bits
add x2, x1, :lo12:legal_bits
ldrsw x1, [sp, 28]
ldrb w1, [x2, x1]
mov w2, w1
mov w1, w0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L3:
ldr w0, [sp, 28]
cmp w0, 31
ble .L6
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl puts
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size dump, .-dump
.align 2
.type clear, %function
clear:
.LFB2:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
mov x2, 32
mov w1, 0
adrp x0, legal_bits
add x0, x0, :lo12:legal_bits
bl memset
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size clear, .-clear
.align 2
.global main
.type main, %function
main:
.LFB3:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
bl clear
mov w0, 97
str w0, [sp, 28]
b .L9
.L10:
ldr w0, [sp, 28]
bl legal
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L9:
ldr w0, [sp, 28]
cmp w0, 122
ble .L10
mov w0, 48
str w0, [sp, 28]
b .L11
.L12:
ldr w0, [sp, 28]
bl legal
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L11:
ldr w0, [sp, 28]
cmp w0, 57
ble .L12
mov w0, 45
bl legal
mov w0, 95
bl legal
bl dump
bl clear
mov w0, 32
str w0, [sp, 28]
b .L13
.L16:
ldr w0, [sp, 28]
cmp w0, 44
beq .L18
ldr w0, [sp, 28]
bl legal
b .L15
.L18:
nop
.L15:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L13:
ldr w0, [sp, 28]
cmp w0, 126
ble .L16
bl dump
mov w0, 0
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE3:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "TAP version 13"
.text
.align 2
.global print_version
.type print_version, %function
print_version:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size print_version, .-print_version
.section .rodata
.align 3
.LC1:
.string "#"
.align 3
.LC2:
.string "1..%d\n"
.align 3
.LC3:
.string "# total %d\n"
.align 3
.LC4:
.string "# pass %d\n"
.align 3
.LC5:
.string "# ok"
.text
.align 2
.global print_summary
.type print_summary, %function
print_summary:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str w0, [sp, 28]
str w1, [sp, 24]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl puts
ldr w1, [sp, 28]
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
ldr w1, [sp, 28]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
ldr w1, [sp, 24]
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl puts
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl puts
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size print_summary, .-print_summary
.section .rodata
.align 3
.LC6:
.string " ---"
.align 3
.LC7:
.string " iterations: %d\n"
.align 3
.LC8:
.string " elapsed: %0.9f\n"
.align 3
.LC9:
.string " rate: %0.9f\n"
.align 3
.LC10:
.string " ..."
.text
.align 2
.global print_results
.type print_results, %function
print_results:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str d0, [sp, 24]
ldr d0, [sp, 24]
mov x0, 145685290680320
movk x0, 0x412e, lsl 48
fmov d1, x0
fdiv d0, d1, d0
str d0, [sp, 40]
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl puts
mov w1, 16960
movk w1, 0xf, lsl 16
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl printf
ldr d0, [sp, 24]
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl printf
ldr d0, [sp, 40]
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl printf
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl puts
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size print_results, .-print_results
.align 2
.global tic
.type tic, %function
tic:
.LFB9:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 40]
mov x1, 0
add x0, sp, 24
mov x1, 0
bl gettimeofday
ldr d0, [sp, 24]
scvtf d1, d0
ldr d0, [sp, 32]
scvtf d0, d0
mov x0, 145685290680320
movk x0, 0x412e, lsl 48
fmov d2, x0
fdiv d0, d0, d2
fadd d0, d1, d0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 40]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L6
bl __stack_chk_fail
.L6:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size tic, .-tic
.align 2
.global rand_double
.type rand_double, %function
rand_double:
.LFB10:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
bl rand
str w0, [sp, 28]
ldr w0, [sp, 28]
scvtf d0, w0
mov x0, 4746794007248502784
fmov d1, x0
fdiv d0, d0, d1
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size rand_double, .-rand_double
.section .rodata
.align 3
.LC11:
.string "should not return NaN"
.text
.align 2
.global benchmark
.type benchmark, %function
benchmark:
.LFB11:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
bl tic
str d0, [sp, 40]
str wzr, [sp, 28]
b .L10
.L13:
bl rand_double
mov x0, 70368744177664
movk x0, 0x408f, lsl 48
fmov d1, x0
fmul d0, d0, d1
mov x0, 70368744177664
movk x0, 0x407f, lsl 48
fmov d1, x0
fsub d0, d0, d1
str d0, [sp, 48]
ldr d0, [sp, 48]
bl cbrt
str d0, [sp, 32]
ldr d1, [sp, 32]
ldr d0, [sp, 32]
fcmp d1, d0
beq .L11
adrp x0, .LC11
add x0, x0, :lo12:.LC11
bl puts
b .L12
.L11:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L10:
ldr w1, [sp, 28]
mov w0, 16959
movk w0, 0xf, lsl 16
cmp w1, w0
ble .L13
.L12:
bl tic
fmov d1, d0
ldr d0, [sp, 40]
fsub d0, d1, d0
str d0, [sp, 56]
ldr d1, [sp, 32]
ldr d0, [sp, 32]
fcmp d1, d0
beq .L14
adrp x0, .LC11
add x0, x0, :lo12:.LC11
bl puts
.L14:
ldr d0, [sp, 56]
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size benchmark, .-benchmark
.section .rodata
.align 3
.LC12:
.string "cbrt"
.align 3
.LC13:
.string "# c::cephes::%s\n"
.align 3
.LC14:
.string "ok %d benchmark finished\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB12:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
mov x0, 0
bl time
bl srand
bl print_version
str wzr, [sp, 20]
b .L17
.L18:
adrp x0, .LC12
add x1, x0, :lo12:.LC12
adrp x0, .LC13
add x0, x0, :lo12:.LC13
bl printf
bl benchmark
str d0, [sp, 24]
ldr d0, [sp, 24]
bl print_results
ldr w0, [sp, 20]
add w0, w0, 1
mov w1, w0
adrp x0, .LC14
add x0, x0, :lo12:.LC14
bl printf
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
.L17:
ldr w0, [sp, 20]
cmp w0, 2
ble .L18
mov w1, 3
mov w0, 3
bl print_summary
mov w0, 0
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE12:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global fooSI_1
.type fooSI_1, %function
fooSI_1:
.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 x0, [sp, 24]
ldr x0, [sp, 24]
ldr q0, [x0]
mov w0, 1
bl __builtin_ia32_vec_ext_v4si
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size fooSI_1, .-fooSI_1
.align 2
.global fooSI_2
.type fooSI_2, %function
fooSI_2:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
ldr q0, [x0]
mov w0, 2
bl __builtin_ia32_vec_ext_v4si
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size fooSI_2, .-fooSI_2
.align 2
.global fooSF_2
.type fooSF_2, %function
fooSF_2:
.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 x0, [sp, 24]
ldr x0, [sp, 24]
ldr q0, [x0]
mov w0, 2
bl __builtin_ia32_vec_ext_v4sf
scvtf s0, w0
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size fooSF_2, .-fooSF_2
.align 2
.global fooSF_3
.type fooSF_3, %function
fooSF_3:
.LFB3:
.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 q0, [x0]
mov w0, 3
bl __builtin_ia32_vec_ext_v4sf
scvtf s0, w0
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE3:
.size fooSF_3, .-fooSF_3
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global read_buf_head
.bss
.align 2
.type read_buf_head, %object
.size read_buf_head, 4
read_buf_head:
.zero 4
.global read_buf_tail
.align 2
.type read_buf_tail, %object
.size read_buf_tail, 4
read_buf_tail:
.zero 4
.global read_buf
.align 3
.type read_buf, %object
.size read_buf, 4095
read_buf:
.zero 4095
.global write_buf_head
.align 2
.type write_buf_head, %object
.size write_buf_head, 4
write_buf_head:
.zero 4
.global write_buf_tail
.align 2
.type write_buf_tail, %object
.size write_buf_tail, 4
write_buf_tail:
.zero 4
.global write_buf
.align 3
.type write_buf, %object
.size write_buf, 4095
write_buf:
.zero 4095
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global it_root
.bss
.align 3
.type it_root, %object
.size it_root, 8
it_root:
.zero 8
.global ds_root
.align 3
.type ds_root, %object
.size ds_root, 8
ds_root:
.zero 8
.global logfile
.section .rodata
.align 3
.LC0:
.string "/dev/null"
.section .data.rel.local,"aw"
.align 3
.type logfile, %object
.size logfile, 8
logfile:
.xword .LC0
.global debug
.bss
.align 2
.type debug, %object
.size debug, 4
debug:
.zero 4
.section .rodata
.align 3
.LC1:
.string "out of memory\n"
.align 3
.LC2:
.string "usage: hd-idle [-t <disk>] [-a <name>] [-i <idle_time>] [-l <logfile>] [-d] [-h]"
.align 3
.LC3:
.string "error: option -%c requires an argument\n"
.align 3
.LC4:
.string "error: unknown option -%c\n"
.align 3
.LC5:
.string "t:a:i:l:dh"
.align 3
.LC6:
.string "r"
.align 3
.LC7:
.string "/proc/diskstats"
.align 3
.LC8:
.string "%*d %*d %s %*u %*u %u %*u %*u %*u %u %*u %*u %*u %*u"
.align 3
.LC9:
.string "probing %s: reads: %u, writes: %u\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -400]!
.cfi_def_cfa_offset 400
.cfi_offset 29, -400
.cfi_offset 30, -392
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, 392]
mov x1, 0
str wzr, [sp, 40]
mov x0, 24
bl malloc
str x0, [sp, 56]
ldr x0, [sp, 56]
cmp x0, 0
bne .L2
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 14
mov x1, 1
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl fwrite
mov w0, 1
bl exit
.L2:
ldr x0, [sp, 56]
str xzr, [x0]
ldr x0, [sp, 56]
str xzr, [x0, 8]
ldr x0, [sp, 56]
mov w1, 600
str w1, [x0, 16]
adrp x0, it_root
add x0, x0, :lo12:it_root
ldr x1, [sp, 56]
str x1, [x0]
b .L3
.L14:
ldr w0, [sp, 52]
cmp w0, 116
beq .L4
ldr w0, [sp, 52]
cmp w0, 116
bgt .L3
ldr w0, [sp, 52]
cmp w0, 108
beq .L5
ldr w0, [sp, 52]
cmp w0, 108
bgt .L3
ldr w0, [sp, 52]
cmp w0, 105
beq .L6
ldr w0, [sp, 52]
cmp w0, 105
bgt .L3
ldr w0, [sp, 52]
cmp w0, 104
beq .L7
ldr w0, [sp, 52]
cmp w0, 104
bgt .L3
ldr w0, [sp, 52]
cmp w0, 100
beq .L8
ldr w0, [sp, 52]
cmp w0, 100
bgt .L3
ldr w0, [sp, 52]
cmp w0, 97
beq .L9
ldr w0, [sp, 52]
cmp w0, 97
bgt .L3
ldr w0, [sp, 52]
cmp w0, 58
beq .L10
ldr w0, [sp, 52]
cmp w0, 63
beq .L11
b .L3
.L4:
adrp x0, :got:optarg
ldr x0, [x0, #:got_lo12:optarg]
ldr x0, [x0]
bl spindown_disk
mov w0, 0
b .L12
.L9:
mov x0, 24
bl malloc
str x0, [sp, 56]
ldr x0, [sp, 56]
cmp x0, 0
bne .L13
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 14
mov x1, 1
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl fwrite
mov w0, 2
b .L12
.L13:
adrp x0, :got:optarg
ldr x0, [x0, #:got_lo12:optarg]
ldr x0, [x0]
bl disk_name
mov x1, x0
ldr x0, [sp, 56]
str x1, [x0, 8]
ldr x0, [sp, 56]
mov w1, 600
str w1, [x0, 16]
adrp x0, it_root
add x0, x0, :lo12:it_root
ldr x1, [x0]
ldr x0, [sp, 56]
str x1, [x0]
adrp x0, it_root
add x0, x0, :lo12:it_root
ldr x1, [sp, 56]
str x1, [x0]
b .L3
.L6:
adrp x0, :got:optarg
ldr x0, [x0, #:got_lo12:optarg]
ldr x0, [x0]
bl atoi
mov w1, w0
ldr x0, [sp, 56]
str w1, [x0, 16]
b .L3
.L5:
adrp x0, :got:optarg
ldr x0, [x0, #:got_lo12:optarg]
ldr x1, [x0]
adrp x0, logfile
add x0, x0, :lo12:logfile
str x1, [x0]
mov w0, 1
str w0, [sp, 40]
b .L3
.L8:
adrp x0, debug
add x0, x0, :lo12:debug
mov w1, 1
str w1, [x0]
b .L3
.L7:
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl puts
mov w0, 0
b .L12
.L10:
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
adrp x0, :got:optopt
ldr x0, [x0, #:got_lo12:optopt]
ldr w0, [x0]
mov w2, w0
adrp x0, .LC3
add x1, x0, :lo12:.LC3
mov x0, x3
bl fprintf
mov w0, 1
b .L12
.L11:
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
adrp x0, :got:optopt
ldr x0, [x0, #:got_lo12:optopt]
ldr w0, [x0]
mov w2, w0
adrp x0, .LC4
add x1, x0, :lo12:.LC4
mov x0, x3
bl fprintf
mov w0, 1
b .L12
.L3:
adrp x0, .LC5
add x2, x0, :lo12:.LC5
ldr x1, [sp, 16]
ldr w0, [sp, 28]
bl getopt
str w0, [sp, 52]
ldr w0, [sp, 52]
cmn w0, #1
bne .L14
mov w0, 1073741824
str w0, [sp, 44]
adrp x0, it_root
add x0, x0, :lo12:it_root
ldr x0, [x0]
str x0, [sp, 56]
b .L15
.L17:
ldr x0, [sp, 56]
ldr w0, [x0, 16]
cmp w0, 0
beq .L16
ldr x0, [sp, 56]
ldr w0, [x0, 16]
ldr w1, [sp, 44]
cmp w1, w0
ble .L16
ldr x0, [sp, 56]
ldr w0, [x0, 16]
str w0, [sp, 44]
.L16:
ldr x0, [sp, 56]
ldr x0, [x0]
str x0, [sp, 56]
.L15:
ldr x0, [sp, 56]
cmp x0, 0
bne .L17
ldr w0, [sp, 44]
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, 48]
ldr w0, [sp, 48]
cmp w0, 0
bne .L18
mov w0, 1
str w0, [sp, 48]
.L18:
adrp x0, debug
add x0, x0, :lo12:debug
ldr w0, [x0]
cmp w0, 0
bne .L38
bl daemonize
.L38:
adrp x0, .LC6
add x1, x0, :lo12:.LC6
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl fopen
str x0, [sp, 64]
ldr x0, [sp, 64]
cmp x0, 0
bne .L20
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl perror
mov w0, 2
b .L12
.L20:
add x0, sp, 88
mov x2, 104
mov w1, 0
bl memset
b .L22
.L37:
add x0, sp, 88
add x2, x0, 96
add x0, sp, 88
add x1, x0, 92
add x0, sp, 88
add x0, x0, 8
add x5, sp, 192
mov x4, x2
mov x3, x1
mov x2, x0
adrp x0, .LC8
add x1, x0, :lo12:.LC8
mov x0, x5
bl __isoc99_sscanf
cmp w0, 3
bne .L22
mov x0, 0
bl time
str x0, [sp, 72]
ldrb w0, [sp, 96]
cmp w0, 115
bne .L22
ldrb w0, [sp, 97]
cmp w0, 100
bne .L22
bl __ctype_b_loc
ldr x1, [x0]
ldrb w0, [sp, 98]
and x0, x0, 255
lsl x0, x0, 1
add x0, x1, x0
ldrh w0, [x0]
and w0, w0, 1024
cmp w0, 0
beq .L22
ldrb w0, [sp, 99]
cmp w0, 0
beq .L24
b .L22
.L24:
adrp x0, debug
add x0, x0, :lo12:debug
ldr w0, [x0]
cmp w0, 0
beq .L25
ldr w1, [sp, 180]
ldr w2, [sp, 184]
add x0, sp, 88
add x0, x0, 8
mov w3, w2
mov w2, w1
mov x1, x0
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl printf
.L25:
add x0, sp, 88
add x0, x0, 8
bl get_diskstats
str x0, [sp, 80]
ldr x0, [sp, 80]
cmp x0, 0
bne .L26
mov x0, 104
bl malloc
str x0, [sp, 80]
ldr x0, [sp, 80]
cmp x0, 0
bne .L27
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 14
mov x1, 1
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl fwrite
mov w0, 2
b .L12
.L27:
add x0, sp, 88
mov x2, 104
mov x1, x0
ldr x0, [sp, 80]
bl memcpy
ldr x0, [sp, 80]
ldr x1, [sp, 72]
str x1, [x0, 64]
ldr x0, [sp, 80]
ldr x1, [x0, 64]
ldr x0, [sp, 80]
str x1, [x0, 80]
adrp x0, ds_root
add x0, x0, :lo12:ds_root
ldr x1, [x0]
ldr x0, [sp, 80]
str x1, [x0]
adrp x0, ds_root
add x0, x0, :lo12:ds_root
ldr x1, [sp, 80]
str x1, [x0]
adrp x0, it_root
add x0, x0, :lo12:it_root
ldr x0, [x0]
str x0, [sp, 56]
b .L28
.L32:
ldr x0, [sp, 56]
ldr x0, [x0, 8]
cmp x0, 0
beq .L29
ldr x0, [sp, 80]
add x2, x0, 8
ldr x0, [sp, 56]
ldr x0, [x0, 8]
mov x1, x0
mov x0, x2
bl strcmp
cmp w0, 0
bne .L30
.L29:
ldr x0, [sp, 56]
ldr w1, [x0, 16]
ldr x0, [sp, 80]
str w1, [x0, 60]
b .L22
.L30:
ldr x0, [sp, 56]
ldr x0, [x0]
str x0, [sp, 56]
.L28:
ldr x0, [sp, 56]
cmp x0, 0
bne .L32
b .L22
.L26:
ldr x0, [sp, 80]
ldr w1, [x0, 92]
ldr w0, [sp, 180]
cmp w1, w0
bne .L33
ldr x0, [sp, 80]
ldr w1, [x0, 96]
ldr w0, [sp, 184]
cmp w1, w0
bne .L33
ldr x0, [sp, 80]
ldrb w0, [x0, 88]
and w0, w0, 1
and w0, w0, 255
cmp w0, 0
bne .L22
ldr x0, [sp, 80]
ldr w0, [x0, 60]
cmp w0, 0
beq .L22
ldr x0, [sp, 80]
ldr x0, [x0, 64]
ldr x1, [sp, 72]
sub x1, x1, x0
ldr x0, [sp, 80]
ldr w0, [x0, 60]
sxtw x0, w0
cmp x1, x0
blt .L22
ldr x0, [sp, 80]
add x0, x0, 8
bl spindown_disk
ldr x0, [sp, 80]
ldr x1, [sp, 72]
str x1, [x0, 72]
ldr x0, [sp, 80]
ldrb w1, [x0, 88]
orr w1, w1, 1
strb w1, [x0, 88]
b .L22
.L33:
ldr x0, [sp, 80]
ldrb w0, [x0, 88]
and w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L35
ldr w0, [sp, 40]
cmp w0, 0
beq .L36
ldr x0, [sp, 80]
bl log_spinup
.L36:
ldr x0, [sp, 80]
ldr x1, [sp, 72]
str x1, [x0, 80]
.L35:
ldr w1, [sp, 180]
ldr x0, [sp, 80]
str w1, [x0, 92]
ldr w1, [sp, 184]
ldr x0, [sp, 80]
str w1, [x0, 96]
ldr x0, [sp, 80]
ldr x1, [sp, 72]
str x1, [x0, 64]
ldr x0, [sp, 80]
ldrb w1, [x0, 88]
and w1, w1, -2
strb w1, [x0, 88]
.L22:
add x0, sp, 192
ldr x2, [sp, 64]
mov w1, 200
bl fgets
cmp x0, 0
bne .L37
ldr x0, [sp, 64]
bl fclose
ldr w0, [sp, 48]
bl sleep
b .L38
.L12:
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 392]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L39
bl __stack_chk_fail
.L39:
mov w0, w1
ldp x29, x30, [sp], 400
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
.section .rodata
.align 3
.LC10:
.string "couldn't fork"
.align 3
.LC11:
.string "couldn't fork #2"
.align 3
.LC12:
.string "/"
.text
.align 2
.type daemonize, %function
daemonize:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
bl fork
str w0, [sp, 24]
ldr w0, [sp, 24]
cmp w0, 0
bge .L41
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl perror
mov w0, 2
bl exit
.L41:
ldr w0, [sp, 24]
cmp w0, 0
ble .L42
mov w0, 0
bl _exit
.L42:
bl setsid
bl fork
str w0, [sp, 24]
ldr w0, [sp, 24]
cmp w0, 0
bge .L43
adrp x0, .LC11
add x0, x0, :lo12:.LC11
bl perror
mov w0, 2
bl exit
.L43:
ldr w0, [sp, 24]
cmp w0, 0
ble .L44
mov w0, 0
bl _exit
.L44:
adrp x0, .LC12
add x0, x0, :lo12:.LC12
bl chdir
bl getdtablesize
str w0, [sp, 28]
str wzr, [sp, 24]
b .L45
.L46:
ldr w0, [sp, 24]
bl close
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L45:
ldr w1, [sp, 24]
ldr w0, [sp, 28]
cmp w1, w0
blt .L46
mov w1, 0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl open
mov w1, 1
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl open
mov w1, 1
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl open
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size daemonize, .-daemonize
.align 2
.type get_diskstats, %function
get_diskstats:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
adrp x0, ds_root
add x0, x0, :lo12:ds_root
ldr x0, [x0]
str x0, [sp, 40]
b .L48
.L51:
ldr x0, [sp, 40]
add x0, x0, 8
ldr x1, [sp, 24]
bl strcmp
cmp w0, 0
bne .L49
ldr x0, [sp, 40]
b .L50
.L49:
ldr x0, [sp, 40]
ldr x0, [x0]
str x0, [sp, 40]
.L48:
ldr x0, [sp, 40]
cmp x0, 0
bne .L51
mov x0, 0
.L50:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size get_diskstats, .-get_diskstats
.section .rodata
.align 3
.LC13:
.string "spindown: %s\n"
.align 3
.LC14:
.string "\033"
.string ""
.string ""
.string ""
.string ""
.string ""
.align 3
.LC15:
.string "/dev/%s"
.align 3
.LC16:
.string "ioctl on %s:"
.align 3
.LC17:
.string "error: SCSI command failed with status 0x%02x\n"
.align 3
.LC18:
.string "sense buffer:\n"
.text
.align 2
.type spindown_disk, %function
spindown_disk:
.LFB9:
.cfi_startproc
sub sp, sp, #608
.cfi_def_cfa_offset 608
stp x29, x30, [sp]
.cfi_offset 29, -608
.cfi_offset 30, -600
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, 600]
mov x1, 0
adrp x0, debug
add x0, x0, :lo12:debug
ldr w0, [x0]
cmp w0, 0
beq .L53
ldr x1, [sp, 24]
adrp x0, .LC13
add x0, x0, :lo12:.LC13
bl printf
.L53:
add x0, sp, 48
mov x2, 88
mov w1, 0
bl memset
mov w0, 83
str w0, [sp, 48]
mov w0, -1
str w0, [sp, 52]
adrp x0, .LC14
add x0, x0, :lo12:.LC14
str x0, [sp, 72]
mov w0, 6
strb w0, [sp, 56]
add x0, sp, 344
str x0, [sp, 80]
mov w0, -1
strb w0, [sp, 57]
add x4, sp, 136
ldr x3, [sp, 24]
adrp x0, .LC15
add x2, x0, :lo12:.LC15
mov x1, 100
mov x0, x4
bl snprintf
add x0, sp, 136
mov w1, 0
bl open
str w0, [sp, 44]
ldr w0, [sp, 44]
cmp w0, 0
bge .L54
add x0, sp, 136
bl perror
b .L52
.L54:
add x0, sp, 48
mov x2, x0
mov x1, 8837
ldr w0, [sp, 44]
bl ioctl
cmp w0, 0
bge .L56
add x4, sp, 240
ldr x3, [sp, 24]
adrp x0, .LC16
add x2, x0, :lo12:.LC16
mov x1, 100
mov x0, x4
bl snprintf
add x0, sp, 240
bl perror
b .L57
.L56:
ldrb w0, [sp, 113]
cmp w0, 0
beq .L57
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
ldrb w0, [sp, 113]
mov w2, w0
adrp x0, .LC17
add x1, x0, :lo12:.LC17
mov x0, x3
bl fprintf
ldrb w0, [sp, 113]
cmp w0, 1
bne .L57
ldrb w0, [sp, 115]
mov w1, w0
add x3, sp, 344
adrp x0, .LC18
add x2, x0, :lo12:.LC18
mov x0, x3
bl phex
.L57:
ldr w0, [sp, 44]
bl close
.L52:
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 600]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L58
bl __stack_chk_fail
.L58:
ldp x29, x30, [sp]
add sp, sp, 608
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size spindown_disk, .-spindown_disk
.section .rodata
.align 3
.LC19:
.string "a"
.align 3
.LC20:
.string "%Y-%m-%d"
.align 3
.LC21:
.string "%H:%M:%S"
.align 3
.LC22:
.string "date: %s, time: %s, disk: %s, running: %ld, stopped: %ld\n"
.text
.align 2
.type log_spinup, %function
log_spinup:
.LFB10:
.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]
.cfi_offset 19, -112
.cfi_offset 20, -104
str x0, [sp, 40]
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, logfile
add x0, x0, :lo12:logfile
ldr x2, [x0]
adrp x0, .LC19
add x1, x0, :lo12:.LC19
mov x0, x2
bl fopen
str x0, [sp, 64]
ldr x0, [sp, 64]
cmp x0, 0
beq .L62
mov x0, 0
bl time
str x0, [sp, 56]
add x0, sp, 56
bl localtime
add x4, sp, 96
mov x3, x0
adrp x0, .LC20
add x2, x0, :lo12:.LC20
mov x1, 20
mov x0, x4
bl strftime
add x0, sp, 56
bl localtime
add x4, sp, 72
mov x3, x0
adrp x0, .LC21
add x2, x0, :lo12:.LC21
mov x1, 20
mov x0, x4
bl strftime
ldr x0, [sp, 40]
add x19, x0, 8
ldr x0, [sp, 40]
ldr x1, [x0, 72]
ldr x0, [sp, 40]
ldr x0, [x0, 80]
sub x20, x1, x0
mov x0, 0
bl time
mov x1, x0
ldr x0, [sp, 40]
ldr x0, [x0, 72]
sub x2, x1, x0
add x1, sp, 72
add x0, sp, 96
mov x6, x2
mov x5, x20
mov x4, x19
mov x3, x1
mov x2, x0
adrp x0, .LC22
add x1, x0, :lo12:.LC22
ldr x0, [sp, 64]
bl fprintf
ldr x0, [sp, 64]
bl fclose
mov w0, 1
bl sleep
bl sync
.L62:
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 .L61
bl __stack_chk_fail
.L61:
ldp x19, x20, [sp, 16]
ldp x29, x30, [sp], 128
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_restore 20
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size log_spinup, .-log_spinup
.section .rodata
.align 3
.LC23:
.string "out of memory"
.align 3
.LC24:
.string "using %s for %s\n"
.text
.align 2
.type disk_name, %function
disk_name:
.LFB11:
.cfi_startproc
stp x29, x30, [sp, -320]!
.cfi_def_cfa_offset 320
.cfi_offset 29, -320
.cfi_offset 30, -312
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, 312]
mov x1, 0
ldr x0, [sp, 24]
ldrb w0, [x0]
cmp w0, 47
beq .L64
ldr x0, [sp, 24]
b .L75
.L64:
add x0, sp, 56
mov x2, 255
mov x1, x0
ldr x0, [sp, 24]
bl readlink
str x0, [sp, 40]
ldr x0, [sp, 40]
cmp x0, 0
bgt .L66
bl __errno_location
ldr w0, [x0]
cmp w0, 22
beq .L67
ldr x0, [sp, 24]
b .L75
.L67:
add x0, sp, 56
mov x2, 255
ldr x1, [sp, 24]
bl strncpy
strb wzr, [sp, 311]
add x0, sp, 56
bl strlen
str x0, [sp, 40]
.L66:
ldr x0, [sp, 40]
add x1, sp, 56
strb wzr, [x1, x0]
add x0, sp, 56
bl strlen
sub x0, x0, #1
add x1, sp, 56
add x0, x1, x0
str x0, [sp, 48]
b .L68
.L70:
ldr x0, [sp, 48]
strb wzr, [x0]
ldr x0, [sp, 48]
sub x0, x0, #1
str x0, [sp, 48]
.L68:
add x0, sp, 56
ldr x1, [sp, 48]
cmp x1, x0
bcc .L69
bl __ctype_b_loc
ldr x1, [x0]
ldr x0, [sp, 48]
ldrb w0, [x0]
and x0, x0, 255
lsl x0, x0, 1
add x0, x1, x0
ldrh w0, [x0]
and w0, w0, 2048
cmp w0, 0
bne .L70
.L69:
add x0, sp, 56
mov w1, 47
bl strrchr
str x0, [sp, 48]
ldr x0, [sp, 48]
cmp x0, 0
beq .L71
ldr x0, [sp, 48]
add x0, x0, 1
str x0, [sp, 48]
b .L72
.L71:
add x0, sp, 56
str x0, [sp, 48]
.L72:
ldr x0, [sp, 48]
bl strdup
str x0, [sp, 48]
ldr x0, [sp, 48]
cmp x0, 0
bne .L73
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 13
mov x1, 1
adrp x0, .LC23
add x0, x0, :lo12:.LC23
bl fwrite
mov w0, 2
bl exit
.L73:
adrp x0, debug
add x0, x0, :lo12:debug
ldr w0, [x0]
cmp w0, 0
beq .L74
ldr x2, [sp, 24]
ldr x1, [sp, 48]
adrp x0, .LC24
add x0, x0, :lo12:.LC24
bl printf
.L74:
ldr x0, [sp, 48]
.L75:
mov x1, x0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 312]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L76
bl __stack_chk_fail
.L76:
mov x0, x1
ldp x29, x30, [sp], 320
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size disk_name, .-disk_name
.section .rodata
.align 3
.LC25:
.string "%08x "
.align 3
.LC26:
.string "%c%02x"
.align 3
.LC27:
.string " "
.text
.align 2
.type phex, %function
phex:
.LFB12:
.cfi_startproc
stp x29, x30, [sp, -320]!
.cfi_def_cfa_offset 320
.cfi_offset 29, -320
.cfi_offset 30, -312
mov x29, sp
str x0, [sp, 72]
str w1, [sp, 68]
str x2, [sp, 56]
str x3, [sp, 280]
str x4, [sp, 288]
str x5, [sp, 296]
str x6, [sp, 304]
str x7, [sp, 312]
str q0, [sp, 144]
str q1, [sp, 160]
str q2, [sp, 176]
str q3, [sp, 192]
str q4, [sp, 208]
str q5, [sp, 224]
str q6, [sp, 240]
str q7, [sp, 256]
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 x0, [sp, 72]
str x0, [sp, 96]
str wzr, [sp, 88]
add x0, sp, 320
str x0, [sp, 104]
add x0, sp, 320
str x0, [sp, 112]
add x0, sp, 272
str x0, [sp, 120]
mov w0, -40
str w0, [sp, 128]
mov w0, -128
str w0, [sp, 132]
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
add x0, sp, 16
add x1, sp, 104
ldp q0, q1, [x1]
stp q0, q1, [x0]
add x0, sp, 16
mov x2, x0
ldr x1, [sp, 56]
mov x0, x3
bl vfprintf
b .L78
.L89:
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
ldr w2, [sp, 88]
adrp x0, .LC25
add x1, x0, :lo12:.LC25
mov x0, x3
bl fprintf
str wzr, [sp, 92]
b .L79
.L84:
ldr w1, [sp, 92]
ldr w0, [sp, 68]
cmp w1, w0
bge .L80
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x4, [x0]
ldr w0, [sp, 92]
cmp w0, 8
bne .L81
mov w0, 45
b .L82
.L81:
mov w0, 32
.L82:
ldrsw x1, [sp, 92]
ldr x2, [sp, 96]
add x1, x2, x1
ldrb w1, [x1]
mov w3, w1
mov w2, w0
adrp x0, .LC26
add x1, x0, :lo12:.LC26
mov x0, x4
bl fprintf
b .L83
.L80:
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 3
mov x1, 1
adrp x0, .LC27
add x0, x0, :lo12:.LC27
bl fwrite
.L83:
ldr w0, [sp, 92]
add w0, w0, 1
str w0, [sp, 92]
.L79:
ldr w0, [sp, 92]
cmp w0, 15
ble .L84
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 3
mov x1, 1
adrp x0, .LC27
add x0, x0, :lo12:.LC27
bl fwrite
str wzr, [sp, 92]
b .L85
.L88:
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x2, [x0]
ldrsw x0, [sp, 92]
ldr x1, [sp, 96]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 31
bls .L86
ldrsw x0, [sp, 92]
ldr x1, [sp, 96]
add x0, x1, x0
ldrb w0, [x0]
sxtb w0, w0
cmp w0, 0
blt .L86
ldrsw x0, [sp, 92]
ldr x1, [sp, 96]
add x0, x1, x0
ldrb w0, [x0]
b .L87
.L86:
mov w0, 46
.L87:
mov x1, x2
bl fputc
ldr w0, [sp, 92]
add w0, w0, 1
str w0, [sp, 92]
.L85:
ldr w2, [sp, 68]
ldr w1, [sp, 68]
mov w0, 16
cmp w2, 16
csel w0, w1, w0, le
ldr w1, [sp, 92]
cmp w1, w0
blt .L88
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x1, x0
mov w0, 10
bl fputc
ldr w0, [sp, 88]
add w0, w0, 16
str w0, [sp, 88]
ldr x0, [sp, 96]
add x0, x0, 16
str x0, [sp, 96]
ldr w0, [sp, 68]
sub w0, w0, #16
str w0, [sp, 68]
.L78:
ldr w0, [sp, 68]
cmp w0, 0
bgt .L89
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 136]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L90
bl __stack_chk_fail
.L90:
ldp x29, x30, [sp], 320
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE12:
.size phex, .-phex
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.data
.align 1
.type WORD_VALUE_BASE, %object
.size WORD_VALUE_BASE, 2
WORD_VALUE_BASE:
.hword 256
.align 1
.type WORD_BIT_MORE, %object
.size WORD_BIT_MORE, 2
WORD_BIT_MORE:
.hword -32768
.align 1
.type WORD_VALUE_RANGE, %object
.size WORD_VALUE_RANGE, 2
WORD_VALUE_RANGE:
.hword 32512
.section .rodata
.align 3
.LC0:
.string "program.c"
.align 3
.LC1:
.string "(*data & ~WORD_BIT_MORE) >= WORD_VALUE_BASE"
.align 3
.LC2:
.string "(*data & ~WORD_BIT_MORE) < WORD_VALUE_BASE + WORD_VALUE_RANGE"
.text
.align 2
.global decode
.type decode, %function
decode:
.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, 40]
.L4:
ldr x0, [sp, 24]
ldrh w0, [x0]
mov w1, w0
adrp x0, WORD_BIT_MORE
add x0, x0, :lo12:WORD_BIT_MORE
ldrh w0, [x0]
mvn w0, w0
and w0, w1, w0
adrp x1, WORD_VALUE_BASE
add x1, x1, :lo12:WORD_VALUE_BASE
ldrh w1, [x1]
cmp w0, w1
bge .L2
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 14
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L2:
ldr x0, [sp, 24]
ldrh w0, [x0]
mov w1, w0
adrp x0, WORD_BIT_MORE
add x0, x0, :lo12:WORD_BIT_MORE
ldrh w0, [x0]
mvn w0, w0
and w1, w1, w0
adrp x0, WORD_VALUE_BASE
add x0, x0, :lo12:WORD_VALUE_BASE
ldrh w0, [x0]
mov w2, w0
adrp x0, WORD_VALUE_RANGE
add x0, x0, :lo12:WORD_VALUE_RANGE
ldrh w0, [x0]
add w0, w2, w0
cmp w1, w0
blt .L3
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 15
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl __assert_fail
.L3:
ldr x0, [sp, 24]
ldrh w0, [x0]
mov w1, w0
adrp x0, WORD_BIT_MORE
add x0, x0, :lo12:WORD_BIT_MORE
ldrh w0, [x0]
mvn w0, w0
and w0, w1, w0
adrp x1, WORD_VALUE_BASE
add x1, x1, :lo12:WORD_VALUE_BASE
ldrh w1, [x1]
sub w0, w0, w1
str w0, [sp, 44]
adrp x0, WORD_VALUE_RANGE
add x0, x0, :lo12:WORD_VALUE_RANGE
ldrh w0, [x0]
mov w1, w0
ldr w0, [sp, 40]
mul w0, w0, w1
str w0, [sp, 40]
ldr w1, [sp, 40]
ldr w0, [sp, 44]
add w0, w1, w0
str w0, [sp, 40]
ldr x0, [sp, 24]
add x1, x0, 2
str x1, [sp, 24]
ldrh w1, [x0]
adrp x0, WORD_BIT_MORE
add x0, x0, :lo12:WORD_BIT_MORE
ldrh w0, [x0]
and w0, w1, w0
and w0, w0, 65535
cmp w0, 0
bne .L4
ldr w0, [sp, 40]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size decode, .-decode
.section .rodata
.align 3
.LC3:
.string "0x%X (%u)\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
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
mov w0, -32510
strh w0, [sp, 48]
mov w0, 23255
strh w0, [sp, 50]
add x0, sp, 48
bl decode
str w0, [sp, 44]
ldr w2, [sp, 44]
ldr w1, [sp, 44]
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, 56]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L8
bl __stack_chk_fail
.L8:
mov w0, w1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size main, .-main
.section .rodata
.align 3
.type __PRETTY_FUNCTION__.0, %object
.size __PRETTY_FUNCTION__.0, 7
__PRETTY_FUNCTION__.0:
.string "decode"
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "buccaneer.txt"
.align 3
.LC1:
.string "open"
.align 3
.LC2:
.string "readv"
.align 3
.LC3:
.string "%d: %s"
.align 3
.LC4:
.string "close"
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.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
mov w1, 0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl open
str w0, [sp, 28]
ldr w0, [sp, 28]
cmn w0, #1
bne .L2
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl perror
mov w0, 1
b .L8
.L2:
add x0, sp, 88
str x0, [sp, 40]
mov x0, 48
str x0, [sp, 48]
add x0, sp, 192
str x0, [sp, 56]
mov x0, 51
str x0, [sp, 64]
add x0, sp, 136
str x0, [sp, 72]
mov x0, 49
str x0, [sp, 80]
add x0, sp, 40
mov w2, 3
mov x1, x0
ldr w0, [sp, 28]
bl readv
str x0, [sp, 32]
ldr x0, [sp, 32]
cmn x0, #1
bne .L4
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl perror
mov w0, 1
b .L8
.L4:
str wzr, [sp, 24]
b .L5
.L6:
ldrsw x0, [sp, 24]
lsl x0, x0, 4
add x1, sp, 40
ldr x0, [x1, x0]
mov x2, x0
ldr w1, [sp, 24]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L5:
ldr w0, [sp, 24]
cmp w0, 2
ble .L6
ldr w0, [sp, 28]
bl close
cmp w0, 0
beq .L7
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl perror
mov w0, 1
b .L8
.L7:
mov w0, 0
.L8:
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 .L9
bl __stack_chk_fail
.L9:
mov w0, w1
ldp x29, x30, [sp], 256
.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 "rt"
.align 3
.LC1:
.string "in.txt"
.align 3
.LC2:
.string "Cannot open input file.\n"
.align 3
.LC3:
.string "wt"
.align 3
.LC4:
.string "out.txt"
.align 3
.LC5:
.string "Cannot open output file.\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 56]
mov x1, 0
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl fopen
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
bne .L2
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 24
mov x1, 1
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl fwrite
mov w0, 1
b .L6
.L2:
adrp x0, .LC3
add x1, x0, :lo12:.LC3
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl fopen
str x0, [sp, 32]
ldr x0, [sp, 32]
cmp x0, 0
bne .L4
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 25
mov x1, 1
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl fwrite
mov w0, 1
b .L6
.L4:
add x0, sp, 40
ldr x2, [sp, 24]
mov w1, 10
bl fgets
cmp x0, 0
beq .L5
add x0, sp, 40
ldr x2, [sp, 24]
mov w1, 10
bl fgets
ldr x1, [sp, 32]
bl fputs
.L5:
mov w0, 0
.L6:
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 56]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L7
bl __stack_chk_fail
.L7:
mov w0, w1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "%s"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
sub sp, sp, #1040
.cfi_def_cfa_offset 1040
stp x29, x30, [sp]
.cfi_offset 29, -1040
.cfi_offset 30, -1032
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 1032]
mov x1, 0
b .L2
.L7:
ldr w0, [sp, 24]
sub w0, w0, #1
sxtw x0, w0
add x1, sp, 32
ldrb w0, [x1, x0]
cmp w0, 10
beq .L3
b .L4
.L6:
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L4:
bl getchar
str w0, [sp, 28]
ldr w0, [sp, 28]
cmn w0, #1
beq .L5
ldr w0, [sp, 28]
cmp w0, 10
bne .L6
.L5:
ldr w0, [sp, 28]
cmp w0, 10
bne .L3
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L3:
ldr w0, [sp, 24]
cmp w0, 80
ble .L2
add x0, sp, 32
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
.L2:
add x0, sp, 32
mov w1, 1000
bl readline
str w0, [sp, 24]
ldr w0, [sp, 24]
cmp w0, 0
bgt .L7
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 1032]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L9
bl __stack_chk_fail
.L9:
mov w0, w1
ldp x29, x30, [sp]
add sp, sp, 1040
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
.align 2
.global readline
.type readline, %function
readline:
.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]
str wzr, [sp, 44]
b .L11
.L13:
ldrsw x0, [sp, 44]
ldr x1, [sp, 24]
add x0, x1, x0
ldr w1, [sp, 40]
and w1, w1, 255
strb w1, [x0]
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L11:
ldr w0, [sp, 20]
sub w0, w0, #1
ldr w1, [sp, 44]
cmp w1, w0
bge .L12
bl getchar
str w0, [sp, 40]
ldr w0, [sp, 40]
cmn w0, #1
beq .L12
ldr w0, [sp, 40]
cmp w0, 10
bne .L13
.L12:
ldr w0, [sp, 40]
cmp w0, 10
bne .L14
ldrsw x0, [sp, 44]
ldr x1, [sp, 24]
add x0, x1, x0
ldr w1, [sp, 40]
and w1, w1, 255
strb w1, [x0]
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L14:
ldrsw x0, [sp, 44]
ldr x1, [sp, 24]
add x0, x1, x0
strb wzr, [x0]
ldr w0, [sp, 44]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size readline, .-readline
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global ENHANCED_STORAGE_PROPERTY_MAX_CERTIFICATE_COUNT
.section .rodata
.align 3
.type ENHANCED_STORAGE_PROPERTY_MAX_CERTIFICATE_COUNT, %object
.size ENHANCED_STORAGE_PROPERTY_MAX_CERTIFICATE_COUNT, 24
ENHANCED_STORAGE_PROPERTY_MAX_CERTIFICATE_COUNT:
.xword 2435088742
.hword -18382
.hword 19156
.ascii "\272\244|\240\266\262y\214"
.zero 4
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC1:
.string "strlen(destination) -> %d\n"
.align 3
.LC2:
.string "-----"
.align 3
.LC3:
.string "-> %s\n"
.align 3
.LC4:
.string "sizeof(destination)%d\n"
.align 3
.LC5:
.string "--> %c\n"
.align 3
.LC6:
.string "%d%c\t"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 56]
mov x1, 0
str wzr, [sp, 20]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
add x2, sp, 32
mov x3, x0
ldp x0, x1, [x3]
stp x0, x1, [x2]
add x1, x3, 13
add x0, x2, 13
ldr x1, [x1]
str x1, [x0]
add x0, sp, 32
bl strlen
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
adrp x0, .LC2
add x0, x0, :lo12:.LC2
str x0, [sp, 24]
add x0, sp, 32
mov x2, 5
ldr x1, [sp, 24]
bl strncpy
add x0, sp, 32
bl puts
add x0, sp, 32
mov x2, 6
ldr x1, [sp, 24]
bl strncpy
add x0, sp, 32
bl puts
add x0, sp, 32
mov x2, 10
ldr x1, [sp, 24]
bl strncpy
add x0, sp, 32
mov x1, x0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
mov x1, 21
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
ldrb w0, [sp, 51]
mov w1, w0
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
add x0, sp, 32
bl strlen
sub x0, x0, #1
add x1, sp, 32
ldrb w0, [x1, x0]
mov w1, w0
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
b .L2
.L3:
ldrsw x0, [sp, 20]
add x1, sp, 32
ldrb w0, [x1, x0]
mov w2, w0
ldr w1, [sp, 20]
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl printf
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
.L2:
ldr w0, [sp, 20]
cmp w0, 20
bls .L3
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 .L5
bl __stack_chk_fail
.L5:
mov w0, w1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
.section .rodata
.align 3
.LC0:
.string "********************"
.text
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "%d"
.align 3
.LC1:
.string "PROD = %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
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, .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
ldr w1, [sp, 28]
ldr w0, [sp, 32]
mul w0, w1, w0
str w0, [sp, 36]
ldr w1, [sp, 36]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
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
.LFE6:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "JQK"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
adrp x0, .LC0
add x0, x0, :lo12:.LC0
str x0, [sp, 24]
ldr x0, [sp, 24]
ldrb w0, [x0, 2]
strb w0, [sp, 23]
ldr x0, [sp, 24]
add x0, x0, 2
ldr x1, [sp, 24]
ldrb w1, [x1, 1]
strb w1, [x0]
ldr x0, [sp, 24]
add x0, x0, 1
ldr x1, [sp, 24]
ldrb w1, [x1]
strb w1, [x0]
ldr x0, [sp, 24]
ldrb w1, [x0, 2]
ldr x0, [sp, 24]
strb w1, [x0]
ldr x0, [sp, 24]
add x0, x0, 2
ldr x1, [sp, 24]
ldrb w1, [x1, 1]
strb w1, [x0]
ldr x0, [sp, 24]
add x0, x0, 1
ldrb w1, [sp, 23]
strb w1, [x0]
ldr x0, [sp, 24]
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 "Hello, World!"
.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
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 __VERIFIER_nondet_bool
.type __VERIFIER_nondet_bool, %function
__VERIFIER_nondet_bool:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
bl __VERIFIER_nondet_int
cmp w0, 0
cset w0, ne
and w0, w0, 255
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size __VERIFIER_nondet_bool, .-__VERIFIER_nondet_bool
.global st10_evt1
.bss
.type st10_evt1, %object
.size st10_evt1, 1
st10_evt1:
.zero 1
.global _x_st10_evt1
.type _x_st10_evt1, %object
.size _x_st10_evt1, 1
_x_st10_evt1:
.zero 1
.global _diverge_delta
.align 2
.type _diverge_delta, %object
.size _diverge_delta, 4
_diverge_delta:
.zero 4
.global _x__diverge_delta
.align 2
.type _x__diverge_delta, %object
.size _x__diverge_delta, 4
_x__diverge_delta:
.zero 4
.global st10_evt0
.type st10_evt0, %object
.size st10_evt0, 1
st10_evt0:
.zero 1
.global _x_st10_evt0
.type _x_st10_evt0, %object
.size _x_st10_evt0, 1
_x_st10_evt0:
.zero 1
.global st10_l
.type st10_l, %object
.size st10_l, 1
st10_l:
.zero 1
.global _x_st10_l
.type _x_st10_l, %object
.size _x_st10_l, 1
_x_st10_l:
.zero 1
.global st9_evt1
.type st9_evt1, %object
.size st9_evt1, 1
st9_evt1:
.zero 1
.global _x_st9_evt1
.type _x_st9_evt1, %object
.size _x_st9_evt1, 1
_x_st9_evt1:
.zero 1
.global st9_evt0
.type st9_evt0, %object
.size st9_evt0, 1
st9_evt0:
.zero 1
.global _x_st9_evt0
.type _x_st9_evt0, %object
.size _x_st9_evt0, 1
_x_st9_evt0:
.zero 1
.global st9_l
.type st9_l, %object
.size st9_l, 1
st9_l:
.zero 1
.global _x_st9_l
.type _x_st9_l, %object
.size _x_st9_l, 1
_x_st9_l:
.zero 1
.global st10_req_time
.align 2
.type st10_req_time, %object
.size st10_req_time, 4
st10_req_time:
.zero 4
.global _x_st10_req_time
.align 2
.type _x_st10_req_time, %object
.size _x_st10_req_time, 4
_x_st10_req_time:
.zero 4
.global st8_evt1
.type st8_evt1, %object
.size st8_evt1, 1
st8_evt1:
.zero 1
.global _x_st8_evt1
.type _x_st8_evt1, %object
.size _x_st8_evt1, 1
_x_st8_evt1:
.zero 1
.global st8_evt0
.type st8_evt0, %object
.size st8_evt0, 1
st8_evt0:
.zero 1
.global _x_st8_evt0
.type _x_st8_evt0, %object
.size _x_st8_evt0, 1
_x_st8_evt0:
.zero 1
.global st8_l
.type st8_l, %object
.size st8_l, 1
st8_l:
.zero 1
.global _x_st8_l
.type _x_st8_l, %object
.size _x_st8_l, 1
_x_st8_l:
.zero 1
.global st9_req_time
.align 2
.type st9_req_time, %object
.size st9_req_time, 4
st9_req_time:
.zero 4
.global _x_st9_req_time
.align 2
.type _x_st9_req_time, %object
.size _x_st9_req_time, 4
_x_st9_req_time:
.zero 4
.global st7_evt1
.type st7_evt1, %object
.size st7_evt1, 1
st7_evt1:
.zero 1
.global _x_st7_evt1
.type _x_st7_evt1, %object
.size _x_st7_evt1, 1
_x_st7_evt1:
.zero 1
.global st7_evt0
.type st7_evt0, %object
.size st7_evt0, 1
st7_evt0:
.zero 1
.global _x_st7_evt0
.type _x_st7_evt0, %object
.size _x_st7_evt0, 1
_x_st7_evt0:
.zero 1
.global st7_l
.type st7_l, %object
.size st7_l, 1
st7_l:
.zero 1
.global _x_st7_l
.type _x_st7_l, %object
.size _x_st7_l, 1
_x_st7_l:
.zero 1
.global st8_req_time
.align 2
.type st8_req_time, %object
.size st8_req_time, 4
st8_req_time:
.zero 4
.global _x_st8_req_time
.align 2
.type _x_st8_req_time, %object
.size _x_st8_req_time, 4
_x_st8_req_time:
.zero 4
.global st6_evt1
.type st6_evt1, %object
.size st6_evt1, 1
st6_evt1:
.zero 1
.global _x_st6_evt1
.type _x_st6_evt1, %object
.size _x_st6_evt1, 1
_x_st6_evt1:
.zero 1
.global st6_evt0
.type st6_evt0, %object
.size st6_evt0, 1
st6_evt0:
.zero 1
.global _x_st6_evt0
.type _x_st6_evt0, %object
.size _x_st6_evt0, 1
_x_st6_evt0:
.zero 1
.global st6_l
.type st6_l, %object
.size st6_l, 1
st6_l:
.zero 1
.global _x_st6_l
.type _x_st6_l, %object
.size _x_st6_l, 1
_x_st6_l:
.zero 1
.global st7_req_time
.align 2
.type st7_req_time, %object
.size st7_req_time, 4
st7_req_time:
.zero 4
.global _x_st7_req_time
.align 2
.type _x_st7_req_time, %object
.size _x_st7_req_time, 4
_x_st7_req_time:
.zero 4
.global st5_evt1
.type st5_evt1, %object
.size st5_evt1, 1
st5_evt1:
.zero 1
.global _x_st5_evt1
.type _x_st5_evt1, %object
.size _x_st5_evt1, 1
_x_st5_evt1:
.zero 1
.global st5_evt0
.type st5_evt0, %object
.size st5_evt0, 1
st5_evt0:
.zero 1
.global _x_st5_evt0
.type _x_st5_evt0, %object
.size _x_st5_evt0, 1
_x_st5_evt0:
.zero 1
.global st1_req_time
.align 2
.type st1_req_time, %object
.size st1_req_time, 4
st1_req_time:
.zero 4
.global _x_st1_req_time
.align 2
.type _x_st1_req_time, %object
.size _x_st1_req_time, 4
_x_st1_req_time:
.zero 4
.global st4_evt0
.type st4_evt0, %object
.size st4_evt0, 1
st4_evt0:
.zero 1
.global _x_st4_evt0
.type _x_st4_evt0, %object
.size _x_st4_evt0, 1
_x_st4_evt0:
.zero 1
.global st0_evt0
.type st0_evt0, %object
.size st0_evt0, 1
st0_evt0:
.zero 1
.global _x_st0_evt0
.type _x_st0_evt0, %object
.size _x_st0_evt0, 1
_x_st0_evt0:
.zero 1
.global st0_evt1
.type st0_evt1, %object
.size st0_evt1, 1
st0_evt1:
.zero 1
.global _x_st0_evt1
.type _x_st0_evt1, %object
.size _x_st0_evt1, 1
_x_st0_evt1:
.zero 1
.global mgr_c
.align 2
.type mgr_c, %object
.size mgr_c, 4
mgr_c:
.zero 4
.global _x_mgr_c
.align 2
.type _x_mgr_c, %object
.size _x_mgr_c, 4
_x_mgr_c:
.zero 4
.global st0_req_time
.align 2
.type st0_req_time, %object
.size st0_req_time, 4
st0_req_time:
.zero 4
.global _x_st0_req_time
.align 2
.type _x_st0_req_time, %object
.size _x_st0_req_time, 4
_x_st0_req_time:
.zero 4
.global st3_evt0
.type st3_evt0, %object
.size st3_evt0, 1
st3_evt0:
.zero 1
.global _x_st3_evt0
.type _x_st3_evt0, %object
.size _x_st3_evt0, 1
_x_st3_evt0:
.zero 1
.global tot_transm_time
.align 2
.type tot_transm_time, %object
.size tot_transm_time, 4
tot_transm_time:
.zero 4
.global _x_tot_transm_time
.align 2
.type _x_tot_transm_time, %object
.size _x_tot_transm_time, 4
_x_tot_transm_time:
.zero 4
.global st1_l
.type st1_l, %object
.size st1_l, 1
st1_l:
.zero 1
.global _x_st1_l
.type _x_st1_l, %object
.size _x_st1_l, 1
_x_st1_l:
.zero 1
.global st3_l
.type st3_l, %object
.size st3_l, 1
st3_l:
.zero 1
.global _x_st3_l
.type _x_st3_l, %object
.size _x_st3_l, 1
_x_st3_l:
.zero 1
.global delta
.align 2
.type delta, %object
.size delta, 4
delta:
.zero 4
.global _x_delta
.align 2
.type _x_delta, %object
.size _x_delta, 4
_x_delta:
.zero 4
.global st1_evt0
.type st1_evt0, %object
.size st1_evt0, 1
st1_evt0:
.zero 1
.global _x_st1_evt0
.type _x_st1_evt0, %object
.size _x_st1_evt0, 1
_x_st1_evt0:
.zero 1
.global st0_l
.type st0_l, %object
.size st0_l, 1
st0_l:
.zero 1
.global _x_st0_l
.type _x_st0_l, %object
.size _x_st0_l, 1
_x_st0_l:
.zero 1
.global st3_req_time
.align 2
.type st3_req_time, %object
.size st3_req_time, 4
st3_req_time:
.zero 4
.global _x_st3_req_time
.align 2
.type _x_st3_req_time, %object
.size _x_st3_req_time, 4
_x_st3_req_time:
.zero 4
.global st1_evt1
.type st1_evt1, %object
.size st1_evt1, 1
st1_evt1:
.zero 1
.global _x_st1_evt1
.type _x_st1_evt1, %object
.size _x_st1_evt1, 1
_x_st1_evt1:
.zero 1
.global mgr_evt0
.type mgr_evt0, %object
.size mgr_evt0, 1
mgr_evt0:
.zero 1
.global _x_mgr_evt0
.type _x_mgr_evt0, %object
.size _x_mgr_evt0, 1
_x_mgr_evt0:
.zero 1
.global st2_l
.type st2_l, %object
.size st2_l, 1
st2_l:
.zero 1
.global _x_st2_l
.type _x_st2_l, %object
.size _x_st2_l, 1
_x_st2_l:
.zero 1
.global mgr_timeout
.align 2
.type mgr_timeout, %object
.size mgr_timeout, 4
mgr_timeout:
.zero 4
.global _x_mgr_timeout
.align 2
.type _x_mgr_timeout, %object
.size _x_mgr_timeout, 4
_x_mgr_timeout:
.zero 4
.global st2_req_time
.align 2
.type st2_req_time, %object
.size st2_req_time, 4
st2_req_time:
.zero 4
.global _x_st2_req_time
.align 2
.type _x_st2_req_time, %object
.size _x_st2_req_time, 4
_x_st2_req_time:
.zero 4
.global mgr_evt1
.type mgr_evt1, %object
.size mgr_evt1, 1
mgr_evt1:
.zero 1
.global _x_mgr_evt1
.type _x_mgr_evt1, %object
.size _x_mgr_evt1, 1
_x_mgr_evt1:
.zero 1
.global st2_evt0
.type st2_evt0, %object
.size st2_evt0, 1
st2_evt0:
.zero 1
.global _x_st2_evt0
.type _x_st2_evt0, %object
.size _x_st2_evt0, 1
_x_st2_evt0:
.zero 1
.global st4_l
.type st4_l, %object
.size st4_l, 1
st4_l:
.zero 1
.global _x_st4_l
.type _x_st4_l, %object
.size _x_st4_l, 1
_x_st4_l:
.zero 1
.global st2_evt1
.type st2_evt1, %object
.size st2_evt1, 1
st2_evt1:
.zero 1
.global _x_st2_evt1
.type _x_st2_evt1, %object
.size _x_st2_evt1, 1
_x_st2_evt1:
.zero 1
.global st4_req_time
.align 2
.type st4_req_time, %object
.size st4_req_time, 4
st4_req_time:
.zero 4
.global _x_st4_req_time
.align 2
.type _x_st4_req_time, %object
.size _x_st4_req_time, 4
_x_st4_req_time:
.zero 4
.global st6_req_time
.align 2
.type st6_req_time, %object
.size st6_req_time, 4
st6_req_time:
.zero 4
.global _x_st6_req_time
.align 2
.type _x_st6_req_time, %object
.size _x_st6_req_time, 4
_x_st6_req_time:
.zero 4
.global st4_evt1
.type st4_evt1, %object
.size st4_evt1, 1
st4_evt1:
.zero 1
.global _x_st4_evt1
.type _x_st4_evt1, %object
.size _x_st4_evt1, 1
_x_st4_evt1:
.zero 1
.global st5_l
.type st5_l, %object
.size st5_l, 1
st5_l:
.zero 1
.global _x_st5_l
.type _x_st5_l, %object
.size _x_st5_l, 1
_x_st5_l:
.zero 1
.global st3_evt1
.type st3_evt1, %object
.size st3_evt1, 1
st3_evt1:
.zero 1
.global _x_st3_evt1
.type _x_st3_evt1, %object
.size _x_st3_evt1, 1
_x_st3_evt1:
.zero 1
.global mgr_l
.type mgr_l, %object
.size mgr_l, 1
mgr_l:
.zero 1
.global _x_mgr_l
.type _x_mgr_l, %object
.size _x_mgr_l, 1
_x_mgr_l:
.zero 1
.global st5_req_time
.align 2
.type st5_req_time, %object
.size st5_req_time, 4
st5_req_time:
.zero 4
.global _x_st5_req_time
.align 2
.type _x_st5_req_time, %object
.size _x_st5_req_time, 4
_x_st5_req_time:
.zero 4
.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
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st10_evt1
add x0, x0, :lo12:st10_evt1
strb w1, [x0]
bl __VERIFIER_nondet_float
adrp x0, _diverge_delta
add x0, x0, :lo12:_diverge_delta
str s0, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st10_evt0
add x0, x0, :lo12:st10_evt0
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st10_l
add x0, x0, :lo12:st10_l
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st9_evt1
add x0, x0, :lo12:st9_evt1
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st9_evt0
add x0, x0, :lo12:st9_evt0
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st9_l
add x0, x0, :lo12:st9_l
strb w1, [x0]
bl __VERIFIER_nondet_float
adrp x0, st10_req_time
add x0, x0, :lo12:st10_req_time
str s0, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st8_evt1
add x0, x0, :lo12:st8_evt1
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st8_evt0
add x0, x0, :lo12:st8_evt0
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st8_l
add x0, x0, :lo12:st8_l
strb w1, [x0]
bl __VERIFIER_nondet_float
adrp x0, st9_req_time
add x0, x0, :lo12:st9_req_time
str s0, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st7_evt1
add x0, x0, :lo12:st7_evt1
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st7_evt0
add x0, x0, :lo12:st7_evt0
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st7_l
add x0, x0, :lo12:st7_l
strb w1, [x0]
bl __VERIFIER_nondet_float
adrp x0, st8_req_time
add x0, x0, :lo12:st8_req_time
str s0, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st6_evt1
add x0, x0, :lo12:st6_evt1
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st6_evt0
add x0, x0, :lo12:st6_evt0
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st6_l
add x0, x0, :lo12:st6_l
strb w1, [x0]
bl __VERIFIER_nondet_float
adrp x0, st7_req_time
add x0, x0, :lo12:st7_req_time
str s0, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st5_evt1
add x0, x0, :lo12:st5_evt1
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st5_evt0
add x0, x0, :lo12:st5_evt0
strb w1, [x0]
bl __VERIFIER_nondet_float
adrp x0, st1_req_time
add x0, x0, :lo12:st1_req_time
str s0, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st4_evt0
add x0, x0, :lo12:st4_evt0
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st0_evt0
add x0, x0, :lo12:st0_evt0
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st0_evt1
add x0, x0, :lo12:st0_evt1
strb w1, [x0]
bl __VERIFIER_nondet_float
adrp x0, mgr_c
add x0, x0, :lo12:mgr_c
str s0, [x0]
bl __VERIFIER_nondet_float
adrp x0, st0_req_time
add x0, x0, :lo12:st0_req_time
str s0, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st3_evt0
add x0, x0, :lo12:st3_evt0
strb w1, [x0]
bl __VERIFIER_nondet_float
adrp x0, tot_transm_time
add x0, x0, :lo12:tot_transm_time
str s0, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st1_l
add x0, x0, :lo12:st1_l
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st3_l
add x0, x0, :lo12:st3_l
strb w1, [x0]
bl __VERIFIER_nondet_float
adrp x0, delta
add x0, x0, :lo12:delta
str s0, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st1_evt0
add x0, x0, :lo12:st1_evt0
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st0_l
add x0, x0, :lo12:st0_l
strb w1, [x0]
bl __VERIFIER_nondet_float
adrp x0, st3_req_time
add x0, x0, :lo12:st3_req_time
str s0, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st1_evt1
add x0, x0, :lo12:st1_evt1
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, mgr_evt0
add x0, x0, :lo12:mgr_evt0
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st2_l
add x0, x0, :lo12:st2_l
strb w1, [x0]
bl __VERIFIER_nondet_float
adrp x0, mgr_timeout
add x0, x0, :lo12:mgr_timeout
str s0, [x0]
bl __VERIFIER_nondet_float
adrp x0, st2_req_time
add x0, x0, :lo12:st2_req_time
str s0, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, mgr_evt1
add x0, x0, :lo12:mgr_evt1
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st2_evt0
add x0, x0, :lo12:st2_evt0
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st4_l
add x0, x0, :lo12:st4_l
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st2_evt1
add x0, x0, :lo12:st2_evt1
strb w1, [x0]
bl __VERIFIER_nondet_float
adrp x0, st4_req_time
add x0, x0, :lo12:st4_req_time
str s0, [x0]
bl __VERIFIER_nondet_float
adrp x0, st6_req_time
add x0, x0, :lo12:st6_req_time
str s0, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st4_evt1
add x0, x0, :lo12:st4_evt1
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st5_l
add x0, x0, :lo12:st5_l
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, st3_evt1
add x0, x0, :lo12:st3_evt1
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, mgr_l
add x0, x0, :lo12:mgr_l
strb w1, [x0]
bl __VERIFIER_nondet_float
adrp x0, st5_req_time
add x0, x0, :lo12:st5_req_time
str s0, [x0]
adrp x0, st10_l
add x0, x0, :lo12:st10_l
ldrb w0, [x0]
cmp w0, 0
beq .L4
adrp x0, st10_evt1
add x0, x0, :lo12:st10_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L5
adrp x0, st10_evt0
add x0, x0, :lo12:st10_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L6
.L5:
adrp x0, st10_evt0
add x0, x0, :lo12:st10_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L7
adrp x0, st10_evt1
add x0, x0, :lo12:st10_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L6
.L7:
adrp x0, st10_evt0
add x0, x0, :lo12:st10_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L4
adrp x0, st10_evt1
add x0, x0, :lo12:st10_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L4
.L6:
adrp x0, st10_req_time
add x0, x0, :lo12:st10_req_time
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L4
adrp x0, st9_l
add x0, x0, :lo12:st9_l
ldrb w0, [x0]
cmp w0, 0
beq .L4
adrp x0, st9_evt1
add x0, x0, :lo12:st9_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L8
adrp x0, st9_evt0
add x0, x0, :lo12:st9_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L9
.L8:
adrp x0, st9_evt0
add x0, x0, :lo12:st9_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L10
adrp x0, st9_evt1
add x0, x0, :lo12:st9_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L9
.L10:
adrp x0, st9_evt0
add x0, x0, :lo12:st9_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L4
adrp x0, st9_evt1
add x0, x0, :lo12:st9_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L4
.L9:
adrp x0, st9_req_time
add x0, x0, :lo12:st9_req_time
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L4
adrp x0, st8_l
add x0, x0, :lo12:st8_l
ldrb w0, [x0]
cmp w0, 0
beq .L4
adrp x0, st8_evt1
add x0, x0, :lo12:st8_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L11
adrp x0, st8_evt0
add x0, x0, :lo12:st8_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L12
.L11:
adrp x0, st8_evt0
add x0, x0, :lo12:st8_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L13
adrp x0, st8_evt1
add x0, x0, :lo12:st8_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L12
.L13:
adrp x0, st8_evt0
add x0, x0, :lo12:st8_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L4
adrp x0, st8_evt1
add x0, x0, :lo12:st8_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L4
.L12:
adrp x0, st8_req_time
add x0, x0, :lo12:st8_req_time
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L4
adrp x0, st7_l
add x0, x0, :lo12:st7_l
ldrb w0, [x0]
cmp w0, 0
beq .L4
adrp x0, st7_evt1
add x0, x0, :lo12:st7_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L14
adrp x0, st7_evt0
add x0, x0, :lo12:st7_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L15
.L14:
adrp x0, st7_evt0
add x0, x0, :lo12:st7_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L16
adrp x0, st7_evt1
add x0, x0, :lo12:st7_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L15
.L16:
adrp x0, st7_evt0
add x0, x0, :lo12:st7_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L4
adrp x0, st7_evt1
add x0, x0, :lo12:st7_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L4
.L15:
adrp x0, st7_req_time
add x0, x0, :lo12:st7_req_time
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L4
adrp x0, st6_l
add x0, x0, :lo12:st6_l
ldrb w0, [x0]
cmp w0, 0
beq .L4
adrp x0, st6_evt1
add x0, x0, :lo12:st6_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L17
adrp x0, st6_evt0
add x0, x0, :lo12:st6_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L18
.L17:
adrp x0, st6_evt0
add x0, x0, :lo12:st6_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L19
adrp x0, st6_evt1
add x0, x0, :lo12:st6_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L18
.L19:
adrp x0, st6_evt0
add x0, x0, :lo12:st6_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L4
adrp x0, st6_evt1
add x0, x0, :lo12:st6_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L4
.L18:
adrp x0, st6_req_time
add x0, x0, :lo12:st6_req_time
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L4
adrp x0, st5_l
add x0, x0, :lo12:st5_l
ldrb w0, [x0]
cmp w0, 0
beq .L4
adrp x0, st5_evt1
add x0, x0, :lo12:st5_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L20
adrp x0, st5_evt0
add x0, x0, :lo12:st5_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L21
.L20:
adrp x0, st5_evt0
add x0, x0, :lo12:st5_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L22
adrp x0, st5_evt1
add x0, x0, :lo12:st5_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L21
.L22:
adrp x0, st5_evt0
add x0, x0, :lo12:st5_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L4
adrp x0, st5_evt1
add x0, x0, :lo12:st5_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L4
.L21:
adrp x0, st5_req_time
add x0, x0, :lo12:st5_req_time
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L4
adrp x0, st4_l
add x0, x0, :lo12:st4_l
ldrb w0, [x0]
cmp w0, 0
beq .L4
adrp x0, st4_evt1
add x0, x0, :lo12:st4_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L23
adrp x0, st4_evt0
add x0, x0, :lo12:st4_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L24
.L23:
adrp x0, st4_evt0
add x0, x0, :lo12:st4_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L25
adrp x0, st4_evt1
add x0, x0, :lo12:st4_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L24
.L25:
adrp x0, st4_evt0
add x0, x0, :lo12:st4_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L4
adrp x0, st4_evt1
add x0, x0, :lo12:st4_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L4
.L24:
adrp x0, st4_req_time
add x0, x0, :lo12:st4_req_time
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L4
adrp x0, st3_l
add x0, x0, :lo12:st3_l
ldrb w0, [x0]
cmp w0, 0
beq .L4
adrp x0, st3_evt1
add x0, x0, :lo12:st3_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L26
adrp x0, st3_evt0
add x0, x0, :lo12:st3_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L27
.L26:
adrp x0, st3_evt0
add x0, x0, :lo12:st3_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L28
adrp x0, st3_evt1
add x0, x0, :lo12:st3_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L27
.L28:
adrp x0, st3_evt0
add x0, x0, :lo12:st3_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L4
adrp x0, st3_evt1
add x0, x0, :lo12:st3_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L4
.L27:
adrp x0, st3_req_time
add x0, x0, :lo12:st3_req_time
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L4
adrp x0, st2_l
add x0, x0, :lo12:st2_l
ldrb w0, [x0]
cmp w0, 0
beq .L4
adrp x0, st2_evt1
add x0, x0, :lo12:st2_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L29
adrp x0, st2_evt0
add x0, x0, :lo12:st2_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L30
.L29:
adrp x0, st2_evt0
add x0, x0, :lo12:st2_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L31
adrp x0, st2_evt1
add x0, x0, :lo12:st2_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L30
.L31:
adrp x0, st2_evt0
add x0, x0, :lo12:st2_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L4
adrp x0, st2_evt1
add x0, x0, :lo12:st2_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L4
.L30:
adrp x0, st2_req_time
add x0, x0, :lo12:st2_req_time
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L4
adrp x0, st1_l
add x0, x0, :lo12:st1_l
ldrb w0, [x0]
cmp w0, 0
beq .L4
adrp x0, st1_evt1
add x0, x0, :lo12:st1_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L32
adrp x0, st1_evt0
add x0, x0, :lo12:st1_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L33
.L32:
adrp x0, st1_evt0
add x0, x0, :lo12:st1_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L34
adrp x0, st1_evt1
add x0, x0, :lo12:st1_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L33
.L34:
adrp x0, st1_evt0
add x0, x0, :lo12:st1_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L4
adrp x0, st1_evt1
add x0, x0, :lo12:st1_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L4
.L33:
adrp x0, st1_req_time
add x0, x0, :lo12:st1_req_time
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L4
adrp x0, st0_l
add x0, x0, :lo12:st0_l
ldrb w0, [x0]
cmp w0, 0
beq .L4
adrp x0, st0_evt1
add x0, x0, :lo12:st0_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L35
adrp x0, st0_evt0
add x0, x0, :lo12:st0_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L36
.L35:
adrp x0, st0_evt0
add x0, x0, :lo12:st0_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L37
adrp x0, st0_evt1
add x0, x0, :lo12:st0_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L36
.L37:
adrp x0, st0_evt0
add x0, x0, :lo12:st0_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L4
adrp x0, st0_evt1
add x0, x0, :lo12:st0_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L4
.L36:
adrp x0, st0_req_time
add x0, x0, :lo12:st0_req_time
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L4
adrp x0, mgr_l
add x0, x0, :lo12:mgr_l
ldrb w0, [x0]
cmp w0, 0
beq .L4
adrp x0, mgr_evt1
add x0, x0, :lo12:mgr_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L38
adrp x0, mgr_evt0
add x0, x0, :lo12:mgr_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L39
.L38:
adrp x0, mgr_evt0
add x0, x0, :lo12:mgr_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L40
adrp x0, mgr_evt1
add x0, x0, :lo12:mgr_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L39
.L40:
adrp x0, mgr_evt0
add x0, x0, :lo12:mgr_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L4
adrp x0, mgr_evt1
add x0, x0, :lo12:mgr_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L4
.L39:
adrp x0, mgr_c
add x0, x0, :lo12:mgr_c
ldr s0, [x0]
fcmp s0, #0.0
bne .L4
adrp x0, mgr_timeout
add x0, x0, :lo12:mgr_timeout
ldr s0, [x0]
fcmp s0, #0.0
bne .L4
adrp x0, mgr_l
add x0, x0, :lo12:mgr_l
ldrb w0, [x0]
cmp w0, 0
bne .L41
adrp x0, mgr_c
add x0, x0, :lo12:mgr_c
ldr s1, [x0]
adrp x0, mgr_timeout
add x0, x0, :lo12:mgr_timeout
ldr s0, [x0]
fcmpe s1, s0
bls .L41
b .L4
.L41:
adrp x0, tot_transm_time
add x0, x0, :lo12:tot_transm_time
ldr s0, [x0]
fcmp s0, #0.0
bne .L4
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmpe s0, #0.0
bge .L345
b .L4
.L345:
adrp x0, delta
add x0, x0, :lo12:delta
ldr s1, [x0]
adrp x0, _diverge_delta
add x0, x0, :lo12:_diverge_delta
ldr s0, [x0]
fcmp s1, s0
bne .L4
mov w0, 1
b .L44
.L4:
mov w0, 0
.L44:
str w0, [sp, 28]
b .L45
.L343:
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st10_evt1
add x0, x0, :lo12:_x_st10_evt1
strb w1, [x0]
bl __VERIFIER_nondet_float
adrp x0, _x__diverge_delta
add x0, x0, :lo12:_x__diverge_delta
str s0, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st10_evt0
add x0, x0, :lo12:_x_st10_evt0
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st10_l
add x0, x0, :lo12:_x_st10_l
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st9_evt1
add x0, x0, :lo12:_x_st9_evt1
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st9_evt0
add x0, x0, :lo12:_x_st9_evt0
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st9_l
add x0, x0, :lo12:_x_st9_l
strb w1, [x0]
bl __VERIFIER_nondet_float
adrp x0, _x_st10_req_time
add x0, x0, :lo12:_x_st10_req_time
str s0, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st8_evt1
add x0, x0, :lo12:_x_st8_evt1
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st8_evt0
add x0, x0, :lo12:_x_st8_evt0
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st8_l
add x0, x0, :lo12:_x_st8_l
strb w1, [x0]
bl __VERIFIER_nondet_float
adrp x0, _x_st9_req_time
add x0, x0, :lo12:_x_st9_req_time
str s0, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st7_evt1
add x0, x0, :lo12:_x_st7_evt1
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st7_evt0
add x0, x0, :lo12:_x_st7_evt0
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st7_l
add x0, x0, :lo12:_x_st7_l
strb w1, [x0]
bl __VERIFIER_nondet_float
adrp x0, _x_st8_req_time
add x0, x0, :lo12:_x_st8_req_time
str s0, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st6_evt1
add x0, x0, :lo12:_x_st6_evt1
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st6_evt0
add x0, x0, :lo12:_x_st6_evt0
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st6_l
add x0, x0, :lo12:_x_st6_l
strb w1, [x0]
bl __VERIFIER_nondet_float
adrp x0, _x_st7_req_time
add x0, x0, :lo12:_x_st7_req_time
str s0, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st5_evt1
add x0, x0, :lo12:_x_st5_evt1
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st5_evt0
add x0, x0, :lo12:_x_st5_evt0
strb w1, [x0]
bl __VERIFIER_nondet_float
adrp x0, _x_st1_req_time
add x0, x0, :lo12:_x_st1_req_time
str s0, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st4_evt0
add x0, x0, :lo12:_x_st4_evt0
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st0_evt0
add x0, x0, :lo12:_x_st0_evt0
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st0_evt1
add x0, x0, :lo12:_x_st0_evt1
strb w1, [x0]
bl __VERIFIER_nondet_float
adrp x0, _x_mgr_c
add x0, x0, :lo12:_x_mgr_c
str s0, [x0]
bl __VERIFIER_nondet_float
adrp x0, _x_st0_req_time
add x0, x0, :lo12:_x_st0_req_time
str s0, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st3_evt0
add x0, x0, :lo12:_x_st3_evt0
strb w1, [x0]
bl __VERIFIER_nondet_float
adrp x0, _x_tot_transm_time
add x0, x0, :lo12:_x_tot_transm_time
str s0, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st1_l
add x0, x0, :lo12:_x_st1_l
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st3_l
add x0, x0, :lo12:_x_st3_l
strb w1, [x0]
bl __VERIFIER_nondet_float
adrp x0, _x_delta
add x0, x0, :lo12:_x_delta
str s0, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st1_evt0
add x0, x0, :lo12:_x_st1_evt0
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st0_l
add x0, x0, :lo12:_x_st0_l
strb w1, [x0]
bl __VERIFIER_nondet_float
adrp x0, _x_st3_req_time
add x0, x0, :lo12:_x_st3_req_time
str s0, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st1_evt1
add x0, x0, :lo12:_x_st1_evt1
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_mgr_evt0
add x0, x0, :lo12:_x_mgr_evt0
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st2_l
add x0, x0, :lo12:_x_st2_l
strb w1, [x0]
bl __VERIFIER_nondet_float
adrp x0, _x_mgr_timeout
add x0, x0, :lo12:_x_mgr_timeout
str s0, [x0]
bl __VERIFIER_nondet_float
adrp x0, _x_st2_req_time
add x0, x0, :lo12:_x_st2_req_time
str s0, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_mgr_evt1
add x0, x0, :lo12:_x_mgr_evt1
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st2_evt0
add x0, x0, :lo12:_x_st2_evt0
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st4_l
add x0, x0, :lo12:_x_st4_l
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st2_evt1
add x0, x0, :lo12:_x_st2_evt1
strb w1, [x0]
bl __VERIFIER_nondet_float
adrp x0, _x_st4_req_time
add x0, x0, :lo12:_x_st4_req_time
str s0, [x0]
bl __VERIFIER_nondet_float
adrp x0, _x_st6_req_time
add x0, x0, :lo12:_x_st6_req_time
str s0, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st4_evt1
add x0, x0, :lo12:_x_st4_evt1
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st5_l
add x0, x0, :lo12:_x_st5_l
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_st3_evt1
add x0, x0, :lo12:_x_st3_evt1
strb w1, [x0]
bl __VERIFIER_nondet_bool
and w1, w0, 255
adrp x0, _x_mgr_l
add x0, x0, :lo12:_x_mgr_l
strb w1, [x0]
bl __VERIFIER_nondet_float
adrp x0, _x_st5_req_time
add x0, x0, :lo12:_x_st5_req_time
str s0, [x0]
adrp x0, _x_st10_evt1
add x0, x0, :lo12:_x_st10_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L46
adrp x0, _x_st10_evt0
add x0, x0, :lo12:_x_st10_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L47
.L46:
adrp x0, _x_st10_evt0
add x0, x0, :lo12:_x_st10_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L48
adrp x0, _x_st10_evt1
add x0, x0, :lo12:_x_st10_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L47
.L48:
adrp x0, _x_st10_evt0
add x0, x0, :lo12:_x_st10_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, _x_st10_evt1
add x0, x0, :lo12:_x_st10_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L47:
adrp x0, _x_st10_req_time
add x0, x0, :lo12:_x_st10_req_time
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L49
adrp x0, st10_l
add x0, x0, :lo12:st10_l
ldrb w0, [x0]
cmp w0, 0
cset w0, eq
and w1, w0, 255
adrp x0, _x_st10_l
add x0, x0, :lo12:_x_st10_l
ldrb w0, [x0]
cmp w0, 0
cset w0, ne
and w0, w0, 255
eor w0, w1, w0
and w0, w0, 255
cmp w0, 0
beq .L50
adrp x0, st10_req_time
add x0, x0, :lo12:st10_req_time
ldr s1, [x0]
adrp x0, _x_st10_req_time
add x0, x0, :lo12:_x_st10_req_time
ldr s0, [x0]
fcmp s1, s0
beq .L51
.L50:
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmpe s0, #0.0
bls .L346
b .L49
.L346:
adrp x0, st10_evt1
add x0, x0, :lo12:st10_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L51
adrp x0, st10_evt0
add x0, x0, :lo12:st10_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L51:
adrp x0, st10_evt0
add x0, x0, :lo12:st10_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L53
adrp x0, st10_evt1
add x0, x0, :lo12:st10_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L53
adrp x0, _x_st10_l
add x0, x0, :lo12:_x_st10_l
ldrb w0, [x0]
cmp w0, 0
bne .L53
adrp x0, st10_req_time
add x0, x0, :lo12:st10_req_time
ldr s1, [x0]
adrp x0, _x_st10_req_time
add x0, x0, :lo12:_x_st10_req_time
ldr s0, [x0]
fcmp s1, s0
bne .L53
adrp x0, _x_mgr_timeout
add x0, x0, :lo12:_x_mgr_timeout
ldr s1, [x0]
adrp x0, st10_req_time
add x0, x0, :lo12:st10_req_time
ldr s0, [x0]
fcmp s1, s0
beq .L54
.L53:
adrp x0, st10_l
add x0, x0, :lo12:st10_l
ldrb w0, [x0]
cmp w0, 0
beq .L54
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmp s0, #0.0
bne .L54
adrp x0, st10_evt0
add x0, x0, :lo12:st10_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L55
adrp x0, st10_evt1
add x0, x0, :lo12:st10_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L55:
adrp x0, st10_evt0
add x0, x0, :lo12:st10_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L54
adrp x0, st10_evt1
add x0, x0, :lo12:st10_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L54:
adrp x0, st10_evt0
add x0, x0, :lo12:st10_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L56
adrp x0, st10_evt1
add x0, x0, :lo12:st10_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L56
adrp x0, mgr_c
add x0, x0, :lo12:mgr_c
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L56
adrp x0, _x_st10_l
add x0, x0, :lo12:_x_st10_l
ldrb w0, [x0]
cmp w0, 0
bne .L57
.L56:
adrp x0, st10_l
add x0, x0, :lo12:st10_l
ldrb w0, [x0]
cmp w0, 0
bne .L57
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmp s0, #0.0
bne .L57
adrp x0, st10_evt0
add x0, x0, :lo12:st10_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L58
adrp x0, st10_evt1
add x0, x0, :lo12:st10_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L58:
adrp x0, st10_evt0
add x0, x0, :lo12:st10_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L57
adrp x0, st10_evt1
add x0, x0, :lo12:st10_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L57:
adrp x0, _x_st9_evt1
add x0, x0, :lo12:_x_st9_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L59
adrp x0, _x_st9_evt0
add x0, x0, :lo12:_x_st9_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L60
.L59:
adrp x0, _x_st9_evt0
add x0, x0, :lo12:_x_st9_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L61
adrp x0, _x_st9_evt1
add x0, x0, :lo12:_x_st9_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L60
.L61:
adrp x0, _x_st9_evt0
add x0, x0, :lo12:_x_st9_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, _x_st9_evt1
add x0, x0, :lo12:_x_st9_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L60:
adrp x0, _x_st9_req_time
add x0, x0, :lo12:_x_st9_req_time
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L49
adrp x0, st9_l
add x0, x0, :lo12:st9_l
ldrb w0, [x0]
cmp w0, 0
cset w0, eq
and w1, w0, 255
adrp x0, _x_st9_l
add x0, x0, :lo12:_x_st9_l
ldrb w0, [x0]
cmp w0, 0
cset w0, ne
and w0, w0, 255
eor w0, w1, w0
and w0, w0, 255
cmp w0, 0
beq .L62
adrp x0, st9_req_time
add x0, x0, :lo12:st9_req_time
ldr s1, [x0]
adrp x0, _x_st9_req_time
add x0, x0, :lo12:_x_st9_req_time
ldr s0, [x0]
fcmp s1, s0
beq .L63
.L62:
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmpe s0, #0.0
bls .L347
b .L49
.L347:
adrp x0, st9_evt1
add x0, x0, :lo12:st9_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L63
adrp x0, st9_evt0
add x0, x0, :lo12:st9_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L63:
adrp x0, st9_evt0
add x0, x0, :lo12:st9_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L65
adrp x0, st9_evt1
add x0, x0, :lo12:st9_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L65
adrp x0, _x_st9_l
add x0, x0, :lo12:_x_st9_l
ldrb w0, [x0]
cmp w0, 0
bne .L65
adrp x0, st9_req_time
add x0, x0, :lo12:st9_req_time
ldr s1, [x0]
adrp x0, _x_st9_req_time
add x0, x0, :lo12:_x_st9_req_time
ldr s0, [x0]
fcmp s1, s0
bne .L65
adrp x0, _x_mgr_timeout
add x0, x0, :lo12:_x_mgr_timeout
ldr s1, [x0]
adrp x0, st9_req_time
add x0, x0, :lo12:st9_req_time
ldr s0, [x0]
fcmp s1, s0
beq .L66
.L65:
adrp x0, st9_l
add x0, x0, :lo12:st9_l
ldrb w0, [x0]
cmp w0, 0
beq .L66
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmp s0, #0.0
bne .L66
adrp x0, st9_evt0
add x0, x0, :lo12:st9_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L67
adrp x0, st9_evt1
add x0, x0, :lo12:st9_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L67:
adrp x0, st9_evt0
add x0, x0, :lo12:st9_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L66
adrp x0, st9_evt1
add x0, x0, :lo12:st9_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L66:
adrp x0, st9_evt0
add x0, x0, :lo12:st9_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L68
adrp x0, st9_evt1
add x0, x0, :lo12:st9_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L68
adrp x0, mgr_c
add x0, x0, :lo12:mgr_c
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L68
adrp x0, _x_st9_l
add x0, x0, :lo12:_x_st9_l
ldrb w0, [x0]
cmp w0, 0
bne .L69
.L68:
adrp x0, st9_l
add x0, x0, :lo12:st9_l
ldrb w0, [x0]
cmp w0, 0
bne .L69
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmp s0, #0.0
bne .L69
adrp x0, st9_evt0
add x0, x0, :lo12:st9_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L70
adrp x0, st9_evt1
add x0, x0, :lo12:st9_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L70:
adrp x0, st9_evt0
add x0, x0, :lo12:st9_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L69
adrp x0, st9_evt1
add x0, x0, :lo12:st9_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L69:
adrp x0, _x_st8_evt1
add x0, x0, :lo12:_x_st8_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L71
adrp x0, _x_st8_evt0
add x0, x0, :lo12:_x_st8_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L72
.L71:
adrp x0, _x_st8_evt0
add x0, x0, :lo12:_x_st8_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L73
adrp x0, _x_st8_evt1
add x0, x0, :lo12:_x_st8_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L72
.L73:
adrp x0, _x_st8_evt0
add x0, x0, :lo12:_x_st8_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, _x_st8_evt1
add x0, x0, :lo12:_x_st8_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L72:
adrp x0, _x_st8_req_time
add x0, x0, :lo12:_x_st8_req_time
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L49
adrp x0, st8_l
add x0, x0, :lo12:st8_l
ldrb w0, [x0]
cmp w0, 0
cset w0, eq
and w1, w0, 255
adrp x0, _x_st8_l
add x0, x0, :lo12:_x_st8_l
ldrb w0, [x0]
cmp w0, 0
cset w0, ne
and w0, w0, 255
eor w0, w1, w0
and w0, w0, 255
cmp w0, 0
beq .L74
adrp x0, st8_req_time
add x0, x0, :lo12:st8_req_time
ldr s1, [x0]
adrp x0, _x_st8_req_time
add x0, x0, :lo12:_x_st8_req_time
ldr s0, [x0]
fcmp s1, s0
beq .L75
.L74:
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmpe s0, #0.0
bls .L348
b .L49
.L348:
adrp x0, st8_evt1
add x0, x0, :lo12:st8_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L75
adrp x0, st8_evt0
add x0, x0, :lo12:st8_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L75:
adrp x0, st8_evt0
add x0, x0, :lo12:st8_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L77
adrp x0, st8_evt1
add x0, x0, :lo12:st8_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L77
adrp x0, _x_st8_l
add x0, x0, :lo12:_x_st8_l
ldrb w0, [x0]
cmp w0, 0
bne .L77
adrp x0, st8_req_time
add x0, x0, :lo12:st8_req_time
ldr s1, [x0]
adrp x0, _x_st8_req_time
add x0, x0, :lo12:_x_st8_req_time
ldr s0, [x0]
fcmp s1, s0
bne .L77
adrp x0, _x_mgr_timeout
add x0, x0, :lo12:_x_mgr_timeout
ldr s1, [x0]
adrp x0, st8_req_time
add x0, x0, :lo12:st8_req_time
ldr s0, [x0]
fcmp s1, s0
beq .L78
.L77:
adrp x0, st8_l
add x0, x0, :lo12:st8_l
ldrb w0, [x0]
cmp w0, 0
beq .L78
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmp s0, #0.0
bne .L78
adrp x0, st8_evt0
add x0, x0, :lo12:st8_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L79
adrp x0, st8_evt1
add x0, x0, :lo12:st8_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L79:
adrp x0, st8_evt0
add x0, x0, :lo12:st8_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L78
adrp x0, st8_evt1
add x0, x0, :lo12:st8_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L78:
adrp x0, st8_evt0
add x0, x0, :lo12:st8_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L80
adrp x0, st8_evt1
add x0, x0, :lo12:st8_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L80
adrp x0, mgr_c
add x0, x0, :lo12:mgr_c
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L80
adrp x0, _x_st8_l
add x0, x0, :lo12:_x_st8_l
ldrb w0, [x0]
cmp w0, 0
bne .L81
.L80:
adrp x0, st8_l
add x0, x0, :lo12:st8_l
ldrb w0, [x0]
cmp w0, 0
bne .L81
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmp s0, #0.0
bne .L81
adrp x0, st8_evt0
add x0, x0, :lo12:st8_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L82
adrp x0, st8_evt1
add x0, x0, :lo12:st8_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L82:
adrp x0, st8_evt0
add x0, x0, :lo12:st8_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L81
adrp x0, st8_evt1
add x0, x0, :lo12:st8_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L81:
adrp x0, _x_st7_evt1
add x0, x0, :lo12:_x_st7_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L83
adrp x0, _x_st7_evt0
add x0, x0, :lo12:_x_st7_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L84
.L83:
adrp x0, _x_st7_evt0
add x0, x0, :lo12:_x_st7_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L85
adrp x0, _x_st7_evt1
add x0, x0, :lo12:_x_st7_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L84
.L85:
adrp x0, _x_st7_evt0
add x0, x0, :lo12:_x_st7_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, _x_st7_evt1
add x0, x0, :lo12:_x_st7_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L84:
adrp x0, _x_st7_req_time
add x0, x0, :lo12:_x_st7_req_time
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L49
adrp x0, st7_l
add x0, x0, :lo12:st7_l
ldrb w0, [x0]
cmp w0, 0
cset w0, eq
and w1, w0, 255
adrp x0, _x_st7_l
add x0, x0, :lo12:_x_st7_l
ldrb w0, [x0]
cmp w0, 0
cset w0, ne
and w0, w0, 255
eor w0, w1, w0
and w0, w0, 255
cmp w0, 0
beq .L86
adrp x0, st7_req_time
add x0, x0, :lo12:st7_req_time
ldr s1, [x0]
adrp x0, _x_st7_req_time
add x0, x0, :lo12:_x_st7_req_time
ldr s0, [x0]
fcmp s1, s0
beq .L87
.L86:
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmpe s0, #0.0
bls .L349
b .L49
.L349:
adrp x0, st7_evt1
add x0, x0, :lo12:st7_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L87
adrp x0, st7_evt0
add x0, x0, :lo12:st7_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L87:
adrp x0, st7_evt0
add x0, x0, :lo12:st7_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L89
adrp x0, st7_evt1
add x0, x0, :lo12:st7_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L89
adrp x0, _x_st7_l
add x0, x0, :lo12:_x_st7_l
ldrb w0, [x0]
cmp w0, 0
bne .L89
adrp x0, st7_req_time
add x0, x0, :lo12:st7_req_time
ldr s1, [x0]
adrp x0, _x_st7_req_time
add x0, x0, :lo12:_x_st7_req_time
ldr s0, [x0]
fcmp s1, s0
bne .L89
adrp x0, _x_mgr_timeout
add x0, x0, :lo12:_x_mgr_timeout
ldr s1, [x0]
adrp x0, st7_req_time
add x0, x0, :lo12:st7_req_time
ldr s0, [x0]
fcmp s1, s0
beq .L90
.L89:
adrp x0, st7_l
add x0, x0, :lo12:st7_l
ldrb w0, [x0]
cmp w0, 0
beq .L90
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmp s0, #0.0
bne .L90
adrp x0, st7_evt0
add x0, x0, :lo12:st7_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L91
adrp x0, st7_evt1
add x0, x0, :lo12:st7_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L91:
adrp x0, st7_evt0
add x0, x0, :lo12:st7_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L90
adrp x0, st7_evt1
add x0, x0, :lo12:st7_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L90:
adrp x0, st7_evt0
add x0, x0, :lo12:st7_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L92
adrp x0, st7_evt1
add x0, x0, :lo12:st7_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L92
adrp x0, mgr_c
add x0, x0, :lo12:mgr_c
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L92
adrp x0, _x_st7_l
add x0, x0, :lo12:_x_st7_l
ldrb w0, [x0]
cmp w0, 0
bne .L93
.L92:
adrp x0, st7_l
add x0, x0, :lo12:st7_l
ldrb w0, [x0]
cmp w0, 0
bne .L93
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmp s0, #0.0
bne .L93
adrp x0, st7_evt0
add x0, x0, :lo12:st7_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L94
adrp x0, st7_evt1
add x0, x0, :lo12:st7_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L94:
adrp x0, st7_evt0
add x0, x0, :lo12:st7_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L93
adrp x0, st7_evt1
add x0, x0, :lo12:st7_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L93:
adrp x0, _x_st6_evt1
add x0, x0, :lo12:_x_st6_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L95
adrp x0, _x_st6_evt0
add x0, x0, :lo12:_x_st6_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L96
.L95:
adrp x0, _x_st6_evt0
add x0, x0, :lo12:_x_st6_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L97
adrp x0, _x_st6_evt1
add x0, x0, :lo12:_x_st6_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L96
.L97:
adrp x0, _x_st6_evt0
add x0, x0, :lo12:_x_st6_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, _x_st6_evt1
add x0, x0, :lo12:_x_st6_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L96:
adrp x0, _x_st6_req_time
add x0, x0, :lo12:_x_st6_req_time
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L49
adrp x0, st6_l
add x0, x0, :lo12:st6_l
ldrb w0, [x0]
cmp w0, 0
cset w0, eq
and w1, w0, 255
adrp x0, _x_st6_l
add x0, x0, :lo12:_x_st6_l
ldrb w0, [x0]
cmp w0, 0
cset w0, ne
and w0, w0, 255
eor w0, w1, w0
and w0, w0, 255
cmp w0, 0
beq .L98
adrp x0, st6_req_time
add x0, x0, :lo12:st6_req_time
ldr s1, [x0]
adrp x0, _x_st6_req_time
add x0, x0, :lo12:_x_st6_req_time
ldr s0, [x0]
fcmp s1, s0
beq .L99
.L98:
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmpe s0, #0.0
bls .L350
b .L49
.L350:
adrp x0, st6_evt1
add x0, x0, :lo12:st6_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L99
adrp x0, st6_evt0
add x0, x0, :lo12:st6_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L99:
adrp x0, st6_evt0
add x0, x0, :lo12:st6_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L101
adrp x0, st6_evt1
add x0, x0, :lo12:st6_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L101
adrp x0, _x_st6_l
add x0, x0, :lo12:_x_st6_l
ldrb w0, [x0]
cmp w0, 0
bne .L101
adrp x0, st6_req_time
add x0, x0, :lo12:st6_req_time
ldr s1, [x0]
adrp x0, _x_st6_req_time
add x0, x0, :lo12:_x_st6_req_time
ldr s0, [x0]
fcmp s1, s0
bne .L101
adrp x0, _x_mgr_timeout
add x0, x0, :lo12:_x_mgr_timeout
ldr s1, [x0]
adrp x0, st6_req_time
add x0, x0, :lo12:st6_req_time
ldr s0, [x0]
fcmp s1, s0
beq .L102
.L101:
adrp x0, st6_l
add x0, x0, :lo12:st6_l
ldrb w0, [x0]
cmp w0, 0
beq .L102
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmp s0, #0.0
bne .L102
adrp x0, st6_evt0
add x0, x0, :lo12:st6_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L103
adrp x0, st6_evt1
add x0, x0, :lo12:st6_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L103:
adrp x0, st6_evt0
add x0, x0, :lo12:st6_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L102
adrp x0, st6_evt1
add x0, x0, :lo12:st6_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L102:
adrp x0, st6_evt0
add x0, x0, :lo12:st6_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L104
adrp x0, st6_evt1
add x0, x0, :lo12:st6_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L104
adrp x0, mgr_c
add x0, x0, :lo12:mgr_c
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L104
adrp x0, _x_st6_l
add x0, x0, :lo12:_x_st6_l
ldrb w0, [x0]
cmp w0, 0
bne .L105
.L104:
adrp x0, st6_l
add x0, x0, :lo12:st6_l
ldrb w0, [x0]
cmp w0, 0
bne .L105
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmp s0, #0.0
bne .L105
adrp x0, st6_evt0
add x0, x0, :lo12:st6_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L106
adrp x0, st6_evt1
add x0, x0, :lo12:st6_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L106:
adrp x0, st6_evt0
add x0, x0, :lo12:st6_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L105
adrp x0, st6_evt1
add x0, x0, :lo12:st6_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L105:
adrp x0, _x_st5_evt1
add x0, x0, :lo12:_x_st5_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L107
adrp x0, _x_st5_evt0
add x0, x0, :lo12:_x_st5_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L108
.L107:
adrp x0, _x_st5_evt0
add x0, x0, :lo12:_x_st5_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L109
adrp x0, _x_st5_evt1
add x0, x0, :lo12:_x_st5_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L108
.L109:
adrp x0, _x_st5_evt0
add x0, x0, :lo12:_x_st5_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, _x_st5_evt1
add x0, x0, :lo12:_x_st5_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L108:
adrp x0, _x_st5_req_time
add x0, x0, :lo12:_x_st5_req_time
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L49
adrp x0, st5_l
add x0, x0, :lo12:st5_l
ldrb w0, [x0]
cmp w0, 0
cset w0, eq
and w1, w0, 255
adrp x0, _x_st5_l
add x0, x0, :lo12:_x_st5_l
ldrb w0, [x0]
cmp w0, 0
cset w0, ne
and w0, w0, 255
eor w0, w1, w0
and w0, w0, 255
cmp w0, 0
beq .L110
adrp x0, st5_req_time
add x0, x0, :lo12:st5_req_time
ldr s1, [x0]
adrp x0, _x_st5_req_time
add x0, x0, :lo12:_x_st5_req_time
ldr s0, [x0]
fcmp s1, s0
beq .L111
.L110:
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmpe s0, #0.0
bls .L351
b .L49
.L351:
adrp x0, st5_evt1
add x0, x0, :lo12:st5_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L111
adrp x0, st5_evt0
add x0, x0, :lo12:st5_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L111:
adrp x0, st5_evt0
add x0, x0, :lo12:st5_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L113
adrp x0, st5_evt1
add x0, x0, :lo12:st5_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L113
adrp x0, _x_st5_l
add x0, x0, :lo12:_x_st5_l
ldrb w0, [x0]
cmp w0, 0
bne .L113
adrp x0, st5_req_time
add x0, x0, :lo12:st5_req_time
ldr s1, [x0]
adrp x0, _x_st5_req_time
add x0, x0, :lo12:_x_st5_req_time
ldr s0, [x0]
fcmp s1, s0
bne .L113
adrp x0, _x_mgr_timeout
add x0, x0, :lo12:_x_mgr_timeout
ldr s1, [x0]
adrp x0, st5_req_time
add x0, x0, :lo12:st5_req_time
ldr s0, [x0]
fcmp s1, s0
beq .L114
.L113:
adrp x0, st5_l
add x0, x0, :lo12:st5_l
ldrb w0, [x0]
cmp w0, 0
beq .L114
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmp s0, #0.0
bne .L114
adrp x0, st5_evt0
add x0, x0, :lo12:st5_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L115
adrp x0, st5_evt1
add x0, x0, :lo12:st5_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L115:
adrp x0, st5_evt0
add x0, x0, :lo12:st5_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L114
adrp x0, st5_evt1
add x0, x0, :lo12:st5_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L114:
adrp x0, st5_evt0
add x0, x0, :lo12:st5_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L116
adrp x0, st5_evt1
add x0, x0, :lo12:st5_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L116
adrp x0, mgr_c
add x0, x0, :lo12:mgr_c
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L116
adrp x0, _x_st5_l
add x0, x0, :lo12:_x_st5_l
ldrb w0, [x0]
cmp w0, 0
bne .L117
.L116:
adrp x0, st5_l
add x0, x0, :lo12:st5_l
ldrb w0, [x0]
cmp w0, 0
bne .L117
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmp s0, #0.0
bne .L117
adrp x0, st5_evt0
add x0, x0, :lo12:st5_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L118
adrp x0, st5_evt1
add x0, x0, :lo12:st5_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L118:
adrp x0, st5_evt0
add x0, x0, :lo12:st5_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L117
adrp x0, st5_evt1
add x0, x0, :lo12:st5_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L117:
adrp x0, _x_st4_evt1
add x0, x0, :lo12:_x_st4_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L119
adrp x0, _x_st4_evt0
add x0, x0, :lo12:_x_st4_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L120
.L119:
adrp x0, _x_st4_evt0
add x0, x0, :lo12:_x_st4_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L121
adrp x0, _x_st4_evt1
add x0, x0, :lo12:_x_st4_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L120
.L121:
adrp x0, _x_st4_evt0
add x0, x0, :lo12:_x_st4_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, _x_st4_evt1
add x0, x0, :lo12:_x_st4_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L120:
adrp x0, _x_st4_req_time
add x0, x0, :lo12:_x_st4_req_time
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L49
adrp x0, st4_l
add x0, x0, :lo12:st4_l
ldrb w0, [x0]
cmp w0, 0
cset w0, eq
and w1, w0, 255
adrp x0, _x_st4_l
add x0, x0, :lo12:_x_st4_l
ldrb w0, [x0]
cmp w0, 0
cset w0, ne
and w0, w0, 255
eor w0, w1, w0
and w0, w0, 255
cmp w0, 0
beq .L122
adrp x0, st4_req_time
add x0, x0, :lo12:st4_req_time
ldr s1, [x0]
adrp x0, _x_st4_req_time
add x0, x0, :lo12:_x_st4_req_time
ldr s0, [x0]
fcmp s1, s0
beq .L123
.L122:
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmpe s0, #0.0
bls .L352
b .L49
.L352:
adrp x0, st4_evt1
add x0, x0, :lo12:st4_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L123
adrp x0, st4_evt0
add x0, x0, :lo12:st4_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L123:
adrp x0, st4_evt0
add x0, x0, :lo12:st4_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L125
adrp x0, st4_evt1
add x0, x0, :lo12:st4_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L125
adrp x0, _x_st4_l
add x0, x0, :lo12:_x_st4_l
ldrb w0, [x0]
cmp w0, 0
bne .L125
adrp x0, st4_req_time
add x0, x0, :lo12:st4_req_time
ldr s1, [x0]
adrp x0, _x_st4_req_time
add x0, x0, :lo12:_x_st4_req_time
ldr s0, [x0]
fcmp s1, s0
bne .L125
adrp x0, _x_mgr_timeout
add x0, x0, :lo12:_x_mgr_timeout
ldr s1, [x0]
adrp x0, st4_req_time
add x0, x0, :lo12:st4_req_time
ldr s0, [x0]
fcmp s1, s0
beq .L126
.L125:
adrp x0, st4_l
add x0, x0, :lo12:st4_l
ldrb w0, [x0]
cmp w0, 0
beq .L126
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmp s0, #0.0
bne .L126
adrp x0, st4_evt0
add x0, x0, :lo12:st4_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L127
adrp x0, st4_evt1
add x0, x0, :lo12:st4_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L127:
adrp x0, st4_evt0
add x0, x0, :lo12:st4_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L126
adrp x0, st4_evt1
add x0, x0, :lo12:st4_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L126:
adrp x0, st4_evt0
add x0, x0, :lo12:st4_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L128
adrp x0, st4_evt1
add x0, x0, :lo12:st4_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L128
adrp x0, mgr_c
add x0, x0, :lo12:mgr_c
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L128
adrp x0, _x_st4_l
add x0, x0, :lo12:_x_st4_l
ldrb w0, [x0]
cmp w0, 0
bne .L129
.L128:
adrp x0, st4_l
add x0, x0, :lo12:st4_l
ldrb w0, [x0]
cmp w0, 0
bne .L129
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmp s0, #0.0
bne .L129
adrp x0, st4_evt0
add x0, x0, :lo12:st4_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L130
adrp x0, st4_evt1
add x0, x0, :lo12:st4_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L130:
adrp x0, st4_evt0
add x0, x0, :lo12:st4_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L129
adrp x0, st4_evt1
add x0, x0, :lo12:st4_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L129:
adrp x0, _x_st3_evt1
add x0, x0, :lo12:_x_st3_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L131
adrp x0, _x_st3_evt0
add x0, x0, :lo12:_x_st3_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L132
.L131:
adrp x0, _x_st3_evt0
add x0, x0, :lo12:_x_st3_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L133
adrp x0, _x_st3_evt1
add x0, x0, :lo12:_x_st3_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L132
.L133:
adrp x0, _x_st3_evt0
add x0, x0, :lo12:_x_st3_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, _x_st3_evt1
add x0, x0, :lo12:_x_st3_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L132:
adrp x0, _x_st3_req_time
add x0, x0, :lo12:_x_st3_req_time
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L49
adrp x0, st3_l
add x0, x0, :lo12:st3_l
ldrb w0, [x0]
cmp w0, 0
cset w0, eq
and w1, w0, 255
adrp x0, _x_st3_l
add x0, x0, :lo12:_x_st3_l
ldrb w0, [x0]
cmp w0, 0
cset w0, ne
and w0, w0, 255
eor w0, w1, w0
and w0, w0, 255
cmp w0, 0
beq .L134
adrp x0, st3_req_time
add x0, x0, :lo12:st3_req_time
ldr s1, [x0]
adrp x0, _x_st3_req_time
add x0, x0, :lo12:_x_st3_req_time
ldr s0, [x0]
fcmp s1, s0
beq .L135
.L134:
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmpe s0, #0.0
bls .L353
b .L49
.L353:
adrp x0, st3_evt1
add x0, x0, :lo12:st3_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L135
adrp x0, st3_evt0
add x0, x0, :lo12:st3_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L135:
adrp x0, st3_evt0
add x0, x0, :lo12:st3_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L137
adrp x0, st3_evt1
add x0, x0, :lo12:st3_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L137
adrp x0, _x_st3_l
add x0, x0, :lo12:_x_st3_l
ldrb w0, [x0]
cmp w0, 0
bne .L137
adrp x0, st3_req_time
add x0, x0, :lo12:st3_req_time
ldr s1, [x0]
adrp x0, _x_st3_req_time
add x0, x0, :lo12:_x_st3_req_time
ldr s0, [x0]
fcmp s1, s0
bne .L137
adrp x0, _x_mgr_timeout
add x0, x0, :lo12:_x_mgr_timeout
ldr s1, [x0]
adrp x0, st3_req_time
add x0, x0, :lo12:st3_req_time
ldr s0, [x0]
fcmp s1, s0
beq .L138
.L137:
adrp x0, st3_l
add x0, x0, :lo12:st3_l
ldrb w0, [x0]
cmp w0, 0
beq .L138
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmp s0, #0.0
bne .L138
adrp x0, st3_evt0
add x0, x0, :lo12:st3_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L139
adrp x0, st3_evt1
add x0, x0, :lo12:st3_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L139:
adrp x0, st3_evt0
add x0, x0, :lo12:st3_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L138
adrp x0, st3_evt1
add x0, x0, :lo12:st3_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L138:
adrp x0, st3_evt0
add x0, x0, :lo12:st3_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L140
adrp x0, st3_evt1
add x0, x0, :lo12:st3_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L140
adrp x0, mgr_c
add x0, x0, :lo12:mgr_c
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L140
adrp x0, _x_st3_l
add x0, x0, :lo12:_x_st3_l
ldrb w0, [x0]
cmp w0, 0
bne .L141
.L140:
adrp x0, st3_l
add x0, x0, :lo12:st3_l
ldrb w0, [x0]
cmp w0, 0
bne .L141
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmp s0, #0.0
bne .L141
adrp x0, st3_evt0
add x0, x0, :lo12:st3_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L142
adrp x0, st3_evt1
add x0, x0, :lo12:st3_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L142:
adrp x0, st3_evt0
add x0, x0, :lo12:st3_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L141
adrp x0, st3_evt1
add x0, x0, :lo12:st3_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L141:
adrp x0, _x_st2_evt1
add x0, x0, :lo12:_x_st2_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L143
adrp x0, _x_st2_evt0
add x0, x0, :lo12:_x_st2_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L144
.L143:
adrp x0, _x_st2_evt0
add x0, x0, :lo12:_x_st2_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L145
adrp x0, _x_st2_evt1
add x0, x0, :lo12:_x_st2_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L144
.L145:
adrp x0, _x_st2_evt0
add x0, x0, :lo12:_x_st2_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, _x_st2_evt1
add x0, x0, :lo12:_x_st2_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L144:
adrp x0, _x_st2_req_time
add x0, x0, :lo12:_x_st2_req_time
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L49
adrp x0, st2_l
add x0, x0, :lo12:st2_l
ldrb w0, [x0]
cmp w0, 0
cset w0, eq
and w1, w0, 255
adrp x0, _x_st2_l
add x0, x0, :lo12:_x_st2_l
ldrb w0, [x0]
cmp w0, 0
cset w0, ne
and w0, w0, 255
eor w0, w1, w0
and w0, w0, 255
cmp w0, 0
beq .L146
adrp x0, st2_req_time
add x0, x0, :lo12:st2_req_time
ldr s1, [x0]
adrp x0, _x_st2_req_time
add x0, x0, :lo12:_x_st2_req_time
ldr s0, [x0]
fcmp s1, s0
beq .L147
.L146:
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmpe s0, #0.0
bls .L354
b .L49
.L354:
adrp x0, st2_evt1
add x0, x0, :lo12:st2_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L147
adrp x0, st2_evt0
add x0, x0, :lo12:st2_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L147:
adrp x0, st2_evt0
add x0, x0, :lo12:st2_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L149
adrp x0, st2_evt1
add x0, x0, :lo12:st2_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L149
adrp x0, _x_st2_l
add x0, x0, :lo12:_x_st2_l
ldrb w0, [x0]
cmp w0, 0
bne .L149
adrp x0, st2_req_time
add x0, x0, :lo12:st2_req_time
ldr s1, [x0]
adrp x0, _x_st2_req_time
add x0, x0, :lo12:_x_st2_req_time
ldr s0, [x0]
fcmp s1, s0
bne .L149
adrp x0, _x_mgr_timeout
add x0, x0, :lo12:_x_mgr_timeout
ldr s1, [x0]
adrp x0, st2_req_time
add x0, x0, :lo12:st2_req_time
ldr s0, [x0]
fcmp s1, s0
beq .L150
.L149:
adrp x0, st2_l
add x0, x0, :lo12:st2_l
ldrb w0, [x0]
cmp w0, 0
beq .L150
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmp s0, #0.0
bne .L150
adrp x0, st2_evt0
add x0, x0, :lo12:st2_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L151
adrp x0, st2_evt1
add x0, x0, :lo12:st2_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L151:
adrp x0, st2_evt0
add x0, x0, :lo12:st2_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L150
adrp x0, st2_evt1
add x0, x0, :lo12:st2_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L150:
adrp x0, st2_evt0
add x0, x0, :lo12:st2_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L152
adrp x0, st2_evt1
add x0, x0, :lo12:st2_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L152
adrp x0, mgr_c
add x0, x0, :lo12:mgr_c
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L152
adrp x0, _x_st2_l
add x0, x0, :lo12:_x_st2_l
ldrb w0, [x0]
cmp w0, 0
bne .L153
.L152:
adrp x0, st2_l
add x0, x0, :lo12:st2_l
ldrb w0, [x0]
cmp w0, 0
bne .L153
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmp s0, #0.0
bne .L153
adrp x0, st2_evt0
add x0, x0, :lo12:st2_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L154
adrp x0, st2_evt1
add x0, x0, :lo12:st2_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L154:
adrp x0, st2_evt0
add x0, x0, :lo12:st2_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L153
adrp x0, st2_evt1
add x0, x0, :lo12:st2_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L153:
adrp x0, _x_st1_evt1
add x0, x0, :lo12:_x_st1_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L155
adrp x0, _x_st1_evt0
add x0, x0, :lo12:_x_st1_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L156
.L155:
adrp x0, _x_st1_evt0
add x0, x0, :lo12:_x_st1_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L157
adrp x0, _x_st1_evt1
add x0, x0, :lo12:_x_st1_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L156
.L157:
adrp x0, _x_st1_evt0
add x0, x0, :lo12:_x_st1_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, _x_st1_evt1
add x0, x0, :lo12:_x_st1_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L156:
adrp x0, _x_st1_req_time
add x0, x0, :lo12:_x_st1_req_time
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L49
adrp x0, st1_l
add x0, x0, :lo12:st1_l
ldrb w0, [x0]
cmp w0, 0
cset w0, eq
and w1, w0, 255
adrp x0, _x_st1_l
add x0, x0, :lo12:_x_st1_l
ldrb w0, [x0]
cmp w0, 0
cset w0, ne
and w0, w0, 255
eor w0, w1, w0
and w0, w0, 255
cmp w0, 0
beq .L158
adrp x0, st1_req_time
add x0, x0, :lo12:st1_req_time
ldr s1, [x0]
adrp x0, _x_st1_req_time
add x0, x0, :lo12:_x_st1_req_time
ldr s0, [x0]
fcmp s1, s0
beq .L159
.L158:
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmpe s0, #0.0
bls .L355
b .L49
.L355:
adrp x0, st1_evt1
add x0, x0, :lo12:st1_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L159
adrp x0, st1_evt0
add x0, x0, :lo12:st1_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L159:
adrp x0, st1_evt0
add x0, x0, :lo12:st1_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L161
adrp x0, st1_evt1
add x0, x0, :lo12:st1_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L161
adrp x0, _x_st1_l
add x0, x0, :lo12:_x_st1_l
ldrb w0, [x0]
cmp w0, 0
bne .L161
adrp x0, st1_req_time
add x0, x0, :lo12:st1_req_time
ldr s1, [x0]
adrp x0, _x_st1_req_time
add x0, x0, :lo12:_x_st1_req_time
ldr s0, [x0]
fcmp s1, s0
bne .L161
adrp x0, _x_mgr_timeout
add x0, x0, :lo12:_x_mgr_timeout
ldr s1, [x0]
adrp x0, st1_req_time
add x0, x0, :lo12:st1_req_time
ldr s0, [x0]
fcmp s1, s0
beq .L162
.L161:
adrp x0, st1_l
add x0, x0, :lo12:st1_l
ldrb w0, [x0]
cmp w0, 0
beq .L162
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmp s0, #0.0
bne .L162
adrp x0, st1_evt0
add x0, x0, :lo12:st1_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L163
adrp x0, st1_evt1
add x0, x0, :lo12:st1_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L163:
adrp x0, st1_evt0
add x0, x0, :lo12:st1_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L162
adrp x0, st1_evt1
add x0, x0, :lo12:st1_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L162:
adrp x0, st1_evt0
add x0, x0, :lo12:st1_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L164
adrp x0, st1_evt1
add x0, x0, :lo12:st1_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L164
adrp x0, mgr_c
add x0, x0, :lo12:mgr_c
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L164
adrp x0, _x_st1_l
add x0, x0, :lo12:_x_st1_l
ldrb w0, [x0]
cmp w0, 0
bne .L165
.L164:
adrp x0, st1_l
add x0, x0, :lo12:st1_l
ldrb w0, [x0]
cmp w0, 0
bne .L165
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmp s0, #0.0
bne .L165
adrp x0, st1_evt0
add x0, x0, :lo12:st1_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L166
adrp x0, st1_evt1
add x0, x0, :lo12:st1_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L166:
adrp x0, st1_evt0
add x0, x0, :lo12:st1_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L165
adrp x0, st1_evt1
add x0, x0, :lo12:st1_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L165:
adrp x0, _x_st0_evt1
add x0, x0, :lo12:_x_st0_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L167
adrp x0, _x_st0_evt0
add x0, x0, :lo12:_x_st0_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L168
.L167:
adrp x0, _x_st0_evt0
add x0, x0, :lo12:_x_st0_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L169
adrp x0, _x_st0_evt1
add x0, x0, :lo12:_x_st0_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L168
.L169:
adrp x0, _x_st0_evt0
add x0, x0, :lo12:_x_st0_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, _x_st0_evt1
add x0, x0, :lo12:_x_st0_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L168:
adrp x0, _x_st0_req_time
add x0, x0, :lo12:_x_st0_req_time
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L49
adrp x0, st0_l
add x0, x0, :lo12:st0_l
ldrb w0, [x0]
cmp w0, 0
cset w0, eq
and w1, w0, 255
adrp x0, _x_st0_l
add x0, x0, :lo12:_x_st0_l
ldrb w0, [x0]
cmp w0, 0
cset w0, ne
and w0, w0, 255
eor w0, w1, w0
and w0, w0, 255
cmp w0, 0
beq .L170
adrp x0, st0_req_time
add x0, x0, :lo12:st0_req_time
ldr s1, [x0]
adrp x0, _x_st0_req_time
add x0, x0, :lo12:_x_st0_req_time
ldr s0, [x0]
fcmp s1, s0
beq .L171
.L170:
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmpe s0, #0.0
bls .L356
b .L49
.L356:
adrp x0, st0_evt1
add x0, x0, :lo12:st0_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L171
adrp x0, st0_evt0
add x0, x0, :lo12:st0_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L171:
adrp x0, st0_evt0
add x0, x0, :lo12:st0_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L173
adrp x0, st0_evt1
add x0, x0, :lo12:st0_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L173
adrp x0, _x_st0_l
add x0, x0, :lo12:_x_st0_l
ldrb w0, [x0]
cmp w0, 0
bne .L173
adrp x0, st0_req_time
add x0, x0, :lo12:st0_req_time
ldr s1, [x0]
adrp x0, _x_st0_req_time
add x0, x0, :lo12:_x_st0_req_time
ldr s0, [x0]
fcmp s1, s0
bne .L173
adrp x0, _x_mgr_timeout
add x0, x0, :lo12:_x_mgr_timeout
ldr s1, [x0]
adrp x0, st0_req_time
add x0, x0, :lo12:st0_req_time
ldr s0, [x0]
fcmp s1, s0
beq .L174
.L173:
adrp x0, st0_l
add x0, x0, :lo12:st0_l
ldrb w0, [x0]
cmp w0, 0
beq .L174
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmp s0, #0.0
bne .L174
adrp x0, st0_evt0
add x0, x0, :lo12:st0_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L175
adrp x0, st0_evt1
add x0, x0, :lo12:st0_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L175:
adrp x0, st0_evt0
add x0, x0, :lo12:st0_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L174
adrp x0, st0_evt1
add x0, x0, :lo12:st0_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L174:
adrp x0, st0_evt0
add x0, x0, :lo12:st0_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L176
adrp x0, st0_evt1
add x0, x0, :lo12:st0_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L176
adrp x0, _x_st0_l
add x0, x0, :lo12:_x_st0_l
ldrb w0, [x0]
cmp w0, 0
beq .L176
adrp x0, mgr_c
add x0, x0, :lo12:mgr_c
ldr s0, [x0]
fcmpe s0, #0.0
cset w0, ls
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
bne .L177
.L176:
adrp x0, st0_l
add x0, x0, :lo12:st0_l
ldrb w0, [x0]
cmp w0, 0
bne .L177
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmp s0, #0.0
bne .L177
adrp x0, st0_evt0
add x0, x0, :lo12:st0_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L178
adrp x0, st0_evt1
add x0, x0, :lo12:st0_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L178:
adrp x0, st0_evt0
add x0, x0, :lo12:st0_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L177
adrp x0, st0_evt1
add x0, x0, :lo12:st0_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L177:
adrp x0, _x_mgr_evt1
add x0, x0, :lo12:_x_mgr_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L179
adrp x0, _x_mgr_evt0
add x0, x0, :lo12:_x_mgr_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L180
.L179:
adrp x0, _x_mgr_evt0
add x0, x0, :lo12:_x_mgr_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L181
adrp x0, _x_mgr_evt1
add x0, x0, :lo12:_x_mgr_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L180
.L181:
adrp x0, _x_mgr_evt0
add x0, x0, :lo12:_x_mgr_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, _x_mgr_evt1
add x0, x0, :lo12:_x_mgr_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L180:
adrp x0, _x_mgr_l
add x0, x0, :lo12:_x_mgr_l
ldrb w0, [x0]
cmp w0, 0
bne .L182
adrp x0, _x_mgr_c
add x0, x0, :lo12:_x_mgr_c
ldr s1, [x0]
adrp x0, _x_mgr_timeout
add x0, x0, :lo12:_x_mgr_timeout
ldr s0, [x0]
fcmpe s1, s0
bls .L182
b .L49
.L182:
adrp x0, mgr_l
add x0, x0, :lo12:mgr_l
ldrb w0, [x0]
cmp w0, 0
cset w0, eq
and w1, w0, 255
adrp x0, _x_mgr_l
add x0, x0, :lo12:_x_mgr_l
ldrb w0, [x0]
cmp w0, 0
cset w0, ne
and w0, w0, 255
eor w0, w1, w0
and w0, w0, 255
cmp w0, 0
beq .L184
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcvt d1, s0
adrp x0, mgr_c
add x0, x0, :lo12:mgr_c
ldr s0, [x0]
fcvt d2, s0
adrp x0, _x_mgr_c
add x0, x0, :lo12:_x_mgr_c
ldr s0, [x0]
fcvt d0, s0
fsub d0, d2, d0
fadd d0, d1, d0
fcmp d0, #0.0
bne .L184
adrp x0, mgr_timeout
add x0, x0, :lo12:mgr_timeout
ldr s1, [x0]
adrp x0, _x_mgr_timeout
add x0, x0, :lo12:_x_mgr_timeout
ldr s0, [x0]
fcmp s1, s0
beq .L185
.L184:
adrp x0, mgr_evt1
add x0, x0, :lo12:mgr_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L186
adrp x0, mgr_evt0
add x0, x0, :lo12:mgr_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L186:
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmpe s0, #0.0
bls .L185
b .L49
.L185:
adrp x0, mgr_evt0
add x0, x0, :lo12:mgr_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L188
adrp x0, mgr_evt1
add x0, x0, :lo12:mgr_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L188
adrp x0, _x_mgr_l
add x0, x0, :lo12:_x_mgr_l
ldrb w0, [x0]
cmp w0, 0
bne .L188
adrp x0, _x_mgr_c
add x0, x0, :lo12:_x_mgr_c
ldr s0, [x0]
fcmp s0, #0.0
beq .L189
.L188:
adrp x0, mgr_l
add x0, x0, :lo12:mgr_l
ldrb w0, [x0]
cmp w0, 0
beq .L189
adrp x0, mgr_evt0
add x0, x0, :lo12:mgr_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L190
adrp x0, mgr_evt1
add x0, x0, :lo12:mgr_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L191
.L190:
adrp x0, mgr_evt0
add x0, x0, :lo12:mgr_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L189
adrp x0, mgr_evt1
add x0, x0, :lo12:mgr_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L189
.L191:
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmp s0, #0.0
beq .L49
.L189:
adrp x0, _x_mgr_l
add x0, x0, :lo12:_x_mgr_l
ldrb w0, [x0]
cmp w0, 0
beq .L192
adrp x0, mgr_evt0
add x0, x0, :lo12:mgr_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L192
adrp x0, mgr_evt1
add x0, x0, :lo12:mgr_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L192
adrp x0, _x_mgr_c
add x0, x0, :lo12:_x_mgr_c
ldr s0, [x0]
fcmp s0, #0.0
bne .L192
adrp x0, _x_mgr_timeout
add x0, x0, :lo12:_x_mgr_timeout
ldr s0, [x0]
fcmp s0, #0.0
beq .L193
.L192:
adrp x0, mgr_l
add x0, x0, :lo12:mgr_l
ldrb w0, [x0]
cmp w0, 0
bne .L193
adrp x0, mgr_evt0
add x0, x0, :lo12:mgr_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L194
adrp x0, mgr_evt1
add x0, x0, :lo12:mgr_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L195
.L194:
adrp x0, mgr_evt0
add x0, x0, :lo12:mgr_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L193
adrp x0, mgr_evt1
add x0, x0, :lo12:mgr_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L193
.L195:
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcmp s0, #0.0
beq .L49
.L193:
adrp x0, _x_delta
add x0, x0, :lo12:_x_delta
ldr s0, [x0]
fcmpe s0, #0.0
bge .L357
b .L49
.L357:
adrp x0, st0_evt1
add x0, x0, :lo12:st0_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L197
adrp x0, st0_evt0
add x0, x0, :lo12:st0_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L198
.L197:
adrp x0, st1_evt1
add x0, x0, :lo12:st1_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st1_evt0
add x0, x0, :lo12:st1_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L198:
adrp x0, st0_evt1
add x0, x0, :lo12:st0_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L199
adrp x0, st0_evt0
add x0, x0, :lo12:st0_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L200
.L199:
adrp x0, st2_evt1
add x0, x0, :lo12:st2_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st2_evt0
add x0, x0, :lo12:st2_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L200:
adrp x0, st0_evt1
add x0, x0, :lo12:st0_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L201
adrp x0, st0_evt0
add x0, x0, :lo12:st0_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L202
.L201:
adrp x0, st3_evt1
add x0, x0, :lo12:st3_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st3_evt0
add x0, x0, :lo12:st3_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L202:
adrp x0, st0_evt1
add x0, x0, :lo12:st0_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L203
adrp x0, st0_evt0
add x0, x0, :lo12:st0_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L204
.L203:
adrp x0, st4_evt1
add x0, x0, :lo12:st4_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st4_evt0
add x0, x0, :lo12:st4_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L204:
adrp x0, st0_evt1
add x0, x0, :lo12:st0_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L205
adrp x0, st0_evt0
add x0, x0, :lo12:st0_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L206
.L205:
adrp x0, st5_evt1
add x0, x0, :lo12:st5_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st5_evt0
add x0, x0, :lo12:st5_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L206:
adrp x0, st0_evt1
add x0, x0, :lo12:st0_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L207
adrp x0, st0_evt0
add x0, x0, :lo12:st0_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L208
.L207:
adrp x0, st6_evt1
add x0, x0, :lo12:st6_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st6_evt0
add x0, x0, :lo12:st6_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L208:
adrp x0, st0_evt1
add x0, x0, :lo12:st0_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L209
adrp x0, st0_evt0
add x0, x0, :lo12:st0_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L210
.L209:
adrp x0, st7_evt1
add x0, x0, :lo12:st7_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st7_evt0
add x0, x0, :lo12:st7_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L210:
adrp x0, st0_evt1
add x0, x0, :lo12:st0_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L211
adrp x0, st0_evt0
add x0, x0, :lo12:st0_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L212
.L211:
adrp x0, st8_evt1
add x0, x0, :lo12:st8_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st8_evt0
add x0, x0, :lo12:st8_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L212:
adrp x0, st0_evt1
add x0, x0, :lo12:st0_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L213
adrp x0, st0_evt0
add x0, x0, :lo12:st0_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L214
.L213:
adrp x0, st9_evt1
add x0, x0, :lo12:st9_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st9_evt0
add x0, x0, :lo12:st9_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L214:
adrp x0, st0_evt1
add x0, x0, :lo12:st0_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L215
adrp x0, st0_evt0
add x0, x0, :lo12:st0_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L216
.L215:
adrp x0, st10_evt1
add x0, x0, :lo12:st10_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st10_evt0
add x0, x0, :lo12:st10_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L216:
adrp x0, st1_evt1
add x0, x0, :lo12:st1_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L217
adrp x0, st1_evt0
add x0, x0, :lo12:st1_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L218
.L217:
adrp x0, st2_evt1
add x0, x0, :lo12:st2_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st2_evt0
add x0, x0, :lo12:st2_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L218:
adrp x0, st1_evt1
add x0, x0, :lo12:st1_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L219
adrp x0, st1_evt0
add x0, x0, :lo12:st1_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L220
.L219:
adrp x0, st3_evt1
add x0, x0, :lo12:st3_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st3_evt0
add x0, x0, :lo12:st3_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L220:
adrp x0, st1_evt1
add x0, x0, :lo12:st1_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L221
adrp x0, st1_evt0
add x0, x0, :lo12:st1_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L222
.L221:
adrp x0, st4_evt1
add x0, x0, :lo12:st4_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st4_evt0
add x0, x0, :lo12:st4_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L222:
adrp x0, st1_evt1
add x0, x0, :lo12:st1_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L223
adrp x0, st1_evt0
add x0, x0, :lo12:st1_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L224
.L223:
adrp x0, st5_evt1
add x0, x0, :lo12:st5_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st5_evt0
add x0, x0, :lo12:st5_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L224:
adrp x0, st1_evt1
add x0, x0, :lo12:st1_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L225
adrp x0, st1_evt0
add x0, x0, :lo12:st1_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L226
.L225:
adrp x0, st6_evt1
add x0, x0, :lo12:st6_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st6_evt0
add x0, x0, :lo12:st6_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L226:
adrp x0, st1_evt1
add x0, x0, :lo12:st1_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L227
adrp x0, st1_evt0
add x0, x0, :lo12:st1_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L228
.L227:
adrp x0, st7_evt1
add x0, x0, :lo12:st7_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st7_evt0
add x0, x0, :lo12:st7_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L228:
adrp x0, st1_evt1
add x0, x0, :lo12:st1_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L229
adrp x0, st1_evt0
add x0, x0, :lo12:st1_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L230
.L229:
adrp x0, st8_evt1
add x0, x0, :lo12:st8_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st8_evt0
add x0, x0, :lo12:st8_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L230:
adrp x0, st1_evt1
add x0, x0, :lo12:st1_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L231
adrp x0, st1_evt0
add x0, x0, :lo12:st1_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L232
.L231:
adrp x0, st9_evt1
add x0, x0, :lo12:st9_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st9_evt0
add x0, x0, :lo12:st9_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L232:
adrp x0, st1_evt1
add x0, x0, :lo12:st1_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L233
adrp x0, st1_evt0
add x0, x0, :lo12:st1_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L234
.L233:
adrp x0, st10_evt1
add x0, x0, :lo12:st10_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st10_evt0
add x0, x0, :lo12:st10_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L234:
adrp x0, st2_evt1
add x0, x0, :lo12:st2_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L235
adrp x0, st2_evt0
add x0, x0, :lo12:st2_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L236
.L235:
adrp x0, st3_evt1
add x0, x0, :lo12:st3_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st3_evt0
add x0, x0, :lo12:st3_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L236:
adrp x0, st2_evt1
add x0, x0, :lo12:st2_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L237
adrp x0, st2_evt0
add x0, x0, :lo12:st2_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L238
.L237:
adrp x0, st4_evt1
add x0, x0, :lo12:st4_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st4_evt0
add x0, x0, :lo12:st4_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L238:
adrp x0, st2_evt1
add x0, x0, :lo12:st2_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L239
adrp x0, st2_evt0
add x0, x0, :lo12:st2_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L240
.L239:
adrp x0, st5_evt1
add x0, x0, :lo12:st5_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st5_evt0
add x0, x0, :lo12:st5_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L240:
adrp x0, st2_evt1
add x0, x0, :lo12:st2_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L241
adrp x0, st2_evt0
add x0, x0, :lo12:st2_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L242
.L241:
adrp x0, st6_evt1
add x0, x0, :lo12:st6_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st6_evt0
add x0, x0, :lo12:st6_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L242:
adrp x0, st2_evt1
add x0, x0, :lo12:st2_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L243
adrp x0, st2_evt0
add x0, x0, :lo12:st2_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L244
.L243:
adrp x0, st7_evt1
add x0, x0, :lo12:st7_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st7_evt0
add x0, x0, :lo12:st7_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L244:
adrp x0, st2_evt1
add x0, x0, :lo12:st2_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L245
adrp x0, st2_evt0
add x0, x0, :lo12:st2_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L246
.L245:
adrp x0, st8_evt1
add x0, x0, :lo12:st8_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st8_evt0
add x0, x0, :lo12:st8_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L246:
adrp x0, st2_evt1
add x0, x0, :lo12:st2_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L247
adrp x0, st2_evt0
add x0, x0, :lo12:st2_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L248
.L247:
adrp x0, st9_evt1
add x0, x0, :lo12:st9_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st9_evt0
add x0, x0, :lo12:st9_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L248:
adrp x0, st2_evt1
add x0, x0, :lo12:st2_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L249
adrp x0, st2_evt0
add x0, x0, :lo12:st2_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L250
.L249:
adrp x0, st10_evt1
add x0, x0, :lo12:st10_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st10_evt0
add x0, x0, :lo12:st10_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L250:
adrp x0, st3_evt1
add x0, x0, :lo12:st3_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L251
adrp x0, st3_evt0
add x0, x0, :lo12:st3_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L252
.L251:
adrp x0, st4_evt1
add x0, x0, :lo12:st4_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st4_evt0
add x0, x0, :lo12:st4_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L252:
adrp x0, st3_evt1
add x0, x0, :lo12:st3_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L253
adrp x0, st3_evt0
add x0, x0, :lo12:st3_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L254
.L253:
adrp x0, st5_evt1
add x0, x0, :lo12:st5_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st5_evt0
add x0, x0, :lo12:st5_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L254:
adrp x0, st3_evt1
add x0, x0, :lo12:st3_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L255
adrp x0, st3_evt0
add x0, x0, :lo12:st3_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L256
.L255:
adrp x0, st6_evt1
add x0, x0, :lo12:st6_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st6_evt0
add x0, x0, :lo12:st6_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L256:
adrp x0, st3_evt1
add x0, x0, :lo12:st3_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L257
adrp x0, st3_evt0
add x0, x0, :lo12:st3_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L258
.L257:
adrp x0, st7_evt1
add x0, x0, :lo12:st7_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st7_evt0
add x0, x0, :lo12:st7_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L258:
adrp x0, st3_evt1
add x0, x0, :lo12:st3_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L259
adrp x0, st3_evt0
add x0, x0, :lo12:st3_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L260
.L259:
adrp x0, st8_evt1
add x0, x0, :lo12:st8_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st8_evt0
add x0, x0, :lo12:st8_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L260:
adrp x0, st3_evt1
add x0, x0, :lo12:st3_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L261
adrp x0, st3_evt0
add x0, x0, :lo12:st3_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L262
.L261:
adrp x0, st9_evt1
add x0, x0, :lo12:st9_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st9_evt0
add x0, x0, :lo12:st9_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L262:
adrp x0, st3_evt1
add x0, x0, :lo12:st3_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L263
adrp x0, st3_evt0
add x0, x0, :lo12:st3_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L264
.L263:
adrp x0, st10_evt1
add x0, x0, :lo12:st10_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st10_evt0
add x0, x0, :lo12:st10_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L264:
adrp x0, st4_evt1
add x0, x0, :lo12:st4_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L265
adrp x0, st4_evt0
add x0, x0, :lo12:st4_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L266
.L265:
adrp x0, st5_evt1
add x0, x0, :lo12:st5_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st5_evt0
add x0, x0, :lo12:st5_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L266:
adrp x0, st4_evt1
add x0, x0, :lo12:st4_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L267
adrp x0, st4_evt0
add x0, x0, :lo12:st4_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L268
.L267:
adrp x0, st6_evt1
add x0, x0, :lo12:st6_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st6_evt0
add x0, x0, :lo12:st6_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L268:
adrp x0, st4_evt1
add x0, x0, :lo12:st4_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L269
adrp x0, st4_evt0
add x0, x0, :lo12:st4_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L270
.L269:
adrp x0, st7_evt1
add x0, x0, :lo12:st7_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st7_evt0
add x0, x0, :lo12:st7_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L270:
adrp x0, st4_evt1
add x0, x0, :lo12:st4_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L271
adrp x0, st4_evt0
add x0, x0, :lo12:st4_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L272
.L271:
adrp x0, st8_evt1
add x0, x0, :lo12:st8_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st8_evt0
add x0, x0, :lo12:st8_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L272:
adrp x0, st4_evt1
add x0, x0, :lo12:st4_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L273
adrp x0, st4_evt0
add x0, x0, :lo12:st4_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L274
.L273:
adrp x0, st9_evt1
add x0, x0, :lo12:st9_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st9_evt0
add x0, x0, :lo12:st9_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L274:
adrp x0, st4_evt1
add x0, x0, :lo12:st4_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L275
adrp x0, st4_evt0
add x0, x0, :lo12:st4_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L276
.L275:
adrp x0, st10_evt1
add x0, x0, :lo12:st10_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st10_evt0
add x0, x0, :lo12:st10_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L276:
adrp x0, st5_evt1
add x0, x0, :lo12:st5_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L277
adrp x0, st5_evt0
add x0, x0, :lo12:st5_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L278
.L277:
adrp x0, st6_evt1
add x0, x0, :lo12:st6_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st6_evt0
add x0, x0, :lo12:st6_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L278:
adrp x0, st5_evt1
add x0, x0, :lo12:st5_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L279
adrp x0, st5_evt0
add x0, x0, :lo12:st5_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L280
.L279:
adrp x0, st7_evt1
add x0, x0, :lo12:st7_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st7_evt0
add x0, x0, :lo12:st7_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L280:
adrp x0, st5_evt1
add x0, x0, :lo12:st5_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L281
adrp x0, st5_evt0
add x0, x0, :lo12:st5_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L282
.L281:
adrp x0, st8_evt1
add x0, x0, :lo12:st8_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st8_evt0
add x0, x0, :lo12:st8_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L282:
adrp x0, st5_evt1
add x0, x0, :lo12:st5_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L283
adrp x0, st5_evt0
add x0, x0, :lo12:st5_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L284
.L283:
adrp x0, st9_evt1
add x0, x0, :lo12:st9_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st9_evt0
add x0, x0, :lo12:st9_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L284:
adrp x0, st5_evt1
add x0, x0, :lo12:st5_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L285
adrp x0, st5_evt0
add x0, x0, :lo12:st5_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L286
.L285:
adrp x0, st10_evt1
add x0, x0, :lo12:st10_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st10_evt0
add x0, x0, :lo12:st10_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L286:
adrp x0, st6_evt1
add x0, x0, :lo12:st6_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L287
adrp x0, st6_evt0
add x0, x0, :lo12:st6_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L288
.L287:
adrp x0, st7_evt1
add x0, x0, :lo12:st7_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st7_evt0
add x0, x0, :lo12:st7_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L288:
adrp x0, st6_evt1
add x0, x0, :lo12:st6_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L289
adrp x0, st6_evt0
add x0, x0, :lo12:st6_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L290
.L289:
adrp x0, st8_evt1
add x0, x0, :lo12:st8_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st8_evt0
add x0, x0, :lo12:st8_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L290:
adrp x0, st6_evt1
add x0, x0, :lo12:st6_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L291
adrp x0, st6_evt0
add x0, x0, :lo12:st6_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L292
.L291:
adrp x0, st9_evt1
add x0, x0, :lo12:st9_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st9_evt0
add x0, x0, :lo12:st9_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L292:
adrp x0, st6_evt1
add x0, x0, :lo12:st6_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L293
adrp x0, st6_evt0
add x0, x0, :lo12:st6_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L294
.L293:
adrp x0, st10_evt1
add x0, x0, :lo12:st10_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st10_evt0
add x0, x0, :lo12:st10_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L294:
adrp x0, st7_evt1
add x0, x0, :lo12:st7_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L295
adrp x0, st7_evt0
add x0, x0, :lo12:st7_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L296
.L295:
adrp x0, st8_evt1
add x0, x0, :lo12:st8_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st8_evt0
add x0, x0, :lo12:st8_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L296:
adrp x0, st7_evt1
add x0, x0, :lo12:st7_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L297
adrp x0, st7_evt0
add x0, x0, :lo12:st7_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L298
.L297:
adrp x0, st9_evt1
add x0, x0, :lo12:st9_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st9_evt0
add x0, x0, :lo12:st9_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L298:
adrp x0, st7_evt1
add x0, x0, :lo12:st7_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L299
adrp x0, st7_evt0
add x0, x0, :lo12:st7_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L300
.L299:
adrp x0, st10_evt1
add x0, x0, :lo12:st10_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st10_evt0
add x0, x0, :lo12:st10_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L300:
adrp x0, st8_evt1
add x0, x0, :lo12:st8_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L301
adrp x0, st8_evt0
add x0, x0, :lo12:st8_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L302
.L301:
adrp x0, st9_evt1
add x0, x0, :lo12:st9_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st9_evt0
add x0, x0, :lo12:st9_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L302:
adrp x0, st8_evt1
add x0, x0, :lo12:st8_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L303
adrp x0, st8_evt0
add x0, x0, :lo12:st8_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L304
.L303:
adrp x0, st10_evt1
add x0, x0, :lo12:st10_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st10_evt0
add x0, x0, :lo12:st10_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L304:
adrp x0, st9_evt1
add x0, x0, :lo12:st9_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L305
adrp x0, st9_evt0
add x0, x0, :lo12:st9_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L306
.L305:
adrp x0, st10_evt1
add x0, x0, :lo12:st10_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L49
adrp x0, st10_evt0
add x0, x0, :lo12:st10_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L49
.L306:
adrp x0, mgr_evt0
add x0, x0, :lo12:mgr_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L307
adrp x0, mgr_evt1
add x0, x0, :lo12:mgr_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L307
mov w0, 1
b .L308
.L307:
mov w0, 0
.L308:
and w0, w0, 1
and w0, w0, 255
eor w0, w0, 1
and w1, w0, 255
adrp x0, st10_evt0
add x0, x0, :lo12:st10_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L309
adrp x0, st10_evt1
add x0, x0, :lo12:st10_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L310
.L309:
adrp x0, st9_evt0
add x0, x0, :lo12:st9_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L311
adrp x0, st9_evt1
add x0, x0, :lo12:st9_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L310
.L311:
adrp x0, st8_evt0
add x0, x0, :lo12:st8_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L312
adrp x0, st8_evt1
add x0, x0, :lo12:st8_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L310
.L312:
adrp x0, st7_evt0
add x0, x0, :lo12:st7_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L313
adrp x0, st7_evt1
add x0, x0, :lo12:st7_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L310
.L313:
adrp x0, st6_evt0
add x0, x0, :lo12:st6_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L314
adrp x0, st6_evt1
add x0, x0, :lo12:st6_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L310
.L314:
adrp x0, st5_evt0
add x0, x0, :lo12:st5_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L315
adrp x0, st5_evt1
add x0, x0, :lo12:st5_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L310
.L315:
adrp x0, st4_evt0
add x0, x0, :lo12:st4_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L316
adrp x0, st4_evt1
add x0, x0, :lo12:st4_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L310
.L316:
adrp x0, st3_evt0
add x0, x0, :lo12:st3_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L317
adrp x0, st3_evt1
add x0, x0, :lo12:st3_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L310
.L317:
adrp x0, st2_evt0
add x0, x0, :lo12:st2_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L318
adrp x0, st2_evt1
add x0, x0, :lo12:st2_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L310
.L318:
adrp x0, st0_evt0
add x0, x0, :lo12:st0_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L319
adrp x0, st0_evt1
add x0, x0, :lo12:st0_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L310
.L319:
adrp x0, st1_evt0
add x0, x0, :lo12:st1_evt0
ldrb w0, [x0]
cmp w0, 0
bne .L320
adrp x0, st1_evt1
add x0, x0, :lo12:st1_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L320
.L310:
mov w0, 1
b .L321
.L320:
mov w0, 0
.L321:
and w0, w0, 1
and w0, w0, 255
eor w0, w1, w0
and w0, w0, 255
cmp w0, 0
beq .L49
adrp x0, mgr_evt0
add x0, x0, :lo12:mgr_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L322
adrp x0, mgr_evt1
add x0, x0, :lo12:mgr_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L322
mov w0, 1
b .L323
.L322:
mov w0, 0
.L323:
and w0, w0, 1
and w0, w0, 255
eor w0, w0, 1
and w1, w0, 255
adrp x0, st10_evt0
add x0, x0, :lo12:st10_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L324
adrp x0, st10_evt1
add x0, x0, :lo12:st10_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L325
.L324:
adrp x0, st9_evt0
add x0, x0, :lo12:st9_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L326
adrp x0, st9_evt1
add x0, x0, :lo12:st9_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L325
.L326:
adrp x0, st8_evt0
add x0, x0, :lo12:st8_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L327
adrp x0, st8_evt1
add x0, x0, :lo12:st8_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L325
.L327:
adrp x0, st7_evt0
add x0, x0, :lo12:st7_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L328
adrp x0, st7_evt1
add x0, x0, :lo12:st7_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L325
.L328:
adrp x0, st6_evt0
add x0, x0, :lo12:st6_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L329
adrp x0, st6_evt1
add x0, x0, :lo12:st6_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L325
.L329:
adrp x0, st5_evt0
add x0, x0, :lo12:st5_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L330
adrp x0, st5_evt1
add x0, x0, :lo12:st5_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L325
.L330:
adrp x0, st4_evt0
add x0, x0, :lo12:st4_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L331
adrp x0, st4_evt1
add x0, x0, :lo12:st4_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L325
.L331:
adrp x0, st3_evt0
add x0, x0, :lo12:st3_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L332
adrp x0, st3_evt1
add x0, x0, :lo12:st3_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L325
.L332:
adrp x0, st2_evt0
add x0, x0, :lo12:st2_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L333
adrp x0, st2_evt1
add x0, x0, :lo12:st2_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L325
.L333:
adrp x0, st0_evt0
add x0, x0, :lo12:st0_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L334
adrp x0, st0_evt1
add x0, x0, :lo12:st0_evt1
ldrb w0, [x0]
cmp w0, 0
beq .L325
.L334:
adrp x0, st1_evt0
add x0, x0, :lo12:st1_evt0
ldrb w0, [x0]
cmp w0, 0
beq .L335
adrp x0, st1_evt1
add x0, x0, :lo12:st1_evt1
ldrb w0, [x0]
cmp w0, 0
bne .L335
.L325:
mov w0, 1
b .L336
.L335:
mov w0, 0
.L336:
and w0, w0, 1
and w0, w0, 255
eor w0, w1, w0
and w0, w0, 255
cmp w0, 0
beq .L49
adrp x0, tot_transm_time
add x0, x0, :lo12:tot_transm_time
ldr s0, [x0]
fcvt d1, s0
adrp x0, mgr_c
add x0, x0, :lo12:mgr_c
ldr s0, [x0]
fcvt d2, s0
adrp x0, _x_tot_transm_time
add x0, x0, :lo12:_x_tot_transm_time
ldr s0, [x0]
fcvt d0, s0
fsub d0, d2, d0
fadd d0, d1, d0
fcmp d0, #0.0
beq .L337
adrp x0, _x_mgr_l
add x0, x0, :lo12:_x_mgr_l
ldrb w0, [x0]
cmp w0, 0
beq .L337
adrp x0, mgr_l
add x0, x0, :lo12:mgr_l
ldrb w0, [x0]
cmp w0, 0
beq .L49
.L337:
adrp x0, _x_mgr_l
add x0, x0, :lo12:_x_mgr_l
ldrb w0, [x0]
cmp w0, 0
beq .L338
adrp x0, mgr_l
add x0, x0, :lo12:mgr_l
ldrb w0, [x0]
cmp w0, 0
beq .L339
.L338:
adrp x0, tot_transm_time
add x0, x0, :lo12:tot_transm_time
ldr s1, [x0]
adrp x0, _x_tot_transm_time
add x0, x0, :lo12:_x_tot_transm_time
ldr s0, [x0]
fcmp s1, s0
bne .L49
.L339:
adrp x0, delta
add x0, x0, :lo12:delta
ldr s1, [x0]
adrp x0, _x__diverge_delta
add x0, x0, :lo12:_x__diverge_delta
ldr s0, [x0]
fcmp s1, s0
beq .L340
adrp x0, _diverge_delta
add x0, x0, :lo12:_diverge_delta
ldr s1, [x0]
fmov s0, 1.0e+0
fcmpe s1, s0
cset w0, ge
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L49
.L340:
adrp x0, _diverge_delta
add x0, x0, :lo12:_diverge_delta
ldr s1, [x0]
fmov s0, 1.0e+0
fcmpe s1, s0
bge .L341
adrp x0, delta
add x0, x0, :lo12:delta
ldr s0, [x0]
fcvt d1, s0
adrp x0, _diverge_delta
add x0, x0, :lo12:_diverge_delta
ldr s0, [x0]
fcvt d2, s0
adrp x0, _x__diverge_delta
add x0, x0, :lo12:_x__diverge_delta
ldr s0, [x0]
fcvt d0, s0
fsub d0, d2, d0
fadd d0, d1, d0
fcmp d0, #0.0
bne .L49
.L341:
mov w0, 1
b .L342
.L49:
mov w0, 0
.L342:
str w0, [sp, 28]
adrp x0, _x_st10_evt1
add x0, x0, :lo12:_x_st10_evt1
ldrb w1, [x0]
adrp x0, st10_evt1
add x0, x0, :lo12:st10_evt1
strb w1, [x0]
adrp x0, _x__diverge_delta
add x0, x0, :lo12:_x__diverge_delta
ldr s0, [x0]
adrp x0, _diverge_delta
add x0, x0, :lo12:_diverge_delta
str s0, [x0]
adrp x0, _x_st10_evt0
add x0, x0, :lo12:_x_st10_evt0
ldrb w1, [x0]
adrp x0, st10_evt0
add x0, x0, :lo12:st10_evt0
strb w1, [x0]
adrp x0, _x_st10_l
add x0, x0, :lo12:_x_st10_l
ldrb w1, [x0]
adrp x0, st10_l
add x0, x0, :lo12:st10_l
strb w1, [x0]
adrp x0, _x_st9_evt1
add x0, x0, :lo12:_x_st9_evt1
ldrb w1, [x0]
adrp x0, st9_evt1
add x0, x0, :lo12:st9_evt1
strb w1, [x0]
adrp x0, _x_st9_evt0
add x0, x0, :lo12:_x_st9_evt0
ldrb w1, [x0]
adrp x0, st9_evt0
add x0, x0, :lo12:st9_evt0
strb w1, [x0]
adrp x0, _x_st9_l
add x0, x0, :lo12:_x_st9_l
ldrb w1, [x0]
adrp x0, st9_l
add x0, x0, :lo12:st9_l
strb w1, [x0]
adrp x0, _x_st10_req_time
add x0, x0, :lo12:_x_st10_req_time
ldr s0, [x0]
adrp x0, st10_req_time
add x0, x0, :lo12:st10_req_time
str s0, [x0]
adrp x0, _x_st8_evt1
add x0, x0, :lo12:_x_st8_evt1
ldrb w1, [x0]
adrp x0, st8_evt1
add x0, x0, :lo12:st8_evt1
strb w1, [x0]
adrp x0, _x_st8_evt0
add x0, x0, :lo12:_x_st8_evt0
ldrb w1, [x0]
adrp x0, st8_evt0
add x0, x0, :lo12:st8_evt0
strb w1, [x0]
adrp x0, _x_st8_l
add x0, x0, :lo12:_x_st8_l
ldrb w1, [x0]
adrp x0, st8_l
add x0, x0, :lo12:st8_l
strb w1, [x0]
adrp x0, _x_st9_req_time
add x0, x0, :lo12:_x_st9_req_time
ldr s0, [x0]
adrp x0, st9_req_time
add x0, x0, :lo12:st9_req_time
str s0, [x0]
adrp x0, _x_st7_evt1
add x0, x0, :lo12:_x_st7_evt1
ldrb w1, [x0]
adrp x0, st7_evt1
add x0, x0, :lo12:st7_evt1
strb w1, [x0]
adrp x0, _x_st7_evt0
add x0, x0, :lo12:_x_st7_evt0
ldrb w1, [x0]
adrp x0, st7_evt0
add x0, x0, :lo12:st7_evt0
strb w1, [x0]
adrp x0, _x_st7_l
add x0, x0, :lo12:_x_st7_l
ldrb w1, [x0]
adrp x0, st7_l
add x0, x0, :lo12:st7_l
strb w1, [x0]
adrp x0, _x_st8_req_time
add x0, x0, :lo12:_x_st8_req_time
ldr s0, [x0]
adrp x0, st8_req_time
add x0, x0, :lo12:st8_req_time
str s0, [x0]
adrp x0, _x_st6_evt1
add x0, x0, :lo12:_x_st6_evt1
ldrb w1, [x0]
adrp x0, st6_evt1
add x0, x0, :lo12:st6_evt1
strb w1, [x0]
adrp x0, _x_st6_evt0
add x0, x0, :lo12:_x_st6_evt0
ldrb w1, [x0]
adrp x0, st6_evt0
add x0, x0, :lo12:st6_evt0
strb w1, [x0]
adrp x0, _x_st6_l
add x0, x0, :lo12:_x_st6_l
ldrb w1, [x0]
adrp x0, st6_l
add x0, x0, :lo12:st6_l
strb w1, [x0]
adrp x0, _x_st7_req_time
add x0, x0, :lo12:_x_st7_req_time
ldr s0, [x0]
adrp x0, st7_req_time
add x0, x0, :lo12:st7_req_time
str s0, [x0]
adrp x0, _x_st5_evt1
add x0, x0, :lo12:_x_st5_evt1
ldrb w1, [x0]
adrp x0, st5_evt1
add x0, x0, :lo12:st5_evt1
strb w1, [x0]
adrp x0, _x_st5_evt0
add x0, x0, :lo12:_x_st5_evt0
ldrb w1, [x0]
adrp x0, st5_evt0
add x0, x0, :lo12:st5_evt0
strb w1, [x0]
adrp x0, _x_st1_req_time
add x0, x0, :lo12:_x_st1_req_time
ldr s0, [x0]
adrp x0, st1_req_time
add x0, x0, :lo12:st1_req_time
str s0, [x0]
adrp x0, _x_st4_evt0
add x0, x0, :lo12:_x_st4_evt0
ldrb w1, [x0]
adrp x0, st4_evt0
add x0, x0, :lo12:st4_evt0
strb w1, [x0]
adrp x0, _x_st0_evt0
add x0, x0, :lo12:_x_st0_evt0
ldrb w1, [x0]
adrp x0, st0_evt0
add x0, x0, :lo12:st0_evt0
strb w1, [x0]
adrp x0, _x_st0_evt1
add x0, x0, :lo12:_x_st0_evt1
ldrb w1, [x0]
adrp x0, st0_evt1
add x0, x0, :lo12:st0_evt1
strb w1, [x0]
adrp x0, _x_mgr_c
add x0, x0, :lo12:_x_mgr_c
ldr s0, [x0]
adrp x0, mgr_c
add x0, x0, :lo12:mgr_c
str s0, [x0]
adrp x0, _x_st0_req_time
add x0, x0, :lo12:_x_st0_req_time
ldr s0, [x0]
adrp x0, st0_req_time
add x0, x0, :lo12:st0_req_time
str s0, [x0]
adrp x0, _x_st3_evt0
add x0, x0, :lo12:_x_st3_evt0
ldrb w1, [x0]
adrp x0, st3_evt0
add x0, x0, :lo12:st3_evt0
strb w1, [x0]
adrp x0, _x_tot_transm_time
add x0, x0, :lo12:_x_tot_transm_time
ldr s0, [x0]
adrp x0, tot_transm_time
add x0, x0, :lo12:tot_transm_time
str s0, [x0]
adrp x0, _x_st1_l
add x0, x0, :lo12:_x_st1_l
ldrb w1, [x0]
adrp x0, st1_l
add x0, x0, :lo12:st1_l
strb w1, [x0]
adrp x0, _x_st3_l
add x0, x0, :lo12:_x_st3_l
ldrb w1, [x0]
adrp x0, st3_l
add x0, x0, :lo12:st3_l
strb w1, [x0]
adrp x0, _x_delta
add x0, x0, :lo12:_x_delta
ldr s0, [x0]
adrp x0, delta
add x0, x0, :lo12:delta
str s0, [x0]
adrp x0, _x_st1_evt0
add x0, x0, :lo12:_x_st1_evt0
ldrb w1, [x0]
adrp x0, st1_evt0
add x0, x0, :lo12:st1_evt0
strb w1, [x0]
adrp x0, _x_st0_l
add x0, x0, :lo12:_x_st0_l
ldrb w1, [x0]
adrp x0, st0_l
add x0, x0, :lo12:st0_l
strb w1, [x0]
adrp x0, _x_st3_req_time
add x0, x0, :lo12:_x_st3_req_time
ldr s0, [x0]
adrp x0, st3_req_time
add x0, x0, :lo12:st3_req_time
str s0, [x0]
adrp x0, _x_st1_evt1
add x0, x0, :lo12:_x_st1_evt1
ldrb w1, [x0]
adrp x0, st1_evt1
add x0, x0, :lo12:st1_evt1
strb w1, [x0]
adrp x0, _x_mgr_evt0
add x0, x0, :lo12:_x_mgr_evt0
ldrb w1, [x0]
adrp x0, mgr_evt0
add x0, x0, :lo12:mgr_evt0
strb w1, [x0]
adrp x0, _x_st2_l
add x0, x0, :lo12:_x_st2_l
ldrb w1, [x0]
adrp x0, st2_l
add x0, x0, :lo12:st2_l
strb w1, [x0]
adrp x0, _x_mgr_timeout
add x0, x0, :lo12:_x_mgr_timeout
ldr s0, [x0]
adrp x0, mgr_timeout
add x0, x0, :lo12:mgr_timeout
str s0, [x0]
adrp x0, _x_st2_req_time
add x0, x0, :lo12:_x_st2_req_time
ldr s0, [x0]
adrp x0, st2_req_time
add x0, x0, :lo12:st2_req_time
str s0, [x0]
adrp x0, _x_mgr_evt1
add x0, x0, :lo12:_x_mgr_evt1
ldrb w1, [x0]
adrp x0, mgr_evt1
add x0, x0, :lo12:mgr_evt1
strb w1, [x0]
adrp x0, _x_st2_evt0
add x0, x0, :lo12:_x_st2_evt0
ldrb w1, [x0]
adrp x0, st2_evt0
add x0, x0, :lo12:st2_evt0
strb w1, [x0]
adrp x0, _x_st4_l
add x0, x0, :lo12:_x_st4_l
ldrb w1, [x0]
adrp x0, st4_l
add x0, x0, :lo12:st4_l
strb w1, [x0]
adrp x0, _x_st2_evt1
add x0, x0, :lo12:_x_st2_evt1
ldrb w1, [x0]
adrp x0, st2_evt1
add x0, x0, :lo12:st2_evt1
strb w1, [x0]
adrp x0, _x_st4_req_time
add x0, x0, :lo12:_x_st4_req_time
ldr s0, [x0]
adrp x0, st4_req_time
add x0, x0, :lo12:st4_req_time
str s0, [x0]
adrp x0, _x_st6_req_time
add x0, x0, :lo12:_x_st6_req_time
ldr s0, [x0]
adrp x0, st6_req_time
add x0, x0, :lo12:st6_req_time
str s0, [x0]
adrp x0, _x_st4_evt1
add x0, x0, :lo12:_x_st4_evt1
ldrb w1, [x0]
adrp x0, st4_evt1
add x0, x0, :lo12:st4_evt1
strb w1, [x0]
adrp x0, _x_st5_l
add x0, x0, :lo12:_x_st5_l
ldrb w1, [x0]
adrp x0, st5_l
add x0, x0, :lo12:st5_l
strb w1, [x0]
adrp x0, _x_st3_evt1
add x0, x0, :lo12:_x_st3_evt1
ldrb w1, [x0]
adrp x0, st3_evt1
add x0, x0, :lo12:st3_evt1
strb w1, [x0]
adrp x0, _x_mgr_l
add x0, x0, :lo12:_x_mgr_l
ldrb w1, [x0]
adrp x0, mgr_l
add x0, x0, :lo12:mgr_l
strb w1, [x0]
adrp x0, _x_st5_req_time
add x0, x0, :lo12:_x_st5_req_time
ldr s0, [x0]
adrp x0, st5_req_time
add x0, x0, :lo12:st5_req_time
str s0, [x0]
.L45:
ldr w0, [sp, 28]
cmp w0, 0
bne .L343
mov w0, 0
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "CPU turn, movement: [%i][%i]\n\n"
.align 3
.LC1:
.string "-------------"
.align 3
.LC2:
.string "| %i | %i | %i |\n"
.align 3
.LC3:
.string "-------------\n"
.align 3
.LC4:
.string "\nPlayer turn, movement (i.e. 2,1): "
.align 3
.LC5:
.string "%i,%i"
.align 3
.LC6:
.string "Player movement not valid! Try again!\n"
.align 3
.LC7:
.string "cls"
.align 3
.LC8:
.string "CPU wins... you lose!"
.align 3
.LC9:
.string "Player wins! Congratulations!"
.align 3
.LC10:
.string "Tie. Nobody wins"
.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
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 104]
mov x1, 0
stp xzr, xzr, [sp, 64]
stp xzr, xzr, [sp, 80]
str wzr, [sp, 96]
str wzr, [sp, 32]
str wzr, [sp, 36]
str wzr, [sp, 40]
str wzr, [sp, 24]
str wzr, [sp, 28]
str wzr, [sp, 44]
str wzr, [sp, 60]
str wzr, [sp, 48]
str wzr, [sp, 52]
mov x0, 0
bl time
bl srand
b .L2
.L4:
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, 32]
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, 36]
ldrsw x2, [sp, 32]
ldrsw x1, [sp, 36]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
add x0, x0, x2
lsl x0, x0, 2
add x1, sp, 64
ldr w0, [x1, x0]
cmp w0, 0
bne .L3
ldrsw x2, [sp, 32]
ldrsw x1, [sp, 36]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
add x0, x0, x2
lsl x0, x0, 2
add x1, sp, 64
mov w2, 1
str w2, [x1, x0]
mov w0, 1
str w0, [sp, 40]
.L3:
ldr w0, [sp, 40]
cmp w0, 0
beq .L4
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
mov w0, 1
str w0, [sp, 60]
ldr w0, [sp, 52]
cmp w0, 0
bne .L21
ldr w2, [sp, 32]
ldr w1, [sp, 36]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl puts
str wzr, [sp, 56]
b .L7
.L8:
ldrsw x1, [sp, 56]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x1, sp, 64
ldr w4, [x1, x0]
ldrsw x1, [sp, 56]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x1, sp, 68
ldr w2, [x1, x0]
ldrsw x1, [sp, 56]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x1, sp, 72
ldr w0, [x1, x0]
mov w3, w0
mov w1, w4
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl puts
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
.L7:
ldr w0, [sp, 56]
cmp w0, 2
ble .L8
b .L9
.L11:
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
add x1, sp, 24
add x0, sp, 28
mov x2, x1
mov x1, x0
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl scanf_s
ldr w0, [sp, 24]
cmp w0, 0
blt .L10
ldr w0, [sp, 28]
cmp w0, 2
bgt .L10
ldr w0, [sp, 28]
cmp w0, 0
blt .L10
ldr w0, [sp, 28]
cmp w0, 2
bgt .L10
ldr w0, [sp, 28]
ldr w1, [sp, 24]
sxtw x2, w1
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
add x0, x0, x2
lsl x0, x0, 2
add x1, sp, 64
ldr w0, [x1, x0]
cmp w0, 0
bne .L10
ldr w0, [sp, 28]
ldr w1, [sp, 24]
sxtw x2, w1
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
add x0, x0, x2
lsl x0, x0, 2
add x1, sp, 64
mov w2, 2
str w2, [x1, x0]
mov w0, 1
str w0, [sp, 44]
b .L9
.L10:
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl puts
.L9:
ldr w0, [sp, 44]
cmp w0, 0
beq .L11
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
mov w0, 2
str w0, [sp, 60]
add x0, sp, 64
ldr w1, [sp, 60]
bl IsLine
str w0, [sp, 52]
ldr w0, [sp, 52]
cmp w0, 0
beq .L12
ldr w0, [sp, 48]
cmp w0, 8
ble .L13
.L12:
mov w0, 3
str w0, [sp, 52]
.L13:
ldr w0, [sp, 52]
cmp w0, 0
bne .L22
str wzr, [sp, 40]
str wzr, [sp, 44]
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl system
.L2:
ldr w0, [sp, 52]
cmp w0, 0
beq .L3
b .L6
.L21:
nop
b .L6
.L22:
nop
.L6:
ldr w0, [sp, 52]
cmp w0, 1
bne .L16
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl puts
b .L17
.L16:
ldr w0, [sp, 52]
cmp w0, 2
bne .L18
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl puts
b .L17
.L18:
ldr w0, [sp, 52]
cmp w0, 3
bne .L17
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl printf
.L17:
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 .L20
bl __stack_chk_fail
.L20:
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
.align 2
.global IsLine
.type IsLine, %function
IsLine:
.LFB7:
.cfi_startproc
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, 8]
str w1, [sp, 4]
str wzr, [sp, 28]
str wzr, [sp, 32]
str wzr, [sp, 36]
str wzr, [sp, 40]
b .L24
.L33:
str wzr, [sp, 44]
b .L25
.L32:
ldrsw x1, [sp, 40]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 8]
add x0, x0, x1
ldrsw x1, [sp, 44]
ldr w0, [x0, x1, lsl 2]
ldr w1, [sp, 4]
cmp w1, w0
bne .L26
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
b .L27
.L26:
str wzr, [sp, 36]
.L27:
ldrsw x1, [sp, 44]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
mov x1, x0
ldr x0, [sp, 8]
add x0, x0, x1
ldrsw x1, [sp, 40]
ldr w0, [x0, x1, lsl 2]
ldr w1, [sp, 4]
cmp w1, w0
bne .L28
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
b .L29
.L28:
str wzr, [sp, 32]
.L29:
ldr w0, [sp, 36]
cmp w0, 3
beq .L30
ldr w0, [sp, 32]
cmp w0, 3
bne .L31
.L30:
ldr w0, [sp, 4]
str w0, [sp, 28]
.L31:
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L25:
ldr w0, [sp, 44]
cmp w0, 1
ble .L32
ldr w0, [sp, 40]
add w0, w0, 1
str w0, [sp, 40]
.L24:
ldr w0, [sp, 40]
cmp w0, 2
ble .L33
ldr x0, [sp, 8]
ldr w1, [x0]
ldr x0, [sp, 8]
add x0, x0, 12
ldr w0, [x0, 4]
cmp w1, w0
bne .L34
ldr x0, [sp, 8]
add x0, x0, 24
ldr w0, [x0, 8]
cmp w0, 0
beq .L34
ldr w0, [sp, 4]
str w0, [sp, 28]
.L34:
ldr x0, [sp, 8]
add x0, x0, 24
ldr w1, [x0]
ldr x0, [sp, 8]
add x0, x0, 12
ldr w0, [x0, 4]
cmp w1, w0
bne .L35
ldr x0, [sp, 8]
ldr w0, [x0, 8]
cmp w0, 0
beq .L35
ldr w0, [sp, 4]
str w0, [sp, 28]
.L35:
ldr w0, [sp, 28]
add sp, sp, 48
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size IsLine, .-IsLine
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.data
.align 3
.type TSF_para, %object
.size TSF_para, 1636
TSF_para:
.word 0
.word 0
.word 4300
.word 4800
.word 110
.word 135
.word -50
.word 50
.word 256
.word 512
.word 300
.word 500
.word 80
.word 120
.word 120
.word 220
.word 110
.word 150
.word 548
.word 4197
.word 1432
.word 23972
.word 42935
.word 9667
.word 78662
.word 24956
.word 44623
.word 7472
.word 3202
.word 161478
.word 70787
.word 36808
.word 256000
.word 46299
.word 123
.word -15
.word 23
.word 0
.word 0
.word 0
.word 0
.word 0
.word -30
.word 0
.word 19
.word -46
.word 0
.word 0
.word 0
.word 0
.word 54
.word 54
.word 900
.word 15
.word 8
.word 25
.word 10
.word 1092
.word -84
.word 94
.word 9
.word -50
.word -18
.word 1
.word -9
.word 601
.word 8514
.word 2424
.word 30571
.word 44974
.word 17135
.word 168259
.word 41102
.word -393
.word 21
.word -28
.word -20
.word 28
.word -1
.word -5
.word 15
.word 30409
.word 10075
.word 3680
.word 101388
.word 31340
.word 79861
.word 182044
.word 47440
.word 1221
.word -76
.word 85
.word 4
.word -44
.word -16
.word 1
.word -5
.word -323
.word 0
.word -9
.word -12
.word 13
.word -2
.word -2
.word 8
.word 1781
.word 33
.word 305
.word 71
.word -10
.word 42
.word 26
.word 36
.word 403
.word -198
.word -60
.word -48
.word -117
.word -100
.word -25
.word -54
.word -296
.word 146
.word 111
.word 7
.word 115
.word 22
.word 7
.word 68
.word -489
.word -80
.word -232
.word -70
.word -12
.word -41
.word -24
.word -24
.word 665
.word -62
.word 77
.word -12
.word -40
.word 0
.word 1
.word -18
.word -323
.word 17
.word -17
.word -12
.word 14
.word 1
.word -2
.word -1
.word 151
.word 29
.word -20
.word 131
.word 27
.word -48
.word -15
.word 64
.word 109
.word -7
.word -26
.word 31
.word 3
.word -45
.word 21
.word 185
.word 4
.word 65
.word 0
.word 9
.word -10
.word -3
.word 8
.word -47
.word 7
.word 59
.word 3
.word 16
.word -16
.word -4
.word 22
.word -22
.word -8
.word 0
.word 129
.word 6
.word 49
.word 103
.word 12
.word 21
.word -12
.word -4
.word 68
.word 13
.word 58
.word 34
.word 33
.word 0
.word 3
.word 2
.word 0
.word 39
.word -10
.word -8
.word -1
.word 4
.word 1
.word 0
.word 2
.word 26
.word 1
.word 0
.word 5
.word 17
.word 0
.word -1
.word 2
.word -6
.word 48
.word -3
.word 1
.word -4
.word -2
.word -5
.word 1
.word -8
.word 32
.word 0
.word 1
.word -2
.word -3
.word -1
.word 15
.word -19
.word -13
.word 61
.word 3
.word -8
.word 2
.word 3
.word 4
.word -17
.word -7
.word 35
.word -6
.word -7
.word 0
.word 0
.word 0
.word 0
.word 0
.word 0
.word 24
.word -2
.word -1
.word 0
.word 1
.word -1
.word 0
.word 2
.word 17
.word -3
.word 1
.word -8
.word 1
.word 3
.word -7
.word -3
.word -5
.word 136
.word 1
.word -2
.word 1
.word 9
.word -11
.word -4
.word -14
.word 45
.word 1
.word 1
.word 0
.word 0
.word -2
.word 0
.word -1
.word 0
.word 4
.word 0
.word 0
.word 4
.word -1
.word -1
.word 0
.word 1
.word -1
.word 33
.word -1
.word 1
.word -27
.word 4
.word 1
.word -8
.word 2
.word 55
.word 3
.word -1
.word -17
.word 2
.word 5
.word -37
.word -4
.word 4
.word 31
.word 18
.word 16
.word 13
.word 26
.word 8
.word -5
.word 6
.word 76
.word 6
.word 6
.word 83
.word 23
.word 20
.word 0
.word 0
.word 0
.word 4
.word -2
.word -1
.word 0
.word 1
.word 1
.word 0
.word 0
.word 8
.word -3
.word -1
.word 1
.word 3
.word 0
.word -1
.word 1
.word 0
.word 20
.word -1
.word 0
.word -4
.word -1
.word -2
.word 0
.word -6
.word 29
.word -1
.word 0
.word -4
.word -1
.word 0
.word 1
.word 0
.word 0
.word 9
.word 4
.word -2
.word -1
.word 0
.word 7
.word -2
.word -1
.word 21
.word 1
.word 2
.word 0
.word 0
.word 0
.word 0
.word 0
.word 0
.word 5
.word -1
.word 0
.word 0
.word 0
.word 0
.word 0
.word 0
.word 9
.word -1
.word 2
.word -2
.word 0
.word 9
.word -2
.word -2
.word -5
.word 24
.word 1
.word -6
.word 1
.word 9
.word -6
.word 2
.word -5
.word 77
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global a
.bss
.align 2
.type a, %object
.size a, 4
a:
.zero 4
.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
adrp x0, a
add x0, x0, :lo12:a
ldr w0, [x0]
cmp w0, 0
beq .L2
bl abort
.L2:
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 "Falta tama\303\261o de matriz y vector"
.align 3
.LC1:
.string "Error en la reserva de espacio para los vectores"
.align 3
.LC2:
.string "omp_get_schedule: kind %d, modifier %d \n"
.align 3
.LC3:
.string "Tiempo(seg.):%11.9f\t / Tama\303\261o:%u\t/ V2[0]=%8.6f V2[%d]=%8.6f\n"
.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 x19, [sp, 16]
.cfi_offset 19, -112
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, 120]
mov x1, 0
ldr w0, [sp, 44]
cmp w0, 1
bgt .L2
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
mov w0, -1
bl exit
.L2:
ldr x0, [sp, 32]
add x0, x0, 8
ldr x0, [x0]
bl atoi
str w0, [sp, 64]
ldr x0, [sp, 32]
add x0, x0, 16
ldr x0, [x0]
bl atoi
str w0, [sp, 68]
ldr w0, [sp, 64]
lsl x0, x0, 3
bl malloc
str x0, [sp, 72]
ldr w0, [sp, 64]
lsl x0, x0, 3
bl malloc
str x0, [sp, 80]
ldr w0, [sp, 64]
lsl x0, x0, 3
bl malloc
str x0, [sp, 88]
ldr x0, [sp, 72]
cmp x0, 0
beq .L3
ldr x0, [sp, 80]
cmp x0, 0
beq .L3
ldr x0, [sp, 88]
cmp x0, 0
bne .L4
.L3:
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl puts
mov w0, -2
bl exit
.L4:
str wzr, [sp, 56]
b .L5
.L7:
ldr w0, [sp, 64]
lsl x2, x0, 3
ldrsw x0, [sp, 56]
lsl x0, x0, 3
ldr x1, [sp, 88]
add x19, x1, x0
mov x0, x2
bl malloc
str x0, [x19]
ldrsw x0, [sp, 56]
lsl x0, x0, 3
ldr x1, [sp, 88]
add x0, x1, x0
ldr x0, [x0]
cmp x0, 0
bne .L6
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl puts
mov w0, -2
bl exit
.L6:
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
.L5:
ldr w0, [sp, 56]
ldr w1, [sp, 64]
cmp w1, w0
bhi .L7
str wzr, [sp, 56]
b .L8
.L11:
ldrsw x0, [sp, 56]
lsl x0, x0, 3
ldr x1, [sp, 72]
add x0, x1, x0
fmov d0, 2.0e+0
str d0, [x0]
ldrsw x0, [sp, 56]
lsl x0, x0, 3
ldr x1, [sp, 80]
add x0, x1, x0
str xzr, [x0]
ldr w0, [sp, 56]
str w0, [sp, 60]
b .L9
.L10:
ldrsw x0, [sp, 56]
lsl x0, x0, 3
ldr x1, [sp, 88]
add x0, x1, x0
ldr x1, [x0]
ldrsw x0, [sp, 60]
lsl x0, x0, 3
add x0, x1, x0
fmov d0, 2.0e+0
str d0, [x0]
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L9:
ldr w0, [sp, 60]
ldr w1, [sp, 64]
cmp w1, w0
bhi .L10
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
.L8:
ldr w0, [sp, 56]
ldr w1, [sp, 64]
cmp w1, w0
bhi .L11
add x1, sp, 48
add x0, sp, 52
bl omp_get_schedule
ldr w0, [sp, 52]
ldr w1, [sp, 48]
mov w2, w1
mov w1, w0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
ldr w0, [sp, 68]
bl omp_set_num_threads
bl omp_get_wtime
str d0, [sp, 96]
str wzr, [sp, 56]
b .L12
.L15:
ldr w0, [sp, 56]
str w0, [sp, 60]
b .L13
.L14:
ldrsw x0, [sp, 56]
lsl x0, x0, 3
ldr x1, [sp, 80]
add x0, x1, x0
ldr d1, [x0]
ldrsw x0, [sp, 56]
lsl x0, x0, 3
ldr x1, [sp, 88]
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, 72]
add x0, x1, x0
ldr d0, [x0]
fmul d0, d2, d0
ldrsw x0, [sp, 56]
lsl x0, x0, 3
ldr x1, [sp, 80]
add x0, x1, x0
fadd d0, d1, d0
str d0, [x0]
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L13:
ldr w0, [sp, 60]
ldr w1, [sp, 64]
cmp w1, w0
bhi .L14
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
.L12:
ldr w0, [sp, 56]
ldr w1, [sp, 64]
cmp w1, w0
bhi .L15
bl omp_get_wtime
str d0, [sp, 104]
ldr d1, [sp, 104]
ldr d0, [sp, 96]
fsub d0, d1, d0
str d0, [sp, 112]
ldr x0, [sp, 80]
ldr d0, [x0]
ldr w0, [sp, 64]
sub w2, w0, #1
ldr w0, [sp, 64]
sub w0, w0, #1
uxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 80]
add x0, x1, x0
ldr d1, [x0]
fmov d2, d1
fmov d1, d0
ldr w1, [sp, 64]
ldr d0, [sp, 112]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
ldr x0, [sp, 72]
bl free
ldr x0, [sp, 80]
bl free
str wzr, [sp, 56]
b .L16
.L17:
ldrsw x0, [sp, 56]
lsl x0, x0, 3
ldr x1, [sp, 88]
add x0, x1, x0
ldr x0, [x0]
bl free
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
.L16:
ldr w0, [sp, 56]
ldr w1, [sp, 64]
cmp w1, w0
bhi .L17
ldr x0, [sp, 88]
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, 120]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L19
bl __stack_chk_fail
.L19:
mov w0, w1
ldr x19, [sp, 16]
ldp x29, x30, [sp], 128
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.local ptr
.comm ptr,8,8
.align 2
.type init, %function
init:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
mov x1, 1
mov x0, 10
bl calloc
mov x1, x0
adrp x0, ptr
add x0, x0, :lo12:ptr
str x1, [x0]
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size init, .-init
.global dummy
.section .preinit_array,"aw"
.align 3
.type dummy, %object
.size dummy, 8
dummy:
.xword init
.text
.align 2
.global free_memory
.type free_memory, %function
free_memory:
.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, ptr
add x0, x0, :lo12:ptr
ldr x0, [x0]
bl free
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size free_memory, .-free_memory
.align 2
.global main
.type main, %function
main:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
bl free_memory
mov w0, 0
ldp x29, x30, [sp], 16
.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 "%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, 36]
add x0, sp, 28
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
mov w0, 1
str w0, [sp, 32]
b .L2
.L3:
ldr w0, [sp, 28]
mov w1, 26215
movk w1, 0x6666, lsl 16
smull x1, w0, w1
lsr x1, x1, 32
asr w1, w1, 2
asr w0, w0, 31
sub w0, w1, w0
str w0, [sp, 28]
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L2:
ldr w0, [sp, 28]
cmp w0, 0
bne .L3
ldr w1, [sp, 36]
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, 40]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L5
bl __stack_chk_fail
.L5:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Series- \nS = 1 + x + (x^2)/2 + (x^3)/3+.........+(x^n)/n"
.align 3
.LC1:
.string "\nEnter The Value of x - "
.align 3
.LC2:
.string "%d"
.align 3
.LC3:
.string "\nEnter the value of n "
.align 3
.LC4:
.string "\nThe Number of Terms in Series is %d\n\nThe series is- \n"
.align 3
.LC5:
.string "\n1"
.align 3
.LC6:
.string "(%d^%d) / %d = %f\n"
.align 3
.LC7:
.string "\nSum is S= %f"
.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
fmov s0, 1.0e+0
str s0, [sp, 32]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
add x0, sp, 24
mov x1, x0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl __isoc99_scanf
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
add x0, sp, 20
mov x1, x0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl __isoc99_scanf
ldr w0, [sp, 20]
add w0, w0, 1
mov w1, w0
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl puts
mov w0, 1
str w0, [sp, 28]
b .L2
.L3:
ldr w0, [sp, 24]
scvtf d0, w0
ldr w0, [sp, 28]
scvtf d1, w0
bl pow
fmov d1, d0
ldr w0, [sp, 28]
scvtf d0, w0
fdiv d0, d1, d0
fcvt s0, d0
str s0, [sp, 36]
ldr w0, [sp, 24]
ldr s0, [sp, 36]
fcvt d0, s0
ldr w3, [sp, 28]
ldr w2, [sp, 28]
mov w1, w0
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl printf
ldr s1, [sp, 32]
ldr s0, [sp, 36]
fadd s0, s1, s0
str s0, [sp, 32]
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L2:
ldr w0, [sp, 20]
ldr w1, [sp, 28]
cmp w1, w0
ble .L3
ldr s0, [sp, 32]
fcvt d0, s0
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl printf
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 40]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L5
bl __stack_chk_fail
.L5:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Please enter a Fibonacci number: "
.align 3
.LC1:
.string "%d"
.align 3
.LC2:
.string "Error: Input positive number"
.align 3
.LC3:
.string "Error: Input larger number than 0"
.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, 20]
mov w0, 1
str w0, [sp, 24]
mov w0, 1
str w0, [sp, 28]
str wzr, [sp, 32]
str wzr, [sp, 36]
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
bge .L2
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl puts
b .L3
.L2:
ldr w0, [sp, 20]
cmp w0, 0
bne .L4
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl puts
b .L3
.L4:
mov w0, 3
str w0, [sp, 36]
b .L5
.L6:
ldr w1, [sp, 24]
ldr w0, [sp, 28]
add w0, w1, w0
str w0, [sp, 32]
ldr w0, [sp, 28]
str w0, [sp, 24]
ldr w0, [sp, 32]
str w0, [sp, 28]
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L5:
ldr w0, [sp, 20]
ldr w1, [sp, 36]
cmp w1, w0
ble .L6
ldr w1, [sp, 32]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
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, 40]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L8
bl __stack_chk_fail
.L8:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Hello. What's your name?"
.align 3
.LC1:
.string "Hi there, %s"
.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
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
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
adrp x0, :got:stdin
ldr x0, [x0, #:got_lo12:stdin]
ldr x1, [x0]
add x0, sp, 32
mov x2, x1
mov w1, 20
bl fgets
add x0, sp, 32
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 56]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L3
bl __stack_chk_fail
.L3:
mov w0, w1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "%d"
.text
.align 2
.global CreateList
.type CreateList, %function
CreateList:
.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]
mov x0, 16
bl malloc
str x0, [sp, 48]
ldr x0, [sp, 48]
str xzr, [x0, 8]
ldr x0, [sp, 48]
str x0, [sp, 40]
str wzr, [sp, 36]
b .L2
.L3:
mov x0, 16
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]
str xzr, [x0, 8]
ldr x0, [sp, 40]
ldr x1, [sp, 56]
str x1, [x0, 8]
ldr x0, [sp, 56]
str x0, [sp, 40]
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L2:
ldr w1, [sp, 36]
ldr w0, [sp, 28]
cmp w1, w0
blt .L3
ldr x0, [sp, 48]
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size CreateList, .-CreateList
.align 2
.global InsertList
.type InsertList, %function
InsertList:
.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]
str w1, [sp, 20]
str w2, [sp, 16]
ldr x0, [sp, 24]
str x0, [sp, 48]
str wzr, [sp, 44]
b .L6
.L8:
ldr x0, [sp, 48]
ldr x0, [x0, 8]
str x0, [sp, 48]
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L6:
ldr x0, [sp, 48]
cmp x0, 0
beq .L7
ldr w0, [sp, 16]
sub w0, w0, #1
ldr w1, [sp, 44]
cmp w1, w0
blt .L8
.L7:
ldr x0, [sp, 48]
cmp x0, 0
beq .L9
ldr w1, [sp, 44]
ldr w0, [sp, 16]
cmp w1, w0
ble .L10
.L9:
mov w0, 0
b .L11
.L10:
mov x0, 16
bl malloc
str x0, [sp, 56]
ldr x0, [sp, 56]
ldr w1, [sp, 20]
str w1, [x0]
ldr x0, [sp, 48]
ldr x1, [x0, 8]
ldr x0, [sp, 56]
str x1, [x0, 8]
ldr x0, [sp, 48]
ldr x1, [sp, 56]
str x1, [x0, 8]
mov w0, 1
.L11:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size InsertList, .-InsertList
.align 2
.global DeleteList
.type DeleteList, %function
DeleteList:
.LFB2:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str w2, [sp, 28]
ldr x0, [sp, 40]
str x0, [sp, 64]
str wzr, [sp, 60]
b .L13
.L15:
ldr x0, [sp, 64]
ldr x0, [x0, 8]
str x0, [sp, 64]
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L13:
ldr x0, [sp, 64]
ldr x0, [x0, 8]
cmp x0, 0
beq .L14
ldr w0, [sp, 28]
sub w0, w0, #1
ldr w1, [sp, 60]
cmp w1, w0
blt .L15
.L14:
ldr x0, [sp, 64]
ldr x0, [x0, 8]
cmp x0, 0
bne .L16
ldr w0, [sp, 28]
sub w0, w0, #1
ldr w1, [sp, 60]
cmp w1, w0
bge .L16
mov w0, 0
b .L17
.L16:
ldr x0, [sp, 64]
ldr x0, [x0, 8]
str x0, [sp, 72]
ldr x0, [sp, 72]
ldr x1, [x0, 8]
ldr x0, [sp, 64]
str x1, [x0, 8]
ldr x0, [sp, 72]
ldr w1, [x0]
ldr x0, [sp, 32]
str w1, [x0]
ldr x0, [sp, 72]
bl free
mov w0, 1
.L17:
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size DeleteList, .-DeleteList
.section .rodata
.align 3
.LC1:
.string "%d "
.align 3
.LC2:
.string "%d\n"
.text
.align 2
.global PrintList
.type PrintList, %function
PrintList:
.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 x0, [sp, 24]
ldr x0, [sp, 24]
ldr x0, [x0, 8]
str x0, [sp, 40]
b .L19
.L20:
ldr x0, [sp, 40]
ldr w0, [x0]
mov w1, w0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
ldr x0, [sp, 40]
ldr x0, [x0, 8]
str x0, [sp, 40]
.L19:
ldr x0, [sp, 40]
ldr x0, [x0, 8]
cmp x0, 0
bne .L20
ldr x0, [sp, 40]
ldr w0, [x0]
mov w1, w0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE3:
.size PrintList, .-PrintList
.align 2
.global GetElem
.type GetElem, %function
GetElem:
.LFB4:
.cfi_startproc
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, 24]
str w1, [sp, 20]
str x2, [sp, 8]
mov w0, 1
str w0, [sp, 36]
ldr x0, [sp, 24]
ldr x0, [x0, 8]
str x0, [sp, 40]
b .L22
.L24:
ldr x0, [sp, 40]
ldr x0, [x0, 8]
str x0, [sp, 40]
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L22:
ldr x0, [sp, 40]
cmp x0, 0
beq .L23
ldr w1, [sp, 36]
ldr w0, [sp, 20]
cmp w1, w0
blt .L24
.L23:
ldr x0, [sp, 40]
cmp x0, 0
beq .L25
ldr w1, [sp, 36]
ldr w0, [sp, 20]
cmp w1, w0
ble .L26
.L25:
mov w0, 0
b .L27
.L26:
ldr x0, [sp, 40]
ldr w1, [x0]
ldr x0, [sp, 8]
str w1, [x0]
mov w0, 1
.L27:
add sp, sp, 48
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE4:
.size GetElem, .-GetElem
.align 2
.global Del_Same
.type Del_Same, %function
Del_Same:
.LFB5:
.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]
ldr x0, [x0, 8]
str x0, [sp, 40]
b .L29
.L33:
ldr x0, [sp, 40]
str x0, [sp, 48]
b .L30
.L32:
ldr x0, [sp, 48]
ldr x0, [x0, 8]
ldr w1, [x0]
ldr x0, [sp, 40]
ldr w0, [x0]
cmp w1, w0
bne .L31
ldr x0, [sp, 48]
ldr x0, [x0, 8]
str x0, [sp, 56]
ldr x0, [sp, 56]
ldr x1, [x0, 8]
ldr x0, [sp, 48]
str x1, [x0, 8]
ldr x0, [sp, 56]
bl free
b .L30
.L31:
ldr x0, [sp, 48]
ldr x0, [x0, 8]
str x0, [sp, 48]
.L30:
ldr x0, [sp, 48]
ldr x0, [x0, 8]
cmp x0, 0
bne .L32
ldr x0, [sp, 40]
ldr x0, [x0, 8]
str x0, [sp, 40]
.L29:
ldr x0, [sp, 40]
cmp x0, 0
bne .L33
nop
nop
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE5:
.size Del_Same, .-Del_Same
.section .rodata
.align 3
.LC3:
.string "ERROR"
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 40]
mov x1, 0
str xzr, [sp, 32]
add x0, sp, 28
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
ldr w0, [sp, 28]
cmp w0, 0
ble .L35
ldr w0, [sp, 28]
bl CreateList
str x0, [sp, 32]
ldr x0, [sp, 32]
bl Del_Same
ldr x0, [sp, 32]
bl PrintList
b .L36
.L35:
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
.L36:
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 .L38
bl __stack_chk_fail
.L38:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
bl abort
.cfi_endproc
.LFE6:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global a
.bss
.align 2
.type a, %object
.size a, 4
a:
.zero 4
.global b
.align 2
.type b, %object
.size b, 4
b:
.zero 4
.global c
.align 2
.type c, %object
.size c, 4
c:
.zero 4
.global d
.align 2
.type d, %object
.size d, 4
d:
.zero 4
.global e
.align 2
.type e, %object
.size e, 4
e:
.zero 4
.global f
.align 2
.type f, %object
.size f, 4
f:
.zero 4
.global h
.align 2
.type h, %object
.size h, 4
h:
.zero 4
.global g
.align 3
.type g, %object
.size g, 8
g:
.zero 8
.text
.align 2
.global i
.type i, %function
i:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
b .L2
.L6:
adrp x0, g
add x0, x0, :lo12:g
ldr x1, [x0]
ldrsw x0, [sp, 28]
lsl x0, x0, 2
add x0, x1, x0
ldr w0, [x0]
cmp w0, 0
beq .L4
adrp x0, h
add x0, x0, :lo12:h
ldr w0, [x0]
ldr w1, [sp, 28]
cmp w1, w0
beq .L5
bl k
ldr w0, [sp, 28]
sub w1, w0, #1
adrp x0, h
add x0, x0, :lo12:h
str w1, [x0]
b .L5
.L4:
ldr w0, [sp, 28]
sub w1, w0, #1
adrp x0, h
add x0, x0, :lo12:h
str w1, [x0]
.L5:
ldr w0, [sp, 28]
sub w0, w0, #1
str w0, [sp, 28]
.L3:
adrp x0, a
add x0, x0, :lo12:a
ldr w0, [x0]
ldr w1, [sp, 28]
cmp w1, w0
bge .L6
.L2:
adrp x0, a
add x0, x0, :lo12:a
ldr w0, [x0]
cmp w0, 0
bne .L3
adrp x0, c
add x0, x0, :lo12:c
ldr w0, [x0]
str w0, [sp, 28]
b .L8
.L9:
ldrsw x0, [sp, 28]
mov x1, x0
adrp x0, g
add x0, x0, :lo12:g
str x1, [x0]
ldr w0, [sp, 28]
bl l
ldr w0, [sp, 28]
add w0, w0, 2
str w0, [sp, 28]
.L8:
adrp x0, f
add x0, x0, :lo12:f
ldr w0, [x0]
ldr w1, [sp, 28]
cmp w1, w0
blt .L9
b .L10
.L13:
adrp x0, g
add x0, x0, :lo12:g
ldr x1, [x0]
ldrsw x0, [sp, 28]
lsl x0, x0, 2
add x0, x1, x0
ldr w0, [x0]
cmp w0, 0
beq .L11
adrp x0, h
add x0, x0, :lo12:h
ldr w0, [x0]
ldr w1, [sp, 28]
cmp w1, w0
beq .L12
bl k
ldr w0, [sp, 28]
add w1, w0, 1
adrp x0, h
add x0, x0, :lo12:h
str w1, [x0]
b .L11
.L12:
ldr w0, [sp, 28]
add w1, w0, 1
adrp x0, h
add x0, x0, :lo12:h
str w1, [x0]
.L11:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L10:
adrp x0, d
add x0, x0, :lo12:d
ldr w0, [x0]
ldr w1, [sp, 28]
cmp w1, w0
ble .L13
b .L14
.L15:
ldrsw x0, [sp, 28]
mov x1, x0
adrp x0, g
add x0, x0, :lo12:g
str x1, [x0]
ldr w0, [sp, 28]
bl l
ldr w0, [sp, 28]
add w0, w0, 2
str w0, [sp, 28]
.L14:
adrp x0, f
add x0, x0, :lo12:f
ldr w0, [x0]
ldr w1, [sp, 28]
cmp w1, w0
blt .L15
ldr w0, [sp, 28]
cmp w0, 0
beq .L17
adrp x0, b
add x0, x0, :lo12:b
ldr w0, [x0]
str w0, [sp, 28]
b .L17
.L19:
adrp x0, g
add x0, x0, :lo12:g
ldr x1, [x0]
ldrsw x0, [sp, 28]
lsl x0, x0, 2
add x0, x1, x0
ldr w0, [x0]
cmp w0, 0
beq .L18
ldr w0, [sp, 28]
bl k
.L18:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L17:
adrp x0, e
add x0, x0, :lo12:e
ldr w0, [x0]
ldr w1, [sp, 28]
cmp w1, w0
ble .L19
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size i, .-i
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.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:
.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
str xzr, [sp, 56]
str xzr, [sp, 64]
str wzr, [sp, 32]
adrp x0, :got:stdin
ldr x0, [x0, #:got_lo12:stdin]
ldr x2, [x0]
add x1, sp, 64
add x0, sp, 56
bl getline
ldr x3, [sp, 56]
add x0, sp, 32
mov x2, x0
adrp x0, .LC0
add x1, x0, :lo12:.LC0
mov x0, x3
bl __isoc99_sscanf
ldr w0, [sp, 32]
sxtw x0, w0
mov x1, 4
bl calloc
str x0, [sp, 72]
ldr w0, [sp, 32]
sxtw x0, w0
mov x1, 4
bl calloc
str x0, [sp, 80]
ldr w0, [sp, 32]
sxtw x0, w0
mov x1, 4
bl calloc
str x0, [sp, 88]
str wzr, [sp, 48]
b .L2
.L6:
ldr x0, [sp, 56]
bl free
str xzr, [sp, 64]
str xzr, [sp, 56]
adrp x0, :got:stdin
ldr x0, [x0, #:got_lo12:stdin]
ldr x2, [x0]
add x1, sp, 64
add x0, sp, 56
bl getline
str x0, [sp, 96]
ldr x5, [sp, 56]
add x2, sp, 36
add x1, sp, 44
add x0, sp, 40
mov x4, x2
mov x3, x1
mov x2, x0
adrp x0, .LC1
add x1, x0, :lo12:.LC1
mov x0, x5
bl __isoc99_sscanf
cmp w0, 1
ble .L3
ldr w0, [sp, 40]
cmp w0, 0
blt .L4
ldr w0, [sp, 44]
cmp w0, 0
bge .L5
.L4:
str wzr, [sp, 40]
str wzr, [sp, 44]
.L5:
ldrsw x0, [sp, 48]
lsl x0, x0, 2
ldr x1, [sp, 72]
add x0, x1, x0
ldr w1, [sp, 44]
str w1, [x0]
ldrsw x0, [sp, 48]
lsl x0, x0, 2
ldr x1, [sp, 80]
add x0, x1, x0
ldr w1, [sp, 40]
str w1, [x0]
ldrsw x0, [sp, 48]
lsl x0, x0, 2
ldr x1, [sp, 88]
add x0, x1, x0
ldr w1, [sp, 36]
str w1, [x0]
.L3:
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
.L2:
ldr w0, [sp, 32]
ldr w1, [sp, 48]
cmp w1, w0
blt .L6
ldr w1, [sp, 52]
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, 104]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L8
bl __stack_chk_fail
.L8:
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 countlib
.type countlib, %function
countlib:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str w0, [sp, 28]
str w1, [sp, 24]
str w2, [sp, 20]
str wzr, [sp, 40]
b .L2
.L5:
str wzr, [sp, 44]
b .L3
.L4:
adrp x0, :got:ml
ldr x3, [x0, #:got_lo12:ml]
ldrsw x2, [sp, 44]
ldrsw x1, [sp, 40]
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 2
sub x0, x0, x1
add x0, x3, x0
add x0, x0, x2
mov w1, 1
strb w1, [x0]
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L3:
ldr w0, [sp, 44]
cmp w0, 18
ble .L4
ldr w0, [sp, 40]
add w0, w0, 1
str w0, [sp, 40]
.L2:
ldr w0, [sp, 40]
cmp w0, 18
ble .L5
ldr w2, [sp, 20]
ldr w1, [sp, 24]
ldr w0, [sp, 28]
bl count
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size countlib, .-countlib
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "| \t\n"
.align 3
.LC1:
.string "warning: %s does not contain required field %s\n"
.text
.align 2
.global proc_gen_fmt
.type proc_gen_fmt, %function
proc_gen_fmt:
.LFB0:
.cfi_startproc
sub sp, sp, #1312
.cfi_def_cfa_offset 1312
stp x29, x30, [sp]
.cfi_offset 29, -1312
.cfi_offset 30, -1304
mov x29, sp
str x0, [sp, 40]
str w1, [sp, 36]
str x2, [sp, 24]
str x3, [sp, 1272]
str x4, [sp, 1280]
str x5, [sp, 1288]
str x6, [sp, 1296]
str x7, [sp, 1304]
add x0, sp, 1024
str q0, [x0, 112]
add x0, sp, 1024
str q1, [x0, 128]
add x0, sp, 1024
str q2, [x0, 144]
add x0, sp, 1024
str q3, [x0, 160]
add x0, sp, 1024
str q4, [x0, 176]
add x0, sp, 1024
str q5, [x0, 192]
add x0, sp, 1024
str q6, [x0, 208]
add x0, sp, 1024
str q7, [x0, 224]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 1128]
mov x1, 0
add x0, sp, 512
stp xzr, xzr, [x0, 104]
add x0, sp, 632
mov x1, 496
mov x2, x1
mov w1, 0
bl memset
add x0, sp, 104
ldr x2, [sp, 24]
mov w1, 511
bl fgets
cmp x0, 0
bne .L2
mov x0, 0
b .L25
.L2:
add x0, sp, 104
bl strlen
mov x1, x0
add x0, sp, 104
add x0, x0, x1
mov w1, 32
strh w1, [x0]
add x0, sp, 1312
str x0, [sp, 72]
add x0, sp, 1312
str x0, [sp, 80]
add x0, sp, 1264
str x0, [sp, 88]
mov w0, -40
str w0, [sp, 96]
mov w0, -128
str w0, [sp, 100]
ldr w1, [sp, 96]
ldr x0, [sp, 72]
cmp w1, 0
blt .L4
add x1, x0, 15
and x1, x1, -8
str x1, [sp, 72]
b .L5
.L4:
add w2, w1, 8
str w2, [sp, 96]
ldr w2, [sp, 96]
cmp w2, 0
ble .L6
add x1, x0, 15
and x1, x1, -8
str x1, [sp, 72]
b .L5
.L6:
ldr x2, [sp, 80]
sxtw x0, w1
add x0, x2, x0
.L5:
ldr x0, [x0]
str x0, [sp, 48]
add x0, sp, 104
str x0, [sp, 56]
b .L8
.L10:
ldr x0, [sp, 56]
add x0, x0, 1
str x0, [sp, 56]
.L9:
bl __ctype_b_loc
ldr x1, [x0]
ldr x0, [sp, 56]
ldrb w0, [x0]
and x0, x0, 255
lsl x0, x0, 1
add x0, x1, x0
ldrh w0, [x0]
and w0, w0, 8192
cmp w0, 0
bne .L10
ldr x0, [sp, 56]
ldrb w0, [x0]
cmp w0, 124
beq .L10
ldr x0, [sp, 56]
str x0, [sp, 64]
adrp x0, .LC0
add x1, x0, :lo12:.LC0
ldr x0, [sp, 56]
bl strpbrk
str x0, [sp, 56]
ldr x0, [sp, 56]
cmp x0, 0
beq .L11
ldr x0, [sp, 56]
add x1, x0, 1
str x1, [sp, 56]
strb wzr, [x0]
.L11:
ldr x1, [sp, 64]
ldr x0, [sp, 48]
bl strcmp
cmp w0, 0
bne .L12
ldr w1, [sp, 96]
ldr x0, [sp, 72]
cmp w1, 0
blt .L13
add x1, x0, 15
and x1, x1, -8
str x1, [sp, 72]
b .L14
.L13:
add w2, w1, 8
str w2, [sp, 96]
ldr w2, [sp, 96]
cmp w2, 0
ble .L15
add x1, x0, 15
and x1, x1, -8
str x1, [sp, 72]
b .L14
.L15:
ldr x2, [sp, 80]
sxtw x0, w1
add x0, x2, x0
.L14:
ldr x1, [x0]
add x0, sp, 616
bl strcat
ldr w1, [sp, 96]
ldr x0, [sp, 72]
cmp w1, 0
blt .L17
add x1, x0, 15
and x1, x1, -8
str x1, [sp, 72]
b .L18
.L17:
add w2, w1, 8
str w2, [sp, 96]
ldr w2, [sp, 96]
cmp w2, 0
ble .L19
add x1, x0, 15
and x1, x1, -8
str x1, [sp, 72]
b .L18
.L19:
ldr x2, [sp, 80]
sxtw x0, w1
add x0, x2, x0
.L18:
ldr x0, [x0]
str x0, [sp, 48]
ldr x0, [sp, 48]
cmp x0, 0
beq .L21
ldr x0, [sp, 64]
cmp x0, 0
beq .L21
b .L22
.L12:
add x0, sp, 616
bl strlen
mov x1, x0
add x0, sp, 616
add x0, x0, x1
mov w1, 10789
movk w1, 0x73, lsl 16
str w1, [x0]
.L22:
add x0, sp, 616
bl strlen
mov x1, x0
add x0, sp, 616
add x0, x0, x1
mov w1, 32
strh w1, [x0]
.L8:
ldr x0, [sp, 56]
cmp x0, 0
bne .L9
.L21:
ldr w0, [sp, 36]
cmp w0, 0
bne .L24
ldr x0, [sp, 48]
cmp x0, 0
beq .L24
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x4, [x0]
ldr x3, [sp, 48]
ldr x2, [sp, 40]
adrp x0, .LC1
add x1, x0, :lo12:.LC1
mov x0, x4
bl fprintf
mov x0, 0
b .L25
.L24:
add x0, sp, 616
bl strdup
.L25:
mov x1, x0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 1128]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L26
bl __stack_chk_fail
.L26:
mov x0, x1
ldp x29, x30, [sp]
add sp, sp, 1312
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size proc_gen_fmt, .-proc_gen_fmt
.align 2
.global proc_guess_fmt
.type proc_guess_fmt, %function
proc_guess_fmt:
.LFB1:
.cfi_startproc
sub sp, sp, #784
.cfi_def_cfa_offset 784
stp x29, x30, [sp]
.cfi_offset 29, -784
.cfi_offset 30, -776
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
str x2, [sp, 736]
str x3, [sp, 744]
str x4, [sp, 752]
str x5, [sp, 760]
str x6, [sp, 768]
str x7, [sp, 776]
add x0, sp, 512
str q0, [x0, 96]
add x0, sp, 512
str q1, [x0, 112]
add x0, sp, 512
str q2, [x0, 128]
add x0, sp, 512
str q3, [x0, 144]
add x0, sp, 512
str q4, [x0, 160]
add x0, sp, 512
str q5, [x0, 176]
add x0, sp, 512
str q6, [x0, 192]
add x0, sp, 512
str q7, [x0, 208]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 600]
mov x1, 0
str wzr, [sp, 40]
add x0, sp, 88
ldr x2, [sp, 16]
mov w1, 511
bl fgets
cmp x0, 0
bne .L28
mov w0, -1
b .L40
.L28:
add x0, sp, 784
str x0, [sp, 56]
add x0, sp, 784
str x0, [sp, 64]
add x0, sp, 736
str x0, [sp, 72]
mov w0, -48
str w0, [sp, 80]
mov w0, -128
str w0, [sp, 84]
b .L30
.L39:
ldr w1, [sp, 80]
ldr x0, [sp, 56]
cmp w1, 0
blt .L31
add x1, x0, 11
and x1, x1, -8
str x1, [sp, 56]
b .L32
.L31:
add w2, w1, 8
str w2, [sp, 80]
ldr w2, [sp, 80]
cmp w2, 0
ble .L33
add x1, x0, 11
and x1, x1, -8
str x1, [sp, 56]
b .L32
.L33:
ldr x2, [sp, 64]
sxtw x0, w1
add x0, x2, x0
.L32:
ldr w0, [x0]
str w0, [sp, 44]
add x0, sp, 88
ldr x1, [sp, 48]
bl strstr
cmp x0, 0
beq .L30
ldr w1, [sp, 40]
ldr w0, [sp, 44]
orr w0, w1, w0
str w0, [sp, 40]
.L30:
ldr w1, [sp, 80]
ldr x0, [sp, 56]
cmp w1, 0
blt .L35
add x1, x0, 15
and x1, x1, -8
str x1, [sp, 56]
b .L36
.L35:
add w2, w1, 8
str w2, [sp, 80]
ldr w2, [sp, 80]
cmp w2, 0
ble .L37
add x1, x0, 15
and x1, x1, -8
str x1, [sp, 56]
b .L36
.L37:
ldr x2, [sp, 64]
sxtw x0, w1
add x0, x2, x0
.L36:
ldr x0, [x0]
str x0, [sp, 48]
ldr x0, [sp, 48]
cmp x0, 0
bne .L39
ldr w0, [sp, 40]
.L40:
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 600]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L41
bl __stack_chk_fail
.L41:
mov w0, w1
ldp x29, x30, [sp]
add sp, sp, 784
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size proc_guess_fmt, .-proc_guess_fmt
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global leak
.type leak, %function
leak:
.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 x0, 100
bl malloc
str x0, [sp, 24]
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size leak, .-leak
.section .rodata
.align 3
.LC0:
.string "#Let's leak 100 bytes"
.align 3
.LC1:
.string "#100 bytes leaked"
.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
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
bl leak
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
mov w0, 0
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "%d"
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
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
.L4:
add x0, sp, 40
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
ldr w0, [sp, 40]
sxtw x0, w0
bl malloc
str x0, [sp, 48]
adrp x0, :got:stdin
ldr x0, [x0, #:got_lo12:stdin]
ldr x0, [x0]
mov x2, x0
mov w1, 8
ldr x0, [sp, 48]
bl fgets
ldr w0, [sp, 40]
str w0, [sp, 44]
b .L2
.L3:
ldrsw x0, [sp, 44]
ldr x1, [sp, 48]
add x0, x1, x0
ldrb w0, [x0]
bl putchar
ldr w0, [sp, 44]
sub w0, w0, #1
str w0, [sp, 44]
.L2:
ldr w0, [sp, 44]
cmp w0, 0
bge .L3
ldr x0, [sp, 48]
bl free
str xzr, [sp, 48]
ldr w0, [sp, 40]
cmp w0, 0
bne .L4
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 .L6
bl __stack_chk_fail
.L6:
mov w0, w1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
``` |