text
stringlengths
197
24.1M
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "enter the no of rows and column:" .align 3 .LC1: .string "%d %d" .align 3 .LC2: .string "enter the no. of 1st matrix:" .align 3 .LC3: .string "enter element a%d%d:" .align 3 .LC4: .string "%d " .align 3 .LC5: .string "enter the no. of 2nd matrix:" .align 3 .LC6: .string "enter element b%d%d:" .align 3 .LC7: .string "%d " .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc sub sp, sp, #3328 .cfi_def_cfa_offset 3328 stp x29, x30, [sp, 16] .cfi_offset 29, -3312 .cfi_offset 30, -3304 add x29, sp, 16 .cfi_def_cfa 29, 3312 stp x19, x20, [sp, 32] stp x21, x22, [sp, 48] str x23, [sp, 64] .cfi_offset 19, -3296 .cfi_offset 20, -3288 .cfi_offset 21, -3280 .cfi_offset 22, -3272 .cfi_offset 23, -3264 adrp x20, :got:__stack_chk_guard ldr x20, [x20, #:got_lo12:__stack_chk_guard] ldr x21, [x20] str x21, [x29, 3304] mov x21, 0 mov x20, sp mov x23, x20 ldr w20, [x29, 76] ldr w21, [x29, 72] sxtw x22, w20 sub x22, x22, #1 str x22, [x29, 80] sxtw x22, w20 mov x18, x22 mov x19, 0 lsr x22, x18, 59 lsl x13, x19, 5 orr x13, x22, x13 lsl x12, x18, 5 sxtw x12, w20 lsl x19, x12, 2 sxtw x12, w21 sub x12, x12, #1 str x12, [x29, 88] sxtw x12, w20 mov x6, x12 mov x7, 0 sxtw x12, w21 mov x4, x12 mov x5, 0 mul x13, x6, x4 umulh x12, x6, x4 madd x12, x7, x4, x12 madd x12, x6, x5, x12 mov x16, x13 mov x17, x12 lsr x4, x16, 59 lsl x11, x17, 5 orr x11, x4, x11 lsl x10, x16, 5 sxtw x4, w20 mov x2, x4 mov x3, 0 sxtw x4, w21 mov x0, x4 mov x1, 0 mul x5, x2, x0 umulh x4, x2, x0 madd x4, x3, x0, x4 madd x4, x2, x1, x4 mov x14, x5 mov x15, x4 lsr x0, x14, 59 lsl x9, x15, 5 orr x9, x0, x9 lsl x8, x14, 5 sxtw x1, w20 sxtw x0, w21 mul x0, x1, x0 lsl x0, x0, 2 add x0, x0, 15 lsr x0, x0, 4 lsl x0, x0, 4 and x1, x0, -65536 sub x1, sp, x1 .L2: cmp sp, x1 beq .L3 sub sp, sp, #65536 str xzr, [sp, 1024] b .L2 .L3: and x1, x0, 65535 sub sp, sp, x1 str xzr, [sp] and x0, x0, 65535 cmp x0, 1024 bcc .L4 str xzr, [sp, 1024] .L4: add x0, sp, 16 add x0, x0, 3 lsr x0, x0, 2 lsl x0, x0, 2 str x0, [x29, 96] adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf add x1, x29, 68 add x0, x29, 64 mov x2, x1 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl puts str wzr, [x29, 72] b .L5 .L8: str wzr, [x29, 76] b .L6 .L7: ldr w0, [x29, 72] add w1, w0, 1 ldr w0, [x29, 76] add w0, w0, 1 mov w2, w0 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl printf add x2, x29, 104 ldrsw x3, [x29, 76] ldrsw x1, [x29, 72] mov x0, x1 lsl x0, x0, 2 add x0, x0, x1 lsl x0, x0, 2 add x0, x3, x0 lsl x0, x0, 2 add x0, x2, x0 mov x1, x0 adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl __isoc99_scanf ldr w0, [x29, 76] add w0, w0, 1 str w0, [x29, 76] .L6: ldr w0, [x29, 68] ldr w1, [x29, 76] cmp w1, w0 blt .L7 ldr w0, [x29, 72] add w0, w0, 1 str w0, [x29, 72] .L5: ldr w0, [x29, 64] ldr w1, [x29, 72] cmp w1, w0 blt .L8 adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl puts str wzr, [x29, 72] b .L9 .L12: str wzr, [x29, 76] b .L10 .L11: ldr w0, [x29, 72] add w1, w0, 1 ldr w0, [x29, 76] add w0, w0, 1 mov w2, w0 adrp x0, .LC6 add x0, x0, :lo12:.LC6 bl printf add x2, x29, 1704 ldrsw x3, [x29, 76] ldrsw x1, [x29, 72] mov x0, x1 lsl x0, x0, 2 add x0, x0, x1 lsl x0, x0, 2 add x0, x3, x0 lsl x0, x0, 2 add x0, x2, x0 mov x1, x0 adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl __isoc99_scanf ldr w0, [x29, 76] add w0, w0, 1 str w0, [x29, 76] .L10: ldr w0, [x29, 68] ldr w1, [x29, 76] cmp w1, w0 blt .L11 ldr w0, [x29, 72] add w0, w0, 1 str w0, [x29, 72] .L9: ldr w0, [x29, 64] ldr w1, [x29, 72] cmp w1, w0 blt .L12 str wzr, [x29, 72] b .L13 .L16: str wzr, [x29, 76] b .L14 .L15: ldrsw x2, [x29, 76] ldrsw x1, [x29, 72] mov x0, x1 lsl x0, x0, 2 add x0, x0, x1 lsl x0, x0, 2 add x0, x0, x2 lsl x0, x0, 2 add x1, x29, 104 ldr w2, [x1, x0] ldrsw x3, [x29, 76] ldrsw x1, [x29, 72] mov x0, x1 lsl x0, x0, 2 add x0, x0, x1 lsl x0, x0, 2 add x0, x0, x3 lsl x0, x0, 2 add x1, x29, 1704 ldr w0, [x1, x0] lsr x1, x19, 2 add w2, w2, w0 ldr x0, [x29, 96] ldrsw x3, [x29, 76] ldrsw x4, [x29, 72] mul x1, x4, x1 add x1, x3, x1 str w2, [x0, x1, lsl 2] ldr w0, [x29, 76] add w0, w0, 1 str w0, [x29, 76] .L14: ldr w0, [x29, 68] ldr w1, [x29, 76] cmp w1, w0 blt .L15 ldr w0, [x29, 72] add w0, w0, 1 str w0, [x29, 72] .L13: ldr w0, [x29, 64] ldr w1, [x29, 72] cmp w1, w0 blt .L16 str wzr, [x29, 72] b .L17 .L20: str wzr, [x29, 76] b .L18 .L19: lsr x1, x19, 2 ldr x0, [x29, 96] ldrsw x2, [x29, 76] ldrsw x3, [x29, 72] mul x1, x3, x1 add x1, x2, x1 ldr w0, [x0, x1, lsl 2] mov w1, w0 adrp x0, .LC7 add x0, x0, :lo12:.LC7 bl printf ldr w0, [x29, 76] add w0, w0, 1 str w0, [x29, 76] .L18: ldr w0, [x29, 68] ldr w1, [x29, 76] cmp w1, w0 blt .L19 mov w0, 10 bl putchar ldr w0, [x29, 72] add w0, w0, 1 str w0, [x29, 72] .L17: ldr w0, [x29, 64] ldr w1, [x29, 72] cmp w1, w0 blt .L20 mov w0, 0 mov sp, x23 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [x29, 3304] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L22 bl __stack_chk_fail .L22: mov w0, w1 sub sp, x29, #16 .cfi_def_cfa 31, 3328 ldp x19, x20, [sp, 32] ldp x21, x22, [sp, 48] ldr x23, [sp, 64] ldp x29, x30, [sp, 16] add sp, sp, 3328 .cfi_restore 29 .cfi_restore 30 .cfi_restore 23 .cfi_restore 21 .cfi_restore 22 .cfi_restore 19 .cfi_restore 20 .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 " read complete text from files \n End of file " .align 3 .LC1: .string "r" .align 3 .LC2: .string "sample.txt" .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl puts adrp x0, .LC1 add x1, x0, :lo12:.LC1 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl fopen str x0, [sp, 24] ldr x0, [sp, 24] bl fgetc strb w0, [sp, 23] .L2: ldrb w0, [sp, 23] bl putchar ldr x0, [sp, 24] bl fgetc strb w0, [sp, 23] b .L2 .cfi_endproc .LFE0: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "%d" .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc stp x29, x30, [sp, -288]! .cfi_def_cfa_offset 288 .cfi_offset 29, -288 .cfi_offset 30, -280 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 280] mov x1, 0 add x0, sp, 24 bl gets add x0, sp, 24 bl wcount str w0, [sp, 20] ldr w1, [sp, 20] 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, 280] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L3 bl __stack_chk_fail .L3: mov w0, w1 ldp x29, x30, [sp], 288 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size main, .-main .align 2 .global wcount .type wcount, %function wcount: .LFB1: .cfi_startproc sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, 8] mov w0, 1 str w0, [sp, 24] str wzr, [sp, 28] str wzr, [sp, 20] b .L5 .L6: ldr w0, [sp, 20] add w0, w0, 1 str w0, [sp, 20] .L5: ldrsw x0, [sp, 20] ldr x1, [sp, 8] add x0, x1, x0 ldrb w0, [x0] cmp w0, 32 beq .L6 ldrsw x0, [sp, 20] ldr x1, [sp, 8] add x0, x1, x0 mov w1, 110 strb w1, [x0] mov w0, 0 add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size wcount, .-wcount ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global updpos .type updpos, %function updpos: .LFB6: .cfi_startproc sub sp, sp, #32 .cfi_def_cfa_offset 32 strb w0, [sp, 31] str x1, [sp, 16] str x2, [sp, 8] ldrb w0, [sp, 31] cmp w0, 10 bne .L2 ldr x0, [sp, 16] ldr x0, [x0] add x1, x0, 1 ldr x0, [sp, 16] str x1, [x0] ldr x0, [sp, 8] mov x1, 1 str x1, [x0] b .L4 .L2: ldr x0, [sp, 8] ldr x0, [x0] add x1, x0, 1 ldr x0, [sp, 8] str x1, [x0] .L4: nop add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size updpos, .-updpos .align 2 .global whitespace .type whitespace, %function whitespace: .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] mov w0, -1 str w0, [sp, 60] b .L6 .L7: str wzr, [sp, 60] ldr x0, [sp, 40] ldr x0, [x0] ldrb w0, [x0] ldr x2, [sp, 24] ldr x1, [sp, 32] bl updpos ldr x0, [sp, 40] ldr x0, [x0] add x1, x0, 1 ldr x0, [sp, 40] str x1, [x0] .L6: bl __ctype_b_loc ldr x1, [x0] ldr x0, [sp, 40] ldr x0, [x0] ldrb w0, [x0] and x0, x0, 255 lsl x0, x0, 1 add x0, x1, x0 ldrh w0, [x0] and w0, w0, 8192 cmp w0, 0 bne .L7 ldr w0, [sp, 60] ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size whitespace, .-whitespace .align 2 .global verbatim .type verbatim, %function verbatim: .LFB8: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x0, [sp, 40] str x1, [sp, 32] str x2, [sp, 24] ldr x0, [sp, 24] bl strlen str x0, [sp, 56] ldr x0, [sp, 40] ldr x0, [x0] ldr x2, [sp, 56] ldr x1, [sp, 24] bl strncmp cmp w0, 0 bne .L10 ldr x0, [sp, 40] ldr x1, [x0] ldr x0, [sp, 56] add x1, x1, x0 ldr x0, [sp, 40] str x1, [x0] ldr x0, [sp, 32] ldr x1, [x0] ldr x0, [sp, 56] add x1, x1, x0 ldr x0, [sp, 32] str x1, [x0] mov w0, 0 b .L11 .L10: mov w0, -1 .L11: ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE8: .size verbatim, .-verbatim .align 2 .global verbatimc .type verbatimc, %function verbatimc: .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, 40] str x1, [sp, 32] str x2, [sp, 24] strb w3, [sp, 23] ldr x0, [sp, 40] ldr x0, [x0] ldrb w0, [x0] ldrb w1, [sp, 23] cmp w1, w0 beq .L13 mov w0, -1 b .L14 .L13: ldr x2, [sp, 24] ldr x1, [sp, 32] ldrb w0, [sp, 23] bl updpos ldr x0, [sp, 40] ldr x0, [x0] add x1, x0, 1 ldr x0, [sp, 40] str x1, [x0] mov w0, 0 .L14: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE9: .size verbatimc, .-verbatimc .section .rodata .align 3 .LC0: .string "BEGIN:VCARD" .align 3 .LC1: .string "END:VCARD" .align 3 .LC2: .string "Success %lu,%lu\n" .align 3 .LC3: .string "Failure %lu,%lu\n" .text .align 2 .global vcard_parse .type vcard_parse, %function vcard_parse: .LFB10: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x0, [sp, 24] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 56] mov x1, 0 mov x0, 1 str x0, [sp, 40] mov x0, 1 str x0, [sp, 48] add x1, sp, 48 add x3, sp, 24 adrp x0, .LC0 add x2, x0, :lo12:.LC0 mov x0, x3 bl verbatim cmp w0, 0 bne .L16 add x2, sp, 48 add x1, sp, 40 add x0, sp, 24 mov w3, 10 bl verbatimc cmp w0, 0 bne .L16 add x1, sp, 48 add x3, sp, 24 adrp x0, .LC1 add x2, x0, :lo12:.LC1 mov x0, x3 bl verbatim cmp w0, 0 beq .L17 .L16: mov w0, 1 b .L18 .L17: mov w0, 0 .L18: cmp w0, 0 bne .L19 ldr x0, [sp, 40] ldr x1, [sp, 48] mov x2, x1 mov x1, x0 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf mov w0, 0 b .L21 .L19: ldr x0, [sp, 40] ldr x1, [sp, 48] mov x2, x1 mov x1, x0 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl printf mov w0, -1 .L21: 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 .L22 bl __stack_chk_fail .L22: mov w0, w1 ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE10: .size vcard_parse, .-vcard_parse .section .rodata .align 3 .LC4: .string "BEGIN:VCARD\nEND:VCARD\n" .text .align 2 .global main .type main, %function main: .LFB11: .cfi_startproc stp x29, x30, [sp, -16]! .cfi_def_cfa_offset 16 .cfi_offset 29, -16 .cfi_offset 30, -8 mov x29, sp adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl vcard_parse mov w0, 0 ldp x29, x30, [sp], 16 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE11: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global tanf .type tanf, %function tanf: .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 d8, [sp, 16] .cfi_offset 72, -32 str s0, [sp, 44] ldr s0, [sp, 44] bl sinf fmov s8, s0 ldr s0, [sp, 44] bl cosf fdiv s0, s8, s0 ldr d8, [sp, 16] ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_restore 72 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size tanf, .-tanf ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global boss_3_Sprite .section .rodata .align 2 .type boss_3_Sprite, %object .size boss_3_Sprite, 11264 boss_3_Sprite: .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 102 .byte 7 .byte 12 .byte 0 .byte 0 .byte 0 .byte 12 .byte 103 .byte 103 .byte 103 .byte 7 .byte 0 .byte 0 .byte 0 .byte 12 .byte 103 .byte 99 .byte 12 .byte 103 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 97 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 97 .byte 97 .byte 96 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 98 .byte 97 .byte 97 .byte 96 .byte 98 .byte 98 .byte 98 .byte 0 .byte 96 .byte 98 .byte 97 .byte 98 .byte 100 .byte 100 .byte 100 .byte 12 .byte 96 .byte 98 .byte 98 .byte 100 .byte 97 .byte 97 .byte 97 .byte 99 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 103 .byte 103 .byte 103 .byte 7 .byte 102 .byte 103 .byte 7 .byte 99 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 98 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 96 .byte 98 .byte 97 .byte 96 .byte 98 .byte 98 .byte 98 .byte 96 .byte 97 .byte 97 .byte 99 .byte 96 .byte 98 .byte 100 .byte 98 .byte 98 .byte 98 .byte 101 .byte 96 .byte 0 .byte 97 .byte 97 .byte 97 .byte 100 .byte 98 .byte 99 .byte 96 .byte 0 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 0 .byte 103 .byte 103 .byte 99 .byte 103 .byte 102 .byte 99 .byte 102 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 12 .byte 0 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 103 .byte 99 .byte 99 .byte 103 .byte 99 .byte 99 .byte 103 .byte 0 .byte 12 .byte 12 .byte 103 .byte 99 .byte 103 .byte 99 .byte 7 .byte 96 .byte 98 .byte 100 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 98 .byte 100 .byte 100 .byte 97 .byte 97 .byte 97 .byte 104 .byte 96 .byte 98 .byte 98 .byte 100 .byte 100 .byte 97 .byte 97 .byte 97 .byte 96 .byte 101 .byte 98 .byte 98 .byte 100 .byte 100 .byte 100 .byte 100 .byte 96 .byte 96 .byte 101 .byte 98 .byte 98 .byte 98 .byte 98 .byte 98 .byte 0 .byte 96 .byte 96 .byte 101 .byte 101 .byte 101 .byte 101 .byte 101 .byte 99 .byte 103 .byte 99 .byte 99 .byte 99 .byte 103 .byte 99 .byte 12 .byte 99 .byte 103 .byte 7 .byte 103 .byte 102 .byte 7 .byte 103 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 104 .byte 97 .byte 97 .byte 97 .byte 100 .byte 98 .byte 101 .byte 96 .byte 97 .byte 97 .byte 97 .byte 100 .byte 98 .byte 101 .byte 101 .byte 96 .byte 100 .byte 100 .byte 100 .byte 98 .byte 98 .byte 101 .byte 105 .byte 96 .byte 98 .byte 98 .byte 98 .byte 101 .byte 101 .byte 105 .byte 96 .byte 0 .byte 101 .byte 101 .byte 101 .byte 105 .byte 105 .byte 105 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 105 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 12 .byte 96 .byte 12 .byte 12 .byte 105 .byte 105 .byte 105 .byte 105 .byte 105 .byte 12 .byte 12 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 105 .byte 12 .byte 105 .byte 101 .byte 12 .byte 12 .byte 12 .byte 12 .byte 105 .byte 105 .byte 101 .byte 96 .byte 12 .byte 12 .byte 12 .byte 12 .byte 105 .byte 101 .byte 96 .byte 96 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 96 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 106 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 106 .byte 107 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 105 .byte 105 .byte 105 .byte 105 .byte 12 .byte 96 .byte 101 .byte 96 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 105 .byte 101 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 12 .byte 105 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 96 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 0 .byte 96 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 0 .byte 0 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 0 .byte 105 .byte 108 .byte 12 .byte 12 .byte 106 .byte 106 .byte 12 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 101 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 105 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 106 .byte 106 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 106 .byte 107 .byte 107 .byte 0 .byte 0 .byte 0 .byte 96 .byte 107 .byte 12 .byte 106 .byte 107 .byte 0 .byte 0 .byte 0 .byte 96 .byte 107 .byte 12 .byte 12 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 12 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 107 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 108 .byte 103 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 105 .byte 107 .byte 107 .byte 106 .byte 106 .byte 12 .byte 108 .byte 108 .byte 12 .byte 106 .byte 107 .byte 107 .byte 107 .byte 107 .byte 107 .byte 106 .byte 106 .byte 12 .byte 106 .byte 106 .byte 106 .byte 106 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 105 .byte 12 .byte 12 .byte 12 .byte 106 .byte 107 .byte 12 .byte 12 .byte 105 .byte 12 .byte 12 .byte 12 .byte 103 .byte 107 .byte 12 .byte 12 .byte 105 .byte 12 .byte 103 .byte 103 .byte 107 .byte 106 .byte 12 .byte 107 .byte 107 .byte 107 .byte 107 .byte 107 .byte 106 .byte 12 .byte 12 .byte 106 .byte 106 .byte 106 .byte 106 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 12 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 99 .byte 7 .byte 102 .byte 12 .byte 12 .byte 0 .byte 0 .byte 12 .byte 103 .byte 103 .byte 103 .byte 103 .byte 7 .byte 0 .byte 0 .byte 0 .byte 12 .byte 12 .byte 12 .byte 99 .byte 103 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 97 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 97 .byte 97 .byte 96 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 98 .byte 97 .byte 97 .byte 96 .byte 98 .byte 98 .byte 98 .byte 0 .byte 96 .byte 98 .byte 97 .byte 98 .byte 100 .byte 100 .byte 100 .byte 0 .byte 96 .byte 98 .byte 98 .byte 100 .byte 97 .byte 97 .byte 97 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 103 .byte 103 .byte 103 .byte 7 .byte 102 .byte 103 .byte 7 .byte 99 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 98 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 96 .byte 98 .byte 97 .byte 96 .byte 98 .byte 98 .byte 98 .byte 96 .byte 97 .byte 97 .byte 99 .byte 96 .byte 98 .byte 100 .byte 98 .byte 98 .byte 98 .byte 101 .byte 96 .byte 0 .byte 97 .byte 97 .byte 97 .byte 100 .byte 98 .byte 99 .byte 96 .byte 0 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 0 .byte 103 .byte 103 .byte 99 .byte 103 .byte 102 .byte 99 .byte 102 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 99 .byte 103 .byte 99 .byte 99 .byte 103 .byte 99 .byte 99 .byte 103 .byte 12 .byte 12 .byte 12 .byte 103 .byte 99 .byte 103 .byte 99 .byte 7 .byte 96 .byte 98 .byte 100 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 98 .byte 100 .byte 100 .byte 97 .byte 97 .byte 97 .byte 104 .byte 96 .byte 98 .byte 98 .byte 100 .byte 100 .byte 97 .byte 97 .byte 97 .byte 96 .byte 101 .byte 98 .byte 98 .byte 100 .byte 100 .byte 100 .byte 100 .byte 96 .byte 96 .byte 101 .byte 98 .byte 98 .byte 98 .byte 98 .byte 98 .byte 0 .byte 96 .byte 96 .byte 101 .byte 101 .byte 101 .byte 101 .byte 101 .byte 99 .byte 103 .byte 99 .byte 99 .byte 99 .byte 103 .byte 99 .byte 12 .byte 99 .byte 103 .byte 7 .byte 103 .byte 102 .byte 7 .byte 103 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 104 .byte 97 .byte 97 .byte 97 .byte 100 .byte 98 .byte 101 .byte 96 .byte 97 .byte 97 .byte 97 .byte 100 .byte 98 .byte 101 .byte 101 .byte 96 .byte 100 .byte 100 .byte 100 .byte 98 .byte 98 .byte 101 .byte 105 .byte 96 .byte 98 .byte 98 .byte 98 .byte 101 .byte 101 .byte 105 .byte 96 .byte 0 .byte 101 .byte 101 .byte 101 .byte 105 .byte 105 .byte 105 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 105 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 12 .byte 96 .byte 12 .byte 12 .byte 105 .byte 105 .byte 105 .byte 105 .byte 105 .byte 12 .byte 12 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 105 .byte 12 .byte 105 .byte 101 .byte 12 .byte 12 .byte 12 .byte 12 .byte 105 .byte 105 .byte 101 .byte 96 .byte 12 .byte 12 .byte 12 .byte 12 .byte 105 .byte 101 .byte 96 .byte 96 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 96 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 106 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 106 .byte 107 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 105 .byte 105 .byte 105 .byte 105 .byte 12 .byte 96 .byte 101 .byte 96 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 105 .byte 101 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 12 .byte 105 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 96 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 0 .byte 96 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 0 .byte 0 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 0 .byte 105 .byte 108 .byte 12 .byte 12 .byte 106 .byte 106 .byte 12 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 101 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 105 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 106 .byte 106 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 106 .byte 107 .byte 107 .byte 0 .byte 0 .byte 0 .byte 96 .byte 107 .byte 12 .byte 106 .byte 107 .byte 0 .byte 0 .byte 0 .byte 96 .byte 107 .byte 12 .byte 12 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 12 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 107 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 108 .byte 103 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 105 .byte 107 .byte 107 .byte 106 .byte 106 .byte 12 .byte 108 .byte 108 .byte 12 .byte 106 .byte 107 .byte 107 .byte 107 .byte 107 .byte 107 .byte 106 .byte 106 .byte 12 .byte 106 .byte 106 .byte 106 .byte 106 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 105 .byte 12 .byte 12 .byte 12 .byte 106 .byte 107 .byte 12 .byte 12 .byte 105 .byte 12 .byte 12 .byte 12 .byte 103 .byte 107 .byte 12 .byte 12 .byte 105 .byte 12 .byte 103 .byte 103 .byte 107 .byte 106 .byte 12 .byte 107 .byte 107 .byte 107 .byte 107 .byte 107 .byte 106 .byte 12 .byte 12 .byte 106 .byte 106 .byte 106 .byte 106 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 99 .byte 7 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 103 .byte 103 .byte 99 .byte 12 .byte 12 .byte 0 .byte 0 .byte 0 .byte 12 .byte 103 .byte 103 .byte 99 .byte 103 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 97 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 97 .byte 97 .byte 96 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 98 .byte 97 .byte 97 .byte 96 .byte 98 .byte 98 .byte 98 .byte 0 .byte 96 .byte 98 .byte 97 .byte 98 .byte 100 .byte 100 .byte 100 .byte 0 .byte 96 .byte 98 .byte 98 .byte 100 .byte 97 .byte 97 .byte 97 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 103 .byte 103 .byte 7 .byte 102 .byte 103 .byte 7 .byte 99 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 98 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 96 .byte 98 .byte 97 .byte 96 .byte 98 .byte 98 .byte 98 .byte 96 .byte 97 .byte 97 .byte 99 .byte 96 .byte 98 .byte 100 .byte 98 .byte 98 .byte 98 .byte 101 .byte 96 .byte 0 .byte 97 .byte 97 .byte 97 .byte 100 .byte 98 .byte 99 .byte 96 .byte 0 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 0 .byte 103 .byte 103 .byte 99 .byte 103 .byte 102 .byte 99 .byte 102 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 12 .byte 102 .byte 103 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 99 .byte 103 .byte 99 .byte 99 .byte 103 .byte 99 .byte 99 .byte 103 .byte 12 .byte 12 .byte 12 .byte 103 .byte 99 .byte 103 .byte 99 .byte 7 .byte 96 .byte 98 .byte 100 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 98 .byte 100 .byte 100 .byte 97 .byte 97 .byte 97 .byte 104 .byte 96 .byte 98 .byte 98 .byte 100 .byte 100 .byte 97 .byte 97 .byte 97 .byte 96 .byte 101 .byte 98 .byte 98 .byte 100 .byte 100 .byte 100 .byte 100 .byte 96 .byte 96 .byte 101 .byte 98 .byte 98 .byte 98 .byte 98 .byte 98 .byte 0 .byte 96 .byte 96 .byte 101 .byte 101 .byte 101 .byte 101 .byte 101 .byte 99 .byte 103 .byte 99 .byte 99 .byte 99 .byte 103 .byte 99 .byte 12 .byte 99 .byte 103 .byte 7 .byte 103 .byte 102 .byte 7 .byte 103 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 104 .byte 97 .byte 97 .byte 97 .byte 100 .byte 98 .byte 101 .byte 96 .byte 97 .byte 97 .byte 97 .byte 100 .byte 98 .byte 101 .byte 101 .byte 96 .byte 100 .byte 100 .byte 100 .byte 98 .byte 98 .byte 101 .byte 105 .byte 96 .byte 98 .byte 98 .byte 98 .byte 101 .byte 101 .byte 105 .byte 96 .byte 0 .byte 101 .byte 101 .byte 101 .byte 105 .byte 105 .byte 105 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 105 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 12 .byte 96 .byte 12 .byte 12 .byte 105 .byte 105 .byte 105 .byte 105 .byte 105 .byte 12 .byte 12 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 105 .byte 12 .byte 105 .byte 101 .byte 12 .byte 12 .byte 12 .byte 12 .byte 105 .byte 105 .byte 101 .byte 96 .byte 12 .byte 12 .byte 12 .byte 12 .byte 105 .byte 101 .byte 96 .byte 96 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 96 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 106 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 106 .byte 107 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 105 .byte 105 .byte 105 .byte 105 .byte 12 .byte 96 .byte 101 .byte 96 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 105 .byte 101 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 12 .byte 105 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 96 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 0 .byte 96 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 0 .byte 0 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 0 .byte 105 .byte 108 .byte 12 .byte 12 .byte 106 .byte 106 .byte 12 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 101 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 105 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 106 .byte 106 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 106 .byte 107 .byte 107 .byte 0 .byte 0 .byte 0 .byte 96 .byte 107 .byte 12 .byte 106 .byte 107 .byte 0 .byte 0 .byte 0 .byte 96 .byte 107 .byte 12 .byte 12 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 12 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 107 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 108 .byte 103 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 105 .byte 107 .byte 107 .byte 106 .byte 106 .byte 12 .byte 108 .byte 108 .byte 12 .byte 106 .byte 107 .byte 107 .byte 107 .byte 107 .byte 107 .byte 106 .byte 106 .byte 12 .byte 106 .byte 106 .byte 106 .byte 106 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 105 .byte 12 .byte 12 .byte 12 .byte 106 .byte 107 .byte 12 .byte 12 .byte 105 .byte 12 .byte 12 .byte 12 .byte 103 .byte 107 .byte 12 .byte 12 .byte 105 .byte 12 .byte 103 .byte 103 .byte 107 .byte 106 .byte 12 .byte 107 .byte 107 .byte 107 .byte 107 .byte 107 .byte 106 .byte 12 .byte 12 .byte 106 .byte 106 .byte 106 .byte 106 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 103 .byte 102 .byte 12 .byte 12 .byte 12 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 97 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 97 .byte 97 .byte 96 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 98 .byte 97 .byte 97 .byte 96 .byte 98 .byte 98 .byte 98 .byte 0 .byte 96 .byte 98 .byte 97 .byte 98 .byte 100 .byte 100 .byte 100 .byte 0 .byte 96 .byte 98 .byte 98 .byte 100 .byte 97 .byte 97 .byte 97 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 103 .byte 103 .byte 103 .byte 7 .byte 102 .byte 103 .byte 7 .byte 99 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 98 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 96 .byte 98 .byte 97 .byte 96 .byte 98 .byte 98 .byte 98 .byte 96 .byte 97 .byte 97 .byte 99 .byte 96 .byte 98 .byte 100 .byte 98 .byte 98 .byte 98 .byte 101 .byte 96 .byte 0 .byte 97 .byte 97 .byte 97 .byte 100 .byte 98 .byte 99 .byte 96 .byte 0 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 0 .byte 103 .byte 103 .byte 99 .byte 103 .byte 102 .byte 99 .byte 102 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 103 .byte 103 .byte 99 .byte 102 .byte 103 .byte 0 .byte 0 .byte 12 .byte 99 .byte 103 .byte 103 .byte 99 .byte 12 .byte 0 .byte 0 .byte 0 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 99 .byte 103 .byte 99 .byte 99 .byte 103 .byte 99 .byte 99 .byte 103 .byte 12 .byte 12 .byte 12 .byte 103 .byte 99 .byte 103 .byte 99 .byte 7 .byte 96 .byte 98 .byte 100 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 98 .byte 100 .byte 100 .byte 97 .byte 97 .byte 97 .byte 104 .byte 96 .byte 98 .byte 98 .byte 100 .byte 100 .byte 97 .byte 97 .byte 97 .byte 96 .byte 101 .byte 98 .byte 98 .byte 100 .byte 100 .byte 100 .byte 100 .byte 96 .byte 96 .byte 101 .byte 98 .byte 98 .byte 98 .byte 98 .byte 98 .byte 0 .byte 96 .byte 96 .byte 101 .byte 101 .byte 101 .byte 101 .byte 101 .byte 99 .byte 103 .byte 99 .byte 99 .byte 99 .byte 103 .byte 99 .byte 12 .byte 99 .byte 103 .byte 7 .byte 103 .byte 102 .byte 7 .byte 103 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 104 .byte 97 .byte 97 .byte 97 .byte 100 .byte 98 .byte 101 .byte 96 .byte 97 .byte 97 .byte 97 .byte 100 .byte 98 .byte 101 .byte 101 .byte 96 .byte 100 .byte 100 .byte 100 .byte 98 .byte 98 .byte 101 .byte 105 .byte 96 .byte 98 .byte 98 .byte 98 .byte 101 .byte 101 .byte 105 .byte 96 .byte 0 .byte 101 .byte 101 .byte 101 .byte 105 .byte 105 .byte 105 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 105 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 12 .byte 96 .byte 12 .byte 12 .byte 105 .byte 105 .byte 105 .byte 105 .byte 105 .byte 12 .byte 12 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 105 .byte 12 .byte 105 .byte 101 .byte 12 .byte 12 .byte 12 .byte 12 .byte 105 .byte 105 .byte 101 .byte 96 .byte 12 .byte 12 .byte 12 .byte 12 .byte 105 .byte 101 .byte 96 .byte 96 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 96 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 106 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 106 .byte 107 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 105 .byte 105 .byte 105 .byte 105 .byte 12 .byte 96 .byte 101 .byte 96 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 105 .byte 101 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 12 .byte 105 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 96 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 0 .byte 96 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 0 .byte 0 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 0 .byte 105 .byte 108 .byte 12 .byte 12 .byte 106 .byte 106 .byte 12 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 101 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 105 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 106 .byte 106 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 106 .byte 107 .byte 107 .byte 0 .byte 0 .byte 0 .byte 96 .byte 107 .byte 12 .byte 106 .byte 107 .byte 0 .byte 0 .byte 0 .byte 96 .byte 107 .byte 12 .byte 12 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 12 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 107 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 108 .byte 103 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 105 .byte 107 .byte 107 .byte 106 .byte 106 .byte 12 .byte 108 .byte 108 .byte 12 .byte 106 .byte 107 .byte 107 .byte 107 .byte 107 .byte 107 .byte 106 .byte 106 .byte 12 .byte 106 .byte 106 .byte 106 .byte 106 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 105 .byte 12 .byte 12 .byte 12 .byte 106 .byte 107 .byte 12 .byte 12 .byte 105 .byte 12 .byte 12 .byte 12 .byte 103 .byte 107 .byte 12 .byte 12 .byte 105 .byte 12 .byte 103 .byte 103 .byte 107 .byte 106 .byte 12 .byte 107 .byte 107 .byte 107 .byte 107 .byte 107 .byte 106 .byte 12 .byte 12 .byte 106 .byte 106 .byte 106 .byte 106 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 97 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 97 .byte 97 .byte 96 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 98 .byte 97 .byte 97 .byte 96 .byte 98 .byte 98 .byte 98 .byte 0 .byte 96 .byte 98 .byte 97 .byte 98 .byte 100 .byte 100 .byte 100 .byte 0 .byte 96 .byte 98 .byte 98 .byte 100 .byte 97 .byte 97 .byte 97 .byte 96 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 103 .byte 103 .byte 7 .byte 102 .byte 103 .byte 7 .byte 99 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 98 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 96 .byte 98 .byte 97 .byte 96 .byte 98 .byte 98 .byte 98 .byte 96 .byte 97 .byte 97 .byte 99 .byte 96 .byte 98 .byte 100 .byte 98 .byte 98 .byte 98 .byte 101 .byte 96 .byte 0 .byte 97 .byte 97 .byte 97 .byte 100 .byte 98 .byte 99 .byte 96 .byte 0 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 103 .byte 103 .byte 99 .byte 103 .byte 102 .byte 99 .byte 102 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 103 .byte 99 .byte 99 .byte 103 .byte 99 .byte 99 .byte 103 .byte 96 .byte 12 .byte 12 .byte 103 .byte 99 .byte 103 .byte 99 .byte 7 .byte 96 .byte 98 .byte 100 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 98 .byte 100 .byte 100 .byte 97 .byte 97 .byte 97 .byte 104 .byte 96 .byte 98 .byte 98 .byte 100 .byte 100 .byte 97 .byte 97 .byte 97 .byte 96 .byte 101 .byte 98 .byte 98 .byte 100 .byte 100 .byte 100 .byte 100 .byte 96 .byte 96 .byte 101 .byte 98 .byte 98 .byte 98 .byte 98 .byte 98 .byte 0 .byte 96 .byte 96 .byte 101 .byte 101 .byte 101 .byte 101 .byte 101 .byte 99 .byte 103 .byte 99 .byte 99 .byte 99 .byte 103 .byte 99 .byte 12 .byte 99 .byte 103 .byte 7 .byte 103 .byte 102 .byte 7 .byte 103 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 104 .byte 97 .byte 97 .byte 97 .byte 100 .byte 98 .byte 101 .byte 96 .byte 97 .byte 97 .byte 97 .byte 100 .byte 98 .byte 101 .byte 101 .byte 96 .byte 100 .byte 100 .byte 100 .byte 98 .byte 98 .byte 101 .byte 105 .byte 96 .byte 98 .byte 98 .byte 98 .byte 101 .byte 101 .byte 105 .byte 96 .byte 0 .byte 101 .byte 101 .byte 101 .byte 105 .byte 105 .byte 105 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 105 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 12 .byte 96 .byte 12 .byte 12 .byte 105 .byte 105 .byte 105 .byte 105 .byte 105 .byte 12 .byte 12 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 105 .byte 12 .byte 105 .byte 101 .byte 12 .byte 12 .byte 12 .byte 12 .byte 105 .byte 105 .byte 101 .byte 96 .byte 12 .byte 12 .byte 12 .byte 12 .byte 105 .byte 101 .byte 96 .byte 96 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 96 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 106 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 106 .byte 107 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 105 .byte 105 .byte 105 .byte 105 .byte 12 .byte 96 .byte 12 .byte 12 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 105 .byte 101 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 96 .byte 96 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 0 .byte 0 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 0 .byte 0 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 0 .byte 0 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 0 .byte 105 .byte 108 .byte 12 .byte 12 .byte 106 .byte 106 .byte 12 .byte 96 .byte 105 .byte 105 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 101 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 106 .byte 106 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 106 .byte 107 .byte 107 .byte 0 .byte 0 .byte 0 .byte 96 .byte 107 .byte 12 .byte 106 .byte 107 .byte 0 .byte 0 .byte 0 .byte 96 .byte 107 .byte 12 .byte 12 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 12 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 107 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 108 .byte 103 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 105 .byte 107 .byte 107 .byte 106 .byte 106 .byte 12 .byte 108 .byte 108 .byte 12 .byte 106 .byte 107 .byte 107 .byte 107 .byte 107 .byte 107 .byte 106 .byte 106 .byte 12 .byte 106 .byte 106 .byte 106 .byte 106 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 105 .byte 12 .byte 12 .byte 12 .byte 106 .byte 107 .byte 12 .byte 12 .byte 105 .byte 12 .byte 12 .byte 12 .byte 103 .byte 107 .byte 12 .byte 12 .byte 105 .byte 12 .byte 103 .byte 103 .byte 107 .byte 106 .byte 12 .byte 107 .byte 107 .byte 107 .byte 107 .byte 107 .byte 106 .byte 12 .byte 12 .byte 106 .byte 106 .byte 106 .byte 106 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 98 .byte 98 .byte 98 .byte 0 .byte 96 .byte 96 .byte 96 .byte 98 .byte 100 .byte 100 .byte 100 .byte 0 .byte 96 .byte 96 .byte 98 .byte 100 .byte 97 .byte 97 .byte 97 .byte 96 .byte 96 .byte 12 .byte 96 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 103 .byte 103 .byte 7 .byte 102 .byte 103 .byte 7 .byte 99 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 98 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 98 .byte 96 .byte 96 .byte 96 .byte 97 .byte 96 .byte 96 .byte 96 .byte 98 .byte 96 .byte 98 .byte 98 .byte 98 .byte 96 .byte 96 .byte 0 .byte 97 .byte 97 .byte 97 .byte 100 .byte 96 .byte 96 .byte 96 .byte 0 .byte 96 .byte 96 .byte 12 .byte 12 .byte 96 .byte 96 .byte 12 .byte 96 .byte 103 .byte 103 .byte 99 .byte 103 .byte 102 .byte 99 .byte 102 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 103 .byte 99 .byte 99 .byte 103 .byte 99 .byte 99 .byte 103 .byte 96 .byte 12 .byte 12 .byte 103 .byte 99 .byte 103 .byte 99 .byte 7 .byte 96 .byte 98 .byte 100 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 98 .byte 100 .byte 100 .byte 97 .byte 97 .byte 97 .byte 104 .byte 96 .byte 98 .byte 98 .byte 100 .byte 100 .byte 97 .byte 97 .byte 97 .byte 96 .byte 101 .byte 98 .byte 98 .byte 100 .byte 100 .byte 100 .byte 100 .byte 96 .byte 96 .byte 101 .byte 98 .byte 98 .byte 98 .byte 98 .byte 98 .byte 0 .byte 96 .byte 96 .byte 101 .byte 101 .byte 101 .byte 101 .byte 101 .byte 96 .byte 103 .byte 99 .byte 99 .byte 99 .byte 96 .byte 96 .byte 96 .byte 99 .byte 103 .byte 7 .byte 96 .byte 102 .byte 96 .byte 103 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 104 .byte 97 .byte 97 .byte 97 .byte 100 .byte 98 .byte 101 .byte 96 .byte 97 .byte 97 .byte 97 .byte 100 .byte 98 .byte 101 .byte 96 .byte 96 .byte 100 .byte 100 .byte 100 .byte 98 .byte 98 .byte 101 .byte 105 .byte 96 .byte 98 .byte 98 .byte 98 .byte 101 .byte 101 .byte 105 .byte 96 .byte 0 .byte 101 .byte 101 .byte 101 .byte 105 .byte 105 .byte 105 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 105 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 12 .byte 105 .byte 105 .byte 105 .byte 105 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 105 .byte 12 .byte 101 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 105 .byte 101 .byte 101 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 12 .byte 96 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 106 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 107 .byte 96 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 105 .byte 105 .byte 105 .byte 105 .byte 12 .byte 96 .byte 96 .byte 0 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 96 .byte 0 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 96 .byte 96 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 96 .byte 96 .byte 12 .byte 12 .byte 12 .byte 96 .byte 12 .byte 96 .byte 96 .byte 96 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 0 .byte 0 .byte 105 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 0 .byte 0 .byte 105 .byte 108 .byte 12 .byte 12 .byte 106 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 106 .byte 12 .byte 12 .byte 12 .byte 12 .byte 12 .byte 108 .byte 96 .byte 106 .byte 12 .byte 12 .byte 12 .byte 96 .byte 12 .byte 105 .byte 96 .byte 96 .byte 106 .byte 106 .byte 96 .byte 108 .byte 108 .byte 12 .byte 96 .byte 96 .byte 107 .byte 107 .byte 96 .byte 107 .byte 106 .byte 106 .byte 96 .byte 96 .byte 96 .byte 106 .byte 106 .byte 106 .byte 12 .byte 12 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 105 .byte 96 .byte 12 .byte 12 .byte 96 .byte 0 .byte 0 .byte 12 .byte 105 .byte 12 .byte 12 .byte 96 .byte 96 .byte 96 .byte 0 .byte 12 .byte 105 .byte 12 .byte 103 .byte 96 .byte 96 .byte 96 .byte 0 .byte 107 .byte 107 .byte 107 .byte 107 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 106 .byte 106 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 97 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 12 .byte 12 .byte 12 .byte 96 .byte 96 .byte 96 .byte 96 .byte 102 .byte 103 .byte 7 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 98 .byte 0 .byte 0 .byte 0 .byte 96 .byte 97 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 96 .byte 96 .byte 12 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 103 .byte 99 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 103 .byte 99 .byte 103 .byte 96 .byte 7 .byte 96 .byte 96 .byte 100 .byte 12 .byte 12 .byte 96 .byte 12 .byte 12 .byte 96 .byte 96 .byte 96 .byte 100 .byte 97 .byte 96 .byte 97 .byte 104 .byte 96 .byte 98 .byte 96 .byte 100 .byte 100 .byte 97 .byte 97 .byte 97 .byte 96 .byte 101 .byte 96 .byte 98 .byte 100 .byte 100 .byte 100 .byte 100 .byte 96 .byte 96 .byte 101 .byte 98 .byte 98 .byte 96 .byte 96 .byte 98 .byte 96 .byte 96 .byte 96 .byte 96 .byte 101 .byte 101 .byte 101 .byte 101 .byte 96 .byte 103 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 99 .byte 103 .byte 7 .byte 96 .byte 96 .byte 96 .byte 96 .byte 12 .byte 12 .byte 96 .byte 12 .byte 12 .byte 96 .byte 96 .byte 96 .byte 96 .byte 104 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 101 .byte 0 .byte 97 .byte 97 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 100 .byte 100 .byte 100 .byte 96 .byte 96 .byte 96 .byte 105 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 105 .byte 0 .byte 0 .byte 101 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 105 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 96 .byte 96 .byte 105 .byte 105 .byte 105 .byte 0 .byte 0 .byte 96 .byte 96 .byte 12 .byte 12 .byte 12 .byte 105 .byte 0 .byte 0 .byte 96 .byte 96 .byte 12 .byte 12 .byte 12 .byte 105 .byte 0 .byte 96 .byte 96 .byte 96 .byte 12 .byte 12 .byte 12 .byte 105 .byte 0 .byte 96 .byte 12 .byte 96 .byte 96 .byte 96 .byte 96 .byte 12 .byte 96 .byte 96 .byte 96 .byte 12 .byte 96 .byte 12 .byte 96 .byte 12 .byte 96 .byte 106 .byte 96 .byte 12 .byte 96 .byte 12 .byte 96 .byte 96 .byte 96 .byte 107 .byte 96 .byte 12 .byte 12 .byte 12 .byte 12 .byte 96 .byte 105 .byte 105 .byte 105 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 105 .byte 12 .byte 12 .byte 96 .byte 0 .byte 0 .byte 96 .byte 0 .byte 105 .byte 12 .byte 12 .byte 12 .byte 0 .byte 0 .byte 96 .byte 0 .byte 105 .byte 12 .byte 12 .byte 96 .byte 0 .byte 0 .byte 96 .byte 0 .byte 12 .byte 12 .byte 12 .byte 96 .byte 12 .byte 0 .byte 96 .byte 0 .byte 12 .byte 96 .byte 96 .byte 96 .byte 12 .byte 96 .byte 0 .byte 0 .byte 96 .byte 96 .byte 12 .byte 96 .byte 12 .byte 96 .byte 0 .byte 0 .byte 105 .byte 108 .byte 12 .byte 96 .byte 106 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 106 .byte 96 .byte 96 .byte 12 .byte 12 .byte 12 .byte 108 .byte 96 .byte 96 .byte 12 .byte 96 .byte 12 .byte 96 .byte 96 .byte 105 .byte 96 .byte 96 .byte 106 .byte 96 .byte 96 .byte 108 .byte 108 .byte 12 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 105 .byte 96 .byte 96 .byte 12 .byte 96 .byte 0 .byte 0 .byte 96 .byte 105 .byte 12 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 96 .byte 96 .byte 12 .byte 103 .byte 96 .byte 96 .byte 0 .byte 0 .byte 96 .byte 107 .byte 96 .byte 107 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 12 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 12 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 96 .byte 96 .byte 100 .byte 100 .byte 96 .byte 97 .byte 97 .byte 96 .byte 101 .byte 96 .byte 98 .byte 100 .byte 96 .byte 100 .byte 100 .byte 96 .byte 96 .byte 101 .byte 98 .byte 98 .byte 96 .byte 96 .byte 98 .byte 96 .byte 96 .byte 96 .byte 96 .byte 101 .byte 96 .byte 101 .byte 101 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 99 .byte 96 .byte 7 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 12 .byte 96 .byte 12 .byte 12 .byte 96 .byte 96 .byte 96 .byte 0 .byte 104 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 101 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 100 .byte 96 .byte 100 .byte 96 .byte 96 .byte 96 .byte 105 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 105 .byte 0 .byte 0 .byte 101 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 105 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 96 .byte 96 .byte 96 .byte 96 .byte 105 .byte 0 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 12 .byte 96 .byte 0 .byte 0 .byte 96 .byte 96 .byte 96 .byte 12 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 12 .byte 96 .byte 96 .byte 0 .byte 96 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 96 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 96 .byte 96 .byte 96 .byte 105 .byte 96 .byte 105 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 12 .byte 96 .byte 96 .byte 0 .byte 96 .byte 0 .byte 96 .byte 12 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 12 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 0 .byte 0 .byte 12 .byte 0 .byte 0 .byte 0 .byte 12 .byte 96 .byte 96 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 96 .byte 96 .byte 12 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 96 .byte 0 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 96 .byte 0 .byte 96 .byte 0 .byte 96 .byte 96 .byte 0 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 100 .byte 96 .byte 0 .byte 96 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 96 .byte 96 .byte 101 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 96 .byte 96 .byte 12 .byte 12 .byte 0 .byte 96 .byte 0 .byte 0 .byte 96 .byte 96 .byte 0 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 96 .byte 0 .byte 96 .byte 0 .byte 100 .byte 96 .byte 96 .byte 0 .byte 105 .byte 0 .byte 96 .byte 96 .byte 96 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 101 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 96 .byte 96 .byte 0 .byte 0 .byte 105 .byte 0 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 12 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 12 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 105 .byte 96 .byte 105 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 12 .byte 96 .byte 96 .byte 0 .byte 96 .byte 0 .byte 96 .byte 12 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 12 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 96 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 96 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 96 .byte 0 .byte 0 .byte 105 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 12 .byte 0 .byte 0 .byte 96 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 .byte 0 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "program.c" .align 3 .LC1: .string "argc >= 2 && \"Expecting at least one command-line argument.\"" .align 3 .LC2: .string "r" .align 3 .LC3: .string "inputStream && \"Failed to open input stream.\"" .align 3 .LC4: .string "doorCount <= 8192" .align 3 .LC5: .string "%u\n" .align 3 .LC6: .string "%u %u" .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc stp x29, x30, [sp, -176]! .cfi_def_cfa_offset 176 .cfi_offset 29, -176 .cfi_offset 30, -168 mov x29, sp .cfi_def_cfa_register 29 stp x19, x20, [sp, 16] stp x21, x22, [sp, 32] stp x23, x24, [sp, 48] stp x25, x26, [sp, 64] str x27, [sp, 80] sub sp, sp, #16 .cfi_offset 19, -160 .cfi_offset 20, -152 .cfi_offset 21, -144 .cfi_offset 22, -136 .cfi_offset 23, -128 .cfi_offset 24, -120 .cfi_offset 25, -112 .cfi_offset 26, -104 .cfi_offset 27, -96 str w0, [x29, 108] str x1, [x29, 96] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [x29, 168] mov x1, 0 ldr w0, [x29, 108] cmp w0, 1 bgt .L2 adrp x0, __PRETTY_FUNCTION__.1 add x3, x0, :lo12:__PRETTY_FUNCTION__.1 mov w2, 12 adrp x0, .LC0 add x1, x0, :lo12:.LC0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __assert_fail .L2: adrp x0, :got:stdout ldr x0, [x0, #:got_lo12:stdout] ldr x4, [x0] mov x3, 128 mov w2, 0 adrp x0, stdoutBuffer.0 add x1, x0, :lo12:stdoutBuffer.0 mov x0, x4 bl setvbuf ldr x0, [x29, 96] add x0, x0, 8 ldr x2, [x0] adrp x0, .LC2 add x1, x0, :lo12:.LC2 mov x0, x2 bl fopen str x0, [x29, 144] ldr x0, [x29, 144] cmp x0, 0 bne .L3 adrp x0, __PRETTY_FUNCTION__.1 add x3, x0, :lo12:__PRETTY_FUNCTION__.1 mov w2, 21 adrp x0, .LC0 add x1, x0, :lo12:.LC0 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl __assert_fail .L3: str wzr, [x29, 116] str wzr, [x29, 120] b .L4 .L18: mov x0, sp mov x19, x0 ldr w0, [x29, 116] cmp w0, 8192 bls .L5 adrp x0, __PRETTY_FUNCTION__.1 add x3, x0, :lo12:__PRETTY_FUNCTION__.1 mov w2, 27 adrp x0, .LC0 add x1, x0, :lo12:.LC0 adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl __assert_fail .L5: ldr w1, [x29, 116] uxtw x0, w1 sub x0, x0, #1 str x0, [x29, 152] uxtw x0, w1 mov x24, x0 mov x25, 0 lsr x0, x24, 61 lsl x21, x25, 3 orr x21, x0, x21 lsl x20, x24, 3 uxtw x0, w1 mov x26, x0 mov x27, 0 lsr x0, x26, 61 lsl x23, x27, 3 orr x23, x0, x23 lsl x22, x26, 3 uxtw x0, w1 add x0, x0, 15 lsr x0, x0, 4 lsl x0, x0, 4 and x2, x0, -65536 sub x2, sp, x2 .L6: cmp sp, x2 beq .L7 sub sp, sp, #65536 str xzr, [sp, 1024] b .L6 .L7: and x2, x0, 65535 sub sp, sp, x2 str xzr, [sp] and x0, x0, 65535 cmp x0, 1024 bcc .L8 str xzr, [sp, 1024] .L8: add x0, sp, 16 add x0, x0, 0 str x0, [x29, 160] uxtw x0, w1 mov x2, x0 mov w1, 0 ldr x0, [x29, 160] bl memset mov w0, 1 str w0, [x29, 124] b .L9 .L14: mov w0, 1 str w0, [x29, 128] b .L10 .L11: ldr x1, [x29, 160] ldr w0, [x29, 128] mov w2, 1 strb w2, [x1, x0] ldr w0, [x29, 128] add w0, w0, 2 str w0, [x29, 128] .L10: ldr w0, [x29, 116] ldr w1, [x29, 128] cmp w1, w0 bcc .L11 mov w0, 2 str w0, [x29, 132] b .L12 .L13: ldr x1, [x29, 160] ldr w0, [x29, 132] ldrb w0, [x1, x0] cmp w0, 0 cset w0, ne and w0, w0, 255 eor w0, w0, 1 and w0, w0, 255 and w0, w0, 1 and w2, w0, 255 ldr x1, [x29, 160] ldr w0, [x29, 132] strb w2, [x1, x0] ldr w0, [x29, 132] add w0, w0, 3 str w0, [x29, 132] .L12: ldr w0, [x29, 116] ldr w1, [x29, 132] cmp w1, w0 bcc .L13 ldr w0, [x29, 124] add w0, w0, 1 str w0, [x29, 124] .L9: ldr w0, [x29, 120] ldr w1, [x29, 124] cmp w1, w0 bcc .L14 ldr w0, [x29, 116] sub w0, w0, #1 ldr x1, [x29, 160] uxtw x0, w0 ldrb w0, [x1, x0] cmp w0, 0 cset w0, ne and w0, w0, 255 eor w0, w0, 1 and w0, w0, 255 mov w1, w0 ldr w0, [x29, 116] sub w0, w0, #1 and w1, w1, 1 and w2, w1, 255 ldr x1, [x29, 160] uxtw x0, w0 strb w2, [x1, x0] str wzr, [x29, 136] str wzr, [x29, 140] b .L15 .L17: ldr x1, [x29, 160] ldr w0, [x29, 140] ldrb w0, [x1, x0] eor w0, w0, 1 and w0, w0, 255 cmp w0, 0 beq .L16 ldr w0, [x29, 136] add w0, w0, 1 str w0, [x29, 136] .L16: ldr w0, [x29, 140] add w0, w0, 1 str w0, [x29, 140] .L15: ldr w0, [x29, 116] ldr w1, [x29, 140] cmp w1, w0 bcc .L17 ldr w1, [x29, 136] adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl printf mov sp, x19 .L4: add x1, x29, 120 add x0, x29, 116 mov x3, x1 mov x2, x0 adrp x0, .LC6 add x1, x0, :lo12:.LC6 ldr x0, [x29, 144] bl __isoc99_fscanf cmp w0, 2 beq .L18 mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [x29, 168] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L20 bl __stack_chk_fail .L20: mov w0, w1 mov sp, x29 ldp x19, x20, [sp, 16] ldp x21, x22, [sp, 32] ldp x23, x24, [sp, 48] ldp x25, x26, [sp, 64] ldr x27, [sp, 80] ldp x29, x30, [sp], 176 .cfi_restore 30 .cfi_restore 29 .cfi_restore 27 .cfi_restore 25 .cfi_restore 26 .cfi_restore 23 .cfi_restore 24 .cfi_restore 21 .cfi_restore 22 .cfi_restore 19 .cfi_restore 20 .cfi_def_cfa 31, 0 ret .cfi_endproc .LFE0: .size main, .-main .section .rodata .align 3 .type __PRETTY_FUNCTION__.1, %object .size __PRETTY_FUNCTION__.1, 5 __PRETTY_FUNCTION__.1: .string "main" .local stdoutBuffer.0 .comm stdoutBuffer.0,128,8 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global graph_input .bss .align 3 .type graph_input, %object .size graph_input, 464 graph_input: .zero 464 .global server_fd2 .align 2 .type server_fd2, %object .size server_fd2, 4 server_fd2: .zero 4 .section .rodata .align 3 .LC0: .string "Usage:\n\t--ioctl\t<ethX>\tDevice to send timestamping enable ioctl. Default: None\n\t--port\t<num>\tPort to listen on. Default: 9000\n\t--proto\t[TCP|UDP|RAW]. Default: UDP\n\t--max\t<num>\tStop after n packets. Default: Run forever" .text .align 2 .global print_help .type print_help, %function print_help: .LFB34: .cfi_startproc stp x29, x30, [sp, -16]! .cfi_def_cfa_offset 16 .cfi_offset 29, -16 .cfi_offset 30, -8 mov x29, sp adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl puts mov w0, -1 bl exit .cfi_endproc .LFE34: .size print_help, .-print_help .section .rodata .align 3 .LC1: .string "UDP" .align 3 .LC2: .string "TCP" .align 3 .LC3: .string "RAW" .align 3 .LC4: .string "ERROR: '%s' is not a recognised protocol (TCP or UCP).\n" .text .align 2 .type get_protcol, %function get_protcol: .LFB35: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] adrp x0, .LC1 add x1, x0, :lo12:.LC1 ldr x0, [sp, 16] bl strcasecmp cmp w0, 0 bne .L3 ldr x0, [sp, 24] mov w1, 17 str w1, [x0, 12] b .L2 .L3: adrp x0, .LC2 add x1, x0, :lo12:.LC2 ldr x0, [sp, 16] bl strcasecmp cmp w0, 0 bne .L5 ldr x0, [sp, 24] mov w1, 6 str w1, [x0, 12] b .L2 .L5: adrp x0, .LC3 add x1, x0, :lo12:.LC3 ldr x0, [sp, 16] bl strcasecmp cmp w0, 0 bne .L6 ldr x0, [sp, 24] mov w1, 3 str w1, [x0, 12] b .L2 .L6: ldr x1, [sp, 16] adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl printf mov w0, -22 bl exit .L2: ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE35: .size get_protcol, .-get_protcol .section .rodata .align 3 .LC5: .string "i:p:P:n:" .text .align 2 .type parse_options, %function parse_options: .LFB36: .cfi_startproc stp x29, x30, [sp, -80]! .cfi_def_cfa_offset 80 .cfi_offset 29, -80 .cfi_offset 30, -72 mov x29, sp str w0, [sp, 44] str x1, [sp, 32] str x2, [sp, 24] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 72] mov x1, 0 str wzr, [sp, 56] adrp x0, .LC5 add x0, x0, :lo12:.LC5 str x0, [sp, 64] ldr x0, [sp, 24] stp xzr, xzr, [x0] str xzr, [x0, 16] ldr x0, [sp, 24] mov w1, 9000 strh w1, [x0, 8] ldr x0, [sp, 24] mov w1, 17 str w1, [x0, 12] add x0, sp, 56 mov x4, x0 adrp x0, long_options.0 add x3, x0, :lo12:long_options.0 ldr x2, [sp, 64] ldr x1, [sp, 32] ldr w0, [sp, 44] bl getopt_long str w0, [sp, 60] b .L8 .L14: ldr w0, [sp, 60] cmp w0, 112 beq .L9 ldr w0, [sp, 60] cmp w0, 112 bgt .L10 ldr w0, [sp, 60] cmp w0, 110 beq .L11 ldr w0, [sp, 60] cmp w0, 110 bgt .L10 ldr w0, [sp, 60] cmp w0, 80 beq .L12 ldr w0, [sp, 60] cmp w0, 105 bne .L10 adrp x0, :got:optarg ldr x0, [x0, #:got_lo12:optarg] ldr x1, [x0] ldr x0, [sp, 24] str x1, [x0] b .L13 .L9: adrp x0, :got:optarg ldr x0, [x0, #:got_lo12:optarg] ldr x0, [x0] bl atoi and w1, w0, 65535 ldr x0, [sp, 24] strh w1, [x0, 8] b .L13 .L12: adrp x0, :got:optarg ldr x0, [x0, #:got_lo12:optarg] ldr x0, [x0] mov x1, x0 ldr x0, [sp, 24] bl get_protcol b .L13 .L11: adrp x0, :got:optarg ldr x0, [x0, #:got_lo12:optarg] ldr x0, [x0] bl atoi mov w1, w0 ldr x0, [sp, 24] str w1, [x0, 16] b .L13 .L10: bl print_help nop .L13: add x0, sp, 56 mov x4, x0 adrp x0, long_options.0 add x3, x0, :lo12:long_options.0 ldr x2, [sp, 64] ldr x1, [sp, 32] ldr w0, [sp, 44] bl getopt_long str w0, [sp, 60] .L8: ldr w0, [sp, 60] cmn w0, #1 bne .L14 nop adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x2, [sp, 72] ldr x1, [x0] subs x2, x2, x1 mov x1, 0 beq .L15 bl __stack_chk_fail .L15: ldp x29, x30, [sp], 80 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE36: .size parse_options, .-parse_options .align 2 .type make_address, %function make_address: .LFB37: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp strh w0, [sp, 30] str x1, [sp, 16] ldr x0, [sp, 16] stp xzr, xzr, [x0] ldr x0, [sp, 16] mov w1, 2 strh w1, [x0] ldrh w0, [sp, 30] bl htons and w1, w0, 65535 ldr x0, [sp, 16] strh w1, [x0, 2] ldr x0, [sp, 16] str wzr, [x0, 4] nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE37: .size make_address, .-make_address .section .rodata .align 3 .LC6: .string "%s" .align 3 .LC7: .string "ioctl(sock, SIOCSHWTSTAMP, &ifr)" .align 3 .LC8: .string "ERROR: TRY(%s) failed\n" .align 3 .LC9: .string "program.c" .align 3 .LC10: .string "ERROR: at %s:%d\n" .align 3 .LC11: .string "ERROR: rc=%d errno=%d (%s)\n" .text .align 2 .type do_ioctl, %function do_ioctl: .LFB38: .cfi_startproc stp x29, x30, [sp, -128]! .cfi_def_cfa_offset 128 .cfi_offset 29, -128 .cfi_offset 30, -120 mov x29, sp stp x19, x20, [sp, 16] .cfi_offset 19, -112 .cfi_offset 20, -104 str x0, [sp, 40] str w1, [sp, 36] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 120] mov x1, 0 ldr x0, [sp, 40] ldr x0, [x0] cmp x0, 0 beq .L23 add x0, sp, 80 stp xzr, xzr, [x0] stp xzr, xzr, [x0, 16] str xzr, [x0, 32] ldr x0, [sp, 40] ldr x0, [x0] add x4, sp, 80 mov x3, x0 adrp x0, .LC6 add x2, x0, :lo12:.LC6 mov x1, 16 mov x0, x4 bl snprintf str wzr, [sp, 64] str wzr, [sp, 68] mov w0, 1 str w0, [sp, 72] add x0, sp, 64 str x0, [sp, 96] add x0, sp, 80 mov x2, x0 mov x1, 35248 ldr w0, [sp, 36] bl ioctl str w0, [sp, 60] ldr w0, [sp, 60] cmp w0, 0 bge .L24 adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x3, [x0] adrp x0, .LC7 add x2, x0, :lo12:.LC7 adrp x0, .LC8 add x1, x0, :lo12:.LC8 mov x0, x3 bl fprintf adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x4, [x0] mov w3, 298 adrp x0, .LC9 add x2, x0, :lo12:.LC9 adrp x0, .LC10 add x1, x0, :lo12:.LC10 mov x0, x4 bl fprintf adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x19, [x0] bl __errno_location ldr w20, [x0] bl __errno_location ldr w0, [x0] bl strerror mov x4, x0 mov w3, w20 ldr w2, [sp, 60] adrp x0, .LC11 add x1, x0, :lo12:.LC11 mov x0, x19 bl fprintf mov w0, 1 bl exit .L23: nop b .L17 .L24: nop .L17: adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x2, [sp, 120] ldr x1, [x0] subs x2, x2, x1 mov x1, 0 beq .L22 bl __stack_chk_fail .L22: ldp x19, x20, [sp, 16] ldp x29, x30, [sp], 128 .cfi_restore 30 .cfi_restore 29 .cfi_restore 19 .cfi_restore 20 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE38: .size do_ioctl, .-do_ioctl .section .rodata .align 3 .LC12: .string "setsockopt(sock, SOL_SOCKET, SO_TIMESTAMPING, &enable, sizeof(int))" .text .align 2 .type do_ts_sockopt, %function do_ts_sockopt: .LFB39: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp stp x19, x20, [sp, 16] .cfi_offset 19, -48 .cfi_offset 20, -40 str w0, [sp, 44] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 56] mov x1, 0 mov w0, 1 str w0, [sp, 48] mov w0, 116 str w0, [sp, 48] add x0, sp, 48 mov w4, 4 mov x3, x0 mov w2, 37 mov w1, 1 ldr w0, [sp, 44] bl setsockopt str w0, [sp, 52] ldr w0, [sp, 52] cmp w0, 0 bge .L28 adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x3, [x0] adrp x0, .LC12 add x2, x0, :lo12:.LC12 adrp x0, .LC8 add x1, x0, :lo12:.LC8 mov x0, x3 bl fprintf adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x4, [x0] mov w3, 317 adrp x0, .LC9 add x2, x0, :lo12:.LC9 adrp x0, .LC10 add x1, x0, :lo12:.LC10 mov x0, x4 bl fprintf adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x19, [x0] bl __errno_location ldr w20, [x0] bl __errno_location ldr w0, [x0] bl strerror mov x4, x0 mov w3, w20 ldr w2, [sp, 52] adrp x0, .LC11 add x1, x0, :lo12:.LC11 mov x0, x19 bl fprintf mov w0, 1 bl exit .L28: 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 .L27 bl __stack_chk_fail .L27: ldp x19, x20, [sp, 16] ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_restore 19 .cfi_restore 20 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE39: .size do_ts_sockopt, .-do_ts_sockopt .section .rodata .align 3 .LC13: .string "s >= 0" .align 3 .LC14: .string "ERROR: '%s' failed\n" .align 3 .LC15: .string "bind(s, (struct sockaddr*)&host_address, sizeof(host_address))" .align 3 .LC16: .string "Socket created, listening on port %d\n" .align 3 .LC17: .string "Port %s: ioctl SIOCGIFINDEX failed" .text .align 2 .type add_socket, %function add_socket: .LFB40: .cfi_startproc stp x29, x30, [sp, -144]! .cfi_def_cfa_offset 144 .cfi_offset 29, -144 .cfi_offset 30, -136 mov x29, sp stp x19, x20, [sp, 16] .cfi_offset 19, -128 .cfi_offset 20, -120 str x0, [sp, 40] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 136] mov x1, 0 mov w0, 2 str w0, [sp, 56] ldr x0, [sp, 40] ldr w0, [x0, 12] cmp w0, 6 bne .L30 mov w0, 1 str w0, [sp, 56] .L30: ldr x0, [sp, 40] ldr w0, [x0, 12] cmp w0, 3 beq .L31 ldr x0, [sp, 40] ldrh w2, [x0, 8] add x0, sp, 72 mov x1, x0 mov w0, w2 bl make_address ldr x0, [sp, 40] ldrh w2, [x0, 8] add x0, sp, 72 mov x1, x0 mov w0, w2 bl make_address ldr x0, [sp, 40] ldr w0, [x0, 12] mov w2, w0 ldr w1, [sp, 56] mov w0, 2 bl socket str w0, [sp, 52] ldr w0, [sp, 52] cmp w0, 0 bge .L32 adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x3, [x0] adrp x0, .LC13 add x2, x0, :lo12:.LC13 adrp x0, .LC14 add x1, x0, :lo12:.LC14 mov x0, x3 bl fprintf adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x4, [x0] mov w3, 333 adrp x0, .LC9 add x2, x0, :lo12:.LC9 adrp x0, .LC10 add x1, x0, :lo12:.LC10 mov x0, x4 bl fprintf mov w0, 1 bl exit .L32: add x0, sp, 72 mov w2, 20 mov x1, x0 ldr w0, [sp, 52] bl bind str w0, [sp, 68] ldr w0, [sp, 68] cmp w0, 0 bge .L33 adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x3, [x0] adrp x0, .LC15 add x2, x0, :lo12:.LC15 adrp x0, .LC8 add x1, x0, :lo12:.LC8 mov x0, x3 bl fprintf adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x4, [x0] mov w3, 334 adrp x0, .LC9 add x2, x0, :lo12:.LC9 adrp x0, .LC10 add x1, x0, :lo12:.LC10 mov x0, x4 bl fprintf adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x19, [x0] bl __errno_location ldr w20, [x0] bl __errno_location ldr w0, [x0] bl strerror mov x4, x0 mov w3, w20 ldr w2, [sp, 68] adrp x0, .LC11 add x1, x0, :lo12:.LC11 mov x0, x19 bl fprintf mov w0, 1 bl exit .L33: ldr x0, [sp, 40] ldrh w0, [x0, 8] mov w1, w0 adrp x0, .LC16 add x0, x0, :lo12:.LC16 bl printf b .L34 .L31: mov w0, 3 bl htons and w0, w0, 65535 mov w2, w0 mov w1, 3 mov w0, 17 bl socket str w0, [sp, 52] ldr w0, [sp, 52] cmp w0, 0 bge .L35 adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x3, [x0] adrp x0, .LC13 add x2, x0, :lo12:.LC13 adrp x0, .LC14 add x1, x0, :lo12:.LC14 mov x0, x3 bl fprintf adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x4, [x0] mov w3, 344 adrp x0, .LC9 add x2, x0, :lo12:.LC9 adrp x0, .LC10 add x1, x0, :lo12:.LC10 mov x0, x4 bl fprintf mov w0, 1 bl exit .L35: add x0, sp, 96 mov x2, 40 mov w1, 0 bl memset ldr x0, [sp, 40] ldr x1, [x0] add x0, sp, 96 bl strcpy add x0, sp, 96 mov x2, x0 mov x1, 35123 ldr w0, [sp, 52] bl ioctl str w0, [sp, 60] ldr w0, [sp, 60] cmp w0, 0 bge .L36 ldr x0, [sp, 40] ldr x0, [x0] mov x1, x0 adrp x0, .LC17 add x0, x0, :lo12:.LC17 bl printf ldr w0, [sp, 60] b .L39 .L36: add x0, sp, 72 mov x2, 20 mov w1, 0 bl memset ldr w0, [sp, 112] str w0, [sp, 76] mov w0, 17 strh w0, [sp, 72] mov w0, 3 bl htons and w0, w0, 65535 strh w0, [sp, 74] add x0, sp, 72 mov w2, 20 mov x1, x0 ldr w0, [sp, 52] bl bind str w0, [sp, 64] ldr w0, [sp, 64] cmp w0, 0 bge .L34 adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x3, [x0] adrp x0, .LC15 add x2, x0, :lo12:.LC15 adrp x0, .LC8 add x1, x0, :lo12:.LC8 mov x0, x3 bl fprintf adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x4, [x0] mov w3, 357 adrp x0, .LC9 add x2, x0, :lo12:.LC9 adrp x0, .LC10 add x1, x0, :lo12:.LC10 mov x0, x4 bl fprintf adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x19, [x0] bl __errno_location ldr w20, [x0] bl __errno_location ldr w0, [x0] bl strerror mov x4, x0 mov w3, w20 ldr w2, [sp, 64] adrp x0, .LC11 add x1, x0, :lo12:.LC11 mov x0, x19 bl fprintf mov w0, 1 bl exit .L34: ldr w0, [sp, 52] .L39: mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 136] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L40 bl __stack_chk_fail .L40: mov w0, w1 ldp x19, x20, [sp, 16] ldp x29, x30, [sp], 144 .cfi_restore 30 .cfi_restore 29 .cfi_restore 19 .cfi_restore 20 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE40: .size add_socket, .-add_socket .section .rodata .align 3 .LC18: .string "In accept child " .align 3 .LC19: .string "listen(parent, 1)" .align 3 .LC20: .string "child >= 0" .align 3 .LC21: .string "Socket accepted" .text .align 2 .type accept_child, %function accept_child: .LFB41: .cfi_startproc stp x29, x30, [sp, -96]! .cfi_def_cfa_offset 96 .cfi_offset 29, -96 .cfi_offset 30, -88 mov x29, sp stp x19, x20, [sp, 16] .cfi_offset 19, -80 .cfi_offset 20, -72 str w0, [sp, 44] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 88] mov x1, 0 adrp x0, .LC18 add x0, x0, :lo12:.LC18 bl puts mov w0, 16 str w0, [sp, 60] mov w1, 1 ldr w0, [sp, 44] bl listen str w0, [sp, 64] ldr w0, [sp, 64] cmp w0, 0 bge .L42 adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x3, [x0] adrp x0, .LC19 add x2, x0, :lo12:.LC19 adrp x0, .LC8 add x1, x0, :lo12:.LC8 mov x0, x3 bl fprintf adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x4, [x0] mov w3, 373 adrp x0, .LC9 add x2, x0, :lo12:.LC9 adrp x0, .LC10 add x1, x0, :lo12:.LC10 mov x0, x4 bl fprintf adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x19, [x0] bl __errno_location ldr w20, [x0] bl __errno_location ldr w0, [x0] bl strerror mov x4, x0 mov w3, w20 ldr w2, [sp, 64] adrp x0, .LC11 add x1, x0, :lo12:.LC11 mov x0, x19 bl fprintf mov w0, 1 bl exit .L42: add x1, sp, 60 add x0, sp, 72 mov x2, x1 mov x1, x0 ldr w0, [sp, 44] bl accept str w0, [sp, 68] ldr w0, [sp, 68] cmp w0, 0 bge .L43 adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x3, [x0] adrp x0, .LC20 add x2, x0, :lo12:.LC20 adrp x0, .LC14 add x1, x0, :lo12:.LC14 mov x0, x3 bl fprintf adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x4, [x0] mov w3, 375 adrp x0, .LC9 add x2, x0, :lo12:.LC9 adrp x0, .LC10 add x1, x0, :lo12:.LC10 mov x0, x4 bl fprintf mov w0, 1 bl exit .L43: adrp x0, .LC21 add x0, x0, :lo12:.LC21 bl puts ldr w0, [sp, 68] 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 .L45 bl __stack_chk_fail .L45: mov w0, w1 ldp x19, x20, [sp, 16] ldp x29, x30, [sp], 96 .cfi_restore 30 .cfi_restore 29 .cfi_restore 19 .cfi_restore 20 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE41: .size accept_child, .-accept_child .section .rodata .align 3 .LC22: .string "Latency %lu.%.9lu \n" .align 3 .LC23: .string "sending of array of integers failed" .align 3 .LC24: .string "value sent :%d\n " .align 3 .LC25: .string "RX_byte[%d]=%x\n" .text .align 2 .type print_time, %function print_time: .LFB42: .cfi_startproc stp x29, x30, [sp, -96]! .cfi_def_cfa_offset 96 .cfi_offset 29, -96 .cfi_offset 30, -88 mov x29, sp str x0, [sp, 40] str x1, [sp, 32] str w2, [sp, 28] str wzr, [sp, 56] str wzr, [sp, 60] ldr x0, [sp, 40] cmp x0, 0 beq .L59 ldr x0, [sp, 32] add x0, x0, 48 ldrb w0, [x0] and x0, x0, 255 lsl x1, x0, 40 ldr x0, [sp, 32] add x0, x0, 49 ldrb w0, [x0] and x0, x0, 255 lsl x0, x0, 32 orr x1, x1, x0 ldr x0, [sp, 32] add x0, x0, 50 ldrb w0, [x0] and x0, x0, 255 lsl x0, x0, 24 orr x1, x1, x0 ldr x0, [sp, 32] add x0, x0, 51 ldrb w0, [x0] and x0, x0, 255 lsl x0, x0, 16 orr x1, x1, x0 ldr x0, [sp, 32] add x0, x0, 52 ldrb w0, [x0] and x0, x0, 255 lsl x0, x0, 8 orr x1, x1, x0 ldr x0, [sp, 32] add x0, x0, 53 ldrb w0, [x0] and x0, x0, 255 orr x0, x1, x0 str x0, [sp, 64] ldr x0, [sp, 32] add x0, x0, 54 ldrb w0, [x0] and x0, x0, 255 lsl x1, x0, 24 ldr x0, [sp, 32] add x0, x0, 55 ldrb w0, [x0] and x0, x0, 255 lsl x0, x0, 16 orr x1, x1, x0 ldr x0, [sp, 32] add x0, x0, 56 ldrb w0, [x0] and x0, x0, 255 lsl x0, x0, 8 orr x1, x1, x0 ldr x0, [sp, 32] add x0, x0, 57 ldrb w0, [x0] and x0, x0, 255 orr x0, x1, x0 str x0, [sp, 72] ldr x0, [sp, 64] cmp x0, 0 bne .L48 ldr x0, [sp, 72] cmp x0, 0 beq .L49 ldr x0, [sp, 32] add x0, x0, 16 ldrb w0, [x0] cmp w0, 34 bne .L49 ldr x0, [sp, 32] add x0, x0, 17 ldrb w0, [x0] cmp w0, 240 bne .L49 .L48: ldr x0, [sp, 40] add x0, x0, 32 ldr x1, [x0, 8] ldr x0, [sp, 72] cmp x1, x0 ble .L49 ldr x0, [sp, 40] add x0, x0, 32 ldr x1, [x0] ldr x0, [sp, 64] sub x0, x1, x0 str x0, [sp, 80] ldr x0, [sp, 40] add x0, x0, 32 ldr x1, [x0, 8] ldr x0, [sp, 72] sub x0, x1, x0 add x0, x0, 3800 str x0, [sp, 88] ldr x0, [sp, 88] mov x1, x0 mov x0, 54463 movk x0, 0x1, lsl 16 cmp x1, x0 bhi .L50 ldr x0, [sp, 32] add x0, x0, 40 ldrb w0, [x0] cmp w0, 119 bne .L51 adrp x0, graph_input add x0, x0, :lo12:graph_input mov w1, 49 strb w1, [x0] b .L52 .L51: ldr x0, [sp, 32] add x0, x0, 40 ldrb w0, [x0] cmp w0, 136 bne .L53 adrp x0, graph_input add x0, x0, :lo12:graph_input mov w1, 50 strb w1, [x0] b .L52 .L53: ldr x0, [sp, 32] add x0, x0, 40 ldrb w0, [x0] cmp w0, 102 bne .L54 adrp x0, graph_input add x0, x0, :lo12:graph_input mov w1, 51 strb w1, [x0] b .L52 .L54: ldr x0, [sp, 32] add x0, x0, 40 ldrb w0, [x0] cmp w0, 85 bne .L55 adrp x0, graph_input add x0, x0, :lo12:graph_input mov w1, 52 strb w1, [x0] b .L52 .L55: adrp x0, graph_input add x0, x0, :lo12:graph_input mov w1, 57 strb w1, [x0] .L52: ldr x0, [sp, 88] mov w1, w0 adrp x0, graph_input add x0, x0, :lo12:graph_input str w1, [x0, 4] .L50: ldr x0, [sp, 32] add x0, x0, 16 ldrb w0, [x0] cmp w0, 34 bne .L49 ldr x0, [sp, 32] add x0, x0, 17 ldrb w0, [x0] cmp w0, 240 bne .L49 ldr x0, [sp, 80] mov x1, x0 ldr x0, [sp, 88] mov x2, x0 adrp x0, .LC22 add x0, x0, :lo12:.LC22 bl printf adrp x0, server_fd2 add x0, x0, :lo12:server_fd2 ldr w4, [x0] mov w3, 0 mov x2, 464 adrp x0, graph_input add x1, x0, :lo12:graph_input mov w0, w4 bl send cmp x0, 0 bge .L56 adrp x0, .LC23 add x0, x0, :lo12:.LC23 bl printf .L56: adrp x0, graph_input add x0, x0, :lo12:graph_input ldr w0, [x0, 4] mov w1, w0 adrp x0, .LC24 add x0, x0, :lo12:.LC24 bl printf .L49: mov w0, 16 str w0, [sp, 56] b .L57 .L58: ldrsw x0, [sp, 56] ldr x1, [sp, 32] add x0, x1, x0 ldrb w0, [x0] mov w2, w0 ldr w1, [sp, 56] adrp x0, .LC25 add x0, x0, :lo12:.LC25 bl printf ldr w0, [sp, 56] add w0, w0, 1 str w0, [sp, 56] .L57: ldr w0, [sp, 56] cmp w0, 17 ble .L58 .L59: nop ldp x29, x30, [sp], 96 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE42: .size print_time, .-print_time .align 2 .type handle_time, %function handle_time: .LFB43: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x0, [sp, 40] str x1, [sp, 32] str w2, [sp, 28] str xzr, [sp, 48] ldr x0, [sp, 40] ldr x0, [x0, 40] cmp x0, 15 bls .L61 ldr x0, [sp, 40] ldr x0, [x0, 32] b .L62 .L61: mov x0, 0 .L62: str x0, [sp, 56] b .L63 .L69: ldr x0, [sp, 56] ldr w0, [x0, 8] cmp w0, 1 bne .L70 ldr x0, [sp, 56] ldr w0, [x0, 12] cmp w0, 35 beq .L66 cmp w0, 37 beq .L67 b .L65 .L66: ldr x0, [sp, 56] add x0, x0, 16 str x0, [sp, 48] b .L65 .L67: ldr x0, [sp, 56] add x0, x0, 16 str x0, [sp, 48] b .L65 .L70: nop .L65: ldr x1, [sp, 56] ldr x0, [sp, 40] bl __cmsg_nxthdr str x0, [sp, 56] .L63: ldr x0, [sp, 56] cmp x0, 0 bne .L69 ldr w2, [sp, 28] ldr x1, [sp, 32] ldr x0, [sp, 48] bl print_time nop ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE43: .size handle_time, .-handle_time .align 2 .type do_recv, %function do_recv: .LFB44: .cfi_startproc sub sp, sp, #3216 .cfi_def_cfa_offset 3216 stp x29, x30, [sp] .cfi_offset 29, -3216 .cfi_offset 30, -3208 mov x29, sp str w0, [sp, 28] str w1, [sp, 24] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 3208] mov x1, 0 add x0, sp, 120 mov x1, x0 mov w0, 0 bl make_address add x0, sp, 1160 str x0, [sp, 48] mov x0, 2048 str x0, [sp, 56] add x0, sp, 48 str x0, [sp, 80] mov x0, 1 str x0, [sp, 88] add x0, sp, 120 str x0, [sp, 64] mov w0, 16 str w0, [sp, 72] add x0, sp, 136 str x0, [sp, 96] mov x0, 1024 str x0, [sp, 104] add x0, sp, 64 mov w2, 0 mov x1, x0 ldr w0, [sp, 28] bl recvmsg str w0, [sp, 44] ldr w0, [sp, 44] cmp w0, 0 bne .L72 bl __errno_location ldr w0, [x0] cmp w0, 11 bne .L72 mov w0, 0 b .L74 .L72: add x1, sp, 1160 add x0, sp, 64 ldr w2, [sp, 44] bl handle_time ldr w0, [sp, 44] .L74: mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 3208] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L75 bl __stack_chk_fail .L75: mov w0, w1 ldp x29, x30, [sp] add sp, sp, 3216 .cfi_restore 29 .cfi_restore 30 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE44: .size do_recv, .-do_recv .section .rodata .align 3 .LC26: .string "Could not create socket" .align 3 .LC27: .string "192.168.0.15" .align 3 .LC28: .string "ERROR, no such host as %s\n" .align 3 .LC29: .string "ERROR connecting" .align 3 .LC30: .string "recvmsg returned 0 - end of stream" .text .align 2 .global main .type main, %function main: .LFB45: .cfi_startproc stp x29, x30, [sp, -128]! .cfi_def_cfa_offset 128 .cfi_offset 29, -128 .cfi_offset 30, -120 mov x29, sp str w0, [sp, 28] str x1, [sp, 16] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 120] mov x1, 0 str wzr, [sp, 36] add x0, sp, 56 mov x2, x0 ldr x1, [sp, 16] ldr w0, [sp, 28] bl parse_options mov w2, 0 mov w1, 1 mov w0, 2 bl socket mov w1, w0 adrp x0, server_fd2 add x0, x0, :lo12:server_fd2 str w1, [x0] adrp x0, server_fd2 add x0, x0, :lo12:server_fd2 ldr w0, [x0] cmp w0, 0 bge .L77 adrp x0, .LC26 add x0, x0, :lo12:.LC26 bl puts mov w0, 0 bl exit .L77: add x2, sp, 96 adrp x0, .LC27 add x1, x0, :lo12:.LC27 mov x0, x2 ldr x2, [x1] str x2, [x0] ldr x1, [x1, 5] str x1, [x0, 5] add x0, sp, 96 bl gethostbyname str x0, [sp, 48] ldr x0, [sp, 48] cmp x0, 0 bne .L78 adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x3, [x0] add x0, sp, 96 mov x2, x0 adrp x0, .LC28 add x1, x0, :lo12:.LC28 mov x0, x3 bl fprintf mov w0, 0 bl exit .L78: add x0, sp, 80 stp xzr, xzr, [x0] mov w0, 2 strh w0, [sp, 80] ldr x0, [sp, 48] ldr x0, [x0, 24] ldr x1, [x0] ldr x0, [sp, 48] ldr w0, [x0, 20] sxtw x2, w0 add x0, sp, 80 add x0, x0, 4 bl memmove mov w0, 9999 bl htons and w0, w0, 65535 strh w0, [sp, 82] adrp x0, server_fd2 add x0, x0, :lo12:server_fd2 ldr w0, [x0] add x1, sp, 80 mov w2, 16 bl connect cmp w0, 0 bge .L79 adrp x0, .LC29 add x0, x0, :lo12:.LC29 bl printf .L79: mov x2, 115 mov w1, 0 adrp x0, graph_input+4 add x0, x0, :lo12:graph_input+4 bl memset add x0, sp, 56 bl add_socket str w0, [sp, 40] add x0, sp, 56 ldr w1, [sp, 40] bl do_ioctl ldr w0, [sp, 40] str w0, [sp, 32] ldr w0, [sp, 68] cmp w0, 6 bne .L80 ldr w0, [sp, 40] bl accept_child str w0, [sp, 32] .L80: ldr w0, [sp, 32] bl do_ts_sockopt b .L81 .L83: ldr w1, [sp, 36] ldr w0, [sp, 32] bl do_recv str w0, [sp, 44] ldr w0, [sp, 44] cmp w0, 0 bne .L81 ldr w0, [sp, 68] cmp w0, 6 bne .L81 adrp x0, .LC30 add x0, x0, :lo12:.LC30 bl puts b .L82 .L81: ldr w0, [sp, 36] add w1, w0, 1 str w1, [sp, 36] ldr w1, [sp, 72] cmp w0, w1 bcc .L83 ldr w0, [sp, 72] cmp w0, 0 beq .L83 .L82: ldr w0, [sp, 32] bl close ldr w0, [sp, 68] cmp w0, 6 bne .L84 ldr w0, [sp, 40] bl close .L84: 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 .L86 bl __stack_chk_fail .L86: mov w0, w1 ldp x29, x30, [sp], 128 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE45: .size main, .-main .section .rodata .align 3 .LC31: .string "ioctl" .align 3 .LC32: .string "port" .align 3 .LC33: .string "proto" .align 3 .LC34: .string "max" .section .data.rel.local,"aw" .align 3 .type long_options.0, %object .size long_options.0, 160 long_options.0: .xword .LC31 .word 1 .zero 4 .xword 0 .word 105 .zero 4 .xword .LC32 .word 1 .zero 4 .xword 0 .word 112 .zero 4 .xword .LC33 .word 1 .zero 4 .xword 0 .word 80 .zero 4 .xword .LC34 .word 1 .zero 4 .xword 0 .word 110 .zero 4 .xword 0 .word 0 .zero 4 .xword 0 .word 0 .zero 4 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global tzname .bss .align 3 .type tzname, %object .size tzname, 16 tzname: .zero 16 .text .align 2 .global _get_tzname .type _get_tzname, %function _get_tzname: .LFB0: .cfi_startproc adrp x0, tzname add x0, x0, :lo12:tzname ret .cfi_endproc .LFE0: .size _get_tzname, .-_get_tzname .global daylight .bss .align 2 .type daylight, %object .size daylight, 4 daylight: .zero 4 .text .align 2 .global _get_daylight .type _get_daylight, %function _get_daylight: .LFB1: .cfi_startproc adrp x0, daylight add x0, x0, :lo12:daylight ret .cfi_endproc .LFE1: .size _get_daylight, .-_get_daylight .global timezone .bss .align 3 .type timezone, %object .size timezone, 8 timezone: .zero 8 .text .align 2 .global _get_timezone .type _get_timezone, %function _get_timezone: .LFB2: .cfi_startproc adrp x0, timezone add x0, x0, :lo12:timezone ret .cfi_endproc .LFE2: .size _get_timezone, .-_get_timezone .global environ .bss .align 3 .type environ, %object .size environ, 8 environ: .zero 8 .text .align 2 .global _get_environ .type _get_environ, %function _get_environ: .LFB3: .cfi_startproc adrp x0, environ add x0, x0, :lo12:environ ret .cfi_endproc .LFE3: .size _get_environ, .-_get_environ .align 2 .global __emscripten_environ_constructor .type __emscripten_environ_constructor, %function __emscripten_environ_constructor: .LFB4: .cfi_startproc stp x29, x30, [sp, -16]! .cfi_def_cfa_offset 16 .cfi_offset 29, -16 .cfi_offset 30, -8 mov x29, sp adrp x0, environ add x0, x0, :lo12:environ bl __buildEnvironment nop ldp x29, x30, [sp], 16 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE4: .size __emscripten_environ_constructor, .-__emscripten_environ_constructor .section .init_array,"aw",%init_array .align 3 .xword __emscripten_environ_constructor ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global XdmcpReallocARRAY16 .type XdmcpReallocARRAY16, %function XdmcpReallocARRAY16: .LFB6: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str w1, [sp, 20] ldr x0, [sp, 24] ldr x2, [x0, 8] ldrsw x0, [sp, 20] lsl x0, x0, 1 mov x1, x0 mov x0, x2 bl Xrealloc sxtw x0, w0 str x0, [sp, 40] ldr x0, [sp, 40] cmp x0, 0 bne .L2 mov w0, 0 b .L3 .L2: ldr w0, [sp, 20] and w1, w0, 255 ldr x0, [sp, 24] strb w1, [x0] ldr x0, [sp, 24] ldr x1, [sp, 40] str x1, [x0, 8] mov w0, 1 .L3: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size XdmcpReallocARRAY16, .-XdmcpReallocARRAY16 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "%d " .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp mov w0, 1 str w0, [sp, 28] b .L2 .L6: mov w0, 1 str w0, [sp, 24] nop .L3: ldr w0, [sp, 24] add w0, w0, 1 str w0, [sp, 24] ldr w0, [sp, 28] ldr w1, [sp, 24] sdiv w2, w0, w1 ldr w1, [sp, 24] mul w1, w2, w1 sub w0, w0, w1 cmp w0, 0 bne .L3 ldr w1, [sp, 28] ldr w0, [sp, 24] cmp w1, w0 bne .L2 ldr w1, [sp, 28] adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf cmp w0, 0 .L2: ldr w0, [sp, 28] add w0, w0, 1 str w0, [sp, 28] ldr w1, [sp, 28] mov w0, 16959 movk w0, 0xf, lsl 16 cmp w1, w0 ble .L6 mov w0, 0 ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC1: .string "%s/%03d" .align 3 .LC2: .string "TMCATE: Cannot make directory %s\n" .align 3 .LC3: .string "bar" .align 3 .LC4: .string "%s/t%04d.cat" .align 3 .LC5: .string "a" .align 3 .LC6: .string "resort" .align 3 .LC7: .string "w" .align 3 .LC8: .string "%s\n" .align 3 .LC9: .string "TMCATE: Cannot write to file %s\n" .align 3 .LC10: .string "%10.6f %10.6f %17s %6.3f %6.3f %6.3f %5.3f %5.3f %5.3f %3s %3s\n" .align 3 .LC11: .string "%10d stars read to %10.6f %10.6f (%s)\n" .text .align 2 .global main .type main, %function main: .LFB6: .cfi_startproc sub sp, sp, #2832 .cfi_def_cfa_offset 2832 stp x29, x30, [sp] .cfi_offset 29, -2832 .cfi_offset 30, -2824 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, 2824] mov x1, 0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 add x2, sp, 1424 mov x3, x0 ldp x0, x1, [x3] stp x0, x1, [x2] add x1, x3, 13 add x0, x2, 13 ldr x1, [x1] str x1, [x0] str wzr, [sp, 56] str wzr, [sp, 44] str wzr, [sp, 48] str wzr, [sp, 52] str xzr, [sp, 72] str xzr, [sp, 80] str wzr, [sp, 40] b .L2 .L4: add x0, sp, 1424 add x4, sp, 1544 ldr w3, [sp, 40] mov x2, x0 adrp x0, .LC1 add x1, x0, :lo12:.LC1 mov x0, x4 bl sprintf add x0, sp, 1544 mov w1, 0 bl access cmp w0, 0 beq .L3 add x0, sp, 1544 mov w1, 511 bl mkdir cmp w0, 0 beq .L3 adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x3, [x0] add x0, sp, 1544 mov x2, x0 adrp x0, .LC2 add x1, x0, :lo12:.LC2 mov x0, x3 bl fprintf .L3: ldr w0, [sp, 40] add w0, w0, 1 str w0, [sp, 40] .L2: ldr w0, [sp, 40] cmp w0, 179 ble .L4 str wzr, [sp, 36] b .L5 .L6: ldrsw x0, [sp, 36] add x1, sp, 1800 strb wzr, [x1, x0] ldr w0, [sp, 36] add w0, w0, 1 str w0, [sp, 36] .L5: ldr w0, [sp, 36] cmp w0, 255 ble .L6 add x1, sp, 1800 add x0, sp, 2056 bl strcpy b .L7 .L14: add x1, sp, 2312 add x3, sp, 160 adrp x0, .LC3 add x2, x0, :lo12:.LC3 mov x0, x3 bl setoken add x1, sp, 1480 add x0, sp, 160 mov w3, 16 mov x2, x1 mov w1, 2 bl getoken add x0, sp, 1480 bl atof str d0, [sp, 88] ldr d0, [sp, 88] mov x0, 140737488355328 movk x0, 0x4056, lsl 48 fmov d1, x0 fadd d0, d0, d1 str d0, [sp, 96] ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] ldr d0, [sp, 96] fcvtzs w0, d0 str w0, [sp, 60] ldr w0, [sp, 60] cmp w0, 180 ble .L8 b .L7 .L8: add x0, sp, 1424 add x4, sp, 1544 ldr w3, [sp, 60] mov x2, x0 adrp x0, .LC1 add x1, x0, :lo12:.LC1 mov x0, x4 bl sprintf ldr d0, [sp, 96] adrp x0, .LC12 ldr d1, [x0, #:lo12:.LC12] fadd d1, d0, d1 fmov d0, 1.0e+1 fmul d1, d1, d0 ldr w1, [sp, 60] mov w0, w1 lsl w0, w0, 2 add w0, w0, w1 lsl w0, w0, 1 scvtf d0, w0 fsub d0, d1, d0 fcvtzs w0, d0 str w0, [sp, 36] add x0, sp, 1544 add x4, sp, 1800 ldr w3, [sp, 36] mov x2, x0 adrp x0, .LC4 add x1, x0, :lo12:.LC4 mov x0, x4 bl sprintf add x1, sp, 2056 add x0, sp, 1800 bl strcmp cmp w0, 0 beq .L9 ldr w0, [sp, 52] cmp w0, 1 bne .L10 adrp x0, .LC5 add x1, x0, :lo12:.LC5 adrp x0, .LC6 add x0, x0, :lo12:.LC6 bl fopen str x0, [sp, 80] ldr x0, [sp, 80] cmp x0, 0 bne .L11 adrp x0, .LC7 add x1, x0, :lo12:.LC7 adrp x0, .LC6 add x0, x0, :lo12:.LC6 bl fopen str x0, [sp, 80] .L11: ldr x0, [sp, 80] cmp x0, 0 beq .L10 add x0, sp, 2056 mov x2, x0 adrp x0, .LC8 add x1, x0, :lo12:.LC8 ldr x0, [sp, 80] bl fprintf ldr x0, [sp, 80] bl fclose .L10: ldr x0, [sp, 72] cmp x0, 0 beq .L12 ldr x0, [sp, 72] bl fclose .L12: add x2, sp, 1800 adrp x0, .LC5 add x1, x0, :lo12:.LC5 mov x0, x2 bl fopen str x0, [sp, 72] ldr x0, [sp, 72] cmp x0, 0 bne .L13 add x2, sp, 1800 adrp x0, .LC7 add x1, x0, :lo12:.LC7 mov x0, x2 bl fopen str x0, [sp, 72] ldr x0, [sp, 72] cmp x0, 0 bne .L13 add x0, sp, 1800 mov x1, x0 adrp x0, .LC9 add x0, x0, :lo12:.LC9 bl printf b .L7 .L13: add x1, sp, 1800 add x0, sp, 2056 bl strcpy str wzr, [sp, 52] .L9: add x1, sp, 1480 add x0, sp, 160 mov w3, 16 mov x2, x1 mov w1, 1 bl getoken add x0, sp, 1480 bl atof str d0, [sp, 104] add x1, sp, 1448 add x0, sp, 160 mov w3, 32 mov x2, x1 mov w1, 6 bl getoken add x1, sp, 1480 add x0, sp, 160 mov w3, 16 mov x2, x1 mov w1, 7 bl getoken add x0, sp, 1480 bl atof str d0, [sp, 112] add x1, sp, 1480 add x0, sp, 160 mov w3, 16 mov x2, x1 mov w1, 11 bl getoken add x0, sp, 1480 bl atof str d0, [sp, 120] add x1, sp, 1480 add x0, sp, 160 mov w3, 16 mov x2, x1 mov w1, 15 bl getoken add x0, sp, 1480 bl atof str d0, [sp, 128] add x1, sp, 1480 add x0, sp, 160 mov w3, 16 mov x2, x1 mov w1, 9 bl getoken add x0, sp, 1480 bl atof str d0, [sp, 136] add x1, sp, 1480 add x0, sp, 160 mov w3, 16 mov x2, x1 mov w1, 13 bl getoken add x0, sp, 1480 bl atof str d0, [sp, 144] add x1, sp, 1480 add x0, sp, 160 mov w3, 16 mov x2, x1 mov w1, 17 bl getoken add x0, sp, 1480 bl atof str d0, [sp, 152] add x1, sp, 1480 add x0, sp, 160 mov w3, 4 mov x2, x1 mov w1, 19 bl getoken add x1, sp, 1480 add x0, sp, 1408 mov x2, 3 bl strncpy strb wzr, [sp, 1411] add x1, sp, 1480 add x0, sp, 160 mov w3, 4 mov x2, x1 mov w1, 20 bl getoken add x1, sp, 1480 add x0, sp, 1416 mov x2, 3 bl strncpy strb wzr, [sp, 1419] add x1, sp, 1480 add x0, sp, 160 mov w3, 4 mov x2, x1 mov w1, 49 bl getoken add x0, sp, 1480 bl atoi str w0, [sp, 64] add x1, sp, 1480 add x0, sp, 160 mov w3, 4 mov x2, x1 mov w1, 50 bl getoken add x0, sp, 1480 bl atoi str w0, [sp, 68] ldr w0, [sp, 68] cmp w0, 0 beq .L7 ldr w0, [sp, 52] add w0, w0, 1 str w0, [sp, 52] add x2, sp, 1416 add x1, sp, 1408 add x0, sp, 1448 mov x4, x2 mov x3, x1 ldr d7, [sp, 152] ldr d6, [sp, 144] ldr d5, [sp, 136] ldr d4, [sp, 128] ldr d3, [sp, 120] ldr d2, [sp, 112] mov x2, x0 ldr d1, [sp, 88] ldr d0, [sp, 104] adrp x0, .LC10 add x1, x0, :lo12:.LC10 ldr x0, [sp, 72] bl fprintf ldr w0, [sp, 48] add w0, w0, 1 str w0, [sp, 48] ldr w1, [sp, 48] mov w0, 46473 movk w0, 0x14f8, lsl 16 smull x0, w1, w0 lsr x0, x0, 32 asr w2, w0, 13 asr w0, w1, 31 sub w0, w2, w0 mov w2, 34464 movk w2, 0x1, lsl 16 mul w0, w0, w2 sub w0, w1, w0 cmp w0, 0 bne .L7 adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x4, [x0] add x0, sp, 1800 mov x3, x0 ldr d1, [sp, 88] ldr d0, [sp, 104] ldr w2, [sp, 48] adrp x0, .LC11 add x1, x0, :lo12:.LC11 mov x0, x4 bl fprintf .L7: adrp x0, :got:stdin ldr x0, [x0, #:got_lo12:stdin] ldr x1, [x0] add x0, sp, 2312 mov x2, x1 mov w1, 512 bl fgets cmp x0, 0 bne .L14 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, 2824] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L16 bl __stack_chk_fail .L16: mov w0, w1 ldp x29, x30, [sp] add sp, sp, 2832 .cfi_restore 29 .cfi_restore 30 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size main, .-main .section .rodata .align 3 .LC0: .string "/data/astrocat2/tmce" .text .section .rodata .align 3 .LC13: .string "tab" .text .align 2 .global setoken .type setoken, %function setoken: .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 x0, [sp, 40] str x1, [sp, 32] str x2, [sp, 24] mov w0, 10 strb w0, [sp, 56] mov w0, 39 strb w0, [sp, 57] mov w0, 34 strb w0, [sp, 58] ldr x0, [sp, 32] cmp x0, 0 bne .L18 mov w0, 0 b .L19 .L18: ldrb w0, [sp, 56] mov w1, w0 ldr x0, [sp, 32] bl strchr str x0, [sp, 96] ldr x0, [sp, 96] cmp x0, 0 beq .L20 ldr x1, [sp, 96] ldr x0, [sp, 32] sub x0, x1, x0 sub w0, w0, #1 mov w1, w0 ldr x0, [sp, 40] str w1, [x0, 8] b .L21 .L20: ldr x0, [sp, 32] bl strlen mov w1, w0 ldr x0, [sp, 40] str w1, [x0, 8] .L21: ldr x0, [sp, 40] ldr x1, [sp, 32] str x1, [x0] ldr x0, [sp, 24] cmp x0, 0 bne .L22 str wzr, [sp, 68] b .L23 .L22: ldr x0, [sp, 24] bl strlen str w0, [sp, 68] .L23: ldr w0, [sp, 68] cmp w0, 0 ble .L24 mov x2, 3 adrp x0, .LC13 add x1, x0, :lo12:.LC13 ldr x0, [sp, 24] bl strncmp cmp w0, 0 bne .L24 ldr x0, [sp, 40] mov w1, 9 strb w1, [x0, 20] ldr x0, [sp, 40] strb wzr, [x0, 21] ldr x0, [sp, 40] mov w1, 2 str w1, [x0, 16] b .L25 .L24: ldr w0, [sp, 68] cmp w0, 0 ble .L26 mov x2, 3 adrp x0, .LC3 add x1, x0, :lo12:.LC3 ldr x0, [sp, 24] bl strncmp cmp w0, 0 bne .L26 ldr x0, [sp, 40] mov w1, 124 strb w1, [x0, 20] ldr x0, [sp, 40] strb wzr, [x0, 21] ldr x0, [sp, 40] mov w1, 2 str w1, [x0, 16] b .L25 .L26: ldr w0, [sp, 68] add w1, w0, 4 ldr x0, [sp, 40] str w1, [x0, 16] ldr x0, [sp, 40] mov w1, 32 strb w1, [x0, 20] ldr x0, [sp, 40] mov w1, 9 strb w1, [x0, 21] ldr x0, [sp, 40] mov w1, 44 strb w1, [x0, 22] ldr x0, [sp, 40] mov w1, 124 strb w1, [x0, 23] ldr x0, [sp, 40] strb wzr, [x0, 24] ldr x0, [sp, 40] ldr w0, [x0, 16] cmp w0, 20 ble .L27 ldr x0, [sp, 40] mov w1, 20 str w1, [x0, 16] .L27: ldr w0, [sp, 68] cmp w0, 0 ble .L25 str wzr, [sp, 60] mov w0, 4 str w0, [sp, 64] b .L28 .L29: ldrsw x0, [sp, 60] ldr x1, [sp, 24] add x0, x1, x0 ldrb w2, [x0] ldr x1, [sp, 40] ldrsw x0, [sp, 64] add x0, x1, x0 mov w1, w2 strb w1, [x0, 20] ldr w0, [sp, 60] add w0, w0, 1 str w0, [sp, 60] ldr w0, [sp, 64] add w0, w0, 1 str w0, [sp, 64] .L28: ldr x0, [sp, 40] ldr w0, [x0, 16] ldr w1, [sp, 64] cmp w1, w0 blt .L29 .L25: ldr x0, [sp, 40] ldr w0, [x0, 16] ldr x1, [sp, 40] sxtw x0, w0 add x0, x1, x0 strb wzr, [x0, 20] ldr x0, [sp, 40] str wzr, [x0, 12] ldr x0, [sp, 40] str wzr, [x0, 1240] ldr x0, [sp, 32] sub x0, x0, #1 str x0, [sp, 72] str wzr, [sp, 60] b .L30 .L31: ldr x1, [sp, 40] ldrsw x0, [sp, 60] add x0, x0, 4 lsl x0, x0, 3 add x0, x1, x0 str xzr, [x0, 8] ldr x1, [sp, 40] ldrsw x0, [sp, 60] add x0, x0, 208 lsl x0, x0, 2 add x0, x1, x0 str wzr, [x0, 8] ldr w0, [sp, 60] add w0, w0, 1 str w0, [sp, 60] .L30: ldr w0, [sp, 60] cmp w0, 99 ble .L31 ldr x0, [sp, 32] str x0, [sp, 80] ldr x0, [sp, 32] str x0, [sp, 88] b .L32 .L48: ldr x1, [sp, 80] ldr x0, [sp, 72] cmp x1, x0 bhi .L33 b .L32 .L33: ldr x0, [sp, 80] ldrb w0, [x0] strb w0, [sp, 59] ldrb w1, [sp, 59] ldrb w0, [sp, 57] cmp w1, w0 bne .L34 ldr x0, [sp, 80] add x0, x0, 1 ldrb w1, [sp, 57] bl strchr str x0, [sp, 72] b .L35 .L34: ldrb w1, [sp, 59] ldrb w0, [sp, 58] cmp w1, w0 bne .L36 ldr x0, [sp, 80] add x0, x0, 1 ldrb w1, [sp, 58] bl strchr str x0, [sp, 72] b .L35 .L36: ldr x0, [sp, 80] str x0, [sp, 72] .L35: ldr x1, [sp, 72] ldr x0, [sp, 80] cmp x1, x0 bls .L37 ldr x0, [sp, 40] ldr w0, [x0, 12] add w1, w0, 1 ldr x0, [sp, 40] str w1, [x0, 12] ldr x0, [sp, 40] ldr w0, [x0, 12] cmp w0, 100 ble .L38 mov w0, 100 b .L19 .L38: ldr x0, [sp, 40] ldr w3, [x0, 12] ldr x0, [sp, 80] add x1, x0, 1 ldr x2, [sp, 40] sxtw x0, w3 add x0, x0, 4 lsl x0, x0, 3 add x0, x2, x0 str x1, [x0, 8] ldr x1, [sp, 72] ldr x0, [sp, 80] sub x0, x1, x0 sub w1, w0, #1 ldr x0, [sp, 40] ldr w0, [x0, 12] mov w2, w1 ldr x1, [sp, 40] sxtw x0, w0 add x0, x0, 208 lsl x0, x0, 2 add x0, x1, x0 str w2, [x0, 8] ldr x0, [sp, 72] add x0, x0, 1 str x0, [sp, 80] ldr x0, [sp, 72] add x0, x0, 1 str x0, [sp, 88] b .L32 .L37: ldr x0, [sp, 40] add x0, x0, 20 ldrb w1, [sp, 59] bl strchr str x0, [sp, 104] ldr x0, [sp, 40] add x0, x0, 20 add x0, x0, 3 ldr x1, [sp, 104] cmp x1, x0 bls .L39 ldr x1, [sp, 80] ldr x0, [sp, 88] cmp x1, x0 bls .L40 ldr x0, [sp, 40] ldr w0, [x0, 12] add w1, w0, 1 ldr x0, [sp, 40] str w1, [x0, 12] ldr x0, [sp, 40] ldr w0, [x0, 12] cmp w0, 100 ble .L41 mov w0, 100 b .L19 .L41: ldr x0, [sp, 40] ldr w0, [x0, 12] ldr x1, [sp, 40] sxtw x0, w0 add x0, x0, 4 lsl x0, x0, 3 add x0, x1, x0 ldr x1, [sp, 88] str x1, [x0, 8] ldr x1, [sp, 80] ldr x0, [sp, 88] sub x1, x1, x0 ldr x0, [sp, 40] ldr w0, [x0, 12] mov w2, w1 ldr x1, [sp, 40] sxtw x0, w0 add x0, x0, 208 lsl x0, x0, 2 add x0, x1, x0 str w2, [x0, 8] .L40: ldr x0, [sp, 40] ldr w0, [x0, 12] add w1, w0, 1 ldr x0, [sp, 40] str w1, [x0, 12] ldr x0, [sp, 40] ldr w0, [x0, 12] cmp w0, 100 ble .L42 mov w0, 100 b .L19 .L42: ldr x0, [sp, 40] ldr w0, [x0, 12] ldr x1, [sp, 40] sxtw x0, w0 add x0, x0, 4 lsl x0, x0, 3 add x0, x1, x0 ldr x1, [sp, 80] str x1, [x0, 8] ldr x0, [sp, 40] ldr w0, [x0, 12] ldr x1, [sp, 40] sxtw x0, w0 add x0, x0, 208 lsl x0, x0, 2 add x0, x1, x0 mov w1, 1 str w1, [x0, 8] ldr x0, [sp, 80] add x0, x0, 1 str x0, [sp, 80] ldr x0, [sp, 80] str x0, [sp, 88] b .L32 .L39: ldr x0, [sp, 104] cmp x0, 0 bne .L43 ldrb w0, [sp, 59] cmp w0, 0 bne .L44 .L43: ldr x1, [sp, 80] ldr x0, [sp, 88] cmp x1, x0 bne .L45 ldr x0, [sp, 80] add x0, x0, 1 str x0, [sp, 80] ldr x0, [sp, 80] str x0, [sp, 88] b .L32 .L45: ldr x0, [sp, 40] ldr w0, [x0, 12] add w1, w0, 1 ldr x0, [sp, 40] str w1, [x0, 12] ldr x0, [sp, 40] ldr w0, [x0, 12] cmp w0, 100 ble .L47 mov w0, 100 b .L19 .L47: ldr x0, [sp, 40] ldr w0, [x0, 12] ldr x1, [sp, 40] sxtw x0, w0 add x0, x0, 4 lsl x0, x0, 3 add x0, x1, x0 ldr x1, [sp, 88] str x1, [x0, 8] ldr x1, [sp, 80] ldr x0, [sp, 88] sub x1, x1, x0 ldr x0, [sp, 40] ldr w0, [x0, 12] mov w2, w1 ldr x1, [sp, 40] sxtw x0, w0 add x0, x0, 208 lsl x0, x0, 2 add x0, x1, x0 str w2, [x0, 8] ldr x0, [sp, 80] add x0, x0, 1 str x0, [sp, 80] ldr x0, [sp, 80] str x0, [sp, 88] b .L32 .L44: ldr x0, [sp, 80] add x0, x0, 1 str x0, [sp, 80] .L32: ldr x0, [sp, 40] ldr w0, [x0, 8] sxtw x0, w0 ldr x1, [sp, 32] add x0, x1, x0 ldr x1, [sp, 80] cmp x1, x0 bcc .L48 ldr x1, [sp, 88] ldr x0, [sp, 80] cmp x1, x0 bcs .L49 ldr x0, [sp, 40] ldr w0, [x0, 12] add w1, w0, 1 ldr x0, [sp, 40] str w1, [x0, 12] ldr x0, [sp, 40] ldr w0, [x0, 12] cmp w0, 100 ble .L50 mov w0, 100 b .L19 .L50: ldr x0, [sp, 40] ldr w0, [x0, 12] ldr x1, [sp, 40] sxtw x0, w0 add x0, x0, 4 lsl x0, x0, 3 add x0, x1, x0 ldr x1, [sp, 88] str x1, [x0, 8] ldr x1, [sp, 80] ldr x0, [sp, 88] sub x0, x1, x0 add w1, w0, 1 ldr x0, [sp, 40] ldr w0, [x0, 12] mov w2, w1 ldr x1, [sp, 40] sxtw x0, w0 add x0, x0, 208 lsl x0, x0, 2 add x0, x1, x0 str w2, [x0, 8] .L49: ldr x0, [sp, 40] str wzr, [x0, 1240] ldr x0, [sp, 40] ldr w0, [x0, 12] .L19: ldp x29, x30, [sp], 112 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size setoken, .-setoken .align 2 .global nextoken .type nextoken, %function nextoken: .LFB8: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x0, [sp, 40] str x1, [sp, 32] str w2, [sp, 28] ldr w0, [sp, 28] sub w0, w0, #1 str w0, [sp, 60] ldr x0, [sp, 40] ldr w0, [x0, 1240] add w1, w0, 1 ldr x0, [sp, 40] str w1, [x0, 1240] ldr x0, [sp, 40] ldr w0, [x0, 1240] str w0, [sp, 52] ldr x0, [sp, 40] ldr w0, [x0, 12] ldr w1, [sp, 52] cmp w1, w0 ble .L52 ldr x0, [sp, 40] ldr w0, [x0, 12] str w0, [sp, 52] b .L53 .L52: ldr w0, [sp, 52] cmp w0, 0 bgt .L53 mov w0, 1 str w0, [sp, 52] .L53: ldr x1, [sp, 40] ldrsw x0, [sp, 52] add x0, x0, 208 lsl x0, x0, 2 add x0, x1, x0 ldr w0, [x0, 8] str w0, [sp, 48] ldr w1, [sp, 48] ldr w0, [sp, 60] cmp w1, w0 ble .L54 ldr w0, [sp, 60] str w0, [sp, 48] .L54: ldr x1, [sp, 40] ldrsw x0, [sp, 52] add x0, x0, 4 lsl x0, x0, 3 add x0, x1, x0 ldr x0, [x0, 8] ldrsw x1, [sp, 48] mov x2, x1 mov x1, x0 ldr x0, [sp, 32] bl strncpy ldr w0, [sp, 48] str w0, [sp, 56] b .L55 .L56: ldrsw x0, [sp, 56] ldr x1, [sp, 32] add x0, x1, x0 strb wzr, [x0] ldr w0, [sp, 56] add w0, w0, 1 str w0, [sp, 56] .L55: ldr w1, [sp, 56] ldr w0, [sp, 60] cmp w1, w0 blt .L56 ldr w0, [sp, 48] ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE8: .size nextoken, .-nextoken .align 2 .global getoken .type getoken, %function getoken: .LFB9: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x0, [sp, 40] str w1, [sp, 36] str x2, [sp, 24] str w3, [sp, 32] ldr w0, [sp, 32] sub w0, w0, #1 str w0, [sp, 60] ldr w0, [sp, 36] str w0, [sp, 52] ldr w0, [sp, 52] cmp w0, 0 ble .L59 ldr x0, [sp, 40] ldr w0, [x0, 12] ldr w1, [sp, 52] cmp w1, w0 ble .L60 ldr x0, [sp, 40] ldr w0, [x0, 12] str w0, [sp, 52] .L60: ldr x1, [sp, 40] ldrsw x0, [sp, 52] add x0, x0, 208 lsl x0, x0, 2 add x0, x1, x0 ldr w0, [x0, 8] str w0, [sp, 48] ldr w1, [sp, 48] ldr w0, [sp, 60] cmp w1, w0 ble .L61 ldr w0, [sp, 60] str w0, [sp, 48] .L61: ldr x1, [sp, 40] ldrsw x0, [sp, 52] add x0, x0, 4 lsl x0, x0, 3 add x0, x1, x0 ldr x0, [x0, 8] ldrsw x1, [sp, 48] mov x2, x1 mov x1, x0 ldr x0, [sp, 24] bl strncpy b .L62 .L59: ldr w0, [sp, 52] cmp w0, 0 bge .L63 ldr x0, [sp, 40] ldr w0, [x0, 12] neg w0, w0 ldr w1, [sp, 52] cmp w1, w0 bge .L64 ldr x0, [sp, 40] ldr w0, [x0, 12] neg w0, w0 str w0, [sp, 52] .L64: ldr x0, [sp, 40] ldr x1, [x0] ldr x0, [sp, 40] ldr w0, [x0, 8] sxtw x0, w0 add x1, x1, x0 ldr w0, [sp, 52] neg w0, w0 ldr x2, [sp, 40] sxtw x0, w0 add x0, x0, 4 lsl x0, x0, 3 add x0, x2, x0 ldr x0, [x0, 8] sub x0, x1, x0 str w0, [sp, 48] ldr w1, [sp, 48] ldr w0, [sp, 60] cmp w1, w0 ble .L65 ldr w0, [sp, 60] str w0, [sp, 48] .L65: ldr w0, [sp, 52] neg w0, w0 ldr x1, [sp, 40] sxtw x0, w0 add x0, x0, 4 lsl x0, x0, 3 add x0, x1, x0 ldr x0, [x0, 8] ldrsw x1, [sp, 48] mov x2, x1 mov x1, x0 ldr x0, [sp, 24] bl strncpy b .L62 .L63: ldr x0, [sp, 40] ldr w0, [x0, 8] str w0, [sp, 48] ldr w1, [sp, 48] ldr w0, [sp, 60] cmp w1, w0 ble .L66 ldr w0, [sp, 60] str w0, [sp, 48] .L66: ldr x0, [sp, 40] ldr x0, [x0, 48] ldrsw x1, [sp, 48] mov x2, x1 mov x1, x0 ldr x0, [sp, 24] bl strncpy .L62: ldr w0, [sp, 48] str w0, [sp, 56] b .L67 .L68: ldrsw x0, [sp, 56] ldr x1, [sp, 24] add x0, x1, x0 strb wzr, [x0] ldr w0, [sp, 56] add w0, w0, 1 str w0, [sp, 56] .L67: ldr w1, [sp, 56] ldr w0, [sp, 60] cmp w1, w0 blt .L68 ldr w0, [sp, 48] ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE9: .size getoken, .-getoken .section .rodata .align 3 .LC12: .word -1698910392 .word 1048238066 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "MEM_COM" .align 3 .LC1: .string "\nError en shm_open" .align 3 .LC2: .string "\nError en mmap" .align 3 .LC3: .string "Proceso hijo, direccion del puntero %p\n" .align 3 .LC4: .string "INFORMACION PARA OTRO PROCESO\n" .align 3 .LC5: .string "MENSAJE copiado en memoria" .align 3 .LC6: .string "Proceso padre, direccion del puntero %p\n" .align 3 .LC7: .string "\nLeido: %s" .align 3 .LC8: .string "\nError en shm_unlink" .text .align 2 .global main .type main, %function main: .LFB6: .cfi_startproc sub sp, sp, #1200 .cfi_def_cfa_offset 1200 stp x29, x30, [sp] .cfi_offset 29, -1200 .cfi_offset 30, -1192 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 1192] mov x1, 0 mov w2, 511 mov w1, 66 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl shm_open str w0, [sp, 20] ldr w0, [sp, 20] cmn w0, #1 bne .L2 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl puts mov w0, -1 bl exit .L2: bl fork str w0, [sp, 24] ldr w0, [sp, 24] cmp w0, 0 bne .L3 mov x5, 0 ldr w4, [sp, 20] mov w3, 1 mov w2, 3 mov x1, 10 mov x0, 0 bl mmap str x0, [sp, 32] ldr x0, [sp, 32] cmn x0, #1 bne .L4 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl puts mov w0, -1 bl exit .L4: ldr x1, [sp, 32] adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl printf mov x2, 31 adrp x0, .LC4 add x1, x0, :lo12:.LC4 ldr x0, [sp, 32] bl memcpy adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl puts mov w0, 0 bl exit .L3: ldr w0, [sp, 24] cmp w0, 0 ble .L5 mov x5, 0 ldr w4, [sp, 20] mov w3, 1 mov w2, 3 mov x1, 10 mov x0, 0 bl mmap str x0, [sp, 32] ldr x0, [sp, 32] cmn x0, #1 bne .L6 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl puts mov w0, -1 bl exit .L6: ldr x1, [sp, 32] adrp x0, .LC6 add x0, x0, :lo12:.LC6 bl printf mov x0, 0 bl wait ldr x0, [sp, 88] mov x1, x0 add x0, sp, 168 mov x2, x1 ldr x1, [sp, 32] bl memcpy add x0, sp, 168 mov x1, x0 adrp x0, .LC7 add x0, x0, :lo12:.LC7 bl printf adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl shm_unlink str w0, [sp, 28] ldr w0, [sp, 28] cmn w0, #1 bne .L5 adrp x0, .LC8 add x0, x0, :lo12:.LC8 bl puts mov w0, -1 bl exit .L5: mov w0, 0 bl exit .cfi_endproc .LFE6: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global file .bss .align 3 .type file, %object .size file, 8 file: .zero 8 .global buff .align 3 .type buff, %object .size buff, 1000 buff: .zero 1000 .global words .align 3 .type words, %object .size words, 1080000 words: .zero 1080000 .global files .align 3 .type files, %object .size files, 1296 files: .zero 1296 .global finalArray .align 3 .type finalArray, %object .size finalArray, 43632 finalArray: .zero 43632 .text .align 2 .global compareWords .type compareWords, %function compareWords: .LFB6: .cfi_startproc sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, 8] str x1, [sp] ldr x0, [sp, 8] str x0, [sp, 16] ldr x0, [sp] str x0, [sp, 24] ldr x0, [sp, 24] ldr w1, [x0, 104] ldr x0, [sp, 16] ldr w0, [x0, 104] sub w0, w1, w0 add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size compareWords, .-compareWords .section .rodata .align 3 .LC0: .string "usage %s filename invalid" .align 3 .LC1: .string "r" .align 3 .LC2: .string "Couldn't open file" .align 3 .LC3: .string "%s" .align 3 .LC4: .string " FileName: %s " .align 3 .LC5: .string " Unique Words: %d" .align 3 .LC6: .string " Word: %s" .text .align 2 .global main .type main, %function main: .LFB7: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str w0, [sp, 28] str x1, [sp, 16] str wzr, [sp, 32] mov w0, 1 str w0, [sp, 44] b .L4 .L16: ldr w0, [sp, 28] cmp w0, 1 bgt .L5 ldrsw x0, [sp, 44] lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x0, [x0] mov x1, x0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf b .L6 .L5: str wzr, [sp, 40] ldrsw x0, [sp, 44] lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x2, [x0] adrp x0, .LC1 add x1, x0, :lo12:.LC1 mov x0, x2 bl fopen mov x1, x0 adrp x0, file add x0, x0, :lo12:file str x1, [x0] adrp x0, file add x0, x0, :lo12:file ldr x0, [x0] cmp x0, 0 bne .L8 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl puts b .L6 .L13: ldr w0, [sp, 32] add w0, w0, 1 str w0, [sp, 32] mov w0, -1 str w0, [sp, 36] str wzr, [sp, 48] b .L9 .L11: ldrsw x1, [sp, 48] mov x0, x1 lsl x0, x0, 3 sub x0, x0, x1 lsl x0, x0, 2 sub x0, x0, x1 lsl x0, x0, 2 adrp x1, words add x1, x1, :lo12:words add x2, x0, x1 adrp x0, buff add x1, x0, :lo12:buff mov x0, x2 bl strcmp cmp w0, 0 bne .L10 ldr w0, [sp, 48] str w0, [sp, 36] .L10: ldr w0, [sp, 48] add w0, w0, 1 str w0, [sp, 48] .L9: ldr w1, [sp, 48] ldr w0, [sp, 40] cmp w1, w0 blt .L11 ldr w0, [sp, 36] cmn w0, #1 bne .L12 ldrsw x1, [sp, 40] mov x0, x1 lsl x0, x0, 3 sub x0, x0, x1 lsl x0, x0, 2 sub x0, x0, x1 lsl x0, x0, 2 adrp x1, words add x1, x1, :lo12:words add x2, x0, x1 adrp x0, buff add x1, x0, :lo12:buff mov x0, x2 bl strcpy adrp x0, words add x2, x0, :lo12:words ldrsw x1, [sp, 40] mov x0, x1 lsl x0, x0, 3 sub x0, x0, x1 lsl x0, x0, 2 sub x0, x0, x1 lsl x0, x0, 2 add x0, x2, x0 mov w1, 1 str w1, [x0, 104] ldr w0, [sp, 40] add w0, w0, 1 str w0, [sp, 40] b .L8 .L12: adrp x0, words add x2, x0, :lo12:words ldrsw x1, [sp, 36] mov x0, x1 lsl x0, x0, 3 sub x0, x0, x1 lsl x0, x0, 2 sub x0, x0, x1 lsl x0, x0, 2 add x0, x2, x0 ldr w0, [x0, 104] add w2, w0, 1 adrp x0, words add x3, x0, :lo12:words ldrsw x1, [sp, 36] mov x0, x1 lsl x0, x0, 3 sub x0, x0, x1 lsl x0, x0, 2 sub x0, x0, x1 lsl x0, x0, 2 add x0, x3, x0 str w2, [x0, 104] .L8: adrp x0, file add x0, x0, :lo12:file ldr x3, [x0] adrp x0, buff add x2, x0, :lo12:buff adrp x0, .LC3 add x1, x0, :lo12:.LC3 mov x0, x3 bl __isoc99_fscanf cmn w0, #1 bne .L13 .L6: ldrsw x1, [sp, 40] adrp x0, compareWords add x3, x0, :lo12:compareWords mov x2, 108 adrp x0, words add x0, x0, :lo12:words bl qsort str wzr, [sp, 52] b .L14 .L15: adrp x0, finalArray add x3, x0, :lo12:finalArray ldrsw x0, [sp, 52] ldrsw x2, [sp, 44] mov x1, x0 lsl x1, x1, 3 sub x1, x1, x0 lsl x1, x1, 2 sub x1, x1, x0 lsl x0, x1, 2 mov x1, x0 mov x0, x2 lsl x0, x0, 3 sub x0, x0, x2 lsl x0, x0, 2 sub x0, x0, x2 lsl x0, x0, 4 add x0, x1, x0 add x3, x3, x0 adrp x0, words add x2, x0, :lo12:words ldrsw x1, [sp, 52] mov x0, x1 lsl x0, x0, 3 sub x0, x0, x1 lsl x0, x0, 2 sub x0, x0, x1 lsl x0, x0, 2 add x1, x2, x0 mov x0, x3 ldp q0, q1, [x1] stp q0, q1, [x0] ldp q0, q1, [x1, 32] stp q0, q1, [x0, 32] ldp q0, q1, [x1, 64] stp q0, q1, [x0, 64] ldr q0, [x1, 92] str q0, [x0, 92] ldr w0, [sp, 52] add w0, w0, 1 str w0, [sp, 52] .L14: ldr w0, [sp, 52] cmp w0, 2 ble .L15 adrp x0, finalArray add x2, x0, :lo12:finalArray ldrsw x1, [sp, 44] mov x0, x1 lsl x0, x0, 3 sub x0, x0, x1 lsl x0, x0, 2 sub x0, x0, x1 lsl x0, x0, 4 add x0, x2, x0 ldr w1, [sp, 40] str w1, [x0, 428] ldrsw x1, [sp, 44] mov x0, x1 lsl x0, x0, 3 sub x0, x0, x1 lsl x0, x0, 2 sub x0, x0, x1 lsl x0, x0, 4 add x1, x0, 320 adrp x0, finalArray add x0, x0, :lo12:finalArray add x0, x1, x0 add x2, x0, 4 ldrsw x0, [sp, 44] lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x0, [x0] mov x1, x0 mov x0, x2 bl strcpy adrp x0, file add x0, x0, :lo12:file ldr x0, [x0] bl fclose ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L4: ldr w1, [sp, 44] ldr w0, [sp, 28] cmp w1, w0 blt .L16 mov w0, 1 str w0, [sp, 56] b .L17 .L20: ldrsw x1, [sp, 56] mov x0, x1 lsl x0, x0, 3 sub x0, x0, x1 lsl x0, x0, 2 sub x0, x0, x1 lsl x0, x0, 4 add x1, x0, 320 adrp x0, finalArray add x0, x0, :lo12:finalArray add x0, x1, x0 add x0, x0, 4 mov x1, x0 adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl printf adrp x0, finalArray add x2, x0, :lo12:finalArray ldrsw x1, [sp, 56] mov x0, x1 lsl x0, x0, 3 sub x0, x0, x1 lsl x0, x0, 2 sub x0, x0, x1 lsl x0, x0, 4 add x0, x2, x0 ldr w0, [x0, 428] mov w1, w0 adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl printf str wzr, [sp, 60] b .L18 .L19: ldrsw x0, [sp, 60] mov x1, x0 lsl x1, x1, 3 sub x1, x1, x0 lsl x1, x1, 2 sub x1, x1, x0 lsl x0, x1, 2 mov x1, x0 ldrsw x2, [sp, 56] mov x0, x2 lsl x0, x0, 3 sub x0, x0, x2 lsl x0, x0, 2 sub x0, x0, x2 lsl x0, x0, 4 add x1, x1, x0 adrp x0, finalArray add x0, x0, :lo12:finalArray add x0, x1, x0 mov x1, x0 adrp x0, .LC6 add x0, x0, :lo12:.LC6 bl printf ldr w0, [sp, 60] add w0, w0, 1 str w0, [sp, 60] .L18: ldr w0, [sp, 60] cmp w0, 2 ble .L19 mov w0, 10 bl putchar ldr w0, [sp, 56] add w0, w0, 1 str w0, [sp, 56] .L17: ldr w0, [sp, 56] cmp w0, 3 ble .L20 mov w0, 0 ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global lock .bss .align 3 .type lock, %object .size lock, 48 lock: .zero 48 .global full .align 3 .type full, %object .size full, 48 full: .zero 48 .global empty .align 3 .type empty, %object .size empty, 48 empty: .zero 48 .global stack .align 3 .type stack, %object .size stack, 100 stack: .zero 100 .global stack_size .align 2 .type stack_size, %object .size stack_size, 4 stack_size: .zero 4 .text .align 2 .global Push .type Push, %function Push: .LFB0: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp strb w0, [sp, 31] adrp x0, lock add x0, x0, :lo12:lock bl pthread_mutex_lock adrp x0, stack_size add x0, x0, :lo12:stack_size ldr w0, [x0] cmp w0, 100 bne .L2 adrp x0, lock add x1, x0, :lo12:lock adrp x0, full add x0, x0, :lo12:full bl pthread_cond_wait .L2: adrp x0, stack_size add x0, x0, :lo12:stack_size ldr w0, [x0] add w2, w0, 1 adrp x1, stack_size add x1, x1, :lo12:stack_size str w2, [x1] adrp x1, stack add x1, x1, :lo12:stack sxtw x0, w0 ldrb w2, [sp, 31] strb w2, [x1, x0] adrp x0, empty add x0, x0, :lo12:empty bl pthread_cond_signal adrp x0, lock add x0, x0, :lo12:lock bl pthread_mutex_unlock nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size Push, .-Push .align 2 .global Pop .type Pop, %function Pop: .LFB1: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp adrp x0, lock add x0, x0, :lo12:lock bl pthread_mutex_lock adrp x0, stack_size add x0, x0, :lo12:stack_size ldr w0, [x0] cmp w0, 0 bne .L4 adrp x0, lock add x1, x0, :lo12:lock adrp x0, empty add x0, x0, :lo12:empty bl pthread_cond_wait .L4: adrp x0, stack_size add x0, x0, :lo12:stack_size ldr w0, [x0] sub w1, w0, #1 adrp x0, stack_size add x0, x0, :lo12:stack_size str w1, [x0] adrp x0, stack_size add x0, x0, :lo12:stack_size ldr w2, [x0] adrp x0, stack add x1, x0, :lo12:stack sxtw x0, w2 ldrb w0, [x1, x0] strb w0, [sp, 31] adrp x0, full add x0, x0, :lo12:full bl pthread_cond_signal adrp x0, lock add x0, x0, :lo12:lock bl pthread_mutex_unlock ldrb w0, [sp, 31] ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size Pop, .-Pop ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global len .bss .align 2 .type len, %object .size len, 4 len: .zero 4 .global n .align 2 .type n, %object .size n, 4 n: .zero 4 .global pos .align 3 .type pos, %object .size pos, 240 pos: .zero 240 .global cache .align 3 .type cache, %object .size cache, 14400 cache: .zero 14400 .text .align 2 .global min .type min, %function min: .LFB0: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, 12] str w1, [sp, 8] ldr w0, [sp, 12] ldr w2, [sp, 8] ldr w1, [sp, 8] cmp w2, w0 csel w0, w1, w0, le add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size min, .-min .align 2 .global dp .type dp, %function dp: .LFB1: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x19, [sp, 16] .cfi_offset 19, -48 str w0, [sp, 44] str w1, [sp, 40] ldr w0, [sp, 44] add w0, w0, 1 ldr w1, [sp, 40] cmp w1, w0 bgt .L4 mov w0, 0 b .L5 .L4: adrp x0, cache add x2, x0, :lo12:cache ldrsw x3, [sp, 40] ldrsw x1, [sp, 44] mov x0, x1 lsl x0, x0, 4 sub x0, x0, x1 lsl x0, x0, 2 add x0, x0, x3 ldr w0, [x2, x0, lsl 2] cmp w0, 0 beq .L6 adrp x0, cache add x2, x0, :lo12:cache ldrsw x3, [sp, 40] ldrsw x1, [sp, 44] mov x0, x1 lsl x0, x0, 4 sub x0, x0, x1 lsl x0, x0, 2 add x0, x0, x3 ldr w0, [x2, x0, lsl 2] b .L5 .L6: adrp x0, pos add x0, x0, :lo12:pos ldrsw x1, [sp, 40] ldr w1, [x0, x1, lsl 2] adrp x0, pos add x0, x0, :lo12:pos ldrsw x2, [sp, 44] ldr w0, [x0, x2, lsl 2] sub w0, w1, w0 str w0, [sp, 60] mov w0, 2147483647 str w0, [sp, 52] ldr w0, [sp, 44] add w0, w0, 1 ldr w1, [sp, 40] cmp w1, w0 bgt .L7 adrp x0, cache add x2, x0, :lo12:cache ldrsw x3, [sp, 40] ldrsw x1, [sp, 44] mov x0, x1 lsl x0, x0, 4 sub x0, x0, x1 lsl x0, x0, 2 add x0, x0, x3 str wzr, [x2, x0, lsl 2] adrp x0, cache add x2, x0, :lo12:cache ldrsw x3, [sp, 40] ldrsw x1, [sp, 44] mov x0, x1 lsl x0, x0, 4 sub x0, x0, x1 lsl x0, x0, 2 add x0, x0, x3 ldr w0, [x2, x0, lsl 2] b .L5 .L7: ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 56] b .L8 .L9: ldr w1, [sp, 56] ldr w0, [sp, 44] bl dp mov w19, w0 ldr w1, [sp, 40] ldr w0, [sp, 56] bl dp add w0, w19, w0 mov w1, w0 ldr w0, [sp, 52] bl min str w0, [sp, 52] ldr w0, [sp, 56] add w0, w0, 1 str w0, [sp, 56] .L8: ldr w1, [sp, 56] ldr w0, [sp, 40] cmp w1, w0 blt .L9 ldr w1, [sp, 60] ldr w0, [sp, 52] add w3, w1, w0 adrp x0, cache add x2, x0, :lo12:cache ldrsw x4, [sp, 40] ldrsw x1, [sp, 44] mov x0, x1 lsl x0, x0, 4 sub x0, x0, x1 lsl x0, x0, 2 add x0, x0, x4 str w3, [x2, x0, lsl 2] adrp x0, cache add x2, x0, :lo12:cache ldrsw x3, [sp, 40] ldrsw x1, [sp, 44] mov x0, x1 lsl x0, x0, 4 sub x0, x0, x1 lsl x0, x0, 2 add x0, x0, x3 ldr w0, [x2, x0, lsl 2] .L5: 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 .LFE1: .size dp, .-dp .section .rodata .align 3 .LC0: .string "%d" .align 3 .LC1: .string "The minimum cutting is %d.\n" .text .align 2 .global main .type main, %function main: .LFB2: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp b .L11 .L14: adrp x0, n add x1, x0, :lo12:n adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl __isoc99_scanf mov x2, 14400 mov w1, 0 adrp x0, cache add x0, x0, :lo12:cache bl memset adrp x0, pos add x0, x0, :lo12:pos str wzr, [x0] mov w0, 1 str w0, [sp, 28] b .L12 .L13: ldrsw x0, [sp, 28] lsl x1, x0, 2 adrp x0, pos add x0, x0, :lo12:pos add x0, x1, x0 mov x1, x0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl __isoc99_scanf ldr w0, [sp, 28] add w0, w0, 1 str w0, [sp, 28] .L12: adrp x0, n add x0, x0, :lo12:n ldr w0, [x0] ldr w1, [sp, 28] cmp w1, w0 ble .L13 adrp x0, n add x0, x0, :lo12:n ldr w0, [x0] add w1, w0, 1 adrp x0, n add x0, x0, :lo12:n str w1, [x0] adrp x0, n add x0, x0, :lo12:n ldr w1, [x0] adrp x0, len add x0, x0, :lo12:len ldr w2, [x0] adrp x0, pos add x0, x0, :lo12:pos sxtw x1, w1 str w2, [x0, x1, lsl 2] adrp x0, n add x0, x0, :lo12:n ldr w0, [x0] mov w1, w0 mov w0, 0 bl dp mov w1, w0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf .L11: adrp x0, len add x1, x0, :lo12:len adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl __isoc99_scanf adrp x0, len add x0, x0, :lo12:len ldr w0, [x0] cmp w0, 0 bne .L14 mov w0, 0 ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE2: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string " " .align 3 .LC1: .string "" .align 3 .LC2: .string "%s%s" .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str w0, [sp, 28] str x1, [sp, 16] mov w0, 1 str w0, [sp, 44] b .L2 .L5: ldrsw x0, [sp, 44] lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x3, [x0] ldr w1, [sp, 44] ldr w0, [sp, 28] cmp w1, w0 bge .L3 adrp x0, .LC0 add x0, x0, :lo12:.LC0 b .L4 .L3: adrp x0, .LC1 add x0, x0, :lo12:.LC1 .L4: mov x2, x0 mov x1, x3 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L2: ldr w1, [sp, 44] ldr w0, [sp, 28] cmp w1, w0 blt .L5 mov w0, 10 bl putchar 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 .align 2 .global sum_or_substract .type sum_or_substract, %function sum_or_substract: .LFB6: .cfi_startproc sub sp, sp, #32 .cfi_def_cfa_offset 32 str d0, [sp, 8] str d1, [sp] ldr d0, [sp, 8] fcmpe d0, #0.0 bgt .L9 b .L2 .L9: ldr d1, [sp] ldr d0, [sp, 8] fcmpe d1, d0 bmi .L4 .L2: ldr d1, [sp, 8] ldr d0, [sp] fadd d1, d1, d0 fmov d0, 2.5e+1 fcmpe d1, d0 bmi .L4 b .L10 .L4: ldr d1, [sp, 8] ldr d0, [sp] fadd d0, d1, d0 str d0, [sp, 24] b .L7 .L10: ldr d1, [sp] ldr d0, [sp, 8] fsub d0, d1, d0 str d0, [sp, 24] .L7: ldr d0, [sp, 24] add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size sum_or_substract, .-sum_or_substract .align 2 .global dummy_random .type dummy_random, %function dummy_random: .LFB7: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, 12] ldr w0, [sp, 12] cmp w0, 30 ble .L12 mov w0, 7 b .L14 .L12: mov w0, 4 .L14: add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size dummy_random, .-dummy_random .section .rodata .align 3 .LC0: .string "Enter the number: " .align 3 .LC1: .string "%d" .align 3 .LC2: .string "Number must be positive" .align 3 .LC3: .string "Number is prime" .align 3 .LC4: .string "Number %d is not prime, denominator is %d\n\n" .align 3 .LC5: .string "Number %d is prime\n\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 w0, 1 str w0, [sp, 36] adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf add x0, sp, 28 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf ldr w0, [sp, 28] cmp w0, 0 bge .L16 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf mov w0, 0 b .L33 .L16: ldr w0, [sp, 28] cmp w0, 3 bgt .L18 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl printf mov w0, 0 b .L33 .L18: mov w0, 2 str w0, [sp, 32] b .L19 .L22: 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 .L20 ldr w0, [sp, 28] ldr w2, [sp, 32] mov w1, w0 adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl printf str wzr, [sp, 36] b .L21 .L20: ldr w0, [sp, 32] add w0, w0, 1 str w0, [sp, 32] .L19: ldr w0, [sp, 28] scvtf d0, w0 bl sqrt fcvtzs w0, d0 ldr w1, [sp, 32] cmp w1, w0 ble .L22 .L21: ldr w0, [sp, 36] cmp w0, 0 beq .L23 ldr w0, [sp, 28] mov w1, w0 adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl printf .L23: mov w0, 1 str w0, [sp, 36] mov w0, 2 str w0, [sp, 32] b .L24 .L27: 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 .L25 ldr w0, [sp, 28] ldr w2, [sp, 32] mov w1, w0 adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl printf str wzr, [sp, 36] b .L26 .L25: ldr w0, [sp, 32] add w0, w0, 1 str w0, [sp, 32] .L24: ldr w0, [sp, 28] scvtf d0, w0 bl sqrt fcvtzs w0, d0 ldr w1, [sp, 32] cmp w1, w0 ble .L27 .L26: ldr w0, [sp, 36] cmp w0, 0 beq .L28 ldr w0, [sp, 28] mov w1, w0 adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl printf .L28: mov w0, 1 str w0, [sp, 36] mov w0, 2 str w0, [sp, 32] .L31: 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 .L29 ldr w0, [sp, 28] ldr w2, [sp, 32] mov w1, w0 adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl printf str wzr, [sp, 36] b .L30 .L29: ldr w0, [sp, 32] add w0, w0, 1 str w0, [sp, 32] ldr w0, [sp, 28] scvtf d0, w0 bl sqrt fcvtzs w0, d0 ldr w1, [sp, 32] cmp w1, w0 ble .L31 .L30: ldr w0, [sp, 36] cmp w0, 0 beq .L32 ldr w0, [sp, 28] mov w1, w0 adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl printf .L32: mov w0, 0 .L33: 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 .L34 bl __stack_chk_fail .L34: 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 .global _sem_wait .bss .align 3 .type _sem_wait, %object .size _sem_wait, 8 _sem_wait: .zero 8 .global _sem_post .align 3 .type _sem_post, %object .size _sem_post, 8 _sem_post: .zero 8 .global graph_tam .align 2 .type graph_tam, %object .size graph_tam, 4 graph_tam: .zero 4 .global i .align 2 .type i, %object .size i, 4 i: .zero 4 .global graph .align 3 .type graph, %object .size graph, 8 graph: .zero 8 .global head .align 3 .type head, %object .size head, 8 head: .zero 8 .global mutex .align 3 .type mutex, %object .size mutex, 8 mutex: .zero 8 .section .rodata .align 3 .LC0: .string "Recurso existente" .align 3 .LC1: .string "Processo existente" .align 3 .LC2: .string "procuraNodo error: type nodo uknown\n" .text .align 2 .global procuraNodo .type procuraNodo, %function procuraNodo: .LFB6: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x0, [sp, 40] str x1, [sp, 32] str w2, [sp, 28] bl pthread_self str x0, [sp, 56] ldr x0, [sp, 40] ldr x0, [x0] str x0, [sp, 48] b .L2 .L10: ldr w0, [sp, 28] cmp w0, 0 beq .L3 ldr w0, [sp, 28] cmp w0, 1 beq .L4 b .L11 .L3: ldr x0, [sp, 48] ldr x0, [x0, 16] ldr x1, [sp, 32] cmp x1, x0 bne .L12 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl puts ldr x0, [sp, 48] b .L7 .L4: ldr x0, [sp, 48] ldr x0, [x0, 8] ldr x1, [sp, 56] cmp x1, x0 bne .L13 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl puts ldr x0, [sp, 48] b .L7 .L11: adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl perror mov w0, 0 bl exit .L12: nop b .L8 .L13: nop .L8: ldr x0, [sp, 48] ldr x0, [x0, 40] str x0, [sp, 48] .L2: ldr x0, [sp, 48] cmp x0, 0 bne .L10 mov x0, 0 .L7: ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size procuraNodo, .-procuraNodo .section .rodata .align 3 .LC3: .string "\n" .align 3 .LC4: .string "Sem Deadlock, o recurso foi alocado com sucesso" .align 3 .LC5: .string "ALERTA: Deadlock encontrado" .align 3 .LC6: .string "Sem deadlock, o recurso foi alocado com sucesso" .text .align 2 .global checkDeadlock .type checkDeadlock, %function checkDeadlock: .LFB7: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl puts ldr x0, [sp, 16] cmp x0, 0 bne .L15 adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl puts adrp x0, :got:stdout ldr x0, [x0, #:got_lo12:stdout] ldr x0, [x0] bl fflush mov w0, 0 b .L16 .L15: ldr x0, [sp, 16] ldr w0, [x0] cmp w0, 0 bne .L17 ldr x0, [sp, 16] ldr x0, [x0, 16] ldr x1, [sp, 24] cmp x1, x0 bne .L17 adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl puts mov w0, 0 bl exit .L17: ldr x0, [sp, 16] ldr x0, [x0, 24] cmp x0, 0 bne .L18 adrp x0, .LC6 add x0, x0, :lo12:.LC6 bl puts mov w0, 0 b .L16 .L18: ldr x0, [sp, 16] ldr x0, [x0, 24] ldr x0, [x0] mov x1, x0 ldr x0, [sp, 24] bl checkDeadlock mov w0, 0 .L16: ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size checkDeadlock, .-checkDeadlock .section .rodata .align 3 .LC7: .string "requisitaRecurso: Recurso NULL but recurso must exist" .align 3 .LC8: .string "Deadlock check finish" .text .align 2 .global requisitaRecurso .type requisitaRecurso, %function requisitaRecurso: .LFB8: .cfi_startproc stp x29, x30, [sp, -80]! .cfi_def_cfa_offset 80 .cfi_offset 29, -80 .cfi_offset 30, -72 mov x29, sp str x0, [sp, 40] str x1, [sp, 32] str x2, [sp, 24] mov x0, 56 bl malloc str x0, [sp, 64] mov x0, 56 bl malloc str x0, [sp, 56] mov w2, 0 ldr x1, [sp, 24] ldr x0, [sp, 40] bl procuraNodo str x0, [sp, 64] ldr x0, [sp, 64] cmp x0, 0 bne .L20 adrp x0, .LC7 add x0, x0, :lo12:.LC7 bl perror mov w0, 0 bl exit .L20: mov w2, 1 ldr x1, [sp, 24] ldr x0, [sp, 40] bl procuraNodo str x0, [sp, 56] ldr x0, [sp, 56] cmp x0, 0 bne .L21 mov w3, 1 ldr x2, [sp, 24] ldr x1, [sp, 32] ldr x0, [sp, 40] bl alocaNodo str x0, [sp, 56] .L21: mov x0, 16 bl malloc str x0, [sp, 72] ldr x0, [sp, 72] ldr x1, [sp, 64] str x1, [x0] ldr x0, [sp, 72] str xzr, [x0, 8] ldr x0, [sp, 56] ldr x1, [sp, 72] str x1, [x0, 24] ldr x0, [sp, 56] ldr x0, [x0, 24] ldr x0, [x0] ldr w1, [x0, 48] add w1, w1, 1 str w1, [x0, 48] ldr x0, [sp, 64] ldr x0, [x0, 24] ldr x0, [x0] mov x1, x0 ldr x0, [sp, 24] bl checkDeadlock adrp x0, .LC8 add x0, x0, :lo12:.LC8 bl puts mov w0, 1 ldp x29, x30, [sp], 80 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE8: .size requisitaRecurso, .-requisitaRecurso .section .rodata .align 3 .LC9: .string "alocaNodo error: type nodo uknown\n" .text .align 2 .global alocaNodo .type alocaNodo, %function alocaNodo: .LFB9: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x0, [sp, 40] str x1, [sp, 32] str x2, [sp, 24] str w3, [sp, 20] mov x0, 56 bl malloc str x0, [sp, 56] mov x0, 32 bl malloc mov x1, x0 ldr x0, [sp, 56] str x1, [x0, 16] mov x0, 16 bl malloc mov x1, x0 ldr x0, [sp, 56] str x1, [x0, 24] ldr x0, [sp, 56] str wzr, [x0, 48] ldr w0, [sp, 20] cmp w0, 0 beq .L24 ldr w0, [sp, 20] cmp w0, 1 beq .L25 b .L31 .L24: ldr x0, [sp, 56] mov x1, -1 str x1, [x0, 8] ldr x0, [sp, 56] ldr x1, [sp, 24] str x1, [x0, 16] b .L27 .L25: bl pthread_self mov x1, x0 ldr x0, [sp, 56] str x1, [x0, 8] ldr x0, [sp, 56] str xzr, [x0, 16] b .L27 .L31: adrp x0, .LC9 add x0, x0, :lo12:.LC9 bl perror mov w0, 0 bl exit .L27: ldr x0, [sp, 56] ldr w1, [sp, 20] str w1, [x0] ldr x0, [sp, 56] str xzr, [x0, 24] ldr x0, [sp, 56] str xzr, [x0, 40] ldr x0, [sp, 56] str xzr, [x0, 32] adrp x0, graph_tam add x0, x0, :lo12:graph_tam ldr w0, [x0] cmp w0, 0 bne .L28 ldr x0, [sp, 32] ldr x1, [sp, 56] str x1, [x0] ldr x0, [sp, 40] ldr x1, [sp, 56] str x1, [x0] b .L29 .L28: ldr x0, [sp, 32] ldr x0, [x0] ldr x1, [sp, 56] str x1, [x0, 40] ldr x0, [sp, 32] ldr x0, [x0] ldr x0, [x0, 40] ldr x1, [sp, 32] ldr x1, [x1] str x1, [x0, 32] ldr x0, [sp, 32] ldr x0, [x0] ldr x1, [x0, 40] ldr x0, [sp, 32] str x1, [x0] .L29: adrp x0, graph_tam add x0, x0, :lo12:graph_tam ldr w0, [x0] add w1, w0, 1 adrp x0, graph_tam add x0, x0, :lo12:graph_tam str w1, [x0] ldr x0, [sp, 56] ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE9: .size alocaNodo, .-alocaNodo .align 2 .global alocaRecurso .type alocaRecurso, %function alocaRecurso: .LFB10: .cfi_startproc stp x29, x30, [sp, -80]! .cfi_def_cfa_offset 80 .cfi_offset 29, -80 .cfi_offset 30, -72 mov x29, sp str x0, [sp, 40] str x1, [sp, 32] str x2, [sp, 24] mov x0, 56 bl malloc str x0, [sp, 56] mov x0, 56 bl malloc str x0, [sp, 64] mov x0, 32 bl malloc mov x1, x0 ldr x0, [sp, 56] str x1, [x0, 16] mov x0, 32 bl malloc mov x1, x0 ldr x0, [sp, 64] str x1, [x0, 16] mov x0, 16 bl malloc mov x1, x0 ldr x0, [sp, 56] str x1, [x0, 24] mov x0, 16 bl malloc mov x1, x0 ldr x0, [sp, 64] str x1, [x0, 24] mov x0, 16 bl malloc str x0, [sp, 72] mov w2, 1 ldr x1, [sp, 24] ldr x0, [sp, 40] bl procuraNodo str x0, [sp, 56] mov w2, 0 ldr x1, [sp, 24] ldr x0, [sp, 40] bl procuraNodo str x0, [sp, 64] ldr x0, [sp, 56] cmp x0, 0 bne .L33 mov x0, 56 bl malloc str x0, [sp, 56] mov w3, 1 ldr x2, [sp, 24] ldr x1, [sp, 32] ldr x0, [sp, 40] bl alocaNodo str x0, [sp, 56] .L33: ldr x0, [sp, 64] cmp x0, 0 bne .L34 mov x0, 56 bl malloc str x0, [sp, 64] mov w3, 0 ldr x2, [sp, 24] ldr x1, [sp, 32] ldr x0, [sp, 40] bl alocaNodo str x0, [sp, 64] .L34: ldr x0, [sp, 56] ldr x0, [x0, 24] cmp x0, 0 beq .L35 ldr x0, [sp, 56] ldr x0, [x0, 24] ldr x0, [x0] ldr w1, [x0, 48] sub w1, w1, #1 str w1, [x0, 48] .L35: ldr x0, [sp, 56] str xzr, [x0, 24] ldr x0, [sp, 72] ldr x1, [sp, 56] str x1, [x0] ldr x0, [sp, 72] str xzr, [x0, 8] ldr x0, [sp, 64] ldr x1, [sp, 72] str x1, [x0, 24] ldr x0, [sp, 64] ldr x0, [x0, 24] ldr x0, [x0] ldr w1, [x0, 48] add w1, w1, 1 str w1, [x0, 48] mov w0, 1 ldp x29, x30, [sp], 80 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE10: .size alocaRecurso, .-alocaRecurso .section .rodata .align 3 .LC10: .string "sem_wait" .align 3 .LC11: .string "sem_post" .align 3 .LC12: .string "Inicializa\303\247\303\243o unica\n" .align 3 .LC13: .string "\n\nThread: %llu\nusando mutex: %llu\n" .align 3 .LC14: .string "\n\nZona critica sendo acessada pela Thread: %llu\ncom o semaforo: %p\n" .align 3 .LC15: .string "#### Inicializador1 ####" .align 3 .LC16: .string "Thread est\303\241 bloqueada: %llu\n" .align 3 .LC17: .string "Thread deixando zona critica: %llu\n" .align 3 .LC18: .string "Thread est\303\241 rodando: %llu\n" .text .align 2 .global sem_wait .type sem_wait, %function sem_wait: .LFB11: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x19, [sp, 16] .cfi_offset 19, -48 str x0, [sp, 40] mov x0, 4 bl malloc str x0, [sp, 56] adrp x0, _sem_wait add x0, x0, :lo12:_sem_wait ldr x0, [x0] cmp x0, 0 bne .L38 adrp x0, .LC10 add x1, x0, :lo12:.LC10 mov x0, -1 bl dlsym mov x1, x0 adrp x0, _sem_wait add x0, x0, :lo12:_sem_wait str x1, [x0] .L38: adrp x0, _sem_post add x0, x0, :lo12:_sem_post ldr x0, [x0] cmp x0, 0 bne .L39 adrp x0, .LC11 add x1, x0, :lo12:.LC11 mov x0, -1 bl dlsym mov x1, x0 adrp x0, _sem_post add x0, x0, :lo12:_sem_post str x1, [x0] .L39: adrp x0, i add x0, x0, :lo12:i ldr w0, [x0] cmp w0, 0 bne .L40 adrp x0, .LC12 add x0, x0, :lo12:.LC12 bl puts adrp x0, i add x0, x0, :lo12:i mov w1, 1 str w1, [x0] mov x0, 32 bl malloc mov x1, x0 adrp x0, mutex add x0, x0, :lo12:mutex str x1, [x0] adrp x0, mutex add x0, x0, :lo12:mutex ldr x0, [x0] mov w2, 1 mov w1, 0 bl sem_init mov x0, 8 bl malloc mov x1, x0 adrp x0, graph add x0, x0, :lo12:graph str x1, [x0] mov x0, 8 bl malloc mov x1, x0 adrp x0, head add x0, x0, :lo12:head str x1, [x0] .L40: mov w0, 0 bl sleep bl pthread_self mov x1, x0 adrp x0, mutex add x0, x0, :lo12:mutex ldr x0, [x0] mov x2, x0 adrp x0, .LC13 add x0, x0, :lo12:.LC13 bl printf adrp x0, _sem_wait add x0, x0, :lo12:_sem_wait ldr x1, [x0] adrp x0, mutex add x0, x0, :lo12:mutex ldr x0, [x0] blr x1 bl pthread_self ldr x2, [sp, 40] mov x1, x0 adrp x0, .LC14 add x0, x0, :lo12:.LC14 bl printf adrp x0, head add x0, x0, :lo12:head ldr x0, [x0] ldr x0, [x0] cmp x0, 0 bne .L41 adrp x0, .LC15 add x0, x0, :lo12:.LC15 bl puts adrp x0, graph add x0, x0, :lo12:graph ldr x19, [x0] mov x0, 56 bl malloc str x0, [x19] adrp x0, graph add x0, x0, :lo12:graph ldr x0, [x0] ldr x0, [x0] str xzr, [x0, 40] adrp x0, graph add x0, x0, :lo12:graph ldr x0, [x0] ldr x0, [x0] str xzr, [x0, 32] adrp x0, head add x0, x0, :lo12:head ldr x19, [x0] mov x0, 56 bl malloc str x0, [x19] adrp x0, head add x0, x0, :lo12:head ldr x0, [x0] ldr x0, [x0] str xzr, [x0, 40] adrp x0, head add x0, x0, :lo12:head ldr x0, [x0] ldr x0, [x0] str xzr, [x0, 32] .L41: ldr x1, [sp, 56] ldr x0, [sp, 40] bl sem_getvalue ldr x0, [sp, 56] ldr w0, [x0] cmp w0, 0 bne .L42 bl pthread_self mov x1, x0 adrp x0, .LC16 add x0, x0, :lo12:.LC16 bl printf adrp x0, head add x0, x0, :lo12:head ldr x3, [x0] adrp x0, graph add x0, x0, :lo12:graph ldr x0, [x0] ldr x2, [sp, 40] mov x1, x0 mov x0, x3 bl requisitaRecurso bl pthread_self mov x1, x0 adrp x0, .LC17 add x0, x0, :lo12:.LC17 bl printf .L42: adrp x0, _sem_post add x0, x0, :lo12:_sem_post ldr x1, [x0] adrp x0, mutex add x0, x0, :lo12:mutex ldr x0, [x0] blr x1 adrp x0, _sem_wait add x0, x0, :lo12:_sem_wait ldr x1, [x0] ldr x0, [sp, 40] blr x1 str w0, [sp, 52] adrp x0, _sem_wait add x0, x0, :lo12:_sem_wait ldr x1, [x0] adrp x0, mutex add x0, x0, :lo12:mutex ldr x0, [x0] blr x1 bl pthread_self mov x1, x0 adrp x0, .LC18 add x0, x0, :lo12:.LC18 bl printf adrp x0, head add x0, x0, :lo12:head ldr x3, [x0] adrp x0, graph add x0, x0, :lo12:graph ldr x0, [x0] ldr x2, [sp, 40] mov x1, x0 mov x0, x3 bl alocaRecurso bl pthread_self mov x1, x0 adrp x0, .LC17 add x0, x0, :lo12:.LC17 bl printf adrp x0, _sem_post add x0, x0, :lo12:_sem_post ldr x1, [x0] adrp x0, mutex add x0, x0, :lo12:mutex ldr x0, [x0] blr x1 ldr w0, [sp, 52] ldr x19, [sp, 16] ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_restore 19 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE11: .size sem_wait, .-sem_wait .section .rodata .align 3 .LC19: .string "GRAFO VAZIO" .align 3 .LC20: .string "Novo grafo deve ser feito" .text .align 2 .global desalocaNodo .type desalocaNodo, %function desalocaNodo: .LFB12: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 40] str x1, [sp, 32] str x2, [sp, 24] adrp x0, graph_tam add x0, x0, :lo12:graph_tam ldr w0, [x0] cmp w0, 1 bne .L45 adrp x0, .LC19 add x0, x0, :lo12:.LC19 bl puts .L45: adrp x0, graph_tam add x0, x0, :lo12:graph_tam ldr w0, [x0] cmp w0, 1 bne .L46 adrp x0, .LC20 add x0, x0, :lo12:.LC20 bl puts ldr x0, [sp, 24] bl free ldr x0, [sp, 32] str xzr, [x0] ldr x0, [sp, 40] str xzr, [x0] adrp x0, graph_tam add x0, x0, :lo12:graph_tam str wzr, [x0] mov w0, 1 b .L47 .L46: ldr x0, [sp, 32] ldr x0, [x0] ldr x1, [sp, 24] cmp x1, x0 bne .L48 ldr x0, [sp, 32] ldr x0, [x0] ldr x1, [x0, 32] ldr x0, [sp, 32] str x1, [x0] .L48: ldr x0, [sp, 40] ldr x0, [x0] ldr x1, [sp, 24] cmp x1, x0 bne .L49 ldr x0, [sp, 40] ldr x0, [x0] ldr x1, [x0, 40] ldr x0, [sp, 40] str x1, [x0] .L49: ldr x0, [sp, 24] ldr x0, [x0, 32] cmp x0, 0 beq .L50 ldr x0, [sp, 24] ldr x0, [x0, 32] ldr x1, [sp, 24] ldr x1, [x1, 40] str x1, [x0, 40] .L50: ldr x0, [sp, 24] ldr x0, [x0, 40] cmp x0, 0 beq .L51 ldr x0, [sp, 24] ldr x0, [x0, 40] ldr x1, [sp, 24] ldr x1, [x1, 32] str x1, [x0, 32] .L51: ldr x0, [sp, 24] bl free adrp x0, graph_tam add x0, x0, :lo12:graph_tam ldr w0, [x0] sub w1, w0, #1 adrp x0, graph_tam add x0, x0, :lo12:graph_tam str w1, [x0] mov w0, 1 .L47: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE12: .size desalocaNodo, .-desalocaNodo .section .rodata .align 3 .LC21: .string "function desaloca: recurso (nil) but recurso must exist\n" .align 3 .LC22: .string "function desaloca: processo (nil) but processo must exist\n" .text .align 2 .global desalocaRecurso .type desalocaRecurso, %function desalocaRecurso: .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, 40] str x1, [sp, 32] str x2, [sp, 24] mov w2, 0 ldr x1, [sp, 24] ldr x0, [sp, 40] bl procuraNodo str x0, [sp, 48] mov w2, 1 ldr x1, [sp, 24] ldr x0, [sp, 40] bl procuraNodo str x0, [sp, 56] ldr x0, [sp, 48] cmp x0, 0 bne .L53 adrp x0, .LC21 add x0, x0, :lo12:.LC21 bl perror .L53: ldr x0, [sp, 56] cmp x0, 0 bne .L54 adrp x0, .LC22 add x0, x0, :lo12:.LC22 bl perror .L54: ldr x0, [sp, 48] str xzr, [x0, 24] ldr x0, [sp, 56] ldr w0, [x0, 48] sub w1, w0, #1 ldr x0, [sp, 56] str w1, [x0, 48] ldr x0, [sp, 56] ldr w0, [x0, 48] cmp w0, 0 bne .L55 ldr x2, [sp, 56] ldr x1, [sp, 32] ldr x0, [sp, 40] bl desalocaNodo .L55: ldr x0, [sp, 48] ldr w0, [x0, 48] cmp w0, 0 bne .L56 ldr x2, [sp, 48] ldr x1, [sp, 32] ldr x0, [sp, 40] bl desalocaNodo .L56: mov w0, 1 ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE13: .size desalocaRecurso, .-desalocaRecurso .align 2 .global sem_post .type sem_post, %function sem_post: .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, _sem_post add x0, x0, :lo12:_sem_post ldr x0, [x0] cmp x0, 0 bne .L59 adrp x0, .LC11 add x1, x0, :lo12:.LC11 mov x0, -1 bl dlsym mov x1, x0 adrp x0, _sem_post add x0, x0, :lo12:_sem_post str x1, [x0] .L59: adrp x0, _sem_wait add x0, x0, :lo12:_sem_wait ldr x0, [x0] cmp x0, 0 bne .L60 adrp x0, .LC10 add x1, x0, :lo12:.LC10 mov x0, -1 bl dlsym mov x1, x0 adrp x0, _sem_wait add x0, x0, :lo12:_sem_wait str x1, [x0] .L60: adrp x0, _sem_wait add x0, x0, :lo12:_sem_wait ldr x1, [x0] adrp x0, mutex add x0, x0, :lo12:mutex ldr x0, [x0] blr x1 adrp x0, head add x0, x0, :lo12:head ldr x3, [x0] adrp x0, graph add x0, x0, :lo12:graph ldr x0, [x0] ldr x2, [sp, 24] mov x1, x0 mov x0, x3 bl desalocaRecurso adrp x0, _sem_post add x0, x0, :lo12:_sem_post ldr x1, [x0] ldr x0, [sp, 24] blr x1 str w0, [sp, 44] adrp x0, _sem_post add x0, x0, :lo12:_sem_post ldr x1, [x0] adrp x0, mutex add x0, x0, :lo12:mutex ldr x0, [x0] blr x1 ldr w0, [sp, 44] ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE14: .size sem_post, .-sem_post ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global foo .type foo, %function foo: .LFB0: .cfi_startproc str x19, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 19, -64 mov x19, x0 str w1, [sp, 28] ldr x0, [x19, 8] str x0, [sp, 48] ldr x0, [x19, 16] str x0, [sp, 56] ldr w0, [sp, 28] str w0, [sp, 44] nop ldr x19, [sp], 64 .cfi_restore 19 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size foo, .-foo .section .rodata .align 3 .LC0: .string "gude" .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 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl getenv str x0, [sp, 64] add x2, sp, 16 add x3, sp, 56 ldp x0, x1, [x3] stp x0, x1, [x2] ldr x0, [x3, 16] str x0, [x2, 16] add x0, sp, 16 mov w1, 42 bl foo mov w0, 0 ldp x29, x30, [sp], 80 .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 "%lf" .align 3 .LC1: .string "nota invalida" .text .align 2 .global getNota .type getNota, %function getNota: .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 .L5: add x0, sp, 16 mov x1, x0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl __isoc99_scanf ldr d0, [sp, 16] fcmpe d0, #0.0 bmi .L2 ldr d1, [sp, 16] fmov d0, 1.0e+1 fcmpe d1, d0 bgt .L2 b .L8 .L2: adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl puts nop b .L5 .L8: ldr d0, [sp, 16] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x2, [sp, 24] ldr x1, [x0] subs x2, x2, x1 mov x1, 0 beq .L7 bl __stack_chk_fail .L7: ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size getNota, .-getNota .section .rodata .align 3 .LC2: .string "novo calculo (1-sim 2-nao)" .align 3 .LC3: .string "%d" .text .align 2 .global getControle .type getControle, %function getControle: .LFB1: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 24] mov x1, 0 .L11: adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl puts add x0, sp, 20 mov x1, x0 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl __isoc99_scanf ldr w0, [sp, 20] cmp w0, 1 beq .L10 ldr w0, [sp, 20] cmp w0, 2 beq .L10 nop b .L11 .L10: ldr w0, [sp, 20] mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 24] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L13 bl __stack_chk_fail .L13: mov w0, w1 ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size getControle, .-getControle .section .rodata .align 3 .LC4: .string "media = %.2lf\n" .text .align 2 .global main .type main, %function main: .LFB2: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp .L18: bl getNota str d0, [sp, 24] bl getNota str d0, [sp, 32] ldr d1, [sp, 24] ldr d0, [sp, 32] fadd d1, d1, d0 fmov d0, 2.0e+0 fdiv d0, d1, d0 str d0, [sp, 40] ldr d0, [sp, 40] adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl printf bl getControle str w0, [sp, 20] ldr w0, [sp, 20] cmp w0, 1 bne .L20 nop b .L18 .L20: nop mov w0, 0 ldp x29, x30, [sp], 48 .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 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, 8] ldr w0, [x0] str w0, [sp, 28] ldr x0, [sp] ldr w1, [x0] ldr x0, [sp, 8] str w1, [x0] ldr x0, [sp] ldr w1, [sp, 28] str w1, [x0] nop add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size swap, .-swap .align 2 .global heapify .type heapify, %function heapify: .LFB7: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str w1, [sp, 20] str w2, [sp, 16] ldr w0, [sp, 16] str w0, [sp, 36] ldr w0, [sp, 16] lsl w0, w0, 1 add w0, w0, 1 str w0, [sp, 40] ldr w0, [sp, 16] add w0, w0, 1 lsl w0, w0, 1 str w0, [sp, 44] ldr w1, [sp, 40] ldr w0, [sp, 20] cmp w1, w0 bge .L3 ldrsw x0, [sp, 40] lsl x0, x0, 2 ldr x1, [sp, 24] add x0, x1, x0 ldr w1, [x0] ldrsw x0, [sp, 36] lsl x0, x0, 2 ldr x2, [sp, 24] add x0, x2, x0 ldr w0, [x0] cmp w1, w0 ble .L3 ldr w0, [sp, 40] str w0, [sp, 36] .L3: ldr w1, [sp, 44] ldr w0, [sp, 20] cmp w1, w0 bge .L4 ldrsw x0, [sp, 44] lsl x0, x0, 2 ldr x1, [sp, 24] add x0, x1, x0 ldr w1, [x0] ldrsw x0, [sp, 36] lsl x0, x0, 2 ldr x2, [sp, 24] add x0, x2, x0 ldr w0, [x0] cmp w1, w0 ble .L4 ldr w0, [sp, 44] str w0, [sp, 36] .L4: ldr w1, [sp, 16] ldr w0, [sp, 36] cmp w1, w0 beq .L6 ldrsw x0, [sp, 16] lsl x0, x0, 2 ldr x1, [sp, 24] add x2, x1, x0 ldrsw x0, [sp, 36] lsl x0, x0, 2 ldr x1, [sp, 24] add x0, x1, x0 mov x1, x0 mov x0, x2 bl swap ldr w2, [sp, 36] ldr w1, [sp, 20] ldr x0, [sp, 24] bl heapify .L6: nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size heapify, .-heapify .align 2 .global heapSort .type heapSort, %function heapSort: .LFB8: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str w1, [sp, 20] ldr w0, [sp, 20] lsr w1, w0, 31 add w0, w1, w0 asr w0, w0, 1 sub w0, w0, #1 str w0, [sp, 40] b .L8 .L9: ldr w2, [sp, 40] ldr w1, [sp, 20] ldr x0, [sp, 24] bl heapify ldr w0, [sp, 40] sub w0, w0, #1 str w0, [sp, 40] .L8: ldr w0, [sp, 40] cmp w0, 0 bge .L9 ldr w0, [sp, 20] sub w0, w0, #1 str w0, [sp, 44] b .L10 .L11: ldrsw x0, [sp, 44] lsl x0, x0, 2 ldr x1, [sp, 24] add x0, x1, x0 mov x1, x0 ldr x0, [sp, 24] bl swap mov w2, 0 ldr w1, [sp, 44] ldr x0, [sp, 24] bl heapify ldr w0, [sp, 44] sub w0, w0, #1 str w0, [sp, 44] .L10: ldr w0, [sp, 44] cmp w0, 0 bge .L11 nop nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE8: .size heapSort, .-heapSort .section .rodata .align 3 .LC0: .string "%d " .text .align 2 .global printArray .type printArray, %function printArray: .LFB9: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str w1, [sp, 20] str wzr, [sp, 44] b .L13 .L14: ldrsw x0, [sp, 44] lsl x0, x0, 2 ldr x1, [sp, 24] add x0, x1, x0 ldr w0, [x0] mov w1, w0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L13: ldr w1, [sp, 44] ldr w0, [sp, 20] cmp w1, w0 blt .L14 nop nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE9: .size printArray, .-printArray .section .rodata .align 3 .LC1: .string "%d" .text .align 2 .global main .type main, %function main: .LFB10: .cfi_startproc stp x29, x30, [sp, -128]! .cfi_def_cfa_offset 128 .cfi_offset 29, -128 .cfi_offset 30, -120 mov x29, sp .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, -112 .cfi_offset 20, -104 .cfi_offset 21, -96 .cfi_offset 22, -88 .cfi_offset 23, -80 .cfi_offset 24, -72 .cfi_offset 25, -64 .cfi_offset 26, -56 .cfi_offset 27, -48 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [x29, 120] mov x1, 0 mov x0, sp mov x19, x0 add x0, x29, 96 mov x1, x0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl __isoc99_scanf ldr w0, [x29, 96] sxtw x1, w0 sub x1, x1, #1 str x1, [x29, 104] sxtw x1, w0 mov x26, x1 mov x27, 0 lsr x1, x26, 59 lsl x23, x27, 5 orr x23, x1, x23 lsl x22, x26, 5 sxtw x1, w0 mov x24, x1 mov x25, 0 lsr x1, x24, 59 lsl x21, x25, 5 orr x21, x1, x21 lsl x20, x24, 5 sxtw x0, w0 lsl x0, x0, 2 add x0, x0, 15 lsr x0, x0, 4 lsl x0, x0, 4 and x1, x0, -65536 sub x1, sp, x1 .L16: cmp sp, x1 beq .L17 sub sp, sp, #65536 str xzr, [sp, 1024] b .L16 .L17: and x1, x0, 65535 sub sp, sp, x1 str xzr, [sp] and x0, x0, 65535 cmp x0, 1024 bcc .L18 str xzr, [sp, 1024] .L18: add x0, sp, 16 add x0, x0, 3 lsr x0, x0, 2 lsl x0, x0, 2 str x0, [x29, 112] str wzr, [x29, 100] b .L19 .L20: ldrsw x0, [x29, 100] lsl x0, x0, 2 ldr x1, [x29, 112] add x0, x1, x0 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf ldr w0, [x29, 100] add w0, w0, 1 str w0, [x29, 100] .L19: ldr w0, [x29, 96] ldr w1, [x29, 100] cmp w1, w0 blt .L20 ldr w0, [x29, 96] mov w1, w0 ldr x0, [x29, 112] bl heapSort ldr w0, [x29, 96] mov w1, w0 ldr x0, [x29, 112] bl printArray mov sp, x19 mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [x29, 120] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L22 bl __stack_chk_fail .L22: 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], 128 .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 .LFE10: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 2 .type MALLOC_SIZE, %object .size MALLOC_SIZE, 4 MALLOC_SIZE: .word 16384 .align 3 .LC0: .string "program.c" .align 3 .LC1: .string "data[i] == 0xffffffff" .align 3 .LC2: .string "data[i] == 0" .text .align 2 .global test2 .type test2, %function test2: .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 xzr, [sp, 24] str wzr, [sp, 20] .L10: mov w0, 16384 sxtw x0, w0 bl malloc str x0, [sp, 24] str wzr, [sp, 20] b .L2 .L5: ldr w0, [sp, 20] and w0, w0, 1 cmp w0, 0 beq .L3 ldrsw x0, [sp, 20] lsl x0, x0, 2 ldr x1, [sp, 24] add x0, x1, x0 mov w1, -1 str w1, [x0] b .L4 .L3: ldrsw x0, [sp, 20] lsl x0, x0, 2 ldr x1, [sp, 24] add x0, x1, x0 str wzr, [x0] .L4: ldr w0, [sp, 20] add w0, w0, 1 str w0, [sp, 20] .L2: ldrsw x1, [sp, 20] mov w0, 16384 sxtw x0, w0 lsr x0, x0, 2 cmp x1, x0 bcc .L5 str wzr, [sp, 20] b .L6 .L9: ldr w0, [sp, 20] and w0, w0, 1 cmp w0, 0 beq .L7 ldrsw x0, [sp, 20] lsl x0, x0, 2 ldr x1, [sp, 24] add x0, x1, x0 ldr w0, [x0] cmn w0, #1 beq .L8 adrp x0, __PRETTY_FUNCTION__.0 add x3, x0, :lo12:__PRETTY_FUNCTION__.0 mov w2, 33 adrp x0, .LC0 add x1, x0, :lo12:.LC0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __assert_fail .L7: ldrsw x0, [sp, 20] lsl x0, x0, 2 ldr x1, [sp, 24] add x0, x1, x0 ldr w0, [x0] cmp w0, 0 beq .L8 adrp x0, __PRETTY_FUNCTION__.0 add x3, x0, :lo12:__PRETTY_FUNCTION__.0 mov w2, 37 adrp x0, .LC0 add x1, x0, :lo12:.LC0 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl __assert_fail .L8: ldr w0, [sp, 20] add w0, w0, 1 str w0, [sp, 20] .L6: ldrsw x1, [sp, 20] mov w0, 16384 sxtw x0, w0 lsr x0, x0, 2 cmp x1, x0 bcc .L9 ldr x0, [sp, 24] bl free str xzr, [sp, 24] b .L10 .cfi_endproc .LFE6: .size test2, .-test2 .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 w0, [sp, 28] str x1, [sp, 16] bl test2 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 .type __PRETTY_FUNCTION__.0, %object .size __PRETTY_FUNCTION__.0, 6 __PRETTY_FUNCTION__.0: .string "test2" ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global printf .type printf, %function printf: .LFB0: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, 8] str w1, [sp, 4] mov w0, 0 add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size printf, .-printf .section .rodata .align 3 .LC0: .string "hello world!\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 mov w1, 1 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf ldp x29, x30, [sp], 16 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "Entrez un entier compris entre 1 et 126 : " .align 3 .LC1: .string "%d" .align 3 .LC2: .string "La lettre correspondante selon le code ASCII est : %c\n" .align 3 .LC3: .string "Entrez une lettre : " .align 3 .LC4: .string "%c" .align 3 .LC5: .string "Le code ASCII correspondant \303\240 la lettre est : %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 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] and w0, w0, 255 strb w0, [sp, 18] ldrb w0, [sp, 18] mov w1, w0 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl printf add x0, sp, 19 mov x1, x0 adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl __isoc99_scanf add x0, sp, 18 mov x1, x0 adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl __isoc99_scanf ldrb w0, [sp, 18] str w0, [sp, 20] ldr w0, [sp, 20] mov w1, w0 adrp x0, .LC5 add x0, x0, :lo12:.LC5 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 create_DataSet .type create_DataSet, %function create_DataSet: .LFB6: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp mov x0, 16 bl malloc str x0, [sp, 24] ldr x0, [sp, 24] mov w1, 1 strh w1, [x0, 8] mov x0, 8 bl malloc mov x1, x0 ldr x0, [sp, 24] str x1, [x0] ldr x0, [sp, 24] strh wzr, [x0, 10] ldr x0, [sp, 24] ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size create_DataSet, .-create_DataSet .align 2 .global create_TextString .type create_TextString, %function create_TextString: .LFB7: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp strb w0, [sp, 31] mov x0, 16 bl malloc str x0, [sp, 40] ldr x0, [sp, 40] strb wzr, [x0] ldr x0, [sp, 40] ldrb w1, [sp, 31] strb w1, [x0, 1] ldrb w0, [sp, 31] bl malloc mov x1, x0 ldr x0, [sp, 40] str x1, [x0, 8] ldr x0, [sp, 40] ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size create_TextString, .-create_TextString .align 2 .global add .type add, %function add: .LFB8: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, 8] strb w1, [sp, 7] ldr x0, [sp, 8] ldrb w1, [x0] ldr x0, [sp, 8] ldrb w0, [x0, 1] cmp w1, w0 bcs .L7 ldr x0, [sp, 8] ldr x1, [x0, 8] ldr x0, [sp, 8] ldrb w0, [x0] add w2, w0, 1 and w3, w2, 255 ldr x2, [sp, 8] strb w3, [x2] and x0, x0, 255 add x0, x1, x0 ldrb w1, [sp, 7] strb w1, [x0] .L7: nop add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE8: .size add, .-add .align 2 .global create_random .type create_random, %function create_random: .LFB9: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp mov x0, 16 bl malloc str x0, [sp, 24] ldr x0, [sp, 24] mov x1, 42 str x1, [x0] ldr x0, [sp, 24] mov x1, 47806 movk x1, 0xcafe, lsl 16 str x1, [x0, 8] ldr x0, [sp, 24] ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE9: .size create_random, .-create_random .align 2 .global getInt .type getInt, %function getInt: .LFB10: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, 8] ldr x0, [sp, 8] ldr x0, [x0, 8] and x1, x0, 65535 mov x0, 36969 mul x1, x1, x0 ldr x0, [sp, 8] ldr x0, [x0, 8] asr x0, x0, 16 add x1, x1, x0 ldr x0, [sp, 8] str x1, [x0, 8] ldr x0, [sp, 8] ldr x0, [x0] and x1, x0, 65535 mov x0, 18000 mul x1, x1, x0 ldr x0, [sp, 8] ldr x0, [x0] asr x0, x0, 16 add x1, x1, x0 ldr x0, [sp, 8] str x1, [x0] ldr x0, [sp, 8] ldr x0, [x0, 8] lsl w0, w0, 16 ldr x1, [sp, 8] ldr x1, [x1] add w0, w0, w1 add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE10: .size getInt, .-getInt .align 2 .global getByte .type getByte, %function getByte: .LFB11: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] ldr x0, [sp, 24] bl getInt strb w0, [sp, 47] ldrb w0, [sp, 47] ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE11: .size getByte, .-getByte .align 2 .global getNonNegativeByte .type getNonNegativeByte, %function getNonNegativeByte: .LFB12: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] ldr x0, [sp, 24] bl getByte strb w0, [sp, 47] ldrb w0, [sp, 47] ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE12: .size getNonNegativeByte, .-getNonNegativeByte .align 2 .global create_wordGenerator .type create_wordGenerator, %function create_wordGenerator: .LFB13: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp strh w0, [sp, 30] mov x0, 16 bl malloc str x0, [sp, 40] ldr x0, [sp, 40] ldrh w1, [sp, 30] strh w1, [x0] bl create_random mov x1, x0 ldr x0, [sp, 40] str x1, [x0, 8] ldr x0, [sp, 40] ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE13: .size create_wordGenerator, .-create_wordGenerator .align 2 .type next, %function next: .LFB14: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str xzr, [sp, 40] ldr x0, [sp, 24] ldrsh w0, [x0] cmp w0, 0 ble .L19 .L20: ldr x0, [sp, 24] ldr x0, [x0, 8] bl getNonNegativeByte strb w0, [sp, 38] ldrb w1, [sp, 38] mov w0, 52429 movk w0, 0xcccc, lsl 16 umull x0, w1, w0 lsr x0, x0, 32 lsr w2, w0, 3 mov w0, w2 lsl w0, w0, 2 add w0, w0, w2 lsl w0, w0, 1 sub w0, w1, w0 strb w0, [sp, 37] ldrb w0, [sp, 37] cmp w0, 0 beq .L20 ldrb w0, [sp, 37] bl create_TextString str x0, [sp, 40] b .L21 .L22: ldr x0, [sp, 24] ldr x0, [x0, 8] bl getByte and w1, w0, 255 lsr w2, w1, 2 mov w0, 18725 movk w0, 0x2492, lsl 16 umull x0, w2, w0 lsr x0, x0, 32 mov w2, w0 mov w0, w2 lsl w0, w0, 3 sub w0, w0, w2 lsl w0, w0, 2 sub w0, w1, w0 and w0, w0, 255 add w0, w0, 65 strb w0, [sp, 39] ldrb w1, [sp, 39] ldr x0, [sp, 40] bl add ldrb w0, [sp, 37] sub w0, w0, #1 strb w0, [sp, 37] .L21: ldrb w0, [sp, 37] cmp w0, 0 bne .L22 ldr x0, [sp, 24] ldrsh w0, [x0] and w0, w0, 65535 sub w0, w0, #1 and w0, w0, 65535 sxth w1, w0 ldr x0, [sp, 24] strh w1, [x0] .L19: ldr x0, [sp, 40] ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE14: .size next, .-next .align 2 .type toString, %function toString: .LFB15: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] ldr x0, [sp, 24] ldrb w0, [x0] and x0, x0, 255 add x0, x0, 1 bl malloc str x0, [sp, 40] strh wzr, [sp, 38] b .L25 .L26: ldr x0, [sp, 24] ldr x1, [x0, 8] ldrsh x0, [sp, 38] add x1, x1, x0 ldrsh x0, [sp, 38] ldr x2, [sp, 40] add x0, x2, x0 ldrb w1, [x1] strb w1, [x0] ldrsh w0, [sp, 38] and w0, w0, 65535 add w0, w0, 1 and w0, w0, 65535 strh w0, [sp, 38] .L25: ldrsh w0, [sp, 38] ldr x1, [sp, 24] ldrb w1, [x1] cmp w0, w1 blt .L26 ldrsh x0, [sp, 38] ldr x1, [sp, 40] add x0, x1, x0 strb wzr, [x0] ldr x0, [sp, 40] ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE15: .size toString, .-toString .align 2 .global compareTo .type compareTo, %function compareTo: .LFB16: .cfi_startproc sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, 8] str x1, [sp] ldr x0, [sp] str x0, [sp, 24] strb wzr, [sp, 21] b .L29 .L34: ldr x0, [sp, 8] ldr x1, [x0, 8] ldrb w0, [sp, 21] add x0, x1, x0 ldrb w0, [x0] strb w0, [sp, 22] ldr x0, [sp, 24] ldr x1, [x0, 8] ldrb w0, [sp, 21] add x0, x1, x0 ldrb w0, [x0] strb w0, [sp, 23] ldrb w1, [sp, 22] ldrb w0, [sp, 23] cmp w1, w0 bcs .L30 mov w0, -1 b .L31 .L30: ldrb w1, [sp, 22] ldrb w0, [sp, 23] cmp w1, w0 bls .L32 mov w0, 1 b .L31 .L32: ldrb w0, [sp, 21] add w0, w0, 1 strb w0, [sp, 21] .L29: ldr x0, [sp, 8] ldrb w0, [x0] ldrb w1, [sp, 21] cmp w1, w0 bcs .L33 ldr x0, [sp, 24] ldrb w0, [x0] ldrb w1, [sp, 21] cmp w1, w0 bcc .L34 .L33: ldr x0, [sp, 8] ldrb w1, [x0] ldr x0, [sp, 24] ldrb w0, [x0] cmp w1, w0 bcs .L35 mov w0, -1 b .L31 .L35: ldr x0, [sp, 8] ldrb w1, [x0] ldr x0, [sp, 24] ldrb w0, [x0] cmp w1, w0 bls .L36 mov w0, 1 b .L31 .L36: mov w0, 0 .L31: add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE16: .size compareTo, .-compareTo .align 2 .global equals .type equals, %function equals: .LFB17: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] ldr x1, [sp, 16] ldr x0, [sp, 24] bl compareTo sxtb w0, w0 cmp w0, 0 cset w0, eq and w0, w0, 255 ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE17: .size equals, .-equals .align 2 .global binarySearch .type binarySearch, %function binarySearch: .LFB18: .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] strh w2, [sp, 30] strh w3, [sp, 28] ldrsh w1, [sp, 30] ldrsh w0, [sp, 28] sub w0, w0, #1 cmp w1, w0 bne .L40 ldr x0, [sp, 40] ldr x1, [x0] ldrsh x0, [sp, 30] lsl x0, x0, 3 add x0, x1, x0 ldr x0, [x0] ldr x1, [sp, 32] bl equals and w0, w0, 255 b .L41 .L40: ldrsh w1, [sp, 28] ldrsh w0, [sp, 30] sub w0, w1, w0 lsr w1, w0, 31 add w0, w1, w0 asr w0, w0, 1 and w1, w0, 65535 ldrh w0, [sp, 30] add w0, w1, w0 and w0, w0, 65535 strh w0, [sp, 62] ldr x0, [sp, 40] ldr x1, [x0] ldrsh x0, [sp, 30] lsl x0, x0, 3 add x0, x1, x0 ldr x0, [x0] ldr x1, [sp, 32] bl equals and w0, w0, 255 cmp w0, 0 beq .L42 mov w0, 1 b .L41 .L42: ldr x0, [sp, 40] ldr x1, [x0] ldrsh x0, [sp, 62] lsl x0, x0, 3 add x0, x1, x0 ldr x0, [x0] ldr x1, [sp, 32] bl compareTo sxtb w0, w0 cmp w0, 0 ble .L43 ldrh w3, [sp, 62] ldrh w2, [sp, 30] ldr x1, [sp, 32] ldr x0, [sp, 40] bl binarySearch and w0, w0, 255 b .L41 .L43: ldrh w3, [sp, 28] ldrh w2, [sp, 62] ldr x1, [sp, 32] ldr x0, [sp, 40] bl binarySearch and w0, w0, 255 .L41: ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE18: .size binarySearch, .-binarySearch .align 2 .global contains .type contains, %function contains: .LFB19: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] ldr x0, [sp, 24] ldrsh w0, [x0, 10] cmp w0, 0 ble .L45 ldr x0, [sp, 24] ldrsh w0, [x0, 10] mov w3, w0 mov w2, 0 ldr x1, [sp, 16] ldr x0, [sp, 24] bl binarySearch and w0, w0, 255 b .L46 .L45: mov w0, 0 .L46: ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE19: .size contains, .-contains .align 2 .global sort .type sort, %function sort: .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] strh wzr, [sp, 38] b .L48 .L50: ldr x0, [sp, 24] ldr x1, [x0] ldrsh x0, [sp, 38] lsl x0, x0, 3 add x0, x1, x0 ldr x2, [x0] ldr x0, [sp, 24] ldr x1, [x0] ldrsh x0, [sp, 38] add x0, x0, 1 lsl x0, x0, 3 add x0, x1, x0 ldr x0, [x0] mov x1, x0 mov x0, x2 bl compareTo sxtb w0, w0 cmp w0, 0 bgt .L49 ldrsh w0, [sp, 38] and w0, w0, 65535 add w0, w0, 1 and w0, w0, 65535 strh w0, [sp, 38] b .L48 .L49: ldr x0, [sp, 24] ldr x1, [x0] ldrsh x0, [sp, 38] lsl x0, x0, 3 add x0, x1, x0 ldr x0, [x0] str x0, [sp, 40] ldr x0, [sp, 24] ldr x1, [x0] ldrsh x0, [sp, 38] add x0, x0, 1 lsl x0, x0, 3 add x1, x1, x0 ldr x0, [sp, 24] ldr x2, [x0] ldrsh x0, [sp, 38] lsl x0, x0, 3 add x0, x2, x0 ldr x1, [x1] str x1, [x0] ldr x0, [sp, 24] ldr x1, [x0] ldrsh x0, [sp, 38] add x0, x0, 1 lsl x0, x0, 3 add x0, x1, x0 ldr x1, [sp, 40] str x1, [x0] ldrsh w0, [sp, 38] cmp w0, 0 ble .L48 ldrsh w0, [sp, 38] and w0, w0, 65535 sub w0, w0, #1 and w0, w0, 65535 strh w0, [sp, 38] .L48: ldrsh w1, [sp, 38] ldr x0, [sp, 24] ldrsh w0, [x0, 10] sub w0, w0, #1 cmp w1, w0 blt .L50 nop nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE20: .size sort, .-sort .align 2 .global dsadd .type dsadd, %function dsadd: .LFB21: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] ldr x0, [sp, 24] ldrsh w1, [x0, 10] ldr x0, [sp, 24] ldrsh w0, [x0, 8] cmp w1, w0 bge .L52 ldr x0, [sp, 24] ldr x1, [x0] ldr x0, [sp, 24] ldrsh w2, [x0, 10] and w0, w2, 65535 add w0, w0, 1 and w0, w0, 65535 sxth w3, w0 ldr x0, [sp, 24] strh w3, [x0, 10] sxth x0, w2 lsl x0, x0, 3 add x0, x1, x0 ldr x1, [sp, 16] str x1, [x0] ldr x0, [sp, 24] bl sort b .L56 .L52: ldr x0, [sp, 24] ldrsh w0, [x0, 8] sxth x0, w0 lsl x0, x0, 4 bl malloc str x0, [sp, 40] strh wzr, [sp, 38] b .L54 .L55: ldr x0, [sp, 24] ldr x1, [x0] ldrsh x0, [sp, 38] lsl x0, x0, 3 add x1, x1, x0 ldrsh x0, [sp, 38] lsl x0, x0, 3 ldr x2, [sp, 40] add x0, x2, x0 ldr x1, [x1] str x1, [x0] ldrsh w0, [sp, 38] and w0, w0, 65535 add w0, w0, 1 and w0, w0, 65535 strh w0, [sp, 38] .L54: ldr x0, [sp, 24] ldrsh w0, [x0, 8] ldrsh w1, [sp, 38] cmp w1, w0 blt .L55 ldr x0, [sp, 24] ldr x1, [sp, 40] str x1, [x0] ldr x0, [sp, 24] ldrsh w0, [x0, 8] and w0, w0, 65535 ubfiz w0, w0, 1, 15 and w0, w0, 65535 sxth w1, w0 ldr x0, [sp, 24] strh w1, [x0, 8] ldr x1, [sp, 16] ldr x0, [sp, 24] bl dsadd .L56: nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE21: .size dsadd, .-dsadd .align 2 .global print .type print, %function print: .LFB22: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str wzr, [sp, 36] b .L58 .L59: ldr x0, [sp, 24] ldr x1, [x0] ldrsw x0, [sp, 36] lsl x0, x0, 3 add x0, x1, x0 ldr x0, [x0] str x0, [sp, 40] ldr x0, [sp, 40] bl toString bl puts ldr w0, [sp, 36] add w0, w0, 1 str w0, [sp, 36] .L58: ldr x0, [sp, 24] ldrsh w0, [x0, 10] mov w1, w0 ldr w0, [sp, 36] cmp w0, w1 blt .L59 nop nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE22: .size print, .-print .align 2 .global test .type test, %function test: .LFB23: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] mov w0, 17 bl create_wordGenerator str x0, [sp, 40] ldr x0, [sp, 40] bl next str x0, [sp, 32] b .L61 .L63: ldr x1, [sp, 32] ldr x0, [sp, 24] bl contains and w0, w0, 255 cmp w0, 0 bne .L62 ldr x1, [sp, 32] ldr x0, [sp, 24] bl dsadd .L62: ldr x0, [sp, 40] bl next str x0, [sp, 32] .L61: ldr x0, [sp, 32] cmp x0, 0 bne .L63 ldr x0, [sp, 24] ldrsh w0, [x0, 10] cmp w0, 17 cset w0, ne and w0, w0, 255 ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE23: .size test, .-test .align 2 .global main .type main, %function main: .LFB24: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str w0, [sp, 28] str x1, [sp, 16] str wzr, [sp, 44] b .L66 .L67: bl create_DataSet str x0, [sp, 48] ldr x0, [sp, 48] bl test and w0, w0, 255 and x0, x0, 255 str x0, [sp, 56] ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L66: ldr w0, [sp, 44] cmp w0, 2 ble .L67 mov w0, 0 ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE24: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global vars .bss .align 3 .type vars, %object .size vars, 12 vars: .zero 12 .global atom_0_r1_1 .align 2 .type atom_0_r1_1, %object .size atom_0_r1_1, 4 atom_0_r1_1: .zero 4 .global atom_1_r1_1 .align 2 .type atom_1_r1_1, %object .size atom_1_r1_1, 4 atom_1_r1_1: .zero 4 .text .align 2 .global t0 .type t0, %function t0: .LFB0: .cfi_startproc stp x29, x30, [sp, -96]! .cfi_def_cfa_offset 96 .cfi_offset 29, -96 .cfi_offset 30, -88 mov x29, sp str x0, [sp, 24] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 88] mov x1, 0 .L2: adrp x0, vars add x0, x0, :lo12:vars str x0, [sp, 64] ldr x0, [sp, 64] ldar w0, [x0] str w0, [sp, 44] ldr w0, [sp, 44] str w0, [sp, 48] str wzr, [sp, 52] ldr w0, [sp, 52] add w0, w0, 1 str w0, [sp, 56] adrp x0, vars+4 add x0, x0, :lo12:vars+4 str x0, [sp, 72] ldr w0, [sp, 56] str w0, [sp, 44] ldr w0, [sp, 44] mov w1, w0 ldr x0, [sp, 72] stlr w1, [x0] ldr w0, [sp, 48] cmp w0, 1 cset w0, eq and w0, w0, 255 str w0, [sp, 60] adrp x0, atom_0_r1_1 add x0, x0, :lo12:atom_0_r1_1 str x0, [sp, 80] ldr w0, [sp, 60] str w0, [sp, 44] ldr w0, [sp, 44] mov w1, w0 ldr x0, [sp, 80] stlr w1, [x0] mov x0, 0 mov x1, x0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 88] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L4 bl __stack_chk_fail .L4: mov x0, x1 ldp x29, x30, [sp], 96 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size t0, .-t0 .align 2 .global t1 .type t1, %function t1: .LFB1: .cfi_startproc stp x29, x30, [sp, -144]! .cfi_def_cfa_offset 144 .cfi_offset 29, -144 .cfi_offset 30, -136 mov x29, sp str x0, [sp, 24] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 136] mov x1, 0 .L6: adrp x0, vars+4 add x0, x0, :lo12:vars+4 str x0, [sp, 72] ldr x0, [sp, 72] ldar w0, [x0] str w0, [sp, 44] ldr w0, [sp, 44] str w0, [sp, 48] adrp x0, vars+4 add x0, x0, :lo12:vars+4 str x0, [sp, 80] ldr x0, [sp, 80] ldar w0, [x0] str w0, [sp, 44] ldr w0, [sp, 44] str w0, [sp, 52] adrp x0, vars+4 add x0, x0, :lo12:vars+4 str x0, [sp, 88] mov w0, 2 str w0, [sp, 44] ldr w0, [sp, 44] mov w1, w0 ldr x0, [sp, 88] stlr w1, [x0] adrp x0, vars+4 add x0, x0, :lo12:vars+4 str x0, [sp, 96] ldr x0, [sp, 96] ldar w0, [x0] str w0, [sp, 44] ldr w0, [sp, 44] str w0, [sp, 56] str wzr, [sp, 60] ldr w0, [sp, 60] add w0, w0, 2 sxtw x0, w0 lsl x1, x0, 2 adrp x0, vars add x0, x0, :lo12:vars add x0, x1, x0 str x0, [sp, 104] mov w0, 1 str w0, [sp, 44] ldr w0, [sp, 44] mov w1, w0 ldr x0, [sp, 104] stlr w1, [x0] adrp x0, vars+8 add x0, x0, :lo12:vars+8 str x0, [sp, 112] ldr x0, [sp, 112] ldar w0, [x0] str w0, [sp, 44] ldr w0, [sp, 44] str w0, [sp, 64] adrp x0, vars add x0, x0, :lo12:vars str x0, [sp, 120] mov w0, 1 str w0, [sp, 44] ldr w0, [sp, 44] mov w1, w0 ldr x0, [sp, 120] stlr w1, [x0] ldr w0, [sp, 48] cmp w0, 1 cset w0, eq and w0, w0, 255 str w0, [sp, 68] adrp x0, atom_1_r1_1 add x0, x0, :lo12:atom_1_r1_1 str x0, [sp, 128] ldr w0, [sp, 68] str w0, [sp, 44] ldr w0, [sp, 44] mov w1, w0 ldr x0, [sp, 128] stlr w1, [x0] mov x0, 0 mov x1, x0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 136] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L8 bl __stack_chk_fail .L8: mov x0, x1 ldp x29, x30, [sp], 144 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size t1, .-t1 .section .rodata .align 3 .LC0: .string "program.c" .align 3 .LC1: .string "0" .text .align 2 .global main .type main, %function main: .LFB2: .cfi_startproc stp x29, x30, [sp, -160]! .cfi_def_cfa_offset 160 .cfi_offset 29, -160 .cfi_offset 30, -152 mov x29, sp str w0, [sp, 28] str x1, [sp, 16] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 152] mov x1, 0 adrp x0, vars+4 add x0, x0, :lo12:vars+4 str x0, [sp, 88] str wzr, [sp, 80] ldr w0, [sp, 80] mov w1, w0 ldr x0, [sp, 88] str w1, [x0] adrp x0, vars+8 add x0, x0, :lo12:vars+8 str x0, [sp, 96] str wzr, [sp, 80] ldr w0, [sp, 80] mov w1, w0 ldr x0, [sp, 96] str w1, [x0] adrp x0, vars add x0, x0, :lo12:vars str x0, [sp, 104] str wzr, [sp, 80] ldr w0, [sp, 80] mov w1, w0 ldr x0, [sp, 104] str w1, [x0] adrp x0, atom_0_r1_1 add x0, x0, :lo12:atom_0_r1_1 str x0, [sp, 112] str wzr, [sp, 80] ldr w0, [sp, 80] mov w1, w0 ldr x0, [sp, 112] str w1, [x0] adrp x0, atom_1_r1_1 add x0, x0, :lo12:atom_1_r1_1 str x0, [sp, 120] str wzr, [sp, 80] ldr w0, [sp, 80] mov w1, w0 ldr x0, [sp, 120] str w1, [x0] add x4, sp, 72 mov x3, 0 adrp x0, t0 add x2, x0, :lo12:t0 mov x1, 0 mov x0, x4 bl pthread_create add x4, sp, 80 mov x3, 0 adrp x0, t1 add x2, x0, :lo12:t1 mov x1, 0 mov x0, x4 bl pthread_create ldr x0, [sp, 72] mov x1, 0 bl pthread_join ldr x0, [sp, 80] mov x1, 0 bl pthread_join adrp x0, vars+4 add x0, x0, :lo12:vars+4 str x0, [sp, 128] ldr x0, [sp, 128] ldar w0, [x0] str w0, [sp, 44] ldr w0, [sp, 44] str w0, [sp, 48] ldr w0, [sp, 48] cmp w0, 2 cset w0, eq and w0, w0, 255 str w0, [sp, 52] adrp x0, atom_0_r1_1 add x0, x0, :lo12:atom_0_r1_1 str x0, [sp, 136] ldr x0, [sp, 136] ldar w0, [x0] str w0, [sp, 44] ldr w0, [sp, 44] str w0, [sp, 56] adrp x0, atom_1_r1_1 add x0, x0, :lo12:atom_1_r1_1 str x0, [sp, 144] ldr x0, [sp, 144] ldar w0, [x0] str w0, [sp, 44] ldr w0, [sp, 44] str w0, [sp, 60] ldr w1, [sp, 56] ldr w0, [sp, 60] and w0, w1, w0 str w0, [sp, 64] ldr w1, [sp, 52] ldr w0, [sp, 64] and w0, w1, w0 str w0, [sp, 68] ldr w0, [sp, 68] cmp w0, 1 bne .L10 adrp x0, __PRETTY_FUNCTION__.0 add x3, x0, :lo12:__PRETTY_FUNCTION__.0 mov w2, 61 adrp x0, .LC0 add x1, x0, :lo12:.LC0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __assert_fail .L10: 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 .L12 bl __stack_chk_fail .L12: mov w0, w1 ldp x29, x30, [sp], 160 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE2: .size main, .-main .section .rodata .align 3 .type __PRETTY_FUNCTION__.0, %object .size __PRETTY_FUNCTION__.0, 5 __PRETTY_FUNCTION__.0: .string "main" ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global func_exit .type func_exit, %function func_exit: .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, __func__.1 add x0, x0, :lo12:__func__.1 bl puts mov w0, 0 bl exit .cfi_endproc .LFE6: .size func_exit, .-func_exit .align 2 .global func_call .type func_call, %function func_call: .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, __func__.0 add x0, x0, :lo12:__func__.0 bl puts mov w0, 0 bl exit .cfi_endproc .LFE7: .size func_call, .-func_call .global mem .data .align 3 .type mem, %object .size mem, 16 mem: .xword -4641999248545117687 .xword -4084633807978275798 .section .rodata .align 3 .LC0: .string "%016lx %016lx\n" .align 3 .LC1: .string "%016lx\n" .text .align 2 .global main .type main, %function main: .LFB8: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 56] mov x1, 0 add x0, sp, 72 sub x0, x0, #48 adrp x1, .LC2 add x1, x1, :lo12:.LC2 ld1 {v0.16b - v1.16b}, [x1] st1 {v0.16b - v1.16b}, [x0] adrp x0, mem add x0, x0, :lo12:mem #APP // 20 "program.c" 1 moveli r11, 2389 shl16insli r11, r11, -8821 shl16insli r11, r11, -19715 shl16insli r11, r11, 21029 moveli r19, 8794 shl16insli r19, r19, -28834 shl16insli r19, r19, 6092 shl16insli r19, r19, 15960 move r19, x0 { fnop ; ld1s_add r11, r19, -82 } move x2, r11 move x1, r19 // 0 "" 2 #NO_APP add x0, sp, 72 sub x0, x0, #48 str x2, [x0] add x0, sp, 72 sub x0, x0, #48 str x1, [x0, 8] adrp x0, mem add x0, x0, :lo12:mem ldr x1, [x0] adrp x0, mem add x0, x0, :lo12:mem ldr x0, [x0, 8] mov x2, x0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf add x0, sp, 72 sub x0, x0, #48 ldr x0, [x0] mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf add x0, sp, 72 sub x0, x0, #48 ldr x0, [x0, 8] mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 56] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .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 .LFE8: .size main, .-main .section .rodata .align 3 .type __func__.1, %object .size __func__.1, 10 __func__.1: .string "func_exit" .align 3 .type __func__.0, %object .size __func__.0, 10 __func__.0: .string "func_call" .align 4 .LC2: .xword 0 .xword 0 .xword 0 .xword 0 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global main .type main, %function main: .LFB6: .cfi_startproc stp x29, x30, [sp, -16]! .cfi_def_cfa_offset 16 .cfi_offset 29, -16 .cfi_offset 30, -8 mov x29, sp bl abort .cfi_endproc .LFE6: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global clilen .data .align 2 .type clilen, %object .size clilen, 4 clilen: .word 16 .global mutex .bss .align 3 .type mutex, %object .size mutex, 48 mutex: .zero 48 .global buffer .align 3 .type buffer, %object .size buffer, 256 buffer: .zero 256 .section .rodata .align 3 .LC0: .string "ERROR opening socket" .align 3 .LC1: .string "ERROR on binding" .align 3 .LC2: .string "INFO Server initiating..." .align 3 .LC3: .string "INFO Server initiated." .text .align 2 .global main .type main, %function main: .LFB6: .cfi_startproc stp x29, x30, [sp, -80]! .cfi_def_cfa_offset 80 .cfi_offset 29, -80 .cfi_offset 30, -72 mov x29, sp str 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 mov w2, 0 mov w1, 1 mov w0, 2 bl socket str w0, [sp, 32] ldr w0, [sp, 32] cmp w0, 0 bge .L2 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl puts mov w0, 1 bl exit .L2: add x0, sp, 56 stp xzr, xzr, [x0] mov w0, 2 strh w0, [sp, 56] mov w0, 8888 str w0, [sp, 36] ldr w0, [sp, 36] and w0, w0, 65535 bl htons and w0, w0, 65535 strh w0, [sp, 58] str wzr, [sp, 60] ldr w0, [sp, 32] add x1, sp, 56 mov w2, 16 bl bind cmp w0, 0 bge .L3 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl puts mov w0, 1 bl exit .L3: ldr w0, [sp, 32] mov w1, 5 bl listen adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl puts add x0, sp, 32 add x4, sp, 40 mov x3, x0 adrp x0, serve add x2, x0, :lo12:serve mov x1, 0 mov x0, x4 bl pthread_create add x0, sp, 32 add x4, sp, 48 mov x3, x0 adrp x0, serve add x2, x0, :lo12:serve mov x1, 0 mov x0, x4 bl pthread_create adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl puts .L4: mov w0, 1 bl wait b .L4 .cfi_endproc .LFE6: .size main, .-main .section .rodata .align 3 .LC4: .string "INFO Client connected." .align 3 .LC5: .string "rw" .align 3 .LC6: .string "INFO Client disconnected." .align 3 .LC7: .string "INFO Client asked for the file " .align 3 .LC8: .string "r" .align 3 .LC9: .string "ERROR Cannot open file, file name \"%s\"\n" .align 3 .LC10: .string "FAIL\n" .align 3 .LC11: .string "INFO Sending response..." .align 3 .LC12: .string "%s" .text .align 2 .global serve .type serve, %function serve: .LFB7: .cfi_startproc stp x29, x30, [sp, -96]! .cfi_def_cfa_offset 96 .cfi_offset 29, -96 .cfi_offset 30, -88 mov x29, sp str x0, [sp, 24] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 88] mov x1, 0 ldr x0, [sp, 24] ldr w0, [x0] str w0, [sp, 48] .L19: add x1, sp, 72 adrp x0, clilen add x2, x0, :lo12:clilen ldr w0, [sp, 48] bl accept str w0, [sp, 52] adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl puts adrp x0, .LC5 add x1, x0, :lo12:.LC5 ldr w0, [sp, 52] bl fdopen str x0, [sp, 56] .L18: ldr x2, [sp, 56] mov w1, 256 adrp x0, buffer add x0, x0, :lo12:buffer bl fgets cmp x0, 0 bne .L7 adrp x0, .LC6 add x0, x0, :lo12:.LC6 bl puts ldr x0, [sp, 56] bl fclose b .L21 .L7: adrp x0, mutex add x0, x0, :lo12:mutex bl pthread_mutex_lock adrp x0, .LC7 add x0, x0, :lo12:.LC7 bl printf adrp x0, :got:stdout ldr x0, [x0, #:got_lo12:stdout] ldr x0, [x0] mov x1, x0 adrp x0, buffer add x0, x0, :lo12:buffer bl fputs str wzr, [sp, 40] str wzr, [sp, 44] b .L9 .L12: adrp x0, buffer add x1, x0, :lo12:buffer ldrsw x0, [sp, 44] ldrb w0, [x1, x0] cmp w0, 10 bne .L10 adrp x0, buffer add x1, x0, :lo12:buffer ldrsw x0, [sp, 44] strb wzr, [x1, x0] b .L11 .L10: ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L9: ldr w0, [sp, 44] cmp w0, 255 ble .L12 .L11: adrp x0, .LC8 add x1, x0, :lo12:.LC8 adrp x0, buffer add x0, x0, :lo12:buffer bl fopen str x0, [sp, 64] ldr x0, [sp, 64] cmp x0, 0 bne .L13 adrp x0, buffer add x1, x0, :lo12:buffer adrp x0, .LC9 add x0, x0, :lo12:.LC9 bl printf adrp x0, buffer add x2, x0, :lo12:buffer adrp x0, .LC10 add x1, x0, :lo12:.LC10 mov x0, x2 ldr w2, [x1] str w2, [x0] ldrh w1, [x1, 4] strh w1, [x0, 4] b .L14 .L13: adrp x0, buffer add x0, x0, :lo12:buffer movi v0.4s, 0 stp q0, q0, [x0] stp q0, q0, [x0, 32] stp q0, q0, [x0, 64] stp q0, q0, [x0, 96] stp q0, q0, [x0, 128] stp q0, q0, [x0, 160] stp q0, q0, [x0, 192] stp q0, q0, [x0, 224] ldr x0, [sp, 64] bl fgetc strb w0, [sp, 39] .L17: ldr w0, [sp, 40] cmp w0, 256 beq .L23 adrp x0, buffer add x1, x0, :lo12:buffer ldrsw x0, [sp, 40] ldrb w2, [sp, 39] strb w2, [x1, x0] ldr w0, [sp, 40] add w0, w0, 1 str w0, [sp, 40] ldr x0, [sp, 64] bl fgetc strb w0, [sp, 39] b .L17 .L23: nop ldr x0, [sp, 64] bl fclose .L14: adrp x0, .LC11 add x0, x0, :lo12:.LC11 bl puts adrp x0, buffer add x2, x0, :lo12:buffer adrp x0, .LC12 add x1, x0, :lo12:.LC12 ldr w0, [sp, 52] bl dprintf adrp x0, mutex add x0, x0, :lo12:mutex bl pthread_mutex_unlock b .L18 .L21: b .L19 .cfi_endproc .LFE7: .size serve, .-serve ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .type WAKING_TURN_SIDE_UPDATE_INTERVAL_TIME, %object .size WAKING_TURN_SIDE_UPDATE_INTERVAL_TIME, 8 WAKING_TURN_SIDE_UPDATE_INTERVAL_TIME: .word 0 .word 1072693248 .align 3 .type WAKING_TURN_SIDE_ONLY_ROLLING_TIME, %object .size WAKING_TURN_SIDE_ONLY_ROLLING_TIME, 8 WAKING_TURN_SIDE_ONLY_ROLLING_TIME: .word 0 .word 1072693248 .align 3 .type WAKING_TURN_SIDE_BEND_ROLLING_TIME, %object .size WAKING_TURN_SIDE_BEND_ROLLING_TIME, 8 WAKING_TURN_SIDE_BEND_ROLLING_TIME: .word 0 .word 1075052544 .align 3 .type WAKING_TURN_SIDE_CHECK_TIME, %object .size WAKING_TURN_SIDE_CHECK_TIME, 8 WAKING_TURN_SIDE_CHECK_TIME: .word 0 .word 1074266112 .align 2 .type WAKING_TURN_SIDE_RETRY_COUNT, %object .size WAKING_TURN_SIDE_RETRY_COUNT, 4 WAKING_TURN_SIDE_RETRY_COUNT: .word 5 .align 2 .type WAKING_TURN_SIDE_MAX_SIDE, %object .size WAKING_TURN_SIDE_MAX_SIDE, 4 WAKING_TURN_SIDE_MAX_SIDE: .word 1 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global bitmap .data .align 3 .type bitmap, %object .size bitmap, 512 bitmap: .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 0 .hword 511 .hword 66 .hword 511 .hword 382 .hword 511 .hword 511 .hword 511 .hword 511 .hword 374 .hword 511 .hword 87 .hword 511 .hword 343 .hword 195 .hword 199 .hword 195 .hword 66 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 372 .hword 511 .hword 87 .hword 511 .hword 343 .hword 195 .hword 199 .hword 343 .hword 511 .hword 383 .hword 511 .hword 511 .hword 511 .hword 383 .hword 511 .hword 511 .hword 511 .hword 511 .hword 503 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 479 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 503 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 479 .hword 479 .hword 479 .hword 479 .hword 479 .hword 479 .hword 479 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 511 .hword 479 .hword 479 .hword 511 .hword 511 .hword 471 .section .rodata .align 3 .LC0: .string "%d.html" .align 3 .LC1: .string "w" .align 3 .LC2: .string "Cannot open %s: %s\n" .align 3 .LC3: .string "<html>\n <head>\n <meta http-equiv=\"Content-Type\" content=\"text/html;charset=windows-%d\">\n <title>Windows codepage %d</title>\n <style>.unused { background: #ccc; }</style>\n" .align 3 .LC4: .string " <link rel=\"next\" href=\"%d.html\">\n" .align 3 .LC5: .string " <link rel=\"prev\" href=\"%d.html\">\n" .align 3 .LC6: .string " </head>\n <body>\n <table>\n <tr><th> " .align 3 .LC7: .string "<th>%X" .align 3 .LC8: .string "\n <tr><th>%X" .align 3 .LC9: .string "<td>%c" .align 3 .LC10: .string "<td class=unused>%c" .align 3 .LC11: .string "\n </table>\n </body>\n</html>\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 str x19, [sp, 16] .cfi_offset 19, -128 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 136] mov x1, 0 str wzr, [sp, 40] b .L2 .L9: ldr w0, [sp, 40] add w0, w0, 1250 add x3, sp, 120 mov w2, w0 adrp x0, .LC0 add x1, x0, :lo12:.LC0 mov x0, x3 bl sprintf add x2, sp, 120 adrp x0, .LC1 add x1, x0, :lo12:.LC1 mov x0, x2 bl fopen mov x2, x0 ldrsw x0, [sp, 40] lsl x0, x0, 3 add x1, sp, 48 str x2, [x1, x0] ldrsw x0, [sp, 40] lsl x0, x0, 3 add x1, sp, 48 ldr x0, [x1, x0] cmp x0, 0 bne .L3 adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x19, [x0] bl __errno_location ldr w0, [x0] bl strerror mov x1, x0 add x0, sp, 120 mov x3, x1 mov x2, x0 adrp x0, .LC2 add x1, x0, :lo12:.LC2 mov x0, x19 bl fprintf mov w0, 1 b .L19 .L3: ldrsw x0, [sp, 40] lsl x0, x0, 3 add x1, sp, 48 ldr x4, [x1, x0] ldr w0, [sp, 40] add w1, w0, 1250 ldr w0, [sp, 40] add w0, w0, 1250 mov w3, w0 mov w2, w1 adrp x0, .LC3 add x1, x0, :lo12:.LC3 mov x0, x4 bl fprintf ldr w0, [sp, 40] cmp w0, 7 bgt .L5 ldrsw x0, [sp, 40] lsl x0, x0, 3 add x1, sp, 48 ldr x3, [x1, x0] ldr w0, [sp, 40] add w0, w0, 1251 mov w2, w0 adrp x0, .LC4 add x1, x0, :lo12:.LC4 mov x0, x3 bl fprintf .L5: ldr w0, [sp, 40] cmp w0, 0 ble .L6 ldrsw x0, [sp, 40] lsl x0, x0, 3 add x1, sp, 48 ldr x3, [x1, x0] ldr w0, [sp, 40] add w0, w0, 1249 mov w2, w0 adrp x0, .LC5 add x1, x0, :lo12:.LC5 mov x0, x3 bl fprintf .L6: ldrsw x0, [sp, 40] lsl x0, x0, 3 add x1, sp, 48 ldr x0, [x1, x0] mov x3, x0 mov x2, 40 mov x1, 1 adrp x0, .LC6 add x0, x0, :lo12:.LC6 bl fwrite str wzr, [sp, 44] b .L7 .L8: ldrsw x0, [sp, 40] lsl x0, x0, 3 add x1, sp, 48 ldr x3, [x1, x0] ldr w2, [sp, 44] adrp x0, .LC7 add x1, x0, :lo12:.LC7 mov x0, x3 bl fprintf ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L7: ldr w0, [sp, 44] cmp w0, 15 ble .L8 ldr w0, [sp, 40] add w0, w0, 1 str w0, [sp, 40] .L2: ldr w0, [sp, 40] cmp w0, 8 ble .L9 mov w0, 32 str w0, [sp, 40] b .L10 .L16: str wzr, [sp, 44] b .L11 .L15: ldr w0, [sp, 40] and w0, w0, 15 cmp w0, 0 bne .L12 ldrsw x0, [sp, 44] lsl x0, x0, 3 add x1, sp, 48 ldr x3, [x1, x0] ldr w2, [sp, 40] adrp x0, .LC8 add x1, x0, :lo12:.LC8 mov x0, x3 bl fprintf .L12: ldrsw x0, [sp, 44] lsl x0, x0, 3 add x1, sp, 48 ldr x3, [x1, x0] adrp x0, bitmap add x0, x0, :lo12:bitmap ldrsw x1, [sp, 40] ldrh w0, [x0, x1, lsl 1] mov w1, w0 ldr w0, [sp, 44] asr w0, w1, w0 and w0, w0, 1 cmp w0, 0 beq .L13 adrp x0, .LC9 add x0, x0, :lo12:.LC9 b .L14 .L13: adrp x0, .LC10 add x0, x0, :lo12:.LC10 .L14: ldr w1, [sp, 40] and w1, w1, 255 mov w2, w1 mov x1, x0 mov x0, x3 bl fprintf ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L11: ldr w0, [sp, 44] cmp w0, 8 ble .L15 ldr w0, [sp, 40] add w0, w0, 1 str w0, [sp, 40] .L10: ldr w0, [sp, 40] cmp w0, 255 ble .L16 str wzr, [sp, 40] b .L17 .L18: ldrsw x0, [sp, 40] lsl x0, x0, 3 add x1, sp, 48 ldr x0, [x1, x0] mov x3, x0 mov x2, 29 mov x1, 1 adrp x0, .LC11 add x0, x0, :lo12:.LC11 bl fwrite ldrsw x0, [sp, 40] lsl x0, x0, 3 add x1, sp, 48 ldr x0, [x1, x0] bl fclose ldr w0, [sp, 40] add w0, w0, 1 str w0, [sp, 40] .L17: ldr w0, [sp, 40] cmp w0, 8 ble .L18 mov w0, 0 .L19: mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 136] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L20 bl __stack_chk_fail .L20: mov w0, w1 ldr x19, [sp, 16] ldp x29, x30, [sp], 144 .cfi_restore 30 .cfi_restore 29 .cfi_restore 19 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global sigvec .type sigvec, %function sigvec: .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, 44] str x1, [sp, 32] str x2, [sp, 24] bl __errno_location mov x1, x0 mov w0, 38 str w0, [x1] mov w0, -1 ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size sigvec, .-sigvec ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "socket error" .align 3 .LC1: .string "bind error" .align 3 .LC2: .string "239.255.255.250" .align 3 .LC3: .string "setsockopt:IP_ADD_MEMBERSHIP" .align 3 .LC4: .string "recvfrom error" .align 3 .LC5: .string "%d. Receive from %s:%u\n" .align 3 .LC6: .string "\tpacket data: %s\n" .align 3 .LC7: .string "setsockopt:IP_DROP_MEMBERSHIP" .text .align 2 .global main .type main, %function main: .LFB6: .cfi_startproc sub sp, sp, #1120 .cfi_def_cfa_offset 1120 stp x29, x30, [sp] .cfi_offset 29, -1120 .cfi_offset 30, -1112 mov x29, sp str x19, [sp, 16] .cfi_offset 19, -1104 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 1112] mov x1, 0 mov w2, 0 mov w1, 2 mov w0, 2 bl socket str w0, [sp, 36] ldr w0, [sp, 36] cmp w0, 0 bge .L2 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl perror mov w0, 1 bl exit .L2: add x0, sp, 56 mov x2, 16 mov w1, 0 bl memset mov w0, 2 strh w0, [sp, 56] mov w0, 0 bl htonl str w0, [sp, 60] mov w0, 1900 bl htons and w0, w0, 65535 strh w0, [sp, 58] add x0, sp, 56 mov w2, 16 mov x1, x0 ldr w0, [sp, 36] bl bind cmp w0, 0 bge .L3 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl perror mov w0, 1 bl exit .L3: add x0, sp, 48 mov x2, 8 mov w1, 0 bl memset adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl inet_addr str w0, [sp, 48] mov w0, 0 bl htonl str w0, [sp, 52] add x0, sp, 48 mov w4, 8 mov x3, x0 mov w2, 35 mov w1, 0 ldr w0, [sp, 36] bl setsockopt cmp w0, 0 bge .L4 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl perror mov w0, 1 bl exit .L4: mov w0, 16 str w0, [sp, 32] str wzr, [sp, 40] b .L5 .L7: add x2, sp, 32 add x1, sp, 72 add x0, sp, 88 mov x5, x2 mov x4, x1 mov w3, 0 mov x2, 1024 mov x1, x0 ldr w0, [sp, 36] bl recvfrom str w0, [sp, 44] ldrsw x0, [sp, 44] add x1, sp, 88 strb wzr, [x1, x0] ldr w0, [sp, 44] cmp w0, 0 bge .L6 adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl perror mov w0, 1 bl exit .L6: ldr w0, [sp, 76] bl inet_ntoa mov w19, w0 ldrh w0, [sp, 74] bl ntohs and w0, w0, 65535 mov w3, w0 mov w2, w19 ldr w1, [sp, 40] adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl printf add x0, sp, 88 mov x1, x0 adrp x0, .LC6 add x0, x0, :lo12:.LC6 bl printf .L5: ldr w0, [sp, 40] cmp w0, 9 ble .L7 add x0, sp, 48 mov w4, 8 mov x3, x0 mov w2, 36 mov w1, 0 ldr w0, [sp, 36] bl setsockopt cmp w0, 0 bge .L8 adrp x0, .LC7 add x0, x0, :lo12:.LC7 bl perror mov w0, 1 bl exit .L8: ldr w0, [sp, 36] bl close mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 1112] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L10 bl __stack_chk_fail .L10: mov w0, w1 ldr x19, [sp, 16] ldp x29, x30, [sp] add sp, sp, 1120 .cfi_restore 29 .cfi_restore 30 .cfi_restore 19 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global main .type main, %function main: .LFB6: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str xzr, [sp, 24] ldr x0, [sp, 24] bl menu mov w0, 0 bl exit .cfi_endproc .LFE6: .size main, .-main .section .rodata .align 3 .LC0: .string "Enter your Choice:\n(a).Insert at the beginning of the list" .align 3 .LC1: .string "\n(b).Insert at the End of the List.\n(c).Insert after a num" .align 3 .LC2: .string "ber in the list.\n(e).Exit" .align 3 .LC3: .string "\n%c" .align 3 .LC4: .string "Enter the node which you want to insert\t" .align 3 .LC5: .string "%d" .align 3 .LC6: .string "Enter the node after which you want to insert\t" .align 3 .LC7: .string "Invalid Option." .text .align 2 .global menu .type menu, %function menu: .LFB7: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x0, [sp, 24] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 56] mov x1, 0 .L9: ldr x0, [sp, 24] bl disp adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl puts add x0, sp, 47 mov x1, x0 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl __isoc99_scanf ldrb w0, [sp, 47] cmp w0, 101 beq .L3 cmp w0, 101 bgt .L4 cmp w0, 99 beq .L5 cmp w0, 99 bgt .L4 cmp w0, 97 beq .L6 cmp w0, 98 beq .L7 b .L4 .L6: adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl printf add x0, sp, 48 mov x1, x0 adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl __isoc99_scanf ldr w0, [sp, 48] mov w1, w0 ldr x0, [sp, 24] bl InsertAtBeg str x0, [sp, 24] b .L8 .L7: adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl printf add x0, sp, 48 mov x1, x0 adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl __isoc99_scanf ldr w0, [sp, 48] mov w1, w0 ldr x0, [sp, 24] bl InsertAtEnd str x0, [sp, 24] b .L8 .L5: adrp x0, .LC6 add x0, x0, :lo12:.LC6 bl printf add x0, sp, 52 mov x1, x0 adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl __isoc99_scanf adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl printf add x0, sp, 48 mov x1, x0 adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl __isoc99_scanf ldr w0, [sp, 52] ldr w1, [sp, 48] mov w2, w1 mov w1, w0 ldr x0, [sp, 24] bl InsertAfter str x0, [sp, 24] b .L8 .L3: mov w0, 0 bl exit .L4: adrp x0, .LC7 add x0, x0, :lo12:.LC7 bl puts nop .L8: b .L9 .cfi_endproc .LFE7: .size menu, .-menu .align 2 .global InsertAtBeg .type InsertAtBeg, %function InsertAtBeg: .LFB8: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str w1, [sp, 20] ldr x0, [sp, 24] cmp x0, 0 bne .L12 mov x0, 16 bl malloc str x0, [sp, 40] ldr x0, [sp, 40] ldr w1, [sp, 20] str w1, [x0] ldr x0, [sp, 40] ldr x1, [sp, 40] str x1, [x0, 8] ldr x0, [sp, 40] str x0, [sp, 24] ldr x0, [sp, 24] b .L13 .L12: mov x0, 16 bl malloc str x0, [sp, 32] ldr x0, [sp, 32] ldr w1, [sp, 20] str w1, [x0] ldr x0, [sp, 24] ldr x1, [x0, 8] ldr x0, [sp, 32] str x1, [x0, 8] ldr x0, [sp, 24] ldr x1, [sp, 32] str x1, [x0, 8] ldr x0, [sp, 24] .L13: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE8: .size InsertAtBeg, .-InsertAtBeg .align 2 .global InsertAtEnd .type InsertAtEnd, %function InsertAtEnd: .LFB9: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str w1, [sp, 20] ldr x0, [sp, 24] cmp x0, 0 bne .L15 ldr w1, [sp, 20] ldr x0, [sp, 24] bl InsertAtBeg str x0, [sp, 24] ldr x0, [sp, 24] b .L16 .L15: mov x0, 16 bl malloc str x0, [sp, 40] ldr x0, [sp, 40] ldr w1, [sp, 20] str w1, [x0] ldr x0, [sp, 24] ldr x1, [x0, 8] ldr x0, [sp, 40] str x1, [x0, 8] ldr x0, [sp, 24] ldr x1, [sp, 40] str x1, [x0, 8] ldr x0, [sp, 40] str x0, [sp, 24] ldr x0, [sp, 24] .L16: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE9: .size InsertAtEnd, .-InsertAtEnd .section .rodata .align 3 .LC8: .string "Item not found in the list. Enter accurate data" .text .align 2 .global InsertAfter .type InsertAfter, %function InsertAfter: .LFB10: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str w1, [sp, 20] str w2, [sp, 16] ldr x0, [sp, 24] cmp x0, 0 bne .L18 mov x0, 0 b .L19 .L18: mov x0, 16 bl malloc str x0, [sp, 40] ldr x0, [sp, 24] ldr x0, [x0, 8] str x0, [sp, 32] ldr x0, [sp, 40] ldr w1, [sp, 16] str w1, [x0] .L22: ldr x0, [sp, 32] ldr w0, [x0] ldr w1, [sp, 20] cmp w1, w0 bne .L20 ldr x0, [sp, 32] ldr x1, [x0, 8] ldr x0, [sp, 40] str x1, [x0, 8] ldr x0, [sp, 32] ldr x1, [sp, 40] str x1, [x0, 8] ldr x1, [sp, 32] ldr x0, [sp, 24] cmp x1, x0 bne .L21 ldr x0, [sp, 32] str x0, [sp, 24] .L21: ldr x0, [sp, 24] b .L19 .L20: ldr x0, [sp, 32] ldr x0, [x0, 8] str x0, [sp, 32] ldr x0, [sp, 24] ldr x0, [x0, 8] ldr x1, [sp, 32] cmp x1, x0 bne .L22 adrp x0, .LC8 add x0, x0, :lo12:.LC8 bl puts ldr x0, [sp, 24] .L19: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE10: .size InsertAfter, .-InsertAfter .section .rodata .align 3 .LC9: .string "\n" .align 3 .LC10: .string "Data: %d\n" .text .align 2 .global disp .type disp, %function disp: .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] adrp x0, .LC9 add x0, x0, :lo12:.LC9 bl puts ldr x0, [sp, 24] cmp x0, 0 beq .L29 ldr x0, [sp, 24] ldr x0, [x0, 8] str x0, [sp, 40] str wzr, [sp, 36] ldr x0, [sp, 24] ldr x0, [x0, 8] ldr x1, [sp, 24] cmp x1, x0 bne .L27 ldr x0, [sp, 40] ldr w0, [x0] mov w1, w0 adrp x0, .LC10 add x0, x0, :lo12:.LC10 bl printf b .L23 .L28: ldr x0, [sp, 40] ldr w0, [x0] mov w1, w0 adrp x0, .LC10 add x0, x0, :lo12:.LC10 bl printf ldr x0, [sp, 40] ldr x0, [x0, 8] str x0, [sp, 40] mov w0, 1 str w0, [sp, 36] .L27: ldr x1, [sp, 40] ldr x0, [sp, 24] cmp x1, x0 bne .L28 ldr w0, [sp, 36] cmp w0, 0 beq .L28 ldr x0, [sp, 40] ldr w0, [x0] mov w1, w0 adrp x0, .LC10 add x0, x0, :lo12:.LC10 bl printf adrp x0, .LC9 add x0, x0, :lo12:.LC9 bl puts b .L23 .L29: nop .L23: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE11: .size disp, .-disp ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global add16u_0K9 .type add16u_0K9, %function add16u_0K9: .LFB6: .cfi_startproc stp x29, x30, [sp, -240]! .cfi_def_cfa_offset 240 .cfi_offset 29, -240 .cfi_offset 30, -232 mov x29, sp str x0, [sp, 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, 232] mov x1, 0 str xzr, [sp, 96] ldr x0, [sp, 24] and w0, w0, 1 str w0, [sp, 104] ldr x0, [sp, 16] and w0, w0, 1 str w0, [sp, 168] ldr x0, [sp, 24] lsr x0, x0, 1 and w0, w0, 1 str w0, [sp, 108] ldr x0, [sp, 16] lsr x0, x0, 1 and w0, w0, 1 str w0, [sp, 172] ldr x0, [sp, 24] lsr x0, x0, 2 and w0, w0, 1 str w0, [sp, 112] ldr x0, [sp, 16] lsr x0, x0, 2 and w0, w0, 1 str w0, [sp, 176] ldr x0, [sp, 24] lsr x0, x0, 3 and w0, w0, 1 str w0, [sp, 116] ldr x0, [sp, 16] lsr x0, x0, 3 and w0, w0, 1 str w0, [sp, 180] ldr x0, [sp, 24] lsr x0, x0, 4 and w0, w0, 1 str w0, [sp, 120] ldr x0, [sp, 16] lsr x0, x0, 4 and w0, w0, 1 str w0, [sp, 184] ldr x0, [sp, 24] lsr x0, x0, 5 and w0, w0, 1 str w0, [sp, 124] ldr x0, [sp, 16] lsr x0, x0, 5 and w0, w0, 1 str w0, [sp, 188] ldr x0, [sp, 24] lsr x0, x0, 6 and w0, w0, 1 str w0, [sp, 128] ldr x0, [sp, 16] lsr x0, x0, 6 and w0, w0, 1 str w0, [sp, 192] ldr x0, [sp, 24] lsr x0, x0, 7 and w0, w0, 1 str w0, [sp, 132] ldr x0, [sp, 16] lsr x0, x0, 7 and w0, w0, 1 str w0, [sp, 196] ldr x0, [sp, 24] lsr x0, x0, 8 and w0, w0, 1 str w0, [sp, 136] ldr x0, [sp, 16] lsr x0, x0, 8 and w0, w0, 1 str w0, [sp, 200] ldr x0, [sp, 24] lsr x0, x0, 9 and w0, w0, 1 str w0, [sp, 140] ldr x0, [sp, 16] lsr x0, x0, 9 and w0, w0, 1 str w0, [sp, 204] ldr x0, [sp, 24] lsr x0, x0, 10 and w0, w0, 1 str w0, [sp, 144] ldr x0, [sp, 16] lsr x0, x0, 10 and w0, w0, 1 str w0, [sp, 208] ldr x0, [sp, 24] lsr x0, x0, 11 and w0, w0, 1 str w0, [sp, 148] ldr x0, [sp, 16] lsr x0, x0, 11 and w0, w0, 1 str w0, [sp, 212] ldr x0, [sp, 24] lsr x0, x0, 12 and w0, w0, 1 str w0, [sp, 152] ldr x0, [sp, 16] lsr x0, x0, 12 and w0, w0, 1 str w0, [sp, 216] ldr x0, [sp, 24] lsr x0, x0, 13 and w0, w0, 1 str w0, [sp, 156] ldr x0, [sp, 16] lsr x0, x0, 13 and w0, w0, 1 str w0, [sp, 220] ldr x0, [sp, 24] lsr x0, x0, 14 and w0, w0, 1 str w0, [sp, 160] ldr x0, [sp, 16] lsr x0, x0, 14 and w0, w0, 1 str w0, [sp, 224] ldr x0, [sp, 24] lsr x0, x0, 15 and w0, w0, 1 str w0, [sp, 164] ldr x0, [sp, 16] lsr x0, x0, 15 and w0, w0, 1 str w0, [sp, 228] ldr w0, [sp, 220] str w0, [sp, 44] ldr w0, [sp, 120] str w0, [sp, 48] str wzr, [sp, 52] ldr w1, [sp, 160] ldr w0, [sp, 224] eor w0, w1, w0 str w0, [sp, 56] ldr w1, [sp, 160] ldr w0, [sp, 224] and w0, w1, w0 str w0, [sp, 60] ldr w0, [sp, 156] ldr w1, [sp, 56] and w0, w1, w0 str w0, [sp, 64] ldr w0, [sp, 156] ldr w1, [sp, 56] eor w0, w1, w0 str w0, [sp, 68] ldr w1, [sp, 60] ldr w0, [sp, 64] orr w0, w1, w0 str w0, [sp, 72] ldr w1, [sp, 164] ldr w0, [sp, 228] eor w0, w1, w0 str w0, [sp, 76] ldr w1, [sp, 164] ldr w0, [sp, 228] and w0, w1, w0 str w0, [sp, 80] ldr w1, [sp, 76] ldr w0, [sp, 72] and w0, w1, w0 str w0, [sp, 84] ldr w1, [sp, 76] ldr w0, [sp, 72] eor w0, w1, w0 str w0, [sp, 88] ldr w1, [sp, 80] ldr w0, [sp, 84] orr w0, w1, w0 str w0, [sp, 92] ldr w0, [sp, 212] uxtw x0, w0 and x0, x0, 1 ldr x1, [sp, 96] orr x0, x1, x0 str x0, [sp, 96] ldr w0, [sp, 88] lsl w0, w0, 1 uxtw x0, w0 and x0, x0, 2 ldr x1, [sp, 96] orr x0, x1, x0 str x0, [sp, 96] ldr w0, [sp, 76] lsl w0, w0, 2 uxtw x0, w0 and x0, x0, 4 ldr x1, [sp, 96] orr x0, x1, x0 str x0, [sp, 96] ldr w0, [sp, 220] lsl w0, w0, 3 uxtw x0, w0 and x0, x0, 8 ldr x1, [sp, 96] orr x0, x1, x0 str x0, [sp, 96] ldr w0, [sp, 112] lsl w0, w0, 4 uxtw x0, w0 and x0, x0, 16 ldr x1, [sp, 96] orr x0, x1, x0 str x0, [sp, 96] ldr w0, [sp, 48] lsl w0, w0, 5 uxtw x0, w0 and x0, x0, 32 ldr x1, [sp, 96] orr x0, x1, x0 str x0, [sp, 96] ldr w0, [sp, 56] lsl w0, w0, 6 uxtw x0, w0 and x0, x0, 64 ldr x1, [sp, 96] orr x0, x1, x0 str x0, [sp, 96] ldr w0, [sp, 148] lsl w0, w0, 7 uxtw x0, w0 and x0, x0, 255 ldr x1, [sp, 96] orr x0, x1, x0 str x0, [sp, 96] ldr w0, [sp, 52] lsl w0, w0, 8 uxtw x0, w0 and x0, x0, 256 ldr x1, [sp, 96] orr x0, x1, x0 str x0, [sp, 96] ldr w0, [sp, 56] lsl w0, w0, 9 uxtw x0, w0 and x0, x0, 512 ldr x1, [sp, 96] orr x0, x1, x0 str x0, [sp, 96] ldr w0, [sp, 136] lsl w0, w0, 10 uxtw x0, w0 and x0, x0, 1024 ldr x1, [sp, 96] orr x0, x1, x0 str x0, [sp, 96] ldr w0, [sp, 164] lsl w0, w0, 11 uxtw x0, w0 and x0, x0, 2048 ldr x1, [sp, 96] orr x0, x1, x0 str x0, [sp, 96] ldr w0, [sp, 216] lsl w0, w0, 12 uxtw x0, w0 and x0, x0, 4096 ldr x1, [sp, 96] orr x0, x1, x0 str x0, [sp, 96] ldr w0, [sp, 44] lsl w0, w0, 13 uxtw x0, w0 and x0, x0, 8192 ldr x1, [sp, 96] orr x0, x1, x0 str x0, [sp, 96] ldr w0, [sp, 68] lsl w0, w0, 14 uxtw x0, w0 and x0, x0, 16384 ldr x1, [sp, 96] orr x0, x1, x0 str x0, [sp, 96] ldr w0, [sp, 88] lsl w0, w0, 15 uxtw x0, w0 and x0, x0, 65535 ldr x1, [sp, 96] orr x0, x1, x0 str x0, [sp, 96] ldr w0, [sp, 92] lsl w0, w0, 16 uxtw x0, w0 and x0, x0, 65536 ldr x1, [sp, 96] orr x0, x1, x0 str x0, [sp, 96] ldr x0, [sp, 96] mov x1, x0 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 .L3 bl __stack_chk_fail .L3: mov x0, x1 ldp x29, x30, [sp], 240 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size add16u_0K9, .-add16u_0K9 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc mov w0, 77 ret .cfi_endproc .LFE0: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global twoSum .type twoSum, %function twoSum: .LFB6: .cfi_startproc stp x29, x30, [sp, -80]! .cfi_def_cfa_offset 80 .cfi_offset 29, -80 .cfi_offset 30, -72 mov x29, sp str x0, [sp, 40] str w1, [sp, 36] str w2, [sp, 32] str x3, [sp, 24] ldrsw x0, [sp, 36] lsl x0, x0, 2 bl malloc str x0, [sp, 72] str wzr, [sp, 60] ldr x0, [sp, 24] str wzr, [x0] ldr w0, [sp, 36] cmp w0, 2 bne .L2 ldr x0, [sp, 40] ldr w1, [x0] ldr x0, [sp, 40] add x0, x0, 4 ldr w0, [x0] add w0, w1, w0 ldr w1, [sp, 32] cmp w1, w0 bne .L3 ldr x0, [sp, 24] mov w1, 2 str w1, [x0] ldr x0, [sp, 72] str wzr, [x0] ldr x0, [sp, 72] add x0, x0, 4 mov w1, 1 str w1, [x0] .L3: ldr x0, [sp, 72] b .L4 .L2: str wzr, [sp, 64] str wzr, [sp, 68] str wzr, [sp, 64] b .L5 .L10: ldr w0, [sp, 64] add w0, w0, 1 str w0, [sp, 68] b .L6 .L9: ldrsw x0, [sp, 64] lsl x0, x0, 2 ldr x1, [sp, 40] add x0, x1, x0 ldr w1, [x0] ldrsw x0, [sp, 68] lsl x0, x0, 2 ldr x2, [sp, 40] add x0, x2, x0 ldr w0, [x0] add w0, w1, w0 ldr w1, [sp, 32] cmp w1, w0 bne .L7 ldr x0, [sp, 24] ldr w0, [x0] add w1, w0, 2 ldr x0, [sp, 24] str w1, [x0] ldr w0, [sp, 60] add w1, w0, 1 str w1, [sp, 60] sxtw x0, w0 lsl x0, x0, 2 ldr x1, [sp, 72] add x0, x1, x0 ldr w1, [sp, 64] str w1, [x0] ldr w0, [sp, 60] add w1, w0, 1 str w1, [sp, 60] sxtw x0, w0 lsl x0, x0, 2 ldr x1, [sp, 72] add x0, x1, x0 ldr w1, [sp, 68] str w1, [x0] b .L8 .L7: 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 .L8: ldr w0, [sp, 64] add w0, w0, 1 str w0, [sp, 64] .L5: ldr w0, [sp, 36] sub w0, w0, #1 ldr w1, [sp, 64] cmp w1, w0 blt .L10 ldr x0, [sp, 72] .L4: ldp x29, x30, [sp], 80 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size twoSum, .-twoSum .data .align 3 .type input_nums, %object .size input_nums, 16 input_nums: .word 2 .word 7 .word 11 .word 15 .align 2 .type input_nums_size, %object .size input_nums_size, 4 input_nums_size: .word 4 .local output_return_size .comm output_return_size,4,4 .local output_return_nums .comm output_return_nums,8,8 .align 3 .type output_reference_nums, %object .size output_reference_nums, 8 output_reference_nums: .word 0 .word 1 .section .rodata .align 3 .LC0: .string "Primary test pass\r" .align 3 .LC1: .string "Primary test trigger error\r" .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 w0, [sp, 28] str x1, [sp, 16] adrp x0, input_nums_size add x0, x0, :lo12:input_nums_size ldr w1, [x0] adrp x0, output_return_size add x3, x0, :lo12:output_return_size mov w2, 9 adrp x0, input_nums add x0, x0, :lo12:input_nums bl twoSum mov x1, x0 adrp x0, output_return_nums add x0, x0, :lo12:output_return_nums str x1, [x0] adrp x0, output_return_nums add x0, x0, :lo12:output_return_nums ldr x3, [x0] adrp x0, output_return_size add x0, x0, :lo12:output_return_size ldr w0, [x0] sxtw x0, w0 mov x2, x0 adrp x0, output_reference_nums add x1, x0, :lo12:output_reference_nums mov x0, x3 bl memcmp cmp w0, 0 bne .L12 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl puts b .L13 .L12: adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl puts .L13: 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 .align 2 .global pa .type pa, %function pa: .LFB6: .cfi_startproc sub sp, sp, #32 .cfi_def_cfa_offset 32 str s0, [sp, 12] ldr s0, [sp, 12] fcvt d0, s0 mov x0, 140737488355328 movk x0, 0x4066, lsl 48 fmov d1, x0 fdiv d0, d0, d1 fcvtzs w0, d0 str w0, [sp, 28] ldr s0, [sp, 12] fcvt d1, s0 ldr w0, [sp, 28] scvtf d0, w0 mov x0, 140737488355328 movk x0, 0x4066, lsl 48 fmov d2, x0 fmul d0, d0, d2 fsub d0, d1, d0 fcvt s0, d0 str s0, [sp, 24] ldr s0, [sp, 24] mov w0, -1028390912 fmov s1, w0 fcmpe s0, s1 bls .L7 b .L9 .L7: ldr s0, [sp, 24] mov w0, 1127481344 fmov s1, w0 fadd s0, s0, s1 str s0, [sp, 24] b .L4 .L9: ldr s0, [sp, 24] mov w0, 1119092736 fmov s1, w0 fcmpe s0, s1 bgt .L8 b .L4 .L8: ldr s0, [sp, 24] mov w0, 1127481344 fmov s1, w0 fsub s0, s0, s1 str s0, [sp, 24] .L4: ldr s0, [sp, 24] add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size pa, .-pa ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global wcscpy .type wcscpy, %function wcscpy: .LFB0: .cfi_startproc sub sp, sp, #48 .cfi_def_cfa_offset 48 str x0, [sp, 8] str x1, [sp] ldr x0, [sp] str x0, [sp, 32] ldr x1, [sp, 8] ldr x0, [sp] sub x0, x1, x0 asr x0, x0, 2 sub x0, x0, #1 str x0, [sp, 40] .L2: ldr x0, [sp, 32] add x1, x0, 4 str x1, [sp, 32] ldr w0, [x0] str w0, [sp, 28] ldr x0, [sp, 40] lsl x0, x0, 2 ldr x1, [sp, 32] add x0, x1, x0 ldr w1, [sp, 28] str w1, [x0] ldr w0, [sp, 28] cmp w0, 0 bne .L2 ldr x0, [sp, 8] add sp, sp, 48 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size wcscpy, .-wcscpy ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global AL_Sort_ .type AL_Sort_, %function AL_Sort_: .LFB0: .cfi_startproc str x19, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 19, -64 str w0, [sp, 44] str x1, [sp, 32] str x2, [sp, 24] mov w19, 0 b .L2 .L3: sxtw x0, w19 lsl x0, x0, 2 ldr x1, [sp, 24] add x0, x1, x0 str w19, [x0] add w19, w19, 1 .L2: ldr w0, [sp, 44] cmp w19, w0 blt .L3 str wzr, [sp, 52] b .L4 .L8: ldr w0, [sp, 52] str w0, [sp, 56] ldrsw x0, [sp, 52] lsl x0, x0, 2 ldr x1, [sp, 32] add x0, x1, x0 ldr w0, [x0] str w0, [sp, 60] ldr w0, [sp, 52] add w19, w0, 1 b .L5 .L7: sxtw x0, w19 lsl x0, x0, 2 ldr x1, [sp, 24] add x0, x1, x0 ldr w0, [x0] sxtw x0, w0 lsl x0, x0, 2 ldr x1, [sp, 32] add x0, x1, x0 ldr w0, [x0] ldr w1, [sp, 60] cmp w1, w0 bge .L6 str w19, [sp, 56] sxtw x0, w19 lsl x0, x0, 2 ldr x1, [sp, 24] add x0, x1, x0 ldr w0, [x0] sxtw x0, w0 lsl x0, x0, 2 ldr x1, [sp, 32] add x0, x1, x0 ldr w0, [x0] str w0, [sp, 60] .L6: add w19, w19, 1 .L5: ldr w0, [sp, 44] cmp w19, w0 blt .L7 ldrsw x0, [sp, 52] lsl x0, x0, 2 ldr x1, [sp, 24] add x0, x1, x0 ldr w19, [x0] ldrsw x0, [sp, 56] lsl x0, x0, 2 ldr x1, [sp, 24] add x1, x1, x0 ldrsw x0, [sp, 52] lsl x0, x0, 2 ldr x2, [sp, 24] add x0, x2, x0 ldr w1, [x1] str w1, [x0] ldrsw x0, [sp, 56] lsl x0, x0, 2 ldr x1, [sp, 24] add x0, x1, x0 str w19, [x0] ldr w0, [sp, 52] add w0, w0, 1 str w0, [sp, 52] .L4: ldr w1, [sp, 52] ldr w0, [sp, 44] cmp w1, w0 blt .L8 mov w0, 0 ldr x19, [sp], 64 .cfi_restore 19 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size AL_Sort_, .-AL_Sort_ ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global getnode .type getnode, %function getnode: .LFB6: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str w0, [sp, 28] mov x0, 24 bl malloc str x0, [sp, 40] ldr x0, [sp, 40] str xzr, [x0] ldr x0, [sp, 40] str xzr, [x0, 8] ldr x0, [sp, 40] ldr w1, [sp, 28] str w1, [x0, 16] ldr x0, [sp, 40] ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size getnode, .-getnode .section .rodata .align 3 .LC0: .string "%d " .text .align 2 .global print_k_distance_down .type print_k_distance_down, %function print_k_distance_down: .LFB7: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str x0, [sp, 24] str w1, [sp, 20] ldr x0, [sp, 24] cmp x0, 0 beq .L8 ldr w0, [sp, 20] cmp w0, 0 blt .L8 ldr w0, [sp, 20] cmp w0, 0 bne .L7 ldr x0, [sp, 24] ldr w0, [x0, 16] mov w1, w0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf .L7: ldr x0, [sp, 24] ldr x2, [x0] ldr w0, [sp, 20] sub w0, w0, #1 mov w1, w0 mov x0, x2 bl print_k_distance_down ldr x0, [sp, 24] ldr x2, [x0, 8] ldr w0, [sp, 20] sub w0, w0, #1 mov w1, w0 mov x0, x2 bl print_k_distance_down b .L3 .L8: nop .L3: ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size print_k_distance_down, .-print_k_distance_down .align 2 .global get_k_distance .type get_k_distance, %function get_k_distance: .LFB8: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x0, [sp, 40] str x1, [sp, 32] str w2, [sp, 28] ldr x0, [sp, 40] cmp x0, 0 bne .L10 mov w0, -1 b .L11 .L10: ldr x1, [sp, 40] ldr x0, [sp, 32] cmp x1, x0 bne .L12 ldr w1, [sp, 28] ldr x0, [sp, 40] bl print_k_distance_down mov w0, 0 b .L11 .L12: ldr x0, [sp, 40] ldr x0, [x0] ldr w2, [sp, 28] ldr x1, [sp, 32] bl get_k_distance str w0, [sp, 56] ldr w0, [sp, 56] cmn w0, #1 beq .L13 ldr w0, [sp, 56] add w0, w0, 1 ldr w1, [sp, 28] cmp w1, w0 bne .L14 ldr x0, [sp, 40] ldr w0, [x0, 16] mov w1, w0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf b .L15 .L14: ldr x0, [sp, 40] ldr x2, [x0, 8] ldr w1, [sp, 28] ldr w0, [sp, 56] sub w0, w1, w0 sub w0, w0, #2 mov w1, w0 mov x0, x2 bl print_k_distance_down .L15: ldr w0, [sp, 56] add w0, w0, 1 b .L11 .L13: ldr x0, [sp, 40] ldr x0, [x0, 8] ldr w2, [sp, 28] ldr x1, [sp, 32] bl get_k_distance str w0, [sp, 60] ldr w0, [sp, 60] cmp w0, 0 beq .L16 ldr w0, [sp, 60] add w0, w0, 1 ldr w1, [sp, 28] cmp w1, w0 bne .L17 ldr x0, [sp, 40] ldr w0, [x0, 16] mov w1, w0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf b .L18 .L17: ldr x0, [sp, 40] ldr x2, [x0] ldr w1, [sp, 28] ldr w0, [sp, 60] sub w0, w1, w0 sub w0, w0, #2 mov w1, w0 mov x0, x2 bl print_k_distance_down .L18: ldr w0, [sp, 60] add w0, w0, 1 b .L11 .L16: mov w0, -1 .L11: ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE8: .size get_k_distance, .-get_k_distance .align 2 .global inorder .type inorder, %function inorder: .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] cmp x0, 0 beq .L21 ldr x0, [sp, 24] ldr x0, [x0] bl inorder ldr x0, [sp, 24] ldr w0, [x0, 16] mov w1, w0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf ldr x0, [sp, 24] ldr x0, [x0, 8] bl inorder .L21: nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE9: .size inorder, .-inorder .align 2 .global main .type main, %function main: .LFB10: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x19, [sp, 16] .cfi_offset 19, -32 mov w0, 10 bl getnode str x0, [sp, 40] mov w0, 5 bl getnode mov x1, x0 ldr x0, [sp, 40] str x1, [x0] mov w0, 15 bl getnode mov x1, x0 ldr x0, [sp, 40] str x1, [x0, 8] ldr x0, [sp, 40] ldr x19, [x0] mov w0, 3 bl getnode str x0, [x19] ldr x0, [sp, 40] ldr x19, [x0] mov w0, 7 bl getnode str x0, [x19, 8] ldr x0, [sp, 40] ldr x19, [x0, 8] mov w0, 13 bl getnode str x0, [x19] ldr x0, [sp, 40] ldr x19, [x0, 8] mov w0, 17 bl getnode str x0, [x19, 8] ldr x0, [sp, 40] ldr x0, [x0, 8] mov w2, 2 mov x1, x0 ldr x0, [sp, 40] bl get_k_distance 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 .LFE10: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "%d" .align 3 .LC1: .string "%d %d" .align 3 .LC2: .string "%d\n" .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc sub sp, sp, #960 .cfi_def_cfa_offset 960 stp x29, x30, [sp] .cfi_offset 29, -960 .cfi_offset 30, -952 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 952] mov x1, 0 add x0, sp, 24 mov x1, x0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl __isoc99_scanf str wzr, [sp, 36] b .L2 .L11: add x1, sp, 28 add x0, sp, 32 mov x2, x1 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf mov w0, 1 str w0, [sp, 40] b .L3 .L4: ldrsw x0, [sp, 40] lsl x0, x0, 2 add x1, sp, 48 ldr w2, [sp, 40] str w2, [x1, x0] ldr w0, [sp, 40] add w0, w0, 1 str w0, [sp, 40] .L3: ldr w0, [sp, 28] ldr w1, [sp, 40] cmp w1, w0 ble .L4 mov w0, 1 str w0, [sp, 40] b .L5 .L6: ldrsw x1, [sp, 40] mov x0, x1 lsl x0, x0, 4 sub x0, x0, x1 lsl x0, x0, 2 add x1, sp, 52 mov w2, 1 str w2, [x1, x0] ldr w0, [sp, 40] add w0, w0, 1 str w0, [sp, 40] .L5: ldr w0, [sp, 32] ldr w1, [sp, 40] cmp w1, w0 ble .L6 mov w0, 1 str w0, [sp, 40] b .L7 .L10: mov w0, 2 str w0, [sp, 44] b .L8 .L9: ldr w0, [sp, 40] sub w0, w0, #1 ldrsw x2, [sp, 44] sxtw x1, w0 mov x0, x1 lsl x0, x0, 4 sub x0, x0, x1 add x0, x0, x2 lsl x0, x0, 2 add x1, sp, 48 ldr w2, [x1, x0] ldr w0, [sp, 44] sub w0, w0, #1 sxtw x3, w0 ldrsw x1, [sp, 40] mov x0, x1 lsl x0, x0, 4 sub x0, x0, x1 add x0, x0, x3 lsl x0, x0, 2 add x1, sp, 48 ldr w0, [x1, x0] add w2, w2, w0 ldrsw x3, [sp, 44] ldrsw x1, [sp, 40] mov x0, x1 lsl x0, x0, 4 sub x0, x0, x1 add x0, x0, x3 lsl x0, x0, 2 add x1, sp, 48 str w2, [x1, x0] ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L8: ldr w0, [sp, 28] ldr w1, [sp, 44] cmp w1, w0 ble .L9 ldr w0, [sp, 40] add w0, w0, 1 str w0, [sp, 40] .L7: ldr w0, [sp, 32] ldr w1, [sp, 40] cmp w1, w0 ble .L10 ldr w0, [sp, 32] ldr w1, [sp, 28] sxtw x2, w1 sxtw x1, w0 mov x0, x1 lsl x0, x0, 4 sub x0, x0, x1 add x0, x0, x2 lsl x0, x0, 2 add x1, sp, 48 ldr w0, [x1, x0] mov w1, w0 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf ldr w0, [sp, 36] add w0, w0, 1 str w0, [sp, 36] .L2: ldr w0, [sp, 24] ldr w1, [sp, 36] cmp w1, w0 blt .L11 mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 952] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L13 bl __stack_chk_fail .L13: mov w0, w1 ldp x29, x30, [sp] add sp, sp, 960 .cfi_restore 29 .cfi_restore 30 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .type Foo, %function Foo: .LFB0: .cfi_startproc sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, 8] ldr x0, [sp, 8] str x0, [sp, 24] nop add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size Foo, .-Foo .align 2 .type Bar, %function Bar: .LFB1: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str x0, [sp, 24] ldr x0, [sp, 24] bl Foo nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size Bar, .-Bar ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global DOSMEM_FillIsrTable .type DOSMEM_FillIsrTable, %function DOSMEM_FillIsrTable: .LFB0: .cfi_startproc sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, 8] str wzr, [sp, 28] b .L2 .L3: ldr w0, [sp, 28] and w0, w0, 65535 ubfiz w0, w0, 2, 14 and w0, w0, 65535 sxth w0, w0 mov w2, w0 ldrsw x0, [sp, 28] lsl x0, x0, 2 ldr x1, [sp, 8] add x0, x1, x0 orr w1, w2, -268435456 str w1, [x0] ldr w0, [sp, 28] add w0, w0, 1 str w0, [sp, 28] .L2: ldr w0, [sp, 28] cmp w0, 255 ble .L3 nop nop add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size DOSMEM_FillIsrTable, .-DOSMEM_FillIsrTable ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global vars .bss .align 3 .type vars, %object .size vars, 16 vars: .zero 16 .global atom_1_r1_1 .align 2 .type atom_1_r1_1, %object .size atom_1_r1_1, 4 atom_1_r1_1: .zero 4 .text .align 2 .global t0 .type t0, %function t0: .LFB0: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x0, [sp, 24] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 56] mov x1, 0 .L2: adrp x0, vars add x0, x0, :lo12:vars str x0, [sp, 40] mov w0, 2 str w0, [sp, 36] ldr w0, [sp, 36] mov w1, w0 ldr x0, [sp, 40] stlr w1, [x0] adrp x0, vars+4 add x0, x0, :lo12:vars+4 str x0, [sp, 48] mov w0, 1 str w0, [sp, 36] ldr w0, [sp, 36] mov w1, w0 ldr x0, [sp, 48] stlr w1, [x0] mov x0, 0 mov x1, x0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 56] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L4 bl __stack_chk_fail .L4: mov x0, x1 ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size t0, .-t0 .align 2 .global t1 .type t1, %function t1: .LFB1: .cfi_startproc stp x29, x30, [sp, -144]! .cfi_def_cfa_offset 144 .cfi_offset 29, -144 .cfi_offset 30, -136 mov x29, sp str x0, [sp, 24] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 136] mov x1, 0 .L6: adrp x0, vars+4 add x0, x0, :lo12:vars+4 str x0, [sp, 72] ldr x0, [sp, 72] ldar w0, [x0] str w0, [sp, 36] ldr w0, [sp, 36] str w0, [sp, 40] adrp x0, vars+4 add x0, x0, :lo12:vars+4 str x0, [sp, 80] mov w0, 2 str w0, [sp, 36] ldr w0, [sp, 36] mov w1, w0 ldr x0, [sp, 80] stlr w1, [x0] adrp x0, vars+4 add x0, x0, :lo12:vars+4 str x0, [sp, 88] ldr x0, [sp, 88] ldar w0, [x0] str w0, [sp, 36] ldr w0, [sp, 36] str w0, [sp, 44] mov w0, 1 str w0, [sp, 48] ldr w0, [sp, 48] cmp w0, 0 nop .L8: adrp x0, vars+8 add x0, x0, :lo12:vars+8 str x0, [sp, 96] mov w0, 1 str w0, [sp, 36] ldr w0, [sp, 36] mov w1, w0 ldr x0, [sp, 96] stlr w1, [x0] adrp x0, vars+8 add x0, x0, :lo12:vars+8 str x0, [sp, 104] ldr x0, [sp, 104] ldar w0, [x0] str w0, [sp, 36] ldr w0, [sp, 36] str w0, [sp, 52] str wzr, [sp, 56] ldr w0, [sp, 56] add w0, w0, 3 sxtw x0, w0 lsl x1, x0, 2 adrp x0, vars add x0, x0, :lo12:vars add x0, x1, x0 str x0, [sp, 112] ldr x0, [sp, 112] ldar w0, [x0] str w0, [sp, 36] ldr w0, [sp, 36] str w0, [sp, 60] mov w0, 1 str w0, [sp, 64] ldr w0, [sp, 64] cmp w0, 0 nop .L10: adrp x0, vars add x0, x0, :lo12:vars str x0, [sp, 120] mov w0, 1 str w0, [sp, 36] ldr w0, [sp, 36] mov w1, w0 ldr x0, [sp, 120] stlr w1, [x0] ldr w0, [sp, 40] cmp w0, 1 cset w0, eq and w0, w0, 255 str w0, [sp, 68] adrp x0, atom_1_r1_1 add x0, x0, :lo12:atom_1_r1_1 str x0, [sp, 128] ldr w0, [sp, 68] str w0, [sp, 36] ldr w0, [sp, 36] mov w1, w0 ldr x0, [sp, 128] stlr w1, [x0] mov x0, 0 mov x1, x0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 136] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L12 bl __stack_chk_fail .L12: mov x0, x1 ldp x29, x30, [sp], 144 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size t1, .-t1 .section .rodata .align 3 .LC0: .string "program.c" .align 3 .LC1: .string "0" .text .align 2 .global main .type main, %function main: .LFB2: .cfi_startproc stp x29, x30, [sp, -160]! .cfi_def_cfa_offset 160 .cfi_offset 29, -160 .cfi_offset 30, -152 mov x29, sp str w0, [sp, 28] str x1, [sp, 16] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 152] mov x1, 0 adrp x0, vars+4 add x0, x0, :lo12:vars+4 str x0, [sp, 88] str wzr, [sp, 80] ldr w0, [sp, 80] mov w1, w0 ldr x0, [sp, 88] str w1, [x0] adrp x0, vars add x0, x0, :lo12:vars str x0, [sp, 96] str wzr, [sp, 80] ldr w0, [sp, 80] mov w1, w0 ldr x0, [sp, 96] str w1, [x0] adrp x0, vars+12 add x0, x0, :lo12:vars+12 str x0, [sp, 104] str wzr, [sp, 80] ldr w0, [sp, 80] mov w1, w0 ldr x0, [sp, 104] str w1, [x0] adrp x0, vars+8 add x0, x0, :lo12:vars+8 str x0, [sp, 112] str wzr, [sp, 80] ldr w0, [sp, 80] mov w1, w0 ldr x0, [sp, 112] str w1, [x0] adrp x0, atom_1_r1_1 add x0, x0, :lo12:atom_1_r1_1 str x0, [sp, 120] str wzr, [sp, 80] ldr w0, [sp, 80] mov w1, w0 ldr x0, [sp, 120] str w1, [x0] add x4, sp, 72 mov x3, 0 adrp x0, t0 add x2, x0, :lo12:t0 mov x1, 0 mov x0, x4 bl pthread_create add x4, sp, 80 mov x3, 0 adrp x0, t1 add x2, x0, :lo12:t1 mov x1, 0 mov x0, x4 bl pthread_create ldr x0, [sp, 72] mov x1, 0 bl pthread_join ldr x0, [sp, 80] mov x1, 0 bl pthread_join adrp x0, vars add x0, x0, :lo12:vars str x0, [sp, 128] ldr x0, [sp, 128] ldar w0, [x0] str w0, [sp, 40] ldr w0, [sp, 40] str w0, [sp, 44] ldr w0, [sp, 44] cmp w0, 2 cset w0, eq and w0, w0, 255 str w0, [sp, 48] adrp x0, vars+4 add x0, x0, :lo12:vars+4 str x0, [sp, 136] ldr x0, [sp, 136] ldar w0, [x0] str w0, [sp, 40] ldr w0, [sp, 40] str w0, [sp, 52] ldr w0, [sp, 52] cmp w0, 2 cset w0, eq and w0, w0, 255 str w0, [sp, 56] adrp x0, atom_1_r1_1 add x0, x0, :lo12:atom_1_r1_1 str x0, [sp, 144] ldr x0, [sp, 144] ldar w0, [x0] str w0, [sp, 40] ldr w0, [sp, 40] str w0, [sp, 60] ldr w1, [sp, 56] ldr w0, [sp, 60] and w0, w1, w0 str w0, [sp, 64] ldr w1, [sp, 48] ldr w0, [sp, 64] and w0, w1, w0 str w0, [sp, 68] ldr w0, [sp, 68] cmp w0, 1 bne .L14 adrp x0, __PRETTY_FUNCTION__.0 add x3, x0, :lo12:__PRETTY_FUNCTION__.0 mov w2, 64 adrp x0, .LC0 add x1, x0, :lo12:.LC0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __assert_fail .L14: mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 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 main, .-main .section .rodata .align 3 .type __PRETTY_FUNCTION__.0, %object .size __PRETTY_FUNCTION__.0, 5 __PRETTY_FUNCTION__.0: .string "main" ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global conf .section .rodata .align 3 .LC0: .string "0.0.1" .align 3 .LC1: .string "bcdpfls" .section .data.rel.local,"aw" .align 3 .type conf, %object .size conf, 32 conf: .xword .LC0 .byte 0 .byte 0 .byte 10 .zero 5 .xword .LC1 .xword 0 .text .align 2 .global trim_right .type trim_right, %function trim_right: .LFB0: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp strb w0, [sp, 31] str x1, [sp, 16] ldrb w0, [sp, 31] mov w1, w0 ldr x0, [sp, 16] bl strchr str x0, [sp, 40] ldr x0, [sp, 40] cmp x0, 0 beq .L3 ldr x0, [sp, 40] strb wzr, [x0] .L3: nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size trim_right, .-trim_right .align 2 .global each_delim .type each_delim, %function each_delim: .LFB1: .cfi_startproc stp x29, x30, [sp, -80]! .cfi_def_cfa_offset 80 .cfi_offset 29, -80 .cfi_offset 30, -72 mov x29, sp strb w0, [sp, 47] str x1, [sp, 32] str x2, [sp, 24] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 72] mov x1, 0 str xzr, [sp, 56] str xzr, [sp, 64] strb wzr, [sp, 55] b .L5 .L6: ldr x0, [sp, 56] mov x1, x0 ldrb w0, [sp, 47] bl trim_right ldr x0, [sp, 56] ldr x2, [sp, 24] mov x1, x0 ldr x0, [sp, 32] blr x2 and w0, w0, 255 cmp w0, 0 beq .L5 ldr x0, [sp, 56] bl puts mov w0, 1 strb w0, [sp, 55] .L5: ldrb w2, [sp, 47] adrp x0, :got:stdin ldr x0, [x0, #:got_lo12:stdin] ldr x3, [x0] add x1, sp, 64 add x0, sp, 56 bl getdelim cmn x0, #1 bne .L6 ldr x0, [sp, 56] bl free ldrb w0, [sp, 55] 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 .L8 bl __stack_chk_fail .L8: mov w0, w1 ldp x29, x30, [sp], 80 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size each_delim, .-each_delim .section .rodata .align 3 .LC2: .string "* %s %c\n" .text .align 2 .global spec_check .type spec_check, %function spec_check: .LFB2: .cfi_startproc stp x29, x30, [sp, -176]! .cfi_def_cfa_offset 176 .cfi_offset 29, -176 .cfi_offset 30, -168 mov x29, sp strb w0, [sp, 31] str x1, [sp, 16] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 168] mov x1, 0 adrp x0, :got:lstat ldr x0, [x0, #:got_lo12:lstat] str x0, [sp, 32] adrp x0, conf add x0, x0, :lo12:conf ldrb w0, [x0, 8] cmp w0, 0 beq .L10 adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x4, [x0] ldrb w0, [sp, 31] mov w3, w0 ldr x2, [sp, 16] adrp x0, .LC2 add x1, x0, :lo12:.LC2 mov x0, x4 bl fprintf .L10: adrp x0, conf add x0, x0, :lo12:conf ldrb w0, [x0, 9] cmp w0, 0 beq .L11 adrp x0, :got:stat ldr x0, [x0, #:got_lo12:stat] str x0, [sp, 32] .L11: add x0, sp, 40 ldr x2, [sp, 32] mov x1, x0 ldr x0, [sp, 16] blr x2 cmp w0, 0 beq .L12 mov w0, 0 b .L22 .L12: ldrb w0, [sp, 31] cmp w0, 115 beq .L14 cmp w0, 115 bgt .L15 cmp w0, 112 beq .L16 cmp w0, 112 bgt .L15 cmp w0, 108 beq .L17 cmp w0, 108 bgt .L15 cmp w0, 102 beq .L18 cmp w0, 102 bgt .L15 cmp w0, 100 beq .L19 cmp w0, 100 bgt .L15 cmp w0, 98 beq .L20 cmp w0, 99 beq .L21 b .L15 .L20: ldr w0, [sp, 56] and w0, w0, 61440 cmp w0, 24576 cset w0, eq and w0, w0, 255 b .L22 .L21: ldr w0, [sp, 56] and w0, w0, 61440 cmp w0, 8192 cset w0, eq and w0, w0, 255 b .L22 .L19: ldr w0, [sp, 56] and w0, w0, 61440 cmp w0, 16384 cset w0, eq and w0, w0, 255 b .L22 .L16: ldr w0, [sp, 56] and w0, w0, 61440 cmp w0, 4096 cset w0, eq and w0, w0, 255 b .L22 .L18: ldr w0, [sp, 56] and w0, w0, 61440 cmp w0, 32768 cset w0, eq and w0, w0, 255 b .L22 .L17: ldr w0, [sp, 56] and w0, w0, 61440 cmp w0, 40960 cset w0, eq and w0, w0, 255 b .L22 .L14: ldr w0, [sp, 56] and w0, w0, 61440 cmp w0, 49152 cset w0, eq and w0, w0, 255 b .L22 .L15: mov w0, 0 .L22: 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 .L23 bl __stack_chk_fail .L23: mov w0, w1 ldp x29, x30, [sp], 176 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE2: .size spec_check, .-spec_check .align 2 .global each_char .type each_char, %function each_char: .LFB3: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] ldr x0, [sp, 16] ldrb w0, [x0] cmp w0, 0 bne .L25 mov w0, 0 b .L26 .L25: ldr x0, [sp, 24] str x0, [sp, 40] b .L27 .L28: ldr x0, [sp, 40] add x1, x0, 1 str x1, [sp, 40] ldrb w0, [x0] ldr x1, [sp, 16] bl spec_check and w0, w0, 255 cmp w0, 0 beq .L27 mov w0, 1 b .L26 .L27: ldr x0, [sp, 40] ldrb w0, [x0] cmp w0, 0 bne .L28 mov w0, 0 .L26: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE3: .size each_char, .-each_char .section .rodata .align 3 .LC3: .string "%s error: " .text .align 2 .global err .type err, %function err: .LFB4: .cfi_startproc stp x29, x30, [sp, -304]! .cfi_def_cfa_offset 304 .cfi_offset 29, -304 .cfi_offset 30, -296 mov x29, sp str x0, [sp, 56] str x1, [sp, 248] str x2, [sp, 256] str x3, [sp, 264] str x4, [sp, 272] str x5, [sp, 280] str x6, [sp, 288] str x7, [sp, 296] str q0, [sp, 112] str q1, [sp, 128] str q2, [sp, 144] str q3, [sp, 160] str q4, [sp, 176] str q5, [sp, 192] str q6, [sp, 208] str q7, [sp, 224] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 104] mov x1, 0 add x0, sp, 304 str x0, [sp, 72] add x0, sp, 304 str x0, [sp, 80] add x0, sp, 240 str x0, [sp, 88] mov w0, -56 str w0, [sp, 96] mov w0, -128 str w0, [sp, 100] adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x3, [x0] adrp x0, conf add x0, x0, :lo12:conf ldr x0, [x0, 24] mov x2, x0 adrp x0, .LC3 add x1, x0, :lo12:.LC3 mov x0, x3 bl fprintf 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 mov w0, 2 bl exit .cfi_endproc .LFE4: .size err, .-err .section .rodata .align 3 .LC4: .string "-L is -L from find(1)\n-d CHAR a custom delimiter instead of a newline\n-0 a shortcut for -d $'\\0'\n-V print the program version\n\nbcdpfls see find(1) -type option\n" .align 3 .LC5: .string "Usage: printf '%%s\\n%%s' /usr /usr/file | %s [-0L] [-d char] [bcdpfls]\n%s" .text .align 2 .global usage .type usage, %function usage: .LFB5: .cfi_startproc stp x29, x30, [sp, -16]! .cfi_def_cfa_offset 16 .cfi_offset 29, -16 .cfi_offset 30, -8 mov x29, sp adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x4, [x0] adrp x0, conf add x0, x0, :lo12:conf ldr x1, [x0, 24] adrp x0, .LC4 add x3, x0, :lo12:.LC4 mov x2, x1 adrp x0, .LC5 add x1, x0, :lo12:.LC5 mov x0, x4 bl fprintf mov w0, 2 bl exit .cfi_endproc .LFE5: .size usage, .-usage .section .rodata .align 3 .LC6: .string "vLd:0V" .text .align 2 .global parse_opt .type parse_opt, %function parse_opt: .LFB6: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str w0, [sp, 28] str x1, [sp, 16] b .L33 .L40: ldr w0, [sp, 44] cmp w0, 118 beq .L34 ldr w0, [sp, 44] cmp w0, 118 bgt .L35 ldr w0, [sp, 44] cmp w0, 100 beq .L36 ldr w0, [sp, 44] cmp w0, 100 bgt .L35 ldr w0, [sp, 44] cmp w0, 86 beq .L37 ldr w0, [sp, 44] cmp w0, 86 bgt .L35 ldr w0, [sp, 44] cmp w0, 48 beq .L38 ldr w0, [sp, 44] cmp w0, 76 beq .L39 b .L35 .L37: adrp x0, conf add x0, x0, :lo12:conf ldr x0, [x0] bl puts mov w0, 0 bl exit .L34: adrp x0, conf add x0, x0, :lo12:conf mov w1, 1 strb w1, [x0, 8] b .L33 .L39: adrp x0, conf add x0, x0, :lo12:conf mov w1, 1 strb w1, [x0, 9] b .L33 .L36: adrp x0, :got:optarg ldr x0, [x0, #:got_lo12:optarg] ldr x0, [x0] ldrb w1, [x0] adrp x0, conf add x0, x0, :lo12:conf strb w1, [x0, 10] b .L33 .L38: adrp x0, conf add x0, x0, :lo12:conf strb wzr, [x0, 10] b .L33 .L35: bl usage .L33: adrp x0, .LC6 add x2, x0, :lo12:.LC6 ldr x1, [sp, 16] ldr w0, [sp, 28] bl __posix_getopt str w0, [sp, 44] ldr w0, [sp, 44] cmn w0, #1 bne .L40 adrp x0, :got:optind ldr x0, [x0, #:got_lo12:optind] ldr w0, [x0] ldr w1, [sp, 28] cmp w1, w0 ble .L42 adrp x0, :got:optind ldr x0, [x0, #:got_lo12:optind] ldr w0, [x0] sxtw x0, w0 lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x1, [x0] adrp x0, conf add x0, x0, :lo12:conf str x1, [x0, 16] .L42: nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size parse_opt, .-parse_opt .align 2 .global re_match .type re_match, %function re_match: .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 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, 104] mov x1, 0 add x0, sp, 40 mov w2, 9 ldr x1, [sp, 24] bl regcomp cmp w0, 0 beq .L44 mov w0, 0 b .L46 .L44: add x0, sp, 40 mov w4, 0 mov x3, 0 mov x2, 0 ldr x1, [sp, 16] bl regexec str w0, [sp, 36] add x0, sp, 40 bl regfree ldr w0, [sp, 36] cmp w0, 0 cset w0, eq and w0, w0, 255 .L46: 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 .L47 bl __stack_chk_fail .L47: mov w0, w1 ldp x29, x30, [sp], 112 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size re_match, .-re_match .section .rodata .align 3 .LC7: .string "^[bcdpfls]+$" .align 3 .LC8: .string "invalid spec: %s\n" .text .align 2 .global main .type main, %function main: .LFB8: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str w0, [sp, 28] str x1, [sp, 16] ldr x0, [sp, 16] ldr x0, [x0] bl __xpg_basename mov x1, x0 adrp x0, conf add x0, x0, :lo12:conf str x1, [x0, 24] ldr x1, [sp, 16] ldr w0, [sp, 28] bl parse_opt adrp x0, conf add x0, x0, :lo12:conf ldr x0, [x0, 16] mov x1, x0 adrp x0, .LC7 add x0, x0, :lo12:.LC7 bl re_match and w0, w0, 255 eor w0, w0, 1 and w0, w0, 255 cmp w0, 0 beq .L49 adrp x0, conf add x0, x0, :lo12:conf ldr x0, [x0, 16] mov x1, x0 adrp x0, .LC8 add x0, x0, :lo12:.LC8 bl err .L49: adrp x0, conf add x0, x0, :lo12:conf ldrb w3, [x0, 10] adrp x0, conf add x0, x0, :lo12:conf ldr x1, [x0, 16] adrp x0, each_char add x2, x0, :lo12:each_char mov w0, w3 bl each_delim and w0, w0, 255 eor w0, w0, 1 and w0, w0, 255 ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE8: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global Prefix .type Prefix, %function Prefix: .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 x1, [sp, 16] ldr x0, [sp, 24] bl strlen str w0, [sp, 44] str wzr, [sp, 40] ldr x0, [sp, 16] ldr w1, [sp, 40] str w1, [x0] mov w0, 1 str w0, [sp, 36] b .L2 .L5: ldrsw x0, [sp, 40] lsl x0, x0, 2 sub x0, x0, #4 ldr x1, [sp, 16] add x0, x1, x0 ldr w0, [x0] str w0, [sp, 40] .L3: ldr w0, [sp, 40] cmp w0, 0 ble .L4 ldrsw x0, [sp, 40] ldr x1, [sp, 24] add x0, x1, x0 ldrb w1, [x0] ldrsw x0, [sp, 36] ldr x2, [sp, 24] add x0, x2, x0 ldrb w0, [x0] cmp w1, w0 bne .L5 .L4: ldrsw x0, [sp, 40] ldr x1, [sp, 24] add x0, x1, x0 ldrb w1, [x0] ldrsw x0, [sp, 36] ldr x2, [sp, 24] add x0, x2, x0 ldrb w0, [x0] cmp w1, w0 bne .L6 ldr w0, [sp, 40] add w0, w0, 1 str w0, [sp, 40] .L6: ldrsw x0, [sp, 36] lsl x0, x0, 2 ldr x1, [sp, 16] add x0, x1, x0 ldr w1, [sp, 40] str w1, [x0] ldr w0, [sp, 36] add w0, w0, 1 str w0, [sp, 36] .L2: ldr w1, [sp, 36] ldr w0, [sp, 44] cmp w1, w0 blt .L3 nop nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size Prefix, .-Prefix .align 2 .global Rec .type Rec, %function Rec: .LFB7: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x0, [sp, 40] str w1, [sp, 36] str w2, [sp, 32] str w3, [sp, 28] str x4, [sp, 16] str wzr, [sp, 56] ldrsw x0, [sp, 28] lsl x0, x0, 2 ldr x1, [sp, 16] add x0, x1, x0 ldr w1, [x0] add w1, w1, 1 str w1, [x0] ldr w0, [sp, 36] sub w0, w0, #1 ldr w1, [sp, 32] cmp w1, w0 bne .L9 str wzr, [sp, 52] b .L10 .L13: ldrsw x0, [sp, 52] lsl x0, x0, 2 ldr x1, [sp, 16] add x0, x1, x0 ldr w0, [x0] cmp w0, 0 bne .L11 ldrsw x0, [sp, 28] lsl x0, x0, 2 ldr x1, [sp, 16] add x0, x1, x0 ldr w1, [x0] sub w1, w1, #1 str w1, [x0] ldrsw x0, [sp, 28] lsl x0, x0, 3 ldr x1, [sp, 40] add x0, x1, x0 ldr x1, [x0] ldrsw x0, [sp, 52] lsl x0, x0, 2 add x0, x1, x0 ldr w0, [x0] b .L12 .L11: ldr w0, [sp, 52] add w0, w0, 1 str w0, [sp, 52] .L10: ldr w1, [sp, 52] ldr w0, [sp, 36] cmp w1, w0 blt .L13 .L9: str wzr, [sp, 52] b .L14 .L16: ldrsw x0, [sp, 52] lsl x0, x0, 2 ldr x1, [sp, 16] add x0, x1, x0 ldr w0, [x0] cmp w0, 0 bne .L15 ldr w0, [sp, 32] add w0, w0, 1 ldr x4, [sp, 16] ldr w3, [sp, 52] mov w2, w0 ldr w1, [sp, 36] ldr x0, [sp, 40] bl Rec mov w2, w0 ldrsw x0, [sp, 28] lsl x0, x0, 3 ldr x1, [sp, 40] add x0, x1, x0 ldr x1, [x0] ldrsw x0, [sp, 52] lsl x0, x0, 2 add x0, x1, x0 ldr w0, [x0] add w0, w2, w0 str w0, [sp, 60] ldr w1, [sp, 60] ldr w0, [sp, 56] cmp w1, w0 ble .L15 ldr w0, [sp, 60] str w0, [sp, 56] .L15: ldr w0, [sp, 52] add w0, w0, 1 str w0, [sp, 52] .L14: ldr w1, [sp, 52] ldr w0, [sp, 36] cmp w1, w0 blt .L16 ldrsw x0, [sp, 28] lsl x0, x0, 2 ldr x1, [sp, 16] add x0, x1, x0 ldr w1, [x0] sub w1, w1, #1 str w1, [x0] ldr w0, [sp, 56] .L12: ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size Rec, .-Rec .align 2 .global Max .type Max, %function Max: .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, 48] ldrsw x0, [sp, 20] mov x1, 8 bl calloc str x0, [sp, 56] str wzr, [sp, 44] b .L18 .L20: ldr x4, [sp, 56] ldr w3, [sp, 44] mov w2, 1 ldr w1, [sp, 20] ldr x0, [sp, 24] bl Rec str w0, [sp, 52] ldr w1, [sp, 52] ldr w0, [sp, 48] cmp w1, w0 ble .L19 ldr w0, [sp, 52] str w0, [sp, 48] .L19: ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L18: ldr w1, [sp, 44] ldr w0, [sp, 20] cmp w1, w0 blt .L20 ldr x0, [sp, 56] bl free ldr w0, [sp, 48] ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE8: .size Max, .-Max .section .rodata .align 3 .LC0: .string "%d%*c" .align 3 .LC1: .string "%d" .text .align 2 .global main .type main, %function main: .LFB9: .cfi_startproc stp x29, x30, [sp, -96]! .cfi_def_cfa_offset 96 .cfi_offset 29, -96 .cfi_offset 30, -88 mov x29, sp str x19, [sp, 16] .cfi_offset 19, -80 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 88] mov x1, 0 mov x0, 4096 bl malloc str x0, [sp, 56] str wzr, [sp, 52] mov x0, 1024 bl malloc str x0, [sp, 64] add x0, sp, 40 mov x1, x0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl __isoc99_scanf ldr w0, [sp, 40] sxtw x0, w0 lsl x0, x0, 3 bl malloc str x0, [sp, 72] ldr w0, [sp, 40] sxtw x0, w0 lsl x0, x0, 3 bl malloc str x0, [sp, 80] str wzr, [sp, 44] b .L23 .L24: ldrsw x0, [sp, 44] lsl x0, x0, 3 ldr x1, [sp, 80] add x19, x1, x0 mov x0, 512 bl malloc str x0, [x19] ldr w0, [sp, 40] sxtw x2, w0 ldrsw x0, [sp, 44] lsl x0, x0, 3 ldr x1, [sp, 72] add x19, x1, x0 mov x1, 4 mov x0, x2 bl calloc str x0, [x19] ldrsw x0, [sp, 44] lsl x0, x0, 3 ldr x1, [sp, 80] add x0, x1, x0 ldr x0, [x0] bl gets ldrsw x0, [sp, 44] lsl x0, x0, 3 ldr x1, [sp, 80] add x0, x1, x0 ldr x0, [x0] bl strlen mov w1, w0 ldr w0, [sp, 52] add w0, w1, w0 str w0, [sp, 52] ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L23: ldr w0, [sp, 40] ldr w1, [sp, 44] cmp w1, w0 blt .L24 str wzr, [sp, 44] b .L25 .L28: ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 48] b .L26 .L27: ldrsw x0, [sp, 44] lsl x0, x0, 3 ldr x1, [sp, 80] add x0, x1, x0 ldr x0, [x0] mov x1, x0 ldr x0, [sp, 64] bl strcpy ldr x0, [sp, 64] bl strlen mov x1, x0 ldr x0, [sp, 64] add x0, x0, x1 mov w1, 32 strh w1, [x0] ldrsw x0, [sp, 48] lsl x0, x0, 3 ldr x1, [sp, 80] add x0, x1, x0 ldr x0, [x0] mov x1, x0 ldr x0, [sp, 64] bl strcat ldr x1, [sp, 56] ldr x0, [sp, 64] bl Prefix ldr x0, [sp, 64] bl strlen lsl x0, x0, 2 sub x0, x0, #4 ldr x1, [sp, 56] add x1, x1, x0 ldrsw x0, [sp, 48] lsl x0, x0, 3 ldr x2, [sp, 72] add x0, x2, x0 ldr x2, [x0] ldrsw x0, [sp, 44] lsl x0, x0, 2 add x0, x2, x0 ldr w1, [x1] str w1, [x0] ldrsw x0, [sp, 48] lsl x0, x0, 3 ldr x1, [sp, 80] add x0, x1, x0 ldr x0, [x0] mov x1, x0 ldr x0, [sp, 64] bl strcpy ldr x0, [sp, 64] bl strlen mov x1, x0 ldr x0, [sp, 64] add x0, x0, x1 mov w1, 32 strh w1, [x0] ldrsw x0, [sp, 44] lsl x0, x0, 3 ldr x1, [sp, 80] add x0, x1, x0 ldr x0, [x0] mov x1, x0 ldr x0, [sp, 64] bl strcat ldr x1, [sp, 56] ldr x0, [sp, 64] bl Prefix ldr x0, [sp, 64] bl strlen lsl x0, x0, 2 sub x0, x0, #4 ldr x1, [sp, 56] add x1, x1, x0 ldrsw x0, [sp, 44] lsl x0, x0, 3 ldr x2, [sp, 72] add x0, x2, x0 ldr x2, [x0] ldrsw x0, [sp, 48] lsl x0, x0, 2 add x0, x2, x0 ldr w1, [x1] str w1, [x0] ldr w0, [sp, 48] add w0, w0, 1 str w0, [sp, 48] .L26: ldr w0, [sp, 40] ldr w1, [sp, 48] cmp w1, w0 blt .L27 ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L25: ldr w0, [sp, 40] ldr w1, [sp, 44] cmp w1, w0 blt .L28 ldr w0, [sp, 40] mov w1, w0 ldr x0, [sp, 72] bl Max mov w1, w0 ldr w0, [sp, 52] sub w0, w0, w1 mov w1, w0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf str wzr, [sp, 44] b .L29 .L30: ldrsw x0, [sp, 44] lsl x0, x0, 3 ldr x1, [sp, 72] add x0, x1, x0 ldr x0, [x0] bl free ldrsw x0, [sp, 44] lsl x0, x0, 3 ldr x1, [sp, 80] add x0, x1, x0 ldr x0, [x0] bl free ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L29: ldr w0, [sp, 40] ldr w1, [sp, 44] cmp w1, w0 blt .L30 ldr x0, [sp, 72] bl free ldr x0, [sp, 64] bl free ldr x0, [sp, 80] bl free ldr x0, [sp, 56] 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, 88] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L32 bl __stack_chk_fail .L32: 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 .LFE9: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .ascii "GNU GENERAL PUBLIC LICENSE\nVersion 3, 29 June 2007\n\nCopyr" .ascii "ight (C) 2007 Free Software Foundation, Inc. <http://fsf.org" .ascii "/>\nEveryone is permitted to copy and distribute verbatim co" .ascii "pies\nof this license document, but changing it is not allow" .ascii "ed.\n\nPreamble\n\nThe GNU General Public License is a free," .ascii " copyleft license for\nsoftware and other kinds of works.\n\n" .ascii "The licenses for most software and other practical works are" .ascii " designed\nto take away your freedom to share and change the" .ascii " works. By contrast,\nthe GNU General Public License is int" .ascii "ended to guarantee your freedom to\nshare and change all ver" .ascii "sions of a program--to make sure it remains free\nsoftware f" .ascii "or all its users. We, the Free Software Foundation, use the" .ascii "\nGNU General Public License for most of our software; it ap" .ascii "plies also to\nany other work released this way by its autho" .ascii "rs. You can apply it to\nyour programs, too.\n\nWhen we spe" .ascii "ak of free software, we are referring to freedom, not\nprice" .ascii ". Our General Public Licenses are designed to make sure tha" .ascii "t you\nhave the freedom to distribute copies of free softwar" .ascii "e (and charge for\nthem if you wish), that you receive sourc" .ascii "e code or can get it if you\nwant it, that you can change th" .ascii "e software or use pieces of it in new\nfree programs, and th" .ascii "at you know you can do these things.\n\nTo protect your righ" .ascii "ts, we need to prevent others from denying you\nthese rights" .ascii " or asking you to surrender the rights. Therefore, you have" .ascii "\ncertain responsibilities if you distribute copies of the s" .ascii "oftware, or if\nyou modify it: responsibilities to respect t" .ascii "he freedom of others.\n\nFor example, if you distribute copi" .ascii "es of such a program, whether\ngratis or for a fee, you must" .ascii " pass on to the recipients the same\nfreedoms that you recei" .ascii "ved. You must make sure that they, too, receive\nor can get" .ascii " the source code. And you must show them these terms so the" .ascii "y\nknow their rights.\n\nDevelopers that use the GNU GPL pro" .ascii "tect your rights with two steps:\n(1) assert copyright on th" .ascii "e software, and (2) offer you this License\ngiving you legal" .ascii " permission to copy, distribute and/or modify it.\n\nFor the" .ascii " developers' and authors' protection, the GPL clearly explai" .ascii "ns\nthat there is no warranty for this free software. For b" .ascii "oth users' and\nauthors' sake, the GPL requires that modifie" .ascii "d versions be marked as\nchanged, so that their problems wil" .ascii "l not be attributed erroneously to\nauthors of previous vers" .ascii "ions.\n\nSome devices are designed to deny users access to i" .ascii "nstall or run\nmodified versions of the software inside them" .ascii ", although the manufacturer\ncan do so. This is fundamental" .ascii "ly incompatible with the aim of\nprotecting users' freedom t" .ascii "o change the software. The systematic\npattern of such abus" .ascii "e occurs in the area of products for individuals to\nuse, wh" .ascii "ich is precisely where it is most unacceptable. Therefore, " .ascii "we\nhave designed this version of the GPL to prohibit the pr" .ascii "actice for those\nproducts. If such problems arise substant" .ascii "ially in other domains, we\nstand ready to extend this provi" .ascii "sion to those domains in future versions\nof the GPL, as nee" .ascii "ded to protect the freedom of users.\n\nFinally, every progr" .ascii "am is threatened constantly by software patents.\nStates sho" .ascii "uld not allow patents to restrict development and use of\nso" .ascii "ftware on general-purpose computers, but in those that do, w" .ascii "e wish to\navoid the special danger that patents applied to " .ascii "a free program could\nmake it effectively proprietary. To p" .ascii "revent this, the GPL assures that\npatents cannot be used to" .ascii " render the program non-free.\n\nThe precise terms and condi" .ascii "tions for copying, distribution and\nmodification follow.\n\n" .ascii "TERMS AND CONDITIONS\n\n0. Definitions.\n\n\"This License\" " .ascii "refers to version 3 of the GNU General Public License.\n\n\"" .ascii "Copyright\" also means copyright-like laws that apply to oth" .ascii "er kinds of\nworks, such as semiconductor masks.\n\n\"The Pr" .ascii "ogram\" refers to any copyrightable work licensed under this" .ascii "\nLicense. Each licensee is addressed as \"you\". \"Licens" .ascii "ees\" and\n\"recipients\" may be individuals or organization" .ascii "s.\n\nTo \"modify\" a work means to copy from or adapt all o" .ascii "r part of the w" .ascii "ork\nin a fashion requiring copyright permission, other than" .ascii " the making of an\nexact copy. The resulting work is called" .ascii " a \"modified version\" of the\nearlier work or a work \"bas" .ascii "ed on\" the earlier work.\n\nA \"covered work\" means either" .ascii " the unmodified Program or a work based\non the Program.\n\n" .ascii "To \"propagate\" a work means to do anything with it that, w" .ascii "ithout\npermission, would make you directly or secondarily l" .ascii "iable for\ninfringement under applicable copyright law, exce" .ascii "pt executing it on a\ncomputer or modifying a private copy. " .ascii " Propagation includes copying,\ndistribution (with or withou" .ascii "t modification), making available to the\npublic, and in som" .ascii "e countries other activities as well.\n\nTo \"convey\" a wor" .ascii "k means any kind of propagation that enables other\nparties " .ascii "to make or receive copies. Mere interaction with a user thr" .ascii "ough\na computer network, with no transfer of a copy, is not" .ascii " conveying.\n\nAn interactive user interface displays \"Appr" .ascii "opriate Legal Notices\"\nto the extent that it includes a co" .ascii "nvenient and prominently visible\nfeature that (1) displays " .ascii "an appropriate copyright notice, and (2)\ntells the user tha" .ascii "t there is no warranty for the work (except to the\nextent t" .ascii "hat warranties are provided), that licensees may convey the\n" .ascii "work under this License, and how to view a copy of this Lice" .ascii "nse. If\nthe interface presents a list of user commands or " .ascii "options, such as a\nmenu, a prominent item in the list meets" .ascii " this criterion.\n\n1. Source Code.\n\nThe \"source code\" f" .ascii "or a work means the preferred form of the work\nfor making m" .ascii "odifications to it. \"Object code\" means any non-source\nf" .ascii "orm of a work.\n\nA \"Standard Interface\" means an interfac" .ascii "e that either is an official\nstandard defined by a recogniz" .ascii "ed standards body, or, in the case of\ninterfaces specified " .ascii "for a particular programming language, one that\nis widely u" .ascii "sed among developers working in that language.\n\nThe \"Syst" .ascii "em Libraries\" of an executable work include anything, other" .ascii "\nthan the work as a whole, that (a) is included in the norm" .ascii "al form of\npackagin" .ascii "g a Major Component, but which is not part of that Major\nCo" .ascii "mponent, and (b) serves only to enable use of the work with " .ascii "that\nMajor Component, or to implement a Standard Interface " .ascii "for which an\nimplementation is available to the public in s" .ascii "ource code form. A\n\"Major Component\", in this context, m" .ascii "eans a major essential component\n(kernel, window system, an" .ascii "d so on) of the specific operating system\n(if any) on which" .ascii " the executable work runs, or a compiler used to\nproduce th" .ascii "e work, or an object code interpreter used to run it.\n\nThe" .ascii " \"Corresponding Source\" for a work in object code form mea" .ascii "ns all\nthe source code needed to generate, install, and (fo" .ascii "r an executable\nwork) run the object code and to modify the" .ascii " work, including scripts to\ncontrol those activities. Howe" .ascii "ver, it does not include the work's\nSystem Libraries, or ge" .ascii "neral-purpose tools or generally available free\nprograms wh" .ascii "ich are used unmodified in performing those activities but\n" .ascii "which are not part of the work. For example, Corresponding " .ascii "Source\nincludes interface definition files associated with " .ascii "source files for\nthe work, and the source code for shared l" .ascii "ibraries and dynamically\nlinked subprograms that the work i" .ascii "s specifically designed to require,\nsuch as by intimate dat" .ascii "a communication or control flow between those\nsubprograms a" .ascii "nd other parts of the work.\n\nThe Corresponding Source need" .ascii " not include anything that users\ncan regenerate automatical" .ascii "ly from other parts of the Corresponding\nSource.\n\nThe Cor" .ascii "responding Source for a work in source code form is that\nsa" .ascii "me work.\n\n2. Basic Permissions.\n\nAll rights granted unde" .ascii "r this License are granted for the term of\ncopyright on the" .ascii " Program, and are irrevocable provided the stated\ncondition" .ascii "s are met. This License explicitly affirms your unlimited\n" .ascii "permission to run the unmodified Program. The output from r" .ascii "unning a\ncovered work is covered by this License only if th" .ascii "e output, given its\ncontent, constitutes a covered work. T" .ascii "his License acknowledges your\nrights of fair use or other e" .ascii "q" .ascii "uivalent, as provided by copyright law.\n\nYou may make, run" .ascii " and propagate covered works that you do not\nconvey, withou" .ascii "t conditions so long as your license otherwise remains\nin f" .ascii "orce. You may convey covered works to others for the sole p" .ascii "urpose\nof having them make modifications exclusively for yo" .ascii "u, or provide you\nwith facilities for running those works, " .ascii "provided that you comply with\nthe terms of this License in " .ascii "conveying all material for which you do\nnot control copyrig" .ascii "ht. Those thus making or running the covered works\nfor you" .ascii " must do so exclusively on your behalf, under your direction" .ascii "\nand control, on terms that prohibit them from making any c" .ascii "opies of\nyour copyrighted material outside their relationsh" .ascii "ip with you.\n\nConveying under any other circumstances is p" .ascii "ermitted solely under\nthe conditions stated below. Sublice" .ascii "nsing is not allowed; section 10\nmakes it unnecessary.\n\n3" .ascii ". Protecting Users' Legal Rights From Anti-Circumvention Law" .ascii ".\n\nNo covered work shall be deemed part of an effective te" .ascii "chnological\nmeasure under any applicable law fulfilling obl" .ascii "igations under article\n11 of the WIPO copyright treaty adop" .ascii "ted on 20 December 1996, or\nsimilar laws prohibiting or res" .ascii "tricting circumvention of such\nmeasures.\nWhen you convey a" .ascii " covered work, you waive any legal power to forbid\ncircumve" .ascii "ntion of technological measures to the extent such circumven" .ascii "tion\nis effected by exercising rights under this License wi" .ascii "th respect to\nthe covered work, and you disclaim any intent" .ascii "ion to limit operation or\nmodification of the work as a mea" .ascii "ns of enforcing, against the work's\nusers, your or third pa" .ascii "rties' legal rights to forbid circumvention of\ntechnologica" .ascii "l measures.\n\n4. Conveying Verbatim Copies.\n\nYou may conv" .ascii "ey verbatim copies of the Program's source code as you\nrece" .ascii "ive it, in any medium, provided that you conspicuously and\n" .ascii "appropriately publish on each copy an appropriate copyright " .ascii "notice;\nkeep intact all notices stating that this License a" .ascii "nd any\nnon-permissive terms added in accord with section " .ascii "7 apply to the code;\nkeep intact all notices of the absence" .ascii " of any warranty; and give all\nrecipients a copy of this Li" .ascii "cense along with the Program.\n\nYou may charge any price or" .ascii " no price for each copy that you convey,\nand you may offer " .ascii "support or warranty protection for a fee.\n\n5. Conveying Mo" .ascii "dified Source Versions.\n\nYou may convey a work based on th" .ascii "e Program, or the modifications to\nproduce it from the Prog" .ascii "ram, in the form of source code under the\nterms of section " .ascii "4, provided that you also meet all of these conditions:\n\n " .ascii " a) The work must carry prominent notices stating that you" .ascii " modified\n it, and giving a relevant date.\n\n b) The" .ascii " work must carry prominent notices stating that it is\n r" .ascii "eleased under this License and any conditions added under se" .ascii "ction\n 7. This requirement modifies the requirement in " .ascii "section 4 to\n \"keep intact all notices\".\n\n c) You" .ascii " must license the entire work, as a whole, under this\n L" .ascii "icense to anyone who comes into possession of a copy. This\n" .ascii " License will therefore apply, along with any applicable " .ascii "section 7\n additional terms, to the whole of the work, a" .ascii "nd all its parts,\n regardless of how they are packaged. " .ascii " This License gives no\n permission to license the work i" .ascii "n any other way, but it does not\n invalidate such permis" .ascii "sion if you have separately received it.\n\n d) If the wor" .ascii "k has interactive user interfaces, each must display\n Ap" .ascii "propriate Legal Notices; however, if the Program has interac" .ascii "tive\n interfaces that do not display Appropriate Legal N" .ascii "otices, your\n work need not make them do so.\n\nA compil" .ascii "ation of a covered work with other separate and independent\n" .ascii "works, which are not by their nature extensions of the cover" .ascii "ed work,\nand which are not combined with it such as to form" .ascii " a larger program,\nin or on a volume of a storage or distri" .ascii "bution medium, is called an\n\"aggregate\" if the compilatio" .ascii "n and its resulting copyright are not\nused to limit the acc" .ascii "ess or legal rights of the compilation's users\nbeyond what " .ascii "th" .ascii "e individual works permit. Inclusion of a covered work\nin " .ascii "an aggregate does not cause this License to apply to the oth" .ascii "er\nparts of the aggregate.\n\n6. Conveying Non-Source Forms" .ascii ".\n\nYou may convey a covered work in object code form under" .ascii " the terms\nof sections 4 and 5, provided that you also conv" .ascii "ey the\nmachine-readable Corresponding Source under the term" .ascii "s of this License,\nin one of these ways:\n\n a) Convey t" .ascii "he object code in, or embodied in, a physical product\n (" .ascii "including a physical distribution medium), accompanied by th" .ascii "e\n Corresponding Source fixed on a durable physical medi" .ascii "um\n customarily used for software interchange.\n\n b)" .ascii " Convey the object code in, or embodied in, a physical produ" .ascii "ct\n (including a physical distribution medium), accompan" .ascii "ied by a\n written offer, valid for at least three years " .ascii "and valid for as\n long as you offer spare parts or custo" .ascii "mer support for that product\n model, to give anyone who " .ascii "possesses the object code either (1) a\n copy of the Corr" .ascii "esponding Source for all the software in the\n product th" .ascii "at is covered by this License, on a durable physical\n me" .ascii "dium customarily used for software interchange, for a price " .ascii "no\n more than your reasonable cost of physically perform" .ascii "ing this\n conveying of source, or (2) access to copy the" .ascii "\n Corresponding Source from a network server at no charg" .ascii "e.\n\n c) Convey individual copies of the object code wit" .ascii "h a copy of the\n written offer to provide the Correspond" .ascii "ing Source. This\n alternative is allowed only occasiona" .ascii "lly and noncommercially, and\n only if you received the o" .ascii "bject code with such an offer, in accord\n with subsectio" .ascii "n 6b.\n\n d) Convey the object code by offering access fr" .ascii "om a designated\n place (gratis or for a charge), and off" .ascii "er equivalent access to the\n Corresponding Source in the" .ascii " same way through the same place at no\n further charge. " .ascii " You need not require recipients to copy the\n Correspond" .ascii "ing Source along with the object code. If the place to\n " .ascii " copy the object code is a network server, the Correspondin" .ascii "g Source\n may be on a different server (operated by you " .ascii "or a third party)\n that supports equivalent copying faci" .ascii "lities, provided you maintain\n clear directions next to " .ascii "the object code saying where to find the\n Corresponding " .ascii "Source. Regardless of what server hosts the\n Correspond" .ascii "ing Source, you remain obligated to ensure that it is\n a" .ascii "vailable for as long as needed to satisfy these requirements" .ascii ".\n\n e) Convey the object code using peer-to-peer transm" .ascii "ission, provided\n you inform other peers where the objec" .ascii "t code and Corresponding\n Source of the work are being o" .ascii "ffered to the general public at no\n charge under subsect" .ascii "ion 6d.\n\nA separable portion of the object code, whose sou" .ascii "rce code is excluded\nfrom the Corresponding Source as a Sys" .ascii "tem Library, need not be\nincluded in conveying the object c" .ascii "ode work.\n\nA \"User Product\" is either (1) a \"consumer p" .ascii "roduct\", which means any\ntangible personal property which " .ascii "is normally used for personal, family,\nor household purpose" .ascii "s, or (2) anything designed or sold for incorporation\ninto " .ascii "a dwelling. In determining whether a product is a consumer " .ascii "product,\ndoubtful cases shall be resolved in favor of cover" .ascii "age. For a particular\nproduct received by a particular use" .ascii "r, \"normally used\" refers to a\ntypical or common use of t" .ascii "hat class of product, regardless of the status\nof the parti" .ascii "cular user or of the way in which the particular user\nactua" .ascii "lly uses, or expects or is expected to use, the product. A " .ascii "product\nis a consumer product regardless of whether the pro" .ascii "duct has substantial\ncommercial, industrial or non-consumer" .ascii " uses, unless such uses represent\nthe only significant mode" .ascii " of use of the product.\n\n\"Installation Information\" for " .ascii "a User Product means any methods,\nprocedures, authorization" .ascii " keys, or other information required to install\nand execute" .ascii " modified versions of a covered work in that User Product fr" .ascii "om\na modified version of its Corresponding Source. The inf" .ascii "o" .ascii "rmation must\nsuffice to ensure that the continued functioni" .ascii "ng of the modified object\ncode is in no case prevented or i" .ascii "nterfered with solely because\nmodification has been made.\n" .ascii "\nIf you convey an object code work under this section in, o" .ascii "r with, or\nspecifically for use in, a User Product, and the" .ascii " conveying occurs as\npart of a transaction in which the rig" .ascii "ht of possession and use of the\nUser Product is transferred" .ascii " to the recipient in perpetuity or for a\nfixed term (regard" .ascii "less of how the transaction is characterized), the\nCorrespo" .ascii "nding Source conveyed under this section must be accompanied" .ascii "\nby the Installation Information. But this requirement doe" .ascii "s not apply\nif neither you nor any third party retains the " .ascii "ability to install\nmodified object code on the User Product" .ascii " (for example, the work has\nbeen installed in ROM).\n\nThe " .ascii "requirement to provide Installation Information does not inc" .ascii "lude a\nrequirement to continue to provide support service, " .ascii "warranty, or updates\nfor a work that has been modified or i" .ascii "nstalled by the recipient, or for\nthe User Product in which" .ascii " it has been modified or installed. Access to a\nnetwork ma" .ascii "y be denied when the modification itself materially and\nadv" .ascii "ersely affects the operation of the network or violates the " .ascii "rules and\nprotocols for communication across the network.\n" .ascii "\nCorresponding Source conveyed, and Installation Informatio" .ascii "n provided,\nin accord with this section must be in a format" .ascii " that is publicly\ndocumented (and with an implementation av" .ascii "ailable to the public in\nsource code form), and must requir" .ascii "e no special password or key for\nunpacking, reading or copy" .ascii "ing.\n\n7. Additional Terms.\n\n\"Additional permissions\" a" .ascii "re terms that supplement the terms of this\nLicense by makin" .ascii "g exceptions from one or more of its conditions.\nAdditional" .ascii " permissions that are applicable to the entire Program shall" .ascii "\nbe treated as though they were included in this License, t" .ascii "o the extent\nthat they are valid under applicable law. If " .ascii "additional permissions\napply only to part of the Program, " .ascii "that part may be used separately\nunder those permissions, b" .ascii "ut the entire Program remains governed by\nthis License with" .ascii "out regard to the additional permissions.\n\nWhen you convey" .ascii " a copy of a covered work, you may at your option\nremove an" .ascii "y additional permissions from that copy, or from any part of" .ascii "\nit. (Additional permissions may be written to require the" .ascii "ir own\nremoval in certain cases when you modify the work.) " .ascii " You may place\nadditional permissions on material, added by" .ascii " you to a covered work,\nfor which you have or can give appr" .ascii "opriate copyright permission.\n\nNotwithstanding any other p" .ascii "rovision of this License, for material you\nadd to a covered" .ascii " work, you may (if authorized by the copyright holders of\nt" .ascii "hat material) supplement the terms of this License with term" .ascii "s:\n\n a) Disclaiming warranty or limiting liability diff" .ascii "erently from the\n terms of sections 15 and 16 of this Li" .ascii "cense; or\n\n b) Requiring preservation of specified reas" .ascii "onable legal notices or\n author attributions in that mat" .ascii "erial or in the Appropriate Legal\n Notices displayed by " .ascii "works containing it; or\n\n c) Prohibiting misrepresentat" .ascii "ion of the origin of that material, or\n requiring that m" .ascii "odified versions of such material be marked in\n reasonab" .ascii "le ways as different from the original version; or\n\n d)" .ascii " Limiting the use for publicity purposes of names of licenso" .ascii "rs or\n authors of the material; or\n\n e) Declining t" .ascii "o grant rights under trademark law for use of some\n trad" .ascii "e names, trademarks, or service marks; or\n\n f) Requirin" .ascii "g indemnification of licensors and authors of that\n mate" .ascii "rial by anyone who conveys the material (or modified version" .ascii "s of\n it) with contractual assumptions of liability to t" .ascii "he recipient, for\n any liability that these contractual " .ascii "assumptions directly impose on\n those licensors and auth" .ascii "ors.\n\nAll other non-permissive additional terms are consid" .ascii "ered \"further\nrestrictions\" within the meaning of section" .ascii " 10. If the Program as you\nreceived it, or any part of it," .ascii " c" .ascii "ontains a notice stating that it is\ngoverned by this Licens" .ascii "e along with a term that is a further\nrestriction, you may " .ascii "remove that term. If a license document contains\na further" .ascii " restriction but permits relicensing or conveying under this" .ascii "\nLicense, you may add to a covered work material governed b" .ascii "y the terms\nof that license document, provided that the fur" .ascii "ther restriction does\nnot survive such relicensing or conve" .ascii "ying.\n\nIf you add terms to a covered work in accord with t" .ascii "his section, you\nmust place, in the relevant source files, " .ascii "a statement of the\nadditional terms that apply to those fil" .ascii "es, or a notice indicating\nwhere to find the applicable ter" .ascii "ms.\n\nAdditional terms, permissive or non-permissive, may b" .ascii "e stated in the\nform of a separately written license, or st" .ascii "ated as exceptions;\nthe above requirements apply either way" .ascii ".\n\n8. Termination.\n\nYou may not propagate or modify a co" .ascii "vered work except as expressly\nprovided under this License." .ascii " Any attempt otherwise to propagate or\nmodify it is void, " .ascii "and will automatically terminate your rights under\nthis Lic" .ascii "ense (including any patent licenses granted under the third\n" .ascii "paragraph of section 11).\n\nHowever, if you cease all viola" .ascii "tion of this License, then your\nlicense from a particular c" .ascii "opyright holder is reinstated (a)\nprovisionally, unless and" .ascii " until the copyright holder explicitly and\nfinally terminat" .ascii "es your license, and (b) permanently, if the copyright\nhold" .ascii "er fails to notify you of the violation by some reasonable m" .ascii "eans\nprior to 60 days after the cessation.\n\nMoreover, you" .ascii "r license from a particular copyright holder is\nreinstated " .ascii "permanently if the copyright holder notifies you of the\nvio" .ascii "lation by some reasonable means, this is the first time you " .ascii "have\nreceived notice of violation of this License (for any " .ascii "work) from that\ncopyright holder, and you cure the violatio" .ascii "n prior to 30 days after\nyour receipt of the notice.\n\nTer" .ascii "mination of your rights under this section does not terminat" .ascii "e the\nlicenses of parties who have received copies or righ" .ascii "ts from you under\nthis License. If your rights have been t" .ascii "erminated and not permanently\nreinstated, you do not qualif" .ascii "y to receive new licenses for the same\nmaterial under secti" .ascii "on 10.\n\n9. Acceptance Not Required for Having Copies.\n\nY" .ascii "ou are not required to accept this License in order to recei" .ascii "ve or\nrun a copy of the Program. Ancillary propagation of " .ascii "a covered work\noccurring solely as a consequence of using p" .ascii "eer-to-peer transmission\nto receive a copy likewise does no" .ascii "t require acceptance. However,\nnothing other than this Lic" .ascii "ense grants you permission to propagate or\nmodify any cover" .ascii "ed work. These actions infringe copyright if you do\nnot ac" .ascii "cept this License. Therefore, by modifying or propagating a" .ascii "\ncovered work, you indicate your acceptance of this License" .ascii " to do so.\n\n10. Automatic Licensing of Downstream Recipien" .ascii "ts.\n\nEach time you convey a covered work, the recipient au" .ascii "tomatically\nreceives a license from the original licensors," .ascii " to run, modify and\npropagate that work, subject to this Li" .ascii "cense. You are not responsible\nfor enforcing compliance by" .ascii " third parties with this License.\n\nAn \"entity transaction" .ascii "\" is a transaction transferring control of an\norganization" .ascii ", or substantially all assets of one, or subdividing an\norg" .ascii "anization, or merging organizations. If propagation of a co" .ascii "vered\nwork results from an entity transaction, each party t" .ascii "o that\ntransaction who receives a copy of the work also rec" .ascii "eives whatever\nlicenses to the work the party's predecessor" .ascii " in interest had or could\ngive under the previous paragraph" .ascii ", plus a right to possession of the\nCorresponding Source of" .ascii " the work from the predecessor in interest, if\nthe predeces" .ascii "sor has it or can get it with reasonable efforts.\n\nYou may" .ascii " not impose any further restrictions on the exercise of the\n" .ascii "rights granted or affirmed under this License. For example," .ascii " you may\nnot impose a license fee, royalty, or other charge" .ascii " for exercise of\nrights granted under this License, and you" .ascii " may not initiate litigation\n(including a cross-claim or " .ascii "counterclaim in a lawsuit) alleging that\nany patent claim i" .ascii "s infringed by making, using, selling, offering for\nsale, o" .ascii "r importing the Program or any portion of it.\n\n11. Patents" .ascii ".\n\nA \"contributor\" is a copyright holder who authorizes " .ascii "use under this\nLicense of the Program or a work on which th" .ascii "e Program is based. The\nwork thus licensed is called the c" .ascii "ontributor's \"contributor version\".\n\nA contributor's \"e" .ascii "ssential patent claims\" are all patent claims\nowned or con" .ascii "trolled by the contributor, whether already acquired or\nher" .ascii "eafter acquired, that would be infringed by some manner, per" .ascii "mitted\nby this License, of making, using, or selling its co" .ascii "ntributor version,\nbut do not include claims that would be " .ascii "infringed only as a\nconsequence of further modification of " .ascii "the contributor version. For\npurposes of this definition, " .ascii "\"control\" includes the right to grant\npatent sublicenses " .ascii "in a manner consistent with the requirements of\nthis Licens" .ascii "e.\n\nEach contributor grants you a non-exclusive, worldwide" .ascii ", royalty-free\npatent license under the contributor's essen" .ascii "tial patent claims, to\nmake, use, sell, offer for sale, imp" .ascii "ort and otherwise run, modify and\npropagate the contents of" .ascii " its contributor version.\n\nIn the following three paragrap" .ascii "hs, a \"patent license\" is any express\nagreement or commit" .ascii "ment, however denominated, not to enforce a patent\n(such as" .ascii " an express permission to practice a patent or covenant not " .ascii "to\nsue for patent infringement). To \"grant\" such a paten" .ascii "t license to a\nparty means to make such an agreement or com" .ascii "mitment not to enforce a\npatent against the party.\n\nIf yo" .ascii "u convey a covered work, knowingly relying on a patent licen" .ascii "se,\nand the Corresponding Source of the work is not availab" .ascii "le for anyone\nto copy, free of charge and under the terms o" .ascii "f this License, through a\npublicly available network server" .ascii " or other readily accessible means,\nthen you must either (1" .ascii ") cause the Corresponding Source to be so\navailable, or (2)" .ascii " arrange to deprive yourself of the benefit of the\npatent l" .ascii "icense for" .ascii " this particular work, or (3) arrange, in a manner\nconsiste" .ascii "nt with the requirements of this License, to extend the pate" .ascii "nt\nlicense to downstream recipients. \"Knowingly relying\"" .ascii " means you have\nactual knowledge that, but for the patent l" .ascii "icense, your conveying the\ncovered work in a country, or yo" .ascii "ur recipient's use of the covered work\nin a country, would " .ascii "infringe one or more identifiable patents in that\ncountry t" .ascii "hat you have reason to believe are valid.\n\nIf, pursuant to" .ascii " or in connection with a single transaction or\narrangement," .ascii " you convey, or propagate by procuring conveyance of, a\ncov" .ascii "ered work, and grant a patent license to some of the parties" .ascii "\nreceiving the covered work authorizing them to use, propag" .ascii "ate, modify\nor convey a specific copy of the covered work, " .ascii "then the patent license\nyou grant is automatically extended" .ascii " to all recipients of the covered\nwork and works based on i" .ascii "t.\n\nA patent license is \"discriminatory\" if it does not " .ascii "include within\nthe scope of its coverage, prohibits the exe" .ascii "rcise of, or is\nconditioned on the non-exercise of one or m" .ascii "ore of the rights that are\nspecifically granted under this " .ascii "License. You may not convey a covered\nwork if you are a pa" .ascii "rty to an arrangement with a third party that is\nin the bus" .ascii "iness of distributing software, under which you make payment" .ascii "\nto the third party based on the extent of your activity of" .ascii " conveying\nthe work, and under which the third party grants" .ascii ", to any of the\nparties who would receive the covered work " .ascii "from you, a discriminatory\npatent license (a) in connection" .ascii " with copies of the covered work\nconveyed by you (or copies" .ascii " made from those copies), or (b) primarily\nfor and in conne" .ascii "ction with specific products or compilations that\ncontain t" .ascii "he covered work, unless you entered into that arrangement,\n" .ascii "or that patent license was granted, prior to 28 March 2007.\n" .ascii "\nNothing in this License shall be construed as excluding or" .ascii " limiting\nany implied license or other defenses to infringe" .ascii "ment that may\notherwise be available to you under appli" .ascii "cable patent law.\n\n12. No Surrender of Others' Freedom.\n\n" .ascii "If conditions are imposed on you (whether by court order, ag" .ascii "reement or\notherwise) that contradict the conditions of thi" .ascii "s License, they do not\nexcuse you from the conditions of th" .ascii "is License. If you cannot convey a\ncovered work so as to s" .ascii "atisfy simultaneously your obligations under this\nLicense a" .ascii "nd any other pertinent obligations, then as a consequence yo" .ascii "u may\nnot convey it at all. For example, if you agree to t" .ascii "erms that obligate you\nto collect a royalty for further con" .ascii "veying from those to whom you convey\nthe Program, the only " .ascii "way you could satisfy both those terms and this\nLicense wou" .ascii "ld be to refrain entirely from conveying the Program.\n\n13." .ascii " Use with the GNU Affero General Public License.\n\nNotwiths" .ascii "tanding any other provision of this License, you have\npermi" .ascii "ssion to link or combine any covered work with a work licens" .ascii "ed\nunder version 3 of the GNU Affero General Public License" .ascii " into a single\ncombined work, and to convey the resulting w" .ascii "ork. The terms of this\nLicense will continue to apply to t" .ascii "he part which is the covered work,\nbut the special requirem" .ascii "ents of the GNU Affero General Public License,\nsection 13, " .ascii "concerning interaction through a network will apply to the\n" .ascii "combination as such.\n\n14. Revised Versions of this License" .ascii ".\n\nThe Free Software Foundation may publish revised and/or" .ascii " new versions of\nthe GNU General Public License from time t" .ascii "o time. Such new versions will\nbe similar in spirit to the" .ascii " present version, but may differ in detail to\naddress new p" .ascii "roblems or concerns.\n\nEach version is given a distinguishi" .ascii "ng version number. If the\nProgram specifies that a certain" .ascii " numbered version of the GNU General\nPublic License \"or an" .ascii "y later version\" applies to it, you have the\noption of fol" .ascii "lowing the terms and conditions either of that numbered\nver" .ascii "sion or of any later version published by the Free Software\n" .ascii "Foundation. If the Program does not specify a version numbe" .ascii "r of the\nGNU General Public License, you may choose any v" .ascii "ersion ever published\nby the Free Software Foundation.\n\nI" .ascii "f the Program specifies that a proxy can decide which future" .ascii "\nversions of the GNU General Public License can be used, th" .ascii "at proxy's\npublic statement of acceptance of a version perm" .ascii "anently authorizes you\nto choose that version for the Progr" .ascii "am.\n\nLater license versions may give you additional or dif" .ascii "ferent\npermissions. However, no additional obligations are" .ascii " imposed on any\nauthor or copyright holder as a result of y" .ascii "our choosing to follow a\nlater version.\n\n15. Disclaimer o" .ascii "f Warranty.\n\nTHERE IS NO WARRANTY FOR THE PROGRAM, TO THE " .ascii "EXTENT PERMITTED BY\nAPPLICABLE LAW. EXCEPT WHEN OTHERWISE " .ascii "STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIE" .ascii "S PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIN" .ascii "D, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED T" .ascii "O,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FO" .ascii "R A PARTICULAR\nPURPOSE. THE ENTIRE RISK AS TO THE QUALITY " .ascii "AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU. SHOULD THE PRO" .ascii "GRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY " .ascii "SERVICING, REPAIR OR CORRECTION.\n\n16. Limitation of Liabil" .ascii "ity.\n\nIN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGR" .ascii "EED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER P" .ascii "ARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED A" .ascii "BOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, " .ascii "SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF " .ascii "THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT " .ascii "LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE O" .ascii "R LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF " .ascii "THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SU" .ascii "CH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY" .ascii " OF\nSUCH DAMAGES.\n\n17. Interpretation of Sections 15 and " .ascii "16.\n\nIf the disclaimer of warranty and limitation of liabi" .ascii "lity provided\nabove cannot be given local legal effect acco" .ascii "rding to their terms,\nreviewing courts shall apply local la" .ascii "w that most closely approximates\nan absolute waiver of all " .ascii "civ" .string "il liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\nEND OF TERMS AND CONDITIONS" .section .data.rel.local,"aw" .align 3 .type GPL_LICENSE_STR, %object .size GPL_LICENSE_STR, 8 GPL_LICENSE_STR: .xword .LC0 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global formal_parameter04 .type formal_parameter04, %function formal_parameter04: .LFB0: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, 8] ldr x0, [sp, 8] str wzr, [x0] ldr x0, [sp, 8] ldr x0, [x0, 40] str wzr, [x0] ldr x0, [sp, 8] ldr x0, [x0, 40] ldr x0, [x0, 40] str wzr, [x0] ldr x0, [sp, 8] ldr x0, [x0, 40] ldr x0, [x0, 40] ldr x0, [x0, 40] str wzr, [x0] ldr x0, [sp, 8] ldr x0, [x0, 40] ldr x0, [x0, 40] ldr x0, [x0, 40] str xzr, [x0, 40] mov w0, 0 add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size formal_parameter04, .-formal_parameter04 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global a .bss .align 3 .type a, %object .size a, 12000 a: .zero 12000 .global d .align 3 .type d, %object .size d, 4000 d: .zero 4000 .global pi .align 3 .type pi, %object .size pi, 4000 pi: .zero 4000 .section .rodata .align 3 .LC0: .string "Enter no. of nodes & edges" .align 3 .LC1: .string "%d %d" .align 3 .LC2: .string "Enter edge from & to & weight" .align 3 .LC3: .string "%d %d %d" .align 3 .LC4: .string "Enter source vertex" .align 3 .LC5: .string "%d" .align 3 .LC6: .string "Bellman ford can't be applied" .align 3 .LC7: .string "%d->%d\n" .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 40] mov x1, 0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl puts add x1, sp, 16 add x0, sp, 20 mov x2, x1 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf str wzr, [sp, 28] b .L2 .L3: adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl puts ldrsw x1, [sp, 28] mov x0, x1 lsl x0, x0, 1 add x0, x0, x1 lsl x0, x0, 2 adrp x1, a add x1, x1, :lo12:a add x4, x0, x1 ldrsw x1, [sp, 28] mov x0, x1 lsl x0, x0, 1 add x0, x0, x1 lsl x0, x0, 2 adrp x1, a add x1, x1, :lo12:a add x0, x0, x1 add x2, x0, 4 ldrsw x1, [sp, 28] mov x0, x1 lsl x0, x0, 1 add x0, x0, x1 lsl x0, x0, 2 adrp x1, a add x1, x1, :lo12:a add x0, x0, x1 add x0, x0, 8 mov x3, x0 mov x1, x4 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl __isoc99_scanf ldr w0, [sp, 28] add w0, w0, 1 str w0, [sp, 28] .L2: ldr w0, [sp, 16] ldr w1, [sp, 28] cmp w1, w0 blt .L3 str wzr, [sp, 28] b .L4 .L5: adrp x0, d add x0, x0, :lo12:d ldrsw x1, [sp, 28] mov w2, 16959 movk w2, 0xf, lsl 16 str w2, [x0, x1, lsl 2] adrp x0, pi add x0, x0, :lo12:pi ldrsw x1, [sp, 28] mov w2, -1 str w2, [x0, x1, lsl 2] ldr w0, [sp, 28] add w0, w0, 1 str w0, [sp, 28] .L4: ldr w0, [sp, 20] ldr w1, [sp, 28] cmp w1, w0 blt .L5 adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl puts add x0, sp, 24 mov x1, x0 adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl __isoc99_scanf ldr w1, [sp, 24] adrp x0, d add x0, x0, :lo12:d sxtw x1, w1 str wzr, [x0, x1, lsl 2] ldr w1, [sp, 24] adrp x0, pi add x0, x0, :lo12:pi sxtw x1, w1 mov w2, -1 str w2, [x0, x1, lsl 2] str wzr, [sp, 28] b .L6 .L10: str wzr, [sp, 32] b .L7 .L9: adrp x0, a add x2, x0, :lo12:a ldrsw x1, [sp, 32] mov x0, x1 lsl x0, x0, 1 add x0, x0, x1 lsl x0, x0, 2 add x0, x2, x0 ldr w1, [x0] adrp x0, d add x0, x0, :lo12:d sxtw x1, w1 ldr w1, [x0, x1, lsl 2] mov w0, 16959 movk w0, 0xf, lsl 16 cmp w1, w0 beq .L8 adrp x0, a add x2, x0, :lo12:a ldrsw x1, [sp, 32] mov x0, x1 lsl x0, x0, 1 add x0, x0, x1 lsl x0, x0, 2 add x0, x2, x0 ldr w1, [x0] adrp x0, d add x0, x0, :lo12:d sxtw x1, w1 ldr w2, [x0, x1, lsl 2] adrp x0, a add x3, x0, :lo12:a ldrsw x1, [sp, 32] mov x0, x1 lsl x0, x0, 1 add x0, x0, x1 lsl x0, x0, 2 add x0, x3, x0 ldr w0, [x0, 8] add w2, w2, w0 adrp x0, a add x3, x0, :lo12:a ldrsw x1, [sp, 32] mov x0, x1 lsl x0, x0, 1 add x0, x0, x1 lsl x0, x0, 2 add x0, x3, x0 ldr w1, [x0, 4] adrp x0, d add x0, x0, :lo12:d sxtw x1, w1 ldr w0, [x0, x1, lsl 2] cmp w2, w0 bge .L8 adrp x0, a add x2, x0, :lo12:a ldrsw x1, [sp, 32] mov x0, x1 lsl x0, x0, 1 add x0, x0, x1 lsl x0, x0, 2 add x0, x2, x0 ldr w1, [x0] adrp x0, d add x0, x0, :lo12:d sxtw x1, w1 ldr w3, [x0, x1, lsl 2] adrp x0, a add x2, x0, :lo12:a ldrsw x1, [sp, 32] mov x0, x1 lsl x0, x0, 1 add x0, x0, x1 lsl x0, x0, 2 add x0, x2, x0 ldr w2, [x0, 8] adrp x0, a add x4, x0, :lo12:a ldrsw x1, [sp, 32] mov x0, x1 lsl x0, x0, 1 add x0, x0, x1 lsl x0, x0, 2 add x0, x4, x0 ldr w1, [x0, 4] add w2, w3, w2 adrp x0, d add x0, x0, :lo12:d sxtw x1, w1 str w2, [x0, x1, lsl 2] adrp x0, a add x2, x0, :lo12:a ldrsw x1, [sp, 32] mov x0, x1 lsl x0, x0, 1 add x0, x0, x1 lsl x0, x0, 2 add x0, x2, x0 ldr w4, [x0] adrp x0, a add x2, x0, :lo12:a ldrsw x1, [sp, 32] mov x0, x1 lsl x0, x0, 1 add x0, x0, x1 lsl x0, x0, 2 add x0, x2, x0 ldr w3, [x0, 4] adrp x0, pi add x0, x0, :lo12:pi sxtw x1, w4 ldr w2, [x0, x1, lsl 2] adrp x0, pi add x0, x0, :lo12:pi sxtw x1, w3 str w2, [x0, x1, lsl 2] .L8: ldr w0, [sp, 32] add w0, w0, 1 str w0, [sp, 32] .L7: ldr w0, [sp, 16] ldr w1, [sp, 32] cmp w1, w0 blt .L9 ldr w0, [sp, 28] add w0, w0, 1 str w0, [sp, 28] .L6: ldr w0, [sp, 20] sub w0, w0, #1 ldr w1, [sp, 28] cmp w1, w0 blt .L10 mov w0, 1 str w0, [sp, 36] str wzr, [sp, 28] b .L11 .L14: adrp x0, a add x2, x0, :lo12:a ldrsw x1, [sp, 28] mov x0, x1 lsl x0, x0, 1 add x0, x0, x1 lsl x0, x0, 2 add x0, x2, x0 ldr w1, [x0] adrp x0, d add x0, x0, :lo12:d sxtw x1, w1 ldr w1, [x0, x1, lsl 2] mov w0, 16959 movk w0, 0xf, lsl 16 cmp w1, w0 beq .L12 adrp x0, a add x2, x0, :lo12:a ldrsw x1, [sp, 28] mov x0, x1 lsl x0, x0, 1 add x0, x0, x1 lsl x0, x0, 2 add x0, x2, x0 ldr w1, [x0] adrp x0, d add x0, x0, :lo12:d sxtw x1, w1 ldr w2, [x0, x1, lsl 2] adrp x0, a add x3, x0, :lo12:a ldrsw x1, [sp, 28] mov x0, x1 lsl x0, x0, 1 add x0, x0, x1 lsl x0, x0, 2 add x0, x3, x0 ldr w0, [x0, 8] add w2, w2, w0 adrp x0, a add x3, x0, :lo12:a ldrsw x1, [sp, 28] mov x0, x1 lsl x0, x0, 1 add x0, x0, x1 lsl x0, x0, 2 add x0, x3, x0 ldr w1, [x0, 4] adrp x0, d add x0, x0, :lo12:d sxtw x1, w1 ldr w0, [x0, x1, lsl 2] cmp w2, w0 bge .L12 str wzr, [sp, 36] b .L13 .L12: ldr w0, [sp, 28] add w0, w0, 1 str w0, [sp, 28] .L11: ldr w0, [sp, 16] ldr w1, [sp, 28] cmp w1, w0 blt .L14 nop .L13: ldr w0, [sp, 36] cmp w0, 0 bne .L15 adrp x0, .LC6 add x0, x0, :lo12:.LC6 bl puts b .L20 .L15: str wzr, [sp, 28] b .L17 .L18: adrp x0, d add x0, x0, :lo12:d ldrsw x1, [sp, 28] ldr w0, [x0, x1, lsl 2] mov w2, w0 ldr w1, [sp, 28] adrp x0, .LC7 add x0, x0, :lo12:.LC7 bl printf ldr w0, [sp, 28] add w0, w0, 1 str w0, [sp, 28] .L17: ldr w0, [sp, 20] ldr w1, [sp, 28] cmp w1, w0 blt .L18 .L20: 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 .L19 bl __stack_chk_fail .L19: 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 2 .type TSEMI_MAX_LENGTH_FT, %object .size TSEMI_MAX_LENGTH_FT, 4 TSEMI_MAX_LENGTH_FT: .word 1084017869 .align 2 .type TSEMI_MAX_LENGTH_M, %object .size TSEMI_MAX_LENGTH_M, 4 TSEMI_MAX_LENGTH_M: .word 1069547520 .align 2 .type TSEMI_MIN_LENGTH_FT, %object .size TSEMI_MIN_LENGTH_FT, 4 TSEMI_MIN_LENGTH_FT: .word 1081711002 .align 2 .type TSEMI_MIN_LENGTH_M, %object .size TSEMI_MIN_LENGTH_M, 4 TSEMI_MIN_LENGTH_M: .word 1067030938 .align 2 .type TSEMI_LENGTH_FT, %object .size TSEMI_LENGTH_FT, 4 TSEMI_LENGTH_FT: .word 1082969293 .align 2 .type TSEMI_LENGTH_M, %object .size TSEMI_LENGTH_M, 4 TSEMI_LENGTH_M: .word 1065353216 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global ft_putchar .type ft_putchar, %function ft_putchar: .LFB0: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp strb w0, [sp, 31] add x0, sp, 31 mov x2, 1 mov x1, x0 mov w0, 1 bl write mov w0, 0 ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size ft_putchar, .-ft_putchar .align 2 .global ft_putstr .type ft_putstr, %function ft_putstr: .LFB1: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str x0, [sp, 24] b .L4 .L5: ldr x0, [sp, 24] add x1, x0, 1 str x1, [sp, 24] ldrb w0, [x0] bl ft_putchar .L4: ldr x0, [sp, 24] ldrb w0, [x0] cmp w0, 0 bne .L5 nop nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size ft_putstr, .-ft_putstr .section .rodata .align 3 .LC0: .string "-2147483648" .text .align 2 .global ft_putnbr .type ft_putnbr, %function ft_putnbr: .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] ldr w1, [sp, 28] mov w0, -2147483648 cmp w1, w0 bne .L7 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl ft_putstr b .L6 .L7: ldr w0, [sp, 28] cmp w0, 0 bge .L9 mov w0, 45 bl ft_putchar ldr w0, [sp, 28] neg w0, w0 str w0, [sp, 28] .L9: ldr w0, [sp, 28] cmp w0, 9 ble .L10 ldr w0, [sp, 28] mov w1, 26215 movk w1, 0x6666, lsl 16 smull x1, w0, w1 lsr x1, x1, 32 asr w1, w1, 2 asr w0, w0, 31 sub w0, w1, w0 bl ft_putnbr .L10: ldr w1, [sp, 28] mov w0, 26215 movk w0, 0x6666, lsl 16 smull x0, w1, w0 lsr x0, x0, 32 asr w2, w0, 2 asr w0, w1, 31 sub w2, w2, w0 mov w0, w2 lsl w0, w0, 2 add w0, w0, w2 lsl w0, w0, 1 sub w2, w1, w0 and w0, w2, 255 add w0, w0, 48 and w0, w0, 255 bl ft_putchar .L6: ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE2: .size ft_putnbr, .-ft_putnbr ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "\n vavedi a:" .align 3 .LC1: .string "%f" .align 3 .LC2: .string "\n vavedi b:" .align 3 .LC3: .string "\n vavedi c:" .align 3 .LC4: .string "%f\n" .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 40] mov x1, 0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf add x0, sp, 24 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf add x0, sp, 28 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl printf add x0, sp, 32 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf ldr s1, [sp, 24] ldr s0, [sp, 28] fcmpe s1, s0 bgt .L9 b .L11 .L9: ldr s0, [sp, 24] str s0, [sp, 36] b .L4 .L11: ldr s0, [sp, 28] str s0, [sp, 36] .L4: ldr s0, [sp, 32] ldr s1, [sp, 36] fcmpe s1, s0 bmi .L10 b .L5 .L10: ldr s0, [sp, 32] str s0, [sp, 36] .L5: ldr s0, [sp, 36] fcvt d0, s0 adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl printf mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 40] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L8 bl __stack_chk_fail .L8: mov w0, w1 ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global S .bss .align 3 .type S, %object .size S, 40004 S: .zero 40004 .global T .align 2 .type T, %object .size T, 4 T: .zero 4 .global n .align 2 .type n, %object .size n, 4 n: .zero 4 .global q .align 2 .type q, %object .size q, 4 q: .zero 4 .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, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str wzr, [sp, 20] adrp x0, n add x1, x0, :lo12:n adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl __isoc99_scanf str wzr, [sp, 24] b .L2 .L3: ldrsw x0, [sp, 24] lsl x1, x0, 2 adrp x0, S add x0, x0, :lo12:S add x0, x1, x0 mov x1, x0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl __isoc99_scanf ldr w0, [sp, 24] add w0, w0, 1 str w0, [sp, 24] .L2: adrp x0, n add x0, x0, :lo12:n ldr w0, [x0] ldr w1, [sp, 24] cmp w1, w0 blt .L3 adrp x0, q add x1, x0, :lo12:q adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl __isoc99_scanf str wzr, [sp, 28] b .L4 .L6: adrp x0, T add x1, x0, :lo12:T adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl __isoc99_scanf adrp x0, T add x0, x0, :lo12:T ldr w0, [x0] bl linearsearch cmp w0, 0 beq .L5 ldr w0, [sp, 20] add w0, w0, 1 str w0, [sp, 20] .L5: ldr w0, [sp, 28] add w0, w0, 1 str w0, [sp, 28] .L4: adrp x0, q add x0, x0, :lo12:q ldr w0, [x0] ldr w1, [sp, 28] cmp w1, w0 blt .L6 ldr w1, [sp, 20] adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf mov w0, 0 ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size main, .-main .align 2 .global linearsearch .type linearsearch, %function linearsearch: .LFB1: .cfi_startproc sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, 12] str wzr, [sp, 28] str wzr, [sp, 24] b .L9 .L12: adrp x0, S add x0, x0, :lo12:S ldrsw x1, [sp, 24] ldr w0, [x0, x1, lsl 2] ldr w1, [sp, 12] cmp w1, w0 bne .L10 mov w0, 1 b .L11 .L10: ldr w0, [sp, 24] add w0, w0, 1 str w0, [sp, 24] .L9: adrp x0, n add x0, x0, :lo12:n ldr w0, [x0] ldr w1, [sp, 24] cmp w1, w0 blt .L12 mov w0, 0 .L11: add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size linearsearch, .-linearsearch ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "Usage: mcpha-pulser-stop addr\n" .align 3 .LC1: .string " addr - IP address of the Red Pitaya board.\n" .text .align 2 .global usage .type usage, %function usage: .LFB6: .cfi_startproc stp x29, x30, [sp, -16]! .cfi_def_cfa_offset 16 .cfi_offset 29, -16 .cfi_offset 30, -8 mov x29, sp adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x0, [x0] mov x3, x0 mov x2, 30 mov x1, 1 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl fwrite adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x0, [x0] mov x3, x0 mov x2, 44 mov x1, 1 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl fwrite nop ldp x29, x30, [sp], 16 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size usage, .-usage .section .rodata .align 3 .LC2: .string "** ERROR: could not create TCP socket\n" .align 3 .LC3: .string "** ERROR: could not connect to %s\n" .align 3 .LC4: .string "** ERROR: could not send command\n" .text .align 2 .global main .type main, %function main: .LFB7: .cfi_startproc stp x29, x30, [sp, -256]! .cfi_def_cfa_offset 256 .cfi_offset 29, -256 .cfi_offset 30, -248 mov x29, sp str w0, [sp, 28] str x1, [sp, 16] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 248] mov x1, 0 ldr w0, [sp, 28] cmp w0, 2 beq .L3 bl usage mov w0, 1 b .L10 .L3: mov w2, 0 mov w1, 1 mov w0, 2 bl socket str w0, [sp, 44] ldr w0, [sp, 44] cmn w0, #1 bne .L5 adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x0, [x0] mov x3, x0 mov x2, 38 mov x1, 1 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl fwrite mov w0, 1 b .L10 .L5: mov w2, 0 mov w1, 3 ldr w0, [sp, 44] bl fcntl str w0, [sp, 48] ldr w0, [sp, 48] orr w0, w0, 2048 mov w2, w0 mov w1, 4 ldr w0, [sp, 44] bl fcntl add x0, sp, 104 mov x2, 16 mov w1, 0 bl memset mov w0, 2 strh w0, [sp, 104] ldr x0, [sp, 16] add x0, x0, 8 ldr x0, [x0] bl inet_addr str w0, [sp, 108] mov w0, 1001 bl htons and w0, w0, 65535 strh w0, [sp, 106] add x0, sp, 104 mov w2, 16 mov x1, x0 ldr w0, [sp, 44] bl connect mov x0, 5 str x0, [sp, 88] str xzr, [sp, 96] add x0, sp, 120 str x0, [sp, 64] str wzr, [sp, 40] b .L6 .L7: ldr x0, [sp, 64] ldr w1, [sp, 40] str xzr, [x0, x1, lsl 3] ldr w0, [sp, 40] add w0, w0, 1 str w0, [sp, 40] .L6: ldr w0, [sp, 40] cmp w0, 15 bls .L7 ldr w0, [sp, 44] add w1, w0, 63 cmp w0, 0 csel w0, w1, w0, lt asr w0, w0, 6 mov w3, w0 sxtw x0, w3 lsl x0, x0, 3 add x1, sp, 120 ldr x0, [x1, x0] ldr w1, [sp, 44] and w1, w1, 63 mov x2, 1 lsl x1, x2, x1 orr x2, x0, x1 sxtw x0, w3 lsl x0, x0, 3 add x1, sp, 120 str x2, [x1, x0] ldr w0, [sp, 44] add w0, w0, 1 add x2, sp, 88 add x1, sp, 120 mov x4, x2 mov x3, 0 mov x2, x1 mov x1, 0 bl select str w0, [sp, 52] ldr w0, [sp, 52] cmp w0, 0 bgt .L8 adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x3, [x0] ldr x0, [sp, 16] add x0, x0, 8 ldr x0, [x0] mov x2, x0 adrp x0, .LC3 add x1, x0, :lo12:.LC3 mov x0, x3 bl fprintf mov w0, 1 b .L10 .L8: mov x0, 2377900603251621888 str x0, [sp, 56] mov x0, 8 str x0, [sp, 72] ldr x1, [sp, 72] add x0, sp, 56 mov w3, 16384 mov x2, x1 mov x1, x0 ldr w0, [sp, 44] bl send str x0, [sp, 80] ldr w0, [sp, 44] bl close ldr x1, [sp, 80] ldr x0, [sp, 72] cmp x1, x0 bge .L9 adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x0, [x0] mov x3, x0 mov x2, 33 mov x1, 1 adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl fwrite mov w0, 1 b .L10 .L9: mov w0, 0 .L10: mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 248] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L11 bl __stack_chk_fail .L11: mov w0, w1 ldp x29, x30, [sp], 256 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 2 .type PROTOCOL_VERSION, %object .size PROTOCOL_VERSION, 4 PROTOCOL_VERSION: .word 70020 .align 2 .type INIT_PROTO_VERSION, %object .size INIT_PROTO_VERSION, 4 INIT_PROTO_VERSION: .word 209 .align 2 .type GETHEADERS_VERSION, %object .size GETHEADERS_VERSION, 4 GETHEADERS_VERSION: .word 31800 .align 2 .type MIN_PEER_PROTO_VERSION, %object .size MIN_PEER_PROTO_VERSION, 4 MIN_PEER_PROTO_VERSION: .word 31800 .align 2 .type CADDR_TIME_VERSION, %object .size CADDR_TIME_VERSION, 4 CADDR_TIME_VERSION: .word 31402 .align 2 .type BIP0031_VERSION, %object .size BIP0031_VERSION, 4 BIP0031_VERSION: .word 60000 .align 2 .type MEMPOOL_GD_VERSION, %object .size MEMPOOL_GD_VERSION, 4 MEMPOOL_GD_VERSION: .word 60002 .align 2 .type NO_BLOOM_VERSION, %object .size NO_BLOOM_VERSION, 4 NO_BLOOM_VERSION: .word 70011 .align 2 .type SENDHEADERS_VERSION, %object .size SENDHEADERS_VERSION, 4 SENDHEADERS_VERSION: .word 70012 .align 2 .type FEEFILTER_VERSION, %object .size FEEFILTER_VERSION, 4 FEEFILTER_VERSION: .word 70013 .align 2 .type SHORT_IDS_BLOCKS_VERSION, %object .size SHORT_IDS_BLOCKS_VERSION, 4 SHORT_IDS_BLOCKS_VERSION: .word 70014 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global ssl3_connect .type ssl3_connect, %function ssl3_connect: .LFB0: .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] bl __VERIFIER_nondet_int str w0, [sp, 80] bl __VERIFIER_nondet_int str w0, [sp, 84] bl __VERIFIER_nondet_int str w0, [sp, 88] bl __VERIFIER_nondet_int str w0, [sp, 92] bl __VERIFIER_nondet_int str w0, [sp, 96] bl __VERIFIER_nondet_int str w0, [sp, 100] bl __VERIFIER_nondet_int str w0, [sp, 40] bl __VERIFIER_nondet_int str w0, [sp, 104] bl __VERIFIER_nondet_int str w0, [sp, 108] bl __VERIFIER_nondet_int str w0, [sp, 44] bl __VERIFIER_nondet_int str w0, [sp, 48] bl __VERIFIER_nondet_int str w0, [sp, 112] bl __VERIFIER_nondet_int str w0, [sp, 116] bl __VERIFIER_nondet_int str w0, [sp, 52] bl __VERIFIER_nondet_int str w0, [sp, 120] bl __VERIFIER_nondet_int str w0, [sp, 124] bl __VERIFIER_nondet_int str w0, [sp, 128] bl __VERIFIER_nondet_int str w0, [sp, 132] bl __VERIFIER_nondet_int str w0, [sp, 136] bl __VERIFIER_nondet_int str w0, [sp, 140] bl __VERIFIER_nondet_int str w0, [sp, 60] bl __VERIFIER_nondet_int str w0, [sp, 144] bl __VERIFIER_nondet_int str w0, [sp, 148] bl __VERIFIER_nondet_int str w0, [sp, 152] bl __VERIFIER_nondet_int str w0, [sp, 156] bl __VERIFIER_nondet_int str w0, [sp, 160] bl __VERIFIER_nondet_int str w0, [sp, 164] bl __VERIFIER_nondet_int str w0, [sp, 168] bl __VERIFIER_nondet_int str w0, [sp, 172] bl __VERIFIER_nondet_int str w0, [sp, 176] ldr w0, [sp, 28] str w0, [sp, 36] str wzr, [sp, 76] bl __VERIFIER_nondet_int sxtw x0, w0 str x0, [sp, 240] str wzr, [sp, 64] mov w0, -1 str w0, [sp, 68] str wzr, [sp, 72] str wzr, [sp, 180] ldr w0, [sp, 80] cmp w0, 0 beq .L2 ldr w0, [sp, 80] str w0, [sp, 64] b .L3 .L2: ldr w0, [sp, 108] cmp w0, 0 beq .L3 ldr w0, [sp, 108] str w0, [sp, 64] .L3: ldr w0, [sp, 84] add w0, w0, 1 str w0, [sp, 84] ldr w0, [sp, 144] cmn w0, #12288 nop .L4: .L121: ldr w0, [sp, 36] str w0, [sp, 184] ldr w1, [sp, 36] mov w0, 12292 cmp w1, w0 beq .L128 ldr w0, [sp, 36] cmp w0, 16384 beq .L129 ldr w0, [sp, 36] cmp w0, 4096 beq .L130 ldr w0, [sp, 36] cmp w0, 20480 beq .L131 ldr w1, [sp, 36] mov w0, 4099 cmp w1, w0 beq .L132 ldr w1, [sp, 36] mov w0, 4368 cmp w1, w0 beq .L133 ldr w1, [sp, 36] mov w0, 4369 cmp w1, w0 beq .L134 ldr w1, [sp, 36] mov w0, 4384 cmp w1, w0 beq .L135 ldr w1, [sp, 36] mov w0, 4385 cmp w1, w0 beq .L136 ldr w1, [sp, 36] mov w0, 4400 cmp w1, w0 beq .L137 ldr w1, [sp, 36] mov w0, 4401 cmp w1, w0 beq .L138 ldr w1, [sp, 36] mov w0, 4416 cmp w1, w0 beq .L139 ldr w1, [sp, 36] mov w0, 4417 cmp w1, w0 beq .L140 ldr w1, [sp, 36] mov w0, 4432 cmp w1, w0 beq .L141 ldr w1, [sp, 36] mov w0, 4433 cmp w1, w0 beq .L142 ldr w1, [sp, 36] mov w0, 4448 cmp w1, w0 beq .L143 ldr w1, [sp, 36] mov w0, 4449 cmp w1, w0 beq .L144 ldr w1, [sp, 36] mov w0, 4464 cmp w1, w0 beq .L145 ldr w1, [sp, 36] mov w0, 4465 cmp w1, w0 beq .L146 ldr w1, [sp, 36] mov w0, 4466 cmp w1, w0 beq .L147 ldr w1, [sp, 36] mov w0, 4467 cmp w1, w0 beq .L148 ldr w1, [sp, 36] mov w0, 4480 cmp w1, w0 beq .L149 ldr w1, [sp, 36] mov w0, 4481 cmp w1, w0 beq .L150 ldr w1, [sp, 36] mov w0, 4496 cmp w1, w0 beq .L151 ldr w1, [sp, 36] mov w0, 4497 cmp w1, w0 beq .L152 ldr w1, [sp, 36] mov w0, 4512 cmp w1, w0 beq .L153 ldr w1, [sp, 36] mov w0, 4513 cmp w1, w0 beq .L154 ldr w1, [sp, 36] mov w0, 4528 cmp w1, w0 beq .L155 ldr w1, [sp, 36] mov w0, 4529 cmp w1, w0 beq .L156 ldr w1, [sp, 36] mov w0, 4560 cmp w1, w0 beq .L157 ldr w1, [sp, 36] mov w0, 4561 cmp w1, w0 beq .L158 ldr w1, [sp, 36] mov w0, 4352 cmp w1, w0 beq .L159 ldr w0, [sp, 36] cmp w0, 3 bne .L160 b .L125 .L128: nop .L6: mov w0, 1 str w0, [sp, 192] mov w0, 4096 str w0, [sp, 36] ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] b .L14 .L8: .L10: .L12: .L129: nop b .L14 .L130: nop b .L14 .L131: nop b .L14 .L132: nop .L14: str wzr, [sp, 220] ldr w1, [sp, 88] mov w0, 65280 add w0, w1, w0 str w0, [sp, 224] ldr w0, [sp, 224] cmp w0, 768 beq .L72 mov w0, -1 str w0, [sp, 68] b .L73 .L72: mov w0, 4096 str w0, [sp, 228] ldr w0, [sp, 40] cmp w0, 0 bne .L74 bl __VERIFIER_nondet_int str w0, [sp, 232] ldr w0, [sp, 232] cmp w0, 0 bne .L75 mov w0, -1 str w0, [sp, 68] b .L73 .L75: ldr w0, [sp, 152] cmp w0, 0 bne .L76 mov w0, -1 str w0, [sp, 68] b .L73 .L76: ldr w0, [sp, 232] str w0, [sp, 40] .L74: ldr w0, [sp, 156] cmp w0, 0 bne .L77 mov w0, -1 str w0, [sp, 68] b .L73 .L77: ldr w0, [sp, 160] cmp w0, 0 bne .L78 mov w0, -1 str w0, [sp, 68] b .L73 .L78: mov w0, 4368 str w0, [sp, 36] ldr w0, [sp, 48] add w0, w0, 1 str w0, [sp, 48] str wzr, [sp, 188] b .L79 .L16: .L133: nop b .L18 .L134: nop .L18: str wzr, [sp, 216] bl __VERIFIER_nondet_int str w0, [sp, 68] ldr w0, [sp, 76] cmp w0, 0 bne .L80 mov w0, 1 str w0, [sp, 76] .L80: ldr w0, [sp, 68] cmp w0, 0 ble .L161 mov w0, 4384 str w0, [sp, 36] str wzr, [sp, 188] b .L79 .L20: .L135: nop b .L22 .L136: nop .L22: bl __VERIFIER_nondet_int str w0, [sp, 68] ldr w0, [sp, 76] cmp w0, 1 bne .L82 mov w0, 2 str w0, [sp, 76] .L82: ldr w0, [sp, 68] cmp w0, 0 ble .L162 ldr w0, [sp, 100] cmp w0, 0 beq .L84 mov w0, 4560 str w0, [sp, 36] b .L85 .L84: mov w0, 4400 str w0, [sp, 36] .L85: str wzr, [sp, 188] b .L79 .L24: .L137: nop b .L26 .L138: nop .L26: ldrsw x0, [sp, 136] str x0, [sp, 328] ldr x0, [sp, 328] cmn x0, #256 beq .L86 mov w0, 1 str w0, [sp, 72] b .L87 .L86: bl __VERIFIER_nondet_int str w0, [sp, 68] ldr w0, [sp, 76] cmp w0, 2 bne .L88 mov w0, 3 str w0, [sp, 76] b .L89 .L88: ldr w0, [sp, 76] cmp w0, 4 bne .L89 mov w0, 5 str w0, [sp, 76] .L89: ldr w0, [sp, 68] cmp w0, 0 ble .L163 .L87: mov w0, 4416 str w0, [sp, 36] str wzr, [sp, 188] b .L79 .L28: .L139: nop b .L30 .L140: nop .L30: bl __VERIFIER_nondet_int str w0, [sp, 68] ldr w0, [sp, 76] cmp w0, 3 bne .L90 mov w0, 4 str w0, [sp, 76] .L90: ldr w0, [sp, 68] cmp w0, 0 ble .L164 mov w0, 4432 str w0, [sp, 36] str wzr, [sp, 188] ldr w0, [sp, 164] cmp w0, 0 bne .L165 mov w0, -1 str w0, [sp, 68] b .L73 .L32: .L141: nop b .L34 .L142: nop .L34: bl __VERIFIER_nondet_int str w0, [sp, 68] ldr w0, [sp, 76] cmp w0, 4 beq .L166 ldr w0, [sp, 68] cmp w0, 0 ble .L167 mov w0, 4448 str w0, [sp, 36] str wzr, [sp, 188] b .L79 .L36: .L143: nop b .L38 .L144: nop .L38: bl __VERIFIER_nondet_int str w0, [sp, 68] ldr w0, [sp, 68] cmp w0, 0 ble .L168 ldr w0, [sp, 120] cmp w0, 0 beq .L97 mov w0, 4464 str w0, [sp, 36] b .L98 .L97: mov w0, 4480 str w0, [sp, 36] .L98: str wzr, [sp, 188] b .L79 .L40: .L42: .L44: .L145: nop b .L46 .L146: nop b .L46 .L147: nop b .L46 .L148: nop .L46: bl __VERIFIER_nondet_int str w0, [sp, 68] ldr w0, [sp, 68] cmp w0, 0 ble .L169 mov w0, 4480 str w0, [sp, 36] str wzr, [sp, 188] b .L79 .L48: .L149: nop b .L50 .L150: nop .L50: bl __VERIFIER_nondet_int str w0, [sp, 68] ldr w0, [sp, 68] cmp w0, 0 ble .L170 ldrsw x0, [sp, 136] str x0, [sp, 320] ldr w0, [sp, 120] cmp w0, 1 bne .L101 mov w0, 4496 str w0, [sp, 36] b .L102 .L101: mov w0, 4512 str w0, [sp, 36] str wzr, [sp, 212] .L102: str wzr, [sp, 188] b .L79 .L52: .L151: nop b .L54 .L152: nop .L54: bl __VERIFIER_nondet_int str w0, [sp, 68] ldr w0, [sp, 68] cmp w0, 0 ble .L171 mov w0, 4512 str w0, [sp, 36] str wzr, [sp, 188] str wzr, [sp, 212] b .L79 .L56: .L153: nop b .L58 .L154: nop .L58: bl __VERIFIER_nondet_int str w0, [sp, 68] ldr w0, [sp, 68] cmp w0, 0 ble .L172 mov w0, 4528 str w0, [sp, 36] str wzr, [sp, 188] ldr w0, [sp, 132] str w0, [sp, 204] ldr w0, [sp, 124] cmp w0, 0 bne .L105 str wzr, [sp, 208] b .L106 .L105: ldr w0, [sp, 140] str w0, [sp, 208] .L106: ldr w0, [sp, 168] cmp w0, 0 bne .L107 mov w0, -1 str w0, [sp, 68] b .L73 .L107: ldr w0, [sp, 172] cmp w0, 0 bne .L173 mov w0, -1 str w0, [sp, 68] b .L73 .L60: .L155: nop b .L62 .L156: nop .L62: bl __VERIFIER_nondet_int str w0, [sp, 68] ldr w0, [sp, 68] cmp w0, 0 ble .L174 mov w0, 4352 str w0, [sp, 36] ldrsw x0, [sp, 52] str x0, [sp, 280] ldr x0, [sp, 280] sub x0, x0, #5 str x0, [sp, 288] ldr x0, [sp, 288] str w0, [sp, 52] ldr w0, [sp, 100] cmp w0, 0 beq .L110 mov w0, 3 str w0, [sp, 56] ldrsw x0, [sp, 52] str x0, [sp, 296] ldr x0, [sp, 296] cmn x0, #2 beq .L111 mov w0, 3 str w0, [sp, 36] ldrsw x0, [sp, 52] str x0, [sp, 304] ldr x0, [sp, 304] lsl x0, x0, 2 str x0, [sp, 312] ldr x0, [sp, 312] str w0, [sp, 52] str wzr, [sp, 200] b .L111 .L110: mov w0, 4560 str w0, [sp, 56] .L111: str wzr, [sp, 188] b .L79 .L64: .L157: nop b .L66 .L158: nop .L66: bl __VERIFIER_nondet_int str w0, [sp, 68] ldr w0, [sp, 68] cmp w0, 0 ble .L175 ldr w0, [sp, 100] cmp w0, 0 beq .L113 mov w0, 4512 str w0, [sp, 36] b .L114 .L113: mov w0, 3 str w0, [sp, 36] .L114: str wzr, [sp, 188] b .L79 .L159: nop .L68: ldrsw x0, [sp, 60] str x0, [sp, 264] ldr x0, [sp, 264] cmp x0, 0 ble .L115 mov w0, 2 str w0, [sp, 196] ldr w0, [sp, 176] str w0, [sp, 60] ldrsw x0, [sp, 60] str x0, [sp, 272] ldr x0, [sp, 272] cmp x0, 0 bgt .L116 mov w0, -1 str w0, [sp, 68] b .L73 .L116: mov w0, 1 str w0, [sp, 196] .L115: ldr w0, [sp, 56] str w0, [sp, 36] b .L79 .L125: .L70: ldr w0, [sp, 40] cmp w0, 0 beq .L117 str wzr, [sp, 40] .L117: ldrsw x0, [sp, 52] str x0, [sp, 248] ldr x0, [sp, 248] add x0, x0, 4 str x0, [sp, 256] str wzr, [sp, 188] str wzr, [sp, 192] ldr w0, [sp, 100] cmp w0, 0 beq .L118 ldr w0, [sp, 112] add w0, w0, 1 str w0, [sp, 112] .L118: mov w0, 1 str w0, [sp, 68] ldr w0, [sp, 116] add w0, w0, 1 str w0, [sp, 116] b .L73 .L160: nop .L71: mov w0, -1 str w0, [sp, 68] b .L73 .L165: nop b .L79 .L173: nop .L79: ldr w0, [sp, 128] cmp w0, 0 bne .L119 ldr w0, [sp, 72] cmp w0, 0 bne .L119 ldr w0, [sp, 104] cmp w0, 0 beq .L120 bl __VERIFIER_nondet_int str w0, [sp, 68] ldr w0, [sp, 68] cmp w0, 0 ble .L176 .L120: ldr w0, [sp, 64] cmp w0, 0 beq .L119 ldr w1, [sp, 36] ldr w0, [sp, 184] cmp w1, w0 beq .L119 ldr w0, [sp, 36] str w0, [sp, 236] ldr w0, [sp, 184] str w0, [sp, 36] ldr w0, [sp, 236] str w0, [sp, 36] .L119: str wzr, [sp, 72] b .L121 .L161: nop b .L73 .L162: nop b .L73 .L163: nop b .L73 .L164: nop b .L73 .L167: nop b .L73 .L168: nop b .L73 .L169: nop b .L73 .L170: nop b .L73 .L171: nop b .L73 .L172: nop b .L73 .L174: nop b .L73 .L175: nop b .L73 .L176: nop .L73: ldr w0, [sp, 84] sub w0, w0, #1 str w0, [sp, 84] ldr w0, [sp, 68] b .L127 .L166: nop .L94: bl __VERIFIER_error .L127: ldp x29, x30, [sp], 336 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size ssl3_connect, .-ssl3_connect .align 2 .global main .type main, %function main: .LFB1: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp mov w0, 12292 str w0, [sp, 28] ldr w0, [sp, 28] bl ssl3_connect mov w0, 0 ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "Getting ready to say \"Hello, world\"\n" .align 3 .LC1: .string "Hello, world!" .align 3 .LC2: .string "It has been said.\n" .align 3 .LC3: .string "argc\t= %d\n" .align 3 .LC4: .string "argv\t= 0x%p\n" .align 3 .LC5: .string "argv[%d]\t= " .align 3 .LC6: .string "(0x%p) \"%s\"\n" .align 3 .LC7: .string "NULL?" .align 3 .LC8: .string "argv[%d]\t= 0x%p\n" .align 3 .LC9: .string "Goodbye, world!" .text .align 2 .global main .type main, %function main: .LFB6: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str w0, [sp, 28] str x1, [sp, 16] adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl puts adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl puts adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl puts ldr w1, [sp, 28] adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl printf ldr x1, [sp, 16] adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl printf str wzr, [sp, 44] b .L2 .L5: ldr w1, [sp, 44] adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl printf ldrsw x0, [sp, 44] lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x0, [x0] cmp x0, 0 beq .L3 ldrsw x0, [sp, 44] lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x3, [x0] ldrsw x0, [sp, 44] lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x0, [x0] mov x2, x0 mov x1, x3 adrp x0, .LC6 add x0, x0, :lo12:.LC6 bl printf b .L4 .L3: adrp x0, .LC7 add x0, x0, :lo12:.LC7 bl puts .L4: ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L2: ldr w1, [sp, 44] ldr w0, [sp, 28] cmp w1, w0 blt .L5 ldrsw x0, [sp, 28] lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x0, [x0] mov x2, x0 ldr w1, [sp, 28] adrp x0, .LC8 add x0, x0, :lo12:.LC8 bl printf adrp x0, .LC9 add x0, x0, :lo12:.LC9 bl puts mov w0, 0 ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global STARTING_STRING_BUFFER_LEN .section .rodata .align 2 .type STARTING_STRING_BUFFER_LEN, %object .size STARTING_STRING_BUFFER_LEN, 4 STARTING_STRING_BUFFER_LEN: .word 20 .text .align 2 .type print_string, %function print_string: .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] ldr x1, [x0] ldr x0, [sp, 24] ldr w0, [x0, 8] sxtw x0, w0 mov x2, x0 mov w0, 1 bl write nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size print_string, .-print_string .align 2 .type reverse_string, %function reverse_string: .LFB7: .cfi_startproc sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, 8] str wzr, [sp, 24] ldr x0, [sp, 8] ldr w0, [x0, 8] sub w0, w0, #1 str w0, [sp, 28] b .L3 .L4: ldr x0, [sp, 8] ldr x1, [x0] ldrsw x0, [sp, 24] add x0, x1, x0 ldrb w0, [x0] strb w0, [sp, 23] ldr x0, [sp, 8] ldr x1, [x0] ldrsw x0, [sp, 28] add x1, x1, x0 ldr x0, [sp, 8] ldr x2, [x0] ldr w0, [sp, 24] add w3, w0, 1 str w3, [sp, 24] sxtw x0, w0 add x0, x2, x0 ldrb w1, [x1] strb w1, [x0] ldr x0, [sp, 8] ldr x1, [x0] ldr w0, [sp, 28] sub w2, w0, #1 str w2, [sp, 28] sxtw x0, w0 add x0, x1, x0 ldrb w1, [sp, 23] strb w1, [x0] .L3: ldr w1, [sp, 24] ldr w0, [sp, 28] cmp w1, w0 blt .L4 nop nop add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size reverse_string, .-reverse_string .align 2 .type add_char_to_string, %function add_char_to_string: .LFB8: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp strb w0, [sp, 31] str x1, [sp, 16] ldr x0, [sp, 16] ldr w0, [x0, 8] mov w1, 20 sdiv w2, w0, w1 mul w1, w2, w1 sub w0, w0, w1 cmp w0, 0 bne .L6 ldr x0, [sp, 16] ldr x2, [x0] ldr x0, [sp, 16] ldr w1, [x0, 8] mov w0, 20 add w0, w1, w0 sxtw x0, w0 mov x1, x0 mov x0, x2 bl realloc mov x1, x0 ldr x0, [sp, 16] str x1, [x0] .L6: ldr x0, [sp, 16] ldr x1, [x0] ldr x0, [sp, 16] ldr w0, [x0, 8] sxtw x0, w0 add x0, x1, x0 ldrb w1, [sp, 31] strb w1, [x0] ldr x0, [sp, 16] ldr w0, [x0, 8] add w1, w0, 1 ldr x0, [sp, 16] str w1, [x0, 8] nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE8: .size add_char_to_string, .-add_char_to_string .align 2 .type concatenate_string, %function concatenate_string: .LFB9: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] str wzr, [sp, 44] b .L8 .L9: ldr x0, [sp, 16] ldr x1, [x0] ldr w0, [sp, 44] add w2, w0, 1 str w2, [sp, 44] sxtw x0, w0 add x0, x1, x0 ldrb w0, [x0] ldr x1, [sp, 24] bl add_char_to_string .L8: ldr x0, [sp, 16] ldr w0, [x0, 8] ldr w1, [sp, 44] cmp w1, w0 blt .L9 nop nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE9: .size concatenate_string, .-concatenate_string .align 2 .type print_int_to_string, %function print_int_to_string: .LFB10: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str w0, [sp, 28] str x1, [sp, 16] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 56] mov x1, 0 adrp x0, .LC0 add x1, x0, :lo12:.LC0 add x0, sp, 40 ldr x2, [x1] str x2, [x0] ldrh w1, [x1, 8] strh w1, [x0, 8] b .L11 .L12: ldr w0, [sp, 28] mov w1, 26215 movk w1, 0x6666, lsl 16 smull x1, w0, w1 lsr x1, x1, 32 asr w1, w1, 2 asr w0, w0, 31 sub w1, w1, w0 mov w0, w1 lsl w0, w0, 2 add w0, w0, w1 lsl w0, w0, 1 str w0, [sp, 32] ldr w1, [sp, 28] ldr w0, [sp, 32] sub w0, w1, w0 str w0, [sp, 36] ldrsw x0, [sp, 36] add x1, sp, 40 ldrb w0, [x1, x0] ldr x1, [sp, 16] bl add_char_to_string ldr w0, [sp, 28] mov w1, 26215 movk w1, 0x6666, lsl 16 smull x1, w0, w1 lsr x1, x1, 32 asr w1, w1, 2 asr w0, w0, 31 sub w0, w1, w0 str w0, [sp, 28] .L11: ldr w0, [sp, 28] cmp w0, 0 bgt .L12 ldr x0, [sp, 16] bl reverse_string 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 .L13 bl __stack_chk_fail .L13: ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE10: .size print_int_to_string, .-print_int_to_string .section .rodata .align 3 .LC0: .ascii "0123456789" .text .align 2 .type print_int, %function print_int: .LFB11: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str w0, [sp, 28] str x1, [sp, 16] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 56] mov x1, 0 str xzr, [sp, 40] str wzr, [sp, 48] add x0, sp, 40 mov x1, x0 ldr w0, [sp, 28] bl print_int_to_string add x0, sp, 40 mov x1, x0 ldr x0, [sp, 16] bl concatenate_string nop adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x2, [sp, 56] ldr x1, [x0] subs x2, x2, x1 mov x1, 0 beq .L15 bl __stack_chk_fail .L15: ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE11: .size print_int, .-print_int .align 2 .type my_printf, %function my_printf: .LFB12: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x0, [sp, 24] str w1, [sp, 20] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 56] mov x1, 0 str xzr, [sp, 40] str wzr, [sp, 48] str wzr, [sp, 36] b .L17 .L21: ldrb w0, [sp, 34] cmp w0, 37 bne .L18 ldr w0, [sp, 36] add w1, w0, 1 str w1, [sp, 36] sxtw x0, w0 ldr x1, [sp, 24] add x0, x1, x0 ldrb w0, [x0] strb w0, [sp, 35] ldrb w0, [sp, 35] cmp w0, 100 bne .L19 add x0, sp, 40 mov x1, x0 ldr w0, [sp, 20] bl print_int nop b .L17 .L19: mov w0, 1 bl exit .L18: add x0, sp, 40 mov x1, x0 ldrb w0, [sp, 34] bl add_char_to_string .L17: ldr w0, [sp, 36] add w1, w0, 1 str w1, [sp, 36] sxtw x0, w0 ldr x1, [sp, 24] add x0, x1, x0 ldrb w0, [x0] strb w0, [sp, 34] ldrb w0, [sp, 34] cmp w0, 0 bne .L21 add x0, sp, 40 bl print_string 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 .L22 bl __stack_chk_fail .L22: ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE12: .size my_printf, .-my_printf .section .rodata .align 3 .LC1: .string "abcedf %d abc" .text .align 2 .global main .type main, %function main: .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 w0, [sp, 28] str x1, [sp, 16] mov w1, 125 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl my_printf mov w0, 0 ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE13: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "\n" .text .align 2 .global main .type main, %function main: .LFB6: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str w0, [sp, 28] str x1, [sp, 16] mov w0, 30 bl sysconf bl _ultoa sxtw x0, w0 str x0, [sp, 40] ldr x0, [sp, 40] bl strlen mov x2, x0 ldr x1, [sp, 40] mov w0, 1 bl write mov x2, 1 adrp x0, .LC0 add x1, x0, :lo12:.LC0 mov w0, 1 bl write mov w0, 0 ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global byAscendingOrder .type byAscendingOrder, %function byAscendingOrder: .LFB6: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, 8] str x1, [sp] ldr x0, [sp, 8] ldr w1, [x0] ldr x0, [sp] ldr w0, [x0] sub w0, w1, w0 add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size byAscendingOrder, .-byAscendingOrder .align 2 .global expand .type expand, %function expand: .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] ldr w0, [x0] lsl w0, w0, 1 sxtw x0, w0 mov x1, 4 bl calloc str x0, [sp, 40] str wzr, [sp, 36] b .L4 .L5: ldrsw x0, [sp, 36] lsl x0, x0, 2 ldr x1, [sp, 16] add x1, x1, x0 ldrsw x0, [sp, 36] lsl x0, x0, 2 ldr x2, [sp, 40] add x0, x2, x0 ldr w1, [x1] str w1, [x0] ldr w0, [sp, 36] add w0, w0, 1 str w0, [sp, 36] .L4: ldr x0, [sp, 24] ldr w0, [x0] ldr w1, [sp, 36] cmp w1, w0 blt .L5 ldr x0, [sp, 16] bl free ldr x0, [sp, 24] ldr w0, [x0] lsl w1, w0, 1 ldr x0, [sp, 24] 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 .LFE7: .size expand, .-expand .section .rodata .align 3 .LC0: .string "Enter array:" .align 3 .LC1: .string "%d" .align 3 .LC2: .string "Result:" .align 3 .LC3: .string "Form: number - amount" .align 3 .LC4: .string "%d - %d\n" .text .align 2 .global main .type main, %function main: .LFB8: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 56] mov x1, 0 mov w0, -1 str w0, [sp, 24] adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl puts str wzr, [sp, 32] mov w0, 2 str w0, [sp, 28] ldr w0, [sp, 28] sxtw x0, w0 mov x1, 4 bl calloc str x0, [sp, 48] b .L8 .L12: add x0, sp, 24 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf ldr w0, [sp, 24] cmp w0, 0 beq .L19 ldr w0, [sp, 28] ldr w1, [sp, 32] cmp w1, w0 bne .L11 add x0, sp, 28 ldr x1, [sp, 48] bl expand str x0, [sp, 48] .L11: ldr w0, [sp, 32] add w1, w0, 1 str w1, [sp, 32] sxtw x0, w0 lsl x0, x0, 2 ldr x1, [sp, 48] add x0, x1, x0 ldr w1, [sp, 24] str w1, [x0] .L8: ldr w0, [sp, 24] cmp w0, 0 bne .L12 b .L10 .L19: nop .L10: ldrsw x1, [sp, 32] adrp x0, byAscendingOrder add x3, x0, :lo12:byAscendingOrder mov x2, 4 ldr x0, [sp, 48] bl qsort adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl puts adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl puts ldr x0, [sp, 48] ldr w0, [x0] str w0, [sp, 36] mov w0, 1 str w0, [sp, 40] mov w0, 1 str w0, [sp, 44] b .L13 .L16: ldrsw x0, [sp, 44] lsl x0, x0, 2 ldr x1, [sp, 48] add x0, x1, x0 ldr w0, [x0] ldr w1, [sp, 36] cmp w1, w0 bne .L14 ldr w0, [sp, 40] add w0, w0, 1 str w0, [sp, 40] b .L15 .L14: ldr w2, [sp, 40] ldr w1, [sp, 36] adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl printf ldrsw x0, [sp, 44] lsl x0, x0, 2 ldr x1, [sp, 48] add x0, x1, x0 ldr w0, [x0] str w0, [sp, 36] mov w0, 1 str w0, [sp, 40] .L15: ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L13: ldr w1, [sp, 44] ldr w0, [sp, 32] cmp w1, w0 blt .L16 ldr w2, [sp, 40] ldr w1, [sp, 36] adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl printf ldr x0, [sp, 48] bl free mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 56] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L18 bl __stack_chk_fail .L18: mov w0, w1 ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE8: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global my_str_islower .type my_str_islower, %function my_str_islower: .LFB0: .cfi_startproc sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, 8] str wzr, [sp, 28] b .L2 .L6: 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 bls .L4 .L3: mov w0, 0 b .L5 .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 .L6 mov w0, 1 .L5: add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size my_str_islower, .-my_str_islower ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global brev_ptr_inc .type brev_ptr_inc, %function brev_ptr_inc: .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, 16] str x0, [sp, 32] ldr x0, [sp, 24] str x0, [sp, 40] ldr x0, [sp, 40] add x1, x0, 4 str x1, [sp, 40] mov w2, 8 mov x1, x0 ldr x0, [sp, 32] bl __builtin_brev_ldw ldr x0, [sp, 40] ldr w0, [x0] ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size brev_ptr_inc, .-brev_ptr_inc .align 2 .global brev_ptr_dec .type brev_ptr_dec, %function brev_ptr_dec: .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 x1, [sp, 16] ldr x0, [sp, 16] str x0, [sp, 32] ldr x0, [sp, 24] add x0, x0, 4 str x0, [sp, 40] ldr x0, [sp, 40] sub x1, x0, #4 str x1, [sp, 40] mov w2, 8 mov x1, x0 ldr x0, [sp, 32] bl __builtin_brev_ldw ldr x0, [sp, 40] ldr w0, [x0] ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size brev_ptr_dec, .-brev_ptr_dec .align 2 .global brev_ptr_half .type brev_ptr_half, %function brev_ptr_half: .LFB2: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] ldr x0, [sp, 16] str x0, [sp, 32] ldr x0, [sp, 24] str x0, [sp, 40] ldr x0, [sp, 40] add x1, x0, 2 str x1, [sp, 40] mov w2, 8 mov x1, x0 ldr x0, [sp, 32] bl __builtin_brev_ldh ldr x0, [sp, 40] ldrsh w0, [x0] ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE2: .size brev_ptr_half, .-brev_ptr_half .align 2 .global brev_ptr_byte .type brev_ptr_byte, %function brev_ptr_byte: .LFB3: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] ldr x0, [sp, 16] str x0, [sp, 32] ldr x0, [sp, 24] str x0, [sp, 40] ldr x0, [sp, 40] add x1, x0, 1 str x1, [sp, 40] mov w2, 8 mov x1, x0 ldr x0, [sp, 32] bl __builtin_brev_ldub ldr x0, [sp, 40] ldrb w0, [x0] ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE3: .size brev_ptr_byte, .-brev_ptr_byte ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "Usage: %s port\n" .align 3 .LC1: .string "0.0.0.0" .align 3 .LC2: .string "server listen on port: %d\n" .align 3 .LC3: .string "select error! %s\n" .align 3 .LC4: .string "connections: %d, fd: %d\n" .align 3 .LC5: .string "connections: %d\n" .align 3 .LC6: .string "error: %s\n" .text .align 2 .global main .type main, %function main: .LFB6: .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 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, 648] mov x1, 0 ldr w0, [sp, 28] cmp w0, 1 bgt .L2 ldr x0, [sp, 16] ldr x0, [x0] mov x1, x0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf mov w0, 0 bl exit .L2: adrp x0, .LC1 add x0, x0, :lo12:.LC1 str x0, [sp, 88] mov w0, 1 str w0, [sp, 32] str wzr, [sp, 44] mov w0, 7000 str w0, [sp, 48] ldr w0, [sp, 28] cmp w0, 1 ble .L3 ldr x0, [sp, 16] add x0, x0, 8 ldr x0, [x0] bl atoi str w0, [sp, 48] .L3: str wzr, [sp, 52] b .L4 .L10: ldr w1, [sp, 48] ldr w0, [sp, 52] add w0, w1, w0 str w0, [sp, 80] add x0, sp, 104 stp xzr, xzr, [x0] mov w0, 2 strh w0, [sp, 104] ldr w0, [sp, 80] and w0, w0, 65535 bl htons and w0, w0, 65535 strh w0, [sp, 106] add x0, sp, 104 add x0, x0, 4 mov x2, x0 ldr x1, [sp, 88] mov w0, 2 bl inet_pton mov w2, 0 mov w1, 1 mov w0, 2 bl socket str w0, [sp, 84] ldr w0, [sp, 84] cmn w0, #1 beq .L30 add x0, sp, 32 mov w4, 4 mov x3, x0 mov w2, 2 mov w1, 1 ldr w0, [sp, 84] bl setsockopt cmn w0, #1 beq .L31 add x0, sp, 104 mov w2, 16 mov x1, x0 ldr w0, [sp, 84] bl bind cmn w0, #1 beq .L32 mov w1, 1024 ldr w0, [sp, 84] bl listen cmn w0, #1 beq .L33 ldrsw x0, [sp, 52] lsl x0, x0, 2 add x1, sp, 248 ldr w2, [sp, 84] str w2, [x1, x0] ldr w1, [sp, 80] adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf ldr w0, [sp, 52] add w0, w0, 1 str w0, [sp, 52] .L4: ldr w0, [sp, 52] cmp w0, 99 ble .L10 .L27: add x0, sp, 120 str x0, [sp, 96] str wzr, [sp, 56] b .L11 .L12: ldr x0, [sp, 96] ldr w1, [sp, 56] str xzr, [x0, x1, lsl 3] ldr w0, [sp, 56] add w0, w0, 1 str w0, [sp, 56] .L11: ldr w0, [sp, 56] cmp w0, 15 bls .L12 str wzr, [sp, 60] str wzr, [sp, 64] b .L13 .L15: ldrsw x0, [sp, 64] lsl x0, x0, 2 add x1, sp, 248 ldr w0, [x1, x0] add w1, w0, 63 cmp w0, 0 csel w0, w1, w0, lt asr w0, w0, 6 mov w3, w0 sxtw x0, w3 lsl x0, x0, 3 add x1, sp, 120 ldr x0, [x1, x0] ldrsw x1, [sp, 64] lsl x1, x1, 2 add x2, sp, 248 ldr w1, [x2, x1] and w1, w1, 63 mov x2, 1 lsl x1, x2, x1 orr x2, x0, x1 sxtw x0, w3 lsl x0, x0, 3 add x1, sp, 120 str x2, [x1, x0] ldrsw x0, [sp, 64] lsl x0, x0, 2 add x1, sp, 248 ldr w0, [x1, x0] ldr w1, [sp, 60] cmp w1, w0 bge .L14 ldrsw x0, [sp, 64] lsl x0, x0, 2 add x1, sp, 248 ldr w0, [x1, x0] str w0, [sp, 60] .L14: ldr w0, [sp, 64] add w0, w0, 1 str w0, [sp, 64] .L13: ldr w0, [sp, 64] cmp w0, 99 ble .L15 ldr w0, [sp, 60] add w0, w0, 1 add x1, sp, 120 mov x4, 0 mov x3, 0 mov x2, 0 bl select str w0, [sp, 72] ldr w0, [sp, 72] cmp w0, 0 bge .L16 bl __errno_location ldr w0, [x0] cmp w0, 4 beq .L34 bl __errno_location ldr w0, [x0] bl strerror mov x1, x0 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl printf mov w0, 0 bl exit .L16: ldr w0, [sp, 72] cmp w0, 0 beq .L35 str wzr, [sp, 68] b .L20 .L25: ldrsw x0, [sp, 68] lsl x0, x0, 2 add x1, sp, 248 ldr w0, [x1, x0] add w1, w0, 63 cmp w0, 0 csel w0, w1, w0, lt asr w0, w0, 6 sxtw x0, w0 lsl x0, x0, 3 add x1, sp, 120 ldr x0, [x1, x0] ldrsw x1, [sp, 68] lsl x1, x1, 2 add x2, sp, 248 ldr w1, [x2, x1] and w1, w1, 63 mov x2, 1 lsl x1, x2, x1 and x0, x0, x1 cmp x0, 0 beq .L36 mov w0, 16 str w0, [sp, 40] ldrsw x0, [sp, 68] lsl x0, x0, 2 add x1, sp, 248 ldr w0, [x1, x0] add x2, sp, 40 add x1, sp, 104 bl accept str w0, [sp, 76] ldr w0, [sp, 76] cmn w0, #1 beq .L6 ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] ldr w1, [sp, 44] mov w0, 19923 movk w0, 0x1062, lsl 16 smull x0, w1, w0 lsr x0, x0, 32 asr w2, w0, 6 asr w0, w1, 31 sub w0, w2, w0 mov w2, 1000 mul w0, w0, w2 sub w0, w1, w0 cmp w0, 999 bne .L24 ldr w2, [sp, 76] ldr w1, [sp, 44] adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl printf .L24: mov w0, 5000 str w0, [sp, 36] add x0, sp, 36 mov w4, 4 mov x3, x0 mov w2, 7 mov w1, 1 ldr w0, [sp, 76] bl setsockopt add x0, sp, 36 mov w4, 4 mov x3, x0 mov w2, 8 mov w1, 1 ldr w0, [sp, 76] bl setsockopt b .L22 .L36: nop .L22: ldr w0, [sp, 68] add w0, w0, 1 str w0, [sp, 68] .L20: ldr w0, [sp, 68] cmp w0, 99 ble .L25 b .L27 .L34: nop b .L27 .L35: nop b .L27 .L30: nop b .L6 .L31: nop b .L6 .L32: nop b .L6 .L33: nop .L6: ldr w1, [sp, 44] adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl printf bl __errno_location ldr w0, [x0] bl strerror mov x1, x0 adrp x0, .LC6 add x0, x0, :lo12:.LC6 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, 648] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L29 bl __stack_chk_fail .L29: mov w0, w1 ldp x29, x30, [sp] add sp, sp, 656 .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 .align 2 .global breakdance .type breakdance, %function breakdance: .LFB6: .cfi_startproc nop ret .cfi_endproc .LFE6: .size breakdance, .-breakdance .section .rodata .align 3 .LC0: .string "%i" .align 3 .LC1: .string "/proc/%i/exe" .align 3 .LC2: .string "Cannot self-exec: should never happen\n" .text .align 2 .global main .type main, %function main: .LFB7: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str w0, [sp, 28] str x1, [sp, 16] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 56] mov x1, 0 str wzr, [sp, 32] mov w0, 5000 str w0, [sp, 36] ldr w0, [sp, 28] cmp w0, 1 ble .L3 ldr x0, [sp, 16] add x0, x0, 8 ldr x0, [x0] bl atoi str w0, [sp, 36] .L3: ldr w0, [sp, 28] cmp w0, 2 ble .L4 ldr x0, [sp, 16] add x0, x0, 16 ldr x0, [x0] bl atoi str w0, [sp, 32] .L4: ldr w1, [sp, 32] ldr w0, [sp, 36] cmp w1, w0 ble .L5 mov w0, 0 b .L8 .L5: mov x0, 0 bl time mov w1, w0 ldr w0, [sp, 32] add w0, w1, w0 bl srand bl rand mov w1, w0 mov w0, 1073741822 cmp w1, w0 bgt .L7 bl breakdance .L7: ldr w0, [sp, 32] add w0, w0, 1 str w0, [sp, 32] add x3, sp, 40 ldr w2, [sp, 32] adrp x0, .LC0 add x1, x0, :lo12:.LC0 mov x0, x3 bl asprintf bl getpid add x3, sp, 48 mov w2, w0 adrp x0, .LC1 add x1, x0, :lo12:.LC1 mov x0, x3 bl asprintf ldr x5, [sp, 48] ldr x0, [sp, 16] ldr x1, [x0] ldr x0, [sp, 16] add x0, x0, 8 ldr x0, [x0] ldr x2, [sp, 40] mov x4, 0 mov x3, x2 mov x2, x0 mov x0, x5 bl execl adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl perror mov w0, 1 .L8: 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 .L9 bl __stack_chk_fail .L9: mov w0, w1 ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global a .bss .align 3 .type a, %object .size a, 4000004 a: .zero 4000004 .global freq .align 3 .type freq, %object .size freq, 40000004 freq: .zero 40000004 .text .align 2 .global bigMultiply .type bigMultiply, %function bigMultiply: .LFB0: .cfi_startproc sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, 12] str w1, [sp, 8] ldrsw x0, [sp, 12] str x0, [sp, 24] ldrsw x0, [sp, 8] ldr x1, [sp, 24] mul x0, x1, x0 str x0, [sp, 24] ldr x0, [sp, 24] add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size bigMultiply, .-bigMultiply .section .rodata .align 3 .LC0: .string "%d" .align 3 .LC1: .string "Test case #%d: " .align 3 .LC2: .string "%lld\n\n" .text .align 2 .global main .type main, %function main: .LFB1: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 56] mov x1, 0 add x0, sp, 24 mov x1, x0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl __isoc99_scanf mov w0, 1 str w0, [sp, 32] b .L4 .L14: ldr w1, [sp, 32] adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf add x0, sp, 28 mov x1, x0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl __isoc99_scanf str wzr, [sp, 44] str xzr, [sp, 48] mov x2, 23044 movk x2, 0x262, lsl 16 mov w1, 0 adrp x0, freq add x0, x0, :lo12:freq bl memset str wzr, [sp, 36] b .L5 .L7: ldrsw x0, [sp, 36] lsl x1, x0, 2 adrp x0, a add x0, x0, :lo12:a add x0, x1, x0 mov x1, x0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl __isoc99_scanf adrp x0, a add x0, x0, :lo12:a ldrsw x1, [sp, 36] ldr w3, [x0, x1, lsl 2] adrp x0, freq add x0, x0, :lo12:freq sxtw x1, w3 ldr w0, [x0, x1, lsl 2] add w2, w0, 1 adrp x0, freq add x0, x0, :lo12:freq sxtw x1, w3 str w2, [x0, x1, lsl 2] adrp x0, a add x0, x0, :lo12:a ldrsw x1, [sp, 36] ldr w0, [x0, x1, lsl 2] ldr w1, [sp, 44] cmp w1, w0 bge .L6 adrp x0, a add x0, x0, :lo12:a ldrsw x1, [sp, 36] ldr w0, [x0, x1, lsl 2] str w0, [sp, 44] .L6: ldr w0, [sp, 36] add w0, w0, 1 str w0, [sp, 36] .L5: ldr w0, [sp, 28] ldr w1, [sp, 36] cmp w1, w0 blt .L7 adrp x0, freq add x0, x0, :lo12:freq ldr w2, [x0] ldr w1, [sp, 28] adrp x0, freq add x0, x0, :lo12:freq ldr w0, [x0] sub w0, w1, w0 mov w1, w0 mov w0, w2 bl bigMultiply str x0, [sp, 48] adrp x0, freq add x0, x0, :lo12:freq ldr w2, [x0, 4] ldr w1, [sp, 28] adrp x0, freq add x0, x0, :lo12:freq ldr w0, [x0] sub w1, w1, w0 adrp x0, freq add x0, x0, :lo12:freq ldr w0, [x0, 4] sub w0, w1, w0 mov w1, w0 mov w0, w2 bl bigMultiply mov x1, x0 ldr x0, [sp, 48] add x0, x0, x1 str x0, [sp, 48] mov w0, 2 str w0, [sp, 36] b .L8 .L13: adrp x0, freq add x0, x0, :lo12:freq ldrsw x1, [sp, 36] ldr w0, [x0, x1, lsl 2] cmp w0, 0 beq .L9 ldr w0, [sp, 36] lsl w0, w0, 1 str w0, [sp, 40] b .L10 .L12: adrp x0, freq add x0, x0, :lo12:freq ldrsw x1, [sp, 40] ldr w0, [x0, x1, lsl 2] cmp w0, 0 beq .L11 adrp x0, freq add x0, x0, :lo12:freq ldrsw x1, [sp, 36] ldr w2, [x0, x1, lsl 2] adrp x0, freq add x0, x0, :lo12:freq ldrsw x1, [sp, 40] ldr w0, [x0, x1, lsl 2] mov w1, w0 mov w0, w2 bl bigMultiply mov x1, x0 ldr x0, [sp, 48] add x0, x0, x1 str x0, [sp, 48] .L11: ldr w1, [sp, 40] ldr w0, [sp, 36] add w0, w1, w0 str w0, [sp, 40] .L10: ldr w1, [sp, 40] ldr w0, [sp, 44] cmp w1, w0 ble .L12 .L9: ldr w0, [sp, 36] add w0, w0, 1 str w0, [sp, 36] .L8: ldr w0, [sp, 44] lsr w1, w0, 31 add w0, w1, w0 asr w0, w0, 1 mov w1, w0 ldr w0, [sp, 36] cmp w0, w1 ble .L13 ldr x1, [sp, 48] adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf ldr w0, [sp, 32] add w0, w0, 1 str w0, [sp, 32] .L4: ldr w0, [sp, 24] ldr w1, [sp, 32] cmp w1, w0 ble .L14 mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 56] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L16 bl __stack_chk_fail .L16: mov w0, w1 ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "%d\t%lf\n" .text .align 2 .global myMapLines .type myMapLines, %function myMapLines: .LFB6: .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 b .L2 .L12: mov x0, 9218868437227405311 fmov d0, x0 str d0, [sp, 32] mov x0, 4503599627370496 fmov d0, x0 str d0, [sp, 40] add x0, sp, 56 str x0, [sp, 24] add x0, sp, 56 str x0, [sp, 24] .L11: add x0, sp, 16 mov x1, x0 ldr x0, [sp, 24] bl strtod str d0, [sp, 48] ldr x0, [sp, 16] ldr x1, [sp, 24] cmp x1, x0 beq .L19 ldr d1, [sp, 48] ldr d0, [sp, 32] fcmpe d1, d0 bmi .L14 b .L17 .L14: ldr d0, [sp, 48] b .L7 .L17: ldr d0, [sp, 32] .L7: str d0, [sp, 32] ldr d1, [sp, 48] ldr d0, [sp, 40] fcmpe d1, d0 bgt .L15 b .L18 .L15: ldr d0, [sp, 48] b .L10 .L18: ldr d0, [sp, 40] .L10: str d0, [sp, 40] ldr x0, [sp, 16] str x0, [sp, 24] b .L11 .L19: nop ldr d0, [sp, 40] mov w1, 1 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf ldr d0, [sp, 32] mov w1, 2 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf .L2: adrp x0, :got:stdin ldr x0, [x0, #:got_lo12:stdin] ldr x1, [x0] add x0, sp, 56 mov x2, x1 mov w1, 1024 bl fgets cmp x0, 0 bne .L12 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 .L13 bl __stack_chk_fail .L13: ldp x29, x30, [sp] add sp, sp, 1088 .cfi_restore 29 .cfi_restore 30 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size myMapLines, .-myMapLines .align 2 .global main .type main, %function main: .LFB7: .cfi_startproc stp x29, x30, [sp, -16]! .cfi_def_cfa_offset 16 .cfi_offset 29, -16 .cfi_offset 30, -8 mov x29, sp bl myMapLines mov w0, 0 ldp x29, x30, [sp], 16 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global megaInit .type megaInit, %function megaInit: .LFB0: .cfi_startproc nop ret .cfi_endproc .LFE0: .size megaInit, .-megaInit .section .rodata .align 3 .LC0: .string "Call this program with %i arguments\n" .align 3 .LC1: .string "You win!" .align 3 .LC2: .string "%u\n" .text .align 2 .global main .type main, %function main: .LFB1: .cfi_startproc stp x29, x30, [sp, -80]! .cfi_def_cfa_offset 80 .cfi_offset 29, -80 .cfi_offset 30, -72 mov x29, sp str w0, [sp, 28] str x1, [sp, 16] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 72] mov x1, 0 bl megaInit ldr w0, [sp, 28] cmp w0, 2 beq .L3 mov w1, 1 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf mov w0, -1 bl exit .L3: str wzr, [sp, 48] b .L4 .L5: ldrsw x0, [sp, 48] add x0, x0, 1 lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x0, [x0] mov w2, 10 mov x1, 0 bl strtoul strb w0, [sp, 47] ldrsw x0, [sp, 48] add x1, sp, 56 ldrb w2, [sp, 47] strb w2, [x1, x0] ldr w0, [sp, 48] add w0, w0, 1 str w0, [sp, 48] .L4: ldr w0, [sp, 48] cmp w0, 0 ble .L5 add x1, sp, 64 add x0, sp, 56 bl RandomFunc ldrb w0, [sp, 64] cmp w0, 206 bne .L6 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl puts .L6: str wzr, [sp, 52] b .L7 .L8: ldrsw x0, [sp, 52] add x1, sp, 64 ldrb w0, [x1, x0] mov w1, w0 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf ldr w0, [sp, 52] add w0, w0, 1 str w0, [sp, 52] .L7: ldr w0, [sp, 52] cmp w0, 0 ble .L8 mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 72] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L10 bl __stack_chk_fail .L10: mov w0, w1 ldp x29, x30, [sp], 80 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size main, .-main .align 2 .global RandomFunc .type RandomFunc, %function RandomFunc: .LFB2: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 56] mov x1, 0 ldr x0, [sp, 24] ldrb w0, [x0] sub w0, w0, #107 and w0, w0, 255 strb w0, [sp, 48] strb wzr, [sp, 47] b .L12 .L13: ldrb w0, [sp, 48] sxtb w1, w0 ldrb w0, [sp, 48] lsl w0, w0, 3 sxtb w0, w0 and w0, w0, 120 sxtb w0, w0 orr w0, w1, w0 sxtb w0, w0 and w0, w0, 255 strb w0, [sp, 48] ldrb w0, [sp, 47] add w0, w0, 1 strb w0, [sp, 47] .L12: ldr x0, [sp, 24] add x0, x0, 1 ldrb w0, [x0] ldrb w1, [sp, 47] cmp w1, w0 bcc .L13 strb wzr, [sp, 47] b .L14 .L15: ldrb w0, [sp, 47] sxtw x0, w0 add x1, sp, 48 ldrb w0, [x1, x0] mov w1, w0 ldrb w0, [sp, 48] lsr w0, w0, 3 and w0, w0, 255 and w0, w0, 14 orr w0, w0, 1 asr w0, w1, w0 sxtb w1, w0 ldrb w0, [sp, 47] sxtw x0, w0 add x2, sp, 48 ldrb w0, [x2, x0] mov w3, w0 ldrb w0, [sp, 48] lsr w0, w0, 3 and w0, w0, 255 and w0, w0, 14 orr w0, w0, 1 mov w2, 8 sub w0, w2, w0 lsl w0, w3, w0 sxtb w0, w0 orr w0, w1, w0 sxtb w0, w0 and w0, w0, 255 strb w0, [sp, 48] ldrb w0, [sp, 47] add w0, w0, 2 strb w0, [sp, 47] .L14: ldr x0, [sp, 24] add x0, x0, 1 ldrb w0, [x0] ldrb w1, [sp, 47] cmp w1, w0 bcc .L15 ldrb w1, [sp, 48] ldr x0, [sp, 16] strb 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 .L16 bl __stack_chk_fail .L16: ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE2: .size RandomFunc, .-RandomFunc ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global CODECAPI_AVEncMPVGenerateHeaderSeqExt .section .rodata .align 3 .type CODECAPI_AVEncMPVGenerateHeaderSeqExt, %object .size CODECAPI_AVEncMPVGenerateHeaderSeqExt, 24 CODECAPI_AVEncMPVGenerateHeaderSeqExt: .xword 3588720145 .hword 2093 .hword 20075 .ascii "\230\257\017Q\253\023\222\"" .zero 4 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global date .bss .align 3 .type date, %object .size date, 12 date: .zero 12 .section .rodata .align 3 .LC0: .string "input year,month,day:" .align 3 .LC1: .string "%d,%d,%d" .align 3 .LC2: .string "It is the 1st day of the year" .align 3 .LC3: .string "it is the 2nd day of the year" .align 3 .LC4: .string "it is the 3rd day of the year" .align 3 .LC5: .string "%d/%d is the %dth day in %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, .LC0 add x0, x0, :lo12:.LC0 bl printf adrp x0, date+8 add x3, x0, :lo12:date+8 adrp x0, date+4 add x2, x0, :lo12:date+4 adrp x0, date add x1, x0, :lo12:date adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf adrp x0, date add x0, x0, :lo12:date ldr w0, [x0, 4] cmp w0, 12 beq .L2 cmp w0, 12 bgt .L3 cmp w0, 11 beq .L4 cmp w0, 11 bgt .L3 cmp w0, 10 beq .L5 cmp w0, 10 bgt .L3 cmp w0, 9 beq .L6 cmp w0, 9 bgt .L3 cmp w0, 8 beq .L7 cmp w0, 8 bgt .L3 cmp w0, 7 beq .L8 cmp w0, 7 bgt .L3 cmp w0, 6 beq .L9 cmp w0, 6 bgt .L3 cmp w0, 5 beq .L10 cmp w0, 5 bgt .L3 cmp w0, 4 beq .L11 cmp w0, 4 bgt .L3 cmp w0, 3 beq .L12 cmp w0, 3 bgt .L3 cmp w0, 1 beq .L13 cmp w0, 2 beq .L14 b .L3 .L13: adrp x0, date add x0, x0, :lo12:date ldr w0, [x0, 8] str w0, [sp, 28] b .L3 .L14: adrp x0, date add x0, x0, :lo12:date ldr w0, [x0, 8] add w0, w0, 31 str w0, [sp, 28] b .L3 .L12: adrp x0, date add x0, x0, :lo12:date ldr w0, [x0, 8] add w0, w0, 59 str w0, [sp, 28] b .L3 .L11: adrp x0, date add x0, x0, :lo12:date ldr w0, [x0, 8] add w0, w0, 90 str w0, [sp, 28] b .L3 .L10: adrp x0, date add x0, x0, :lo12:date ldr w0, [x0, 8] add w0, w0, 120 str w0, [sp, 28] b .L3 .L9: adrp x0, date add x0, x0, :lo12:date ldr w0, [x0, 8] add w0, w0, 151 str w0, [sp, 28] b .L3 .L8: adrp x0, date add x0, x0, :lo12:date ldr w0, [x0, 8] add w0, w0, 181 str w0, [sp, 28] b .L3 .L7: adrp x0, date add x0, x0, :lo12:date ldr w0, [x0, 8] add w0, w0, 212 str w0, [sp, 28] b .L3 .L6: adrp x0, date add x0, x0, :lo12:date ldr w0, [x0, 8] add w0, w0, 243 str w0, [sp, 28] b .L3 .L5: adrp x0, date add x0, x0, :lo12:date ldr w0, [x0, 8] add w0, w0, 273 str w0, [sp, 28] b .L3 .L4: adrp x0, date add x0, x0, :lo12:date ldr w0, [x0, 8] add w0, w0, 304 str w0, [sp, 28] b .L3 .L2: adrp x0, date add x0, x0, :lo12:date ldr w0, [x0, 8] add w0, w0, 334 str w0, [sp, 28] nop .L3: adrp x0, date add x0, x0, :lo12:date ldr w0, [x0] and w0, w0, 3 cmp w0, 0 bne .L15 adrp x0, date add x0, x0, :lo12:date ldr w1, [x0] mov w0, 34079 movk w0, 0x51eb, lsl 16 smull x0, w1, w0 lsr x0, x0, 32 asr w2, w0, 5 asr w0, w1, 31 sub w0, w2, w0 mov w2, 100 mul w0, w0, w2 sub w0, w1, w0 cmp w0, 0 bne .L16 .L15: adrp x0, date add x0, x0, :lo12:date ldr w1, [x0] mov w0, 34079 movk w0, 0x51eb, lsl 16 smull x0, w1, w0 lsr x0, x0, 32 asr w2, w0, 7 asr w0, w1, 31 sub w0, w2, w0 mov w2, 400 mul w0, w0, w2 sub w0, w1, w0 cmp w0, 0 bne .L17 .L16: adrp x0, date add x0, x0, :lo12:date ldr w0, [x0, 4] cmp w0, 2 ble .L17 ldr w0, [sp, 28] add w0, w0, 1 str w0, [sp, 28] .L17: adrp x0, date add x0, x0, :lo12:date ldr w0, [x0, 8] cmp w0, 1 bne .L18 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf b .L19 .L18: adrp x0, date add x0, x0, :lo12:date ldr w0, [x0, 8] cmp w0, 2 bne .L20 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl printf b .L19 .L20: adrp x0, date add x0, x0, :lo12:date ldr w0, [x0, 8] cmp w0, 3 bne .L21 adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl printf b .L19 .L21: adrp x0, date add x0, x0, :lo12:date ldr w1, [x0, 4] adrp x0, date add x0, x0, :lo12:date ldr w2, [x0, 8] adrp x0, date add x0, x0, :lo12:date ldr w0, [x0] mov w4, w0 ldr w3, [sp, 28] adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl printf .L19: mov w0, 0 ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global fonte .bss .align 3 .type fonte, %object .size fonte, 8 fonte: .zero 8 .global listaTokens .align 3 .type listaTokens, %object .size listaTokens, 8 listaTokens: .zero 8 .global listaErros .align 3 .type listaErros, %object .size listaErros, 8 listaErros: .zero 8 .global novoLexema .align 3 .type novoLexema, %object .size novoLexema, 200 novoLexema: .zero 200 .global novoToken .align 3 .type novoToken, %object .size novoToken, 8 novoToken: .zero 8 .global caractere .type caractere, %object .size caractere, 1 caractere: .zero 1 .global linha .data .align 2 .type linha, %object .size linha, 4 linha: .word 1 .global coluna .bss .align 2 .type coluna, %object .size coluna, 4 coluna: .zero 4 .global colunaLexema .data .align 2 .type colunaLexema, %object .size colunaLexema, 4 colunaLexema: .word 1 .global boolNovoLexema .bss .align 2 .type boolNovoLexema, %object .size boolNovoLexema, 4 boolNovoLexema: .zero 4 .global boolError .align 2 .type boolError, %object .size boolError, 4 boolError: .zero 4 .global boolTab .align 2 .type boolTab, %object .size boolTab, 4 boolTab: .zero 4 .global tokens .data .align 3 .type tokens, %object .size tokens, 1000 tokens: .string "CLASS" .zero 14 .string "FOR" .zero 16 .string "WHILE" .zero 14 .string "IF" .zero 17 .string "ELSE" .zero 15 .string "SWITCH" .zero 13 .string "CASE" .zero 15 .string "VOID" .zero 15 .string "CHAR" .zero 15 .string "INT" .zero 16 .string "FLOAT" .zero 14 .string "BOOL" .zero 15 .string "CONST" .zero 14 .string "TRUE" .zero 15 .string "FALSE" .zero 14 .string "NULL" .zero 15 .string "RETURN" .zero 13 .string "BREAK" .zero 14 .string "STRUCT" .zero 13 .string "ADD" .zero 16 .string "SUB" .zero 16 .string "MUL" .zero 16 .string "DIV" .zero 16 .string "MOD" .zero 16 .string "IGUAL" .zero 14 .string "MAIOR_IGUAL" .zero 8 .string "MENOR_IGUAL" .zero 8 .string "MAIOR" .zero 14 .string "MENOR" .zero 14 .string "DIF" .zero 16 .string "NOT" .zero 16 .string "AND" .zero 16 .string "OR" .zero 17 .string "ATRIB" .zero 14 .string "ABRE_PAREN" .zero 9 .string "FECHA_PAREN" .zero 8 .string "ABRE_COLCH" .zero 9 .string "FECHA_COLCH" .zero 8 .string "ABRE_CHAV" .zero 10 .string "FECHA_CHAV" .zero 9 .string "FIM" .zero 16 .string "SEPARADOR" .zero 10 .string "INCREMENTO" .zero 9 .string "DECREMENTO" .zero 9 .zero 120 .global res_palavras .align 3 .type res_palavras, %object .size res_palavras, 380 res_palavras: .string "class" .zero 14 .string "for" .zero 16 .string "while" .zero 14 .string "if" .zero 17 .string "else" .zero 15 .string "switch" .zero 13 .string "case" .zero 15 .string "void" .zero 15 .string "char" .zero 15 .string "int" .zero 16 .string "float" .zero 14 .string "bool" .zero 15 .string "const" .zero 14 .string "true" .zero 15 .string "false" .zero 14 .string "null" .zero 15 .string "return" .zero 13 .string "break" .zero 14 .string "struct" .zero 13 .global res_simbolos .align 3 .type res_simbolos, %object .size res_simbolos, 81 res_simbolos: .string "+" .zero 1 .string "-" .zero 1 .string "*" .zero 1 .string "/" .zero 1 .string "%" .zero 1 .string "==" .string ">=" .string "<=" .string ">" .zero 1 .string "<" .zero 1 .string "!=" .string "!" .zero 1 .string "&&" .string "||" .string "=" .zero 1 .string "(" .zero 1 .string ")" .zero 1 .string "[" .zero 1 .string "]" .zero 1 .string "{" .zero 1 .string "}" .zero 1 .string ";" .zero 1 .string "," .zero 1 .string "++" .string "--" .zero 6 .text .align 2 .global main .type main, %function main: .LFB6: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str w0, [sp, 28] str x1, [sp, 16] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 40] mov x1, 0 ldr x0, [sp, 16] add x0, x0, 8 ldr x1, [x0] add x0, sp, 32 bl copiaString ldr x0, [sp, 32] bl inicializa bl analisador adrp x0, listaTokens add x0, x0, :lo12:listaTokens ldr x0, [x0] mov w1, 0 bl imprimeListaTokens adrp x0, listaErros add x0, x0, :lo12:listaErros ldr x0, [x0] bl imprimeListaErros adrp x0, fonte add x0, x0, :lo12:fonte ldr x0, [x0] bl fclose mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 40] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .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 .section .rodata .align 3 .LC0: .string "r" .align 3 .LC1: .string "Erro ao abrir arquivo." .text .align 2 .global inicializa .type inicializa, %function inicializa: .LFB7: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str x0, [sp, 24] adrp x0, .LC0 add x1, x0, :lo12:.LC0 ldr x0, [sp, 24] bl fopen mov x1, x0 adrp x0, fonte add x0, x0, :lo12:fonte str x1, [x0] adrp x0, fonte add x0, x0, :lo12:fonte ldr x0, [x0] cmp x0, 0 bne .L5 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl puts mov w0, 1 bl exit .L5: adrp x0, listaTokens add x0, x0, :lo12:listaTokens str xzr, [x0] adrp x0, listaErros add x0, x0, :lo12:listaErros str xzr, [x0] nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size inicializa, .-inicializa .align 2 .global analisador .type analisador, %function analisador: .LFB8: .cfi_startproc stp x29, x30, [sp, -16]! .cfi_def_cfa_offset 16 .cfi_offset 29, -16 .cfi_offset 30, -8 mov x29, sp b .L7 .L20: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 122 bls .L9 .L8: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 64 bls .L10 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 90 bhi .L10 .L9: bl identificador adrp x0, boolError add x0, x0, :lo12:boolError ldr w0, [x0] cmp w0, 0 bne .L11 adrp x0, boolNovoLexema add x0, x0, :lo12:boolNovoLexema mov w1, 1 str w1, [x0] adrp x0, novoLexema add x0, x0, :lo12:novoLexema bl verificaTokenIdentificador mov x1, x0 adrp x0, novoToken add x0, x0, :lo12:novoToken bl copiaString b .L13 .L11: bl addListaErros b .L13 .L10: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 47 bls .L14 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 57 bhi .L14 bl numero adrp x0, boolError add x0, x0, :lo12:boolError ldr w0, [x0] cmp w0, 0 bne .L15 adrp x0, boolNovoLexema add x0, x0, :lo12:boolNovoLexema mov w1, 1 str w1, [x0] b .L13 .L15: bl addListaErros b .L13 .L14: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 10 bne .L17 adrp x0, linha add x0, x0, :lo12:linha ldr w0, [x0] add w1, w0, 1 adrp x0, linha add x0, x0, :lo12:linha str w1, [x0] adrp x0, coluna add x0, x0, :lo12:coluna str wzr, [x0] b .L13 .L17: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 32 beq .L13 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 9 beq .L13 bl simbolos adrp x0, boolError add x0, x0, :lo12:boolError ldr w0, [x0] cmp w0, 0 bne .L18 adrp x0, boolNovoLexema add x0, x0, :lo12:boolNovoLexema mov w1, 1 str w1, [x0] b .L13 .L18: bl addListaErros .L13: adrp x0, boolNovoLexema add x0, x0, :lo12:boolNovoLexema ldr w0, [x0] cmp w0, 0 beq .L7 bl addListaTokens .L7: adrp x0, fonte add x0, x0, :lo12:fonte ldr x0, [x0] bl fgetc and w1, w0, 255 adrp x0, caractere add x0, x0, :lo12:caractere strb w1, [x0] adrp x0, boolNovoLexema add x0, x0, :lo12:boolNovoLexema str wzr, [x0] adrp x0, boolError add x0, x0, :lo12:boolError str wzr, [x0] adrp x0, boolTab add x0, x0, :lo12:boolTab str wzr, [x0] adrp x0, novoLexema add x0, x0, :lo12:novoLexema strb wzr, [x0] adrp x0, coluna add x0, x0, :lo12:coluna ldr w0, [x0] add w1, w0, 1 adrp x0, coluna add x0, x0, :lo12:coluna str w1, [x0] adrp x0, coluna add x0, x0, :lo12:coluna ldr w1, [x0] adrp x0, colunaLexema add x0, x0, :lo12:colunaLexema str w1, [x0] adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 96 bls .L8 b .L20 .cfi_endproc .LFE8: .size analisador, .-analisador .section .rodata .align 3 .LC2: .string "caractere invalido em IDENT" .text .align 2 .global identificador .type identificador, %function identificador: .LFB9: .cfi_startproc stp x29, x30, [sp, -16]! .cfi_def_cfa_offset 16 .cfi_offset 29, -16 .cfi_offset 30, -8 mov x29, sp adrp x0, novoLexema add x0, x0, :lo12:novoLexema strb wzr, [x0] b .L22 .L24: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] mov w1, w0 adrp x0, novoLexema add x0, x0, :lo12:novoLexema bl concatChar adrp x0, fonte add x0, x0, :lo12:fonte ldr x0, [x0] bl fgetc and w1, w0, 255 adrp x0, caractere add x0, x0, :lo12:caractere strb w1, [x0] adrp x0, coluna add x0, x0, :lo12:coluna ldr w0, [x0] add w1, w0, 1 adrp x0, coluna add x0, x0, :lo12:coluna str w1, [x0] adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 10 bne .L22 adrp x0, linha add x0, x0, :lo12:linha ldr w0, [x0] add w1, w0, 1 adrp x0, linha add x0, x0, :lo12:linha str w1, [x0] .L22: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 96 bls .L23 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 122 bls .L24 .L23: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 64 bls .L25 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 90 bls .L24 .L25: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 47 bls .L26 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 57 bls .L24 .L26: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 32 beq .L27 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 40 beq .L27 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 41 beq .L27 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 123 beq .L27 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 42 beq .L27 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 47 beq .L27 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 43 beq .L27 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 45 beq .L27 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 91 beq .L27 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 93 beq .L27 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 59 beq .L27 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 44 beq .L27 adrp x0, boolError add x0, x0, :lo12:boolError mov w1, 1 str w1, [x0] b .L28 .L30: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] mov w1, w0 adrp x0, novoLexema add x0, x0, :lo12:novoLexema bl concatChar adrp x0, fonte add x0, x0, :lo12:fonte ldr x0, [x0] bl fgetc and w1, w0, 255 adrp x0, caractere add x0, x0, :lo12:caractere strb w1, [x0] .L28: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 32 beq .L29 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 59 beq .L29 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 44 beq .L29 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 10 beq .L29 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 123 beq .L29 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 40 beq .L29 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 41 beq .L29 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 93 bne .L30 .L29: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] mov w2, w0 adrp x0, fonte add x0, x0, :lo12:fonte ldr x0, [x0] mov x1, x0 mov w0, w2 bl ungetc adrp x0, .LC2 add x1, x0, :lo12:.LC2 adrp x0, novoToken add x0, x0, :lo12:novoToken bl copiaString b .L21 .L27: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 32 beq .L21 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] mov w2, w0 adrp x0, fonte add x0, x0, :lo12:fonte ldr x0, [x0] mov x1, x0 mov w0, w2 bl ungetc adrp x0, coluna add x0, x0, :lo12:coluna ldr w0, [x0] sub w1, w0, #1 adrp x0, coluna add x0, x0, :lo12:coluna str w1, [x0] .L21: ldp x29, x30, [sp], 16 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE9: .size identificador, .-identificador .section .rodata .align 3 .LC3: .string "IDENT" .text .align 2 .global verificaTokenIdentificador .type verificaTokenIdentificador, %function verificaTokenIdentificador: .LFB10: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str wzr, [sp, 44] b .L33 .L36: ldrsw x1, [sp, 44] mov x0, x1 lsl x0, x0, 2 add x0, x0, x1 lsl x0, x0, 2 adrp x1, res_palavras add x1, x1, :lo12:res_palavras add x0, x0, x1 ldr x1, [sp, 24] bl strcmp cmp w0, 0 bne .L34 ldrsw x1, [sp, 44] mov x0, x1 lsl x0, x0, 2 add x0, x0, x1 lsl x0, x0, 2 adrp x1, tokens add x1, x1, :lo12:tokens add x0, x0, x1 b .L35 .L34: ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L33: ldr w0, [sp, 44] cmp w0, 18 ble .L36 adrp x0, .LC3 add x0, x0, :lo12:.LC3 .L35: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE10: .size verificaTokenIdentificador, .-verificaTokenIdentificador .section .rodata .align 3 .LC4: .string "\\\"" .align 3 .LC5: .string "CADEIA" .align 3 .LC6: .string "COMENT_CURTO" .align 3 .LC7: .string "COMENT_LONGO" .align 3 .LC8: .string "ERRO LEXICO" .align 3 .LC9: .string "s\303\255mbolo inv\303\241lido" .text .align 2 .global simbolos .type simbolos, %function simbolos: .LFB11: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str wzr, [sp, 24] str wzr, [sp, 28] adrp x0, novoLexema add x0, x0, :lo12:novoLexema strb wzr, [x0] adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 34 bne .L38 mov w0, 1 str w0, [sp, 24] adrp x0, novoLexema add x0, x0, :lo12:novoLexema bl strlen mov x1, x0 adrp x0, novoLexema add x0, x0, :lo12:novoLexema add x2, x1, x0 adrp x0, .LC4 add x1, x0, :lo12:.LC4 mov x0, x2 ldrh w2, [x1] strh w2, [x0] ldrb w1, [x1, 2] strb w1, [x0, 2] adrp x0, fonte add x0, x0, :lo12:fonte ldr x0, [x0] bl fgetc and w1, w0, 255 adrp x0, caractere add x0, x0, :lo12:caractere strb w1, [x0] adrp x0, coluna add x0, x0, :lo12:coluna ldr w0, [x0] add w1, w0, 1 adrp x0, coluna add x0, x0, :lo12:coluna str w1, [x0] .L39: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] mov w1, w0 adrp x0, novoLexema add x0, x0, :lo12:novoLexema bl concatChar adrp x0, fonte add x0, x0, :lo12:fonte ldr x0, [x0] bl fgetc and w1, w0, 255 adrp x0, caractere add x0, x0, :lo12:caractere strb w1, [x0] adrp x0, coluna add x0, x0, :lo12:coluna ldr w0, [x0] add w1, w0, 1 adrp x0, coluna add x0, x0, :lo12:coluna str w1, [x0] adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 34 bne .L39 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 34 bne .L40 adrp x0, novoLexema add x0, x0, :lo12:novoLexema bl strlen mov x1, x0 adrp x0, novoLexema add x0, x0, :lo12:novoLexema add x2, x1, x0 adrp x0, .LC4 add x1, x0, :lo12:.LC4 mov x0, x2 ldrh w2, [x1] strh w2, [x0] ldrb w1, [x1, 2] strb w1, [x0, 2] .L40: adrp x0, .LC5 add x1, x0, :lo12:.LC5 adrp x0, novoToken add x0, x0, :lo12:novoToken bl copiaString b .L41 .L38: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 60 beq .L42 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 62 beq .L42 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 61 beq .L42 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 33 bne .L43 .L42: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] mov w1, w0 adrp x0, novoLexema add x0, x0, :lo12:novoLexema bl concatChar adrp x0, fonte add x0, x0, :lo12:fonte ldr x0, [x0] bl fgetc and w1, w0, 255 adrp x0, caractere add x0, x0, :lo12:caractere strb w1, [x0] adrp x0, coluna add x0, x0, :lo12:coluna ldr w0, [x0] add w1, w0, 1 adrp x0, coluna add x0, x0, :lo12:coluna str w1, [x0] adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 61 bne .L41 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] mov w1, w0 adrp x0, novoLexema add x0, x0, :lo12:novoLexema bl concatChar b .L41 .L43: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 47 bne .L45 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] mov w1, w0 adrp x0, novoLexema add x0, x0, :lo12:novoLexema bl concatChar adrp x0, fonte add x0, x0, :lo12:fonte ldr x0, [x0] bl fgetc and w1, w0, 255 adrp x0, caractere add x0, x0, :lo12:caractere strb w1, [x0] adrp x0, coluna add x0, x0, :lo12:coluna ldr w0, [x0] add w1, w0, 1 adrp x0, coluna add x0, x0, :lo12:coluna str w1, [x0] adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 47 bne .L46 b .L47 .L48: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] mov w1, w0 adrp x0, novoLexema add x0, x0, :lo12:novoLexema bl concatChar adrp x0, fonte add x0, x0, :lo12:fonte ldr x0, [x0] bl fgetc and w1, w0, 255 adrp x0, caractere add x0, x0, :lo12:caractere strb w1, [x0] adrp x0, coluna add x0, x0, :lo12:coluna ldr w0, [x0] add w1, w0, 1 adrp x0, coluna add x0, x0, :lo12:coluna str w1, [x0] .L47: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 10 bne .L48 adrp x0, linha add x0, x0, :lo12:linha ldr w0, [x0] add w1, w0, 1 adrp x0, linha add x0, x0, :lo12:linha str w1, [x0] adrp x0, coluna add x0, x0, :lo12:coluna mov w1, 1 str w1, [x0] adrp x0, .LC6 add x1, x0, :lo12:.LC6 adrp x0, novoToken add x0, x0, :lo12:novoToken bl copiaString mov w0, 1 str w0, [sp, 24] b .L41 .L46: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 42 bne .L41 b .L49 .L51: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] mov w1, w0 adrp x0, novoLexema add x0, x0, :lo12:novoLexema bl concatChar adrp x0, fonte add x0, x0, :lo12:fonte ldr x0, [x0] bl fgetc and w1, w0, 255 adrp x0, caractere add x0, x0, :lo12:caractere strb w1, [x0] adrp x0, coluna add x0, x0, :lo12:coluna ldr w0, [x0] add w1, w0, 1 adrp x0, coluna add x0, x0, :lo12:coluna str w1, [x0] adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 10 bne .L50 adrp x0, caractere add x0, x0, :lo12:caractere mov w1, 32 strb w1, [x0] adrp x0, linha add x0, x0, :lo12:linha ldr w0, [x0] add w1, w0, 1 adrp x0, linha add x0, x0, :lo12:linha str w1, [x0] .L50: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 42 bne .L49 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] mov w1, w0 adrp x0, novoLexema add x0, x0, :lo12:novoLexema bl concatChar adrp x0, fonte add x0, x0, :lo12:fonte ldr x0, [x0] bl fgetc and w1, w0, 255 adrp x0, caractere add x0, x0, :lo12:caractere strb w1, [x0] adrp x0, coluna add x0, x0, :lo12:coluna ldr w0, [x0] add w1, w0, 1 adrp x0, coluna add x0, x0, :lo12:coluna str w1, [x0] adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 47 bne .L49 mov w0, 1 str w0, [sp, 28] adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] mov w1, w0 adrp x0, novoLexema add x0, x0, :lo12:novoLexema bl concatChar .L49: ldr w0, [sp, 28] cmp w0, 1 bne .L51 adrp x0, .LC7 add x1, x0, :lo12:.LC7 adrp x0, novoToken add x0, x0, :lo12:novoToken bl copiaString mov w0, 1 str w0, [sp, 24] b .L41 .L45: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 38 bne .L52 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] mov w1, w0 adrp x0, novoLexema add x0, x0, :lo12:novoLexema bl concatChar adrp x0, fonte add x0, x0, :lo12:fonte ldr x0, [x0] bl fgetc and w1, w0, 255 adrp x0, caractere add x0, x0, :lo12:caractere strb w1, [x0] adrp x0, coluna add x0, x0, :lo12:coluna ldr w0, [x0] add w1, w0, 1 adrp x0, coluna add x0, x0, :lo12:coluna str w1, [x0] adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 38 bne .L41 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] mov w1, w0 adrp x0, novoLexema add x0, x0, :lo12:novoLexema bl concatChar b .L41 .L52: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 124 bne .L53 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] mov w1, w0 adrp x0, novoLexema add x0, x0, :lo12:novoLexema bl concatChar adrp x0, fonte add x0, x0, :lo12:fonte ldr x0, [x0] bl fgetc and w1, w0, 255 adrp x0, caractere add x0, x0, :lo12:caractere strb w1, [x0] adrp x0, coluna add x0, x0, :lo12:coluna ldr w0, [x0] add w1, w0, 1 adrp x0, coluna add x0, x0, :lo12:coluna str w1, [x0] adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 124 bne .L41 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] mov w1, w0 adrp x0, novoLexema add x0, x0, :lo12:novoLexema bl concatChar b .L41 .L53: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 43 bne .L54 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] mov w1, w0 adrp x0, novoLexema add x0, x0, :lo12:novoLexema bl concatChar adrp x0, fonte add x0, x0, :lo12:fonte ldr x0, [x0] bl fgetc and w1, w0, 255 adrp x0, caractere add x0, x0, :lo12:caractere strb w1, [x0] adrp x0, coluna add x0, x0, :lo12:coluna ldr w0, [x0] add w1, w0, 1 adrp x0, coluna add x0, x0, :lo12:coluna str w1, [x0] adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 43 bne .L55 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] mov w1, w0 adrp x0, novoLexema add x0, x0, :lo12:novoLexema bl concatChar b .L41 .L55: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] mov w2, w0 adrp x0, fonte add x0, x0, :lo12:fonte ldr x0, [x0] mov x1, x0 mov w0, w2 bl ungetc adrp x0, coluna add x0, x0, :lo12:coluna ldr w0, [x0] sub w1, w0, #1 adrp x0, coluna add x0, x0, :lo12:coluna str w1, [x0] b .L41 .L54: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 45 bne .L56 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] mov w1, w0 adrp x0, novoLexema add x0, x0, :lo12:novoLexema bl concatChar adrp x0, fonte add x0, x0, :lo12:fonte ldr x0, [x0] bl fgetc and w1, w0, 255 adrp x0, caractere add x0, x0, :lo12:caractere strb w1, [x0] adrp x0, coluna add x0, x0, :lo12:coluna ldr w0, [x0] add w1, w0, 1 adrp x0, coluna add x0, x0, :lo12:coluna str w1, [x0] adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 45 bne .L57 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] mov w1, w0 adrp x0, novoLexema add x0, x0, :lo12:novoLexema bl concatChar b .L41 .L57: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] mov w2, w0 adrp x0, fonte add x0, x0, :lo12:fonte ldr x0, [x0] mov x1, x0 mov w0, w2 bl ungetc adrp x0, coluna add x0, x0, :lo12:coluna ldr w0, [x0] sub w1, w0, #1 adrp x0, coluna add x0, x0, :lo12:coluna str w1, [x0] b .L41 .L56: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] mov w1, w0 adrp x0, novoLexema add x0, x0, :lo12:novoLexema bl concatChar .L41: ldr w0, [sp, 24] cmp w0, 0 bne .L58 adrp x0, novoLexema add x0, x0, :lo12:novoLexema bl getTokenSimbolo mov x1, x0 adrp x0, novoToken add x0, x0, :lo12:novoToken str x1, [x0] .L58: adrp x0, novoToken add x0, x0, :lo12:novoToken ldr x2, [x0] adrp x0, .LC8 add x1, x0, :lo12:.LC8 mov x0, x2 bl strcmp cmp w0, 0 bne .L63 adrp x0, boolError add x0, x0, :lo12:boolError mov w1, 1 str w1, [x0] b .L60 .L62: adrp x0, fonte add x0, x0, :lo12:fonte ldr x0, [x0] bl fgetc and w1, w0, 255 adrp x0, caractere add x0, x0, :lo12:caractere strb w1, [x0] adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] mov w1, w0 adrp x0, novoLexema add x0, x0, :lo12:novoLexema bl concatChar .L60: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 32 beq .L61 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 59 beq .L61 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 10 beq .L61 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 123 beq .L61 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 40 beq .L61 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 41 bne .L62 .L61: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] mov w2, w0 adrp x0, fonte add x0, x0, :lo12:fonte ldr x0, [x0] mov x1, x0 mov w0, w2 bl ungetc adrp x0, .LC9 add x1, x0, :lo12:.LC9 adrp x0, novoToken add x0, x0, :lo12:novoToken bl copiaString .L63: nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE11: .size simbolos, .-simbolos .align 2 .global getTokenSimbolo .type getTokenSimbolo, %function getTokenSimbolo: .LFB12: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str wzr, [sp, 44] b .L65 .L68: ldrsw x1, [sp, 44] mov x0, x1 lsl x0, x0, 1 add x0, x0, x1 adrp x1, res_simbolos add x1, x1, :lo12:res_simbolos add x0, x0, x1 ldr x1, [sp, 24] bl strcmp cmp w0, 0 bne .L66 ldr w0, [sp, 44] add w0, w0, 19 sxtw x1, w0 mov x0, x1 lsl x0, x0, 2 add x0, x0, x1 lsl x0, x0, 2 adrp x1, tokens add x1, x1, :lo12:tokens add x0, x0, x1 b .L67 .L66: ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L65: ldr w0, [sp, 44] cmp w0, 26 ble .L68 adrp x0, .LC8 add x0, x0, :lo12:.LC8 .L67: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE12: .size getTokenSimbolo, .-getTokenSimbolo .section .rodata .align 3 .LC10: .string "esperado n\303\272mero" .align 3 .LC11: .string "NUM_FLOAT" .align 3 .LC12: .string "NUM_INT" .text .align 2 .global numero .type numero, %function numero: .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 wzr, [sp, 28] adrp x0, novoLexema add x0, x0, :lo12:novoLexema strb wzr, [x0] b .L70 .L73: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] mov w1, w0 adrp x0, novoLexema add x0, x0, :lo12:novoLexema bl concatChar adrp x0, fonte add x0, x0, :lo12:fonte ldr x0, [x0] bl fgetc and w1, w0, 255 adrp x0, caractere add x0, x0, :lo12:caractere strb w1, [x0] adrp x0, coluna add x0, x0, :lo12:coluna ldr w0, [x0] add w1, w0, 1 adrp x0, coluna add x0, x0, :lo12:coluna str w1, [x0] adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 46 bne .L71 mov w0, 1 str w0, [sp, 28] .L71: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 10 bne .L70 adrp x0, linha add x0, x0, :lo12:linha ldr w0, [x0] add w1, w0, 1 adrp x0, linha add x0, x0, :lo12:linha str w1, [x0] .L70: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 47 bls .L72 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 57 bls .L73 .L72: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 46 beq .L73 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 32 beq .L74 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 41 beq .L74 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 42 beq .L74 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 47 beq .L74 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 43 beq .L74 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 45 beq .L74 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 91 beq .L74 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 93 beq .L74 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 59 beq .L74 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 44 beq .L74 adrp x0, boolError add x0, x0, :lo12:boolError mov w1, 1 str w1, [x0] b .L75 .L77: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] mov w1, w0 adrp x0, novoLexema add x0, x0, :lo12:novoLexema bl concatChar adrp x0, fonte add x0, x0, :lo12:fonte ldr x0, [x0] bl fgetc and w1, w0, 255 adrp x0, caractere add x0, x0, :lo12:caractere strb w1, [x0] .L75: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 32 beq .L76 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 59 beq .L76 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 44 beq .L76 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 10 bne .L77 .L76: adrp x0, .LC10 add x1, x0, :lo12:.LC10 adrp x0, novoToken add x0, x0, :lo12:novoToken bl copiaString b .L69 .L74: ldr w0, [sp, 28] cmp w0, 0 beq .L79 adrp x0, .LC11 add x1, x0, :lo12:.LC11 adrp x0, novoToken add x0, x0, :lo12:novoToken bl copiaString b .L80 .L79: adrp x0, .LC12 add x1, x0, :lo12:.LC12 adrp x0, novoToken add x0, x0, :lo12:novoToken bl copiaString .L80: adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] cmp w0, 32 beq .L69 adrp x0, caractere add x0, x0, :lo12:caractere ldrb w0, [x0] mov w2, w0 adrp x0, fonte add x0, x0, :lo12:fonte ldr x0, [x0] mov x1, x0 mov w0, w2 bl ungetc adrp x0, coluna add x0, x0, :lo12:coluna ldr w0, [x0] sub w1, w0, #1 adrp x0, coluna add x0, x0, :lo12:coluna str w1, [x0] .L69: ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE13: .size numero, .-numero .align 2 .global addListaTokens .type addListaTokens, %function addListaTokens: .LFB14: .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, 248 bl malloc str x0, [sp, 24] ldr x2, [sp, 24] adrp x0, novoToken add x0, x0, :lo12:novoToken ldr x0, [x0] mov x1, x0 mov x0, x2 bl strcpy ldr x0, [sp, 24] add x2, x0, 30 adrp x0, novoLexema add x1, x0, :lo12:novoLexema mov x0, x2 bl strcpy adrp x0, linha add x0, x0, :lo12:linha ldr w1, [x0] ldr x0, [sp, 24] str w1, [x0, 232] adrp x0, colunaLexema add x0, x0, :lo12:colunaLexema ldr w1, [x0] ldr x0, [sp, 24] str w1, [x0, 236] ldr x0, [sp, 24] str xzr, [x0, 240] adrp x0, listaTokens add x0, x0, :lo12:listaTokens ldr x0, [x0] cmp x0, 0 bne .L82 adrp x0, listaTokens add x0, x0, :lo12:listaTokens ldr x1, [sp, 24] str x1, [x0] b .L86 .L82: adrp x0, listaTokens add x0, x0, :lo12:listaTokens ldr x0, [x0] str x0, [sp, 16] b .L84 .L85: ldr x0, [sp, 16] ldr x0, [x0, 240] str x0, [sp, 16] .L84: ldr x0, [sp, 16] ldr x0, [x0, 240] cmp x0, 0 bne .L85 ldr x0, [sp, 16] ldr x1, [sp, 24] str x1, [x0, 240] .L86: nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE14: .size addListaTokens, .-addListaTokens .section .rodata .align 3 .LC13: .string "<%s,\"%s\">\n" .align 3 .LC14: .string "<%s,\"%s\">" .text .align 2 .global imprimeListaTokens .type imprimeListaTokens, %function imprimeListaTokens: .LFB15: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str w1, [sp, 20] ldr x0, [sp, 24] str x0, [sp, 40] b .L88 .L91: ldr w0, [sp, 20] cmp w0, 0 beq .L89 ldr x1, [sp, 40] ldr x0, [sp, 40] add x0, x0, 30 mov x2, x0 adrp x0, .LC13 add x0, x0, :lo12:.LC13 bl printf b .L90 .L89: ldr x1, [sp, 40] ldr x0, [sp, 40] add x0, x0, 30 mov x2, x0 adrp x0, .LC14 add x0, x0, :lo12:.LC14 bl printf .L90: ldr x0, [sp, 40] ldr x0, [x0, 240] str x0, [sp, 40] .L88: ldr x0, [sp, 40] cmp x0, 0 bne .L91 nop nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE15: .size imprimeListaTokens, .-imprimeListaTokens .align 2 .global addListaErros .type addListaErros, %function addListaErros: .LFB16: .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, 248 bl malloc str x0, [sp, 24] ldr x2, [sp, 24] adrp x0, novoToken add x0, x0, :lo12:novoToken ldr x0, [x0] mov x1, x0 mov x0, x2 bl strcpy ldr x0, [sp, 24] add x2, x0, 30 adrp x0, novoLexema add x1, x0, :lo12:novoLexema mov x0, x2 bl strcpy adrp x0, linha add x0, x0, :lo12:linha ldr w1, [x0] ldr x0, [sp, 24] str w1, [x0, 232] adrp x0, colunaLexema add x0, x0, :lo12:colunaLexema ldr w1, [x0] ldr x0, [sp, 24] str w1, [x0, 236] ldr x0, [sp, 24] str xzr, [x0, 240] adrp x0, listaErros add x0, x0, :lo12:listaErros ldr x0, [x0] cmp x0, 0 bne .L93 adrp x0, listaErros add x0, x0, :lo12:listaErros ldr x1, [sp, 24] str x1, [x0] b .L97 .L93: adrp x0, listaErros add x0, x0, :lo12:listaErros ldr x0, [x0] str x0, [sp, 16] b .L95 .L96: ldr x0, [sp, 16] ldr x0, [x0, 240] str x0, [sp, 16] .L95: ldr x0, [sp, 16] ldr x0, [x0, 240] cmp x0, 0 bne .L96 ldr x0, [sp, 16] ldr x1, [sp, 24] str x1, [x0, 240] .L97: nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE16: .size addListaErros, .-addListaErros .section .rodata .align 3 .LC15: .string "\n%d:%d: '%s' %s" .text .align 2 .global imprimeListaErros .type imprimeListaErros, %function imprimeListaErros: .LFB17: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] ldr x0, [sp, 24] str x0, [sp, 40] b .L99 .L100: ldr x0, [sp, 40] ldr w1, [x0, 232] ldr x0, [sp, 40] ldr w2, [x0, 236] ldr x0, [sp, 40] add x0, x0, 30 ldr x3, [sp, 40] mov x4, x3 mov x3, x0 adrp x0, .LC15 add x0, x0, :lo12:.LC15 bl printf ldr x0, [sp, 40] ldr x0, [x0, 240] str x0, [sp, 40] .L99: ldr x0, [sp, 40] cmp x0, 0 bne .L100 nop nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE17: .size imprimeListaErros, .-imprimeListaErros .align 2 .global copiaString .type copiaString, %function copiaString: .LFB18: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] ldr x0, [sp, 16] bl strlen add w0, w0, 1 str w0, [sp, 44] ldrsw x0, [sp, 44] bl malloc mov x1, x0 ldr x0, [sp, 24] str x1, [x0] ldr x0, [sp, 24] ldr x0, [x0] ldr x1, [sp, 16] bl strcpy nop ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE18: .size copiaString, .-copiaString .align 2 .global concatChar .type concatChar, %function concatChar: .LFB19: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] strb w1, [sp, 23] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 40] mov x1, 0 ldrb w0, [sp, 23] strb w0, [sp, 32] strb wzr, [sp, 33] add x0, sp, 32 mov x1, x0 ldr x0, [sp, 24] bl strcat 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 .L103 bl __stack_chk_fail .L103: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE19: .size concatChar, .-concatChar ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "r" .align 3 .LC1: .string "in18" .align 3 .LC2: .string "Part1: %d\n" .align 3 .LC3: .string "Part2: %d\n" .text .align 2 .global main .type main, %function main: .LFB6: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp adrp x0, .LC0 add x1, x0, :lo12:.LC0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl fopen str x0, [sp, 24] ldr x0, [sp, 24] bl part1 mov w1, w0 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf ldr x0, [sp, 24] bl rewind ldr x0, [sp, 24] bl part2 mov w1, w0 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl printf 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 .LFE6: .size main, .-main .align 2 .global part1 .type part1, %function part1: .LFB7: .cfi_startproc stp x29, x30, [sp, -288]! .cfi_def_cfa_offset 288 .cfi_offset 29, -288 .cfi_offset 30, -280 mov x29, sp str x0, [sp, 24] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 280] mov x1, 0 add x0, sp, 176 mov x1, x0 ldr x0, [sp, 24] bl readLine str x0, [sp, 48] ldr x0, [sp, 48] bl countSafety str w0, [sp, 40] add x0, sp, 72 str x0, [sp, 56] str wzr, [sp, 44] b .L4 .L5: ldr x0, [sp, 48] str x0, [sp, 64] ldr x1, [sp, 56] ldr x0, [sp, 48] bl calcLine str x0, [sp, 48] ldr x0, [sp, 48] bl countSafety mov w1, w0 ldr w0, [sp, 40] add w0, w0, w1 str w0, [sp, 40] ldr x0, [sp, 64] str x0, [sp, 56] ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L4: ldr w0, [sp, 44] cmp w0, 38 ble .L5 ldr w0, [sp, 40] mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 280] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L7 bl __stack_chk_fail .L7: mov w0, w1 ldp x29, x30, [sp], 288 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size part1, .-part1 .align 2 .global part2 .type part2, %function part2: .LFB8: .cfi_startproc stp x29, x30, [sp, -288]! .cfi_def_cfa_offset 288 .cfi_offset 29, -288 .cfi_offset 30, -280 mov x29, sp str x0, [sp, 24] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 280] mov x1, 0 add x0, sp, 176 mov x1, x0 ldr x0, [sp, 24] bl readLine str x0, [sp, 48] ldr x0, [sp, 48] bl countSafety str w0, [sp, 40] add x0, sp, 72 str x0, [sp, 56] str wzr, [sp, 44] b .L9 .L10: ldr x0, [sp, 48] str x0, [sp, 64] ldr x1, [sp, 56] ldr x0, [sp, 48] bl calcLine str x0, [sp, 48] ldr x0, [sp, 48] bl countSafety mov w1, w0 ldr w0, [sp, 40] add w0, w0, w1 str w0, [sp, 40] ldr x0, [sp, 64] str x0, [sp, 56] ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L9: ldr w1, [sp, 44] mov w0, 6782 movk w0, 0x6, lsl 16 cmp w1, w0 ble .L10 ldr w0, [sp, 40] mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 280] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L12 bl __stack_chk_fail .L12: mov w0, w1 ldp x29, x30, [sp], 288 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE8: .size part2, .-part2 .section .rodata .align 3 .LC4: .string "Couldn't read line\n" .text .align 2 .global readLine .type readLine, %function readLine: .LFB9: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] ldr x2, [sp, 24] mov w1, 100 ldr x0, [sp, 16] bl fgets cmp x0, 0 bne .L16 adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x2, [x0] adrp x0, .LC4 add x1, x0, :lo12:.LC4 mov x0, x2 bl fprintf cmp w0, 0 .L16: ldr x0, [sp, 16] str x0, [sp, 40] b .L17 .L18: ldr x0, [sp, 40] ldrb w0, [x0] cmp w0, 94 cset w0, eq and w0, w0, 255 mov w1, w0 ldr x0, [sp, 40] strb w1, [x0] ldr x0, [sp, 40] add x0, x0, 1 str x0, [sp, 40] .L17: ldr x0, [sp, 40] ldrb w0, [x0] cmp w0, 0 bne .L18 ldr x0, [sp, 16] ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE9: .size readLine, .-readLine .align 2 .global countSafety .type countSafety, %function countSafety: .LFB10: .cfi_startproc sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, 8] str wzr, [sp, 24] str wzr, [sp, 28] b .L21 .L22: ldrsw x0, [sp, 28] ldr x1, [sp, 8] add x0, x1, x0 ldrb w0, [x0] cmp w0, 0 cset w0, eq and w0, w0, 255 mov w1, w0 ldr w0, [sp, 24] add w0, w0, w1 str w0, [sp, 24] ldr w0, [sp, 28] add w0, w0, 1 str w0, [sp, 28] .L21: ldr w0, [sp, 28] cmp w0, 99 ble .L22 ldr w0, [sp, 24] add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE10: .size countSafety, .-countSafety .align 2 .global calcLine .type calcLine, %function calcLine: .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] str x1, [sp, 16] ldr x0, [sp, 24] ldrb w1, [x0] ldr x0, [sp, 24] add x0, x0, 1 ldrb w0, [x0] mov w2, w0 mov w0, 0 bl isTrap and w1, w0, 255 ldr x0, [sp, 16] strb w1, [x0] ldr x0, [sp, 24] add x0, x0, 98 ldrb w3, [x0] ldr x0, [sp, 24] add x0, x0, 99 ldrb w0, [x0] mov w2, 0 mov w1, w0 mov w0, w3 bl isTrap mov w1, w0 ldr x0, [sp, 16] add x0, x0, 99 and w1, w1, 255 strb w1, [x0] mov w0, 1 str w0, [sp, 44] b .L25 .L26: ldrsw x0, [sp, 44] sub x0, x0, #1 ldr x1, [sp, 24] add x0, x1, x0 ldrb w3, [x0] ldrsw x0, [sp, 44] ldr x1, [sp, 24] add x0, x1, x0 ldrb w4, [x0] ldrsw x0, [sp, 44] add x0, x0, 1 ldr x1, [sp, 24] add x0, x1, x0 ldrb w0, [x0] mov w2, w0 mov w1, w4 mov w0, w3 bl isTrap mov w2, w0 ldrsw x0, [sp, 44] ldr x1, [sp, 16] add x0, x1, x0 and w1, w2, 255 strb w1, [x0] ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L25: ldr w0, [sp, 44] cmp w0, 98 ble .L26 ldr x0, [sp, 16] ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE11: .size calcLine, .-calcLine .align 2 .global isTrap .type isTrap, %function isTrap: .LFB12: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 strb w0, [sp, 15] strb w1, [sp, 14] strb w2, [sp, 13] ldrb w0, [sp, 15] cmp w0, 0 beq .L29 ldrb w0, [sp, 14] cmp w0, 0 beq .L29 ldrb w0, [sp, 13] cmp w0, 0 beq .L30 .L29: ldrb w0, [sp, 15] cmp w0, 0 bne .L31 ldrb w0, [sp, 14] cmp w0, 0 beq .L31 ldrb w0, [sp, 13] cmp w0, 0 bne .L30 .L31: ldrb w0, [sp, 15] cmp w0, 0 beq .L32 ldrb w0, [sp, 14] cmp w0, 0 bne .L32 ldrb w0, [sp, 13] cmp w0, 0 beq .L30 .L32: ldrb w0, [sp, 15] cmp w0, 0 bne .L33 ldrb w0, [sp, 14] cmp w0, 0 bne .L33 ldrb w0, [sp, 13] cmp w0, 0 beq .L33 .L30: mov w0, 1 b .L35 .L33: mov w0, 0 .L35: add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE12: .size isTrap, .-isTrap ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global string_copy .type string_copy, %function string_copy: .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 .L3: ldrsw x0, [sp, 28] ldr x1, [sp] add x1, x1, x0 ldrsw x0, [sp, 28] ldr x2, [sp, 8] add x0, x2, x0 ldrb w1, [x1] strb w1, [x0] ldr w0, [sp, 28] add w0, w0, 1 str w0, [sp, 28] .L2: ldrsw x0, [sp, 28] ldr x1, [sp] add x0, x1, x0 ldrb w0, [x0] cmp w0, 0 bne .L3 ldrsw x0, [sp, 28] ldr x1, [sp, 8] add x0, x1, x0 strb wzr, [x0] ldr x0, [sp, 8] add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size string_copy, .-string_copy ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global sem_lock .bss .align 3 .type sem_lock, %object .size sem_lock, 32 sem_lock: .zero 32 .global sem_empty .align 3 .type sem_empty, %object .size sem_empty, 32 sem_empty: .zero 32 .global sem_full .align 3 .type sem_full, %object .size sem_full, 32 sem_full: .zero 32 .global CurrTime1 .align 3 .type CurrTime1, %object .size CurrTime1, 16 CurrTime1: .zero 16 .global CurrTime2 .align 3 .type CurrTime2, %object .size CurrTime2, 16 CurrTime2: .zero 16 .global CurrTime11 .align 3 .type CurrTime11, %object .size CurrTime11, 16 CurrTime11: .zero 16 .global CurrTime22 .align 3 .type CurrTime22, %object .size CurrTime22, 16 CurrTime22: .zero 16 .global oldTime_Consumer .align 3 .type oldTime_Consumer, %object .size oldTime_Consumer, 8 oldTime_Consumer: .zero 8 .global oldTime_Supplier .align 3 .type oldTime_Supplier, %object .size oldTime_Supplier, 8 oldTime_Supplier: .zero 8 .global newTime_Consumer .align 3 .type newTime_Consumer, %object .size newTime_Consumer, 8 newTime_Consumer: .zero 8 .global newTime_Supplier .align 3 .type newTime_Supplier, %object .size newTime_Supplier, 8 newTime_Supplier: .zero 8 .global Buffer .align 2 .type Buffer, %object .size Buffer, 4 Buffer: .zero 4 .section .rodata .align 3 .LC0: .string "\n-->Run: %s %ld (ms)\n" .align 3 .LC1: .string "Consumer: -1 -> Buffer = %d\n" .align 3 .LC2: .string "-->Stop: %s %ld (ms)\n" .text .align 2 .global Consumer .type Consumer, %function Consumer: .LFB6: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str wzr, [sp, 44] b .L2 .L3: adrp x0, sem_empty add x0, x0, :lo12:sem_empty bl sem_wait adrp x0, sem_lock add x0, x0, :lo12:sem_lock bl sem_wait mov x1, 0 adrp x0, CurrTime1 add x0, x0, :lo12:CurrTime1 bl gettimeofday mov x0, 0 bl time mov x1, x0 adrp x0, oldTime_Consumer add x0, x0, :lo12:oldTime_Consumer str x1, [x0] adrp x0, Buffer add x0, x0, :lo12:Buffer ldr w0, [x0] sub w1, w0, #1 adrp x0, Buffer add x0, x0, :lo12:Buffer str w1, [x0] mov x1, 0 adrp x0, CurrTime2 add x0, x0, :lo12:CurrTime2 bl gettimeofday mov x0, 0 bl time mov x1, x0 adrp x0, newTime_Consumer add x0, x0, :lo12:newTime_Consumer str x1, [x0] adrp x0, oldTime_Consumer add x0, x0, :lo12:oldTime_Consumer bl ctime mov x1, x0 adrp x0, CurrTime1 add x0, x0, :lo12:CurrTime1 ldr x0, [x0, 8] mov x2, x0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf adrp x0, Buffer add x0, x0, :lo12:Buffer ldr w0, [x0] mov w1, w0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf adrp x0, newTime_Consumer add x0, x0, :lo12:newTime_Consumer bl ctime mov x1, x0 adrp x0, CurrTime2 add x0, x0, :lo12:CurrTime2 ldr x0, [x0, 8] mov x2, x0 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf adrp x0, :got:stdout ldr x0, [x0, #:got_lo12:stdout] ldr x0, [x0] bl fflush adrp x0, sem_lock add x0, x0, :lo12:sem_lock bl sem_post adrp x0, sem_full add x0, x0, :lo12:sem_full bl sem_post mov w0, 300 bl usleep ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L2: ldr w0, [sp, 44] cmp w0, 24 ble .L3 mov x0, 0 ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size Consumer, .-Consumer .section .rodata .align 3 .LC3: .string "Supplier: +1 -> Buffer = %d\n" .text .align 2 .global Supplier .type Supplier, %function Supplier: .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 wzr, [sp, 44] b .L6 .L7: adrp x0, sem_full add x0, x0, :lo12:sem_full bl sem_wait adrp x0, sem_lock add x0, x0, :lo12:sem_lock bl sem_wait mov x1, 0 adrp x0, CurrTime11 add x0, x0, :lo12:CurrTime11 bl gettimeofday mov x0, 0 bl time mov x1, x0 adrp x0, oldTime_Supplier add x0, x0, :lo12:oldTime_Supplier str x1, [x0] adrp x0, Buffer add x0, x0, :lo12:Buffer ldr w0, [x0] add w1, w0, 1 adrp x0, Buffer add x0, x0, :lo12:Buffer str w1, [x0] mov x1, 0 adrp x0, CurrTime22 add x0, x0, :lo12:CurrTime22 bl gettimeofday mov x0, 0 bl time mov x1, x0 adrp x0, newTime_Supplier add x0, x0, :lo12:newTime_Supplier str x1, [x0] adrp x0, oldTime_Supplier add x0, x0, :lo12:oldTime_Supplier bl ctime mov x1, x0 adrp x0, CurrTime11 add x0, x0, :lo12:CurrTime11 ldr x0, [x0, 8] mov x2, x0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf adrp x0, Buffer add x0, x0, :lo12:Buffer ldr w0, [x0] mov w1, w0 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl printf adrp x0, newTime_Supplier add x0, x0, :lo12:newTime_Supplier bl ctime mov x1, x0 adrp x0, CurrTime22 add x0, x0, :lo12:CurrTime22 ldr x0, [x0, 8] mov x2, x0 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf adrp x0, :got:stdout ldr x0, [x0, #:got_lo12:stdout] ldr x0, [x0] bl fflush adrp x0, sem_lock add x0, x0, :lo12:sem_lock bl sem_post adrp x0, sem_empty add x0, x0, :lo12:sem_empty bl sem_post mov w0, 300 bl usleep ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L6: ldr w0, [sp, 44] cmp w0, 44 ble .L7 mov x0, 0 ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size Supplier, .-Supplier .global BuffEmpty .data .align 2 .type BuffEmpty, %object .size BuffEmpty, 4 BuffEmpty: .word 1 .global BuffFull .bss .align 2 .type BuffFull, %object .size BuffFull, 4 BuffFull: .zero 4 .global CondFull .align 3 .type CondFull, %object .size CondFull, 48 CondFull: .zero 48 .global CondEmpty .align 3 .type CondEmpty, %object .size CondEmpty, 48 CondEmpty: .zero 48 .global mutex .align 3 .type mutex, %object .size mutex, 48 mutex: .zero 48 .global CurrTimeCV1 .align 3 .type CurrTimeCV1, %object .size CurrTimeCV1, 16 CurrTimeCV1: .zero 16 .global CurrTimeCV2 .align 3 .type CurrTimeCV2, %object .size CurrTimeCV2, 16 CurrTimeCV2: .zero 16 .global CurrTimeCV11 .align 3 .type CurrTimeCV11, %object .size CurrTimeCV11, 16 CurrTimeCV11: .zero 16 .global CurrTimeCV22 .align 3 .type CurrTimeCV22, %object .size CurrTimeCV22, 16 CurrTimeCV22: .zero 16 .global oldTimeCV_Consumer .align 3 .type oldTimeCV_Consumer, %object .size oldTimeCV_Consumer, 8 oldTimeCV_Consumer: .zero 8 .global oldTimeCV_Supplier .align 3 .type oldTimeCV_Supplier, %object .size oldTimeCV_Supplier, 8 oldTimeCV_Supplier: .zero 8 .global newTimeCV_Consumer .align 3 .type newTimeCV_Consumer, %object .size newTimeCV_Consumer, 8 newTimeCV_Consumer: .zero 8 .global newTimeCV_Supplier .align 3 .type newTimeCV_Supplier, %object .size newTimeCV_Supplier, 8 newTimeCV_Supplier: .zero 8 .section .rodata .align 3 .LC4: .string "-->Run:%s %ld (ms)\n" .align 3 .LC5: .string "-->Stop:%s %ld (ms)\n" .text .align 2 .global ConVar_Consumer .type ConVar_Consumer, %function ConVar_Consumer: .LFB8: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str x0, [sp, 24] .L13: adrp x0, mutex add x0, x0, :lo12:mutex bl pthread_mutex_lock mov x1, 0 adrp x0, CurrTimeCV1 add x0, x0, :lo12:CurrTimeCV1 bl gettimeofday mov x0, 0 bl time mov x1, x0 adrp x0, oldTimeCV_Consumer add x0, x0, :lo12:oldTimeCV_Consumer str x1, [x0] b .L10 .L11: adrp x0, mutex add x1, x0, :lo12:mutex adrp x0, CondEmpty add x0, x0, :lo12:CondEmpty bl pthread_cond_wait .L10: adrp x0, BuffEmpty add x0, x0, :lo12:BuffEmpty ldr w0, [x0] cmp w0, 0 bne .L11 adrp x0, Buffer add x0, x0, :lo12:Buffer ldr w0, [x0] sub w1, w0, #1 adrp x0, Buffer add x0, x0, :lo12:Buffer str w1, [x0] adrp x0, Buffer add x0, x0, :lo12:Buffer ldr w0, [x0] cmp w0, 0 bne .L12 adrp x0, BuffEmpty add x0, x0, :lo12:BuffEmpty mov w1, 1 str w1, [x0] .L12: mov x1, 0 adrp x0, CurrTimeCV2 add x0, x0, :lo12:CurrTimeCV2 bl gettimeofday mov x0, 0 bl time mov x1, x0 adrp x0, newTimeCV_Consumer add x0, x0, :lo12:newTimeCV_Consumer str x1, [x0] adrp x0, oldTimeCV_Consumer add x0, x0, :lo12:oldTimeCV_Consumer bl ctime mov x1, x0 adrp x0, CurrTimeCV1 add x0, x0, :lo12:CurrTimeCV1 ldr x0, [x0, 8] mov x2, x0 adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl printf adrp x0, Buffer add x0, x0, :lo12:Buffer ldr w0, [x0] mov w1, w0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf adrp x0, newTimeCV_Consumer add x0, x0, :lo12:newTimeCV_Consumer bl ctime mov x1, x0 adrp x0, CurrTimeCV2 add x0, x0, :lo12:CurrTimeCV2 ldr x0, [x0, 8] mov x2, x0 adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl printf adrp x0, :got:stdout ldr x0, [x0, #:got_lo12:stdout] ldr x0, [x0] bl fflush adrp x0, BuffFull add x0, x0, :lo12:BuffFull str wzr, [x0] adrp x0, CondFull add x0, x0, :lo12:CondFull bl pthread_cond_signal adrp x0, mutex add x0, x0, :lo12:mutex bl pthread_mutex_unlock mov w0, 1 bl sleep b .L13 .cfi_endproc .LFE8: .size ConVar_Consumer, .-ConVar_Consumer .section .rodata .align 3 .LC6: .string "\n-->Run:%s %ld (ms)\n" .align 3 .LC7: .string "-->Stop%s %ld (ms)\n" .text .align 2 .global ConVar_Supplier .type ConVar_Supplier, %function ConVar_Supplier: .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] .L18: adrp x0, mutex add x0, x0, :lo12:mutex bl pthread_mutex_lock mov x1, 0 adrp x0, CurrTimeCV11 add x0, x0, :lo12:CurrTimeCV11 bl gettimeofday mov x0, 0 bl time mov x1, x0 adrp x0, oldTimeCV_Supplier add x0, x0, :lo12:oldTimeCV_Supplier str x1, [x0] b .L15 .L16: adrp x0, mutex add x1, x0, :lo12:mutex adrp x0, CondFull add x0, x0, :lo12:CondFull bl pthread_cond_wait .L15: adrp x0, BuffFull add x0, x0, :lo12:BuffFull ldr w0, [x0] cmp w0, 0 bne .L16 adrp x0, Buffer add x0, x0, :lo12:Buffer ldr w0, [x0] add w1, w0, 1 adrp x0, Buffer add x0, x0, :lo12:Buffer str w1, [x0] adrp x0, Buffer add x0, x0, :lo12:Buffer ldr w0, [x0] cmp w0, 15 bne .L17 adrp x0, BuffFull add x0, x0, :lo12:BuffFull mov w1, 1 str w1, [x0] .L17: mov x1, 0 adrp x0, CurrTimeCV22 add x0, x0, :lo12:CurrTimeCV22 bl gettimeofday mov x0, 0 bl time mov x1, x0 adrp x0, newTimeCV_Supplier add x0, x0, :lo12:newTimeCV_Supplier str x1, [x0] adrp x0, oldTimeCV_Supplier add x0, x0, :lo12:oldTimeCV_Supplier bl ctime mov x1, x0 adrp x0, CurrTimeCV11 add x0, x0, :lo12:CurrTimeCV11 ldr x0, [x0, 8] mov x2, x0 adrp x0, .LC6 add x0, x0, :lo12:.LC6 bl printf adrp x0, Buffer add x0, x0, :lo12:Buffer ldr w0, [x0] mov w1, w0 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl printf adrp x0, newTimeCV_Supplier add x0, x0, :lo12:newTimeCV_Supplier bl ctime mov x1, x0 adrp x0, CurrTimeCV22 add x0, x0, :lo12:CurrTimeCV22 ldr x0, [x0, 8] mov x2, x0 adrp x0, .LC7 add x0, x0, :lo12:.LC7 bl printf adrp x0, :got:stdout ldr x0, [x0, #:got_lo12:stdout] ldr x0, [x0] bl fflush adrp x0, BuffEmpty add x0, x0, :lo12:BuffEmpty str wzr, [x0] adrp x0, CondEmpty add x0, x0, :lo12:CondEmpty bl pthread_cond_signal adrp x0, mutex add x0, x0, :lo12:mutex bl pthread_mutex_unlock b .L18 .cfi_endproc .LFE9: .size ConVar_Supplier, .-ConVar_Supplier .section .rodata .align 3 .LC8: .string "LAB 1. SUPPLIER-CONSUMER" .align 3 .LC9: .string "1. Using SEMAPHOREs - Thread functions " .align 3 .LC10: .string "2. Using CONDITIONAL VARIABLES Thread-Functions" .text .align 2 .global Menu .type Menu, %function Menu: .LFB10: .cfi_startproc stp x29, x30, [sp, -16]! .cfi_def_cfa_offset 16 .cfi_offset 29, -16 .cfi_offset 30, -8 mov x29, sp adrp x0, .LC8 add x0, x0, :lo12:.LC8 bl puts adrp x0, .LC9 add x0, x0, :lo12:.LC9 bl puts adrp x0, .LC10 add x0, x0, :lo12:.LC10 bl puts nop ldp x29, x30, [sp], 16 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE10: .size Menu, .-Menu .section .rodata .align 3 .LC11: .string "\nChoose work mode -> " .align 3 .LC12: .string "%d" .align 3 .LC13: .string "Semaphores:" .align 3 .LC14: .string "\nConditional Variables:" .align 3 .LC15: .string "\nWrong option! Again!" .text .align 2 .global main .type main, %function main: .LFB11: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str w0, [sp, 28] str x1, [sp, 16] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 56] mov x1, 0 bl Menu adrp x0, .LC11 add x0, x0, :lo12:.LC11 bl printf add x0, sp, 36 mov x1, x0 adrp x0, .LC12 add x0, x0, :lo12:.LC12 bl __isoc99_scanf ldr w0, [sp, 36] cmp w0, 1 beq .L21 cmp w0, 2 beq .L22 b .L27 .L21: adrp x0, :got:stdout ldr x0, [x0, #:got_lo12:stdout] ldr x0, [x0] bl fflush adrp x0, .LC13 add x0, x0, :lo12:.LC13 bl puts mov w2, 0 mov w1, 0 adrp x0, sem_empty add x0, x0, :lo12:sem_empty bl sem_init mov w2, 15 mov w1, 0 adrp x0, sem_full add x0, x0, :lo12:sem_full bl sem_init mov w2, 1 mov w1, 0 adrp x0, sem_lock add x0, x0, :lo12:sem_lock bl sem_init add x4, sp, 40 mov x3, 0 adrp x0, Consumer add x2, x0, :lo12:Consumer mov x1, 0 mov x0, x4 bl pthread_create add x4, sp, 48 mov x3, 0 adrp x0, Supplier add x2, x0, :lo12:Supplier mov x1, 0 mov x0, x4 bl pthread_create adrp x0, sem_empty add x0, x0, :lo12:sem_empty bl sem_destroy adrp x0, sem_full add x0, x0, :lo12:sem_full bl sem_destroy adrp x0, sem_lock add x0, x0, :lo12:sem_lock bl sem_destroy ldr x0, [sp, 40] mov x1, 0 bl pthread_join ldr x0, [sp, 48] mov x1, 0 bl pthread_join mov w0, 0 b .L25 .L22: adrp x0, :got:stdout ldr x0, [x0, #:got_lo12:stdout] ldr x0, [x0] bl fflush adrp x0, .LC14 add x0, x0, :lo12:.LC14 bl puts mov x1, 0 adrp x0, CondFull add x0, x0, :lo12:CondFull bl pthread_cond_init mov x1, 0 adrp x0, CondEmpty add x0, x0, :lo12:CondEmpty bl pthread_cond_init mov x1, 0 adrp x0, mutex add x0, x0, :lo12:mutex bl pthread_mutex_init add x4, sp, 40 mov x3, 0 adrp x0, ConVar_Consumer add x2, x0, :lo12:ConVar_Consumer mov x1, 0 mov x0, x4 bl pthread_create add x4, sp, 48 mov x3, 0 adrp x0, ConVar_Supplier add x2, x0, :lo12:ConVar_Supplier mov x1, 0 mov x0, x4 bl pthread_create ldr x0, [sp, 40] mov x1, 0 bl pthread_join ldr x0, [sp, 48] mov x1, 0 bl pthread_join adrp x0, CondEmpty add x0, x0, :lo12:CondEmpty bl pthread_cond_destroy adrp x0, CondFull add x0, x0, :lo12:CondFull bl pthread_cond_destroy adrp x0, mutex add x0, x0, :lo12:mutex bl pthread_mutex_destroy mov w0, 0 b .L25 .L27: adrp x0, .LC15 add x0, x0, :lo12:.LC15 bl puts adrp x0, .LC11 add x0, x0, :lo12:.LC11 bl printf add x0, sp, 36 mov x1, x0 adrp x0, .LC12 add x0, x0, :lo12:.LC12 bl __isoc99_scanf bl Menu mov w0, 0 .L25: 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 .L26 bl __stack_chk_fail .L26: mov w0, w1 ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE11: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global mbstowcs .type mbstowcs, %function mbstowcs: .LFB6: .cfi_startproc stp x29, x30, [sp, -80]! .cfi_def_cfa_offset 80 .cfi_offset 29, -80 .cfi_offset 30, -72 mov x29, sp str x0, [sp, 40] str x1, [sp, 32] str x2, [sp, 24] str xzr, [sp, 64] str xzr, [sp, 72] .L6: ldr x0, [sp, 64] lsl x0, x0, 2 ldr x1, [sp, 40] add x3, x1, x0 ldr x1, [sp, 32] ldr x0, [sp, 72] add x4, x1, x0 ldr x1, [sp, 24] ldr x0, [sp, 72] sub x0, x1, x0 mov x2, x0 mov x1, x4 mov x0, x3 bl mbtowc str w0, [sp, 60] ldr w0, [sp, 60] cmp w0, 0 bge .L2 mov x0, -1 b .L3 .L2: ldr w0, [sp, 60] cmp w0, 0 bne .L4 ldr x0, [sp, 64] lsl x0, x0, 2 ldr x1, [sp, 40] add x0, x1, x0 str wzr, [x0] nop ldr x0, [sp, 64] b .L3 .L4: ldr x0, [sp, 64] add x0, x0, 1 str x0, [sp, 64] ldrsw x0, [sp, 60] ldr x1, [sp, 72] add x0, x1, x0 str x0, [sp, 72] b .L6 .L3: ldp x29, x30, [sp], 80 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size mbstowcs, .-mbstowcs ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "Allocating error!" .align 3 .LC1: .string "%d " .text .align 2 .global main .type main, %function main: .LFB6: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp mov w0, 50 str w0, [sp, 20] ldrsw x0, [sp, 20] lsl x0, x0, 2 bl malloc str x0, [sp, 24] ldr x0, [sp, 24] cmp x0, 0 bne .L2 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl puts mov w0, 1 bl exit .L2: str wzr, [sp, 16] b .L3 .L4: ldrsw x0, [sp, 16] lsl x0, x0, 2 ldr x1, [sp, 24] add x0, x1, x0 ldr w1, [sp, 16] add w1, w1, 1 str w1, [x0] ldr w0, [sp, 16] add w0, w0, 1 str w0, [sp, 16] .L3: ldr w1, [sp, 16] ldr w0, [sp, 20] cmp w1, w0 blt .L4 str wzr, [sp, 16] b .L5 .L6: ldrsw x0, [sp, 16] 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, 16] add w0, w0, 1 str w0, [sp, 16] .L5: ldr w1, [sp, 16] ldr w0, [sp, 20] cmp w1, w0 blt .L6 mov w0, 10 bl putchar ldr x0, [sp, 24] bl free mov w0, 0 ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "\n\targc = %d\n" .align 3 .LC1: .string "\targv[%d] = %s\n" .text .align 2 .global main .type main, %function main: .LFB6: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str w0, [sp, 28] str x1, [sp, 16] ldr w1, [sp, 28] adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf str wzr, [sp, 44] b .L2 .L3: ldr w0, [sp, 44] lsl x0, x0, 3 ldr x1, [sp, 16] add x0, x1, x0 ldr x0, [x0] mov x2, x0 ldr w1, [sp, 44] adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L2: ldr w0, [sp, 28] ldr w1, [sp, 44] cmp w1, w0 bcc .L3 mov w0, 10 bl putchar mov w0, 0 ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "enter the number " .align 3 .LC1: .string "%d" .align 3 .LC2: .string "entered num was:- " .align 3 .LC3: .string "\nsum of all digits:- %d" .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc stp x29, x30, [sp, -144]! .cfi_def_cfa_offset 144 .cfi_offset 29, -144 .cfi_offset 30, -136 mov x29, sp .cfi_def_cfa_register 29 stp x19, x20, [sp, 16] stp x21, x22, [sp, 32] stp x23, x24, [sp, 48] stp x25, x26, [sp, 64] str x27, [sp, 80] sub sp, sp, #16 .cfi_offset 19, -128 .cfi_offset 20, -120 .cfi_offset 21, -112 .cfi_offset 22, -104 .cfi_offset 23, -96 .cfi_offset 24, -88 .cfi_offset 25, -80 .cfi_offset 26, -72 .cfi_offset 27, -64 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [x29, 136] mov x1, 0 mov x0, sp mov x19, x0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf add x0, x29, 96 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf str wzr, [x29, 100] ldr w0, [x29, 96] str w0, [x29, 104] b .L2 .L3: ldr w0, [x29, 104] mov w1, 26215 movk w1, 0x6666, lsl 16 smull x1, w0, w1 lsr x1, x1, 32 asr w1, w1, 2 asr w0, w0, 31 sub w0, w1, w0 str w0, [x29, 104] ldr w0, [x29, 100] add w0, w0, 1 str w0, [x29, 100] .L2: ldr w0, [x29, 104] cmp w0, 0 bgt .L3 ldr w0, [x29, 100] sxtw x1, w0 sub x1, x1, #1 str x1, [x29, 120] sxtw x1, w0 mov x26, x1 mov x27, 0 lsr x1, x26, 59 lsl x23, x27, 5 orr x23, x1, x23 lsl x22, x26, 5 sxtw x1, w0 mov x24, x1 mov x25, 0 lsr x1, x24, 59 lsl x21, x25, 5 orr x21, x1, x21 lsl x20, x24, 5 sxtw x0, w0 lsl x0, x0, 2 add x0, x0, 15 lsr x0, x0, 4 lsl x0, x0, 4 and x1, x0, -65536 sub x1, sp, x1 .L4: cmp sp, x1 beq .L5 sub sp, sp, #65536 str xzr, [sp, 1024] b .L4 .L5: and x1, x0, 65535 sub sp, sp, x1 str xzr, [sp] and x0, x0, 65535 cmp x0, 1024 bcc .L6 str xzr, [sp, 1024] .L6: add x0, sp, 16 add x0, x0, 3 lsr x0, x0, 2 lsl x0, x0, 2 str x0, [x29, 128] mov w0, 1 str w0, [x29, 108] b .L7 .L8: ldr w2, [x29, 96] ldr w1, [x29, 100] ldr w0, [x29, 108] sub w3, w1, w0 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 ldr x0, [x29, 128] sxtw x2, w3 str w1, [x0, x2, lsl 2] ldr w0, [x29, 96] mov w1, 26215 movk w1, 0x6666, lsl 16 smull x1, w0, w1 lsr x1, x1, 32 asr w1, w1, 2 asr w0, w0, 31 sub w0, w1, w0 str w0, [x29, 96] ldr w0, [x29, 108] add w0, w0, 1 str w0, [x29, 108] .L7: ldr w1, [x29, 108] ldr w0, [x29, 100] cmp w1, w0 ble .L8 str wzr, [x29, 112] adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf str wzr, [x29, 116] b .L9 .L10: ldr x0, [x29, 128] ldrsw x1, [x29, 116] ldr w0, [x0, x1, lsl 2] mov w1, w0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf ldr x0, [x29, 128] ldrsw x1, [x29, 116] ldr w0, [x0, x1, lsl 2] ldr w1, [x29, 112] add w0, w1, w0 str w0, [x29, 112] ldr w0, [x29, 116] add w0, w0, 1 str w0, [x29, 116] .L9: ldr w1, [x29, 116] ldr w0, [x29, 100] cmp w1, w0 blt .L10 ldr w1, [x29, 112] adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl printf mov sp, x19 mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [x29, 136] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L12 bl __stack_chk_fail .L12: mov w0, w1 mov sp, x29 ldp x19, x20, [sp, 16] ldp x21, x22, [sp, 32] ldp x23, x24, [sp, 48] ldp x25, x26, [sp, 64] ldr x27, [sp, 80] ldp x29, x30, [sp], 144 .cfi_restore 30 .cfi_restore 29 .cfi_restore 27 .cfi_restore 25 .cfi_restore 26 .cfi_restore 23 .cfi_restore 24 .cfi_restore 21 .cfi_restore 22 .cfi_restore 19 .cfi_restore 20 .cfi_def_cfa 31, 0 ret .cfi_endproc .LFE0: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .type ip_rthash4, %function ip_rthash4: .LFB1: .cfi_startproc sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, 8] ldr x0, [sp, 8] add x0, x0, 3 ldrb w0, [x0] lsl w0, w0, 8 ldr x1, [sp, 8] add x1, x1, 2 ldrb w1, [x1] orr w0, w0, w1 str w0, [sp, 28] ldr w0, [sp, 28] and w0, w0, 65535 add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size ip_rthash4, .-ip_rthash4 .section .rodata .align 3 .LC0: .string "%d %d\n" .text .align 2 .global main .type main, %function main: .LFB5: .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, 266 movk w0, 0x1c8, lsl 16 str w0, [sp, 64] ldr x0, [sp, 32] add x0, x0, 8 ldr x0, [x0] bl atoi str w0, [sp, 56] ldr x0, [sp, 32] add x0, x0, 16 ldr x0, [x0] bl atoi str w0, [sp, 60] mov w0, 1 str w0, [sp, 52] b .L4 .L7: ldr w0, [sp, 52] and w0, w0, 255 strb w0, [sp, 66] mov w0, 1 str w0, [sp, 48] b .L5 .L6: ldr w0, [sp, 48] and w0, w0, 255 strb w0, [sp, 67] ldrb w0, [sp, 67] mov w19, w0 add x0, sp, 64 bl ip_rthash4 mov w2, w0 mov w1, w19 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf ldr w0, [sp, 48] add w0, w0, 1 str w0, [sp, 48] .L5: ldr w1, [sp, 48] ldr w0, [sp, 60] cmp w1, w0 bcc .L6 ldr w0, [sp, 52] add w0, w0, 1 str w0, [sp, 52] .L4: ldr w1, [sp, 52] ldr w0, [sp, 56] cmp w1, w0 bcc .L7 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 .L9 bl __stack_chk_fail .L9: 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 .LFE5: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global pascalStr1 .section .rodata .align 3 .LC0: .string "pHello, World!" .section .data.rel.local,"aw" .align 3 .type pascalStr1, %object .size pascalStr1, 8 pascalStr1: .xword .LC0 .global concat1 .section .rodata .align 3 .LC1: .string "pConcatenatedstringpliteral" .section .data.rel.local .align 3 .type concat1, %object .size concat1, 8 concat1: .xword .LC1 .global msg1 .section .rodata .align 3 .type msg1, %object .size msg1, 7 msg1: .string "pHello" .global msg2 .align 3 .LC2: .string "pHello" .section .data.rel.local .align 3 .type msg2, %object .size msg2, 8 msg2: .xword .LC2 .global msg3 .section .rodata .align 3 .type msg3, %object .size msg3, 7 msg3: .string "pHello" .global msg4 .align 3 .type msg4, %object .size msg4, 7 msg4: .string "pHello" .global msg5 .data .align 3 .type msg5, %object .size msg5, 7 msg5: .string "pHello" .global msg7 .align 3 .type msg7, %object .size msg7, 7 msg7: .string "pHello" .global msg8 .align 3 .type msg8, %object .size msg8, 7 msg8: .string "pHello" .section .rodata .align 3 .LC3: .string "pGood-bye!" .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, .LC3 add x0, x0, :lo12:.LC3 str x0, [sp, 24] adrp x0, pascalStr1 add x0, x0, :lo12:pascalStr1 ldr x0, [x0] bl strlen cmp x0, 14 beq .L2 bl abort .L2: adrp x0, pascalStr1 add x0, x0, :lo12:pascalStr1 ldr x0, [x0] ldrb w0, [x0] cmp w0, 13 beq .L3 bl abort .L3: ldr x0, [sp, 24] bl strlen cmp x0, 10 beq .L4 bl abort .L4: ldr x0, [sp, 24] ldrb w0, [x0] cmp w0, 9 beq .L5 bl abort .L5: adrp x0, concat1 add x0, x0, :lo12:concat1 ldr x0, [x0] bl strlen cmp x0, 26 beq .L6 bl abort .L6: adrp x0, concat1 add x0, x0, :lo12:concat1 ldr x0, [x0] ldrb w0, [x0] cmp w0, 25 beq .L7 bl abort .L7: 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 if04 .type if04, %function if04: .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 wzr, [sp, 24] bl rand cmp w0, 0 beq .L2 mov w0, 10 str w0, [sp, 20] b .L3 .L2: mov w0, 50 str w0, [sp, 24] .L3: ldr w1, [sp, 20] ldr w0, [sp, 24] add w0, w1, w0 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 .LFE6: .size if04, .-if04 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC1: .string "\t\t\t*** FUN MATHS QUIZ ***\t\t\t" .align 3 .LC2: .string "\n\t\t\tWelcome to your Maths Quiz!\t\t\t" .align 3 .LC3: .string "\n\tPlease select one of the following options from the Main Menu below...\t" .align 3 .LC4: .string "\n\t\t\t*** MAIN MENU ***\t\t\t" .align 3 .LC5: .string ">>> Select 1: to select the number of QUESTIONS you would like to answer." .align 3 .LC6: .string ">>> Select 2: to START the quiz." .align 3 .LC7: .string ">>> Select 3: to display your SCORE for the ROUND." .align 3 .LC8: .string ">>> Select 4: to EXIT the quiz." .align 3 .LC9: .string "\n>>> Please select a menu option: " .align 3 .LC10: .string "%d" .align 3 .LC11: .string "\nThis is not a valid option." .align 3 .LC12: .string "\nGoodbye" .align 3 .LC13: .string "\nPress 'enter' to exit." .align 3 .LC14: .string "\n--- You selected Menu Option: %d" .align 3 .LC15: .string "\nThere are a maximum of %d questions per round.\n" .align 3 .LC16: .string "Please enter number of questions for this round: " .align 3 .LC17: .string "--- You have selected to answer %d questions this round.\n" .align 3 .LC18: .string "\n*** ERROR: Please select a number up to max of %d!\n" .align 3 .LC19: .string "\n*** ERROR: Please select the number of questions first!" .align 3 .LC20: .string "\n--- Let's begin..." .align 3 .LC21: .string "\n\t***** ROUND %d *****\n" .align 3 .LC22: .string "\nQuestion 1: >> (9 x 8) + 16 = _ " .align 3 .LC23: .string "--- You entered: %d - Correct!!\n" .align 3 .LC24: .string "--- You entered: %d - Wrong!! The correct answer: %d\n" .align 3 .LC25: .string "\nQuestion 2: >> (121 - 83) x 6 = _ " .align 3 .LC26: .string "\nQuestion 3: >> 12 x (143 / 11) = _ " .align 3 .LC27: .string "\nQuestion 4: >> (56 x 3) - 172 = _ " .align 3 .LC28: .string "\nQuestion 5: >> 216 / (18 x 12) = _ " .align 3 .LC29: .string "\n>>> That is the end of Round %d.\n" .align 3 .LC30: .string "\n*** ERROR: You must play the game first!" .align 3 .LC31: .string "\nScore for Round %d: %d CORRECT, %d WRONG.\n" .align 3 .LC32: .string "\n>>> Would you like to play again? Press 1 (yes) / 4 (EXIT)" .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc stp x29, x30, [sp, -80]! .cfi_def_cfa_offset 80 .cfi_offset 29, -80 .cfi_offset 30, -72 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 72] mov x1, 0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 add x2, sp, 48 mov x3, x0 ldp x0, x1, [x3] stp x0, x1, [x2] ldr w0, [x3, 16] str w0, [x2, 16] str wzr, [sp, 32] str wzr, [sp, 36] str wzr, [sp, 24] mov w0, 1 str w0, [sp, 44] adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl puts adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl puts .L27: 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 bl flushall ldr w0, [sp, 20] cmp w0, 1 beq .L2 ldr w0, [sp, 20] cmp w0, 2 beq .L2 ldr w0, [sp, 20] cmp w0, 3 beq .L2 ldr w0, [sp, 20] cmp w0, 4 beq .L2 adrp x0, .LC11 add x0, x0, :lo12:.LC11 bl puts b .L3 .L2: ldr w0, [sp, 20] cmp w0, 4 bne .L3 adrp x0, .LC12 add x0, x0, :lo12:.LC12 bl printf adrp x0, .LC13 add x0, x0, :lo12:.LC13 bl printf .L3: ldr w0, [sp, 20] cmp w0, 3 beq .L4 cmp w0, 3 bgt .L5 cmp w0, 1 beq .L6 cmp w0, 2 beq .L7 b .L5 .L30: nop .L6: ldr w0, [sp, 20] mov w1, w0 adrp x0, .LC14 add x0, x0, :lo12:.LC14 bl printf mov w1, 5 adrp x0, .LC15 add x0, x0, :lo12:.LC15 bl printf adrp x0, .LC16 add x0, x0, :lo12:.LC16 bl printf add x0, sp, 24 mov x1, x0 adrp x0, .LC10 add x0, x0, :lo12:.LC10 bl __isoc99_scanf bl flushall ldr w0, [sp, 24] mov w1, w0 adrp x0, .LC17 add x0, x0, :lo12:.LC17 bl printf ldr w0, [sp, 24] cmp w0, 5 bgt .L8 ldr w0, [sp, 24] cmp w0, 0 bgt .L9 .L8: mov w1, 5 adrp x0, .LC18 add x0, x0, :lo12:.LC18 bl printf .L9: ldr w0, [sp, 24] cmp w0, 5 bgt .L30 ldr w0, [sp, 24] cmp w0, 0 ble .L30 b .L5 .L7: ldr w0, [sp, 24] cmp w0, 0 bne .L10 adrp x0, .LC19 add x0, x0, :lo12:.LC19 bl puts b .L5 .L10: str wzr, [sp, 32] str wzr, [sp, 36] str wzr, [sp, 40] ldr w0, [sp, 20] mov w1, w0 adrp x0, .LC14 add x0, x0, :lo12:.LC14 bl printf adrp x0, .LC20 add x0, x0, :lo12:.LC20 bl puts ldr w1, [sp, 44] adrp x0, .LC21 add x0, x0, :lo12:.LC21 bl printf .L24: adrp x0, .LC22 add x0, x0, :lo12:.LC22 bl puts add x0, sp, 28 mov x1, x0 adrp x0, .LC10 add x0, x0, :lo12:.LC10 bl __isoc99_scanf bl flushall ldrsw x0, [sp, 40] lsl x0, x0, 2 add x1, sp, 48 ldr w1, [x1, x0] ldr w0, [sp, 28] cmp w1, w0 bne .L11 ldr w0, [sp, 28] mov w1, w0 adrp x0, .LC23 add x0, x0, :lo12:.LC23 bl printf ldr w0, [sp, 32] add w0, w0, 1 str w0, [sp, 32] b .L12 .L11: ldr w3, [sp, 28] ldrsw x0, [sp, 40] lsl x0, x0, 2 add x1, sp, 48 ldr w0, [x1, x0] mov w2, w0 mov w1, w3 adrp x0, .LC24 add x0, x0, :lo12:.LC24 bl printf ldr w0, [sp, 36] add w0, w0, 1 str w0, [sp, 36] .L12: ldr w0, [sp, 40] add w0, w0, 1 str w0, [sp, 40] ldr w0, [sp, 24] ldr w1, [sp, 40] cmp w1, w0 bge .L13 adrp x0, .LC25 add x0, x0, :lo12:.LC25 bl puts add x0, sp, 28 mov x1, x0 adrp x0, .LC10 add x0, x0, :lo12:.LC10 bl __isoc99_scanf bl flushall ldrsw x0, [sp, 40] lsl x0, x0, 2 add x1, sp, 48 ldr w1, [x1, x0] ldr w0, [sp, 28] cmp w1, w0 bne .L14 ldr w0, [sp, 28] mov w1, w0 adrp x0, .LC23 add x0, x0, :lo12:.LC23 bl printf ldr w0, [sp, 32] add w0, w0, 1 str w0, [sp, 32] b .L15 .L14: ldr w3, [sp, 28] ldrsw x0, [sp, 40] lsl x0, x0, 2 add x1, sp, 48 ldr w0, [x1, x0] mov w2, w0 mov w1, w3 adrp x0, .LC24 add x0, x0, :lo12:.LC24 bl printf ldr w0, [sp, 36] add w0, w0, 1 str w0, [sp, 36] .L15: ldr w0, [sp, 40] add w0, w0, 1 str w0, [sp, 40] .L13: ldr w0, [sp, 24] ldr w1, [sp, 40] cmp w1, w0 bge .L16 adrp x0, .LC26 add x0, x0, :lo12:.LC26 bl puts add x0, sp, 28 mov x1, x0 adrp x0, .LC10 add x0, x0, :lo12:.LC10 bl __isoc99_scanf bl flushall ldrsw x0, [sp, 40] lsl x0, x0, 2 add x1, sp, 48 ldr w1, [x1, x0] ldr w0, [sp, 28] cmp w1, w0 bne .L17 ldr w0, [sp, 28] mov w1, w0 adrp x0, .LC23 add x0, x0, :lo12:.LC23 bl printf ldr w0, [sp, 32] add w0, w0, 1 str w0, [sp, 32] b .L18 .L17: ldr w3, [sp, 28] ldrsw x0, [sp, 40] lsl x0, x0, 2 add x1, sp, 48 ldr w0, [x1, x0] mov w2, w0 mov w1, w3 adrp x0, .LC24 add x0, x0, :lo12:.LC24 bl printf ldr w0, [sp, 36] add w0, w0, 1 str w0, [sp, 36] .L18: ldr w0, [sp, 40] add w0, w0, 1 str w0, [sp, 40] .L16: ldr w0, [sp, 24] ldr w1, [sp, 40] cmp w1, w0 bge .L19 adrp x0, .LC27 add x0, x0, :lo12:.LC27 bl puts add x0, sp, 28 mov x1, x0 adrp x0, .LC10 add x0, x0, :lo12:.LC10 bl __isoc99_scanf bl flushall ldrsw x0, [sp, 40] lsl x0, x0, 2 add x1, sp, 48 ldr w1, [x1, x0] ldr w0, [sp, 28] cmp w1, w0 bne .L20 ldr w0, [sp, 28] mov w1, w0 adrp x0, .LC23 add x0, x0, :lo12:.LC23 bl printf ldr w0, [sp, 32] add w0, w0, 1 str w0, [sp, 32] b .L21 .L20: ldr w3, [sp, 28] ldrsw x0, [sp, 40] lsl x0, x0, 2 add x1, sp, 48 ldr w0, [x1, x0] mov w2, w0 mov w1, w3 adrp x0, .LC24 add x0, x0, :lo12:.LC24 bl printf ldr w0, [sp, 36] add w0, w0, 1 str w0, [sp, 36] .L21: ldr w0, [sp, 40] add w0, w0, 1 str w0, [sp, 40] .L19: ldr w0, [sp, 24] ldr w1, [sp, 40] cmp w1, w0 bge .L22 adrp x0, .LC28 add x0, x0, :lo12:.LC28 bl puts add x0, sp, 28 mov x1, x0 adrp x0, .LC10 add x0, x0, :lo12:.LC10 bl __isoc99_scanf bl flushall ldrsw x0, [sp, 40] lsl x0, x0, 2 add x1, sp, 48 ldr w1, [x1, x0] ldr w0, [sp, 28] cmp w1, w0 bne .L23 ldr w0, [sp, 28] mov w1, w0 adrp x0, .LC23 add x0, x0, :lo12:.LC23 bl printf ldr w0, [sp, 32] add w0, w0, 1 str w0, [sp, 32] b .L22 .L23: ldr w3, [sp, 28] ldrsw x0, [sp, 40] lsl x0, x0, 2 add x1, sp, 48 ldr w0, [x1, x0] mov w2, w0 mov w1, w3 adrp x0, .LC24 add x0, x0, :lo12:.LC24 bl printf ldr w0, [sp, 36] add w0, w0, 1 str w0, [sp, 36] .L22: ldr w0, [sp, 24] sub w0, w0, #1 ldr w1, [sp, 40] cmp w1, w0 blt .L24 ldr w1, [sp, 44] adrp x0, .LC29 add x0, x0, :lo12:.LC29 bl printf ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] b .L5 .L4: ldr w0, [sp, 24] cmp w0, 0 bne .L25 adrp x0, .LC30 add x0, x0, :lo12:.LC30 bl puts b .L5 .L25: ldr w0, [sp, 32] cmp w0, 0 bne .L26 ldr w0, [sp, 36] cmp w0, 0 bne .L26 adrp x0, .LC30 add x0, x0, :lo12:.LC30 bl puts b .L5 .L26: ldr w0, [sp, 44] sub w0, w0, #1 ldr w3, [sp, 36] ldr w2, [sp, 32] mov w1, w0 adrp x0, .LC31 add x0, x0, :lo12:.LC31 bl printf adrp x0, .LC32 add x0, x0, :lo12:.LC32 bl puts str wzr, [sp, 24] nop .L5: ldr w0, [sp, 20] cmp w0, 4 bne .L27 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, 72] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L29 bl __stack_chk_fail .L29: mov w0, w1 ldp x29, x30, [sp], 80 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size main, .-main .section .rodata .align 3 .LC0: .word 88 .word 228 .word 156 .word -4 .word 1 .text ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "%d\n" .align 3 .LC1: .string "Yes\n" .align 3 .LC2: .string "%s" .text .align 2 .global main .type main, %function main: .LFB6: .cfi_startproc sub sp, sp, #3056 .cfi_def_cfa_offset 3056 stp x29, x30, [sp] .cfi_offset 29, -3056 .cfi_offset 30, -3048 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 3048] mov x1, 0 str wzr, [sp, 28] str wzr, [sp, 32] str wzr, [sp, 36] str wzr, [sp, 40] str wzr, [sp, 44] add x0, sp, 28 mov x1, x0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl __isoc99_scanf str wzr, [sp, 32] b .L2 .L3: add x2, sp, 648 ldrsw x1, [sp, 32] mov x0, x1 lsl x0, x0, 1 add x0, x0, x1 lsl x0, x0, 3 add x0, x0, x1 lsl x0, x0, 3 add x3, x2, x0 adrp x0, :got:stdin ldr x0, [x0, #:got_lo12:stdin] ldr x0, [x0] mov x2, x0 mov w1, 200 mov x0, x3 bl fgets ldr w0, [sp, 32] add w0, w0, 1 str w0, [sp, 32] .L2: ldr w0, [sp, 28] ldr w1, [sp, 32] cmp w1, w0 blt .L3 str wzr, [sp, 32] b .L4 .L13: str wzr, [sp, 40] str wzr, [sp, 44] str wzr, [sp, 36] b .L5 .L10: ldrsw x2, [sp, 36] ldrsw x1, [sp, 32] mov x0, x1 lsl x0, x0, 1 add x0, x0, x1 lsl x0, x0, 3 add x0, x0, x1 lsl x0, x0, 3 add x0, x0, 3056 add x0, sp, x0 add x0, x0, x2 sub x0, x0, #4096 ldrb w0, [x0, 1688] cmp w0, 40 bne .L6 ldr w0, [sp, 40] add w0, w0, 1 str w0, [sp, 40] .L6: ldrsw x2, [sp, 36] ldrsw x1, [sp, 32] mov x0, x1 lsl x0, x0, 1 add x0, x0, x1 lsl x0, x0, 3 add x0, x0, x1 lsl x0, x0, 3 add x0, x0, 3056 add x0, sp, x0 add x0, x0, x2 sub x0, x0, #4096 ldrb w0, [x0, 1688] cmp w0, 41 bne .L7 ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L7: ldr w1, [sp, 40] ldr w0, [sp, 44] cmp w1, w0 bge .L8 add x2, sp, 48 ldrsw x1, [sp, 32] mov x0, x1 lsl x0, x0, 1 add x0, x0, x1 lsl x0, x0, 3 add x0, x0, x1 lsl x0, x0, 1 add x0, x2, x0 mov w1, 28494 movk w1, 0xa, lsl 16 str w1, [x0] b .L9 .L8: ldr w0, [sp, 36] add w0, w0, 1 str w0, [sp, 36] .L5: ldrsw x2, [sp, 36] ldrsw x1, [sp, 32] mov x0, x1 lsl x0, x0, 1 add x0, x0, x1 lsl x0, x0, 3 add x0, x0, x1 lsl x0, x0, 3 add x0, x0, 3056 add x0, sp, x0 add x0, x0, x2 sub x0, x0, #4096 ldrb w0, [x0, 1688] cmp w0, 10 bne .L10 .L9: ldr w1, [sp, 40] ldr w0, [sp, 44] cmp w1, w0 bne .L11 add x2, sp, 48 ldrsw x1, [sp, 32] mov x0, x1 lsl x0, x0, 1 add x0, x0, x1 lsl x0, x0, 3 add x0, x0, x1 lsl x0, x0, 1 add x2, x2, x0 adrp x0, .LC1 add x1, x0, :lo12:.LC1 mov x0, x2 ldr w2, [x1] str w2, [x0] ldrb w1, [x1, 4] strb w1, [x0, 4] .L11: ldr w1, [sp, 40] ldr w0, [sp, 44] cmp w1, w0 ble .L12 add x2, sp, 48 ldrsw x1, [sp, 32] mov x0, x1 lsl x0, x0, 1 add x0, x0, x1 lsl x0, x0, 3 add x0, x0, x1 lsl x0, x0, 1 add x0, x2, x0 mov w1, 28494 movk w1, 0xa, lsl 16 str w1, [x0] .L12: 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 .L13 str wzr, [sp, 32] b .L14 .L15: add x2, sp, 48 ldrsw x1, [sp, 32] mov x0, x1 lsl x0, x0, 1 add x0, x0, x1 lsl x0, x0, 3 add x0, x0, x1 lsl x0, x0, 1 add x0, x2, x0 mov x1, x0 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf ldr w0, [sp, 32] add w0, w0, 1 str w0, [sp, 32] .L14: ldr w0, [sp, 28] ldr w1, [sp, 32] cmp w1, w0 blt .L15 mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 3048] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L17 bl __stack_chk_fail .L17: mov w0, w1 ldp x29, x30, [sp] add sp, sp, 3056 .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 g_paramStruct .bss .align 3 .type g_paramStruct, %object .size g_paramStruct, 32 g_paramStruct: .zero 32 .global g_file1 .align 3 .type g_file1, %object .size g_file1, 1048 g_file1: .zero 1048 .global g_file2 .align 3 .type g_file2, %object .size g_file2, 1048 g_file2: .zero 1048 .global g_fileadd .align 3 .type g_fileadd, %object .size g_fileadd, 1048584 g_fileadd: .zero 1048584 .global g_filedel .align 3 .type g_filedel, %object .size g_filedel, 1048584 g_filedel: .zero 1048584 .global g_filechange .align 3 .type g_filechange, %object .size g_filechange, 2097168 g_filechange: .zero 2097168 .global bIsDiff .type bIsDiff, %object .size bIsDiff, 1 bIsDiff: .zero 1 .global bLineStt .type bLineStt, %object .size bLineStt, 1 bLineStt: .zero 1 .global bSameLineNo .align 2 .type bSameLineNo, %object .size bSameLineNo, 4 bSameLineNo: .zero 4 .section .rodata .align 3 .LC0: .string "USAGE: diff <option> <file1> <file2>" .align 3 .LC1: .string "[diff]option more than one" .text .align 2 .global checkParam .type checkParam, %function checkParam: .LFB0: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str w0, [sp, 28] str x1, [sp, 16] str wzr, [sp, 36] str xzr, [sp, 40] ldr x0, [sp, 16] str x0, [sp, 40] mov x2, 32 mov w1, 0 adrp x0, g_paramStruct add x0, x0, :lo12:g_paramStruct bl memset adrp x0, g_paramStruct add x0, x0, :lo12:g_paramStruct str xzr, [x0] adrp x0, g_paramStruct add x0, x0, :lo12:g_paramStruct str xzr, [x0, 8] adrp x0, g_paramStruct add x0, x0, :lo12:g_paramStruct str xzr, [x0, 16] ldr w0, [sp, 28] cmp w0, 2 bgt .L2 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl puts mov w0, -1 b .L3 .L2: mov w0, 1 str w0, [sp, 32] b .L4 .L10: ldrsw x0, [sp, 32] lsl x0, x0, 3 ldr x1, [sp, 40] add x0, x1, x0 ldr x0, [x0] ldrb w0, [x0] cmp w0, 45 bne .L5 ldr w0, [sp, 36] cmp w0, 0 bne .L5 ldr w0, [sp, 28] cmp w0, 3 bgt .L6 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl puts mov w0, -1 b .L3 .L6: mov w0, 1 str w0, [sp, 36] ldrsw x0, [sp, 32] lsl x0, x0, 3 ldr x1, [sp, 40] add x0, x1, x0 ldr x0, [x0] add x1, x0, 1 adrp x0, g_paramStruct add x0, x0, :lo12:g_paramStruct str x1, [x0, 16] b .L7 .L5: ldrsw x0, [sp, 32] lsl x0, x0, 3 ldr x1, [sp, 40] add x0, x1, x0 ldr x0, [x0] ldrb w0, [x0] cmp w0, 45 bne .L8 ldr w0, [sp, 36] cmp w0, 1 bne .L8 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl puts mov w0, -2 b .L3 .L8: adrp x0, g_paramStruct add x0, x0, :lo12:g_paramStruct ldr x0, [x0] cmp x0, 0 bne .L9 ldrsw x0, [sp, 32] lsl x0, x0, 3 ldr x1, [sp, 40] add x0, x1, x0 ldr x1, [x0] adrp x0, g_paramStruct add x0, x0, :lo12:g_paramStruct str x1, [x0] b .L7 .L9: adrp x0, g_paramStruct add x0, x0, :lo12:g_paramStruct ldr x0, [x0, 8] cmp x0, 0 bne .L7 ldrsw x0, [sp, 32] lsl x0, x0, 3 ldr x1, [sp, 40] add x0, x1, x0 ldr x1, [x0] adrp x0, g_paramStruct add x0, x0, :lo12:g_paramStruct str x1, [x0, 8] .L7: ldr w0, [sp, 32] add w0, w0, 1 str w0, [sp, 32] .L4: ldr w1, [sp, 32] ldr w0, [sp, 28] cmp w1, w0 blt .L10 mov w0, 0 .L3: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size checkParam, .-checkParam .section .rodata .align 3 .LC2: .string "fgGetCurFilePlace, param is null\n" .text .align 2 .global fgGetCurFilePlace .type fgGetCurFilePlace, %function fgGetCurFilePlace: .LFB1: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str x0, [sp, 24] ldr x0, [sp, 24] cmp x0, 0 bne .L12 adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x0, [x0] mov x3, x0 mov x2, 33 mov x1, 1 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl fwrite mov x0, -1 b .L13 .L12: ldr x0, [sp, 24] bl ftell .L13: ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size fgGetCurFilePlace, .-fgGetCurFilePlace .section .rodata .align 3 .LC3: .string "fgSetCurFilePlace, param is null\n" .text .align 2 .global fgSetCurFilePlace .type fgSetCurFilePlace, %function fgSetCurFilePlace: .LFB2: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp str x0, [sp, 24] str x1, [sp, 16] ldr x0, [sp, 24] cmp x0, 0 bne .L15 adrp x0, :got:stderr ldr x0, [x0, #:got_lo12:stderr] ldr x0, [x0] mov x3, x0 mov x2, 33 mov x1, 1 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl fwrite mov w0, -1 b .L16 .L15: mov w2, 0 ldr x1, [sp, 16] ldr x0, [sp, 24] bl fseek .L16: ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE2: .size fgSetCurFilePlace, .-fgSetCurFilePlace .section .rodata .align 3 .LC4: .string "%da%d\n" .align 3 .LC5: .string "> %s" .align 3 .LC6: .string "%da%d,%d\n" .text .align 2 .global fgLineAddHandle .type fgLineAddHandle, %function fgLineAddHandle: .LFB3: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] adrp x0, g_fileadd add x0, x0, :lo12:g_fileadd add x0, x0, 1048576 ldr w0, [x0] str w0, [sp, 40] adrp x0, g_fileadd add x0, x0, :lo12:g_fileadd add x0, x0, 1048576 ldr w0, [x0, 4] str w0, [sp, 44] ldr x0, [sp, 24] ldrb w0, [x0] cmp w0, 97 beq .L18 mov w0, -1 b .L19 .L18: ldr w1, [sp, 44] ldr w0, [sp, 40] cmp w1, w0 bne .L20 adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldr w0, [x0, 1032] sub w0, w0, #1 ldr w2, [sp, 40] mov w1, w0 adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl printf adrp x0, g_fileadd add x1, x0, :lo12:g_fileadd adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl printf b .L21 .L20: ldr w1, [sp, 44] ldr w0, [sp, 40] sub w0, w1, w0 cmp w0, 0 ble .L21 adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldr w0, [x0, 1032] sub w0, w0, #1 ldr w3, [sp, 44] ldr w2, [sp, 40] mov w1, w0 adrp x0, .LC6 add x0, x0, :lo12:.LC6 bl printf str wzr, [sp, 36] b .L22 .L23: ldrsw x0, [sp, 36] lsl x1, x0, 10 adrp x0, g_fileadd add x0, x0, :lo12:g_fileadd add x0, x1, x0 mov x1, x0 adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl printf ldr w0, [sp, 36] add w0, w0, 1 str w0, [sp, 36] .L22: ldr w1, [sp, 44] ldr w0, [sp, 40] sub w0, w1, w0 ldr w1, [sp, 36] cmp w1, w0 ble .L23 .L21: mov x2, 32768 mov w1, 0 adrp x0, g_fileadd add x0, x0, :lo12:g_fileadd bl memset adrp x0, g_fileadd add x0, x0, :lo12:g_fileadd add x0, x0, 1048576 mov w1, 1 str w1, [x0] adrp x0, g_fileadd add x0, x0, :lo12:g_fileadd add x0, x0, 1048576 mov w1, 1 str w1, [x0, 4] adrp x0, bSameLineNo add x0, x0, :lo12:bSameLineNo ldr w0, [x0] add w1, w0, 1 adrp x0, bSameLineNo add x0, x0, :lo12:bSameLineNo str w1, [x0] ldr x0, [sp, 24] mov w1, 114 strb w1, [x0] adrp x0, bLineStt add x0, x0, :lo12:bLineStt strb wzr, [x0] mov w0, 0 .L19: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE3: .size fgLineAddHandle, .-fgLineAddHandle .section .rodata .align 3 .LC7: .string "%dd%d\n" .align 3 .LC8: .string "< %s" .align 3 .LC9: .string "%d,%dd%d\n" .text .align 2 .global fgLineDelHandle .type fgLineDelHandle, %function fgLineDelHandle: .LFB4: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] adrp x0, g_filedel add x0, x0, :lo12:g_filedel add x0, x0, 1048576 ldr w0, [x0] str w0, [sp, 40] adrp x0, g_filedel add x0, x0, :lo12:g_filedel add x0, x0, 1048576 ldr w0, [x0, 4] str w0, [sp, 44] ldr x0, [sp, 24] ldrb w0, [x0] cmp w0, 100 beq .L25 mov w0, -1 b .L26 .L25: ldr w1, [sp, 44] ldr w0, [sp, 40] cmp w1, w0 bne .L27 adrp x0, bSameLineNo add x0, x0, :lo12:bSameLineNo ldr w0, [x0] mov w2, w0 ldr w1, [sp, 40] adrp x0, .LC7 add x0, x0, :lo12:.LC7 bl printf adrp x0, g_filedel add x1, x0, :lo12:g_filedel adrp x0, .LC8 add x0, x0, :lo12:.LC8 bl printf b .L28 .L27: ldr w1, [sp, 44] ldr w0, [sp, 40] sub w0, w1, w0 cmp w0, 0 ble .L28 adrp x0, bSameLineNo add x0, x0, :lo12:bSameLineNo ldr w0, [x0] mov w3, w0 ldr w2, [sp, 44] ldr w1, [sp, 40] adrp x0, .LC9 add x0, x0, :lo12:.LC9 bl printf str wzr, [sp, 36] b .L29 .L30: ldrsw x0, [sp, 36] lsl x1, x0, 10 adrp x0, g_filedel add x0, x0, :lo12:g_filedel add x0, x1, x0 mov x1, x0 adrp x0, .LC8 add x0, x0, :lo12:.LC8 bl printf ldr w0, [sp, 36] add w0, w0, 1 str w0, [sp, 36] .L29: ldr w1, [sp, 44] ldr w0, [sp, 40] sub w0, w1, w0 ldr w1, [sp, 36] cmp w1, w0 ble .L30 .L28: mov x2, 32768 mov w1, 0 adrp x0, g_filedel add x0, x0, :lo12:g_filedel bl memset adrp x0, g_filedel add x0, x0, :lo12:g_filedel add x0, x0, 1048576 mov w1, 1 str w1, [x0] adrp x0, g_filedel add x0, x0, :lo12:g_filedel add x0, x0, 1048576 mov w1, 1 str w1, [x0, 4] adrp x0, bSameLineNo add x0, x0, :lo12:bSameLineNo ldr w0, [x0] add w1, w0, 1 adrp x0, bSameLineNo add x0, x0, :lo12:bSameLineNo str w1, [x0] ldr x0, [sp, 24] mov w1, 114 strb w1, [x0] adrp x0, bLineStt add x0, x0, :lo12:bLineStt strb wzr, [x0] mov w0, 0 .L26: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE4: .size fgLineDelHandle, .-fgLineDelHandle .align 2 .global fgLineChangeHandle .type fgLineChangeHandle, %function fgLineChangeHandle: .LFB5: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, 8] ldr x0, [sp, 8] ldrb w0, [x0] cmp w0, 99 beq .L32 mov w0, -1 b .L33 .L32: mov w0, 0 .L33: add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE5: .size fgLineChangeHandle, .-fgLineChangeHandle .align 2 .global fgLineNormalHandle .type fgLineNormalHandle, %function fgLineNormalHandle: .LFB6: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str wzr, [sp, 40] str wzr, [sp, 44] ldr x0, [sp, 24] ldrb w0, [x0] cmp w0, 114 beq .L35 mov w0, -1 b .L36 .L35: adrp x0, bLineStt add x0, x0, :lo12:bLineStt ldrb w0, [x0] cmp w0, 100 bne .L37 mov x2, 1024 mov w1, 0 adrp x0, g_file1+8 add x0, x0, :lo12:g_file1+8 bl memset adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldr x0, [x0] mov x2, x0 mov w1, 1024 adrp x0, g_file1+8 add x0, x0, :lo12:g_file1+8 bl fgets cmp x0, 0 bne .L38 adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldr x0, [x0] bl feof cmp w0, 0 beq .L39 adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldrb w0, [x0, 1036] cmp w0, 0 bne .L39 adrp x0, bLineStt add x0, x0, :lo12:bLineStt mov w1, 97 strb w1, [x0] adrp x0, g_filedel add x1, x0, :lo12:g_filedel adrp x0, g_file1+8 add x0, x0, :lo12:g_file1+8 bl strcpy mov x2, 32768 mov w1, 0 adrp x0, g_filedel add x0, x0, :lo12:g_filedel bl memset adrp x0, g_filedel add x0, x0, :lo12:g_filedel add x0, x0, 1048576 ldr w1, [x0] adrp x0, g_file1 add x0, x0, :lo12:g_file1 str w1, [x0, 1032] adrp x0, g_filedel add x0, x0, :lo12:g_filedel add x0, x0, 1048576 mov w1, 1 str w1, [x0] adrp x0, g_filedel add x0, x0, :lo12:g_filedel add x0, x0, 1048576 mov w1, 1 str w1, [x0, 4] adrp x0, g_file1 add x0, x0, :lo12:g_file1 strb wzr, [x0, 1036] adrp x0, g_file2 add x0, x0, :lo12:g_file2 strb wzr, [x0, 1036] adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldr x2, [x0] adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldr x0, [x0, 1040] mov x1, x0 mov x0, x2 bl fgSetCurFilePlace adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldr x2, [x0] adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldr x0, [x0, 1040] mov x1, x0 mov x0, x2 bl fgSetCurFilePlace mov w0, 0 b .L36 .L39: adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldrb w0, [x0, 1036] cmp w0, 0 beq .L38 ldr x0, [sp, 24] mov w1, 100 strb w1, [x0] mov w0, 0 b .L36 .L38: adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldrb w0, [x0, 1036] cmp w0, 0 beq .L40 adrp x0, g_filedel add x0, x0, :lo12:g_filedel add x0, x0, 1048576 ldr w0, [x0, 4] add w1, w0, 1 adrp x0, g_filedel add x0, x0, :lo12:g_filedel add x0, x0, 1048576 str w1, [x0, 4] adrp x0, g_filedel add x0, x0, :lo12:g_filedel add x0, x0, 1048576 ldr w1, [x0, 4] adrp x0, g_filedel add x0, x0, :lo12:g_filedel add x0, x0, 1048576 ldr w0, [x0] sub w0, w1, w0 sxtw x0, w0 lsl x1, x0, 10 adrp x0, g_filedel add x0, x0, :lo12:g_filedel add x2, x1, x0 adrp x0, g_file1+8 add x1, x0, :lo12:g_file1+8 mov x0, x2 bl strcpy b .L41 .L40: adrp x0, g_file2+8 add x1, x0, :lo12:g_file2+8 adrp x0, g_file1+8 add x0, x0, :lo12:g_file1+8 bl strcmp cmp w0, 0 bne .L42 ldr x0, [sp, 24] mov w1, 100 strb w1, [x0] b .L41 .L42: adrp x0, g_filedel add x0, x0, :lo12:g_filedel add x0, x0, 1048576 ldr w0, [x0, 4] add w1, w0, 1 adrp x0, g_filedel add x0, x0, :lo12:g_filedel add x0, x0, 1048576 str w1, [x0, 4] adrp x0, g_filedel add x0, x0, :lo12:g_filedel add x0, x0, 1048576 ldr w1, [x0, 4] adrp x0, g_filedel add x0, x0, :lo12:g_filedel add x0, x0, 1048576 ldr w0, [x0] sub w0, w1, w0 sxtw x0, w0 lsl x1, x0, 10 adrp x0, g_filedel add x0, x0, :lo12:g_filedel add x2, x1, x0 adrp x0, g_file1+8 add x1, x0, :lo12:g_file1+8 mov x0, x2 bl strcpy .L41: adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldr w0, [x0, 1032] add w1, w0, 1 adrp x0, g_file1 add x0, x0, :lo12:g_file1 str w1, [x0, 1032] b .L43 .L37: adrp x0, bLineStt add x0, x0, :lo12:bLineStt ldrb w0, [x0] cmp w0, 97 bne .L44 mov x2, 1024 mov w1, 0 adrp x0, g_file2+8 add x0, x0, :lo12:g_file2+8 bl memset adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldr x0, [x0] mov x2, x0 mov w1, 1024 adrp x0, g_file2+8 add x0, x0, :lo12:g_file2+8 bl fgets cmp x0, 0 bne .L45 adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldr x0, [x0] bl feof cmp w0, 0 beq .L46 adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldrb w0, [x0, 1036] cmp w0, 0 bne .L46 adrp x0, bLineStt add x0, x0, :lo12:bLineStt mov w1, 99 strb w1, [x0] mov x2, 32768 mov w1, 0 adrp x0, g_fileadd add x0, x0, :lo12:g_fileadd bl memset adrp x0, g_filechange add x0, x0, :lo12:g_filechange add x0, x0, 2097152 ldr w1, [x0] adrp x0, g_file1 add x0, x0, :lo12:g_file1 str w1, [x0, 1032] adrp x0, g_filechange add x0, x0, :lo12:g_filechange add x0, x0, 2097152 ldr w1, [x0, 8] adrp x0, g_file2 add x0, x0, :lo12:g_file2 str w1, [x0, 1032] adrp x0, g_fileadd add x0, x0, :lo12:g_fileadd add x0, x0, 1048576 mov w1, 1 str w1, [x0] adrp x0, g_fileadd add x0, x0, :lo12:g_fileadd add x0, x0, 1048576 mov w1, 1 str w1, [x0, 4] adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldr x2, [x0] adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldr x0, [x0, 1040] mov x1, x0 mov x0, x2 bl fgSetCurFilePlace adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldr x2, [x0] adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldr x0, [x0, 1040] mov x1, x0 mov x0, x2 bl fgSetCurFilePlace mov w0, 0 b .L36 .L46: adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldrb w0, [x0, 1036] cmp w0, 0 beq .L45 ldr x0, [sp, 24] mov w1, 97 strb w1, [x0] mov w0, 0 b .L36 .L45: adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldrb w0, [x0, 1036] cmp w0, 0 beq .L47 adrp x0, g_fileadd add x0, x0, :lo12:g_fileadd add x0, x0, 1048576 ldr w0, [x0, 4] add w1, w0, 1 adrp x0, g_fileadd add x0, x0, :lo12:g_fileadd add x0, x0, 1048576 str w1, [x0, 4] adrp x0, g_fileadd add x0, x0, :lo12:g_fileadd add x0, x0, 1048576 ldr w1, [x0, 4] adrp x0, g_fileadd add x0, x0, :lo12:g_fileadd add x0, x0, 1048576 ldr w0, [x0] sub w0, w1, w0 sxtw x0, w0 lsl x1, x0, 10 adrp x0, g_fileadd add x0, x0, :lo12:g_fileadd add x2, x1, x0 adrp x0, g_file2+8 add x1, x0, :lo12:g_file2+8 mov x0, x2 bl strcpy b .L48 .L47: adrp x0, g_file2+8 add x1, x0, :lo12:g_file2+8 adrp x0, g_file1+8 add x0, x0, :lo12:g_file1+8 bl strcmp cmp w0, 0 bne .L49 ldr x0, [sp, 24] mov w1, 97 strb w1, [x0] b .L48 .L49: adrp x0, g_fileadd add x0, x0, :lo12:g_fileadd add x0, x0, 1048576 ldr w0, [x0, 4] add w1, w0, 1 adrp x0, g_fileadd add x0, x0, :lo12:g_fileadd add x0, x0, 1048576 str w1, [x0, 4] adrp x0, g_fileadd add x0, x0, :lo12:g_fileadd add x0, x0, 1048576 ldr w1, [x0, 4] adrp x0, g_fileadd add x0, x0, :lo12:g_fileadd add x0, x0, 1048576 ldr w0, [x0] sub w0, w1, w0 sxtw x0, w0 lsl x1, x0, 10 adrp x0, g_fileadd add x0, x0, :lo12:g_fileadd add x2, x1, x0 adrp x0, g_file2+8 add x1, x0, :lo12:g_file2+8 mov x0, x2 bl strcpy .L48: adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldr w0, [x0, 1032] add w1, w0, 1 adrp x0, g_file2 add x0, x0, :lo12:g_file2 str w1, [x0, 1032] b .L43 .L44: adrp x0, bLineStt add x0, x0, :lo12:bLineStt ldrb w0, [x0] cmp w0, 99 beq .L43 adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldr x0, [x0] bl fgGetCurFilePlace str w0, [sp, 40] adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldr x0, [x0] bl fgGetCurFilePlace str w0, [sp, 44] adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldr x0, [x0] mov x2, x0 mov w1, 1024 adrp x0, g_file1+8 add x0, x0, :lo12:g_file1+8 bl fgets cmp x0, 0 bne .L50 adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldr w0, [x0, 1032] cmp w0, 1 bne .L51 mov w0, -1 b .L36 .L51: adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldr x0, [x0] bl feof cmp w0, 0 beq .L50 adrp x0, g_file1 add x0, x0, :lo12:g_file1 mov w1, 1 strb w1, [x0, 1036] .L50: adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldr x0, [x0] mov x2, x0 mov w1, 1024 adrp x0, g_file2+8 add x0, x0, :lo12:g_file2+8 bl fgets cmp x0, 0 bne .L52 adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldr w0, [x0, 1032] cmp w0, 1 bne .L53 mov w0, -1 b .L36 .L53: adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldr x0, [x0] bl feof cmp w0, 0 beq .L52 adrp x0, g_file2 add x0, x0, :lo12:g_file2 mov w1, 1 strb w1, [x0, 1036] .L52: adrp x0, g_file2+8 add x1, x0, :lo12:g_file2+8 adrp x0, g_file1+8 add x0, x0, :lo12:g_file1+8 bl strcmp cmp w0, 0 bne .L54 adrp x0, bSameLineNo add x0, x0, :lo12:bSameLineNo ldr w0, [x0] add w1, w0, 1 adrp x0, bSameLineNo add x0, x0, :lo12:bSameLineNo str w1, [x0] adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldrb w0, [x0, 1036] cmp w0, 1 bne .L55 adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldrb w0, [x0, 1036] cmp w0, 1 bne .L55 mov w0, 1 b .L36 .L55: adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldrb w0, [x0, 1036] cmp w0, 1 bne .L56 adrp x0, bLineStt add x0, x0, :lo12:bLineStt mov w1, 97 strb w1, [x0] adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldr w1, [x0, 1032] adrp x0, g_fileadd add x0, x0, :lo12:g_fileadd add x0, x0, 1048576 str w1, [x0] adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldr w1, [x0, 1032] adrp x0, g_fileadd add x0, x0, :lo12:g_fileadd add x0, x0, 1048576 str w1, [x0, 4] mov x2, 1024 mov w1, 0 adrp x0, g_file2+8 add x0, x0, :lo12:g_file2+8 bl memset adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldr w0, [x0, 1032] add w1, w0, 1 adrp x0, g_file2 add x0, x0, :lo12:g_file2 str w1, [x0, 1032] b .L43 .L56: adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldrb w0, [x0, 1036] cmp w0, 1 bne .L57 adrp x0, bLineStt add x0, x0, :lo12:bLineStt mov w1, 100 strb w1, [x0] adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldr w1, [x0, 1032] adrp x0, g_filedel add x0, x0, :lo12:g_filedel add x0, x0, 1048576 str w1, [x0] adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldr w1, [x0, 1032] adrp x0, g_filedel add x0, x0, :lo12:g_filedel add x0, x0, 1048576 str w1, [x0, 4] mov x2, 1024 mov w1, 0 adrp x0, g_file1+8 add x0, x0, :lo12:g_file1+8 bl memset adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldr w0, [x0, 1032] add w1, w0, 1 adrp x0, g_file1 add x0, x0, :lo12:g_file1 str w1, [x0, 1032] b .L43 .L57: mov x2, 1024 mov w1, 0 adrp x0, g_file1+8 add x0, x0, :lo12:g_file1+8 bl memset mov x2, 1024 mov w1, 0 adrp x0, g_file2+8 add x0, x0, :lo12:g_file2+8 bl memset adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldr w0, [x0, 1032] add w1, w0, 1 adrp x0, g_file1 add x0, x0, :lo12:g_file1 str w1, [x0, 1032] adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldr w0, [x0, 1032] add w1, w0, 1 adrp x0, g_file2 add x0, x0, :lo12:g_file2 str w1, [x0, 1032] b .L43 .L54: adrp x0, g_file1+8 add x1, x0, :lo12:g_file1+8 adrp x0, g_filedel add x0, x0, :lo12:g_filedel bl strcpy adrp x0, g_file2+8 add x1, x0, :lo12:g_file2+8 adrp x0, g_fileadd add x0, x0, :lo12:g_fileadd bl strcpy adrp x0, g_file1+8 add x1, x0, :lo12:g_file1+8 adrp x0, g_filechange add x0, x0, :lo12:g_filechange bl strcpy adrp x0, g_file2+8 add x1, x0, :lo12:g_file2+8 adrp x0, g_filechange+1048576 add x0, x0, :lo12:g_filechange+1048576 bl strcpy adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldrb w0, [x0, 1036] cmp w0, 1 bne .L58 adrp x0, bLineStt add x0, x0, :lo12:bLineStt mov w1, 97 strb w1, [x0] adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldr w1, [x0, 1032] adrp x0, g_fileadd add x0, x0, :lo12:g_fileadd add x0, x0, 1048576 str w1, [x0] adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldr w1, [x0, 1032] adrp x0, g_fileadd add x0, x0, :lo12:g_fileadd add x0, x0, 1048576 str w1, [x0, 4] mov x2, 1024 mov w1, 0 adrp x0, g_file2+8 add x0, x0, :lo12:g_file2+8 bl memset adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldr w0, [x0, 1032] add w1, w0, 1 adrp x0, g_file2 add x0, x0, :lo12:g_file2 str w1, [x0, 1032] b .L59 .L58: adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldrb w0, [x0, 1036] cmp w0, 1 bne .L60 adrp x0, bLineStt add x0, x0, :lo12:bLineStt mov w1, 100 strb w1, [x0] adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldr w1, [x0, 1032] adrp x0, g_filedel add x0, x0, :lo12:g_filedel add x0, x0, 1048576 str w1, [x0] adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldr w1, [x0, 1032] adrp x0, g_filedel add x0, x0, :lo12:g_filedel add x0, x0, 1048576 str w1, [x0, 4] mov x2, 1024 mov w1, 0 adrp x0, g_file1+8 add x0, x0, :lo12:g_file1+8 bl memset adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldr w0, [x0, 1032] add w1, w0, 1 adrp x0, g_file1 add x0, x0, :lo12:g_file1 str w1, [x0, 1032] b .L59 .L60: adrp x0, bLineStt add x0, x0, :lo12:bLineStt mov w1, 100 strb w1, [x0] adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldr w0, [x0, 1032] add w1, w0, 1 adrp x0, g_file1 add x0, x0, :lo12:g_file1 str w1, [x0, 1032] adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldr w0, [x0, 1032] add w1, w0, 1 adrp x0, g_file2 add x0, x0, :lo12:g_file2 str w1, [x0, 1032] .L59: adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldr w1, [x0, 1032] adrp x0, g_filedel add x0, x0, :lo12:g_filedel add x0, x0, 1048576 str w1, [x0] adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldr w1, [x0, 1032] adrp x0, g_filedel add x0, x0, :lo12:g_filedel add x0, x0, 1048576 str w1, [x0, 4] adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldr w1, [x0, 1032] adrp x0, g_fileadd add x0, x0, :lo12:g_fileadd add x0, x0, 1048576 str w1, [x0] adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldr w1, [x0, 1032] adrp x0, g_fileadd add x0, x0, :lo12:g_fileadd add x0, x0, 1048576 str w1, [x0, 4] adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldr w1, [x0, 1032] adrp x0, g_filechange add x0, x0, :lo12:g_filechange add x0, x0, 2097152 str w1, [x0] adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldr w1, [x0, 1032] adrp x0, g_filechange add x0, x0, :lo12:g_filechange add x0, x0, 2097152 str w1, [x0, 4] adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldr w1, [x0, 1032] adrp x0, g_filechange add x0, x0, :lo12:g_filechange add x0, x0, 2097152 str w1, [x0, 8] adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldr w1, [x0, 1032] adrp x0, g_filechange add x0, x0, :lo12:g_filechange add x0, x0, 2097152 str w1, [x0, 12] adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldr x0, [x0] bl fgGetCurFilePlace mov x1, x0 adrp x0, g_file1 add x0, x0, :lo12:g_file1 str x1, [x0, 1040] adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldr x0, [x0] bl fgGetCurFilePlace mov x1, x0 adrp x0, g_file2 add x0, x0, :lo12:g_file2 str x1, [x0, 1040] .L43: mov w0, 0 .L36: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size fgLineNormalHandle, .-fgLineNormalHandle .section .rodata .align 3 .LC10: .string "r" .align 3 .LC11: .string "[diff]Cannot open %s\n" .text .align 2 .global main .type main, %function main: .LFB7: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str w0, [sp, 28] str x1, [sp, 16] adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 40] mov x1, 0 mov w0, 114 strb w0, [sp, 35] str wzr, [sp, 36] mov x2, 8 movk x2, 0x10, lsl 16 mov w1, 0 adrp x0, g_fileadd add x0, x0, :lo12:g_fileadd bl memset mov x2, 8 movk x2, 0x10, lsl 16 mov w1, 0 adrp x0, g_filedel add x0, x0, :lo12:g_filedel bl memset mov x2, 16 movk x2, 0x20, lsl 16 mov w1, 0 adrp x0, g_filechange add x0, x0, :lo12:g_filechange bl memset mov x2, 1048 mov w1, 0 adrp x0, g_file1 add x0, x0, :lo12:g_file1 bl memset mov x2, 1048 mov w1, 0 adrp x0, g_file2 add x0, x0, :lo12:g_file2 bl memset ldr x1, [sp, 16] ldr w0, [sp, 28] bl checkParam str w0, [sp, 36] ldr w0, [sp, 36] cmp w0, 0 beq .L62 mov w0, -1 b .L77 .L62: adrp x0, g_paramStruct add x0, x0, :lo12:g_paramStruct ldr x2, [x0] adrp x0, .LC10 add x1, x0, :lo12:.LC10 mov x0, x2 bl fopen mov x1, x0 adrp x0, g_file1 add x0, x0, :lo12:g_file1 str x1, [x0] adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldr x0, [x0] cmp x0, 0 bne .L64 adrp x0, g_paramStruct add x0, x0, :lo12:g_paramStruct ldr x0, [x0] mov x1, x0 adrp x0, .LC11 add x0, x0, :lo12:.LC11 bl printf mov w0, -1 b .L77 .L64: adrp x0, g_paramStruct add x0, x0, :lo12:g_paramStruct ldr x2, [x0, 8] adrp x0, .LC10 add x1, x0, :lo12:.LC10 mov x0, x2 bl fopen mov x1, x0 adrp x0, g_file2 add x0, x0, :lo12:g_file2 str x1, [x0] adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldr x0, [x0] cmp x0, 0 bne .L65 adrp x0, g_paramStruct add x0, x0, :lo12:g_paramStruct ldr x0, [x0, 8] mov x1, x0 adrp x0, .LC11 add x0, x0, :lo12:.LC11 bl printf mov w0, -1 b .L77 .L65: str wzr, [sp, 36] adrp x0, bLineStt add x0, x0, :lo12:bLineStt strb wzr, [x0] adrp x0, g_file1 add x0, x0, :lo12:g_file1 str wzr, [x0, 1032] adrp x0, g_file2 add x0, x0, :lo12:g_file2 str wzr, [x0, 1032] .L74: ldrb w0, [sp, 35] cmp w0, 114 beq .L66 cmp w0, 114 bgt .L80 cmp w0, 100 beq .L68 cmp w0, 100 bgt .L80 cmp w0, 97 beq .L69 cmp w0, 99 beq .L70 b .L80 .L68: add x0, sp, 35 bl fgLineDelHandle str w0, [sp, 36] b .L71 .L69: add x0, sp, 35 bl fgLineAddHandle str w0, [sp, 36] b .L71 .L70: add x0, sp, 35 bl fgLineChangeHandle str w0, [sp, 36] b .L71 .L66: add x0, sp, 35 bl fgLineNormalHandle str w0, [sp, 36] b .L71 .L80: nop .L71: ldr w0, [sp, 36] cmp w0, 0 bne .L81 b .L74 .L81: nop adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldr x0, [x0] cmp x0, 0 beq .L75 adrp x0, g_file1 add x0, x0, :lo12:g_file1 ldr x0, [x0] bl fclose adrp x0, g_file1 add x0, x0, :lo12:g_file1 str xzr, [x0] .L75: adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldr x0, [x0] cmp x0, 0 beq .L76 adrp x0, g_file2 add x0, x0, :lo12:g_file2 ldr x0, [x0] bl fclose adrp x0, g_file2 add x0, x0, :lo12:g_file2 str xzr, [x0] .L76: mov w0, 0 .L77: mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 40] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L78 bl __stack_chk_fail .L78: mov w0, w1 ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global info_compiler .section .rodata .align 3 .LC0: .string "INFO:compiler[GNU]" .section .data.rel.local,"aw" .align 3 .type info_compiler, %object .size info_compiler, 8 info_compiler: .xword .LC0 .global info_version .section .rodata .align 3 .type info_version, %object .size info_version, 50 info_version: .string "INFO:compiler_version[00000011.00000004.00000000]" .global info_platform .align 3 .LC1: .string "INFO:platform[Linux]" .section .data.rel.local .align 3 .type info_platform, %object .size info_platform, 8 info_platform: .xword .LC1 .global info_arch .section .rodata .align 3 .LC2: .string "INFO:arch[]" .section .data.rel.local .align 3 .type info_arch, %object .size info_arch, 8 info_arch: .xword .LC2 .global info_language_dialect_default .section .rodata .align 3 .LC3: .string "INFO:dialect_default[11]" .section .data.rel.local .align 3 .type info_language_dialect_default, %object .size info_language_dialect_default, 8 info_language_dialect_default: .xword .LC3 .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, 12] str x1, [sp] str wzr, [sp, 28] adrp x0, info_compiler add x0, x0, :lo12:info_compiler ldr x1, [x0] ldrsw x0, [sp, 12] add x0, x1, x0 ldrb w0, [x0] mov w1, w0 ldr w0, [sp, 28] add w0, w0, w1 str w0, [sp, 28] adrp x0, info_platform add x0, x0, :lo12:info_platform ldr x1, [x0] ldrsw x0, [sp, 12] add x0, x1, x0 ldrb w0, [x0] mov w1, w0 ldr w0, [sp, 28] add w0, w0, w1 str w0, [sp, 28] adrp x0, info_arch add x0, x0, :lo12:info_arch ldr x1, [x0] ldrsw x0, [sp, 12] add x0, x1, x0 ldrb w0, [x0] mov w1, w0 ldr w0, [sp, 28] add w0, w0, w1 str w0, [sp, 28] adrp x0, info_version add x1, x0, :lo12:info_version ldrsw x0, [sp, 12] ldrb w0, [x1, x0] mov w1, w0 ldr w0, [sp, 28] add w0, w0, w1 str w0, [sp, 28] adrp x0, info_language_dialect_default add x0, x0, :lo12:info_language_dialect_default ldr x1, [x0] ldrsw x0, [sp, 12] add x0, x1, x0 ldrb w0, [x0] mov w1, w0 ldr w0, [sp, 28] add w0, w0, w1 str w0, [sp, 28] ldr w0, [sp, 28] add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "Please enter your name: " .align 3 .LC1: .string "Hi %s\n" .text .align 2 .global func .type func, %function func: .LFB6: .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 .cfi_def_cfa 29, 544 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [x29, 536] mov x1, 0 sub sp, sp, #16 str xzr, [sp, 8] add x0, sp, 16 add x0, x0, 15 lsr x0, x0, 4 lsl x0, x0, 4 str x0, [x29, 16] adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl puts adrp x0, :got:stdin ldr x0, [x0, #:got_lo12:stdin] ldr x1, [x0] add x0, x29, 24 mov x2, x1 mov w1, 512 bl fgets adrp x0, :got:stdin ldr x0, [x0, #:got_lo12:stdin] ldr x0, [x0] mov x2, x0 mov w1, 10 ldr x0, [x29, 16] bl fgets add x0, x29, 24 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf ldr x0, [x29, 16] bl puts nop adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x2, [x29, 536] ldr x1, [x0] subs x2, x2, x1 mov x1, 0 beq .L2 bl __stack_chk_fail .L2: sub sp, x29, #16 .cfi_def_cfa 31, 560 ldp x29, x30, [sp, 16] add sp, sp, 560 .cfi_restore 29 .cfi_restore 30 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size func, .-func .align 2 .global main .type main, %function main: .LFB7: .cfi_startproc stp x29, x30, [sp, -16]! .cfi_def_cfa_offset 16 .cfi_offset 29, -16 .cfi_offset 30, -8 mov x29, sp bl func mov w0, 0 ldp x29, x30, [sp], 16 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global A .bss .align 3 .type A, %object .size A, 260 A: .zero 260 .global B .align 3 .type B, %object .size B, 260 B: .zero 260 .global feito .align 2 .type feito, %object .size feito, 4 feito: .zero 4 .global fimA .align 2 .type fimA, %object .size fimA, 4 fimA: .zero 4 .global fimB .align 2 .type fimB, %object .size fimB, 4 fimB: .zero 4 .section .rodata .align 3 .LC0: .string "%d " .align 3 .LC1: .string "%d\n" .text .align 2 .global bt .type bt, %function bt: .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] adrp x0, B add x1, x0, :lo12:B ldrsw x0, [sp, 20] ldrb w0, [x1, x0] cmp w0, 0 bne .L2 adrp x0, feito add x0, x0, :lo12:feito mov w1, 1 str w1, [x0] str wzr, [sp, 40] b .L3 .L4: ldrsw x0, [sp, 40] lsl x0, x0, 2 ldr x1, [sp, 24] add x0, x1, x0 ldr w0, [x0] add w0, w0, 1 mov w1, w0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf ldr w0, [sp, 40] add w0, w0, 1 str w0, [sp, 40] .L3: ldr w0, [sp, 40] add w2, w0, 1 adrp x0, B add x1, x0, :lo12:B sxtw x0, w2 ldrb w0, [x1, x0] cmp w0, 0 bne .L4 ldrsw x0, [sp, 40] lsl x0, x0, 2 ldr x1, [sp, 24] add x0, x1, x0 ldr w0, [x0] add w0, w0, 1 mov w1, w0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf b .L1 .L2: ldr w0, [sp, 20] cmp w0, 0 ble .L6 ldrsw x0, [sp, 20] lsl x0, x0, 2 sub x0, x0, #4 ldr x1, [sp, 24] add x0, x1, x0 ldr w0, [x0] b .L7 .L6: ldr w0, [sp, 20] .L7: str w0, [sp, 44] b .L8 .L11: adrp x0, A add x1, x0, :lo12:A ldrsw x0, [sp, 44] ldrb w1, [x1, x0] adrp x0, B add x2, x0, :lo12:B ldrsw x0, [sp, 20] ldrb w0, [x2, x0] cmp w1, w0 bne .L9 ldr w0, [sp, 20] cmp w0, 0 beq .L10 ldr w0, [sp, 20] cmp w0, 0 ble .L9 ldrsw x0, [sp, 20] lsl x0, x0, 2 sub x0, x0, #4 ldr x1, [sp, 24] add x0, x1, x0 ldr w0, [x0] ldr w1, [sp, 44] cmp w1, w0 ble .L9 .L10: ldrsw x0, [sp, 20] lsl x0, x0, 2 ldr x1, [sp, 24] add x0, x1, x0 ldr w1, [sp, 44] str w1, [x0] ldr w0, [sp, 20] add w0, w0, 1 mov w1, w0 ldr x0, [sp, 24] bl bt .L9: ldr w0, [sp, 44] add w0, w0, 1 str w0, [sp, 44] .L8: adrp x0, A add x1, x0, :lo12:A ldrsw x0, [sp, 44] ldrb w0, [x1, x0] cmp w0, 0 bne .L11 .L1: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size bt, .-bt .section .rodata .align 3 .LC2: .string "%[^\n]" .align 3 .LC3: .string "-1" .text .align 2 .global main .type main, %function main: .LFB7: .cfi_startproc sub sp, sp, #1072 .cfi_def_cfa_offset 1072 stp x29, x30, [sp] .cfi_offset 29, -1072 .cfi_offset 30, -1064 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 1064] mov x1, 0 adrp x0, A add x1, x0, :lo12:A adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl __isoc99_scanf bl getchar adrp x0, B add x1, x0, :lo12:B adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl __isoc99_scanf adrp x0, feito add x0, x0, :lo12:feito str wzr, [x0] add x0, sp, 24 mov w1, 0 bl bt adrp x0, feito add x0, x0, :lo12:feito ldr w0, [x0] cmp w0, 0 bne .L13 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl puts .L13: mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 1064] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L15 bl __stack_chk_fail .L15: mov w0, w1 ldp x29, x30, [sp] add sp, sp, 1072 .cfi_restore 29 .cfi_restore 30 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .type expected_r_fail, %object .size expected_r_fail, 8 expected_r_fail: .zero 8 .section .data_smode,"aw" .align 2 .type actual_r_fail, %object .size actual_r_fail, 4 actual_r_fail: .zero 4 .section .rodata .align 3 .type expected_w_fail, %object .size expected_w_fail, 8 expected_w_fail: .xword 1 .section .data_smode .align 2 .type actual_w_fail, %object .size actual_w_fail, 4 actual_w_fail: .zero 4 .section .rodata .align 3 .type expected_x_fail, %object .size expected_x_fail, 8 expected_x_fail: .zero 8 .local actual_x_fail .comm actual_x_fail,4,4 .text .align 2 .global handle_trap .type handle_trap, %function handle_trap: .LFB0: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp str x0, [sp, 40] str x1, [sp, 32] str x2, [sp, 24] ldr x1, [sp, 32] mov x0, 2097151 cmp x1, x0 bls .L2 ldr x1, [sp, 32] mov w0, 2359295 cmp x1, x0 bhi .L2 #APP // 112 "program.c" 1 nop // 0 "" 2 #NO_APP adrp x0, actual_x_fail add x0, x0, :lo12:actual_x_fail mov w1, 1 str w1, [x0] bl checkTestResult b .L3 .L2: ldr x0, [sp, 40] cmp x0, 13 beq .L4 ldr x0, [sp, 40] cmp x0, 15 bne .L5 .L4: #APP // 118 "program.c" 1 csrr x0, mtval // 0 "" 2 #NO_APP str x0, [sp, 56] ldr x1, [sp, 56] mov x0, 2097151 cmp x1, x0 bls .L6 ldr x1, [sp, 56] mov w0, 2359295 cmp x1, x0 bhi .L6 ldr x0, [sp, 40] cmp x0, 13 bne .L7 adrp x0, actual_r_fail add x0, x0, :lo12:actual_r_fail mov w1, 1 str w1, [x0] b .L8 .L7: adrp x0, actual_w_fail add x0, x0, :lo12:actual_w_fail mov w1, 1 str w1, [x0] .L8: ldr x0, [sp, 32] add x0, x0, 4 b .L12 .L6: ldr x1, [sp, 56] mov x0, 268435456 cmp x1, x0 bne .L13 #APP // 129 "program.c" 1 nop // 0 "" 2 // 130 "program.c" 1 nop // 0 "" 2 #NO_APP bl checkTestResult b .L13 .L5: ldr x0, [sp, 40] cmp x0, 5 beq .L11 ldr x0, [sp, 40] cmp x0, 7 bne .L3 .L11: #APP // 135 "program.c" 1 csrr x0, mtval // 0 "" 2 #NO_APP str x0, [sp, 48] ldr x1, [sp, 48] mov x0, 268435456 cmp x1, x0 bne .L3 #APP // 137 "program.c" 1 nop // 0 "" 2 // 138 "program.c" 1 nop // 0 "" 2 #NO_APP bl checkTestResult b .L3 .L13: nop .L3: mov x0, 1337 bl tohost_exit .L12: ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size handle_trap, .-handle_trap .align 2 .type switch_mode_access, %function switch_mode_access: .LFB1: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 #APP // 161 "program.c" 1 li x0, 256 csrc sstatus, t0 la x0, try_access_umode csrw sepc, x0 li sp, 2424832 sret // 0 "" 2 #NO_APP str x0, [sp, 8] nop add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size switch_mode_access, .-switch_mode_access .section .text_test_foo,"ax",@progbits .align 2 .type target_foo, %function target_foo: .LFB2: .cfi_startproc #APP // 174 "program.c" 1 nop // 0 "" 2 #NO_APP adrp x0, actual_x_fail add x0, x0, :lo12:actual_x_fail str wzr, [x0] nop ret .cfi_endproc .LFE2: .size target_foo, .-target_foo .align 2 .type target_foo_umode, %function target_foo_umode: .LFB3: .cfi_startproc #APP // 183 "program.c" 1 nop // 0 "" 2 #NO_APP nop ret .cfi_endproc .LFE3: .size target_foo_umode, .-target_foo_umode .section .data_test_arr,"aw" .align 3 .type target_arr, %object .size target_arr, 100 target_arr: .string "\001\002\003\004\005\006\007\b" .zero 91 .section .text_smode,"ax",@progbits .align 2 .type try_access, %function try_access: .LFB4: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 adrp x0, target_arr add x0, x0, :lo12:target_arr ldrb w0, [x0] and w0, w0, 255 add w0, w0, 1 and w1, w0, 255 adrp x0, target_arr add x0, x0, :lo12:target_arr strb w1, [x0] mov x0, 1800 movk x0, 0x506, lsl 16 movk x0, 0x3040, lsl 32 movk x0, 0x1020, lsl 48 str x0, [sp, 8] adrp x0, target_arr add x0, x0, :lo12:target_arr ldr x0, [x0] mov x1, x0 ldr x0, [sp, 8] add x1, x1, x0 adrp x0, target_arr add x0, x0, :lo12:target_arr str x1, [x0] adrp x0, actual_r_fail add x0, x0, :lo12:actual_r_fail ldr w0, [x0] cmp w0, 0 bne .L19 adrp x0, actual_w_fail add x0, x0, :lo12:actual_w_fail ldr w0, [x0] cmp w0, 0 bne .L19 adrp x0, target_arr add x0, x0, :lo12:target_arr ldr x0, [x0] mov x2, x0 ldr x1, [sp, 8] mov x0, 514 movk x0, 0x403, lsl 16 movk x0, 0x605, lsl 32 movk x0, 0x807, lsl 48 add x0, x1, x0 cmp x2, x0 beq .L19 adrp x0, actual_r_fail add x0, x0, :lo12:actual_r_fail mov w1, 1 str w1, [x0] adrp x0, actual_w_fail add x0, x0, :lo12:actual_w_fail mov w1, 1 str w1, [x0] .L19: nop add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE4: .size try_access, .-try_access .align 2 .global smode_main .type smode_main, %function smode_main: .LFB5: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp mov w0, 16384 movk w0, 0xa, lsl 16 #APP // 221 "program.c" 1 csrw 0x1b3, x0 // 0 "" 2 #NO_APP mov w0, 16384 movk w0, 0x9, lsl 16 #APP // 222 "program.c" 1 csrw 0x1b2, x0 // 0 "" 2 #NO_APP mov w0, 589824 #APP // 223 "program.c" 1 csrw 0x1b1, x0 // 0 "" 2 #NO_APP mov w0, 524288 #APP // 224 "program.c" 1 csrw 0x1b0, x0 // 0 "" 2 #NO_APP mov x0, -65536 movk x0, 0x8800, lsl 16 str x0, [sp, 24] ldr x0, [sp, 24] orr x0, x0, 983040 str x0, [sp, 24] ldr x1, [sp, 24] mov x0, 36608 orr x0, x1, x0 str x0, [sp, 24] ldr x0, [sp, 24] #APP // 239 "program.c" 1 csrw 0x1a0, x0 // 0 "" 2 // 245 "program.c" 1 fence.i // 0 "" 2 #NO_APP bl switch_mode_access bl checkTestResult nop ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE5: .size smode_main, .-smode_main .text .align 2 .type switch_smode, %function switch_smode: .LFB6: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 #APP // 291 "program.c" 1 csrr x0, mstatus // 0 "" 2 #NO_APP str x0, [sp, 8] ldr x0, [sp, 8] and x0, x0, -6145 str x0, [sp, 8] ldr x0, [sp, 8] orr x0, x0, 2048 str x0, [sp, 8] ldr x0, [sp, 8] #APP // 298 "program.c" 1 csrw mstatus, x0 // 0 "" 2 // 303 "program.c" 1 csrw satp, x0 // 0 "" 2 // 307 "program.c" 1 la x0, smode_main csrw mepc, x0 li sp, 2686976 mret // 0 "" 2 #NO_APP str x0, [sp, 8] nop add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size switch_smode, .-switch_smode .align 2 .type set_cfg, %function set_cfg: .LFB7: .cfi_startproc mov w0, 1048575 #APP // 327 "program.c" 1 csrw pmpaddr0, x0 // 0 "" 2 #NO_APP mov w0, 31 #APP // 330 "program.c" 1 csrw pmpcfg0, x0 // 0 "" 2 // 333 "program.c" 1 fence.i // 0 "" 2 #NO_APP nop ret .cfi_endproc .LFE7: .size set_cfg, .-set_cfg .section .text_umode,"ax",@progbits .align 2 .global try_access_umode .type try_access_umode, %function try_access_umode: .LFB8: .cfi_startproc adrp x0, target_arr add x0, x0, :lo12:target_arr ldrb w0, [x0] and w0, w0, 255 add w0, w0, 1 and w1, w0, 255 adrp x0, target_arr add x0, x0, :lo12:target_arr strb w1, [x0] mov x0, 268435456 mov w1, 1 strb w1, [x0] nop ret .cfi_endproc .LFE8: .size try_access_umode, .-try_access_umode .text .align 2 .type checkTestResult, %function checkTestResult: .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 wzr, [sp, 28] adrp x0, actual_r_fail add x0, x0, :lo12:actual_r_fail ldr w0, [x0] uxtw x0, w0 mov x1, 0 cmp x0, x1 beq .L25 ldr w0, [sp, 28] add w0, w0, 1 str w0, [sp, 28] .L25: adrp x0, actual_w_fail add x0, x0, :lo12:actual_w_fail ldr w0, [x0] uxtw x1, w0 mov x0, 1 cmp x1, x0 beq .L26 ldr w0, [sp, 28] add w0, w0, 2 str w0, [sp, 28] .L26: adrp x0, actual_x_fail add x0, x0, :lo12:actual_x_fail ldr w0, [x0] uxtw x0, w0 mov x1, 0 cmp x0, x1 beq .L27 ldr w0, [sp, 28] add w0, w0, 4 str w0, [sp, 28] .L27: ldr w0, [sp, 28] bl exit .cfi_endproc .LFE9: .size checkTestResult, .-checkTestResult .align 2 .global main .type main, %function main: .LFB10: .cfi_startproc stp x29, x30, [sp, -16]! .cfi_def_cfa_offset 16 .cfi_offset 29, -16 .cfi_offset 30, -8 mov x29, sp bl set_cfg bl switch_smode mov w0, 0 ldp x29, x30, [sp], 16 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE10: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .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 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 136] mov x1, 0 adrp x0, .LC0 add x1, x0, :lo12:.LC0 add x0, sp, 24 ldp q0, q1, [x1] stp q0, q1, [x0] ldp q0, q1, [x1, 32] stp q0, q1, [x0, 32] ldp q0, q1, [x1, 64] stp q0, q1, [x0, 64] ldr q0, [x1, 96] str q0, [x0, 96] add x0, sp, 24 str x0, [sp, 16] ldr x0, [sp, 16] blr x0 mov w0, 0 mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 136] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L3 bl __stack_chk_fail .L3: mov w0, w1 ldp x29, x30, [sp], 144 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size main, .-main .section .rodata .align 3 .LC0: .string "\0010\217\342\023\377/\341\002 \001!\222\032\310'Q7\001\337\004\034\022\241Jp\nqJq\212q\312q\020\"\0017\001\337\300F \034\002!\0027\001\337 \034I\032\222\032\0017\001\337\004\034?' \034I\032\001\337 \034\0011\001\337 \034\0011\001\337\005\240I@R@\302q\013'\001\337\300F\002\377\021\\" .string "" .string "" .string "" .ascii "/bin/shX" .text ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "%f" .align 3 .LC1: .string "%d" .text .align 2 .global scilab_rt_contour_d2i2i2d0d0_ .type scilab_rt_contour_d2i2i2d0d0_, %function scilab_rt_contour_d2i2i2d0d0_: .LFB0: .cfi_startproc stp x29, x30, [sp, -144]! .cfi_def_cfa_offset 144 .cfi_offset 29, -144 .cfi_offset 30, -136 mov x29, sp stp x19, x20, [sp, 16] .cfi_offset 19, -128 .cfi_offset 20, -120 str w0, [sp, 92] str w1, [sp, 88] str x2, [sp, 80] str w3, [sp, 76] str w4, [sp, 72] str x5, [sp, 64] str w6, [sp, 60] str w7, [sp, 56] str d0, [sp, 48] str d1, [sp, 40] ldr w0, [sp, 88] sxtw x1, w0 sub x1, x1, #1 str x1, [sp, 120] sxtw x1, w0 mov x18, x1 mov x19, 0 lsr x1, x18, 58 lsl x13, x19, 6 orr x13, x1, x13 lsl x12, x18, 6 ldr w20, [sp, 72] sxtw x1, w20 sub x1, x1, #1 str x1, [sp, 128] sxtw x1, w20 mov x16, x1 mov x17, 0 lsr x1, x16, 59 lsl x11, x17, 5 orr x11, x1, x11 lsl x10, x16, 5 ldr w19, [sp, 56] sxtw x1, w19 sub x1, x1, #1 str x1, [sp, 136] sxtw x1, w19 mov x14, x1 mov x15, 0 lsr x1, x14, 59 lsl x9, x15, 5 orr x9, x1, x9 lsl x8, x14, 5 str xzr, [sp, 112] str wzr, [sp, 104] str wzr, [sp, 108] str wzr, [sp, 96] b .L2 .L5: str wzr, [sp, 100] b .L3 .L4: ldrsw x2, [sp, 96] sxtw x1, w0 mul x1, x2, x1 lsl x1, x1, 3 ldr x2, [sp, 80] add x1, x2, x1 ldrsw x2, [sp, 100] ldr d0, [x1, x2, lsl 3] ldr d1, [sp, 112] fadd d0, d1, d0 str d0, [sp, 112] ldr w1, [sp, 100] add w1, w1, 1 str w1, [sp, 100] .L3: ldr w2, [sp, 100] ldr w1, [sp, 88] cmp w2, w1 blt .L4 ldr w1, [sp, 96] add w1, w1, 1 str w1, [sp, 96] .L2: ldr w2, [sp, 96] ldr w1, [sp, 92] cmp w2, w1 blt .L5 ldr d0, [sp, 112] adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf str wzr, [sp, 96] b .L6 .L9: str wzr, [sp, 100] b .L7 .L8: ldrsw x1, [sp, 96] sxtw x0, w20 mul x0, x1, x0 lsl x0, x0, 2 ldr x1, [sp, 64] add x0, x1, x0 ldrsw x1, [sp, 100] ldr w0, [x0, x1, lsl 2] ldr w1, [sp, 104] add w0, w1, w0 str w0, [sp, 104] ldr w0, [sp, 100] add w0, w0, 1 str w0, [sp, 100] .L7: ldr w1, [sp, 100] ldr w0, [sp, 72] cmp w1, w0 blt .L8 ldr w0, [sp, 96] add w0, w0, 1 str w0, [sp, 96] .L6: ldr w1, [sp, 96] ldr w0, [sp, 76] cmp w1, w0 blt .L9 ldr w1, [sp, 104] adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf str wzr, [sp, 96] b .L10 .L13: str wzr, [sp, 100] b .L11 .L12: ldrsw x1, [sp, 96] sxtw x0, w19 mul x0, x1, x0 lsl x0, x0, 2 ldr x1, [sp, 144] add x0, x1, x0 ldrsw x1, [sp, 100] ldr w0, [x0, x1, lsl 2] ldr w1, [sp, 108] add w0, w1, w0 str w0, [sp, 108] ldr w0, [sp, 100] add w0, w0, 1 str w0, [sp, 100] .L11: ldr w1, [sp, 100] ldr w0, [sp, 56] cmp w1, w0 blt .L12 ldr w0, [sp, 96] add w0, w0, 1 str w0, [sp, 96] .L10: ldr w1, [sp, 96] ldr w0, [sp, 60] cmp w1, w0 blt .L13 ldr w1, [sp, 108] adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf ldr d0, [sp, 48] adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf ldr d0, [sp, 40] adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf nop ldp x19, x20, [sp, 16] ldp x29, x30, [sp], 144 .cfi_restore 30 .cfi_restore 29 .cfi_restore 19 .cfi_restore 20 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size scilab_rt_contour_d2i2i2d0d0_, .-scilab_rt_contour_d2i2i2d0d0_ ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc stp x29, x30, [sp, -32]! .cfi_def_cfa_offset 32 .cfi_offset 29, -32 .cfi_offset 30, -24 mov x29, sp bl __VERIFIER_nondet_int str w0, [sp, 24] bl __VERIFIER_nondet_int str w0, [sp, 28] b .L2 .L4: ldr w1, [sp, 24] ldr w0, [sp, 28] add w0, w1, w0 str w0, [sp, 24] ldr w0, [sp, 28] sub w0, w0, #1 str w0, [sp, 28] .L2: ldr w0, [sp, 24] cmp w0, 0 ble .L3 ldr w0, [sp, 28] cmp w0, 0 blt .L4 .L3: mov w0, 0 ldp x29, x30, [sp], 32 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc sub sp, sp, #16 .cfi_def_cfa_offset 16 mov w0, 5 str w0, [sp, 4] mov w0, -3 str w0, [sp, 8] ldr w1, [sp, 4] ldr w0, [sp, 8] add w0, w1, w0 str w0, [sp, 12] mov w0, 0 add sp, sp, 16 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "Hola mundo!" .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc stp x29, x30, [sp, -16]! .cfi_def_cfa_offset 16 .cfi_offset 29, -16 .cfi_offset 30, -8 mov x29, sp adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl puts mov w0, 0 ldp x29, x30, [sp], 16 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global cnt .bss .align 2 .type cnt, %object .size cnt, 4 cnt: .zero 4 .global result .align 2 .type result, %object .size result, 4 result: .zero 4 .global sawown .align 2 .type sawown, %object .size sawown, 4 sawown: .zero 4 .global sawcur .align 2 .type sawcur, %object .size sawcur, 4 sawcur: .zero 4 .section .rodata .align 3 .LC0: .string "%d: \"%s\" -> " .align 3 .LC1: .string "." .align 3 .LC2: .string "current directory reported twice" .align 3 .LC3: .string "./bug-ftw2.c" .align 3 .LC4: .string "source file reported twice" .align 3 .LC5: .string "missing '.' as first character" .align 3 .LC6: .string "no '/' in second position" .align 3 .LC7: .string "OK" .text .align 2 .type callback, %function callback: .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, 40] str x1, [sp, 32] str w2, [sp, 28] adrp x0, cnt add x0, x0, :lo12:cnt ldr w0, [x0] add w1, w0, 1 adrp x0, cnt add x0, x0, :lo12:cnt str w1, [x0] adrp x0, cnt add x0, x0, :lo12:cnt ldr w0, [x0] ldr x2, [sp, 40] mov w1, w0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf adrp x0, .LC1 add x1, x0, :lo12:.LC1 ldr x0, [sp, 40] bl strcmp cmp w0, 0 bne .L2 adrp x0, sawcur add x0, x0, :lo12:sawcur ldr w0, [x0] cmp w0, 0 beq .L2 adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl puts adrp x0, result add x0, x0, :lo12:result mov w1, 1 str w1, [x0] b .L3 .L2: adrp x0, .LC3 add x1, x0, :lo12:.LC3 ldr x0, [sp, 40] bl strcmp cmp w0, 0 bne .L4 adrp x0, sawown add x0, x0, :lo12:sawown ldr w0, [x0] cmp w0, 0 beq .L4 adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl puts adrp x0, result add x0, x0, :lo12:result mov w1, 1 str w1, [x0] b .L3 .L4: ldr x0, [sp, 40] ldrb w0, [x0] cmp w0, 46 beq .L5 adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl puts adrp x0, result add x0, x0, :lo12:result mov w1, 1 str w1, [x0] b .L3 .L5: ldr x0, [sp, 40] add x0, x0, 1 ldrb w0, [x0] cmp w0, 0 beq .L6 ldr x0, [sp, 40] add x0, x0, 1 ldrb w0, [x0] cmp w0, 47 beq .L6 adrp x0, .LC6 add x0, x0, :lo12:.LC6 bl puts adrp x0, result add x0, x0, :lo12:result mov w1, 1 str w1, [x0] b .L3 .L6: adrp x0, .LC7 add x0, x0, :lo12:.LC7 bl puts adrp x0, .LC1 add x1, x0, :lo12:.LC1 ldr x0, [sp, 40] bl strcmp cmp w0, 0 cset w0, eq and w0, w0, 255 mov w1, w0 adrp x0, sawcur add x0, x0, :lo12:sawcur ldr w0, [x0] orr w1, w1, w0 adrp x0, sawcur add x0, x0, :lo12:sawcur str w1, [x0] adrp x0, .LC3 add x1, x0, :lo12:.LC3 ldr x0, [sp, 40] bl strcmp cmp w0, 0 cset w0, eq and w0, w0, 255 mov w1, w0 adrp x0, sawown add x0, x0, :lo12:sawown ldr w0, [x0] orr w1, w1, w0 adrp x0, sawown add x0, x0, :lo12:sawown str w1, [x0] .L3: mov w0, 0 ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE6: .size callback, .-callback .section .rodata .align 3 .LC8: .string "current directory wasn't reported" .align 3 .LC9: .string "source file wasn't reported" .text .align 2 .global main .type main, %function main: .LFB7: .cfi_startproc stp x29, x30, [sp, -16]! .cfi_def_cfa_offset 16 .cfi_offset 29, -16 .cfi_offset 30, -8 mov x29, sp bl mtrace mov w2, 10 adrp x0, callback add x1, x0, :lo12:callback adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl ftw adrp x0, sawcur add x0, x0, :lo12:sawcur ldr w0, [x0] cmp w0, 0 bne .L9 adrp x0, .LC8 add x0, x0, :lo12:.LC8 bl puts adrp x0, result add x0, x0, :lo12:result mov w1, 1 str w1, [x0] .L9: adrp x0, sawown add x0, x0, :lo12:sawown ldr w0, [x0] cmp w0, 0 bne .L10 adrp x0, .LC9 add x0, x0, :lo12:.LC9 bl puts adrp x0, result add x0, x0, :lo12:result mov w1, 1 str w1, [x0] .L10: adrp x0, result add x0, x0, :lo12:result ldr w0, [x0] ldp x29, x30, [sp], 16 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE7: .size main, .-main ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "\nEnter start: " .align 3 .LC1: .string " %d" .align 3 .LC2: .string "Enter end: " .align 3 .LC3: .string "\nEnter length in feet: " .align 3 .LC4: .string " %f" .align 3 .LC5: .string " %f feet is %f meters\n" .align 3 .LC6: .string "Enter length in meters: " .align 3 .LC7: .string " %f meters is %f feet\n" .align 3 .LC8: .string "Enter factorial: " .align 3 .LC9: .string "Answer: %d\n" .align 3 .LC10: .string "Enter value 1: " .align 3 .LC11: .string "Enter value 2: " .align 3 .LC12: .string "Enter value 3: " .align 3 .LC13: .string "Average of values: %f\n" .align 3 .LC14: .string "Thank you, that is all.\n" .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc stp x29, x30, [sp, -64]! .cfi_def_cfa_offset 64 .cfi_offset 29, -64 .cfi_offset 30, -56 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 56] mov x1, 0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf add x0, sp, 28 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf add x0, sp, 32 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf ldr w0, [sp, 28] ldr w1, [sp, 32] bl printNumsBackwards adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl printf add x0, sp, 36 mov x1, x0 adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl __isoc99_scanf ldr s0, [sp, 36] bl f2m str s0, [sp, 44] ldr s0, [sp, 36] fcvt d2, s0 ldr s0, [sp, 44] fcvt d0, s0 fmov d1, d0 fmov d0, d2 adrp x0, .LC5 add x0, x0, :lo12:.LC5 bl printf adrp x0, .LC6 add x0, x0, :lo12:.LC6 bl printf add x0, sp, 40 mov x1, x0 adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl __isoc99_scanf ldr s0, [sp, 40] bl m2f str s0, [sp, 48] ldr s0, [sp, 40] fcvt d2, s0 ldr s0, [sp, 48] fcvt d0, s0 fmov d1, d0 fmov d0, d2 adrp x0, .LC7 add x0, x0, :lo12:.LC7 bl printf adrp x0, .LC8 add x0, x0, :lo12:.LC8 bl printf add x0, sp, 28 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf ldr w0, [sp, 28] bl factorial str w0, [sp, 32] ldr w0, [sp, 32] mov w1, w0 adrp x0, .LC9 add x0, x0, :lo12:.LC9 bl printf adrp x0, .LC10 add x0, x0, :lo12:.LC10 bl printf add x0, sp, 16 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf adrp x0, .LC11 add x0, x0, :lo12:.LC11 bl printf add x0, sp, 20 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf adrp x0, .LC12 add x0, x0, :lo12:.LC12 bl printf add x0, sp, 24 mov x1, x0 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl __isoc99_scanf ldr w0, [sp, 16] ldr w1, [sp, 20] ldr w2, [sp, 24] bl average str s0, [sp, 52] ldr s0, [sp, 52] fcvt d0, s0 adrp x0, .LC13 add x0, x0, :lo12:.LC13 bl printf adrp x0, .LC14 add x0, x0, :lo12:.LC14 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, 56] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L3 bl __stack_chk_fail .L3: mov w0, w1 ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size main, .-main .section .rodata .align 3 .LC15: .string "Error - Start is not larger than end!\n" .align 3 .LC16: .string " %d " .text .align 2 .global printNumsBackwards .type printNumsBackwards, %function printNumsBackwards: .LFB1: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str w0, [sp, 28] str w1, [sp, 24] ldr w0, [sp, 28] str w0, [sp, 44] ldr w1, [sp, 28] ldr w0, [sp, 24] cmp w1, w0 bge .L7 adrp x0, .LC15 add x0, x0, :lo12:.LC15 bl puts b .L4 .L8: ldr w1, [sp, 44] adrp x0, .LC16 add x0, x0, :lo12:.LC16 bl printf ldr w0, [sp, 44] sub w0, w0, #1 str w0, [sp, 44] .L7: ldr w1, [sp, 44] ldr w0, [sp, 24] cmp w1, w0 bge .L8 .L4: ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size printNumsBackwards, .-printNumsBackwards .align 2 .global f2m .type f2m, %function f2m: .LFB2: .cfi_startproc sub sp, sp, #32 .cfi_def_cfa_offset 32 str s0, [sp, 12] ldr s0, [sp, 12] fcvt d0, s0 adrp x0, .LC17 ldr d1, [x0, #:lo12:.LC17] fdiv d0, d0, d1 fcvt s0, d0 str s0, [sp, 28] ldr s0, [sp, 28] add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE2: .size f2m, .-f2m .align 2 .global m2f .type m2f, %function m2f: .LFB3: .cfi_startproc sub sp, sp, #32 .cfi_def_cfa_offset 32 str s0, [sp, 12] ldr s0, [sp, 12] fcvt d0, s0 adrp x0, .LC17 ldr d1, [x0, #:lo12:.LC17] fmul d0, d0, d1 fcvt s0, d0 str s0, [sp, 28] ldr s0, [sp, 28] add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE3: .size m2f, .-m2f .align 2 .global factorial .type factorial, %function factorial: .LFB4: .cfi_startproc sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, 12] ldr w0, [sp, 12] str w0, [sp, 24] mov w0, 1 str w0, [sp, 28] b .L14 .L15: ldr w1, [sp, 28] ldr w0, [sp, 24] mul w0, w1, w0 str w0, [sp, 28] ldr w0, [sp, 24] sub w0, w0, #1 str w0, [sp, 24] .L14: ldr w0, [sp, 24] cmp w0, 0 bgt .L15 ldr w0, [sp, 28] add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE4: .size factorial, .-factorial .align 2 .global average .type average, %function average: .LFB5: .cfi_startproc sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, 12] str w1, [sp, 8] str w2, [sp, 4] ldr w1, [sp, 12] ldr w0, [sp, 8] add w1, w1, w0 ldr w0, [sp, 4] add w0, w1, w0 scvtf d1, w0 fmov d0, 3.0e+0 fdiv d0, d1, d0 fcvt s0, d0 str s0, [sp, 28] ldr s0, [sp, 28] add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE5: .size average, .-average .section .rodata .align 3 .LC17: .word -309237645 .word 1074413436 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global pattern .data .align 3 .type pattern, %object .size pattern, 5 pattern: .string "ould" .section .rodata .align 3 .LC0: .string "%s" .align 3 .LC1: .string "%d\n" .text .align 2 .global main .type main, %function main: .LFB0: .cfi_startproc sub sp, sp, #1040 .cfi_def_cfa_offset 1040 stp x29, x30, [sp] .cfi_offset 29, -1040 .cfi_offset 30, -1032 mov x29, sp adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x1, [x0] str x1, [sp, 1032] mov x1, 0 str wzr, [sp, 24] mov w0, -1 str w0, [sp, 28] b .L2 .L3: add x2, sp, 32 adrp x0, pattern add x1, x0, :lo12:pattern mov x0, x2 bl strrindex str w0, [sp, 28] ldr w0, [sp, 28] cmp w0, 0 blt .L2 add x0, sp, 32 mov x1, x0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf ldr w1, [sp, 28] adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf ldr w0, [sp, 24] add w0, w0, 1 str w0, [sp, 24] .L2: add x0, sp, 32 mov w1, 1000 bl my_getline cmp w0, 0 bgt .L3 ldr w0, [sp, 24] mov w1, w0 adrp x0, :got:__stack_chk_guard ldr x0, [x0, #:got_lo12:__stack_chk_guard] ldr x3, [sp, 1032] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L5 bl __stack_chk_fail .L5: mov w0, w1 ldp x29, x30, [sp] add sp, sp, 1040 .cfi_restore 29 .cfi_restore 30 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size main, .-main .align 2 .global my_getline .type my_getline, %function my_getline: .LFB1: .cfi_startproc stp x29, x30, [sp, -48]! .cfi_def_cfa_offset 48 .cfi_offset 29, -48 .cfi_offset 30, -40 mov x29, sp str x0, [sp, 24] str w1, [sp, 20] str wzr, [sp, 44] b .L7 .L9: 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] .L7: ldr w0, [sp, 20] sub w0, w0, #1 str w0, [sp, 20] ldr w0, [sp, 20] cmp w0, 0 ble .L8 bl getchar str w0, [sp, 40] ldr w0, [sp, 40] cmn w0, #1 beq .L8 ldr w0, [sp, 40] cmp w0, 10 bne .L9 .L8: ldr w0, [sp, 40] cmp w0, 10 bne .L10 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] .L10: ldrsw x0, [sp, 44] ldr x1, [sp, 24] add x0, x1, x0 strb wzr, [x0] ldr w0, [sp, 44] ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size my_getline, .-my_getline .align 2 .global strrindex .type strrindex, %function strrindex: .LFB2: .cfi_startproc sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, 8] str x1, [sp] mov w0, -1 str w0, [sp, 28] str wzr, [sp, 16] b .L13 .L18: ldr w0, [sp, 16] str w0, [sp, 20] str wzr, [sp, 24] b .L14 .L16: ldr w0, [sp, 20] add w0, w0, 1 str w0, [sp, 20] ldr w0, [sp, 24] add w0, w0, 1 str w0, [sp, 24] .L14: ldrsw x0, [sp, 24] ldr x1, [sp] add x0, x1, x0 ldrb w0, [x0] cmp w0, 0 beq .L15 ldrsw x0, [sp, 20] ldr x1, [sp, 8] add x0, x1, x0 ldrb w1, [x0] ldrsw x0, [sp, 24] ldr x2, [sp] add x0, x2, x0 ldrb w0, [x0] cmp w1, w0 beq .L16 .L15: ldr w0, [sp, 24] cmp w0, 0 ble .L17 ldrsw x0, [sp, 24] ldr x1, [sp] add x0, x1, x0 ldrb w0, [x0] cmp w0, 0 bne .L17 ldr w0, [sp, 16] str w0, [sp, 28] .L17: ldr w0, [sp, 16] add w0, w0, 1 str w0, [sp, 16] .L13: ldrsw x0, [sp, 16] ldr x1, [sp, 8] add x0, x1, x0 ldrb w0, [x0] cmp w0, 0 bne .L18 ldr w0, [sp, 28] add sp, sp, 32 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE2: .size strrindex, .-strrindex ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .global MEDIATYPE_MPEG1SystemStream .section .rodata .align 3 .type MEDIATYPE_MPEG1SystemStream, %object .size MEDIATYPE_MPEG1SystemStream, 24 MEDIATYPE_MPEG1SystemStream: .xword 3828804482 .hword 21071 .hword 4558 .string "\237S" .ascii " \257\013\247p" .zero 4 ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .local mutex .comm mutex,48,8 .section .rodata .align 3 .LC0: .string "tid %d\n" .align 3 .LC1: .string "Can not create pthread!" .align 3 .LC2: .string "count[%d]=%d\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, 28] b .L2 .L5: ldrsw x0, [sp, 28] lsl x0, x0, 2 add x1, sp, 32 ldr w2, [sp, 28] str w2, [x1, x0] add x1, sp, 40 ldrsw x0, [sp, 28] lsl x0, x0, 3 add x4, x1, x0 add x1, sp, 32 ldrsw x0, [sp, 28] lsl x0, x0, 2 add x0, x1, x0 mov x3, x0 adrp x0, produce add x2, x0, :lo12:produce mov x1, 0 mov x0, x4 bl pthread_create cmp w0, 0 bne .L3 ldrsw x0, [sp, 28] lsl x0, x0, 3 add x1, sp, 40 ldr x0, [x1, x0] mov x1, x0 adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl printf b .L10 .L3: adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl puts mov w0, 0 bl exit .L10: ldr w0, [sp, 28] add w0, w0, 1 str w0, [sp, 28] .L2: ldr w0, [sp, 28] cmp w0, 1 ble .L5 str wzr, [sp, 28] b .L6 .L7: ldrsw x0, [sp, 28] lsl x0, x0, 3 add x1, sp, 40 ldr x0, [x1, x0] mov x1, 0 bl pthread_join ldrsw x0, [sp, 28] lsl x0, x0, 2 add x1, sp, 32 ldr w0, [x1, x0] mov w2, w0 ldr w1, [sp, 28] adrp x0, .LC2 add x0, x0, :lo12:.LC2 bl printf ldr w0, [sp, 28] add w0, w0, 1 str w0, [sp, 28] .L6: ldr w0, [sp, 28] cmp w0, 1 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, 56] ldr x2, [x0] subs x3, x3, x2 mov x2, 0 beq .L9 bl __stack_chk_fail .L9: mov w0, w1 ldp x29, x30, [sp], 64 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE0: .size main, .-main .section .rodata .align 3 .LC3: .string "Hello I am Thread %d\n" .align 3 .LC4: .string "Inside tid=%d\n" .text .align 2 .global produce .type produce, %function produce: .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] bl pthread_self str x0, [sp, 40] adrp x0, mutex add x0, x0, :lo12:mutex bl pthread_mutex_lock ldr x0, [sp, 24] ldr w0, [x0] mov w1, w0 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl printf mov w0, 5 bl sleep ldr x0, [sp, 24] ldr w0, [x0] mov w1, w0 adrp x0, .LC3 add x0, x0, :lo12:.LC3 bl printf adrp x0, mutex add x0, x0, :lo12:mutex bl pthread_mutex_unlock ldr x1, [sp, 40] adrp x0, .LC4 add x0, x0, :lo12:.LC4 bl printf mov x0, 0 ldp x29, x30, [sp], 48 .cfi_restore 30 .cfi_restore 29 .cfi_def_cfa_offset 0 ret .cfi_endproc .LFE1: .size produce, .-produce ```
### Human: Write a random program in ARM assembly### Assistant: ``` .text .section .rodata .align 3 .LC0: .string "\346\221\204\346\260\217\346\270\251\345\272\246-\345\215\216\346\260\217\346\270\251\345\272\246\345\257\271\347\205\247\350\241\250" .align 3 .LC1: .string "%3.0f %6.1f\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 mov w0, -90 str w0, [sp, 32] mov w0, 90 str w0, [sp, 36] mov w0, 15 str w0, [sp, 40] adrp x0, .LC0 add x0, x0, :lo12:.LC0 bl puts ldr s0, [sp, 32] scvtf s0, s0 str s0, [sp, 28] b .L2 .L3: ldr s0, [sp, 28] fcvt d0, s0 adrp x0, .LC2 ldr d1, [x0, #:lo12:.LC2] fmul d0, d0, d1 mov x0, 4629700416936869888 fmov d1, x0 fadd d0, d0, d1 fcvt s0, d0 str s0, [sp, 44] ldr s0, [sp, 28] fcvt d2, s0 ldr s0, [sp, 44] fcvt d0, s0 fmov d1, d0 fmov d0, d2 adrp x0, .LC1 add x0, x0, :lo12:.LC1 bl printf ldr s0, [sp, 40] scvtf s0, s0 ldr s1, [sp, 28] fadd s0, s1, s0 str s0, [sp, 28] .L2: ldr s0, [sp, 36] scvtf s0, s0 ldr s1, [sp, 28] fcmpe s1, s0 bls .L3 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 .section .rodata .align 3 .LC2: .word -858993459 .word 1073532108 ```