files
stringlengths
20
22
x86
stringlengths
639
12.7k
arm
stringlengths
763
10k
eval/problem145/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 272 mov QWORD PTR -264[rbp], rdi mov QWORD PTR -272[rbp], rsi mov rax, QWORD PTR fs:40 mov QWORD PTR -8[rbp], rax xor eax, eax mov DWORD PTR -248[rbp], 0 jmp .L2 .L3: mov eax, DWORD PTR -248[rbp] movsx rdx, eax mov rax, QWORD PTR -264[rbp] add rax, rdx movzx edx, BYTE PTR [rax] mov eax, DWORD PTR -248[rbp] cdqe mov BYTE PTR -224[rbp+rax], dl add DWORD PTR -248[rbp], 1 .L2: mov eax, DWORD PTR -248[rbp] movsx rdx, eax mov rax, QWORD PTR -264[rbp] add rax, rdx movzx eax, BYTE PTR [rax] cmp al, 47 jne .L3 mov eax, DWORD PTR -248[rbp] cdqe mov BYTE PTR -224[rbp+rax], 0 lea rax, -224[rbp] mov rdi, rax call atoi@PLT mov DWORD PTR -240[rbp], eax mov DWORD PTR -244[rbp], 0 add DWORD PTR -248[rbp], 1 jmp .L4 .L5: mov eax, DWORD PTR -248[rbp] movsx rdx, eax mov rax, QWORD PTR -264[rbp] add rax, rdx movzx edx, BYTE PTR [rax] mov eax, DWORD PTR -244[rbp] cdqe mov BYTE PTR -112[rbp+rax], dl add DWORD PTR -248[rbp], 1 add DWORD PTR -244[rbp], 1 .L4: mov eax, DWORD PTR -248[rbp] movsx rdx, eax mov rax, QWORD PTR -264[rbp] add rax, rdx movzx eax, BYTE PTR [rax] test al, al jne .L5 mov eax, DWORD PTR -244[rbp] cdqe mov BYTE PTR -112[rbp+rax], 0 lea rax, -112[rbp] mov rdi, rax call atoi@PLT mov DWORD PTR -236[rbp], eax mov DWORD PTR -248[rbp], 0 jmp .L6 .L7: mov eax, DWORD PTR -248[rbp] movsx rdx, eax mov rax, QWORD PTR -272[rbp] add rax, rdx movzx edx, BYTE PTR [rax] mov eax, DWORD PTR -248[rbp] cdqe mov BYTE PTR -224[rbp+rax], dl add DWORD PTR -248[rbp], 1 .L6: mov eax, DWORD PTR -248[rbp] movsx rdx, eax mov rax, QWORD PTR -272[rbp] add rax, rdx movzx eax, BYTE PTR [rax] cmp al, 47 jne .L7 mov eax, DWORD PTR -248[rbp] cdqe mov BYTE PTR -224[rbp+rax], 0 lea rax, -224[rbp] mov rdi, rax call atoi@PLT mov DWORD PTR -232[rbp], eax mov DWORD PTR -244[rbp], 0 add DWORD PTR -248[rbp], 1 jmp .L8 .L9: mov eax, DWORD PTR -248[rbp] movsx rdx, eax mov rax, QWORD PTR -272[rbp] add rax, rdx movzx edx, BYTE PTR [rax] mov eax, DWORD PTR -244[rbp] cdqe mov BYTE PTR -112[rbp+rax], dl add DWORD PTR -248[rbp], 1 add DWORD PTR -244[rbp], 1 .L8: mov eax, DWORD PTR -248[rbp] movsx rdx, eax mov rax, QWORD PTR -272[rbp] add rax, rdx movzx eax, BYTE PTR [rax] test al, al jne .L9 mov eax, DWORD PTR -244[rbp] cdqe mov BYTE PTR -112[rbp+rax], 0 lea rax, -112[rbp] mov rdi, rax call atoi@PLT mov DWORD PTR -228[rbp], eax mov eax, DWORD PTR -240[rbp] imul eax, DWORD PTR -232[rbp] mov edx, DWORD PTR -236[rbp] mov ecx, edx imul ecx, DWORD PTR -228[rbp] cdq idiv ecx mov eax, edx test eax, eax jne .L10 mov eax, 1 jmp .L12 .L10: mov eax, 0 .L12: mov rsi, QWORD PTR -8[rbp] xor rsi, QWORD PTR fs:40 je .L13 call __stack_chk_fail@PLT .L13: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .global __aeabi_idivmod .section .rodata .align 2 .LC0: .word __stack_chk_guard .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 248 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #248 str r0, [fp, #-248] str r1, [fp, #-252] ldr r3, .L14 ldr r3, [r3] str r3, [fp, #-8] mov r3,#0 mov r3, #0 str r3, [fp, #-240] b .L2 .L3: ldr r3, [fp, #-240] ldr r2, [fp, #-248] add r3, r2, r3 ldrb r1, [r3] @ zero_extendqisi2 sub r2, fp, #216 ldr r3, [fp, #-240] add r3, r2, r3 mov r2, r1 strb r2, [r3] ldr r3, [fp, #-240] add r3, r3, #1 str r3, [fp, #-240] .L2: ldr r3, [fp, #-240] ldr r2, [fp, #-248] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #47 bne .L3 sub r2, fp, #216 ldr r3, [fp, #-240] add r3, r2, r3 mov r2, #0 strb r2, [r3] sub r3, fp, #216 mov r0, r3 bl atoi str r0, [fp, #-232] mov r3, #0 str r3, [fp, #-236] ldr r3, [fp, #-240] add r3, r3, #1 str r3, [fp, #-240] b .L4 .L5: ldr r3, [fp, #-240] ldr r2, [fp, #-248] add r3, r2, r3 ldrb r1, [r3] @ zero_extendqisi2 sub r2, fp, #112 ldr r3, [fp, #-236] add r3, r2, r3 mov r2, r1 strb r2, [r3] ldr r3, [fp, #-240] add r3, r3, #1 str r3, [fp, #-240] ldr r3, [fp, #-236] add r3, r3, #1 str r3, [fp, #-236] .L4: ldr r3, [fp, #-240] ldr r2, [fp, #-248] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #0 bne .L5 sub r2, fp, #112 ldr r3, [fp, #-236] add r3, r2, r3 mov r2, #0 strb r2, [r3] sub r3, fp, #112 mov r0, r3 bl atoi str r0, [fp, #-228] mov r3, #0 str r3, [fp, #-240] b .L6 .L7: ldr r3, [fp, #-240] ldr r2, [fp, #-252] add r3, r2, r3 ldrb r1, [r3] @ zero_extendqisi2 sub r2, fp, #216 ldr r3, [fp, #-240] add r3, r2, r3 mov r2, r1 strb r2, [r3] ldr r3, [fp, #-240] add r3, r3, #1 str r3, [fp, #-240] .L6: ldr r3, [fp, #-240] ldr r2, [fp, #-252] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #47 bne .L7 sub r2, fp, #216 ldr r3, [fp, #-240] add r3, r2, r3 mov r2, #0 strb r2, [r3] sub r3, fp, #216 mov r0, r3 bl atoi str r0, [fp, #-224] mov r3, #0 str r3, [fp, #-236] ldr r3, [fp, #-240] add r3, r3, #1 str r3, [fp, #-240] b .L8 .L9: ldr r3, [fp, #-240] ldr r2, [fp, #-252] add r3, r2, r3 ldrb r1, [r3] @ zero_extendqisi2 sub r2, fp, #112 ldr r3, [fp, #-236] add r3, r2, r3 mov r2, r1 strb r2, [r3] ldr r3, [fp, #-240] add r3, r3, #1 str r3, [fp, #-240] ldr r3, [fp, #-236] add r3, r3, #1 str r3, [fp, #-236] .L8: ldr r3, [fp, #-240] ldr r2, [fp, #-252] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #0 bne .L9 sub r2, fp, #112 ldr r3, [fp, #-236] add r3, r2, r3 mov r2, #0 strb r2, [r3] sub r3, fp, #112 mov r0, r3 bl atoi str r0, [fp, #-220] ldr r3, [fp, #-232] ldr r2, [fp, #-224] mul r0, r2, r3 ldr r3, [fp, #-228] ldr r2, [fp, #-220] mul r3, r2, r3 mov r1, r3 bl __aeabi_idivmod mov r3, r1 cmp r3, #0 bne .L10 mov r3, #1 b .L12 .L10: mov r3, #0 .L12: ldr r2, .L14 ldr r1, [r2] ldr r2, [fp, #-8] eors r1, r2, r1 mov r2, #0 beq .L13 bl __stack_chk_fail .L13: mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .L15: .align 2 .L14: .word .LC0 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem44/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -24[rbp], rdi mov DWORD PTR -28[rbp], esi mov DWORD PTR -8[rbp], 0 jmp .L2 .L7: mov eax, DWORD PTR -8[rbp] add eax, 1 mov DWORD PTR -4[rbp], eax jmp .L3 .L6: mov eax, DWORD PTR -8[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -4[rbp] cdqe lea rcx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rcx mov eax, DWORD PTR [rax] add eax, edx test eax, eax jne .L4 mov eax, 1 jmp .L5 .L4: add DWORD PTR -4[rbp], 1 .L3: mov eax, DWORD PTR -4[rbp] cmp eax, DWORD PTR -28[rbp] jl .L6 add DWORD PTR -8[rbp], 1 .L2: mov eax, DWORD PTR -8[rbp] cmp eax, DWORD PTR -28[rbp] jl .L7 mov eax, 0 .L5: pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 16 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #20 str r0, [fp, #-16] str r1, [fp, #-20] mov r3, #0 str r3, [fp, #-12] b .L2 .L7: ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-8] b .L3 .L6: ldr r3, [fp, #-12] lsl r3, r3, #2 ldr r2, [fp, #-16] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r1, [fp, #-16] add r3, r1, r3 ldr r3, [r3] add r3, r2, r3 cmp r3, #0 bne .L4 mov r3, #1 b .L5 .L4: ldr r3, [fp, #-8] add r3, r3, #1 str r3, [fp, #-8] .L3: ldr r2, [fp, #-8] ldr r3, [fp, #-20] cmp r2, r3 blt .L6 ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L2: ldr r2, [fp, #-12] ldr r3, [fp, #-20] cmp r2, r3 blt .L7 mov r3, #0 .L5: mov r0, r3 add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem55/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -40[rbp], rdi mov QWORD PTR -48[rbp], rsi mov rax, QWORD PTR -40[rbp] mov rdi, rax call strlen@PLT mov DWORD PTR -8[rbp], eax mov rax, QWORD PTR -48[rbp] mov rdi, rax call strlen@PLT mov DWORD PTR -4[rbp], eax mov DWORD PTR -24[rbp], 0 jmp .L2 .L9: mov BYTE PTR -26[rbp], 0 mov DWORD PTR -20[rbp], 0 jmp .L3 .L6: mov eax, DWORD PTR -24[rbp] movsx rdx, eax mov rax, QWORD PTR -40[rbp] add rax, rdx movzx edx, BYTE PTR [rax] mov eax, DWORD PTR -20[rbp] movsx rcx, eax mov rax, QWORD PTR -48[rbp] add rax, rcx movzx eax, BYTE PTR [rax] cmp dl, al jne .L4 mov BYTE PTR -26[rbp], 1 jmp .L5 .L4: add DWORD PTR -20[rbp], 1 .L3: mov eax, DWORD PTR -20[rbp] cmp eax, DWORD PTR -4[rbp] jl .L6 .L5: movzx eax, BYTE PTR -26[rbp] xor eax, 1 test al, al je .L7 mov eax, 0 jmp .L8 .L7: add DWORD PTR -24[rbp], 1 .L2: mov eax, DWORD PTR -24[rbp] cmp eax, DWORD PTR -8[rbp] jl .L9 mov DWORD PTR -16[rbp], 0 jmp .L10 .L16: mov BYTE PTR -25[rbp], 0 mov DWORD PTR -12[rbp], 0 jmp .L11 .L14: mov eax, DWORD PTR -16[rbp] movsx rdx, eax mov rax, QWORD PTR -48[rbp] add rax, rdx movzx edx, BYTE PTR [rax] mov eax, DWORD PTR -12[rbp] movsx rcx, eax mov rax, QWORD PTR -40[rbp] add rax, rcx movzx eax, BYTE PTR [rax] cmp dl, al jne .L12 mov BYTE PTR -25[rbp], 1 jmp .L13 .L12: add DWORD PTR -12[rbp], 1 .L11: mov eax, DWORD PTR -12[rbp] cmp eax, DWORD PTR -8[rbp] jl .L14 .L13: movzx eax, BYTE PTR -25[rbp] xor eax, 1 test al, al je .L15 mov eax, 0 jmp .L8 .L15: add DWORD PTR -16[rbp], 1 .L10: mov eax, DWORD PTR -16[rbp] cmp eax, DWORD PTR -4[rbp] jl .L16 mov eax, 1 .L8: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 40 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #40 str r0, [fp, #-40] str r1, [fp, #-44] ldr r0, [fp, #-40] bl strlen mov r3, r0 str r3, [fp, #-12] ldr r0, [fp, #-44] bl strlen mov r3, r0 str r3, [fp, #-8] mov r3, #0 str r3, [fp, #-28] b .L2 .L9: mov r3, #0 strb r3, [fp, #-30] mov r3, #0 str r3, [fp, #-24] b .L3 .L6: ldr r3, [fp, #-28] ldr r2, [fp, #-40] add r3, r2, r3 ldrb r2, [r3] @ zero_extendqisi2 ldr r3, [fp, #-24] ldr r1, [fp, #-44] add r3, r1, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r2, r3 bne .L4 mov r3, #1 strb r3, [fp, #-30] b .L5 .L4: ldr r3, [fp, #-24] add r3, r3, #1 str r3, [fp, #-24] .L3: ldr r2, [fp, #-24] ldr r3, [fp, #-8] cmp r2, r3 blt .L6 .L5: ldrb r3, [fp, #-30] eor r3, r3, #1 and r3, r3, #255 cmp r3, #0 beq .L7 mov r3, #0 b .L8 .L7: ldr r3, [fp, #-28] add r3, r3, #1 str r3, [fp, #-28] .L2: ldr r2, [fp, #-28] ldr r3, [fp, #-12] cmp r2, r3 blt .L9 mov r3, #0 str r3, [fp, #-20] b .L10 .L16: mov r3, #0 strb r3, [fp, #-29] mov r3, #0 str r3, [fp, #-16] b .L11 .L14: ldr r3, [fp, #-20] ldr r2, [fp, #-44] add r3, r2, r3 ldrb r2, [r3] @ zero_extendqisi2 ldr r3, [fp, #-16] ldr r1, [fp, #-40] add r3, r1, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r2, r3 bne .L12 mov r3, #1 strb r3, [fp, #-29] b .L13 .L12: ldr r3, [fp, #-16] add r3, r3, #1 str r3, [fp, #-16] .L11: ldr r2, [fp, #-16] ldr r3, [fp, #-12] cmp r2, r3 blt .L14 .L13: ldrb r3, [fp, #-29] eor r3, r3, #1 and r3, r3, #255 cmp r3, #0 beq .L15 mov r3, #0 b .L8 .L15: ldr r3, [fp, #-20] add r3, r3, #1 str r3, [fp, #-20] .L10: ldr r2, [fp, #-20] ldr r3, [fp, #-8] cmp r2, r3 blt .L16 mov r3, #1 .L8: mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem61/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov DWORD PTR -4[rbp], edi mov eax, DWORD PTR -4[rbp] add eax, 1 imul eax, DWORD PTR -4[rbp] mov edx, eax shr edx, 31 add eax, edx sar eax pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 8 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #12 str r0, [fp, #-8] ldr r3, [fp, #-8] add r3, r3, #1 ldr r2, [fp, #-8] mul r3, r2, r3 lsr r2, r3, #31 add r3, r2, r3 asr r3, r3, #1 mov r0, r3 add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem10/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov DWORD PTR -28[rbp], esi cmp DWORD PTR -28[rbp], 0 jg .L2 mov eax, 0 jmp .L3 .L2: mov eax, DWORD PTR -28[rbp] cdqe sal rax, 2 mov rdi, rax call malloc@PLT mov QWORD PTR -8[rbp], rax cmp QWORD PTR -8[rbp], 0 jne .L4 mov eax, 0 jmp .L3 .L4: mov rax, QWORD PTR -24[rbp] mov eax, DWORD PTR [rax] mov DWORD PTR -16[rbp], eax mov DWORD PTR -12[rbp], 0 jmp .L5 .L7: mov eax, DWORD PTR -12[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov eax, DWORD PTR [rax] cmp DWORD PTR -16[rbp], eax jge .L6 mov eax, DWORD PTR -12[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov eax, DWORD PTR [rax] mov DWORD PTR -16[rbp], eax .L6: mov eax, DWORD PTR -12[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rdx, rax mov eax, DWORD PTR -16[rbp] mov DWORD PTR [rdx], eax add DWORD PTR -12[rbp], 1 .L5: mov eax, DWORD PTR -12[rbp] cmp eax, DWORD PTR -28[rbp] jl .L7 mov rax, QWORD PTR -8[rbp] .L3: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 24 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #24 str r0, [fp, #-24] str r1, [fp, #-28] ldr r3, [fp, #-28] cmp r3, #0 bgt .L2 mov r3, #0 b .L3 .L2: ldr r3, [fp, #-28] lsl r3, r3, #2 mov r0, r3 bl malloc mov r3, r0 str r3, [fp, #-8] ldr r3, [fp, #-8] cmp r3, #0 bne .L4 mov r3, #0 b .L3 .L4: ldr r3, [fp, #-24] ldr r3, [r3] str r3, [fp, #-16] mov r3, #0 str r3, [fp, #-12] b .L5 .L7: ldr r3, [fp, #-12] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r3, [r3] ldr r2, [fp, #-16] cmp r2, r3 bge .L6 ldr r3, [fp, #-12] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r3, [r3] str r3, [fp, #-16] .L6: ldr r3, [fp, #-12] lsl r3, r3, #2 ldr r2, [fp, #-8] add r3, r2, r3 ldr r2, [fp, #-16] str r2, [r3] ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L5: ldr r2, [fp, #-12] ldr r3, [fp, #-28] cmp r2, r3 blt .L7 ldr r3, [fp, #-8] .L3: mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem56/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 4048 mov DWORD PTR -4036[rbp], edi mov rax, QWORD PTR fs:40 mov QWORD PTR -8[rbp], rax xor eax, eax lea rdx, -4016[rbp] mov eax, 0 mov ecx, 500 mov rdi, rdx rep stosq mov DWORD PTR -4016[rbp], 0 mov DWORD PTR -4012[rbp], 1 mov DWORD PTR -4020[rbp], 2 jmp .L2 .L3: mov eax, DWORD PTR -4020[rbp] sub eax, 1 cdqe mov edx, DWORD PTR -4016[rbp+rax*4] mov eax, DWORD PTR -4020[rbp] sub eax, 2 cdqe mov eax, DWORD PTR -4016[rbp+rax*4] add edx, eax mov eax, DWORD PTR -4020[rbp] cdqe mov DWORD PTR -4016[rbp+rax*4], edx add DWORD PTR -4020[rbp], 1 .L2: mov eax, DWORD PTR -4020[rbp] cmp eax, DWORD PTR -4036[rbp] jle .L3 mov eax, DWORD PTR -4036[rbp] cdqe mov eax, DWORD PTR -4016[rbp+rax*4] mov rsi, QWORD PTR -8[rbp] xor rsi, QWORD PTR fs:40 je .L5 call __stack_chk_fail@PLT .L5: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .section .rodata .align 2 .LC0: .word __stack_chk_guard .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 4016 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #4016 str r0, [fp, #-4016] ldr r3, .L6 ldr r3, [r3] str r3, [fp, #-8] mov r3,#0 sub r3, fp, #4000 sub r3, r3, #4 sub r3, r3, #4 mov r2, #4000 mov r1, #0 mov r0, r3 bl memset mov r3, #0 str r3, [fp, #-4008] mov r3, #1 str r3, [fp, #-4004] mov r3, #2 str r3, [fp, #-4012] b .L2 .L3: ldr r3, [fp, #-4012] sub r3, r3, #1 lsl r3, r3, #2 sub r2, fp, #4 add r3, r2, r3 ldr r2, [r3, #-4004] ldr r3, [fp, #-4012] sub r3, r3, #2 lsl r3, r3, #2 sub r1, fp, #4 add r3, r1, r3 ldr r3, [r3, #-4004] add r2, r2, r3 ldr r3, [fp, #-4012] lsl r3, r3, #2 sub r1, fp, #4 add r3, r1, r3 str r2, [r3, #-4004] ldr r3, [fp, #-4012] add r3, r3, #1 str r3, [fp, #-4012] .L2: ldr r2, [fp, #-4012] ldr r3, [fp, #-4016] cmp r2, r3 ble .L3 ldr r3, [fp, #-4016] lsl r3, r3, #2 sub r2, fp, #4 add r3, r2, r3 ldr r3, [r3, #-4004] ldr r2, .L6 ldr r1, [r2] ldr r2, [fp, #-8] eors r1, r2, r1 mov r2, #0 beq .L5 bl __stack_chk_fail .L5: mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .L7: .align 2 .L6: .word .LC0 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem11/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -40[rbp], rdi mov rax, QWORD PTR -40[rbp] mov rdi, rax call strlen@PLT mov DWORD PTR -12[rbp], eax mov eax, DWORD PTR -12[rbp] add eax, eax add eax, 1 cdqe mov rdi, rax call malloc@PLT mov QWORD PTR -8[rbp], rax cmp QWORD PTR -8[rbp], 0 jne .L2 mov eax, 0 jmp .L3 .L2: mov DWORD PTR -24[rbp], 0 jmp .L4 .L12: mov DWORD PTR -16[rbp], 1 mov DWORD PTR -20[rbp], 0 jmp .L5 .L8: mov edx, DWORD PTR -24[rbp] mov eax, DWORD PTR -20[rbp] add eax, edx movsx rdx, eax mov rax, QWORD PTR -40[rbp] add rax, rdx movzx edx, BYTE PTR [rax] mov eax, DWORD PTR -12[rbp] sub eax, 1 sub eax, DWORD PTR -20[rbp] movsx rcx, eax mov rax, QWORD PTR -40[rbp] add rax, rcx movzx eax, BYTE PTR [rax] cmp dl, al je .L6 mov DWORD PTR -16[rbp], 0 jmp .L7 .L6: add DWORD PTR -20[rbp], 1 .L5: mov eax, DWORD PTR -12[rbp] sub eax, DWORD PTR -24[rbp] mov edx, eax shr edx, 31 add eax, edx sar eax cmp DWORD PTR -20[rbp], eax jl .L8 .L7: cmp DWORD PTR -16[rbp], 0 je .L9 mov eax, DWORD PTR -12[rbp] movsx rdx, eax mov rcx, QWORD PTR -40[rbp] mov rax, QWORD PTR -8[rbp] mov rsi, rcx mov rdi, rax call strncpy@PLT mov DWORD PTR -20[rbp], 0 jmp .L10 .L11: mov eax, DWORD PTR -24[rbp] sub eax, DWORD PTR -20[rbp] cdqe lea rdx, -1[rax] mov rax, QWORD PTR -40[rbp] add rax, rdx mov ecx, DWORD PTR -12[rbp] mov edx, DWORD PTR -20[rbp] add edx, ecx movsx rcx, edx mov rdx, QWORD PTR -8[rbp] add rdx, rcx movzx eax, BYTE PTR [rax] mov BYTE PTR [rdx], al add DWORD PTR -20[rbp], 1 .L10: mov eax, DWORD PTR -20[rbp] cmp eax, DWORD PTR -24[rbp] jl .L11 mov edx, DWORD PTR -12[rbp] mov eax, DWORD PTR -24[rbp] add eax, edx movsx rdx, eax mov rax, QWORD PTR -8[rbp] add rax, rdx mov BYTE PTR [rax], 0 mov rax, QWORD PTR -8[rbp] jmp .L3 .L9: add DWORD PTR -24[rbp], 1 .L4: mov eax, DWORD PTR -24[rbp] cmp eax, DWORD PTR -12[rbp] jl .L12 mov eax, DWORD PTR -12[rbp] movsx rdx, eax mov rcx, QWORD PTR -40[rbp] mov rax, QWORD PTR -8[rbp] mov rsi, rcx mov rdi, rax call strncpy@PLT mov DWORD PTR -20[rbp], 0 jmp .L13 .L14: mov eax, DWORD PTR -12[rbp] sub eax, DWORD PTR -20[rbp] cdqe lea rdx, -1[rax] mov rax, QWORD PTR -40[rbp] add rax, rdx mov ecx, DWORD PTR -12[rbp] mov edx, DWORD PTR -20[rbp] add edx, ecx movsx rcx, edx mov rdx, QWORD PTR -8[rbp] add rdx, rcx movzx eax, BYTE PTR [rax] mov BYTE PTR [rdx], al add DWORD PTR -20[rbp], 1 .L13: mov eax, DWORD PTR -20[rbp] cmp eax, DWORD PTR -12[rbp] jl .L14 mov eax, DWORD PTR -12[rbp] add eax, eax movsx rdx, eax mov rax, QWORD PTR -8[rbp] add rax, rdx mov BYTE PTR [rax], 0 mov rax, QWORD PTR -8[rbp] .L3: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 32 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #32 str r0, [fp, #-32] ldr r0, [fp, #-32] bl strlen mov r3, r0 str r3, [fp, #-12] ldr r3, [fp, #-12] lsl r3, r3, #1 add r3, r3, #1 mov r0, r3 bl malloc mov r3, r0 str r3, [fp, #-8] ldr r3, [fp, #-8] cmp r3, #0 bne .L2 mov r3, #0 b .L3 .L2: mov r3, #0 str r3, [fp, #-24] b .L4 .L12: mov r3, #1 str r3, [fp, #-16] mov r3, #0 str r3, [fp, #-20] b .L5 .L8: ldr r2, [fp, #-24] ldr r3, [fp, #-20] add r3, r2, r3 mov r2, r3 ldr r3, [fp, #-32] add r3, r3, r2 ldrb r2, [r3] @ zero_extendqisi2 ldr r3, [fp, #-12] sub r1, r3, #1 ldr r3, [fp, #-20] sub r3, r1, r3 mov r1, r3 ldr r3, [fp, #-32] add r3, r3, r1 ldrb r3, [r3] @ zero_extendqisi2 cmp r2, r3 beq .L6 mov r3, #0 str r3, [fp, #-16] b .L7 .L6: ldr r3, [fp, #-20] add r3, r3, #1 str r3, [fp, #-20] .L5: ldr r2, [fp, #-12] ldr r3, [fp, #-24] sub r3, r2, r3 lsr r2, r3, #31 add r3, r2, r3 asr r3, r3, #1 mov r2, r3 ldr r3, [fp, #-20] cmp r3, r2 blt .L8 .L7: ldr r3, [fp, #-16] cmp r3, #0 beq .L9 ldr r3, [fp, #-12] mov r2, r3 ldr r1, [fp, #-32] ldr r0, [fp, #-8] bl strncpy mov r3, #0 str r3, [fp, #-20] b .L10 .L11: ldr r2, [fp, #-24] ldr r3, [fp, #-20] sub r3, r2, r3 sub r3, r3, #1 ldr r2, [fp, #-32] add r2, r2, r3 ldr r1, [fp, #-12] ldr r3, [fp, #-20] add r3, r1, r3 mov r1, r3 ldr r3, [fp, #-8] add r3, r3, r1 ldrb r2, [r2] @ zero_extendqisi2 strb r2, [r3] ldr r3, [fp, #-20] add r3, r3, #1 str r3, [fp, #-20] .L10: ldr r2, [fp, #-20] ldr r3, [fp, #-24] cmp r2, r3 blt .L11 ldr r2, [fp, #-12] ldr r3, [fp, #-24] add r3, r2, r3 mov r2, r3 ldr r3, [fp, #-8] add r3, r3, r2 mov r2, #0 strb r2, [r3] ldr r3, [fp, #-8] b .L3 .L9: ldr r3, [fp, #-24] add r3, r3, #1 str r3, [fp, #-24] .L4: ldr r2, [fp, #-24] ldr r3, [fp, #-12] cmp r2, r3 blt .L12 ldr r3, [fp, #-12] mov r2, r3 ldr r1, [fp, #-32] ldr r0, [fp, #-8] bl strncpy mov r3, #0 str r3, [fp, #-20] b .L13 .L14: ldr r2, [fp, #-12] ldr r3, [fp, #-20] sub r3, r2, r3 sub r3, r3, #1 ldr r2, [fp, #-32] add r2, r2, r3 ldr r1, [fp, #-12] ldr r3, [fp, #-20] add r3, r1, r3 mov r1, r3 ldr r3, [fp, #-8] add r3, r3, r1 ldrb r2, [r2] @ zero_extendqisi2 strb r2, [r3] ldr r3, [fp, #-20] add r3, r3, #1 str r3, [fp, #-20] .L13: ldr r2, [fp, #-20] ldr r3, [fp, #-12] cmp r2, r3 blt .L14 ldr r3, [fp, #-12] lsl r3, r3, #1 mov r2, r3 ldr r3, [fp, #-8] add r3, r3, r2 mov r2, #0 strb r2, [r3] ldr r3, [fp, #-8] .L3: mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem5/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -24[rbp], rdi mov DWORD PTR -28[rbp], esi pxor xmm0, xmm0 movss DWORD PTR -16[rbp], xmm0 mov DWORD PTR -8[rbp], 0 mov DWORD PTR -8[rbp], 0 jmp .L2 .L3: mov eax, DWORD PTR -8[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx movss xmm0, DWORD PTR [rax] movss xmm1, DWORD PTR -16[rbp] addss xmm0, xmm1 movss DWORD PTR -16[rbp], xmm0 add DWORD PTR -8[rbp], 1 .L2: mov eax, DWORD PTR -8[rbp] cmp eax, DWORD PTR -28[rbp] jl .L3 cvtsi2ss xmm1, DWORD PTR -28[rbp] movss xmm0, DWORD PTR -16[rbp] divss xmm0, xmm1 movss DWORD PTR -4[rbp], xmm0 pxor xmm0, xmm0 movss DWORD PTR -12[rbp], xmm0 mov DWORD PTR -8[rbp], 0 jmp .L4 .L5: mov eax, DWORD PTR -8[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx movss xmm0, DWORD PTR [rax] subss xmm0, DWORD PTR -4[rbp] movss xmm1, DWORD PTR .LC1[rip] andps xmm0, xmm1 movss xmm1, DWORD PTR -12[rbp] addss xmm0, xmm1 movss DWORD PTR -12[rbp], xmm0 add DWORD PTR -8[rbp], 1 .L4: mov eax, DWORD PTR -8[rbp] cmp eax, DWORD PTR -28[rbp] jl .L5 cvtsi2ss xmm1, DWORD PTR -28[rbp] movss xmm0, DWORD PTR -12[rbp] divss xmm0, xmm1 pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .section .rodata .align 16 .LC1: .long 2147483647 .long 0 .long 0 .long 0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .global __aeabi_fadd .global __aeabi_i2f .global __aeabi_fdiv .global __aeabi_fsub .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 24 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #24 str r0, [fp, #-24] str r1, [fp, #-28] mov r3, #0 str r3, [fp, #-20] @ float mov r3, #0 str r3, [fp, #-12] mov r3, #0 str r3, [fp, #-12] b .L2 .L3: ldr r3, [fp, #-12] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r3, [r3] @ float mov r1, r3 ldr r0, [fp, #-20] @ float bl __aeabi_fadd mov r3, r0 str r3, [fp, #-20] @ float ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L2: ldr r2, [fp, #-12] ldr r3, [fp, #-28] cmp r2, r3 blt .L3 ldr r0, [fp, #-28] bl __aeabi_i2f mov r3, r0 mov r1, r3 ldr r0, [fp, #-20] @ float bl __aeabi_fdiv mov r3, r0 str r3, [fp, #-8] @ float mov r3, #0 str r3, [fp, #-16] @ float mov r3, #0 str r3, [fp, #-12] b .L4 .L5: ldr r3, [fp, #-12] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r3, [r3] @ float ldr r1, [fp, #-8] @ float mov r0, r3 bl __aeabi_fsub mov r3, r0 bic r3, r3, #-2147483648 mov r1, r3 ldr r0, [fp, #-16] @ float bl __aeabi_fadd mov r3, r0 str r3, [fp, #-16] @ float ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L4: ldr r2, [fp, #-12] ldr r3, [fp, #-28] cmp r2, r3 blt .L5 ldr r0, [fp, #-28] bl __aeabi_i2f mov r3, r0 mov r1, r3 ldr r0, [fp, #-16] @ float bl __aeabi_fdiv mov r3, r0 mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem15/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 push rbx sub rsp, 56 .cfi_offset 3, -24 mov QWORD PTR -56[rbp], rdi mov QWORD PTR -64[rbp], rsi mov rax, QWORD PTR -56[rbp] mov rdi, rax call strlen@PLT mov DWORD PTR -44[rbp], eax mov eax, DWORD PTR -44[rbp] cdqe sal rax, 3 mov rdi, rax call malloc@PLT mov QWORD PTR -32[rbp], rax mov eax, DWORD PTR -44[rbp] add eax, 1 cdqe mov rdi, rax call malloc@PLT mov QWORD PTR -40[rbp], rax mov rax, QWORD PTR -40[rbp] mov BYTE PTR [rax], 0 mov DWORD PTR -48[rbp], 0 jmp .L2 .L3: mov rax, QWORD PTR -40[rbp] mov rdi, rax call strlen@PLT mov QWORD PTR -24[rbp], rax mov rax, QWORD PTR -24[rbp] lea rdx, 2[rax] mov rax, QWORD PTR -40[rbp] mov rsi, rdx mov rdi, rax call realloc@PLT mov QWORD PTR -40[rbp], rax mov eax, DWORD PTR -48[rbp] movsx rdx, eax mov rax, QWORD PTR -56[rbp] add rax, rdx mov rcx, QWORD PTR -40[rbp] mov rdx, QWORD PTR -24[rbp] add rdx, rcx movzx eax, BYTE PTR [rax] mov BYTE PTR [rdx], al mov rax, QWORD PTR -24[rbp] lea rdx, 1[rax] mov rax, QWORD PTR -40[rbp] add rax, rdx mov BYTE PTR [rax], 0 mov rax, QWORD PTR -40[rbp] mov rdi, rax call strlen@PLT add rax, 1 mov edx, DWORD PTR -48[rbp] movsx rdx, edx lea rcx, 0[0+rdx*8] mov rdx, QWORD PTR -32[rbp] lea rbx, [rcx+rdx] mov rdi, rax call malloc@PLT mov QWORD PTR [rbx], rax mov eax, DWORD PTR -48[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -32[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov rdx, QWORD PTR -40[rbp] mov rsi, rdx mov rdi, rax call strcpy@PLT add DWORD PTR -48[rbp], 1 .L2: mov eax, DWORD PTR -48[rbp] cmp eax, DWORD PTR -44[rbp] jl .L3 mov rax, QWORD PTR -40[rbp] mov rdi, rax call free@PLT mov rax, QWORD PTR -64[rbp] mov edx, DWORD PTR -44[rbp] mov DWORD PTR [rax], edx mov rax, QWORD PTR -32[rbp] add rsp, 56 pop rbx pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 32 @ frame_needed = 1, uses_anonymous_args = 0 push {r4, fp, lr} add fp, sp, #8 sub sp, sp, #36 str r0, [fp, #-40] str r1, [fp, #-44] ldr r0, [fp, #-40] bl strlen mov r3, r0 str r3, [fp, #-24] ldr r3, [fp, #-24] lsl r3, r3, #2 mov r0, r3 bl malloc mov r3, r0 str r3, [fp, #-20] ldr r3, [fp, #-24] add r3, r3, #1 mov r0, r3 bl malloc mov r3, r0 str r3, [fp, #-32] ldr r3, [fp, #-32] mov r2, #0 strb r2, [r3] mov r3, #0 str r3, [fp, #-28] b .L2 .L3: ldr r0, [fp, #-32] bl strlen str r0, [fp, #-16] ldr r3, [fp, #-16] add r3, r3, #2 mov r1, r3 ldr r0, [fp, #-32] bl realloc str r0, [fp, #-32] ldr r3, [fp, #-28] ldr r2, [fp, #-40] add r2, r2, r3 ldr r1, [fp, #-32] ldr r3, [fp, #-16] add r3, r1, r3 ldrb r2, [r2] @ zero_extendqisi2 strb r2, [r3] ldr r3, [fp, #-16] add r3, r3, #1 ldr r2, [fp, #-32] add r3, r2, r3 mov r2, #0 strb r2, [r3] ldr r0, [fp, #-32] bl strlen mov r3, r0 add r1, r3, #1 ldr r3, [fp, #-28] lsl r3, r3, #2 ldr r2, [fp, #-20] add r4, r2, r3 mov r0, r1 bl malloc mov r3, r0 str r3, [r4] ldr r3, [fp, #-28] lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r3, [r3] ldr r1, [fp, #-32] mov r0, r3 bl strcpy ldr r3, [fp, #-28] add r3, r3, #1 str r3, [fp, #-28] .L2: ldr r2, [fp, #-28] ldr r3, [fp, #-24] cmp r2, r3 blt .L3 ldr r0, [fp, #-32] bl free ldr r3, [fp, #-44] ldr r2, [fp, #-24] str r2, [r3] ldr r3, [fp, #-20] mov r0, r3 sub sp, fp, #8 @ sp needed pop {r4, fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem41/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -24[rbp], rdi mov DWORD PTR -28[rbp], esi mov DWORD PTR -12[rbp], 0 jmp .L2 .L9: mov eax, DWORD PTR -12[rbp] add eax, 1 mov DWORD PTR -8[rbp], eax jmp .L3 .L8: mov eax, DWORD PTR -8[rbp] add eax, 1 mov DWORD PTR -4[rbp], eax jmp .L4 .L7: mov eax, DWORD PTR -12[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -8[rbp] cdqe lea rcx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rcx mov eax, DWORD PTR [rax] add edx, eax mov eax, DWORD PTR -4[rbp] cdqe lea rcx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rcx mov eax, DWORD PTR [rax] add eax, edx test eax, eax jne .L5 mov eax, 1 jmp .L6 .L5: add DWORD PTR -4[rbp], 1 .L4: mov eax, DWORD PTR -4[rbp] cmp eax, DWORD PTR -28[rbp] jl .L7 add DWORD PTR -8[rbp], 1 .L3: mov eax, DWORD PTR -8[rbp] cmp eax, DWORD PTR -28[rbp] jl .L8 add DWORD PTR -12[rbp], 1 .L2: mov eax, DWORD PTR -12[rbp] cmp eax, DWORD PTR -28[rbp] jl .L9 mov eax, 0 .L6: pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 24 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #28 str r0, [fp, #-24] str r1, [fp, #-28] mov r3, #0 str r3, [fp, #-16] b .L2 .L9: ldr r3, [fp, #-16] add r3, r3, #1 str r3, [fp, #-12] b .L3 .L8: ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-8] b .L4 .L7: ldr r3, [fp, #-16] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-12] lsl r3, r3, #2 ldr r1, [fp, #-24] add r3, r1, r3 ldr r3, [r3] add r2, r2, r3 ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r1, [fp, #-24] add r3, r1, r3 ldr r3, [r3] add r3, r2, r3 cmp r3, #0 bne .L5 mov r3, #1 b .L6 .L5: ldr r3, [fp, #-8] add r3, r3, #1 str r3, [fp, #-8] .L4: ldr r2, [fp, #-8] ldr r3, [fp, #-28] cmp r2, r3 blt .L7 ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L3: ldr r2, [fp, #-12] ldr r3, [fp, #-28] cmp r2, r3 blt .L8 ldr r3, [fp, #-16] add r3, r3, #1 str r3, [fp, #-16] .L2: ldr r2, [fp, #-16] ldr r3, [fp, #-28] cmp r2, r3 blt .L9 mov r3, #0 .L6: mov r0, r3 add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem107/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov DWORD PTR -36[rbp], edi mov eax, DWORD PTR -36[rbp] cdqe sal rax, 2 mov rdi, rax call malloc@PLT mov QWORD PTR -8[rbp], rax mov DWORD PTR -20[rbp], 0 mov DWORD PTR -16[rbp], 1 mov DWORD PTR -12[rbp], 1 jmp .L2 .L5: mov eax, DWORD PTR -12[rbp] add DWORD PTR -20[rbp], eax mov eax, DWORD PTR -16[rbp] imul eax, DWORD PTR -12[rbp] mov DWORD PTR -16[rbp], eax mov eax, DWORD PTR -12[rbp] and eax, 1 test eax, eax jne .L3 mov eax, DWORD PTR -12[rbp] cdqe sal rax, 2 lea rdx, -4[rax] mov rax, QWORD PTR -8[rbp] add rdx, rax mov eax, DWORD PTR -16[rbp] mov DWORD PTR [rdx], eax jmp .L4 .L3: mov eax, DWORD PTR -12[rbp] cdqe sal rax, 2 lea rdx, -4[rax] mov rax, QWORD PTR -8[rbp] add rdx, rax mov eax, DWORD PTR -20[rbp] mov DWORD PTR [rdx], eax .L4: add DWORD PTR -12[rbp], 1 .L2: mov eax, DWORD PTR -12[rbp] cmp eax, DWORD PTR -36[rbp] jle .L5 mov rax, QWORD PTR -8[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 24 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #24 str r0, [fp, #-24] ldr r3, [fp, #-24] lsl r3, r3, #2 mov r0, r3 bl malloc mov r3, r0 str r3, [fp, #-8] mov r3, #0 str r3, [fp, #-20] mov r3, #1 str r3, [fp, #-16] mov r3, #1 str r3, [fp, #-12] b .L2 .L5: ldr r2, [fp, #-20] ldr r3, [fp, #-12] add r3, r2, r3 str r3, [fp, #-20] ldr r3, [fp, #-16] ldr r2, [fp, #-12] mul r3, r2, r3 str r3, [fp, #-16] ldr r3, [fp, #-12] and r3, r3, #1 cmp r3, #0 bne .L3 ldr r3, [fp, #-12] sub r3, r3, #-1073741823 lsl r3, r3, #2 ldr r2, [fp, #-8] add r3, r2, r3 ldr r2, [fp, #-16] str r2, [r3] b .L4 .L3: ldr r3, [fp, #-12] sub r3, r3, #-1073741823 lsl r3, r3, #2 ldr r2, [fp, #-8] add r3, r2, r3 ldr r2, [fp, #-20] str r2, [r3] .L4: ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L2: ldr r2, [fp, #-12] ldr r3, [fp, #-24] cmp r2, r3 ble .L5 ldr r3, [fp, #-8] mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem110/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -24[rbp], rdi mov DWORD PTR -28[rbp], esi mov DWORD PTR -8[rbp], 0 cmp DWORD PTR -28[rbp], 0 jne .L2 mov eax, 1 jmp .L3 .L2: mov DWORD PTR -4[rbp], 1 jmp .L4 .L6: mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -4[rbp] cdqe sal rax, 2 lea rcx, -4[rax] mov rax, QWORD PTR -24[rbp] add rax, rcx mov eax, DWORD PTR [rax] cmp edx, eax jge .L5 add DWORD PTR -8[rbp], 1 .L5: add DWORD PTR -4[rbp], 1 .L4: mov eax, DWORD PTR -4[rbp] cmp eax, DWORD PTR -28[rbp] jl .L6 mov eax, DWORD PTR -28[rbp] cdqe sal rax, 2 lea rdx, -4[rax] mov rax, QWORD PTR -24[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov rax, QWORD PTR -24[rbp] mov eax, DWORD PTR [rax] cmp edx, eax jle .L7 add DWORD PTR -8[rbp], 1 .L7: cmp DWORD PTR -8[rbp], 1 jg .L8 mov eax, 1 jmp .L3 .L8: mov eax, 0 .L3: pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 16 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #20 str r0, [fp, #-16] str r1, [fp, #-20] mov r3, #0 str r3, [fp, #-12] ldr r3, [fp, #-20] cmp r3, #0 bne .L2 mov r3, #1 b .L3 .L2: mov r3, #1 str r3, [fp, #-8] b .L4 .L6: ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-16] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-8] sub r3, r3, #-1073741823 lsl r3, r3, #2 ldr r1, [fp, #-16] add r3, r1, r3 ldr r3, [r3] cmp r2, r3 bge .L5 ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L5: ldr r3, [fp, #-8] add r3, r3, #1 str r3, [fp, #-8] .L4: ldr r2, [fp, #-8] ldr r3, [fp, #-20] cmp r2, r3 blt .L6 ldr r3, [fp, #-20] sub r3, r3, #-1073741823 lsl r3, r3, #2 ldr r2, [fp, #-16] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-16] ldr r3, [r3] cmp r2, r3 ble .L7 ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L7: ldr r3, [fp, #-12] cmp r3, #1 bgt .L8 mov r3, #1 b .L3 .L8: mov r3, #0 .L3: mov r0, r3 add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem119/code.c
.file "code.c" .intel_syntax noprefix .text .section .rodata .LC0: .string "AEIOUaeiou" .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -40[rbp], rdi lea rax, .LC0[rip] mov QWORD PTR -16[rbp], rax mov rax, QWORD PTR -40[rbp] mov rdi, rax call strlen@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -8[rbp] sub eax, 2 mov DWORD PTR -20[rbp], eax jmp .L2 .L5: mov eax, DWORD PTR -20[rbp] movsx rdx, eax mov rax, QWORD PTR -40[rbp] add rax, rdx movzx eax, BYTE PTR [rax] movsx edx, al mov rax, QWORD PTR -16[rbp] mov esi, edx mov rdi, rax call strchr@PLT test rax, rax je .L3 mov eax, DWORD PTR -20[rbp] cdqe lea rdx, 1[rax] mov rax, QWORD PTR -40[rbp] add rax, rdx movzx eax, BYTE PTR [rax] movsx edx, al mov rax, QWORD PTR -16[rbp] mov esi, edx mov rdi, rax call strchr@PLT test rax, rax jne .L3 mov eax, DWORD PTR -20[rbp] cdqe lea rdx, -1[rax] mov rax, QWORD PTR -40[rbp] add rax, rdx movzx eax, BYTE PTR [rax] movsx edx, al mov rax, QWORD PTR -16[rbp] mov esi, edx mov rdi, rax call strchr@PLT test rax, rax jne .L3 mov eax, DWORD PTR -20[rbp] movsx rdx, eax mov rax, QWORD PTR -40[rbp] add rax, rdx movzx eax, BYTE PTR [rax] mov BYTE PTR out.2496[rip], al lea rax, out.2496[rip] jmp .L4 .L3: sub DWORD PTR -20[rbp], 1 .L2: cmp DWORD PTR -20[rbp], 0 jg .L5 mov BYTE PTR out.2496[rip], 0 lea rax, out.2496[rip] .L4: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .local out.2496 .comm out.2496,2,1 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .section .rodata .align 2 .LC0: .ascii "AEIOUaeiou\000" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 24 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #24 str r0, [fp, #-24] ldr r3, .L6 str r3, [fp, #-12] ldr r0, [fp, #-24] bl strlen str r0, [fp, #-8] ldr r3, [fp, #-8] sub r3, r3, #2 str r3, [fp, #-16] b .L2 .L5: ldr r3, [fp, #-16] ldr r2, [fp, #-24] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 mov r1, r3 ldr r0, [fp, #-12] bl strchr mov r3, r0 cmp r3, #0 beq .L3 ldr r3, [fp, #-16] add r3, r3, #1 ldr r2, [fp, #-24] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 mov r1, r3 ldr r0, [fp, #-12] bl strchr mov r3, r0 cmp r3, #0 bne .L3 ldr r3, [fp, #-16] sub r3, r3, #1 ldr r2, [fp, #-24] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 mov r1, r3 ldr r0, [fp, #-12] bl strchr mov r3, r0 cmp r3, #0 bne .L3 ldr r3, [fp, #-16] ldr r2, [fp, #-24] add r3, r2, r3 ldrb r2, [r3] @ zero_extendqisi2 ldr r3, .L6+4 strb r2, [r3] ldr r3, .L6+4 b .L4 .L3: ldr r3, [fp, #-16] sub r3, r3, #1 str r3, [fp, #-16] .L2: ldr r3, [fp, #-16] cmp r3, #0 bgt .L5 ldr r3, .L6+4 mov r2, #0 strb r2, [r3] ldr r3, .L6+4 .L4: mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .L7: .align 2 .L6: .word .LC0 .word out.4781 .size func0, .-func0 .local out.4781 .comm out.4781,2,4 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem153/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -24[rbp], rdi mov QWORD PTR -32[rbp], rsi mov QWORD PTR -40[rbp], rdx mov DWORD PTR -44[rbp], ecx mov DWORD PTR -4[rbp], 0 jmp .L2 .L3: mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -4[rbp] cdqe lea rcx, 0[0+rax*4] mov rax, QWORD PTR -32[rbp] add rax, rcx mov eax, DWORD PTR [rax] sub edx, eax mov eax, edx mov edx, DWORD PTR -4[rbp] movsx rdx, edx lea rcx, 0[0+rdx*4] mov rdx, QWORD PTR -40[rbp] add rcx, rdx cdq xor eax, edx sub eax, edx mov DWORD PTR [rcx], eax add DWORD PTR -4[rbp], 1 .L2: mov eax, DWORD PTR -4[rbp] cmp eax, DWORD PTR -44[rbp] jl .L3 nop nop pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 24 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #28 str r0, [fp, #-16] str r1, [fp, #-20] str r2, [fp, #-24] str r3, [fp, #-28] mov r3, #0 str r3, [fp, #-8] b .L2 .L3: ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-16] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r1, [fp, #-20] add r3, r1, r3 ldr r3, [r3] sub r2, r2, r3 ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r1, [fp, #-24] add r3, r1, r3 cmp r2, #0 rsblt r2, r2, #0 str r2, [r3] ldr r3, [fp, #-8] add r3, r3, #1 str r3, [fp, #-8] .L2: ldr r2, [fp, #-8] ldr r3, [fp, #-28] cmp r2, r3 blt .L3 nop nop add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem136/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -24[rbp], rdi mov DWORD PTR -28[rbp], esi mov DWORD PTR -8[rbp], -1 mov DWORD PTR -4[rbp], 1 jmp .L2 .L4: mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -4[rbp] cdqe sal rax, 2 lea rcx, -4[rax] mov rax, QWORD PTR -24[rbp] add rax, rcx mov eax, DWORD PTR [rax] cmp edx, eax jge .L3 mov eax, DWORD PTR -4[rbp] mov DWORD PTR -8[rbp], eax .L3: add DWORD PTR -4[rbp], 1 .L2: mov eax, DWORD PTR -4[rbp] cmp eax, DWORD PTR -28[rbp] jl .L4 mov eax, DWORD PTR -8[rbp] pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 16 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #20 str r0, [fp, #-16] str r1, [fp, #-20] mvn r3, #0 str r3, [fp, #-12] mov r3, #1 str r3, [fp, #-8] b .L2 .L4: ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-16] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-8] sub r3, r3, #-1073741823 lsl r3, r3, #2 ldr r1, [fp, #-16] add r3, r1, r3 ldr r3, [r3] cmp r2, r3 bge .L3 ldr r3, [fp, #-8] str r3, [fp, #-12] .L3: ldr r3, [fp, #-8] add r3, r3, #1 str r3, [fp, #-8] .L2: ldr r2, [fp, #-8] ldr r3, [fp, #-20] cmp r2, r3 blt .L4 ldr r3, [fp, #-12] mov r0, r3 add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem151/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov DWORD PTR -20[rbp], edi mov DWORD PTR -24[rbp], esi mov DWORD PTR -28[rbp], edx mov DWORD PTR -8[rbp], 1 cmp DWORD PTR -20[rbp], 1 jg .L2 mov DWORD PTR -8[rbp], 0 .L2: mov DWORD PTR -4[rbp], 2 jmp .L3 .L5: mov eax, DWORD PTR -20[rbp] cdq idiv DWORD PTR -4[rbp] mov eax, edx test eax, eax jne .L4 mov DWORD PTR -8[rbp], 0 .L4: add DWORD PTR -4[rbp], 1 .L3: mov eax, DWORD PTR -4[rbp] imul eax, eax cmp DWORD PTR -20[rbp], eax jge .L5 cmp DWORD PTR -8[rbp], 0 je .L6 mov eax, DWORD PTR -24[rbp] jmp .L7 .L6: mov eax, DWORD PTR -28[rbp] .L7: pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .global __aeabi_idivmod .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 24 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #24 str r0, [fp, #-16] str r1, [fp, #-20] str r2, [fp, #-24] mov r3, #1 str r3, [fp, #-12] ldr r3, [fp, #-16] cmp r3, #1 bgt .L2 mov r3, #0 str r3, [fp, #-12] .L2: mov r3, #2 str r3, [fp, #-8] b .L3 .L5: ldr r3, [fp, #-16] ldr r1, [fp, #-8] mov r0, r3 bl __aeabi_idivmod mov r3, r1 cmp r3, #0 bne .L4 mov r3, #0 str r3, [fp, #-12] .L4: ldr r3, [fp, #-8] add r3, r3, #1 str r3, [fp, #-8] .L3: ldr r3, [fp, #-8] mov r2, r3 mul r2, r3, r2 mov r3, r2 ldr r2, [fp, #-16] cmp r2, r3 bge .L5 ldr r3, [fp, #-12] cmp r3, #0 beq .L6 ldr r3, [fp, #-20] b .L7 .L6: ldr r3, [fp, #-24] .L7: mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem158/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 movss DWORD PTR -4[rbp], xmm0 movss DWORD PTR -8[rbp], xmm1 movss DWORD PTR -12[rbp], xmm2 movss xmm0, DWORD PTR -4[rbp] movaps xmm1, xmm0 mulss xmm1, xmm0 movss xmm0, DWORD PTR -8[rbp] mulss xmm0, xmm0 addss xmm1, xmm0 movss xmm0, DWORD PTR -12[rbp] mulss xmm0, xmm0 subss xmm1, xmm0 movaps xmm0, xmm1 movss xmm1, DWORD PTR .LC0[rip] andps xmm0, xmm1 cvtss2sd xmm1, xmm0 movsd xmm0, QWORD PTR .LC1[rip] comisd xmm0, xmm1 ja .L2 movss xmm0, DWORD PTR -4[rbp] movaps xmm1, xmm0 mulss xmm1, xmm0 movss xmm0, DWORD PTR -12[rbp] mulss xmm0, xmm0 addss xmm1, xmm0 movss xmm0, DWORD PTR -8[rbp] mulss xmm0, xmm0 subss xmm1, xmm0 movaps xmm0, xmm1 movss xmm1, DWORD PTR .LC0[rip] andps xmm0, xmm1 cvtss2sd xmm1, xmm0 movsd xmm0, QWORD PTR .LC1[rip] comisd xmm0, xmm1 ja .L2 movss xmm0, DWORD PTR -8[rbp] movaps xmm1, xmm0 mulss xmm1, xmm0 movss xmm0, DWORD PTR -12[rbp] mulss xmm0, xmm0 addss xmm1, xmm0 movss xmm0, DWORD PTR -4[rbp] mulss xmm0, xmm0 subss xmm1, xmm0 movaps xmm0, xmm1 movss xmm1, DWORD PTR .LC0[rip] andps xmm0, xmm1 cvtss2sd xmm1, xmm0 movsd xmm0, QWORD PTR .LC1[rip] comisd xmm0, xmm1 jbe .L6 .L2: mov eax, 1 jmp .L5 .L6: mov eax, 0 .L5: pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .section .rodata .align 16 .LC0: .long 2147483647 .long 0 .long 0 .long 0 .align 8 .LC1: .long 3944497965 .long 1058682594 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .global __aeabi_fmul .global __aeabi_fadd .global __aeabi_fsub .global __aeabi_f2d .global __aeabi_dcmplt .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 16 @ frame_needed = 1, uses_anonymous_args = 0 push {r4, fp, lr} add fp, sp, #8 sub sp, sp, #20 str r0, [fp, #-16] @ float str r1, [fp, #-20] @ float str r2, [fp, #-24] @ float ldr r1, [fp, #-16] @ float ldr r0, [fp, #-16] @ float bl __aeabi_fmul mov r3, r0 mov r4, r3 ldr r1, [fp, #-20] @ float ldr r0, [fp, #-20] @ float bl __aeabi_fmul mov r3, r0 mov r1, r3 mov r0, r4 bl __aeabi_fadd mov r3, r0 mov r4, r3 ldr r1, [fp, #-24] @ float ldr r0, [fp, #-24] @ float bl __aeabi_fmul mov r3, r0 mov r1, r3 mov r0, r4 bl __aeabi_fsub mov r3, r0 bic r3, r3, #-2147483648 mov r0, r3 bl __aeabi_f2d ldr r2, .L7 ldr r3, .L7+4 bl __aeabi_dcmplt mov r3, r0 cmp r3, #0 bne .L2 ldr r1, [fp, #-16] @ float ldr r0, [fp, #-16] @ float bl __aeabi_fmul mov r3, r0 mov r4, r3 ldr r1, [fp, #-24] @ float ldr r0, [fp, #-24] @ float bl __aeabi_fmul mov r3, r0 mov r1, r3 mov r0, r4 bl __aeabi_fadd mov r3, r0 mov r4, r3 ldr r1, [fp, #-20] @ float ldr r0, [fp, #-20] @ float bl __aeabi_fmul mov r3, r0 mov r1, r3 mov r0, r4 bl __aeabi_fsub mov r3, r0 bic r3, r3, #-2147483648 mov r0, r3 bl __aeabi_f2d ldr r2, .L7 ldr r3, .L7+4 bl __aeabi_dcmplt mov r3, r0 cmp r3, #0 bne .L2 ldr r1, [fp, #-20] @ float ldr r0, [fp, #-20] @ float bl __aeabi_fmul mov r3, r0 mov r4, r3 ldr r1, [fp, #-24] @ float ldr r0, [fp, #-24] @ float bl __aeabi_fmul mov r3, r0 mov r1, r3 mov r0, r4 bl __aeabi_fadd mov r3, r0 mov r4, r3 ldr r1, [fp, #-16] @ float ldr r0, [fp, #-16] @ float bl __aeabi_fmul mov r3, r0 mov r1, r3 mov r0, r4 bl __aeabi_fsub mov r3, r0 bic r3, r3, #-2147483648 mov r0, r3 bl __aeabi_f2d ldr r2, .L7 ldr r3, .L7+4 bl __aeabi_dcmplt mov r3, r0 cmp r3, #0 beq .L6 .L2: mov r3, #1 b .L5 .L6: mov r3, #0 .L5: mov r0, r3 sub sp, fp, #8 @ sp needed pop {r4, fp, pc} .L8: .align 2 .L7: .word -350469331 .word 1058682594 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem6/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -24[rbp], rdi mov DWORD PTR -28[rbp], esi mov DWORD PTR -32[rbp], edx mov QWORD PTR -40[rbp], rcx cmp DWORD PTR -28[rbp], 0 jle .L2 mov eax, DWORD PTR -28[rbp] add eax, eax lea edx, -1[rax] jmp .L3 .L2: mov edx, 0 .L3: mov rax, QWORD PTR -40[rbp] mov DWORD PTR [rax], edx mov rax, QWORD PTR -40[rbp] mov eax, DWORD PTR [rax] cdqe sal rax, 2 mov rdi, rax call malloc@PLT mov QWORD PTR -8[rbp], rax cmp DWORD PTR -28[rbp], 0 jle .L4 mov rax, QWORD PTR -24[rbp] mov edx, DWORD PTR [rax] mov rax, QWORD PTR -8[rbp] mov DWORD PTR [rax], edx .L4: mov DWORD PTR -16[rbp], 1 mov DWORD PTR -12[rbp], 1 jmp .L5 .L6: mov eax, DWORD PTR -12[rbp] lea edx, 1[rax] mov DWORD PTR -12[rbp], edx cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rdx, rax mov eax, DWORD PTR -32[rbp] mov DWORD PTR [rdx], eax mov eax, DWORD PTR -16[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] lea rcx, [rdx+rax] mov eax, DWORD PTR -12[rbp] lea edx, 1[rax] mov DWORD PTR -12[rbp], edx cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rdx, rax mov eax, DWORD PTR [rcx] mov DWORD PTR [rdx], eax add DWORD PTR -16[rbp], 1 .L5: mov eax, DWORD PTR -16[rbp] cmp eax, DWORD PTR -28[rbp] jl .L6 mov rax, QWORD PTR -8[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 32 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #32 str r0, [fp, #-24] str r1, [fp, #-28] str r2, [fp, #-32] str r3, [fp, #-36] ldr r3, [fp, #-28] cmp r3, #0 ble .L2 ldr r3, [fp, #-28] lsl r3, r3, #1 sub r3, r3, #1 b .L3 .L2: mov r3, #0 .L3: ldr r2, [fp, #-36] str r3, [r2] ldr r3, [fp, #-36] ldr r3, [r3] lsl r3, r3, #2 mov r0, r3 bl malloc mov r3, r0 str r3, [fp, #-8] ldr r3, [fp, #-28] cmp r3, #0 ble .L4 ldr r3, [fp, #-24] ldr r2, [r3] ldr r3, [fp, #-8] str r2, [r3] .L4: mov r3, #1 str r3, [fp, #-16] mov r3, #1 str r3, [fp, #-12] b .L5 .L6: ldr r3, [fp, #-12] add r2, r3, #1 str r2, [fp, #-12] lsl r3, r3, #2 ldr r2, [fp, #-8] add r3, r2, r3 ldr r2, [fp, #-32] str r2, [r3] ldr r3, [fp, #-16] lsl r3, r3, #2 ldr r2, [fp, #-24] add r2, r2, r3 ldr r3, [fp, #-12] add r1, r3, #1 str r1, [fp, #-12] lsl r3, r3, #2 ldr r1, [fp, #-8] add r3, r1, r3 ldr r2, [r2] str r2, [r3] ldr r3, [fp, #-16] add r3, r3, #1 str r3, [fp, #-16] .L5: ldr r2, [fp, #-16] ldr r3, [fp, #-28] cmp r2, r3 blt .L6 ldr r3, [fp, #-8] mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem106/code.c
.file "code.c" .intel_syntax noprefix .text .section .rodata .LC0: .string "" .LC1: .string "One" .LC2: .string "Two" .LC3: .string "Three" .LC4: .string "Four" .LC5: .string "Five" .LC6: .string "Six" .LC7: .string "Seven" .LC8: .string "Eight" .LC9: .string "Nine" .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 144 mov QWORD PTR -120[rbp], rdi mov DWORD PTR -124[rbp], esi mov QWORD PTR -136[rbp], rdx mov QWORD PTR -144[rbp], rcx mov rax, QWORD PTR fs:40 mov QWORD PTR -8[rbp], rax xor eax, eax lea rax, .LC0[rip] mov QWORD PTR -96[rbp], rax lea rax, .LC1[rip] mov QWORD PTR -88[rbp], rax lea rax, .LC2[rip] mov QWORD PTR -80[rbp], rax lea rax, .LC3[rip] mov QWORD PTR -72[rbp], rax lea rax, .LC4[rip] mov QWORD PTR -64[rbp], rax lea rax, .LC5[rip] mov QWORD PTR -56[rbp], rax lea rax, .LC6[rip] mov QWORD PTR -48[rbp], rax lea rax, .LC7[rip] mov QWORD PTR -40[rbp], rax lea rax, .LC8[rip] mov QWORD PTR -32[rbp], rax lea rax, .LC9[rip] mov QWORD PTR -24[rbp], rax mov DWORD PTR -108[rbp], 0 jmp .L2 .L6: mov DWORD PTR -104[rbp], 0 jmp .L3 .L5: mov eax, DWORD PTR -104[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -120[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -104[rbp] cdqe add rax, 1 lea rcx, 0[0+rax*4] mov rax, QWORD PTR -120[rbp] add rax, rcx mov eax, DWORD PTR [rax] cmp edx, eax jle .L4 mov eax, DWORD PTR -104[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -120[rbp] add rax, rdx mov eax, DWORD PTR [rax] mov DWORD PTR -100[rbp], eax mov eax, DWORD PTR -104[rbp] cdqe add rax, 1 lea rdx, 0[0+rax*4] mov rax, QWORD PTR -120[rbp] add rax, rdx mov edx, DWORD PTR -104[rbp] movsx rdx, edx lea rcx, 0[0+rdx*4] mov rdx, QWORD PTR -120[rbp] add rdx, rcx mov eax, DWORD PTR [rax] mov DWORD PTR [rdx], eax mov eax, DWORD PTR -104[rbp] cdqe add rax, 1 lea rdx, 0[0+rax*4] mov rax, QWORD PTR -120[rbp] add rdx, rax mov eax, DWORD PTR -100[rbp] mov DWORD PTR [rdx], eax .L4: add DWORD PTR -104[rbp], 1 .L3: mov eax, DWORD PTR -124[rbp] sub eax, DWORD PTR -108[rbp] sub eax, 1 cmp DWORD PTR -104[rbp], eax jl .L5 add DWORD PTR -108[rbp], 1 .L2: mov eax, DWORD PTR -124[rbp] sub eax, 1 cmp DWORD PTR -108[rbp], eax jl .L6 mov rax, QWORD PTR -144[rbp] mov DWORD PTR [rax], 0 mov eax, DWORD PTR -124[rbp] sub eax, 1 mov DWORD PTR -108[rbp], eax jmp .L7 .L9: mov eax, DWORD PTR -108[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -120[rbp] add rax, rdx mov eax, DWORD PTR [rax] test eax, eax jle .L8 mov eax, DWORD PTR -108[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -120[rbp] add rax, rdx mov eax, DWORD PTR [rax] cmp eax, 9 jg .L8 mov rax, QWORD PTR -144[rbp] mov eax, DWORD PTR [rax] lea edx, 1[rax] mov rax, QWORD PTR -144[rbp] mov DWORD PTR [rax], edx .L8: sub DWORD PTR -108[rbp], 1 .L7: cmp DWORD PTR -108[rbp], 0 jns .L9 mov rax, QWORD PTR -144[rbp] mov eax, DWORD PTR [rax] cdqe sal rax, 3 mov rdi, rax call malloc@PLT mov rdx, rax mov rax, QWORD PTR -136[rbp] mov QWORD PTR [rax], rdx mov eax, DWORD PTR -124[rbp] sub eax, 1 mov DWORD PTR -108[rbp], eax mov DWORD PTR -104[rbp], 0 jmp .L10 .L13: mov eax, DWORD PTR -108[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -120[rbp] add rax, rdx mov eax, DWORD PTR [rax] test eax, eax jle .L11 mov eax, DWORD PTR -108[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -120[rbp] add rax, rdx mov eax, DWORD PTR [rax] cmp eax, 9 jg .L11 mov eax, DWORD PTR -108[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -120[rbp] add rax, rdx mov ecx, DWORD PTR [rax] mov rax, QWORD PTR -136[rbp] mov rsi, QWORD PTR [rax] mov eax, DWORD PTR -104[rbp] lea edx, 1[rax] mov DWORD PTR -104[rbp], edx cdqe sal rax, 3 lea rdx, [rsi+rax] movsx rax, ecx mov rax, QWORD PTR -96[rbp+rax*8] mov QWORD PTR [rdx], rax .L11: sub DWORD PTR -108[rbp], 1 .L10: cmp DWORD PTR -108[rbp], 0 js .L15 mov rax, QWORD PTR -144[rbp] mov eax, DWORD PTR [rax] cmp DWORD PTR -104[rbp], eax jl .L13 .L15: nop mov rax, QWORD PTR -8[rbp] xor rax, QWORD PTR fs:40 je .L14 call __stack_chk_fail@PLT .L14: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .section .rodata .align 2 .LC0: .ascii "\000" .align 2 .LC1: .ascii "One\000" .align 2 .LC2: .ascii "Two\000" .align 2 .LC3: .ascii "Three\000" .align 2 .LC4: .ascii "Four\000" .align 2 .LC5: .ascii "Five\000" .align 2 .LC6: .ascii "Six\000" .align 2 .LC7: .ascii "Seven\000" .align 2 .LC8: .ascii "Eight\000" .align 2 .LC9: .ascii "Nine\000" .text .section .rodata .align 2 .LC11: .word .LC0 .word .LC1 .word .LC2 .word .LC3 .word .LC4 .word .LC5 .word .LC6 .word .LC7 .word .LC8 .word .LC9 .align 2 .LC12: .word __stack_chk_guard .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 72 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #72 str r0, [fp, #-64] str r1, [fp, #-68] str r2, [fp, #-72] str r3, [fp, #-76] ldr r3, .L16 ldr r3, [r3] str r3, [fp, #-8] mov r3,#0 ldr r3, .L16+4 sub ip, fp, #48 mov lr, r3 ldmia lr!, {r0, r1, r2, r3} stmia ip!, {r0, r1, r2, r3} ldmia lr!, {r0, r1, r2, r3} stmia ip!, {r0, r1, r2, r3} ldm lr, {r0, r1} stm ip, {r0, r1} mov r3, #0 str r3, [fp, #-60] b .L2 .L6: mov r3, #0 str r3, [fp, #-56] b .L3 .L5: ldr r3, [fp, #-56] lsl r3, r3, #2 ldr r2, [fp, #-64] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-56] add r3, r3, #1 lsl r3, r3, #2 ldr r1, [fp, #-64] add r3, r1, r3 ldr r3, [r3] cmp r2, r3 ble .L4 ldr r3, [fp, #-56] lsl r3, r3, #2 ldr r2, [fp, #-64] add r3, r2, r3 ldr r3, [r3] str r3, [fp, #-52] ldr r3, [fp, #-56] add r3, r3, #1 lsl r3, r3, #2 ldr r2, [fp, #-64] add r2, r2, r3 ldr r3, [fp, #-56] lsl r3, r3, #2 ldr r1, [fp, #-64] add r3, r1, r3 ldr r2, [r2] str r2, [r3] ldr r3, [fp, #-56] add r3, r3, #1 lsl r3, r3, #2 ldr r2, [fp, #-64] add r3, r2, r3 ldr r2, [fp, #-52] str r2, [r3] .L4: ldr r3, [fp, #-56] add r3, r3, #1 str r3, [fp, #-56] .L3: ldr r2, [fp, #-68] ldr r3, [fp, #-60] sub r3, r2, r3 sub r3, r3, #1 ldr r2, [fp, #-56] cmp r2, r3 blt .L5 ldr r3, [fp, #-60] add r3, r3, #1 str r3, [fp, #-60] .L2: ldr r3, [fp, #-68] sub r3, r3, #1 ldr r2, [fp, #-60] cmp r2, r3 blt .L6 ldr r3, [fp, #-76] mov r2, #0 str r2, [r3] ldr r3, [fp, #-68] sub r3, r3, #1 str r3, [fp, #-60] b .L7 .L9: ldr r3, [fp, #-60] lsl r3, r3, #2 ldr r2, [fp, #-64] add r3, r2, r3 ldr r3, [r3] cmp r3, #0 ble .L8 ldr r3, [fp, #-60] lsl r3, r3, #2 ldr r2, [fp, #-64] add r3, r2, r3 ldr r3, [r3] cmp r3, #9 bgt .L8 ldr r3, [fp, #-76] ldr r3, [r3] add r2, r3, #1 ldr r3, [fp, #-76] str r2, [r3] .L8: ldr r3, [fp, #-60] sub r3, r3, #1 str r3, [fp, #-60] .L7: ldr r3, [fp, #-60] cmp r3, #0 bge .L9 ldr r3, [fp, #-76] ldr r3, [r3] lsl r3, r3, #2 mov r0, r3 bl malloc mov r3, r0 mov r2, r3 ldr r3, [fp, #-72] str r2, [r3] ldr r3, [fp, #-68] sub r3, r3, #1 str r3, [fp, #-60] mov r3, #0 str r3, [fp, #-56] b .L10 .L13: ldr r3, [fp, #-60] lsl r3, r3, #2 ldr r2, [fp, #-64] add r3, r2, r3 ldr r3, [r3] cmp r3, #0 ble .L11 ldr r3, [fp, #-60] lsl r3, r3, #2 ldr r2, [fp, #-64] add r3, r2, r3 ldr r3, [r3] cmp r3, #9 bgt .L11 ldr r3, [fp, #-60] lsl r3, r3, #2 ldr r2, [fp, #-64] add r3, r2, r3 ldr r1, [r3] ldr r3, [fp, #-72] ldr r2, [r3] ldr r3, [fp, #-56] add r0, r3, #1 str r0, [fp, #-56] lsl r3, r3, #2 add r2, r2, r3 lsl r3, r1, #2 sub r1, fp, #4 add r3, r1, r3 ldr r3, [r3, #-44] str r3, [r2] .L11: ldr r3, [fp, #-60] sub r3, r3, #1 str r3, [fp, #-60] .L10: ldr r3, [fp, #-60] cmp r3, #0 blt .L15 ldr r3, [fp, #-76] ldr r3, [r3] ldr r2, [fp, #-56] cmp r2, r3 blt .L13 .L15: nop ldr r3, .L16 ldr r2, [r3] ldr r3, [fp, #-8] eors r2, r3, r2 mov r3, #0 beq .L14 bl __stack_chk_fail .L14: sub sp, fp, #4 @ sp needed pop {fp, pc} .L17: .align 2 .L16: .word .LC12 .word .LC11 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem47/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 448 mov DWORD PTR -436[rbp], edi mov rax, QWORD PTR fs:40 mov QWORD PTR -8[rbp], rax xor eax, eax mov DWORD PTR -416[rbp], 0 mov DWORD PTR -412[rbp], 0 mov DWORD PTR -408[rbp], 2 mov DWORD PTR -404[rbp], 0 mov DWORD PTR -420[rbp], 4 jmp .L2 .L3: mov eax, DWORD PTR -420[rbp] sub eax, 1 cdqe mov edx, DWORD PTR -416[rbp+rax*4] mov eax, DWORD PTR -420[rbp] sub eax, 2 cdqe mov eax, DWORD PTR -416[rbp+rax*4] add edx, eax mov eax, DWORD PTR -420[rbp] sub eax, 3 cdqe mov eax, DWORD PTR -416[rbp+rax*4] add edx, eax mov eax, DWORD PTR -420[rbp] sub eax, 4 cdqe mov eax, DWORD PTR -416[rbp+rax*4] add edx, eax mov eax, DWORD PTR -420[rbp] cdqe mov DWORD PTR -416[rbp+rax*4], edx add DWORD PTR -420[rbp], 1 .L2: mov eax, DWORD PTR -420[rbp] cmp eax, DWORD PTR -436[rbp] jle .L3 mov eax, DWORD PTR -436[rbp] cdqe mov eax, DWORD PTR -416[rbp+rax*4] mov rcx, QWORD PTR -8[rbp] xor rcx, QWORD PTR fs:40 je .L5 call __stack_chk_fail@PLT .L5: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .section .rodata .align 2 .LC0: .word __stack_chk_guard .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 416 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #416 str r0, [fp, #-416] ldr r3, .L6 ldr r3, [r3] str r3, [fp, #-8] mov r3,#0 mov r3, #0 str r3, [fp, #-408] mov r3, #0 str r3, [fp, #-404] mov r3, #2 str r3, [fp, #-400] mov r3, #0 str r3, [fp, #-396] mov r3, #4 str r3, [fp, #-412] b .L2 .L3: ldr r3, [fp, #-412] sub r3, r3, #1 lsl r3, r3, #2 sub r2, fp, #4 add r3, r2, r3 ldr r2, [r3, #-404] ldr r3, [fp, #-412] sub r3, r3, #2 lsl r3, r3, #2 sub r1, fp, #4 add r3, r1, r3 ldr r3, [r3, #-404] add r2, r2, r3 ldr r3, [fp, #-412] sub r3, r3, #3 lsl r3, r3, #2 sub r1, fp, #4 add r3, r1, r3 ldr r3, [r3, #-404] add r2, r2, r3 ldr r3, [fp, #-412] sub r3, r3, #4 lsl r3, r3, #2 sub r1, fp, #4 add r3, r1, r3 ldr r3, [r3, #-404] add r2, r2, r3 ldr r3, [fp, #-412] lsl r3, r3, #2 sub r1, fp, #4 add r3, r1, r3 str r2, [r3, #-404] ldr r3, [fp, #-412] add r3, r3, #1 str r3, [fp, #-412] .L2: ldr r2, [fp, #-412] ldr r3, [fp, #-416] cmp r2, r3 ble .L3 ldr r3, [fp, #-416] lsl r3, r3, #2 sub r2, fp, #4 add r3, r2, r3 ldr r3, [r3, #-404] ldr r2, .L6 ldr r1, [r2] ldr r2, [fp, #-8] eors r1, r2, r1 mov r2, #0 beq .L5 bl __stack_chk_fail .L5: mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .L7: .align 2 .L6: .word .LC0 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem92/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov DWORD PTR -16[rbp], 1 mov DWORD PTR -12[rbp], 0 mov DWORD PTR -8[rbp], 0 mov DWORD PTR -4[rbp], 0 jmp .L2 .L9: call __ctype_b_loc@PLT mov rax, QWORD PTR [rax] mov edx, DWORD PTR -4[rbp] movsx rcx, edx mov rdx, QWORD PTR -24[rbp] add rdx, rcx movzx edx, BYTE PTR [rdx] movsx rdx, dl add rdx, rdx add rax, rdx movzx eax, WORD PTR [rax] movzx eax, ax and eax, 8192 test eax, eax je .L3 cmp DWORD PTR -12[rbp], 0 je .L3 mov DWORD PTR -12[rbp], 0 add DWORD PTR -8[rbp], 1 .L3: mov eax, DWORD PTR -4[rbp] movsx rdx, eax mov rax, QWORD PTR -24[rbp] add rax, rdx movzx eax, BYTE PTR [rax] cmp al, 73 jne .L4 cmp DWORD PTR -16[rbp], 0 je .L4 mov DWORD PTR -12[rbp], 1 jmp .L5 .L4: call __ctype_b_loc@PLT mov rax, QWORD PTR [rax] mov edx, DWORD PTR -4[rbp] movsx rcx, edx mov rdx, QWORD PTR -24[rbp] add rdx, rcx movzx edx, BYTE PTR [rdx] movsx rdx, dl add rdx, rdx add rax, rdx movzx eax, WORD PTR [rax] movzx eax, ax and eax, 8192 test eax, eax jne .L5 mov DWORD PTR -12[rbp], 0 .L5: call __ctype_b_loc@PLT mov rax, QWORD PTR [rax] mov edx, DWORD PTR -4[rbp] movsx rcx, edx mov rdx, QWORD PTR -24[rbp] add rdx, rcx movzx edx, BYTE PTR [rdx] movsx rdx, dl add rdx, rdx add rax, rdx movzx eax, WORD PTR [rax] movzx eax, ax and eax, 8192 test eax, eax jne .L6 mov DWORD PTR -16[rbp], 0 .L6: mov eax, DWORD PTR -4[rbp] movsx rdx, eax mov rax, QWORD PTR -24[rbp] add rax, rdx movzx eax, BYTE PTR [rax] cmp al, 46 je .L7 mov eax, DWORD PTR -4[rbp] movsx rdx, eax mov rax, QWORD PTR -24[rbp] add rax, rdx movzx eax, BYTE PTR [rax] cmp al, 63 je .L7 mov eax, DWORD PTR -4[rbp] movsx rdx, eax mov rax, QWORD PTR -24[rbp] add rax, rdx movzx eax, BYTE PTR [rax] cmp al, 33 jne .L8 .L7: mov DWORD PTR -16[rbp], 1 .L8: add DWORD PTR -4[rbp], 1 .L2: mov eax, DWORD PTR -4[rbp] movsx rdx, eax mov rax, QWORD PTR -24[rbp] add rax, rdx movzx eax, BYTE PTR [rax] test al, al jne .L9 mov eax, DWORD PTR -8[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 24 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #24 str r0, [fp, #-24] mov r3, #1 str r3, [fp, #-20] mov r3, #0 str r3, [fp, #-16] mov r3, #0 str r3, [fp, #-12] mov r3, #0 str r3, [fp, #-8] b .L2 .L9: bl __ctype_b_loc mov r3, r0 ldr r2, [r3] ldr r3, [fp, #-8] ldr r1, [fp, #-24] add r3, r1, r3 ldrb r3, [r3] @ zero_extendqisi2 lsl r3, r3, #1 add r3, r2, r3 ldrh r3, [r3] and r3, r3, #8192 cmp r3, #0 beq .L3 ldr r3, [fp, #-16] cmp r3, #0 beq .L3 mov r3, #0 str r3, [fp, #-16] ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L3: ldr r3, [fp, #-8] ldr r2, [fp, #-24] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #73 bne .L4 ldr r3, [fp, #-20] cmp r3, #0 beq .L4 mov r3, #1 str r3, [fp, #-16] b .L5 .L4: bl __ctype_b_loc mov r3, r0 ldr r2, [r3] ldr r3, [fp, #-8] ldr r1, [fp, #-24] add r3, r1, r3 ldrb r3, [r3] @ zero_extendqisi2 lsl r3, r3, #1 add r3, r2, r3 ldrh r3, [r3] and r3, r3, #8192 cmp r3, #0 bne .L5 mov r3, #0 str r3, [fp, #-16] .L5: bl __ctype_b_loc mov r3, r0 ldr r2, [r3] ldr r3, [fp, #-8] ldr r1, [fp, #-24] add r3, r1, r3 ldrb r3, [r3] @ zero_extendqisi2 lsl r3, r3, #1 add r3, r2, r3 ldrh r3, [r3] and r3, r3, #8192 cmp r3, #0 bne .L6 mov r3, #0 str r3, [fp, #-20] .L6: ldr r3, [fp, #-8] ldr r2, [fp, #-24] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #46 beq .L7 ldr r3, [fp, #-8] ldr r2, [fp, #-24] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #63 beq .L7 ldr r3, [fp, #-8] ldr r2, [fp, #-24] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #33 bne .L8 .L7: mov r3, #1 str r3, [fp, #-20] .L8: ldr r3, [fp, #-8] add r3, r3, #1 str r3, [fp, #-8] .L2: ldr r3, [fp, #-8] ldr r2, [fp, #-24] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #0 bne .L9 ldr r3, [fp, #-12] mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem52/code.c
.file "code.c" .intel_syntax noprefix .text .section .rodata .LC0: .string "AEIOUaeiou" .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi lea rax, .LC0[rip] mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -24[rbp] mov QWORD PTR -16[rbp], rax jmp .L2 .L4: mov rax, QWORD PTR -24[rbp] movzx eax, BYTE PTR [rax] movsx edx, al mov rax, QWORD PTR -8[rbp] mov esi, edx mov rdi, rax call strchr@PLT test rax, rax jne .L3 mov rax, QWORD PTR -16[rbp] lea rdx, 1[rax] mov QWORD PTR -16[rbp], rdx mov rdx, QWORD PTR -24[rbp] movzx edx, BYTE PTR [rdx] mov BYTE PTR [rax], dl .L3: add QWORD PTR -24[rbp], 1 .L2: mov rax, QWORD PTR -24[rbp] movzx eax, BYTE PTR [rax] test al, al jne .L4 mov rax, QWORD PTR -16[rbp] mov BYTE PTR [rax], 0 nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .section .rodata .align 2 .LC0: .ascii "AEIOUaeiou\000" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 16 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #16 str r0, [fp, #-16] ldr r3, .L5 str r3, [fp, #-8] ldr r3, [fp, #-16] str r3, [fp, #-12] b .L2 .L4: ldr r3, [fp, #-16] ldrb r3, [r3] @ zero_extendqisi2 mov r1, r3 ldr r0, [fp, #-8] bl strchr mov r3, r0 cmp r3, #0 bne .L3 ldr r3, [fp, #-12] add r2, r3, #1 str r2, [fp, #-12] ldr r2, [fp, #-16] ldrb r2, [r2] @ zero_extendqisi2 strb r2, [r3] .L3: ldr r3, [fp, #-16] add r3, r3, #1 str r3, [fp, #-16] .L2: ldr r3, [fp, #-16] ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #0 bne .L4 ldr r3, [fp, #-12] mov r2, #0 strb r2, [r3] nop sub sp, fp, #4 @ sp needed pop {fp, pc} .L6: .align 2 .L5: .word .LC0 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem24/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -24[rbp], rdi mov DWORD PTR -4[rbp], 0 jmp .L2 .L3: add DWORD PTR -4[rbp], 1 .L2: mov eax, DWORD PTR -4[rbp] movsx rdx, eax mov rax, QWORD PTR -24[rbp] add rax, rdx movzx eax, BYTE PTR [rax] test al, al jne .L3 mov eax, DWORD PTR -4[rbp] pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 16 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #20 str r0, [fp, #-16] mov r3, #0 str r3, [fp, #-8] b .L2 .L3: ldr r3, [fp, #-8] add r3, r3, #1 str r3, [fp, #-8] .L2: ldr r3, [fp, #-8] ldr r2, [fp, #-16] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #0 bne .L3 ldr r3, [fp, #-8] mov r0, r3 add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem71/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -40[rbp], rdi mov DWORD PTR -44[rbp], esi mov QWORD PTR -56[rbp], rdx mov DWORD PTR -24[rbp], 0 jmp .L2 .L6: mov eax, DWORD PTR -24[rbp] add eax, 1 mov DWORD PTR -20[rbp], eax jmp .L3 .L5: mov eax, DWORD PTR -24[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -20[rbp] cdqe lea rcx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rcx mov eax, DWORD PTR [rax] cmp edx, eax jle .L4 mov eax, DWORD PTR -24[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rdx mov eax, DWORD PTR [rax] mov DWORD PTR -4[rbp], eax mov eax, DWORD PTR -20[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rdx mov edx, DWORD PTR -24[rbp] movsx rdx, edx lea rcx, 0[0+rdx*4] mov rdx, QWORD PTR -40[rbp] add rdx, rcx mov eax, DWORD PTR [rax] mov DWORD PTR [rdx], eax mov eax, DWORD PTR -20[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rdx, rax mov eax, DWORD PTR -4[rbp] mov DWORD PTR [rdx], eax .L4: add DWORD PTR -20[rbp], 1 .L3: mov eax, DWORD PTR -20[rbp] cmp eax, DWORD PTR -44[rbp] jl .L5 add DWORD PTR -24[rbp], 1 .L2: mov eax, DWORD PTR -44[rbp] sub eax, 1 cmp DWORD PTR -24[rbp], eax jl .L6 mov DWORD PTR -16[rbp], 0 mov eax, DWORD PTR -44[rbp] sub eax, 1 mov DWORD PTR -12[rbp], eax mov DWORD PTR -8[rbp], 0 jmp .L7 .L9: mov eax, DWORD PTR -16[rbp] cmp eax, DWORD PTR -12[rbp] jne .L8 mov eax, DWORD PTR -16[rbp] lea edx, 1[rax] mov DWORD PTR -16[rbp], edx cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] lea rcx, [rdx+rax] mov eax, DWORD PTR -8[rbp] lea edx, 1[rax] mov DWORD PTR -8[rbp], edx cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -56[rbp] add rdx, rax mov eax, DWORD PTR [rcx] mov DWORD PTR [rdx], eax jmp .L7 .L8: mov eax, DWORD PTR -16[rbp] lea edx, 1[rax] mov DWORD PTR -16[rbp], edx cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] lea rcx, [rdx+rax] mov eax, DWORD PTR -8[rbp] lea edx, 1[rax] mov DWORD PTR -8[rbp], edx cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -56[rbp] add rdx, rax mov eax, DWORD PTR [rcx] mov DWORD PTR [rdx], eax mov eax, DWORD PTR -12[rbp] lea edx, -1[rax] mov DWORD PTR -12[rbp], edx cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] lea rcx, [rdx+rax] mov eax, DWORD PTR -8[rbp] lea edx, 1[rax] mov DWORD PTR -8[rbp], edx cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -56[rbp] add rdx, rax mov eax, DWORD PTR [rcx] mov DWORD PTR [rdx], eax .L7: mov eax, DWORD PTR -16[rbp] cmp eax, DWORD PTR -12[rbp] jle .L9 nop nop pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 40 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #44 str r0, [fp, #-32] str r1, [fp, #-36] str r2, [fp, #-40] mov r3, #0 str r3, [fp, #-28] b .L2 .L6: ldr r3, [fp, #-28] add r3, r3, #1 str r3, [fp, #-24] b .L3 .L5: ldr r3, [fp, #-28] lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-24] lsl r3, r3, #2 ldr r1, [fp, #-32] add r3, r1, r3 ldr r3, [r3] cmp r2, r3 ble .L4 ldr r3, [fp, #-28] lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r3, [r3] str r3, [fp, #-8] ldr r3, [fp, #-24] lsl r3, r3, #2 ldr r2, [fp, #-32] add r2, r2, r3 ldr r3, [fp, #-28] lsl r3, r3, #2 ldr r1, [fp, #-32] add r3, r1, r3 ldr r2, [r2] str r2, [r3] ldr r3, [fp, #-24] lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r2, [fp, #-8] str r2, [r3] .L4: ldr r3, [fp, #-24] add r3, r3, #1 str r3, [fp, #-24] .L3: ldr r2, [fp, #-24] ldr r3, [fp, #-36] cmp r2, r3 blt .L5 ldr r3, [fp, #-28] add r3, r3, #1 str r3, [fp, #-28] .L2: ldr r3, [fp, #-36] sub r3, r3, #1 ldr r2, [fp, #-28] cmp r2, r3 blt .L6 mov r3, #0 str r3, [fp, #-20] ldr r3, [fp, #-36] sub r3, r3, #1 str r3, [fp, #-16] mov r3, #0 str r3, [fp, #-12] b .L7 .L9: ldr r2, [fp, #-20] ldr r3, [fp, #-16] cmp r2, r3 bne .L8 ldr r3, [fp, #-20] add r2, r3, #1 str r2, [fp, #-20] lsl r3, r3, #2 ldr r2, [fp, #-32] add r2, r2, r3 ldr r3, [fp, #-12] add r1, r3, #1 str r1, [fp, #-12] lsl r3, r3, #2 ldr r1, [fp, #-40] add r3, r1, r3 ldr r2, [r2] str r2, [r3] b .L7 .L8: ldr r3, [fp, #-20] add r2, r3, #1 str r2, [fp, #-20] lsl r3, r3, #2 ldr r2, [fp, #-32] add r2, r2, r3 ldr r3, [fp, #-12] add r1, r3, #1 str r1, [fp, #-12] lsl r3, r3, #2 ldr r1, [fp, #-40] add r3, r1, r3 ldr r2, [r2] str r2, [r3] ldr r3, [fp, #-16] sub r2, r3, #1 str r2, [fp, #-16] lsl r3, r3, #2 ldr r2, [fp, #-32] add r2, r2, r3 ldr r3, [fp, #-12] add r1, r3, #1 str r1, [fp, #-12] lsl r3, r3, #2 ldr r1, [fp, #-40] add r3, r1, r3 ldr r2, [r2] str r2, [r3] .L7: ldr r2, [fp, #-20] ldr r3, [fp, #-16] cmp r2, r3 ble .L9 nop nop add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem27/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 112 mov QWORD PTR -88[rbp], rdi mov DWORD PTR -92[rbp], esi mov QWORD PTR -104[rbp], rdx mov eax, DWORD PTR -92[rbp] cdqe sal rax, 2 mov rdi, rax call malloc@PLT mov QWORD PTR -24[rbp], rax mov eax, DWORD PTR -92[rbp] cdqe mov esi, 4 mov rdi, rax call calloc@PLT mov QWORD PTR -16[rbp], rax mov eax, DWORD PTR -92[rbp] cdqe mov esi, 4 mov rdi, rax call calloc@PLT mov QWORD PTR -8[rbp], rax mov DWORD PTR -76[rbp], 0 mov DWORD PTR -72[rbp], 0 mov DWORD PTR -68[rbp], 0 mov DWORD PTR -64[rbp], 0 jmp .L2 .L14: mov eax, DWORD PTR -64[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -88[rbp] add rax, rdx mov eax, DWORD PTR [rax] mov DWORD PTR -28[rbp], eax mov DWORD PTR -60[rbp], 0 mov DWORD PTR -56[rbp], 0 jmp .L3 .L6: mov eax, DWORD PTR -56[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov eax, DWORD PTR [rax] cmp DWORD PTR -28[rbp], eax jne .L4 mov DWORD PTR -60[rbp], 1 jmp .L5 .L4: add DWORD PTR -56[rbp], 1 .L3: mov eax, DWORD PTR -56[rbp] cmp eax, DWORD PTR -72[rbp] jl .L6 .L5: cmp DWORD PTR -60[rbp], 0 jne .L23 mov DWORD PTR -52[rbp], 0 mov DWORD PTR -48[rbp], 0 jmp .L9 .L12: mov eax, DWORD PTR -48[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -16[rbp] add rax, rdx mov eax, DWORD PTR [rax] cmp DWORD PTR -28[rbp], eax jne .L10 mov DWORD PTR -52[rbp], 1 jmp .L11 .L10: add DWORD PTR -48[rbp], 1 .L9: mov eax, DWORD PTR -48[rbp] cmp eax, DWORD PTR -76[rbp] jl .L12 .L11: cmp DWORD PTR -52[rbp], 0 je .L13 mov eax, DWORD PTR -72[rbp] lea edx, 1[rax] mov DWORD PTR -72[rbp], edx cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rdx, rax mov eax, DWORD PTR -28[rbp] mov DWORD PTR [rdx], eax jmp .L8 .L13: mov eax, DWORD PTR -76[rbp] lea edx, 1[rax] mov DWORD PTR -76[rbp], edx cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -16[rbp] add rdx, rax mov eax, DWORD PTR -28[rbp] mov DWORD PTR [rdx], eax jmp .L8 .L23: nop .L8: add DWORD PTR -64[rbp], 1 .L2: mov eax, DWORD PTR -64[rbp] cmp eax, DWORD PTR -92[rbp] jl .L14 mov DWORD PTR -44[rbp], 0 jmp .L15 .L21: mov eax, DWORD PTR -44[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -88[rbp] add rax, rdx mov eax, DWORD PTR [rax] mov DWORD PTR -32[rbp], eax mov DWORD PTR -40[rbp], 0 mov DWORD PTR -36[rbp], 0 jmp .L16 .L19: mov eax, DWORD PTR -36[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov eax, DWORD PTR [rax] cmp DWORD PTR -32[rbp], eax jne .L17 mov DWORD PTR -40[rbp], 1 jmp .L18 .L17: add DWORD PTR -36[rbp], 1 .L16: mov eax, DWORD PTR -36[rbp] cmp eax, DWORD PTR -72[rbp] jl .L19 .L18: cmp DWORD PTR -40[rbp], 0 jne .L20 mov eax, DWORD PTR -68[rbp] lea edx, 1[rax] mov DWORD PTR -68[rbp], edx cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rdx, rax mov eax, DWORD PTR -32[rbp] mov DWORD PTR [rdx], eax .L20: add DWORD PTR -44[rbp], 1 .L15: mov eax, DWORD PTR -44[rbp] cmp eax, DWORD PTR -92[rbp] jl .L21 mov rax, QWORD PTR -104[rbp] mov edx, DWORD PTR -68[rbp] mov DWORD PTR [rax], edx mov rax, QWORD PTR -16[rbp] mov rdi, rax call free@PLT mov rax, QWORD PTR -8[rbp] mov rdi, rax call free@PLT mov rax, QWORD PTR -24[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 80 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #80 str r0, [fp, #-72] str r1, [fp, #-76] str r2, [fp, #-80] ldr r3, [fp, #-76] lsl r3, r3, #2 mov r0, r3 bl malloc mov r3, r0 str r3, [fp, #-24] ldr r3, [fp, #-76] mov r1, #4 mov r0, r3 bl calloc mov r3, r0 str r3, [fp, #-20] ldr r3, [fp, #-76] mov r1, #4 mov r0, r3 bl calloc mov r3, r0 str r3, [fp, #-16] mov r3, #0 str r3, [fp, #-68] mov r3, #0 str r3, [fp, #-64] mov r3, #0 str r3, [fp, #-60] mov r3, #0 str r3, [fp, #-56] b .L2 .L14: ldr r3, [fp, #-56] lsl r3, r3, #2 ldr r2, [fp, #-72] add r3, r2, r3 ldr r3, [r3] str r3, [fp, #-8] mov r3, #0 str r3, [fp, #-52] mov r3, #0 str r3, [fp, #-48] b .L3 .L6: ldr r3, [fp, #-48] lsl r3, r3, #2 ldr r2, [fp, #-16] add r3, r2, r3 ldr r3, [r3] ldr r2, [fp, #-8] cmp r2, r3 bne .L4 mov r3, #1 str r3, [fp, #-52] b .L5 .L4: ldr r3, [fp, #-48] add r3, r3, #1 str r3, [fp, #-48] .L3: ldr r2, [fp, #-48] ldr r3, [fp, #-64] cmp r2, r3 blt .L6 .L5: ldr r3, [fp, #-52] cmp r3, #0 bne .L23 mov r3, #0 str r3, [fp, #-44] mov r3, #0 str r3, [fp, #-40] b .L9 .L12: ldr r3, [fp, #-40] lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r3, [r3] ldr r2, [fp, #-8] cmp r2, r3 bne .L10 mov r3, #1 str r3, [fp, #-44] b .L11 .L10: ldr r3, [fp, #-40] add r3, r3, #1 str r3, [fp, #-40] .L9: ldr r2, [fp, #-40] ldr r3, [fp, #-68] cmp r2, r3 blt .L12 .L11: ldr r3, [fp, #-44] cmp r3, #0 beq .L13 ldr r3, [fp, #-64] add r2, r3, #1 str r2, [fp, #-64] lsl r3, r3, #2 ldr r2, [fp, #-16] add r3, r2, r3 ldr r2, [fp, #-8] str r2, [r3] b .L8 .L13: ldr r3, [fp, #-68] add r2, r3, #1 str r2, [fp, #-68] lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r2, [fp, #-8] str r2, [r3] b .L8 .L23: nop .L8: ldr r3, [fp, #-56] add r3, r3, #1 str r3, [fp, #-56] .L2: ldr r2, [fp, #-56] ldr r3, [fp, #-76] cmp r2, r3 blt .L14 mov r3, #0 str r3, [fp, #-36] b .L15 .L21: ldr r3, [fp, #-36] lsl r3, r3, #2 ldr r2, [fp, #-72] add r3, r2, r3 ldr r3, [r3] str r3, [fp, #-12] mov r3, #0 str r3, [fp, #-32] mov r3, #0 str r3, [fp, #-28] b .L16 .L19: ldr r3, [fp, #-28] lsl r3, r3, #2 ldr r2, [fp, #-16] add r3, r2, r3 ldr r3, [r3] ldr r2, [fp, #-12] cmp r2, r3 bne .L17 mov r3, #1 str r3, [fp, #-32] b .L18 .L17: ldr r3, [fp, #-28] add r3, r3, #1 str r3, [fp, #-28] .L16: ldr r2, [fp, #-28] ldr r3, [fp, #-64] cmp r2, r3 blt .L19 .L18: ldr r3, [fp, #-32] cmp r3, #0 bne .L20 ldr r3, [fp, #-60] add r2, r3, #1 str r2, [fp, #-60] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r2, [fp, #-12] str r2, [r3] .L20: ldr r3, [fp, #-36] add r3, r3, #1 str r3, [fp, #-36] .L15: ldr r2, [fp, #-36] ldr r3, [fp, #-76] cmp r2, r3 blt .L21 ldr r3, [fp, #-80] ldr r2, [fp, #-60] str r2, [r3] ldr r0, [fp, #-20] bl free ldr r0, [fp, #-16] bl free ldr r3, [fp, #-24] mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem36/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -24[rbp], rdi mov DWORD PTR -28[rbp], esi movss xmm0, DWORD PTR .LC0[rip] movss DWORD PTR -8[rbp], xmm0 mov DWORD PTR -4[rbp], 0 jmp .L2 .L5: mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx movss xmm0, DWORD PTR [rax] comiss xmm0, DWORD PTR -8[rbp] jbe .L3 mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx movss xmm0, DWORD PTR [rax] movss DWORD PTR -8[rbp], xmm0 .L3: add DWORD PTR -4[rbp], 1 .L2: mov eax, DWORD PTR -4[rbp] cmp eax, DWORD PTR -28[rbp] jl .L5 movss xmm0, DWORD PTR -8[rbp] pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .section .rodata .align 4 .LC0: .long 3323740160 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .global __aeabi_fcmplt .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 16 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #16 str r0, [fp, #-16] str r1, [fp, #-20] ldr r3, .L8 str r3, [fp, #-12] @ float mov r3, #0 str r3, [fp, #-8] b .L2 .L5: ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-16] add r3, r2, r3 ldr r3, [r3] @ float mov r1, r3 ldr r0, [fp, #-12] @ float bl __aeabi_fcmplt mov r3, r0 cmp r3, #0 beq .L3 ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-16] add r3, r2, r3 ldr r3, [r3] @ float str r3, [fp, #-12] @ float .L3: ldr r3, [fp, #-8] add r3, r3, #1 str r3, [fp, #-8] .L2: ldr r2, [fp, #-8] ldr r3, [fp, #-20] cmp r2, r3 blt .L5 ldr r3, [fp, #-12] @ float mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .L9: .align 2 .L8: .word -971227136 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem31/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -24[rbp], rdi mov DWORD PTR -28[rbp], esi mov QWORD PTR -40[rbp], rdx mov eax, DWORD PTR -28[rbp] cdqe sal rax, 2 mov rdi, rax call malloc@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -40[rbp] mov DWORD PTR [rax], 0 mov DWORD PTR -12[rbp], 0 jmp .L2 .L5: mov eax, DWORD PTR -12[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx movss xmm0, DWORD PTR [rax] pxor xmm1, xmm1 comiss xmm0, xmm1 jbe .L3 mov eax, DWORD PTR -12[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] lea rsi, [rdx+rax] mov rax, QWORD PTR -40[rbp] mov eax, DWORD PTR [rax] lea ecx, 1[rax] mov rdx, QWORD PTR -40[rbp] mov DWORD PTR [rdx], ecx cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx movss xmm0, DWORD PTR [rsi] movss DWORD PTR [rax], xmm0 .L3: add DWORD PTR -12[rbp], 1 .L2: mov eax, DWORD PTR -12[rbp] cmp eax, DWORD PTR -28[rbp] jl .L5 mov rax, QWORD PTR -8[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .global __aeabi_fcmpgt .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 24 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #24 str r0, [fp, #-16] str r1, [fp, #-20] str r2, [fp, #-24] ldr r3, [fp, #-20] lsl r3, r3, #2 mov r0, r3 bl malloc mov r3, r0 str r3, [fp, #-8] ldr r3, [fp, #-24] mov r2, #0 str r2, [r3] mov r3, #0 str r3, [fp, #-12] b .L2 .L5: ldr r3, [fp, #-12] lsl r3, r3, #2 ldr r2, [fp, #-16] add r3, r2, r3 ldr r3, [r3] @ float mov r1, #0 mov r0, r3 bl __aeabi_fcmpgt mov r3, r0 cmp r3, #0 beq .L3 ldr r3, [fp, #-12] lsl r3, r3, #2 ldr r2, [fp, #-16] add r2, r2, r3 ldr r3, [fp, #-24] ldr r3, [r3] add r0, r3, #1 ldr r1, [fp, #-24] str r0, [r1] lsl r3, r3, #2 ldr r1, [fp, #-8] add r3, r1, r3 ldr r2, [r2] @ float str r2, [r3] @ float .L3: ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L2: ldr r2, [fp, #-12] ldr r3, [fp, #-20] cmp r2, r3 blt .L5 ldr r3, [fp, #-8] mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem86/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -24[rbp], rdi mov DWORD PTR -28[rbp], esi mov DWORD PTR -8[rbp], 0 mov DWORD PTR -4[rbp], 0 jmp .L2 .L4: mov eax, DWORD PTR -4[rbp] add eax, eax cdqe add rax, 1 lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov eax, DWORD PTR [rax] and eax, 1 test eax, eax jne .L3 mov eax, DWORD PTR -4[rbp] add eax, eax cdqe add rax, 1 lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov eax, DWORD PTR [rax] add DWORD PTR -8[rbp], eax .L3: add DWORD PTR -4[rbp], 1 .L2: mov eax, DWORD PTR -4[rbp] add eax, eax add eax, 1 cmp DWORD PTR -28[rbp], eax jg .L4 mov eax, DWORD PTR -8[rbp] pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 16 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #20 str r0, [fp, #-16] str r1, [fp, #-20] mov r3, #0 str r3, [fp, #-12] mov r3, #0 str r3, [fp, #-8] b .L2 .L4: ldr r3, [fp, #-8] lsl r3, r3, #3 add r3, r3, #4 ldr r2, [fp, #-16] add r3, r2, r3 ldr r3, [r3] and r3, r3, #1 cmp r3, #0 bne .L3 ldr r3, [fp, #-8] lsl r3, r3, #3 add r3, r3, #4 ldr r2, [fp, #-16] add r3, r2, r3 ldr r3, [r3] ldr r2, [fp, #-12] add r3, r2, r3 str r3, [fp, #-12] .L3: ldr r3, [fp, #-8] add r3, r3, #1 str r3, [fp, #-8] .L2: ldr r3, [fp, #-8] lsl r3, r3, #1 add r3, r3, #1 ldr r2, [fp, #-20] cmp r2, r3 bgt .L4 ldr r3, [fp, #-12] mov r0, r3 add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem77/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov DWORD PTR -20[rbp], edi mov DWORD PTR -24[rbp], esi mov DWORD PTR -8[rbp], 1 mov DWORD PTR -4[rbp], 0 jmp .L2 .L6: mov eax, DWORD PTR -8[rbp] cmp eax, DWORD PTR -20[rbp] jne .L3 mov eax, 1 jmp .L4 .L3: mov eax, DWORD PTR -8[rbp] imul eax, DWORD PTR -24[rbp] mov DWORD PTR -8[rbp], eax add DWORD PTR -4[rbp], 1 .L2: mov eax, DWORD PTR -8[rbp] cmp eax, DWORD PTR -20[rbp] jg .L5 cmp DWORD PTR -4[rbp], 99 jle .L6 .L5: mov eax, 0 .L4: pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 16 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #20 str r0, [fp, #-16] str r1, [fp, #-20] mov r3, #1 str r3, [fp, #-12] mov r3, #0 str r3, [fp, #-8] b .L2 .L6: ldr r2, [fp, #-12] ldr r3, [fp, #-16] cmp r2, r3 bne .L3 mov r3, #1 b .L4 .L3: ldr r3, [fp, #-12] ldr r2, [fp, #-20] mul r3, r2, r3 str r3, [fp, #-12] ldr r3, [fp, #-8] add r3, r3, #1 str r3, [fp, #-8] .L2: ldr r2, [fp, #-12] ldr r3, [fp, #-16] cmp r2, r3 bgt .L5 ldr r3, [fp, #-8] cmp r3, #99 ble .L6 .L5: mov r3, #0 .L4: mov r0, r3 add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem9/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -24[rbp], rdi mov DWORD PTR -28[rbp], esi mov QWORD PTR -40[rbp], rdx mov DWORD PTR -12[rbp], 0 mov DWORD PTR -8[rbp], 1 mov DWORD PTR -4[rbp], 0 jmp .L2 .L3: mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov eax, DWORD PTR [rax] add DWORD PTR -12[rbp], eax mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov eax, DWORD PTR [rax] mov edx, DWORD PTR -8[rbp] imul eax, edx mov DWORD PTR -8[rbp], eax add DWORD PTR -4[rbp], 1 .L2: mov eax, DWORD PTR -4[rbp] cmp eax, DWORD PTR -28[rbp] jl .L3 mov rax, QWORD PTR -40[rbp] mov edx, DWORD PTR -12[rbp] mov DWORD PTR [rax], edx mov rax, QWORD PTR -40[rbp] lea rdx, 4[rax] mov eax, DWORD PTR -8[rbp] mov DWORD PTR [rdx], eax nop pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 32 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #36 str r0, [fp, #-24] str r1, [fp, #-28] str r2, [fp, #-32] mov r3, #0 str r3, [fp, #-16] mov r3, #1 str r3, [fp, #-12] mov r3, #0 str r3, [fp, #-8] b .L2 .L3: ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r3, [r3] ldr r2, [fp, #-16] add r3, r2, r3 str r3, [fp, #-16] ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-12] mul r3, r2, r3 str r3, [fp, #-12] ldr r3, [fp, #-8] add r3, r3, #1 str r3, [fp, #-8] .L2: ldr r2, [fp, #-8] ldr r3, [fp, #-28] cmp r2, r3 blt .L3 ldr r3, [fp, #-32] ldr r2, [fp, #-16] str r2, [r3] ldr r3, [fp, #-32] add r3, r3, #4 ldr r2, [fp, #-12] str r2, [r3] nop add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem64/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 448 mov DWORD PTR -436[rbp], edi mov rax, QWORD PTR fs:40 mov QWORD PTR -8[rbp], rax xor eax, eax lea rdx, -416[rbp] mov eax, 0 mov ecx, 50 mov rdi, rdx rep stosq mov DWORD PTR -412[rbp], 0 mov DWORD PTR -408[rbp], 1 mov DWORD PTR -420[rbp], 3 jmp .L2 .L3: mov eax, DWORD PTR -420[rbp] sub eax, 1 cdqe mov edx, DWORD PTR -416[rbp+rax*4] mov eax, DWORD PTR -420[rbp] sub eax, 2 cdqe mov eax, DWORD PTR -416[rbp+rax*4] add edx, eax mov eax, DWORD PTR -420[rbp] sub eax, 3 cdqe mov eax, DWORD PTR -416[rbp+rax*4] add edx, eax mov eax, DWORD PTR -420[rbp] cdqe mov DWORD PTR -416[rbp+rax*4], edx add DWORD PTR -420[rbp], 1 .L2: mov eax, DWORD PTR -420[rbp] cmp eax, DWORD PTR -436[rbp] jle .L3 mov eax, DWORD PTR -436[rbp] cdqe mov eax, DWORD PTR -416[rbp+rax*4] mov rsi, QWORD PTR -8[rbp] xor rsi, QWORD PTR fs:40 je .L5 call __stack_chk_fail@PLT .L5: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .section .rodata .align 2 .LC0: .word __stack_chk_guard .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 416 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #416 str r0, [fp, #-416] ldr r3, .L6 ldr r3, [r3] str r3, [fp, #-8] mov r3,#0 sub r3, fp, #408 mov r2, #400 mov r1, #0 mov r0, r3 bl memset mov r3, #0 str r3, [fp, #-404] mov r3, #1 str r3, [fp, #-400] mov r3, #3 str r3, [fp, #-412] b .L2 .L3: ldr r3, [fp, #-412] sub r3, r3, #1 lsl r3, r3, #2 sub r2, fp, #4 add r3, r2, r3 ldr r2, [r3, #-404] ldr r3, [fp, #-412] sub r3, r3, #2 lsl r3, r3, #2 sub r1, fp, #4 add r3, r1, r3 ldr r3, [r3, #-404] add r2, r2, r3 ldr r3, [fp, #-412] sub r3, r3, #3 lsl r3, r3, #2 sub r1, fp, #4 add r3, r1, r3 ldr r3, [r3, #-404] add r2, r2, r3 ldr r3, [fp, #-412] lsl r3, r3, #2 sub r1, fp, #4 add r3, r1, r3 str r2, [r3, #-404] ldr r3, [fp, #-412] add r3, r3, #1 str r3, [fp, #-412] .L2: ldr r2, [fp, #-412] ldr r3, [fp, #-416] cmp r2, r3 ble .L3 ldr r3, [fp, #-416] lsl r3, r3, #2 sub r2, fp, #4 add r3, r2, r3 ldr r3, [r3, #-404] ldr r2, .L6 ldr r1, [r2] ldr r2, [fp, #-8] eors r1, r2, r1 mov r2, #0 beq .L5 bl __stack_chk_fail .L5: mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .L7: .align 2 .L6: .word .LC0 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem123/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -24[rbp], rdi mov DWORD PTR -28[rbp], esi mov DWORD PTR -8[rbp], 0 mov DWORD PTR -4[rbp], 0 jmp .L2 .L4: mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov eax, DWORD PTR [rax] cmp eax, -99 jl .L3 mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov eax, DWORD PTR [rax] cmp eax, 99 jg .L3 mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov eax, DWORD PTR [rax] add DWORD PTR -8[rbp], eax .L3: add DWORD PTR -4[rbp], 1 .L2: mov eax, DWORD PTR -4[rbp] cmp eax, DWORD PTR -28[rbp] jl .L4 mov eax, DWORD PTR -8[rbp] pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 16 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #20 str r0, [fp, #-16] str r1, [fp, #-20] mov r3, #0 str r3, [fp, #-12] mov r3, #0 str r3, [fp, #-8] b .L2 .L4: ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-16] add r3, r2, r3 ldr r3, [r3] cmn r3, #99 blt .L3 ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-16] add r3, r2, r3 ldr r3, [r3] cmp r3, #99 bgt .L3 ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-16] add r3, r2, r3 ldr r3, [r3] ldr r2, [fp, #-12] add r3, r2, r3 str r3, [fp, #-12] .L3: ldr r3, [fp, #-8] add r3, r3, #1 str r3, [fp, #-8] .L2: ldr r2, [fp, #-8] ldr r3, [fp, #-20] cmp r2, r3 blt .L4 ldr r3, [fp, #-12] mov r0, r3 add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem161/code.c
.file "code.c" .intel_syntax noprefix .text .section .rodata .LC0: .string "**" .LC1: .string "*" .LC2: .string "//" .LC3: .string "+" .LC4: .string "-" .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 80 mov QWORD PTR -56[rbp], rdi mov QWORD PTR -64[rbp], rsi mov DWORD PTR -68[rbp], edx mov DWORD PTR -72[rbp], ecx mov eax, DWORD PTR -72[rbp] cdqe sal rax, 2 mov rdi, rax call malloc@PLT mov QWORD PTR -16[rbp], rax mov eax, DWORD PTR -72[rbp] cdqe sal rax, 2 mov rdi, rax call malloc@PLT mov QWORD PTR -8[rbp], rax mov DWORD PTR -36[rbp], 0 jmp .L2 .L3: mov eax, DWORD PTR -36[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -64[rbp] add rax, rdx mov edx, DWORD PTR -36[rbp] movsx rdx, edx lea rcx, 0[0+rdx*4] mov rdx, QWORD PTR -16[rbp] add rdx, rcx mov eax, DWORD PTR [rax] mov DWORD PTR [rdx], eax mov eax, DWORD PTR -36[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rdx, rax mov eax, DWORD PTR -36[rbp] mov DWORD PTR [rdx], eax add DWORD PTR -36[rbp], 1 .L2: mov eax, DWORD PTR -36[rbp] cmp eax, DWORD PTR -72[rbp] jl .L3 mov DWORD PTR -32[rbp], 0 jmp .L4 .L10: mov eax, DWORD PTR -32[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -56[rbp] add rax, rdx mov rax, QWORD PTR [rax] lea rsi, .LC0[rip] mov rdi, rax call strcmp@PLT test eax, eax jne .L5 jmp .L6 .L7: mov eax, DWORD PTR -32[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov eax, DWORD PTR [rax] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov edx, DWORD PTR -32[rbp] movsx rdx, edx lea rcx, 0[0+rdx*4] mov rdx, QWORD PTR -8[rbp] add rdx, rcx mov eax, DWORD PTR [rax] mov DWORD PTR [rdx], eax .L6: mov eax, DWORD PTR -32[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov eax, DWORD PTR [rax] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -32[rbp] cdqe lea rcx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rcx mov eax, DWORD PTR [rax] cmp edx, eax jne .L7 jmp .L8 .L9: mov eax, DWORD PTR -32[rbp] cdqe add rax, 1 lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov eax, DWORD PTR [rax] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov edx, DWORD PTR -32[rbp] movsx rdx, edx add rdx, 1 lea rcx, 0[0+rdx*4] mov rdx, QWORD PTR -8[rbp] add rdx, rcx mov eax, DWORD PTR [rax] mov DWORD PTR [rdx], eax .L8: mov eax, DWORD PTR -32[rbp] cdqe add rax, 1 lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov eax, DWORD PTR [rax] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -32[rbp] cdqe add rax, 1 lea rcx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rcx mov eax, DWORD PTR [rax] cmp edx, eax jne .L9 mov eax, DWORD PTR -32[rbp] cdqe add rax, 1 lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov eax, DWORD PTR [rax] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -16[rbp] add rax, rdx mov eax, DWORD PTR [rax] cvtsi2sd xmm1, eax mov eax, DWORD PTR -32[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov eax, DWORD PTR [rax] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -16[rbp] add rax, rdx mov eax, DWORD PTR [rax] cvtsi2sd xmm0, eax call pow@PLT mov eax, DWORD PTR -32[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov eax, DWORD PTR [rax] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -16[rbp] add rdx, rax cvttsd2si eax, xmm0 mov DWORD PTR [rdx], eax mov eax, DWORD PTR -32[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov edx, DWORD PTR -32[rbp] movsx rdx, edx add rdx, 1 lea rcx, 0[0+rdx*4] mov rdx, QWORD PTR -8[rbp] add rdx, rcx mov eax, DWORD PTR [rax] mov DWORD PTR [rdx], eax .L5: add DWORD PTR -32[rbp], 1 .L4: mov eax, DWORD PTR -32[rbp] cmp eax, DWORD PTR -68[rbp] jl .L10 mov DWORD PTR -28[rbp], 0 jmp .L11 .L20: mov eax, DWORD PTR -28[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -56[rbp] add rax, rdx mov rax, QWORD PTR [rax] lea rsi, .LC1[rip] mov rdi, rax call strcmp@PLT test eax, eax je .L14 mov eax, DWORD PTR -28[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -56[rbp] add rax, rdx mov rax, QWORD PTR [rax] lea rsi, .LC2[rip] mov rdi, rax call strcmp@PLT test eax, eax jne .L13 jmp .L14 .L15: mov eax, DWORD PTR -28[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov eax, DWORD PTR [rax] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov edx, DWORD PTR -28[rbp] movsx rdx, edx lea rcx, 0[0+rdx*4] mov rdx, QWORD PTR -8[rbp] add rdx, rcx mov eax, DWORD PTR [rax] mov DWORD PTR [rdx], eax .L14: mov eax, DWORD PTR -28[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov eax, DWORD PTR [rax] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -28[rbp] cdqe lea rcx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rcx mov eax, DWORD PTR [rax] cmp edx, eax jne .L15 jmp .L16 .L17: mov eax, DWORD PTR -28[rbp] cdqe add rax, 1 lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov eax, DWORD PTR [rax] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov edx, DWORD PTR -28[rbp] movsx rdx, edx add rdx, 1 lea rcx, 0[0+rdx*4] mov rdx, QWORD PTR -8[rbp] add rdx, rcx mov eax, DWORD PTR [rax] mov DWORD PTR [rdx], eax .L16: mov eax, DWORD PTR -28[rbp] cdqe add rax, 1 lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov eax, DWORD PTR [rax] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -28[rbp] cdqe add rax, 1 lea rcx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rcx mov eax, DWORD PTR [rax] cmp edx, eax jne .L17 mov eax, DWORD PTR -28[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -56[rbp] add rax, rdx mov rax, QWORD PTR [rax] lea rsi, .LC1[rip] mov rdi, rax call strcmp@PLT test eax, eax jne .L18 mov eax, DWORD PTR -28[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov eax, DWORD PTR [rax] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -16[rbp] add rax, rdx mov ecx, DWORD PTR [rax] mov eax, DWORD PTR -28[rbp] cdqe add rax, 1 lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov eax, DWORD PTR [rax] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -16[rbp] add rax, rdx mov eax, DWORD PTR [rax] mov edx, DWORD PTR -28[rbp] movsx rdx, edx lea rsi, 0[0+rdx*4] mov rdx, QWORD PTR -8[rbp] add rdx, rsi mov edx, DWORD PTR [rdx] movsx rdx, edx lea rsi, 0[0+rdx*4] mov rdx, QWORD PTR -16[rbp] add rdx, rsi imul eax, ecx mov DWORD PTR [rdx], eax jmp .L19 .L18: mov eax, DWORD PTR -28[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov eax, DWORD PTR [rax] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -16[rbp] add rax, rdx mov eax, DWORD PTR [rax] mov edx, DWORD PTR -28[rbp] movsx rdx, edx add rdx, 1 lea rcx, 0[0+rdx*4] mov rdx, QWORD PTR -8[rbp] add rdx, rcx mov edx, DWORD PTR [rdx] movsx rdx, edx lea rcx, 0[0+rdx*4] mov rdx, QWORD PTR -16[rbp] add rdx, rcx mov edi, DWORD PTR [rdx] mov ecx, DWORD PTR -28[rbp] movsx rcx, ecx lea rsi, 0[0+rcx*4] mov rcx, QWORD PTR -8[rbp] add rcx, rsi mov ecx, DWORD PTR [rcx] movsx rcx, ecx lea rsi, 0[0+rcx*4] mov rcx, QWORD PTR -16[rbp] add rcx, rsi cdq idiv edi mov DWORD PTR [rcx], eax .L19: mov eax, DWORD PTR -28[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov edx, DWORD PTR -28[rbp] movsx rdx, edx add rdx, 1 lea rcx, 0[0+rdx*4] mov rdx, QWORD PTR -8[rbp] add rdx, rcx mov eax, DWORD PTR [rax] mov DWORD PTR [rdx], eax .L13: add DWORD PTR -28[rbp], 1 .L11: mov eax, DWORD PTR -28[rbp] cmp eax, DWORD PTR -68[rbp] jl .L20 mov DWORD PTR -24[rbp], 0 jmp .L21 .L30: mov eax, DWORD PTR -24[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -56[rbp] add rax, rdx mov rax, QWORD PTR [rax] lea rsi, .LC3[rip] mov rdi, rax call strcmp@PLT test eax, eax je .L24 mov eax, DWORD PTR -24[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -56[rbp] add rax, rdx mov rax, QWORD PTR [rax] lea rsi, .LC4[rip] mov rdi, rax call strcmp@PLT test eax, eax jne .L23 jmp .L24 .L25: mov eax, DWORD PTR -24[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov eax, DWORD PTR [rax] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov edx, DWORD PTR -24[rbp] movsx rdx, edx lea rcx, 0[0+rdx*4] mov rdx, QWORD PTR -8[rbp] add rdx, rcx mov eax, DWORD PTR [rax] mov DWORD PTR [rdx], eax .L24: mov eax, DWORD PTR -24[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov eax, DWORD PTR [rax] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -24[rbp] cdqe lea rcx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rcx mov eax, DWORD PTR [rax] cmp edx, eax jne .L25 jmp .L26 .L27: mov eax, DWORD PTR -24[rbp] cdqe add rax, 1 lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov eax, DWORD PTR [rax] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov edx, DWORD PTR -24[rbp] movsx rdx, edx add rdx, 1 lea rcx, 0[0+rdx*4] mov rdx, QWORD PTR -8[rbp] add rdx, rcx mov eax, DWORD PTR [rax] mov DWORD PTR [rdx], eax .L26: mov eax, DWORD PTR -24[rbp] cdqe add rax, 1 lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov eax, DWORD PTR [rax] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -24[rbp] cdqe add rax, 1 lea rcx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rcx mov eax, DWORD PTR [rax] cmp edx, eax jne .L27 mov eax, DWORD PTR -24[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -56[rbp] add rax, rdx mov rax, QWORD PTR [rax] lea rsi, .LC3[rip] mov rdi, rax call strcmp@PLT test eax, eax jne .L28 mov eax, DWORD PTR -24[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov eax, DWORD PTR [rax] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -16[rbp] add rax, rdx mov ecx, DWORD PTR [rax] mov eax, DWORD PTR -24[rbp] cdqe add rax, 1 lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov eax, DWORD PTR [rax] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -16[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -24[rbp] cdqe lea rsi, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rsi mov eax, DWORD PTR [rax] cdqe lea rsi, 0[0+rax*4] mov rax, QWORD PTR -16[rbp] add rax, rsi add edx, ecx mov DWORD PTR [rax], edx jmp .L29 .L28: mov eax, DWORD PTR -24[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov eax, DWORD PTR [rax] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -16[rbp] add rax, rdx mov ecx, DWORD PTR [rax] mov eax, DWORD PTR -24[rbp] cdqe add rax, 1 lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov eax, DWORD PTR [rax] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -16[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -24[rbp] cdqe lea rsi, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rsi mov eax, DWORD PTR [rax] cdqe lea rsi, 0[0+rax*4] mov rax, QWORD PTR -16[rbp] add rax, rsi sub ecx, edx mov edx, ecx mov DWORD PTR [rax], edx .L29: mov eax, DWORD PTR -24[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov edx, DWORD PTR -24[rbp] movsx rdx, edx add rdx, 1 lea rcx, 0[0+rdx*4] mov rdx, QWORD PTR -8[rbp] add rdx, rcx mov eax, DWORD PTR [rax] mov DWORD PTR [rdx], eax .L23: add DWORD PTR -24[rbp], 1 .L21: mov eax, DWORD PTR -24[rbp] cmp eax, DWORD PTR -68[rbp] jl .L30 mov rax, QWORD PTR -16[rbp] mov eax, DWORD PTR [rax] mov DWORD PTR -20[rbp], eax mov rax, QWORD PTR -16[rbp] mov rdi, rax call free@PLT mov rax, QWORD PTR -8[rbp] mov rdi, rax call free@PLT mov eax, DWORD PTR -20[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .section .rodata .align 2 .LC0: .ascii "**\000" .global __aeabi_i2d .global __aeabi_d2iz .align 2 .LC1: .ascii "*\000" .align 2 .LC2: .ascii "//\000" .global __aeabi_idiv .align 2 .LC3: .ascii "+\000" .align 2 .LC4: .ascii "-\000" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 48 @ frame_needed = 1, uses_anonymous_args = 0 push {r4, r5, fp, lr} add fp, sp, #12 sub sp, sp, #48 str r0, [fp, #-48] str r1, [fp, #-52] str r2, [fp, #-56] str r3, [fp, #-60] ldr r3, [fp, #-60] lsl r3, r3, #2 mov r0, r3 bl malloc mov r3, r0 str r3, [fp, #-24] ldr r3, [fp, #-60] lsl r3, r3, #2 mov r0, r3 bl malloc mov r3, r0 str r3, [fp, #-20] mov r3, #0 str r3, [fp, #-40] b .L2 .L3: ldr r3, [fp, #-40] lsl r3, r3, #2 ldr r2, [fp, #-52] add r2, r2, r3 ldr r3, [fp, #-40] lsl r3, r3, #2 ldr r1, [fp, #-24] add r3, r1, r3 ldr r2, [r2] str r2, [r3] ldr r3, [fp, #-40] lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r2, [fp, #-40] str r2, [r3] ldr r3, [fp, #-40] add r3, r3, #1 str r3, [fp, #-40] .L2: ldr r2, [fp, #-40] ldr r3, [fp, #-60] cmp r2, r3 blt .L3 mov r3, #0 str r3, [fp, #-36] b .L4 .L10: ldr r3, [fp, #-36] lsl r3, r3, #2 ldr r2, [fp, #-48] add r3, r2, r3 ldr r3, [r3] ldr r1, .L32 mov r0, r3 bl strcmp mov r3, r0 cmp r3, #0 bne .L5 b .L6 .L7: ldr r3, [fp, #-36] lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r3, [r3] lsl r3, r3, #2 ldr r2, [fp, #-20] add r2, r2, r3 ldr r3, [fp, #-36] lsl r3, r3, #2 ldr r1, [fp, #-20] add r3, r1, r3 ldr r2, [r2] str r2, [r3] .L6: ldr r3, [fp, #-36] lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r3, [r3] lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-36] lsl r3, r3, #2 ldr r1, [fp, #-20] add r3, r1, r3 ldr r3, [r3] cmp r2, r3 bne .L7 b .L8 .L9: ldr r3, [fp, #-36] add r3, r3, #1 lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r3, [r3] lsl r3, r3, #2 ldr r2, [fp, #-20] add r2, r2, r3 ldr r3, [fp, #-36] add r3, r3, #1 lsl r3, r3, #2 ldr r1, [fp, #-20] add r3, r1, r3 ldr r2, [r2] str r2, [r3] .L8: ldr r3, [fp, #-36] add r3, r3, #1 lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r3, [r3] lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-36] add r3, r3, #1 lsl r3, r3, #2 ldr r1, [fp, #-20] add r3, r1, r3 ldr r3, [r3] cmp r2, r3 bne .L9 ldr r3, [fp, #-36] lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r3, [r3] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r3, [r3] mov r0, r3 bl __aeabi_i2d mov r4, r0 mov r5, r1 ldr r3, [fp, #-36] add r3, r3, #1 lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r3, [r3] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r3, [r3] mov r0, r3 bl __aeabi_i2d mov r2, r0 mov r3, r1 mov r0, r4 mov r1, r5 bl pow mov r2, r0 mov r3, r1 ldr r1, [fp, #-36] lsl r1, r1, #2 ldr r0, [fp, #-20] add r1, r0, r1 ldr r1, [r1] lsl r1, r1, #2 ldr r0, [fp, #-24] add r4, r0, r1 mov r0, r2 mov r1, r3 bl __aeabi_d2iz mov r3, r0 str r3, [r4] ldr r3, [fp, #-36] lsl r3, r3, #2 ldr r2, [fp, #-20] add r2, r2, r3 ldr r3, [fp, #-36] add r3, r3, #1 lsl r3, r3, #2 ldr r1, [fp, #-20] add r3, r1, r3 ldr r2, [r2] str r2, [r3] .L5: ldr r3, [fp, #-36] add r3, r3, #1 str r3, [fp, #-36] .L4: ldr r2, [fp, #-36] ldr r3, [fp, #-56] cmp r2, r3 blt .L10 mov r3, #0 str r3, [fp, #-32] b .L11 .L20: ldr r3, [fp, #-32] lsl r3, r3, #2 ldr r2, [fp, #-48] add r3, r2, r3 ldr r3, [r3] ldr r1, .L32+4 mov r0, r3 bl strcmp mov r3, r0 cmp r3, #0 beq .L14 ldr r3, [fp, #-32] lsl r3, r3, #2 ldr r2, [fp, #-48] add r3, r2, r3 ldr r3, [r3] ldr r1, .L32+8 mov r0, r3 bl strcmp mov r3, r0 cmp r3, #0 bne .L13 b .L14 .L15: ldr r3, [fp, #-32] lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r3, [r3] lsl r3, r3, #2 ldr r2, [fp, #-20] add r2, r2, r3 ldr r3, [fp, #-32] lsl r3, r3, #2 ldr r1, [fp, #-20] add r3, r1, r3 ldr r2, [r2] str r2, [r3] .L14: ldr r3, [fp, #-32] lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r3, [r3] lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-32] lsl r3, r3, #2 ldr r1, [fp, #-20] add r3, r1, r3 ldr r3, [r3] cmp r2, r3 bne .L15 b .L16 .L17: ldr r3, [fp, #-32] add r3, r3, #1 lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r3, [r3] lsl r3, r3, #2 ldr r2, [fp, #-20] add r2, r2, r3 ldr r3, [fp, #-32] add r3, r3, #1 lsl r3, r3, #2 ldr r1, [fp, #-20] add r3, r1, r3 ldr r2, [r2] str r2, [r3] .L16: ldr r3, [fp, #-32] add r3, r3, #1 lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r3, [r3] lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-32] add r3, r3, #1 lsl r3, r3, #2 ldr r1, [fp, #-20] add r3, r1, r3 ldr r3, [r3] cmp r2, r3 bne .L17 ldr r3, [fp, #-32] lsl r3, r3, #2 ldr r2, [fp, #-48] add r3, r2, r3 ldr r3, [r3] ldr r1, .L32+4 mov r0, r3 bl strcmp mov r3, r0 cmp r3, #0 bne .L18 ldr r3, [fp, #-32] lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r3, [r3] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-32] add r3, r3, #1 lsl r3, r3, #2 ldr r1, [fp, #-20] add r3, r1, r3 ldr r3, [r3] lsl r3, r3, #2 ldr r1, [fp, #-24] add r3, r1, r3 ldr r1, [r3] ldr r3, [fp, #-32] lsl r3, r3, #2 ldr r0, [fp, #-20] add r3, r0, r3 ldr r3, [r3] lsl r3, r3, #2 ldr r0, [fp, #-24] add r3, r0, r3 mul r2, r1, r2 str r2, [r3] b .L19 .L18: ldr r3, [fp, #-32] lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r3, [r3] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r0, [r3] ldr r3, [fp, #-32] add r3, r3, #1 lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r3, [r3] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r1, [r3] ldr r3, [fp, #-32] lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r3, [r3] lsl r3, r3, #2 ldr r2, [fp, #-24] add r4, r2, r3 bl __aeabi_idiv mov r3, r0 str r3, [r4] .L19: ldr r3, [fp, #-32] lsl r3, r3, #2 ldr r2, [fp, #-20] add r2, r2, r3 ldr r3, [fp, #-32] add r3, r3, #1 lsl r3, r3, #2 ldr r1, [fp, #-20] add r3, r1, r3 ldr r2, [r2] str r2, [r3] .L13: ldr r3, [fp, #-32] add r3, r3, #1 str r3, [fp, #-32] .L11: ldr r2, [fp, #-32] ldr r3, [fp, #-56] cmp r2, r3 blt .L20 mov r3, #0 str r3, [fp, #-28] b .L21 .L30: ldr r3, [fp, #-28] lsl r3, r3, #2 ldr r2, [fp, #-48] add r3, r2, r3 ldr r3, [r3] ldr r1, .L32+12 mov r0, r3 bl strcmp mov r3, r0 cmp r3, #0 beq .L24 ldr r3, [fp, #-28] lsl r3, r3, #2 ldr r2, [fp, #-48] add r3, r2, r3 ldr r3, [r3] ldr r1, .L32+16 mov r0, r3 bl strcmp mov r3, r0 cmp r3, #0 bne .L23 b .L24 .L25: ldr r3, [fp, #-28] lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r3, [r3] lsl r3, r3, #2 ldr r2, [fp, #-20] add r2, r2, r3 ldr r3, [fp, #-28] lsl r3, r3, #2 ldr r1, [fp, #-20] add r3, r1, r3 ldr r2, [r2] str r2, [r3] .L24: ldr r3, [fp, #-28] lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r3, [r3] lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-28] lsl r3, r3, #2 ldr r1, [fp, #-20] add r3, r1, r3 ldr r3, [r3] cmp r2, r3 bne .L25 b .L26 .L27: ldr r3, [fp, #-28] add r3, r3, #1 lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r3, [r3] lsl r3, r3, #2 ldr r2, [fp, #-20] add r2, r2, r3 ldr r3, [fp, #-28] add r3, r3, #1 lsl r3, r3, #2 ldr r1, [fp, #-20] add r3, r1, r3 ldr r2, [r2] str r2, [r3] .L26: ldr r3, [fp, #-28] add r3, r3, #1 lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r3, [r3] lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-28] add r3, r3, #1 lsl r3, r3, #2 ldr r1, [fp, #-20] add r3, r1, r3 ldr r3, [r3] cmp r2, r3 bne .L27 ldr r3, [fp, #-28] lsl r3, r3, #2 ldr r2, [fp, #-48] add r3, r2, r3 ldr r3, [r3] ldr r1, .L32+12 mov r0, r3 bl strcmp mov r3, r0 cmp r3, #0 bne .L28 ldr r3, [fp, #-28] lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r3, [r3] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r1, [r3] ldr r3, [fp, #-28] add r3, r3, #1 lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r3, [r3] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-28] lsl r3, r3, #2 ldr r0, [fp, #-20] add r3, r0, r3 ldr r3, [r3] lsl r3, r3, #2 ldr r0, [fp, #-24] add r3, r0, r3 add r2, r1, r2 str r2, [r3] b .L29 .L28: ldr r3, [fp, #-28] lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r3, [r3] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r1, [r3] ldr r3, [fp, #-28] add r3, r3, #1 lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r3, [r3] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-28] lsl r3, r3, #2 ldr r0, [fp, #-20] add r3, r0, r3 ldr r3, [r3] lsl r3, r3, #2 ldr r0, [fp, #-24] add r3, r0, r3 sub r2, r1, r2 str r2, [r3] .L29: ldr r3, [fp, #-28] lsl r3, r3, #2 ldr r2, [fp, #-20] add r2, r2, r3 ldr r3, [fp, #-28] add r3, r3, #1 lsl r3, r3, #2 ldr r1, [fp, #-20] add r3, r1, r3 ldr r2, [r2] str r2, [r3] .L23: ldr r3, [fp, #-28] add r3, r3, #1 str r3, [fp, #-28] .L21: ldr r2, [fp, #-28] ldr r3, [fp, #-56] cmp r2, r3 blt .L30 ldr r3, [fp, #-24] ldr r3, [r3] str r3, [fp, #-16] ldr r0, [fp, #-24] bl free ldr r0, [fp, #-20] bl free ldr r3, [fp, #-16] mov r0, r3 sub sp, fp, #12 @ sp needed pop {r4, r5, fp, pc} .L33: .align 2 .L32: .word .LC0 .word .LC1 .word .LC2 .word .LC3 .word .LC4 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem114/code.c
.file "code.c" .intel_syntax noprefix .text .section .rodata .align 8 .LC0: .string "the number of odd elements %d in the string %d of the %d input." .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 push rbx sub rsp, 56 .cfi_offset 3, -24 mov QWORD PTR -56[rbp], rdi mov DWORD PTR -60[rbp], esi mov eax, DWORD PTR -60[rbp] cdqe sal rax, 3 mov rdi, rax call malloc@PLT mov QWORD PTR -24[rbp], rax mov DWORD PTR -36[rbp], 0 jmp .L2 .L6: mov DWORD PTR -32[rbp], 0 mov DWORD PTR -28[rbp], 0 jmp .L3 .L5: mov eax, DWORD PTR -36[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -56[rbp] add rax, rdx mov rdx, QWORD PTR [rax] mov eax, DWORD PTR -28[rbp] cdqe add rax, rdx movzx eax, BYTE PTR [rax] cmp al, 47 jle .L4 mov eax, DWORD PTR -36[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -56[rbp] add rax, rdx mov rdx, QWORD PTR [rax] mov eax, DWORD PTR -28[rbp] cdqe add rax, rdx movzx eax, BYTE PTR [rax] cmp al, 57 jg .L4 mov eax, DWORD PTR -36[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -56[rbp] add rax, rdx mov rdx, QWORD PTR [rax] mov eax, DWORD PTR -28[rbp] cdqe add rax, rdx movzx eax, BYTE PTR [rax] movsx eax, al lea edx, -48[rax] mov eax, edx sar eax, 31 shr eax, 31 add edx, eax and edx, 1 sub edx, eax mov eax, edx cmp eax, 1 jne .L4 add DWORD PTR -32[rbp], 1 .L4: add DWORD PTR -28[rbp], 1 .L3: mov eax, DWORD PTR -36[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -56[rbp] add rax, rdx mov rdx, QWORD PTR [rax] mov eax, DWORD PTR -28[rbp] cdqe add rax, rdx movzx eax, BYTE PTR [rax] test al, al jne .L5 mov eax, DWORD PTR -36[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -24[rbp] lea rbx, [rdx+rax] mov edi, 100 call malloc@PLT mov QWORD PTR [rbx], rax mov eax, DWORD PTR -36[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -24[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov esi, DWORD PTR -32[rbp] mov ecx, DWORD PTR -32[rbp] mov edx, DWORD PTR -32[rbp] mov r8d, esi lea rsi, .LC0[rip] mov rdi, rax mov eax, 0 call sprintf@PLT add DWORD PTR -36[rbp], 1 .L2: mov eax, DWORD PTR -36[rbp] cmp eax, DWORD PTR -60[rbp] jl .L6 mov rax, QWORD PTR -24[rbp] add rsp, 56 pop rbx pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .section .rodata .align 2 .LC0: .ascii "the number of odd elements %d in the string %d of t" .ascii "he %d input.\000" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 24 @ frame_needed = 1, uses_anonymous_args = 0 push {r4, fp, lr} add fp, sp, #8 sub sp, sp, #36 str r0, [fp, #-32] str r1, [fp, #-36] ldr r3, [fp, #-36] lsl r3, r3, #2 mov r0, r3 bl malloc mov r3, r0 str r3, [fp, #-16] mov r3, #0 str r3, [fp, #-28] b .L2 .L6: mov r3, #0 str r3, [fp, #-24] mov r3, #0 str r3, [fp, #-20] b .L3 .L5: ldr r3, [fp, #-28] lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-20] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #47 bls .L4 ldr r3, [fp, #-28] lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-20] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #57 bhi .L4 ldr r3, [fp, #-28] lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-20] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 sub r3, r3, #48 cmp r3, #0 and r3, r3, #1 rsblt r3, r3, #0 cmp r3, #1 bne .L4 ldr r3, [fp, #-24] add r3, r3, #1 str r3, [fp, #-24] .L4: ldr r3, [fp, #-20] add r3, r3, #1 str r3, [fp, #-20] .L3: ldr r3, [fp, #-28] lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-20] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #0 bne .L5 ldr r3, [fp, #-28] lsl r3, r3, #2 ldr r2, [fp, #-16] add r4, r2, r3 mov r0, #100 bl malloc mov r3, r0 str r3, [r4] ldr r3, [fp, #-28] lsl r3, r3, #2 ldr r2, [fp, #-16] add r3, r2, r3 ldr r0, [r3] ldr r3, [fp, #-24] str r3, [sp] ldr r3, [fp, #-24] ldr r2, [fp, #-24] ldr r1, .L8 bl sprintf ldr r3, [fp, #-28] add r3, r3, #1 str r3, [fp, #-28] .L2: ldr r2, [fp, #-28] ldr r3, [fp, #-36] cmp r2, r3 blt .L6 ldr r3, [fp, #-16] mov r0, r3 sub sp, fp, #8 @ sp needed pop {r4, fp, pc} .L9: .align 2 .L8: .word .LC0 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem105/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 64 mov QWORD PTR -40[rbp], rdi mov DWORD PTR -44[rbp], esi mov QWORD PTR -56[rbp], rdx mov QWORD PTR -64[rbp], rcx mov eax, DWORD PTR -44[rbp] cdqe sal rax, 2 mov rdi, rax call malloc@PLT mov rdx, rax mov rax, QWORD PTR -56[rbp] mov QWORD PTR [rax], rdx mov rax, QWORD PTR -64[rbp] mov DWORD PTR [rax], 0 mov DWORD PTR -20[rbp], 0 jmp .L2 .L9: mov eax, DWORD PTR -20[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rdx mov eax, DWORD PTR [rax] mov DWORD PTR -16[rbp], eax mov BYTE PTR -21[rbp], 0 cmp DWORD PTR -16[rbp], 0 jne .L4 mov BYTE PTR -21[rbp], 1 jmp .L4 .L7: mov eax, DWORD PTR -16[rbp] and eax, 1 test eax, eax jne .L5 mov BYTE PTR -21[rbp], 1 .L5: mov eax, DWORD PTR -16[rbp] movsx rdx, eax imul rdx, rdx, 1717986919 shr rdx, 32 sar edx, 2 sar eax, 31 sub edx, eax mov eax, edx mov DWORD PTR -16[rbp], eax .L4: cmp DWORD PTR -16[rbp], 0 jle .L6 movzx eax, BYTE PTR -21[rbp] xor eax, 1 test al, al jne .L7 .L6: movzx eax, BYTE PTR -21[rbp] xor eax, 1 test al, al je .L8 mov eax, DWORD PTR -20[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] lea rcx, [rdx+rax] mov rax, QWORD PTR -56[rbp] mov rdx, QWORD PTR [rax] mov rax, QWORD PTR -64[rbp] mov eax, DWORD PTR [rax] cdqe sal rax, 2 add rdx, rax mov eax, DWORD PTR [rcx] mov DWORD PTR [rdx], eax mov rax, QWORD PTR -64[rbp] mov eax, DWORD PTR [rax] lea edx, 1[rax] mov rax, QWORD PTR -64[rbp] mov DWORD PTR [rax], edx .L8: add DWORD PTR -20[rbp], 1 .L2: mov eax, DWORD PTR -20[rbp] cmp eax, DWORD PTR -44[rbp] jl .L9 mov DWORD PTR -12[rbp], 0 jmp .L10 .L14: mov DWORD PTR -8[rbp], 0 jmp .L11 .L13: mov rax, QWORD PTR -56[rbp] mov rax, QWORD PTR [rax] mov edx, DWORD PTR -8[rbp] movsx rdx, edx sal rdx, 2 add rax, rdx mov edx, DWORD PTR [rax] mov rax, QWORD PTR -56[rbp] mov rax, QWORD PTR [rax] mov ecx, DWORD PTR -8[rbp] movsx rcx, ecx add rcx, 1 sal rcx, 2 add rax, rcx mov eax, DWORD PTR [rax] cmp edx, eax jle .L12 mov rax, QWORD PTR -56[rbp] mov rax, QWORD PTR [rax] mov edx, DWORD PTR -8[rbp] movsx rdx, edx sal rdx, 2 add rax, rdx mov eax, DWORD PTR [rax] mov DWORD PTR -4[rbp], eax mov rax, QWORD PTR -56[rbp] mov rax, QWORD PTR [rax] mov edx, DWORD PTR -8[rbp] movsx rdx, edx add rdx, 1 sal rdx, 2 lea rcx, [rax+rdx] mov rax, QWORD PTR -56[rbp] mov rax, QWORD PTR [rax] mov edx, DWORD PTR -8[rbp] movsx rdx, edx sal rdx, 2 add rdx, rax mov eax, DWORD PTR [rcx] mov DWORD PTR [rdx], eax mov rax, QWORD PTR -56[rbp] mov rax, QWORD PTR [rax] mov edx, DWORD PTR -8[rbp] movsx rdx, edx add rdx, 1 sal rdx, 2 add rdx, rax mov eax, DWORD PTR -4[rbp] mov DWORD PTR [rdx], eax .L12: add DWORD PTR -8[rbp], 1 .L11: mov rax, QWORD PTR -64[rbp] mov eax, DWORD PTR [rax] sub eax, DWORD PTR -12[rbp] sub eax, 1 cmp DWORD PTR -8[rbp], eax jl .L13 add DWORD PTR -12[rbp], 1 .L10: mov rax, QWORD PTR -64[rbp] mov eax, DWORD PTR [rax] sub eax, 1 cmp DWORD PTR -12[rbp], eax jl .L14 nop nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 40 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #40 str r0, [fp, #-32] str r1, [fp, #-36] str r2, [fp, #-40] str r3, [fp, #-44] ldr r3, [fp, #-36] lsl r3, r3, #2 mov r0, r3 bl malloc mov r3, r0 mov r2, r3 ldr r3, [fp, #-40] str r2, [r3] ldr r3, [fp, #-44] mov r2, #0 str r2, [r3] mov r3, #0 str r3, [fp, #-24] b .L2 .L9: ldr r3, [fp, #-24] lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r3, [r3] str r3, [fp, #-20] mov r3, #0 strb r3, [fp, #-25] ldr r3, [fp, #-20] cmp r3, #0 bne .L4 mov r3, #1 strb r3, [fp, #-25] b .L4 .L7: ldr r3, [fp, #-20] and r3, r3, #1 cmp r3, #0 bne .L5 mov r3, #1 strb r3, [fp, #-25] .L5: ldr r3, [fp, #-20] ldr r2, .L15 smull r1, r2, r3, r2 asr r2, r2, #2 asr r3, r3, #31 sub r3, r2, r3 str r3, [fp, #-20] .L4: ldr r3, [fp, #-20] cmp r3, #0 ble .L6 ldrb r3, [fp, #-25] eor r3, r3, #1 and r3, r3, #255 cmp r3, #0 bne .L7 .L6: ldrb r3, [fp, #-25] eor r3, r3, #1 and r3, r3, #255 cmp r3, #0 beq .L8 ldr r3, [fp, #-24] lsl r3, r3, #2 ldr r2, [fp, #-32] add r2, r2, r3 ldr r3, [fp, #-40] ldr r1, [r3] ldr r3, [fp, #-44] ldr r3, [r3] lsl r3, r3, #2 add r3, r1, r3 ldr r2, [r2] str r2, [r3] ldr r3, [fp, #-44] ldr r3, [r3] add r2, r3, #1 ldr r3, [fp, #-44] str r2, [r3] .L8: ldr r3, [fp, #-24] add r3, r3, #1 str r3, [fp, #-24] .L2: ldr r2, [fp, #-24] ldr r3, [fp, #-36] cmp r2, r3 blt .L9 mov r3, #0 str r3, [fp, #-16] b .L10 .L14: mov r3, #0 str r3, [fp, #-12] b .L11 .L13: ldr r3, [fp, #-40] ldr r2, [r3] ldr r3, [fp, #-12] lsl r3, r3, #2 add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-40] ldr r1, [r3] ldr r3, [fp, #-12] add r3, r3, #1 lsl r3, r3, #2 add r3, r1, r3 ldr r3, [r3] cmp r2, r3 ble .L12 ldr r3, [fp, #-40] ldr r2, [r3] ldr r3, [fp, #-12] lsl r3, r3, #2 add r3, r2, r3 ldr r3, [r3] str r3, [fp, #-8] ldr r3, [fp, #-40] ldr r2, [r3] ldr r3, [fp, #-12] add r3, r3, #1 lsl r3, r3, #2 add r2, r2, r3 ldr r3, [fp, #-40] ldr r1, [r3] ldr r3, [fp, #-12] lsl r3, r3, #2 add r3, r1, r3 ldr r2, [r2] str r2, [r3] ldr r3, [fp, #-40] ldr r2, [r3] ldr r3, [fp, #-12] add r3, r3, #1 lsl r3, r3, #2 add r3, r2, r3 ldr r2, [fp, #-8] str r2, [r3] .L12: ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L11: ldr r3, [fp, #-44] ldr r2, [r3] ldr r3, [fp, #-16] sub r3, r2, r3 sub r3, r3, #1 ldr r2, [fp, #-12] cmp r2, r3 blt .L13 ldr r3, [fp, #-16] add r3, r3, #1 str r3, [fp, #-16] .L10: ldr r3, [fp, #-44] ldr r3, [r3] sub r3, r3, #1 ldr r2, [fp, #-16] cmp r2, r3 blt .L14 nop nop sub sp, fp, #4 @ sp needed pop {fp, pc} .L16: .align 2 .L15: .word 1717986919 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem113/code.c
.file "code.c" .intel_syntax noprefix .text .section .rodata .LC0: .string "True" .LC1: .string "False" .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 80 mov QWORD PTR -56[rbp], rdi mov QWORD PTR -64[rbp], rsi mov QWORD PTR -72[rbp], rdx mov QWORD PTR -80[rbp], rcx mov rax, QWORD PTR -56[rbp] mov rdi, rax call strlen@PLT mov DWORD PTR -24[rbp], eax mov eax, DWORD PTR -24[rbp] add eax, 1 cdqe mov rdi, rax call malloc@PLT mov QWORD PTR -8[rbp], rax mov DWORD PTR -36[rbp], 0 mov DWORD PTR -32[rbp], 0 jmp .L2 .L8: mov rax, QWORD PTR -64[rbp] mov QWORD PTR -16[rbp], rax mov BYTE PTR -38[rbp], 0 jmp .L3 .L6: mov eax, DWORD PTR -32[rbp] movsx rdx, eax mov rax, QWORD PTR -56[rbp] add rax, rdx movzx edx, BYTE PTR [rax] mov rax, QWORD PTR -16[rbp] movzx eax, BYTE PTR [rax] cmp dl, al jne .L4 mov BYTE PTR -38[rbp], 1 jmp .L5 .L4: add QWORD PTR -16[rbp], 1 .L3: mov rax, QWORD PTR -16[rbp] movzx eax, BYTE PTR [rax] test al, al jne .L6 .L5: movzx eax, BYTE PTR -38[rbp] xor eax, 1 test al, al je .L7 mov eax, DWORD PTR -32[rbp] movsx rdx, eax mov rax, QWORD PTR -56[rbp] lea rcx, [rdx+rax] mov eax, DWORD PTR -36[rbp] lea edx, 1[rax] mov DWORD PTR -36[rbp], edx movsx rdx, eax mov rax, QWORD PTR -8[rbp] add rdx, rax movzx eax, BYTE PTR [rcx] mov BYTE PTR [rdx], al .L7: add DWORD PTR -32[rbp], 1 .L2: mov eax, DWORD PTR -32[rbp] movsx rdx, eax mov rax, QWORD PTR -56[rbp] add rax, rdx movzx eax, BYTE PTR [rax] test al, al jne .L8 mov eax, DWORD PTR -36[rbp] movsx rdx, eax mov rax, QWORD PTR -8[rbp] add rax, rdx mov BYTE PTR [rax], 0 mov rax, QWORD PTR -8[rbp] mov rdi, rax call strlen@PLT mov DWORD PTR -20[rbp], eax mov BYTE PTR -37[rbp], 1 mov DWORD PTR -28[rbp], 0 jmp .L9 .L12: mov eax, DWORD PTR -28[rbp] movsx rdx, eax mov rax, QWORD PTR -8[rbp] add rax, rdx movzx edx, BYTE PTR [rax] mov eax, DWORD PTR -20[rbp] sub eax, 1 sub eax, DWORD PTR -28[rbp] movsx rcx, eax mov rax, QWORD PTR -8[rbp] add rax, rcx movzx eax, BYTE PTR [rax] cmp dl, al je .L10 mov BYTE PTR -37[rbp], 0 jmp .L11 .L10: add DWORD PTR -28[rbp], 1 .L9: mov eax, DWORD PTR -20[rbp] mov edx, eax shr edx, 31 add eax, edx sar eax cmp DWORD PTR -28[rbp], eax jl .L12 .L11: mov rdx, QWORD PTR -8[rbp] mov rax, QWORD PTR -72[rbp] mov rsi, rdx mov rdi, rax call strcpy@PLT cmp BYTE PTR -37[rbp], 0 je .L13 lea rax, .LC0[rip] jmp .L14 .L13: lea rax, .LC1[rip] .L14: mov rdx, QWORD PTR -80[rbp] mov rsi, rax mov rdi, rdx call strcpy@PLT mov rax, QWORD PTR -8[rbp] mov rdi, rax call free@PLT nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .section .rodata .align 2 .LC0: .ascii "True\000" .align 2 .LC1: .ascii "False\000" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 48 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #48 str r0, [fp, #-40] str r1, [fp, #-44] str r2, [fp, #-48] str r3, [fp, #-52] ldr r0, [fp, #-40] bl strlen mov r3, r0 str r3, [fp, #-16] ldr r3, [fp, #-16] add r3, r3, #1 mov r0, r3 bl malloc mov r3, r0 str r3, [fp, #-12] mov r3, #0 str r3, [fp, #-32] mov r3, #0 str r3, [fp, #-28] b .L2 .L8: ldr r3, [fp, #-44] str r3, [fp, #-24] mov r3, #0 strb r3, [fp, #-34] b .L3 .L6: ldr r3, [fp, #-28] ldr r2, [fp, #-40] add r3, r2, r3 ldrb r2, [r3] @ zero_extendqisi2 ldr r3, [fp, #-24] ldrb r3, [r3] @ zero_extendqisi2 cmp r2, r3 bne .L4 mov r3, #1 strb r3, [fp, #-34] b .L5 .L4: ldr r3, [fp, #-24] add r3, r3, #1 str r3, [fp, #-24] .L3: ldr r3, [fp, #-24] ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #0 bne .L6 .L5: ldrb r3, [fp, #-34] eor r3, r3, #1 and r3, r3, #255 cmp r3, #0 beq .L7 ldr r3, [fp, #-28] ldr r2, [fp, #-40] add r2, r2, r3 ldr r3, [fp, #-32] add r1, r3, #1 str r1, [fp, #-32] mov r1, r3 ldr r3, [fp, #-12] add r3, r3, r1 ldrb r2, [r2] @ zero_extendqisi2 strb r2, [r3] .L7: ldr r3, [fp, #-28] add r3, r3, #1 str r3, [fp, #-28] .L2: ldr r3, [fp, #-28] ldr r2, [fp, #-40] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #0 bne .L8 ldr r3, [fp, #-32] ldr r2, [fp, #-12] add r3, r2, r3 mov r2, #0 strb r2, [r3] ldr r0, [fp, #-12] bl strlen mov r3, r0 str r3, [fp, #-8] mov r3, #1 strb r3, [fp, #-33] mov r3, #0 str r3, [fp, #-20] b .L9 .L12: ldr r3, [fp, #-20] ldr r2, [fp, #-12] add r3, r2, r3 ldrb r2, [r3] @ zero_extendqisi2 ldr r3, [fp, #-8] sub r1, r3, #1 ldr r3, [fp, #-20] sub r3, r1, r3 mov r1, r3 ldr r3, [fp, #-12] add r3, r3, r1 ldrb r3, [r3] @ zero_extendqisi2 cmp r2, r3 beq .L10 mov r3, #0 strb r3, [fp, #-33] b .L11 .L10: ldr r3, [fp, #-20] add r3, r3, #1 str r3, [fp, #-20] .L9: ldr r3, [fp, #-8] lsr r2, r3, #31 add r3, r2, r3 asr r3, r3, #1 mov r2, r3 ldr r3, [fp, #-20] cmp r3, r2 blt .L12 .L11: ldr r1, [fp, #-12] ldr r0, [fp, #-48] bl strcpy ldrb r3, [fp, #-33] @ zero_extendqisi2 cmp r3, #0 beq .L13 ldr r3, .L15 b .L14 .L13: ldr r3, .L15+4 .L14: mov r1, r3 ldr r0, [fp, #-52] bl strcpy ldr r0, [fp, #-12] bl free nop sub sp, fp, #4 @ sp needed pop {fp, pc} .L16: .align 2 .L15: .word .LC0 .word .LC1 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem108/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov DWORD PTR -36[rbp], edi mov edi, 8 call malloc@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -8[rbp] mov DWORD PTR [rax], 0 mov rax, QWORD PTR -8[rbp] add rax, 4 mov DWORD PTR [rax], 0 mov DWORD PTR -24[rbp], 1 jmp .L2 .L7: mov DWORD PTR -20[rbp], 0 mov eax, DWORD PTR -24[rbp] mov DWORD PTR -12[rbp], eax mov eax, DWORD PTR -24[rbp] mov DWORD PTR -16[rbp], eax jmp .L3 .L4: mov edx, DWORD PTR -20[rbp] mov eax, edx sal eax, 2 add eax, edx add eax, eax mov esi, eax mov ecx, DWORD PTR -16[rbp] movsx rax, ecx imul rax, rax, 1717986919 shr rax, 32 mov edx, eax sar edx, 2 mov eax, ecx sar eax, 31 sub edx, eax mov eax, edx sal eax, 2 add eax, edx add eax, eax sub ecx, eax mov edx, ecx lea eax, [rsi+rdx] mov DWORD PTR -20[rbp], eax mov eax, DWORD PTR -16[rbp] movsx rdx, eax imul rdx, rdx, 1717986919 shr rdx, 32 sar edx, 2 sar eax, 31 sub edx, eax mov eax, edx mov DWORD PTR -16[rbp], eax .L3: cmp DWORD PTR -16[rbp], 0 jne .L4 mov eax, DWORD PTR -12[rbp] cmp eax, DWORD PTR -20[rbp] jne .L5 mov eax, DWORD PTR -12[rbp] and eax, 1 test eax, eax jne .L6 mov rax, QWORD PTR -8[rbp] mov eax, DWORD PTR [rax] lea edx, 1[rax] mov rax, QWORD PTR -8[rbp] mov DWORD PTR [rax], edx jmp .L5 .L6: mov rax, QWORD PTR -8[rbp] add rax, 4 mov edx, DWORD PTR [rax] add edx, 1 mov DWORD PTR [rax], edx .L5: add DWORD PTR -24[rbp], 1 .L2: mov eax, DWORD PTR -24[rbp] cmp eax, DWORD PTR -36[rbp] jle .L7 mov rax, QWORD PTR -8[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 32 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #32 str r0, [fp, #-32] mov r0, #8 bl malloc mov r3, r0 str r3, [fp, #-12] ldr r3, [fp, #-12] mov r2, #0 str r2, [r3] ldr r3, [fp, #-12] add r3, r3, #4 mov r2, #0 str r2, [r3] mov r3, #1 str r3, [fp, #-24] b .L2 .L7: mov r3, #0 str r3, [fp, #-20] ldr r3, [fp, #-24] str r3, [fp, #-8] ldr r3, [fp, #-24] str r3, [fp, #-16] b .L3 .L4: ldr r2, [fp, #-20] mov r3, r2 lsl r3, r3, #2 add r3, r3, r2 lsl r3, r3, #1 mov r0, r3 ldr r1, [fp, #-16] ldr r3, .L9 smull r2, r3, r1, r3 asr r2, r3, #2 asr r3, r1, #31 sub r2, r2, r3 mov r3, r2 lsl r3, r3, #2 add r3, r3, r2 lsl r3, r3, #1 sub r2, r1, r3 add r3, r0, r2 str r3, [fp, #-20] ldr r3, [fp, #-16] ldr r2, .L9 smull r1, r2, r3, r2 asr r2, r2, #2 asr r3, r3, #31 sub r3, r2, r3 str r3, [fp, #-16] .L3: ldr r3, [fp, #-16] cmp r3, #0 bne .L4 ldr r2, [fp, #-8] ldr r3, [fp, #-20] cmp r2, r3 bne .L5 ldr r3, [fp, #-8] and r3, r3, #1 cmp r3, #0 bne .L6 ldr r3, [fp, #-12] ldr r3, [r3] add r2, r3, #1 ldr r3, [fp, #-12] str r2, [r3] b .L5 .L6: ldr r3, [fp, #-12] add r3, r3, #4 ldr r2, [r3] add r2, r2, #1 str r2, [r3] .L5: ldr r3, [fp, #-24] add r3, r3, #1 str r3, [fp, #-24] .L2: ldr r2, [fp, #-24] ldr r3, [fp, #-32] cmp r2, r3 ble .L7 ldr r3, [fp, #-12] mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .L10: .align 2 .L9: .word 1717986919 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem83/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov rax, QWORD PTR -24[rbp] mov rdi, rax call strlen@PLT mov DWORD PTR -4[rbp], eax cmp DWORD PTR -4[rbp], 1 jg .L2 mov eax, 0 jmp .L3 .L2: mov DWORD PTR -8[rbp], 2 jmp .L4 .L6: mov eax, DWORD PTR -4[rbp] cdq idiv DWORD PTR -8[rbp] mov eax, edx test eax, eax jne .L5 mov eax, 0 jmp .L3 .L5: add DWORD PTR -8[rbp], 1 .L4: mov eax, DWORD PTR -8[rbp] imul eax, eax cmp DWORD PTR -4[rbp], eax jge .L6 mov eax, 1 .L3: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .global __aeabi_idivmod .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 16 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #16 str r0, [fp, #-16] ldr r0, [fp, #-16] bl strlen mov r3, r0 str r3, [fp, #-8] ldr r3, [fp, #-8] cmp r3, #1 bgt .L2 mov r3, #0 b .L3 .L2: mov r3, #2 str r3, [fp, #-12] b .L4 .L6: ldr r3, [fp, #-8] ldr r1, [fp, #-12] mov r0, r3 bl __aeabi_idivmod mov r3, r1 cmp r3, #0 bne .L5 mov r3, #0 b .L3 .L5: ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L4: ldr r3, [fp, #-12] mov r2, r3 mul r2, r3, r2 mov r3, r2 ldr r2, [fp, #-8] cmp r2, r3 bge .L6 mov r3, #1 .L3: mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem144/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -40[rbp], rdi mov QWORD PTR -48[rbp], rsi mov DWORD PTR -4[rbp], 0 mov DWORD PTR -20[rbp], 0 mov DWORD PTR -16[rbp], 0 mov DWORD PTR -12[rbp], 0 jmp .L2 .L13: mov eax, DWORD PTR -12[rbp] movsx rdx, eax mov rax, QWORD PTR -40[rbp] add rax, rdx movzx eax, BYTE PTR [rax] cmp al, 32 je .L3 add DWORD PTR -20[rbp], 1 jmp .L4 .L3: cmp DWORD PTR -20[rbp], 1 jle .L5 mov BYTE PTR -21[rbp], 1 mov DWORD PTR -8[rbp], 2 jmp .L6 .L9: mov eax, DWORD PTR -20[rbp] cdq idiv DWORD PTR -8[rbp] mov eax, edx test eax, eax jne .L7 mov BYTE PTR -21[rbp], 0 jmp .L10 .L7: add DWORD PTR -8[rbp], 1 .L6: mov eax, DWORD PTR -8[rbp] imul eax, eax cmp DWORD PTR -20[rbp], eax jge .L9 jmp .L10 .L5: mov BYTE PTR -21[rbp], 0 .L10: cmp BYTE PTR -21[rbp], 0 je .L11 cmp DWORD PTR -16[rbp], 0 jle .L12 mov eax, DWORD PTR -16[rbp] lea edx, 1[rax] mov DWORD PTR -16[rbp], edx movsx rdx, eax mov rax, QWORD PTR -48[rbp] add rax, rdx mov BYTE PTR [rax], 32 .L12: mov eax, DWORD PTR -20[rbp] cdqe mov edx, DWORD PTR -12[rbp] movsx rcx, edx mov edx, DWORD PTR -20[rbp] movsx rdx, edx sub rcx, rdx mov rdx, QWORD PTR -40[rbp] lea rsi, [rcx+rdx] mov edx, DWORD PTR -16[rbp] movsx rcx, edx mov rdx, QWORD PTR -48[rbp] add rcx, rdx mov rdx, rax mov rdi, rcx call memcpy@PLT mov eax, DWORD PTR -20[rbp] add DWORD PTR -16[rbp], eax .L11: mov DWORD PTR -20[rbp], 0 .L4: add DWORD PTR -12[rbp], 1 .L2: mov eax, DWORD PTR -12[rbp] movsx rdx, eax mov rax, QWORD PTR -40[rbp] add rax, rdx movzx eax, BYTE PTR [rax] test al, al jne .L13 cmp DWORD PTR -20[rbp], 1 jle .L14 mov BYTE PTR -21[rbp], 1 mov DWORD PTR -8[rbp], 2 jmp .L15 .L18: mov eax, DWORD PTR -20[rbp] cdq idiv DWORD PTR -8[rbp] mov eax, edx test eax, eax jne .L16 mov BYTE PTR -21[rbp], 0 jmp .L19 .L16: add DWORD PTR -8[rbp], 1 .L15: mov eax, DWORD PTR -8[rbp] imul eax, eax cmp DWORD PTR -20[rbp], eax jge .L18 jmp .L19 .L14: mov BYTE PTR -21[rbp], 0 .L19: cmp BYTE PTR -21[rbp], 0 je .L20 cmp DWORD PTR -16[rbp], 0 jle .L21 mov eax, DWORD PTR -16[rbp] lea edx, 1[rax] mov DWORD PTR -16[rbp], edx movsx rdx, eax mov rax, QWORD PTR -48[rbp] add rax, rdx mov BYTE PTR [rax], 32 .L21: mov eax, DWORD PTR -20[rbp] cdqe mov edx, DWORD PTR -12[rbp] movsx rcx, edx mov edx, DWORD PTR -20[rbp] movsx rdx, edx sub rcx, rdx mov rdx, QWORD PTR -40[rbp] lea rsi, [rcx+rdx] mov edx, DWORD PTR -16[rbp] movsx rcx, edx mov rdx, QWORD PTR -48[rbp] add rcx, rdx mov rdx, rax mov rdi, rcx call memcpy@PLT mov eax, DWORD PTR -20[rbp] add DWORD PTR -16[rbp], eax .L20: mov eax, DWORD PTR -16[rbp] movsx rdx, eax mov rax, QWORD PTR -48[rbp] add rax, rdx mov BYTE PTR [rax], 0 nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .global __aeabi_idivmod .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 32 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #32 str r0, [fp, #-32] str r1, [fp, #-36] mov r3, #0 str r3, [fp, #-8] mov r3, #0 str r3, [fp, #-24] mov r3, #0 str r3, [fp, #-20] mov r3, #0 str r3, [fp, #-16] b .L2 .L13: ldr r3, [fp, #-16] ldr r2, [fp, #-32] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #32 beq .L3 ldr r3, [fp, #-24] add r3, r3, #1 str r3, [fp, #-24] b .L4 .L3: ldr r3, [fp, #-24] cmp r3, #1 ble .L5 mov r3, #1 strb r3, [fp, #-25] mov r3, #2 str r3, [fp, #-12] b .L6 .L9: ldr r3, [fp, #-24] ldr r1, [fp, #-12] mov r0, r3 bl __aeabi_idivmod mov r3, r1 cmp r3, #0 bne .L7 mov r3, #0 strb r3, [fp, #-25] b .L10 .L7: ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L6: ldr r3, [fp, #-12] mov r2, r3 mul r2, r3, r2 mov r3, r2 ldr r2, [fp, #-24] cmp r2, r3 bge .L9 b .L10 .L5: mov r3, #0 strb r3, [fp, #-25] .L10: ldrb r3, [fp, #-25] @ zero_extendqisi2 cmp r3, #0 beq .L11 ldr r3, [fp, #-20] cmp r3, #0 ble .L12 ldr r3, [fp, #-20] add r2, r3, #1 str r2, [fp, #-20] mov r2, r3 ldr r3, [fp, #-36] add r3, r3, r2 mov r2, #32 strb r2, [r3] .L12: ldr r3, [fp, #-20] ldr r2, [fp, #-36] add r0, r2, r3 ldr r2, [fp, #-16] ldr r3, [fp, #-24] sub r3, r2, r3 ldr r2, [fp, #-32] add r3, r2, r3 ldr r2, [fp, #-24] mov r1, r3 bl memcpy ldr r2, [fp, #-20] ldr r3, [fp, #-24] add r3, r2, r3 str r3, [fp, #-20] .L11: mov r3, #0 str r3, [fp, #-24] .L4: ldr r3, [fp, #-16] add r3, r3, #1 str r3, [fp, #-16] .L2: ldr r3, [fp, #-16] ldr r2, [fp, #-32] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #0 bne .L13 ldr r3, [fp, #-24] cmp r3, #1 ble .L14 mov r3, #1 strb r3, [fp, #-25] mov r3, #2 str r3, [fp, #-12] b .L15 .L18: ldr r3, [fp, #-24] ldr r1, [fp, #-12] mov r0, r3 bl __aeabi_idivmod mov r3, r1 cmp r3, #0 bne .L16 mov r3, #0 strb r3, [fp, #-25] b .L19 .L16: ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L15: ldr r3, [fp, #-12] mov r2, r3 mul r2, r3, r2 mov r3, r2 ldr r2, [fp, #-24] cmp r2, r3 bge .L18 b .L19 .L14: mov r3, #0 strb r3, [fp, #-25] .L19: ldrb r3, [fp, #-25] @ zero_extendqisi2 cmp r3, #0 beq .L20 ldr r3, [fp, #-20] cmp r3, #0 ble .L21 ldr r3, [fp, #-20] add r2, r3, #1 str r2, [fp, #-20] mov r2, r3 ldr r3, [fp, #-36] add r3, r3, r2 mov r2, #32 strb r2, [r3] .L21: ldr r3, [fp, #-20] ldr r2, [fp, #-36] add r0, r2, r3 ldr r2, [fp, #-16] ldr r3, [fp, #-24] sub r3, r2, r3 ldr r2, [fp, #-32] add r3, r2, r3 ldr r2, [fp, #-24] mov r1, r3 bl memcpy ldr r2, [fp, #-20] ldr r3, [fp, #-24] add r3, r2, r3 str r3, [fp, #-20] .L20: ldr r3, [fp, #-20] ldr r2, [fp, #-36] add r3, r2, r3 mov r2, #0 strb r2, [r3] nop sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem141/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 push rbx sub rsp, 40 .cfi_offset 3, -24 mov QWORD PTR -40[rbp], rdi mov QWORD PTR -48[rbp], rsi mov DWORD PTR -28[rbp], 0 mov DWORD PTR -24[rbp], 0 mov DWORD PTR -20[rbp], 0 jmp .L2 .L8: mov eax, DWORD PTR -20[rbp] movsx rdx, eax mov rax, QWORD PTR -40[rbp] add rax, rdx movzx eax, BYTE PTR [rax] cmp al, 32 jne .L3 add DWORD PTR -28[rbp], 1 jmp .L4 .L3: cmp DWORD PTR -28[rbp], 1 jne .L5 mov eax, DWORD PTR -24[rbp] lea edx, 1[rax] mov DWORD PTR -24[rbp], edx movsx rdx, eax mov rax, QWORD PTR -48[rbp] add rax, rdx mov BYTE PTR [rax], 95 .L5: cmp DWORD PTR -28[rbp], 2 jne .L6 mov eax, DWORD PTR -24[rbp] lea edx, 1[rax] mov DWORD PTR -24[rbp], edx movsx rdx, eax mov rax, QWORD PTR -48[rbp] add rax, rdx mov BYTE PTR [rax], 95 mov eax, DWORD PTR -24[rbp] lea edx, 1[rax] mov DWORD PTR -24[rbp], edx movsx rdx, eax mov rax, QWORD PTR -48[rbp] add rax, rdx mov BYTE PTR [rax], 95 .L6: cmp DWORD PTR -28[rbp], 2 jle .L7 mov eax, DWORD PTR -24[rbp] lea edx, 1[rax] mov DWORD PTR -24[rbp], edx movsx rdx, eax mov rax, QWORD PTR -48[rbp] add rax, rdx mov BYTE PTR [rax], 45 .L7: mov DWORD PTR -28[rbp], 0 mov eax, DWORD PTR -20[rbp] movsx rdx, eax mov rax, QWORD PTR -40[rbp] lea rcx, [rdx+rax] mov eax, DWORD PTR -24[rbp] lea edx, 1[rax] mov DWORD PTR -24[rbp], edx movsx rdx, eax mov rax, QWORD PTR -48[rbp] add rdx, rax movzx eax, BYTE PTR [rcx] mov BYTE PTR [rdx], al .L4: add DWORD PTR -20[rbp], 1 .L2: mov eax, DWORD PTR -20[rbp] movsx rbx, eax mov rax, QWORD PTR -40[rbp] mov rdi, rax call strlen@PLT cmp rbx, rax jb .L8 cmp DWORD PTR -28[rbp], 1 jne .L9 mov eax, DWORD PTR -24[rbp] lea edx, 1[rax] mov DWORD PTR -24[rbp], edx movsx rdx, eax mov rax, QWORD PTR -48[rbp] add rax, rdx mov BYTE PTR [rax], 95 .L9: cmp DWORD PTR -28[rbp], 2 jne .L10 mov eax, DWORD PTR -24[rbp] lea edx, 1[rax] mov DWORD PTR -24[rbp], edx movsx rdx, eax mov rax, QWORD PTR -48[rbp] add rax, rdx mov BYTE PTR [rax], 95 mov eax, DWORD PTR -24[rbp] lea edx, 1[rax] mov DWORD PTR -24[rbp], edx movsx rdx, eax mov rax, QWORD PTR -48[rbp] add rax, rdx mov BYTE PTR [rax], 95 .L10: cmp DWORD PTR -28[rbp], 2 jle .L11 mov eax, DWORD PTR -24[rbp] lea edx, 1[rax] mov DWORD PTR -24[rbp], edx movsx rdx, eax mov rax, QWORD PTR -48[rbp] add rax, rdx mov BYTE PTR [rax], 45 .L11: mov eax, DWORD PTR -24[rbp] movsx rdx, eax mov rax, QWORD PTR -48[rbp] add rax, rdx mov BYTE PTR [rax], 0 nop add rsp, 40 pop rbx pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 24 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #24 str r0, [fp, #-24] str r1, [fp, #-28] mov r3, #0 str r3, [fp, #-16] mov r3, #0 str r3, [fp, #-12] mov r3, #0 str r3, [fp, #-8] b .L2 .L8: ldr r3, [fp, #-8] ldr r2, [fp, #-24] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #32 bne .L3 ldr r3, [fp, #-16] add r3, r3, #1 str r3, [fp, #-16] b .L4 .L3: ldr r3, [fp, #-16] cmp r3, #1 bne .L5 ldr r3, [fp, #-12] add r2, r3, #1 str r2, [fp, #-12] mov r2, r3 ldr r3, [fp, #-28] add r3, r3, r2 mov r2, #95 strb r2, [r3] .L5: ldr r3, [fp, #-16] cmp r3, #2 bne .L6 ldr r3, [fp, #-12] add r2, r3, #1 str r2, [fp, #-12] mov r2, r3 ldr r3, [fp, #-28] add r3, r3, r2 mov r2, #95 strb r2, [r3] ldr r3, [fp, #-12] add r2, r3, #1 str r2, [fp, #-12] mov r2, r3 ldr r3, [fp, #-28] add r3, r3, r2 mov r2, #95 strb r2, [r3] .L6: ldr r3, [fp, #-16] cmp r3, #2 ble .L7 ldr r3, [fp, #-12] add r2, r3, #1 str r2, [fp, #-12] mov r2, r3 ldr r3, [fp, #-28] add r3, r3, r2 mov r2, #45 strb r2, [r3] .L7: mov r3, #0 str r3, [fp, #-16] ldr r3, [fp, #-8] ldr r2, [fp, #-24] add r2, r2, r3 ldr r3, [fp, #-12] add r1, r3, #1 str r1, [fp, #-12] mov r1, r3 ldr r3, [fp, #-28] add r3, r3, r1 ldrb r2, [r2] @ zero_extendqisi2 strb r2, [r3] .L4: ldr r3, [fp, #-8] add r3, r3, #1 str r3, [fp, #-8] .L2: ldr r0, [fp, #-24] bl strlen mov r2, r0 ldr r3, [fp, #-8] cmp r2, r3 bhi .L8 ldr r3, [fp, #-16] cmp r3, #1 bne .L9 ldr r3, [fp, #-12] add r2, r3, #1 str r2, [fp, #-12] mov r2, r3 ldr r3, [fp, #-28] add r3, r3, r2 mov r2, #95 strb r2, [r3] .L9: ldr r3, [fp, #-16] cmp r3, #2 bne .L10 ldr r3, [fp, #-12] add r2, r3, #1 str r2, [fp, #-12] mov r2, r3 ldr r3, [fp, #-28] add r3, r3, r2 mov r2, #95 strb r2, [r3] ldr r3, [fp, #-12] add r2, r3, #1 str r2, [fp, #-12] mov r2, r3 ldr r3, [fp, #-28] add r3, r3, r2 mov r2, #95 strb r2, [r3] .L10: ldr r3, [fp, #-16] cmp r3, #2 ble .L11 ldr r3, [fp, #-12] add r2, r3, #1 str r2, [fp, #-12] mov r2, r3 ldr r3, [fp, #-28] add r3, r3, r2 mov r2, #45 strb r2, [r3] .L11: ldr r3, [fp, #-12] ldr r2, [fp, #-28] add r3, r2, r3 mov r2, #0 strb r2, [r3] nop sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem3/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 movss DWORD PTR -4[rbp], xmm0 movss xmm0, DWORD PTR -4[rbp] cvttss2si eax, xmm0 cvtsi2ss xmm1, eax movss xmm0, DWORD PTR -4[rbp] subss xmm0, xmm1 pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .global __aeabi_f2iz .global __aeabi_i2f .global __aeabi_fsub .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 8 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #8 str r0, [fp, #-8] @ float ldr r0, [fp, #-8] @ float bl __aeabi_f2iz mov r3, r0 mov r0, r3 bl __aeabi_i2f mov r3, r0 mov r1, r3 ldr r0, [fp, #-8] @ float bl __aeabi_fsub mov r3, r0 mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem94/code.c
.file "code.c" .intel_syntax noprefix .text .section .rodata .LC0: .string "aeiouAEIOU" .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -40[rbp], rdi mov QWORD PTR -48[rbp], rsi lea rax, .LC0[rip] mov QWORD PTR -8[rbp], rax mov DWORD PTR -16[rbp], 0 jmp .L2 .L10: mov eax, DWORD PTR -16[rbp] movsx rdx, eax mov rax, QWORD PTR -40[rbp] add rax, rdx movzx eax, BYTE PTR [rax] mov BYTE PTR -17[rbp], al call __ctype_b_loc@PLT mov rax, QWORD PTR [rax] movsx rdx, BYTE PTR -17[rbp] add rdx, rdx add rax, rdx movzx eax, WORD PTR [rax] movzx eax, ax and eax, 512 test eax, eax je .L3 movsx eax, BYTE PTR -17[rbp] mov edi, eax call toupper@PLT mov BYTE PTR -17[rbp], al jmp .L4 .L3: call __ctype_b_loc@PLT mov rax, QWORD PTR [rax] movsx rdx, BYTE PTR -17[rbp] add rdx, rdx add rax, rdx movzx eax, WORD PTR [rax] movzx eax, ax and eax, 256 test eax, eax je .L4 movsx eax, BYTE PTR -17[rbp] mov edi, eax call tolower@PLT mov BYTE PTR -17[rbp], al .L4: mov DWORD PTR -12[rbp], 0 jmp .L5 .L9: mov eax, DWORD PTR -12[rbp] movsx rdx, eax mov rax, QWORD PTR -8[rbp] add rax, rdx movzx eax, BYTE PTR [rax] cmp BYTE PTR -17[rbp], al jne .L6 cmp DWORD PTR -12[rbp], 9 jg .L11 movzx eax, BYTE PTR -17[rbp] add eax, 2 mov BYTE PTR -17[rbp], al jmp .L11 .L6: add DWORD PTR -12[rbp], 1 .L5: mov eax, DWORD PTR -12[rbp] movsx rdx, eax mov rax, QWORD PTR -8[rbp] add rax, rdx movzx eax, BYTE PTR [rax] test al, al jne .L9 jmp .L8 .L11: nop .L8: mov eax, DWORD PTR -16[rbp] movsx rdx, eax mov rax, QWORD PTR -48[rbp] add rdx, rax movzx eax, BYTE PTR -17[rbp] mov BYTE PTR [rdx], al add DWORD PTR -16[rbp], 1 .L2: mov eax, DWORD PTR -16[rbp] movsx rdx, eax mov rax, QWORD PTR -40[rbp] add rax, rdx movzx eax, BYTE PTR [rax] test al, al jne .L10 mov eax, DWORD PTR -16[rbp] movsx rdx, eax mov rax, QWORD PTR -48[rbp] add rax, rdx mov BYTE PTR [rax], 0 nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .section .rodata .align 2 .LC0: .ascii "aeiouAEIOU\000" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 24 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #24 str r0, [fp, #-24] str r1, [fp, #-28] ldr r3, .L12 str r3, [fp, #-8] mov r3, #0 str r3, [fp, #-16] b .L2 .L10: ldr r3, [fp, #-16] ldr r2, [fp, #-24] add r3, r2, r3 ldrb r3, [r3] strb r3, [fp, #-17] bl __ctype_b_loc mov r3, r0 ldr r2, [r3] ldrb r3, [fp, #-17] @ zero_extendqisi2 lsl r3, r3, #1 add r3, r2, r3 ldrh r3, [r3] and r3, r3, #512 cmp r3, #0 beq .L3 ldrb r3, [fp, #-17] @ zero_extendqisi2 mov r0, r3 bl toupper mov r3, r0 strb r3, [fp, #-17] b .L4 .L3: bl __ctype_b_loc mov r3, r0 ldr r2, [r3] ldrb r3, [fp, #-17] @ zero_extendqisi2 lsl r3, r3, #1 add r3, r2, r3 ldrh r3, [r3] and r3, r3, #256 cmp r3, #0 beq .L4 ldrb r3, [fp, #-17] @ zero_extendqisi2 mov r0, r3 bl tolower mov r3, r0 strb r3, [fp, #-17] .L4: mov r3, #0 str r3, [fp, #-12] b .L5 .L9: ldr r3, [fp, #-12] ldr r2, [fp, #-8] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 ldrb r2, [fp, #-17] @ zero_extendqisi2 cmp r2, r3 bne .L6 ldr r3, [fp, #-12] cmp r3, #9 bgt .L11 ldrb r3, [fp, #-17] add r3, r3, #2 strb r3, [fp, #-17] b .L11 .L6: ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L5: ldr r3, [fp, #-12] ldr r2, [fp, #-8] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #0 bne .L9 b .L8 .L11: nop .L8: ldr r3, [fp, #-16] ldr r2, [fp, #-28] add r3, r2, r3 ldrb r2, [fp, #-17] strb r2, [r3] ldr r3, [fp, #-16] add r3, r3, #1 str r3, [fp, #-16] .L2: ldr r3, [fp, #-16] ldr r2, [fp, #-24] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #0 bne .L10 ldr r3, [fp, #-16] ldr r2, [fp, #-28] add r3, r2, r3 mov r2, #0 strb r2, [r3] nop sub sp, fp, #4 @ sp needed pop {fp, pc} .L13: .align 2 .L12: .word .LC0 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem130/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 64 mov QWORD PTR -40[rbp], rdi mov DWORD PTR -44[rbp], esi mov DWORD PTR -48[rbp], edx mov QWORD PTR -56[rbp], rcx mov DWORD PTR -28[rbp], 0 jmp .L2 .L6: mov DWORD PTR -24[rbp], 0 jmp .L3 .L5: mov eax, DWORD PTR -28[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -40[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov edx, DWORD PTR -24[rbp] movsx rdx, edx sal rdx, 2 add rax, rdx mov eax, DWORD PTR [rax] cmp eax, 1 jne .L4 mov eax, DWORD PTR -28[rbp] mov DWORD PTR -20[rbp], eax mov eax, DWORD PTR -24[rbp] mov DWORD PTR -16[rbp], eax .L4: add DWORD PTR -24[rbp], 1 .L3: mov eax, DWORD PTR -24[rbp] cmp eax, DWORD PTR -44[rbp] jl .L5 add DWORD PTR -28[rbp], 1 .L2: mov eax, DWORD PTR -28[rbp] cmp eax, DWORD PTR -44[rbp] jl .L6 mov eax, DWORD PTR -44[rbp] imul eax, eax mov DWORD PTR -12[rbp], eax cmp DWORD PTR -20[rbp], 0 jle .L7 mov eax, DWORD PTR -20[rbp] cdqe sal rax, 3 lea rdx, -8[rax] mov rax, QWORD PTR -40[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov edx, DWORD PTR -16[rbp] movsx rdx, edx sal rdx, 2 add rax, rdx mov eax, DWORD PTR [rax] cmp DWORD PTR -12[rbp], eax jle .L7 mov eax, DWORD PTR -20[rbp] cdqe sal rax, 3 lea rdx, -8[rax] mov rax, QWORD PTR -40[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov edx, DWORD PTR -16[rbp] movsx rdx, edx sal rdx, 2 add rax, rdx mov eax, DWORD PTR [rax] mov DWORD PTR -12[rbp], eax .L7: mov eax, DWORD PTR -44[rbp] sub eax, 1 cmp DWORD PTR -20[rbp], eax jge .L8 mov eax, DWORD PTR -20[rbp] cdqe add rax, 1 lea rdx, 0[0+rax*8] mov rax, QWORD PTR -40[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov edx, DWORD PTR -16[rbp] movsx rdx, edx sal rdx, 2 add rax, rdx mov eax, DWORD PTR [rax] cmp DWORD PTR -12[rbp], eax jle .L8 mov eax, DWORD PTR -20[rbp] cdqe add rax, 1 lea rdx, 0[0+rax*8] mov rax, QWORD PTR -40[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov edx, DWORD PTR -16[rbp] movsx rdx, edx sal rdx, 2 add rax, rdx mov eax, DWORD PTR [rax] mov DWORD PTR -12[rbp], eax .L8: cmp DWORD PTR -16[rbp], 0 jle .L9 mov eax, DWORD PTR -20[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -40[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov edx, DWORD PTR -16[rbp] movsx rdx, edx sal rdx, 2 sub rdx, 4 add rax, rdx mov eax, DWORD PTR [rax] cmp DWORD PTR -12[rbp], eax jle .L9 mov eax, DWORD PTR -20[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -40[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov edx, DWORD PTR -16[rbp] movsx rdx, edx sal rdx, 2 sub rdx, 4 add rax, rdx mov eax, DWORD PTR [rax] mov DWORD PTR -12[rbp], eax .L9: mov eax, DWORD PTR -44[rbp] sub eax, 1 cmp DWORD PTR -16[rbp], eax jge .L10 mov eax, DWORD PTR -20[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -40[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov edx, DWORD PTR -16[rbp] movsx rdx, edx add rdx, 1 sal rdx, 2 add rax, rdx mov eax, DWORD PTR [rax] cmp DWORD PTR -12[rbp], eax jle .L10 mov eax, DWORD PTR -20[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -40[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov edx, DWORD PTR -16[rbp] movsx rdx, edx add rdx, 1 sal rdx, 2 add rax, rdx mov eax, DWORD PTR [rax] mov DWORD PTR -12[rbp], eax .L10: mov rax, QWORD PTR -56[rbp] mov edx, DWORD PTR -48[rbp] mov DWORD PTR [rax], edx mov eax, DWORD PTR -48[rbp] cdqe sal rax, 2 mov rdi, rax call malloc@PLT mov QWORD PTR -8[rbp], rax mov DWORD PTR -28[rbp], 0 jmp .L11 .L14: mov eax, DWORD PTR -28[rbp] and eax, 1 test eax, eax jne .L12 mov eax, DWORD PTR -28[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov DWORD PTR [rax], 1 jmp .L13 .L12: mov eax, DWORD PTR -28[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rdx, rax mov eax, DWORD PTR -12[rbp] mov DWORD PTR [rdx], eax .L13: add DWORD PTR -28[rbp], 1 .L11: mov eax, DWORD PTR -28[rbp] cmp eax, DWORD PTR -48[rbp] jl .L14 mov rax, QWORD PTR -8[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 40 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #40 str r0, [fp, #-32] str r1, [fp, #-36] str r2, [fp, #-40] str r3, [fp, #-44] mov r3, #0 str r3, [fp, #-28] b .L2 .L6: mov r3, #0 str r3, [fp, #-24] b .L3 .L5: ldr r3, [fp, #-28] lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-24] lsl r3, r3, #2 add r3, r2, r3 ldr r3, [r3] cmp r3, #1 bne .L4 ldr r3, [fp, #-28] str r3, [fp, #-20] ldr r3, [fp, #-24] str r3, [fp, #-16] .L4: ldr r3, [fp, #-24] add r3, r3, #1 str r3, [fp, #-24] .L3: ldr r2, [fp, #-24] ldr r3, [fp, #-36] cmp r2, r3 blt .L5 ldr r3, [fp, #-28] add r3, r3, #1 str r3, [fp, #-28] .L2: ldr r2, [fp, #-28] ldr r3, [fp, #-36] cmp r2, r3 blt .L6 ldr r3, [fp, #-36] mov r2, r3 mul r2, r3, r2 mov r3, r2 str r3, [fp, #-12] ldr r3, [fp, #-20] cmp r3, #0 ble .L7 ldr r3, [fp, #-20] sub r3, r3, #-1073741823 lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-16] lsl r3, r3, #2 add r3, r2, r3 ldr r3, [r3] ldr r2, [fp, #-12] cmp r2, r3 ble .L7 ldr r3, [fp, #-20] sub r3, r3, #-1073741823 lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-16] lsl r3, r3, #2 add r3, r2, r3 ldr r3, [r3] str r3, [fp, #-12] .L7: ldr r3, [fp, #-36] sub r3, r3, #1 ldr r2, [fp, #-20] cmp r2, r3 bge .L8 ldr r3, [fp, #-20] add r3, r3, #1 lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-16] lsl r3, r3, #2 add r3, r2, r3 ldr r3, [r3] ldr r2, [fp, #-12] cmp r2, r3 ble .L8 ldr r3, [fp, #-20] add r3, r3, #1 lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-16] lsl r3, r3, #2 add r3, r2, r3 ldr r3, [r3] str r3, [fp, #-12] .L8: ldr r3, [fp, #-16] cmp r3, #0 ble .L9 ldr r3, [fp, #-20] lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-16] sub r3, r3, #-1073741823 lsl r3, r3, #2 add r3, r2, r3 ldr r3, [r3] ldr r2, [fp, #-12] cmp r2, r3 ble .L9 ldr r3, [fp, #-20] lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-16] sub r3, r3, #-1073741823 lsl r3, r3, #2 add r3, r2, r3 ldr r3, [r3] str r3, [fp, #-12] .L9: ldr r3, [fp, #-36] sub r3, r3, #1 ldr r2, [fp, #-16] cmp r2, r3 bge .L10 ldr r3, [fp, #-20] lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-16] add r3, r3, #1 lsl r3, r3, #2 add r3, r2, r3 ldr r3, [r3] ldr r2, [fp, #-12] cmp r2, r3 ble .L10 ldr r3, [fp, #-20] lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-16] add r3, r3, #1 lsl r3, r3, #2 add r3, r2, r3 ldr r3, [r3] str r3, [fp, #-12] .L10: ldr r3, [fp, #-44] ldr r2, [fp, #-40] str r2, [r3] ldr r3, [fp, #-40] lsl r3, r3, #2 mov r0, r3 bl malloc mov r3, r0 str r3, [fp, #-8] mov r3, #0 str r3, [fp, #-28] b .L11 .L14: ldr r3, [fp, #-28] and r3, r3, #1 cmp r3, #0 bne .L12 ldr r3, [fp, #-28] lsl r3, r3, #2 ldr r2, [fp, #-8] add r3, r2, r3 mov r2, #1 str r2, [r3] b .L13 .L12: ldr r3, [fp, #-28] lsl r3, r3, #2 ldr r2, [fp, #-8] add r3, r2, r3 ldr r2, [fp, #-12] str r2, [r3] .L13: ldr r3, [fp, #-28] add r3, r3, #1 str r3, [fp, #-28] .L11: ldr r2, [fp, #-28] ldr r3, [fp, #-40] cmp r2, r3 blt .L14 ldr r3, [fp, #-8] mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem99/code.c
.file "code.c" .intel_syntax noprefix .text .section .rodata .LC0: .string "AEIOU" .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 push rbx sub rsp, 40 .cfi_offset 3, -24 mov QWORD PTR -40[rbp], rdi lea rax, .LC0[rip] mov QWORD PTR -24[rbp], rax mov DWORD PTR -32[rbp], 0 mov DWORD PTR -28[rbp], 0 jmp .L2 .L5: mov eax, DWORD PTR -28[rbp] add eax, eax movsx rdx, eax mov rax, QWORD PTR -40[rbp] add rax, rdx movzx eax, BYTE PTR [rax] movsx edx, al mov rax, QWORD PTR -24[rbp] mov esi, edx mov rdi, rax call strchr@PLT test rax, rax je .L3 add DWORD PTR -32[rbp], 1 .L3: add DWORD PTR -28[rbp], 1 .L2: mov eax, DWORD PTR -28[rbp] movsx rdx, eax mov rax, QWORD PTR -40[rbp] add rax, rdx movzx eax, BYTE PTR [rax] test al, al je .L4 mov eax, DWORD PTR -28[rbp] add eax, eax movsx rbx, eax mov rax, QWORD PTR -40[rbp] mov rdi, rax call strlen@PLT cmp rbx, rax jb .L5 .L4: mov eax, DWORD PTR -32[rbp] add rsp, 40 pop rbx pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .section .rodata .align 2 .LC0: .ascii "AEIOU\000" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 24 @ frame_needed = 1, uses_anonymous_args = 0 push {r4, fp, lr} add fp, sp, #8 sub sp, sp, #28 str r0, [fp, #-32] ldr r3, .L7 str r3, [fp, #-16] mov r3, #0 str r3, [fp, #-24] mov r3, #0 str r3, [fp, #-20] b .L2 .L5: ldr r3, [fp, #-20] lsl r3, r3, #1 mov r2, r3 ldr r3, [fp, #-32] add r3, r3, r2 ldrb r3, [r3] @ zero_extendqisi2 mov r1, r3 ldr r0, [fp, #-16] bl strchr mov r3, r0 cmp r3, #0 beq .L3 ldr r3, [fp, #-24] add r3, r3, #1 str r3, [fp, #-24] .L3: ldr r3, [fp, #-20] add r3, r3, #1 str r3, [fp, #-20] .L2: ldr r3, [fp, #-20] ldr r2, [fp, #-32] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #0 beq .L4 ldr r3, [fp, #-20] lsl r3, r3, #1 mov r4, r3 ldr r0, [fp, #-32] bl strlen mov r3, r0 cmp r4, r3 bcc .L5 .L4: ldr r3, [fp, #-24] mov r0, r3 sub sp, fp, #8 @ sp needed pop {r4, fp, pc} .L8: .align 2 .L7: .word .LC0 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem12/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -40[rbp], rdi mov QWORD PTR -48[rbp], rsi mov rax, QWORD PTR -40[rbp] mov rdi, rax call strlen@PLT mov DWORD PTR -20[rbp], eax mov rax, QWORD PTR -48[rbp] mov rdi, rax call strlen@PLT mov DWORD PTR -16[rbp], eax mov eax, DWORD PTR -20[rbp] cmp DWORD PTR -16[rbp], eax cmovle eax, DWORD PTR -16[rbp] mov DWORD PTR -12[rbp], eax mov eax, DWORD PTR -12[rbp] add eax, 1 cdqe mov rdi, rax call malloc@PLT mov QWORD PTR -8[rbp], rax cmp QWORD PTR -8[rbp], 0 jne .L2 mov eax, 0 jmp .L3 .L2: mov DWORD PTR -24[rbp], 0 jmp .L4 .L7: mov eax, DWORD PTR -24[rbp] movsx rdx, eax mov rax, QWORD PTR -40[rbp] add rax, rdx movzx edx, BYTE PTR [rax] mov eax, DWORD PTR -24[rbp] movsx rcx, eax mov rax, QWORD PTR -48[rbp] add rax, rcx movzx eax, BYTE PTR [rax] cmp dl, al jne .L5 mov ecx, 48 jmp .L6 .L5: mov ecx, 49 .L6: mov eax, DWORD PTR -24[rbp] movsx rdx, eax mov rax, QWORD PTR -8[rbp] add rax, rdx mov BYTE PTR [rax], cl add DWORD PTR -24[rbp], 1 .L4: mov eax, DWORD PTR -24[rbp] cmp eax, DWORD PTR -12[rbp] jl .L7 mov eax, DWORD PTR -12[rbp] movsx rdx, eax mov rax, QWORD PTR -8[rbp] add rax, rdx mov BYTE PTR [rax], 0 mov rax, QWORD PTR -8[rbp] .L3: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 32 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #32 str r0, [fp, #-32] str r1, [fp, #-36] ldr r0, [fp, #-32] bl strlen mov r3, r0 str r3, [fp, #-20] ldr r0, [fp, #-36] bl strlen mov r3, r0 str r3, [fp, #-16] ldr r2, [fp, #-16] ldr r3, [fp, #-20] cmp r2, r3 movlt r3, r2 movge r3, r3 str r3, [fp, #-12] ldr r3, [fp, #-12] add r3, r3, #1 mov r0, r3 bl malloc mov r3, r0 str r3, [fp, #-8] ldr r3, [fp, #-8] cmp r3, #0 bne .L2 mov r3, #0 b .L3 .L2: mov r3, #0 str r3, [fp, #-24] b .L4 .L7: ldr r3, [fp, #-24] ldr r2, [fp, #-32] add r3, r2, r3 ldrb r2, [r3] @ zero_extendqisi2 ldr r3, [fp, #-24] ldr r1, [fp, #-36] add r3, r1, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r2, r3 bne .L5 mov r1, #48 b .L6 .L5: mov r1, #49 .L6: ldr r3, [fp, #-24] ldr r2, [fp, #-8] add r3, r2, r3 mov r2, r1 strb r2, [r3] ldr r3, [fp, #-24] add r3, r3, #1 str r3, [fp, #-24] .L4: ldr r2, [fp, #-24] ldr r3, [fp, #-12] cmp r2, r3 blt .L7 ldr r3, [fp, #-12] ldr r2, [fp, #-8] add r3, r2, r3 mov r2, #0 strb r2, [r3] ldr r3, [fp, #-8] .L3: mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem155/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -40[rbp], rdi mov QWORD PTR -48[rbp], rsi mov rax, QWORD PTR -40[rbp] mov rdi, rax call strlen@PLT mov DWORD PTR -16[rbp], eax mov rax, QWORD PTR -48[rbp] mov rdi, rax call strlen@PLT mov DWORD PTR -12[rbp], eax mov eax, DWORD PTR -12[rbp] add eax, eax add eax, 1 cdqe mov rdi, rax call malloc@PLT mov QWORD PTR -8[rbp], rax mov DWORD PTR -20[rbp], 0 jmp .L2 .L5: mov eax, DWORD PTR -12[rbp] sub eax, DWORD PTR -20[rbp] movsx rdx, eax mov eax, DWORD PTR -20[rbp] movsx rcx, eax mov rax, QWORD PTR -48[rbp] add rcx, rax mov rax, QWORD PTR -8[rbp] mov rsi, rcx mov rdi, rax call strncpy@PLT mov eax, DWORD PTR -20[rbp] movsx rdx, eax mov eax, DWORD PTR -12[rbp] movsx rcx, eax mov eax, DWORD PTR -20[rbp] cdqe sub rcx, rax mov rax, QWORD PTR -8[rbp] add rcx, rax mov rax, QWORD PTR -48[rbp] mov rsi, rax mov rdi, rcx call strncpy@PLT mov eax, DWORD PTR -12[rbp] movsx rdx, eax mov rax, QWORD PTR -8[rbp] add rax, rdx mov BYTE PTR [rax], 0 mov rdx, QWORD PTR -8[rbp] mov rax, QWORD PTR -40[rbp] mov rsi, rdx mov rdi, rax call strstr@PLT test rax, rax je .L3 mov rax, QWORD PTR -8[rbp] mov rdi, rax call free@PLT mov eax, 1 jmp .L4 .L3: add DWORD PTR -20[rbp], 1 .L2: mov eax, DWORD PTR -20[rbp] cmp eax, DWORD PTR -12[rbp] jl .L5 mov rax, QWORD PTR -8[rbp] mov rdi, rax call free@PLT mov eax, 0 .L4: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 24 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #24 str r0, [fp, #-24] str r1, [fp, #-28] ldr r0, [fp, #-24] bl strlen mov r3, r0 str r3, [fp, #-16] ldr r0, [fp, #-28] bl strlen mov r3, r0 str r3, [fp, #-12] ldr r3, [fp, #-12] lsl r3, r3, #1 add r3, r3, #1 mov r0, r3 bl malloc mov r3, r0 str r3, [fp, #-8] mov r3, #0 str r3, [fp, #-20] b .L2 .L5: ldr r3, [fp, #-20] ldr r2, [fp, #-28] add r1, r2, r3 ldr r2, [fp, #-12] ldr r3, [fp, #-20] sub r3, r2, r3 mov r2, r3 ldr r0, [fp, #-8] bl strncpy ldr r2, [fp, #-12] ldr r3, [fp, #-20] sub r3, r2, r3 ldr r2, [fp, #-8] add r3, r2, r3 ldr r2, [fp, #-20] ldr r1, [fp, #-28] mov r0, r3 bl strncpy ldr r3, [fp, #-12] ldr r2, [fp, #-8] add r3, r2, r3 mov r2, #0 strb r2, [r3] ldr r1, [fp, #-8] ldr r0, [fp, #-24] bl strstr mov r3, r0 cmp r3, #0 beq .L3 ldr r0, [fp, #-8] bl free mov r3, #1 b .L4 .L3: ldr r3, [fp, #-20] add r3, r3, #1 str r3, [fp, #-20] .L2: ldr r2, [fp, #-20] ldr r3, [fp, #-12] cmp r2, r3 blt .L5 ldr r0, [fp, #-8] bl free mov r3, #0 .L4: mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem67/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -24[rbp], rdi mov DWORD PTR -8[rbp], 0 mov DWORD PTR -4[rbp], 0 jmp .L2 .L4: mov eax, DWORD PTR -4[rbp] movsx rdx, eax mov rax, QWORD PTR -24[rbp] add rax, rdx movzx eax, BYTE PTR [rax] cmp al, 64 jle .L3 mov eax, DWORD PTR -4[rbp] movsx rdx, eax mov rax, QWORD PTR -24[rbp] add rax, rdx movzx eax, BYTE PTR [rax] cmp al, 90 jg .L3 mov eax, DWORD PTR -4[rbp] movsx rdx, eax mov rax, QWORD PTR -24[rbp] add rax, rdx movzx eax, BYTE PTR [rax] movsx eax, al add DWORD PTR -8[rbp], eax .L3: add DWORD PTR -4[rbp], 1 .L2: mov eax, DWORD PTR -4[rbp] movsx rdx, eax mov rax, QWORD PTR -24[rbp] add rax, rdx movzx eax, BYTE PTR [rax] test al, al jne .L4 mov eax, DWORD PTR -8[rbp] pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 16 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #20 str r0, [fp, #-16] mov r3, #0 str r3, [fp, #-12] mov r3, #0 str r3, [fp, #-8] b .L2 .L4: ldr r3, [fp, #-8] ldr r2, [fp, #-16] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #64 bls .L3 ldr r3, [fp, #-8] ldr r2, [fp, #-16] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #90 bhi .L3 ldr r3, [fp, #-8] ldr r2, [fp, #-16] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 mov r2, r3 ldr r3, [fp, #-12] add r3, r3, r2 str r3, [fp, #-12] .L3: ldr r3, [fp, #-8] add r3, r3, #1 str r3, [fp, #-8] .L2: ldr r3, [fp, #-8] ldr r2, [fp, #-16] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #0 bne .L4 ldr r3, [fp, #-12] mov r0, r3 add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem57/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -24[rbp], rdi mov DWORD PTR -8[rbp], 0 mov DWORD PTR -4[rbp], 0 jmp .L2 .L7: mov eax, DWORD PTR -4[rbp] movsx rdx, eax mov rax, QWORD PTR -24[rbp] add rax, rdx movzx eax, BYTE PTR [rax] cmp al, 60 jne .L3 add DWORD PTR -8[rbp], 1 .L3: mov eax, DWORD PTR -4[rbp] movsx rdx, eax mov rax, QWORD PTR -24[rbp] add rax, rdx movzx eax, BYTE PTR [rax] cmp al, 62 jne .L4 sub DWORD PTR -8[rbp], 1 .L4: cmp DWORD PTR -8[rbp], 0 jns .L5 mov eax, 0 jmp .L6 .L5: add DWORD PTR -4[rbp], 1 .L2: mov eax, DWORD PTR -4[rbp] movsx rdx, eax mov rax, QWORD PTR -24[rbp] add rax, rdx movzx eax, BYTE PTR [rax] test al, al jne .L7 cmp DWORD PTR -8[rbp], 0 je .L8 mov eax, 0 jmp .L6 .L8: mov eax, 1 .L6: pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 16 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #20 str r0, [fp, #-16] mov r3, #0 str r3, [fp, #-12] mov r3, #0 str r3, [fp, #-8] b .L2 .L7: ldr r3, [fp, #-8] ldr r2, [fp, #-16] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #60 bne .L3 ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L3: ldr r3, [fp, #-8] ldr r2, [fp, #-16] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #62 bne .L4 ldr r3, [fp, #-12] sub r3, r3, #1 str r3, [fp, #-12] .L4: ldr r3, [fp, #-12] cmp r3, #0 bge .L5 mov r3, #0 b .L6 .L5: ldr r3, [fp, #-8] add r3, r3, #1 str r3, [fp, #-8] .L2: ldr r3, [fp, #-8] ldr r2, [fp, #-16] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #0 bne .L7 ldr r3, [fp, #-12] cmp r3, #0 beq .L8 mov r3, #0 b .L6 .L8: mov r3, #1 .L6: mov r0, r3 add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem101/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov DWORD PTR -20[rbp], edi mov eax, DWORD PTR -20[rbp] cdqe sal rax, 2 mov rdi, rax call malloc@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -8[rbp] mov edx, DWORD PTR -20[rbp] mov DWORD PTR [rax], edx mov DWORD PTR -12[rbp], 1 jmp .L2 .L3: mov eax, DWORD PTR -12[rbp] cdqe sal rax, 2 lea rdx, -4[rax] mov rax, QWORD PTR -8[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -12[rbp] cdqe lea rcx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rcx add edx, 2 mov DWORD PTR [rax], edx add DWORD PTR -12[rbp], 1 .L2: mov eax, DWORD PTR -12[rbp] cmp eax, DWORD PTR -20[rbp] jl .L3 mov rax, QWORD PTR -8[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 16 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #16 str r0, [fp, #-16] ldr r3, [fp, #-16] lsl r3, r3, #2 mov r0, r3 bl malloc mov r3, r0 str r3, [fp, #-8] ldr r3, [fp, #-8] ldr r2, [fp, #-16] str r2, [r3] mov r3, #1 str r3, [fp, #-12] b .L2 .L3: ldr r3, [fp, #-12] sub r3, r3, #-1073741823 lsl r3, r3, #2 ldr r2, [fp, #-8] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-12] lsl r3, r3, #2 ldr r1, [fp, #-8] add r3, r1, r3 add r2, r2, #2 str r2, [r3] ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L2: ldr r2, [fp, #-12] ldr r3, [fp, #-16] cmp r2, r3 blt .L3 ldr r3, [fp, #-8] mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem54/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov DWORD PTR -4[rbp], edi mov DWORD PTR -8[rbp], esi mov edx, DWORD PTR -4[rbp] mov eax, DWORD PTR -8[rbp] add eax, edx pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 8 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #12 str r0, [fp, #-8] str r1, [fp, #-12] ldr r2, [fp, #-8] ldr r3, [fp, #-12] add r3, r2, r3 mov r0, r3 add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem148/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 push rbx sub rsp, 104 .cfi_offset 3, -24 mov DWORD PTR -100[rbp], edi mov eax, DWORD PTR -100[rbp] cdqe sal rax, 2 mov rdi, rax call malloc@PLT mov QWORD PTR -40[rbp], rax mov eax, DWORD PTR -100[rbp] add eax, 1 cdqe sal rax, 3 mov rdi, rax call malloc@PLT mov QWORD PTR -32[rbp], rax mov eax, DWORD PTR -100[rbp] add eax, 1 cdqe sal rax, 3 mov rdi, rax call malloc@PLT mov QWORD PTR -24[rbp], rax mov DWORD PTR -84[rbp], 0 jmp .L2 .L3: mov eax, DWORD PTR -84[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -32[rbp] lea rbx, [rdx+rax] mov esi, 4 mov edi, 3 call calloc@PLT mov QWORD PTR [rbx], rax mov eax, DWORD PTR -84[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -24[rbp] lea rbx, [rdx+rax] mov esi, 4 mov edi, 3 call calloc@PLT mov QWORD PTR [rbx], rax add DWORD PTR -84[rbp], 1 .L2: mov eax, DWORD PTR -84[rbp] cmp eax, DWORD PTR -100[rbp] jle .L3 mov rax, QWORD PTR -32[rbp] mov rax, QWORD PTR [rax] lea rdx, 8[rax] mov DWORD PTR [rdx], 0 mov rax, QWORD PTR -32[rbp] mov rax, QWORD PTR [rax] add rax, 4 mov edx, DWORD PTR [rdx] mov DWORD PTR [rax], edx mov rdx, QWORD PTR -32[rbp] mov rdx, QWORD PTR [rdx] mov eax, DWORD PTR [rax] mov DWORD PTR [rdx], eax mov rax, QWORD PTR -24[rbp] mov rax, QWORD PTR [rax] lea rdx, 8[rax] mov DWORD PTR [rdx], 0 mov rax, QWORD PTR -24[rbp] mov rax, QWORD PTR [rax] add rax, 4 mov edx, DWORD PTR [rdx] mov DWORD PTR [rax], edx mov rdx, QWORD PTR -24[rbp] mov rdx, QWORD PTR [rdx] mov eax, DWORD PTR [rax] mov DWORD PTR [rdx], eax mov DWORD PTR -80[rbp], 1 jmp .L4 .L7: mov eax, DWORD PTR -80[rbp] imul eax, eax sub eax, DWORD PTR -80[rbp] lea ecx, 1[rax] mov eax, DWORD PTR -80[rbp] cdqe sal rax, 2 lea rdx, -4[rax] mov rax, QWORD PTR -40[rbp] lea rsi, [rdx+rax] movsx rax, ecx imul rax, rax, 1431655766 shr rax, 32 mov rdx, rax mov eax, ecx sar eax, 31 mov ebx, edx sub ebx, eax mov eax, ebx mov edx, eax add edx, edx add edx, eax mov eax, ecx sub eax, edx mov DWORD PTR [rsi], eax mov DWORD PTR -76[rbp], 0 jmp .L5 .L6: mov eax, DWORD PTR -80[rbp] cdqe sal rax, 3 lea rdx, -8[rax] mov rax, QWORD PTR -32[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov edx, DWORD PTR -76[rbp] movsx rdx, edx sal rdx, 2 add rax, rdx mov edx, DWORD PTR -80[rbp] movsx rdx, edx lea rcx, 0[0+rdx*8] mov rdx, QWORD PTR -32[rbp] add rdx, rcx mov rdx, QWORD PTR [rdx] mov ecx, DWORD PTR -76[rbp] movsx rcx, ecx sal rcx, 2 add rdx, rcx mov eax, DWORD PTR [rax] mov DWORD PTR [rdx], eax add DWORD PTR -76[rbp], 1 .L5: cmp DWORD PTR -76[rbp], 2 jle .L6 mov eax, DWORD PTR -80[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -32[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov edx, DWORD PTR -80[rbp] movsx rdx, edx sal rdx, 2 lea rcx, -4[rdx] mov rdx, QWORD PTR -40[rbp] add rdx, rcx mov edx, DWORD PTR [rdx] movsx rdx, edx sal rdx, 2 add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -80[rbp] cdqe lea rcx, 0[0+rax*8] mov rax, QWORD PTR -32[rbp] add rax, rcx mov rax, QWORD PTR [rax] mov ecx, DWORD PTR -80[rbp] movsx rcx, ecx sal rcx, 2 lea rsi, -4[rcx] mov rcx, QWORD PTR -40[rbp] add rcx, rsi mov ecx, DWORD PTR [rcx] movsx rcx, ecx sal rcx, 2 add rax, rcx add edx, 1 mov DWORD PTR [rax], edx add DWORD PTR -80[rbp], 1 .L4: mov eax, DWORD PTR -80[rbp] cmp eax, DWORD PTR -100[rbp] jle .L7 mov DWORD PTR -72[rbp], 1 jmp .L8 .L20: mov DWORD PTR -68[rbp], 1 jmp .L9 .L15: mov DWORD PTR -64[rbp], 0 jmp .L10 .L11: mov eax, DWORD PTR -68[rbp] cdqe sal rax, 3 lea rdx, -8[rax] mov rax, QWORD PTR -24[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov edx, DWORD PTR -64[rbp] movsx rdx, edx sal rdx, 2 add rax, rdx mov edx, DWORD PTR -68[rbp] movsx rdx, edx lea rcx, 0[0+rdx*8] mov rdx, QWORD PTR -24[rbp] add rdx, rcx mov rdx, QWORD PTR [rdx] mov ecx, DWORD PTR -64[rbp] movsx rcx, ecx sal rcx, 2 add rdx, rcx mov eax, DWORD PTR [rax] mov DWORD PTR [rdx], eax add DWORD PTR -64[rbp], 1 .L10: cmp DWORD PTR -64[rbp], 2 jle .L11 cmp DWORD PTR -68[rbp], 0 jle .L12 mov DWORD PTR -60[rbp], 0 jmp .L13 .L14: mov eax, DWORD PTR -68[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -24[rbp] add rax, rdx mov rsi, QWORD PTR [rax] mov eax, DWORD PTR -68[rbp] cdqe sal rax, 2 lea rdx, -4[rax] mov rax, QWORD PTR -40[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -60[rbp] lea ecx, [rdx+rax] movsx rax, ecx imul rax, rax, 1431655766 shr rax, 32 mov rdx, rax mov eax, ecx sar eax, 31 mov ebx, edx sub ebx, eax mov eax, ebx mov edx, eax add edx, edx add edx, eax mov eax, ecx sub eax, edx movsx rdx, eax sal rdx, 2 add rdx, rsi mov ecx, DWORD PTR [rdx] mov edx, DWORD PTR -68[rbp] movsx rdx, edx sal rdx, 3 lea rsi, -8[rdx] mov rdx, QWORD PTR -32[rbp] add rdx, rsi mov rdx, QWORD PTR [rdx] mov esi, DWORD PTR -60[rbp] movsx rsi, esi sal rsi, 2 add rdx, rsi mov edx, DWORD PTR [rdx] mov esi, DWORD PTR -68[rbp] movsx rsi, esi lea rdi, 0[0+rsi*8] mov rsi, QWORD PTR -24[rbp] add rsi, rdi mov rsi, QWORD PTR [rsi] cdqe sal rax, 2 add rax, rsi add edx, ecx mov DWORD PTR [rax], edx add DWORD PTR -60[rbp], 1 .L13: cmp DWORD PTR -60[rbp], 2 jle .L14 .L12: add DWORD PTR -68[rbp], 1 .L9: mov eax, DWORD PTR -68[rbp] cmp eax, DWORD PTR -100[rbp] jle .L15 mov DWORD PTR -56[rbp], 0 jmp .L16 .L19: mov DWORD PTR -52[rbp], 0 jmp .L17 .L18: mov eax, DWORD PTR -56[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -24[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov edx, DWORD PTR -52[rbp] movsx rdx, edx sal rdx, 2 add rax, rdx mov edx, DWORD PTR -56[rbp] movsx rdx, edx lea rcx, 0[0+rdx*8] mov rdx, QWORD PTR -32[rbp] add rdx, rcx mov rdx, QWORD PTR [rdx] mov ecx, DWORD PTR -52[rbp] movsx rcx, ecx sal rcx, 2 add rdx, rcx mov eax, DWORD PTR [rax] mov DWORD PTR [rdx], eax mov eax, DWORD PTR -56[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -24[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov edx, DWORD PTR -52[rbp] movsx rdx, edx sal rdx, 2 add rax, rdx mov DWORD PTR [rax], 0 add DWORD PTR -52[rbp], 1 .L17: cmp DWORD PTR -52[rbp], 2 jle .L18 add DWORD PTR -56[rbp], 1 .L16: mov eax, DWORD PTR -56[rbp] cmp eax, DWORD PTR -100[rbp] jle .L19 add DWORD PTR -72[rbp], 1 .L8: cmp DWORD PTR -72[rbp], 2 jle .L20 mov eax, DWORD PTR -100[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -32[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov eax, DWORD PTR [rax] mov DWORD PTR -44[rbp], eax mov DWORD PTR -48[rbp], 0 jmp .L21 .L22: mov eax, DWORD PTR -48[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -32[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov rdi, rax call free@PLT mov eax, DWORD PTR -48[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -24[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov rdi, rax call free@PLT add DWORD PTR -48[rbp], 1 .L21: mov eax, DWORD PTR -48[rbp] cmp eax, DWORD PTR -100[rbp] jle .L22 mov rax, QWORD PTR -32[rbp] mov rdi, rax call free@PLT mov rax, QWORD PTR -24[rbp] mov rdi, rax call free@PLT mov rax, QWORD PTR -40[rbp] mov rdi, rax call free@PLT mov eax, DWORD PTR -44[rbp] add rsp, 104 pop rbx pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 64 @ frame_needed = 1, uses_anonymous_args = 0 push {r4, fp, lr} add fp, sp, #8 sub sp, sp, #68 str r0, [fp, #-72] ldr r3, [fp, #-72] lsl r3, r3, #2 mov r0, r3 bl malloc mov r3, r0 str r3, [fp, #-28] ldr r3, [fp, #-72] add r3, r3, #1 lsl r3, r3, #2 mov r0, r3 bl malloc mov r3, r0 str r3, [fp, #-24] ldr r3, [fp, #-72] add r3, r3, #1 lsl r3, r3, #2 mov r0, r3 bl malloc mov r3, r0 str r3, [fp, #-20] mov r3, #0 str r3, [fp, #-68] b .L2 .L3: ldr r3, [fp, #-68] lsl r3, r3, #2 ldr r2, [fp, #-24] add r4, r2, r3 mov r1, #4 mov r0, #3 bl calloc mov r3, r0 str r3, [r4] ldr r3, [fp, #-68] lsl r3, r3, #2 ldr r2, [fp, #-20] add r4, r2, r3 mov r1, #4 mov r0, #3 bl calloc mov r3, r0 str r3, [r4] ldr r3, [fp, #-68] add r3, r3, #1 str r3, [fp, #-68] .L2: ldr r2, [fp, #-68] ldr r3, [fp, #-72] cmp r2, r3 ble .L3 ldr r3, [fp, #-24] ldr r3, [r3] add r2, r3, #8 mov r3, #0 str r3, [r2] ldr r3, [fp, #-24] ldr r3, [r3] add r3, r3, #4 ldr r2, [r2] str r2, [r3] ldr r2, [fp, #-24] ldr r2, [r2] ldr r3, [r3] str r3, [r2] ldr r3, [fp, #-20] ldr r3, [r3] add r2, r3, #8 mov r3, #0 str r3, [r2] ldr r3, [fp, #-20] ldr r3, [r3] add r3, r3, #4 ldr r2, [r2] str r2, [r3] ldr r2, [fp, #-20] ldr r2, [r2] ldr r3, [r3] str r3, [r2] mov r3, #1 str r3, [fp, #-64] b .L4 .L7: ldr r3, [fp, #-64] mul r2, r3, r3 ldr r3, [fp, #-64] sub r3, r2, r3 add r1, r3, #1 ldr r3, [fp, #-64] sub r3, r3, #-1073741823 lsl r3, r3, #2 ldr r2, [fp, #-28] add r0, r2, r3 ldr r3, .L24 smull ip, r2, r3, r1 asr r3, r1, #31 sub r2, r2, r3 mov r3, r2 lsl r3, r3, #1 add r3, r3, r2 sub r2, r1, r3 str r2, [r0] mov r3, #0 str r3, [fp, #-60] b .L5 .L6: ldr r3, [fp, #-64] sub r3, r3, #-1073741823 lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-60] lsl r3, r3, #2 add r2, r2, r3 ldr r3, [fp, #-64] lsl r3, r3, #2 ldr r1, [fp, #-24] add r3, r1, r3 ldr r1, [r3] ldr r3, [fp, #-60] lsl r3, r3, #2 add r3, r1, r3 ldr r2, [r2] str r2, [r3] ldr r3, [fp, #-60] add r3, r3, #1 str r3, [fp, #-60] .L5: ldr r3, [fp, #-60] cmp r3, #2 ble .L6 ldr r3, [fp, #-64] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-64] sub r3, r3, #-1073741823 lsl r3, r3, #2 ldr r1, [fp, #-28] add r3, r1, r3 ldr r3, [r3] lsl r3, r3, #2 add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-64] lsl r3, r3, #2 ldr r1, [fp, #-24] add r3, r1, r3 ldr r1, [r3] ldr r3, [fp, #-64] sub r3, r3, #-1073741823 lsl r3, r3, #2 ldr r0, [fp, #-28] add r3, r0, r3 ldr r3, [r3] lsl r3, r3, #2 add r3, r1, r3 add r2, r2, #1 str r2, [r3] ldr r3, [fp, #-64] add r3, r3, #1 str r3, [fp, #-64] .L4: ldr r2, [fp, #-64] ldr r3, [fp, #-72] cmp r2, r3 ble .L7 mov r3, #1 str r3, [fp, #-56] b .L8 .L20: mov r3, #1 str r3, [fp, #-52] b .L9 .L15: mov r3, #0 str r3, [fp, #-48] b .L10 .L11: ldr r3, [fp, #-52] sub r3, r3, #-1073741823 lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-48] lsl r3, r3, #2 add r2, r2, r3 ldr r3, [fp, #-52] lsl r3, r3, #2 ldr r1, [fp, #-20] add r3, r1, r3 ldr r1, [r3] ldr r3, [fp, #-48] lsl r3, r3, #2 add r3, r1, r3 ldr r2, [r2] str r2, [r3] ldr r3, [fp, #-48] add r3, r3, #1 str r3, [fp, #-48] .L10: ldr r3, [fp, #-48] cmp r3, #2 ble .L11 ldr r3, [fp, #-52] cmp r3, #0 ble .L12 mov r3, #0 str r3, [fp, #-44] b .L13 .L14: ldr r3, [fp, #-52] lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r0, [r3] ldr r3, [fp, #-52] sub r3, r3, #-1073741823 lsl r3, r3, #2 ldr r2, [fp, #-28] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-44] add r2, r2, r3 ldr r3, .L24 smull ip, r1, r3, r2 asr r3, r2, #31 sub r1, r1, r3 mov r3, r1 lsl r3, r3, #1 add r3, r3, r1 sub r1, r2, r3 mov r3, r1 lsl r3, r3, #2 add r3, r0, r3 ldr r0, [r3] ldr r3, [fp, #-52] sub r3, r3, #-1073741823 lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-44] lsl r3, r3, #2 add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-52] lsl r3, r3, #2 ldr ip, [fp, #-20] add r3, ip, r3 ldr ip, [r3] mov r3, r1 lsl r3, r3, #2 add r3, ip, r3 add r2, r0, r2 str r2, [r3] ldr r3, [fp, #-44] add r3, r3, #1 str r3, [fp, #-44] .L13: ldr r3, [fp, #-44] cmp r3, #2 ble .L14 .L12: ldr r3, [fp, #-52] add r3, r3, #1 str r3, [fp, #-52] .L9: ldr r2, [fp, #-52] ldr r3, [fp, #-72] cmp r2, r3 ble .L15 mov r3, #0 str r3, [fp, #-40] b .L16 .L19: mov r3, #0 str r3, [fp, #-36] b .L17 .L18: ldr r3, [fp, #-40] lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-36] lsl r3, r3, #2 add r2, r2, r3 ldr r3, [fp, #-40] lsl r3, r3, #2 ldr r1, [fp, #-24] add r3, r1, r3 ldr r1, [r3] ldr r3, [fp, #-36] lsl r3, r3, #2 add r3, r1, r3 ldr r2, [r2] str r2, [r3] ldr r3, [fp, #-40] lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-36] lsl r3, r3, #2 add r3, r2, r3 mov r2, #0 str r2, [r3] ldr r3, [fp, #-36] add r3, r3, #1 str r3, [fp, #-36] .L17: ldr r3, [fp, #-36] cmp r3, #2 ble .L18 ldr r3, [fp, #-40] add r3, r3, #1 str r3, [fp, #-40] .L16: ldr r2, [fp, #-40] ldr r3, [fp, #-72] cmp r2, r3 ble .L19 ldr r3, [fp, #-56] add r3, r3, #1 str r3, [fp, #-56] .L8: ldr r3, [fp, #-56] cmp r3, #2 ble .L20 ldr r3, [fp, #-72] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r3, [r3] ldr r3, [r3] str r3, [fp, #-16] mov r3, #0 str r3, [fp, #-32] b .L21 .L22: ldr r3, [fp, #-32] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r3, [r3] mov r0, r3 bl free ldr r3, [fp, #-32] lsl r3, r3, #2 ldr r2, [fp, #-20] add r3, r2, r3 ldr r3, [r3] mov r0, r3 bl free ldr r3, [fp, #-32] add r3, r3, #1 str r3, [fp, #-32] .L21: ldr r2, [fp, #-32] ldr r3, [fp, #-72] cmp r2, r3 ble .L22 ldr r0, [fp, #-24] bl free ldr r0, [fp, #-20] bl free ldr r0, [fp, #-28] bl free ldr r3, [fp, #-16] mov r0, r3 sub sp, fp, #8 @ sp needed pop {r4, fp, pc} .L25: .align 2 .L24: .word 1431655766 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem137/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -24[rbp], rdi mov DWORD PTR -28[rbp], esi mov QWORD PTR -40[rbp], rdx mov DWORD PTR -12[rbp], 0 mov DWORD PTR -8[rbp], 0 mov DWORD PTR -4[rbp], 0 jmp .L2 .L7: mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov eax, DWORD PTR [rax] test eax, eax jns .L3 cmp DWORD PTR -12[rbp], 0 je .L4 mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov eax, DWORD PTR [rax] cmp DWORD PTR -12[rbp], eax jge .L3 .L4: mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov eax, DWORD PTR [rax] mov DWORD PTR -12[rbp], eax .L3: mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov eax, DWORD PTR [rax] test eax, eax jle .L5 cmp DWORD PTR -8[rbp], 0 je .L6 mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov eax, DWORD PTR [rax] cmp DWORD PTR -8[rbp], eax jle .L5 .L6: mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov eax, DWORD PTR [rax] mov DWORD PTR -8[rbp], eax .L5: add DWORD PTR -4[rbp], 1 .L2: mov eax, DWORD PTR -4[rbp] cmp eax, DWORD PTR -28[rbp] jl .L7 mov rax, QWORD PTR -40[rbp] mov edx, DWORD PTR -12[rbp] mov DWORD PTR [rax], edx mov rax, QWORD PTR -40[rbp] lea rdx, 4[rax] mov eax, DWORD PTR -8[rbp] mov DWORD PTR [rdx], eax nop pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 32 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #36 str r0, [fp, #-24] str r1, [fp, #-28] str r2, [fp, #-32] mov r3, #0 str r3, [fp, #-16] mov r3, #0 str r3, [fp, #-12] mov r3, #0 str r3, [fp, #-8] b .L2 .L7: ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r3, [r3] cmp r3, #0 bge .L3 ldr r3, [fp, #-16] cmp r3, #0 beq .L4 ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r3, [r3] ldr r2, [fp, #-16] cmp r2, r3 bge .L3 .L4: ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r3, [r3] str r3, [fp, #-16] .L3: ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r3, [r3] cmp r3, #0 ble .L5 ldr r3, [fp, #-12] cmp r3, #0 beq .L6 ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r3, [r3] ldr r2, [fp, #-12] cmp r2, r3 ble .L5 .L6: ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r3, [r3] str r3, [fp, #-12] .L5: ldr r3, [fp, #-8] add r3, r3, #1 str r3, [fp, #-8] .L2: ldr r2, [fp, #-8] ldr r3, [fp, #-28] cmp r2, r3 blt .L7 ldr r3, [fp, #-32] ldr r2, [fp, #-16] str r2, [r3] ldr r3, [fp, #-32] add r3, r3, #4 ldr r2, [fp, #-12] str r2, [r3] nop add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem59/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 64 mov QWORD PTR -40[rbp], rdi mov DWORD PTR -44[rbp], esi mov QWORD PTR -56[rbp], rdx mov DWORD PTR -48[rbp], ecx mov QWORD PTR -64[rbp], r8 mov eax, DWORD PTR -44[rbp] cdqe sal rax, 2 mov rdi, rax call malloc@PLT mov QWORD PTR -8[rbp], rax mov DWORD PTR -32[rbp], 0 mov DWORD PTR -28[rbp], 0 jmp .L2 .L11: mov DWORD PTR -16[rbp], 0 mov DWORD PTR -20[rbp], 0 jmp .L3 .L6: mov eax, DWORD PTR -20[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -28[rbp] cdqe lea rcx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rcx mov eax, DWORD PTR [rax] cmp edx, eax jne .L4 mov DWORD PTR -16[rbp], 1 jmp .L5 .L4: add DWORD PTR -20[rbp], 1 .L3: mov eax, DWORD PTR -20[rbp] cmp eax, DWORD PTR -32[rbp] jl .L6 .L5: cmp DWORD PTR -16[rbp], 0 jne .L7 mov DWORD PTR -24[rbp], 0 jmp .L8 .L10: mov eax, DWORD PTR -28[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -24[rbp] cdqe lea rcx, 0[0+rax*4] mov rax, QWORD PTR -56[rbp] add rax, rcx mov eax, DWORD PTR [rax] cmp edx, eax jne .L9 mov eax, DWORD PTR -28[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] lea rcx, [rdx+rax] mov eax, DWORD PTR -32[rbp] lea edx, 1[rax] mov DWORD PTR -32[rbp], edx cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rdx, rax mov eax, DWORD PTR [rcx] mov DWORD PTR [rdx], eax jmp .L7 .L9: add DWORD PTR -24[rbp], 1 .L8: mov eax, DWORD PTR -24[rbp] cmp eax, DWORD PTR -48[rbp] jl .L10 .L7: add DWORD PTR -28[rbp], 1 .L2: mov eax, DWORD PTR -28[rbp] cmp eax, DWORD PTR -44[rbp] jl .L11 mov DWORD PTR -28[rbp], 0 jmp .L12 .L16: mov DWORD PTR -24[rbp], 0 jmp .L13 .L15: mov eax, DWORD PTR -24[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -24[rbp] cdqe add rax, 1 lea rcx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rcx mov eax, DWORD PTR [rax] cmp edx, eax jle .L14 mov eax, DWORD PTR -24[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov eax, DWORD PTR [rax] mov DWORD PTR -12[rbp], eax mov eax, DWORD PTR -24[rbp] cdqe add rax, 1 lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov edx, DWORD PTR -24[rbp] movsx rdx, edx lea rcx, 0[0+rdx*4] mov rdx, QWORD PTR -8[rbp] add rdx, rcx mov eax, DWORD PTR [rax] mov DWORD PTR [rdx], eax mov eax, DWORD PTR -24[rbp] cdqe add rax, 1 lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rdx, rax mov eax, DWORD PTR -12[rbp] mov DWORD PTR [rdx], eax .L14: add DWORD PTR -24[rbp], 1 .L13: mov eax, DWORD PTR -32[rbp] sub eax, DWORD PTR -28[rbp] sub eax, 1 cmp DWORD PTR -24[rbp], eax jl .L15 add DWORD PTR -28[rbp], 1 .L12: mov eax, DWORD PTR -32[rbp] sub eax, 1 cmp DWORD PTR -28[rbp], eax jl .L16 mov rax, QWORD PTR -64[rbp] mov edx, DWORD PTR -32[rbp] mov DWORD PTR [rax], edx mov rax, QWORD PTR -8[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 4, pretend = 0, frame = 48 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #48 str r0, [fp, #-40] str r1, [fp, #-44] str r2, [fp, #-48] str r3, [fp, #-52] ldr r3, [fp, #-44] lsl r3, r3, #2 mov r0, r3 bl malloc mov r3, r0 str r3, [fp, #-12] mov r3, #0 str r3, [fp, #-32] mov r3, #0 str r3, [fp, #-28] b .L2 .L11: mov r3, #0 str r3, [fp, #-16] mov r3, #0 str r3, [fp, #-20] b .L3 .L6: ldr r3, [fp, #-20] lsl r3, r3, #2 ldr r2, [fp, #-12] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-28] lsl r3, r3, #2 ldr r1, [fp, #-40] add r3, r1, r3 ldr r3, [r3] cmp r2, r3 bne .L4 mov r3, #1 str r3, [fp, #-16] b .L5 .L4: ldr r3, [fp, #-20] add r3, r3, #1 str r3, [fp, #-20] .L3: ldr r2, [fp, #-20] ldr r3, [fp, #-32] cmp r2, r3 blt .L6 .L5: ldr r3, [fp, #-16] cmp r3, #0 bne .L7 mov r3, #0 str r3, [fp, #-24] b .L8 .L10: ldr r3, [fp, #-28] lsl r3, r3, #2 ldr r2, [fp, #-40] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-24] lsl r3, r3, #2 ldr r1, [fp, #-48] add r3, r1, r3 ldr r3, [r3] cmp r2, r3 bne .L9 ldr r3, [fp, #-28] lsl r3, r3, #2 ldr r2, [fp, #-40] add r2, r2, r3 ldr r3, [fp, #-32] add r1, r3, #1 str r1, [fp, #-32] lsl r3, r3, #2 ldr r1, [fp, #-12] add r3, r1, r3 ldr r2, [r2] str r2, [r3] b .L7 .L9: ldr r3, [fp, #-24] add r3, r3, #1 str r3, [fp, #-24] .L8: ldr r2, [fp, #-24] ldr r3, [fp, #-52] cmp r2, r3 blt .L10 .L7: ldr r3, [fp, #-28] add r3, r3, #1 str r3, [fp, #-28] .L2: ldr r2, [fp, #-28] ldr r3, [fp, #-44] cmp r2, r3 blt .L11 mov r3, #0 str r3, [fp, #-28] b .L12 .L16: mov r3, #0 str r3, [fp, #-24] b .L13 .L15: ldr r3, [fp, #-24] lsl r3, r3, #2 ldr r2, [fp, #-12] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-24] add r3, r3, #1 lsl r3, r3, #2 ldr r1, [fp, #-12] add r3, r1, r3 ldr r3, [r3] cmp r2, r3 ble .L14 ldr r3, [fp, #-24] lsl r3, r3, #2 ldr r2, [fp, #-12] add r3, r2, r3 ldr r3, [r3] str r3, [fp, #-8] ldr r3, [fp, #-24] add r3, r3, #1 lsl r3, r3, #2 ldr r2, [fp, #-12] add r2, r2, r3 ldr r3, [fp, #-24] lsl r3, r3, #2 ldr r1, [fp, #-12] add r3, r1, r3 ldr r2, [r2] str r2, [r3] ldr r3, [fp, #-24] add r3, r3, #1 lsl r3, r3, #2 ldr r2, [fp, #-12] add r3, r2, r3 ldr r2, [fp, #-8] str r2, [r3] .L14: ldr r3, [fp, #-24] add r3, r3, #1 str r3, [fp, #-24] .L13: ldr r2, [fp, #-32] ldr r3, [fp, #-28] sub r3, r2, r3 sub r3, r3, #1 ldr r2, [fp, #-24] cmp r2, r3 blt .L15 ldr r3, [fp, #-28] add r3, r3, #1 str r3, [fp, #-28] .L12: ldr r3, [fp, #-32] sub r3, r3, #1 ldr r2, [fp, #-28] cmp r2, r3 blt .L16 ldr r3, [fp, #4] ldr r2, [fp, #-32] str r2, [r3] ldr r3, [fp, #-12] mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem132/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov DWORD PTR -20[rbp], edi mov DWORD PTR -12[rbp], 1 mov DWORD PTR -8[rbp], 0 jmp .L2 .L4: mov edx, DWORD PTR -20[rbp] movsx rax, edx imul rax, rax, 1717986919 shr rax, 32 mov ecx, eax sar ecx, 2 mov eax, edx sar eax, 31 sub ecx, eax mov eax, ecx sal eax, 2 add eax, ecx add eax, eax sub edx, eax mov eax, edx mov DWORD PTR -4[rbp], eax mov eax, DWORD PTR -4[rbp] cdq shr edx, 31 add eax, edx and eax, 1 sub eax, edx cmp eax, 1 jne .L3 mov DWORD PTR -8[rbp], 1 mov eax, DWORD PTR -12[rbp] imul eax, DWORD PTR -4[rbp] mov DWORD PTR -12[rbp], eax .L3: mov eax, DWORD PTR -20[rbp] movsx rdx, eax imul rdx, rdx, 1717986919 shr rdx, 32 sar edx, 2 sar eax, 31 sub edx, eax mov eax, edx mov DWORD PTR -20[rbp], eax .L2: cmp DWORD PTR -20[rbp], 0 jg .L4 cmp DWORD PTR -8[rbp], 0 je .L5 mov eax, DWORD PTR -12[rbp] jmp .L7 .L5: mov eax, 0 .L7: pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 24 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #28 str r0, [fp, #-24] mov r3, #1 str r3, [fp, #-16] mov r3, #0 str r3, [fp, #-12] b .L2 .L4: ldr r2, [fp, #-24] ldr r3, .L8 smull r1, r3, r2, r3 asr r1, r3, #2 asr r3, r2, #31 sub r1, r1, r3 mov r3, r1 lsl r3, r3, #2 add r3, r3, r1 lsl r3, r3, #1 sub r3, r2, r3 str r3, [fp, #-8] ldr r3, [fp, #-8] cmp r3, #0 and r3, r3, #1 rsblt r3, r3, #0 cmp r3, #1 bne .L3 mov r3, #1 str r3, [fp, #-12] ldr r3, [fp, #-16] ldr r2, [fp, #-8] mul r3, r2, r3 str r3, [fp, #-16] .L3: ldr r3, [fp, #-24] ldr r2, .L8 smull r1, r2, r3, r2 asr r2, r2, #2 asr r3, r3, #31 sub r3, r2, r3 str r3, [fp, #-24] .L2: ldr r3, [fp, #-24] cmp r3, #0 bgt .L4 ldr r3, [fp, #-12] cmp r3, #0 beq .L5 ldr r3, [fp, #-16] b .L7 .L5: mov r3, #0 .L7: mov r0, r3 add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .L9: .align 2 .L8: .word 1717986919 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem46/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 movss DWORD PTR -4[rbp], xmm0 movss DWORD PTR -8[rbp], xmm1 movss xmm0, DWORD PTR -4[rbp] movaps xmm1, xmm0 mulss xmm1, DWORD PTR -8[rbp] movss xmm0, DWORD PTR .LC0[rip] mulss xmm0, xmm1 pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .section .rodata .align 4 .LC0: .long 1056964608 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .global __aeabi_fmul .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 8 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #8 str r0, [fp, #-8] @ float str r1, [fp, #-12] @ float ldr r1, [fp, #-12] @ float ldr r0, [fp, #-8] @ float bl __aeabi_fmul mov r3, r0 mov r1, #1056964608 mov r0, r3 bl __aeabi_fmul mov r3, r0 mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem117/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -40[rbp], rdi mov DWORD PTR -44[rbp], esi mov DWORD PTR -12[rbp], 0 jmp .L2 .L11: mov eax, DWORD PTR -12[rbp] add eax, 1 mov DWORD PTR -8[rbp], eax jmp .L3 .L10: mov DWORD PTR -24[rbp], 0 mov eax, DWORD PTR -12[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rdx mov eax, DWORD PTR [rax] mov DWORD PTR -20[rbp], eax mov eax, DWORD PTR -8[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rdx mov eax, DWORD PTR [rax] mov DWORD PTR -16[rbp], eax jmp .L4 .L5: mov eax, DWORD PTR -20[rbp] and eax, 1 add DWORD PTR -24[rbp], eax sar DWORD PTR -20[rbp] .L4: cmp DWORD PTR -20[rbp], 0 jg .L5 mov eax, DWORD PTR -24[rbp] mov DWORD PTR -20[rbp], eax mov DWORD PTR -24[rbp], 0 jmp .L6 .L7: mov eax, DWORD PTR -16[rbp] and eax, 1 add DWORD PTR -24[rbp], eax sar DWORD PTR -16[rbp] .L6: cmp DWORD PTR -16[rbp], 0 jg .L7 mov eax, DWORD PTR -24[rbp] mov DWORD PTR -16[rbp], eax mov eax, DWORD PTR -16[rbp] cmp eax, DWORD PTR -20[rbp] jl .L8 mov eax, DWORD PTR -16[rbp] cmp eax, DWORD PTR -20[rbp] jne .L9 mov eax, DWORD PTR -8[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -12[rbp] cdqe lea rcx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rcx mov eax, DWORD PTR [rax] cmp edx, eax jge .L9 .L8: mov eax, DWORD PTR -12[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rdx mov eax, DWORD PTR [rax] mov DWORD PTR -4[rbp], eax mov eax, DWORD PTR -8[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rdx mov edx, DWORD PTR -12[rbp] movsx rdx, edx lea rcx, 0[0+rdx*4] mov rdx, QWORD PTR -40[rbp] add rdx, rcx mov eax, DWORD PTR [rax] mov DWORD PTR [rdx], eax mov eax, DWORD PTR -8[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rdx, rax mov eax, DWORD PTR -4[rbp] mov DWORD PTR [rdx], eax .L9: add DWORD PTR -8[rbp], 1 .L3: mov eax, DWORD PTR -8[rbp] cmp eax, DWORD PTR -44[rbp] jl .L10 add DWORD PTR -12[rbp], 1 .L2: mov eax, DWORD PTR -12[rbp] cmp eax, DWORD PTR -44[rbp] jl .L11 nop nop pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 32 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #36 str r0, [fp, #-32] str r1, [fp, #-36] mov r3, #0 str r3, [fp, #-16] b .L2 .L11: ldr r3, [fp, #-16] add r3, r3, #1 str r3, [fp, #-12] b .L3 .L10: mov r3, #0 str r3, [fp, #-28] ldr r3, [fp, #-16] lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r3, [r3] str r3, [fp, #-24] ldr r3, [fp, #-12] lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r3, [r3] str r3, [fp, #-20] b .L4 .L5: ldr r3, [fp, #-24] and r3, r3, #1 ldr r2, [fp, #-28] add r3, r2, r3 str r3, [fp, #-28] ldr r3, [fp, #-24] asr r3, r3, #1 str r3, [fp, #-24] .L4: ldr r3, [fp, #-24] cmp r3, #0 bgt .L5 ldr r3, [fp, #-28] str r3, [fp, #-24] mov r3, #0 str r3, [fp, #-28] b .L6 .L7: ldr r3, [fp, #-20] and r3, r3, #1 ldr r2, [fp, #-28] add r3, r2, r3 str r3, [fp, #-28] ldr r3, [fp, #-20] asr r3, r3, #1 str r3, [fp, #-20] .L6: ldr r3, [fp, #-20] cmp r3, #0 bgt .L7 ldr r3, [fp, #-28] str r3, [fp, #-20] ldr r2, [fp, #-20] ldr r3, [fp, #-24] cmp r2, r3 blt .L8 ldr r2, [fp, #-20] ldr r3, [fp, #-24] cmp r2, r3 bne .L9 ldr r3, [fp, #-12] lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-16] lsl r3, r3, #2 ldr r1, [fp, #-32] add r3, r1, r3 ldr r3, [r3] cmp r2, r3 bge .L9 .L8: ldr r3, [fp, #-16] lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r3, [r3] str r3, [fp, #-8] ldr r3, [fp, #-12] lsl r3, r3, #2 ldr r2, [fp, #-32] add r2, r2, r3 ldr r3, [fp, #-16] lsl r3, r3, #2 ldr r1, [fp, #-32] add r3, r1, r3 ldr r2, [r2] str r2, [r3] ldr r3, [fp, #-12] lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r2, [fp, #-8] str r2, [r3] .L9: ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L3: ldr r2, [fp, #-12] ldr r3, [fp, #-36] cmp r2, r3 blt .L10 ldr r3, [fp, #-16] add r3, r3, #1 str r3, [fp, #-16] .L2: ldr r2, [fp, #-16] ldr r3, [fp, #-36] cmp r2, r3 blt .L11 nop nop add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem69/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -24[rbp], rdi mov DWORD PTR -28[rbp], esi mov QWORD PTR -40[rbp], rdx mov DWORD PTR -12[rbp], 2147483647 mov DWORD PTR -8[rbp], -1 mov DWORD PTR -4[rbp], 0 jmp .L2 .L5: mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov eax, DWORD PTR [rax] and eax, 1 test eax, eax jne .L3 mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov eax, DWORD PTR [rax] cmp DWORD PTR -12[rbp], eax jg .L4 cmp DWORD PTR -8[rbp], -1 jne .L3 .L4: mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov eax, DWORD PTR [rax] mov DWORD PTR -12[rbp], eax mov eax, DWORD PTR -4[rbp] mov DWORD PTR -8[rbp], eax .L3: add DWORD PTR -4[rbp], 1 .L2: mov eax, DWORD PTR -4[rbp] cmp eax, DWORD PTR -28[rbp] jl .L5 cmp DWORD PTR -8[rbp], -1 jne .L6 mov eax, 0 jmp .L7 .L6: mov rax, QWORD PTR -40[rbp] mov edx, DWORD PTR -12[rbp] mov DWORD PTR [rax], edx mov rax, QWORD PTR -40[rbp] lea rdx, 4[rax] mov eax, DWORD PTR -8[rbp] mov DWORD PTR [rdx], eax mov rax, QWORD PTR -40[rbp] .L7: pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 32 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #36 str r0, [fp, #-24] str r1, [fp, #-28] str r2, [fp, #-32] mvn r3, #-2147483648 str r3, [fp, #-16] mvn r3, #0 str r3, [fp, #-12] mov r3, #0 str r3, [fp, #-8] b .L2 .L5: ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r3, [r3] and r3, r3, #1 cmp r3, #0 bne .L3 ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r3, [r3] ldr r2, [fp, #-16] cmp r2, r3 bgt .L4 ldr r3, [fp, #-12] cmn r3, #1 bne .L3 .L4: ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r3, [r3] str r3, [fp, #-16] ldr r3, [fp, #-8] str r3, [fp, #-12] .L3: ldr r3, [fp, #-8] add r3, r3, #1 str r3, [fp, #-8] .L2: ldr r2, [fp, #-8] ldr r3, [fp, #-28] cmp r2, r3 blt .L5 ldr r3, [fp, #-12] cmn r3, #1 bne .L6 mov r3, #0 b .L7 .L6: ldr r3, [fp, #-32] ldr r2, [fp, #-16] str r2, [r3] ldr r3, [fp, #-32] add r3, r3, #4 ldr r2, [fp, #-12] str r2, [r3] ldr r3, [fp, #-32] .L7: mov r0, r3 add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem96/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -40[rbp], rdi mov DWORD PTR -44[rbp], esi cmp DWORD PTR -44[rbp], 0 jne .L2 mov eax, 0 jmp .L3 .L2: mov DWORD PTR -24[rbp], 0 mov DWORD PTR -20[rbp], 0 mov DWORD PTR -16[rbp], 0 jmp .L4 .L11: mov eax, DWORD PTR -16[rbp] cdqe sal rax, 4 mov rdx, rax mov rax, QWORD PTR -40[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov QWORD PTR -8[rbp], rax mov DWORD PTR -12[rbp], 0 jmp .L5 .L10: call __ctype_b_loc@PLT mov rax, QWORD PTR [rax] mov edx, DWORD PTR -12[rbp] movsx rcx, edx mov rdx, QWORD PTR -8[rbp] add rdx, rcx movzx edx, BYTE PTR [rdx] movzx edx, dl add rdx, rdx add rax, rdx movzx eax, WORD PTR [rax] movzx eax, ax and eax, 1024 test eax, eax jne .L6 mov eax, 0 jmp .L3 .L6: call __ctype_b_loc@PLT mov rax, QWORD PTR [rax] mov edx, DWORD PTR -12[rbp] movsx rcx, edx mov rdx, QWORD PTR -8[rbp] add rdx, rcx movzx edx, BYTE PTR [rdx] movzx edx, dl add rdx, rdx add rax, rdx movzx eax, WORD PTR [rax] movzx eax, ax and eax, 256 test eax, eax je .L7 mov DWORD PTR -20[rbp], 1 .L7: call __ctype_b_loc@PLT mov rax, QWORD PTR [rax] mov edx, DWORD PTR -12[rbp] movsx rcx, edx mov rdx, QWORD PTR -8[rbp] add rdx, rcx movzx edx, BYTE PTR [rdx] movzx edx, dl add rdx, rdx add rax, rdx movzx eax, WORD PTR [rax] movzx eax, ax and eax, 512 test eax, eax je .L8 mov DWORD PTR -24[rbp], 1 .L8: mov edx, DWORD PTR -20[rbp] mov eax, DWORD PTR -24[rbp] add eax, edx cmp eax, 2 jne .L9 mov eax, 0 jmp .L3 .L9: add DWORD PTR -12[rbp], 1 .L5: mov eax, DWORD PTR -12[rbp] movsx rdx, eax mov rax, QWORD PTR -8[rbp] add rax, rdx movzx eax, BYTE PTR [rax] test al, al jne .L10 add DWORD PTR -16[rbp], 1 .L4: mov eax, DWORD PTR -16[rbp] cmp eax, DWORD PTR -44[rbp] jl .L11 mov eax, 1 .L3: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 32 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #32 str r0, [fp, #-32] str r1, [fp, #-36] ldr r3, [fp, #-36] cmp r3, #0 bne .L2 mov r3, #0 b .L3 .L2: mov r3, #0 str r3, [fp, #-24] mov r3, #0 str r3, [fp, #-20] mov r3, #0 str r3, [fp, #-16] b .L4 .L11: ldr r3, [fp, #-16] lsl r3, r3, #3 ldr r2, [fp, #-32] add r3, r2, r3 ldr r3, [r3] str r3, [fp, #-8] mov r3, #0 str r3, [fp, #-12] b .L5 .L10: bl __ctype_b_loc mov r3, r0 ldr r2, [r3] ldr r3, [fp, #-12] ldr r1, [fp, #-8] add r3, r1, r3 ldrb r3, [r3] @ zero_extendqisi2 lsl r3, r3, #1 add r3, r2, r3 ldrh r3, [r3] and r3, r3, #1024 cmp r3, #0 bne .L6 mov r3, #0 b .L3 .L6: bl __ctype_b_loc mov r3, r0 ldr r2, [r3] ldr r3, [fp, #-12] ldr r1, [fp, #-8] add r3, r1, r3 ldrb r3, [r3] @ zero_extendqisi2 lsl r3, r3, #1 add r3, r2, r3 ldrh r3, [r3] and r3, r3, #256 cmp r3, #0 beq .L7 mov r3, #1 str r3, [fp, #-20] .L7: bl __ctype_b_loc mov r3, r0 ldr r2, [r3] ldr r3, [fp, #-12] ldr r1, [fp, #-8] add r3, r1, r3 ldrb r3, [r3] @ zero_extendqisi2 lsl r3, r3, #1 add r3, r2, r3 ldrh r3, [r3] and r3, r3, #512 cmp r3, #0 beq .L8 mov r3, #1 str r3, [fp, #-24] .L8: ldr r2, [fp, #-20] ldr r3, [fp, #-24] add r3, r2, r3 cmp r3, #2 bne .L9 mov r3, #0 b .L3 .L9: ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L5: ldr r3, [fp, #-12] ldr r2, [fp, #-8] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #0 bne .L10 ldr r3, [fp, #-16] add r3, r3, #1 str r3, [fp, #-16] .L4: ldr r2, [fp, #-16] ldr r3, [fp, #-36] cmp r2, r3 blt .L11 mov r3, #1 .L3: mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem49/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov rax, QWORD PTR -24[rbp] mov rdi, rax call strlen@PLT mov DWORD PTR -4[rbp], eax mov DWORD PTR -8[rbp], 0 jmp .L2 .L5: mov eax, DWORD PTR -8[rbp] movsx rdx, eax mov rax, QWORD PTR -24[rbp] add rax, rdx movzx edx, BYTE PTR [rax] mov eax, DWORD PTR -4[rbp] sub eax, 1 sub eax, DWORD PTR -8[rbp] movsx rcx, eax mov rax, QWORD PTR -24[rbp] add rax, rcx movzx eax, BYTE PTR [rax] cmp dl, al je .L3 mov eax, 0 jmp .L4 .L3: add DWORD PTR -8[rbp], 1 .L2: mov eax, DWORD PTR -4[rbp] mov edx, eax shr edx, 31 add eax, edx sar eax cmp DWORD PTR -8[rbp], eax jl .L5 mov eax, 1 .L4: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 16 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #16 str r0, [fp, #-16] ldr r0, [fp, #-16] bl strlen mov r3, r0 str r3, [fp, #-8] mov r3, #0 str r3, [fp, #-12] b .L2 .L5: ldr r3, [fp, #-12] ldr r2, [fp, #-16] add r3, r2, r3 ldrb r2, [r3] @ zero_extendqisi2 ldr r3, [fp, #-8] sub r1, r3, #1 ldr r3, [fp, #-12] sub r3, r1, r3 mov r1, r3 ldr r3, [fp, #-16] add r3, r3, r1 ldrb r3, [r3] @ zero_extendqisi2 cmp r2, r3 beq .L3 mov r3, #0 b .L4 .L3: ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L2: ldr r3, [fp, #-8] lsr r2, r3, #31 add r3, r2, r3 asr r3, r3, #1 mov r2, r3 ldr r3, [fp, #-12] cmp r3, r2 blt .L5 mov r3, #1 .L4: mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem38/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 64 mov QWORD PTR -40[rbp], rdi mov DWORD PTR -44[rbp], esi mov QWORD PTR -56[rbp], rdx mov eax, DWORD PTR -44[rbp] mov edx, eax shr edx, 31 add eax, edx sar eax add eax, 1 cdqe sal rax, 2 mov rdi, rax call malloc@PLT mov QWORD PTR -8[rbp], rax mov DWORD PTR -16[rbp], 0 mov DWORD PTR -24[rbp], 0 jmp .L2 .L3: mov eax, DWORD PTR -24[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] lea rcx, [rdx+rax] mov eax, DWORD PTR -16[rbp] lea edx, 1[rax] mov DWORD PTR -16[rbp], edx cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx movss xmm0, DWORD PTR [rcx] movss DWORD PTR [rax], xmm0 add DWORD PTR -24[rbp], 2 .L2: mov eax, DWORD PTR -24[rbp] cmp eax, DWORD PTR -44[rbp] jl .L3 mov DWORD PTR -24[rbp], 0 jmp .L4 .L9: mov DWORD PTR -20[rbp], 0 jmp .L5 .L8: mov eax, DWORD PTR -20[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx movss xmm0, DWORD PTR [rax] mov eax, DWORD PTR -20[rbp] cdqe add rax, 1 lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx movss xmm1, DWORD PTR [rax] comiss xmm0, xmm1 jbe .L6 mov eax, DWORD PTR -20[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx movss xmm0, DWORD PTR [rax] movss DWORD PTR -12[rbp], xmm0 mov eax, DWORD PTR -20[rbp] cdqe add rax, 1 lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rdx, rax mov eax, DWORD PTR -20[rbp] cdqe lea rcx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rcx movss xmm0, DWORD PTR [rdx] movss DWORD PTR [rax], xmm0 mov eax, DWORD PTR -20[rbp] cdqe add rax, 1 lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx movss xmm0, DWORD PTR -12[rbp] movss DWORD PTR [rax], xmm0 .L6: add DWORD PTR -20[rbp], 1 .L5: mov eax, DWORD PTR -16[rbp] sub eax, DWORD PTR -24[rbp] sub eax, 1 cmp DWORD PTR -20[rbp], eax jl .L8 add DWORD PTR -24[rbp], 1 .L4: mov eax, DWORD PTR -16[rbp] sub eax, 1 cmp DWORD PTR -24[rbp], eax jl .L9 mov DWORD PTR -24[rbp], 0 jmp .L10 .L13: mov eax, DWORD PTR -24[rbp] and eax, 1 test eax, eax jne .L11 mov eax, DWORD PTR -24[rbp] mov edx, eax shr edx, 31 add eax, edx sar eax cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rdx, rax mov eax, DWORD PTR -24[rbp] cdqe lea rcx, 0[0+rax*4] mov rax, QWORD PTR -56[rbp] add rax, rcx movss xmm0, DWORD PTR [rdx] movss DWORD PTR [rax], xmm0 jmp .L12 .L11: mov eax, DWORD PTR -24[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rdx, rax mov eax, DWORD PTR -24[rbp] cdqe lea rcx, 0[0+rax*4] mov rax, QWORD PTR -56[rbp] add rax, rcx movss xmm0, DWORD PTR [rdx] movss DWORD PTR [rax], xmm0 .L12: add DWORD PTR -24[rbp], 1 .L10: mov eax, DWORD PTR -24[rbp] cmp eax, DWORD PTR -44[rbp] jl .L13 mov rax, QWORD PTR -8[rbp] mov rdi, rax call free@PLT nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .global __aeabi_fcmpgt .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 40 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #40 str r0, [fp, #-32] str r1, [fp, #-36] str r2, [fp, #-40] ldr r3, [fp, #-36] lsr r2, r3, #31 add r3, r2, r3 asr r3, r3, #1 add r3, r3, #1 lsl r3, r3, #2 mov r0, r3 bl malloc mov r3, r0 str r3, [fp, #-12] mov r3, #0 str r3, [fp, #-16] mov r3, #0 str r3, [fp, #-24] b .L2 .L3: ldr r3, [fp, #-24] lsl r3, r3, #2 ldr r2, [fp, #-32] add r2, r2, r3 ldr r3, [fp, #-16] add r1, r3, #1 str r1, [fp, #-16] lsl r3, r3, #2 ldr r1, [fp, #-12] add r3, r1, r3 ldr r2, [r2] @ float str r2, [r3] @ float ldr r3, [fp, #-24] add r3, r3, #2 str r3, [fp, #-24] .L2: ldr r2, [fp, #-24] ldr r3, [fp, #-36] cmp r2, r3 blt .L3 mov r3, #0 str r3, [fp, #-24] b .L4 .L9: mov r3, #0 str r3, [fp, #-20] b .L5 .L8: ldr r3, [fp, #-20] lsl r3, r3, #2 ldr r2, [fp, #-12] add r3, r2, r3 ldr r0, [r3] @ float ldr r3, [fp, #-20] add r3, r3, #1 lsl r3, r3, #2 ldr r2, [fp, #-12] add r3, r2, r3 ldr r3, [r3] @ float mov r1, r3 bl __aeabi_fcmpgt mov r3, r0 cmp r3, #0 beq .L6 ldr r3, [fp, #-20] lsl r3, r3, #2 ldr r2, [fp, #-12] add r3, r2, r3 ldr r3, [r3] @ float str r3, [fp, #-8] @ float ldr r3, [fp, #-20] add r3, r3, #1 lsl r3, r3, #2 ldr r2, [fp, #-12] add r2, r2, r3 ldr r3, [fp, #-20] lsl r3, r3, #2 ldr r1, [fp, #-12] add r3, r1, r3 ldr r2, [r2] @ float str r2, [r3] @ float ldr r3, [fp, #-20] add r3, r3, #1 lsl r3, r3, #2 ldr r2, [fp, #-12] add r3, r2, r3 ldr r2, [fp, #-8] @ float str r2, [r3] @ float .L6: ldr r3, [fp, #-20] add r3, r3, #1 str r3, [fp, #-20] .L5: ldr r2, [fp, #-16] ldr r3, [fp, #-24] sub r3, r2, r3 sub r3, r3, #1 ldr r2, [fp, #-20] cmp r2, r3 blt .L8 ldr r3, [fp, #-24] add r3, r3, #1 str r3, [fp, #-24] .L4: ldr r3, [fp, #-16] sub r3, r3, #1 ldr r2, [fp, #-24] cmp r2, r3 blt .L9 mov r3, #0 str r3, [fp, #-24] b .L10 .L13: ldr r3, [fp, #-24] and r3, r3, #1 cmp r3, #0 bne .L11 ldr r3, [fp, #-24] lsr r2, r3, #31 add r3, r2, r3 asr r3, r3, #1 lsl r3, r3, #2 ldr r2, [fp, #-12] add r2, r2, r3 ldr r3, [fp, #-24] lsl r3, r3, #2 ldr r1, [fp, #-40] add r3, r1, r3 ldr r2, [r2] @ float str r2, [r3] @ float b .L12 .L11: ldr r3, [fp, #-24] lsl r3, r3, #2 ldr r2, [fp, #-32] add r2, r2, r3 ldr r3, [fp, #-24] lsl r3, r3, #2 ldr r1, [fp, #-40] add r3, r1, r3 ldr r2, [r2] @ float str r2, [r3] @ float .L12: ldr r3, [fp, #-24] add r3, r3, #1 str r3, [fp, #-24] .L10: ldr r2, [fp, #-24] ldr r3, [fp, #-36] cmp r2, r3 blt .L13 ldr r0, [fp, #-12] bl free nop sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem76/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov DWORD PTR -20[rbp], edi cmp DWORD PTR -20[rbp], 1 jg .L2 mov eax, 0 jmp .L3 .L2: mov DWORD PTR -8[rbp], 0 mov DWORD PTR -4[rbp], 2 jmp .L4 .L6: mov eax, DWORD PTR -20[rbp] cdq idiv DWORD PTR -4[rbp] mov DWORD PTR -20[rbp], eax add DWORD PTR -8[rbp], 1 .L5: mov eax, DWORD PTR -20[rbp] cdq idiv DWORD PTR -4[rbp] mov eax, edx test eax, eax je .L6 add DWORD PTR -4[rbp], 1 .L4: mov eax, DWORD PTR -4[rbp] imul eax, eax cmp DWORD PTR -20[rbp], eax jge .L5 cmp DWORD PTR -20[rbp], 1 jle .L8 add DWORD PTR -8[rbp], 1 .L8: cmp DWORD PTR -8[rbp], 3 sete al movzx eax, al .L3: pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .global __aeabi_idiv .global __aeabi_idivmod .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 16 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #16 str r0, [fp, #-16] ldr r3, [fp, #-16] cmp r3, #1 bgt .L2 mov r3, #0 b .L3 .L2: mov r3, #0 str r3, [fp, #-12] mov r3, #2 str r3, [fp, #-8] b .L4 .L6: ldr r1, [fp, #-8] ldr r0, [fp, #-16] bl __aeabi_idiv mov r3, r0 str r3, [fp, #-16] ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L5: ldr r3, [fp, #-16] ldr r1, [fp, #-8] mov r0, r3 bl __aeabi_idivmod mov r3, r1 cmp r3, #0 beq .L6 ldr r3, [fp, #-8] add r3, r3, #1 str r3, [fp, #-8] .L4: ldr r3, [fp, #-8] mov r2, r3 mul r2, r3, r2 mov r3, r2 ldr r2, [fp, #-16] cmp r2, r3 bge .L5 ldr r3, [fp, #-16] cmp r3, #1 ble .L8 ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L8: ldr r3, [fp, #-12] cmp r3, #3 moveq r3, #1 movne r3, #0 and r3, r3, #255 .L3: mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem66/code.c
.file "code.c" .intel_syntax noprefix .text .section .rodata .LC0: .string "%d" .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 96 mov DWORD PTR -84[rbp], edi mov DWORD PTR -88[rbp], esi mov rax, QWORD PTR fs:40 mov QWORD PTR -8[rbp], rax xor eax, eax mov eax, DWORD PTR -84[rbp] mov edx, eax lea rsi, .LC0[rip] lea rdi, xs.3014[rip] mov eax, 0 call sprintf@PLT lea rdi, xs.3014[rip] call strlen@PLT mov DWORD PTR -68[rbp], eax mov eax, DWORD PTR -68[rbp] cmp eax, DWORD PTR -88[rbp] jge .L2 mov DWORD PTR -72[rbp], 0 jmp .L3 .L4: mov eax, DWORD PTR -72[rbp] cdqe lea rdx, xs.3014[rip] movzx eax, BYTE PTR [rax+rdx] mov BYTE PTR -73[rbp], al mov eax, DWORD PTR -68[rbp] sub eax, 1 sub eax, DWORD PTR -72[rbp] cdqe lea rdx, xs.3014[rip] movzx edx, BYTE PTR [rax+rdx] mov eax, DWORD PTR -72[rbp] cdqe lea rcx, xs.3014[rip] mov BYTE PTR [rax+rcx], dl mov eax, DWORD PTR -68[rbp] sub eax, 1 sub eax, DWORD PTR -72[rbp] cdqe lea rcx, xs.3014[rip] movzx edx, BYTE PTR -73[rbp] mov BYTE PTR [rax+rcx], dl add DWORD PTR -72[rbp], 1 .L3: mov eax, DWORD PTR -68[rbp] mov edx, eax shr edx, 31 add eax, edx sar eax cmp DWORD PTR -72[rbp], eax jl .L4 jmp .L5 .L2: mov eax, DWORD PTR -68[rbp] movsx rdx, eax mov eax, DWORD PTR -88[rbp] cdqe sub rdx, rax lea rax, xs.3014[rip] add rdx, rax lea rax, -64[rbp] mov rsi, rdx mov rdi, rax call strcpy@PLT mov eax, DWORD PTR -88[rbp] cdqe mov BYTE PTR -64[rbp+rax], 0 mov eax, DWORD PTR -68[rbp] sub eax, DWORD PTR -88[rbp] movsx rdx, eax lea rax, -64[rbp] lea rsi, xs.3014[rip] mov rdi, rax call strncat@PLT lea rax, -64[rbp] mov rsi, rax lea rdi, xs.3014[rip] call strcpy@PLT .L5: lea rax, xs.3014[rip] mov rcx, QWORD PTR -8[rbp] xor rcx, QWORD PTR fs:40 je .L7 call __stack_chk_fail@PLT .L7: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .local xs.3014 .comm xs.3014,50,32 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .section .rodata .align 2 .LC0: .ascii "%d\000" .align 2 .LC1: .word __stack_chk_guard .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 80 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #80 str r0, [fp, #-80] str r1, [fp, #-84] ldr r3, .L8 ldr r3, [r3] str r3, [fp, #-8] mov r3,#0 ldr r2, [fp, #-80] ldr r1, .L8+4 ldr r0, .L8+8 bl sprintf ldr r0, .L8+8 bl strlen mov r3, r0 str r3, [fp, #-64] ldr r2, [fp, #-64] ldr r3, [fp, #-84] cmp r2, r3 bge .L2 mov r3, #0 str r3, [fp, #-68] b .L3 .L4: ldr r2, .L8+8 ldr r3, [fp, #-68] add r3, r2, r3 ldrb r3, [r3] strb r3, [fp, #-69] ldr r3, [fp, #-64] sub r2, r3, #1 ldr r3, [fp, #-68] sub r3, r2, r3 ldr r2, .L8+8 ldrb r1, [r2, r3] @ zero_extendqisi2 ldr r2, .L8+8 ldr r3, [fp, #-68] add r3, r2, r3 mov r2, r1 strb r2, [r3] ldr r3, [fp, #-64] sub r2, r3, #1 ldr r3, [fp, #-68] sub r3, r2, r3 ldr r1, .L8+8 ldrb r2, [fp, #-69] strb r2, [r1, r3] ldr r3, [fp, #-68] add r3, r3, #1 str r3, [fp, #-68] .L3: ldr r3, [fp, #-64] lsr r2, r3, #31 add r3, r2, r3 asr r3, r3, #1 mov r2, r3 ldr r3, [fp, #-68] cmp r3, r2 blt .L4 b .L5 .L2: ldr r2, [fp, #-64] ldr r3, [fp, #-84] sub r3, r2, r3 ldr r2, .L8+8 add r2, r3, r2 sub r3, fp, #60 mov r1, r2 mov r0, r3 bl strcpy sub r2, fp, #60 ldr r3, [fp, #-84] add r3, r2, r3 mov r2, #0 strb r2, [r3] ldr r2, [fp, #-64] ldr r3, [fp, #-84] sub r3, r2, r3 mov r2, r3 sub r3, fp, #60 ldr r1, .L8+8 mov r0, r3 bl strncat sub r3, fp, #60 mov r1, r3 ldr r0, .L8+8 bl strcpy .L5: ldr r3, .L8+8 ldr r2, .L8 ldr r1, [r2] ldr r2, [fp, #-8] eors r1, r2, r1 mov r2, #0 beq .L7 bl __stack_chk_fail .L7: mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .L9: .align 2 .L8: .word .LC1 .word .LC0 .word xs.5299 .size func0, .-func0 .local xs.5299 .comm xs.5299,50,4 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem147/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -40[rbp], rdi mov DWORD PTR -44[rbp], esi mov DWORD PTR -20[rbp], 0 mov DWORD PTR -16[rbp], 0 jmp .L2 .L6: mov eax, DWORD PTR -16[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rdx mov eax, DWORD PTR [rax] cmp eax, 10 jle .L3 mov eax, DWORD PTR -16[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rdx mov edx, DWORD PTR [rax] movsx rax, edx imul rax, rax, 1717986919 shr rax, 32 mov ecx, eax sar ecx, 2 mov eax, edx sar eax, 31 sub ecx, eax mov eax, ecx mov DWORD PTR -8[rbp], eax mov ecx, DWORD PTR -8[rbp] mov eax, ecx sal eax, 2 add eax, ecx add eax, eax sub edx, eax mov eax, edx mov DWORD PTR -8[rbp], eax mov eax, DWORD PTR -16[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rdx mov eax, DWORD PTR [rax] mov DWORD PTR -12[rbp], eax jmp .L4 .L5: mov eax, DWORD PTR -12[rbp] movsx rdx, eax imul rdx, rdx, 1717986919 shr rdx, 32 sar edx, 2 sar eax, 31 sub edx, eax mov eax, edx mov DWORD PTR -12[rbp], eax .L4: cmp DWORD PTR -12[rbp], 9 jg .L5 mov eax, DWORD PTR -12[rbp] mov DWORD PTR -4[rbp], eax mov eax, DWORD PTR -4[rbp] cdq shr edx, 31 add eax, edx and eax, 1 sub eax, edx cmp eax, 1 jne .L3 mov eax, DWORD PTR -8[rbp] cdq shr edx, 31 add eax, edx and eax, 1 sub eax, edx cmp eax, 1 jne .L3 add DWORD PTR -20[rbp], 1 .L3: add DWORD PTR -16[rbp], 1 .L2: mov eax, DWORD PTR -16[rbp] cmp eax, DWORD PTR -44[rbp] jl .L6 mov eax, DWORD PTR -20[rbp] pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 32 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #36 str r0, [fp, #-32] str r1, [fp, #-36] mov r3, #0 str r3, [fp, #-24] mov r3, #0 str r3, [fp, #-20] b .L2 .L6: ldr r3, [fp, #-20] lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r3, [r3] cmp r3, #10 ble .L3 ldr r3, [fp, #-20] lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r2, [r3] ldr r3, .L8 smull r1, r3, r2, r3 asr r1, r3, #2 asr r3, r2, #31 sub r1, r1, r3 mov r3, r1 lsl r3, r3, #2 add r3, r3, r1 lsl r3, r3, #1 sub r3, r2, r3 str r3, [fp, #-12] ldr r3, [fp, #-20] lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r3, [r3] str r3, [fp, #-16] b .L4 .L5: ldr r3, [fp, #-16] ldr r2, .L8 smull r1, r2, r3, r2 asr r2, r2, #2 asr r3, r3, #31 sub r3, r2, r3 str r3, [fp, #-16] .L4: ldr r3, [fp, #-16] cmp r3, #9 bgt .L5 ldr r3, [fp, #-16] str r3, [fp, #-8] ldr r3, [fp, #-8] cmp r3, #0 and r3, r3, #1 rsblt r3, r3, #0 cmp r3, #1 bne .L3 ldr r3, [fp, #-12] cmp r3, #0 and r3, r3, #1 rsblt r3, r3, #0 cmp r3, #1 bne .L3 ldr r3, [fp, #-24] add r3, r3, #1 str r3, [fp, #-24] .L3: ldr r3, [fp, #-20] add r3, r3, #1 str r3, [fp, #-20] .L2: ldr r2, [fp, #-20] ldr r3, [fp, #-36] cmp r2, r3 blt .L6 ldr r3, [fp, #-24] mov r0, r3 add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .L9: .align 2 .L8: .word 1717986919 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem79/code.c
.file "code.c" .intel_syntax noprefix .text .section .rodata .LC0: .string "2357BD" .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 push rbx sub rsp, 40 .cfi_offset 3, -24 mov QWORD PTR -40[rbp], rdi lea rax, .LC0[rip] mov QWORD PTR -24[rbp], rax mov DWORD PTR -32[rbp], 0 mov DWORD PTR -28[rbp], 0 jmp .L2 .L4: mov eax, DWORD PTR -28[rbp] movsx rdx, eax mov rax, QWORD PTR -40[rbp] add rax, rdx movzx eax, BYTE PTR [rax] movsx edx, al mov rax, QWORD PTR -24[rbp] mov esi, edx mov rdi, rax call strchr@PLT test rax, rax je .L3 add DWORD PTR -32[rbp], 1 .L3: add DWORD PTR -28[rbp], 1 .L2: mov eax, DWORD PTR -28[rbp] movsx rbx, eax mov rax, QWORD PTR -40[rbp] mov rdi, rax call strlen@PLT cmp rbx, rax jb .L4 mov eax, DWORD PTR -32[rbp] add rsp, 40 pop rbx pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .section .rodata .align 2 .LC0: .ascii "2357BD\000" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 24 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #24 str r0, [fp, #-24] ldr r3, .L6 str r3, [fp, #-8] mov r3, #0 str r3, [fp, #-16] mov r3, #0 str r3, [fp, #-12] b .L2 .L4: ldr r3, [fp, #-12] ldr r2, [fp, #-24] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 mov r1, r3 ldr r0, [fp, #-8] bl strchr mov r3, r0 cmp r3, #0 beq .L3 ldr r3, [fp, #-16] add r3, r3, #1 str r3, [fp, #-16] .L3: ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L2: ldr r0, [fp, #-24] bl strlen mov r2, r0 ldr r3, [fp, #-12] cmp r2, r3 bhi .L4 ldr r3, [fp, #-16] mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .L7: .align 2 .L6: .word .LC0 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem149/code.c
.file "code.c" .intel_syntax noprefix .text .section .rodata .LC0: .string "Mercury" .LC1: .string "Venus" .LC2: .string "Earth" .LC3: .string "Mars" .LC4: .string "Jupiter" .LC5: .string "Saturn" .LC6: .string "Uranus" .LC7: .string "Neptune" .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 144 mov QWORD PTR -120[rbp], rdi mov QWORD PTR -128[rbp], rsi mov QWORD PTR -136[rbp], rdx mov rax, QWORD PTR fs:40 mov QWORD PTR -8[rbp], rax xor eax, eax lea rax, .LC0[rip] mov QWORD PTR -80[rbp], rax lea rax, .LC1[rip] mov QWORD PTR -72[rbp], rax lea rax, .LC2[rip] mov QWORD PTR -64[rbp], rax lea rax, .LC3[rip] mov QWORD PTR -56[rbp], rax lea rax, .LC4[rip] mov QWORD PTR -48[rbp], rax lea rax, .LC5[rip] mov QWORD PTR -40[rbp], rax lea rax, .LC6[rip] mov QWORD PTR -32[rbp], rax lea rax, .LC7[rip] mov QWORD PTR -24[rbp], rax mov DWORD PTR -104[rbp], -1 mov DWORD PTR -100[rbp], -1 mov DWORD PTR -96[rbp], 0 jmp .L2 .L5: mov eax, DWORD PTR -96[rbp] cdqe mov rax, QWORD PTR -80[rbp+rax*8] mov rdx, QWORD PTR -120[rbp] mov rsi, rdx mov rdi, rax call strcmp@PLT test eax, eax jne .L3 mov eax, DWORD PTR -96[rbp] mov DWORD PTR -104[rbp], eax .L3: mov eax, DWORD PTR -96[rbp] cdqe mov rax, QWORD PTR -80[rbp+rax*8] mov rdx, QWORD PTR -128[rbp] mov rsi, rdx mov rdi, rax call strcmp@PLT test eax, eax jne .L4 mov eax, DWORD PTR -96[rbp] mov DWORD PTR -100[rbp], eax .L4: add DWORD PTR -96[rbp], 1 .L2: cmp DWORD PTR -96[rbp], 7 jle .L5 cmp DWORD PTR -104[rbp], -1 je .L6 cmp DWORD PTR -100[rbp], -1 je .L6 mov eax, DWORD PTR -104[rbp] cmp eax, DWORD PTR -100[rbp] jne .L7 .L6: mov rax, QWORD PTR -136[rbp] mov DWORD PTR [rax], 0 mov eax, 0 jmp .L13 .L7: mov eax, DWORD PTR -104[rbp] cmp eax, DWORD PTR -100[rbp] jle .L9 mov eax, DWORD PTR -104[rbp] mov DWORD PTR -92[rbp], eax mov eax, DWORD PTR -100[rbp] mov DWORD PTR -104[rbp], eax mov eax, DWORD PTR -92[rbp] mov DWORD PTR -100[rbp], eax .L9: mov eax, DWORD PTR -100[rbp] sub eax, DWORD PTR -104[rbp] lea edx, -1[rax] mov rax, QWORD PTR -136[rbp] mov DWORD PTR [rax], edx mov rax, QWORD PTR -136[rbp] mov eax, DWORD PTR [rax] test eax, eax jg .L10 mov rax, QWORD PTR -136[rbp] mov DWORD PTR [rax], 0 mov eax, 0 jmp .L13 .L10: mov rax, QWORD PTR -136[rbp] mov eax, DWORD PTR [rax] cdqe sal rax, 3 mov rdi, rax call malloc@PLT mov QWORD PTR -88[rbp], rax mov eax, DWORD PTR -104[rbp] add eax, 1 mov DWORD PTR -96[rbp], eax jmp .L11 .L12: mov eax, DWORD PTR -96[rbp] sub eax, DWORD PTR -104[rbp] cdqe sal rax, 3 lea rdx, -8[rax] mov rax, QWORD PTR -88[rbp] add rdx, rax mov eax, DWORD PTR -96[rbp] cdqe mov rax, QWORD PTR -80[rbp+rax*8] mov QWORD PTR [rdx], rax add DWORD PTR -96[rbp], 1 .L11: mov eax, DWORD PTR -96[rbp] cmp eax, DWORD PTR -100[rbp] jl .L12 mov rax, QWORD PTR -88[rbp] .L13: mov rcx, QWORD PTR -8[rbp] xor rcx, QWORD PTR fs:40 je .L14 call __stack_chk_fail@PLT .L14: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .section .rodata .align 2 .LC0: .ascii "Mercury\000" .align 2 .LC1: .ascii "Venus\000" .align 2 .LC2: .ascii "Earth\000" .align 2 .LC3: .ascii "Mars\000" .align 2 .LC4: .ascii "Jupiter\000" .align 2 .LC5: .ascii "Saturn\000" .align 2 .LC6: .ascii "Uranus\000" .align 2 .LC7: .ascii "Neptune\000" .text .section .rodata .align 2 .LC9: .word .LC0 .word .LC1 .word .LC2 .word .LC3 .word .LC4 .word .LC5 .word .LC6 .word .LC7 .align 2 .LC10: .word __stack_chk_guard .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 72 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #72 str r0, [fp, #-64] str r1, [fp, #-68] str r2, [fp, #-72] ldr r3, .L15 ldr r3, [r3] str r3, [fp, #-8] mov r3,#0 ldr r3, .L15+4 sub ip, fp, #40 mov lr, r3 ldmia lr!, {r0, r1, r2, r3} stmia ip!, {r0, r1, r2, r3} ldm lr, {r0, r1, r2, r3} stm ip, {r0, r1, r2, r3} mvn r3, #0 str r3, [fp, #-60] mvn r3, #0 str r3, [fp, #-56] mov r3, #0 str r3, [fp, #-52] b .L2 .L5: ldr r3, [fp, #-52] lsl r3, r3, #2 sub r2, fp, #4 add r3, r2, r3 ldr r3, [r3, #-36] ldr r1, [fp, #-64] mov r0, r3 bl strcmp mov r3, r0 cmp r3, #0 bne .L3 ldr r3, [fp, #-52] str r3, [fp, #-60] .L3: ldr r3, [fp, #-52] lsl r3, r3, #2 sub r2, fp, #4 add r3, r2, r3 ldr r3, [r3, #-36] ldr r1, [fp, #-68] mov r0, r3 bl strcmp mov r3, r0 cmp r3, #0 bne .L4 ldr r3, [fp, #-52] str r3, [fp, #-56] .L4: ldr r3, [fp, #-52] add r3, r3, #1 str r3, [fp, #-52] .L2: ldr r3, [fp, #-52] cmp r3, #7 ble .L5 ldr r3, [fp, #-60] cmn r3, #1 beq .L6 ldr r3, [fp, #-56] cmn r3, #1 beq .L6 ldr r2, [fp, #-60] ldr r3, [fp, #-56] cmp r2, r3 bne .L7 .L6: ldr r3, [fp, #-72] mov r2, #0 str r2, [r3] mov r3, #0 b .L13 .L7: ldr r2, [fp, #-60] ldr r3, [fp, #-56] cmp r2, r3 ble .L9 ldr r3, [fp, #-60] str r3, [fp, #-48] ldr r3, [fp, #-56] str r3, [fp, #-60] ldr r3, [fp, #-48] str r3, [fp, #-56] .L9: ldr r2, [fp, #-56] ldr r3, [fp, #-60] sub r3, r2, r3 sub r2, r3, #1 ldr r3, [fp, #-72] str r2, [r3] ldr r3, [fp, #-72] ldr r3, [r3] cmp r3, #0 bgt .L10 ldr r3, [fp, #-72] mov r2, #0 str r2, [r3] mov r3, #0 b .L13 .L10: ldr r3, [fp, #-72] ldr r3, [r3] lsl r3, r3, #2 mov r0, r3 bl malloc mov r3, r0 str r3, [fp, #-44] ldr r3, [fp, #-60] add r3, r3, #1 str r3, [fp, #-52] b .L11 .L12: ldr r2, [fp, #-52] ldr r3, [fp, #-60] sub r3, r2, r3 sub r3, r3, #-1073741823 lsl r3, r3, #2 ldr r2, [fp, #-44] add r2, r2, r3 ldr r3, [fp, #-52] lsl r3, r3, #2 sub r1, fp, #4 add r3, r1, r3 ldr r3, [r3, #-36] str r3, [r2] ldr r3, [fp, #-52] add r3, r3, #1 str r3, [fp, #-52] .L11: ldr r2, [fp, #-52] ldr r3, [fp, #-56] cmp r2, r3 blt .L12 ldr r3, [fp, #-44] .L13: ldr r2, .L15 ldr r1, [r2] ldr r2, [fp, #-8] eors r1, r2, r1 mov r2, #0 beq .L14 bl __stack_chk_fail .L14: mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .L16: .align 2 .L15: .word .LC10 .word .LC9 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem73/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -24[rbp], rdi mov DWORD PTR -28[rbp], esi mov DWORD PTR -32[rbp], edx mov DWORD PTR -8[rbp], 0 mov DWORD PTR -4[rbp], 0 jmp .L2 .L5: mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -28[rbp] sub eax, 1 sub eax, DWORD PTR -4[rbp] cdqe lea rcx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rcx mov eax, DWORD PTR [rax] cmp edx, eax je .L3 mov eax, 0 jmp .L4 .L3: mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -28[rbp] sub eax, 1 sub eax, DWORD PTR -4[rbp] cdqe lea rcx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rcx mov eax, DWORD PTR [rax] add eax, edx add DWORD PTR -8[rbp], eax add DWORD PTR -4[rbp], 1 .L2: mov eax, DWORD PTR -28[rbp] mov edx, eax shr edx, 31 add eax, edx sar eax cmp DWORD PTR -4[rbp], eax jl .L5 mov eax, DWORD PTR -28[rbp] cdq shr edx, 31 add eax, edx and eax, 1 sub eax, edx cmp eax, 1 jne .L6 mov eax, DWORD PTR -28[rbp] mov edx, eax shr edx, 31 add eax, edx sar eax cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov eax, DWORD PTR [rax] add DWORD PTR -8[rbp], eax .L6: mov eax, DWORD PTR -8[rbp] cmp eax, DWORD PTR -32[rbp] setle al .L4: pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 24 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #28 str r0, [fp, #-16] str r1, [fp, #-20] str r2, [fp, #-24] mov r3, #0 str r3, [fp, #-12] mov r3, #0 str r3, [fp, #-8] b .L2 .L5: ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-16] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-20] sub r1, r3, #1 ldr r3, [fp, #-8] sub r3, r1, r3 lsl r3, r3, #2 ldr r1, [fp, #-16] add r3, r1, r3 ldr r3, [r3] cmp r2, r3 beq .L3 mov r3, #0 b .L4 .L3: ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-16] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-20] sub r1, r3, #1 ldr r3, [fp, #-8] sub r3, r1, r3 lsl r3, r3, #2 ldr r1, [fp, #-16] add r3, r1, r3 ldr r3, [r3] add r3, r2, r3 ldr r2, [fp, #-12] add r3, r2, r3 str r3, [fp, #-12] ldr r3, [fp, #-8] add r3, r3, #1 str r3, [fp, #-8] .L2: ldr r3, [fp, #-20] lsr r2, r3, #31 add r3, r2, r3 asr r3, r3, #1 mov r2, r3 ldr r3, [fp, #-8] cmp r3, r2 blt .L5 ldr r3, [fp, #-20] cmp r3, #0 and r3, r3, #1 rsblt r3, r3, #0 cmp r3, #1 bne .L6 ldr r3, [fp, #-20] lsr r2, r3, #31 add r3, r2, r3 asr r3, r3, #1 lsl r3, r3, #2 ldr r2, [fp, #-16] add r3, r2, r3 ldr r3, [r3] ldr r2, [fp, #-12] add r3, r2, r3 str r3, [fp, #-12] .L6: ldr r2, [fp, #-12] ldr r3, [fp, #-24] cmp r2, r3 movle r3, #1 movgt r3, #0 and r3, r3, #255 .L4: mov r0, r3 add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem156/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov DWORD PTR -20[rbp], edi mov QWORD PTR -32[rbp], rsi mov DWORD PTR -12[rbp], 0 mov DWORD PTR -8[rbp], 0 mov eax, DWORD PTR -20[rbp] sar eax, 31 xor DWORD PTR -20[rbp], eax sub DWORD PTR -20[rbp], eax .L4: mov edx, DWORD PTR -20[rbp] movsx rax, edx imul rax, rax, 1717986919 shr rax, 32 mov ecx, eax sar ecx, 2 mov eax, edx sar eax, 31 sub ecx, eax mov eax, ecx sal eax, 2 add eax, ecx add eax, eax sub edx, eax mov eax, edx mov DWORD PTR -4[rbp], eax mov eax, DWORD PTR -4[rbp] and eax, 1 test eax, eax jne .L2 add DWORD PTR -12[rbp], 1 jmp .L3 .L2: add DWORD PTR -8[rbp], 1 .L3: mov eax, DWORD PTR -20[rbp] movsx rdx, eax imul rdx, rdx, 1717986919 shr rdx, 32 sar edx, 2 sar eax, 31 sub edx, eax mov eax, edx mov DWORD PTR -20[rbp], eax cmp DWORD PTR -20[rbp], 0 jg .L4 mov rax, QWORD PTR -32[rbp] mov edx, DWORD PTR -12[rbp] mov DWORD PTR [rax], edx mov rax, QWORD PTR -32[rbp] lea rdx, 4[rax] mov eax, DWORD PTR -8[rbp] mov DWORD PTR [rdx], eax nop pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 24 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #28 str r0, [fp, #-24] str r1, [fp, #-28] mov r3, #0 str r3, [fp, #-16] mov r3, #0 str r3, [fp, #-12] ldr r3, [fp, #-24] cmp r3, #0 rsblt r3, r3, #0 str r3, [fp, #-24] .L4: ldr r2, [fp, #-24] ldr r3, .L5 smull r1, r3, r2, r3 asr r1, r3, #2 asr r3, r2, #31 sub r1, r1, r3 mov r3, r1 lsl r3, r3, #2 add r3, r3, r1 lsl r3, r3, #1 sub r3, r2, r3 str r3, [fp, #-8] ldr r3, [fp, #-8] and r3, r3, #1 cmp r3, #0 bne .L2 ldr r3, [fp, #-16] add r3, r3, #1 str r3, [fp, #-16] b .L3 .L2: ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L3: ldr r3, [fp, #-24] ldr r2, .L5 smull r1, r2, r3, r2 asr r2, r2, #2 asr r3, r3, #31 sub r3, r2, r3 str r3, [fp, #-24] ldr r3, [fp, #-24] cmp r3, #0 bgt .L4 ldr r3, [fp, #-28] ldr r2, [fp, #-16] str r2, [r3] ldr r3, [fp, #-28] add r3, r3, #4 ldr r2, [fp, #-12] str r2, [r3] nop add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .L6: .align 2 .L5: .word 1717986919 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem162/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -40[rbp], rdi mov DWORD PTR -16[rbp], 0 mov rax, QWORD PTR -40[rbp] mov rdi, rax call strlen@PLT mov DWORD PTR -4[rbp], eax mov DWORD PTR -12[rbp], 0 jmp .L2 .L6: call __ctype_b_loc@PLT mov rax, QWORD PTR [rax] mov edx, DWORD PTR -12[rbp] movsx rcx, edx mov rdx, QWORD PTR -40[rbp] add rdx, rcx movzx edx, BYTE PTR [rdx] movzx edx, dl add rdx, rdx add rax, rdx movzx eax, WORD PTR [rax] movzx eax, ax and eax, 1024 test eax, eax je .L3 call __ctype_b_loc@PLT mov rax, QWORD PTR [rax] mov edx, DWORD PTR -12[rbp] movsx rcx, edx mov rdx, QWORD PTR -40[rbp] add rdx, rcx movzx edx, BYTE PTR [rdx] movzx edx, dl add rdx, rdx add rax, rdx movzx eax, WORD PTR [rax] movzx eax, ax and eax, 256 test eax, eax je .L4 mov eax, DWORD PTR -12[rbp] movsx rdx, eax mov rax, QWORD PTR -40[rbp] add rax, rdx movzx eax, BYTE PTR [rax] movzx eax, al mov edi, eax call tolower@PLT mov ecx, eax mov eax, DWORD PTR -12[rbp] movsx rdx, eax mov rax, QWORD PTR -40[rbp] add rax, rdx mov edx, ecx mov BYTE PTR [rax], dl jmp .L5 .L4: call __ctype_b_loc@PLT mov rax, QWORD PTR [rax] mov edx, DWORD PTR -12[rbp] movsx rcx, edx mov rdx, QWORD PTR -40[rbp] add rdx, rcx movzx edx, BYTE PTR [rdx] movzx edx, dl add rdx, rdx add rax, rdx movzx eax, WORD PTR [rax] movzx eax, ax and eax, 512 test eax, eax je .L5 mov eax, DWORD PTR -12[rbp] movsx rdx, eax mov rax, QWORD PTR -40[rbp] add rax, rdx movzx eax, BYTE PTR [rax] movzx eax, al mov edi, eax call toupper@PLT mov ecx, eax mov eax, DWORD PTR -12[rbp] movsx rdx, eax mov rax, QWORD PTR -40[rbp] add rax, rdx mov edx, ecx mov BYTE PTR [rax], dl jmp .L5 .L3: add DWORD PTR -16[rbp], 1 .L5: add DWORD PTR -12[rbp], 1 .L2: mov eax, DWORD PTR -12[rbp] cmp eax, DWORD PTR -4[rbp] jl .L6 mov eax, DWORD PTR -16[rbp] cmp eax, DWORD PTR -4[rbp] jne .L7 mov DWORD PTR -8[rbp], 0 jmp .L8 .L9: mov eax, DWORD PTR -8[rbp] movsx rdx, eax mov rax, QWORD PTR -40[rbp] add rax, rdx movzx eax, BYTE PTR [rax] mov BYTE PTR -17[rbp], al mov eax, DWORD PTR -4[rbp] sub eax, DWORD PTR -8[rbp] cdqe lea rdx, -1[rax] mov rax, QWORD PTR -40[rbp] add rax, rdx mov edx, DWORD PTR -8[rbp] movsx rcx, edx mov rdx, QWORD PTR -40[rbp] add rdx, rcx movzx eax, BYTE PTR [rax] mov BYTE PTR [rdx], al mov eax, DWORD PTR -4[rbp] sub eax, DWORD PTR -8[rbp] cdqe lea rdx, -1[rax] mov rax, QWORD PTR -40[rbp] add rdx, rax movzx eax, BYTE PTR -17[rbp] mov BYTE PTR [rdx], al add DWORD PTR -8[rbp], 1 .L8: mov eax, DWORD PTR -4[rbp] mov edx, eax shr edx, 31 add eax, edx sar eax cmp DWORD PTR -8[rbp], eax jl .L9 .L7: mov rax, QWORD PTR -40[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 32 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #32 str r0, [fp, #-32] mov r3, #0 str r3, [fp, #-20] ldr r0, [fp, #-32] bl strlen mov r3, r0 str r3, [fp, #-8] mov r3, #0 str r3, [fp, #-16] b .L2 .L6: bl __ctype_b_loc mov r3, r0 ldr r2, [r3] ldr r3, [fp, #-16] ldr r1, [fp, #-32] add r3, r1, r3 ldrb r3, [r3] @ zero_extendqisi2 lsl r3, r3, #1 add r3, r2, r3 ldrh r3, [r3] and r3, r3, #1024 cmp r3, #0 beq .L3 bl __ctype_b_loc mov r3, r0 ldr r2, [r3] ldr r3, [fp, #-16] ldr r1, [fp, #-32] add r3, r1, r3 ldrb r3, [r3] @ zero_extendqisi2 lsl r3, r3, #1 add r3, r2, r3 ldrh r3, [r3] and r3, r3, #256 cmp r3, #0 beq .L4 ldr r3, [fp, #-16] ldr r2, [fp, #-32] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 mov r0, r3 bl tolower mov r1, r0 ldr r3, [fp, #-16] ldr r2, [fp, #-32] add r3, r2, r3 and r2, r1, #255 strb r2, [r3] b .L5 .L4: bl __ctype_b_loc mov r3, r0 ldr r2, [r3] ldr r3, [fp, #-16] ldr r1, [fp, #-32] add r3, r1, r3 ldrb r3, [r3] @ zero_extendqisi2 lsl r3, r3, #1 add r3, r2, r3 ldrh r3, [r3] and r3, r3, #512 cmp r3, #0 beq .L5 ldr r3, [fp, #-16] ldr r2, [fp, #-32] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 mov r0, r3 bl toupper mov r1, r0 ldr r3, [fp, #-16] ldr r2, [fp, #-32] add r3, r2, r3 and r2, r1, #255 strb r2, [r3] b .L5 .L3: ldr r3, [fp, #-20] add r3, r3, #1 str r3, [fp, #-20] .L5: ldr r3, [fp, #-16] add r3, r3, #1 str r3, [fp, #-16] .L2: ldr r2, [fp, #-16] ldr r3, [fp, #-8] cmp r2, r3 blt .L6 ldr r2, [fp, #-20] ldr r3, [fp, #-8] cmp r2, r3 bne .L7 mov r3, #0 str r3, [fp, #-12] b .L8 .L9: ldr r3, [fp, #-12] ldr r2, [fp, #-32] add r3, r2, r3 ldrb r3, [r3] strb r3, [fp, #-21] ldr r2, [fp, #-8] ldr r3, [fp, #-12] sub r3, r2, r3 sub r3, r3, #1 ldr r2, [fp, #-32] add r2, r2, r3 ldr r3, [fp, #-12] ldr r1, [fp, #-32] add r3, r1, r3 ldrb r2, [r2] @ zero_extendqisi2 strb r2, [r3] ldr r2, [fp, #-8] ldr r3, [fp, #-12] sub r3, r2, r3 sub r3, r3, #1 ldr r2, [fp, #-32] add r3, r2, r3 ldrb r2, [fp, #-21] strb r2, [r3] ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L8: ldr r3, [fp, #-8] lsr r2, r3, #31 add r3, r2, r3 asr r3, r3, #1 mov r2, r3 ldr r3, [fp, #-12] cmp r3, r2 blt .L9 .L7: ldr r3, [fp, #-32] mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem68/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 push rbx sub rsp, 72 .cfi_offset 3, -24 mov QWORD PTR -72[rbp], rdi mov DWORD PTR -76[rbp], esi mov rax, QWORD PTR fs:40 mov QWORD PTR -24[rbp], rax xor eax, eax mov QWORD PTR -44[rbp], 0 mov WORD PTR -36[rbp], 0 mov QWORD PTR -34[rbp], 0 mov WORD PTR -26[rbp], 0 mov DWORD PTR -56[rbp], 0 mov DWORD PTR -52[rbp], 0 mov DWORD PTR -48[rbp], 0 jmp .L2 .L6: call __ctype_b_loc@PLT mov rax, QWORD PTR [rax] mov edx, DWORD PTR -48[rbp] movsx rcx, edx mov rdx, QWORD PTR -72[rbp] add rdx, rcx movzx edx, BYTE PTR [rdx] movsx rdx, dl add rdx, rdx add rax, rdx movzx eax, WORD PTR [rax] movzx eax, ax and eax, 2048 test eax, eax je .L3 cmp DWORD PTR -56[rbp], 0 jne .L4 mov eax, DWORD PTR -48[rbp] movsx rdx, eax mov rax, QWORD PTR -72[rbp] lea rcx, [rdx+rax] mov eax, DWORD PTR -52[rbp] lea edx, 1[rax] mov DWORD PTR -52[rbp], edx movzx edx, BYTE PTR [rcx] cdqe mov BYTE PTR -44[rbp+rax], dl jmp .L5 .L4: mov eax, DWORD PTR -48[rbp] movsx rdx, eax mov rax, QWORD PTR -72[rbp] lea rcx, [rdx+rax] mov eax, DWORD PTR -52[rbp] lea edx, 1[rax] mov DWORD PTR -52[rbp], edx movzx edx, BYTE PTR [rcx] cdqe mov BYTE PTR -34[rbp+rax], dl jmp .L5 .L3: cmp DWORD PTR -56[rbp], 0 jne .L5 cmp DWORD PTR -52[rbp], 0 jle .L5 mov DWORD PTR -56[rbp], 1 mov DWORD PTR -52[rbp], 0 .L5: add DWORD PTR -48[rbp], 1 .L2: mov eax, DWORD PTR -48[rbp] movsx rdx, eax mov rax, QWORD PTR -72[rbp] add rax, rdx movzx eax, BYTE PTR [rax] test al, al jne .L6 lea rax, -44[rbp] mov rdi, rax call atoi@PLT mov edx, DWORD PTR -76[rbp] mov ebx, edx sub ebx, eax lea rax, -34[rbp] mov rdi, rax call atoi@PLT sub ebx, eax mov eax, ebx mov rsi, QWORD PTR -24[rbp] xor rsi, QWORD PTR fs:40 je .L8 call __stack_chk_fail@PLT .L8: add rsp, 72 pop rbx pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .section .rodata .align 2 .LC0: .word __stack_chk_guard .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 48 @ frame_needed = 1, uses_anonymous_args = 0 push {r4, fp, lr} add fp, sp, #8 sub sp, sp, #52 str r0, [fp, #-56] str r1, [fp, #-60] ldr r3, .L9 ldr r3, [r3] str r3, [fp, #-16] mov r3,#0 mov r3, #0 str r3, [fp, #-40] sub r3, fp, #36 mov r2, #0 str r2, [r3] strh r2, [r3, #4] @ movhi mov r3, #0 str r3, [fp, #-28] sub r3, fp, #24 mov r2, #0 str r2, [r3] strh r2, [r3, #4] @ movhi mov r3, #0 str r3, [fp, #-52] mov r3, #0 str r3, [fp, #-48] mov r3, #0 str r3, [fp, #-44] b .L2 .L6: bl __ctype_b_loc mov r3, r0 ldr r2, [r3] ldr r3, [fp, #-44] ldr r1, [fp, #-56] add r3, r1, r3 ldrb r3, [r3] @ zero_extendqisi2 lsl r3, r3, #1 add r3, r2, r3 ldrh r3, [r3] and r3, r3, #2048 cmp r3, #0 beq .L3 ldr r3, [fp, #-52] cmp r3, #0 bne .L4 ldr r3, [fp, #-44] ldr r2, [fp, #-56] add r2, r2, r3 ldr r3, [fp, #-48] add r1, r3, #1 str r1, [fp, #-48] ldrb r2, [r2] @ zero_extendqisi2 sub r1, fp, #12 add r3, r1, r3 strb r2, [r3, #-28] b .L5 .L4: ldr r3, [fp, #-44] ldr r2, [fp, #-56] add r2, r2, r3 ldr r3, [fp, #-48] add r1, r3, #1 str r1, [fp, #-48] ldrb r2, [r2] @ zero_extendqisi2 sub r1, fp, #12 add r3, r1, r3 strb r2, [r3, #-16] b .L5 .L3: ldr r3, [fp, #-52] cmp r3, #0 bne .L5 ldr r3, [fp, #-48] cmp r3, #0 ble .L5 mov r3, #1 str r3, [fp, #-52] mov r3, #0 str r3, [fp, #-48] .L5: ldr r3, [fp, #-44] add r3, r3, #1 str r3, [fp, #-44] .L2: ldr r3, [fp, #-44] ldr r2, [fp, #-56] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #0 bne .L6 sub r3, fp, #40 mov r0, r3 bl atoi mov r2, r0 ldr r3, [fp, #-60] sub r4, r3, r2 sub r3, fp, #28 mov r0, r3 bl atoi mov r3, r0 sub r3, r4, r3 ldr r2, .L9 ldr r1, [r2] ldr r2, [fp, #-16] eors r1, r2, r1 mov r2, #0 beq .L8 bl __stack_chk_fail .L8: mov r0, r3 sub sp, fp, #8 @ sp needed pop {r4, fp, pc} .L10: .align 2 .L9: .word .LC0 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem72/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 movss DWORD PTR -20[rbp], xmm0 movss DWORD PTR -24[rbp], xmm1 movss DWORD PTR -28[rbp], xmm2 movss xmm0, DWORD PTR -20[rbp] movaps xmm1, xmm0 addss xmm1, DWORD PTR -24[rbp] movss xmm0, DWORD PTR -28[rbp] comiss xmm0, xmm1 jnb .L2 movss xmm0, DWORD PTR -20[rbp] movaps xmm1, xmm0 addss xmm1, DWORD PTR -28[rbp] movss xmm0, DWORD PTR -24[rbp] comiss xmm0, xmm1 jnb .L2 movss xmm0, DWORD PTR -24[rbp] movaps xmm1, xmm0 addss xmm1, DWORD PTR -28[rbp] movss xmm0, DWORD PTR -20[rbp] comiss xmm0, xmm1 jb .L6 .L2: movss xmm0, DWORD PTR .LC0[rip] jmp .L5 .L6: movss xmm0, DWORD PTR -20[rbp] addss xmm0, DWORD PTR -24[rbp] addss xmm0, DWORD PTR -28[rbp] movss xmm1, DWORD PTR .LC1[rip] divss xmm0, xmm1 movss DWORD PTR -8[rbp], xmm0 movss xmm0, DWORD PTR -8[rbp] subss xmm0, DWORD PTR -20[rbp] movaps xmm1, xmm0 mulss xmm1, DWORD PTR -8[rbp] movss xmm0, DWORD PTR -8[rbp] subss xmm0, DWORD PTR -24[rbp] mulss xmm1, xmm0 movss xmm0, DWORD PTR -8[rbp] subss xmm0, DWORD PTR -28[rbp] mulss xmm0, xmm1 call sqrtf@PLT movd eax, xmm0 mov DWORD PTR -4[rbp], eax movss xmm1, DWORD PTR -4[rbp] movss xmm0, DWORD PTR .LC2[rip] mulss xmm0, xmm1 call roundf@PLT movss xmm1, DWORD PTR .LC2[rip] divss xmm0, xmm1 .L5: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .section .rodata .align 4 .LC0: .long 3212836864 .align 4 .LC1: .long 1073741824 .align 4 .LC2: .long 1120403456 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .global __aeabi_fadd .global __aeabi_fcmpge .global __aeabi_fdiv .global __aeabi_fsub .global __aeabi_fmul .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 24 @ frame_needed = 1, uses_anonymous_args = 0 push {r4, fp, lr} add fp, sp, #8 sub sp, sp, #28 str r0, [fp, #-24] @ float str r1, [fp, #-28] @ float str r2, [fp, #-32] @ float ldr r1, [fp, #-28] @ float ldr r0, [fp, #-24] @ float bl __aeabi_fadd mov r3, r0 mov r1, r3 ldr r0, [fp, #-32] @ float bl __aeabi_fcmpge mov r3, r0 cmp r3, #0 bne .L2 ldr r1, [fp, #-32] @ float ldr r0, [fp, #-24] @ float bl __aeabi_fadd mov r3, r0 mov r1, r3 ldr r0, [fp, #-28] @ float bl __aeabi_fcmpge mov r3, r0 cmp r3, #0 bne .L2 ldr r1, [fp, #-32] @ float ldr r0, [fp, #-28] @ float bl __aeabi_fadd mov r3, r0 mov r1, r3 ldr r0, [fp, #-24] @ float bl __aeabi_fcmpge mov r3, r0 cmp r3, #0 beq .L6 .L2: ldr r3, .L7 b .L5 .L6: ldr r1, [fp, #-28] @ float ldr r0, [fp, #-24] @ float bl __aeabi_fadd mov r3, r0 ldr r1, [fp, #-32] @ float mov r0, r3 bl __aeabi_fadd mov r3, r0 mov r1, #1073741824 mov r0, r3 bl __aeabi_fdiv mov r3, r0 str r3, [fp, #-20] @ float ldr r1, [fp, #-24] @ float ldr r0, [fp, #-20] @ float bl __aeabi_fsub mov r3, r0 ldr r1, [fp, #-20] @ float mov r0, r3 bl __aeabi_fmul mov r3, r0 mov r4, r3 ldr r1, [fp, #-28] @ float ldr r0, [fp, #-20] @ float bl __aeabi_fsub mov r3, r0 mov r1, r3 mov r0, r4 bl __aeabi_fmul mov r3, r0 mov r4, r3 ldr r1, [fp, #-32] @ float ldr r0, [fp, #-20] @ float bl __aeabi_fsub mov r3, r0 mov r1, r3 mov r0, r4 bl __aeabi_fmul mov r3, r0 mov r0, r3 bl sqrtf str r0, [fp, #-16] @ float ldr r1, .L7+4 ldr r0, [fp, #-16] @ float bl __aeabi_fmul mov r3, r0 mov r0, r3 bl roundf mov r3, r0 ldr r1, .L7+4 mov r0, r3 bl __aeabi_fdiv mov r3, r0 .L5: mov r0, r3 sub sp, fp, #8 @ sp needed pop {r4, fp, pc} .L8: .align 2 .L7: .word -1082130432 .word 1120403456 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem18/code.c
.file "code.c" .intel_syntax noprefix .text .section .rodata .LC0: .string "o" .LC1: .string "o|" .LC2: .string ".|" .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 80 mov QWORD PTR -72[rbp], rdi mov QWORD PTR -80[rbp], rsi mov rax, QWORD PTR fs:40 mov QWORD PTR -8[rbp], rax xor eax, eax mov QWORD PTR -40[rbp], 0 mov DWORD PTR -56[rbp], 0 mov DWORD PTR -52[rbp], 0 mov WORD PTR -11[rbp], 0 mov BYTE PTR -9[rbp], 0 mov rax, QWORD PTR -72[rbp] mov rdi, rax call strlen@PLT add eax, 1 mov DWORD PTR -44[rbp], eax mov eax, DWORD PTR -44[rbp] add eax, 1 cdqe mov rdi, rax call malloc@PLT mov QWORD PTR -32[rbp], rax mov rdx, QWORD PTR -72[rbp] mov rax, QWORD PTR -32[rbp] mov rsi, rdx mov rdi, rax call strcpy@PLT mov rax, QWORD PTR -32[rbp] mov rcx, -1 mov rdx, rax mov eax, 0 mov rdi, rdx repnz scasb mov rax, rcx not rax lea rdx, -1[rax] mov rax, QWORD PTR -32[rbp] add rax, rdx mov WORD PTR [rax], 32 mov DWORD PTR -48[rbp], 0 jmp .L2 .L17: mov eax, DWORD PTR -48[rbp] movsx rdx, eax mov rax, QWORD PTR -32[rbp] add rax, rdx movzx eax, BYTE PTR [rax] cmp al, 32 jne .L3 lea rax, -11[rbp] lea rsi, .LC0[rip] mov rdi, rax call strcmp@PLT test eax, eax jne .L4 mov eax, DWORD PTR -56[rbp] cmp eax, DWORD PTR -52[rbp] jne .L5 cmp DWORD PTR -52[rbp], 0 jle .L6 mov eax, DWORD PTR -52[rbp] add eax, eax jmp .L7 .L6: mov eax, 4 .L7: mov DWORD PTR -52[rbp], eax mov eax, DWORD PTR -52[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] mov rsi, rdx mov rdi, rax call realloc@PLT mov QWORD PTR -40[rbp], rax .L5: mov eax, DWORD PTR -56[rbp] lea edx, 1[rax] mov DWORD PTR -56[rbp], edx cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rdx mov DWORD PTR [rax], 4 .L4: lea rax, -11[rbp] lea rsi, .LC1[rip] mov rdi, rax call strcmp@PLT test eax, eax jne .L8 mov eax, DWORD PTR -56[rbp] cmp eax, DWORD PTR -52[rbp] jne .L9 cmp DWORD PTR -52[rbp], 0 jle .L10 mov eax, DWORD PTR -52[rbp] add eax, eax jmp .L11 .L10: mov eax, 4 .L11: mov DWORD PTR -52[rbp], eax mov eax, DWORD PTR -52[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] mov rsi, rdx mov rdi, rax call realloc@PLT mov QWORD PTR -40[rbp], rax .L9: mov eax, DWORD PTR -56[rbp] lea edx, 1[rax] mov DWORD PTR -56[rbp], edx cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rdx mov DWORD PTR [rax], 2 .L8: lea rax, -11[rbp] lea rsi, .LC2[rip] mov rdi, rax call strcmp@PLT test eax, eax jne .L12 mov eax, DWORD PTR -56[rbp] cmp eax, DWORD PTR -52[rbp] jne .L13 cmp DWORD PTR -52[rbp], 0 jle .L14 mov eax, DWORD PTR -52[rbp] add eax, eax jmp .L15 .L14: mov eax, 4 .L15: mov DWORD PTR -52[rbp], eax mov eax, DWORD PTR -52[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] mov rsi, rdx mov rdi, rax call realloc@PLT mov QWORD PTR -40[rbp], rax .L13: mov eax, DWORD PTR -56[rbp] lea edx, 1[rax] mov DWORD PTR -56[rbp], edx cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rdx mov DWORD PTR [rax], 1 .L12: mov BYTE PTR -11[rbp], 0 jmp .L16 .L3: lea rax, -11[rbp] mov rdi, rax call strlen@PLT mov QWORD PTR -24[rbp], rax cmp QWORD PTR -24[rbp], 1 ja .L16 mov eax, DWORD PTR -48[rbp] movsx rdx, eax mov rax, QWORD PTR -32[rbp] add rax, rdx movzx eax, BYTE PTR [rax] lea rcx, -11[rbp] mov rdx, QWORD PTR -24[rbp] add rdx, rcx mov BYTE PTR [rdx], al mov rax, QWORD PTR -24[rbp] add rax, 1 mov BYTE PTR -11[rbp+rax], 0 .L16: add DWORD PTR -48[rbp], 1 .L2: mov eax, DWORD PTR -48[rbp] cmp eax, DWORD PTR -44[rbp] jl .L17 mov rax, QWORD PTR -32[rbp] mov rdi, rax call free@PLT mov rax, QWORD PTR -80[rbp] mov edx, DWORD PTR -56[rbp] mov DWORD PTR [rax], edx mov rax, QWORD PTR -40[rbp] mov rcx, QWORD PTR -8[rbp] xor rcx, QWORD PTR fs:40 je .L19 call __stack_chk_fail@PLT .L19: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .section .rodata .align 2 .LC1: .ascii " \000" .align 2 .LC2: .ascii "o\000" .align 2 .LC3: .ascii "o|\000" .align 2 .LC4: .ascii ".|\000" .align 2 .LC0: .ascii "\000" .space 2 .align 2 .LC5: .word __stack_chk_guard .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 48 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #48 str r0, [fp, #-48] str r1, [fp, #-52] ldr r3, .L20 ldr r3, [r3] str r3, [fp, #-8] mov r3,#0 mov r3, #0 str r3, [fp, #-40] mov r3, #0 str r3, [fp, #-36] mov r3, #0 str r3, [fp, #-32] ldr r3, .L20+4 ldrb r3, [r3] strb r3, [fp, #-12] sub r3, fp, #11 mov r1, #0 mov r2, r1 strb r2, [r3] mov r2, r1 strb r2, [r3, #1] ldr r0, [fp, #-48] bl strlen mov r3, r0 add r3, r3, #1 str r3, [fp, #-24] ldr r3, [fp, #-24] add r3, r3, #1 mov r0, r3 bl malloc mov r3, r0 str r3, [fp, #-20] ldr r1, [fp, #-48] ldr r0, [fp, #-20] bl strcpy ldr r0, [fp, #-20] bl strlen mov r3, r0 mov r2, r3 ldr r3, [fp, #-20] add r3, r3, r2 ldr r2, .L20+8 mov r0, r3 mov r1, r2 mov r3, #2 mov r2, r3 bl memcpy mov r3, #0 str r3, [fp, #-28] b .L2 .L17: ldr r3, [fp, #-28] ldr r2, [fp, #-20] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #32 bne .L3 sub r3, fp, #12 ldr r1, .L20+12 mov r0, r3 bl strcmp mov r3, r0 cmp r3, #0 bne .L4 ldr r2, [fp, #-36] ldr r3, [fp, #-32] cmp r2, r3 bne .L5 ldr r3, [fp, #-32] cmp r3, #0 ble .L6 ldr r3, [fp, #-32] lsl r3, r3, #1 b .L7 .L6: mov r3, #4 .L7: str r3, [fp, #-32] ldr r3, [fp, #-32] lsl r3, r3, #2 mov r1, r3 ldr r0, [fp, #-40] bl realloc str r0, [fp, #-40] .L5: ldr r3, [fp, #-36] add r2, r3, #1 str r2, [fp, #-36] lsl r3, r3, #2 ldr r2, [fp, #-40] add r3, r2, r3 mov r2, #4 str r2, [r3] .L4: sub r3, fp, #12 ldr r1, .L20+16 mov r0, r3 bl strcmp mov r3, r0 cmp r3, #0 bne .L8 ldr r2, [fp, #-36] ldr r3, [fp, #-32] cmp r2, r3 bne .L9 ldr r3, [fp, #-32] cmp r3, #0 ble .L10 ldr r3, [fp, #-32] lsl r3, r3, #1 b .L11 .L10: mov r3, #4 .L11: str r3, [fp, #-32] ldr r3, [fp, #-32] lsl r3, r3, #2 mov r1, r3 ldr r0, [fp, #-40] bl realloc str r0, [fp, #-40] .L9: ldr r3, [fp, #-36] add r2, r3, #1 str r2, [fp, #-36] lsl r3, r3, #2 ldr r2, [fp, #-40] add r3, r2, r3 mov r2, #2 str r2, [r3] .L8: sub r3, fp, #12 ldr r1, .L20+20 mov r0, r3 bl strcmp mov r3, r0 cmp r3, #0 bne .L12 ldr r2, [fp, #-36] ldr r3, [fp, #-32] cmp r2, r3 bne .L13 ldr r3, [fp, #-32] cmp r3, #0 ble .L14 ldr r3, [fp, #-32] lsl r3, r3, #1 b .L15 .L14: mov r3, #4 .L15: str r3, [fp, #-32] ldr r3, [fp, #-32] lsl r3, r3, #2 mov r1, r3 ldr r0, [fp, #-40] bl realloc str r0, [fp, #-40] .L13: ldr r3, [fp, #-36] add r2, r3, #1 str r2, [fp, #-36] lsl r3, r3, #2 ldr r2, [fp, #-40] add r3, r2, r3 mov r2, #1 str r2, [r3] .L12: mov r3, #0 strb r3, [fp, #-12] b .L16 .L3: sub r3, fp, #12 mov r0, r3 bl strlen str r0, [fp, #-16] ldr r3, [fp, #-16] cmp r3, #1 bhi .L16 ldr r3, [fp, #-28] ldr r2, [fp, #-20] add r3, r2, r3 ldrb r1, [r3] @ zero_extendqisi2 sub r2, fp, #12 ldr r3, [fp, #-16] add r3, r2, r3 mov r2, r1 strb r2, [r3] ldr r3, [fp, #-16] add r3, r3, #1 sub r2, fp, #4 add r3, r2, r3 mov r2, #0 strb r2, [r3, #-8] .L16: ldr r3, [fp, #-28] add r3, r3, #1 str r3, [fp, #-28] .L2: ldr r2, [fp, #-28] ldr r3, [fp, #-24] cmp r2, r3 blt .L17 ldr r0, [fp, #-20] bl free ldr r3, [fp, #-52] ldr r2, [fp, #-36] str r2, [r3] ldr r3, [fp, #-40] ldr r2, .L20 ldr r1, [r2] ldr r2, [fp, #-8] eors r1, r2, r1 mov r2, #0 beq .L19 bl __stack_chk_fail .L19: mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .L21: .align 2 .L20: .word .LC5 .word .LC0 .word .LC1 .word .LC2 .word .LC3 .word .LC4 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem17/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 1072 mov QWORD PTR -1064[rbp], rdi mov rax, QWORD PTR fs:40 mov QWORD PTR -8[rbp], rax xor eax, eax mov DWORD PTR -1048[rbp], 0 lea rdx, -1040[rbp] mov eax, 0 mov ecx, 128 mov rdi, rdx rep stosq mov DWORD PTR -1044[rbp], 0 jmp .L2 .L4: mov eax, DWORD PTR -1044[rbp] movsx rdx, eax mov rax, QWORD PTR -1064[rbp] add rax, rdx movzx eax, BYTE PTR [rax] movzx eax, al mov edi, eax call tolower@PLT mov BYTE PTR -1049[rbp], al movsx eax, BYTE PTR -1049[rbp] cdqe mov eax, DWORD PTR -1040[rbp+rax*4] test eax, eax jne .L3 call __ctype_b_loc@PLT mov rax, QWORD PTR [rax] movzx edx, BYTE PTR -1049[rbp] movzx edx, dl add rdx, rdx add rax, rdx movzx eax, WORD PTR [rax] movzx eax, ax and eax, 1024 test eax, eax je .L3 movsx eax, BYTE PTR -1049[rbp] cdqe mov DWORD PTR -1040[rbp+rax*4], 1 add DWORD PTR -1048[rbp], 1 .L3: add DWORD PTR -1044[rbp], 1 .L2: mov eax, DWORD PTR -1044[rbp] movsx rdx, eax mov rax, QWORD PTR -1064[rbp] add rax, rdx movzx eax, BYTE PTR [rax] test al, al jne .L4 mov eax, DWORD PTR -1048[rbp] mov rsi, QWORD PTR -8[rbp] xor rsi, QWORD PTR fs:40 je .L6 call __stack_chk_fail@PLT .L6: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .section .rodata .align 2 .LC0: .word __stack_chk_guard .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 1048 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #1040 sub sp, sp, #8 str r0, [fp, #-1048] ldr r3, .L7 ldr r3, [r3] str r3, [fp, #-8] mov r3,#0 mov r3, #0 str r3, [fp, #-1040] sub r3, fp, #1024 sub r3, r3, #4 sub r3, r3, #4 mov r2, #1024 mov r1, #0 mov r0, r3 bl memset mov r3, #0 str r3, [fp, #-1036] b .L2 .L4: ldr r3, [fp, #-1036] ldr r2, [fp, #-1048] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 mov r0, r3 bl tolower mov r3, r0 strb r3, [fp, #-1041] ldrb r3, [fp, #-1041] @ zero_extendqisi2 lsl r3, r3, #2 sub r2, fp, #4 add r3, r2, r3 ldr r3, [r3, #-1028] cmp r3, #0 bne .L3 bl __ctype_b_loc mov r3, r0 ldr r2, [r3] ldrb r3, [fp, #-1041] @ zero_extendqisi2 lsl r3, r3, #1 add r3, r2, r3 ldrh r3, [r3] and r3, r3, #1024 cmp r3, #0 beq .L3 ldrb r3, [fp, #-1041] @ zero_extendqisi2 lsl r3, r3, #2 sub r2, fp, #4 add r3, r2, r3 mov r2, #1 str r2, [r3, #-1028] ldr r3, [fp, #-1040] add r3, r3, #1 str r3, [fp, #-1040] .L3: ldr r3, [fp, #-1036] add r3, r3, #1 str r3, [fp, #-1036] .L2: ldr r3, [fp, #-1036] ldr r2, [fp, #-1048] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #0 bne .L4 ldr r3, [fp, #-1040] ldr r2, .L7 ldr r1, [r2] ldr r2, [fp, #-8] eors r1, r2, r1 mov r2, #0 beq .L6 bl __stack_chk_fail .L6: mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .L8: .align 2 .L7: .word .LC0 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem125/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 64 mov QWORD PTR -56[rbp], rdi mov rax, QWORD PTR fs:40 mov QWORD PTR -8[rbp], rax xor eax, eax mov rax, QWORD PTR -56[rbp] mov rdi, rax call strlen@PLT cmp rax, 10 je .L2 mov eax, 0 jmp .L18 .L2: mov DWORD PTR -36[rbp], 0 jmp .L4 .L10: cmp DWORD PTR -36[rbp], 2 je .L5 cmp DWORD PTR -36[rbp], 5 jne .L6 .L5: mov eax, DWORD PTR -36[rbp] movsx rdx, eax mov rax, QWORD PTR -56[rbp] add rax, rdx movzx eax, BYTE PTR [rax] cmp al, 45 je .L8 mov eax, 0 jmp .L18 .L6: mov eax, DWORD PTR -36[rbp] movsx rdx, eax mov rax, QWORD PTR -56[rbp] add rax, rdx movzx eax, BYTE PTR [rax] cmp al, 47 jle .L9 mov eax, DWORD PTR -36[rbp] movsx rdx, eax mov rax, QWORD PTR -56[rbp] add rax, rdx movzx eax, BYTE PTR [rax] cmp al, 57 jle .L8 .L9: mov eax, 0 jmp .L18 .L8: add DWORD PTR -36[rbp], 1 .L4: cmp DWORD PTR -36[rbp], 9 jle .L10 mov rax, QWORD PTR -56[rbp] movzx eax, BYTE PTR [rax] mov BYTE PTR -19[rbp], al mov rax, QWORD PTR -56[rbp] movzx eax, BYTE PTR 1[rax] mov BYTE PTR -18[rbp], al mov BYTE PTR -17[rbp], 0 mov rax, QWORD PTR -56[rbp] movzx eax, BYTE PTR 3[rax] mov BYTE PTR -16[rbp], al mov rax, QWORD PTR -56[rbp] movzx eax, BYTE PTR 4[rax] mov BYTE PTR -15[rbp], al mov BYTE PTR -14[rbp], 0 mov rax, QWORD PTR -56[rbp] movzx eax, BYTE PTR 6[rax] mov BYTE PTR -13[rbp], al mov rax, QWORD PTR -56[rbp] movzx eax, BYTE PTR 7[rax] mov BYTE PTR -12[rbp], al mov rax, QWORD PTR -56[rbp] movzx eax, BYTE PTR 8[rax] mov BYTE PTR -11[rbp], al mov rax, QWORD PTR -56[rbp] movzx eax, BYTE PTR 9[rax] mov BYTE PTR -10[rbp], al mov BYTE PTR -9[rbp], 0 lea rax, -19[rbp] mov rdi, rax call atoi@PLT mov DWORD PTR -32[rbp], eax lea rax, -16[rbp] mov rdi, rax call atoi@PLT mov DWORD PTR -28[rbp], eax lea rax, -13[rbp] mov rdi, rax call atoi@PLT mov DWORD PTR -24[rbp], eax cmp DWORD PTR -32[rbp], 0 jle .L11 cmp DWORD PTR -32[rbp], 12 jle .L12 .L11: mov eax, 0 jmp .L18 .L12: cmp DWORD PTR -28[rbp], 0 jle .L13 cmp DWORD PTR -28[rbp], 31 jle .L14 .L13: mov eax, 0 jmp .L18 .L14: cmp DWORD PTR -32[rbp], 4 je .L15 cmp DWORD PTR -32[rbp], 6 je .L15 cmp DWORD PTR -32[rbp], 9 je .L15 cmp DWORD PTR -32[rbp], 11 jne .L16 .L15: cmp DWORD PTR -28[rbp], 31 jne .L16 mov eax, 0 jmp .L18 .L16: cmp DWORD PTR -32[rbp], 2 jne .L17 cmp DWORD PTR -28[rbp], 29 jle .L17 mov eax, 0 jmp .L18 .L17: mov eax, 1 .L18: mov rcx, QWORD PTR -8[rbp] xor rcx, QWORD PTR fs:40 je .L19 call __stack_chk_fail@PLT .L19: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .section .rodata .align 2 .LC0: .word __stack_chk_guard .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 48 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #48 str r0, [fp, #-48] ldr r3, .L20 ldr r3, [r3] str r3, [fp, #-8] mov r3,#0 ldr r0, [fp, #-48] bl strlen mov r3, r0 cmp r3, #10 beq .L2 mov r3, #0 b .L18 .L2: mov r3, #0 str r3, [fp, #-40] b .L4 .L10: ldr r3, [fp, #-40] cmp r3, #2 beq .L5 ldr r3, [fp, #-40] cmp r3, #5 bne .L6 .L5: ldr r3, [fp, #-40] ldr r2, [fp, #-48] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #45 beq .L8 mov r3, #0 b .L18 .L6: ldr r3, [fp, #-40] ldr r2, [fp, #-48] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #47 bls .L9 ldr r3, [fp, #-40] ldr r2, [fp, #-48] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #57 bls .L8 .L9: mov r3, #0 b .L18 .L8: ldr r3, [fp, #-40] add r3, r3, #1 str r3, [fp, #-40] .L4: ldr r3, [fp, #-40] cmp r3, #9 ble .L10 ldr r3, [fp, #-48] ldrb r3, [r3] @ zero_extendqisi2 strb r3, [fp, #-24] ldr r3, [fp, #-48] ldrb r3, [r3, #1] @ zero_extendqisi2 strb r3, [fp, #-23] mov r3, #0 strb r3, [fp, #-22] ldr r3, [fp, #-48] ldrb r3, [r3, #3] @ zero_extendqisi2 strb r3, [fp, #-20] ldr r3, [fp, #-48] ldrb r3, [r3, #4] @ zero_extendqisi2 strb r3, [fp, #-19] mov r3, #0 strb r3, [fp, #-18] ldr r3, [fp, #-48] ldrb r3, [r3, #6] @ zero_extendqisi2 strb r3, [fp, #-16] ldr r3, [fp, #-48] ldrb r3, [r3, #7] @ zero_extendqisi2 strb r3, [fp, #-15] ldr r3, [fp, #-48] ldrb r3, [r3, #8] @ zero_extendqisi2 strb r3, [fp, #-14] ldr r3, [fp, #-48] ldrb r3, [r3, #9] @ zero_extendqisi2 strb r3, [fp, #-13] mov r3, #0 strb r3, [fp, #-12] sub r3, fp, #24 mov r0, r3 bl atoi str r0, [fp, #-36] sub r3, fp, #20 mov r0, r3 bl atoi str r0, [fp, #-32] sub r3, fp, #16 mov r0, r3 bl atoi str r0, [fp, #-28] ldr r3, [fp, #-36] cmp r3, #0 ble .L11 ldr r3, [fp, #-36] cmp r3, #12 ble .L12 .L11: mov r3, #0 b .L18 .L12: ldr r3, [fp, #-32] cmp r3, #0 ble .L13 ldr r3, [fp, #-32] cmp r3, #31 ble .L14 .L13: mov r3, #0 b .L18 .L14: ldr r3, [fp, #-36] cmp r3, #4 beq .L15 ldr r3, [fp, #-36] cmp r3, #6 beq .L15 ldr r3, [fp, #-36] cmp r3, #9 beq .L15 ldr r3, [fp, #-36] cmp r3, #11 bne .L16 .L15: ldr r3, [fp, #-32] cmp r3, #31 bne .L16 mov r3, #0 b .L18 .L16: ldr r3, [fp, #-36] cmp r3, #2 bne .L17 ldr r3, [fp, #-32] cmp r3, #29 ble .L17 mov r3, #0 b .L18 .L17: mov r3, #1 .L18: ldr r2, .L20 ldr r1, [r2] ldr r2, [fp, #-8] eors r1, r2, r1 mov r2, #0 beq .L19 bl __stack_chk_fail .L19: mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .L21: .align 2 .L20: .word .LC0 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem35/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 64 mov QWORD PTR -40[rbp], rdi mov DWORD PTR -44[rbp], esi mov QWORD PTR -56[rbp], rdx mov eax, DWORD PTR -44[rbp] cdqe sal rax, 2 mov rdi, rax call malloc@PLT mov QWORD PTR -8[rbp], rax mov DWORD PTR -24[rbp], 0 mov DWORD PTR -20[rbp], 0 jmp .L2 .L8: mov DWORD PTR -28[rbp], 0 mov DWORD PTR -16[rbp], 0 jmp .L3 .L6: mov eax, DWORD PTR -20[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -16[rbp] cdqe lea rcx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rcx mov eax, DWORD PTR [rax] cmp edx, eax jne .L4 mov DWORD PTR -28[rbp], 1 jmp .L5 .L4: add DWORD PTR -16[rbp], 1 .L3: mov eax, DWORD PTR -16[rbp] cmp eax, DWORD PTR -24[rbp] jl .L6 .L5: cmp DWORD PTR -28[rbp], 0 jne .L7 mov eax, DWORD PTR -20[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] lea rcx, [rdx+rax] mov eax, DWORD PTR -24[rbp] lea edx, 1[rax] mov DWORD PTR -24[rbp], edx cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rdx, rax mov eax, DWORD PTR [rcx] mov DWORD PTR [rdx], eax .L7: add DWORD PTR -20[rbp], 1 .L2: mov eax, DWORD PTR -20[rbp] cmp eax, DWORD PTR -44[rbp] jl .L8 mov DWORD PTR -20[rbp], 0 jmp .L9 .L13: mov eax, DWORD PTR -20[rbp] add eax, 1 mov DWORD PTR -16[rbp], eax jmp .L10 .L12: mov eax, DWORD PTR -20[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -16[rbp] cdqe lea rcx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rcx mov eax, DWORD PTR [rax] cmp edx, eax jle .L11 mov eax, DWORD PTR -20[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov eax, DWORD PTR [rax] mov DWORD PTR -12[rbp], eax mov eax, DWORD PTR -16[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov edx, DWORD PTR -20[rbp] movsx rdx, edx lea rcx, 0[0+rdx*4] mov rdx, QWORD PTR -8[rbp] add rdx, rcx mov eax, DWORD PTR [rax] mov DWORD PTR [rdx], eax mov eax, DWORD PTR -16[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rdx, rax mov eax, DWORD PTR -12[rbp] mov DWORD PTR [rdx], eax .L11: add DWORD PTR -16[rbp], 1 .L10: mov eax, DWORD PTR -16[rbp] cmp eax, DWORD PTR -24[rbp] jl .L12 add DWORD PTR -20[rbp], 1 .L9: mov eax, DWORD PTR -24[rbp] sub eax, 1 cmp DWORD PTR -20[rbp], eax jl .L13 mov rax, QWORD PTR -56[rbp] mov edx, DWORD PTR -24[rbp] mov DWORD PTR [rax], edx mov rax, QWORD PTR -8[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 40 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #40 str r0, [fp, #-32] str r1, [fp, #-36] str r2, [fp, #-40] ldr r3, [fp, #-36] lsl r3, r3, #2 mov r0, r3 bl malloc mov r3, r0 str r3, [fp, #-12] mov r3, #0 str r3, [fp, #-24] mov r3, #0 str r3, [fp, #-20] b .L2 .L8: mov r3, #0 str r3, [fp, #-28] mov r3, #0 str r3, [fp, #-16] b .L3 .L6: ldr r3, [fp, #-20] lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-16] lsl r3, r3, #2 ldr r1, [fp, #-12] add r3, r1, r3 ldr r3, [r3] cmp r2, r3 bne .L4 mov r3, #1 str r3, [fp, #-28] b .L5 .L4: ldr r3, [fp, #-16] add r3, r3, #1 str r3, [fp, #-16] .L3: ldr r2, [fp, #-16] ldr r3, [fp, #-24] cmp r2, r3 blt .L6 .L5: ldr r3, [fp, #-28] cmp r3, #0 bne .L7 ldr r3, [fp, #-20] lsl r3, r3, #2 ldr r2, [fp, #-32] add r2, r2, r3 ldr r3, [fp, #-24] add r1, r3, #1 str r1, [fp, #-24] lsl r3, r3, #2 ldr r1, [fp, #-12] add r3, r1, r3 ldr r2, [r2] str r2, [r3] .L7: ldr r3, [fp, #-20] add r3, r3, #1 str r3, [fp, #-20] .L2: ldr r2, [fp, #-20] ldr r3, [fp, #-36] cmp r2, r3 blt .L8 mov r3, #0 str r3, [fp, #-20] b .L9 .L13: ldr r3, [fp, #-20] add r3, r3, #1 str r3, [fp, #-16] b .L10 .L12: ldr r3, [fp, #-20] lsl r3, r3, #2 ldr r2, [fp, #-12] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-16] lsl r3, r3, #2 ldr r1, [fp, #-12] add r3, r1, r3 ldr r3, [r3] cmp r2, r3 ble .L11 ldr r3, [fp, #-20] lsl r3, r3, #2 ldr r2, [fp, #-12] add r3, r2, r3 ldr r3, [r3] str r3, [fp, #-8] ldr r3, [fp, #-16] lsl r3, r3, #2 ldr r2, [fp, #-12] add r2, r2, r3 ldr r3, [fp, #-20] lsl r3, r3, #2 ldr r1, [fp, #-12] add r3, r1, r3 ldr r2, [r2] str r2, [r3] ldr r3, [fp, #-16] lsl r3, r3, #2 ldr r2, [fp, #-12] add r3, r2, r3 ldr r2, [fp, #-8] str r2, [r3] .L11: ldr r3, [fp, #-16] add r3, r3, #1 str r3, [fp, #-16] .L10: ldr r2, [fp, #-16] ldr r3, [fp, #-24] cmp r2, r3 blt .L12 ldr r3, [fp, #-20] add r3, r3, #1 str r3, [fp, #-20] .L9: ldr r3, [fp, #-24] sub r3, r3, #1 ldr r2, [fp, #-20] cmp r2, r3 blt .L13 ldr r3, [fp, #-40] ldr r2, [fp, #-24] str r2, [r3] ldr r3, [fp, #-12] mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem75/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -24[rbp], rdi mov DWORD PTR -28[rbp], esi mov QWORD PTR -40[rbp], rdx mov DWORD PTR -32[rbp], ecx mov DWORD PTR -8[rbp], 0 mov DWORD PTR -4[rbp], 0 mov DWORD PTR -12[rbp], 0 jmp .L2 .L3: mov eax, DWORD PTR -12[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -24[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov rdi, rax call strlen@PLT mov edx, eax mov eax, DWORD PTR -8[rbp] add eax, edx mov DWORD PTR -8[rbp], eax add DWORD PTR -12[rbp], 1 .L2: mov eax, DWORD PTR -12[rbp] cmp eax, DWORD PTR -28[rbp] jl .L3 mov DWORD PTR -12[rbp], 0 jmp .L4 .L5: mov eax, DWORD PTR -12[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -40[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov rdi, rax call strlen@PLT mov edx, eax mov eax, DWORD PTR -4[rbp] add eax, edx mov DWORD PTR -4[rbp], eax add DWORD PTR -12[rbp], 1 .L4: mov eax, DWORD PTR -12[rbp] cmp eax, DWORD PTR -32[rbp] jl .L5 mov eax, DWORD PTR -8[rbp] cmp eax, DWORD PTR -4[rbp] jge .L6 mov rax, QWORD PTR -24[rbp] jmp .L7 .L6: mov eax, DWORD PTR -8[rbp] cmp eax, DWORD PTR -4[rbp] jle .L8 mov rax, QWORD PTR -40[rbp] jmp .L7 .L8: mov rax, QWORD PTR -24[rbp] .L7: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 32 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #32 str r0, [fp, #-24] str r1, [fp, #-28] str r2, [fp, #-32] str r3, [fp, #-36] mov r3, #0 str r3, [fp, #-12] mov r3, #0 str r3, [fp, #-8] mov r3, #0 str r3, [fp, #-16] b .L2 .L3: ldr r3, [fp, #-16] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r3, [r3] mov r0, r3 bl strlen mov r2, r0 ldr r3, [fp, #-12] add r3, r2, r3 str r3, [fp, #-12] ldr r3, [fp, #-16] add r3, r3, #1 str r3, [fp, #-16] .L2: ldr r2, [fp, #-16] ldr r3, [fp, #-28] cmp r2, r3 blt .L3 mov r3, #0 str r3, [fp, #-16] b .L4 .L5: ldr r3, [fp, #-16] lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r3, [r3] mov r0, r3 bl strlen mov r2, r0 ldr r3, [fp, #-8] add r3, r2, r3 str r3, [fp, #-8] ldr r3, [fp, #-16] add r3, r3, #1 str r3, [fp, #-16] .L4: ldr r2, [fp, #-16] ldr r3, [fp, #-36] cmp r2, r3 blt .L5 ldr r2, [fp, #-12] ldr r3, [fp, #-8] cmp r2, r3 bge .L6 ldr r3, [fp, #-24] b .L7 .L6: ldr r2, [fp, #-12] ldr r3, [fp, #-8] cmp r2, r3 ble .L8 ldr r3, [fp, #-32] b .L7 .L8: ldr r3, [fp, #-24] .L7: mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem93/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 16 movss DWORD PTR -4[rbp], xmm0 movss DWORD PTR -8[rbp], xmm1 movss DWORD PTR -12[rbp], xmm2 mov eax, DWORD PTR -4[rbp] movd xmm0, eax call roundf@PLT ucomiss xmm0, DWORD PTR -4[rbp] jp .L14 ucomiss xmm0, DWORD PTR -4[rbp] je .L19 .L14: mov eax, 0 jmp .L4 .L19: mov eax, DWORD PTR -8[rbp] movd xmm0, eax call roundf@PLT ucomiss xmm0, DWORD PTR -8[rbp] jp .L15 ucomiss xmm0, DWORD PTR -8[rbp] je .L20 .L15: mov eax, 0 jmp .L4 .L20: mov eax, DWORD PTR -12[rbp] movd xmm0, eax call roundf@PLT ucomiss xmm0, DWORD PTR -12[rbp] jp .L16 ucomiss xmm0, DWORD PTR -12[rbp] je .L21 .L16: mov eax, 0 jmp .L4 .L21: movss xmm0, DWORD PTR -4[rbp] addss xmm0, DWORD PTR -8[rbp] ucomiss xmm0, DWORD PTR -12[rbp] jp .L17 ucomiss xmm0, DWORD PTR -12[rbp] je .L9 .L17: movss xmm0, DWORD PTR -4[rbp] addss xmm0, DWORD PTR -12[rbp] ucomiss xmm0, DWORD PTR -8[rbp] jp .L18 ucomiss xmm0, DWORD PTR -8[rbp] je .L9 .L18: movss xmm0, DWORD PTR -8[rbp] addss xmm0, DWORD PTR -12[rbp] ucomiss xmm0, DWORD PTR -4[rbp] jp .L12 ucomiss xmm0, DWORD PTR -4[rbp] jne .L12 .L9: mov eax, 1 jmp .L4 .L12: mov eax, 0 .L4: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .global __aeabi_fcmpeq .global __aeabi_fadd .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 16 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #16 str r0, [fp, #-8] @ float str r1, [fp, #-12] @ float str r2, [fp, #-16] @ float ldr r0, [fp, #-8] @ float bl roundf mov r3, r0 mov r1, r3 ldr r0, [fp, #-8] @ float bl __aeabi_fcmpeq mov r3, r0 cmp r3, #0 bne .L15 mov r3, #0 b .L4 .L15: ldr r0, [fp, #-12] @ float bl roundf mov r3, r0 mov r1, r3 ldr r0, [fp, #-12] @ float bl __aeabi_fcmpeq mov r3, r0 cmp r3, #0 bne .L16 mov r3, #0 b .L4 .L16: ldr r0, [fp, #-16] @ float bl roundf mov r3, r0 mov r1, r3 ldr r0, [fp, #-16] @ float bl __aeabi_fcmpeq mov r3, r0 cmp r3, #0 bne .L17 mov r3, #0 b .L4 .L17: ldr r1, [fp, #-12] @ float ldr r0, [fp, #-8] @ float bl __aeabi_fadd mov r3, r0 mov r1, r3 ldr r0, [fp, #-16] @ float bl __aeabi_fcmpeq mov r3, r0 cmp r3, #0 bne .L9 ldr r1, [fp, #-16] @ float ldr r0, [fp, #-8] @ float bl __aeabi_fadd mov r3, r0 mov r1, r3 ldr r0, [fp, #-12] @ float bl __aeabi_fcmpeq mov r3, r0 cmp r3, #0 bne .L9 ldr r1, [fp, #-16] @ float ldr r0, [fp, #-12] @ float bl __aeabi_fadd mov r3, r0 mov r1, r3 ldr r0, [fp, #-8] @ float bl __aeabi_fcmpeq mov r3, r0 cmp r3, #0 beq .L18 .L9: mov r3, #1 b .L4 .L18: mov r3, #0 .L4: mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem1/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -24[rbp], rdi mov DWORD PTR -28[rbp], esi movss DWORD PTR -32[rbp], xmm0 mov DWORD PTR -8[rbp], 0 jmp .L2 .L8: mov eax, DWORD PTR -8[rbp] add eax, 1 mov DWORD PTR -4[rbp], eax jmp .L3 .L7: mov eax, DWORD PTR -8[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx movss xmm0, DWORD PTR [rax] mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx movss xmm1, DWORD PTR [rax] subss xmm0, xmm1 movss xmm1, DWORD PTR .LC0[rip] andps xmm1, xmm0 movss xmm0, DWORD PTR -32[rbp] comiss xmm0, xmm1 jbe .L10 mov eax, 1 jmp .L6 .L10: add DWORD PTR -4[rbp], 1 .L3: mov eax, DWORD PTR -4[rbp] cmp eax, DWORD PTR -28[rbp] jl .L7 add DWORD PTR -8[rbp], 1 .L2: mov eax, DWORD PTR -8[rbp] cmp eax, DWORD PTR -28[rbp] jl .L8 mov eax, 10 .L6: pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .section .rodata .align 16 .LC0: .long 2147483647 .long 0 .long 0 .long 0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .global __aeabi_fsub .global __aeabi_fcmpgt .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 24 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #24 str r0, [fp, #-16] str r1, [fp, #-20] str r2, [fp, #-24] @ float mov r3, #0 str r3, [fp, #-12] b .L2 .L8: ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-8] b .L3 .L7: ldr r3, [fp, #-12] lsl r3, r3, #2 ldr r2, [fp, #-16] add r3, r2, r3 ldr r0, [r3] @ float ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-16] add r3, r2, r3 ldr r3, [r3] @ float mov r1, r3 bl __aeabi_fsub mov r3, r0 bic r3, r3, #-2147483648 mov r1, r3 ldr r0, [fp, #-24] @ float bl __aeabi_fcmpgt mov r3, r0 cmp r3, #0 beq .L10 mov r3, #1 b .L6 .L10: ldr r3, [fp, #-8] add r3, r3, #1 str r3, [fp, #-8] .L3: ldr r2, [fp, #-8] ldr r3, [fp, #-20] cmp r2, r3 blt .L7 ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L2: ldr r2, [fp, #-12] ldr r3, [fp, #-20] cmp r2, r3 blt .L8 mov r3, #10 .L6: mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem97/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov DWORD PTR -36[rbp], edi mov QWORD PTR -48[rbp], rsi mov eax, DWORD PTR -36[rbp] cdqe sal rax, 2 mov rdi, rax call malloc@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -48[rbp] mov DWORD PTR [rax], 0 mov DWORD PTR -24[rbp], 2 jmp .L2 .L9: mov DWORD PTR -16[rbp], 1 mov DWORD PTR -20[rbp], 0 jmp .L3 .L7: mov eax, DWORD PTR -20[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx mov eax, DWORD PTR [rax] mov DWORD PTR -12[rbp], eax mov eax, DWORD PTR -12[rbp] imul eax, eax cmp DWORD PTR -24[rbp], eax jl .L11 mov eax, DWORD PTR -24[rbp] cdq idiv DWORD PTR -12[rbp] mov eax, edx test eax, eax jne .L6 mov DWORD PTR -16[rbp], 0 jmp .L5 .L6: add DWORD PTR -20[rbp], 1 .L3: mov rax, QWORD PTR -48[rbp] mov eax, DWORD PTR [rax] cmp DWORD PTR -20[rbp], eax jl .L7 jmp .L5 .L11: nop .L5: cmp DWORD PTR -16[rbp], 0 je .L8 mov rax, QWORD PTR -48[rbp] mov eax, DWORD PTR [rax] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rdx, rax mov eax, DWORD PTR -24[rbp] mov DWORD PTR [rdx], eax mov rax, QWORD PTR -48[rbp] mov eax, DWORD PTR [rax] lea edx, 1[rax] mov rax, QWORD PTR -48[rbp] mov DWORD PTR [rax], edx .L8: add DWORD PTR -24[rbp], 1 .L2: mov eax, DWORD PTR -24[rbp] cmp eax, DWORD PTR -36[rbp] jl .L9 mov rax, QWORD PTR -8[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .global __aeabi_idivmod .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 32 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #32 str r0, [fp, #-32] str r1, [fp, #-36] ldr r3, [fp, #-32] lsl r3, r3, #2 mov r0, r3 bl malloc mov r3, r0 str r3, [fp, #-12] ldr r3, [fp, #-36] mov r2, #0 str r2, [r3] mov r3, #2 str r3, [fp, #-24] b .L2 .L9: mov r3, #1 str r3, [fp, #-16] mov r3, #0 str r3, [fp, #-20] b .L3 .L7: ldr r3, [fp, #-20] lsl r3, r3, #2 ldr r2, [fp, #-12] add r3, r2, r3 ldr r3, [r3] str r3, [fp, #-8] ldr r3, [fp, #-8] mov r2, r3 mul r2, r3, r2 mov r3, r2 ldr r2, [fp, #-24] cmp r2, r3 blt .L11 ldr r3, [fp, #-24] ldr r1, [fp, #-8] mov r0, r3 bl __aeabi_idivmod mov r3, r1 cmp r3, #0 bne .L6 mov r3, #0 str r3, [fp, #-16] b .L5 .L6: ldr r3, [fp, #-20] add r3, r3, #1 str r3, [fp, #-20] .L3: ldr r3, [fp, #-36] ldr r3, [r3] ldr r2, [fp, #-20] cmp r2, r3 blt .L7 b .L5 .L11: nop .L5: ldr r3, [fp, #-16] cmp r3, #0 beq .L8 ldr r3, [fp, #-36] ldr r3, [r3] lsl r3, r3, #2 ldr r2, [fp, #-12] add r3, r2, r3 ldr r2, [fp, #-24] str r2, [r3] ldr r3, [fp, #-36] ldr r3, [r3] add r2, r3, #1 ldr r3, [fp, #-36] str r2, [r3] .L8: ldr r3, [fp, #-24] add r3, r3, #1 str r3, [fp, #-24] .L2: ldr r2, [fp, #-24] ldr r3, [fp, #-32] cmp r2, r3 blt .L9 ldr r3, [fp, #-12] mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem32/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -24[rbp], rdi cmp QWORD PTR -24[rbp], 1 jg .L2 mov eax, 0 jmp .L3 .L2: mov QWORD PTR -8[rbp], 2 jmp .L4 .L6: mov rax, QWORD PTR -24[rbp] cqo idiv QWORD PTR -8[rbp] mov rax, rdx test rax, rax jne .L5 mov eax, 0 jmp .L3 .L5: add QWORD PTR -8[rbp], 1 .L4: mov rax, QWORD PTR -8[rbp] imul rax, rax cmp QWORD PTR -24[rbp], rax jge .L6 mov eax, 1 .L3: pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .global __aeabi_ldivmod .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 16 @ frame_needed = 1, uses_anonymous_args = 0 push {r4, r5, fp, lr} add fp, sp, #12 sub sp, sp, #16 str r0, [fp, #-28] str r1, [fp, #-24] sub r3, fp, #28 ldmia r3, {r2-r3} cmp r2, #2 sbcs r3, r3, #0 bge .L2 mov r3, #0 b .L3 .L2: mov r2, #2 mov r3, #0 str r2, [fp, #-20] str r3, [fp, #-16] b .L4 .L6: sub r1, fp, #28 ldmia r1, {r0-r1} sub r3, fp, #20 ldmia r3, {r2-r3} bl __aeabi_ldivmod orrs r3, r2, r3 bne .L5 mov r3, #0 b .L3 .L5: sub r3, fp, #20 ldmia r3, {r2-r3} adds r4, r2, #1 adc r5, r3, #0 str r4, [fp, #-20] str r5, [fp, #-16] .L4: ldr r3, [fp, #-16] ldr r2, [fp, #-20] mul r2, r3, r2 ldr r3, [fp, #-16] ldr r1, [fp, #-20] mul r3, r1, r3 add r0, r2, r3 ldr r1, [fp, #-20] umull r2, r3, r1, r1 add r1, r0, r3 mov r3, r1 sub r1, fp, #28 ldmia r1, {r0-r1} cmp r0, r2 sbcs r3, r1, r3 bge .L6 mov r3, #1 .L3: mov r0, r3 sub sp, fp, #12 @ sp needed pop {r4, r5, fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem143/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -24[rbp], rdi mov DWORD PTR -28[rbp], esi mov DWORD PTR -8[rbp], 0 mov DWORD PTR -4[rbp], 0 jmp .L2 .L6: mov ecx, DWORD PTR -4[rbp] movsx rax, ecx imul rax, rax, 1431655766 shr rax, 32 mov rdx, rax mov eax, ecx sar eax, 31 mov esi, edx sub esi, eax mov eax, esi mov edx, eax add edx, edx add edx, eax mov eax, ecx sub eax, edx test eax, eax jne .L3 mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -4[rbp] cdqe lea rcx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rcx mov eax, DWORD PTR [rax] imul eax, edx add DWORD PTR -8[rbp], eax jmp .L4 .L3: mov eax, DWORD PTR -4[rbp] and eax, 3 test eax, eax jne .L5 mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -4[rbp] cdqe lea rcx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rcx mov eax, DWORD PTR [rax] imul edx, eax mov eax, DWORD PTR -4[rbp] cdqe lea rcx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rcx mov eax, DWORD PTR [rax] imul eax, edx add DWORD PTR -8[rbp], eax jmp .L4 .L5: mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov eax, DWORD PTR [rax] add DWORD PTR -8[rbp], eax .L4: add DWORD PTR -4[rbp], 1 .L2: mov eax, DWORD PTR -4[rbp] cmp eax, DWORD PTR -28[rbp] jl .L6 mov eax, DWORD PTR -8[rbp] pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 16 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #20 str r0, [fp, #-16] str r1, [fp, #-20] mov r3, #0 str r3, [fp, #-12] mov r3, #0 str r3, [fp, #-8] b .L2 .L6: ldr r1, [fp, #-8] ldr r3, .L8 smull r0, r2, r3, r1 asr r3, r1, #31 sub r2, r2, r3 mov r3, r2 lsl r3, r3, #1 add r3, r3, r2 sub r2, r1, r3 cmp r2, #0 bne .L3 ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-16] add r3, r2, r3 ldr r3, [r3] ldr r2, [fp, #-8] lsl r2, r2, #2 ldr r1, [fp, #-16] add r2, r1, r2 ldr r2, [r2] mul r3, r2, r3 ldr r2, [fp, #-12] add r3, r2, r3 str r3, [fp, #-12] b .L4 .L3: ldr r3, [fp, #-8] and r3, r3, #3 cmp r3, #0 bne .L5 ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-16] add r3, r2, r3 ldr r3, [r3] ldr r2, [fp, #-8] lsl r2, r2, #2 ldr r1, [fp, #-16] add r2, r1, r2 ldr r2, [r2] mul r3, r2, r3 ldr r2, [fp, #-8] lsl r2, r2, #2 ldr r1, [fp, #-16] add r2, r1, r2 ldr r2, [r2] mul r3, r2, r3 ldr r2, [fp, #-12] add r3, r2, r3 str r3, [fp, #-12] b .L4 .L5: ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-16] add r3, r2, r3 ldr r3, [r3] ldr r2, [fp, #-12] add r3, r2, r3 str r3, [fp, #-12] .L4: ldr r3, [fp, #-8] add r3, r3, #1 str r3, [fp, #-8] .L2: ldr r2, [fp, #-8] ldr r3, [fp, #-20] cmp r2, r3 blt .L6 ldr r3, [fp, #-12] mov r0, r3 add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .L9: .align 2 .L8: .word 1431655766 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem29/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -40[rbp], rdi mov DWORD PTR -44[rbp], esi mov DWORD PTR -20[rbp], 0 mov DWORD PTR -16[rbp], 0 jmp .L2 .L3: mov eax, DWORD PTR -16[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -40[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov rdi, rax call strlen@PLT mov edx, eax mov eax, DWORD PTR -20[rbp] add eax, edx mov DWORD PTR -20[rbp], eax add DWORD PTR -16[rbp], 1 .L2: mov eax, DWORD PTR -16[rbp] cmp eax, DWORD PTR -44[rbp] jl .L3 mov eax, DWORD PTR -20[rbp] add eax, 1 cdqe mov rdi, rax call malloc@PLT mov QWORD PTR -8[rbp], rax cmp QWORD PTR -8[rbp], 0 jne .L4 mov eax, 0 jmp .L5 .L4: mov rax, QWORD PTR -8[rbp] mov BYTE PTR [rax], 0 mov DWORD PTR -12[rbp], 0 jmp .L6 .L7: mov eax, DWORD PTR -12[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -40[rbp] add rax, rdx mov rdx, QWORD PTR [rax] mov rax, QWORD PTR -8[rbp] mov rsi, rdx mov rdi, rax call strcat@PLT add DWORD PTR -12[rbp], 1 .L6: mov eax, DWORD PTR -12[rbp] cmp eax, DWORD PTR -44[rbp] jl .L7 mov rax, QWORD PTR -8[rbp] .L5: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 24 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #24 str r0, [fp, #-24] str r1, [fp, #-28] mov r3, #0 str r3, [fp, #-20] mov r3, #0 str r3, [fp, #-16] b .L2 .L3: ldr r3, [fp, #-16] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r3, [r3] mov r0, r3 bl strlen mov r2, r0 ldr r3, [fp, #-20] add r3, r2, r3 str r3, [fp, #-20] ldr r3, [fp, #-16] add r3, r3, #1 str r3, [fp, #-16] .L2: ldr r2, [fp, #-16] ldr r3, [fp, #-28] cmp r2, r3 blt .L3 ldr r3, [fp, #-20] add r3, r3, #1 mov r0, r3 bl malloc mov r3, r0 str r3, [fp, #-8] ldr r3, [fp, #-8] cmp r3, #0 bne .L4 mov r3, #0 b .L5 .L4: ldr r3, [fp, #-8] mov r2, #0 strb r2, [r3] mov r3, #0 str r3, [fp, #-12] b .L6 .L7: ldr r3, [fp, #-12] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r3, [r3] mov r1, r3 ldr r0, [fp, #-8] bl strcat ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L6: ldr r2, [fp, #-12] ldr r3, [fp, #-28] cmp r2, r3 blt .L7 ldr r3, [fp, #-8] .L5: mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem154/code.c
.file "code.c" .intel_syntax noprefix .text .section .rodata .LC0: .string "%s.%s" .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 80 mov QWORD PTR -56[rbp], rdi mov QWORD PTR -64[rbp], rsi mov DWORD PTR -68[rbp], edx mov QWORD PTR -80[rbp], rcx mov DWORD PTR -32[rbp], -1000 mov QWORD PTR -16[rbp], 0 mov DWORD PTR -28[rbp], 0 jmp .L2 .L8: mov eax, DWORD PTR -28[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -64[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov QWORD PTR -8[rbp], rax mov DWORD PTR -24[rbp], 0 mov DWORD PTR -20[rbp], 0 jmp .L3 .L6: mov eax, DWORD PTR -20[rbp] movsx rdx, eax mov rax, QWORD PTR -8[rbp] add rax, rdx movzx eax, BYTE PTR [rax] mov BYTE PTR -33[rbp], al cmp BYTE PTR -33[rbp], 64 jle .L4 cmp BYTE PTR -33[rbp], 90 jg .L4 add DWORD PTR -24[rbp], 1 .L4: cmp BYTE PTR -33[rbp], 96 jle .L5 cmp BYTE PTR -33[rbp], 122 jg .L5 sub DWORD PTR -24[rbp], 1 .L5: add DWORD PTR -20[rbp], 1 .L3: mov eax, DWORD PTR -20[rbp] movsx rdx, eax mov rax, QWORD PTR -8[rbp] add rax, rdx movzx eax, BYTE PTR [rax] test al, al jne .L6 mov eax, DWORD PTR -24[rbp] cmp eax, DWORD PTR -32[rbp] jle .L7 mov eax, DWORD PTR -24[rbp] mov DWORD PTR -32[rbp], eax mov rax, QWORD PTR -8[rbp] mov QWORD PTR -16[rbp], rax .L7: add DWORD PTR -28[rbp], 1 .L2: mov eax, DWORD PTR -28[rbp] cmp eax, DWORD PTR -68[rbp] jl .L8 mov rcx, QWORD PTR -16[rbp] mov rdx, QWORD PTR -56[rbp] mov rax, QWORD PTR -80[rbp] lea rsi, .LC0[rip] mov rdi, rax mov eax, 0 call sprintf@PLT nop leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .section .rodata .align 2 .LC0: .ascii "%s.%s\000" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 48 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #48 str r0, [fp, #-40] str r1, [fp, #-44] str r2, [fp, #-48] str r3, [fp, #-52] ldr r3, .L9 str r3, [fp, #-28] mov r3, #0 str r3, [fp, #-24] mov r3, #0 str r3, [fp, #-20] b .L2 .L8: ldr r3, [fp, #-20] lsl r3, r3, #2 ldr r2, [fp, #-44] add r3, r2, r3 ldr r3, [r3] str r3, [fp, #-8] mov r3, #0 str r3, [fp, #-16] mov r3, #0 str r3, [fp, #-12] b .L3 .L6: ldr r3, [fp, #-12] ldr r2, [fp, #-8] add r3, r2, r3 ldrb r3, [r3] strb r3, [fp, #-29] ldrb r3, [fp, #-29] @ zero_extendqisi2 cmp r3, #64 bls .L4 ldrb r3, [fp, #-29] @ zero_extendqisi2 cmp r3, #90 bhi .L4 ldr r3, [fp, #-16] add r3, r3, #1 str r3, [fp, #-16] .L4: ldrb r3, [fp, #-29] @ zero_extendqisi2 cmp r3, #96 bls .L5 ldrb r3, [fp, #-29] @ zero_extendqisi2 cmp r3, #122 bhi .L5 ldr r3, [fp, #-16] sub r3, r3, #1 str r3, [fp, #-16] .L5: ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L3: ldr r3, [fp, #-12] ldr r2, [fp, #-8] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #0 bne .L6 ldr r2, [fp, #-16] ldr r3, [fp, #-28] cmp r2, r3 ble .L7 ldr r3, [fp, #-16] str r3, [fp, #-28] ldr r3, [fp, #-8] str r3, [fp, #-24] .L7: ldr r3, [fp, #-20] add r3, r3, #1 str r3, [fp, #-20] .L2: ldr r2, [fp, #-20] ldr r3, [fp, #-48] cmp r2, r3 blt .L8 ldr r3, [fp, #-24] ldr r2, [fp, #-40] ldr r1, .L9+4 ldr r0, [fp, #-52] bl sprintf nop sub sp, fp, #4 @ sp needed pop {fp, pc} .L10: .align 2 .L9: .word -1000 .word .LC0 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem43/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -24[rbp], rdi mov DWORD PTR -28[rbp], esi mov DWORD PTR -4[rbp], 0 jmp .L2 .L3: mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -4[rbp] cdqe lea rcx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rcx add edx, 1 mov DWORD PTR [rax], edx add DWORD PTR -4[rbp], 1 .L2: mov eax, DWORD PTR -4[rbp] cmp eax, DWORD PTR -28[rbp] jl .L3 nop nop pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 16 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #20 str r0, [fp, #-16] str r1, [fp, #-20] mov r3, #0 str r3, [fp, #-8] b .L2 .L3: ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-16] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r1, [fp, #-16] add r3, r1, r3 add r2, r2, #1 str r2, [r3] ldr r3, [fp, #-8] add r3, r3, #1 str r3, [fp, #-8] .L2: ldr r2, [fp, #-8] ldr r3, [fp, #-20] cmp r2, r3 blt .L3 nop nop add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem26/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov DWORD PTR -20[rbp], edi mov QWORD PTR -32[rbp], rsi mov edi, 256 call malloc@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -32[rbp] mov DWORD PTR [rax], 0 mov DWORD PTR -12[rbp], 2 jmp .L2 .L4: mov eax, DWORD PTR -20[rbp] cdq idiv DWORD PTR -12[rbp] mov DWORD PTR -20[rbp], eax mov rax, QWORD PTR -32[rbp] mov eax, DWORD PTR [rax] lea ecx, 1[rax] mov rdx, QWORD PTR -32[rbp] mov DWORD PTR [rdx], ecx cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rdx, rax mov eax, DWORD PTR -12[rbp] mov DWORD PTR [rdx], eax .L3: mov eax, DWORD PTR -20[rbp] cdq idiv DWORD PTR -12[rbp] mov eax, edx test eax, eax je .L4 add DWORD PTR -12[rbp], 1 .L2: mov eax, DWORD PTR -12[rbp] imul eax, eax cmp DWORD PTR -20[rbp], eax jge .L3 cmp DWORD PTR -20[rbp], 1 jle .L6 mov rax, QWORD PTR -32[rbp] mov eax, DWORD PTR [rax] lea ecx, 1[rax] mov rdx, QWORD PTR -32[rbp] mov DWORD PTR [rdx], ecx cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rdx, rax mov eax, DWORD PTR -20[rbp] mov DWORD PTR [rdx], eax .L6: mov rax, QWORD PTR -8[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .global __aeabi_idiv .global __aeabi_idivmod .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 16 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #16 str r0, [fp, #-16] str r1, [fp, #-20] mov r0, #256 bl malloc mov r3, r0 str r3, [fp, #-8] ldr r3, [fp, #-20] mov r2, #0 str r2, [r3] mov r3, #2 str r3, [fp, #-12] b .L2 .L4: ldr r1, [fp, #-12] ldr r0, [fp, #-16] bl __aeabi_idiv mov r3, r0 str r3, [fp, #-16] ldr r3, [fp, #-20] ldr r3, [r3] add r1, r3, #1 ldr r2, [fp, #-20] str r1, [r2] lsl r3, r3, #2 ldr r2, [fp, #-8] add r3, r2, r3 ldr r2, [fp, #-12] str r2, [r3] .L3: ldr r3, [fp, #-16] ldr r1, [fp, #-12] mov r0, r3 bl __aeabi_idivmod mov r3, r1 cmp r3, #0 beq .L4 ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L2: ldr r3, [fp, #-12] mov r2, r3 mul r2, r3, r2 mov r3, r2 ldr r2, [fp, #-16] cmp r2, r3 bge .L3 ldr r3, [fp, #-16] cmp r3, #1 ble .L6 ldr r3, [fp, #-20] ldr r3, [r3] add r1, r3, #1 ldr r2, [fp, #-20] str r1, [r2] lsl r3, r3, #2 ldr r2, [fp, #-8] add r3, r2, r3 ldr r2, [fp, #-16] str r2, [r3] .L6: ldr r3, [fp, #-8] mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem131/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov DWORD PTR -20[rbp], edi mov eax, DWORD PTR -20[rbp] add eax, 1 cdqe sal rax, 2 mov rdi, rax call malloc@PLT mov QWORD PTR -8[rbp], rax mov rax, QWORD PTR -8[rbp] mov DWORD PTR [rax], 1 cmp DWORD PTR -20[rbp], 0 jne .L2 mov rax, QWORD PTR -8[rbp] jmp .L3 .L2: mov rax, QWORD PTR -8[rbp] add rax, 4 mov DWORD PTR [rax], 3 mov DWORD PTR -12[rbp], 2 jmp .L4 .L7: mov eax, DWORD PTR -12[rbp] and eax, 1 test eax, eax jne .L5 mov eax, DWORD PTR -12[rbp] mov edx, eax shr edx, 31 add eax, edx sar eax mov ecx, eax mov eax, DWORD PTR -12[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rdx lea edx, 1[rcx] mov DWORD PTR [rax], edx jmp .L6 .L5: mov eax, DWORD PTR -12[rbp] cdqe sal rax, 2 lea rdx, -4[rax] mov rax, QWORD PTR -8[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -12[rbp] cdqe sal rax, 2 lea rcx, -8[rax] mov rax, QWORD PTR -8[rbp] add rax, rcx mov eax, DWORD PTR [rax] add eax, edx lea edx, 1[rax] mov eax, DWORD PTR -12[rbp] add eax, 1 mov ecx, eax shr ecx, 31 add eax, ecx sar eax mov esi, eax mov eax, DWORD PTR -12[rbp] cdqe lea rcx, 0[0+rax*4] mov rax, QWORD PTR -8[rbp] add rax, rcx add edx, esi mov DWORD PTR [rax], edx .L6: add DWORD PTR -12[rbp], 1 .L4: mov eax, DWORD PTR -12[rbp] cmp eax, DWORD PTR -20[rbp] jle .L7 mov rax, QWORD PTR -8[rbp] .L3: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 16 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #16 str r0, [fp, #-16] ldr r3, [fp, #-16] add r3, r3, #1 lsl r3, r3, #2 mov r0, r3 bl malloc mov r3, r0 str r3, [fp, #-8] ldr r3, [fp, #-8] mov r2, #1 str r2, [r3] ldr r3, [fp, #-16] cmp r3, #0 bne .L2 ldr r3, [fp, #-8] b .L3 .L2: ldr r3, [fp, #-8] add r3, r3, #4 mov r2, #3 str r2, [r3] mov r3, #2 str r3, [fp, #-12] b .L4 .L7: ldr r3, [fp, #-12] and r3, r3, #1 cmp r3, #0 bne .L5 ldr r3, [fp, #-12] lsr r2, r3, #31 add r3, r2, r3 asr r3, r3, #1 mov r1, r3 ldr r3, [fp, #-12] lsl r3, r3, #2 ldr r2, [fp, #-8] add r3, r2, r3 add r2, r1, #1 str r2, [r3] b .L6 .L5: ldr r3, [fp, #-12] sub r3, r3, #-1073741823 lsl r3, r3, #2 ldr r2, [fp, #-8] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-12] sub r3, r3, #-1073741822 lsl r3, r3, #2 ldr r1, [fp, #-8] add r3, r1, r3 ldr r3, [r3] add r3, r2, r3 add r2, r3, #1 ldr r3, [fp, #-12] add r3, r3, #1 lsr r1, r3, #31 add r3, r1, r3 asr r3, r3, #1 mov r0, r3 ldr r3, [fp, #-12] lsl r3, r3, #2 ldr r1, [fp, #-8] add r3, r1, r3 add r2, r2, r0 str r2, [r3] .L6: ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L4: ldr r2, [fp, #-12] ldr r3, [fp, #-16] cmp r2, r3 ble .L7 ldr r3, [fp, #-8] .L3: mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem90/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -24[rbp], rdi mov QWORD PTR -32[rbp], rsi mov DWORD PTR -8[rbp], 0 jmp .L2 .L3: mov eax, DWORD PTR -8[rbp] movsx rdx, eax mov rax, QWORD PTR -24[rbp] add rax, rdx movzx eax, BYTE PTR [rax] movsx eax, al lea edx, -93[rax] movsx rax, edx imul rax, rax, 1321528399 shr rax, 32 mov ecx, eax sar ecx, 3 mov eax, edx sar eax, 31 sub ecx, eax mov eax, ecx imul eax, eax, 26 sub edx, eax mov eax, edx add eax, 97 mov DWORD PTR -4[rbp], eax mov eax, DWORD PTR -8[rbp] movsx rdx, eax mov rax, QWORD PTR -32[rbp] add rax, rdx mov edx, DWORD PTR -4[rbp] mov BYTE PTR [rax], dl add DWORD PTR -8[rbp], 1 .L2: mov eax, DWORD PTR -8[rbp] movsx rdx, eax mov rax, QWORD PTR -24[rbp] add rax, rdx movzx eax, BYTE PTR [rax] test al, al jne .L3 mov eax, DWORD PTR -8[rbp] movsx rdx, eax mov rax, QWORD PTR -32[rbp] add rax, rdx mov BYTE PTR [rax], 0 nop pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 16 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #20 str r0, [fp, #-16] str r1, [fp, #-20] mov r3, #0 str r3, [fp, #-12] b .L2 .L3: ldr r3, [fp, #-12] ldr r2, [fp, #-16] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 sub r1, r3, #93 ldr r3, .L4 smull r2, r3, r1, r3 asr r2, r3, #3 asr r3, r1, #31 sub r2, r2, r3 mov r3, r2 lsl r3, r3, #1 add r3, r3, r2 lsl r3, r3, #2 add r3, r3, r2 lsl r3, r3, #1 sub r2, r1, r3 add r3, r2, #97 str r3, [fp, #-8] ldr r3, [fp, #-12] ldr r2, [fp, #-20] add r3, r2, r3 ldr r2, [fp, #-8] and r2, r2, #255 strb r2, [r3] ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L2: ldr r3, [fp, #-12] ldr r2, [fp, #-16] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #0 bne .L3 ldr r3, [fp, #-12] ldr r2, [fp, #-20] add r3, r2, r3 mov r2, #0 strb r2, [r3] nop add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .L5: .align 2 .L4: .word 1321528399 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem30/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -24[rbp], rdi mov DWORD PTR -28[rbp], esi mov QWORD PTR -40[rbp], rdx mov QWORD PTR -48[rbp], rcx mov rax, QWORD PTR -40[rbp] mov rdi, rax call strlen@PLT mov DWORD PTR -4[rbp], eax mov eax, DWORD PTR -28[rbp] cdqe sal rax, 3 mov rdi, rax call malloc@PLT mov rdx, rax mov rax, QWORD PTR -48[rbp] mov QWORD PTR [rax], rdx mov DWORD PTR -12[rbp], 0 mov DWORD PTR -8[rbp], 0 jmp .L2 .L4: mov eax, DWORD PTR -4[rbp] movsx rdx, eax mov eax, DWORD PTR -8[rbp] cdqe lea rcx, 0[0+rax*8] mov rax, QWORD PTR -24[rbp] add rax, rcx mov rax, QWORD PTR [rax] mov rcx, QWORD PTR -40[rbp] mov rsi, rcx mov rdi, rax call strncmp@PLT test eax, eax jne .L3 mov eax, DWORD PTR -8[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -24[rbp] lea rcx, [rdx+rax] mov rax, QWORD PTR -48[rbp] mov rsi, QWORD PTR [rax] mov eax, DWORD PTR -12[rbp] lea edx, 1[rax] mov DWORD PTR -12[rbp], edx cdqe sal rax, 3 lea rdx, [rsi+rax] mov rax, QWORD PTR [rcx] mov QWORD PTR [rdx], rax .L3: add DWORD PTR -8[rbp], 1 .L2: mov eax, DWORD PTR -8[rbp] cmp eax, DWORD PTR -28[rbp] jl .L4 mov eax, DWORD PTR -12[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 32 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #32 str r0, [fp, #-24] str r1, [fp, #-28] str r2, [fp, #-32] str r3, [fp, #-36] ldr r0, [fp, #-32] bl strlen mov r3, r0 str r3, [fp, #-8] ldr r3, [fp, #-28] lsl r3, r3, #2 mov r0, r3 bl malloc mov r3, r0 mov r2, r3 ldr r3, [fp, #-36] str r2, [r3] mov r3, #0 str r3, [fp, #-16] mov r3, #0 str r3, [fp, #-12] b .L2 .L4: ldr r3, [fp, #-12] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r3, [r3] ldr r2, [fp, #-8] ldr r1, [fp, #-32] mov r0, r3 bl strncmp mov r3, r0 cmp r3, #0 bne .L3 ldr r3, [fp, #-12] lsl r3, r3, #2 ldr r2, [fp, #-24] add r2, r2, r3 ldr r3, [fp, #-36] ldr r1, [r3] ldr r3, [fp, #-16] add r0, r3, #1 str r0, [fp, #-16] lsl r3, r3, #2 add r3, r1, r3 ldr r2, [r2] str r2, [r3] .L3: ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L2: ldr r2, [fp, #-12] ldr r3, [fp, #-28] cmp r2, r3 blt .L4 ldr r3, [fp, #-16] mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem164/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov DWORD PTR -20[rbp], edi mov DWORD PTR -24[rbp], esi mov QWORD PTR -32[rbp], rdx mov QWORD PTR -40[rbp], rcx mov rax, QWORD PTR -40[rbp] mov DWORD PTR [rax], 0 mov eax, DWORD PTR -24[rbp] cmp eax, DWORD PTR -20[rbp] jge .L2 mov eax, DWORD PTR -20[rbp] mov DWORD PTR -4[rbp], eax mov eax, DWORD PTR -24[rbp] mov DWORD PTR -20[rbp], eax mov eax, DWORD PTR -4[rbp] mov DWORD PTR -24[rbp], eax .L2: mov eax, DWORD PTR -20[rbp] mov DWORD PTR -8[rbp], eax jmp .L3 .L5: cmp DWORD PTR -8[rbp], 9 jg .L4 mov eax, DWORD PTR -8[rbp] and eax, 1 test eax, eax jne .L4 mov rax, QWORD PTR -40[rbp] mov eax, DWORD PTR [rax] lea ecx, 1[rax] mov rdx, QWORD PTR -40[rbp] mov DWORD PTR [rdx], ecx cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -32[rbp] add rdx, rax mov eax, DWORD PTR -8[rbp] mov DWORD PTR [rdx], eax .L4: add DWORD PTR -8[rbp], 1 .L3: mov eax, DWORD PTR -8[rbp] cmp eax, DWORD PTR -24[rbp] jle .L5 nop nop pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 24 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #28 str r0, [fp, #-16] str r1, [fp, #-20] str r2, [fp, #-24] str r3, [fp, #-28] ldr r3, [fp, #-28] mov r2, #0 str r2, [r3] ldr r2, [fp, #-20] ldr r3, [fp, #-16] cmp r2, r3 bge .L2 ldr r3, [fp, #-16] str r3, [fp, #-8] ldr r3, [fp, #-20] str r3, [fp, #-16] ldr r3, [fp, #-8] str r3, [fp, #-20] .L2: ldr r3, [fp, #-16] str r3, [fp, #-12] b .L3 .L5: ldr r3, [fp, #-12] cmp r3, #9 bgt .L4 ldr r3, [fp, #-12] and r3, r3, #1 cmp r3, #0 bne .L4 ldr r3, [fp, #-28] ldr r3, [r3] add r1, r3, #1 ldr r2, [fp, #-28] str r1, [r2] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r2, [fp, #-12] str r2, [r3] .L4: ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L3: ldr r2, [fp, #-12] ldr r3, [fp, #-20] cmp r2, r3 ble .L5 nop nop add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem95/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -40[rbp], rdi mov DWORD PTR -44[rbp], esi mov DWORD PTR -24[rbp], 0 mov DWORD PTR -20[rbp], 0 mov DWORD PTR -16[rbp], 0 jmp .L2 .L8: mov eax, DWORD PTR -16[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -40[rbp] add rax, rdx mov eax, DWORD PTR [rax] mov DWORD PTR -4[rbp], eax cmp DWORD PTR -4[rbp], 1 jle .L3 mov DWORD PTR -12[rbp], 1 mov DWORD PTR -8[rbp], 2 jmp .L4 .L7: mov eax, DWORD PTR -4[rbp] cdq idiv DWORD PTR -8[rbp] mov eax, edx test eax, eax jne .L5 mov DWORD PTR -12[rbp], 0 jmp .L6 .L5: add DWORD PTR -8[rbp], 1 .L4: mov eax, DWORD PTR -8[rbp] imul eax, eax cmp DWORD PTR -4[rbp], eax jge .L7 .L6: cmp DWORD PTR -12[rbp], 0 je .L3 mov eax, DWORD PTR -4[rbp] cmp DWORD PTR -24[rbp], eax cmovge eax, DWORD PTR -24[rbp] mov DWORD PTR -24[rbp], eax .L3: add DWORD PTR -16[rbp], 1 .L2: mov eax, DWORD PTR -16[rbp] cmp eax, DWORD PTR -44[rbp] jl .L8 jmp .L9 .L10: mov ecx, DWORD PTR -24[rbp] movsx rax, ecx imul rax, rax, 1717986919 shr rax, 32 mov edx, eax sar edx, 2 mov eax, ecx sar eax, 31 sub edx, eax mov eax, edx sal eax, 2 add eax, edx add eax, eax sub ecx, eax mov edx, ecx add DWORD PTR -20[rbp], edx mov eax, DWORD PTR -24[rbp] movsx rdx, eax imul rdx, rdx, 1717986919 shr rdx, 32 sar edx, 2 sar eax, 31 sub edx, eax mov eax, edx mov DWORD PTR -24[rbp], eax .L9: cmp DWORD PTR -24[rbp], 0 jg .L10 mov eax, DWORD PTR -20[rbp] pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .global __aeabi_idivmod .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 32 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #32 str r0, [fp, #-32] str r1, [fp, #-36] mov r3, #0 str r3, [fp, #-28] mov r3, #0 str r3, [fp, #-24] mov r3, #0 str r3, [fp, #-20] b .L2 .L8: ldr r3, [fp, #-20] lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r3, [r3] str r3, [fp, #-8] ldr r3, [fp, #-8] cmp r3, #1 ble .L3 mov r3, #1 str r3, [fp, #-16] mov r3, #2 str r3, [fp, #-12] b .L4 .L7: ldr r3, [fp, #-8] ldr r1, [fp, #-12] mov r0, r3 bl __aeabi_idivmod mov r3, r1 cmp r3, #0 bne .L5 mov r3, #0 str r3, [fp, #-16] b .L6 .L5: ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L4: ldr r3, [fp, #-12] mov r2, r3 mul r2, r3, r2 mov r3, r2 ldr r2, [fp, #-8] cmp r2, r3 bge .L7 .L6: ldr r3, [fp, #-16] cmp r3, #0 beq .L3 ldr r2, [fp, #-28] ldr r3, [fp, #-8] cmp r2, r3 movge r3, r2 movlt r3, r3 str r3, [fp, #-28] .L3: ldr r3, [fp, #-20] add r3, r3, #1 str r3, [fp, #-20] .L2: ldr r2, [fp, #-20] ldr r3, [fp, #-36] cmp r2, r3 blt .L8 b .L9 .L10: ldr r1, [fp, #-28] ldr r3, .L12 smull r2, r3, r1, r3 asr r2, r3, #2 asr r3, r1, #31 sub r2, r2, r3 mov r3, r2 lsl r3, r3, #2 add r3, r3, r2 lsl r3, r3, #1 sub r2, r1, r3 ldr r3, [fp, #-24] add r3, r3, r2 str r3, [fp, #-24] ldr r3, [fp, #-28] ldr r2, .L12 smull r1, r2, r3, r2 asr r2, r2, #2 asr r3, r3, #31 sub r3, r2, r3 str r3, [fp, #-28] .L9: ldr r3, [fp, #-28] cmp r3, #0 bgt .L10 ldr r3, [fp, #-24] mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .L13: .align 2 .L12: .word 1717986919 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem103/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov DWORD PTR -4[rbp], edi mov DWORD PTR -8[rbp], esi mov eax, DWORD PTR -8[rbp] cmp eax, DWORD PTR -4[rbp] jge .L2 mov eax, -1 jmp .L3 .L2: mov eax, DWORD PTR -8[rbp] cmp eax, DWORD PTR -4[rbp] jne .L4 mov eax, DWORD PTR -8[rbp] cdq shr edx, 31 add eax, edx and eax, 1 sub eax, edx cmp eax, 1 jne .L4 mov eax, -1 jmp .L3 .L4: mov eax, DWORD PTR -8[rbp] cdq shr edx, 31 add eax, edx and eax, 1 sub eax, edx cmp eax, 1 jne .L5 mov eax, DWORD PTR -8[rbp] sub eax, 1 jmp .L3 .L5: mov eax, DWORD PTR -8[rbp] .L3: pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 8 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #12 str r0, [fp, #-8] str r1, [fp, #-12] ldr r2, [fp, #-12] ldr r3, [fp, #-8] cmp r2, r3 bge .L2 mvn r3, #0 b .L3 .L2: ldr r2, [fp, #-12] ldr r3, [fp, #-8] cmp r2, r3 bne .L4 ldr r3, [fp, #-12] cmp r3, #0 and r3, r3, #1 rsblt r3, r3, #0 cmp r3, #1 bne .L4 mvn r3, #0 b .L3 .L4: ldr r3, [fp, #-12] cmp r3, #0 and r3, r3, #1 rsblt r3, r3, #0 cmp r3, #1 bne .L5 ldr r3, [fp, #-12] sub r3, r3, #1 b .L3 .L5: ldr r3, [fp, #-12] .L3: mov r0, r3 add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem40/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov DWORD PTR -36[rbp], edi mov DWORD PTR -24[rbp], 1 mov DWORD PTR -20[rbp], 2 mov DWORD PTR -16[rbp], 0 jmp .L2 .L9: mov eax, DWORD PTR -20[rbp] add DWORD PTR -24[rbp], eax mov eax, DWORD PTR -24[rbp] mov DWORD PTR -4[rbp], eax mov eax, DWORD PTR -20[rbp] mov DWORD PTR -24[rbp], eax mov eax, DWORD PTR -4[rbp] mov DWORD PTR -20[rbp], eax mov DWORD PTR -12[rbp], 1 mov DWORD PTR -8[rbp], 2 jmp .L3 .L6: mov eax, DWORD PTR -24[rbp] cdq idiv DWORD PTR -8[rbp] mov eax, edx test eax, eax jne .L4 mov DWORD PTR -12[rbp], 0 jmp .L5 .L4: add DWORD PTR -8[rbp], 1 .L3: mov eax, DWORD PTR -8[rbp] imul eax, eax cmp DWORD PTR -24[rbp], eax jge .L6 .L5: cmp DWORD PTR -12[rbp], 0 je .L7 add DWORD PTR -16[rbp], 1 .L7: mov eax, DWORD PTR -16[rbp] cmp eax, DWORD PTR -36[rbp] jne .L2 mov eax, DWORD PTR -24[rbp] jmp .L8 .L2: mov eax, DWORD PTR -16[rbp] cmp eax, DWORD PTR -36[rbp] jl .L9 mov eax, 0 .L8: pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .global __aeabi_idivmod .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 32 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #32 str r0, [fp, #-32] mov r3, #1 str r3, [fp, #-28] mov r3, #2 str r3, [fp, #-24] mov r3, #0 str r3, [fp, #-20] b .L2 .L9: ldr r2, [fp, #-28] ldr r3, [fp, #-24] add r3, r2, r3 str r3, [fp, #-28] ldr r3, [fp, #-28] str r3, [fp, #-8] ldr r3, [fp, #-24] str r3, [fp, #-28] ldr r3, [fp, #-8] str r3, [fp, #-24] mov r3, #1 str r3, [fp, #-16] mov r3, #2 str r3, [fp, #-12] b .L3 .L6: ldr r3, [fp, #-28] ldr r1, [fp, #-12] mov r0, r3 bl __aeabi_idivmod mov r3, r1 cmp r3, #0 bne .L4 mov r3, #0 str r3, [fp, #-16] b .L5 .L4: ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L3: ldr r3, [fp, #-12] mov r2, r3 mul r2, r3, r2 mov r3, r2 ldr r2, [fp, #-28] cmp r2, r3 bge .L6 .L5: ldr r3, [fp, #-16] cmp r3, #0 beq .L7 ldr r3, [fp, #-20] add r3, r3, #1 str r3, [fp, #-20] .L7: ldr r2, [fp, #-20] ldr r3, [fp, #-32] cmp r2, r3 bne .L2 ldr r3, [fp, #-28] b .L8 .L2: ldr r2, [fp, #-20] ldr r3, [fp, #-32] cmp r2, r3 blt .L9 mov r3, #0 .L8: mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem60/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov DWORD PTR -20[rbp], edi mov DWORD PTR -4[rbp], 2 jmp .L2 .L5: mov eax, DWORD PTR -20[rbp] cdq idiv DWORD PTR -4[rbp] mov DWORD PTR -20[rbp], eax .L3: mov eax, DWORD PTR -20[rbp] cdq idiv DWORD PTR -4[rbp] mov eax, edx test eax, eax jne .L4 mov eax, DWORD PTR -20[rbp] cmp eax, DWORD PTR -4[rbp] jg .L5 .L4: add DWORD PTR -4[rbp], 1 .L2: mov eax, DWORD PTR -4[rbp] imul eax, eax cmp DWORD PTR -20[rbp], eax jge .L3 mov eax, DWORD PTR -20[rbp] pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .global __aeabi_idiv .global __aeabi_idivmod .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 16 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #16 str r0, [fp, #-16] mov r3, #2 str r3, [fp, #-8] b .L2 .L5: ldr r1, [fp, #-8] ldr r0, [fp, #-16] bl __aeabi_idiv mov r3, r0 str r3, [fp, #-16] .L3: ldr r3, [fp, #-16] ldr r1, [fp, #-8] mov r0, r3 bl __aeabi_idivmod mov r3, r1 cmp r3, #0 bne .L4 ldr r2, [fp, #-16] ldr r3, [fp, #-8] cmp r2, r3 bgt .L5 .L4: ldr r3, [fp, #-8] add r3, r3, #1 str r3, [fp, #-8] .L2: ldr r3, [fp, #-8] mov r2, r3 mul r2, r3, r2 mov r3, r2 ldr r2, [fp, #-16] cmp r2, r3 bge .L3 ldr r3, [fp, #-16] mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem122/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -24[rbp], rdi mov DWORD PTR -28[rbp], esi mov DWORD PTR -8[rbp], 0 mov DWORD PTR -4[rbp], 0 jmp .L2 .L4: mov eax, DWORD PTR -4[rbp] add eax, eax cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov eax, DWORD PTR [rax] cdq shr edx, 31 add eax, edx and eax, 1 sub eax, edx cmp eax, 1 jne .L3 mov eax, DWORD PTR -4[rbp] add eax, eax cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov eax, DWORD PTR [rax] add DWORD PTR -8[rbp], eax .L3: add DWORD PTR -4[rbp], 1 .L2: mov eax, DWORD PTR -4[rbp] add eax, eax cmp DWORD PTR -28[rbp], eax jg .L4 mov eax, DWORD PTR -8[rbp] pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 16 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #20 str r0, [fp, #-16] str r1, [fp, #-20] mov r3, #0 str r3, [fp, #-12] mov r3, #0 str r3, [fp, #-8] b .L2 .L4: ldr r3, [fp, #-8] lsl r3, r3, #3 ldr r2, [fp, #-16] add r3, r2, r3 ldr r3, [r3] cmp r3, #0 and r3, r3, #1 rsblt r3, r3, #0 cmp r3, #1 bne .L3 ldr r3, [fp, #-8] lsl r3, r3, #3 ldr r2, [fp, #-16] add r3, r2, r3 ldr r3, [r3] ldr r2, [fp, #-12] add r3, r2, r3 str r3, [fp, #-12] .L3: ldr r3, [fp, #-8] add r3, r3, #1 str r3, [fp, #-8] .L2: ldr r3, [fp, #-8] lsl r3, r3, #1 ldr r2, [fp, #-20] cmp r2, r3 bgt .L4 ldr r3, [fp, #-12] mov r0, r3 add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem146/code.c
.file "code.c" .intel_syntax noprefix .text .section .rodata .LC0: .string "%d" .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 80 mov QWORD PTR -72[rbp], rdi mov DWORD PTR -76[rbp], esi mov rax, QWORD PTR fs:40 mov QWORD PTR -8[rbp], rax xor eax, eax mov eax, DWORD PTR -76[rbp] cdqe sal rax, 2 mov rdi, rax call malloc@PLT mov QWORD PTR -32[rbp], rax mov DWORD PTR -60[rbp], 0 jmp .L2 .L7: mov eax, DWORD PTR -60[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -72[rbp] add rax, rdx mov eax, DWORD PTR [rax] cdq xor eax, edx sub eax, edx lea rcx, -20[rbp] mov edx, eax lea rsi, .LC0[rip] mov rdi, rcx mov eax, 0 call sprintf@PLT mov DWORD PTR -56[rbp], 0 lea rax, -20[rbp] mov rdi, rax call strlen@PLT mov DWORD PTR -36[rbp], eax mov DWORD PTR -52[rbp], 1 jmp .L3 .L4: mov eax, DWORD PTR -52[rbp] cdqe movzx eax, BYTE PTR -20[rbp+rax] movsx eax, al sub eax, 48 add DWORD PTR -56[rbp], eax add DWORD PTR -52[rbp], 1 .L3: mov eax, DWORD PTR -52[rbp] cmp eax, DWORD PTR -36[rbp] jl .L4 mov eax, DWORD PTR -60[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -72[rbp] add rax, rdx mov eax, DWORD PTR [rax] test eax, eax jle .L5 movzx eax, BYTE PTR -20[rbp] movsx eax, al sub eax, 48 add DWORD PTR -56[rbp], eax jmp .L6 .L5: movzx eax, BYTE PTR -20[rbp] movsx eax, al sub eax, 48 sub DWORD PTR -56[rbp], eax .L6: mov eax, DWORD PTR -60[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -32[rbp] add rdx, rax mov eax, DWORD PTR -56[rbp] mov DWORD PTR [rdx], eax add DWORD PTR -60[rbp], 1 .L2: mov eax, DWORD PTR -60[rbp] cmp eax, DWORD PTR -76[rbp] jl .L7 mov DWORD PTR -48[rbp], 0 jmp .L8 .L12: mov DWORD PTR -44[rbp], 1 jmp .L9 .L11: mov eax, DWORD PTR -44[rbp] cdqe sal rax, 2 lea rdx, -4[rax] mov rax, QWORD PTR -32[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -44[rbp] cdqe lea rcx, 0[0+rax*4] mov rax, QWORD PTR -32[rbp] add rax, rcx mov eax, DWORD PTR [rax] cmp edx, eax jle .L10 mov eax, DWORD PTR -44[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -32[rbp] add rax, rdx mov eax, DWORD PTR [rax] mov DWORD PTR -40[rbp], eax mov eax, DWORD PTR -44[rbp] cdqe sal rax, 2 lea rdx, -4[rax] mov rax, QWORD PTR -32[rbp] add rax, rdx mov edx, DWORD PTR -44[rbp] movsx rdx, edx lea rcx, 0[0+rdx*4] mov rdx, QWORD PTR -32[rbp] add rdx, rcx mov eax, DWORD PTR [rax] mov DWORD PTR [rdx], eax mov eax, DWORD PTR -44[rbp] cdqe sal rax, 2 lea rdx, -4[rax] mov rax, QWORD PTR -32[rbp] add rdx, rax mov eax, DWORD PTR -40[rbp] mov DWORD PTR [rdx], eax mov eax, DWORD PTR -44[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -72[rbp] add rax, rdx mov eax, DWORD PTR [rax] mov DWORD PTR -40[rbp], eax mov eax, DWORD PTR -44[rbp] cdqe sal rax, 2 lea rdx, -4[rax] mov rax, QWORD PTR -72[rbp] add rax, rdx mov edx, DWORD PTR -44[rbp] movsx rdx, edx lea rcx, 0[0+rdx*4] mov rdx, QWORD PTR -72[rbp] add rdx, rcx mov eax, DWORD PTR [rax] mov DWORD PTR [rdx], eax mov eax, DWORD PTR -44[rbp] cdqe sal rax, 2 lea rdx, -4[rax] mov rax, QWORD PTR -72[rbp] add rdx, rax mov eax, DWORD PTR -40[rbp] mov DWORD PTR [rdx], eax .L10: add DWORD PTR -44[rbp], 1 .L9: mov eax, DWORD PTR -44[rbp] cmp eax, DWORD PTR -76[rbp] jl .L11 add DWORD PTR -48[rbp], 1 .L8: mov eax, DWORD PTR -48[rbp] cmp eax, DWORD PTR -76[rbp] jl .L12 mov rax, QWORD PTR -32[rbp] mov rdi, rax call free@PLT mov rax, QWORD PTR -72[rbp] mov rsi, QWORD PTR -8[rbp] xor rsi, QWORD PTR fs:40 je .L14 call __stack_chk_fail@PLT .L14: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .section .rodata .align 2 .LC0: .ascii "%d\000" .align 2 .LC1: .word __stack_chk_guard .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 56 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #56 str r0, [fp, #-56] str r1, [fp, #-60] ldr r3, .L15 ldr r3, [r3] str r3, [fp, #-8] mov r3,#0 ldr r3, [fp, #-60] lsl r3, r3, #2 mov r0, r3 bl malloc mov r3, r0 str r3, [fp, #-32] mov r3, #0 str r3, [fp, #-52] b .L2 .L7: ldr r3, [fp, #-52] lsl r3, r3, #2 ldr r2, [fp, #-56] add r3, r2, r3 ldr r3, [r3] eor r2, r3, r3, asr #31 sub r2, r2, r3, asr #31 sub r3, fp, #20 ldr r1, .L15+4 mov r0, r3 bl sprintf mov r3, #0 str r3, [fp, #-48] sub r3, fp, #20 mov r0, r3 bl strlen mov r3, r0 str r3, [fp, #-24] mov r3, #1 str r3, [fp, #-44] b .L3 .L4: sub r2, fp, #20 ldr r3, [fp, #-44] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 sub r3, r3, #48 ldr r2, [fp, #-48] add r3, r2, r3 str r3, [fp, #-48] ldr r3, [fp, #-44] add r3, r3, #1 str r3, [fp, #-44] .L3: ldr r2, [fp, #-44] ldr r3, [fp, #-24] cmp r2, r3 blt .L4 ldr r3, [fp, #-52] lsl r3, r3, #2 ldr r2, [fp, #-56] add r3, r2, r3 ldr r3, [r3] cmp r3, #0 ble .L5 ldrb r3, [fp, #-20] @ zero_extendqisi2 sub r3, r3, #48 ldr r2, [fp, #-48] add r3, r2, r3 str r3, [fp, #-48] b .L6 .L5: ldrb r3, [fp, #-20] @ zero_extendqisi2 sub r3, r3, #48 ldr r2, [fp, #-48] sub r3, r2, r3 str r3, [fp, #-48] .L6: ldr r3, [fp, #-52] lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r2, [fp, #-48] str r2, [r3] ldr r3, [fp, #-52] add r3, r3, #1 str r3, [fp, #-52] .L2: ldr r2, [fp, #-52] ldr r3, [fp, #-60] cmp r2, r3 blt .L7 mov r3, #0 str r3, [fp, #-40] b .L8 .L12: mov r3, #1 str r3, [fp, #-36] b .L9 .L11: ldr r3, [fp, #-36] sub r3, r3, #-1073741823 lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-36] lsl r3, r3, #2 ldr r1, [fp, #-32] add r3, r1, r3 ldr r3, [r3] cmp r2, r3 ble .L10 ldr r3, [fp, #-36] lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r3, [r3] str r3, [fp, #-28] ldr r3, [fp, #-36] sub r3, r3, #-1073741823 lsl r3, r3, #2 ldr r2, [fp, #-32] add r2, r2, r3 ldr r3, [fp, #-36] lsl r3, r3, #2 ldr r1, [fp, #-32] add r3, r1, r3 ldr r2, [r2] str r2, [r3] ldr r3, [fp, #-36] sub r3, r3, #-1073741823 lsl r3, r3, #2 ldr r2, [fp, #-32] add r3, r2, r3 ldr r2, [fp, #-28] str r2, [r3] ldr r3, [fp, #-36] lsl r3, r3, #2 ldr r2, [fp, #-56] add r3, r2, r3 ldr r3, [r3] str r3, [fp, #-28] ldr r3, [fp, #-36] sub r3, r3, #-1073741823 lsl r3, r3, #2 ldr r2, [fp, #-56] add r2, r2, r3 ldr r3, [fp, #-36] lsl r3, r3, #2 ldr r1, [fp, #-56] add r3, r1, r3 ldr r2, [r2] str r2, [r3] ldr r3, [fp, #-36] sub r3, r3, #-1073741823 lsl r3, r3, #2 ldr r2, [fp, #-56] add r3, r2, r3 ldr r2, [fp, #-28] str r2, [r3] .L10: ldr r3, [fp, #-36] add r3, r3, #1 str r3, [fp, #-36] .L9: ldr r2, [fp, #-36] ldr r3, [fp, #-60] cmp r2, r3 blt .L11 ldr r3, [fp, #-40] add r3, r3, #1 str r3, [fp, #-40] .L8: ldr r2, [fp, #-40] ldr r3, [fp, #-60] cmp r2, r3 blt .L12 ldr r0, [fp, #-32] bl free ldr r3, [fp, #-56] ldr r2, .L15 ldr r1, [r2] ldr r2, [fp, #-8] eors r1, r2, r1 mov r2, #0 beq .L14 bl __stack_chk_fail .L14: mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .L16: .align 2 .L15: .word .LC1 .word .LC0 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem157/code.c
.file "code.c" .intel_syntax noprefix .text .section .rodata .LC0: .string "m" .LC1: .string "cm" .LC2: .string "d" .LC3: .string "cd" .LC4: .string "c" .LC5: .string "xc" .LC6: .string "l" .LC7: .string "xl" .LC8: .string "x" .LC9: .string "ix" .LC10: .string "v" .LC11: .string "iv" .LC12: .string "i" .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 208 mov DWORD PTR -196[rbp], edi mov QWORD PTR -208[rbp], rsi mov rax, QWORD PTR fs:40 mov QWORD PTR -8[rbp], rax xor eax, eax lea rax, .LC0[rip] mov QWORD PTR -112[rbp], rax lea rax, .LC1[rip] mov QWORD PTR -104[rbp], rax lea rax, .LC2[rip] mov QWORD PTR -96[rbp], rax lea rax, .LC3[rip] mov QWORD PTR -88[rbp], rax lea rax, .LC4[rip] mov QWORD PTR -80[rbp], rax lea rax, .LC5[rip] mov QWORD PTR -72[rbp], rax lea rax, .LC6[rip] mov QWORD PTR -64[rbp], rax lea rax, .LC7[rip] mov QWORD PTR -56[rbp], rax lea rax, .LC8[rip] mov QWORD PTR -48[rbp], rax lea rax, .LC9[rip] mov QWORD PTR -40[rbp], rax lea rax, .LC10[rip] mov QWORD PTR -32[rbp], rax lea rax, .LC11[rip] mov QWORD PTR -24[rbp], rax lea rax, .LC12[rip] mov QWORD PTR -16[rbp], rax mov DWORD PTR -176[rbp], 1000 mov DWORD PTR -172[rbp], 900 mov DWORD PTR -168[rbp], 500 mov DWORD PTR -164[rbp], 400 mov DWORD PTR -160[rbp], 100 mov DWORD PTR -156[rbp], 90 mov DWORD PTR -152[rbp], 50 mov DWORD PTR -148[rbp], 40 mov DWORD PTR -144[rbp], 10 mov DWORD PTR -140[rbp], 9 mov DWORD PTR -136[rbp], 5 mov DWORD PTR -132[rbp], 4 mov DWORD PTR -128[rbp], 1 mov DWORD PTR -180[rbp], 0 mov rax, QWORD PTR -208[rbp] mov BYTE PTR [rax], 0 jmp .L2 .L4: mov eax, DWORD PTR -180[rbp] cdqe mov rdx, QWORD PTR -112[rbp+rax*8] mov rax, QWORD PTR -208[rbp] mov rsi, rdx mov rdi, rax call strcat@PLT mov eax, DWORD PTR -180[rbp] cdqe mov eax, DWORD PTR -176[rbp+rax*4] sub DWORD PTR -196[rbp], eax .L3: mov eax, DWORD PTR -180[rbp] cdqe mov eax, DWORD PTR -176[rbp+rax*4] cmp DWORD PTR -196[rbp], eax jge .L4 cmp DWORD PTR -196[rbp], 0 jle .L2 add DWORD PTR -180[rbp], 1 .L2: cmp DWORD PTR -196[rbp], 0 jg .L3 nop mov rax, QWORD PTR -8[rbp] xor rax, QWORD PTR fs:40 je .L6 call __stack_chk_fail@PLT .L6: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .section .rodata .align 2 .LC0: .ascii "m\000" .align 2 .LC1: .ascii "cm\000" .align 2 .LC2: .ascii "d\000" .align 2 .LC3: .ascii "cd\000" .align 2 .LC4: .ascii "c\000" .align 2 .LC5: .ascii "xc\000" .align 2 .LC6: .ascii "l\000" .align 2 .LC7: .ascii "xl\000" .align 2 .LC8: .ascii "x\000" .align 2 .LC9: .ascii "ix\000" .align 2 .LC10: .ascii "v\000" .align 2 .LC11: .ascii "iv\000" .align 2 .LC12: .ascii "i\000" .text .section .rodata .align 2 .LC15: .word .LC0 .word .LC1 .word .LC2 .word .LC3 .word .LC4 .word .LC5 .word .LC6 .word .LC7 .word .LC8 .word .LC9 .word .LC10 .word .LC11 .word .LC12 .align 2 .LC14: .word 1000 .word 900 .word 500 .word 400 .word 100 .word 90 .word 50 .word 40 .word 10 .word 9 .word 5 .word 4 .word 1 .align 2 .LC16: .word __stack_chk_guard .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 120 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #120 str r0, [fp, #-120] str r1, [fp, #-124] ldr r3, .L7 ldr r3, [r3] str r3, [fp, #-8] mov r3,#0 ldr r3, .L7+4 sub ip, fp, #112 mov lr, r3 ldmia lr!, {r0, r1, r2, r3} stmia ip!, {r0, r1, r2, r3} ldmia lr!, {r0, r1, r2, r3} stmia ip!, {r0, r1, r2, r3} ldmia lr!, {r0, r1, r2, r3} stmia ip!, {r0, r1, r2, r3} ldr r3, [lr] str r3, [ip] ldr r3, .L7+8 sub ip, fp, #60 mov lr, r3 ldmia lr!, {r0, r1, r2, r3} stmia ip!, {r0, r1, r2, r3} ldmia lr!, {r0, r1, r2, r3} stmia ip!, {r0, r1, r2, r3} ldmia lr!, {r0, r1, r2, r3} stmia ip!, {r0, r1, r2, r3} ldr r3, [lr] str r3, [ip] mov r3, #0 str r3, [fp, #-116] ldr r3, [fp, #-124] mov r2, #0 strb r2, [r3] b .L2 .L4: ldr r3, [fp, #-116] lsl r3, r3, #2 sub r2, fp, #4 add r3, r2, r3 ldr r3, [r3, #-108] mov r1, r3 ldr r0, [fp, #-124] bl strcat ldr r3, [fp, #-116] lsl r3, r3, #2 sub r2, fp, #4 add r3, r2, r3 ldr r3, [r3, #-56] ldr r2, [fp, #-120] sub r3, r2, r3 str r3, [fp, #-120] .L3: ldr r3, [fp, #-116] lsl r3, r3, #2 sub r2, fp, #4 add r3, r2, r3 ldr r3, [r3, #-56] ldr r2, [fp, #-120] cmp r2, r3 bge .L4 ldr r3, [fp, #-120] cmp r3, #0 ble .L2 ldr r3, [fp, #-116] add r3, r3, #1 str r3, [fp, #-116] .L2: ldr r3, [fp, #-120] cmp r3, #0 bgt .L3 nop ldr r3, .L7 ldr r2, [r3] ldr r3, [fp, #-8] eors r2, r3, r2 mov r3, #0 beq .L6 bl __stack_chk_fail .L6: sub sp, fp, #4 @ sp needed pop {fp, pc} .L8: .align 2 .L7: .word .LC16 .word .LC15 .word .LC14 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem91/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -24[rbp], rdi mov DWORD PTR -28[rbp], esi cmp DWORD PTR -28[rbp], 1 jg .L2 mov eax, -1 jmp .L3 .L2: mov DWORD PTR -12[rbp], 2147483647 mov DWORD PTR -8[rbp], 2147483647 mov DWORD PTR -4[rbp], 0 jmp .L4 .L7: mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov eax, DWORD PTR [rax] cmp DWORD PTR -12[rbp], eax jle .L5 mov eax, DWORD PTR -12[rbp] mov DWORD PTR -8[rbp], eax mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov eax, DWORD PTR [rax] mov DWORD PTR -12[rbp], eax jmp .L6 .L5: mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov eax, DWORD PTR [rax] cmp DWORD PTR -8[rbp], eax jle .L6 mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov eax, DWORD PTR [rax] cmp DWORD PTR -12[rbp], eax je .L6 mov eax, DWORD PTR -4[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov eax, DWORD PTR [rax] mov DWORD PTR -8[rbp], eax .L6: add DWORD PTR -4[rbp], 1 .L4: mov eax, DWORD PTR -4[rbp] cmp eax, DWORD PTR -28[rbp] jl .L7 cmp DWORD PTR -8[rbp], 2147483647 jne .L8 mov eax, -1 jmp .L3 .L8: mov eax, DWORD PTR -8[rbp] .L3: pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 24 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #28 str r0, [fp, #-24] str r1, [fp, #-28] ldr r3, [fp, #-28] cmp r3, #1 bgt .L2 mvn r3, #0 b .L3 .L2: mvn r3, #-2147483648 str r3, [fp, #-16] mvn r3, #-2147483648 str r3, [fp, #-12] mov r3, #0 str r3, [fp, #-8] b .L4 .L7: ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r3, [r3] ldr r2, [fp, #-16] cmp r2, r3 ble .L5 ldr r3, [fp, #-16] str r3, [fp, #-12] ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r3, [r3] str r3, [fp, #-16] b .L6 .L5: ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r3, [r3] ldr r2, [fp, #-12] cmp r2, r3 ble .L6 ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r3, [r3] ldr r2, [fp, #-16] cmp r2, r3 beq .L6 ldr r3, [fp, #-8] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r3, [r3] str r3, [fp, #-12] .L6: ldr r3, [fp, #-8] add r3, r3, #1 str r3, [fp, #-8] .L4: ldr r2, [fp, #-8] ldr r3, [fp, #-28] cmp r2, r3 blt .L7 ldr r3, [fp, #-12] cmn r3, #-2147483647 bne .L8 mvn r3, #0 b .L3 .L8: ldr r3, [fp, #-12] .L3: mov r0, r3 add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem19/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 32 mov QWORD PTR -24[rbp], rdi mov QWORD PTR -32[rbp], rsi mov DWORD PTR -16[rbp], 0 mov rax, QWORD PTR -24[rbp] mov rdi, rax call strlen@PLT mov DWORD PTR -8[rbp], eax mov rax, QWORD PTR -32[rbp] mov rdi, rax call strlen@PLT mov DWORD PTR -4[rbp], eax cmp DWORD PTR -8[rbp], 0 jne .L2 mov eax, 0 jmp .L3 .L2: mov DWORD PTR -12[rbp], 0 jmp .L4 .L6: mov eax, DWORD PTR -4[rbp] movsx rdx, eax mov eax, DWORD PTR -12[rbp] movsx rcx, eax mov rax, QWORD PTR -24[rbp] add rcx, rax mov rax, QWORD PTR -32[rbp] mov rsi, rax mov rdi, rcx call strncmp@PLT test eax, eax jne .L5 add DWORD PTR -16[rbp], 1 .L5: add DWORD PTR -12[rbp], 1 .L4: mov eax, DWORD PTR -8[rbp] sub eax, DWORD PTR -4[rbp] cmp DWORD PTR -12[rbp], eax jle .L6 mov eax, DWORD PTR -16[rbp] .L3: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 24 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #24 str r0, [fp, #-24] str r1, [fp, #-28] mov r3, #0 str r3, [fp, #-20] ldr r0, [fp, #-24] bl strlen mov r3, r0 str r3, [fp, #-12] ldr r0, [fp, #-28] bl strlen mov r3, r0 str r3, [fp, #-8] ldr r3, [fp, #-12] cmp r3, #0 bne .L2 mov r3, #0 b .L3 .L2: mov r3, #0 str r3, [fp, #-16] b .L4 .L6: ldr r3, [fp, #-16] ldr r2, [fp, #-24] add r3, r2, r3 ldr r2, [fp, #-8] ldr r1, [fp, #-28] mov r0, r3 bl strncmp mov r3, r0 cmp r3, #0 bne .L5 ldr r3, [fp, #-20] add r3, r3, #1 str r3, [fp, #-20] .L5: ldr r3, [fp, #-16] add r3, r3, #1 str r3, [fp, #-16] .L4: ldr r2, [fp, #-12] ldr r3, [fp, #-8] sub r3, r2, r3 ldr r2, [fp, #-16] cmp r2, r3 ble .L6 ldr r3, [fp, #-20] .L3: mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem13/code.c
.file "code.c" .intel_syntax noprefix .text .section .rodata .LC0: .string "" .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 48 mov QWORD PTR -40[rbp], rdi mov DWORD PTR -44[rbp], esi lea rax, .LC0[rip] mov QWORD PTR -8[rbp], rax mov DWORD PTR -20[rbp], 0 mov DWORD PTR -16[rbp], 0 jmp .L2 .L4: mov eax, DWORD PTR -16[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -40[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov rdi, rax call strlen@PLT mov DWORD PTR -12[rbp], eax mov eax, DWORD PTR -12[rbp] cmp eax, DWORD PTR -20[rbp] jle .L3 mov eax, DWORD PTR -16[rbp] cdqe lea rdx, 0[0+rax*8] mov rax, QWORD PTR -40[rbp] add rax, rdx mov rax, QWORD PTR [rax] mov QWORD PTR -8[rbp], rax mov eax, DWORD PTR -12[rbp] mov DWORD PTR -20[rbp], eax .L3: add DWORD PTR -16[rbp], 1 .L2: mov eax, DWORD PTR -16[rbp] cmp eax, DWORD PTR -44[rbp] jl .L4 mov rax, QWORD PTR -8[rbp] leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .section .rodata .align 2 .LC0: .ascii "\000" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 24 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #24 str r0, [fp, #-24] str r1, [fp, #-28] ldr r3, .L6 str r3, [fp, #-20] mov r3, #0 str r3, [fp, #-16] mov r3, #0 str r3, [fp, #-12] b .L2 .L4: ldr r3, [fp, #-12] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r3, [r3] mov r0, r3 bl strlen mov r3, r0 str r3, [fp, #-8] ldr r2, [fp, #-8] ldr r3, [fp, #-16] cmp r2, r3 ble .L3 ldr r3, [fp, #-12] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r3, [r3] str r3, [fp, #-20] ldr r3, [fp, #-8] str r3, [fp, #-16] .L3: ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L2: ldr r2, [fp, #-12] ldr r3, [fp, #-28] cmp r2, r3 blt .L4 ldr r3, [fp, #-20] mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .L7: .align 2 .L6: .word .LC0 .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem121/code.c
.file "code.c" .intel_syntax noprefix .text .globl func0 .type func0, @function func0: .LFB6: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 mov QWORD PTR -24[rbp], rdi mov DWORD PTR -28[rbp], esi mov DWORD PTR -32[rbp], edx mov QWORD PTR -40[rbp], rcx mov DWORD PTR -16[rbp], 0 jmp .L2 .L6: mov DWORD PTR -12[rbp], 0 jmp .L3 .L5: mov eax, DWORD PTR -12[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov edx, DWORD PTR [rax] mov eax, DWORD PTR -12[rbp] cdqe add rax, 1 lea rcx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rcx mov eax, DWORD PTR [rax] cmp edx, eax jle .L4 mov eax, DWORD PTR -12[rbp] cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov eax, DWORD PTR [rax] mov DWORD PTR -4[rbp], eax mov eax, DWORD PTR -12[rbp] cdqe add rax, 1 lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov edx, DWORD PTR -12[rbp] movsx rdx, edx lea rcx, 0[0+rdx*4] mov rdx, QWORD PTR -24[rbp] add rdx, rcx mov eax, DWORD PTR [rax] mov DWORD PTR [rdx], eax mov eax, DWORD PTR -12[rbp] cdqe add rax, 1 lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rdx, rax mov eax, DWORD PTR -4[rbp] mov DWORD PTR [rdx], eax .L4: add DWORD PTR -12[rbp], 1 .L3: mov eax, DWORD PTR -28[rbp] sub eax, DWORD PTR -16[rbp] sub eax, 1 cmp DWORD PTR -12[rbp], eax jl .L5 add DWORD PTR -16[rbp], 1 .L2: mov eax, DWORD PTR -28[rbp] sub eax, 1 cmp DWORD PTR -16[rbp], eax jl .L6 mov DWORD PTR -8[rbp], 0 jmp .L7 .L8: mov eax, DWORD PTR -28[rbp] sub eax, DWORD PTR -32[rbp] mov edx, eax mov eax, DWORD PTR -8[rbp] add eax, edx cdqe lea rdx, 0[0+rax*4] mov rax, QWORD PTR -24[rbp] add rax, rdx mov edx, DWORD PTR -8[rbp] movsx rdx, edx lea rcx, 0[0+rdx*4] mov rdx, QWORD PTR -40[rbp] add rdx, rcx mov eax, DWORD PTR [rax] mov DWORD PTR [rdx], eax add DWORD PTR -8[rbp], 1 .L7: mov eax, DWORD PTR -8[rbp] cmp eax, DWORD PTR -32[rbp] jl .L8 nop nop pop rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE6: .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 32 @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. str fp, [sp, #-4]! add fp, sp, #0 sub sp, sp, #36 str r0, [fp, #-24] str r1, [fp, #-28] str r2, [fp, #-32] str r3, [fp, #-36] mov r3, #0 str r3, [fp, #-20] b .L2 .L6: mov r3, #0 str r3, [fp, #-16] b .L3 .L5: ldr r3, [fp, #-16] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r2, [r3] ldr r3, [fp, #-16] add r3, r3, #1 lsl r3, r3, #2 ldr r1, [fp, #-24] add r3, r1, r3 ldr r3, [r3] cmp r2, r3 ble .L4 ldr r3, [fp, #-16] lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r3, [r3] str r3, [fp, #-8] ldr r3, [fp, #-16] add r3, r3, #1 lsl r3, r3, #2 ldr r2, [fp, #-24] add r2, r2, r3 ldr r3, [fp, #-16] lsl r3, r3, #2 ldr r1, [fp, #-24] add r3, r1, r3 ldr r2, [r2] str r2, [r3] ldr r3, [fp, #-16] add r3, r3, #1 lsl r3, r3, #2 ldr r2, [fp, #-24] add r3, r2, r3 ldr r2, [fp, #-8] str r2, [r3] .L4: ldr r3, [fp, #-16] add r3, r3, #1 str r3, [fp, #-16] .L3: ldr r2, [fp, #-28] ldr r3, [fp, #-20] sub r3, r2, r3 sub r3, r3, #1 ldr r2, [fp, #-16] cmp r2, r3 blt .L5 ldr r3, [fp, #-20] add r3, r3, #1 str r3, [fp, #-20] .L2: ldr r3, [fp, #-28] sub r3, r3, #1 ldr r2, [fp, #-20] cmp r2, r3 blt .L6 mov r3, #0 str r3, [fp, #-12] b .L7 .L8: ldr r2, [fp, #-28] ldr r3, [fp, #-32] sub r2, r2, r3 ldr r3, [fp, #-12] add r3, r2, r3 lsl r3, r3, #2 ldr r2, [fp, #-24] add r2, r2, r3 ldr r3, [fp, #-12] lsl r3, r3, #2 ldr r1, [fp, #-36] add r3, r1, r3 ldr r2, [r2] str r2, [r3] ldr r3, [fp, #-12] add r3, r3, #1 str r3, [fp, #-12] .L7: ldr r2, [fp, #-12] ldr r3, [fp, #-32] cmp r2, r3 blt .L8 nop nop add sp, fp, #0 @ sp needed ldr fp, [sp], #4 bx lr .size func0, .-func0 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits
eval/problem20/code.c
.file "code.c" .intel_syntax noprefix .text .section .rodata .LC0: .string "zero" .LC1: .string "one" .LC2: .string "two" .LC3: .string "three" .LC4: .string "four" .LC5: .string "five" .LC6: .string "six" .LC7: .string "seven" .LC8: .string "eight" .LC9: .string "nine" .text .globl func0 .type func0, @function func0: .LFB0: .cfi_startproc endbr64 push rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 mov rbp, rsp .cfi_def_cfa_register 6 sub rsp, 176 mov QWORD PTR -168[rbp], rdi mov rax, QWORD PTR fs:40 mov QWORD PTR -8[rbp], rax xor eax, eax mov QWORD PTR -144[rbp], 0 mov QWORD PTR -136[rbp], 0 mov QWORD PTR -128[rbp], 0 mov QWORD PTR -120[rbp], 0 mov QWORD PTR -112[rbp], 0 lea rax, .LC0[rip] mov QWORD PTR -96[rbp], rax lea rax, .LC1[rip] mov QWORD PTR -88[rbp], rax lea rax, .LC2[rip] mov QWORD PTR -80[rbp], rax lea rax, .LC3[rip] mov QWORD PTR -72[rbp], rax lea rax, .LC4[rip] mov QWORD PTR -64[rbp], rax lea rax, .LC5[rip] mov QWORD PTR -56[rbp], rax lea rax, .LC6[rip] mov QWORD PTR -48[rbp], rax lea rax, .LC7[rip] mov QWORD PTR -40[rbp], rax lea rax, .LC8[rip] mov QWORD PTR -32[rbp], rax lea rax, .LC9[rip] mov QWORD PTR -24[rbp], rax mov DWORD PTR -160[rbp], 0 mov rax, QWORD PTR -168[rbp] movzx eax, BYTE PTR [rax] test al, al je .L2 .L10: mov DWORD PTR -156[rbp], 0 jmp .L3 .L5: mov eax, DWORD PTR -156[rbp] movsx rdx, eax mov rax, QWORD PTR -168[rbp] add rax, rdx movzx edx, BYTE PTR [rax] mov eax, DWORD PTR -156[rbp] cdqe mov BYTE PTR -14[rbp+rax], dl add DWORD PTR -156[rbp], 1 .L3: mov eax, DWORD PTR -156[rbp] movsx rdx, eax mov rax, QWORD PTR -168[rbp] add rax, rdx movzx eax, BYTE PTR [rax] cmp al, 32 je .L4 mov eax, DWORD PTR -156[rbp] movsx rdx, eax mov rax, QWORD PTR -168[rbp] add rax, rdx movzx eax, BYTE PTR [rax] test al, al jne .L5 .L4: mov eax, DWORD PTR -156[rbp] cdqe mov BYTE PTR -14[rbp+rax], 0 mov DWORD PTR -152[rbp], 0 jmp .L6 .L9: mov eax, DWORD PTR -152[rbp] cdqe mov rdx, QWORD PTR -96[rbp+rax*8] lea rax, -14[rbp] mov rsi, rdx mov rdi, rax call strcmp@PLT test eax, eax jne .L7 mov eax, DWORD PTR -152[rbp] cdqe mov eax, DWORD PTR -144[rbp+rax*4] lea edx, 1[rax] mov eax, DWORD PTR -152[rbp] cdqe mov DWORD PTR -144[rbp+rax*4], edx jmp .L8 .L7: add DWORD PTR -152[rbp], 1 .L6: cmp DWORD PTR -152[rbp], 9 jle .L9 .L8: mov eax, DWORD PTR -156[rbp] cdqe add rax, 1 add QWORD PTR -168[rbp], rax mov rax, QWORD PTR -168[rbp] sub rax, 1 movzx eax, BYTE PTR [rax] test al, al jne .L10 .L2: mov DWORD PTR -156[rbp], 0 jmp .L11 .L16: mov DWORD PTR -152[rbp], 0 jmp .L12 .L15: mov DWORD PTR -148[rbp], 0 jmp .L13 .L14: mov eax, DWORD PTR -156[rbp] cdqe mov rdx, QWORD PTR -96[rbp+rax*8] mov eax, DWORD PTR -148[rbp] cdqe add rax, rdx movzx edx, BYTE PTR [rax] mov eax, DWORD PTR -160[rbp] cdqe lea rcx, out.2502[rip] mov BYTE PTR [rax+rcx], dl add DWORD PTR -148[rbp], 1 add DWORD PTR -160[rbp], 1 .L13: mov eax, DWORD PTR -156[rbp] cdqe mov rdx, QWORD PTR -96[rbp+rax*8] mov eax, DWORD PTR -148[rbp] cdqe add rax, rdx movzx eax, BYTE PTR [rax] test al, al jne .L14 mov eax, DWORD PTR -160[rbp] lea edx, 1[rax] mov DWORD PTR -160[rbp], edx cdqe lea rdx, out.2502[rip] mov BYTE PTR [rax+rdx], 32 add DWORD PTR -152[rbp], 1 .L12: mov eax, DWORD PTR -156[rbp] cdqe mov eax, DWORD PTR -144[rbp+rax*4] cmp DWORD PTR -152[rbp], eax jl .L15 add DWORD PTR -156[rbp], 1 .L11: cmp DWORD PTR -156[rbp], 9 jle .L16 cmp DWORD PTR -160[rbp], 0 jle .L17 mov eax, DWORD PTR -160[rbp] sub eax, 1 cdqe lea rdx, out.2502[rip] mov BYTE PTR [rax+rdx], 0 jmp .L18 .L17: mov BYTE PTR out.2502[rip], 0 .L18: lea rax, out.2502[rip] mov rsi, QWORD PTR -8[rbp] xor rsi, QWORD PTR fs:40 je .L20 call __stack_chk_fail@PLT .L20: leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size func0, .-func0 .local out.2502 .comm out.2502,1000,32 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",@progbits .section .note.gnu.property,"a" .align 8 .long 1f - 0f .long 4f - 1f .long 5 0: .string "GNU" 1: .align 8 .long 0xc0000002 .long 3f - 2f 2: .long 0x3 3: .align 8 4:
.arch armv5t .eabi_attribute 20, 1 .eabi_attribute 21, 1 .eabi_attribute 23, 3 .eabi_attribute 24, 1 .eabi_attribute 25, 1 .eabi_attribute 26, 2 .eabi_attribute 30, 6 .eabi_attribute 34, 0 .eabi_attribute 18, 4 .file "code.c" .section .rodata .align 2 .LC0: .ascii "zero\000" .align 2 .LC1: .ascii "one\000" .align 2 .LC2: .ascii "two\000" .align 2 .LC3: .ascii "three\000" .align 2 .LC4: .ascii "four\000" .align 2 .LC5: .ascii "five\000" .align 2 .LC6: .ascii "six\000" .align 2 .LC7: .ascii "seven\000" .align 2 .LC8: .ascii "eight\000" .align 2 .LC9: .ascii "nine\000" .text .section .rodata .align 2 .LC11: .word .LC0 .word .LC1 .word .LC2 .word .LC3 .word .LC4 .word .LC5 .word .LC6 .word .LC7 .word .LC8 .word .LC9 .align 2 .LC12: .word __stack_chk_guard .text .align 2 .global func0 .syntax unified .arm .fpu softvfp .type func0, %function func0: @ args = 0, pretend = 0, frame = 120 @ frame_needed = 1, uses_anonymous_args = 0 push {fp, lr} add fp, sp, #4 sub sp, sp, #120 str r0, [fp, #-120] ldr r3, .L21 ldr r3, [r3] str r3, [fp, #-8] mov r3,#0 sub r3, fp, #96 mov r2, #40 mov r1, #0 mov r0, r3 bl memset ldr r3, .L21+4 sub ip, fp, #56 mov lr, r3 ldmia lr!, {r0, r1, r2, r3} stmia ip!, {r0, r1, r2, r3} ldmia lr!, {r0, r1, r2, r3} stmia ip!, {r0, r1, r2, r3} ldm lr, {r0, r1} stm ip, {r0, r1} mov r3, #0 str r3, [fp, #-112] ldr r3, [fp, #-120] ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #0 beq .L2 .L10: mov r3, #0 str r3, [fp, #-108] b .L3 .L5: ldr r3, [fp, #-108] ldr r2, [fp, #-120] add r3, r2, r3 ldrb r1, [r3] @ zero_extendqisi2 sub r2, fp, #16 ldr r3, [fp, #-108] add r3, r2, r3 mov r2, r1 strb r2, [r3] ldr r3, [fp, #-108] add r3, r3, #1 str r3, [fp, #-108] .L3: ldr r3, [fp, #-108] ldr r2, [fp, #-120] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #32 beq .L4 ldr r3, [fp, #-108] ldr r2, [fp, #-120] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #0 bne .L5 .L4: sub r2, fp, #16 ldr r3, [fp, #-108] add r3, r2, r3 mov r2, #0 strb r2, [r3] mov r3, #0 str r3, [fp, #-104] b .L6 .L9: ldr r3, [fp, #-104] lsl r3, r3, #2 sub r2, fp, #4 add r3, r2, r3 ldr r2, [r3, #-52] sub r3, fp, #16 mov r1, r2 mov r0, r3 bl strcmp mov r3, r0 cmp r3, #0 bne .L7 ldr r3, [fp, #-104] lsl r3, r3, #2 sub r2, fp, #4 add r3, r2, r3 ldr r3, [r3, #-92] add r2, r3, #1 ldr r3, [fp, #-104] lsl r3, r3, #2 sub r1, fp, #4 add r3, r1, r3 str r2, [r3, #-92] b .L8 .L7: ldr r3, [fp, #-104] add r3, r3, #1 str r3, [fp, #-104] .L6: ldr r3, [fp, #-104] cmp r3, #9 ble .L9 .L8: ldr r3, [fp, #-108] add r3, r3, #1 ldr r2, [fp, #-120] add r3, r2, r3 str r3, [fp, #-120] ldr r3, [fp, #-120] sub r3, r3, #1 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #0 bne .L10 .L2: mov r3, #0 str r3, [fp, #-108] b .L11 .L16: mov r3, #0 str r3, [fp, #-104] b .L12 .L15: mov r3, #0 str r3, [fp, #-100] b .L13 .L14: ldr r3, [fp, #-108] lsl r3, r3, #2 sub r2, fp, #4 add r3, r2, r3 ldr r2, [r3, #-52] ldr r3, [fp, #-100] add r3, r2, r3 ldrb r1, [r3] @ zero_extendqisi2 ldr r2, .L21+8 ldr r3, [fp, #-112] add r3, r2, r3 mov r2, r1 strb r2, [r3] ldr r3, [fp, #-100] add r3, r3, #1 str r3, [fp, #-100] ldr r3, [fp, #-112] add r3, r3, #1 str r3, [fp, #-112] .L13: ldr r3, [fp, #-108] lsl r3, r3, #2 sub r2, fp, #4 add r3, r2, r3 ldr r2, [r3, #-52] ldr r3, [fp, #-100] add r3, r2, r3 ldrb r3, [r3] @ zero_extendqisi2 cmp r3, #0 bne .L14 ldr r3, [fp, #-112] add r2, r3, #1 str r2, [fp, #-112] ldr r2, .L21+8 mov r1, #32 strb r1, [r2, r3] ldr r3, [fp, #-104] add r3, r3, #1 str r3, [fp, #-104] .L12: ldr r3, [fp, #-108] lsl r3, r3, #2 sub r2, fp, #4 add r3, r2, r3 ldr r3, [r3, #-92] ldr r2, [fp, #-104] cmp r2, r3 blt .L15 ldr r3, [fp, #-108] add r3, r3, #1 str r3, [fp, #-108] .L11: ldr r3, [fp, #-108] cmp r3, #9 ble .L16 ldr r3, [fp, #-112] cmp r3, #0 ble .L17 ldr r3, [fp, #-112] sub r3, r3, #1 ldr r2, .L21+8 mov r1, #0 strb r1, [r2, r3] b .L18 .L17: ldr r3, .L21+8 mov r2, #0 strb r2, [r3] .L18: ldr r3, .L21+8 ldr r2, .L21 ldr r1, [r2] ldr r2, [fp, #-8] eors r1, r2, r1 mov r2, #0 beq .L20 bl __stack_chk_fail .L20: mov r0, r3 sub sp, fp, #4 @ sp needed pop {fp, pc} .L22: .align 2 .L21: .word .LC12 .word .LC11 .word out.4787 .size func0, .-func0 .local out.4787 .comm out.4787,1000,4 .ident "GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0" .section .note.GNU-stack,"",%progbits