text
stringlengths 197
24.1M
|
---|
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global vars
.bss
.align 3
.type vars, %object
.size vars, 16
vars:
.zero 16
.global atom_0_r1_1
.align 2
.type atom_0_r1_1, %object
.size atom_0_r1_1, 4
atom_0_r1_1:
.zero 4
.global atom_1_r1_1
.align 2
.type atom_1_r1_1, %object
.size atom_1_r1_1, 4
atom_1_r1_1:
.zero 4
.text
.align 2
.global t0
.type t0, %function
t0:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -96]!
.cfi_def_cfa_offset 96
.cfi_offset 29, -96
.cfi_offset 30, -88
mov x29, sp
str 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
.L2:
adrp x0, vars
add x0, x0, :lo12:vars
str x0, [sp, 64]
ldr x0, [sp, 64]
ldar w0, [x0]
str w0, [sp, 44]
ldr w0, [sp, 44]
str w0, [sp, 48]
str wzr, [sp, 52]
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 56]
adrp x0, vars+4
add x0, x0, :lo12:vars+4
str x0, [sp, 72]
ldr w0, [sp, 56]
str w0, [sp, 44]
ldr w0, [sp, 44]
mov w1, w0
ldr x0, [sp, 72]
stlr w1, [x0]
ldr w0, [sp, 48]
cmp w0, 1
cset w0, eq
and w0, w0, 255
str w0, [sp, 60]
adrp x0, atom_0_r1_1
add x0, x0, :lo12:atom_0_r1_1
str x0, [sp, 80]
ldr w0, [sp, 60]
str w0, [sp, 44]
ldr w0, [sp, 44]
mov w1, w0
ldr x0, [sp, 80]
stlr w1, [x0]
mov x0, 0
mov x1, x0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 88]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L4
bl __stack_chk_fail
.L4:
mov x0, x1
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size t0, .-t0
.align 2
.global t1
.type t1, %function
t1:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -144]!
.cfi_def_cfa_offset 144
.cfi_offset 29, -144
.cfi_offset 30, -136
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, 136]
mov x1, 0
.L6:
adrp x0, vars+4
add x0, x0, :lo12:vars+4
str x0, [sp, 72]
ldr x0, [sp, 72]
ldar w0, [x0]
str w0, [sp, 40]
ldr w0, [sp, 40]
str w0, [sp, 44]
adrp x0, vars+4
add x0, x0, :lo12:vars+4
str x0, [sp, 80]
ldr x0, [sp, 80]
ldar w0, [x0]
str w0, [sp, 40]
ldr w0, [sp, 40]
str w0, [sp, 48]
mov w0, 1
str w0, [sp, 52]
ldr w0, [sp, 52]
cmp w0, 0
nop
.L8:
adrp x0, vars+8
add x0, x0, :lo12:vars+8
str x0, [sp, 88]
mov w0, 1
str w0, [sp, 40]
ldr w0, [sp, 40]
mov w1, w0
ldr x0, [sp, 88]
stlr w1, [x0]
adrp x0, vars+8
add x0, x0, :lo12:vars+8
str x0, [sp, 96]
ldr x0, [sp, 96]
ldar w0, [x0]
str w0, [sp, 40]
ldr w0, [sp, 40]
str w0, [sp, 56]
str wzr, [sp, 60]
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 64]
adrp x0, vars+12
add x0, x0, :lo12:vars+12
str x0, [sp, 104]
ldr w0, [sp, 64]
str w0, [sp, 40]
ldr w0, [sp, 40]
mov w1, w0
ldr x0, [sp, 104]
stlr w1, [x0]
adrp x0, vars+12
add x0, x0, :lo12:vars+12
str x0, [sp, 112]
mov w0, 2
str w0, [sp, 40]
ldr w0, [sp, 40]
mov w1, w0
ldr x0, [sp, 112]
stlr w1, [x0]
adrp x0, vars
add x0, x0, :lo12:vars
str x0, [sp, 120]
mov w0, 1
str w0, [sp, 40]
ldr w0, [sp, 40]
mov w1, w0
ldr x0, [sp, 120]
stlr w1, [x0]
ldr w0, [sp, 44]
cmp w0, 1
cset w0, eq
and w0, w0, 255
str w0, [sp, 68]
adrp x0, atom_1_r1_1
add x0, x0, :lo12:atom_1_r1_1
str x0, [sp, 128]
ldr w0, [sp, 68]
str w0, [sp, 40]
ldr w0, [sp, 40]
mov w1, w0
ldr x0, [sp, 128]
stlr w1, [x0]
mov x0, 0
mov x1, x0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 136]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L10
bl __stack_chk_fail
.L10:
mov x0, x1
ldp x29, x30, [sp], 144
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size t1, .-t1
.section .rodata
.align 3
.LC0:
.string "program.c"
.align 3
.LC1:
.string "0"
.text
.align 2
.global main
.type main, %function
main:
.LFB2:
.cfi_startproc
stp x29, x30, [sp, -160]!
.cfi_def_cfa_offset 160
.cfi_offset 29, -160
.cfi_offset 30, -152
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 152]
mov x1, 0
adrp x0, vars+12
add x0, x0, :lo12:vars+12
str x0, [sp, 80]
str wzr, [sp, 72]
ldr w0, [sp, 72]
mov w1, w0
ldr x0, [sp, 80]
str w1, [x0]
adrp x0, vars
add x0, x0, :lo12:vars
str x0, [sp, 88]
str wzr, [sp, 72]
ldr w0, [sp, 72]
mov w1, w0
ldr x0, [sp, 88]
str w1, [x0]
adrp x0, vars+4
add x0, x0, :lo12:vars+4
str x0, [sp, 96]
str wzr, [sp, 72]
ldr w0, [sp, 72]
mov w1, w0
ldr x0, [sp, 96]
str w1, [x0]
adrp x0, vars+8
add x0, x0, :lo12:vars+8
str x0, [sp, 104]
str wzr, [sp, 72]
ldr w0, [sp, 72]
mov w1, w0
ldr x0, [sp, 104]
str w1, [x0]
adrp x0, atom_0_r1_1
add x0, x0, :lo12:atom_0_r1_1
str x0, [sp, 112]
str wzr, [sp, 72]
ldr w0, [sp, 72]
mov w1, w0
ldr x0, [sp, 112]
str w1, [x0]
adrp x0, atom_1_r1_1
add x0, x0, :lo12:atom_1_r1_1
str x0, [sp, 120]
str wzr, [sp, 72]
ldr w0, [sp, 72]
mov w1, w0
ldr x0, [sp, 120]
str w1, [x0]
add x4, sp, 64
mov x3, 0
adrp x0, t0
add x2, x0, :lo12:t0
mov x1, 0
mov x0, x4
bl pthread_create
add x4, sp, 72
mov x3, 0
adrp x0, t1
add x2, x0, :lo12:t1
mov x1, 0
mov x0, x4
bl pthread_create
ldr x0, [sp, 64]
mov x1, 0
bl pthread_join
ldr x0, [sp, 72]
mov x1, 0
bl pthread_join
adrp x0, vars+12
add x0, x0, :lo12:vars+12
str x0, [sp, 128]
ldr x0, [sp, 128]
ldar w0, [x0]
str w0, [sp, 36]
ldr w0, [sp, 36]
str w0, [sp, 40]
ldr w0, [sp, 40]
cmp w0, 2
cset w0, eq
and w0, w0, 255
str w0, [sp, 44]
adrp x0, atom_0_r1_1
add x0, x0, :lo12:atom_0_r1_1
str x0, [sp, 136]
ldr x0, [sp, 136]
ldar w0, [x0]
str w0, [sp, 36]
ldr w0, [sp, 36]
str w0, [sp, 48]
adrp x0, atom_1_r1_1
add x0, x0, :lo12:atom_1_r1_1
str x0, [sp, 144]
ldr x0, [sp, 144]
ldar w0, [x0]
str w0, [sp, 36]
ldr w0, [sp, 36]
str w0, [sp, 52]
ldr w1, [sp, 48]
ldr w0, [sp, 52]
and w0, w1, w0
str w0, [sp, 56]
ldr w1, [sp, 44]
ldr w0, [sp, 56]
and w0, w1, w0
str w0, [sp, 60]
ldr w0, [sp, 60]
cmp w0, 1
bne .L12
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 66
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L12:
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 .L14
bl __stack_chk_fail
.L14:
mov w0, w1
ldp x29, x30, [sp], 160
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size main, .-main
.section .rodata
.align 3
.type __PRETTY_FUNCTION__.0, %object
.size __PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
.string "main"
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global test_vabdQu32
.type test_vabdQu32, %function
test_vabdQu32:
.LFB4340:
.cfi_startproc
sub sp, sp, #80
.cfi_def_cfa_offset 80
ldr q0, [sp]
str q0, [sp, 48]
ldr q0, [sp, 16]
str q0, [sp, 64]
ldr q1, [sp, 48]
ldr q0, [sp, 64]
uabd v0.4s, v1.4s, v0.4s
str q0, [sp, 32]
nop
add sp, sp, 80
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE4340:
.size test_vabdQu32, .-test_vabdQu32
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global fsnextIsForUs
.bss
.type fsnextIsForUs, %object
.size fsnextIsForUs, 1
fsnextIsForUs:
.zero 1
.text
.align 2
.global custom_fsnext
.type custom_fsnext, %function
custom_fsnext:
.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, fsnextIsForUs
add x0, x0, :lo12:fsnextIsForUs
ldrb w0, [x0]
cmp w0, 0
bne .L2
mov w0, 0
b .L3
.L2:
bl copyNextDtaToAtari
str w0, [sp, 44]
ldr w0, [sp, 44]
.L3:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size custom_fsnext, .-custom_fsnext
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "\nEnter the name of the employee : "
.align 3
.LC1:
.string "%s"
.align 3
.LC2:
.string "\nEnter the employee number/code : "
.align 3
.LC3:
.string "%d"
.align 3
.LC4:
.string "\nEnter the age of the employee : "
.align 3
.LC5:
.string "\nEnter the employee's department name : "
.align 3
.LC6:
.string "\nEnter the employee's phone number : "
.align 3
.LC7:
.string "%f"
.align 3
.LC8:
.string "\nEnter the salary of the employee : "
.text
.align 2
.type emp_read.0, %function
emp_read.0:
.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 x19, [sp, 16]
.cfi_offset 19, -32
mov x19, x18
str x18, [sp, 40]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
ldr w0, [x19, 960]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 4
add x0, x19, x0
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
ldr w0, [x19, 960]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 4
add x0, x0, 16
add x0, x19, x0
add x0, x0, 4
mov x1, x0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl __isoc99_scanf
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
ldr w0, [x19, 960]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 4
add x0, x0, 16
add x0, x19, x0
add x0, x0, 12
mov x1, x0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl __isoc99_scanf
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
ldr w0, [x19, 960]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 4
add x0, x0, 32
add x0, x19, x0
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl printf
ldr w0, [x19, 960]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 4
add x0, x0, 32
add x0, x19, x0
add x0, x0, 12
mov x1, x0
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl __isoc99_scanf
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl printf
ldr w0, [x19, 960]
sxtw x1, w0
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 4
add x0, x0, 16
add x0, x19, x0
add x0, x0, 8
mov x1, x0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl __isoc99_scanf
nop
ldr x19, [sp, 16]
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size emp_read.0, .-emp_read.0
.section .rodata
.align 3
.LC9:
.string "\nEnter the number of employees whose data you want to store in :- "
.align 3
.LC10:
.string "\nEnter the details of the %d employee :-"
.align 3
.LC11:
.string "\nThe details of the employees are :-"
.align 3
.LC12:
.string "\nName \tAge \tCode \tDepartment name \tSalary \tPhone number"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
sub sp, sp, #1008
.cfi_def_cfa_offset 1008
stp x29, x30, [sp]
.cfi_offset 29, -1008
.cfi_offset 30, -1000
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 1000]
mov x1, 0
add x0, sp, 1008
str x0, [sp, 992]
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl printf
add x0, sp, 20
mov x1, x0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl __isoc99_scanf
mov w0, 0
str w0, [sp, 984]
b .L3
.L4:
ldr w0, [sp, 984]
add w0, w0, 1
mov w1, w0
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl printf
add x0, sp, 24
mov x18, x0
bl emp_read.0
ldr w0, [sp, 984]
add w0, w0, 1
str w0, [sp, 984]
.L3:
ldr w0, [sp, 20]
ldr w1, [sp, 984]
cmp w1, w0
blt .L4
adrp x0, .LC11
add x0, x0, :lo12:.LC11
bl printf
mov w0, 10
bl putchar
adrp x0, .LC12
add x0, x0, :lo12:.LC12
bl printf
mov w0, 10
bl putchar
mov w0, 0
str w0, [sp, 984]
b .L5
.L6:
add x0, sp, 24
mov x18, x0
bl emp_display.1
mov w0, 10
bl putchar
ldr w0, [sp, 984]
add w0, w0, 1
str w0, [sp, 984]
.L5:
ldr w0, [sp, 20]
ldr w1, [sp, 984]
cmp w1, w0
blt .L6
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 1000]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L8
bl __stack_chk_fail
.L8:
mov w0, w1
ldp x29, x30, [sp]
add sp, sp, 1008
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
.section .rodata
.align 3
.LC13:
.string "\n%s \t%d \t%d \t%s \t%d \t%0.0f"
.text
.align 2
.type emp_display.1, %function
emp_display.1:
.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, x18
str x18, [sp, 24]
ldr w1, [x0, 960]
sxtw x2, w1
mov x1, x2
lsl x1, x1, 1
add x1, x1, x2
lsl x1, x1, 4
add x6, x0, x1
ldr w1, [x0, 960]
sxtw x2, w1
mov x1, x2
lsl x1, x1, 1
add x1, x1, x2
lsl x1, x1, 4
add x1, x0, x1
ldr w7, [x1, 28]
ldr w1, [x0, 960]
sxtw x2, w1
mov x1, x2
lsl x1, x1, 1
add x1, x1, x2
lsl x1, x1, 4
add x1, x0, x1
ldr w3, [x1, 20]
ldr w1, [x0, 960]
sxtw x2, w1
mov x1, x2
lsl x1, x1, 1
add x1, x1, x2
lsl x1, x1, 4
add x1, x1, 32
add x4, x0, x1
ldr w1, [x0, 960]
sxtw x2, w1
mov x1, x2
lsl x1, x1, 1
add x1, x1, x2
lsl x1, x1, 4
add x1, x0, x1
ldr w5, [x1, 24]
ldr w1, [x0, 960]
sxtw x2, w1
mov x1, x2
lsl x1, x1, 1
add x1, x1, x2
lsl x1, x1, 4
add x0, x0, x1
ldr s0, [x0, 44]
fcvt d0, s0
mov w2, w7
mov x1, x6
adrp x0, .LC13
add x0, x0, :lo12:.LC13
bl printf
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size emp_display.1, .-emp_display.1
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Ingrese tres numeros, separados por un espacio: "
.align 3
.LC1:
.string "%d %d %d"
.align 3
.LC2:
.string "%d %d %d\n"
.align 3
.LC3:
.string "%d %d\n%d\n"
.align 3
.LC4:
.string "%d\n%d %d\n"
.align 3
.LC5:
.string "%d\n%d\n%d\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 40]
mov x1, 0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
add x2, sp, 36
add x1, sp, 32
add x0, sp, 28
mov x3, x2
mov x2, x1
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
ldr w1, [sp, 28]
ldr w0, [sp, 32]
cmp w1, w0
bne .L2
ldr w1, [sp, 28]
ldr w0, [sp, 36]
cmp w1, w0
bne .L2
ldr w0, [sp, 28]
ldr w1, [sp, 32]
ldr w2, [sp, 36]
mov w3, w2
mov w2, w1
mov w1, w0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
b .L3
.L2:
ldr w1, [sp, 28]
ldr w0, [sp, 32]
cmp w1, w0
bne .L4
ldr w1, [sp, 28]
ldr w0, [sp, 36]
cmp w1, w0
ble .L4
ldr w0, [sp, 28]
ldr w1, [sp, 32]
ldr w2, [sp, 36]
mov w3, w2
mov w2, w1
mov w1, w0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
b .L3
.L4:
ldr w1, [sp, 28]
ldr w0, [sp, 32]
cmp w1, w0
bne .L5
ldr w1, [sp, 28]
ldr w0, [sp, 36]
cmp w1, w0
bge .L5
ldr w0, [sp, 36]
ldr w1, [sp, 28]
ldr w2, [sp, 32]
mov w3, w2
mov w2, w1
mov w1, w0
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
b .L3
.L5:
ldr w1, [sp, 28]
ldr w0, [sp, 36]
cmp w1, w0
bne .L6
ldr w1, [sp, 28]
ldr w0, [sp, 32]
cmp w1, w0
ble .L6
ldr w0, [sp, 28]
ldr w1, [sp, 36]
ldr w2, [sp, 32]
mov w3, w2
mov w2, w1
mov w1, w0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
b .L3
.L6:
ldr w1, [sp, 28]
ldr w0, [sp, 36]
cmp w1, w0
bne .L7
ldr w1, [sp, 28]
ldr w0, [sp, 32]
cmp w1, w0
bge .L7
ldr w0, [sp, 32]
ldr w1, [sp, 28]
ldr w2, [sp, 36]
mov w3, w2
mov w2, w1
mov w1, w0
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
b .L3
.L7:
ldr w1, [sp, 32]
ldr w0, [sp, 36]
cmp w1, w0
bne .L8
ldr w1, [sp, 28]
ldr w0, [sp, 32]
cmp w1, w0
ble .L8
ldr w0, [sp, 28]
ldr w1, [sp, 32]
ldr w2, [sp, 36]
mov w3, w2
mov w2, w1
mov w1, w0
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
b .L3
.L8:
ldr w1, [sp, 32]
ldr w0, [sp, 36]
cmp w1, w0
bne .L9
ldr w1, [sp, 28]
ldr w0, [sp, 32]
cmp w1, w0
bge .L9
ldr w0, [sp, 32]
ldr w1, [sp, 36]
ldr w2, [sp, 28]
mov w3, w2
mov w2, w1
mov w1, w0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
b .L3
.L9:
ldr w1, [sp, 28]
ldr w0, [sp, 32]
cmp w1, w0
ble .L10
ldr w1, [sp, 28]
ldr w0, [sp, 36]
cmp w1, w0
ble .L10
ldr w1, [sp, 32]
ldr w0, [sp, 36]
cmp w1, w0
ble .L10
ldr w0, [sp, 28]
ldr w1, [sp, 32]
ldr w2, [sp, 36]
mov w3, w2
mov w2, w1
mov w1, w0
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
b .L3
.L10:
ldr w1, [sp, 28]
ldr w0, [sp, 32]
cmp w1, w0
ble .L11
ldr w1, [sp, 28]
ldr w0, [sp, 36]
cmp w1, w0
ble .L11
ldr w1, [sp, 32]
ldr w0, [sp, 36]
cmp w1, w0
bge .L11
ldr w0, [sp, 28]
ldr w1, [sp, 36]
ldr w2, [sp, 32]
mov w3, w2
mov w2, w1
mov w1, w0
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
b .L3
.L11:
ldr w1, [sp, 32]
ldr w0, [sp, 28]
cmp w1, w0
ble .L12
ldr w1, [sp, 32]
ldr w0, [sp, 36]
cmp w1, w0
ble .L12
ldr w1, [sp, 28]
ldr w0, [sp, 36]
cmp w1, w0
ble .L12
ldr w0, [sp, 32]
ldr w1, [sp, 28]
ldr w2, [sp, 36]
mov w3, w2
mov w2, w1
mov w1, w0
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
b .L3
.L12:
ldr w1, [sp, 32]
ldr w0, [sp, 28]
cmp w1, w0
ble .L13
ldr w1, [sp, 32]
ldr w0, [sp, 36]
cmp w1, w0
ble .L13
ldr w1, [sp, 28]
ldr w0, [sp, 36]
cmp w1, w0
bge .L13
ldr w0, [sp, 32]
ldr w1, [sp, 36]
ldr w2, [sp, 28]
mov w3, w2
mov w2, w1
mov w1, w0
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
b .L3
.L13:
ldr w1, [sp, 36]
ldr w0, [sp, 28]
cmp w1, w0
ble .L14
ldr w1, [sp, 36]
ldr w0, [sp, 32]
cmp w1, w0
ble .L14
ldr w1, [sp, 28]
ldr w0, [sp, 32]
cmp w1, w0
ble .L14
ldr w0, [sp, 36]
ldr w1, [sp, 28]
ldr w2, [sp, 32]
mov w3, w2
mov w2, w1
mov w1, w0
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
b .L3
.L14:
ldr w1, [sp, 36]
ldr w0, [sp, 28]
cmp w1, w0
ble .L3
ldr w1, [sp, 36]
ldr w0, [sp, 32]
cmp w1, w0
ble .L3
ldr w1, [sp, 28]
ldr w0, [sp, 32]
cmp w1, w0
bge .L3
ldr w0, [sp, 36]
ldr w1, [sp, 32]
ldr w2, [sp, 28]
mov w3, w2
mov w2, w1
mov w1, w0
adrp x0, .LC5
add x0, x0, :lo12:.LC5
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 .L16
bl __stack_chk_fail
.L16:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global strtoull
.type strtoull, %function
strtoull:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str w2, [sp, 28]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 72]
mov x1, 0
mov w0, 43
strb w0, [sp, 55]
add x1, sp, 28
add x0, sp, 55
mov x2, x1
mov x1, x0
ldr x0, [sp, 40]
bl _PDCLIB_strtox_prelim
sxtw x0, w0
str x0, [sp, 56]
ldr w0, [sp, 28]
cmp w0, 1
ble .L2
ldr w0, [sp, 28]
cmp w0, 36
ble .L3
.L2:
mov x0, 0
b .L10
.L3:
ldr w0, [sp, 28]
mov w6, w0
ldr w0, [sp, 28]
sxtw x0, w0
mov x1, -1
udiv x3, x1, x0
ldr w0, [sp, 28]
sxtw x1, w0
mov x0, -1
udiv x2, x0, x1
mul x1, x2, x1
sub x0, x0, x1
mov w2, w0
add x1, sp, 55
add x0, sp, 56
mov x5, x1
mov w4, w2
mov x2, -1
mov w1, w6
bl _PDCLIB_strtox_main
sxtw x0, w0
str x0, [sp, 64]
ldr x0, [sp, 32]
cmp x0, 0
beq .L5
ldr x0, [sp, 56]
cmp x0, 0
beq .L6
ldr x0, [sp, 56]
b .L7
.L6:
ldr x0, [sp, 40]
.L7:
ldr x1, [sp, 32]
str x0, [x1]
.L5:
ldrb w0, [sp, 55]
cmp w0, 43
beq .L8
ldr x0, [sp, 64]
neg x0, x0
b .L10
.L8:
ldr x0, [sp, 64]
.L10:
mov x1, x0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 72]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L11
bl __stack_chk_fail
.L11:
mov x0, x1
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size strtoull, .-strtoull
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "WG_COLOR_MODE"
.align 3
.LC1:
.string "always"
.align 3
.LC2:
.string "never"
.text
.align 2
.type color_mode, %function
color_mode:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
adrp x0, mode.0
add x0, x0, :lo12:mode.0
ldr w0, [x0]
cmn w0, #1
beq .L2
adrp x0, mode.0
add x0, x0, :lo12:mode.0
ldr w0, [x0]
cmp w0, 0
cset w0, ne
and w0, w0, 255
b .L3
.L2:
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl getenv
str x0, [sp, 40]
ldr x0, [sp, 40]
cmp x0, 0
beq .L4
adrp x0, .LC1
add x1, x0, :lo12:.LC1
ldr x0, [sp, 40]
bl strcmp
cmp w0, 0
bne .L4
adrp x0, mode.0
add x0, x0, :lo12:mode.0
mov w1, 1
str w1, [x0]
b .L5
.L4:
ldr x0, [sp, 40]
cmp x0, 0
beq .L6
adrp x0, .LC2
add x1, x0, :lo12:.LC2
ldr x0, [sp, 40]
bl strcmp
cmp w0, 0
bne .L6
adrp x0, mode.0
add x0, x0, :lo12:mode.0
str wzr, [x0]
b .L5
.L6:
ldr x0, [sp, 24]
bl fileno
bl isatty
cmp w0, 0
cset w0, ne
and w0, w0, 255
b .L3
.L5:
adrp x0, mode.0
add x0, x0, :lo12:mode.0
ldr w0, [x0]
cmp w0, 0
cset w0, ne
and w0, w0, 255
.L3:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size color_mode, .-color_mode
.align 2
.type filter_ansi, %function
filter_ansi:
.LFB7:
.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 x0, [sp, 72]
str x1, [sp, 64]
mov x19, x2
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 120]
mov x1, 0
str xzr, [sp, 88]
ldr x0, [sp, 72]
bl color_mode
and w0, w0, 255
cmp w0, 0
beq .L8
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]
ldr x0, [sp, 72]
bl vfprintf
b .L7
.L8:
add x0, sp, 32
mov x1, x19
ldp q0, q1, [x1]
stp q0, q1, [x0]
add x1, sp, 32
add x0, sp, 88
mov x2, x1
ldr x1, [sp, 64]
bl vasprintf
sxtw x0, w0
str x0, [sp, 112]
ldr x0, [sp, 112]
cmp x0, 1
bls .L10
str xzr, [sp, 96]
b .L11
.L17:
ldr x1, [sp, 88]
ldr x0, [sp, 96]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 27
bne .L12
ldr x1, [sp, 88]
ldr x0, [sp, 96]
add x0, x0, 1
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 91
bne .L12
ldr x1, [sp, 88]
ldr x0, [sp, 96]
add x0, x0, 1
add x0, x1, x0
strb wzr, [x0]
ldr x2, [sp, 88]
ldr x1, [sp, 96]
add x1, x2, x1
ldrb w0, [x0]
strb w0, [x1]
ldr x0, [sp, 96]
add x0, x0, 2
str x0, [sp, 104]
b .L13
.L16:
bl __ctype_b_loc
ldr x1, [x0]
ldr x2, [sp, 88]
ldr x0, [sp, 104]
add x0, x2, x0
ldrb w0, [x0]
and x0, x0, 255
lsl x0, x0, 1
add x0, x1, x0
ldrh w0, [x0]
and w0, w0, 1024
cmp w0, 0
bne .L25
ldr x1, [sp, 88]
ldr x0, [sp, 104]
add x0, x1, x0
strb wzr, [x0]
ldr x0, [sp, 104]
add x0, x0, 1
str x0, [sp, 104]
.L13:
ldr x1, [sp, 104]
ldr x0, [sp, 112]
cmp x1, x0
bcc .L16
b .L15
.L25:
nop
.L15:
ldr x1, [sp, 88]
ldr x0, [sp, 104]
add x0, x1, x0
strb wzr, [x0]
.L12:
ldr x0, [sp, 96]
add x0, x0, 1
str x0, [sp, 96]
.L11:
ldr x0, [sp, 112]
sub x0, x0, #2
ldr x1, [sp, 96]
cmp x1, x0
bcc .L17
.L10:
str xzr, [sp, 96]
b .L18
.L23:
ldr x1, [sp, 88]
ldr x0, [sp, 96]
add x0, x1, x0
ldr x1, [sp, 72]
bl fputs
ldr x1, [sp, 88]
ldr x0, [sp, 96]
add x0, x1, x0
bl strlen
mov x1, x0
ldr x0, [sp, 96]
add x0, x0, x1
str x0, [sp, 104]
b .L19
.L22:
ldr x1, [sp, 88]
ldr x0, [sp, 104]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 0
bne .L26
ldr x0, [sp, 104]
add x0, x0, 1
str x0, [sp, 104]
.L19:
ldr x1, [sp, 104]
ldr x0, [sp, 112]
cmp x1, x0
bcc .L22
b .L21
.L26:
nop
.L21:
ldr x0, [sp, 104]
str x0, [sp, 96]
.L18:
ldr x1, [sp, 96]
ldr x0, [sp, 112]
cmp x1, x0
bcc .L23
ldr x0, [sp, 88]
bl free
.L7:
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 .L24
bl __stack_chk_fail
.L24:
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
.LFE7:
.size filter_ansi, .-filter_ansi
.align 2
.global terminal_printf
.type terminal_printf, %function
terminal_printf:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -304]!
.cfi_def_cfa_offset 304
.cfi_offset 29, -304
.cfi_offset 30, -296
mov x29, sp
str x0, [sp, 56]
str x1, [sp, 248]
str x2, [sp, 256]
str x3, [sp, 264]
str x4, [sp, 272]
str x5, [sp, 280]
str x6, [sp, 288]
str x7, [sp, 296]
str q0, [sp, 112]
str q1, [sp, 128]
str q2, [sp, 144]
str q3, [sp, 160]
str q4, [sp, 176]
str q5, [sp, 192]
str q6, [sp, 208]
str q7, [sp, 224]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 104]
mov x1, 0
add x0, sp, 304
str x0, [sp, 72]
add x0, sp, 304
str x0, [sp, 80]
add x0, sp, 240
str x0, [sp, 88]
mov w0, -56
str w0, [sp, 96]
mov w0, -128
str w0, [sp, 100]
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x3, [x0]
add x0, sp, 16
add x1, sp, 72
ldp q0, q1, [x1]
stp q0, q1, [x0]
add x0, sp, 16
mov x2, x0
ldr x1, [sp, 56]
mov x0, x3
bl filter_ansi
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 104]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L28
bl __stack_chk_fail
.L28:
ldp x29, x30, [sp], 304
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size terminal_printf, .-terminal_printf
.align 2
.global terminal_fprintf
.type terminal_fprintf, %function
terminal_fprintf:
.LFB9:
.cfi_startproc
stp x29, x30, [sp, -288]!
.cfi_def_cfa_offset 288
.cfi_offset 29, -288
.cfi_offset 30, -280
mov x29, sp
str x0, [sp, 56]
str x1, [sp, 48]
str x2, [sp, 240]
str x3, [sp, 248]
str x4, [sp, 256]
str x5, [sp, 264]
str x6, [sp, 272]
str x7, [sp, 280]
str q0, [sp, 112]
str q1, [sp, 128]
str q2, [sp, 144]
str q3, [sp, 160]
str q4, [sp, 176]
str q5, [sp, 192]
str q6, [sp, 208]
str q7, [sp, 224]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 104]
mov x1, 0
add x0, sp, 288
str x0, [sp, 72]
add x0, sp, 288
str x0, [sp, 80]
add x0, sp, 240
str x0, [sp, 88]
mov w0, -48
str w0, [sp, 96]
mov w0, -128
str w0, [sp, 100]
add x0, sp, 16
add x1, sp, 72
ldp q0, q1, [x1]
stp q0, q1, [x0]
add x0, sp, 16
mov x2, x0
ldr x1, [sp, 48]
ldr x0, [sp, 56]
bl filter_ansi
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 104]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L30
bl __stack_chk_fail
.L30:
ldp x29, x30, [sp], 288
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size terminal_fprintf, .-terminal_fprintf
.data
.align 2
.type mode.0, %object
.size mode.0, 4
mode.0:
.word -1
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Press ENTER to exit\n\n"
.align 3
.LC1:
.string "students.txt"
.align 3
.LC2:
.string "Grade: "
.align 3
.LC3:
.string "Name: "
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
sub sp, sp, #736
.cfi_def_cfa_offset 736
stp x29, x30, [sp]
.cfi_offset 29, -736
.cfi_offset 30, -728
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 728]
mov x1, 0
mov x2, 21
adrp x0, .LC0
add x1, x0, :lo12:.LC0
mov w0, 1
bl write
mov w1, 577
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl open
str w0, [sp, 28]
b .L2
.L4:
ldr x0, [sp, 32]
sub x0, x0, #1
mov x2, x0
add x1, sp, 216
add x0, sp, 104
bl strncpy
mov x2, 7
adrp x0, .LC2
add x1, x0, :lo12:.LC2
mov w0, 1
bl write
add x0, sp, 216
mov x2, 512
mov x1, x0
mov w0, 1
bl read
str x0, [sp, 40]
ldr x0, [sp, 40]
sub x0, x0, #1
mov x2, x0
add x1, sp, 216
add x0, sp, 160
bl strncpy
add x0, sp, 104
bl strlen
mov x2, x0
add x1, sp, 104
add x0, sp, 48
bl strncpy
add x0, sp, 160
bl atoi
str w0, [sp, 100]
add x0, sp, 48
mov x2, 56
mov x1, x0
ldr w0, [sp, 28]
bl write
.L2:
mov x2, 6
adrp x0, .LC3
add x1, x0, :lo12:.LC3
mov w0, 1
bl write
cmp x0, 0
ble .L3
add x0, sp, 216
mov x2, 512
mov x1, x0
mov w0, 0
bl read
str x0, [sp, 32]
ldr x0, [sp, 32]
cmp x0, 0
ble .L3
ldrb w0, [sp, 216]
cmp w0, 10
bne .L4
.L3:
ldr w0, [sp, 28]
bl close
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 728]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L6
bl __stack_chk_fail
.L6:
mov w0, w1
ldp x29, x30, [sp]
add sp, sp, 736
.cfi_restore 29
.cfi_restore 30
.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 "(null)"
.align 3
.LC1:
.string "0123456789ABCDEF"
.align 3
.LC2:
.string "0123456789abcdef"
.align 3
.LC3:
.string "bug in vfprintf: bad base"
.text
.align 2
.global __vprintf
.type __vprintf, %function
__vprintf:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -192]!
.cfi_def_cfa_offset 192
.cfi_offset 29, -192
.cfi_offset 30, -184
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -176
str x0, [sp, 40]
str x1, [sp, 32]
mov x19, x2
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 184]
mov x1, 0
str xzr, [sp, 120]
ldr x0, [sp, 32]
str x0, [sp, 96]
.L167:
ldr x0, [sp, 96]
str x0, [sp, 104]
b .L2
.L4:
ldr x0, [sp, 96]
add x0, x0, 1
str x0, [sp, 96]
.L2:
ldr x0, [sp, 96]
ldrb w0, [x0]
cmp w0, 0
beq .L3
ldr x0, [sp, 96]
ldrb w0, [x0]
cmp w0, 37
bne .L4
.L3:
ldr x1, [sp, 96]
ldr x0, [sp, 104]
sub x0, x1, x0
str w0, [sp, 92]
ldr w0, [sp, 92]
cmp w0, 0
beq .L5
str wzr, [sp, 60]
b .L6
.L8:
ldrsw x0, [sp, 60]
ldr x1, [sp, 104]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 10
bne .L7
ldr x1, [sp, 40]
mov w0, 13
blr x1
.L7:
ldrsw x0, [sp, 60]
ldr x1, [sp, 104]
add x0, x1, x0
ldrb w0, [x0]
ldr x1, [sp, 40]
blr x1
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L6:
ldr w1, [sp, 60]
ldr w0, [sp, 92]
cmp w1, w0
blt .L8
.L5:
ldr x0, [sp, 96]
ldrb w0, [x0]
cmp w0, 0
beq .L169
ldr x0, [sp, 96]
add x0, x0, 1
str x0, [sp, 96]
str wzr, [sp, 64]
str wzr, [sp, 80]
str wzr, [sp, 68]
mov w0, -1
str w0, [sp, 72]
strb wzr, [sp, 55]
.L12:
ldr x0, [sp, 96]
add x1, x0, 1
str x1, [sp, 96]
ldrb w0, [x0]
str w0, [sp, 56]
.L13:
ldr w0, [sp, 56]
sub w0, w0, #32
cmp w0, 88
bhi .L14
adrp x1, .L16
add x1, x1, :lo12:.L16
ldr w0, [x1,w0,uxtw #2]
adr x1, .Lrtx16
add x0, x1, w0, sxtw #2
br x0
.Lrtx16:
.section .rodata
.align 0
.align 2
.L16:
.word (.L32 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L31 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L30 - .Lrtx16) / 4
.word (.L29 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L28 - .Lrtx16) / 4
.word (.L27 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L26 - .Lrtx16) / 4
.word (.L25 - .Lrtx16) / 4
.word (.L25 - .Lrtx16) / 4
.word (.L25 - .Lrtx16) / 4
.word (.L25 - .Lrtx16) / 4
.word (.L25 - .Lrtx16) / 4
.word (.L25 - .Lrtx16) / 4
.word (.L25 - .Lrtx16) / 4
.word (.L25 - .Lrtx16) / 4
.word (.L25 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L24 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L23 - .Lrtx16) / 4
.word (.L21 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L22 - .Lrtx16) / 4
.word (.L21 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L20 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L19 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L18 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L17 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L14 - .Lrtx16) / 4
.word (.L15 - .Lrtx16) / 4
.text
.L32:
ldrb w0, [sp, 55]
cmp w0, 0
bne .L12
mov w0, 32
strb w0, [sp, 55]
b .L12
.L31:
ldr w0, [sp, 64]
orr w0, w0, 1
str w0, [sp, 64]
b .L12
.L30:
ldr w1, [x19, 24]
ldr x0, [x19]
cmp w1, 0
blt .L34
add x1, x0, 11
and x1, x1, -8
str x1, [x19]
b .L35
.L34:
add w2, w1, 8
str w2, [x19, 24]
ldr w2, [x19, 24]
cmp w2, 0
ble .L36
add x1, x0, 11
and x1, x1, -8
str x1, [x19]
b .L35
.L36:
ldr x2, [x19, 8]
sxtw x0, w1
add x0, x2, x0
.L35:
ldr w0, [x0]
str w0, [sp, 68]
ldr w0, [sp, 68]
cmp w0, 0
blt .L38
b .L12
.L38:
ldr w0, [sp, 68]
neg w0, w0
str w0, [sp, 68]
.L28:
ldr w0, [sp, 64]
orr w0, w0, 4
str w0, [sp, 64]
b .L12
.L29:
mov w0, 43
strb w0, [sp, 55]
b .L12
.L27:
ldr x0, [sp, 96]
add x1, x0, 1
str x1, [sp, 96]
ldrb w0, [x0]
str w0, [sp, 56]
ldr w0, [sp, 56]
cmp w0, 42
bne .L39
ldr w1, [x19, 24]
ldr x0, [x19]
cmp w1, 0
blt .L40
add x1, x0, 11
and x1, x1, -8
str x1, [x19]
b .L41
.L40:
add w2, w1, 8
str w2, [x19, 24]
ldr w2, [x19, 24]
cmp w2, 0
ble .L42
add x1, x0, 11
and x1, x1, -8
str x1, [x19]
b .L41
.L42:
ldr x2, [x19, 8]
sxtw x0, w1
add x0, x2, x0
.L41:
ldr w0, [x0]
str w0, [sp, 60]
ldr w2, [sp, 60]
ldr w1, [sp, 60]
mov w0, -1
cmp w2, 0
csel w0, w1, w0, ge
str w0, [sp, 72]
b .L12
.L39:
str wzr, [sp, 60]
b .L44
.L45:
ldr w1, [sp, 60]
mov w0, w1
lsl w0, w0, 2
add w0, w0, w1
lsl w0, w0, 1
mov w1, w0
ldr w0, [sp, 56]
sub w0, w0, #48
add w0, w1, w0
str w0, [sp, 60]
ldr x0, [sp, 96]
add x1, x0, 1
str x1, [sp, 96]
ldrb w0, [x0]
str w0, [sp, 56]
.L44:
ldr w0, [sp, 56]
sub w0, w0, #48
cmp w0, 9
bls .L45
ldr w2, [sp, 60]
ldr w1, [sp, 60]
mov w0, -1
cmp w2, 0
csel w0, w1, w0, ge
str w0, [sp, 72]
b .L13
.L26:
ldr w0, [sp, 64]
orr w0, w0, 128
str w0, [sp, 64]
b .L12
.L25:
str wzr, [sp, 60]
.L46:
ldr w1, [sp, 60]
mov w0, w1
lsl w0, w0, 2
add w0, w0, w1
lsl w0, w0, 1
mov w1, w0
ldr w0, [sp, 56]
sub w0, w0, #48
add w0, w1, w0
str w0, [sp, 60]
ldr x0, [sp, 96]
add x1, x0, 1
str x1, [sp, 96]
ldrb w0, [x0]
str w0, [sp, 56]
ldr w0, [sp, 56]
sub w0, w0, #48
cmp w0, 9
bls .L46
ldr w0, [sp, 60]
str w0, [sp, 68]
b .L13
.L22:
ldr w0, [sp, 64]
orr w0, w0, 64
str w0, [sp, 64]
b .L12
.L20:
ldr x0, [sp, 96]
ldrb w0, [x0]
cmp w0, 108
bne .L47
ldr x0, [sp, 96]
add x0, x0, 1
str x0, [sp, 96]
ldr w0, [sp, 64]
orr w0, w0, 32
str w0, [sp, 64]
b .L12
.L47:
ldr w0, [sp, 64]
orr w0, w0, 16
str w0, [sp, 64]
b .L12
.L23:
ldr w1, [x19, 24]
ldr x0, [x19]
cmp w1, 0
blt .L49
add x1, x0, 11
and x1, x1, -8
str x1, [x19]
b .L50
.L49:
add w2, w1, 8
str w2, [x19, 24]
ldr w2, [x19, 24]
cmp w2, 0
ble .L51
add x1, x0, 11
and x1, x1, -8
str x1, [x19]
b .L50
.L51:
ldr x2, [x19, 8]
sxtw x0, w1
add x0, x2, x0
.L50:
ldr w1, [x0]
add x0, sp, 144
str x0, [sp, 104]
and w1, w1, 255
ldr x0, [sp, 104]
strb w1, [x0]
mov w0, 1
str w0, [sp, 88]
strb wzr, [sp, 55]
b .L53
.L21:
ldr w0, [sp, 64]
and w0, w0, 16
cmp w0, 0
beq .L54
ldr w1, [x19, 24]
ldr x0, [x19]
cmp w1, 0
blt .L55
add x1, x0, 15
and x1, x1, -8
str x1, [x19]
b .L56
.L55:
add w2, w1, 8
str w2, [x19, 24]
ldr w2, [x19, 24]
cmp w2, 0
ble .L57
add x1, x0, 15
and x1, x1, -8
str x1, [x19]
b .L56
.L57:
ldr x2, [x19, 8]
sxtw x0, w1
add x0, x2, x0
.L56:
ldr x0, [x0]
b .L59
.L54:
ldr w0, [sp, 64]
and w0, w0, 64
cmp w0, 0
beq .L60
ldr w1, [x19, 24]
ldr x0, [x19]
cmp w1, 0
blt .L61
add x1, x0, 11
and x1, x1, -8
str x1, [x19]
b .L62
.L61:
add w2, w1, 8
str w2, [x19, 24]
ldr w2, [x19, 24]
cmp w2, 0
ble .L63
add x1, x0, 11
and x1, x1, -8
str x1, [x19]
b .L62
.L63:
ldr x2, [x19, 8]
sxtw x0, w1
add x0, x2, x0
.L62:
ldr w0, [x0]
sxth w0, w0
sxth x0, w0
b .L59
.L60:
ldr w1, [x19, 24]
ldr x0, [x19]
cmp w1, 0
blt .L66
add x1, x0, 11
and x1, x1, -8
str x1, [x19]
b .L67
.L66:
add w2, w1, 8
str w2, [x19, 24]
ldr w2, [x19, 24]
cmp w2, 0
ble .L68
add x1, x0, 11
and x1, x1, -8
str x1, [x19]
b .L67
.L68:
ldr x2, [x19, 8]
sxtw x0, w1
add x0, x2, x0
.L67:
ldr w0, [x0]
sxtw x0, w0
.L59:
str x0, [sp, 112]
ldr x0, [sp, 112]
cmp x0, 0
bge .L70
ldr x0, [sp, 112]
neg x0, x0
str x0, [sp, 112]
mov w0, 45
strb w0, [sp, 55]
.L70:
mov w0, 1
str w0, [sp, 76]
b .L71
.L19:
ldr w0, [sp, 64]
and w0, w0, 16
cmp w0, 0
beq .L72
ldr w1, [x19, 24]
ldr x0, [x19]
cmp w1, 0
blt .L73
add x1, x0, 15
and x1, x1, -8
str x1, [x19]
b .L74
.L73:
add w2, w1, 8
str w2, [x19, 24]
ldr w2, [x19, 24]
cmp w2, 0
ble .L75
add x1, x0, 15
and x1, x1, -8
str x1, [x19]
b .L74
.L75:
ldr x2, [x19, 8]
sxtw x0, w1
add x0, x2, x0
.L74:
ldr x0, [x0]
b .L77
.L72:
ldr w0, [sp, 64]
and w0, w0, 64
cmp w0, 0
beq .L78
ldr w1, [x19, 24]
ldr x0, [x19]
cmp w1, 0
blt .L79
add x1, x0, 11
and x1, x1, -8
str x1, [x19]
b .L80
.L79:
add w2, w1, 8
str w2, [x19, 24]
ldr w2, [x19, 24]
cmp w2, 0
ble .L81
add x1, x0, 11
and x1, x1, -8
str x1, [x19]
b .L80
.L81:
ldr x2, [x19, 8]
sxtw x0, w1
add x0, x2, x0
.L80:
ldr w0, [x0]
and w0, w0, 65535
and x0, x0, 65535
b .L77
.L78:
ldr w1, [x19, 24]
ldr x0, [x19]
cmp w1, 0
blt .L84
add x1, x0, 11
and x1, x1, -8
str x1, [x19]
b .L85
.L84:
add w2, w1, 8
str w2, [x19, 24]
ldr w2, [x19, 24]
cmp w2, 0
ble .L86
add x1, x0, 11
and x1, x1, -8
str x1, [x19]
b .L85
.L86:
ldr x2, [x19, 8]
sxtw x0, w1
add x0, x2, x0
.L85:
ldr w0, [x0]
uxtw x0, w0
.L77:
str x0, [sp, 112]
str wzr, [sp, 76]
b .L88
.L18:
ldr w1, [x19, 24]
ldr x0, [x19]
cmp w1, 0
blt .L89
add x1, x0, 15
and x1, x1, -8
str x1, [x19]
b .L90
.L89:
add w2, w1, 8
str w2, [x19, 24]
ldr w2, [x19, 24]
cmp w2, 0
ble .L91
add x1, x0, 15
and x1, x1, -8
str x1, [x19]
b .L90
.L91:
ldr x2, [x19, 8]
sxtw x0, w1
add x0, x2, x0
.L90:
ldr x0, [x0]
str x0, [sp, 104]
ldr x0, [sp, 104]
cmp x0, 0
bne .L93
adrp x0, .LC0
add x0, x0, :lo12:.LC0
str x0, [sp, 104]
.L93:
ldr w0, [sp, 72]
cmp w0, 0
blt .L94
ldrsw x0, [sp, 72]
mov x2, x0
mov w1, 0
ldr x0, [sp, 104]
bl memchr
str x0, [sp, 128]
ldr x0, [sp, 128]
cmp x0, 0
beq .L95
ldr x1, [sp, 128]
ldr x0, [sp, 104]
sub x0, x1, x0
str w0, [sp, 88]
ldr w1, [sp, 88]
ldr w0, [sp, 72]
cmp w1, w0
ble .L96
ldr w0, [sp, 72]
str w0, [sp, 88]
b .L96
.L95:
ldr w0, [sp, 72]
str w0, [sp, 88]
b .L96
.L94:
ldr x0, [sp, 104]
bl strlen
str w0, [sp, 88]
.L96:
strb wzr, [sp, 55]
b .L53
.L17:
ldr w0, [sp, 64]
and w0, w0, 16
cmp w0, 0
beq .L97
ldr w1, [x19, 24]
ldr x0, [x19]
cmp w1, 0
blt .L98
add x1, x0, 15
and x1, x1, -8
str x1, [x19]
b .L99
.L98:
add w2, w1, 8
str w2, [x19, 24]
ldr w2, [x19, 24]
cmp w2, 0
ble .L100
add x1, x0, 15
and x1, x1, -8
str x1, [x19]
b .L99
.L100:
ldr x2, [x19, 8]
sxtw x0, w1
add x0, x2, x0
.L99:
ldr x0, [x0]
b .L102
.L97:
ldr w0, [sp, 64]
and w0, w0, 64
cmp w0, 0
beq .L103
ldr w1, [x19, 24]
ldr x0, [x19]
cmp w1, 0
blt .L104
add x1, x0, 11
and x1, x1, -8
str x1, [x19]
b .L105
.L104:
add w2, w1, 8
str w2, [x19, 24]
ldr w2, [x19, 24]
cmp w2, 0
ble .L106
add x1, x0, 11
and x1, x1, -8
str x1, [x19]
b .L105
.L106:
ldr x2, [x19, 8]
sxtw x0, w1
add x0, x2, x0
.L105:
ldr w0, [x0]
and w0, w0, 65535
and x0, x0, 65535
b .L102
.L103:
ldr w1, [x19, 24]
ldr x0, [x19]
cmp w1, 0
blt .L109
add x1, x0, 11
and x1, x1, -8
str x1, [x19]
b .L110
.L109:
add w2, w1, 8
str w2, [x19, 24]
ldr w2, [x19, 24]
cmp w2, 0
ble .L111
add x1, x0, 11
and x1, x1, -8
str x1, [x19]
b .L110
.L111:
ldr x2, [x19, 8]
sxtw x0, w1
add x0, x2, x0
.L110:
ldr w0, [x0]
uxtw x0, w0
.L102:
str x0, [sp, 112]
mov w0, 1
str w0, [sp, 76]
b .L88
.L24:
adrp x0, .LC1
add x0, x0, :lo12:.LC1
str x0, [sp, 120]
b .L113
.L15:
adrp x0, .LC2
add x0, x0, :lo12:.LC2
str x0, [sp, 120]
.L113:
ldr w0, [sp, 64]
and w0, w0, 16
cmp w0, 0
beq .L114
ldr w1, [x19, 24]
ldr x0, [x19]
cmp w1, 0
blt .L115
add x1, x0, 15
and x1, x1, -8
str x1, [x19]
b .L116
.L115:
add w2, w1, 8
str w2, [x19, 24]
ldr w2, [x19, 24]
cmp w2, 0
ble .L117
add x1, x0, 15
and x1, x1, -8
str x1, [x19]
b .L116
.L117:
ldr x2, [x19, 8]
sxtw x0, w1
add x0, x2, x0
.L116:
ldr x0, [x0]
b .L119
.L114:
ldr w0, [sp, 64]
and w0, w0, 64
cmp w0, 0
beq .L120
ldr w1, [x19, 24]
ldr x0, [x19]
cmp w1, 0
blt .L121
add x1, x0, 11
and x1, x1, -8
str x1, [x19]
b .L122
.L121:
add w2, w1, 8
str w2, [x19, 24]
ldr w2, [x19, 24]
cmp w2, 0
ble .L123
add x1, x0, 11
and x1, x1, -8
str x1, [x19]
b .L122
.L123:
ldr x2, [x19, 8]
sxtw x0, w1
add x0, x2, x0
.L122:
ldr w0, [x0]
and w0, w0, 65535
and x0, x0, 65535
b .L119
.L120:
ldr w1, [x19, 24]
ldr x0, [x19]
cmp w1, 0
blt .L126
add x1, x0, 11
and x1, x1, -8
str x1, [x19]
b .L127
.L126:
add w2, w1, 8
str w2, [x19, 24]
ldr w2, [x19, 24]
cmp w2, 0
ble .L128
add x1, x0, 11
and x1, x1, -8
str x1, [x19]
b .L127
.L128:
ldr x2, [x19, 8]
sxtw x0, w1
add x0, x2, x0
.L127:
ldr w0, [x0]
uxtw x0, w0
.L119:
str x0, [sp, 112]
mov w0, 2
str w0, [sp, 76]
ldr w0, [sp, 64]
and w0, w0, 1
cmp w0, 0
beq .L170
ldr x0, [sp, 112]
cmp x0, 0
beq .L170
ldr w0, [sp, 64]
orr w0, w0, 2
str w0, [sp, 64]
b .L88
.L170:
nop
.L88:
strb wzr, [sp, 55]
.L71:
ldr w0, [sp, 72]
str w0, [sp, 80]
ldr w0, [sp, 80]
cmp w0, 0
blt .L130
ldr w0, [sp, 64]
and w0, w0, -129
str w0, [sp, 64]
.L130:
add x0, sp, 144
add x0, x0, 40
str x0, [sp, 104]
ldr x0, [sp, 112]
cmp x0, 0
bne .L131
ldr w0, [sp, 72]
cmp w0, 0
beq .L132
.L131:
ldr w0, [sp, 76]
cmp w0, 2
beq .L133
ldr w0, [sp, 76]
cmp w0, 2
bhi .L134
ldr w0, [sp, 76]
cmp w0, 0
beq .L135
ldr w0, [sp, 76]
cmp w0, 1
beq .L138
b .L134
.L171:
nop
.L135:
ldr x0, [sp, 112]
and w0, w0, 255
and w0, w0, 7
and w0, w0, 255
ldr x1, [sp, 104]
sub x1, x1, #1
str x1, [sp, 104]
add w0, w0, 48
and w1, w0, 255
ldr x0, [sp, 104]
strb w1, [x0]
ldr x0, [sp, 112]
lsr x0, x0, 3
str x0, [sp, 112]
ldr x0, [sp, 112]
cmp x0, 0
bne .L171
ldr w0, [sp, 64]
and w0, w0, 1
cmp w0, 0
beq .L172
ldr x0, [sp, 104]
ldrb w0, [x0]
cmp w0, 48
beq .L172
ldr x0, [sp, 104]
sub x0, x0, #1
str x0, [sp, 104]
ldr x0, [sp, 104]
mov w1, 48
strb w1, [x0]
b .L172
.L139:
ldr x2, [sp, 112]
mov x0, -3689348814741910324
movk x0, 0xcccd, lsl 0
umulh x0, x2, x0
lsr x1, x0, 3
mov x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 1
sub x1, x2, x0
and w0, w1, 255
ldr x1, [sp, 104]
sub x1, x1, #1
str x1, [sp, 104]
add w0, w0, 48
and w1, w0, 255
ldr x0, [sp, 104]
strb w1, [x0]
ldr x1, [sp, 112]
mov x0, -3689348814741910324
movk x0, 0xcccd, lsl 0
umulh x0, x1, x0
lsr x0, x0, 3
str x0, [sp, 112]
.L138:
ldr x0, [sp, 112]
cmp x0, 9
bhi .L139
ldr x0, [sp, 112]
and w0, w0, 255
ldr x1, [sp, 104]
sub x1, x1, #1
str x1, [sp, 104]
add w0, w0, 48
and w1, w0, 255
ldr x0, [sp, 104]
strb w1, [x0]
b .L132
.L173:
nop
.L133:
ldr x0, [sp, 112]
and x0, x0, 15
ldr x1, [sp, 120]
add x0, x1, x0
ldr x1, [sp, 104]
sub x1, x1, #1
str x1, [sp, 104]
ldrb w1, [x0]
ldr x0, [sp, 104]
strb w1, [x0]
ldr x0, [sp, 112]
lsr x0, x0, 4
str x0, [sp, 112]
ldr x0, [sp, 112]
cmp x0, 0
bne .L173
b .L132
.L134:
adrp x0, .LC3
add x0, x0, :lo12:.LC3
str x0, [sp, 104]
ldr x0, [sp, 104]
bl strlen
str w0, [sp, 88]
nop
.L140:
b .L53
.L172:
nop
.L132:
add x0, sp, 144
add x0, x0, 40
ldr x1, [sp, 104]
sub x0, x0, x1
str w0, [sp, 88]
b .L53
.L14:
ldr w0, [sp, 56]
cmp w0, 0
beq .L174
add x0, sp, 144
str x0, [sp, 104]
ldr w0, [sp, 56]
and w1, w0, 255
ldr x0, [sp, 104]
strb w1, [x0]
mov w0, 1
str w0, [sp, 88]
strb wzr, [sp, 55]
nop
.L53:
ldr w0, [sp, 80]
ldr w2, [sp, 88]
ldr w1, [sp, 88]
cmp w2, w0
csel w0, w1, w0, ge
str w0, [sp, 84]
ldrb w0, [sp, 55]
cmp w0, 0
beq .L142
ldr w0, [sp, 84]
add w0, w0, 1
str w0, [sp, 84]
b .L143
.L142:
ldr w0, [sp, 64]
and w0, w0, 2
cmp w0, 0
beq .L143
ldr w0, [sp, 84]
add w0, w0, 2
str w0, [sp, 84]
.L143:
ldr w1, [sp, 64]
mov w0, 132
and w0, w1, w0
cmp w0, 0
bne .L144
ldr w1, [sp, 68]
ldr w0, [sp, 84]
sub w0, w1, w0
str w0, [sp, 60]
ldr w0, [sp, 60]
cmp w0, 0
ble .L144
b .L145
.L146:
ldr x1, [sp, 40]
mov w0, 32
blr x1
.L145:
ldr w0, [sp, 60]
sub w1, w0, #1
str w1, [sp, 60]
cmp w0, 0
bne .L146
.L144:
ldrb w0, [sp, 55]
cmp w0, 0
beq .L147
str wzr, [sp, 60]
b .L148
.L150:
ldrsw x0, [sp, 60]
add x1, sp, 55
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 10
bne .L149
ldr x1, [sp, 40]
mov w0, 13
blr x1
.L149:
ldrsw x0, [sp, 60]
add x1, sp, 55
add x0, x1, x0
ldrb w0, [x0]
ldr x1, [sp, 40]
blr x1
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L148:
ldr w0, [sp, 60]
cmp w0, 0
ble .L150
b .L151
.L147:
ldr w0, [sp, 64]
and w0, w0, 2
cmp w0, 0
beq .L151
mov w0, 48
strb w0, [sp, 136]
ldr w0, [sp, 56]
and w0, w0, 255
strb w0, [sp, 137]
str wzr, [sp, 60]
b .L152
.L154:
ldrsw x0, [sp, 60]
add x1, sp, 136
ldrb w0, [x1, x0]
cmp w0, 10
bne .L153
ldr x1, [sp, 40]
mov w0, 13
blr x1
.L153:
ldrsw x0, [sp, 60]
add x1, sp, 136
ldrb w0, [x1, x0]
ldr x1, [sp, 40]
blr x1
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L152:
ldr w0, [sp, 60]
cmp w0, 1
ble .L154
.L151:
ldr w1, [sp, 64]
mov w0, 132
and w0, w1, w0
cmp w0, 128
bne .L155
ldr w1, [sp, 68]
ldr w0, [sp, 84]
sub w0, w1, w0
str w0, [sp, 60]
ldr w0, [sp, 60]
cmp w0, 0
ble .L155
b .L156
.L157:
ldr x1, [sp, 40]
mov w0, 48
blr x1
.L156:
ldr w0, [sp, 60]
sub w1, w0, #1
str w1, [sp, 60]
cmp w0, 0
bne .L157
.L155:
ldr w1, [sp, 80]
ldr w0, [sp, 88]
sub w0, w1, w0
str w0, [sp, 60]
ldr w0, [sp, 60]
cmp w0, 0
ble .L158
b .L159
.L160:
ldr x1, [sp, 40]
mov w0, 48
blr x1
.L159:
ldr w0, [sp, 60]
sub w1, w0, #1
str w1, [sp, 60]
cmp w0, 0
bne .L160
.L158:
str wzr, [sp, 60]
b .L161
.L163:
ldrsw x0, [sp, 60]
ldr x1, [sp, 104]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 10
bne .L162
ldr x1, [sp, 40]
mov w0, 13
blr x1
.L162:
ldrsw x0, [sp, 60]
ldr x1, [sp, 104]
add x0, x1, x0
ldrb w0, [x0]
ldr x1, [sp, 40]
blr x1
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L161:
ldr w1, [sp, 60]
ldr w0, [sp, 88]
cmp w1, w0
blt .L163
ldr w0, [sp, 64]
and w0, w0, 4
cmp w0, 0
beq .L167
ldr w1, [sp, 68]
ldr w0, [sp, 84]
sub w0, w1, w0
str w0, [sp, 60]
ldr w0, [sp, 60]
cmp w0, 0
ble .L167
b .L165
.L166:
ldr x1, [sp, 40]
mov w0, 32
blr x1
.L165:
ldr w0, [sp, 60]
sub w1, w0, #1
str w1, [sp, 60]
cmp w0, 0
bne .L166
b .L167
.L169:
nop
b .L11
.L174:
nop
.L11:
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 184]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L168
bl __stack_chk_fail
.L168:
ldr x19, [sp, 16]
ldp x29, x30, [sp], 192
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size __vprintf, .-__vprintf
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global CLSID_FreeThreadedDOMDocument30
.section .rodata
.align 3
.type CLSID_FreeThreadedDOMDocument30, %object
.size CLSID_FreeThreadedDOMDocument30, 24
CLSID_FreeThreadedDOMDocument30:
.xword 4110913331
.hword -15023
.hword 4563
.string "\211\271"
.string ""
.ascii "\370\037\342!"
.zero 4
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global GateTiles
.section .rodata
.align 2
.type GateTiles, %object
.size GateTiles, 12288
GateTiles:
.hword 7168
.hword 3084
.hword 3084
.hword 3084
.hword 7168
.hword 5654
.hword 5654
.hword 5654
.hword 5376
.hword 6165
.hword 6168
.hword 5400
.hword 1280
.hword 2313
.hword 3084
.hword 2313
.hword 0
.hword 3081
.hword 2316
.hword 2316
.hword 0
.hword 5132
.hword 3600
.hword 4108
.hword 0
.hword 5132
.hword 5134
.hword 4116
.hword 0
.hword 3081
.hword 5652
.hword 3606
.hword 3086
.hword 2313
.hword 3081
.hword 3086
.hword 5654
.hword 5397
.hword 5653
.hword 5654
.hword 6168
.hword 6168
.hword 5397
.hword 5397
.hword 2313
.hword 2313
.hword 2313
.hword 2313
.hword 2313
.hword 3598
.hword 3598
.hword 3084
.hword 3092
.hword 5648
.hword 3604
.hword 5132
.hword 4112
.hword 5136
.hword 4108
.hword 5653
.hword 3600
.hword 4116
.hword 5648
.hword 5654
.hword 3084
.hword 3084
.hword 3084
.hword 3084
.hword 5654
.hword 5654
.hword 5654
.hword 5654
.hword 5397
.hword 5397
.hword 5397
.hword 6168
.hword 2313
.hword 2313
.hword 2313
.hword 2313
.hword 3598
.hword 3086
.hword 3081
.hword 3598
.hword 5141
.hword 3084
.hword 5396
.hword 5397
.hword 3606
.hword 5648
.hword 5653
.hword 5654
.hword 3606
.hword 4116
.hword 5136
.hword 5654
.hword 3086
.hword 2313
.hword 3081
.hword 3086
.hword 5654
.hword 5398
.hword 5653
.hword 5654
.hword 6168
.hword 6168
.hword 6168
.hword 5400
.hword 2313
.hword 2313
.hword 2313
.hword 2313
.hword 3598
.hword 3598
.hword 3598
.hword 3598
.hword 5397
.hword 5397
.hword 5397
.hword 5397
.hword 5654
.hword 5654
.hword 5654
.hword 5654
.hword 5654
.hword 5654
.hword 5140
.hword 3600
.hword 3084
.hword 3084
.hword 3084
.hword 3084
.hword 5654
.hword 5654
.hword 5654
.hword 5654
.hword 5397
.hword 5397
.hword 6168
.hword 6168
.hword 2313
.hword 2313
.hword 3081
.hword 3086
.hword 3598
.hword 3598
.hword 3598
.hword 3598
.hword 5397
.hword 5397
.hword 5397
.hword 5397
.hword 5654
.hword 5654
.hword 5654
.hword 5654
.hword 3598
.hword 4110
.hword 5136
.hword 5653
.hword 3084
.hword 3084
.hword 3084
.hword 3084
.hword 5654
.hword 5654
.hword 5654
.hword 5654
.hword 5400
.hword 5397
.hword 6165
.hword 6168
.hword 2313
.hword 2313
.hword 2313
.hword 2313
.hword 3598
.hword 3598
.hword 2316
.hword 3596
.hword 5397
.hword 5397
.hword 5141
.hword 3086
.hword 5654
.hword 5654
.hword 5142
.hword 4118
.hword 5654
.hword 5654
.hword 3604
.hword 5136
.hword 3084
.hword 3084
.hword 3084
.hword 3086
.hword 5654
.hword 5654
.hword 5654
.hword 5654
.hword 6168
.hword 6168
.hword 5397
.hword 5397
.hword 2313
.hword 2313
.hword 2313
.hword 2313
.hword 3598
.hword 3084
.hword 3598
.hword 3598
.hword 5396
.hword 3604
.hword 5134
.hword 4118
.hword 5646
.hword 5398
.hword 3088
.hword 4116
.hword 5392
.hword 5654
.hword 4118
.hword 5136
.hword 2313
.hword 2313
.hword 3084
.hword 14
.hword 5398
.hword 5396
.hword 5654
.hword 22
.hword 6168
.hword 6168
.hword 6168
.hword 24
.hword 3081
.hword 3084
.hword 2313
.hword 5
.hword 2313
.hword 3081
.hword 2316
.hword 5
.hword 5129
.hword 3088
.hword 2320
.hword 0
.hword 4112
.hword 5136
.hword 3092
.hword 0
.hword 4110
.hword 5646
.hword 20
.hword 0
.hword 0
.hword 0
.hword 5132
.hword 5142
.hword 0
.hword 0
.hword 3072
.hword 4118
.hword 0
.hword 0
.hword 2304
.hword 3600
.hword 0
.hword 0
.hword 0
.hword 5129
.hword 0
.hword 0
.hword 0
.hword 4096
.hword 0
.hword 0
.hword 0
.hword 2304
.hword 0
.hword 0
.hword 0
.hword 4105
.hword 0
.hword 0
.hword 0
.hword 5129
.hword 5132
.hword 3605
.hword 5653
.hword 5398
.hword 5392
.hword 3598
.hword 5392
.hword 3600
.hword 5142
.hword 5390
.hword 2320
.hword 5132
.hword 5398
.hword 5136
.hword 3606
.hword 5140
.hword 5140
.hword 5654
.hword 3604
.hword 4117
.hword 3598
.hword 5396
.hword 5134
.hword 5142
.hword 5142
.hword 3596
.hword 5648
.hword 5654
.hword 3606
.hword 5132
.hword 5654
.hword 5654
.hword 2324
.hword 5140
.hword 5136
.hword 5654
.hword 1294
.hword 4105
.hword 5648
.hword 4117
.hword 3092
.hword 4101
.hword 4118
.hword 5134
.hword 4112
.hword 5136
.hword 4368
.hword 6424
.hword 4112
.hword 3604
.hword 6676
.hword 5145
.hword 5136
.hword 5390
.hword 6426
.hword 6168
.hword 3605
.hword 6680
.hword 6165
.hword 3608
.hword 5646
.hword 6172
.hword 6168
.hword 1033
.hword 5141
.hword 3600
.hword 4110
.hword 5136
.hword 4110
.hword 6164
.hword 6169
.hword 6168
.hword 6681
.hword 6169
.hword 6168
.hword 6170
.hword 6682
.hword 6170
.hword 6170
.hword 6168
.hword 6426
.hword 4117
.hword 1801
.hword 1028
.hword 2324
.hword 1028
.hword 1542
.hword 1542
.hword 1540
.hword 1542
.hword 2827
.hword 1542
.hword 1542
.hword 1547
.hword 2827
.hword 1547
.hword 5140
.hword 5140
.hword 3600
.hword 4110
.hword 6424
.hword 6426
.hword 6426
.hword 6169
.hword 6165
.hword 5400
.hword 5146
.hword 6424
.hword 6168
.hword 6168
.hword 6168
.hword 6426
.hword 1028
.hword 1028
.hword 1796
.hword 4364
.hword 1030
.hword 1542
.hword 1542
.hword 1030
.hword 1030
.hword 1542
.hword 2822
.hword 1544
.hword 1030
.hword 1542
.hword 2827
.hword 2822
.hword 5136
.hword 5654
.hword 4116
.hword 5140
.hword 3604
.hword 5134
.hword 4118
.hword 2320
.hword 6682
.hword 4117
.hword 5134
.hword 1296
.hword 6680
.hword 6426
.hword 4117
.hword 4112
.hword 6680
.hword 5400
.hword 6426
.hword 4112
.hword 3591
.hword 6168
.hword 6680
.hword 4122
.hword 1030
.hword 5127
.hword 6170
.hword 6680
.hword 1542
.hword 1030
.hword 6416
.hword 6680
.hword 4108
.hword 5653
.hword 5398
.hword 5390
.hword 3077
.hword 3598
.hword 4117
.hword 3598
.hword 5132
.hword 3092
.hword 4105
.hword 3605
.hword 4112
.hword 5140
.hword 5646
.hword 3604
.hword 4116
.hword 5392
.hword 5136
.hword 5654
.hword 4112
.hword 5652
.hword 3092
.hword 5141
.hword 4116
.hword 5654
.hword 5142
.hword 3086
.hword 4124
.hword 5648
.hword 5654
.hword 3604
.hword 3092
.hword 4116
.hword 9
.hword 0
.hword 4117
.hword 3086
.hword 0
.hword 0
.hword 5652
.hword 2320
.hword 0
.hword 0
.hword 5653
.hword 2325
.hword 0
.hword 0
.hword 5140
.hword 3093
.hword 0
.hword 0
.hword 3598
.hword 3086
.hword 0
.hword 0
.hword 5652
.hword 2324
.hword 0
.hword 0
.hword 5644
.hword 2324
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 5120
.hword 0
.hword 0
.hword 0
.hword 4096
.hword 0
.hword 0
.hword 0
.hword 2304
.hword 0
.hword 0
.hword 0
.hword 2304
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 3604
.hword 5140
.hword 5648
.hword 4118
.hword 4116
.hword 4112
.hword 5390
.hword 4116
.hword 2313
.hword 5140
.hword 5648
.hword 6160
.hword 1294
.hword 3589
.hword 5141
.hword 7184
.hword 3088
.hword 5388
.hword 4118
.hword 7189
.hword 3596
.hword 5654
.hword 4117
.hword 6682
.hword 5129
.hword 5654
.hword 4116
.hword 6172
.hword 5641
.hword 5654
.hword 5392
.hword 5404
.hword 7188
.hword 5401
.hword 1817
.hword 1542
.hword 6684
.hword 6170
.hword 1548
.hword 1542
.hword 6428
.hword 4378
.hword 1540
.hword 3846
.hword 5402
.hword 1813
.hword 1542
.hword 3853
.hword 6680
.hword 1041
.hword 2822
.hword 2827
.hword 6166
.hword 1543
.hword 2829
.hword 4621
.hword 4120
.hword 2052
.hword 1549
.hword 4623
.hword 1816
.hword 2822
.hword 2831
.hword 3341
.hword 3334
.hword 3346
.hword 4619
.hword 1551
.hword 3846
.hword 2834
.hword 4621
.hword 1551
.hword 3339
.hword 2829
.hword 3339
.hword 1549
.hword 2829
.hword 2822
.hword 1547
.hword 1546
.hword 2827
.hword 2827
.hword 2827
.hword 1547
.hword 3339
.hword 3346
.hword 4619
.hword 2831
.hword 3339
.hword 2834
.hword 4621
.hword 2831
.hword 3339
.hword 2829
.hword 3341
.hword 1549
.hword 1030
.hword 2822
.hword 4626
.hword 3846
.hword 1030
.hword 3334
.hword 3855
.hword 3851
.hword 1030
.hword 2822
.hword 3853
.hword 3338
.hword 1030
.hword 1542
.hword 2822
.hword 2829
.hword 1030
.hword 1542
.hword 2827
.hword 2827
.hword 1030
.hword 3334
.hword 3858
.hword 3846
.hword 1030
.hword 3334
.hword 3855
.hword 3851
.hword 1030
.hword 2822
.hword 3853
.hword 3339
.hword 1554
.hword 1542
.hword 4356
.hword 5401
.hword 2834
.hword 1547
.hword 1030
.hword 6676
.hword 2831
.hword 3341
.hword 1542
.hword 6151
.hword 3338
.hword 3855
.hword 1549
.hword 3078
.hword 2827
.hword 2827
.hword 2827
.hword 1030
.hword 1554
.hword 4623
.hword 2827
.hword 1547
.hword 2834
.hword 4621
.hword 2829
.hword 1549
.hword 2831
.hword 3853
.hword 3339
.hword 2829
.hword 6682
.hword 5136
.hword 4118
.hword 5140
.hword 7194
.hword 4120
.hword 3605
.hword 4112
.hword 6680
.hword 5148
.hword 4116
.hword 5136
.hword 5400
.hword 6428
.hword 5392
.hword 2318
.hword 6677
.hword 7194
.hword 5136
.hword 3606
.hword 6158
.hword 7192
.hword 4120
.hword 5654
.hword 6151
.hword 6677
.hword 3610
.hword 5654
.hword 4102
.hword 6165
.hword 4124
.hword 5653
.hword 5134
.hword 20
.hword 0
.hword 0
.hword 4112
.hword 20
.hword 0
.hword 0
.hword 2313
.hword 9
.hword 0
.hword 0
.hword 1285
.hword 0
.hword 0
.hword 0
.hword 3081
.hword 0
.hword 0
.hword 0
.hword 3600
.hword 0
.hword 0
.hword 0
.hword 3092
.hword 0
.hword 0
.hword 0
.hword 3094
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 4101
.hword 5654
.hword 6160
.hword 6684
.hword 1280
.hword 5134
.hword 6670
.hword 6426
.hword 3593
.hword 5136
.hword 7184
.hword 5401
.hword 5641
.hword 5398
.hword 7184
.hword 6169
.hword 5129
.hword 5142
.hword 7188
.hword 6168
.hword 3584
.hword 5142
.hword 7188
.hword 6680
.hword 3072
.hword 5142
.hword 7188
.hword 6677
.hword 2304
.hword 5141
.hword 7188
.hword 6680
.hword 1045
.hword 3334
.hword 3343
.hword 1547
.hword 1552
.hword 2822
.hword 2827
.hword 2827
.hword 1550
.hword 3846
.hword 2834
.hword 4621
.hword 1543
.hword 3846
.hword 1554
.hword 4623
.hword 1543
.hword 3846
.hword 2829
.hword 3855
.hword 1543
.hword 2827
.hword 2826
.hword 2571
.hword 2055
.hword 2829
.hword 2826
.hword 2571
.hword 1543
.hword 3846
.hword 2834
.hword 4621
.hword 2827
.hword 2822
.hword 1547
.hword 2826
.hword 2827
.hword 2827
.hword 2827
.hword 1547
.hword 3339
.hword 3346
.hword 4619
.hword 2831
.hword 3334
.hword 2834
.hword 4621
.hword 2831
.hword 3339
.hword 2831
.hword 3853
.hword 1549
.hword 2827
.hword 2826
.hword 2571
.hword 1546
.hword 2827
.hword 2826
.hword 2571
.hword 2827
.hword 3339
.hword 3346
.hword 4619
.hword 2831
.hword 1030
.hword 2822
.hword 2566
.hword 2827
.hword 1030
.hword 2822
.hword 2827
.hword 2827
.hword 1030
.hword 3334
.hword 3858
.hword 3846
.hword 1030
.hword 3334
.hword 3855
.hword 3851
.hword 1030
.hword 2822
.hword 3853
.hword 3338
.hword 1030
.hword 1542
.hword 2566
.hword 2827
.hword 1030
.hword 2822
.hword 2571
.hword 2827
.hword 1030
.hword 3334
.hword 3858
.hword 3846
.hword 2822
.hword 1547
.hword 3851
.hword 2831
.hword 2826
.hword 2571
.hword 2827
.hword 1547
.hword 2578
.hword 4623
.hword 3338
.hword 2834
.hword 2834
.hword 4621
.hword 3341
.hword 3346
.hword 2831
.hword 3853
.hword 3339
.hword 3343
.hword 2826
.hword 2571
.hword 2827
.hword 2826
.hword 2826
.hword 2571
.hword 2827
.hword 2826
.hword 1554
.hword 4623
.hword 3339
.hword 2834
.hword 1798
.hword 6680
.hword 5148
.hword 5652
.hword 1798
.hword 5400
.hword 5404
.hword 4112
.hword 1030
.hword 5396
.hword 6172
.hword 4112
.hword 1542
.hword 6161
.hword 6684
.hword 4112
.hword 1542
.hword 5649
.hword 7194
.hword 4112
.hword 1547
.hword 6673
.hword 7193
.hword 5136
.hword 1547
.hword 6161
.hword 7189
.hword 5136
.hword 1542
.hword 6673
.hword 7192
.hword 4112
.hword 1296
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 9
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 2304
.hword 5141
.hword 7188
.hword 6682
.hword 2304
.hword 5141
.hword 7188
.hword 6168
.hword 1280
.hword 5140
.hword 7188
.hword 6420
.hword 0
.hword 5136
.hword 7188
.hword 6680
.hword 0
.hword 5132
.hword 7188
.hword 6681
.hword 0
.hword 4101
.hword 7188
.hword 6425
.hword 0
.hword 3589
.hword 7188
.hword 6168
.hword 0
.hword 1280
.hword 7188
.hword 6424
.hword 2055
.hword 3846
.hword 1554
.hword 4623
.hword 2055
.hword 3846
.hword 2831
.hword 3855
.hword 2055
.hword 2827
.hword 2822
.hword 1547
.hword 2055
.hword 2829
.hword 2826
.hword 2571
.hword 1543
.hword 3846
.hword 2578
.hword 4621
.hword 1543
.hword 3846
.hword 1554
.hword 4623
.hword 1543
.hword 3846
.hword 2831
.hword 3855
.hword 1543
.hword 2827
.hword 2826
.hword 2571
.hword 3338
.hword 2834
.hword 4621
.hword 2831
.hword 3339
.hword 2831
.hword 3853
.hword 1549
.hword 2827
.hword 2826
.hword 2571
.hword 1546
.hword 2827
.hword 2826
.hword 2571
.hword 2827
.hword 3339
.hword 3346
.hword 4619
.hword 2831
.hword 3334
.hword 2834
.hword 4621
.hword 2831
.hword 3339
.hword 2831
.hword 3853
.hword 1551
.hword 2827
.hword 2826
.hword 2827
.hword 1546
.hword 1030
.hword 3334
.hword 3855
.hword 3851
.hword 1030
.hword 2822
.hword 3855
.hword 3339
.hword 1030
.hword 1542
.hword 2822
.hword 2827
.hword 1030
.hword 2822
.hword 2826
.hword 2827
.hword 1030
.hword 3334
.hword 3858
.hword 3846
.hword 1030
.hword 3334
.hword 3855
.hword 3846
.hword 1030
.hword 2822
.hword 3855
.hword 3338
.hword 1030
.hword 1542
.hword 2826
.hword 2827
.hword 2834
.hword 4621
.hword 3339
.hword 3346
.hword 2831
.hword 3853
.hword 3339
.hword 3343
.hword 2827
.hword 2827
.hword 2827
.hword 2827
.hword 2826
.hword 2571
.hword 2827
.hword 2826
.hword 1554
.hword 4623
.hword 3338
.hword 2834
.hword 2834
.hword 4621
.hword 3339
.hword 3346
.hword 2831
.hword 3853
.hword 3339
.hword 3343
.hword 2827
.hword 2827
.hword 2827
.hword 2827
.hword 1542
.hword 6673
.hword 7194
.hword 4112
.hword 1542
.hword 6417
.hword 7192
.hword 4112
.hword 1547
.hword 6417
.hword 7192
.hword 4112
.hword 1547
.hword 6673
.hword 7194
.hword 4112
.hword 1542
.hword 6161
.hword 7192
.hword 4112
.hword 1542
.hword 6673
.hword 7192
.hword 5136
.hword 1542
.hword 6673
.hword 7194
.hword 5136
.hword 1542
.hword 6417
.hword 7189
.hword 4112
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 9
.hword 0
.hword 0
.hword 0
.hword 9
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 7188
.hword 6426
.hword 0
.hword 0
.hword 7188
.hword 6421
.hword 0
.hword 0
.hword 7188
.hword 6165
.hword 0
.hword 0
.hword 7188
.hword 6424
.hword 0
.hword 0
.hword 7188
.hword 6424
.hword 0
.hword 0
.hword 7188
.hword 6169
.hword 0
.hword 1280
.hword 7188
.hword 6420
.hword 0
.hword 4105
.hword 7188
.hword 6422
.hword 1543
.hword 2827
.hword 2826
.hword 1547
.hword 1543
.hword 3846
.hword 2834
.hword 4621
.hword 1543
.hword 3846
.hword 1554
.hword 4623
.hword 1543
.hword 3846
.hword 2831
.hword 3855
.hword 1543
.hword 2827
.hword 2827
.hword 2571
.hword 1543
.hword 2827
.hword 2822
.hword 1547
.hword 1543
.hword 3846
.hword 2834
.hword 4621
.hword 1543
.hword 3846
.hword 1554
.hword 4623
.hword 2827
.hword 2822
.hword 1547
.hword 2827
.hword 3339
.hword 3346
.hword 4619
.hword 2831
.hword 3334
.hword 2834
.hword 4621
.hword 2831
.hword 3339
.hword 3343
.hword 3853
.hword 1551
.hword 2827
.hword 2826
.hword 2827
.hword 1546
.hword 2827
.hword 2822
.hword 1547
.hword 2827
.hword 2827
.hword 3346
.hword 4619
.hword 2831
.hword 3334
.hword 2834
.hword 4621
.hword 2831
.hword 1030
.hword 2822
.hword 2570
.hword 2571
.hword 1030
.hword 3334
.hword 3858
.hword 3846
.hword 1030
.hword 3334
.hword 3855
.hword 3846
.hword 1030
.hword 2822
.hword 3855
.hword 3339
.hword 1030
.hword 1542
.hword 2827
.hword 2827
.hword 1030
.hword 2822
.hword 2570
.hword 2827
.hword 1030
.hword 2822
.hword 3855
.hword 3846
.hword 1030
.hword 3334
.hword 3858
.hword 3846
.hword 2826
.hword 1547
.hword 2827
.hword 2822
.hword 1554
.hword 4623
.hword 3338
.hword 2834
.hword 2834
.hword 4621
.hword 3339
.hword 3346
.hword 2831
.hword 3853
.hword 3341
.hword 3343
.hword 2827
.hword 2827
.hword 2827
.hword 2827
.hword 2822
.hword 1547
.hword 2827
.hword 2822
.hword 1554
.hword 4623
.hword 3339
.hword 2834
.hword 2834
.hword 4621
.hword 3339
.hword 3346
.hword 1542
.hword 6417
.hword 7192
.hword 4112
.hword 1542
.hword 6161
.hword 7194
.hword 3084
.hword 1542
.hword 6673
.hword 7194
.hword 9
.hword 1542
.hword 6161
.hword 7192
.hword 9
.hword 1542
.hword 6417
.hword 7194
.hword 9
.hword 1546
.hword 6673
.hword 7194
.hword 12
.hword 1542
.hword 6673
.hword 7194
.hword 12
.hword 1542
.hword 6417
.hword 7192
.hword 2318
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 12
.hword 0
.hword 0
.hword 0
.hword 2320
.hword 0
.hword 0
.hword 0
.hword 2324
.hword 0
.hword 0
.hword 3584
.hword 3606
.hword 0
.hword 5392
.hword 7192
.hword 6681
.hword 3072
.hword 5397
.hword 7192
.hword 6425
.hword 4105
.hword 5398
.hword 7192
.hword 6169
.hword 5385
.hword 5398
.hword 7192
.hword 6421
.hword 5641
.hword 5398
.hword 7192
.hword 6425
.hword 5646
.hword 5398
.hword 7192
.hword 6424
.hword 5648
.hword 5398
.hword 7192
.hword 6424
.hword 5648
.hword 5398
.hword 7192
.hword 6164
.hword 1543
.hword 3846
.hword 2575
.hword 3855
.hword 1543
.hword 2827
.hword 2827
.hword 2827
.hword 1543
.hword 2827
.hword 2822
.hword 1547
.hword 1543
.hword 3334
.hword 2834
.hword 4621
.hword 1543
.hword 3846
.hword 1554
.hword 4623
.hword 1543
.hword 3846
.hword 2575
.hword 3855
.hword 2055
.hword 2827
.hword 2827
.hword 2827
.hword 2055
.hword 2829
.hword 2822
.hword 1547
.hword 3851
.hword 3343
.hword 3853
.hword 1551
.hword 2827
.hword 2827
.hword 2827
.hword 1542
.hword 2827
.hword 2822
.hword 1547
.hword 2827
.hword 2827
.hword 3346
.hword 4619
.hword 2831
.hword 3334
.hword 2834
.hword 4621
.hword 2831
.hword 3851
.hword 3343
.hword 3853
.hword 1551
.hword 2827
.hword 2827
.hword 2827
.hword 1547
.hword 2827
.hword 2822
.hword 1547
.hword 2827
.hword 1030
.hword 2822
.hword 3855
.hword 3339
.hword 1030
.hword 2566
.hword 2826
.hword 2827
.hword 1030
.hword 2822
.hword 1542
.hword 2571
.hword 1030
.hword 2822
.hword 3855
.hword 3846
.hword 1030
.hword 3334
.hword 3858
.hword 3846
.hword 1030
.hword 2822
.hword 3855
.hword 3339
.hword 1030
.hword 1542
.hword 2827
.hword 2827
.hword 1030
.hword 2822
.hword 1542
.hword 2573
.hword 2831
.hword 3853
.hword 3341
.hword 3343
.hword 2827
.hword 2827
.hword 2827
.hword 2827
.hword 2822
.hword 1547
.hword 2827
.hword 2822
.hword 1551
.hword 3855
.hword 3338
.hword 2834
.hword 2834
.hword 4621
.hword 3339
.hword 3346
.hword 2831
.hword 3853
.hword 3341
.hword 3343
.hword 2827
.hword 2827
.hword 2827
.hword 2827
.hword 2822
.hword 1547
.hword 2827
.hword 2822
.hword 1542
.hword 6161
.hword 7192
.hword 4116
.hword 1542
.hword 6417
.hword 7194
.hword 5396
.hword 1547
.hword 6417
.hword 7192
.hword 5652
.hword 1542
.hword 6417
.hword 7193
.hword 5140
.hword 1542
.hword 6161
.hword 7193
.hword 3598
.hword 1542
.hword 6161
.hword 7193
.hword 3598
.hword 1547
.hword 6673
.hword 7194
.hword 5396
.hword 1547
.hword 6673
.hword 7192
.hword 5396
.hword 0
.hword 0
.hword 0
.hword 0
.hword 12
.hword 0
.hword 0
.hword 0
.hword 2324
.hword 0
.hword 0
.hword 0
.hword 2325
.hword 0
.hword 0
.hword 0
.hword 2325
.hword 0
.hword 0
.hword 0
.hword 3088
.hword 0
.hword 0
.hword 0
.hword 3604
.hword 0
.hword 0
.hword 0
.hword 5397
.hword 9
.hword 0
.hword 0
.hword 0
.hword 0
.hword 5129
.hword 4118
.hword 0
.hword 0
.hword 5646
.hword 3606
.hword 0
.hword 0
.hword 5652
.hword 5141
.hword 0
.hword 0
.hword 5652
.hword 5654
.hword 0
.hword 2304
.hword 4116
.hword 5652
.hword 0
.hword 5129
.hword 4112
.hword 5132
.hword 3584
.hword 5653
.hword 5134
.hword 4117
.hword 3072
.hword 3086
.hword 2313
.hword 2318
.hword 5390
.hword 5398
.hword 7192
.hword 6680
.hword 5392
.hword 5398
.hword 7192
.hword 6421
.hword 4118
.hword 3086
.hword 7192
.hword 6165
.hword 3092
.hword 3604
.hword 7192
.hword 6681
.hword 4117
.hword 5136
.hword 7192
.hword 6424
.hword 5142
.hword 3084
.hword 7192
.hword 6424
.hword 5654
.hword 4116
.hword 7192
.hword 6170
.hword 3084
.hword 1289
.hword 7188
.hword 5146
.hword 1543
.hword 3334
.hword 2831
.hword 3853
.hword 2055
.hword 3846
.hword 1554
.hword 4623
.hword 2055
.hword 3846
.hword 2575
.hword 3855
.hword 2055
.hword 2827
.hword 2827
.hword 2827
.hword 2055
.hword 2827
.hword 2822
.hword 1547
.hword 2055
.hword 1542
.hword 1542
.hword 1542
.hword 1543
.hword 1542
.hword 1542
.hword 1542
.hword 1285
.hword 0
.hword 0
.hword 0
.hword 2827
.hword 3346
.hword 3851
.hword 2831
.hword 3334
.hword 2834
.hword 4621
.hword 2831
.hword 3851
.hword 3343
.hword 3853
.hword 1551
.hword 2827
.hword 2827
.hword 2827
.hword 1547
.hword 2827
.hword 2822
.hword 1547
.hword 1547
.hword 1542
.hword 1542
.hword 1542
.hword 1542
.hword 1542
.hword 1542
.hword 1542
.hword 1542
.hword 0
.hword 0
.hword 0
.hword 0
.hword 1030
.hword 2822
.hword 3855
.hword 3846
.hword 1030
.hword 3334
.hword 3858
.hword 3846
.hword 1030
.hword 3334
.hword 3855
.hword 3339
.hword 1030
.hword 1542
.hword 2827
.hword 2827
.hword 1030
.hword 1542
.hword 1542
.hword 1547
.hword 1030
.hword 1542
.hword 1542
.hword 1542
.hword 1030
.hword 1542
.hword 1542
.hword 1542
.hword 0
.hword 0
.hword 0
.hword 0
.hword 1551
.hword 3855
.hword 3338
.hword 2831
.hword 2834
.hword 4621
.hword 3339
.hword 3346
.hword 2834
.hword 3853
.hword 3341
.hword 3343
.hword 2827
.hword 2827
.hword 2827
.hword 2827
.hword 2826
.hword 1547
.hword 2827
.hword 2822
.hword 1542
.hword 1542
.hword 1542
.hword 1542
.hword 1542
.hword 1542
.hword 1542
.hword 1542
.hword 0
.hword 0
.hword 0
.hword 0
.hword 1542
.hword 6161
.hword 7194
.hword 5652
.hword 1542
.hword 6417
.hword 7194
.hword 5652
.hword 1542
.hword 6673
.hword 7194
.hword 5652
.hword 1547
.hword 6673
.hword 7192
.hword 5652
.hword 1547
.hword 6417
.hword 7192
.hword 5652
.hword 1542
.hword 6417
.hword 7193
.hword 5652
.hword 1542
.hword 6673
.hword 7194
.hword 5392
.hword 1280
.hword 6153
.hword 7194
.hword 2313
.hword 5654
.hword 2320
.hword 0
.hword 0
.hword 3604
.hword 1292
.hword 0
.hword 0
.hword 4110
.hword 1296
.hword 0
.hword 0
.hword 4116
.hword 3604
.hword 5
.hword 0
.hword 3606
.hword 5134
.hword 16
.hword 0
.hword 5398
.hword 3604
.hword 12
.hword 0
.hword 5654
.hword 3604
.hword 20
.hword 0
.hword 3596
.hword 3084
.hword 12
.hword 0
.hword 3584
.hword 3084
.hword 3084
.hword 3084
.hword 7168
.hword 5654
.hword 5654
.hword 5654
.hword 7168
.hword 6165
.hword 6168
.hword 5400
.hword 1280
.hword 2313
.hword 3084
.hword 2313
.hword 0
.hword 3081
.hword 2316
.hword 2316
.hword 0
.hword 5132
.hword 3600
.hword 4108
.hword 0
.hword 5132
.hword 5134
.hword 4116
.hword 0
.hword 3081
.hword 5652
.hword 3606
.hword 3086
.hword 2313
.hword 3081
.hword 3086
.hword 5654
.hword 5397
.hword 5653
.hword 5654
.hword 6168
.hword 6168
.hword 5397
.hword 5397
.hword 2313
.hword 2313
.hword 2313
.hword 2313
.hword 2313
.hword 3598
.hword 3598
.hword 3084
.hword 3092
.hword 5648
.hword 3604
.hword 5132
.hword 4112
.hword 5136
.hword 4108
.hword 5653
.hword 3600
.hword 4116
.hword 5648
.hword 5654
.hword 3084
.hword 3084
.hword 3084
.hword 3084
.hword 5654
.hword 5654
.hword 5654
.hword 5654
.hword 5397
.hword 5397
.hword 5397
.hword 6168
.hword 2313
.hword 2313
.hword 2313
.hword 2313
.hword 3598
.hword 3086
.hword 3081
.hword 3598
.hword 5141
.hword 3084
.hword 5396
.hword 5397
.hword 3606
.hword 5648
.hword 5653
.hword 5654
.hword 3606
.hword 4116
.hword 5136
.hword 5654
.hword 3086
.hword 2313
.hword 3081
.hword 3086
.hword 5654
.hword 5398
.hword 5653
.hword 5654
.hword 6168
.hword 6168
.hword 6168
.hword 5400
.hword 2313
.hword 2313
.hword 2313
.hword 2313
.hword 3598
.hword 3598
.hword 3598
.hword 3598
.hword 5397
.hword 5397
.hword 5397
.hword 5397
.hword 5654
.hword 5654
.hword 5654
.hword 5654
.hword 5654
.hword 5654
.hword 5140
.hword 3600
.hword 3084
.hword 3084
.hword 3084
.hword 3084
.hword 5654
.hword 5654
.hword 5654
.hword 5654
.hword 5397
.hword 5397
.hword 6168
.hword 6168
.hword 2313
.hword 2313
.hword 3081
.hword 3086
.hword 3598
.hword 3598
.hword 3598
.hword 3598
.hword 5397
.hword 5397
.hword 5397
.hword 5397
.hword 5654
.hword 5654
.hword 5654
.hword 5654
.hword 3598
.hword 4110
.hword 5136
.hword 5653
.hword 3084
.hword 3084
.hword 3084
.hword 3084
.hword 5654
.hword 5654
.hword 5654
.hword 5654
.hword 5400
.hword 5397
.hword 6165
.hword 6168
.hword 2313
.hword 2313
.hword 2313
.hword 2313
.hword 3598
.hword 3598
.hword 2316
.hword 3596
.hword 5397
.hword 5397
.hword 5141
.hword 3086
.hword 5654
.hword 5654
.hword 5142
.hword 4118
.hword 5654
.hword 5654
.hword 3604
.hword 5136
.hword 3084
.hword 3084
.hword 3084
.hword 3086
.hword 5654
.hword 5654
.hword 5654
.hword 5654
.hword 6168
.hword 6168
.hword 5397
.hword 5397
.hword 2313
.hword 2313
.hword 2313
.hword 2313
.hword 3598
.hword 3084
.hword 3598
.hword 3598
.hword 5396
.hword 3604
.hword 5134
.hword 4118
.hword 5646
.hword 5398
.hword 3088
.hword 4116
.hword 5392
.hword 5654
.hword 4118
.hword 5136
.hword 2313
.hword 2313
.hword 3084
.hword 14
.hword 5398
.hword 5396
.hword 5654
.hword 26
.hword 6168
.hword 6168
.hword 6168
.hword 28
.hword 3081
.hword 3084
.hword 2313
.hword 5
.hword 2313
.hword 3081
.hword 2316
.hword 5
.hword 5129
.hword 3088
.hword 2320
.hword 0
.hword 4112
.hword 5136
.hword 3092
.hword 0
.hword 4110
.hword 5646
.hword 20
.hword 0
.hword 0
.hword 0
.hword 5132
.hword 5142
.hword 0
.hword 0
.hword 3072
.hword 4118
.hword 0
.hword 0
.hword 2304
.hword 3600
.hword 0
.hword 0
.hword 0
.hword 5129
.hword 0
.hword 0
.hword 0
.hword 4096
.hword 0
.hword 0
.hword 0
.hword 2304
.hword 0
.hword 0
.hword 0
.hword 4105
.hword 0
.hword 0
.hword 0
.hword 5129
.hword 5132
.hword 3605
.hword 5653
.hword 5398
.hword 5392
.hword 3598
.hword 5392
.hword 3600
.hword 5142
.hword 5390
.hword 2320
.hword 5132
.hword 5398
.hword 5136
.hword 3606
.hword 5140
.hword 5140
.hword 5654
.hword 3604
.hword 4117
.hword 3598
.hword 5396
.hword 5134
.hword 5142
.hword 5142
.hword 3596
.hword 5648
.hword 5654
.hword 3606
.hword 5132
.hword 5654
.hword 5654
.hword 2324
.hword 5140
.hword 5136
.hword 5654
.hword 1294
.hword 4105
.hword 5648
.hword 4117
.hword 3092
.hword 4101
.hword 4118
.hword 5134
.hword 4112
.hword 5136
.hword 4368
.hword 6424
.hword 4112
.hword 3604
.hword 6676
.hword 5145
.hword 5136
.hword 5390
.hword 6426
.hword 6168
.hword 3605
.hword 6680
.hword 6165
.hword 3608
.hword 5646
.hword 6172
.hword 6168
.hword 1033
.hword 5141
.hword 3600
.hword 4110
.hword 5136
.hword 4110
.hword 6164
.hword 6169
.hword 6168
.hword 6681
.hword 6169
.hword 6168
.hword 6170
.hword 6682
.hword 6170
.hword 6170
.hword 6168
.hword 6426
.hword 4117
.hword 1801
.hword 1028
.hword 2324
.hword 1028
.hword 1542
.hword 1542
.hword 1540
.hword 1542
.hword 2827
.hword 1542
.hword 1542
.hword 1547
.hword 2827
.hword 1547
.hword 5140
.hword 5140
.hword 3600
.hword 4110
.hword 6424
.hword 6426
.hword 6426
.hword 6169
.hword 6165
.hword 5400
.hword 5146
.hword 6424
.hword 6168
.hword 6168
.hword 6168
.hword 6426
.hword 1028
.hword 1028
.hword 1796
.hword 4364
.hword 1030
.hword 1542
.hword 1542
.hword 1030
.hword 1030
.hword 1542
.hword 2822
.hword 1544
.hword 1030
.hword 1542
.hword 2827
.hword 2822
.hword 5136
.hword 5654
.hword 4116
.hword 5140
.hword 3604
.hword 5134
.hword 4118
.hword 2320
.hword 6682
.hword 4117
.hword 5134
.hword 1296
.hword 6680
.hword 6426
.hword 4117
.hword 4112
.hword 6680
.hword 5400
.hword 6426
.hword 4112
.hword 3591
.hword 6168
.hword 6680
.hword 4122
.hword 1030
.hword 5127
.hword 6170
.hword 6680
.hword 1542
.hword 1030
.hword 6416
.hword 6680
.hword 4108
.hword 5653
.hword 5398
.hword 5390
.hword 3077
.hword 3598
.hword 4117
.hword 3598
.hword 5132
.hword 3092
.hword 4105
.hword 3605
.hword 4112
.hword 5140
.hword 5646
.hword 3604
.hword 4116
.hword 5392
.hword 5136
.hword 5654
.hword 4112
.hword 5652
.hword 3092
.hword 5141
.hword 4116
.hword 5654
.hword 5142
.hword 3086
.hword 4124
.hword 5648
.hword 5654
.hword 3604
.hword 3092
.hword 4116
.hword 9
.hword 0
.hword 4117
.hword 3086
.hword 0
.hword 0
.hword 5652
.hword 2320
.hword 0
.hword 0
.hword 5653
.hword 2325
.hword 0
.hword 0
.hword 5140
.hword 3093
.hword 0
.hword 0
.hword 3598
.hword 3086
.hword 0
.hword 0
.hword 5652
.hword 2324
.hword 0
.hword 0
.hword 5644
.hword 2324
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 5120
.hword 0
.hword 0
.hword 0
.hword 4096
.hword 0
.hword 0
.hword 0
.hword 2304
.hword 0
.hword 0
.hword 0
.hword 2304
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 3604
.hword 5140
.hword 5648
.hword 4118
.hword 4116
.hword 4112
.hword 5390
.hword 4116
.hword 2313
.hword 5140
.hword 5648
.hword 6160
.hword 1294
.hword 3589
.hword 5141
.hword 7184
.hword 3088
.hword 5388
.hword 4118
.hword 7189
.hword 3596
.hword 5654
.hword 4117
.hword 6682
.hword 5129
.hword 5654
.hword 4116
.hword 6172
.hword 5641
.hword 5654
.hword 5392
.hword 5404
.hword 7188
.hword 5401
.hword 1817
.hword 1542
.hword 6684
.hword 6170
.hword 1548
.hword 1542
.hword 6428
.hword 4378
.hword 1540
.hword 3846
.hword 5402
.hword 1813
.hword 1542
.hword 3853
.hword 6680
.hword 1041
.hword 2822
.hword 2827
.hword 6166
.hword 1543
.hword 2829
.hword 4621
.hword 4120
.hword 2052
.hword 1549
.hword 6935
.hword 1816
.hword 2822
.hword 2831
.hword 6935
.hword 3334
.hword 3346
.hword 4619
.hword 1551
.hword 5894
.hword 3357
.hword 7443
.hword 1555
.hword 4875
.hword 3355
.hword 6927
.hword 1551
.hword 2829
.hword 2822
.hword 1547
.hword 1542
.hword 2827
.hword 2827
.hword 2827
.hword 1547
.hword 3339
.hword 3346
.hword 4619
.hword 2831
.hword 4875
.hword 3355
.hword 6931
.hword 2835
.hword 4877
.hword 3355
.hword 6927
.hword 1551
.hword 1030
.hword 2822
.hword 4626
.hword 3846
.hword 1030
.hword 3334
.hword 6939
.hword 5899
.hword 1030
.hword 1542
.hword 6935
.hword 4875
.hword 1030
.hword 1542
.hword 2566
.hword 2829
.hword 1030
.hword 1542
.hword 2827
.hword 2827
.hword 1030
.hword 3334
.hword 4626
.hword 3846
.hword 1030
.hword 3334
.hword 6939
.hword 5899
.hword 1030
.hword 2822
.hword 6935
.hword 5899
.hword 1554
.hword 1542
.hword 4356
.hword 5401
.hword 3355
.hword 1547
.hword 1030
.hword 6676
.hword 2843
.hword 3341
.hword 1542
.hword 6151
.hword 2822
.hword 3855
.hword 1549
.hword 3078
.hword 2827
.hword 2827
.hword 2827
.hword 1030
.hword 1554
.hword 4623
.hword 2827
.hword 1547
.hword 3355
.hword 6931
.hword 2831
.hword 1549
.hword 3355
.hword 6931
.hword 3341
.hword 2829
.hword 6682
.hword 5136
.hword 4118
.hword 5140
.hword 7194
.hword 4120
.hword 3605
.hword 4112
.hword 6680
.hword 5148
.hword 4116
.hword 5136
.hword 5400
.hword 6428
.hword 5392
.hword 2318
.hword 6677
.hword 7194
.hword 5136
.hword 3606
.hword 6158
.hword 7192
.hword 4120
.hword 5654
.hword 6151
.hword 6677
.hword 3610
.hword 5654
.hword 4102
.hword 6165
.hword 4124
.hword 5653
.hword 5134
.hword 20
.hword 0
.hword 0
.hword 4112
.hword 20
.hword 0
.hword 0
.hword 2313
.hword 9
.hword 0
.hword 0
.hword 1285
.hword 0
.hword 0
.hword 0
.hword 3081
.hword 0
.hword 0
.hword 0
.hword 3600
.hword 0
.hword 0
.hword 0
.hword 3092
.hword 0
.hword 0
.hword 0
.hword 3094
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 4101
.hword 5654
.hword 6160
.hword 6684
.hword 1280
.hword 5134
.hword 6670
.hword 6426
.hword 3593
.hword 5136
.hword 7184
.hword 5401
.hword 5641
.hword 5398
.hword 7184
.hword 6169
.hword 5129
.hword 5142
.hword 7188
.hword 6168
.hword 3584
.hword 5142
.hword 7188
.hword 6680
.hword 3072
.hword 5142
.hword 7188
.hword 6677
.hword 2304
.hword 5141
.hword 7188
.hword 6680
.hword 1045
.hword 3334
.hword 3343
.hword 1547
.hword 1552
.hword 2822
.hword 2827
.hword 2827
.hword 1550
.hword 3846
.hword 2834
.hword 4621
.hword 1543
.hword 5894
.hword 1563
.hword 6935
.hword 1543
.hword 6918
.hword 2843
.hword 6935
.hword 1543
.hword 2827
.hword 2822
.hword 2571
.hword 2055
.hword 2829
.hword 2826
.hword 2571
.hword 1543
.hword 3846
.hword 2834
.hword 4621
.hword 2827
.hword 2822
.hword 1547
.hword 2822
.hword 2827
.hword 2827
.hword 2827
.hword 1547
.hword 3339
.hword 3346
.hword 4619
.hword 2831
.hword 4875
.hword 3355
.hword 6931
.hword 2835
.hword 4877
.hword 3357
.hword 7443
.hword 1555
.hword 2827
.hword 2826
.hword 2571
.hword 1542
.hword 2827
.hword 2826
.hword 2571
.hword 2827
.hword 3339
.hword 3346
.hword 4619
.hword 2831
.hword 1030
.hword 2822
.hword 2822
.hword 2571
.hword 1030
.hword 2822
.hword 2827
.hword 2827
.hword 1030
.hword 3334
.hword 3858
.hword 3846
.hword 1030
.hword 3334
.hword 6935
.hword 5899
.hword 1030
.hword 2822
.hword 6935
.hword 5899
.hword 1030
.hword 2822
.hword 2822
.hword 2827
.hword 1030
.hword 2822
.hword 2571
.hword 2827
.hword 1030
.hword 3334
.hword 3858
.hword 3846
.hword 2826
.hword 2571
.hword 3851
.hword 2831
.hword 2826
.hword 2571
.hword 2827
.hword 1547
.hword 1554
.hword 4623
.hword 3339
.hword 2834
.hword 3355
.hword 6931
.hword 3853
.hword 4891
.hword 3357
.hword 7443
.hword 4877
.hword 4893
.hword 2826
.hword 2571
.hword 2827
.hword 2826
.hword 2826
.hword 2571
.hword 2827
.hword 2826
.hword 1554
.hword 4623
.hword 3338
.hword 2834
.hword 1798
.hword 6680
.hword 5148
.hword 5652
.hword 1798
.hword 5400
.hword 5404
.hword 4112
.hword 1030
.hword 5396
.hword 6172
.hword 4112
.hword 1542
.hword 6161
.hword 6684
.hword 4112
.hword 1542
.hword 5649
.hword 7194
.hword 4112
.hword 1547
.hword 6673
.hword 7193
.hword 5136
.hword 1547
.hword 6161
.hword 7189
.hword 5136
.hword 1542
.hword 6673
.hword 7192
.hword 4112
.hword 1296
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 9
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 2304
.hword 5141
.hword 7188
.hword 6682
.hword 2304
.hword 5141
.hword 7188
.hword 6168
.hword 1280
.hword 5140
.hword 7188
.hword 6420
.hword 0
.hword 5136
.hword 7188
.hword 6680
.hword 0
.hword 5132
.hword 7188
.hword 6681
.hword 0
.hword 4101
.hword 7188
.hword 6425
.hword 0
.hword 3589
.hword 7188
.hword 6168
.hword 0
.hword 1280
.hword 7188
.hword 6424
.hword 2055
.hword 5894
.hword 1563
.hword 6935
.hword 2055
.hword 6918
.hword 2843
.hword 7447
.hword 2055
.hword 2827
.hword 2826
.hword 2571
.hword 2055
.hword 2829
.hword 2826
.hword 2571
.hword 1543
.hword 3846
.hword 2834
.hword 4621
.hword 1543
.hword 5894
.hword 1563
.hword 6931
.hword 1543
.hword 6918
.hword 2843
.hword 7447
.hword 1543
.hword 2827
.hword 2826
.hword 2571
.hword 4875
.hword 3355
.hword 6931
.hword 2835
.hword 4877
.hword 3357
.hword 7443
.hword 1555
.hword 2827
.hword 2826
.hword 2827
.hword 1542
.hword 2827
.hword 2826
.hword 2571
.hword 2827
.hword 3339
.hword 3346
.hword 4619
.hword 2831
.hword 4875
.hword 3355
.hword 6931
.hword 2835
.hword 5901
.hword 3357
.hword 7443
.hword 1555
.hword 2827
.hword 2827
.hword 2827
.hword 1542
.hword 1030
.hword 3334
.hword 6935
.hword 4875
.hword 1030
.hword 2822
.hword 6939
.hword 5899
.hword 1030
.hword 1542
.hword 2822
.hword 2827
.hword 1030
.hword 2822
.hword 2826
.hword 2827
.hword 1030
.hword 3334
.hword 3858
.hword 3846
.hword 1030
.hword 3334
.hword 5911
.hword 4875
.hword 1030
.hword 2822
.hword 7451
.hword 5899
.hword 1030
.hword 1542
.hword 2827
.hword 2827
.hword 3355
.hword 6931
.hword 3853
.hword 4891
.hword 3357
.hword 7443
.hword 3853
.hword 4893
.hword 2827
.hword 2827
.hword 2827
.hword 2827
.hword 2826
.hword 2571
.hword 2827
.hword 2826
.hword 1554
.hword 4623
.hword 3339
.hword 2834
.hword 3355
.hword 6931
.hword 3853
.hword 3867
.hword 3357
.hword 7443
.hword 4877
.hword 4893
.hword 2827
.hword 2827
.hword 2827
.hword 2827
.hword 1542
.hword 6673
.hword 7194
.hword 4112
.hword 1542
.hword 6417
.hword 7192
.hword 4112
.hword 1547
.hword 6417
.hword 7192
.hword 4112
.hword 1547
.hword 6673
.hword 7194
.hword 4112
.hword 1542
.hword 6161
.hword 7192
.hword 4112
.hword 1542
.hword 6673
.hword 7192
.hword 5136
.hword 1542
.hword 6673
.hword 7194
.hword 5136
.hword 1542
.hword 6417
.hword 7189
.hword 4112
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 9
.hword 0
.hword 0
.hword 0
.hword 9
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 7188
.hword 6426
.hword 0
.hword 0
.hword 7188
.hword 6421
.hword 0
.hword 0
.hword 7188
.hword 6165
.hword 0
.hword 0
.hword 7188
.hword 6424
.hword 0
.hword 0
.hword 7188
.hword 6424
.hword 0
.hword 0
.hword 7188
.hword 6169
.hword 0
.hword 1280
.hword 7188
.hword 6420
.hword 0
.hword 4105
.hword 7188
.hword 6422
.hword 1543
.hword 2827
.hword 2826
.hword 1547
.hword 1543
.hword 3334
.hword 2834
.hword 4621
.hword 1543
.hword 5894
.hword 1563
.hword 6931
.hword 1543
.hword 6918
.hword 2845
.hword 7451
.hword 1543
.hword 2827
.hword 2827
.hword 2827
.hword 1543
.hword 2827
.hword 2822
.hword 1547
.hword 1543
.hword 3334
.hword 2834
.hword 4621
.hword 1543
.hword 5894
.hword 1559
.hword 6931
.hword 2827
.hword 2822
.hword 1547
.hword 2827
.hword 2827
.hword 3346
.hword 4619
.hword 2831
.hword 4874
.hword 3355
.hword 6927
.hword 2835
.hword 5901
.hword 3357
.hword 7443
.hword 1555
.hword 2827
.hword 2827
.hword 2827
.hword 1547
.hword 2827
.hword 2822
.hword 1547
.hword 2827
.hword 2827
.hword 3346
.hword 4619
.hword 2831
.hword 4875
.hword 3355
.hword 6927
.hword 2831
.hword 1030
.hword 2822
.hword 2570
.hword 2571
.hword 1030
.hword 3334
.hword 3858
.hword 3846
.hword 1030
.hword 3334
.hword 5911
.hword 4875
.hword 1030
.hword 2822
.hword 7451
.hword 5899
.hword 1030
.hword 1542
.hword 2826
.hword 2827
.hword 1030
.hword 2822
.hword 2570
.hword 2827
.hword 1030
.hword 2822
.hword 3858
.hword 3846
.hword 1030
.hword 3334
.hword 5911
.hword 4875
.hword 2826
.hword 1547
.hword 2827
.hword 2822
.hword 1554
.hword 4623
.hword 3338
.hword 2834
.hword 2843
.hword 6931
.hword 3853
.hword 3867
.hword 3357
.hword 7443
.hword 4877
.hword 4893
.hword 2827
.hword 2827
.hword 2827
.hword 2827
.hword 2822
.hword 1547
.hword 2827
.hword 2822
.hword 1551
.hword 4623
.hword 3338
.hword 2834
.hword 2839
.hword 6927
.hword 3853
.hword 3355
.hword 1542
.hword 6417
.hword 7192
.hword 4112
.hword 1542
.hword 6161
.hword 7194
.hword 3084
.hword 1542
.hword 6673
.hword 7194
.hword 9
.hword 1542
.hword 6161
.hword 7192
.hword 9
.hword 1542
.hword 6417
.hword 7194
.hword 9
.hword 1546
.hword 6673
.hword 7194
.hword 12
.hword 1542
.hword 6673
.hword 7194
.hword 12
.hword 1542
.hword 6417
.hword 7192
.hword 2318
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 12
.hword 0
.hword 0
.hword 0
.hword 2320
.hword 0
.hword 0
.hword 0
.hword 2324
.hword 0
.hword 0
.hword 3584
.hword 3606
.hword 0
.hword 5392
.hword 7192
.hword 6681
.hword 3072
.hword 5397
.hword 7192
.hword 6425
.hword 4105
.hword 5398
.hword 7192
.hword 6169
.hword 5385
.hword 5398
.hword 7192
.hword 6421
.hword 5641
.hword 5398
.hword 7192
.hword 6425
.hword 5646
.hword 5398
.hword 7192
.hword 6424
.hword 5648
.hword 5398
.hword 7192
.hword 6424
.hword 5648
.hword 5398
.hword 7192
.hword 6164
.hword 1543
.hword 6918
.hword 2845
.hword 7451
.hword 1543
.hword 2826
.hword 2827
.hword 3339
.hword 1543
.hword 2827
.hword 2822
.hword 1547
.hword 1543
.hword 3334
.hword 2834
.hword 4621
.hword 1543
.hword 4870
.hword 1559
.hword 5907
.hword 1543
.hword 6918
.hword 2845
.hword 7451
.hword 2055
.hword 2827
.hword 2829
.hword 3339
.hword 2055
.hword 2829
.hword 2822
.hword 1547
.hword 5901
.hword 3869
.hword 7443
.hword 1555
.hword 2827
.hword 2829
.hword 3339
.hword 1546
.hword 2827
.hword 2822
.hword 1547
.hword 2827
.hword 2827
.hword 3346
.hword 4619
.hword 2831
.hword 3851
.hword 3351
.hword 5901
.hword 2831
.hword 5901
.hword 3357
.hword 7443
.hword 1555
.hword 2827
.hword 2829
.hword 3339
.hword 1547
.hword 2827
.hword 2822
.hword 1547
.hword 2827
.hword 1030
.hword 2822
.hword 7451
.hword 5899
.hword 1030
.hword 1542
.hword 2827
.hword 2827
.hword 1030
.hword 2822
.hword 1542
.hword 2571
.hword 1030
.hword 2822
.hword 3855
.hword 3846
.hword 1030
.hword 3334
.hword 5911
.hword 4875
.hword 1030
.hword 2822
.hword 7451
.hword 5899
.hword 1030
.hword 1542
.hword 3339
.hword 3339
.hword 1030
.hword 2822
.hword 1542
.hword 2573
.hword 3357
.hword 7443
.hword 4879
.hword 4893
.hword 2829
.hword 3339
.hword 2827
.hword 2829
.hword 2822
.hword 1547
.hword 2827
.hword 2822
.hword 1551
.hword 4623
.hword 3338
.hword 2834
.hword 2839
.hword 5903
.hword 3341
.hword 3351
.hword 3357
.hword 7447
.hword 4879
.hword 4893
.hword 2829
.hword 3339
.hword 2827
.hword 2829
.hword 2822
.hword 1547
.hword 2827
.hword 2822
.hword 1542
.hword 6161
.hword 7192
.hword 4116
.hword 1542
.hword 6417
.hword 7194
.hword 5396
.hword 1547
.hword 6417
.hword 7192
.hword 5652
.hword 1542
.hword 6417
.hword 7193
.hword 5140
.hword 1542
.hword 6161
.hword 7193
.hword 3598
.hword 1542
.hword 6161
.hword 7193
.hword 3598
.hword 1547
.hword 6673
.hword 7194
.hword 5396
.hword 1547
.hword 6673
.hword 7192
.hword 5396
.hword 0
.hword 0
.hword 0
.hword 0
.hword 12
.hword 0
.hword 0
.hword 0
.hword 2324
.hword 0
.hword 0
.hword 0
.hword 2325
.hword 0
.hword 0
.hword 0
.hword 2325
.hword 0
.hword 0
.hword 0
.hword 3088
.hword 0
.hword 0
.hword 0
.hword 3604
.hword 0
.hword 0
.hword 0
.hword 5397
.hword 9
.hword 0
.hword 0
.hword 0
.hword 0
.hword 5129
.hword 4118
.hword 0
.hword 0
.hword 5646
.hword 3606
.hword 0
.hword 0
.hword 5652
.hword 5141
.hword 0
.hword 0
.hword 5652
.hword 5654
.hword 0
.hword 2304
.hword 4116
.hword 5652
.hword 0
.hword 5129
.hword 4112
.hword 5132
.hword 3584
.hword 5653
.hword 5134
.hword 4117
.hword 3072
.hword 3086
.hword 2313
.hword 2318
.hword 5390
.hword 5398
.hword 7192
.hword 6680
.hword 5392
.hword 5398
.hword 7192
.hword 6421
.hword 4118
.hword 3086
.hword 7192
.hword 6165
.hword 3092
.hword 3604
.hword 7192
.hword 6681
.hword 4117
.hword 5136
.hword 7192
.hword 6424
.hword 5142
.hword 3084
.hword 7192
.hword 6424
.hword 5654
.hword 4116
.hword 7192
.hword 6170
.hword 3084
.hword 1289
.hword 7188
.hword 5146
.hword 1543
.hword 3334
.hword 2831
.hword 4621
.hword 2055
.hword 4870
.hword 1559
.hword 5907
.hword 2055
.hword 6918
.hword 2845
.hword 7451
.hword 2055
.hword 3339
.hword 2829
.hword 3339
.hword 2055
.hword 2827
.hword 2822
.hword 1547
.hword 2055
.hword 1542
.hword 1542
.hword 1542
.hword 1543
.hword 1542
.hword 1542
.hword 1542
.hword 1285
.hword 0
.hword 0
.hword 0
.hword 2827
.hword 3346
.hword 3851
.hword 2831
.hword 3850
.hword 3351
.hword 5901
.hword 2831
.hword 5901
.hword 3357
.hword 7443
.hword 1555
.hword 2827
.hword 2829
.hword 3339
.hword 1547
.hword 2827
.hword 2822
.hword 1547
.hword 1547
.hword 1542
.hword 1542
.hword 1542
.hword 1542
.hword 1542
.hword 1542
.hword 1542
.hword 1542
.hword 0
.hword 0
.hword 0
.hword 0
.hword 1030
.hword 2822
.hword 3855
.hword 3846
.hword 1030
.hword 3334
.hword 5911
.hword 4875
.hword 1030
.hword 2822
.hword 7451
.hword 5901
.hword 1030
.hword 1542
.hword 3341
.hword 3339
.hword 1030
.hword 1542
.hword 2566
.hword 1547
.hword 1030
.hword 1542
.hword 1542
.hword 1542
.hword 1030
.hword 1542
.hword 1542
.hword 1542
.hword 0
.hword 0
.hword 0
.hword 0
.hword 1551
.hword 3855
.hword 3338
.hword 2831
.hword 2839
.hword 5903
.hword 3341
.hword 3351
.hword 3357
.hword 7447
.hword 4879
.hword 4893
.hword 2829
.hword 3341
.hword 2827
.hword 2829
.hword 2822
.hword 1547
.hword 2827
.hword 2822
.hword 1542
.hword 1542
.hword 1542
.hword 1542
.hword 1542
.hword 1542
.hword 1542
.hword 1542
.hword 0
.hword 0
.hword 0
.hword 0
.hword 1542
.hword 6161
.hword 7194
.hword 5652
.hword 1542
.hword 6417
.hword 7194
.hword 5652
.hword 1542
.hword 6673
.hword 7194
.hword 5652
.hword 1547
.hword 6673
.hword 7192
.hword 5652
.hword 1547
.hword 6417
.hword 7192
.hword 5652
.hword 1542
.hword 6417
.hword 7193
.hword 5652
.hword 1542
.hword 6673
.hword 7194
.hword 5392
.hword 1280
.hword 6153
.hword 7194
.hword 2313
.hword 5654
.hword 2320
.hword 0
.hword 0
.hword 3604
.hword 1292
.hword 0
.hword 0
.hword 4110
.hword 1296
.hword 0
.hword 0
.hword 4116
.hword 3604
.hword 5
.hword 0
.hword 3606
.hword 5134
.hword 16
.hword 0
.hword 5398
.hword 3604
.hword 12
.hword 0
.hword 5654
.hword 3604
.hword 20
.hword 0
.hword 3596
.hword 3084
.hword 12
.hword 0
.hword 3584
.hword 3084
.hword 3084
.hword 3084
.hword 5632
.hword 5654
.hword 5654
.hword 5654
.hword 5376
.hword 6165
.hword 6168
.hword 5400
.hword 1280
.hword 2313
.hword 3084
.hword 2313
.hword 0
.hword 3081
.hword 2316
.hword 2316
.hword 0
.hword 5132
.hword 3600
.hword 4108
.hword 0
.hword 5132
.hword 5134
.hword 4116
.hword 0
.hword 3081
.hword 5652
.hword 3606
.hword 3086
.hword 2313
.hword 3081
.hword 3086
.hword 5654
.hword 5397
.hword 5653
.hword 5654
.hword 6168
.hword 6168
.hword 5397
.hword 5397
.hword 2313
.hword 2313
.hword 2313
.hword 2313
.hword 2313
.hword 3598
.hword 3598
.hword 3084
.hword 3092
.hword 5648
.hword 3604
.hword 5132
.hword 4112
.hword 5136
.hword 4108
.hword 5653
.hword 3600
.hword 4116
.hword 5648
.hword 5654
.hword 3084
.hword 3084
.hword 3084
.hword 3084
.hword 5654
.hword 5654
.hword 5654
.hword 5654
.hword 5397
.hword 5397
.hword 5397
.hword 6168
.hword 2313
.hword 2313
.hword 2313
.hword 2313
.hword 3598
.hword 3086
.hword 3081
.hword 3598
.hword 5141
.hword 3084
.hword 5396
.hword 5397
.hword 3606
.hword 5648
.hword 5653
.hword 5654
.hword 3606
.hword 4116
.hword 5136
.hword 5654
.hword 3086
.hword 2313
.hword 3081
.hword 3086
.hword 5654
.hword 5398
.hword 5653
.hword 5654
.hword 6168
.hword 6168
.hword 6168
.hword 5400
.hword 2313
.hword 2313
.hword 2313
.hword 2313
.hword 3598
.hword 3598
.hword 3598
.hword 3598
.hword 5397
.hword 5397
.hword 5397
.hword 5397
.hword 5654
.hword 5654
.hword 5654
.hword 5654
.hword 5654
.hword 5654
.hword 5140
.hword 3600
.hword 3084
.hword 3084
.hword 3084
.hword 3084
.hword 5654
.hword 5654
.hword 5654
.hword 5654
.hword 5397
.hword 5397
.hword 6168
.hword 6168
.hword 2313
.hword 2313
.hword 3081
.hword 3086
.hword 3598
.hword 3598
.hword 3598
.hword 3598
.hword 5397
.hword 5397
.hword 5397
.hword 5397
.hword 5654
.hword 5654
.hword 5654
.hword 5654
.hword 3598
.hword 4110
.hword 5136
.hword 5653
.hword 3084
.hword 3084
.hword 3084
.hword 3084
.hword 5654
.hword 5654
.hword 5654
.hword 5654
.hword 5400
.hword 5397
.hword 6165
.hword 6168
.hword 2313
.hword 2313
.hword 2313
.hword 2313
.hword 3598
.hword 3598
.hword 2316
.hword 3596
.hword 5397
.hword 5397
.hword 5141
.hword 3086
.hword 5654
.hword 5654
.hword 5142
.hword 4118
.hword 5654
.hword 5654
.hword 3604
.hword 5136
.hword 3084
.hword 3084
.hword 3084
.hword 3086
.hword 5654
.hword 5654
.hword 5654
.hword 5654
.hword 6168
.hword 6168
.hword 5397
.hword 5397
.hword 2313
.hword 2313
.hword 2313
.hword 2313
.hword 3598
.hword 3084
.hword 3598
.hword 3598
.hword 5396
.hword 3604
.hword 5134
.hword 4118
.hword 5646
.hword 5398
.hword 3088
.hword 4116
.hword 5392
.hword 5654
.hword 4118
.hword 5136
.hword 2313
.hword 2313
.hword 3084
.hword 14
.hword 5398
.hword 5396
.hword 5654
.hword 22
.hword 6168
.hword 6168
.hword 6168
.hword 24
.hword 3081
.hword 3084
.hword 2313
.hword 5
.hword 2313
.hword 3081
.hword 2316
.hword 5
.hword 5129
.hword 3088
.hword 2320
.hword 0
.hword 4112
.hword 5136
.hword 3092
.hword 0
.hword 4110
.hword 5646
.hword 20
.hword 0
.hword 0
.hword 0
.hword 5132
.hword 5142
.hword 0
.hword 0
.hword 3072
.hword 4118
.hword 0
.hword 0
.hword 2304
.hword 3600
.hword 0
.hword 0
.hword 0
.hword 5129
.hword 0
.hword 0
.hword 0
.hword 4096
.hword 0
.hword 0
.hword 0
.hword 2304
.hword 0
.hword 0
.hword 0
.hword 4105
.hword 0
.hword 0
.hword 0
.hword 5129
.hword 5132
.hword 3605
.hword 5653
.hword 5398
.hword 5392
.hword 3598
.hword 5392
.hword 3600
.hword 5142
.hword 5390
.hword 2320
.hword 5132
.hword 5398
.hword 5136
.hword 3606
.hword 5140
.hword 5140
.hword 5654
.hword 3604
.hword 4117
.hword 3598
.hword 5396
.hword 5134
.hword 5142
.hword 5142
.hword 3596
.hword 5648
.hword 5654
.hword 3606
.hword 5132
.hword 5654
.hword 5654
.hword 2324
.hword 5140
.hword 5136
.hword 5654
.hword 1294
.hword 4105
.hword 5648
.hword 4117
.hword 3092
.hword 4101
.hword 4118
.hword 5134
.hword 4112
.hword 5136
.hword 4368
.hword 6424
.hword 4112
.hword 3604
.hword 6676
.hword 5145
.hword 5136
.hword 5390
.hword 6426
.hword 6168
.hword 3605
.hword 6680
.hword 6165
.hword 3608
.hword 5646
.hword 6172
.hword 6168
.hword 9
.hword 5141
.hword 3600
.hword 4110
.hword 5136
.hword 4110
.hword 6164
.hword 6169
.hword 6168
.hword 6681
.hword 6169
.hword 6168
.hword 6170
.hword 6682
.hword 6170
.hword 6426
.hword 6169
.hword 6426
.hword 4117
.hword 1289
.hword 0
.hword 2324
.hword 5
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 5140
.hword 5140
.hword 3600
.hword 4110
.hword 6424
.hword 6426
.hword 6426
.hword 6169
.hword 6165
.hword 5400
.hword 5146
.hword 6424
.hword 6168
.hword 6168
.hword 6169
.hword 6426
.hword 0
.hword 0
.hword 2309
.hword 4108
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 5136
.hword 5654
.hword 4116
.hword 5140
.hword 3604
.hword 5134
.hword 4118
.hword 2320
.hword 6682
.hword 4117
.hword 5134
.hword 1296
.hword 6680
.hword 6426
.hword 4117
.hword 4112
.hword 6680
.hword 5400
.hword 6426
.hword 4112
.hword 3589
.hword 6168
.hword 6680
.hword 4122
.hword 0
.hword 5125
.hword 5658
.hword 6680
.hword 0
.hword 1280
.hword 6416
.hword 6680
.hword 4108
.hword 5653
.hword 5398
.hword 5390
.hword 3077
.hword 3598
.hword 4117
.hword 3598
.hword 5132
.hword 3092
.hword 4105
.hword 3605
.hword 4112
.hword 5140
.hword 5646
.hword 3604
.hword 4116
.hword 5392
.hword 5136
.hword 5654
.hword 4112
.hword 5652
.hword 3092
.hword 5141
.hword 4116
.hword 5654
.hword 5142
.hword 3086
.hword 4124
.hword 5648
.hword 5654
.hword 3604
.hword 3092
.hword 4116
.hword 9
.hword 0
.hword 4117
.hword 3086
.hword 0
.hword 0
.hword 5652
.hword 2320
.hword 0
.hword 0
.hword 5653
.hword 2325
.hword 0
.hword 0
.hword 5140
.hword 3093
.hword 0
.hword 0
.hword 3598
.hword 3086
.hword 0
.hword 0
.hword 5652
.hword 2324
.hword 0
.hword 0
.hword 5644
.hword 2324
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 5120
.hword 0
.hword 0
.hword 0
.hword 4096
.hword 0
.hword 0
.hword 0
.hword 2304
.hword 0
.hword 0
.hword 0
.hword 2304
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 3604
.hword 5140
.hword 5648
.hword 4118
.hword 4116
.hword 4112
.hword 5390
.hword 4116
.hword 2313
.hword 5140
.hword 5648
.hword 6160
.hword 1294
.hword 3589
.hword 5141
.hword 7184
.hword 3088
.hword 5388
.hword 4118
.hword 7189
.hword 3596
.hword 5654
.hword 4117
.hword 6682
.hword 5129
.hword 5654
.hword 4116
.hword 6172
.hword 5641
.hword 5654
.hword 5392
.hword 5404
.hword 7188
.hword 5401
.hword 2329
.hword 0
.hword 6684
.hword 6170
.hword 12
.hword 0
.hword 6428
.hword 4122
.hword 0
.hword 0
.hword 5402
.hword 1301
.hword 0
.hword 0
.hword 6680
.hword 14
.hword 0
.hword 0
.hword 6166
.hword 5
.hword 0
.hword 0
.hword 4120
.hword 0
.hword 0
.hword 0
.hword 2328
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 4352
.hword 5401
.hword 0
.hword 0
.hword 0
.hword 6676
.hword 0
.hword 0
.hword 0
.hword 6405
.hword 0
.hword 0
.hword 0
.hword 3072
.hword 0
.hword 0
.hword 0
.hword 1280
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 6682
.hword 5136
.hword 4118
.hword 5140
.hword 7194
.hword 4120
.hword 3605
.hword 4112
.hword 6680
.hword 5148
.hword 4116
.hword 5136
.hword 5400
.hword 6428
.hword 5392
.hword 2318
.hword 6677
.hword 7194
.hword 5136
.hword 3606
.hword 6156
.hword 7192
.hword 4120
.hword 5654
.hword 6149
.hword 6677
.hword 3610
.hword 5654
.hword 4096
.hword 6165
.hword 4124
.hword 5653
.hword 5134
.hword 20
.hword 0
.hword 0
.hword 4112
.hword 20
.hword 0
.hword 0
.hword 2313
.hword 9
.hword 0
.hword 0
.hword 1285
.hword 0
.hword 0
.hword 0
.hword 3081
.hword 0
.hword 0
.hword 0
.hword 3600
.hword 0
.hword 0
.hword 0
.hword 3092
.hword 0
.hword 0
.hword 0
.hword 3094
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 4101
.hword 5654
.hword 6160
.hword 6684
.hword 1280
.hword 5134
.hword 6670
.hword 6426
.hword 3593
.hword 5136
.hword 7184
.hword 5401
.hword 5641
.hword 5398
.hword 7184
.hword 6169
.hword 5129
.hword 5142
.hword 7188
.hword 6168
.hword 3584
.hword 5142
.hword 7188
.hword 6680
.hword 3072
.hword 5142
.hword 7188
.hword 6421
.hword 2304
.hword 5141
.hword 7188
.hword 6680
.hword 1301
.hword 0
.hword 0
.hword 0
.hword 20
.hword 0
.hword 0
.hword 0
.hword 16
.hword 0
.hword 0
.hword 0
.hword 12
.hword 0
.hword 0
.hword 0
.hword 9
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 2304
.hword 6681
.hword 5148
.hword 5652
.hword 1280
.hword 5400
.hword 5404
.hword 4112
.hword 1280
.hword 5141
.hword 6172
.hword 4112
.hword 0
.hword 6164
.hword 6684
.hword 4112
.hword 0
.hword 5648
.hword 7194
.hword 4112
.hword 0
.hword 6673
.hword 7193
.hword 5136
.hword 0
.hword 6161
.hword 7189
.hword 5136
.hword 0
.hword 6673
.hword 7192
.hword 4112
.hword 1296
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 9
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 2304
.hword 5141
.hword 7188
.hword 6682
.hword 2304
.hword 5141
.hword 7188
.hword 6424
.hword 1280
.hword 5140
.hword 7188
.hword 6420
.hword 0
.hword 5136
.hword 7188
.hword 6424
.hword 0
.hword 5132
.hword 7188
.hword 6681
.hword 0
.hword 4101
.hword 7188
.hword 6425
.hword 0
.hword 3589
.hword 7188
.hword 6424
.hword 0
.hword 1280
.hword 7188
.hword 6680
.hword 5
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 6673
.hword 7194
.hword 4112
.hword 0
.hword 6417
.hword 7192
.hword 4112
.hword 0
.hword 6417
.hword 7192
.hword 4112
.hword 0
.hword 6673
.hword 7194
.hword 4112
.hword 0
.hword 6161
.hword 7192
.hword 4112
.hword 0
.hword 6673
.hword 7192
.hword 5136
.hword 0
.hword 6673
.hword 7194
.hword 5136
.hword 0
.hword 6417
.hword 7189
.hword 4112
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 9
.hword 0
.hword 0
.hword 0
.hword 9
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 7188
.hword 6426
.hword 0
.hword 0
.hword 7188
.hword 6421
.hword 0
.hword 0
.hword 7188
.hword 6421
.hword 0
.hword 0
.hword 7188
.hword 6424
.hword 0
.hword 0
.hword 7188
.hword 6424
.hword 0
.hword 0
.hword 7188
.hword 6425
.hword 0
.hword 1280
.hword 7188
.hword 6420
.hword 0
.hword 4105
.hword 7188
.hword 6422
.hword 5
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 6417
.hword 7192
.hword 4112
.hword 0
.hword 6161
.hword 7194
.hword 3084
.hword 0
.hword 6673
.hword 7194
.hword 9
.hword 0
.hword 6161
.hword 7192
.hword 9
.hword 0
.hword 6417
.hword 7194
.hword 9
.hword 0
.hword 6673
.hword 7194
.hword 12
.hword 0
.hword 6673
.hword 7194
.hword 12
.hword 0
.hword 6417
.hword 7192
.hword 2318
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 12
.hword 0
.hword 0
.hword 0
.hword 2320
.hword 0
.hword 0
.hword 0
.hword 2324
.hword 0
.hword 0
.hword 3584
.hword 3606
.hword 0
.hword 5392
.hword 7192
.hword 6681
.hword 3072
.hword 5397
.hword 7192
.hword 6425
.hword 4105
.hword 5398
.hword 7192
.hword 6425
.hword 5385
.hword 5398
.hword 7192
.hword 6421
.hword 5641
.hword 5398
.hword 7192
.hword 6681
.hword 5646
.hword 5398
.hword 7192
.hword 6424
.hword 5648
.hword 5398
.hword 7192
.hword 6424
.hword 5648
.hword 5398
.hword 7192
.hword 6420
.hword 5
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 6417
.hword 7192
.hword 4116
.hword 0
.hword 6673
.hword 7194
.hword 5396
.hword 0
.hword 6417
.hword 7192
.hword 5652
.hword 0
.hword 6417
.hword 7193
.hword 5140
.hword 0
.hword 6161
.hword 7193
.hword 3598
.hword 0
.hword 6161
.hword 7193
.hword 3598
.hword 0
.hword 6673
.hword 7194
.hword 5396
.hword 0
.hword 6417
.hword 7192
.hword 5396
.hword 0
.hword 0
.hword 0
.hword 0
.hword 12
.hword 0
.hword 0
.hword 0
.hword 2324
.hword 0
.hword 0
.hword 0
.hword 2325
.hword 0
.hword 0
.hword 0
.hword 2325
.hword 0
.hword 0
.hword 0
.hword 3088
.hword 0
.hword 0
.hword 0
.hword 3604
.hword 0
.hword 0
.hword 0
.hword 5397
.hword 9
.hword 0
.hword 0
.hword 0
.hword 0
.hword 5129
.hword 4118
.hword 0
.hword 0
.hword 5646
.hword 3606
.hword 0
.hword 0
.hword 5652
.hword 5141
.hword 0
.hword 0
.hword 5652
.hword 5654
.hword 0
.hword 2304
.hword 4116
.hword 5652
.hword 0
.hword 5129
.hword 4112
.hword 5132
.hword 3584
.hword 5653
.hword 5134
.hword 4117
.hword 3072
.hword 3086
.hword 2313
.hword 2318
.hword 5390
.hword 5398
.hword 7192
.hword 6680
.hword 5392
.hword 5398
.hword 7192
.hword 6677
.hword 4118
.hword 3086
.hword 7192
.hword 6421
.hword 3092
.hword 3604
.hword 7192
.hword 6681
.hword 4117
.hword 5136
.hword 7192
.hword 6424
.hword 5142
.hword 3084
.hword 7192
.hword 6424
.hword 5654
.hword 4116
.hword 7192
.hword 6170
.hword 3084
.hword 1289
.hword 7188
.hword 5146
.hword 5
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 5
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 0
.hword 6161
.hword 7194
.hword 5652
.hword 0
.hword 6417
.hword 7194
.hword 5652
.hword 0
.hword 6673
.hword 7194
.hword 5652
.hword 0
.hword 6417
.hword 7192
.hword 5652
.hword 0
.hword 6417
.hword 7192
.hword 5652
.hword 0
.hword 6417
.hword 7193
.hword 5652
.hword 0
.hword 6670
.hword 7194
.hword 5392
.hword 0
.hword 6153
.hword 7194
.hword 2313
.hword 5654
.hword 2320
.hword 0
.hword 0
.hword 3604
.hword 1292
.hword 0
.hword 0
.hword 4110
.hword 1296
.hword 0
.hword 0
.hword 4116
.hword 3604
.hword 5
.hword 0
.hword 3606
.hword 5134
.hword 16
.hword 0
.hword 5398
.hword 3604
.hword 12
.hword 0
.hword 5654
.hword 3604
.hword 20
.hword 0
.hword 3596
.hword 3084
.hword 12
.hword 0
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global IID_IXMLDOMAttribute
.section .rodata
.align 3
.type IID_IXMLDOMAttribute, %object
.size IID_IXMLDOMAttribute, 24
IID_IXMLDOMAttribute:
.xword 691257221
.hword 31542
.hword 4562
.string "\262\016"
.ascii "\300O\230>`"
.zero 4
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "%d"
.align 3
.LC1:
.string "%d %d"
.align 3
.LC2:
.string "%d\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 40]
mov x1, 0
str wzr, [sp, 36]
add x0, sp, 24
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
.L6:
add x1, sp, 32
add x0, sp, 28
mov x2, x1
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
ldr w1, [sp, 28]
ldr w0, [sp, 32]
cmp w1, w0
ble .L2
ldr w0, [sp, 28]
str w0, [sp, 36]
ldr w0, [sp, 32]
str w0, [sp, 28]
ldr w0, [sp, 36]
str w0, [sp, 32]
str wzr, [sp, 36]
.L2:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
b .L3
.L5:
ldr w0, [sp, 28]
and w0, w0, 1
cmp w0, 0
beq .L4
ldr w0, [sp, 28]
ldr w1, [sp, 36]
add w0, w1, w0
str w0, [sp, 36]
.L4:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L3:
ldr w1, [sp, 28]
ldr w0, [sp, 32]
cmp w1, w0
blt .L5
ldr w1, [sp, 36]
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
str wzr, [sp, 36]
ldr w0, [sp, 24]
sub w0, w0, #1
str w0, [sp, 24]
ldr w0, [sp, 24]
cmp w0, 0
bne .L6
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 40]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L8
bl __stack_chk_fail
.L8:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global swap
.type swap, %function
swap:
.LFB6:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str x1, [sp]
ldr x0, [sp]
ldr w0, [x0]
str w0, [sp, 28]
ldr x0, [sp, 8]
ldr w1, [x0]
ldr x0, [sp]
str w1, [x0]
ldr x0, [sp, 8]
ldr w1, [sp, 28]
str w1, [x0]
nop
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size swap, .-swap
.align 2
.global insertionsort
.type insertionsort, %function
insertionsort:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
str w1, [sp, 20]
str w2, [sp, 16]
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 40]
b .L3
.L9:
ldr w0, [sp, 40]
sub w0, w0, #1
str w0, [sp, 44]
b .L4
.L8:
ldrsw x0, [sp, 44]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w1, [x0]
ldrsw x0, [sp, 44]
add x0, x0, 1
lsl x0, x0, 2
ldr x2, [sp, 24]
add x0, x2, x0
ldr w0, [x0]
cmp w1, w0
ble .L10
ldrsw x0, [sp, 44]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x2, x1, x0
ldrsw x0, [sp, 44]
add x0, x0, 1
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
mov x1, x0
mov x0, x2
bl swap
ldr w0, [sp, 44]
sub w0, w0, #1
str w0, [sp, 44]
.L4:
ldr w1, [sp, 44]
ldr w0, [sp, 20]
cmp w1, w0
bge .L8
b .L7
.L10:
nop
.L7:
ldr w0, [sp, 40]
add w0, w0, 1
str w0, [sp, 40]
.L3:
ldr w1, [sp, 40]
ldr w0, [sp, 16]
cmp w1, w0
blt .L9
nop
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size insertionsort, .-insertionsort
.section .rodata
.align 3
.LC0:
.string "%d"
.align 3
.LC1:
.string "%d "
.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, 24
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
ldr w0, [sp, 24]
sxtw x0, w0
lsl x0, x0, 2
bl malloc
str x0, [sp, 32]
str wzr, [sp, 28]
b .L12
.L13:
ldrsw x0, [sp, 28]
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, 28]
add w0, w0, 1
str w0, [sp, 28]
.L12:
ldr w0, [sp, 24]
ldr w1, [sp, 28]
cmp w1, w0
blt .L13
ldr w0, [sp, 24]
mov w2, w0
mov w1, 0
ldr x0, [sp, 32]
bl insertionsort
str wzr, [sp, 28]
b .L14
.L15:
ldrsw x0, [sp, 28]
lsl x0, x0, 2
ldr x1, [sp, 32]
add x0, x1, x0
ldr w0, [x0]
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]
.L14:
ldr w0, [sp, 24]
ldr w1, [sp, 28]
cmp w1, w0
blt .L15
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 .L17
bl __stack_chk_fail
.L17:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "\t\t\t\t\tHello, World!"
.text
.align 2
.global p1
.type p1, %function
p1:
.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 p1, .-p1
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.type use_buffer, %function
use_buffer:
.LFB6:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
ldr x0, [sp, 8]
strb wzr, [x0]
nop
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size use_buffer, .-use_buffer
.local marker_var
.comm marker_var,4,4
.align 2
.type marker_miss, %function
marker_miss:
.LFB7:
.cfi_startproc
adrp x0, marker_var
add x0, x0, :lo12:marker_var
str wzr, [x0]
nop
ret
.cfi_endproc
.LFE7:
.size marker_miss, .-marker_miss
.align 2
.type marker_hit, %function
marker_hit:
.LFB8:
.cfi_startproc
adrp x0, marker_var
add x0, x0, :lo12:marker_var
str wzr, [x0]
nop
ret
.cfi_endproc
.LFE8:
.size marker_hit, .-marker_hit
.global reserved
.bss
.align 3
.type reserved, %object
.size reserved, 8
reserved:
.zero 8
.section .rodata
.align 3
.LC0:
.string "%d: %p < %p\n"
.text
.align 2
.type down, %function
down:
.LFB9:
.cfi_startproc
mov x12, 10048
sub sp, sp, x12
.cfi_def_cfa_offset 10048
stp x29, x30, [sp]
.cfi_offset 29, -10048
.cfi_offset 30, -10040
mov x29, sp
str w0, [sp, 28]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 10040]
mov x1, 0
adrp x0, last.0
add x0, x0, :lo12:last.0
ldr x0, [x0]
cmp x0, 0
beq .L5
adrp x0, last.0
add x0, x0, :lo12:last.0
ldr x1, [x0]
add x0, sp, 40
cmp x1, x0
bcs .L5
adrp x0, last.0
add x0, x0, :lo12:last.0
ldr x0, [x0]
add x1, sp, 40
mov x3, x1
mov x2, x0
ldr w1, [sp, 28]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
bl marker_hit
.L5:
adrp x0, last.0
add x0, x0, :lo12:last.0
add x1, sp, 40
str x1, [x0]
ldr w0, [sp, 28]
cmp w0, 500
bne .L6
adrp x0, reserved
add x0, x0, :lo12:reserved
ldr x0, [x0]
mov x1, 16777216
bl munmap
cmp w0, 0
beq .L7
bl abort
.L7:
adrp x0, reserved
add x0, x0, :lo12:reserved
str xzr, [x0]
.L6:
ldr w0, [sp, 28]
cmp w0, 0
ble .L8
add x0, sp, 40
bl use_buffer
ldr w0, [sp, 28]
sub w0, w0, #1
bl down
b .L11
.L8:
bl marker_miss
.L11:
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 10040]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L10
bl __stack_chk_fail
.L10:
ldp x29, x30, [sp]
mov x12, 10048
add sp, sp, x12
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size down, .-down
.align 2
.global main
.type main, %function
main:
.LFB10:
.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 x5, 0
mov w4, -1
mov w3, 34
mov w2, 3
mov x1, 16777216
mov x0, 0
bl mmap
mov x1, x0
adrp x0, reserved
add x0, x0, :lo12:reserved
str x1, [x0]
adrp x0, reserved
add x0, x0, :lo12:reserved
ldr x0, [x0]
cmn x0, #1
bne .L13
bl abort
.L13:
mov x0, 8388608
str x0, [sp, 24]
mov x0, 8388608
str x0, [sp, 32]
add x0, sp, 24
mov x1, x0
mov w0, 3
bl setrlimit
cmp w0, 0
beq .L14
bl abort
.L14:
mov w0, 1000
bl down
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 40]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L16
bl __stack_chk_fail
.L16:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size main, .-main
.local last.0
.comm last.0,8,8
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global WPD_VIDEO_BUFFER_SIZE
.section .rodata
.align 3
.type WPD_VIDEO_BUFFER_SIZE, %object
.size WPD_VIDEO_BUFFER_SIZE, 24
WPD_VIDEO_BUFFER_SIZE:
.xword 879698275
.hword -1640
.hword 16710
.string "\213\001\321\233L"
.ascii "\336\232"
.zero 4
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global foo
.type foo, %function
foo:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
mov x0, 0
ldp x0, x1, [x0]
ldr x2, [sp, 24]
stp x0, x1, [x2]
ldr x0, [sp, 24]
ldp x0, x1, [x0]
mov x2, 0
stp x0, x1, [x2]
mov x0, 0
ldp x0, x1, [x0]
ldr x2, [sp, 24]
stp x0, x1, [x2]
ldr x0, [sp, 24]
ldp x0, x1, [x0]
mov x2, 0
stp x0, x1, [x2]
mov x2, 16
mov w1, 0
mov x0, 0
bl memset
mov x0, 0
ldp x0, x1, [x0]
ldr x2, [sp, 24]
stp x0, x1, [x2]
ldr x0, [sp, 24]
ldp x0, x1, [x0]
mov x2, 0
stp x0, x1, [x2]
ldr x1, [sp, 16]
mov x0, 0
bl strcat
mov x1, 0
ldr x0, [sp, 16]
bl strcat
mov x2, 16
ldr x1, [sp, 16]
mov x0, 0
bl strncat
mov x2, 16
mov x1, 0
ldr x0, [sp, 16]
bl strncat
ldr x1, [sp, 16]
mov x0, 0
bl strcpy
mov x1, 0
ldr x0, [sp, 16]
bl strcpy
mov x2, 16
ldr x1, [sp, 16]
mov x0, 0
bl stpncpy
mov x2, 16
mov x1, 0
ldr x0, [sp, 16]
bl stpncpy
ldr x1, [sp, 16]
mov x0, 0
bl strcpy
mov x1, 0
ldr x0, [sp, 16]
bl strcpy
mov x2, 16
ldr x1, [sp, 16]
mov x0, 0
bl strncpy
mov x2, 16
mov x1, 0
ldr x0, [sp, 16]
bl strncpy
mov x0, 0
bl strdup
mov x1, 16
mov x0, 0
bl strndup
mov x0, 0
bl puts
ldr x0, [sp, 16]
ldrb w0, [x0]
mov x1, 0
bl fputc
mov x1, 0
ldr x0, [sp, 16]
bl fputs
ldr x1, [sp, 24]
mov x0, 0
bl fputs
mov x3, 0
mov x2, 16
mov x1, 16
ldr x0, [sp, 16]
bl fwrite
ldr x3, [sp, 24]
mov x2, 16
mov x1, 16
mov x0, 0
bl fwrite
mov x0, 0
bl puts_unlocked
ldr x0, [sp, 16]
ldrb w0, [x0]
mov x1, 0
bl fputc_unlocked
mov x1, 0
ldr x0, [sp, 16]
bl fputs_unlocked
ldr x1, [sp, 24]
mov x0, 0
bl fputs_unlocked
mov x3, 0
mov x2, 16
mov x1, 16
ldr x0, [sp, 16]
bl fwrite_unlocked
ldr x3, [sp, 24]
mov x2, 16
mov x1, 16
mov x0, 0
bl fwrite_unlocked
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size foo, .-foo
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.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
.local mt
.comm mt,4992,8
.data
.align 2
.type mti, %object
.size mti, 4
mti:
.word 625
.text
.align 2
.global sgenrand
.type sgenrand, %function
sgenrand:
.LFB0:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
ldr x0, [sp, 8]
and x1, x0, 4294967295
adrp x0, mt
add x0, x0, :lo12:mt
str x1, [x0]
adrp x0, mti
add x0, x0, :lo12:mti
mov w1, 1
str w1, [x0]
b .L2
.L3:
adrp x0, mti
add x0, x0, :lo12:mti
ldr w0, [x0]
sub w1, w0, #1
adrp x0, mt
add x0, x0, :lo12:mt
sxtw x1, w1
ldr x1, [x0, x1, lsl 3]
mov x0, 3533
movk x0, 0x1, lsl 16
mul x0, x1, x0
adrp x1, mti
add x1, x1, :lo12:mti
ldr w1, [x1]
and x2, x0, 4294967295
adrp x0, mt
add x0, x0, :lo12:mt
sxtw x1, w1
str x2, [x0, x1, lsl 3]
adrp x0, mti
add x0, x0, :lo12:mti
ldr w0, [x0]
add w1, w0, 1
adrp x0, mti
add x0, x0, :lo12:mti
str w1, [x0]
.L2:
adrp x0, mti
add x0, x0, :lo12:mti
ldr w0, [x0]
cmp w0, 623
ble .L3
nop
nop
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size sgenrand, .-sgenrand
.align 2
.global genrand
.type genrand, %function
genrand:
.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, mti
add x0, x0, :lo12:mti
ldr w0, [x0]
cmp w0, 623
ble .L5
adrp x0, mti
add x0, x0, :lo12:mti
ldr w0, [x0]
cmp w0, 625
bne .L6
mov x0, 4357
bl sgenrand
.L6:
str wzr, [sp, 20]
b .L7
.L8:
adrp x0, mt
add x0, x0, :lo12:mt
ldrsw x1, [sp, 20]
ldr x0, [x0, x1, lsl 3]
and x1, x0, 2147483648
ldr w0, [sp, 20]
add w2, w0, 1
adrp x0, mt
add x0, x0, :lo12:mt
sxtw x2, w2
ldr x0, [x0, x2, lsl 3]
and x0, x0, 2147483647
orr x0, x1, x0
str x0, [sp, 24]
ldr w0, [sp, 20]
add w1, w0, 397
adrp x0, mt
add x0, x0, :lo12:mt
sxtw x1, w1
ldr x1, [x0, x1, lsl 3]
ldr x0, [sp, 24]
lsr x0, x0, 1
eor x1, x1, x0
ldr x0, [sp, 24]
and x2, x0, 1
adrp x0, mag01.0
add x0, x0, :lo12:mag01.0
ldr x0, [x0, x2, lsl 3]
eor x2, x1, x0
adrp x0, mt
add x0, x0, :lo12:mt
ldrsw x1, [sp, 20]
str x2, [x0, x1, lsl 3]
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
.L7:
ldr w0, [sp, 20]
cmp w0, 226
ble .L8
b .L9
.L10:
adrp x0, mt
add x0, x0, :lo12:mt
ldrsw x1, [sp, 20]
ldr x0, [x0, x1, lsl 3]
and x1, x0, 2147483648
ldr w0, [sp, 20]
add w2, w0, 1
adrp x0, mt
add x0, x0, :lo12:mt
sxtw x2, w2
ldr x0, [x0, x2, lsl 3]
and x0, x0, 2147483647
orr x0, x1, x0
str x0, [sp, 24]
ldr w0, [sp, 20]
sub w1, w0, #227
adrp x0, mt
add x0, x0, :lo12:mt
sxtw x1, w1
ldr x1, [x0, x1, lsl 3]
ldr x0, [sp, 24]
lsr x0, x0, 1
eor x1, x1, x0
ldr x0, [sp, 24]
and x2, x0, 1
adrp x0, mag01.0
add x0, x0, :lo12:mag01.0
ldr x0, [x0, x2, lsl 3]
eor x2, x1, x0
adrp x0, mt
add x0, x0, :lo12:mt
ldrsw x1, [sp, 20]
str x2, [x0, x1, lsl 3]
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
.L9:
ldr w0, [sp, 20]
cmp w0, 622
ble .L10
adrp x0, mt
add x0, x0, :lo12:mt
ldr x0, [x0, 4984]
and x1, x0, 2147483648
adrp x0, mt
add x0, x0, :lo12:mt
ldr x0, [x0]
and x0, x0, 2147483647
orr x0, x1, x0
str x0, [sp, 24]
adrp x0, mt
add x0, x0, :lo12:mt
ldr x1, [x0, 3168]
ldr x0, [sp, 24]
lsr x0, x0, 1
eor x1, x1, x0
ldr x0, [sp, 24]
and x2, x0, 1
adrp x0, mag01.0
add x0, x0, :lo12:mag01.0
ldr x0, [x0, x2, lsl 3]
eor x1, x1, x0
adrp x0, mt
add x0, x0, :lo12:mt
str x1, [x0, 4984]
adrp x0, mti
add x0, x0, :lo12:mti
str wzr, [x0]
.L5:
adrp x0, mti
add x0, x0, :lo12:mti
ldr w0, [x0]
add w2, w0, 1
adrp x1, mti
add x1, x1, :lo12:mti
str w2, [x1]
adrp x1, mt
add x1, x1, :lo12:mt
sxtw x0, w0
ldr x0, [x1, x0, lsl 3]
str x0, [sp, 24]
ldr x0, [sp, 24]
lsr x0, x0, 11
ldr x1, [sp, 24]
eor x0, x1, x0
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x1, x0, 7
mov x0, 22144
movk x0, 0x9d2c, lsl 16
and x0, x1, x0
ldr x1, [sp, 24]
eor x0, x1, x0
str x0, [sp, 24]
ldr x0, [sp, 24]
lsl x1, x0, 15
mov x0, 4022730752
and x0, x1, x0
ldr x1, [sp, 24]
eor x0, x1, x0
str x0, [sp, 24]
ldr x0, [sp, 24]
lsr x0, x0, 18
ldr x1, [sp, 24]
eor x0, x1, x0
str x0, [sp, 24]
ldr x0, [sp, 24]
and x0, x0, 2147483647
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size genrand, .-genrand
.data
.align 3
.type mag01.0, %object
.size mag01.0, 16
mag01.0:
.xword 0
.xword 2567483615
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Digite o numero:"
.align 3
.LC1:
.string "%d"
.align 3
.LC2:
.string "Ordem crescente :"
.align 3
.LC3:
.string "%d x %d= %d\n"
.align 3
.LC4:
.string "Ordem decrescente :"
.align 3
.LC5:
.string "%d x %d = %d\n"
.align 3
.LC6:
.string "pause"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 72]
mov x1, 0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
add x0, sp, 24
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl scanf
str wzr, [sp, 28]
b .L2
.L3:
ldr w1, [sp, 24]
ldr w0, [sp, 28]
mul w2, w1, w0
ldrsw x0, [sp, 28]
lsl x0, x0, 2
add x1, sp, 32
str w2, [x1, x0]
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L2:
ldr w0, [sp, 28]
cmp w0, 9
ble .L3
str wzr, [sp, 28]
b .L4
.L6:
ldr w0, [sp, 28]
cmp w0, 0
bne .L5
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl puts
.L5:
ldr w4, [sp, 24]
ldrsw x0, [sp, 28]
lsl x0, x0, 2
add x1, sp, 32
ldr w0, [x1, x0]
mov w3, w0
ldr w2, [sp, 28]
mov w1, w4
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L4:
ldr w0, [sp, 28]
cmp w0, 9
ble .L6
mov w0, 9
str w0, [sp, 28]
b .L7
.L9:
ldr w0, [sp, 28]
cmp w0, 9
bne .L8
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl puts
.L8:
ldr w4, [sp, 24]
ldrsw x0, [sp, 28]
lsl x0, x0, 2
add x1, sp, 32
ldr w0, [x1, x0]
mov w3, w0
ldr w2, [sp, 28]
mov w1, w4
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
ldr w0, [sp, 28]
sub w0, w0, #1
str w0, [sp, 28]
.L7:
ldr w0, [sp, 28]
cmp w0, 0
bge .L9
adrp x0, .LC6
add x0, x0, :lo12:.LC6
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, 72]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L11
bl __stack_chk_fail
.L11:
mov w0, w1
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC1:
.string ";%f"
.align 3
.LC2:
.string "Nome: %s,\tP1 = %4.1f,\tP2 = %4.1f\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -192]!
.cfi_def_cfa_offset 192
.cfi_offset 29, -192
.cfi_offset 30, -184
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 184]
mov x1, 0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
add x2, sp, 104
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, 125
movi v0.4s, 0
stp q0, q0, [x0]
str q0, [x0, 32]
str q0, [x0, 43]
add x0, sp, 104
str x0, [sp, 32]
str wzr, [sp, 28]
b .L2
.L4:
ldr x0, [sp, 32]
ldrb w2, [x0]
ldrsw x0, [sp, 28]
add x1, sp, 40
strb w2, [x1, x0]
ldr x0, [sp, 32]
add x0, x0, 1
str x0, [sp, 32]
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L2:
ldr x0, [sp, 32]
ldrb w0, [x0]
cmp w0, 0
beq .L3
ldr x0, [sp, 32]
ldrb w0, [x0]
cmp w0, 59
bne .L4
.L3:
ldr w0, [sp, 28]
add w0, w0, 1
sxtw x0, w0
add x1, sp, 40
strb wzr, [x1, x0]
add x0, sp, 20
mov x2, x0
adrp x0, .LC1
add x1, x0, :lo12:.LC1
ldr x0, [sp, 32]
bl __isoc99_sscanf
ldr x0, [sp, 32]
add x0, x0, 1
str x0, [sp, 32]
b .L5
.L7:
ldr x0, [sp, 32]
add x0, x0, 1
str x0, [sp, 32]
.L5:
ldr x0, [sp, 32]
ldrb w0, [x0]
cmp w0, 0
beq .L6
ldr x0, [sp, 32]
ldrb w0, [x0]
cmp w0, 59
bne .L7
.L6:
add x0, sp, 24
mov x2, x0
adrp x0, .LC1
add x1, x0, :lo12:.LC1
ldr x0, [sp, 32]
bl __isoc99_sscanf
ldr s0, [sp, 20]
fcvt d2, s0
ldr s0, [sp, 24]
fcvt d0, s0
add x0, sp, 40
fmov d1, d0
fmov d0, d2
mov x1, x0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 184]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L9
bl __stack_chk_fail
.L9:
mov w0, w1
ldp x29, x30, [sp], 192
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
.section .rodata
.align 3
.LC0:
.string "Raul Andrade; 4.5; 7"
.text
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global isErr
.type isErr, %function
isErr:
.LFB0:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, 12]
ldr w0, [sp, 12]
cmn w0, #1
beq .L2
ldr w0, [sp, 12]
cmp w0, 6
beq .L2
mov w0, 1
b .L3
.L2:
mov w0, 0
.L3:
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size isErr, .-isErr
.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_int
str w0, [sp, 24]
ldr w0, [sp, 24]
cmp w0, 0
ble .L9
ldr w0, [sp, 24]
cmp w0, 4
bgt .L9
ldr w0, [sp, 24]
cmp w0, 1
ble .L9
ldr w0, [sp, 24]
bl isErr
str w0, [sp, 28]
ldr w0, [sp, 28]
cmp w0, 0
bne .L10
.L9:
nop
.L5:
mov w0, 0
b .L7
.L10:
nop
.L6:
mov w0, 1
.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
.type _dl_cache_libcmp, %function
_dl_cache_libcmp:
.LFB0:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str x1, [sp]
b .L2
.L16:
ldr x0, [sp, 8]
ldrb w0, [x0]
cmp w0, 47
bls .L3
ldr x0, [sp, 8]
ldrb w0, [x0]
cmp w0, 57
bhi .L3
ldr x0, [sp]
ldrb w0, [x0]
cmp w0, 47
bls .L4
ldr x0, [sp]
ldrb w0, [x0]
cmp w0, 57
bhi .L4
ldr x0, [sp, 8]
add x1, x0, 1
str x1, [sp, 8]
ldrb w0, [x0]
sub w0, w0, #48
str w0, [sp, 24]
ldr x0, [sp]
add x1, x0, 1
str x1, [sp]
ldrb w0, [x0]
sub w0, w0, #48
str w0, [sp, 28]
b .L5
.L7:
ldr w1, [sp, 24]
mov w0, w1
lsl w0, w0, 2
add w0, w0, w1
lsl w0, w0, 1
mov w2, w0
ldr x0, [sp, 8]
add x1, x0, 1
str x1, [sp, 8]
ldrb w0, [x0]
add w0, w2, w0
sub w0, w0, #48
str w0, [sp, 24]
.L5:
ldr x0, [sp, 8]
ldrb w0, [x0]
cmp w0, 47
bls .L8
ldr x0, [sp, 8]
ldrb w0, [x0]
cmp w0, 57
bls .L7
b .L8
.L10:
ldr w1, [sp, 28]
mov w0, w1
lsl w0, w0, 2
add w0, w0, w1
lsl w0, w0, 1
mov w2, w0
ldr x0, [sp]
add x1, x0, 1
str x1, [sp]
ldrb w0, [x0]
add w0, w2, w0
sub w0, w0, #48
str w0, [sp, 28]
.L8:
ldr x0, [sp]
ldrb w0, [x0]
cmp w0, 47
bls .L9
ldr x0, [sp]
ldrb w0, [x0]
cmp w0, 57
bls .L10
.L9:
ldr w1, [sp, 24]
ldr w0, [sp, 28]
cmp w1, w0
beq .L17
ldr w1, [sp, 24]
ldr w0, [sp, 28]
sub w0, w1, w0
b .L12
.L4:
mov w0, 1
b .L12
.L17:
nop
b .L2
.L3:
ldr x0, [sp]
ldrb w0, [x0]
cmp w0, 47
bls .L14
ldr x0, [sp]
ldrb w0, [x0]
cmp w0, 57
bhi .L14
mov w0, -1
b .L12
.L14:
ldr x0, [sp, 8]
ldrb w1, [x0]
ldr x0, [sp]
ldrb w0, [x0]
cmp w1, w0
beq .L15
ldr x0, [sp, 8]
ldrb w0, [x0]
mov w1, w0
ldr x0, [sp]
ldrb w0, [x0]
sub w0, w1, w0
b .L12
.L15:
ldr x0, [sp, 8]
add x0, x0, 1
str x0, [sp, 8]
ldr x0, [sp]
add x0, x0, 1
str x0, [sp]
.L2:
ldr x0, [sp, 8]
ldrb w0, [x0]
cmp w0, 0
bne .L16
ldr x0, [sp, 8]
ldrb w0, [x0]
mov w1, w0
ldr x0, [sp]
ldrb w0, [x0]
sub w0, w1, w0
.L12:
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size _dl_cache_libcmp, .-_dl_cache_libcmp
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "arr[ %d ]= %c \n"
.text
.align 2
.global printArr
.type printArr, %function
printArr:
.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 w1, [sp, 20]
str wzr, [sp, 44]
b .L2
.L3:
ldrsw x0, [sp, 44]
ldr x1, [sp, 24]
add x0, x1, x0
ldrb w0, [x0]
mov w2, w0
ldr w1, [sp, 44]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L2:
ldr w1, [sp, 44]
ldr w0, [sp, 20]
cmp w1, w0
blt .L3
nop
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size printArr, .-printArr
.section .rodata
.align 3
.LC2:
.string "arr[0] = %#x\n"
.align 3
.LC3:
.string "arr[1] = %#x\n"
.align 3
.LC4:
.string "arr[2] = %#x\n"
.align 3
.LC5:
.string "\302\264\303\262\303\223\302\241arr\303\212\303\275\303\227\303\251\302\265\303\204\303\203\303\273\302\263\303\206 %#x\n"
.align 3
.LC6:
.string "pause"
.text
.align 2
.global main
.type main, %function
main:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 24]
mov x1, 0
adrp x0, .LC1
add x1, x0, :lo12:.LC1
add x0, sp, 16
ldr w2, [x1]
str w2, [x0]
ldrb w1, [x1, 4]
strb w1, [x0, 4]
add x0, sp, 16
mov x1, x0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
add x0, sp, 16
add x0, x0, 1
mov x1, x0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
add x0, sp, 16
add x0, x0, 2
mov x1, x0
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
add x0, sp, 16
mov x1, x0
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
add x0, sp, 16
mov w1, 5
bl printArr
adrp x0, .LC6
add x0, x0, :lo12:.LC6
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, 24]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L6
bl __stack_chk_fail
.L6:
mov w0, w1
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size main, .-main
.section .rodata
.align 3
.LC1:
.ascii "hello"
.text
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global foo
.type foo, %function
foo:
.LFB0:
.cfi_startproc
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, 8]
str x1, [sp]
ldr x0, [sp, 8]
ldrb w0, [x0, 1]
str w0, [sp, 28]
ldr x0, [sp, 8]
add x0, x0, 3
str x0, [sp, 32]
ldr x0, [sp]
add x0, x0, 3
str x0, [sp, 40]
str wzr, [sp, 24]
b .L2
.L5:
ldr w0, [sp, 28]
cmp w0, 7
ble .L3
mov w0, -1
strb w0, [sp, 23]
ldr w0, [sp, 28]
sub w0, w0, #8
str w0, [sp, 28]
b .L4
.L3:
mov w1, 8
ldr w0, [sp, 28]
sub w0, w1, w0
mov w1, 255
lsl w0, w1, w0
strb w0, [sp, 23]
str wzr, [sp, 28]
.L4:
ldrsw x0, [sp, 24]
ldr x1, [sp, 32]
add x0, x1, x0
ldrb w2, [x0]
ldrsw x0, [sp, 24]
ldr x1, [sp, 40]
add x0, x1, x0
ldrb w1, [sp, 23]
and w1, w2, w1
and w1, w1, 255
strb w1, [x0]
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L2:
ldr w0, [sp, 28]
cmp w0, 0
bne .L5
nop
nop
add sp, sp, 48
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size foo, .-foo
.align 2
.global main
.type main, %function
main:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -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, .LC0
add x0, x0, :lo12:.LC0
add x2, sp, 24
mov x3, x0
ldp x0, x1, [x3]
stp x0, x1, [x2]
add x1, x3, 15
add x0, x2, 15
ldr w1, [x1]
str w1, [x0]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
add x2, sp, 48
mov x3, x0
ldp x0, x1, [x3]
stp x0, x1, [x2]
add x1, x3, 15
add x0, x2, 15
ldr w1, [x1]
str w1, [x0]
add x1, sp, 48
add x0, sp, 24
bl foo
ldrb w1, [sp, 27]
ldrb w0, [sp, 51]
cmp w1, w0
bne .L7
ldrb w1, [sp, 28]
ldrb w0, [sp, 52]
cmp w1, w0
bne .L7
ldrb w1, [sp, 29]
ldrb w0, [sp, 53]
cmp w1, w0
bne .L7
ldrb w0, [sp, 30]
and w0, w0, 128
ldrb w1, [sp, 54]
cmp w0, w1
beq .L8
.L7:
bl abort
.L8:
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 72]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L10
bl __stack_chk_fail
.L10:
mov w0, w1
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size main, .-main
.section .rodata
.align 3
.LC0:
.byte 0
.byte 25
.byte 0
.string "\252\273\314\335"
.zero 11
.align 3
.LC1:
.byte 0
.byte 0
.byte 0
.string ""
.string ""
.zero 14
.text
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global Log0
.type Log0, %function
Log0:
.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]
bl puts
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size Log0, .-Log0
.section .rodata
.align 3
.LC0:
.string "\tparameter: %u\n"
.text
.align 2
.global Log1
.type Log1, %function
Log1:
.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]
str w1, [sp, 20]
ldr x0, [sp, 24]
bl puts
ldr w1, [sp, 20]
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
.LFE1:
.size Log1, .-Log1
.section .rodata
.align 3
.LC1:
.string "\tparameter 1: %u\n"
.align 3
.LC2:
.string "\tparameter 2: %u\n"
.text
.align 2
.global Log2
.type Log2, %function
Log2:
.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]
str w1, [sp, 20]
str w2, [sp, 16]
ldr x0, [sp, 24]
bl puts
ldr w1, [sp, 20]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
ldr w1, [sp, 16]
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size Log2, .-Log2
.section .rodata
.align 3
.LC3:
.string "\tparameter 3: %u\n"
.text
.align 2
.global Log3
.type Log3, %function
Log3:
.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, 40]
str w1, [sp, 36]
str w2, [sp, 32]
str w3, [sp, 28]
ldr x0, [sp, 40]
bl puts
ldr w1, [sp, 36]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
ldr w1, [sp, 32]
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
ldr w1, [sp, 28]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE3:
.size Log3, .-Log3
.section .rodata
.align 3
.LC4:
.string "Log 0"
.align 3
.LC5:
.string "Log 1"
.align 3
.LC6:
.string "Log 2"
.align 3
.LC7:
.string "Log 3"
.text
.align 2
.global main
.type main, %function
main:
.LFB4:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl Log0
mov w1, 1
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl Log1
mov w2, 2
mov w1, 1
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl Log2
mov w3, 3
mov w2, 2
mov w1, 1
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl Log3
mov w0, 0
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE4:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Duplicate node!"
.text
.align 2
.global create
.type create, %function
create:
.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]
str w1, [sp, 20]
ldr x0, [sp, 24]
cmp x0, 0
bne .L2
mov x0, 24
bl malloc
str x0, [sp, 24]
ldr x0, [sp, 24]
ldr w1, [sp, 20]
str w1, [x0]
ldr x0, [sp, 24]
str xzr, [x0, 16]
ldr x0, [sp, 24]
ldr x1, [x0, 16]
ldr x0, [sp, 24]
str x1, [x0, 8]
b .L3
.L2:
ldr x0, [sp, 24]
ldr w0, [x0]
ldr w1, [sp, 20]
cmp w1, w0
ble .L4
ldr x0, [sp, 24]
ldr x0, [x0, 16]
ldr w1, [sp, 20]
bl create
mov x1, x0
ldr x0, [sp, 24]
str x1, [x0, 16]
b .L3
.L4:
ldr x0, [sp, 24]
ldr w0, [x0]
ldr w1, [sp, 20]
cmp w1, w0
bge .L5
ldr x0, [sp, 24]
ldr x0, [x0, 8]
ldr w1, [sp, 20]
bl create
mov x1, x0
ldr x0, [sp, 24]
str x1, [x0, 8]
b .L3
.L5:
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
.L3:
ldr x0, [sp, 24]
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size create, .-create
.section .rodata
.align 3
.LC1:
.string "\nBalance Factor of Node %d: %d"
.text
.align 2
.global height
.type height, %function
height:
.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]
cmp x0, 0
bne .L8
mov w0, 0
b .L9
.L8:
ldr x0, [sp, 24]
ldr x0, [x0, 8]
bl height
str w0, [sp, 36]
ldr x0, [sp, 24]
ldr x0, [x0, 16]
bl height
str w0, [sp, 40]
ldr w1, [sp, 36]
ldr w0, [sp, 40]
sub w0, w1, w0
str w0, [sp, 44]
ldr x0, [sp, 24]
ldr w0, [x0]
ldr w2, [sp, 44]
mov w1, w0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
ldr w0, [sp, 36]
ldr w2, [sp, 40]
ldr w1, [sp, 40]
cmp w2, w0
csel w0, w1, w0, ge
add w0, w0, 1
.L9:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size height, .-height
.section .rodata
.align 3
.LC2:
.string "%d "
.text
.align 2
.global inorder
.type inorder, %function
inorder:
.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 .L13
ldr x0, [sp, 24]
ldr x0, [x0, 8]
bl inorder
ldr x0, [sp, 24]
ldr w0, [x0]
mov w1, w0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
ldr x0, [sp, 24]
ldr x0, [x0, 16]
bl inorder
b .L10
.L13:
nop
.L10:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size inorder, .-inorder
.section .rodata
.align 3
.LC3:
.string "\nENTER OPTION:\n1.Insert\n2.Inorder Traversal\n3.Balance Factor\n4.Exit\nEnter Option: "
.align 3
.LC4:
.string "%d"
.align 3
.LC5:
.string "Enter data: "
.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
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]
.L20:
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
add x0, sp, 24
mov x1, x0
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl __isoc99_scanf
ldr w0, [sp, 24]
cmp w0, 4
beq .L23
cmp w0, 4
bgt .L16
cmp w0, 3
beq .L17
cmp w0, 3
bgt .L16
cmp w0, 1
beq .L18
cmp w0, 2
beq .L19
b .L16
.L18:
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
add x0, sp, 28
mov x1, x0
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl __isoc99_scanf
ldr w0, [sp, 28]
mov w1, w0
ldr x0, [sp, 32]
bl create
str x0, [sp, 32]
b .L16
.L19:
ldr x0, [sp, 32]
bl inorder
b .L16
.L17:
ldr x0, [sp, 32]
bl height
b .L16
.L23:
nop
.L16:
ldr w0, [sp, 24]
cmp w0, 4
bne .L20
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 .L22
bl __stack_chk_fail
.L22:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
ldrh w0, [sp, 8]
and w0, w0, -449
strh w0, [sp, 8]
ldrh w0, [sp, 8]
and w0, w0, -57
strh w0, [sp, 8]
ldrh w0, [sp, 8]
and w0, w0, -8
strh w0, [sp, 8]
ldr x0, [sp, 8]
ubfx x0, x0, 0, 3
and w0, w0, 255
mov w1, w0
ldr x0, [sp, 8]
ubfx x0, x0, 3, 3
and w0, w0, 255
add w0, w1, w0
ldr x1, [sp, 8]
ubfx x1, x1, 6, 3
and w1, w1, 255
add w0, w0, w1
str w0, [sp, 12]
ldr w0, [sp, 12]
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
.global NONDET
.bss
.align 2
.type NONDET, %object
.size NONDET, 4
NONDET:
.zero 4
.section .rodata
.align 3
.LC0:
.string "main.c"
.align 3
.LC1:
.string "array[0]>menor"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 40]
mov x1, 0
adrp x0, NONDET
add x0, x0, :lo12:NONDET
ldr w0, [x0]
str w0, [sp, 28]
str wzr, [sp, 24]
b .L2
.L4:
adrp x0, NONDET
add x0, x0, :lo12:NONDET
ldr w2, [x0]
ldr w0, [sp, 24]
lsl x0, x0, 2
add x1, sp, 32
str w2, [x1, x0]
ldr w0, [sp, 24]
lsl x0, x0, 2
add x1, sp, 32
ldr w0, [x1, x0]
ldr w1, [sp, 28]
cmp w1, w0
blt .L3
ldr w0, [sp, 24]
lsl x0, x0, 2
add x1, sp, 32
ldr w0, [x1, x0]
str w0, [sp, 28]
.L3:
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L2:
ldr w0, [sp, 24]
cmp w0, 0
beq .L4
ldr w0, [sp, 32]
ldr w1, [sp, 28]
cmp w1, w0
blt .L5
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 22
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L5:
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 40]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L7
bl __stack_chk_fail
.L7:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
.section .rodata
.align 3
.type __PRETTY_FUNCTION__.0, %object
.size __PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
.string "main"
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Hello world!"
.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
bl getchar
mov w0, 0
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global __fsetlocking
.type __fsetlocking, %function
__fsetlocking:
.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]
str w1, [sp, 20]
ldr w0, [sp, 20]
cmp w0, 2
beq .L7
ldr w0, [sp, 20]
cmp w0, 2
bgt .L3
ldr w0, [sp, 20]
cmp w0, 0
beq .L7
ldr w0, [sp, 20]
cmp w0, 1
bne .L3
bl abort
.L3:
mov w0, 22
bl __set_errno
mov w0, -1
b .L6
.L7:
nop
mov w0, 2
.L6:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size __fsetlocking, .-__fsetlocking
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.type _test, %function
_test:
.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]
str wzr, [sp, 36]
b .L2
.L8:
ldrsw x0, [sp, 36]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
ldr x0, [x0]
str x0, [sp, 40]
ldr x0, [sp, 40]
bl strlen
cmp x0, 2
bne .L3
ldr x0, [sp, 40]
ldrb w0, [x0]
cmp w0, 45
bne .L3
ldr w0, [sp, 36]
add w0, w0, 1
ldr w1, [sp, 28]
cmp w1, w0
bne .L4
mov w0, 1
b .L5
.L4:
ldr x0, [sp, 40]
add x0, x0, 1
str x0, [sp, 40]
ldr x0, [sp, 40]
ldrb w2, [x0]
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
ldrsw x0, [sp, 36]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
ldr x0, [x0]
mov x1, x0
mov w0, w2
bl _test_single
cmp w0, 1
beq .L9
mov w0, 1
b .L5
.L3:
mov w0, 1
b .L5
.L9:
nop
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 .L8
ldr w1, [sp, 36]
ldr w0, [sp, 28]
cmp w1, w0
cset w0, ne
and w0, w0, 255
.L5:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size _test, .-_test
.align 2
.type _test_single, %function
_test_single:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
strb w0, [sp, 31]
str x1, [sp, 16]
ldrb w0, [sp, 31]
cmp w0, 122
beq .L11
cmp w0, 122
bgt .L12
cmp w0, 120
beq .L13
cmp w0, 120
bgt .L12
cmp w0, 119
beq .L14
cmp w0, 119
bgt .L12
cmp w0, 115
beq .L15
cmp w0, 115
bgt .L12
cmp w0, 114
beq .L16
cmp w0, 114
bgt .L12
cmp w0, 110
beq .L17
cmp w0, 110
bgt .L12
cmp w0, 104
beq .L18
cmp w0, 104
bgt .L12
cmp w0, 103
beq .L19
cmp w0, 103
bgt .L12
cmp w0, 102
beq .L20
cmp w0, 102
bgt .L12
cmp w0, 101
beq .L21
cmp w0, 101
bgt .L12
cmp w0, 100
beq .L22
cmp w0, 100
bgt .L12
cmp w0, 99
beq .L23
cmp w0, 99
bgt .L12
cmp w0, 98
beq .L24
cmp w0, 98
bgt .L12
cmp w0, 76
beq .L18
cmp w0, 83
beq .L25
b .L12
.L24:
ldr x0, [sp, 16]
bl _is_file_block
b .L26
.L23:
ldr x0, [sp, 16]
bl _is_file_char
b .L26
.L22:
ldr x0, [sp, 16]
bl _is_file_dir
b .L26
.L21:
ldr x0, [sp, 16]
bl _is_file
b .L26
.L20:
ldr x0, [sp, 16]
bl _is_file_regular
b .L26
.L19:
ldr x0, [sp, 16]
bl _is_file_sgid
b .L26
.L18:
ldr x0, [sp, 16]
bl _is_file_symlink
b .L26
.L17:
ldr x0, [sp, 16]
bl _is_string_not_empty
b .L26
.L16:
ldr x0, [sp, 16]
bl _is_file_readable
b .L26
.L25:
ldr x0, [sp, 16]
bl _is_file_socket
b .L26
.L15:
ldr x0, [sp, 16]
bl _is_file_size
b .L26
.L14:
ldr x0, [sp, 16]
bl _is_file_writable
b .L26
.L13:
ldr x0, [sp, 16]
bl _is_file_executable
b .L26
.L11:
ldr x0, [sp, 16]
bl _is_string_empty
b .L26
.L12:
mov w0, 0
.L26:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size _test_single, .-_test_single
.align 2
.type _is_file_block, %function
_is_file_block:
.LFB8:
.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
add x0, sp, 40
mov x1, x0
ldr x0, [sp, 24]
bl stat
cmp w0, 0
beq .L28
mov w0, 0
b .L30
.L28:
ldr w0, [sp, 56]
and w0, w0, 61440
cmp w0, 24576
cset w0, eq
and w0, w0, 255
.L30:
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 .L31
bl __stack_chk_fail
.L31:
mov w0, w1
ldp x29, x30, [sp], 176
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size _is_file_block, .-_is_file_block
.align 2
.type _is_file_char, %function
_is_file_char:
.LFB9:
.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
add x0, sp, 40
mov x1, x0
ldr x0, [sp, 24]
bl stat
cmp w0, 0
beq .L33
mov w0, 0
b .L35
.L33:
ldr w0, [sp, 56]
and w0, w0, 61440
cmp w0, 8192
cset w0, eq
and w0, w0, 255
.L35:
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 .L36
bl __stack_chk_fail
.L36:
mov w0, w1
ldp x29, x30, [sp], 176
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size _is_file_char, .-_is_file_char
.align 2
.type _is_file_dir, %function
_is_file_dir:
.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
add x0, sp, 40
mov x1, x0
ldr x0, [sp, 24]
bl stat
cmp w0, 0
beq .L38
mov w0, 0
b .L40
.L38:
ldr w0, [sp, 56]
and w0, w0, 61440
cmp w0, 16384
cset w0, eq
and w0, w0, 255
.L40:
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 .L41
bl __stack_chk_fail
.L41:
mov w0, w1
ldp x29, x30, [sp], 176
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size _is_file_dir, .-_is_file_dir
.align 2
.type _is_file, %function
_is_file:
.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
add x0, sp, 40
mov x1, x0
ldr x0, [sp, 24]
bl stat
cmp w0, 0
cset w0, eq
and w0, w0, 255
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 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 _is_file, .-_is_file
.align 2
.type _is_file_regular, %function
_is_file_regular:
.LFB12:
.cfi_startproc
stp x29, x30, [sp, -176]!
.cfi_def_cfa_offset 176
.cfi_offset 29, -176
.cfi_offset 30, -168
mov x29, sp
str x0, [sp, 24]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 168]
mov x1, 0
add x0, sp, 40
mov x1, x0
ldr x0, [sp, 24]
bl stat
cmp w0, 0
beq .L46
mov w0, 0
b .L48
.L46:
ldr w0, [sp, 56]
and w0, w0, 61440
cmp w0, 32768
cset w0, eq
and w0, w0, 255
.L48:
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 .L49
bl __stack_chk_fail
.L49:
mov w0, w1
ldp x29, x30, [sp], 176
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE12:
.size _is_file_regular, .-_is_file_regular
.align 2
.type _is_file_sgid, %function
_is_file_sgid:
.LFB13:
.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
add x0, sp, 40
mov x1, x0
ldr x0, [sp, 24]
bl stat
cmp w0, 0
beq .L51
mov w0, 0
b .L53
.L51:
ldr w0, [sp, 56]
lsr w0, w0, 10
and w0, w0, 1
.L53:
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 .L54
bl __stack_chk_fail
.L54:
mov w0, w1
ldp x29, x30, [sp], 176
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE13:
.size _is_file_sgid, .-_is_file_sgid
.align 2
.type _is_file_symlink, %function
_is_file_symlink:
.LFB14:
.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
add x0, sp, 40
mov x1, x0
ldr x0, [sp, 24]
bl lstat
cmp w0, 0
beq .L56
mov w0, 0
b .L58
.L56:
ldr w0, [sp, 56]
and w0, w0, 61440
cmp w0, 40960
cset w0, eq
and w0, w0, 255
.L58:
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 .L59
bl __stack_chk_fail
.L59:
mov w0, w1
ldp x29, x30, [sp], 176
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE14:
.size _is_file_symlink, .-_is_file_symlink
.align 2
.type _is_string_not_empty, %function
_is_string_not_empty:
.LFB15:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
ldr x0, [sp, 8]
ldrb w0, [x0]
cmp w0, 0
cset w0, ne
and w0, w0, 255
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE15:
.size _is_string_not_empty, .-_is_string_not_empty
.align 2
.type _is_file_rwx, %function
_is_file_rwx:
.LFB16:
.cfi_startproc
stp x29, x30, [sp, -192]!
.cfi_def_cfa_offset 192
.cfi_offset 29, -192
.cfi_offset 30, -184
mov x29, sp
str x0, [sp, 40]
str w1, [sp, 36]
str w2, [sp, 32]
str w3, [sp, 28]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 184]
mov x1, 0
add x0, sp, 56
mov x1, x0
ldr x0, [sp, 40]
bl stat
cmp w0, 0
beq .L63
mov w0, 0
b .L68
.L63:
bl geteuid
mov w1, w0
ldr w0, [sp, 80]
cmp w1, w0
bne .L65
ldr w1, [sp, 72]
ldr w0, [sp, 36]
and w0, w1, w0
cmp w0, 0
beq .L65
mov w0, 1
b .L68
.L65:
ldr w1, [sp, 72]
ldr w0, [sp, 32]
and w0, w1, w0
cmp w0, 0
beq .L66
ldr w0, [sp, 84]
bl _file_rwx_g
cmp w0, 1
bne .L67
mov w0, 1
b .L68
.L67:
bl geteuid
mov w1, w0
ldr w0, [sp, 80]
cmp w1, w0
bne .L66
mov w0, 0
b .L68
.L66:
ldr w1, [sp, 72]
ldr w0, [sp, 28]
and w0, w1, w0
cmp w0, 0
cset w0, ne
and w0, w0, 255
.L68:
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 184]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L69
bl __stack_chk_fail
.L69:
mov w0, w1
ldp x29, x30, [sp], 192
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE16:
.size _is_file_rwx, .-_is_file_rwx
.align 2
.type _file_rwx_g, %function
_file_rwx_g:
.LFB17:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str w0, [sp, 28]
bl geteuid
bl getpwuid
str x0, [sp, 48]
ldr x0, [sp, 48]
cmp x0, 0
bne .L71
mov w0, 0
b .L72
.L71:
ldr w0, [sp, 28]
bl getgrgid
str x0, [sp, 56]
ldr x0, [sp, 56]
cmp x0, 0
bne .L73
mov w0, 0
b .L72
.L73:
ldr x0, [sp, 56]
ldr x0, [x0, 24]
str x0, [sp, 40]
b .L74
.L76:
ldr x0, [sp, 48]
ldr x2, [x0]
ldr x0, [sp, 40]
ldr x0, [x0]
mov x1, x0
mov x0, x2
bl strcmp
cmp w0, 0
bne .L75
mov w0, 1
b .L72
.L75:
ldr x0, [sp, 40]
add x0, x0, 8
str x0, [sp, 40]
.L74:
ldr x0, [sp, 40]
ldr x0, [x0]
cmp x0, 0
bne .L76
mov w0, 0
.L72:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE17:
.size _file_rwx_g, .-_file_rwx_g
.align 2
.type _is_file_readable, %function
_is_file_readable:
.LFB18:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
mov w3, 4
mov w2, 32
mov w1, 256
ldr x0, [sp, 24]
bl _is_file_rwx
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE18:
.size _is_file_readable, .-_is_file_readable
.align 2
.type _is_file_socket, %function
_is_file_socket:
.LFB19:
.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
add x0, sp, 40
mov x1, x0
ldr x0, [sp, 24]
bl stat
cmp w0, 0
beq .L80
mov w0, 0
b .L82
.L80:
ldr w0, [sp, 56]
and w0, w0, 49152
cmp w0, 0
cset w0, ne
and w0, w0, 255
.L82:
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 .L83
bl __stack_chk_fail
.L83:
mov w0, w1
ldp x29, x30, [sp], 176
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE19:
.size _is_file_socket, .-_is_file_socket
.align 2
.type _is_file_size, %function
_is_file_size:
.LFB20:
.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
add x0, sp, 40
mov x1, x0
ldr x0, [sp, 24]
bl stat
cmp w0, 0
beq .L85
mov w0, 0
b .L87
.L85:
ldr x0, [sp, 88]
cmp x0, 0
cset w0, gt
and w0, w0, 255
.L87:
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 .L88
bl __stack_chk_fail
.L88:
mov w0, w1
ldp x29, x30, [sp], 176
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE20:
.size _is_file_size, .-_is_file_size
.align 2
.type _is_string_empty, %function
_is_string_empty:
.LFB21:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
ldr x0, [sp, 8]
ldrb w0, [x0]
cmp w0, 0
cset w0, eq
and w0, w0, 255
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE21:
.size _is_string_empty, .-_is_string_empty
.align 2
.type _is_file_writable, %function
_is_file_writable:
.LFB22:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
mov w3, 2
mov w2, 16
mov w1, 128
ldr x0, [sp, 24]
bl _is_file_rwx
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE22:
.size _is_file_writable, .-_is_file_writable
.align 2
.type _is_file_executable, %function
_is_file_executable:
.LFB23:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
mov w3, 1
mov w2, 8
mov w1, 64
ldr x0, [sp, 24]
bl _is_file_rwx
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE23:
.size _is_file_executable, .-_is_file_executable
.section .rodata
.align 3
.LC0:
.string "Usage: test [expression]\n [ [expression] ]\n"
.text
.align 2
.type _usage, %function
_usage:
.LFB24:
.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, 49
mov x1, 1
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl fwrite
mov w0, 1
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE24:
.size _usage, .-_usage
.section .rodata
.align 3
.LC1:
.string "["
.align 3
.LC2:
.string "]"
.text
.align 2
.global main
.type main, %function
main:
.LFB25:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
ldr w0, [sp, 28]
cmp w0, 1
bne .L98
mov w0, 1
b .L99
.L98:
ldr x0, [sp, 16]
ldr x2, [x0]
adrp x0, .LC1
add x1, x0, :lo12:.LC1
mov x0, x2
bl strcmp
cmp w0, 0
bne .L100
ldr w0, [sp, 28]
sub w0, w0, #1
str w0, [sp, 28]
ldrsw x0, [sp, 28]
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
ldr x2, [x0]
adrp x0, .LC2
add x1, x0, :lo12:.LC2
mov x0, x2
bl strcmp
cmp w0, 0
beq .L100
bl _usage
b .L99
.L100:
ldr w0, [sp, 28]
sub w2, w0, #1
ldr x0, [sp, 16]
add x0, x0, 8
mov x1, x0
mov w0, w2
bl _test
.L99:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE25:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global checkpoint
.type checkpoint, %function
checkpoint:
.LFB0:
.cfi_startproc
nop
ret
.cfi_endproc
.LFE0:
.size checkpoint, .-checkpoint
.global x
.data
.align 2
.type x, %object
.size x, 4
x:
.word 3
.global p1
.section .data.rel.local,"aw"
.align 3
.type p1, %object
.size p1, 8
p1:
.xword x
.global p2
.align 3
.type p2, %object
.size p2, 8
p2:
.xword x
.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 checkpoint
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 "success"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 72]
mov x1, 0
mov x0, 37
bl malloc
str x0, [sp, 24]
ldr x0, [sp, 24]
bl cfree
mov w1, 32768
mov w0, -3
bl mallopt
add x0, sp, 32
mov x8, x0
bl mallinfo
mov x0, 16
bl malloc_trim
bl malloc_stats
bl malloc_get_state
sxtw x0, w0
str x0, [sp, 24]
ldr x0, [sp, 24]
bl free
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 72]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L3
bl __stack_chk_fail
.L3:
mov w0, w1
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Enter the number of rows: "
.align 3
.LC1:
.string "%d"
.align 3
.LC2:
.string " "
.align 3
.LC3:
.string "* "
.align 3
.LC4:
.string " "
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 40]
mov x1, 0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
add x0, sp, 24
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
ldr w0, [sp, 24]
str w0, [sp, 28]
b .L2
.L10:
mov w0, 1
str w0, [sp, 32]
b .L3
.L4:
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L3:
ldr w1, [sp, 28]
ldr w0, [sp, 32]
cmp w1, w0
bgt .L4
mov w0, 1
str w0, [sp, 36]
b .L5
.L9:
ldr w0, [sp, 28]
cmp w0, 1
beq .L6
ldr w0, [sp, 24]
ldr w1, [sp, 28]
cmp w1, w0
beq .L6
ldr w0, [sp, 36]
cmp w0, 1
beq .L6
ldr w0, [sp, 24]
ldr w1, [sp, 36]
cmp w1, w0
bne .L7
.L6:
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
b .L8
.L7:
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
.L8:
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L5:
ldr w0, [sp, 24]
ldr w1, [sp, 36]
cmp w1, w0
ble .L9
mov w0, 10
bl putchar
ldr w0, [sp, 28]
sub w0, w0, #1
str w0, [sp, 28]
.L2:
ldr w0, [sp, 28]
cmp w0, 0
bgt .L10
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 40]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L12
bl __stack_chk_fail
.L12:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global str
.bss
.align 3
.type str, %object
.size str, 20
str:
.zero 20
.global qu
.align 2
.type qu, %object
.size qu, 4
qu:
.zero 4
.section .rodata
.align 3
.LC0:
.string "%s"
.align 3
.LC1:
.string "%d\n"
.align 3
.LC2:
.string "X"
.align 3
.LC3:
.string "-1"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str wzr, [sp, 28]
adrp x0, str
add x1, x0, :lo12:str
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
str wzr, [sp, 24]
b .L2
.L5:
adrp x0, str
add x1, x0, :lo12:str
ldrsw x0, [sp, 24]
ldrb w0, [x1, x0]
cmp w0, 63
bne .L3
adrp x0, qu
add x0, x0, :lo12:qu
ldr w1, [sp, 24]
str w1, [x0]
b .L4
.L3:
mov w1, 10
ldr w0, [sp, 24]
sub w1, w1, w0
adrp x0, str
add x2, x0, :lo12:str
ldrsw x0, [sp, 24]
ldrb w0, [x2, x0]
sub w0, w0, #48
mul w0, w1, w0
ldr w1, [sp, 28]
add w0, w1, w0
str w0, [sp, 28]
.L4:
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L2:
ldr w0, [sp, 24]
cmp w0, 8
ble .L5
adrp x0, str
add x0, x0, :lo12:str
ldrb w0, [x0, 9]
cmp w0, 63
bne .L6
adrp x0, qu
add x0, x0, :lo12:qu
mov w1, 9
str w1, [x0]
b .L7
.L6:
adrp x0, str
add x0, x0, :lo12:str
ldrb w0, [x0, 9]
cmp w0, 88
bne .L8
ldr w0, [sp, 28]
add w0, w0, 10
str w0, [sp, 28]
b .L7
.L8:
adrp x0, str
add x0, x0, :lo12:str
ldrb w0, [x0, 9]
sub w0, w0, #48
ldr w1, [sp, 28]
add w0, w1, w0
str w0, [sp, 28]
.L7:
str wzr, [sp, 24]
b .L9
.L12:
adrp x0, qu
add x0, x0, :lo12:qu
ldr w0, [x0]
mov w1, 10
sub w1, w1, w0
ldr w0, [sp, 24]
mul w1, w1, w0
ldr w0, [sp, 28]
add w1, w1, w0
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 .L17
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L9:
ldr w0, [sp, 24]
cmp w0, 9
ble .L12
b .L11
.L17:
nop
.L11:
ldr w0, [sp, 24]
cmp w0, 9
bgt .L13
ldr w1, [sp, 24]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
b .L14
.L13:
ldr w0, [sp, 28]
add w1, w0, 10
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
bne .L15
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl puts
b .L14
.L15:
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl puts
.L14:
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 "<%s>"
.align 3
.LC1:
.string "result: %s\n"
.text
.align 2
.global test
.type test, %function
test:
.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]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 72]
mov x1, 0
add x4, sp, 32
ldr x3, [sp, 24]
adrp x0, .LC0
add x2, x0, :lo12:.LC0
mov x1, 1024
mov x0, x4
bl snprintf
add x0, sp, 32
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 72]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L2
bl __stack_chk_fail
.L2:
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size test, .-test
.align 2
.global main
.type main, %function
main:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
ldr w0, [sp, 28]
cmp w0, 1
ble .L4
ldr x0, [sp, 16]
ldr x0, [x0, 8]
str x0, [sp, 40]
ldr x0, [sp, 40]
bl strlen
cmp x0, 40
bhi .L4
ldr x0, [sp, 40]
bl test
.L4:
mov w0, 0
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global test_vld1u8
.type test_vld1u8, %function
test_vld1u8:
.LFB4340:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str xzr, [sp, 8]
ldr x0, [sp, 8]
ldr d0, [x0]
str d0, [sp]
nop
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE4340:
.size test_vld1u8, .-test_vld1u8
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.local thread1_tid
.comm thread1_tid,4,4
.local thread1_tid_cond
.comm thread1_tid_cond,48,8
.data
.align 3
.type thread1_tid_mutex, %object
.size thread1_tid_mutex, 48
thread1_tid_mutex:
.word 0
.word 0
.word 0
.word 0
.word 2
.word 0
.xword 0
.xword 0
.zero 8
.local thread1_sigusr1_hit
.comm thread1_sigusr1_hit,4,4
.local thread1_sigusr2_hit
.comm thread1_sigusr2_hit,4,4
.local thread2_tid
.comm thread2_tid,4,4
.local thread2_tid_cond
.comm thread2_tid_cond,48,8
.align 3
.type thread2_tid_mutex, %object
.size thread2_tid_mutex, 48
thread2_tid_mutex:
.word 0
.word 0
.word 0
.word 0
.word 2
.word 0
.xword 0
.xword 0
.zero 8
.local thread2_sigusr1_hit
.comm thread2_sigusr1_hit,4,4
.local thread2_sigusr2_hit
.comm thread2_sigusr2_hit,4,4
.align 3
.type terminate_mutex, %object
.size terminate_mutex, 48
terminate_mutex:
.word 0
.word 0
.word 0
.word 0
.word 2
.word 0
.xword 0
.xword 0
.zero 8
.section .rodata
.align 3
.LC0:
.string "program.c"
.align 3
.LC1:
.string "i == 0"
.align 3
.LC2:
.string "i == EBUSY"
.align 3
.LC3:
.string "now.tv_sec >= start.tv_sec"
.align 3
.LC4:
.string "Timed out waiting for internal lock!\n"
.text
.align 2
.type timed_mutex_lock, %function
timed_mutex_lock:
.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]
.cfi_offset 19, -80
.cfi_offset 20, -72
str x0, [sp, 40]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 88]
mov x1, 0
add x0, sp, 56
mov x1, x0
mov w0, 1
bl clock_gettime
str w0, [sp, 52]
ldr w0, [sp, 52]
cmp w0, 0
beq .L2
adrp x0, __PRETTY_FUNCTION__.8
add x3, x0, :lo12:__PRETTY_FUNCTION__.8
mov w2, 68
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L2:
ldr x0, [sp, 40]
bl pthread_mutex_trylock
str w0, [sp, 52]
ldr w0, [sp, 52]
cmp w0, 0
beq .L12
ldr w0, [sp, 52]
cmp w0, 16
beq .L5
adrp x0, __PRETTY_FUNCTION__.8
add x3, x0, :lo12:__PRETTY_FUNCTION__.8
mov w2, 75
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl __assert_fail
.L5:
add x0, sp, 72
mov x1, x0
mov w0, 1
bl clock_gettime
str w0, [sp, 52]
ldr w0, [sp, 52]
cmp w0, 0
beq .L6
adrp x0, __PRETTY_FUNCTION__.8
add x3, x0, :lo12:__PRETTY_FUNCTION__.8
mov w2, 78
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L6:
ldr x1, [sp, 72]
ldr x0, [sp, 56]
cmp x1, x0
bge .L7
adrp x0, __PRETTY_FUNCTION__.8
add x3, x0, :lo12:__PRETTY_FUNCTION__.8
mov w2, 79
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl __assert_fail
.L7:
ldr x1, [sp, 72]
ldr x0, [sp, 56]
sub x19, x1, x0
mov x0, 178
bl syscall
mov x20, x0
bl getpid
sxtw x0, w0
cmp x20, x0
bne .L8
mov x0, 10
b .L9
.L8:
mov x0, 15
.L9:
cmp x0, x19
bgt .L2
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 37
mov x1, 1
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl fwrite
mov w0, 1
bl exit
.L12:
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 88]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L10
bl __stack_chk_fail
.L10:
ldp x19, x20, [sp, 16]
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_restore 20
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size timed_mutex_lock, .-timed_mutex_lock
.section .rodata
.align 3
.LC5:
.string "siginfo->si_signo == signo"
.align 3
.LC6:
.string "siginfo->si_code == SI_TKILL"
.align 3
.LC7:
.string "siginfo->si_pid == getpid ()"
.align 3
.LC8:
.string "0"
.align 3
.LC9:
.string "Signal %d for TID %lu has been already hit!\n"
.text
.align 2
.type handler, %function
handler:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -64
str w0, [sp, 60]
str x1, [sp, 48]
str x2, [sp, 40]
ldr x0, [sp, 48]
ldr w0, [x0]
ldr w1, [sp, 60]
cmp w1, w0
beq .L14
adrp x0, __PRETTY_FUNCTION__.7
add x3, x0, :lo12:__PRETTY_FUNCTION__.7
mov w2, 92
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl __assert_fail
.L14:
ldr x0, [sp, 48]
ldr w0, [x0, 8]
cmn w0, #6
beq .L15
adrp x0, __PRETTY_FUNCTION__.7
add x3, x0, :lo12:__PRETTY_FUNCTION__.7
mov w2, 93
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl __assert_fail
.L15:
ldr x0, [sp, 48]
ldr w19, [x0, 16]
bl getpid
cmp w19, w0
beq .L16
adrp x0, __PRETTY_FUNCTION__.7
add x3, x0, :lo12:__PRETTY_FUNCTION__.7
mov w2, 94
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl __assert_fail
.L16:
mov x0, 178
bl syscall
mov x1, x0
adrp x0, thread1_tid
add x0, x0, :lo12:thread1_tid
ldr w0, [x0]
sxtw x0, w0
cmp x1, x0
bne .L17
ldr w0, [sp, 60]
cmp w0, 10
bne .L18
adrp x0, thread1_sigusr1_hit
add x0, x0, :lo12:thread1_sigusr1_hit
str x0, [sp, 72]
b .L19
.L18:
ldr w0, [sp, 60]
cmp w0, 12
bne .L20
adrp x0, thread1_sigusr2_hit
add x0, x0, :lo12:thread1_sigusr2_hit
str x0, [sp, 72]
b .L19
.L20:
adrp x0, __PRETTY_FUNCTION__.7
add x3, x0, :lo12:__PRETTY_FUNCTION__.7
mov w2, 103
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl __assert_fail
.L17:
mov x0, 178
bl syscall
mov x1, x0
adrp x0, thread2_tid
add x0, x0, :lo12:thread2_tid
ldr w0, [x0]
sxtw x0, w0
cmp x1, x0
bne .L21
ldr w0, [sp, 60]
cmp w0, 10
bne .L22
adrp x0, thread2_sigusr1_hit
add x0, x0, :lo12:thread2_sigusr1_hit
str x0, [sp, 72]
b .L19
.L22:
ldr w0, [sp, 60]
cmp w0, 12
bne .L23
adrp x0, thread2_sigusr2_hit
add x0, x0, :lo12:thread2_sigusr2_hit
str x0, [sp, 72]
b .L19
.L23:
adrp x0, __PRETTY_FUNCTION__.7
add x3, x0, :lo12:__PRETTY_FUNCTION__.7
mov w2, 112
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl __assert_fail
.L21:
adrp x0, __PRETTY_FUNCTION__.7
add x3, x0, :lo12:__PRETTY_FUNCTION__.7
mov w2, 115
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl __assert_fail
.L19:
ldr x0, [sp, 72]
ldr w0, [x0]
cmp w0, 0
beq .L24
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x19, [x0]
mov x0, 178
bl syscall
mov x3, x0
ldr w2, [sp, 60]
adrp x0, .LC9
add x1, x0, :lo12:.LC9
mov x0, x19
bl fprintf
mov w0, 1
bl exit
.L24:
ldr x0, [sp, 72]
mov w1, 1
str w1, [x0]
nop
ldr x19, [sp, 16]
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size handler, .-handler
.section .rodata
.align 3
.LC10:
.string "Thread 1 signal SIGUSR1 not hit!\n"
.align 3
.LC11:
.string "Thread 1 signal SIGUSR2 not hit!\n"
.text
.align 2
.type thread1_func, %function
thread1_func:
.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, thread1_tid_mutex
add x0, x0, :lo12:thread1_tid_mutex
bl timed_mutex_lock
mov x0, 178
bl syscall
mov w1, w0
adrp x0, thread1_tid
add x0, x0, :lo12:thread1_tid
str w1, [x0]
adrp x0, thread1_tid_cond
add x0, x0, :lo12:thread1_tid_cond
bl pthread_cond_signal
str w0, [sp, 44]
ldr w0, [sp, 44]
cmp w0, 0
beq .L26
adrp x0, __PRETTY_FUNCTION__.6
add x3, x0, :lo12:__PRETTY_FUNCTION__.6
mov w2, 137
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L26:
adrp x0, thread1_tid_mutex
add x0, x0, :lo12:thread1_tid_mutex
bl pthread_mutex_unlock
str w0, [sp, 44]
ldr w0, [sp, 44]
cmp w0, 0
beq .L27
adrp x0, __PRETTY_FUNCTION__.6
add x3, x0, :lo12:__PRETTY_FUNCTION__.6
mov w2, 139
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L27:
adrp x0, terminate_mutex
add x0, x0, :lo12:terminate_mutex
bl timed_mutex_lock
adrp x0, terminate_mutex
add x0, x0, :lo12:terminate_mutex
bl pthread_mutex_unlock
str w0, [sp, 44]
ldr w0, [sp, 44]
cmp w0, 0
beq .L28
adrp x0, __PRETTY_FUNCTION__.6
add x3, x0, :lo12:__PRETTY_FUNCTION__.6
mov w2, 145
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L28:
adrp x0, thread1_sigusr1_hit
add x0, x0, :lo12:thread1_sigusr1_hit
ldr w0, [x0]
cmp w0, 0
bne .L29
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 33
mov x1, 1
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl fwrite
mov w0, 1
bl exit
.L29:
adrp x0, thread1_sigusr2_hit
add x0, x0, :lo12:thread1_sigusr2_hit
ldr w0, [x0]
cmp w0, 0
bne .L30
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 33
mov x1, 1
adrp x0, .LC11
add x0, x0, :lo12:.LC11
bl fwrite
mov w0, 1
bl exit
.L30:
mov x0, 0
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size thread1_func, .-thread1_func
.section .rodata
.align 3
.LC12:
.string "Thread 2 signal SIGUSR1 not hit!\n"
.align 3
.LC13:
.string "Thread 2 signal SIGUSR2 not hit!\n"
.text
.align 2
.type thread2_func, %function
thread2_func:
.LFB9:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
adrp x0, thread2_tid_mutex
add x0, x0, :lo12:thread2_tid_mutex
bl timed_mutex_lock
mov x0, 178
bl syscall
mov w1, w0
adrp x0, thread2_tid
add x0, x0, :lo12:thread2_tid
str w1, [x0]
adrp x0, thread2_tid_cond
add x0, x0, :lo12:thread2_tid_cond
bl pthread_cond_signal
str w0, [sp, 44]
ldr w0, [sp, 44]
cmp w0, 0
beq .L33
adrp x0, __PRETTY_FUNCTION__.5
add x3, x0, :lo12:__PRETTY_FUNCTION__.5
mov w2, 172
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L33:
adrp x0, thread2_tid_mutex
add x0, x0, :lo12:thread2_tid_mutex
bl pthread_mutex_unlock
str w0, [sp, 44]
ldr w0, [sp, 44]
cmp w0, 0
beq .L34
adrp x0, __PRETTY_FUNCTION__.5
add x3, x0, :lo12:__PRETTY_FUNCTION__.5
mov w2, 174
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L34:
adrp x0, terminate_mutex
add x0, x0, :lo12:terminate_mutex
bl timed_mutex_lock
adrp x0, terminate_mutex
add x0, x0, :lo12:terminate_mutex
bl pthread_mutex_unlock
str w0, [sp, 44]
ldr w0, [sp, 44]
cmp w0, 0
beq .L35
adrp x0, __PRETTY_FUNCTION__.5
add x3, x0, :lo12:__PRETTY_FUNCTION__.5
mov w2, 180
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L35:
adrp x0, thread2_sigusr1_hit
add x0, x0, :lo12:thread2_sigusr1_hit
ldr w0, [x0]
cmp w0, 0
bne .L36
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 33
mov x1, 1
adrp x0, .LC12
add x0, x0, :lo12:.LC12
bl fwrite
mov w0, 1
bl exit
.L36:
adrp x0, thread2_sigusr2_hit
add x0, x0, :lo12:thread2_sigusr2_hit
ldr w0, [x0]
cmp w0, 0
bne .L37
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 33
mov x1, 1
adrp x0, .LC13
add x0, x0, :lo12:.LC13
bl fwrite
mov w0, 1
bl exit
.L37:
mov x0, 0
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size thread2_func, .-thread2_func
.section .rodata
.align 3
.LC14:
.string "r"
.align 3
.LC15:
.string "fopen (\"%s\") for \"%s\": %s\n"
.align 3
.LC16:
.string "s != NULL"
.align 3
.LC17:
.string "fclose (\"%s\") for \"%s\": %s\n"
.align 3
.LC18:
.string "fgets (\"%s\": %s\n"
.align 3
.LC19:
.string "\"%s\": No line \"%s\" found.\n"
.text
.align 2
.type proc_string, %function
proc_string:
.LFB10:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -64
str x0, [sp, 40]
str x1, [sp, 32]
ldr x0, [sp, 32]
bl strlen
str x0, [sp, 56]
adrp x0, .LC14
add x1, x0, :lo12:.LC14
ldr x0, [sp, 40]
bl fopen
str x0, [sp, 64]
ldr x0, [sp, 64]
cmp x0, 0
bne .L41
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x19, [x0]
bl __errno_location
ldr w0, [x0]
bl strerror
mov x4, x0
ldr x3, [sp, 32]
ldr x2, [sp, 40]
adrp x0, .LC15
add x1, x0, :lo12:.LC15
mov x0, x19
bl fprintf
mov w0, 1
bl exit
.L46:
mov w1, 10
adrp x0, buf.4
add x0, x0, :lo12:buf.4
bl strchr
str x0, [sp, 72]
ldr x0, [sp, 72]
cmp x0, 0
bne .L42
adrp x0, __PRETTY_FUNCTION__.3
add x3, x0, :lo12:__PRETTY_FUNCTION__.3
mov w2, 215
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC16
add x0, x0, :lo12:.LC16
bl __assert_fail
.L42:
ldr x0, [sp, 72]
strb wzr, [x0]
ldr x2, [sp, 56]
ldr x1, [sp, 32]
adrp x0, buf.4
add x0, x0, :lo12:buf.4
bl strncmp
cmp w0, 0
beq .L43
b .L41
.L43:
ldr x0, [sp, 64]
bl fclose
cmp w0, 0
beq .L44
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x19, [x0]
bl __errno_location
ldr w0, [x0]
bl strerror
mov x4, x0
ldr x3, [sp, 32]
ldr x2, [sp, 40]
adrp x0, .LC17
add x1, x0, :lo12:.LC17
mov x0, x19
bl fprintf
mov w0, 1
bl exit
.L44:
ldr x1, [sp, 56]
adrp x0, buf.4
add x0, x0, :lo12:buf.4
add x0, x1, x0
b .L48
.L41:
bl __errno_location
str wzr, [x0]
ldr x2, [sp, 64]
mov w1, 2048
adrp x0, buf.4
add x0, x0, :lo12:buf.4
bl fgets
cmp x0, 0
bne .L46
bl __errno_location
ldr w0, [x0]
cmp w0, 0
beq .L47
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x19, [x0]
bl __errno_location
ldr w0, [x0]
bl strerror
mov x3, x0
ldr x2, [sp, 40]
adrp x0, .LC18
add x1, x0, :lo12:.LC18
mov x0, x19
bl fprintf
mov w0, 1
bl exit
.L47:
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x4, [x0]
ldr x3, [sp, 32]
ldr x2, [sp, 40]
adrp x0, .LC19
add x1, x0, :lo12:.LC19
mov x0, x4
bl fprintf
mov w0, 1
bl exit
.L48:
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
.LFE10:
.size proc_string, .-proc_string
.section .rodata
.align 3
.LC20:
.string "\"%s\":\"%s\": %ld, %s\n"
.text
.align 2
.type proc_ulong, %function
proc_ulong:
.LFB11:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -64
str x0, [sp, 40]
str x1, [sp, 32]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 72]
mov x1, 0
ldr x1, [sp, 32]
ldr x0, [sp, 40]
bl proc_string
str x0, [sp, 56]
bl __errno_location
str wzr, [x0]
add x0, sp, 48
mov w2, 10
mov x1, x0
ldr x0, [sp, 56]
bl strtol
str x0, [sp, 64]
ldr x0, [sp, 64]
cmp x0, 0
blt .L50
ldr x1, [sp, 64]
mov x0, 9223372036854775807
cmp x1, x0
beq .L50
ldr x0, [sp, 48]
cmp x0, 0
beq .L51
ldr x0, [sp, 48]
ldrb w0, [x0]
cmp w0, 0
beq .L51
.L50:
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x19, [x0]
bl __errno_location
ldr w0, [x0]
bl strerror
mov x5, x0
ldr x4, [sp, 64]
ldr x3, [sp, 32]
ldr x2, [sp, 40]
adrp x0, .LC20
add x1, x0, :lo12:.LC20
mov x0, x19
bl fprintf
mov w0, 1
bl exit
.L51:
ldr x0, [sp, 64]
mov x1, x0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 72]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L53
bl __stack_chk_fail
.L53:
mov x0, x1
ldr x19, [sp, 16]
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size proc_ulong, .-proc_ulong
.section .rodata
.align 3
.LC21:
.string "/proc/%lu/status"
.align 3
.LC22:
.string "i > 0"
.align 3
.LC23:
.string "State:\t"
.align 3
.LC24:
.string "T (tracing stop)"
.align 3
.LC25:
.string "t (tracing stop)"
.align 3
.LC26:
.string "sched_yield()"
.align 3
.LC27:
.string "Timed out waiting for PID %lu \"%s\" (now it is \"%s\")!\n"
.text
.align 2
.type state_wait, %function
state_wait:
.LFB12:
.cfi_startproc
stp x29, x30, [sp, -112]!
.cfi_def_cfa_offset 112
.cfi_offset 29, -112
.cfi_offset 30, -104
mov x29, sp
stp x19, x20, [sp, 16]
.cfi_offset 19, -96
.cfi_offset 20, -88
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, 104]
mov x1, 0
ldrsw x0, [sp, 44]
add x3, sp, 56
mov x2, x0
adrp x0, .LC21
add x1, x0, :lo12:.LC21
mov x0, x3
bl asprintf
str w0, [sp, 52]
ldr w0, [sp, 52]
cmp w0, 0
bgt .L55
adrp x0, __PRETTY_FUNCTION__.2
add x3, x0, :lo12:__PRETTY_FUNCTION__.2
mov w2, 266
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC22
add x0, x0, :lo12:.LC22
bl __assert_fail
.L55:
add x0, sp, 72
mov x1, x0
mov w0, 1
bl clock_gettime
str w0, [sp, 52]
ldr w0, [sp, 52]
cmp w0, 0
beq .L56
adrp x0, __PRETTY_FUNCTION__.2
add x3, x0, :lo12:__PRETTY_FUNCTION__.2
mov w2, 269
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L56:
ldr x2, [sp, 56]
adrp x0, .LC23
add x1, x0, :lo12:.LC23
mov x0, x2
bl proc_string
str x0, [sp, 64]
adrp x0, .LC24
add x1, x0, :lo12:.LC24
ldr x0, [sp, 64]
bl strcmp
cmp w0, 0
bne .L57
adrp x0, .LC25
add x0, x0, :lo12:.LC25
str x0, [sp, 64]
.L57:
ldr x1, [sp, 32]
ldr x0, [sp, 64]
bl strcmp
cmp w0, 0
bne .L58
ldr x0, [sp, 56]
bl free
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 104]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L65
b .L66
.L58:
bl sched_yield
cmp w0, 0
beq .L60
adrp x0, .LC26
add x0, x0, :lo12:.LC26
bl perror
mov w0, 1
bl exit
.L60:
add x0, sp, 88
mov x1, x0
mov w0, 1
bl clock_gettime
str w0, [sp, 52]
ldr w0, [sp, 52]
cmp w0, 0
beq .L61
adrp x0, __PRETTY_FUNCTION__.2
add x3, x0, :lo12:__PRETTY_FUNCTION__.2
mov w2, 294
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L61:
ldr x1, [sp, 88]
ldr x0, [sp, 72]
cmp x1, x0
bge .L62
adrp x0, __PRETTY_FUNCTION__.2
add x3, x0, :lo12:__PRETTY_FUNCTION__.2
mov w2, 295
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl __assert_fail
.L62:
ldr x1, [sp, 88]
ldr x0, [sp, 72]
sub x19, x1, x0
mov x0, 178
bl syscall
mov x20, x0
bl getpid
sxtw x0, w0
cmp x20, x0
bne .L63
mov x0, 10
b .L64
.L63:
mov x0, 15
.L64:
cmp x0, x19
bgt .L56
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x5, [x0]
ldrsw x0, [sp, 44]
ldr x4, [sp, 64]
ldr x3, [sp, 32]
mov x2, x0
adrp x0, .LC27
add x1, x0, :lo12:.LC27
mov x0, x5
bl fprintf
mov w0, 1
bl exit
.L66:
bl __stack_chk_fail
.L65:
ldp x19, x20, [sp, 16]
ldp x29, x30, [sp], 112
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_restore 20
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE12:
.size state_wait, .-state_wait
.local tracer
.comm tracer,4,4
.local thread1
.comm thread1,8,8
.local thread2
.comm thread2,8,8
.section .rodata
.align 3
.LC28:
.string "Resuming GDB PID %lu.\n"
.text
.align 2
.type cleanup, %function
cleanup:
.LFB13:
.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, tracer
add x0, x0, :lo12:tracer
ldr w0, [x0]
sxtw x0, w0
mov x1, x0
adrp x0, .LC28
add x0, x0, :lo12:.LC28
bl printf
adrp x0, tracer
add x0, x0, :lo12:tracer
ldr w0, [x0]
cmp w0, 0
beq .L69
adrp x0, tracer
add x0, x0, :lo12:tracer
ldr w0, [x0]
str w0, [sp, 24]
adrp x0, tracer
add x0, x0, :lo12:tracer
str wzr, [x0]
mov w1, 18
ldr w0, [sp, 24]
bl kill
str w0, [sp, 28]
ldr w0, [sp, 28]
cmp w0, 0
beq .L69
adrp x0, __PRETTY_FUNCTION__.1
add x3, x0, :lo12:__PRETTY_FUNCTION__.1
mov w2, 320
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L69:
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE13:
.size cleanup, .-cleanup
.section .rodata
.align 3
.LC29:
.string "-s"
.align 3
.LC30:
.string "argc == 1"
.align 3
.LC31:
.string "TracerPid:\t"
.align 3
.LC32:
.string "/proc/self/status"
.align 3
.LC33:
.string "The testcase must be run by GDB!\n"
.align 3
.LC34:
.string "The testcase parent must be our GDB tracer!\n"
.align 3
.LC35:
.string "Stopping GDB PID %lu.\n"
.align 3
.LC36:
.string "T (stopped)"
.align 3
.LC37:
.string "Waiting till the threads initialize their TIDs."
.align 3
.LC38:
.string "Thread 1 TID = %lu, thread 2 TID = %lu, PID = %lu.\n"
.align 3
.LC39:
.string "Waiting till the threads are trapped by the signals."
.align 3
.LC40:
.string "Joining the threads."
.align 3
.LC41:
.string "Exiting."
.text
.align 2
.global main
.type main, %function
main:
.LFB14:
.cfi_startproc
stp x29, x30, [sp, -224]!
.cfi_def_cfa_offset 224
.cfi_offset 29, -224
.cfi_offset 30, -216
mov x29, sp
stp x19, x20, [sp, 16]
.cfi_offset 19, -208
.cfi_offset 20, -200
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, 216]
mov x1, 0
str wzr, [sp, 56]
ldr w0, [sp, 44]
cmp w0, 2
bne .L71
ldr x0, [sp, 32]
add x0, x0, 8
ldr x2, [x0]
adrp x0, .LC29
add x1, x0, :lo12:.LC29
mov x0, x2
bl strcmp
cmp w0, 0
bne .L71
mov w0, 1
str w0, [sp, 56]
b .L72
.L71:
ldr w0, [sp, 44]
cmp w0, 1
beq .L72
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 334
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC30
add x0, x0, :lo12:.LC30
bl __assert_fail
.L72:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x1, 0
bl setbuf
adrp x0, thread1_tid_mutex
add x0, x0, :lo12:thread1_tid_mutex
bl timed_mutex_lock
adrp x0, thread2_tid_mutex
add x0, x0, :lo12:thread2_tid_mutex
bl timed_mutex_lock
adrp x0, terminate_mutex
add x0, x0, :lo12:terminate_mutex
bl timed_mutex_lock
bl __errno_location
str wzr, [x0]
add x0, sp, 64
mov x2, 152
mov w1, 0
bl memset
adrp x0, handler
add x0, x0, :lo12:handler
str x0, [sp, 64]
mov w0, 4
movk w0, 0x1000, lsl 16
str w0, [sp, 200]
add x0, sp, 64
add x0, x0, 8
bl sigemptyset
str w0, [sp, 60]
bl __errno_location
ldr w0, [x0]
cmp w0, 0
beq .L73
bl __errno_location
ldr w4, [x0]
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 348
adrp x0, .LC0
add x1, x0, :lo12:.LC0
mov w0, w4
bl __assert_perror_fail
.L73:
ldr w0, [sp, 60]
cmp w0, 0
beq .L74
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 349
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L74:
add x0, sp, 64
mov x2, 0
mov x1, x0
mov w0, 10
bl sigaction
str w0, [sp, 60]
bl __errno_location
ldr w0, [x0]
cmp w0, 0
beq .L75
bl __errno_location
ldr w4, [x0]
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 351
adrp x0, .LC0
add x1, x0, :lo12:.LC0
mov w0, w4
bl __assert_perror_fail
.L75:
ldr w0, [sp, 60]
cmp w0, 0
beq .L76
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 352
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L76:
add x0, sp, 64
mov x2, 0
mov x1, x0
mov w0, 12
bl sigaction
str w0, [sp, 60]
bl __errno_location
ldr w0, [x0]
cmp w0, 0
beq .L77
bl __errno_location
ldr w4, [x0]
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 354
adrp x0, .LC0
add x1, x0, :lo12:.LC0
mov w0, w4
bl __assert_perror_fail
.L77:
ldr w0, [sp, 60]
cmp w0, 0
beq .L78
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 355
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L78:
mov x3, 0
adrp x0, thread1_func
add x2, x0, :lo12:thread1_func
mov x1, 0
adrp x0, thread1
add x0, x0, :lo12:thread1
bl pthread_create
str w0, [sp, 60]
ldr w0, [sp, 60]
cmp w0, 0
beq .L79
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 358
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L79:
mov x3, 0
adrp x0, thread2_func
add x2, x0, :lo12:thread2_func
mov x1, 0
adrp x0, thread2
add x0, x0, :lo12:thread2
bl pthread_create
str w0, [sp, 60]
ldr w0, [sp, 60]
cmp w0, 0
beq .L80
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 361
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L80:
ldr w0, [sp, 56]
cmp w0, 0
bne .L81
adrp x0, .LC31
add x1, x0, :lo12:.LC31
adrp x0, .LC32
add x0, x0, :lo12:.LC32
bl proc_ulong
mov w1, w0
adrp x0, tracer
add x0, x0, :lo12:tracer
str w1, [x0]
adrp x0, tracer
add x0, x0, :lo12:tracer
ldr w0, [x0]
cmp w0, 0
bne .L82
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 33
mov x1, 1
adrp x0, .LC33
add x0, x0, :lo12:.LC33
bl fwrite
mov w0, 1
bl exit
.L82:
bl getppid
mov w1, w0
adrp x0, tracer
add x0, x0, :lo12:tracer
ldr w0, [x0]
cmp w1, w0
beq .L81
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x3, x0
mov x2, 44
mov x1, 1
adrp x0, .LC34
add x0, x0, :lo12:.LC34
bl fwrite
mov w0, 1
bl exit
.L81:
adrp x0, cleanup
add x0, x0, :lo12:cleanup
bl atexit
adrp x0, tracer
add x0, x0, :lo12:tracer
ldr w0, [x0]
sxtw x0, w0
mov x1, x0
adrp x0, .LC35
add x0, x0, :lo12:.LC35
bl printf
adrp x0, tracer
add x0, x0, :lo12:tracer
ldr w0, [x0]
cmp w0, 0
beq .L83
adrp x0, tracer
add x0, x0, :lo12:tracer
ldr w0, [x0]
mov w1, 19
bl kill
str w0, [sp, 60]
ldr w0, [sp, 60]
cmp w0, 0
beq .L84
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 388
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L84:
adrp x0, tracer
add x0, x0, :lo12:tracer
ldr w2, [x0]
adrp x0, .LC36
add x1, x0, :lo12:.LC36
mov w0, w2
bl state_wait
.L83:
adrp x0, .LC37
add x0, x0, :lo12:.LC37
bl puts
b .L85
.L86:
adrp x0, thread1_tid_mutex
add x1, x0, :lo12:thread1_tid_mutex
adrp x0, thread1_tid_cond
add x0, x0, :lo12:thread1_tid_cond
bl pthread_cond_wait
str w0, [sp, 60]
ldr w0, [sp, 60]
cmp w0, 0
beq .L85
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 403
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L85:
adrp x0, thread1_tid
add x0, x0, :lo12:thread1_tid
ldr w0, [x0]
cmp w0, 0
beq .L86
b .L87
.L88:
adrp x0, thread2_tid_mutex
add x1, x0, :lo12:thread2_tid_mutex
adrp x0, thread2_tid_cond
add x0, x0, :lo12:thread2_tid_cond
bl pthread_cond_wait
str w0, [sp, 60]
ldr w0, [sp, 60]
cmp w0, 0
beq .L87
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 409
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L87:
adrp x0, thread2_tid
add x0, x0, :lo12:thread2_tid
ldr w0, [x0]
cmp w0, 0
beq .L88
adrp x0, thread1_tid
add x0, x0, :lo12:thread1_tid
ldr w0, [x0]
sxtw x19, w0
adrp x0, thread2_tid
add x0, x0, :lo12:thread2_tid
ldr w0, [x0]
sxtw x20, w0
bl getpid
sxtw x0, w0
mov x3, x0
mov x2, x20
mov x1, x19
adrp x0, .LC38
add x0, x0, :lo12:.LC38
bl printf
bl __errno_location
str wzr, [x0]
bl getpid
mov w1, w0
adrp x0, thread1_tid
add x0, x0, :lo12:thread1_tid
ldr w0, [x0]
mov w3, 10
mov w2, w0
mov x0, 131
bl syscall
str w0, [sp, 60]
bl __errno_location
ldr w0, [x0]
cmp w0, 0
beq .L89
bl __errno_location
ldr w4, [x0]
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 418
adrp x0, .LC0
add x1, x0, :lo12:.LC0
mov w0, w4
bl __assert_perror_fail
.L89:
ldr w0, [sp, 60]
cmp w0, 0
beq .L90
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 419
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L90:
bl getpid
mov w1, w0
adrp x0, thread1_tid
add x0, x0, :lo12:thread1_tid
ldr w0, [x0]
mov w3, 12
mov w2, w0
mov x0, 131
bl syscall
str w0, [sp, 60]
bl __errno_location
ldr w0, [x0]
cmp w0, 0
beq .L91
bl __errno_location
ldr w4, [x0]
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 421
adrp x0, .LC0
add x1, x0, :lo12:.LC0
mov w0, w4
bl __assert_perror_fail
.L91:
ldr w0, [sp, 60]
cmp w0, 0
beq .L92
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 422
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L92:
bl getpid
mov w1, w0
adrp x0, thread2_tid
add x0, x0, :lo12:thread2_tid
ldr w0, [x0]
mov w3, 10
mov w2, w0
mov x0, 131
bl syscall
str w0, [sp, 60]
bl __errno_location
ldr w0, [x0]
cmp w0, 0
beq .L93
bl __errno_location
ldr w4, [x0]
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 424
adrp x0, .LC0
add x1, x0, :lo12:.LC0
mov w0, w4
bl __assert_perror_fail
.L93:
ldr w0, [sp, 60]
cmp w0, 0
beq .L94
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 425
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L94:
bl getpid
mov w1, w0
adrp x0, thread2_tid
add x0, x0, :lo12:thread2_tid
ldr w0, [x0]
mov w3, 12
mov w2, w0
mov x0, 131
bl syscall
str w0, [sp, 60]
bl __errno_location
ldr w0, [x0]
cmp w0, 0
beq .L95
bl __errno_location
ldr w4, [x0]
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 427
adrp x0, .LC0
add x1, x0, :lo12:.LC0
mov w0, w4
bl __assert_perror_fail
.L95:
ldr w0, [sp, 60]
cmp w0, 0
beq .L96
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 428
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L96:
adrp x0, .LC39
add x0, x0, :lo12:.LC39
bl puts
adrp x0, tracer
add x0, x0, :lo12:tracer
ldr w0, [x0]
cmp w0, 0
beq .L97
adrp x0, thread1_tid
add x0, x0, :lo12:thread1_tid
ldr w2, [x0]
adrp x0, .LC25
add x1, x0, :lo12:.LC25
mov w0, w2
bl state_wait
adrp x0, thread2_tid
add x0, x0, :lo12:thread2_tid
ldr w2, [x0]
adrp x0, .LC25
add x1, x0, :lo12:.LC25
mov w0, w2
bl state_wait
.L97:
bl cleanup
adrp x0, .LC40
add x0, x0, :lo12:.LC40
bl puts
adrp x0, terminate_mutex
add x0, x0, :lo12:terminate_mutex
bl pthread_mutex_unlock
str w0, [sp, 60]
ldr w0, [sp, 60]
cmp w0, 0
beq .L98
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 446
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L98:
adrp x0, thread1
add x0, x0, :lo12:thread1
ldr x0, [x0]
mov x1, 0
bl pthread_join
str w0, [sp, 60]
ldr w0, [sp, 60]
cmp w0, 0
beq .L99
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 449
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L99:
adrp x0, thread2
add x0, x0, :lo12:thread2
ldr x0, [x0]
mov x1, 0
bl pthread_join
str w0, [sp, 60]
ldr w0, [sp, 60]
cmp w0, 0
beq .L100
adrp x0, __PRETTY_FUNCTION__.0
add x3, x0, :lo12:__PRETTY_FUNCTION__.0
mov w2, 452
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __assert_fail
.L100:
adrp x0, .LC41
add x0, x0, :lo12:.LC41
bl puts
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 216]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L102
bl __stack_chk_fail
.L102:
mov w0, w1
ldp x19, x20, [sp, 16]
ldp x29, x30, [sp], 224
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_restore 20
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE14:
.size main, .-main
.section .rodata
.align 3
.type __PRETTY_FUNCTION__.8, %object
.size __PRETTY_FUNCTION__.8, 17
__PRETTY_FUNCTION__.8:
.string "timed_mutex_lock"
.align 3
.type __PRETTY_FUNCTION__.7, %object
.size __PRETTY_FUNCTION__.7, 8
__PRETTY_FUNCTION__.7:
.string "handler"
.align 3
.type __PRETTY_FUNCTION__.6, %object
.size __PRETTY_FUNCTION__.6, 13
__PRETTY_FUNCTION__.6:
.string "thread1_func"
.align 3
.type __PRETTY_FUNCTION__.5, %object
.size __PRETTY_FUNCTION__.5, 13
__PRETTY_FUNCTION__.5:
.string "thread2_func"
.local buf.4
.comm buf.4,2048,8
.align 3
.type __PRETTY_FUNCTION__.3, %object
.size __PRETTY_FUNCTION__.3, 12
__PRETTY_FUNCTION__.3:
.string "proc_string"
.align 3
.type __PRETTY_FUNCTION__.2, %object
.size __PRETTY_FUNCTION__.2, 11
__PRETTY_FUNCTION__.2:
.string "state_wait"
.align 3
.type __PRETTY_FUNCTION__.1, %object
.size __PRETTY_FUNCTION__.1, 8
__PRETTY_FUNCTION__.1:
.string "cleanup"
.align 3
.type __PRETTY_FUNCTION__.0, %object
.size __PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
.string "main"
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.type distance_vec2, %function
distance_vec2:
.LFB142:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
fmov s4, s0
fmov s0, s1
fmov x0, d4
fmov w1, s0
bfi x0, x1, 32, 32
str x0, [sp, 24]
fmov s1, s2
fmov s0, s3
fmov x0, d1
fmov w1, s0
bfi x0, x1, 32, 32
str x0, [sp, 16]
ldr s2, [sp, 16]
ldr s3, [sp, 20]
ldr s0, [sp, 24]
ldr s1, [sp, 28]
bl sub_vec2s
fmov s2, s0
fmov s0, s1
fmov x0, d2
fmov w1, s0
bfi x0, x1, 32, 32
mov x1, x0
lsr w1, w1, 0
lsr x0, x0, 32
fmov s1, w0
fmov s0, w1
bl length_vec2
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE142:
.size distance_vec2, .-distance_vec2
.align 2
.type distance_vec3, %function
distance_vec3:
.LFB143:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
str d8, [sp, 16]
.cfi_offset 72, -64
fmov s8, s0
fmov s7, s1
fmov s6, s2
fmov s2, s3
fmov s1, s4
fmov s0, s5
str s8, [sp, 48]
str s7, [sp, 52]
str s6, [sp, 56]
str s2, [sp, 32]
str s1, [sp, 36]
str s0, [sp, 40]
ldr s3, [sp, 32]
ldr s4, [sp, 36]
ldr s5, [sp, 40]
ldr s0, [sp, 48]
ldr s1, [sp, 52]
ldr s2, [sp, 56]
bl sub_vec3s
fmov s3, s0
fmov s0, s2
str s3, [sp, 64]
str s1, [sp, 68]
str s0, [sp, 72]
ldr s0, [sp, 64]
ldr s1, [sp, 68]
ldr s2, [sp, 72]
bl length_vec3
ldr d8, [sp, 16]
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_restore 72
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE143:
.size distance_vec3, .-distance_vec3
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Usage: %s file1 file2 ... >file\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
mov x12, 4224
sub sp, sp, x12
.cfi_def_cfa_offset 4224
stp x29, x30, [sp, 16]
.cfi_offset 29, -4208
.cfi_offset 30, -4200
add x29, sp, 16
.cfi_def_cfa 29, 4208
str x19, [sp, 32]
.cfi_offset 19, -4192
str w0, [x29, 44]
str x1, [x29, 32]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [x29, 4200]
mov x1, 0
mov x0, sp
mov x19, x0
ldr w0, [x29, 44]
sub w0, w0, #1
sxtw x1, w0
sub x1, x1, #1
str x1, [x29, 72]
sxtw x1, w0
mov x16, x1
mov x17, 0
lsr x1, x16, 59
lsl x9, x17, 5
orr x9, x1, x9
lsl x8, x16, 5
sxtw x1, w0
mov x14, x1
mov x15, 0
lsr x1, x14, 59
lsl x7, x15, 5
orr x7, x1, x7
lsl x6, x14, 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
.L2:
cmp sp, x1
beq .L3
sub sp, sp, #65536
str xzr, [sp, 1024]
b .L2
.L3:
and x1, x0, 65535
sub sp, sp, x1
str xzr, [sp]
and x0, x0, 65535
cmp x0, 1024
bcc .L4
str xzr, [sp, 1024]
.L4:
add x0, sp, 16
add x0, x0, 3
lsr x0, x0, 2
lsl x0, x0, 2
str x0, [x29, 80]
ldr w0, [x29, 44]
sub w0, w0, #1
sxtw x1, w0
sub x1, x1, #1
str x1, [x29, 88]
sxtw x1, w0
mov x12, x1
mov x13, 0
lsr x1, x12, 49
lsl x5, x13, 15
orr x5, x1, x5
lsl x4, x12, 15
sxtw x1, w0
mov x10, x1
mov x11, 0
lsr x1, x10, 49
lsl x3, x11, 15
orr x3, x1, x3
lsl x2, x10, 15
sxtw x0, w0
lsl x0, x0, 12
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, 0
str x0, [x29, 96]
ldr w0, [x29, 44]
cmp w0, 1
bgt .L8
ldr x0, [x29, 32]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
mov w0, 1
b .L9
.L8:
str wzr, [x29, 56]
b .L10
.L12:
ldrsw x0, [x29, 56]
add x0, x0, 1
lsl x0, x0, 3
ldr x1, [x29, 32]
add x0, x1, x0
ldr x0, [x0]
mov w1, 0
bl open
mov w2, w0
ldr x0, [x29, 80]
ldrsw x1, [x29, 56]
str w2, [x0, x1, lsl 2]
ldr x0, [x29, 80]
ldrsw x1, [x29, 56]
ldr w0, [x0, x1, lsl 2]
cmn w0, #1
bne .L11
ldrsw x0, [x29, 56]
add x0, x0, 1
lsl x0, x0, 3
ldr x1, [x29, 32]
add x0, x1, x0
ldr x0, [x0]
bl perror
mov w0, 1
b .L9
.L11:
ldr w0, [x29, 56]
add w0, w0, 1
str w0, [x29, 56]
.L10:
ldr w0, [x29, 44]
sub w0, w0, #1
ldr w1, [x29, 56]
cmp w1, w0
blt .L12
str wzr, [x29, 60]
.L20:
stp xzr, xzr, [x29, 104]
add x0, x29, 120
mov x1, 4080
mov x2, x1
mov w1, 0
bl memset
str wzr, [x29, 60]
str wzr, [x29, 56]
b .L13
.L15:
ldrsw x0, [x29, 56]
lsl x0, x0, 12
ldr x1, [x29, 96]
add x0, x1, x0
mov x2, 4096
mov w1, 0
bl memset
ldr x0, [x29, 80]
ldrsw x1, [x29, 56]
ldr w3, [x0, x1, lsl 2]
ldrsw x0, [x29, 56]
lsl x0, x0, 12
ldr x1, [x29, 96]
add x0, x1, x0
mov x2, 4096
mov x1, x0
mov w0, w3
bl read
str w0, [x29, 68]
ldr w1, [x29, 68]
ldr w0, [x29, 60]
cmp w1, w0
ble .L14
ldr w0, [x29, 68]
str w0, [x29, 60]
.L14:
ldr w0, [x29, 56]
add w0, w0, 1
str w0, [x29, 56]
.L13:
ldr w0, [x29, 44]
sub w0, w0, #1
ldr w1, [x29, 56]
cmp w1, w0
blt .L15
str wzr, [x29, 56]
b .L16
.L19:
str wzr, [x29, 64]
b .L17
.L18:
ldrsw x0, [x29, 56]
add x1, x29, 104
ldrb w1, [x1, x0]
ldr x3, [x29, 96]
ldrsw x0, [x29, 56]
ldrsw x2, [x29, 64]
lsl x2, x2, 12
add x2, x3, x2
add x0, x2, x0
ldrb w0, [x0]
orr w0, w1, w0
and w2, w0, 255
ldrsw x0, [x29, 56]
add x1, x29, 104
strb w2, [x1, x0]
ldr w0, [x29, 64]
add w0, w0, 1
str w0, [x29, 64]
.L17:
ldr w0, [x29, 44]
sub w0, w0, #1
ldr w1, [x29, 64]
cmp w1, w0
blt .L18
ldr w0, [x29, 56]
add w0, w0, 1
str w0, [x29, 56]
.L16:
ldr w1, [x29, 56]
ldr w0, [x29, 60]
cmp w1, w0
blt .L19
ldrsw x1, [x29, 60]
add x0, x29, 104
mov x2, x1
mov x1, x0
mov w0, 1
bl write
ldr w0, [x29, 60]
cmp w0, 0
bne .L20
mov w0, 0
.L9:
mov sp, x19
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [x29, 4200]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L22
bl __stack_chk_fail
.L22:
mov w0, w1
sub sp, x29, #16
.cfi_def_cfa 31, 4224
ldr x19, [sp, 32]
ldp x29, x30, [sp, 16]
mov x12, 4224
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
.align 2
.global foo
.type foo, %function
foo:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str wzr, [sp, 28]
b .L2
.L3:
adrp x0, :got:b
ldr x0, [x0, #:got_lo12:b]
ldrsw x1, [sp, 28]
ldr d0, [x0, x1, lsl 3]
fmov d1, d0
fmov d0, 2.0e+0
bl pow
adrp x0, :got:a
ldr x0, [x0, #:got_lo12:a]
ldrsw x1, [sp, 28]
str d0, [x0, x1, lsl 3]
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L2:
ldr w0, [sp, 28]
cmp w0, 1023
ble .L3
nop
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size foo, .-foo
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC4:
.string "Two persons are equal"
.align 3
.LC5:
.string "Two persons are different"
.align 3
.LC6:
.string "------------------"
.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
adrp x0, .LC0
add x0, x0, :lo12:.LC0
add x2, sp, 128
mov x3, x0
ldp x0, x1, [x3]
stp x0, x1, [x2]
ldr w0, [x3, 16]
str w0, [x2, 16]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
add x2, sp, 152
mov x3, x0
ldp x0, x1, [x3]
stp x0, x1, [x2]
ldr w0, [x3, 16]
str w0, [x2, 16]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
add x2, sp, 176
mov x3, x0
ldp x0, x1, [x3]
stp x0, x1, [x2]
ldr w0, [x3, 16]
str w0, [x2, 16]
adrp x0, .LC2
add x0, x0, :lo12:.LC2
add x2, sp, 200
mov x3, x0
ldp x0, x1, [x3]
stp x0, x1, [x2]
ldr w0, [x3, 16]
str w0, [x2, 16]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
add x2, sp, 224
mov x3, x0
ldp x0, x1, [x3]
stp x0, x1, [x2]
ldr w0, [x3, 16]
str w0, [x2, 16]
add x0, sp, 128
str x0, [sp, 88]
add x0, sp, 152
str x0, [sp, 96]
add x0, sp, 176
str x0, [sp, 104]
add x0, sp, 200
str x0, [sp, 112]
add x0, sp, 224
str x0, [sp, 120]
add x2, sp, 48
add x3, sp, 128
ldp x0, x1, [x3]
stp x0, x1, [x2]
ldr w0, [x3, 16]
str w0, [x2, 16]
add x2, sp, 16
add x3, sp, 152
ldp x0, x1, [x3]
stp x0, x1, [x2]
ldr w0, [x3, 16]
str w0, [x2, 16]
add x1, sp, 16
add x0, sp, 48
bl humansEqualByCallByValue
cmp w0, 0
beq .L2
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl puts
b .L3
.L2:
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl puts
.L3:
add x2, sp, 16
add x3, sp, 128
ldp x0, x1, [x3]
stp x0, x1, [x2]
ldr w0, [x3, 16]
str w0, [x2, 16]
add x2, sp, 48
add x3, sp, 176
ldp x0, x1, [x3]
stp x0, x1, [x2]
ldr w0, [x3, 16]
str w0, [x2, 16]
add x1, sp, 48
add x0, sp, 16
bl humansEqualByCallByValue
cmp w0, 0
beq .L4
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl puts
b .L5
.L4:
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl puts
.L5:
add x2, sp, 16
add x3, sp, 128
ldp x0, x1, [x3]
stp x0, x1, [x2]
ldr w0, [x3, 16]
str w0, [x2, 16]
add x2, sp, 48
add x3, sp, 200
ldp x0, x1, [x3]
stp x0, x1, [x2]
ldr w0, [x3, 16]
str w0, [x2, 16]
add x1, sp, 48
add x0, sp, 16
bl humansEqualByCallByValue
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:
add x2, sp, 16
add x3, sp, 128
ldp x0, x1, [x3]
stp x0, x1, [x2]
ldr w0, [x3, 16]
str w0, [x2, 16]
add x2, sp, 48
add x3, sp, 224
ldp x0, x1, [x3]
stp x0, x1, [x2]
ldr w0, [x3, 16]
str w0, [x2, 16]
add x1, sp, 48
add x0, sp, 16
bl humansEqualByCallByValue
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, .LC6
add x0, x0, :lo12:.LC6
bl puts
ldr x1, [sp, 96]
ldr x0, [sp, 88]
bl humansEqualByCallByReference
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:
ldr x1, [sp, 104]
ldr x0, [sp, 88]
bl humansEqualByCallByReference
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:
ldr x1, [sp, 112]
ldr x0, [sp, 88]
bl humansEqualByCallByReference
cmp w0, 0
beq .L14
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl puts
b .L15
.L14:
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl puts
.L15:
ldr x1, [sp, 120]
ldr x0, [sp, 88]
bl humansEqualByCallByReference
cmp w0, 0
beq .L16
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl puts
b .L17
.L16:
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl puts
.L17:
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 248]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L19
bl __stack_chk_fail
.L19:
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
.section .rodata
.align 3
.LC0:
.string "apple"
.zero 4
.zero 2
.word 10
.word 1123477881
.align 3
.LC1:
.string "ms"
.zero 7
.zero 2
.word 10
.word 1123477881
.align 3
.LC2:
.string "apple"
.zero 4
.zero 2
.word 20
.word 1123477881
.align 3
.LC3:
.string "apple"
.zero 4
.zero 2
.word 10
.word 1141766390
.text
.align 2
.global humansEqualByCallByValue
.type humansEqualByCallByValue, %function
humansEqualByCallByValue:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
stp x19, x20, [sp, 16]
.cfi_offset 19, -16
.cfi_offset 20, -8
mov x20, x0
mov x19, x1
mov x1, x19
mov x0, x20
bl strcmp
cmp w0, 0
beq .L21
mov w0, 0
b .L22
.L21:
ldr w1, [x20, 12]
ldr w0, [x19, 12]
cmp w1, w0
beq .L23
mov w0, 0
b .L22
.L23:
ldr s1, [x20, 16]
ldr s0, [x19, 16]
fcmp s1, s0
beq .L24
mov w0, 0
b .L22
.L24:
mov w0, 1
.L22:
ldp x19, x20, [sp, 16]
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_restore 20
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size humansEqualByCallByValue, .-humansEqualByCallByValue
.align 2
.global humansEqualByCallByReference
.type humansEqualByCallByReference, %function
humansEqualByCallByReference:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
ldr x0, [sp, 24]
ldr x1, [sp, 16]
bl strcmp
cmp w0, 0
beq .L26
mov w0, 0
b .L27
.L26:
ldr x0, [sp, 24]
ldr w1, [x0, 12]
ldr x0, [sp, 16]
ldr w0, [x0, 12]
cmp w1, w0
beq .L28
mov w0, 0
b .L27
.L28:
ldr x0, [sp, 24]
ldr s1, [x0, 16]
ldr x0, [sp, 16]
ldr s0, [x0, 16]
fcmp s1, s0
beq .L29
mov w0, 0
b .L27
.L29:
mov w0, 1
.L27:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size humansEqualByCallByReference, .-humansEqualByCallByReference
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "sum:%d\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str wzr, [sp, 24]
str wzr, [sp, 28]
mov w0, 1
str w0, [sp, 24]
b .L2
.L3:
ldr w1, [sp, 28]
ldr w0, [sp, 24]
add w0, w1, w0
str w0, [sp, 28]
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L2:
ldr w0, [sp, 24]
cmp w0, 100
ble .L3
ldr w1, [sp, 28]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
bl getchar
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 main
.type main, %function
main:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 56]
mov x1, 0
add x0, sp, 24
mov w1, 8
bl factorial
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
.LFE6:
.size main, .-main
.section .rodata
.align 3
.LC0:
.string "Thread id # %d computed factorial(%d) = %d \n"
.align 3
.LC1:
.string "%d\t"
.text
.align 2
.global factorial
.type factorial, %function
factorial:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
str w1, [sp, 20]
mov w0, 42
str w0, [sp, 44]
str wzr, [sp, 36]
b .L5
.L8:
ldr w0, [sp, 36]
cmp w0, 1
bgt .L6
ldrsw x0, [sp, 36]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
mov w1, 1
str w1, [x0]
b .L7
.L6:
ldrsw x0, [sp, 36]
lsl x0, x0, 2
sub x0, x0, #4
ldr x1, [sp, 24]
add x0, x1, x0
ldr w2, [x0]
ldrsw x0, [sp, 36]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w1, [sp, 36]
mul w1, w2, w1
str w1, [x0]
.L7:
bl omp_get_thread_num
str w0, [sp, 44]
ldrsw x0, [sp, 36]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w0, [x0]
mov w3, w0
ldr w2, [sp, 36]
ldr w1, [sp, 44]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L5:
ldr w1, [sp, 36]
ldr w0, [sp, 20]
cmp w1, w0
blt .L8
str wzr, [sp, 40]
b .L9
.L10:
ldrsw x0, [sp, 40]
lsl x0, x0, 2
ldr x1, [sp, 24]
add x0, x1, x0
ldr w0, [x0]
mov w1, w0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
ldr w0, [sp, 40]
add w0, w0, 1
str w0, [sp, 40]
.L9:
ldr w1, [sp, 40]
ldr w0, [sp, 20]
cmp w1, w0
blt .L10
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
.LFE7:
.size factorial, .-factorial
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global CLSID_GPMWMIFilter
.section .rodata
.align 3
.type CLSID_GPMWMIFilter, %object
.size CLSID_GPMWMIFilter, 24
CLSID_GPMWMIFilter:
.xword 1650935256
.hword 3562
.hword 16482
.ascii "\277`\317\305\261\312\022\206"
.zero 4
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global gcd
.type gcd, %function
gcd:
.LFB6:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, 12]
str w1, [sp, 8]
str wzr, [sp, 24]
mov w0, 1
str w0, [sp, 28]
b .L2
.L5:
ldr w0, [sp, 12]
ldr w1, [sp, 28]
sdiv w2, w0, w1
ldr w1, [sp, 28]
mul w1, w2, w1
sub w0, w0, w1
cmp w0, 0
bne .L3
ldr w0, [sp, 8]
ldr w1, [sp, 28]
sdiv w2, w0, w1
ldr w1, [sp, 28]
mul w1, w2, w1
sub w0, w0, w1
cmp w0, 0
bne .L3
ldr w0, [sp, 28]
str w0, [sp, 24]
.L3:
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L2:
ldr w1, [sp, 28]
ldr w0, [sp, 12]
cmp w1, w0
bgt .L4
ldr w1, [sp, 28]
ldr w0, [sp, 8]
cmp w1, w0
ble .L5
.L4:
ldr w0, [sp, 24]
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size gcd, .-gcd
.align 2
.global compute
.type compute, %function
compute:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -48
str w0, [sp, 44]
str w1, [sp, 40]
ldrsw x0, [sp, 44]
str x0, [sp, 56]
mov w0, 2
str w0, [sp, 52]
b .L8
.L9:
ldrsw x1, [sp, 52]
ldr x0, [sp, 56]
mul x0, x1, x0
cmp x0, 0
csneg x19, x0, x0, ge
ldr x0, [sp, 56]
ldr w1, [sp, 52]
bl gcd
sxtw x0, w0
sdiv x0, x19, x0
str x0, [sp, 56]
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
.L8:
ldr w1, [sp, 40]
ldr w0, [sp, 52]
cmp w1, w0
bge .L9
ldr x0, [sp, 56]
ldr x19, [sp, 16]
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size compute, .-compute
.section .rodata
.align 3
.LC0:
.string "%li\n"
.text
.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
mov w1, 20
mov w0, 1
bl compute
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
.LFE8:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global megaInit
.type megaInit, %function
megaInit:
.LFB0:
.cfi_startproc
nop
ret
.cfi_endproc
.LFE0:
.size megaInit, .-megaInit
.align 2
.global RandomFunc
.type RandomFunc, %function
RandomFunc:
.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 x1, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 56]
mov x1, 0
ldr x0, [sp, 24]
ldr w1, [x0]
mov w0, 11483
movk w0, 0x51e2, lsl 16
add w0, w1, w0
str w0, [sp, 48]
str wzr, [sp, 44]
b .L3
.L4:
ldr w1, [sp, 48]
ldr w0, [sp, 44]
lsl x0, x0, 2
add x2, sp, 48
ldr w0, [x2, x0]
and w2, w1, w0
ldr w0, [sp, 44]
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 x0, [sp, 24]
add x0, x0, 4
ldr w0, [x0]
ldr w1, [sp, 44]
cmp w1, w0
bcc .L4
ldr w0, [sp, 48]
ror w1, w0, 19
ldr x0, [sp, 16]
str w1, [x0]
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 56]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L5
bl __stack_chk_fail
.L5:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size RandomFunc, .-RandomFunc
.section .rodata
.align 3
.LC0:
.string "Call this program with %i arguments\n"
.align 3
.LC1:
.string "You win!"
.align 3
.LC2:
.string "%u\n"
.text
.align 2
.global main
.type main, %function
main:
.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 w0, [sp, 28]
str x1, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 72]
mov x1, 0
bl megaInit
ldr w0, [sp, 28]
cmp w0, 2
beq .L7
mov w1, 1
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
mov w0, -1
bl exit
.L7:
str wzr, [sp, 44]
b .L8
.L9:
ldrsw x0, [sp, 44]
add x0, x0, 1
lsl x0, x0, 3
ldr x1, [sp, 16]
add x0, x1, x0
ldr x0, [x0]
mov w2, 10
mov x1, 0
bl strtoul
str w0, [sp, 52]
ldrsw x0, [sp, 44]
lsl x0, x0, 2
add x1, sp, 56
ldr w2, [sp, 52]
str w2, [x1, x0]
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
.L8:
ldr w0, [sp, 44]
cmp w0, 0
ble .L9
add x1, sp, 64
add x0, sp, 56
bl RandomFunc
ldr w1, [sp, 64]
mov w0, 35388
movk w0, 0x4ba2, lsl 16
cmp w1, w0
bne .L10
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl puts
.L10:
str wzr, [sp, 48]
b .L11
.L12:
ldrsw x0, [sp, 48]
lsl x0, x0, 2
add x1, sp, 64
ldr w0, [x1, x0]
mov w1, w0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
.L11:
ldr w0, [sp, 48]
cmp w0, 0
ble .L12
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 72]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L14
bl __stack_chk_fail
.L14:
mov w0, w1
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global morpho_err
.type morpho_err, %function
morpho_err:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -304]!
.cfi_def_cfa_offset 304
.cfi_offset 29, -304
.cfi_offset 30, -296
mov x29, sp
str x0, [sp, 56]
str x1, [sp, 248]
str x2, [sp, 256]
str x3, [sp, 264]
str x4, [sp, 272]
str x5, [sp, 280]
str x6, [sp, 288]
str x7, [sp, 296]
str q0, [sp, 112]
str q1, [sp, 128]
str q2, [sp, 144]
str q3, [sp, 160]
str q4, [sp, 176]
str q5, [sp, 192]
str q6, [sp, 208]
str q7, [sp, 224]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 104]
mov x1, 0
add x0, sp, 304
str x0, [sp, 72]
add x0, sp, 304
str x0, [sp, 80]
add x0, sp, 240
str x0, [sp, 88]
mov w0, -56
str w0, [sp, 96]
mov w0, -128
str w0, [sp, 100]
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
add x0, sp, 16
add x1, sp, 72
ldp q0, q1, [x1]
stp q0, q1, [x0]
add x0, sp, 16
mov x2, x0
ldr x1, [sp, 56]
mov x0, x3
bl vfprintf
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x0, [x0]
mov x1, x0
mov w0, 10
bl fputc
mov w0, 1
bl _exit
.cfi_endproc
.LFE6:
.size morpho_err, .-morpho_err
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
mov w0, 2
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global makeMove
.type makeMove, %function
makeMove:
.LFB0:
.cfi_startproc
nop
ret
.cfi_endproc
.LFE0:
.size makeMove, .-makeMove
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.local dbg_modes
.comm dbg_modes,8,8
.local dbg_initiated
.comm dbg_initiated,2,2
.section .rodata
.align 3
.LC0:
.string "\033[36;40m"
.align 3
.LC1:
.string "\033[31;40m"
.align 3
.LC2:
.string "\033[33;40m"
.align 3
.LC3:
.string "\033[32;40m"
.align 3
.LC4:
.string "\033[34;40m"
.align 3
.LC5:
.string "\033[35;40m"
.align 3
.LC6:
.string "\033[1;36;40m"
.align 3
.LC7:
.string "\033[37;40m"
.align 3
.LC8:
.string "\033[1;32;40m"
.align 3
.LC9:
.string "\033[1;33;40m"
.align 3
.LC10:
.string "\033[1;34;40m"
.align 3
.LC11:
.string "\033[1;35;40m"
.align 3
.LC12:
.string "\033[1;37;40m"
.section .data.rel.local,"aw"
.align 3
.type dbg_colortab, %object
.size dbg_colortab, 256
dbg_colortab:
.xword 2
.xword .LC0
.xword 4
.xword .LC1
.xword 8
.xword .LC1
.xword 16
.xword .LC2
.xword 32
.xword .LC3
.xword 64
.xword .LC4
.xword 128
.xword .LC5
.xword 256
.xword .LC6
.xword 512
.xword .LC7
.xword 1024
.xword .LC0
.xword 2048
.xword .LC8
.xword 4096
.xword .LC9
.xword 8192
.xword .LC0
.xword 16384
.xword .LC10
.xword 32768
.xword .LC11
.xword 65536
.xword .LC12
.section .rodata
.align 3
.LC13:
.string "all"
.align 3
.LC14:
.string "error"
.align 3
.LC15:
.string "test"
.align 3
.LC16:
.string "lc"
.align 3
.LC17:
.string "lc_msg"
.align 3
.LC18:
.string "main"
.align 3
.LC19:
.string "python"
.align 3
.LC20:
.string "6"
.align 3
.LC21:
.string "7"
.align 3
.LC22:
.string "8"
.align 3
.LC23:
.string "9"
.align 3
.LC24:
.string "10"
.align 3
.LC25:
.string "11"
.align 3
.LC26:
.string "12"
.align 3
.LC27:
.string "13"
.align 3
.LC28:
.string "14"
.align 3
.LC29:
.string "15"
.align 3
.LC30:
.string "16"
.section .data.rel.local
.align 3
.type dbg_nametab, %object
.size dbg_nametab, 304
dbg_nametab:
.xword .LC13
.xword -1
.xword .LC14
.xword 1
.xword .LC15
.xword 2
.xword .LC16
.xword 4
.xword .LC17
.xword 8
.xword .LC18
.xword 16
.xword .LC19
.xword 32
.xword .LC20
.xword 64
.xword .LC21
.xword 128
.xword .LC22
.xword 256
.xword .LC23
.xword 512
.xword .LC24
.xword 1024
.xword .LC25
.xword 2048
.xword .LC26
.xword 4096
.xword .LC27
.xword 8192
.xword .LC28
.xword 16384
.xword .LC29
.xword 32768
.xword .LC30
.xword 65536
.xword 0
.xword 0
.section .rodata
.align 3
.LC31:
.string "LCM_DBG"
.align 3
.LC32:
.string ","
.align 3
.LC33:
.string "Warning: Unknown debug option: \"%s\"\n"
.text
.align 2
.type dbg_init, %function
dbg_init:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -320]!
.cfi_def_cfa_offset 320
.cfi_offset 29, -320
.cfi_offset 30, -312
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 312]
mov x1, 0
adrp x0, dbg_initiated
add x0, x0, :lo12:dbg_initiated
mov w1, 1
strh w1, [x0]
adrp x0, dbg_modes
add x0, x0, :lo12:dbg_modes
mov x1, 1
str x1, [x0]
adrp x0, .LC31
add x0, x0, :lo12:.LC31
bl getenv
str x0, [sp, 48]
ldr x0, [sp, 48]
cmp x0, 0
beq .L16
add x0, sp, 56
mov x2, 256
ldr x1, [sp, 48]
bl strncpy
add x2, sp, 56
adrp x0, .LC32
add x1, x0, :lo12:.LC32
mov x0, x2
bl strtok
str x0, [sp, 32]
b .L4
.L14:
ldr x0, [sp, 32]
ldrb w0, [x0]
cmp w0, 45
bne .L5
mov w0, 1
str w0, [sp, 28]
ldr x0, [sp, 32]
add x0, x0, 1
str x0, [sp, 32]
b .L6
.L5:
str wzr, [sp, 28]
.L6:
adrp x0, dbg_nametab
add x0, x0, :lo12:dbg_nametab
str x0, [sp, 40]
b .L7
.L10:
ldr x0, [sp, 40]
ldr x0, [x0]
mov x1, x0
ldr x0, [sp, 32]
bl strcmp
cmp w0, 0
beq .L17
ldr x0, [sp, 40]
add x0, x0, 16
str x0, [sp, 40]
.L7:
ldr x0, [sp, 40]
ldr x0, [x0]
cmp x0, 0
bne .L10
b .L9
.L17:
nop
.L9:
ldr x0, [sp, 40]
ldr x0, [x0]
cmp x0, 0
bne .L11
adrp x0, :got:stderr
ldr x0, [x0, #:got_lo12:stderr]
ldr x3, [x0]
ldr x2, [sp, 32]
adrp x0, .LC33
add x1, x0, :lo12:.LC33
mov x0, x3
bl fprintf
b .L1
.L11:
ldr w0, [sp, 28]
cmp w0, 0
beq .L12
ldr x0, [sp, 40]
ldr x0, [x0, 8]
mvn x0, x0
adrp x1, dbg_modes
add x1, x1, :lo12:dbg_modes
ldr x1, [x1]
and x0, x0, x1
mov x1, x0
adrp x0, dbg_modes
add x0, x0, :lo12:dbg_modes
str x1, [x0]
b .L13
.L12:
ldr x0, [sp, 40]
ldr x0, [x0, 8]
adrp x1, dbg_modes
add x1, x1, :lo12:dbg_modes
ldr x1, [x1]
orr x0, x0, x1
mov x1, x0
adrp x0, dbg_modes
add x0, x0, :lo12:dbg_modes
str x1, [x0]
.L13:
adrp x0, .LC32
add x1, x0, :lo12:.LC32
mov x0, 0
bl strtok
str x0, [sp, 32]
.L4:
ldr x0, [sp, 32]
cmp x0, 0
bne .L14
b .L1
.L16:
nop
.L1:
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 312]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L15
bl __stack_chk_fail
.L15:
ldp x29, x30, [sp], 320
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size dbg_init, .-dbg_init
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "%s "
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
b .L2
.L3:
ldr x0, [sp, 16]
add x0, x0, 8
str x0, [sp, 16]
ldr x0, [sp, 16]
ldr x0, [x0]
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
.L2:
ldr w0, [sp, 28]
sub w1, w0, #1
str w1, [sp, 28]
cmp w0, 1
bgt .L3
mov w0, 10
bl putchar
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 hfi1_dbg_ibdev_exit
.type hfi1_dbg_ibdev_exit, %function
hfi1_dbg_ibdev_exit:
.LFB1:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
nop
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size hfi1_dbg_ibdev_exit, .-hfi1_dbg_ibdev_exit
.align 2
.global hfi1_dbg_init
.type hfi1_dbg_init, %function
hfi1_dbg_init:
.LFB2:
.cfi_startproc
nop
ret
.cfi_endproc
.LFE2:
.size hfi1_dbg_init, .-hfi1_dbg_init
.align 2
.global hfi1_dbg_exit
.type hfi1_dbg_exit, %function
hfi1_dbg_exit:
.LFB3:
.cfi_startproc
nop
ret
.cfi_endproc
.LFE3:
.size hfi1_dbg_exit, .-hfi1_dbg_exit
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.type RedisModuleEvent_ReplicationRoleChanged, %object
.size RedisModuleEvent_ReplicationRoleChanged, 16
RedisModuleEvent_ReplicationRoleChanged:
.xword 0
.xword 1
.align 3
.type RedisModuleEvent_Persistence, %object
.size RedisModuleEvent_Persistence, 16
RedisModuleEvent_Persistence:
.xword 1
.xword 1
.align 3
.type RedisModuleEvent_FlushDB, %object
.size RedisModuleEvent_FlushDB, 16
RedisModuleEvent_FlushDB:
.xword 2
.xword 1
.align 3
.type RedisModuleEvent_Loading, %object
.size RedisModuleEvent_Loading, 16
RedisModuleEvent_Loading:
.xword 3
.xword 1
.align 3
.type RedisModuleEvent_ClientChange, %object
.size RedisModuleEvent_ClientChange, 16
RedisModuleEvent_ClientChange:
.xword 4
.xword 1
.align 3
.type RedisModuleEvent_Shutdown, %object
.size RedisModuleEvent_Shutdown, 16
RedisModuleEvent_Shutdown:
.xword 5
.xword 1
.align 3
.type RedisModuleEvent_ReplicaChange, %object
.size RedisModuleEvent_ReplicaChange, 16
RedisModuleEvent_ReplicaChange:
.xword 6
.xword 1
.align 3
.type RedisModuleEvent_CronLoop, %object
.size RedisModuleEvent_CronLoop, 16
RedisModuleEvent_CronLoop:
.xword 8
.xword 1
.align 3
.type RedisModuleEvent_MasterLinkChange, %object
.size RedisModuleEvent_MasterLinkChange, 16
RedisModuleEvent_MasterLinkChange:
.xword 7
.xword 1
.align 3
.type RedisModuleEvent_ModuleChange, %object
.size RedisModuleEvent_ModuleChange, 16
RedisModuleEvent_ModuleChange:
.xword 9
.xword 1
.align 3
.type RedisModuleEvent_LoadingProgress, %object
.size RedisModuleEvent_LoadingProgress, 16
RedisModuleEvent_LoadingProgress:
.xword 10
.xword 1
.comm RedisModule_Alloc,8,8
.comm RedisModule_Realloc,8,8
.comm RedisModule_Free,8,8
.comm RedisModule_Calloc,8,8
.comm RedisModule_Strdup,8,8
.comm RedisModule_GetApi,8,8
.comm RedisModule_CreateCommand,8,8
.comm RedisModule_SetModuleAttribs,8,8
.comm RedisModule_IsModuleNameBusy,8,8
.comm RedisModule_WrongArity,8,8
.comm RedisModule_ReplyWithLongLong,8,8
.comm RedisModule_GetSelectedDb,8,8
.comm RedisModule_SelectDb,8,8
.comm RedisModule_OpenKey,8,8
.comm RedisModule_CloseKey,8,8
.comm RedisModule_KeyType,8,8
.comm RedisModule_ValueLength,8,8
.comm RedisModule_ListPush,8,8
.comm RedisModule_ListPop,8,8
.comm RedisModule_Call,8,8
.comm RedisModule_CallReplyProto,8,8
.comm RedisModule_FreeCallReply,8,8
.comm RedisModule_CallReplyType,8,8
.comm RedisModule_CallReplyInteger,8,8
.comm RedisModule_CallReplyLength,8,8
.comm RedisModule_CallReplyArrayElement,8,8
.comm RedisModule_CreateString,8,8
.comm RedisModule_CreateStringFromLongLong,8,8
.comm RedisModule_CreateStringFromDouble,8,8
.comm RedisModule_CreateStringFromLongDouble,8,8
.comm RedisModule_CreateStringFromString,8,8
.comm RedisModule_CreateStringPrintf,8,8
.comm RedisModule_FreeString,8,8
.comm RedisModule_StringPtrLen,8,8
.comm RedisModule_ReplyWithError,8,8
.comm RedisModule_ReplyWithSimpleString,8,8
.comm RedisModule_ReplyWithArray,8,8
.comm RedisModule_ReplyWithNullArray,8,8
.comm RedisModule_ReplyWithEmptyArray,8,8
.comm RedisModule_ReplySetArrayLength,8,8
.comm RedisModule_ReplyWithStringBuffer,8,8
.comm RedisModule_ReplyWithCString,8,8
.comm RedisModule_ReplyWithString,8,8
.comm RedisModule_ReplyWithEmptyString,8,8
.comm RedisModule_ReplyWithVerbatimString,8,8
.comm RedisModule_ReplyWithNull,8,8
.comm RedisModule_ReplyWithDouble,8,8
.comm RedisModule_ReplyWithLongDouble,8,8
.comm RedisModule_ReplyWithCallReply,8,8
.comm RedisModule_StringToLongLong,8,8
.comm RedisModule_StringToDouble,8,8
.comm RedisModule_StringToLongDouble,8,8
.comm RedisModule_AutoMemory,8,8
.comm RedisModule_Replicate,8,8
.comm RedisModule_ReplicateVerbatim,8,8
.comm RedisModule_CallReplyStringPtr,8,8
.comm RedisModule_CreateStringFromCallReply,8,8
.comm RedisModule_DeleteKey,8,8
.comm RedisModule_UnlinkKey,8,8
.comm RedisModule_StringSet,8,8
.comm RedisModule_StringDMA,8,8
.comm RedisModule_StringTruncate,8,8
.comm RedisModule_GetExpire,8,8
.comm RedisModule_SetExpire,8,8
.comm RedisModule_ResetDataset,8,8
.comm RedisModule_DbSize,8,8
.comm RedisModule_RandomKey,8,8
.comm RedisModule_ZsetAdd,8,8
.comm RedisModule_ZsetIncrby,8,8
.comm RedisModule_ZsetScore,8,8
.comm RedisModule_ZsetRem,8,8
.comm RedisModule_ZsetRangeStop,8,8
.comm RedisModule_ZsetFirstInScoreRange,8,8
.comm RedisModule_ZsetLastInScoreRange,8,8
.comm RedisModule_ZsetFirstInLexRange,8,8
.comm RedisModule_ZsetLastInLexRange,8,8
.comm RedisModule_ZsetRangeCurrentElement,8,8
.comm RedisModule_ZsetRangeNext,8,8
.comm RedisModule_ZsetRangePrev,8,8
.comm RedisModule_ZsetRangeEndReached,8,8
.comm RedisModule_HashSet,8,8
.comm RedisModule_HashGet,8,8
.comm RedisModule_IsKeysPositionRequest,8,8
.comm RedisModule_KeyAtPos,8,8
.comm RedisModule_GetClientId,8,8
.comm RedisModule_GetClientInfoById,8,8
.comm RedisModule_PublishMessage,8,8
.comm RedisModule_GetContextFlags,8,8
.comm RedisModule_AvoidReplicaTraffic,8,8
.comm RedisModule_PoolAlloc,8,8
.comm RedisModule_CreateDataType,8,8
.comm RedisModule_ModuleTypeSetValue,8,8
.comm RedisModule_ModuleTypeReplaceValue,8,8
.comm RedisModule_ModuleTypeGetType,8,8
.comm RedisModule_ModuleTypeGetValue,8,8
.comm RedisModule_IsIOError,8,8
.comm RedisModule_SetModuleOptions,8,8
.comm RedisModule_SignalModifiedKey,8,8
.comm RedisModule_SaveUnsigned,8,8
.comm RedisModule_LoadUnsigned,8,8
.comm RedisModule_SaveSigned,8,8
.comm RedisModule_LoadSigned,8,8
.comm RedisModule_EmitAOF,8,8
.comm RedisModule_SaveString,8,8
.comm RedisModule_SaveStringBuffer,8,8
.comm RedisModule_LoadString,8,8
.comm RedisModule_LoadStringBuffer,8,8
.comm RedisModule_SaveDouble,8,8
.comm RedisModule_LoadDouble,8,8
.comm RedisModule_SaveFloat,8,8
.comm RedisModule_LoadFloat,8,8
.comm RedisModule_SaveLongDouble,8,8
.comm RedisModule_LoadLongDouble,8,8
.comm RedisModule_LoadDataTypeFromString,8,8
.comm RedisModule_SaveDataTypeToString,8,8
.comm RedisModule_Log,8,8
.comm RedisModule_LogIOError,8,8
.comm RedisModule__Assert,8,8
.comm RedisModule_LatencyAddSample,8,8
.comm RedisModule_StringAppendBuffer,8,8
.comm RedisModule_RetainString,8,8
.comm RedisModule_HoldString,8,8
.comm RedisModule_StringCompare,8,8
.comm RedisModule_GetContextFromIO,8,8
.comm RedisModule_GetKeyNameFromIO,8,8
.comm RedisModule_GetKeyNameFromModuleKey,8,8
.comm RedisModule_Milliseconds,8,8
.comm RedisModule_DigestAddStringBuffer,8,8
.comm RedisModule_DigestAddLongLong,8,8
.comm RedisModule_DigestEndSequence,8,8
.comm RedisModule_CreateDict,8,8
.comm RedisModule_FreeDict,8,8
.comm RedisModule_DictSize,8,8
.comm RedisModule_DictSetC,8,8
.comm RedisModule_DictReplaceC,8,8
.comm RedisModule_DictSet,8,8
.comm RedisModule_DictReplace,8,8
.comm RedisModule_DictGetC,8,8
.comm RedisModule_DictGet,8,8
.comm RedisModule_DictDelC,8,8
.comm RedisModule_DictDel,8,8
.comm RedisModule_DictIteratorStartC,8,8
.comm RedisModule_DictIteratorStart,8,8
.comm RedisModule_DictIteratorStop,8,8
.comm RedisModule_DictIteratorReseekC,8,8
.comm RedisModule_DictIteratorReseek,8,8
.comm RedisModule_DictNextC,8,8
.comm RedisModule_DictPrevC,8,8
.comm RedisModule_DictNext,8,8
.comm RedisModule_DictPrev,8,8
.comm RedisModule_DictCompareC,8,8
.comm RedisModule_DictCompare,8,8
.comm RedisModule_RegisterInfoFunc,8,8
.comm RedisModule_InfoAddSection,8,8
.comm RedisModule_InfoBeginDictField,8,8
.comm RedisModule_InfoEndDictField,8,8
.comm RedisModule_InfoAddFieldString,8,8
.comm RedisModule_InfoAddFieldCString,8,8
.comm RedisModule_InfoAddFieldDouble,8,8
.comm RedisModule_InfoAddFieldLongLong,8,8
.comm RedisModule_InfoAddFieldULongLong,8,8
.comm RedisModule_GetServerInfo,8,8
.comm RedisModule_FreeServerInfo,8,8
.comm RedisModule_ServerInfoGetField,8,8
.comm RedisModule_ServerInfoGetFieldC,8,8
.comm RedisModule_ServerInfoGetFieldSigned,8,8
.comm RedisModule_ServerInfoGetFieldUnsigned,8,8
.comm RedisModule_ServerInfoGetFieldDouble,8,8
.comm RedisModule_SubscribeToServerEvent,8,8
.comm RedisModule_SetLRU,8,8
.comm RedisModule_GetLRU,8,8
.comm RedisModule_SetLFU,8,8
.comm RedisModule_GetLFU,8,8
.comm RedisModule_BlockClientOnKeys,8,8
.comm RedisModule_SignalKeyAsReady,8,8
.comm RedisModule_GetBlockedClientReadyKey,8,8
.comm RedisModule_ScanCursorCreate,8,8
.comm RedisModule_ScanCursorRestart,8,8
.comm RedisModule_ScanCursorDestroy,8,8
.comm RedisModule_Scan,8,8
.comm RedisModule_ScanKey,8,8
.align 3
.LC0:
.string "RedisModule_Alloc"
.align 3
.LC1:
.string "RedisModule_Calloc"
.align 3
.LC2:
.string "RedisModule_Free"
.align 3
.LC3:
.string "RedisModule_Realloc"
.align 3
.LC4:
.string "RedisModule_Strdup"
.align 3
.LC5:
.string "RedisModule_CreateCommand"
.align 3
.LC6:
.string "RedisModule_SetModuleAttribs"
.align 3
.LC7:
.string "RedisModule_IsModuleNameBusy"
.align 3
.LC8:
.string "RedisModule_WrongArity"
.align 3
.LC9:
.string "RedisModule_ReplyWithLongLong"
.align 3
.LC10:
.string "RedisModule_ReplyWithError"
.align 3
.LC11:
.string "RedisModule_ReplyWithSimpleString"
.align 3
.LC12:
.string "RedisModule_ReplyWithArray"
.align 3
.LC13:
.string "RedisModule_ReplyWithNullArray"
.align 3
.LC14:
.string "RedisModule_ReplyWithEmptyArray"
.align 3
.LC15:
.string "RedisModule_ReplySetArrayLength"
.align 3
.LC16:
.string "RedisModule_ReplyWithStringBuffer"
.align 3
.LC17:
.string "RedisModule_ReplyWithCString"
.align 3
.LC18:
.string "RedisModule_ReplyWithString"
.align 3
.LC19:
.string "RedisModule_ReplyWithEmptyString"
.align 3
.LC20:
.string "RedisModule_ReplyWithVerbatimString"
.align 3
.LC21:
.string "RedisModule_ReplyWithNull"
.align 3
.LC22:
.string "RedisModule_ReplyWithCallReply"
.align 3
.LC23:
.string "RedisModule_ReplyWithDouble"
.align 3
.LC24:
.string "RedisModule_ReplyWithLongDouble"
.align 3
.LC25:
.string "RedisModule_GetSelectedDb"
.align 3
.LC26:
.string "RedisModule_SelectDb"
.align 3
.LC27:
.string "RedisModule_OpenKey"
.align 3
.LC28:
.string "RedisModule_CloseKey"
.align 3
.LC29:
.string "RedisModule_KeyType"
.align 3
.LC30:
.string "RedisModule_ValueLength"
.align 3
.LC31:
.string "RedisModule_ListPush"
.align 3
.LC32:
.string "RedisModule_ListPop"
.align 3
.LC33:
.string "RedisModule_StringToLongLong"
.align 3
.LC34:
.string "RedisModule_StringToDouble"
.align 3
.LC35:
.string "RedisModule_StringToLongDouble"
.align 3
.LC36:
.string "RedisModule_Call"
.align 3
.LC37:
.string "RedisModule_CallReplyProto"
.align 3
.LC38:
.string "RedisModule_FreeCallReply"
.align 3
.LC39:
.string "RedisModule_CallReplyInteger"
.align 3
.LC40:
.string "RedisModule_CallReplyType"
.align 3
.LC41:
.string "RedisModule_CallReplyLength"
.align 3
.LC42:
.string "RedisModule_CallReplyArrayElement"
.align 3
.LC43:
.string "RedisModule_CallReplyStringPtr"
.align 3
.LC44:
.string "RedisModule_CreateStringFromCallReply"
.align 3
.LC45:
.string "RedisModule_CreateString"
.align 3
.LC46:
.string "RedisModule_CreateStringFromLongLong"
.align 3
.LC47:
.string "RedisModule_CreateStringFromDouble"
.align 3
.LC48:
.string "RedisModule_CreateStringFromLongDouble"
.align 3
.LC49:
.string "RedisModule_CreateStringFromString"
.align 3
.LC50:
.string "RedisModule_CreateStringPrintf"
.align 3
.LC51:
.string "RedisModule_FreeString"
.align 3
.LC52:
.string "RedisModule_StringPtrLen"
.align 3
.LC53:
.string "RedisModule_AutoMemory"
.align 3
.LC54:
.string "RedisModule_Replicate"
.align 3
.LC55:
.string "RedisModule_ReplicateVerbatim"
.align 3
.LC56:
.string "RedisModule_DeleteKey"
.align 3
.LC57:
.string "RedisModule_UnlinkKey"
.align 3
.LC58:
.string "RedisModule_StringSet"
.align 3
.LC59:
.string "RedisModule_StringDMA"
.align 3
.LC60:
.string "RedisModule_StringTruncate"
.align 3
.LC61:
.string "RedisModule_GetExpire"
.align 3
.LC62:
.string "RedisModule_SetExpire"
.align 3
.LC63:
.string "RedisModule_ResetDataset"
.align 3
.LC64:
.string "RedisModule_DbSize"
.align 3
.LC65:
.string "RedisModule_RandomKey"
.align 3
.LC66:
.string "RedisModule_ZsetAdd"
.align 3
.LC67:
.string "RedisModule_ZsetIncrby"
.align 3
.LC68:
.string "RedisModule_ZsetScore"
.align 3
.LC69:
.string "RedisModule_ZsetRem"
.align 3
.LC70:
.string "RedisModule_ZsetRangeStop"
.align 3
.LC71:
.string "RedisModule_ZsetFirstInScoreRange"
.align 3
.LC72:
.string "RedisModule_ZsetLastInScoreRange"
.align 3
.LC73:
.string "RedisModule_ZsetFirstInLexRange"
.align 3
.LC74:
.string "RedisModule_ZsetLastInLexRange"
.align 3
.LC75:
.string "RedisModule_ZsetRangeCurrentElement"
.align 3
.LC76:
.string "RedisModule_ZsetRangeNext"
.align 3
.LC77:
.string "RedisModule_ZsetRangePrev"
.align 3
.LC78:
.string "RedisModule_ZsetRangeEndReached"
.align 3
.LC79:
.string "RedisModule_HashSet"
.align 3
.LC80:
.string "RedisModule_HashGet"
.align 3
.LC81:
.string "RedisModule_IsKeysPositionRequest"
.align 3
.LC82:
.string "RedisModule_KeyAtPos"
.align 3
.LC83:
.string "RedisModule_GetClientId"
.align 3
.LC84:
.string "RedisModule_GetContextFlags"
.align 3
.LC85:
.string "RedisModule_AvoidReplicaTraffic"
.align 3
.LC86:
.string "RedisModule_PoolAlloc"
.align 3
.LC87:
.string "RedisModule_CreateDataType"
.align 3
.LC88:
.string "RedisModule_ModuleTypeSetValue"
.align 3
.LC89:
.string "RedisModule_ModuleTypeReplaceValue"
.align 3
.LC90:
.string "RedisModule_ModuleTypeGetType"
.align 3
.LC91:
.string "RedisModule_ModuleTypeGetValue"
.align 3
.LC92:
.string "RedisModule_IsIOError"
.align 3
.LC93:
.string "RedisModule_SetModuleOptions"
.align 3
.LC94:
.string "RedisModule_SignalModifiedKey"
.align 3
.LC95:
.string "RedisModule_SaveUnsigned"
.align 3
.LC96:
.string "RedisModule_LoadUnsigned"
.align 3
.LC97:
.string "RedisModule_SaveSigned"
.align 3
.LC98:
.string "RedisModule_LoadSigned"
.align 3
.LC99:
.string "RedisModule_SaveString"
.align 3
.LC100:
.string "RedisModule_SaveStringBuffer"
.align 3
.LC101:
.string "RedisModule_LoadString"
.align 3
.LC102:
.string "RedisModule_LoadStringBuffer"
.align 3
.LC103:
.string "RedisModule_SaveDouble"
.align 3
.LC104:
.string "RedisModule_LoadDouble"
.align 3
.LC105:
.string "RedisModule_SaveFloat"
.align 3
.LC106:
.string "RedisModule_LoadFloat"
.align 3
.LC107:
.string "RedisModule_SaveLongDouble"
.align 3
.LC108:
.string "RedisModule_LoadLongDouble"
.align 3
.LC109:
.string "RedisModule_SaveDataTypeToString"
.align 3
.LC110:
.string "RedisModule_LoadDataTypeFromString"
.align 3
.LC111:
.string "RedisModule_EmitAOF"
.align 3
.LC112:
.string "RedisModule_Log"
.align 3
.LC113:
.string "RedisModule_LogIOError"
.align 3
.LC114:
.string "RedisModule__Assert"
.align 3
.LC115:
.string "RedisModule_LatencyAddSample"
.align 3
.LC116:
.string "RedisModule_StringAppendBuffer"
.align 3
.LC117:
.string "RedisModule_RetainString"
.align 3
.LC118:
.string "RedisModule_HoldString"
.align 3
.LC119:
.string "RedisModule_StringCompare"
.align 3
.LC120:
.string "RedisModule_GetContextFromIO"
.align 3
.LC121:
.string "RedisModule_GetKeyNameFromIO"
.align 3
.LC122:
.string "RedisModule_GetKeyNameFromModuleKey"
.align 3
.LC123:
.string "RedisModule_Milliseconds"
.align 3
.LC124:
.string "RedisModule_DigestAddStringBuffer"
.align 3
.LC125:
.string "RedisModule_DigestAddLongLong"
.align 3
.LC126:
.string "RedisModule_DigestEndSequence"
.align 3
.LC127:
.string "RedisModule_CreateDict"
.align 3
.LC128:
.string "RedisModule_FreeDict"
.align 3
.LC129:
.string "RedisModule_DictSize"
.align 3
.LC130:
.string "RedisModule_DictSetC"
.align 3
.LC131:
.string "RedisModule_DictReplaceC"
.align 3
.LC132:
.string "RedisModule_DictSet"
.align 3
.LC133:
.string "RedisModule_DictReplace"
.align 3
.LC134:
.string "RedisModule_DictGetC"
.align 3
.LC135:
.string "RedisModule_DictGet"
.align 3
.LC136:
.string "RedisModule_DictDelC"
.align 3
.LC137:
.string "RedisModule_DictDel"
.align 3
.LC138:
.string "RedisModule_DictIteratorStartC"
.align 3
.LC139:
.string "RedisModule_DictIteratorStart"
.align 3
.LC140:
.string "RedisModule_DictIteratorStop"
.align 3
.LC141:
.string "RedisModule_DictIteratorReseekC"
.align 3
.LC142:
.string "RedisModule_DictIteratorReseek"
.align 3
.LC143:
.string "RedisModule_DictNextC"
.align 3
.LC144:
.string "RedisModule_DictPrevC"
.align 3
.LC145:
.string "RedisModule_DictNext"
.align 3
.LC146:
.string "RedisModule_DictPrev"
.align 3
.LC147:
.string "RedisModule_DictCompare"
.align 3
.LC148:
.string "RedisModule_DictCompareC"
.align 3
.LC149:
.string "RedisModule_RegisterInfoFunc"
.align 3
.LC150:
.string "RedisModule_InfoAddSection"
.align 3
.LC151:
.string "RedisModule_InfoBeginDictField"
.align 3
.LC152:
.string "RedisModule_InfoEndDictField"
.align 3
.LC153:
.string "RedisModule_InfoAddFieldString"
.align 3
.LC154:
.string "RedisModule_InfoAddFieldCString"
.align 3
.LC155:
.string "RedisModule_InfoAddFieldDouble"
.align 3
.LC156:
.string "RedisModule_InfoAddFieldLongLong"
.align 3
.LC157:
.string "RedisModule_InfoAddFieldULongLong"
.align 3
.LC158:
.string "RedisModule_GetServerInfo"
.align 3
.LC159:
.string "RedisModule_FreeServerInfo"
.align 3
.LC160:
.string "RedisModule_ServerInfoGetField"
.align 3
.LC161:
.string "RedisModule_ServerInfoGetFieldC"
.align 3
.LC162:
.string "RedisModule_ServerInfoGetFieldSigned"
.align 3
.LC163:
.string "RedisModule_ServerInfoGetFieldUnsigned"
.align 3
.LC164:
.string "RedisModule_ServerInfoGetFieldDouble"
.align 3
.LC165:
.string "RedisModule_GetClientInfoById"
.align 3
.LC166:
.string "RedisModule_PublishMessage"
.align 3
.LC167:
.string "RedisModule_SubscribeToServerEvent"
.align 3
.LC168:
.string "RedisModule_SetLRU"
.align 3
.LC169:
.string "RedisModule_GetLRU"
.align 3
.LC170:
.string "RedisModule_SetLFU"
.align 3
.LC171:
.string "RedisModule_GetLFU"
.align 3
.LC172:
.string "RedisModule_BlockClientOnKeys"
.align 3
.LC173:
.string "RedisModule_SignalKeyAsReady"
.align 3
.LC174:
.string "RedisModule_GetBlockedClientReadyKey"
.align 3
.LC175:
.string "RedisModule_ScanCursorCreate"
.align 3
.LC176:
.string "RedisModule_ScanCursorRestart"
.align 3
.LC177:
.string "RedisModule_ScanCursorDestroy"
.align 3
.LC178:
.string "RedisModule_Scan"
.align 3
.LC179:
.string "RedisModule_ScanKey"
.text
.align 2
.type RedisModule_Init, %function
RedisModule_Init:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 40]
str x1, [sp, 32]
str w2, [sp, 28]
str w3, [sp, 24]
ldr x0, [sp, 40]
ldr x0, [x0]
str x0, [sp, 56]
ldr x1, [sp, 56]
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
str x1, [x0]
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_Alloc
ldr x1, [x0, #:got_lo12:RedisModule_Alloc]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_Calloc
ldr x1, [x0, #:got_lo12:RedisModule_Calloc]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_Free
ldr x1, [x0, #:got_lo12:RedisModule_Free]
adrp x0, .LC2
add x0, x0, :lo12:.LC2
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_Realloc
ldr x1, [x0, #:got_lo12:RedisModule_Realloc]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_Strdup
ldr x1, [x0, #:got_lo12:RedisModule_Strdup]
adrp x0, .LC4
add x0, x0, :lo12:.LC4
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_CreateCommand
ldr x1, [x0, #:got_lo12:RedisModule_CreateCommand]
adrp x0, .LC5
add x0, x0, :lo12:.LC5
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_SetModuleAttribs
ldr x1, [x0, #:got_lo12:RedisModule_SetModuleAttribs]
adrp x0, .LC6
add x0, x0, :lo12:.LC6
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_IsModuleNameBusy
ldr x1, [x0, #:got_lo12:RedisModule_IsModuleNameBusy]
adrp x0, .LC7
add x0, x0, :lo12:.LC7
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_WrongArity
ldr x1, [x0, #:got_lo12:RedisModule_WrongArity]
adrp x0, .LC8
add x0, x0, :lo12:.LC8
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ReplyWithLongLong
ldr x1, [x0, #:got_lo12:RedisModule_ReplyWithLongLong]
adrp x0, .LC9
add x0, x0, :lo12:.LC9
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ReplyWithError
ldr x1, [x0, #:got_lo12:RedisModule_ReplyWithError]
adrp x0, .LC10
add x0, x0, :lo12:.LC10
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ReplyWithSimpleString
ldr x1, [x0, #:got_lo12:RedisModule_ReplyWithSimpleString]
adrp x0, .LC11
add x0, x0, :lo12:.LC11
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ReplyWithArray
ldr x1, [x0, #:got_lo12:RedisModule_ReplyWithArray]
adrp x0, .LC12
add x0, x0, :lo12:.LC12
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ReplyWithNullArray
ldr x1, [x0, #:got_lo12:RedisModule_ReplyWithNullArray]
adrp x0, .LC13
add x0, x0, :lo12:.LC13
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ReplyWithEmptyArray
ldr x1, [x0, #:got_lo12:RedisModule_ReplyWithEmptyArray]
adrp x0, .LC14
add x0, x0, :lo12:.LC14
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ReplySetArrayLength
ldr x1, [x0, #:got_lo12:RedisModule_ReplySetArrayLength]
adrp x0, .LC15
add x0, x0, :lo12:.LC15
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ReplyWithStringBuffer
ldr x1, [x0, #:got_lo12:RedisModule_ReplyWithStringBuffer]
adrp x0, .LC16
add x0, x0, :lo12:.LC16
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ReplyWithCString
ldr x1, [x0, #:got_lo12:RedisModule_ReplyWithCString]
adrp x0, .LC17
add x0, x0, :lo12:.LC17
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ReplyWithString
ldr x1, [x0, #:got_lo12:RedisModule_ReplyWithString]
adrp x0, .LC18
add x0, x0, :lo12:.LC18
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ReplyWithEmptyString
ldr x1, [x0, #:got_lo12:RedisModule_ReplyWithEmptyString]
adrp x0, .LC19
add x0, x0, :lo12:.LC19
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ReplyWithVerbatimString
ldr x1, [x0, #:got_lo12:RedisModule_ReplyWithVerbatimString]
adrp x0, .LC20
add x0, x0, :lo12:.LC20
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ReplyWithNull
ldr x1, [x0, #:got_lo12:RedisModule_ReplyWithNull]
adrp x0, .LC21
add x0, x0, :lo12:.LC21
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ReplyWithCallReply
ldr x1, [x0, #:got_lo12:RedisModule_ReplyWithCallReply]
adrp x0, .LC22
add x0, x0, :lo12:.LC22
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ReplyWithDouble
ldr x1, [x0, #:got_lo12:RedisModule_ReplyWithDouble]
adrp x0, .LC23
add x0, x0, :lo12:.LC23
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ReplyWithLongDouble
ldr x1, [x0, #:got_lo12:RedisModule_ReplyWithLongDouble]
adrp x0, .LC24
add x0, x0, :lo12:.LC24
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_GetSelectedDb
ldr x1, [x0, #:got_lo12:RedisModule_GetSelectedDb]
adrp x0, .LC25
add x0, x0, :lo12:.LC25
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_SelectDb
ldr x1, [x0, #:got_lo12:RedisModule_SelectDb]
adrp x0, .LC26
add x0, x0, :lo12:.LC26
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_OpenKey
ldr x1, [x0, #:got_lo12:RedisModule_OpenKey]
adrp x0, .LC27
add x0, x0, :lo12:.LC27
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_CloseKey
ldr x1, [x0, #:got_lo12:RedisModule_CloseKey]
adrp x0, .LC28
add x0, x0, :lo12:.LC28
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_KeyType
ldr x1, [x0, #:got_lo12:RedisModule_KeyType]
adrp x0, .LC29
add x0, x0, :lo12:.LC29
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ValueLength
ldr x1, [x0, #:got_lo12:RedisModule_ValueLength]
adrp x0, .LC30
add x0, x0, :lo12:.LC30
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ListPush
ldr x1, [x0, #:got_lo12:RedisModule_ListPush]
adrp x0, .LC31
add x0, x0, :lo12:.LC31
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ListPop
ldr x1, [x0, #:got_lo12:RedisModule_ListPop]
adrp x0, .LC32
add x0, x0, :lo12:.LC32
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_StringToLongLong
ldr x1, [x0, #:got_lo12:RedisModule_StringToLongLong]
adrp x0, .LC33
add x0, x0, :lo12:.LC33
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_StringToDouble
ldr x1, [x0, #:got_lo12:RedisModule_StringToDouble]
adrp x0, .LC34
add x0, x0, :lo12:.LC34
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_StringToLongDouble
ldr x1, [x0, #:got_lo12:RedisModule_StringToLongDouble]
adrp x0, .LC35
add x0, x0, :lo12:.LC35
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_Call
ldr x1, [x0, #:got_lo12:RedisModule_Call]
adrp x0, .LC36
add x0, x0, :lo12:.LC36
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_CallReplyProto
ldr x1, [x0, #:got_lo12:RedisModule_CallReplyProto]
adrp x0, .LC37
add x0, x0, :lo12:.LC37
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_FreeCallReply
ldr x1, [x0, #:got_lo12:RedisModule_FreeCallReply]
adrp x0, .LC38
add x0, x0, :lo12:.LC38
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_CallReplyInteger
ldr x1, [x0, #:got_lo12:RedisModule_CallReplyInteger]
adrp x0, .LC39
add x0, x0, :lo12:.LC39
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_CallReplyType
ldr x1, [x0, #:got_lo12:RedisModule_CallReplyType]
adrp x0, .LC40
add x0, x0, :lo12:.LC40
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_CallReplyLength
ldr x1, [x0, #:got_lo12:RedisModule_CallReplyLength]
adrp x0, .LC41
add x0, x0, :lo12:.LC41
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_CallReplyArrayElement
ldr x1, [x0, #:got_lo12:RedisModule_CallReplyArrayElement]
adrp x0, .LC42
add x0, x0, :lo12:.LC42
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_CallReplyStringPtr
ldr x1, [x0, #:got_lo12:RedisModule_CallReplyStringPtr]
adrp x0, .LC43
add x0, x0, :lo12:.LC43
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_CreateStringFromCallReply
ldr x1, [x0, #:got_lo12:RedisModule_CreateStringFromCallReply]
adrp x0, .LC44
add x0, x0, :lo12:.LC44
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_CreateString
ldr x1, [x0, #:got_lo12:RedisModule_CreateString]
adrp x0, .LC45
add x0, x0, :lo12:.LC45
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_CreateStringFromLongLong
ldr x1, [x0, #:got_lo12:RedisModule_CreateStringFromLongLong]
adrp x0, .LC46
add x0, x0, :lo12:.LC46
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_CreateStringFromDouble
ldr x1, [x0, #:got_lo12:RedisModule_CreateStringFromDouble]
adrp x0, .LC47
add x0, x0, :lo12:.LC47
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_CreateStringFromLongDouble
ldr x1, [x0, #:got_lo12:RedisModule_CreateStringFromLongDouble]
adrp x0, .LC48
add x0, x0, :lo12:.LC48
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_CreateStringFromString
ldr x1, [x0, #:got_lo12:RedisModule_CreateStringFromString]
adrp x0, .LC49
add x0, x0, :lo12:.LC49
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_CreateStringPrintf
ldr x1, [x0, #:got_lo12:RedisModule_CreateStringPrintf]
adrp x0, .LC50
add x0, x0, :lo12:.LC50
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_FreeString
ldr x1, [x0, #:got_lo12:RedisModule_FreeString]
adrp x0, .LC51
add x0, x0, :lo12:.LC51
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_StringPtrLen
ldr x1, [x0, #:got_lo12:RedisModule_StringPtrLen]
adrp x0, .LC52
add x0, x0, :lo12:.LC52
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_AutoMemory
ldr x1, [x0, #:got_lo12:RedisModule_AutoMemory]
adrp x0, .LC53
add x0, x0, :lo12:.LC53
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_Replicate
ldr x1, [x0, #:got_lo12:RedisModule_Replicate]
adrp x0, .LC54
add x0, x0, :lo12:.LC54
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ReplicateVerbatim
ldr x1, [x0, #:got_lo12:RedisModule_ReplicateVerbatim]
adrp x0, .LC55
add x0, x0, :lo12:.LC55
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_DeleteKey
ldr x1, [x0, #:got_lo12:RedisModule_DeleteKey]
adrp x0, .LC56
add x0, x0, :lo12:.LC56
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_UnlinkKey
ldr x1, [x0, #:got_lo12:RedisModule_UnlinkKey]
adrp x0, .LC57
add x0, x0, :lo12:.LC57
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_StringSet
ldr x1, [x0, #:got_lo12:RedisModule_StringSet]
adrp x0, .LC58
add x0, x0, :lo12:.LC58
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_StringDMA
ldr x1, [x0, #:got_lo12:RedisModule_StringDMA]
adrp x0, .LC59
add x0, x0, :lo12:.LC59
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_StringTruncate
ldr x1, [x0, #:got_lo12:RedisModule_StringTruncate]
adrp x0, .LC60
add x0, x0, :lo12:.LC60
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_GetExpire
ldr x1, [x0, #:got_lo12:RedisModule_GetExpire]
adrp x0, .LC61
add x0, x0, :lo12:.LC61
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_SetExpire
ldr x1, [x0, #:got_lo12:RedisModule_SetExpire]
adrp x0, .LC62
add x0, x0, :lo12:.LC62
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ResetDataset
ldr x1, [x0, #:got_lo12:RedisModule_ResetDataset]
adrp x0, .LC63
add x0, x0, :lo12:.LC63
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_DbSize
ldr x1, [x0, #:got_lo12:RedisModule_DbSize]
adrp x0, .LC64
add x0, x0, :lo12:.LC64
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_RandomKey
ldr x1, [x0, #:got_lo12:RedisModule_RandomKey]
adrp x0, .LC65
add x0, x0, :lo12:.LC65
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ZsetAdd
ldr x1, [x0, #:got_lo12:RedisModule_ZsetAdd]
adrp x0, .LC66
add x0, x0, :lo12:.LC66
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ZsetIncrby
ldr x1, [x0, #:got_lo12:RedisModule_ZsetIncrby]
adrp x0, .LC67
add x0, x0, :lo12:.LC67
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ZsetScore
ldr x1, [x0, #:got_lo12:RedisModule_ZsetScore]
adrp x0, .LC68
add x0, x0, :lo12:.LC68
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ZsetRem
ldr x1, [x0, #:got_lo12:RedisModule_ZsetRem]
adrp x0, .LC69
add x0, x0, :lo12:.LC69
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ZsetRangeStop
ldr x1, [x0, #:got_lo12:RedisModule_ZsetRangeStop]
adrp x0, .LC70
add x0, x0, :lo12:.LC70
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ZsetFirstInScoreRange
ldr x1, [x0, #:got_lo12:RedisModule_ZsetFirstInScoreRange]
adrp x0, .LC71
add x0, x0, :lo12:.LC71
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ZsetLastInScoreRange
ldr x1, [x0, #:got_lo12:RedisModule_ZsetLastInScoreRange]
adrp x0, .LC72
add x0, x0, :lo12:.LC72
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ZsetFirstInLexRange
ldr x1, [x0, #:got_lo12:RedisModule_ZsetFirstInLexRange]
adrp x0, .LC73
add x0, x0, :lo12:.LC73
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ZsetLastInLexRange
ldr x1, [x0, #:got_lo12:RedisModule_ZsetLastInLexRange]
adrp x0, .LC74
add x0, x0, :lo12:.LC74
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ZsetRangeCurrentElement
ldr x1, [x0, #:got_lo12:RedisModule_ZsetRangeCurrentElement]
adrp x0, .LC75
add x0, x0, :lo12:.LC75
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ZsetRangeNext
ldr x1, [x0, #:got_lo12:RedisModule_ZsetRangeNext]
adrp x0, .LC76
add x0, x0, :lo12:.LC76
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ZsetRangePrev
ldr x1, [x0, #:got_lo12:RedisModule_ZsetRangePrev]
adrp x0, .LC77
add x0, x0, :lo12:.LC77
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ZsetRangeEndReached
ldr x1, [x0, #:got_lo12:RedisModule_ZsetRangeEndReached]
adrp x0, .LC78
add x0, x0, :lo12:.LC78
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_HashSet
ldr x1, [x0, #:got_lo12:RedisModule_HashSet]
adrp x0, .LC79
add x0, x0, :lo12:.LC79
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_HashGet
ldr x1, [x0, #:got_lo12:RedisModule_HashGet]
adrp x0, .LC80
add x0, x0, :lo12:.LC80
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_IsKeysPositionRequest
ldr x1, [x0, #:got_lo12:RedisModule_IsKeysPositionRequest]
adrp x0, .LC81
add x0, x0, :lo12:.LC81
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_KeyAtPos
ldr x1, [x0, #:got_lo12:RedisModule_KeyAtPos]
adrp x0, .LC82
add x0, x0, :lo12:.LC82
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_GetClientId
ldr x1, [x0, #:got_lo12:RedisModule_GetClientId]
adrp x0, .LC83
add x0, x0, :lo12:.LC83
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_GetContextFlags
ldr x1, [x0, #:got_lo12:RedisModule_GetContextFlags]
adrp x0, .LC84
add x0, x0, :lo12:.LC84
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_AvoidReplicaTraffic
ldr x1, [x0, #:got_lo12:RedisModule_AvoidReplicaTraffic]
adrp x0, .LC85
add x0, x0, :lo12:.LC85
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_PoolAlloc
ldr x1, [x0, #:got_lo12:RedisModule_PoolAlloc]
adrp x0, .LC86
add x0, x0, :lo12:.LC86
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_CreateDataType
ldr x1, [x0, #:got_lo12:RedisModule_CreateDataType]
adrp x0, .LC87
add x0, x0, :lo12:.LC87
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ModuleTypeSetValue
ldr x1, [x0, #:got_lo12:RedisModule_ModuleTypeSetValue]
adrp x0, .LC88
add x0, x0, :lo12:.LC88
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ModuleTypeReplaceValue
ldr x1, [x0, #:got_lo12:RedisModule_ModuleTypeReplaceValue]
adrp x0, .LC89
add x0, x0, :lo12:.LC89
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ModuleTypeGetType
ldr x1, [x0, #:got_lo12:RedisModule_ModuleTypeGetType]
adrp x0, .LC90
add x0, x0, :lo12:.LC90
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ModuleTypeGetValue
ldr x1, [x0, #:got_lo12:RedisModule_ModuleTypeGetValue]
adrp x0, .LC91
add x0, x0, :lo12:.LC91
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_IsIOError
ldr x1, [x0, #:got_lo12:RedisModule_IsIOError]
adrp x0, .LC92
add x0, x0, :lo12:.LC92
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_SetModuleOptions
ldr x1, [x0, #:got_lo12:RedisModule_SetModuleOptions]
adrp x0, .LC93
add x0, x0, :lo12:.LC93
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_SignalModifiedKey
ldr x1, [x0, #:got_lo12:RedisModule_SignalModifiedKey]
adrp x0, .LC94
add x0, x0, :lo12:.LC94
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_SaveUnsigned
ldr x1, [x0, #:got_lo12:RedisModule_SaveUnsigned]
adrp x0, .LC95
add x0, x0, :lo12:.LC95
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_LoadUnsigned
ldr x1, [x0, #:got_lo12:RedisModule_LoadUnsigned]
adrp x0, .LC96
add x0, x0, :lo12:.LC96
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_SaveSigned
ldr x1, [x0, #:got_lo12:RedisModule_SaveSigned]
adrp x0, .LC97
add x0, x0, :lo12:.LC97
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_LoadSigned
ldr x1, [x0, #:got_lo12:RedisModule_LoadSigned]
adrp x0, .LC98
add x0, x0, :lo12:.LC98
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_SaveString
ldr x1, [x0, #:got_lo12:RedisModule_SaveString]
adrp x0, .LC99
add x0, x0, :lo12:.LC99
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_SaveStringBuffer
ldr x1, [x0, #:got_lo12:RedisModule_SaveStringBuffer]
adrp x0, .LC100
add x0, x0, :lo12:.LC100
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_LoadString
ldr x1, [x0, #:got_lo12:RedisModule_LoadString]
adrp x0, .LC101
add x0, x0, :lo12:.LC101
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_LoadStringBuffer
ldr x1, [x0, #:got_lo12:RedisModule_LoadStringBuffer]
adrp x0, .LC102
add x0, x0, :lo12:.LC102
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_SaveDouble
ldr x1, [x0, #:got_lo12:RedisModule_SaveDouble]
adrp x0, .LC103
add x0, x0, :lo12:.LC103
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_LoadDouble
ldr x1, [x0, #:got_lo12:RedisModule_LoadDouble]
adrp x0, .LC104
add x0, x0, :lo12:.LC104
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_SaveFloat
ldr x1, [x0, #:got_lo12:RedisModule_SaveFloat]
adrp x0, .LC105
add x0, x0, :lo12:.LC105
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_LoadFloat
ldr x1, [x0, #:got_lo12:RedisModule_LoadFloat]
adrp x0, .LC106
add x0, x0, :lo12:.LC106
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_SaveLongDouble
ldr x1, [x0, #:got_lo12:RedisModule_SaveLongDouble]
adrp x0, .LC107
add x0, x0, :lo12:.LC107
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_LoadLongDouble
ldr x1, [x0, #:got_lo12:RedisModule_LoadLongDouble]
adrp x0, .LC108
add x0, x0, :lo12:.LC108
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_SaveDataTypeToString
ldr x1, [x0, #:got_lo12:RedisModule_SaveDataTypeToString]
adrp x0, .LC109
add x0, x0, :lo12:.LC109
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_LoadDataTypeFromString
ldr x1, [x0, #:got_lo12:RedisModule_LoadDataTypeFromString]
adrp x0, .LC110
add x0, x0, :lo12:.LC110
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_EmitAOF
ldr x1, [x0, #:got_lo12:RedisModule_EmitAOF]
adrp x0, .LC111
add x0, x0, :lo12:.LC111
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_Log
ldr x1, [x0, #:got_lo12:RedisModule_Log]
adrp x0, .LC112
add x0, x0, :lo12:.LC112
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_LogIOError
ldr x1, [x0, #:got_lo12:RedisModule_LogIOError]
adrp x0, .LC113
add x0, x0, :lo12:.LC113
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule__Assert
ldr x1, [x0, #:got_lo12:RedisModule__Assert]
adrp x0, .LC114
add x0, x0, :lo12:.LC114
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_LatencyAddSample
ldr x1, [x0, #:got_lo12:RedisModule_LatencyAddSample]
adrp x0, .LC115
add x0, x0, :lo12:.LC115
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_StringAppendBuffer
ldr x1, [x0, #:got_lo12:RedisModule_StringAppendBuffer]
adrp x0, .LC116
add x0, x0, :lo12:.LC116
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_RetainString
ldr x1, [x0, #:got_lo12:RedisModule_RetainString]
adrp x0, .LC117
add x0, x0, :lo12:.LC117
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_HoldString
ldr x1, [x0, #:got_lo12:RedisModule_HoldString]
adrp x0, .LC118
add x0, x0, :lo12:.LC118
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_StringCompare
ldr x1, [x0, #:got_lo12:RedisModule_StringCompare]
adrp x0, .LC119
add x0, x0, :lo12:.LC119
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_GetContextFromIO
ldr x1, [x0, #:got_lo12:RedisModule_GetContextFromIO]
adrp x0, .LC120
add x0, x0, :lo12:.LC120
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_GetKeyNameFromIO
ldr x1, [x0, #:got_lo12:RedisModule_GetKeyNameFromIO]
adrp x0, .LC121
add x0, x0, :lo12:.LC121
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_GetKeyNameFromModuleKey
ldr x1, [x0, #:got_lo12:RedisModule_GetKeyNameFromModuleKey]
adrp x0, .LC122
add x0, x0, :lo12:.LC122
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_Milliseconds
ldr x1, [x0, #:got_lo12:RedisModule_Milliseconds]
adrp x0, .LC123
add x0, x0, :lo12:.LC123
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_DigestAddStringBuffer
ldr x1, [x0, #:got_lo12:RedisModule_DigestAddStringBuffer]
adrp x0, .LC124
add x0, x0, :lo12:.LC124
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_DigestAddLongLong
ldr x1, [x0, #:got_lo12:RedisModule_DigestAddLongLong]
adrp x0, .LC125
add x0, x0, :lo12:.LC125
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_DigestEndSequence
ldr x1, [x0, #:got_lo12:RedisModule_DigestEndSequence]
adrp x0, .LC126
add x0, x0, :lo12:.LC126
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_CreateDict
ldr x1, [x0, #:got_lo12:RedisModule_CreateDict]
adrp x0, .LC127
add x0, x0, :lo12:.LC127
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_FreeDict
ldr x1, [x0, #:got_lo12:RedisModule_FreeDict]
adrp x0, .LC128
add x0, x0, :lo12:.LC128
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_DictSize
ldr x1, [x0, #:got_lo12:RedisModule_DictSize]
adrp x0, .LC129
add x0, x0, :lo12:.LC129
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_DictSetC
ldr x1, [x0, #:got_lo12:RedisModule_DictSetC]
adrp x0, .LC130
add x0, x0, :lo12:.LC130
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_DictReplaceC
ldr x1, [x0, #:got_lo12:RedisModule_DictReplaceC]
adrp x0, .LC131
add x0, x0, :lo12:.LC131
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_DictSet
ldr x1, [x0, #:got_lo12:RedisModule_DictSet]
adrp x0, .LC132
add x0, x0, :lo12:.LC132
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_DictReplace
ldr x1, [x0, #:got_lo12:RedisModule_DictReplace]
adrp x0, .LC133
add x0, x0, :lo12:.LC133
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_DictGetC
ldr x1, [x0, #:got_lo12:RedisModule_DictGetC]
adrp x0, .LC134
add x0, x0, :lo12:.LC134
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_DictGet
ldr x1, [x0, #:got_lo12:RedisModule_DictGet]
adrp x0, .LC135
add x0, x0, :lo12:.LC135
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_DictDelC
ldr x1, [x0, #:got_lo12:RedisModule_DictDelC]
adrp x0, .LC136
add x0, x0, :lo12:.LC136
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_DictDel
ldr x1, [x0, #:got_lo12:RedisModule_DictDel]
adrp x0, .LC137
add x0, x0, :lo12:.LC137
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_DictIteratorStartC
ldr x1, [x0, #:got_lo12:RedisModule_DictIteratorStartC]
adrp x0, .LC138
add x0, x0, :lo12:.LC138
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_DictIteratorStart
ldr x1, [x0, #:got_lo12:RedisModule_DictIteratorStart]
adrp x0, .LC139
add x0, x0, :lo12:.LC139
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_DictIteratorStop
ldr x1, [x0, #:got_lo12:RedisModule_DictIteratorStop]
adrp x0, .LC140
add x0, x0, :lo12:.LC140
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_DictIteratorReseekC
ldr x1, [x0, #:got_lo12:RedisModule_DictIteratorReseekC]
adrp x0, .LC141
add x0, x0, :lo12:.LC141
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_DictIteratorReseek
ldr x1, [x0, #:got_lo12:RedisModule_DictIteratorReseek]
adrp x0, .LC142
add x0, x0, :lo12:.LC142
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_DictNextC
ldr x1, [x0, #:got_lo12:RedisModule_DictNextC]
adrp x0, .LC143
add x0, x0, :lo12:.LC143
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_DictPrevC
ldr x1, [x0, #:got_lo12:RedisModule_DictPrevC]
adrp x0, .LC144
add x0, x0, :lo12:.LC144
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_DictNext
ldr x1, [x0, #:got_lo12:RedisModule_DictNext]
adrp x0, .LC145
add x0, x0, :lo12:.LC145
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_DictPrev
ldr x1, [x0, #:got_lo12:RedisModule_DictPrev]
adrp x0, .LC146
add x0, x0, :lo12:.LC146
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_DictCompare
ldr x1, [x0, #:got_lo12:RedisModule_DictCompare]
adrp x0, .LC147
add x0, x0, :lo12:.LC147
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_DictCompareC
ldr x1, [x0, #:got_lo12:RedisModule_DictCompareC]
adrp x0, .LC148
add x0, x0, :lo12:.LC148
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_RegisterInfoFunc
ldr x1, [x0, #:got_lo12:RedisModule_RegisterInfoFunc]
adrp x0, .LC149
add x0, x0, :lo12:.LC149
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_InfoAddSection
ldr x1, [x0, #:got_lo12:RedisModule_InfoAddSection]
adrp x0, .LC150
add x0, x0, :lo12:.LC150
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_InfoBeginDictField
ldr x1, [x0, #:got_lo12:RedisModule_InfoBeginDictField]
adrp x0, .LC151
add x0, x0, :lo12:.LC151
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_InfoEndDictField
ldr x1, [x0, #:got_lo12:RedisModule_InfoEndDictField]
adrp x0, .LC152
add x0, x0, :lo12:.LC152
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_InfoAddFieldString
ldr x1, [x0, #:got_lo12:RedisModule_InfoAddFieldString]
adrp x0, .LC153
add x0, x0, :lo12:.LC153
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_InfoAddFieldCString
ldr x1, [x0, #:got_lo12:RedisModule_InfoAddFieldCString]
adrp x0, .LC154
add x0, x0, :lo12:.LC154
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_InfoAddFieldDouble
ldr x1, [x0, #:got_lo12:RedisModule_InfoAddFieldDouble]
adrp x0, .LC155
add x0, x0, :lo12:.LC155
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_InfoAddFieldLongLong
ldr x1, [x0, #:got_lo12:RedisModule_InfoAddFieldLongLong]
adrp x0, .LC156
add x0, x0, :lo12:.LC156
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_InfoAddFieldULongLong
ldr x1, [x0, #:got_lo12:RedisModule_InfoAddFieldULongLong]
adrp x0, .LC157
add x0, x0, :lo12:.LC157
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_GetServerInfo
ldr x1, [x0, #:got_lo12:RedisModule_GetServerInfo]
adrp x0, .LC158
add x0, x0, :lo12:.LC158
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_FreeServerInfo
ldr x1, [x0, #:got_lo12:RedisModule_FreeServerInfo]
adrp x0, .LC159
add x0, x0, :lo12:.LC159
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ServerInfoGetField
ldr x1, [x0, #:got_lo12:RedisModule_ServerInfoGetField]
adrp x0, .LC160
add x0, x0, :lo12:.LC160
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ServerInfoGetFieldC
ldr x1, [x0, #:got_lo12:RedisModule_ServerInfoGetFieldC]
adrp x0, .LC161
add x0, x0, :lo12:.LC161
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ServerInfoGetFieldSigned
ldr x1, [x0, #:got_lo12:RedisModule_ServerInfoGetFieldSigned]
adrp x0, .LC162
add x0, x0, :lo12:.LC162
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ServerInfoGetFieldUnsigned
ldr x1, [x0, #:got_lo12:RedisModule_ServerInfoGetFieldUnsigned]
adrp x0, .LC163
add x0, x0, :lo12:.LC163
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ServerInfoGetFieldDouble
ldr x1, [x0, #:got_lo12:RedisModule_ServerInfoGetFieldDouble]
adrp x0, .LC164
add x0, x0, :lo12:.LC164
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_GetClientInfoById
ldr x1, [x0, #:got_lo12:RedisModule_GetClientInfoById]
adrp x0, .LC165
add x0, x0, :lo12:.LC165
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_PublishMessage
ldr x1, [x0, #:got_lo12:RedisModule_PublishMessage]
adrp x0, .LC166
add x0, x0, :lo12:.LC166
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_SubscribeToServerEvent
ldr x1, [x0, #:got_lo12:RedisModule_SubscribeToServerEvent]
adrp x0, .LC167
add x0, x0, :lo12:.LC167
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_SetLRU
ldr x1, [x0, #:got_lo12:RedisModule_SetLRU]
adrp x0, .LC168
add x0, x0, :lo12:.LC168
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_GetLRU
ldr x1, [x0, #:got_lo12:RedisModule_GetLRU]
adrp x0, .LC169
add x0, x0, :lo12:.LC169
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_SetLFU
ldr x1, [x0, #:got_lo12:RedisModule_SetLFU]
adrp x0, .LC170
add x0, x0, :lo12:.LC170
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_GetLFU
ldr x1, [x0, #:got_lo12:RedisModule_GetLFU]
adrp x0, .LC171
add x0, x0, :lo12:.LC171
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_BlockClientOnKeys
ldr x1, [x0, #:got_lo12:RedisModule_BlockClientOnKeys]
adrp x0, .LC172
add x0, x0, :lo12:.LC172
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_SignalKeyAsReady
ldr x1, [x0, #:got_lo12:RedisModule_SignalKeyAsReady]
adrp x0, .LC173
add x0, x0, :lo12:.LC173
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_GetBlockedClientReadyKey
ldr x1, [x0, #:got_lo12:RedisModule_GetBlockedClientReadyKey]
adrp x0, .LC174
add x0, x0, :lo12:.LC174
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ScanCursorCreate
ldr x1, [x0, #:got_lo12:RedisModule_ScanCursorCreate]
adrp x0, .LC175
add x0, x0, :lo12:.LC175
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ScanCursorRestart
ldr x1, [x0, #:got_lo12:RedisModule_ScanCursorRestart]
adrp x0, .LC176
add x0, x0, :lo12:.LC176
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ScanCursorDestroy
ldr x1, [x0, #:got_lo12:RedisModule_ScanCursorDestroy]
adrp x0, .LC177
add x0, x0, :lo12:.LC177
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_Scan
ldr x1, [x0, #:got_lo12:RedisModule_Scan]
adrp x0, .LC178
add x0, x0, :lo12:.LC178
blr x2
adrp x0, :got:RedisModule_GetApi
ldr x0, [x0, #:got_lo12:RedisModule_GetApi]
ldr x2, [x0]
adrp x0, :got:RedisModule_ScanKey
ldr x1, [x0, #:got_lo12:RedisModule_ScanKey]
adrp x0, .LC179
add x0, x0, :lo12:.LC179
blr x2
adrp x0, :got:RedisModule_IsModuleNameBusy
ldr x0, [x0, #:got_lo12:RedisModule_IsModuleNameBusy]
ldr x0, [x0]
cmp x0, 0
beq .L2
adrp x0, :got:RedisModule_IsModuleNameBusy
ldr x0, [x0, #:got_lo12:RedisModule_IsModuleNameBusy]
ldr x1, [x0]
ldr x0, [sp, 32]
blr x1
cmp w0, 0
beq .L2
mov w0, 1
b .L3
.L2:
adrp x0, :got:RedisModule_SetModuleAttribs
ldr x0, [x0, #:got_lo12:RedisModule_SetModuleAttribs]
ldr x4, [x0]
ldr w3, [sp, 24]
ldr w2, [sp, 28]
ldr x1, [sp, 32]
ldr x0, [sp, 40]
blr x4
mov w0, 0
.L3:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size RedisModule_Init, .-RedisModule_Init
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global top
.bss
.align 3
.type top, %object
.size top, 8
top:
.zero 8
.text
.align 2
.global push
.type push, %function
push:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str w0, [sp, 28]
mov x0, 16
bl malloc
str x0, [sp, 40]
ldr x0, [sp, 40]
ldr w1, [sp, 28]
str w1, [x0]
adrp x0, top
add x0, x0, :lo12:top
ldr x1, [x0]
ldr x0, [sp, 40]
str x1, [x0, 8]
adrp x0, top
add x0, x0, :lo12:top
ldr x1, [sp, 40]
str x1, [x0]
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size push, .-push
.section .rodata
.align 3
.LC0:
.string "\n\n stack is empty !! \n"
.text
.align 2
.global pop
.type pop, %function
pop:
.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, top
add x0, x0, :lo12:top
ldr x0, [x0]
cmp x0, 0
bne .L3
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
mov w0, 0
b .L4
.L3:
adrp x0, top
add x0, x0, :lo12:top
ldr x0, [x0]
str x0, [sp, 24]
ldr x0, [sp, 24]
ldr w0, [x0]
str w0, [sp, 20]
ldr x0, [sp, 24]
ldr x1, [x0, 8]
adrp x0, top
add x0, x0, :lo12:top
str x1, [x0]
ldr x0, [sp, 24]
bl free
ldr w0, [sp, 20]
.L4:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size pop, .-pop
.align 2
.global peek
.type peek, %function
peek:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
adrp x0, top
add x0, x0, :lo12:top
ldr x0, [x0]
cmp x0, 0
bne .L6
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
mov w0, 0
b .L7
.L6:
adrp x0, top
add x0, x0, :lo12:top
ldr x0, [x0]
ldr w0, [x0]
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
.LFE8:
.size peek, .-peek
.align 2
.global del
.type del, %function
del:
.LFB9:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
adrp x0, top
add x0, x0, :lo12:top
ldr x0, [x0]
cmp x0, 0
bne .L9
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
b .L11
.L9:
adrp x0, top
add x0, x0, :lo12:top
ldr x0, [x0]
str x0, [sp, 24]
adrp x0, top
add x0, x0, :lo12:top
ldr x0, [x0]
ldr x1, [x0, 8]
adrp x0, top
add x0, x0, :lo12:top
str x1, [x0]
ldr x0, [sp, 24]
bl free
.L11:
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size del, .-del
.section .rodata
.align 3
.LC1:
.string "\n STACK [ "
.align 3
.LC2:
.string "%d "
.align 3
.LC3:
.string " ] "
.text
.align 2
.global printStack
.type printStack, %function
printStack:
.LFB10:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
adrp x0, top
add x0, x0, :lo12:top
ldr x0, [x0]
str x0, [sp, 24]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
b .L13
.L14:
ldr x0, [sp, 24]
ldr w0, [x0]
mov w1, w0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
ldr x0, [sp, 24]
ldr x0, [x0, 8]
str x0, [sp, 24]
.L13:
ldr x0, [sp, 24]
cmp x0, 0
bne .L14
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl puts
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size printStack, .-printStack
.section .rodata
.align 3
.LC4:
.string "peek top => %d\n"
.align 3
.LC5:
.string "\t pop top => %d\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB11:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
adrp x0, top
add x0, x0, :lo12:top
str xzr, [x0]
bl printStack
mov w0, 5
bl push
bl printStack
mov w0, 8
bl push
bl printStack
mov w0, 12
bl push
bl printStack
bl peek
str w0, [sp, 28]
bl printStack
ldr w1, [sp, 28]
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
bl del
bl printStack
bl pop
str w0, [sp, 28]
bl printStack
ldr w1, [sp, 28]
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
bl pop
str w0, [sp, 28]
bl printStack
ldr w1, [sp, 28]
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
bl pop
mov w0, 0
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Usage: ./brainfkinterp [file]"
.align 3
.LC1:
.string "%c"
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -64
str w0, [sp, 44]
str x1, [sp, 32]
ldr w0, [sp, 44]
cmp w0, 1
ble .L2
ldr w0, [sp, 44]
cmp w0, 2
ble .L3
.L2:
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
mov w0, -1
b .L4
.L3:
ldr x0, [sp, 32]
add x0, x0, 8
ldr x0, [x0]
bl loadFile
str x0, [sp, 64]
ldr x0, [sp, 64]
cmp x0, 0
bne .L5
mov w0, -1
b .L4
.L5:
str wzr, [sp, 52]
mov x1, 4
mov x0, 200
bl calloc
str x0, [sp, 72]
str wzr, [sp, 56]
b .L6
.L25:
ldrsw x0, [sp, 52]
ldr x1, [sp, 64]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 93
beq .L7
cmp w0, 93
bgt .L8
cmp w0, 91
beq .L9
cmp w0, 91
bgt .L8
cmp w0, 62
beq .L10
cmp w0, 62
bgt .L8
cmp w0, 60
beq .L11
cmp w0, 60
bgt .L8
cmp w0, 46
beq .L12
cmp w0, 46
bgt .L8
cmp w0, 45
beq .L13
cmp w0, 45
bgt .L8
cmp w0, 43
beq .L14
cmp w0, 44
beq .L15
b .L8
.L14:
ldrsw x0, [sp, 56]
lsl x0, x0, 2
ldr x1, [sp, 72]
add x0, x1, x0
ldr w1, [x0]
add w1, w1, 1
str w1, [x0]
b .L8
.L13:
ldrsw x0, [sp, 56]
lsl x0, x0, 2
ldr x1, [sp, 72]
add x0, x1, x0
ldr w1, [x0]
sub w1, w1, #1
str w1, [x0]
b .L8
.L10:
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
ldr w0, [sp, 56]
cmp w0, 199
ble .L26
str wzr, [sp, 56]
b .L26
.L11:
ldr w0, [sp, 56]
sub w0, w0, #1
str w0, [sp, 56]
ldr w0, [sp, 56]
cmp w0, 0
bge .L27
mov w0, 199
str w0, [sp, 56]
b .L27
.L12:
ldrsw x0, [sp, 56]
lsl x0, x0, 2
ldr x1, [sp, 72]
add x0, x1, x0
ldr w0, [x0]
and w0, w0, 255
bl putchar
b .L8
.L15:
ldrsw x0, [sp, 56]
lsl x0, x0, 2
ldr x1, [sp, 72]
add x0, x1, x0
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
b .L8
.L9:
ldrsw x0, [sp, 56]
lsl x0, x0, 2
ldr x1, [sp, 72]
add x0, x1, x0
ldr w0, [x0]
cmp w0, 0
bne .L28
mov w0, 1
str w0, [sp, 60]
b .L19
.L21:
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
ldrsw x0, [sp, 52]
ldr x1, [sp, 64]
add x0, x1, x0
ldrb w0, [x0]
strb w0, [sp, 51]
ldrb w0, [sp, 51]
cmp w0, 91
bne .L20
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L20:
ldrb w0, [sp, 51]
cmp w0, 93
bne .L19
ldr w0, [sp, 60]
sub w0, w0, #1
str w0, [sp, 60]
.L19:
ldr w0, [sp, 60]
cmp w0, 0
bgt .L21
b .L28
.L7:
mov w0, 1
str w0, [sp, 60]
b .L22
.L24:
ldr w0, [sp, 52]
sub w0, w0, #1
str w0, [sp, 52]
ldrsw x0, [sp, 52]
ldr x1, [sp, 64]
add x0, x1, x0
ldrb w0, [x0]
strb w0, [sp, 50]
ldrb w0, [sp, 50]
cmp w0, 91
bne .L23
ldr w0, [sp, 60]
sub w0, w0, #1
str w0, [sp, 60]
.L23:
ldrb w0, [sp, 50]
cmp w0, 93
bne .L22
ldr w0, [sp, 60]
add w0, w0, 1
str w0, [sp, 60]
.L22:
ldr w0, [sp, 60]
cmp w0, 0
bgt .L24
ldr w0, [sp, 52]
sub w0, w0, #1
str w0, [sp, 52]
b .L8
.L26:
nop
b .L8
.L27:
nop
b .L8
.L28:
nop
.L8:
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
.L6:
ldrsw x19, [sp, 52]
ldr x0, [sp, 64]
bl strlen
cmp x19, x0
bcc .L25
mov w0, 0
.L4:
ldr x19, [sp, 16]
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
.section .rodata
.align 3
.LC2:
.string "r"
.align 3
.LC3:
.string "Could not open file."
.align 3
.LC4:
.string "Could not allocate buffer to read file."
.text
.align 2
.global loadFile
.type loadFile, %function
loadFile:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 24]
adrp x0, .LC2
add x1, x0, :lo12:.LC2
ldr x0, [sp, 24]
bl fopen
str x0, [sp, 40]
ldr x0, [sp, 40]
cmp x0, 0
bne .L30
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
mov x0, 0
b .L31
.L30:
mov w2, 2
mov x1, 0
ldr x0, [sp, 40]
bl fseek
ldr x0, [sp, 40]
bl ftell
str x0, [sp, 48]
ldr x0, [sp, 40]
bl rewind
ldr x0, [sp, 48]
bl malloc
str x0, [sp, 56]
ldr x0, [sp, 56]
cmp x0, 0
bne .L32
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
ldr x0, [sp, 40]
bl fclose
mov x0, 0
b .L31
.L32:
ldr x0, [sp, 48]
ldr x3, [sp, 40]
mov x2, 1
mov x1, x0
ldr x0, [sp, 56]
bl fread
ldr x0, [sp, 40]
bl fclose
ldr x0, [sp, 56]
.L31:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size loadFile, .-loadFile
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global queue
.bss
.align 3
.type queue, %object
.size queue, 24
queue:
.zero 24
.global front
.data
.align 2
.type front, %object
.size front, 4
front:
.word -1
.global rear
.align 2
.type rear, %object
.size rear, 4
rear:
.word -1
.global count
.bss
.align 2
.type count, %object
.size count, 4
count:
.zero 4
.section .rodata
.align 3
.LC0:
.string "Queue Overflow"
.text
.align 2
.global enqueue
.type enqueue, %function
enqueue:
.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]
adrp x0, count
add x0, x0, :lo12:count
ldr w0, [x0]
cmp w0, 3
bne .L2
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
b .L5
.L2:
adrp x0, front
add x0, x0, :lo12:front
ldr w0, [x0]
cmn w0, #1
bne .L4
adrp x0, rear
add x0, x0, :lo12:rear
ldr w0, [x0]
cmn w0, #1
bne .L4
adrp x0, front
add x0, x0, :lo12:front
str wzr, [x0]
.L4:
adrp x0, rear
add x0, x0, :lo12:rear
ldr w0, [x0]
add w1, w0, 1
adrp x0, rear
add x0, x0, :lo12:rear
str w1, [x0]
adrp x0, rear
add x0, x0, :lo12:rear
ldr w2, [x0]
mov w0, 21846
movk w0, 0x5555, lsl 16
smull x0, w2, w0
lsr x1, x0, 32
asr w0, w2, 31
sub w1, w1, w0
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
sub w1, w2, w0
adrp x0, rear
add x0, x0, :lo12:rear
str w1, [x0]
adrp x0, rear
add x0, x0, :lo12:rear
ldr w1, [x0]
adrp x0, queue
add x0, x0, :lo12:queue
sxtw x1, w1
ldr x2, [sp, 24]
str x2, [x0, x1, lsl 3]
adrp x0, count
add x0, x0, :lo12:count
ldr w0, [x0]
add w1, w0, 1
adrp x0, count
add x0, x0, :lo12:count
str w1, [x0]
.L5:
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size enqueue, .-enqueue
.section .rodata
.align 3
.LC1:
.string "Queue Underflow"
.text
.align 2
.global dequeue
.type dequeue, %function
dequeue:
.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, count
add x0, x0, :lo12:count
ldr w0, [x0]
cmp w0, 0
bne .L7
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl puts
mov x0, 0
b .L8
.L7:
adrp x0, count
add x0, x0, :lo12:count
ldr w0, [x0]
sub w1, w0, #1
adrp x0, count
add x0, x0, :lo12:count
str w1, [x0]
adrp x0, front
add x0, x0, :lo12:front
ldr w1, [x0]
adrp x0, queue
add x0, x0, :lo12:queue
sxtw x1, w1
ldr x0, [x0, x1, lsl 3]
str x0, [sp, 24]
adrp x0, front
add x0, x0, :lo12:front
ldr w0, [x0]
add w1, w0, 1
adrp x0, front
add x0, x0, :lo12:front
str w1, [x0]
adrp x0, front
add x0, x0, :lo12:front
ldr w2, [x0]
mov w0, 21846
movk w0, 0x5555, lsl 16
smull x0, w2, w0
lsr x1, x0, 32
asr w0, w2, 31
sub w1, w1, w0
mov w0, w1
lsl w0, w0, 1
add w0, w0, w1
sub w1, w2, w0
adrp x0, front
add x0, x0, :lo12:front
str w1, [x0]
ldr x0, [sp, 24]
.L8:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size dequeue, .-dequeue
.section .rodata
.align 3
.LC2:
.string "%s "
.text
.align 2
.global display
.type display, %function
display:
.LFB2:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
adrp x0, front
add x0, x0, :lo12:front
ldr w0, [x0]
str w0, [sp, 24]
str wzr, [sp, 28]
b .L10
.L11:
adrp x0, queue
add x0, x0, :lo12:queue
ldrsw x1, [sp, 24]
ldr x0, [x0, x1, lsl 3]
mov x1, x0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
ldr w1, [sp, 24]
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, 24]
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L10:
adrp x0, count
add x0, x0, :lo12:count
ldr w0, [x0]
ldr w1, [sp, 28]
cmp w1, w0
blt .L11
mov w0, 10
bl putchar
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size display, .-display
.align 2
.global isEmpty
.type isEmpty, %function
isEmpty:
.LFB3:
.cfi_startproc
adrp x0, count
add x0, x0, :lo12:count
ldr w0, [x0]
cmp w0, 0
cset w0, eq
and w0, w0, 255
ret
.cfi_endproc
.LFE3:
.size isEmpty, .-isEmpty
.section .rodata
.align 3
.LC3:
.string "John"
.align 3
.LC4:
.string "Kate"
.align 3
.LC5:
.string "Shankar"
.align 3
.LC6:
.string "Zara"
.align 3
.LC7:
.string "Jack"
.text
.align 2
.global main
.type main, %function
main:
.LFB4:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl enqueue
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl enqueue
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl enqueue
bl dequeue
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl enqueue
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl enqueue
bl dequeue
bl dequeue
mov w0, 0
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE4:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.local verbose
.comm verbose,4,4
.section .rodata
.align 3
.LC0:
.string "Create a child process that executes a shell command in new namespace(s),"
.align 3
.LC1:
.string "Usage: %s [OPTIONS] <CMD>\n\n"
.align 3
.LC2:
.string " -h, --help print this help"
.align 3
.LC3:
.string " -n, --net new network namespace"
.align 3
.LC4:
.string " -p, --pid new PID namespace"
.align 3
.LC5:
.string " -u, --uts HOSTNAME new UTS namespace"
.align 3
.LC6:
.string " -v, --verbose more verbose output\n"
.align 3
.LC7:
.string " <CMD> command to be executed"
.text
.align 2
.type usage, %function
usage:
.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]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
ldr x1, [sp, 24]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl puts
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl puts
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl puts
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl puts
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl puts
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl puts
mov w0, 1
bl exit
.cfi_endproc
.LFE6:
.size usage, .-usage
.section .rodata
.align 3
.LC8:
.string "Failure in child: read from pipe returned != 0\n"
.align 3
.LC9:
.string "none"
.align 3
.LC10:
.string "/"
.align 3
.LC11:
.string "mount private"
.align 3
.LC12:
.string "/proc"
.align 3
.LC13:
.string "unmount proc"
.align 3
.LC14:
.string "proc"
.align 3
.LC15:
.string "mount proc"
.align 3
.LC16:
.string "/proc mounted"
.align 3
.LC17:
.string "Executing %s\n"
.align 3
.LC18:
.string "execvp error: %s\n"
.text
.align 2
.type childFunc, %function
childFunc:
.LFB7:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -64
str x0, [sp, 40]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 72]
mov x1, 0
ldr x0, [sp, 40]
str x0, [sp, 64]
str wzr, [sp, 60]
ldr x0, [sp, 64]
ldr w0, [x0, 20]
bl close
ldr x0, [sp, 64]
ldr w0, [x0, 16]
add x1, sp, 59
mov x2, 1
bl read
cmp x0, 0
beq .L3
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl perror
mov w0, 1
bl exit
.L3:
mov x4, 0
mov x3, 16384
movk x3, 0x4, lsl 16
adrp x0, .LC9
add x2, x0, :lo12:.LC9
adrp x0, .LC10
add x1, x0, :lo12:.LC10
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl mount
cmp w0, 0
bge .L4
adrp x0, .LC11
add x0, x0, :lo12:.LC11
bl perror
mov w0, 1
bl exit
.L4:
mov w1, 2
adrp x0, .LC12
add x0, x0, :lo12:.LC12
bl umount2
cmp w0, 0
bge .L5
adrp x0, .LC13
add x0, x0, :lo12:.LC13
bl perror
mov w0, 1
bl exit
.L5:
mov x4, 0
mov x3, 0
adrp x0, .LC14
add x2, x0, :lo12:.LC14
adrp x0, .LC12
add x1, x0, :lo12:.LC12
adrp x0, .LC14
add x0, x0, :lo12:.LC14
bl mount
cmp w0, 0
bge .L6
adrp x0, .LC15
add x0, x0, :lo12:.LC15
bl perror
mov w0, 1
bl exit
.L6:
adrp x0, verbose
add x0, x0, :lo12:verbose
ldr w0, [x0]
cmp w0, 0
beq .L7
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 13
mov x1, 1
adrp x0, .LC16
add x0, x0, :lo12:.LC16
bl fwrite
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x1, x0
mov w0, 10
bl fputc
.L7:
ldr x0, [sp, 64]
ldr x0, [x0]
cmp x0, 0
beq .L8
ldr x0, [sp, 64]
ldr x19, [x0]
ldr x0, [sp, 64]
ldr x0, [x0]
bl strlen
mov x1, x0
mov x0, x19
bl sethostname
.L8:
adrp x0, verbose
add x0, x0, :lo12:verbose
ldr w0, [x0]
cmp w0, 0
beq .L9
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x3, [x0]
ldr x0, [sp, 64]
ldr x0, [x0, 8]
ldr x0, [x0]
mov x2, x0
adrp x0, .LC17
add x1, x0, :lo12:.LC17
mov x0, x3
bl fprintf
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x1, x0
mov w0, 10
bl fputc
.L9:
ldr x0, [sp, 64]
ldr x0, [x0, 8]
ldr x2, [x0]
ldr x0, [sp, 64]
ldr x0, [x0, 8]
mov x1, x0
mov x0, x2
bl execvp
str w0, [sp, 60]
ldr w0, [sp, 60]
cmp w0, 0
beq .L10
bl __errno_location
ldr w0, [x0]
bl strerror
mov x1, x0
adrp x0, .LC18
add x0, x0, :lo12:.LC18
bl printf
.L10:
ldr w0, [sp, 60]
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 72]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L12
bl __stack_chk_fail
.L12:
mov w0, w1
ldr x19, [sp, 16]
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size childFunc, .-childFunc
.section .rodata
.align 3
.LC19:
.string "+inpu:v"
.align 3
.LC20:
.string "pipe"
.align 3
.LC21:
.string "clone"
.align 3
.LC22:
.string "%s: child created with PID %ld\n"
.align 3
.LC23:
.string "waiting for child to terminate\n"
.align 3
.LC24:
.string "waitpid"
.align 3
.LC25:
.string "%s: terminating\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB8:
.cfi_startproc
mov x12, 4192
sub sp, sp, x12
.cfi_def_cfa_offset 4192
stp x29, x30, [sp]
.cfi_offset 29, -4192
.cfi_offset 30, -4184
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, 4184]
mov x1, 0
mov w0, 17
movk w0, 0x2, lsl 16
str w0, [sp, 44]
str wzr, [sp, 40]
adrp x0, verbose
add x0, x0, :lo12:verbose
str wzr, [x0]
str xzr, [sp, 56]
b .L14
.L20:
ldr w0, [sp, 48]
cmp w0, 118
beq .L15
ldr w0, [sp, 48]
cmp w0, 118
bgt .L16
ldr w0, [sp, 48]
cmp w0, 117
beq .L17
ldr w0, [sp, 48]
cmp w0, 117
bgt .L16
ldr w0, [sp, 48]
cmp w0, 110
beq .L18
ldr w0, [sp, 48]
cmp w0, 112
beq .L19
b .L16
.L18:
ldr w0, [sp, 44]
orr w0, w0, 1073741824
str w0, [sp, 44]
b .L14
.L19:
ldr w0, [sp, 44]
orr w0, w0, 536870912
str w0, [sp, 44]
b .L14
.L17:
ldr w0, [sp, 44]
orr w0, w0, 67108864
str w0, [sp, 44]
adrp x0, :got:optarg
ldr x0, [x0, #:got_lo12:optarg]
ldr x0, [x0]
str x0, [sp, 56]
b .L14
.L15:
adrp x0, verbose
add x0, x0, :lo12:verbose
mov w1, 1
str w1, [x0]
b .L14
.L16:
ldr x0, [sp, 16]
ldr x0, [x0]
bl usage
.L14:
add x0, sp, 40
mov x4, x0
adrp x0, long_opts.0
add x3, x0, :lo12:long_opts.0
adrp x0, .LC19
add x2, x0, :lo12:.LC19
ldr x1, [sp, 16]
ldr w0, [sp, 28]
bl getopt_long
str w0, [sp, 48]
ldr w0, [sp, 48]
cmn w0, #1
bne .L20
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
str x0, [sp, 64]
add x0, sp, 56
add x0, x0, 16
bl pipe
cmn w0, #1
bne .L21
adrp x0, .LC20
add x0, x0, :lo12:.LC20
bl perror
mov w0, 1
bl exit
.L21:
add x1, sp, 56
add x0, sp, 80
add x0, x0, 4096
mov x3, x1
ldr w2, [sp, 44]
mov x1, x0
adrp x0, childFunc
add x0, x0, :lo12:childFunc
bl clone
str w0, [sp, 52]
ldr w0, [sp, 52]
cmn w0, #1
bne .L22
adrp x0, .LC21
add x0, x0, :lo12:.LC21
bl perror
mov w0, 1
bl exit
.L22:
adrp x0, verbose
add x0, x0, :lo12:verbose
ldr w0, [x0]
cmp w0, 0
beq .L23
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x4, [x0]
ldr x0, [sp, 16]
ldr x0, [x0]
ldrsw x1, [sp, 52]
mov x3, x1
mov x2, x0
adrp x0, .LC22
add x1, x0, :lo12:.LC22
mov x0, x4
bl fprintf
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x1, x0
mov w0, 10
bl fputc
.L23:
ldr w0, [sp, 76]
bl close
adrp x0, verbose
add x0, x0, :lo12:verbose
ldr w0, [x0]
cmp w0, 0
beq .L24
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x3, x0
mov x2, 31
mov x1, 1
adrp x0, .LC23
add x0, x0, :lo12:.LC23
bl fwrite
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x1, x0
mov w0, 10
bl fputc
.L24:
mov w2, 0
mov x1, 0
ldr w0, [sp, 52]
bl waitpid
cmn w0, #1
bne .L25
adrp x0, .LC24
add x0, x0, :lo12:.LC24
bl perror
mov w0, 1
bl exit
.L25:
adrp x0, verbose
add x0, x0, :lo12:verbose
ldr w0, [x0]
cmp w0, 0
beq .L26
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x3, [x0]
ldr x0, [sp, 16]
ldr x0, [x0]
mov x2, x0
adrp x0, .LC25
add x1, x0, :lo12:.LC25
mov x0, x3
bl fprintf
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x1, x0
mov w0, 10
bl fputc
.L26:
mov w0, 0
bl exit
.cfi_endproc
.LFE8:
.size main, .-main
.section .rodata
.align 3
.LC26:
.string "help"
.align 3
.LC27:
.string "net"
.align 3
.LC28:
.string "pid"
.align 3
.LC29:
.string "uts"
.align 3
.LC30:
.string "verbose"
.section .data.rel.ro.local,"aw"
.align 3
.type long_opts.0, %object
.size long_opts.0, 192
long_opts.0:
.xword .LC26
.word 0
.zero 4
.xword 0
.word 104
.zero 4
.xword .LC27
.word 0
.zero 4
.xword 0
.word 110
.zero 4
.xword .LC28
.word 0
.zero 4
.xword 0
.word 112
.zero 4
.xword .LC29
.word 1
.zero 4
.xword 0
.word 117
.zero 4
.xword .LC30
.word 0
.zero 4
.xword 0
.word 118
.zero 4
.xword 0
.word 0
.zero 4
.xword 0
.word 0
.zero 4
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.data
.align 3
.type junk, %object
.size junk, 30
junk:
.string "\n@(#)LIBF77 VERSION 19990503\n"
.text
.align 2
.type spow_ui, %function
spow_ui:
.LFB10:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str s0, [sp, 12]
str w0, [sp, 8]
fmov s0, 1.0e+0
str s0, [sp, 20]
ldr w0, [sp, 8]
cmp w0, 0
beq .L2
ldr w0, [sp, 8]
cmp w0, 0
bge .L3
ldr w0, [sp, 8]
neg w0, w0
str w0, [sp, 8]
ldr s0, [sp, 12]
fmov s1, 1.0e+0
fdiv s0, s1, s0
str s0, [sp, 12]
.L3:
ldrsw x0, [sp, 8]
str x0, [sp, 24]
.L7:
ldr x0, [sp, 24]
and x0, x0, 1
cmp x0, 0
beq .L4
ldr s1, [sp, 20]
ldr s0, [sp, 12]
fmul s0, s1, s0
str s0, [sp, 20]
.L4:
ldr x0, [sp, 24]
lsr x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
beq .L9
ldr s0, [sp, 12]
fmul s0, s0, s0
str s0, [sp, 12]
b .L7
.L9:
nop
.L2:
ldr s0, [sp, 20]
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size spow_ui, .-spow_ui
.align 2
.type dpow_ui, %function
dpow_ui:
.LFB11:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str d0, [sp, 8]
str w0, [sp, 4]
fmov d0, 1.0e+0
str d0, [sp, 16]
ldr w0, [sp, 4]
cmp w0, 0
beq .L11
ldr w0, [sp, 4]
cmp w0, 0
bge .L12
ldr w0, [sp, 4]
neg w0, w0
str w0, [sp, 4]
ldr d0, [sp, 8]
fmov d1, 1.0e+0
fdiv d0, d1, d0
str d0, [sp, 8]
.L12:
ldrsw x0, [sp, 4]
str x0, [sp, 24]
.L16:
ldr x0, [sp, 24]
and x0, x0, 1
cmp x0, 0
beq .L13
ldr d1, [sp, 16]
ldr d0, [sp, 8]
fmul d0, d1, d0
str d0, [sp, 16]
.L13:
ldr x0, [sp, 24]
lsr x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
beq .L18
ldr d0, [sp, 8]
fmul d0, d0, d0
str d0, [sp, 8]
b .L16
.L18:
nop
.L11:
ldr d0, [sp, 16]
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size dpow_ui, .-dpow_ui
.align 2
.type cpow_ui, %function
cpow_ui:
.LFB12:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
fmov s2, s0
fmov s0, s1
fmov s1, s2
str s1, [sp, 24]
str s0, [sp, 28]
str w0, [sp, 20]
ldr s0, [sp, 24]
str s0, [sp, 32]
ldr s0, [sp, 28]
str s0, [sp, 36]
fmov s0, 1.0e+0
str s0, [sp, 56]
str wzr, [sp, 60]
ldr w0, [sp, 20]
cmp w0, 0
beq .L27
ldr w0, [sp, 20]
cmp w0, 0
bge .L21
ldr w0, [sp, 20]
neg w0, w0
str w0, [sp, 20]
ldr s3, [sp, 36]
ldr s2, [sp, 32]
movi v1.2s, #0
fmov s0, 1.0e+0
bl __divsc3
fmov s2, s0
fmov s0, s1
str s2, [sp, 24]
str s0, [sp, 28]
ldr s0, [sp, 24]
str s0, [sp, 32]
ldr s0, [sp, 28]
str s0, [sp, 36]
.L21:
ldrsw x0, [sp, 20]
str x0, [sp, 48]
str wzr, [sp, 44]
fmov s0, 1.0e+0
str s0, [sp, 40]
.L25:
ldr x0, [sp, 48]
and x0, x0, 1
cmp x0, 0
beq .L22
ldr s3, [sp, 36]
ldr s2, [sp, 32]
ldr s1, [sp, 44]
ldr s0, [sp, 40]
bl __mulsc3
fmov s2, s0
fmov s0, s1
str s2, [sp, 56]
str s0, [sp, 60]
ldr s0, [sp, 56]
str s0, [sp, 40]
ldr s0, [sp, 60]
str s0, [sp, 44]
.L22:
ldr x0, [sp, 48]
lsr x0, x0, 1
str x0, [sp, 48]
ldr x0, [sp, 48]
cmp x0, 0
beq .L28
ldr s3, [sp, 36]
ldr s2, [sp, 32]
ldr s1, [sp, 36]
ldr s0, [sp, 32]
bl __mulsc3
fmov s2, s0
fmov s0, s1
str s2, [sp, 24]
str s0, [sp, 28]
ldr s0, [sp, 24]
str s0, [sp, 32]
ldr s0, [sp, 28]
str s0, [sp, 36]
b .L25
.L27:
str wzr, [sp, 44]
fmov s0, 1.0e+0
str s0, [sp, 40]
b .L20
.L28:
nop
.L20:
ldr s1, [sp, 40]
ldr s0, [sp, 44]
fmov s2, s1
fmov s1, s0
fmov s0, s2
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE12:
.size cpow_ui, .-cpow_ui
.align 2
.type zpow_ui, %function
zpow_ui:
.LFB13:
.cfi_startproc
stp x29, x30, [sp, -112]!
.cfi_def_cfa_offset 112
.cfi_offset 29, -112
.cfi_offset 30, -104
mov x29, sp
fmov d2, d0
fmov d0, d1
fmov d1, d2
str d1, [sp, 32]
str d0, [sp, 40]
str w0, [sp, 28]
ldr d0, [sp, 32]
str d0, [sp, 64]
ldr d0, [sp, 40]
str d0, [sp, 72]
fmov d0, 1.0e+0
str d0, [sp, 96]
str xzr, [sp, 104]
ldr w0, [sp, 28]
cmp w0, 0
beq .L37
ldr w0, [sp, 28]
cmp w0, 0
bge .L31
ldr w0, [sp, 28]
neg w0, w0
str w0, [sp, 28]
ldr d3, [sp, 72]
ldr d2, [sp, 64]
movi d1, #0
fmov d0, 1.0e+0
bl __divdc3
fmov d2, d0
fmov d0, d1
str d2, [sp, 32]
str d0, [sp, 40]
ldr d0, [sp, 32]
str d0, [sp, 64]
ldr d0, [sp, 40]
str d0, [sp, 72]
.L31:
ldrsw x0, [sp, 28]
str x0, [sp, 56]
str xzr, [sp, 88]
fmov d0, 1.0e+0
str d0, [sp, 80]
.L35:
ldr x0, [sp, 56]
and x0, x0, 1
cmp x0, 0
beq .L32
ldr d3, [sp, 72]
ldr d2, [sp, 64]
ldr d1, [sp, 88]
ldr d0, [sp, 80]
bl __muldc3
fmov d2, d0
fmov d0, d1
str d2, [sp, 96]
str d0, [sp, 104]
ldr d0, [sp, 96]
str d0, [sp, 80]
ldr d0, [sp, 104]
str d0, [sp, 88]
.L32:
ldr x0, [sp, 56]
lsr x0, x0, 1
str x0, [sp, 56]
ldr x0, [sp, 56]
cmp x0, 0
beq .L38
ldr d3, [sp, 72]
ldr d2, [sp, 64]
ldr d1, [sp, 72]
ldr d0, [sp, 64]
bl __muldc3
fmov d2, d0
fmov d0, d1
str d2, [sp, 32]
str d0, [sp, 40]
ldr d0, [sp, 32]
str d0, [sp, 64]
ldr d0, [sp, 40]
str d0, [sp, 72]
b .L35
.L37:
str xzr, [sp, 88]
fmov d0, 1.0e+0
str d0, [sp, 80]
b .L30
.L38:
nop
.L30:
ldr d1, [sp, 80]
ldr d0, [sp, 88]
fmov d2, d1
fmov d1, d0
fmov d0, d2
ldp x29, x30, [sp], 112
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE13:
.size zpow_ui, .-zpow_ui
.align 2
.type pow_ii, %function
pow_ii:
.LFB14:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, 12]
str w1, [sp, 8]
ldr w0, [sp, 8]
cmp w0, 0
bgt .L40
ldr w0, [sp, 8]
cmp w0, 0
beq .L41
ldr w0, [sp, 12]
cmp w0, 1
bne .L42
.L41:
mov w0, 1
str w0, [sp, 20]
b .L40
.L42:
ldr w0, [sp, 12]
cmn w0, #1
beq .L43
ldr w0, [sp, 12]
cmp w0, 0
bne .L44
mov w1, 1
ldr w0, [sp, 12]
sdiv w0, w1, w0
b .L45
.L44:
mov w0, 0
.L45:
str w0, [sp, 20]
b .L40
.L43:
ldr w0, [sp, 8]
neg w0, w0
str w0, [sp, 8]
.L40:
ldr w0, [sp, 8]
cmp w0, 0
bgt .L46
ldr w0, [sp, 8]
cmp w0, 0
beq .L47
ldr w0, [sp, 12]
cmp w0, 1
beq .L47
ldr w0, [sp, 12]
cmn w0, #1
bne .L47
.L46:
ldrsw x0, [sp, 8]
str x0, [sp, 24]
mov w0, 1
str w0, [sp, 20]
.L51:
ldr x0, [sp, 24]
and x0, x0, 1
cmp x0, 0
beq .L48
ldr w1, [sp, 20]
ldr w0, [sp, 12]
mul w0, w1, w0
str w0, [sp, 20]
.L48:
ldr x0, [sp, 24]
lsr x0, x0, 1
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
beq .L53
ldr w0, [sp, 12]
mul w0, w0, w0
str w0, [sp, 12]
b .L51
.L53:
nop
.L47:
ldr w0, [sp, 20]
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE14:
.size pow_ii, .-pow_ii
.align 2
.type dmaxloc_, %function
dmaxloc_:
.LFB15:
.cfi_startproc
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, 24]
str w1, [sp, 20]
str w2, [sp, 16]
str x3, [sp, 8]
ldrsw x0, [sp, 20]
lsl x0, x0, 3
sub x0, x0, #8
ldr x1, [sp, 24]
add x0, x1, x0
ldr d0, [x0]
str d0, [sp, 40]
ldr w0, [sp, 20]
str w0, [sp, 36]
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 32]
b .L55
.L58:
ldrsw x0, [sp, 32]
lsl x0, x0, 3
sub x0, x0, #8
ldr x1, [sp, 24]
add x0, x1, x0
ldr d0, [x0]
ldr d1, [sp, 40]
fcmpe d1, d0
bmi .L60
b .L56
.L60:
ldr w0, [sp, 32]
str w0, [sp, 36]
ldrsw x0, [sp, 32]
lsl x0, x0, 3
sub x0, x0, #8
ldr x1, [sp, 24]
add x0, x1, x0
ldr d0, [x0]
str d0, [sp, 40]
.L56:
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L55:
ldr w1, [sp, 32]
ldr w0, [sp, 16]
cmp w1, w0
ble .L58
ldr w1, [sp, 36]
ldr w0, [sp, 20]
sub w0, w1, w0
add w0, w0, 1
add sp, sp, 48
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE15:
.size dmaxloc_, .-dmaxloc_
.align 2
.type smaxloc_, %function
smaxloc_:
.LFB16:
.cfi_startproc
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, 24]
str w1, [sp, 20]
str w2, [sp, 16]
str x3, [sp, 8]
ldrsw x0, [sp, 20]
lsl x0, x0, 2
sub x0, x0, #4
ldr x1, [sp, 24]
add x0, x1, x0
ldr s0, [x0]
str s0, [sp, 36]
ldr w0, [sp, 20]
str w0, [sp, 44]
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 40]
b .L62
.L65:
ldrsw x0, [sp, 40]
lsl x0, x0, 2
sub x0, x0, #4
ldr x1, [sp, 24]
add x0, x1, x0
ldr s0, [x0]
ldr s1, [sp, 36]
fcmpe s1, s0
bmi .L67
b .L63
.L67:
ldr w0, [sp, 40]
str w0, [sp, 44]
ldrsw x0, [sp, 40]
lsl x0, x0, 2
sub x0, x0, #4
ldr x1, [sp, 24]
add x0, x1, x0
ldr s0, [x0]
str s0, [sp, 36]
.L63:
ldr w0, [sp, 40]
add w0, w0, 1
str w0, [sp, 40]
.L62:
ldr w1, [sp, 40]
ldr w0, [sp, 16]
cmp w1, w0
ble .L65
ldr w1, [sp, 44]
ldr w0, [sp, 20]
sub w0, w1, w0
add w0, w0, 1
add sp, sp, 48
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE16:
.size smaxloc_, .-smaxloc_
.data
.align 3
.type c_b2, %object
.size c_b2, 8
c_b2:
.word 1065353216
.word 0
.align 2
.type c__1, %object
.size c__1, 4
c__1:
.word 1
.align 2
.type c_n1, %object
.size c_n1, 4
c_n1:
.word -1
.section .rodata
.align 3
.LC0:
.string " "
.align 3
.LC1:
.string "CGEQRF"
.align 3
.LC2:
.string "CGERQF"
.align 3
.LC3:
.string "CUNMQR"
.align 3
.LC4:
.string "CUNMRQ"
.align 3
.LC5:
.string "CGGGLM"
.align 3
.LC6:
.string "Conjugate transpose"
.align 3
.LC7:
.string "Left"
.align 3
.LC8:
.string "Non unit"
.align 3
.LC9:
.string "No transpose"
.align 3
.LC10:
.string "Upper"
.align 3
.LC11:
.string "No Transpose"
.text
.align 2
.global cggglm_
.type cggglm_, %function
cggglm_:
.LFB21:
.cfi_startproc
sub sp, sp, #272
.cfi_def_cfa_offset 272
stp x29, x30, [sp, 48]
.cfi_offset 29, -224
.cfi_offset 30, -216
add x29, sp, 48
str x0, [sp, 168]
str x1, [sp, 160]
str x2, [sp, 152]
str x3, [sp, 144]
str x4, [sp, 136]
str x5, [sp, 128]
str x6, [sp, 120]
str x7, [sp, 112]
ldr x0, [sp, 272]
str x0, [sp, 104]
ldr x0, [sp, 280]
str x0, [sp, 96]
ldr x0, [sp, 288]
str x0, [sp, 88]
ldr x0, [sp, 296]
str x0, [sp, 80]
ldr x0, [sp, 304]
str x0, [sp, 72]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 264]
mov x1, 0
ldr x0, [sp, 136]
ldr w0, [x0]
str w0, [sp, 212]
ldr w0, [sp, 212]
add w0, w0, 1
str w0, [sp, 216]
ldrsw x0, [sp, 216]
lsl x0, x0, 3
neg x0, x0
ldr x1, [sp, 144]
add x0, x1, x0
str x0, [sp, 144]
ldr x0, [sp, 120]
ldr w0, [x0]
str w0, [sp, 220]
ldr w0, [sp, 220]
add w0, w0, 1
str w0, [sp, 224]
ldrsw x0, [sp, 224]
lsl x0, x0, 3
neg x0, x0
ldr x1, [sp, 128]
add x0, x1, x0
str x0, [sp, 128]
ldr x0, [sp, 112]
sub x0, x0, #8
str x0, [sp, 112]
ldr x0, [sp, 104]
sub x0, x0, #8
str x0, [sp, 104]
ldr x0, [sp, 96]
sub x0, x0, #8
str x0, [sp, 96]
ldr x0, [sp, 88]
sub x0, x0, #8
str x0, [sp, 88]
ldr x0, [sp, 72]
str wzr, [x0]
ldr x0, [sp, 168]
ldr w1, [x0]
ldr x0, [sp, 152]
ldr w0, [x0]
cmp w1, w0
csel w0, w1, w0, le
str w0, [sp, 196]
ldr x0, [sp, 80]
ldr w0, [x0]
cmn w0, #1
cset w0, eq
and w0, w0, 255
str w0, [sp, 228]
ldr x0, [sp, 168]
ldr w0, [x0]
cmp w0, 0
bge .L69
ldr x0, [sp, 72]
mov w1, -1
str w1, [x0]
b .L70
.L69:
ldr x0, [sp, 160]
ldr w0, [x0]
cmp w0, 0
blt .L71
ldr x0, [sp, 160]
ldr w1, [x0]
ldr x0, [sp, 168]
ldr w0, [x0]
cmp w1, w0
ble .L72
.L71:
ldr x0, [sp, 72]
mov w1, -2
str w1, [x0]
b .L70
.L72:
ldr x0, [sp, 152]
ldr w0, [x0]
cmp w0, 0
blt .L73
ldr x0, [sp, 152]
ldr w1, [x0]
ldr x0, [sp, 168]
ldr w2, [x0]
ldr x0, [sp, 160]
ldr w0, [x0]
sub w0, w2, w0
cmp w1, w0
bge .L74
.L73:
ldr x0, [sp, 72]
mov w1, -3
str w1, [x0]
b .L70
.L74:
ldr x0, [sp, 136]
ldr w1, [x0]
ldr x0, [sp, 168]
ldr w0, [x0]
mov w2, 1
cmp w0, 0
csel w0, w0, w2, gt
cmp w1, w0
bge .L75
ldr x0, [sp, 72]
mov w1, -5
str w1, [x0]
b .L70
.L75:
ldr x0, [sp, 120]
ldr w1, [x0]
ldr x0, [sp, 168]
ldr w0, [x0]
mov w2, 1
cmp w0, 0
csel w0, w0, w2, gt
cmp w1, w0
bge .L70
ldr x0, [sp, 72]
mov w1, -7
str w1, [x0]
.L70:
ldr x0, [sp, 72]
ldr w0, [x0]
cmp w0, 0
bne .L76
ldr x0, [sp, 168]
ldr w0, [x0]
cmp w0, 0
bne .L77
mov w0, 1
str w0, [sp, 204]
mov w0, 1
str w0, [sp, 208]
b .L78
.L77:
mov w0, 1
str w0, [sp]
mov w7, 6
adrp x0, c_n1
add x6, x0, :lo12:c_n1
adrp x0, c_n1
add x5, x0, :lo12:c_n1
ldr x4, [sp, 160]
ldr x3, [sp, 168]
adrp x0, .LC0
add x2, x0, :lo12:.LC0
adrp x0, .LC1
add x1, x0, :lo12:.LC1
adrp x0, c__1
add x0, x0, :lo12:c__1
bl ilaenv_
str w0, [sp, 232]
mov w0, 1
str w0, [sp]
mov w7, 6
adrp x0, c_n1
add x6, x0, :lo12:c_n1
adrp x0, c_n1
add x5, x0, :lo12:c_n1
ldr x4, [sp, 160]
ldr x3, [sp, 168]
adrp x0, .LC0
add x2, x0, :lo12:.LC0
adrp x0, .LC2
add x1, x0, :lo12:.LC2
adrp x0, c__1
add x0, x0, :lo12:c__1
bl ilaenv_
str w0, [sp, 236]
mov w0, 1
str w0, [sp]
mov w7, 6
adrp x0, c_n1
add x6, x0, :lo12:c_n1
ldr x5, [sp, 152]
ldr x4, [sp, 160]
ldr x3, [sp, 168]
adrp x0, .LC0
add x2, x0, :lo12:.LC0
adrp x0, .LC3
add x1, x0, :lo12:.LC3
adrp x0, c__1
add x0, x0, :lo12:c__1
bl ilaenv_
str w0, [sp, 240]
mov w0, 1
str w0, [sp]
mov w7, 6
adrp x0, c_n1
add x6, x0, :lo12:c_n1
ldr x5, [sp, 152]
ldr x4, [sp, 160]
ldr x3, [sp, 168]
adrp x0, .LC0
add x2, x0, :lo12:.LC0
adrp x0, .LC4
add x1, x0, :lo12:.LC4
adrp x0, c__1
add x0, x0, :lo12:c__1
bl ilaenv_
str w0, [sp, 244]
ldr w0, [sp, 236]
ldr w2, [sp, 232]
ldr w1, [sp, 232]
cmp w2, w0
csel w0, w1, w0, ge
str w0, [sp, 180]
ldr w0, [sp, 180]
ldr w2, [sp, 240]
ldr w1, [sp, 240]
cmp w2, w0
csel w0, w1, w0, ge
str w0, [sp, 180]
ldr w0, [sp, 180]
ldr w2, [sp, 244]
ldr w1, [sp, 244]
cmp w2, w0
csel w0, w1, w0, ge
str w0, [sp, 248]
ldr x0, [sp, 160]
ldr w1, [x0]
ldr x0, [sp, 168]
ldr w0, [x0]
add w1, w1, w0
ldr x0, [sp, 152]
ldr w0, [x0]
add w0, w1, w0
str w0, [sp, 204]
ldr x0, [sp, 160]
ldr w1, [x0]
ldr w0, [sp, 196]
add w2, w1, w0
ldr x0, [sp, 168]
ldr w1, [x0]
ldr x0, [sp, 152]
ldr w0, [x0]
cmp w1, w0
csel w1, w1, w0, ge
ldr w0, [sp, 248]
mul w0, w1, w0
add w0, w2, w0
str w0, [sp, 208]
.L78:
ldr x0, [sp, 88]
add x0, x0, 8
ldr s0, [sp, 208]
scvtf s0, s0
str s0, [x0]
ldr x0, [sp, 88]
add x0, x0, 8
str wzr, [x0, 4]
ldr x0, [sp, 80]
ldr w0, [x0]
ldr w1, [sp, 204]
cmp w1, w0
ble .L76
ldr w0, [sp, 228]
cmp w0, 0
bne .L76
ldr x0, [sp, 72]
mov w1, -12
str w1, [x0]
.L76:
ldr x0, [sp, 72]
ldr w0, [x0]
cmp w0, 0
beq .L79
ldr x0, [sp, 72]
ldr w0, [x0]
neg w0, w0
str w0, [sp, 180]
add x0, sp, 180
mov w2, 6
mov x1, x0
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl xerbla_
mov w0, 0
b .L93
.L79:
ldr w0, [sp, 228]
cmp w0, 0
beq .L81
mov w0, 0
b .L93
.L81:
ldr x0, [sp, 168]
ldr w0, [x0]
cmp w0, 0
bne .L82
ldr x0, [sp, 160]
ldr w0, [x0]
str w0, [sp, 180]
mov w0, 1
str w0, [sp, 200]
b .L83
.L84:
ldr w0, [sp, 200]
str w0, [sp, 184]
ldr w0, [sp, 184]
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 104]
add x0, x1, x0
str wzr, [x0]
ldr w0, [sp, 184]
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 104]
add x0, x1, x0
str wzr, [x0, 4]
ldr w0, [sp, 200]
add w0, w0, 1
str w0, [sp, 200]
.L83:
ldr w0, [sp, 180]
ldr w1, [sp, 200]
cmp w1, w0
ble .L84
ldr x0, [sp, 152]
ldr w0, [x0]
str w0, [sp, 180]
mov w0, 1
str w0, [sp, 200]
b .L85
.L86:
ldr w0, [sp, 200]
str w0, [sp, 184]
ldr w0, [sp, 184]
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 96]
add x0, x1, x0
str wzr, [x0]
ldr w0, [sp, 184]
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 96]
add x0, x1, x0
str wzr, [x0, 4]
ldr w0, [sp, 200]
add w0, w0, 1
str w0, [sp, 200]
.L85:
ldr w0, [sp, 180]
ldr w1, [sp, 200]
cmp w1, w0
ble .L86
mov w0, 0
b .L93
.L82:
ldr x0, [sp, 80]
ldr w1, [x0]
ldr x0, [sp, 160]
ldr w0, [x0]
sub w1, w1, w0
ldr w0, [sp, 196]
sub w0, w1, w0
str w0, [sp, 180]
ldrsw x0, [sp, 216]
lsl x0, x0, 3
ldr x1, [sp, 144]
add x3, x1, x0
ldr x0, [sp, 88]
add x4, x0, 8
ldrsw x0, [sp, 224]
lsl x0, x0, 3
ldr x1, [sp, 128]
add x5, x1, x0
ldr x0, [sp, 160]
ldr w0, [x0]
sxtw x0, w0
add x0, x0, 1
lsl x0, x0, 3
ldr x1, [sp, 88]
add x0, x1, x0
ldr x1, [sp, 160]
ldr w2, [x1]
ldr w1, [sp, 196]
add w1, w2, w1
sxtw x1, w1
add x1, x1, 1
lsl x1, x1, 3
ldr x2, [sp, 88]
add x1, x2, x1
ldr x2, [sp, 72]
str x2, [sp, 24]
add x2, sp, 180
str x2, [sp, 16]
str x1, [sp, 8]
str x0, [sp]
ldr x7, [sp, 120]
mov x6, x5
mov x5, x4
ldr x4, [sp, 136]
ldr x2, [sp, 152]
ldr x1, [sp, 160]
ldr x0, [sp, 168]
bl cggqrf_
ldr x0, [sp, 160]
ldr w1, [x0]
ldr w0, [sp, 196]
add w0, w1, w0
add w0, w0, 1
str w0, [sp, 180]
ldr w0, [sp, 180]
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 88]
add x0, x1, x0
ldr s0, [x0]
fcvtzs s0, s0
str s0, [sp, 252]
ldr x0, [sp, 168]
ldr w0, [x0]
mov w1, 1
cmp w0, 0
csel w0, w0, w1, gt
str w0, [sp, 180]
ldr x0, [sp, 80]
ldr w1, [x0]
ldr x0, [sp, 160]
ldr w0, [x0]
sub w1, w1, w0
ldr w0, [sp, 196]
sub w0, w1, w0
str w0, [sp, 184]
ldrsw x0, [sp, 216]
lsl x0, x0, 3
ldr x1, [sp, 144]
add x3, x1, x0
ldr x0, [sp, 88]
add x4, x0, 8
ldr x0, [sp, 112]
add x0, x0, 8
ldr x1, [sp, 160]
ldr w2, [x1]
ldr w1, [sp, 196]
add w1, w2, w1
sxtw x1, w1
add x1, x1, 1
lsl x1, x1, 3
ldr x2, [sp, 88]
add x1, x2, x1
ldr x2, [sp, 72]
str x2, [sp, 32]
add x2, sp, 184
str x2, [sp, 24]
str x1, [sp, 16]
add x1, sp, 180
str x1, [sp, 8]
str x0, [sp]
mov x7, x4
ldr x6, [sp, 136]
mov x5, x3
ldr x4, [sp, 160]
adrp x0, c__1
add x3, x0, :lo12:c__1
ldr x2, [sp, 168]
adrp x0, .LC6
add x1, x0, :lo12:.LC6
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl cunmqr_
ldr x0, [sp, 160]
ldr w1, [x0]
ldr w0, [sp, 196]
add w0, w1, w0
add w0, w0, 1
str w0, [sp, 188]
ldr w0, [sp, 252]
str w0, [sp, 180]
ldr w0, [sp, 188]
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 88]
add x0, x1, x0
ldr s0, [x0]
fcvtzs s0, s0
str s0, [sp, 184]
ldr w1, [sp, 180]
ldr w0, [sp, 184]
cmp w1, w0
csel w0, w1, w0, ge
str w0, [sp, 252]
ldr x0, [sp, 168]
ldr w1, [x0]
ldr x0, [sp, 160]
ldr w0, [x0]
cmp w1, w0
ble .L87
ldr x0, [sp, 168]
ldr w1, [x0]
ldr x0, [sp, 160]
ldr w0, [x0]
sub w0, w1, w0
str w0, [sp, 180]
ldr x0, [sp, 168]
ldr w1, [x0]
ldr x0, [sp, 160]
ldr w0, [x0]
sub w0, w1, w0
str w0, [sp, 184]
ldr x0, [sp, 160]
ldr w0, [x0]
add w1, w0, 1
ldr x0, [sp, 160]
ldr w2, [x0]
ldr x0, [sp, 152]
ldr w0, [x0]
add w2, w2, w0
ldr x0, [sp, 168]
ldr w0, [x0]
sub w0, w2, w0
add w2, w0, 1
ldr w0, [sp, 220]
mul w0, w2, w0
add w0, w1, w0
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 128]
add x2, x1, x0
ldr x0, [sp, 160]
ldr w0, [x0]
sxtw x0, w0
add x0, x0, 1
lsl x0, x0, 3
ldr x1, [sp, 112]
add x3, x1, x0
add x1, sp, 180
ldr x0, [sp, 72]
str x0, [sp, 8]
add x0, sp, 184
str x0, [sp]
mov x7, x3
ldr x6, [sp, 120]
mov x5, x2
adrp x0, c__1
add x4, x0, :lo12:c__1
mov x3, x1
adrp x0, .LC8
add x2, x0, :lo12:.LC8
adrp x0, .LC9
add x1, x0, :lo12:.LC9
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl ctrtrs_
ldr x0, [sp, 72]
ldr w0, [x0]
cmp w0, 0
ble .L88
ldr x0, [sp, 72]
mov w1, 1
str w1, [x0]
mov w0, 0
b .L93
.L88:
ldr x0, [sp, 168]
ldr w1, [x0]
ldr x0, [sp, 160]
ldr w0, [x0]
sub w0, w1, w0
str w0, [sp, 180]
ldr x0, [sp, 160]
ldr w0, [x0]
sxtw x0, w0
add x0, x0, 1
lsl x0, x0, 3
ldr x1, [sp, 112]
add x6, x1, x0
ldr x0, [sp, 160]
ldr w1, [x0]
ldr x0, [sp, 152]
ldr w0, [x0]
add w1, w1, w0
ldr x0, [sp, 168]
ldr w0, [x0]
sub w0, w1, w0
sxtw x0, w0
add x0, x0, 1
lsl x0, x0, 3
ldr x1, [sp, 96]
add x1, x1, x0
add x5, sp, 180
adrp x0, c__1
add x4, x0, :lo12:c__1
mov x3, x1
adrp x0, c__1
add x2, x0, :lo12:c__1
mov x1, x6
mov x0, x5
bl ccopy_
.L87:
ldr x0, [sp, 160]
ldr w1, [x0]
ldr x0, [sp, 152]
ldr w0, [x0]
add w1, w1, w0
ldr x0, [sp, 168]
ldr w0, [x0]
sub w0, w1, w0
str w0, [sp, 180]
mov w0, 1
str w0, [sp, 200]
b .L89
.L90:
ldr w0, [sp, 200]
str w0, [sp, 184]
ldr w0, [sp, 184]
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 96]
add x0, x1, x0
str wzr, [x0]
ldr w0, [sp, 184]
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 96]
add x0, x1, x0
str wzr, [x0, 4]
ldr w0, [sp, 200]
add w0, w0, 1
str w0, [sp, 200]
.L89:
ldr w0, [sp, 180]
ldr w1, [sp, 200]
cmp w1, w0
ble .L90
ldr x0, [sp, 168]
ldr w1, [x0]
ldr x0, [sp, 160]
ldr w0, [x0]
sub w0, w1, w0
str w0, [sp, 180]
fmov s0, -1.0e+0
str s0, [sp, 256]
str wzr, [sp, 260]
ldr x0, [sp, 160]
ldr w1, [x0]
ldr x0, [sp, 152]
ldr w0, [x0]
add w1, w1, w0
ldr x0, [sp, 168]
ldr w0, [x0]
sub w0, w1, w0
add w1, w0, 1
ldr w0, [sp, 220]
mul w0, w1, w0
sxtw x0, w0
add x0, x0, 1
lsl x0, x0, 3
ldr x1, [sp, 128]
add x4, x1, x0
ldr x0, [sp, 160]
ldr w1, [x0]
ldr x0, [sp, 152]
ldr w0, [x0]
add w1, w1, w0
ldr x0, [sp, 168]
ldr w0, [x0]
sub w0, w1, w0
sxtw x0, w0
add x0, x0, 1
lsl x0, x0, 3
ldr x1, [sp, 96]
add x5, x1, x0
ldr x0, [sp, 112]
add x0, x0, 8
add x3, sp, 256
add x2, sp, 180
adrp x1, c__1
add x1, x1, :lo12:c__1
str x1, [sp, 16]
str x0, [sp, 8]
adrp x0, c_b2
add x0, x0, :lo12:c_b2
str x0, [sp]
adrp x0, c__1
add x7, x0, :lo12:c__1
mov x6, x5
ldr x5, [sp, 120]
ldr x1, [sp, 160]
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl cgemv_
ldr x0, [sp, 160]
ldr w0, [x0]
cmp w0, 0
ble .L91
ldrsw x0, [sp, 216]
lsl x0, x0, 3
ldr x1, [sp, 144]
add x1, x1, x0
ldr x0, [sp, 112]
add x2, x0, 8
ldr x0, [sp, 72]
str x0, [sp, 8]
ldr x0, [sp, 160]
str x0, [sp]
mov x7, x2
ldr x6, [sp, 136]
mov x5, x1
adrp x0, c__1
add x4, x0, :lo12:c__1
ldr x3, [sp, 160]
adrp x0, .LC8
add x2, x0, :lo12:.LC8
adrp x0, .LC11
add x1, x0, :lo12:.LC11
adrp x0, .LC10
add x0, x0, :lo12:.LC10
bl ctrtrs_
ldr x0, [sp, 72]
ldr w0, [x0]
cmp w0, 0
ble .L92
ldr x0, [sp, 72]
mov w1, 2
str w1, [x0]
mov w0, 0
b .L93
.L92:
ldr x0, [sp, 112]
add x1, x0, 8
ldr x0, [sp, 104]
add x2, x0, 8
adrp x0, c__1
add x4, x0, :lo12:c__1
mov x3, x2
adrp x0, c__1
add x2, x0, :lo12:c__1
ldr x0, [sp, 160]
bl ccopy_
.L91:
mov w0, 1
str w0, [sp, 180]
ldr x0, [sp, 168]
ldr w1, [x0]
ldr x0, [sp, 152]
ldr w0, [x0]
sub w0, w1, w0
add w0, w0, 1
str w0, [sp, 184]
ldr x0, [sp, 152]
ldr w0, [x0]
mov w1, 1
cmp w0, 0
csel w0, w0, w1, gt
str w0, [sp, 188]
ldr x0, [sp, 80]
ldr w1, [x0]
ldr x0, [sp, 160]
ldr w0, [x0]
sub w1, w1, w0
ldr w0, [sp, 196]
sub w0, w1, w0
str w0, [sp, 192]
ldr w1, [sp, 180]
ldr w0, [sp, 184]
cmp w1, w0
csel w1, w1, w0, ge
ldr w0, [sp, 220]
add w0, w1, w0
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 128]
add x4, x1, x0
ldr x0, [sp, 160]
ldr w0, [x0]
sxtw x0, w0
add x0, x0, 1
lsl x0, x0, 3
ldr x1, [sp, 88]
add x5, x1, x0
ldr x0, [sp, 96]
add x0, x0, 8
ldr x1, [sp, 160]
ldr w2, [x1]
ldr w1, [sp, 196]
add w1, w2, w1
sxtw x1, w1
add x1, x1, 1
lsl x1, x1, 3
ldr x2, [sp, 88]
add x1, x2, x1
add x3, sp, 196
ldr x2, [sp, 72]
str x2, [sp, 32]
add x2, sp, 192
str x2, [sp, 24]
str x1, [sp, 16]
add x1, sp, 188
str x1, [sp, 8]
str x0, [sp]
mov x7, x5
ldr x6, [sp, 120]
mov x5, x4
mov x4, x3
adrp x0, c__1
add x3, x0, :lo12:c__1
ldr x2, [sp, 152]
adrp x0, .LC6
add x1, x0, :lo12:.LC6
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl cunmrq_
ldr x0, [sp, 160]
ldr w1, [x0]
ldr w0, [sp, 196]
add w0, w1, w0
add w0, w0, 1
str w0, [sp, 192]
ldr w0, [sp, 252]
str w0, [sp, 184]
ldr w0, [sp, 192]
sxtw x0, w0
lsl x0, x0, 3
ldr x1, [sp, 88]
add x0, x1, x0
ldr s0, [x0]
fcvtzs s0, s0
str s0, [sp, 188]
ldr x0, [sp, 160]
ldr w1, [x0]
ldr w0, [sp, 196]
add w2, w1, w0
ldr w1, [sp, 184]
ldr w0, [sp, 188]
cmp w1, w0
csel w0, w1, w0, ge
add w0, w2, w0
str w0, [sp, 180]
ldr s0, [sp, 180]
ldr x0, [sp, 88]
add x0, x0, 8
scvtf s0, s0
str s0, [x0]
ldr x0, [sp, 88]
add x0, x0, 8
str wzr, [x0, 4]
mov w0, 0
.L93:
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 .L94
bl __stack_chk_fail
.L94:
mov w0, w1
ldp x29, x30, [sp, 48]
add sp, sp, 272
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE21:
.size cggglm_, .-cggglm_
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global perror_exit
.type perror_exit, %function
perror_exit:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str x0, [sp, 24]
ldr x0, [sp, 24]
bl perror
mov w0, -1
bl exit
.cfi_endproc
.LFE6:
.size perror_exit, .-perror_exit
.section .rodata
.align 3
.LC0:
.string "malloc failed"
.text
.align 2
.global check_malloc
.type check_malloc, %function
check_malloc:
.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]
ldrsw x0, [sp, 28]
bl malloc
str x0, [sp, 40]
ldr x0, [sp, 40]
cmp x0, 0
bne .L3
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl perror_exit
.L3:
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 check_malloc, .-check_malloc
.align 2
.global make_shared
.type make_shared, %function
make_shared:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
mov w0, 4
bl check_malloc
str x0, [sp, 24]
ldr x0, [sp, 24]
str wzr, [x0]
ldr x0, [sp, 24]
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE8:
.size make_shared, .-make_shared
.section .rodata
.align 3
.LC1:
.string "pthread_create failed"
.text
.align 2
.global make_thread
.type make_thread, %function
make_thread:
.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]
str x1, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 56]
mov x1, 0
add x0, sp, 48
ldr x3, [sp, 16]
ldr x2, [sp, 24]
mov x1, 0
bl pthread_create
str w0, [sp, 44]
ldr w0, [sp, 44]
cmp w0, 0
beq .L8
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl perror_exit
.L8:
ldr x0, [sp, 48]
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 .L10
bl __stack_chk_fail
.L10:
mov x0, x1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE9:
.size make_thread, .-make_thread
.section .rodata
.align 3
.LC2:
.string "pthread_join failed"
.text
.align 2
.global join_thread
.type join_thread, %function
join_thread:
.LFB10:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
mov x1, 0
ldr x0, [sp, 24]
bl pthread_join
str w0, [sp, 44]
ldr w0, [sp, 44]
cmn w0, #1
bne .L13
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl perror_exit
.L13:
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size join_thread, .-join_thread
.section .rodata
.align 3
.LC3:
.string "counter = %d\n"
.text
.align 2
.global child_code
.type child_code, %function
child_code:
.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]
ldr x0, [sp, 24]
ldr w0, [x0]
mov w1, w0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
ldr x0, [sp, 24]
ldr w0, [x0]
add w1, w0, 1
ldr x0, [sp, 24]
str w1, [x0]
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size child_code, .-child_code
.align 2
.global entry
.type entry, %function
entry:
.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]
str x0, [sp, 40]
ldr x0, [sp, 40]
bl child_code
mov x0, 0
bl pthread_exit
.cfi_endproc
.LFE12:
.size entry, .-entry
.section .rodata
.align 3
.LC4:
.string "Final value of counter is %d\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB13:
.cfi_startproc
stp x29, x30, [sp, -112]!
.cfi_def_cfa_offset 112
.cfi_offset 29, -112
.cfi_offset 30, -104
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 104]
mov x1, 0
bl make_shared
str x0, [sp, 32]
str wzr, [sp, 28]
b .L17
.L18:
ldr x1, [sp, 32]
adrp x0, entry
add x0, x0, :lo12:entry
bl make_thread
mov x2, x0
ldrsw x0, [sp, 28]
lsl x0, x0, 3
add x1, sp, 40
str x2, [x1, x0]
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L17:
ldr w0, [sp, 28]
cmp w0, 7
ble .L18
str wzr, [sp, 28]
b .L19
.L20:
ldrsw x0, [sp, 28]
lsl x0, x0, 3
add x1, sp, 40
ldr x0, [x1, x0]
bl join_thread
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L19:
ldr w0, [sp, 28]
cmp w0, 7
ble .L20
ldr x0, [sp, 32]
ldr w0, [x0]
mov w1, w0
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 104]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L22
bl __stack_chk_fail
.L22:
mov w0, w1
ldp x29, x30, [sp], 112
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE13:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "127.0.0.1"
.align 3
.LC1:
.string "%d, %s\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]
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, 32]
mov w0, 2
strh w0, [sp, 40]
mov w0, 12345
bl htons
and w0, w0, 65535
strh w0, [sp, 42]
add x0, sp, 40
add x0, x0, 4
mov x2, x0
adrp x0, .LC0
add x1, x0, :lo12:.LC0
mov w0, 2
bl inet_pton
add x0, sp, 40
mov w2, 16
mov x1, x0
ldr w0, [sp, 32]
bl connect
add x0, sp, 56
mov x2, 32
mov w1, 0
bl memset
add x0, sp, 56
mov x2, 32
mov x1, x0
ldr w0, [sp, 32]
bl read
str w0, [sp, 36]
add x0, sp, 56
mov x2, x0
ldr w1, [sp, 36]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
ldr w0, [sp, 32]
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, 88]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L3
bl __stack_chk_fail
.L3:
mov w0, w1
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 2
.type PROTOCOL_VERSION, %object
.size PROTOCOL_VERSION, 4
PROTOCOL_VERSION:
.word 70002
.align 2
.type INIT_PROTO_VERSION, %object
.size INIT_PROTO_VERSION, 4
INIT_PROTO_VERSION:
.word 209
.align 2
.type GETHEADERS_VERSION, %object
.size GETHEADERS_VERSION, 4
GETHEADERS_VERSION:
.word 70000
.align 2
.type MIN_PEER_PROTO_VERSION_BEFORE_ENFORCEMENT, %object
.size MIN_PEER_PROTO_VERSION_BEFORE_ENFORCEMENT, 4
MIN_PEER_PROTO_VERSION_BEFORE_ENFORCEMENT:
.word 70002
.align 2
.type MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT, %object
.size MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT, 4
MIN_PEER_PROTO_VERSION_AFTER_ENFORCEMENT:
.word 70002
.align 2
.type CADDR_TIME_VERSION, %object
.size CADDR_TIME_VERSION, 4
CADDR_TIME_VERSION:
.word 31402
.align 2
.type BIP0031_VERSION, %object
.size BIP0031_VERSION, 4
BIP0031_VERSION:
.word 60000
.align 2
.type MEMPOOL_GD_VERSION, %object
.size MEMPOOL_GD_VERSION, 4
MEMPOOL_GD_VERSION:
.word 60002
.align 2
.type NO_BLOOM_VERSION, %object
.size NO_BLOOM_VERSION, 4
NO_BLOOM_VERSION:
.word 70000
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global foo
.type foo, %function
foo:
.LFB0:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
nop
.L2:
ldr x0, [sp, 8]
ldr w1, [x0]
ldr x0, [sp, 8]
ldr w0, [x0]
cmp w1, w0
bne .L2
nop
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
.align 2
.type my_tbegin, %function
my_tbegin:
.LFB0:
.cfi_startproc
#APP
// 23 "program.c" 1
1: .byte 0xe5,0x60,0x00,0x00,0xff,0x00
jnz 1b
// 0 "" 2
#NO_APP
nop
ret
.cfi_endproc
.LFE0:
.size my_tbegin, .-my_tbegin
.align 2
.type my_tend, %function
my_tend:
.LFB1:
.cfi_startproc
#APP
// 34 "program.c" 1
.byte 0xb2,0xf8,0x00,0x00
// 0 "" 2
#NO_APP
nop
ret
.cfi_endproc
.LFE1:
.size my_tend, .-my_tend
.align 2
.global try_transaction
.type try_transaction, %function
try_transaction:
.LFB2:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
bl my_tbegin
bl my_tend
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size try_transaction, .-try_transaction
.align 2
.global crash_in_transaction
.type crash_in_transaction, %function
crash_in_transaction:
.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 xzr, [sp, 24]
bl my_tbegin
ldr x0, [sp, 24]
mov w1, 5
strb w1, [x0]
bl my_tend
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE3:
.size crash_in_transaction, .-crash_in_transaction
.align 2
.global main
.type main, %function
main:
.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 w0, [sp, 28]
str x1, [sp, 16]
bl try_transaction
bl crash_in_transaction
mov w0, 0
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE4:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global incrarr
.type incrarr, %function
incrarr:
.LFB0:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str w1, [sp, 4]
str wzr, [sp, 28]
b .L2
.L3:
ldrsw x0, [sp, 28]
lsl x0, x0, 2
ldr x1, [sp, 8]
add x0, x1, x0
ldr w1, [x0]
add w1, w1, 1
str w1, [x0]
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L2:
ldr w1, [sp, 28]
ldr w0, [sp, 4]
cmp w1, w0
blt .L3
nop
nop
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size incrarr, .-incrarr
.align 2
.global f
.type f, %function
f:
.LFB1:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 40]
mov x1, 0
mov w0, 4
str w0, [sp, 16]
mov w0, -7
str w0, [sp, 20]
mov w0, 2
str w0, [sp, 24]
mov w0, 3
str w0, [sp, 28]
mov w0, 9
str w0, [sp, 32]
add x0, sp, 16
mov w1, 5
bl incrarr
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 .L5
bl __stack_chk_fail
.L5:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size f, .-f
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global f
.type f, %function
f:
.LFB0:
.cfi_startproc
nop
.L2:
nop
ret
.cfi_endproc
.LFE0:
.size f, .-f
.align 2
.global g
.type g, %function
g:
.LFB1:
.cfi_startproc
.L4:
b .L4
.cfi_endproc
.LFE1:
.size g, .-g
.align 2
.global get_3
.type get_3, %function
get_3:
.LFB2:
.cfi_startproc
mov w0, 3
ret
.cfi_endproc
.LFE2:
.size get_3, .-get_3
.align 2
.global main
.type main, %function
main:
.LFB3:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
bl get_3
nop
.L8:
mov w0, 0
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE3:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global 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 x19, [sp, 16]
.cfi_offset 19, -16
bl foo
mov w19, w0
bl bar
add w0, w19, w0
ldr x19, [sp, 16]
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global procid
.bss
.align 3
.type procid, %object
.size procid, 8
procid:
.zero 8
.section .tbss,"awT",@nobits
.align 2
.type skip_segv, %object
.size skip_segv, 4
skip_segv:
.zero 4
.align 3
.type segv_env, %object
.size segv_env, 312
segv_env:
.zero 312
.text
.align 2
.type segv_handler, %function
segv_handler:
.LFB34:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
str w0, [sp, 44]
str x1, [sp, 32]
str x2, [sp, 24]
ldr x0, [sp, 32]
ldr x0, [x0, 16]
str x0, [sp, 56]
mov x0, 1048576
str x0, [sp, 64]
mov x0, 104857600
str x0, [sp, 72]
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:skip_segv, lsl #12
add x0, x0, #:tprel_lo12_nc:skip_segv
ldr w0, [x0]
cmp w0, 0
beq .L2
ldr x1, [sp, 56]
ldr x0, [sp, 64]
cmp x1, x0
bcc .L3
ldr x1, [sp, 56]
ldr x0, [sp, 72]
cmp x1, x0
bls .L2
.L3:
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:segv_env, lsl #12
add x0, x0, #:tprel_lo12_nc:segv_env
mov w1, 1
bl _longjmp
.L2:
ldr w0, [sp, 44]
bl exit
.cfi_endproc
.LFE34:
.size segv_handler, .-segv_handler
.align 2
.type install_segv_handler, %function
install_segv_handler:
.LFB35:
.cfi_startproc
stp x29, x30, [sp, -176]!
.cfi_def_cfa_offset 176
.cfi_offset 29, -176
.cfi_offset 30, -168
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 168]
mov x1, 0
add x0, sp, 16
mov x2, 152
mov w1, 0
bl memset
mov x0, 1
str x0, [sp, 16]
add x0, sp, 16
mov w4, 8
mov x3, 0
mov x2, x0
mov w1, 32
mov x0, 134
bl syscall
add x0, sp, 16
mov w4, 8
mov x3, 0
mov x2, x0
mov w1, 33
mov x0, 134
bl syscall
add x0, sp, 16
mov x2, 152
mov w1, 0
bl memset
adrp x0, segv_handler
add x0, x0, :lo12:segv_handler
str x0, [sp, 16]
mov w0, 4
movk w0, 0x4000, lsl 16
str w0, [sp, 152]
add x0, sp, 16
mov x2, 0
mov x1, x0
mov w0, 11
bl sigaction
add x0, sp, 16
mov x2, 0
mov x1, x0
mov w0, 7
bl sigaction
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 168]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L5
bl __stack_chk_fail
.L5:
ldp x29, x30, [sp], 176
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE35:
.size install_segv_handler, .-install_segv_handler
.align 2
.type sleep_ms, %function
sleep_ms:
.LFB36:
.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]
mov w1, w0
mov w0, 1000
mul w0, w1, w0
bl usleep
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE36:
.size sleep_ms, .-sleep_ms
.align 2
.type current_time_ms, %function
current_time_ms:
.LFB37:
.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, x0
mov w0, 1
bl clock_gettime
cmp w0, 0
beq .L8
mov w0, 1
bl exit
.L8:
ldr x0, [sp, 24]
mov x1, x0
mov x0, x1
lsl x0, x0, 5
sub x0, x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 3
mov x1, x0
ldr x0, [sp, 32]
mov x2, x0
mov x0, 13531
movk x0, 0xd7b6, lsl 16
movk x0, 0xde82, lsl 32
movk x0, 0x431b, lsl 48
umulh x0, x2, x0
lsr x0, x0, 18
add x0, x1, x0
mov x1, x0
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 .L10
bl __stack_chk_fail
.L10:
mov x0, x1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE37:
.size current_time_ms, .-current_time_ms
.align 2
.type use_temporary_dir, %function
use_temporary_dir:
.LFB38:
.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, .LC4
add x0, x0, :lo12:.LC4
add x2, sp, 32
mov x3, x0
ldp x0, x1, [x3]
stp x0, x1, [x2]
add x1, x3, 15
add x0, x2, 15
ldr w1, [x1]
str w1, [x0]
add x0, sp, 32
bl mkdtemp
str x0, [sp, 24]
ldr x0, [sp, 24]
cmp x0, 0
bne .L12
mov w0, 1
bl exit
.L12:
mov w1, 511
ldr x0, [sp, 24]
bl chmod
cmp w0, 0
beq .L13
mov w0, 1
bl exit
.L13:
ldr x0, [sp, 24]
bl chdir
cmp w0, 0
beq .L16
mov w0, 1
bl exit
.L16:
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 56]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L15
bl __stack_chk_fail
.L15:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE38:
.size use_temporary_dir, .-use_temporary_dir
.section .rodata
.align 3
.LC4:
.string "./syzkaller.XXXXXX"
.text
.align 2
.type write_file, %function
write_file:
.LFB39:
.cfi_startproc
sub sp, sp, #1328
.cfi_def_cfa_offset 1328
stp x29, x30, [sp]
.cfi_offset 29, -1328
.cfi_offset 30, -1320
mov x29, sp
str x0, [sp, 56]
str x1, [sp, 48]
str x2, [sp, 1280]
str x3, [sp, 1288]
str x4, [sp, 1296]
str x5, [sp, 1304]
str x6, [sp, 1312]
str x7, [sp, 1320]
add x0, sp, 1024
str q0, [x0, 128]
add x0, sp, 1024
str q1, [x0, 144]
add x0, sp, 1024
str q2, [x0, 160]
add x0, sp, 1024
str q3, [x0, 176]
add x0, sp, 1024
str q4, [x0, 192]
add x0, sp, 1024
str q5, [x0, 208]
add x0, sp, 1024
str q6, [x0, 224]
add x0, sp, 1024
str q7, [x0, 240]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 1144]
mov x1, 0
add x0, sp, 1328
str x0, [sp, 88]
add x0, sp, 1328
str x0, [sp, 96]
add x0, sp, 1280
str x0, [sp, 104]
mov w0, -48
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 x1, sp, 16
add x0, sp, 120
mov x3, x1
ldr x2, [sp, 48]
mov x1, 1024
bl vsnprintf
strb wzr, [sp, 1143]
add x0, sp, 120
bl strlen
str w0, [sp, 76]
mov w1, 1
movk w1, 0x8, lsl 16
ldr x0, [sp, 56]
bl open
str w0, [sp, 80]
ldr w0, [sp, 80]
cmn w0, #1
bne .L18
mov w0, 0
b .L21
.L18:
ldrsw x1, [sp, 76]
add x0, sp, 120
mov x2, x1
mov x1, x0
ldr w0, [sp, 80]
bl write
mov x1, x0
ldrsw x0, [sp, 76]
cmp x1, x0
beq .L20
bl __errno_location
ldr w0, [x0]
str w0, [sp, 84]
ldr w0, [sp, 80]
bl close
bl __errno_location
mov x1, x0
ldr w0, [sp, 84]
str w0, [x1]
mov w0, 0
b .L21
.L20:
ldr w0, [sp, 80]
bl close
mov w0, 1
.L21:
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 1144]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L22
bl __stack_chk_fail
.L22:
mov w0, w1
ldp x29, x30, [sp]
add sp, sp, 1328
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE39:
.size write_file, .-write_file
.local nlmsg
.comm nlmsg,1104,8
.align 2
.type netlink_init, %function
netlink_init:
.LFB40:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str w0, [sp, 44]
str w1, [sp, 40]
str x2, [sp, 32]
str w3, [sp, 28]
mov x2, 1104
mov w1, 0
adrp x0, nlmsg
add x0, x0, :lo12:nlmsg
bl memset
adrp x0, nlmsg+80
add x0, x0, :lo12:nlmsg+80
str x0, [sp, 56]
ldr w0, [sp, 44]
and w1, w0, 65535
ldr x0, [sp, 56]
strh w1, [x0, 4]
ldr w0, [sp, 40]
sxth w1, w0
mov w0, 5
orr w0, w1, w0
sxth w0, w0
and w1, w0, 65535
ldr x0, [sp, 56]
strh w1, [x0, 6]
ldr x0, [sp, 56]
add x0, x0, 16
ldrsw x1, [sp, 28]
mov x2, x1
ldr x1, [sp, 32]
bl memcpy
ldr w0, [sp, 28]
add w0, w0, 3
uxtw x0, w0
and x0, x0, 4294967292
add x0, x0, 16
ldr x1, [sp, 56]
add x1, x1, x0
adrp x0, nlmsg
add x0, x0, :lo12:nlmsg
str x1, [x0]
nop
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE40:
.size netlink_init, .-netlink_init
.align 2
.type netlink_attr, %function
netlink_attr:
.LFB41:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str w0, [sp, 28]
str x1, [sp, 16]
str w2, [sp, 24]
adrp x0, nlmsg
add x0, x0, :lo12:nlmsg
ldr x0, [x0]
str x0, [sp, 40]
ldr w0, [sp, 24]
and w0, w0, 65535
add w0, w0, 4
and w1, w0, 65535
ldr x0, [sp, 40]
strh w1, [x0]
ldr w0, [sp, 28]
and w1, w0, 65535
ldr x0, [sp, 40]
strh w1, [x0, 2]
ldr x0, [sp, 40]
add x0, x0, 4
ldrsw x1, [sp, 24]
mov x2, x1
ldr x1, [sp, 16]
bl memcpy
adrp x0, nlmsg
add x0, x0, :lo12:nlmsg
ldr x1, [x0]
ldr x0, [sp, 40]
ldrh w0, [x0]
add w0, w0, 3
uxtw x0, w0
and x0, x0, 4294967292
add x1, x1, x0
adrp x0, nlmsg
add x0, x0, :lo12:nlmsg
str x1, [x0]
nop
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE41:
.size netlink_attr, .-netlink_attr
.align 2
.type netlink_nest, %function
netlink_nest:
.LFB42:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, 12]
adrp x0, nlmsg
add x0, x0, :lo12:nlmsg
ldr x0, [x0]
str x0, [sp, 24]
ldr w0, [sp, 12]
and w1, w0, 65535
ldr x0, [sp, 24]
strh w1, [x0, 2]
adrp x0, nlmsg
add x0, x0, :lo12:nlmsg
ldr x0, [x0]
add x1, x0, 4
adrp x0, nlmsg
add x0, x0, :lo12:nlmsg
str x1, [x0]
adrp x0, nlmsg
add x0, x0, :lo12:nlmsg
ldr w0, [x0, 8]
add w2, w0, 1
adrp x1, nlmsg
add x1, x1, :lo12:nlmsg
str w2, [x1, 8]
adrp x1, nlmsg
add x1, x1, :lo12:nlmsg
sxtw x0, w0
add x0, x0, 2
ldr x2, [sp, 24]
str x2, [x1, x0, lsl 3]
nop
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE42:
.size netlink_nest, .-netlink_nest
.align 2
.type netlink_done, %function
netlink_done:
.LFB43:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
adrp x0, nlmsg
add x0, x0, :lo12:nlmsg
ldr w0, [x0, 8]
sub w1, w0, #1
adrp x0, nlmsg
add x0, x0, :lo12:nlmsg
str w1, [x0, 8]
adrp x0, nlmsg
add x0, x0, :lo12:nlmsg
ldr w1, [x0, 8]
adrp x0, nlmsg
add x0, x0, :lo12:nlmsg
sxtw x1, w1
add x1, x1, 2
ldr x0, [x0, x1, lsl 3]
str x0, [sp, 8]
adrp x0, nlmsg
add x0, x0, :lo12:nlmsg
ldr x1, [x0]
ldr x0, [sp, 8]
sub x0, x1, x0
and w1, w0, 65535
ldr x0, [sp, 8]
strh w1, [x0]
nop
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE43:
.size netlink_done, .-netlink_done
.align 2
.type netlink_send, %function
netlink_send:
.LFB44:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
str w0, [sp, 28]
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, nlmsg
add x0, x0, :lo12:nlmsg
ldr x1, [x0]
adrp x0, nlmsg+1104
add x0, x0, :lo12:nlmsg+1104
cmp x1, x0
bhi .L28
adrp x0, nlmsg
add x0, x0, :lo12:nlmsg
ldr w0, [x0, 8]
cmp w0, 0
beq .L29
.L28:
mov w0, 1
bl exit
.L29:
adrp x0, nlmsg+80
add x0, x0, :lo12:nlmsg+80
str x0, [sp, 48]
adrp x0, nlmsg
add x0, x0, :lo12:nlmsg
ldr x1, [x0]
adrp x0, nlmsg+80
add x0, x0, :lo12:nlmsg+80
sub x0, x1, x0
mov w1, w0
ldr x0, [sp, 48]
str w1, [x0]
add x0, sp, 56
mov x2, 12
mov w1, 0
bl memset
mov w0, 16
strh w0, [sp, 56]
ldr x0, [sp, 48]
ldr w0, [x0]
uxtw x0, w0
add x1, sp, 56
mov w5, 12
mov x4, x1
mov w3, 0
mov x2, x0
adrp x0, nlmsg+80
add x1, x0, :lo12:nlmsg+80
ldr w0, [sp, 28]
bl sendto
str w0, [sp, 44]
ldr x0, [sp, 48]
ldr w0, [x0]
ldr w1, [sp, 44]
cmp w1, w0
beq .L30
mov w0, 1
bl exit
.L30:
mov w3, 0
mov x2, 1024
adrp x0, nlmsg+80
add x1, x0, :lo12:nlmsg+80
ldr w0, [sp, 28]
bl recv
str w0, [sp, 44]
ldr w0, [sp, 44]
cmp w0, 35
bhi .L31
mov w0, 1
bl exit
.L31:
ldr x0, [sp, 48]
ldrh w0, [x0, 4]
cmp w0, 2
beq .L32
mov w0, 1
bl exit
.L32:
ldr x0, [sp, 48]
add x0, x0, 16
ldr w0, [x0]
neg w0, w0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 72]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L34
bl __stack_chk_fail
.L34:
mov w0, w1
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE44:
.size netlink_send, .-netlink_send
.align 2
.type netlink_add_device_impl, %function
netlink_add_device_impl:
.LFB45:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 24]
str x1, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 56]
mov x1, 0
add x0, sp, 40
mov x2, 16
mov w1, 0
bl memset
add x0, sp, 40
mov w3, 16
mov x2, x0
mov w1, 1536
mov w0, 16
bl netlink_init
ldr x0, [sp, 16]
cmp x0, 0
beq .L36
ldr x0, [sp, 16]
bl strlen
mov w2, w0
ldr x1, [sp, 16]
mov w0, 3
bl netlink_attr
.L36:
mov w0, 18
bl netlink_nest
ldr x0, [sp, 24]
bl strlen
mov w2, w0
ldr x1, [sp, 24]
mov w0, 1
bl netlink_attr
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 56]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L37
bl __stack_chk_fail
.L37:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE45:
.size netlink_add_device_impl, .-netlink_add_device_impl
.align 2
.type netlink_add_device, %function
netlink_add_device:
.LFB46:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str w0, [sp, 44]
str x1, [sp, 32]
str x2, [sp, 24]
ldr x1, [sp, 24]
ldr x0, [sp, 32]
bl netlink_add_device_impl
bl netlink_done
ldr w0, [sp, 44]
bl netlink_send
str w0, [sp, 60]
nop
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE46:
.size netlink_add_device, .-netlink_add_device
.section .rodata
.align 3
.LC5:
.string "veth"
.text
.align 2
.type netlink_add_veth, %function
netlink_add_veth:
.LFB47:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str w0, [sp, 44]
str x1, [sp, 32]
str x2, [sp, 24]
ldr x1, [sp, 32]
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl netlink_add_device_impl
mov w0, 2
bl netlink_nest
mov w0, 1
bl netlink_nest
adrp x0, nlmsg
add x0, x0, :lo12:nlmsg
ldr x0, [x0]
add x1, x0, 16
adrp x0, nlmsg
add x0, x0, :lo12:nlmsg
str x1, [x0]
ldr x0, [sp, 24]
bl strlen
mov w2, w0
ldr x1, [sp, 24]
mov w0, 3
bl netlink_attr
bl netlink_done
bl netlink_done
bl netlink_done
ldr w0, [sp, 44]
bl netlink_send
str w0, [sp, 60]
nop
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE47:
.size netlink_add_veth, .-netlink_add_veth
.section .rodata
.align 3
.LC6:
.string "hsr"
.text
.align 2
.type netlink_add_hsr, %function
netlink_add_hsr:
.LFB48:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
str w0, [sp, 44]
str x1, [sp, 32]
str x2, [sp, 24]
str x3, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 72]
mov x1, 0
ldr x1, [sp, 32]
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl netlink_add_device_impl
mov w0, 2
bl netlink_nest
ldr x0, [sp, 24]
bl if_nametoindex
str w0, [sp, 60]
add x0, sp, 60
mov w2, 4
mov x1, x0
mov w0, 1
bl netlink_attr
ldr x0, [sp, 16]
bl if_nametoindex
str w0, [sp, 64]
add x0, sp, 64
mov w2, 4
mov x1, x0
mov w0, 2
bl netlink_attr
bl netlink_done
bl netlink_done
ldr w0, [sp, 44]
bl netlink_send
str w0, [sp, 68]
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 72]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L41
bl __stack_chk_fail
.L41:
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE48:
.size netlink_add_hsr, .-netlink_add_hsr
.align 2
.type netlink_device_change, %function
netlink_device_change:
.LFB49:
.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, 60]
str x1, [sp, 48]
strb w2, [sp, 59]
str x3, [sp, 40]
str x4, [sp, 32]
str w5, [sp, 28]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 88]
mov x1, 0
add x0, sp, 72
mov x2, 16
mov w1, 0
bl memset
ldrb w0, [sp, 59]
cmp w0, 0
beq .L43
mov w0, 1
str w0, [sp, 84]
ldr w0, [sp, 84]
str w0, [sp, 80]
.L43:
add x0, sp, 72
mov w3, 16
mov x2, x0
mov w1, 0
mov w0, 16
bl netlink_init
ldr x0, [sp, 48]
bl strlen
mov w2, w0
ldr x1, [sp, 48]
mov w0, 3
bl netlink_attr
ldr x0, [sp, 40]
cmp x0, 0
beq .L44
ldr x0, [sp, 40]
bl if_nametoindex
str w0, [sp, 64]
add x0, sp, 64
mov w2, 4
mov x1, x0
mov w0, 10
bl netlink_attr
.L44:
ldr w0, [sp, 28]
cmp w0, 0
beq .L45
ldr w2, [sp, 28]
ldr x1, [sp, 32]
mov w0, 1
bl netlink_attr
.L45:
ldr w0, [sp, 60]
bl netlink_send
str w0, [sp, 68]
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 88]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L46
bl __stack_chk_fail
.L46:
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE49:
.size netlink_device_change, .-netlink_device_change
.align 2
.type netlink_add_addr, %function
netlink_add_addr:
.LFB50:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str w0, [sp, 44]
str x1, [sp, 32]
str x2, [sp, 24]
str w3, [sp, 40]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 56]
mov x1, 0
add x0, sp, 48
mov x2, 8
mov w1, 0
bl memset
ldr w0, [sp, 40]
cmp w0, 4
bne .L48
mov w0, 2
b .L49
.L48:
mov w0, 10
.L49:
strb w0, [sp, 48]
ldr w0, [sp, 40]
cmp w0, 4
bne .L50
mov w0, 24
b .L51
.L50:
mov w0, 120
.L51:
strb w0, [sp, 49]
strb wzr, [sp, 51]
ldr x0, [sp, 32]
bl if_nametoindex
str w0, [sp, 52]
add x0, sp, 48
mov w3, 8
mov x2, x0
mov w1, 1280
mov w0, 20
bl netlink_init
ldr w2, [sp, 40]
ldr x1, [sp, 24]
mov w0, 2
bl netlink_attr
ldr w2, [sp, 40]
ldr x1, [sp, 24]
mov w0, 1
bl netlink_attr
ldr w0, [sp, 44]
bl netlink_send
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 .L53
bl __stack_chk_fail
.L53:
mov w0, w1
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE50:
.size netlink_add_addr, .-netlink_add_addr
.align 2
.type netlink_add_addr4, %function
netlink_add_addr4:
.LFB51:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str w0, [sp, 44]
str x1, [sp, 32]
str x2, [sp, 24]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 56]
mov x1, 0
add x0, sp, 48
mov x2, x0
ldr x1, [sp, 24]
mov w0, 2
bl inet_pton
add x0, sp, 48
mov w3, 4
mov x2, x0
ldr x1, [sp, 32]
ldr w0, [sp, 44]
bl netlink_add_addr
str w0, [sp, 52]
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 56]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L55
bl __stack_chk_fail
.L55:
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE51:
.size netlink_add_addr4, .-netlink_add_addr4
.align 2
.type netlink_add_addr6, %function
netlink_add_addr6:
.LFB52:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
str w0, [sp, 44]
str x1, [sp, 32]
str x2, [sp, 24]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 72]
mov x1, 0
add x0, sp, 56
mov x2, x0
ldr x1, [sp, 24]
mov w0, 10
bl inet_pton
add x0, sp, 56
mov w3, 16
mov x2, x0
ldr x1, [sp, 32]
ldr w0, [sp, 44]
bl netlink_add_addr
str w0, [sp, 52]
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 72]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L57
bl __stack_chk_fail
.L57:
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE52:
.size netlink_add_addr6, .-netlink_add_addr6
.align 2
.type netlink_add_neigh, %function
netlink_add_neigh:
.LFB53:
.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, 60]
str x1, [sp, 48]
str x2, [sp, 40]
str w3, [sp, 56]
str x4, [sp, 32]
str w5, [sp, 28]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 88]
mov x1, 0
add x0, sp, 72
mov x2, 12
mov w1, 0
bl memset
ldr w0, [sp, 56]
cmp w0, 4
bne .L59
mov w0, 2
b .L60
.L59:
mov w0, 10
.L60:
strb w0, [sp, 72]
ldr x0, [sp, 48]
bl if_nametoindex
str w0, [sp, 76]
mov w0, 128
strh w0, [sp, 80]
add x0, sp, 72
mov w3, 12
mov x2, x0
mov w1, 1536
mov w0, 28
bl netlink_init
ldr w2, [sp, 56]
ldr x1, [sp, 40]
mov w0, 1
bl netlink_attr
ldr w2, [sp, 28]
ldr x1, [sp, 32]
mov w0, 2
bl netlink_attr
ldr w0, [sp, 60]
bl netlink_send
str w0, [sp, 68]
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 88]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L61
bl __stack_chk_fail
.L61:
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE53:
.size netlink_add_neigh, .-netlink_add_neigh
.data
.align 2
.type tunfd, %object
.size tunfd, 4
tunfd:
.word -1
.local tun_frags_enabled
.comm tun_frags_enabled,4,4
.section .rodata
.align 3
.LC7:
.string "/dev/net/tun"
.align 3
.LC8:
.string "tun: can't open /dev/net/tun: please enable CONFIG_TUN=y"
.align 3
.LC9:
.string "otherwise fuzzing or reproducing might not work as intended"
.align 3
.LC10:
.string "syz_tun"
.align 3
.LC11:
.string "/proc/sys/net/ipv6/conf/%s/accept_dad"
.align 3
.LC12:
.string "0"
.align 3
.LC13:
.string "/proc/sys/net/ipv6/conf/%s/router_solicitations"
.align 3
.LC14:
.string "172.20.20.170"
.align 3
.LC15:
.string "fe80::aa"
.align 3
.LC16:
.string "172.20.20.187"
.align 3
.LC17:
.string "fe80::bb"
.text
.align 2
.type initialize_tun, %function
initialize_tun:
.LFB54:
.cfi_startproc
stp x29, x30, [sp, -176]!
.cfi_def_cfa_offset 176
.cfi_offset 29, -176
.cfi_offset 30, -168
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 168]
mov x1, 0
mov w1, 2050
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl open
mov w1, w0
adrp x0, tunfd
add x0, x0, :lo12:tunfd
str w1, [x0]
adrp x0, tunfd
add x0, x0, :lo12:tunfd
ldr w0, [x0]
cmn w0, #1
bne .L63
adrp x0, .LC8
add x0, x0, :lo12:.LC8
bl puts
adrp x0, .LC9
add x0, x0, :lo12:.LC9
bl puts
b .L62
.L63:
mov w0, 240
str w0, [sp, 32]
adrp x0, tunfd
add x0, x0, :lo12:tunfd
ldr w0, [x0]
ldr w1, [sp, 32]
bl dup2
cmp w0, 0
bge .L65
mov w0, 1
bl exit
.L65:
adrp x0, tunfd
add x0, x0, :lo12:tunfd
ldr w0, [x0]
bl close
adrp x0, tunfd
add x0, x0, :lo12:tunfd
ldr w1, [sp, 32]
str w1, [x0]
add x0, sp, 64
mov x2, 40
mov w1, 0
bl memset
add x3, sp, 64
mov x2, 16
adrp x0, .LC10
add x1, x0, :lo12:.LC10
mov x0, x3
bl strncpy
mov w0, 4146
strh w0, [sp, 80]
adrp x0, tunfd
add x0, x0, :lo12:tunfd
ldr w0, [x0]
add x1, sp, 64
mov x2, x1
mov x1, 21706
movk x1, 0x4004, lsl 16
bl ioctl
cmp w0, 0
bge .L66
mov w0, 4098
strh w0, [sp, 80]
adrp x0, tunfd
add x0, x0, :lo12:tunfd
ldr w0, [x0]
add x1, sp, 64
mov x2, x1
mov x1, 21706
movk x1, 0x4004, lsl 16
bl ioctl
cmp w0, 0
bge .L66
mov w0, 1
bl exit
.L66:
adrp x0, tunfd
add x0, x0, :lo12:tunfd
ldr w0, [x0]
add x1, sp, 64
mov x2, x1
mov x1, 21714
movk x1, 0x8004, lsl 16
bl ioctl
cmp w0, 0
bge .L67
mov w0, 1
bl exit
.L67:
ldrsh w0, [sp, 80]
and w0, w0, 65535
and w0, w0, 32
cmp w0, 0
cset w0, ne
and w0, w0, 255
mov w1, w0
adrp x0, tun_frags_enabled
add x0, x0, :lo12:tun_frags_enabled
str w1, [x0]
add x3, sp, 104
adrp x0, .LC10
add x2, x0, :lo12:.LC10
adrp x0, .LC11
add x1, x0, :lo12:.LC11
mov x0, x3
bl sprintf
add x2, sp, 104
adrp x0, .LC12
add x1, x0, :lo12:.LC12
mov x0, x2
bl write_file
add x3, sp, 104
adrp x0, .LC10
add x2, x0, :lo12:.LC10
adrp x0, .LC13
add x1, x0, :lo12:.LC13
mov x0, x3
bl sprintf
add x2, sp, 104
adrp x0, .LC12
add x1, x0, :lo12:.LC12
mov x0, x2
bl write_file
mov w2, 0
mov w1, 3
mov w0, 16
bl socket
str w0, [sp, 36]
ldr w0, [sp, 36]
cmn w0, #1
bne .L68
mov w0, 1
bl exit
.L68:
adrp x0, .LC14
add x2, x0, :lo12:.LC14
adrp x0, .LC10
add x1, x0, :lo12:.LC10
ldr w0, [sp, 36]
bl netlink_add_addr4
adrp x0, .LC15
add x2, x0, :lo12:.LC15
adrp x0, .LC10
add x1, x0, :lo12:.LC10
ldr w0, [sp, 36]
bl netlink_add_addr6
mov x0, 43707
movk x0, 0xaaaa, lsl 16
movk x0, 0xaaaa, lsl 32
str x0, [sp, 40]
add x0, sp, 24
mov x2, x0
adrp x0, .LC16
add x1, x0, :lo12:.LC16
mov w0, 2
bl inet_pton
add x1, sp, 40
add x0, sp, 24
mov w5, 6
mov x4, x1
mov w3, 4
mov x2, x0
adrp x0, .LC10
add x1, x0, :lo12:.LC10
ldr w0, [sp, 36]
bl netlink_add_neigh
add x0, sp, 48
mov x2, x0
adrp x0, .LC17
add x1, x0, :lo12:.LC17
mov w0, 10
bl inet_pton
add x1, sp, 40
add x0, sp, 48
mov w5, 6
mov x4, x1
mov w3, 16
mov x2, x0
adrp x0, .LC10
add x1, x0, :lo12:.LC10
ldr w0, [sp, 36]
bl netlink_add_neigh
mov w0, 2863311530
movk x0, 0xaaaa, lsl 32
str x0, [sp, 40]
add x0, sp, 40
mov w5, 6
mov x4, x0
mov x3, 0
mov w2, 1
adrp x0, .LC10
add x1, x0, :lo12:.LC10
ldr w0, [sp, 36]
bl netlink_device_change
ldr w0, [sp, 36]
bl close
.L62:
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 168]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L69
bl __stack_chk_fail
.L69:
ldp x29, x30, [sp], 176
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE54:
.size initialize_tun, .-initialize_tun
.section .rodata
.align 3
.LC18:
.string "netdevsim%d"
.align 3
.LC19:
.string "ip6gretap"
.align 3
.LC20:
.string "ip6gretap0"
.align 3
.LC0:
.string "bridge"
.align 3
.LC21:
.string "bridge0"
.align 3
.LC22:
.string "vcan"
.align 3
.LC23:
.string "vcan0"
.align 3
.LC1:
.string "bond"
.align 3
.LC24:
.string "bond0"
.align 3
.LC2:
.string "team"
.align 3
.LC25:
.string "team0"
.align 3
.LC26:
.string "dummy"
.align 3
.LC27:
.string "dummy0"
.align 3
.LC28:
.string "nlmon"
.align 3
.LC29:
.string "nlmon0"
.align 3
.LC30:
.string "caif"
.align 3
.LC31:
.string "caif0"
.align 3
.LC32:
.string "batadv"
.align 3
.LC33:
.string "batadv0"
.align 3
.LC34:
.string "vxcan"
.align 3
.LC35:
.string "vxcan1"
.align 3
.LC36:
.string "netdevsim"
.align 3
.LC38:
.string "lo"
.align 3
.LC39:
.string "sit0"
.align 3
.LC40:
.string "tunl0"
.align 3
.LC41:
.string "gre0"
.align 3
.LC42:
.string "gretap0"
.align 3
.LC43:
.string "ip_vti0"
.align 3
.LC44:
.string "ip6_vti0"
.align 3
.LC45:
.string "ip6tnl0"
.align 3
.LC46:
.string "ip6gre0"
.align 3
.LC47:
.string "erspan0"
.align 3
.LC48:
.string "veth0"
.align 3
.LC49:
.string "veth1"
.align 3
.LC50:
.string "veth0_to_bridge"
.align 3
.LC51:
.string "veth1_to_bridge"
.align 3
.LC52:
.string "veth0_to_bond"
.align 3
.LC53:
.string "veth1_to_bond"
.align 3
.LC54:
.string "veth0_to_team"
.align 3
.LC55:
.string "veth1_to_team"
.align 3
.LC56:
.string "veth0_to_hsr"
.align 3
.LC57:
.string "veth1_to_hsr"
.align 3
.LC58:
.string "hsr0"
.align 3
.LC59:
.string "%s_slave_0"
.align 3
.LC60:
.string "veth0_to_%s"
.align 3
.LC61:
.string "%s_slave_1"
.align 3
.LC62:
.string "veth1_to_%s"
.align 3
.LC63:
.string "%s0"
.align 3
.LC64:
.string "bridge_slave_0"
.align 3
.LC65:
.string "bridge_slave_1"
.align 3
.LC66:
.string "hsr_slave_0"
.align 3
.LC67:
.string "hsr_slave_1"
.align 3
.LC68:
.string "172.20.20.%d"
.align 3
.LC69:
.string "fe80::%02hx"
.text
.align 2
.type initialize_netdevices, %function
initialize_netdevices:
.LFB55:
.cfi_startproc
sub sp, sp, #944
.cfi_def_cfa_offset 944
stp x29, x30, [sp]
.cfi_offset 29, -944
.cfi_offset 30, -936
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 936]
mov x1, 0
adrp x0, procid
add x0, x0, :lo12:procid
ldr x0, [x0]
add x3, sp, 760
mov w2, w0
adrp x0, .LC18
add x1, x0, :lo12:.LC18
mov x0, x3
bl sprintf
adrp x0, .LC19
add x0, x0, :lo12:.LC19
str x0, [sp, 56]
adrp x0, .LC20
add x0, x0, :lo12:.LC20
str x0, [sp, 64]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
str x0, [sp, 72]
adrp x0, .LC21
add x0, x0, :lo12:.LC21
str x0, [sp, 80]
adrp x0, .LC22
add x0, x0, :lo12:.LC22
str x0, [sp, 88]
adrp x0, .LC23
add x0, x0, :lo12:.LC23
str x0, [sp, 96]
adrp x0, .LC1
add x0, x0, :lo12:.LC1
str x0, [sp, 104]
adrp x0, .LC24
add x0, x0, :lo12:.LC24
str x0, [sp, 112]
adrp x0, .LC2
add x0, x0, :lo12:.LC2
str x0, [sp, 120]
adrp x0, .LC25
add x0, x0, :lo12:.LC25
str x0, [sp, 128]
adrp x0, .LC26
add x0, x0, :lo12:.LC26
str x0, [sp, 136]
adrp x0, .LC27
add x0, x0, :lo12:.LC27
str x0, [sp, 144]
adrp x0, .LC28
add x0, x0, :lo12:.LC28
str x0, [sp, 152]
adrp x0, .LC29
add x0, x0, :lo12:.LC29
str x0, [sp, 160]
adrp x0, .LC30
add x0, x0, :lo12:.LC30
str x0, [sp, 168]
adrp x0, .LC31
add x0, x0, :lo12:.LC31
str x0, [sp, 176]
adrp x0, .LC32
add x0, x0, :lo12:.LC32
str x0, [sp, 184]
adrp x0, .LC33
add x0, x0, :lo12:.LC33
str x0, [sp, 192]
adrp x0, .LC34
add x0, x0, :lo12:.LC34
str x0, [sp, 200]
adrp x0, .LC35
add x0, x0, :lo12:.LC35
str x0, [sp, 208]
adrp x0, .LC36
add x0, x0, :lo12:.LC36
str x0, [sp, 216]
add x0, sp, 760
str x0, [sp, 224]
adrp x0, .LC5
add x0, x0, :lo12:.LC5
str x0, [sp, 232]
str xzr, [sp, 240]
adrp x0, .LC37
add x0, x0, :lo12:.LC37
add x2, sp, 32
mov x3, x0
ldp x0, x1, [x3]
stp x0, x1, [x2]
ldr x0, [x3, 16]
str x0, [x2, 16]
add x0, sp, 248
mov x1, 512
mov x2, x1
mov w1, 0
bl memset
adrp x0, .LC38
add x0, x0, :lo12:.LC38
str x0, [sp, 248]
mov w0, 6
str w0, [sp, 256]
adrp x0, .LC39
add x0, x0, :lo12:.LC39
str x0, [sp, 264]
adrp x0, .LC21
add x0, x0, :lo12:.LC21
str x0, [sp, 280]
mov w0, 6
str w0, [sp, 288]
adrp x0, .LC23
add x0, x0, :lo12:.LC23
str x0, [sp, 296]
mov w0, 1
strb w0, [sp, 308]
adrp x0, .LC40
add x0, x0, :lo12:.LC40
str x0, [sp, 312]
adrp x0, .LC41
add x0, x0, :lo12:.LC41
str x0, [sp, 328]
adrp x0, .LC42
add x0, x0, :lo12:.LC42
str x0, [sp, 344]
mov w0, 6
str w0, [sp, 352]
adrp x0, .LC43
add x0, x0, :lo12:.LC43
str x0, [sp, 360]
adrp x0, .LC44
add x0, x0, :lo12:.LC44
str x0, [sp, 376]
adrp x0, .LC45
add x0, x0, :lo12:.LC45
str x0, [sp, 392]
adrp x0, .LC46
add x0, x0, :lo12:.LC46
str x0, [sp, 408]
adrp x0, .LC20
add x0, x0, :lo12:.LC20
str x0, [sp, 424]
mov w0, 6
str w0, [sp, 432]
adrp x0, .LC47
add x0, x0, :lo12:.LC47
str x0, [sp, 440]
mov w0, 6
str w0, [sp, 448]
adrp x0, .LC24
add x0, x0, :lo12:.LC24
str x0, [sp, 456]
mov w0, 6
str w0, [sp, 464]
adrp x0, .LC48
add x0, x0, :lo12:.LC48
str x0, [sp, 472]
mov w0, 6
str w0, [sp, 480]
adrp x0, .LC49
add x0, x0, :lo12:.LC49
str x0, [sp, 488]
mov w0, 6
str w0, [sp, 496]
adrp x0, .LC25
add x0, x0, :lo12:.LC25
str x0, [sp, 504]
mov w0, 6
str w0, [sp, 512]
adrp x0, .LC50
add x0, x0, :lo12:.LC50
str x0, [sp, 520]
mov w0, 6
str w0, [sp, 528]
adrp x0, .LC51
add x0, x0, :lo12:.LC51
str x0, [sp, 536]
mov w0, 6
str w0, [sp, 544]
adrp x0, .LC52
add x0, x0, :lo12:.LC52
str x0, [sp, 552]
mov w0, 6
str w0, [sp, 560]
adrp x0, .LC53
add x0, x0, :lo12:.LC53
str x0, [sp, 568]
mov w0, 6
str w0, [sp, 576]
adrp x0, .LC54
add x0, x0, :lo12:.LC54
str x0, [sp, 584]
mov w0, 6
str w0, [sp, 592]
adrp x0, .LC55
add x0, x0, :lo12:.LC55
str x0, [sp, 600]
mov w0, 6
str w0, [sp, 608]
adrp x0, .LC56
add x0, x0, :lo12:.LC56
str x0, [sp, 616]
mov w0, 6
str w0, [sp, 624]
adrp x0, .LC57
add x0, x0, :lo12:.LC57
str x0, [sp, 632]
mov w0, 6
str w0, [sp, 640]
adrp x0, .LC58
add x0, x0, :lo12:.LC58
str x0, [sp, 648]
adrp x0, .LC27
add x0, x0, :lo12:.LC27
str x0, [sp, 664]
mov w0, 6
str w0, [sp, 672]
adrp x0, .LC29
add x0, x0, :lo12:.LC29
str x0, [sp, 680]
adrp x0, .LC35
add x0, x0, :lo12:.LC35
str x0, [sp, 696]
mov w0, 1
strb w0, [sp, 708]
adrp x0, .LC31
add x0, x0, :lo12:.LC31
str x0, [sp, 712]
mov w0, 6
str w0, [sp, 720]
adrp x0, .LC33
add x0, x0, :lo12:.LC33
str x0, [sp, 728]
mov w0, 6
str w0, [sp, 736]
add x0, sp, 760
str x0, [sp, 744]
mov w0, 6
str w0, [sp, 752]
mov w2, 0
mov w1, 3
mov w0, 16
bl socket
str w0, [sp, 20]
ldr w0, [sp, 20]
cmn w0, #1
bne .L71
mov w0, 1
bl exit
.L71:
str wzr, [sp, 16]
b .L72
.L73:
ldr w0, [sp, 16]
lsl x0, x0, 4
add x1, sp, 56
ldr x3, [x1, x0]
ldr w0, [sp, 16]
lsl x0, x0, 4
add x1, sp, 64
ldr x0, [x1, x0]
mov x2, x0
mov x1, x3
ldr w0, [sp, 20]
bl netlink_add_device
ldr w0, [sp, 16]
add w0, w0, 1
str w0, [sp, 16]
.L72:
ldr w0, [sp, 16]
cmp w0, 11
bls .L73
str wzr, [sp, 16]
b .L74
.L75:
ldr w0, [sp, 16]
lsl x0, x0, 3
add x1, sp, 32
ldr x0, [x1, x0]
add x3, sp, 808
mov x2, x0
adrp x0, .LC59
add x1, x0, :lo12:.LC59
mov x0, x3
bl sprintf
ldr w0, [sp, 16]
lsl x0, x0, 3
add x1, sp, 32
ldr x0, [x1, x0]
add x3, sp, 840
mov x2, x0
adrp x0, .LC60
add x1, x0, :lo12:.LC60
mov x0, x3
bl sprintf
add x1, sp, 840
add x0, sp, 808
mov x2, x1
mov x1, x0
ldr w0, [sp, 20]
bl netlink_add_veth
ldr w0, [sp, 16]
lsl x0, x0, 3
add x1, sp, 32
ldr x0, [x1, x0]
add x3, sp, 872
mov x2, x0
adrp x0, .LC61
add x1, x0, :lo12:.LC61
mov x0, x3
bl sprintf
ldr w0, [sp, 16]
lsl x0, x0, 3
add x1, sp, 32
ldr x0, [x1, x0]
add x3, sp, 904
mov x2, x0
adrp x0, .LC62
add x1, x0, :lo12:.LC62
mov x0, x3
bl sprintf
add x1, sp, 904
add x0, sp, 872
mov x2, x1
mov x1, x0
ldr w0, [sp, 20]
bl netlink_add_veth
ldr w0, [sp, 16]
lsl x0, x0, 3
add x1, sp, 32
ldr x0, [x1, x0]
add x3, sp, 776
mov x2, x0
adrp x0, .LC63
add x1, x0, :lo12:.LC63
mov x0, x3
bl sprintf
add x1, sp, 776
add x0, sp, 808
mov w5, 0
mov x4, 0
mov x3, x1
mov w2, 0
mov x1, x0
ldr w0, [sp, 20]
bl netlink_device_change
add x1, sp, 776
add x0, sp, 872
mov w5, 0
mov x4, 0
mov x3, x1
mov w2, 0
mov x1, x0
ldr w0, [sp, 20]
bl netlink_device_change
ldr w0, [sp, 16]
add w0, w0, 1
str w0, [sp, 16]
.L74:
ldr w0, [sp, 16]
cmp w0, 2
bls .L75
mov w5, 0
mov x4, 0
mov x3, 0
mov w2, 1
adrp x0, .LC64
add x1, x0, :lo12:.LC64
ldr w0, [sp, 20]
bl netlink_device_change
mov w5, 0
mov x4, 0
mov x3, 0
mov w2, 1
adrp x0, .LC65
add x1, x0, :lo12:.LC65
ldr w0, [sp, 20]
bl netlink_device_change
adrp x0, .LC56
add x2, x0, :lo12:.LC56
adrp x0, .LC66
add x1, x0, :lo12:.LC66
ldr w0, [sp, 20]
bl netlink_add_veth
adrp x0, .LC57
add x2, x0, :lo12:.LC57
adrp x0, .LC67
add x1, x0, :lo12:.LC67
ldr w0, [sp, 20]
bl netlink_add_veth
adrp x0, .LC67
add x3, x0, :lo12:.LC67
adrp x0, .LC66
add x2, x0, :lo12:.LC66
adrp x0, .LC58
add x1, x0, :lo12:.LC58
ldr w0, [sp, 20]
bl netlink_add_hsr
mov w5, 0
mov x4, 0
mov x3, 0
mov w2, 1
adrp x0, .LC66
add x1, x0, :lo12:.LC66
ldr w0, [sp, 20]
bl netlink_device_change
mov w5, 0
mov x4, 0
mov x3, 0
mov w2, 1
adrp x0, .LC67
add x1, x0, :lo12:.LC67
ldr w0, [sp, 20]
bl netlink_device_change
str wzr, [sp, 16]
b .L76
.L78:
ldr w0, [sp, 16]
add w0, w0, 10
add x3, sp, 904
mov w2, w0
adrp x0, .LC68
add x1, x0, :lo12:.LC68
mov x0, x3
bl sprintf
ldr w0, [sp, 16]
lsl x0, x0, 4
add x1, sp, 248
ldr x0, [x1, x0]
add x1, sp, 904
mov x2, x1
mov x1, x0
ldr w0, [sp, 20]
bl netlink_add_addr4
ldr w0, [sp, 16]
lsl x0, x0, 4
add x1, sp, 260
ldrb w0, [x1, x0]
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L77
ldr w0, [sp, 16]
add w0, w0, 10
add x3, sp, 904
mov w2, w0
adrp x0, .LC69
add x1, x0, :lo12:.LC69
mov x0, x3
bl sprintf
ldr w0, [sp, 16]
lsl x0, x0, 4
add x1, sp, 248
ldr x0, [x1, x0]
add x1, sp, 904
mov x2, x1
mov x1, x0
ldr w0, [sp, 20]
bl netlink_add_addr6
.L77:
ldr w0, [sp, 16]
add x0, x0, 10
lsl x1, x0, 40
mov w0, 2863311530
movk x0, 0xaa, lsl 32
add x0, x1, x0
str x0, [sp, 24]
ldr w0, [sp, 16]
lsl x0, x0, 4
add x1, sp, 248
ldr x6, [x1, x0]
ldr w0, [sp, 16]
lsl x0, x0, 4
add x1, sp, 256
ldr w1, [x1, x0]
add x0, sp, 24
mov w5, w1
mov x4, x0
mov x3, 0
mov w2, 1
mov x1, x6
ldr w0, [sp, 20]
bl netlink_device_change
ldr w0, [sp, 16]
add w0, w0, 1
str w0, [sp, 16]
.L76:
ldr w0, [sp, 16]
cmp w0, 31
bls .L78
ldr w0, [sp, 20]
bl close
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 936]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L79
bl __stack_chk_fail
.L79:
ldp x29, x30, [sp]
add sp, sp, 944
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE55:
.size initialize_netdevices, .-initialize_netdevices
.data
.align 3
.LC37:
.xword .LC0
.xword .LC1
.xword .LC2
.text
.section .rodata
.align 3
.LC70:
.string "nr"
.align 3
.LC71:
.string "rose"
.align 3
.LC72:
.string "%s%d"
.align 3
.LC73:
.string "172.30.%d.%d"
.align 3
.LC74:
.string "fe88::%02hx:%02hx"
.text
.align 2
.type initialize_netdevices_init, %function
initialize_netdevices_init:
.LFB56:
.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
mov w2, 0
mov w1, 3
mov w0, 16
bl socket
str w0, [sp, 24]
ldr w0, [sp, 24]
cmn w0, #1
bne .L81
mov w0, 1
bl exit
.L81:
stp xzr, xzr, [sp, 40]
stp xzr, xzr, [sp, 56]
adrp x0, .LC70
add x0, x0, :lo12:.LC70
str x0, [sp, 40]
mov w0, 7
str w0, [sp, 48]
mov w0, 1
strb w0, [sp, 52]
adrp x0, .LC71
add x0, x0, :lo12:.LC71
str x0, [sp, 56]
mov w0, 5
str w0, [sp, 64]
mov w0, 1
strb w0, [sp, 68]
mov w0, 1
strb w0, [sp, 69]
str wzr, [sp, 20]
b .L82
.L84:
ldr w0, [sp, 20]
lsl x0, x0, 4
add x1, sp, 40
ldr x1, [x1, x0]
adrp x0, procid
add x0, x0, :lo12:procid
ldr x0, [x0]
add x4, sp, 72
mov w3, w0
mov x2, x1
adrp x0, .LC72
add x1, x0, :lo12:.LC72
mov x0, x4
bl sprintf
adrp x0, procid
add x0, x0, :lo12:procid
ldr x0, [x0]
add w0, w0, 1
add x4, sp, 104
mov w3, w0
ldr w2, [sp, 20]
adrp x0, .LC73
add x1, x0, :lo12:.LC73
mov x0, x4
bl sprintf
add x1, sp, 104
add x0, sp, 72
mov x2, x1
mov x1, x0
ldr w0, [sp, 24]
bl netlink_add_addr4
ldr w0, [sp, 20]
lsl x0, x0, 4
add x1, sp, 52
ldrb w0, [x1, x0]
eor w0, w0, 1
and w0, w0, 255
cmp w0, 0
beq .L83
adrp x0, procid
add x0, x0, :lo12:procid
ldr x0, [x0]
add w0, w0, 1
add x4, sp, 104
mov w3, w0
ldr w2, [sp, 20]
adrp x0, .LC74
add x1, x0, :lo12:.LC74
mov x0, x4
bl sprintf
add x1, sp, 104
add x0, sp, 72
mov x2, x1
mov x1, x0
ldr w0, [sp, 24]
bl netlink_add_addr6
.L83:
ldr w0, [sp, 20]
lsl x0, x0, 4
add x1, sp, 48
ldr w0, [x1, x0]
str w0, [sp, 28]
ldr w1, [sp, 20]
ldr w0, [sp, 28]
sub w0, w0, #2
lsl w0, w0, 3
lsl x1, x1, x0
adrp x0, procid
add x0, x0, :lo12:procid
ldr x2, [x0]
ldr w0, [sp, 28]
sub w0, w0, #1
lsl w0, w0, 3
lsl x0, x2, x0
add x1, x1, x0
mov x0, 48059
movk x0, 0xbb, lsl 16
add x0, x1, x0
str x0, [sp, 32]
ldr w0, [sp, 20]
lsl x0, x0, 4
add x1, sp, 53
ldrb w0, [x1, x0]
cmp w0, 0
cset w0, ne
and w0, w0, 255
eor w0, w0, 1
and w0, w0, 255
and w0, w0, 1
and w2, w0, 255
add x1, sp, 32
add x0, sp, 72
ldr w5, [sp, 28]
mov x4, x1
mov x3, 0
mov x1, x0
ldr w0, [sp, 24]
bl netlink_device_change
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
.L82:
ldr w0, [sp, 20]
cmp w0, 1
bls .L84
ldr w0, [sp, 24]
bl close
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 .L85
bl __stack_chk_fail
.L85:
ldp x29, x30, [sp], 144
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE56:
.size initialize_netdevices_init, .-initialize_netdevices_init
.align 2
.type read_tun, %function
read_tun:
.LFB57:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str x0, [sp, 24]
str w1, [sp, 20]
adrp x0, tunfd
add x0, x0, :lo12:tunfd
ldr w0, [x0]
cmp w0, 0
bge .L87
mov w0, -1
b .L88
.L87:
adrp x0, tunfd
add x0, x0, :lo12:tunfd
ldr w0, [x0]
ldrsw x1, [sp, 20]
mov x2, x1
ldr x1, [sp, 24]
bl read
str w0, [sp, 44]
ldr w0, [sp, 44]
cmp w0, 0
bge .L89
bl __errno_location
ldr w0, [x0]
cmp w0, 11
bne .L90
mov w0, -1
b .L88
.L90:
bl __errno_location
ldr w0, [x0]
cmp w0, 77
bne .L91
mov w0, -1
b .L88
.L91:
mov w0, 1
bl exit
.L89:
ldr w0, [sp, 44]
.L88:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE57:
.size read_tun, .-read_tun
.align 2
.type flush_tun, %function
flush_tun:
.LFB58:
.cfi_startproc
sub sp, sp, #1024
.cfi_def_cfa_offset 1024
stp x29, x30, [sp]
.cfi_offset 29, -1024
.cfi_offset 30, -1016
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 1016]
mov x1, 0
nop
.L93:
add x0, sp, 16
mov w1, 1000
bl read_tun
cmn w0, #1
bne .L93
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 1016]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L94
bl __stack_chk_fail
.L94:
ldp x29, x30, [sp]
add sp, sp, 1024
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE58:
.size flush_tun, .-flush_tun
.section .rodata
.align 3
.LC75:
.string "char"
.align 3
.LC76:
.string "block"
.align 3
.LC77:
.string "/dev/%s/%d:%d"
.global __aarch64_ldadd4_acq_rel
.text
.align 2
.type syz_open_dev, %function
syz_open_dev:
.LFB59:
.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, 40]
str x1, [sp, 32]
str x2, [sp, 24]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 1208]
mov x1, 0
ldr x0, [sp, 40]
cmp x0, 12
beq .L96
ldr x0, [sp, 40]
cmp x0, 11
bne .L97
.L96:
ldr x0, [sp, 40]
cmp x0, 12
bne .L98
adrp x0, .LC75
add x0, x0, :lo12:.LC75
b .L99
.L98:
adrp x0, .LC76
add x0, x0, :lo12:.LC76
.L99:
ldr x1, [sp, 32]
and w1, w1, 255
mov w2, w1
ldr x1, [sp, 24]
and w1, w1, 255
add x5, sp, 56
mov w4, w1
mov w3, w2
mov x2, x0
adrp x0, .LC77
add x1, x0, :lo12:.LC77
mov x0, x5
bl sprintf
add x0, sp, 56
mov w2, 0
mov w1, 2
bl open
sxtw x0, w0
b .L100
.L97:
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:skip_segv, lsl #12
add x0, x0, #:tprel_lo12_nc:skip_segv
mov x1, x0
mov w0, 1
bl __aarch64_ldadd4_acq_rel
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:segv_env, lsl #12
add x0, x0, #:tprel_lo12_nc:segv_env
bl _setjmp
cmp w0, 0
bne .L102
ldr x1, [sp, 40]
add x0, sp, 184
mov x2, 1023
bl strncpy
.L102:
mrs x0, tpidr_el0
add x1, x0, #:tprel_hi12:skip_segv, lsl #12
add x1, x1, #:tprel_lo12_nc:skip_segv
mov w0, 1
neg w0, w0
bl __aarch64_ldadd4_acq_rel
strb wzr, [sp, 1207]
b .L103
.L104:
ldr x1, [sp, 32]
mov x0, 7378697629483820646
movk x0, 0x6667, lsl 0
smulh x0, x1, x0
asr x2, x0, 2
asr x0, x1, 63
sub x2, x2, x0
mov x0, x2
lsl x0, x0, 2
add x0, x0, x2
lsl x0, x0, 1
sub x2, x1, x0
and w0, w2, 255
add w0, w0, 48
and w1, w0, 255
ldr x0, [sp, 48]
strb w1, [x0]
ldr x0, [sp, 32]
mov x1, 7378697629483820646
movk x1, 0x6667, lsl 0
smulh x1, x0, x1
asr x1, x1, 2
asr x0, x0, 63
sub x0, x1, x0
str x0, [sp, 32]
.L103:
add x0, sp, 184
mov w1, 35
bl strchr
str x0, [sp, 48]
ldr x0, [sp, 48]
cmp x0, 0
bne .L104
ldr x0, [sp, 24]
mov w1, w0
add x0, sp, 184
mov w2, 0
bl open
sxtw x0, w0
.L100:
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 .L105
bl __stack_chk_fail
.L105:
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
.LFE59:
.size syz_open_dev, .-syz_open_dev
.section .rodata
.align 3
.LC78:
.string "filter"
.align 3
.LC79:
.string "nat"
.align 3
.LC80:
.string "mangle"
.align 3
.LC81:
.string "raw"
.align 3
.LC82:
.string "security"
.section .data.rel.local,"aw"
.align 3
.type ipv4_tables, %object
.size ipv4_tables, 8640
ipv4_tables:
.xword .LC78
.zero 1720
.xword .LC79
.zero 1720
.xword .LC80
.zero 1720
.xword .LC81
.zero 1720
.xword .LC82
.zero 1720
.align 3
.type ipv6_tables, %object
.size ipv6_tables, 8640
ipv6_tables:
.xword .LC78
.zero 1720
.xword .LC79
.zero 1720
.xword .LC80
.zero 1720
.xword .LC81
.zero 1720
.xword .LC82
.zero 1720
.align 3
.type arpt_tables, %object
.size arpt_tables, 1696
arpt_tables:
.xword .LC78
.zero 1688
.text
.align 2
.type checkpoint_iptables, %function
checkpoint_iptables:
.LFB60:
.cfi_startproc
sub sp, sp, #1664
.cfi_def_cfa_offset 1664
stp x29, x30, [sp]
.cfi_offset 29, -1664
.cfi_offset 30, -1656
mov x29, sp
str x0, [sp, 40]
str w1, [sp, 36]
str w2, [sp, 32]
str w3, [sp, 28]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 1656]
mov x1, 0
mov w2, 6
mov w1, 1
ldr w0, [sp, 32]
bl socket
str w0, [sp, 68]
ldr w0, [sp, 68]
cmn w0, #1
bne .L107
bl __errno_location
ldr w0, [x0]
cmp w0, 92
beq .L122
cmp w0, 97
beq .L122
mov w0, 1
bl exit
.L107:
str wzr, [sp, 64]
b .L111
.L120:
ldrsw x1, [sp, 64]
mov x0, x1
lsl x0, x0, 3
sub x0, x0, x1
lsl x0, x0, 2
sub x0, x0, x1
lsl x0, x0, 6
mov x1, x0
ldr x0, [sp, 40]
add x0, x0, x1
str x0, [sp, 72]
ldr x0, [sp, 72]
add x2, x0, 8
ldr x0, [sp, 72]
ldr x0, [x0]
mov x1, x0
mov x0, x2
bl strcpy
ldr x0, [sp, 72]
add x2, x0, 96
ldr x0, [sp, 72]
ldr x0, [x0]
mov x1, x0
mov x0, x2
bl strcpy
mov w0, 84
str w0, [sp, 60]
ldr x0, [sp, 72]
add x0, x0, 8
add x1, sp, 60
mov x4, x1
mov x3, x0
mov w2, 64
ldr w1, [sp, 28]
ldr w0, [sp, 68]
bl getsockopt
cmp w0, 0
beq .L112
bl __errno_location
ldr w0, [x0]
cmp w0, 2
bgt .L113
cmp w0, 0
bgt .L123
b .L115
.L113:
cmp w0, 92
beq .L123
.L115:
mov w0, 1
bl exit
.L112:
ldr x0, [sp, 72]
ldr w0, [x0, 88]
cmp w0, 1536
bls .L117
mov w0, 1
bl exit
.L117:
ldr x0, [sp, 72]
ldr w0, [x0, 84]
cmp w0, 10
bls .L118
mov w0, 1
bl exit
.L118:
add x0, sp, 80
mov x2, 1576
mov w1, 0
bl memset
ldr x0, [sp, 72]
ldr x1, [x0]
add x0, sp, 80
bl strcpy
ldr x0, [sp, 72]
ldr w0, [x0, 88]
str w0, [sp, 112]
ldr x0, [sp, 72]
ldr w0, [x0, 88]
add w0, w0, 40
str w0, [sp, 60]
add x1, sp, 60
add x0, sp, 80
mov x4, x1
mov x3, x0
mov w2, 65
ldr w1, [sp, 28]
ldr w0, [sp, 68]
bl getsockopt
cmp w0, 0
beq .L119
mov w0, 1
bl exit
.L119:
ldr x0, [sp, 72]
ldr w1, [x0, 40]
ldr x0, [sp, 72]
str w1, [x0, 128]
ldr x0, [sp, 72]
ldr w1, [x0, 84]
ldr x0, [sp, 72]
str w1, [x0, 132]
ldr x0, [sp, 72]
ldr w1, [x0, 88]
ldr x0, [sp, 72]
str w1, [x0, 136]
ldr x0, [sp, 72]
add x3, x0, 140
ldr x0, [sp, 72]
add x0, x0, 44
mov x2, 20
mov x1, x0
mov x0, x3
bl memcpy
ldr x0, [sp, 72]
add x3, x0, 160
ldr x0, [sp, 72]
add x0, x0, 64
mov x2, 20
mov x1, x0
mov x0, x3
bl memcpy
ldr x0, [sp, 72]
add x3, x0, 192
ldr x0, [sp, 72]
ldr w0, [x0, 88]
uxtw x1, w0
add x0, sp, 80
add x0, x0, 40
mov x2, x1
mov x1, x0
mov x0, x3
bl memcpy
b .L116
.L123:
nop
.L116:
ldr w0, [sp, 64]
add w0, w0, 1
str w0, [sp, 64]
.L111:
ldr w1, [sp, 64]
ldr w0, [sp, 36]
cmp w1, w0
blt .L120
ldr w0, [sp, 68]
bl close
b .L106
.L122:
nop
.L106:
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 1656]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L121
bl __stack_chk_fail
.L121:
ldp x29, x30, [sp]
add sp, sp, 1664
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE60:
.size checkpoint_iptables, .-checkpoint_iptables
.align 2
.type reset_iptables, %function
reset_iptables:
.LFB61:
.cfi_startproc
sub sp, sp, #1904
.cfi_def_cfa_offset 1904
stp x29, x30, [sp]
.cfi_offset 29, -1904
.cfi_offset 30, -1896
mov x29, sp
str x0, [sp, 40]
str w1, [sp, 36]
str w2, [sp, 32]
str w3, [sp, 28]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 1896]
mov x1, 0
mov w2, 6
mov w1, 1
ldr w0, [sp, 32]
bl socket
str w0, [sp, 60]
ldr w0, [sp, 60]
cmn w0, #1
bne .L125
bl __errno_location
ldr w0, [x0]
cmp w0, 92
beq .L137
cmp w0, 97
beq .L137
mov w0, 1
bl exit
.L125:
str wzr, [sp, 56]
b .L129
.L135:
ldrsw x1, [sp, 56]
mov x0, x1
lsl x0, x0, 3
sub x0, x0, x1
lsl x0, x0, 2
sub x0, x0, x1
lsl x0, x0, 6
mov x1, x0
ldr x0, [sp, 40]
add x0, x0, x1
str x0, [sp, 64]
ldr x0, [sp, 64]
ldr w0, [x0, 40]
cmp w0, 0
beq .L138
add x0, sp, 72
mov x2, 84
mov w1, 0
bl memset
ldr x0, [sp, 64]
ldr x1, [x0]
add x0, sp, 72
bl strcpy
mov w0, 84
str w0, [sp, 52]
add x1, sp, 52
add x0, sp, 72
mov x4, x1
mov x3, x0
mov w2, 64
ldr w1, [sp, 28]
ldr w0, [sp, 60]
bl getsockopt
cmp w0, 0
beq .L132
mov w0, 1
bl exit
.L132:
ldr x0, [sp, 64]
add x0, x0, 8
add x1, sp, 72
mov x2, 84
bl memcmp
cmp w0, 0
bne .L133
add x0, sp, 320
mov x2, 1576
mov w1, 0
bl memset
ldr x0, [sp, 64]
ldr x1, [x0]
add x0, sp, 320
bl strcpy
ldr x0, [sp, 64]
ldr w0, [x0, 88]
str w0, [sp, 352]
ldr w0, [sp, 352]
add w0, w0, 40
str w0, [sp, 52]
add x1, sp, 52
add x0, sp, 320
mov x4, x1
mov x3, x0
mov w2, 65
ldr w1, [sp, 28]
ldr w0, [sp, 60]
bl getsockopt
cmp w0, 0
beq .L134
mov w0, 1
bl exit
.L134:
ldr x0, [sp, 64]
add x3, x0, 192
ldr x0, [sp, 64]
ldr w0, [x0, 88]
uxtw x1, w0
add x0, sp, 320
add x0, x0, 40
mov x2, x1
mov x1, x0
mov x0, x3
bl memcmp
cmp w0, 0
beq .L139
.L133:
ldr w1, [sp, 148]
ldr x0, [sp, 64]
str w1, [x0, 180]
ldr x0, [sp, 64]
add x1, sp, 160
str x1, [x0, 184]
ldr x0, [sp, 64]
ldr w0, [x0, 136]
add w0, w0, 96
str w0, [sp, 52]
ldr x0, [sp, 64]
add x0, x0, 96
ldr w1, [sp, 52]
mov w4, w1
mov x3, x0
mov w2, 64
ldr w1, [sp, 28]
ldr w0, [sp, 60]
bl setsockopt
cmp w0, 0
beq .L131
mov w0, 1
bl exit
.L138:
nop
b .L131
.L139:
nop
.L131:
ldr w0, [sp, 56]
add w0, w0, 1
str w0, [sp, 56]
.L129:
ldr w1, [sp, 56]
ldr w0, [sp, 36]
cmp w1, w0
blt .L135
ldr w0, [sp, 60]
bl close
b .L124
.L137:
nop
.L124:
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 1896]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L136
bl __stack_chk_fail
.L136:
ldp x29, x30, [sp]
add sp, sp, 1904
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE61:
.size reset_iptables, .-reset_iptables
.align 2
.type checkpoint_arptables, %function
checkpoint_arptables:
.LFB62:
.cfi_startproc
sub sp, sp, #1632
.cfi_def_cfa_offset 1632
stp x29, x30, [sp]
.cfi_offset 29, -1632
.cfi_offset 30, -1624
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 1624]
mov x1, 0
mov w2, 6
mov w1, 1
mov w0, 2
bl socket
str w0, [sp, 36]
ldr w0, [sp, 36]
cmn w0, #1
bne .L141
bl __errno_location
ldr w0, [x0]
cmp w0, 92
beq .L156
cmp w0, 97
beq .L156
mov w0, 1
bl exit
.L141:
str wzr, [sp, 32]
b .L145
.L154:
ldr w1, [sp, 32]
mov x0, 1696
mul x1, x1, x0
adrp x0, arpt_tables
add x0, x0, :lo12:arpt_tables
add x0, x1, x0
str x0, [sp, 40]
ldr x0, [sp, 40]
add x2, x0, 8
ldr x0, [sp, 40]
ldr x0, [x0]
mov x1, x0
mov x0, x2
bl strcpy
ldr x0, [sp, 40]
add x2, x0, 80
ldr x0, [sp, 40]
ldr x0, [x0]
mov x1, x0
mov x0, x2
bl strcpy
mov w0, 68
str w0, [sp, 28]
ldr x0, [sp, 40]
add x0, x0, 8
add x1, sp, 28
mov x4, x1
mov x3, x0
mov w2, 96
mov w1, 0
ldr w0, [sp, 36]
bl getsockopt
cmp w0, 0
beq .L146
bl __errno_location
ldr w0, [x0]
cmp w0, 2
bgt .L147
cmp w0, 0
bgt .L157
b .L149
.L147:
cmp w0, 92
beq .L157
.L149:
mov w0, 1
bl exit
.L146:
ldr x0, [sp, 40]
ldr w0, [x0, 72]
cmp w0, 1536
bls .L151
mov w0, 1
bl exit
.L151:
ldr x0, [sp, 40]
ldr w0, [x0, 68]
cmp w0, 10
bls .L152
mov w0, 1
bl exit
.L152:
add x0, sp, 48
mov x2, 1576
mov w1, 0
bl memset
ldr x0, [sp, 40]
ldr x1, [x0]
add x0, sp, 48
bl strcpy
ldr x0, [sp, 40]
ldr w0, [x0, 72]
str w0, [sp, 80]
ldr x0, [sp, 40]
ldr w0, [x0, 72]
add w0, w0, 40
str w0, [sp, 28]
add x1, sp, 28
add x0, sp, 48
mov x4, x1
mov x3, x0
mov w2, 97
mov w1, 0
ldr w0, [sp, 36]
bl getsockopt
cmp w0, 0
beq .L153
mov w0, 1
bl exit
.L153:
ldr x0, [sp, 40]
ldr w1, [x0, 40]
ldr x0, [sp, 40]
str w1, [x0, 112]
ldr x0, [sp, 40]
ldr w1, [x0, 68]
ldr x0, [sp, 40]
str w1, [x0, 116]
ldr x0, [sp, 40]
ldr w1, [x0, 72]
ldr x0, [sp, 40]
str w1, [x0, 120]
ldr x0, [sp, 40]
add x3, x0, 124
ldr x0, [sp, 40]
add x0, x0, 44
mov x2, 12
mov x1, x0
mov x0, x3
bl memcpy
ldr x0, [sp, 40]
add x3, x0, 136
ldr x0, [sp, 40]
add x0, x0, 56
mov x2, 12
mov x1, x0
mov x0, x3
bl memcpy
ldr x0, [sp, 40]
add x3, x0, 160
ldr x0, [sp, 40]
ldr w0, [x0, 72]
uxtw x1, w0
add x0, sp, 48
add x0, x0, 40
mov x2, x1
mov x1, x0
mov x0, x3
bl memcpy
b .L150
.L157:
nop
.L150:
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L145:
ldr w0, [sp, 32]
cmp w0, 0
beq .L154
ldr w0, [sp, 36]
bl close
b .L140
.L156:
nop
.L140:
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 1624]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L155
bl __stack_chk_fail
.L155:
ldp x29, x30, [sp]
add sp, sp, 1632
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE62:
.size checkpoint_arptables, .-checkpoint_arptables
.align 2
.type reset_arptables, %function
reset_arptables:
.LFB63:
.cfi_startproc
sub sp, sp, #1856
.cfi_def_cfa_offset 1856
stp x29, x30, [sp]
.cfi_offset 29, -1856
.cfi_offset 30, -1848
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 1848]
mov x1, 0
mov w2, 6
mov w1, 1
mov w0, 2
bl socket
str w0, [sp, 28]
ldr w0, [sp, 28]
cmn w0, #1
bne .L159
bl __errno_location
ldr w0, [x0]
cmp w0, 92
beq .L171
cmp w0, 97
beq .L171
mov w0, 1
bl exit
.L159:
str wzr, [sp, 24]
b .L163
.L169:
ldr w1, [sp, 24]
mov x0, 1696
mul x1, x1, x0
adrp x0, arpt_tables
add x0, x0, :lo12:arpt_tables
add x0, x1, x0
str x0, [sp, 32]
ldr x0, [sp, 32]
ldr w0, [x0, 40]
cmp w0, 0
beq .L172
add x0, sp, 40
mov x2, 68
mov w1, 0
bl memset
ldr x0, [sp, 32]
ldr x1, [x0]
add x0, sp, 40
bl strcpy
mov w0, 68
str w0, [sp, 20]
add x1, sp, 20
add x0, sp, 40
mov x4, x1
mov x3, x0
mov w2, 96
mov w1, 0
ldr w0, [sp, 28]
bl getsockopt
cmp w0, 0
beq .L166
mov w0, 1
bl exit
.L166:
ldr x0, [sp, 32]
add x0, x0, 8
add x1, sp, 40
mov x2, 68
bl memcmp
cmp w0, 0
bne .L167
add x0, sp, 272
mov x2, 1576
mov w1, 0
bl memset
ldr x0, [sp, 32]
ldr x1, [x0]
add x0, sp, 272
bl strcpy
ldr x0, [sp, 32]
ldr w0, [x0, 72]
str w0, [sp, 304]
ldr w0, [sp, 304]
add w0, w0, 40
str w0, [sp, 20]
add x1, sp, 20
add x0, sp, 272
mov x4, x1
mov x3, x0
mov w2, 97
mov w1, 0
ldr w0, [sp, 28]
bl getsockopt
cmp w0, 0
beq .L168
mov w0, 1
bl exit
.L168:
ldr x0, [sp, 32]
add x3, x0, 160
ldr x0, [sp, 32]
ldr w0, [x0, 72]
uxtw x1, w0
add x0, sp, 272
add x0, x0, 40
mov x2, x1
mov x1, x0
mov x0, x3
bl memcmp
cmp w0, 0
beq .L173
.L167:
ldr w1, [sp, 100]
ldr x0, [sp, 32]
str w1, [x0, 148]
ldr x0, [sp, 32]
add x1, sp, 112
str x1, [x0, 152]
ldr x0, [sp, 32]
ldr w0, [x0, 120]
add w0, w0, 80
str w0, [sp, 20]
ldr x0, [sp, 32]
add x0, x0, 80
ldr w1, [sp, 20]
mov w4, w1
mov x3, x0
mov w2, 96
mov w1, 0
ldr w0, [sp, 28]
bl setsockopt
cmp w0, 0
beq .L165
mov w0, 1
bl exit
.L172:
nop
b .L165
.L173:
nop
.L165:
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L163:
ldr w0, [sp, 24]
cmp w0, 0
beq .L169
ldr w0, [sp, 28]
bl close
b .L158
.L171:
nop
.L158:
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 1848]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L170
bl __stack_chk_fail
.L170:
ldp x29, x30, [sp]
add sp, sp, 1856
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE63:
.size reset_arptables, .-reset_arptables
.section .rodata
.align 3
.LC83:
.string "broute"
.section .data.rel.local
.align 3
.type ebt_tables, %object
.size ebt_tables, 4992
ebt_tables:
.xword .LC78
.zero 1656
.xword .LC79
.zero 1656
.xword .LC83
.zero 1656
.text
.align 2
.type checkpoint_ebtables, %function
checkpoint_ebtables:
.LFB64:
.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 w2, 6
mov w1, 1
mov w0, 2
bl socket
str w0, [sp, 28]
ldr w0, [sp, 28]
cmn w0, #1
bne .L175
bl __errno_location
ldr w0, [x0]
cmp w0, 92
beq .L188
cmp w0, 97
beq .L188
mov w0, 1
bl exit
.L175:
str wzr, [sp, 24]
b .L179
.L186:
ldr w1, [sp, 24]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 7
adrp x1, ebt_tables
add x1, x1, :lo12:ebt_tables
add x0, x0, x1
str x0, [sp, 32]
ldr x0, [sp, 32]
add x2, x0, 8
ldr x0, [sp, 32]
ldr x0, [x0]
mov x1, x0
mov x0, x2
bl strcpy
mov w0, 120
str w0, [sp, 20]
ldr x0, [sp, 32]
add x0, x0, 8
add x1, sp, 20
mov x4, x1
mov x3, x0
mov w2, 130
mov w1, 0
ldr w0, [sp, 28]
bl getsockopt
cmp w0, 0
beq .L180
bl __errno_location
ldr w0, [x0]
cmp w0, 2
bgt .L181
cmp w0, 0
bgt .L189
b .L183
.L181:
cmp w0, 92
beq .L189
.L183:
mov w0, 1
bl exit
.L180:
ldr x0, [sp, 32]
ldr w0, [x0, 48]
cmp w0, 1536
bls .L185
mov w0, 1
bl exit
.L185:
ldr x0, [sp, 32]
str wzr, [x0, 104]
ldr x0, [sp, 32]
add x1, x0, 128
ldr x0, [sp, 32]
str x1, [x0, 120]
ldr x0, [sp, 32]
ldr w0, [x0, 48]
add w0, w0, 120
str w0, [sp, 20]
ldr x0, [sp, 32]
add x0, x0, 8
add x1, sp, 20
mov x4, x1
mov x3, x0
mov w2, 131
mov w1, 0
ldr w0, [sp, 28]
bl getsockopt
cmp w0, 0
beq .L184
mov w0, 1
bl exit
.L189:
nop
.L184:
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L179:
ldr w0, [sp, 24]
cmp w0, 2
bls .L186
ldr w0, [sp, 28]
bl close
b .L174
.L188:
nop
.L174:
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 .L187
bl __stack_chk_fail
.L187:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE64:
.size checkpoint_ebtables, .-checkpoint_ebtables
.align 2
.type reset_ebtables, %function
reset_ebtables:
.LFB65:
.cfi_startproc
sub sp, sp, #1712
.cfi_def_cfa_offset 1712
stp x29, x30, [sp]
.cfi_offset 29, -1712
.cfi_offset 30, -1704
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 1704]
mov x1, 0
mov w2, 6
mov w1, 1
mov w0, 2
bl socket
str w0, [sp, 36]
ldr w0, [sp, 36]
cmn w0, #1
bne .L191
bl __errno_location
ldr w0, [x0]
cmp w0, 92
beq .L208
cmp w0, 97
beq .L208
mov w0, 1
bl exit
.L191:
str wzr, [sp, 24]
b .L195
.L206:
ldr w1, [sp, 24]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 2
add x0, x0, x1
lsl x0, x0, 7
adrp x1, ebt_tables
add x1, x1, :lo12:ebt_tables
add x0, x0, x1
str x0, [sp, 40]
ldr x0, [sp, 40]
ldr w0, [x0, 40]
cmp w0, 0
beq .L209
add x0, sp, 48
mov x2, 120
mov w1, 0
bl memset
ldr x0, [sp, 40]
ldr x1, [x0]
add x0, sp, 48
bl strcpy
mov w0, 120
str w0, [sp, 20]
add x1, sp, 20
add x0, sp, 48
mov x4, x1
mov x3, x0
mov w2, 128
mov w1, 0
ldr w0, [sp, 36]
bl getsockopt
cmp w0, 0
beq .L198
mov w0, 1
bl exit
.L198:
str wzr, [sp, 144]
ldr x0, [sp, 40]
str xzr, [x0, 120]
str wzr, [sp, 32]
b .L199
.L200:
ldr x1, [sp, 40]
ldr w0, [sp, 32]
add x0, x0, 6
lsl x0, x0, 3
add x0, x1, x0
str xzr, [x0, 8]
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L199:
ldr w0, [sp, 32]
cmp w0, 5
bls .L200
ldr x0, [sp, 40]
add x0, x0, 8
add x1, sp, 48
mov x2, 120
bl memcmp
cmp w0, 0
bne .L201
add x0, sp, 168
mov x2, 1536
mov w1, 0
bl memset
add x0, sp, 168
str x0, [sp, 160]
ldr w0, [sp, 88]
add w0, w0, 120
str w0, [sp, 20]
add x1, sp, 20
add x0, sp, 48
mov x4, x1
mov x3, x0
mov w2, 129
mov w1, 0
ldr w0, [sp, 36]
bl getsockopt
cmp w0, 0
beq .L202
mov w0, 1
bl exit
.L202:
ldr x0, [sp, 40]
add x0, x0, 128
ldr w1, [sp, 88]
uxtw x2, w1
add x1, sp, 168
bl memcmp
cmp w0, 0
beq .L210
.L201:
str wzr, [sp, 28]
str wzr, [sp, 32]
b .L203
.L205:
ldr x0, [sp, 40]
ldr w0, [x0, 40]
ldr w1, [sp, 32]
mov w2, 1
lsl w1, w2, w1
and w0, w0, w1
cmp w0, 0
beq .L204
ldr x0, [sp, 40]
add x2, x0, 128
ldr w1, [sp, 28]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
lsl x0, x0, 4
add x1, x2, x0
ldr x2, [sp, 40]
ldr w0, [sp, 32]
add x0, x0, 6
lsl x0, x0, 3
add x0, x2, x0
str x1, [x0, 8]
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L204:
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L203:
ldr w0, [sp, 32]
cmp w0, 5
bls .L205
ldr x0, [sp, 40]
add x1, x0, 128
ldr x0, [sp, 40]
str x1, [x0, 120]
ldr x0, [sp, 40]
ldr w0, [x0, 48]
add w0, w0, 120
str w0, [sp, 20]
ldr x0, [sp, 40]
add x0, x0, 8
ldr w1, [sp, 20]
mov w4, w1
mov x3, x0
mov w2, 128
mov w1, 0
ldr w0, [sp, 36]
bl setsockopt
cmp w0, 0
beq .L197
mov w0, 1
bl exit
.L209:
nop
b .L197
.L210:
nop
.L197:
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L195:
ldr w0, [sp, 24]
cmp w0, 2
bls .L206
ldr w0, [sp, 36]
bl close
b .L190
.L208:
nop
.L190:
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 1704]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L207
bl __stack_chk_fail
.L207:
ldp x29, x30, [sp]
add sp, sp, 1712
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE65:
.size reset_ebtables, .-reset_ebtables
.align 2
.type checkpoint_net_namespace, %function
checkpoint_net_namespace:
.LFB66:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
bl checkpoint_ebtables
bl checkpoint_arptables
mov w3, 0
mov w2, 2
mov w1, 5
adrp x0, ipv4_tables
add x0, x0, :lo12:ipv4_tables
bl checkpoint_iptables
mov w3, 41
mov w2, 10
mov w1, 5
adrp x0, ipv6_tables
add x0, x0, :lo12:ipv6_tables
bl checkpoint_iptables
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE66:
.size checkpoint_net_namespace, .-checkpoint_net_namespace
.align 2
.type reset_net_namespace, %function
reset_net_namespace:
.LFB67:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
bl reset_ebtables
bl reset_arptables
mov w3, 0
mov w2, 2
mov w1, 5
adrp x0, ipv4_tables
add x0, x0, :lo12:ipv4_tables
bl reset_iptables
mov w3, 41
mov w2, 10
mov w1, 5
adrp x0, ipv6_tables
add x0, x0, :lo12:ipv6_tables
bl reset_iptables
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE67:
.size reset_net_namespace, .-reset_net_namespace
.section .rodata
.align 3
.LC84:
.string "/syzcgroup"
.align 3
.LC85:
.string "/syzcgroup/unified"
.align 3
.LC86:
.string "cgroup2"
.align 3
.LC87:
.string "none"
.align 3
.LC88:
.string "+cpu +memory +io +pids +rdma"
.align 3
.LC89:
.string "/syzcgroup/unified/cgroup.subtree_control"
.align 3
.LC90:
.string "/syzcgroup/cpu"
.align 3
.LC91:
.string "cpuset,cpuacct,perf_event,hugetlb"
.align 3
.LC92:
.string "cgroup"
.align 3
.LC93:
.string "1"
.align 3
.LC94:
.string "/syzcgroup/cpu/cgroup.clone_children"
.align 3
.LC95:
.string "/syzcgroup/net"
.align 3
.LC96:
.string "net_cls,net_prio,devices,freezer"
.text
.align 2
.type setup_cgroups, %function
setup_cgroups:
.LFB68:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
mov w1, 511
adrp x0, .LC84
add x0, x0, :lo12:.LC84
bl mkdir
mov w1, 511
adrp x0, .LC85
add x0, x0, :lo12:.LC85
bl mkdir
mov x4, 0
mov x3, 0
adrp x0, .LC86
add x2, x0, :lo12:.LC86
adrp x0, .LC85
add x1, x0, :lo12:.LC85
adrp x0, .LC87
add x0, x0, :lo12:.LC87
bl mount
mov w1, 511
adrp x0, .LC85
add x0, x0, :lo12:.LC85
bl chmod
adrp x0, .LC88
add x1, x0, :lo12:.LC88
adrp x0, .LC89
add x0, x0, :lo12:.LC89
bl write_file
mov w1, 511
adrp x0, .LC90
add x0, x0, :lo12:.LC90
bl mkdir
adrp x0, .LC91
add x4, x0, :lo12:.LC91
mov x3, 0
adrp x0, .LC92
add x2, x0, :lo12:.LC92
adrp x0, .LC90
add x1, x0, :lo12:.LC90
adrp x0, .LC87
add x0, x0, :lo12:.LC87
bl mount
adrp x0, .LC93
add x1, x0, :lo12:.LC93
adrp x0, .LC94
add x0, x0, :lo12:.LC94
bl write_file
mov w1, 511
adrp x0, .LC90
add x0, x0, :lo12:.LC90
bl chmod
mov w1, 511
adrp x0, .LC95
add x0, x0, :lo12:.LC95
bl mkdir
adrp x0, .LC96
add x4, x0, :lo12:.LC96
mov x3, 0
adrp x0, .LC92
add x2, x0, :lo12:.LC92
adrp x0, .LC95
add x1, x0, :lo12:.LC95
adrp x0, .LC87
add x0, x0, :lo12:.LC87
bl mount
mov w1, 511
adrp x0, .LC95
add x0, x0, :lo12:.LC95
bl chmod
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE68:
.size setup_cgroups, .-setup_cgroups
.section .rodata
.align 3
.LC97:
.string "binfmt_misc"
.align 3
.LC98:
.string "/proc/sys/fs/binfmt_misc"
.align 3
.LC99:
.string ":syz0:M:0:\001::./file0:"
.align 3
.LC100:
.string "/proc/sys/fs/binfmt_misc/register"
.align 3
.LC101:
.string ":syz1:M:1:\002::./file0:POC"
.text
.align 2
.type setup_binfmt_misc, %function
setup_binfmt_misc:
.LFB69:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
mov x4, 0
mov x3, 0
adrp x0, .LC97
add x2, x0, :lo12:.LC97
adrp x0, .LC98
add x1, x0, :lo12:.LC98
mov x0, 0
bl mount
adrp x0, .LC99
add x1, x0, :lo12:.LC99
adrp x0, .LC100
add x0, x0, :lo12:.LC100
bl write_file
adrp x0, .LC101
add x1, x0, :lo12:.LC101
adrp x0, .LC100
add x0, x0, :lo12:.LC100
bl write_file
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE69:
.size setup_binfmt_misc, .-setup_binfmt_misc
.section .rodata
.align 3
.LC102:
.string "fusectl"
.align 3
.LC103:
.string "/sys/fs/fuse/connections"
.text
.align 2
.type setup_common, %function
setup_common:
.LFB70:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
mov x4, 0
mov x3, 0
adrp x0, .LC102
add x2, x0, :lo12:.LC102
adrp x0, .LC103
add x1, x0, :lo12:.LC103
mov x0, 0
bl mount
bl setup_cgroups
bl setup_binfmt_misc
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE70:
.size setup_common, .-setup_common
.align 2
.type sandbox_common, %function
sandbox_common:
.LFB71:
.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 w4, 0
mov w3, 0
mov w2, 0
mov w1, 9
mov w0, 1
bl prctl
bl setpgrp
bl setsid
mov x0, 209715200
str x0, [sp, 32]
ldr x0, [sp, 32]
str x0, [sp, 24]
add x0, sp, 24
mov x1, x0
mov w0, 9
bl setrlimit
mov x0, 33554432
str x0, [sp, 32]
ldr x0, [sp, 32]
str x0, [sp, 24]
add x0, sp, 24
mov x1, x0
mov w0, 8
bl setrlimit
mov x0, 142606336
str x0, [sp, 32]
ldr x0, [sp, 32]
str x0, [sp, 24]
add x0, sp, 24
mov x1, x0
mov w0, 1
bl setrlimit
mov x0, 1048576
str x0, [sp, 32]
ldr x0, [sp, 32]
str x0, [sp, 24]
add x0, sp, 24
mov x1, x0
mov w0, 3
bl setrlimit
str xzr, [sp, 32]
ldr x0, [sp, 32]
str x0, [sp, 24]
add x0, sp, 24
mov x1, x0
mov w0, 4
bl setrlimit
mov x0, 256
str x0, [sp, 32]
ldr x0, [sp, 32]
str x0, [sp, 24]
add x0, sp, 24
mov x1, x0
mov w0, 7
bl setrlimit
mov w0, 131072
bl unshare
mov w0, 134217728
bl unshare
mov w0, 33554432
bl unshare
mov w0, 67108864
bl unshare
mov w0, 262144
bl unshare
str wzr, [sp, 20]
b .L217
.L218:
adrp x0, sysctls.0
add x1, x0, :lo12:sysctls.0
ldr w0, [sp, 20]
lsl x0, x0, 4
add x0, x1, x0
ldr x2, [x0]
adrp x0, sysctls.0
add x1, x0, :lo12:sysctls.0
ldr w0, [sp, 20]
lsl x0, x0, 4
add x0, x1, x0
ldr x0, [x0, 8]
mov x1, x0
mov x0, x2
bl write_file
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
.L217:
ldr w0, [sp, 20]
cmp w0, 6
bls .L218
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 .L219
bl __stack_chk_fail
.L219:
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE71:
.size sandbox_common, .-sandbox_common
.align 2
.global wait_for_loop
.type wait_for_loop, %function
wait_for_loop:
.LFB72:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
str w0, [sp, 28]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 40]
mov x1, 0
ldr w0, [sp, 28]
cmp w0, 0
bge .L221
mov w0, 1
bl exit
.L221:
str wzr, [sp, 36]
nop
.L222:
add x0, sp, 36
mov w2, 1073741824
mov x1, x0
mov w0, -1
bl waitpid
mov w1, w0
ldr w0, [sp, 28]
cmp w0, w1
bne .L222
ldr w0, [sp, 36]
asr w0, w0, 8
and w0, w0, 255
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 .L224
bl __stack_chk_fail
.L224:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE72:
.size wait_for_loop, .-wait_for_loop
.align 2
.type do_sandbox_none, %function
do_sandbox_none:
.LFB73:
.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, 536870912
bl unshare
bl fork
str w0, [sp, 28]
ldr w0, [sp, 28]
cmp w0, 0
beq .L226
ldr w0, [sp, 28]
bl wait_for_loop
b .L228
.L226:
bl setup_common
bl sandbox_common
bl initialize_netdevices_init
mov w0, 1073741824
bl unshare
bl initialize_tun
bl initialize_netdevices
bl loop
mov w0, 1
bl exit
.L228:
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE73:
.size do_sandbox_none, .-do_sandbox_none
.section .rodata
.align 3
.LC104:
.string "."
.align 3
.LC105:
.string ".."
.align 3
.LC106:
.string "%s/%s"
.text
.align 2
.type remove_dir, %function
remove_dir:
.LFB74:
.cfi_startproc
mov x12, 4320
sub sp, sp, x12
.cfi_def_cfa_offset 4320
stp x29, x30, [sp]
.cfi_offset 29, -4320
.cfi_offset 30, -4312
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, 4312]
mov x1, 0
str wzr, [sp, 44]
.L230:
nop
.L231:
mov w1, 2
ldr x0, [sp, 24]
bl umount2
cmp w0, 0
beq .L231
ldr x0, [sp, 24]
bl opendir
str x0, [sp, 72]
ldr x0, [sp, 72]
cmp x0, 0
bne .L234
bl __errno_location
ldr w0, [x0]
cmp w0, 24
bne .L233
mov w0, 1
bl exit
.L233:
mov w0, 1
bl exit
.L250:
ldr x0, [sp, 80]
add x2, x0, 19
adrp x0, .LC104
add x1, x0, :lo12:.LC104
mov x0, x2
bl strcmp
cmp w0, 0
beq .L262
ldr x0, [sp, 80]
add x2, x0, 19
adrp x0, .LC105
add x1, x0, :lo12:.LC105
mov x0, x2
bl strcmp
cmp w0, 0
beq .L262
ldr x0, [sp, 80]
add x0, x0, 19
add x5, sp, 216
mov x4, x0
ldr x3, [sp, 24]
adrp x0, .LC106
add x2, x0, :lo12:.LC106
mov x1, 4096
mov x0, x5
bl snprintf
nop
.L238:
add x0, sp, 216
mov w1, 2
bl umount2
cmp w0, 0
beq .L238
add x1, sp, 88
add x0, sp, 216
bl lstat
cmp w0, 0
beq .L239
mov w0, 1
bl exit
.L239:
ldr w0, [sp, 104]
and w0, w0, 61440
cmp w0, 16384
bne .L240
add x0, sp, 216
bl remove_dir
b .L234
.L240:
str wzr, [sp, 48]
.L249:
add x0, sp, 216
bl unlink
cmp w0, 0
beq .L263
bl __errno_location
ldr w0, [x0]
cmp w0, 1
bne .L243
add x0, sp, 216
mov w1, 0
bl open
str w0, [sp, 60]
ldr w0, [sp, 60]
cmn w0, #1
beq .L243
str xzr, [sp, 64]
add x0, sp, 64
mov x2, x0
mov x1, 26114
movk x1, 0x4008, lsl 16
ldr w0, [sp, 60]
bl ioctl
cmp w0, 0
bne .L264
ldr w0, [sp, 60]
bl close
b .L264
.L243:
bl __errno_location
ldr w0, [x0]
cmp w0, 30
beq .L265
bl __errno_location
ldr w0, [x0]
cmp w0, 16
bne .L247
ldr w0, [sp, 48]
cmp w0, 100
ble .L248
.L247:
mov w0, 1
bl exit
.L248:
add x0, sp, 216
mov w1, 2
bl umount2
cmp w0, 0
beq .L245
mov w0, 1
bl exit
.L264:
nop
.L245:
ldr w0, [sp, 48]
add w0, w0, 1
str w0, [sp, 48]
b .L249
.L263:
nop
b .L234
.L265:
nop
b .L234
.L262:
nop
.L234:
ldr x0, [sp, 72]
bl readdir
str x0, [sp, 80]
ldr x0, [sp, 80]
cmp x0, 0
bne .L250
ldr x0, [sp, 72]
bl closedir
str wzr, [sp, 52]
.L260:
ldr x0, [sp, 24]
bl rmdir
cmp w0, 0
beq .L266
ldr w0, [sp, 52]
cmp w0, 99
bgt .L253
bl __errno_location
ldr w0, [x0]
cmp w0, 1
bne .L254
mov w1, 0
ldr x0, [sp, 24]
bl open
str w0, [sp, 56]
ldr w0, [sp, 56]
cmn w0, #1
beq .L254
str xzr, [sp, 64]
add x0, sp, 64
mov x2, x0
mov x1, 26114
movk x1, 0x4008, lsl 16
ldr w0, [sp, 56]
bl ioctl
cmp w0, 0
bne .L267
ldr w0, [sp, 56]
bl close
b .L267
.L254:
bl __errno_location
ldr w0, [x0]
cmp w0, 30
beq .L268
bl __errno_location
ldr w0, [x0]
cmp w0, 16
bne .L258
mov w1, 2
ldr x0, [sp, 24]
bl umount2
cmp w0, 0
beq .L269
mov w0, 1
bl exit
.L258:
bl __errno_location
ldr w0, [x0]
cmp w0, 39
bne .L253
ldr w0, [sp, 44]
cmp w0, 99
bgt .L253
ldr w0, [sp, 44]
add w0, w0, 1
str w0, [sp, 44]
b .L230
.L253:
mov w0, 1
bl exit
.L267:
nop
b .L256
.L269:
nop
.L256:
ldr w0, [sp, 52]
add w0, w0, 1
str w0, [sp, 52]
b .L260
.L266:
nop
b .L252
.L268:
nop
.L252:
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 4312]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L261
bl __stack_chk_fail
.L261:
ldp x29, x30, [sp]
mov x12, 4320
add sp, sp, x12
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE74:
.size remove_dir, .-remove_dir
.section .rodata
.align 3
.LC107:
.string "/sys/fs/fuse/connections/%s/abort"
.text
.align 2
.type kill_and_wait, %function
kill_and_wait:
.LFB75:
.cfi_startproc
stp x29, x30, [sp, -368]!
.cfi_def_cfa_offset 368
.cfi_offset 29, -368
.cfi_offset 30, -360
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, 360]
mov x1, 0
ldr w0, [sp, 28]
neg w0, w0
mov w1, 9
bl kill
mov w1, 9
ldr w0, [sp, 28]
bl kill
str wzr, [sp, 32]
b .L271
.L274:
mov w2, 1
movk w2, 0x4000, lsl 16
ldr x1, [sp, 16]
mov w0, -1
bl waitpid
mov w1, w0
ldr w0, [sp, 28]
cmp w0, w1
beq .L285
mov w0, 1000
bl usleep
ldr w0, [sp, 32]
add w0, w0, 1
str w0, [sp, 32]
.L271:
ldr w0, [sp, 32]
cmp w0, 99
ble .L274
adrp x0, .LC103
add x0, x0, :lo12:.LC103
bl opendir
str x0, [sp, 40]
ldr x0, [sp, 40]
cmp x0, 0
beq .L288
.L282:
ldr x0, [sp, 40]
bl readdir
str x0, [sp, 48]
ldr x0, [sp, 48]
cmp x0, 0
bne .L276
ldr x0, [sp, 40]
bl closedir
b .L288
.L276:
ldr x0, [sp, 48]
add x2, x0, 19
adrp x0, .LC104
add x1, x0, :lo12:.LC104
mov x0, x2
bl strcmp
cmp w0, 0
beq .L286
ldr x0, [sp, 48]
add x2, x0, 19
adrp x0, .LC105
add x1, x0, :lo12:.LC105
mov x0, x2
bl strcmp
cmp w0, 0
beq .L286
ldr x0, [sp, 48]
add x0, x0, 19
add x4, sp, 56
mov x3, x0
adrp x0, .LC107
add x2, x0, :lo12:.LC107
mov x1, 300
mov x0, x4
bl snprintf
add x0, sp, 56
mov w1, 1
bl open
str w0, [sp, 36]
ldr w0, [sp, 36]
cmn w0, #1
beq .L287
add x0, sp, 56
mov x2, 1
mov x1, x0
ldr w0, [sp, 36]
bl write
ldr w0, [sp, 36]
bl close
b .L282
.L286:
nop
b .L282
.L287:
nop
b .L282
.L288:
nop
.L283:
mov w2, 1073741824
ldr x1, [sp, 16]
mov w0, -1
bl waitpid
mov w1, w0
ldr w0, [sp, 28]
cmp w0, w1
bne .L283
b .L270
.L285:
nop
.L270:
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 360]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L284
bl __stack_chk_fail
.L284:
ldp x29, x30, [sp], 368
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE75:
.size kill_and_wait, .-kill_and_wait
.section .rodata
.align 3
.LC108:
.string "/syzcgroup/unified/syz%llu"
.align 3
.LC109:
.string "%s/pids.max"
.align 3
.LC110:
.string "32"
.align 3
.LC111:
.string "%s/memory.low"
.align 3
.LC112:
.string "%d"
.align 3
.LC113:
.string "%s/memory.high"
.align 3
.LC114:
.string "%s/memory.max"
.align 3
.LC115:
.string "%s/cgroup.procs"
.align 3
.LC116:
.string "/syzcgroup/cpu/syz%llu"
.align 3
.LC117:
.string "/syzcgroup/net/syz%llu"
.text
.align 2
.type setup_loop, %function
setup_loop:
.LFB76:
.cfi_startproc
stp x29, x30, [sp, -224]!
.cfi_def_cfa_offset 224
.cfi_offset 29, -224
.cfi_offset 30, -216
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 216]
mov x1, 0
bl getpid
str w0, [sp, 20]
adrp x0, procid
add x0, x0, :lo12:procid
ldr x0, [x0]
add x4, sp, 24
mov x3, x0
adrp x0, .LC108
add x2, x0, :lo12:.LC108
mov x1, 64
mov x0, x4
bl snprintf
add x0, sp, 24
mov w1, 511
bl mkdir
add x0, sp, 24
add x4, sp, 88
mov x3, x0
adrp x0, .LC109
add x2, x0, :lo12:.LC109
mov x1, 128
mov x0, x4
bl snprintf
add x2, sp, 88
adrp x0, .LC110
add x1, x0, :lo12:.LC110
mov x0, x2
bl write_file
add x0, sp, 24
add x4, sp, 88
mov x3, x0
adrp x0, .LC111
add x2, x0, :lo12:.LC111
mov x1, 128
mov x0, x4
bl snprintf
add x3, sp, 88
mov w2, 312475648
adrp x0, .LC112
add x1, x0, :lo12:.LC112
mov x0, x3
bl write_file
add x0, sp, 24
add x4, sp, 88
mov x3, x0
adrp x0, .LC113
add x2, x0, :lo12:.LC113
mov x1, 128
mov x0, x4
bl snprintf
add x3, sp, 88
mov w2, 313524224
adrp x0, .LC112
add x1, x0, :lo12:.LC112
mov x0, x3
bl write_file
add x0, sp, 24
add x4, sp, 88
mov x3, x0
adrp x0, .LC114
add x2, x0, :lo12:.LC114
mov x1, 128
mov x0, x4
bl snprintf
add x3, sp, 88
mov w2, 314572800
adrp x0, .LC112
add x1, x0, :lo12:.LC112
mov x0, x3
bl write_file
add x0, sp, 24
add x4, sp, 88
mov x3, x0
adrp x0, .LC115
add x2, x0, :lo12:.LC115
mov x1, 128
mov x0, x4
bl snprintf
add x3, sp, 88
ldr w2, [sp, 20]
adrp x0, .LC112
add x1, x0, :lo12:.LC112
mov x0, x3
bl write_file
adrp x0, procid
add x0, x0, :lo12:procid
ldr x0, [x0]
add x4, sp, 24
mov x3, x0
adrp x0, .LC116
add x2, x0, :lo12:.LC116
mov x1, 64
mov x0, x4
bl snprintf
add x0, sp, 24
mov w1, 511
bl mkdir
add x0, sp, 24
add x4, sp, 88
mov x3, x0
adrp x0, .LC115
add x2, x0, :lo12:.LC115
mov x1, 128
mov x0, x4
bl snprintf
add x3, sp, 88
ldr w2, [sp, 20]
adrp x0, .LC112
add x1, x0, :lo12:.LC112
mov x0, x3
bl write_file
adrp x0, procid
add x0, x0, :lo12:procid
ldr x0, [x0]
add x4, sp, 24
mov x3, x0
adrp x0, .LC117
add x2, x0, :lo12:.LC117
mov x1, 64
mov x0, x4
bl snprintf
add x0, sp, 24
mov w1, 511
bl mkdir
add x0, sp, 24
add x4, sp, 88
mov x3, x0
adrp x0, .LC115
add x2, x0, :lo12:.LC115
mov x1, 128
mov x0, x4
bl snprintf
add x3, sp, 88
ldr w2, [sp, 20]
adrp x0, .LC112
add x1, x0, :lo12:.LC112
mov x0, x3
bl write_file
bl checkpoint_net_namespace
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 216]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L290
bl __stack_chk_fail
.L290:
ldp x29, x30, [sp], 224
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE76:
.size setup_loop, .-setup_loop
.align 2
.type reset_loop, %function
reset_loop:
.LFB77:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
bl reset_net_namespace
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE77:
.size reset_loop, .-reset_loop
.section .rodata
.align 3
.LC118:
.string "./cgroup"
.align 3
.LC119:
.string "./cgroup.cpu"
.align 3
.LC120:
.string "./cgroup.net"
.align 3
.LC121:
.string "1000"
.align 3
.LC122:
.string "/proc/self/oom_score_adj"
.text
.align 2
.type setup_test, %function
setup_test:
.LFB78:
.cfi_startproc
stp x29, x30, [sp, -96]!
.cfi_def_cfa_offset 96
.cfi_offset 29, -96
.cfi_offset 30, -88
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 88]
mov x1, 0
mov w4, 0
mov w3, 0
mov w2, 0
mov w1, 9
mov w0, 1
bl prctl
bl setpgrp
adrp x0, procid
add x0, x0, :lo12:procid
ldr x0, [x0]
add x4, sp, 24
mov x3, x0
adrp x0, .LC108
add x2, x0, :lo12:.LC108
mov x1, 64
mov x0, x4
bl snprintf
add x2, sp, 24
adrp x0, .LC118
add x1, x0, :lo12:.LC118
mov x0, x2
bl symlink
adrp x0, procid
add x0, x0, :lo12:procid
ldr x0, [x0]
add x4, sp, 24
mov x3, x0
adrp x0, .LC116
add x2, x0, :lo12:.LC116
mov x1, 64
mov x0, x4
bl snprintf
add x2, sp, 24
adrp x0, .LC119
add x1, x0, :lo12:.LC119
mov x0, x2
bl symlink
adrp x0, procid
add x0, x0, :lo12:procid
ldr x0, [x0]
add x4, sp, 24
mov x3, x0
adrp x0, .LC117
add x2, x0, :lo12:.LC117
mov x1, 64
mov x0, x4
bl snprintf
add x2, sp, 24
adrp x0, .LC120
add x1, x0, :lo12:.LC120
mov x0, x2
bl symlink
adrp x0, .LC121
add x1, x0, :lo12:.LC121
adrp x0, .LC122
add x0, x0, :lo12:.LC122
bl write_file
bl flush_tun
nop
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 88]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L293
bl __stack_chk_fail
.L293:
ldp x29, x30, [sp], 96
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE78:
.size setup_test, .-setup_test
.align 2
.type reset_test, %function
reset_test:
.LFB79:
.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, 3
str w0, [sp, 28]
b .L295
.L296:
ldr w0, [sp, 28]
bl close
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L295:
ldr w0, [sp, 28]
cmp w0, 29
ble .L296
nop
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE79:
.size reset_test, .-reset_test
.section .rodata
.align 3
.LC123:
.string "./%d"
.text
.align 2
.type loop, %function
loop:
.LFB80:
.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
bl setup_loop
str wzr, [sp, 24]
.L307:
add x3, sp, 40
ldr w2, [sp, 24]
adrp x0, .LC123
add x1, x0, :lo12:.LC123
mov x0, x3
bl sprintf
add x0, sp, 40
mov w1, 511
bl mkdir
cmp w0, 0
beq .L298
mov w0, 1
bl exit
.L298:
bl reset_loop
bl fork
str w0, [sp, 28]
ldr w0, [sp, 28]
cmp w0, 0
bge .L299
mov w0, 1
bl exit
.L299:
ldr w0, [sp, 28]
cmp w0, 0
bne .L300
add x0, sp, 40
bl chdir
cmp w0, 0
beq .L301
mov w0, 1
bl exit
.L301:
bl setup_test
bl execute_one
bl reset_test
mov w0, 0
bl exit
.L300:
str wzr, [sp, 20]
bl current_time_ms
str x0, [sp, 32]
.L306:
add x0, sp, 20
mov w2, 1
movk w2, 0x4000, lsl 16
mov x1, x0
mov w0, -1
bl waitpid
mov w1, w0
ldr w0, [sp, 28]
cmp w0, w1
beq .L310
mov x0, 1
bl sleep_ms
bl current_time_ms
mov x1, x0
ldr x0, [sp, 32]
sub x1, x1, x0
mov x0, 4999
cmp x1, x0
bls .L311
add x0, sp, 20
mov x1, x0
ldr w0, [sp, 28]
bl kill_and_wait
b .L303
.L311:
nop
b .L306
.L310:
nop
.L303:
add x0, sp, 40
bl remove_dir
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
b .L307
.cfi_endproc
.LFE80:
.size loop, .-loop
.global r
.data
.align 3
.type r, %object
.size r, 16
r:
.xword -1
.xword -1
.section .rodata
.align 3
.LC124:
.string "/dev/loop#"
.string ""
.align 3
.LC125:
.string ""
.string ""
.align 3
.LC126:
.string "\321+\233^\345L\234)Y\217#\203VZc\231\225\313\"$y\340\362\247\244\3558x\310,~V\266|\213"
.string "\020\0244\351]\376\326\253Wq\267[\272?\244\335\312\273I"
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.string ""
.align 3
.LC127:
.string "\235"
.string "4H\360\356K4\230\256\001\341~\371\247\346\246f\3131\006\224\215\231\272\255\030\211_6\261JE(\355\312\rB\361V\247\216F\210\270\rn\3263J\320\367\253\201ky@"
.string ""
.string ""
.string "\362\340\215^"
.align 3
.LC128:
.string "A`x\350\226\351\333\177\353\203\3344\273\002]\343\2255\335\315\"\216_o\237\255\241\271%\345\354\370"
.text
.align 2
.type execute_one, %function
execute_one:
.LFB81:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
str xzr, [sp, 24]
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:skip_segv, lsl #12
add x0, x0, #:tprel_lo12_nc:skip_segv
mov x1, x0
mov w0, 1
bl __aarch64_ldadd4_acq_rel
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:segv_env, lsl #12
add x0, x0, #:tprel_lo12_nc:segv_env
bl _setjmp
cmp w0, 0
bne .L314
mov x2, 11
adrp x0, .LC124
add x1, x0, :lo12:.LC124
mov x0, 1216
movk x0, 0x2000, lsl 16
bl memcpy
.L314:
mrs x0, tpidr_el0
add x1, x0, #:tprel_hi12:skip_segv, lsl #12
add x1, x1, #:tprel_lo12_nc:skip_segv
mov w0, 1
neg w0, w0
bl __aarch64_ldadd4_acq_rel
mov x2, 133
movk x2, 0x100, lsl 16
mov x1, 0
mov x0, 1216
movk x0, 0x2000, lsl 16
bl syz_open_dev
str x0, [sp, 24]
ldr x0, [sp, 24]
cmn x0, #1
beq .L315
ldr x1, [sp, 24]
adrp x0, r
add x0, x0, :lo12:r
str x1, [x0]
.L315:
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:skip_segv, lsl #12
add x0, x0, #:tprel_lo12_nc:skip_segv
mov x1, x0
mov w0, 1
bl __aarch64_ldadd4_acq_rel
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:segv_env, lsl #12
add x0, x0, #:tprel_lo12_nc:segv_env
bl _setjmp
cmp w0, 0
bne .L316
mov x2, 1
adrp x0, .LC125
add x1, x0, :lo12:.LC125
mov x0, 536870912
bl memcpy
.L316:
mrs x0, tpidr_el0
add x1, x0, #:tprel_hi12:skip_segv, lsl #12
add x1, x1, #:tprel_lo12_nc:skip_segv
mov w0, 1
neg w0, w0
bl __aarch64_ldadd4_acq_rel
mov w2, 0
mov w1, 536870912
mov x0, 279
bl syscall
str x0, [sp, 24]
ldr x0, [sp, 24]
cmn x0, #1
beq .L317
ldr x1, [sp, 24]
adrp x0, r
add x0, x0, :lo12:r
str x1, [x0, 8]
.L317:
adrp x0, r
add x0, x0, :lo12:r
ldr x1, [x0]
adrp x0, r
add x0, x0, :lo12:r
ldr x0, [x0, 8]
mov x3, x0
mov w2, 19456
mov x0, 29
bl syscall
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:skip_segv, lsl #12
add x0, x0, #:tprel_lo12_nc:skip_segv
mov x1, x0
mov w0, 1
bl __aarch64_ldadd4_acq_rel
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:segv_env, lsl #12
add x0, x0, #:tprel_lo12_nc:segv_env
bl _setjmp
cmp w0, 0
bne .L318
mov x0, 256
movk x0, 0x2000, lsl 16
str xzr, [x0]
.L318:
mrs x0, tpidr_el0
add x1, x0, #:tprel_hi12:skip_segv, lsl #12
add x1, x1, #:tprel_lo12_nc:skip_segv
mov w0, 1
neg w0, w0
bl __aarch64_ldadd4_acq_rel
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:skip_segv, lsl #12
add x0, x0, #:tprel_lo12_nc:skip_segv
mov x1, x0
mov w0, 1
bl __aarch64_ldadd4_acq_rel
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:segv_env, lsl #12
add x0, x0, #:tprel_lo12_nc:segv_env
bl _setjmp
cmp w0, 0
bne .L319
mov x0, 264
movk x0, 0x2000, lsl 16
str xzr, [x0]
.L319:
mrs x0, tpidr_el0
add x1, x0, #:tprel_hi12:skip_segv, lsl #12
add x1, x1, #:tprel_lo12_nc:skip_segv
mov w0, 1
neg w0, w0
bl __aarch64_ldadd4_acq_rel
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:skip_segv, lsl #12
add x0, x0, #:tprel_lo12_nc:skip_segv
mov x1, x0
mov w0, 1
bl __aarch64_ldadd4_acq_rel
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:segv_env, lsl #12
add x0, x0, #:tprel_lo12_nc:segv_env
bl _setjmp
cmp w0, 0
bne .L320
mov x0, 272
movk x0, 0x2000, lsl 16
str xzr, [x0]
.L320:
mrs x0, tpidr_el0
add x1, x0, #:tprel_hi12:skip_segv, lsl #12
add x1, x1, #:tprel_lo12_nc:skip_segv
mov w0, 1
neg w0, w0
bl __aarch64_ldadd4_acq_rel
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:skip_segv, lsl #12
add x0, x0, #:tprel_lo12_nc:skip_segv
mov x1, x0
mov w0, 1
bl __aarch64_ldadd4_acq_rel
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:segv_env, lsl #12
add x0, x0, #:tprel_lo12_nc:segv_env
bl _setjmp
cmp w0, 0
bne .L321
mov x0, 280
movk x0, 0x2000, lsl 16
mov x1, 4
str x1, [x0]
.L321:
mrs x0, tpidr_el0
add x1, x0, #:tprel_hi12:skip_segv, lsl #12
add x1, x1, #:tprel_lo12_nc:skip_segv
mov w0, 1
neg w0, w0
bl __aarch64_ldadd4_acq_rel
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:skip_segv, lsl #12
add x0, x0, #:tprel_lo12_nc:skip_segv
mov x1, x0
mov w0, 1
bl __aarch64_ldadd4_acq_rel
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:segv_env, lsl #12
add x0, x0, #:tprel_lo12_nc:segv_env
bl _setjmp
cmp w0, 0
bne .L322
mov x0, 288
movk x0, 0x2000, lsl 16
str xzr, [x0]
.L322:
mrs x0, tpidr_el0
add x1, x0, #:tprel_hi12:skip_segv, lsl #12
add x1, x1, #:tprel_lo12_nc:skip_segv
mov w0, 1
neg w0, w0
bl __aarch64_ldadd4_acq_rel
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:skip_segv, lsl #12
add x0, x0, #:tprel_lo12_nc:skip_segv
mov x1, x0
mov w0, 1
bl __aarch64_ldadd4_acq_rel
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:segv_env, lsl #12
add x0, x0, #:tprel_lo12_nc:segv_env
bl _setjmp
cmp w0, 0
bne .L323
mov x0, 296
movk x0, 0x2000, lsl 16
str wzr, [x0]
.L323:
mrs x0, tpidr_el0
add x1, x0, #:tprel_hi12:skip_segv, lsl #12
add x1, x1, #:tprel_lo12_nc:skip_segv
mov w0, 1
neg w0, w0
bl __aarch64_ldadd4_acq_rel
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:skip_segv, lsl #12
add x0, x0, #:tprel_lo12_nc:skip_segv
mov x1, x0
mov w0, 1
bl __aarch64_ldadd4_acq_rel
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:segv_env, lsl #12
add x0, x0, #:tprel_lo12_nc:segv_env
bl _setjmp
cmp w0, 0
bne .L324
mov x0, 300
movk x0, 0x2000, lsl 16
str wzr, [x0]
.L324:
mrs x0, tpidr_el0
add x1, x0, #:tprel_hi12:skip_segv, lsl #12
add x1, x1, #:tprel_lo12_nc:skip_segv
mov w0, 1
neg w0, w0
bl __aarch64_ldadd4_acq_rel
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:skip_segv, lsl #12
add x0, x0, #:tprel_lo12_nc:skip_segv
mov x1, x0
mov w0, 1
bl __aarch64_ldadd4_acq_rel
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:segv_env, lsl #12
add x0, x0, #:tprel_lo12_nc:segv_env
bl _setjmp
cmp w0, 0
bne .L325
mov x0, 304
movk x0, 0x2000, lsl 16
mov w1, 7
str w1, [x0]
.L325:
mrs x0, tpidr_el0
add x1, x0, #:tprel_hi12:skip_segv, lsl #12
add x1, x1, #:tprel_lo12_nc:skip_segv
mov w0, 1
neg w0, w0
bl __aarch64_ldadd4_acq_rel
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:skip_segv, lsl #12
add x0, x0, #:tprel_lo12_nc:skip_segv
mov x1, x0
mov w0, 1
bl __aarch64_ldadd4_acq_rel
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:segv_env, lsl #12
add x0, x0, #:tprel_lo12_nc:segv_env
bl _setjmp
cmp w0, 0
bne .L326
mov x0, 308
movk x0, 0x2000, lsl 16
mov w1, 72
str w1, [x0]
.L326:
mrs x0, tpidr_el0
add x1, x0, #:tprel_hi12:skip_segv, lsl #12
add x1, x1, #:tprel_lo12_nc:skip_segv
mov w0, 1
neg w0, w0
bl __aarch64_ldadd4_acq_rel
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:skip_segv, lsl #12
add x0, x0, #:tprel_lo12_nc:skip_segv
mov x1, x0
mov w0, 1
bl __aarch64_ldadd4_acq_rel
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:segv_env, lsl #12
add x0, x0, #:tprel_lo12_nc:segv_env
bl _setjmp
cmp w0, 0
bne .L327
mov x2, 64
adrp x0, .LC126
add x1, x0, :lo12:.LC126
mov x0, 312
movk x0, 0x2000, lsl 16
bl memcpy
.L327:
mrs x0, tpidr_el0
add x1, x0, #:tprel_hi12:skip_segv, lsl #12
add x1, x1, #:tprel_lo12_nc:skip_segv
mov w0, 1
neg w0, w0
bl __aarch64_ldadd4_acq_rel
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:skip_segv, lsl #12
add x0, x0, #:tprel_lo12_nc:skip_segv
mov x1, x0
mov w0, 1
bl __aarch64_ldadd4_acq_rel
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:segv_env, lsl #12
add x0, x0, #:tprel_lo12_nc:segv_env
bl _setjmp
cmp w0, 0
bne .L328
mov x2, 64
adrp x0, .LC127
add x1, x0, :lo12:.LC127
mov x0, 376
movk x0, 0x2000, lsl 16
bl memcpy
.L328:
mrs x0, tpidr_el0
add x1, x0, #:tprel_hi12:skip_segv, lsl #12
add x1, x1, #:tprel_lo12_nc:skip_segv
mov w0, 1
neg w0, w0
bl __aarch64_ldadd4_acq_rel
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:skip_segv, lsl #12
add x0, x0, #:tprel_lo12_nc:skip_segv
mov x1, x0
mov w0, 1
bl __aarch64_ldadd4_acq_rel
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:segv_env, lsl #12
add x0, x0, #:tprel_lo12_nc:segv_env
bl _setjmp
cmp w0, 0
bne .L329
mov x2, 32
adrp x0, .LC128
add x1, x0, :lo12:.LC128
mov x0, 440
movk x0, 0x2000, lsl 16
bl memcpy
.L329:
mrs x0, tpidr_el0
add x1, x0, #:tprel_hi12:skip_segv, lsl #12
add x1, x1, #:tprel_lo12_nc:skip_segv
mov w0, 1
neg w0, w0
bl __aarch64_ldadd4_acq_rel
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:skip_segv, lsl #12
add x0, x0, #:tprel_lo12_nc:skip_segv
mov x1, x0
mov w0, 1
bl __aarch64_ldadd4_acq_rel
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:segv_env, lsl #12
add x0, x0, #:tprel_lo12_nc:segv_env
bl _setjmp
cmp w0, 0
bne .L330
mov x0, 472
movk x0, 0x2000, lsl 16
str xzr, [x0]
.L330:
mrs x0, tpidr_el0
add x1, x0, #:tprel_hi12:skip_segv, lsl #12
add x1, x1, #:tprel_lo12_nc:skip_segv
mov w0, 1
neg w0, w0
bl __aarch64_ldadd4_acq_rel
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:skip_segv, lsl #12
add x0, x0, #:tprel_lo12_nc:skip_segv
mov x1, x0
mov w0, 1
bl __aarch64_ldadd4_acq_rel
mrs x0, tpidr_el0
add x0, x0, #:tprel_hi12:segv_env, lsl #12
add x0, x0, #:tprel_lo12_nc:segv_env
bl _setjmp
cmp w0, 0
bne .L331
mov x0, 480
movk x0, 0x2000, lsl 16
str xzr, [x0]
.L331:
mrs x0, tpidr_el0
add x1, x0, #:tprel_hi12:skip_segv, lsl #12
add x1, x1, #:tprel_lo12_nc:skip_segv
mov w0, 1
neg w0, w0
bl __aarch64_ldadd4_acq_rel
adrp x0, r
add x0, x0, :lo12:r
ldr x0, [x0]
mov w3, 256
movk w3, 0x2000, lsl 16
mov w2, 19460
mov x1, x0
mov x0, 29
bl syscall
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE81:
.size execute_one, .-execute_one
.align 2
.global main
.type main, %function
main:
.LFB82:
.cfi_startproc
stp x29, x30, [sp, -16]!
.cfi_def_cfa_offset 16
.cfi_offset 29, -16
.cfi_offset 30, -8
mov x29, sp
mov w6, 0
mov w5, -1
mov w4, 50
mov w3, 3
mov w2, 16777216
mov w1, 536870912
mov x0, 222
bl syscall
bl install_segv_handler
adrp x0, procid
add x0, x0, :lo12:procid
str xzr, [x0]
b .L333
.L335:
bl fork
cmp w0, 0
bne .L334
bl use_temporary_dir
bl do_sandbox_none
.L334:
adrp x0, procid
add x0, x0, :lo12:procid
ldr x0, [x0]
add x1, x0, 1
adrp x0, procid
add x0, x0, :lo12:procid
str x1, [x0]
.L333:
adrp x0, procid
add x0, x0, :lo12:procid
ldr x0, [x0]
cmp x0, 5
bls .L335
mov w0, 16960
movk w0, 0xf, lsl 16
bl sleep
mov w0, 0
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE82:
.size main, .-main
.section .rodata
.align 3
.LC129:
.string "/proc/sys/kernel/shmmax"
.align 3
.LC130:
.string "16777216"
.align 3
.LC131:
.string "/proc/sys/kernel/shmall"
.align 3
.LC132:
.string "536870912"
.align 3
.LC133:
.string "/proc/sys/kernel/shmmni"
.align 3
.LC134:
.string "1024"
.align 3
.LC135:
.string "/proc/sys/kernel/msgmax"
.align 3
.LC136:
.string "8192"
.align 3
.LC137:
.string "/proc/sys/kernel/msgmni"
.align 3
.LC138:
.string "/proc/sys/kernel/msgmnb"
.align 3
.LC139:
.string "/proc/sys/kernel/sem"
.align 3
.LC140:
.string "1024 1048576 500 1024"
.section .data.rel.ro.local,"aw"
.align 3
.type sysctls.0, %object
.size sysctls.0, 112
sysctls.0:
.xword .LC129
.xword .LC130
.xword .LC131
.xword .LC132
.xword .LC133
.xword .LC134
.xword .LC135
.xword .LC136
.xword .LC137
.xword .LC134
.xword .LC138
.xword .LC134
.xword .LC139
.xword .LC140
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global foo
.type foo, %function
foo:
.LFB0:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, 12]
str w1, [sp, 8]
ldr w0, [sp, 12]
and w0, w0, 15
str w0, [sp, 12]
ldr w0, [sp, 8]
and w0, w0, 15
str w0, [sp, 8]
ldr w0, [sp, 12]
add w0, w0, 1024
str w0, [sp, 12]
ldr w0, [sp, 8]
add w0, w0, 2048
str w0, [sp, 8]
ldr w1, [sp, 12]
ldr w0, [sp, 8]
and w0, w1, w0
str w0, [sp, 12]
ldr w0, [sp, 12]
cmp w0, 15
cset w0, ls
and w0, w0, 255
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size foo, .-foo
.align 2
.global bar
.type bar, %function
bar:
.LFB1:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, 12]
mov w0, 2
str w0, [sp, 28]
ldr w0, [sp, 12]
cmp w0, 6
cset w0, gt
and w0, w0, 255
mov w1, w0
ldr w0, [sp, 28]
and w0, w0, w1
str w0, [sp, 28]
ldr w0, [sp, 28]
cmp w0, 0
cset w0, eq
and w0, w0, 255
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size bar, .-bar
.align 2
.global baz
.type baz, %function
baz:
.LFB2:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, 12]
str w1, [sp, 8]
ldr w0, [sp, 12]
and w0, w0, 15
str w0, [sp, 12]
ldr w0, [sp, 8]
and w0, w0, 15
str w0, [sp, 8]
ldr w0, [sp, 12]
add w0, w0, 4
str w0, [sp, 12]
ldr w0, [sp, 8]
add w0, w0, 16
str w0, [sp, 8]
ldr w1, [sp, 12]
ldr w0, [sp, 8]
and w0, w1, w0
str w0, [sp, 12]
ldr w0, [sp, 12]
cmp w0, 19
cset w0, le
and w0, w0, 255
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE2:
.size baz, .-baz
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global WPD_PROPERTY_CAPABILITIES_FORMATS
.section .rodata
.align 3
.type WPD_PROPERTY_CAPABILITIES_FORMATS, %object
.size WPD_PROPERTY_CAPABILITIES_FORMATS, 24
WPD_PROPERTY_CAPABILITIES_FORMATS:
.xword 212593784
.hword 27508
.hword 16838
.ascii "\222\026&9\321\374\343V"
.zero 4
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global ref1
.type ref1, %function
ref1:
.LFB0:
.cfi_startproc
mov w0, 42
ret
.cfi_endproc
.LFE0:
.size ref1, .-ref1
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "f:o:"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -80]!
.cfi_def_cfa_offset 80
.cfi_offset 29, -80
.cfi_offset 30, -72
mov x29, sp
str w0, [sp, 44]
str x1, [sp, 32]
str x2, [sp, 24]
b .L2
.L7:
ldr w0, [sp, 60]
cmp w0, 111
beq .L3
ldr w0, [sp, 60]
cmp w0, 111
bgt .L4
ldr w0, [sp, 60]
cmp w0, 63
beq .L5
ldr w0, [sp, 60]
cmp w0, 102
bne .L4
adrp x0, :got:optarg
ldr x0, [x0, #:got_lo12:optarg]
ldr x0, [x0]
str x0, [sp, 72]
b .L2
.L3:
adrp x0, :got:optarg
ldr x0, [x0, #:got_lo12:optarg]
ldr x0, [x0]
str x0, [sp, 64]
b .L2
.L5:
bl usage
mov w0, 1
b .L6
.L4:
bl usage
.L2:
adrp x0, .LC0
add x2, x0, :lo12:.LC0
ldr x1, [sp, 32]
ldr w0, [sp, 44]
bl getopt
str w0, [sp, 60]
ldr w0, [sp, 60]
cmn w0, #1
bne .L7
mov w0, 0
.L6:
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
.section .rodata
.align 3
.LC1:
.string "Usage:"
.align 3
.LC2:
.string "\tstorrent -f <torrent file> -o <torrent output directory>"
.text
.align 2
.global usage
.type usage, %function
usage:
.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 puts
mov w0, 10
bl putchar
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
mov w0, 10
bl putchar
nop
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE1:
.size usage, .-usage
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global bar
.type bar, %function
bar:
.LFB0:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, 12]
ldr w0, [sp, 12]
str w0, [sp, 28]
ldr w0, [sp, 28]
ldr w1, [sp, 12]
cmp w1, w0
cset w0, eq
and w0, w0, 255
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size bar, .-bar
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global kChannelName
.section .rodata
.align 3
.type kChannelName, %object
.size kChannelName, 8
kChannelName:
.string "lot_i2c"
.global kRuntimeError
.align 3
.type kRuntimeError, %object
.size kRuntimeError, 14
kRuntimeError:
.string "Runtime Error"
.global kInitMethod
.align 3
.type kInitMethod, %object
.size kInitMethod, 5
kInitMethod:
.string "init"
.global kDisposeMethod
.align 3
.type kDisposeMethod, %object
.size kDisposeMethod, 8
kDisposeMethod:
.string "dispose"
.global kTransmitMethod
.align 3
.type kTransmitMethod, %object
.size kTransmitMethod, 9
kTransmitMethod:
.string "transmit"
.global kReceiveMethod
.align 3
.type kReceiveMethod, %object
.size kReceiveMethod, 8
kReceiveMethod:
.string "receive"
.global kTransceiveMethod
.align 3
.type kTransceiveMethod, %object
.size kTransceiveMethod, 11
kTransceiveMethod:
.string "transceive"
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
bl __VERIFIER_nondet_int
str w0, [sp, 24]
bl __VERIFIER_nondet_int
str w0, [sp, 28]
b .L2
.L9:
ldr w1, [sp, 24]
ldr w0, [sp, 28]
cmp w1, w0
ble .L6
b .L4
.L5:
ldr w0, [sp, 24]
sub w0, w0, #1
str w0, [sp, 24]
.L4:
ldr w0, [sp, 24]
cmp w0, 0
bgt .L5
b .L2
.L7:
ldr w0, [sp, 28]
sub w0, w0, #1
str w0, [sp, 28]
.L6:
ldr w0, [sp, 28]
cmp w0, 0
bgt .L7
.L2:
ldr w0, [sp, 24]
cmp w0, 0
ble .L8
ldr w0, [sp, 28]
cmp w0, 0
bgt .L9
.L8:
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 shuffle
.type shuffle, %function
shuffle:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
str x0, [sp, 24]
str w1, [sp, 20]
ldrsw x0, [sp, 20]
mov x1, 4
bl calloc
str x0, [sp, 48]
ldrsw x0, [sp, 20]
mov x1, 4
bl calloc
str x0, [sp, 56]
mov x0, 0
bl time
bl srand
str wzr, [sp, 36]
b .L2
.L8:
bl rand
ldr w1, [sp, 20]
sdiv w2, w0, w1
ldr w1, [sp, 20]
mul w1, w2, w1
sub w0, w0, w1
str w0, [sp, 44]
ldr w0, [sp, 36]
cmp w0, 0
bne .L3
ldrsw x0, [sp, 36]
lsl x0, x0, 2
ldr x1, [sp, 48]
add x0, x1, x0
ldr w1, [sp, 44]
str w1, [x0]
b .L4
.L3:
str wzr, [sp, 40]
b .L5
.L7:
ldrsw x0, [sp, 36]
lsl x0, x0, 2
ldr x1, [sp, 48]
add x0, x1, x0
ldr w1, [sp, 44]
str w1, [x0]
ldrsw x0, [sp, 40]
lsl x0, x0, 2
ldr x1, [sp, 48]
add x0, x1, x0
ldr w0, [x0]
ldr w1, [sp, 44]
cmp w1, w0
bne .L6
ldr w0, [sp, 36]
sub w0, w0, #1
str w0, [sp, 36]
b .L4
.L6:
ldr w0, [sp, 40]
add w0, w0, 1
str w0, [sp, 40]
.L5:
ldr w1, [sp, 40]
ldr w0, [sp, 36]
cmp w1, w0
blt .L7
.L4:
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L2:
ldr w1, [sp, 36]
ldr w0, [sp, 20]
cmp w1, w0
blt .L8
str wzr, [sp, 36]
b .L9
.L10:
ldrsw x0, [sp, 36]
lsl x0, x0, 2
ldr x1, [sp, 48]
add x0, x1, x0
ldr w0, [x0]
sxtw x0, w0
lsl x0, x0, 2
ldr x1, [sp, 24]
add x1, x1, x0
ldrsw x0, [sp, 36]
lsl x0, x0, 2
ldr x2, [sp, 56]
add x0, x2, x0
ldr w1, [x1]
str w1, [x0]
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L9:
ldr w1, [sp, 36]
ldr w0, [sp, 20]
cmp w1, w0
blt .L10
str wzr, [sp, 36]
b .L11
.L12:
ldrsw x0, [sp, 36]
lsl x0, x0, 2
ldr x1, [sp, 56]
add x1, x1, x0
ldrsw x0, [sp, 36]
lsl x0, x0, 2
ldr x2, [sp, 24]
add x0, x2, x0
ldr w1, [x1]
str w1, [x0]
ldr w0, [sp, 36]
add w0, w0, 1
str w0, [sp, 36]
.L11:
ldr w1, [sp, 36]
ldr w0, [sp, 20]
cmp w1, w0
blt .L12
nop
nop
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size shuffle, .-shuffle
.section .rodata
.align 3
.LC0:
.string "How many number of array?"
.align 3
.LC1:
.string ">> "
.align 3
.LC2:
.string "%d"
.align 3
.LC3:
.string "arr[%d] = "
.align 3
.LC4:
.string "\nResult>"
.align 3
.LC5:
.string "Arr: "
.align 3
.LC6:
.string "%d "
.align 3
.LC7:
.string "\nSfl: "
.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, :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 puts
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
add x0, sp, 16
mov x1, x0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl scanf_s
ldr w0, [sp, 16]
sxtw x0, w0
mov x1, 4
bl calloc
str x0, [sp, 32]
str wzr, [sp, 20]
b .L14
.L16:
ldr w0, [sp, 20]
cmp w0, 0
bne .L15
mov w0, 10
bl putchar
.L15:
ldr w1, [sp, 20]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
ldrsw x0, [sp, 20]
lsl x0, x0, 2
ldr x1, [sp, 32]
add x0, x1, x0
mov x1, x0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl scanf_s
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
.L14:
ldr w0, [sp, 16]
ldr w1, [sp, 20]
cmp w1, w0
blt .L16
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl puts
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
str wzr, [sp, 24]
b .L17
.L18:
ldrsw x0, [sp, 24]
lsl x0, x0, 2
ldr x1, [sp, 32]
add x0, x1, x0
ldr w0, [x0]
mov w1, w0
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl printf
ldr w0, [sp, 24]
add w0, w0, 1
str w0, [sp, 24]
.L17:
ldr w0, [sp, 16]
ldr w1, [sp, 24]
cmp w1, w0
blt .L18
ldr w0, [sp, 16]
mov w1, w0
ldr x0, [sp, 32]
bl shuffle
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl printf
str wzr, [sp, 28]
b .L19
.L20:
ldrsw x0, [sp, 28]
lsl x0, x0, 2
ldr x1, [sp, 32]
add x0, x1, x0
ldr w0, [x0]
mov w1, w0
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl printf
ldr w0, [sp, 28]
add w0, w0, 1
str w0, [sp, 28]
.L19:
ldr w0, [sp, 16]
ldr w1, [sp, 28]
cmp w1, w0
blt .L20
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 .L22
bl __stack_chk_fail
.L22:
mov w0, w1
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
.align 2
.global memset
.type memset, %function
memset:
.LFB0:
.cfi_startproc
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, 24]
str w1, [sp, 20]
str x2, [sp, 8]
ldr x0, [sp, 24]
str x0, [sp, 40]
str xzr, [sp, 32]
b .L2
.L3:
ldr x1, [sp, 40]
ldr x0, [sp, 32]
add x0, x1, x0
ldr w1, [sp, 20]
and w1, w1, 255
strb w1, [x0]
ldr x0, [sp, 32]
add x0, x0, 1
str x0, [sp, 32]
.L2:
ldr x1, [sp, 32]
ldr x0, [sp, 8]
cmp x1, x0
bcc .L3
ldr x0, [sp, 24]
add sp, sp, 48
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size memset, .-memset
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global ft_multi_strchr
.type ft_multi_strchr, %function
ft_multi_strchr:
.LFB0:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str x1, [sp]
ldr x0, [sp, 8]
str x0, [sp, 24]
b .L2
.L6:
ldr x0, [sp, 8]
ldrb w1, [x0]
ldr x0, [sp]
ldrb w0, [x0]
cmp w1, w0
bne .L4
mov w0, 1
b .L5
.L4:
ldr x0, [sp, 8]
add x0, x0, 1
str x0, [sp, 8]
.L3:
ldr x0, [sp, 8]
ldrb w0, [x0]
cmp w0, 0
bne .L6
ldr x0, [sp, 24]
str x0, [sp, 8]
ldr x0, [sp]
add x0, x0, 1
str x0, [sp]
.L2:
ldr x0, [sp]
ldrb w0, [x0]
cmp w0, 0
bne .L3
mov w0, 0
.L5:
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size ft_multi_strchr, .-ft_multi_strchr
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Waiting for a reader...\n"
.align 3
.LC1:
.string "bridge"
.align 3
.LC2:
.string "Reader found!\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 w0, [sp, 28]
str x1, [sp, 16]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 120]
mov x1, 0
.L3:
add x2, sp, 40
adrp x0, .LC0
add x1, x0, :lo12:.LC0
mov x0, x2
bl sprintf
add x0, sp, 40
bl strlen
mov x1, x0
add x0, sp, 40
mov x2, x1
mov x1, x0
mov w0, 1
bl write
mov w0, 3
bl sleep
mov w1, 2049
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl open
str w0, [sp, 36]
ldr w0, [sp, 36]
cmn w0, #1
bne .L2
bl __errno_location
ldr w0, [x0]
cmp w0, 6
beq .L3
.L2:
add x2, sp, 40
adrp x0, .LC2
add x1, x0, :lo12:.LC2
mov x0, x2
bl sprintf
add x0, sp, 40
bl strlen
mov x1, x0
add x0, sp, 40
mov x2, x1
mov x1, x0
mov w0, 1
bl write
b .L4
.L5:
add x0, sp, 35
mov x2, 1
mov x1, x0
ldr w0, [sp, 36]
bl write
.L4:
add x0, sp, 35
mov x2, 1
mov x1, x0
mov w0, 0
bl read
cmp x0, 0
bgt .L5
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 .L6
bl __stack_chk_fail
.L6:
ldp x29, x30, [sp], 128
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Enter the length of the array: "
.align 3
.LC1:
.string "%d"
.align 3
.LC2:
.string "Enter %d elements of the array: \n"
.align 3
.LC3:
.string "The array:\n{"
.align 3
.LC4:
.string " %d"
.align 3
.LC5:
.string "}"
.align 3
.LC6:
.string "The array contains duplicate elements."
.align 3
.LC7:
.string "The array does not contain duplicate elements."
.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
.cfi_def_cfa_register 29
stp x19, x20, [sp, 16]
stp x21, x22, [sp, 32]
stp x23, x24, [sp, 48]
stp x25, x26, [sp, 64]
str x27, [sp, 80]
sub sp, sp, #16
.cfi_offset 19, -128
.cfi_offset 20, -120
.cfi_offset 21, -112
.cfi_offset 22, -104
.cfi_offset 23, -96
.cfi_offset 24, -88
.cfi_offset 25, -80
.cfi_offset 26, -72
.cfi_offset 27, -64
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [x29, 136]
mov x1, 0
mov x0, sp
mov x19, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
add x0, x29, 108
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
ldr w0, [x29, 108]
sxtw x1, w0
sub x1, x1, #1
str x1, [x29, 120]
sxtw x1, w0
mov x26, x1
mov x27, 0
lsr x1, x26, 59
lsl x23, x27, 5
orr x23, x1, x23
lsl x22, x26, 5
sxtw x1, w0
mov x24, x1
mov x25, 0
lsr x1, x24, 59
lsl x21, x25, 5
orr x21, x1, x21
lsl x20, x24, 5
sxtw x0, w0
lsl x0, x0, 2
add x0, x0, 15
lsr x0, x0, 4
lsl x0, x0, 4
and x1, x0, -65536
sub x1, sp, x1
.L2:
cmp sp, x1
beq .L3
sub sp, sp, #65536
str xzr, [sp, 1024]
b .L2
.L3:
and x1, x0, 65535
sub sp, sp, x1
str xzr, [sp]
and x0, x0, 65535
cmp x0, 1024
bcc .L4
str xzr, [sp, 1024]
.L4:
add x0, sp, 16
add x0, x0, 3
lsr x0, x0, 2
lsl x0, x0, 2
str x0, [x29, 128]
ldr w0, [x29, 108]
mov w1, w0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl printf
str wzr, [x29, 112]
b .L5
.L6:
ldrsw x0, [x29, 112]
lsl x0, x0, 2
ldr x1, [x29, 128]
add x0, x1, x0
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
ldr w0, [x29, 112]
add w0, w0, 1
str w0, [x29, 112]
.L5:
ldr w0, [x29, 108]
ldr w1, [x29, 112]
cmp w1, w0
blt .L6
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
str wzr, [x29, 112]
b .L7
.L8:
ldr x0, [x29, 128]
ldrsw x1, [x29, 112]
ldr w0, [x0, x1, lsl 2]
mov w1, w0
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl printf
ldr w0, [x29, 112]
add w0, w0, 1
str w0, [x29, 112]
.L7:
ldr w0, [x29, 108]
ldr w1, [x29, 112]
cmp w1, w0
blt .L8
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl puts
str wzr, [x29, 112]
b .L9
.L13:
ldr w0, [x29, 112]
add w0, w0, 1
str w0, [x29, 116]
b .L10
.L12:
ldr x0, [x29, 128]
ldrsw x1, [x29, 112]
ldr w1, [x0, x1, lsl 2]
ldr x0, [x29, 128]
ldrsw x2, [x29, 116]
ldr w0, [x0, x2, lsl 2]
cmp w1, w0
bne .L11
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl puts
mov w0, 0
bl exit
.L11:
ldr w0, [x29, 116]
add w0, w0, 1
str w0, [x29, 116]
.L10:
ldr w0, [x29, 108]
ldr w1, [x29, 116]
cmp w1, w0
blt .L12
ldr w0, [x29, 112]
add w0, w0, 1
str w0, [x29, 112]
.L9:
ldr w0, [x29, 108]
ldr w1, [x29, 112]
cmp w1, w0
blt .L13
adrp x0, .LC7
add x0, x0, :lo12:.LC7
bl puts
mov sp, x19
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [x29, 136]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L15
bl __stack_chk_fail
.L15:
mov w0, w1
mov sp, x29
ldp x19, x20, [sp, 16]
ldp x21, x22, [sp, 32]
ldp x23, x24, [sp, 48]
ldp x25, x26, [sp, 64]
ldr x27, [sp, 80]
ldp x29, x30, [sp], 144
.cfi_restore 30
.cfi_restore 29
.cfi_restore 27
.cfi_restore 25
.cfi_restore 26
.cfi_restore 23
.cfi_restore 24
.cfi_restore 21
.cfi_restore 22
.cfi_restore 19
.cfi_restore 20
.cfi_def_cfa 31, 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global O2_ENCRYPTION_KEY
.section .rodata
.align 3
.type O2_ENCRYPTION_KEY, %object
.size O2_ENCRYPTION_KEY, 9
O2_ENCRYPTION_KEY:
.string "12345678"
.global O2_CALLBACK_URL
.align 3
.type O2_CALLBACK_URL, %object
.size O2_CALLBACK_URL, 21
O2_CALLBACK_URL:
.string "http://127.0.0.1:%1/"
.global O2_MIME_TYPE_XFORM
.align 3
.type O2_MIME_TYPE_XFORM, %object
.size O2_MIME_TYPE_XFORM, 34
O2_MIME_TYPE_XFORM:
.string "application/x-www-form-urlencoded"
.global O2_KEY_TOKEN
.align 3
.type O2_KEY_TOKEN, %object
.size O2_KEY_TOKEN, 9
O2_KEY_TOKEN:
.string "token.%1"
.global O2_KEY_TOKEN_SECRET
.align 3
.type O2_KEY_TOKEN_SECRET, %object
.size O2_KEY_TOKEN_SECRET, 15
O2_KEY_TOKEN_SECRET:
.string "tokensecret.%1"
.global O2_KEY_CODE
.align 3
.type O2_KEY_CODE, %object
.size O2_KEY_CODE, 8
O2_KEY_CODE:
.string "code.%1"
.global O2_KEY_EXPIRES
.align 3
.type O2_KEY_EXPIRES, %object
.size O2_KEY_EXPIRES, 11
O2_KEY_EXPIRES:
.string "expires.%1"
.global O2_KEY_REFRESH_TOKEN
.align 3
.type O2_KEY_REFRESH_TOKEN, %object
.size O2_KEY_REFRESH_TOKEN, 16
O2_KEY_REFRESH_TOKEN:
.string "refreshtoken.%1"
.global O2_OAUTH_CALLBACK
.align 3
.type O2_OAUTH_CALLBACK, %object
.size O2_OAUTH_CALLBACK, 15
O2_OAUTH_CALLBACK:
.string "oauth_callback"
.global O2_OAUTH_CONSUMER_KEY
.align 3
.type O2_OAUTH_CONSUMER_KEY, %object
.size O2_OAUTH_CONSUMER_KEY, 19
O2_OAUTH_CONSUMER_KEY:
.string "oauth_consumer_key"
.global O2_OAUTH_NONCE
.align 3
.type O2_OAUTH_NONCE, %object
.size O2_OAUTH_NONCE, 12
O2_OAUTH_NONCE:
.string "oauth_nonce"
.global O2_OAUTH_SIGNATURE
.align 3
.type O2_OAUTH_SIGNATURE, %object
.size O2_OAUTH_SIGNATURE, 16
O2_OAUTH_SIGNATURE:
.string "oauth_signature"
.global O2_OAUTH_SIGNATURE_METHOD
.align 3
.type O2_OAUTH_SIGNATURE_METHOD, %object
.size O2_OAUTH_SIGNATURE_METHOD, 23
O2_OAUTH_SIGNATURE_METHOD:
.string "oauth_signature_method"
.global O2_OAUTH_TIMESTAMP
.align 3
.type O2_OAUTH_TIMESTAMP, %object
.size O2_OAUTH_TIMESTAMP, 16
O2_OAUTH_TIMESTAMP:
.string "oauth_timestamp"
.global O2_OAUTH_VERSION
.align 3
.type O2_OAUTH_VERSION, %object
.size O2_OAUTH_VERSION, 14
O2_OAUTH_VERSION:
.string "oauth_version"
.global O2_OAUTH_TOKEN
.align 3
.type O2_OAUTH_TOKEN, %object
.size O2_OAUTH_TOKEN, 12
O2_OAUTH_TOKEN:
.string "oauth_token"
.global O2_OAUTH_TOKEN_SECRET
.align 3
.type O2_OAUTH_TOKEN_SECRET, %object
.size O2_OAUTH_TOKEN_SECRET, 19
O2_OAUTH_TOKEN_SECRET:
.string "oauth_token_secret"
.global O2_OAUTH_CALLBACK_CONFIRMED
.align 3
.type O2_OAUTH_CALLBACK_CONFIRMED, %object
.size O2_OAUTH_CALLBACK_CONFIRMED, 25
O2_OAUTH_CALLBACK_CONFIRMED:
.string "oauth_callback_confirmed"
.global O2_OAUTH_VERFIER
.align 3
.type O2_OAUTH_VERFIER, %object
.size O2_OAUTH_VERFIER, 15
O2_OAUTH_VERFIER:
.string "oauth_verifier"
.global O2_OAUTH2_RESPONSE_TYPE
.align 3
.type O2_OAUTH2_RESPONSE_TYPE, %object
.size O2_OAUTH2_RESPONSE_TYPE, 14
O2_OAUTH2_RESPONSE_TYPE:
.string "response_type"
.global O2_OAUTH2_CLIENT_ID
.align 3
.type O2_OAUTH2_CLIENT_ID, %object
.size O2_OAUTH2_CLIENT_ID, 10
O2_OAUTH2_CLIENT_ID:
.string "client_id"
.global O2_OAUTH2_CLIENT_SECRET
.align 3
.type O2_OAUTH2_CLIENT_SECRET, %object
.size O2_OAUTH2_CLIENT_SECRET, 14
O2_OAUTH2_CLIENT_SECRET:
.string "client_secret"
.global O2_OAUTH2_USERNAME
.align 3
.type O2_OAUTH2_USERNAME, %object
.size O2_OAUTH2_USERNAME, 9
O2_OAUTH2_USERNAME:
.string "username"
.global O2_OAUTH2_PASSWORD
.align 3
.type O2_OAUTH2_PASSWORD, %object
.size O2_OAUTH2_PASSWORD, 9
O2_OAUTH2_PASSWORD:
.string "password"
.global O2_OAUTH2_REDIRECT_URI
.align 3
.type O2_OAUTH2_REDIRECT_URI, %object
.size O2_OAUTH2_REDIRECT_URI, 13
O2_OAUTH2_REDIRECT_URI:
.string "redirect_uri"
.global O2_OAUTH2_SCOPE
.align 3
.type O2_OAUTH2_SCOPE, %object
.size O2_OAUTH2_SCOPE, 6
O2_OAUTH2_SCOPE:
.string "scope"
.global O2_OAUTH2_CODE
.align 3
.type O2_OAUTH2_CODE, %object
.size O2_OAUTH2_CODE, 5
O2_OAUTH2_CODE:
.string "code"
.global O2_OAUTH2_TOKEN
.align 3
.type O2_OAUTH2_TOKEN, %object
.size O2_OAUTH2_TOKEN, 6
O2_OAUTH2_TOKEN:
.string "token"
.global O2_OAUTH2_GRANT_TYPE
.align 3
.type O2_OAUTH2_GRANT_TYPE, %object
.size O2_OAUTH2_GRANT_TYPE, 11
O2_OAUTH2_GRANT_TYPE:
.string "grant_type"
.global O2_OAUTH2_API_KEY
.align 3
.type O2_OAUTH2_API_KEY, %object
.size O2_OAUTH2_API_KEY, 8
O2_OAUTH2_API_KEY:
.string "api_key"
.global O2_OAUTH2_ACCESS_TOKEN
.align 3
.type O2_OAUTH2_ACCESS_TOKEN, %object
.size O2_OAUTH2_ACCESS_TOKEN, 13
O2_OAUTH2_ACCESS_TOKEN:
.string "access_token"
.global O2_OAUTH2_REFRESH_TOKEN
.align 3
.type O2_OAUTH2_REFRESH_TOKEN, %object
.size O2_OAUTH2_REFRESH_TOKEN, 14
O2_OAUTH2_REFRESH_TOKEN:
.string "refresh_token"
.global O2_OAUTH2_EXPIRES_IN
.align 3
.type O2_OAUTH2_EXPIRES_IN, %object
.size O2_OAUTH2_EXPIRES_IN, 11
O2_OAUTH2_EXPIRES_IN:
.string "expires_in"
.global O2_SIGNATURE_TYPE_HMAC_SHA1
.align 3
.type O2_SIGNATURE_TYPE_HMAC_SHA1, %object
.size O2_SIGNATURE_TYPE_HMAC_SHA1, 10
O2_SIGNATURE_TYPE_HMAC_SHA1:
.string "HMAC-SHA1"
.global O2_SIGNATURE_TYPE_PLAINTEXT
.align 3
.type O2_SIGNATURE_TYPE_PLAINTEXT, %object
.size O2_SIGNATURE_TYPE_PLAINTEXT, 10
O2_SIGNATURE_TYPE_PLAINTEXT:
.string "PLAINTEXT"
.global O2_AUTHORIZATION_CODE
.align 3
.type O2_AUTHORIZATION_CODE, %object
.size O2_AUTHORIZATION_CODE, 19
O2_AUTHORIZATION_CODE:
.string "authorization_code"
.global O2_HTTP_AUTHORIZATION_HEADER
.align 3
.type O2_HTTP_AUTHORIZATION_HEADER, %object
.size O2_HTTP_AUTHORIZATION_HEADER, 14
O2_HTTP_AUTHORIZATION_HEADER:
.string "Authorization"
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global gameover
.section .rodata
.align 3
.type gameover, %object
.size gameover, 201
gameover:
.string "\001"
.string "\001\376"
.string "\001\243\020\021,-\020\021,"
.string ",-\020\021"
.string ""
.string "\020\021,-"
.string "-\020\021,-\020\021"
.string "\001\005-"
.string ""
.string ","
.string ",-\020\021,"
.string "\001\003-"
.string "-,"
.string ",-"
.string ""
.string ","
.string ","
.string "\001\005,"
.string ",-"
.string "-,"
.string ",-,"
.string "\001\002,"
.string ",-"
.string "-\020\021"
.string "-"
.string "-"
.string "\001\005-"
.string "-\020\021,-"
.string "-,"
.string "\001\003-"
.string "-"
.string "-,-"
.string ""
.string ",-"
.string "\001\006\020\021,-"
.string "-,"
.string ",-\020\021"
.string ""
.string "\020\021,"
.string ""
.string "-\020\021,-"
.string "-"
.string "\001\005\022\023\023\022"
.string "\023\022"
.string "\023\001\002\022"
.string ""
.string "\023\022\023"
.string ""
.string "\022\023\001\002\022"
.string "\023"
.string "\001\376"
.string "\001{DU\001\006\304\365\001\003\305\3655"
.string "U\001\003"
.string "\001\022\001"
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
.align 3
.LC1:
.string "Enter a date (mm/dd/yyyy): "
.align 3
.LC2:
.string "%d/%d/%d"
.align 3
.LC3:
.string "You entered the date %.4d%.2d%.2d"
.align 3
.LC4:
.string "\n+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -48]!
.cfi_def_cfa_offset 48
.cfi_offset 29, -48
.cfi_offset 30, -40
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 40]
mov x1, 0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
add x2, sp, 36
add x1, sp, 28
add x0, sp, 32
mov x3, x2
mov x2, x1
mov x1, x0
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl __isoc99_scanf
ldr w0, [sp, 36]
ldr w1, [sp, 32]
ldr w2, [sp, 28]
mov w3, w2
mov w2, w1
mov w1, w0
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl puts
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 40]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L3
bl __stack_chk_fail
.L3:
mov w0, w1
ldp x29, x30, [sp], 48
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "fork"
.align 3
.LC1:
.string "child_pid pid=%d\n"
.align 3
.LC2:
.string "ps"
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -32]!
.cfi_def_cfa_offset 32
.cfi_offset 29, -32
.cfi_offset 30, -24
mov x29, sp
bl fork
str w0, [sp, 28]
ldr w0, [sp, 28]
cmn w0, #1
bne .L2
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl perror
b .L3
.L2:
ldr w0, [sp, 28]
cmp w0, 0
bne .L3
bl getpid
mov w1, w0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
mov w0, 0
bl exit
.L3:
mov w0, 3
bl sleep
adrp x0, .LC2
add x0, x0, :lo12:.LC2
bl system
mov w0, 0
bl exit
.cfi_endproc
.LFE6:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global args
.bss
.align 3
.type args, %object
.size args, 4
args:
.zero 4
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 56]
mov x1, 0
mov x0, 1
str x0, [sp, 32]
adrp x0, args
add x0, x0, :lo12:args
mov w1, 1
str w1, [x0]
add x4, sp, 40
mov x3, 0
adrp x0, thread_function
add x2, x0, :lo12:thread_function
mov x1, 0
mov x0, x4
bl pthread_create
str w0, [sp, 28]
adrp x0, args
add x0, x0, :lo12:args
mov w1, 1
str w1, [x0, 4]
b .L2
.L3:
ldr x0, [sp, 32]
add x0, x0, 1
str x0, [sp, 32]
.L2:
ldr x0, [sp, 32]
cmp x0, 0
bgt .L3
mov w0, 0
bl exit
.cfi_endproc
.LFE6:
.size main, .-main
.align 2
.global thread_function
.type thread_function, %function
thread_function:
.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]
str w0, [sp, 36]
ldrsw x0, [sp, 36]
lsl x1, x0, 2
adrp x0, args
add x0, x0, :lo12:args
add x0, x1, x0
str x0, [sp, 40]
b .L6
.L7:
ldr x0, [sp, 40]
ldr w0, [x0]
add w1, w0, 1
ldr x0, [sp, 40]
str w1, [x0]
.L6:
ldr x0, [sp, 40]
ldr w0, [x0]
cmp w0, 0
bgt .L7
mov x0, 0
bl pthread_exit
.cfi_endproc
.LFE7:
.size thread_function, .-thread_function
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "%d\n"
.align 3
.LC1:
.string "%s\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.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
add x0, sp, 16
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
str wzr, [sp, 20]
b .L2
.L3:
add x0, sp, 24
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
add x0, sp, 24
bl calc
ldr w0, [sp, 20]
add w0, w0, 1
str w0, [sp, 20]
.L2:
ldr w0, [sp, 16]
ldr w1, [sp, 20]
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, 1032]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L5
bl __stack_chk_fail
.L5:
mov w0, w1
ldp x29, x30, [sp]
add sp, sp, 1040
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
.align 2
.global calc
.type calc, %function
calc:
.LFB7:
.cfi_startproc
sub sp, sp, #1120
.cfi_def_cfa_offset 1120
stp x29, x30, [sp]
.cfi_offset 29, -1120
.cfi_offset 30, -1112
mov x29, sp
str x0, [sp, 24]
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 1112]
mov x1, 0
ldr x0, [sp, 24]
bl strlen
str x0, [sp, 64]
str xzr, [sp, 48]
ldr x0, [sp, 64]
sub x0, x0, #1
str x0, [sp, 40]
b .L7
.L9:
ldr x1, [sp, 24]
ldr x0, [sp, 40]
add x0, x1, x0
ldrb w2, [x0]
ldr x0, [sp, 48]
add x1, sp, 573
strb w2, [x1, x0]
ldr x0, [sp, 40]
sub x0, x0, #1
str x0, [sp, 40]
ldr x0, [sp, 48]
add x0, x0, 1
str x0, [sp, 48]
.L7:
ldr x1, [sp, 24]
ldr x0, [sp, 40]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 43
beq .L8
ldr x1, [sp, 24]
ldr x0, [sp, 40]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 45
beq .L8
ldr x1, [sp, 24]
ldr x0, [sp, 40]
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 42
bne .L9
.L8:
ldr x0, [sp, 48]
add x0, x0, 1
add x1, sp, 72
strb wzr, [x1, x0]
ldr x0, [sp, 48]
str x0, [sp, 1088]
ldr x1, [sp, 24]
ldr x0, [sp, 40]
add x0, x1, x0
ldrb w0, [x0]
strb w0, [sp, 1074]
str xzr, [sp, 48]
b .L10
.L11:
ldr x1, [sp, 40]
ldr x0, [sp, 48]
sub x0, x1, x0
sub x0, x0, #1
ldr x1, [sp, 24]
add x0, x1, x0
ldrb w2, [x0]
ldr x0, [sp, 48]
add x1, sp, 72
strb w2, [x1, x0]
ldr x0, [sp, 48]
add x0, x0, 1
str x0, [sp, 48]
.L10:
ldr x1, [sp, 48]
ldr x0, [sp, 40]
cmp x1, x0
bcc .L11
ldr x0, [sp, 48]
add x1, sp, 72
strb wzr, [x1, x0]
ldr x0, [sp, 48]
str x0, [sp, 1080]
ldrb w0, [sp, 1074]
cmp w0, 45
beq .L12
cmp w0, 45
bgt .L20
cmp w0, 42
beq .L14
cmp w0, 43
bne .L20
add x0, sp, 72
bl plus
b .L15
.L12:
add x0, sp, 72
bl minus
b .L15
.L14:
add x0, sp, 72
bl mult
nop
.L15:
add x0, sp, 72
bl print
str xzr, [sp, 56]
b .L17
.L18:
ldr x1, [sp, 1104]
ldr x0, [sp, 56]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
bl free
ldr x0, [sp, 56]
add x0, x0, 1
str x0, [sp, 56]
.L17:
ldr x0, [sp, 1096]
ldr x1, [sp, 56]
cmp x1, x0
bcc .L18
ldr x0, [sp, 1104]
bl free
b .L6
.L20:
nop
.L6:
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x2, [sp, 1112]
ldr x1, [x0]
subs x2, x2, x1
mov x1, 0
beq .L19
bl __stack_chk_fail
.L19:
ldp x29, x30, [sp]
add sp, sp, 1120
.cfi_restore 29
.cfi_restore 30
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE7:
.size calc, .-calc
.align 2
.global plus
.type plus, %function
plus:
.LFB8:
.cfi_startproc
stp x29, x30, [sp, -112]!
.cfi_def_cfa_offset 112
.cfi_offset 29, -112
.cfi_offset 30, -104
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -96
str x0, [sp, 40]
ldr x0, [sp, 40]
ldr x1, [x0, 1016]
ldr x0, [sp, 40]
ldr x0, [x0, 1008]
cmp x1, x0
csel x0, x1, x0, cs
str x0, [sp, 88]
ldr x0, [sp, 40]
mov x1, 1
str x1, [x0, 1024]
mov x0, 8
bl malloc
mov x1, x0
ldr x0, [sp, 40]
str x1, [x0, 1032]
ldr x0, [sp, 88]
add x1, x0, 2
ldr x0, [sp, 40]
ldr x19, [x0, 1032]
mov x0, x1
bl malloc
str x0, [x19]
str xzr, [sp, 64]
str xzr, [sp, 72]
b .L22
.L29:
ldr x0, [sp, 40]
ldr x0, [x0, 1008]
ldr x1, [sp, 72]
cmp x1, x0
bcs .L23
ldr x1, [sp, 40]
ldr x0, [sp, 72]
add x0, x1, x0
ldrb w0, [x0]
b .L24
.L23:
mov w0, 48
.L24:
strb w0, [sp, 62]
ldr x0, [sp, 40]
ldr x0, [x0, 1016]
ldr x1, [sp, 72]
cmp x1, x0
bcs .L25
ldr x1, [sp, 40]
ldr x0, [sp, 72]
add x0, x1, x0
ldrb w0, [x0, 501]
b .L26
.L25:
mov w0, 48
.L26:
strb w0, [sp, 63]
ldrb w0, [sp, 62]
sub w0, w0, #48
sxtw x0, w0
str x0, [sp, 96]
ldrb w0, [sp, 63]
sub w0, w0, #48
sxtw x0, w0
str x0, [sp, 104]
ldr x1, [sp, 96]
ldr x0, [sp, 104]
add x0, x1, x0
ldr x1, [sp, 64]
add x0, x1, x0
str x0, [sp, 80]
ldr x0, [sp, 80]
cmp x0, 9
bls .L27
ldr x1, [sp, 80]
mov x0, -3689348814741910324
movk x0, 0xcccd, lsl 0
umulh x0, x1, x0
lsr x0, x0, 3
str x0, [sp, 64]
ldr x1, [sp, 80]
mov x0, -3689348814741910324
movk x0, 0xcccd, lsl 0
umulh x0, x1, x0
lsr x2, x0, 3
mov x0, x2
lsl x0, x0, 2
add x0, x0, x2
lsl x0, x0, 1
sub x0, x1, x0
str x0, [sp, 80]
b .L28
.L27:
str xzr, [sp, 64]
.L28:
ldr x0, [sp, 80]
and w1, w0, 255
ldr x0, [sp, 40]
ldr x0, [x0, 1032]
ldr x2, [x0]
ldr x0, [sp, 72]
add x0, x2, x0
add w1, w1, 48
and w1, w1, 255
strb w1, [x0]
ldr x0, [sp, 72]
add x0, x0, 1
str x0, [sp, 72]
.L22:
ldr x0, [sp, 40]
ldr x0, [x0, 1008]
ldr x1, [sp, 72]
cmp x1, x0
bcc .L29
ldr x0, [sp, 40]
ldr x0, [x0, 1016]
ldr x1, [sp, 72]
cmp x1, x0
bcc .L29
ldr x0, [sp, 64]
cmp x0, 0
beq .L30
ldr x0, [sp, 40]
ldr x0, [x0, 1032]
ldr x1, [x0]
ldr x0, [sp, 72]
add x2, x0, 1
str x2, [sp, 72]
add x0, x1, x0
mov w1, 49
strb w1, [x0]
.L30:
ldr x0, [sp, 40]
ldr x0, [x0, 1032]
ldr x1, [x0]
ldr x0, [sp, 72]
add x0, x1, x0
strb wzr, [x0]
ldr x2, [sp, 72]
mov x1, 0
ldr x0, [sp, 40]
bl trim
nop
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
.LFE8:
.size plus, .-plus
.align 2
.global minus
.type minus, %function
minus:
.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]
ldr x0, [sp, 40]
ldr x1, [x0, 1016]
ldr x0, [sp, 40]
ldr x0, [x0, 1008]
cmp x1, x0
csel x0, x1, x0, cs
str x0, [sp, 88]
ldr x0, [sp, 40]
mov x1, 1
str x1, [x0, 1024]
mov x0, 8
bl malloc
mov x1, x0
ldr x0, [sp, 40]
str x1, [x0, 1032]
ldr x0, [sp, 88]
add x1, x0, 1
ldr x0, [sp, 40]
ldr x19, [x0, 1032]
mov x0, x1
bl malloc
str x0, [x19]
str xzr, [sp, 64]
str xzr, [sp, 72]
b .L32
.L39:
ldr x0, [sp, 40]
ldr x0, [x0, 1008]
ldr x1, [sp, 72]
cmp x1, x0
bcs .L33
ldr x1, [sp, 40]
ldr x0, [sp, 72]
add x0, x1, x0
ldrb w0, [x0]
b .L34
.L33:
mov w0, 48
.L34:
strb w0, [sp, 62]
ldr x0, [sp, 40]
ldr x0, [x0, 1016]
ldr x1, [sp, 72]
cmp x1, x0
bcs .L35
ldr x1, [sp, 40]
ldr x0, [sp, 72]
add x0, x1, x0
ldrb w0, [x0, 501]
b .L36
.L35:
mov w0, 48
.L36:
strb w0, [sp, 63]
ldrb w0, [sp, 62]
sub w0, w0, #48
sxtw x0, w0
str x0, [sp, 96]
ldrb w0, [sp, 63]
sub w0, w0, #48
sxtw x0, w0
str x0, [sp, 104]
ldr x1, [sp, 96]
ldr x0, [sp, 104]
sub x1, x1, x0
ldr x0, [sp, 64]
sub x0, x1, x0
str x0, [sp, 80]
ldr x0, [sp, 80]
cmp x0, 0
bge .L37
ldr x0, [sp, 80]
add x1, x0, 10
mov x0, 7378697629483820646
movk x0, 0x6667, lsl 0
smulh x0, x1, x0
asr x2, x0, 2
asr x0, x1, 63
sub x2, x2, x0
mov x0, x2
lsl x0, x0, 2
add x0, x0, x2
lsl x0, x0, 1
sub x0, x1, x0
str x0, [sp, 80]
mov x0, 1
str x0, [sp, 64]
b .L38
.L37:
str xzr, [sp, 64]
.L38:
ldr x0, [sp, 80]
and w1, w0, 255
ldr x0, [sp, 40]
ldr x0, [x0, 1032]
ldr x2, [x0]
ldr x0, [sp, 72]
add x0, x2, x0
add w1, w1, 48
and w1, w1, 255
strb w1, [x0]
ldr x0, [sp, 72]
add x0, x0, 1
str x0, [sp, 72]
.L32:
ldr x0, [sp, 40]
ldr x0, [x0, 1008]
ldr x1, [sp, 72]
cmp x1, x0
bcc .L39
ldr x0, [sp, 40]
ldr x0, [x0, 1032]
ldr x1, [x0]
ldr x0, [sp, 40]
ldr x0, [x0, 1008]
add x0, x1, x0
strb wzr, [x0]
ldr x0, [sp, 40]
ldr x0, [x0, 1008]
mov x2, x0
mov x1, 0
ldr x0, [sp, 40]
bl trim
nop
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 minus, .-minus
.align 2
.global mult
.type mult, %function
mult:
.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 x19, [sp, 16]
.cfi_offset 19, -160
str x0, [sp, 40]
str xzr, [sp, 48]
ldr x0, [sp, 40]
ldr x0, [x0, 1016]
add x1, x0, 1
ldr x0, [sp, 40]
str x1, [x0, 1024]
ldr x0, [sp, 40]
ldr x0, [x0, 1024]
lsl x0, x0, 3
bl malloc
mov x1, x0
ldr x0, [sp, 40]
str x1, [x0, 1032]
str xzr, [sp, 56]
b .L41
.L48:
ldr x1, [sp, 40]
ldr x0, [sp, 56]
add x0, x1, x0
ldrb w0, [x0, 501]
sub w0, w0, #48
sxtw x0, w0
str x0, [sp, 136]
ldr x0, [sp, 136]
cmp x0, 0
bne .L42
ldr x0, [sp, 40]
ldr x1, [x0, 1032]
ldr x0, [sp, 56]
lsl x0, x0, 3
add x19, x1, x0
mov x0, 2
bl malloc
str x0, [x19]
ldr x0, [sp, 40]
ldr x1, [x0, 1032]
ldr x0, [sp, 56]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
mov w1, 48
strb w1, [x0]
ldr x0, [sp, 40]
ldr x1, [x0, 1032]
ldr x0, [sp, 56]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
add x0, x0, 1
strb wzr, [x0]
b .L43
.L42:
ldr x0, [sp, 40]
ldr x0, [x0, 1008]
add x2, x0, 2
ldr x0, [sp, 40]
ldr x1, [x0, 1032]
ldr x0, [sp, 56]
lsl x0, x0, 3
add x19, x1, x0
mov x0, x2
bl malloc
str x0, [x19]
str xzr, [sp, 64]
b .L44
.L45:
ldr x1, [sp, 40]
ldr x0, [sp, 64]
add x0, x1, x0
ldrb w0, [x0]
sub w0, w0, #48
sxtw x0, w0
str x0, [sp, 152]
ldr x1, [sp, 152]
ldr x0, [sp, 136]
mul x0, x1, x0
ldr x1, [sp, 48]
add x0, x1, x0
str x0, [sp, 160]
ldr x1, [sp, 160]
mov x0, -3689348814741910324
movk x0, 0xcccd, lsl 0
umulh x0, x1, x0
lsr x0, x0, 3
str x0, [sp, 48]
ldr x1, [sp, 160]
mov x0, -3689348814741910324
movk x0, 0xcccd, lsl 0
umulh x0, x1, x0
lsr x2, x0, 3
mov x0, x2
lsl x0, x0, 2
add x0, x0, x2
lsl x0, x0, 1
sub x0, x1, x0
str x0, [sp, 168]
ldr x0, [sp, 168]
and w1, w0, 255
ldr x0, [sp, 40]
ldr x2, [x0, 1032]
ldr x0, [sp, 56]
lsl x0, x0, 3
add x0, x2, x0
ldr x2, [x0]
ldr x0, [sp, 64]
add x0, x2, x0
add w1, w1, 48
and w1, w1, 255
strb w1, [x0]
ldr x0, [sp, 64]
add x0, x0, 1
str x0, [sp, 64]
.L44:
ldr x0, [sp, 40]
ldr x0, [x0, 1008]
ldr x1, [sp, 64]
cmp x1, x0
bcc .L45
b .L46
.L47:
ldr x1, [sp, 48]
mov x0, -3689348814741910324
movk x0, 0xcccd, lsl 0
umulh x0, x1, x0
lsr x2, x0, 3
mov x0, x2
lsl x0, x0, 2
add x0, x0, x2
lsl x0, x0, 1
sub x0, x1, x0
str x0, [sp, 144]
ldr x0, [sp, 144]
and w1, w0, 255
ldr x0, [sp, 40]
ldr x2, [x0, 1032]
ldr x0, [sp, 56]
lsl x0, x0, 3
add x0, x2, x0
ldr x2, [x0]
ldr x0, [sp, 64]
add x3, x0, 1
str x3, [sp, 64]
add x0, x2, x0
add w1, w1, 48
and w1, w1, 255
strb w1, [x0]
ldr x1, [sp, 48]
mov x0, -3689348814741910324
movk x0, 0xcccd, lsl 0
umulh x0, x1, x0
lsr x0, x0, 3
str x0, [sp, 48]
.L46:
ldr x0, [sp, 48]
cmp x0, 0
bne .L47
ldr x0, [sp, 40]
ldr x1, [x0, 1032]
ldr x0, [sp, 56]
lsl x0, x0, 3
add x0, x1, x0
ldr x1, [x0]
ldr x0, [sp, 64]
add x0, x1, x0
strb wzr, [x0]
ldr x2, [sp, 64]
ldr x1, [sp, 56]
ldr x0, [sp, 40]
bl trim
.L43:
ldr x0, [sp, 56]
add x0, x0, 1
str x0, [sp, 56]
.L41:
ldr x0, [sp, 40]
ldr x0, [x0, 1016]
ldr x1, [sp, 56]
cmp x1, x0
bcc .L48
str xzr, [sp, 72]
ldr x0, [sp, 40]
ldr x0, [x0, 1024]
sub x0, x0, #1
lsl x0, x0, 3
bl malloc
str x0, [sp, 120]
str xzr, [sp, 80]
b .L49
.L50:
ldr x0, [sp, 40]
ldr x1, [x0, 1032]
ldr x0, [sp, 80]
lsl x0, x0, 3
add x0, x1, x0
ldr x2, [x0]
ldr x0, [sp, 80]
lsl x0, x0, 3
ldr x1, [sp, 120]
add x19, x1, x0
mov x0, x2
bl strlen
str x0, [x19]
ldr x0, [sp, 80]
lsl x0, x0, 3
ldr x1, [sp, 120]
add x0, x1, x0
ldr x1, [x0]
ldr x0, [sp, 80]
add x0, x1, x0
ldr x2, [sp, 72]
ldr x1, [sp, 72]
cmp x2, x0
csel x0, x1, x0, cs
str x0, [sp, 72]
ldr x0, [sp, 80]
add x0, x0, 1
str x0, [sp, 80]
.L49:
ldr x0, [sp, 40]
ldr x0, [x0, 1024]
sub x0, x0, #1
ldr x1, [sp, 80]
cmp x1, x0
bcc .L50
ldr x0, [sp, 72]
add x2, x0, 2
ldr x0, [sp, 40]
ldr x1, [x0, 1032]
ldr x0, [sp, 40]
ldr x0, [x0, 1024]
lsl x0, x0, 3
sub x0, x0, #8
add x19, x1, x0
mov x0, x2
bl malloc
str x0, [x19]
str xzr, [sp, 88]
str xzr, [sp, 96]
b .L51
.L57:
str xzr, [sp, 104]
ldr x0, [sp, 40]
ldr x0, [x0, 1024]
sub x0, x0, #2
ldr x2, [sp, 96]
ldr x1, [sp, 96]
cmp x2, x0
csel x0, x1, x0, ls
str x0, [sp, 128]
str xzr, [sp, 112]
b .L52
.L54:
ldr x0, [sp, 112]
lsl x0, x0, 3
ldr x1, [sp, 120]
add x0, x1, x0
ldr x1, [x0]
ldr x0, [sp, 112]
add x0, x1, x0
ldr x1, [sp, 96]
cmp x1, x0
bcs .L53
ldr x0, [sp, 40]
ldr x1, [x0, 1032]
ldr x0, [sp, 112]
lsl x0, x0, 3
add x0, x1, x0
ldr x1, [x0]
ldr x2, [sp, 96]
ldr x0, [sp, 112]
sub x0, x2, x0
add x0, x1, x0
ldrb w0, [x0]
sub w0, w0, #48
sxtw x0, w0
ldr x1, [sp, 104]
add x0, x1, x0
str x0, [sp, 104]
.L53:
ldr x0, [sp, 112]
add x0, x0, 1
str x0, [sp, 112]
.L52:
ldr x1, [sp, 112]
ldr x0, [sp, 128]
cmp x1, x0
bls .L54
ldr x1, [sp, 104]
ldr x0, [sp, 88]
add x0, x1, x0
str x0, [sp, 104]
ldr x0, [sp, 104]
cmp x0, 9
bls .L55
ldr x1, [sp, 104]
mov x0, -3689348814741910324
movk x0, 0xcccd, lsl 0
umulh x0, x1, x0
lsr x0, x0, 3
str x0, [sp, 88]
ldr x1, [sp, 104]
mov x0, -3689348814741910324
movk x0, 0xcccd, lsl 0
umulh x0, x1, x0
lsr x2, x0, 3
mov x0, x2
lsl x0, x0, 2
add x0, x0, x2
lsl x0, x0, 1
sub x0, x1, x0
str x0, [sp, 104]
b .L56
.L55:
str xzr, [sp, 88]
.L56:
ldr x0, [sp, 104]
and w1, w0, 255
ldr x0, [sp, 40]
ldr x2, [x0, 1032]
ldr x0, [sp, 40]
ldr x0, [x0, 1024]
lsl x0, x0, 3
sub x0, x0, #8
add x0, x2, x0
ldr x2, [x0]
ldr x0, [sp, 96]
add x0, x2, x0
add w1, w1, 48
and w1, w1, 255
strb w1, [x0]
ldr x0, [sp, 96]
add x0, x0, 1
str x0, [sp, 96]
.L51:
ldr x1, [sp, 96]
ldr x0, [sp, 72]
cmp x1, x0
bcc .L57
ldr x0, [sp, 88]
cmp x0, 0
beq .L58
ldr x0, [sp, 88]
and w1, w0, 255
ldr x0, [sp, 40]
ldr x2, [x0, 1032]
ldr x0, [sp, 40]
ldr x0, [x0, 1024]
lsl x0, x0, 3
sub x0, x0, #8
add x0, x2, x0
ldr x2, [x0]
ldr x0, [sp, 72]
add x0, x2, x0
add w1, w1, 48
and w1, w1, 255
strb w1, [x0]
ldr x0, [sp, 40]
ldr x1, [x0, 1032]
ldr x0, [sp, 40]
ldr x0, [x0, 1024]
lsl x0, x0, 3
sub x0, x0, #8
add x0, x1, x0
ldr x1, [x0]
ldr x0, [sp, 72]
add x0, x0, 1
str x0, [sp, 72]
ldr x0, [sp, 72]
add x0, x1, x0
strb wzr, [x0]
b .L59
.L58:
ldr x0, [sp, 40]
ldr x1, [x0, 1032]
ldr x0, [sp, 40]
ldr x0, [x0, 1024]
lsl x0, x0, 3
sub x0, x0, #8
add x0, x1, x0
ldr x1, [x0]
ldr x0, [sp, 72]
add x0, x1, x0
strb wzr, [x0]
.L59:
ldr x0, [sp, 40]
ldr x0, [x0, 1024]
sub x0, x0, #1
ldr x2, [sp, 72]
mov x1, x0
ldr x0, [sp, 40]
bl trim
ldr x0, [sp, 120]
bl free
nop
ldr x19, [sp, 16]
ldp x29, x30, [sp], 176
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE10:
.size mult, .-mult
.align 2
.global trim
.type trim, %function
trim:
.LFB11:
.cfi_startproc
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, 24]
str x1, [sp, 16]
str x2, [sp, 8]
str xzr, [sp, 40]
b .L61
.L65:
ldr x0, [sp, 24]
ldr x1, [x0, 1032]
ldr x0, [sp, 16]
lsl x0, x0, 3
add x0, x1, x0
ldr x1, [x0]
ldr x2, [sp, 8]
ldr x0, [sp, 40]
sub x0, x2, x0
sub x0, x0, #1
add x0, x1, x0
ldrb w0, [x0]
cmp w0, 48
bne .L66
ldr x0, [sp, 24]
ldr x1, [x0, 1032]
ldr x0, [sp, 16]
lsl x0, x0, 3
add x0, x1, x0
ldr x1, [x0]
ldr x2, [sp, 8]
ldr x0, [sp, 40]
sub x0, x2, x0
sub x0, x0, #1
add x0, x1, x0
strb wzr, [x0]
ldr x0, [sp, 40]
add x0, x0, 1
str x0, [sp, 40]
.L61:
ldr x0, [sp, 8]
sub x0, x0, #1
ldr x1, [sp, 40]
cmp x1, x0
bcc .L65
b .L67
.L66:
nop
.L67:
nop
add sp, sp, 48
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE11:
.size trim, .-trim
.align 2
.global print
.type print, %function
print:
.LFB12:
.cfi_startproc
stp x29, x30, [sp, -192]!
.cfi_def_cfa_offset 192
.cfi_offset 29, -192
.cfi_offset 30, -184
mov x29, sp
str x19, [sp, 16]
.cfi_offset 19, -176
str x0, [sp, 40]
ldr x0, [sp, 40]
ldr x0, [x0, 1016]
add x1, x0, 1
ldr x0, [sp, 40]
ldr x0, [x0, 1008]
cmp x1, x0
csel x0, x1, x0, cs
str x0, [sp, 48]
str xzr, [sp, 56]
b .L69
.L72:
ldr x0, [sp, 40]
ldr x1, [x0, 1032]
ldr x0, [sp, 56]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
bl strlen
mov x1, x0
ldr x0, [sp, 56]
add x0, x1, x0
ldr x1, [sp, 48]
cmp x1, x0
bhi .L70
ldr x0, [sp, 40]
ldr x1, [x0, 1032]
ldr x0, [sp, 56]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
bl strlen
mov x1, x0
ldr x0, [sp, 56]
add x0, x1, x0
b .L71
.L70:
ldr x0, [sp, 48]
.L71:
str x0, [sp, 48]
ldr x0, [sp, 56]
add x0, x0, 1
str x0, [sp, 56]
.L69:
ldr x0, [sp, 40]
ldr x0, [x0, 1024]
sub x0, x0, #1
ldr x1, [sp, 56]
cmp x1, x0
bcc .L72
ldr x0, [sp, 40]
ldr x1, [x0, 1032]
ldr x0, [sp, 40]
ldr x0, [x0, 1024]
lsl x0, x0, 3
sub x0, x0, #8
add x0, x1, x0
ldr x0, [x0]
bl strlen
mov x1, x0
ldr x0, [sp, 48]
cmp x0, x1
bhi .L73
ldr x0, [sp, 40]
ldr x1, [x0, 1032]
ldr x0, [sp, 40]
ldr x0, [x0, 1024]
lsl x0, x0, 3
sub x0, x0, #8
add x0, x1, x0
ldr x0, [x0]
bl strlen
b .L74
.L73:
ldr x0, [sp, 48]
.L74:
str x0, [sp, 48]
str xzr, [sp, 64]
b .L75
.L76:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x1, x0
mov w0, 32
bl fputc
ldr x0, [sp, 64]
add x0, x0, 1
str x0, [sp, 64]
.L75:
ldr x0, [sp, 40]
ldr x0, [x0, 1008]
ldr x1, [sp, 48]
sub x0, x1, x0
ldr x1, [sp, 64]
cmp x1, x0
bcc .L76
str xzr, [sp, 72]
b .L77
.L78:
ldr x0, [sp, 40]
ldr x1, [x0, 1008]
ldr x0, [sp, 72]
sub x0, x1, x0
sub x0, x0, #1
ldr x1, [sp, 40]
ldrb w0, [x1, x0]
mov w2, w0
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x1, x0
mov w0, w2
bl fputc
ldr x0, [sp, 72]
add x0, x0, 1
str x0, [sp, 72]
.L77:
ldr x0, [sp, 40]
ldr x0, [x0, 1008]
ldr x1, [sp, 72]
cmp x1, x0
bcc .L78
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x1, x0
mov w0, 10
bl fputc
str xzr, [sp, 80]
b .L79
.L80:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x1, x0
mov w0, 32
bl fputc
ldr x0, [sp, 80]
add x0, x0, 1
str x0, [sp, 80]
.L79:
ldr x0, [sp, 40]
ldr x0, [x0, 1016]
ldr x1, [sp, 48]
sub x0, x1, x0
sub x0, x0, #1
ldr x1, [sp, 80]
cmp x1, x0
bcc .L80
ldr x0, [sp, 40]
ldrb w0, [x0, 1002]
mov w2, w0
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x1, x0
mov w0, w2
bl fputc
str xzr, [sp, 88]
b .L81
.L82:
ldr x0, [sp, 40]
ldr x1, [x0, 1016]
ldr x0, [sp, 88]
sub x0, x1, x0
sub x0, x0, #1
ldr x1, [sp, 40]
add x0, x1, x0
ldrb w0, [x0, 501]
mov w2, w0
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x1, x0
mov w0, w2
bl fputc
ldr x0, [sp, 88]
add x0, x0, 1
str x0, [sp, 88]
.L81:
ldr x0, [sp, 40]
ldr x0, [x0, 1016]
ldr x1, [sp, 88]
cmp x1, x0
bcc .L82
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x1, x0
mov w0, 10
bl fputc
ldr x0, [sp, 40]
ldr x0, [x0, 1016]
add x19, x0, 1
ldr x0, [sp, 40]
ldr x0, [x0, 1032]
ldr x0, [x0]
bl strlen
cmp x19, x0
bls .L83
ldr x0, [sp, 40]
ldr x0, [x0, 1016]
add x0, x0, 1
b .L84
.L83:
ldr x0, [sp, 40]
ldr x0, [x0, 1032]
ldr x0, [x0]
bl strlen
.L84:
str x0, [sp, 160]
str xzr, [sp, 96]
b .L85
.L88:
ldr x1, [sp, 48]
ldr x0, [sp, 160]
sub x0, x1, x0
ldr x1, [sp, 96]
cmp x1, x0
bcs .L86
mov w0, 32
b .L87
.L86:
mov w0, 45
.L87:
adrp x1, :got:stdout
ldr x1, [x1, #:got_lo12:stdout]
ldr x1, [x1]
bl fputc
ldr x0, [sp, 96]
add x0, x0, 1
str x0, [sp, 96]
.L85:
ldr x1, [sp, 96]
ldr x0, [sp, 48]
cmp x1, x0
bcc .L88
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x1, x0
mov w0, 10
bl fputc
str xzr, [sp, 104]
b .L89
.L94:
ldr x0, [sp, 40]
ldr x1, [x0, 1032]
ldr x0, [sp, 104]
lsl x0, x0, 3
add x0, x1, x0
ldr x0, [x0]
bl strlen
str x0, [sp, 184]
str xzr, [sp, 112]
b .L90
.L91:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x1, x0
mov w0, 32
bl fputc
ldr x0, [sp, 112]
add x0, x0, 1
str x0, [sp, 112]
.L90:
ldr x1, [sp, 48]
ldr x0, [sp, 184]
sub x1, x1, x0
ldr x0, [sp, 104]
sub x0, x1, x0
ldr x1, [sp, 112]
cmp x1, x0
bcc .L91
str xzr, [sp, 120]
b .L92
.L93:
ldr x0, [sp, 40]
ldr x1, [x0, 1032]
ldr x0, [sp, 104]
lsl x0, x0, 3
add x0, x1, x0
ldr x1, [x0]
ldr x2, [sp, 184]
ldr x0, [sp, 120]
sub x0, x2, x0
sub x0, x0, #1
add x0, x1, x0
ldrb w0, [x0]
mov w2, w0
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x1, x0
mov w0, w2
bl fputc
ldr x0, [sp, 120]
add x0, x0, 1
str x0, [sp, 120]
.L92:
ldr x1, [sp, 120]
ldr x0, [sp, 184]
cmp x1, x0
bcc .L93
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x1, x0
mov w0, 10
bl fputc
ldr x0, [sp, 104]
add x0, x0, 1
str x0, [sp, 104]
.L89:
ldr x0, [sp, 40]
ldr x0, [x0, 1024]
sub x0, x0, #1
ldr x1, [sp, 104]
cmp x1, x0
bcc .L94
ldr x0, [sp, 40]
ldrb w0, [x0, 1002]
cmp w0, 42
bne .L95
ldr x0, [sp, 40]
ldr x0, [x0, 1024]
cmp x0, 2
bls .L95
ldr x0, [sp, 40]
ldr x1, [x0, 1032]
ldr x0, [sp, 40]
ldr x0, [x0, 1024]
lsl x0, x0, 3
sub x0, x0, #8
add x0, x1, x0
ldr x0, [x0]
bl strlen
mov x19, x0
ldr x0, [sp, 40]
ldr x1, [x0, 1032]
ldr x0, [sp, 40]
ldr x0, [x0, 1024]
lsl x0, x0, 3
sub x0, x0, #16
add x0, x1, x0
ldr x0, [x0]
bl strlen
cmp x19, x0
bls .L96
ldr x0, [sp, 40]
ldr x1, [x0, 1032]
ldr x0, [sp, 40]
ldr x0, [x0, 1024]
lsl x0, x0, 3
sub x0, x0, #8
add x0, x1, x0
ldr x0, [x0]
bl strlen
b .L97
.L96:
ldr x0, [sp, 40]
ldr x1, [x0, 1032]
ldr x0, [sp, 40]
ldr x0, [x0, 1024]
lsl x0, x0, 3
sub x0, x0, #16
add x0, x1, x0
ldr x0, [x0]
bl strlen
.L97:
str x0, [sp, 168]
str xzr, [sp, 128]
b .L98
.L99:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x1, x0
mov w0, 32
bl fputc
ldr x0, [sp, 128]
add x0, x0, 1
str x0, [sp, 128]
.L98:
ldr x1, [sp, 48]
ldr x0, [sp, 168]
sub x0, x1, x0
ldr x1, [sp, 128]
cmp x1, x0
bcc .L99
str xzr, [sp, 136]
b .L100
.L101:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x1, x0
mov w0, 45
bl fputc
ldr x0, [sp, 136]
add x0, x0, 1
str x0, [sp, 136]
.L100:
ldr x1, [sp, 136]
ldr x0, [sp, 168]
cmp x1, x0
bcc .L101
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x1, x0
mov w0, 10
bl fputc
.L95:
ldr x0, [sp, 40]
ldrb w0, [x0, 1002]
cmp w0, 42
bne .L102
ldr x0, [sp, 40]
ldr x0, [x0, 1024]
cmp x0, 2
bls .L103
.L102:
ldr x0, [sp, 40]
ldr x1, [x0, 1032]
ldr x0, [sp, 40]
ldr x0, [x0, 1024]
lsl x0, x0, 3
sub x0, x0, #8
add x0, x1, x0
ldr x0, [x0]
bl strlen
str x0, [sp, 176]
ldr x1, [sp, 176]
ldr x0, [sp, 48]
cmp x1, x0
bcs .L104
str xzr, [sp, 144]
b .L105
.L106:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x1, x0
mov w0, 32
bl fputc
ldr x0, [sp, 144]
add x0, x0, 1
str x0, [sp, 144]
.L105:
ldr x1, [sp, 48]
ldr x0, [sp, 176]
sub x0, x1, x0
ldr x1, [sp, 144]
cmp x1, x0
bcc .L106
.L104:
str xzr, [sp, 152]
b .L107
.L108:
ldr x0, [sp, 40]
ldr x1, [x0, 1032]
ldr x0, [sp, 40]
ldr x0, [x0, 1024]
lsl x0, x0, 3
sub x0, x0, #8
add x0, x1, x0
ldr x1, [x0]
ldr x2, [sp, 176]
ldr x0, [sp, 152]
sub x0, x2, x0
sub x0, x0, #1
add x0, x1, x0
ldrb w0, [x0]
mov w2, w0
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x1, x0
mov w0, w2
bl fputc
ldr x0, [sp, 152]
add x0, x0, 1
str x0, [sp, 152]
.L107:
ldr x1, [sp, 152]
ldr x0, [sp, 176]
cmp x1, x0
bcc .L108
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x1, x0
mov w0, 10
bl fputc
.L103:
adrp x0, :got:stdout
ldr x0, [x0, #:got_lo12:stdout]
ldr x0, [x0]
mov x1, x0
mov w0, 10
bl fputc
nop
ldr x19, [sp, 16]
ldp x29, x30, [sp], 192
.cfi_restore 30
.cfi_restore 29
.cfi_restore 19
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE12:
.size print, .-print
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.data
.align 3
.type bx_paste_bmap, %object
.size bx_paste_bmap, 1024
bx_paste_bmap:
.string ""
.string ""
.string ""
.string ""
.string "\340\001\020"
.string " \232\223\003 fx\004\340\245\323\007 $T"
.string " \330\223\003"
.string "\200\001"
.string ""
.string "\300\002"
.string ""
.string "|?"
.string "\300\203\301\003 \002@\004 \001\200\004 \001\200\004\240\377\377\005 "
.string ""
.string "\004 "
.string ""
.string "\004 \370?\004 \b \004 \350+\004 \b \004 \350.\004 \b \004 \3509\004 \b$\004 \210 \004 \350/\004 \b \004 \370?\004 "
.string ""
.string "\004\300\377\377\003"
.string ""
.string ""
.string ""
.string ""
.zero 895
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global fence
.type fence, %function
fence:
.LFB0:
.cfi_startproc
#APP
// 1 "program.c" 1
sync
// 0 "" 2
#NO_APP
nop
ret
.cfi_endproc
.LFE0:
.size fence, .-fence
.align 2
.global lwfence
.type lwfence, %function
lwfence:
.LFB1:
.cfi_startproc
#APP
// 2 "program.c" 1
lwsync
// 0 "" 2
#NO_APP
nop
ret
.cfi_endproc
.LFE1:
.size lwfence, .-lwfence
.align 2
.global isync
.type isync, %function
isync:
.LFB2:
.cfi_startproc
#APP
// 3 "program.c" 1
isync
// 0 "" 2
#NO_APP
nop
ret
.cfi_endproc
.LFE2:
.size isync, .-isync
.global __unbuffered_cnt
.bss
.align 2
.type __unbuffered_cnt, %object
.size __unbuffered_cnt, 4
__unbuffered_cnt:
.zero 4
.global __unbuffered_p0_r1
.align 2
.type __unbuffered_p0_r1, %object
.size __unbuffered_p0_r1, 4
__unbuffered_p0_r1:
.zero 4
.global __unbuffered_p0_r3
.align 2
.type __unbuffered_p0_r3, %object
.size __unbuffered_p0_r3, 4
__unbuffered_p0_r3:
.zero 4
.global __unbuffered_p1_r1
.align 2
.type __unbuffered_p1_r1, %object
.size __unbuffered_p1_r1, 4
__unbuffered_p1_r1:
.zero 4
.global __unbuffered_p1_r3
.align 2
.type __unbuffered_p1_r3, %object
.size __unbuffered_p1_r3, 4
__unbuffered_p1_r3:
.zero 4
.global __unbuffered_p2_r1
.align 2
.type __unbuffered_p2_r1, %object
.size __unbuffered_p2_r1, 4
__unbuffered_p2_r1:
.zero 4
.global __unbuffered_p2_r3
.align 2
.type __unbuffered_p2_r3, %object
.size __unbuffered_p2_r3, 4
__unbuffered_p2_r3:
.zero 4
.global __unbuffered_p2_r4
.align 2
.type __unbuffered_p2_r4, %object
.size __unbuffered_p2_r4, 4
__unbuffered_p2_r4:
.zero 4
.global __unbuffered_p2_r6
.align 2
.type __unbuffered_p2_r6, %object
.size __unbuffered_p2_r6, 4
__unbuffered_p2_r6:
.zero 4
.global __unbuffered_p2_r8
.align 2
.type __unbuffered_p2_r8, %object
.size __unbuffered_p2_r8, 4
__unbuffered_p2_r8:
.zero 4
.global a
.align 2
.type a, %object
.size a, 4
a:
.zero 4
.global x
.align 2
.type x, %object
.size x, 4
x:
.zero 4
.global y
.align 2
.type y, %object
.size y, 4
y:
.zero 4
.global z
.align 2
.type z, %object
.size z, 4
z:
.zero 4
.text
.align 2
.global P0
.type P0, %function
P0:
.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]
adrp x0, __unbuffered_p0_r1
add x0, x0, :lo12:__unbuffered_p0_r1
mov w1, 2
str w1, [x0]
adrp x0, __unbuffered_p0_r1
add x0, x0, :lo12:__unbuffered_p0_r1
ldr w1, [x0]
adrp x0, a
add x0, x0, :lo12:a
str w1, [x0]
bl fence
adrp x0, __unbuffered_p0_r3
add x0, x0, :lo12:__unbuffered_p0_r3
mov w1, 1
str w1, [x0]
adrp x0, __unbuffered_p0_r3
add x0, x0, :lo12:__unbuffered_p0_r3
ldr w1, [x0]
adrp x0, x
add x0, x0, :lo12:x
str w1, [x0]
bl fence
adrp x0, __unbuffered_cnt
add x0, x0, :lo12:__unbuffered_cnt
ldr w0, [x0]
add w1, w0, 1
adrp x0, __unbuffered_cnt
add x0, x0, :lo12:__unbuffered_cnt
str w1, [x0]
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE3:
.size P0, .-P0
.align 2
.global P1
.type P1, %function
P1:
.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]
adrp x0, __unbuffered_p1_r1
add x0, x0, :lo12:__unbuffered_p1_r1
mov w1, 2
str w1, [x0]
adrp x0, __unbuffered_p1_r1
add x0, x0, :lo12:__unbuffered_p1_r1
ldr w1, [x0]
adrp x0, x
add x0, x0, :lo12:x
str w1, [x0]
bl fence
adrp x0, __unbuffered_p1_r3
add x0, x0, :lo12:__unbuffered_p1_r3
mov w1, 1
str w1, [x0]
adrp x0, __unbuffered_p1_r3
add x0, x0, :lo12:__unbuffered_p1_r3
ldr w1, [x0]
adrp x0, y
add x0, x0, :lo12:y
str w1, [x0]
bl fence
adrp x0, __unbuffered_cnt
add x0, x0, :lo12:__unbuffered_cnt
ldr w0, [x0]
add w1, w0, 1
adrp x0, __unbuffered_cnt
add x0, x0, :lo12:__unbuffered_cnt
str w1, [x0]
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE4:
.size P1, .-P1
.align 2
.global P2
.type P2, %function
P2:
.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]
adrp x0, y
add x0, x0, :lo12:y
ldr w1, [x0]
adrp x0, __unbuffered_p2_r1
add x0, x0, :lo12:__unbuffered_p2_r1
str w1, [x0]
adrp x0, __unbuffered_p2_r3
add x0, x0, :lo12:__unbuffered_p2_r3
str wzr, [x0]
adrp x0, __unbuffered_p2_r3
add x0, x0, :lo12:__unbuffered_p2_r3
ldr w0, [x0]
sxtw x0, w0
lsl x1, x0, 2
adrp x0, z
add x0, x0, :lo12:z
add x0, x1, x0
ldr w1, [x0]
adrp x0, __unbuffered_p2_r4
add x0, x0, :lo12:__unbuffered_p2_r4
str w1, [x0]
adrp x0, __unbuffered_p2_r6
add x0, x0, :lo12:__unbuffered_p2_r6
mov w1, 1
str w1, [x0]
adrp x0, __unbuffered_p2_r6
add x0, x0, :lo12:__unbuffered_p2_r6
ldr w1, [x0]
adrp x0, a
add x0, x0, :lo12:a
str w1, [x0]
adrp x0, a
add x0, x0, :lo12:a
ldr w1, [x0]
adrp x0, __unbuffered_p2_r8
add x0, x0, :lo12:__unbuffered_p2_r8
str w1, [x0]
bl fence
adrp x0, __unbuffered_cnt
add x0, x0, :lo12:__unbuffered_cnt
ldr w0, [x0]
add w1, w0, 1
adrp x0, __unbuffered_cnt
add x0, x0, :lo12:__unbuffered_cnt
str w1, [x0]
nop
ldp x29, x30, [sp], 32
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE5:
.size P2, .-P2
.section .rodata
.align 3
.LC0:
.string "Program proven to be relaxed for PPC, model checker says YES."
.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
.L8:
mov x0, 0
bl P0
.L9:
mov x0, 0
bl P1
.L10:
mov x0, 0
bl P2
adrp x0, __unbuffered_cnt
add x0, x0, :lo12:__unbuffered_cnt
ldr w0, [x0]
cmp w0, 3
cset w0, eq
and w0, w0, 255
bl __CPROVER_assume
bl fence
adrp x0, a
add x0, x0, :lo12:a
ldr w0, [x0]
cmp w0, 2
bne .L11
adrp x0, x
add x0, x0, :lo12:x
ldr w0, [x0]
cmp w0, 2
bne .L11
adrp x0, __unbuffered_p2_r1
add x0, x0, :lo12:__unbuffered_p2_r1
ldr w0, [x0]
cmp w0, 1
bne .L11
adrp x0, __unbuffered_p2_r8
add x0, x0, :lo12:__unbuffered_p2_r8
ldr w0, [x0]
cmp w0, 1
beq .L12
.L11:
mov w0, 1
b .L13
.L12:
mov w0, 0
.L13:
adrp x1, .LC0
add x1, x1, :lo12:.LC0
bl __CPROVER_assert
mov w0, 0
ldp x29, x30, [sp], 16
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "%d %d %f\n"
.align 3
.LC1:
.string "VALOR A PAGAR: R$ %.2f\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [sp, 56]
mov x1, 0
add x2, sp, 44
add x1, sp, 36
add x0, sp, 28
mov x3, x2
mov x2, x1
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
add x2, sp, 48
add x1, sp, 40
add x0, sp, 32
mov x3, x2
mov x2, x1
mov x1, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl __isoc99_scanf
ldr s0, [sp, 36]
scvtf s1, s0
ldr s0, [sp, 44]
fmul s1, s1, s0
ldr s0, [sp, 40]
scvtf s2, s0
ldr s0, [sp, 48]
fmul s0, s2, s0
fadd s0, s1, s0
str s0, [sp, 52]
ldr s0, [sp, 52]
fcvt d0, s0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl printf
mov w0, 0
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [sp, 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 "I am child"
.align 3
.LC1:
.string "I am parent"
.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
bl fork
str w0, [sp, 28]
ldr w0, [sp, 28]
cmp w0, 0
bne .L2
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl puts
ldr w0, [sp, 28]
bl kill
b .L3
.L2:
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl puts
mov x0, 0
bl wait
.L3:
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 strchr
.type strchr, %function
strchr:
.LFB0:
.cfi_startproc
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, 8]
str w1, [sp, 4]
b .L2
.L4:
ldr x0, [sp, 8]
add x1, x0, 1
str x1, [sp, 8]
ldrb w0, [x0]
cmp w0, 0
bne .L2
mov x0, 0
b .L3
.L2:
ldr x0, [sp, 8]
ldrb w1, [x0]
ldr w0, [sp, 4]
and w0, w0, 255
cmp w1, w0
bne .L4
ldr x0, [sp, 8]
.L3:
add sp, sp, 16
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size strchr, .-strchr
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "%ld\t%ld\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB0:
.cfi_startproc
stp x29, x30, [sp, -64]!
.cfi_def_cfa_offset 64
.cfi_offset 29, -64
.cfi_offset 30, -56
mov x29, sp
mov x0, 2
str x0, [sp, 24]
str xzr, [sp, 32]
mov x0, 1
str x0, [sp, 40]
mov x0, 2
str x0, [sp, 48]
b .L2
.L8:
mov x0, 1
str x0, [sp, 40]
ldr x0, [sp, 48]
str x0, [sp, 24]
b .L3
.L6:
ldr x0, [sp, 24]
and x0, x0, 1
cmp x0, 0
bne .L4
ldr x0, [sp, 24]
lsr x1, x0, 63
add x0, x1, x0
asr x0, x0, 1
str x0, [sp, 24]
b .L5
.L4:
ldr x1, [sp, 24]
mov x0, x1
lsl x0, x0, 1
add x0, x0, x1
add x0, x0, 1
str x0, [sp, 24]
.L5:
ldr x0, [sp, 40]
add x0, x0, 1
str x0, [sp, 40]
.L3:
ldr x0, [sp, 24]
cmp x0, 1
bne .L6
ldr x1, [sp, 40]
ldr x0, [sp, 32]
cmp x1, x0
ble .L7
ldr x0, [sp, 48]
str x0, [sp, 56]
ldr x0, [sp, 40]
str x0, [sp, 32]
.L7:
ldr x0, [sp, 48]
add x0, x0, 1
str x0, [sp, 48]
.L2:
ldr x1, [sp, 48]
mov x0, 16960
movk x0, 0xf, lsl 16
cmp x1, x0
ble .L8
ldr x2, [sp, 56]
ldr x1, [sp, 32]
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
mov w0, 0
ldp x29, x30, [sp], 64
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.global WPD_CONTACT_SPOUSE
.section .rodata
.align 3
.type WPD_CONTACT_SPOUSE, %object
.size WPD_CONTACT_SPOUSE, 24
WPD_CONTACT_SPOUSE:
.xword 4225039787
.hword -26499
.hword 18295
.ascii "\263\371ra\205\2511+"
.zero 4
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC0:
.string "Enter range: "
.align 3
.LC1:
.string "%d"
.align 3
.LC2:
.string "Enter length: "
.align 3
.LC3:
.string "Enter array: "
.align 3
.LC4:
.string "Histogram: "
.align 3
.LC5:
.string "%d: "
.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
.cfi_def_cfa_register 29
stp x19, x20, [sp, 16]
stp x21, x22, [sp, 32]
stp x23, x24, [sp, 48]
stp x25, x26, [sp, 64]
str x27, [sp, 80]
sub sp, sp, #16
.cfi_offset 19, -128
.cfi_offset 20, -120
.cfi_offset 21, -112
.cfi_offset 22, -104
.cfi_offset 23, -96
.cfi_offset 24, -88
.cfi_offset 25, -80
.cfi_offset 26, -72
.cfi_offset 27, -64
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x1, [x0]
str x1, [x29, 136]
mov x1, 0
mov x0, sp
mov x19, x0
adrp x0, .LC0
add x0, x0, :lo12:.LC0
bl printf
add x0, x29, 104
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, x29, 108
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
ldr w0, [x29, 108]
sxtw x1, w0
sub x1, x1, #1
str x1, [x29, 120]
sxtw x1, w0
mov x26, x1
mov x27, 0
lsr x1, x26, 59
lsl x23, x27, 5
orr x23, x1, x23
lsl x22, x26, 5
sxtw x1, w0
mov x24, x1
mov x25, 0
lsr x1, x24, 59
lsl x21, x25, 5
orr x21, x1, x21
lsl x20, x24, 5
sxtw x0, w0
lsl x0, x0, 2
add x0, x0, 15
lsr x0, x0, 4
lsl x0, x0, 4
and x1, x0, -65536
sub x1, sp, x1
.L2:
cmp sp, x1
beq .L3
sub sp, sp, #65536
str xzr, [sp, 1024]
b .L2
.L3:
and x1, x0, 65535
sub sp, sp, x1
str xzr, [sp]
and x0, x0, 65535
cmp x0, 1024
bcc .L4
str xzr, [sp, 1024]
.L4:
add x0, sp, 16
add x0, x0, 3
lsr x0, x0, 2
lsl x0, x0, 2
str x0, [x29, 128]
adrp x0, .LC3
add x0, x0, :lo12:.LC3
bl printf
str wzr, [x29, 112]
b .L5
.L6:
ldrsw x0, [x29, 112]
lsl x0, x0, 2
ldr x1, [x29, 128]
add x0, x1, x0
mov x1, x0
adrp x0, .LC1
add x0, x0, :lo12:.LC1
bl __isoc99_scanf
ldr w0, [x29, 112]
add w0, w0, 1
str w0, [x29, 112]
.L5:
ldr w0, [x29, 108]
ldr w1, [x29, 112]
cmp w1, w0
blt .L6
adrp x0, .LC4
add x0, x0, :lo12:.LC4
bl puts
str wzr, [x29, 116]
b .L7
.L11:
ldr w1, [x29, 116]
adrp x0, .LC5
add x0, x0, :lo12:.LC5
bl printf
str wzr, [x29, 112]
b .L8
.L10:
ldr x0, [x29, 128]
ldrsw x1, [x29, 112]
ldr w0, [x0, x1, lsl 2]
ldr w1, [x29, 116]
cmp w1, w0
bne .L9
mov w0, 42
bl putchar
.L9:
ldr w0, [x29, 112]
add w0, w0, 1
str w0, [x29, 112]
.L8:
ldr w0, [x29, 108]
ldr w1, [x29, 112]
cmp w1, w0
blt .L10
mov w0, 10
bl putchar
ldr w0, [x29, 116]
add w0, w0, 1
str w0, [x29, 116]
.L7:
ldr w0, [x29, 104]
ldr w1, [x29, 116]
cmp w1, w0
ble .L11
mov w0, 0
mov sp, x19
mov w1, w0
adrp x0, :got:__stack_chk_guard
ldr x0, [x0, #:got_lo12:__stack_chk_guard]
ldr x3, [x29, 136]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L13
bl __stack_chk_fail
.L13:
mov w0, w1
mov sp, x29
ldp x19, x20, [sp, 16]
ldp x21, x22, [sp, 32]
ldp x23, x24, [sp, 48]
ldp x25, x26, [sp, 64]
ldr x27, [sp, 80]
ldp x29, x30, [sp], 144
.cfi_restore 30
.cfi_restore 29
.cfi_restore 27
.cfi_restore 25
.cfi_restore 26
.cfi_restore 23
.cfi_restore 24
.cfi_restore 21
.cfi_restore 22
.cfi_restore 19
.cfi_restore 20
.cfi_def_cfa 31, 0
ret
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global bzero
.type bzero, %function
bzero:
.LFB0:
.cfi_startproc
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, 8]
str x1, [sp]
ldr x0, [sp, 8]
str x0, [sp, 24]
b .L2
.L3:
ldr x0, [sp, 24]
add x1, x0, 1
str x1, [sp, 24]
strb wzr, [x0]
.L2:
ldr x0, [sp]
sub x1, x0, #1
str x1, [sp]
cmp x0, 0
bne .L3
nop
nop
add sp, sp, 32
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE0:
.size bzero, .-bzero
``` |
### 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 GPIO_Example_Int
.L2:
b .L2
.cfi_endproc
.LFE0:
.size main, .-main
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.section .rodata
.align 3
.LC3:
.string "File.txt"
.align 3
.LC2:
.string "123"
.align 3
.LC1:
.string "-n"
.align 3
.LC0:
.string "grep"
.align 3
.LC6:
.string "/bin/grep"
.align 3
.LC7:
.string "Child %ld with exit status %d\n"
.text
.align 2
.global main
.type main, %function
main:
.LFB6:
.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
bl fork
str w0, [sp, 24]
adrp x0, .LC5
add x1, x0, :lo12:.LC5
add x0, sp, 32
ldp q0, q1, [x1]
stp q0, q1, [x0]
ldr x1, [x1, 32]
str x1, [x0, 32]
ldr w0, [sp, 24]
cmp w0, 0
bne .L2
mov x5, 0
adrp x0, .LC3
add x4, x0, :lo12:.LC3
adrp x0, .LC2
add x3, x0, :lo12:.LC2
adrp x0, .LC1
add x2, x0, :lo12:.LC1
adrp x0, .LC0
add x1, x0, :lo12:.LC0
adrp x0, .LC6
add x0, x0, :lo12:.LC6
bl execlp
.L2:
add x0, sp, 20
mov w2, 0
mov x1, x0
ldr w0, [sp, 24]
bl waitpid
ldr w0, [sp, 20]
and w0, w0, 127
cmp w0, 0
bne .L3
ldr w0, [sp, 20]
asr w0, w0, 8
and w0, w0, 255
str w0, [sp, 28]
ldrsw x0, [sp, 24]
ldr w2, [sp, 28]
mov x1, x0
adrp x0, .LC7
add x0, x0, :lo12:.LC7
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, 72]
ldr x2, [x0]
subs x3, x3, x2
mov x2, 0
beq .L5
bl __stack_chk_fail
.L5:
mov w0, w1
ldp x29, x30, [sp], 80
.cfi_restore 30
.cfi_restore 29
.cfi_def_cfa_offset 0
ret
.cfi_endproc
.LFE6:
.size main, .-main
.data
.align 3
.LC5:
.xword .LC0
.xword .LC1
.xword .LC2
.xword .LC3
.xword 0
.text
``` |
### Human: Write a random program in ARM assembly### Assistant: ``` .text
.align 2
.global f
.type f, %function
f:
.LFB0:
.cfi_startproc
nop
ret
.cfi_endproc
.LFE0:
.size f, .-f
``` |