text
stringlengths
197
24.1M
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global binary_manager_deinit_modules .type binary_manager_deinit_modules, %function binary_manager_deinit_modules: .LFB0: .cfi_startproc nop ret .cfi_endproc .LFE0: .size binary_manager_deinit_modules, .-binary_manager_deinit_modules ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global __progname .section .rodata .align 3 .LC0: .string "" .section .data.rel.local,"aw" .align 3 .type __progname, %object .size __progname, 8 __progname: .xword .LC0 .text .align 2 .global ___start .type ___start, %function ___start: .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, 44] str x1, [sp, 32] str x2, [sp, 24] adrp x0, :got:environ ldr x0, [x0, #:got_lo12:environ] ldr x1, [sp, 24] str x1, [x0] ldr x0, [sp, 32] ldr x1, [x0] adrp x0, __progname add x0, x0, :lo12:__progname str x1, [x0] bl _libc_init adrp x0, :got:environ ldr x0, [x0, #:got_lo12:environ] ldr x0, [x0] mov x2, x0 ldr x1, [sp, 32] ldr w0, [sp, 44] bl main bl exit .cfi_endproc .LFE6: .size ___start, .-___start ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "The value of x and y is %d and %d\n" .align 3 .LC1: .string "The value of 4+7 is %d\n" .align 3 .LC2: .string "The value of x and y after function call is %d and %d\n" .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp mov w0, 4 str w0, [sp, 24] mov w0, 7 str w0, [sp, 28] ldr w2, [sp, 28] ldr w1, [sp, 24] adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf ldr w1, [sp, 28] ldr w0, [sp, 24] bl sum mov w1, w0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf ldr w2, [sp, 28] ldr w1, [sp, 24] adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf mov w0, 0 ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size main, .-main .align 2 .global sum .type sum, %function sum: .LFB1: .cfi_startproc sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, 12] str w1, [sp, 8] ldr w1, [sp, 12] ldr w0, [sp, 8] add w0, w1, w0 str w0, [sp, 28] mov w0, 3434 str w0, [sp, 8] mov w0, 23432 str w0, [sp, 12] ldr w0, [sp, 28] add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size sum, .-sum ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global f_load_madd_64 .type f_load_madd_64, %function f_load_madd_64: .LFB0: .cfi_startproc sub sp, sp, #48 .cfi_def_cfa_offset 48 str x0, [sp, 24] str x1, [sp, 16] str x2, [sp, 8] ldr x0, [sp, 8] ldr x1, [x0] ldr x0, [sp, 16] mul x0, x1, x0 ldr x1, [sp, 24] add x0, x1, x0 str x0, [sp, 40] ldr x0, [sp, 40] add sp, sp, 48 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size f_load_madd_64, .-f_load_madd_64 ```
### 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 .section .rodata .align 3 .LC1: .string "%d " .text .align 2 .global ordenar .type ordenar, %function ordenar: .LFB7: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x0, [sp, 24] str w1, [sp, 20] str wzr, [sp, 40] .L6: ldrsw x0, [sp, 40] lsl x0, x0, 2 ldr x1, [sp, 24] add x0, x1, x0 ldr w0, [x0] str w0, [sp, 44] ldr w0, [sp, 40] str w0, [sp, 48] ldr w0, [sp, 40] str w0, [sp, 52] b .L3 .L5: ldrsw x0, [sp, 52] lsl x0, x0, 2 ldr x1, [sp, 24] add x0, x1, x0 ldr w0, [x0] ldr w1, [sp, 44] cmp w1, w0 ble .L4 ldrsw x0, [sp, 52] lsl x0, x0, 2 ldr x1, [sp, 24] add x0, x1, x0 ldr w0, [x0] str w0, [sp, 44] ldr w0, [sp, 52] str w0, [sp, 48] .L4: ldr w0, [sp, 52] add w0, w0, 1 str w0, [sp, 52] .L3: ldr w1, [sp, 52] ldr w0, [sp, 20] cmp w1, w0 blt .L5 ldrsw x0, [sp, 40] lsl x0, x0, 2 ldr x1, [sp, 24] add x0, x1, x0 ldr w0, [x0] str w0, [sp, 60] ldr w0, [sp, 40] add w1, w0, 1 str w1, [sp, 40] sxtw x0, w0 lsl x0, x0, 2 ldr x1, [sp, 24] add x0, x1, x0 ldr w1, [sp, 44] str w1, [x0] ldrsw x0, [sp, 48] lsl x0, x0, 2 ldr x1, [sp, 24] add x0, x1, x0 ldr w1, [sp, 60] str w1, [x0] ldr w1, [sp, 40] ldr w0, [sp, 20] cmp w1, w0 bne .L6 str wzr, [sp, 56] b .L7 .L8: ldrsw x0, [sp, 56] 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, 56] add w0, w0, 1 str w0, [sp, 56] .L7: ldr w1, [sp, 56] ldr w0, [sp, 20] cmp w1, w0 blt .L8 mov w0, 10 bl putchar nop ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size ordenar, .-ordenar .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 adrp x0, .LC0 add x0, x0, :lo12:.LC0 add x2, sp, 16 mov x3, x0 ldp x0, x1, [x3] stp x0, x1, [x2] ldr w0, [x3, 16] str w0, [x2, 16] add x0, sp, 16 mov w1, 5 bl ordenar mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 40] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L11 bl __stack_chk_fail .L11: mov w0, w1 ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE8: .size main, .-main .section .rodata .align 3 .LC0: .word 5 .word 4 .word 3 .word 2 .word 1 .text ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global isEmpty .type isEmpty, %function isEmpty: .LFB6: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, 8] ldr x0, [sp, 8] ldr x0, [x0] cmp x0, 0 cset w0, eq and w0, w0, 255 add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size isEmpty, .-isEmpty .align 2 .global push .type push, %function push: .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 x0, 16 bl malloc str x0, [sp, 40] ldr x0, [sp, 40] cmp x0, 0 beq .L6 ldr x0, [sp, 40] ldr w1, [sp, 20] str w1, [x0] ldr x0, [sp, 24] ldr x1, [x0] ldr x0, [sp, 40] str x1, [x0, 8] ldr x0, [sp, 24] ldr x1, [sp, 40] str x1, [x0] b .L3 .L6: nop .L3: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size push, .-push .align 2 .global pop .type pop, %function pop: .LFB8: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] ldr x0, [sp, 24] bl isEmpty and w0, w0, 255 cmp w0, 0 beq .L8 mov w0, -1 b .L9 .L8: ldr x0, [sp, 24] ldr x0, [x0] ldr w0, [x0] str w0, [sp, 36] ldr x0, [sp, 24] ldr x0, [x0] str x0, [sp, 40] ldr x0, [sp, 24] ldr x0, [x0] ldr x1, [x0, 8] ldr x0, [sp, 24] str x1, [x0] ldr x0, [sp, 40] bl free ldr w0, [sp, 36] .L9: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE8: .size pop, .-pop .align 2 .global deleteStack .type deleteStack, %function deleteStack: .LFB9: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str x0, [sp, 24] b .L11 .L12: ldr x0, [sp, 24] ldr x0, [x0] bl pop .L11: ldr x0, [sp, 24] ldr x0, [x0] bl isEmpty and w0, w0, 255 eor w0, w0, 1 and w0, w0, 255 cmp w0, 0 bne .L12 ldr x0, [sp, 24] ldr x0, [x0] bl free ldr x0, [sp, 24] str xzr, [x0] nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE9: .size deleteStack, .-deleteStack .align 2 .global createStack .type createStack, %function createStack: .LFB10: .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, 8 bl malloc str x0, [sp, 24] ldr x0, [sp, 24] cmp x0, 0 bne .L14 mov x0, 0 b .L15 .L14: ldr x0, [sp, 24] str xzr, [x0] ldr x0, [sp, 24] .L15: ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE10: .size createStack, .-createStack ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global inic_fil .type inic_fil, %function inic_fil: .LFB6: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, 8] ldr x0, [sp, 8] str xzr, [x0, 8] nop add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size inic_fil, .-inic_fil .align 2 .global lista_vazia .type lista_vazia, %function lista_vazia: .LFB7: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, 8] ldr x0, [sp, 8] ldr x0, [x0, 8] cmp x0, 0 bne .L3 mov w0, 1 b .L4 .L3: mov w0, 0 .L4: add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size lista_vazia, .-lista_vazia .align 2 .global no_insere .type no_insere, %function no_insere: .LFB8: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str w1, [sp, 20] mov x0, 16 bl malloc str x0, [sp, 40] ldr x0, [sp, 40] ldr w1, [sp, 20] str w1, [x0] ldr x0, [sp, 40] str xzr, [x0, 8] ldr x0, [sp, 24] str x0, [sp, 32] b .L6 .L7: ldr x0, [sp, 32] ldr x0, [x0, 8] str x0, [sp, 32] .L6: ldr x0, [sp, 32] ldr x0, [x0, 8] cmp x0, 0 bne .L7 ldr x0, [sp, 32] ldr x1, [sp, 40] str x1, [x0, 8] nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE8: .size no_insere, .-no_insere .section .rodata .align 3 .LC0: .string "[%i]-->" .align 3 .LC1: .string "NULL" .text .align 2 .global imprime .type imprime, %function imprime: .LFB9: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] ldr x0, [sp, 24] ldr x0, [x0, 8] str x0, [sp, 40] mov w0, 10 bl putchar b .L9 .L10: ldr x0, [sp, 40] ldr w0, [x0] mov w1, w0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf ldr x0, [sp, 40] ldr x0, [x0, 8] str x0, [sp, 40] .L9: ldr x0, [sp, 40] cmp x0, 0 bne .L10 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE9: .size imprime, .-imprime .align 2 .global imprime_inter .type imprime_inter, %function imprime_inter: .LFB10: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] ldr x0, [sp, 24] ldr x0, [x0, 8] str x0, [sp, 48] ldr x0, [sp, 16] ldr x0, [x0, 8] str x0, [sp, 56] b .L12 .L13: ldr x0, [sp, 56] ldr w0, [x0] sxtw x0, w0 str x0, [sp, 40] ldr x0, [sp, 56] ldr x0, [x0, 8] str x0, [sp, 40] ldr x0, [sp, 48] ldr w0, [x0] sxtw x0, w0 str x0, [sp, 40] ldr x0, [sp, 48] ldr x0, [x0, 8] str x0, [sp, 40] .L12: ldr x0, [sp, 48] cmp x0, 0 bne .L13 ldr x0, [sp, 56] cmp x0, 0 bne .L13 ldr x0, [sp, 40] bl imprime nop ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE10: .size imprime_inter, .-imprime_inter .section .rodata .align 3 .LC2: .string "\n\nLista Linear Simplesmente Encadeada:" .align 3 .LC3: .string "0 - Sair" .align 3 .LC4: .string "1 - Inserir elemento na lista 1" .align 3 .LC5: .string "2 - Inserir elemento na lista 2" .align 3 .LC6: .string "3 - Mostrar lista 1" .align 3 .LC7: .string "4 - Mostrar lista 2" .align 3 .LC8: .string "5 - Mostrar lista intercalada" .align 3 .LC9: .string "Opcao? " .align 3 .LC10: .string "%d" .align 3 .LC11: .string "Valor? " .align 3 .LC12: .string "Lista vazia!!" .text .align 2 .global main .type main, %function main: .LFB11: .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 bl inic_fil add x0, sp, 32 bl inic_fil .L28: 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 adrp x0, .LC8 add x0, x0, :lo12:.LC8 bl puts adrp x0, .LC9 add x0, x0, :lo12:.LC9 bl printf add x0, sp, 20 mov x1, x0 adrp x0, .LC10 add x0, x0, :lo12:.LC10 bl __isoc99_scanf ldr w0, [sp, 20] cmp w0, 5 beq .L15 cmp w0, 5 bgt .L28 cmp w0, 4 beq .L17 cmp w0, 4 bgt .L28 cmp w0, 3 beq .L18 cmp w0, 3 bgt .L28 cmp w0, 2 beq .L19 cmp w0, 2 bgt .L28 cmp w0, 0 beq .L20 cmp w0, 1 beq .L21 b .L16 .L20: mov w0, 0 bl exit .L21: adrp x0, .LC11 add x0, x0, :lo12:.LC11 bl printf add x0, sp, 16 mov x1, x0 adrp x0, .LC10 add x0, x0, :lo12:.LC10 bl __isoc99_scanf ldr w1, [sp, 16] add x0, sp, 24 bl no_insere b .L16 .L19: adrp x0, .LC11 add x0, x0, :lo12:.LC11 bl printf add x0, sp, 16 mov x1, x0 adrp x0, .LC10 add x0, x0, :lo12:.LC10 bl __isoc99_scanf ldr w1, [sp, 16] add x0, sp, 32 bl no_insere b .L16 .L18: add x0, sp, 24 bl lista_vazia cmp w0, 0 bne .L22 add x0, sp, 24 bl imprime b .L16 .L22: adrp x0, .LC12 add x0, x0, :lo12:.LC12 bl puts b .L16 .L17: add x0, sp, 32 bl lista_vazia cmp w0, 0 bne .L24 add x0, sp, 32 bl imprime b .L16 .L24: adrp x0, .LC12 add x0, x0, :lo12:.LC12 bl puts b .L16 .L15: add x0, sp, 24 bl lista_vazia cmp w0, 0 bne .L26 add x0, sp, 32 bl lista_vazia cmp w0, 0 bne .L26 add x1, sp, 32 add x0, sp, 24 bl imprime_inter b .L30 .L26: adrp x0, .LC12 add x0, x0, :lo12:.LC12 bl puts .L30: nop .L16: b .L28 .cfi_endproc .LFE11: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global islower .type islower, %function islower: .LFB0: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, 12] ldr w0, [sp, 12] sub w0, w0, #97 cmp w0, 25 cset w0, ls and w0, w0, 255 add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size islower, .-islower ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "mkdir" .align 3 .LC1: .string "/bin/mkdir" .text .align 2 .global mkdir1 .type mkdir1, %function mkdir1: .LFB6: .cfi_startproc stp x29, x30, [sp, -176]! .cfi_def_cfa_offset 176 .cfi_offset 29, -176 .cfi_offset 30, -168 mov x29, sp str x0, [sp, 24] str w1, [sp, 20] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 168] mov x1, 0 add x0, sp, 40 mov x1, x0 ldr x0, [sp, 24] bl stat cmp w0, 0 bne .L2 bl __errno_location mov x1, x0 mov w0, 17 str w0, [x1] mov w0, -1 b .L10 .L2: bl __errno_location ldr w0, [x0] cmp w0, 2 beq .L4 mov w0, -1 b .L10 .L4: bl fork str w0, [sp, 36] ldr w0, [sp, 36] cmn w0, #1 beq .L5 ldr w0, [sp, 36] cmp w0, 0 beq .L6 b .L12 .L5: mov w0, -1 b .L10 .L6: mov w0, 0 bl umask str w0, [sp, 32] ldr w0, [sp, 20] mvn w0, w0 and w1, w0, 511 ldr w0, [sp, 32] orr w0, w1, w0 bl umask mov x3, 0 ldr x2, [sp, 24] adrp x0, .LC0 add x1, x0, :lo12:.LC0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl execl mov w0, 1 bl _exit .L12: nop .L8: add x0, sp, 32 bl wait mov w1, w0 ldr w0, [sp, 36] cmp w0, w1 bne .L8 ldr w0, [sp, 32] and w0, w0, 65535 cmp w0, 0 beq .L9 bl __errno_location mov x1, x0 mov w0, 5 str w0, [x1] mov w0, -1 b .L10 .L9: ldr w0, [sp, 20] mov w1, w0 ldr x0, [sp, 24] bl chmod .L10: mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 168] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L11 bl __stack_chk_fail .L11: mov w0, w1 ldp x29, x30, [sp], 176 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size mkdir1, .-mkdir1 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global intercala .type intercala, %function intercala: .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 w0, [sp, 44] str w1, [sp, 40] str w2, [sp, 36] str x3, [sp, 24] ldr w1, [sp, 36] ldr w0, [sp, 44] sub w0, w1, w0 sxtw x0, w0 lsl x0, x0, 2 bl malloc str x0, [sp, 72] ldr w0, [sp, 44] str w0, [sp, 60] b .L2 .L3: ldrsw x0, [sp, 60] lsl x0, x0, 2 ldr x1, [sp, 24] add x1, x1, x0 ldr w2, [sp, 60] ldr w0, [sp, 44] sub w0, w2, w0 sxtw x0, w0 lsl x0, x0, 2 ldr x2, [sp, 72] add x0, x2, x0 ldr w1, [x1] str w1, [x0] ldr w0, [sp, 60] add w0, w0, 1 str w0, [sp, 60] .L2: ldr w1, [sp, 60] ldr w0, [sp, 40] cmp w1, w0 blt .L3 ldr w0, [sp, 40] str w0, [sp, 64] b .L4 .L5: ldrsw x0, [sp, 64] lsl x0, x0, 2 ldr x1, [sp, 24] add x1, x1, x0 ldr w2, [sp, 36] ldr w0, [sp, 44] sub w2, w2, w0 ldr w0, [sp, 40] add w2, w2, w0 ldr w0, [sp, 64] sub w0, w2, w0 sxtw x0, w0 lsl x0, x0, 2 sub x0, x0, #4 ldr x2, [sp, 72] add x0, x2, x0 ldr w1, [x1] str w1, [x0] ldr w0, [sp, 64] add w0, w0, 1 str w0, [sp, 64] .L4: ldr w1, [sp, 64] ldr w0, [sp, 36] cmp w1, w0 blt .L5 str wzr, [sp, 60] ldr w1, [sp, 36] ldr w0, [sp, 44] sub w0, w1, w0 sub w0, w0, #1 str w0, [sp, 64] ldr w0, [sp, 44] str w0, [sp, 68] b .L6 .L9: ldrsw x0, [sp, 60] lsl x0, x0, 2 ldr x1, [sp, 72] add x0, x1, x0 ldr w1, [x0] ldrsw x0, [sp, 64] lsl x0, x0, 2 ldr x2, [sp, 72] add x0, x2, x0 ldr w0, [x0] cmp w1, w0 bgt .L7 ldr w0, [sp, 60] add w1, w0, 1 str w1, [sp, 60] sxtw x0, w0 lsl x0, x0, 2 ldr x1, [sp, 72] add x1, x1, x0 ldrsw x0, [sp, 68] lsl x0, x0, 2 ldr x2, [sp, 24] add x0, x2, x0 ldr w1, [x1] str w1, [x0] b .L8 .L7: ldr w0, [sp, 64] sub w1, w0, #1 str w1, [sp, 64] sxtw x0, w0 lsl x0, x0, 2 ldr x1, [sp, 72] add x1, x1, x0 ldrsw x0, [sp, 68] lsl x0, x0, 2 ldr x2, [sp, 24] add x0, x2, x0 ldr w1, [x1] str w1, [x0] .L8: ldr w0, [sp, 68] add w0, w0, 1 str w0, [sp, 68] .L6: ldr w1, [sp, 68] ldr w0, [sp, 36] cmp w1, w0 blt .L9 ldr x0, [sp, 72] bl free nop ldp x29, x30, [sp], 80 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size intercala, .-intercala .align 2 .global mergesort .type mergesort, %function mergesort: .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] str w1, [sp, 24] str x2, [sp, 16] ldr w0, [sp, 24] sub w0, w0, #1 ldr w1, [sp, 28] cmp w1, w0 bge .L12 ldr w1, [sp, 28] ldr w0, [sp, 24] add w0, w1, w0 lsr w1, w0, 31 add w0, w1, w0 asr w0, w0, 1 str w0, [sp, 44] ldr x2, [sp, 16] ldr w1, [sp, 44] ldr w0, [sp, 28] bl mergesort ldr x2, [sp, 16] ldr w1, [sp, 24] ldr w0, [sp, 44] bl mergesort ldr x3, [sp, 16] ldr w2, [sp, 24] ldr w1, [sp, 44] ldr w0, [sp, 28] bl intercala .L12: nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size mergesort, .-mergesort .section .rodata .align 3 .LC1: .string " %d" .text .align 2 .global main .type main, %function main: .LFB8: .cfi_startproc stp x29, x30, [sp, -80]! .cfi_def_cfa_offset 80 .cfi_offset 29, -80 .cfi_offset 30, -72 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 72] mov x1, 0 adrp x0, .LC0 add x1, x0, :lo12:.LC0 add x0, sp, 32 ldp q0, q1, [x1] stp q0, q1, [x0] ldr x1, [x1, 32] str x1, [x0, 32] add x0, sp, 32 mov x2, x0 mov w1, 10 mov w0, 0 bl mergesort str wzr, [sp, 28] b .L14 .L15: ldrsw x0, [sp, 28] lsl x0, x0, 2 add x1, sp, 32 ldr w0, [x1, 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, 28] cmp w0, 9 ble .L15 mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 72] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L17 bl __stack_chk_fail .L17: mov w0, w1 ldp x29, x30, [sp], 80 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE8: .size main, .-main .section .rodata .align 3 .LC0: .word 5 .word 2 .word 4 .word 3 .word 6 .word 7 .word 10 .word 8 .word 1 .word 9 .text ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global is_dualpal_helper .type is_dualpal_helper, %function is_dualpal_helper: .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] ldr x0, [sp, 24] bl strlen str w0, [sp, 44] str wzr, [sp, 36] ldr w0, [sp, 44] sub w0, w0, #1 str w0, [sp, 40] b .L2 .L5: ldrsw x0, [sp, 36] ldr x1, [sp, 24] add x0, x1, x0 ldrb w1, [x0] ldrsw x0, [sp, 40] ldr x2, [sp, 24] add x0, x2, x0 ldrb w0, [x0] cmp w1, w0 beq .L3 mov w0, 0 b .L4 .L3: ldr w0, [sp, 36] add w0, w0, 1 str w0, [sp, 36] ldr w0, [sp, 40] sub w0, w0, #1 str w0, [sp, 40] .L2: ldr w1, [sp, 36] ldr w0, [sp, 40] cmp w1, w0 blt .L5 mov w0, 1 .L4: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size is_dualpal_helper, .-is_dualpal_helper .align 2 .global transfrom_base_k .type transfrom_base_k, %function transfrom_base_k: .LFB1: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str w1, [sp, 20] str w2, [sp, 16] ldr w0, [sp, 20] cmp w0, 0 bne .L7 ldr x0, [sp, 24] strb wzr, [x0] b .L6 .L7: ldr w1, [sp, 20] ldr w0, [sp, 16] sdiv w0, w1, w0 ldr w2, [sp, 16] mov w1, w0 ldr x0, [sp, 24] bl transfrom_base_k ldr x0, [sp, 24] bl strlen str w0, [sp, 44] ldr w0, [sp, 20] ldr w1, [sp, 16] sdiv w2, w0, w1 ldr w1, [sp, 16] mul w1, w2, w1 sub w3, w0, w1 ldrsw x0, [sp, 44] ldr x1, [sp, 24] add x0, x1, x0 adrp x1, .LC0 add x2, x1, :lo12:.LC0 sxtw x1, w3 ldrb w1, [x2, x1] strb w1, [x0] ldrsw x0, [sp, 44] add x0, x0, 1 ldr x1, [sp, 24] add x0, x1, x0 strb wzr, [x0] .L6: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size transfrom_base_k, .-transfrom_base_k .section .rodata .align 3 .LC0: .string "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" .text .align 2 .global is_dualpal .type is_dualpal, %function is_dualpal: .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] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 152] mov x1, 0 str wzr, [sp, 44] mov w0, 2 str w0, [sp, 40] b .L10 .L14: add x0, sp, 48 ldr w2, [sp, 40] ldr w1, [sp, 28] bl transfrom_base_k add x0, sp, 48 bl is_dualpal_helper cmp w0, 0 beq .L11 ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L11: ldr w0, [sp, 44] cmp w0, 1 ble .L12 mov w0, 1 b .L15 .L12: ldr w0, [sp, 40] add w0, w0, 1 str w0, [sp, 40] .L10: ldr w0, [sp, 40] cmp w0, 10 ble .L14 mov w0, 0 .L15: 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 .L16 bl __stack_chk_fail .L16: mov w0, w1 ldp x29, x30, [sp], 160 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE2: .size is_dualpal, .-is_dualpal .section .rodata .align 3 .LC1: .string "r" .align 3 .LC2: .string "dualpal.in" .align 3 .LC3: .string "w" .align 3 .LC4: .string "dualpal.out" .align 3 .LC5: .string "%d %d" .align 3 .LC6: .string "%d\n" .text .align 2 .global main .type main, %function main: .LFB3: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 56] mov x1, 0 adrp x0, .LC1 add x1, x0, :lo12:.LC1 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl fopen str x0, [sp, 40] adrp x0, .LC3 add x1, x0, :lo12:.LC3 adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl fopen str x0, [sp, 48] add x1, sp, 32 add x0, sp, 28 mov x3, x1 mov x2, x0 adrp x0, .LC5 add x1, x0, :lo12:.LC5 ldr x0, [sp, 40] bl __isoc99_fscanf ldr w0, [sp, 32] add w0, w0, 1 str w0, [sp, 36] .L21: ldr w0, [sp, 36] bl is_dualpal cmp w0, 0 beq .L18 ldr w0, [sp, 28] sub w1, w0, #1 str w1, [sp, 28] cmp w0, 0 ble .L25 ldr w2, [sp, 36] adrp x0, .LC6 add x1, x0, :lo12:.LC6 ldr x0, [sp, 48] bl fprintf .L18: ldr w0, [sp, 36] add w0, w0, 1 str w0, [sp, 36] b .L21 .L25: nop ldr x0, [sp, 40] bl fclose ldr x0, [sp, 48] bl fclose mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 56] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L23 bl __stack_chk_fail .L23: mov w0, w1 ldp x29, x30, [sp], 64 .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 .global s .section .rodata .align 3 .LC0: .string "boo" .section .data.rel.local,"aw" .align 3 .type s, %object .size s, 8 s: .xword .LC0 ```
### 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, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str w0, [sp, 28] str w1, [sp, 24] str wzr, [sp, 44] ldr w0, [sp, 28] mul w1, w0, w0 ldr w0, [sp, 28] mul w0, w1, w0 cmp w0, 0 ble .L2 ldr w0, [sp, 28] cmp w0, 0 ble .L3 ldr w0, [sp, 24] cmp w0, 10 bne .L3 str wzr, [sp, 44] .L3: ldr w0, [sp, 44] cmp w0, 0 cset w0, gt and w0, w0, 255 bl _TRACER_abort b .L1 .L2: ldr w0, [sp, 28] cmp w0, 0 ble .L5 ldr w0, [sp, 24] cmp w0, 20 bne .L5 ldr w0, [sp, 28] mul w0, w0, w0 ldr w1, [sp, 28] mul w0, w1, w0 str w0, [sp, 44] .L5: ldr w0, [sp, 44] cmp w0, 0 cset w0, gt and w0, w0, 255 bl _TRACER_abort nop .L1: 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 main .type main, %function main: .LFB6: .cfi_startproc stp x29, x30, [sp, -320]! .cfi_def_cfa_offset 320 .cfi_offset 29, -320 .cfi_offset 30, -312 mov x29, sp 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, .LC0 add x1, x0, :lo12:.LC0 add x0, sp, 40 ldp q0, q1, [x1] stp q0, q1, [x0] ldp q0, q1, [x1, 32] stp q0, q1, [x0, 32] ldp q0, q1, [x1, 64] stp q0, q1, [x0, 64] ldp q0, q1, [x1, 96] stp q0, q1, [x0, 96] ldr x1, [x1, 128] str x1, [x0, 128] adrp x0, .LC1 add x1, x0, :lo12:.LC1 add x0, sp, 176 ldp q0, q1, [x1] stp q0, q1, [x0] ldp q0, q1, [x1, 32] stp q0, q1, [x0, 32] ldp q0, q1, [x1, 64] stp q0, q1, [x0, 64] ldp q0, q1, [x1, 96] stp q0, q1, [x0, 96] ldr x1, [x1, 128] str x1, [x0, 128] mov w0, 17 str w0, [sp, 24] mov w0, 17 str w0, [sp, 28] add x2, sp, 20 add x1, sp, 176 add x0, sp, 40 mov x4, x2 ldr w3, [sp, 28] mov x2, x1 ldr w1, [sp, 24] bl merge_arrays str x0, [sp, 32] ldr w0, [sp, 20] mov w1, w0 ldr x0, [sp, 32] bl print_array ldr x0, [sp, 32] bl free mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 312] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L3 bl __stack_chk_fail .L3: mov w0, w1 ldp x29, x30, [sp], 320 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size main, .-main .section .rodata .align 3 .LC0: .word 0 .word -1071316992 .word -858993459 .word -1073951540 .word 0 .word 1074528256 .word 0 .word 1074790400 .word 858993459 .word 1075393331 .word -858993459 .word 1075629260 .word 858993459 .word 1075655475 .word 0 .word 1075904512 .word 858993459 .word 1075917619 .word 1717986918 .word 1075930726 .word -1717986918 .word 1075943833 .word 0 .word 1076101120 .word 858993459 .word 1076114227 .word 0 .word 1077149696 .word 0 .word 1077673984 .word 0 .word 1078263808 .word 0 .word 1078296576 .align 3 .LC1: .word 0 .word -1068957696 .word 0 .word -1071316992 .word -858993459 .word -1073951540 .word -858993459 .word 1074318540 .word -858993459 .word 1074580684 .word 0 .word 1074790400 .word 858993459 .word 1075393331 .word 1717986918 .word 1075603046 .word -858993459 .word 1075629260 .word -1717986918 .word 1075943833 .word -858993459 .word 1076088012 .word 858993459 .word 1076114227 .word 0 .word 1077149696 .word 0 .word 1077805056 .word 0 .word 1078198272 .word 0 .word 1078263808 .word 0 .word 1078296576 .text .align 2 .global merge_arrays .type merge_arrays, %function merge_arrays: .LFB7: .cfi_startproc stp x29, x30, [sp, -80]! .cfi_def_cfa_offset 80 .cfi_offset 29, -80 .cfi_offset 30, -72 mov x29, sp str x0, [sp, 40] str w1, [sp, 36] str x2, [sp, 24] str w3, [sp, 32] str x4, [sp, 16] ldr w1, [sp, 36] ldr w0, [sp, 32] add w0, w1, w0 sxtw x0, w0 lsl x0, x0, 3 bl malloc str x0, [sp, 72] str wzr, [sp, 56] str wzr, [sp, 60] str wzr, [sp, 64] ldr w1, [sp, 36] ldr w0, [sp, 32] add w0, w1, w0 str w0, [sp, 68] b .L5 .L13: ldr w1, [sp, 60] ldr w0, [sp, 36] cmp w1, w0 bge .L6 ldr w1, [sp, 64] ldr w0, [sp, 32] cmp w1, w0 bge .L6 ldrsw x0, [sp, 60] lsl x0, x0, 3 ldr x1, [sp, 40] add x0, x1, x0 ldr d1, [x0] ldrsw x0, [sp, 64] lsl x0, x0, 3 ldr x1, [sp, 24] add x0, x1, x0 ldr d0, [x0] fcmpe d1, d0 bmi .L15 b .L17 .L15: ldr w0, [sp, 60] add w1, w0, 1 str w1, [sp, 60] sxtw x0, w0 lsl x0, x0, 3 ldr x1, [sp, 40] add x1, x1, x0 ldr w0, [sp, 56] add w2, w0, 1 str w2, [sp, 56] sxtw x0, w0 lsl x0, x0, 3 ldr x2, [sp, 72] add x0, x2, x0 ldr d0, [x1] str d0, [x0] b .L5 .L17: ldrsw x0, [sp, 64] lsl x0, x0, 3 ldr x1, [sp, 24] add x0, x1, x0 ldr d1, [x0] ldrsw x0, [sp, 60] lsl x0, x0, 3 ldr x1, [sp, 40] add x0, x1, x0 ldr d0, [x0] fcmpe d1, d0 bmi .L16 b .L18 .L16: ldr w0, [sp, 64] add w1, w0, 1 str w1, [sp, 64] sxtw x0, w0 lsl x0, x0, 3 ldr x1, [sp, 24] add x1, x1, x0 ldr w0, [sp, 56] add w2, w0, 1 str w2, [sp, 56] sxtw x0, w0 lsl x0, x0, 3 ldr x2, [sp, 72] add x0, x2, x0 ldr d0, [x1] str d0, [x0] b .L5 .L18: ldr w0, [sp, 60] add w1, w0, 1 str w1, [sp, 60] sxtw x0, w0 lsl x0, x0, 3 ldr x1, [sp, 40] add x1, x1, x0 ldr w0, [sp, 56] add w2, w0, 1 str w2, [sp, 56] sxtw x0, w0 lsl x0, x0, 3 ldr x2, [sp, 72] add x0, x2, x0 ldr d0, [x1] str d0, [x0] ldr w0, [sp, 64] add w0, w0, 1 str w0, [sp, 64] ldr w0, [sp, 68] sub w0, w0, #1 str w0, [sp, 68] b .L5 .L6: ldr w1, [sp, 60] ldr w0, [sp, 36] cmp w1, w0 bge .L12 ldr w0, [sp, 60] add w1, w0, 1 str w1, [sp, 60] sxtw x0, w0 lsl x0, x0, 3 ldr x1, [sp, 40] add x1, x1, x0 ldr w0, [sp, 56] add w2, w0, 1 str w2, [sp, 56] sxtw x0, w0 lsl x0, x0, 3 ldr x2, [sp, 72] add x0, x2, x0 ldr d0, [x1] str d0, [x0] b .L5 .L12: ldr w1, [sp, 64] ldr w0, [sp, 32] cmp w1, w0 bge .L5 ldr w0, [sp, 64] add w1, w0, 1 str w1, [sp, 64] sxtw x0, w0 lsl x0, x0, 3 ldr x1, [sp, 24] add x1, x1, x0 ldr w0, [sp, 56] add w2, w0, 1 str w2, [sp, 56] sxtw x0, w0 lsl x0, x0, 3 ldr x2, [sp, 72] add x0, x2, x0 ldr d0, [x1] str d0, [x0] .L5: ldr w1, [sp, 56] ldr w0, [sp, 68] cmp w1, w0 blt .L13 ldr x0, [sp, 16] ldr w1, [sp, 56] str w1, [x0] ldr x0, [sp, 16] ldr w0, [x0] sxtw x0, w0 lsl x0, x0, 3 mov x1, x0 ldr x0, [sp, 72] bl realloc ldp x29, x30, [sp], 80 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size merge_arrays, .-merge_arrays .section .rodata .align 3 .LC2: .string "%.2f " .text .align 2 .global print_array .type print_array, %function print_array: .LFB8: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str w1, [sp, 20] str wzr, [sp, 44] b .L20 .L21: ldrsw x0, [sp, 44] lsl x0, x0, 3 ldr x1, [sp, 24] add x0, x1, x0 ldr d0, [x0] adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L20: ldr w1, [sp, 44] ldr w0, [sp, 20] cmp w1, w0 blt .L21 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 .LFE8: .size print_array, .-print_array ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "Enter marks of 5 subjects:" .align 3 .LC1: .string "%f" .align 3 .LC2: .string "\nThe Sum of the 5 subjects = %f\nThe Percentage = %f\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 str wzr, [sp, 20] adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl puts str wzr, [sp, 24] b .L2 .L3: add x1, sp, 32 ldrsw x0, [sp, 24] lsl x0, x0, 2 add x0, x1, x0 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf ldrsw x0, [sp, 24] lsl x0, x0, 2 add x1, sp, 32 ldr s0, [x1, x0] ldr s1, [sp, 20] fadd s0, s1, s0 str s0, [sp, 20] ldr w0, [sp, 24] add w0, w0, 1 str w0, [sp, 24] .L2: ldr w0, [sp, 24] cmp w0, 4 ble .L3 fmov s0, 5.0e+0 ldr s1, [sp, 20] fdiv s0, s1, s0 str s0, [sp, 28] ldr s0, [sp, 20] fcvt d2, s0 ldr s0, [sp, 28] fcvt d0, s0 fmov d1, d0 fmov d0, d2 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 56] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L5 bl __stack_chk_fail .L5: mov w0, w1 ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global sprstp .type sprstp, %function sprstp: .LFB0: .cfi_startproc stp x29, x30, [sp, -144]! .cfi_def_cfa_offset 144 .cfi_offset 29, -144 .cfi_offset 30, -136 mov x29, sp str x0, [sp, 40] str x1, [sp, 32] str x2, [sp, 24] str x3, [sp, 16] ldr x0, [sp, 32] ldr x0, [x0, 8] str x0, [sp, 112] mov x0, 1 str x0, [sp, 56] b .L2 .L3: ldr x0, [sp, 56] lsl x0, x0, 2 ldr x1, [sp, 40] add x1, x1, x0 ldr x0, [sp, 56] lsl x0, x0, 2 ldr x2, [sp, 24] add x0, x2, x0 ldr s0, [x1] str s0, [x0] ldr x0, [sp, 56] add x0, x0, 1 str x0, [sp, 56] .L2: ldr x0, [sp, 112] sub x0, x0, #2 ldr x1, [sp, 56] cmp x1, x0 bls .L3 ldr x0, [sp, 112] lsl x0, x0, 3 sub x0, x0, #8 ldr x1, [sp, 32] add x0, x1, x0 ldr x1, [x0] ldr x0, [sp, 32] add x0, x0, 8 ldr x0, [x0] sub x3, x1, x0 ldr x0, [sp, 112] lsl x0, x0, 3 sub x0, x0, #8 ldr x1, [sp, 32] add x4, x1, x0 ldr x0, [sp, 112] lsl x0, x0, 3 sub x0, x0, #8 ldr x1, [sp, 16] add x0, x1, x0 mov x2, x0 mov x1, x4 mov x0, x3 bl iindexx str xzr, [sp, 72] ldr x0, [sp, 32] ldr x0, [x0, 8] str x0, [sp, 88] b .L4 .L10: ldr x0, [sp, 88] lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x1, [x0] ldr x0, [sp, 112] add x0, x1, x0 sub x0, x0, #1 str x0, [sp, 96] ldr x0, [sp, 96] lsl x0, x0, 2 ldr x1, [sp, 40] add x1, x1, x0 ldr x0, [sp, 88] lsl x0, x0, 2 ldr x2, [sp, 24] add x0, x2, x0 ldr s0, [x1] str s0, [x0] ldr x0, [sp, 72] add x0, x0, 1 str x0, [sp, 56] b .L5 .L6: ldr x0, [sp, 56] lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x1, [sp, 88] str x1, [x0] ldr x0, [sp, 56] add x0, x0, 1 str x0, [sp, 56] .L5: ldr x0, [sp, 96] lsl x0, x0, 3 ldr x1, [sp, 32] add x0, x1, x0 ldr x0, [x0] ldr x1, [sp, 56] cmp x1, x0 bls .L6 ldr x0, [sp, 96] lsl x0, x0, 3 ldr x1, [sp, 32] add x0, x1, x0 ldr x0, [x0] str x0, [sp, 72] mov x0, 1 str x0, [sp, 64] ldr x0, [sp, 112] sub x0, x0, #1 str x0, [sp, 80] b .L7 .L9: ldr x1, [sp, 80] ldr x0, [sp, 64] add x0, x1, x0 lsr x0, x0, 1 str x0, [sp, 136] ldr x0, [sp, 136] lsl x0, x0, 3 ldr x1, [sp, 32] add x0, x1, x0 ldr x0, [x0] ldr x1, [sp, 96] cmp x1, x0 bcs .L8 ldr x0, [sp, 136] str x0, [sp, 80] b .L7 .L8: ldr x0, [sp, 136] str x0, [sp, 64] .L7: ldr x1, [sp, 80] ldr x0, [sp, 64] sub x0, x1, x0 cmp x0, 1 bhi .L9 ldr x0, [sp, 88] lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x1, [sp, 64] str x1, [x0] ldr x0, [sp, 88] add x0, x0, 1 str x0, [sp, 88] .L4: ldr x0, [sp, 112] lsl x0, x0, 3 sub x0, x0, #8 ldr x1, [sp, 32] add x0, x1, x0 ldr x0, [x0] sub x0, x0, #1 ldr x1, [sp, 88] cmp x1, x0 bls .L10 ldr x0, [sp, 72] add x0, x0, 1 str x0, [sp, 56] b .L11 .L12: ldr x0, [sp, 112] lsl x0, x0, 3 sub x0, x0, #8 ldr x1, [sp, 32] add x1, x1, x0 ldr x0, [sp, 56] lsl x0, x0, 3 ldr x2, [sp, 16] add x0, x2, x0 ldr x1, [x1] str x1, [x0] ldr x0, [sp, 56] add x0, x0, 1 str x0, [sp, 56] .L11: ldr x1, [sp, 56] ldr x0, [sp, 112] cmp x1, x0 bcc .L12 mov x0, 1 str x0, [sp, 56] b .L13 .L21: ldr x0, [sp, 56] add x0, x0, 1 lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x1, [x0] ldr x0, [sp, 56] lsl x0, x0, 3 ldr x2, [sp, 16] add x0, x2, x0 ldr x0, [x0] sub x0, x1, x0 str x0, [sp, 64] ldr x0, [sp, 56] lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x0, [x0] sub x0, x0, #1 str x0, [sp, 120] mov x0, 1 str x0, [sp, 104] .L14: ldr x1, [sp, 104] mov x0, x1 lsl x0, x0, 1 add x0, x0, x1 str x0, [sp, 104] ldr x0, [sp, 104] add x0, x0, 1 str x0, [sp, 104] ldr x1, [sp, 104] ldr x0, [sp, 64] cmp x1, x0 bls .L14 .L20: ldr x1, [sp, 104] mov x0, -6148914691236517206 movk x0, 0xaaab, lsl 0 umulh x0, x1, x0 lsr x0, x0, 1 str x0, [sp, 104] ldr x1, [sp, 120] ldr x0, [sp, 104] add x0, x1, x0 add x0, x0, 1 str x0, [sp, 88] b .L15 .L19: ldr x0, [sp, 88] lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x0, [x0] str x0, [sp, 128] ldr x0, [sp, 88] lsl x0, x0, 2 ldr x1, [sp, 24] add x0, x1, x0 ldr s0, [x0] str s0, [sp, 52] ldr x0, [sp, 88] str x0, [sp, 96] b .L16 .L18: ldr x1, [sp, 96] ldr x0, [sp, 104] sub x0, x1, x0 lsl x0, x0, 3 ldr x1, [sp, 16] add x1, x1, x0 ldr x0, [sp, 96] lsl x0, x0, 3 ldr x2, [sp, 16] add x0, x2, x0 ldr x1, [x1] str x1, [x0] ldr x1, [sp, 96] ldr x0, [sp, 104] sub x0, x1, x0 lsl x0, x0, 2 ldr x1, [sp, 24] add x1, x1, x0 ldr x0, [sp, 96] lsl x0, x0, 2 ldr x2, [sp, 24] add x0, x2, x0 ldr s0, [x1] str s0, [x0] ldr x1, [sp, 96] ldr x0, [sp, 104] sub x0, x1, x0 str x0, [sp, 96] ldr x1, [sp, 96] ldr x0, [sp, 120] sub x0, x1, x0 ldr x1, [sp, 104] cmp x1, x0 bcs .L22 .L16: ldr x1, [sp, 96] ldr x0, [sp, 104] sub x0, x1, x0 lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x0, [x0] ldr x1, [sp, 128] cmp x1, x0 bcc .L18 b .L17 .L22: nop .L17: ldr x0, [sp, 96] lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x1, [sp, 128] str x1, [x0] ldr x0, [sp, 96] lsl x0, x0, 2 ldr x1, [sp, 24] add x0, x1, x0 ldr s0, [sp, 52] str s0, [x0] ldr x0, [sp, 88] add x0, x0, 1 str x0, [sp, 88] .L15: ldr x1, [sp, 120] ldr x0, [sp, 64] add x0, x1, x0 ldr x1, [sp, 88] cmp x1, x0 bls .L19 ldr x0, [sp, 104] cmp x0, 1 bhi .L20 ldr x0, [sp, 56] add x0, x0, 1 str x0, [sp, 56] .L13: ldr x0, [sp, 112] sub x0, x0, #2 ldr x1, [sp, 56] cmp x1, x0 bls .L21 nop nop ldp x29, x30, [sp], 144 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size sprstp, .-sprstp ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global YEAR1_BOT .section .rodata .align 2 .type YEAR1_BOT, %object .size YEAR1_BOT, 4 YEAR1_BOT: .word 3029 .global SOFTWARE_BOT .align 2 .type SOFTWARE_BOT, %object .size SOFTWARE_BOT, 4 SOFTWARE_BOT: .word 3025 .global ROBOT_CONFIGURATION .align 2 .type ROBOT_CONFIGURATION, %object .size ROBOT_CONFIGURATION, 4 ROBOT_CONFIGURATION: .word 3029 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global foo .type foo, %function foo: .LFB0: .cfi_startproc sub sp, sp, #32 .cfi_def_cfa_offset 32 str s0, [sp, 12] str s1, [sp, 8] str wzr, [sp, 28] ldr w0, [sp, 28] cmp w0, 0 bge .L2 ldr s0, [sp, 12] b .L4 .L2: ldr s0, [sp, 8] .L4: add sp, sp, 32 .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 __spin_unlock .type __spin_unlock, %function __spin_unlock: .LFB0: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, 8] ldr x0, [sp, 8] str wzr, [x0] nop add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size __spin_unlock, .-__spin_unlock .align 2 .global __spin_try_lock .type __spin_try_lock, %function __spin_try_lock: .LFB1: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, 8] ldr x0, [sp, 8] ldr w0, [x0] cmp w0, 0 beq .L3 mov w0, 0 b .L4 .L3: ldr x0, [sp, 8] mov w1, 1 str w1, [x0] mov w0, 1 .L4: add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size __spin_try_lock, .-__spin_try_lock .align 2 .global __spin_lock_locked .type __spin_lock_locked, %function __spin_lock_locked: .LFB2: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, 8] ldr x0, [sp, 8] ldr w0, [x0] cmp w0, 0 cset w0, ne and w0, w0, 255 add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE2: .size __spin_lock_locked, .-__spin_lock_locked ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "/tmp/zipjail-input" .align 3 .LC1: .string "/tmp/zipjail-workingdir/foo" .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 mov w1, 0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl open bl close mov w1, 509 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl mkdir 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" .align 3 .LC1: .string "%f %f" .align 3 .LC2: .string "%d %d\r\n%.1f %.1f" .text .align 2 .global main .type main, %function main: .LFB6: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 40] mov x1, 0 add x1, sp, 28 add x0, sp, 24 mov x2, x1 mov x1, x0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl __isoc99_scanf add x1, sp, 36 add x0, sp, 32 mov x2, x1 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf ldr w1, [sp, 24] ldr w0, [sp, 28] add w3, w1, w0 ldr w1, [sp, 24] ldr w0, [sp, 28] sub w0, w1, w0 ldr s1, [sp, 32] ldr s0, [sp, 36] fadd s0, s1, s0 fcvt d2, s0 ldr s1, [sp, 32] ldr s0, [sp, 36] fsub s0, s1, s0 fcvt d0, s0 fmov d1, d0 fmov d0, d2 mov w2, w0 mov w1, w3 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 40] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L3 bl __stack_chk_fail .L3: mov w0, w1 ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .data.rel.local,"aw" .align 3 .type true_ptr, %object .size true_ptr, 8 true_ptr: .xword true_ptr .global firstlabel .section .rodata .align 3 .LC0: .string "$" .section .data.rel.local .align 3 .type firstlabel, %object .size firstlabel, 64 firstlabel: .xword .LC0 .xword 0 .word 0 .zero 4 .xword true_ptr .word 1 .word 0 .word 0 .word 0 .word 0 .zero 4 .xword 0 .global allowunstable .bss .align 2 .type allowunstable, %object .size allowunstable, 4 allowunstable: .zero 4 .global allowhunstable .align 2 .type allowhunstable, %object .size allowhunstable, 4 allowhunstable: .zero 4 .global ines_include .align 2 .type ines_include, %object .size ines_include, 4 ines_include: .zero 4 .global inesprg_num .align 2 .type inesprg_num, %object .size inesprg_num, 4 inesprg_num: .zero 4 .global ineschr_num .align 2 .type ineschr_num, %object .size ineschr_num, 4 ineschr_num: .zero 4 .global inesmir_num .align 2 .type inesmir_num, %object .size inesmir_num, 4 inesmir_num: .zero 4 .global inesmap_num .align 2 .type inesmap_num, %object .size inesmap_num, 4 inesmap_num: .zero 4 .global use_nes2 .align 2 .type use_nes2, %object .size use_nes2, 4 use_nes2: .zero 4 .global nes2chr_num .align 2 .type nes2chr_num, %object .size nes2chr_num, 4 nes2chr_num: .zero 4 .global nes2prg_num .align 2 .type nes2prg_num, %object .size nes2prg_num, 4 nes2prg_num: .zero 4 .global nes2sub_num .align 2 .type nes2sub_num, %object .size nes2sub_num, 4 nes2sub_num: .zero 4 .global nes2tv_num .align 2 .type nes2tv_num, %object .size nes2tv_num, 4 nes2tv_num: .zero 4 .global nes2vs_num .align 2 .type nes2vs_num, %object .size nes2vs_num, 4 nes2vs_num: .zero 4 .global nes2wram_num .align 2 .type nes2wram_num, %object .size nes2wram_num, 4 nes2wram_num: .zero 4 .global nes2bram_num .align 2 .type nes2bram_num, %object .size nes2bram_num, 4 nes2bram_num: .zero 4 .global nes2chrbram_num .align 2 .type nes2chrbram_num, %object .size nes2chrbram_num, 4 nes2chrbram_num: .zero 4 .global filepos .align 2 .type filepos, %object .size filepos, 4 filepos: .zero 4 .global opsize .data .align 3 .type opsize, %object .size opsize, 52 opsize: .word 0 .word 1 .word 2 .word 1 .word 1 .word 1 .word 1 .word 2 .word 2 .word 1 .word 2 .word 1 .word 0 .global ophead .align 3 .type ophead, %object .size ophead, 13 ophead: .string "" .string "#(((" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .global optail .section .rodata .align 3 .LC1: .string "A" .align 3 .LC2: .string "" .align 3 .LC3: .string ")" .align 3 .LC4: .string ",X)" .align 3 .LC5: .string "),Y" .align 3 .LC6: .string ",X" .align 3 .LC7: .string ",Y" .section .data.rel.local .align 3 .type optail, %object .size optail, 104 optail: .xword .LC1 .xword .LC2 .xword .LC3 .xword .LC4 .xword .LC5 .xword .LC6 .xword .LC7 .xword .LC6 .xword .LC7 .xword .LC2 .xword .LC2 .xword .LC2 .xword .LC2 .global brk .data .align 3 .type brk, %object .size brk, 7 brk: .string "" .string "\001" .string "\t" .ascii "\f\377" .global ora .align 3 .type ora, %object .size ora, 17 ora: .ascii "\t\001\001\003\021\004\025\005\035\007\031\b\005\t\r\n\377" .global asl .align 3 .type asl, %object .size asl, 13 asl: .string "\n" .ascii "\026\005\036\007\006\t\016\n\n\f\377" .global php .align 3 .type php, %object .size php, 3 php: .ascii "\b\f\377" .global bpl .align 3 .type bpl, %object .size bpl, 3 bpl: .ascii "\020\013\377" .global clc .align 3 .type clc, %object .size clc, 3 clc: .ascii "\030\f\377" .global jsr .align 3 .type jsr, %object .size jsr, 3 jsr: .ascii " \n\377" .global and .align 3 .type and, %object .size and, 17 and: .ascii ")\001!\0031\0045\005=\0079\b%\t-\n\377" .global bit .align 3 .type bit, %object .size bit, 5 bit: .ascii "$\t,\n\377" .global rol .align 3 .type rol, %object .size rol, 13 rol: .string "*" .ascii "6\005>\007&\t.\n*\f\377" .global plp .align 3 .type plp, %object .size plp, 3 plp: .ascii "(\f\377" .global bmi .align 3 .type bmi, %object .size bmi, 3 bmi: .ascii "0\013\377" .global sec .align 3 .type sec, %object .size sec, 3 sec: .ascii "8\f\377" .global rti .align 3 .type rti, %object .size rti, 3 rti: .ascii "@\f\377" .global eor .align 3 .type eor, %object .size eor, 17 eor: .ascii "I\001A\003Q\004U\005]\007Y\bE\tM\n\377" .global lsr .align 3 .type lsr, %object .size lsr, 13 lsr: .string "J" .ascii "V\005^\007F\tN\nJ\f\377" .global pha .align 3 .type pha, %object .size pha, 3 pha: .ascii "H\f\377" .global jmp .align 3 .type jmp, %object .size jmp, 5 jmp: .ascii "l\002L\n\377" .global bvc .align 3 .type bvc, %object .size bvc, 3 bvc: .ascii "P\013\377" .global cli .align 3 .type cli, %object .size cli, 3 cli: .ascii "X\f\377" .global rts .align 3 .type rts, %object .size rts, 3 rts: .ascii "`\f\377" .global adc .align 3 .type adc, %object .size adc, 17 adc: .ascii "i\001a\003q\004u\005}\007y\be\tm\n\377" .global ror .align 3 .type ror, %object .size ror, 13 ror: .string "j" .ascii "v\005~\007f\tn\nj\f\377" .global pla .align 3 .type pla, %object .size pla, 3 pla: .ascii "h\f\377" .global bvs .align 3 .type bvs, %object .size bvs, 3 bvs: .ascii "p\013\377" .global sei .align 3 .type sei, %object .size sei, 3 sei: .ascii "x\f\377" .global sta .align 3 .type sta, %object .size sta, 15 sta: .ascii "\201\003\221\004\225\005\235\007\231\b\205\t\215\n\377" .global sty .align 3 .type sty, %object .size sty, 7 sty: .ascii "\224\005\204\t\214\n\377" .global stx .align 3 .type stx, %object .size stx, 7 stx: .ascii "\226\006\206\t\216\n\377" .global dey .align 3 .type dey, %object .size dey, 3 dey: .ascii "\210\f\377" .global txa .align 3 .type txa, %object .size txa, 3 txa: .ascii "\212\f\377" .global bcc .align 3 .type bcc, %object .size bcc, 3 bcc: .ascii "\220\013\377" .global tya .align 3 .type tya, %object .size tya, 3 tya: .ascii "\230\f\377" .global txs .align 3 .type txs, %object .size txs, 3 txs: .ascii "\232\f\377" .global ldy .align 3 .type ldy, %object .size ldy, 11 ldy: .ascii "\240\001\264\005\274\007\244\t\254\n\377" .global lda .align 3 .type lda, %object .size lda, 17 lda: .ascii "\251\001\241\003\261\004\265\005\275\007\271\b\245\t\255\n\377" .global ldx .align 3 .type ldx, %object .size ldx, 11 ldx: .ascii "\242\001\266\006\276\b\246\t\256\n\377" .global tay .align 3 .type tay, %object .size tay, 3 tay: .ascii "\250\f\377" .global tax .align 3 .type tax, %object .size tax, 3 tax: .ascii "\252\f\377" .global bcs .align 3 .type bcs, %object .size bcs, 3 bcs: .ascii "\260\013\377" .global clv .align 3 .type clv, %object .size clv, 3 clv: .ascii "\270\f\377" .global tsx .align 3 .type tsx, %object .size tsx, 3 tsx: .ascii "\272\f\377" .global cpy .align 3 .type cpy, %object .size cpy, 7 cpy: .ascii "\300\001\304\t\314\n\377" .global cmp .align 3 .type cmp, %object .size cmp, 17 cmp: .ascii "\311\001\301\003\321\004\325\005\335\007\331\b\305\t\315\n\377" .global dec .align 3 .type dec, %object .size dec, 9 dec: .ascii "\326\005\336\007\306\t\316\n\377" .global iny .align 3 .type iny, %object .size iny, 3 iny: .ascii "\310\f\377" .global dex .align 3 .type dex, %object .size dex, 3 dex: .ascii "\312\f\377" .global bne .align 3 .type bne, %object .size bne, 3 bne: .ascii "\320\013\377" .global cld .align 3 .type cld, %object .size cld, 3 cld: .ascii "\330\f\377" .global cpx .align 3 .type cpx, %object .size cpx, 7 cpx: .ascii "\340\001\344\t\354\n\377" .global sbc .align 3 .type sbc, %object .size sbc, 17 sbc: .ascii "\351\001\341\003\361\004\365\005\375\007\371\b\345\t\355\n\377" .global inc .align 3 .type inc, %object .size inc, 9 inc: .ascii "\366\005\376\007\346\t\356\n\377" .global inx .align 3 .type inx, %object .size inx, 3 inx: .ascii "\350\f\377" .global nop .align 3 .type nop, %object .size nop, 3 nop: .ascii "\352\f\377" .global beq .align 3 .type beq, %object .size beq, 3 beq: .ascii "\360\013\377" .global sed .align 3 .type sed, %object .size sed, 3 sed: .ascii "\370\f\377" .global slo .align 3 .type slo, %object .size slo, 15 slo: .ascii "\007\t\027\005\003\003\023\004\017\n\037\007\033\b\377" .global rla .align 3 .type rla, %object .size rla, 15 rla: .ascii "'\t7\005#\0033\004/\n?\007;\b\377" .global sre .align 3 .type sre, %object .size sre, 15 sre: .ascii "G\tW\005C\003S\004O\n_\007[\b\377" .global rra .align 3 .type rra, %object .size rra, 15 rra: .ascii "g\tw\005c\003s\004o\n\177\007{\b\377" .global sax .align 3 .type sax, %object .size sax, 9 sax: .ascii "\207\t\227\006\203\003\217\n\377" .global lax .align 3 .type lax, %object .size lax, 13 lax: .ascii "\247\t\267\006\243\003\263\004\257\n\277\b\377" .global dcp .align 3 .type dcp, %object .size dcp, 15 dcp: .ascii "\307\t\327\005\303\003\323\004\317\n\337\007\333\b\377" .global isc .align 3 .type isc, %object .size isc, 15 isc: .ascii "\347\t\367\005\343\003\363\004\357\n\377\007\373\b\377" .global anc .align 3 .type anc, %object .size anc, 3 anc: .ascii "\013\001\377" .global alr .align 3 .type alr, %object .size alr, 3 alr: .ascii "K\001\377" .global arr .align 3 .type arr, %object .size arr, 3 arr: .ascii "k\001\377" .global axs .align 3 .type axs, %object .size axs, 3 axs: .ascii "\313\001\377" .global las .align 3 .type las, %object .size las, 3 las: .ascii "\273\b\377" .global ahx .align 3 .type ahx, %object .size ahx, 5 ahx: .ascii "\223\004\237\b\377" .global shy .align 3 .type shy, %object .size shy, 3 shy: .ascii "\234\007\377" .global shx .align 3 .type shx, %object .size shx, 3 shx: .ascii "\236\b\377" .global tas .align 3 .type tas, %object .size tas, 3 tas: .ascii "\233\b\377" .global xaa .align 3 .type xaa, %object .size xaa, 3 xaa: .ascii "\213\001\377" .global rsvdlist .section .rodata .align 3 .LC8: .string "BRK" .align 3 .LC9: .string "PHP" .align 3 .LC10: .string "BPL" .align 3 .LC11: .string "CLC" .align 3 .LC12: .string "JSR" .align 3 .LC13: .string "PLP" .align 3 .LC14: .string "BMI" .align 3 .LC15: .string "SEC" .align 3 .LC16: .string "RTI" .align 3 .LC17: .string "PHA" .align 3 .LC18: .string "BVC" .align 3 .LC19: .string "CLI" .align 3 .LC20: .string "RTS" .align 3 .LC21: .string "PLA" .align 3 .LC22: .string "BVS" .align 3 .LC23: .string "SEI" .align 3 .LC24: .string "DEY" .align 3 .LC25: .string "BCC" .align 3 .LC26: .string "TYA" .align 3 .LC27: .string "LDY" .align 3 .LC28: .string "TAY" .align 3 .LC29: .string "BCS" .align 3 .LC30: .string "CLV" .align 3 .LC31: .string "CPY" .align 3 .LC32: .string "INY" .align 3 .LC33: .string "BNE" .align 3 .LC34: .string "CLD" .align 3 .LC35: .string "CPX" .align 3 .LC36: .string "INX" .align 3 .LC37: .string "BEQ" .align 3 .LC38: .string "SED" .align 3 .LC39: .string "ORA" .align 3 .LC40: .string "AND" .align 3 .LC41: .string "EOR" .align 3 .LC42: .string "ADC" .align 3 .LC43: .string "STA" .align 3 .LC44: .string "LDA" .align 3 .LC45: .string "CMP" .align 3 .LC46: .string "SBC" .align 3 .LC47: .string "ASL" .align 3 .LC48: .string "ROL" .align 3 .LC49: .string "LSR" .align 3 .LC50: .string "ROR" .align 3 .LC51: .string "TXA" .align 3 .LC52: .string "TXS" .align 3 .LC53: .string "LDX" .align 3 .LC54: .string "TAX" .align 3 .LC55: .string "TSX" .align 3 .LC56: .string "DEX" .align 3 .LC57: .string "NOP" .align 3 .LC58: .string "BIT" .align 3 .LC59: .string "JMP" .align 3 .LC60: .string "STY" .align 3 .LC61: .string "STX" .align 3 .LC62: .string "DEC" .align 3 .LC63: .string "INC" .align 3 .LC64: .string "SLO" .align 3 .LC65: .string "RLA" .align 3 .LC66: .string "SRE" .align 3 .LC67: .string "RRA" .align 3 .LC68: .string "SAX" .align 3 .LC69: .string "LAX" .align 3 .LC70: .string "DCP" .align 3 .LC71: .string "ISC" .align 3 .LC72: .string "ANC" .align 3 .LC73: .string "ALR" .align 3 .LC74: .string "ARR" .align 3 .LC75: .string "AXS" .align 3 .LC76: .string "LAS" .align 3 .LC77: .string "AHX" .align 3 .LC78: .string "SHY" .align 3 .LC79: .string "SHX" .align 3 .LC80: .string "TAS" .align 3 .LC81: .string "XAA" .section .data.rel.local .align 3 .type rsvdlist, %object .size rsvdlist, 1200 rsvdlist: .xword .LC8 .xword brk .xword .LC9 .xword php .xword .LC10 .xword bpl .xword .LC11 .xword clc .xword .LC12 .xword jsr .xword .LC13 .xword plp .xword .LC14 .xword bmi .xword .LC15 .xword sec .xword .LC16 .xword rti .xword .LC17 .xword pha .xword .LC18 .xword bvc .xword .LC19 .xword cli .xword .LC20 .xword rts .xword .LC21 .xword pla .xword .LC22 .xword bvs .xword .LC23 .xword sei .xword .LC24 .xword dey .xword .LC25 .xword bcc .xword .LC26 .xword tya .xword .LC27 .xword ldy .xword .LC28 .xword tay .xword .LC29 .xword bcs .xword .LC30 .xword clv .xword .LC31 .xword cpy .xword .LC32 .xword iny .xword .LC33 .xword bne .xword .LC34 .xword cld .xword .LC35 .xword cpx .xword .LC36 .xword inx .xword .LC37 .xword beq .xword .LC38 .xword sed .xword .LC39 .xword ora .xword .LC40 .xword and .xword .LC41 .xword eor .xword .LC42 .xword adc .xword .LC43 .xword sta .xword .LC44 .xword lda .xword .LC45 .xword cmp .xword .LC46 .xword sbc .xword .LC47 .xword asl .xword .LC48 .xword rol .xword .LC49 .xword lsr .xword .LC50 .xword ror .xword .LC51 .xword txa .xword .LC52 .xword txs .xword .LC53 .xword ldx .xword .LC54 .xword tax .xword .LC55 .xword tsx .xword .LC56 .xword dex .xword .LC57 .xword nop .xword .LC58 .xword bit .xword .LC59 .xword jmp .xword .LC60 .xword sty .xword .LC61 .xword stx .xword .LC62 .xword dec .xword .LC63 .xword inc .xword .LC64 .xword slo .xword .LC65 .xword rla .xword .LC66 .xword sre .xword .LC67 .xword rra .xword .LC68 .xword sax .xword .LC69 .xword lax .xword .LC70 .xword dcp .xword .LC71 .xword isc .xword .LC72 .xword anc .xword .LC73 .xword alr .xword .LC74 .xword arr .xword .LC75 .xword axs .xword .LC76 .xword las .xword .LC77 .xword ahx .xword .LC78 .xword shy .xword .LC79 .xword shx .xword .LC80 .xword tas .xword .LC81 .xword xaa .xword 0 .xword 0 .global unstablelist .align 3 .type unstablelist, %object .size unstablelist, 32 unstablelist: .xword .LC77 .xword .LC78 .xword .LC79 .xword .LC80 .global directives .section .rodata .align 3 .LC82: .string "IF" .align 3 .LC83: .string "ELSEIF" .align 3 .LC84: .string "ELSE" .align 3 .LC85: .string "ENDIF" .align 3 .LC86: .string "IFDEF" .align 3 .LC87: .string "IFNDEF" .align 3 .LC88: .string "=" .align 3 .LC89: .string "EQU" .align 3 .LC90: .string "ORG" .align 3 .LC91: .string "BASE" .align 3 .LC92: .string "PAD" .align 3 .LC93: .string "INCLUDE" .align 3 .LC94: .string "INCSRC" .align 3 .LC95: .string "INCBIN" .align 3 .LC96: .string "BIN" .align 3 .LC97: .string "HEX" .align 3 .LC98: .string "WORD" .align 3 .LC99: .string "DW" .align 3 .LC100: .string "DCW" .align 3 .LC101: .string "DC.W" .align 3 .LC102: .string "BYTE" .align 3 .LC103: .string "DB" .align 3 .LC104: .string "DCB" .align 3 .LC105: .string "DC.B" .align 3 .LC106: .string "DSW" .align 3 .LC107: .string "DS.W" .align 3 .LC108: .string "DSB" .align 3 .LC109: .string "DS.B" .align 3 .LC110: .string "ALIGN" .align 3 .LC111: .string "MACRO" .align 3 .LC112: .string "REPT" .align 3 .LC113: .string "ENDM" .align 3 .LC114: .string "ENDR" .align 3 .LC115: .string "ENUM" .align 3 .LC116: .string "ENDE" .align 3 .LC117: .string "IGNORENL" .align 3 .LC118: .string "ENDINL" .align 3 .LC119: .string "FILLVALUE" .align 3 .LC120: .string "DL" .align 3 .LC121: .string "DH" .align 3 .LC122: .string "ERROR" .align 3 .LC123: .string "INESPRG" .align 3 .LC124: .string "INESCHR" .align 3 .LC125: .string "INESMIR" .align 3 .LC126: .string "INESMAP" .align 3 .LC127: .string "NES2CHRRAM" .align 3 .LC128: .string "NES2PRGRAM" .align 3 .LC129: .string "NES2SUB" .align 3 .LC130: .string "NES2TV" .align 3 .LC131: .string "NES2VS" .align 3 .LC132: .string "NES2BRAM" .align 3 .LC133: .string "NES2CHRBRAM" .align 3 .LC134: .string "UNSTABLE" .align 3 .LC135: .string "HUNSTABLE" .section .data.rel.local .align 3 .type directives, %object .size directives, 896 directives: .xword .LC2 .xword nothing .xword .LC82 .xword _if .xword .LC83 .xword elseif .xword .LC84 .xword _else .xword .LC85 .xword endif .xword .LC86 .xword ifdef .xword .LC87 .xword ifndef .xword .LC88 .xword equal .xword .LC89 .xword equ .xword .LC90 .xword org .xword .LC91 .xword base .xword .LC92 .xword pad .xword .LC93 .xword include .xword .LC94 .xword include .xword .LC95 .xword incbin .xword .LC96 .xword incbin .xword .LC97 .xword hex .xword .LC98 .xword dw .xword .LC99 .xword dw .xword .LC100 .xword dw .xword .LC101 .xword dw .xword .LC102 .xword db .xword .LC103 .xword db .xword .LC104 .xword db .xword .LC105 .xword db .xword .LC106 .xword dsw .xword .LC107 .xword dsw .xword .LC108 .xword dsb .xword .LC109 .xword dsb .xword .LC110 .xword align .xword .LC111 .xword macro .xword .LC112 .xword rept .xword .LC113 .xword endm .xword .LC114 .xword endr .xword .LC115 .xword _enum .xword .LC116 .xword ende .xword .LC117 .xword ignorenl .xword .LC118 .xword endinl .xword .LC119 .xword fillval .xword .LC120 .xword dl .xword .LC121 .xword dh .xword .LC122 .xword make_error .xword .LC123 .xword inesprg .xword .LC124 .xword ineschr .xword .LC125 .xword inesmir .xword .LC126 .xword inesmap .xword .LC127 .xword nes2chrram .xword .LC128 .xword nes2prgram .xword .LC129 .xword nes2sub .xword .LC130 .xword nes2tv .xword .LC131 .xword nes2vs .xword .LC132 .xword nes2bram .xword .LC133 .xword nes2chrbram .xword .LC134 .xword unstable .xword .LC135 .xword hunstable .xword 0 .xword 0 .global OutOfRange .data .align 3 .type OutOfRange, %object .size OutOfRange, 20 OutOfRange: .string "Value out of range." .global SeekOutOfRange .align 3 .type SeekOutOfRange, %object .size SeekOutOfRange, 28 SeekOutOfRange: .string "Seek position out of range." .global BadIncbinSize .align 3 .type BadIncbinSize, %object .size BadIncbinSize, 29 BadIncbinSize: .string "INCBIN size is out of range." .global NotANumber .align 3 .type NotANumber, %object .size NotANumber, 14 NotANumber: .string "Not a number." .global UnknownLabel .align 3 .type UnknownLabel, %object .size UnknownLabel, 15 UnknownLabel: .string "Unknown label." .global Illegal .align 3 .type Illegal, %object .size Illegal, 21 Illegal: .string "Illegal instruction." .global IncompleteExp .align 3 .type IncompleteExp, %object .size IncompleteExp, 23 IncompleteExp: .string "Incomplete expression." .global LabelDefined .align 3 .type LabelDefined, %object .size LabelDefined, 23 LabelDefined: .string "Label already defined." .global MissingOperand .align 3 .type MissingOperand, %object .size MissingOperand, 17 MissingOperand: .string "Missing operand." .global DivZero .align 3 .type DivZero, %object .size DivZero, 16 DivZero: .string "Divide by zero." .global BadAddr .align 3 .type BadAddr, %object .size BadAddr, 25 BadAddr: .string "Can't determine address." .global NeedName .align 3 .type NeedName, %object .size NeedName, 13 NeedName: .string "Need a name." .global CantOpen .align 3 .type CantOpen, %object .size CantOpen, 17 CantOpen: .string "Can't open file." .global ExtraENDM .align 3 .type ExtraENDM, %object .size ExtraENDM, 20 ExtraENDM: .string "ENDM without MACRO." .global ExtraENDR .align 3 .type ExtraENDR, %object .size ExtraENDR, 19 ExtraENDR: .string "ENDR without REPT." .global ExtraENDE .align 3 .type ExtraENDE, %object .size ExtraENDE, 19 ExtraENDE: .string "ENDE without ENUM." .global ExtraENDINL .align 3 .type ExtraENDINL, %object .size ExtraENDINL, 25 ExtraENDINL: .string "ENDINL without IGNORENL." .global RecurseMACRO .align 3 .type RecurseMACRO, %object .size RecurseMACRO, 29 RecurseMACRO: .string "Recursive MACRO not allowed." .global RecurseEQU .align 3 .type RecurseEQU, %object .size RecurseEQU, 27 RecurseEQU: .string "Recursive EQU not allowed." .global NoENDIF .align 3 .type NoENDIF, %object .size NoENDIF, 15 NoENDIF: .string "Missing ENDIF." .global NoENDM .align 3 .type NoENDM, %object .size NoENDM, 14 NoENDM: .string "Missing ENDM." .global NoENDR .align 3 .type NoENDR, %object .size NoENDR, 14 NoENDR: .string "Missing ENDR." .global NoENDE .align 3 .type NoENDE, %object .size NoENDE, 14 NoENDE: .string "Missing ENDE." .global NoENDINL .align 3 .type NoENDINL, %object .size NoENDINL, 16 NoENDINL: .string "Missing ENDINL." .global IfNestLimit .align 3 .type IfNestLimit, %object .size IfNestLimit, 21 IfNestLimit: .string "Too many nested IFs." .global undefinedPC .align 3 .type undefinedPC, %object .size undefinedPC, 32 undefinedPC: .string "PC is undefined (use ORG first)" .global whitesp .align 3 .type whitesp, %object .size whitesp, 6 whitesp: .string " \t\r\n:" .global whitesp2 .align 3 .type whitesp2, %object .size whitesp2, 6 whitesp2: .string " \t\r\n\"" .global tmpstr .bss .align 3 .type tmpstr, %object .size tmpstr, 2048 tmpstr: .zero 2048 .global pass .align 2 .type pass, %object .size pass, 4 pass: .zero 4 .global scope .align 2 .type scope, %object .size scope, 4 scope: .zero 4 .global nextscope .align 2 .type nextscope, %object .size nextscope, 4 nextscope: .zero 4 .global lastchance .align 2 .type lastchance, %object .size lastchance, 4 lastchance: .zero 4 .global needanotherpass .align 2 .type needanotherpass, %object .size needanotherpass, 4 needanotherpass: .zero 4 .global error .align 2 .type error, %object .size error, 4 error: .zero 4 .global makemacro .align 3 .type makemacro, %object .size makemacro, 8 makemacro: .zero 8 .global makerept .align 3 .type makerept, %object .size makerept, 8 makerept: .zero 8 .global reptcount .align 2 .type reptcount, %object .size reptcount, 4 reptcount: .zero 4 .global iflevel .align 2 .type iflevel, %object .size iflevel, 4 iflevel: .zero 4 .global ifdone .align 3 .type ifdone, %object .size ifdone, 128 ifdone: .zero 128 .global skipline .align 3 .type skipline, %object .size skipline, 128 skipline: .zero 128 .global errmsg .align 3 .type errmsg, %object .size errmsg, 8 errmsg: .zero 8 .global inputfilename .align 3 .type inputfilename, %object .size inputfilename, 8 inputfilename: .zero 8 .global outputfilename .align 3 .type outputfilename, %object .size outputfilename, 8 outputfilename: .zero 8 .global listfilename .align 3 .type listfilename, %object .size listfilename, 8 listfilename: .zero 8 .global cdlfilename .align 3 .type cdlfilename, %object .size cdlfilename, 8 cdlfilename: .zero 8 .global verboselisting .align 2 .type verboselisting, %object .size verboselisting, 4 verboselisting: .zero 4 .global genfceuxnl .align 2 .type genfceuxnl, %object .size genfceuxnl, 4 genfceuxnl: .zero 4 .global genmesenlabels .align 2 .type genmesenlabels, %object .size genmesenlabels, 4 genmesenlabels: .zero 4 .global gencdl .align 2 .type gencdl, %object .size gencdl, 4 gencdl: .zero 4 .global genlua .align 2 .type genlua, %object .size genlua, 4 genlua: .zero 4 .global listerr .align 3 .type listerr, %object .size listerr, 8 listerr: .zero 8 .global labelhere .align 3 .type labelhere, %object .size labelhere, 8 labelhere: .zero 8 .global listfile .align 3 .type listfile, %object .size listfile, 8 listfile: .zero 8 .global outputfile .align 3 .type outputfile, %object .size outputfile, 8 outputfile: .zero 8 .global cdlfile .align 3 .type cdlfile, %object .size cdlfile, 8 cdlfile: .zero 8 .global outputbuff .align 3 .type outputbuff, %object .size outputbuff, 8192 outputbuff: .zero 8192 .global inputbuff .align 3 .type inputbuff, %object .size inputbuff, 8192 inputbuff: .zero 8192 .global outcount .align 2 .type outcount, %object .size outcount, 4 outcount: .zero 4 .global labellist .align 3 .type labellist, %object .size labellist, 8 labellist: .zero 8 .global labels .align 2 .type labels, %object .size labels, 4 labels: .zero 4 .global maxlabels .align 2 .type maxlabels, %object .size maxlabels, 4 maxlabels: .zero 4 .global labelstart .align 2 .type labelstart, %object .size labelstart, 4 labelstart: .zero 4 .global labelend .align 2 .type labelend, %object .size labelend, 4 labelend: .zero 4 .global lastlabel .align 3 .type lastlabel, %object .size lastlabel, 8 lastlabel: .zero 8 .global comments .align 3 .type comments, %object .size comments, 8 comments: .zero 8 .global commentcount .align 2 .type commentcount, %object .size commentcount, 4 commentcount: .zero 4 .global commentcapacity .align 2 .type commentcapacity, %object .size commentcapacity, 4 commentcapacity: .zero 4 .global lastcommentpos .data .align 2 .type lastcommentpos, %object .size lastcommentpos, 4 lastcommentpos: .word -1 .global nooutput .bss .align 2 .type nooutput, %object .size nooutput, 4 nooutput: .zero 4 .global nonl .align 2 .type nonl, %object .size nonl, 4 nonl: .zero 4 .global defaultfiller .align 2 .type defaultfiller, %object .size defaultfiller, 4 defaultfiller: .zero 4 .global insidemacro .align 2 .type insidemacro, %object .size insidemacro, 4 insidemacro: .zero 4 .global verbose .data .align 2 .type verbose, %object .size verbose, 4 verbose: .word 1 .text .align 2 .type ptr_from_bool, %function ptr_from_bool: .LFB6: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, 12] ldr w0, [sp, 12] cmp w0, 0 beq .L2 adrp x0, true_ptr add x0, x0, :lo12:true_ptr ldr x0, [x0] b .L3 .L2: mov x0, 0 .L3: add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size ptr_from_bool, .-ptr_from_bool .section .rodata .align 3 .LC136: .string "\nError: " .align 3 .LC137: .string "\n\n" .text .align 2 .type fatal_error, %function fatal_error: .LFB7: .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 adrp x0, outputfile add x0, x0, :lo12:outputfile ldr x0, [x0] cmp x0, 0 beq .L5 adrp x0, outputfile add x0, x0, :lo12:outputfile ldr x0, [x0] bl fclose adrp x0, outputfilename add x0, x0, :lo12:outputfilename ldr x0, [x0] bl remove .L5: 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 x0, [x0] mov x3, x0 mov x2, 8 mov x1, 1 adrp x0, .LC136 add x0, x0, :lo12:.LC136 bl fwrite 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 x3, x0 mov x2, 2 mov x1, 1 adrp x0, .LC137 add x0, x0, :lo12:.LC137 bl fwrite mov w0, 1 bl exit .cfi_endproc .LFE7: .size fatal_error, .-fatal_error .align 2 .type message, %function message: .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 adrp x0, verbose add x0, x0, :lo12:verbose ldr w0, [x0] cmp w0, 0 beq .L10 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] add x0, sp, 16 add x1, sp, 72 ldp q0, q1, [x1] stp q0, q1, [x0] add x0, sp, 16 mov x1, x0 ldr x0, [sp, 56] bl vprintf .L10: 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 .L9 bl __stack_chk_fail .L9: ldp x29, x30, [sp], 304 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE8: .size message, .-message .section .rodata .align 3 .LC138: .string "out of memory" .text .align 2 .type my_malloc, %function my_malloc: .LFB9: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] ldr x0, [sp, 24] cmp x0, 0 beq .L12 ldr x0, [sp, 24] b .L13 .L12: mov x0, 1 .L13: bl malloc str x0, [sp, 40] ldr x0, [sp, 40] cmp x0, 0 bne .L14 adrp x0, .LC138 add x0, x0, :lo12:.LC138 bl fatal_error .L14: ldr x0, [sp, 40] ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE9: .size my_malloc, .-my_malloc .align 2 .type my_strdup, %function my_strdup: .LFB10: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] ldr x0, [sp, 24] bl strlen add x0, x0, 1 str x0, [sp, 32] ldr x0, [sp, 32] bl my_malloc str x0, [sp, 40] ldr x2, [sp, 32] ldr x1, [sp, 24] ldr x0, [sp, 40] bl memcpy ldr x0, [sp, 40] ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE10: .size my_strdup, .-my_strdup .align 2 .global my_strupr .type my_strupr, %function my_strupr: .LFB11: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] ldr x0, [sp, 24] cmp x0, 0 bne .L19 mov x0, 0 b .L20 .L19: ldr x0, [sp, 24] str x0, [sp, 40] b .L21 .L22: ldr x0, [sp, 40] ldrb w0, [x0] bl toupper and w1, w0, 255 ldr x0, [sp, 40] strb w1, [x0] ldr x0, [sp, 40] add x0, x0, 1 str x0, [sp, 40] .L21: ldr x0, [sp, 40] ldrb w0, [x0] cmp w0, 0 bne .L22 ldr x0, [sp, 24] .L20: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE11: .size my_strupr, .-my_strupr .align 2 .global hexify .type hexify, %function hexify: .LFB12: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, 12] ldr w0, [sp, 12] cmp w0, 47 ble .L24 ldr w0, [sp, 12] cmp w0, 57 bgt .L24 ldr w0, [sp, 12] sub w0, w0, #48 b .L25 .L24: ldr w0, [sp, 12] cmp w0, 96 ble .L26 ldr w0, [sp, 12] cmp w0, 102 bgt .L26 ldr w0, [sp, 12] sub w0, w0, #87 b .L25 .L26: ldr w0, [sp, 12] cmp w0, 64 ble .L27 ldr w0, [sp, 12] cmp w0, 70 bgt .L27 ldr w0, [sp, 12] sub w0, w0, #55 b .L25 .L27: adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, NotANumber add x1, x1, :lo12:NotANumber str x1, [x0] mov w0, 0 .L25: add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE12: .size hexify, .-hexify .align 2 .global strend .type strend, %function strend: .LFB13: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] ldr x0, [sp, 16] str x0, [sp, 48] ldr x0, [sp, 24] bl strlen mov x1, x0 ldr x0, [sp, 24] add x0, x0, x1 str x0, [sp, 56] b .L29 .L34: ldr x0, [sp, 16] str x0, [sp, 48] ldr x0, [sp, 56] ldrb w0, [x0, -1] strb w0, [sp, 47] b .L30 .L32: ldr x0, [sp, 48] ldrb w0, [x0] ldrb w1, [sp, 47] cmp w1, w0 bne .L31 ldr x0, [sp, 56] sub x0, x0, #1 str x0, [sp, 56] b .L29 .L31: ldr x0, [sp, 48] add x0, x0, 1 str x0, [sp, 48] .L30: ldr x0, [sp, 48] ldrb w0, [x0] cmp w0, 0 bne .L32 .L29: ldr x0, [sp, 48] ldrb w0, [x0] cmp w0, 0 beq .L33 ldr x1, [sp, 56] ldr x0, [sp, 24] cmp x1, x0 bne .L34 .L33: ldr x0, [sp, 56] ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE13: .size strend, .-strend .global gvline .bss .align 3 .type gvline, %object .size gvline, 128 gvline: .zero 128 .global dependant .align 2 .type dependant, %object .size dependant, 4 dependant: .zero 4 .section .rodata .align 3 .LC139: .string "0123456789" .align 3 .LC140: .string "Can't use macro in expression." .text .align 2 .global getvalue .type getvalue, %function getvalue: .LFB14: .cfi_startproc stp x29, x30, [sp, -96]! .cfi_def_cfa_offset 96 .cfi_offset 29, -96 .cfi_offset 30, -88 mov x29, sp str x19, [sp, 16] .cfi_offset 19, -80 str x0, [sp, 40] mov w2, 1 ldr x1, [sp, 40] adrp x0, gvline add x0, x0, :lo12:gvline bl getword adrp x0, gvline add x0, x0, :lo12:gvline str x0, [sp, 72] ldr x0, [sp, 72] ldrb w0, [x0] cmp w0, 0 bne .L37 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, MissingOperand add x1, x1, :lo12:MissingOperand str x1, [x0] mov w0, 0 b .L38 .L37: str wzr, [sp, 64] ldr w0, [sp, 64] str w0, [sp, 60] ldr x0, [sp, 72] ldrb w0, [x0] cmp w0, 36 bne .L39 ldr x0, [sp, 72] add x0, x0, 1 str x0, [sp, 72] ldr x0, [sp, 72] ldrb w0, [x0] cmp w0, 0 bne .L63 adrp x0, firstlabel add x0, x0, :lo12:firstlabel ldr x0, [x0, 8] str w0, [sp, 60] b .L41 .L63: nop .L40: b .L42 .L64: nop .L42: ldr x0, [sp, 72] ldrb w0, [x0] bl hexify str w0, [sp, 68] ldr x0, [sp, 72] add x0, x0, 1 str x0, [sp, 72] ldr w0, [sp, 64] add w0, w0, 1 str w0, [sp, 64] ldr w0, [sp, 60] lsl w0, w0, 4 ldr w1, [sp, 68] orr w0, w1, w0 str w0, [sp, 60] ldr x0, [sp, 72] ldrb w0, [x0] cmp w0, 0 bne .L64 .L41: ldr w0, [sp, 64] cmp w0, 8 ble .L43 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, OutOfRange add x1, x1, :lo12:OutOfRange str x1, [x0] b .L43 .L39: ldr x0, [sp, 72] ldrb w0, [x0] cmp w0, 37 bne .L44 ldr x0, [sp, 72] add x0, x0, 1 str x0, [sp, 72] .L45: b .L47 .L65: nop .L47: ldr x0, [sp, 72] ldrb w0, [x0] str w0, [sp, 68] ldr x0, [sp, 72] add x0, x0, 1 str x0, [sp, 72] ldr w0, [sp, 64] add w0, w0, 1 str w0, [sp, 64] ldr w0, [sp, 68] sub w0, w0, #48 str w0, [sp, 68] ldr w0, [sp, 68] cmp w0, 1 ble .L46 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, NotANumber add x1, x1, :lo12:NotANumber str x1, [x0] .L46: ldr w0, [sp, 60] lsl w0, w0, 1 ldr w1, [sp, 68] orr w0, w1, w0 str w0, [sp, 60] ldr x0, [sp, 72] ldrb w0, [x0] cmp w0, 0 bne .L65 ldr w0, [sp, 64] cmp w0, 32 ble .L43 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, OutOfRange add x1, x1, :lo12:OutOfRange str x1, [x0] b .L43 .L44: ldr x0, [sp, 72] ldrb w0, [x0] cmp w0, 39 bne .L48 ldr x0, [sp, 72] add x0, x0, 1 str x0, [sp, 72] ldr x0, [sp, 72] ldrb w0, [x0] cmp w0, 92 bne .L49 ldr x0, [sp, 72] add x0, x0, 1 str x0, [sp, 72] .L49: ldr x0, [sp, 72] ldrb w0, [x0] str w0, [sp, 60] ldr x0, [sp, 72] add x0, x0, 1 str x0, [sp, 72] ldr x0, [sp, 72] ldrb w0, [x0] cmp w0, 39 beq .L43 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, NotANumber add x1, x1, :lo12:NotANumber str x1, [x0] b .L43 .L48: ldr x0, [sp, 72] ldrb w0, [x0] cmp w0, 34 bne .L50 ldr x0, [sp, 72] add x0, x0, 1 str x0, [sp, 72] ldr x0, [sp, 72] ldrb w0, [x0] cmp w0, 92 bne .L51 ldr x0, [sp, 72] add x0, x0, 1 str x0, [sp, 72] .L51: ldr x0, [sp, 72] ldrb w0, [x0] str w0, [sp, 60] ldr x0, [sp, 72] add x0, x0, 1 str x0, [sp, 72] ldr x0, [sp, 72] ldrb w0, [x0] cmp w0, 34 beq .L43 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, NotANumber add x1, x1, :lo12:NotANumber str x1, [x0] b .L43 .L50: ldr x0, [sp, 72] ldrb w0, [x0] cmp w0, 47 bls .L52 ldr x0, [sp, 72] ldrb w0, [x0] cmp w0, 57 bhi .L52 ldr x0, [sp, 72] bl strlen sub x0, x0, #1 ldr x1, [sp, 72] add x0, x1, x0 str x0, [sp, 80] adrp x0, .LC139 add x1, x0, :lo12:.LC139 ldr x0, [sp, 72] bl strspn mov x19, x0 ldr x0, [sp, 72] bl strlen cmp x19, x0 bne .L53 ldr x0, [sp, 72] bl atoi str w0, [sp, 60] b .L43 .L53: ldr x0, [sp, 80] ldrb w0, [x0] cmp w0, 98 beq .L55 ldr x0, [sp, 80] ldrb w0, [x0] cmp w0, 66 bne .L56 .L55: ldr x0, [sp, 80] strb wzr, [x0] b .L47 .L56: ldr x0, [sp, 80] ldrb w0, [x0] cmp w0, 104 beq .L57 ldr x0, [sp, 80] ldrb w0, [x0] cmp w0, 72 bne .L58 .L57: ldr x0, [sp, 80] strb wzr, [x0] b .L42 .L58: adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, NotANumber add x1, x1, :lo12:NotANumber str x1, [x0] b .L43 .L52: adrp x0, gvline add x0, x0, :lo12:gvline bl findlabel str x0, [sp, 88] ldr x0, [sp, 88] cmp x0, 0 bne .L59 adrp x0, dependant add x0, x0, :lo12:dependant mov w1, 1 str w1, [x0] adrp x0, dependant add x0, x0, :lo12:dependant ldr w1, [x0] adrp x0, needanotherpass add x0, x0, :lo12:needanotherpass str w1, [x0] adrp x0, lastchance add x0, x0, :lo12:lastchance ldr w0, [x0] cmp w0, 0 beq .L43 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, UnknownLabel add x1, x1, :lo12:UnknownLabel str x1, [x0] b .L43 .L59: ldr x0, [sp, 88] ldr x0, [x0, 24] cmp x0, 0 cset w0, eq and w0, w0, 255 mov w1, w0 adrp x0, dependant add x0, x0, :lo12:dependant ldr w0, [x0] orr w1, w1, w0 adrp x0, dependant add x0, x0, :lo12:dependant str w1, [x0] ldr x0, [sp, 88] ldr x0, [x0, 24] cmp x0, 0 cset w0, eq and w0, w0, 255 mov w1, w0 adrp x0, needanotherpass add x0, x0, :lo12:needanotherpass ldr w0, [x0] orr w1, w1, w0 adrp x0, needanotherpass add x0, x0, :lo12:needanotherpass str w1, [x0] ldr x0, [sp, 88] ldr w0, [x0, 32] cmp w0, 0 beq .L60 ldr x0, [sp, 88] ldr w0, [x0, 32] cmp w0, 1 bne .L61 .L60: ldr x0, [sp, 88] ldr x0, [x0, 8] str w0, [sp, 60] b .L43 .L61: ldr x0, [sp, 88] ldr w0, [x0, 32] cmp w0, 3 bne .L62 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, .LC140 add x1, x1, :lo12:.LC140 str x1, [x0] b .L43 .L62: adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, UnknownLabel add x1, x1, :lo12:UnknownLabel str x1, [x0] .L43: ldr w0, [sp, 60] .L38: ldr x19, [sp, 16] ldp x29, x30, [sp], 96 .cfi_restore 30 .cfi_restore 29 .cfi_restore 19 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE14: .size getvalue, .-getvalue .global mathy .data .align 3 .type mathy, %object .size mathy, 16 mathy: .string "!^&|+-*/%()<>=," .global prec .align 3 .type prec, %object .size prec, 19 prec: .string "" .ascii "\006\006\007\007\007\007\t\t\n\n\n\005\004\003\002\001\b\b" .text .align 2 .global getoperator .type getoperator, %function getoperator: .LFB15: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x19, [sp, 16] .cfi_offset 19, -32 str x0, [sp, 40] ldr x0, [sp, 40] ldr x19, [x0] ldr x0, [sp, 40] ldr x2, [x0] adrp x0, whitesp add x1, x0, :lo12:whitesp mov x0, x2 bl strspn add x1, x19, x0 ldr x0, [sp, 40] str x1, [x0] ldr x0, [sp, 40] ldr x0, [x0] add x1, x0, 1 ldr x0, [sp, 40] str x1, [x0] ldr x0, [sp, 40] ldr x0, [x0] sub x0, x0, #1 ldrb w0, [x0] cmp w0, 124 beq .L67 cmp w0, 124 bgt .L68 cmp w0, 94 beq .L69 cmp w0, 94 bgt .L68 cmp w0, 62 beq .L70 cmp w0, 62 bgt .L68 cmp w0, 61 beq .L71 cmp w0, 61 bgt .L68 cmp w0, 60 beq .L72 cmp w0, 60 bgt .L68 cmp w0, 47 beq .L73 cmp w0, 47 bgt .L68 cmp w0, 45 beq .L74 cmp w0, 45 bgt .L68 cmp w0, 43 beq .L75 cmp w0, 43 bgt .L68 cmp w0, 42 beq .L76 cmp w0, 42 bgt .L68 cmp w0, 38 beq .L77 cmp w0, 38 bgt .L68 cmp w0, 33 beq .L78 cmp w0, 37 beq .L79 b .L68 .L77: ldr x0, [sp, 40] ldr x0, [x0] ldrb w0, [x0] cmp w0, 38 bne .L80 ldr x0, [sp, 40] ldr x0, [x0] add x1, x0, 1 ldr x0, [sp, 40] str x1, [x0] mov w0, 15 b .L81 .L80: mov w0, 12 b .L81 .L67: ldr x0, [sp, 40] ldr x0, [x0] ldrb w0, [x0] cmp w0, 124 bne .L82 ldr x0, [sp, 40] ldr x0, [x0] add x1, x0, 1 ldr x0, [sp, 40] str x1, [x0] mov w0, 16 b .L81 .L82: mov w0, 14 b .L81 .L69: mov w0, 13 b .L81 .L75: mov w0, 7 b .L81 .L74: mov w0, 8 b .L81 .L76: mov w0, 9 b .L81 .L79: mov w0, 11 b .L81 .L73: mov w0, 10 b .L81 .L71: ldr x0, [sp, 40] ldr x0, [x0] ldrb w0, [x0] cmp w0, 61 bne .L83 ldr x0, [sp, 40] ldr x0, [x0] add x1, x0, 1 ldr x0, [sp, 40] str x1, [x0] .L83: mov w0, 1 b .L81 .L70: ldr x0, [sp, 40] ldr x0, [x0] ldrb w0, [x0] cmp w0, 61 bne .L84 ldr x0, [sp, 40] ldr x0, [x0] add x1, x0, 1 ldr x0, [sp, 40] str x1, [x0] mov w0, 4 b .L81 .L84: ldr x0, [sp, 40] ldr x0, [x0] ldrb w0, [x0] cmp w0, 62 bne .L85 ldr x0, [sp, 40] ldr x0, [x0] add x1, x0, 1 ldr x0, [sp, 40] str x1, [x0] mov w0, 18 b .L81 .L85: mov w0, 3 b .L81 .L72: ldr x0, [sp, 40] ldr x0, [x0] ldrb w0, [x0] cmp w0, 61 bne .L86 ldr x0, [sp, 40] ldr x0, [x0] add x1, x0, 1 ldr x0, [sp, 40] str x1, [x0] mov w0, 6 b .L81 .L86: ldr x0, [sp, 40] ldr x0, [x0] ldrb w0, [x0] cmp w0, 62 bne .L87 ldr x0, [sp, 40] ldr x0, [x0] add x1, x0, 1 ldr x0, [sp, 40] str x1, [x0] mov w0, 2 b .L81 .L87: ldr x0, [sp, 40] ldr x0, [x0] ldrb w0, [x0] cmp w0, 60 bne .L88 ldr x0, [sp, 40] ldr x0, [x0] add x1, x0, 1 ldr x0, [sp, 40] str x1, [x0] mov w0, 17 b .L81 .L88: mov w0, 5 b .L81 .L78: ldr x0, [sp, 40] ldr x0, [x0] ldrb w0, [x0] cmp w0, 61 bne .L68 ldr x0, [sp, 40] ldr x0, [x0] add x1, x0, 1 ldr x0, [sp, 40] str x1, [x0] mov w0, 2 b .L81 .L68: ldr x0, [sp, 40] ldr x0, [x0] sub x1, x0, #1 ldr x0, [sp, 40] str x1, [x0] mov w0, 0 .L81: 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 .LFE15: .size getoperator, .-getoperator .align 2 .global eval .type eval, %function eval: .LFB16: .cfi_startproc stp x29, x30, [sp, -96]! .cfi_def_cfa_offset 96 .cfi_offset 29, -96 .cfi_offset 30, -88 mov x29, sp str x19, [sp, 16] .cfi_offset 19, -80 str x0, [sp, 40] str w1, [sp, 36] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 88] mov x1, 0 ldr x0, [sp, 40] ldr x19, [x0] ldr x0, [sp, 40] ldr x2, [x0] adrp x0, whitesp add x1, x0, :lo12:whitesp mov x0, x2 bl strspn add x0, x19, x0 str x0, [sp, 72] ldr x0, [sp, 72] ldrb w0, [x0] strb w0, [sp, 59] ldrb w0, [sp, 59] cmp w0, 126 beq .L90 cmp w0, 126 bgt .L91 cmp w0, 62 beq .L92 cmp w0, 62 bgt .L91 cmp w0, 60 beq .L93 cmp w0, 60 bgt .L91 cmp w0, 45 beq .L94 cmp w0, 45 bgt .L91 cmp w0, 43 beq .L94 cmp w0, 43 bgt .L91 cmp w0, 40 beq .L95 cmp w0, 40 bgt .L91 cmp w0, 33 beq .L96 cmp w0, 35 beq .L97 b .L91 .L95: ldr x0, [sp, 72] add x0, x0, 1 str x0, [sp, 72] add x0, sp, 72 mov w1, 0 bl eval str w0, [sp, 60] ldr x19, [sp, 72] ldr x2, [sp, 72] adrp x0, whitesp add x1, x0, :lo12:whitesp mov x0, x2 bl strspn add x0, x19, x0 str x0, [sp, 72] ldr x0, [sp, 72] ldrb w0, [x0] cmp w0, 41 bne .L98 ldr x0, [sp, 72] add x0, x0, 1 str x0, [sp, 72] b .L138 .L98: adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, IncompleteExp add x1, x1, :lo12:IncompleteExp str x1, [x0] b .L138 .L97: ldr x0, [sp, 72] add x0, x0, 1 str x0, [sp, 72] add x0, sp, 72 mov w1, 0 bl eval str w0, [sp, 60] b .L138 .L90: ldr x0, [sp, 72] add x0, x0, 1 str x0, [sp, 72] add x0, sp, 72 mov w1, 11 bl eval mvn w0, w0 str w0, [sp, 60] b .L138 .L96: ldr x0, [sp, 72] add x0, x0, 1 str x0, [sp, 72] add x0, sp, 72 mov w1, 11 bl eval cmp w0, 0 cset w0, eq and w0, w0, 255 str w0, [sp, 60] b .L138 .L93: ldr x0, [sp, 72] add x0, x0, 1 str x0, [sp, 72] add x0, sp, 72 mov w1, 11 bl eval and w0, w0, 255 str w0, [sp, 60] b .L138 .L92: ldr x0, [sp, 72] add x0, x0, 1 str x0, [sp, 72] add x0, sp, 72 mov w1, 11 bl eval asr w0, w0, 8 and w0, w0, 255 str w0, [sp, 60] b .L138 .L94: ldr x0, [sp, 72] str x0, [sp, 80] ldr x0, [sp, 72] add x0, x0, 1 str x0, [sp, 72] adrp x0, dependant add x0, x0, :lo12:dependant ldr w0, [x0] str w0, [sp, 64] adrp x0, needanotherpass add x0, x0, :lo12:needanotherpass ldr w0, [x0] str w0, [sp, 68] adrp x0, dependant add x0, x0, :lo12:dependant str wzr, [x0] add x0, sp, 80 bl getvalue str w0, [sp, 60] adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x1, [x0] adrp x0, UnknownLabel add x0, x0, :lo12:UnknownLabel cmp x1, x0 bne .L101 adrp x0, errmsg add x0, x0, :lo12:errmsg str xzr, [x0] .L101: adrp x0, dependant add x0, x0, :lo12:dependant ldr w0, [x0] cmp w0, 0 beq .L102 ldr x1, [sp, 80] ldr x0, [sp, 72] cmp x1, x0 bne .L103 .L102: ldr x0, [sp, 80] str x0, [sp, 72] str xzr, [sp, 80] adrp x0, dependant add x0, x0, :lo12:dependant ldr w1, [x0] ldr w0, [sp, 64] orr w1, w1, w0 adrp x0, dependant add x0, x0, :lo12:dependant str w1, [x0] b .L104 .L103: adrp x0, dependant add x0, x0, :lo12:dependant ldr w1, [sp, 64] str w1, [x0] adrp x0, needanotherpass add x0, x0, :lo12:needanotherpass ldr w1, [sp, 68] str w1, [x0] .L104: ldr x0, [sp, 80] cmp x0, 0 beq .L141 add x0, sp, 72 mov w1, 11 bl eval str w0, [sp, 60] ldrb w0, [sp, 59] cmp w0, 45 bne .L141 ldr w0, [sp, 60] neg w0, w0 str w0, [sp, 60] b .L141 .L91: add x0, sp, 72 bl getvalue str w0, [sp, 60] b .L138 .L141: nop .L138: ldr x1, [sp, 72] ldr x0, [sp, 40] str x1, [x0] add x0, sp, 72 bl getoperator str w0, [sp, 64] adrp x0, prec add x1, x0, :lo12:prec ldrsw x0, [sp, 64] ldrb w0, [x1, x0] mov w1, w0 ldr w0, [sp, 36] cmp w0, w1 bge .L106 adrp x0, prec add x1, x0, :lo12:prec ldrsw x0, [sp, 64] ldrb w0, [x1, x0] mov w1, w0 add x0, sp, 72 bl eval str w0, [sp, 68] adrp x0, dependant add x0, x0, :lo12:dependant ldr w0, [x0] cmp w0, 0 bne .L107 ldr w0, [sp, 64] sub w0, w0, #1 cmp w0, 17 bhi .L106 adrp x1, .L110 add x1, x1, :lo12:.L110 ldr w0, [x1,w0,uxtw #2] adr x1, .Lrtx110 add x0, x1, w0, sxtw #2 br x0 .Lrtx110: .section .rodata .align 0 .align 2 .L110: .word (.L127 - .Lrtx110) / 4 .word (.L126 - .Lrtx110) / 4 .word (.L125 - .Lrtx110) / 4 .word (.L124 - .Lrtx110) / 4 .word (.L123 - .Lrtx110) / 4 .word (.L122 - .Lrtx110) / 4 .word (.L121 - .Lrtx110) / 4 .word (.L120 - .Lrtx110) / 4 .word (.L119 - .Lrtx110) / 4 .word (.L118 - .Lrtx110) / 4 .word (.L117 - .Lrtx110) / 4 .word (.L116 - .Lrtx110) / 4 .word (.L115 - .Lrtx110) / 4 .word (.L114 - .Lrtx110) / 4 .word (.L113 - .Lrtx110) / 4 .word (.L112 - .Lrtx110) / 4 .word (.L111 - .Lrtx110) / 4 .word (.L109 - .Lrtx110) / 4 .text .L116: ldr w1, [sp, 60] ldr w0, [sp, 68] and w0, w1, w0 str w0, [sp, 60] b .L106 .L113: ldr w0, [sp, 60] cmp w0, 0 beq .L128 ldr w0, [sp, 68] cmp w0, 0 beq .L128 mov w0, 1 b .L129 .L128: mov w0, 0 .L129: str w0, [sp, 60] b .L106 .L114: ldr w1, [sp, 60] ldr w0, [sp, 68] orr w0, w1, w0 str w0, [sp, 60] b .L106 .L112: ldr w0, [sp, 60] cmp w0, 0 bne .L130 ldr w0, [sp, 68] cmp w0, 0 beq .L131 .L130: mov w0, 1 b .L132 .L131: mov w0, 0 .L132: str w0, [sp, 60] b .L106 .L115: ldr w1, [sp, 60] ldr w0, [sp, 68] eor w0, w1, w0 str w0, [sp, 60] b .L106 .L121: ldr w1, [sp, 60] ldr w0, [sp, 68] add w0, w1, w0 str w0, [sp, 60] b .L106 .L120: ldr w1, [sp, 60] ldr w0, [sp, 68] sub w0, w1, w0 str w0, [sp, 60] b .L106 .L119: ldr w1, [sp, 60] ldr w0, [sp, 68] mul w0, w1, w0 str w0, [sp, 60] b .L106 .L118: ldr w0, [sp, 68] cmp w0, 0 bne .L133 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, DivZero add x1, x1, :lo12:DivZero str x1, [x0] b .L106 .L133: ldr w1, [sp, 60] ldr w0, [sp, 68] sdiv w0, w1, w0 str w0, [sp, 60] b .L106 .L117: ldr w0, [sp, 68] cmp w0, 0 bne .L135 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, DivZero add x1, x1, :lo12:DivZero str x1, [x0] b .L106 .L135: ldr w0, [sp, 60] ldr w1, [sp, 68] sdiv w2, w0, w1 ldr w1, [sp, 68] mul w1, w2, w1 sub w0, w0, w1 str w0, [sp, 60] b .L106 .L127: ldr w1, [sp, 60] ldr w0, [sp, 68] cmp w1, w0 cset w0, eq and w0, w0, 255 str w0, [sp, 60] b .L106 .L126: ldr w1, [sp, 60] ldr w0, [sp, 68] cmp w1, w0 cset w0, ne and w0, w0, 255 str w0, [sp, 60] b .L106 .L125: ldr w1, [sp, 60] ldr w0, [sp, 68] cmp w1, w0 cset w0, gt and w0, w0, 255 str w0, [sp, 60] b .L106 .L124: ldr w1, [sp, 60] ldr w0, [sp, 68] cmp w1, w0 cset w0, ge and w0, w0, 255 str w0, [sp, 60] b .L106 .L123: ldr w1, [sp, 60] ldr w0, [sp, 68] cmp w1, w0 cset w0, lt and w0, w0, 255 str w0, [sp, 60] b .L106 .L122: ldr w1, [sp, 60] ldr w0, [sp, 68] cmp w1, w0 cset w0, le and w0, w0, 255 str w0, [sp, 60] b .L106 .L111: ldr w0, [sp, 68] ldr w1, [sp, 60] lsl w0, w1, w0 str w0, [sp, 60] b .L106 .L109: ldr w0, [sp, 68] ldr w1, [sp, 60] asr w0, w1, w0 str w0, [sp, 60] b .L106 .L107: str wzr, [sp, 60] .L106: adrp x0, prec add x1, x0, :lo12:prec ldrsw x0, [sp, 64] ldrb w0, [x1, x0] mov w1, w0 ldr w0, [sp, 36] cmp w0, w1 bge .L137 adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 beq .L138 .L137: ldr w0, [sp, 60] 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 .L140 bl __stack_chk_fail .L140: mov w0, w1 ldr x19, [sp, 16] ldp x29, x30, [sp], 96 .cfi_restore 30 .cfi_restore 29 .cfi_restore 19 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE16: .size eval, .-eval .align 2 .global getword .type getword, %function getword: .LFB17: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x19, [sp, 16] .cfi_offset 19, -48 str x0, [sp, 56] str x1, [sp, 48] str w2, [sp, 44] ldr x0, [sp, 48] ldr x19, [x0] ldr x0, [sp, 48] ldr x2, [x0] adrp x0, whitesp add x1, x0, :lo12:whitesp mov x0, x2 bl strspn add x1, x19, x0 ldr x0, [sp, 48] str x1, [x0] ldr x0, [sp, 48] ldr x0, [x0] mov x2, 127 mov x1, x0 ldr x0, [sp, 56] bl strncpy ldr x0, [sp, 56] add x0, x0, 127 strb wzr, [x0] adrp x0, whitesp add x1, x0, :lo12:whitesp ldr x0, [sp, 56] bl strtok ldr w0, [sp, 44] cmp w0, 0 beq .L143 adrp x0, mathy add x1, x0, :lo12:mathy ldr x0, [sp, 56] bl strtok .L143: ldr x0, [sp, 48] ldr x19, [x0] ldr x0, [sp, 56] bl strlen add x1, x19, x0 ldr x0, [sp, 48] str x1, [x0] ldr x0, [sp, 48] ldr x0, [x0] ldrb w0, [x0] cmp w0, 58 bne .L145 ldr x0, [sp, 48] ldr x0, [x0] add x1, x0, 1 ldr x0, [sp, 48] str x1, [x0] .L145: nop ldr x19, [sp, 16] ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_restore 19 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE17: .size getword, .-getword .align 2 .global getfilename .type getfilename, %function getfilename: .LFB18: .cfi_startproc stp x29, x30, [sp, -80]! .cfi_def_cfa_offset 80 .cfi_offset 29, -80 .cfi_offset 30, -72 mov x29, sp str x19, [sp, 16] .cfi_offset 19, -64 str x0, [sp, 40] str x1, [sp, 32] ldr x0, [sp, 32] ldr x19, [x0] ldr x0, [sp, 32] ldr x2, [x0] adrp x0, whitesp add x1, x0, :lo12:whitesp mov x0, x2 bl strspn add x1, x19, x0 ldr x0, [sp, 32] str x1, [x0] ldr x0, [sp, 32] ldr x0, [x0] ldrb w0, [x0] cmp w0, 34 bne .L147 ldr x0, [sp, 32] ldr x0, [x0] add x0, x0, 1 str x0, [sp, 64] mov w1, 34 ldr x0, [sp, 64] bl strchr str x0, [sp, 72] ldr x0, [sp, 72] cmp x0, 0 beq .L148 ldr x1, [sp, 72] ldr x0, [sp, 64] sub x0, x1, x0 str w0, [sp, 60] ldrsw x0, [sp, 60] mov x2, x0 ldr x1, [sp, 64] ldr x0, [sp, 40] bl memcpy ldrsw x0, [sp, 60] ldr x1, [sp, 40] add x0, x1, x0 strb wzr, [x0] ldr x0, [sp, 72] add x1, x0, 1 ldr x0, [sp, 32] str x1, [x0] b .L150 .L148: adrp x0, whitesp add x1, x0, :lo12:whitesp ldr x0, [sp, 64] bl strend str x0, [sp, 72] ldr x1, [sp, 72] ldr x0, [sp, 64] sub x0, x1, x0 str w0, [sp, 60] ldrsw x0, [sp, 60] mov x2, x0 ldr x1, [sp, 64] ldr x0, [sp, 40] bl memcpy ldrsw x0, [sp, 60] ldr x1, [sp, 40] add x0, x1, x0 strb wzr, [x0] ldr x0, [sp, 32] ldr x1, [sp, 72] str x1, [x0] b .L150 .L147: mov w2, 0 ldr x1, [sp, 32] ldr x0, [sp, 40] bl getword .L150: 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 .LFE18: .size getfilename, .-getfilename .align 2 .global getreserved .type getreserved, %function getreserved: .LFB19: .cfi_startproc stp x29, x30, [sp, -320]! .cfi_def_cfa_offset 320 .cfi_offset 29, -320 .cfi_offset 30, -312 mov x29, sp str x19, [sp, 16] .cfi_offset 19, -304 str x0, [sp, 40] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 312] mov x1, 0 ldr x0, [sp, 40] ldr x19, [x0] ldr x0, [sp, 40] ldr x2, [x0] adrp x0, whitesp add x1, x0, :lo12:whitesp mov x0, x2 bl strspn add x1, x19, x0 ldr x0, [sp, 40] str x1, [x0] ldr x0, [sp, 40] ldr x0, [x0] ldrb w0, [x0] cmp w0, 61 bne .L152 mov w0, 61 strb w0, [sp, 184] strb wzr, [sp, 185] ldr x0, [sp, 40] ldr x0, [x0] add x1, x0, 1 ldr x0, [sp, 40] str x1, [x0] b .L153 .L152: ldr x0, [sp, 40] ldr x0, [x0] ldrb w0, [x0] cmp w0, 46 bne .L154 ldr x0, [sp, 40] ldr x0, [x0] add x1, x0, 1 ldr x0, [sp, 40] str x1, [x0] .L154: add x0, sp, 56 mov w2, 1 ldr x1, [sp, 40] bl getword add x1, sp, 56 add x0, sp, 184 bl strcpy add x0, sp, 184 bl my_strupr .L153: add x0, sp, 184 bl findlabel str x0, [sp, 48] ldr x0, [sp, 48] cmp x0, 0 bne .L155 add x0, sp, 56 bl findlabel str x0, [sp, 48] .L155: ldr x0, [sp, 48] cmp x0, 0 beq .L156 ldr x0, [sp, 48] ldr w0, [x0, 32] cmp w0, 3 bne .L157 ldr x0, [sp, 48] ldr w1, [x0, 40] adrp x0, pass add x0, x0, :lo12:pass ldr w0, [x0] cmp w1, w0 beq .L156 str xzr, [sp, 48] b .L156 .L157: ldr x0, [sp, 48] ldr w0, [x0, 32] cmp w0, 4 beq .L156 str xzr, [sp, 48] .L156: ldr x0, [sp, 48] cmp x0, 0 bne .L158 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, Illegal add x1, x1, :lo12:Illegal str x1, [x0] .L158: ldr x0, [sp, 48] mov x1, x0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 312] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L160 bl __stack_chk_fail .L160: mov x0, x1 ldr x19, [sp, 16] ldp x29, x30, [sp], 320 .cfi_restore 30 .cfi_restore 29 .cfi_restore 19 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE19: .size getreserved, .-getreserved .align 2 .global getlabel .type getlabel, %function getlabel: .LFB20: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] mov w2, 1 ldr x1, [sp, 16] ldr x0, [sp, 24] bl getword ldr x0, [sp, 24] ldrb w0, [x0] cmp w0, 36 bne .L162 ldr x0, [sp, 24] add x0, x0, 1 ldrb w0, [x0] cmp w0, 0 bne .L162 mov w0, 1 b .L163 .L162: ldr x0, [sp, 24] str x0, [sp, 40] ldr x0, [sp, 40] ldrb w0, [x0] strb w0, [sp, 39] ldrb w0, [sp, 39] cmp w0, 43 beq .L166 ldrb w0, [sp, 39] cmp w0, 45 bne .L165 .L166: ldr x0, [sp, 40] add x0, x0, 1 str x0, [sp, 40] ldr x0, [sp, 40] ldrb w0, [x0] ldrb w1, [sp, 39] cmp w1, w0 beq .L166 ldr x0, [sp, 40] ldrb w0, [x0] cmp w0, 0 bne .L165 mov w0, 1 b .L163 .L165: ldr x0, [sp, 40] ldrb w0, [x0] strb w0, [sp, 39] ldrb w0, [sp, 39] cmp w0, 64 beq .L167 ldrb w0, [sp, 39] cmp w0, 95 beq .L167 ldrb w0, [sp, 39] cmp w0, 64 bls .L168 ldrb w0, [sp, 39] cmp w0, 90 bls .L167 .L168: ldrb w0, [sp, 39] cmp w0, 96 bls .L169 ldrb w0, [sp, 39] cmp w0, 122 bhi .L169 .L167: mov w0, 1 b .L163 .L169: adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, Illegal add x1, x1, :lo12:Illegal str x1, [x0] mov w0, 0 .L163: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE20: .size getlabel, .-getlabel .align 2 .global expandline .type expandline, %function expandline: .LFB21: .cfi_startproc stp x29, x30, [sp, -208]! .cfi_def_cfa_offset 208 .cfi_offset 29, -208 .cfi_offset 30, -200 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 200] mov x1, 0 str xzr, [sp, 48] str wzr, [sp, 44] .L199: ldr x0, [sp, 16] ldrb w0, [x0] strb w0, [sp, 42] ldrb w0, [sp, 42] cmp w0, 36 beq .L174 ldrb w0, [sp, 42] cmp w0, 47 bls .L172 ldrb w0, [sp, 42] cmp w0, 57 bhi .L172 .L174: ldr x0, [sp, 24] ldrb w1, [sp, 42] strb w1, [x0] ldr x0, [sp, 16] add x0, x0, 1 str x0, [sp, 16] ldr x0, [sp, 24] add x0, x0, 1 str x0, [sp, 24] ldr x0, [sp, 16] ldrb w0, [x0] strb w0, [sp, 42] ldrb w0, [sp, 42] cmp w0, 47 bls .L173 ldrb w0, [sp, 42] cmp w0, 57 bls .L174 .L173: ldrb w0, [sp, 42] cmp w0, 64 bls .L175 ldrb w0, [sp, 42] cmp w0, 72 bls .L174 .L175: ldrb w0, [sp, 42] cmp w0, 96 bls .L176 ldrb w0, [sp, 42] cmp w0, 104 bls .L174 .L176: mov w0, 1 strb w0, [sp, 42] b .L177 .L172: ldrb w0, [sp, 42] cmp w0, 34 beq .L178 ldrb w0, [sp, 42] cmp w0, 39 bne .L179 .L178: ldr x0, [sp, 24] ldrb w1, [sp, 42] strb w1, [x0] ldr x0, [sp, 24] add x0, x0, 1 str x0, [sp, 24] ldr x0, [sp, 16] add x0, x0, 1 str x0, [sp, 16] .L182: ldr x0, [sp, 16] ldrb w0, [x0] strb w0, [sp, 43] ldr x0, [sp, 24] ldrb w1, [sp, 43] strb w1, [x0] ldrb w0, [sp, 43] cmp w0, 92 bne .L180 ldr x0, [sp, 24] add x0, x0, 1 str x0, [sp, 24] ldr x0, [sp, 16] add x0, x0, 1 str x0, [sp, 16] ldr x0, [sp, 16] ldrb w1, [x0] ldr x0, [sp, 24] strb w1, [x0] .L180: ldr x0, [sp, 24] add x0, x0, 1 str x0, [sp, 24] ldr x0, [sp, 16] add x0, x0, 1 str x0, [sp, 16] ldrb w0, [sp, 43] cmp w0, 0 beq .L181 ldrb w1, [sp, 43] ldrb w0, [sp, 42] cmp w1, w0 bne .L182 .L181: ldrb w0, [sp, 43] strb w0, [sp, 42] b .L177 .L179: ldrb w0, [sp, 42] cmp w0, 95 beq .L183 ldrb w0, [sp, 42] cmp w0, 46 beq .L183 ldrb w0, [sp, 42] cmp w0, 64 beq .L183 ldrb w0, [sp, 42] cmp w0, 64 bls .L184 ldrb w0, [sp, 42] cmp w0, 90 bls .L183 .L184: ldrb w0, [sp, 42] cmp w0, 96 bls .L185 ldrb w0, [sp, 42] cmp w0, 122 bhi .L185 .L183: ldr x0, [sp, 16] str x0, [sp, 64] .L186: ldr x0, [sp, 16] add x0, x0, 1 str x0, [sp, 16] ldr x0, [sp, 16] ldrb w0, [x0] strb w0, [sp, 42] ldrb w0, [sp, 42] cmp w0, 95 beq .L186 ldrb w0, [sp, 42] cmp w0, 46 beq .L186 ldrb w0, [sp, 42] cmp w0, 64 beq .L186 ldrb w0, [sp, 42] cmp w0, 47 bls .L187 ldrb w0, [sp, 42] cmp w0, 57 bls .L186 .L187: ldrb w0, [sp, 42] cmp w0, 64 bls .L188 ldrb w0, [sp, 42] cmp w0, 90 bls .L186 .L188: ldrb w0, [sp, 42] cmp w0, 96 bls .L189 ldrb w0, [sp, 42] cmp w0, 122 bls .L186 .L189: ldr x0, [sp, 16] strb wzr, [x0] str xzr, [sp, 56] ldr w0, [sp, 44] cmp w0, 0 bne .L190 ldr x0, [sp, 64] ldrb w0, [x0] cmp w0, 46 cset w0, eq and w0, w0, 255 and x0, x0, 255 ldr x1, [sp, 64] add x1, x1, x0 add x0, sp, 72 bl strcpy add x0, sp, 72 bl my_strupr add x2, sp, 72 adrp x0, .LC86 add x1, x0, :lo12:.LC86 mov x0, x2 bl strcmp cmp w0, 0 beq .L191 add x2, sp, 72 adrp x0, .LC87 add x1, x0, :lo12:.LC87 mov x0, x2 bl strcmp cmp w0, 0 bne .L192 .L191: mov w0, 1 str w0, [sp, 44] b .L190 .L192: ldr x0, [sp, 64] bl findlabel str x0, [sp, 56] .L190: ldr x0, [sp, 56] cmp x0, 0 beq .L193 ldr x0, [sp, 56] ldr w0, [x0, 32] cmp w0, 2 bne .L194 ldr x0, [sp, 56] ldr w1, [x0, 40] adrp x0, pass add x0, x0, :lo12:pass ldr w0, [x0] cmp w1, w0 beq .L195 .L194: str xzr, [sp, 56] b .L193 .L195: ldr x0, [sp, 56] ldr w0, [x0, 36] cmp w0, 0 beq .L193 str xzr, [sp, 56] adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, RecurseEQU add x1, x1, :lo12:RecurseEQU str x1, [x0] .L193: ldr x0, [sp, 56] cmp x0, 0 beq .L196 ldr x0, [sp, 56] mov w1, 1 str w1, [x0, 36] ldr x0, [sp, 56] ldr x0, [x0, 24] mov x1, x0 ldr x0, [sp, 24] bl expandline ldr x0, [sp, 56] str wzr, [x0, 36] b .L197 .L196: ldr x1, [sp, 64] ldr x0, [sp, 24] bl strcpy .L197: ldr x0, [sp, 24] bl strlen mov x1, x0 ldr x0, [sp, 24] add x0, x0, x1 str x0, [sp, 24] ldr x0, [sp, 16] ldrb w1, [sp, 42] strb w1, [x0] b .L177 .L185: ldrb w0, [sp, 42] cmp w0, 59 bne .L198 strb wzr, [sp, 42] ldr x0, [sp, 16] str x0, [sp, 48] .L198: ldr x0, [sp, 24] ldrb w1, [sp, 42] strb w1, [x0] ldr x0, [sp, 24] add x0, x0, 1 str x0, [sp, 24] ldr x0, [sp, 16] add x0, x0, 1 str x0, [sp, 16] .L177: ldrb w0, [sp, 42] cmp w0, 0 bne .L199 ldr x0, [sp, 48] mov x1, x0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 200] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L201 bl __stack_chk_fail .L201: mov x0, x1 ldp x29, x30, [sp], 208 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE21: .size expandline, .-expandline .align 2 .global eatchar .type eatchar, %function eatchar: .LFB22: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x19, [sp, 16] .cfi_offset 19, -32 str x0, [sp, 40] strb w1, [sp, 39] ldrb w0, [sp, 39] cmp w0, 0 beq .L203 ldr x0, [sp, 40] ldr x19, [x0] ldr x0, [sp, 40] ldr x2, [x0] adrp x0, whitesp add x1, x0, :lo12:whitesp mov x0, x2 bl strspn add x1, x19, x0 ldr x0, [sp, 40] str x1, [x0] ldr x0, [sp, 40] ldr x0, [x0] ldrb w0, [x0] ldrb w1, [sp, 39] cmp w1, w0 bne .L204 ldr x0, [sp, 40] ldr x0, [x0] add x1, x0, 1 ldr x0, [sp, 40] str x1, [x0] mov w0, 1 b .L205 .L204: mov w0, 0 b .L205 .L203: mov w0, 1 .L205: 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 .LFE22: .size eatchar, .-eatchar .align 2 .global reverse .type reverse, %function reverse: .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] str x1, [sp, 16] ldr x0, [sp, 16] bl strlen mov x1, x0 ldr x0, [sp, 24] add x0, x0, x1 str x0, [sp, 24] ldr x0, [sp, 24] strb wzr, [x0] b .L207 .L208: ldr x0, [sp, 16] add x1, x0, 1 str x1, [sp, 16] ldr x1, [sp, 24] sub x1, x1, #1 str x1, [sp, 24] ldrb w1, [x0] ldr x0, [sp, 24] strb w1, [x0] .L207: ldr x0, [sp, 16] ldrb w0, [x0] cmp w0, 0 bne .L208 nop nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE23: .size reverse, .-reverse .section .rodata .align 3 .LC141: .string ".nes.ram.nl" .align 3 .LC142: .string "w" .align 3 .LC143: .string "$%04X#%s#\n" .align 3 .LC144: .string ".nes.%X.nl" .text .align 2 .global export_labelfiles .type export_labelfiles, %function export_labelfiles: .LFB24: .cfi_startproc sub sp, sp, #1600 .cfi_def_cfa_offset 1600 stp x29, x30, [sp] .cfi_offset 29, -1600 .cfi_offset 30, -1592 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 1592] mov x1, 0 str wzr, [sp, 24] b .L210 .L211: ldrsw x0, [sp, 24] lsl x0, x0, 3 add x1, sp, 56 str xzr, [x1, x0] ldr w0, [sp, 24] add w0, w0, 1 str w0, [sp, 24] .L210: ldr w0, [sp, 24] cmp w0, 63 ble .L211 adrp x0, outputfilename add x0, x0, :lo12:outputfilename ldr x1, [x0] add x0, sp, 1080 bl strcpy add x0, sp, 1080 mov w1, 46 bl strrchr str x0, [sp, 32] ldr x0, [sp, 32] cmp x0, 0 beq .L212 mov w1, 92 ldr x0, [sp, 32] bl strchr cmp x0, 0 beq .L212 str xzr, [sp, 32] .L212: ldr x0, [sp, 32] cmp x0, 0 bne .L213 add x0, sp, 568 bl strlen mov x1, x0 add x0, sp, 1080 add x0, x0, x1 str x0, [sp, 32] .L213: ldr x2, [sp, 32] adrp x0, .LC141 add x1, x0, :lo12:.LC141 mov x0, x2 ldr x2, [x1] str x2, [x0] ldr w1, [x1, 8] str w1, [x0, 8] add x2, sp, 1080 adrp x0, .LC142 add x1, x0, :lo12:.LC142 mov x0, x2 bl fopen str x0, [sp, 40] adrp x0, labelstart add x0, x0, :lo12:labelstart ldr w0, [x0] str w0, [sp, 24] b .L214 .L221: adrp x0, labellist add x0, x0, :lo12:labellist ldr x1, [x0] ldrsw x0, [sp, 24] lsl x0, x0, 3 add x0, x1, x0 ldr x0, [x0] str x0, [sp, 48] ldr x0, [sp, 48] ldr w0, [x0, 48] cmp w0, 0 bne .L226 ldr x0, [sp, 48] ldr w0, [x0, 32] cmp w0, 0 beq .L217 ldr x0, [sp, 48] ldr w0, [x0, 32] cmp w0, 2 beq .L218 ldr x0, [sp, 48] ldr w0, [x0, 32] cmp w0, 1 bne .L216 .L218: ldr x0, [sp, 48] ldr x0, [x0] bl strlen cmp x0, 1 bls .L216 .L217: ldr x0, [sp, 48] ldr x1, [x0, 8] mov x0, 65535 cmp x1, x0 bgt .L216 ldr x0, [sp, 48] ldr x0, [x0, 8] mov w1, w0 ldr x0, [sp, 48] ldr x0, [x0] add x4, sp, 568 mov x3, x0 mov w2, w1 adrp x0, .LC143 add x1, x0, :lo12:.LC143 mov x0, x4 bl sprintf ldr x0, [sp, 48] ldr x1, [x0, 8] mov x0, 32767 cmp x1, x0 bgt .L219 add x0, sp, 568 bl strlen mov x1, x0 add x0, sp, 568 ldr x3, [sp, 40] mov x2, x1 mov x1, 1 bl fwrite b .L216 .L219: ldr x0, [sp, 48] ldr w0, [x0, 16] sub w0, w0, #16 mov w1, 16383 add w1, w0, w1 cmp w0, 0 csel w0, w1, w0, lt asr w0, w0, 14 str w0, [sp, 28] ldrsw x0, [sp, 28] lsl x0, x0, 3 add x1, sp, 56 ldr x0, [x1, x0] cmp x0, 0 bne .L220 ldr w2, [sp, 28] adrp x0, .LC144 add x1, x0, :lo12:.LC144 ldr x0, [sp, 32] bl sprintf add x2, sp, 1080 adrp x0, .LC142 add x1, x0, :lo12:.LC142 mov x0, x2 bl fopen mov x2, x0 ldrsw x0, [sp, 28] lsl x0, x0, 3 add x1, sp, 56 str x2, [x1, x0] .L220: add x0, sp, 568 bl strlen mov x2, x0 ldrsw x0, [sp, 28] lsl x0, x0, 3 add x1, sp, 56 ldr x1, [x1, x0] add x0, sp, 568 mov x3, x1 mov x1, 1 bl fwrite b .L216 .L226: nop .L216: ldr w0, [sp, 24] add w0, w0, 1 str w0, [sp, 24] .L214: adrp x0, labelend add x0, x0, :lo12:labelend ldr w0, [x0] ldr w1, [sp, 24] cmp w1, w0 ble .L221 ldr x0, [sp, 40] bl fclose str wzr, [sp, 24] b .L222 .L224: ldrsw x0, [sp, 24] lsl x0, x0, 3 add x1, sp, 56 ldr x0, [x1, x0] cmp x0, 0 beq .L223 ldrsw x0, [sp, 24] lsl x0, x0, 3 add x1, sp, 56 ldr x0, [x1, x0] bl fclose .L223: ldr w0, [sp, 24] add w0, w0, 1 str w0, [sp, 24] .L222: ldr w0, [sp, 24] cmp w0, 63 ble .L224 nop adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x2, [sp, 1592] ldr x1, [x0] subs x2, x2, x1 mov x1, 0 beq .L225 bl __stack_chk_fail .L225: ldp x29, x30, [sp] add sp, sp, 1600 .cfi_restore 29 .cfi_restore 30 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE24: .size export_labelfiles, .-export_labelfiles .section .rodata .align 3 .LC145: .string ".lua" .align 3 .LC146: .string "%s = 0x%04X\n" .text .align 2 .global export_lua .type export_lua, %function export_lua: .LFB25: .cfi_startproc sub sp, sp, #1088 .cfi_def_cfa_offset 1088 stp x29, x30, [sp] .cfi_offset 29, -1088 .cfi_offset 30, -1080 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 1080] mov x1, 0 adrp x0, outputfilename add x0, x0, :lo12:outputfilename ldr x1, [x0] add x0, sp, 568 bl strcpy add x0, sp, 568 mov w1, 46 bl strrchr str x0, [sp, 32] ldr x0, [sp, 32] cmp x0, 0 beq .L228 mov w1, 92 ldr x0, [sp, 32] bl strchr cmp x0, 0 beq .L228 str xzr, [sp, 32] .L228: ldr x0, [sp, 32] cmp x0, 0 bne .L229 add x0, sp, 56 bl strlen mov x1, x0 add x0, sp, 568 add x0, x0, x1 str x0, [sp, 32] .L229: ldr x2, [sp, 32] adrp x0, .LC145 add x1, x0, :lo12:.LC145 mov x0, x2 ldr w2, [x1] str w2, [x0] ldrb w1, [x1, 4] strb w1, [x0, 4] add x2, sp, 568 adrp x0, .LC142 add x1, x0, :lo12:.LC142 mov x0, x2 bl fopen str x0, [sp, 40] adrp x0, labelstart add x0, x0, :lo12:labelstart ldr w0, [x0] str w0, [sp, 28] b .L230 .L234: adrp x0, labellist add x0, x0, :lo12:labellist ldr x1, [x0] ldrsw x0, [sp, 28] lsl x0, x0, 3 add x0, x1, x0 ldr x0, [x0] str x0, [sp, 48] ldr x0, [sp, 48] ldr w0, [x0, 32] cmp w0, 0 beq .L231 ldr x0, [sp, 48] ldr w0, [x0, 32] cmp w0, 2 beq .L232 ldr x0, [sp, 48] ldr w0, [x0, 32] cmp w0, 1 bne .L233 .L232: ldr x0, [sp, 48] ldr x0, [x0] bl strlen cmp x0, 1 bls .L233 .L231: ldr x0, [sp, 48] ldr x0, [x0] ldrb w0, [x0] cmp w0, 45 beq .L233 ldr x0, [sp, 48] ldr x0, [x0] ldrb w0, [x0] cmp w0, 43 beq .L233 ldr x0, [sp, 48] ldr x1, [x0] ldr x0, [sp, 48] ldr x0, [x0, 8] add x4, sp, 56 mov w3, w0 mov x2, x1 adrp x0, .LC146 add x1, x0, :lo12:.LC146 mov x0, x4 bl sprintf add x0, sp, 56 bl strlen mov x1, x0 add x0, sp, 56 ldr x3, [sp, 40] mov x2, x1 mov x1, 1 bl fwrite .L233: ldr w0, [sp, 28] add w0, w0, 1 str w0, [sp, 28] .L230: adrp x0, labelend add x0, x0, :lo12:labelend ldr w0, [x0] ldr w1, [sp, 28] cmp w1, w0 ble .L234 ldr x0, [sp, 40] bl fclose nop adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x2, [sp, 1080] ldr x1, [x0] subs x2, x2, x1 mov x1, 0 beq .L235 bl __stack_chk_fail .L235: ldp x29, x30, [sp] add sp, sp, 1088 .cfi_restore 29 .cfi_restore 30 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE25: .size export_lua, .-export_lua .align 2 .global comparelabels .type comparelabels, %function comparelabels: .LFB26: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] ldr x0, [sp, 24] ldr x0, [x0] str x0, [sp, 32] ldr x0, [sp, 16] ldr x0, [x0] str x0, [sp, 40] ldr x0, [sp, 32] ldr w1, [x0, 32] ldr x0, [sp, 40] ldr w0, [x0, 32] cmp w1, w0 ble .L237 mov w0, 1 b .L238 .L237: ldr x0, [sp, 32] ldr w1, [x0, 32] ldr x0, [sp, 40] ldr w0, [x0, 32] cmp w1, w0 bge .L239 mov w0, -1 b .L238 .L239: ldr x0, [sp, 32] ldr w1, [x0, 16] ldr x0, [sp, 40] ldr w0, [x0, 16] cmp w1, w0 ble .L240 mov w0, 1 b .L238 .L240: ldr x0, [sp, 32] ldr w1, [x0, 16] ldr x0, [sp, 40] ldr w0, [x0, 16] cmp w1, w0 bge .L241 mov w0, -1 b .L238 .L241: ldr x0, [sp, 32] ldr x1, [x0, 8] ldr x0, [sp, 40] ldr x0, [x0, 8] cmp x1, x0 ble .L242 mov w0, 1 b .L238 .L242: ldr x0, [sp, 32] ldr x1, [x0, 8] ldr x0, [sp, 40] ldr x0, [x0, 8] cmp x1, x0 bge .L243 mov w0, -1 b .L238 .L243: ldr x0, [sp, 32] ldr x2, [x0] ldr x0, [sp, 40] ldr x0, [x0] mov x1, x0 mov x0, x2 bl strcmp .L238: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE26: .size comparelabels, .-comparelabels .align 2 .global comparecomments .type comparecomments, %function comparecomments: .LFB27: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] ldr x0, [sp, 24] ldr x0, [x0] str x0, [sp, 32] ldr x0, [sp, 16] ldr x0, [x0] str x0, [sp, 40] ldr x0, [sp, 32] ldr w1, [x0, 8] ldr x0, [sp, 40] ldr w0, [x0, 8] cmp w1, w0 ble .L245 mov w0, 1 b .L246 .L245: ldr x0, [sp, 32] ldr w1, [x0, 8] ldr x0, [sp, 40] ldr w0, [x0, 8] cmp w1, w0 bge .L247 mov w0, -1 b .L246 .L247: ldr x0, [sp, 32] ldr x2, [x0] ldr x0, [sp, 40] ldr x0, [x0] mov x1, x0 mov x0, x2 bl strcmp .L246: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE27: .size comparecomments, .-comparecomments .section .rodata .align 3 .LC147: .string ".mlb" .align 3 .LC148: .string "P:%04X::" .align 3 .LC149: .string "\n" .align 3 .LC150: .string "P:%04X:%s" .align 3 .LC151: .string ":" .align 3 .LC152: .string "R:%04X:%s\n" .align 3 .LC153: .string "S:%04X:%s\n" .align 3 .LC154: .string "W:%04X:%s\n" .align 3 .LC155: .string "G:%04X:%s\n" .text .align 2 .global export_mesenlabels .type export_mesenlabels, %function export_mesenlabels: .LFB28: .cfi_startproc sub sp, sp, #1120 .cfi_def_cfa_offset 1120 stp x29, x30, [sp] .cfi_offset 29, -1120 .cfi_offset 30, -1112 mov x29, sp str x19, [sp, 16] .cfi_offset 19, -1104 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 1112] mov x1, 0 adrp x0, outputfilename add x0, x0, :lo12:outputfilename ldr x1, [x0] add x0, sp, 600 bl strcpy add x0, sp, 600 mov w1, 46 bl strrchr str x0, [sp, 56] ldr x0, [sp, 56] cmp x0, 0 beq .L249 mov w1, 92 ldr x0, [sp, 56] bl strchr cmp x0, 0 beq .L249 str xzr, [sp, 56] .L249: ldr x0, [sp, 56] cmp x0, 0 bne .L250 add x0, sp, 600 bl strlen mov x1, x0 add x0, sp, 600 add x0, x0, x1 str x0, [sp, 56] .L250: ldr x2, [sp, 56] adrp x0, .LC147 add x1, x0, :lo12:.LC147 mov x0, x2 ldr w2, [x1] str w2, [x0] ldrb w1, [x1, 4] strb w1, [x0, 4] add x2, sp, 600 adrp x0, .LC142 add x1, x0, :lo12:.LC142 mov x0, x2 bl fopen str x0, [sp, 64] str wzr, [sp, 44] adrp x0, labellist add x0, x0, :lo12:labellist ldr x1, [x0] adrp x0, labelstart add x0, x0, :lo12:labelstart ldr w0, [x0] sxtw x0, w0 lsl x0, x0, 3 add x4, x1, x0 adrp x0, labelend add x0, x0, :lo12:labelend ldr w1, [x0] adrp x0, labelstart add x0, x0, :lo12:labelstart ldr w0, [x0] sub w0, w1, w0 add w0, w0, 1 sxtw x1, w0 adrp x0, comparelabels add x3, x0, :lo12:comparelabels mov x2, 8 mov x0, x4 bl qsort adrp x0, comments add x0, x0, :lo12:comments ldr x4, [x0] adrp x0, commentcount add x0, x0, :lo12:commentcount ldr w0, [x0] sxtw x1, w0 adrp x0, comparecomments add x3, x0, :lo12:comparecomments mov x2, 8 mov x0, x4 bl qsort adrp x0, labelstart add x0, x0, :lo12:labelstart ldr w0, [x0] str w0, [sp, 40] b .L251 .L268: adrp x0, labellist add x0, x0, :lo12:labellist ldr x1, [x0] ldrsw x0, [sp, 40] lsl x0, x0, 3 add x0, x1, x0 ldr x0, [x0] str x0, [sp, 72] ldr x0, [sp, 72] ldr x1, [x0, 8] mov x0, 65535 cmp x1, x0 bgt .L270 ldr x0, [sp, 72] ldr x0, [x0] ldrb w0, [x0] cmp w0, 43 beq .L270 ldr x0, [sp, 72] ldr x0, [x0] ldrb w0, [x0] cmp w0, 45 beq .L270 ldr x0, [sp, 72] ldr x0, [x0, 8] cmp x0, 0 blt .L270 ldr x0, [sp, 72] ldr w0, [x0, 32] cmp w0, 0 bne .L255 ldr x0, [sp, 72] ldr w0, [x0, 16] cmp w0, 15 ble .L271 str xzr, [sp, 48] b .L257 .L262: adrp x0, comments add x0, x0, :lo12:comments ldr x1, [x0] ldrsw x0, [sp, 44] lsl x0, x0, 3 add x0, x1, x0 ldr x0, [x0] str x0, [sp, 80] ldr x0, [sp, 80] ldr w1, [x0, 8] ldr x0, [sp, 72] ldr w0, [x0, 16] cmp w1, w0 bge .L258 ldr x0, [sp, 80] ldr w0, [x0, 8] cmp w0, 15 ble .L259 ldr x0, [sp, 80] ldr w0, [x0, 8] sub w0, w0, #16 add x3, sp, 88 mov w2, w0 adrp x0, .LC148 add x1, x0, :lo12:.LC148 mov x0, x3 bl sprintf add x0, sp, 88 bl strlen mov x1, x0 add x0, sp, 88 ldr x3, [sp, 64] mov x2, x1 mov x1, 1 bl fwrite ldr x0, [sp, 80] ldr x19, [x0] ldr x0, [sp, 80] ldr x0, [x0] bl strlen ldr x3, [sp, 64] mov x2, x0 mov x1, 1 mov x0, x19 bl fwrite ldr x3, [sp, 64] mov x2, 1 mov x1, 1 adrp x0, .LC149 add x0, x0, :lo12:.LC149 bl fwrite .L259: ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] b .L257 .L258: ldr x0, [sp, 80] ldr w1, [x0, 8] ldr x0, [sp, 72] ldr w0, [x0, 16] cmp w1, w0 bne .L272 ldr x0, [sp, 80] ldr x0, [x0] str x0, [sp, 48] ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] b .L261 .L257: adrp x0, commentcount add x0, x0, :lo12:commentcount ldr w0, [x0] ldr w1, [sp, 44] cmp w1, w0 blt .L262 b .L261 .L272: nop .L261: ldr x0, [sp, 72] ldr w0, [x0, 16] sub w0, w0, #16 mov w1, w0 ldr x0, [sp, 72] ldr x0, [x0] add x4, sp, 88 mov x3, x0 mov w2, w1 adrp x0, .LC150 add x1, x0, :lo12:.LC150 mov x0, x4 bl sprintf add x0, sp, 88 bl strlen mov x1, x0 add x0, sp, 88 ldr x3, [sp, 64] mov x2, x1 mov x1, 1 bl fwrite ldr x0, [sp, 48] cmp x0, 0 beq .L263 ldr x3, [sp, 64] mov x2, 1 mov x1, 1 adrp x0, .LC151 add x0, x0, :lo12:.LC151 bl fwrite ldr x0, [sp, 48] bl strlen ldr x3, [sp, 64] mov x2, x0 mov x1, 1 ldr x0, [sp, 48] bl fwrite .L263: ldr x3, [sp, 64] mov x2, 1 mov x1, 1 adrp x0, .LC149 add x0, x0, :lo12:.LC149 bl fwrite b .L254 .L255: ldr x0, [sp, 72] ldr w0, [x0, 32] cmp w0, 1 beq .L264 ldr x0, [sp, 72] ldr w0, [x0, 32] cmp w0, 2 bne .L254 .L264: ldr x0, [sp, 72] ldr x1, [x0, 8] mov x0, 8191 cmp x1, x0 bgt .L265 ldr x0, [sp, 72] ldr x0, [x0, 8] mov w1, w0 ldr x0, [sp, 72] ldr x0, [x0] add x4, sp, 88 mov x3, x0 mov w2, w1 adrp x0, .LC152 add x1, x0, :lo12:.LC152 mov x0, x4 bl sprintf b .L266 .L265: ldr x0, [sp, 72] ldr x1, [x0, 8] mov x0, 24575 cmp x1, x0 ble .L267 ldr x0, [sp, 72] ldr x1, [x0, 8] mov x0, 32767 cmp x1, x0 bgt .L267 ldr x0, [sp, 72] ldr x0, [x0, 8] sub w1, w0, #24576 ldr x0, [sp, 72] ldr x0, [x0] add x4, sp, 88 mov x3, x0 mov w2, w1 adrp x0, .LC153 add x1, x0, :lo12:.LC153 mov x0, x4 bl sprintf ldr x0, [sp, 72] ldr x0, [x0, 8] sub w1, w0, #24576 ldr x0, [sp, 72] ldr x0, [x0] add x4, sp, 88 mov x3, x0 mov w2, w1 adrp x0, .LC154 add x1, x0, :lo12:.LC154 mov x0, x4 bl sprintf b .L266 .L267: ldr x0, [sp, 72] ldr x0, [x0, 8] mov w1, w0 ldr x0, [sp, 72] ldr x0, [x0] add x4, sp, 88 mov x3, x0 mov w2, w1 adrp x0, .LC155 add x1, x0, :lo12:.LC155 mov x0, x4 bl sprintf .L266: add x0, sp, 88 bl strlen mov x1, x0 add x0, sp, 88 ldr x3, [sp, 64] mov x2, x1 mov x1, 1 bl fwrite b .L254 .L270: nop b .L254 .L271: nop .L254: ldr w0, [sp, 40] add w0, w0, 1 str w0, [sp, 40] .L251: adrp x0, labelend add x0, x0, :lo12:labelend ldr w0, [x0] ldr w1, [sp, 40] cmp w1, w0 ble .L268 ldr x0, [sp, 64] bl fclose nop 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 .L269 bl __stack_chk_fail .L269: ldr x19, [sp, 16] ldp x29, x30, [sp] add sp, sp, 1120 .cfi_restore 29 .cfi_restore 30 .cfi_restore 19 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE28: .size export_mesenlabels, .-export_mesenlabels .align 2 .global addlabel .type addlabel, %function addlabel: .LFB29: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x19, [sp, 16] .cfi_offset 19, -48 str x0, [sp, 40] str w1, [sp, 36] ldr x0, [sp, 40] ldrb w0, [x0] strb w0, [sp, 55] ldr x0, [sp, 40] bl findlabel str x0, [sp, 56] ldr x0, [sp, 56] cmp x0, 0 beq .L274 ldr w0, [sp, 36] cmp w0, 0 beq .L274 ldr x0, [sp, 56] ldr w0, [x0, 44] cmp w0, 0 bne .L274 ldr x0, [sp, 56] ldr w0, [x0, 32] cmp w0, 1 beq .L274 str xzr, [sp, 56] .L274: ldrb w0, [sp, 55] cmp w0, 64 beq .L275 ldr w0, [sp, 36] cmp w0, 0 bne .L275 adrp x0, nextscope add x0, x0, :lo12:nextscope ldr w0, [x0] add w2, w0, 1 adrp x1, nextscope add x1, x1, :lo12:nextscope str w2, [x1] adrp x1, scope add x1, x1, :lo12:scope str w0, [x1] .L275: ldr x0, [sp, 56] cmp x0, 0 bne .L276 bl newlabel mov x1, x0 adrp x0, labelhere add x0, x0, :lo12:labelhere str x1, [x0] adrp x0, labelhere add x0, x0, :lo12:labelhere ldr x0, [x0] ldr x0, [x0] cmp x0, 0 bne .L277 adrp x0, labelhere add x0, x0, :lo12:labelhere ldr x19, [x0] ldr x0, [sp, 40] bl my_strdup str x0, [x19] .L277: adrp x0, labelhere add x0, x0, :lo12:labelhere ldr x0, [x0] str wzr, [x0, 32] adrp x0, labelhere add x0, x0, :lo12:labelhere ldr x0, [x0] adrp x1, pass add x1, x1, :lo12:pass ldr w1, [x1] str w1, [x0, 40] adrp x0, labelhere add x0, x0, :lo12:labelhere ldr x0, [x0] adrp x1, firstlabel add x1, x1, :lo12:firstlabel ldr x1, [x1, 8] str x1, [x0, 8] adrp x0, firstlabel add x0, x0, :lo12:firstlabel ldr x0, [x0, 8] mvn x0, x0 lsr x0, x0, 63 and w0, w0, 255 mov w1, w0 adrp x0, labelhere add x0, x0, :lo12:labelhere ldr x19, [x0] mov w0, w1 bl ptr_from_bool str x0, [x19, 24] adrp x0, labelhere add x0, x0, :lo12:labelhere ldr x0, [x0] str wzr, [x0, 36] adrp x0, labelhere add x0, x0, :lo12:labelhere ldr x0, [x0] adrp x1, filepos add x1, x1, :lo12:filepos ldr w1, [x1] str w1, [x0, 16] adrp x0, labelhere add x0, x0, :lo12:labelhere ldr x0, [x0] adrp x1, nonl add x1, x1, :lo12:nonl ldr w1, [x1] str w1, [x0, 48] ldrb w0, [sp, 55] cmp w0, 64 beq .L278 ldr w0, [sp, 36] cmp w0, 0 beq .L279 .L278: adrp x0, labelhere add x0, x0, :lo12:labelhere ldr x0, [x0] adrp x1, scope add x1, x1, :lo12:scope ldr w1, [x1] str w1, [x0, 44] b .L280 .L279: adrp x0, labelhere add x0, x0, :lo12:labelhere ldr x0, [x0] str wzr, [x0, 44] .L280: adrp x0, labelhere add x0, x0, :lo12:labelhere ldr x1, [x0] adrp x0, lastlabel add x0, x0, :lo12:lastlabel str x1, [x0] b .L273 .L276: adrp x0, labelhere add x0, x0, :lo12:labelhere ldr x1, [sp, 56] str x1, [x0] ldr x0, [sp, 56] ldr w1, [x0, 40] adrp x0, pass add x0, x0, :lo12:pass ldr w0, [x0] cmp w1, w0 bne .L282 ldrb w0, [sp, 55] cmp w0, 45 beq .L282 ldr x0, [sp, 56] ldr w0, [x0, 32] cmp w0, 1 beq .L285 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, LabelDefined add x1, x1, :lo12:LabelDefined str x1, [x0] b .L273 .L282: adrp x0, pass add x0, x0, :lo12:pass ldr w1, [x0] ldr x0, [sp, 56] str w1, [x0, 40] ldr x0, [sp, 56] ldr w0, [x0, 32] cmp w0, 0 bne .L273 ldr x0, [sp, 56] ldr x1, [x0, 8] adrp x0, firstlabel add x0, x0, :lo12:firstlabel ldr x0, [x0, 8] cmp x1, x0 beq .L284 ldrb w0, [sp, 55] cmp w0, 45 beq .L284 adrp x0, needanotherpass add x0, x0, :lo12:needanotherpass mov w1, 1 str w1, [x0] adrp x0, lastchance add x0, x0, :lo12:lastchance ldr w0, [x0] cmp w0, 0 beq .L284 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, BadAddr add x1, x1, :lo12:BadAddr str x1, [x0] .L284: adrp x0, firstlabel add x0, x0, :lo12:firstlabel ldr x1, [x0, 8] ldr x0, [sp, 56] str x1, [x0, 8] adrp x0, filepos add x0, x0, :lo12:filepos ldr w1, [x0] ldr x0, [sp, 56] str w1, [x0, 16] adrp x0, firstlabel add x0, x0, :lo12:firstlabel ldr x0, [x0, 8] mvn x0, x0 lsr x0, x0, 63 and w0, w0, 255 bl ptr_from_bool mov x1, x0 ldr x0, [sp, 56] str x1, [x0, 24] adrp x0, lastchance add x0, x0, :lo12:lastchance ldr w0, [x0] cmp w0, 0 beq .L273 adrp x0, firstlabel add x0, x0, :lo12:firstlabel ldr x0, [x0, 8] cmp x0, 0 bge .L273 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, BadAddr add x1, x1, :lo12:BadAddr str x1, [x0] b .L273 .L285: nop .L273: ldr x19, [sp, 16] ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_restore 19 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE29: .size addlabel, .-addlabel .align 2 .global initlabels .type initlabels, %function initlabels: .LFB30: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str wzr, [sp, 20] adrp x0, labels add x0, x0, :lo12:labels mov w1, 1 str w1, [x0] mov x0, 1024 bl my_malloc mov x1, x0 adrp x0, labellist add x0, x0, :lo12:labellist str x1, [x0] adrp x0, labelstart add x0, x0, :lo12:labelstart mov w1, 64 str w1, [x0] adrp x0, labelstart add x0, x0, :lo12:labelstart ldr w1, [x0] adrp x0, labelend add x0, x0, :lo12:labelend str w1, [x0] adrp x0, maxlabels add x0, x0, :lo12:maxlabels mov w1, 128 str w1, [x0] adrp x0, labellist add x0, x0, :lo12:labellist ldr x1, [x0] adrp x0, labelstart add x0, x0, :lo12:labelstart ldr w0, [x0] sxtw x0, w0 lsl x0, x0, 3 add x0, x1, x0 adrp x1, firstlabel add x1, x1, :lo12:firstlabel str x1, [x0] .L287: adrp x0, rsvdlist add x0, x0, :lo12:rsvdlist ldrsw x1, [sp, 20] ldr x0, [x0, x1, lsl 3] bl findlabel bl newlabel str x0, [sp, 24] adrp x0, rsvdlist add x0, x0, :lo12:rsvdlist ldrsw x1, [sp, 20] ldr x1, [x0, x1, lsl 3] ldr x0, [sp, 24] str x1, [x0] adrp x0, opcode add x1, x0, :lo12:opcode ldr x0, [sp, 24] str x1, [x0, 8] ldr w0, [sp, 20] add w1, w0, 1 adrp x0, rsvdlist add x0, x0, :lo12:rsvdlist sxtw x1, w1 ldr x1, [x0, x1, lsl 3] ldr x0, [sp, 24] str x1, [x0, 24] ldr x0, [sp, 24] mov w1, 4 str w1, [x0, 32] ldr w0, [sp, 20] add w0, w0, 2 str w0, [sp, 20] adrp x0, rsvdlist add x0, x0, :lo12:rsvdlist ldrsw x1, [sp, 20] ldr x0, [x0, x1, lsl 3] cmp x0, 0 bne .L287 str wzr, [sp, 20] .L288: adrp x0, directives add x1, x0, :lo12:directives ldrsw x0, [sp, 20] lsl x0, x0, 4 add x0, x1, x0 ldr x0, [x0] bl findlabel bl newlabel str x0, [sp, 24] adrp x0, directives add x1, x0, :lo12:directives ldrsw x0, [sp, 20] lsl x0, x0, 4 add x0, x1, x0 ldr x1, [x0] ldr x0, [sp, 24] str x1, [x0] adrp x0, directives add x1, x0, :lo12:directives ldrsw x0, [sp, 20] lsl x0, x0, 4 add x0, x1, x0 ldr x0, [x0, 8] mov x1, x0 ldr x0, [sp, 24] str x1, [x0, 8] ldr x0, [sp, 24] mov w1, 4 str w1, [x0, 32] ldr w0, [sp, 20] add w0, w0, 1 str w0, [sp, 20] adrp x0, directives add x1, x0, :lo12:directives ldrsw x0, [sp, 20] lsl x0, x0, 4 add x0, x1, x0 ldr x0, [x0] cmp x0, 0 bne .L288 adrp x0, lastlabel add x0, x0, :lo12:lastlabel ldr x1, [sp, 24] str x1, [x0] nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE30: .size initlabels, .-initlabels .align 2 .global initcomments .type initcomments, %function initcomments: .LFB31: .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, commentcount add x0, x0, :lo12:commentcount str wzr, [x0] adrp x0, commentcapacity add x0, x0, :lo12:commentcapacity mov w1, 1000 str w1, [x0] adrp x0, commentcapacity add x0, x0, :lo12:commentcapacity ldr w0, [x0] sxtw x0, w0 lsl x0, x0, 3 bl my_malloc mov x1, x0 adrp x0, comments add x0, x0, :lo12:comments str x1, [x0] nop ldp x29, x30, [sp], 16 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE31: .size initcomments, .-initcomments .align 2 .global growcommentlist .type growcommentlist, %function growcommentlist: .LFB32: .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, commentcount add x0, x0, :lo12:commentcount ldr w1, [x0] adrp x0, commentcapacity add x0, x0, :lo12:commentcapacity ldr w0, [x0] cmp w1, w0 bne .L292 adrp x0, comments add x0, x0, :lo12:comments ldr x0, [x0] str x0, [sp, 24] adrp x0, commentcapacity add x0, x0, :lo12:commentcapacity ldr w0, [x0] lsl w1, w0, 1 adrp x0, commentcapacity add x0, x0, :lo12:commentcapacity str w1, [x0] adrp x0, commentcapacity add x0, x0, :lo12:commentcapacity ldr w0, [x0] sxtw x0, w0 lsl x0, x0, 3 bl my_malloc mov x1, x0 adrp x0, comments add x0, x0, :lo12:comments str x1, [x0] adrp x0, comments add x0, x0, :lo12:comments ldr x3, [x0] adrp x0, commentcount add x0, x0, :lo12:commentcount ldr w0, [x0] sxtw x0, w0 lsl x0, x0, 3 mov x2, x0 ldr x1, [sp, 24] mov x0, x3 bl memcpy ldr x0, [sp, 24] bl free .L292: nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE32: .size growcommentlist, .-growcommentlist .section .rodata .align 3 .LC156: .string "\\n" .text .align 2 .global addcomment .type addcomment, %function addcomment: .LFB33: .cfi_startproc stp x29, x30, [sp, -96]! .cfi_def_cfa_offset 96 .cfi_offset 29, -96 .cfi_offset 30, -88 mov x29, sp str x19, [sp, 16] .cfi_offset 19, -80 str x0, [sp, 40] adrp x0, oldpass.3 add x0, x0, :lo12:oldpass.3 ldr w1, [x0] adrp x0, pass add x0, x0, :lo12:pass ldr w0, [x0] cmp w1, w0 beq .L294 adrp x0, pass add x0, x0, :lo12:pass ldr w1, [x0] adrp x0, oldpass.3 add x0, x0, :lo12:oldpass.3 str w1, [x0] adrp x0, commentcount add x0, x0, :lo12:commentcount str wzr, [x0] .L294: ldr x0, [sp, 40] add x0, x0, 1 str x0, [sp, 40] adrp x0, lastcommentpos add x0, x0, :lo12:lastcommentpos ldr w1, [x0] adrp x0, filepos add x0, x0, :lo12:filepos ldr w0, [x0] cmp w1, w0 bne .L295 adrp x0, comments add x0, x0, :lo12:comments ldr x1, [x0] adrp x0, commentcount add x0, x0, :lo12:commentcount ldr w0, [x0] sxtw x0, w0 lsl x0, x0, 3 sub x0, x0, #8 add x0, x1, x0 ldr x0, [x0] str x0, [sp, 72] ldr x0, [sp, 72] ldr x0, [x0] str x0, [sp, 80] ldr x0, [sp, 80] bl strlen str w0, [sp, 60] ldrsw x19, [sp, 60] ldr x0, [sp, 40] bl strlen add x0, x19, x0 add x0, x0, 4 bl my_malloc str x0, [sp, 88] ldr x1, [sp, 80] ldr x0, [sp, 88] bl strcpy ldrsw x0, [sp, 60] ldr x1, [sp, 88] add x2, x1, x0 adrp x0, .LC156 add x1, x0, :lo12:.LC156 mov x0, x2 ldrh w2, [x1] strh w2, [x0] ldrb w1, [x1, 2] strb w1, [x0, 2] ldrsw x0, [sp, 60] add x0, x0, 2 ldr x1, [sp, 88] add x0, x1, x0 ldr x1, [sp, 40] bl strcpy ldr x0, [sp, 88] bl strlen sub x0, x0, #1 ldr x1, [sp, 88] add x0, x1, x0 strb wzr, [x0] ldr x0, [sp, 72] ldr x1, [sp, 88] str x1, [x0] b .L297 .L295: bl growcommentlist mov x0, 16 bl my_malloc str x0, [sp, 64] adrp x0, filepos add x0, x0, :lo12:filepos ldr w1, [x0] ldr x0, [sp, 64] str w1, [x0, 8] ldr x0, [sp, 40] bl strlen add x0, x0, 1 bl my_malloc mov x1, x0 ldr x0, [sp, 64] str x1, [x0] ldr x0, [sp, 64] ldr x0, [x0] ldr x1, [sp, 40] bl strcpy ldr x0, [sp, 64] ldr x19, [x0] ldr x0, [sp, 40] bl strlen sub x0, x0, #1 add x0, x19, x0 strb wzr, [x0] adrp x0, comments add x0, x0, :lo12:comments ldr x1, [x0] adrp x0, commentcount add x0, x0, :lo12:commentcount ldr w0, [x0] sxtw x0, w0 lsl x0, x0, 3 add x0, x1, x0 ldr x1, [sp, 64] str x1, [x0] adrp x0, commentcount add x0, x0, :lo12:commentcount ldr w0, [x0] add w1, w0, 1 adrp x0, commentcount add x0, x0, :lo12:commentcount str w1, [x0] adrp x0, filepos add x0, x0, :lo12:filepos ldr w1, [x0] adrp x0, lastcommentpos add x0, x0, :lo12:lastcommentpos str w1, [x0] .L297: nop ldr x19, [sp, 16] ldp x29, x30, [sp], 96 .cfi_restore 30 .cfi_restore 29 .cfi_restore 19 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE33: .size addcomment, .-addcomment .global findcmp .bss .align 2 .type findcmp, %object .size findcmp, 4 findcmp: .zero 4 .global findindex .align 2 .type findindex, %object .size findindex, 4 findindex: .zero 4 .text .align 2 .global findlabel .type findlabel, %function findlabel: .LFB34: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x0, [sp, 24] adrp x0, labelstart add x0, x0, :lo12:labelstart ldr w0, [x0] str w0, [sp, 40] adrp x0, labelend add x0, x0, :lo12:labelend ldr w0, [x0] str w0, [sp, 44] adrp x0, labels add x0, x0, :lo12:labels ldr w0, [x0] lsr w1, w0, 31 add w0, w1, w0 asr w0, w0, 1 mov w1, w0 adrp x0, labelstart add x0, x0, :lo12:labelstart ldr w0, [x0] add w1, w1, w0 adrp x0, findindex add x0, x0, :lo12:findindex str w1, [x0] .L302: adrp x0, labellist add x0, x0, :lo12:labellist ldr x1, [x0] adrp x0, findindex add x0, x0, :lo12:findindex ldr w0, [x0] sxtw x0, w0 lsl x0, x0, 3 add x0, x1, x0 ldr x0, [x0] ldr x0, [x0] mov x1, x0 ldr x0, [sp, 24] bl strcmp mov w1, w0 adrp x0, findcmp add x0, x0, :lo12:findcmp str w1, [x0] adrp x0, findcmp add x0, x0, :lo12:findcmp ldr w0, [x0] cmp w0, 0 bge .L299 adrp x0, findindex add x0, x0, :lo12:findindex ldr w0, [x0] sub w0, w0, #1 str w0, [sp, 44] adrp x0, findindex add x0, x0, :lo12:findindex ldr w1, [x0] ldr w2, [sp, 44] ldr w0, [sp, 40] sub w0, w2, w0 lsr w2, w0, 31 add w0, w2, w0 asr w0, w0, 1 add w0, w0, 1 sub w1, w1, w0 adrp x0, findindex add x0, x0, :lo12:findindex str w1, [x0] b .L300 .L299: adrp x0, findcmp add x0, x0, :lo12:findcmp ldr w0, [x0] cmp w0, 0 ble .L300 adrp x0, findindex add x0, x0, :lo12:findindex ldr w0, [x0] add w0, w0, 1 str w0, [sp, 40] ldr w1, [sp, 44] ldr w0, [sp, 40] sub w0, w1, w0 lsr w1, w0, 31 add w0, w1, w0 asr w0, w0, 1 add w1, w0, 1 adrp x0, findindex add x0, x0, :lo12:findindex ldr w0, [x0] add w1, w1, w0 adrp x0, findindex add x0, x0, :lo12:findindex str w1, [x0] .L300: adrp x0, findcmp add x0, x0, :lo12:findcmp ldr w0, [x0] cmp w0, 0 beq .L301 ldr w1, [sp, 44] ldr w0, [sp, 40] sub w0, w1, w0 cmp w0, 0 bge .L302 .L301: adrp x0, findcmp add x0, x0, :lo12:findcmp ldr w0, [x0] cmp w0, 0 beq .L303 adrp x0, findcmp add x0, x0, :lo12:findcmp ldr w0, [x0] cmp w0, 0 bge .L304 adrp x0, findindex add x0, x0, :lo12:findindex ldr w0, [x0] add w1, w0, 1 adrp x0, findindex add x0, x0, :lo12:findindex str w1, [x0] .L304: mov x0, 0 b .L305 .L303: adrp x0, labellist add x0, x0, :lo12:labellist ldr x1, [x0] adrp x0, findindex add x0, x0, :lo12:findindex ldr w0, [x0] sxtw x0, w0 lsl x0, x0, 3 add x0, x1, x0 ldr x0, [x0] str x0, [sp, 48] str xzr, [sp, 56] ldr x0, [sp, 24] ldrb w0, [x0] cmp w0, 43 bne .L306 .L309: ldr x0, [sp, 48] ldr w1, [x0, 40] adrp x0, pass add x0, x0, :lo12:pass ldr w0, [x0] cmp w1, w0 beq .L307 ldr x0, [sp, 48] ldr w0, [x0, 44] cmp w0, 0 bne .L308 ldr x0, [sp, 48] str x0, [sp, 56] .L308: ldr x0, [sp, 48] ldr w1, [x0, 44] adrp x0, scope add x0, x0, :lo12:scope ldr w0, [x0] cmp w1, w0 bne .L307 ldr x0, [sp, 48] b .L305 .L307: ldr x0, [sp, 48] ldr x0, [x0, 56] str x0, [sp, 48] ldr x0, [sp, 48] cmp x0, 0 bne .L309 b .L310 .L306: ldr x0, [sp, 48] ldr w0, [x0, 44] cmp w0, 0 bne .L311 ldr x0, [sp, 48] str x0, [sp, 56] .L311: ldr x0, [sp, 48] ldr w1, [x0, 44] adrp x0, scope add x0, x0, :lo12:scope ldr w0, [x0] cmp w1, w0 bne .L312 ldr x0, [sp, 48] b .L305 .L312: ldr x0, [sp, 48] ldr x0, [x0, 56] str x0, [sp, 48] ldr x0, [sp, 48] cmp x0, 0 bne .L306 .L310: ldr x0, [sp, 56] .L305: ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE34: .size findlabel, .-findlabel .align 2 .global growlist .type growlist, %function growlist: .LFB35: .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, maxlabels add x0, x0, :lo12:maxlabels ldr w0, [x0] lsl w1, w0, 1 adrp x0, maxlabels add x0, x0, :lo12:maxlabels str w1, [x0] adrp x0, maxlabels add x0, x0, :lo12:maxlabels ldr w0, [x0] lsr w1, w0, 31 add w0, w1, w0 asr w0, w0, 1 mov w2, w0 adrp x0, labels add x0, x0, :lo12:labels ldr w0, [x0] lsr w1, w0, 31 add w0, w1, w0 asr w0, w0, 1 neg w0, w0 add w0, w2, w0 str w0, [sp, 20] adrp x0, maxlabels add x0, x0, :lo12:maxlabels ldr w0, [x0] sxtw x0, w0 lsl x0, x0, 3 bl my_malloc str x0, [sp, 24] ldrsw x0, [sp, 20] lsl x0, x0, 3 ldr x1, [sp, 24] add x3, x1, x0 adrp x0, labellist add x0, x0, :lo12:labellist ldr x1, [x0] adrp x0, labelstart add x0, x0, :lo12:labelstart ldr w0, [x0] sxtw x0, w0 lsl x0, x0, 3 add x1, x1, x0 adrp x0, labels add x0, x0, :lo12:labels ldr w0, [x0] sxtw x0, w0 lsl x0, x0, 3 mov x2, x0 mov x0, x3 bl memcpy adrp x0, labellist add x0, x0, :lo12:labellist ldr x0, [x0] bl free adrp x0, labellist add x0, x0, :lo12:labellist ldr x1, [sp, 24] str x1, [x0] adrp x0, findindex add x0, x0, :lo12:findindex ldr w1, [x0] adrp x0, labelstart add x0, x0, :lo12:labelstart ldr w0, [x0] sub w1, w1, w0 ldr w0, [sp, 20] add w1, w1, w0 adrp x0, findindex add x0, x0, :lo12:findindex str w1, [x0] adrp x0, labelstart add x0, x0, :lo12:labelstart ldr w1, [sp, 20] str w1, [x0] adrp x0, labels add x0, x0, :lo12:labels ldr w1, [x0] ldr w0, [sp, 20] add w0, w1, w0 sub w1, w0, #1 adrp x0, labelend add x0, x0, :lo12:labelend str w1, [x0] nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE35: .size growlist, .-growlist .align 2 .global newlabel .type newlabel, %function newlabel: .LFB36: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp mov x0, 64 bl my_malloc str x0, [sp, 40] ldr x0, [sp, 40] str xzr, [x0, 56] ldr x0, [sp, 40] str wzr, [x0, 44] ldr x0, [sp, 40] str xzr, [x0] adrp x0, findcmp add x0, x0, :lo12:findcmp ldr w0, [x0] cmp w0, 0 bne .L315 adrp x0, labellist add x0, x0, :lo12:labellist ldr x1, [x0] adrp x0, findindex add x0, x0, :lo12:findindex ldr w0, [x0] sxtw x0, w0 lsl x0, x0, 3 add x0, x1, x0 ldr x0, [x0] ldr x1, [x0] ldr x0, [sp, 40] str x1, [x0] adrp x0, labellist add x0, x0, :lo12:labellist ldr x1, [x0] adrp x0, findindex add x0, x0, :lo12:findindex ldr w0, [x0] sxtw x0, w0 lsl x0, x0, 3 add x0, x1, x0 ldr x1, [x0] ldr x0, [sp, 40] str x1, [x0, 56] adrp x0, labellist add x0, x0, :lo12:labellist ldr x1, [x0] adrp x0, findindex add x0, x0, :lo12:findindex ldr w0, [x0] sxtw x0, w0 lsl x0, x0, 3 add x0, x1, x0 ldr x1, [sp, 40] str x1, [x0] ldr x0, [sp, 40] b .L316 .L315: adrp x0, labelstart add x0, x0, :lo12:labelstart ldr w0, [x0] cmp w0, 0 beq .L317 adrp x0, maxlabels add x0, x0, :lo12:maxlabels ldr w0, [x0] sub w1, w0, #1 adrp x0, labelend add x0, x0, :lo12:labelend ldr w0, [x0] cmp w1, w0 bgt .L318 .L317: bl growlist .L318: adrp x0, labellist add x0, x0, :lo12:labellist ldr x1, [x0] adrp x0, findindex add x0, x0, :lo12:findindex ldr w0, [x0] sxtw x0, w0 lsl x0, x0, 3 add x0, x1, x0 str x0, [sp, 32] adrp x0, labels add x0, x0, :lo12:labels ldr w0, [x0] lsr w1, w0, 31 add w0, w1, w0 asr w0, w0, 1 mov w1, w0 adrp x0, labelstart add x0, x0, :lo12:labelstart ldr w0, [x0] add w1, w1, w0 adrp x0, findindex add x0, x0, :lo12:findindex ldr w0, [x0] cmp w1, w0 bge .L319 adrp x0, labellist add x0, x0, :lo12:labellist ldr x1, [x0] adrp x0, labelend add x0, x0, :lo12:labelend ldr w0, [x0] sxtw x0, w0 lsl x0, x0, 3 add x0, x1, x0 str x0, [sp, 24] b .L320 .L321: ldr x0, [sp, 24] add x0, x0, 8 ldr x1, [sp, 24] ldr x1, [x1] str x1, [x0] ldr x0, [sp, 24] sub x0, x0, #8 str x0, [sp, 24] .L320: ldr x1, [sp, 24] ldr x0, [sp, 32] cmp x1, x0 bcs .L321 adrp x0, labelend add x0, x0, :lo12:labelend ldr w0, [x0] add w1, w0, 1 adrp x0, labelend add x0, x0, :lo12:labelend str w1, [x0] b .L322 .L319: ldr x0, [sp, 32] sub x0, x0, #8 str x0, [sp, 32] adrp x0, labellist add x0, x0, :lo12:labellist ldr x1, [x0] adrp x0, labelstart add x0, x0, :lo12:labelstart ldr w0, [x0] sxtw x0, w0 lsl x0, x0, 3 add x0, x1, x0 str x0, [sp, 24] b .L323 .L324: ldr x0, [sp, 24] sub x0, x0, #8 ldr x1, [sp, 24] ldr x1, [x1] str x1, [x0] ldr x0, [sp, 24] add x0, x0, 8 str x0, [sp, 24] .L323: ldr x1, [sp, 24] ldr x0, [sp, 32] cmp x1, x0 bls .L324 adrp x0, labelstart add x0, x0, :lo12:labelstart ldr w0, [x0] sub w1, w0, #1 adrp x0, labelstart add x0, x0, :lo12:labelstart str w1, [x0] .L322: ldr x0, [sp, 32] ldr x1, [sp, 40] str x1, [x0] adrp x0, labels add x0, x0, :lo12:labels ldr w0, [x0] add w1, w0, 1 adrp x0, labels add x0, x0, :lo12:labels str w1, [x0] ldr x0, [sp, 40] .L316: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE36: .size newlabel, .-newlabel .section .rodata .align 3 .LC157: .string "%s(%i): %s\n" .text .align 2 .global showerror .type showerror, %function showerror: .LFB37: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str x0, [sp, 24] str w1, [sp, 20] adrp x0, error add x0, x0, :lo12:error mov w1, 1 str w1, [x0] adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x5, [x0] adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] mov x4, x0 ldr w3, [sp, 20] ldr x2, [sp, 24] adrp x0, .LC157 add x1, x0, :lo12:.LC157 mov x0, x5 bl fprintf adrp x0, listerr add x0, x0, :lo12:listerr ldr x0, [x0] cmp x0, 0 bne .L327 adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x1, [x0] adrp x0, listerr add x0, x0, :lo12:listerr str x1, [x0] .L327: nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE37: .size showerror, .-showerror .global fileline .bss .align 3 .type fileline, %object .size fileline, 2048 fileline: .zero 2048 .text .align 2 .global processfile .type processfile, %function processfile: .LFB38: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] str wzr, [sp, 40] adrp x0, nest.2 add x0, x0, :lo12:nest.2 ldr w0, [x0] add w1, w0, 1 adrp x0, nest.2 add x0, x0, :lo12:nest.2 str w1, [x0] .L330: ldr w0, [sp, 40] add w0, w0, 1 str w0, [sp, 40] ldr x2, [sp, 24] mov w1, 2048 adrp x0, fileline add x0, x0, :lo12:fileline bl fgets cmp x0, 0 cset w0, eq and w0, w0, 255 str w0, [sp, 44] ldr w0, [sp, 44] cmp w0, 0 bne .L329 ldr w2, [sp, 40] ldr x1, [sp, 16] adrp x0, fileline add x0, x0, :lo12:fileline bl processline .L329: ldr w0, [sp, 44] cmp w0, 0 beq .L330 adrp x0, nest.2 add x0, x0, :lo12:nest.2 ldr w0, [x0] sub w1, w0, #1 adrp x0, nest.2 add x0, x0, :lo12:nest.2 str w1, [x0] ldr w0, [sp, 40] sub w0, w0, #1 str w0, [sp, 40] adrp x0, nest.2 add x0, x0, :lo12:nest.2 ldr w0, [x0] cmp w0, 0 bne .L337 adrp x0, errmsg add x0, x0, :lo12:errmsg str xzr, [x0] adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w0, [x0] cmp w0, 0 beq .L332 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, NoENDIF add x1, x1, :lo12:NoENDIF str x1, [x0] .L332: adrp x0, reptcount add x0, x0, :lo12:reptcount ldr w0, [x0] cmp w0, 0 beq .L333 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, NoENDR add x1, x1, :lo12:NoENDR str x1, [x0] .L333: adrp x0, makemacro add x0, x0, :lo12:makemacro ldr x0, [x0] cmp x0, 0 beq .L334 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, NoENDM add x1, x1, :lo12:NoENDM str x1, [x0] .L334: adrp x0, nooutput add x0, x0, :lo12:nooutput ldr w0, [x0] cmp w0, 0 beq .L335 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, NoENDE add x1, x1, :lo12:NoENDE str x1, [x0] .L335: adrp x0, nonl add x0, x0, :lo12:nonl ldr w0, [x0] cmp w0, 0 beq .L336 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, NoENDINL add x1, x1, :lo12:NoENDINL str x1, [x0] .L336: adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 beq .L337 ldr w1, [sp, 40] ldr x0, [sp, 16] bl showerror .L337: nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE38: .size processfile, .-processfile .section .rodata .align 3 .LC158: .string "Extra characters on line." .text .align 2 .global processline .type processline, %function processline: .LFB39: .cfi_startproc sub sp, sp, #2288 .cfi_def_cfa_offset 2288 stp x29, x30, [sp] .cfi_offset 29, -2288 .cfi_offset 30, -2280 mov x29, sp str x19, [sp, 16] .cfi_offset 19, -2272 str x0, [sp, 56] str x1, [sp, 48] str w2, [sp, 44] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 2280] mov x1, 0 adrp x0, errmsg add x0, x0, :lo12:errmsg str xzr, [x0] add x0, sp, 232 ldr x1, [sp, 56] bl expandline str x0, [sp, 80] adrp x0, insidemacro add x0, x0, :lo12:insidemacro ldr w0, [x0] cmp w0, 0 beq .L339 adrp x0, verboselisting add x0, x0, :lo12:verboselisting ldr w0, [x0] cmp w0, 0 beq .L340 .L339: add x0, sp, 232 ldr x1, [sp, 80] bl listline .L340: add x0, sp, 232 str x0, [sp, 64] adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 beq .L341 ldr w1, [sp, 44] ldr x0, [sp, 48] bl showerror b .L373 .L341: adrp x0, makemacro add x0, x0, :lo12:makemacro ldr x0, [x0] cmp x0, 0 beq .L343 add x0, sp, 64 bl getreserved str x0, [sp, 96] str xzr, [sp, 88] adrp x0, errmsg add x0, x0, :lo12:errmsg str xzr, [x0] ldr x0, [sp, 96] cmp x0, 0 bne .L344 ldr x0, [sp, 64] str x0, [sp, 88] add x0, sp, 64 bl getreserved str x0, [sp, 96] .L344: ldr x0, [sp, 96] cmp x0, 0 beq .L345 ldr x0, [sp, 96] ldr x1, [x0, 8] adrp x0, endm add x0, x0, :lo12:endm cmp x1, x0 bne .L345 str xzr, [sp, 80] ldr x0, [sp, 88] cmp x0, 0 beq .L346 ldr x0, [sp, 88] mov w1, 10 strb w1, [x0] ldr x0, [sp, 88] add x0, x0, 1 strb wzr, [x0] b .L345 .L346: adrp x0, makemacro add x0, x0, :lo12:makemacro str xzr, [x0] .L345: adrp x0, makemacro add x0, x0, :lo12:makemacro ldr x0, [x0] cmp x0, 0 beq .L347 adrp x0, makemacro add x0, x0, :lo12:makemacro ldr x1, [x0] adrp x0, true_ptr add x0, x0, :lo12:true_ptr ldr x0, [x0] cmp x1, x0 beq .L347 ldr x0, [sp, 80] cmp x0, 0 beq .L348 add x0, sp, 232 ldr x1, [sp, 80] bl strcat .L348: add x0, sp, 232 bl strlen add x1, x0, 9 adrp x0, makemacro add x0, x0, :lo12:makemacro ldr x19, [x0] mov x0, x1 bl my_malloc str x0, [x19] adrp x0, makemacro add x0, x0, :lo12:makemacro ldr x0, [x0] ldr x1, [x0] adrp x0, makemacro add x0, x0, :lo12:makemacro str x1, [x0] adrp x0, makemacro add x0, x0, :lo12:makemacro ldr x0, [x0] str xzr, [x0] adrp x0, makemacro add x0, x0, :lo12:makemacro ldr x0, [x0] add x0, x0, 8 add x1, sp, 232 bl strcpy .L347: ldr x0, [sp, 96] cmp x0, 0 beq .L367 ldr x0, [sp, 96] ldr x1, [x0, 8] adrp x0, endm add x0, x0, :lo12:endm cmp x1, x0 bne .L367 adrp x0, makemacro add x0, x0, :lo12:makemacro str xzr, [x0] b .L367 .L343: adrp x0, reptcount add x0, x0, :lo12:reptcount ldr w0, [x0] cmp w0, 0 beq .L350 add x0, sp, 64 bl getreserved str x0, [sp, 96] str xzr, [sp, 88] adrp x0, errmsg add x0, x0, :lo12:errmsg str xzr, [x0] ldr x0, [sp, 96] cmp x0, 0 bne .L351 ldr x0, [sp, 64] str x0, [sp, 88] add x0, sp, 64 bl getreserved str x0, [sp, 96] .L351: ldr x0, [sp, 96] cmp x0, 0 beq .L352 ldr x0, [sp, 96] ldr x1, [x0, 8] adrp x0, rept add x0, x0, :lo12:rept cmp x1, x0 bne .L353 adrp x0, reptcount add x0, x0, :lo12:reptcount ldr w0, [x0] add w1, w0, 1 adrp x0, reptcount add x0, x0, :lo12:reptcount str w1, [x0] b .L352 .L353: ldr x0, [sp, 96] ldr x1, [x0, 8] adrp x0, endr add x0, x0, :lo12:endr cmp x1, x0 bne .L352 adrp x0, reptcount add x0, x0, :lo12:reptcount ldr w0, [x0] sub w1, w0, #1 adrp x0, reptcount add x0, x0, :lo12:reptcount str w1, [x0] adrp x0, reptcount add x0, x0, :lo12:reptcount ldr w0, [x0] cmp w0, 0 bne .L352 str xzr, [sp, 80] ldr x0, [sp, 88] cmp x0, 0 beq .L352 ldr x0, [sp, 88] mov w1, 10 strb w1, [x0] ldr x0, [sp, 88] add x0, x0, 1 strb wzr, [x0] .L352: adrp x0, reptcount add x0, x0, :lo12:reptcount ldr w0, [x0] cmp w0, 0 bne .L354 ldr x0, [sp, 88] cmp x0, 0 beq .L355 .L354: ldr x0, [sp, 80] cmp x0, 0 beq .L356 add x0, sp, 232 ldr x1, [sp, 80] bl strcat .L356: add x0, sp, 232 bl strlen add x1, x0, 9 adrp x0, makerept add x0, x0, :lo12:makerept ldr x19, [x0] mov x0, x1 bl my_malloc str x0, [x19] adrp x0, makerept add x0, x0, :lo12:makerept ldr x0, [x0] ldr x1, [x0] adrp x0, makerept add x0, x0, :lo12:makerept str x1, [x0] adrp x0, makerept add x0, x0, :lo12:makerept ldr x0, [x0] str xzr, [x0] adrp x0, makerept add x0, x0, :lo12:makerept ldr x0, [x0] add x0, x0, 8 add x1, sp, 232 bl strcpy .L355: adrp x0, reptcount add x0, x0, :lo12:reptcount ldr w0, [x0] cmp w0, 0 bne .L368 ldr x1, [sp, 48] ldr w0, [sp, 44] bl expandrept b .L368 .L350: adrp x0, labelhere add x0, x0, :lo12:labelhere str xzr, [x0] ldr x0, [sp, 64] str x0, [sp, 72] add x0, sp, 64 bl getreserved str x0, [sp, 96] adrp x0, errmsg add x0, x0, :lo12:errmsg str xzr, [x0] adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w1, [x0] adrp x0, skipline add x0, x0, :lo12:skipline sxtw x1, w1 ldr w0, [x0, x1, lsl 2] cmp w0, 0 beq .L358 ldr x0, [sp, 96] cmp x0, 0 bne .L359 add x0, sp, 64 bl getreserved str x0, [sp, 96] ldr x0, [sp, 96] cmp x0, 0 beq .L369 .L359: ldr x0, [sp, 96] ldr x1, [x0, 8] adrp x0, _else add x0, x0, :lo12:_else cmp x1, x0 beq .L358 ldr x0, [sp, 96] ldr x1, [x0, 8] adrp x0, elseif add x0, x0, :lo12:elseif cmp x1, x0 beq .L358 ldr x0, [sp, 96] ldr x1, [x0, 8] adrp x0, endif add x0, x0, :lo12:endif cmp x1, x0 beq .L358 ldr x0, [sp, 96] ldr x1, [x0, 8] adrp x0, _if add x0, x0, :lo12:_if cmp x1, x0 beq .L358 ldr x0, [sp, 96] ldr x1, [x0, 8] adrp x0, ifdef add x0, x0, :lo12:ifdef cmp x1, x0 beq .L358 ldr x0, [sp, 96] ldr x1, [x0, 8] adrp x0, ifndef add x0, x0, :lo12:ifndef cmp x1, x0 bne .L370 .L358: ldr x0, [sp, 96] cmp x0, 0 bne .L360 add x1, sp, 72 add x0, sp, 104 bl getlabel cmp w0, 0 beq .L361 adrp x0, insidemacro add x0, x0, :lo12:insidemacro ldr w1, [x0] add x0, sp, 104 bl addlabel .L361: adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 bne .L371 add x0, sp, 64 bl getreserved str x0, [sp, 96] .L360: ldr x0, [sp, 96] cmp x0, 0 beq .L364 ldr x0, [sp, 96] ldr w0, [x0, 32] cmp w0, 3 bne .L365 add x0, sp, 64 ldr x3, [sp, 48] ldr w2, [sp, 44] mov x1, x0 ldr x0, [sp, 96] bl expandmacro b .L364 .L365: ldr x0, [sp, 96] ldr x0, [x0, 8] mov x2, x0 add x0, sp, 64 mov x1, x0 ldr x0, [sp, 96] blr x2 .L364: adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 bne .L372 ldr x19, [sp, 64] ldr x2, [sp, 64] adrp x0, whitesp add x1, x0, :lo12:whitesp mov x0, x2 bl strspn add x0, x19, x0 str x0, [sp, 64] ldr x0, [sp, 64] ldrb w0, [x0] cmp w0, 0 beq .L372 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, .LC158 add x1, x1, :lo12:.LC158 str x1, [x0] b .L363 .L371: nop b .L363 .L372: nop .L363: adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 beq .L373 ldr w1, [sp, 44] ldr x0, [sp, 48] bl showerror b .L373 .L367: nop b .L373 .L368: nop b .L373 .L369: nop b .L373 .L370: nop .L373: nop adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x2, [sp, 2280] ldr x1, [x0] subs x2, x2, x1 mov x1, 0 beq .L366 bl __stack_chk_fail .L366: ldr x19, [sp, 16] ldp x29, x30, [sp] add sp, sp, 2288 .cfi_restore 29 .cfi_restore 30 .cfi_restore 19 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE39: .size processline, .-processline .section .rodata .align 3 .LC159: .string "asm6f 1.6 (+ freem modifications)\n" .align 3 .LC160: .string "Usage: asm6f [-options] sourcefile [outputfile] [listfile]\n" .align 3 .LC161: .string "\t-?\t\tshow this help" .align 3 .LC162: .string "\t-l\t\tcreate listing" .align 3 .LC163: .string "\t-L\t\tcreate verbose listing (expand REPT, MACRO)" .align 3 .LC164: .string "\t-d<name>\tdefine symbol" .align 3 .LC165: .string "\t-q\t\tquiet mode (no output unless error)" .align 3 .LC166: .string "\t-n\t\texport FCEUX-compatible .nl files" .align 3 .LC167: .string "\t-f\t\texport Lua symbol file" .align 3 .LC168: .string "\t-c\t\texport .cdl for use with FCEUX/Mesen" .align 3 .LC169: .string "\t-m\t\texport Mesen-compatible label file (.mlb)\n" .align 3 .LC170: .string "See README.TXT for more info.\n" .text .align 2 .global showhelp .type showhelp, %function showhelp: .LFB40: .cfi_startproc stp x29, x30, [sp, -16]! .cfi_def_cfa_offset 16 .cfi_offset 29, -16 .cfi_offset 30, -8 mov x29, sp adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl puts adrp x0, .LC159 add x0, x0, :lo12:.LC159 bl puts adrp x0, .LC160 add x0, x0, :lo12:.LC160 bl puts adrp x0, .LC161 add x0, x0, :lo12:.LC161 bl puts adrp x0, .LC162 add x0, x0, :lo12:.LC162 bl puts adrp x0, .LC163 add x0, x0, :lo12:.LC163 bl puts adrp x0, .LC164 add x0, x0, :lo12:.LC164 bl puts adrp x0, .LC165 add x0, x0, :lo12:.LC165 bl puts adrp x0, .LC166 add x0, x0, :lo12:.LC166 bl puts adrp x0, .LC167 add x0, x0, :lo12:.LC167 bl puts adrp x0, .LC168 add x0, x0, :lo12:.LC168 bl puts adrp x0, .LC169 add x0, x0, :lo12:.LC169 bl puts adrp x0, .LC170 add x0, x0, :lo12:.LC170 bl puts nop ldp x29, x30, [sp], 16 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE40: .size showhelp, .-showhelp .section .rodata .align 3 .LC171: .string "unknown option: %s" .align 3 .LC172: .string "unused argument: %s" .align 3 .LC173: .string "No source file specified." .align 3 .LC174: .string ".bin" .align 3 .LC175: .string ".lst" .align 3 .LC176: .string "rb" .align 3 .LC177: .string ".asm" .align 3 .LC178: .string ".s" .align 3 .LC179: .string ".cdl" .align 3 .LC180: .string "last try..\n" .align 3 .LC181: .string "pass %i..\n" .align 3 .LC182: .string "Write error." .align 3 .LC183: .string "%s written (%i bytes).\n" .align 3 .LC184: .string "nothing to do!" .text .align 2 .global main .type main, %function main: .LFB41: .cfi_startproc sub sp, sp, #592 .cfi_def_cfa_offset 592 stp x29, x30, [sp] .cfi_offset 29, -592 .cfi_offset 30, -584 mov x29, sp str 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, 584] mov x1, 0 ldr w0, [sp, 28] cmp w0, 1 bgt .L376 bl showhelp mov w0, 1 b .L426 .L376: bl initlabels bl initcomments str wzr, [sp, 40] mov w0, 1 str w0, [sp, 36] b .L378 .L398: ldrsw x0, [sp, 36] lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x0, [x0] ldrb w0, [x0] cmp w0, 45 beq .L379 ldrsw x0, [sp, 36] lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x0, [x0] ldrb w0, [x0] cmp w0, 47 bne .L380 ldrsw x0, [sp, 36] lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x0, [x0] bl strlen cmp x0, 2 bne .L380 .L379: ldrsw x0, [sp, 36] lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x0, [x0] add x0, x0, 1 ldrb w0, [x0] cmp w0, 113 beq .L381 cmp w0, 113 bgt .L382 cmp w0, 110 beq .L383 cmp w0, 110 bgt .L382 cmp w0, 109 beq .L384 cmp w0, 109 bgt .L382 cmp w0, 108 beq .L385 cmp w0, 108 bgt .L382 cmp w0, 104 beq .L386 cmp w0, 104 bgt .L382 cmp w0, 102 beq .L387 cmp w0, 102 bgt .L382 cmp w0, 100 beq .L388 cmp w0, 100 bgt .L382 cmp w0, 99 beq .L389 cmp w0, 99 bgt .L382 cmp w0, 63 beq .L386 cmp w0, 76 beq .L390 b .L382 .L386: bl showhelp mov w0, 1 b .L426 .L390: adrp x0, verboselisting add x0, x0, :lo12:verboselisting mov w1, 1 str w1, [x0] .L385: adrp x0, true_ptr add x0, x0, :lo12:true_ptr ldr x1, [x0] adrp x0, listfilename add x0, x0, :lo12:listfilename str x1, [x0] b .L391 .L388: ldrsw x0, [sp, 36] lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x0, [x0] add x0, x0, 2 ldrb w0, [x0] cmp w0, 0 beq .L428 ldrsw x0, [sp, 36] lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x0, [x0] add x0, x0, 2 bl findlabel cmp x0, 0 bne .L428 bl newlabel str x0, [sp, 56] ldrsw x0, [sp, 36] lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x0, [x0] add x0, x0, 2 bl my_strdup mov x1, x0 ldr x0, [sp, 56] str x1, [x0] ldr x0, [sp, 56] mov w1, 1 str w1, [x0, 32] ldr x0, [sp, 56] mov x1, 1 str x1, [x0, 8] adrp x0, true_ptr add x0, x0, :lo12:true_ptr ldr x1, [x0] ldr x0, [sp, 56] str x1, [x0, 24] ldr x0, [sp, 56] str wzr, [x0, 40] b .L428 .L381: adrp x0, verbose add x0, x0, :lo12:verbose str wzr, [x0] b .L391 .L383: adrp x0, genfceuxnl add x0, x0, :lo12:genfceuxnl mov w1, 1 str w1, [x0] b .L391 .L384: adrp x0, genmesenlabels add x0, x0, :lo12:genmesenlabels mov w1, 1 str w1, [x0] b .L391 .L389: adrp x0, gencdl add x0, x0, :lo12:gencdl mov w1, 1 str w1, [x0] b .L391 .L387: adrp x0, genlua add x0, x0, :lo12:genlua mov w1, 1 str w1, [x0] b .L391 .L382: ldrsw x0, [sp, 36] lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x0, [x0] mov x1, x0 adrp x0, .LC171 add x0, x0, :lo12:.LC171 bl fatal_error b .L393 .L428: nop .L391: b .L393 .L380: ldr w0, [sp, 40] cmp w0, 0 bne .L394 ldrsw x0, [sp, 36] lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x1, [x0] adrp x0, inputfilename add x0, x0, :lo12:inputfilename str x1, [x0] b .L395 .L394: ldr w0, [sp, 40] cmp w0, 1 bne .L396 ldrsw x0, [sp, 36] lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x1, [x0] adrp x0, outputfilename add x0, x0, :lo12:outputfilename str x1, [x0] b .L395 .L396: ldr w0, [sp, 40] cmp w0, 2 bne .L397 ldrsw x0, [sp, 36] lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x1, [x0] adrp x0, listfilename add x0, x0, :lo12:listfilename str x1, [x0] b .L395 .L397: ldrsw x0, [sp, 36] lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x0, [x0] mov x1, x0 adrp x0, .LC172 add x0, x0, :lo12:.LC172 bl fatal_error .L395: ldr w0, [sp, 40] add w0, w0, 1 str w0, [sp, 40] .L393: ldr w0, [sp, 36] add w0, w0, 1 str w0, [sp, 36] .L378: ldr w1, [sp, 36] ldr w0, [sp, 28] cmp w1, w0 blt .L398 adrp x0, inputfilename add x0, x0, :lo12:inputfilename ldr x0, [x0] cmp x0, 0 bne .L399 adrp x0, .LC173 add x0, x0, :lo12:.LC173 bl fatal_error .L399: adrp x0, inputfilename add x0, x0, :lo12:inputfilename ldr x1, [x0] add x0, sp, 72 bl strcpy add x0, sp, 72 mov w1, 46 bl strrchr str x0, [sp, 48] ldr x0, [sp, 48] cmp x0, 0 beq .L400 ldr x0, [sp, 48] mov w1, 92 bl strchr cmp x0, 0 beq .L400 str xzr, [sp, 48] .L400: ldr x0, [sp, 48] cmp x0, 0 bne .L401 add x0, sp, 72 bl strlen mov x1, x0 add x0, sp, 72 add x0, x0, x1 str x0, [sp, 48] .L401: adrp x0, outputfilename add x0, x0, :lo12:outputfilename ldr x0, [x0] cmp x0, 0 bne .L402 ldr x2, [sp, 48] adrp x0, .LC174 add x1, x0, :lo12:.LC174 mov x0, x2 ldr w2, [x1] str w2, [x0] ldrb w1, [x1, 4] strb w1, [x0, 4] add x0, sp, 72 bl my_strdup mov x1, x0 adrp x0, outputfilename add x0, x0, :lo12:outputfilename str x1, [x0] .L402: adrp x0, listfilename add x0, x0, :lo12:listfilename ldr x1, [x0] adrp x0, true_ptr add x0, x0, :lo12:true_ptr ldr x0, [x0] cmp x1, x0 bne .L403 ldr x2, [sp, 48] adrp x0, .LC175 add x1, x0, :lo12:.LC175 mov x0, x2 ldr w2, [x1] str w2, [x0] ldrb w1, [x1, 4] strb w1, [x0, 4] add x0, sp, 72 bl my_strdup mov x1, x0 adrp x0, listfilename add x0, x0, :lo12:listfilename str x1, [x0] .L403: adrp x0, inputfilename add x0, x0, :lo12:inputfilename ldr x2, [x0] adrp x0, .LC176 add x1, x0, :lo12:.LC176 mov x0, x2 bl fopen str x0, [sp, 64] ldr x0, [sp, 64] cmp x0, 0 bne .L404 ldr x2, [sp, 48] adrp x0, .LC177 add x1, x0, :lo12:.LC177 mov x0, x2 ldr w2, [x1] str w2, [x0] ldrb w1, [x1, 4] strb w1, [x0, 4] add x2, sp, 72 adrp x0, .LC176 add x1, x0, :lo12:.LC176 mov x0, x2 bl fopen str x0, [sp, 64] ldr x0, [sp, 64] cmp x0, 0 bne .L405 ldr x2, [sp, 48] adrp x0, .LC178 add x1, x0, :lo12:.LC178 mov x0, x2 ldrh w2, [x1] strh w2, [x0] ldrb w1, [x1, 2] strb w1, [x0, 2] add x2, sp, 72 adrp x0, .LC176 add x1, x0, :lo12:.LC176 mov x0, x2 bl fopen str x0, [sp, 64] .L405: ldr x0, [sp, 64] cmp x0, 0 beq .L404 add x0, sp, 72 bl my_strdup mov x1, x0 adrp x0, inputfilename add x0, x0, :lo12:inputfilename str x1, [x0] .L404: ldr x0, [sp, 64] cmp x0, 0 beq .L406 ldr x0, [sp, 64] bl fclose .L406: adrp x0, gencdl add x0, x0, :lo12:gencdl ldr w0, [x0] cmp w0, 0 beq .L407 ldr x2, [sp, 48] adrp x0, .LC179 add x1, x0, :lo12:.LC179 mov x0, x2 ldr w2, [x1] str w2, [x0] ldrb w1, [x1, 4] strb w1, [x0, 4] ldr x0, [sp, 48] bl strlen add x0, x0, 1 bl my_malloc mov x1, x0 adrp x0, cdlfilename add x0, x0, :lo12:cdlfilename str x1, [x0] adrp x0, cdlfilename add x0, x0, :lo12:cdlfilename ldr x0, [x0] add x1, sp, 72 bl strcpy .L407: str xzr, [sp, 56] .L414: adrp x0, filepos add x0, x0, :lo12:filepos str wzr, [x0] adrp x0, pass add x0, x0, :lo12:pass ldr w0, [x0] add w1, w0, 1 adrp x0, pass add x0, x0, :lo12:pass str w1, [x0] adrp x0, pass add x0, x0, :lo12:pass ldr w0, [x0] cmp w0, 7 beq .L408 adrp x0, lastlabel add x0, x0, :lo12:lastlabel ldr x0, [x0] ldr x1, [sp, 56] cmp x1, x0 bne .L409 .L408: adrp x0, lastchance add x0, x0, :lo12:lastchance mov w1, 1 str w1, [x0] .L409: adrp x0, lastchance add x0, x0, :lo12:lastchance ldr w0, [x0] cmp w0, 0 beq .L410 adrp x0, .LC180 add x0, x0, :lo12:.LC180 bl message b .L411 .L410: adrp x0, pass add x0, x0, :lo12:pass ldr w0, [x0] mov w1, w0 adrp x0, .LC181 add x0, x0, :lo12:.LC181 bl message .L411: adrp x0, needanotherpass add x0, x0, :lo12:needanotherpass str wzr, [x0] adrp x0, skipline add x0, x0, :lo12:skipline str wzr, [x0] adrp x0, scope add x0, x0, :lo12:scope mov w1, 1 str w1, [x0] adrp x0, nextscope add x0, x0, :lo12:nextscope mov w1, 2 str w1, [x0] adrp x0, defaultfiller add x0, x0, :lo12:defaultfiller str wzr, [x0] adrp x0, firstlabel add x0, x0, :lo12:firstlabel mov x1, -1073741824 str x1, [x0, 8] adrp x0, lastlabel add x0, x0, :lo12:lastlabel ldr x0, [x0] str x0, [sp, 56] adrp x0, inputfilename add x0, x0, :lo12:inputfilename ldr x0, [x0] str x0, [sp, 48] add x0, sp, 48 mov x1, x0 mov x0, 0 bl include adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 beq .L412 adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x2, [x0] adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x0, [x0] mov x1, x0 mov x0, x2 bl fputs .L412: adrp x0, error add x0, x0, :lo12:error ldr w0, [x0] cmp w0, 0 bne .L413 adrp x0, lastchance add x0, x0, :lo12:lastchance ldr w0, [x0] cmp w0, 0 bne .L413 adrp x0, needanotherpass add x0, x0, :lo12:needanotherpass ldr w0, [x0] cmp w0, 0 bne .L414 .L413: adrp x0, outputfile add x0, x0, :lo12:outputfile ldr x0, [x0] cmp x0, 0 beq .L415 adrp x0, outcount add x0, x0, :lo12:outcount ldr w0, [x0] sxtw x1, w0 adrp x0, outputfile add x0, x0, :lo12:outputfile ldr x0, [x0] mov x3, x0 mov x2, x1 mov x1, 1 adrp x0, outputbuff add x0, x0, :lo12:outputbuff bl fwrite mov x1, x0 adrp x0, outcount add x0, x0, :lo12:outcount ldr w0, [x0] sxtw x0, w0 cmp x1, x0 bcc .L416 adrp x0, outputfile add x0, x0, :lo12:outputfile ldr x0, [x0] bl fflush cmp w0, 0 beq .L417 .L416: adrp x0, .LC182 add x0, x0, :lo12:.LC182 bl fatal_error .L417: adrp x0, outputfile add x0, x0, :lo12:outputfile ldr x0, [x0] bl ftell str w0, [sp, 36] adrp x0, outputfile add x0, x0, :lo12:outputfile ldr x0, [x0] bl fclose str w0, [sp, 44] adrp x0, outputfile add x0, x0, :lo12:outputfile str xzr, [x0] ldr w0, [sp, 44] cmp w0, 0 beq .L418 adrp x0, .LC182 add x0, x0, :lo12:.LC182 bl fatal_error .L418: adrp x0, error add x0, x0, :lo12:error ldr w0, [x0] cmp w0, 0 bne .L419 adrp x0, outputfilename add x0, x0, :lo12:outputfilename ldr x0, [x0] ldr w2, [sp, 36] mov x1, x0 adrp x0, .LC183 add x0, x0, :lo12:.LC183 bl message b .L420 .L419: adrp x0, outputfilename add x0, x0, :lo12:outputfilename ldr x0, [x0] bl remove b .L420 .L415: adrp x0, error add x0, x0, :lo12:error ldr w0, [x0] cmp w0, 0 bne .L421 adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x0, [x0] mov x3, x0 mov x2, 14 mov x1, 1 adrp x0, .LC184 add x0, x0, :lo12:.LC184 bl fwrite .L421: adrp x0, error add x0, x0, :lo12:error mov w1, 1 str w1, [x0] .L420: adrp x0, listfile add x0, x0, :lo12:listfile ldr x0, [x0] cmp x0, 0 beq .L422 mov x1, 0 mov x0, 0 bl listline .L422: adrp x0, genfceuxnl add x0, x0, :lo12:genfceuxnl ldr w0, [x0] cmp w0, 0 beq .L423 bl export_labelfiles .L423: adrp x0, genlua add x0, x0, :lo12:genlua ldr w0, [x0] cmp w0, 0 beq .L424 bl export_lua .L424: adrp x0, genmesenlabels add x0, x0, :lo12:genmesenlabels ldr w0, [x0] cmp w0, 0 beq .L425 bl export_mesenlabels .L425: adrp x0, error add x0, x0, :lo12:error ldr w0, [x0] cmp w0, 0 cset w0, ne and w0, w0, 255 .L426: mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 584] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L427 bl __stack_chk_fail .L427: mov w0, w1 ldp x29, x30, [sp] add sp, sp, 592 .cfi_restore 29 .cfi_restore 30 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE41: .size main, .-main .global listbuff .bss .align 3 .type listbuff, %object .size listbuff, 8 listbuff: .zero 8 .global listcount .align 2 .type listcount, %object .size listcount, 4 listcount: .zero 4 .section .rodata .align 3 .LC185: .string "wb" .align 3 .LC186: .string "" .string "" .align 3 .LC187: .string "Can't create output file." .text .align 2 .global output .type output, %function output: .LFB42: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x0, [sp, 24] str w1, [sp, 20] str w2, [sp, 16] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 56] mov x1, 0 adrp x0, gencdl add x0, x0, :lo12:gencdl ldr w0, [x0] cmp w0, 0 beq .L430 adrp x0, oldpass.1 add x0, x0, :lo12:oldpass.1 ldr w1, [x0] adrp x0, pass add x0, x0, :lo12:pass ldr w0, [x0] cmp w1, w0 beq .L431 adrp x0, cdlfile add x0, x0, :lo12:cdlfile ldr x0, [x0] cmp x0, 0 beq .L432 adrp x0, cdlfile add x0, x0, :lo12:cdlfile ldr x0, [x0] bl fclose .L432: adrp x0, cdlfilename add x0, x0, :lo12:cdlfilename ldr x2, [x0] adrp x0, .LC185 add x1, x0, :lo12:.LC185 mov x0, x2 bl fopen mov x1, x0 adrp x0, cdlfile add x0, x0, :lo12:cdlfile str x1, [x0] .L431: adrp x0, cdlfile add x0, x0, :lo12:cdlfile ldr x0, [x0] cmp x0, 0 beq .L430 adrp x0, filepos add x0, x0, :lo12:filepos ldr w0, [x0] cmp w0, 15 ble .L430 ldr w0, [sp, 20] str w0, [sp, 36] b .L433 .L435: adrp x0, firstlabel add x0, x0, :lo12:firstlabel ldr x1, [x0, 8] mov x0, 65535 cmp x1, x0 bgt .L434 ldr w0, [sp, 16] and w0, w0, 255 strb w0, [sp, 35] adrp x0, cdlfile add x0, x0, :lo12:cdlfile ldr x1, [x0] add x0, sp, 35 mov x3, x1 mov x2, 1 mov x1, 1 bl fwrite b .L433 .L434: adrp x0, cdlfile add x0, x0, :lo12:cdlfile ldr x0, [x0] mov x3, x0 mov x2, 1 mov x1, 1 adrp x0, .LC186 add x0, x0, :lo12:.LC186 bl fwrite .L433: ldr w0, [sp, 36] sub w1, w0, #1 str w1, [sp, 36] cmp w0, 0 bne .L435 .L430: adrp x0, firstlabel add x0, x0, :lo12:firstlabel ldr x1, [x0, 8] ldrsw x0, [sp, 20] add x1, x1, x0 adrp x0, firstlabel add x0, x0, :lo12:firstlabel str x1, [x0, 8] adrp x0, nooutput add x0, x0, :lo12:nooutput ldr w0, [x0] cmp w0, 0 bne .L449 adrp x0, oldpass.1 add x0, x0, :lo12:oldpass.1 ldr w1, [x0] adrp x0, pass add x0, x0, :lo12:pass ldr w0, [x0] cmp w1, w0 beq .L438 adrp x0, pass add x0, x0, :lo12:pass ldr w1, [x0] adrp x0, oldpass.1 add x0, x0, :lo12:oldpass.1 str w1, [x0] adrp x0, outputfile add x0, x0, :lo12:outputfile ldr x0, [x0] cmp x0, 0 beq .L439 adrp x0, outputfile add x0, x0, :lo12:outputfile ldr x0, [x0] bl fclose .L439: adrp x0, outputfilename add x0, x0, :lo12:outputfilename ldr x2, [x0] adrp x0, .LC185 add x1, x0, :lo12:.LC185 mov x0, x2 bl fopen mov x1, x0 adrp x0, outputfile add x0, x0, :lo12:outputfile str x1, [x0] adrp x0, filepos add x0, x0, :lo12:filepos str wzr, [x0] adrp x0, outcount add x0, x0, :lo12:outcount str wzr, [x0] adrp x0, outputfile add x0, x0, :lo12:outputfile ldr x0, [x0] cmp x0, 0 bne .L440 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, .LC187 add x1, x1, :lo12:.LC187 str x1, [x0] b .L429 .L440: adrp x0, ines_include add x0, x0, :lo12:ines_include ldr w0, [x0] cmp w0, 0 beq .L438 mov w0, 78 strb w0, [sp, 40] mov w0, 69 strb w0, [sp, 41] mov w0, 83 strb w0, [sp, 42] mov w0, 26 strb w0, [sp, 43] adrp x0, inesprg_num add x0, x0, :lo12:inesprg_num ldr w0, [x0] and w0, w0, 255 strb w0, [sp, 44] adrp x0, ineschr_num add x0, x0, :lo12:ineschr_num ldr w0, [x0] and w0, w0, 255 strb w0, [sp, 45] adrp x0, inesmap_num add x0, x0, :lo12:inesmap_num ldr w0, [x0] and w0, w0, 255 ubfiz w0, w0, 4, 4 and w0, w0, 255 sxtb w1, w0 adrp x0, inesmir_num add x0, x0, :lo12:inesmir_num ldr w0, [x0] sxtb w0, w0 orr w0, w1, w0 sxtb w0, w0 and w0, w0, 255 strb w0, [sp, 46] adrp x0, inesmap_num add x0, x0, :lo12:inesmap_num ldr w0, [x0] sxtb w0, w0 and w0, w0, -16 sxtb w1, w0 adrp x0, use_nes2 add x0, x0, :lo12:use_nes2 ldr w0, [x0] lsl w0, w0, 3 sxtb w0, w0 orr w0, w1, w0 sxtb w1, w0 adrp x0, nes2tv_num add x0, x0, :lo12:nes2tv_num ldr w0, [x0] lsl w0, w0, 7 sxtb w0, w0 orr w0, w1, w0 sxtb w0, w0 and w0, w0, 255 strb w0, [sp, 47] adrp x0, inesmap_num add x0, x0, :lo12:inesmap_num ldr w0, [x0] asr w0, w0, 8 sxtb w1, w0 adrp x0, nes2sub_num add x0, x0, :lo12:nes2sub_num ldr w0, [x0] lsl w0, w0, 4 sxtb w0, w0 orr w0, w1, w0 sxtb w0, w0 and w0, w0, 255 strb w0, [sp, 48] adrp x0, inesprg_num add x0, x0, :lo12:inesprg_num ldr w0, [x0] asr w0, w0, 8 sxtb w1, w0 adrp x0, ineschr_num add x0, x0, :lo12:ineschr_num ldr w0, [x0] asr w0, w0, 8 lsl w0, w0, 4 sxtb w0, w0 orr w0, w1, w0 sxtb w0, w0 and w0, w0, 255 strb w0, [sp, 49] adrp x0, nes2bram_num add x0, x0, :lo12:nes2bram_num ldr w0, [x0] and w0, w0, 255 ubfiz w0, w0, 4, 4 and w0, w0, 255 sxtb w1, w0 adrp x0, nes2prg_num add x0, x0, :lo12:nes2prg_num ldr w0, [x0] sxtb w0, w0 orr w0, w1, w0 sxtb w0, w0 and w0, w0, 255 strb w0, [sp, 50] adrp x0, nes2chrbram_num add x0, x0, :lo12:nes2chrbram_num ldr w0, [x0] and w0, w0, 255 ubfiz w0, w0, 4, 4 and w0, w0, 255 sxtb w1, w0 adrp x0, nes2chr_num add x0, x0, :lo12:nes2chr_num ldr w0, [x0] sxtb w0, w0 orr w0, w1, w0 sxtb w0, w0 and w0, w0, 255 strb w0, [sp, 51] adrp x0, nes2tv_num add x0, x0, :lo12:nes2tv_num ldr w0, [x0] and w0, w0, 255 strb w0, [sp, 52] strb wzr, [sp, 53] strb wzr, [sp, 54] strb wzr, [sp, 55] adrp x0, outputfile add x0, x0, :lo12:outputfile ldr x1, [x0] add x0, sp, 40 mov x3, x1 mov x2, 16 mov x1, 1 bl fwrite cmp x0, 15 bls .L441 adrp x0, outputfile add x0, x0, :lo12:outputfile ldr x0, [x0] bl fflush cmp w0, 0 beq .L442 .L441: adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, .LC182 add x1, x1, :lo12:.LC182 str x1, [x0] .L442: adrp x0, filepos add x0, x0, :lo12:filepos ldr w0, [x0] add w1, w0, 16 adrp x0, filepos add x0, x0, :lo12:filepos str w1, [x0] .L438: adrp x0, outputfile add x0, x0, :lo12:outputfile ldr x0, [x0] cmp x0, 0 beq .L450 b .L444 .L447: adrp x0, listfile add x0, x0, :lo12:listfile ldr x0, [x0] cmp x0, 0 beq .L445 adrp x0, listcount add x0, x0, :lo12:listcount ldr w0, [x0] cmp w0, 7 bgt .L445 adrp x0, listcount add x0, x0, :lo12:listcount ldr w3, [x0] ldr x0, [sp, 24] ldrb w2, [x0] adrp x0, listbuff add x1, x0, :lo12:listbuff sxtw x0, w3 strb w2, [x1, x0] .L445: adrp x0, listcount add x0, x0, :lo12:listcount ldr w0, [x0] add w1, w0, 1 adrp x0, listcount add x0, x0, :lo12:listcount str w1, [x0] adrp x0, filepos add x0, x0, :lo12:filepos ldr w0, [x0] add w1, w0, 1 adrp x0, filepos add x0, x0, :lo12:filepos str w1, [x0] adrp x0, outcount add x0, x0, :lo12:outcount ldr w0, [x0] add w2, w0, 1 adrp x1, outcount add x1, x1, :lo12:outcount str w2, [x1] ldr x1, [sp, 24] ldrb w2, [x1] adrp x1, outputbuff add x1, x1, :lo12:outputbuff sxtw x0, w0 strb w2, [x1, x0] ldr x0, [sp, 24] add x0, x0, 1 str x0, [sp, 24] adrp x0, outcount add x0, x0, :lo12:outcount ldr w1, [x0] mov w0, 8191 cmp w1, w0 ble .L444 adrp x0, outputfile add x0, x0, :lo12:outputfile ldr x0, [x0] mov x3, x0 mov x2, 8192 mov x1, 1 adrp x0, outputbuff add x0, x0, :lo12:outputbuff bl fwrite mov x1, x0 mov x0, 8191 cmp x1, x0 bhi .L446 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, .LC182 add x1, x1, :lo12:.LC182 str x1, [x0] .L446: adrp x0, outcount add x0, x0, :lo12:outcount str wzr, [x0] .L444: ldr w0, [sp, 20] sub w1, w0, #1 str w1, [sp, 20] cmp w0, 0 bne .L447 b .L429 .L449: nop b .L429 .L450: nop .L429: 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 .L448 bl __stack_chk_fail .L448: ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE42: .size output, .-output .align 2 .type output_le, %function output_le: .LFB43: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str w0, [sp, 28] str w1, [sp, 24] str w2, [sp, 20] adrp x0, :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] and w0, w0, 255 strb w0, [sp, 32] ldr w0, [sp, 28] asr w0, w0, 8 and w0, w0, 255 strb w0, [sp, 33] add x0, sp, 32 ldr w2, [sp, 20] ldr w1, [sp, 24] bl output 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 .L452 bl __stack_chk_fail .L452: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE43: .size output_le, .-output_le .global srcbuff .bss .align 3 .type srcbuff, %object .size srcbuff, 2048 srcbuff: .zero 2048 .section .rodata .align 3 .LC188: .string "Can't create list file." .align 3 .LC189: .string " %02X" .align 3 .LC190: .string " " .align 3 .LC191: .string ".. " .align 3 .LC192: .string "*** %s\n" .align 3 .LC193: .string "\t " .align 3 .LC194: .string "%05X" .align 3 .LC195: .string "%s written.\n" .text .align 2 .global listline .type listline, %function listline: .LFB44: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] adrp x0, listfilename add x0, x0, :lo12:listfilename ldr x0, [x0] cmp x0, 0 beq .L469 adrp x0, oldpass.0 add x0, x0, :lo12:oldpass.0 ldr w1, [x0] adrp x0, pass add x0, x0, :lo12:pass ldr w0, [x0] cmp w1, w0 beq .L456 adrp x0, pass add x0, x0, :lo12:pass ldr w1, [x0] adrp x0, oldpass.0 add x0, x0, :lo12:oldpass.0 str w1, [x0] adrp x0, listfile add x0, x0, :lo12:listfile ldr x0, [x0] cmp x0, 0 beq .L457 adrp x0, listfile add x0, x0, :lo12:listfile ldr x0, [x0] bl fclose .L457: adrp x0, listfilename add x0, x0, :lo12:listfilename ldr x2, [x0] adrp x0, .LC142 add x1, x0, :lo12:.LC142 mov x0, x2 bl fopen mov x1, x0 adrp x0, listfile add x0, x0, :lo12:listfile str x1, [x0] adrp x0, listfile add x0, x0, :lo12:listfile ldr x0, [x0] cmp x0, 0 bne .L458 adrp x0, listfilename add x0, x0, :lo12:listfilename str xzr, [x0] adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x0, [x0] mov x3, x0 mov x2, 23 mov x1, 1 adrp x0, .LC188 add x0, x0, :lo12:.LC188 bl fwrite b .L453 .L456: str wzr, [sp, 44] b .L459 .L461: adrp x0, listfile add x0, x0, :lo12:listfile ldr x3, [x0] adrp x0, listbuff add x1, x0, :lo12:listbuff ldrsw x0, [sp, 44] ldrb w0, [x1, x0] mov w2, w0 adrp x0, .LC189 add x1, x0, :lo12:.LC189 mov x0, x3 bl fprintf ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L459: adrp x0, listcount add x0, x0, :lo12:listcount ldr w0, [x0] ldr w1, [sp, 44] cmp w1, w0 bge .L462 ldr w0, [sp, 44] cmp w0, 7 ble .L461 b .L462 .L463: adrp x0, listfile add x0, x0, :lo12:listfile ldr x0, [x0] mov x3, x0 mov x2, 3 mov x1, 1 adrp x0, .LC190 add x0, x0, :lo12:.LC190 bl fwrite ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L462: ldr w0, [sp, 44] cmp w0, 7 ble .L463 adrp x0, listcount add x0, x0, :lo12:listcount ldr w0, [x0] cmp w0, 8 ble .L464 adrp x0, .LC191 add x0, x0, :lo12:.LC191 b .L465 .L464: adrp x0, .LC190 add x0, x0, :lo12:.LC190 .L465: adrp x1, listfile add x1, x1, :lo12:listfile ldr x1, [x1] bl fputs adrp x0, listfile add x0, x0, :lo12:listfile ldr x0, [x0] mov x1, x0 adrp x0, srcbuff add x0, x0, :lo12:srcbuff bl fputs adrp x0, listerr add x0, x0, :lo12:listerr ldr x0, [x0] cmp x0, 0 beq .L458 adrp x0, listfile add x0, x0, :lo12:listfile ldr x3, [x0] adrp x0, listerr add x0, x0, :lo12:listerr ldr x0, [x0] mov x2, x0 adrp x0, .LC192 add x1, x0, :lo12:.LC192 mov x0, x3 bl fprintf adrp x0, listerr add x0, x0, :lo12:listerr str xzr, [x0] .L458: adrp x0, listcount add x0, x0, :lo12:listcount str wzr, [x0] ldr x0, [sp, 24] cmp x0, 0 beq .L466 adrp x0, firstlabel add x0, x0, :lo12:firstlabel ldr x0, [x0, 8] cmp x0, 0 bge .L467 adrp x0, listfile add x0, x0, :lo12:listfile ldr x0, [x0] mov x3, x0 mov x2, 2 mov x1, 1 adrp x0, .LC193 add x0, x0, :lo12:.LC193 bl fwrite b .L468 .L467: adrp x0, listfile add x0, x0, :lo12:listfile ldr x3, [x0] adrp x0, firstlabel add x0, x0, :lo12:firstlabel ldr x0, [x0, 8] mov w2, w0 adrp x0, .LC194 add x1, x0, :lo12:.LC194 mov x0, x3 bl fprintf .L468: ldr x1, [sp, 24] adrp x0, srcbuff add x0, x0, :lo12:srcbuff bl strcpy ldr x0, [sp, 16] cmp x0, 0 beq .L453 ldr x1, [sp, 16] adrp x0, srcbuff add x0, x0, :lo12:srcbuff bl strcat adrp x0, genmesenlabels add x0, x0, :lo12:genmesenlabels ldr w0, [x0] cmp w0, 0 beq .L453 adrp x0, filepos add x0, x0, :lo12:filepos ldr w0, [x0] cmp w0, 0 ble .L453 adrp x0, firstlabel add x0, x0, :lo12:firstlabel ldr x1, [x0, 8] mov x0, 65535 cmp x1, x0 bgt .L453 ldr x0, [sp, 16] bl addcomment b .L453 .L466: adrp x0, listfile add x0, x0, :lo12:listfile ldr x0, [x0] bl fclose adrp x0, listfilename add x0, x0, :lo12:listfilename ldr x0, [x0] mov x1, x0 adrp x0, .LC195 add x0, x0, :lo12:.LC195 bl message b .L453 .L469: nop .L453: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE44: .size listline, .-listline .align 2 .global equ .type equ, %function equ: .LFB45: .cfi_startproc sub sp, sp, #2112 .cfi_def_cfa_offset 2112 stp x29, x30, [sp] .cfi_offset 29, -2112 .cfi_offset 30, -2104 mov x29, sp str x19, [sp, 16] .cfi_offset 19, -2096 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, 2104] mov x1, 0 ldr x0, [sp, 32] ldr x0, [x0] str x0, [sp, 48] adrp x0, labelhere add x0, x0, :lo12:labelhere ldr x0, [x0] cmp x0, 0 bne .L471 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, NeedName add x1, x1, :lo12:NeedName str x1, [x0] b .L477 .L471: adrp x0, labelhere add x0, x0, :lo12:labelhere ldr x0, [x0] ldr w0, [x0, 32] cmp w0, 0 bne .L473 adrp x0, whitesp add x1, x0, :lo12:whitesp ldr x0, [sp, 48] bl strspn mov x1, x0 ldr x0, [sp, 48] add x1, x0, x1 add x0, sp, 56 bl reverse add x2, sp, 56 adrp x0, whitesp add x1, x0, :lo12:whitesp mov x0, x2 bl strspn mov x1, x0 add x0, sp, 56 add x0, x0, x1 mov x1, x0 ldr x0, [sp, 48] bl reverse ldr x0, [sp, 48] ldrb w0, [x0] cmp w0, 0 beq .L474 adrp x0, labelhere add x0, x0, :lo12:labelhere ldr x19, [x0] ldr x0, [sp, 48] bl my_strdup str x0, [x19, 24] adrp x0, labelhere add x0, x0, :lo12:labelhere ldr x0, [x0] mov w1, 2 str w1, [x0, 32] b .L475 .L474: adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, IncompleteExp add x1, x1, :lo12:IncompleteExp str x1, [x0] b .L475 .L473: adrp x0, labelhere add x0, x0, :lo12:labelhere ldr x0, [x0] ldr w0, [x0, 32] cmp w0, 2 beq .L475 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, LabelDefined add x1, x1, :lo12:LabelDefined str x1, [x0] .L475: ldr x0, [sp, 48] strb wzr, [x0] .L477: nop adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x2, [sp, 2104] ldr x1, [x0] subs x2, x2, x1 mov x1, 0 beq .L476 bl __stack_chk_fail .L476: ldr x19, [sp, 16] ldp x29, x30, [sp] add sp, sp, 2112 .cfi_restore 29 .cfi_restore 30 .cfi_restore 19 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE45: .size equ, .-equ .align 2 .global equal .type equal, %function equal: .LFB46: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x19, [sp, 16] .cfi_offset 19, -32 str x0, [sp, 40] str x1, [sp, 32] adrp x0, labelhere add x0, x0, :lo12:labelhere ldr x0, [x0] cmp x0, 0 bne .L479 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, NeedName add x1, x1, :lo12:NeedName str x1, [x0] b .L481 .L479: adrp x0, labelhere add x0, x0, :lo12:labelhere ldr x0, [x0] mov w1, 1 str w1, [x0, 32] adrp x0, dependant add x0, x0, :lo12:dependant str wzr, [x0] mov w1, 0 ldr x0, [sp, 32] bl eval mov w1, w0 adrp x0, labelhere add x0, x0, :lo12:labelhere ldr x0, [x0] sxtw x1, w1 str x1, [x0, 8] adrp x0, dependant add x0, x0, :lo12:dependant ldr w0, [x0] cmp w0, 0 cset w0, eq and w0, w0, 255 mov w1, w0 adrp x0, labelhere add x0, x0, :lo12:labelhere ldr x19, [x0] mov w0, w1 bl ptr_from_bool str x0, [x19, 24] .L481: 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 .LFE46: .size equal, .-equal .align 2 .global base .type base, %function base: .LFB47: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] adrp x0, dependant add x0, x0, :lo12:dependant str wzr, [x0] mov w1, 0 ldr x0, [sp, 16] bl eval str w0, [sp, 44] adrp x0, dependant add x0, x0, :lo12:dependant ldr w0, [x0] cmp w0, 0 bne .L483 adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 bne .L483 ldrsw x1, [sp, 44] adrp x0, firstlabel add x0, x0, :lo12:firstlabel str x1, [x0, 8] b .L484 .L483: adrp x0, firstlabel add x0, x0, :lo12:firstlabel mov x1, -1073741824 str x1, [x0, 8] nop .L484: nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE47: .size base, .-base .align 2 .global nothing .type nothing, %function nothing: .LFB48: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, 8] str x1, [sp] nop add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE48: .size nothing, .-nothing .section .rodata .align 3 .LC196: .string "r+" .text .align 2 .global include .type include, %function include: .LFB49: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] ldr x0, [sp, 16] ldr x0, [x0] str x0, [sp, 32] adrp x0, whitesp2 add x1, x0, :lo12:whitesp2 ldr x0, [sp, 32] bl strspn mov x1, x0 ldr x0, [sp, 32] add x0, x0, x1 mov x1, x0 adrp x0, tmpstr add x0, x0, :lo12:tmpstr bl reverse adrp x0, whitesp2 add x1, x0, :lo12:whitesp2 adrp x0, tmpstr add x0, x0, :lo12:tmpstr bl strspn mov x1, x0 adrp x0, tmpstr add x0, x0, :lo12:tmpstr add x0, x1, x0 mov x1, x0 ldr x0, [sp, 32] bl reverse adrp x0, .LC196 add x1, x0, :lo12:.LC196 ldr x0, [sp, 32] bl fopen str x0, [sp, 40] ldr x0, [sp, 40] cmp x0, 0 bne .L487 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, CantOpen add x1, x1, :lo12:CantOpen str x1, [x0] adrp x0, error add x0, x0, :lo12:error mov w1, 1 str w1, [x0] b .L488 .L487: ldr x1, [sp, 32] ldr x0, [sp, 40] bl processfile ldr x0, [sp, 40] bl fclose adrp x0, errmsg add x0, x0, :lo12:errmsg str xzr, [x0] .L488: ldr x0, [sp, 32] bl strlen mov x1, x0 ldr x0, [sp, 32] add x1, x0, x1 ldr x0, [sp, 16] str x1, [x0] nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE49: .size include, .-include .align 2 .global incbin .type incbin, %function incbin: .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 x0, [sp, 24] str x1, [sp, 16] str xzr, [sp, 56] ldr x1, [sp, 16] adrp x0, tmpstr add x0, x0, :lo12:tmpstr bl getfilename adrp x0, .LC176 add x1, x0, :lo12:.LC176 adrp x0, tmpstr add x0, x0, :lo12:tmpstr bl fopen str x0, [sp, 56] ldr x0, [sp, 56] cmp x0, 0 bne .L490 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, CantOpen add x1, x1, :lo12:CantOpen str x1, [x0] b .L491 .L490: mov w2, 2 mov x1, 0 ldr x0, [sp, 56] bl fseek ldr x0, [sp, 56] bl ftell str w0, [sp, 52] str wzr, [sp, 40] mov w1, 44 ldr x0, [sp, 16] bl eatchar cmp w0, 0 beq .L492 mov w1, 0 ldr x0, [sp, 16] bl eval str w0, [sp, 40] .L492: adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 bne .L493 adrp x0, dependant add x0, x0, :lo12:dependant ldr w0, [x0] cmp w0, 0 bne .L493 ldr w0, [sp, 40] cmp w0, 0 blt .L494 ldr w1, [sp, 40] ldr w0, [sp, 52] cmp w1, w0 ble .L493 .L494: adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, SeekOutOfRange add x1, x1, :lo12:SeekOutOfRange str x1, [x0] .L493: adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 bne .L505 ldrsw x0, [sp, 40] mov w2, 0 mov x1, x0 ldr x0, [sp, 56] bl fseek mov w1, 44 ldr x0, [sp, 16] bl eatchar cmp w0, 0 beq .L496 mov w1, 0 ldr x0, [sp, 16] bl eval str w0, [sp, 44] adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 bne .L497 adrp x0, dependant add x0, x0, :lo12:dependant ldr w0, [x0] cmp w0, 0 bne .L497 ldr w0, [sp, 44] cmp w0, 0 blt .L498 ldr w1, [sp, 52] ldr w0, [sp, 40] sub w0, w1, w0 ldr w1, [sp, 44] cmp w1, w0 ble .L497 .L498: adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, BadIncbinSize add x1, x1, :lo12:BadIncbinSize str x1, [x0] .L497: adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 beq .L500 b .L491 .L496: ldr w1, [sp, 52] ldr w0, [sp, 40] sub w0, w1, w0 str w0, [sp, 44] b .L500 .L503: ldr w0, [sp, 44] cmp w0, 8192 ble .L501 mov w0, 8192 str w0, [sp, 48] b .L502 .L501: ldr w0, [sp, 44] str w0, [sp, 48] .L502: ldrsw x0, [sp, 48] ldr x3, [sp, 56] mov x2, x0 mov x1, 1 adrp x0, inputbuff add x0, x0, :lo12:inputbuff bl fread mov w2, 2 ldr w1, [sp, 48] adrp x0, inputbuff add x0, x0, :lo12:inputbuff bl output ldr w1, [sp, 44] ldr w0, [sp, 48] sub w0, w1, w0 str w0, [sp, 44] .L500: ldr w0, [sp, 44] cmp w0, 0 bne .L503 b .L491 .L505: nop .L491: ldr x0, [sp, 56] cmp x0, 0 beq .L506 ldr x0, [sp, 56] bl fclose .L506: nop ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE50: .size incbin, .-incbin .align 2 .global hex .type hex, %function hex: .LFB51: .cfi_startproc sub sp, sp, #2112 .cfi_def_cfa_offset 2112 stp x29, x30, [sp] .cfi_offset 29, -2112 .cfi_offset 30, -2104 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, 2104] mov x1, 0 add x0, sp, 56 mov w2, 0 ldr x1, [sp, 16] bl getword ldrb w0, [sp, 56] cmp w0, 0 bne .L508 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, MissingOperand add x1, x1, :lo12:MissingOperand str x1, [x0] b .L514 .L508: add x0, sp, 56 str x0, [sp, 48] str wzr, [sp, 44] .L512: ldr x0, [sp, 48] ldrb w0, [x0] bl hexify strb w0, [sp, 42] ldr x0, [sp, 48] add x0, x0, 1 str x0, [sp, 48] ldr x0, [sp, 48] ldrb w0, [x0] cmp w0, 0 beq .L510 ldr x0, [sp, 48] ldrb w0, [x0] bl hexify strb w0, [sp, 43] ldr x0, [sp, 48] add x0, x0, 1 str x0, [sp, 48] b .L511 .L510: ldrb w0, [sp, 42] strb w0, [sp, 43] strb wzr, [sp, 42] .L511: ldrb w0, [sp, 42] ubfiz w0, w0, 4, 4 and w1, w0, 255 ldr w0, [sp, 44] add w2, w0, 1 str w2, [sp, 44] ldrb w2, [sp, 43] add w1, w1, w2 and w2, w1, 255 sxtw x0, w0 add x1, sp, 56 strb w2, [x1, x0] ldr x0, [sp, 48] ldrb w0, [x0] cmp w0, 0 bne .L512 add x0, sp, 56 mov w2, 2 ldr w1, [sp, 44] bl output add x0, sp, 56 mov w2, 0 ldr x1, [sp, 16] bl getword ldrb w0, [sp, 56] cmp w0, 0 bne .L508 .L514: nop adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x2, [sp, 2104] ldr x1, [x0] subs x2, x2, x1 mov x1, 0 beq .L513 bl __stack_chk_fail .L513: ldp x29, x30, [sp] add sp, sp, 2112 .cfi_restore 29 .cfi_restore 30 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE51: .size hex, .-hex .align 2 .global dw .type dw, %function dw: .LFB52: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] .L520: mov w1, 0 ldr x0, [sp, 16] bl eval str w0, [sp, 44] adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 bne .L516 ldr w1, [sp, 44] mov w0, 65535 cmp w1, w0 bgt .L517 ldr w0, [sp, 44] cmn w0, #65536 bge .L518 .L517: adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, OutOfRange add x1, x1, :lo12:OutOfRange str x1, [x0] b .L516 .L518: mov w2, 2 mov w1, 2 ldr w0, [sp, 44] bl output_le .L516: adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 bne .L521 mov w1, 44 ldr x0, [sp, 16] bl eatchar cmp w0, 0 bne .L520 .L521: nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE52: .size dw, .-dw .align 2 .global dl .type dl, %function dl: .LFB53: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 40] mov x1, 0 .L525: mov w1, 0 ldr x0, [sp, 16] bl eval and w0, w0, 255 strb w0, [sp, 39] adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 bne .L523 add x0, sp, 39 mov w2, 2 mov w1, 1 bl output .L523: adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 bne .L527 mov w1, 44 ldr x0, [sp, 16] bl eatchar cmp w0, 0 bne .L525 .L527: 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 .L526 bl __stack_chk_fail .L526: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE53: .size dl, .-dl .align 2 .global dh .type dh, %function dh: .LFB54: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 40] mov x1, 0 .L531: mov w1, 0 ldr x0, [sp, 16] bl eval asr w0, w0, 8 and w0, w0, 255 strb w0, [sp, 39] adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 bne .L529 add x0, sp, 39 mov w2, 2 mov w1, 1 bl output .L529: adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 bne .L533 mov w1, 44 ldr x0, [sp, 16] bl eatchar cmp w0, 0 bne .L531 .L533: 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 .L532 bl __stack_chk_fail .L532: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE54: .size dh, .-dh .align 2 .global db .type db, %function db: .LFB55: .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] .L550: ldr x0, [sp, 32] ldr x19, [x0] ldr x0, [sp, 32] ldr x2, [x0] adrp x0, whitesp add x1, x0, :lo12:whitesp mov x0, x2 bl strspn add x1, x19, x0 ldr x0, [sp, 32] str x1, [x0] ldr x0, [sp, 32] ldr x0, [x0] ldrb w0, [x0] strb w0, [sp, 54] ldrb w0, [sp, 54] cmp w0, 34 beq .L535 ldrb w0, [sp, 54] cmp w0, 39 bne .L536 .L535: ldr x0, [sp, 32] ldr x0, [x0] add x0, x0, 1 str x0, [sp, 72] ldr x0, [sp, 72] str x0, [sp, 64] .L540: ldr x0, [sp, 64] ldrb w0, [x0] strb w0, [sp, 55] ldr x0, [sp, 64] add x0, x0, 1 str x0, [sp, 64] ldrb w0, [sp, 55] cmp w0, 0 bne .L537 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, IncompleteExp add x1, x1, :lo12:IncompleteExp str x1, [x0] .L537: ldrb w0, [sp, 55] cmp w0, 92 bne .L538 ldr x0, [sp, 64] add x0, x0, 1 str x0, [sp, 64] .L538: adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 bne .L539 ldrb w1, [sp, 55] ldrb w0, [sp, 54] cmp w1, w0 bne .L540 .L539: adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 bne .L551 ldr x0, [sp, 64] sub x0, x0, #1 str x0, [sp, 64] ldr x0, [sp, 64] mov w1, 48 strb w1, [x0] ldr x0, [sp, 32] ldr x1, [sp, 64] str x1, [x0] mov w1, 0 ldr x0, [sp, 32] bl eval str w0, [sp, 60] adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 bne .L552 b .L544 .L546: ldr x0, [sp, 72] ldrb w0, [x0] cmp w0, 92 bne .L545 ldr x0, [sp, 72] add x0, x0, 1 str x0, [sp, 72] .L545: ldr x0, [sp, 72] ldrb w0, [x0] mov w1, w0 ldr w0, [sp, 60] add w0, w0, w1 str w0, [sp, 56] ldr x0, [sp, 72] add x0, x0, 1 str x0, [sp, 72] mov w2, 2 mov w1, 1 ldr w0, [sp, 56] bl output_le .L544: ldr x1, [sp, 72] ldr x0, [sp, 64] cmp x1, x0 bne .L546 b .L542 .L536: mov w1, 0 ldr x0, [sp, 32] bl eval str w0, [sp, 56] adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 bne .L542 ldr w0, [sp, 56] cmp w0, 255 bgt .L547 ldr w0, [sp, 56] cmn w0, #128 bge .L548 .L547: adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, OutOfRange add x1, x1, :lo12:OutOfRange str x1, [x0] b .L542 .L548: mov w2, 2 mov w1, 1 ldr w0, [sp, 56] bl output_le b .L542 .L551: nop b .L542 .L552: nop .L542: adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 bne .L553 mov w1, 44 ldr x0, [sp, 32] bl eatchar cmp w0, 0 bne .L550 .L553: 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 .LFE55: .size db, .-db .align 2 .global dsw .type dsw, %function dsw: .LFB56: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] adrp x0, defaultfiller add x0, x0, :lo12:defaultfiller ldr w0, [x0] str w0, [sp, 44] adrp x0, dependant add x0, x0, :lo12:dependant str wzr, [x0] mov w1, 0 ldr x0, [sp, 16] bl eval str w0, [sp, 40] adrp x0, dependant add x0, x0, :lo12:dependant ldr w0, [x0] cmp w0, 0 bne .L555 ldr w0, [sp, 40] cmp w0, 0 bge .L556 adrp x0, needanotherpass add x0, x0, :lo12:needanotherpass ldr w0, [x0] cmp w0, 0 beq .L556 .L555: str wzr, [sp, 40] .L556: mov w1, 44 ldr x0, [sp, 16] bl eatchar cmp w0, 0 beq .L557 mov w1, 0 ldr x0, [sp, 16] bl eval str w0, [sp, 44] .L557: adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 bne .L558 adrp x0, dependant add x0, x0, :lo12:dependant ldr w0, [x0] cmp w0, 0 bne .L558 ldr w1, [sp, 44] mov w0, 65535 cmp w1, w0 bgt .L559 ldr w0, [sp, 44] cmn w0, #32768 blt .L559 ldr w0, [sp, 40] cmp w0, 0 bge .L558 .L559: adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, OutOfRange add x1, x1, :lo12:OutOfRange str x1, [x0] .L558: adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 bne .L564 b .L562 .L563: mov w2, 2 mov w1, 2 ldr w0, [sp, 44] bl output_le .L562: ldr w0, [sp, 40] sub w1, w0, #1 str w1, [sp, 40] cmp w0, 0 bne .L563 b .L554 .L564: nop .L554: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE56: .size dsw, .-dsw .align 2 .global filler .type filler, %function filler: .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 w0, [sp, 28] str x1, [sp, 16] adrp x0, defaultfiller add x0, x0, :lo12:defaultfiller ldr w0, [x0] str w0, [sp, 44] adrp x0, dependant add x0, x0, :lo12:dependant ldr w0, [x0] cmp w0, 0 bne .L566 ldr w0, [sp, 28] cmp w0, 0 bge .L567 adrp x0, needanotherpass add x0, x0, :lo12:needanotherpass ldr w0, [x0] cmp w0, 0 beq .L567 .L566: str wzr, [sp, 28] .L567: mov w1, 44 ldr x0, [sp, 16] bl eatchar cmp w0, 0 beq .L568 mov w1, 0 ldr x0, [sp, 16] bl eval str w0, [sp, 44] .L568: adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 bne .L569 adrp x0, dependant add x0, x0, :lo12:dependant ldr w0, [x0] cmp w0, 0 bne .L569 ldr w0, [sp, 44] cmp w0, 255 bgt .L570 ldr w0, [sp, 44] cmn w0, #128 blt .L570 ldr w0, [sp, 28] cmp w0, 0 blt .L570 ldr w0, [sp, 28] cmp w0, 1048576 ble .L569 .L570: adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, OutOfRange add x1, x1, :lo12:OutOfRange str x1, [x0] .L569: adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 bne .L575 b .L573 .L574: mov w2, 0 mov w1, 1 ldr w0, [sp, 44] bl output_le .L573: ldr w0, [sp, 28] sub w1, w0, #1 str w1, [sp, 28] cmp w0, 0 bne .L574 b .L565 .L575: nop .L565: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE57: .size filler, .-filler .align 2 .global dsb .type dsb, %function dsb: .LFB58: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] adrp x0, dependant add x0, x0, :lo12:dependant str wzr, [x0] mov w1, 0 ldr x0, [sp, 16] bl eval str w0, [sp, 44] ldr x1, [sp, 16] ldr w0, [sp, 44] bl filler nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE58: .size dsb, .-dsb .align 2 .global align .type align, %function align: .LFB59: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] adrp x0, dependant add x0, x0, :lo12:dependant str wzr, [x0] mov w1, 0 ldr x0, [sp, 16] bl eval str w0, [sp, 44] ldr w0, [sp, 44] cmp w0, 0 blt .L578 adrp x0, firstlabel add x0, x0, :lo12:firstlabel ldr x0, [x0, 8] mov w1, w0 ldr w0, [sp, 44] udiv w2, w1, w0 mul w0, w2, w0 sub w0, w1, w0 cmp w0, 0 beq .L579 ldr w2, [sp, 44] adrp x0, firstlabel add x0, x0, :lo12:firstlabel ldr x0, [x0, 8] mov w1, w0 ldr w0, [sp, 44] udiv w3, w1, w0 mul w0, w3, w0 sub w0, w1, w0 sub w0, w2, w0 str w0, [sp, 44] b .L580 .L579: str wzr, [sp, 44] b .L580 .L578: str wzr, [sp, 44] .L580: ldr x1, [sp, 16] ldr w0, [sp, 44] bl filler nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE59: .size align, .-align .align 2 .global pad .type pad, %function pad: .LFB60: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] adrp x0, firstlabel add x0, x0, :lo12:firstlabel ldr x0, [x0, 8] cmp x0, 0 bge .L582 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, undefinedPC add x1, x1, :lo12:undefinedPC str x1, [x0] b .L584 .L582: adrp x0, dependant add x0, x0, :lo12:dependant str wzr, [x0] mov w1, 0 ldr x0, [sp, 16] bl eval mov w1, w0 adrp x0, firstlabel add x0, x0, :lo12:firstlabel ldr x0, [x0, 8] sub w0, w1, w0 str w0, [sp, 44] ldr x1, [sp, 16] ldr w0, [sp, 44] bl filler .L584: nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE60: .size pad, .-pad .align 2 .global org .type org, %function org: .LFB61: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] adrp x0, firstlabel add x0, x0, :lo12:firstlabel ldr x0, [x0, 8] cmp x0, 0 bge .L586 ldr x1, [sp, 16] ldr x0, [sp, 24] bl base b .L588 .L586: ldr x1, [sp, 16] ldr x0, [sp, 24] bl pad .L588: nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE61: .size org, .-org .section .rodata .align 3 .LC197: .string "Unstable instruction \"%s\" used without calling UNSTABLE." .align 3 .LC198: .string "Highly unstable instruction \"%s\" used without calling HUNSTABLE." .align 3 .LC199: .string "Branch out of range." .align 3 .LC200: .string "PC out of range." .text .align 2 .global opcode .type opcode, %function opcode: .LFB62: .cfi_startproc stp x29, x30, [sp, -112]! .cfi_def_cfa_offset 112 .cfi_offset 29, -112 .cfi_offset 30, -104 mov x29, sp str x19, [sp, 16] .cfi_offset 19, -96 str x0, [sp, 40] str x1, [sp, 32] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 104] mov x1, 0 str wzr, [sp, 60] adrp x0, needanotherpass add x0, x0, :lo12:needanotherpass ldr w0, [x0] str w0, [sp, 72] str wzr, [sp, 64] adrp x0, allowunstable add x0, x0, :lo12:allowunstable ldr w0, [x0] cmp w0, 0 bne .L590 str wzr, [sp, 68] b .L591 .L593: ldr x0, [sp, 40] ldr x2, [x0] adrp x0, unstablelist add x0, x0, :lo12:unstablelist ldrsw x1, [sp, 68] ldr x0, [x0, x1, lsl 3] mov x1, x0 mov x0, x2 bl strcmp cmp w0, 0 bne .L592 ldr x0, [sp, 40] ldr x0, [x0] mov x1, x0 adrp x0, .LC197 add x0, x0, :lo12:.LC197 bl fatal_error .L592: ldr w0, [sp, 68] add w0, w0, 1 str w0, [sp, 68] .L591: ldr w0, [sp, 68] cmp w0, 3 ble .L593 .L590: adrp x0, allowhunstable add x0, x0, :lo12:allowhunstable ldr w0, [x0] cmp w0, 0 bne .L594 ldr x0, [sp, 40] ldr x2, [x0] adrp x0, .LC81 add x1, x0, :lo12:.LC81 mov x0, x2 bl strcmp cmp w0, 0 bne .L594 ldr x0, [sp, 40] ldr x0, [x0] mov x1, x0 adrp x0, .LC198 add x0, x0, :lo12:.LC198 bl fatal_error .L594: ldr x0, [sp, 40] ldr x0, [x0, 24] str x0, [sp, 96] b .L595 .L614: adrp x0, needanotherpass add x0, x0, :lo12:needanotherpass ldr w1, [sp, 72] str w1, [x0] ldr x0, [sp, 32] ldr x0, [x0] mov x1, x0 adrp x0, tmpstr add x0, x0, :lo12:tmpstr bl strcpy adrp x0, dependant add x0, x0, :lo12:dependant str wzr, [x0] adrp x0, errmsg add x0, x0, :lo12:errmsg str xzr, [x0] ldr x0, [sp, 96] add x0, x0, 1 ldrb w0, [x0] str w0, [sp, 76] adrp x0, tmpstr add x0, x0, :lo12:tmpstr str x0, [sp, 80] ldr w0, [sp, 76] cmp w0, 12 beq .L596 ldr w0, [sp, 76] cmp w0, 0 beq .L596 adrp x0, ophead add x1, x0, :lo12:ophead ldrsw x0, [sp, 76] ldrb w1, [x1, x0] add x0, sp, 80 bl eatchar cmp w0, 0 beq .L617 add x0, sp, 80 mov w1, 0 bl eval str w0, [sp, 60] ldr w0, [sp, 76] cmp w0, 11 bne .L599 adrp x0, dependant add x0, x0, :lo12:dependant ldr w0, [x0] cmp w0, 0 bne .L600 ldr w0, [sp, 60] adrp x1, firstlabel add x1, x1, :lo12:firstlabel ldr x1, [x1, 8] sub w0, w0, w1 sub w0, w0, #2 str w0, [sp, 60] ldr w0, [sp, 60] cmp w0, 127 bgt .L601 ldr w0, [sp, 60] cmn w0, #128 bge .L600 .L601: adrp x0, needanotherpass add x0, x0, :lo12:needanotherpass mov w1, 1 str w1, [x0] adrp x0, lastchance add x0, x0, :lo12:lastchance ldr w0, [x0] cmp w0, 0 beq .L600 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, .LC199 add x1, x1, :lo12:.LC199 str x1, [x0] mov w0, 1 str w0, [sp, 64] b .L600 .L599: adrp x0, opsize add x0, x0, :lo12:opsize ldrsw x1, [sp, 76] ldr w0, [x0, x1, lsl 2] cmp w0, 1 bne .L602 adrp x0, dependant add x0, x0, :lo12:dependant ldr w0, [x0] cmp w0, 0 bne .L603 ldr w0, [sp, 60] cmp w0, 255 bgt .L604 ldr w0, [sp, 60] cmn w0, #128 bge .L600 .L604: adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, OutOfRange add x1, x1, :lo12:OutOfRange str x1, [x0] b .L600 .L603: ldr w0, [sp, 76] cmp w0, 1 beq .L600 b .L598 .L602: ldr w0, [sp, 60] cmp w0, 0 blt .L605 ldr w1, [sp, 60] mov w0, 65535 cmp w1, w0 ble .L600 .L605: adrp x0, dependant add x0, x0, :lo12:dependant ldr w0, [x0] cmp w0, 0 bne .L600 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, OutOfRange add x1, x1, :lo12:OutOfRange str x1, [x0] .L600: adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 beq .L596 adrp x0, dependant add x0, x0, :lo12:dependant ldr w0, [x0] cmp w0, 0 bne .L596 ldr w0, [sp, 64] cmp w0, 0 beq .L618 .L596: ldr x0, [sp, 80] bl my_strupr adrp x0, optail add x0, x0, :lo12:optail ldrsw x1, [sp, 76] ldr x0, [x0, x1, lsl 3] str x0, [sp, 88] b .L606 .L609: ldr x0, [sp, 88] ldrb w1, [x0] add x0, sp, 80 bl eatchar cmp w0, 0 beq .L619 ldr x0, [sp, 88] add x0, x0, 1 str x0, [sp, 88] .L606: ldr x0, [sp, 88] ldrb w0, [x0] cmp w0, 0 bne .L609 b .L608 .L619: nop .L608: ldr x19, [sp, 80] ldr x2, [sp, 80] adrp x0, whitesp add x1, x0, :lo12:whitesp mov x0, x2 bl strspn add x0, x19, x0 str x0, [sp, 80] ldr x0, [sp, 80] ldrb w0, [x0] cmp w0, 0 bne .L620 ldr x0, [sp, 88] ldrb w0, [x0] cmp w0, 0 bne .L620 adrp x0, firstlabel add x0, x0, :lo12:firstlabel ldr x1, [x0, 8] mov x0, 65535 cmp x1, x0 ble .L612 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, .LC200 add x1, x1, :lo12:.LC200 str x1, [x0] .L612: mov w2, 1 mov w1, 1 ldr x0, [sp, 96] bl output adrp x0, opsize add x0, x0, :lo12:opsize ldrsw x1, [sp, 76] ldr w0, [x0, x1, lsl 2] mov w2, 1 mov w1, w0 ldr w0, [sp, 60] bl output_le ldr x0, [sp, 32] ldr x0, [x0] ldr x2, [sp, 80] adrp x1, tmpstr add x1, x1, :lo12:tmpstr sub x1, x2, x1 add x1, x0, x1 ldr x0, [sp, 32] str x1, [x0] b .L589 .L617: nop b .L598 .L618: nop b .L598 .L620: nop .L598: ldr x0, [sp, 96] add x0, x0, 2 str x0, [sp, 96] .L595: ldr x0, [sp, 96] ldrb w0, [x0] cmp w0, 255 bne .L614 adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 bne .L589 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, Illegal add x1, x1, :lo12:Illegal str x1, [x0] .L589: 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 .L616 bl __stack_chk_fail .L616: 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 .LFE62: .size opcode, .-opcode .align 2 .global _if .type _if, %function _if: .LFB63: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w0, [x0] cmp w0, 30 ble .L622 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, IfNestLimit add x1, x1, :lo12:IfNestLimit str x1, [x0] b .L623 .L622: adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w0, [x0] add w1, w0, 1 adrp x0, iflevel add x0, x0, :lo12:iflevel str w1, [x0] .L623: adrp x0, dependant add x0, x0, :lo12:dependant str wzr, [x0] mov w1, 0 ldr x0, [sp, 16] bl eval str w0, [sp, 44] adrp x0, dependant add x0, x0, :lo12:dependant ldr w0, [x0] cmp w0, 0 bne .L624 adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 beq .L625 .L624: adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w1, [x0] adrp x0, ifdone add x0, x0, :lo12:ifdone sxtw x1, w1 mov w2, 1 str w2, [x0, x1, lsl 2] adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w1, [x0] adrp x0, skipline add x0, x0, :lo12:skipline sxtw x1, w1 mov w2, 1 str w2, [x0, x1, lsl 2] b .L626 .L625: ldr w0, [sp, 44] cmp w0, 0 beq .L627 adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w0, [x0] sub w1, w0, #1 adrp x0, skipline add x0, x0, :lo12:skipline sxtw x1, w1 ldr w0, [x0, x1, lsl 2] cmp w0, 0 beq .L628 .L627: mov w0, 1 b .L629 .L628: mov w0, 0 .L629: adrp x1, iflevel add x1, x1, :lo12:iflevel ldr w2, [x1] adrp x1, skipline add x1, x1, :lo12:skipline sxtw x2, w2 str w0, [x1, x2, lsl 2] adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w1, [x0] adrp x0, skipline add x0, x0, :lo12:skipline sxtw x1, w1 ldr w0, [x0, x1, lsl 2] cmp w0, 0 cset w0, eq and w2, w0, 255 adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w1, [x0] adrp x0, ifdone add x0, x0, :lo12:ifdone sxtw x1, w1 str w2, [x0, x1, lsl 2] nop .L626: nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE63: .size _if, .-_if .align 2 .global ifdef .type ifdef, %function ifdef: .LFB64: .cfi_startproc stp x29, x30, [sp, -176]! .cfi_def_cfa_offset 176 .cfi_offset 29, -176 .cfi_offset 30, -168 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 168] mov x1, 0 adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w0, [x0] cmp w0, 30 ble .L631 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, IfNestLimit add x1, x1, :lo12:IfNestLimit str x1, [x0] b .L632 .L631: adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w0, [x0] add w1, w0, 1 adrp x0, iflevel add x0, x0, :lo12:iflevel str w1, [x0] .L632: add x0, sp, 40 ldr x1, [sp, 16] bl getlabel add x0, sp, 40 bl findlabel cmp x0, 0 beq .L633 adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w0, [x0] sub w1, w0, #1 adrp x0, skipline add x0, x0, :lo12:skipline sxtw x1, w1 ldr w0, [x0, x1, lsl 2] cmp w0, 0 beq .L634 .L633: mov w0, 1 b .L635 .L634: mov w0, 0 .L635: adrp x1, iflevel add x1, x1, :lo12:iflevel ldr w2, [x1] adrp x1, skipline add x1, x1, :lo12:skipline sxtw x2, w2 str w0, [x1, x2, lsl 2] adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w1, [x0] adrp x0, skipline add x0, x0, :lo12:skipline sxtw x1, w1 ldr w0, [x0, x1, lsl 2] cmp w0, 0 cset w0, eq and w2, w0, 255 adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w1, [x0] adrp x0, ifdone add x0, x0, :lo12:ifdone sxtw x1, w1 str w2, [x0, x1, lsl 2] 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 .L636 bl __stack_chk_fail .L636: ldp x29, x30, [sp], 176 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE64: .size ifdef, .-ifdef .align 2 .global ifndef .type ifndef, %function ifndef: .LFB65: .cfi_startproc stp x29, x30, [sp, -176]! .cfi_def_cfa_offset 176 .cfi_offset 29, -176 .cfi_offset 30, -168 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 168] mov x1, 0 adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w0, [x0] cmp w0, 30 ble .L638 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, IfNestLimit add x1, x1, :lo12:IfNestLimit str x1, [x0] b .L639 .L638: adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w0, [x0] add w1, w0, 1 adrp x0, iflevel add x0, x0, :lo12:iflevel str w1, [x0] .L639: add x0, sp, 40 ldr x1, [sp, 16] bl getlabel add x0, sp, 40 bl findlabel cmp x0, 0 bne .L640 adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w0, [x0] sub w1, w0, #1 adrp x0, skipline add x0, x0, :lo12:skipline sxtw x1, w1 ldr w0, [x0, x1, lsl 2] cmp w0, 0 beq .L641 .L640: mov w0, 1 b .L642 .L641: mov w0, 0 .L642: adrp x1, iflevel add x1, x1, :lo12:iflevel ldr w2, [x1] adrp x1, skipline add x1, x1, :lo12:skipline sxtw x2, w2 str w0, [x1, x2, lsl 2] adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w1, [x0] adrp x0, skipline add x0, x0, :lo12:skipline sxtw x1, w1 ldr w0, [x0, x1, lsl 2] cmp w0, 0 cset w0, eq and w2, w0, 255 adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w1, [x0] adrp x0, ifdone add x0, x0, :lo12:ifdone sxtw x1, w1 str w2, [x0, x1, lsl 2] 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 .L643 bl __stack_chk_fail .L643: ldp x29, x30, [sp], 176 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE65: .size ifndef, .-ifndef .section .rodata .align 3 .LC201: .string "ELSEIF without IF." .text .align 2 .global elseif .type elseif, %function elseif: .LFB66: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w0, [x0] cmp w0, 0 beq .L645 adrp x0, dependant add x0, x0, :lo12:dependant str wzr, [x0] mov w1, 0 ldr x0, [sp, 16] bl eval str w0, [sp, 44] adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w1, [x0] adrp x0, ifdone add x0, x0, :lo12:ifdone sxtw x1, w1 ldr w0, [x0, x1, lsl 2] cmp w0, 0 bne .L646 adrp x0, dependant add x0, x0, :lo12:dependant ldr w0, [x0] cmp w0, 0 bne .L647 adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 beq .L648 .L647: adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w1, [x0] adrp x0, ifdone add x0, x0, :lo12:ifdone sxtw x1, w1 mov w2, 1 str w2, [x0, x1, lsl 2] adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w1, [x0] adrp x0, skipline add x0, x0, :lo12:skipline sxtw x1, w1 mov w2, 1 str w2, [x0, x1, lsl 2] b .L654 .L648: ldr w0, [sp, 44] cmp w0, 0 beq .L650 adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w0, [x0] sub w1, w0, #1 adrp x0, skipline add x0, x0, :lo12:skipline sxtw x1, w1 ldr w0, [x0, x1, lsl 2] cmp w0, 0 beq .L651 .L650: mov w0, 1 b .L652 .L651: mov w0, 0 .L652: adrp x1, iflevel add x1, x1, :lo12:iflevel ldr w2, [x1] adrp x1, skipline add x1, x1, :lo12:skipline sxtw x2, w2 str w0, [x1, x2, lsl 2] adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w1, [x0] adrp x0, skipline add x0, x0, :lo12:skipline sxtw x1, w1 ldr w0, [x0, x1, lsl 2] cmp w0, 0 cset w0, eq and w2, w0, 255 adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w1, [x0] adrp x0, ifdone add x0, x0, :lo12:ifdone sxtw x1, w1 str w2, [x0, x1, lsl 2] b .L654 .L646: adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w1, [x0] adrp x0, skipline add x0, x0, :lo12:skipline sxtw x1, w1 mov w2, 1 str w2, [x0, x1, lsl 2] b .L654 .L645: adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, .LC201 add x1, x1, :lo12:.LC201 str x1, [x0] .L654: nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE66: .size elseif, .-elseif .section .rodata .align 3 .LC202: .string "ELSE without IF." .text .align 2 .global _else .type _else, %function _else: .LFB67: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, 8] str x1, [sp] adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w0, [x0] cmp w0, 0 beq .L656 adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w1, [x0] adrp x0, ifdone add x0, x0, :lo12:ifdone sxtw x1, w1 ldr w0, [x0, x1, lsl 2] cmp w0, 0 bne .L657 adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w0, [x0] sub w1, w0, #1 adrp x0, skipline add x0, x0, :lo12:skipline sxtw x1, w1 ldr w0, [x0, x1, lsl 2] cmp w0, 0 beq .L658 .L657: mov w0, 1 b .L659 .L658: mov w0, 0 .L659: adrp x1, iflevel add x1, x1, :lo12:iflevel ldr w2, [x1] adrp x1, skipline add x1, x1, :lo12:skipline sxtw x2, w2 str w0, [x1, x2, lsl 2] b .L661 .L656: adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, .LC202 add x1, x1, :lo12:.LC202 str x1, [x0] .L661: nop add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE67: .size _else, .-_else .section .rodata .align 3 .LC203: .string "ENDIF without IF." .text .align 2 .global endif .type endif, %function endif: .LFB68: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, 8] str x1, [sp] adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w0, [x0] cmp w0, 0 beq .L663 adrp x0, iflevel add x0, x0, :lo12:iflevel ldr w0, [x0] sub w1, w0, #1 adrp x0, iflevel add x0, x0, :lo12:iflevel str w1, [x0] b .L665 .L663: adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, .LC203 add x1, x1, :lo12:.LC203 str x1, [x0] .L665: nop add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE68: .size endif, .-endif .align 2 .global endm .type endm, %function endm: .LFB69: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, 8] str x1, [sp] adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, ExtraENDM add x1, x1, :lo12:ExtraENDM str x1, [x0] nop add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE69: .size endm, .-endm .align 2 .global endr .type endr, %function endr: .LFB70: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, 8] str x1, [sp] adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, ExtraENDR add x1, x1, :lo12:ExtraENDR str x1, [x0] nop add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE70: .size endr, .-endr .align 2 .global macro .type macro, %function macro: .LFB71: .cfi_startproc stp x29, x30, [sp, -208]! .cfi_def_cfa_offset 208 .cfi_offset 29, -208 .cfi_offset 30, -200 mov x29, sp str x19, [sp, 16] .cfi_offset 19, -192 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, 200] mov x1, 0 adrp x0, labelhere add x0, x0, :lo12:labelhere str xzr, [x0] add x0, sp, 72 ldr x1, [sp, 32] bl getlabel cmp w0, 0 beq .L669 add x0, sp, 72 mov w1, 0 bl addlabel b .L670 .L669: adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, NeedName add x1, x1, :lo12:NeedName str x1, [x0] .L670: adrp x0, true_ptr add x0, x0, :lo12:true_ptr ldr x1, [x0] adrp x0, makemacro add x0, x0, :lo12:makemacro str x1, [x0] adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 bne .L679 adrp x0, labelhere add x0, x0, :lo12:labelhere ldr x0, [x0] ldr w0, [x0, 32] cmp w0, 0 bne .L673 adrp x0, labelhere add x0, x0, :lo12:labelhere ldr x0, [x0] mov w1, 3 str w1, [x0, 32] adrp x0, labelhere add x0, x0, :lo12:labelhere ldr x0, [x0] str xzr, [x0, 24] adrp x0, labelhere add x0, x0, :lo12:labelhere ldr x0, [x0] add x1, x0, 24 adrp x0, makemacro add x0, x0, :lo12:makemacro str x1, [x0] str wzr, [sp, 60] ldr x0, [sp, 32] ldr x0, [x0] str x0, [sp, 64] b .L674 .L675: ldr x1, [sp, 64] ldr x0, [sp, 32] str x1, [x0] add x0, sp, 72 bl strlen add x1, x0, 9 adrp x0, makemacro add x0, x0, :lo12:makemacro ldr x19, [x0] mov x0, x1 bl my_malloc str x0, [x19] adrp x0, makemacro add x0, x0, :lo12:makemacro ldr x0, [x0] ldr x1, [x0] adrp x0, makemacro add x0, x0, :lo12:makemacro str x1, [x0] adrp x0, makemacro add x0, x0, :lo12:makemacro ldr x0, [x0] add x0, x0, 8 add x1, sp, 72 bl strcpy ldr w0, [sp, 60] add w0, w0, 1 str w0, [sp, 60] add x0, sp, 64 mov w1, 44 bl eatchar .L674: add x1, sp, 64 add x0, sp, 72 bl getlabel cmp w0, 0 bne .L675 adrp x0, errmsg add x0, x0, :lo12:errmsg str xzr, [x0] adrp x0, labelhere add x0, x0, :lo12:labelhere ldr x0, [x0] ldrsw x1, [sp, 60] str x1, [x0, 8] adrp x0, makemacro add x0, x0, :lo12:makemacro ldr x0, [x0] str xzr, [x0] b .L668 .L673: adrp x0, labelhere add x0, x0, :lo12:labelhere ldr x0, [x0] ldr w0, [x0, 32] cmp w0, 3 beq .L677 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, LabelDefined add x1, x1, :lo12:LabelDefined str x1, [x0] b .L668 .L677: ldr x0, [sp, 32] ldr x0, [x0] strb wzr, [x0] b .L668 .L679: nop .L668: adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x2, [sp, 200] ldr x1, [x0] subs x2, x2, x1 mov x1, 0 beq .L678 bl __stack_chk_fail .L678: ldr x19, [sp, 16] ldp x29, x30, [sp], 208 .cfi_restore 30 .cfi_restore 29 .cfi_restore 19 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE71: .size macro, .-macro .section .rodata .align 3 .LC204: .string "%s(%i):%s" .align 3 .LC205: .string ",'\"" .text .align 2 .global expandmacro .type expandmacro, %function expandmacro: .LFB72: .cfi_startproc stp x29, x30, [sp, -384]! .cfi_def_cfa_offset 384 .cfi_offset 29, -384 .cfi_offset 30, -376 mov x29, sp str x19, [sp, 16] .cfi_offset 19, -368 str x0, [sp, 56] str x1, [sp, 48] str w2, [sp, 44] str x3, [sp, 32] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 376] mov x1, 0 str wzr, [sp, 72] ldr x0, [sp, 56] ldr w0, [x0, 36] cmp w0, 0 beq .L681 adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, RecurseMACRO add x1, x1, :lo12:RecurseMACRO str x1, [x0] b .L680 .L681: adrp x0, scope add x0, x0, :lo12:scope ldr w0, [x0] str w0, [sp, 80] adrp x0, nextscope add x0, x0, :lo12:nextscope ldr w0, [x0] add w2, w0, 1 adrp x1, nextscope add x1, x1, :lo12:nextscope str w2, [x1] adrp x1, scope add x1, x1, :lo12:scope str w0, [x1] adrp x0, insidemacro add x0, x0, :lo12:insidemacro ldr w0, [x0] add w1, w0, 1 adrp x0, insidemacro add x0, x0, :lo12:insidemacro str w1, [x0] ldr x0, [sp, 56] mov w1, 1 str w1, [x0, 36] ldr x0, [sp, 56] ldr x0, [x0] add x5, sp, 120 mov x4, x0 ldr w3, [sp, 44] ldr x2, [sp, 32] adrp x0, .LC204 add x1, x0, :lo12:.LC204 mov x0, x5 bl sprintf ldr x0, [sp, 56] ldr x0, [x0, 24] str x0, [sp, 96] ldr x0, [sp, 48] ldr x0, [x0] str x0, [sp, 88] ldr x0, [sp, 56] ldr x0, [x0, 8] str w0, [sp, 84] str wzr, [sp, 76] .L692: ldr x19, [sp, 88] ldr x2, [sp, 88] adrp x0, whitesp add x1, x0, :lo12:whitesp mov x0, x2 bl strspn add x0, x19, x0 str x0, [sp, 88] ldr x0, [sp, 88] str x0, [sp, 112] adrp x0, .LC205 add x1, x0, :lo12:.LC205 ldr x0, [sp, 112] bl strpbrk str x0, [sp, 104] ldr x0, [sp, 104] cmp x0, 0 bne .L683 ldr x0, [sp, 112] bl strlen mov x1, x0 ldr x0, [sp, 112] add x0, x0, x1 str x0, [sp, 104] .L683: ldr x0, [sp, 104] ldrb w0, [x0] strb w0, [sp, 70] ldrb w0, [sp, 70] cmp w0, 34 beq .L684 ldrb w0, [sp, 70] cmp w0, 39 bne .L685 .L684: ldr x0, [sp, 104] add x0, x0, 1 str x0, [sp, 104] .L688: ldr x0, [sp, 104] ldrb w0, [x0] strb w0, [sp, 71] ldr x0, [sp, 104] add x0, x0, 1 str x0, [sp, 104] ldrb w0, [sp, 71] cmp w0, 92 bne .L686 ldr x0, [sp, 104] add x0, x0, 1 str x0, [sp, 104] .L686: ldrb w0, [sp, 71] cmp w0, 0 beq .L687 ldrb w1, [sp, 71] ldrb w0, [sp, 70] cmp w1, w0 bne .L688 .L687: ldrb w0, [sp, 71] cmp w0, 0 bne .L689 ldr x0, [sp, 104] sub x0, x0, #1 str x0, [sp, 104] .L689: ldr x0, [sp, 104] ldrb w0, [x0] strb w0, [sp, 70] .L685: ldr x0, [sp, 104] str x0, [sp, 112] ldr x0, [sp, 112] strb wzr, [x0] ldr x0, [sp, 88] ldrb w0, [x0] cmp w0, 0 beq .L690 ldr w1, [sp, 76] ldr w0, [sp, 84] cmp w1, w0 bge .L691 ldr x0, [sp, 96] add x0, x0, 8 mov w1, 1 bl addlabel add x0, sp, 88 mov x1, x0 mov x0, 0 bl equ ldr x0, [sp, 96] ldr x0, [x0] str x0, [sp, 96] .L691: ldr w0, [sp, 76] add w0, w0, 1 str w0, [sp, 76] .L690: ldr x0, [sp, 112] ldrb w1, [sp, 70] strb w1, [x0] ldr x0, [sp, 112] str x0, [sp, 88] add x0, sp, 88 mov w1, 44 bl eatchar cmp w0, 0 bne .L692 ldr x1, [sp, 88] ldr x0, [sp, 48] str x1, [x0] b .L693 .L694: ldr x0, [sp, 96] ldr x0, [x0] str x0, [sp, 96] .L693: ldr w0, [sp, 76] add w1, w0, 1 str w1, [sp, 76] ldr w1, [sp, 84] cmp w1, w0 bgt .L694 b .L695 .L696: ldr w0, [sp, 72] add w0, w0, 1 str w0, [sp, 72] ldr x0, [sp, 96] add x0, x0, 8 add x1, sp, 120 ldr w2, [sp, 72] bl processline ldr x0, [sp, 96] ldr x0, [x0] str x0, [sp, 96] .L695: ldr x0, [sp, 96] cmp x0, 0 bne .L696 adrp x0, errmsg add x0, x0, :lo12:errmsg str xzr, [x0] adrp x0, scope add x0, x0, :lo12:scope ldr w1, [sp, 80] str w1, [x0] adrp x0, insidemacro add x0, x0, :lo12:insidemacro ldr w0, [x0] sub w1, w0, #1 adrp x0, insidemacro add x0, x0, :lo12:insidemacro str w1, [x0] ldr x0, [sp, 56] str wzr, [x0, 36] .L680: adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x2, [sp, 376] ldr x1, [x0] subs x2, x2, x1 mov x1, 0 beq .L697 bl __stack_chk_fail .L697: ldr x19, [sp, 16] ldp x29, x30, [sp], 384 .cfi_restore 30 .cfi_restore 29 .cfi_restore 19 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE72: .size expandmacro, .-expandmacro .global rept_loops .bss .align 2 .type rept_loops, %object .size rept_loops, 4 rept_loops: .zero 4 .global repttext .align 3 .type repttext, %object .size repttext, 8 repttext: .zero 8 .text .align 2 .global rept .type rept, %function rept: .LFB73: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] adrp x0, dependant add x0, x0, :lo12:dependant str wzr, [x0] mov w1, 0 ldr x0, [sp, 16] bl eval mov w1, w0 adrp x0, rept_loops add x0, x0, :lo12:rept_loops str w1, [x0] adrp x0, dependant add x0, x0, :lo12:dependant ldr w0, [x0] cmp w0, 0 bne .L699 adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x0, [x0] cmp x0, 0 bne .L699 adrp x0, rept_loops add x0, x0, :lo12:rept_loops ldr w0, [x0] cmp w0, 0 bge .L700 .L699: adrp x0, rept_loops add x0, x0, :lo12:rept_loops str wzr, [x0] .L700: adrp x0, makerept add x0, x0, :lo12:makerept adrp x1, repttext add x1, x1, :lo12:repttext str x1, [x0] adrp x0, repttext add x0, x0, :lo12:repttext str xzr, [x0] adrp x0, reptcount add x0, x0, :lo12:reptcount ldr w0, [x0] add w1, w0, 1 adrp x0, reptcount add x0, x0, :lo12:reptcount str w1, [x0] nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE73: .size rept, .-rept .section .rodata .align 3 .LC206: .string "%s(%i):REPT" .text .align 2 .global expandrept .type expandrept, %function expandrept: .LFB74: .cfi_startproc stp x29, x30, [sp, -336]! .cfi_def_cfa_offset 336 .cfi_offset 29, -336 .cfi_offset 30, -328 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, 328] mov x1, 0 adrp x0, repttext add x0, x0, :lo12:repttext ldr x0, [x0] str x0, [sp, 56] adrp x0, scope add x0, x0, :lo12:scope ldr w0, [x0] str w0, [sp, 52] adrp x0, insidemacro add x0, x0, :lo12:insidemacro ldr w0, [x0] add w1, w0, 1 adrp x0, insidemacro add x0, x0, :lo12:insidemacro str w1, [x0] adrp x0, rept_loops add x0, x0, :lo12:rept_loops ldr w0, [x0] str w0, [sp, 48] b .L702 .L705: str wzr, [sp, 44] adrp x0, nextscope add x0, x0, :lo12:nextscope ldr w0, [x0] add w2, w0, 1 adrp x1, nextscope add x1, x1, :lo12:nextscope str w2, [x1] adrp x1, scope add x1, x1, :lo12:scope str w0, [x1] add x4, sp, 72 ldr w3, [sp, 28] ldr x2, [sp, 16] adrp x0, .LC206 add x1, x0, :lo12:.LC206 mov x0, x4 bl sprintf ldr x0, [sp, 56] str x0, [sp, 64] b .L703 .L704: ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] ldr x0, [sp, 64] add x0, x0, 8 add x1, sp, 72 ldr w2, [sp, 44] bl processline ldr x0, [sp, 64] ldr x0, [x0] str x0, [sp, 64] .L703: ldr x0, [sp, 64] cmp x0, 0 bne .L704 ldr w0, [sp, 48] sub w0, w0, #1 str w0, [sp, 48] .L702: ldr w0, [sp, 48] cmp w0, 0 bne .L705 b .L706 .L707: ldr x0, [sp, 56] ldr x0, [x0] str x0, [sp, 64] ldr x0, [sp, 56] bl free ldr x0, [sp, 64] str x0, [sp, 56] .L706: ldr x0, [sp, 56] cmp x0, 0 bne .L707 adrp x0, errmsg add x0, x0, :lo12:errmsg str xzr, [x0] adrp x0, scope add x0, x0, :lo12:scope ldr w1, [sp, 52] str w1, [x0] adrp x0, insidemacro add x0, x0, :lo12:insidemacro ldr w0, [x0] sub w1, w0, #1 adrp x0, insidemacro add x0, x0, :lo12:insidemacro str w1, [x0] nop adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x2, [sp, 328] ldr x1, [x0] subs x2, x2, x1 mov x1, 0 beq .L708 bl __stack_chk_fail .L708: ldp x29, x30, [sp], 336 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE74: .size expandrept, .-expandrept .global enum_saveaddr .bss .align 2 .type enum_saveaddr, %object .size enum_saveaddr, 4 enum_saveaddr: .zero 4 .text .align 2 .global _enum .type _enum, %function _enum: .LFB75: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] str wzr, [sp, 44] adrp x0, dependant add x0, x0, :lo12:dependant str wzr, [x0] mov w1, 0 ldr x0, [sp, 16] bl eval str w0, [sp, 44] adrp x0, nooutput add x0, x0, :lo12:nooutput ldr w0, [x0] cmp w0, 0 bne .L710 adrp x0, firstlabel add x0, x0, :lo12:firstlabel ldr x0, [x0, 8] mov w1, w0 adrp x0, enum_saveaddr add x0, x0, :lo12:enum_saveaddr str w1, [x0] .L710: ldrsw x1, [sp, 44] adrp x0, firstlabel add x0, x0, :lo12:firstlabel str x1, [x0, 8] adrp x0, nooutput add x0, x0, :lo12:nooutput mov w1, 1 str w1, [x0] nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE75: .size _enum, .-_enum .align 2 .global ende .type ende, %function ende: .LFB76: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, 8] str x1, [sp] adrp x0, nooutput add x0, x0, :lo12:nooutput ldr w0, [x0] cmp w0, 0 beq .L712 adrp x0, enum_saveaddr add x0, x0, :lo12:enum_saveaddr ldr w0, [x0] sxtw x1, w0 adrp x0, firstlabel add x0, x0, :lo12:firstlabel str x1, [x0, 8] adrp x0, nooutput add x0, x0, :lo12:nooutput str wzr, [x0] b .L714 .L712: adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, ExtraENDE add x1, x1, :lo12:ExtraENDE str x1, [x0] .L714: nop add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE76: .size ende, .-ende .align 2 .global ignorenl .type ignorenl, %function ignorenl: .LFB77: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, 8] str x1, [sp] adrp x0, nonl add x0, x0, :lo12:nonl mov w1, 1 str w1, [x0] nop add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE77: .size ignorenl, .-ignorenl .align 2 .global endinl .type endinl, %function endinl: .LFB78: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, 8] str x1, [sp] adrp x0, nonl add x0, x0, :lo12:nonl ldr w0, [x0] cmp w0, 0 beq .L717 adrp x0, nonl add x0, x0, :lo12:nonl str wzr, [x0] b .L719 .L717: adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, ExtraENDINL add x1, x1, :lo12:ExtraENDINL str x1, [x0] .L719: nop add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE78: .size endinl, .-endinl .align 2 .global fillval .type fillval, %function fillval: .LFB79: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] adrp x0, dependant add x0, x0, :lo12:dependant str wzr, [x0] mov w1, 0 ldr x0, [sp, 16] bl eval mov w1, w0 adrp x0, defaultfiller add x0, x0, :lo12:defaultfiller str w1, [x0] nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE79: .size fillval, .-fillval .align 2 .global make_error .type make_error, %function make_error: .LFB80: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] ldr x0, [sp, 16] ldr x0, [x0] str x0, [sp, 40] adrp x0, whitesp2 add x1, x0, :lo12:whitesp2 ldr x0, [sp, 40] bl strspn mov x1, x0 ldr x0, [sp, 40] add x0, x0, x1 mov x1, x0 adrp x0, tmpstr add x0, x0, :lo12:tmpstr bl reverse adrp x0, whitesp2 add x1, x0, :lo12:whitesp2 adrp x0, tmpstr add x0, x0, :lo12:tmpstr bl strspn mov x1, x0 adrp x0, tmpstr add x0, x0, :lo12:tmpstr add x0, x1, x0 mov x1, x0 ldr x0, [sp, 40] bl reverse adrp x0, errmsg add x0, x0, :lo12:errmsg ldr x1, [sp, 40] str x1, [x0] adrp x0, error add x0, x0, :lo12:error mov w1, 1 str w1, [x0] ldr x0, [sp, 40] bl strlen mov x1, x0 ldr x0, [sp, 40] add x1, x0, x1 ldr x0, [sp, 16] str x1, [x0] nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE80: .size make_error, .-make_error .align 2 .global unstable .type unstable, %function unstable: .LFB81: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, 8] str x1, [sp] adrp x0, allowunstable add x0, x0, :lo12:allowunstable ldr w0, [x0] add w1, w0, 1 adrp x0, allowunstable add x0, x0, :lo12:allowunstable str w1, [x0] nop add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE81: .size unstable, .-unstable .align 2 .global hunstable .type hunstable, %function hunstable: .LFB82: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, 8] str x1, [sp] adrp x0, allowunstable add x0, x0, :lo12:allowunstable ldr w0, [x0] add w1, w0, 1 adrp x0, allowunstable add x0, x0, :lo12:allowunstable str w1, [x0] adrp x0, allowhunstable add x0, x0, :lo12:allowhunstable ldr w0, [x0] add w1, w0, 1 adrp x0, allowhunstable add x0, x0, :lo12:allowhunstable str w1, [x0] nop add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE82: .size hunstable, .-hunstable .align 2 .global inesprg .type inesprg, %function inesprg: .LFB83: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] mov w1, 0 ldr x0, [sp, 16] bl eval mov w1, w0 adrp x0, inesprg_num add x0, x0, :lo12:inesprg_num str w1, [x0] adrp x0, inesprg_num add x0, x0, :lo12:inesprg_num ldr w0, [x0] cmp w0, 0 blt .L725 adrp x0, inesprg_num add x0, x0, :lo12:inesprg_num ldr w0, [x0] cmp w0, 255 ble .L726 .L725: adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, OutOfRange add x1, x1, :lo12:OutOfRange str x1, [x0] .L726: adrp x0, ines_include add x0, x0, :lo12:ines_include ldr w0, [x0] add w1, w0, 1 adrp x0, ines_include add x0, x0, :lo12:ines_include str w1, [x0] nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE83: .size inesprg, .-inesprg .align 2 .global ineschr .type ineschr, %function ineschr: .LFB84: .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 w1, 0 ldr x0, [sp, 16] bl eval mov w1, w0 adrp x0, ineschr_num add x0, x0, :lo12:ineschr_num str w1, [x0] adrp x0, ineschr_num add x0, x0, :lo12:ineschr_num ldr w0, [x0] cmp w0, 0 blt .L728 adrp x0, ineschr_num add x0, x0, :lo12:ineschr_num ldr w0, [x0] cmp w0, 255 ble .L729 .L728: adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, OutOfRange add x1, x1, :lo12:OutOfRange str x1, [x0] .L729: adrp x0, ines_include add x0, x0, :lo12:ines_include ldr w0, [x0] add w1, w0, 1 adrp x0, ines_include add x0, x0, :lo12:ines_include str w1, [x0] nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE84: .size ineschr, .-ineschr .align 2 .global inesmir .type inesmir, %function inesmir: .LFB85: .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 w1, 0 ldr x0, [sp, 16] bl eval mov w1, w0 adrp x0, inesmir_num add x0, x0, :lo12:inesmir_num str w1, [x0] adrp x0, inesmir_num add x0, x0, :lo12:inesmir_num ldr w0, [x0] cmp w0, 16 bgt .L731 adrp x0, inesmir_num add x0, x0, :lo12:inesmir_num ldr w0, [x0] cmp w0, 0 bge .L732 .L731: adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, OutOfRange add x1, x1, :lo12:OutOfRange str x1, [x0] .L732: adrp x0, ines_include add x0, x0, :lo12:ines_include ldr w0, [x0] add w1, w0, 1 adrp x0, ines_include add x0, x0, :lo12:ines_include str w1, [x0] nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE85: .size inesmir, .-inesmir .align 2 .global inesmap .type inesmap, %function inesmap: .LFB86: .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 w1, 0 ldr x0, [sp, 16] bl eval mov w1, w0 adrp x0, inesmap_num add x0, x0, :lo12:inesmap_num str w1, [x0] adrp x0, inesmap_num add x0, x0, :lo12:inesmap_num ldr w0, [x0] cmp w0, 4095 bgt .L734 adrp x0, inesmap_num add x0, x0, :lo12:inesmap_num ldr w0, [x0] cmp w0, 0 bge .L735 .L734: adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, OutOfRange add x1, x1, :lo12:OutOfRange str x1, [x0] .L735: adrp x0, ines_include add x0, x0, :lo12:ines_include ldr w0, [x0] add w1, w0, 1 adrp x0, ines_include add x0, x0, :lo12:ines_include str w1, [x0] nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE86: .size inesmap, .-inesmap .align 2 .global nes2chrram .type nes2chrram, %function nes2chrram: .LFB87: .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 w1, 0 ldr x0, [sp, 16] bl eval mov w1, w0 adrp x0, nes2chr_num add x0, x0, :lo12:nes2chr_num str w1, [x0] adrp x0, nes2chr_num add x0, x0, :lo12:nes2chr_num ldr w0, [x0] cmp w0, 0 blt .L737 adrp x0, nes2chr_num add x0, x0, :lo12:nes2chr_num ldr w0, [x0] cmp w0, 16 ble .L738 .L737: adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, OutOfRange add x1, x1, :lo12:OutOfRange str x1, [x0] .L738: adrp x0, ines_include add x0, x0, :lo12:ines_include ldr w0, [x0] add w1, w0, 1 adrp x0, ines_include add x0, x0, :lo12:ines_include str w1, [x0] adrp x0, use_nes2 add x0, x0, :lo12:use_nes2 mov w1, 1 str w1, [x0] nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE87: .size nes2chrram, .-nes2chrram .align 2 .global nes2prgram .type nes2prgram, %function nes2prgram: .LFB88: .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 w1, 0 ldr x0, [sp, 16] bl eval mov w1, w0 adrp x0, nes2prg_num add x0, x0, :lo12:nes2prg_num str w1, [x0] adrp x0, nes2prg_num add x0, x0, :lo12:nes2prg_num ldr w0, [x0] cmp w0, 0 blt .L740 adrp x0, nes2prg_num add x0, x0, :lo12:nes2prg_num ldr w0, [x0] cmp w0, 16 ble .L741 .L740: adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, OutOfRange add x1, x1, :lo12:OutOfRange str x1, [x0] .L741: adrp x0, ines_include add x0, x0, :lo12:ines_include ldr w0, [x0] add w1, w0, 1 adrp x0, ines_include add x0, x0, :lo12:ines_include str w1, [x0] adrp x0, use_nes2 add x0, x0, :lo12:use_nes2 mov w1, 1 str w1, [x0] nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE88: .size nes2prgram, .-nes2prgram .align 2 .global nes2sub .type nes2sub, %function nes2sub: .LFB89: .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 w1, 0 ldr x0, [sp, 16] bl eval mov w1, w0 adrp x0, nes2sub_num add x0, x0, :lo12:nes2sub_num str w1, [x0] adrp x0, nes2sub_num add x0, x0, :lo12:nes2sub_num ldr w0, [x0] cmp w0, 0 blt .L743 adrp x0, nes2sub_num add x0, x0, :lo12:nes2sub_num ldr w0, [x0] cmp w0, 16 ble .L744 .L743: adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, OutOfRange add x1, x1, :lo12:OutOfRange str x1, [x0] .L744: adrp x0, ines_include add x0, x0, :lo12:ines_include ldr w0, [x0] add w1, w0, 1 adrp x0, ines_include add x0, x0, :lo12:ines_include str w1, [x0] adrp x0, use_nes2 add x0, x0, :lo12:use_nes2 mov w1, 1 str w1, [x0] nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE89: .size nes2sub, .-nes2sub .align 2 .global nes2tv .type nes2tv, %function nes2tv: .LFB90: .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 w1, 0 ldr x0, [sp, 16] bl eval mov w1, w0 adrp x0, nes2tv_num add x0, x0, :lo12:nes2tv_num str w1, [x0] adrp x0, nes2tv_num add x0, x0, :lo12:nes2tv_num ldr w0, [x0] cmp w0, 78 bne .L746 adrp x0, nes2tv_num add x0, x0, :lo12:nes2tv_num str wzr, [x0] .L746: adrp x0, nes2tv_num add x0, x0, :lo12:nes2tv_num ldr w0, [x0] cmp w0, 80 bne .L747 adrp x0, nes2tv_num add x0, x0, :lo12:nes2tv_num mov w1, 1 str w1, [x0] .L747: adrp x0, nes2tv_num add x0, x0, :lo12:nes2tv_num ldr w0, [x0] cmp w0, 66 bne .L748 adrp x0, nes2tv_num add x0, x0, :lo12:nes2tv_num mov w1, 2 str w1, [x0] .L748: adrp x0, nes2tv_num add x0, x0, :lo12:nes2tv_num ldr w0, [x0] cmp w0, 2 bgt .L749 adrp x0, nes2tv_num add x0, x0, :lo12:nes2tv_num ldr w0, [x0] cmp w0, 0 bge .L750 .L749: adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, OutOfRange add x1, x1, :lo12:OutOfRange str x1, [x0] .L750: adrp x0, ines_include add x0, x0, :lo12:ines_include ldr w0, [x0] add w1, w0, 1 adrp x0, ines_include add x0, x0, :lo12:ines_include str w1, [x0] adrp x0, use_nes2 add x0, x0, :lo12:use_nes2 mov w1, 1 str w1, [x0] nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE90: .size nes2tv, .-nes2tv .align 2 .global nes2vs .type nes2vs, %function nes2vs: .LFB91: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, 8] str x1, [sp] adrp x0, nes2vs_num add x0, x0, :lo12:nes2vs_num mov w1, 1 str w1, [x0] adrp x0, ines_include add x0, x0, :lo12:ines_include ldr w0, [x0] add w1, w0, 1 adrp x0, ines_include add x0, x0, :lo12:ines_include str w1, [x0] adrp x0, use_nes2 add x0, x0, :lo12:use_nes2 mov w1, 1 str w1, [x0] nop add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE91: .size nes2vs, .-nes2vs .align 2 .global nes2bram .type nes2bram, %function nes2bram: .LFB92: .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 w1, 0 ldr x0, [sp, 16] bl eval mov w1, w0 adrp x0, nes2bram_num add x0, x0, :lo12:nes2bram_num str w1, [x0] adrp x0, nes2bram_num add x0, x0, :lo12:nes2bram_num ldr w0, [x0] cmp w0, 0 blt .L753 adrp x0, nes2bram_num add x0, x0, :lo12:nes2bram_num ldr w0, [x0] cmp w0, 16 ble .L754 .L753: adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, OutOfRange add x1, x1, :lo12:OutOfRange str x1, [x0] .L754: adrp x0, ines_include add x0, x0, :lo12:ines_include ldr w0, [x0] add w1, w0, 1 adrp x0, ines_include add x0, x0, :lo12:ines_include str w1, [x0] adrp x0, use_nes2 add x0, x0, :lo12:use_nes2 mov w1, 1 str w1, [x0] nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE92: .size nes2bram, .-nes2bram .align 2 .global nes2chrbram .type nes2chrbram, %function nes2chrbram: .LFB93: .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 w1, 0 ldr x0, [sp, 16] bl eval mov w1, w0 adrp x0, nes2chrbram_num add x0, x0, :lo12:nes2chrbram_num str w1, [x0] adrp x0, nes2chrbram_num add x0, x0, :lo12:nes2chrbram_num ldr w0, [x0] cmp w0, 0 blt .L756 adrp x0, nes2chrbram_num add x0, x0, :lo12:nes2chrbram_num ldr w0, [x0] cmp w0, 16 ble .L757 .L756: adrp x0, errmsg add x0, x0, :lo12:errmsg adrp x1, OutOfRange add x1, x1, :lo12:OutOfRange str x1, [x0] .L757: adrp x0, ines_include add x0, x0, :lo12:ines_include ldr w0, [x0] add w1, w0, 1 adrp x0, ines_include add x0, x0, :lo12:ines_include str w1, [x0] adrp x0, use_nes2 add x0, x0, :lo12:use_nes2 mov w1, 1 str w1, [x0] nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE93: .size nes2chrbram, .-nes2chrbram .local oldpass.3 .comm oldpass.3,4,4 .local nest.2 .comm nest.2,4,4 .local oldpass.1 .comm oldpass.1,4,4 .local oldpass.0 .comm oldpass.0,4,4 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global byte_copy .type byte_copy, %function byte_copy: .LFB0: .cfi_startproc sub sp, sp, #64 .cfi_def_cfa_offset 64 str x0, [sp, 24] str w1, [sp, 20] str x2, [sp, 8] ldr x0, [sp, 24] str x0, [sp, 48] ldr x0, [sp, 8] str x0, [sp, 56] str wzr, [sp, 44] b .L2 .L3: ldr w0, [sp, 44] ldr x1, [sp, 56] add x1, x1, x0 ldr w0, [sp, 44] ldr x2, [sp, 48] add x0, x2, x0 ldrb w1, [x1] strb w1, [x0] ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L2: ldr w1, [sp, 44] ldr w0, [sp, 20] cmp w1, w0 bcc .L3 nop nop add sp, sp, 64 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size byte_copy, .-byte_copy ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global remque .type remque, %function remque: .LFB6: .cfi_startproc sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, 8] ldr x0, [sp, 8] str x0, [sp, 24] ldr x0, [sp, 24] ldr x0, [x0] cmp x0, 0 beq .L2 ldr x0, [sp, 24] ldr x0, [x0] ldr x1, [sp, 24] ldr x1, [x1, 8] str x1, [x0, 8] .L2: ldr x0, [sp, 24] ldr x0, [x0, 8] cmp x0, 0 beq .L4 ldr x0, [sp, 24] ldr x0, [x0, 8] ldr x1, [sp, 24] ldr x1, [x1] str x1, [x0] .L4: nop add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size remque, .-remque ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global sum_mutex .bss .align 3 .type sum_mutex, %object .size sum_mutex, 48 sum_mutex: .zero 48 .global sum .align 3 .type sum, %object .size sum, 8 sum: .zero 8 .text .align 2 .global func .type func, %function func: .LFB0: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str wzr, [sp, 44] b .L2 .L3: adrp x0, sum_mutex add x0, x0, :lo12:sum_mutex bl pthread_mutex_lock adrp x0, sum add x0, x0, :lo12:sum ldr x0, [x0] add x1, x0, 1 adrp x0, sum add x0, x0, :lo12:sum str x1, [x0] adrp x0, sum_mutex add x0, x0, :lo12:sum_mutex bl pthread_mutex_unlock ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L2: ldr w1, [sp, 44] mov w0, 9999 cmp w1, w0 ble .L3 nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size func, .-func .section .rodata .align 3 .LC0: .string "%Ld" .text .align 2 .global main .type main, %function main: .LFB1: .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 str wzr, [sp, 16] b .L5 .L6: add x1, sp, 24 ldrsw x0, [sp, 16] lsl x0, x0, 3 add x4, x1, x0 mov x3, 0 adrp x0, func add x2, x0, :lo12:func mov x1, 0 mov x0, x4 bl pthread_create ldr w0, [sp, 16] add w0, w0, 1 str w0, [sp, 16] .L5: ldr w0, [sp, 16] cmp w0, 9 ble .L6 str wzr, [sp, 20] b .L7 .L8: ldrsw x0, [sp, 20] lsl x0, x0, 3 add x1, sp, 24 ldr x0, [x1, x0] mov x1, 0 bl pthread_join ldr w0, [sp, 20] add w0, w0, 1 str w0, [sp, 20] .L7: ldr w0, [sp, 20] cmp w0, 9 ble .L8 adrp x0, sum_mutex add x0, x0, :lo12:sum_mutex bl pthread_mutex_destroy adrp x0, sum add x0, x0, :lo12:sum ldr x0, [x0] mov x1, x0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 104] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L10 bl __stack_chk_fail .L10: mov w0, w1 ldp x29, x30, [sp], 112 .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 "usage) prefixname_test <prefixname>\n" .align 3 .LC1: .string "prefix_name = %s (leng=%d)\n" .align 3 .LC2: .string "valid" .align 3 .LC3: .string "invalid" .align 3 .LC4: .string "prefix_name = %s: %s\n" .text .align 2 .global main .type main, %function main: .LFB6: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str w0, [sp, 28] str x1, [sp, 16] mov w0, 1 str w0, [sp, 48] ldr w0, [sp, 28] cmp w0, 2 beq .L2 adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x0, [x0] mov x3, x0 mov x2, 36 mov x1, 1 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl fwrite mov w0, -1 bl exit .L2: ldr x0, [sp, 16] ldr x0, [x0, 8] str x0, [sp, 56] ldr x0, [sp, 56] bl strlen str w0, [sp, 52] adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x4, [x0] ldr w3, [sp, 52] ldr x2, [sp, 56] adrp x0, .LC1 add x1, x0, :lo12:.LC1 mov x0, x4 bl fprintf str wzr, [sp, 44] b .L3 .L6: ldrsw x0, [sp, 44] ldr x1, [sp, 56] add x0, x1, x0 ldrb w0, [x0] bl isalnum cmp w0, 0 bne .L4 str wzr, [sp, 48] b .L5 .L4: ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L3: ldr w1, [sp, 44] ldr w0, [sp, 52] cmp w1, w0 blt .L6 .L5: adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x4, [x0] ldr w0, [sp, 48] cmp w0, 0 beq .L7 adrp x0, .LC2 add x0, x0, :lo12:.LC2 b .L8 .L7: adrp x0, .LC3 add x0, x0, :lo12:.LC3 .L8: mov x3, x0 ldr x2, [sp, 56] adrp x0, .LC4 add x1, x0, :lo12:.LC4 mov x0, x4 bl fprintf mov w0, 0 ldp x29, x30, [sp], 64 .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 %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 str wzr, [sp, 40] str wzr, [sp, 36] ldr w0, [sp, 36] str w0, [sp, 32] ldr w0, [sp, 32] str w0, [sp, 28] b .L2 .L6: ldr w0, [sp, 36] add w0, w0, 1 str w0, [sp, 36] ldr w0, [sp, 44] cmp w0, 10 bne .L3 ldr w0, [sp, 28] add w0, w0, 1 str w0, [sp, 28] .L3: ldr w0, [sp, 44] cmp w0, 32 beq .L4 ldr w0, [sp, 44] cmp w0, 10 beq .L4 ldr w0, [sp, 44] cmp w0, 9 bne .L5 .L4: str wzr, [sp, 40] b .L2 .L5: ldr w0, [sp, 40] cmp w0, 0 bne .L2 ldr w0, [sp, 32] add w0, w0, 1 str w0, [sp, 32] mov w0, 1 str w0, [sp, 40] .L2: bl getchar str w0, [sp, 44] ldr w0, [sp, 44] cmn w0, #1 bne .L6 ldr w3, [sp, 36] ldr w2, [sp, 32] ldr w1, [sp, 28] adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf mov w0, 0 ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "\n .byte" .align 3 .LC1: .string "%c$%02x" .text .align 2 .global output_16_sin .type output_16_sin, %function output_16_sin: .LFB6: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str w1, [sp, 20] ldr x3, [sp, 24] mov x2, 10 mov x1, 1 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl fwrite mov w0, 32 strb w0, [sp, 39] str wzr, [sp, 40] b .L2 .L3: ldr s0, [sp, 20] scvtf s0, s0 fadd s0, s0, s0 fcvt d0, s0 adrp x0, .LC2 ldr d1, [x0, #:lo12:.LC2] fmul d0, d0, d1 mov x0, 4643211215818981376 fmov d1, x0 fdiv d0, d0, d1 bl sin mov x0, 211106232532992 movk x0, 0x405f, lsl 48 fmov d1, x0 fmul d0, d0, d1 fcvt s0, d0 str s0, [sp, 44] ldrb w0, [sp, 39] ldr s0, [sp, 44] fcvtzu s0, s0 umov w1, v0.b[0] and w1, w1, 255 mov w3, w1 mov w2, w0 adrp x0, .LC1 add x1, x0, :lo12:.LC1 ldr x0, [sp, 24] bl fprintf mov w0, 44 strb w0, [sp, 39] ldr w0, [sp, 40] add w0, w0, 1 str w0, [sp, 40] ldr w0, [sp, 20] add w0, w0, 1 str w0, [sp, 20] .L2: ldr w0, [sp, 40] cmp w0, 15 ble .L3 nop nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size output_16_sin, .-output_16_sin .section .rodata .align 3 .LC3: .string "wb" .align 3 .LC4: .string "sin.inc" .align 3 .LC5: .string "sin:" .align 3 .LC6: .string "\ncos:" .text .align 2 .global main .type main, %function main: .LFB7: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp adrp x0, .LC3 add x1, x0, :lo12:.LC3 adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl fopen str x0, [sp, 24] ldr x3, [sp, 24] mov x2, 4 mov x1, 1 adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl fwrite str wzr, [sp, 20] b .L5 .L6: ldr w1, [sp, 20] ldr x0, [sp, 24] bl output_16_sin ldr w0, [sp, 20] add w0, w0, 16 str w0, [sp, 20] .L5: ldr w0, [sp, 20] cmp w0, 63 ble .L6 ldr x3, [sp, 24] mov x2, 5 mov x1, 1 adrp x0, .LC6 add x0, x0, :lo12:.LC6 bl fwrite b .L7 .L8: ldr w1, [sp, 20] ldr x0, [sp, 24] bl output_16_sin ldr w0, [sp, 20] add w0, w0, 16 str w0, [sp, 20] .L7: ldr w0, [sp, 20] cmp w0, 319 ble .L8 ldr x0, [sp, 24] bl fclose mov w0, 0 ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size main, .-main .section .rodata .align 3 .LC2: .word 1413754136 .word 1074340347 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global p .bss .align 3 .type p, %object .size p, 8 p: .zero 8 .global p2 .align 3 .type p2, %object .size p2, 8 p2: .zero 8 .global q .align 3 .type q, %object .size q, 8 q: .zero 8 .text .align 2 .global f .type f, %function f: .LFB0: .cfi_startproc adrp x0, p add x0, x0, :lo12:p ldr x0, [x0] ret .cfi_endproc .LFE0: .size f, .-f .align 2 .global g .type g, %function g: .LFB1: .cfi_startproc adrp x0, p add x0, x0, :lo12:p ldr x0, [x0] ret .cfi_endproc .LFE1: .size g, .-g ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global RandomFunc .type RandomFunc, %function RandomFunc: .LFB0: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x0, [sp, 24] 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, 33432 movk w0, 0xe8bb, lsl 16 add w0, w1, w0 str w0, [sp, 48] str wzr, [sp, 44] nop ldr w1, [sp, 48] mov w0, 60200 movk w0, 0x2b2f, lsl 16 eor w1, w1, w0 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 .L2 bl __stack_chk_fail .L2: ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .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: .LFB1: .cfi_startproc stp x29, x30, [sp, -80]! .cfi_def_cfa_offset 80 .cfi_offset 29, -80 .cfi_offset 30, -72 mov x29, sp str w0, [sp, 28] str x1, [sp, 16] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 72] mov x1, 0 bl megaInit ldr w0, [sp, 28] cmp w0, 2 beq .L4 mov w1, 1 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf mov w0, -1 bl exit .L4: str wzr, [sp, 44] b .L5 .L6: 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] .L5: ldr w0, [sp, 44] cmp w0, 0 ble .L6 add x1, sp, 64 add x0, sp, 56 bl RandomFunc ldr w1, [sp, 64] mov w0, 23033 movk w0, 0xc394, lsl 16 cmp w1, w0 bne .L7 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl puts .L7: str wzr, [sp, 48] b .L8 .L9: 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] .L8: ldr w0, [sp, 48] cmp w0, 0 ble .L9 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 .LFE1: .size main, .-main .align 2 .global megaInit .type megaInit, %function megaInit: .LFB2: .cfi_startproc nop ret .cfi_endproc .LFE2: .size megaInit, .-megaInit ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global u_write_ocall .type u_write_ocall, %function u_write_ocall: .LFB0: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str w0, [sp, 44] str x1, [sp, 32] str x2, [sp, 24] ldr x2, [sp, 24] ldr x1, [sp, 32] ldr w0, [sp, 44] bl write str x0, [sp, 56] ldr x0, [sp, 56] ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size u_write_ocall, .-u_write_ocall ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "The value of a and b is %d" .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp mov w0, 4 str w0, [sp, 24] mov w0, 1 str w0, [sp, 28] ldr w1, [sp, 28] ldr w0, [sp, 24] bl sum mov w1, w0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf mov w0, 0 ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size main, .-main .align 2 .global sum .type sum, %function sum: .LFB1: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, 12] str w1, [sp, 8] ldr w1, [sp, 12] ldr w0, [sp, 8] add w0, w1, w0 add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size sum, .-sum ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "P2\n%d %d\n255\n" .align 3 .LC1: .string "%d " .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc sub x12, sp, #327680 .cfi_def_cfa 12, 327680 .LPSRL0: sub sp, sp, 65536 str xzr, [sp, 1024] cmp sp, x12 b.ne .LPSRL0 .cfi_def_cfa_register 31 mov x12, 56400 sub sp, sp, x12 .cfi_def_cfa_offset 384080 stp x29, x30, [sp] .cfi_offset 29, -384080 .cfi_offset 30, -384072 mov x29, sp str x19, [sp, 16] .cfi_offset 19, -384064 str w0, [sp, 44] str x1, [sp, 32] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] add x1, sp, 376832 ldr x2, [x0] str x2, [x1, 7240] mov x2, 0 str wzr, [sp, 60] b .L2 .L3: ldrsw x0, [sp, 60] add x1, sp, 72 strb wzr, [x1, x0] ldr w0, [sp, 60] add w0, w0, 1 str w0, [sp, 60] .L2: ldr w1, [sp, 60] mov w0, 56319 movk w0, 0x5, lsl 16 cmp w1, w0 bls .L3 str wzr, [sp, 64] b .L4 .L5: bl rand and w0, w0, 255 and w0, w0, 127 and w19, w0, 255 bl rand sxtw x1, w0 mov x0, 10661 movk x0, 0x6715, lsl 16 movk x0, 0x3e1f, lsl 32 movk x0, 0xaec3, lsl 48 umulh x0, x1, x0 lsr x0, x0, 18 mov x2, 56320 movk x2, 0x5, lsl 16 mul x0, x0, x2 sub x0, x1, x0 sub w1, w19, #128 and w2, w1, 255 add x1, sp, 72 strb w2, [x1, x0] ldr w0, [sp, 64] add w0, w0, 1 str w0, [sp, 64] .L4: ldr w0, [sp, 64] cmp w0, 299 ble .L5 mov w2, 480 mov w1, 800 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf str wzr, [sp, 68] b .L6 .L7: ldrsw x0, [sp, 68] add x1, sp, 72 ldrb w0, [x1, x0] mov w1, w0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf ldr w0, [sp, 68] add w0, w0, 1 str w0, [sp, 68] .L6: ldr w1, [sp, 68] mov w0, 56319 movk w0, 0x5, lsl 16 cmp w1, w0 bls .L7 mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] add x3, sp, 376832 ldr x4, [x3, 7240] ldr x2, [x0] subs x4, x4, x2 mov x2, 0 beq .L9 bl __stack_chk_fail .L9: mov w0, w1 ldr x19, [sp, 16] ldp x29, x30, [sp] .cfi_restore 29 .cfi_restore 30 .cfi_restore 19 add sp, sp, 3152 .cfi_def_cfa_offset 380928 add sp, sp, 380928 .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 "#2e2a31" .align 3 .LC1: .string "#d8137f" .align 3 .LC2: .string "#17ad98" .align 3 .LC3: .string "#dc8a0e" .align 3 .LC4: .string "#796af5" .align 3 .LC5: .string "#bb60ea" .align 3 .LC6: .string "#149bda" .align 3 .LC7: .string "#bcbabe" .align 3 .LC8: .string "#838085" .align 3 .LC9: .string "#f5f4f7" .align 3 .LC10: .string "#d65407" .align 3 .LC11: .string "#c720ca" .align 3 .LC12: .string "#4a464d" .align 3 .LC13: .string "#666369" .align 3 .LC14: .string "#9f9da2" .align 3 .LC15: .string "#d8d7da" .section .data.rel.local,"aw" .align 3 .type colorname, %object .size colorname, 2064 colorname: .xword .LC0 .xword .LC1 .xword .LC2 .xword .LC3 .xword .LC4 .xword .LC5 .xword .LC6 .xword .LC7 .xword .LC8 .xword .LC1 .xword .LC2 .xword .LC3 .xword .LC4 .xword .LC5 .xword .LC6 .xword .LC9 .xword .LC10 .xword .LC11 .xword .LC12 .xword .LC13 .xword .LC14 .xword .LC15 .zero 1864 .xword 0 .xword .LC7 .xword .LC0 .global defaultfg .data .align 2 .type defaultfg, %object .size defaultfg, 4 defaultfg: .word 256 .global defaultbg .align 2 .type defaultbg, %object .size defaultbg, 4 defaultbg: .word 257 .align 2 .type defaultcs, %object .size defaultcs, 4 defaultcs: .word 256 .align 2 .type defaultrcs, %object .size defaultrcs, 4 defaultrcs: .word 257 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global IID_INapSoHConstructor .section .rodata .align 3 .type IID_INapSoHConstructor, %object .size IID_INapSoHConstructor, 24 IID_INapSoHConstructor: .xword 891913028 .hword -26970 .hword 17895 .ascii "\233kb\354\306\340\231 " .zero 4 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "%c" .align 3 .LC1: .string "%c %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 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 24] mov x1, 0 add x0, sp, 23 mov x1, x0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl __isoc99_scanf ldrb w0, [sp, 23] mov w1, w0 ldrb w0, [sp, 23] mov w2, w0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf ldrb w0, [sp, 23] sub w0, w0, #32 ldrb w1, [sp, 23] sub w1, w1, #32 mov w2, w1 mov w1, w0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 24] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L3 bl __stack_chk_fail .L3: mov w0, w1 ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global binsearch .type binsearch, %function binsearch: .LFB0: .cfi_startproc sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, 12] str x1, [sp] str w2, [sp, 8] str wzr, [sp, 20] ldr w0, [sp, 8] sub w0, w0, #1 str w0, [sp, 24] b .L2 .L6: ldr w1, [sp, 20] ldr w0, [sp, 24] add w0, w1, w0 lsr w1, w0, 31 add w0, w1, w0 asr w0, w0, 1 str w0, [sp, 28] ldrsw x0, [sp, 28] lsl x0, x0, 2 ldr x1, [sp] add x0, x1, x0 ldr w0, [x0] ldr w1, [sp, 12] cmp w1, w0 bge .L3 ldr w0, [sp, 28] sub w0, w0, #1 str w0, [sp, 24] b .L2 .L3: ldrsw x0, [sp, 28] lsl x0, x0, 2 ldr x1, [sp] add x0, x1, x0 ldr w0, [x0] ldr w1, [sp, 12] cmp w1, w0 ble .L4 ldr w0, [sp, 28] add w0, w0, 1 str w0, [sp, 20] b .L2 .L4: ldr w0, [sp, 28] b .L5 .L2: ldr w1, [sp, 20] ldr w0, [sp, 24] cmp w1, w0 ble .L6 mov w0, -1 .L5: add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size binsearch, .-binsearch .align 2 .global binsearch_fast .type binsearch_fast, %function binsearch_fast: .LFB1: .cfi_startproc sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, 12] str x1, [sp] str w2, [sp, 8] str wzr, [sp, 20] ldr w0, [sp, 8] sub w0, w0, #1 str w0, [sp, 24] b .L8 .L10: ldr w1, [sp, 20] ldr w0, [sp, 24] add w0, w1, w0 add w0, w0, 1 lsr w1, w0, 31 add w0, w1, w0 asr w0, w0, 1 str w0, [sp, 28] ldrsw x0, [sp, 28] lsl x0, x0, 2 ldr x1, [sp] add x0, x1, x0 ldr w0, [x0] ldr w1, [sp, 12] cmp w1, w0 bge .L9 ldr w0, [sp, 28] sub w0, w0, #1 str w0, [sp, 24] b .L8 .L9: ldr w0, [sp, 28] str w0, [sp, 20] .L8: ldr w1, [sp, 20] ldr w0, [sp, 24] cmp w1, w0 blt .L10 ldrsw x0, [sp, 20] lsl x0, x0, 2 ldr x1, [sp] add x0, x1, x0 ldr w0, [x0] ldr w1, [sp, 12] cmp w1, w0 bne .L11 ldr w0, [sp, 20] b .L12 .L11: mov w0, -1 .L12: add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size binsearch_fast, .-binsearch_fast .section .rodata .align 3 .LC0: .string "\n%f sec\tfor binsearch" .align 3 .LC1: .string "\n%f sec\tfor binsearch_fast" .align 3 .LC2: .string "\n" .text .align 2 .global main .type main, %function main: .LFB2: .cfi_startproc stp x29, x30, [sp, -128]! .cfi_def_cfa_offset 128 .cfi_offset 29, -128 .cfi_offset 30, -120 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 120] mov x1, 0 str wzr, [sp, 28] b .L14 .L15: ldrsw x0, [sp, 28] lsl x0, x0, 2 add x1, sp, 80 ldr w2, [sp, 28] str w2, [x1, x0] ldr w0, [sp, 28] add w0, w0, 1 str w0, [sp, 28] .L14: ldr w0, [sp, 28] cmp w0, 9 ble .L15 mov w0, 4 str w0, [sp, 92] mov w0, 1000 str w0, [sp, 40] bl clock str x0, [sp, 48] str wzr, [sp, 32] b .L16 .L17: add x0, sp, 80 mov w2, 10 mov x1, x0 mov w0, 3 bl binsearch str w0, [sp, 44] ldr w0, [sp, 32] add w0, w0, 1 str w0, [sp, 32] .L16: ldr w1, [sp, 32] ldr w0, [sp, 40] cmp w1, w0 blt .L17 bl clock str x0, [sp, 56] ldr x1, [sp, 56] ldr x0, [sp, 48] sub x0, x1, x0 fmov d0, x0 scvtf d0, d0 mov x0, 145685290680320 movk x0, 0x412e, lsl 48 fmov d1, x0 fdiv d0, d0, d1 str d0, [sp, 64] ldr d0, [sp, 64] adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf bl clock str x0, [sp, 48] str wzr, [sp, 36] b .L18 .L19: add x0, sp, 80 mov w2, 10 mov x1, x0 mov w0, 3 bl binsearch_fast str w0, [sp, 44] ldr w0, [sp, 36] add w0, w0, 1 str w0, [sp, 36] .L18: ldr w1, [sp, 36] ldr w0, [sp, 40] cmp w1, w0 blt .L19 bl clock str x0, [sp, 56] ldr x1, [sp, 56] ldr x0, [sp, 48] sub x0, x1, x0 fmov d0, x0 scvtf d0, d0 mov x0, 145685290680320 movk x0, 0x412e, lsl 48 fmov d1, x0 fdiv d0, d0, d1 str d0, [sp, 72] ldr d0, [sp, 72] adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf adrp x0, .LC2 add x0, x0, :lo12:.LC2 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, 120] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L21 bl __stack_chk_fail .L21: mov w0, w1 ldp x29, x30, [sp], 128 .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 sincos .type sincos, %function sincos: .LFB0: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str d0, [sp, 40] str x0, [sp, 32] str x1, [sp, 24] ldr d0, [sp, 40] bl sin ldr x0, [sp, 32] str d0, [x0] ldr d0, [sp, 40] bl cos ldr x0, [sp, 24] str d0, [x0] nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size sincos, .-sincos ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "The residue of division with 2 is: %d\n" .align 3 .LC1: .string "The residue of division with 3 is: %d\n" .align 3 .LC2: .string "The residue of division with 5 is: %d\n" .align 3 .LC3: .string "The residue of division with 8 is: %d\n" .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp mov w0, 19 str w0, [sp, 28] ldr w0, [sp, 28] cmp w0, 0 and w0, w0, 1 csneg w0, w0, w0, ge mov w1, w0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf ldr w2, [sp, 28] 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, .LC1 add x0, x0, :lo12:.LC1 bl printf ldr w2, [sp, 28] mov w0, 26215 movk w0, 0x6666, lsl 16 smull x0, w2, w0 lsr x0, x0, 32 asr w1, w0, 1 asr w0, w2, 31 sub w1, w1, w0 mov w0, w1 lsl w0, w0, 2 add w0, w0, w1 sub w1, w2, w0 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf ldr w0, [sp, 28] negs w1, w0 and w0, w0, 7 and w1, w1, 7 csneg w0, w0, w1, mi mov w1, w0 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl printf mov w0, 0 ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global baz_1 .type baz_1, %function baz_1: .LFB0: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str w0, [sp, 28] str w1, [sp, 24] str w2, [sp, 20] ldr w0, [sp, 28] cmp w0, 0 beq .L2 ldr w0, [sp, 24] cmp w0, 0 beq .L2 bl foo .L2: ldr w0, [sp, 24] cmp w0, 0 bne .L4 ldr w0, [sp, 20] cmp w0, 0 beq .L4 bl bar .L4: nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size baz_1, .-baz_1 .align 2 .global baz_2 .type baz_2, %function baz_2: .LFB1: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str w0, [sp, 28] str w1, [sp, 24] str w2, [sp, 20] ldr w0, [sp, 28] cmp w0, 0 beq .L6 ldr w0, [sp, 24] cmp w0, 0 beq .L6 bl foo .L6: ldr w0, [sp, 24] cmp w0, 0 bne .L7 ldr w0, [sp, 20] cmp w0, 0 beq .L9 .L7: bl bar .L9: nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size baz_2, .-baz_2 .align 2 .global baz_3 .type baz_3, %function baz_3: .LFB2: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str w0, [sp, 28] str w1, [sp, 24] str w2, [sp, 20] ldr w0, [sp, 28] cmp w0, 0 beq .L11 ldr w0, [sp, 24] cmp w0, 10 ble .L11 bl foo .L11: ldr w0, [sp, 24] cmp w0, 4 bgt .L13 ldr w0, [sp, 20] cmp w0, 0 beq .L13 bl bar .L13: nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE2: .size baz_3, .-baz_3 .align 2 .global baz_4 .type baz_4, %function baz_4: .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 w0, [sp, 28] str w1, [sp, 24] str w2, [sp, 20] ldr w0, [sp, 28] cmp w0, 0 beq .L15 ldr w0, [sp, 24] cmp w0, 0 beq .L15 bl foo ldr w0, [sp, 20] cmp w0, 0 beq .L15 bl bar .L15: ldr w0, [sp, 24] cmp w0, 0 beq .L17 ldr w0, [sp, 20] cmp w0, 0 beq .L17 bl blah .L17: nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE3: .size baz_4, .-baz_4 .align 2 .global baz_5 .type baz_5, %function baz_5: .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 w1, [sp, 24] str w2, [sp, 20] ldr w0, [sp, 28] cmp w0, 0 beq .L19 ldr w0, [sp, 24] cmp w0, 0 beq .L19 bl foo ldr w0, [sp, 20] cmp w0, 0 beq .L19 bl bar .L19: ldr w0, [sp, 24] cmp w0, 0 beq .L20 ldr w0, [sp, 20] cmp w0, 0 bne .L22 .L20: bl blah .L22: nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE4: .size baz_5, .-baz_5 .align 2 .global baz_6 .type baz_6, %function baz_6: .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 w0, [sp, 28] str w1, [sp, 24] str w2, [sp, 20] ldr w0, [sp, 28] cmp w0, 39 bne .L24 ldr w0, [sp, 24] cmp w0, 41 bne .L24 bl foo .L24: ldr w0, [sp, 20] cmp w0, 12 beq .L25 ldr w0, [sp, 24] cmp w0, 41 bne .L27 .L25: bl bar .L27: nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE5: .size baz_6, .-baz_6 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global test_vld3Q_lanes32 .type test_vld3Q_lanes32, %function test_vld3Q_lanes32: .LFB4340: .cfi_startproc stp x29, x30, [sp, -240]! .cfi_def_cfa_offset 240 .cfi_offset 29, -240 .cfi_offset 30, -232 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 232] mov x1, 0 str xzr, [sp, 24] add x0, sp, 128 add x1, sp, 80 ld1 {v1.16b - v3.16b}, [x1] st1 {v1.16b - v3.16b}, [x0] add x0, sp, 128 ldr q0, [x0] add x0, sp, 32 add x1, sp, 32 ld1 {v1.16b - v3.16b}, [x1] mov v1.16b, v0.16b st1 {v1.16b - v3.16b}, [x0] add x0, sp, 128 ldr q0, [x0, 16] add x0, sp, 32 add x1, sp, 32 ld1 {v1.16b - v3.16b}, [x1] mov v2.16b, v0.16b st1 {v1.16b - v3.16b}, [x0] add x0, sp, 128 ldr q0, [x0, 32] add x0, sp, 32 add x1, sp, 32 ld1 {v1.16b - v3.16b}, [x1] mov v3.16b, v0.16b st1 {v1.16b - v3.16b}, [x0] add x0, sp, 32 ldr x1, [sp, 24] add x2, sp, 32 ld1 {v1.16b - v3.16b}, [x2] ld3 {v1.s - v3.s}[1], [x1] st1 {v1.16b - v3.16b}, [x0] add x0, sp, 32 ld1 {v1.16b - v3.16b}, [x0] mov v0.16b, v1.16b add x0, sp, 176 str q0, [x0] add x0, sp, 32 ld1 {v1.16b - v3.16b}, [x0] mov v0.16b, v2.16b add x0, sp, 176 str q0, [x0, 16] add x0, sp, 32 ld1 {v1.16b - v3.16b}, [x0] mov v0.16b, v3.16b add x0, sp, 176 str q0, [x0, 32] add x0, sp, 176 ld1 {v1.16b - v3.16b}, [x0] add x0, sp, 176 st1 {v1.16b - v3.16b}, [x0] nop adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x2, [sp, 232] ldr x1, [x0] subs x2, x2, x1 mov x1, 0 beq .L3 bl __stack_chk_fail .L3: ldp x29, x30, [sp], 240 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE4340: .size test_vld3Q_lanes32, .-test_vld3Q_lanes32 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc stp x29, x30, [sp, -80]! .cfi_def_cfa_offset 80 .cfi_offset 29, -80 .cfi_offset 30, -72 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 72] mov x1, 0 mov x0, 25928 movk x0, 0x6c6c, lsl 16 movk x0, 0x6f, lsl 32 mov x1, 0 stp x0, x1, [sp, 24] str wzr, [sp, 40] mov x0, 28503 movk x0, 0x6c72, lsl 16 movk x0, 0x64, lsl 32 mov x1, 0 stp x0, x1, [sp, 48] str wzr, [sp, 64] add x1, sp, 48 add x0, sp, 24 bl strcat mov x1, x0 add x0, sp, 48 bl strcpy 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 .align 2 .global fonksiyon .type fonksiyon, %function fonksiyon: .LFB0: .cfi_startproc sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, 8] str x1, [sp] str wzr, [sp, 28] b .L2 .L5: ldrsw x0, [sp, 28] ldr x1, [sp, 8] add x0, x1, x0 ldrb w0, [x0] cmp w0, 96 bls .L3 ldrsw x0, [sp, 28] ldr x1, [sp, 8] add x0, x1, x0 ldrb w0, [x0] cmp w0, 122 bhi .L3 ldrsw x0, [sp, 28] ldr x1, [sp, 8] add x0, x1, x0 ldrb w0, [x0] and x0, x0, 255 lsl x0, x0, 2 sub x0, x0, #388 ldr x1, [sp] add x0, x1, x0 ldr w1, [x0] add w1, w1, 1 str w1, [x0] b .L4 .L3: ldrsw x0, [sp, 28] ldr x1, [sp, 8] add x0, x1, x0 ldrb w0, [x0] cmp w0, 64 bls .L4 ldrsw x0, [sp, 28] ldr x1, [sp, 8] add x0, x1, x0 ldrb w0, [x0] cmp w0, 90 bhi .L4 ldrsw x0, [sp, 28] ldr x1, [sp, 8] add x0, x1, x0 ldrb w0, [x0] and x0, x0, 255 lsl x0, x0, 2 sub x0, x0, #260 ldr x1, [sp] add x0, x1, x0 ldr w1, [x0] add w1, w1, 1 str w1, [x0] .L4: ldr w0, [sp, 28] add w0, w0, 1 str w0, [sp, 28] .L2: ldrsw x0, [sp, 28] ldr x1, [sp, 8] add x0, x1, x0 ldrb w0, [x0] cmp w0, 0 bne .L5 nop nop add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size fonksiyon, .-fonksiyon .section .rodata .align 3 .LC0: .string "Turkish" .align 3 .LC1: .string "Metin Giriniz: " .align 3 .LC2: .string "%d tane %c harfi vardir.\n" .text .align 2 .global main .type main, %function main: .LFB1: .cfi_startproc sub sp, sp, #896 .cfi_def_cfa_offset 896 stp x29, x30, [sp] .cfi_offset 29, -896 .cfi_offset 30, -888 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 888] mov x1, 0 adrp x0, .LC0 add x1, x0, :lo12:.LC0 mov w0, 6 bl setlocale add x0, sp, 32 mov x1, 600 mov x2, x1 mov w1, 0 bl memset adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf add x0, sp, 632 bl gets add x1, sp, 32 add x0, sp, 632 bl fonksiyon str wzr, [sp, 28] b .L7 .L9: ldrsw x0, [sp, 28] lsl x0, x0, 2 add x1, sp, 32 ldr w0, [x1, x0] cmp w0, 0 beq .L8 ldrsw x0, [sp, 28] lsl x0, x0, 2 add x1, sp, 32 ldr w1, [x1, x0] ldr w0, [sp, 28] add w0, w0, 65 mov w2, w0 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf .L8: ldr w0, [sp, 28] add w0, w0, 1 str w0, [sp, 28] .L7: ldr w0, [sp, 28] cmp w0, 149 ble .L9 bl getch mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 888] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L11 bl __stack_chk_fail .L11: mov w0, w1 ldp x29, x30, [sp] add sp, sp, 896 .cfi_restore 29 .cfi_restore 30 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global N .data .align 2 .type N, %object .size N, 4 N: .word 234 .text .align 2 .global count_number_1_in_byte .type count_number_1_in_byte, %function count_number_1_in_byte: .LFB6: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, 12] ldr w0, [sp, 12] lsr w1, w0, 1 mov w0, 46811 movk w0, 0xdb6d, lsl 16 and w0, w1, w0 ldr w1, [sp, 12] sub w1, w1, w0 ldr w0, [sp, 12] lsr w2, w0, 2 mov w0, 37449 movk w0, 0x4924, lsl 16 and w0, w2, w0 sub w0, w1, w0 str w0, [sp, 12] ldr w0, [sp, 12] lsr w1, w0, 3 ldr w0, [sp, 12] add w1, w1, w0 mov w0, 29127 movk w0, 0xc71c, lsl 16 and w0, w1, w0 str w0, [sp, 12] ldr w1, [sp, 12] mov w0, 16645 movk w0, 0x410, lsl 16 umull x0, w1, w0 lsr x0, x0, 32 sub w2, w1, w0 lsr w2, w2, 1 add w0, w2, w0 lsr w2, w0, 5 mov w0, w2 lsl w0, w0, 6 sub w0, w0, w2 sub w2, w1, w0 mov w0, w2 add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size count_number_1_in_byte, .-count_number_1_in_byte .section .rodata .align 3 .LC0: .string "sum of number 1 in %d is %d.\n" .text .align 2 .global main .type main, %function main: .LFB7: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str wzr, [sp, 28] adrp x0, N add x0, x0, :lo12:N ldr w0, [x0] bl count_number_1_in_byte str w0, [sp, 28] adrp x0, N add x0, x0, :lo12:N ldr w0, [x0] ldr w2, [sp, 28] mov w1, w0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf mov w0, 0 ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global firdecim_rrrf_data_M2h4x20_h .data .align 3 .type firdecim_rrrf_data_M2h4x20_h, %object .size firdecim_rrrf_data_M2h4x20_h, 16 firdecim_rrrf_data_M2h4x20_h: .word 1032910417 .word -1108739689 .word 1007065378 .word -1108407771 .global firdecim_rrrf_data_M2h4x20_x .align 3 .type firdecim_rrrf_data_M2h4x20_x, %object .size firdecim_rrrf_data_M2h4x20_x, 80 firdecim_rrrf_data_M2h4x20_x: .word 1036605299 .word -1118662972 .word -1110940730 .word 1032905350 .word -1111649023 .word 1040237277 .word -1132294812 .word 1035817276 .word -1142495541 .word -1136988773 .word 1032241203 .word 1039734281 .word 984173356 .word -1110215352 .word -1115057456 .word -1114777276 .word 1025251022 .word -1111801610 .word 1036072252 .word 1000527906 .global firdecim_rrrf_data_M2h4x20_y .align 3 .type firdecim_rrrf_data_M2h4x20_y, %object .size firdecim_rrrf_data_M2h4x20_y, 40 firdecim_rrrf_data_M2h4x20_y: .word 1004799445 .word -1182754468 .word -1139104934 .word -1127691268 .word -1126963368 .word -1147133789 .word -1136428060 .word -1142286348 .word 1018503012 .word 1020334218 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global setgroups .type setgroups, %function setgroups: .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] ldr x2, [sp, 16] ldr x1, [sp, 24] mov x0, 159 bl syscall ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size setgroups, .-setgroups ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global mygetline .type mygetline, %function mygetline: .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 .L4: ldr w0, [sp, 44] add w1, w0, 1 str w1, [sp, 44] sxtw x0, w0 ldr x1, [sp, 24] add x0, x1, x0 ldr w1, [sp, 40] and w1, w1, 255 strb w1, [x0] .L2: ldr w0, [sp, 20] sub w0, w0, #1 str w0, [sp, 20] ldr w0, [sp, 20] cmp w0, 0 ble .L3 bl getchar str w0, [sp, 40] ldr w0, [sp, 40] cmn w0, #1 beq .L3 ldr w0, [sp, 40] cmp w0, 10 bne .L4 .L3: ldr w0, [sp, 40] cmp w0, 10 bne .L5 ldr w0, [sp, 44] add w1, w0, 1 str w1, [sp, 44] sxtw x0, w0 ldr x1, [sp, 24] add x0, x1, x0 ldr w1, [sp, 40] and w1, w1, 255 strb w1, [x0] .L5: ldrsw x0, [sp, 44] ldr x1, [sp, 24] add x0, x1, x0 strb wzr, [x0] ldr w0, [sp, 44] ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size mygetline, .-mygetline ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "Command: " .align 3 .LC1: .string "The filtered command is '%s'\n" .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc stp x29, x30, [sp, -160]! .cfi_def_cfa_offset 160 .cfi_offset 29, -160 .cfi_offset 30, -152 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 152] mov x1, 0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf adrp x0, :got:stdin ldr x0, [x0, #:got_lo12:stdin] ldr x1, [x0] add x0, sp, 24 mov x2, x1 mov w1, 64 bl fgets str wzr, [sp, 16] str wzr, [sp, 20] b .L2 .L7: ldrsw x0, [sp, 16] add x1, sp, 24 ldrb w0, [x1, x0] cmp w0, 92 bne .L3 ldr w0, [sp, 20] sub w0, w0, #1 str w0, [sp, 20] b .L4 .L3: ldrsw x0, [sp, 16] add x1, sp, 24 ldrb w0, [x1, x0] cmp w0, 10 bne .L5 ldrsw x0, [sp, 20] add x1, sp, 88 strb wzr, [x1, x0] b .L6 .L5: ldrsw x0, [sp, 16] add x1, sp, 24 ldrb w2, [x1, x0] ldrsw x0, [sp, 20] add x1, sp, 88 strb w2, [x1, x0] .L4: ldr w0, [sp, 16] add w0, w0, 1 str w0, [sp, 16] ldr w0, [sp, 20] add w0, w0, 1 str w0, [sp, 20] .L2: ldr w0, [sp, 16] cmp w0, 63 ble .L7 .L6: add x0, sp, 88 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 152] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L9 bl __stack_chk_fail .L9: mov w0, w1 ldp x29, x30, [sp], 160 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "%d\n" .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc stp x29, x30, [sp, -16]! .cfi_def_cfa_offset 16 .cfi_offset 29, -16 .cfi_offset 30, -8 mov x29, sp mov w1, -1 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf mov w0, 0 ldp x29, x30, [sp], 16 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global readers .data .align 2 .type readers, %object .size readers, 4 readers: .word 1 .global writers .align 2 .type writers, %object .size writers, 4 writers: .word 1 .global rdwr .bss .align 2 .type rdwr, %object .size rdwr, 4 rdwr: .zero 4 .global __aarch64_ldadd4_relax .global __aarch64_ldadd4_acq .text .align 2 .type read_lock, %function read_lock: .LFB8: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x0, [sp, 24] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 56] mov x1, 0 ldr x1, [sp, 24] mov w0, 1 neg w0, w0 bl __aarch64_ldadd4_relax str w0, [sp, 44] b .L2 .L4: ldr x0, [sp, 24] mov x1, x0 mov w0, 1 bl __aarch64_ldadd4_relax nop .L3: ldr x0, [sp, 24] str x0, [sp, 48] ldr x0, [sp, 48] ldr w0, [x0] str w0, [sp, 40] ldr w0, [sp, 40] cmp w0, 0 ble .L3 ldr x1, [sp, 24] mov w0, 1 neg w0, w0 bl __aarch64_ldadd4_acq str w0, [sp, 44] .L2: ldr w0, [sp, 44] cmp w0, 0 ble .L4 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 .LFE8: .size read_lock, .-read_lock .align 2 .type write_lock, %function write_lock: .LFB9: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x0, [sp, 24] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 56] mov x1, 0 ldr x1, [sp, 24] mov w0, 1048576 neg w0, w0 bl __aarch64_ldadd4_acq str w0, [sp, 44] b .L7 .L9: ldr x0, [sp, 24] mov x1, x0 mov w0, 1048576 bl __aarch64_ldadd4_relax nop .L8: ldr x0, [sp, 24] str x0, [sp, 48] ldr x0, [sp, 48] ldr w0, [x0] str w0, [sp, 40] ldr w0, [sp, 40] cmp w0, 1048576 bne .L8 ldr x1, [sp, 24] mov w0, 1048576 neg w0, w0 bl __aarch64_ldadd4_acq str w0, [sp, 44] .L7: ldr w0, [sp, 44] cmp w0, 1048576 bne .L9 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 .L10 bl __stack_chk_fail .L10: ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE9: .size write_lock, .-write_lock .global __aarch64_ldadd4_rel .align 2 .type read_unlock, %function read_unlock: .LFB12: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str x0, [sp, 24] ldr x0, [sp, 24] mov x1, x0 mov w0, 1 bl __aarch64_ldadd4_rel nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE12: .size read_unlock, .-read_unlock .align 2 .type write_unlock, %function write_unlock: .LFB13: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str x0, [sp, 24] ldr x0, [sp, 24] mov x1, x0 mov w0, 1048576 bl __aarch64_ldadd4_rel nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE13: .size write_unlock, .-write_unlock .global mylock .bss .align 3 .type mylock, %object .size mylock, 4 mylock: .zero 4 .global shareddata .align 2 .type shareddata, %object .size shareddata, 4 shareddata: .zero 4 .section .rodata .align 3 .LC0: .string "program.c" .align 3 .LC1: .string "r == shareddata" .text .align 2 .global threadR .type threadR, %function threadR: .LFB14: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] adrp x0, mylock add x0, x0, :lo12:mylock bl read_lock adrp x0, shareddata add x0, x0, :lo12:shareddata ldr w0, [x0] str w0, [sp, 44] adrp x0, shareddata add x0, x0, :lo12:shareddata ldr w0, [x0] ldr w1, [sp, 44] cmp w1, w0 beq .L14 adrp x0, __PRETTY_FUNCTION__.2 add x3, x0, :lo12:__PRETTY_FUNCTION__.2 mov w2, 135 adrp x0, .LC0 add x1, x0, :lo12:.LC0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __assert_fail .L14: adrp x0, mylock add x0, x0, :lo12:mylock bl read_unlock mov x0, 0 ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE14: .size threadR, .-threadR .section .rodata .align 3 .LC2: .string "42 == shareddata" .text .align 2 .global threadW .type threadW, %function threadW: .LFB15: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str x0, [sp, 24] adrp x0, mylock add x0, x0, :lo12:mylock bl write_lock adrp x0, shareddata add x0, x0, :lo12:shareddata mov w1, 42 str w1, [x0] adrp x0, shareddata add x0, x0, :lo12:shareddata ldr w0, [x0] cmp w0, 42 beq .L17 adrp x0, __PRETTY_FUNCTION__.1 add x3, x0, :lo12:__PRETTY_FUNCTION__.1 mov w2, 144 adrp x0, .LC0 add x1, x0, :lo12:.LC0 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl __assert_fail .L17: adrp x0, mylock add x0, x0, :lo12:mylock bl write_unlock mov x0, 0 ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE15: .size threadW, .-threadW .section .rodata .align 3 .LC3: .string "shareddata == i" .text .align 2 .global threadRW .type threadRW, %function threadRW: .LFB16: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str wzr, [sp, 40] b .L20 .L25: ldr w0, [sp, 40] and w0, w0, 1 cmp w0, 0 bne .L21 adrp x0, mylock add x0, x0, :lo12:mylock bl read_lock adrp x0, shareddata add x0, x0, :lo12:shareddata ldr w0, [x0] str w0, [sp, 44] adrp x0, shareddata add x0, x0, :lo12:shareddata ldr w0, [x0] ldr w1, [sp, 44] cmp w1, w0 beq .L22 adrp x0, __PRETTY_FUNCTION__.0 add x3, x0, :lo12:__PRETTY_FUNCTION__.0 mov w2, 155 adrp x0, .LC0 add x1, x0, :lo12:.LC0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __assert_fail .L22: adrp x0, mylock add x0, x0, :lo12:mylock bl read_unlock b .L23 .L21: adrp x0, mylock add x0, x0, :lo12:mylock bl write_lock adrp x0, shareddata add x0, x0, :lo12:shareddata ldr w1, [sp, 40] str w1, [x0] adrp x0, shareddata add x0, x0, :lo12:shareddata ldr w0, [x0] ldr w1, [sp, 40] cmp w1, w0 beq .L24 adrp x0, __PRETTY_FUNCTION__.0 add x3, x0, :lo12:__PRETTY_FUNCTION__.0 mov w2, 160 adrp x0, .LC0 add x1, x0, :lo12:.LC0 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl __assert_fail .L24: adrp x0, mylock add x0, x0, :lo12:mylock bl write_unlock .L23: ldr w0, [sp, 40] add w0, w0, 1 str w0, [sp, 40] .L20: ldr w0, [sp, 40] cmp w0, 1 ble .L25 mov x0, 0 ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE16: .size threadRW, .-threadRW .align 2 .global main .type main, %function main: .LFB17: .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, mylock add x0, x0, :lo12:mylock str x0, [sp, 48] mov w0, 1048576 str w0, [sp, 40] ldr w0, [sp, 40] mov w1, w0 ldr x0, [sp, 48] str w1, [x0] add x4, sp, 24 mov x3, 0 adrp x0, threadW add x2, x0, :lo12:threadW mov x1, 0 mov x0, x4 bl pthread_create add x4, sp, 32 mov x3, 0 adrp x0, threadR add x2, x0, :lo12:threadR mov x1, 0 mov x0, x4 bl pthread_create add x4, sp, 40 mov x3, 0 adrp x0, threadRW add x2, x0, :lo12:threadRW mov x1, 0 mov x0, x4 bl pthread_create 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 .L29 bl __stack_chk_fail .L29: mov w0, w1 ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE17: .size main, .-main .section .rodata .align 3 .type __PRETTY_FUNCTION__.2, %object .size __PRETTY_FUNCTION__.2, 8 __PRETTY_FUNCTION__.2: .string "threadR" .align 3 .type __PRETTY_FUNCTION__.1, %object .size __PRETTY_FUNCTION__.1, 8 __PRETTY_FUNCTION__.1: .string "threadW" .align 3 .type __PRETTY_FUNCTION__.0, %object .size __PRETTY_FUNCTION__.0, 9 __PRETTY_FUNCTION__.0: .string "threadRW" ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global foo .bss .align 2 .type foo, %object .size foo, 4 foo: .zero 4 .text .align 2 .global test .type test, %function test: .LFB0: .cfi_startproc stp x29, x30, [sp, -16]! .cfi_def_cfa_offset 16 .cfi_offset 29, -16 .cfi_offset 30, -8 mov x29, sp mov w0, -1 bl alias adrp x0, bar add x0, x0, :lo12:bar ldp x29, x30, [sp], 16 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size test, .-test .local bar .comm bar,4,4 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global char2hex .type char2hex, %function char2hex: .LFB6: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 strb w0, [sp, 15] ldrb w0, [sp, 15] cmp w0, 70 beq .L2 cmp w0, 70 bgt .L3 cmp w0, 69 beq .L4 cmp w0, 69 bgt .L3 cmp w0, 68 beq .L5 cmp w0, 68 bgt .L3 cmp w0, 67 beq .L6 cmp w0, 67 bgt .L3 cmp w0, 66 beq .L7 cmp w0, 66 bgt .L3 cmp w0, 65 beq .L8 cmp w0, 65 bgt .L3 cmp w0, 57 beq .L9 cmp w0, 57 bgt .L3 cmp w0, 56 beq .L10 cmp w0, 56 bgt .L3 cmp w0, 55 beq .L11 cmp w0, 55 bgt .L3 cmp w0, 54 beq .L12 cmp w0, 54 bgt .L3 cmp w0, 53 beq .L13 cmp w0, 53 bgt .L3 cmp w0, 52 beq .L14 cmp w0, 52 bgt .L3 cmp w0, 51 beq .L15 cmp w0, 51 bgt .L3 cmp w0, 50 beq .L16 cmp w0, 50 bgt .L3 cmp w0, 48 beq .L17 cmp w0, 49 beq .L18 b .L3 .L17: mov w0, 0 b .L1 .L18: mov w0, 1 b .L1 .L16: mov w0, 2 b .L1 .L15: mov w0, 3 b .L1 .L14: mov w0, 4 b .L1 .L13: mov w0, 5 b .L1 .L12: mov w0, 6 b .L1 .L11: mov w0, 7 b .L1 .L10: mov w0, 8 b .L1 .L9: mov w0, 9 b .L1 .L8: mov w0, 10 b .L1 .L7: mov w0, 11 b .L1 .L6: mov w0, 12 b .L1 .L5: mov w0, 13 b .L1 .L4: mov w0, 14 b .L1 .L2: mov w0, 15 b .L1 .L3: .L1: add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size char2hex, .-char2hex .section .rodata .align 3 .LC0: .string "echo -n \"\\\".\\\", \"" .align 3 .LC1: .string "echo \"\\\"`echo -n -e \"\\x%02X\\x%02X\\x%02X\\x%02X\" | iconv -f UTF-32BE -t UTF-8`\\\", // %s\" \n" .text .align 2 .global convertUCtoUTF8 .type convertUCtoUTF8, %function convertUCtoUTF8: .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, 40] str x1, [sp, 32] mov x0, 5 bl malloc str x0, [sp, 64] mov x0, 40 bl malloc str x0, [sp, 72] str xzr, [sp, 80] ldr x0, [sp, 40] bl strlen cmp x0, 5 bls .L21 ldr x0, [sp, 64] mov w1, 46 strb w1, [x0] ldr x0, [sp, 64] add x0, x0, 1 strb wzr, [x0] adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl puts ldr x0, [sp, 64] b .L22 .L21: mov x0, 9 bl malloc str x0, [sp, 88] mov x2, 9 mov w1, 0 ldr x0, [sp, 88] bl memset str wzr, [sp, 56] b .L23 .L24: ldrsw x0, [sp, 56] ldr x1, [sp, 88] add x0, x1, x0 mov w1, 48 strb w1, [x0] ldr w0, [sp, 56] add w0, w0, 1 str w0, [sp, 56] .L23: ldrsw x19, [sp, 56] ldr x0, [sp, 40] bl strlen mov x1, x0 mov x0, 8 sub x0, x0, x1 cmp x19, x0 bcc .L24 ldr w0, [sp, 56] str w0, [sp, 60] b .L25 .L26: ldr w1, [sp, 60] ldr w0, [sp, 56] sub w0, w1, w0 sxtw x0, w0 ldr x1, [sp, 40] add x1, x1, x0 ldrsw x0, [sp, 60] ldr x2, [sp, 88] add x0, x2, x0 ldrb w1, [x1] strb w1, [x0] ldr w0, [sp, 60] add w0, w0, 1 str w0, [sp, 60] .L25: ldr w0, [sp, 60] cmp w0, 7 ble .L26 ldr x0, [sp, 88] ldrb w0, [x0] bl char2hex lsl w0, w0, 4 sxtb w19, w0 ldr x0, [sp, 88] add x0, x0, 1 ldrb w0, [x0] bl char2hex sxtb w0, w0 orr w0, w19, w0 sxtb w0, w0 and w1, w0, 255 ldr x0, [sp, 64] strb w1, [x0] ldr x0, [sp, 88] add x0, x0, 2 ldrb w0, [x0] bl char2hex lsl w0, w0, 4 sxtb w19, w0 ldr x0, [sp, 88] add x0, x0, 3 ldrb w0, [x0] bl char2hex sxtb w0, w0 orr w0, w19, w0 sxtb w1, w0 ldr x0, [sp, 64] add x0, x0, 1 and w1, w1, 255 strb w1, [x0] ldr x0, [sp, 88] add x0, x0, 4 ldrb w0, [x0] bl char2hex lsl w0, w0, 4 sxtb w19, w0 ldr x0, [sp, 88] add x0, x0, 5 ldrb w0, [x0] bl char2hex sxtb w0, w0 orr w0, w19, w0 sxtb w1, w0 ldr x0, [sp, 64] add x0, x0, 2 and w1, w1, 255 strb w1, [x0] ldr x0, [sp, 88] add x0, x0, 6 ldrb w0, [x0] bl char2hex lsl w0, w0, 4 sxtb w19, w0 ldr x0, [sp, 88] add x0, x0, 7 ldrb w0, [x0] bl char2hex sxtb w0, w0 orr w0, w19, w0 sxtb w1, w0 ldr x0, [sp, 64] add x0, x0, 3 and w1, w1, 255 strb w1, [x0] ldr x0, [sp, 64] add x0, x0, 4 strb wzr, [x0] ldr x0, [sp, 72] str x0, [sp, 96] ldr x0, [sp, 64] str x0, [sp, 104] mov x2, 40 mov w1, 0 ldr x0, [sp, 72] bl memset mov x0, 4 str x0, [sp, 112] mov x0, 40 str x0, [sp, 120] ldr x0, [sp, 64] ldrb w0, [x0] mov w1, w0 ldr x0, [sp, 64] add x0, x0, 1 ldrb w0, [x0] mov w2, w0 ldr x0, [sp, 64] add x0, x0, 2 ldrb w0, [x0] mov w3, w0 ldr x0, [sp, 64] add x0, x0, 3 ldrb w0, [x0] ldr x5, [sp, 32] mov w4, w0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf ldr x0, [sp, 96] .L22: 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 convertUCtoUTF8, .-convertUCtoUTF8 .section .rodata .align 3 .LC2: .string "r" .align 3 .LC3: .string "mapping.txt" .align 3 .LC4: .string "echo \"static const char x0215_mapping[][4] = {\"" .align 3 .LC5: .string "echo \"}\"" .text .align 2 .global main .type main, %function main: .LFB8: .cfi_startproc sub sp, sp, #1136 .cfi_def_cfa_offset 1136 stp x29, x30, [sp] .cfi_offset 29, -1136 .cfi_offset 30, -1128 mov x29, sp str x19, [sp, 16] .cfi_offset 19, -1120 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, 1128] mov x1, 0 str wzr, [sp, 56] adrp x0, .LC2 add x1, x0, :lo12:.LC2 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl fopen str x0, [sp, 72] adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl puts b .L28 .L35: str wzr, [sp, 60] add x0, sp, 104 mov x2, 1024 mov w1, 0 bl memset add x0, sp, 96 mov x2, 5 mov w1, 0 bl memset add x0, sp, 104 ldr x2, [sp, 72] mov w1, 1024 bl fgets ldrb w0, [sp, 104] cmp w0, 0 beq .L29 mov x0, 4 bl malloc str x0, [sp, 80] add x0, sp, 104 bl strlen sub x0, x0, #8 bl malloc str x0, [sp, 88] mov x2, 4 mov w1, 0 ldr x0, [sp, 80] bl memset add x0, sp, 104 bl strlen sub x0, x0, #8 mov x2, x0 mov w1, 0 ldr x0, [sp, 88] bl memset b .L30 .L32: ldr w0, [sp, 60] add w0, w0, 1 str w0, [sp, 60] .L30: ldr w0, [sp, 60] add w0, w0, 10 sxtw x19, w0 add x0, sp, 104 bl strlen cmp x19, x0 bcs .L31 ldr w0, [sp, 60] add w0, w0, 10 sxtw x0, w0 add x1, sp, 104 ldrb w0, [x1, x0] cmp w0, 32 beq .L31 ldr w0, [sp, 60] add w0, w0, 10 sxtw x0, w0 add x1, sp, 104 ldrb w0, [x1, x0] cmp w0, 9 bne .L32 .L31: ldr w0, [sp, 60] add w0, w0, 1 str w0, [sp, 60] add x0, sp, 104 add x0, x0, 2 mov x2, 4 mov x1, x0 ldr x0, [sp, 80] bl strncpy ldrsw x1, [sp, 60] add x0, sp, 104 add x0, x0, 9 mov x2, x1 mov x1, x0 ldr x0, [sp, 88] bl strncpy ldr x0, [sp, 80] ldrb w0, [x0] bl char2hex lsl w0, w0, 12 and w19, w0, 61440 ldr x0, [sp, 80] add x0, x0, 1 ldrb w0, [x0] bl char2hex lsl w0, w0, 8 and w0, w0, 3840 orr w19, w19, w0 ldr x0, [sp, 80] add x0, x0, 2 ldrb w0, [x0] bl char2hex lsl w0, w0, 4 and w0, w0, 240 orr w19, w19, w0 ldr x0, [sp, 80] add x0, x0, 3 ldrb w0, [x0] bl char2hex and w0, w0, 15 orr w0, w19, w0 str w0, [sp, 68] ldr w0, [sp, 56] str w0, [sp, 64] b .L33 .L34: adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl puts ldr w0, [sp, 64] add w0, w0, 1 str w0, [sp, 64] .L33: ldr w1, [sp, 64] ldr w0, [sp, 68] cmp w1, w0 bcc .L34 ldr w0, [sp, 68] add w0, w0, 1 str w0, [sp, 56] ldr x1, [sp, 80] ldr x0, [sp, 88] bl convertUCtoUTF8 .L29: adrp x0, :got:stdout ldr x0, [x0, #:got_lo12:stdout] ldr x0, [x0] bl fflush .L28: ldr x0, [sp, 72] bl feof cmp w0, 0 beq .L35 adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl puts ldr x0, [sp, 72] bl fclose mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 1128] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L37 bl __stack_chk_fail .L37: mov w0, w1 ldr x19, [sp, 16] ldp x29, x30, [sp] add sp, sp, 1136 .cfi_restore 29 .cfi_restore 30 .cfi_restore 19 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE8: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global IID_IOpenServiceActivity .section .rodata .align 3 .type IID_IOpenServiceActivity, %object .size IID_IOpenServiceActivity, 24 IID_IOpenServiceActivity: .xword 325344392 .hword 8730 .hword 18693 .ascii "\216\321OQ\022\317\301\b" .zero 4 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global foo .type foo, %function foo: .LFB0: .cfi_startproc sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, 8] str x1, [sp] ldr x0, [sp, 8] ldr w0, [x0] str w0, [sp, 28] ldr x1, [sp, 8] ldr x0, [sp] cmp x1, x0 bne .L2 ldr x0, [sp] ldr w0, [x0] b .L1 .L2: ldr x0, [sp, 8] cmp x0, 0 beq .L4 ldr x0, [sp, 8] ldr w1, [x0, 4] ldr w0, [sp, 28] add w0, w1, w0 b .L1 .L4: .L1: add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size foo, .-foo ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global sum .bss .align 3 .type sum, %object .size sum, 8 sum: .zero 8 .global sumLock .align 3 .type sumLock, %object .size sumLock, 48 sumLock: .zero 48 .text .align 2 .global threadAddOne .type threadAddOne, %function threadAddOne: .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 wzr, [sp, 20] str xzr, [sp, 24] mov w0, 1 str w0, [sp, 20] b .L2 .L3: ldrsw x0, [sp, 20] ldr x1, [sp, 24] add x0, x1, x0 str x0, [sp, 24] ldr w0, [sp, 20] add w0, w0, 1 str w0, [sp, 20] .L2: ldr w1, [sp, 20] mov w0, 25855 movk w0, 0x1dcd, lsl 16 cmp w1, w0 ble .L3 adrp x0, sumLock add x0, x0, :lo12:sumLock bl pthread_mutex_lock adrp x0, sum add x0, x0, :lo12:sum ldr x1, [x0] ldr x0, [sp, 24] add x1, x1, x0 adrp x0, sum add x0, x0, :lo12:sum str x1, [x0] adrp x0, sumLock add x0, x0, :lo12:sumLock bl pthread_mutex_unlock nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size threadAddOne, .-threadAddOne .align 2 .global threadAddTwo .type threadAddTwo, %function threadAddTwo: .LFB7: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str wzr, [sp, 20] str xzr, [sp, 24] mov w0, 1 str w0, [sp, 20] b .L5 .L6: ldrsw x0, [sp, 20] ldr x1, [sp, 24] add x0, x1, x0 str x0, [sp, 24] ldr w0, [sp, 20] add w0, w0, 1 str w0, [sp, 20] .L5: ldr w1, [sp, 20] mov w0, 25855 movk w0, 0x1dcd, lsl 16 cmp w1, w0 ble .L6 adrp x0, sumLock add x0, x0, :lo12:sumLock bl pthread_mutex_lock adrp x0, sum add x0, x0, :lo12:sum ldr x1, [x0] ldr x0, [sp, 24] add x1, x1, x0 adrp x0, sum add x0, x0, :lo12:sum str x1, [x0] adrp x0, sumLock add x0, x0, :lo12:sumLock bl pthread_mutex_unlock nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size threadAddTwo, .-threadAddTwo .section .rodata .align 3 .LC0: .string "%ld\n" .text .align 2 .global main .type main, %function main: .LFB8: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 40] mov x1, 0 mov x1, 0 adrp x0, sumLock add x0, x0, :lo12:sumLock bl pthread_mutex_init add x4, sp, 24 mov x3, 0 adrp x0, threadAddOne add x2, x0, :lo12:threadAddOne mov x1, 0 mov x0, x4 bl pthread_create add x4, sp, 32 mov x3, 0 adrp x0, threadAddTwo add x2, x0, :lo12:threadAddTwo mov x1, 0 mov x0, x4 bl pthread_create ldr x0, [sp, 24] mov x1, 0 bl pthread_join ldr x0, [sp, 32] mov x1, 0 bl pthread_join adrp x0, sum add x0, x0, :lo12:sum ldr x0, [x0] mov x1, x0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf adrp x0, sumLock add x0, x0, :lo12:sumLock bl pthread_mutex_destroy mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 40] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L9 bl __stack_chk_fail .L9: mov w0, w1 ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE8: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global g0 .type g0, %function g0: .LFB0: .cfi_startproc stp x29, x30, [sp, -16]! .cfi_def_cfa_offset 16 .cfi_offset 29, -16 .cfi_offset 30, -8 mov x29, sp mov w0, 5 bl f0 nop ldp x29, x30, [sp], 16 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size g0, .-g0 .align 2 .global g1 .type g1, %function g1: .LFB1: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str w0, [sp, 28] ldr w0, [sp, 28] bl f1 ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size g1, .-g1 .align 2 .global query_name .type query_name, %function query_name: .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 what_is_my_name sxtw x0, w0 ldp x29, x30, [sp], 16 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE2: .size query_name, .-query_name .align 2 .global use_computed_goto .type use_computed_goto, %function use_computed_goto: .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 w0, [sp, 28] ldr w0, [sp, 28] bl computed_goto ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE3: .size use_computed_goto, .-use_computed_goto .align 2 .global get_weird_max .type get_weird_max, %function get_weird_max: .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 w1, [sp, 24] ldr w1, [sp, 24] ldr w0, [sp, 28] bl weird_max ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE4: .size get_weird_max, .-get_weird_max ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global __addtf3 .global __subtf3 .global __trunctfdf2 .align 2 .global test_real96 .type test_real96, %function test_real96: .LFB6: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp stp xzr, xzr, [sp, 16] stp xzr, xzr, [sp, 32] ldr q0, [sp, 16] mov v1.16b, v0.16b bl __addtf3 ldr q1, [sp, 32] bl __subtf3 bl __trunctfdf2 fabs d0, d0 adrp x0, .LC0 ldr d1, [x0, #:lo12:.LC0] fcmpe d0, d1 cset w0, mi and w0, w0, 255 bl ASSERT nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size test_real96, .-test_real96 .global __eqtf2 .align 2 .global test_real96_pointers .type test_real96_pointers, %function test_real96_pointers: .LFB7: .cfi_startproc stp x29, x30, [sp, -160]! .cfi_def_cfa_offset 160 .cfi_offset 29, -160 .cfi_offset 30, -152 mov x29, sp str x19, [sp, 16] .cfi_offset 19, -144 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, .LC1 add x0, x0, :lo12:.LC1 ldr q0, [x0] str q0, [sp, 48] adrp x0, .LC2 add x0, x0, :lo12:.LC2 ldr q0, [x0] str q0, [sp, 64] adrp x0, .LC3 add x0, x0, :lo12:.LC3 ldr q0, [x0] str q0, [sp, 80] adrp x0, .LC4 add x0, x0, :lo12:.LC4 ldr q0, [x0] str q0, [sp, 96] adrp x0, .LC5 add x0, x0, :lo12:.LC5 ldr q0, [x0] str q0, [sp, 112] adrp x0, .LC6 add x0, x0, :lo12:.LC6 ldr q0, [x0] str q0, [sp, 128] add x0, sp, 48 str x0, [sp, 32] add x0, sp, 48 add x0, x0, 48 str x0, [sp, 40] ldr x0, [sp, 32] ldr q0, [x0] mov w19, 1 adrp x0, .LC1 add x0, x0, :lo12:.LC1 ldr q1, [x0] bl __eqtf2 cmp w0, 0 beq .L3 mov w19, 0 .L3: and w0, w19, 255 bl ASSERT ldr x0, [sp, 40] ldr q0, [x0] mov w19, 1 adrp x0, .LC4 add x0, x0, :lo12:.LC4 ldr q1, [x0] bl __eqtf2 cmp w0, 0 beq .L4 mov w19, 0 .L4: and w0, w19, 255 bl ASSERT ldr x0, [sp, 40] add x0, x0, 32 ldr q0, [x0] mov w19, 1 adrp x0, .LC6 add x0, x0, :lo12:.LC6 ldr q1, [x0] bl __eqtf2 cmp w0, 0 beq .L5 mov w19, 0 .L5: and w0, w19, 255 bl ASSERT nop adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x2, [sp, 152] ldr x1, [x0] subs x2, x2, x1 mov x1, 0 beq .L6 bl __stack_chk_fail .L6: ldr x19, [sp, 16] ldp x29, x30, [sp], 160 .cfi_restore 30 .cfi_restore 29 .cfi_restore 19 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size test_real96_pointers, .-test_real96_pointers .section .rodata .align 3 .LC0: .word -1998362383 .word 1055193269 .align 4 .LC1: .word 0 .word 0 .word 0 .word 1074106368 .align 4 .LC2: .word 0 .word 0 .word 0 .word 1074107392 .align 4 .LC3: .word 0 .word 0 .word 0 .word 1074108416 .align 4 .LC4: .word 0 .word 0 .word 0 .word 1074109440 .align 4 .LC5: .word 0 .word 0 .word 0 .word 1074110464 .align 4 .LC6: .word 0 .word 0 .word 0 .word 1074111488 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global touchImage .section .rodata .align 3 .type touchImage, %object .size touchImage, 12262 touchImage: .string "\377\330\377\341\005\343Exif" .string "" .string "MM" .string "*" .string "" .string "" .string "\b" .string "\007\001\022" .string "\003" .string "" .string "" .string "\001" .string "\001" .string "" .string "\001\032" .string "\005" .string "" .string "" .string "\001" .string "" .string "" .string "b\001\033" .string "\005" .string "" .string "" .string "\001" .string "" .string "" .string "j\001(" .string "\003" .string "" .string "" .string "\001" .string "\002" .string "" .string "\0011" .string "\002" .string "" .string "" .string "\037" .string "" .string "" .string "r\0012" .string "\002" .string "" .string "" .string "\024" .string "" .string "" .string "\221\207i" .string "\004" .string "" .string "" .string "\001" .string "" .string "" .string "\250" .string "" .string "" .string "\324" .string "\016\t\300" .string "" .string "'\020" .string "\016\t\300" .string "" .string "'\020Adobe Photoshop 21.1 (Windows)" .string "2020:07:30 18:12:17" .string "" .string "" .string "" .string "" .string "\003\240\001" .string "\003" .string "" .string "" .string "\001\377\377" .string "" .string "\240\002" .string "\004" .string "" .string "" .string "\001" .string "" .string "" .string "@\240\003" .string "\004" .string "" .string "" .string "\001" .string "" .string "" .string "(" .string "" .string "" .string "" .string "" .string "" .string "" .string "\006\001\003" .string "\003" .string "" .string "" .string "\001" .string "\006" .string "" .string "\001\032" .string "\005" .string "" .string "" .string "\001" .string "" .string "\001\"\001\033" .string "\005" .string "" .string "" .string "\001" .string "" .string "\001*\001(" .string "\003" .string "" .string "" .string "\001" .string "\002" .string "" .string "\002\001" .string "\004" .string "" .string "" .string "\001" .string "" .string "\0012\002\002" .string "\004" .string "" .string "" .string "\001" .string "" .string "\004\251" .string "" .string "" .string "" .string "" .string "" .string "" .string "H" .string "" .string "" .string "\001" .string "" .string "" .string "H" .string "" .string "" .string "\001\377\330\377\355" .string "\fAdobe_CM" .string "\002\377\356" .string "\016Adobe" .string "d\200" .string "" .string "" .string "\001\377\333" .string "\204" .string "\f\b\b\b\t\b\f\t\t\f\021\013\n\013\021\025\017\f\f\017\025\030\023\023\025\023\023\030\021\f\f\f\f\f\f\021\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\001\r\013\013\r\016\r\020\016\016\020\024\016\016\016\024\024\016\016\016\016\024\021\f\f\f\f\f\021\021\f\f\f\f\f\f\021\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\377\300" .string "\021\b" .string "\037" .string "2\003\001\"" .string "\002\021\001\003\021\001\377\335" .string "\004" .string "\004\377\304\001?" .string "" .string "\001\005\001\001\001\001\001\001" .string "" .string "" .string "" .string "" .string "" .string "" .string "\003" .string "\001\002\004\005\006\007\b\t\n\013\001" .string "\001\005\001\001\001\001\001\001" .string "" .string "" .string "" .string "" .string "" .string "" .string "\001" .string "\002\003\004\005\006\007\b\t\n\013\020" .string "\001\004\001\003\002\004\002\005\007\006\b\005\003\f3\001" .string "\002\021\003\004!\0221\005AQa\023\"q\2012\006\024\221\241\261B#$\025R\301b34r\202\321C\007%\222S\360\341\361cs5\026\242\262\203&D\223TdE\302\243t6\027\322U\342e\362\263\204\303\323u\343\363F'\224\244\205\264\225\304\324\344\364\245\265\305\325\345\365Vfv\206\226\246\266\306\326\346\3667GWgw\207\227\247\267\307\327\347\367\021" .string "\002\002\001\002\004\004\003\004\005\006\007\007\006\0055\001" .string "\002\021\003!1\022\004AQaq\"\023\0052\201\221\024\241\261B#\301R\321\3603$b\341r\202\222CS\025cs4\361%\006\026\242\262\203\007&5\302\322D\223T\243\027dEU6te\342\362\263\204\303\323u\343\363F\224\244\205\264\225\304\324\344\364\245\265\305\325\345\365Vfv\206\226\246\266\306\326\346\366'7GWgw\207\227\247\267\307\377\332" .string "\f\003\001" .string "\002\021\003\021" .string "?" .string "\346\253\313\263#\251\365\272\36233\3320NFEm\307\3125\263evl\3646>\273\266\375?\247\377" .string "\201\246\266\274\306an\375\247\324\006Sq(\317s\215\356\364Mw\332\312>\316\317\317\365X\333\253\3756\375\226\333\352U\350\261a\365l\254\214~\265\325E\026:\277Z\353\352\267i\215\314u\216.\255\337\310v\325Y\335O\250\273\bt\367d\330p\332dP\\v\rw}\037\353{\326|yI\021\tD\304D\373d\202?DG\324\332\226p\f\201\273\006Z\337\216\217X\334\034\307\337}\177\265z\203[GQ\312\3051s\234\343F-Ve\235\254\226n\312\261\265z\177\350\377" .string "\340\320:_\255\325C\356\243\251\347cR\334\234j\032\333\362\311qm\273\376\321\265\355c\032\373\375\277\253\263g\375\270\271\333\372\327W\310\262\233n\314\272\313q\265\241\345\356\334\303\247\275\216\237\247\355o\277\351\247\263\255\365k-6\277.\307X\347\327av\356_L\375\235\377" .string "\365\255\336\304>\347\233\204\372\241\304@\326\276B'\352\375\017_\034?\304@\317\033\0375\017\037\233\376r~\241\325z\2766~N5}G,\327M\257\255\205\327?t5\316cwC\207\273D\017\333\235o\377" .string ",2\277\355\353?\362j\245\266\331u\257\266\327\027\331c\213\336\363\251.q\334\347\037\353(+\221\303\214D\003\b\222" .string "\263\3027a9$I\251J\257\273\337}\2677\376\344[\377" .string "\211\317_\351\273\371\337\364\374\377" .string "=\377" .string "\013\364\322@\377" .string "\357a%\213\301\037\335\037c\243\304{\227\377\320\363\216\273\377" .string "-\365\017\3745w\376|z\242\266\272\317J\312\263\254gX\327\343\200\374\233\234\003\262q\332`\275\337I\217\275\257g\365\\\251\376\307\313\377" .string "I\213\377" .string "\261x\337\373\320\252\342\346\371a\216" .string "\346\306\b\214\177N\035\231\347\2031\234\210\307=\317\350\311\242\222\275\373\037/\375&/\376\305\343\177\357B_\261\362\377" .string "\322b\377" .string "\354^7\376\364'\375\363\226\377" .string "?\213\377" .string "\f\207\375\362\337\273\346\377" .string "7?\361d\321I^\375\217\227\376\223\027\377" .string "b\361\277\367\241/\330\371\177\3511\177\366/\033\377" .string "z\022\373\347-\376\177\027\376\031\017\373\345}\3377\371\271\377" .string "\213'\251\377" .string "\357a$\177\262]\343_\376'=\037\347j\372_\275\374\347\363\037\367g\372?\374*K\033\336\307\373\361\377" .string "\032.\207\004\377" .string "t\375\217\377\331\377\355\016\004Photoshop 3.0" .string "8BIM\004\004" .string "" .string "" .string "" .string "" .string "\017\034\001Z" .string "\003\033%G\034\002" .string "" .string "\002" .string "" .string "" .string "8BIM\004%" .string "" .string "" .string "" .string "" .string "\020\315\317\372}\250\307\276\t\005pv\256\257\005\303N8BIM\004:" .string "" .string "" .string "" .string "" .string "\327" .string "" .string "" .string "\020" .string "" .string "" .string "\001" .string "" .string "" .string "" .string "" .string "\013printOutput" .string "" .string "" .string "\005" .string "" .string "" .string "" .string "PstSbool\001" .string "" .string "" .string "" .string "Inteenum" .string "" .string "" .string "" .string "Inte" .string "" .string "" .string "" .string "Img " .string "" .string "" .string "\017printSixteenBitbool" .string "" .string "" .string "" .string "\013printerNameTEXT" .string "" .string "" .string "\001" .string "" .string "" .string "" .string "" .string "\017printProofSetupObjc" .string "" .string "" .string "\005h!h7\213\276\177n" .string "" .string "" .string "" .string "" .string "\nproofSetup" .string "" .string "" .string "\001" .string "" .string "" .string "" .string "Bltnenum" .string "" .string "" .string "\fbuiltinProof" .string "" .string "" .string "\tproofCMYK" .string "8BIM\004;" .string "" .string "" .string "" .string "\002-" .string "" .string "" .string "\020" .string "" .string "" .string "\001" .string "" .string "" .string "" .string "" .string "\022printOutputOptions" .string "" .string "" .string "\027" .string "" .string "" .string "" .string "Cptnbool" .string "" .string "" .string "" .string "" .string "Clbrbool" .string "" .string "" .string "" .string "" .string "RgsMbool" .string "" .string "" .string "" .string "" .string "CrnCbool" .string "" .string "" .string "" .string "" .string "CntCbool" .string "" .string "" .string "" .string "" .string "Lblsbool" .string "" .string "" .string "" .string "" .string "Ngtvbool" .string "" .string "" .string "" .string "" .string "EmlDbool" .string "" .string "" .string "" .string "" .string "Intrbool" .string "" .string "" .string "" .string "" .string "BckgObjc" .string "" .string "" .string "\001" .string "" .string "" .string "" .string "" .string "" .string "RGBC" .string "" .string "" .string "\003" .string "" .string "" .string "" .string "Rd doub@o\340" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "Grn doub@o\340" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "Bl doub@o\340" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "BrdTUntF#Rlt" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "Bld UntF#Rlt" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "RsltUntF#Pxl@W" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "\nvectorDatabool\001" .string "" .string "" .string "" .string "PgPsenum" .string "" .string "" .string "" .string "PgPs" .string "" .string "" .string "" .string "PgPC" .string "" .string "" .string "" .string "LeftUntF#Rlt" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "Top UntF#Rlt" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "Scl UntF#Prc@Y" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "\020cropWhenPrintingbool" .string "" .string "" .string "" .string "\016cropRectBottomlong" .string "" .string "" .string "" .string "" .string "" .string "" .string "\fcropRectLeftlong" .string "" .string "" .string "" .string "" .string "" .string "" .string "\rcropRectRightlong" .string "" .string "" .string "" .string "" .string "" .string "" .string "\013cropRectToplong" .string "" .string "" .string "" .string "" .string "8BIM\003\355" .string "" .string "" .string "" .string "" .string "\020" .string "\\" .string "" .string "" .string "\001" .string "\002" .string "\\" .string "" .string "" .string "\001" .string "\0028BIM\004&" .string "" .string "" .string "" .string "" .string "\016" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "?\200" .string "" .string "8BIM\003\362" .string "" .string "" .string "" .string "" .string "\n" .string "" .string "\377\377\377\377\377\377" .string "" .string "8BIM\004\r" .string "" .string "" .string "" .string "" .string "\004" .string "" .string "" .string "Z8BIM\004\031" .string "" .string "" .string "" .string "" .string "\004" .string "" .string "" .string "\0368BIM\003\363" .string "" .string "" .string "" .string "" .string "\t" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "\001" .string "8BIM'\020" .string "" .string "" .string "" .string "" .string "\n" .string "\001" .string "" .string "" .string "" .string "" .string "" .string "" .string "\0028BIM\003\365" .string "" .string "" .string "" .string "" .string "H" .string "/ff" .string "\001" .string "lff" .string "\006" .string "" .string "" .string "" .string "" .string "\001" .string "/ff" .string "\001" .string "\241\231\232" .string "\006" .string "" .string "" .string "" .string "" .string "\001" .string "2" .string "" .string "" .string "\001" .string "Z" .string "" .string "" .string "\006" .string "" .string "" .string "" .string "" .string "\001" .string "5" .string "" .string "" .string "\001" .string "-" .string "" .string "" .string "\006" .string "" .string "" .string "" .string "" .string "\0018BIM\003\370" .string "" .string "" .string "" .string "" .string "p" .string "" .string "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\003\350" .string "" .string "" .string "" .string "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\003\350" .string "" .string "" .string "" .string "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\003\350" .string "" .string "" .string "" .string "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\003\350" .string "" .string "8BIM\004" .string "" .string "" .string "" .string "" .string "" .string "\002" .string "\0018BIM\004\002" .string "" .string "" .string "" .string "" .string "\004" .string "" .string "" .string "" .string "8BIM\0040" .string "" .string "" .string "" .string "" .string "\002\001\0018BIM\004-" .string "" .string "" .string "" .string "" .string "\006" .string "\001" .string "" .string "" .string "\0028BIM\004\b" .string "" .string "" .string "" .string "" .string "\020" .string "" .string "" .string "\001" .string "" .string "\002@" .string "" .string "\002@" .string "" .string "" .string "" .string "8BIM\004\036" .string "" .string "" .string "" .string "" .string "\004" .string "" .string "" .string "" .string "8BIM\004\032" .string "" .string "" .string "" .string "\003?" .string "" .string "" .string "\006" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "(" .string "" .string "" .string "@" .string "" .string "" .string "\005" .string "T" .string "o" .string "u" .string "c" .string "h" .string "" .string "" .string "\001" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "\001" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "@" .string "" .string "" .string "(" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "\001" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "\020" .string "" .string "" .string "\001" .string "" .string "" .string "" .string "" .string "" .string "null" .string "" .string "" .string "\002" .string "" .string "" .string "\006boundsObjc" .string "" .string "" .string "\001" .string "" .string "" .string "" .string "" .string "" .string "Rct1" .string "" .string "" .string "\004" .string "" .string "" .string "" .string "Top long" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "Leftlong" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "Btomlong" .string "" .string "" .string "(" .string "" .string "" .string "" .string "Rghtlong" .string "" .string "" .string "@" .string "" .string "" .string "\006slicesVlLs" .string "" .string "" .string "\001Objc" .string "" .string "" .string "\001" .string "" .string "" .string "" .string "" .string "\005slice" .string "" .string "" .string "\022" .string "" .string "" .string "\007sliceIDlong" .string "" .string "" .string "" .string "" .string "" .string "" .string "\007groupIDlong" .string "" .string "" .string "" .string "" .string "" .string "" .string "\006originenum" .string "" .string "" .string "\fESliceOrigin" .string "" .string "" .string "\rautoGenerated" .string "" .string "" .string "" .string "Typeenum" .string "" .string "" .string "\nESliceType" .string "" .string "" .string "" .string "Img " .string "" .string "" .string "\006boundsObjc" .string "" .string "" .string "\001" .string "" .string "" .string "" .string "" .string "" .string "Rct1" .string "" .string "" .string "\004" .string "" .string "" .string "" .string "Top long" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "Leftlong" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "Btomlong" .string "" .string "" .string "(" .string "" .string "" .string "" .string "Rghtlong" .string "" .string "" .string "@" .string "" .string "" .string "\003urlTEXT" .string "" .string "" .string "\001" .string "" .string "" .string "" .string "" .string "" .string "nullTEXT" .string "" .string "" .string "\001" .string "" .string "" .string "" .string "" .string "" .string "MsgeTEXT" .string "" .string "" .string "\001" .string "" .string "" .string "" .string "" .string "\006altTagTEXT" .string "" .string "" .string "\001" .string "" .string "" .string "" .string "" .string "\016cellTextIsHTMLbool\001" .string "" .string "" .string "\bcellTextTEXT" .string "" .string "" .string "\001" .string "" .string "" .string "" .string "" .string "\thorzAlignenum" .string "" .string "" .string "\017ESliceHorzAlign" .string "" .string "" .string "\007default" .string "" .string "" .string "\tvertAlignenum" .string "" .string "" .string "\017ESliceVertAlign" .string "" .string "" .string "\007default" .string "" .string "" .string "\013bgColorTypeenum" .string "" .string "" .string "\021ESliceBGColorType" .string "" .string "" .string "" .string "None" .string "" .string "" .string "\ttopOutsetlong" .string "" .string "" .string "" .string "" .string "" .string "" .string "\nleftOutsetlong" .string "" .string "" .string "" .string "" .string "" .string "" .string "\fbottomOutsetlong" .string "" .string "" .string "" .string "" .string "" .string "" .string "\013rightOutsetlong" .string "" .string "" .string "" .string "" .string "8BIM\004(" .string "" .string "" .string "" .string "" .string "\f" .string "" .string "" .string "\002?\360" .string "" .string "" .string "" .string "" .string "" .string "8BIM\004\021" .string "" .string "" .string "" .string "" .string "\001\001" .string "8BIM\004\024" .string "" .string "" .string "" .string "" .string "\004" .string "" .string "" .string "\0028BIM\004\f" .string "" .string "" .string "" .string "\004\305" .string "" .string "" .string "\001" .string "" .string "" .string "2" .string "" .string "" .string "\037" .string "" .string "" .string "\230" .string "" .string "\022h" .string "" .string "\004\251" .string "\030" .string "\001\377\330\377\355" .string "\fAdobe_CM" .string "\002\377\356" .string "\016Adobe" .string "d\200" .string "" .string "" .string "\001\377\333" .string "\204" .string "\f\b\b\b\t\b\f\t\t\f\021\013\n\013\021\025\017\f\f\017\025\030\023\023\025\023\023\030\021\f\f\f\f\f\f\021\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\001\r\013\013\r\016\r\020\016\016\020\024\016\016\016\024\024\016\016\016\016\024\021\f\f\f\f\f\021\021\f\f\f\f\f\f\021\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\377\300" .string "\021\b" .string "\037" .string "2\003\001\"" .string "\002\021\001\003\021\001\377\335" .string "\004" .string "\004\377\304\001?" .string "" .string "\001\005\001\001\001\001\001\001" .string "" .string "" .string "" .string "" .string "" .string "" .ascii "\003" .string "" .string "\001\002\004\005\006\007\b\t\n\013\001" .string "\001\005\001\001\001\001\001\001" .string "" .string "" .string "" .string "" .string "" .string "" .string "\001" .string "\002\003\004\005\006\007\b\t\n\013\020" .string "\001\004\001\003\002\004\002\005\007\006\b\005\003\f3\001" .string "\002\021\003\004!\0221\005AQa\023\"q\2012\006\024\221\241\261B#$\025R\301b34r\202\321C\007%\222S\360\341\361cs5\026\242\262\203&D\223TdE\302\243t6\027\322U\342e\362\263\204\303\323u\343\363F'\224\244\205\264\225\304\324\344\364\245\265\305\325\345\365Vfv\206\226\246\266\306\326\346\3667GWgw\207\227\247\267\307\327\347\367\021" .string "\002\002\001\002\004\004\003\004\005\006\007\007\006\0055\001" .string "\002\021\003!1\022\004AQaq\"\023\0052\201\221\024\241\261B#\301R\321\3603$b\341r\202\222CS\025cs4\361%\006\026\242\262\203\007&5\302\322D\223T\243\027dEU6te\342\362\263\204\303\323u\343\363F\224\244\205\264\225\304\324\344\364\245\265\305\325\345\365Vfv\206\226\246\266\306\326\346\366'7GWgw\207\227\247\267\307\377\332" .string "\f\003\001" .string "\002\021\003\021" .string "?" .string "\346\253\313\263#\251\365\272\36233\3320NFEm\307\3125\263evl\3646>\273\266\375?\247\377" .string "\201\246\266\274\306an\375\247\324\006Sq(\317s\215\356\364Mw\332\312>\316\317\317\365X\333\253\3756\375\226\333\352U\350\261a\365l\254\214~\265\325E\026:\277Z\353\352\267i\215\314u\216.\255\337\310v\325Y\335O\250\273\bt\367d\330p\332dP\\v\rw}\037\353{\326|yI\021\tD\304D\373d\202?DG\324\332\226p\f\201\273\006Z\337\216\217X\334\034\307\337}\177\265z\203[GQ\312\3051s\234\343F-Ve\235\254\226n\312\261\265z\177\350\377" .string "\340\320:_\255\325C\356\243\251\347cR\334\234j\032\333\362\311qm\273\376\321\265\355c\032\373\375\277\253\263g\375\270\271\333\372\327W\310\262\233n\314\272\313q\265\241\345\356\334\303\247\275\216\237\247\355o\277\351\247\263\255\365k-6\277.\307X\347\327av\356_L\375\235\377" .string "\365\255\336\304>\347\233\204\372\241\304@\326\276B'\352\375\017_\034?\304@\317\033\0375\017\037\233\376r~\241\325z\2766~N5}G,\327M\257\255\205\327?t5\316cwC\207\273D\017\333\235o\377" .string ",2\277\355\353?\362j\245\266\331u\257\266\327\027\331c\213\336\363\251.q\334\347\037\353(+\221\303\214D\003\b\222" .string "\263\3027a9$I\251J\257\273\337}\2677\376\344[\377" .string "\211\317_\351\273\371\337\364\374\377" .string "=\377" .string "\013\364\322@\377" .string "\357a%\213\301\037\335\037c\243\304{\227\377\320\363\216\273\377" .string "-\365\017\3745w\376|z\242\266\272\317J\312\263\254gX\327\343\200\374\233\234\003\262q\332`\275\337I\217\275\257g\365\\\251\376\307\313\377" .string "I\213\377" .string "\261x\337\373\320\252\342\346\371a\216" .string "\346\306\b\214\177N\035\231\347\2031\234\210\307=\317\350\311\242\222\275\373\037/\375&/\376\305\343\177\357B_\261\362\377" .string "\322b\377" .string "\354^7\376\364'\375\363\226\377" .string "?\213\377" .string "\f\207\375\362\337\273\346\377" .string "7?\361d\321I^\375\217\227\376\223\027\377" .string "b\361\277\367\241/\330\371\177\3511\177\366/\033\377" .string "z\022\373\347-\376\177\027\376\031\017\373\345}\3377\371\271\377" .string "\213'\251\377" .string "\357a$\177\262]\343_\376'=\037\347j\372_\275\374\347\363\037\367g\372?\374*K\033\336\307\373\361\377" .string "\032.\207\004\377" .string "t\375\217\377\331" .string "8BIM\004!" .string "" .string "" .string "" .string "" .string "W" .string "" .string "" .string "\001\001" .string "" .string "" .string "\017" .string "A" .string "d" .string "o" .string "b" .string "e" .string " " .string "P" .string "h" .string "o" .string "t" .string "o" .string "s" .string "h" .string "o" .string "p" .string "" .string "" .string "\024" .string "A" .string "d" .string "o" .string "b" .string "e" .string " " .string "P" .string "h" .string "o" .string "t" .string "o" .string "s" .string "h" .string "o" .string "p" .string " " .string "2" .string "0" .string "2" .string "0" .string "" .string "" .string "\001" .string "8BIM\004\006" .string "" .string "" .string "" .string "" .string "\007" .string "\006" .string "" .string "" .string "\001\001" .string "\377\341\021#http://ns.adobe.com/xap/1.0/" .ascii "<?xpacket begin=\"\357\273\277\" id=\"W5M0MpCehiHzreSzNTczkc" .ascii "9d\"?> <x:xmpmeta xmlns:x=\"adobe:ns:meta/\" x:xmptk=\"Adobe" .ascii " XMP Core 6.0-c002 79.164360, 2020/02/13-01:07:22 \">" .ascii " <rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-synta" .ascii "x-ns#\"> <rdf:Description rdf:about=\"\" xmlns:xmp=\"http://" .ascii "ns.adobe.com/xap/1.0/\" xmlns:photoshop=\"http://ns.adobe.co" .ascii "m/photoshop/1.0/\" xmlns:dc=\"http://purl.org/dc/elements/1." .ascii "1/\" xmlns:xmpMM=\"http://ns.adobe.com/xap/1.0/mm/\" xmlns:s" .ascii "tEvt=\"http://ns.adobe.com/xap/1.0/sType/ResourceEvent#\" xm" .ascii "lns:stRef=\"http://ns.adobe.com/xap/1.0/sType/ResourceRef#\"" .ascii " xmp:CreatorTool=\"Adobe Photoshop 21.1 (Windows)\" xmp:Crea" .ascii "teDate=\"2020-07-28T09:24:58+08:00\" xmp:MetadataDate=\"2020" .ascii "-07-30T18:12:17+08:00\" xmp:ModifyDate=\"2020-07-30T18:12:17" .ascii "+08:00\" photoshop:ColorMode=\"3\" dc:format=\"image/jpeg\" " .ascii "xmpMM:InstanceID=\"xmp.iid:bfa73640-bf07-f545-9717-c052b5385" .ascii "412\" xmpMM:D" .ascii "ocumentID=\"adobe:docid:photoshop:21996959-6612-a744-8009-41" .ascii "316555e2db\" xmpMM:OriginalDocumentID=\"xmp.did:e8aa3e6f-923" .ascii "0-ab48-9c07-f6fa83fa0c7a\"> <photoshop:DocumentAncestors> <r" .ascii "df:Bag> <rdf:li>xmp.did:7c6731f6-cdb0-3347-9b5d-f5bafefe2584" .ascii "</rdf:li> </rdf:Bag> </photoshop:DocumentAncestors> <xmpMM:H" .ascii "istory> <rdf:Seq> <rdf:li stEvt:action=\"created\" stEvt:ins" .ascii "tanceID=\"xmp.iid:e8aa3e6f-9230-ab48-9c07-f6fa83fa0c7a\" stE" .ascii "vt:when=\"2020-07-28T09:24:58+08:00\" stEvt:softwareAgent=\"" .ascii "Adobe Photoshop 21.1 (Windows)\"/> <rdf:li stEvt:action=\"sa" .ascii "ved\" stEvt:instanceID=\"xmp.iid:2bc6eff6-a4f0-584e-ab71-286" .ascii "3c3ba708f\" stEvt:when=\"2020-07-30T18:12:17+08:00\" stEvt:s" .ascii "oftwareAgent=\"Adobe Photoshop 21.1 (Windows)\" stEvt:change" .ascii "d=\"/\"/> <rdf:li stEvt:action=\"converted\" stEvt:parameter" .ascii "s=\"from application/vnd.adobe.photoshop to image/jpeg\"/> <" .ascii "rdf:li stEvt:action=\"derived\" stEvt:parameters=\"converted" .ascii " from application/vnd.adobe.photoshop to image/jpeg\"/> <rdf" .ascii ":li stEvt:action=\"saved\" stEvt:instanceID=\"xmp.iid:bfa736" .ascii "40-bf07-f545-9717-c052b5385412\" stEvt:when=\"2020-07-30T18:" .ascii "12:17+08:00\" stEvt:softwareAgent=\"Adobe Photoshop 21.1 (Wi" .ascii "ndows)\" stEvt:changed=\"/\"/> </rdf:Seq> </xmpMM:History> <" .ascii "xmpMM:DerivedFrom stRef:instanceID=\"xmp.iid:2bc6eff6-a4f0-5" .ascii "84e-ab71-2863c3ba708f\" stRef:documentID=\"xmp.did:e8aa3e6f-" .ascii "9230-ab48-9c07-f6fa83fa0c7a\" stRef:originalDocumentID=\"xmp" .ascii ".did:e8aa3e6f-9230-ab48-9c07-f6fa83fa0c7a\"/> </rdf:Descript" .ascii "ion> </rdf:RDF> </x:xmpmeta> " .ascii " " .ascii " " .ascii " " .ascii " " .ascii " " .ascii " " .ascii " " .ascii " " .ascii " " .ascii " " .ascii " " .ascii " " .ascii " " .ascii " " .ascii " " .ascii " " .ascii " " .ascii " " .ascii " " .ascii " " .ascii " " .ascii " " .ascii " " .ascii " " .ascii " " .ascii " " .ascii " " .ascii " " .ascii " " .ascii " " .ascii " " .string " <?xpacket end=\"w\"?>\377\356" .string "\016Adobe" .string "d@" .string "" .string "" .string "\001\377\333" .string "\204" .string "\002\002\002\002\002\002\002\002\002\002\003\002\002\002\003\004\003\002\002\003\004\005\004\004\004\004\004\005\006\005\005\005\005\005\005\006\006\007\007\b\007\007\006\t\t\n\n\t\t\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\001\003\003\003\005\004\005\t\006\006\t\r\n\t\n\r\017\016\016\016\016\017\017\f\f\f\f\f\017\017\f\f\f\f\f\f\017\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\f\377\300" .string "\021\b" .string "(" .string "@\003\001\021" .string "\002\021\001\003\021\001\377\335" .string "\004" .string "\b\377\304\001\242" .string "" .string "" .string "\007\001\001\001\001\001" .string "" .string "" .string "" .string "" .string "" .string "" .string "" .string "\004\005\003\002\006\001" .string "\007\b\t\n\013\001" .string "\002\002\003\001\001\001\001\001" .string "" .string "" .string "" .string "" .string "" .string "" .string "\001" .string "\002\003\004\005\006\007\b\t\n\013\020" .string "\002\001\003\003\002\004\002\006\007\003\004\002\006\002s\001\002\003\021\004" .string "\005!\0221AQ\006\023a\"q\201\0242\221\241\007\025\261B#\301R\321\3413\026b\360$r\202\361%C4S\222\242\262cs\3025D'\223\243\2636\027Tdt\303\322\342\b&\203\t\n\030\031\204\224EF\244\264V\323U(\032\362\343\363\304\324\344\364eu\205\225\245\265\305\325\345\365fv\206\226\246\266\306\326\346\3667GWgw\207\227\247\267\307\327\347\3678HXhx\210\230\250\270\310\330\350\370)9IYiy\211\231\251\271\311\331\351\371*:JZjz\212\232\252\272\312\332\352\372\021" .string "\002\002\001\002\003\005\005\004\005\006\004\b\003\003m\001" .ascii "\002\021\003\004!\0221A\005Q\023a\"\006q\201\2212\241\261\360" .ascii "\024\301\321\341#B\025Rbr\3613$4C\202\026\222S%\242c\262\302" .ascii "\007s\3225\342D\203\027T\223\b\t\n\030\031&6E\032'dtU7\362\243" .ascii "\263\303()" .string "\323\343\363\204\224\244\264\304\324\344\364eu\205\225\245\265\305\325\345\365FVfv\206\226\246\266\306\326\346\366GWgw\207\227\247\267\307\327\347\3678HXhx\210\230\250\270\310\330\350\3709IYiy\211\231\251\271\311\331\351\371*:JZjz\212\232\252\272\312\332\352\372\377\332" .string "\f\003\001" .string "\002\021\003\021" .string "?" .string "\371\371\036\277\347\377" .string "\314\037\371\311/\314\217\313i?\347!\374\365\371\177\365\257;k:o\223\3554\373\213\373\333_\335\352\027*\260zi\250\332-\274qF\203\217\032\212l" .string "\246y\004\264z\036\315\366{M\256\035\235\247\317X1\313!\220\204e\274#\352\277\016fr\221;\335w\333\337\f\372\235gkf\323\035^\\W\226b" .string "\031H}Go\256< " .string "\203\266\217\317\263I\371\203\255\334\177\316Z\371\377" .string "N\374\273\374\271\270\264\3235\1776\\6\255\365\271\365k\251\236\037\252[\351\321j\222s\t\351\362i=a\261\007\216Y3\241\210\323\342\035\221\247\226\247P%(\343\036\037\b\307\020\017\034\262\034B\256\350G\203\237V\021\216\244\370\263:\374\243\016\"\"dx\354\314\232\341\020\023<\273\370\220\376q\321\277?\274\227\246~qjZ\207\374\344O\234n\323\362\273\3745>\226\366\332\306\246\321k6^f\222E\267\270Y\032\364\0308*T\251W\251\252\326\203\221\237fj\273\017_\223G\bvv\021\371\237\030J\361\343\274R\300\007\024k\203\325d\363\270\355\277\220\216\267\007i\351a\250\224\265y\017\203\341\221R\225N9I\243\365zj\271Q\375,\203R\362\237\3476\205\253\371\221\274\303\377" .string "9Q\347\r#\311~N\362\306\211\346/1\371\255\257\265ieI5\352\255\245\224\026Q\337\223+\263\253(c\"\215\252i\3230\360v\217dj1b\360{+\f\363\346\313\223\034!\303\214\n\303\365\316S0\364\212\243\\'\342\344\345\321\353\360\344\237\211\256\311\034x\341\t\312W;\375\347\323\021\036-\315\371\2063ag\371\345\346\357&y\353\316\177\225\377" .string "\237\277\231\277\230v\336S\326\264\375+M\322l\233Y[\335B;\310\026Y\256\f\021_\334<\"\006%H\243\203N\\\200\314\374\331{\027E\253\301\245\327\366~\227Nr\302S2\227\205\301\003\023B<F\021\022\342\033\337\246\271Qqq\343\355\035F\237.}.\257>Q\tF \016>)X\262hH\221\\\272\367\333\317\2778\274\337\371\333\371M\371\223\346\217\313\337\371_^x\327\377" .string "\303r\301\027\351\177\323:\225\257\255\353\333Eq_G\353\223q\247\253\307\355\236\225\366\315\307\263]\233\330\335\263\331\370\265\237\220\301\217\304\004\360\370p\225T\214y\360F\371_ \353\273gY\332\035\235\253\236\237\363Ye\301[\361H]\200yq\036\376\367\231\377" .string "\312\364\374\355\377" .string "\313\305\347\217\374(u/\373(\315\357\372\023\354o\371C\301\377" .string "*\241\377" .string "\022\353?\227{C\376R2\377" .string "\247\227\353zO\344\327\347/\347\006\251\371\301\371S\246j\177\232\336q\324t\335G\316:\025\256\241\247\335k\272\204\320O\004\332\204\t$R\306\363\225tu$2\221B69\243\366\233\331\236\311\303\331:\274\230\364\230c(\341\310A\030\340\b\"\022 \202#`\203\270!\331v7l\353\262k\260FY\362\020r@\020g\"\b2\026\b\276O\377\320\3711\256y\351?,\377" .string "\347-<\351\347\311t\306\326#\362\317\3466\277w&\230\262\210\032e\375!t\205D\205\034)\243W\354\234\341t\275\222{W\331l\032A.\003\223M\210qU\327\242'\225\217\275\351sk\306\207\266\362j\fx\2703L\325\325\372\212W\345?\316\275'O\264\374\313\362\327\234\374\227'\232\274\215\371\225\252\307\255\334\350\226\372\221\260\272\261\275\202\341\347\212H.\204\022\203P\374\034\030\376 \001\034{\344v\207\262\371rOM\237K\230b\317\247\201\200\221\207\034g\022\004H\224x\207u\215\366=\355zN\334\204#\233\026||x\263K\212\204\270Ld\r\212\225\037q\331\226O\377" .string "91i\346=c\363=|\367\344\025\326<\227\371\227k\242\331\237,i\272\223\330M\246\301\345\346'NX.\3143s\343\310\372\234\223\342$\221\304|9\257\207\260\322\322\342\322\376SQ\301\233NrK\216P\023\0239\277\274\342\205\306\257\370h\355]y\271R\366\2369\362g\374\306.,y\204\007\b\227\t\210\307\364T\250\337\236\333\375\213\257\377" .string "\347'\240\363\027\230\2770\217\232\377" .string "/\242\325?/\2770\264\255#G\271\362]\276\245%\265\305\224:\r\016\235$\032\207\242\345\244\211\213\263\026\212\214Z\233\r\260a\366\022Zm>\237\362\372\203\035F\t\344\230\310`$$s\177x%\216\306\304P\025-\253\251NOj\006l\271|lBX\262\30610\022\243\021\217\351\"U\314nyn\304\227\363\263M\320\274\201\347\317 y\013\313z\247\224\354|\325\256\351\272\276\223\250\035e\247\272\262\216\312\001\024\321<\261\333\333\231\f\316\013Tq" .string "7\032\0365m\201\366[&\243]\247\326k2C,\261c\234$<:\214\314\215\202\001\224\253\204m\326\352\372\355\210;r\030t\271t\372xJ\002s\214\201\342\263\036\021D]\013\277\207:\351\274/\363\237\363\022/\315\177\314\3375~`\301\245>\211\027\230\346\202D\322\336a;D \266\212\336\206@\221\206\257\245_\262:\3236\236\314v1\354n\316\305\2433\3438\301\034UWr2\345g\277\275\301\355\256\321\035\241\254\311\250\021\341\023\255\256\352\200\037\241\345\371\276uoT\374\213\377" .string "\311\333\371;\377" .string "\201\307\227\277\356\245o\232\017k?\343\033Y\377" .string "\b\313\376\342N\327\260\277\343CO\377" .string "\r\207\373\240\377" .string "\377\321\370\253\371\351\377" .string "\223\267\363\213\377" .string "\003\2170\377" .string "\335J\3439\377" .string "d\377" .string "\343\033G\377" .string "\b\305\376\342.\323\267\177\343CQ\377" .string "\r\237\373\242\362\274\337\272\247b\256\305]\212\273\025v*\365O\310\277\374\235\277\223\277\370\034y{\376\352V\371\240\366\263\3761\265\237\360\214\277\356$\355{\013\37644\377" .string "\360\330\177\272\017\377\322\370\253\371\351\377" .string "\223\267\363\213\377" .string "\003\2170\377" .string "\335J\3439\377" .string "d\377" .string "\343\033G\377" .string "\b\305\376\342.\323\267\177\343CQ\377" .string "\r\237\373\242\362\274\337\272\247b\256\305]\212\273\025v*\365O\310\277\374\235\277\223\277\370\034y{\376\352V\371\240\366\263\3761\265\237\360\214\277\356$\355{\013\37644\377" .string "\360\330\177\272\017\377\323\371=\371\313\3715\371\301\252~p~kjzg\345O\234u\0357Q\363\216\273u\247\352\026\272\026\2414\023\3016\241;\307,R$\005]\035H*\300\320\215\306p~\314\373M\3318{'I\217&\257\fe\0348\301\007$\001\004B \202\f\254\020v \2757l\3666\273&\273<\243\203!\007$\310\"\022 \203#D\032\344\363o\371Q\177\235\277\371g|\361\377" .string "\204\366\245\377" .string "d\371\274\377" .string "E\235\215\377" .string ")\230?\345l?\342\235o\362\027h\177\312>_\364\222\375N\377" .string "\225\027\371\333\377" .string "\226w\317\037\370Oj_\366O\217\372,\354o\371L\301\377" .string "+a\377" .string "\024\277\310]\241\377" .ascii "(\371\177\322K\365;\376T_\347o\376Y\337<\177\341=\251\177\331" .ascii ">?\350\263" .string "\261\277\3453\007\374\255\207\374R\377" .string "!v\207\374\243\345\377" .string "I/\324\357\371Q\177\235\277\371g|\361\377" .string "\204\366\245\377" .string "d\370\377" .string "\242\316\306\377" .string "\224\314\037\362\266\037\361K\374\205\332\037\362\217\227\375$\277S\277\345E\376v\377" .string "\345\235\363\307\376\023\332\227\375\223\343\376\213;\033\376S0\177\312\330\177\305/\362\027h\177\312>_\364\222\375N\377" .string "\225\027\371\333\377" .string "\226w\317\037\370Oj_\366O\217\372,\354o\371L\301\377" .string "+a\377" .string "\024\277\310]\241\377" .string "(\371\177\322K\365='\362k\362k\363\203K\374\340\374\251\324\365?\312\2378\351\332n\235\347\035\n\353P\324.\264-B\030 \202\035B\007\222Ydx\002\242\"\202Y\211\240\033\234\321\373M\3557d\346\354\235^<z\2742\224\260\344" .string "\f\220$\223\t" .string "" .string "\022\262I\330" .string "\354\273\033\261\265\330\365\330%,\031" .string "\031 I0\220" .ascii "\t\013$\327'\377\331" ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .data .align 3 .type targets, %object .size targets, 20 targets: .word 100000 .word 400000 .word 1000000 .word 5000000 .word 10000000 .text .align 2 .type find_best, %function find_best: .LFB6: .cfi_startproc sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, 12] str w1, [sp, 8] mov w0, -1 str w0, [sp, 20] ldr w0, [sp, 12] str w0, [sp, 24] .L5: ldr w0, [sp, 20] add w0, w0, 1 str w0, [sp, 20] ldr w0, [sp, 24] lsr w1, w0, 31 add w0, w1, w0 asr w0, w0, 1 str w0, [sp, 24] ldr w1, [sp, 24] ldr w0, [sp, 8] cmp w1, w0 bne .L2 ldr w0, [sp, 20] b .L3 .L2: ldr w1, [sp, 24] ldr w0, [sp, 8] sub w0, w1, w0 cmp w0, 0 ble .L4 ldr w0, [sp, 20] cmp w0, 6 ble .L5 .L4: ldr w0, [sp, 24] lsl w0, w0, 1 str w0, [sp, 28] ldr w1, [sp, 8] ldr w0, [sp, 24] sub w1, w1, w0 ldr w2, [sp, 28] ldr w0, [sp, 8] sub w0, w2, w0 cmp w1, w0 ble .L6 ldr w0, [sp, 20] sub w0, w0, #1 b .L3 .L6: ldr w0, [sp, 20] .L3: add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size find_best, .-find_best .align 2 .type real_clk, %function real_clk: .LFB7: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, 12] str w1, [sp, 8] ldr w0, [sp, 8] mov w1, 2 lsl w0, w1, w0 ldr w1, [sp, 12] sdiv w0, w1, w0 add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size real_clk, .-real_clk .section .rodata .align 3 .LC0: .string "usage: %s <APB1 clk> <APB2 clk> (in Hz)\n" .align 3 .LC1: .string "error: invalid APB clock speed values" .align 3 .LC2: .string "static const uint8_t spi_divtable[2][%i] = {\n" .align 3 .LC3: .string " { /* for APB%i @ %iHz */\n" .align 3 .LC4: .string " %i%c /* -> %iHz */\n" .align 3 .LC5: .string "," .align 3 .LC6: .string "" .align 3 .LC7: .string " }%s\n" .align 3 .LC8: .string "};" .text .align 2 .global main .type main, %function main: .LFB8: .cfi_startproc stp x29, x30, [sp, -80]! .cfi_def_cfa_offset 80 .cfi_offset 29, -80 .cfi_offset 30, -72 mov x29, sp str x19, [sp, 16] .cfi_offset 19, -64 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, 72] mov x1, 0 mov w0, 5 str w0, [sp, 56] ldr w0, [sp, 44] cmp w0, 3 beq .L10 ldr x0, [sp, 32] ldr x0, [x0] mov x1, x0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf mov w0, 1 b .L22 .L10: ldr x0, [sp, 32] add x0, x0, 8 ldr x0, [x0] bl atoi str w0, [sp, 64] ldr x0, [sp, 32] add x0, x0, 16 ldr x0, [x0] bl atoi str w0, [sp, 68] ldr w0, [sp, 64] cmp w0, 0 ble .L12 ldr w0, [sp, 68] cmp w0, 0 bgt .L13 .L12: adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl puts mov w0, 1 b .L22 .L13: ldr w1, [sp, 56] adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf str wzr, [sp, 48] b .L14 .L21: ldr w0, [sp, 48] add w3, w0, 1 ldrsw x0, [sp, 48] lsl x0, x0, 2 add x1, sp, 64 ldr w0, [x1, x0] mov w2, w0 mov w1, w3 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl printf str wzr, [sp, 52] b .L15 .L18: ldrsw x0, [sp, 48] lsl x0, x0, 2 add x1, sp, 64 ldr w2, [x1, x0] adrp x0, targets add x0, x0, :lo12:targets ldrsw x1, [sp, 52] ldr w0, [x0, x1, lsl 2] mov w1, w0 mov w0, w2 bl find_best str w0, [sp, 60] ldr w0, [sp, 56] sub w0, w0, #1 ldr w1, [sp, 52] cmp w1, w0 bge .L16 mov w19, 44 b .L17 .L16: mov w19, 32 .L17: ldrsw x0, [sp, 48] lsl x0, x0, 2 add x1, sp, 64 ldr w0, [x1, x0] ldr w1, [sp, 60] bl real_clk mov w3, w0 mov w2, w19 ldr w1, [sp, 60] adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl printf ldr w0, [sp, 52] add w0, w0, 1 str w0, [sp, 52] .L15: ldr w1, [sp, 52] ldr w0, [sp, 56] cmp w1, w0 blt .L18 ldr w0, [sp, 48] cmp w0, 0 bne .L19 adrp x0, .LC5 add x0, x0, :lo12:.LC5 b .L20 .L19: adrp x0, .LC6 add x0, x0, :lo12:.LC6 .L20: mov x1, x0 adrp x0, .LC7 add x0, x0, :lo12:.LC7 bl printf ldr w0, [sp, 48] add w0, w0, 1 str w0, [sp, 48] .L14: ldr w0, [sp, 48] cmp w0, 1 bls .L21 adrp x0, .LC8 add x0, x0, :lo12:.LC8 bl puts mov w0, 0 .L22: 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 .L23 bl __stack_chk_fail .L23: 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 .LFE8: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global ocorrencia .type ocorrencia, %function ocorrencia: .LFB0: .cfi_startproc sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, 8] strb w1, [sp, 7] str wzr, [sp, 28] str wzr, [sp, 24] b .L2 .L4: ldrsw x0, [sp, 24] ldr x1, [sp, 8] add x0, x1, x0 ldrb w0, [x0] ldrb w1, [sp, 7] cmp w1, w0 bne .L3 ldr w0, [sp, 28] add w0, w0, 1 str w0, [sp, 28] .L3: ldr w0, [sp, 24] add w0, w0, 1 str w0, [sp, 24] .L2: ldrsw x0, [sp, 24] ldr x1, [sp, 8] add x0, x1, x0 ldrb w0, [x0] cmp w0, 0 bne .L4 ldr w0, [sp, 28] add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size ocorrencia, .-ocorrencia ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global a .bss .align 2 .type a, %object .size a, 4 a: .zero 4 .global b .align 2 .type b, %object .size b, 4 b: .zero 4 .global c .align 2 .type c, %object .size c, 4 c: .zero 4 .global d .align 2 .type d, %object .size d, 4 d: .zero 4 .global e .align 2 .type e, %object .size e, 4 e: .zero 4 .global a1 .align 2 .type a1, %object .size a1, 4 a1: .zero 4 .global b1 .align 2 .type b1, %object .size b1, 4 b1: .zero 4 .section .rodata .align 3 .LC0: .string "clear" .align 3 .LC1: .string "Dame el primer numero" .align 3 .LC2: .string "%f" .align 3 .LC3: .string "Dame el segundo numero" .align 3 .LC4: .string "Suma" .align 3 .LC5: .string "\t%0.2f + %0.2f = %0.2f\n" .align 3 .LC6: .string "Resta" .align 3 .LC7: .string "\t%f - %f = %f\n" .align 3 .LC8: .string "Multiplicaci\303\203\302\263n" .align 3 .LC9: .string "\t%f * %f = %f\n" .align 3 .LC10: .string "Divisi\303\203\302\263n" .align 3 .LC11: .string "\t%f / %f = %f\n" .align 3 .LC12: .string "M\303\203\302\263dulo" .align 3 .LC13: .string "\tEl m\303\203\302\263dulo de %d/%d es %f\n" .align 3 .LC14: .string "Ra\303\203\302\255z cuadrada del primer numero" .align 3 .LC15: .string "\tLa Ra\303\203\302\255z cuadrada de %f es %f\n" .align 3 .LC16: .string "Ra\303\203\302\255z cuadrada del segundo numero" .align 3 .LC17: .string "Potencia" .align 3 .LC18: .string "\tEl n\303\203\302\272mero %f elevado a la potencia %0.2f es %f\n" .align 3 .LC19: .string "Resultado del reto viral de Agosto" .align 3 .LC20: .string "\tEl resultado de %f/(%f(%f+%f))es %f\n" .align 3 .LC21: .string "\tEl resultado de %f/%f(%f+%f)es %f\n" .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 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl system adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl puts adrp x0, a add x1, x0, :lo12:a adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl __isoc99_scanf adrp x0, a add x0, x0, :lo12:a ldr s0, [x0] fcvtzs s0, s0 adrp x0, a1 add x0, x0, :lo12:a1 str s0, [x0] adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl puts adrp x0, b add x1, x0, :lo12:b adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl __isoc99_scanf adrp x0, b add x0, x0, :lo12:b ldr s0, [x0] fcvtzs s0, s0 adrp x0, b1 add x0, x0, :lo12:b1 str s0, [x0] adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl puts adrp x0, a add x0, x0, :lo12:a ldr s1, [x0] adrp x0, b add x0, x0, :lo12:b ldr s0, [x0] fadd s0, s1, s0 adrp x0, c add x0, x0, :lo12:c str s0, [x0] adrp x0, a add x0, x0, :lo12:a ldr s0, [x0] fcvt d3, s0 adrp x0, b add x0, x0, :lo12:b ldr s0, [x0] fcvt d1, s0 adrp x0, c add x0, x0, :lo12:c ldr s0, [x0] fcvt d0, s0 fmov d2, d0 fmov d0, d3 adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl printf adrp x0, .LC6 add x0, x0, :lo12:.LC6 bl puts adrp x0, a add x0, x0, :lo12:a ldr s1, [x0] adrp x0, b add x0, x0, :lo12:b ldr s0, [x0] fsub s0, s1, s0 adrp x0, c add x0, x0, :lo12:c str s0, [x0] adrp x0, a add x0, x0, :lo12:a ldr s0, [x0] fcvt d3, s0 adrp x0, b add x0, x0, :lo12:b ldr s0, [x0] fcvt d1, s0 adrp x0, c add x0, x0, :lo12:c ldr s0, [x0] fcvt d0, s0 fmov d2, d0 fmov d0, d3 adrp x0, .LC7 add x0, x0, :lo12:.LC7 bl printf adrp x0, .LC8 add x0, x0, :lo12:.LC8 bl puts adrp x0, a add x0, x0, :lo12:a ldr s1, [x0] adrp x0, b add x0, x0, :lo12:b ldr s0, [x0] fmul s0, s1, s0 adrp x0, c add x0, x0, :lo12:c str s0, [x0] adrp x0, a add x0, x0, :lo12:a ldr s0, [x0] fcvt d3, s0 adrp x0, b add x0, x0, :lo12:b ldr s0, [x0] fcvt d1, s0 adrp x0, c add x0, x0, :lo12:c ldr s0, [x0] fcvt d0, s0 fmov d2, d0 fmov d0, d3 adrp x0, .LC9 add x0, x0, :lo12:.LC9 bl printf adrp x0, .LC10 add x0, x0, :lo12:.LC10 bl puts adrp x0, a add x0, x0, :lo12:a ldr s1, [x0] adrp x0, b add x0, x0, :lo12:b ldr s0, [x0] fdiv s0, s1, s0 adrp x0, c add x0, x0, :lo12:c str s0, [x0] adrp x0, a add x0, x0, :lo12:a ldr s0, [x0] fcvt d3, s0 adrp x0, b add x0, x0, :lo12:b ldr s0, [x0] fcvt d1, s0 adrp x0, c add x0, x0, :lo12:c ldr s0, [x0] fcvt d0, s0 fmov d2, d0 fmov d0, d3 adrp x0, .LC11 add x0, x0, :lo12:.LC11 bl printf adrp x0, .LC12 add x0, x0, :lo12:.LC12 bl puts adrp x0, a1 add x0, x0, :lo12:a1 ldr w0, [x0] adrp x1, b1 add x1, x1, :lo12:b1 ldr w1, [x1] sdiv w2, w0, w1 mul w1, w2, w1 sub w0, w0, w1 scvtf s0, w0 adrp x0, c add x0, x0, :lo12:c str s0, [x0] adrp x0, a1 add x0, x0, :lo12:a1 ldr w1, [x0] adrp x0, b1 add x0, x0, :lo12:b1 ldr w2, [x0] adrp x0, c add x0, x0, :lo12:c ldr s0, [x0] fcvt d0, s0 adrp x0, .LC13 add x0, x0, :lo12:.LC13 bl printf adrp x0, .LC14 add x0, x0, :lo12:.LC14 bl puts adrp x0, a add x0, x0, :lo12:a ldr s0, [x0] fcvt d0, s0 bl sqrt fcvt s0, d0 adrp x0, c add x0, x0, :lo12:c str s0, [x0] adrp x0, a add x0, x0, :lo12:a ldr s0, [x0] fcvt d2, s0 adrp x0, c add x0, x0, :lo12:c ldr s0, [x0] fcvt d0, s0 fmov d1, d0 fmov d0, d2 adrp x0, .LC15 add x0, x0, :lo12:.LC15 bl printf adrp x0, .LC16 add x0, x0, :lo12:.LC16 bl puts adrp x0, b add x0, x0, :lo12:b ldr s0, [x0] fcvt d0, s0 bl sqrt fcvt s0, d0 adrp x0, c add x0, x0, :lo12:c str s0, [x0] adrp x0, b add x0, x0, :lo12:b ldr s0, [x0] fcvt d2, s0 adrp x0, c add x0, x0, :lo12:c ldr s0, [x0] fcvt d0, s0 fmov d1, d0 fmov d0, d2 adrp x0, .LC15 add x0, x0, :lo12:.LC15 bl printf adrp x0, .LC17 add x0, x0, :lo12:.LC17 bl puts adrp x0, b add x0, x0, :lo12:b ldr s0, [x0] fcvt d2, s0 adrp x0, a add x0, x0, :lo12:a ldr s0, [x0] fcvt d0, s0 fmov d1, d0 fmov d0, d2 bl pow fcvt s0, d0 adrp x0, c add x0, x0, :lo12:c str s0, [x0] adrp x0, b add x0, x0, :lo12:b ldr s0, [x0] fcvt d3, s0 adrp x0, a add x0, x0, :lo12:a ldr s0, [x0] fcvt d1, s0 adrp x0, c add x0, x0, :lo12:c ldr s0, [x0] fcvt d0, s0 fmov d2, d0 fmov d0, d3 adrp x0, .LC18 add x0, x0, :lo12:.LC18 bl printf adrp x0, .LC19 add x0, x0, :lo12:.LC19 bl puts adrp x0, a add x0, x0, :lo12:a ldr s1, [x0] adrp x0, b add x0, x0, :lo12:b ldr s0, [x0] fadd s2, s0, s0 adrp x0, b add x0, x0, :lo12:b ldr s0, [x0] fmul s0, s2, s0 fdiv s0, s1, s0 adrp x0, c add x0, x0, :lo12:c str s0, [x0] adrp x0, a add x0, x0, :lo12:a ldr s1, [x0] adrp x0, b add x0, x0, :lo12:b ldr s0, [x0] fdiv s1, s1, s0 adrp x0, b add x0, x0, :lo12:b ldr s0, [x0] fadd s0, s0, s0 fmul s0, s1, s0 adrp x0, d add x0, x0, :lo12:d str s0, [x0] adrp x0, a add x0, x0, :lo12:a ldr s0, [x0] fcvt d5, s0 adrp x0, b add x0, x0, :lo12:b ldr s0, [x0] fcvt d1, s0 adrp x0, b add x0, x0, :lo12:b ldr s0, [x0] fcvt d2, s0 adrp x0, b add x0, x0, :lo12:b ldr s0, [x0] fcvt d3, s0 adrp x0, c add x0, x0, :lo12:c ldr s0, [x0] fcvt d0, s0 fmov d4, d0 fmov d0, d5 adrp x0, .LC20 add x0, x0, :lo12:.LC20 bl printf adrp x0, a add x0, x0, :lo12:a ldr s0, [x0] fcvt d5, s0 adrp x0, b add x0, x0, :lo12:b ldr s0, [x0] fcvt d1, s0 adrp x0, b add x0, x0, :lo12:b ldr s0, [x0] fcvt d2, s0 adrp x0, b add x0, x0, :lo12:b ldr s0, [x0] fcvt d3, s0 adrp x0, d add x0, x0, :lo12:d ldr s0, [x0] fcvt d0, s0 fmov d4, d0 fmov d0, d5 adrp x0, .LC21 add x0, x0, :lo12:.LC21 bl printf 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 "FLT_RADIX = %d\n\n" .align 3 .LC1: .string "FLT_DIG = %5d FLT_MANT_DIG = %6d\n" .align 3 .LC2: .string "FLT_MAX_10_EXP = %5d FLT_MAX_EXP = %6d\n" .align 3 .LC3: .string "FLT_MIN_10_EXP = %5d FLT_MIN_EXP = %6d\n" .align 3 .LC4: .string " FLT_EPSILON = %f\n" .align 3 .LC5: .string " FLT_MAX = %f\n" .align 3 .LC6: .string " FLT_MIN = %f\n\n" .align 3 .LC7: .string "DBL_DIG = %5d DBL_MANT_DIG = %6d\n" .align 3 .LC8: .string "DBL_MAX_10_EXP = %5d DBL_MAX_EXP = %6d\n" .align 3 .LC9: .string "DBL_MIN_10_EXP = %5d DBL_MIN_EXP = %6d\n" .align 3 .LC10: .string " DBL_EPSILON = %f\n" .align 3 .LC11: .string " DBL_MAX = %f\n" .align 3 .LC12: .string " DBL_MIN = %f\n\n" .align 3 .LC13: .string "LDBL_DIG = %5d LDBL_MANT_DIG = %6d\n" .align 3 .LC14: .string "LDBL_MAX_10_EXP = %5d LDBL_MAX_EXP = %6d\n" .align 3 .LC15: .string "LDBL_MIN_10_EXP = %5d LDBL_MIN_EXP = %6d\n" .align 3 .LC16: .string " LDBL_EPSILON = %f\n" .align 3 .LC17: .string " LDBL_MAX = %f\n" .align 3 .LC18: .string " LDBL_MIN = %f\n" .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc stp x29, x30, [sp, -16]! .cfi_def_cfa_offset 16 .cfi_offset 29, -16 .cfi_offset 30, -8 mov x29, sp mov w1, 2 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf mov w2, 24 mov w1, 6 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf mov w2, 128 mov w1, 38 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf mov w2, -125 mov w1, -37 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl printf mov x0, 4503599627370496000 fmov d0, x0 adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl printf mov x0, 281474439839744 movk x0, 0x47ef, lsl 48 fmov d0, x0 adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl printf mov x0, 4039728865751334912 fmov d0, x0 adrp x0, .LC6 add x0, x0, :lo12:.LC6 bl printf mov w2, 53 mov w1, 15 adrp x0, .LC7 add x0, x0, :lo12:.LC7 bl printf mov w2, 1024 mov w1, 308 adrp x0, .LC8 add x0, x0, :lo12:.LC8 bl printf mov w2, -1021 mov w1, -307 adrp x0, .LC9 add x0, x0, :lo12:.LC9 bl printf mov x0, 4372995238176751616 fmov d0, x0 adrp x0, .LC10 add x0, x0, :lo12:.LC10 bl printf mov x0, 9218868437227405311 fmov d0, x0 adrp x0, .LC11 add x0, x0, :lo12:.LC11 bl printf mov x0, 4503599627370496 fmov d0, x0 adrp x0, .LC12 add x0, x0, :lo12:.LC12 bl printf mov w2, 113 mov w1, 33 adrp x0, .LC13 add x0, x0, :lo12:.LC13 bl printf mov w2, 16384 mov w1, 4932 adrp x0, .LC14 add x0, x0, :lo12:.LC14 bl printf mov w2, -16381 mov w1, -4931 adrp x0, .LC15 add x0, x0, :lo12:.LC15 bl printf adrp x0, .LC19 add x0, x0, :lo12:.LC19 ldr q0, [x0] adrp x0, .LC16 add x0, x0, :lo12:.LC16 bl printf adrp x0, .LC20 add x0, x0, :lo12:.LC20 ldr q0, [x0] adrp x0, .LC17 add x0, x0, :lo12:.LC17 bl printf adrp x0, .LC21 add x0, x0, :lo12:.LC21 ldr q0, [x0] adrp x0, .LC18 add x0, x0, :lo12:.LC18 bl printf mov w0, 0 ldp x29, x30, [sp], 16 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size main, .-main .section .rodata .align 4 .LC19: .word 0 .word 0 .word 0 .word 1066336256 .align 4 .LC20: .word -1 .word -1 .word -1 .word 2147418111 .align 4 .LC21: .word 0 .word 0 .word 0 .word 65536 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global _strspn .type _strspn, %function _strspn: .LFB0: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] ldr x0, [sp, 24] str x0, [sp, 40] b .L2 .L5: ldr x0, [sp, 40] ldrb w0, [x0] mov w1, w0 ldr x0, [sp, 16] bl strchr cmp x0, 0 bne .L3 ldr x1, [sp, 40] ldr x0, [sp, 24] sub x0, x1, x0 b .L4 .L3: ldr x0, [sp, 40] add x0, x0, 1 str x0, [sp, 40] .L2: ldr x0, [sp, 40] ldrb w0, [x0] cmp w0, 0 bne .L5 ldr x1, [sp, 40] ldr x0, [sp, 24] sub x0, x1, x0 .L4: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size _strspn, .-_strspn .section .rodata .align 3 .LC0: .string "apple" .align 3 .LC1: .string "applx" .align 3 .LC2: .string "%d\n" .text .align 2 .global main .type main, %function main: .LFB1: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp adrp x0, .LC0 add x0, x0, :lo12:.LC0 str x0, [sp, 32] adrp x0, .LC1 add x0, x0, :lo12:.LC1 str x0, [sp, 40] ldr x1, [sp, 40] ldr x0, [sp, 32] bl _strspn str w0, [sp, 28] ldr w1, [sp, 28] adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf 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 at_fatal_signal .type at_fatal_signal, %function at_fatal_signal: .LFB0: .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 .LFE0: .size at_fatal_signal, .-at_fatal_signal ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "This is native call c1_f1()" .text .align 2 .global c1_f1 .type c1_f1, %function c1_f1: .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 nop ldp x29, x30, [sp], 16 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size c1_f1, .-c1_f1 .section .rodata .align 3 .LC1: .string "This is native call c1_f2()" .text .align 2 .global c1_f2 .type c1_f2, %function c1_f2: .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 nop ldp x29, x30, [sp], 16 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size c1_f2, .-c1_f2 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "b" .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 mov w0, 97 bl putchar mov x2, 1 adrp x0, .LC0 add x1, x0, :lo12:.LC0 mov w0, 1 bl write mov w0, 97 bl putchar mov x2, 1 adrp x0, .LC0 add x1, x0, :lo12:.LC0 mov w0, 1 bl write mov w0, 97 bl putchar mov x2, 1 adrp x0, .LC0 add x1, x0, :lo12:.LC0 mov w0, 1 bl write mov w0, 0 bl exit .cfi_endproc .LFE6: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "Informe o primeiro numero: " .align 3 .LC1: .string "%d" .align 3 .LC2: .string "Informe o segundo numero: " .align 3 .LC3: .string "Informe a operacao ('+','-','*','/'): " .align 3 .LC4: .string "%c" .align 3 .LC5: .string ">> %d + %d = %d\n" .align 3 .LC6: .string ">> %d - %d = %d\n" .align 3 .LC7: .string ">> %d * %d = %d\n" .align 3 .LC8: .string ">> %d / %d = %.2f\n" .align 3 .LC9: .string "Operacao desconhecida." .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, 32 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf add x0, sp, 36 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl printf adrp x0, :got:stdin ldr x0, [x0, #:got_lo12:stdin] ldr x0, [x0] bl __fpurge add x0, sp, 31 mov x1, x0 adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl __isoc99_scanf ldrb w0, [sp, 31] cmp w0, 43 bne .L2 ldr w4, [sp, 32] ldr w2, [sp, 36] ldr w1, [sp, 32] ldr w0, [sp, 36] add w0, w1, w0 mov w3, w0 mov w1, w4 adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl printf b .L8 .L2: ldrb w0, [sp, 31] cmp w0, 45 bne .L4 ldr w4, [sp, 32] ldr w2, [sp, 36] ldr w1, [sp, 32] ldr w0, [sp, 36] sub w0, w1, w0 mov w3, w0 mov w1, w4 adrp x0, .LC6 add x0, x0, :lo12:.LC6 bl printf b .L8 .L4: ldrb w0, [sp, 31] cmp w0, 42 bne .L5 ldr w4, [sp, 32] ldr w2, [sp, 36] ldr w1, [sp, 32] ldr w0, [sp, 36] mul w0, w1, w0 mov w3, w0 mov w1, w4 adrp x0, .LC7 add x0, x0, :lo12:.LC7 bl printf b .L8 .L5: ldrb w0, [sp, 31] cmp w0, 47 bne .L6 ldr w0, [sp, 32] ldr w1, [sp, 36] ldr s0, [sp, 32] scvtf s1, s0 ldr s0, [sp, 36] scvtf s0, s0 fdiv s0, s1, s0 fcvt d0, s0 mov w2, w1 mov w1, w0 adrp x0, .LC8 add x0, x0, :lo12:.LC8 bl printf b .L8 .L6: adrp x0, .LC9 add x0, x0, :lo12:.LC9 bl puts .L8: 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 .L7 bl __stack_chk_fail .L7: 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 time_stamp .type time_stamp, %function time_stamp: .LFB6: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 40] mov x1, 0 add x0, sp, 24 mov x1, 0 bl gettimeofday ldr d0, [sp, 24] scvtf d1, d0 ldr d0, [sp, 32] scvtf d0, d0 adrp x0, .LC0 ldr d2, [x0, #:lo12:.LC0] fmul d0, d0, d2 fadd d0, d1, d0 str d0, [sp, 16] ldr d0, [sp, 16] 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 .L3 bl __stack_chk_fail .L3: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size time_stamp, .-time_stamp .global time1 .bss .align 3 .type time1, %object .size time1, 8 time1: .zero 8 .global time2 .align 3 .type time2, %object .size time2, 8 time2: .zero 8 .global error_ref .data .align 2 .type error_ref, %object .size error_ref, 4 error_ref: .word 980517333 .global resid_ref .align 2 .type resid_ref, %object .size resid_ref, 4 resid_ref: .word 852120686 .global n .bss .align 2 .type n, %object .size n, 4 n: .zero 4 .global m .align 2 .type m, %object .size m, 4 m: .zero 4 .global mits .align 2 .type mits, %object .size mits, 4 mits: .zero 4 .global tol .align 2 .type tol, %object .size tol, 4 tol: .zero 4 .global relax .data .align 2 .type relax, %object .size relax, 4 relax: .word 1065353216 .global alpha .align 2 .type alpha, %object .size alpha, 4 alpha: .word 1029597613 .global u .bss .align 3 .type u, %object .size u, 1048576 u: .zero 1048576 .global f .align 3 .type f, %object .size f, 1048576 f: .zero 1048576 .global uold .align 3 .type uold, %object .size uold, 1048576 uold: .zero 1048576 .global dx .align 2 .type dx, %object .size dx, 4 dx: .zero 4 .global dy .align 2 .type dy, %object .size dy, 4 dy: .zero 4 .text .align 2 .global main .type main, %function main: .LFB7: .cfi_startproc stp x29, x30, [sp, -16]! .cfi_def_cfa_offset 16 .cfi_offset 29, -16 .cfi_offset 30, -8 mov x29, sp adrp x0, n add x0, x0, :lo12:n mov w1, 512 str w1, [x0] adrp x0, m add x0, x0, :lo12:m mov w1, 512 str w1, [x0] adrp x0, tol add x0, x0, :lo12:tol mov w1, 59135 movk w1, 0x2edb, lsl 16 fmov s0, w1 str s0, [x0] adrp x0, mits add x0, x0, :lo12:mits mov w1, 5000 str w1, [x0] bl driver mov w0, 0 ldp x29, x30, [sp], 16 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size main, .-main .section .rodata .align 3 .LC1: .string "------------------------" .align 3 .LC2: .string "Execution time = %f\n" .text .align 2 .global driver .type driver, %function driver: .LFB8: .cfi_startproc stp x29, x30, [sp, -16]! .cfi_def_cfa_offset 16 .cfi_offset 29, -16 .cfi_offset 30, -8 mov x29, sp bl initialize bl time_stamp adrp x0, time1 add x0, x0, :lo12:time1 str d0, [x0] bl jacobi bl time_stamp adrp x0, time2 add x0, x0, :lo12:time2 str d0, [x0] adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl puts adrp x0, time2 add x0, x0, :lo12:time2 ldr d1, [x0] adrp x0, time1 add x0, x0, :lo12:time1 ldr d0, [x0] fsub d0, d1, d0 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf bl error_check nop ldp x29, x30, [sp], 16 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE8: .size driver, .-driver .align 2 .global initialize .type initialize, %function initialize: .LFB9: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 adrp x0, n add x0, x0, :lo12:n ldr w0, [x0] sub w0, w0, #1 scvtf d0, w0 fmov d1, 2.0e+0 fdiv d0, d1, d0 fcvt s0, d0 adrp x0, dx add x0, x0, :lo12:dx str s0, [x0] adrp x0, m add x0, x0, :lo12:m ldr w0, [x0] sub w0, w0, #1 scvtf d0, w0 fmov d1, 2.0e+0 fdiv d0, d1, d0 fcvt s0, d0 adrp x0, dy add x0, x0, :lo12:dy str s0, [x0] str wzr, [sp] b .L8 .L11: str wzr, [sp, 4] b .L9 .L10: ldr w0, [sp] sub w0, w0, #1 scvtf s1, w0 adrp x0, dx add x0, x0, :lo12:dx ldr s0, [x0] fmul s0, s1, s0 fcvt d1, s0 fmov d0, 1.0e+0 fsub d0, d1, d0 fcvtzs w0, d0 str w0, [sp, 8] ldr w0, [sp, 4] sub w0, w0, #1 scvtf s1, w0 adrp x0, dy add x0, x0, :lo12:dy ldr s0, [x0] fmul s0, s1, s0 fcvt d1, s0 fmov d0, 1.0e+0 fsub d0, d1, d0 fcvtzs w0, d0 str w0, [sp, 12] adrp x0, u add x0, x0, :lo12:u ldrsw x1, [sp, 4] ldrsw x2, [sp] lsl x2, x2, 9 add x1, x2, x1 str wzr, [x0, x1, lsl 2] adrp x0, alpha add x0, x0, :lo12:alpha ldr s0, [x0] fcvt d0, s0 fneg d1, d0 ldr w0, [sp, 8] mul w0, w0, w0 scvtf d0, w0 fmov d2, 1.0e+0 fsub d0, d2, d0 fmul d1, d1, d0 ldr w0, [sp, 12] mul w0, w0, w0 scvtf d0, w0 fmov d2, 1.0e+0 fsub d0, d2, d0 fmul d1, d1, d0 ldr w0, [sp, 8] mul w0, w0, w0 scvtf d0, w0 fmov d2, 1.0e+0 fsub d0, d2, d0 fadd d0, d0, d0 fsub d1, d1, d0 ldr w0, [sp, 12] mul w0, w0, w0 scvtf d0, w0 fmov d2, 1.0e+0 fsub d0, d2, d0 fadd d0, d0, d0 fsub d0, d1, d0 fcvt s0, d0 adrp x0, f add x0, x0, :lo12:f ldrsw x1, [sp, 4] ldrsw x2, [sp] lsl x2, x2, 9 add x1, x2, x1 str s0, [x0, x1, lsl 2] ldr w0, [sp, 4] add w0, w0, 1 str w0, [sp, 4] .L9: adrp x0, m add x0, x0, :lo12:m ldr w0, [x0] ldr w1, [sp, 4] cmp w1, w0 blt .L10 ldr w0, [sp] add w0, w0, 1 str w0, [sp] .L8: adrp x0, n add x0, x0, :lo12:n ldr w0, [x0] ldr w1, [sp] cmp w1, w0 blt .L11 nop nop add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE9: .size initialize, .-initialize .section .rodata .align 3 .LC3: .string "Finished %d iteration with error =%f\n" .align 3 .LC4: .string "Total Number of Iterations:%d\n" .align 3 .LC5: .string "Residual:%E\n" .align 3 .LC6: .string "Residual_ref :%E\n" .align 3 .LC7: .string "Diff ref=%E\n" .align 3 .LC8: .string "program.c" .align 3 .LC9: .string "fabs(error-resid_ref) < 1E-14" .text .align 2 .global jacobi .type jacobi, %function jacobi: .LFB10: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp adrp x0, relax add x0, x0, :lo12:relax ldr s0, [x0] str s0, [sp, 44] adrp x0, dx add x0, x0, :lo12:dx ldr s1, [x0] adrp x0, dx add x0, x0, :lo12:dx ldr s0, [x0] fmul s0, s1, s0 fmov s1, 1.0e+0 fdiv s0, s1, s0 str s0, [sp, 48] adrp x0, dy add x0, x0, :lo12:dy ldr s1, [x0] adrp x0, dy add x0, x0, :lo12:dy ldr s0, [x0] fmul s0, s1, s0 fmov s1, 1.0e+0 fdiv s0, s1, s0 str s0, [sp, 52] adrp x0, dx add x0, x0, :lo12:dx ldr s1, [x0] adrp x0, dx add x0, x0, :lo12:dx ldr s0, [x0] fmul s0, s1, s0 fcvt d0, s0 fmov d1, -2.0e+0 fdiv d1, d1, d0 adrp x0, dy add x0, x0, :lo12:dy ldr s2, [x0] adrp x0, dy add x0, x0, :lo12:dy ldr s0, [x0] fmul s0, s2, s0 fcvt d0, s0 fmov d2, 2.0e+0 fdiv d0, d2, d0 fsub d1, d1, d0 adrp x0, alpha add x0, x0, :lo12:alpha ldr s0, [x0] fcvt d0, s0 fsub d0, d1, d0 fcvt s0, d0 str s0, [sp, 56] adrp x0, tol add x0, x0, :lo12:tol ldr s1, [x0] fmov s0, 1.0e+1 fmul s0, s1, s0 str s0, [sp, 40] mov w0, 1 str w0, [sp, 36] b .L13 .L24: str wzr, [sp, 40] str wzr, [sp, 28] b .L14 .L17: str wzr, [sp, 32] b .L15 .L16: adrp x0, u add x0, x0, :lo12:u ldrsw x1, [sp, 32] ldrsw x2, [sp, 28] lsl x2, x2, 9 add x1, x2, x1 ldr s0, [x0, x1, lsl 2] adrp x0, uold add x0, x0, :lo12:uold ldrsw x1, [sp, 32] ldrsw x2, [sp, 28] lsl x2, x2, 9 add x1, x2, x1 str s0, [x0, x1, lsl 2] ldr w0, [sp, 32] add w0, w0, 1 str w0, [sp, 32] .L15: adrp x0, m add x0, x0, :lo12:m ldr w0, [x0] ldr w1, [sp, 32] cmp w1, w0 blt .L16 ldr w0, [sp, 28] add w0, w0, 1 str w0, [sp, 28] .L14: adrp x0, n add x0, x0, :lo12:n ldr w0, [x0] ldr w1, [sp, 28] cmp w1, w0 blt .L17 mov w0, 1 str w0, [sp, 28] b .L18 .L21: mov w0, 1 str w0, [sp, 32] b .L19 .L20: ldr w0, [sp, 28] sub w2, w0, #1 adrp x0, uold add x0, x0, :lo12:uold ldrsw x1, [sp, 32] sxtw x2, w2 lsl x2, x2, 9 add x1, x2, x1 ldr s1, [x0, x1, lsl 2] ldr w0, [sp, 28] add w2, w0, 1 adrp x0, uold add x0, x0, :lo12:uold ldrsw x1, [sp, 32] sxtw x2, w2 lsl x2, x2, 9 add x1, x2, x1 ldr s0, [x0, x1, lsl 2] fadd s1, s1, s0 ldr s0, [sp, 48] fmul s1, s1, s0 ldr w0, [sp, 32] sub w1, w0, #1 adrp x0, uold add x0, x0, :lo12:uold sxtw x1, w1 ldrsw x2, [sp, 28] lsl x2, x2, 9 add x1, x2, x1 ldr s2, [x0, x1, lsl 2] ldr w0, [sp, 32] add w1, w0, 1 adrp x0, uold add x0, x0, :lo12:uold sxtw x1, w1 ldrsw x2, [sp, 28] lsl x2, x2, 9 add x1, x2, x1 ldr s0, [x0, x1, lsl 2] fadd s2, s2, s0 ldr s0, [sp, 52] fmul s0, s2, s0 fadd s1, s1, s0 adrp x0, uold add x0, x0, :lo12:uold ldrsw x1, [sp, 32] ldrsw x2, [sp, 28] lsl x2, x2, 9 add x1, x2, x1 ldr s2, [x0, x1, lsl 2] ldr s0, [sp, 56] fmul s0, s2, s0 fadd s1, s1, s0 adrp x0, f add x0, x0, :lo12:f ldrsw x1, [sp, 32] ldrsw x2, [sp, 28] lsl x2, x2, 9 add x1, x2, x1 ldr s0, [x0, x1, lsl 2] fsub s1, s1, s0 ldr s0, [sp, 56] fdiv s0, s1, s0 str s0, [sp, 60] adrp x0, uold add x0, x0, :lo12:uold ldrsw x1, [sp, 32] ldrsw x2, [sp, 28] lsl x2, x2, 9 add x1, x2, x1 ldr s1, [x0, x1, lsl 2] ldr s2, [sp, 44] ldr s0, [sp, 60] fmul s0, s2, s0 fsub s0, s1, s0 adrp x0, u add x0, x0, :lo12:u ldrsw x1, [sp, 32] ldrsw x2, [sp, 28] lsl x2, x2, 9 add x1, x2, x1 str s0, [x0, x1, lsl 2] ldr s0, [sp, 60] fmul s0, s0, s0 ldr s1, [sp, 40] fadd s0, s1, s0 str s0, [sp, 40] ldr w0, [sp, 32] add w0, w0, 1 str w0, [sp, 32] .L19: adrp x0, m add x0, x0, :lo12:m ldr w0, [x0] sub w0, w0, #1 ldr w1, [sp, 32] cmp w1, w0 blt .L20 ldr w0, [sp, 28] add w0, w0, 1 str w0, [sp, 28] .L18: adrp x0, n add x0, x0, :lo12:n ldr w0, [x0] sub w0, w0, #1 ldr w1, [sp, 28] cmp w1, w0 blt .L21 ldr w1, [sp, 36] mov w0, 19923 movk w0, 0x1062, lsl 16 smull x0, w1, w0 lsr x0, x0, 32 asr w2, w0, 5 asr w0, w1, 31 sub w0, w2, w0 mov w2, 500 mul w0, w0, w2 sub w0, w1, w0 cmp w0, 0 bne .L22 ldr s0, [sp, 40] fcvt d0, s0 ldr w1, [sp, 36] adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl printf .L22: ldr s0, [sp, 40] fcvt d0, s0 bl sqrt fmov d1, d0 adrp x0, n add x0, x0, :lo12:n ldr w1, [x0] adrp x0, m add x0, x0, :lo12:m ldr w0, [x0] mul w0, w1, w0 scvtf d0, w0 fdiv d0, d1, d0 fcvt s0, d0 str s0, [sp, 40] ldr w0, [sp, 36] add w0, w0, 1 str w0, [sp, 36] .L13: adrp x0, mits add x0, x0, :lo12:mits ldr w0, [x0] ldr w1, [sp, 36] cmp w1, w0 bgt .L23 adrp x0, tol add x0, x0, :lo12:tol ldr s0, [x0] ldr s1, [sp, 40] fcmpe s1, s0 bgt .L24 .L23: ldr w1, [sp, 36] adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl printf ldr s0, [sp, 40] fcvt d0, s0 adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl printf adrp x0, resid_ref add x0, x0, :lo12:resid_ref ldr s0, [x0] fcvt d0, s0 adrp x0, .LC6 add x0, x0, :lo12:.LC6 bl printf adrp x0, resid_ref add x0, x0, :lo12:resid_ref ldr s0, [x0] ldr s1, [sp, 40] fsub s0, s1, s0 fabs s0, s0 fcvt d0, s0 adrp x0, .LC7 add x0, x0, :lo12:.LC7 bl printf adrp x0, resid_ref add x0, x0, :lo12:resid_ref ldr s0, [x0] ldr s1, [sp, 40] fsub s0, s1, s0 fabs s0, s0 fcvt d0, s0 adrp x0, .LC10 ldr d1, [x0, #:lo12:.LC10] fcmpe d0, d1 bmi .L26 adrp x0, __PRETTY_FUNCTION__.1 add x3, x0, :lo12:__PRETTY_FUNCTION__.1 mov w2, 234 adrp x0, .LC8 add x1, x0, :lo12:.LC8 adrp x0, .LC9 add x0, x0, :lo12:.LC9 bl __assert_fail .L26: nop ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE10: .size jacobi, .-jacobi .section .rodata .align 3 .LC11: .string "Solution Error :%E \n" .align 3 .LC12: .string "Solution Error Ref :%E \n" .align 3 .LC13: .string "fabs(error-error_ref) < 1E-14" .text .align 2 .global error_check .type error_check, %function error_check: .LFB11: .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, n add x0, x0, :lo12:n ldr w0, [x0] sub w0, w0, #1 scvtf d0, w0 fmov d1, 2.0e+0 fdiv d0, d1, d0 fcvt s0, d0 adrp x0, dx add x0, x0, :lo12:dx str s0, [x0] adrp x0, m add x0, x0, :lo12:m ldr w0, [x0] sub w0, w0, #1 scvtf d0, w0 fmov d1, 2.0e+0 fdiv d0, d1, d0 fcvt s0, d0 adrp x0, dy add x0, x0, :lo12:dy str s0, [x0] str wzr, [sp, 32] str wzr, [sp, 24] b .L28 .L31: str wzr, [sp, 28] b .L29 .L30: ldr w0, [sp, 24] sub w0, w0, #1 scvtf s1, w0 adrp x0, dx add x0, x0, :lo12:dx ldr s0, [x0] fmul s1, s1, s0 fmov s0, 1.0e+0 fsub s0, s1, s0 str s0, [sp, 36] ldr w0, [sp, 28] sub w0, w0, #1 scvtf s1, w0 adrp x0, dy add x0, x0, :lo12:dy ldr s0, [x0] fmul s1, s1, s0 fmov s0, 1.0e+0 fsub s0, s1, s0 str s0, [sp, 40] adrp x0, u add x0, x0, :lo12:u ldrsw x1, [sp, 28] ldrsw x2, [sp, 24] lsl x2, x2, 9 add x1, x2, x1 ldr s0, [x0, x1, lsl 2] fcvt d1, s0 ldr s0, [sp, 36] fmul s0, s0, s0 fcvt d0, s0 fmov d2, 1.0e+0 fsub d2, d2, d0 ldr s0, [sp, 40] fmul s0, s0, s0 fcvt d0, s0 fmov d3, 1.0e+0 fsub d0, d3, d0 fmul d0, d2, d0 fsub d0, d1, d0 fcvt s0, d0 str s0, [sp, 44] ldr s0, [sp, 44] fmul s0, s0, s0 ldr s1, [sp, 32] fadd s0, s1, s0 str s0, [sp, 32] ldr w0, [sp, 28] add w0, w0, 1 str w0, [sp, 28] .L29: adrp x0, m add x0, x0, :lo12:m ldr w0, [x0] ldr w1, [sp, 28] cmp w1, w0 blt .L30 ldr w0, [sp, 24] add w0, w0, 1 str w0, [sp, 24] .L28: adrp x0, n add x0, x0, :lo12:n ldr w0, [x0] ldr w1, [sp, 24] cmp w1, w0 blt .L31 ldr s0, [sp, 32] fcvt d0, s0 bl sqrt fmov d1, d0 adrp x0, n add x0, x0, :lo12:n ldr w1, [x0] adrp x0, m add x0, x0, :lo12:m ldr w0, [x0] mul w0, w1, w0 scvtf d0, w0 fdiv d0, d1, d0 fcvt s0, d0 str s0, [sp, 32] ldr s0, [sp, 32] fcvt d0, s0 adrp x0, .LC11 add x0, x0, :lo12:.LC11 bl printf adrp x0, error_ref add x0, x0, :lo12:error_ref ldr s0, [x0] fcvt d0, s0 adrp x0, .LC12 add x0, x0, :lo12:.LC12 bl printf adrp x0, error_ref add x0, x0, :lo12:error_ref ldr s0, [x0] ldr s1, [sp, 32] fsub s0, s1, s0 fabs s0, s0 fcvt d0, s0 adrp x0, .LC7 add x0, x0, :lo12:.LC7 bl printf adrp x0, error_ref add x0, x0, :lo12:error_ref ldr s0, [x0] ldr s1, [sp, 32] fsub s0, s1, s0 fabs s0, s0 fcvt d0, s0 adrp x0, .LC10 ldr d1, [x0, #:lo12:.LC10] fcmpe d0, d1 bmi .L33 adrp x0, __PRETTY_FUNCTION__.0 add x3, x0, :lo12:__PRETTY_FUNCTION__.0 mov w2, 266 adrp x0, .LC8 add x1, x0, :lo12:.LC8 adrp x0, .LC13 add x0, x0, :lo12:.LC13 bl __assert_fail .L33: nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE11: .size error_check, .-error_check .section .rodata .align 3 .type __PRETTY_FUNCTION__.1, %object .size __PRETTY_FUNCTION__.1, 7 __PRETTY_FUNCTION__.1: .string "jacobi" .align 3 .type __PRETTY_FUNCTION__.0, %object .size __PRETTY_FUNCTION__.0, 12 __PRETTY_FUNCTION__.0: .string "error_check" .align 3 .LC0: .word -1598689907 .word 1051772663 .align 3 .LC10: .word -2036257893 .word 1023837339 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global isBigEndian .type isBigEndian, %function isBigEndian: .LFB0: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 24] mov x1, 0 mov w0, 1 str w0, [sp, 20] add x0, sp, 20 ldrb w0, [x0] cmp w0, 1 cset w0, ne and w0, w0, 255 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 24] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L3 bl __stack_chk_fail .L3: mov w0, w1 ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size isBigEndian, .-isBigEndian .section .rodata .align 3 .LC0: .string "big" .align 3 .LC1: .string "little" .align 3 .LC2: .string "This is a %s endian machine\n" .align 3 .LC3: .string "char: %lu\n" .align 3 .LC4: .string "short: %lu\n" .align 3 .LC5: .string "int: %lu\n" .align 3 .LC6: .string "long: %lu\n" .align 3 .LC7: .string "long long: %lu\n" .align 3 .LC8: .string "float: %lu\n" .align 3 .LC9: .string "double: %lu\n" .align 3 .LC10: .string "long double: %lu\n" .text .align 2 .global main .type main, %function main: .LFB1: .cfi_startproc stp x29, x30, [sp, -16]! .cfi_def_cfa_offset 16 .cfi_offset 29, -16 .cfi_offset 30, -8 mov x29, sp bl isBigEndian cmp w0, 0 beq .L5 adrp x0, .LC0 add x0, x0, :lo12:.LC0 b .L6 .L5: adrp x0, .LC1 add x0, x0, :lo12:.LC1 .L6: mov x1, x0 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf mov x1, 1 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl printf mov x1, 2 adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl printf mov x1, 4 adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl printf mov x1, 8 adrp x0, .LC6 add x0, x0, :lo12:.LC6 bl printf mov x1, 8 adrp x0, .LC7 add x0, x0, :lo12:.LC7 bl printf mov x1, 4 adrp x0, .LC8 add x0, x0, :lo12:.LC8 bl printf mov x1, 8 adrp x0, .LC9 add x0, x0, :lo12:.LC9 bl printf mov x1, 16 adrp x0, .LC10 add x0, x0, :lo12:.LC10 bl printf mov w0, 0 ldp x29, x30, [sp], 16 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global mt32_pi_ctl_version .section .rodata .align 3 .LC0: .string "" .string "$VER: mt32-pi-ctl 1.0.0 (10.02.2021)" .section .data.rel.local,"aw" .align 3 .type mt32_pi_ctl_version, %object .size mt32_pi_ctl_version, 8 mt32_pi_ctl_version: .xword .LC0 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global code .data .align 3 .type code, %object .size code, 106 code: .string "1\300\260f1\333\263\0011\322RSj\0021\311\211\341\315\200\211\306\260f\263\002Rfh\"\270fS\211\341j\020QV\211\341\315\200\260f\263\004RV\211\341\315\200\260f\263\005RRV\211\341\315\200\211\303\260?1\311\315\200\260?A\315\200\260?A\315\200\260\0131\333Sh//shh/bin\211\3431\3111\322\315\200" .section .rodata .align 3 .LC0: .string "Shellcode Length: %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 adrp x0, code add x0, x0, :lo12:code bl strlen mov x1, x0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf adrp x0, code add x0, x0, :lo12:code str x0, [sp, 24] ldr x0, [sp, 24] blr x0 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 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 bl bar str w0, [sp, 28] ldr w0, [sp, 28] ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size foo, .-foo .align 2 .global bar .type bar, %function bar: .LFB1: .cfi_startproc nop ret .cfi_endproc .LFE1: .size bar, .-bar ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "*.L_sfnames_b" .text .align 2 .type bar, %function bar: .LFB0: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp mov w0, 42 cmp w0, 42 bne .L2 adrp x0, .LC0+1 add x0, x0, :lo12:.LC0+1 b .L3 .L2: adrp x0, .LC0 add x0, x0, :lo12:.LC0 .L3: str x0, [sp, 24] ldr x0, [sp, 24] bl oof nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size bar, .-bar .align 2 .global ooof .type ooof, %function ooof: .LFB1: .cfi_startproc stp x29, x30, [sp, -16]! .cfi_def_cfa_offset 16 .cfi_offset 29, -16 .cfi_offset 30, -8 mov x29, sp mov w0, 0 cmp w0, 0 bne .L6 bl foo .L6: nop ldp x29, x30, [sp], 16 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size ooof, .-ooof ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "r" .align 3 .LC1: .string "%s: cannot find\n" .align 3 .LC2: .string "%s: problem reading\n" .text .align 2 .global read_file .type read_file, %function read_file: .LFB6: .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, 24] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 184] mov x1, 0 adrp x0, .LC0 add x1, x0, :lo12:.LC0 ldr x0, [sp, 24] bl fopen str x0, [sp, 40] ldr x0, [sp, 40] cmp x0, 0 bne .L2 ldr x1, [sp, 24] adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf mov w0, 1 bl exit .L2: add x0, sp, 56 mov x1, x0 ldr x0, [sp, 24] bl stat ldr x0, [sp, 104] add x0, x0, 1 bl malloc str x0, [sp, 48] ldr x0, [sp, 104] ldr x3, [sp, 40] mov x2, x0 mov x1, 1 ldr x0, [sp, 48] bl fread ldr x1, [sp, 104] cmp x0, x1 beq .L3 ldr x1, [sp, 24] adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf mov w0, 1 bl exit .L3: ldr x0, [sp, 48] mov x1, x0 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 .L5 bl __stack_chk_fail .L5: mov x0, x1 ldp x29, x30, [sp], 192 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size read_file, .-read_file .align 2 .global count_splits .type count_splits, %function count_splits: .LFB7: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x19, [sp, 16] .cfi_offset 19, -48 str x0, [sp, 40] str wzr, [sp, 56] str wzr, [sp, 60] b .L7 .L9: ldrsw x0, [sp, 60] ldr x1, [sp, 40] add x0, x1, x0 ldrb w0, [x0] cmp w0, 10 bne .L8 ldrsw x0, [sp, 60] add x0, x0, 1 ldr x1, [sp, 40] add x0, x1, x0 ldrb w0, [x0] cmp w0, 10 bne .L8 ldr w0, [sp, 56] add w0, w0, 1 str w0, [sp, 56] .L8: ldr w0, [sp, 60] add w0, w0, 1 str w0, [sp, 60] .L7: ldrsw x19, [sp, 60] ldr x0, [sp, 40] bl strlen cmp x19, x0 bcc .L9 ldr w0, [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 count_splits, .-count_splits .align 2 .global split_file .type split_file, %function split_file: .LFB8: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x0, [sp, 24] str w1, [sp, 20] str wzr, [sp, 40] ldrsw x0, [sp, 20] lsl x0, x0, 3 add x0, x0, 1 bl malloc str x0, [sp, 56] ldr w0, [sp, 40] add w1, w0, 1 str w1, [sp, 40] sxtw x0, w0 lsl x0, x0, 3 ldr x1, [sp, 56] add x0, x1, x0 ldr x1, [sp, 24] str x1, [x0] ldr x0, [sp, 24] bl strlen str w0, [sp, 44] str wzr, [sp, 36] b .L12 .L14: ldrsw x0, [sp, 36] ldr x1, [sp, 24] add x0, x1, x0 ldrb w0, [x0] cmp w0, 10 bne .L13 ldrsw x0, [sp, 36] sub x0, x0, #1 ldr x1, [sp, 24] add x0, x1, x0 ldrb w0, [x0] cmp w0, 10 bne .L13 ldrsw x0, [sp, 36] ldr x1, [sp, 24] add x0, x1, x0 strb wzr, [x0] ldrsw x0, [sp, 36] add x1, x0, 1 ldr w0, [sp, 40] add w2, w0, 1 str w2, [sp, 40] sxtw x0, w0 lsl x0, x0, 3 ldr x2, [sp, 56] add x0, x2, x0 ldr x2, [sp, 24] add x1, x2, x1 str x1, [x0] ldr w0, [sp, 36] add w0, w0, 1 str w0, [sp, 36] ldrsw x0, [sp, 36] ldr x1, [sp, 24] add x0, x1, x0 str x0, [sp, 48] .L13: ldr w0, [sp, 36] add w0, w0, 1 str w0, [sp, 36] .L12: ldr w1, [sp, 36] ldr w0, [sp, 44] cmp w1, w0 blt .L14 str wzr, [sp, 36] b .L15 .L17: ldrsw x0, [sp, 36] ldr x1, [sp, 24] add x0, x1, x0 ldrb w0, [x0] cmp w0, 10 bne .L16 ldrsw x0, [sp, 36] ldr x1, [sp, 24] add x0, x1, x0 mov w1, 32 strb w1, [x0] .L16: ldr w0, [sp, 36] add w0, w0, 1 str w0, [sp, 36] .L15: ldr w1, [sp, 36] ldr w0, [sp, 44] cmp w1, w0 blt .L17 ldr w0, [sp, 40] add w1, w0, 1 str w1, [sp, 40] sxtw x0, w0 lsl x0, x0, 3 ldr x1, [sp, 56] add x0, x1, x0 ldr x1, [sp, 48] str x1, [x0] ldr x0, [sp, 56] ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE8: .size split_file, .-split_file .align 2 .global intp .type intp, %function intp: .LFB9: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 strb w0, [sp, 15] ldrb w0, [sp, 15] cmp w0, 47 bls .L20 ldrb w0, [sp, 15] cmp w0, 57 bhi .L20 mov w0, 1 b .L22 .L20: mov w0, 0 .L22: add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE9: .size intp, .-intp .align 2 .global hexp .type hexp, %function hexp: .LFB10: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 strb w0, [sp, 15] ldrb w0, [sp, 15] cmp w0, 47 bls .L24 ldrb w0, [sp, 15] cmp w0, 57 bls .L25 .L24: ldrb w0, [sp, 15] cmp w0, 96 bls .L26 ldrb w0, [sp, 15] cmp w0, 102 bhi .L26 .L25: mov w0, 1 b .L28 .L26: mov w0, 0 .L28: add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE10: .size hexp, .-hexp .section .rodata .align 3 .LC3: .string "byr" .align 3 .LC4: .string "iyr" .align 3 .LC5: .string "eyr" .align 3 .LC6: .string "hgt" .align 3 .LC7: .string "in" .align 3 .LC8: .string "cm" .align 3 .LC9: .string "cid" .align 3 .LC10: .string "hcl" .align 3 .LC11: .string "ecl" .align 3 .LC12: .string "amb" .align 3 .LC13: .string "blu" .align 3 .LC14: .string "brn" .align 3 .LC15: .string "gry" .align 3 .LC16: .string "grn" .align 3 .LC17: .string "hzl" .align 3 .LC18: .string "oth" .align 3 .LC19: .string "pid" .text .align 2 .global test_field .type test_field, %function test_field: .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 x0, [sp, 24] str x1, [sp, 16] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 72] mov x1, 0 adrp x0, .LC3 add x1, x0, :lo12:.LC3 ldr x0, [sp, 24] bl strcmp cmp w0, 0 bne .L30 ldr x0, [sp, 16] bl atoi str w0, [sp, 36] ldr w0, [sp, 36] cmp w0, 1919 ble .L31 ldr w0, [sp, 36] cmp w0, 2002 bgt .L31 mov w0, 1 b .L33 .L31: mov w0, 0 b .L33 .L30: adrp x0, .LC4 add x1, x0, :lo12:.LC4 ldr x0, [sp, 24] bl strcmp cmp w0, 0 bne .L34 ldr x0, [sp, 16] bl atoi str w0, [sp, 36] ldr w0, [sp, 36] cmp w0, 2009 ble .L35 ldr w0, [sp, 36] cmp w0, 2020 bgt .L35 mov w0, 1 b .L33 .L35: mov w0, 0 b .L33 .L34: adrp x0, .LC5 add x1, x0, :lo12:.LC5 ldr x0, [sp, 24] bl strcmp cmp w0, 0 bne .L37 ldr x0, [sp, 16] bl atoi str w0, [sp, 36] ldr w0, [sp, 36] cmp w0, 2019 ble .L38 ldr w0, [sp, 36] cmp w0, 2030 bgt .L38 mov w0, 1 b .L33 .L38: mov w0, 0 b .L33 .L37: adrp x0, .LC6 add x1, x0, :lo12:.LC6 ldr x0, [sp, 24] bl strcmp cmp w0, 0 bne .L40 stp xzr, xzr, [sp, 48] str wzr, [sp, 64] ldr x0, [sp, 16] bl strlen cmp x0, 3 bhi .L41 mov w0, 0 b .L33 .L41: ldr x0, [sp, 16] bl strlen sub x0, x0, #2 ldr x1, [sp, 16] add x0, x1, x0 str x0, [sp, 40] ldr x0, [sp, 16] bl strlen sub x1, x0, #2 add x0, sp, 48 mov x2, x1 ldr x1, [sp, 16] bl strncpy add x0, sp, 48 bl atoi str w0, [sp, 36] adrp x0, .LC7 add x1, x0, :lo12:.LC7 ldr x0, [sp, 40] bl strcmp cmp w0, 0 bne .L43 ldr w0, [sp, 36] cmp w0, 58 ble .L44 ldr w0, [sp, 36] cmp w0, 76 bgt .L44 mov w0, 1 b .L33 .L44: mov w0, 0 b .L33 .L43: adrp x0, .LC8 add x1, x0, :lo12:.LC8 ldr x0, [sp, 40] bl strcmp cmp w0, 0 bne .L46 ldr w0, [sp, 36] cmp w0, 149 ble .L47 ldr w0, [sp, 36] cmp w0, 193 bgt .L47 mov w0, 1 b .L33 .L47: mov w0, 0 b .L33 .L46: mov w0, 0 b .L33 .L40: adrp x0, .LC9 add x1, x0, :lo12:.LC9 ldr x0, [sp, 24] bl strcmp cmp w0, 0 bne .L49 mov w0, 1 b .L33 .L49: adrp x0, .LC10 add x1, x0, :lo12:.LC10 ldr x0, [sp, 24] bl strcmp cmp w0, 0 bne .L50 ldr x0, [sp, 16] ldrb w0, [x0] cmp w0, 35 bne .L51 ldr x0, [sp, 16] bl strlen cmp x0, 7 beq .L52 .L51: mov w0, 0 b .L33 .L52: mov w0, 1 str w0, [sp, 36] b .L53 .L55: ldrsw x0, [sp, 36] ldr x1, [sp, 16] add x0, x1, x0 ldrb w0, [x0] bl hexp cmp w0, 0 bne .L54 mov w0, 0 b .L33 .L54: ldr w0, [sp, 36] add w0, w0, 1 str w0, [sp, 36] .L53: ldr w0, [sp, 36] cmp w0, 6 ble .L55 mov w0, 1 b .L33 .L50: adrp x0, .LC11 add x1, x0, :lo12:.LC11 ldr x0, [sp, 24] bl strcmp cmp w0, 0 bne .L56 adrp x0, .LC12 add x1, x0, :lo12:.LC12 ldr x0, [sp, 16] bl strcmp cmp w0, 0 bne .L57 mov w0, 1 b .L33 .L57: adrp x0, .LC13 add x1, x0, :lo12:.LC13 ldr x0, [sp, 16] bl strcmp cmp w0, 0 bne .L58 mov w0, 1 b .L33 .L58: adrp x0, .LC14 add x1, x0, :lo12:.LC14 ldr x0, [sp, 16] bl strcmp cmp w0, 0 bne .L59 mov w0, 1 b .L33 .L59: adrp x0, .LC15 add x1, x0, :lo12:.LC15 ldr x0, [sp, 16] bl strcmp cmp w0, 0 bne .L60 mov w0, 1 b .L33 .L60: adrp x0, .LC16 add x1, x0, :lo12:.LC16 ldr x0, [sp, 16] bl strcmp cmp w0, 0 bne .L61 mov w0, 1 b .L33 .L61: adrp x0, .LC17 add x1, x0, :lo12:.LC17 ldr x0, [sp, 16] bl strcmp cmp w0, 0 bne .L62 mov w0, 1 b .L33 .L62: adrp x0, .LC18 add x1, x0, :lo12:.LC18 ldr x0, [sp, 16] bl strcmp cmp w0, 0 bne .L63 mov w0, 1 b .L33 .L63: mov w0, 0 b .L33 .L56: adrp x0, .LC19 add x1, x0, :lo12:.LC19 ldr x0, [sp, 24] bl strcmp cmp w0, 0 bne .L64 ldr x0, [sp, 16] bl strlen cmp x0, 9 beq .L65 mov w0, 0 b .L33 .L65: str wzr, [sp, 36] b .L66 .L68: ldrsw x0, [sp, 36] ldr x1, [sp, 16] add x0, x1, x0 ldrb w0, [x0] bl intp cmp w0, 0 bne .L67 mov w0, 0 b .L33 .L67: ldr w0, [sp, 36] add w0, w0, 1 str w0, [sp, 36] .L66: ldr w0, [sp, 36] cmp w0, 8 ble .L68 mov w0, 1 b .L33 .L64: mov w0, 0 .L33: 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 .L69 bl __stack_chk_fail .L69: mov w0, w1 ldp x29, x30, [sp], 80 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE11: .size test_field, .-test_field .section .rodata .align 3 .LC20: .string "04-input.txt" .align 3 .LC21: .string " " .align 3 .LC22: .string "%d\n" .text .align 2 .global main .type main, %function main: .LFB12: .cfi_startproc stp x29, x30, [sp, -128]! .cfi_def_cfa_offset 128 .cfi_offset 29, -128 .cfi_offset 30, -120 mov x29, sp str x19, [sp, 16] .cfi_offset 19, -112 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 wzr, [sp, 36] str wzr, [sp, 40] adrp x0, .LC20 add x0, x0, :lo12:.LC20 bl read_file str x0, [sp, 72] ldr x0, [sp, 72] bl count_splits add w0, w0, 1 str w0, [sp, 60] ldr w1, [sp, 60] ldr x0, [sp, 72] bl split_file str x0, [sp, 80] strb wzr, [sp, 91] str wzr, [sp, 44] b .L71 .L77: mov w0, 1 str w0, [sp, 56] str wzr, [sp, 52] str wzr, [sp, 48] ldrsw x0, [sp, 44] lsl x0, x0, 3 ldr x1, [sp, 80] add x0, x1, x0 ldr x2, [x0] adrp x0, .LC21 add x1, x0, :lo12:.LC21 mov x0, x2 bl strtok str x0, [sp, 64] b .L72 .L74: add x0, sp, 88 mov x2, 3 ldr x1, [sp, 64] bl strncpy ldr x0, [sp, 64] add x19, x0, 4 ldr x0, [sp, 64] bl strlen sub x1, x0, #3 add x0, sp, 96 mov x2, x1 mov x1, x19 bl strncpy add x1, sp, 96 add x0, sp, 88 bl test_field mov w1, w0 ldr w0, [sp, 56] and w0, w0, w1 str w0, [sp, 56] add x2, sp, 88 adrp x0, .LC9 add x1, x0, :lo12:.LC9 mov x0, x2 bl strcmp cmp w0, 0 bne .L73 mov w0, 1 str w0, [sp, 52] .L73: ldr w0, [sp, 48] add w0, w0, 1 str w0, [sp, 48] adrp x0, .LC21 add x1, x0, :lo12:.LC21 mov x0, 0 bl strtok str x0, [sp, 64] .L72: ldr x0, [sp, 64] cmp x0, 0 bne .L74 ldr w0, [sp, 48] cmp w0, 8 beq .L75 ldr w0, [sp, 48] cmp w0, 7 bne .L76 ldr w0, [sp, 52] cmp w0, 0 bne .L76 .L75: ldr w0, [sp, 36] add w0, w0, 1 str w0, [sp, 36] ldr w0, [sp, 56] cmp w0, 0 beq .L76 ldr w0, [sp, 40] add w0, w0, 1 str w0, [sp, 40] .L76: ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L71: ldr w1, [sp, 44] ldr w0, [sp, 60] cmp w1, w0 blt .L77 ldr w1, [sp, 36] adrp x0, .LC22 add x0, x0, :lo12:.LC22 bl printf ldr w1, [sp, 40] adrp x0, .LC22 add x0, x0, :lo12:.LC22 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, 120] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L79 bl __stack_chk_fail .L79: mov w0, w1 ldr x19, [sp, 16] ldp x29, x30, [sp], 128 .cfi_restore 30 .cfi_restore 29 .cfi_restore 19 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE12: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "H" .string "" .string "" .string "i" .string "" .string "" .string "" .string "" .string "" .string "" .align 3 .LC1: .string "Converting to multibyte string" .align 3 .LC2: .string "Characters converted %d\n" .align 3 .LC3: .string "Hex value of first multibyte character: %#.4x\n" .align 3 .LC4: .string "Converting back to Wide-Character string" .align 3 .LC5: .string "Hex value of first wide character %#.4x\n" .text .align 2 .global main .type main, %function main: .LFB6: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str xzr, [sp, 32] bl __ctype_get_mb_cur_max bl malloc str x0, [sp, 40] adrp x0, .LC0 add x0, x0, :lo12:.LC0 str x0, [sp, 48] mov x0, 4 bl malloc str x0, [sp, 56] adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl puts bl __ctype_get_mb_cur_max mov x2, x0 ldr x1, [sp, 48] ldr x0, [sp, 40] bl wcstombs str w0, [sp, 28] ldr w1, [sp, 28] adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf ldr x1, [sp, 40] adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl printf adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl puts bl __ctype_get_mb_cur_max mov x2, x0 ldr x1, [sp, 40] ldr x0, [sp, 56] bl mbstowcs str w0, [sp, 28] ldr w1, [sp, 28] adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf ldr x1, [sp, 56] adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl printf mov w0, 0 ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global a .data .align 3 .type a, %object .size a, 36 a: .ascii "0123456789abcdefghijklmnopqrstuvwxyz" .global b .align 3 .type b, %object .size b, 36 b: .ascii "000000000000000000000000000000000000" .section .rodata .align 3 .LC0: .string "0x%x\n" .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc stp x29, x30, [sp, -16]! .cfi_def_cfa_offset 16 .cfi_offset 29, -16 .cfi_offset 30, -8 mov x29, sp adrp x0, a add x0, x0, :lo12:a bl GetWord mov w1, w0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf adrp x0, a+1 add x0, x0, :lo12:a+1 bl GetWord mov w1, w0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf adrp x0, a+2 add x0, x0, :lo12:a+2 bl GetWord mov w1, w0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf adrp x0, a+3 add x0, x0, :lo12:a+3 bl GetWord mov w1, w0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf adrp x0, a+4 add x0, x0, :lo12:a+4 bl GetWord mov w1, w0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf mov x2, 36 mov w1, 48 adrp x0, b add x0, x0, :lo12:b bl memset mov w1, 14134 movk w1, 0x3938, lsl 16 adrp x0, b add x0, x0, :lo12:b bl SetWord adrp x0, b add x0, x0, :lo12:b bl puts mov x2, 36 mov w1, 48 adrp x0, b add x0, x0, :lo12:b bl memset adrp x0, b+1 add x0, x0, :lo12:b+1 mov w1, 14134 movk w1, 0x3938, lsl 16 bl SetWord adrp x0, b add x0, x0, :lo12:b bl puts mov x2, 36 mov w1, 48 adrp x0, b add x0, x0, :lo12:b bl memset adrp x0, b+2 add x0, x0, :lo12:b+2 mov w1, 14134 movk w1, 0x3938, lsl 16 bl SetWord adrp x0, b add x0, x0, :lo12:b bl puts mov x2, 36 mov w1, 48 adrp x0, b add x0, x0, :lo12:b bl memset adrp x0, b+3 add x0, x0, :lo12:b+3 mov w1, 14134 movk w1, 0x3938, lsl 16 bl SetWord adrp x0, b add x0, x0, :lo12:b bl puts mov x2, 36 mov w1, 48 adrp x0, b add x0, x0, :lo12:b bl memset adrp x0, b+4 add x0, x0, :lo12:b+4 mov w1, 14134 movk w1, 0x3938, lsl 16 bl SetWord adrp x0, b add x0, x0, :lo12:b bl puts mov w0, 0 ldp x29, x30, [sp], 16 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global textbuffer_base .data .align 3 .type textbuffer_base, %object .size textbuffer_base, 8 textbuffer_base: .xword 753664 .global textbuffer_end .align 3 .type textbuffer_end, %object .size textbuffer_end, 8 textbuffer_end: .xword 757664 .global textbuffer_linecount .section .rodata .align 2 .type textbuffer_linecount, %object .size textbuffer_linecount, 4 textbuffer_linecount: .word 25 .global textbuffer_linewidth .align 2 .type textbuffer_linewidth, %object .size textbuffer_linewidth, 4 textbuffer_linewidth: .word 80 .global textbuffer_ptr .data .align 3 .type textbuffer_ptr, %object .size textbuffer_ptr, 8 textbuffer_ptr: .xword 753664 .global textbuffer_color .type textbuffer_color, %object .size textbuffer_color, 1 textbuffer_color: .byte 15 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "accept error: %s(errno: %d)\n" .align 3 .LC1: .string "%d received: %s\n" .text .align 2 .global worker_routine .type worker_routine, %function worker_routine: .LFB6: .cfi_startproc sub sp, sp, #1120 .cfi_def_cfa_offset 1120 stp x29, x30, [sp] .cfi_offset 29, -1120 .cfi_offset 30, -1112 mov x29, sp str x19, [sp, 16] .cfi_offset 19, -1104 str w0, [sp, 44] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 1112] mov x1, 0 bl getpid str w0, [sp, 60] .L4: add x1, sp, 56 add x0, sp, 72 mov x2, x1 mov x1, x0 ldr w0, [sp, 44] bl accept str w0, [sp, 64] ldr w0, [sp, 64] cmn w0, #1 bne .L2 bl __errno_location ldr w0, [x0] bl strerror mov x19, x0 bl __errno_location ldr w0, [x0] mov w2, w0 mov x1, x19 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf nop nop 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 .L5 b .L6 .L2: add x0, sp, 88 mov w3, 0 mov x2, 1024 mov x1, x0 ldr w0, [sp, 64] bl recv str w0, [sp, 68] ldrsw x0, [sp, 68] add x1, sp, 88 strb wzr, [x1, x0] add x0, sp, 88 mov x2, x0 ldr w1, [sp, 60] adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf ldr w0, [sp, 64] bl close b .L4 .L6: bl __stack_chk_fail .L5: ldr x19, [sp, 16] ldp x29, x30, [sp] add sp, sp, 1120 .cfi_restore 29 .cfi_restore 30 .cfi_restore 19 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size worker_routine, .-worker_routine .section .rodata .align 3 .LC2: .string "create socket error: %s(errno: %d)\n" .align 3 .LC3: .string "bind socket error: %s(errno: %d)\n" .align 3 .LC4: .string "call listen failure!" .align 3 .LC5: .string "fork failed" .text .align 2 .global main .type main, %function main: .LFB7: .cfi_startproc stp x29, x30, [sp, -112]! .cfi_def_cfa_offset 112 .cfi_offset 29, -112 .cfi_offset 30, -104 mov x29, sp str x19, [sp, 16] .cfi_offset 19, -96 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 mov w2, 0 mov w1, 1 mov w0, 2 bl socket str w0, [sp, 60] ldr w0, [sp, 60] cmn w0, #1 bne .L8 bl __errno_location ldr w0, [x0] bl strerror mov x19, x0 bl __errno_location ldr w0, [x0] mov w2, w0 mov x1, x19 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf mov w0, 1 bl exit .L8: add x0, sp, 88 mov x2, 16 mov w1, 0 bl memset mov w0, 2 strh w0, [sp, 88] mov w0, 0 bl htons and w0, w0, 65535 str w0, [sp, 92] mov w0, 5555 bl htons and w0, w0, 65535 strh w0, [sp, 90] add x0, sp, 88 mov w2, 16 mov x1, x0 ldr w0, [sp, 60] bl bind str w0, [sp, 64] ldr w0, [sp, 64] cmn w0, #1 bne .L9 bl __errno_location ldr w0, [x0] bl strerror mov x19, x0 bl __errno_location ldr w0, [x0] mov w2, w0 mov x1, x19 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl printf mov w0, 1 bl exit .L9: mov w1, 100 ldr w0, [sp, 60] bl listen cmp w0, 0 bge .L10 adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl puts mov w0, 1 bl exit .L10: str wzr, [sp, 56] b .L11 .L15: bl fork str w0, [sp, 68] ldr w0, [sp, 68] cmn w0, #1 beq .L12 ldr w0, [sp, 68] cmp w0, 0 bne .L13 ldr w0, [sp, 60] bl worker_routine b .L14 .L12: adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl puts b .L14 .L13: ldrsw x0, [sp, 56] lsl x0, x0, 2 add x1, sp, 72 ldr w2, [sp, 68] str w2, [x1, x0] nop .L14: ldr w0, [sp, 56] add w0, w0, 1 str w0, [sp, 56] .L11: ldr w0, [sp, 56] cmp w0, 3 ble .L15 str wzr, [sp, 56] b .L16 .L17: ldrsw x0, [sp, 56] lsl x0, x0, 2 add x1, sp, 72 ldr w0, [x1, x0] add x1, sp, 52 mov w2, 0 bl waitpid ldr w0, [sp, 56] add w0, w0, 1 str w0, [sp, 56] .L16: ldr w0, [sp, 56] cmp w0, 3 ble .L17 ldr w0, [sp, 60] 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, 104] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L19 bl __stack_chk_fail .L19: mov w0, w1 ldr x19, [sp, 16] ldp x29, x30, [sp], 112 .cfi_restore 30 .cfi_restore 29 .cfi_restore 19 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "(%d,%d,%d)" .text .align 2 .global print_color .type print_color, %function print_color: .LFB0: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str x0, [sp, 24] ldr x0, [sp, 24] ldr w1, [x0] ldr x0, [sp, 24] ldr w2, [x0, 4] ldr x0, [sp, 24] ldr w0, [x0, 8] mov w3, w0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size print_color, .-print_color .align 2 .global square_dist .type square_dist, %function square_dist: .LFB1: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, 8] str x1, [sp] ldr x0, [sp, 8] ldr w1, [x0] ldr x0, [sp] ldr w0, [x0] sub w1, w1, w0 ldr x0, [sp, 8] ldr w2, [x0] ldr x0, [sp] ldr w0, [x0] sub w0, w2, w0 mul w1, w1, w0 ldr x0, [sp, 8] ldr w2, [x0, 4] ldr x0, [sp] ldr w0, [x0, 4] sub w2, w2, w0 ldr x0, [sp, 8] ldr w3, [x0, 4] ldr x0, [sp] ldr w0, [x0, 4] sub w0, w3, w0 mul w0, w2, w0 add w1, w1, w0 ldr x0, [sp, 8] ldr w2, [x0, 8] ldr x0, [sp] ldr w0, [x0, 8] sub w2, w2, w0 ldr x0, [sp, 8] ldr w3, [x0, 8] ldr x0, [sp] ldr w0, [x0, 8] sub w0, w3, w0 mul w0, w2, w0 add w0, w1, w0 sxtw x0, w0 add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size square_dist, .-square_dist .align 2 .global get_closest_idx .type get_closest_idx, %function get_closest_idx: .LFB2: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] mov x0, 59392 movk x0, 0x4876, lsl 16 movk x0, 0x17, lsl 32 str x0, [sp, 48] str wzr, [sp, 40] str wzr, [sp, 44] b .L5 .L7: ldrsw x1, [sp, 44] mov x0, x1 lsl x0, x0, 1 add x0, x0, x1 lsl x0, x0, 2 mov x1, x0 ldr x0, [sp, 16] add x0, x0, x1 ldr x1, [sp, 24] bl square_dist str x0, [sp, 56] ldr x1, [sp, 48] ldr x0, [sp, 56] cmp x1, x0 ble .L6 ldr x0, [sp, 56] str x0, [sp, 48] ldr w0, [sp, 44] str w0, [sp, 40] .L6: ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L5: ldr w0, [sp, 44] cmp w0, 15 ble .L7 ldr w0, [sp, 40] ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE2: .size get_closest_idx, .-get_closest_idx .section .rodata .align 3 .LC1: .string "%d %d %d" .align 3 .LC2: .string " maps to " .text .align 2 .global main .type main, %function main: .LFB3: .cfi_startproc stp x29, x30, [sp, -240]! .cfi_def_cfa_offset 240 .cfi_offset 29, -240 .cfi_offset 30, -232 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 232] mov x1, 0 str wzr, [sp, 20] .L14: add x0, sp, 24 add x2, x0, 8 add x0, sp, 24 add x1, x0, 4 add x0, sp, 24 mov x3, x2 mov x2, x1 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf ldr w0, [sp, 24] cmp w0, 0 blt .L18 ldr w0, [sp, 20] cmp w0, 15 bgt .L12 ldr w0, [sp, 20] add w1, w0, 1 str w1, [sp, 20] sxtw x1, w0 mov x0, x1 lsl x0, x0, 1 add x0, x0, x1 lsl x0, x0, 2 add x1, sp, 40 add x0, x1, x0 add x1, sp, 24 ldr x2, [x1] str x2, [x0] ldr w1, [x1, 8] str w1, [x0, 8] b .L14 .L12: add x0, sp, 24 bl print_color adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf add x1, sp, 40 add x0, sp, 24 bl get_closest_idx add x2, sp, 40 sxtw x1, w0 mov x0, x1 lsl x0, x0, 1 add x0, x0, x1 lsl x0, x0, 2 add x0, x2, x0 bl print_color mov w0, 10 bl putchar b .L14 .L18: nop mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 232] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L16 bl __stack_chk_fail .L16: mov w0, w1 ldp x29, x30, [sp], 240 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE3: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "rb" .text .align 2 .global read_buffer .type read_buffer, %function read_buffer: .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 x1, [sp, 16] adrp x0, .LC0 add x1, x0, :lo12:.LC0 ldr x0, [sp, 24] bl fopen str x0, [sp, 40] ldr x0, [sp, 40] cmp x0, 0 bne .L2 mov x0, 0 b .L3 .L2: mov w2, 2 mov x1, 0 ldr x0, [sp, 40] bl fseek ldr x0, [sp, 40] bl ftell str x0, [sp, 48] mov w2, 0 mov x1, 0 ldr x0, [sp, 40] bl fseek ldr x0, [sp, 48] add x0, x0, 1 bl malloc str x0, [sp, 56] ldr x3, [sp, 40] ldr x2, [sp, 48] mov x1, 1 ldr x0, [sp, 56] bl fread ldr x1, [sp, 56] ldr x0, [sp, 48] add x0, x1, x0 strb wzr, [x0] ldr x0, [sp, 16] cmp x0, 0 beq .L4 ldr x0, [sp, 16] ldr x1, [sp, 48] str x1, [x0] .L4: ldr x0, [sp, 56] .L3: ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size read_buffer, .-read_buffer .section .rodata .align 3 .LC1: .string "w+" .text .align 2 .global write_buffer .type write_buffer, %function write_buffer: .LFB7: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x0, [sp, 40] str x1, [sp, 32] str x2, [sp, 24] adrp x0, .LC1 add x1, x0, :lo12:.LC1 ldr x0, [sp, 40] bl fopen str x0, [sp, 56] ldr x0, [sp, 32] cmp x0, 0 beq .L6 ldr x3, [sp, 56] ldr x2, [sp, 24] mov x1, 1 ldr x0, [sp, 32] bl fwrite .L6: ldr x0, [sp, 56] bl fclose nop ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size write_buffer, .-write_buffer .section .rodata .align 3 .LC2: .string "error: call to 'clGetPlatformIDs' failed" .align 3 .LC3: .string "Number of platforms: %d\n" .align 3 .LC4: .string "platform=%p\n" .align 3 .LC5: .string "error: call to 'clGetPlatformInfo' failed" .align 3 .LC6: .string "platform.name='%s'\n\n" .align 3 .LC7: .string "error: call to 'clGetDeviceIDs' failed" .align 3 .LC8: .string "Number of devices: %d\n" .align 3 .LC9: .string "device=%p\n" .align 3 .LC10: .string "error: call to 'clGetDeviceInfo' failed" .align 3 .LC11: .string "device.name='%s'\n" .align 3 .LC12: .string "error: call to 'clCreateContext' failed" .align 3 .LC13: .string "context=%p\n" .align 3 .LC14: .string "error: call to 'clCreateCommandQueue' failed" .align 3 .LC15: .string "command_queue=%p\n" .align 3 .LC16: .string "mad_sat_char4char4char4.cl" .align 3 .LC17: .string "error: call to 'clCreateProgramWithSource' failed" .align 3 .LC18: .string "program=%p\n" .align 3 .LC19: .string "error: call to 'clBuildProgram' failed:\n%s\n" .align 3 .LC20: .string "program built" .align 3 .LC21: .string "mad_sat_char4char4char4" .align 3 .LC22: .string "error: call to 'clCreateKernel' failed" .align 3 .LC23: .string "error: could not create source buffer" .align 3 .LC24: .string "error: call to 'clEnqueueWriteBuffer' failed" .align 3 .LC25: .string "error: could not create dst buffer" .align 3 .LC26: .string "error: call to 'clSetKernelArg' failed" .align 3 .LC27: .string "error: call to 'clEnqueueNDRangeKernel' failed" .align 3 .LC28: .string "error: call to 'clEnqueueReadBuffer' failed" .align 3 .LC29: .string "%s.result" .align 3 .LC30: .string "Result dumped to %s\n" .align 3 .LC31: .string "error: call to 'clReleaseMemObject' failed" .align 3 .LC32: .string "error: call to 'clReleaseKernel' failed" .align 3 .LC33: .string "error: call to 'clReleaseProgram' failed" .align 3 .LC34: .string "error: call to 'clReleaseCommandQueue' failed" .align 3 .LC35: .string "error: call to 'clReleaseContext' failed" .text .align 2 .global main .type main, %function main: .LFB8: .cfi_startproc sub sp, sp, #560 .cfi_def_cfa_offset 560 stp x29, x30, [sp, 16] .cfi_offset 29, -544 .cfi_offset 30, -536 add x29, sp, 16 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, 552] mov x1, 0 add x1, sp, 56 add x0, sp, 80 mov x2, x1 mov x1, x0 mov w0, 1 bl clGetPlatformIDs str w0, [sp, 60] ldr w0, [sp, 60] cmp w0, 0 beq .L8 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl puts mov w0, 1 bl exit .L8: ldr w0, [sp, 56] mov w1, w0 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl printf ldr x0, [sp, 80] mov x1, x0 adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl printf ldr x0, [sp, 80] add x1, sp, 240 mov x4, 0 mov x3, x1 mov x2, 100 mov w1, 2306 bl clGetPlatformInfo str w0, [sp, 60] ldr w0, [sp, 60] cmp w0, 0 beq .L9 adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl puts mov w0, 1 bl exit .L9: add x0, sp, 240 mov x1, x0 adrp x0, .LC6 add x0, x0, :lo12:.LC6 bl printf ldr x0, [sp, 80] add x2, sp, 64 add x1, sp, 88 mov x4, x2 mov x3, x1 mov w2, 1 mov x1, 4 bl clGetDeviceIDs str w0, [sp, 60] ldr w0, [sp, 60] cmp w0, 0 beq .L10 adrp x0, .LC7 add x0, x0, :lo12:.LC7 bl puts mov w0, 1 bl exit .L10: ldr w0, [sp, 64] mov w1, w0 adrp x0, .LC8 add x0, x0, :lo12:.LC8 bl printf ldr x0, [sp, 88] mov x1, x0 adrp x0, .LC9 add x0, x0, :lo12:.LC9 bl printf ldr x0, [sp, 88] add x1, sp, 344 mov x4, 0 mov x3, x1 mov x2, 100 mov w1, 4139 bl clGetDeviceInfo str w0, [sp, 60] ldr w0, [sp, 60] cmp w0, 0 beq .L11 adrp x0, .LC10 add x0, x0, :lo12:.LC10 bl puts mov w0, 1 bl exit .L11: add x0, sp, 344 mov x1, x0 adrp x0, .LC11 add x0, x0, :lo12:.LC11 bl printf mov w0, 10 bl putchar add x1, sp, 60 add x0, sp, 88 mov x5, x1 mov x4, 0 mov x3, 0 mov x2, x0 mov w1, 1 mov x0, 0 bl clCreateContext str x0, [sp, 160] ldr w0, [sp, 60] cmp w0, 0 beq .L12 adrp x0, .LC12 add x0, x0, :lo12:.LC12 bl puts mov w0, 1 bl exit .L12: ldr x1, [sp, 160] adrp x0, .LC13 add x0, x0, :lo12:.LC13 bl printf ldr x0, [sp, 88] add x1, sp, 60 mov x3, x1 mov x2, 0 mov x1, x0 ldr x0, [sp, 160] bl clCreateCommandQueue str x0, [sp, 168] ldr w0, [sp, 60] cmp w0, 0 beq .L13 adrp x0, .LC14 add x0, x0, :lo12:.LC14 bl puts mov w0, 1 bl exit .L13: ldr x1, [sp, 168] adrp x0, .LC15 add x0, x0, :lo12:.LC15 bl printf mov w0, 10 bl putchar add x0, sp, 104 mov x1, x0 adrp x0, .LC16 add x0, x0, :lo12:.LC16 bl read_buffer str x0, [sp, 96] add x2, sp, 60 add x1, sp, 104 add x0, sp, 96 mov x4, x2 mov x3, x1 mov x2, x0 mov w1, 1 ldr x0, [sp, 160] bl clCreateProgramWithSource str x0, [sp, 176] ldr w0, [sp, 60] cmp w0, 0 beq .L14 adrp x0, .LC17 add x0, x0, :lo12:.LC17 bl puts mov w0, 1 bl exit .L14: ldr x1, [sp, 176] adrp x0, .LC18 add x0, x0, :lo12:.LC18 bl printf add x0, sp, 88 mov x5, 0 mov x4, 0 mov x3, 0 mov x2, x0 mov w1, 1 ldr x0, [sp, 176] bl clBuildProgram str w0, [sp, 60] ldr w0, [sp, 60] cmp w0, 0 beq .L15 ldr x0, [sp, 88] add x1, sp, 152 mov x5, x1 mov x4, 0 mov x3, 0 mov w2, 4483 mov x1, x0 ldr x0, [sp, 176] bl clGetProgramBuildInfo ldr x0, [sp, 152] bl malloc str x0, [sp, 232] ldr x0, [sp, 88] ldr x1, [sp, 152] mov x5, 0 ldr x4, [sp, 232] mov x3, x1 mov w2, 4483 mov x1, x0 ldr x0, [sp, 176] bl clGetProgramBuildInfo ldr x1, [sp, 232] adrp x0, .LC19 add x0, x0, :lo12:.LC19 bl printf ldr x0, [sp, 232] bl free mov w0, 1 bl exit .L15: adrp x0, .LC20 add x0, x0, :lo12:.LC20 bl puts mov w0, 10 bl putchar add x0, sp, 60 mov x2, x0 adrp x0, .LC21 add x1, x0, :lo12:.LC21 ldr x0, [sp, 176] bl clCreateKernel str x0, [sp, 184] ldr w0, [sp, 60] cmp w0, 0 beq .L16 adrp x0, .LC22 add x0, x0, :lo12:.LC22 bl puts mov w0, 1 bl exit .L16: mov x0, 10 str x0, [sp, 192] ldr x0, [sp, 192] lsl x0, x0, 2 bl malloc str x0, [sp, 200] str wzr, [sp, 68] b .L17 .L18: ldrsw x0, [sp, 68] lsl x0, x0, 2 ldr x1, [sp, 200] add x0, x1, x0 mov w1, 2 strb w1, [x0] mov w1, 2 strb w1, [x0, 1] mov w1, 2 strb w1, [x0, 2] mov w1, 2 strb w1, [x0, 3] ldr w0, [sp, 68] add w0, w0, 1 str w0, [sp, 68] .L17: ldrsw x0, [sp, 68] ldr x1, [sp, 192] cmp x1, x0 bhi .L18 ldr x0, [sp, 192] lsl x0, x0, 2 add x1, sp, 60 mov x4, x1 mov x3, 0 mov x2, x0 mov x1, 4 ldr x0, [sp, 160] bl clCreateBuffer str x0, [sp, 112] ldr w0, [sp, 60] cmp w0, 0 beq .L19 adrp x0, .LC23 add x0, x0, :lo12:.LC23 bl puts mov w0, 1 bl exit .L19: ldr x1, [sp, 112] ldr x0, [sp, 192] lsl x0, x0, 2 str xzr, [sp] mov x7, 0 mov w6, 0 ldr x5, [sp, 200] mov x4, x0 mov x3, 0 mov w2, 1 ldr x0, [sp, 168] bl clEnqueueWriteBuffer str w0, [sp, 60] ldr w0, [sp, 60] cmp w0, 0 beq .L20 adrp x0, .LC24 add x0, x0, :lo12:.LC24 bl puts mov w0, 1 bl exit .L20: ldr x0, [sp, 192] lsl x0, x0, 2 bl malloc str x0, [sp, 208] str wzr, [sp, 72] b .L21 .L22: ldrsw x0, [sp, 72] lsl x0, x0, 2 ldr x1, [sp, 208] add x0, x1, x0 mov w1, 2 strb w1, [x0] mov w1, 2 strb w1, [x0, 1] mov w1, 2 strb w1, [x0, 2] mov w1, 2 strb w1, [x0, 3] ldr w0, [sp, 72] add w0, w0, 1 str w0, [sp, 72] .L21: ldrsw x0, [sp, 72] ldr x1, [sp, 192] cmp x1, x0 bhi .L22 ldr x0, [sp, 192] lsl x0, x0, 2 add x1, sp, 60 mov x4, x1 mov x3, 0 mov x2, x0 mov x1, 4 ldr x0, [sp, 160] bl clCreateBuffer str x0, [sp, 120] ldr w0, [sp, 60] cmp w0, 0 beq .L23 adrp x0, .LC23 add x0, x0, :lo12:.LC23 bl puts mov w0, 1 bl exit .L23: ldr x1, [sp, 120] ldr x0, [sp, 192] lsl x0, x0, 2 str xzr, [sp] mov x7, 0 mov w6, 0 ldr x5, [sp, 208] mov x4, x0 mov x3, 0 mov w2, 1 ldr x0, [sp, 168] bl clEnqueueWriteBuffer str w0, [sp, 60] ldr w0, [sp, 60] cmp w0, 0 beq .L24 adrp x0, .LC24 add x0, x0, :lo12:.LC24 bl puts mov w0, 1 bl exit .L24: ldr x0, [sp, 192] lsl x0, x0, 2 bl malloc str x0, [sp, 216] str wzr, [sp, 76] b .L25 .L26: ldrsw x0, [sp, 76] lsl x0, x0, 2 ldr x1, [sp, 216] add x0, x1, x0 mov w1, 2 strb w1, [x0] mov w1, 2 strb w1, [x0, 1] mov w1, 2 strb w1, [x0, 2] mov w1, 2 strb w1, [x0, 3] ldr w0, [sp, 76] add w0, w0, 1 str w0, [sp, 76] .L25: ldrsw x0, [sp, 76] ldr x1, [sp, 192] cmp x1, x0 bhi .L26 ldr x0, [sp, 192] lsl x0, x0, 2 add x1, sp, 60 mov x4, x1 mov x3, 0 mov x2, x0 mov x1, 4 ldr x0, [sp, 160] bl clCreateBuffer str x0, [sp, 128] ldr w0, [sp, 60] cmp w0, 0 beq .L27 adrp x0, .LC23 add x0, x0, :lo12:.LC23 bl puts mov w0, 1 bl exit .L27: ldr x1, [sp, 128] ldr x0, [sp, 192] lsl x0, x0, 2 str xzr, [sp] mov x7, 0 mov w6, 0 ldr x5, [sp, 216] mov x4, x0 mov x3, 0 mov w2, 1 ldr x0, [sp, 168] bl clEnqueueWriteBuffer str w0, [sp, 60] ldr w0, [sp, 60] cmp w0, 0 beq .L28 adrp x0, .LC24 add x0, x0, :lo12:.LC24 bl puts mov w0, 1 bl exit .L28: ldr x0, [sp, 192] lsl x0, x0, 2 bl malloc str x0, [sp, 224] ldr x0, [sp, 192] lsl x0, x0, 2 mov x2, x0 mov w1, 1 ldr x0, [sp, 224] bl memset ldr x0, [sp, 192] lsl x0, x0, 2 add x1, sp, 60 mov x4, x1 mov x3, 0 mov x2, x0 mov x1, 2 ldr x0, [sp, 160] bl clCreateBuffer str x0, [sp, 136] ldr w0, [sp, 60] cmp w0, 0 beq .L29 adrp x0, .LC25 add x0, x0, :lo12:.LC25 bl puts mov w0, 1 bl exit .L29: str wzr, [sp, 60] add x0, sp, 112 mov x3, x0 mov x2, 8 mov w1, 0 ldr x0, [sp, 184] bl clSetKernelArg mov w1, w0 ldr w0, [sp, 60] orr w0, w1, w0 str w0, [sp, 60] add x0, sp, 120 mov x3, x0 mov x2, 8 mov w1, 1 ldr x0, [sp, 184] bl clSetKernelArg mov w1, w0 ldr w0, [sp, 60] orr w0, w1, w0 str w0, [sp, 60] add x0, sp, 128 mov x3, x0 mov x2, 8 mov w1, 2 ldr x0, [sp, 184] bl clSetKernelArg mov w1, w0 ldr w0, [sp, 60] orr w0, w1, w0 str w0, [sp, 60] add x0, sp, 136 mov x3, x0 mov x2, 8 mov w1, 3 ldr x0, [sp, 184] bl clSetKernelArg mov w1, w0 ldr w0, [sp, 60] orr w0, w1, w0 str w0, [sp, 60] ldr w0, [sp, 60] cmp w0, 0 beq .L30 adrp x0, .LC26 add x0, x0, :lo12:.LC26 bl puts mov w0, 1 bl exit .L30: ldr x0, [sp, 192] str x0, [sp, 144] ldr x0, [sp, 192] str x0, [sp, 152] add x1, sp, 152 add x0, sp, 144 str xzr, [sp] mov x7, 0 mov w6, 0 mov x5, x1 mov x4, x0 mov x3, 0 mov w2, 1 ldr x1, [sp, 184] ldr x0, [sp, 168] bl clEnqueueNDRangeKernel str w0, [sp, 60] ldr w0, [sp, 60] cmp w0, 0 beq .L31 adrp x0, .LC27 add x0, x0, :lo12:.LC27 bl puts mov w0, 1 bl exit .L31: ldr x0, [sp, 168] bl clFinish ldr x1, [sp, 136] ldr x0, [sp, 192] lsl x0, x0, 2 str xzr, [sp] mov x7, 0 mov w6, 0 ldr x5, [sp, 224] mov x4, x0 mov x3, 0 mov w2, 1 ldr x0, [sp, 168] bl clEnqueueReadBuffer str w0, [sp, 60] ldr w0, [sp, 60] cmp w0, 0 beq .L32 adrp x0, .LC28 add x0, x0, :lo12:.LC28 bl puts mov w0, 1 bl exit .L32: ldr x0, [sp, 32] ldr x0, [x0] add x3, sp, 448 mov x2, x0 adrp x0, .LC29 add x1, x0, :lo12:.LC29 mov x0, x3 bl sprintf ldr x0, [sp, 192] lsl x1, x0, 2 add x0, sp, 448 mov x2, x1 ldr x1, [sp, 224] bl write_buffer add x0, sp, 448 mov x1, x0 adrp x0, .LC30 add x0, x0, :lo12:.LC30 bl printf ldr x0, [sp, 224] bl free ldr x0, [sp, 136] bl clReleaseMemObject str w0, [sp, 60] ldr w0, [sp, 60] cmp w0, 0 beq .L33 adrp x0, .LC31 add x0, x0, :lo12:.LC31 bl puts mov w0, 1 bl exit .L33: ldr x0, [sp, 200] bl free ldr x0, [sp, 112] bl clReleaseMemObject str w0, [sp, 60] ldr w0, [sp, 60] cmp w0, 0 beq .L34 adrp x0, .LC31 add x0, x0, :lo12:.LC31 bl puts mov w0, 1 bl exit .L34: ldr x0, [sp, 208] bl free ldr x0, [sp, 120] bl clReleaseMemObject str w0, [sp, 60] ldr w0, [sp, 60] cmp w0, 0 beq .L35 adrp x0, .LC31 add x0, x0, :lo12:.LC31 bl puts mov w0, 1 bl exit .L35: ldr x0, [sp, 216] bl free ldr x0, [sp, 128] bl clReleaseMemObject str w0, [sp, 60] ldr w0, [sp, 60] cmp w0, 0 beq .L36 adrp x0, .LC31 add x0, x0, :lo12:.LC31 bl puts mov w0, 1 bl exit .L36: ldr x0, [sp, 184] bl clReleaseKernel str w0, [sp, 60] ldr w0, [sp, 60] cmp w0, 0 beq .L37 adrp x0, .LC32 add x0, x0, :lo12:.LC32 bl puts mov w0, 1 bl exit .L37: ldr x0, [sp, 176] bl clReleaseProgram str w0, [sp, 60] ldr w0, [sp, 60] cmp w0, 0 beq .L38 adrp x0, .LC33 add x0, x0, :lo12:.LC33 bl puts mov w0, 1 bl exit .L38: ldr x0, [sp, 168] bl clReleaseCommandQueue str w0, [sp, 60] ldr w0, [sp, 60] cmp w0, 0 beq .L39 adrp x0, .LC34 add x0, x0, :lo12:.LC34 bl puts mov w0, 1 bl exit .L39: ldr x0, [sp, 160] bl clReleaseContext str w0, [sp, 60] ldr w0, [sp, 60] cmp w0, 0 beq .L40 adrp x0, .LC35 add x0, x0, :lo12:.LC35 bl puts mov w0, 1 bl exit .L40: mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 552] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L42 bl __stack_chk_fail .L42: mov w0, w1 ldp x29, x30, [sp, 16] add sp, sp, 560 .cfi_restore 29 .cfi_restore 30 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE8: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "Enter the number of rows" .align 3 .LC1: .string "%d" .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 40] mov x1, 0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf add x0, sp, 20 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf ldr w0, [sp, 20] str w0, [sp, 24] mov w0, 1 str w0, [sp, 28] b .L2 .L10: mov w0, 1 str w0, [sp, 32] b .L3 .L4: mov w0, 32 bl putchar ldr w0, [sp, 32] add w0, w0, 1 str w0, [sp, 32] .L3: ldr w1, [sp, 24] ldr w0, [sp, 32] cmp w1, w0 bgt .L4 mov w0, 1 str w0, [sp, 36] b .L5 .L9: ldr w0, [sp, 36] cmp w0, 1 beq .L6 ldr w0, [sp, 28] lsl w0, w0, 1 sub w0, w0, #1 ldr w1, [sp, 36] cmp w1, w0 beq .L6 ldr w0, [sp, 20] ldr w1, [sp, 28] cmp w1, w0 bne .L7 .L6: mov w0, 42 bl putchar b .L8 .L7: mov w0, 32 bl putchar .L8: ldr w0, [sp, 36] add w0, w0, 1 str w0, [sp, 36] .L5: ldr w0, [sp, 28] lsl w0, w0, 1 ldr w1, [sp, 36] cmp w1, w0 blt .L9 ldr w0, [sp, 24] sub w0, w0, #1 str w0, [sp, 24] mov w0, 10 bl putchar ldr w0, [sp, 28] add w0, w0, 1 str w0, [sp, 28] .L2: ldr w0, [sp, 20] ldr w1, [sp, 28] cmp w1, w0 ble .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 .section .rodata .align 3 .LC0: .string "CONVERTER FARENHEIT PARA CELSIUS \n" .align 3 .LC1: .string "Temperatura em Farenheit: " .align 3 .LC2: .string "%f" .align 3 .LC3: .string "Temperatura em Celsius: %.2f \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 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 24] mov x1, 0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl puts adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf add x0, sp, 16 mov x1, x0 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl __isoc99_scanf ldr s0, [sp, 16] fcvt d0, s0 mov x0, 4629700416936869888 fmov d1, x0 fsub d0, d0, d1 adrp x0, .LC4 ldr d1, [x0, #:lo12:.LC4] fmul d0, d0, d1 fcvt s0, d0 str s0, [sp, 20] ldr s0, [sp, 20] fcvt d0, s0 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl printf mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 24] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L3 bl __stack_chk_fail .L3: mov w0, w1 ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size main, .-main .section .rodata .align 3 .LC4: .word 1908874354 .word 1071761180 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "%d" .align 3 .LC1: .string "%d\n" .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc 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 add x0, x29, 108 mov x1, x0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl __isoc99_scanf b .L2 .L8: mov x0, sp mov x19, x0 add x0, x29, 112 mov x1, x0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl __isoc99_scanf ldr w0, [x29, 112] add w0, w0, 2 sxtw x1, w0 sub x1, x1, #1 str x1, [x29, 120] 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 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 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 .L3: cmp sp, x1 beq .L4 sub sp, sp, #65536 str xzr, [sp, 1024] b .L3 .L4: and x1, x0, 65535 sub sp, sp, x1 str xzr, [sp] and x0, x0, 65535 cmp x0, 1024 bcc .L5 str xzr, [sp, 1024] .L5: add x0, sp, 16 add x0, x0, 3 lsr x0, x0, 2 lsl x0, x0, 2 str x0, [x29, 128] ldr x0, [x29, 128] str wzr, [x0] ldr x0, [x29, 128] mov w1, 1 str w1, [x0, 4] mov w0, 2 str w0, [x29, 116] b .L6 .L7: ldr w0, [x29, 116] sub w1, w0, #1 ldr x0, [x29, 128] sxtw x1, w1 ldr w0, [x0, x1, lsl 2] mov w1, 12185 movk w1, 0x44b8, lsl 16 smull x1, w0, w1 lsr x1, x1, 32 asr w2, w1, 28 asr w1, w0, 31 sub w1, w2, w1 mov w2, 51719 movk w2, 0x3b9a, lsl 16 mul w1, w1, w2 sub w1, w0, w1 ldr w0, [x29, 116] sub w2, w0, #2 ldr x0, [x29, 128] sxtw x2, w2 ldr w2, [x0, x2, lsl 2] mov w0, 12185 movk w0, 0x44b8, lsl 16 smull x0, w2, w0 lsr x0, x0, 32 asr w3, w0, 28 asr w0, w2, 31 sub w0, w3, w0 mov w3, 51719 movk w3, 0x3b9a, lsl 16 mul w0, w0, w3 sub w0, w2, w0 add w2, w1, w0 ldr x0, [x29, 128] ldrsw x1, [x29, 116] str w2, [x0, x1, lsl 2] ldr w0, [x29, 116] add w0, w0, 1 str w0, [x29, 116] .L6: ldr w0, [x29, 112] ldr w1, [x29, 116] cmp w1, w0 ble .L7 ldr w1, [x29, 112] ldr x0, [x29, 128] sxtw x1, w1 ldr w0, [x0, x1, lsl 2] mov w1, 12185 movk w1, 0x44b8, lsl 16 smull x1, w0, w1 lsr x1, x1, 32 asr w2, w1, 28 asr w1, w0, 31 sub w1, w2, w1 mov w2, 51719 movk w2, 0x3b9a, lsl 16 mul w1, w1, w2 sub w1, w0, w1 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf mov sp, x19 .L2: ldr w0, [x29, 108] sub w1, w0, #1 str w1, [x29, 108] cmp w0, 0 bne .L8 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 .L10 bl __stack_chk_fail .L10: 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 .section .rodata .align 3 .LC0: .string "Ola! Vamos implementar um algoritmo que realize bissecao para determincacao de\nraiz:\n\nPara isso digite o coeficiente 'a3': " .align 3 .LC1: .string "%f" .align 3 .LC2: .string "\nAgora, digite o coeficiente 'a2': " .align 3 .LC3: .string "\nAgora, digite o coeficiente 'a1': " .align 3 .LC4: .string "\nAgora, digite o coeficiente 'a0': " .align 3 .LC5: .string "\nAgora, digite o ponto inicial, 'x0': " .align 3 .LC6: .string "\nAgora, digite o ponto final, 'x1': " .align 3 .LC7: .string "\nAgora, digite a precisao desejada, 'E': " .align 3 .LC8: .string "\nA raiz eh %.4f!\n\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 stp d8, d9, [sp, 16] .cfi_offset 72, -80 .cfi_offset 73, -72 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 88] mov x1, 0 str wzr, [sp, 64] str wzr, [sp, 68] adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf add x0, sp, 36 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf add x0, sp, 40 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl printf add x0, sp, 44 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl printf add x0, sp, 48 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl printf add x0, sp, 52 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf adrp x0, .LC6 add x0, x0, :lo12:.LC6 bl printf add x0, sp, 56 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf adrp x0, .LC7 add x0, x0, :lo12:.LC7 bl printf add x0, sp, 60 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf b .L2 .L23: ldr s0, [sp, 36] fcvt d8, s0 ldr s0, [sp, 52] fcvt d0, s0 fmov d1, 3.0e+0 bl pow fmul d8, d8, d0 ldr s0, [sp, 40] fcvt d9, s0 ldr s0, [sp, 52] fcvt d0, s0 fmov d1, 2.0e+0 bl pow fmul d0, d9, d0 fadd d1, d8, d0 ldr s2, [sp, 44] ldr s0, [sp, 52] fmul s0, s2, s0 fcvt d0, s0 fadd d1, d1, d0 ldr s0, [sp, 48] fcvt d0, s0 fadd d0, d1, d0 fcvt s0, d0 str s0, [sp, 72] ldr s0, [sp, 36] fcvt d8, s0 ldr s0, [sp, 56] fcvt d0, s0 fmov d1, 3.0e+0 bl pow fmul d8, d8, d0 ldr s0, [sp, 40] fcvt d9, s0 ldr s0, [sp, 56] fcvt d0, s0 fmov d1, 2.0e+0 bl pow fmul d0, d9, d0 fadd d1, d8, d0 ldr s2, [sp, 44] ldr s0, [sp, 56] fmul s0, s2, s0 fcvt d0, s0 fadd d1, d1, d0 ldr s0, [sp, 48] fcvt d0, s0 fadd d0, d1, d0 fcvt s0, d0 str s0, [sp, 76] ldr s0, [sp, 72] fcmp s0, #0.0 bne .L3 ldr s0, [sp, 76] fcmp s0, #0.0 beq .L4 .L3: mov w0, 1 b .L5 .L4: mov w0, 0 .L5: cmp w0, 0 beq .L6 ldr s1, [sp, 72] ldr s0, [sp, 76] fsub s0, s1, s0 fabs s1, s0 ldr s0, [sp, 60] fcmpe s1, s0 bmi .L6 b .L31 .L6: ldr s0, [sp, 72] fabs s1, s0 ldr s0, [sp, 76] fabs s0, s0 fcmpe s1, s0 bgt .L26 b .L32 .L26: ldr s0, [sp, 56] fcvt d0, s0 adrp x0, .LC8 add x0, x0, :lo12:.LC8 bl printf b .L11 .L32: ldr s0, [sp, 52] fcvt d0, s0 adrp x0, .LC8 add x0, x0, :lo12:.LC8 bl printf .L11: mov w0, 1 str w0, [sp, 64] b .L12 .L31: ldr s0, [sp, 72] fcmpe s0, #0.0 bmi .L27 b .L13 .L27: ldr s0, [sp, 76] fcmpe s0, #0.0 bgt .L28 b .L13 .L28: ldr s1, [sp, 52] ldr s0, [sp, 56] fadd s1, s1, s0 fmov s0, 2.0e+0 fdiv s0, s1, s0 str s0, [sp, 80] ldr s0, [sp, 36] fcvt d8, s0 ldr s0, [sp, 80] fcvt d0, s0 fmov d1, 3.0e+0 bl pow fmul d8, d8, d0 ldr s0, [sp, 40] fcvt d9, s0 ldr s0, [sp, 80] fcvt d0, s0 fmov d1, 2.0e+0 bl pow fmul d0, d9, d0 fadd d1, d8, d0 ldr s2, [sp, 44] ldr s0, [sp, 80] fmul s0, s2, s0 fcvt d0, s0 fadd d1, d1, d0 ldr s0, [sp, 48] fcvt d0, s0 fadd d0, d1, d0 fcvt s0, d0 str s0, [sp, 84] ldr s0, [sp, 84] fcmp s0, #0.0 bne .L16 ldr s0, [sp, 80] fcvt d0, s0 adrp x0, .LC8 add x0, x0, :lo12:.LC8 bl printf mov w0, 1 str w0, [sp, 64] b .L12 .L16: ldr s0, [sp, 84] fcmpe s0, #0.0 bgt .L29 b .L33 .L29: ldr s0, [sp, 80] str s0, [sp, 56] b .L12 .L33: ldr s0, [sp, 80] str s0, [sp, 52] b .L12 .L13: ldr s1, [sp, 52] ldr s0, [sp, 56] fadd s1, s1, s0 fmov s0, 2.0e+0 fdiv s0, s1, s0 str s0, [sp, 80] ldr s0, [sp, 36] fcvt d8, s0 ldr s0, [sp, 80] fcvt d0, s0 fmov d1, 3.0e+0 bl pow fmul d8, d8, d0 ldr s0, [sp, 40] fcvt d9, s0 ldr s0, [sp, 80] fcvt d0, s0 fmov d1, 2.0e+0 bl pow fmul d0, d9, d0 fadd d1, d8, d0 ldr s2, [sp, 44] ldr s0, [sp, 80] fmul s0, s2, s0 fcvt d0, s0 fadd d1, d1, d0 ldr s0, [sp, 48] fcvt d0, s0 fadd d0, d1, d0 fcvt s0, d0 str s0, [sp, 84] ldr s0, [sp, 84] fcmp s0, #0.0 bne .L20 ldr s0, [sp, 80] fcvt d0, s0 adrp x0, .LC8 add x0, x0, :lo12:.LC8 bl printf mov w0, 1 str w0, [sp, 64] b .L12 .L20: ldr s0, [sp, 84] fcmpe s0, #0.0 bgt .L30 b .L34 .L30: ldr s0, [sp, 80] str s0, [sp, 56] b .L12 .L34: ldr s0, [sp, 80] str s0, [sp, 52] .L12: ldr w0, [sp, 68] add w0, w0, 1 str w0, [sp, 68] .L2: ldr w0, [sp, 64] cmp w0, 0 beq .L23 bl getchar mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 88] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L25 bl __stack_chk_fail .L25: mov w0, w1 ldp d8, d9, [sp, 16] ldp x29, x30, [sp], 96 .cfi_restore 30 .cfi_restore 29 .cfi_restore 72 .cfi_restore 73 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str wzr, [sp, 12] nop 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 .data .align 3 .type rcsid, %object .size rcsid, 5 rcsid: .string "$Id$" .global errors .bss .align 2 .type errors, %object .size errors, 4 errors: .zero 4 .global thds .align 2 .type thds, %object .size thds, 4 thds: .zero 4 .global prvt .data .align 2 .type prvt, %object .size prvt, 4 prvt: .word 100 .section .rodata .align 3 .LC0: .string "should be run this program on multi threads." .align 3 .LC1: .string "err_lastprivate 004 : FAILED, can not compile this program." .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 omp_get_max_threads mov w1, w0 adrp x0, thds add x0, x0, :lo12:thds str w1, [x0] adrp x0, thds add x0, x0, :lo12:thds ldr w0, [x0] cmp w0, 1 bne .L2 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl puts mov w0, 0 bl exit .L2: mov w0, 0 bl omp_set_dynamic str wzr, [sp, 28] b .L3 .L4: adrp x0, prvt add x0, x0, :lo12:prvt ldr w1, [sp, 28] str w1, [x0] ldr w0, [sp, 28] add w0, w0, 1 str w0, [sp, 28] .L3: adrp x0, thds add x0, x0, :lo12:thds ldr w0, [x0] ldr w1, [sp, 28] cmp w1, w0 blt .L4 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl puts mov w0, 1 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: .LFB0: .cfi_startproc sub sp, sp, #32 .cfi_def_cfa_offset 32 mov w0, 55158 movk w0, 0x493c, lsl 16 fmov s0, w0 str s0, [sp, 12] mov w0, 3526 movk w0, 0x437d, lsl 16 fmov s0, w0 str s0, [sp, 16] ldr s1, [sp, 12] ldr s0, [sp, 16] fdiv s0, s1, s0 str s0, [sp, 20] mov x0, 8208 str x0, [sp, 24] ldr s0, [sp, 20] mov w0, 2638 movk w0, 0x453f, lsl 16 fmov s1, w0 fcmp s0, s1 bne .L2 ldr x0, [sp, 24] mov w1, 1 str w1, [x0] b .L3 .L2: ldr x0, [sp, 24] str wzr, [x0] .L3: mov w0, 0 add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "%s" .text .align 2 .global main .type main, %function main: .LFB6: .cfi_startproc stp x29, x30, [sp, -160]! .cfi_def_cfa_offset 160 .cfi_offset 29, -160 .cfi_offset 30, -152 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 152] mov x1, 0 stp xzr, xzr, [sp, 24] add x0, sp, 40 movi v0.4s, 0 stp q0, q0, [x0] stp q0, q0, [x0, 32] stp q0, q0, [x0, 64] str q0, [x0, 96] b .L2 .L3: add x0, sp, 24 bl strlen add x0, x0, 2 lsl x0, x0, 1 bl malloc str x0, [sp, 16] add x0, sp, 24 ldr x1, [sp, 16] bl pre_process ldr x0, [sp, 16] bl puts ldr x0, [sp, 16] bl longest_palindrome .L2: add x0, sp, 24 mov x1, x0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl __isoc99_scanf cmn w0, #1 bne .L3 mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 152] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L5 bl __stack_chk_fail .L5: mov w0, w1 ldp x29, x30, [sp], 160 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size main, .-main .align 2 .global pre_process .type pre_process, %function pre_process: .LFB7: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] ldr x0, [sp, 24] bl strlen str w0, [sp, 44] ldr x0, [sp, 16] add x1, x0, 1 str x1, [sp, 16] mov w1, 94 strb w1, [x0] ldr w0, [sp, 44] cmp w0, 0 beq .L12 str wzr, [sp, 40] b .L9 .L10: ldr x0, [sp, 16] add x1, x0, 1 str x1, [sp, 16] mov w1, 35 strb w1, [x0] ldr x1, [sp, 24] add x0, x1, 1 str x0, [sp, 24] ldr x0, [sp, 16] add x2, x0, 1 str x2, [sp, 16] ldrb w1, [x1] strb w1, [x0] ldr w0, [sp, 40] add w0, w0, 1 str w0, [sp, 40] .L9: ldr w1, [sp, 40] ldr w0, [sp, 44] cmp w1, w0 blt .L10 b .L8 .L12: nop .L8: ldr x0, [sp, 16] add x1, x0, 1 str x1, [sp, 16] mov w1, 36 strb w1, [x0] ldr x0, [sp, 16] add x1, x0, 1 str x1, [sp, 16] strb wzr, [x0] nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size pre_process, .-pre_process .section .rodata .align 3 .LC1: .string "%d " .text .align 2 .global longest_palindrome .type longest_palindrome, %function longest_palindrome: .LFB8: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x0, [sp, 24] ldr x0, [sp, 24] bl strlen str w0, [sp, 52] ldrsw x0, [sp, 52] lsl x0, x0, 2 bl malloc str x0, [sp, 56] str wzr, [sp, 40] str wzr, [sp, 44] ldrsw x0, [sp, 52] lsl x0, x0, 2 mov x2, x0 mov w1, 0 ldr x0, [sp, 56] bl memset mov w0, 1 str w0, [sp, 48] b .L14 .L20: ldr w1, [sp, 40] ldr w0, [sp, 48] cmp w1, w0 ble .L15 ldr w1, [sp, 40] ldr w0, [sp, 48] sub w1, w1, w0 ldr w0, [sp, 44] lsl w2, w0, 1 ldr w0, [sp, 48] sub w0, w2, w0 sxtw x0, w0 lsl x0, x0, 2 ldr x2, [sp, 56] add x0, x2, x0 ldr w0, [x0] cmp w1, w0 csel w0, w1, w0, le b .L16 .L15: mov w0, 1 .L16: ldrsw x1, [sp, 48] lsl x1, x1, 2 ldr x2, [sp, 56] add x1, x2, x1 str w0, [x1] b .L17 .L18: ldrsw x0, [sp, 48] lsl x0, x0, 2 ldr x1, [sp, 56] add x0, x1, x0 ldr w1, [x0] add w1, w1, 1 str w1, [x0] .L17: ldrsw x0, [sp, 48] lsl x0, x0, 2 ldr x1, [sp, 56] add x0, x1, x0 ldr w1, [x0] ldr w0, [sp, 48] add w0, w1, w0 sxtw x0, w0 ldr x1, [sp, 24] add x0, x1, x0 ldrb w1, [x0] ldrsw x0, [sp, 48] lsl x0, x0, 2 ldr x2, [sp, 56] add x0, x2, x0 ldr w0, [x0] ldr w2, [sp, 48] sub w0, w2, w0 sxtw x0, w0 ldr x2, [sp, 24] add x0, x2, x0 ldrb w0, [x0] cmp w1, w0 beq .L18 ldrsw x0, [sp, 48] lsl x0, x0, 2 ldr x1, [sp, 56] add x0, x1, x0 ldr w1, [x0] ldr w0, [sp, 48] add w0, w1, w0 ldr w1, [sp, 40] cmp w1, w0 bge .L19 ldrsw x0, [sp, 48] lsl x0, x0, 2 ldr x1, [sp, 56] add x0, x1, x0 ldr w0, [x0] ldr w1, [sp, 48] add w0, w1, w0 str w0, [sp, 40] ldr w0, [sp, 48] str w0, [sp, 44] .L19: ldrsw x0, [sp, 48] lsl x0, x0, 2 ldr x1, [sp, 56] add x0, x1, x0 ldr w0, [x0] mov w1, w0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf ldr w0, [sp, 48] add w0, w0, 1 str w0, [sp, 48] .L14: ldr w0, [sp, 52] sub w0, w0, #1 ldr w1, [sp, 48] cmp w1, w0 blt .L20 nop nop ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE8: .size longest_palindrome, .-longest_palindrome ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global wrapped_malloc .type wrapped_malloc, %function wrapped_malloc: .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 malloc ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size wrapped_malloc, .-wrapped_malloc .align 2 .global wrapped_free .type wrapped_free, %function wrapped_free: .LFB7: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str x0, [sp, 24] ldr x0, [sp, 24] bl free nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size wrapped_free, .-wrapped_free .align 2 .global make_boxed_int .type make_boxed_int, %function make_boxed_int: .LFB8: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str w0, [sp, 28] mov x0, 4 bl wrapped_malloc str x0, [sp, 40] ldr x0, [sp, 40] ldr w1, [sp, 28] str w1, [x0] ldr x0, [sp, 40] ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE8: .size make_boxed_int, .-make_boxed_int .align 2 .global free_boxed_int .type free_boxed_int, %function free_boxed_int: .LFB9: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str x0, [sp, 24] ldr x0, [sp, 24] bl wrapped_free nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE9: .size free_boxed_int, .-free_boxed_int .align 2 .global test .type test, %function test: .LFB10: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str w0, [sp, 28] ldr w0, [sp, 28] bl make_boxed_int str x0, [sp, 40] ldr x0, [sp, 40] bl free_boxed_int bl missing_location ldr x0, [sp, 40] bl free_boxed_int nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE10: .size test, .-test ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "\n[buf]: %s\n" .align 3 .LC1: .string "[check] %p\n" .align 3 .LC2: .string "\nYou are on the right way!" .align 3 .LC3: .string "Yeah dude! You win!\nGo ask for your flag!" .text .align 2 .global main .type main, %function main: .LFB6: .cfi_startproc mov x12, 36576 sub sp, sp, x12 .cfi_def_cfa_offset 36576 stp x29, x30, [sp] .cfi_offset 29, -36576 .cfi_offset 30, -36568 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] add x1, sp, 32768 ldr x2, [x0] str x2, [x1, 3800] mov x2, 0 mov w0, 513 movk w0, 0x403, lsl 16 str w0, [sp, 20] adrp x0, :got:stdin ldr x0, [x0, #:got_lo12:stdin] ldr x1, [x0] add x0, sp, 24 mov x2, x1 mov w1, 36545 bl fgets add x0, sp, 24 mov x1, x0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf ldr w1, [sp, 20] adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf ldr w1, [sp, 20] mov w0, 513 movk w0, 0x403, lsl 16 cmp w1, w0 beq .L2 ldr w1, [sp, 20] mov w0, 48879 movk w0, 0xdead, lsl 16 cmp w1, w0 beq .L2 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl puts .L2: ldr w1, [sp, 20] mov w0, 48879 movk w0, 0xdead, lsl 16 cmp w1, w0 bne .L3 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl puts .L3: mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] add x3, sp, 32768 ldr x4, [x3, 3800] ldr x2, [x0] subs x4, x4, x2 mov x2, 0 beq .L5 bl __stack_chk_fail .L5: mov w0, w1 ldp x29, x30, [sp] mov x12, 36576 add sp, sp, x12 .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 .global mqd .bss .align 2 .type mqd, %object .size mqd, 4 mqd: .zero 4 .section .rodata .align 3 .LC0: .string "Usage: ./a.out -f <message queue name>" .align 3 .LC1: .string "f" .align 3 .LC2: .string "fork() failed" .align 3 .LC3: .string "mq_open() failed" .align 3 .LC4: .string "[Parent]: Message to child: " .align 3 .LC5: .string "mq_send() failed" .align 3 .LC6: .string "quit" .align 3 .LC7: .string "[Parent]: Wait for child..." .align 3 .LC8: .string "[Parent]: Clearing message queue..." .align 3 .LC9: .string "mq_close() failed" .align 3 .LC10: .string "mq_unlink() failed" .align 3 .LC11: .string "[Parent]: Done. Exit." .align 3 .LC12: .string "mq_receive() failed" .align 3 .LC13: .string "[Child1]: Exit program." .align 3 .LC14: .string "[Child1]: GET: %s\n" .text .align 2 .global main .type main, %function main: .LFB6: .cfi_startproc sub sp, sp, #2176 .cfi_def_cfa_offset 2176 stp x29, x30, [sp] .cfi_offset 29, -2176 .cfi_offset 30, -2168 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, 2168] mov x1, 0 ldr w0, [sp, 28] cmp w0, 3 bne .L2 ldr x0, [sp, 16] add x0, x0, 8 ldr x0, [x0] ldrb w0, [x0] cmp w0, 45 beq .L3 .L2: adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl perror mov w0, 1 bl exit .L3: adrp x0, .LC1 add x2, x0, :lo12:.LC1 ldr x1, [sp, 16] ldr w0, [sp, 28] bl getopt ldr x0, [sp, 16] ldr x0, [x0, 16] str x0, [sp, 48] mov x0, 10 str x0, [sp, 64] mov x0, 1024 str x0, [sp, 72] bl fork str w0, [sp, 36] ldr w0, [sp, 36] cmn w0, #1 bne .L4 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl perror mov w0, 1 bl exit .L4: ldr w0, [sp, 36] cmp w0, 0 beq .L5 add x0, sp, 56 mov x3, x0 mov w2, 420 mov w1, 66 ldr x0, [sp, 48] bl mq_open mov w1, w0 adrp x0, mqd add x0, x0, :lo12:mqd str w1, [x0] adrp x0, mqd add x0, x0, :lo12:mqd ldr w0, [x0] cmn w0, #1 bne .L6 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl perror mov w0, 1 bl exit .L6: adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl printf adrp x0, :got:stdin ldr x0, [x0, #:got_lo12:stdin] ldr x1, [x0] add x0, sp, 120 mov x2, x1 mov w1, 256 bl fgets mov w1, 2 ldr x0, [sp, 48] bl mq_open str w0, [sp, 44] ldr w0, [sp, 44] cmn w0, #1 bne .L7 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl perror mov w0, 1 bl exit .L7: add x0, sp, 120 mov w3, 1 mov x2, 256 mov x1, x0 ldr w0, [sp, 44] bl mq_send cmn w0, #1 bne .L8 adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl perror mov w0, 1 bl exit .L8: ldr w0, [sp, 44] bl mq_close add x3, sp, 120 mov x2, 4 adrp x0, .LC6 add x1, x0, :lo12:.LC6 mov x0, x3 bl strncmp cmp w0, 0 bne .L9 adrp x0, .LC7 add x0, x0, :lo12:.LC7 bl puts mov x0, 0 bl wait adrp x0, .LC8 add x0, x0, :lo12:.LC8 bl puts adrp x0, mqd add x0, x0, :lo12:mqd ldr w0, [x0] bl mq_close cmn w0, #1 bne .L10 adrp x0, .LC9 add x0, x0, :lo12:.LC9 bl perror mov w0, 1 bl exit .L10: ldr x0, [sp, 48] bl mq_unlink cmn w0, #1 bne .L11 adrp x0, .LC10 add x0, x0, :lo12:.LC10 bl perror mov w0, 1 bl exit .L11: adrp x0, .LC11 add x0, x0, :lo12:.LC11 bl puts nop mov w0, 0 bl exit .L9: mov w0, 0 bl sleep b .L6 .L5: mov w1, 0 ldr x0, [sp, 48] bl mq_open mov w1, w0 adrp x0, mqd add x0, x0, :lo12:mqd str w1, [x0] adrp x0, mqd add x0, x0, :lo12:mqd ldr w0, [x0] cmn w0, #1 bne .L14 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl perror mov w0, 1 bl exit .L14: adrp x0, mqd add x0, x0, :lo12:mqd ldr w0, [x0] add x1, sp, 120 mov x3, 0 mov x2, 2048 bl mq_receive str w0, [sp, 40] ldr w0, [sp, 40] cmn w0, #1 bne .L15 adrp x0, .LC12 add x0, x0, :lo12:.LC12 bl perror mov w0, 1 bl exit .L15: ldr w0, [sp, 40] cmp w0, 0 ble .L14 add x3, sp, 120 mov x2, 4 adrp x0, .LC6 add x1, x0, :lo12:.LC6 mov x0, x3 bl strncmp cmp w0, 0 bne .L17 adrp x0, .LC13 add x0, x0, :lo12:.LC13 bl puts nop mov w0, 0 bl exit .L17: add x0, sp, 120 mov x1, x0 adrp x0, .LC14 add x0, x0, :lo12:.LC14 bl printf b .L14 .cfi_endproc .LFE6: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "digraph finite_state_machine {\n\trankdir=LR;\n\tsize=\"40,10\"\n\tnode [shape = circle];\n" .align 3 .LC1: .string "%s" .text .align 2 .global printHeader .type printHeader, %function printHeader: .LFB6: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp adrp x0, .LC0 add x0, x0, :lo12:.LC0 str x0, [sp, 24] ldr x1, [sp, 24] adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size printHeader, .-printHeader .section .rodata .align 3 .LC2: .string "}\n" .text .align 2 .global printTrailer .type printTrailer, %function printTrailer: .LFB7: .cfi_startproc stp x29, x30, [sp, -16]! .cfi_def_cfa_offset 16 .cfi_offset 29, -16 .cfi_offset 30, -8 mov x29, sp adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl puts nop ldp x29, x30, [sp], 16 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size printTrailer, .-printTrailer .section .rodata .align 3 .LC3: .string "fsm2dot" .align 3 .LC4: .string "Usage: fsm2dot <state_variable> <sourcefile.c>\n" .align 3 .LC5: .string "r" .align 3 .LC6: .string "seek()" .align 3 .LC7: .string "%s: Could not process file.\n" .align 3 .LC8: .string "File size is %d bytes.\n" .align 3 .LC9: .string "unassigned" .align 3 .LC10: .string "%s: State Machine switch() not found.\n" .align 3 .LC11: .string "switch" .align 3 .LC12: .string "state machine found at line %d\n" .align 3 .LC13: .string "%s: Error reading state machine on line %d.\n" .align 3 .LC14: .string "case" .align 3 .LC15: .string "==" .align 3 .LC16: .string "%s: Parse error line %d\n" .align 3 .LC17: .string " %s -> %s [ label =\"\" ];\n" .text .align 2 .global main .type main, %function main: .LFB8: .cfi_startproc sub sp, sp, #656 .cfi_def_cfa_offset 656 stp x29, x30, [sp] .cfi_offset 29, -656 .cfi_offset 30, -648 mov x29, sp str x19, [sp, 16] .cfi_offset 19, -640 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, 648] mov x1, 0 str wzr, [sp, 76] adrp x0, .LC3 add x0, x0, :lo12:.LC3 str x0, [sp, 112] str xzr, [sp, 96] mov w0, -1 str w0, [sp, 56] str wzr, [sp, 72] ldr w0, [sp, 44] cmp w0, 3 beq .L6 adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x0, [x0] mov x3, x0 mov x2, 47 mov x1, 1 adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl fwrite b .L7 .L6: ldr x0, [sp, 32] ldr x0, [x0, 8] str x0, [sp, 88] ldr x0, [sp, 32] ldr x0, [x0, 16] str x0, [sp, 96] .L7: ldr x0, [sp, 96] cmp x0, 0 beq .L8 adrp x0, .LC5 add x1, x0, :lo12:.LC5 ldr x0, [sp, 96] bl fopen str x0, [sp, 80] ldr x0, [sp, 80] cmp x0, 0 bne .L9 ldr x0, [sp, 96] bl perror b .L8 .L9: mov w2, 2 mov x1, 0 ldr x0, [sp, 80] bl fseek str w0, [sp, 56] ldr w0, [sp, 56] cmn w0, #1 bne .L10 adrp x0, .LC6 add x0, x0, :lo12:.LC6 bl perror mov w0, -1 str w0, [sp, 56] b .L11 .L10: ldr x0, [sp, 80] bl ftell str w0, [sp, 56] ldr x0, [sp, 80] bl rewind .L11: ldr w0, [sp, 56] cmp w0, 0 bgt .L8 ldr x0, [sp, 80] bl fclose str xzr, [sp, 96] .L8: ldr w0, [sp, 56] cmp w0, 0 bgt .L12 adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x3, [x0] ldr x2, [sp, 112] adrp x0, .LC7 add x1, x0, :lo12:.LC7 mov x0, x3 bl fprintf mov w0, -1 bl exit .L12: adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x3, [x0] ldr w2, [sp, 56] adrp x0, .LC8 add x1, x0, :lo12:.LC8 mov x0, x3 bl fprintf add x2, sp, 136 adrp x0, .LC9 add x1, x0, :lo12:.LC9 mov x0, x2 ldr x2, [x1] str x2, [x0] ldr w1, [x1, 7] str w1, [x0, 7] str wzr, [sp, 60] str wzr, [sp, 64] .L14: add x0, sp, 392 ldr x2, [sp, 80] mov w1, 256 bl fgets cmp x0, 0 bne .L13 adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x3, [x0] ldr x2, [sp, 112] adrp x0, .LC10 add x1, x0, :lo12:.LC10 mov x0, x3 bl fprintf str wzr, [sp, 60] .L13: ldr w0, [sp, 60] add w0, w0, 1 str w0, [sp, 60] add x2, sp, 392 adrp x0, .LC11 add x1, x0, :lo12:.LC11 mov x0, x2 bl strstr cmp x0, 0 beq .L14 add x0, sp, 392 ldr x1, [sp, 88] bl strstr cmp x0, 0 beq .L14 ldr w0, [sp, 60] cmp w0, 0 ble .L15 adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x3, [x0] ldr w2, [sp, 60] adrp x0, .LC12 add x1, x0, :lo12:.LC12 mov x0, x3 bl fprintf str wzr, [sp, 68] b .L16 .L19: ldrsw x0, [sp, 68] add x1, sp, 392 ldrb w0, [x1, x0] cmp w0, 123 bne .L17 ldr w0, [sp, 64] add w0, w0, 1 str w0, [sp, 64] .L17: ldrsw x0, [sp, 68] add x1, sp, 392 ldrb w0, [x1, x0] cmp w0, 125 bne .L18 ldr w0, [sp, 64] sub w0, w0, #1 str w0, [sp, 64] .L18: ldr w0, [sp, 68] add w0, w0, 1 str w0, [sp, 68] .L16: ldrsw x19, [sp, 68] add x0, sp, 392 bl strlen cmp x19, x0 bcc .L19 .L37: add x0, sp, 392 ldr x2, [sp, 80] mov w1, 256 bl fgets cmp x0, 0 bne .L20 adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x4, [x0] ldr w3, [sp, 60] ldr x2, [sp, 112] adrp x0, .LC13 add x1, x0, :lo12:.LC13 mov x0, x4 bl fprintf str wzr, [sp, 60] b .L21 .L20: ldr w0, [sp, 60] add w0, w0, 1 str w0, [sp, 60] str wzr, [sp, 68] b .L22 .L25: ldrsw x0, [sp, 68] add x1, sp, 392 ldrb w0, [x1, x0] cmp w0, 123 bne .L23 ldr w0, [sp, 64] add w0, w0, 1 str w0, [sp, 64] .L23: ldrsw x0, [sp, 68] add x1, sp, 392 ldrb w0, [x1, x0] cmp w0, 125 bne .L24 ldr w0, [sp, 64] sub w0, w0, #1 str w0, [sp, 64] .L24: ldr w0, [sp, 68] add w0, w0, 1 str w0, [sp, 68] .L22: ldrsw x19, [sp, 68] add x0, sp, 392 bl strlen cmp x19, x0 bcc .L25 add x2, sp, 392 adrp x0, .LC14 add x1, x0, :lo12:.LC14 mov x0, x2 bl strstr str x0, [sp, 120] ldr x0, [sp, 120] cmp x0, 0 beq .L26 mov w1, 58 ldr x0, [sp, 120] bl strchr str x0, [sp, 128] ldr x0, [sp, 128] cmp x0, 0 beq .L26 ldr x0, [sp, 120] add x0, x0, 5 str x0, [sp, 120] ldr x0, [sp, 128] strb wzr, [x0] add x0, sp, 136 str x0, [sp, 104] str wzr, [sp, 68] b .L27 .L29: bl __ctype_b_loc ldr x1, [x0] ldrsw x0, [sp, 68] ldr x2, [sp, 120] 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, 8 cmp w0, 0 beq .L28 ldrsw x0, [sp, 68] ldr x1, [sp, 120] add x1, x1, x0 ldr x0, [sp, 104] add x2, x0, 1 str x2, [sp, 104] ldrb w1, [x1] strb w1, [x0] .L28: ldr w0, [sp, 68] add w0, w0, 1 str w0, [sp, 68] .L27: ldrsw x19, [sp, 68] ldr x0, [sp, 120] bl strlen cmp x19, x0 bcc .L29 ldr x0, [sp, 104] strb wzr, [x0] .L26: add x0, sp, 392 ldr x1, [sp, 88] bl strstr str x0, [sp, 120] ldr x0, [sp, 120] cmp x0, 0 beq .L30 mov w1, 61 ldr x0, [sp, 120] bl strchr str x0, [sp, 128] ldr x0, [sp, 128] cmp x0, 0 beq .L30 adrp x0, .LC15 add x1, x0, :lo12:.LC15 ldr x0, [sp, 120] bl strstr cmp x0, 0 bne .L30 ldr x0, [sp, 128] add x0, x0, 1 str x0, [sp, 128] mov w1, 59 ldr x0, [sp, 128] bl strchr str x0, [sp, 104] ldr x0, [sp, 104] cmp x0, 0 beq .L31 ldr x0, [sp, 104] strb wzr, [x0] add x0, sp, 264 str x0, [sp, 104] str wzr, [sp, 68] b .L33 .L31: adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x4, [x0] ldr w3, [sp, 60] ldr x2, [sp, 112] adrp x0, .LC16 add x1, x0, :lo12:.LC16 mov x0, x4 bl fprintf str wzr, [sp, 64] str wzr, [sp, 60] b .L21 .L35: bl __ctype_b_loc ldr x1, [x0] ldrsw x0, [sp, 68] ldr x2, [sp, 128] 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, 8 cmp w0, 0 beq .L34 ldrsw x0, [sp, 68] ldr x1, [sp, 128] add x1, x1, x0 ldr x0, [sp, 104] add x2, x0, 1 str x2, [sp, 104] ldrb w1, [x1] strb w1, [x0] .L34: ldr w0, [sp, 68] add w0, w0, 1 str w0, [sp, 68] .L33: ldrsw x19, [sp, 68] ldr x0, [sp, 128] bl strlen cmp x19, x0 bcc .L35 ldr x0, [sp, 104] strb wzr, [x0] ldr w0, [sp, 72] cmp w0, 0 bne .L36 bl printHeader mov w0, 1 str w0, [sp, 72] .L36: add x1, sp, 264 add x0, sp, 136 mov x2, x1 mov x1, x0 adrp x0, .LC17 add x0, x0, :lo12:.LC17 bl printf .L30: ldr w0, [sp, 64] cmp w0, 0 bgt .L37 .L21: ldr w0, [sp, 60] cmp w0, 0 ble .L15 bl printTrailer .L15: ldr x0, [sp, 80] bl fclose ldr w0, [sp, 76] mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 648] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L39 bl __stack_chk_fail .L39: mov w0, w1 ldr x19, [sp, 16] ldp x29, x30, [sp] add sp, sp, 656 .cfi_restore 29 .cfi_restore 30 .cfi_restore 19 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE8: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global f .type f, %function f: .LFB0: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, 12] ldr w0, [sp, 12] cmp w0, 0 beq .L2 ldr w0, [sp, 12] b .L4 .L2: mov w0, 1 .L4: add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size f, .-f .align 2 .global g .type g, %function g: .LFB1: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, 12] ldr w0, [sp, 12] cmn w0, #1 beq .L6 ldr w0, [sp, 12] b .L8 .L6: mov w0, -2 .L8: add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size g, .-g .align 2 .global h .type h, %function h: .LFB2: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, 12] ldr w1, [sp, 12] mov w0, -2147483648 cmp w1, w0 beq .L10 ldr w0, [sp, 12] b .L12 .L10: mov w0, -2147483647 .L12: add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE2: .size h, .-h .align 2 .global i .type i, %function i: .LFB3: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, 12] ldr w1, [sp, 12] mov w0, 2147483647 cmp w1, w0 beq .L14 ldr w0, [sp, 12] b .L16 .L14: mov w0, 2147483646 .L16: add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE3: .size i, .-i ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global test_vcequ16 .type test_vcequ16, %function test_vcequ16: .LFB4340: .cfi_startproc sub sp, sp, #48 .cfi_def_cfa_offset 48 ldr d0, [sp, 8] str d0, [sp, 32] ldr d0, [sp, 16] str d0, [sp, 40] ldr d1, [sp, 32] ldr d0, [sp, 40] cmeq v0.4h, v1.4h, v0.4h str d0, [sp, 24] nop add sp, sp, 48 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE4340: .size test_vcequ16, .-test_vcequ16 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc mov w0, 0 ret .cfi_endproc .LFE0: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc stp x29, x30, [sp, -16]! .cfi_def_cfa_offset 16 .cfi_offset 29, -16 .cfi_offset 30, -8 mov x29, sp bl main_asm mov w0, 0 bl exit .cfi_endproc .LFE0: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "mincore" .align 3 .LC1: .string "%lu " .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 bl getpagesize sxtw x0, w0 str x0, [sp, 64] ldr x1, [sp, 64] mov x0, x1 lsl x0, x0, 2 add x0, x0, x1 str x0, [sp, 72] add x0, sp, 48 ldr x2, [sp, 72] ldr x1, [sp, 64] bl posix_memalign ldr x0, [sp, 48] mov x2, 8192 mov w1, 0 bl memset ldr x0, [sp, 48] add x1, sp, 80 mov x2, x1 ldr x1, [sp, 72] bl mincore str w0, [sp, 44] ldr w0, [sp, 44] cmp w0, 0 bge .L2 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl perror .L2: str xzr, [sp, 56] b .L3 .L5: ldr x0, [sp, 56] add x1, sp, 80 ldrb w0, [x1, x0] and w0, w0, 1 cmp w0, 0 beq .L4 ldr x1, [sp, 56] adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf .L4: ldr x0, [sp, 56] add x0, x0, 1 str x0, [sp, 56] .L3: ldr x0, [sp, 56] cmp x0, 4 bls .L5 mov w0, 10 bl putchar ldr x0, [sp, 48] ldr x2, [sp, 72] mov w1, 0 bl memset ldr x0, [sp, 48] add x1, sp, 80 mov x2, x1 ldr x1, [sp, 72] bl mincore str w0, [sp, 44] ldr w0, [sp, 44] cmp w0, 0 bge .L6 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl perror .L6: str xzr, [sp, 56] b .L7 .L9: ldr x0, [sp, 56] add x1, sp, 80 ldrb w0, [x1, x0] and w0, w0, 1 cmp w0, 0 beq .L8 ldr x1, [sp, 56] adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf .L8: ldr x0, [sp, 56] add x0, x0, 1 str x0, [sp, 56] .L7: ldr x0, [sp, 56] cmp x0, 4 bls .L9 mov w0, 10 bl putchar ldr x0, [sp, 48] ldr x1, [sp, 72] bl munmap 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 .L11 bl __stack_chk_fail .L11: 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 .align 2 .global SYS_SIGRTMIN .type SYS_SIGRTMIN, %function SYS_SIGRTMIN: .LFB6: .cfi_startproc stp x29, x30, [sp, -16]! .cfi_def_cfa_offset 16 .cfi_offset 29, -16 .cfi_offset 30, -8 mov x29, sp bl __libc_current_sigrtmin ldp x29, x30, [sp], 16 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size SYS_SIGRTMIN, .-SYS_SIGRTMIN ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "%d" .align 3 .LC1: .string "N harus positif" .align 3 .LC2: .string "Bilangan Sempurna" .align 3 .LC3: .string "Bukan Bilangan Sempurna" .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 40] mov x1, 0 add x0, sp, 28 mov x1, x0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl __isoc99_scanf ldr w0, [sp, 28] cmp w0, 0 bgt .L2 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf mov w0, 0 b .L9 .L2: mov w0, 1 str w0, [sp, 32] b .L4 .L6: ldr w0, [sp, 28] ldr w1, [sp, 32] sdiv w2, w0, w1 ldr w1, [sp, 32] mul w1, w2, w1 sub w0, w0, w1 cmp w0, 0 bne .L5 ldr w1, [sp, 36] ldr w0, [sp, 32] add w0, w1, w0 str w0, [sp, 36] .L5: ldr w0, [sp, 32] add w0, w0, 1 str w0, [sp, 32] .L4: ldr w0, [sp, 28] ldr w1, [sp, 32] cmp w1, w0 blt .L6 ldr w0, [sp, 28] ldr w1, [sp, 36] cmp w1, w0 bne .L7 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf b .L8 .L7: adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl printf .L8: mov w0, 0 .L9: 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 .L10 bl __stack_chk_fail .L10: 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 "Enter the no of lines to print " .align 3 .LC1: .string "%d" .align 3 .LC2: .string " " .align 3 .LC3: .string " %d" .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 40] mov x1, 0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf add x0, sp, 28 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf mov w0, 1 str w0, [sp, 32] b .L2 .L7: ldr w0, [sp, 32] str w0, [sp, 36] b .L3 .L4: adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf ldr w0, [sp, 36] add w0, w0, 1 str w0, [sp, 36] .L3: ldr w0, [sp, 28] ldr w1, [sp, 36] cmp w1, w0 blt .L4 mov w0, 1 str w0, [sp, 36] b .L5 .L6: ldr w2, [sp, 32] mov w0, 26215 movk w0, 0x6666, lsl 16 smull x0, w2, w0 lsr x0, x0, 32 asr w1, w0, 2 asr w0, w2, 31 sub w1, w1, w0 mov w0, w1 lsl w0, w0, 2 add w0, w0, w1 lsl w0, w0, 1 sub w1, w2, w0 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl printf ldr w0, [sp, 36] add w0, w0, 1 str w0, [sp, 36] .L5: ldr w1, [sp, 36] ldr w0, [sp, 32] cmp w1, w0 ble .L6 mov w0, 10 bl putchar ldr w0, [sp, 32] add w0, w0, 1 str w0, [sp, 32] .L2: ldr w0, [sp, 28] ldr w1, [sp, 32] cmp w1, w0 ble .L7 mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 40] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L9 bl __stack_chk_fail .L9: mov w0, w1 ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size main, .-main ```