arm
stringlengths
122
20M
x86
stringlengths
122
20M
filename
stringlengths
18
26
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _baz ; -- Begin function baz .p2align 2 _baz: ; @baz .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w0, #0 adrp x1, _func@GOTPAGE ldr x1, [x1, _func@GOTPAGEOFF] bl _bar ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function bar _bar: ; @bar .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] str x1, [sp] bl _baz ldr x8, [sp] blr x8 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _baz ## -- Begin function baz .p2align 4, 0x90 _baz: ## @baz .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp xorl %edi, %edi movq _func@GOTPCREL(%rip), %rsi callq _bar popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function bar _bar: ## @bar .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) callq _baz callq *-16(%rbp) addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/137756.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _cmp ; -- Begin function cmp .p2align 2 _cmp: ; @cmp .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] str x1, [sp, #8] ldr x8, [sp, #16] ldr w8, [x8] ldr x9, [sp, #8] ldr w9, [x9] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: str wzr, [sp, #28] b LBB0_3 LBB0_2: ldr x8, [sp, #16] ldr w8, [x8] ldr x9, [sp, #8] ldr w9, [x9] subs w8, w8, w9 cset w8, lt and w9, w8, #0x1 mov w8, #1 ands w9, w9, #0x1 csinv w8, w8, wzr, eq str w8, [sp, #28] b LBB0_3 LBB0_3: ldr w0, [sp, #28] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _threeSumClosest ; -- Begin function threeSumClosest .p2align 2 _threeSumClosest: ; @threeSumClosest .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] stur w2, [x29, #-16] ldur x0, [x29, #-8] ldursw x1, [x29, #-12] mov x2, #4 adrp x3, _cmp@PAGE add x3, x3, _cmp@PAGEOFF bl _qsort mov w8, #2147483647 stur w8, [x29, #-20] str wzr, [sp, #24] str wzr, [sp, #20] b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_3 Depth 2 ldr w8, [sp, #20] ldur w9, [x29, #-12] subs w9, w9, #2 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_12 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #16] ldur w8, [x29, #-12] subs w8, w8, #1 str w8, [sp, #12] b LBB1_3 LBB1_3: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #16] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_10 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=2 ldur x8, [x29, #-8] ldrsw x9, [sp, #20] ldr w8, [x8, x9, lsl #2] ldur x9, [x29, #-8] ldrsw x10, [sp, #16] ldr w9, [x9, x10, lsl #2] add w8, w8, w9 ldur x9, [x29, #-8] ldrsw x10, [sp, #12] ldr w9, [x9, x10, lsl #2] add w8, w8, w9 str w8, [sp, #8] ldr w8, [sp, #8] ldur w9, [x29, #-16] subs w0, w8, w9 bl _abs str w0, [sp, #4] ldr w8, [sp, #4] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_3 Depth=2 ldr w8, [sp, #4] stur w8, [x29, #-20] ldr w8, [sp, #8] str w8, [sp, #24] b LBB1_6 LBB1_6: ; in Loop: Header=BB1_3 Depth=2 ldr w8, [sp, #8] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB1_8 b LBB1_7 LBB1_7: ; in Loop: Header=BB1_3 Depth=2 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB1_9 LBB1_8: ; in Loop: Header=BB1_3 Depth=2 ldr w8, [sp, #12] subs w8, w8, #1 str w8, [sp, #12] b LBB1_9 LBB1_9: ; in Loop: Header=BB1_3 Depth=2 b LBB1_3 LBB1_10: ; in Loop: Header=BB1_1 Depth=1 b LBB1_11 LBB1_11: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB1_1 LBB1_12: ldr w0, [sp, #24] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _cmp ## -- Begin function cmp .p2align 4, 0x90 _cmp: ## @cmp .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq -16(%rbp), %rax movl (%rax), %eax movq -24(%rbp), %rcx cmpl (%rcx), %eax jne LBB0_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB0_3 LBB0_2: movq -16(%rbp), %rax movl (%rax), %edx movq -24(%rbp), %rax movl (%rax), %esi movl $1, %eax movl $4294967295, %ecx ## imm = 0xFFFFFFFF cmpl %esi, %edx cmovll %ecx, %eax movl %eax, -4(%rbp) LBB0_3: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _threeSumClosest ## -- Begin function threeSumClosest .p2align 4, 0x90 _threeSumClosest: ## @threeSumClosest .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl %edx, -16(%rbp) movq -8(%rbp), %rdi movslq -12(%rbp), %rsi movl $4, %edx leaq _cmp(%rip), %rcx callq _qsort movl $2147483647, -20(%rbp) ## imm = 0x7FFFFFFF movl $0, -24(%rbp) movl $0, -28(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_3 Depth 2 movl -28(%rbp), %eax movl -12(%rbp), %ecx subl $2, %ecx cmpl %ecx, %eax jge LBB1_12 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) movl -12(%rbp), %eax subl $1, %eax movl %eax, -36(%rbp) LBB1_3: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -32(%rbp), %eax cmpl -36(%rbp), %eax jge LBB1_10 ## %bb.4: ## in Loop: Header=BB1_3 Depth=2 movq -8(%rbp), %rax movslq -28(%rbp), %rcx movl (%rax,%rcx,4), %eax movq -8(%rbp), %rcx movslq -32(%rbp), %rdx addl (%rcx,%rdx,4), %eax movq -8(%rbp), %rcx movslq -36(%rbp), %rdx addl (%rcx,%rdx,4), %eax movl %eax, -40(%rbp) movl -40(%rbp), %edi subl -16(%rbp), %edi callq _abs movl %eax, -44(%rbp) movl -44(%rbp), %eax cmpl -20(%rbp), %eax jge LBB1_6 ## %bb.5: ## in Loop: Header=BB1_3 Depth=2 movl -44(%rbp), %eax movl %eax, -20(%rbp) movl -40(%rbp), %eax movl %eax, -24(%rbp) LBB1_6: ## in Loop: Header=BB1_3 Depth=2 movl -40(%rbp), %eax cmpl -16(%rbp), %eax jg LBB1_8 ## %bb.7: ## in Loop: Header=BB1_3 Depth=2 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB1_9 LBB1_8: ## in Loop: Header=BB1_3 Depth=2 movl -36(%rbp), %eax addl $-1, %eax movl %eax, -36(%rbp) LBB1_9: ## in Loop: Header=BB1_3 Depth=2 jmp LBB1_3 LBB1_10: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_11 LBB1_11: ## in Loop: Header=BB1_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB1_1 LBB1_12: movl -24(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/110953.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf bl _fork stur w0, [x29, #-8] bl _fork stur w0, [x29, #-8] bl _fork stur w0, [x29, #-8] ldur w8, [x29, #-8] subs w8, w8, #1 cset w8, lt tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: sub x0, x29, #16 str x0, [sp, #40] ; 8-byte Folded Spill bl _time ldr x0, [sp, #40] ; 8-byte Folded Reload bl _localtime stur x0, [x29, #-24] bl _getpid str w0, [sp, #48] ; 4-byte Folded Spill bl _getppid stur w0, [x29, #-44] ; 4-byte Folded Spill ldur x0, [x29, #-24] bl _asctime ldr w11, [sp, #48] ; 4-byte Folded Reload ldur w10, [x29, #-44] ; 4-byte Folded Reload mov x8, sp ; implicit-def: $x9 mov x9, x11 str x9, [x8] ; implicit-def: $x9 mov x9, x10 str x9, [x8, #8] str x0, [x8, #16] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_6 LBB0_2: ldur w8, [x29, #-8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: sub x0, x29, #32 str x0, [sp, #24] ; 8-byte Folded Spill bl _time ldr x0, [sp, #24] ; 8-byte Folded Reload bl _localtime stur x0, [x29, #-40] bl _getpid str w0, [sp, #32] ; 4-byte Folded Spill bl _getppid str w0, [sp, #36] ; 4-byte Folded Spill ldur x0, [x29, #-40] bl _asctime ldr w11, [sp, #32] ; 4-byte Folded Reload ldr w10, [sp, #36] ; 4-byte Folded Reload mov x8, sp ; implicit-def: $x9 mov x9, x11 str x9, [x8] ; implicit-def: $x9 mov x9, x10 str x9, [x8, #8] str x0, [x8, #16] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_5 LBB0_4: adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf b LBB0_5 LBB0_5: b LBB0_6 LBB0_6: mov w0, #0 ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Bienvenidos al Programa\n" l_.str.1: ; @.str.1 .asciz "Process Type PID PPID Time\n" l_.str.2: ; @.str.2 .asciz "--------------------------------------------------------------------------------" l_.str.3: ; @.str.3 .asciz "\n" l_.str.4: ; @.str.4 .asciz "System Process %d %d %s" l_.str.5: ; @.str.5 .asciz "Error al crear el proceso\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf callq _fork movl %eax, -8(%rbp) callq _fork movl %eax, -8(%rbp) callq _fork movl %eax, -8(%rbp) cmpl $1, -8(%rbp) jl LBB0_2 ## %bb.1: leaq -16(%rbp), %rdi callq _time leaq -16(%rbp), %rdi callq _localtime movq %rax, -24(%rbp) callq _getpid movl %eax, -48(%rbp) ## 4-byte Spill callq _getppid movl %eax, -44(%rbp) ## 4-byte Spill movq -24(%rbp), %rdi callq _asctime movl -48(%rbp), %esi ## 4-byte Reload movl -44(%rbp), %edx ## 4-byte Reload movq %rax, %rcx leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf jmp LBB0_6 LBB0_2: cmpl $0, -8(%rbp) jne LBB0_4 ## %bb.3: leaq -32(%rbp), %rdi callq _time leaq -32(%rbp), %rdi callq _localtime movq %rax, -40(%rbp) callq _getpid movl %eax, -56(%rbp) ## 4-byte Spill callq _getppid movl %eax, -52(%rbp) ## 4-byte Spill movq -40(%rbp), %rdi callq _asctime movl -56(%rbp), %esi ## 4-byte Reload movl -52(%rbp), %edx ## 4-byte Reload movq %rax, %rcx leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf jmp LBB0_5 LBB0_4: leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf LBB0_5: jmp LBB0_6 LBB0_6: xorl %eax, %eax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Bienvenidos al Programa\n" L_.str.1: ## @.str.1 .asciz "Process Type PID PPID Time\n" L_.str.2: ## @.str.2 .asciz "--------------------------------------------------------------------------------" L_.str.3: ## @.str.3 .asciz "\n" L_.str.4: ## @.str.4 .asciz "System Process %d %d %s" L_.str.5: ## @.str.5 .asciz "Error al crear el proceso\n" .subsections_via_symbols
the_stack_data/227505.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _conv_cpu ; -- Begin function conv_cpu .p2align 2 _conv_cpu: ; @conv_cpu .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 ldr w8, [sp, #80] str x0, [sp, #72] str x1, [sp, #64] str w2, [sp, #60] str s0, [sp, #56] str s1, [sp, #52] str s2, [sp, #48] str s3, [sp, #44] str s4, [sp, #40] str s5, [sp, #36] str s6, [sp, #32] str s7, [sp, #28] str w8, [sp, #24] str wzr, [sp, #20] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldr w8, [sp, #20] ldr w9, [sp, #60] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_49 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #16] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #16] ldr w9, [sp, #60] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_47 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #20] ldr w9, [sp, #60] mul w8, w8, w9 ldr w9, [sp, #16] add w8, w8, w9 str w8, [sp, #12] ldr w9, [sp, #20] mov w8, #0 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_9 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #20] ldr w9, [sp, #60] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_9 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_3 Depth=2 ldr w9, [sp, #16] mov w8, #0 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_9 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #16] ldr w9, [sp, #60] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_3 Depth=2 ldr s0, [sp, #56] ldr x8, [sp, #72] ldr w9, [sp, #12] ldr w10, [sp, #60] subs w9, w9, w10 subs w9, w9, #1 ldr s1, [x8, w9, sxtw #2] ldr s2, [sp, #52] ldr x8, [sp, #72] ldr w9, [sp, #12] subs w9, w9, #1 ldr s3, [x8, w9, sxtw #2] fmul s2, s2, s3 fmadd s2, s0, s1, s2 ldr s0, [sp, #48] ldr x8, [sp, #72] ldr w9, [sp, #12] ldr w10, [sp, #60] add w9, w9, w10 subs w9, w9, #1 ldr s1, [x8, w9, sxtw #2] fmadd s2, s0, s1, s2 ldr s0, [sp, #44] ldr x8, [sp, #72] ldr w9, [sp, #12] ldr w10, [sp, #60] subs w9, w9, w10 ldr s1, [x8, w9, sxtw #2] fmadd s2, s0, s1, s2 ldr s0, [sp, #40] ldr x8, [sp, #72] ldrsw x9, [sp, #12] ldr s1, [x8, x9, lsl #2] fmadd s2, s0, s1, s2 ldr s0, [sp, #36] ldr x8, [sp, #72] ldr w9, [sp, #12] ldr w10, [sp, #60] add w9, w9, w10 ldr s1, [x8, w9, sxtw #2] fmadd s2, s0, s1, s2 ldr s0, [sp, #32] ldr x8, [sp, #72] ldr w9, [sp, #12] ldr w10, [sp, #60] subs w9, w9, w10 add w9, w9, #1 ldr s1, [x8, w9, sxtw #2] fmadd s2, s0, s1, s2 ldr s0, [sp, #28] ldr x8, [sp, #72] ldr w9, [sp, #12] add w9, w9, #1 ldr s1, [x8, w9, sxtw #2] fmadd s2, s0, s1, s2 ldr s0, [sp, #24] ldr x8, [sp, #72] ldr w9, [sp, #12] ldr w10, [sp, #60] add w9, w9, w10 add w9, w9, #1 ldr s1, [x8, w9, sxtw #2] fmadd s0, s0, s1, s2 ldr x8, [sp, #64] ldrsw x9, [sp, #12] str s0, [x8, x9, lsl #2] b LBB0_45 LBB0_9: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #20] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #16] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_3 Depth=2 ldr s0, [sp, #40] ldr x8, [sp, #72] ldrsw x9, [sp, #12] ldr s1, [x8, x9, lsl #2] ldr s2, [sp, #36] ldr x8, [sp, #72] ldr w9, [sp, #12] ldr w10, [sp, #60] add w9, w9, w10 ldr s3, [x8, w9, sxtw #2] fmul s2, s2, s3 fmadd s2, s0, s1, s2 ldr s0, [sp, #28] ldr x8, [sp, #72] ldr w9, [sp, #12] add w9, w9, #1 ldr s1, [x8, w9, sxtw #2] fmadd s2, s0, s1, s2 ldr s0, [sp, #24] ldr x8, [sp, #72] ldr w9, [sp, #12] ldr w10, [sp, #60] add w9, w9, w10 add w9, w9, #1 ldr s1, [x8, w9, sxtw #2] fmadd s0, s0, s1, s2 ldr x8, [sp, #64] ldrsw x9, [sp, #12] str s0, [x8, x9, lsl #2] b LBB0_44 LBB0_12: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #20] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_15 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #16] ldr w9, [sp, #60] subs w9, w9, #1 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_15 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_3 Depth=2 ldr s0, [sp, #52] ldr x8, [sp, #72] ldr w9, [sp, #12] subs w9, w9, #1 ldr s1, [x8, w9, sxtw #2] ldr s2, [sp, #48] ldr x8, [sp, #72] ldr w9, [sp, #12] ldr w10, [sp, #60] add w9, w9, w10 subs w9, w9, #1 ldr s3, [x8, w9, sxtw #2] fmul s2, s2, s3 fmadd s2, s0, s1, s2 ldr s0, [sp, #40] ldr x8, [sp, #72] ldrsw x9, [sp, #12] ldr s1, [x8, x9, lsl #2] fmadd s2, s0, s1, s2 ldr s0, [sp, #36] ldr x8, [sp, #72] ldr w9, [sp, #12] ldr w10, [sp, #60] add w9, w9, w10 ldr s1, [x8, w9, sxtw #2] fmadd s0, s0, s1, s2 ldr x8, [sp, #64] ldrsw x9, [sp, #12] str s0, [x8, x9, lsl #2] b LBB0_43 LBB0_15: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #20] ldr w9, [sp, #60] subs w9, w9, #1 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_18 b LBB0_16 LBB0_16: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #16] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_18 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_3 Depth=2 ldr s0, [sp, #44] ldr x8, [sp, #72] ldr w9, [sp, #12] ldr w10, [sp, #60] subs w9, w9, w10 ldr s1, [x8, w9, sxtw #2] ldr s2, [sp, #40] ldr x8, [sp, #72] ldrsw x9, [sp, #12] ldr s3, [x8, x9, lsl #2] fmul s2, s2, s3 fmadd s2, s0, s1, s2 ldr s0, [sp, #32] ldr x8, [sp, #72] ldr w9, [sp, #12] ldr w10, [sp, #60] subs w9, w9, w10 add w9, w9, #1 ldr s1, [x8, w9, sxtw #2] fmadd s2, s0, s1, s2 ldr s0, [sp, #28] ldr x8, [sp, #72] ldr w9, [sp, #12] add w9, w9, #1 ldr s1, [x8, w9, sxtw #2] fmadd s0, s0, s1, s2 ldr x8, [sp, #64] ldrsw x9, [sp, #12] str s0, [x8, x9, lsl #2] b LBB0_42 LBB0_18: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #20] ldr w9, [sp, #60] subs w9, w9, #1 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_21 b LBB0_19 LBB0_19: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #16] ldr w9, [sp, #60] subs w9, w9, #1 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_21 b LBB0_20 LBB0_20: ; in Loop: Header=BB0_3 Depth=2 ldr s0, [sp, #56] ldr x8, [sp, #72] ldr w9, [sp, #12] ldr w10, [sp, #60] subs w9, w9, w10 subs w9, w9, #1 ldr s1, [x8, w9, sxtw #2] ldr s2, [sp, #52] ldr x8, [sp, #72] ldr w9, [sp, #12] subs w9, w9, #1 ldr s3, [x8, w9, sxtw #2] fmul s2, s2, s3 fmadd s2, s0, s1, s2 ldr s0, [sp, #44] ldr x8, [sp, #72] ldr w9, [sp, #12] ldr w10, [sp, #60] subs w9, w9, w10 ldr s1, [x8, w9, sxtw #2] fmadd s2, s0, s1, s2 ldr s0, [sp, #40] ldr x8, [sp, #72] ldrsw x9, [sp, #12] ldr s1, [x8, x9, lsl #2] fmadd s0, s0, s1, s2 ldr x8, [sp, #64] ldrsw x9, [sp, #12] str s0, [x8, x9, lsl #2] b LBB0_41 LBB0_21: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #20] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_25 b LBB0_22 LBB0_22: ; in Loop: Header=BB0_3 Depth=2 ldr w9, [sp, #16] mov w8, #0 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_25 b LBB0_23 LBB0_23: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #16] ldr w9, [sp, #60] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_25 b LBB0_24 LBB0_24: ; in Loop: Header=BB0_3 Depth=2 ldr s0, [sp, #52] ldr x8, [sp, #72] ldr w9, [sp, #12] subs w9, w9, #1 ldr s1, [x8, w9, sxtw #2] ldr s2, [sp, #48] ldr x8, [sp, #72] ldr w9, [sp, #12] ldr w10, [sp, #60] add w9, w9, w10 subs w9, w9, #1 ldr s3, [x8, w9, sxtw #2] fmul s2, s2, s3 fmadd s2, s0, s1, s2 ldr s0, [sp, #40] ldr x8, [sp, #72] ldrsw x9, [sp, #12] ldr s1, [x8, x9, lsl #2] fmadd s2, s0, s1, s2 ldr s0, [sp, #36] ldr x8, [sp, #72] ldr w9, [sp, #12] ldr w10, [sp, #60] add w9, w9, w10 ldr s1, [x8, w9, sxtw #2] fmadd s2, s0, s1, s2 ldr s0, [sp, #28] ldr x8, [sp, #72] ldr w9, [sp, #12] add w9, w9, #1 ldr s1, [x8, w9, sxtw #2] fmadd s2, s0, s1, s2 ldr s0, [sp, #24] ldr x8, [sp, #72] ldr w9, [sp, #12] ldr w10, [sp, #60] add w9, w9, w10 add w9, w9, #1 ldr s1, [x8, w9, sxtw #2] fmadd s0, s0, s1, s2 ldr x8, [sp, #64] ldrsw x9, [sp, #12] str s0, [x8, x9, lsl #2] b LBB0_40 LBB0_25: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #20] ldr w9, [sp, #60] subs w9, w9, #1 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_29 b LBB0_26 LBB0_26: ; in Loop: Header=BB0_3 Depth=2 ldr w9, [sp, #16] mov w8, #0 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_29 b LBB0_27 LBB0_27: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #16] ldr w9, [sp, #60] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_29 b LBB0_28 LBB0_28: ; in Loop: Header=BB0_3 Depth=2 ldr s0, [sp, #56] ldr x8, [sp, #72] ldr w9, [sp, #12] ldr w10, [sp, #60] subs w9, w9, w10 subs w9, w9, #1 ldr s1, [x8, w9, sxtw #2] ldr s2, [sp, #52] ldr x8, [sp, #72] ldr w9, [sp, #12] subs w9, w9, #1 ldr s3, [x8, w9, sxtw #2] fmul s2, s2, s3 fmadd s2, s0, s1, s2 ldr s0, [sp, #44] ldr x8, [sp, #72] ldr w9, [sp, #12] ldr w10, [sp, #60] subs w9, w9, w10 ldr s1, [x8, w9, sxtw #2] fmadd s2, s0, s1, s2 ldr s0, [sp, #40] ldr x8, [sp, #72] ldrsw x9, [sp, #12] ldr s1, [x8, x9, lsl #2] fmadd s2, s0, s1, s2 ldr s0, [sp, #32] ldr x8, [sp, #72] ldr w9, [sp, #12] ldr w10, [sp, #60] subs w9, w9, w10 add w9, w9, #1 ldr s1, [x8, w9, sxtw #2] fmadd s2, s0, s1, s2 ldr s0, [sp, #28] ldr x8, [sp, #72] ldr w9, [sp, #12] add w9, w9, #1 ldr s1, [x8, w9, sxtw #2] fmadd s0, s0, s1, s2 ldr x8, [sp, #64] ldrsw x9, [sp, #12] str s0, [x8, x9, lsl #2] b LBB0_39 LBB0_29: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #16] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_33 b LBB0_30 LBB0_30: ; in Loop: Header=BB0_3 Depth=2 ldr w9, [sp, #20] mov w8, #0 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_33 b LBB0_31 LBB0_31: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #20] ldr w9, [sp, #60] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_33 b LBB0_32 LBB0_32: ; in Loop: Header=BB0_3 Depth=2 ldr s0, [sp, #44] ldr x8, [sp, #72] ldr w9, [sp, #12] ldr w10, [sp, #60] subs w9, w9, w10 ldr s1, [x8, w9, sxtw #2] ldr s2, [sp, #40] ldr x8, [sp, #72] ldrsw x9, [sp, #12] ldr s3, [x8, x9, lsl #2] fmul s2, s2, s3 fmadd s2, s0, s1, s2 ldr s0, [sp, #36] ldr x8, [sp, #72] ldr w9, [sp, #12] ldr w10, [sp, #60] add w9, w9, w10 ldr s1, [x8, w9, sxtw #2] fmadd s2, s0, s1, s2 ldr s0, [sp, #32] ldr x8, [sp, #72] ldr w9, [sp, #12] ldr w10, [sp, #60] subs w9, w9, w10 add w9, w9, #1 ldr s1, [x8, w9, sxtw #2] fmadd s2, s0, s1, s2 ldr s0, [sp, #28] ldr x8, [sp, #72] ldr w9, [sp, #12] add w9, w9, #1 ldr s1, [x8, w9, sxtw #2] fmadd s2, s0, s1, s2 ldr s0, [sp, #24] ldr x8, [sp, #72] ldr w9, [sp, #12] ldr w10, [sp, #60] add w9, w9, w10 add w9, w9, #1 ldr s1, [x8, w9, sxtw #2] fmadd s0, s0, s1, s2 ldr x8, [sp, #64] ldrsw x9, [sp, #12] str s0, [x8, x9, lsl #2] b LBB0_38 LBB0_33: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #16] ldr w9, [sp, #60] subs w9, w9, #1 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_37 b LBB0_34 LBB0_34: ; in Loop: Header=BB0_3 Depth=2 ldr w9, [sp, #20] mov w8, #0 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_37 b LBB0_35 LBB0_35: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #20] ldr w9, [sp, #60] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_37 b LBB0_36 LBB0_36: ; in Loop: Header=BB0_3 Depth=2 ldr s0, [sp, #56] ldr x8, [sp, #72] ldr w9, [sp, #12] ldr w10, [sp, #60] subs w9, w9, w10 subs w9, w9, #1 ldr s1, [x8, w9, sxtw #2] ldr s2, [sp, #52] ldr x8, [sp, #72] ldr w9, [sp, #12] subs w9, w9, #1 ldr s3, [x8, w9, sxtw #2] fmul s2, s2, s3 fmadd s2, s0, s1, s2 ldr s0, [sp, #48] ldr x8, [sp, #72] ldr w9, [sp, #12] ldr w10, [sp, #60] add w9, w9, w10 subs w9, w9, #1 ldr s1, [x8, w9, sxtw #2] fmadd s2, s0, s1, s2 ldr s0, [sp, #44] ldr x8, [sp, #72] ldr w9, [sp, #12] ldr w10, [sp, #60] subs w9, w9, w10 ldr s1, [x8, w9, sxtw #2] fmadd s2, s0, s1, s2 ldr s0, [sp, #40] ldr x8, [sp, #72] ldrsw x9, [sp, #12] ldr s1, [x8, x9, lsl #2] fmadd s2, s0, s1, s2 ldr s0, [sp, #36] ldr x8, [sp, #72] ldr w9, [sp, #12] ldr w10, [sp, #60] add w9, w9, w10 ldr s1, [x8, w9, sxtw #2] fmadd s0, s0, s1, s2 ldr x8, [sp, #64] ldrsw x9, [sp, #12] str s0, [x8, x9, lsl #2] b LBB0_37 LBB0_37: ; in Loop: Header=BB0_3 Depth=2 b LBB0_38 LBB0_38: ; in Loop: Header=BB0_3 Depth=2 b LBB0_39 LBB0_39: ; in Loop: Header=BB0_3 Depth=2 b LBB0_40 LBB0_40: ; in Loop: Header=BB0_3 Depth=2 b LBB0_41 LBB0_41: ; in Loop: Header=BB0_3 Depth=2 b LBB0_42 LBB0_42: ; in Loop: Header=BB0_3 Depth=2 b LBB0_43 LBB0_43: ; in Loop: Header=BB0_3 Depth=2 b LBB0_44 LBB0_44: ; in Loop: Header=BB0_3 Depth=2 b LBB0_45 LBB0_45: ; in Loop: Header=BB0_3 Depth=2 b LBB0_46 LBB0_46: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_3 LBB0_47: ; in Loop: Header=BB0_1 Depth=1 b LBB0_48 LBB0_48: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_1 LBB0_49: add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] mov w8, #10000 stur w8, [x29, #-20] ldur w8, [x29, #-20] ldur w9, [x29, #-20] mul w9, w8, w9 ; implicit-def: $x8 mov x8, x9 sxtw x8, w8 lsl x8, x8, #2 ; kill: def $w8 killed $w8 killed $x8 stur w8, [x29, #-24] ldursw x0, [x29, #-24] bl _malloc str x0, [sp, #32] ldursw x0, [x29, #-24] bl _malloc str x0, [sp, #24] str wzr, [sp, #20] b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_3 Depth 2 ldr w8, [sp, #20] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_8 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 str wzr, [sp, #16] b LBB1_3 LBB1_3: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #16] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_6 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=2 ldr x8, [sp, #32] ldr w9, [sp, #20] ldur w10, [x29, #-20] mul w9, w9, w10 ldr w10, [sp, #16] add w9, w9, w10 fmov s0, #1.00000000 str s0, [x8, w9, sxtw #2] ldr x8, [sp, #24] ldr w9, [sp, #20] ldur w10, [x29, #-20] mul w9, w9, w10 ldr w10, [sp, #16] add w9, w9, w10 movi d0, #0000000000000000 str s0, [x8, w9, sxtw #2] b LBB1_5 LBB1_5: ; in Loop: Header=BB1_3 Depth=2 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB1_3 LBB1_6: ; in Loop: Header=BB1_1 Depth=1 b LBB1_7 LBB1_7: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB1_1 LBB1_8: mov w8, #10 str w8, [sp, #12] str wzr, [sp, #20] b LBB1_9 LBB1_9: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_12 b LBB1_10 LBB1_10: ; in Loop: Header=BB1_9 Depth=1 ldr x0, [sp, #32] ldr x1, [sp, #24] ldur w2, [x29, #-20] mov x8, sp fmov s7, #1.00000000 str s7, [sp, #8] ; 4-byte Folded Spill str s7, [x8] fmov s0, s7 fmov s1, s7 fmov s2, s7 fmov s3, s7 fmov s4, s7 fmov s5, s7 fmov s6, s7 bl _conv_cpu b LBB1_11 LBB1_11: ; in Loop: Header=BB1_9 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB1_9 LBB1_12: ldur w0, [x29, #-4] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _conv_cpu ## -- Begin function conv_cpu .p2align 4, 0x90 _conv_cpu: ## @conv_cpu .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movss 16(%rbp), %xmm8 ## xmm8 = mem[0],zero,zero,zero movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movl %edx, -20(%rbp) movss %xmm0, -24(%rbp) movss %xmm1, -28(%rbp) movss %xmm2, -32(%rbp) movss %xmm3, -36(%rbp) movss %xmm4, -40(%rbp) movss %xmm5, -44(%rbp) movss %xmm6, -48(%rbp) movss %xmm7, -52(%rbp) movl $0, -56(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movl -56(%rbp), %eax cmpl -20(%rbp), %eax jge LBB0_49 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $0, -60(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -60(%rbp), %eax cmpl -20(%rbp), %eax jge LBB0_47 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movl -56(%rbp), %eax imull -20(%rbp), %eax addl -60(%rbp), %eax movl %eax, -64(%rbp) xorl %eax, %eax cmpl -56(%rbp), %eax jge LBB0_9 ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -56(%rbp), %eax movl -20(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jge LBB0_9 ## %bb.6: ## in Loop: Header=BB0_3 Depth=2 xorl %eax, %eax cmpl -60(%rbp), %eax jge LBB0_9 ## %bb.7: ## in Loop: Header=BB0_3 Depth=2 movl -60(%rbp), %eax movl -20(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jge LBB0_9 ## %bb.8: ## in Loop: Header=BB0_3 Depth=2 movss -24(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx subl -20(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero movss -28(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx mulss (%rax,%rcx,4), %xmm0 mulss %xmm2, %xmm1 addss %xmm0, %xmm1 movss -32(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx addl -20(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss -36(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx subl -20(%rbp), %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm1 addss %xmm0, %xmm1 movss -40(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -8(%rbp), %rax movslq -64(%rbp), %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss -44(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx addl -20(%rbp), %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm1 addss %xmm0, %xmm1 movss -48(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx subl -20(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss -52(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm1 addss %xmm0, %xmm1 movss 16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx addl -20(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movq -16(%rbp), %rax movslq -64(%rbp), %rcx movss %xmm0, (%rax,%rcx,4) jmp LBB0_45 LBB0_9: ## in Loop: Header=BB0_3 Depth=2 cmpl $0, -56(%rbp) jne LBB0_12 ## %bb.10: ## in Loop: Header=BB0_3 Depth=2 cmpl $0, -60(%rbp) jne LBB0_12 ## %bb.11: ## in Loop: Header=BB0_3 Depth=2 movss -40(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -8(%rbp), %rax movslq -64(%rbp), %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero movss -44(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx addl -20(%rbp), %ecx movslq %ecx, %rcx mulss (%rax,%rcx,4), %xmm1 mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss -52(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm1 addss %xmm0, %xmm1 movss 16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx addl -20(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movq -16(%rbp), %rax movslq -64(%rbp), %rcx movss %xmm0, (%rax,%rcx,4) jmp LBB0_44 LBB0_12: ## in Loop: Header=BB0_3 Depth=2 cmpl $0, -56(%rbp) jne LBB0_15 ## %bb.13: ## in Loop: Header=BB0_3 Depth=2 movl -60(%rbp), %eax movl -20(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jne LBB0_15 ## %bb.14: ## in Loop: Header=BB0_3 Depth=2 movss -28(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero movss -32(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx addl -20(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx mulss (%rax,%rcx,4), %xmm1 mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss -40(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movq -8(%rbp), %rax movslq -64(%rbp), %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm1 addss %xmm0, %xmm1 movss -44(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx addl -20(%rbp), %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movq -16(%rbp), %rax movslq -64(%rbp), %rcx movss %xmm0, (%rax,%rcx,4) jmp LBB0_43 LBB0_15: ## in Loop: Header=BB0_3 Depth=2 movl -56(%rbp), %eax movl -20(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jne LBB0_18 ## %bb.16: ## in Loop: Header=BB0_3 Depth=2 cmpl $0, -60(%rbp) jne LBB0_18 ## %bb.17: ## in Loop: Header=BB0_3 Depth=2 movss -36(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx subl -20(%rbp), %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero movss -40(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movq -8(%rbp), %rax movslq -64(%rbp), %rcx mulss (%rax,%rcx,4), %xmm1 mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss -48(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx subl -20(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm1 addss %xmm0, %xmm1 movss -52(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movq -16(%rbp), %rax movslq -64(%rbp), %rcx movss %xmm0, (%rax,%rcx,4) jmp LBB0_42 LBB0_18: ## in Loop: Header=BB0_3 Depth=2 movl -56(%rbp), %eax movl -20(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jne LBB0_21 ## %bb.19: ## in Loop: Header=BB0_3 Depth=2 movl -60(%rbp), %eax movl -20(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jne LBB0_21 ## %bb.20: ## in Loop: Header=BB0_3 Depth=2 movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx subl -20(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero movss -28(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx mulss (%rax,%rcx,4), %xmm1 mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss -36(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx subl -20(%rbp), %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm1 addss %xmm0, %xmm1 movss -40(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -8(%rbp), %rax movslq -64(%rbp), %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movq -16(%rbp), %rax movslq -64(%rbp), %rcx movss %xmm0, (%rax,%rcx,4) jmp LBB0_41 LBB0_21: ## in Loop: Header=BB0_3 Depth=2 cmpl $0, -56(%rbp) jne LBB0_25 ## %bb.22: ## in Loop: Header=BB0_3 Depth=2 xorl %eax, %eax cmpl -60(%rbp), %eax jge LBB0_25 ## %bb.23: ## in Loop: Header=BB0_3 Depth=2 movl -60(%rbp), %eax movl -20(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jge LBB0_25 ## %bb.24: ## in Loop: Header=BB0_3 Depth=2 movss -28(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero movss -32(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx addl -20(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx mulss (%rax,%rcx,4), %xmm1 mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss -40(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movq -8(%rbp), %rax movslq -64(%rbp), %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm1 addss %xmm0, %xmm1 movss -44(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx addl -20(%rbp), %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss -52(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm1 addss %xmm0, %xmm1 movss 16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx addl -20(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movq -16(%rbp), %rax movslq -64(%rbp), %rcx movss %xmm0, (%rax,%rcx,4) jmp LBB0_40 LBB0_25: ## in Loop: Header=BB0_3 Depth=2 movl -56(%rbp), %eax movl -20(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jne LBB0_29 ## %bb.26: ## in Loop: Header=BB0_3 Depth=2 xorl %eax, %eax cmpl -60(%rbp), %eax jge LBB0_29 ## %bb.27: ## in Loop: Header=BB0_3 Depth=2 movl -60(%rbp), %eax movl -20(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jge LBB0_29 ## %bb.28: ## in Loop: Header=BB0_3 Depth=2 movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx subl -20(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero movss -28(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx mulss (%rax,%rcx,4), %xmm1 mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss -36(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx subl -20(%rbp), %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm1 addss %xmm0, %xmm1 movss -40(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -8(%rbp), %rax movslq -64(%rbp), %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss -48(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx subl -20(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm1 addss %xmm0, %xmm1 movss -52(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movq -16(%rbp), %rax movslq -64(%rbp), %rcx movss %xmm0, (%rax,%rcx,4) jmp LBB0_39 LBB0_29: ## in Loop: Header=BB0_3 Depth=2 cmpl $0, -60(%rbp) jne LBB0_33 ## %bb.30: ## in Loop: Header=BB0_3 Depth=2 xorl %eax, %eax cmpl -56(%rbp), %eax jge LBB0_33 ## %bb.31: ## in Loop: Header=BB0_3 Depth=2 movl -56(%rbp), %eax movl -20(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jge LBB0_33 ## %bb.32: ## in Loop: Header=BB0_3 Depth=2 movss -36(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx subl -20(%rbp), %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero movss -40(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movq -8(%rbp), %rax movslq -64(%rbp), %rcx mulss (%rax,%rcx,4), %xmm1 mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss -44(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx addl -20(%rbp), %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm1 addss %xmm0, %xmm1 movss -48(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx subl -20(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss -52(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm1 addss %xmm0, %xmm1 movss 16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx addl -20(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movq -16(%rbp), %rax movslq -64(%rbp), %rcx movss %xmm0, (%rax,%rcx,4) jmp LBB0_38 LBB0_33: ## in Loop: Header=BB0_3 Depth=2 movl -60(%rbp), %eax movl -20(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jne LBB0_37 ## %bb.34: ## in Loop: Header=BB0_3 Depth=2 xorl %eax, %eax cmpl -56(%rbp), %eax jge LBB0_37 ## %bb.35: ## in Loop: Header=BB0_3 Depth=2 movl -56(%rbp), %eax movl -20(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jge LBB0_37 ## %bb.36: ## in Loop: Header=BB0_3 Depth=2 movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx subl -20(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero movss -28(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx mulss (%rax,%rcx,4), %xmm1 mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss -32(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx addl -20(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm1 addss %xmm0, %xmm1 movss -36(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx subl -20(%rbp), %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss -40(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movq -8(%rbp), %rax movslq -64(%rbp), %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm1 addss %xmm0, %xmm1 movss -44(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -8(%rbp), %rax movl -64(%rbp), %ecx addl -20(%rbp), %ecx movslq %ecx, %rcx movss (%rax,%rcx,4), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movq -16(%rbp), %rax movslq -64(%rbp), %rcx movss %xmm0, (%rax,%rcx,4) LBB0_37: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_38 LBB0_38: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_39 LBB0_39: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_40 LBB0_40: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_41 LBB0_41: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_42 LBB0_42: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_43 LBB0_43: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_44 LBB0_44: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_45 LBB0_45: ## in Loop: Header=BB0_3 Depth=2 jmp LBB0_46 LBB0_46: ## in Loop: Header=BB0_3 Depth=2 movl -60(%rbp), %eax addl $1, %eax movl %eax, -60(%rbp) jmp LBB0_3 LBB0_47: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_48 LBB0_48: ## in Loop: Header=BB0_1 Depth=1 movl -56(%rbp), %eax addl $1, %eax movl %eax, -56(%rbp) jmp LBB0_1 LBB0_49: popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function main LCPI1_0: .long 0x3f800000 ## float 1 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movl $10000, -20(%rbp) ## imm = 0x2710 movl -20(%rbp), %eax imull -20(%rbp), %eax cltq shlq $2, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -24(%rbp) movslq -24(%rbp), %rdi callq _malloc movq %rax, -32(%rbp) movslq -24(%rbp), %rdi callq _malloc movq %rax, -40(%rbp) movl $0, -44(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_3 Depth 2 movl -44(%rbp), %eax cmpl -20(%rbp), %eax jge LBB1_8 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movl $0, -48(%rbp) LBB1_3: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -48(%rbp), %eax cmpl -20(%rbp), %eax jge LBB1_6 ## %bb.4: ## in Loop: Header=BB1_3 Depth=2 movq -32(%rbp), %rax movl -44(%rbp), %ecx imull -20(%rbp), %ecx addl -48(%rbp), %ecx movslq %ecx, %rcx movss LCPI1_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, (%rax,%rcx,4) movq -40(%rbp), %rax movl -44(%rbp), %ecx imull -20(%rbp), %ecx addl -48(%rbp), %ecx movslq %ecx, %rcx xorps %xmm0, %xmm0 movss %xmm0, (%rax,%rcx,4) ## %bb.5: ## in Loop: Header=BB1_3 Depth=2 movl -48(%rbp), %eax addl $1, %eax movl %eax, -48(%rbp) jmp LBB1_3 LBB1_6: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_7 LBB1_7: ## in Loop: Header=BB1_1 Depth=1 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB1_1 LBB1_8: movl $10, -52(%rbp) movl $0, -44(%rbp) LBB1_9: ## =>This Inner Loop Header: Depth=1 movl -44(%rbp), %eax cmpl -52(%rbp), %eax jge LBB1_12 ## %bb.10: ## in Loop: Header=BB1_9 Depth=1 movq -32(%rbp), %rdi movq -40(%rbp), %rsi movl -20(%rbp), %edx movss LCPI1_0(%rip), %xmm8 ## xmm8 = mem[0],zero,zero,zero movss %xmm8, -56(%rbp) ## 4-byte Spill movaps %xmm8, %xmm0 movaps %xmm8, %xmm1 movaps %xmm8, %xmm2 movaps %xmm8, %xmm3 movaps %xmm8, %xmm4 movaps %xmm8, %xmm5 movaps %xmm8, %xmm6 movaps %xmm8, %xmm7 movss %xmm8, (%rsp) callq _conv_cpu ## %bb.11: ## in Loop: Header=BB1_9 Depth=1 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB1_9 LBB1_12: movl -4(%rbp), %eax addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/956413.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #28] mov w8, #1 str w8, [sp, #20] mov x9, sp add x8, sp, #24 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_60 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 mov x9, sp sub x8, x29, #28 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF str x0, [sp, #8] ; 8-byte Folded Spill bl _scanf ldr x0, [sp, #8] ; 8-byte Folded Reload mov x9, sp add x8, sp, #32 str x8, [x9] bl _scanf ldursb w8, [x29, #-28] subs w8, w8, #112 cset w8, ne tbnz w8, #0, LBB0_14 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldursb w8, [x29, #-27] subs w8, w8, #97 cset w8, ne tbnz w8, #0, LBB0_14 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldrsb w8, [sp, #32] subs w8, w8, #112 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldrsb w8, [sp, #33] subs w8, w8, #97 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldr w9, [sp, #20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_13 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldrsb w8, [sp, #32] subs w8, w8, #112 cset w8, ne tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 ldrsb w8, [sp, #33] subs w8, w8, #101 cset w8, eq tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 ldrsb w8, [sp, #32] subs w8, w8, #83 cset w8, ne tbnz w8, #0, LBB0_11 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldr w9, [sp, #20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_12 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 ldr w9, [sp, #20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_12 LBB0_12: ; in Loop: Header=BB0_1 Depth=1 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_1 Depth=1 b LBB0_59 LBB0_14: ; in Loop: Header=BB0_1 Depth=1 ldursb w8, [x29, #-28] subs w8, w8, #112 cset w8, ne tbnz w8, #0, LBB0_25 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_1 Depth=1 ldursb w8, [x29, #-27] subs w8, w8, #101 cset w8, ne tbnz w8, #0, LBB0_25 b LBB0_16 LBB0_16: ; in Loop: Header=BB0_1 Depth=1 ldrsb w8, [sp, #32] subs w8, w8, #112 cset w8, ne tbnz w8, #0, LBB0_19 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_1 Depth=1 ldrsb w8, [sp, #33] subs w8, w8, #101 cset w8, ne tbnz w8, #0, LBB0_19 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_1 Depth=1 ldr w9, [sp, #20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_24 LBB0_19: ; in Loop: Header=BB0_1 Depth=1 ldrsb w8, [sp, #32] subs w8, w8, #116 cset w8, eq tbnz w8, #0, LBB0_21 b LBB0_20 LBB0_20: ; in Loop: Header=BB0_1 Depth=1 ldrsb w8, [sp, #32] subs w8, w8, #108 cset w8, ne tbnz w8, #0, LBB0_22 b LBB0_21 LBB0_21: ; in Loop: Header=BB0_1 Depth=1 ldr w9, [sp, #20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_23 LBB0_22: ; in Loop: Header=BB0_1 Depth=1 ldr w9, [sp, #20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_23 LBB0_23: ; in Loop: Header=BB0_1 Depth=1 b LBB0_24 LBB0_24: ; in Loop: Header=BB0_1 Depth=1 b LBB0_58 LBB0_25: ; in Loop: Header=BB0_1 Depth=1 ldursb w8, [x29, #-28] subs w8, w8, #116 cset w8, ne tbnz w8, #0, LBB0_35 b LBB0_26 LBB0_26: ; in Loop: Header=BB0_1 Depth=1 ldrsb w8, [sp, #32] subs w8, w8, #116 cset w8, ne tbnz w8, #0, LBB0_28 b LBB0_27 LBB0_27: ; in Loop: Header=BB0_1 Depth=1 ldr w9, [sp, #20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_34 LBB0_28: ; in Loop: Header=BB0_1 Depth=1 ldrsb w8, [sp, #32] subs w8, w8, #112 cset w8, ne tbnz w8, #0, LBB0_30 b LBB0_29 LBB0_29: ; in Loop: Header=BB0_1 Depth=1 ldrsb w8, [sp, #33] subs w8, w8, #97 cset w8, eq tbnz w8, #0, LBB0_31 b LBB0_30 LBB0_30: ; in Loop: Header=BB0_1 Depth=1 ldrsb w8, [sp, #32] subs w8, w8, #108 cset w8, ne tbnz w8, #0, LBB0_32 b LBB0_31 LBB0_31: ; in Loop: Header=BB0_1 Depth=1 ldr w9, [sp, #20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_33 LBB0_32: ; in Loop: Header=BB0_1 Depth=1 ldr w9, [sp, #20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_33 LBB0_33: ; in Loop: Header=BB0_1 Depth=1 b LBB0_34 LBB0_34: ; in Loop: Header=BB0_1 Depth=1 b LBB0_57 LBB0_35: ; in Loop: Header=BB0_1 Depth=1 ldursb w8, [x29, #-28] subs w8, w8, #108 cset w8, ne tbnz w8, #0, LBB0_45 b LBB0_36 LBB0_36: ; in Loop: Header=BB0_1 Depth=1 ldrsb w8, [sp, #32] subs w8, w8, #108 cset w8, ne tbnz w8, #0, LBB0_38 b LBB0_37 LBB0_37: ; in Loop: Header=BB0_1 Depth=1 ldr w9, [sp, #20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_44 LBB0_38: ; in Loop: Header=BB0_1 Depth=1 ldrsb w8, [sp, #32] subs w8, w8, #112 cset w8, ne tbnz w8, #0, LBB0_40 b LBB0_39 LBB0_39: ; in Loop: Header=BB0_1 Depth=1 ldrsb w8, [sp, #33] subs w8, w8, #97 cset w8, eq tbnz w8, #0, LBB0_41 b LBB0_40 LBB0_40: ; in Loop: Header=BB0_1 Depth=1 ldrsb w8, [sp, #32] subs w8, w8, #83 cset w8, ne tbnz w8, #0, LBB0_42 b LBB0_41 LBB0_41: ; in Loop: Header=BB0_1 Depth=1 ldr w9, [sp, #20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_43 LBB0_42: ; in Loop: Header=BB0_1 Depth=1 ldr w9, [sp, #20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_43 LBB0_43: ; in Loop: Header=BB0_1 Depth=1 b LBB0_44 LBB0_44: ; in Loop: Header=BB0_1 Depth=1 b LBB0_56 LBB0_45: ; in Loop: Header=BB0_1 Depth=1 ldursb w8, [x29, #-28] subs w8, w8, #83 cset w8, ne tbnz w8, #0, LBB0_55 b LBB0_46 LBB0_46: ; in Loop: Header=BB0_1 Depth=1 ldrsb w8, [sp, #32] subs w8, w8, #83 cset w8, ne tbnz w8, #0, LBB0_48 b LBB0_47 LBB0_47: ; in Loop: Header=BB0_1 Depth=1 ldr w9, [sp, #20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_54 LBB0_48: ; in Loop: Header=BB0_1 Depth=1 ldrsb w8, [sp, #32] subs w8, w8, #112 cset w8, ne tbnz w8, #0, LBB0_50 b LBB0_49 LBB0_49: ; in Loop: Header=BB0_1 Depth=1 ldrsb w8, [sp, #33] subs w8, w8, #101 cset w8, eq tbnz w8, #0, LBB0_51 b LBB0_50 LBB0_50: ; in Loop: Header=BB0_1 Depth=1 ldrsb w8, [sp, #32] subs w8, w8, #116 cset w8, ne tbnz w8, #0, LBB0_52 b LBB0_51 LBB0_51: ; in Loop: Header=BB0_1 Depth=1 ldr w9, [sp, #20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_53 LBB0_52: ; in Loop: Header=BB0_1 Depth=1 ldr w9, [sp, #20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_53 LBB0_53: ; in Loop: Header=BB0_1 Depth=1 b LBB0_54 LBB0_54: ; in Loop: Header=BB0_1 Depth=1 b LBB0_55 LBB0_55: ; in Loop: Header=BB0_1 Depth=1 b LBB0_56 LBB0_56: ; in Loop: Header=BB0_1 Depth=1 b LBB0_57 LBB0_57: ; in Loop: Header=BB0_1 Depth=1 b LBB0_58 LBB0_58: ; in Loop: Header=BB0_1 Depth=1 b LBB0_59 LBB0_59: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #24] subs w8, w8, #1 str w8, [sp, #24] ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_1 LBB0_60: ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_62 b LBB0_61 LBB0_61: bl ___stack_chk_fail LBB0_62: mov w0, #0 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%s" l_.str.2: ; @.str.2 .asciz "Caso #%d: De novo!\n" l_.str.3: ; @.str.3 .asciz "Caso #%d: Bazinga!\n" l_.str.4: ; @.str.4 .asciz "Caso #%d: Raj trapaceou!\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -68(%rbp) movl $1, -76(%rbp) leaq L_.str(%rip), %rdi leaq -72(%rbp), %rsi movb $0, %al callq _scanf LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -72(%rbp) je LBB0_60 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 leaq -32(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf leaq -64(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf movsbl -32(%rbp), %eax cmpl $112, %eax jne LBB0_14 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movsbl -31(%rbp), %eax cmpl $97, %eax jne LBB0_14 ## %bb.4: ## in Loop: Header=BB0_1 Depth=1 movsbl -64(%rbp), %eax cmpl $112, %eax jne LBB0_7 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movsbl -63(%rbp), %eax cmpl $97, %eax jne LBB0_7 ## %bb.6: ## in Loop: Header=BB0_1 Depth=1 movl -76(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_13 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 movsbl -64(%rbp), %eax cmpl $112, %eax jne LBB0_9 ## %bb.8: ## in Loop: Header=BB0_1 Depth=1 movsbl -63(%rbp), %eax cmpl $101, %eax je LBB0_10 LBB0_9: ## in Loop: Header=BB0_1 Depth=1 movsbl -64(%rbp), %eax cmpl $83, %eax jne LBB0_11 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 movl -76(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf jmp LBB0_12 LBB0_11: ## in Loop: Header=BB0_1 Depth=1 movl -76(%rbp), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf LBB0_12: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_13 LBB0_13: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_59 LBB0_14: ## in Loop: Header=BB0_1 Depth=1 movsbl -32(%rbp), %eax cmpl $112, %eax jne LBB0_25 ## %bb.15: ## in Loop: Header=BB0_1 Depth=1 movsbl -31(%rbp), %eax cmpl $101, %eax jne LBB0_25 ## %bb.16: ## in Loop: Header=BB0_1 Depth=1 movsbl -64(%rbp), %eax cmpl $112, %eax jne LBB0_19 ## %bb.17: ## in Loop: Header=BB0_1 Depth=1 movsbl -63(%rbp), %eax cmpl $101, %eax jne LBB0_19 ## %bb.18: ## in Loop: Header=BB0_1 Depth=1 movl -76(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_24 LBB0_19: ## in Loop: Header=BB0_1 Depth=1 movsbl -64(%rbp), %eax cmpl $116, %eax je LBB0_21 ## %bb.20: ## in Loop: Header=BB0_1 Depth=1 movsbl -64(%rbp), %eax cmpl $108, %eax jne LBB0_22 LBB0_21: ## in Loop: Header=BB0_1 Depth=1 movl -76(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf jmp LBB0_23 LBB0_22: ## in Loop: Header=BB0_1 Depth=1 movl -76(%rbp), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf LBB0_23: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_24 LBB0_24: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_58 LBB0_25: ## in Loop: Header=BB0_1 Depth=1 movsbl -32(%rbp), %eax cmpl $116, %eax jne LBB0_35 ## %bb.26: ## in Loop: Header=BB0_1 Depth=1 movsbl -64(%rbp), %eax cmpl $116, %eax jne LBB0_28 ## %bb.27: ## in Loop: Header=BB0_1 Depth=1 movl -76(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_34 LBB0_28: ## in Loop: Header=BB0_1 Depth=1 movsbl -64(%rbp), %eax cmpl $112, %eax jne LBB0_30 ## %bb.29: ## in Loop: Header=BB0_1 Depth=1 movsbl -63(%rbp), %eax cmpl $97, %eax je LBB0_31 LBB0_30: ## in Loop: Header=BB0_1 Depth=1 movsbl -64(%rbp), %eax cmpl $108, %eax jne LBB0_32 LBB0_31: ## in Loop: Header=BB0_1 Depth=1 movl -76(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf jmp LBB0_33 LBB0_32: ## in Loop: Header=BB0_1 Depth=1 movl -76(%rbp), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf LBB0_33: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_34 LBB0_34: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_57 LBB0_35: ## in Loop: Header=BB0_1 Depth=1 movsbl -32(%rbp), %eax cmpl $108, %eax jne LBB0_45 ## %bb.36: ## in Loop: Header=BB0_1 Depth=1 movsbl -64(%rbp), %eax cmpl $108, %eax jne LBB0_38 ## %bb.37: ## in Loop: Header=BB0_1 Depth=1 movl -76(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_44 LBB0_38: ## in Loop: Header=BB0_1 Depth=1 movsbl -64(%rbp), %eax cmpl $112, %eax jne LBB0_40 ## %bb.39: ## in Loop: Header=BB0_1 Depth=1 movsbl -63(%rbp), %eax cmpl $97, %eax je LBB0_41 LBB0_40: ## in Loop: Header=BB0_1 Depth=1 movsbl -64(%rbp), %eax cmpl $83, %eax jne LBB0_42 LBB0_41: ## in Loop: Header=BB0_1 Depth=1 movl -76(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf jmp LBB0_43 LBB0_42: ## in Loop: Header=BB0_1 Depth=1 movl -76(%rbp), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf LBB0_43: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_44 LBB0_44: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_56 LBB0_45: ## in Loop: Header=BB0_1 Depth=1 movsbl -32(%rbp), %eax cmpl $83, %eax jne LBB0_55 ## %bb.46: ## in Loop: Header=BB0_1 Depth=1 movsbl -64(%rbp), %eax cmpl $83, %eax jne LBB0_48 ## %bb.47: ## in Loop: Header=BB0_1 Depth=1 movl -76(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB0_54 LBB0_48: ## in Loop: Header=BB0_1 Depth=1 movsbl -64(%rbp), %eax cmpl $112, %eax jne LBB0_50 ## %bb.49: ## in Loop: Header=BB0_1 Depth=1 movsbl -63(%rbp), %eax cmpl $101, %eax je LBB0_51 LBB0_50: ## in Loop: Header=BB0_1 Depth=1 movsbl -64(%rbp), %eax cmpl $116, %eax jne LBB0_52 LBB0_51: ## in Loop: Header=BB0_1 Depth=1 movl -76(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf jmp LBB0_53 LBB0_52: ## in Loop: Header=BB0_1 Depth=1 movl -76(%rbp), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf LBB0_53: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_54 LBB0_54: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_55 LBB0_55: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_56 LBB0_56: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_57 LBB0_57: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_58 LBB0_58: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_59 LBB0_59: ## in Loop: Header=BB0_1 Depth=1 movl -72(%rbp), %eax addl $-1, %eax movl %eax, -72(%rbp) movl -76(%rbp), %eax addl $1, %eax movl %eax, -76(%rbp) jmp LBB0_1 LBB0_60: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_62 ## %bb.61: xorl %eax, %eax addq $80, %rsp popq %rbp retq LBB0_62: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "%s" L_.str.2: ## @.str.2 .asciz "Caso #%d: De novo!\n" L_.str.3: ## @.str.3 .asciz "Caso #%d: Bazinga!\n" L_.str.4: ## @.str.4 .asciz "Caso #%d: Raj trapaceou!\n" .subsections_via_symbols
the_stack_data/72012866.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _check_serial ; -- Begin function check_serial .p2align 2 _check_serial: ; @check_serial .cfi_startproc ; %bb.0: sub sp, sp, #128 .cfi_def_cfa_offset 128 stp x29, x30, [sp, #112] ; 16-byte Folded Spill add x29, sp, #112 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str x0, [sp, #32] str wzr, [sp, #28] ldr x1, [sp, #32] add x0, sp, #40 str x0, [sp, #16] ; 8-byte Folded Spill mov x2, #64 bl ___strcpy_chk ldr x0, [sp, #16] ; 8-byte Folded Reload adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: mov w8, #1 str w8, [sp, #28] b LBB0_2 LBB0_2: ldr w8, [sp, #28] str w8, [sp, #12] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: bl ___stack_chk_fail LBB0_4: ldr w0, [sp, #12] ; 4-byte Folded Reload ldp x29, x30, [sp, #112] ; 16-byte Folded Reload add sp, sp, #128 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] str w0, [sp, #8] str x1, [sp] ldr w8, [sp, #8] subs w8, w8, #2 cset w8, ge tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov w0, #0 bl _exit LBB1_2: ldr x8, [sp] ldr x0, [x8, #8] bl _check_serial subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB1_5 LBB1_4: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB1_5 LBB1_5: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "SN123445" l_.str.1: ; @.str.1 .asciz "Enter serial number!\n" l_.str.2: ; @.str.2 .asciz "Serial number is correct.\n" l_.str.3: ; @.str.3 .asciz "Serial number is wrong.\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _check_serial ## -- Begin function check_serial .p2align 4, 0x90 _check_serial: ## @check_serial .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -88(%rbp) movl $0, -92(%rbp) leaq -80(%rbp), %rdi movq -88(%rbp), %rsi movl $64, %edx callq ___strcpy_chk leaq -80(%rbp), %rdi leaq L_.str(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB0_2 ## %bb.1: movl $1, -92(%rbp) LBB0_2: movl -92(%rbp), %eax movl %eax, -96(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_4 ## %bb.3: movl -96(%rbp), %eax ## 4-byte Reload addq $96, %rsp popq %rbp retq LBB0_4: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) cmpl $2, -8(%rbp) jge LBB1_2 ## %bb.1: leaq L_.str.1(%rip), %rdi xorl %eax, %eax movl %eax, -20(%rbp) ## 4-byte Spill callq _printf movl -20(%rbp), %edi ## 4-byte Reload callq _exit LBB1_2: movq -16(%rbp), %rax movq 8(%rax), %rdi callq _check_serial cmpl $0, %eax je LBB1_4 ## %bb.3: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB1_5 LBB1_4: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf LBB1_5: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "SN123445" L_.str.1: ## @.str.1 .asciz "Enter serial number!\n" L_.str.2: ## @.str.2 .asciz "Serial number is correct.\n" L_.str.3: ## @.str.3 .asciz "Serial number is wrong.\n" .subsections_via_symbols
the_stack_data/232956776.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-12] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov x9, sp mov x8, #1 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur w0, [x29, #-12] ; 4-byte Folded Reload ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movl $1, %esi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d\n" .subsections_via_symbols
the_stack_data/93743.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #24] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldr w8, [sp, #24] subs w8, w8, #3 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #20] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #20] subs w8, w8, #3 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldrsw x8, [sp, #24] mov x9, #12 mul x9, x8, x9 add x8, sp, #36 add x8, x8, x9 ldrsw x9, [sp, #20] add x8, x8, x9, lsl #2 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_3 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_1 LBB0_8: ldr w8, [sp, #36] str w8, [sp, #28] ldr w8, [sp, #36] str w8, [sp, #32] str wzr, [sp, #16] b LBB0_9 LBB0_9: ; =>This Loop Header: Depth=1 ; Child Loop BB0_11 Depth 2 ldr w8, [sp, #16] subs w8, w8, #3 cset w8, ge tbnz w8, #0, LBB0_21 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 str wzr, [sp, #12] b LBB0_11 LBB0_11: ; Parent Loop BB0_9 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #12] subs w8, w8, #3 cset w8, ge tbnz w8, #0, LBB0_19 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_11 Depth=2 ldrsw x8, [sp, #16] mov x9, #12 mul x9, x8, x9 add x8, sp, #36 add x8, x8, x9 ldrsw x9, [sp, #12] ldr w8, [x8, x9, lsl #2] ldr w9, [sp, #32] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_11 Depth=2 ldrsw x8, [sp, #16] mov x9, #12 mul x9, x8, x9 add x8, sp, #36 add x8, x8, x9 ldrsw x9, [sp, #12] ldr w8, [x8, x9, lsl #2] str w8, [sp, #32] b LBB0_17 LBB0_14: ; in Loop: Header=BB0_11 Depth=2 ldrsw x8, [sp, #16] mov x9, #12 mul x9, x8, x9 add x8, sp, #36 add x8, x8, x9 ldrsw x9, [sp, #12] ldr w8, [x8, x9, lsl #2] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_16 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_11 Depth=2 ldrsw x8, [sp, #16] mov x9, #12 mul x9, x8, x9 add x8, sp, #36 add x8, x8, x9 ldrsw x9, [sp, #12] ldr w8, [x8, x9, lsl #2] str w8, [sp, #28] b LBB0_16 LBB0_16: ; in Loop: Header=BB0_11 Depth=2 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_11 Depth=2 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_11 Depth=2 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_11 LBB0_19: ; in Loop: Header=BB0_9 Depth=1 b LBB0_20 LBB0_20: ; in Loop: Header=BB0_9 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_9 LBB0_21: ldr w9, [sp, #32] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldr w9, [sp, #28] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_23 b LBB0_22 LBB0_22: bl ___stack_chk_fail LBB0_23: ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "largest no.is %d" l_.str.2: ; @.str.2 .asciz "smallest no. is %d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -60(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 cmpl $3, -60(%rbp) jge LBB0_8 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $0, -64(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $3, -64(%rbp) jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movslq -60(%rbp), %rax leaq -48(%rbp), %rsi imulq $12, %rax, %rax addq %rax, %rsi movslq -64(%rbp), %rax shlq $2, %rax addq %rax, %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _scanf ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -64(%rbp), %eax addl $1, %eax movl %eax, -64(%rbp) jmp LBB0_3 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_7 LBB0_7: ## in Loop: Header=BB0_1 Depth=1 movl -60(%rbp), %eax addl $1, %eax movl %eax, -60(%rbp) jmp LBB0_1 LBB0_8: movl -48(%rbp), %eax movl %eax, -56(%rbp) movl -48(%rbp), %eax movl %eax, -52(%rbp) movl $0, -68(%rbp) LBB0_9: ## =>This Loop Header: Depth=1 ## Child Loop BB0_11 Depth 2 cmpl $3, -68(%rbp) jge LBB0_21 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 movl $0, -72(%rbp) LBB0_11: ## Parent Loop BB0_9 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $3, -72(%rbp) jge LBB0_19 ## %bb.12: ## in Loop: Header=BB0_11 Depth=2 movslq -68(%rbp), %rcx leaq -48(%rbp), %rax imulq $12, %rcx, %rcx addq %rcx, %rax movslq -72(%rbp), %rcx movl (%rax,%rcx,4), %eax cmpl -52(%rbp), %eax jle LBB0_14 ## %bb.13: ## in Loop: Header=BB0_11 Depth=2 movslq -68(%rbp), %rcx leaq -48(%rbp), %rax imulq $12, %rcx, %rcx addq %rcx, %rax movslq -72(%rbp), %rcx movl (%rax,%rcx,4), %eax movl %eax, -52(%rbp) jmp LBB0_17 LBB0_14: ## in Loop: Header=BB0_11 Depth=2 movslq -68(%rbp), %rcx leaq -48(%rbp), %rax imulq $12, %rcx, %rcx addq %rcx, %rax movslq -72(%rbp), %rcx movl (%rax,%rcx,4), %eax cmpl -56(%rbp), %eax jge LBB0_16 ## %bb.15: ## in Loop: Header=BB0_11 Depth=2 movslq -68(%rbp), %rcx leaq -48(%rbp), %rax imulq $12, %rcx, %rcx addq %rcx, %rax movslq -72(%rbp), %rcx movl (%rax,%rcx,4), %eax movl %eax, -56(%rbp) LBB0_16: ## in Loop: Header=BB0_11 Depth=2 jmp LBB0_17 LBB0_17: ## in Loop: Header=BB0_11 Depth=2 jmp LBB0_18 LBB0_18: ## in Loop: Header=BB0_11 Depth=2 movl -72(%rbp), %eax addl $1, %eax movl %eax, -72(%rbp) jmp LBB0_11 LBB0_19: ## in Loop: Header=BB0_9 Depth=1 jmp LBB0_20 LBB0_20: ## in Loop: Header=BB0_9 Depth=1 movl -68(%rbp), %eax addl $1, %eax movl %eax, -68(%rbp) jmp LBB0_9 LBB0_21: movl -52(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl -56(%rbp), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_23 ## %bb.22: addq $80, %rsp popq %rbp retq LBB0_23: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "largest no.is %d" L_.str.2: ## @.str.2 .asciz "smallest no. is %d" .subsections_via_symbols
the_stack_data/147582.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _size ; -- Begin function size .p2align 2 _size: ; @size .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] strb wzr, [sp, #11] ldr w9, [sp, #12] mov w8, #38 subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: mov w8, #83 strb w8, [sp, #11] b LBB0_9 LBB0_2: ldr w9, [sp, #12] mov w8, #39 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_5 b LBB0_3 LBB0_3: ldr w9, [sp, #12] mov w8, #41 subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: mov w8, #77 strb w8, [sp, #11] b LBB0_8 LBB0_5: ldr w9, [sp, #12] mov w8, #42 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: mov w8, #76 strb w8, [sp, #11] b LBB0_7 LBB0_7: b LBB0_8 LBB0_8: b LBB0_9 LBB0_9: ldrsb w0, [sp, #11] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov w0, #37 bl _size sxtb w8, w0 subs w8, w8, #83 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #31 adrp x3, l_.str.1@PAGE add x3, x3, l_.str.1@PAGEOFF bl ___assert_rtn LBB1_2: b LBB1_3 LBB1_3: mov w0, #38 bl _size sxtb w8, w0 subs w8, w8, #83 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB1_5 b LBB1_4 LBB1_4: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #32 adrp x3, l_.str.2@PAGE add x3, x3, l_.str.2@PAGEOFF bl ___assert_rtn LBB1_5: b LBB1_6 LBB1_6: mov w0, #40 bl _size sxtb w8, w0 subs w8, w8, #77 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB1_8 b LBB1_7 LBB1_7: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #33 adrp x3, l_.str.3@PAGE add x3, x3, l_.str.3@PAGEOFF bl ___assert_rtn LBB1_8: b LBB1_9 LBB1_9: mov w0, #42 bl _size sxtb w8, w0 subs w8, w8, #76 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB1_11 b LBB1_10 LBB1_10: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #34 adrp x3, l_.str.4@PAGE add x3, x3, l_.str.4@PAGEOFF bl ___assert_rtn LBB1_11: b LBB1_12 LBB1_12: mov w0, #43 bl _size sxtb w8, w0 subs w8, w8, #76 cset w9, ne ; implicit-def: $x8 mov x8, x9 ands x8, x8, #0x1 cset w8, eq tbnz w8, #0, LBB1_14 b LBB1_13 LBB1_13: adrp x0, l___func__.main@PAGE add x0, x0, l___func__.main@PAGEOFF adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF mov w2, #35 adrp x3, l_.str.5@PAGE add x3, x3, l_.str.5@PAGEOFF bl ___assert_rtn LBB1_14: b LBB1_15 LBB1_15: adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l___func__.main: ; @__func__.main .asciz "main" l_.str: ; @.str .asciz "95699.c" l_.str.1: ; @.str.1 .asciz "size(37) == 'S'" l_.str.2: ; @.str.2 .asciz "size(38) == 'S'" l_.str.3: ; @.str.3 .asciz "size(40) == 'M'" l_.str.4: ; @.str.4 .asciz "size(42) == 'L'" l_.str.5: ; @.str.5 .asciz "size(43) == 'L'" l_.str.6: ; @.str.6 .asciz "All is well (maybe!)\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _size ## -- Begin function size .p2align 4, 0x90 _size: ## @size .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movb $0, -5(%rbp) movl $38, %eax cmpl -4(%rbp), %eax jl LBB0_2 ## %bb.1: movb $83, -5(%rbp) jmp LBB0_9 LBB0_2: movl $39, %eax cmpl -4(%rbp), %eax jg LBB0_5 ## %bb.3: movl $41, %eax cmpl -4(%rbp), %eax jl LBB0_5 ## %bb.4: movb $77, -5(%rbp) jmp LBB0_8 LBB0_5: movl $42, %eax cmpl -4(%rbp), %eax jg LBB0_7 ## %bb.6: movb $76, -5(%rbp) LBB0_7: jmp LBB0_8 LBB0_8: jmp LBB0_9 LBB0_9: movsbl -5(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $37, %edi callq _size movsbl %al, %eax cmpl $83, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB1_2 ## %bb.1: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.1(%rip), %rcx movl $31, %edx callq ___assert_rtn LBB1_2: jmp LBB1_3 LBB1_3: movl $38, %edi callq _size movsbl %al, %eax cmpl $83, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB1_5 ## %bb.4: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.2(%rip), %rcx movl $32, %edx callq ___assert_rtn LBB1_5: jmp LBB1_6 LBB1_6: movl $40, %edi callq _size movsbl %al, %eax cmpl $77, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB1_8 ## %bb.7: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.3(%rip), %rcx movl $33, %edx callq ___assert_rtn LBB1_8: jmp LBB1_9 LBB1_9: movl $42, %edi callq _size movsbl %al, %eax cmpl $76, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB1_11 ## %bb.10: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.4(%rip), %rcx movl $34, %edx callq ___assert_rtn LBB1_11: jmp LBB1_12 LBB1_12: movl $43, %edi callq _size movsbl %al, %eax cmpl $76, %eax sete %al xorb $-1, %al andb $1, %al movzbl %al, %eax cltq cmpq $0, %rax je LBB1_14 ## %bb.13: leaq L___func__.main(%rip), %rdi leaq L_.str(%rip), %rsi leaq L_.str.5(%rip), %rcx movl $35, %edx callq ___assert_rtn LBB1_14: jmp LBB1_15 LBB1_15: leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L___func__.main: ## @__func__.main .asciz "main" L_.str: ## @.str .asciz "95699.c" L_.str.1: ## @.str.1 .asciz "size(37) == 'S'" L_.str.2: ## @.str.2 .asciz "size(38) == 'S'" L_.str.3: ## @.str.3 .asciz "size(40) == 'M'" L_.str.4: ## @.str.4 .asciz "size(42) == 'L'" L_.str.5: ## @.str.5 .asciz "size(43) == 'L'" L_.str.6: ## @.str.6 .asciz "All is well (maybe!)\n" .subsections_via_symbols
the_stack_data/95699.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function main lCPI0_0: .quad 0x3fe6666666666666 ; double 0.69999999999999996 lCPI0_1: .quad 0x3fc3333333333333 ; double 0.14999999999999999 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #240 .cfi_def_cfa_offset 240 stp x29, x30, [sp, #224] ; 16-byte Folded Spill add x29, sp, #224 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 mov x9, sp add x8, sp, #76 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldr w8, [sp, #76] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: b LBB0_19 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 mov x9, sp str x9, [sp, #64] ; 8-byte Folded Spill sub x8, x29, #16 str x8, [x9] sub x8, x29, #24 str x8, [x9, #8] sub x8, x29, #32 str x8, [x9, #16] sub x8, x29, #40 str x8, [x9, #24] sub x8, x29, #48 str x8, [x9, #32] sub x8, x29, #56 str x8, [x9, #40] sub x8, x29, #64 str x8, [x9, #48] sub x8, x29, #72 str x8, [x9, #56] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf mov x9, sp sub x8, x29, #88 str x8, [x9] sub x8, x29, #96 str x8, [x9, #8] sub x8, x29, #104 str x8, [x9, #16] add x8, sp, #112 str x8, [x9, #24] add x8, sp, #104 str x8, [x9, #32] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _scanf mov x9, sp add x8, sp, #88 str x8, [x9] add x8, sp, #72 str x8, [x9, #8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _scanf ldur d0, [x29, #-16] ldur d1, [x29, #-24] fadd d0, d0, d1 ldur d1, [x29, #-32] fadd d0, d0, d1 ldur d1, [x29, #-40] fadd d0, d0, d1 ldur d1, [x29, #-48] fadd d0, d0, d1 ldur d1, [x29, #-56] fadd d0, d0, d1 ldur d1, [x29, #-64] fadd d0, d0, d1 ldur d1, [x29, #-72] fadd d0, d0, d1 fmov d1, #8.00000000 fdiv d0, d0, d1 stur d0, [x29, #-80] ldur d0, [x29, #-88] ldur d1, [x29, #-96] fadd d0, d0, d1 ldur d1, [x29, #-104] fadd d0, d0, d1 ldr d1, [sp, #112] fadd d0, d0, d1 ldr d1, [sp, #104] fadd d0, d0, d1 fmov d1, #5.00000000 fdiv d0, d0, d1 str d0, [sp, #96] ldur d2, [x29, #-80] ldr d1, [sp, #96] adrp x8, lCPI0_1@PAGE ldr d0, [x8, lCPI0_1@PAGEOFF] fmul d3, d0, d1 adrp x8, lCPI0_0@PAGE ldr d1, [x8, lCPI0_0@PAGEOFF] fmadd d2, d1, d2, d3 ldr d1, [sp, #88] fmadd d0, d0, d1, d2 str d0, [sp, #80] ldr w9, [sp, #76] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldr d0, [sp, #80] mov x8, sp str d0, [x8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf ldr d0, [sp, #80] fmov d1, #6.00000000 fcmp d0, d1 cset w8, lt tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #72] subs w8, w8, #96 cset w8, le tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf b LBB0_1 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldr d0, [sp, #80] fmov d1, #6.00000000 fcmp d0, d1 cset w8, pl tbnz w8, #0, LBB0_9 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #72] subs w8, w8, #96 cset w8, le tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf b LBB0_1 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 ldr d0, [sp, #80] fmov d1, #6.00000000 fcmp d0, d1 cset w8, lt tbnz w8, #0, LBB0_12 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #72] subs w8, w8, #96 cset w8, ge tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf b LBB0_1 LBB0_12: ; in Loop: Header=BB0_1 Depth=1 ldr d0, [sp, #80] fmov d1, #6.00000000 fcmp d0, d1 cset w8, pl tbnz w8, #0, LBB0_15 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #72] subs w8, w8, #96 cset w8, ge tbnz w8, #0, LBB0_15 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf b LBB0_15 LBB0_15: ; in Loop: Header=BB0_1 Depth=1 b LBB0_16 LBB0_16: ; in Loop: Header=BB0_1 Depth=1 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_1 Depth=1 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_19: ldur w0, [x29, #-4] ldp x29, x30, [sp, #224] ; 16-byte Folded Reload add sp, sp, #240 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%lf %lf %lf %lf %lf %lf %lf %lf" l_.str.2: ; @.str.2 .asciz "%lf %lf %lf %lf %lf" l_.str.3: ; @.str.3 .asciz "%lf %d" l_.str.4: ; @.str.4 .asciz "Matricula: %d, " l_.str.5: ; @.str.5 .asciz "Nota Final: %.2lf, " l_.str.6: ; @.str.6 .asciz "Situacao Final: " l_.str.7: ; @.str.7 .asciz "APROVADO\n" l_.str.8: ; @.str.8 .asciz "REPROVADO POR NOTA\n" l_.str.9: ; @.str.9 .asciz "REPROVADO POR FREQUENCIA\n" l_.str.10: ; @.str.10 .asciz "REPROVADO POR NOTA E POR FREQUENCIA\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function main LCPI0_0: .quad 0x4018000000000000 ## double 6 LCPI0_1: .quad 0x3fc3333333333333 ## double 0.14999999999999999 LCPI0_2: .quad 0x3fe6666666666666 ## double 0.69999999999999996 LCPI0_3: .quad 0x4014000000000000 ## double 5 LCPI0_4: .quad 0x4020000000000000 ## double 8 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $176, %rsp movl $0, -4(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 leaq L_.str(%rip), %rdi leaq -148(%rbp), %rsi movb $0, %al callq _scanf cmpl $-1, -148(%rbp) jne LBB0_3 ## %bb.2: jmp LBB0_19 LBB0_3: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.1(%rip), %rdi leaq -16(%rbp), %rsi leaq -24(%rbp), %rdx leaq -32(%rbp), %rcx leaq -40(%rbp), %r8 leaq -48(%rbp), %r9 leaq -56(%rbp), %r11 leaq -64(%rbp), %r10 leaq -72(%rbp), %rax movq %r11, (%rsp) movq %r10, 8(%rsp) movq %rax, 16(%rsp) movb $0, %al callq _scanf leaq L_.str.2(%rip), %rdi leaq -88(%rbp), %rsi leaq -96(%rbp), %rdx leaq -104(%rbp), %rcx leaq -112(%rbp), %r8 leaq -120(%rbp), %r9 movb $0, %al callq _scanf leaq L_.str.3(%rip), %rdi leaq -136(%rbp), %rsi leaq -152(%rbp), %rdx movb $0, %al callq _scanf movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -24(%rbp), %xmm0 addsd -32(%rbp), %xmm0 addsd -40(%rbp), %xmm0 addsd -48(%rbp), %xmm0 addsd -56(%rbp), %xmm0 addsd -64(%rbp), %xmm0 addsd -72(%rbp), %xmm0 movsd LCPI0_4(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movsd %xmm0, -80(%rbp) movsd -88(%rbp), %xmm0 ## xmm0 = mem[0],zero addsd -96(%rbp), %xmm0 addsd -104(%rbp), %xmm0 addsd -112(%rbp), %xmm0 addsd -120(%rbp), %xmm0 movsd LCPI0_3(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 movsd %xmm0, -128(%rbp) movsd -80(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -128(%rbp), %xmm0 movsd LCPI0_2(%rip), %xmm2 ## xmm2 = mem[0],zero mulsd %xmm2, %xmm1 addsd %xmm0, %xmm1 movsd -136(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI0_1(%rip), %xmm2 ## xmm2 = mem[0],zero mulsd %xmm2, %xmm0 addsd %xmm1, %xmm0 movsd %xmm0, -144(%rbp) movl -148(%rbp), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movsd -144(%rbp), %xmm0 ## xmm0 = mem[0],zero leaq L_.str.5(%rip), %rdi movb $1, %al callq _printf leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf movsd -144(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jb LBB0_6 ## %bb.4: ## in Loop: Header=BB0_1 Depth=1 cmpl $96, -152(%rbp) jle LBB0_6 ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf jmp LBB0_1 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd -144(%rbp), %xmm0 jbe LBB0_9 ## %bb.7: ## in Loop: Header=BB0_1 Depth=1 cmpl $96, -152(%rbp) jle LBB0_9 ## %bb.8: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf jmp LBB0_1 LBB0_9: ## in Loop: Header=BB0_1 Depth=1 movsd -144(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jb LBB0_12 ## %bb.10: ## in Loop: Header=BB0_1 Depth=1 cmpl $96, -152(%rbp) jge LBB0_12 ## %bb.11: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf jmp LBB0_1 LBB0_12: ## in Loop: Header=BB0_1 Depth=1 movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd -144(%rbp), %xmm0 jbe LBB0_15 ## %bb.13: ## in Loop: Header=BB0_1 Depth=1 cmpl $96, -152(%rbp) jge LBB0_15 ## %bb.14: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf LBB0_15: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_16 LBB0_16: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_17 LBB0_17: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_18 LBB0_18: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_19: movl -4(%rbp), %eax addq $176, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "%lf %lf %lf %lf %lf %lf %lf %lf" L_.str.2: ## @.str.2 .asciz "%lf %lf %lf %lf %lf" L_.str.3: ## @.str.3 .asciz "%lf %d" L_.str.4: ## @.str.4 .asciz "Matricula: %d, " L_.str.5: ## @.str.5 .asciz "Nota Final: %.2lf, " L_.str.6: ## @.str.6 .asciz "Situacao Final: " L_.str.7: ## @.str.7 .asciz "APROVADO\n" L_.str.8: ## @.str.8 .asciz "REPROVADO POR NOTA\n" L_.str.9: ## @.str.9 .asciz "REPROVADO POR FREQUENCIA\n" L_.str.10: ## @.str.10 .asciz "REPROVADO POR NOTA E POR FREQUENCIA\n" .subsections_via_symbols
the_stack_data/9513055.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _enfileira ; -- Begin function enfileira .p2align 2 _enfileira: ; @enfileira .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] str w1, [sp, #12] ldr x8, [sp, #16] ldr w8, [x8, #16] ldr x9, [sp, #16] ldr w9, [x9, #8] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_6 b LBB0_1 LBB0_1: ldr x8, [sp, #16] ldr w8, [x8, #16] ldr x9, [sp, #16] ldr w9, [x9, #8] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_5 b LBB0_2 LBB0_2: ldr x8, [sp, #16] ldr x0, [x8] ldr x8, [sp, #16] ldr w9, [x8, #8] mov w8, #2 mul w9, w8, w9 ; implicit-def: $x8 mov x8, x9 sxtw x8, w8 lsl x1, x8, #2 bl _realloc ldr x8, [sp, #16] str x0, [x8] ldr x8, [sp, #16] ldr x8, [x8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: mov w0, #1 bl _exit LBB0_4: ldr x9, [sp, #16] ldr w8, [x9, #8] lsl w8, w8, #1 str w8, [x9, #8] b LBB0_5 LBB0_5: ldr w8, [sp, #12] ldr x9, [sp, #16] ldr x9, [x9] ldr x10, [sp, #16] ldrsw x10, [x10, #16] str w8, [x9, x10, lsl #2] ldr x10, [sp, #16] ldr w9, [x10, #16] mov w8, #1 add w9, w9, #1 str w9, [x10, #16] stur w8, [x29, #-4] b LBB0_7 LBB0_6: stur wzr, [x29, #-4] b LBB0_7 LBB0_7: ldur w0, [x29, #-4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _enfileira ## -- Begin function enfileira .p2align 4, 0x90 _enfileira: ## @enfileira .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) movq -16(%rbp), %rax movl 16(%rax), %eax movq -16(%rbp), %rcx cmpl 8(%rcx), %eax jg LBB0_6 ## %bb.1: movq -16(%rbp), %rax movl 16(%rax), %eax movq -16(%rbp), %rcx cmpl 8(%rcx), %eax jne LBB0_5 ## %bb.2: movq -16(%rbp), %rax movq (%rax), %rdi movq -16(%rbp), %rax movl 8(%rax), %eax shll $1, %eax movslq %eax, %rsi shlq $2, %rsi callq _realloc movq %rax, %rcx movq -16(%rbp), %rax movq %rcx, (%rax) movq -16(%rbp), %rax cmpq $0, (%rax) jne LBB0_4 ## %bb.3: movl $1, %edi callq _exit LBB0_4: movq -16(%rbp), %rax movl 8(%rax), %ecx shll $1, %ecx movl %ecx, 8(%rax) LBB0_5: movl -20(%rbp), %edx movq -16(%rbp), %rax movq (%rax), %rax movq -16(%rbp), %rcx movslq 16(%rcx), %rcx movl %edx, (%rax,%rcx,4) movq -16(%rbp), %rax movl 16(%rax), %ecx addl $1, %ecx movl %ecx, 16(%rax) movl $1, -4(%rbp) jmp LBB0_7 LBB0_6: movl $0, -4(%rbp) LBB0_7: movl -4(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/15763109.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] sub x8, x29, #8 stur wzr, [x29, #-8] stur wzr, [x29, #-12] mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] ldur w8, [x29, #-8] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-12] subs w8, w8, #6 cset w8, lt tbnz w8, #0, LBB0_1 b LBB0_5 LBB0_5: mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $0, -8(%rbp) movl $0, -12(%rbp) leaq L_.str(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) movl -8(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $0, %edx je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) LBB0_3: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_4 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 cmpl $6, -12(%rbp) jl LBB0_1 ## %bb.5: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "%d\n" .subsections_via_symbols
the_stack_data/405967.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 mov w9, #9328 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #2, lsl #12 ; =8192 sub sp, sp, #1136 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #96] ; 8-byte Folded Spill adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #196] str w0, [sp, #192] str x1, [sp, #184] ldr w8, [sp, #192] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr x8, [sp, #96] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB0_2: add x0, sp, #128 str x0, [sp, #88] ; 8-byte Folded Spill mov w1, #0 mov x2, #48 bl _memset ldr x2, [sp, #88] ; 8-byte Folded Reload str wzr, [sp, #132] mov w8, #1 str w8, [sp, #136] ldr x8, [sp, #184] ldr x0, [x8, #8] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF add x3, sp, #120 bl _getaddrinfo str w0, [sp, #108] subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr x8, [sp, #96] ; 8-byte Folded Reload ldr x8, [x8] str x8, [sp, #80] ; 8-byte Folded Spill ldr w0, [sp, #108] bl _gai_strerror mov x8, x0 ldr x0, [sp, #80] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fprintf mov w8, #1 str w8, [sp, #196] b LBB0_29 LBB0_4: ldr x8, [sp, #120] str x8, [sp, #112] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #112] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldr x8, [sp, #112] ldr w0, [x8, #4] ldr x8, [sp, #112] ldr w1, [x8, #8] ldr x8, [sp, #112] ldr w2, [x8, #12] bl _socket str w0, [sp, #180] adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _perror b LBB0_11 LBB0_8: ; in Loop: Header=BB0_5 Depth=1 ldr w0, [sp, #180] ldr x8, [sp, #112] ldr x1, [x8, #32] ldr x8, [sp, #112] ldr w2, [x8, #16] bl _connect adds w8, w0, #1 cset w8, ne tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_5 Depth=1 ldr w0, [sp, #180] bl _close adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _perror b LBB0_11 LBB0_10: b LBB0_12 LBB0_11: ; in Loop: Header=BB0_5 Depth=1 ldr x8, [sp, #112] ldr x8, [x8, #40] str x8, [sp, #112] b LBB0_5 LBB0_12: ldr x8, [sp, #112] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: ldr x8, [sp, #96] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _fprintf mov w8, #2 str w8, [sp, #196] b LBB0_29 LBB0_14: ldr x0, [sp, #120] bl _freeaddrinfo add x0, sp, #200 str x0, [sp, #56] ; 8-byte Folded Spill mov w1, #0 str w1, [sp, #76] ; 4-byte Folded Spill mov x2, #1024 str x2, [sp, #64] ; 8-byte Folded Spill adrp x3, l_.str.6@PAGE add x3, x3, l_.str.6@PAGEOFF bl ___sprintf_chk ldr x8, [sp, #56] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf ldr x1, [sp, #56] ; 8-byte Folded Reload ldr x2, [sp, #64] ; 8-byte Folded Reload ldr w3, [sp, #76] ; 4-byte Folded Reload ldr w0, [sp, #180] bl _send adds x8, x0, #1 cset w8, ne tbnz w8, #0, LBB0_16 b LBB0_15 LBB0_15: adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _perror b LBB0_16 LBB0_16: ldr w0, [sp, #180] add x1, sp, #1224 str x1, [sp, #48] ; 8-byte Folded Spill mov x2, #8095 mov w3, #0 bl _recv ldr x8, [sp, #48] ; 8-byte Folded Reload mov x9, x0 str w9, [sp, #104] mov x9, sp str x8, [x9] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf ldr w8, [sp, #104] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_18 b LBB0_17 LBB0_17: adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _perror b LBB0_21 LBB0_18: ldr w8, [sp, #104] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_20 b LBB0_19 LBB0_19: adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _perror ldr w0, [sp, #180] bl _close mov w0, #0 bl _exit LBB0_20: b LBB0_21 LBB0_21: add x0, sp, #200 str x0, [sp, #24] ; 8-byte Folded Spill mov w1, #0 str w1, [sp, #44] ; 4-byte Folded Spill mov x2, #1024 str x2, [sp, #32] ; 8-byte Folded Spill adrp x3, l_.str.11@PAGE add x3, x3, l_.str.11@PAGEOFF bl ___sprintf_chk ldr x8, [sp, #24] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf ldr x1, [sp, #24] ; 8-byte Folded Reload ldr x2, [sp, #32] ; 8-byte Folded Reload ldr w3, [sp, #44] ; 4-byte Folded Reload ldr w0, [sp, #180] bl _send adds x8, x0, #1 cset w8, ne tbnz w8, #0, LBB0_23 b LBB0_22 LBB0_22: adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _perror b LBB0_23 LBB0_23: ldr w0, [sp, #180] add x1, sp, #1224 str x1, [sp, #16] ; 8-byte Folded Spill mov x2, #8095 mov w3, #0 bl _recv ldr x8, [sp, #16] ; 8-byte Folded Reload mov x9, x0 str w9, [sp, #104] mov x9, sp str x8, [x9] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf ldr w8, [sp, #104] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_25 b LBB0_24 LBB0_24: adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _perror b LBB0_28 LBB0_25: ldr w8, [sp, #104] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_27 b LBB0_26 LBB0_26: adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _perror ldr w0, [sp, #180] bl _close mov w0, #0 bl _exit LBB0_27: b LBB0_28 LBB0_28: ldr w0, [sp, #180] bl _close str wzr, [sp, #196] b LBB0_29 LBB0_29: ldr w8, [sp, #196] str w8, [sp, #12] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_31 b LBB0_30 LBB0_30: bl ___stack_chk_fail LBB0_31: ldr w0, [sp, #12] ; 4-byte Folded Reload add sp, sp, #2, lsl #12 ; =8192 add sp, sp, #1136 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "usage: client hostname\n" l_.str.1: ; @.str.1 .asciz "8080" l_.str.2: ; @.str.2 .asciz "getaddrinfo: %s\n" l_.str.3: ; @.str.3 .asciz "client: socket" l_.str.4: ; @.str.4 .asciz "client: connect" l_.str.5: ; @.str.5 .asciz "client: failed to connect\n" l_.str.6: ; @.str.6 .asciz "GET /index.html HTTP/1.1\r\n" l_.str.7: ; @.str.7 .asciz "%s\n" l_.str.8: ; @.str.8 .asciz "send" l_.str.9: ; @.str.9 .asciz "readfail\n" l_.str.10: ; @.str.10 .asciz "disconnected" l_.str.11: ; @.str.11 .asciz "GET /path/file.html HTTP/1.1\r\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $9248, %eax ## imm = 0x2420 callq ____chkstk_darwin subq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -9140(%rbp) movl %edi, -9144(%rbp) movq %rsi, -9152(%rbp) cmpl $2, -9144(%rbp) je LBB0_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB0_2: leaq -9208(%rbp), %rdi xorl %esi, %esi movl $48, %edx callq _memset movl $0, -9204(%rbp) movl $1, -9200(%rbp) movq -9152(%rbp), %rax movq 8(%rax), %rdi leaq L_.str.1(%rip), %rsi leaq -9208(%rbp), %rdx leaq -9216(%rbp), %rcx callq _getaddrinfo movl %eax, -9228(%rbp) cmpl $0, %eax je LBB0_4 ## %bb.3: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -9240(%rbp) ## 8-byte Spill movl -9228(%rbp), %edi callq _gai_strerror movq -9240(%rbp), %rdi ## 8-byte Reload movq %rax, %rdx leaq L_.str.2(%rip), %rsi movb $0, %al callq _fprintf movl $1, -9140(%rbp) jmp LBB0_29 LBB0_4: movq -9216(%rbp), %rax movq %rax, -9224(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 cmpq $0, -9224(%rbp) je LBB0_12 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movq -9224(%rbp), %rax movl 4(%rax), %edi movq -9224(%rbp), %rax movl 8(%rax), %esi movq -9224(%rbp), %rax movl 12(%rax), %edx callq _socket movl %eax, -9156(%rbp) cmpl $-1, %eax jne LBB0_8 ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 leaq L_.str.3(%rip), %rdi callq _perror jmp LBB0_11 LBB0_8: ## in Loop: Header=BB0_5 Depth=1 movl -9156(%rbp), %edi movq -9224(%rbp), %rax movq 32(%rax), %rsi movq -9224(%rbp), %rax movl 16(%rax), %edx callq _connect cmpl $-1, %eax jne LBB0_10 ## %bb.9: ## in Loop: Header=BB0_5 Depth=1 movl -9156(%rbp), %edi callq _close leaq L_.str.4(%rip), %rdi callq _perror jmp LBB0_11 LBB0_10: jmp LBB0_12 LBB0_11: ## in Loop: Header=BB0_5 Depth=1 movq -9224(%rbp), %rax movq 40(%rax), %rax movq %rax, -9224(%rbp) jmp LBB0_5 LBB0_12: cmpq $0, -9224(%rbp) jne LBB0_14 ## %bb.13: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.5(%rip), %rsi movb $0, %al callq _fprintf movl $2, -9140(%rbp) jmp LBB0_29 LBB0_14: movq -9216(%rbp), %rdi callq _freeaddrinfo leaq -9136(%rbp), %rdi xorl %esi, %esi movl $1024, %edx ## imm = 0x400 leaq L_.str.6(%rip), %rcx movb $0, %al callq ___sprintf_chk leaq -9136(%rbp), %rsi leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf movl -9156(%rbp), %edi leaq -9136(%rbp), %rsi movl $1024, %edx ## imm = 0x400 xorl %ecx, %ecx callq _send cmpq $-1, %rax jne LBB0_16 ## %bb.15: leaq L_.str.8(%rip), %rdi callq _perror LBB0_16: movl -9156(%rbp), %edi leaq -8112(%rbp), %rsi movl $8095, %edx ## imm = 0x1F9F xorl %ecx, %ecx callq _recv ## kill: def $eax killed $eax killed $rax movl %eax, -9232(%rbp) leaq -8112(%rbp), %rsi leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf cmpl $-1, -9232(%rbp) jne LBB0_18 ## %bb.17: leaq L_.str.9(%rip), %rdi callq _perror jmp LBB0_21 LBB0_18: cmpl $0, -9232(%rbp) jne LBB0_20 ## %bb.19: leaq L_.str.10(%rip), %rdi callq _perror movl -9156(%rbp), %edi callq _close xorl %edi, %edi callq _exit LBB0_20: jmp LBB0_21 LBB0_21: leaq -9136(%rbp), %rdi xorl %esi, %esi movl $1024, %edx ## imm = 0x400 leaq L_.str.11(%rip), %rcx movb $0, %al callq ___sprintf_chk leaq -9136(%rbp), %rsi leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf movl -9156(%rbp), %edi leaq -9136(%rbp), %rsi movl $1024, %edx ## imm = 0x400 xorl %ecx, %ecx callq _send cmpq $-1, %rax jne LBB0_23 ## %bb.22: leaq L_.str.8(%rip), %rdi callq _perror LBB0_23: movl -9156(%rbp), %edi leaq -8112(%rbp), %rsi movl $8095, %edx ## imm = 0x1F9F xorl %ecx, %ecx callq _recv ## kill: def $eax killed $eax killed $rax movl %eax, -9232(%rbp) leaq -8112(%rbp), %rsi leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf cmpl $-1, -9232(%rbp) jne LBB0_25 ## %bb.24: leaq L_.str.9(%rip), %rdi callq _perror jmp LBB0_28 LBB0_25: cmpl $0, -9232(%rbp) jne LBB0_27 ## %bb.26: leaq L_.str.10(%rip), %rdi callq _perror movl -9156(%rbp), %edi callq _close xorl %edi, %edi callq _exit LBB0_27: jmp LBB0_28 LBB0_28: movl -9156(%rbp), %edi callq _close movl $0, -9140(%rbp) LBB0_29: movl -9140(%rbp), %eax movl %eax, -9244(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_31 ## %bb.30: movl -9244(%rbp), %eax ## 4-byte Reload addq $9248, %rsp ## imm = 0x2420 popq %rbp retq LBB0_31: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "usage: client hostname\n" L_.str.1: ## @.str.1 .asciz "8080" L_.str.2: ## @.str.2 .asciz "getaddrinfo: %s\n" L_.str.3: ## @.str.3 .asciz "client: socket" L_.str.4: ## @.str.4 .asciz "client: connect" L_.str.5: ## @.str.5 .asciz "client: failed to connect\n" L_.str.6: ## @.str.6 .asciz "GET /index.html HTTP/1.1\r\n" L_.str.7: ## @.str.7 .asciz "%s\n" L_.str.8: ## @.str.8 .asciz "send" L_.str.9: ## @.str.9 .asciz "readfail\n" L_.str.10: ## @.str.10 .asciz "disconnected" L_.str.11: ## @.str.11 .asciz "GET /path/file.html HTTP/1.1\r\n" .subsections_via_symbols
the_stack_data/70449049.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function random lCPI0_0: .quad 0x3dffffff9b574dbc ; double 4.6566119999999999E-10 .section __TEXT,__text,regular,pure_instructions .globl _random .p2align 2 _random: ; @random .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str x1, [sp] ldr x8, [sp, #8] ldr x8, [x8] mov x9, #63149 movk x9, #12867, lsl #16 mul x8, x8, x9 mov x9, #45429 movk x9, #6924, lsl #16 add x8, x8, x9 ldr x9, [sp, #8] str x8, [x9] ldr x8, [sp, #8] ldr x8, [x8] subs x8, x8, #0 cset w8, ge tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr x8, [sp, #8] ldr x8, [x8] mov x9, #2147483647 add x8, x8, x9 ldr x9, [sp, #8] str x8, [x9] ldr x8, [sp, #8] ldr x8, [x8] add x8, x8, #1 ldr x9, [sp, #8] str x8, [x9] b LBB0_2 LBB0_2: ldr x8, [sp, #8] ldr d0, [x8] scvtf d0, d0 adrp x8, lCPI0_0@PAGE ldr d1, [x8, lCPI0_0@PAGEOFF] fmul d0, d0, d1 fcvt s0, d0 ldr x8, [sp] str s0, [x8] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _print_p ; -- Begin function print_p .p2align 2 _print_p: ; @print_p .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _OUT_P@GOTPAGE ldr x8, [x8, _OUT_P@GOTPAGEOFF] str x8, [sp, #8] ; 8-byte Folded Spill stur w0, [x29, #-4] stur s0, [x29, #-8] ldur w8, [x29, #-4] mov w10, #5 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 str w8, [sp, #16] ldr w8, [sp, #16] subs w8, w8, #4 cset w8, ne tbnz w8, #0, LBB1_6 b LBB1_1 LBB1_1: ldr x8, [sp, #8] ; 8-byte Folded Reload ldur s0, [x29, #-8] ldrsw x9, [sp, #16] str s0, [x8, x9, lsl #2] stur wzr, [x29, #-12] b LBB1_2 LBB1_2: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] subs w8, w8, #4 cset w8, gt tbnz w8, #0, LBB1_5 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_2 Depth=1 ldr x8, [sp, #8] ; 8-byte Folded Reload adrp x9, _output@GOTPAGE ldr x9, [x9, _output@GOTPAGEOFF] ldr x0, [x9] ldursw x9, [x29, #-12] ldr s0, [x8, x9, lsl #2] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fprintf b LBB1_4 LBB1_4: ; in Loop: Header=BB1_2 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB1_2 LBB1_5: adrp x8, _output@GOTPAGE ldr x8, [x8, _output@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fprintf b LBB1_7 LBB1_6: ldr x8, [sp, #8] ; 8-byte Folded Reload ldur s0, [x29, #-8] ldrsw x9, [sp, #16] str s0, [x8, x9, lsl #2] b LBB1_7 LBB1_7: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function freq lCPI2_0: .quad 0x3fc999999999999a ; double 0.20000000000000001 .section __TEXT,__text,regular,pure_instructions .globl _freq .p2align 2 _freq: ; @freq .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str s0, [sp, #12] movi d0, #0000000000000000 str s0, [sp, #8] mov w8, #52429 movk w8, #15948, lsl #16 fmov s0, w8 str s0, [sp, #4] str wzr, [sp] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB2_7 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr s0, [sp, #8] ldr s1, [sp, #12] fcmp s0, s1 cset w8, hi tbnz w8, #0, LBB2_5 b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldr s0, [sp, #12] ldr s1, [sp, #4] fcmp s0, s1 cset w8, pl tbnz w8, #0, LBB2_5 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_1 Depth=1 ldrsw x8, [sp] adrp x9, _COUNT@GOTPAGE ldr x9, [x9, _COUNT@GOTPAGEOFF] ldr w8, [x9, x8, lsl #2] add w8, w8, #1 ldrsw x10, [sp] str w8, [x9, x10, lsl #2] b LBB2_5 LBB2_5: ; in Loop: Header=BB2_1 Depth=1 ldr s0, [sp, #8] fcvt d0, s0 adrp x8, lCPI2_0@PAGE ldr d1, [x8, lCPI2_0@PAGEOFF] fadd d0, d0, d1 fcvt s0, d0 str s0, [sp, #8] ldr s0, [sp, #4] fcvt d0, s0 fadd d0, d0, d1 fcvt s0, d0 str s0, [sp, #4] b LBB2_6 LBB2_6: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp] add w8, w8, #1 str w8, [sp] b LBB2_1 LBB2_7: add sp, sp, #16 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function report lCPI3_0: .quad 0x3fc999999999999a ; double 0.20000000000000001 .section __TEXT,__text,regular,pure_instructions .globl _report .p2align 2 _report: ; @report .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 movi d0, #0000000000000000 stur s0, [x29, #-4] mov w8, #52429 movk w8, #15948, lsl #16 fmov s0, w8 stur s0, [x29, #-8] adrp x8, _output@GOTPAGE ldr x8, [x8, _output@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fprintf stur wzr, [x29, #-12] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB3_4 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 adrp x8, _output@GOTPAGE ldr x8, [x8, _output@GOTPAGEOFF] ldr x0, [x8] ldur s0, [x29, #-4] fcvt d1, s0 ldur s0, [x29, #-8] fcvt d0, s0 ldursw x9, [x29, #-12] adrp x8, _COUNT@GOTPAGE ldr x8, [x8, _COUNT@GOTPAGEOFF] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str d1, [x9] str d0, [x9, #8] str x8, [x9, #16] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fprintf ldur s0, [x29, #-4] fcvt d0, s0 adrp x8, lCPI3_0@PAGE ldr d1, [x8, lCPI3_0@PAGEOFF] fadd d0, d0, d1 fcvt s0, d0 stur s0, [x29, #-4] ldur s0, [x29, #-8] fcvt d0, s0 fadd d0, d0, d1 fcvt s0, d0 stur s0, [x29, #-8] b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB3_1 LBB3_4: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _output@GOTPAGE ldr x8, [x8, _output@GOTPAGEOFF] str x8, [sp] ; 8-byte Folded Spill mov x8, #9965 str x8, [sp, #16] movi d0, #0000000000000000 str s0, [sp, #12] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _fopen ldr x8, [sp] ; 8-byte Folded Reload str x0, [x8] ldr x0, [x8] adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _fprintf stur wzr, [x29, #-4] b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-4] subs w8, w8, #5 cset w8, ge tbnz w8, #0, LBB4_4 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 ldursw x10, [x29, #-4] adrp x9, _COUNT@GOTPAGE ldr x9, [x9, _COUNT@GOTPAGEOFF] mov w8, #0 str w8, [x9, x10, lsl #2] b LBB4_3 LBB4_3: ; in Loop: Header=BB4_1 Depth=1 ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB4_1 LBB4_4: stur wzr, [x29, #-4] b LBB4_5 LBB4_5: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-4] mov w9, #5000 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_7 b LBB4_6 LBB4_6: ; in Loop: Header=BB4_5 Depth=1 add x0, sp, #16 add x1, sp, #12 bl _random ldur w0, [x29, #-4] ldr s0, [sp, #12] bl _print_p ldr s0, [sp, #12] bl _freq ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB4_5 LBB4_7: bl _report ldr x8, [sp] ; 8-byte Folded Reload ldr x0, [x8] bl _fclose ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .comm _OUT_P,20,2 ; @OUT_P .comm _output,8,3 ; @output .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz " %f " l_.str.1: ; @.str.1 .asciz "\n" .comm _COUNT,20,2 ; @COUNT l_.str.2: ; @.str.2 .asciz "\n THE RREQUENCE TABLE\n\n" l_.str.3: ; @.str.3 .asciz " %4.2f - %4.2f = %4d\n" l_.str.4: ; @.str.4 .asciz "c:\\work\\ex1-3.out" l_.str.5: ; @.str.5 .asciz "wt" l_.str.6: ; @.str.6 .asciz " THE RANDOM NUMBER TEST OUTPUT\n\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function random LCPI0_0: .quad 0x3dffffff9b574dbc ## double 4.6566119999999999E-10 .section __TEXT,__text,regular,pure_instructions .globl _random .p2align 4, 0x90 _random: ## @random .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rax imulq $843314861, (%rax), %rcx ## imm = 0x3243F6AD addq $453816693, %rcx ## imm = 0x1B0CB175 movq -8(%rbp), %rax movq %rcx, (%rax) movq -8(%rbp), %rax cmpq $0, (%rax) jge LBB0_2 ## %bb.1: movq -8(%rbp), %rax movq (%rax), %rcx addq $2147483647, %rcx ## imm = 0x7FFFFFFF movq -8(%rbp), %rax movq %rcx, (%rax) movq -8(%rbp), %rax movq (%rax), %rcx addq $1, %rcx movq -8(%rbp), %rax movq %rcx, (%rax) LBB0_2: movq -8(%rbp), %rax cvtsi2sdq (%rax), %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero mulsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movq -16(%rbp), %rax movss %xmm0, (%rax) popq %rbp retq .cfi_endproc ## -- End function .globl _print_p ## -- Begin function print_p .p2align 4, 0x90 _print_p: ## @print_p .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movss %xmm0, -8(%rbp) movl -4(%rbp), %eax movl $5, %ecx cltd idivl %ecx movl %edx, -16(%rbp) cmpl $4, -16(%rbp) jne LBB1_6 ## %bb.1: movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movslq -16(%rbp), %rcx movq _OUT_P@GOTPCREL(%rip), %rax movss %xmm0, (%rax,%rcx,4) movl $0, -12(%rbp) LBB1_2: ## =>This Inner Loop Header: Depth=1 cmpl $4, -12(%rbp) jg LBB1_5 ## %bb.3: ## in Loop: Header=BB1_2 Depth=1 movq _output@GOTPCREL(%rip), %rax movq (%rax), %rdi movslq -12(%rbp), %rcx movq _OUT_P@GOTPCREL(%rip), %rax movss (%rax,%rcx,4), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str(%rip), %rsi movb $1, %al callq _fprintf ## %bb.4: ## in Loop: Header=BB1_2 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB1_2 LBB1_5: movq _output@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.1(%rip), %rsi movb $0, %al callq _fprintf jmp LBB1_7 LBB1_6: movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movslq -16(%rbp), %rcx movq _OUT_P@GOTPCREL(%rip), %rax movss %xmm0, (%rax,%rcx,4) LBB1_7: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function freq LCPI2_0: .long 0x3e4ccccd ## float 0.200000003 .section __TEXT,__literal8,8byte_literals .p2align 3 LCPI2_1: .quad 0x3fc999999999999a ## double 0.20000000000000001 .section __TEXT,__text,regular,pure_instructions .globl _freq .p2align 4, 0x90 _freq: ## @freq .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movss %xmm0, -4(%rbp) xorps %xmm0, %xmm0 movss %xmm0, -8(%rbp) movss LCPI2_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -12(%rbp) movl $0, -16(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 cmpl $5, -16(%rbp) jge LBB2_7 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movss -8(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero ucomiss %xmm1, %xmm0 jb LBB2_5 ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movss -4(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero ucomiss %xmm1, %xmm0 jbe LBB2_5 ## %bb.4: ## in Loop: Header=BB2_1 Depth=1 movslq -16(%rbp), %rcx movq _COUNT@GOTPCREL(%rip), %rax movl (%rax,%rcx,4), %edx addl $1, %edx movslq -16(%rbp), %rcx movq _COUNT@GOTPCREL(%rip), %rax movl %edx, (%rax,%rcx,4) LBB2_5: ## in Loop: Header=BB2_1 Depth=1 movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI2_1(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -8(%rbp) movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI2_1(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -12(%rbp) ## %bb.6: ## in Loop: Header=BB2_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB2_1 LBB2_7: popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function report LCPI3_0: .long 0x3e4ccccd ## float 0.200000003 .section __TEXT,__literal8,8byte_literals .p2align 3 LCPI3_1: .quad 0x3fc999999999999a ## double 0.20000000000000001 .section __TEXT,__text,regular,pure_instructions .globl _report .p2align 4, 0x90 _report: ## @report .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp xorps %xmm0, %xmm0 movss %xmm0, -4(%rbp) movss LCPI3_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -8(%rbp) movq _output@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.2(%rip), %rsi movb $0, %al callq _fprintf movl $0, -12(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 cmpl $5, -12(%rbp) jge LBB3_4 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movq _output@GOTPCREL(%rip), %rax movq (%rax), %rdi movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movss -8(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero cvtss2sd %xmm1, %xmm1 movslq -12(%rbp), %rcx movq _COUNT@GOTPCREL(%rip), %rax movl (%rax,%rcx,4), %edx leaq L_.str.3(%rip), %rsi movb $2, %al callq _fprintf movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI3_1(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -4(%rbp) movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI3_1(%rip), %xmm1 ## xmm1 = mem[0],zero addsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -8(%rbp) ## %bb.3: ## in Loop: Header=BB3_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB3_1 LBB3_4: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq $9965, -16(%rbp) ## imm = 0x26ED xorps %xmm0, %xmm0 movss %xmm0, -20(%rbp) leaq L_.str.4(%rip), %rdi leaq L_.str.5(%rip), %rsi callq _fopen movq %rax, %rcx movq _output@GOTPCREL(%rip), %rax movq %rcx, (%rax) movq _output@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.6(%rip), %rsi movb $0, %al callq _fprintf movl $0, -4(%rbp) LBB4_1: ## =>This Inner Loop Header: Depth=1 cmpl $5, -4(%rbp) jge LBB4_4 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 movslq -4(%rbp), %rcx movq _COUNT@GOTPCREL(%rip), %rax movl $0, (%rax,%rcx,4) ## %bb.3: ## in Loop: Header=BB4_1 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB4_1 LBB4_4: movl $0, -4(%rbp) LBB4_5: ## =>This Inner Loop Header: Depth=1 cmpl $5000, -4(%rbp) ## imm = 0x1388 jge LBB4_7 ## %bb.6: ## in Loop: Header=BB4_5 Depth=1 leaq -16(%rbp), %rdi leaq -20(%rbp), %rsi callq _random movl -4(%rbp), %edi movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero callq _print_p movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero callq _freq movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB4_5 LBB4_7: callq _report movq _output@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _fclose addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .comm _OUT_P,20,4 ## @OUT_P .comm _output,8,3 ## @output .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz " %f " L_.str.1: ## @.str.1 .asciz "\n" .comm _COUNT,20,4 ## @COUNT L_.str.2: ## @.str.2 .asciz "\n THE RREQUENCE TABLE\n\n" L_.str.3: ## @.str.3 .asciz " %4.2f - %4.2f = %4d\n" L_.str.4: ## @.str.4 .asciz "c:\\work\\ex1-3.out" L_.str.5: ## @.str.5 .asciz "wt" L_.str.6: ## @.str.6 .asciz " THE RANDOM NUMBER TEST OUTPUT\n\n" .subsections_via_symbols
the_stack_data/92328372.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _pass_valor ; -- Begin function pass_valor .p2align 2 _pass_valor: ; @pass_valor .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str s0, [sp, #8] mov w8, #10 str w8, [sp, #12] mov w8, #39322 movk w8, #16673, lsl #16 fmov s0, w8 str s0, [sp, #8] mov w0, #0 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _pass_valor2 ; -- Begin function pass_valor2 .p2align 2 _pass_valor2: ; @pass_valor2 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str x1, [sp] ldr x9, [sp, #8] mov w8, #10 str w8, [x9] ldr x8, [sp] mov w9, #39322 movk w9, #16673, lsl #16 fmov s0, w9 str s0, [x8] mov w0, #0 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-28] stur w0, [x29, #-32] stur x1, [x29, #-40] adrp x9, l___const.main.valor@PAGE add x9, x9, l___const.main.valor@PAGEOFF ldr x10, [x9] sub x8, x29, #24 stur x10, [x29, #-24] ldr w9, [x9, #8] stur w9, [x29, #-16] ; kill: def $x9 killed $xzr str xzr, [sp, #48] str x8, [sp, #48] ldr x8, [sp, #48] add x9, x8, #4 str x9, [sp, #48] ldr w8, [x8, #4] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB2_2 LBB2_2: sub x8, x29, #24 str x8, [sp, #48] ldr x8, [sp, #48] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldr x8, [sp, #48] add x9, x8, #4 str x9, [sp, #48] ldr w8, [x8] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB2_4 LBB2_4: add x8, sp, #44 str x8, [sp, #16] ; 8-byte Folded Spill mov w8, #5 str w8, [sp, #44] add x8, sp, #40 str x8, [sp, #8] ; 8-byte Folded Spill mov w8, #13107 movk w8, #16547, lsl #16 fmov s0, w8 str s0, [sp, #40] ldr w0, [sp, #44] ldr s0, [sp, #40] bl _pass_valor ldr w9, [sp, #44] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF str x0, [sp, #24] ; 8-byte Folded Spill bl _printf ldr s0, [sp, #40] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF str x0, [sp, #32] ; 8-byte Folded Spill bl _printf ldr x1, [sp, #8] ; 8-byte Folded Reload ldr x0, [sp, #16] ; 8-byte Folded Reload bl _pass_valor2 ldr x0, [sp, #24] ; 8-byte Folded Reload ldr w9, [sp, #44] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] bl _printf ldr x0, [sp, #32] ; 8-byte Folded Reload ldr s0, [sp, #40] fcvt d0, s0 mov x8, sp str d0, [x8] bl _printf ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB2_6 b LBB2_5 LBB2_5: bl ___stack_chk_fail LBB2_6: mov w0, #0 ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .section __TEXT,__const .p2align 2 ; @__const.main.valor l___const.main.valor: .long 10 ; 0xa .long 20 ; 0x14 .long 30 ; 0x1e .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "OK (1)\n" l_.str.1: ; @.str.1 .asciz "%d\n" l_.str.2: ; @.str.2 .asciz "OK (2)\n" l_.str.3: ; @.str.3 .asciz "%f\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function pass_valor LCPI0_0: .long 0x4121999a ## float 10.1000004 .section __TEXT,__text,regular,pure_instructions .globl _pass_valor .p2align 4, 0x90 _pass_valor: ## @pass_valor .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movss %xmm0, -8(%rbp) movl $10, -4(%rbp) movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -8(%rbp) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function pass_valor2 LCPI1_0: .long 0x4121999a ## float 10.1000004 .section __TEXT,__text,regular,pure_instructions .globl _pass_valor2 .p2align 4, 0x90 _pass_valor2: ## @pass_valor2 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rax movl $10, (%rax) movq -16(%rbp), %rax movss LCPI1_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, (%rax) xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function main LCPI2_0: .long 0x40a33333 ## float 5.0999999 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -24(%rbp) movl %edi, -28(%rbp) movq %rsi, -40(%rbp) movq l___const.main.valor(%rip), %rax movq %rax, -20(%rbp) movl l___const.main.valor+8(%rip), %eax movl %eax, -12(%rbp) movq $0, -48(%rbp) leaq -20(%rbp), %rax movq %rax, -48(%rbp) movq -48(%rbp), %rax movq %rax, %rcx addq $4, %rcx movq %rcx, -48(%rbp) movl 4(%rax), %eax cmpl -16(%rbp), %eax jne LBB2_2 ## %bb.1: leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB2_2: leaq -20(%rbp), %rax movq %rax, -48(%rbp) movq -48(%rbp), %rax movl (%rax), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movq -48(%rbp), %rax movq %rax, %rcx addq $4, %rcx movq %rcx, -48(%rbp) movl (%rax), %eax cmpl -16(%rbp), %eax jne LBB2_4 ## %bb.3: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB2_4: movl $5, -52(%rbp) movss LCPI2_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -56(%rbp) movl -52(%rbp), %edi movss -56(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero callq _pass_valor movl -52(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movss -56(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.3(%rip), %rdi movb $1, %al callq _printf leaq -52(%rbp), %rdi leaq -56(%rbp), %rsi callq _pass_valor2 movl -52(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movss -56(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.3(%rip), %rdi movb $1, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_6 ## %bb.5: xorl %eax, %eax addq $64, %rsp popq %rbp retq LBB2_6: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__const .p2align 2 ## @__const.main.valor l___const.main.valor: .long 10 ## 0xa .long 20 ## 0x14 .long 30 ## 0x1e .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "OK (1)\n" L_.str.1: ## @.str.1 .asciz "%d\n" L_.str.2: ## @.str.2 .asciz "OK (2)\n" L_.str.3: ## @.str.3 .asciz "%f\n" .subsections_via_symbols
the_stack_data/181392334.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function main lCPI0_0: .quad 0x4066800000000000 ; double 180 lCPI0_1: .quad 0x400921fb544486e0 ; double 3.1415926536000001 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #160 .cfi_def_cfa_offset 160 stp x29, x30, [sp, #144] ; 16-byte Folded Spill add x29, sp, #144 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 mov x9, sp sub x8, x29, #40 str x8, [x9] sub x8, x29, #48 str x8, [x9, #8] sub x8, x29, #56 str x8, [x9, #16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur d0, [x29, #-40] str d0, [sp, #32] ; 8-byte Folded Spill ldur d0, [x29, #-48] adrp x8, lCPI0_1@PAGE ldr d1, [x8, lCPI0_1@PAGEOFF] str d1, [sp, #56] ; 8-byte Folded Spill fmul d0, d0, d1 adrp x8, lCPI0_0@PAGE ldr d1, [x8, lCPI0_0@PAGEOFF] str d1, [sp, #64] ; 8-byte Folded Spill fdiv d0, d0, d1 bl _sin ldr d2, [sp, #56] ; 8-byte Folded Reload ldr d1, [sp, #64] ; 8-byte Folded Reload fmov d3, d0 ldr d0, [sp, #32] ; 8-byte Folded Reload fmul d0, d0, d3 str d0, [sp, #40] ; 8-byte Folded Spill ldur d0, [x29, #-56] fmul d0, d0, d2 fdiv d0, d0, d1 bl _cos ldr d2, [sp, #56] ; 8-byte Folded Reload ldr d1, [sp, #64] ; 8-byte Folded Reload fmov d3, d0 ldr d0, [sp, #40] ; 8-byte Folded Reload fmul d0, d0, d3 stur d0, [x29, #-16] ldur d0, [x29, #-40] str d0, [sp, #48] ; 8-byte Folded Spill ldur d0, [x29, #-48] fmul d0, d0, d2 fdiv d0, d0, d1 bl _sin ldr d2, [sp, #56] ; 8-byte Folded Reload ldr d1, [sp, #64] ; 8-byte Folded Reload fmov d3, d0 ldr d0, [sp, #48] ; 8-byte Folded Reload fmul d0, d0, d3 str d0, [sp, #72] ; 8-byte Folded Spill ldur d0, [x29, #-56] fmul d0, d0, d2 fdiv d0, d0, d1 bl _sin ldr d2, [sp, #56] ; 8-byte Folded Reload ldr d1, [sp, #64] ; 8-byte Folded Reload fmov d3, d0 ldr d0, [sp, #72] ; 8-byte Folded Reload fmul d0, d0, d3 stur d0, [x29, #-24] ldur d0, [x29, #-40] stur d0, [x29, #-64] ; 8-byte Folded Spill ldur d0, [x29, #-48] fmul d0, d0, d2 fdiv d0, d0, d1 bl _cos fmov d1, d0 ldur d0, [x29, #-64] ; 8-byte Folded Reload fmul d0, d0, d1 stur d0, [x29, #-32] ldur d2, [x29, #-16] ldur d1, [x29, #-24] ldur d0, [x29, #-32] mov x8, sp str d2, [x8] str d1, [x8, #8] str d0, [x8, #16] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_1 LBB0_3: mov w0, #0 ldp x29, x30, [sp, #144] ; 16-byte Folded Reload add sp, sp, #160 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%lf %lf %lf" l_.str.1: ; @.str.1 .asciz "x = %.10f y = %.10f z = %.10f\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function main LCPI0_0: .quad 0x4066800000000000 ## double 180 LCPI0_1: .quad 0x400921fb544486e0 ## double 3.1415926536000001 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movl $0, -4(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 leaq L_.str(%rip), %rdi leaq -40(%rbp), %rsi leaq -48(%rbp), %rdx leaq -56(%rbp), %rcx movb $0, %al callq _scanf cmpl $-1, %eax je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -96(%rbp) ## 8-byte Spill movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -48(%rbp), %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 callq _sin movaps %xmm0, %xmm1 movsd -96(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 movsd %xmm0, -88(%rbp) ## 8-byte Spill movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -56(%rbp), %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 callq _cos movaps %xmm0, %xmm1 movsd -88(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 movsd %xmm0, -16(%rbp) movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -80(%rbp) ## 8-byte Spill movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -48(%rbp), %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 callq _sin movaps %xmm0, %xmm1 movsd -80(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 movsd %xmm0, -72(%rbp) ## 8-byte Spill movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -56(%rbp), %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 callq _sin movaps %xmm0, %xmm1 movsd -72(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 movsd %xmm0, -24(%rbp) movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -64(%rbp) ## 8-byte Spill movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -48(%rbp), %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 callq _cos movaps %xmm0, %xmm1 movsd -64(%rbp), %xmm0 ## 8-byte Reload ## xmm0 = mem[0],zero mulsd %xmm1, %xmm0 movsd %xmm0, -32(%rbp) movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -24(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -32(%rbp), %xmm2 ## xmm2 = mem[0],zero leaq L_.str.1(%rip), %rdi movb $3, %al callq _printf jmp LBB0_1 LBB0_3: xorl %eax, %eax addq $96, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%lf %lf %lf" L_.str.1: ## @.str.1 .asciz "x = %.10f y = %.10f z = %.10f\n" .subsections_via_symbols
the_stack_data/179831879.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _insertNode ; -- Begin function insertNode .p2align 2 _insertNode: ; @insertNode .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] str w1, [sp, #4] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr w0, [sp, #4] bl _createNode str x0, [sp, #8] b LBB0_6 LBB0_2: ldr w8, [sp, #4] ldr x9, [sp, #8] ldr w9, [x9] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldr x8, [sp, #8] ldr x0, [x8, #8] ldr w1, [sp, #4] bl _insertNode ldr x8, [sp, #8] str x0, [x8, #8] b LBB0_5 LBB0_4: ldr x8, [sp, #8] ldr x0, [x8, #16] ldr w1, [sp, #4] bl _insertNode ldr x8, [sp, #8] str x0, [x8, #16] b LBB0_5 LBB0_5: b LBB0_6 LBB0_6: ldr x0, [sp, #8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _createNode ; -- Begin function createNode .p2align 2 _createNode: ; @createNode .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] mov x0, #24 bl _malloc str x0, [sp] ldur w8, [x29, #-4] ldr x9, [sp] str w8, [x9] ldr x8, [sp] ; kill: def $x9 killed $xzr str xzr, [x8, #8] ldr x8, [sp] str xzr, [x8, #16] ldr x0, [sp] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _insertNode_Iterative ; -- Begin function insertNode_Iterative .p2align 2 _insertNode_Iterative: ; @insertNode_Iterative .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur w1, [x29, #-20] ldur w0, [x29, #-20] bl _createNode str x0, [sp, #16] ldur x8, [x29, #-16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: ldr x8, [sp, #16] stur x8, [x29, #-8] b LBB2_13 LBB2_2: ldur x8, [x29, #-16] str x8, [sp, #8] ; kill: def $x8 killed $xzr str xzr, [sp] b LBB2_3 LBB2_3: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB2_12 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_3 Depth=1 ldr x8, [sp, #8] str x8, [sp] ldr x8, [sp, #16] ldr w8, [x8] ldr x9, [sp, #8] ldr w9, [x9] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB2_8 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_3 Depth=1 ldr x8, [sp, #8] ldr x8, [x8, #8] str x8, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_7 b LBB2_6 LBB2_6: ; in Loop: Header=BB2_3 Depth=1 ldr x8, [sp, #16] ldr x9, [sp] str x8, [x9, #8] b LBB2_7 LBB2_7: ; in Loop: Header=BB2_3 Depth=1 b LBB2_11 LBB2_8: ; in Loop: Header=BB2_3 Depth=1 ldr x8, [sp, #8] ldr x8, [x8, #16] str x8, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_10 b LBB2_9 LBB2_9: ; in Loop: Header=BB2_3 Depth=1 ldr x8, [sp, #16] ldr x9, [sp] str x8, [x9, #16] b LBB2_10 LBB2_10: ; in Loop: Header=BB2_3 Depth=1 b LBB2_11 LBB2_11: ; in Loop: Header=BB2_3 Depth=1 b LBB2_3 LBB2_12: ldur x8, [x29, #-16] stur x8, [x29, #-8] b LBB2_13 LBB2_13: ldur x0, [x29, #-8] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _Search ; -- Begin function Search .p2align 2 _Search: ; @Search .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] str w1, [sp, #12] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: mov w8, #0 and w8, w8, #0x1 and w8, w8, #0x1 sturb w8, [x29, #-1] b LBB3_7 LBB3_2: ldr x8, [sp, #16] ldr w8, [x8] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: mov w8, #1 and w8, w8, #0x1 and w8, w8, #0x1 sturb w8, [x29, #-1] b LBB3_7 LBB3_4: ldr w8, [sp, #12] ldr x9, [sp, #16] ldr w9, [x9] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB3_6 b LBB3_5 LBB3_5: ldr x8, [sp, #16] ldr x0, [x8, #8] ldr w1, [sp, #12] bl _Search and w8, w0, #0x1 and w8, w8, #0x1 sturb w8, [x29, #-1] b LBB3_7 LBB3_6: ldr x8, [sp, #16] ldr x0, [x8, #16] ldr w1, [sp, #12] bl _Search and w8, w0, #0x1 and w8, w8, #0x1 sturb w8, [x29, #-1] b LBB3_7 LBB3_7: ldurb w8, [x29, #-1] and w0, w8, #0x1 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _Search_Iterative ; -- Begin function Search_Iterative .p2align 2 _Search_Iterative: ; @Search_Iterative .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] str w1, [sp, #12] ldr x8, [sp, #16] str x8, [sp] b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB4_9 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 ldr x8, [sp] ldr w8, [x8] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB4_4 b LBB4_3 LBB4_3: mov w8, #1 and w8, w8, #0x1 and w8, w8, #0x1 strb w8, [sp, #31] b LBB4_10 LBB4_4: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #12] ldr x9, [sp] ldr w9, [x9] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB4_6 b LBB4_5 LBB4_5: ; in Loop: Header=BB4_1 Depth=1 ldr x8, [sp] ldr x8, [x8, #8] str x8, [sp] b LBB4_7 LBB4_6: ; in Loop: Header=BB4_1 Depth=1 ldr x8, [sp] ldr x8, [x8, #16] str x8, [sp] b LBB4_7 LBB4_7: ; in Loop: Header=BB4_1 Depth=1 b LBB4_8 LBB4_8: ; in Loop: Header=BB4_1 Depth=1 b LBB4_1 LBB4_9: mov w8, #0 and w8, w8, #0x1 and w8, w8, #0x1 strb w8, [sp, #31] b LBB4_10 LBB4_10: ldrb w8, [sp, #31] and w0, w8, #0x1 add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _Delete ; -- Begin function Delete .p2align 2 _Delete: ; @Delete .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur w1, [x29, #-20] ldur x8, [x29, #-16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB5_2 b LBB5_1 LBB5_1: ldur x8, [x29, #-16] stur x8, [x29, #-8] b LBB5_21 LBB5_2: ldur w8, [x29, #-20] ldur x9, [x29, #-16] ldr w9, [x9] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB5_4 b LBB5_3 LBB5_3: ldur x8, [x29, #-16] ldr x0, [x8, #8] ldur w1, [x29, #-20] bl _Delete ldur x8, [x29, #-16] str x0, [x8, #8] b LBB5_19 LBB5_4: ldur w8, [x29, #-20] ldur x9, [x29, #-16] ldr w9, [x9] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB5_6 b LBB5_5 LBB5_5: ldur x8, [x29, #-16] ldr x0, [x8, #16] ldur w1, [x29, #-20] bl _Delete ldur x8, [x29, #-16] str x0, [x8, #16] b LBB5_18 LBB5_6: ldur x8, [x29, #-16] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB5_9 b LBB5_7 LBB5_7: ldur x8, [x29, #-16] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB5_9 b LBB5_8 LBB5_8: ldur x0, [x29, #-16] bl _free ; kill: def $x8 killed $xzr stur xzr, [x29, #-16] b LBB5_17 LBB5_9: ldur x8, [x29, #-16] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB5_11 b LBB5_10 LBB5_10: ldur x8, [x29, #-16] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB5_15 b LBB5_11 LBB5_11: ldur x8, [x29, #-16] str x8, [sp, #16] ldur x8, [x29, #-16] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB5_13 b LBB5_12 LBB5_12: ldur x8, [x29, #-16] ldr x8, [x8, #8] stur x8, [x29, #-16] b LBB5_14 LBB5_13: ldur x8, [x29, #-16] ldr x8, [x8, #16] stur x8, [x29, #-16] b LBB5_14 LBB5_14: ldr x0, [sp, #16] bl _free b LBB5_16 LBB5_15: ldur x8, [x29, #-16] ldr x0, [x8, #16] bl _FindMinimum str x0, [sp, #8] ldr x8, [sp, #8] ldr w8, [x8] ldur x9, [x29, #-16] str w8, [x9] ldur x8, [x29, #-16] ldr x0, [x8, #16] ldr x8, [sp, #8] ldr w1, [x8] bl _Delete ldur x8, [x29, #-16] str x0, [x8, #16] b LBB5_16 LBB5_16: b LBB5_17 LBB5_17: b LBB5_18 LBB5_18: b LBB5_19 LBB5_19: b LBB5_20 LBB5_20: ldur x8, [x29, #-16] stur x8, [x29, #-8] b LBB5_21 LBB5_21: ldur x0, [x29, #-8] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _FindMinimum ; -- Begin function FindMinimum .p2align 2 _FindMinimum: ; @FindMinimum .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] b LBB6_1 LBB6_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB6_3 b LBB6_2 LBB6_2: ; in Loop: Header=BB6_1 Depth=1 ldr x8, [sp, #8] ldr x8, [x8, #8] str x8, [sp, #8] b LBB6_1 LBB6_3: ldr x0, [sp, #8] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _Delete_2 ; -- Begin function Delete_2 .p2align 2 _Delete_2: ; @Delete_2 .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur w1, [x29, #-20] ldur x8, [x29, #-16] stur x8, [x29, #-32] ; kill: def $x8 killed $xzr str xzr, [sp, #40] b LBB7_1 LBB7_1: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-32] subs x8, x8, #0 cset w8, eq mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB7_3 b LBB7_2 LBB7_2: ; in Loop: Header=BB7_1 Depth=1 ldur x8, [x29, #-32] ldr w8, [x8] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, ne str w8, [sp, #12] ; 4-byte Folded Spill b LBB7_3 LBB7_3: ; in Loop: Header=BB7_1 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload tbz w8, #0, LBB7_8 b LBB7_4 LBB7_4: ; in Loop: Header=BB7_1 Depth=1 ldur x8, [x29, #-32] str x8, [sp, #40] ldur w8, [x29, #-20] ldur x9, [x29, #-32] ldr w9, [x9] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB7_6 b LBB7_5 LBB7_5: ; in Loop: Header=BB7_1 Depth=1 ldur x8, [x29, #-32] ldr x8, [x8, #8] stur x8, [x29, #-32] b LBB7_7 LBB7_6: ; in Loop: Header=BB7_1 Depth=1 ldur x8, [x29, #-32] ldr x8, [x8, #16] stur x8, [x29, #-32] b LBB7_7 LBB7_7: ; in Loop: Header=BB7_1 Depth=1 b LBB7_1 LBB7_8: ldur x8, [x29, #-32] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB7_10 b LBB7_9 LBB7_9: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur x8, [x29, #-16] stur x8, [x29, #-8] b LBB7_38 LBB7_10: ldur x8, [x29, #-32] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB7_18 b LBB7_11 LBB7_11: ldur x8, [x29, #-32] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB7_18 b LBB7_12 LBB7_12: ldr x8, [sp, #40] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB7_14 b LBB7_13 LBB7_13: ; kill: def $x8 killed $xzr stur xzr, [x29, #-8] b LBB7_38 LBB7_14: ldr x8, [sp, #40] ldr x8, [x8, #8] ldur x9, [x29, #-32] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB7_16 b LBB7_15 LBB7_15: ldr x8, [sp, #40] ; kill: def $x9 killed $xzr str xzr, [x8, #8] b LBB7_17 LBB7_16: ldr x8, [sp, #40] ; kill: def $x9 killed $xzr str xzr, [x8, #16] b LBB7_17 LBB7_17: ldur x0, [x29, #-32] bl _free b LBB7_37 LBB7_18: ldur x8, [x29, #-32] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB7_20 b LBB7_19 LBB7_19: ldur x8, [x29, #-32] ldr x8, [x8, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB7_29 b LBB7_20 LBB7_20: ldur x8, [x29, #-32] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB7_22 b LBB7_21 LBB7_21: ldur x8, [x29, #-32] ldr x8, [x8, #8] str x8, [sp] ; 8-byte Folded Spill b LBB7_23 LBB7_22: ldur x8, [x29, #-32] ldr x8, [x8, #16] str x8, [sp] ; 8-byte Folded Spill b LBB7_23 LBB7_23: ldr x8, [sp] ; 8-byte Folded Reload str x8, [sp, #32] ldr x8, [sp, #40] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB7_25 b LBB7_24 LBB7_24: ldr x8, [sp, #32] stur x8, [x29, #-8] b LBB7_38 LBB7_25: ldr x8, [sp, #40] ldr x8, [x8, #8] ldur x9, [x29, #-32] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB7_27 b LBB7_26 LBB7_26: ldr x8, [sp, #32] ldr x9, [sp, #40] str x8, [x9, #8] b LBB7_28 LBB7_27: ldr x8, [sp, #32] ldr x9, [sp, #40] str x8, [x9, #16] b LBB7_28 LBB7_28: b LBB7_36 LBB7_29: ldur x8, [x29, #-32] ldr x8, [x8, #16] str x8, [sp, #24] ; kill: def $x8 killed $xzr str xzr, [sp, #16] b LBB7_30 LBB7_30: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #24] ldr x8, [x8, #8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB7_32 b LBB7_31 LBB7_31: ; in Loop: Header=BB7_30 Depth=1 ldr x8, [sp, #24] str x8, [sp, #16] ldr x8, [sp, #24] ldr x8, [x8, #8] str x8, [sp, #24] b LBB7_30 LBB7_32: ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB7_34 b LBB7_33 LBB7_33: ldr x8, [sp, #24] ldr x8, [x8, #16] ldur x9, [x29, #-32] str x8, [x9, #16] b LBB7_35 LBB7_34: ldr x8, [sp, #24] ldr x8, [x8, #16] ldr x9, [sp, #16] str x8, [x9, #8] b LBB7_35 LBB7_35: ldr x8, [sp, #24] ldr w8, [x8] ldur x9, [x29, #-32] str w8, [x9] ldr x0, [sp, #24] bl _free b LBB7_36 LBB7_36: b LBB7_37 LBB7_37: ldur x8, [x29, #-16] stur x8, [x29, #-8] b LBB7_38 LBB7_38: ldur x0, [x29, #-8] ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] ; kill: def $x8 killed $xzr stur xzr, [x29, #-16] b LBB8_1 LBB8_1: ; =>This Inner Loop Header: Depth=1 adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov x9, sp sub x8, x29, #20 str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _scanf ldur w8, [x29, #-20] subs w8, w8, #1 ; kill: def $x8 killed $w8 str x8, [sp, #8] ; 8-byte Folded Spill subs x8, x8, #3 cset w8, hi tbnz w8, #0, LBB8_10 ; %bb.2: ; in Loop: Header=BB8_1 Depth=1 ldr x11, [sp, #8] ; 8-byte Folded Reload adrp x10, lJTI8_0@PAGE add x10, x10, lJTI8_0@PAGEOFF Ltmp2: adr x8, Ltmp2 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB8_3: ; in Loop: Header=BB8_1 Depth=1 adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf mov x9, sp add x8, sp, #24 str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _scanf ldur x0, [x29, #-16] ldr w1, [sp, #24] bl _insertNode stur x0, [x29, #-16] b LBB8_10 LBB8_4: ; in Loop: Header=BB8_1 Depth=1 adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf mov x9, sp add x8, sp, #20 str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _scanf ldur x0, [x29, #-16] ldr w1, [sp, #20] bl _Search_Iterative tbz w0, #0, LBB8_6 b LBB8_5 LBB8_5: ; in Loop: Header=BB8_1 Depth=1 adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf b LBB8_7 LBB8_6: ; in Loop: Header=BB8_1 Depth=1 adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf b LBB8_7 LBB8_7: ; in Loop: Header=BB8_1 Depth=1 b LBB8_10 LBB8_8: ; in Loop: Header=BB8_1 Depth=1 adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf mov x9, sp add x8, sp, #20 str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _scanf ldur x0, [x29, #-16] ldr w1, [sp, #20] bl _Delete stur x0, [x29, #-16] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf b LBB8_10 LBB8_9: ; in Loop: Header=BB8_1 Depth=1 adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf ldur x0, [x29, #-16] bl _inorder b LBB8_10 LBB8_10: ; in Loop: Header=BB8_1 Depth=1 b LBB8_11 LBB8_11: ; in Loop: Header=BB8_1 Depth=1 ldur w8, [x29, #-20] subs w8, w8, #5 cset w8, lt tbnz w8, #0, LBB8_1 b LBB8_12 LBB8_12: ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc .p2align 2 lJTI8_0: .long LBB8_3-Ltmp2 .long LBB8_4-Ltmp2 .long LBB8_8-Ltmp2 .long LBB8_9-Ltmp2 ; -- End function .globl _inorder ; -- Begin function inorder .p2align 2 _inorder: ; @inorder .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB9_2 b LBB9_1 LBB9_1: b LBB9_3 LBB9_2: ldr x8, [sp, #8] ldr x0, [x8, #8] bl _inorder ldr x8, [sp, #8] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf ldr x8, [sp, #8] ldr x0, [x8, #16] bl _inorder b LBB9_3 LBB9_3: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\nNode to be deleted does not exist in Tree\n" l_.str.1: ; @.str.1 .asciz "\n\n1.Insert\n2.Search\n3.Delete\n4.Display (Inorder)\n" l_.str.2: ; @.str.2 .asciz "Enter choice: " l_.str.3: ; @.str.3 .asciz "%d" l_.str.4: ; @.str.4 .asciz "\nEnter value to be inserted\n" l_.str.5: ; @.str.5 .asciz "\nEnter value to be searched\n" l_.str.6: ; @.str.6 .asciz "\nElement found " l_.str.7: ; @.str.7 .asciz "\nElement not found " l_.str.8: ; @.str.8 .asciz "\nEnter value to be deleted\n" l_.str.9: ; @.str.9 .asciz "\nElement deleted successfully (if it exists)" l_.str.10: ; @.str.10 .asciz "\nBinary Search Tree Inorder\n" l_.str.11: ; @.str.11 .asciz "%d " .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _insertNode ## -- Begin function insertNode .p2align 4, 0x90 _insertNode: ## @insertNode .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) cmpq $0, -8(%rbp) jne LBB0_2 ## %bb.1: movl -12(%rbp), %edi callq _createNode movq %rax, -8(%rbp) jmp LBB0_6 LBB0_2: movl -12(%rbp), %eax movq -8(%rbp), %rcx cmpl (%rcx), %eax jg LBB0_4 ## %bb.3: movq -8(%rbp), %rax movq 8(%rax), %rdi movl -12(%rbp), %esi callq _insertNode movq %rax, %rcx movq -8(%rbp), %rax movq %rcx, 8(%rax) jmp LBB0_5 LBB0_4: movq -8(%rbp), %rax movq 16(%rax), %rdi movl -12(%rbp), %esi callq _insertNode movq %rax, %rcx movq -8(%rbp), %rax movq %rcx, 16(%rax) LBB0_5: jmp LBB0_6 LBB0_6: movq -8(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _createNode ## -- Begin function createNode .p2align 4, 0x90 _createNode: ## @createNode .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movl $24, %edi callq _malloc movq %rax, -16(%rbp) movl -4(%rbp), %ecx movq -16(%rbp), %rax movl %ecx, (%rax) movq -16(%rbp), %rax movq $0, 8(%rax) movq -16(%rbp), %rax movq $0, 16(%rax) movq -16(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _insertNode_Iterative ## -- Begin function insertNode_Iterative .p2align 4, 0x90 _insertNode_Iterative: ## @insertNode_Iterative .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) movl -20(%rbp), %edi callq _createNode movq %rax, -32(%rbp) cmpq $0, -16(%rbp) jne LBB2_2 ## %bb.1: movq -32(%rbp), %rax movq %rax, -8(%rbp) jmp LBB2_13 LBB2_2: movq -16(%rbp), %rax movq %rax, -40(%rbp) movq $0, -48(%rbp) LBB2_3: ## =>This Inner Loop Header: Depth=1 cmpq $0, -40(%rbp) je LBB2_12 ## %bb.4: ## in Loop: Header=BB2_3 Depth=1 movq -40(%rbp), %rax movq %rax, -48(%rbp) movq -32(%rbp), %rax movl (%rax), %eax movq -40(%rbp), %rcx cmpl (%rcx), %eax jg LBB2_8 ## %bb.5: ## in Loop: Header=BB2_3 Depth=1 movq -40(%rbp), %rax movq 8(%rax), %rax movq %rax, -40(%rbp) cmpq $0, -40(%rbp) jne LBB2_7 ## %bb.6: ## in Loop: Header=BB2_3 Depth=1 movq -32(%rbp), %rcx movq -48(%rbp), %rax movq %rcx, 8(%rax) LBB2_7: ## in Loop: Header=BB2_3 Depth=1 jmp LBB2_11 LBB2_8: ## in Loop: Header=BB2_3 Depth=1 movq -40(%rbp), %rax movq 16(%rax), %rax movq %rax, -40(%rbp) cmpq $0, -40(%rbp) jne LBB2_10 ## %bb.9: ## in Loop: Header=BB2_3 Depth=1 movq -32(%rbp), %rcx movq -48(%rbp), %rax movq %rcx, 16(%rax) LBB2_10: ## in Loop: Header=BB2_3 Depth=1 jmp LBB2_11 LBB2_11: ## in Loop: Header=BB2_3 Depth=1 jmp LBB2_3 LBB2_12: movq -16(%rbp), %rax movq %rax, -8(%rbp) LBB2_13: movq -8(%rbp), %rax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _Search ## -- Begin function Search .p2align 4, 0x90 _Search: ## @Search .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) cmpq $0, -16(%rbp) jne LBB3_2 ## %bb.1: movb $0, -1(%rbp) jmp LBB3_7 LBB3_2: movq -16(%rbp), %rax movl (%rax), %eax cmpl -20(%rbp), %eax jne LBB3_4 ## %bb.3: movb $1, -1(%rbp) jmp LBB3_7 LBB3_4: movl -20(%rbp), %eax movq -16(%rbp), %rcx cmpl (%rcx), %eax jg LBB3_6 ## %bb.5: movq -16(%rbp), %rax movq 8(%rax), %rdi movl -20(%rbp), %esi callq _Search andb $1, %al movb %al, -1(%rbp) jmp LBB3_7 LBB3_6: movq -16(%rbp), %rax movq 16(%rax), %rdi movl -20(%rbp), %esi callq _Search andb $1, %al movb %al, -1(%rbp) LBB3_7: movb -1(%rbp), %al andb $1, %al movzbl %al, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _Search_Iterative ## -- Begin function Search_Iterative .p2align 4, 0x90 _Search_Iterative: ## @Search_Iterative .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) movq -16(%rbp), %rax movq %rax, -32(%rbp) LBB4_1: ## =>This Inner Loop Header: Depth=1 cmpq $0, -32(%rbp) je LBB4_9 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 movq -32(%rbp), %rax movl (%rax), %eax cmpl -20(%rbp), %eax jne LBB4_4 ## %bb.3: movb $1, -1(%rbp) jmp LBB4_10 LBB4_4: ## in Loop: Header=BB4_1 Depth=1 movl -20(%rbp), %eax movq -32(%rbp), %rcx cmpl (%rcx), %eax jg LBB4_6 ## %bb.5: ## in Loop: Header=BB4_1 Depth=1 movq -32(%rbp), %rax movq 8(%rax), %rax movq %rax, -32(%rbp) jmp LBB4_7 LBB4_6: ## in Loop: Header=BB4_1 Depth=1 movq -32(%rbp), %rax movq 16(%rax), %rax movq %rax, -32(%rbp) LBB4_7: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_8 LBB4_8: ## in Loop: Header=BB4_1 Depth=1 jmp LBB4_1 LBB4_9: movb $0, -1(%rbp) LBB4_10: movb -1(%rbp), %al andb $1, %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _Delete ## -- Begin function Delete .p2align 4, 0x90 _Delete: ## @Delete .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) cmpq $0, -16(%rbp) jne LBB5_2 ## %bb.1: movq -16(%rbp), %rax movq %rax, -8(%rbp) jmp LBB5_21 LBB5_2: movl -20(%rbp), %eax movq -16(%rbp), %rcx cmpl (%rcx), %eax jge LBB5_4 ## %bb.3: movq -16(%rbp), %rax movq 8(%rax), %rdi movl -20(%rbp), %esi callq _Delete movq %rax, %rcx movq -16(%rbp), %rax movq %rcx, 8(%rax) jmp LBB5_19 LBB5_4: movl -20(%rbp), %eax movq -16(%rbp), %rcx cmpl (%rcx), %eax jle LBB5_6 ## %bb.5: movq -16(%rbp), %rax movq 16(%rax), %rdi movl -20(%rbp), %esi callq _Delete movq %rax, %rcx movq -16(%rbp), %rax movq %rcx, 16(%rax) jmp LBB5_18 LBB5_6: movq -16(%rbp), %rax cmpq $0, 8(%rax) jne LBB5_9 ## %bb.7: movq -16(%rbp), %rax cmpq $0, 16(%rax) jne LBB5_9 ## %bb.8: movq -16(%rbp), %rdi callq _free movq $0, -16(%rbp) jmp LBB5_17 LBB5_9: movq -16(%rbp), %rax cmpq $0, 8(%rax) je LBB5_11 ## %bb.10: movq -16(%rbp), %rax cmpq $0, 16(%rax) jne LBB5_15 LBB5_11: movq -16(%rbp), %rax movq %rax, -32(%rbp) movq -16(%rbp), %rax cmpq $0, 8(%rax) je LBB5_13 ## %bb.12: movq -16(%rbp), %rax movq 8(%rax), %rax movq %rax, -16(%rbp) jmp LBB5_14 LBB5_13: movq -16(%rbp), %rax movq 16(%rax), %rax movq %rax, -16(%rbp) LBB5_14: movq -32(%rbp), %rdi callq _free jmp LBB5_16 LBB5_15: movq -16(%rbp), %rax movq 16(%rax), %rdi callq _FindMinimum movq %rax, -40(%rbp) movq -40(%rbp), %rax movl (%rax), %ecx movq -16(%rbp), %rax movl %ecx, (%rax) movq -16(%rbp), %rax movq 16(%rax), %rdi movq -40(%rbp), %rax movl (%rax), %esi callq _Delete movq %rax, %rcx movq -16(%rbp), %rax movq %rcx, 16(%rax) LBB5_16: jmp LBB5_17 LBB5_17: jmp LBB5_18 LBB5_18: jmp LBB5_19 LBB5_19: jmp LBB5_20 LBB5_20: movq -16(%rbp), %rax movq %rax, -8(%rbp) LBB5_21: movq -8(%rbp), %rax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _FindMinimum ## -- Begin function FindMinimum .p2align 4, 0x90 _FindMinimum: ## @FindMinimum .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) LBB6_1: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax cmpq $0, 8(%rax) je LBB6_3 ## %bb.2: ## in Loop: Header=BB6_1 Depth=1 movq -8(%rbp), %rax movq 8(%rax), %rax movq %rax, -8(%rbp) jmp LBB6_1 LBB6_3: movq -8(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _Delete_2 ## -- Begin function Delete_2 .p2align 4, 0x90 _Delete_2: ## @Delete_2 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) movq -16(%rbp), %rax movq %rax, -32(%rbp) movq $0, -40(%rbp) LBB7_1: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpq $0, -32(%rbp) movb %al, -65(%rbp) ## 1-byte Spill je LBB7_3 ## %bb.2: ## in Loop: Header=BB7_1 Depth=1 movq -32(%rbp), %rax movl (%rax), %eax cmpl -20(%rbp), %eax setne %al movb %al, -65(%rbp) ## 1-byte Spill LBB7_3: ## in Loop: Header=BB7_1 Depth=1 movb -65(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB7_4 jmp LBB7_8 LBB7_4: ## in Loop: Header=BB7_1 Depth=1 movq -32(%rbp), %rax movq %rax, -40(%rbp) movl -20(%rbp), %eax movq -32(%rbp), %rcx cmpl (%rcx), %eax jge LBB7_6 ## %bb.5: ## in Loop: Header=BB7_1 Depth=1 movq -32(%rbp), %rax movq 8(%rax), %rax movq %rax, -32(%rbp) jmp LBB7_7 LBB7_6: ## in Loop: Header=BB7_1 Depth=1 movq -32(%rbp), %rax movq 16(%rax), %rax movq %rax, -32(%rbp) LBB7_7: ## in Loop: Header=BB7_1 Depth=1 jmp LBB7_1 LBB7_8: cmpq $0, -32(%rbp) jne LBB7_10 ## %bb.9: leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rax movq %rax, -8(%rbp) jmp LBB7_38 LBB7_10: movq -32(%rbp), %rax cmpq $0, 8(%rax) jne LBB7_18 ## %bb.11: movq -32(%rbp), %rax cmpq $0, 16(%rax) jne LBB7_18 ## %bb.12: cmpq $0, -40(%rbp) jne LBB7_14 ## %bb.13: movq $0, -8(%rbp) jmp LBB7_38 LBB7_14: movq -40(%rbp), %rax movq 8(%rax), %rax cmpq -32(%rbp), %rax jne LBB7_16 ## %bb.15: movq -40(%rbp), %rax movq $0, 8(%rax) jmp LBB7_17 LBB7_16: movq -40(%rbp), %rax movq $0, 16(%rax) LBB7_17: movq -32(%rbp), %rdi callq _free jmp LBB7_37 LBB7_18: movq -32(%rbp), %rax cmpq $0, 8(%rax) je LBB7_20 ## %bb.19: movq -32(%rbp), %rax cmpq $0, 16(%rax) jne LBB7_29 LBB7_20: movq -32(%rbp), %rax cmpq $0, 8(%rax) je LBB7_22 ## %bb.21: movq -32(%rbp), %rax movq 8(%rax), %rax movq %rax, -80(%rbp) ## 8-byte Spill jmp LBB7_23 LBB7_22: movq -32(%rbp), %rax movq 16(%rax), %rax movq %rax, -80(%rbp) ## 8-byte Spill LBB7_23: movq -80(%rbp), %rax ## 8-byte Reload movq %rax, -48(%rbp) cmpq $0, -40(%rbp) jne LBB7_25 ## %bb.24: movq -48(%rbp), %rax movq %rax, -8(%rbp) jmp LBB7_38 LBB7_25: movq -40(%rbp), %rax movq 8(%rax), %rax cmpq -32(%rbp), %rax jne LBB7_27 ## %bb.26: movq -48(%rbp), %rcx movq -40(%rbp), %rax movq %rcx, 8(%rax) jmp LBB7_28 LBB7_27: movq -48(%rbp), %rcx movq -40(%rbp), %rax movq %rcx, 16(%rax) LBB7_28: jmp LBB7_36 LBB7_29: movq -32(%rbp), %rax movq 16(%rax), %rax movq %rax, -56(%rbp) movq $0, -64(%rbp) LBB7_30: ## =>This Inner Loop Header: Depth=1 movq -56(%rbp), %rax cmpq $0, 8(%rax) je LBB7_32 ## %bb.31: ## in Loop: Header=BB7_30 Depth=1 movq -56(%rbp), %rax movq %rax, -64(%rbp) movq -56(%rbp), %rax movq 8(%rax), %rax movq %rax, -56(%rbp) jmp LBB7_30 LBB7_32: cmpq $0, -64(%rbp) jne LBB7_34 ## %bb.33: movq -56(%rbp), %rax movq 16(%rax), %rcx movq -32(%rbp), %rax movq %rcx, 16(%rax) jmp LBB7_35 LBB7_34: movq -56(%rbp), %rax movq 16(%rax), %rcx movq -64(%rbp), %rax movq %rcx, 8(%rax) LBB7_35: movq -56(%rbp), %rax movl (%rax), %ecx movq -32(%rbp), %rax movl %ecx, (%rax) movq -56(%rbp), %rdi callq _free LBB7_36: jmp LBB7_37 LBB7_37: movq -16(%rbp), %rax movq %rax, -8(%rbp) LBB7_38: movq -8(%rbp), %rax addq $80, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) movq $0, -16(%rbp) LBB8_1: ## =>This Inner Loop Header: Depth=1 leaq L_.str.1(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax movb %al, -41(%rbp) ## 1-byte Spill callq _printf ## kill: def $ecx killed $eax movb -41(%rbp), %al ## 1-byte Reload leaq L_.str.2(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -41(%rbp), %al ## 1-byte Reload leaq L_.str.3(%rip), %rdi leaq -20(%rbp), %rsi callq _scanf movl -20(%rbp), %eax decl %eax movl %eax, %ecx movq %rcx, -40(%rbp) ## 8-byte Spill subl $3, %eax ja LBB8_9 ## %bb.12: ## in Loop: Header=BB8_1 Depth=1 movq -40(%rbp), %rax ## 8-byte Reload leaq LJTI8_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB8_2: ## in Loop: Header=BB8_1 Depth=1 leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf leaq L_.str.3(%rip), %rdi leaq -24(%rbp), %rsi movb $0, %al callq _scanf movq -16(%rbp), %rdi movl -24(%rbp), %esi callq _insertNode movq %rax, -16(%rbp) jmp LBB8_9 LBB8_3: ## in Loop: Header=BB8_1 Depth=1 leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf leaq L_.str.3(%rip), %rdi leaq -28(%rbp), %rsi movb $0, %al callq _scanf movq -16(%rbp), %rdi movl -28(%rbp), %esi callq _Search_Iterative testb $1, %al jne LBB8_4 jmp LBB8_5 LBB8_4: ## in Loop: Header=BB8_1 Depth=1 leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf jmp LBB8_6 LBB8_5: ## in Loop: Header=BB8_1 Depth=1 leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf LBB8_6: ## in Loop: Header=BB8_1 Depth=1 jmp LBB8_9 LBB8_7: ## in Loop: Header=BB8_1 Depth=1 leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf leaq L_.str.3(%rip), %rdi leaq -28(%rbp), %rsi movb $0, %al callq _scanf movq -16(%rbp), %rdi movl -28(%rbp), %esi callq _Delete movq %rax, -16(%rbp) leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf jmp LBB8_9 LBB8_8: ## in Loop: Header=BB8_1 Depth=1 leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rdi callq _inorder LBB8_9: ## in Loop: Header=BB8_1 Depth=1 jmp LBB8_10 LBB8_10: ## in Loop: Header=BB8_1 Depth=1 cmpl $5, -20(%rbp) jl LBB8_1 ## %bb.11: movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L8_0_set_2, LBB8_2-LJTI8_0 .set L8_0_set_3, LBB8_3-LJTI8_0 .set L8_0_set_7, LBB8_7-LJTI8_0 .set L8_0_set_8, LBB8_8-LJTI8_0 LJTI8_0: .long L8_0_set_2 .long L8_0_set_3 .long L8_0_set_7 .long L8_0_set_8 .end_data_region ## -- End function .globl _inorder ## -- Begin function inorder .p2align 4, 0x90 _inorder: ## @inorder .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) cmpq $0, -8(%rbp) jne LBB9_2 ## %bb.1: jmp LBB9_3 LBB9_2: movq -8(%rbp), %rax movq 8(%rax), %rdi callq _inorder movq -8(%rbp), %rax movl (%rax), %esi leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf movq -8(%rbp), %rax movq 16(%rax), %rdi callq _inorder LBB9_3: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\nNode to be deleted does not exist in Tree\n" L_.str.1: ## @.str.1 .asciz "\n\n1.Insert\n2.Search\n3.Delete\n4.Display (Inorder)\n" L_.str.2: ## @.str.2 .asciz "Enter choice: " L_.str.3: ## @.str.3 .asciz "%d" L_.str.4: ## @.str.4 .asciz "\nEnter value to be inserted\n" L_.str.5: ## @.str.5 .asciz "\nEnter value to be searched\n" L_.str.6: ## @.str.6 .asciz "\nElement found " L_.str.7: ## @.str.7 .asciz "\nElement not found " L_.str.8: ## @.str.8 .asciz "\nEnter value to be deleted\n" L_.str.9: ## @.str.9 .asciz "\nElement deleted successfully (if it exists)" L_.str.10: ## @.str.10 .asciz "\nBinary Search Tree Inorder\n" L_.str.11: ## @.str.11 .asciz "%d " .subsections_via_symbols
the_stack_data/6386636.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _sem_getvalue ; -- Begin function sem_getvalue .p2align 2 _sem_getvalue: ; @sem_getvalue .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str x1, [sp] ldr x8, [sp] ldr w0, [x8] add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _sem_getvalue ## -- Begin function sem_getvalue .p2align 4, 0x90 _sem_getvalue: ## @sem_getvalue .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -16(%rbp), %rax movl (%rax), %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/162643913.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _add ; -- Begin function add .p2align 2 _add: ; @add .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str w1, [sp, #8] ldr w8, [sp, #12] ldr w9, [sp, #8] add w0, w8, w9 add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _add ## -- Begin function add .p2align 4, 0x90 _add: ## @add .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl -4(%rbp), %eax addl -8(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/184518556.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur w8, [x29, #-8] stur w8, [x29, #-12] mov w8, #1 str w8, [sp, #16] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ; Child Loop BB0_7 Depth 2 ldr w8, [sp, #16] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_12 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 mov w8, #1 str w8, [sp, #12] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #12] ldur w9, [x29, #-12] subs w9, w9, #1 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_3 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 mov w8, #1 str w8, [sp, #8] b LBB0_7 LBB0_7: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #8] ldr w10, [sp, #16] mov w9, #2 mul w9, w9, w10 subs w9, w9, #1 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_10 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=2 adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_9 LBB0_9: ; in Loop: Header=BB0_7 Depth=2 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_7 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-12] subs w8, w8, #1 stur w8, [x29, #-12] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_1 LBB0_12: mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter the number of rows" l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz " " l_.str.3: ; @.str.3 .asciz "*" l_.str.4: ; @.str.4 .asciz "\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movl -8(%rbp), %eax movl %eax, -12(%rbp) movl $1, -16(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 ## Child Loop BB0_7 Depth 2 movl -16(%rbp), %eax cmpl -8(%rbp), %eax jg LBB0_12 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $1, -20(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -20(%rbp), %eax movl -12(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jg LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_3 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movl $1, -24(%rbp) LBB0_7: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -24(%rbp), %eax movl -16(%rbp), %ecx shll $1, %ecx subl $1, %ecx cmpl %ecx, %eax jg LBB0_10 ## %bb.8: ## in Loop: Header=BB0_7 Depth=2 leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf ## %bb.9: ## in Loop: Header=BB0_7 Depth=2 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB0_7 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax addl $-1, %eax movl %eax, -12(%rbp) leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf ## %bb.11: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_1 LBB0_12: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter the number of rows" L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz " " L_.str.3: ## @.str.3 .asciz "*" L_.str.4: ## @.str.4 .asciz "\n" .subsections_via_symbols
the_stack_data/34513304.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #28] str wzr, [sp, #24] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] subs w8, w8, #6 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #24] add w10, w8, #1 mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldrsw x9, [sp, #24] add x8, sp, #32 add x8, x8, x9, lsl #2 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_1 LBB0_4: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov w8, #5 str w8, [sp, #24] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldrsw x9, [sp, #24] add x8, sp, #32 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #24] subs w8, w8, #1 str w8, [sp, #24] b LBB0_5 LBB0_8: ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: bl ___stack_chk_fail LBB0_10: mov w0, #0 ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d. number:" l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "Reverses number:" l_.str.3: ; @.str.3 .asciz "%d, " .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -36(%rbp) movl $0, -40(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $6, -40(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -40(%rbp), %esi addl $1, %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movslq -40(%rbp), %rax leaq -32(%rbp), %rsi shlq $2, %rax addq %rax, %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _scanf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -40(%rbp), %eax addl $1, %eax movl %eax, -40(%rbp) jmp LBB0_1 LBB0_4: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl $5, -40(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 cmpl $0, -40(%rbp) jl LBB0_8 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movslq -40(%rbp), %rax movl -32(%rbp,%rax,4), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movl -40(%rbp), %eax addl $-1, %eax movl %eax, -40(%rbp) jmp LBB0_5 LBB0_8: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_10 ## %bb.9: xorl %eax, %eax addq $48, %rsp popq %rbp retq LBB0_10: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d. number:" L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "Reverses number:" L_.str.3: ## @.str.3 .asciz "%d, " .subsections_via_symbols
the_stack_data/248581225.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _fixedSwap ; -- Begin function fixedSwap .p2align 2 _fixedSwap: ; @fixedSwap .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str x1, [sp] ldr x8, [sp, #8] ldrb w8, [x8, #8] ldr x9, [sp] strb w8, [x9] ldr x8, [sp, #8] ldrb w8, [x8, #14] ldr x9, [sp] strb w8, [x9, #1] ldr x8, [sp, #8] ldrb w8, [x8, #9] ldr x9, [sp] strb w8, [x9, #2] ldr x8, [sp, #8] ldrb w8, [x8, #7] ldr x9, [sp] strb w8, [x9, #3] ldr x8, [sp, #8] ldrb w8, [x8, #3] ldr x9, [sp] strb w8, [x9, #4] ldr x8, [sp, #8] ldrb w8, [x8, #1] ldr x9, [sp] strb w8, [x9, #5] ldr x8, [sp, #8] ldrb w8, [x8, #13] ldr x9, [sp] strb w8, [x9, #6] ldr x8, [sp, #8] ldrb w8, [x8, #12] ldr x9, [sp] strb w8, [x9, #7] ldr x8, [sp, #8] ldrb w8, [x8, #10] ldr x9, [sp] strb w8, [x9, #8] ldr x8, [sp, #8] ldrb w8, [x8, #11] ldr x9, [sp] strb w8, [x9, #9] ldr x8, [sp, #8] ldrb w8, [x8, #6] ldr x9, [sp] strb w8, [x9, #10] ldr x8, [sp, #8] ldrb w8, [x8, #2] ldr x9, [sp] strb w8, [x9, #11] ldr x8, [sp, #8] ldrb w8, [x8, #4] ldr x9, [sp] strb w8, [x9, #12] ldr x8, [sp, #8] ldrb w8, [x8] ldr x9, [sp] strb w8, [x9, #13] ldr x8, [sp, #8] ldrb w8, [x8, #15] ldr x9, [sp] strb w8, [x9, #14] ldr x8, [sp, #8] ldrb w8, [x8, #5] ldr x9, [sp] strb w8, [x9, #15] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _charSwaps ; -- Begin function charSwaps .p2align 2 _charSwaps: ; @charSwaps .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str x1, [sp, #16] str wzr, [sp, #12] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #16 cset w8, ge tbnz w8, #0, LBB1_22 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #24] ldrsw x9, [sp, #12] ldrsb w8, [x8, x9] subs w8, w8, #97 ; kill: def $x8 killed $w8 str x8, [sp] ; 8-byte Folded Spill subs x8, x8, #15 cset w8, hi tbnz w8, #0, LBB1_20 ; %bb.3: ; in Loop: Header=BB1_1 Depth=1 ldr x11, [sp] ; 8-byte Folded Reload adrp x10, lJTI1_0@PAGE add x10, x10, lJTI1_0@PAGEOFF Ltmp2: adr x8, Ltmp2 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #12] add x9, x8, x9 mov w8, #109 strb w8, [x9] b LBB1_20 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #12] add x9, x8, x9 mov w8, #101 strb w8, [x9] b LBB1_20 LBB1_6: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #12] add x9, x8, x9 mov w8, #110 strb w8, [x9] b LBB1_20 LBB1_7: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #12] add x9, x8, x9 mov w8, #100 strb w8, [x9] b LBB1_20 LBB1_8: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #12] add x9, x8, x9 mov w8, #112 strb w8, [x9] b LBB1_20 LBB1_9: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #12] add x9, x8, x9 mov w8, #97 strb w8, [x9] b LBB1_20 LBB1_10: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #12] add x9, x8, x9 mov w8, #108 strb w8, [x9] b LBB1_20 LBB1_11: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #12] add x9, x8, x9 mov w8, #99 strb w8, [x9] b LBB1_20 LBB1_12: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #12] add x9, x8, x9 mov w8, #98 strb w8, [x9] b LBB1_20 LBB1_13: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #12] add x9, x8, x9 mov w8, #103 strb w8, [x9] b LBB1_20 LBB1_14: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #12] add x9, x8, x9 mov w8, #104 strb w8, [x9] b LBB1_20 LBB1_15: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #12] add x9, x8, x9 mov w8, #111 strb w8, [x9] b LBB1_20 LBB1_16: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #12] add x9, x8, x9 mov w8, #105 strb w8, [x9] b LBB1_20 LBB1_17: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #12] add x9, x8, x9 mov w8, #102 strb w8, [x9] b LBB1_20 LBB1_18: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #12] add x9, x8, x9 mov w8, #107 strb w8, [x9] b LBB1_20 LBB1_19: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #12] add x9, x8, x9 mov w8, #106 strb w8, [x9] b LBB1_20 LBB1_20: ; in Loop: Header=BB1_1 Depth=1 b LBB1_21 LBB1_21: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB1_1 LBB1_22: add sp, sp, #32 ret .cfi_endproc .p2align 2 lJTI1_0: .long LBB1_4-Ltmp2 .long LBB1_5-Ltmp2 .long LBB1_6-Ltmp2 .long LBB1_7-Ltmp2 .long LBB1_8-Ltmp2 .long LBB1_9-Ltmp2 .long LBB1_10-Ltmp2 .long LBB1_11-Ltmp2 .long LBB1_12-Ltmp2 .long LBB1_13-Ltmp2 .long LBB1_14-Ltmp2 .long LBB1_15-Ltmp2 .long LBB1_16-Ltmp2 .long LBB1_17-Ltmp2 .long LBB1_18-Ltmp2 .long LBB1_19-Ltmp2 ; -- End function .globl _dance ; -- Begin function dance .p2align 2 _dance: ; @dance .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] str x1, [sp] ldr x0, [sp] ldr x1, [sp, #8] bl _charSwaps ldr x0, [sp, #8] ldr x1, [sp] bl _fixedSwap ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _initArray ; -- Begin function initArray .p2align 2 _initArray: ; @initArray .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str wzr, [sp, #4] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #4] subs w8, w8, #16 cset w8, ge tbnz w8, #0, LBB3_4 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #97 ldr x9, [sp, #8] ldrsw x10, [sp, #4] strb w8, [x9, x10] b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB3_1 LBB3_4: ldr x9, [sp, #8] mov w8, #10 strb w8, [x9, #16] ldr x8, [sp, #8] strb wzr, [x8, #17] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #16] sub x0, x29, #26 bl _initArray add x0, sp, #20 bl _initArray str wzr, [sp, #12] b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] mov w9, #51712 movk w9, #15258, lsl #16 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_4 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 sub x0, x29, #26 add x1, sp, #20 bl _dance b LBB4_3 LBB4_3: ; in Loop: Header=BB4_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB4_1 LBB4_4: add x0, sp, #20 bl _printf ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB4_6 b LBB4_5 LBB4_5: bl ___stack_chk_fail LBB4_6: mov w0, #0 ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __TEXT,__const .globl _SIZE ; @SIZE .p2align 2 _SIZE: .long 16 ; 0x10 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _fixedSwap ## -- Begin function fixedSwap .p2align 4, 0x90 _fixedSwap: ## @fixedSwap .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rax movb 8(%rax), %cl movq -16(%rbp), %rax movb %cl, (%rax) movq -8(%rbp), %rax movb 14(%rax), %cl movq -16(%rbp), %rax movb %cl, 1(%rax) movq -8(%rbp), %rax movb 9(%rax), %cl movq -16(%rbp), %rax movb %cl, 2(%rax) movq -8(%rbp), %rax movb 7(%rax), %cl movq -16(%rbp), %rax movb %cl, 3(%rax) movq -8(%rbp), %rax movb 3(%rax), %cl movq -16(%rbp), %rax movb %cl, 4(%rax) movq -8(%rbp), %rax movb 1(%rax), %cl movq -16(%rbp), %rax movb %cl, 5(%rax) movq -8(%rbp), %rax movb 13(%rax), %cl movq -16(%rbp), %rax movb %cl, 6(%rax) movq -8(%rbp), %rax movb 12(%rax), %cl movq -16(%rbp), %rax movb %cl, 7(%rax) movq -8(%rbp), %rax movb 10(%rax), %cl movq -16(%rbp), %rax movb %cl, 8(%rax) movq -8(%rbp), %rax movb 11(%rax), %cl movq -16(%rbp), %rax movb %cl, 9(%rax) movq -8(%rbp), %rax movb 6(%rax), %cl movq -16(%rbp), %rax movb %cl, 10(%rax) movq -8(%rbp), %rax movb 2(%rax), %cl movq -16(%rbp), %rax movb %cl, 11(%rax) movq -8(%rbp), %rax movb 4(%rax), %cl movq -16(%rbp), %rax movb %cl, 12(%rax) movq -8(%rbp), %rax movb (%rax), %cl movq -16(%rbp), %rax movb %cl, 13(%rax) movq -8(%rbp), %rax movb 15(%rax), %cl movq -16(%rbp), %rax movb %cl, 14(%rax) movq -8(%rbp), %rax movb 5(%rax), %cl movq -16(%rbp), %rax movb %cl, 15(%rax) popq %rbp retq .cfi_endproc ## -- End function .globl _charSwaps ## -- Begin function charSwaps .p2align 4, 0x90 _charSwaps: ## @charSwaps .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movl $0, -20(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 cmpl $16, -20(%rbp) jge LBB1_21 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -8(%rbp), %rax movslq -20(%rbp), %rcx movsbl (%rax,%rcx), %eax addl $-97, %eax movl %eax, %ecx movq %rcx, -32(%rbp) ## 8-byte Spill subl $15, %eax ja LBB1_19 ## %bb.22: ## in Loop: Header=BB1_1 Depth=1 movq -32(%rbp), %rax ## 8-byte Reload leaq LJTI1_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB1_3: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movb $109, (%rax,%rcx) jmp LBB1_19 LBB1_4: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movb $101, (%rax,%rcx) jmp LBB1_19 LBB1_5: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movb $110, (%rax,%rcx) jmp LBB1_19 LBB1_6: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movb $100, (%rax,%rcx) jmp LBB1_19 LBB1_7: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movb $112, (%rax,%rcx) jmp LBB1_19 LBB1_8: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movb $97, (%rax,%rcx) jmp LBB1_19 LBB1_9: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movb $108, (%rax,%rcx) jmp LBB1_19 LBB1_10: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movb $99, (%rax,%rcx) jmp LBB1_19 LBB1_11: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movb $98, (%rax,%rcx) jmp LBB1_19 LBB1_12: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movb $103, (%rax,%rcx) jmp LBB1_19 LBB1_13: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movb $104, (%rax,%rcx) jmp LBB1_19 LBB1_14: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movb $111, (%rax,%rcx) jmp LBB1_19 LBB1_15: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movb $105, (%rax,%rcx) jmp LBB1_19 LBB1_16: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movb $102, (%rax,%rcx) jmp LBB1_19 LBB1_17: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movb $107, (%rax,%rcx) jmp LBB1_19 LBB1_18: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movb $106, (%rax,%rcx) LBB1_19: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_20 LBB1_20: ## in Loop: Header=BB1_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB1_1 LBB1_21: popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L1_0_set_3, LBB1_3-LJTI1_0 .set L1_0_set_4, LBB1_4-LJTI1_0 .set L1_0_set_5, LBB1_5-LJTI1_0 .set L1_0_set_6, LBB1_6-LJTI1_0 .set L1_0_set_7, LBB1_7-LJTI1_0 .set L1_0_set_8, LBB1_8-LJTI1_0 .set L1_0_set_9, LBB1_9-LJTI1_0 .set L1_0_set_10, LBB1_10-LJTI1_0 .set L1_0_set_11, LBB1_11-LJTI1_0 .set L1_0_set_12, LBB1_12-LJTI1_0 .set L1_0_set_13, LBB1_13-LJTI1_0 .set L1_0_set_14, LBB1_14-LJTI1_0 .set L1_0_set_15, LBB1_15-LJTI1_0 .set L1_0_set_16, LBB1_16-LJTI1_0 .set L1_0_set_17, LBB1_17-LJTI1_0 .set L1_0_set_18, LBB1_18-LJTI1_0 LJTI1_0: .long L1_0_set_3 .long L1_0_set_4 .long L1_0_set_5 .long L1_0_set_6 .long L1_0_set_7 .long L1_0_set_8 .long L1_0_set_9 .long L1_0_set_10 .long L1_0_set_11 .long L1_0_set_12 .long L1_0_set_13 .long L1_0_set_14 .long L1_0_set_15 .long L1_0_set_16 .long L1_0_set_17 .long L1_0_set_18 .end_data_region ## -- End function .globl _dance ## -- Begin function dance .p2align 4, 0x90 _dance: ## @dance .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -16(%rbp), %rdi movq -8(%rbp), %rsi callq _charSwaps movq -8(%rbp), %rdi movq -16(%rbp), %rsi callq _fixedSwap addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _initArray ## -- Begin function initArray .p2align 4, 0x90 _initArray: ## @initArray .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl $0, -12(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 cmpl $16, -12(%rbp) jge LBB3_4 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movl -12(%rbp), %eax addl $97, %eax movb %al, %dl movq -8(%rbp), %rax movslq -12(%rbp), %rcx movb %dl, (%rax,%rcx) ## %bb.3: ## in Loop: Header=BB3_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB3_1 LBB3_4: movq -8(%rbp), %rax movb $10, 16(%rax) movq -8(%rbp), %rax movb $0, 17(%rax) popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -68(%rbp) leaq -32(%rbp), %rdi callq _initArray leaq -64(%rbp), %rdi callq _initArray movl $0, -72(%rbp) LBB4_1: ## =>This Inner Loop Header: Depth=1 cmpl $1000000000, -72(%rbp) ## imm = 0x3B9ACA00 jge LBB4_4 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 leaq -32(%rbp), %rdi leaq -64(%rbp), %rsi callq _dance ## %bb.3: ## in Loop: Header=BB4_1 Depth=1 movl -72(%rbp), %eax addl $1, %eax movl %eax, -72(%rbp) jmp LBB4_1 LBB4_4: leaq -64(%rbp), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB4_6 ## %bb.5: xorl %eax, %eax addq $80, %rsp popq %rbp retq LBB4_6: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__const .globl _SIZE ## @SIZE .p2align 2 _SIZE: .long 16 ## 0x10 .subsections_via_symbols
the_stack_data/874606.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function set_fast_math _set_fast_math: ; @set_fast_math .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov x0, #12288 bl ___ieee_set_fp_control ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __DATA,__mod_init_func,mod_init_funcs .p2align 3 .quad _set_fast_math .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function set_fast_math _set_fast_math: ## @set_fast_math .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $12288, %edi ## imm = 0x3000 callq ___ieee_set_fp_control popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__mod_init_func,mod_init_funcs .p2align 3 .quad _set_fast_math .subsections_via_symbols
the_stack_data/200143653.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #160 .cfi_def_cfa_offset 160 stp x29, x30, [sp, #144] ; 16-byte Folded Spill add x29, sp, #144 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x8, l_.str@PAGE add x8, x8, l_.str@PAGEOFF stur x8, [x29, #-64] ldur x0, [x29, #-64] mov w1, #2 bl _open stur w0, [x29, #-8] subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _perror mov w8, #1 stur w8, [x29, #-4] b LBB0_32 LBB0_2: mov w0, #29 str w0, [sp, #60] ; 4-byte Folded Spill bl _sysconf mov x1, x0 ldur w4, [x29, #-8] mov x0, #0 str x0, [sp, #72] ; 8-byte Folded Spill mov w2, #3 str w2, [sp, #64] ; 4-byte Folded Spill mov w3, #1 str w3, [sp, #68] ; 4-byte Folded Spill mov x5, #1073741824 bl _mmap mov x8, x0 ldr w0, [sp, #60] ; 4-byte Folded Reload stur x8, [x29, #-32] bl _sysconf ldr w2, [sp, #64] ; 4-byte Folded Reload ldr w3, [sp, #68] ; 4-byte Folded Reload mov x1, x0 ldr x0, [sp, #72] ; 8-byte Folded Reload ldur w4, [x29, #-8] mov x5, #4096 movk x5, #16384, lsl #16 bl _mmap mov x8, x0 ldr w0, [sp, #60] ; 4-byte Folded Reload stur x8, [x29, #-40] bl _sysconf ldr w2, [sp, #64] ; 4-byte Folded Reload ldr w3, [sp, #68] ; 4-byte Folded Reload mov x9, x0 ldr x0, [sp, #72] ; 8-byte Folded Reload mov x8, #16 mul x1, x8, x9 ldur w4, [x29, #-8] mov x5, #1073807360 bl _mmap mov x8, x0 ldr w0, [sp, #60] ; 4-byte Folded Reload stur x8, [x29, #-48] bl _sysconf ldr w2, [sp, #64] ; 4-byte Folded Reload ldr w3, [sp, #68] ; 4-byte Folded Reload mov x9, x0 ldr x0, [sp, #72] ; 8-byte Folded Reload mov x8, #8192 mul x1, x8, x9 ldur w4, [x29, #-8] mov x5, #503316480 bl _mmap stur x0, [x29, #-56] ldur x9, [x29, #-32] mov w8, #3052 strh w8, [x9, #4] ldur x9, [x29, #-32] mov w8, #24415 strh w8, [x9, #6] ldur x9, [x29, #-32] ldrh w8, [x9] and w8, w8, #0xfffffffd strh w8, [x9] ldur x9, [x29, #-32] ldrh w8, [x9] orr w8, w8, #0x2 strh w8, [x9] ldur x9, [x29, #-32] ldrh w8, [x9] and w8, w8, #0xfffffffe strh w8, [x9] ldur x9, [x29, #-32] mov w8, #1023 movk w8, #32, lsl #16 str w8, [x9, #8] ldur x9, [x29, #-32] ldrh w8, [x9] orr w8, w8, #0x1 strh w8, [x9] b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-40] ldr w8, [x8] subs w8, w8, #32 cset w8, hs tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 mov w0, #500 bl _usleep b LBB0_3 LBB0_5: stur wzr, [x29, #-12] b LBB0_6 LBB0_6: ; =>This Loop Header: Depth=1 ; Child Loop BB0_8 Depth 2 ; Child Loop BB0_11 Depth 2 ; Child Loop BB0_15 Depth 2 ldur w8, [x29, #-12] mov w9, #8176 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_20 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_6 Depth=1 b LBB0_8 LBB0_8: ; Parent Loop BB0_6 Depth=1 ; => This Inner Loop Header: Depth=2 ldur x8, [x29, #-40] ldr w8, [x8, #4] mov w9, #15000 subs w8, w8, w9 cset w8, ls tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_8 Depth=2 mov w0, #10000 bl _usleep b LBB0_8 LBB0_10: ; in Loop: Header=BB0_6 Depth=1 stur wzr, [x29, #-16] b LBB0_11 LBB0_11: ; Parent Loop BB0_6 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-16] mov w9, #8176 subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_14 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_11 Depth=2 ldur w8, [x29, #-16] sub x1, x29, #20 sturh w8, [x29, #-20] ldur w8, [x29, #-12] sturh w8, [x29, #-18] ldur x0, [x29, #-48] mov x2, #4 mov x3, #-1 bl ___memcpy_chk b LBB0_13 LBB0_13: ; in Loop: Header=BB0_11 Depth=2 ldur w8, [x29, #-16] add w8, w8, #16 stur w8, [x29, #-16] b LBB0_11 LBB0_14: ; in Loop: Header=BB0_6 Depth=1 ldur w8, [x29, #-12] add w8, w8, #16 stur w8, [x29, #-12] mov w8, #8176 stur w8, [x29, #-16] b LBB0_15 LBB0_15: ; Parent Loop BB0_6 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-16] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB0_18 b LBB0_16 LBB0_16: ; in Loop: Header=BB0_15 Depth=2 ldur w8, [x29, #-16] sub x1, x29, #20 sturh w8, [x29, #-20] ldur w8, [x29, #-12] sturh w8, [x29, #-18] ldur x0, [x29, #-48] mov x2, #4 mov x3, #-1 bl ___memcpy_chk b LBB0_17 LBB0_17: ; in Loop: Header=BB0_15 Depth=2 ldur w8, [x29, #-16] subs w8, w8, #16 stur w8, [x29, #-16] b LBB0_15 LBB0_18: ; in Loop: Header=BB0_6 Depth=1 b LBB0_19 LBB0_19: ; in Loop: Header=BB0_6 Depth=1 ldur w8, [x29, #-12] add w8, w8, #16 stur w8, [x29, #-12] b LBB0_6 LBB0_20: stur wzr, [x29, #-12] b LBB0_21 LBB0_21: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] subs w8, w8, #3 cset w8, ge tbnz w8, #0, LBB0_24 b LBB0_22 LBB0_22: ; in Loop: Header=BB0_21 Depth=1 sub x1, x29, #20 sturh wzr, [x29, #-20] mov w8, #8176 sturh w8, [x29, #-18] ldur x0, [x29, #-48] mov x2, #4 mov x3, #-1 bl ___memcpy_chk b LBB0_23 LBB0_23: ; in Loop: Header=BB0_21 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_21 LBB0_24: b LBB0_25 LBB0_25: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-40] ldr w8, [x8] mov w9, #512 movk w9, #16, lsl #16 subs w8, w8, w9 cset w8, hs tbnz w8, #0, LBB0_27 b LBB0_26 LBB0_26: ; in Loop: Header=BB0_25 Depth=1 mov w0, #10000 bl _usleep b LBB0_25 LBB0_27: stur wzr, [x29, #-12] b LBB0_28 LBB0_28: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] subs w8, w8, #2049, lsl #12 ; =8392704 cset w8, ge tbnz w8, #0, LBB0_31 b LBB0_29 LBB0_29: ; in Loop: Header=BB0_28 Depth=1 ldur x8, [x29, #-56] ldursw x9, [x29, #-12] ldr w8, [x8, x9] stur w8, [x29, #-20] ldursh w11, [x29, #-20] ldursh w10, [x29, #-18] mov x9, sp ; implicit-def: $x8 mov x8, x11 str x8, [x9] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_30 LBB0_30: ; in Loop: Header=BB0_28 Depth=1 ldur w8, [x29, #-12] add w8, w8, #4 stur w8, [x29, #-12] b LBB0_28 LBB0_31: ldur x8, [x29, #-32] str x8, [sp, #16] ; 8-byte Folded Spill mov w0, #29 str w0, [sp, #44] ; 4-byte Folded Spill bl _sysconf mov x1, x0 ldr x0, [sp, #16] ; 8-byte Folded Reload bl _munmap ldr w0, [sp, #44] ; 4-byte Folded Reload ldur x8, [x29, #-40] str x8, [sp, #24] ; 8-byte Folded Spill bl _sysconf mov x1, x0 ldr x0, [sp, #24] ; 8-byte Folded Reload bl _munmap ldr w0, [sp, #44] ; 4-byte Folded Reload ldur x8, [x29, #-48] str x8, [sp, #32] ; 8-byte Folded Spill bl _sysconf mov x1, x0 ldr x0, [sp, #32] ; 8-byte Folded Reload bl _munmap ldr w0, [sp, #44] ; 4-byte Folded Reload ldur x8, [x29, #-56] str x8, [sp, #48] ; 8-byte Folded Spill bl _sysconf mov x1, x0 ldr x0, [sp, #48] ; 8-byte Folded Reload bl _munmap stur wzr, [x29, #-4] b LBB0_32 LBB0_32: ldur w0, [x29, #-4] ldp x29, x30, [sp, #144] ; 16-byte Folded Reload add sp, sp, #160 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "/dev/mem" l_.str.1: ; @.str.1 .asciz "open" l_.str.2: ; @.str.2 .asciz "%8d %8d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rax movq %rax, -64(%rbp) movq -64(%rbp), %rdi movl $2, %esi movb $0, %al callq _open movl %eax, -8(%rbp) cmpl $0, %eax jge LBB0_2 ## %bb.1: leaq L_.str.1(%rip), %rdi callq _perror movl $1, -4(%rbp) jmp LBB0_32 LBB0_2: movl $29, %edi callq _sysconf movq %rax, %rsi movl -8(%rbp), %r8d xorl %eax, %eax movl %eax, %edi movl $3, %edx movl $1, %ecx movl $1073741824, %r9d ## imm = 0x40000000 callq _mmap movq %rax, -32(%rbp) movl $29, %edi callq _sysconf movq %rax, %rsi movl -8(%rbp), %r8d xorl %eax, %eax movl %eax, %edi movl $3, %edx movl $1, %ecx movl $1073745920, %r9d ## imm = 0x40001000 callq _mmap movq %rax, -40(%rbp) movl $29, %edi callq _sysconf movq %rax, %rsi shlq $4, %rsi movl -8(%rbp), %r8d xorl %eax, %eax movl %eax, %edi movl $3, %edx movl $1, %ecx movl $1073807360, %r9d ## imm = 0x40010000 callq _mmap movq %rax, -48(%rbp) movl $29, %edi callq _sysconf movq %rax, %rsi shlq $13, %rsi movl -8(%rbp), %r8d xorl %eax, %eax movl %eax, %edi movl $3, %edx movl $1, %ecx movl $503316480, %r9d ## imm = 0x1E000000 callq _mmap movq %rax, -56(%rbp) movq -32(%rbp), %rax movw $3052, 4(%rax) ## imm = 0xBEC movq -32(%rbp), %rax movw $24415, 6(%rax) ## imm = 0x5F5F movq -32(%rbp), %rax movzwl (%rax), %ecx andl $-3, %ecx ## kill: def $cx killed $cx killed $ecx movw %cx, (%rax) movq -32(%rbp), %rax movzwl (%rax), %ecx orl $2, %ecx ## kill: def $cx killed $cx killed $ecx movw %cx, (%rax) movq -32(%rbp), %rax movzwl (%rax), %ecx andl $-2, %ecx ## kill: def $cx killed $cx killed $ecx movw %cx, (%rax) movq -32(%rbp), %rax movl $2098175, 8(%rax) ## imm = 0x2003FF movq -32(%rbp), %rax movzwl (%rax), %ecx orl $1, %ecx ## kill: def $cx killed $cx killed $ecx movw %cx, (%rax) LBB0_3: ## =>This Inner Loop Header: Depth=1 movq -40(%rbp), %rax cmpl $32, (%rax) jae LBB0_5 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movl $500, %edi ## imm = 0x1F4 callq _usleep jmp LBB0_3 LBB0_5: movl $0, -12(%rbp) LBB0_6: ## =>This Loop Header: Depth=1 ## Child Loop BB0_8 Depth 2 ## Child Loop BB0_11 Depth 2 ## Child Loop BB0_15 Depth 2 cmpl $8176, -12(%rbp) ## imm = 0x1FF0 jg LBB0_20 ## %bb.7: ## in Loop: Header=BB0_6 Depth=1 jmp LBB0_8 LBB0_8: ## Parent Loop BB0_6 Depth=1 ## => This Inner Loop Header: Depth=2 movq -40(%rbp), %rax cmpl $15000, 4(%rax) ## imm = 0x3A98 jbe LBB0_10 ## %bb.9: ## in Loop: Header=BB0_8 Depth=2 movl $10000, %edi ## imm = 0x2710 callq _usleep jmp LBB0_8 LBB0_10: ## in Loop: Header=BB0_6 Depth=1 movl $0, -16(%rbp) LBB0_11: ## Parent Loop BB0_6 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $8176, -16(%rbp) ## imm = 0x1FF0 jg LBB0_14 ## %bb.12: ## in Loop: Header=BB0_11 Depth=2 movl -16(%rbp), %eax ## kill: def $ax killed $ax killed $eax movw %ax, -20(%rbp) movl -12(%rbp), %eax ## kill: def $ax killed $ax killed $eax movw %ax, -18(%rbp) movq -48(%rbp), %rdi leaq -20(%rbp), %rsi movl $4, %edx movq $-1, %rcx callq ___memcpy_chk ## %bb.13: ## in Loop: Header=BB0_11 Depth=2 movl -16(%rbp), %eax addl $16, %eax movl %eax, -16(%rbp) jmp LBB0_11 LBB0_14: ## in Loop: Header=BB0_6 Depth=1 movl -12(%rbp), %eax addl $16, %eax movl %eax, -12(%rbp) movl $8176, -16(%rbp) ## imm = 0x1FF0 LBB0_15: ## Parent Loop BB0_6 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $0, -16(%rbp) jl LBB0_18 ## %bb.16: ## in Loop: Header=BB0_15 Depth=2 movl -16(%rbp), %eax ## kill: def $ax killed $ax killed $eax movw %ax, -20(%rbp) movl -12(%rbp), %eax ## kill: def $ax killed $ax killed $eax movw %ax, -18(%rbp) movq -48(%rbp), %rdi leaq -20(%rbp), %rsi movl $4, %edx movq $-1, %rcx callq ___memcpy_chk ## %bb.17: ## in Loop: Header=BB0_15 Depth=2 movl -16(%rbp), %eax subl $16, %eax movl %eax, -16(%rbp) jmp LBB0_15 LBB0_18: ## in Loop: Header=BB0_6 Depth=1 jmp LBB0_19 LBB0_19: ## in Loop: Header=BB0_6 Depth=1 movl -12(%rbp), %eax addl $16, %eax movl %eax, -12(%rbp) jmp LBB0_6 LBB0_20: movl $0, -12(%rbp) LBB0_21: ## =>This Inner Loop Header: Depth=1 cmpl $3, -12(%rbp) jge LBB0_24 ## %bb.22: ## in Loop: Header=BB0_21 Depth=1 movw $0, -20(%rbp) movw $8176, -18(%rbp) ## imm = 0x1FF0 movq -48(%rbp), %rdi leaq -20(%rbp), %rsi movl $4, %edx movq $-1, %rcx callq ___memcpy_chk ## %bb.23: ## in Loop: Header=BB0_21 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_21 LBB0_24: jmp LBB0_25 LBB0_25: ## =>This Inner Loop Header: Depth=1 movq -40(%rbp), %rax cmpl $1049088, (%rax) ## imm = 0x100200 jae LBB0_27 ## %bb.26: ## in Loop: Header=BB0_25 Depth=1 movl $10000, %edi ## imm = 0x2710 callq _usleep jmp LBB0_25 LBB0_27: movl $0, -12(%rbp) LBB0_28: ## =>This Inner Loop Header: Depth=1 cmpl $8392704, -12(%rbp) ## imm = 0x801000 jge LBB0_31 ## %bb.29: ## in Loop: Header=BB0_28 Depth=1 movq -56(%rbp), %rax movslq -12(%rbp), %rcx movl (%rax,%rcx), %eax movl %eax, -20(%rbp) movswl -20(%rbp), %esi movswl -18(%rbp), %edx leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf ## %bb.30: ## in Loop: Header=BB0_28 Depth=1 movl -12(%rbp), %eax addl $4, %eax movl %eax, -12(%rbp) jmp LBB0_28 LBB0_31: movq -32(%rbp), %rax movq %rax, -96(%rbp) ## 8-byte Spill movl $29, %edi callq _sysconf movq -96(%rbp), %rdi ## 8-byte Reload movq %rax, %rsi callq _munmap movq -40(%rbp), %rax movq %rax, -88(%rbp) ## 8-byte Spill movl $29, %edi callq _sysconf movq -88(%rbp), %rdi ## 8-byte Reload movq %rax, %rsi callq _munmap movq -48(%rbp), %rax movq %rax, -80(%rbp) ## 8-byte Spill movl $29, %edi callq _sysconf movq -80(%rbp), %rdi ## 8-byte Reload movq %rax, %rsi callq _munmap movq -56(%rbp), %rax movq %rax, -72(%rbp) ## 8-byte Spill movl $29, %edi callq _sysconf movq -72(%rbp), %rdi ## 8-byte Reload movq %rax, %rsi callq _munmap movl $0, -4(%rbp) LBB0_32: movl -4(%rbp), %eax addq $96, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "/dev/mem" L_.str.1: ## @.str.1 .asciz "open" L_.str.2: ## @.str.2 .asciz "%8d %8d\n" .subsections_via_symbols
the_stack_data/125641.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _P_rect ; -- Begin function P_rect .p2align 2 _P_rect: ; @P_rect .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str s0, [sp, #12] str s1, [sp, #8] ldr s0, [sp, #12] ldr s1, [sp, #8] fmul s0, s0, s1 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _P_cub ; -- Begin function P_cub .p2align 2 _P_cub: ; @P_cub .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str s0, [sp, #12] str s1, [sp, #8] str s2, [sp, #4] ldr s0, [sp, #12] ldr s1, [sp, #8] fmul s0, s0, s1 ldr s1, [sp, #12] ldr s2, [sp, #4] fmul s2, s1, s2 fmov s1, #2.00000000 fmul s2, s2, s1 fmadd s2, s0, s1, s2 ldr s0, [sp, #4] ldr s3, [sp, #8] fmul s0, s0, s3 fmadd s0, s0, s1, s2 add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _P_rect ## -- Begin function P_rect .p2align 4, 0x90 _P_rect: ## @P_rect .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movss %xmm0, -4(%rbp) movss %xmm1, -8(%rbp) movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -8(%rbp), %xmm0 popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function P_cub LCPI1_0: .long 0x40000000 ## float 2 .section __TEXT,__text,regular,pure_instructions .globl _P_cub .p2align 4, 0x90 _P_cub: ## @P_cub .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movss %xmm0, -4(%rbp) movss %xmm1, -8(%rbp) movss %xmm2, -12(%rbp) movss -4(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss -8(%rbp), %xmm1 movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -12(%rbp), %xmm0 movss LCPI1_0(%rip), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm0 addss %xmm1, %xmm1 addss %xmm0, %xmm1 movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -8(%rbp), %xmm0 addss %xmm0, %xmm0 addss %xmm1, %xmm0 popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/100140991.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #8] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov w0, #10 bl _factorial mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr w0, [sp, #8] ; 4-byte Folded Reload ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Factorial of 10 %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $10, %edi callq _factorial movl %eax, %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Factorial of 10 %d\n" .subsections_via_symbols
the_stack_data/61075978.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fopen mov x8, x0 str x8, [sp] subs x8, x0, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov w8, #-1 stur w8, [x29, #-4] b LBB0_3 LBB0_2: ldr x0, [sp] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fprintf ldr x0, [sp] bl _fclose stur wzr, [x29, #-4] b LBB0_3 LBB0_3: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "sample.txt" l_.str.1: ; @.str.1 .asciz "w" l_.str.2: ; @.str.2 .asciz "ERROR\n" l_.str.3: ; @.str.3 .asciz "GET /site0/page0-4707.html HTTP/1.1\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE5.01; Windows NT)\r\nHost: www.tutorialspoint.com\r\nAccept-Language: en-us\r\nAccept-Encoding: gzip, deflate\r\nConnection: Keep-Alive\r\n\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -16(%rbp) cmpq $0, %rax jne LBB0_2 ## %bb.1: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movl $-1, -4(%rbp) jmp LBB0_3 LBB0_2: movq -16(%rbp), %rdi leaq L_.str.3(%rip), %rsi movb $0, %al callq _fprintf movq -16(%rbp), %rdi callq _fclose movl $0, -4(%rbp) LBB0_3: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "sample.txt" L_.str.1: ## @.str.1 .asciz "w" L_.str.2: ## @.str.2 .asciz "ERROR\n" L_.str.3: ## @.str.3 .asciz "GET /site0/page0-4707.html HTTP/1.1\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE5.01; Windows NT)\r\nHost: www.tutorialspoint.com\r\nAccept-Language: en-us\r\nAccept-Encoding: gzip, deflate\r\nConnection: Keep-Alive\r\n\n" .subsections_via_symbols
the_stack_data/11074181.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __DATA,__data .globl _LaunchImage_iPad_Landscape_json ; @LaunchImage_iPad_Landscape_json _LaunchImage_iPad_Landscape_json: .ascii "{\n \"images\" : [\n {\n \"orientation\" : \"landscape\",\n \"idiom\" : \"ipad\",\n \"extent\" : \"full-screen\",\n \"minimum-system-version\" : \"7.0\",\n \"scale\" : \"1x\",\n \"expected-width\" : \"1024\",\n \"expected-height\" : \"768\",\n \"filename\": \"[email protected]\"\n },\n {\n \"orientation\" : \"landscape\",\n \"idiom\" : \"ipad\",\n \"extent\" : \"full-screen\",\n \"minimum-system-version\" : \"7.0\",\n \"scale\" : \"2x\",\n \"expected-width\" : \"2048\",\n \"expected-height\" : \"1536\",\n \"filename\": \"[email protected]\"\n },\n {\n \"orientation\" : \"landscape\",\n \"idiom\" : \"ipad\",\n \"extent\" : \"to-status-bar\",\n \"scale\" : \"1x\",\n \"expected-width\" : \"1024\",\n \"expected-height\" : \"748\",\n \"filename\": \"[email protected]\"\n },\n {\n \"orientation\" : \"landscape\",\n \"idiom\" : \"ipad\",\n \"extent\" : \"full-screen\",\n \"scale\" : \"1x\",\n \"expected-width\" : \"1024\",\n \"expected-height\" : \"768\",\n \"filename\": \"[email protected]\"\n },\n {\n \"orientation\" : \"landscape\",\n \"idiom\" : \"ipad\",\n \"extent\" : \"to-status-bar\",\n \"scale\" : \"2x\",\n \"expected-width\" : \"2048\",\n \"expected-height\" : \"1496\",\n \"filename\": \"[email protected]\"\n },\n {\n \"orientation\" : \"landscape\",\n \"idiom\" : \"ipad\",\n \"extent\" : \"full-screen\",\n \"scale\" : \"2x\",\n \"expected-width\" : \"2048\",\n \"expected-height\" : \"1536\",\n \"filename\": \"[email protected]\"\n }\n ]\n}\n" .globl _LaunchImage_iPad_Landscape_json_len ; @LaunchImage_iPad_Landscape_json_len .p2align 2 _LaunchImage_iPad_Landscape_json_len: .long 1857 ; 0x741 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __DATA,__data .globl _LaunchImage_iPad_Landscape_json ## @LaunchImage_iPad_Landscape_json .p2align 4 _LaunchImage_iPad_Landscape_json: .ascii "{\n \"images\" : [\n {\n \"orientation\" : \"landscape\",\n \"idiom\" : \"ipad\",\n \"extent\" : \"full-screen\",\n \"minimum-system-version\" : \"7.0\",\n \"scale\" : \"1x\",\n \"expected-width\" : \"1024\",\n \"expected-height\" : \"768\",\n \"filename\": \"[email protected]\"\n },\n {\n \"orientation\" : \"landscape\",\n \"idiom\" : \"ipad\",\n \"extent\" : \"full-screen\",\n \"minimum-system-version\" : \"7.0\",\n \"scale\" : \"2x\",\n \"expected-width\" : \"2048\",\n \"expected-height\" : \"1536\",\n \"filename\": \"[email protected]\"\n },\n {\n \"orientation\" : \"landscape\",\n \"idiom\" : \"ipad\",\n \"extent\" : \"to-status-bar\",\n \"scale\" : \"1x\",\n \"expected-width\" : \"1024\",\n \"expected-height\" : \"748\",\n \"filename\": \"[email protected]\"\n },\n {\n \"orientation\" : \"landscape\",\n \"idiom\" : \"ipad\",\n \"extent\" : \"full-screen\",\n \"scale\" : \"1x\",\n \"expected-width\" : \"1024\",\n \"expected-height\" : \"768\",\n \"filename\": \"[email protected]\"\n },\n {\n \"orientation\" : \"landscape\",\n \"idiom\" : \"ipad\",\n \"extent\" : \"to-status-bar\",\n \"scale\" : \"2x\",\n \"expected-width\" : \"2048\",\n \"expected-height\" : \"1496\",\n \"filename\": \"[email protected]\"\n },\n {\n \"orientation\" : \"landscape\",\n \"idiom\" : \"ipad\",\n \"extent\" : \"full-screen\",\n \"scale\" : \"2x\",\n \"expected-width\" : \"2048\",\n \"expected-height\" : \"1536\",\n \"filename\": \"[email protected]\"\n }\n ]\n}\n" .globl _LaunchImage_iPad_Landscape_json_len ## @LaunchImage_iPad_Landscape_json_len .p2align 2 _LaunchImage_iPad_Landscape_json_len: .long 1857 ## 0x741 .subsections_via_symbols
the_stack_data/225142657.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ; -- Begin function foo .p2align 2 _foo: ; @foo .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 ldr x8, [sp, #24] ldr x8, [x8, #8] ldr x9, [sp, #24] ldr x9, [x9] add x8, x8, x9 str x8, [sp, #16] ldr q0, [sp, #16] str q0, [sp] add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ## -- Begin function foo .p2align 4, 0x90 _foo: ## @foo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq -8(%rbp), %rax movq 8(%rax), %rax movq -8(%rbp), %rcx addq (%rcx), %rax movq %rax, -16(%rbp) movq -16(%rbp), %rax movq %rax, -32(%rbp) movq -8(%rbp), %rax movq %rax, -24(%rbp) popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/26395.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub sp, sp, #1024 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 add x0, sp, #16 mov w1, #1000 bl _get_line str w0, [sp, #8] subs w8, w0, #0 cset w8, le tbnz w8, #0, LBB0_5 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] subs w8, w8, #80 cset w8, le tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 mov x9, sp add x8, sp, #16 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_5: ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: bl ___stack_chk_fail LBB0_7: mov w0, #0 add sp, sp, #1024 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _get_line ; -- Begin function get_line .p2align 2 _get_line: ; @get_line .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] str wzr, [sp, #12] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] ldur w9, [x29, #-12] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge mov w9, #0 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB1_4 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x0, [x8] bl _getc str w0, [sp, #16] adds w8, w0, #1 cset w8, eq mov w9, #0 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #16] subs w8, w8, #10 cset w8, ne str w8, [sp, #8] ; 4-byte Folded Spill b LBB1_4 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #8] ; 4-byte Folded Reload tbz w8, #0, LBB1_7 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #16] ldur x9, [x29, #-8] ldrsw x10, [sp, #12] strb w8, [x9, x10] b LBB1_6 LBB1_6: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB1_1 LBB1_7: ldr w8, [sp, #16] subs w8, w8, #10 cset w8, ne tbnz w8, #0, LBB1_9 b LBB1_8 LBB1_8: ldr w8, [sp, #16] ldur x9, [x29, #-8] ldrsw x10, [sp, #12] strb w8, [x9, x10] ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB1_9 LBB1_9: ldur x8, [x29, #-8] ldrsw x9, [sp, #12] add x8, x8, x9 strb wzr, [x8] ldr w0, [sp, #12] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $1024, %rsp ## imm = 0x400 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -1012(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 leaq -1008(%rbp), %rdi movl $1000, %esi ## imm = 0x3E8 callq _get_line movl %eax, -1016(%rbp) cmpl $0, %eax jle LBB0_5 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 cmpl $80, -1016(%rbp) jle LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 leaq -1008(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf LBB0_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_5: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_7 ## %bb.6: xorl %eax, %eax addq $1024, %rsp ## imm = 0x400 popq %rbp retq LBB0_7: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _get_line ## -- Begin function get_line .p2align 4, 0x90 _get_line: ## @get_line .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl $0, -20(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %ecx movl -12(%rbp), %edx subl $1, %edx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl %edx, %ecx movb %al, -21(%rbp) ## 1-byte Spill jge LBB1_4 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _getc movl %eax, %ecx movl %ecx, -16(%rbp) xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $-1, %ecx movb %al, -21(%rbp) ## 1-byte Spill je LBB1_4 ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 cmpl $10, -16(%rbp) setne %al movb %al, -21(%rbp) ## 1-byte Spill LBB1_4: ## in Loop: Header=BB1_1 Depth=1 movb -21(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB1_5 jmp LBB1_7 LBB1_5: ## in Loop: Header=BB1_1 Depth=1 movl -16(%rbp), %eax movb %al, %dl movq -8(%rbp), %rax movslq -20(%rbp), %rcx movb %dl, (%rax,%rcx) ## %bb.6: ## in Loop: Header=BB1_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB1_1 LBB1_7: cmpl $10, -16(%rbp) jne LBB1_9 ## %bb.8: movl -16(%rbp), %eax movb %al, %dl movq -8(%rbp), %rax movslq -20(%rbp), %rcx movb %dl, (%rax,%rcx) movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) LBB1_9: movq -8(%rbp), %rax movslq -20(%rbp), %rcx movb $0, (%rax,%rcx) movl -20(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s" .subsections_via_symbols
the_stack_data/124580.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #4] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov w8, #1 str w8, [sp, #8] bl _func_nofb bl _func_loopfb ldr w0, [sp, #4] ; 4-byte Folded Reload ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $1, -8(%rbp) callq _func_nofb callq _func_loopfb xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/107953902.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #4] ; 4-byte Folded Spill stur wzr, [x29, #-4] bl _foo mov x8, x0 ldr w0, [sp, #4] ; 4-byte Folded Reload subs w8, w8, #0 cset w8, eq and w8, w8, #0x1 ands w8, w8, #0x1 cset w8, eq str w8, [sp, #8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movb $0, %al callq _foo movl %eax, %edx movl $1, %eax xorl %ecx, %ecx cmpl $0, %edx cmovel %ecx, %eax movl %eax, -8(%rbp) xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/31389203.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _push ; -- Begin function push .p2align 2 _push: ; @push .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str w0, [sp, #28] str x1, [sp, #16] str w2, [sp, #12] ldr w8, [sp, #28] ldr x9, [sp, #16] ldrsw x10, [sp, #12] mov x11, x10 add w11, w11, #1 str w11, [sp, #12] str w8, [x9, x10, lsl #2] ldr w0, [sp, #12] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _pop ; -- Begin function pop .p2align 2 _pop: ; @pop .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str w1, [sp, #4] ldr w8, [sp, #4] subs w0, w8, #1 str w0, [sp, #4] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _peek ; -- Begin function peek .p2align 2 _peek: ; @peek .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] str w1, [sp, #12] ldr w8, [sp, #12] subs w8, w8, #1 cset w8, lt tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: ldr x8, [sp, #16] ldr w9, [sp, #12] subs w9, w9, #1 ldr w8, [x8, w9, sxtw #2] str w8, [sp, #28] b LBB2_3 LBB2_2: str wzr, [sp, #28] b LBB2_3 LBB2_3: ldr w0, [sp, #28] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 mov w9, #4608 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #1, lsl #12 ; =4096 sub sp, sp, #512 add x8, sp, #1, lsl #12 ; =4096 add x8, x8, #192 str x8, [sp, #40] ; 8-byte Folded Spill adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #4300] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fopen ldr x8, [sp, #40] ; 8-byte Folded Reload str x0, [x8] str wzr, [sp, #4284] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x8] add x8, sp, #84 ldrsw x9, [sp, #4284] mov x10, x9 add w10, w10, #1 str w10, [sp, #4284] add x8, x8, x9, lsl #2 mov x9, sp str x8, [x9] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fscanf adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB3_5 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x8] add x8, sp, #84 str x8, [sp, #32] ; 8-byte Folded Spill add x10, x8, #1200 ldr w8, [sp, #4284] subs w8, w8, #1 mov w9, #10 smaddl x8, w8, w9, x10 mov x9, sp str x8, [x9] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fscanf ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w9, [sp, #4284] subs w9, w9, #1 add x0, x8, w9, sxtw #2 adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: ; in Loop: Header=BB3_1 Depth=1 ldr x8, [sp, #40] ; 8-byte Folded Reload ldr x0, [x8] add x8, sp, #84 add x10, x8, #1200 ldr w8, [sp, #4284] subs w8, w8, #1 mov w9, #10 smaddl x8, w8, w9, x10 add x8, x8, #5 mov x9, sp str x8, [x9] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fscanf b LBB3_4 LBB3_4: ; in Loop: Header=BB3_1 Depth=1 b LBB3_1 LBB3_5: str wzr, [sp, #80] b LBB3_6 LBB3_6: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #80] subs w8, w8, #14 cset w8, ge tbnz w8, #0, LBB3_9 b LBB3_7 LBB3_7: ; in Loop: Header=BB3_6 Depth=1 add x8, sp, #84 str x8, [sp, #16] ; 8-byte Folded Spill add x10, x8, #1200 ldr w8, [sp, #80] mov w9, #18 str w9, [sp, #28] ; 4-byte Folded Spill mul w8, w8, w9 add w8, w8, #5 mov w9, #10 smaddl x8, w8, w9, x10 add x0, x8, #5 bl _atoi ldr x8, [sp, #16] ; 8-byte Folded Reload ldr w9, [sp, #28] ; 4-byte Folded Reload ldrsw x11, [sp, #80] sub x10, x29, #80 str w0, [x10, x11, lsl #2] add x10, x8, #1200 ldr w8, [sp, #80] mul w8, w8, w9 add w8, w8, #4 mov w9, #10 smaddl x8, w8, w9, x10 add x0, x8, #5 bl _atoi ldr x8, [sp, #16] ; 8-byte Folded Reload ldr w9, [sp, #28] ; 4-byte Folded Reload subs w10, w0, #26 cset w10, eq ldrsw x12, [sp, #80] sub x11, x29, #94 and w10, w10, #0x1 strb w10, [x11, x12] add x10, x8, #1200 ldr w8, [sp, #80] mul w8, w8, w9 add w8, w8, #15 mov w9, #10 smaddl x8, w8, w9, x10 add x0, x8, #5 bl _atoi ldrsw x9, [sp, #80] sub x8, x29, #152 str w0, [x8, x9, lsl #2] b LBB3_8 LBB3_8: ; in Loop: Header=BB3_6 Depth=1 ldr w8, [sp, #80] add w8, w8, #1 str w8, [sp, #80] b LBB3_6 LBB3_9: str wzr, [sp, #76] str wzr, [sp, #72] b LBB3_10 LBB3_10: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #72] subs w8, w8, #14 cset w8, ge tbnz w8, #0, LBB3_27 b LBB3_11 LBB3_11: ; in Loop: Header=BB3_10 Depth=1 mov w8, #-1 str w8, [sp, #68] ldr w1, [sp, #76] sub x0, x29, #208 bl _peek ldrsw x9, [sp, #72] sub x8, x29, #80 ldr w8, [x8, x9, lsl #2] add w8, w0, w8 str w8, [sp, #64] ldr w8, [sp, #64] subs w8, w8, #9 cset w8, le tbnz w8, #0, LBB3_17 b LBB3_12 LBB3_12: ; in Loop: Header=BB3_10 Depth=1 ldr w1, [sp, #76] add x0, sp, #1, lsl #12 ; =4096 add x0, x0, #264 bl _peek str w0, [sp, #60] ldrsw x9, [sp, #72] sub x8, x29, #80 ldr w8, [x8, x9, lsl #2] subs w8, w8, #9 cset w8, ge tbnz w8, #0, LBB3_15 b LBB3_13 LBB3_13: ; in Loop: Header=BB3_10 Depth=1 ldrsw x9, [sp, #72] sub x8, x29, #80 ldr w9, [x8, x9, lsl #2] mov w8, #9 subs w8, w8, w9 ldrsw x10, [sp, #60] sub x9, x29, #152 ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB3_15 b LBB3_14 LBB3_14: ; in Loop: Header=BB3_10 Depth=1 ldrsw x9, [sp, #72] sub x8, x29, #80 ldr w9, [x8, x9, lsl #2] mov w8, #9 subs w8, w8, w9 ldrsw x10, [sp, #60] sub x9, x29, #152 ldr w10, [x9, x10, lsl #2] subs w10, w8, w10 ldrsw x11, [sp, #60] add x8, sp, #1, lsl #12 ; =4096 add x8, x8, #208 str w10, [x8, x11, lsl #2] ldrsw x10, [sp, #60] ldr w8, [x8, x10, lsl #2] ldrsw x10, [sp, #60] ldr w9, [x9, x10, lsl #2] add w8, w8, w9 ldr w9, [sp, #76] subs w10, w9, #1 sub x9, x29, #208 str w8, [x9, w10, sxtw #2] ldr w8, [sp, #72] subs w8, w8, #1 str w8, [sp, #72] b LBB3_26 LBB3_15: ; in Loop: Header=BB3_10 Depth=1 mov w8, #9 str w8, [sp, #68] b LBB3_16 LBB3_16: ; in Loop: Header=BB3_10 Depth=1 b LBB3_21 LBB3_17: ; in Loop: Header=BB3_10 Depth=1 ldr w8, [sp, #64] subs w8, w8, #1 cset w8, ge tbnz w8, #0, LBB3_19 b LBB3_18 LBB3_18: ; in Loop: Header=BB3_10 Depth=1 mov w8, #9 str w8, [sp, #68] b LBB3_20 LBB3_19: ; in Loop: Header=BB3_10 Depth=1 ldr w8, [sp, #64] str w8, [sp, #68] b LBB3_20 LBB3_20: ; in Loop: Header=BB3_10 Depth=1 b LBB3_21 LBB3_21: ; in Loop: Header=BB3_10 Depth=1 ldr w8, [sp, #64] ldr w9, [sp, #68] subs w8, w8, w9 cset w8, ne and w8, w8, #0x1 str w8, [sp, #56] ldrsw x9, [sp, #72] sub x8, x29, #94 add x8, x8, x9 ldrb w8, [x8] tbz w8, #0, LBB3_23 b LBB3_22 LBB3_22: ; in Loop: Header=BB3_10 Depth=1 ldr w1, [sp, #76] sub x0, x29, #208 bl _pop str w0, [sp, #76] b LBB3_23 LBB3_23: ; in Loop: Header=BB3_10 Depth=1 ldr w8, [sp, #56] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB3_25 b LBB3_24 LBB3_24: ; in Loop: Header=BB3_10 Depth=1 ldr w8, [sp, #72] ldrsw x10, [sp, #76] add x9, sp, #1, lsl #12 ; =4096 add x9, x9, #264 str w8, [x9, x10, lsl #2] ldrsw x9, [sp, #72] sub x8, x29, #152 ldr w8, [x8, x9, lsl #2] ldr w9, [sp, #68] add w0, w8, w9 ldr w2, [sp, #76] sub x1, x29, #208 bl _push str w0, [sp, #76] b LBB3_25 LBB3_25: ; in Loop: Header=BB3_10 Depth=1 ldr w8, [sp, #68] ldrsw x10, [sp, #72] add x9, sp, #1, lsl #12 ; =4096 add x9, x9, #208 str w8, [x9, x10, lsl #2] b LBB3_26 LBB3_26: ; in Loop: Header=BB3_10 Depth=1 ldr w8, [sp, #72] add w8, w8, #1 str w8, [sp, #72] b LBB3_10 LBB3_27: str wzr, [sp, #52] b LBB3_28 LBB3_28: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #52] subs w8, w8, #14 cset w8, ge tbnz w8, #0, LBB3_31 b LBB3_29 LBB3_29: ; in Loop: Header=BB3_28 Depth=1 ldrsw x9, [sp, #52] add x8, sp, #1, lsl #12 ; =4096 add x8, x8, #208 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB3_30 LBB3_30: ; in Loop: Header=BB3_28 Depth=1 ldr w8, [sp, #52] add w8, w8, #1 str w8, [sp, #52] b LBB3_28 LBB3_31: adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _puts ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB3_33 b LBB3_32 LBB3_32: bl ___stack_chk_fail LBB3_33: mov w0, #0 add sp, sp, #1, lsl #12 ; =4096 add sp, sp, #512 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "inputs/input24" l_.str.1: ; @.str.1 .asciz "r" l_.str.2: ; @.str.2 .asciz "%s" l_.str.3: ; @.str.3 .asciz "inp" l_.str.4: ; @.str.4 .asciz "%d" l_.str.5: ; @.str.5 .space 1 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _push ## -- Begin function push .p2align 4, 0x90 _push: ## @push .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) movl %edx, -20(%rbp) movl -4(%rbp), %edx movq -16(%rbp), %rax movl -20(%rbp), %ecx movl %ecx, %esi addl $1, %esi movl %esi, -20(%rbp) movslq %ecx, %rcx movl %edx, (%rax,%rcx,4) movl -20(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _pop ## -- Begin function pop .p2align 4, 0x90 _pop: ## @pop .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movl -12(%rbp), %eax addl $-1, %eax movl %eax, -12(%rbp) popq %rbp retq .cfi_endproc ## -- End function .globl _peek ## -- Begin function peek .p2align 4, 0x90 _peek: ## @peek .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movl %esi, -20(%rbp) cmpl $1, -20(%rbp) jl LBB2_2 ## %bb.1: movq -16(%rbp), %rax movl -20(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %eax movl %eax, -4(%rbp) jmp LBB2_3 LBB2_2: movl $0, -4(%rbp) LBB2_3: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $4592, %eax ## imm = 0x11F0 callq ____chkstk_darwin subq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -340(%rbp) leaq L_.str(%rip), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -352(%rbp) movl $0, -360(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 movq -352(%rbp), %rdi leaq -4560(%rbp), %rdx movl -360(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -360(%rbp) cltq shlq $2, %rax addq %rax, %rdx leaq L_.str.2(%rip), %rsi movb $0, %al callq _fscanf cmpl $-1, %eax je LBB3_5 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movq -352(%rbp), %rdi leaq -4560(%rbp), %rdx addq $1200, %rdx ## imm = 0x4B0 movl -360(%rbp), %eax subl $1, %eax cltq imulq $10, %rax, %rax addq %rax, %rdx leaq L_.str.2(%rip), %rsi movb $0, %al callq _fscanf leaq -4560(%rbp), %rdi movl -360(%rbp), %eax subl $1, %eax cltq shlq $2, %rax addq %rax, %rdi leaq L_.str.3(%rip), %rsi callq _strcmp cmpl $0, %eax je LBB3_4 ## %bb.3: ## in Loop: Header=BB3_1 Depth=1 movq -352(%rbp), %rdi leaq -4560(%rbp), %rdx addq $1200, %rdx ## imm = 0x4B0 movl -360(%rbp), %eax subl $1, %eax cltq imulq $10, %rax, %rax addq %rax, %rdx addq $5, %rdx leaq L_.str.2(%rip), %rsi movb $0, %al callq _fscanf LBB3_4: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_1 LBB3_5: movl $0, -4564(%rbp) LBB3_6: ## =>This Inner Loop Header: Depth=1 cmpl $14, -4564(%rbp) jge LBB3_9 ## %bb.7: ## in Loop: Header=BB3_6 Depth=1 leaq -4560(%rbp), %rdi addq $1200, %rdi ## imm = 0x4B0 imull $18, -4564(%rbp), %eax addl $5, %eax cltq imulq $10, %rax, %rax addq %rax, %rdi addq $5, %rdi callq _atoi movl %eax, %ecx movslq -4564(%rbp), %rax movl %ecx, -64(%rbp,%rax,4) leaq -4560(%rbp), %rdi addq $1200, %rdi ## imm = 0x4B0 imull $18, -4564(%rbp), %eax addl $4, %eax cltq imulq $10, %rax, %rax addq %rax, %rdi addq $5, %rdi callq _atoi cmpl $26, %eax sete %cl movslq -4564(%rbp), %rax andb $1, %cl movb %cl, -78(%rbp,%rax) leaq -4560(%rbp), %rdi addq $1200, %rdi ## imm = 0x4B0 imull $18, -4564(%rbp), %eax addl $15, %eax cltq imulq $10, %rax, %rax addq %rax, %rdi addq $5, %rdi callq _atoi movl %eax, %ecx movslq -4564(%rbp), %rax movl %ecx, -144(%rbp,%rax,4) ## %bb.8: ## in Loop: Header=BB3_6 Depth=1 movl -4564(%rbp), %eax addl $1, %eax movl %eax, -4564(%rbp) jmp LBB3_6 LBB3_9: movl $0, -4568(%rbp) movl $0, -4572(%rbp) LBB3_10: ## =>This Inner Loop Header: Depth=1 cmpl $14, -4572(%rbp) jge LBB3_27 ## %bb.11: ## in Loop: Header=BB3_10 Depth=1 movl $-1, -4576(%rbp) leaq -208(%rbp), %rdi movl -4568(%rbp), %esi callq _peek movslq -4572(%rbp), %rcx addl -64(%rbp,%rcx,4), %eax movl %eax, -4580(%rbp) cmpl $9, -4580(%rbp) jle LBB3_17 ## %bb.12: ## in Loop: Header=BB3_10 Depth=1 leaq -272(%rbp), %rdi movl -4568(%rbp), %esi callq _peek movl %eax, -4584(%rbp) movslq -4572(%rbp), %rax cmpl $9, -64(%rbp,%rax,4) jge LBB3_15 ## %bb.13: ## in Loop: Header=BB3_10 Depth=1 movslq -4572(%rbp), %rcx movl $9, %eax subl -64(%rbp,%rcx,4), %eax movslq -4584(%rbp), %rcx cmpl -144(%rbp,%rcx,4), %eax jle LBB3_15 ## %bb.14: ## in Loop: Header=BB3_10 Depth=1 movslq -4572(%rbp), %rax movl $9, %ecx subl -64(%rbp,%rax,4), %ecx movslq -4584(%rbp), %rax subl -144(%rbp,%rax,4), %ecx movslq -4584(%rbp), %rax movl %ecx, -336(%rbp,%rax,4) movslq -4584(%rbp), %rax movl -336(%rbp,%rax,4), %ecx movslq -4584(%rbp), %rax addl -144(%rbp,%rax,4), %ecx movl -4568(%rbp), %eax subl $1, %eax cltq movl %ecx, -208(%rbp,%rax,4) movl -4572(%rbp), %eax addl $-1, %eax movl %eax, -4572(%rbp) jmp LBB3_26 LBB3_15: ## in Loop: Header=BB3_10 Depth=1 movl $9, -4576(%rbp) ## %bb.16: ## in Loop: Header=BB3_10 Depth=1 jmp LBB3_21 LBB3_17: ## in Loop: Header=BB3_10 Depth=1 cmpl $1, -4580(%rbp) jge LBB3_19 ## %bb.18: ## in Loop: Header=BB3_10 Depth=1 movl $9, -4576(%rbp) jmp LBB3_20 LBB3_19: ## in Loop: Header=BB3_10 Depth=1 movl -4580(%rbp), %eax movl %eax, -4576(%rbp) LBB3_20: ## in Loop: Header=BB3_10 Depth=1 jmp LBB3_21 LBB3_21: ## in Loop: Header=BB3_10 Depth=1 movl -4580(%rbp), %eax cmpl -4576(%rbp), %eax setne %al andb $1, %al movzbl %al, %eax movl %eax, -4588(%rbp) movslq -4572(%rbp), %rax testb $1, -78(%rbp,%rax) je LBB3_23 ## %bb.22: ## in Loop: Header=BB3_10 Depth=1 leaq -208(%rbp), %rdi movl -4568(%rbp), %esi callq _pop movl %eax, -4568(%rbp) LBB3_23: ## in Loop: Header=BB3_10 Depth=1 cmpl $0, -4588(%rbp) je LBB3_25 ## %bb.24: ## in Loop: Header=BB3_10 Depth=1 movl -4572(%rbp), %ecx movslq -4568(%rbp), %rax movl %ecx, -272(%rbp,%rax,4) movslq -4572(%rbp), %rax movl -144(%rbp,%rax,4), %edi addl -4576(%rbp), %edi leaq -208(%rbp), %rsi movl -4568(%rbp), %edx callq _push movl %eax, -4568(%rbp) LBB3_25: ## in Loop: Header=BB3_10 Depth=1 movl -4576(%rbp), %ecx movslq -4572(%rbp), %rax movl %ecx, -336(%rbp,%rax,4) LBB3_26: ## in Loop: Header=BB3_10 Depth=1 movl -4572(%rbp), %eax addl $1, %eax movl %eax, -4572(%rbp) jmp LBB3_10 LBB3_27: movl $0, -4592(%rbp) LBB3_28: ## =>This Inner Loop Header: Depth=1 cmpl $14, -4592(%rbp) jge LBB3_31 ## %bb.29: ## in Loop: Header=BB3_28 Depth=1 movslq -4592(%rbp), %rax movl -336(%rbp,%rax,4), %esi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf ## %bb.30: ## in Loop: Header=BB3_28 Depth=1 movl -4592(%rbp), %eax addl $1, %eax movl %eax, -4592(%rbp) jmp LBB3_28 LBB3_31: leaq L_.str.5(%rip), %rdi callq _puts movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB3_33 ## %bb.32: xorl %eax, %eax addq $4592, %rsp ## imm = 0x11F0 popq %rbp retq LBB3_33: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "inputs/input24" L_.str.1: ## @.str.1 .asciz "r" L_.str.2: ## @.str.2 .asciz "%s" L_.str.3: ## @.str.3 .asciz "inp" L_.str.4: ## @.str.4 .asciz "%d" L_.str.5: ## @.str.5 .space 1 .subsections_via_symbols
the_stack_data/87963.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #8] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov w0, #15 bl _primo ldr w0, [sp, #8] ; 4-byte Folded Reload ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _primo ; -- Begin function primo .p2align 2 _primo: ; @primo .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] mov w8, #1 str w8, [sp, #8] stur w8, [x29, #-8] b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_3 Depth 2 ldur w8, [x29, #-8] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB1_11 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr s1, [sp, #8] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 fsqrt d0, d0 fcvtzs w8, d0 str w8, [sp, #12] str wzr, [sp, #16] mov w8, #2 stur w8, [x29, #-12] b LBB1_3 LBB1_3: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-12] ldr w9, [sp, #12] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB1_8 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=2 ldr w8, [sp, #8] ldur w10, [x29, #-12] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 mov w8, #1 str w8, [sp, #16] b LBB1_8 LBB1_6: ; in Loop: Header=BB1_3 Depth=2 b LBB1_7 LBB1_7: ; in Loop: Header=BB1_3 Depth=2 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB1_3 LBB1_8: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #16] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_10 b LBB1_9 LBB1_9: ; in Loop: Header=BB1_1 Depth=1 ldr w0, [sp, #8] bl _binary ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] b LBB1_10 LBB1_10: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB1_1 LBB1_11: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _binary ; -- Begin function binary .p2align 2 _binary: ; @binary .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str w0, [sp, #32] mov w1, #0 str wzr, [sp, #28] add x0, sp, #36 mov x2, #36 bl _memset ldr w8, [sp, #32] str w8, [sp, #24] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #24] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB2_3 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #24] mov w9, #2 sdiv w10, w8, w9 mul w10, w10, w9 subs w8, w8, w10 ldrsw x11, [sp, #28] add x10, sp, #36 str w8, [x10, x11, lsl #2] ldr w8, [sp, #24] sdiv w8, w8, w9 str w8, [sp, #24] ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB2_1 LBB2_3: mov w8, #8 str w8, [sp, #20] b LBB2_4 LBB2_4: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB2_7 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_4 Depth=1 ldrsw x9, [sp, #20] add x8, sp, #36 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB2_6 LBB2_6: ; in Loop: Header=BB2_4 Depth=1 ldr w8, [sp, #20] subs w8, w8, #1 str w8, [sp, #20] b LBB2_4 LBB2_7: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB2_9 b LBB2_8 LBB2_8: bl ___stack_chk_fail LBB2_9: ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%01d" l_.str.1: ; @.str.1 .asciz "\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $15, %edi callq _primo xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _primo ## -- Begin function primo .p2align 4, 0x90 _primo: ## @primo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) movl $1, -24(%rbp) movl $1, -8(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_3 Depth 2 movl -8(%rbp), %eax cmpl -4(%rbp), %eax jg LBB1_11 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 cvtsi2sdl -24(%rbp), %xmm0 sqrtsd %xmm0, %xmm0 cvttsd2si %xmm0, %eax movl %eax, -20(%rbp) movl $0, -16(%rbp) movl $2, -12(%rbp) LBB1_3: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -12(%rbp), %eax cmpl -20(%rbp), %eax jg LBB1_8 ## %bb.4: ## in Loop: Header=BB1_3 Depth=2 movl -24(%rbp), %eax cltd idivl -12(%rbp) cmpl $0, %edx jne LBB1_6 ## %bb.5: ## in Loop: Header=BB1_1 Depth=1 movl $1, -16(%rbp) jmp LBB1_8 LBB1_6: ## in Loop: Header=BB1_3 Depth=2 jmp LBB1_7 LBB1_7: ## in Loop: Header=BB1_3 Depth=2 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB1_3 LBB1_8: ## in Loop: Header=BB1_1 Depth=1 cmpl $0, -16(%rbp) jne LBB1_10 ## %bb.9: ## in Loop: Header=BB1_1 Depth=1 movl -24(%rbp), %edi callq _binary movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) LBB1_10: ## in Loop: Header=BB1_1 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB1_1 LBB1_11: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _binary ## -- Begin function binary .p2align 4, 0x90 _binary: ## @binary .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl %edi, -52(%rbp) movl $0, -56(%rbp) leaq -48(%rbp), %rdi xorl %esi, %esi movl $36, %edx callq _memset movl -52(%rbp), %eax movl %eax, -60(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -60(%rbp) jle LBB2_3 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movl -60(%rbp), %eax movl $2, %ecx cltd idivl %ecx movslq -56(%rbp), %rax movl %edx, -48(%rbp,%rax,4) movl -60(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, -60(%rbp) movl -56(%rbp), %eax addl $1, %eax movl %eax, -56(%rbp) jmp LBB2_1 LBB2_3: movl $8, -64(%rbp) LBB2_4: ## =>This Inner Loop Header: Depth=1 cmpl $0, -64(%rbp) jl LBB2_7 ## %bb.5: ## in Loop: Header=BB2_4 Depth=1 movslq -64(%rbp), %rax movl -48(%rbp,%rax,4), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf ## %bb.6: ## in Loop: Header=BB2_4 Depth=1 movl -64(%rbp), %eax addl $-1, %eax movl %eax, -64(%rbp) jmp LBB2_4 LBB2_7: leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_9 ## %bb.8: addq $64, %rsp popq %rbp retq LBB2_9: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%01d" L_.str.1: ## @.str.1 .asciz "\n" .subsections_via_symbols
the_stack_data/6386560.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #144 .cfi_def_cfa_offset 144 stp x29, x30, [sp, #128] ; 16-byte Folded Spill add x29, sp, #128 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #52] str w0, [sp, #48] str x1, [sp, #40] sub x0, x29, #39 bl _gets str wzr, [sp, #36] str wzr, [sp, #28] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_4 Depth 2 ldrsw x9, [sp, #36] sub x8, x29, #39 ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_17 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrsw x9, [sp, #36] sub x8, x29, #39 ldrsb w8, [x8, x9] subs w8, w8, #32 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #32] str wzr, [sp, #24] b LBB0_4 LBB0_4: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #32] ldr w9, [sp, #28] subs w8, w8, w9 cset w8, ge mov w9, #0 str w9, [sp, #20] ; 4-byte Folded Spill tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_4 Depth=2 ldr w8, [sp, #24] subs w8, w8, #0 cset w8, eq str w8, [sp, #20] ; 4-byte Folded Spill b LBB0_6 LBB0_6: ; in Loop: Header=BB0_4 Depth=2 ldr w8, [sp, #20] ; 4-byte Folded Reload tbz w8, #0, LBB0_11 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_4 Depth=2 ldrsw x9, [sp, #36] sub x8, x29, #39 ldrsb w8, [x8, x9] ldrsw x10, [sp, #32] add x9, sp, #58 ldrsb w9, [x9, x10] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_9 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_4 Depth=2 mov w8, #1 str w8, [sp, #24] b LBB0_9 LBB0_9: ; in Loop: Header=BB0_4 Depth=2 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_4 Depth=2 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB0_4 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #24] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_1 Depth=1 ldrsw x9, [sp, #36] sub x8, x29, #39 ldrsb w8, [x8, x9] subs w8, w8, #32 cset w8, ne tbnz w8, #0, LBB0_15 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_1 Depth=1 ldrsw x9, [sp, #36] sub x8, x29, #39 add x8, x8, x9 ldrb w8, [x8] ldrsw x10, [sp, #28] add x9, sp, #58 add x9, x9, x10 strb w8, [x9] ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB0_15 LBB0_15: ; in Loop: Header=BB0_1 Depth=1 b LBB0_16 LBB0_16: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] b LBB0_1 LBB0_17: ldrsw x10, [sp, #28] add x8, sp, #58 mov x9, x8 add x9, x9, x10 strb wzr, [x9] mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_19 b LBB0_18 LBB0_18: bl ___stack_chk_fail LBB0_19: mov w0, #0 ldp x29, x30, [sp, #128] ; 16-byte Folded Reload add sp, sp, #144 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $128, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -84(%rbp) movl %edi, -88(%rbp) movq %rsi, -96(%rbp) leaq -48(%rbp), %rdi callq _gets movl $0, -100(%rbp) movl $0, -108(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_4 Depth 2 movslq -100(%rbp), %rax movsbl -48(%rbp,%rax), %eax cmpl $0, %eax je LBB0_17 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -100(%rbp), %rax movsbl -48(%rbp,%rax), %eax cmpl $32, %eax je LBB0_12 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl $0, -104(%rbp) movl $0, -112(%rbp) LBB0_4: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -104(%rbp), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl -108(%rbp), %ecx movb %al, -113(%rbp) ## 1-byte Spill jge LBB0_6 ## %bb.5: ## in Loop: Header=BB0_4 Depth=2 cmpl $0, -112(%rbp) setne %al xorb $-1, %al movb %al, -113(%rbp) ## 1-byte Spill LBB0_6: ## in Loop: Header=BB0_4 Depth=2 movb -113(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_7 jmp LBB0_11 LBB0_7: ## in Loop: Header=BB0_4 Depth=2 movslq -100(%rbp), %rax movsbl -48(%rbp,%rax), %eax movslq -104(%rbp), %rcx movsbl -80(%rbp,%rcx), %ecx cmpl %ecx, %eax jne LBB0_9 ## %bb.8: ## in Loop: Header=BB0_4 Depth=2 movl $1, -112(%rbp) LBB0_9: ## in Loop: Header=BB0_4 Depth=2 jmp LBB0_10 LBB0_10: ## in Loop: Header=BB0_4 Depth=2 movl -104(%rbp), %eax addl $1, %eax movl %eax, -104(%rbp) jmp LBB0_4 LBB0_11: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_12 LBB0_12: ## in Loop: Header=BB0_1 Depth=1 cmpl $0, -112(%rbp) je LBB0_14 ## %bb.13: ## in Loop: Header=BB0_1 Depth=1 movslq -100(%rbp), %rax movsbl -48(%rbp,%rax), %eax cmpl $32, %eax jne LBB0_15 LBB0_14: ## in Loop: Header=BB0_1 Depth=1 movslq -100(%rbp), %rax movb -48(%rbp,%rax), %cl movslq -108(%rbp), %rax movb %cl, -80(%rbp,%rax) movl -108(%rbp), %eax addl $1, %eax movl %eax, -108(%rbp) LBB0_15: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_16 LBB0_16: ## in Loop: Header=BB0_1 Depth=1 movl -100(%rbp), %eax addl $1, %eax movl %eax, -100(%rbp) jmp LBB0_1 LBB0_17: movslq -108(%rbp), %rax movb $0, -80(%rbp,%rax) leaq -80(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_19 ## %bb.18: xorl %eax, %eax addq $128, %rsp popq %rbp retq LBB0_19: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s\n" .subsections_via_symbols
the_stack_data/86075359.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #192 .cfi_def_cfa_offset 192 stp x29, x30, [sp, #176] ; 16-byte Folded Spill add x29, sp, #176 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] sub x0, x29, #48 adrp x1, l___const.main.Data@PAGE add x1, x1, l___const.main.Data@PAGEOFF mov x2, #40 str x2, [sp, #16] ; 8-byte Folded Spill bl _memcpy ldr x2, [sp, #16] ; 8-byte Folded Reload add x0, sp, #88 mov w1, #0 bl _memset str wzr, [sp, #44] str wzr, [sp, #40] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #40] subs w8, w8, #10 cset w8, gt tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldrsw x10, [sp, #40] add x9, sp, #48 mov w8, #0 str w8, [x9, x10, lsl #2] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #40] add w8, w8, #1 str w8, [sp, #40] b LBB0_1 LBB0_4: str wzr, [sp, #36] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #36] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldrsw x9, [sp, #36] sub x8, x29, #48 ldrsw x9, [x8, x9, lsl #2] add x8, sp, #48 add x9, x8, x9, lsl #2 ldr w8, [x9] add w8, w8, #1 str w8, [x9] b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #36] add w8, w8, #1 str w8, [sp, #36] b LBB0_5 LBB0_8: mov w8, #9 str w8, [sp, #44] mov w8, #10 str w8, [sp, #32] b LBB0_9 LBB0_9: ; =>This Loop Header: Depth=1 ; Child Loop BB0_11 Depth 2 ldr w8, [sp, #32] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_15 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 b LBB0_11 LBB0_11: ; Parent Loop BB0_9 Depth=1 ; => This Inner Loop Header: Depth=2 ldrsw x9, [sp, #32] add x8, sp, #48 ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB0_13 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_11 Depth=2 ldr w8, [sp, #32] ldrsw x10, [sp, #44] mov x9, x10 subs w9, w9, #1 str w9, [sp, #44] add x9, sp, #88 str w8, [x9, x10, lsl #2] ldrsw x9, [sp, #32] add x8, sp, #48 add x9, x8, x9, lsl #2 ldr w8, [x9] subs w8, w8, #1 str w8, [x9] b LBB0_11 LBB0_13: ; in Loop: Header=BB0_9 Depth=1 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_9 Depth=1 ldr w8, [sp, #32] subs w8, w8, #1 str w8, [sp, #32] b LBB0_9 LBB0_15: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf str wzr, [sp, #28] b LBB0_16 LBB0_16: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #28] subs w8, w8, #10 cset w8, ge tbnz w8, #0, LBB0_19 b LBB0_17 LBB0_17: ; in Loop: Header=BB0_16 Depth=1 ldrsw x9, [sp, #28] add x8, sp, #88 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_18 LBB0_18: ; in Loop: Header=BB0_16 Depth=1 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB0_16 LBB0_19: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_21 b LBB0_20 LBB0_20: bl ___stack_chk_fail LBB0_21: ldp x29, x30, [sp, #176] ; 16-byte Folded Reload add sp, sp, #192 ret .cfi_endproc ; -- End function .section __TEXT,__const .p2align 2 ; @__const.main.Data l___const.main.Data: .long 8 ; 0x8 .long 1 ; 0x1 .long 3 ; 0x3 .long 2 ; 0x2 .long 9 ; 0x9 .long 9 ; 0x9 .long 7 ; 0x7 .long 10 ; 0xa .long 5 ; 0x5 .long 2 ; 0x2 .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "{" l_.str.1: ; @.str.1 .asciz "%d," l_.str.2: ; @.str.2 .asciz "}\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $176, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) leaq -48(%rbp), %rdi leaq l___const.main.Data(%rip), %rsi movl $40, %edx callq _memcpy leaq -96(%rbp), %rdi xorl %esi, %esi movl $40, %edx callq _memset movl $0, -148(%rbp) movl $0, -152(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $10, -152(%rbp) jg LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -152(%rbp), %rax movl $0, -144(%rbp,%rax,4) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -152(%rbp), %eax addl $1, %eax movl %eax, -152(%rbp) jmp LBB0_1 LBB0_4: movl $0, -156(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 cmpl $10, -156(%rbp) jge LBB0_8 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movslq -156(%rbp), %rax movslq -48(%rbp,%rax,4), %rax movl -144(%rbp,%rax,4), %ecx addl $1, %ecx movl %ecx, -144(%rbp,%rax,4) ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movl -156(%rbp), %eax addl $1, %eax movl %eax, -156(%rbp) jmp LBB0_5 LBB0_8: movl $9, -148(%rbp) movl $10, -160(%rbp) LBB0_9: ## =>This Loop Header: Depth=1 ## Child Loop BB0_11 Depth 2 cmpl $0, -160(%rbp) jle LBB0_15 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 jmp LBB0_11 LBB0_11: ## Parent Loop BB0_9 Depth=1 ## => This Inner Loop Header: Depth=2 movslq -160(%rbp), %rax cmpl $0, -144(%rbp,%rax,4) jle LBB0_13 ## %bb.12: ## in Loop: Header=BB0_11 Depth=2 movl -160(%rbp), %ecx movl -148(%rbp), %eax movl %eax, %edx addl $-1, %edx movl %edx, -148(%rbp) cltq movl %ecx, -96(%rbp,%rax,4) movslq -160(%rbp), %rax movl -144(%rbp,%rax,4), %ecx subl $1, %ecx movl %ecx, -144(%rbp,%rax,4) jmp LBB0_11 LBB0_13: ## in Loop: Header=BB0_9 Depth=1 jmp LBB0_14 LBB0_14: ## in Loop: Header=BB0_9 Depth=1 movl -160(%rbp), %eax addl $-1, %eax movl %eax, -160(%rbp) jmp LBB0_9 LBB0_15: leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $0, -164(%rbp) LBB0_16: ## =>This Inner Loop Header: Depth=1 cmpl $10, -164(%rbp) jge LBB0_19 ## %bb.17: ## in Loop: Header=BB0_16 Depth=1 movslq -164(%rbp), %rax movl -96(%rbp,%rax,4), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf ## %bb.18: ## in Loop: Header=BB0_16 Depth=1 movl -164(%rbp), %eax addl $1, %eax movl %eax, -164(%rbp) jmp LBB0_16 LBB0_19: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_21 ## %bb.20: addq $176, %rsp popq %rbp retq LBB0_21: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__const .p2align 4 ## @__const.main.Data l___const.main.Data: .long 8 ## 0x8 .long 1 ## 0x1 .long 3 ## 0x3 .long 2 ## 0x2 .long 9 ## 0x9 .long 9 ## 0x9 .long 7 ## 0x7 .long 10 ## 0xa .long 5 ## 0x5 .long 2 ## 0x2 .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "{" L_.str.1: ## @.str.1 .asciz "%d," L_.str.2: ## @.str.2 .asciz "}\n" .subsections_via_symbols
the_stack_data/762108.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #128 .cfi_def_cfa_offset 128 stp x29, x30, [sp, #112] ; 16-byte Folded Spill add x29, sp, #112 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-44] stur w0, [x29, #-48] str x1, [sp, #56] ldur w8, [x29, #-48] subs w8, w8, #6 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr x8, [sp, #56] ldr x8, [x8] mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w8, #1 stur w8, [x29, #-44] b LBB0_6 LBB0_2: sub x2, x29, #24 stur xzr, [x29, #-24] stur xzr, [x29, #-16] sub x8, x29, #40 str x8, [sp, #24] ; 8-byte Folded Spill stur xzr, [x29, #-40] stur xzr, [x29, #-32] ldr x8, [sp, #56] ldr x1, [x8, #8] mov w0, #2 str w0, [sp, #32] ; 4-byte Folded Spill bl _inet_pton ldr x2, [sp, #24] ; 8-byte Folded Reload ldr w0, [sp, #32] ; 4-byte Folded Reload ldr x8, [sp, #56] ldr x1, [x8, #16] bl _inet_pton ldur w8, [x29, #-20] str w8, [sp, #52] ldur w8, [x29, #-36] str w8, [sp, #48] ldr x8, [sp, #56] ldr x0, [x8, #24] bl _atoi and w0, w0, #0xffff bl __OSSwapInt16 and w8, w0, #0xffff strh w8, [sp, #46] ldr x8, [sp, #56] ldr x0, [x8, #32] bl _atoi and w0, w0, #0xffff bl __OSSwapInt16 and w8, w0, #0xffff strh w8, [sp, #44] ldr x8, [sp, #56] ldr x0, [x8, #40] bl _atoi str w0, [sp, #40] ldr w8, [sp, #52] ldr w9, [sp, #48] eor w8, w8, w9 str w8, [sp, #36] ldrh w8, [sp, #46] ldrh w9, [sp, #44] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldrh w9, [sp, #46] ldrh w8, [sp, #44] orr w8, w8, w9, lsl #16 str w8, [sp, #36] b LBB0_5 LBB0_4: ldrh w9, [sp, #44] ldrh w8, [sp, #46] orr w8, w8, w9, lsl #16 str w8, [sp, #36] b LBB0_5 LBB0_5: ldr w8, [sp, #36] ldr w10, [sp, #40] udiv w9, w8, w10 mul w9, w9, w10 subs w10, w8, w9 mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf stur wzr, [x29, #-44] b LBB0_6 LBB0_6: ldur w8, [x29, #-44] str w8, [sp, #20] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: bl ___stack_chk_fail LBB0_8: ldr w0, [sp, #20] ; 4-byte Folded Reload ldp x29, x30, [sp, #112] ; 16-byte Folded Reload add sp, sp, #128 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function _OSSwapInt16 __OSSwapInt16: ; @_OSSwapInt16 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 strh w0, [sp, #14] ldrh w9, [sp, #14] ldrh w8, [sp, #14] asr w8, w8, #8 orr w8, w8, w9, lsl #8 and w0, w8, #0xffff add sp, sp, #16 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s [src_ip] [dst_ip] [src_port] [dst_port] [div]\n" l_.str.1: ; @.str.1 .asciz "%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -44(%rbp) movl %edi, -48(%rbp) movq %rsi, -56(%rbp) cmpl $6, -48(%rbp) je LBB0_2 ## %bb.1: movq -56(%rbp), %rax movq (%rax), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $1, -44(%rbp) jmp LBB0_6 LBB0_2: leaq -24(%rbp), %rdi xorl %esi, %esi movl $16, %edx callq _memset leaq -40(%rbp), %rdi xorl %esi, %esi movl $16, %edx callq _memset movq -56(%rbp), %rax movq 8(%rax), %rsi leaq -24(%rbp), %rdx movl $2, %edi callq _inet_pton movq -56(%rbp), %rax movq 16(%rax), %rsi leaq -40(%rbp), %rdx movl $2, %edi callq _inet_pton movl -20(%rbp), %eax movl %eax, -60(%rbp) movl -36(%rbp), %eax movl %eax, -64(%rbp) movq -56(%rbp), %rax movq 24(%rax), %rdi callq _atoi ## kill: def $ax killed $ax killed $eax movzwl %ax, %edi callq __OSSwapInt16 movzwl %ax, %eax ## kill: def $ax killed $ax killed $eax movw %ax, -66(%rbp) movq -56(%rbp), %rax movq 32(%rax), %rdi callq _atoi ## kill: def $ax killed $ax killed $eax movzwl %ax, %edi callq __OSSwapInt16 movzwl %ax, %eax ## kill: def $ax killed $ax killed $eax movw %ax, -68(%rbp) movq -56(%rbp), %rax movq 40(%rax), %rdi callq _atoi movl %eax, -72(%rbp) movl -60(%rbp), %eax xorl -64(%rbp), %eax movl %eax, -76(%rbp) movzwl -66(%rbp), %eax movzwl -68(%rbp), %ecx cmpl %ecx, %eax jg LBB0_4 ## %bb.3: movzwl -66(%rbp), %eax shll $16, %eax movzwl -68(%rbp), %ecx orl %ecx, %eax movl %eax, -76(%rbp) jmp LBB0_5 LBB0_4: movzwl -68(%rbp), %eax shll $16, %eax movzwl -66(%rbp), %ecx orl %ecx, %eax movl %eax, -76(%rbp) LBB0_5: movl -76(%rbp), %eax xorl %edx, %edx divl -72(%rbp) movl %edx, %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl $0, -44(%rbp) LBB0_6: movl -44(%rbp), %eax movl %eax, -80(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_8 ## %bb.7: movl -80(%rbp), %eax ## 4-byte Reload addq $80, %rsp popq %rbp retq LBB0_8: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function _OSSwapInt16 __OSSwapInt16: ## @_OSSwapInt16 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movw %di, %ax movw %ax, -2(%rbp) movzwl -2(%rbp), %eax shll $8, %eax movzwl -2(%rbp), %ecx sarl $8, %ecx orl %ecx, %eax ## kill: def $ax killed $ax killed $eax movzwl %ax, %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s [src_ip] [dst_ip] [src_port] [dst_port] [div]\n" L_.str.1: ## @.str.1 .asciz "%d\n" .subsections_via_symbols
the_stack_data/102532.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _IntialiseStack ; -- Begin function IntialiseStack .p2align 2 _IntialiseStack: ; @IntialiseStack .cfi_startproc ; %bb.0: adrp x9, _S@GOTPAGE ldr x9, [x9, _S@GOTPAGEOFF] mov w8, #-1 str w8, [x9, #400] ret .cfi_endproc ; -- End function .globl _IsEmpty ; -- Begin function IsEmpty .p2align 2 _IsEmpty: ; @IsEmpty .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 adrp x8, _S@GOTPAGE ldr x8, [x8, _S@GOTPAGEOFF] ldr w8, [x8, #400] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: mov w8, #1 str w8, [sp, #12] b LBB1_3 LBB1_2: str wzr, [sp, #12] b LBB1_3 LBB1_3: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _Push ; -- Begin function Push .p2align 2 _Push: ; @Push .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _S@GOTPAGE ldr x8, [x8, _S@GOTPAGEOFF] str x8, [sp] ; 8-byte Folded Spill stur w0, [x29, #-4] ldr w8, [x8, #400] subs w8, w8, #99 cset w8, ne tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w0, #1 bl _exit LBB2_2: ldr x9, [sp] ; 8-byte Folded Reload ldr w8, [x9, #400] add w8, w8, #1 str w8, [x9, #400] b LBB2_3 LBB2_3: ldr x9, [sp] ; 8-byte Folded Reload ldur w8, [x29, #-4] ldrsw x10, [x9, #400] adrp x9, _S@GOTPAGE ldr x9, [x9, _S@GOTPAGEOFF] str w8, [x9, x10, lsl #2] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _Pop ; -- Begin function Pop .p2align 2 _Pop: ; @Pop .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _S@GOTPAGE ldr x8, [x8, _S@GOTPAGEOFF] str x8, [sp] ; 8-byte Folded Spill bl _IsEmpty subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov w0, #1 bl _exit LBB3_2: ldr x9, [sp] ; 8-byte Folded Reload ldrsw x10, [x9, #400] adrp x8, _S@GOTPAGE ldr x8, [x8, _S@GOTPAGEOFF] ldr w8, [x8, x10, lsl #2] stur w8, [x29, #-4] ldr w8, [x9, #400] subs w8, w8, #1 str w8, [x9, #400] b LBB3_3 LBB3_3: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _StackTop ; -- Begin function StackTop .p2align 2 _StackTop: ; @StackTop .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 adrp x8, _S@GOTPAGE ldr x8, [x8, _S@GOTPAGEOFF] ldrsw x9, [x8, #400] ldr w8, [x8, x9, lsl #2] str w8, [sp, #12] ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] bl _IntialiseStack adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _scanf b LBB5_1 LBB5_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB5_3 b LBB5_2 LBB5_2: ; in Loop: Header=BB5_1 Depth=1 ldur w8, [x29, #-8] mov w10, #2 str w10, [sp, #12] ; 4-byte Folded Spill sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 stur w8, [x29, #-12] ldur w0, [x29, #-12] bl _Push ldr w9, [sp, #12] ; 4-byte Folded Reload ldur w8, [x29, #-8] sdiv w8, w8, w9 stur w8, [x29, #-8] b LBB5_1 LBB5_3: b LBB5_4 LBB5_4: ; =>This Inner Loop Header: Depth=1 bl _IsEmpty subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB5_6 b LBB5_5 LBB5_5: ; in Loop: Header=BB5_4 Depth=1 bl _Pop str w0, [sp, #16] ldr w9, [sp, #16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB5_4 LBB5_6: mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .comm _S,404,2 ; @S .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "stack overflow" l_.str.1: ; @.str.1 .asciz "\nstack underflow" l_.str.2: ; @.str.2 .asciz "enter a number" l_.str.3: ; @.str.3 .asciz "%d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _IntialiseStack ## -- Begin function IntialiseStack .p2align 4, 0x90 _IntialiseStack: ## @IntialiseStack .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _S@GOTPCREL(%rip), %rax movl $-1, 400(%rax) popq %rbp retq .cfi_endproc ## -- End function .globl _IsEmpty ## -- Begin function IsEmpty .p2align 4, 0x90 _IsEmpty: ## @IsEmpty .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _S@GOTPCREL(%rip), %rax cmpl $-1, 400(%rax) jne LBB1_2 ## %bb.1: movl $1, -4(%rbp) jmp LBB1_3 LBB1_2: movl $0, -4(%rbp) LBB1_3: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _Push ## -- Begin function Push .p2align 4, 0x90 _Push: ## @Push .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movq _S@GOTPCREL(%rip), %rax cmpl $99, 400(%rax) jne LBB2_2 ## %bb.1: leaq L_.str(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB2_2: movq _S@GOTPCREL(%rip), %rax movl 400(%rax), %ecx addl $1, %ecx movq _S@GOTPCREL(%rip), %rax movl %ecx, 400(%rax) ## %bb.3: movl -4(%rbp), %edx movq _S@GOTPCREL(%rip), %rax movslq 400(%rax), %rcx movq _S@GOTPCREL(%rip), %rax movl %edx, (%rax,%rcx,4) addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _Pop ## -- Begin function Pop .p2align 4, 0x90 _Pop: ## @Pop .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp callq _IsEmpty cmpl $0, %eax je LBB3_2 ## %bb.1: leaq L_.str.1(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB3_2: movq _S@GOTPCREL(%rip), %rax movslq 400(%rax), %rcx movq _S@GOTPCREL(%rip), %rax movl (%rax,%rcx,4), %eax movl %eax, -4(%rbp) movq _S@GOTPCREL(%rip), %rax movl 400(%rax), %ecx subl $1, %ecx movq _S@GOTPCREL(%rip), %rax movl %ecx, 400(%rax) ## %bb.3: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _StackTop ## -- Begin function StackTop .p2align 4, 0x90 _StackTop: ## @StackTop .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _S@GOTPCREL(%rip), %rax movslq 400(%rax), %rcx movq _S@GOTPCREL(%rip), %rax movl (%rax,%rcx,4), %eax movl %eax, -4(%rbp) movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) callq _IntialiseStack leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq L_.str.3(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf LBB5_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -8(%rbp) je LBB5_3 ## %bb.2: ## in Loop: Header=BB5_1 Depth=1 movl -8(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %edx, -12(%rbp) movl -12(%rbp), %edi callq _Push movl -8(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, -8(%rbp) jmp LBB5_1 LBB5_3: jmp LBB5_4 LBB5_4: ## =>This Inner Loop Header: Depth=1 callq _IsEmpty cmpl $0, %eax setne %al xorb $-1, %al testb $1, %al jne LBB5_5 jmp LBB5_6 LBB5_5: ## in Loop: Header=BB5_4 Depth=1 callq _Pop movl %eax, -16(%rbp) movl -16(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf jmp LBB5_4 LBB5_6: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .comm _S,404,2 ## @S .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "stack overflow" L_.str.1: ## @.str.1 .asciz "\nstack underflow" L_.str.2: ## @.str.2 .asciz "enter a number" L_.str.3: ## @.str.3 .asciz "%d" .subsections_via_symbols
the_stack_data/228319.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _puts mov x9, sp sub x8, x29, #8 str x8, [x9] sub x8, x29, #16 str x8, [x9, #8] add x8, sp, #24 str x8, [x9, #16] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _puts ldur d2, [x29, #-8] ldur d1, [x29, #-16] ldr d0, [sp, #24] mov x8, sp str d2, [x8] str d1, [x8, #8] str d0, [x8, #16] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter three floating-point numbers:" l_.str.1: ; @.str.1 .asciz "%le%lf%lg" l_.str.2: ; @.str.2 .asciz "\nHere are the numbers entered in plain" l_.str.3: ; @.str.3 .asciz "floating-point noation:" l_.str.4: ; @.str.4 .asciz "%f\n%f\n%f\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp leaq L_.str(%rip), %rdi callq _puts leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi leaq -16(%rbp), %rdx leaq -24(%rbp), %rcx movb $0, %al callq _scanf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq L_.str.3(%rip), %rdi callq _puts movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero movsd -16(%rbp), %xmm1 ## xmm1 = mem[0],zero movsd -24(%rbp), %xmm2 ## xmm2 = mem[0],zero leaq L_.str.4(%rip), %rdi movb $3, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter three floating-point numbers:" L_.str.1: ## @.str.1 .asciz "%le%lf%lg" L_.str.2: ## @.str.2 .asciz "\nHere are the numbers entered in plain" L_.str.3: ## @.str.3 .asciz "floating-point noation:" L_.str.4: ## @.str.4 .asciz "%f\n%f\n%f\n" .subsections_via_symbols
the_stack_data/184517340.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #16] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov w8, #13107 movk w8, #16419, lsl #16 fmov s0, w8 stur s0, [x29, #-8] ldur s1, [x29, #-8] fmov s0, #3.00000000 fmul s0, s0, s1 ldur s1, [x29, #-8] fmul s0, s0, s1 ldur s1, [x29, #-8] ldur s3, [x29, #-8] fmov s2, #5.00000000 fmul s2, s2, s3 ldur s3, [x29, #-8] fmul s2, s2, s3 fnmsub s0, s0, s1, s2 fmov s1, #6.00000000 fadd s0, s0, s1 stur s0, [x29, #-12] ldur s0, [x29, #-12] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr w0, [sp, #16] ; 4-byte Folded Reload ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "3x3 - 5x2 + 6 = %f\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function main LCPI0_0: .long 0x40c00000 ## float 6 LCPI0_1: .long 0x40a00000 ## float 5 LCPI0_2: .long 0x40400000 ## float 3 LCPI0_3: .long 0x40233333 ## float 2.54999995 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movss LCPI0_3(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -8(%rbp) movss LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero mulss -8(%rbp), %xmm0 mulss -8(%rbp), %xmm0 movss -8(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero movss LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss -8(%rbp), %xmm1 mulss -8(%rbp), %xmm1 movd %xmm1, %eax xorl $2147483648, %eax ## imm = 0x80000000 movd %eax, %xmm1 mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero addss %xmm1, %xmm0 movss %xmm0, -12(%rbp) movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str(%rip), %rdi movb $1, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "3x3 - 5x2 + 6 = %f\n" .subsections_via_symbols
the_stack_data/28262445.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #12] adrp x8, l___const.main.a@PAGE add x8, x8, l___const.main.a@PAGEOFF ldr q0, [x8] str q0, [sp, #16] ldr w8, [x8, #16] str w8, [sp, #32] ldr w9, [sp, #28] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr w9, [sp, #28] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: bl ___stack_chk_fail LBB0_2: mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__const .p2align 2 ; @__const.main.a l___const.main.a: .long 2 ; 0x2 .long 7 ; 0x7 .long 55 ; 0x37 .long 33 ; 0x21 .long 45 ; 0x2d .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "a[3]=%d\n" l_.str.1: ; @.str.1 .asciz "a[a]=%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -36(%rbp) movq l___const.main.a(%rip), %rax movq %rax, -32(%rbp) movq l___const.main.a+8(%rip), %rax movq %rax, -24(%rbp) movl l___const.main.a+16(%rip), %eax movl %eax, -16(%rbp) movl -20(%rbp), %esi leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl -20(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_2 ## %bb.1: xorl %eax, %eax addq $48, %rsp popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__const .p2align 4 ## @__const.main.a l___const.main.a: .long 2 ## 0x2 .long 7 ## 0x7 .long 55 ## 0x37 .long 33 ## 0x21 .long 45 ## 0x2d .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "a[3]=%d\n" L_.str.1: ## @.str.1 .asciz "a[a]=%d\n" .subsections_via_symbols
the_stack_data/116822.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #5 stur w8, [x29, #-4] mov w8, #10 stur w8, [x29, #-8] ldur w0, [x29, #-4] ldur w1, [x29, #-8] bl _mul stur w0, [x29, #-12] ldur w8, [x29, #-4] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-8] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _mul ; -- Begin function mul .p2align 2 _mul: ; @mul .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str w1, [sp, #8] ldr w8, [sp, #12] ldr w9, [sp, #8] mul w9, w8, w9 adrp x8, _p@GOTPAGE ldr x8, [x8, _p@GOTPAGEOFF] str w9, [x8] ldr w0, [x8] add sp, sp, #16 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "multiplication of %d and %d is %d" .comm _p,4,2 ; @p .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $5, -4(%rbp) movl $10, -8(%rbp) movl -4(%rbp), %edi movl -8(%rbp), %esi callq _mul movl %eax, -12(%rbp) movl -4(%rbp), %esi movl -8(%rbp), %edx movl -12(%rbp), %ecx leaq L_.str(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _mul ## -- Begin function mul .p2align 4, 0x90 _mul: ## @mul .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl -4(%rbp), %ecx imull -8(%rbp), %ecx movq _p@GOTPCREL(%rip), %rax movl %ecx, (%rax) movq _p@GOTPCREL(%rip), %rax movl (%rax), %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "multiplication of %d and %d is %d" .comm _p,4,2 ## @p .subsections_via_symbols
the_stack_data/88795.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fopen str x0, [sp, #16] str wzr, [sp, #8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x0, [sp, #16] bl _fgetc strb w0, [sp, #15] mov w8, #-1 subs w8, w8, w0, sxtb cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_1 LBB0_3: ldr w8, [sp, #8] subs w10, w8, #1 mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x0, [sp, #16] bl _fclose mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "sample.txt" l_.str.1: ; @.str.1 .asciz "r" l_.str.2: ; @.str.2 .asciz "The number of characters present in the file is %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -16(%rbp) movl $0, -24(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -16(%rbp), %rdi callq _fgetc ## kill: def $al killed $al killed $eax movb %al, -17(%rbp) movsbl %al, %eax cmpl $-1, %eax je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB0_1 LBB0_3: movl -24(%rbp), %esi subl $1, %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rdi callq _fclose xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "sample.txt" L_.str.1: ## @.str.1 .asciz "r" L_.str.2: ## @.str.2 .asciz "The number of characters present in the file is %d\n" .subsections_via_symbols
the_stack_data/232955830.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub sp, sp, #576 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #52] str w0, [sp, #48] str x1, [sp, #40] str wzr, [sp, #24] ldr w8, [sp, #48] str w8, [sp, #20] ; 4-byte Folded Spill subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: ldr w8, [sp, #20] ; 4-byte Folded Reload subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_4 LBB0_2: adrp x0, l_.str.67@PAGE add x0, x0, l_.str.67@PAGEOFF bl _printf mov w0, #1 bl _exit LBB0_3: b LBB0_5 LBB0_4: adrp x0, l_.str.68@PAGE add x0, x0, l_.str.68@PAGEOFF bl _printf mov w0, #1 bl _exit LBB0_5: ldr x8, [sp, #40] ldr x0, [x8, #8] adrp x1, l_.str.69@PAGE add x1, x1, l_.str.69@PAGEOFF bl _fopen str x0, [sp, #32] ldr x8, [sp, #32] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ldr x8, [sp, #40] ldr x8, [x8, #8] mov x9, sp str x8, [x9] adrp x0, l_.str.70@PAGE add x0, x0, l_.str.70@PAGEOFF bl _printf mov w0, #2 bl _exit LBB0_7: ldr x0, [sp, #32] bl _fgetc strb w0, [sp, #31] b LBB0_8 LBB0_8: ; =>This Inner Loop Header: Depth=1 ldrsb w8, [sp, #31] adds w8, w8, #1 cset w8, eq tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_8 Depth=1 ldrsb w0, [sp, #31] add x1, sp, #24 add x2, sp, #56 bl _parseLexeme ldr x0, [sp, #32] bl _fgetc strb w0, [sp, #31] b LBB0_8 LBB0_10: ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: bl ___stack_chk_fail LBB0_12: mov w0, #0 add sp, sp, #576 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _parseLexeme ; -- Begin function parseLexeme .p2align 2 _parseLexeme: ; @parseLexeme .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sturb w0, [x29, #-1] stur x1, [x29, #-16] stur x2, [x29, #-24] stur wzr, [x29, #-28] ldurb w8, [x29, #-1] sturb w8, [x29, #-30] sturb wzr, [x29, #-29] ldur x8, [x29, #-16] ldr w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldur x0, [x29, #-24] sub x1, x29, #30 mov x2, #-1 bl ___strcpy_chk b LBB1_3 LBB1_2: ldur x0, [x29, #-24] sub x1, x29, #30 mov x2, #-1 bl ___strcat_chk b LBB1_3 LBB1_3: ldur x8, [x29, #-16] ldr w8, [x8] subs w8, w8, #0 ; kill: def $x8 killed $w8 str x8, [sp, #40] ; 8-byte Folded Spill subs x8, x8, #6 cset w8, hi tbnz w8, #0, LBB1_82 ; %bb.4: ldr x11, [sp, #40] ; 8-byte Folded Reload adrp x10, lJTI1_0@PAGE add x10, x10, lJTI1_0@PAGEOFF Ltmp0: adr x8, Ltmp0 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB1_5: ldursb w8, [x29, #-1] str w8, [sp, #36] ; 4-byte Folded Spill subs w8, w8, #34 cset w8, eq tbnz w8, #0, LBB1_7 b LBB1_6 LBB1_6: ldr w8, [sp, #36] ; 4-byte Folded Reload subs w8, w8, #39 cset w8, eq tbnz w8, #0, LBB1_8 b LBB1_9 LBB1_7: ldur x9, [x29, #-16] mov w8, #4 str w8, [x9] b LBB1_84 LBB1_8: ldur x9, [x29, #-16] mov w8, #5 str w8, [x9] b LBB1_84 LBB1_9: ldursb w8, [x29, #-1] subs w8, w8, #48 cset w8, lt tbnz w8, #0, LBB1_12 b LBB1_10 LBB1_10: ldursb w8, [x29, #-1] subs w8, w8, #57 cset w8, gt tbnz w8, #0, LBB1_12 b LBB1_11 LBB1_11: ldur x9, [x29, #-16] mov w8, #6 str w8, [x9] b LBB1_84 LBB1_12: ldursb w8, [x29, #-1] subs w8, w8, #97 cset w8, lt tbnz w8, #0, LBB1_14 b LBB1_13 LBB1_13: ldursb w8, [x29, #-1] subs w8, w8, #122 cset w8, le tbnz w8, #0, LBB1_16 b LBB1_14 LBB1_14: ldursb w8, [x29, #-1] subs w8, w8, #65 cset w8, lt tbnz w8, #0, LBB1_17 b LBB1_15 LBB1_15: ldursb w8, [x29, #-1] subs w8, w8, #90 cset w8, gt tbnz w8, #0, LBB1_17 b LBB1_16 LBB1_16: ldur x9, [x29, #-16] mov w8, #1 str w8, [x9] b LBB1_84 LBB1_17: stur wzr, [x29, #-28] b LBB1_18 LBB1_18: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-28] subs w8, w8, #27 cset w8, ge tbnz w8, #0, LBB1_23 b LBB1_19 LBB1_19: ; in Loop: Header=BB1_18 Depth=1 ldur x0, [x29, #-24] ldursw x9, [x29, #-28] adrp x8, _ccxOperators@PAGE add x8, x8, _ccxOperators@PAGEOFF ldr x1, [x8, x9, lsl #3] mov x2, #1 bl _strncmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB1_21 b LBB1_20 LBB1_20: ldur x9, [x29, #-16] mov w8, #2 str w8, [x9] b LBB1_84 LBB1_21: ; in Loop: Header=BB1_18 Depth=1 b LBB1_22 LBB1_22: ; in Loop: Header=BB1_18 Depth=1 ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] b LBB1_18 LBB1_23: stur wzr, [x29, #-28] b LBB1_24 LBB1_24: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-28] subs w8, w8, #6 cset w8, ge tbnz w8, #0, LBB1_29 b LBB1_25 LBB1_25: ; in Loop: Header=BB1_24 Depth=1 ldur x0, [x29, #-24] ldursw x9, [x29, #-28] adrp x8, _ccxWhitespace@PAGE add x8, x8, _ccxWhitespace@PAGEOFF ldr x1, [x8, x9, lsl #3] mov x2, #1 bl _strncmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB1_27 b LBB1_26 LBB1_26: ldur x8, [x29, #-16] str wzr, [x8] b LBB1_84 LBB1_27: ; in Loop: Header=BB1_24 Depth=1 b LBB1_28 LBB1_28: ; in Loop: Header=BB1_24 Depth=1 ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] b LBB1_24 LBB1_29: adrp x0, l_.str.71@PAGE add x0, x0, l_.str.71@PAGEOFF bl _printf mov w0, #3 bl _exit LBB1_30: ldur x0, [x29, #-24] adrp x1, l_.str.72@PAGE add x1, x1, l_.str.72@PAGEOFF mov x2, #2 bl _strncmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB1_32 b LBB1_31 LBB1_31: ldur x9, [x29, #-16] mov w8, #3 str w8, [x9] b LBB1_84 LBB1_32: stur wzr, [x29, #-28] b LBB1_33 LBB1_33: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-28] subs w8, w8, #27 cset w8, ge tbnz w8, #0, LBB1_38 b LBB1_34 LBB1_34: ; in Loop: Header=BB1_33 Depth=1 ldur x0, [x29, #-24] ldursw x9, [x29, #-28] adrp x8, _ccxOperators@PAGE add x8, x8, _ccxOperators@PAGEOFF ldr x1, [x8, x9, lsl #3] mov x2, #2 bl _strncmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB1_36 b LBB1_35 LBB1_35: ldur x8, [x29, #-24] mov x9, sp str x8, [x9] adrp x0, l_.str.73@PAGE add x0, x0, l_.str.73@PAGEOFF bl _printf ldur x8, [x29, #-16] str wzr, [x8] b LBB1_84 LBB1_36: ; in Loop: Header=BB1_33 Depth=1 b LBB1_37 LBB1_37: ; in Loop: Header=BB1_33 Depth=1 ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] b LBB1_33 LBB1_38: stur wzr, [x29, #-28] b LBB1_39 LBB1_39: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-28] subs w8, w8, #27 cset w8, ge tbnz w8, #0, LBB1_44 b LBB1_40 LBB1_40: ; in Loop: Header=BB1_39 Depth=1 ldur x0, [x29, #-24] ldursw x9, [x29, #-28] adrp x8, _ccxOperators@PAGE add x8, x8, _ccxOperators@PAGEOFF ldr x1, [x8, x9, lsl #3] mov x2, #1 bl _strncmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB1_42 b LBB1_41 LBB1_41: ldur x8, [x29, #-24] ldrsb w10, [x8] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.74@PAGE add x0, x0, l_.str.74@PAGEOFF bl _printf ldur x8, [x29, #-16] str wzr, [x8] ldursb w0, [x29, #-1] ldur x1, [x29, #-16] ldur x2, [x29, #-24] bl _parseLexeme b LBB1_84 LBB1_42: ; in Loop: Header=BB1_39 Depth=1 b LBB1_43 LBB1_43: ; in Loop: Header=BB1_39 Depth=1 ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] b LBB1_39 LBB1_44: adrp x0, l_.str.75@PAGE add x0, x0, l_.str.75@PAGEOFF bl _printf mov w0, #3 bl _exit LBB1_45: ldursb w8, [x29, #-1] subs w8, w8, #97 cset w8, lt tbnz w8, #0, LBB1_47 b LBB1_46 LBB1_46: ldursb w8, [x29, #-1] subs w8, w8, #122 cset w8, le tbnz w8, #0, LBB1_59 b LBB1_47 LBB1_47: ldursb w8, [x29, #-1] subs w8, w8, #65 cset w8, lt tbnz w8, #0, LBB1_49 b LBB1_48 LBB1_48: ldursb w8, [x29, #-1] subs w8, w8, #90 cset w8, le tbnz w8, #0, LBB1_59 b LBB1_49 LBB1_49: ldursb w8, [x29, #-1] subs w8, w8, #48 cset w8, lt tbnz w8, #0, LBB1_51 b LBB1_50 LBB1_50: ldursb w8, [x29, #-1] subs w8, w8, #57 cset w8, le tbnz w8, #0, LBB1_59 b LBB1_51 LBB1_51: ldursb w8, [x29, #-1] subs w8, w8, #95 cset w8, eq tbnz w8, #0, LBB1_59 b LBB1_52 LBB1_52: ldur x8, [x29, #-24] str x8, [sp, #24] ; 8-byte Folded Spill ldur x0, [x29, #-24] bl _strlen ldr x8, [sp, #24] ; 8-byte Folded Reload subs x9, x0, #1 add x8, x8, x9 strb wzr, [x8] stur wzr, [x29, #-28] b LBB1_53 LBB1_53: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-28] subs w8, w8, #34 cset w8, ge tbnz w8, #0, LBB1_58 b LBB1_54 LBB1_54: ; in Loop: Header=BB1_53 Depth=1 ldur x0, [x29, #-24] ldursw x9, [x29, #-28] adrp x8, _ccxKeywords@PAGE add x8, x8, _ccxKeywords@PAGEOFF ldr x1, [x8, x9, lsl #3] bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB1_56 b LBB1_55 LBB1_55: ldur x8, [x29, #-24] mov x9, sp str x8, [x9] adrp x0, l_.str.76@PAGE add x0, x0, l_.str.76@PAGEOFF bl _printf ldur x8, [x29, #-16] str wzr, [x8] ldursb w0, [x29, #-1] ldur x1, [x29, #-16] ldur x2, [x29, #-24] bl _parseLexeme b LBB1_84 LBB1_56: ; in Loop: Header=BB1_53 Depth=1 b LBB1_57 LBB1_57: ; in Loop: Header=BB1_53 Depth=1 ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] b LBB1_53 LBB1_58: ldur x8, [x29, #-24] mov x9, sp str x8, [x9] adrp x0, l_.str.77@PAGE add x0, x0, l_.str.77@PAGEOFF bl _printf ldur x8, [x29, #-16] str wzr, [x8] ldursb w0, [x29, #-1] ldur x1, [x29, #-16] ldur x2, [x29, #-24] bl _parseLexeme b LBB1_84 LBB1_59: b LBB1_83 LBB1_60: ldursb w8, [x29, #-1] subs w8, w8, #47 cset w8, ne tbnz w8, #0, LBB1_64 b LBB1_61 LBB1_61: ldur x8, [x29, #-24] str x8, [sp, #16] ; 8-byte Folded Spill ldur x0, [x29, #-24] bl _strlen ldr x8, [sp, #16] ; 8-byte Folded Reload subs x9, x0, #2 ldrsb w8, [x8, x9] subs w8, w8, #42 cset w8, ne tbnz w8, #0, LBB1_63 b LBB1_62 LBB1_62: ldur x8, [x29, #-24] mov x9, sp str x8, [x9] adrp x0, l_.str.78@PAGE add x0, x0, l_.str.78@PAGEOFF bl _printf ldur x8, [x29, #-16] str wzr, [x8] b LBB1_84 LBB1_63: b LBB1_64 LBB1_64: b LBB1_83 LBB1_65: ldursb w8, [x29, #-1] subs w8, w8, #34 cset w8, ne tbnz w8, #0, LBB1_67 b LBB1_66 LBB1_66: ldur x8, [x29, #-24] mov x9, sp str x8, [x9] adrp x0, l_.str.79@PAGE add x0, x0, l_.str.79@PAGEOFF bl _printf ldur x8, [x29, #-16] str wzr, [x8] b LBB1_84 LBB1_67: b LBB1_83 LBB1_68: ldursb w8, [x29, #-1] subs w8, w8, #39 cset w8, ne tbnz w8, #0, LBB1_70 b LBB1_69 LBB1_69: ldur x8, [x29, #-24] mov x9, sp str x8, [x9] adrp x0, l_.str.80@PAGE add x0, x0, l_.str.80@PAGEOFF bl _printf ldur x8, [x29, #-16] str wzr, [x8] b LBB1_84 LBB1_70: b LBB1_83 LBB1_71: ldursb w8, [x29, #-1] subs w8, w8, #48 cset w8, lt tbnz w8, #0, LBB1_73 b LBB1_72 LBB1_72: ldursb w8, [x29, #-1] subs w8, w8, #57 cset w8, le tbnz w8, #0, LBB1_81 b LBB1_73 LBB1_73: ldursb w8, [x29, #-1] subs w8, w8, #97 cset w8, lt tbnz w8, #0, LBB1_75 b LBB1_74 LBB1_74: ldursb w8, [x29, #-1] subs w8, w8, #102 cset w8, le tbnz w8, #0, LBB1_81 b LBB1_75 LBB1_75: ldursb w8, [x29, #-1] subs w8, w8, #65 cset w8, lt tbnz w8, #0, LBB1_77 b LBB1_76 LBB1_76: ldursb w8, [x29, #-1] subs w8, w8, #70 cset w8, le tbnz w8, #0, LBB1_81 b LBB1_77 LBB1_77: ldursb w8, [x29, #-1] subs w8, w8, #95 cset w8, eq tbnz w8, #0, LBB1_81 b LBB1_78 LBB1_78: ldursb w8, [x29, #-1] subs w8, w8, #46 cset w8, eq tbnz w8, #0, LBB1_81 b LBB1_79 LBB1_79: ldursb w8, [x29, #-1] subs w8, w8, #35 cset w8, eq tbnz w8, #0, LBB1_81 b LBB1_80 LBB1_80: ldur x8, [x29, #-24] str x8, [sp, #8] ; 8-byte Folded Spill ldur x0, [x29, #-24] bl _strlen ldr x8, [sp, #8] ; 8-byte Folded Reload subs x9, x0, #1 add x8, x8, x9 strb wzr, [x8] ldur x8, [x29, #-24] mov x9, sp str x8, [x9] adrp x0, l_.str.81@PAGE add x0, x0, l_.str.81@PAGEOFF bl _printf ldur x8, [x29, #-16] str wzr, [x8] ldursb w0, [x29, #-1] ldur x1, [x29, #-16] ldur x2, [x29, #-24] bl _parseLexeme b LBB1_84 LBB1_81: b LBB1_83 LBB1_82: adrp x0, l_.str.82@PAGE add x0, x0, l_.str.82@PAGEOFF bl _printf mov w0, #4 bl _exit LBB1_83: b LBB1_84 LBB1_84: ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc .p2align 2 lJTI1_0: .long LBB1_5-Ltmp0 .long LBB1_45-Ltmp0 .long LBB1_30-Ltmp0 .long LBB1_60-Ltmp0 .long LBB1_65-Ltmp0 .long LBB1_68-Ltmp0 .long LBB1_71-Ltmp0 ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "accessor" l_.str.1: ; @.str.1 .asciz "and" l_.str.2: ; @.str.2 .asciz "array" l_.str.3: ; @.str.3 .asciz "begin" l_.str.4: ; @.str.4 .asciz "bool" l_.str.5: ; @.str.5 .asciz "case" l_.str.6: ; @.str.6 .asciz "else" l_.str.7: ; @.str.7 .asciz "elsif" l_.str.8: ; @.str.8 .asciz "end" l_.str.9: ; @.str.9 .asciz "exit" l_.str.10: ; @.str.10 .asciz "function" l_.str.11: ; @.str.11 .asciz "if" l_.str.12: ; @.str.12 .asciz "in" l_.str.13: ; @.str.13 .asciz "integer" l_.str.14: ; @.str.14 .asciz "interface" l_.str.15: ; @.str.15 .asciz "is" l_.str.16: ; @.str.16 .asciz "loop" l_.str.17: ; @.str.17 .asciz "module" l_.str.18: ; @.str.18 .asciz "mutator" l_.str.19: ; @.str.19 .asciz "natural" l_.str.20: ; @.str.20 .asciz "null" l_.str.21: ; @.str.21 .asciz "of" l_.str.22: ; @.str.22 .asciz "or" l_.str.23: ; @.str.23 .asciz "others" l_.str.24: ; @.str.24 .asciz "out" l_.str.25: ; @.str.25 .asciz "positive" l_.str.26: ; @.str.26 .asciz "procedure" l_.str.27: ; @.str.27 .asciz "return" l_.str.28: ; @.str.28 .asciz "struct" l_.str.29: ; @.str.29 .asciz "subtype" l_.str.30: ; @.str.30 .asciz "then" l_.str.31: ; @.str.31 .asciz "type" l_.str.32: ; @.str.32 .asciz "when" l_.str.33: ; @.str.33 .asciz "while" .section __DATA,__data .globl _ccxKeywords ; @ccxKeywords .p2align 3 _ccxKeywords: .quad l_.str .quad l_.str.1 .quad l_.str.2 .quad l_.str.3 .quad l_.str.4 .quad l_.str.5 .quad l_.str.6 .quad l_.str.7 .quad l_.str.8 .quad l_.str.9 .quad l_.str.10 .quad l_.str.11 .quad l_.str.12 .quad l_.str.13 .quad l_.str.14 .quad l_.str.15 .quad l_.str.16 .quad l_.str.17 .quad l_.str.18 .quad l_.str.19 .quad l_.str.20 .quad l_.str.21 .quad l_.str.22 .quad l_.str.23 .quad l_.str.24 .quad l_.str.25 .quad l_.str.26 .quad l_.str.27 .quad l_.str.28 .quad l_.str.29 .quad l_.str.30 .quad l_.str.31 .quad l_.str.32 .quad l_.str.33 .section __TEXT,__cstring,cstring_literals l_.str.34: ; @.str.34 .asciz "." l_.str.35: ; @.str.35 .asciz "<" l_.str.36: ; @.str.36 .asciz ">" l_.str.37: ; @.str.37 .asciz "(" l_.str.38: ; @.str.38 .asciz ")" l_.str.39: ; @.str.39 .asciz "+" l_.str.40: ; @.str.40 .asciz "-" l_.str.41: ; @.str.41 .asciz "*" l_.str.42: ; @.str.42 .asciz "/" l_.str.43: ; @.str.43 .asciz "|" l_.str.44: ; @.str.44 .asciz "&" l_.str.45: ; @.str.45 .asciz ";" l_.str.46: ; @.str.46 .asciz "," l_.str.47: ; @.str.47 .asciz ":" l_.str.48: ; @.str.48 .asciz "[" l_.str.49: ; @.str.49 .asciz "]" l_.str.50: ; @.str.50 .asciz "=" l_.str.51: ; @.str.51 .asciz ":=" l_.str.52: ; @.str.52 .asciz ".." l_.str.53: ; @.str.53 .asciz "<<" l_.str.54: ; @.str.54 .asciz ">>" l_.str.55: ; @.str.55 .asciz "<>" l_.str.56: ; @.str.56 .asciz "<=" l_.str.57: ; @.str.57 .asciz ">=" l_.str.58: ; @.str.58 .asciz "**" l_.str.59: ; @.str.59 .asciz "!=" l_.str.60: ; @.str.60 .asciz "=>" .section __DATA,__data .globl _ccxOperators ; @ccxOperators .p2align 3 _ccxOperators: .quad l_.str.34 .quad l_.str.35 .quad l_.str.36 .quad l_.str.37 .quad l_.str.38 .quad l_.str.39 .quad l_.str.40 .quad l_.str.41 .quad l_.str.42 .quad l_.str.43 .quad l_.str.44 .quad l_.str.45 .quad l_.str.46 .quad l_.str.47 .quad l_.str.48 .quad l_.str.49 .quad l_.str.50 .quad l_.str.51 .quad l_.str.52 .quad l_.str.53 .quad l_.str.54 .quad l_.str.55 .quad l_.str.56 .quad l_.str.57 .quad l_.str.58 .quad l_.str.59 .quad l_.str.60 .section __TEXT,__cstring,cstring_literals l_.str.61: ; @.str.61 .asciz " " l_.str.62: ; @.str.62 .asciz "\n" l_.str.63: ; @.str.63 .asciz "\t" l_.str.64: ; @.str.64 .asciz "\r" l_.str.65: ; @.str.65 .asciz "\013" l_.str.66: ; @.str.66 .asciz "\f" .section __DATA,__data .globl _ccxWhitespace ; @ccxWhitespace .p2align 3 _ccxWhitespace: .quad l_.str.61 .quad l_.str.62 .quad l_.str.63 .quad l_.str.64 .quad l_.str.65 .quad l_.str.66 .section __TEXT,__cstring,cstring_literals l_.str.67: ; @.str.67 .asciz "Error: No filename argument\n" l_.str.68: ; @.str.68 .asciz "Error: Extraneous arguements\n" l_.str.69: ; @.str.69 .asciz "r" l_.str.70: ; @.str.70 .asciz "Error: Couldn't open %s\n" l_.str.71: ; @.str.71 .asciz "ERROR: ENCOUNTERED UNK (LEX_FRESH)\n" l_.str.72: ; @.str.72 .asciz "/*" l_.str.73: ; @.str.73 .asciz "%s (operator)\n" l_.str.74: ; @.str.74 .asciz "%c (operator)\n" l_.str.75: ; @.str.75 .asciz "ERROR: ENCOUNTERED UNK (LEX_INDET_SYM)\n" l_.str.76: ; @.str.76 .asciz "%s (keyword)\n" l_.str.77: ; @.str.77 .asciz "%s (identifier)\n" l_.str.78: ; @.str.78 .asciz "%s (comment)\n" l_.str.79: ; @.str.79 .asciz "%s (string)\n" l_.str.80: ; @.str.80 .asciz "%s (char literal)\n" l_.str.81: ; @.str.81 .asciz "%s (numeric literal)\n" l_.str.82: ; @.str.82 .asciz "ERROR: NON-EXISTANT STATE or FALL THROUGH\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $576, %rsp ## imm = 0x240 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -532(%rbp) movl %edi, -536(%rbp) movq %rsi, -544(%rbp) movl $0, -560(%rbp) movl -536(%rbp), %eax movl %eax, -564(%rbp) ## 4-byte Spill subl $1, %eax je LBB0_1 jmp LBB0_12 LBB0_12: movl -564(%rbp), %eax ## 4-byte Reload subl $2, %eax je LBB0_2 jmp LBB0_3 LBB0_1: leaq L_.str.67(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB0_2: jmp LBB0_4 LBB0_3: leaq L_.str.68(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB0_4: movq -544(%rbp), %rax movq 8(%rax), %rdi leaq L_.str.69(%rip), %rsi callq _fopen movq %rax, -552(%rbp) cmpq $0, -552(%rbp) jne LBB0_6 ## %bb.5: movq -544(%rbp), %rax movq 8(%rax), %rsi leaq L_.str.70(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $2, %edi callq _exit LBB0_6: movq -552(%rbp), %rdi callq _fgetc ## kill: def $al killed $al killed $eax movb %al, -553(%rbp) LBB0_7: ## =>This Inner Loop Header: Depth=1 movsbl -553(%rbp), %eax cmpl $-1, %eax je LBB0_9 ## %bb.8: ## in Loop: Header=BB0_7 Depth=1 movb -553(%rbp), %al leaq -528(%rbp), %rdx leaq -560(%rbp), %rsi movsbl %al, %edi callq _parseLexeme movq -552(%rbp), %rdi callq _fgetc ## kill: def $al killed $al killed $eax movb %al, -553(%rbp) jmp LBB0_7 LBB0_9: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_11 ## %bb.10: xorl %eax, %eax addq $576, %rsp ## imm = 0x240 popq %rbp retq LBB0_11: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _parseLexeme ## -- Begin function parseLexeme .p2align 4, 0x90 _parseLexeme: ## @parseLexeme .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movb %dil, %al movb %al, -1(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movl $0, -28(%rbp) movb -1(%rbp), %al movb %al, -30(%rbp) movb $0, -29(%rbp) movq -16(%rbp), %rax cmpl $0, (%rax) jne LBB1_2 ## %bb.1: movq -24(%rbp), %rdi leaq -30(%rbp), %rsi movq $-1, %rdx callq ___strcpy_chk jmp LBB1_3 LBB1_2: movq -24(%rbp), %rdi leaq -30(%rbp), %rsi movq $-1, %rdx callq ___strcat_chk LBB1_3: movq -16(%rbp), %rax movl (%rax), %eax ## kill: def $rax killed $eax movq %rax, -40(%rbp) ## 8-byte Spill subq $6, %rax ja LBB1_80 ## %bb.83: movq -40(%rbp), %rax ## 8-byte Reload leaq LJTI1_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB1_4: movsbl -1(%rbp), %eax movl %eax, -44(%rbp) ## 4-byte Spill subl $34, %eax je LBB1_5 jmp LBB1_84 LBB1_84: movl -44(%rbp), %eax ## 4-byte Reload subl $39, %eax je LBB1_6 jmp LBB1_7 LBB1_5: movq -16(%rbp), %rax movl $4, (%rax) jmp LBB1_82 LBB1_6: movq -16(%rbp), %rax movl $5, (%rax) jmp LBB1_82 LBB1_7: movsbl -1(%rbp), %eax cmpl $48, %eax jl LBB1_10 ## %bb.8: movsbl -1(%rbp), %eax cmpl $57, %eax jg LBB1_10 ## %bb.9: movq -16(%rbp), %rax movl $6, (%rax) jmp LBB1_82 LBB1_10: movsbl -1(%rbp), %eax cmpl $97, %eax jl LBB1_12 ## %bb.11: movsbl -1(%rbp), %eax cmpl $122, %eax jle LBB1_14 LBB1_12: movsbl -1(%rbp), %eax cmpl $65, %eax jl LBB1_15 ## %bb.13: movsbl -1(%rbp), %eax cmpl $90, %eax jg LBB1_15 LBB1_14: movq -16(%rbp), %rax movl $1, (%rax) jmp LBB1_82 LBB1_15: movl $0, -28(%rbp) LBB1_16: ## =>This Inner Loop Header: Depth=1 cmpl $27, -28(%rbp) jge LBB1_21 ## %bb.17: ## in Loop: Header=BB1_16 Depth=1 movq -24(%rbp), %rdi movslq -28(%rbp), %rcx leaq _ccxOperators(%rip), %rax movq (%rax,%rcx,8), %rsi movl $1, %edx callq _strncmp cmpl $0, %eax jne LBB1_19 ## %bb.18: movq -16(%rbp), %rax movl $2, (%rax) jmp LBB1_82 LBB1_19: ## in Loop: Header=BB1_16 Depth=1 jmp LBB1_20 LBB1_20: ## in Loop: Header=BB1_16 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB1_16 LBB1_21: movl $0, -28(%rbp) LBB1_22: ## =>This Inner Loop Header: Depth=1 cmpl $6, -28(%rbp) jge LBB1_27 ## %bb.23: ## in Loop: Header=BB1_22 Depth=1 movq -24(%rbp), %rdi movslq -28(%rbp), %rcx leaq _ccxWhitespace(%rip), %rax movq (%rax,%rcx,8), %rsi movl $1, %edx callq _strncmp cmpl $0, %eax jne LBB1_25 ## %bb.24: movq -16(%rbp), %rax movl $0, (%rax) jmp LBB1_82 LBB1_25: ## in Loop: Header=BB1_22 Depth=1 jmp LBB1_26 LBB1_26: ## in Loop: Header=BB1_22 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB1_22 LBB1_27: leaq L_.str.71(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $3, %edi callq _exit LBB1_28: movq -24(%rbp), %rdi leaq L_.str.72(%rip), %rsi movl $2, %edx callq _strncmp cmpl $0, %eax jne LBB1_30 ## %bb.29: movq -16(%rbp), %rax movl $3, (%rax) jmp LBB1_82 LBB1_30: movl $0, -28(%rbp) LBB1_31: ## =>This Inner Loop Header: Depth=1 cmpl $27, -28(%rbp) jge LBB1_36 ## %bb.32: ## in Loop: Header=BB1_31 Depth=1 movq -24(%rbp), %rdi movslq -28(%rbp), %rcx leaq _ccxOperators(%rip), %rax movq (%rax,%rcx,8), %rsi movl $2, %edx callq _strncmp cmpl $0, %eax jne LBB1_34 ## %bb.33: movq -24(%rbp), %rsi leaq L_.str.73(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rax movl $0, (%rax) jmp LBB1_82 LBB1_34: ## in Loop: Header=BB1_31 Depth=1 jmp LBB1_35 LBB1_35: ## in Loop: Header=BB1_31 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB1_31 LBB1_36: movl $0, -28(%rbp) LBB1_37: ## =>This Inner Loop Header: Depth=1 cmpl $27, -28(%rbp) jge LBB1_42 ## %bb.38: ## in Loop: Header=BB1_37 Depth=1 movq -24(%rbp), %rdi movslq -28(%rbp), %rcx leaq _ccxOperators(%rip), %rax movq (%rax,%rcx,8), %rsi movl $1, %edx callq _strncmp cmpl $0, %eax jne LBB1_40 ## %bb.39: movq -24(%rbp), %rax movsbl (%rax), %esi leaq L_.str.74(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rax movl $0, (%rax) movb -1(%rbp), %al movq -16(%rbp), %rsi movq -24(%rbp), %rdx movsbl %al, %edi callq _parseLexeme jmp LBB1_82 LBB1_40: ## in Loop: Header=BB1_37 Depth=1 jmp LBB1_41 LBB1_41: ## in Loop: Header=BB1_37 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB1_37 LBB1_42: leaq L_.str.75(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $3, %edi callq _exit LBB1_43: movsbl -1(%rbp), %eax cmpl $97, %eax jl LBB1_45 ## %bb.44: movsbl -1(%rbp), %eax cmpl $122, %eax jle LBB1_57 LBB1_45: movsbl -1(%rbp), %eax cmpl $65, %eax jl LBB1_47 ## %bb.46: movsbl -1(%rbp), %eax cmpl $90, %eax jle LBB1_57 LBB1_47: movsbl -1(%rbp), %eax cmpl $48, %eax jl LBB1_49 ## %bb.48: movsbl -1(%rbp), %eax cmpl $57, %eax jle LBB1_57 LBB1_49: movsbl -1(%rbp), %eax cmpl $95, %eax je LBB1_57 ## %bb.50: movq -24(%rbp), %rax movq %rax, -56(%rbp) ## 8-byte Spill movq -24(%rbp), %rdi callq _strlen movq %rax, %rcx movq -56(%rbp), %rax ## 8-byte Reload subq $1, %rcx movb $0, (%rax,%rcx) movl $0, -28(%rbp) LBB1_51: ## =>This Inner Loop Header: Depth=1 cmpl $34, -28(%rbp) jge LBB1_56 ## %bb.52: ## in Loop: Header=BB1_51 Depth=1 movq -24(%rbp), %rdi movslq -28(%rbp), %rcx leaq _ccxKeywords(%rip), %rax movq (%rax,%rcx,8), %rsi callq _strcmp cmpl $0, %eax jne LBB1_54 ## %bb.53: movq -24(%rbp), %rsi leaq L_.str.76(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rax movl $0, (%rax) movb -1(%rbp), %al movq -16(%rbp), %rsi movq -24(%rbp), %rdx movsbl %al, %edi callq _parseLexeme jmp LBB1_82 LBB1_54: ## in Loop: Header=BB1_51 Depth=1 jmp LBB1_55 LBB1_55: ## in Loop: Header=BB1_51 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB1_51 LBB1_56: movq -24(%rbp), %rsi leaq L_.str.77(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rax movl $0, (%rax) movb -1(%rbp), %al movq -16(%rbp), %rsi movq -24(%rbp), %rdx movsbl %al, %edi callq _parseLexeme jmp LBB1_82 LBB1_57: jmp LBB1_81 LBB1_58: movsbl -1(%rbp), %eax cmpl $47, %eax jne LBB1_62 ## %bb.59: movq -24(%rbp), %rax movq %rax, -64(%rbp) ## 8-byte Spill movq -24(%rbp), %rdi callq _strlen movq %rax, %rcx movq -64(%rbp), %rax ## 8-byte Reload subq $2, %rcx movsbl (%rax,%rcx), %eax cmpl $42, %eax jne LBB1_61 ## %bb.60: movq -24(%rbp), %rsi leaq L_.str.78(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rax movl $0, (%rax) jmp LBB1_82 LBB1_61: jmp LBB1_62 LBB1_62: jmp LBB1_81 LBB1_63: movsbl -1(%rbp), %eax cmpl $34, %eax jne LBB1_65 ## %bb.64: movq -24(%rbp), %rsi leaq L_.str.79(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rax movl $0, (%rax) jmp LBB1_82 LBB1_65: jmp LBB1_81 LBB1_66: movsbl -1(%rbp), %eax cmpl $39, %eax jne LBB1_68 ## %bb.67: movq -24(%rbp), %rsi leaq L_.str.80(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rax movl $0, (%rax) jmp LBB1_82 LBB1_68: jmp LBB1_81 LBB1_69: movsbl -1(%rbp), %eax cmpl $48, %eax jl LBB1_71 ## %bb.70: movsbl -1(%rbp), %eax cmpl $57, %eax jle LBB1_79 LBB1_71: movsbl -1(%rbp), %eax cmpl $97, %eax jl LBB1_73 ## %bb.72: movsbl -1(%rbp), %eax cmpl $102, %eax jle LBB1_79 LBB1_73: movsbl -1(%rbp), %eax cmpl $65, %eax jl LBB1_75 ## %bb.74: movsbl -1(%rbp), %eax cmpl $70, %eax jle LBB1_79 LBB1_75: movsbl -1(%rbp), %eax cmpl $95, %eax je LBB1_79 ## %bb.76: movsbl -1(%rbp), %eax cmpl $46, %eax je LBB1_79 ## %bb.77: movsbl -1(%rbp), %eax cmpl $35, %eax je LBB1_79 ## %bb.78: movq -24(%rbp), %rax movq %rax, -72(%rbp) ## 8-byte Spill movq -24(%rbp), %rdi callq _strlen movq %rax, %rcx movq -72(%rbp), %rax ## 8-byte Reload subq $1, %rcx movb $0, (%rax,%rcx) movq -24(%rbp), %rsi leaq L_.str.81(%rip), %rdi movb $0, %al callq _printf movq -16(%rbp), %rax movl $0, (%rax) movb -1(%rbp), %al movq -16(%rbp), %rsi movq -24(%rbp), %rdx movsbl %al, %edi callq _parseLexeme jmp LBB1_82 LBB1_79: jmp LBB1_81 LBB1_80: leaq L_.str.82(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $4, %edi callq _exit LBB1_81: jmp LBB1_82 LBB1_82: addq $80, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L1_0_set_4, LBB1_4-LJTI1_0 .set L1_0_set_43, LBB1_43-LJTI1_0 .set L1_0_set_28, LBB1_28-LJTI1_0 .set L1_0_set_58, LBB1_58-LJTI1_0 .set L1_0_set_63, LBB1_63-LJTI1_0 .set L1_0_set_66, LBB1_66-LJTI1_0 .set L1_0_set_69, LBB1_69-LJTI1_0 LJTI1_0: .long L1_0_set_4 .long L1_0_set_43 .long L1_0_set_28 .long L1_0_set_58 .long L1_0_set_63 .long L1_0_set_66 .long L1_0_set_69 .end_data_region ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "accessor" L_.str.1: ## @.str.1 .asciz "and" L_.str.2: ## @.str.2 .asciz "array" L_.str.3: ## @.str.3 .asciz "begin" L_.str.4: ## @.str.4 .asciz "bool" L_.str.5: ## @.str.5 .asciz "case" L_.str.6: ## @.str.6 .asciz "else" L_.str.7: ## @.str.7 .asciz "elsif" L_.str.8: ## @.str.8 .asciz "end" L_.str.9: ## @.str.9 .asciz "exit" L_.str.10: ## @.str.10 .asciz "function" L_.str.11: ## @.str.11 .asciz "if" L_.str.12: ## @.str.12 .asciz "in" L_.str.13: ## @.str.13 .asciz "integer" L_.str.14: ## @.str.14 .asciz "interface" L_.str.15: ## @.str.15 .asciz "is" L_.str.16: ## @.str.16 .asciz "loop" L_.str.17: ## @.str.17 .asciz "module" L_.str.18: ## @.str.18 .asciz "mutator" L_.str.19: ## @.str.19 .asciz "natural" L_.str.20: ## @.str.20 .asciz "null" L_.str.21: ## @.str.21 .asciz "of" L_.str.22: ## @.str.22 .asciz "or" L_.str.23: ## @.str.23 .asciz "others" L_.str.24: ## @.str.24 .asciz "out" L_.str.25: ## @.str.25 .asciz "positive" L_.str.26: ## @.str.26 .asciz "procedure" L_.str.27: ## @.str.27 .asciz "return" L_.str.28: ## @.str.28 .asciz "struct" L_.str.29: ## @.str.29 .asciz "subtype" L_.str.30: ## @.str.30 .asciz "then" L_.str.31: ## @.str.31 .asciz "type" L_.str.32: ## @.str.32 .asciz "when" L_.str.33: ## @.str.33 .asciz "while" .section __DATA,__data .globl _ccxKeywords ## @ccxKeywords .p2align 4 _ccxKeywords: .quad L_.str .quad L_.str.1 .quad L_.str.2 .quad L_.str.3 .quad L_.str.4 .quad L_.str.5 .quad L_.str.6 .quad L_.str.7 .quad L_.str.8 .quad L_.str.9 .quad L_.str.10 .quad L_.str.11 .quad L_.str.12 .quad L_.str.13 .quad L_.str.14 .quad L_.str.15 .quad L_.str.16 .quad L_.str.17 .quad L_.str.18 .quad L_.str.19 .quad L_.str.20 .quad L_.str.21 .quad L_.str.22 .quad L_.str.23 .quad L_.str.24 .quad L_.str.25 .quad L_.str.26 .quad L_.str.27 .quad L_.str.28 .quad L_.str.29 .quad L_.str.30 .quad L_.str.31 .quad L_.str.32 .quad L_.str.33 .section __TEXT,__cstring,cstring_literals L_.str.34: ## @.str.34 .asciz "." L_.str.35: ## @.str.35 .asciz "<" L_.str.36: ## @.str.36 .asciz ">" L_.str.37: ## @.str.37 .asciz "(" L_.str.38: ## @.str.38 .asciz ")" L_.str.39: ## @.str.39 .asciz "+" L_.str.40: ## @.str.40 .asciz "-" L_.str.41: ## @.str.41 .asciz "*" L_.str.42: ## @.str.42 .asciz "/" L_.str.43: ## @.str.43 .asciz "|" L_.str.44: ## @.str.44 .asciz "&" L_.str.45: ## @.str.45 .asciz ";" L_.str.46: ## @.str.46 .asciz "," L_.str.47: ## @.str.47 .asciz ":" L_.str.48: ## @.str.48 .asciz "[" L_.str.49: ## @.str.49 .asciz "]" L_.str.50: ## @.str.50 .asciz "=" L_.str.51: ## @.str.51 .asciz ":=" L_.str.52: ## @.str.52 .asciz ".." L_.str.53: ## @.str.53 .asciz "<<" L_.str.54: ## @.str.54 .asciz ">>" L_.str.55: ## @.str.55 .asciz "<>" L_.str.56: ## @.str.56 .asciz "<=" L_.str.57: ## @.str.57 .asciz ">=" L_.str.58: ## @.str.58 .asciz "**" L_.str.59: ## @.str.59 .asciz "!=" L_.str.60: ## @.str.60 .asciz "=>" .section __DATA,__data .globl _ccxOperators ## @ccxOperators .p2align 4 _ccxOperators: .quad L_.str.34 .quad L_.str.35 .quad L_.str.36 .quad L_.str.37 .quad L_.str.38 .quad L_.str.39 .quad L_.str.40 .quad L_.str.41 .quad L_.str.42 .quad L_.str.43 .quad L_.str.44 .quad L_.str.45 .quad L_.str.46 .quad L_.str.47 .quad L_.str.48 .quad L_.str.49 .quad L_.str.50 .quad L_.str.51 .quad L_.str.52 .quad L_.str.53 .quad L_.str.54 .quad L_.str.55 .quad L_.str.56 .quad L_.str.57 .quad L_.str.58 .quad L_.str.59 .quad L_.str.60 .section __TEXT,__cstring,cstring_literals L_.str.61: ## @.str.61 .asciz " " L_.str.62: ## @.str.62 .asciz "\n" L_.str.63: ## @.str.63 .asciz "\t" L_.str.64: ## @.str.64 .asciz "\r" L_.str.65: ## @.str.65 .asciz "\013" L_.str.66: ## @.str.66 .asciz "\f" .section __DATA,__data .globl _ccxWhitespace ## @ccxWhitespace .p2align 4 _ccxWhitespace: .quad L_.str.61 .quad L_.str.62 .quad L_.str.63 .quad L_.str.64 .quad L_.str.65 .quad L_.str.66 .section __TEXT,__cstring,cstring_literals L_.str.67: ## @.str.67 .asciz "Error: No filename argument\n" L_.str.68: ## @.str.68 .asciz "Error: Extraneous arguements\n" L_.str.69: ## @.str.69 .asciz "r" L_.str.70: ## @.str.70 .asciz "Error: Couldn't open %s\n" L_.str.71: ## @.str.71 .asciz "ERROR: ENCOUNTERED UNK (LEX_FRESH)\n" L_.str.72: ## @.str.72 .asciz "/*" L_.str.73: ## @.str.73 .asciz "%s (operator)\n" L_.str.74: ## @.str.74 .asciz "%c (operator)\n" L_.str.75: ## @.str.75 .asciz "ERROR: ENCOUNTERED UNK (LEX_INDET_SYM)\n" L_.str.76: ## @.str.76 .asciz "%s (keyword)\n" L_.str.77: ## @.str.77 .asciz "%s (identifier)\n" L_.str.78: ## @.str.78 .asciz "%s (comment)\n" L_.str.79: ## @.str.79 .asciz "%s (string)\n" L_.str.80: ## @.str.80 .asciz "%s (char literal)\n" L_.str.81: ## @.str.81 .asciz "%s (numeric literal)\n" L_.str.82: ## @.str.82 .asciz "ERROR: NON-EXISTANT STATE or FALL THROUGH\n" .subsections_via_symbols
the_stack_data/150362.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _atof ; -- Begin function atof .p2align 2 _atof: ; @atof .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x0, [sp, #8] mov x1, #0 bl _strtod ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _atof ## -- Begin function atof .p2align 4, 0x90 _atof: ## @atof .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq _strtod addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/122016576.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _printhd ; -- Begin function printhd .p2align 2 _printhd: ; @printhd .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x8, [sp, #8] mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldr x8, [sp, #8] add x8, x8, #1024 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x8, [sp, #8] add x8, x8, #2048 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldr x8, [sp, #8] add x8, x8, #3072 mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldr x8, [sp, #8] add x8, x8, #1, lsl #12 ; =4096 mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldr x8, [sp, #8] mov x9, #5120 add x8, x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf ldr x8, [sp, #8] mov x9, #6144 add x8, x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf ldr x8, [sp, #8] mov x9, #7168 add x8, x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf ldr x8, [sp, #8] add x8, x8, #2, lsl #12 ; =8192 mov x9, sp str x8, [x9] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf ldr x8, [sp, #8] mov x9, #9216 add x8, x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf ldr x8, [sp, #8] ldr w9, [x8, #11268] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function horoscope lCPI1_0: .quad 0x402aaaaaaaaaaaab ; double 13.333333333333334 .section __TEXT,__text,regular,pure_instructions .globl _horoscope .p2align 2 _horoscope: ; @horoscope .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 mov w9, #4176 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #1, lsl #12 ; =4096 sub sp, sp, #80 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str x0, [sp, #56] str wzr, [sp, #52] add x0, sp, #3136 bl _pipe adrp x8, _cmd@PAGE ldr x8, [x8, _cmd@PAGEOFF] ldrsw x10, [sp, #52] mov x9, x10 add w9, w9, #1 str w9, [sp, #52] add x9, sp, #1088 str x8, [x9, x10, lsl #3] ldr x8, [sp, #56] ldr w8, [x8, #11264] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldrsw x10, [sp, #52] mov x8, x10 add w8, w8, #1 str w8, [sp, #52] add x9, sp, #1088 adrp x8, l_.str.13@PAGE add x8, x8, l_.str.13@PAGEOFF str x8, [x9, x10, lsl #3] b LBB1_3 LBB1_2: ldrsw x10, [sp, #52] mov x8, x10 add w8, w8, #1 str w8, [sp, #52] add x9, sp, #1088 adrp x8, l_.str.14@PAGE add x8, x8, l_.str.14@PAGEOFF str x8, [x9, x10, lsl #3] b LBB1_3 LBB1_3: ldr x8, [sp, #56] add x8, x8, #2048 ldrsw x10, [sp, #52] mov x9, x10 add w9, w9, #1 str w9, [sp, #52] add x9, sp, #1088 str x8, [x9, x10, lsl #3] ldr x8, [sp, #56] add x8, x8, #3072 ldrsw x10, [sp, #52] mov x11, x10 add w11, w11, #1 str w11, [sp, #52] str x8, [x9, x10, lsl #3] ldr x8, [sp, #56] add x8, x8, #1, lsl #12 ; =4096 ldrsw x10, [sp, #52] mov x11, x10 add w11, w11, #1 str w11, [sp, #52] str x8, [x9, x10, lsl #3] ldr x8, [sp, #56] mov x10, #5120 add x8, x8, x10 ldrsw x10, [sp, #52] mov x11, x10 add w11, w11, #1 str w11, [sp, #52] str x8, [x9, x10, lsl #3] ldr x8, [sp, #56] mov x10, #6144 add x8, x8, x10 ldrsw x10, [sp, #52] mov x11, x10 add w11, w11, #1 str w11, [sp, #52] str x8, [x9, x10, lsl #3] ldr x8, [sp, #56] ldr w8, [x8, #11264] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_5 b LBB1_4 LBB1_4: ldr x8, [sp, #56] mov x9, #7168 add x8, x8, x9 ldrsw x10, [sp, #52] mov x9, x10 add w9, w9, #1 str w9, [sp, #52] add x9, sp, #1088 str x8, [x9, x10, lsl #3] b LBB1_5 LBB1_5: ldr x8, [sp, #56] add x8, x8, #2, lsl #12 ; =8192 ldrsw x10, [sp, #52] mov x9, x10 add w9, w9, #1 str w9, [sp, #52] add x9, sp, #1088 str x9, [sp, #24] ; 8-byte Folded Spill str x8, [x9, x10, lsl #3] ldr x8, [sp, #56] mov x10, #9216 add x8, x8, x10 ldrsw x10, [sp, #52] mov x11, x10 add w11, w11, #1 str w11, [sp, #52] str x8, [x9, x10, lsl #3] ldrsw x10, [sp, #52] mov x8, x10 add w8, w8, #1 str w8, [sp, #52] adrp x8, l_.str.15@PAGE add x8, x8, l_.str.15@PAGEOFF str x8, [x9, x10, lsl #3] ldr x8, [sp, #56] ldrsw x10, [sp, #52] mov x11, x10 add w11, w11, #1 str w11, [sp, #52] str x8, [x9, x10, lsl #3] ldr x8, [sp, #56] add x8, x8, #1024 ldrsw x10, [sp, #52] mov x11, x10 add w11, w11, #1 str w11, [sp, #52] str x8, [x9, x10, lsl #3] ldrsw x10, [sp, #52] mov x8, x10 add w8, w8, #1 str w8, [sp, #52] adrp x8, l_.str.16@PAGE add x8, x8, l_.str.16@PAGEOFF str x8, [x9, x10, lsl #3] ldrsw x10, [sp, #52] mov x8, x10 add w8, w8, #1 str w8, [sp, #52] adrp x8, l_.str.17@PAGE add x8, x8, l_.str.17@PAGEOFF str x8, [x9, x10, lsl #3] ldrsw x10, [sp, #52] mov x8, x10 add w8, w8, #1 str w8, [sp, #52] adrp x8, l_.str.18@PAGE add x8, x8, l_.str.18@PAGEOFF str x8, [x9, x10, lsl #3] ldrsw x10, [sp, #52] mov x8, x10 add w8, w8, #1 str w8, [sp, #52] adrp x8, l_.str.19@PAGE add x8, x8, l_.str.19@PAGEOFF str x8, [x9, x10, lsl #3] ldrsw x10, [sp, #52] mov x8, x10 add w8, w8, #1 str w8, [sp, #52] adrp x8, l_.str.20@PAGE add x8, x8, l_.str.20@PAGEOFF str x8, [x9, x10, lsl #3] ldr x8, [sp, #56] ldr w8, [x8, #11268] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_7 b LBB1_6 LBB1_6: ldrsw x10, [sp, #52] mov x8, x10 add w8, w8, #1 str w8, [sp, #52] add x9, sp, #1088 adrp x8, l_.str.21@PAGE add x8, x8, l_.str.21@PAGEOFF str x8, [x9, x10, lsl #3] b LBB1_7 LBB1_7: ldrsw x10, [sp, #52] mov x8, x10 add w8, w8, #1 str w8, [sp, #52] add x9, sp, #1088 adrp x8, l_.str.22@PAGE add x8, x8, l_.str.22@PAGEOFF str x8, [x9, x10, lsl #3] ldrsw x10, [sp, #52] mov x8, x10 add w8, w8, #1 str w8, [sp, #52] adrp x8, l_.str.23@PAGE add x8, x8, l_.str.23@PAGEOFF str x8, [x9, x10, lsl #3] ldrsw x10, [sp, #52] mov x8, x10 add w8, w8, #1 str w8, [sp, #52] adrp x8, l_.str.24@PAGE add x8, x8, l_.str.24@PAGEOFF str x8, [x9, x10, lsl #3] ldrsw x10, [sp, #52] mov x8, x10 add w8, w8, #1 str w8, [sp, #52] adrp x8, l_.str.25@PAGE add x8, x8, l_.str.25@PAGEOFF str x8, [x9, x10, lsl #3] ldrsw x10, [sp, #52] mov x8, x10 add w8, w8, #1 str w8, [sp, #52] adrp x8, l_.str.26@PAGE add x8, x8, l_.str.26@PAGEOFF str x8, [x9, x10, lsl #3] ldrsw x10, [sp, #52] mov x8, x10 add w8, w8, #1 str w8, [sp, #52] adrp x8, l_.str.27@PAGE add x8, x8, l_.str.27@PAGEOFF str x8, [x9, x10, lsl #3] ldrsw x10, [sp, #52] mov x8, #0 str x8, [x9, x10, lsl #3] bl _fork subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB1_9 b LBB1_8 LBB1_8: mov w0, #1 str w0, [sp, #20] ; 4-byte Folded Spill bl _close ldr w1, [sp, #20] ; 4-byte Folded Reload ldr w0, [sp, #3140] bl _dup2 ldr w0, [sp, #3136] bl _close ldr w0, [sp, #3140] bl _close ldr w0, [sp, #52] add x1, sp, #1088 bl _astromain b LBB1_13 LBB1_9: ldr w0, [sp, #3140] bl _close ldr w0, [sp, #3136] adrp x1, l_.str.28@PAGE add x1, x1, l_.str.28@PAGEOFF bl _fdopen str x0, [sp, #40] b LBB1_10 LBB1_10: ; =>This Inner Loop Header: Depth=1 ldr x2, [sp, #40] add x0, sp, #3144 mov w1, #1024 bl _fgets subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB1_12 b LBB1_11 LBB1_11: ; in Loop: Header=BB1_10 Depth=1 ldr x8, [sp, #56] mov x9, #11272 add x8, x8, x9 mov x9, sp str x8, [x9] add x0, sp, #3144 adrp x1, l_.str.29@PAGE add x1, x1, l_.str.29@PAGEOFF bl _sscanf ldr x8, [sp, #56] ldr s0, [x8, #11272] fcvt d0, s0 fmov d1, #30.00000000 fdiv d0, d0, d1 fcvtzs w8, d0 ldr x9, [sp, #56] str w8, [x9, #11276] ldr x8, [sp, #56] ldr s0, [x8, #11272] fcvt d0, s0 adrp x8, lCPI1_0@PAGE ldr d1, [x8, lCPI1_0@PAGEOFF] fdiv d0, d0, d1 fcvtzs w8, d0 ldr x9, [sp, #56] str w8, [x9, #11280] ldr x8, [sp, #56] ldrsw x9, [x8, #11276] adrp x8, _rasi@PAGE add x8, x8, _rasi@PAGEOFF ldr x8, [x8, x9, lsl #3] ldr x9, [sp, #56] str x8, [x9, #11288] ldr x8, [sp, #56] ldrsw x9, [x8, #11280] adrp x8, _naksatras@GOTPAGE ldr x8, [x8, _naksatras@GOTPAGEOFF] ldr x8, [x8, x9, lsl #3] ldr x9, [sp, #56] str x8, [x9, #11296] b LBB1_10 LBB1_12: ldr x0, [sp, #40] bl _fclose b LBB1_13 LBB1_13: ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_15 b LBB1_14 LBB1_14: bl ___stack_chk_fail LBB1_15: add sp, sp, #1, lsl #12 ; =4096 add sp, sp, #80 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _strip_blanks ; -- Begin function strip_blanks .p2align 2 _strip_blanks: ; @strip_blanks .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str x1, [sp, #16] str wzr, [sp, #8] ldr x0, [sp, #16] bl _strlen mov x8, x0 str w8, [sp, #4] str wzr, [sp, #12] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] ldr w9, [sp, #4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_7 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #12] ldrsb w8, [x8, x9] subs w8, w8, #37 cset w8, ne tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #2 str w8, [sp, #12] b LBB2_5 LBB2_4: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #12] add x8, x8, x9 ldrb w8, [x8] ldur x9, [x29, #-8] ldrsw x10, [sp, #8] mov x11, x10 add w11, w11, #1 str w11, [sp, #8] add x9, x9, x10 strb w8, [x9] b LBB2_5 LBB2_5: ; in Loop: Header=BB2_1 Depth=1 b LBB2_6 LBB2_6: ; in Loop: Header=BB2_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB2_1 LBB2_7: ldur x8, [x29, #-8] ldrsw x9, [sp, #8] add x8, x8, x9 strb wzr, [x8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _gethd ; -- Begin function gethd .p2align 2 _gethd: ; @gethd .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur x1, [x29, #-16] stur wzr, [x29, #-20] b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 sub x0, x29, #8 adrp x1, l_.str.30@PAGE add x1, x1, l_.str.30@PAGEOFF bl _strsep mov x8, x0 str x8, [sp, #32] subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB3_20 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 ldur w8, [x29, #-20] subs w8, w8, #0 ; kill: def $x8 killed $w8 str x8, [sp, #24] ; 8-byte Folded Spill subs x8, x8, #10 cset w8, hi tbnz w8, #0, LBB3_18 ; %bb.3: ; in Loop: Header=BB3_1 Depth=1 ldr x11, [sp, #24] ; 8-byte Folded Reload adrp x10, lJTI3_0@PAGE add x10, x10, lJTI3_0@PAGEOFF Ltmp0: adr x8, Ltmp0 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB3_4: ; in Loop: Header=BB3_1 Depth=1 ldur x0, [x29, #-16] ldr x1, [sp, #32] bl _strip_blanks b LBB3_18 LBB3_5: ; in Loop: Header=BB3_1 Depth=1 ldur x8, [x29, #-16] add x0, x8, #1024 ldr x1, [sp, #32] bl _strip_blanks b LBB3_18 LBB3_6: ; in Loop: Header=BB3_1 Depth=1 ldr x0, [sp, #32] bl _atoi stur w0, [x29, #-24] ldur w8, [x29, #-24] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB3_9 b LBB3_7 LBB3_7: ; in Loop: Header=BB3_1 Depth=1 ldur w8, [x29, #-24] subs w8, w8, #12 cset w8, gt tbnz w8, #0, LBB3_9 b LBB3_8 LBB3_8: ; in Loop: Header=BB3_1 Depth=1 ldur x8, [x29, #-16] add x0, x8, #2048 ldursw x9, [x29, #-24] adrp x8, _mon@PAGE add x8, x8, _mon@PAGEOFF ldr x1, [x8, x9, lsl #3] mov x2, #1024 bl ___strcpy_chk b LBB3_9 LBB3_9: ; in Loop: Header=BB3_1 Depth=1 b LBB3_18 LBB3_10: ; in Loop: Header=BB3_1 Depth=1 ldur x8, [x29, #-16] add x0, x8, #3072 ldr x1, [sp, #32] mov x2, #1024 bl ___strcpy_chk b LBB3_18 LBB3_11: ; in Loop: Header=BB3_1 Depth=1 ldur x8, [x29, #-16] add x0, x8, #1, lsl #12 ; =4096 ldr x1, [sp, #32] mov x2, #1024 bl ___strcpy_chk b LBB3_18 LBB3_12: ; in Loop: Header=BB3_1 Depth=1 ldur x8, [x29, #-16] mov x9, #5120 add x0, x8, x9 ldr x1, [sp, #32] bl _strip_blanks b LBB3_18 LBB3_13: ; in Loop: Header=BB3_1 Depth=1 ldur x8, [x29, #-16] mov x9, #6144 add x0, x8, x9 ldr x1, [sp, #32] mov x2, #1024 bl ___strcpy_chk b LBB3_18 LBB3_14: ; in Loop: Header=BB3_1 Depth=1 ldur x8, [x29, #-16] mov x9, #7168 add x0, x8, x9 ldr x1, [sp, #32] mov x2, #1024 bl ___strcpy_chk b LBB3_18 LBB3_15: ; in Loop: Header=BB3_1 Depth=1 ldur x8, [x29, #-16] add x0, x8, #2, lsl #12 ; =8192 ldr x1, [sp, #32] mov x2, #1024 bl ___strcpy_chk b LBB3_18 LBB3_16: ; in Loop: Header=BB3_1 Depth=1 ldur x8, [x29, #-16] mov x9, #9216 add x0, x8, x9 ldr x1, [sp, #32] mov x2, #1024 bl ___strcpy_chk b LBB3_18 LBB3_17: ; in Loop: Header=BB3_1 Depth=1 b LBB3_18 LBB3_18: ; in Loop: Header=BB3_1 Depth=1 b LBB3_19 LBB3_19: ; in Loop: Header=BB3_1 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB3_1 LBB3_20: ldur x8, [x29, #-16] mov x9, #6144 add x0, x8, x9 adrp x1, l_.str.31@PAGE add x1, x1, l_.str.31@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB3_22 b LBB3_21 LBB3_21: ldur x9, [x29, #-16] mov w8, #1 str w8, [x9, #11268] ldur x8, [x29, #-16] mov x9, #6144 add x0, x8, x9 adrp x1, l_.str.32@PAGE add x1, x1, l_.str.32@PAGEOFF mov x2, #1024 bl ___strcpy_chk b LBB3_25 LBB3_22: ldur x8, [x29, #-16] mov x9, #6144 add x0, x8, x9 adrp x1, l_.str.32@PAGE add x1, x1, l_.str.32@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB3_24 b LBB3_23 LBB3_23: ldur x9, [x29, #-16] mov w8, #1 str w8, [x9, #11268] ldur x8, [x29, #-16] add x0, x8, #2, lsl #12 ; =8192 ldur x8, [x29, #-16] mov x9, #9216 str x9, [sp] ; 8-byte Folded Spill add x1, x8, x9 mov x2, #1024 str x2, [sp, #8] ; 8-byte Folded Spill bl ___strcpy_chk ldr x9, [sp] ; 8-byte Folded Reload ldr x2, [sp, #8] ; 8-byte Folded Reload ldur x8, [x29, #-16] add x0, x8, x9 ldur x8, [x29, #-16] mov x9, #7168 str x9, [sp, #16] ; 8-byte Folded Spill add x1, x8, x9 bl ___strcpy_chk ldr x9, [sp, #16] ; 8-byte Folded Reload ldur x8, [x29, #-16] add x8, x8, x9 strb wzr, [x8] b LBB3_24 LBB3_24: b LBB3_25 LBB3_25: ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc .p2align 2 lJTI3_0: .long LBB3_4-Ltmp0 .long LBB3_5-Ltmp0 .long LBB3_6-Ltmp0 .long LBB3_10-Ltmp0 .long LBB3_11-Ltmp0 .long LBB3_12-Ltmp0 .long LBB3_13-Ltmp0 .long LBB3_14-Ltmp0 .long LBB3_15-Ltmp0 .long LBB3_16-Ltmp0 .long LBB3_17-Ltmp0 ; -- End function .globl _findDiff ; -- Begin function findDiff .p2align 2 _findDiff: ; @findDiff .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] str w1, [sp, #8] str w2, [sp, #4] ldur w8, [x29, #-4] ldr w9, [sp, #8] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB4_4 b LBB4_1 LBB4_1: ldr w8, [sp, #4] ldur w9, [x29, #-4] subs w8, w8, w9 ldr w9, [sp, #8] add w8, w8, w9 add w8, w8, #1 str w8, [sp] ldr w8, [sp] subs w8, w8, #13 cset w8, ne tbnz w8, #0, LBB4_3 b LBB4_2 LBB4_2: mov w8, #1 str w8, [sp] b LBB4_3 LBB4_3: b LBB4_5 LBB4_4: ldur w8, [x29, #-4] ldr w9, [sp, #8] subs w0, w8, w9 bl _abs add w8, w0, #1 str w8, [sp] b LBB4_5 LBB4_5: ldr w0, [sp] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _transit ; -- Begin function transit .p2align 2 _transit: ; @transit .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] sub x0, x29, #16 str x0, [sp, #24] ; 8-byte Folded Spill bl _time mov x8, x0 ldr x0, [sp, #24] ; 8-byte Folded Reload stur x8, [x29, #-16] bl _localtime stur x0, [x29, #-24] ldur x0, [x29, #-8] adrp x1, l_.str.33@PAGE add x1, x1, l_.str.33@PAGEOFF mov x2, #1024 stur x2, [x29, #-32] ; 8-byte Folded Spill bl ___strcpy_chk ldur x2, [x29, #-32] ; 8-byte Folded Reload ldur x8, [x29, #-8] add x0, x8, #1024 adrp x1, l_.str.34@PAGE add x1, x1, l_.str.34@PAGEOFF bl ___strcpy_chk ldur x2, [x29, #-32] ; 8-byte Folded Reload ldur x8, [x29, #-8] ldur x9, [x29, #-24] ldr w9, [x9, #16] add w10, w9, #1 adrp x9, _mon@PAGE add x9, x9, _mon@PAGEOFF ldr x1, [x9, w10, sxtw #3] add x0, x8, #2048 bl ___strcpy_chk ldur x2, [x29, #-32] ; 8-byte Folded Reload ldur x8, [x29, #-8] ldur x9, [x29, #-24] ldr w10, [x9, #12] ; implicit-def: $x9 mov x9, x10 mov x10, sp str x9, [x10] add x0, x8, #3072 mov w1, #0 stur w1, [x29, #-36] ; 4-byte Folded Spill adrp x3, l_.str.35@PAGE add x3, x3, l_.str.35@PAGEOFF str x3, [sp, #32] ; 8-byte Folded Spill bl ___sprintf_chk ldr x3, [sp, #32] ; 8-byte Folded Reload ldur w1, [x29, #-36] ; 4-byte Folded Reload ldur x2, [x29, #-32] ; 8-byte Folded Reload ldur x8, [x29, #-8] ldur x9, [x29, #-24] ldr w9, [x9, #20] add w11, w9, #1900 mov x10, sp ; implicit-def: $x9 mov x9, x11 str x9, [x10] add x0, x8, #1, lsl #12 ; =4096 bl ___sprintf_chk ldur w1, [x29, #-36] ; 4-byte Folded Reload ldur x2, [x29, #-32] ; 8-byte Folded Reload ldur x8, [x29, #-8] ldur x9, [x29, #-24] ldr w9, [x9, #8] ; implicit-def: $x11 mov x11, x9 ldur x9, [x29, #-24] ldr w10, [x9, #4] ; implicit-def: $x9 mov x9, x10 mov x10, sp str x11, [x10] str x9, [x10, #8] mov x9, #5120 add x0, x8, x9 adrp x3, l_.str.36@PAGE add x3, x3, l_.str.36@PAGEOFF bl ___sprintf_chk ldur x2, [x29, #-32] ; 8-byte Folded Reload ldur x8, [x29, #-8] mov x9, #6144 add x0, x8, x9 adrp x1, l_.str.32@PAGE add x1, x1, l_.str.32@PAGEOFF bl ___strcpy_chk ldur w1, [x29, #-36] ; 4-byte Folded Reload ldur x2, [x29, #-32] ; 8-byte Folded Reload ldur x8, [x29, #-8] mov x9, #7168 add x0, x8, x9 adrp x3, l_.str.37@PAGE add x3, x3, l_.str.37@PAGEOFF bl ___sprintf_chk ldur w1, [x29, #-36] ; 4-byte Folded Reload ldur x2, [x29, #-32] ; 8-byte Folded Reload ldur x8, [x29, #-8] add x0, x8, #2, lsl #12 ; =8192 adrp x3, l_.str.38@PAGE add x3, x3, l_.str.38@PAGEOFF bl ___sprintf_chk ldur w1, [x29, #-36] ; 4-byte Folded Reload ldur x2, [x29, #-32] ; 8-byte Folded Reload ldur x8, [x29, #-8] mov x9, #9216 add x0, x8, x9 adrp x3, l_.str.39@PAGE add x3, x3, l_.str.39@PAGEOFF bl ___sprintf_chk ldur x0, [x29, #-8] bl _horoscope ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .globl _star ; -- Begin function star .p2align 2 _star: ; @star .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 mov w9, #23728 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #5, lsl #12 ; =20480 sub sp, sp, #3248 add x8, sp, #3, lsl #12 ; =12288 add x8, x8, #128 str x8, [sp, #32] ; 8-byte Folded Spill adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] adrp x8, ___stdoutp@GOTPAGE ldr x8, [x8, ___stdoutp@GOTPAGEOFF] ldr x8, [x8] str x8, [sp, #80] str wzr, [sp, #60] ldr x0, [sp, #80] adrp x1, l_.str.40@PAGE add x1, x1, l_.str.40@PAGEOFF bl _fprintf ldr x0, [sp, #80] bl _fflush adrp x0, l_.str.41@PAGE add x0, x0, l_.str.41@PAGEOFF bl _getenv str x0, [sp, #72] ldr x8, [sp, #72] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB6_2 b LBB6_1 LBB6_1: adrp x0, l_.str.42@PAGE add x0, x0, l_.str.42@PAGEOFF bl _printf mov w0, #0 bl _exit LBB6_2: ldr x0, [sp, #72] bl _strlen mov x8, x0 str w8, [sp, #44] add x0, sp, #3, lsl #12 ; =12288 add x0, x0, #128 mov x1, #11304 bl _bzero str wzr, [sp, #56] b LBB6_3 LBB6_3: ; =>This Inner Loop Header: Depth=1 add x0, sp, #72 adrp x1, l_.str.43@PAGE add x1, x1, l_.str.43@PAGEOFF bl _strsep mov x8, x0 str x8, [sp, #64] subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB6_25 b LBB6_4 LBB6_4: ; in Loop: Header=BB6_3 Depth=1 ldr w8, [sp, #56] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB6_23 b LBB6_5 LBB6_5: ldr x0, [sp, #64] bl _strlen mov x8, x0 str w8, [sp, #44] str wzr, [sp, #52] str wzr, [sp, #48] b LBB6_6 LBB6_6: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #52] ldr w9, [sp, #44] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB6_22 b LBB6_7 LBB6_7: ; in Loop: Header=BB6_6 Depth=1 ldr x8, [sp, #64] ldrsw x9, [sp, #52] ldrsb w8, [x8, x9] subs w8, w8, #37 cset w8, ne tbnz w8, #0, LBB6_11 b LBB6_8 LBB6_8: ; in Loop: Header=BB6_6 Depth=1 ldr x8, [sp, #64] ldr w9, [sp, #52] add w9, w9, #1 ldrsb w8, [x8, w9, sxtw] subs w8, w8, #55 cset w8, ne tbnz w8, #0, LBB6_11 b LBB6_9 LBB6_9: ; in Loop: Header=BB6_6 Depth=1 ldr x8, [sp, #64] ldr w9, [sp, #52] add w9, w9, #2 ldrsb w8, [x8, w9, sxtw] subs w8, w8, #67 cset w8, ne tbnz w8, #0, LBB6_11 b LBB6_10 LBB6_10: ; in Loop: Header=BB6_6 Depth=1 ldrsw x9, [sp, #48] mov x8, x9 add w8, w8, #1 str w8, [sp, #48] add x8, sp, #88 add x9, x8, x9 mov w8, #124 strb w8, [x9] ldr w8, [sp, #52] add w8, w8, #2 str w8, [sp, #52] b LBB6_20 LBB6_11: ; in Loop: Header=BB6_6 Depth=1 ldr x8, [sp, #64] ldrsw x9, [sp, #52] ldrsb w8, [x8, x9] subs w8, w8, #37 cset w8, ne tbnz w8, #0, LBB6_15 b LBB6_12 LBB6_12: ; in Loop: Header=BB6_6 Depth=1 ldr x8, [sp, #64] ldr w9, [sp, #52] add w9, w9, #1 ldrsb w8, [x8, w9, sxtw] subs w8, w8, #51 cset w8, ne tbnz w8, #0, LBB6_15 b LBB6_13 LBB6_13: ; in Loop: Header=BB6_6 Depth=1 ldr x8, [sp, #64] ldr w9, [sp, #52] add w9, w9, #2 ldrsb w8, [x8, w9, sxtw] subs w8, w8, #65 cset w8, ne tbnz w8, #0, LBB6_15 b LBB6_14 LBB6_14: ; in Loop: Header=BB6_6 Depth=1 ldrsw x9, [sp, #48] mov x8, x9 add w8, w8, #1 str w8, [sp, #48] add x8, sp, #88 add x9, x8, x9 mov w8, #58 strb w8, [x9] ldr w8, [sp, #52] add w8, w8, #2 str w8, [sp, #52] b LBB6_19 LBB6_15: ; in Loop: Header=BB6_6 Depth=1 ldr x8, [sp, #64] ldrsw x9, [sp, #52] ldrsb w8, [x8, x9] subs w8, w8, #43 cset w8, ne tbnz w8, #0, LBB6_17 b LBB6_16 LBB6_16: ; in Loop: Header=BB6_6 Depth=1 ldrsw x9, [sp, #48] mov x8, x9 add w8, w8, #1 str w8, [sp, #48] add x8, sp, #88 add x9, x8, x9 mov w8, #32 strb w8, [x9] b LBB6_18 LBB6_17: ; in Loop: Header=BB6_6 Depth=1 ldr x8, [sp, #64] ldrsw x9, [sp, #52] add x8, x8, x9 ldrb w8, [x8] ldrsw x10, [sp, #48] mov x9, x10 add w9, w9, #1 str w9, [sp, #48] add x9, sp, #88 add x9, x9, x10 strb w8, [x9] b LBB6_18 LBB6_18: ; in Loop: Header=BB6_6 Depth=1 b LBB6_19 LBB6_19: ; in Loop: Header=BB6_6 Depth=1 b LBB6_20 LBB6_20: ; in Loop: Header=BB6_6 Depth=1 b LBB6_21 LBB6_21: ; in Loop: Header=BB6_6 Depth=1 ldr w8, [sp, #52] add w8, w8, #1 str w8, [sp, #52] b LBB6_6 LBB6_22: add x0, sp, #88 add x1, sp, #3, lsl #12 ; =12288 add x1, x1, #128 bl _gethd mov w8, #1 str w8, [sp, #60] b LBB6_25 LBB6_23: ; in Loop: Header=BB6_3 Depth=1 b LBB6_24 LBB6_24: ; in Loop: Header=BB6_3 Depth=1 ldr w8, [sp, #56] add w8, w8, #1 str w8, [sp, #56] b LBB6_3 LBB6_25: ldr w8, [sp, #60] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB6_27 b LBB6_26 LBB6_26: add x0, sp, #3, lsl #12 ; =12288 add x0, x0, #128 bl _horoscope ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x11, [sp, #23712] ldr x10, [sp, #23704] ldr w9, [x8, #11276] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.44@PAGE add x0, x0, l_.str.44@PAGEOFF bl _printf add x0, sp, #1112 str x0, [sp, #24] ; 8-byte Folded Spill bl _transit ldr x0, [sp, #24] ; 8-byte Folded Reload bl _printhd ldr x11, [sp, #12408] ldr x10, [sp, #12400] ldr w9, [sp, #12388] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.45@PAGE add x0, x0, l_.str.45@PAGEOFF bl _printf ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w0, [x8, #11276] ldr w1, [sp, #12388] mov w2, #12 bl _findDiff str w0, [sp, #40] ldr w8, [sp, #40] ; implicit-def: $x10 mov x10, x8 ldrsw x9, [sp, #40] adrp x8, _moPred@PAGE add x8, x8, _moPred@PAGEOFF ldr x8, [x8, x9, lsl #3] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.46@PAGE add x0, x0, l_.str.46@PAGEOFF bl _printf b LBB6_27 LBB6_27: ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB6_29 b LBB6_28 LBB6_28: bl ___stack_chk_fail LBB6_29: add sp, sp, #5, lsl #12 ; =20480 add sp, sp, #3248 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] str x1, [sp, #16] ldr x8, [sp, #16] ldr x0, [x8] bl _basename str x0, [sp, #8] ldr x0, [sp, #8] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB7_2 b LBB7_1 LBB7_1: bl _star b LBB7_2 LBB7_2: mov w0, #0 bl _exit .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "rasi" .section __DATA,__data .globl _cmd ; @cmd .p2align 3 _cmd: .quad l_.str .section __TEXT,__cstring,cstring_literals l_.str.1: ; @.str.1 .asciz "Name : %s\n" l_.str.2: ; @.str.2 .asciz "Place : %s\n" l_.str.3: ; @.str.3 .asciz "Month : %s\n" l_.str.4: ; @.str.4 .asciz "Date : %s\n" l_.str.5: ; @.str.5 .asciz "Year : %s\n" l_.str.6: ; @.str.6 .asciz "Time : %s\n" l_.str.7: ; @.str.7 .asciz "Zone : %s\n" l_.str.8: ; @.str.8 .asciz "Offset : %s\n" l_.str.9: ; @.str.9 .asciz "Long : %s\n" l_.str.10: ; @.str.10 .asciz "Lat : %s\n" l_.str.11: ; @.str.11 .asciz "Dst : %d\n" l_.str.12: ; @.str.12 .asciz "\n" l_.str.13: ; @.str.13 .asciz "-qa" l_.str.14: ; @.str.14 .asciz "-qb" l_.str.15: ; @.str.15 .asciz "-zi" l_.str.16: ; @.str.16 .asciz "-l" l_.str.17: ; @.str.17 .asciz "-Yt" l_.str.18: ; @.str.18 .asciz "-s" l_.str.19: ; @.str.19 .asciz "0.872" l_.str.20: ; @.str.20 .asciz "-b0" l_.str.21: ; @.str.21 .asciz "-7" l_.str.22: ; @.str.22 .asciz "-R0" l_.str.23: ; @.str.23 .asciz "-R" l_.str.24: ; @.str.24 .asciz "2" l_.str.25: ; @.str.25 .asciz "-A" l_.str.26: ; @.str.26 .asciz "8" l_.str.27: ; @.str.27 .asciz "-!" l_.str.28: ; @.str.28 .asciz "r" l_.str.29: ; @.str.29 .asciz "%f" .section __DATA,__data .p2align 3 ; @rasi _rasi: .quad l_.str.47 .quad l_.str.48 .quad l_.str.49 .quad l_.str.50 .quad l_.str.51 .quad l_.str.52 .quad l_.str.53 .quad l_.str.54 .quad l_.str.55 .quad l_.str.56 .quad l_.str.57 .quad l_.str.58 .section __TEXT,__cstring,cstring_literals l_.str.30: ; @.str.30 .asciz "|" .section __DATA,__data .p2align 3 ; @mon _mon: .quad l_.str.59 .quad l_.str.60 .quad l_.str.61 .quad l_.str.62 .quad l_.str.63 .quad l_.str.64 .quad l_.str.65 .quad l_.str.66 .quad l_.str.67 .quad l_.str.68 .quad l_.str.69 .quad l_.str.70 .quad l_.str.71 .section __TEXT,__cstring,cstring_literals l_.str.31: ; @.str.31 .asciz "AD" l_.str.32: ; @.str.32 .asciz "ST" l_.str.33: ; @.str.33 .asciz "Transit" l_.str.34: ; @.str.34 .asciz "Sunnyvale" l_.str.35: ; @.str.35 .asciz "%d" l_.str.36: ; @.str.36 .asciz "%d:%d" l_.str.37: ; @.str.37 .asciz "8:00" l_.str.38: ; @.str.38 .asciz "122:00W" l_.str.39: ; @.str.39 .asciz "37:23N" l_.str.40: ; @.str.40 .asciz "Content-Type: application/json;charset=UTF-8\n\n" l_.str.41: ; @.str.41 .asciz "QUERY_STRING" l_.str.42: ; @.str.42 .asciz "Invalid QUERY_STRING\n" l_.str.43: ; @.str.43 .asciz "=" l_.str.44: ; @.str.44 .asciz "Star: %s Rasi: %s %d\n" l_.str.45: ; @.str.45 .asciz "Transit Star: %s Rasi: %s %d\n" l_.str.46: ; @.str.46 .asciz "diff %d %s\n" .section __DATA,__data .p2align 3 ; @moPred _moPred: .quad l_.str.59 .quad l_.str.72 .quad l_.str.73 .quad l_.str.74 .quad l_.str.75 .quad l_.str.76 .quad l_.str.77 .quad l_.str.78 .quad l_.str.79 .quad l_.str.80 .quad l_.str.81 .quad l_.str.82 .quad l_.str.83 .section __TEXT,__cstring,cstring_literals l_.str.47: ; @.str.47 .asciz "Mesha" l_.str.48: ; @.str.48 .asciz "Vrishabha" l_.str.49: ; @.str.49 .asciz "Midhuna" l_.str.50: ; @.str.50 .asciz "Kataka" l_.str.51: ; @.str.51 .asciz "Simha" l_.str.52: ; @.str.52 .asciz "Kanya" l_.str.53: ; @.str.53 .asciz "Thula" l_.str.54: ; @.str.54 .asciz "Vrischika" l_.str.55: ; @.str.55 .asciz "Dhanas" l_.str.56: ; @.str.56 .asciz "Makara" l_.str.57: ; @.str.57 .asciz "Kumbha" l_.str.58: ; @.str.58 .asciz "Meena" l_.str.59: ; @.str.59 .space 1 l_.str.60: ; @.str.60 .asciz "Jan" l_.str.61: ; @.str.61 .asciz "Feb" l_.str.62: ; @.str.62 .asciz "Mar" l_.str.63: ; @.str.63 .asciz "Apr" l_.str.64: ; @.str.64 .asciz "May" l_.str.65: ; @.str.65 .asciz "Jun" l_.str.66: ; @.str.66 .asciz "Jul" l_.str.67: ; @.str.67 .asciz "Aug" l_.str.68: ; @.str.68 .asciz "Sep" l_.str.69: ; @.str.69 .asciz "Oct" l_.str.70: ; @.str.70 .asciz "Nov" l_.str.71: ; @.str.71 .asciz "Dec" l_.str.72: ; @.str.72 .asciz "Good relations with women and friends, good food" l_.str.73: ; @.str.73 .asciz "Tiredness and expenditure" l_.str.74: ; @.str.74 .asciz "Gains of money, gold and good clothes" l_.str.75: ; @.str.75 .asciz "Accidents or ill health, trouble from relatives, sorrow and expenditure" l_.str.76: ; @.str.76 .asciz "Indigestion, loss of money, tiresome journeys" l_.str.77: ; @.str.77 .asciz "Victory over enemies, good health, increase in income and happiness" l_.str.78: ; @.str.78 .asciz "Friendship and gains, good comforts of bed, conjugal bliss and company of good friends" l_.str.79: ; @.str.79 .asciz "Trouble losses and expenses, illness, quarrels and worries" l_.str.80: ; @.str.80 .asciz "Loss of reputation and money, heavy expenses, intimidation and worry" l_.str.81: ; @.str.81 .asciz "Good name and reputation, gains and fulfillment of desires, happiness" l_.str.82: ; @.str.82 .asciz "Happiness, good friends, monetary gains, good comforts of bed and increase in respect" l_.str.83: ; @.str.83 .asciz "Carelessness and losses, misery, difference of opinion and arguments with others" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _printhd ## -- Begin function printhd .p2align 4, 0x90 _printhd: ## @printhd .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rsi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movq -8(%rbp), %rsi addq $1024, %rsi ## imm = 0x400 leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq -8(%rbp), %rsi addq $2048, %rsi ## imm = 0x800 leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movq -8(%rbp), %rsi addq $3072, %rsi ## imm = 0xC00 leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movq -8(%rbp), %rsi addq $4096, %rsi ## imm = 0x1000 leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movq -8(%rbp), %rsi addq $5120, %rsi ## imm = 0x1400 leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf movq -8(%rbp), %rsi addq $6144, %rsi ## imm = 0x1800 leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf movq -8(%rbp), %rsi addq $7168, %rsi ## imm = 0x1C00 leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf movq -8(%rbp), %rsi addq $8192, %rsi ## imm = 0x2000 leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf movq -8(%rbp), %rsi addq $9216, %rsi ## imm = 0x2400 leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf movq -8(%rbp), %rax movl 11268(%rax), %esi leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function horoscope LCPI1_0: .quad 0x402aaaaaaaaaaaab ## double 13.333333333333334 LCPI1_1: .quad 0x403e000000000000 ## double 30 .section __TEXT,__text,regular,pure_instructions .globl _horoscope .p2align 4, 0x90 _horoscope: ## @horoscope .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $4160, %eax ## imm = 0x1040 callq ____chkstk_darwin subq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -4136(%rbp) movl $0, -4140(%rbp) leaq -1048(%rbp), %rdi callq _pipe movq _cmd(%rip), %rcx movl -4140(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -4140(%rbp) cltq movq %rcx, -3104(%rbp,%rax,8) movq -4136(%rbp), %rax cmpl $0, 11264(%rax) je LBB1_2 ## %bb.1: movl -4140(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -4140(%rbp) cltq leaq L_.str.13(%rip), %rcx movq %rcx, -3104(%rbp,%rax,8) jmp LBB1_3 LBB1_2: movl -4140(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -4140(%rbp) cltq leaq L_.str.14(%rip), %rcx movq %rcx, -3104(%rbp,%rax,8) LBB1_3: movq -4136(%rbp), %rcx addq $2048, %rcx ## imm = 0x800 movl -4140(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -4140(%rbp) cltq movq %rcx, -3104(%rbp,%rax,8) movq -4136(%rbp), %rcx addq $3072, %rcx ## imm = 0xC00 movl -4140(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -4140(%rbp) cltq movq %rcx, -3104(%rbp,%rax,8) movq -4136(%rbp), %rcx addq $4096, %rcx ## imm = 0x1000 movl -4140(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -4140(%rbp) cltq movq %rcx, -3104(%rbp,%rax,8) movq -4136(%rbp), %rcx addq $5120, %rcx ## imm = 0x1400 movl -4140(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -4140(%rbp) cltq movq %rcx, -3104(%rbp,%rax,8) movq -4136(%rbp), %rcx addq $6144, %rcx ## imm = 0x1800 movl -4140(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -4140(%rbp) cltq movq %rcx, -3104(%rbp,%rax,8) movq -4136(%rbp), %rax cmpl $0, 11264(%rax) jne LBB1_5 ## %bb.4: movq -4136(%rbp), %rcx addq $7168, %rcx ## imm = 0x1C00 movl -4140(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -4140(%rbp) cltq movq %rcx, -3104(%rbp,%rax,8) LBB1_5: movq -4136(%rbp), %rcx addq $8192, %rcx ## imm = 0x2000 movl -4140(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -4140(%rbp) cltq movq %rcx, -3104(%rbp,%rax,8) movq -4136(%rbp), %rcx addq $9216, %rcx ## imm = 0x2400 movl -4140(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -4140(%rbp) cltq movq %rcx, -3104(%rbp,%rax,8) movl -4140(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -4140(%rbp) cltq leaq L_.str.15(%rip), %rcx movq %rcx, -3104(%rbp,%rax,8) movq -4136(%rbp), %rcx movl -4140(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -4140(%rbp) cltq movq %rcx, -3104(%rbp,%rax,8) movq -4136(%rbp), %rcx addq $1024, %rcx ## imm = 0x400 movl -4140(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -4140(%rbp) cltq movq %rcx, -3104(%rbp,%rax,8) movl -4140(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -4140(%rbp) cltq leaq L_.str.16(%rip), %rcx movq %rcx, -3104(%rbp,%rax,8) movl -4140(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -4140(%rbp) cltq leaq L_.str.17(%rip), %rcx movq %rcx, -3104(%rbp,%rax,8) movl -4140(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -4140(%rbp) cltq leaq L_.str.18(%rip), %rcx movq %rcx, -3104(%rbp,%rax,8) movl -4140(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -4140(%rbp) cltq leaq L_.str.19(%rip), %rcx movq %rcx, -3104(%rbp,%rax,8) movl -4140(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -4140(%rbp) cltq leaq L_.str.20(%rip), %rcx movq %rcx, -3104(%rbp,%rax,8) movq -4136(%rbp), %rax cmpl $0, 11268(%rax) je LBB1_7 ## %bb.6: movl -4140(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -4140(%rbp) cltq leaq L_.str.21(%rip), %rcx movq %rcx, -3104(%rbp,%rax,8) LBB1_7: movl -4140(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -4140(%rbp) cltq leaq L_.str.22(%rip), %rcx movq %rcx, -3104(%rbp,%rax,8) movl -4140(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -4140(%rbp) cltq leaq L_.str.23(%rip), %rcx movq %rcx, -3104(%rbp,%rax,8) movl -4140(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -4140(%rbp) cltq leaq L_.str.24(%rip), %rcx movq %rcx, -3104(%rbp,%rax,8) movl -4140(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -4140(%rbp) cltq leaq L_.str.25(%rip), %rcx movq %rcx, -3104(%rbp,%rax,8) movl -4140(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -4140(%rbp) cltq leaq L_.str.26(%rip), %rcx movq %rcx, -3104(%rbp,%rax,8) movl -4140(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -4140(%rbp) cltq leaq L_.str.27(%rip), %rcx movq %rcx, -3104(%rbp,%rax,8) movslq -4140(%rbp), %rax movq $0, -3104(%rbp,%rax,8) callq _fork cmpl $0, %eax jne LBB1_9 ## %bb.8: movl $1, %edi callq _close movl -1044(%rbp), %edi movl $1, %esi callq _dup2 movl -1048(%rbp), %edi callq _close movl -1044(%rbp), %edi callq _close movl -4140(%rbp), %edi leaq -3104(%rbp), %rsi callq _astromain jmp LBB1_13 LBB1_9: movl -1044(%rbp), %edi callq _close movl -1048(%rbp), %edi leaq L_.str.28(%rip), %rsi callq _fdopen movq %rax, -4152(%rbp) LBB1_10: ## =>This Inner Loop Header: Depth=1 leaq -1040(%rbp), %rdi movq -4152(%rbp), %rdx movl $1024, %esi ## imm = 0x400 callq _fgets cmpq $0, %rax je LBB1_12 ## %bb.11: ## in Loop: Header=BB1_10 Depth=1 leaq -1040(%rbp), %rdi movq -4136(%rbp), %rdx addq $11272, %rdx ## imm = 0x2C08 leaq L_.str.29(%rip), %rsi movb $0, %al callq _sscanf movq -4136(%rbp), %rax movss 11272(%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI1_1(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 cvttsd2si %xmm0, %ecx movq -4136(%rbp), %rax movl %ecx, 11276(%rax) movq -4136(%rbp), %rax movss 11272(%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 cvttsd2si %xmm0, %ecx movq -4136(%rbp), %rax movl %ecx, 11280(%rax) movq -4136(%rbp), %rax movslq 11276(%rax), %rcx leaq _rasi(%rip), %rax movq (%rax,%rcx,8), %rcx movq -4136(%rbp), %rax movq %rcx, 11288(%rax) movq -4136(%rbp), %rax movslq 11280(%rax), %rcx movq _naksatras@GOTPCREL(%rip), %rax movq (%rax,%rcx,8), %rcx movq -4136(%rbp), %rax movq %rcx, 11296(%rax) jmp LBB1_10 LBB1_12: movq -4152(%rbp), %rdi callq _fclose LBB1_13: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_15 ## %bb.14: addq $4160, %rsp ## imm = 0x1040 popq %rbp retq LBB1_15: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _strip_blanks ## -- Begin function strip_blanks .p2align 4, 0x90 _strip_blanks: ## @strip_blanks .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movl $0, -24(%rbp) movq -16(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -28(%rbp) movl $0, -20(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -28(%rbp), %eax jge LBB2_7 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $37, %eax jne LBB2_4 ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movl -20(%rbp), %eax addl $2, %eax movl %eax, -20(%rbp) jmp LBB2_5 LBB2_4: ## in Loop: Header=BB2_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movb (%rax,%rcx), %dl movq -8(%rbp), %rax movl -24(%rbp), %ecx movl %ecx, %esi addl $1, %esi movl %esi, -24(%rbp) movslq %ecx, %rcx movb %dl, (%rax,%rcx) LBB2_5: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_6 LBB2_6: ## in Loop: Header=BB2_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB2_1 LBB2_7: movq -8(%rbp), %rax movslq -24(%rbp), %rcx movb $0, (%rax,%rcx) addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _gethd ## -- Begin function gethd .p2align 4, 0x90 _gethd: ## @gethd .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movl $0, -20(%rbp) LBB3_1: ## =>This Inner Loop Header: Depth=1 leaq -8(%rbp), %rdi leaq L_.str.30(%rip), %rsi callq _strsep movq %rax, -32(%rbp) cmpq $0, %rax je LBB3_19 ## %bb.2: ## in Loop: Header=BB3_1 Depth=1 movl -20(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -40(%rbp) ## 8-byte Spill subq $10, %rax ja LBB3_17 ## %bb.25: ## in Loop: Header=BB3_1 Depth=1 movq -40(%rbp), %rax ## 8-byte Reload leaq LJTI3_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB3_3: ## in Loop: Header=BB3_1 Depth=1 movq -16(%rbp), %rdi movq -32(%rbp), %rsi callq _strip_blanks jmp LBB3_17 LBB3_4: ## in Loop: Header=BB3_1 Depth=1 movq -16(%rbp), %rdi addq $1024, %rdi ## imm = 0x400 movq -32(%rbp), %rsi callq _strip_blanks jmp LBB3_17 LBB3_5: ## in Loop: Header=BB3_1 Depth=1 movq -32(%rbp), %rdi callq _atoi movl %eax, -24(%rbp) cmpl $0, -24(%rbp) jle LBB3_8 ## %bb.6: ## in Loop: Header=BB3_1 Depth=1 cmpl $12, -24(%rbp) jg LBB3_8 ## %bb.7: ## in Loop: Header=BB3_1 Depth=1 movq -16(%rbp), %rdi addq $2048, %rdi ## imm = 0x800 movslq -24(%rbp), %rcx leaq _mon(%rip), %rax movq (%rax,%rcx,8), %rsi movl $1024, %edx ## imm = 0x400 callq ___strcpy_chk LBB3_8: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_17 LBB3_9: ## in Loop: Header=BB3_1 Depth=1 movq -16(%rbp), %rdi addq $3072, %rdi ## imm = 0xC00 movq -32(%rbp), %rsi movl $1024, %edx ## imm = 0x400 callq ___strcpy_chk jmp LBB3_17 LBB3_10: ## in Loop: Header=BB3_1 Depth=1 movq -16(%rbp), %rdi addq $4096, %rdi ## imm = 0x1000 movq -32(%rbp), %rsi movl $1024, %edx ## imm = 0x400 callq ___strcpy_chk jmp LBB3_17 LBB3_11: ## in Loop: Header=BB3_1 Depth=1 movq -16(%rbp), %rdi addq $5120, %rdi ## imm = 0x1400 movq -32(%rbp), %rsi callq _strip_blanks jmp LBB3_17 LBB3_12: ## in Loop: Header=BB3_1 Depth=1 movq -16(%rbp), %rdi addq $6144, %rdi ## imm = 0x1800 movq -32(%rbp), %rsi movl $1024, %edx ## imm = 0x400 callq ___strcpy_chk jmp LBB3_17 LBB3_13: ## in Loop: Header=BB3_1 Depth=1 movq -16(%rbp), %rdi addq $7168, %rdi ## imm = 0x1C00 movq -32(%rbp), %rsi movl $1024, %edx ## imm = 0x400 callq ___strcpy_chk jmp LBB3_17 LBB3_14: ## in Loop: Header=BB3_1 Depth=1 movq -16(%rbp), %rdi addq $8192, %rdi ## imm = 0x2000 movq -32(%rbp), %rsi movl $1024, %edx ## imm = 0x400 callq ___strcpy_chk jmp LBB3_17 LBB3_15: ## in Loop: Header=BB3_1 Depth=1 movq -16(%rbp), %rdi addq $9216, %rdi ## imm = 0x2400 movq -32(%rbp), %rsi movl $1024, %edx ## imm = 0x400 callq ___strcpy_chk jmp LBB3_17 LBB3_16: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_17 LBB3_17: ## in Loop: Header=BB3_1 Depth=1 jmp LBB3_18 LBB3_18: ## in Loop: Header=BB3_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB3_1 LBB3_19: movq -16(%rbp), %rdi addq $6144, %rdi ## imm = 0x1800 leaq L_.str.31(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB3_21 ## %bb.20: movq -16(%rbp), %rax movl $1, 11268(%rax) movq -16(%rbp), %rdi addq $6144, %rdi ## imm = 0x1800 leaq L_.str.32(%rip), %rsi movl $1024, %edx ## imm = 0x400 callq ___strcpy_chk jmp LBB3_24 LBB3_21: movq -16(%rbp), %rdi addq $6144, %rdi ## imm = 0x1800 leaq L_.str.32(%rip), %rsi callq _strcmp cmpl $0, %eax je LBB3_23 ## %bb.22: movq -16(%rbp), %rax movl $1, 11268(%rax) movq -16(%rbp), %rdi addq $8192, %rdi ## imm = 0x2000 movq -16(%rbp), %rsi addq $9216, %rsi ## imm = 0x2400 movl $1024, %edx ## imm = 0x400 callq ___strcpy_chk movq -16(%rbp), %rdi addq $9216, %rdi ## imm = 0x2400 movq -16(%rbp), %rsi addq $7168, %rsi ## imm = 0x1C00 movl $1024, %edx ## imm = 0x400 callq ___strcpy_chk movq -16(%rbp), %rax movb $0, 7168(%rax) LBB3_23: jmp LBB3_24 LBB3_24: addq $48, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L3_0_set_3, LBB3_3-LJTI3_0 .set L3_0_set_4, LBB3_4-LJTI3_0 .set L3_0_set_5, LBB3_5-LJTI3_0 .set L3_0_set_9, LBB3_9-LJTI3_0 .set L3_0_set_10, LBB3_10-LJTI3_0 .set L3_0_set_11, LBB3_11-LJTI3_0 .set L3_0_set_12, LBB3_12-LJTI3_0 .set L3_0_set_13, LBB3_13-LJTI3_0 .set L3_0_set_14, LBB3_14-LJTI3_0 .set L3_0_set_15, LBB3_15-LJTI3_0 .set L3_0_set_16, LBB3_16-LJTI3_0 LJTI3_0: .long L3_0_set_3 .long L3_0_set_4 .long L3_0_set_5 .long L3_0_set_9 .long L3_0_set_10 .long L3_0_set_11 .long L3_0_set_12 .long L3_0_set_13 .long L3_0_set_14 .long L3_0_set_15 .long L3_0_set_16 .end_data_region ## -- End function .globl _findDiff ## -- Begin function findDiff .p2align 4, 0x90 _findDiff: ## @findDiff .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl %edx, -12(%rbp) movl -4(%rbp), %eax cmpl -8(%rbp), %eax jl LBB4_4 ## %bb.1: movl -12(%rbp), %eax subl -4(%rbp), %eax addl -8(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) cmpl $13, -16(%rbp) jne LBB4_3 ## %bb.2: movl $1, -16(%rbp) LBB4_3: jmp LBB4_5 LBB4_4: movl -4(%rbp), %edi subl -8(%rbp), %edi callq _abs addl $1, %eax movl %eax, -16(%rbp) LBB4_5: movl -16(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _transit ## -- Begin function transit .p2align 4, 0x90 _transit: ## @transit .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) leaq -16(%rbp), %rdi callq _time movq %rax, -16(%rbp) leaq -16(%rbp), %rdi callq _localtime movq %rax, -24(%rbp) movq -8(%rbp), %rdi leaq L_.str.33(%rip), %rsi movl $1024, %edx ## imm = 0x400 callq ___strcpy_chk movq -8(%rbp), %rdi addq $1024, %rdi ## imm = 0x400 leaq L_.str.34(%rip), %rsi movl $1024, %edx ## imm = 0x400 callq ___strcpy_chk movq -8(%rbp), %rdi addq $2048, %rdi ## imm = 0x800 movq -24(%rbp), %rax movl 16(%rax), %eax addl $1, %eax movslq %eax, %rcx leaq _mon(%rip), %rax movq (%rax,%rcx,8), %rsi movl $1024, %edx ## imm = 0x400 callq ___strcpy_chk movq -8(%rbp), %rdi addq $3072, %rdi ## imm = 0xC00 movq -24(%rbp), %rax movl 12(%rax), %r8d xorl %esi, %esi movl $1024, %edx ## imm = 0x400 leaq L_.str.35(%rip), %rcx movb $0, %al callq ___sprintf_chk movq -8(%rbp), %rdi addq $4096, %rdi ## imm = 0x1000 movq -24(%rbp), %rax movl 20(%rax), %r8d addl $1900, %r8d ## imm = 0x76C xorl %esi, %esi movl $1024, %edx ## imm = 0x400 leaq L_.str.35(%rip), %rcx movb $0, %al callq ___sprintf_chk movq -8(%rbp), %rdi addq $5120, %rdi ## imm = 0x1400 movq -24(%rbp), %rax movl 8(%rax), %r8d movq -24(%rbp), %rax movl 4(%rax), %r9d xorl %esi, %esi movl $1024, %edx ## imm = 0x400 leaq L_.str.36(%rip), %rcx movb $0, %al callq ___sprintf_chk movq -8(%rbp), %rdi addq $6144, %rdi ## imm = 0x1800 leaq L_.str.32(%rip), %rsi movl $1024, %edx ## imm = 0x400 callq ___strcpy_chk movq -8(%rbp), %rdi addq $7168, %rdi ## imm = 0x1C00 xorl %esi, %esi movl $1024, %edx ## imm = 0x400 leaq L_.str.37(%rip), %rcx movb $0, %al callq ___sprintf_chk movq -8(%rbp), %rdi addq $8192, %rdi ## imm = 0x2000 xorl %esi, %esi movl $1024, %edx ## imm = 0x400 leaq L_.str.38(%rip), %rcx movb $0, %al callq ___sprintf_chk movq -8(%rbp), %rdi addq $9216, %rdi ## imm = 0x2400 xorl %esi, %esi movl $1024, %edx ## imm = 0x400 leaq L_.str.39(%rip), %rcx movb $0, %al callq ___sprintf_chk movq -8(%rbp), %rdi callq _horoscope addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _star ## -- Begin function star .p2align 4, 0x90 _star: ## @star .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $23712, %eax ## imm = 0x5CA0 callq ____chkstk_darwin subq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -23656(%rbp) movl $0, -23676(%rbp) movq -23656(%rbp), %rdi leaq L_.str.40(%rip), %rsi movb $0, %al callq _fprintf movq -23656(%rbp), %rdi callq _fflush leaq L_.str.41(%rip), %rdi callq _getenv movq %rax, -23664(%rbp) cmpq $0, -23664(%rbp) jne LBB6_2 ## %bb.1: leaq L_.str.42(%rip), %rdi xorl %eax, %eax movl %eax, -23700(%rbp) ## 4-byte Spill callq _printf movl -23700(%rbp), %edi ## 4-byte Reload callq _exit LBB6_2: movq -23664(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -23692(%rbp) leaq -11312(%rbp), %rdi xorl %esi, %esi movl $11304, %edx ## imm = 0x2C28 callq _memset movl $0, -23680(%rbp) LBB6_3: ## =>This Inner Loop Header: Depth=1 leaq -23664(%rbp), %rdi leaq L_.str.43(%rip), %rsi callq _strsep movq %rax, -23672(%rbp) cmpq $0, %rax je LBB6_25 ## %bb.4: ## in Loop: Header=BB6_3 Depth=1 cmpl $1, -23680(%rbp) jne LBB6_23 ## %bb.5: movq -23672(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -23692(%rbp) movl $0, -23684(%rbp) movl $0, -23688(%rbp) LBB6_6: ## =>This Inner Loop Header: Depth=1 movl -23684(%rbp), %eax cmpl -23692(%rbp), %eax jge LBB6_22 ## %bb.7: ## in Loop: Header=BB6_6 Depth=1 movq -23672(%rbp), %rax movslq -23684(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $37, %eax jne LBB6_11 ## %bb.8: ## in Loop: Header=BB6_6 Depth=1 movq -23672(%rbp), %rax movl -23684(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movsbl (%rax,%rcx), %eax cmpl $55, %eax jne LBB6_11 ## %bb.9: ## in Loop: Header=BB6_6 Depth=1 movq -23672(%rbp), %rax movl -23684(%rbp), %ecx addl $2, %ecx movslq %ecx, %rcx movsbl (%rax,%rcx), %eax cmpl $67, %eax jne LBB6_11 ## %bb.10: ## in Loop: Header=BB6_6 Depth=1 movl -23688(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -23688(%rbp) cltq movb $124, -23648(%rbp,%rax) movl -23684(%rbp), %eax addl $2, %eax movl %eax, -23684(%rbp) jmp LBB6_20 LBB6_11: ## in Loop: Header=BB6_6 Depth=1 movq -23672(%rbp), %rax movslq -23684(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $37, %eax jne LBB6_15 ## %bb.12: ## in Loop: Header=BB6_6 Depth=1 movq -23672(%rbp), %rax movl -23684(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movsbl (%rax,%rcx), %eax cmpl $51, %eax jne LBB6_15 ## %bb.13: ## in Loop: Header=BB6_6 Depth=1 movq -23672(%rbp), %rax movl -23684(%rbp), %ecx addl $2, %ecx movslq %ecx, %rcx movsbl (%rax,%rcx), %eax cmpl $65, %eax jne LBB6_15 ## %bb.14: ## in Loop: Header=BB6_6 Depth=1 movl -23688(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -23688(%rbp) cltq movb $58, -23648(%rbp,%rax) movl -23684(%rbp), %eax addl $2, %eax movl %eax, -23684(%rbp) jmp LBB6_19 LBB6_15: ## in Loop: Header=BB6_6 Depth=1 movq -23672(%rbp), %rax movslq -23684(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $43, %eax jne LBB6_17 ## %bb.16: ## in Loop: Header=BB6_6 Depth=1 movl -23688(%rbp), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, -23688(%rbp) cltq movb $32, -23648(%rbp,%rax) jmp LBB6_18 LBB6_17: ## in Loop: Header=BB6_6 Depth=1 movq -23672(%rbp), %rax movslq -23684(%rbp), %rcx movb (%rax,%rcx), %cl movl -23688(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -23688(%rbp) cltq movb %cl, -23648(%rbp,%rax) LBB6_18: ## in Loop: Header=BB6_6 Depth=1 jmp LBB6_19 LBB6_19: ## in Loop: Header=BB6_6 Depth=1 jmp LBB6_20 LBB6_20: ## in Loop: Header=BB6_6 Depth=1 jmp LBB6_21 LBB6_21: ## in Loop: Header=BB6_6 Depth=1 movl -23684(%rbp), %eax addl $1, %eax movl %eax, -23684(%rbp) jmp LBB6_6 LBB6_22: leaq -23648(%rbp), %rdi leaq -11312(%rbp), %rsi callq _gethd movl $1, -23676(%rbp) jmp LBB6_25 LBB6_23: ## in Loop: Header=BB6_3 Depth=1 jmp LBB6_24 LBB6_24: ## in Loop: Header=BB6_3 Depth=1 movl -23680(%rbp), %eax addl $1, %eax movl %eax, -23680(%rbp) jmp LBB6_3 LBB6_25: cmpl $0, -23676(%rbp) je LBB6_27 ## %bb.26: leaq -11312(%rbp), %rdi callq _horoscope movq -16(%rbp), %rsi movq -24(%rbp), %rdx movl -36(%rbp), %ecx leaq L_.str.44(%rip), %rdi movb $0, %al callq _printf leaq -22616(%rbp), %rdi callq _transit leaq -22616(%rbp), %rdi callq _printhd movq -11320(%rbp), %rsi movq -11328(%rbp), %rdx movl -11340(%rbp), %ecx leaq L_.str.45(%rip), %rdi movb $0, %al callq _printf movl -36(%rbp), %edi movl -11340(%rbp), %esi movl $12, %edx callq _findDiff movl %eax, -23696(%rbp) movl -23696(%rbp), %esi movslq -23696(%rbp), %rcx leaq _moPred(%rip), %rax movq (%rax,%rcx,8), %rdx leaq L_.str.46(%rip), %rdi movb $0, %al callq _printf LBB6_27: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB6_29 ## %bb.28: addq $23712, %rsp ## imm = 0x5CA0 popq %rbp retq LBB6_29: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movq -16(%rbp), %rax movq (%rax), %rdi callq _basename movq %rax, -24(%rbp) movq -24(%rbp), %rdi leaq L_.str(%rip), %rsi callq _strcmp cmpl $0, %eax jne LBB7_2 ## %bb.1: callq _star LBB7_2: xorl %edi, %edi callq _exit .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "rasi" .section __DATA,__data .globl _cmd ## @cmd .p2align 3 _cmd: .quad L_.str .section __TEXT,__cstring,cstring_literals L_.str.1: ## @.str.1 .asciz "Name : %s\n" L_.str.2: ## @.str.2 .asciz "Place : %s\n" L_.str.3: ## @.str.3 .asciz "Month : %s\n" L_.str.4: ## @.str.4 .asciz "Date : %s\n" L_.str.5: ## @.str.5 .asciz "Year : %s\n" L_.str.6: ## @.str.6 .asciz "Time : %s\n" L_.str.7: ## @.str.7 .asciz "Zone : %s\n" L_.str.8: ## @.str.8 .asciz "Offset : %s\n" L_.str.9: ## @.str.9 .asciz "Long : %s\n" L_.str.10: ## @.str.10 .asciz "Lat : %s\n" L_.str.11: ## @.str.11 .asciz "Dst : %d\n" L_.str.12: ## @.str.12 .asciz "\n" L_.str.13: ## @.str.13 .asciz "-qa" L_.str.14: ## @.str.14 .asciz "-qb" L_.str.15: ## @.str.15 .asciz "-zi" L_.str.16: ## @.str.16 .asciz "-l" L_.str.17: ## @.str.17 .asciz "-Yt" L_.str.18: ## @.str.18 .asciz "-s" L_.str.19: ## @.str.19 .asciz "0.872" L_.str.20: ## @.str.20 .asciz "-b0" L_.str.21: ## @.str.21 .asciz "-7" L_.str.22: ## @.str.22 .asciz "-R0" L_.str.23: ## @.str.23 .asciz "-R" L_.str.24: ## @.str.24 .asciz "2" L_.str.25: ## @.str.25 .asciz "-A" L_.str.26: ## @.str.26 .asciz "8" L_.str.27: ## @.str.27 .asciz "-!" L_.str.28: ## @.str.28 .asciz "r" L_.str.29: ## @.str.29 .asciz "%f" .section __DATA,__data .p2align 4 ## @rasi _rasi: .quad L_.str.47 .quad L_.str.48 .quad L_.str.49 .quad L_.str.50 .quad L_.str.51 .quad L_.str.52 .quad L_.str.53 .quad L_.str.54 .quad L_.str.55 .quad L_.str.56 .quad L_.str.57 .quad L_.str.58 .section __TEXT,__cstring,cstring_literals L_.str.30: ## @.str.30 .asciz "|" .section __DATA,__data .p2align 4 ## @mon _mon: .quad L_.str.59 .quad L_.str.60 .quad L_.str.61 .quad L_.str.62 .quad L_.str.63 .quad L_.str.64 .quad L_.str.65 .quad L_.str.66 .quad L_.str.67 .quad L_.str.68 .quad L_.str.69 .quad L_.str.70 .quad L_.str.71 .section __TEXT,__cstring,cstring_literals L_.str.31: ## @.str.31 .asciz "AD" L_.str.32: ## @.str.32 .asciz "ST" L_.str.33: ## @.str.33 .asciz "Transit" L_.str.34: ## @.str.34 .asciz "Sunnyvale" L_.str.35: ## @.str.35 .asciz "%d" L_.str.36: ## @.str.36 .asciz "%d:%d" L_.str.37: ## @.str.37 .asciz "8:00" L_.str.38: ## @.str.38 .asciz "122:00W" L_.str.39: ## @.str.39 .asciz "37:23N" L_.str.40: ## @.str.40 .asciz "Content-Type: application/json;charset=UTF-8\n\n" L_.str.41: ## @.str.41 .asciz "QUERY_STRING" L_.str.42: ## @.str.42 .asciz "Invalid QUERY_STRING\n" L_.str.43: ## @.str.43 .asciz "=" L_.str.44: ## @.str.44 .asciz "Star: %s Rasi: %s %d\n" L_.str.45: ## @.str.45 .asciz "Transit Star: %s Rasi: %s %d\n" L_.str.46: ## @.str.46 .asciz "diff %d %s\n" .section __DATA,__data .p2align 4 ## @moPred _moPred: .quad L_.str.59 .quad L_.str.72 .quad L_.str.73 .quad L_.str.74 .quad L_.str.75 .quad L_.str.76 .quad L_.str.77 .quad L_.str.78 .quad L_.str.79 .quad L_.str.80 .quad L_.str.81 .quad L_.str.82 .quad L_.str.83 .section __TEXT,__cstring,cstring_literals L_.str.47: ## @.str.47 .asciz "Mesha" L_.str.48: ## @.str.48 .asciz "Vrishabha" L_.str.49: ## @.str.49 .asciz "Midhuna" L_.str.50: ## @.str.50 .asciz "Kataka" L_.str.51: ## @.str.51 .asciz "Simha" L_.str.52: ## @.str.52 .asciz "Kanya" L_.str.53: ## @.str.53 .asciz "Thula" L_.str.54: ## @.str.54 .asciz "Vrischika" L_.str.55: ## @.str.55 .asciz "Dhanas" L_.str.56: ## @.str.56 .asciz "Makara" L_.str.57: ## @.str.57 .asciz "Kumbha" L_.str.58: ## @.str.58 .asciz "Meena" L_.str.59: ## @.str.59 .space 1 L_.str.60: ## @.str.60 .asciz "Jan" L_.str.61: ## @.str.61 .asciz "Feb" L_.str.62: ## @.str.62 .asciz "Mar" L_.str.63: ## @.str.63 .asciz "Apr" L_.str.64: ## @.str.64 .asciz "May" L_.str.65: ## @.str.65 .asciz "Jun" L_.str.66: ## @.str.66 .asciz "Jul" L_.str.67: ## @.str.67 .asciz "Aug" L_.str.68: ## @.str.68 .asciz "Sep" L_.str.69: ## @.str.69 .asciz "Oct" L_.str.70: ## @.str.70 .asciz "Nov" L_.str.71: ## @.str.71 .asciz "Dec" L_.str.72: ## @.str.72 .asciz "Good relations with women and friends, good food" L_.str.73: ## @.str.73 .asciz "Tiredness and expenditure" L_.str.74: ## @.str.74 .asciz "Gains of money, gold and good clothes" L_.str.75: ## @.str.75 .asciz "Accidents or ill health, trouble from relatives, sorrow and expenditure" L_.str.76: ## @.str.76 .asciz "Indigestion, loss of money, tiresome journeys" L_.str.77: ## @.str.77 .asciz "Victory over enemies, good health, increase in income and happiness" L_.str.78: ## @.str.78 .asciz "Friendship and gains, good comforts of bed, conjugal bliss and company of good friends" L_.str.79: ## @.str.79 .asciz "Trouble losses and expenses, illness, quarrels and worries" L_.str.80: ## @.str.80 .asciz "Loss of reputation and money, heavy expenses, intimidation and worry" L_.str.81: ## @.str.81 .asciz "Good name and reputation, gains and fulfillment of desires, happiness" L_.str.82: ## @.str.82 .asciz "Happiness, good friends, monetary gains, good comforts of bed and increase in respect" L_.str.83: ## @.str.83 .asciz "Carelessness and losses, misery, difference of opinion and arguments with others" .subsections_via_symbols
the_stack_data/59373.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-20] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF str x0, [sp, #16] ; 8-byte Folded Spill bl _scanf adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x0, [sp, #16] ; 8-byte Folded Reload mov x9, sp sub x8, x29, #12 str x8, [x9] bl _scanf ldur s0, [x29, #-8] ldur s1, [x29, #-12] fadd s0, s0, s1 fmov s1, #2.00000000 fdiv s0, s0, s1 stur s0, [x29, #-16] ldur s0, [x29, #-16] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldur w0, [x29, #-20] ; 4-byte Folded Reload ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter mark 1 : " l_.str.1: ; @.str.1 .asciz "%f" l_.str.2: ; @.str.2 .asciz "Enter mark 2 : " l_.str.3: ; @.str.3 .asciz "\tAverage : %.2f" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function main LCPI0_0: .long 0x40000000 ## float 2 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -12(%rbp), %rsi movb $0, %al callq _scanf movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -12(%rbp), %xmm0 movss LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero divss %xmm1, %xmm0 movss %xmm0, -16(%rbp) movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.3(%rip), %rdi movb $1, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter mark 1 : " L_.str.1: ## @.str.1 .asciz "%f" L_.str.2: ## @.str.2 .asciz "Enter mark 2 : " L_.str.3: ## @.str.3 .asciz "\tAverage : %.2f" .subsections_via_symbols
the_stack_data/28652.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .subsections_via_symbols
the_stack_data/64504.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _quantasvezes ; -- Begin function quantasvezes .p2align 2 _quantasvezes: ; @quantasvezes .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur x1, [x29, #-16] str x2, [sp, #24] str x3, [sp, #16] str wzr, [sp, #12] ldur x0, [x29, #-8] ldur x1, [x29, #-16] bl _strstr str x0, [sp] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] ldr x8, [sp] add x0, x8, #1 ldur x1, [x29, #-16] bl _strstr str x0, [sp] b LBB0_1 LBB0_3: ldur x0, [x29, #-8] ldr x1, [sp, #24] bl _strstr str x0, [sp] b LBB0_4 LBB0_4: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_4 Depth=1 ldr x9, [sp, #16] ldr w8, [x9] add w8, w8, #1 str w8, [x9] ldr x8, [sp] add x0, x8, #1 ldr x1, [sp, #24] bl _strstr str x0, [sp] b LBB0_4 LBB0_6: ldr w0, [sp, #12] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #272 .cfi_def_cfa_offset 272 stp x28, x27, [sp, #240] ; 16-byte Folded Spill stp x29, x30, [sp, #256] ; 16-byte Folded Spill add x29, sp, #256 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #76] str wzr, [sp, #72] add x8, sp, #68 str x8, [sp, #48] ; 8-byte Folded Spill str wzr, [sp, #68] adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x2, [x8] sub x0, x29, #74 str x0, [sp, #56] ; 8-byte Folded Spill mov w1, #50 bl _fgets ldr x0, [sp, #56] ; 8-byte Folded Reload bl _strlen ldr x8, [sp, #56] ; 8-byte Folded Reload subs x9, x0, #1 add x8, x8, x9 strb wzr, [x8] mov x9, sp sub x8, x29, #124 str x8, [sp, #32] ; 8-byte Folded Spill str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF str x0, [sp, #24] ; 8-byte Folded Spill bl _scanf ldr x0, [sp, #24] ; 8-byte Folded Reload mov x9, sp add x8, sp, #82 str x8, [sp, #40] ; 8-byte Folded Spill str x8, [x9] bl _scanf ldr x1, [sp, #32] ; 8-byte Folded Reload ldr x2, [sp, #40] ; 8-byte Folded Reload ldr x3, [sp, #48] ; 8-byte Folded Reload ldr x0, [sp, #56] ; 8-byte Folded Reload bl _quantasvezes str w0, [sp, #72] ldr w8, [sp, #72] ; implicit-def: $x10 mov x10, x8 ldr w9, [sp, #68] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: bl ___stack_chk_fail LBB1_2: mov w0, #0 ldp x29, x30, [sp, #256] ; 16-byte Folded Reload ldp x28, x27, [sp, #240] ; 16-byte Folded Reload add sp, sp, #272 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s" l_.str.1: ; @.str.1 .asciz "%d %d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _quantasvezes ## -- Begin function quantasvezes .p2align 4, 0x90 _quantasvezes: ## @quantasvezes .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movq %rcx, -32(%rbp) movl $0, -36(%rbp) movq -8(%rbp), %rdi movq -16(%rbp), %rsi callq _strstr movq %rax, -48(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpq $0, -48(%rbp) je LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) movq -48(%rbp), %rdi addq $1, %rdi movq -16(%rbp), %rsi callq _strstr movq %rax, -48(%rbp) jmp LBB0_1 LBB0_3: movq -8(%rbp), %rdi movq -24(%rbp), %rsi callq _strstr movq %rax, -48(%rbp) LBB0_4: ## =>This Inner Loop Header: Depth=1 cmpq $0, -48(%rbp) je LBB0_6 ## %bb.5: ## in Loop: Header=BB0_4 Depth=1 movq -32(%rbp), %rax movl (%rax), %ecx addl $1, %ecx movl %ecx, (%rax) movq -48(%rbp), %rdi addq $1, %rdi movq -24(%rbp), %rsi callq _strstr movq %rax, -48(%rbp) jmp LBB0_4 LBB0_6: movl -36(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $208, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -196(%rbp) movl $0, -200(%rbp) movl $0, -204(%rbp) leaq -64(%rbp), %rdi movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdx movl $50, %esi callq _fgets leaq -64(%rbp), %rdi callq _strlen subq $1, %rax movb $0, -64(%rbp,%rax) leaq -128(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _scanf leaq -192(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _scanf leaq -64(%rbp), %rdi leaq -128(%rbp), %rsi leaq -192(%rbp), %rdx leaq -204(%rbp), %rcx callq _quantasvezes movl %eax, -200(%rbp) movl -200(%rbp), %esi movl -204(%rbp), %edx leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_2 ## %bb.1: xorl %eax, %eax addq $208, %rsp popq %rbp retq LBB1_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s" L_.str.1: ## @.str.1 .asciz "%d %d" .subsections_via_symbols
the_stack_data/539582.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _swap_endian ; -- Begin function swap_endian .p2align 2 _swap_endian: ; @swap_endian .cfi_startproc ; %bb.0: sub sp, sp, #128 .cfi_def_cfa_offset 128 stp x29, x30, [sp, #112] ; 16-byte Folded Spill add x29, sp, #112 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str x0, [sp, #32] mov x8, #255 str x8, [sp, #40] mov w8, #1 str w8, [sp, #28] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #28] subs w8, w8, #8 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 add x9, sp, #40 ldr x8, [sp, #40] ldr w11, [sp, #28] mov w10, #8 mul w10, w10, w11 ; kill: def $x10 killed $w10 lsl x8, x8, x10 ldrsw x10, [sp, #28] str x8, [x9, x10, lsl #3] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #28] add w8, w8, #1 str w8, [sp, #28] b LBB0_1 LBB0_4: ldr x9, [sp, #32] ldr x8, [sp, #40] and x8, x8, x9, lsr #56 ldr x10, [sp, #32] ldr x9, [sp, #48] and x9, x9, x10, lsr #40 eor x8, x8, x9 ldr x10, [sp, #32] ldr x9, [sp, #56] and x9, x9, x10, lsr #24 eor x8, x8, x9 ldr x10, [sp, #32] ldr x9, [sp, #64] and x9, x9, x10, lsr #8 eor x8, x8, x9 ldr x10, [sp, #32] ldr x9, [sp, #72] and x9, x9, x10, lsl #8 eor x8, x8, x9 ldr x10, [sp, #32] ldr x9, [sp, #80] and x9, x9, x10, lsl #24 eor x8, x8, x9 ldr x10, [sp, #32] ldr x9, [sp, #88] and x9, x9, x10, lsl #40 eor x8, x8, x9 ldr x10, [sp, #32] ldr x9, [sp, #96] and x9, x9, x10, lsl #56 eor x8, x8, x9 str x8, [sp, #16] ldr x8, [sp, #16] str x8, [sp, #8] ; 8-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: bl ___stack_chk_fail LBB0_6: ldr x0, [sp, #8] ; 8-byte Folded Reload ldp x29, x30, [sp, #112] ; 16-byte Folded Reload add sp, sp, #128 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-28] ; 4-byte Folded Spill stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] mov x8, #384 movk x8, #32385, lsl #16 movk x8, #24332, lsl #32 movk x8, #43535, lsl #48 stur x8, [x29, #-24] ldur x8, [x29, #-24] str x8, [sp, #32] ; 8-byte Folded Spill ldur x0, [x29, #-24] bl _swap_endian str x0, [sp, #40] ; 8-byte Folded Spill ldur x0, [x29, #-24] bl _swap_endian bl _swap_endian ldr x10, [sp, #32] ; 8-byte Folded Reload ldr x9, [sp, #40] ; 8-byte Folded Reload mov x8, sp str x10, [x8] str x9, [x8, #8] str x0, [x8, #16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur w0, [x29, #-28] ; 4-byte Folded Reload ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%016llx -> %016llx -> %016llx \n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _swap_endian ## -- Begin function swap_endian .p2align 4, 0x90 _swap_endian: ## @swap_endian .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $112, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -88(%rbp) movq $255, -80(%rbp) movl $1, -92(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $8, -92(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -80(%rbp), %rax movl -92(%rbp), %ecx shll $3, %ecx movl %ecx, %ecx ## kill: def $rcx killed $ecx ## kill: def $cl killed $rcx shlq %cl, %rax movq %rax, %rcx movslq -92(%rbp), %rax movq %rcx, -80(%rbp,%rax,8) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -92(%rbp), %eax addl $1, %eax movl %eax, -92(%rbp) jmp LBB0_1 LBB0_4: movq -88(%rbp), %rax shrq $56, %rax andq -80(%rbp), %rax movq -88(%rbp), %rcx shrq $40, %rcx andq -72(%rbp), %rcx xorq %rcx, %rax movq -88(%rbp), %rcx shrq $24, %rcx andq -64(%rbp), %rcx xorq %rcx, %rax movq -88(%rbp), %rcx shrq $8, %rcx andq -56(%rbp), %rcx xorq %rcx, %rax movq -88(%rbp), %rcx shlq $8, %rcx andq -48(%rbp), %rcx xorq %rcx, %rax movq -88(%rbp), %rcx shlq $24, %rcx andq -40(%rbp), %rcx xorq %rcx, %rax movq -88(%rbp), %rcx shlq $40, %rcx andq -32(%rbp), %rcx xorq %rcx, %rax movq -88(%rbp), %rcx shlq $56, %rcx andq -24(%rbp), %rcx xorq %rcx, %rax movq %rax, -104(%rbp) movq -104(%rbp), %rax movq %rax, -112(%rbp) ## 8-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_6 ## %bb.5: movq -112(%rbp), %rax ## 8-byte Reload addq $112, %rsp popq %rbp retq LBB0_6: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movabsq $-6192626455344512640, %rax ## imm = 0xAA0F5F0C7E810180 movq %rax, -24(%rbp) movq -24(%rbp), %rax movq %rax, -40(%rbp) ## 8-byte Spill movq -24(%rbp), %rdi callq _swap_endian movq %rax, -32(%rbp) ## 8-byte Spill movq -24(%rbp), %rdi callq _swap_endian movq %rax, %rdi callq _swap_endian movq -40(%rbp), %rsi ## 8-byte Reload movq -32(%rbp), %rdx ## 8-byte Reload movq %rax, %rcx leaq L_.str(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%016llx -> %016llx -> %016llx \n" .subsections_via_symbols
the_stack_data/107953490.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov w8, #97 sturb w8, [x29, #-5] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldursb w8, [x29, #-5] subs w8, w8, #122 cset w8, gt tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldursb w0, [x29, #-5] bl _putchar b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldurb w8, [x29, #-5] add w8, w8, #1 sturb w8, [x29, #-5] b LBB0_1 LBB0_4: mov w0, #10 bl _putchar mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movb $97, -5(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movsbl -5(%rbp), %eax cmpl $122, %eax jg LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movsbl -5(%rbp), %edi callq _putchar ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movb -5(%rbp), %al addb $1, %al movb %al, -5(%rbp) jmp LBB0_1 LBB0_4: movl $10, %edi callq _putchar xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/73574195.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .subsections_via_symbols
the_stack_data/1180076.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _sum ; -- Begin function sum .p2align 2 _sum: ; @sum .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str w1, [sp, #8] ldr w8, [sp, #12] ldr w9, [sp, #8] add w0, w8, w9 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _sum_f ; -- Begin function sum_f .p2align 2 _sum_f: ; @sum_f .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str s0, [sp, #12] str s1, [sp, #8] ldr s0, [sp, #12] ldr s1, [sp, #8] fadd s0, s0, s1 add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _sum ## -- Begin function sum .p2align 4, 0x90 _sum: ## @sum .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl -4(%rbp), %eax addl -8(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _sum_f ## -- Begin function sum_f .p2align 4, 0x90 _sum_f: ## @sum_f .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movss %xmm0, -4(%rbp) movss %xmm1, -8(%rbp) movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -8(%rbp), %xmm0 popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/52574.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #192 .cfi_def_cfa_offset 192 stp x29, x30, [sp, #176] ; 16-byte Folded Spill add x29, sp, #176 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-84] ; 4-byte Folded Spill stur wzr, [x29, #-4] sub x8, x29, #8 str x8, [sp, #40] ; 8-byte Folded Spill mov w9, #20 str w9, [sp, #68] ; 4-byte Folded Spill stur w9, [x29, #-8] sub x9, x29, #12 str x9, [sp, #32] ; 8-byte Folded Spill mov w9, #7 stur w9, [x29, #-12] ldur w9, [x29, #-8] ; implicit-def: $x10 mov x10, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr x8, [sp, #32] ; 8-byte Folded Reload ldur w9, [x29, #-12] ; implicit-def: $x10 mov x10, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldr x8, [sp, #40] ; 8-byte Folded Reload stur x8, [x29, #-24] ldur x8, [x29, #-24] mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF str x0, [sp, #48] ; 8-byte Folded Spill bl _printf ldur x8, [x29, #-24] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF str x0, [sp, #56] ; 8-byte Folded Spill bl _printf adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldr x0, [sp, #48] ; 8-byte Folded Reload mov w8, #99 stur w8, [x29, #-8] ldur x8, [x29, #-24] mov x9, sp str x8, [x9] bl _printf ldr x0, [sp, #56] ; 8-byte Folded Reload ldur x8, [x29, #-24] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] bl _printf sub x8, x29, #52 mov w9, #15 stur w9, [x29, #-52] mov x9, x8 stur x9, [x29, #-64] mov x9, x8 stur x9, [x29, #-72] stur x8, [x29, #-80] ldur w9, [x29, #-52] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF str x0, [sp, #72] ; 8-byte Folded Spill bl _printf ldur x8, [x29, #-64] ldr w8, [x8] ; implicit-def: $x11 mov x11, x8 ldur x8, [x29, #-72] ldr w8, [x8] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-80] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF str x0, [sp, #80] ; 8-byte Folded Spill bl _printf ldr w8, [sp, #68] ; 4-byte Folded Reload ldr x0, [sp, #80] ; 8-byte Folded Reload stur w8, [x29, #-52] ldur x8, [x29, #-64] ldr w8, [x8] ; implicit-def: $x11 mov x11, x8 ldur x8, [x29, #-72] ldr w8, [x8] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-80] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] bl _printf ldr x0, [sp, #72] ; 8-byte Folded Reload ldur x9, [x29, #-72] mov w8, #19 str w8, [x9] ldur w9, [x29, #-52] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] bl _printf ldr x0, [sp, #80] ; 8-byte Folded Reload ldur x8, [x29, #-64] ldr w8, [x8] ; implicit-def: $x11 mov x11, x8 ldur x8, [x29, #-72] ldr w8, [x8] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-80] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] bl _printf ldur w0, [x29, #-84] ; 4-byte Folded Reload ldp x29, x30, [sp, #176] ; 16-byte Folded Reload add sp, sp, #192 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "m = %d, &m = %p\n" l_.str.1: ; @.str.1 .asciz "n = %d, &n = %p\n" l_.str.2: ; @.str.2 .asciz "p1 = %p\n" l_.str.3: ; @.str.3 .asciz "*p1 = %d\n" l_.str.4: ; @.str.4 .asciz "-------\n" l_.str.5: ; @.str.5 .asciz "price = %d\n" l_.str.6: ; @.str.6 .asciz "%d, %d, %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movl $0, -4(%rbp) movl $20, -8(%rbp) movl $7, -12(%rbp) movl -8(%rbp), %esi leaq L_.str(%rip), %rdi leaq -8(%rbp), %rdx movb $0, %al callq _printf movl -12(%rbp), %esi leaq L_.str.1(%rip), %rdi leaq -12(%rbp), %rdx movb $0, %al callq _printf leaq -8(%rbp), %rax movq %rax, -24(%rbp) movq -24(%rbp), %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq -24(%rbp), %rax movl (%rax), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf movl $99, -8(%rbp) movq -24(%rbp), %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq -24(%rbp), %rax movl (%rax), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl $15, -52(%rbp) leaq -52(%rbp), %rax movq %rax, -64(%rbp) leaq -52(%rbp), %rax movq %rax, -72(%rbp) leaq -52(%rbp), %rax movq %rax, -80(%rbp) movl -52(%rbp), %esi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movq -64(%rbp), %rax movl (%rax), %esi movq -72(%rbp), %rax movl (%rax), %edx movq -80(%rbp), %rax movl (%rax), %ecx leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf movl $20, -52(%rbp) movq -64(%rbp), %rax movl (%rax), %esi movq -72(%rbp), %rax movl (%rax), %edx movq -80(%rbp), %rax movl (%rax), %ecx leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf movq -72(%rbp), %rax movl $19, (%rax) movl -52(%rbp), %esi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movq -64(%rbp), %rax movl (%rax), %esi movq -72(%rbp), %rax movl (%rax), %edx movq -80(%rbp), %rax movl (%rax), %ecx leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $80, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "m = %d, &m = %p\n" L_.str.1: ## @.str.1 .asciz "n = %d, &n = %p\n" L_.str.2: ## @.str.2 .asciz "p1 = %p\n" L_.str.3: ## @.str.3 .asciz "*p1 = %d\n" L_.str.4: ## @.str.4 .asciz "-------\n" L_.str.5: ## @.str.5 .asciz "price = %d\n" L_.str.6: ## @.str.6 .asciz "%d, %d, %d\n" .subsections_via_symbols
the_stack_data/28476.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov x0, #1024 bl _malloc stur x0, [x29, #-16] ldur x8, [x29, #-16] mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldur x8, [x29, #-16] str x8, [sp, #16] ; 8-byte Folded Spill ldur x0, [x29, #-16] bl _strlen mov x8, x0 ldr x0, [sp, #16] ; 8-byte Folded Reload add x1, x8, #1 bl _realloc stur x0, [x29, #-16] stur wzr, [x29, #-20] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-16] ldursw x9, [x29, #-20] ldrsb w8, [x8, x9] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB0_7 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-16] ldursw x9, [x29, #-20] ldrsb w8, [x8, x9] subs w8, w8, #32 cset w8, eq tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-16] ldursw x9, [x29, #-20] ldrsb w10, [x8, x9] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_5 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB0_1 LBB0_7: mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%[^\n]" l_.str.1: ; @.str.1 .asciz "%c" l_.str.2: ; @.str.2 .asciz "\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl $1024, %edi ## imm = 0x400 callq _malloc movq %rax, -16(%rbp) movq -16(%rbp), %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _scanf movq -16(%rbp), %rax movq %rax, -32(%rbp) ## 8-byte Spill movq -16(%rbp), %rdi callq _strlen movq -32(%rbp), %rdi ## 8-byte Reload movq %rax, %rsi addq $1, %rsi callq _realloc movq %rax, -16(%rbp) movl $0, -20(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $0, %eax je LBB0_7 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $32, %eax je LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movsbl (%rax,%rcx), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB0_5 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB0_5: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_6 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_1 LBB0_7: xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%[^\n]" L_.str.1: ## @.str.1 .asciz "%c" L_.str.2: ## @.str.2 .asciz "\n" .subsections_via_symbols
the_stack_data/116559.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _get_app_build_config_item ; -- Begin function get_app_build_config_item .p2align 2 _get_app_build_config_item: ; @get_app_build_config_item .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] mov w8, #1 str w8, [sp, #12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #1 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x0, [sp, #16] ldrsw x9, [sp, #12] adrp x8, _keys@PAGE add x8, x8, _keys@PAGEOFF ldr x1, [x8, x9, lsl #3] bl _strcmp subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ldrsw x9, [sp, #12] adrp x8, _values@PAGE add x8, x8, _values@PAGEOFF ldr x8, [x8, x9, lsl #3] stur x8, [x29, #-8] b LBB0_7 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_1 LBB0_6: ; kill: def $x8 killed $xzr stur xzr, [x29, #-8] b LBB0_7 LBB0_7: ldur x0, [x29, #-8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __DATA,__data .p2align 3 ; @keys _keys: .quad l_.str .p2align 3 ; @values _values: .quad l_.str .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .space 1 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _get_app_build_config_item ## -- Begin function get_app_build_config_item .p2align 4, 0x90 _get_app_build_config_item: ## @get_app_build_config_item .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) movl $1, -20(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $1, -20(%rbp) jge LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rdi movslq -20(%rbp), %rcx leaq _keys(%rip), %rax movq (%rax,%rcx,8), %rsi callq _strcmp cmpl $0, %eax jne LBB0_4 ## %bb.3: movslq -20(%rbp), %rcx leaq _values(%rip), %rax movq (%rax,%rcx,8), %rax movq %rax, -8(%rbp) jmp LBB0_7 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_5 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_1 LBB0_6: movq $0, -8(%rbp) LBB0_7: movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .p2align 3 ## @keys _keys: .quad L_.str .p2align 3 ## @values _values: .quad L_.str .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .space 1 .subsections_via_symbols
the_stack_data/37639087.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _print_int_array ; -- Begin function print_int_array .p2align 2 _print_int_array: ; @print_int_array .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf str wzr, [sp, #16] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #16] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_7 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] ldur w9, [x29, #-12] subs w9, w9, #1 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #16] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_5 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldur x8, [x29, #-8] ldrsw x9, [sp, #16] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_1 LBB0_7: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str wzr, [sp, #12] adrp x8, l___const.main.A@PAGE add x8, x8, l___const.main.A@PAGEOFF ldr q0, [x8] add x0, sp, #16 str q0, [sp, #16] ldr x8, [x8, #16] str x8, [sp, #32] mov w8, #6 str w8, [sp, #8] ldr w1, [sp, #8] bl _print_int_array ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: bl ___stack_chk_fail LBB1_2: mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "[" l_.str.1: ; @.str.1 .asciz "%i" l_.str.2: ; @.str.2 .asciz "%i, " l_.str.3: ; @.str.3 .asciz "]\n" .section __TEXT,__const .p2align 2 ; @__const.main.A l___const.main.A: .long 1 ; 0x1 .long 2 ; 0x2 .long 3 ; 0x3 .long 4 ; 0x4 .long 5 ; 0x5 .long 6 ; 0x6 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _print_int_array ## -- Begin function print_int_array .p2align 4, 0x90 _print_int_array: ## @print_int_array .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl $0, -16(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -16(%rbp), %eax cmpl -12(%rbp), %eax jge LBB0_7 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax movl -12(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jne LBB0_4 ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movslq -16(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB0_5 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movslq -16(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf LBB0_5: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_6 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_1 LBB0_7: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -36(%rbp) movq l___const.main.A(%rip), %rax movq %rax, -32(%rbp) movq l___const.main.A+8(%rip), %rax movq %rax, -24(%rbp) movq l___const.main.A+16(%rip), %rax movq %rax, -16(%rbp) movl $6, -40(%rbp) leaq -32(%rbp), %rdi movl -40(%rbp), %esi callq _print_int_array movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_2 ## %bb.1: xorl %eax, %eax addq $48, %rsp popq %rbp retq LBB1_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "[" L_.str.1: ## @.str.1 .asciz "%i" L_.str.2: ## @.str.2 .asciz "%i, " L_.str.3: ## @.str.3 .asciz "]\n" .section __TEXT,__const .p2align 4 ## @__const.main.A l___const.main.A: .long 1 ## 0x1 .long 2 ## 0x2 .long 3 ## 0x3 .long 4 ## 0x4 .long 5 ## 0x5 .long 6 ## 0x6 .subsections_via_symbols
the_stack_data/7950502.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 mov w9, #6864 movk w9, #6, lsl #16 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #97, lsl #12 ; =397312 sub sp, sp, #2768 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #48] add x0, sp, #52 mov x1, #6804 movk x1, #6, lsl #16 bl _bzero str wzr, [sp, #32] str wzr, [sp, #28] str wzr, [sp, #24] mov x9, sp add x8, sp, #44 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf mov w8, #57600 movk w8, #1525, lsl #16 str w8, [sp, #28] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #28] subs w8, w8, #0 cset w8, lt mov w9, #0 str w9, [sp, #20] ; 4-byte Folded Spill tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #24] ldr w9, [sp, #44] subs w8, w8, w9 cset w8, lt str w8, [sp, #20] ; 4-byte Folded Spill b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #20] ; 4-byte Folded Reload tbz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 mov x9, sp add x8, sp, #36 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf ldrsw x9, [sp, #36] add x8, sp, #52 add x9, x8, x9, lsl #2 ldr w8, [x9] add w8, w8, #1 str w8, [x9] ldr w8, [sp, #24] add w8, w8, #1 str w8, [sp, #24] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #28] subs w8, w8, #1 str w8, [sp, #28] b LBB0_1 LBB0_6: mov x9, sp add x8, sp, #40 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf mov w8, #34464 movk w8, #1, lsl #16 str w8, [sp, #28] b LBB0_7 LBB0_7: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #28] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB0_15 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=1 ldrsw x9, [sp, #28] add x8, sp, #52 ldr w8, [x8, x9, lsl #2] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_10 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_7 Depth=1 b LBB0_14 LBB0_10: ; in Loop: Header=BB0_7 Depth=1 ldr w8, [sp, #32] add w8, w8, #1 str w8, [sp, #32] b LBB0_11 LBB0_11: ; in Loop: Header=BB0_7 Depth=1 ldr w8, [sp, #32] ldr w9, [sp, #40] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_13 b LBB0_12 LBB0_12: b LBB0_15 LBB0_13: ; in Loop: Header=BB0_7 Depth=1 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_7 Depth=1 ldr w8, [sp, #28] subs w8, w8, #1 str w8, [sp, #28] b LBB0_7 LBB0_15: ldr w8, [sp, #28] ; implicit-def: $x10 mov x10, x8 ldrsw x9, [sp, #28] add x8, sp, #52 ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_17 b LBB0_16 LBB0_16: bl ___stack_chk_fail LBB0_17: mov w0, #0 add sp, sp, #97, lsl #12 ; =397312 add sp, sp, #2768 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%d %d" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $400064, %eax ## imm = 0x61AC0 callq ____chkstk_darwin subq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -400036(%rbp) leaq -400032(%rbp), %rdi xorl %esi, %esi movl $400020, %edx ## imm = 0x61A94 callq _memset movl $0, -400052(%rbp) movl $0, -400056(%rbp) movl $0, -400060(%rbp) leaq L_.str(%rip), %rdi leaq -400040(%rbp), %rsi movb $0, %al callq _scanf movl $100000000, -400056(%rbp) ## imm = 0x5F5E100 LBB0_1: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, -400056(%rbp) movb %al, -400061(%rbp) ## 1-byte Spill jl LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -400060(%rbp), %eax cmpl -400040(%rbp), %eax setl %al movb %al, -400061(%rbp) ## 1-byte Spill LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movb -400061(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_4 jmp LBB0_6 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str(%rip), %rdi leaq -400048(%rbp), %rsi movb $0, %al callq _scanf movslq -400048(%rbp), %rax movl -400032(%rbp,%rax,4), %ecx addl $1, %ecx movl %ecx, -400032(%rbp,%rax,4) movl -400060(%rbp), %eax addl $1, %eax movl %eax, -400060(%rbp) ## %bb.5: ## in Loop: Header=BB0_1 Depth=1 movl -400056(%rbp), %eax addl $-1, %eax movl %eax, -400056(%rbp) jmp LBB0_1 LBB0_6: leaq L_.str(%rip), %rdi leaq -400044(%rbp), %rsi movb $0, %al callq _scanf movl $100000, -400056(%rbp) ## imm = 0x186A0 LBB0_7: ## =>This Inner Loop Header: Depth=1 cmpl $0, -400056(%rbp) jl LBB0_15 ## %bb.8: ## in Loop: Header=BB0_7 Depth=1 movslq -400056(%rbp), %rax cmpl $0, -400032(%rbp,%rax,4) jne LBB0_10 ## %bb.9: ## in Loop: Header=BB0_7 Depth=1 jmp LBB0_14 LBB0_10: ## in Loop: Header=BB0_7 Depth=1 movl -400052(%rbp), %eax addl $1, %eax movl %eax, -400052(%rbp) ## %bb.11: ## in Loop: Header=BB0_7 Depth=1 movl -400052(%rbp), %eax cmpl -400044(%rbp), %eax jne LBB0_13 ## %bb.12: jmp LBB0_15 LBB0_13: ## in Loop: Header=BB0_7 Depth=1 jmp LBB0_14 LBB0_14: ## in Loop: Header=BB0_7 Depth=1 movl -400056(%rbp), %eax addl $-1, %eax movl %eax, -400056(%rbp) jmp LBB0_7 LBB0_15: movl -400056(%rbp), %esi movslq -400056(%rbp), %rax movl -400032(%rbp,%rax,4), %edx leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_17 ## %bb.16: xorl %eax, %eax addq $400064, %rsp ## imm = 0x61AC0 popq %rbp retq LBB0_17: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "%d %d" .subsections_via_symbols
the_stack_data/373995.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .subsections_via_symbols
the_stack_data/135265.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] str x1, [sp, #16] ldur w8, [x29, #-8] subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: mov w0, #1 bl _exit LBB0_2: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf str w0, [sp, #12] ldr w9, [sp, #12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "hello\n" l_.str.1: ; @.str.1 .asciz "%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) cmpl $1, -8(%rbp) je LBB0_2 ## %bb.1: movl $1, %edi callq _exit LBB0_2: leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl %eax, -20(%rbp) movl -20(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "hello\n" L_.str.1: ## @.str.1 .asciz "%d\n" .subsections_via_symbols
the_stack_data/139201711.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _ft_strcmp ; -- Begin function ft_strcmp .p2align 2 _ft_strcmp: ; @ft_strcmp .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str x1, [sp, #16] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #24] ldrsb w8, [x8] ldr x9, [sp, #16] ldrsb w9, [x9] subs w8, w8, w9 cset w8, ne mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldrsb w8, [x8] subs w8, w8, #0 cset w8, ne str w8, [sp, #12] ; 4-byte Folded Spill b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload tbz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] add x8, x8, #1 str x8, [sp, #24] ldr x8, [sp, #16] add x8, x8, #1 str x8, [sp, #16] b LBB0_1 LBB0_5: ldr x8, [sp, #24] ldrb w8, [x8] ldr x9, [sp, #16] ldrb w9, [x9] subs w0, w8, w9 add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _ft_strcmp ## -- Begin function ft_strcmp .p2align 4, 0x90 _ft_strcmp: ## @ft_strcmp .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax movsbl (%rax), %ecx movq -16(%rbp), %rax movsbl (%rax), %edx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl %edx, %ecx movb %al, -17(%rbp) ## 1-byte Spill jne LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movsbl (%rax), %eax cmpl $0, %eax setne %al movb %al, -17(%rbp) ## 1-byte Spill LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movb -17(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB0_4 jmp LBB0_5 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax addq $1, %rax movq %rax, -8(%rbp) movq -16(%rbp), %rax addq $1, %rax movq %rax, -16(%rbp) jmp LBB0_1 LBB0_5: movq -8(%rbp), %rax movzbl (%rax), %eax movq -16(%rbp), %rcx movzbl (%rcx), %ecx subl %ecx, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/44955.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #1 stur w8, [x29, #-4] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ; Child Loop BB0_7 Depth 2 ldur w8, [x29, #-4] subs w8, w8, #5 cset w8, gt tbnz w8, #0, LBB0_12 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 mov w8, #5 stur w8, [x29, #-8] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-8] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 mov x9, sp adrp x8, l_.str.1@PAGE add x8, x8, l_.str.1@PAGEOFF str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldur w8, [x29, #-8] subs w8, w8, #1 stur w8, [x29, #-8] b LBB0_3 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 stur wzr, [x29, #-12] b LBB0_7 LBB0_7: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-12] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_10 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=2 mov x9, sp adrp x8, l_.str.2@PAGE add x8, x8, l_.str.2@PAGEOFF str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf b LBB0_9 LBB0_9: ; in Loop: Header=BB0_7 Depth=2 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_7 LBB0_10: ; in Loop: Header=BB0_1 Depth=1 adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_11 LBB0_11: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB0_1 LBB0_12: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s" l_.str.1: ; @.str.1 .asciz " " l_.str.2: ; @.str.2 .asciz "*" l_.str.3: ; @.str.3 .asciz "\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $1, -4(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 ## Child Loop BB0_7 Depth 2 cmpl $5, -4(%rbp) jg LBB0_12 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $5, -8(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -8(%rbp), %eax cmpl -4(%rbp), %eax jle LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 leaq L_.str(%rip), %rdi leaq L_.str.1(%rip), %rsi movb $0, %al callq _printf ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -8(%rbp), %eax addl $-1, %eax movl %eax, -8(%rbp) jmp LBB0_3 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movl $0, -12(%rbp) LBB0_7: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -12(%rbp), %eax cmpl -4(%rbp), %eax jge LBB0_10 ## %bb.8: ## in Loop: Header=BB0_7 Depth=2 leaq L_.str(%rip), %rdi leaq L_.str.2(%rip), %rsi movb $0, %al callq _printf ## %bb.9: ## in Loop: Header=BB0_7 Depth=2 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_7 LBB0_10: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf ## %bb.11: ## in Loop: Header=BB0_1 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB0_1 LBB0_12: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s" L_.str.1: ## @.str.1 .asciz " " L_.str.2: ## @.str.2 .asciz "*" L_.str.3: ## @.str.3 .asciz "\n" .subsections_via_symbols
the_stack_data/412483.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldur x8, [x29, #-16] ldr x8, [x8] mov x9, sp str x8, [x9] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fprintf mov w0, #0 bl _exit LBB0_2: ldur x8, [x29, #-16] ldr x0, [x8, #8] bl _atoi str w0, [sp, #24] stur wzr, [x29, #-20] b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-20] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 mov w0, #1 bl _sleep b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB0_3 LBB0_6: bl _getpid str w0, [sp, #20] ldr w0, [sp, #20] mov w1, #2 bl _kill subs w8, w0, #0 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fprintf b LBB0_8 LBB0_8: mov w0, #0 bl _exit .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Usage: %s <n>\n" l_.str.1: ; @.str.1 .asciz "kill (int) error" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) cmpl $2, -8(%rbp) je LBB0_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -16(%rbp), %rax movq (%rax), %rdx leaq L_.str(%rip), %rsi xorl %eax, %eax movl %eax, -32(%rbp) ## 4-byte Spill callq _fprintf movl -32(%rbp), %edi ## 4-byte Reload callq _exit LBB0_2: movq -16(%rbp), %rax movq 8(%rax), %rdi callq _atoi movl %eax, -24(%rbp) movl $0, -20(%rbp) LBB0_3: ## =>This Inner Loop Header: Depth=1 movl -20(%rbp), %eax cmpl -24(%rbp), %eax jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movl $1, %edi callq _sleep ## %bb.5: ## in Loop: Header=BB0_3 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_3 LBB0_6: callq _getpid movl %eax, -28(%rbp) movl -28(%rbp), %edi movl $2, %esi callq _kill cmpl $0, %eax jge LBB0_8 ## %bb.7: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.1(%rip), %rsi movb $0, %al callq _fprintf LBB0_8: xorl %edi, %edi callq _exit .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Usage: %s <n>\n" L_.str.1: ## @.str.1 .asciz "kill (int) error" .subsections_via_symbols
the_stack_data/8652.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _gameWithCells ; -- Begin function gameWithCells .p2align 2 _gameWithCells: ; @gameWithCells .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] str w1, [sp, #8] ldr w8, [sp, #8] mov w10, #2 sdiv w8, w8, w10 ldr w9, [sp, #12] sdiv w9, w9, w10 mul w8, w8, w9 str w8, [sp, #4] str wzr, [sp] ldr w8, [sp, #8] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_3 b LBB0_1 LBB0_1: ldr w8, [sp, #12] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ldr w8, [sp, #8] mov w10, #2 sdiv w8, w8, w10 ldr w9, [sp, #12] sdiv w9, w9, w10 add w8, w8, w9 add w8, w8, #1 str w8, [sp] b LBB0_9 LBB0_3: ldr w8, [sp, #8] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ldr w8, [sp, #12] mov w9, #2 sdiv w8, w8, w9 str w8, [sp] b LBB0_8 LBB0_5: ldr w8, [sp, #12] mov w10, #2 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: ldr w8, [sp, #8] mov w9, #2 sdiv w8, w8, w9 str w8, [sp] b LBB0_7 LBB0_7: b LBB0_8 LBB0_8: b LBB0_9 LBB0_9: ldr w8, [sp, #4] ldr w9, [sp] add w0, w8, w9 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #8] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _getenv adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fopen stur x0, [x29, #-16] bl _readline bl _rtrim bl _split_string str x0, [sp, #24] ldr x8, [sp, #24] ldr x0, [x8] bl _parse_int str w0, [sp, #20] ldr x8, [sp, #24] ldr x0, [x8, #8] bl _parse_int str w0, [sp, #16] ldr w0, [sp, #20] ldr w1, [sp, #16] bl _gameWithCells str w0, [sp, #12] ldur x0, [x29, #-16] ldr w9, [sp, #12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fprintf ldur x0, [x29, #-16] bl _fclose ldr w0, [sp, #8] ; 4-byte Folded Reload ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _split_string ; -- Begin function split_string .p2align 2 _split_string: ; @split_string .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] ; kill: def $x8 killed $xzr str xzr, [sp, #24] ldur x0, [x29, #-16] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _strtok str x0, [sp, #16] str wzr, [sp, #12] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB2_5 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr x0, [sp, #24] ldr w8, [sp, #12] add w9, w8, #1 str w9, [sp, #12] ; implicit-def: $x8 mov x8, x9 sxtw x9, w8 mov x8, #8 mul x1, x8, x9 bl _realloc str x0, [sp, #24] ldr x8, [sp, #24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: ldr x8, [sp, #24] stur x8, [x29, #-8] b LBB2_6 LBB2_4: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #16] ldr x9, [sp, #24] ldr w10, [sp, #12] subs w10, w10, #1 str x8, [x9, w10, sxtw #3] mov x0, #0 adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _strtok str x0, [sp, #16] b LBB2_1 LBB2_5: ldr x8, [sp, #24] stur x8, [x29, #-8] b LBB2_6 LBB2_6: ldur x0, [x29, #-8] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _rtrim ; -- Begin function rtrim .p2align 2 _rtrim: ; @rtrim .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] ldur x8, [x29, #-16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: ; kill: def $x8 killed $xzr stur xzr, [x29, #-8] b LBB3_10 LBB3_2: ldur x8, [x29, #-16] ldrb w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: ldur x8, [x29, #-16] stur x8, [x29, #-8] b LBB3_10 LBB3_4: ldur x8, [x29, #-16] str x8, [sp, #16] ; 8-byte Folded Spill ldur x0, [x29, #-16] bl _strlen ldr x8, [sp, #16] ; 8-byte Folded Reload add x8, x8, x0 subs x8, x8, #1 str x8, [sp, #24] b LBB3_5 LBB3_5: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #24] ldur x9, [x29, #-16] subs x8, x8, x9 cset w8, lo mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB3_7 b LBB3_6 LBB3_6: ; in Loop: Header=BB3_5 Depth=1 ldr x8, [sp, #24] ldrsb w0, [x8] bl _isspace subs w8, w0, #0 cset w8, ne str w8, [sp, #12] ; 4-byte Folded Spill b LBB3_7 LBB3_7: ; in Loop: Header=BB3_5 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload tbz w8, #0, LBB3_9 b LBB3_8 LBB3_8: ; in Loop: Header=BB3_5 Depth=1 ldr x8, [sp, #24] subs x8, x8, #1 str x8, [sp, #24] b LBB3_5 LBB3_9: ldr x8, [sp, #24] strb wzr, [x8, #1] ldur x8, [x29, #-16] stur x8, [x29, #-8] b LBB3_10 LBB3_10: ldur x0, [x29, #-8] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _parse_int ; -- Begin function parse_int .p2align 2 _parse_int: ; @parse_int .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x0, [x29, #-8] add x1, sp, #16 mov w2, #10 bl _strtol mov x8, x0 str w8, [sp, #12] ldr x8, [sp, #16] ldur x9, [x29, #-8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: ldr x8, [sp, #16] ldrsb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB4_3 b LBB4_2 LBB4_2: mov w0, #1 bl _exit LBB4_3: ldr w0, [sp, #12] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _readline ; -- Begin function readline .p2align 2 _readline: ; @readline .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov x8, #1024 stur x8, [x29, #-8] stur xzr, [x29, #-16] ldur x0, [x29, #-8] bl _malloc str x0, [sp, #24] b LBB5_1 LBB5_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #24] ldur x9, [x29, #-16] add x8, x8, x9 str x8, [sp, #16] ldr x0, [sp, #16] ldur x8, [x29, #-8] ldur x9, [x29, #-16] subs x8, x8, x9 mov x1, x8 adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x2, [x8] bl _fgets str x0, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB5_3 b LBB5_2 LBB5_2: b LBB5_9 LBB5_3: ; in Loop: Header=BB5_1 Depth=1 ldr x0, [sp, #16] bl _strlen ldur x8, [x29, #-16] add x8, x8, x0 stur x8, [x29, #-16] ldur x8, [x29, #-16] ldur x9, [x29, #-8] subs x9, x9, #1 subs x8, x8, x9 cset w8, lo tbnz w8, #0, LBB5_5 b LBB5_4 LBB5_4: ; in Loop: Header=BB5_1 Depth=1 ldr x8, [sp, #24] ldur x9, [x29, #-16] subs x9, x9, #1 ldrsb w8, [x8, x9] subs w8, w8, #10 cset w8, ne tbnz w8, #0, LBB5_6 b LBB5_5 LBB5_5: b LBB5_9 LBB5_6: ; in Loop: Header=BB5_1 Depth=1 ldur x8, [x29, #-8] lsl x8, x8, #1 stur x8, [x29, #-8] ldr x0, [sp, #24] ldur x1, [x29, #-8] bl _realloc str x0, [sp, #24] ldr x8, [sp, #24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB5_8 b LBB5_7 LBB5_7: ; kill: def $x8 killed $xzr str xzr, [sp, #24] b LBB5_9 LBB5_8: ; in Loop: Header=BB5_1 Depth=1 b LBB5_1 LBB5_9: ldr x8, [sp, #24] ldur x9, [x29, #-16] subs x9, x9, #1 ldrsb w8, [x8, x9] subs w8, w8, #10 cset w8, ne tbnz w8, #0, LBB5_13 b LBB5_10 LBB5_10: ldr x8, [sp, #24] ldur x9, [x29, #-16] subs x9, x9, #1 add x8, x8, x9 strb wzr, [x8] ldr x0, [sp, #24] ldur x1, [x29, #-16] bl _realloc str x0, [sp, #24] ldr x8, [sp, #24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB5_12 b LBB5_11 LBB5_11: ; kill: def $x8 killed $xzr str xzr, [sp, #24] b LBB5_12 LBB5_12: b LBB5_17 LBB5_13: ldr x0, [sp, #24] ldur x8, [x29, #-16] add x1, x8, #1 bl _realloc str x0, [sp, #24] ldr x8, [sp, #24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB5_15 b LBB5_14 LBB5_14: ; kill: def $x8 killed $xzr str xzr, [sp, #24] b LBB5_16 LBB5_15: ldr x8, [sp, #24] ldur x9, [x29, #-16] add x8, x8, x9 strb wzr, [x8] b LBB5_16 LBB5_16: b LBB5_17 LBB5_17: ldr x0, [sp, #24] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _ltrim ; -- Begin function ltrim .p2align 2 _ltrim: ; @ltrim .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB6_2 b LBB6_1 LBB6_1: ; kill: def $x8 killed $xzr stur xzr, [x29, #-8] b LBB6_10 LBB6_2: ldr x8, [sp, #16] ldrb w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB6_4 b LBB6_3 LBB6_3: ldr x8, [sp, #16] stur x8, [x29, #-8] b LBB6_10 LBB6_4: b LBB6_5 LBB6_5: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] ldrsb w8, [x8] subs w8, w8, #0 cset w8, eq mov w9, #0 str w9, [sp, #12] ; 4-byte Folded Spill tbnz w8, #0, LBB6_7 b LBB6_6 LBB6_6: ; in Loop: Header=BB6_5 Depth=1 ldr x8, [sp, #16] ldrsb w0, [x8] bl _isspace subs w8, w0, #0 cset w8, ne str w8, [sp, #12] ; 4-byte Folded Spill b LBB6_7 LBB6_7: ; in Loop: Header=BB6_5 Depth=1 ldr w8, [sp, #12] ; 4-byte Folded Reload tbz w8, #0, LBB6_9 b LBB6_8 LBB6_8: ; in Loop: Header=BB6_5 Depth=1 ldr x8, [sp, #16] add x8, x8, #1 str x8, [sp, #16] b LBB6_5 LBB6_9: ldr x8, [sp, #16] stur x8, [x29, #-8] b LBB6_10 LBB6_10: ldur x0, [x29, #-8] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "OUTPUT_PATH" l_.str.1: ; @.str.1 .asciz "w" l_.str.2: ; @.str.2 .asciz "%d\n" l_.str.3: ; @.str.3 .asciz " " .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _gameWithCells ## -- Begin function gameWithCells .p2align 4, 0x90 _gameWithCells: ## @gameWithCells .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl -8(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, -20(%rbp) ## 4-byte Spill movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %ecx movl -20(%rbp), %eax ## 4-byte Reload imull %ecx, %eax movl %eax, -12(%rbp) movl $0, -16(%rbp) movl -8(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $1, %edx jne LBB0_3 ## %bb.1: movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $1, %edx jne LBB0_3 ## %bb.2: movl -8(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, -24(%rbp) ## 4-byte Spill movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, %ecx movl -24(%rbp), %eax ## 4-byte Reload addl %ecx, %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB0_9 LBB0_3: movl -8(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $1, %edx jne LBB0_5 ## %bb.4: movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, -16(%rbp) jmp LBB0_8 LBB0_5: movl -4(%rbp), %eax movl $2, %ecx cltd idivl %ecx cmpl $1, %edx jne LBB0_7 ## %bb.6: movl -8(%rbp), %eax movl $2, %ecx cltd idivl %ecx movl %eax, -16(%rbp) LBB0_7: jmp LBB0_8 LBB0_8: jmp LBB0_9 LBB0_9: movl -12(%rbp), %eax addl -16(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi callq _getenv movq %rax, %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -16(%rbp) callq _readline movq %rax, %rdi callq _rtrim movq %rax, %rdi callq _split_string movq %rax, -24(%rbp) movq -24(%rbp), %rax movq (%rax), %rdi callq _parse_int movl %eax, -28(%rbp) movq -24(%rbp), %rax movq 8(%rax), %rdi callq _parse_int movl %eax, -32(%rbp) movl -28(%rbp), %edi movl -32(%rbp), %esi callq _gameWithCells movl %eax, -36(%rbp) movq -16(%rbp), %rdi movl -36(%rbp), %edx leaq L_.str.2(%rip), %rsi movb $0, %al callq _fprintf movq -16(%rbp), %rdi callq _fclose xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _split_string ## -- Begin function split_string .p2align 4, 0x90 _split_string: ## @split_string .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -16(%rbp) movq $0, -24(%rbp) movq -16(%rbp), %rdi leaq L_.str.3(%rip), %rsi callq _strtok movq %rax, -32(%rbp) movl $0, -36(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 cmpq $0, -32(%rbp) je LBB2_5 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -24(%rbp), %rdi movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) movslq %eax, %rsi shlq $3, %rsi callq _realloc movq %rax, -24(%rbp) cmpq $0, -24(%rbp) jne LBB2_4 ## %bb.3: movq -24(%rbp), %rax movq %rax, -8(%rbp) jmp LBB2_6 LBB2_4: ## in Loop: Header=BB2_1 Depth=1 movq -32(%rbp), %rdx movq -24(%rbp), %rax movl -36(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movq %rdx, (%rax,%rcx,8) xorl %eax, %eax movl %eax, %edi leaq L_.str.3(%rip), %rsi callq _strtok movq %rax, -32(%rbp) jmp LBB2_1 LBB2_5: movq -24(%rbp), %rax movq %rax, -8(%rbp) LBB2_6: movq -8(%rbp), %rax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _rtrim ## -- Begin function rtrim .p2align 4, 0x90 _rtrim: ## @rtrim .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -16(%rbp) cmpq $0, -16(%rbp) jne LBB3_2 ## %bb.1: movq $0, -8(%rbp) jmp LBB3_10 LBB3_2: movq -16(%rbp), %rax cmpb $0, (%rax) jne LBB3_4 ## %bb.3: movq -16(%rbp), %rax movq %rax, -8(%rbp) jmp LBB3_10 LBB3_4: movq -16(%rbp), %rax movq %rax, -32(%rbp) ## 8-byte Spill movq -16(%rbp), %rdi callq _strlen movq %rax, %rcx movq -32(%rbp), %rax ## 8-byte Reload addq %rcx, %rax addq $-1, %rax movq %rax, -24(%rbp) LBB3_5: ## =>This Inner Loop Header: Depth=1 movq -24(%rbp), %rcx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpq -16(%rbp), %rcx movb %al, -33(%rbp) ## 1-byte Spill jb LBB3_7 ## %bb.6: ## in Loop: Header=BB3_5 Depth=1 movq -24(%rbp), %rax movsbl (%rax), %edi callq _isspace cmpl $0, %eax setne %al movb %al, -33(%rbp) ## 1-byte Spill LBB3_7: ## in Loop: Header=BB3_5 Depth=1 movb -33(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB3_8 jmp LBB3_9 LBB3_8: ## in Loop: Header=BB3_5 Depth=1 movq -24(%rbp), %rax addq $-1, %rax movq %rax, -24(%rbp) jmp LBB3_5 LBB3_9: movq -24(%rbp), %rax movb $0, 1(%rax) movq -16(%rbp), %rax movq %rax, -8(%rbp) LBB3_10: movq -8(%rbp), %rax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _parse_int ## -- Begin function parse_int .p2align 4, 0x90 _parse_int: ## @parse_int .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rdi leaq -16(%rbp), %rsi movl $10, %edx callq _strtol ## kill: def $eax killed $eax killed $rax movl %eax, -20(%rbp) movq -16(%rbp), %rax cmpq -8(%rbp), %rax je LBB4_2 ## %bb.1: movq -16(%rbp), %rax movsbl (%rax), %eax cmpl $0, %eax je LBB4_3 LBB4_2: movl $1, %edi callq _exit LBB4_3: movl -20(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _readline ## -- Begin function readline .p2align 4, 0x90 _readline: ## @readline .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq $1024, -8(%rbp) ## imm = 0x400 movq $0, -16(%rbp) movq -8(%rbp), %rdi callq _malloc movq %rax, -24(%rbp) LBB5_1: ## =>This Inner Loop Header: Depth=1 movq -24(%rbp), %rax addq -16(%rbp), %rax movq %rax, -32(%rbp) movq -32(%rbp), %rdi movq -8(%rbp), %rax subq -16(%rbp), %rax movl %eax, %esi movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdx callq _fgets movq %rax, -40(%rbp) cmpq $0, -40(%rbp) jne LBB5_3 ## %bb.2: jmp LBB5_9 LBB5_3: ## in Loop: Header=BB5_1 Depth=1 movq -32(%rbp), %rdi callq _strlen addq -16(%rbp), %rax movq %rax, -16(%rbp) movq -16(%rbp), %rax movq -8(%rbp), %rcx subq $1, %rcx cmpq %rcx, %rax jb LBB5_5 ## %bb.4: ## in Loop: Header=BB5_1 Depth=1 movq -24(%rbp), %rax movq -16(%rbp), %rcx subq $1, %rcx movsbl (%rax,%rcx), %eax cmpl $10, %eax jne LBB5_6 LBB5_5: jmp LBB5_9 LBB5_6: ## in Loop: Header=BB5_1 Depth=1 movq -8(%rbp), %rax shlq $1, %rax movq %rax, -8(%rbp) movq -24(%rbp), %rdi movq -8(%rbp), %rsi callq _realloc movq %rax, -24(%rbp) cmpq $0, -24(%rbp) jne LBB5_8 ## %bb.7: movq $0, -24(%rbp) jmp LBB5_9 LBB5_8: ## in Loop: Header=BB5_1 Depth=1 jmp LBB5_1 LBB5_9: movq -24(%rbp), %rax movq -16(%rbp), %rcx subq $1, %rcx movsbl (%rax,%rcx), %eax cmpl $10, %eax jne LBB5_13 ## %bb.10: movq -24(%rbp), %rax movq -16(%rbp), %rcx subq $1, %rcx movb $0, (%rax,%rcx) movq -24(%rbp), %rdi movq -16(%rbp), %rsi callq _realloc movq %rax, -24(%rbp) cmpq $0, -24(%rbp) jne LBB5_12 ## %bb.11: movq $0, -24(%rbp) LBB5_12: jmp LBB5_17 LBB5_13: movq -24(%rbp), %rdi movq -16(%rbp), %rsi addq $1, %rsi callq _realloc movq %rax, -24(%rbp) cmpq $0, -24(%rbp) jne LBB5_15 ## %bb.14: movq $0, -24(%rbp) jmp LBB5_16 LBB5_15: movq -24(%rbp), %rax movq -16(%rbp), %rcx movb $0, (%rax,%rcx) LBB5_16: jmp LBB5_17 LBB5_17: movq -24(%rbp), %rax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _ltrim ## -- Begin function ltrim .p2align 4, 0x90 _ltrim: ## @ltrim .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -16(%rbp) cmpq $0, -16(%rbp) jne LBB6_2 ## %bb.1: movq $0, -8(%rbp) jmp LBB6_10 LBB6_2: movq -16(%rbp), %rax cmpb $0, (%rax) jne LBB6_4 ## %bb.3: movq -16(%rbp), %rax movq %rax, -8(%rbp) jmp LBB6_10 LBB6_4: jmp LBB6_5 LBB6_5: ## =>This Inner Loop Header: Depth=1 movq -16(%rbp), %rax movsbl (%rax), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpl $0, %ecx movb %al, -17(%rbp) ## 1-byte Spill je LBB6_7 ## %bb.6: ## in Loop: Header=BB6_5 Depth=1 movq -16(%rbp), %rax movsbl (%rax), %edi callq _isspace cmpl $0, %eax setne %al movb %al, -17(%rbp) ## 1-byte Spill LBB6_7: ## in Loop: Header=BB6_5 Depth=1 movb -17(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB6_8 jmp LBB6_9 LBB6_8: ## in Loop: Header=BB6_5 Depth=1 movq -16(%rbp), %rax addq $1, %rax movq %rax, -16(%rbp) jmp LBB6_5 LBB6_9: movq -16(%rbp), %rax movq %rax, -8(%rbp) LBB6_10: movq -8(%rbp), %rax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "OUTPUT_PATH" L_.str.1: ## @.str.1 .asciz "w" L_.str.2: ## @.str.2 .asciz "%d\n" L_.str.3: ## @.str.3 .asciz " " .subsections_via_symbols
the_stack_data/51429.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] str wzr, [sp, #16] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf mov w8, #1 stur w8, [x29, #-12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #16] ldur w9, [x29, #-12] add w8, w8, w9 str w8, [sp, #16] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_1 LBB0_4: ldur w8, [x29, #-8] ; implicit-def: $x10 mov x10, x8 ldr w9, [sp, #16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter a integer from the keyboard : " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "The sum of numbers from 1 to %d : %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $0, -16(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movl $1, -12(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax cmpl -8(%rbp), %eax jg LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl -16(%rbp), %eax addl -12(%rbp), %eax movl %eax, -16(%rbp) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_1 LBB0_4: movl -8(%rbp), %esi movl -16(%rbp), %edx leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter a integer from the keyboard : " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "The sum of numbers from 1 to %d : %d\n" .subsections_via_symbols
the_stack_data/225142584.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _crypt_xor ; -- Begin function crypt_xor .p2align 2 _crypt_xor: ; @crypt_xor .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #65 sturb w8, [x29, #-1] mov w8, #42 sturb w8, [x29, #-2] ldursb w8, [x29, #-1] ldursb w9, [x29, #-2] eor w8, w8, w9 sturb w8, [x29, #-3] ldursb w8, [x29, #-3] ldursb w9, [x29, #-2] eor w8, w8, w9 sturb w8, [x29, #-4] ldursb w13, [x29, #-1] ldursb w12, [x29, #-2] ldursb w11, [x29, #-3] ldursb w10, [x29, #-4] mov x9, sp ; implicit-def: $x8 mov x8, x13 str x8, [x9] ; implicit-def: $x8 mov x8, x12 str x8, [x9, #8] ; implicit-def: $x8 mov x8, x11 str x8, [x9, #16] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #24] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _isValidChar ; -- Begin function isValidChar .p2align 2 _isValidChar: ; @isValidChar .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #32 cset w8, ge tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: str wzr, [sp, #12] b LBB1_31 LBB1_2: ldr w8, [sp, #8] subs w8, w8, #32 cset w8, lt tbnz w8, #0, LBB1_5 b LBB1_3 LBB1_3: ldr w8, [sp, #8] subs w8, w8, #48 cset w8, ge tbnz w8, #0, LBB1_5 b LBB1_4 LBB1_4: mov w8, #1 str w8, [sp, #12] b LBB1_31 LBB1_5: ldr w8, [sp, #8] subs w8, w8, #48 cset w8, lt tbnz w8, #0, LBB1_8 b LBB1_6 LBB1_6: ldr w8, [sp, #8] subs w8, w8, #58 cset w8, ge tbnz w8, #0, LBB1_8 b LBB1_7 LBB1_7: mov w8, #1 str w8, [sp, #12] b LBB1_31 LBB1_8: ldr w8, [sp, #8] subs w8, w8, #58 cset w8, lt tbnz w8, #0, LBB1_11 b LBB1_9 LBB1_9: ldr w8, [sp, #8] subs w8, w8, #65 cset w8, ge tbnz w8, #0, LBB1_11 b LBB1_10 LBB1_10: mov w8, #1 str w8, [sp, #12] b LBB1_31 LBB1_11: ldr w8, [sp, #8] subs w8, w8, #65 cset w8, lt tbnz w8, #0, LBB1_14 b LBB1_12 LBB1_12: ldr w8, [sp, #8] subs w8, w8, #91 cset w8, ge tbnz w8, #0, LBB1_14 b LBB1_13 LBB1_13: mov w8, #1 str w8, [sp, #12] b LBB1_31 LBB1_14: ldr w8, [sp, #8] subs w8, w8, #91 cset w8, lt tbnz w8, #0, LBB1_17 b LBB1_15 LBB1_15: ldr w8, [sp, #8] subs w8, w8, #97 cset w8, ge tbnz w8, #0, LBB1_17 b LBB1_16 LBB1_16: str wzr, [sp, #12] b LBB1_31 LBB1_17: ldr w8, [sp, #8] subs w8, w8, #97 cset w8, lt tbnz w8, #0, LBB1_20 b LBB1_18 LBB1_18: ldr w8, [sp, #8] subs w8, w8, #123 cset w8, ge tbnz w8, #0, LBB1_20 b LBB1_19 LBB1_19: mov w8, #1 str w8, [sp, #12] b LBB1_31 LBB1_20: ldr w8, [sp, #8] subs w8, w8, #123 cset w8, lt tbnz w8, #0, LBB1_23 b LBB1_21 LBB1_21: ldr w8, [sp, #8] subs w8, w8, #127 cset w8, ge tbnz w8, #0, LBB1_23 b LBB1_22 LBB1_22: mov w8, #1 str w8, [sp, #12] b LBB1_31 LBB1_23: b LBB1_24 LBB1_24: b LBB1_25 LBB1_25: b LBB1_26 LBB1_26: b LBB1_27 LBB1_27: b LBB1_28 LBB1_28: b LBB1_29 LBB1_29: b LBB1_30 LBB1_30: str wzr, [sp, #12] b LBB1_31 LBB1_31: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _decrypt ; -- Begin function decrypt .p2align 2 _decrypt: ; @decrypt .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] ldursw x9, [x29, #-12] mov x8, #1 mul x8, x8, x9 add x0, x8, #1 bl _malloc stur x0, [x29, #-24] ldur x8, [x29, #-24] ldur w9, [x29, #-12] subs w9, w9, #1 add x8, x8, w9, sxtw strb wzr, [x8] stur wzr, [x29, #-32] b LBB2_1 LBB2_1: ; =>This Loop Header: Depth=1 ; Child Loop BB2_3 Depth 2 ; Child Loop BB2_5 Depth 3 ; Child Loop BB2_12 Depth 3 ldur w8, [x29, #-32] subs w8, w8, #3 cset w8, ge tbnz w8, #0, LBB2_19 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 mov w8, #97 stur w8, [x29, #-36] b LBB2_3 LBB2_3: ; Parent Loop BB2_1 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB2_5 Depth 3 ; Child Loop BB2_12 Depth 3 ldur w8, [x29, #-36] subs w8, w8, #122 cset w8, gt tbnz w8, #0, LBB2_17 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_3 Depth=2 ldur w8, [x29, #-32] str w8, [sp, #36] b LBB2_5 LBB2_5: ; Parent Loop BB2_1 Depth=1 ; Parent Loop BB2_3 Depth=2 ; => This Inner Loop Header: Depth=3 ldr w8, [sp, #36] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_10 b LBB2_6 LBB2_6: ; in Loop: Header=BB2_5 Depth=3 ldur x8, [x29, #-8] ldrsw x9, [sp, #36] ldrsb w8, [x8, x9] ldur w9, [x29, #-36] eor w8, w8, w9 sturb w8, [x29, #-37] ldursb w0, [x29, #-37] bl _isValidChar subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB2_8 b LBB2_7 LBB2_7: ; in Loop: Header=BB2_3 Depth=2 b LBB2_10 LBB2_8: ; in Loop: Header=BB2_5 Depth=3 b LBB2_9 LBB2_9: ; in Loop: Header=BB2_5 Depth=3 ldr w8, [sp, #36] add w8, w8, #3 str w8, [sp, #36] b LBB2_5 LBB2_10: ; in Loop: Header=BB2_3 Depth=2 ldr w8, [sp, #36] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB2_15 b LBB2_11 LBB2_11: ; in Loop: Header=BB2_3 Depth=2 ldur w8, [x29, #-36] ; implicit-def: $x11 mov x11, x8 ldr w8, [sp, #36] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldur w8, [x29, #-36] ldursw x10, [x29, #-32] sub x9, x29, #27 strb w8, [x9, x10] ldur w8, [x29, #-32] str w8, [sp, #36] b LBB2_12 LBB2_12: ; Parent Loop BB2_1 Depth=1 ; Parent Loop BB2_3 Depth=2 ; => This Inner Loop Header: Depth=3 ldr w8, [sp, #36] ldur w9, [x29, #-12] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_14 b LBB2_13 LBB2_13: ; in Loop: Header=BB2_12 Depth=3 ldur x8, [x29, #-8] ldrsw x9, [sp, #36] ldrsb w8, [x8, x9] ldur w9, [x29, #-36] eor w8, w8, w9 sturb w8, [x29, #-37] ldurb w8, [x29, #-37] ldur x9, [x29, #-24] ldrsw x10, [sp, #36] add x9, x9, x10 strb w8, [x9] ldr w8, [sp, #36] add w8, w8, #3 str w8, [sp, #36] b LBB2_12 LBB2_14: ; in Loop: Header=BB2_3 Depth=2 b LBB2_15 LBB2_15: ; in Loop: Header=BB2_3 Depth=2 b LBB2_16 LBB2_16: ; in Loop: Header=BB2_3 Depth=2 ldur w8, [x29, #-36] add w8, w8, #1 stur w8, [x29, #-36] b LBB2_3 LBB2_17: ; in Loop: Header=BB2_1 Depth=1 b LBB2_18 LBB2_18: ; in Loop: Header=BB2_1 Depth=1 ldur w8, [x29, #-32] add w8, w8, #1 stur w8, [x29, #-32] b LBB2_1 LBB2_19: ldur x8, [x29, #-24] ldursw x9, [x29, #-12] add x8, x8, x9 strb wzr, [x8] ldur w8, [x29, #-12] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-24] mov x9, sp str x10, [x9] sub x10, x29, #27 str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur x0, [x29, #-24] bl _free ; kill: def $x8 killed $xzr stur xzr, [x29, #-24] mov w0, #0 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub sp, sp, #2096 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #36] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _fopen str x0, [sp, #24] ldr x8, [sp, #24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: mov w8, #1 str w8, [sp, #36] b LBB3_13 LBB3_2: add x0, sp, #40 mov x1, #2048 bl _bzero str wzr, [sp, #20] str wzr, [sp, #12] b LBB3_3 LBB3_3: ; =>This Inner Loop Header: Depth=1 ldr x0, [sp, #24] bl _getc strb w0, [sp, #19] mov w8, #-1 subs w8, w8, w0, sxtb cset w8, eq tbnz w8, #0, LBB3_10 b LBB3_4 LBB3_4: ; in Loop: Header=BB3_3 Depth=1 ldrsb w8, [sp, #19] subs w8, w8, #44 cset w8, ne tbnz w8, #0, LBB3_6 b LBB3_5 LBB3_5: ; in Loop: Header=BB3_3 Depth=1 ldrsw x9, [sp, #12] add x0, sp, #16 mov x8, x0 add x8, x8, x9 strb wzr, [x8] bl _atoi str w0, [sp, #8] ldr w8, [sp, #8] ldrsw x10, [sp, #20] mov x9, x10 add w9, w9, #1 str w9, [sp, #20] add x9, sp, #40 strb w8, [x9, x10] str wzr, [sp, #12] b LBB3_7 LBB3_6: ; in Loop: Header=BB3_3 Depth=1 ldrb w8, [sp, #19] ldrsw x10, [sp, #12] mov x9, x10 add w9, w9, #1 str w9, [sp, #12] add x9, sp, #16 add x9, x9, x10 strb w8, [x9] b LBB3_7 LBB3_7: ; in Loop: Header=BB3_3 Depth=1 ldr w8, [sp, #12] subs w8, w8, #3 cset w8, lt tbnz w8, #0, LBB3_9 b LBB3_8 LBB3_8: adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf mov w0, #-9 bl _exit LBB3_9: ; in Loop: Header=BB3_3 Depth=1 b LBB3_3 LBB3_10: ldr w8, [sp, #12] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB3_12 b LBB3_11 LBB3_11: ldrsw x9, [sp, #12] add x0, sp, #16 mov x8, x0 add x8, x8, x9 strb wzr, [x8] bl _atoi str w0, [sp, #4] ldr w8, [sp, #4] ldrsw x10, [sp, #20] mov x9, x10 add w9, w9, #1 str w9, [sp, #20] add x9, sp, #40 strb w8, [x9, x10] b LBB3_12 LBB3_12: ldr x0, [sp, #24] bl _fclose ldr w1, [sp, #20] add x0, sp, #40 bl _decrypt adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf str wzr, [sp, #36] b LBB3_13 LBB3_13: ldr w8, [sp, #36] str w8, [sp] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB3_15 b LBB3_14 LBB3_14: bl ___stack_chk_fail LBB3_15: ldr w0, [sp] ; 4-byte Folded Reload add sp, sp, #2096 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "\n %d %d %d %d \n" l_.str.1: ; @.str.1 .asciz "\n\n key is %c , i is %d, len is %d\n" l_.str.2: ; @.str.2 .asciz "\n Total %d, key is %s \n%s\n\n" l_.str.3: ; @.str.3 .asciz "/home/ben/cpp/0809ZJU007A/crypt/cipher1.txt" l_.str.4: ; @.str.4 .asciz "r" l_.str.5: ; @.str.5 .asciz "BAD input\n" l_.str.6: ; @.str.6 .asciz "\n---END---\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _crypt_xor ## -- Begin function crypt_xor .p2align 4, 0x90 _crypt_xor: ## @crypt_xor .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movb $65, -1(%rbp) movb $42, -2(%rbp) movsbl -1(%rbp), %eax movsbl -2(%rbp), %ecx xorl %ecx, %eax ## kill: def $al killed $al killed $eax movb %al, -3(%rbp) movsbl -3(%rbp), %eax movsbl -2(%rbp), %ecx xorl %ecx, %eax ## kill: def $al killed $al killed $eax movb %al, -4(%rbp) movsbl -1(%rbp), %esi movsbl -2(%rbp), %edx movsbl -3(%rbp), %ecx movsbl -4(%rbp), %r8d leaq L_.str(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _isValidChar ## -- Begin function isValidChar .p2align 4, 0x90 _isValidChar: ## @isValidChar .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -8(%rbp) cmpl $32, -8(%rbp) jge LBB1_2 ## %bb.1: movl $0, -4(%rbp) jmp LBB1_31 LBB1_2: cmpl $32, -8(%rbp) jl LBB1_5 ## %bb.3: cmpl $48, -8(%rbp) jge LBB1_5 ## %bb.4: movl $1, -4(%rbp) jmp LBB1_31 LBB1_5: cmpl $48, -8(%rbp) jl LBB1_8 ## %bb.6: cmpl $58, -8(%rbp) jge LBB1_8 ## %bb.7: movl $1, -4(%rbp) jmp LBB1_31 LBB1_8: cmpl $58, -8(%rbp) jl LBB1_11 ## %bb.9: cmpl $65, -8(%rbp) jge LBB1_11 ## %bb.10: movl $1, -4(%rbp) jmp LBB1_31 LBB1_11: cmpl $65, -8(%rbp) jl LBB1_14 ## %bb.12: cmpl $91, -8(%rbp) jge LBB1_14 ## %bb.13: movl $1, -4(%rbp) jmp LBB1_31 LBB1_14: cmpl $91, -8(%rbp) jl LBB1_17 ## %bb.15: cmpl $97, -8(%rbp) jge LBB1_17 ## %bb.16: movl $0, -4(%rbp) jmp LBB1_31 LBB1_17: cmpl $97, -8(%rbp) jl LBB1_20 ## %bb.18: cmpl $123, -8(%rbp) jge LBB1_20 ## %bb.19: movl $1, -4(%rbp) jmp LBB1_31 LBB1_20: cmpl $123, -8(%rbp) jl LBB1_23 ## %bb.21: cmpl $127, -8(%rbp) jge LBB1_23 ## %bb.22: movl $1, -4(%rbp) jmp LBB1_31 LBB1_23: jmp LBB1_24 LBB1_24: jmp LBB1_25 LBB1_25: jmp LBB1_26 LBB1_26: jmp LBB1_27 LBB1_27: jmp LBB1_28 LBB1_28: jmp LBB1_29 LBB1_29: jmp LBB1_30 LBB1_30: movl $0, -4(%rbp) LBB1_31: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _decrypt ## -- Begin function decrypt .p2align 4, 0x90 _decrypt: ## @decrypt .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movslq -12(%rbp), %rdi shlq $0, %rdi addq $1, %rdi callq _malloc movq %rax, -24(%rbp) movq -24(%rbp), %rax movl -12(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movb $0, (%rax,%rcx) movl $0, -32(%rbp) LBB2_1: ## =>This Loop Header: Depth=1 ## Child Loop BB2_3 Depth 2 ## Child Loop BB2_5 Depth 3 ## Child Loop BB2_12 Depth 3 cmpl $3, -32(%rbp) jge LBB2_19 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movl $97, -36(%rbp) LBB2_3: ## Parent Loop BB2_1 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB2_5 Depth 3 ## Child Loop BB2_12 Depth 3 cmpl $122, -36(%rbp) jg LBB2_17 ## %bb.4: ## in Loop: Header=BB2_3 Depth=2 movl -32(%rbp), %eax movl %eax, -44(%rbp) LBB2_5: ## Parent Loop BB2_1 Depth=1 ## Parent Loop BB2_3 Depth=2 ## => This Inner Loop Header: Depth=3 movl -44(%rbp), %eax cmpl -12(%rbp), %eax jge LBB2_10 ## %bb.6: ## in Loop: Header=BB2_5 Depth=3 movq -8(%rbp), %rax movslq -44(%rbp), %rcx movsbl (%rax,%rcx), %eax xorl -36(%rbp), %eax ## kill: def $al killed $al killed $eax movb %al, -37(%rbp) movsbl -37(%rbp), %edi callq _isValidChar cmpl $0, %eax jne LBB2_8 ## %bb.7: ## in Loop: Header=BB2_3 Depth=2 jmp LBB2_10 LBB2_8: ## in Loop: Header=BB2_5 Depth=3 jmp LBB2_9 LBB2_9: ## in Loop: Header=BB2_5 Depth=3 movl -44(%rbp), %eax addl $3, %eax movl %eax, -44(%rbp) jmp LBB2_5 LBB2_10: ## in Loop: Header=BB2_3 Depth=2 movl -44(%rbp), %eax cmpl -12(%rbp), %eax jl LBB2_15 ## %bb.11: ## in Loop: Header=BB2_3 Depth=2 movl -36(%rbp), %esi movl -44(%rbp), %edx movl -12(%rbp), %ecx leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl -36(%rbp), %eax movb %al, %cl movslq -32(%rbp), %rax movb %cl, -27(%rbp,%rax) movl -32(%rbp), %eax movl %eax, -44(%rbp) LBB2_12: ## Parent Loop BB2_1 Depth=1 ## Parent Loop BB2_3 Depth=2 ## => This Inner Loop Header: Depth=3 movl -44(%rbp), %eax cmpl -12(%rbp), %eax jge LBB2_14 ## %bb.13: ## in Loop: Header=BB2_12 Depth=3 movq -8(%rbp), %rax movslq -44(%rbp), %rcx movsbl (%rax,%rcx), %eax xorl -36(%rbp), %eax ## kill: def $al killed $al killed $eax movb %al, -37(%rbp) movb -37(%rbp), %dl movq -24(%rbp), %rax movslq -44(%rbp), %rcx movb %dl, (%rax,%rcx) movl -44(%rbp), %eax addl $3, %eax movl %eax, -44(%rbp) jmp LBB2_12 LBB2_14: ## in Loop: Header=BB2_3 Depth=2 jmp LBB2_15 LBB2_15: ## in Loop: Header=BB2_3 Depth=2 jmp LBB2_16 LBB2_16: ## in Loop: Header=BB2_3 Depth=2 movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) jmp LBB2_3 LBB2_17: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_18 LBB2_18: ## in Loop: Header=BB2_1 Depth=1 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB2_1 LBB2_19: movq -24(%rbp), %rax movslq -12(%rbp), %rcx movb $0, (%rax,%rcx) movl -12(%rbp), %esi leaq -27(%rbp), %rdx movq -24(%rbp), %rcx leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq -24(%rbp), %rdi callq _free movq $0, -24(%rbp) xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $2112, %rsp ## imm = 0x840 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -2068(%rbp) leaq L_.str.3(%rip), %rdi leaq L_.str.4(%rip), %rsi callq _fopen movq %rax, -2080(%rbp) cmpq $0, -2080(%rbp) jne LBB3_2 ## %bb.1: movl $1, -2068(%rbp) jmp LBB3_13 LBB3_2: leaq -2064(%rbp), %rdi xorl %esi, %esi movl $2048, %edx ## imm = 0x800 callq _memset movl $0, -2084(%rbp) movl $0, -2092(%rbp) LBB3_3: ## =>This Inner Loop Header: Depth=1 movq -2080(%rbp), %rdi callq _getc ## kill: def $al killed $al killed $eax movb %al, -2085(%rbp) movsbl %al, %eax cmpl $-1, %eax je LBB3_10 ## %bb.4: ## in Loop: Header=BB3_3 Depth=1 movsbl -2085(%rbp), %eax cmpl $44, %eax jne LBB3_6 ## %bb.5: ## in Loop: Header=BB3_3 Depth=1 movslq -2092(%rbp), %rax movb $0, -2088(%rbp,%rax) leaq -2088(%rbp), %rdi callq _atoi movl %eax, -2096(%rbp) movl -2096(%rbp), %eax movb %al, %cl movl -2084(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -2084(%rbp) cltq movb %cl, -2064(%rbp,%rax) movl $0, -2092(%rbp) jmp LBB3_7 LBB3_6: ## in Loop: Header=BB3_3 Depth=1 movb -2085(%rbp), %cl movl -2092(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -2092(%rbp) cltq movb %cl, -2088(%rbp,%rax) LBB3_7: ## in Loop: Header=BB3_3 Depth=1 cmpl $3, -2092(%rbp) jl LBB3_9 ## %bb.8: leaq L_.str.5(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $-9, %edi callq _exit LBB3_9: ## in Loop: Header=BB3_3 Depth=1 jmp LBB3_3 LBB3_10: cmpl $0, -2092(%rbp) jle LBB3_12 ## %bb.11: movslq -2092(%rbp), %rax movb $0, -2088(%rbp,%rax) leaq -2088(%rbp), %rdi callq _atoi movl %eax, -2100(%rbp) movl -2100(%rbp), %eax movb %al, %cl movl -2084(%rbp), %eax movl %eax, %edx addl $1, %edx movl %edx, -2084(%rbp) cltq movb %cl, -2064(%rbp,%rax) LBB3_12: movq -2080(%rbp), %rdi callq _fclose leaq -2064(%rbp), %rdi movl -2084(%rbp), %esi callq _decrypt leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf movl $0, -2068(%rbp) LBB3_13: movl -2068(%rbp), %eax movl %eax, -2104(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB3_15 ## %bb.14: movl -2104(%rbp), %eax ## 4-byte Reload addq $2112, %rsp ## imm = 0x840 popq %rbp retq LBB3_15: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "\n %d %d %d %d \n" L_.str.1: ## @.str.1 .asciz "\n\n key is %c , i is %d, len is %d\n" L_.str.2: ## @.str.2 .asciz "\n Total %d, key is %s \n%s\n\n" L_.str.3: ## @.str.3 .asciz "/home/ben/cpp/0809ZJU007A/crypt/cipher1.txt" L_.str.4: ## @.str.4 .asciz "r" L_.str.5: ## @.str.5 .asciz "BAD input\n" L_.str.6: ## @.str.6 .asciz "\n---END---\n" .subsections_via_symbols
the_stack_data/51700603.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sub sp, sp, #80 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-12] stur wzr, [x29, #-16] sub sp, sp, #16 mov x9, sp sub x8, x29, #36 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf add sp, sp, #16 stur wzr, [x29, #-32] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-32] ldur w9, [x29, #-36] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 sub sp, sp, #16 mov x9, sp sub x8, x29, #28 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf add sp, sp, #16 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-32] add w8, w8, #1 stur w8, [x29, #-32] b LBB0_1 LBB0_4: ldur w8, [x29, #-28] ; kill: def $x8 killed $w8 mov x9, sp stur x9, [x29, #-48] lsl x9, x8, #2 add x9, x9, #15 and x9, x9, #0xfffffffffffffff0 stur x9, [x29, #-72] ; 8-byte Folded Spill adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 ldur x10, [x29, #-72] ; 8-byte Folded Reload mov x9, sp subs x9, x9, x10 mov sp, x9 stur x9, [x29, #-64] ; 8-byte Folded Spill stur x8, [x29, #-56] stur wzr, [x29, #-24] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-24] ldur w9, [x29, #-28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldur x8, [x29, #-64] ; 8-byte Folded Reload ldursw x9, [x29, #-24] add x8, x8, x9, lsl #2 sub sp, sp, #16 mov x9, sp str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf add sp, sp, #16 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldur w8, [x29, #-24] add w8, w8, #1 stur w8, [x29, #-24] b LBB0_5 LBB0_8: stur wzr, [x29, #-24] b LBB0_9 LBB0_9: ; =>This Loop Header: Depth=1 ; Child Loop BB0_11 Depth 2 ldur w8, [x29, #-24] ldur w9, [x29, #-28] subs w9, w9, #1 subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_21 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 ldur w8, [x29, #-24] add w8, w8, #1 stur w8, [x29, #-20] b LBB0_11 LBB0_11: ; Parent Loop BB0_9 Depth=1 ; => This Inner Loop Header: Depth=2 ldur w8, [x29, #-20] ldur w9, [x29, #-28] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_19 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_11 Depth=2 ldur x9, [x29, #-64] ; 8-byte Folded Reload ldursw x8, [x29, #-24] ldr w8, [x9, x8, lsl #2] ldursw x10, [x29, #-20] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_15 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_11 Depth=2 ldur w8, [x29, #-20] ldur w9, [x29, #-24] subs w8, w8, w9 ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_15 b LBB0_14 LBB0_14: ; in Loop: Header=BB0_11 Depth=2 ldur w8, [x29, #-20] ldur w9, [x29, #-24] subs w8, w8, w9 stur w8, [x29, #-16] b LBB0_15 LBB0_15: ; in Loop: Header=BB0_11 Depth=2 ldur w8, [x29, #-16] ldur w9, [x29, #-28] ldur w10, [x29, #-24] subs w9, w9, w10 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_17 b LBB0_16 LBB0_16: ; in Loop: Header=BB0_9 Depth=1 b LBB0_19 LBB0_17: ; in Loop: Header=BB0_11 Depth=2 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_11 Depth=2 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB0_11 LBB0_19: ; in Loop: Header=BB0_9 Depth=1 b LBB0_20 LBB0_20: ; in Loop: Header=BB0_9 Depth=1 ldur w8, [x29, #-24] add w8, w8, #1 stur w8, [x29, #-24] b LBB0_9 LBB0_21: ldur w9, [x29, #-16] ; implicit-def: $x8 mov x8, x9 sub sp, sp, #16 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf add sp, sp, #16 ldur x8, [x29, #-48] mov sp, x8 ldur w8, [x29, #-12] stur w8, [x29, #-76] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_23 b LBB0_22 LBB0_22: bl ___stack_chk_fail LBB0_23: ldur w0, [x29, #-76] ; 4-byte Folded Reload mov sp, x29 ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%d" l_.str.1: ; @.str.1 .asciz "%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -12(%rbp) movl $0, -16(%rbp) leaq L_.str(%rip), %rdi leaq -36(%rbp), %rsi movb $0, %al callq _scanf movl $0, -32(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -32(%rbp), %eax cmpl -36(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str(%rip), %rdi leaq -28(%rbp), %rsi movb $0, %al callq _scanf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB0_1 LBB0_4: movl -28(%rbp), %eax ## kill: def $rax killed $eax movq %rax, -72(%rbp) ## 8-byte Spill movq %rsp, %rcx movq %rcx, -48(%rbp) shlq $2, %rax callq ____chkstk_darwin addq $15, %rax andq $-16, %rax subq %rax, %rsp movq -72(%rbp), %rax ## 8-byte Reload movq %rsp, %rcx movq %rcx, -64(%rbp) ## 8-byte Spill movq %rax, -56(%rbp) movl $0, -24(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 movl -24(%rbp), %eax cmpl -28(%rbp), %eax jge LBB0_8 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movq -64(%rbp), %rsi ## 8-byte Reload movslq -24(%rbp), %rax shlq $2, %rax addq %rax, %rsi leaq L_.str(%rip), %rdi movb $0, %al callq _scanf ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB0_5 LBB0_8: movl $0, -24(%rbp) LBB0_9: ## =>This Loop Header: Depth=1 ## Child Loop BB0_11 Depth 2 movl -24(%rbp), %eax movl -28(%rbp), %ecx subl $1, %ecx cmpl %ecx, %eax jge LBB0_21 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) LBB0_11: ## Parent Loop BB0_9 Depth=1 ## => This Inner Loop Header: Depth=2 movl -20(%rbp), %eax cmpl -28(%rbp), %eax jge LBB0_19 ## %bb.12: ## in Loop: Header=BB0_11 Depth=2 movq -64(%rbp), %rcx ## 8-byte Reload movslq -24(%rbp), %rax movl (%rcx,%rax,4), %eax movslq -20(%rbp), %rdx cmpl (%rcx,%rdx,4), %eax jg LBB0_15 ## %bb.13: ## in Loop: Header=BB0_11 Depth=2 movl -20(%rbp), %eax subl -24(%rbp), %eax cmpl -16(%rbp), %eax jle LBB0_15 ## %bb.14: ## in Loop: Header=BB0_11 Depth=2 movl -20(%rbp), %eax subl -24(%rbp), %eax movl %eax, -16(%rbp) LBB0_15: ## in Loop: Header=BB0_11 Depth=2 movl -16(%rbp), %eax movl -28(%rbp), %ecx subl -24(%rbp), %ecx cmpl %ecx, %eax jne LBB0_17 ## %bb.16: ## in Loop: Header=BB0_9 Depth=1 jmp LBB0_19 LBB0_17: ## in Loop: Header=BB0_11 Depth=2 jmp LBB0_18 LBB0_18: ## in Loop: Header=BB0_11 Depth=2 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_11 LBB0_19: ## in Loop: Header=BB0_9 Depth=1 jmp LBB0_20 LBB0_20: ## in Loop: Header=BB0_9 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB0_9 LBB0_21: movl -16(%rbp), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movq -48(%rbp), %rax movq %rax, %rsp movl -12(%rbp), %eax movl %eax, -76(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_23 ## %bb.22: movl -76(%rbp), %eax ## 4-byte Reload movq %rbp, %rsp popq %rbp retq LBB0_23: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%d" L_.str.1: ## @.str.1 .asciz "%d\n" .subsections_via_symbols
the_stack_data/98575612.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-28] adrp x8, l___const.main.ar@PAGE add x8, x8, l___const.main.ar@PAGEOFF ldr x9, [x8] sub x10, x29, #24 str x10, [sp, #8] ; 8-byte Folded Spill stur x9, [x29, #-24] ldr w8, [x8, #8] stur w8, [x29, #-16] adrp x8, l_.str@PAGE add x8, x8, l_.str@PAGEOFF str x8, [sp, #16] ; 8-byte Folded Spill mov x9, x8 str x9, [sp, #24] mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldr x8, [sp, #8] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr x8, [sp, #24] mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf ldr x8, [sp, #16] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf ldr x8, [sp, #16] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: bl ___stack_chk_fail LBB0_2: mov w0, #0 ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l___const.main.ar: ; @__const.main.ar .asciz "I'm special" l_.str: ; @.str .asciz "I'm special" l_.str.1: ; @.str.1 .asciz "address of \"I'm special:\": %p\n" l_.str.2: ; @.str.2 .asciz " address ar: %p\n" l_.str.3: ; @.str.3 .asciz " address pt: %p\n" l_.str.4: ; @.str.4 .asciz " address of MSG: %p\n" l_.str.5: ; @.str.5 .asciz " address of \"I'm special\": %p\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -24(%rbp) movq L___const.main.ar(%rip), %rax movq %rax, -20(%rbp) movl L___const.main.ar+8(%rip), %eax movl %eax, -12(%rbp) leaq L_.str(%rip), %rax movq %rax, -32(%rbp) leaq L_.str.1(%rip), %rdi leaq L_.str(%rip), %rsi movb $0, %al callq _printf leaq -20(%rbp), %rsi leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq -32(%rbp), %rsi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf leaq L_.str.4(%rip), %rdi leaq L_.str(%rip), %rsi movb $0, %al callq _printf leaq L_.str.5(%rip), %rdi leaq L_.str(%rip), %rsi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_2 ## %bb.1: xorl %eax, %eax addq $32, %rsp popq %rbp retq LBB0_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L___const.main.ar: ## @__const.main.ar .asciz "I'm special" L_.str: ## @.str .asciz "I'm special" L_.str.1: ## @.str.1 .asciz "address of \"I'm special:\": %p\n" L_.str.2: ## @.str.2 .asciz " address ar: %p\n" L_.str.3: ## @.str.3 .asciz " address pt: %p\n" L_.str.4: ## @.str.4 .asciz " address of MSG: %p\n" L_.str.5: ## @.str.5 .asciz " address of \"I'm special\": %p\n" .subsections_via_symbols
the_stack_data/101195.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _compare_ints ; -- Begin function compare_ints .p2align 2 _compare_ints: ; @compare_ints .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #16] str x1, [sp, #8] ldr x8, [sp, #16] ldr w8, [x8] str w8, [sp, #4] ldr x8, [sp, #8] ldr w8, [x8] str w8, [sp] ldr w8, [sp, #4] ldr w9, [sp] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: mov w8, #-1 str w8, [sp, #28] b LBB0_6 LBB0_2: ldr w8, [sp, #4] ldr w9, [sp] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: mov w8, #1 str w8, [sp, #28] b LBB0_6 LBB0_4: b LBB0_5 LBB0_5: str wzr, [sp, #28] b LBB0_6 LBB0_6: ldr w0, [sp, #28] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _lookup ; -- Begin function lookup .p2align 2 _lookup: ; @lookup .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp] ; 8-byte Folded Spill sturb w0, [x29, #-5] ldursb w9, [x29, #-5] mov w8, #65 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldr x8, [sp] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fprintf stur wzr, [x29, #-4] b LBB1_6 LBB1_2: ldursb w9, [x29, #-5] mov w8, #66 subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ldr x8, [sp] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fprintf mov w8, #1 stur w8, [x29, #-4] b LBB1_6 LBB1_4: b LBB1_5 LBB1_5: ldr x8, [sp] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fprintf mov w8, #2 stur w8, [x29, #-4] b LBB1_6 LBB1_6: ldur w0, [x29, #-4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #128 .cfi_def_cfa_offset 128 stp x29, x30, [sp, #112] ; 16-byte Folded Spill add x29, sp, #112 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] stur x8, [x29, #-40] ; 8-byte Folded Spill adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] stur wzr, [x29, #-28] sub x11, x29, #24 add x10, x11, #4 add x8, x11, #8 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _scanf subs w8, w0, #3 cset w8, eq tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: ldur x8, [x29, #-40] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _fprintf mov w8, #1 stur w8, [x29, #-28] b LBB2_5 LBB2_2: ldur x8, [x29, #-40] ; 8-byte Folded Reload ldr x0, [x8] sub x8, x29, #24 str x8, [sp, #56] ; 8-byte Folded Spill ldur w8, [x29, #-24] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-20] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF stur x1, [x29, #-48] ; 8-byte Folded Spill bl _fprintf ldr x0, [sp, #56] ; 8-byte Folded Reload mov x1, #3 mov x2, #4 adrp x3, _compare_ints@PAGE add x3, x3, _compare_ints@PAGEOFF bl _qsort ldur x8, [x29, #-40] ; 8-byte Folded Reload ldur x1, [x29, #-48] ; 8-byte Folded Reload ldr x0, [x8] ldur w8, [x29, #-24] ; implicit-def: $x11 mov x11, x8 ldur w8, [x29, #-20] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] bl _fprintf mov x9, sp sub x8, x29, #31 str x8, [x9] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _scanf subs w8, w0, #1 cset w8, eq tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: ldur x8, [x29, #-40] ; 8-byte Folded Reload ldr x0, [x8] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _fprintf mov w8, #1 stur w8, [x29, #-28] b LBB2_5 LBB2_4: ldur x8, [x29, #-40] ; 8-byte Folded Reload ldr x0, [x8] mov x9, sp sub x8, x29, #31 str x8, [x9] adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _fprintf ldursb w0, [x29, #-31] bl _lookup sub x8, x29, #24 str x8, [sp, #32] ; 8-byte Folded Spill ldr w9, [x8, w0, sxtw #2] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #40] ; 8-byte Folded Spill ldursb w0, [x29, #-30] bl _lookup ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w9, [x8, w0, sxtw #2] ; implicit-def: $x8 mov x8, x9 str x8, [sp, #48] ; 8-byte Folded Spill ldursb w0, [x29, #-29] bl _lookup ldr x8, [sp, #32] ; 8-byte Folded Reload ldr x11, [sp, #40] ; 8-byte Folded Reload ldr x10, [sp, #48] ; 8-byte Folded Reload ldr w9, [x8, w0, sxtw #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf stur wzr, [x29, #-28] b LBB2_5 LBB2_5: ldur w8, [x29, #-28] str w8, [sp, #28] ; 4-byte Folded Spill ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB2_7 b LBB2_6 LBB2_6: bl ___stack_chk_fail LBB2_7: ldr w0, [sp, #28] ; 4-byte Folded Reload ldp x29, x30, [sp, #112] ; 16-byte Folded Reload add sp, sp, #128 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "It's an A\n" l_.str.1: ; @.str.1 .asciz "It's a B\n" l_.str.2: ; @.str.2 .asciz "Have to assume C\n" l_.str.3: ; @.str.3 .asciz "%d %d %d\n" l_.str.4: ; @.str.4 .asciz "Failed to read initial input\n" l_.str.5: ; @.str.5 .asciz "%3s\n" l_.str.6: ; @.str.6 .asciz "Desired order: %s\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _compare_ints ## -- Begin function compare_ints .p2align 4, 0x90 _compare_ints: ## @compare_ints .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movq -16(%rbp), %rax movl (%rax), %eax movl %eax, -28(%rbp) movq -24(%rbp), %rax movl (%rax), %eax movl %eax, -32(%rbp) movl -28(%rbp), %eax cmpl -32(%rbp), %eax jge LBB0_2 ## %bb.1: movl $-1, -4(%rbp) jmp LBB0_6 LBB0_2: movl -28(%rbp), %eax cmpl -32(%rbp), %eax jle LBB0_4 ## %bb.3: movl $1, -4(%rbp) jmp LBB0_6 LBB0_4: jmp LBB0_5 LBB0_5: movl $0, -4(%rbp) LBB0_6: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _lookup ## -- Begin function lookup .p2align 4, 0x90 _lookup: ## @lookup .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movb %dil, %al movb %al, -5(%rbp) movsbl -5(%rbp), %ecx movl $65, %eax cmpl %ecx, %eax jne LBB1_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str(%rip), %rsi movb $0, %al callq _fprintf movl $0, -4(%rbp) jmp LBB1_6 LBB1_2: movsbl -5(%rbp), %ecx movl $66, %eax cmpl %ecx, %eax jne LBB1_4 ## %bb.3: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.1(%rip), %rsi movb $0, %al callq _fprintf movl $1, -4(%rbp) jmp LBB1_6 LBB1_4: jmp LBB1_5 LBB1_5: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.2(%rip), %rsi movb $0, %al callq _fprintf movl $2, -4(%rbp) LBB1_6: movl -4(%rbp), %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -36(%rbp) leaq -32(%rbp), %rsi leaq -32(%rbp), %rdx addq $4, %rdx leaq -32(%rbp), %rcx addq $8, %rcx leaq L_.str.3(%rip), %rdi movb $0, %al callq _scanf cmpl $3, %eax je LBB2_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.4(%rip), %rsi movb $0, %al callq _fprintf movl $1, -36(%rbp) jmp LBB2_5 LBB2_2: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -32(%rbp), %edx movl -28(%rbp), %ecx movl -24(%rbp), %r8d leaq L_.str.3(%rip), %rsi movb $0, %al callq _fprintf leaq -32(%rbp), %rdi movl $3, %esi movl $4, %edx leaq _compare_ints(%rip), %rcx callq _qsort movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -32(%rbp), %edx movl -28(%rbp), %ecx movl -24(%rbp), %r8d leaq L_.str.3(%rip), %rsi movb $0, %al callq _fprintf leaq -39(%rbp), %rsi leaq L_.str.5(%rip), %rdi movb $0, %al callq _scanf cmpl $1, %eax je LBB2_4 ## %bb.3: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.4(%rip), %rsi movb $0, %al callq _fprintf movl $1, -36(%rbp) jmp LBB2_5 LBB2_4: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq -39(%rbp), %rdx leaq L_.str.6(%rip), %rsi movb $0, %al callq _fprintf movsbl -39(%rbp), %edi callq _lookup cltq movl -32(%rbp,%rax,4), %eax movl %eax, -48(%rbp) ## 4-byte Spill movsbl -38(%rbp), %edi callq _lookup cltq movl -32(%rbp,%rax,4), %eax movl %eax, -44(%rbp) ## 4-byte Spill movsbl -37(%rbp), %edi callq _lookup movl -48(%rbp), %esi ## 4-byte Reload movl -44(%rbp), %edx ## 4-byte Reload cltq movl -32(%rbp,%rax,4), %ecx leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf movl $0, -36(%rbp) LBB2_5: movl -36(%rbp), %eax movl %eax, -52(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB2_7 ## %bb.6: movl -52(%rbp), %eax ## 4-byte Reload addq $64, %rsp popq %rbp retq LBB2_7: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "It's an A\n" L_.str.1: ## @.str.1 .asciz "It's a B\n" L_.str.2: ## @.str.2 .asciz "Have to assume C\n" L_.str.3: ## @.str.3 .asciz "%d %d %d\n" L_.str.4: ## @.str.4 .asciz "Failed to read initial input\n" L_.str.5: ## @.str.5 .asciz "%3s\n" L_.str.6: ## @.str.6 .asciz "Desired order: %s\n" .subsections_via_symbols
the_stack_data/179830909.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov x0, #200 bl _malloc str x0, [sp, #16] ldr x0, [sp, #16] mov x1, #400 bl _realloc str x0, [sp, #16] ldr x8, [sp, #16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w0, #1 bl _exit LBB0_2: str wzr, [sp, #12] b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #100 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 bl _rand ldr x8, [sp, #16] ldrsw x9, [sp, #12] str w0, [x8, x9, lsl #2] mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_3 LBB0_6: ldr x0, [sp, #16] bl _free mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Erro: Sem Mem\303\263ria!" l_.str.1: ; @.str.1 .asciz "[%d]\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl $200, %edi callq _malloc movq %rax, -16(%rbp) movq -16(%rbp), %rdi movl $400, %esi ## imm = 0x190 callq _realloc movq %rax, -16(%rbp) cmpq $0, -16(%rbp) jne LBB0_2 ## %bb.1: leaq L_.str(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB0_2: movl $0, -20(%rbp) LBB0_3: ## =>This Inner Loop Header: Depth=1 cmpl $100, -20(%rbp) jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 callq _rand movl %eax, %esi movq -16(%rbp), %rax movslq -20(%rbp), %rcx movl %esi, (%rax,%rcx,4) leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf ## %bb.5: ## in Loop: Header=BB0_3 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_3 LBB0_6: movq -16(%rbp), %rdi callq _free xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Erro: Sem Mem\303\263ria!" L_.str.1: ## @.str.1 .asciz "[%d]\n" .subsections_via_symbols
the_stack_data/6387905.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .subsections_via_symbols
the_stack_data/88544.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub sp, sp, #1120 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #24] ; 8-byte Folded Spill adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #84] str w0, [sp, #80] str x1, [sp, #72] add x0, sp, #88 str x0, [sp, #32] ; 8-byte Folded Spill mov x1, #1024 bl _bzero ldr x2, [sp, #32] ; 8-byte Folded Reload mov w8, #1 str w8, [sp, #68] strb wzr, [sp, #67] str xzr, [sp, #56] str xzr, [sp, #48] str xzr, [sp, #40] ldr w0, [sp, #80] ldr x1, [sp, #72] bl _parse_args b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 add x0, sp, #88 add x1, sp, #48 bl _churn_inode str w0, [sp, #68] ldrb w8, [sp, #67] tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 mov w8, #1 strb w8, [sp, #67] ldr x8, [sp, #48] str x8, [sp, #56] b LBB0_6 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #48] ldr x9, [sp, #56] subs x8, x8, x9 cset w8, hi tbnz w8, #0, LBB0_5 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 mov w8, #2 str w8, [sp, #68] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #40] add x8, x8, #1 str x8, [sp, #40] ldr x8, [sp, #40] mov x10, #16960 movk x10, #15, lsl #16 udiv x9, x8, x10 mul x9, x9, x10 subs x8, x8, x9 subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] ldr x8, [sp, #48] mov x9, sp str x8, [x9] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _fprintf ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] bl _fflush b LBB0_8 LBB0_8: ; in Loop: Header=BB0_1 Depth=1 b LBB0_9 LBB0_9: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #68] subs w8, w8, #1 cset w8, eq tbnz w8, #0, LBB0_1 b LBB0_10 LBB0_10: ldr w8, [sp, #68] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB0_12 b LBB0_11 LBB0_11: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x0, [x8] ldr x10, [sp, #48] ldr x8, [sp, #56] mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB0_12: ldr x8, [sp, #48] mov x9, sp add x10, sp, #88 str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: bl ___stack_chk_fail LBB0_14: mov w0, #0 add sp, sp, #1120 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function parse_args _parse_args: ; @parse_args .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] stur x1, [x29, #-16] stur x2, [x29, #-24] stur wzr, [x29, #-28] ; kill: def $x8 killed $xzr str xzr, [sp, #24] bl _getpid str w0, [sp, #20] ldur w8, [x29, #-4] subs w8, w8, #2 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: bl _usage b LBB1_2 LBB1_2: ldur x8, [x29, #-16] ldr x8, [x8, #8] str x8, [sp, #24] ldr x0, [sp, #24] mov w1, #2 bl _access subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _perror bl _usage b LBB1_4 LBB1_4: ldur x0, [x29, #-24] ldr x10, [sp, #24] ldr w9, [sp, #20] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] mov x1, #1023 mov w2, #0 mov x3, #-1 adrp x4, l_.str.4@PAGE add x4, x4, l_.str.4@PAGEOFF bl ___snprintf_chk stur w0, [x29, #-28] ldur w8, [x29, #-28] subs w8, w8, #0 cset w8, lt tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ldur w8, [x29, #-28] subs w8, w8, #1023 cset w8, lt tbnz w8, #0, LBB1_7 b LBB1_6 LBB1_6: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB1_7: ldur x0, [x29, #-24] bl _unlink ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function churn_inode _churn_inode: ; @churn_inode .cfi_startproc ; %bb.0: sub sp, sp, #208 .cfi_def_cfa_offset 208 stp x29, x30, [sp, #192] ; 16-byte Folded Spill add x29, sp, #192 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] str x8, [sp, #8] ; 8-byte Folded Spill stur x0, [x29, #-16] stur x1, [x29, #-24] stur wzr, [x29, #-28] mov w8, #-1 stur w8, [x29, #-32] ldur x0, [x29, #-16] mov w1, #2561 bl _open stur w0, [x29, #-32] ldur w8, [x29, #-28] adds w8, w8, #1 cset w8, ne tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _perror ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-16] mov x9, sp str x8, [x9] adrp x1, l_.str.8@PAGE add x1, x1, l_.str.8@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB2_2: ldur w0, [x29, #-32] bl _close stur w0, [x29, #-28] ldur w8, [x29, #-28] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_4 b LBB2_3 LBB2_3: adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _perror ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-16] mov x9, sp str x8, [x9] adrp x1, l_.str.10@PAGE add x1, x1, l_.str.10@PAGEOFF bl _fprintf b LBB2_9 LBB2_4: ldur x0, [x29, #-16] add x1, sp, #16 bl _stat stur w0, [x29, #-28] ldur w8, [x29, #-28] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_6 b LBB2_5 LBB2_5: adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _perror ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-16] mov x9, sp str x8, [x9] adrp x1, l_.str.12@PAGE add x1, x1, l_.str.12@PAGEOFF bl _fprintf b LBB2_9 LBB2_6: ldr x8, [sp, #24] ldur x9, [x29, #-24] str x8, [x9] ldr x8, [sp, #24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_8 b LBB2_7 LBB2_7: stur wzr, [x29, #-4] b LBB2_12 LBB2_8: b LBB2_9 LBB2_9: ldur x0, [x29, #-16] bl _unlink stur w0, [x29, #-28] ldur w8, [x29, #-28] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB2_11 b LBB2_10 LBB2_10: adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _perror ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x0, [x8] ldur x8, [x29, #-16] mov x9, sp str x8, [x9] adrp x1, l_.str.12@PAGE add x1, x1, l_.str.12@PAGEOFF bl _fprintf mov w0, #1 bl _exit LBB2_11: mov w8, #1 stur w8, [x29, #-4] b LBB2_12 LBB2_12: ldur w0, [x29, #-4] ldp x29, x30, [sp, #192] ; 16-byte Folded Reload add sp, sp, #208 ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function usage _usage: ; @usage .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _fprintf mov w0, #1 bl _exit .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "current inode number: %lld\n" l_.str.1: ; @.str.1 .asciz "FAILED: last generated inode number %lld wrapped first one (%lld), exiting\n" l_.str.2: ; @.str.2 .asciz "OK: path '%s' has inode number %lld\n" l_.str.3: ; @.str.3 .asciz "can not write to dest_dir" l_.str.4: ; @.str.4 .asciz "%s/ic-%d-churnfile" l_.str.5: ; @.str.5 .asciz "error: unexpected failure to generate churn file name, exiting\n" l_.str.6: ; @.str.6 .asciz "Usage: ic0 <path>\n\nWhere inode number zero will be sought by brute force creation of\nempty files directly under <path>.\n" l_.str.7: ; @.str.7 .asciz "failed to create churn file" l_.str.8: ; @.str.8 .asciz "error: unexpected failure to create churn file '%s', exiting\n" l_.str.9: ; @.str.9 .asciz "failed to close churn file" l_.str.10: ; @.str.10 .asciz "error: unexpected failure to close churn file '%s', exiting\n" l_.str.11: ; @.str.11 .asciz "failed to stat churn file" l_.str.12: ; @.str.12 .asciz "error: unexpected failure to stat churn file '%s', exiting\n" l_.str.13: ; @.str.13 .asciz "failed to unlink churn file" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $1088, %rsp ## imm = 0x440 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -1044(%rbp) movl %edi, -1048(%rbp) movq %rsi, -1056(%rbp) leaq -1040(%rbp), %rdi xorl %esi, %esi movl $1024, %edx ## imm = 0x400 callq _memset movl $1, -1060(%rbp) movb $0, -1061(%rbp) movq $0, -1072(%rbp) movq $0, -1080(%rbp) movq $0, -1088(%rbp) movl -1048(%rbp), %edi movq -1056(%rbp), %rsi leaq -1040(%rbp), %rdx callq _parse_args LBB0_1: ## =>This Inner Loop Header: Depth=1 leaq -1040(%rbp), %rdi leaq -1080(%rbp), %rsi callq _churn_inode movl %eax, -1060(%rbp) testb $1, -1061(%rbp) jne LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movb $1, -1061(%rbp) movq -1080(%rbp), %rax movq %rax, -1072(%rbp) jmp LBB0_6 LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movq -1080(%rbp), %rax cmpq -1072(%rbp), %rax ja LBB0_5 ## %bb.4: ## in Loop: Header=BB0_1 Depth=1 movl $2, -1060(%rbp) LBB0_5: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_6 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 movq -1088(%rbp), %rax addq $1, %rax movq %rax, -1088(%rbp) movq -1088(%rbp), %rax movl $1000000, %ecx ## imm = 0xF4240 xorl %edx, %edx ## kill: def $rdx killed $edx divq %rcx cmpq $0, %rdx jne LBB0_8 ## %bb.7: ## in Loop: Header=BB0_1 Depth=1 movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -1080(%rbp), %rdx leaq L_.str(%rip), %rsi movb $0, %al callq _fprintf movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi callq _fflush LBB0_8: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_9 LBB0_9: ## in Loop: Header=BB0_1 Depth=1 cmpl $1, -1060(%rbp) je LBB0_1 ## %bb.10: cmpl $2, -1060(%rbp) jne LBB0_12 ## %bb.11: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -1080(%rbp), %rdx movq -1072(%rbp), %rcx leaq L_.str.1(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB0_12: leaq -1040(%rbp), %rsi movq -1080(%rbp), %rdx leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB0_14 ## %bb.13: xorl %eax, %eax addq $1088, %rsp ## imm = 0x440 popq %rbp retq LBB0_14: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function parse_args _parse_args: ## @parse_args .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movl $0, -28(%rbp) movq $0, -40(%rbp) callq _getpid movl %eax, -44(%rbp) cmpl $2, -4(%rbp) je LBB1_2 ## %bb.1: callq _usage LBB1_2: movq -16(%rbp), %rax movq 8(%rax), %rax movq %rax, -40(%rbp) movq -40(%rbp), %rdi movl $2, %esi callq _access cmpl $0, %eax je LBB1_4 ## %bb.3: leaq L_.str.3(%rip), %rdi callq _perror callq _usage LBB1_4: movq -24(%rbp), %rdi movq -40(%rbp), %r9 movl -44(%rbp), %eax movl $1023, %esi ## imm = 0x3FF xorl %edx, %edx movq $-1, %rcx leaq L_.str.4(%rip), %r8 movl %eax, (%rsp) movb $0, %al callq ___snprintf_chk movl %eax, -28(%rbp) cmpl $0, -28(%rbp) jl LBB1_6 ## %bb.5: cmpl $1023, -28(%rbp) ## imm = 0x3FF jl LBB1_7 LBB1_6: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.5(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB1_7: movq -24(%rbp), %rdi callq _unlink addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function churn_inode _churn_inode: ## @churn_inode .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $176, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) movl $0, -28(%rbp) movl $-1, -32(%rbp) movq -16(%rbp), %rdi movl $2561, %esi ## imm = 0xA01 movb $0, %al callq _open movl %eax, -32(%rbp) cmpl $-1, -28(%rbp) jne LBB2_2 ## %bb.1: leaq L_.str.7(%rip), %rdi callq _perror movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -16(%rbp), %rdx leaq L_.str.8(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB2_2: movl -32(%rbp), %edi callq _close movl %eax, -28(%rbp) cmpl $0, -28(%rbp) je LBB2_4 ## %bb.3: leaq L_.str.9(%rip), %rdi callq _perror movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -16(%rbp), %rdx leaq L_.str.10(%rip), %rsi movb $0, %al callq _fprintf jmp LBB2_9 LBB2_4: movq -16(%rbp), %rdi leaq -176(%rbp), %rsi callq _stat$INODE64 movl %eax, -28(%rbp) cmpl $0, -28(%rbp) je LBB2_6 ## %bb.5: leaq L_.str.11(%rip), %rdi callq _perror movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -16(%rbp), %rdx leaq L_.str.12(%rip), %rsi movb $0, %al callq _fprintf jmp LBB2_9 LBB2_6: movq -168(%rbp), %rcx movq -24(%rbp), %rax movq %rcx, (%rax) cmpq $0, -168(%rbp) jne LBB2_8 ## %bb.7: movl $0, -4(%rbp) jmp LBB2_12 LBB2_8: jmp LBB2_9 LBB2_9: movq -16(%rbp), %rdi callq _unlink movl %eax, -28(%rbp) cmpl $0, -28(%rbp) je LBB2_11 ## %bb.10: leaq L_.str.13(%rip), %rdi callq _perror movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -16(%rbp), %rdx leaq L_.str.12(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit LBB2_11: movl $1, -4(%rbp) LBB2_12: movl -4(%rbp), %eax addq $176, %rsp popq %rbp retq .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function usage _usage: ## @usage .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi leaq L_.str.6(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl $1, %edi callq _exit .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "current inode number: %lld\n" L_.str.1: ## @.str.1 .asciz "FAILED: last generated inode number %lld wrapped first one (%lld), exiting\n" L_.str.2: ## @.str.2 .asciz "OK: path '%s' has inode number %lld\n" L_.str.3: ## @.str.3 .asciz "can not write to dest_dir" L_.str.4: ## @.str.4 .asciz "%s/ic-%d-churnfile" L_.str.5: ## @.str.5 .asciz "error: unexpected failure to generate churn file name, exiting\n" L_.str.6: ## @.str.6 .asciz "Usage: ic0 <path>\n\nWhere inode number zero will be sought by brute force creation of\nempty files directly under <path>.\n" L_.str.7: ## @.str.7 .asciz "failed to create churn file" L_.str.8: ## @.str.8 .asciz "error: unexpected failure to create churn file '%s', exiting\n" L_.str.9: ## @.str.9 .asciz "failed to close churn file" L_.str.10: ## @.str.10 .asciz "error: unexpected failure to close churn file '%s', exiting\n" L_.str.11: ## @.str.11 .asciz "failed to stat churn file" L_.str.12: ## @.str.12 .asciz "error: unexpected failure to stat churn file '%s', exiting\n" L_.str.13: ## @.str.13 .asciz "failed to unlink churn file" .subsections_via_symbols
the_stack_data/154827468.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _cryptoSTE_malloc ; -- Begin function cryptoSTE_malloc .p2align 2 _cryptoSTE_malloc: ; @cryptoSTE_malloc .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x0, [sp, #8] bl _malloc str x0, [sp] ldr x0, [sp] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _cryptoSTE_free ; -- Begin function cryptoSTE_free .p2align 2 _cryptoSTE_free: ; @cryptoSTE_free .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #8] ldr x0, [sp, #8] bl _free ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _cryptoSTE_malloc ## -- Begin function cryptoSTE_malloc .p2align 4, 0x90 _cryptoSTE_malloc: ## @cryptoSTE_malloc .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rdi callq _malloc movq %rax, -16(%rbp) movq -16(%rbp), %rax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _cryptoSTE_free ## -- Begin function cryptoSTE_free .p2align 4, 0x90 _cryptoSTE_free: ## @cryptoSTE_free .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rdi callq _free addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/51699292.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .subsections_via_symbols
the_stack_data/62638376.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _roll_file ; -- Begin function roll_file .p2align 2 _roll_file: ; @roll_file .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur w1, [x29, #-12] ; kill: def $x8 killed $xzr stur xzr, [x29, #-24] stur xzr, [x29, #-32] ldur x0, [x29, #-8] bl _strlen add x8, x0, #1 add x0, x8, #20 bl _malloc stur x0, [x29, #-24] ldur x0, [x29, #-8] bl _strlen add x8, x0, #1 add x0, x8, #20 bl _malloc stur x0, [x29, #-32] ldur x0, [x29, #-24] ldur x10, [x29, #-8] ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] mov w1, #0 mov x2, #-1 adrp x3, l_.str@PAGE add x3, x3, l_.str@PAGEOFF bl ___sprintf_chk ldur x0, [x29, #-24] bl _unlink ldur w8, [x29, #-12] subs w8, w8, #1 stur w8, [x29, #-36] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-36] subs w8, w8, #1 cset w8, lt tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x0, [x29, #-24] ldur x10, [x29, #-8] ldur w9, [x29, #-36] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] mov w1, #0 str w1, [sp, #20] ; 4-byte Folded Spill mov x2, #-1 str x2, [sp, #24] ; 8-byte Folded Spill adrp x3, l_.str@PAGE add x3, x3, l_.str@PAGEOFF str x3, [sp, #32] ; 8-byte Folded Spill bl ___sprintf_chk ldr w1, [sp, #20] ; 4-byte Folded Reload ldr x2, [sp, #24] ; 8-byte Folded Reload ldr x3, [sp, #32] ; 8-byte Folded Reload ldur x0, [x29, #-32] ldur x8, [x29, #-8] ldur w9, [x29, #-36] add w10, w9, #1 mov x9, sp str x8, [x9] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #8] bl ___sprintf_chk ldur x0, [x29, #-24] ldur x1, [x29, #-32] bl _rename b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-36] subs w8, w8, #1 stur w8, [x29, #-36] b LBB0_1 LBB0_4: ldur x0, [x29, #-32] ldur x8, [x29, #-8] mov x9, sp str x8, [x9] mov w1, #0 str w1, [sp, #16] ; 4-byte Folded Spill mov x2, #-1 adrp x3, l_.str.1@PAGE add x3, x3, l_.str.1@PAGEOFF bl ___sprintf_chk ldur x0, [x29, #-8] ldur x1, [x29, #-32] bl _rename ldur x0, [x29, #-24] bl _free ldur x0, [x29, #-32] bl _free ldr w0, [sp, #16] ; 4-byte Folded Reload ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s.%d" l_.str.1: ; @.str.1 .asciz "%s.1" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _roll_file ## -- Begin function roll_file .p2align 4, 0x90 _roll_file: ## @roll_file .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) movq $0, -24(%rbp) movq $0, -32(%rbp) movq -8(%rbp), %rdi callq _strlen movq %rax, %rdi addq $1, %rdi addq $20, %rdi callq _malloc movq %rax, -24(%rbp) movq -8(%rbp), %rdi callq _strlen movq %rax, %rdi addq $1, %rdi addq $20, %rdi callq _malloc movq %rax, -32(%rbp) movq -24(%rbp), %rdi movq -8(%rbp), %r8 movl -12(%rbp), %r9d xorl %esi, %esi movq $-1, %rdx leaq L_.str(%rip), %rcx movb $0, %al callq ___sprintf_chk movq -24(%rbp), %rdi callq _unlink movl -12(%rbp), %eax subl $1, %eax movl %eax, -36(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $1, -36(%rbp) jl LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -24(%rbp), %rdi movq -8(%rbp), %r8 movl -36(%rbp), %r9d xorl %esi, %esi movq $-1, %rdx leaq L_.str(%rip), %rcx movb $0, %al callq ___sprintf_chk movq -32(%rbp), %rdi movq -8(%rbp), %r8 movl -36(%rbp), %r9d addl $1, %r9d xorl %esi, %esi movq $-1, %rdx leaq L_.str(%rip), %rcx movb $0, %al callq ___sprintf_chk movq -24(%rbp), %rdi movq -32(%rbp), %rsi callq _rename ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -36(%rbp), %eax addl $-1, %eax movl %eax, -36(%rbp) jmp LBB0_1 LBB0_4: movq -32(%rbp), %rdi movq -8(%rbp), %r8 xorl %esi, %esi movq $-1, %rdx leaq L_.str.1(%rip), %rcx movb $0, %al callq ___sprintf_chk movq -8(%rbp), %rdi movq -32(%rbp), %rsi callq _rename movq -24(%rbp), %rdi callq _free movq -32(%rbp), %rdi callq _free xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s.%d" L_.str.1: ## @.str.1 .asciz "%s.1" .subsections_via_symbols
the_stack_data/58156.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__const .globl _board16_Map ; @board16_Map .p2align 1 _board16_Map: .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4097 ; 0x1001 .short 4098 ; 0x1002 .short 4098 ; 0x1002 .short 4098 ; 0x1002 .short 4098 ; 0x1002 .short 4098 ; 0x1002 .short 4098 ; 0x1002 .short 4098 ; 0x1002 .short 4098 ; 0x1002 .short 4098 ; 0x1002 .short 4098 ; 0x1002 .short 4098 ; 0x1002 .short 4098 ; 0x1002 .short 4098 ; 0x1002 .short 4098 ; 0x1002 .short 4098 ; 0x1002 .short 4098 ; 0x1002 .short 4098 ; 0x1002 .short 4098 ; 0x1002 .short 4099 ; 0x1003 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4100 ; 0x1004 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4102 ; 0x1006 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4100 ; 0x1004 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4102 ; 0x1006 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4100 ; 0x1004 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4102 ; 0x1006 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4100 ; 0x1004 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4102 ; 0x1006 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4100 ; 0x1004 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4102 ; 0x1006 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4100 ; 0x1004 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4102 ; 0x1006 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4100 ; 0x1004 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4102 ; 0x1006 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4100 ; 0x1004 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4102 ; 0x1006 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4100 ; 0x1004 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4102 ; 0x1006 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4100 ; 0x1004 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4102 ; 0x1006 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4100 ; 0x1004 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4102 ; 0x1006 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4100 ; 0x1004 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4102 ; 0x1006 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4100 ; 0x1004 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4101 ; 0x1005 .short 4102 ; 0x1006 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4103 ; 0x1007 .short 4104 ; 0x1008 .short 4104 ; 0x1008 .short 4104 ; 0x1008 .short 4104 ; 0x1008 .short 4104 ; 0x1008 .short 4104 ; 0x1008 .short 4104 ; 0x1008 .short 4104 ; 0x1008 .short 4104 ; 0x1008 .short 4104 ; 0x1008 .short 4104 ; 0x1008 .short 4104 ; 0x1008 .short 4104 ; 0x1008 .short 4104 ; 0x1008 .short 4104 ; 0x1008 .short 4104 ; 0x1008 .short 4104 ; 0x1008 .short 4104 ; 0x1008 .short 4105 ; 0x1009 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .short 4096 ; 0x1000 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__const .globl _board16_Map ## @board16_Map .p2align 4 _board16_Map: .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4097 ## 0x1001 .short 4098 ## 0x1002 .short 4098 ## 0x1002 .short 4098 ## 0x1002 .short 4098 ## 0x1002 .short 4098 ## 0x1002 .short 4098 ## 0x1002 .short 4098 ## 0x1002 .short 4098 ## 0x1002 .short 4098 ## 0x1002 .short 4098 ## 0x1002 .short 4098 ## 0x1002 .short 4098 ## 0x1002 .short 4098 ## 0x1002 .short 4098 ## 0x1002 .short 4098 ## 0x1002 .short 4098 ## 0x1002 .short 4098 ## 0x1002 .short 4098 ## 0x1002 .short 4099 ## 0x1003 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4100 ## 0x1004 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4102 ## 0x1006 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4100 ## 0x1004 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4102 ## 0x1006 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4100 ## 0x1004 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4102 ## 0x1006 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4100 ## 0x1004 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4102 ## 0x1006 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4100 ## 0x1004 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4102 ## 0x1006 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4100 ## 0x1004 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4102 ## 0x1006 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4100 ## 0x1004 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4102 ## 0x1006 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4100 ## 0x1004 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4102 ## 0x1006 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4100 ## 0x1004 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4102 ## 0x1006 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4100 ## 0x1004 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4102 ## 0x1006 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4100 ## 0x1004 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4102 ## 0x1006 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4100 ## 0x1004 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4102 ## 0x1006 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4100 ## 0x1004 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4101 ## 0x1005 .short 4102 ## 0x1006 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4103 ## 0x1007 .short 4104 ## 0x1008 .short 4104 ## 0x1008 .short 4104 ## 0x1008 .short 4104 ## 0x1008 .short 4104 ## 0x1008 .short 4104 ## 0x1008 .short 4104 ## 0x1008 .short 4104 ## 0x1008 .short 4104 ## 0x1008 .short 4104 ## 0x1008 .short 4104 ## 0x1008 .short 4104 ## 0x1008 .short 4104 ## 0x1008 .short 4104 ## 0x1008 .short 4104 ## 0x1008 .short 4104 ## 0x1008 .short 4104 ## 0x1008 .short 4104 ## 0x1008 .short 4105 ## 0x1009 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .short 4096 ## 0x1000 .subsections_via_symbols
the_stack_data/58880.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _isPrime ; -- Begin function isPrime .p2align 2 _isPrime: ; @isPrime .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: mov w8, #1 str w8, [sp, #12] b LBB0_11 LBB0_2: ldr w8, [sp, #8] subs w8, w8, #2 cset w8, le tbnz w8, #0, LBB0_10 b LBB0_3 LBB0_3: mov w8, #2 str w8, [sp, #4] b LBB0_4 LBB0_4: ; =>This Inner Loop Header: Depth=1 ldr s1, [sp, #4] ; implicit-def: $d0 fmov s0, s1 sshll.2d v0, v0, #0 ; kill: def $d0 killed $d0 killed $q0 scvtf d0, d0 ldr s2, [sp, #8] ; implicit-def: $d1 fmov s1, s2 sshll.2d v1, v1, #0 ; kill: def $d1 killed $d1 killed $q1 scvtf d1, d1 fsqrt d1, d1 fcmp d0, d1 cset w8, hi tbnz w8, #0, LBB0_9 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_4 Depth=1 ldr w8, [sp, #8] ldr w10, [sp, #4] sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB0_7 b LBB0_6 LBB0_6: str wzr, [sp, #12] b LBB0_11 LBB0_7: ; in Loop: Header=BB0_4 Depth=1 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_4 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB0_4 LBB0_9: mov w8, #1 str w8, [sp, #12] b LBB0_11 LBB0_10: str wzr, [sp, #12] b LBB0_11 LBB0_11: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] sub x8, x29, #8 str x8, [sp, #8] ; 8-byte Folded Spill stur wzr, [x29, #-8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldr x8, [sp, #8] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur w8, [x29, #-8] subs w8, w8, #0 cset w8, gt tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB1_9 LBB1_2: mov w8, #1 stur w8, [x29, #-12] b LBB1_3 LBB1_3: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB1_8 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_3 Depth=1 ldur w0, [x29, #-12] bl _isPrime str w0, [sp, #16] ldr w8, [sp, #16] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_3 Depth=1 ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB1_6 LBB1_6: ; in Loop: Header=BB1_3 Depth=1 b LBB1_7 LBB1_7: ; in Loop: Header=BB1_3 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB1_3 LBB1_8: b LBB1_9 LBB1_9: mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Enter the number: " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "Invalid number" l_.str.3: ; @.str.3 .asciz "%d " .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _isPrime ## -- Begin function isPrime .p2align 4, 0x90 _isPrime: ## @isPrime .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -8(%rbp) cmpl $2, -8(%rbp) jne LBB0_2 ## %bb.1: movl $1, -4(%rbp) jmp LBB0_11 LBB0_2: cmpl $2, -8(%rbp) jle LBB0_10 ## %bb.3: movl $2, -12(%rbp) LBB0_4: ## =>This Inner Loop Header: Depth=1 cvtsi2sdl -12(%rbp), %xmm1 cvtsi2sdl -8(%rbp), %xmm0 sqrtsd %xmm0, %xmm0 ucomisd %xmm1, %xmm0 jb LBB0_9 ## %bb.5: ## in Loop: Header=BB0_4 Depth=1 movl -8(%rbp), %eax cltd idivl -12(%rbp) cmpl $0, %edx jne LBB0_7 ## %bb.6: movl $0, -4(%rbp) jmp LBB0_11 LBB0_7: ## in Loop: Header=BB0_4 Depth=1 jmp LBB0_8 LBB0_8: ## in Loop: Header=BB0_4 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_4 LBB0_9: movl $1, -4(%rbp) jmp LBB0_11 LBB0_10: movl $0, -4(%rbp) LBB0_11: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $0, -8(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf cmpl $0, -8(%rbp) jg LBB1_2 ## %bb.1: leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB1_9 LBB1_2: movl $1, -12(%rbp) LBB1_3: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax cmpl -8(%rbp), %eax jg LBB1_8 ## %bb.4: ## in Loop: Header=BB1_3 Depth=1 movl -12(%rbp), %edi callq _isPrime movl %eax, -16(%rbp) cmpl $1, -16(%rbp) jne LBB1_6 ## %bb.5: ## in Loop: Header=BB1_3 Depth=1 movl -12(%rbp), %esi leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf LBB1_6: ## in Loop: Header=BB1_3 Depth=1 jmp LBB1_7 LBB1_7: ## in Loop: Header=BB1_3 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB1_3 LBB1_8: jmp LBB1_9 LBB1_9: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Enter the number: " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "Invalid number" L_.str.3: ## @.str.3 .asciz "%d " .subsections_via_symbols
the_stack_data/1074821.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .subsections_via_symbols
the_stack_data/51701263.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _lcm ; -- Begin function lcm .p2align 2 _lcm: ; @lcm .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _dp@GOTPAGE ldr x8, [x8, _dp@GOTPAGEOFF] str x8, [sp, #8] ; 8-byte Folded Spill stur x0, [x29, #-8] stur x1, [x29, #-16] ldur x0, [x29, #-8] bl _strlen mov x8, x0 stur w8, [x29, #-20] ldur x0, [x29, #-16] bl _strlen ldr x8, [sp, #8] ; 8-byte Folded Reload mov x9, x0 str w9, [sp, #24] str wzr, [x8] mov w8, #1 str w8, [sp, #20] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x9, [sp, #8] ; 8-byte Folded Reload ldrsw x8, [sp, #20] mov x10, #4004 mul x10, x8, x10 mov w8, #0 str w8, [x9, x10] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_1 LBB0_4: mov w8, #1 str w8, [sp, #20] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #20] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 ldr x9, [sp, #8] ; 8-byte Folded Reload ldrsw x10, [sp, #20] mov w8, #0 str w8, [x9, x10, lsl #2] b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_5 LBB0_8: mov w8, #1 str w8, [sp, #20] b LBB0_9 LBB0_9: ; =>This Loop Header: Depth=1 ; Child Loop BB0_11 Depth 2 ldr w8, [sp, #20] ldur w9, [x29, #-20] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_22 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 mov w8, #1 str w8, [sp, #16] b LBB0_11 LBB0_11: ; Parent Loop BB0_9 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #16] ldr w9, [sp, #24] subs w8, w8, w9 cset w8, gt tbnz w8, #0, LBB0_20 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_11 Depth=2 ldur x8, [x29, #-8] ldr w9, [sp, #20] subs w9, w9, #1 ldrsb w8, [x8, w9, sxtw] ldur x9, [x29, #-16] ldr w10, [sp, #16] subs w10, w10, #1 ldrsb w9, [x9, w10, sxtw] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_14 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_11 Depth=2 ldr x9, [sp, #8] ; 8-byte Folded Reload ldr w8, [sp, #20] subs w8, w8, #1 mov x11, #4004 mov x12, x9 mov w10, #4004 smaddl x8, w8, w10, x12 ldr w10, [sp, #16] subs w10, w10, #1 ldr w8, [x8, w10, sxtw #2] add w8, w8, #1 ldrsw x10, [sp, #20] mul x10, x10, x11 add x9, x9, x10 ldrsw x10, [sp, #16] str w8, [x9, x10, lsl #2] b LBB0_18 LBB0_14: ; in Loop: Header=BB0_11 Depth=2 ldr x11, [sp, #8] ; 8-byte Folded Reload ldrsw x8, [sp, #20] mov x9, #4004 mul x9, x8, x9 mov x8, x11 add x8, x8, x9 ldr w9, [sp, #16] subs w9, w9, #1 ldr w8, [x8, w9, sxtw #2] ldr w9, [sp, #20] subs w9, w9, #1 mov w10, #4004 smaddl x9, w9, w10, x11 ldrsw x10, [sp, #16] ldr w9, [x9, x10, lsl #2] subs w8, w8, w9 cset w8, le tbnz w8, #0, LBB0_16 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_11 Depth=2 ldr x9, [sp, #8] ; 8-byte Folded Reload ldrsw x8, [sp, #20] mov x11, #4004 mul x10, x8, x11 mov x8, x9 add x8, x8, x10 ldr w10, [sp, #16] subs w10, w10, #1 ldr w8, [x8, w10, sxtw #2] ldrsw x10, [sp, #20] mul x10, x10, x11 add x9, x9, x10 ldrsw x10, [sp, #16] str w8, [x9, x10, lsl #2] b LBB0_17 LBB0_16: ; in Loop: Header=BB0_11 Depth=2 ldr x9, [sp, #8] ; 8-byte Folded Reload ldr w8, [sp, #20] subs w8, w8, #1 mov x11, #4004 mov x12, x9 mov w10, #4004 smaddl x8, w8, w10, x12 ldrsw x10, [sp, #16] ldr w8, [x8, x10, lsl #2] ldrsw x10, [sp, #20] mul x10, x10, x11 add x9, x9, x10 ldrsw x10, [sp, #16] str w8, [x9, x10, lsl #2] b LBB0_17 LBB0_17: ; in Loop: Header=BB0_11 Depth=2 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_11 Depth=2 b LBB0_19 LBB0_19: ; in Loop: Header=BB0_11 Depth=2 ldr w8, [sp, #16] add w8, w8, #1 str w8, [sp, #16] b LBB0_11 LBB0_20: ; in Loop: Header=BB0_9 Depth=1 b LBB0_21 LBB0_21: ; in Loop: Header=BB0_9 Depth=1 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_9 LBB0_22: ldr x8, [sp, #8] ; 8-byte Folded Reload ldursw x9, [x29, #-20] mov x10, #4004 mul x9, x9, x10 add x8, x8, x9 ldrsw x9, [sp, #24] ldr w0, [x8, x9, lsl #2] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub sp, sp, #2064 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #48] str w0, [sp, #44] str x1, [sp, #32] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 mov x9, sp add x8, sp, #1055 str x8, [x9] add x8, sp, #54 str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _scanf adds w8, w0, #1 cset w8, eq tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 add x0, sp, #1055 add x1, sp, #54 bl _lcm mov x9, sp ; implicit-def: $x8 mov x8, x0 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB1_1 LBB1_3: ldr w8, [sp, #48] str w8, [sp, #28] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_5 b LBB1_4 LBB1_4: bl ___stack_chk_fail LBB1_5: ldr w0, [sp, #28] ; 4-byte Folded Reload add sp, sp, #2064 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .comm _dp,4008004,2 ; @dp .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "%s %s" l_.str.1: ; @.str.1 .asciz "%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _lcm ## -- Begin function lcm .p2align 4, 0x90 _lcm: ## @lcm .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -20(%rbp) movq -16(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -24(%rbp) movq _dp@GOTPCREL(%rip), %rax movl $0, (%rax) movl $1, -28(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax cmpl -20(%rbp), %eax jg LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movslq -28(%rbp), %rcx movq _dp@GOTPCREL(%rip), %rax imulq $4004, %rcx, %rcx ## imm = 0xFA4 addq %rcx, %rax movl $0, (%rax) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB0_1 LBB0_4: movl $1, -28(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax cmpl -24(%rbp), %eax jg LBB0_8 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 movslq -28(%rbp), %rcx movq _dp@GOTPCREL(%rip), %rax movl $0, (%rax,%rcx,4) ## %bb.7: ## in Loop: Header=BB0_5 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB0_5 LBB0_8: movl $1, -28(%rbp) LBB0_9: ## =>This Loop Header: Depth=1 ## Child Loop BB0_11 Depth 2 movl -28(%rbp), %eax cmpl -20(%rbp), %eax jg LBB0_22 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 movl $1, -32(%rbp) LBB0_11: ## Parent Loop BB0_9 Depth=1 ## => This Inner Loop Header: Depth=2 movl -32(%rbp), %eax cmpl -24(%rbp), %eax jg LBB0_20 ## %bb.12: ## in Loop: Header=BB0_11 Depth=2 movq -8(%rbp), %rax movl -28(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movsbl (%rax,%rcx), %eax movq -16(%rbp), %rcx movl -32(%rbp), %edx subl $1, %edx movslq %edx, %rdx movsbl (%rcx,%rdx), %ecx cmpl %ecx, %eax jne LBB0_14 ## %bb.13: ## in Loop: Header=BB0_11 Depth=2 movl -28(%rbp), %eax subl $1, %eax movslq %eax, %rcx movq _dp@GOTPCREL(%rip), %rax imulq $4004, %rcx, %rcx ## imm = 0xFA4 addq %rcx, %rax movl -32(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %edx addl $1, %edx movslq -28(%rbp), %rcx movq _dp@GOTPCREL(%rip), %rax imulq $4004, %rcx, %rcx ## imm = 0xFA4 addq %rcx, %rax movslq -32(%rbp), %rcx movl %edx, (%rax,%rcx,4) jmp LBB0_18 LBB0_14: ## in Loop: Header=BB0_11 Depth=2 movslq -28(%rbp), %rcx movq _dp@GOTPCREL(%rip), %rax imulq $4004, %rcx, %rcx ## imm = 0xFA4 addq %rcx, %rax movl -32(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %eax movl -28(%rbp), %ecx subl $1, %ecx movslq %ecx, %rdx movq _dp@GOTPCREL(%rip), %rcx imulq $4004, %rdx, %rdx ## imm = 0xFA4 addq %rdx, %rcx movslq -32(%rbp), %rdx cmpl (%rcx,%rdx,4), %eax jle LBB0_16 ## %bb.15: ## in Loop: Header=BB0_11 Depth=2 movslq -28(%rbp), %rcx movq _dp@GOTPCREL(%rip), %rax imulq $4004, %rcx, %rcx ## imm = 0xFA4 addq %rcx, %rax movl -32(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movl (%rax,%rcx,4), %edx movslq -28(%rbp), %rcx movq _dp@GOTPCREL(%rip), %rax imulq $4004, %rcx, %rcx ## imm = 0xFA4 addq %rcx, %rax movslq -32(%rbp), %rcx movl %edx, (%rax,%rcx,4) jmp LBB0_17 LBB0_16: ## in Loop: Header=BB0_11 Depth=2 movl -28(%rbp), %eax subl $1, %eax movslq %eax, %rcx movq _dp@GOTPCREL(%rip), %rax imulq $4004, %rcx, %rcx ## imm = 0xFA4 addq %rcx, %rax movslq -32(%rbp), %rcx movl (%rax,%rcx,4), %edx movslq -28(%rbp), %rcx movq _dp@GOTPCREL(%rip), %rax imulq $4004, %rcx, %rcx ## imm = 0xFA4 addq %rcx, %rax movslq -32(%rbp), %rcx movl %edx, (%rax,%rcx,4) LBB0_17: ## in Loop: Header=BB0_11 Depth=2 jmp LBB0_18 LBB0_18: ## in Loop: Header=BB0_11 Depth=2 jmp LBB0_19 LBB0_19: ## in Loop: Header=BB0_11 Depth=2 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB0_11 LBB0_20: ## in Loop: Header=BB0_9 Depth=1 jmp LBB0_21 LBB0_21: ## in Loop: Header=BB0_9 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB0_9 LBB0_22: movslq -20(%rbp), %rcx movq _dp@GOTPCREL(%rip), %rax imulq $4004, %rcx, %rcx ## imm = 0xFA4 addq %rcx, %rax movslq -24(%rbp), %rcx movl (%rax,%rcx,4), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $2064, %rsp ## imm = 0x810 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -2036(%rbp) movl %edi, -2040(%rbp) movq %rsi, -2048(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 leaq -1024(%rbp), %rsi leaq -2032(%rbp), %rdx leaq L_.str(%rip), %rdi movb $0, %al callq _scanf cmpl $-1, %eax je LBB1_3 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 leaq -1024(%rbp), %rdi leaq -2032(%rbp), %rsi callq _lcm movl %eax, %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf jmp LBB1_1 LBB1_3: movl -2036(%rbp), %eax movl %eax, -2052(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_5 ## %bb.4: movl -2052(%rbp), %eax ## 4-byte Reload addq $2064, %rsp ## imm = 0x810 popq %rbp retq LBB1_5: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .comm _dp,4008004,4 ## @dp .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "%s %s" L_.str.1: ## @.str.1 .asciz "%d\n" .subsections_via_symbols
the_stack_data/97012991.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _remover ; -- Begin function remover .p2align 2 _remover: ; @remover .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] stur x1, [x29, #-16] b LBB0_1 LBB0_1: ; =>This Loop Header: Depth=1 ; Child Loop BB0_3 Depth 2 ldur x0, [x29, #-8] ldur x1, [x29, #-16] bl _strstr mov x8, x0 str x8, [sp, #24] subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB0_7 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 str wzr, [sp, #20] b LBB0_3 LBB0_3: ; Parent Loop BB0_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldrsw x8, [sp, #20] str x8, [sp, #8] ; 8-byte Folded Spill ldur x0, [x29, #-16] bl _strlen ldr x8, [sp, #8] ; 8-byte Folded Reload subs x8, x8, x0 cset w8, hs tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=2 ldr x8, [sp, #24] ldrsw x9, [sp, #20] add x9, x8, x9 mov w8, #32 strb w8, [x9] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=2 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB0_3 LBB0_6: ; in Loop: Header=BB0_1 Depth=1 b LBB0_1 LBB0_7: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov x0, #100 bl _malloc stur x0, [x29, #-16] b LBB1_1 LBB1_1: ; =>This Loop Header: Depth=1 ; Child Loop BB1_5 Depth 2 ; Child Loop BB1_9 Depth 2 ldur x0, [x29, #-16] bl _gets subs x8, x0, #0 cset w8, eq mov w9, #0 str w9, [sp, #8] ; 4-byte Folded Spill tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-16] ldrsb w8, [x8] subs w8, w8, #0 cset w8, ne str w8, [sp, #8] ; 4-byte Folded Spill b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #8] ; 4-byte Folded Reload tbz w8, #0, LBB1_23 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 mov x0, #100 bl _malloc str x0, [sp, #24] ldur x0, [x29, #-16] bl _strlen mov x8, x0 str w8, [sp, #16] str wzr, [sp, #20] b LBB1_5 LBB1_5: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #20] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_8 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_5 Depth=2 ldur x8, [x29, #-16] ldrsw x9, [sp, #20] ldrsb w0, [x8, x9] bl _toupper ldur x8, [x29, #-16] ldrsw x9, [sp, #20] strb w0, [x8, x9] b LBB1_7 LBB1_7: ; in Loop: Header=BB1_5 Depth=2 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB1_5 LBB1_8: ; in Loop: Header=BB1_1 Depth=1 ldur x8, [x29, #-16] ldrb w8, [x8] ldr x9, [sp, #24] strb w8, [x9] ldur x0, [x29, #-16] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _remover ldur x0, [x29, #-16] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _remover ldur x0, [x29, #-16] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _remover ldur x0, [x29, #-16] adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _remover ldur x0, [x29, #-16] adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _remover ldur x0, [x29, #-16] adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _remover ldur x0, [x29, #-16] adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _remover ldur x0, [x29, #-16] adrp x1, l_.str.7@PAGE add x1, x1, l_.str.7@PAGEOFF bl _remover ldur x0, [x29, #-16] adrp x1, l_.str.8@PAGE add x1, x1, l_.str.8@PAGEOFF bl _remover ldur x0, [x29, #-16] adrp x1, l_.str.9@PAGE add x1, x1, l_.str.9@PAGEOFF bl _remover ldur x0, [x29, #-16] adrp x1, l_.str.10@PAGE add x1, x1, l_.str.10@PAGEOFF bl _remover ldur x0, [x29, #-16] adrp x1, l_.str.11@PAGE add x1, x1, l_.str.11@PAGEOFF bl _remover str wzr, [sp, #20] str wzr, [sp, #12] ldur x0, [x29, #-16] bl _strlen mov x8, x0 str w8, [sp, #16] b LBB1_9 LBB1_9: ; Parent Loop BB1_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #20] ldr w9, [sp, #16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_22 b LBB1_10 LBB1_10: ; in Loop: Header=BB1_9 Depth=2 ldr w8, [sp, #20] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_14 b LBB1_11 LBB1_11: ; in Loop: Header=BB1_9 Depth=2 ldur x8, [x29, #-16] ldrsb w8, [x8] subs w8, w8, #32 cset w8, eq tbnz w8, #0, LBB1_13 b LBB1_12 LBB1_12: ; in Loop: Header=BB1_9 Depth=2 ldur x8, [x29, #-16] ldrb w8, [x8] ldr x9, [sp, #24] strb w8, [x9] ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB1_13 LBB1_13: ; in Loop: Header=BB1_9 Depth=2 b LBB1_20 LBB1_14: ; in Loop: Header=BB1_9 Depth=2 ldur x8, [x29, #-16] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #32 cset w8, ne tbnz w8, #0, LBB1_16 b LBB1_15 LBB1_15: ; in Loop: Header=BB1_9 Depth=2 ldur x8, [x29, #-16] ldr w9, [sp, #20] add w9, w9, #1 ldrsb w8, [x8, w9, sxtw] subs w8, w8, #32 cset w8, ne tbnz w8, #0, LBB1_18 b LBB1_16 LBB1_16: ; in Loop: Header=BB1_9 Depth=2 ldur x8, [x29, #-16] ldrsw x9, [sp, #20] ldrsb w8, [x8, x9] subs w8, w8, #45 cset w8, ne tbnz w8, #0, LBB1_19 b LBB1_17 LBB1_17: ; in Loop: Header=BB1_9 Depth=2 ldur x8, [x29, #-16] ldr w9, [sp, #20] add w9, w9, #1 ldrsb w8, [x8, w9, sxtw] subs w8, w8, #45 cset w8, eq tbnz w8, #0, LBB1_19 b LBB1_18 LBB1_18: ; in Loop: Header=BB1_9 Depth=2 ldur x8, [x29, #-16] ldr w9, [sp, #20] add w9, w9, #1 add x8, x8, w9, sxtw ldrb w8, [x8] ldr x9, [sp, #24] ldrsw x10, [sp, #12] add x9, x9, x10 strb w8, [x9] ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB1_19 LBB1_19: ; in Loop: Header=BB1_9 Depth=2 b LBB1_20 LBB1_20: ; in Loop: Header=BB1_9 Depth=2 b LBB1_21 LBB1_21: ; in Loop: Header=BB1_9 Depth=2 ldr w8, [sp, #20] add w8, w8, #1 str w8, [sp, #20] b LBB1_9 LBB1_22: ; in Loop: Header=BB1_1 Depth=1 ldr x0, [sp, #24] bl _puts b LBB1_1 LBB1_23: mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz " A " l_.str.1: ; @.str.1 .asciz "A " l_.str.2: ; @.str.2 .asciz " AN " l_.str.3: ; @.str.3 .asciz "AN " l_.str.4: ; @.str.4 .asciz " OF " l_.str.5: ; @.str.5 .asciz "OF " l_.str.6: ; @.str.6 .asciz " THE " l_.str.7: ; @.str.7 .asciz "THE " l_.str.8: ; @.str.8 .asciz " FOR " l_.str.9: ; @.str.9 .asciz "FOR " l_.str.10: ; @.str.10 .asciz " AND " l_.str.11: ; @.str.11 .asciz "AND " .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _remover ## -- Begin function remover .p2align 4, 0x90 _remover: ## @remover .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) LBB0_1: ## =>This Loop Header: Depth=1 ## Child Loop BB0_3 Depth 2 movq -8(%rbp), %rdi movq -16(%rbp), %rsi callq _strstr movq %rax, -24(%rbp) cmpq $0, %rax je LBB0_7 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl $0, -28(%rbp) LBB0_3: ## Parent Loop BB0_1 Depth=1 ## => This Inner Loop Header: Depth=2 movslq -28(%rbp), %rax movq %rax, -40(%rbp) ## 8-byte Spill movq -16(%rbp), %rdi callq _strlen movq %rax, %rcx movq -40(%rbp), %rax ## 8-byte Reload cmpq %rcx, %rax jae LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=2 movq -24(%rbp), %rax movslq -28(%rbp), %rcx movb $32, (%rax,%rcx) ## %bb.5: ## in Loop: Header=BB0_3 Depth=2 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB0_3 LBB0_6: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_1 LBB0_7: addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) movl $100, %edi callq _malloc movq %rax, -16(%rbp) LBB1_1: ## =>This Loop Header: Depth=1 ## Child Loop BB1_5 Depth 2 ## Child Loop BB1_9 Depth 2 movq -16(%rbp), %rdi callq _gets movq %rax, %rcx xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpq $0, %rcx movb %al, -37(%rbp) ## 1-byte Spill je LBB1_3 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movsbl (%rax), %eax cmpl $0, %eax setne %al movb %al, -37(%rbp) ## 1-byte Spill LBB1_3: ## in Loop: Header=BB1_1 Depth=1 movb -37(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB1_4 jmp LBB1_23 LBB1_4: ## in Loop: Header=BB1_1 Depth=1 movl $100, %edi callq _malloc movq %rax, -24(%rbp) movq -16(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -32(%rbp) movl $0, -28(%rbp) LBB1_5: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -28(%rbp), %eax cmpl -32(%rbp), %eax jge LBB1_8 ## %bb.6: ## in Loop: Header=BB1_5 Depth=2 movq -16(%rbp), %rax movslq -28(%rbp), %rcx movsbl (%rax,%rcx), %edi callq _toupper movb %al, %dl movq -16(%rbp), %rax movslq -28(%rbp), %rcx movb %dl, (%rax,%rcx) ## %bb.7: ## in Loop: Header=BB1_5 Depth=2 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB1_5 LBB1_8: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movb (%rax), %cl movq -24(%rbp), %rax movb %cl, (%rax) movq -16(%rbp), %rdi leaq L_.str(%rip), %rsi callq _remover movq -16(%rbp), %rdi leaq L_.str.1(%rip), %rsi callq _remover movq -16(%rbp), %rdi leaq L_.str.2(%rip), %rsi callq _remover movq -16(%rbp), %rdi leaq L_.str.3(%rip), %rsi callq _remover movq -16(%rbp), %rdi leaq L_.str.4(%rip), %rsi callq _remover movq -16(%rbp), %rdi leaq L_.str.5(%rip), %rsi callq _remover movq -16(%rbp), %rdi leaq L_.str.6(%rip), %rsi callq _remover movq -16(%rbp), %rdi leaq L_.str.7(%rip), %rsi callq _remover movq -16(%rbp), %rdi leaq L_.str.8(%rip), %rsi callq _remover movq -16(%rbp), %rdi leaq L_.str.9(%rip), %rsi callq _remover movq -16(%rbp), %rdi leaq L_.str.10(%rip), %rsi callq _remover movq -16(%rbp), %rdi leaq L_.str.11(%rip), %rsi callq _remover movl $0, -28(%rbp) movl $0, -36(%rbp) movq -16(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -32(%rbp) LBB1_9: ## Parent Loop BB1_1 Depth=1 ## => This Inner Loop Header: Depth=2 movl -28(%rbp), %eax cmpl -32(%rbp), %eax jge LBB1_22 ## %bb.10: ## in Loop: Header=BB1_9 Depth=2 cmpl $0, -28(%rbp) jne LBB1_14 ## %bb.11: ## in Loop: Header=BB1_9 Depth=2 movq -16(%rbp), %rax movsbl (%rax), %eax cmpl $32, %eax je LBB1_13 ## %bb.12: ## in Loop: Header=BB1_9 Depth=2 movq -16(%rbp), %rax movb (%rax), %cl movq -24(%rbp), %rax movb %cl, (%rax) movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) LBB1_13: ## in Loop: Header=BB1_9 Depth=2 jmp LBB1_20 LBB1_14: ## in Loop: Header=BB1_9 Depth=2 movq -16(%rbp), %rax movslq -28(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $32, %eax jne LBB1_16 ## %bb.15: ## in Loop: Header=BB1_9 Depth=2 movq -16(%rbp), %rax movl -28(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movsbl (%rax,%rcx), %eax cmpl $32, %eax jne LBB1_18 LBB1_16: ## in Loop: Header=BB1_9 Depth=2 movq -16(%rbp), %rax movslq -28(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $45, %eax jne LBB1_19 ## %bb.17: ## in Loop: Header=BB1_9 Depth=2 movq -16(%rbp), %rax movl -28(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movsbl (%rax,%rcx), %eax cmpl $45, %eax je LBB1_19 LBB1_18: ## in Loop: Header=BB1_9 Depth=2 movq -16(%rbp), %rax movl -28(%rbp), %ecx addl $1, %ecx movslq %ecx, %rcx movb (%rax,%rcx), %dl movq -24(%rbp), %rax movslq -36(%rbp), %rcx movb %dl, (%rax,%rcx) movl -36(%rbp), %eax addl $1, %eax movl %eax, -36(%rbp) LBB1_19: ## in Loop: Header=BB1_9 Depth=2 jmp LBB1_20 LBB1_20: ## in Loop: Header=BB1_9 Depth=2 jmp LBB1_21 LBB1_21: ## in Loop: Header=BB1_9 Depth=2 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB1_9 LBB1_22: ## in Loop: Header=BB1_1 Depth=1 movq -24(%rbp), %rdi callq _puts jmp LBB1_1 LBB1_23: xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz " A " L_.str.1: ## @.str.1 .asciz "A " L_.str.2: ## @.str.2 .asciz " AN " L_.str.3: ## @.str.3 .asciz "AN " L_.str.4: ## @.str.4 .asciz " OF " L_.str.5: ## @.str.5 .asciz "OF " L_.str.6: ## @.str.6 .asciz " THE " L_.str.7: ## @.str.7 .asciz "THE " L_.str.8: ## @.str.8 .asciz " FOR " L_.str.9: ## @.str.9 .asciz "FOR " L_.str.10: ## @.str.10 .asciz " AND " L_.str.11: ## @.str.11 .asciz "AND " .subsections_via_symbols
the_stack_data/111487.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #16] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov w8, #26214 movk w8, #16646, lsl #16 fmov s0, w8 stur s0, [x29, #-8] mov w8, #52429 movk w8, #15948, lsl #16 fmov s0, w8 stur s0, [x29, #-12] ldur s0, [x29, #-8] ldur s1, [x29, #-12] fdiv s0, s0, s1 fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur s0, [x29, #-8] ldur s1, [x29, #-12] fdiv s0, s0, s1 fcvtzs w10, s0 mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldr w0, [sp, #16] ; 4-byte Folded Reload ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "A / B = %f\n" l_.str.1: ; @.str.1 .asciz "A // B = %d \n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function main LCPI0_0: .long 0x3e4ccccd ## float 0.200000003 LCPI0_1: .long 0x41066666 ## float 8.39999961 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movss LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -8(%rbp) movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -12(%rbp) movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero divss -12(%rbp), %xmm0 cvtss2sd %xmm0, %xmm0 leaq L_.str(%rip), %rdi movb $1, %al callq _printf movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero divss -12(%rbp), %xmm0 cvttss2si %xmm0, %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "A / B = %f\n" L_.str.1: ## @.str.1 .asciz "A // B = %d \n" .subsections_via_symbols
the_stack_data/361857.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _encrypt ; -- Begin function encrypt .p2align 2 _encrypt: ; @encrypt .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str w1, [sp, #4] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _decrypt ; -- Begin function decrypt .p2align 2 _decrypt: ; @decrypt .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str w1, [sp, #4] add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _encrypt ## -- Begin function encrypt .p2align 4, 0x90 _encrypt: ## @encrypt .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) popq %rbp retq .cfi_endproc ## -- End function .globl _decrypt ## -- Begin function decrypt .p2align 4, 0x90 _decrypt: ## @decrypt .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movl %esi, -12(%rbp) popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/48574770.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _test_union_with_first_floats ; -- Begin function test_union_with_first_floats .p2align 2 _test_union_with_first_floats: ; @test_union_with_first_floats .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _g_u_f@GOTPAGE ldr x8, [x8, _g_u_f@GOTPAGEOFF] ldr x0, [x8] ldr x1, [x8, #8] bl _takes_union_with_first_floats ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _test_return_union_with_first_floats ; -- Begin function test_return_union_with_first_floats .p2align 2 _test_return_union_with_first_floats: ; @test_return_union_with_first_floats .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 bl _returns_union_with_first_floats str x0, [sp] str x1, [sp, #8] ldr q0, [sp] adrp x8, _g_u_f@GOTPAGE ldr x8, [x8, _g_u_f@GOTPAGEOFF] str q0, [x8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _test_union_with_non_first_floats ; -- Begin function test_union_with_non_first_floats .p2align 2 _test_union_with_non_first_floats: ; @test_union_with_non_first_floats .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _g_u_nf_f@GOTPAGE ldr x8, [x8, _g_u_nf_f@GOTPAGEOFF] ldr x0, [x8] ldr x1, [x8, #8] bl _takes_union_with_non_first_floats ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _test_return_union_with_non_first_floats ; -- Begin function test_return_union_with_non_first_floats .p2align 2 _test_return_union_with_non_first_floats: ; @test_return_union_with_non_first_floats .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 bl _returns_union_with_non_first_floats str x0, [sp] str x1, [sp, #8] ldr q0, [sp] adrp x8, _g_u_nf_f@GOTPAGE ldr x8, [x8, _g_u_nf_f@GOTPAGEOFF] str q0, [x8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _test_struct_with_union_with_first_floats ; -- Begin function test_struct_with_union_with_first_floats .p2align 2 _test_struct_with_union_with_first_floats: ; @test_struct_with_union_with_first_floats .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _g_s_f@GOTPAGE ldr x8, [x8, _g_s_f@GOTPAGEOFF] ldr q0, [x8] mov x0, sp str q0, [sp] ldr w8, [x8, #16] str w8, [sp, #16] bl _takes_struct_with_union_with_first_floats ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _test_return_struct_with_union_with_first_floats ; -- Begin function test_return_struct_with_union_with_first_floats .p2align 2 _test_return_struct_with_union_with_first_floats: ; @test_return_struct_with_union_with_first_floats .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 add x8, sp, #12 bl _returns_struct_with_union_with_first_floats ldur q0, [sp, #12] adrp x9, _g_s_f@GOTPAGE ldr x9, [x9, _g_s_f@GOTPAGEOFF] str q0, [x9] ldr w8, [sp, #28] str w8, [x9, #16] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _test_struct_with_union_with_non_first_floats ; -- Begin function test_struct_with_union_with_non_first_floats .p2align 2 _test_struct_with_union_with_non_first_floats: ; @test_struct_with_union_with_non_first_floats .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _g_s_nf_f@GOTPAGE ldr x8, [x8, _g_s_nf_f@GOTPAGEOFF] ldr q0, [x8] mov x0, sp str q0, [sp] ldr w8, [x8, #16] str w8, [sp, #16] bl _takes_struct_with_union_with_non_first_floats ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _test_return_struct_with_union_with_non_first_floats ; -- Begin function test_return_struct_with_union_with_non_first_floats .p2align 2 _test_return_struct_with_union_with_non_first_floats: ; @test_return_struct_with_union_with_non_first_floats .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 add x8, sp, #12 bl _returns_struct_with_union_with_non_first_floats ldur q0, [sp, #12] adrp x9, _g_s_nf_f@GOTPAGE ldr x9, [x9, _g_s_nf_f@GOTPAGEOFF] str q0, [x9] ldr w8, [sp, #28] str w8, [x9, #16] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _test_array_of_floats ; -- Begin function test_array_of_floats .p2align 2 _test_array_of_floats: ; @test_array_of_floats .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] adrp x8, l___const.test_array_of_floats.a@PAGE add x8, x8, l___const.test_array_of_floats.a@PAGEOFF ldr q0, [x8] mov x0, sp str q0, [sp] bl _takes_array_of_floats ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB8_2 b LBB8_1 LBB8_1: bl ___stack_chk_fail LBB8_2: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _test_struct_with_fundamental_elems ; -- Begin function test_struct_with_fundamental_elems .p2align 2 _test_struct_with_fundamental_elems: ; @test_struct_with_fundamental_elems .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _g_s@GOTPAGE ldr x8, [x8, _g_s@GOTPAGEOFF] ldr s0, [x8] ldr s1, [x8, #4] ldr s2, [x8, #8] ldr s3, [x8, #12] bl _takes_struct_with_fundamental_elems ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _test_return_struct_with_fundamental_elems ; -- Begin function test_return_struct_with_fundamental_elems .p2align 2 _test_return_struct_with_fundamental_elems: ; @test_return_struct_with_fundamental_elems .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 bl _returns_struct_with_fundamental_elems str s0, [sp] str s1, [sp, #4] str s2, [sp, #8] str s3, [sp, #12] ldr q0, [sp] adrp x8, _g_s@GOTPAGE ldr x8, [x8, _g_s@GOTPAGEOFF] str q0, [x8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _test_struct_with_array ; -- Begin function test_struct_with_array .p2align 2 _test_struct_with_array: ; @test_struct_with_array .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _g_s_a@GOTPAGE ldr x8, [x8, _g_s_a@GOTPAGEOFF] ldr s0, [x8] ldr s1, [x8, #4] ldr s2, [x8, #8] ldr s3, [x8, #12] bl _takes_struct_with_array ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _test_return_struct_with_array ; -- Begin function test_return_struct_with_array .p2align 2 _test_return_struct_with_array: ; @test_return_struct_with_array .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 bl _returns_struct_with_array str s0, [sp] str s1, [sp, #4] str s2, [sp, #8] str s3, [sp, #12] ldr q0, [sp] adrp x8, _g_s_a@GOTPAGE ldr x8, [x8, _g_s_a@GOTPAGEOFF] str q0, [x8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _test_union_with_struct_with_fundamental_elems ; -- Begin function test_union_with_struct_with_fundamental_elems .p2align 2 _test_union_with_struct_with_fundamental_elems: ; @test_union_with_struct_with_fundamental_elems .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _g_u_s_fe@GOTPAGE ldr x8, [x8, _g_u_s_fe@GOTPAGEOFF] ldr s0, [x8] ldr s1, [x8, #4] ldr s2, [x8, #8] ldr s3, [x8, #12] bl _takes_union_with_struct_with_fundamental_elems ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _test_return_union_with_struct_with_fundamental_elems ; -- Begin function test_return_union_with_struct_with_fundamental_elems .p2align 2 _test_return_union_with_struct_with_fundamental_elems: ; @test_return_union_with_struct_with_fundamental_elems .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 bl _returns_union_with_struct_with_fundamental_elems str s0, [sp] str s1, [sp, #4] str s2, [sp, #8] str s3, [sp, #12] ldr q0, [sp] adrp x8, _g_u_s_fe@GOTPAGE ldr x8, [x8, _g_u_s_fe@GOTPAGEOFF] str q0, [x8] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _test_struct_of_four_doubles ; -- Begin function test_struct_of_four_doubles .p2align 2 _test_struct_of_four_doubles: ; @test_struct_of_four_doubles .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _g_s4d@GOTPAGE ldr x8, [x8, _g_s4d@GOTPAGEOFF] ldr d1, [x8] ldr d2, [x8, #8] ldr d3, [x8, #16] ldr d4, [x8, #24] ldr x12, [x8] ldr x11, [x8, #8] ldr x10, [x8, #16] ldr x9, [x8, #24] mov x8, sp str x12, [x8] str x11, [x8, #8] str x10, [x8, #16] str x9, [x8, #24] fmov d0, #4.00000000 str d0, [x8, #32] fmov d0, #3.00000000 bl _takes_struct_of_four_doubles ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _test_struct_of_four_doubles_variadic ; -- Begin function test_struct_of_four_doubles_variadic .p2align 2 _test_struct_of_four_doubles_variadic: ; @test_struct_of_four_doubles_variadic .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _g_s4d@GOTPAGE ldr x8, [x8, _g_s4d@GOTPAGEOFF] ldr d1, [x8] ldr d2, [x8, #8] ldr d3, [x8, #16] ldr d4, [x8, #24] ldr x12, [x8] ldr x11, [x8, #8] ldr x10, [x8, #16] ldr x9, [x8, #24] mov x8, sp str x12, [x8] str x11, [x8, #8] str x10, [x8, #16] str x9, [x8, #24] fmov d0, #4.00000000 str d0, [x8, #32] fmov d0, #3.00000000 bl _takes_struct_of_four_doubles_variadic ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function test_struct_with_backfill lCPI17_0: .quad 0x4008cccccccccccd ; double 3.1000000000000001 .section __TEXT,__text,regular,pure_instructions .globl _test_struct_with_backfill .p2align 2 _test_struct_with_backfill: ; @test_struct_with_backfill .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _g_s4d@GOTPAGE ldr x8, [x8, _g_s4d@GOTPAGEOFF] ldr d3, [x8] ldr d4, [x8, #8] ldr d5, [x8, #16] ldr d6, [x8, #24] ldr x12, [x8] ldr x11, [x8, #8] ldr x10, [x8, #16] ldr x9, [x8, #24] mov x8, sp str x12, [x8] str x11, [x8, #8] str x10, [x8, #16] str x9, [x8, #24] fmov d0, #4.00000000 str d0, [x8, #32] fmov s0, #3.00000000 adrp x8, lCPI17_0@PAGE ldr d1, [x8, lCPI17_0@PAGEOFF] mov w8, #52429 movk w8, #16460, lsl #16 fmov s2, w8 bl _takes_struct_with_backfill ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _test_struct_of_vecs ; -- Begin function test_struct_of_vecs .p2align 2 _test_struct_of_vecs: ; @test_struct_of_vecs .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _g_vec@GOTPAGE ldr x8, [x8, _g_vec@GOTPAGEOFF] ldr d1, [x8] ldr d2, [x8, #8] ldr d3, [x8, #16] ldr d4, [x8, #24] ldr d7, [x8] ldr d6, [x8, #8] ldr d5, [x8, #16] ldr d0, [x8, #24] mov x8, sp str d7, [x8] str d6, [x8, #8] str d5, [x8, #16] str d0, [x8, #24] fmov d0, #4.00000000 str d0, [x8, #32] fmov d0, #3.00000000 bl _takes_struct_of_vecs ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _test_struct_of_double_and_long_double ; -- Begin function test_struct_of_double_and_long_double .p2align 2 _test_struct_of_double_and_long_double: ; @test_struct_of_double_and_long_double .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 adrp x8, _g_dld@GOTPAGE ldr x8, [x8, _g_dld@GOTPAGEOFF] ldr q0, [x8] str q0, [sp] ldr d0, [sp] ldr d1, [sp, #8] add sp, sp, #16 ret .cfi_endproc ; -- End function .comm _g_u_f,16,2 ; @g_u_f .comm _g_u_nf_f,16,2 ; @g_u_nf_f .comm _g_s_f,20,2 ; @g_s_f .comm _g_s_nf_f,20,2 ; @g_s_nf_f .section __TEXT,__literal16,16byte_literals .p2align 2 ; @__const.test_array_of_floats.a l___const.test_array_of_floats.a: .long 0x3f800000 ; float 1 .long 0x40000000 ; float 2 .long 0x40400000 ; float 3 .long 0x40800000 ; float 4 .comm _g_s,16,2 ; @g_s .comm _g_s_a,16,2 ; @g_s_a .comm _g_u_s_fe,16,2 ; @g_u_s_fe .comm _g_s4d,32,3 ; @g_s4d .comm _g_vec,32,3 ; @g_vec .comm _g_dld,16,3 ; @g_dld .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _test_union_with_first_floats ## -- Begin function test_union_with_first_floats .p2align 4, 0x90 _test_union_with_first_floats: ## @test_union_with_first_floats .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _g_u_f@GOTPCREL(%rip), %rax movq (%rax), %rdi movq _g_u_f@GOTPCREL(%rip), %rax movq 8(%rax), %rsi callq _takes_union_with_first_floats popq %rbp retq .cfi_endproc ## -- End function .globl _test_return_union_with_first_floats ## -- Begin function test_return_union_with_first_floats .p2align 4, 0x90 _test_return_union_with_first_floats: ## @test_return_union_with_first_floats .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp callq _returns_union_with_first_floats movq %rax, -16(%rbp) movq %rdx, -8(%rbp) movq _g_u_f@GOTPCREL(%rip), %rax movq -16(%rbp), %rcx movq %rcx, (%rax) movq -8(%rbp), %rcx movq %rcx, 8(%rax) addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _test_union_with_non_first_floats ## -- Begin function test_union_with_non_first_floats .p2align 4, 0x90 _test_union_with_non_first_floats: ## @test_union_with_non_first_floats .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _g_u_nf_f@GOTPCREL(%rip), %rax movq (%rax), %rdi movq _g_u_nf_f@GOTPCREL(%rip), %rax movq 8(%rax), %rsi callq _takes_union_with_non_first_floats popq %rbp retq .cfi_endproc ## -- End function .globl _test_return_union_with_non_first_floats ## -- Begin function test_return_union_with_non_first_floats .p2align 4, 0x90 _test_return_union_with_non_first_floats: ## @test_return_union_with_non_first_floats .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp callq _returns_union_with_non_first_floats movq %rax, -16(%rbp) movq %rdx, -8(%rbp) movq _g_u_nf_f@GOTPCREL(%rip), %rax movq -16(%rbp), %rcx movq %rcx, (%rax) movq -8(%rbp), %rcx movq %rcx, 8(%rax) addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _test_struct_with_union_with_first_floats ## -- Begin function test_struct_with_union_with_first_floats .p2align 4, 0x90 _test_struct_with_union_with_first_floats: ## @test_struct_with_union_with_first_floats .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq _g_s_f@GOTPCREL(%rip), %rax movq (%rax), %rcx movq %rcx, -24(%rbp) movq 8(%rax), %rcx movq %rcx, -16(%rbp) movl 16(%rax), %eax movl %eax, -8(%rbp) leaq -24(%rbp), %rax movq (%rax), %rcx movq %rcx, (%rsp) movq 8(%rax), %rcx movq %rcx, 8(%rsp) movl 16(%rax), %eax movl %eax, 16(%rsp) callq _takes_struct_with_union_with_first_floats addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _test_return_struct_with_union_with_first_floats ## -- Begin function test_return_struct_with_union_with_first_floats .p2align 4, 0x90 _test_return_struct_with_union_with_first_floats: ## @test_return_struct_with_union_with_first_floats .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp leaq -24(%rbp), %rdi callq _returns_struct_with_union_with_first_floats movq _g_s_f@GOTPCREL(%rip), %rax movq -24(%rbp), %rcx movq %rcx, (%rax) movq -16(%rbp), %rcx movq %rcx, 8(%rax) movl -8(%rbp), %ecx movl %ecx, 16(%rax) addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _test_struct_with_union_with_non_first_floats ## -- Begin function test_struct_with_union_with_non_first_floats .p2align 4, 0x90 _test_struct_with_union_with_non_first_floats: ## @test_struct_with_union_with_non_first_floats .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq _g_s_nf_f@GOTPCREL(%rip), %rax movq (%rax), %rcx movq %rcx, -24(%rbp) movq 8(%rax), %rcx movq %rcx, -16(%rbp) movl 16(%rax), %eax movl %eax, -8(%rbp) leaq -24(%rbp), %rax movq (%rax), %rcx movq %rcx, (%rsp) movq 8(%rax), %rcx movq %rcx, 8(%rsp) movl 16(%rax), %eax movl %eax, 16(%rsp) callq _takes_struct_with_union_with_non_first_floats addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _test_return_struct_with_union_with_non_first_floats ## -- Begin function test_return_struct_with_union_with_non_first_floats .p2align 4, 0x90 _test_return_struct_with_union_with_non_first_floats: ## @test_return_struct_with_union_with_non_first_floats .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp leaq -24(%rbp), %rdi callq _returns_struct_with_union_with_non_first_floats movq _g_s_nf_f@GOTPCREL(%rip), %rax movq -24(%rbp), %rcx movq %rcx, (%rax) movq -16(%rbp), %rcx movq %rcx, 8(%rax) movl -8(%rbp), %ecx movl %ecx, 16(%rax) addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _test_array_of_floats ## -- Begin function test_array_of_floats .p2align 4, 0x90 _test_array_of_floats: ## @test_array_of_floats .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq L___const.test_array_of_floats.a(%rip), %rax movq %rax, -32(%rbp) movq L___const.test_array_of_floats.a+8(%rip), %rax movq %rax, -24(%rbp) leaq -32(%rbp), %rdi callq _takes_array_of_floats movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB8_2 ## %bb.1: addq $32, %rsp popq %rbp retq LBB8_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _test_struct_with_fundamental_elems ## -- Begin function test_struct_with_fundamental_elems .p2align 4, 0x90 _test_struct_with_fundamental_elems: ## @test_struct_with_fundamental_elems .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _g_s@GOTPCREL(%rip), %rax movsd (%rax), %xmm0 ## xmm0 = mem[0],zero movsd 8(%rax), %xmm1 ## xmm1 = mem[0],zero callq _takes_struct_with_fundamental_elems popq %rbp retq .cfi_endproc ## -- End function .globl _test_return_struct_with_fundamental_elems ## -- Begin function test_return_struct_with_fundamental_elems .p2align 4, 0x90 _test_return_struct_with_fundamental_elems: ## @test_return_struct_with_fundamental_elems .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp callq _returns_struct_with_fundamental_elems movlpd %xmm0, -16(%rbp) movlpd %xmm1, -8(%rbp) movq _g_s@GOTPCREL(%rip), %rax movq -16(%rbp), %rcx movq %rcx, (%rax) movq -8(%rbp), %rcx movq %rcx, 8(%rax) addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _test_struct_with_array ## -- Begin function test_struct_with_array .p2align 4, 0x90 _test_struct_with_array: ## @test_struct_with_array .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _g_s_a@GOTPCREL(%rip), %rax movsd (%rax), %xmm0 ## xmm0 = mem[0],zero movsd 8(%rax), %xmm1 ## xmm1 = mem[0],zero callq _takes_struct_with_array popq %rbp retq .cfi_endproc ## -- End function .globl _test_return_struct_with_array ## -- Begin function test_return_struct_with_array .p2align 4, 0x90 _test_return_struct_with_array: ## @test_return_struct_with_array .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp callq _returns_struct_with_array movlpd %xmm0, -16(%rbp) movlpd %xmm1, -8(%rbp) movq _g_s_a@GOTPCREL(%rip), %rax movq -16(%rbp), %rcx movq %rcx, (%rax) movq -8(%rbp), %rcx movq %rcx, 8(%rax) addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _test_union_with_struct_with_fundamental_elems ## -- Begin function test_union_with_struct_with_fundamental_elems .p2align 4, 0x90 _test_union_with_struct_with_fundamental_elems: ## @test_union_with_struct_with_fundamental_elems .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _g_u_s_fe@GOTPCREL(%rip), %rax movsd (%rax), %xmm0 ## xmm0 = mem[0],zero movsd 8(%rax), %xmm1 ## xmm1 = mem[0],zero callq _takes_union_with_struct_with_fundamental_elems popq %rbp retq .cfi_endproc ## -- End function .globl _test_return_union_with_struct_with_fundamental_elems ## -- Begin function test_return_union_with_struct_with_fundamental_elems .p2align 4, 0x90 _test_return_union_with_struct_with_fundamental_elems: ## @test_return_union_with_struct_with_fundamental_elems .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp callq _returns_union_with_struct_with_fundamental_elems movlpd %xmm0, -16(%rbp) movlpd %xmm1, -8(%rbp) movq _g_u_s_fe@GOTPCREL(%rip), %rax movq -16(%rbp), %rcx movq %rcx, (%rax) movq -8(%rbp), %rcx movq %rcx, 8(%rax) addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function test_struct_of_four_doubles LCPI15_0: .quad 0x4008000000000000 ## double 3 LCPI15_1: .quad 0x4010000000000000 ## double 4 .section __TEXT,__text,regular,pure_instructions .globl _test_struct_of_four_doubles .p2align 4, 0x90 _test_struct_of_four_doubles: ## @test_struct_of_four_doubles .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movsd LCPI15_0(%rip), %xmm0 ## xmm0 = mem[0],zero movq _g_s4d@GOTPCREL(%rip), %rax movsd LCPI15_1(%rip), %xmm1 ## xmm1 = mem[0],zero movq (%rax), %rcx movq %rcx, (%rsp) movq 8(%rax), %rcx movq %rcx, 8(%rsp) movq 16(%rax), %rcx movq %rcx, 16(%rsp) movq 24(%rax), %rcx movq %rcx, 24(%rsp) movq (%rax), %rcx movq %rcx, 32(%rsp) movq 8(%rax), %rcx movq %rcx, 40(%rsp) movq 16(%rax), %rcx movq %rcx, 48(%rsp) movq 24(%rax), %rax movq %rax, 56(%rsp) callq _takes_struct_of_four_doubles addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function test_struct_of_four_doubles_variadic LCPI16_0: .quad 0x4008000000000000 ## double 3 LCPI16_1: .quad 0x4010000000000000 ## double 4 .section __TEXT,__text,regular,pure_instructions .globl _test_struct_of_four_doubles_variadic .p2align 4, 0x90 _test_struct_of_four_doubles_variadic: ## @test_struct_of_four_doubles_variadic .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movsd LCPI16_0(%rip), %xmm0 ## xmm0 = mem[0],zero movq _g_s4d@GOTPCREL(%rip), %rax movsd LCPI16_1(%rip), %xmm1 ## xmm1 = mem[0],zero movq (%rax), %rcx movq %rcx, (%rsp) movq 8(%rax), %rcx movq %rcx, 8(%rsp) movq 16(%rax), %rcx movq %rcx, 16(%rsp) movq 24(%rax), %rcx movq %rcx, 24(%rsp) movq (%rax), %rcx movq %rcx, 32(%rsp) movq 8(%rax), %rcx movq %rcx, 40(%rsp) movq 16(%rax), %rcx movq %rcx, 48(%rsp) movq 24(%rax), %rax movq %rax, 56(%rsp) movb $2, %al callq _takes_struct_of_four_doubles_variadic addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function test_struct_with_backfill LCPI17_0: .long 0x40400000 ## float 3 LCPI17_2: .long 0x404ccccd ## float 3.20000005 .section __TEXT,__literal8,8byte_literals .p2align 3 LCPI17_1: .quad 0x4008cccccccccccd ## double 3.1000000000000001 LCPI17_3: .quad 0x4010000000000000 ## double 4 .section __TEXT,__text,regular,pure_instructions .globl _test_struct_with_backfill .p2align 4, 0x90 _test_struct_with_backfill: ## @test_struct_with_backfill .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movss LCPI17_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movsd LCPI17_1(%rip), %xmm1 ## xmm1 = mem[0],zero movss LCPI17_2(%rip), %xmm2 ## xmm2 = mem[0],zero,zero,zero movq _g_s4d@GOTPCREL(%rip), %rax movsd LCPI17_3(%rip), %xmm3 ## xmm3 = mem[0],zero movq (%rax), %rcx movq %rcx, (%rsp) movq 8(%rax), %rcx movq %rcx, 8(%rsp) movq 16(%rax), %rcx movq %rcx, 16(%rsp) movq 24(%rax), %rcx movq %rcx, 24(%rsp) movq (%rax), %rcx movq %rcx, 32(%rsp) movq 8(%rax), %rcx movq %rcx, 40(%rsp) movq 16(%rax), %rcx movq %rcx, 48(%rsp) movq 24(%rax), %rax movq %rax, 56(%rsp) callq _takes_struct_with_backfill addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function test_struct_of_vecs LCPI18_0: .quad 0x4008000000000000 ## double 3 LCPI18_1: .quad 0x4010000000000000 ## double 4 .section __TEXT,__text,regular,pure_instructions .globl _test_struct_of_vecs .p2align 4, 0x90 _test_struct_of_vecs: ## @test_struct_of_vecs .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp movsd LCPI18_0(%rip), %xmm0 ## xmm0 = mem[0],zero movq _g_vec@GOTPCREL(%rip), %rax movsd LCPI18_1(%rip), %xmm1 ## xmm1 = mem[0],zero movq (%rax), %rcx movq %rcx, (%rsp) movq 8(%rax), %rcx movq %rcx, 8(%rsp) movq 16(%rax), %rcx movq %rcx, 16(%rsp) movq 24(%rax), %rcx movq %rcx, 24(%rsp) movq (%rax), %rcx movq %rcx, 32(%rsp) movq 8(%rax), %rcx movq %rcx, 40(%rsp) movq 16(%rax), %rcx movq %rcx, 48(%rsp) movq 24(%rax), %rax movq %rax, 56(%rsp) callq _takes_struct_of_vecs addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _test_struct_of_double_and_long_double ## -- Begin function test_struct_of_double_and_long_double .p2align 4, 0x90 _test_struct_of_double_and_long_double: ## @test_struct_of_double_and_long_double .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, %rax movq _g_dld@GOTPCREL(%rip), %rcx movq (%rcx), %rdx movq %rdx, (%rdi) movq 8(%rcx), %rdx movq %rdx, 8(%rdi) movq 16(%rcx), %rdx movq %rdx, 16(%rdi) movq 24(%rcx), %rcx movq %rcx, 24(%rdi) popq %rbp retq .cfi_endproc ## -- End function .comm _g_u_f,16,2 ## @g_u_f .comm _g_u_nf_f,16,2 ## @g_u_nf_f .comm _g_s_f,20,2 ## @g_s_f .comm _g_s_nf_f,20,2 ## @g_s_nf_f .section __TEXT,__literal16,16byte_literals .p2align 4 ## @__const.test_array_of_floats.a L___const.test_array_of_floats.a: .long 0x3f800000 ## float 1 .long 0x40000000 ## float 2 .long 0x40400000 ## float 3 .long 0x40800000 ## float 4 .comm _g_s,16,2 ## @g_s .comm _g_s_a,16,2 ## @g_s_a .comm _g_u_s_fe,16,2 ## @g_u_s_fe .comm _g_s4d,32,3 ## @g_s4d .comm _g_vec,32,3 ## @g_vec .comm _g_dld,32,4 ## @g_dld .subsections_via_symbols
the_stack_data/12637471.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _ax_block_alloc ; -- Begin function ax_block_alloc .p2align 2 _ax_block_alloc: ; @ax_block_alloc .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ; kill: def $x8 killed $xzr str xzr, [sp] ldr x0, [sp] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _ax_block_free ; -- Begin function ax_block_free .p2align 2 _ax_block_free: ; @ax_block_free .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] str x1, [sp] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: mov w0, #0 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _ax_block_alloc ## -- Begin function ax_block_alloc .p2align 4, 0x90 _ax_block_alloc: ## @ax_block_alloc .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq $0, -16(%rbp) movq -16(%rbp), %rax popq %rbp retq .cfi_endproc ## -- End function .globl _ax_block_free ## -- Begin function ax_block_free .p2align 4, 0x90 _ax_block_free: ## @ax_block_free .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/12172.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ; -- Begin function foo .p2align 2 _foo: ; @foo .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str wzr, [sp, #12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #64 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_1 LBB0_4: str wzr, [sp, #12] b LBB0_5 LBB0_5: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #64 cset w8, ge tbnz w8, #0, LBB0_8 b LBB0_6 LBB0_6: ; in Loop: Header=BB0_5 Depth=1 b LBB0_7 LBB0_7: ; in Loop: Header=BB0_5 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_5 LBB0_8: str wzr, [sp, #12] b LBB0_9 LBB0_9: ; =>This Loop Header: Depth=1 ; Child Loop BB0_11 Depth 2 ldr w8, [sp, #12] subs w8, w8, #64 cset w8, ge tbnz w8, #0, LBB0_16 b LBB0_10 LBB0_10: ; in Loop: Header=BB0_9 Depth=1 str wzr, [sp, #8] b LBB0_11 LBB0_11: ; Parent Loop BB0_9 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #8] subs w8, w8, #64 cset w8, ge tbnz w8, #0, LBB0_14 b LBB0_12 LBB0_12: ; in Loop: Header=BB0_11 Depth=2 b LBB0_13 LBB0_13: ; in Loop: Header=BB0_11 Depth=2 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_11 LBB0_14: ; in Loop: Header=BB0_9 Depth=1 b LBB0_15 LBB0_15: ; in Loop: Header=BB0_9 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_9 LBB0_16: str wzr, [sp, #12] b LBB0_17 LBB0_17: ; =>This Loop Header: Depth=1 ; Child Loop BB0_19 Depth 2 ; Child Loop BB0_21 Depth 3 ldr w8, [sp, #12] subs w8, w8, #64 cset w8, ge tbnz w8, #0, LBB0_28 b LBB0_18 LBB0_18: ; in Loop: Header=BB0_17 Depth=1 str wzr, [sp, #8] b LBB0_19 LBB0_19: ; Parent Loop BB0_17 Depth=1 ; => This Loop Header: Depth=2 ; Child Loop BB0_21 Depth 3 ldr w8, [sp, #8] subs w8, w8, #64 cset w8, ge tbnz w8, #0, LBB0_26 b LBB0_20 LBB0_20: ; in Loop: Header=BB0_19 Depth=2 str wzr, [sp, #4] b LBB0_21 LBB0_21: ; Parent Loop BB0_17 Depth=1 ; Parent Loop BB0_19 Depth=2 ; => This Inner Loop Header: Depth=3 ldr w8, [sp, #4] subs w8, w8, #64 cset w8, ge tbnz w8, #0, LBB0_24 b LBB0_22 LBB0_22: ; in Loop: Header=BB0_21 Depth=3 b LBB0_23 LBB0_23: ; in Loop: Header=BB0_21 Depth=3 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] b LBB0_21 LBB0_24: ; in Loop: Header=BB0_19 Depth=2 b LBB0_25 LBB0_25: ; in Loop: Header=BB0_19 Depth=2 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_19 LBB0_26: ; in Loop: Header=BB0_17 Depth=1 b LBB0_27 LBB0_27: ; in Loop: Header=BB0_17 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_17 LBB0_28: str wzr, [sp, #12] b LBB0_29 LBB0_29: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #64 cset w8, ge tbnz w8, #0, LBB0_32 b LBB0_30 LBB0_30: ; in Loop: Header=BB0_29 Depth=1 b LBB0_31 LBB0_31: ; in Loop: Header=BB0_29 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_29 LBB0_32: str wzr, [sp, #12] b LBB0_33 LBB0_33: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #64 cset w8, ge tbnz w8, #0, LBB0_36 b LBB0_34 LBB0_34: ; in Loop: Header=BB0_33 Depth=1 b LBB0_35 LBB0_35: ; in Loop: Header=BB0_33 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_33 LBB0_36: add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _foo ## -- Begin function foo .p2align 4, 0x90 _foo: ## @foo .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $0, -4(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $64, -4(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_3 LBB0_3: ## in Loop: Header=BB0_1 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB0_1 LBB0_4: movl $0, -4(%rbp) LBB0_5: ## =>This Inner Loop Header: Depth=1 cmpl $64, -4(%rbp) jge LBB0_8 ## %bb.6: ## in Loop: Header=BB0_5 Depth=1 jmp LBB0_7 LBB0_7: ## in Loop: Header=BB0_5 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB0_5 LBB0_8: movl $0, -4(%rbp) LBB0_9: ## =>This Loop Header: Depth=1 ## Child Loop BB0_11 Depth 2 cmpl $64, -4(%rbp) jge LBB0_16 ## %bb.10: ## in Loop: Header=BB0_9 Depth=1 movl $0, -8(%rbp) LBB0_11: ## Parent Loop BB0_9 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $64, -8(%rbp) jge LBB0_14 ## %bb.12: ## in Loop: Header=BB0_11 Depth=2 jmp LBB0_13 LBB0_13: ## in Loop: Header=BB0_11 Depth=2 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_11 LBB0_14: ## in Loop: Header=BB0_9 Depth=1 jmp LBB0_15 LBB0_15: ## in Loop: Header=BB0_9 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB0_9 LBB0_16: movl $0, -4(%rbp) LBB0_17: ## =>This Loop Header: Depth=1 ## Child Loop BB0_19 Depth 2 ## Child Loop BB0_21 Depth 3 cmpl $64, -4(%rbp) jge LBB0_28 ## %bb.18: ## in Loop: Header=BB0_17 Depth=1 movl $0, -8(%rbp) LBB0_19: ## Parent Loop BB0_17 Depth=1 ## => This Loop Header: Depth=2 ## Child Loop BB0_21 Depth 3 cmpl $64, -8(%rbp) jge LBB0_26 ## %bb.20: ## in Loop: Header=BB0_19 Depth=2 movl $0, -12(%rbp) LBB0_21: ## Parent Loop BB0_17 Depth=1 ## Parent Loop BB0_19 Depth=2 ## => This Inner Loop Header: Depth=3 cmpl $64, -12(%rbp) jge LBB0_24 ## %bb.22: ## in Loop: Header=BB0_21 Depth=3 jmp LBB0_23 LBB0_23: ## in Loop: Header=BB0_21 Depth=3 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_21 LBB0_24: ## in Loop: Header=BB0_19 Depth=2 jmp LBB0_25 LBB0_25: ## in Loop: Header=BB0_19 Depth=2 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_19 LBB0_26: ## in Loop: Header=BB0_17 Depth=1 jmp LBB0_27 LBB0_27: ## in Loop: Header=BB0_17 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB0_17 LBB0_28: movl $0, -4(%rbp) LBB0_29: ## =>This Inner Loop Header: Depth=1 cmpl $64, -4(%rbp) jge LBB0_32 ## %bb.30: ## in Loop: Header=BB0_29 Depth=1 jmp LBB0_31 LBB0_31: ## in Loop: Header=BB0_29 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB0_29 LBB0_32: movl $0, -4(%rbp) LBB0_33: ## =>This Inner Loop Header: Depth=1 cmpl $64, -4(%rbp) jge LBB0_36 ## %bb.34: ## in Loop: Header=BB0_33 Depth=1 jmp LBB0_35 LBB0_35: ## in Loop: Header=BB0_33 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB0_33 LBB0_36: popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/119022.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 str w8, [sp, #16] ; 4-byte Folded Spill stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] sub x8, x29, #12 str x8, [x9, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldur w8, [x29, #-8] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldr w0, [sp, #16] ; 4-byte Folded Reload ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Introduce dos enteros: " l_.str.1: ; @.str.1 .asciz "%d %d" l_.str.2: ; @.str.2 .asciz "valores leidos: %d y %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi leaq -12(%rbp), %rdx movb $0, %al callq _scanf movl -8(%rbp), %esi movl -12(%rbp), %edx leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Introduce dos enteros: " L_.str.1: ## @.str.1 .asciz "%d %d" L_.str.2: ## @.str.2 .asciz "valores leidos: %d y %d\n" .subsections_via_symbols
the_stack_data/218892544.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov x0, #0 bl _time ; kill: def $w0 killed $w0 killed $x0 bl _srand adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov x9, sp sub x8, x29, #8 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf ldursw x0, [x29, #-8] mov x1, #4 bl _calloc str x0, [sp, #24] ldr x8, [sp, #24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf mov w0, #1 bl _exit LBB0_2: stur wzr, [x29, #-12] b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_6 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 bl _rand mov w9, #1000 sdiv w8, w0, w9 mul w8, w8, w9 subs w8, w0, w8 ldr x9, [sp, #24] ldursw x10, [x29, #-12] str w8, [x9, x10, lsl #2] b LBB0_5 LBB0_5: ; in Loop: Header=BB0_3 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_3 LBB0_6: stur wzr, [x29, #-12] b LBB0_7 LBB0_7: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] ldur w9, [x29, #-8] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_10 b LBB0_8 LBB0_8: ; in Loop: Header=BB0_7 Depth=1 ldur w8, [x29, #-12] ; implicit-def: $x10 mov x10, x8 ldr x8, [sp, #24] ldursw x9, [x29, #-12] ldr w9, [x8, x9, lsl #2] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_9 LBB0_9: ; in Loop: Header=BB0_7 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB0_7 LBB0_10: ldr x0, [sp, #24] bl _free mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Digite o tamanho do vetor a ser alocado: " l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "Erro na aloca\303\247\303\243o.\n" l_.str.3: ; @.str.3 .asciz "v[%d] = %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) xorl %eax, %eax movl %eax, %edi callq _time movl %eax, %edi callq _srand leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi leaq -8(%rbp), %rsi movb $0, %al callq _scanf movslq -8(%rbp), %rdi movl $4, %esi callq _calloc movq %rax, -24(%rbp) cmpq $0, -24(%rbp) jne LBB0_2 ## %bb.1: leaq L_.str.2(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB0_2: movl $0, -12(%rbp) LBB0_3: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax cmpl -8(%rbp), %eax jge LBB0_6 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 callq _rand movl $1000, %ecx ## imm = 0x3E8 cltd idivl %ecx movq -24(%rbp), %rax movslq -12(%rbp), %rcx movl %edx, (%rax,%rcx,4) ## %bb.5: ## in Loop: Header=BB0_3 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_3 LBB0_6: movl $0, -12(%rbp) LBB0_7: ## =>This Inner Loop Header: Depth=1 movl -12(%rbp), %eax cmpl -8(%rbp), %eax jge LBB0_10 ## %bb.8: ## in Loop: Header=BB0_7 Depth=1 movl -12(%rbp), %esi movq -24(%rbp), %rax movslq -12(%rbp), %rcx movl (%rax,%rcx,4), %edx leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf ## %bb.9: ## in Loop: Header=BB0_7 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB0_7 LBB0_10: movq -24(%rbp), %rdi callq _free xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Digite o tamanho do vetor a ser alocado: " L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "Erro na aloca\303\247\303\243o.\n" L_.str.3: ## @.str.3 .asciz "v[%d] = %d\n" .subsections_via_symbols
the_stack_data/835171.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _opaque_routine ; -- Begin function opaque_routine .p2align 2 _opaque_routine: ; @opaque_routine .cfi_startproc ; %bb.0: ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _opaque_routine ## -- Begin function opaque_routine .p2align 4, 0x90 _opaque_routine: ## @opaque_routine .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/154831005.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 2 ; -- Begin function init _init: ; @init .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _getenv stur x0, [x29, #-8] ldur x8, [x29, #-8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_2 b LBB0_1 LBB0_1: b LBB0_9 LBB0_2: adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _unsetenv ldur x0, [x29, #-8] bl _strlen add x0, x0, #1 bl _malloc stur x0, [x29, #-16] ldur x0, [x29, #-16] ldur x1, [x29, #-8] mov x2, #-1 bl ___strcpy_chk ldur x8, [x29, #-16] str x8, [sp, #24] b LBB0_3 LBB0_3: ; =>This Inner Loop Header: Depth=1 ldr x0, [sp, #24] mov w1, #61 bl _strchr mov x8, x0 str x8, [sp, #16] subs x8, x0, #0 cset w8, eq tbnz w8, #0, LBB0_9 b LBB0_4 LBB0_4: ; in Loop: Header=BB0_3 Depth=1 ldr x8, [sp, #16] strb wzr, [x8] ldr x9, [sp, #24] adrp x8, _nrRedirects@PAGE ldrsw x11, [x8, _nrRedirects@PAGEOFF] adrp x10, _from@PAGE add x10, x10, _from@PAGEOFF str x9, [x10, x11, lsl #3] ldr x9, [sp, #16] add x9, x9, #1 str x9, [sp, #24] ldr x9, [sp, #24] ldrsw x11, [x8, _nrRedirects@PAGEOFF] adrp x10, _to@PAGE add x10, x10, _to@PAGEOFF str x9, [x10, x11, lsl #3] ldr w9, [x8, _nrRedirects@PAGEOFF] add w9, w9, #1 str w9, [x8, _nrRedirects@PAGEOFF] ldr w8, [x8, _nrRedirects@PAGEOFF] subs w8, w8, #128 cset w8, ne tbnz w8, #0, LBB0_6 b LBB0_5 LBB0_5: b LBB0_9 LBB0_6: ; in Loop: Header=BB0_3 Depth=1 ldr x0, [sp, #24] mov w1, #58 bl _strchr str x0, [sp, #8] ldr x8, [sp, #8] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB0_8 b LBB0_7 LBB0_7: b LBB0_9 LBB0_8: ; in Loop: Header=BB0_3 Depth=1 ldr x8, [sp, #8] strb wzr, [x8] ldr x8, [sp, #8] add x8, x8, #1 str x8, [sp, #24] b LBB0_3 LBB0_9: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _open ; -- Begin function _open .p2align 2 _open: ; @"\01_open" .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub sp, sp, #1088 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str x0, [sp, #48] str w1, [sp, #44] mov x0, #-1 adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _dlsym str x0, [sp, #32] strh wzr, [sp, #30] ldr w8, [sp, #44] ands w8, w8, #0x200 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: add x9, sp, #16 add x8, x29, #16 str x8, [x9] ldr x9, [sp, #16] ldrh w8, [x9] add x9, x9, #8 str x9, [sp, #16] strh w8, [sp, #14] ldrh w8, [sp, #14] strh w8, [sp, #30] b LBB1_2 LBB1_2: ldr x8, [sp, #32] str x8, [sp] ; 8-byte Folded Spill ldr x0, [sp, #48] add x1, sp, #56 bl _rewrite ldr x8, [sp] ; 8-byte Folded Reload ldr w1, [sp, #44] ldrh w2, [sp, #30] blr x8 str w0, [sp, #8] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: bl ___stack_chk_fail LBB1_4: ldr w0, [sp, #8] ; 4-byte Folded Reload add sp, sp, #1088 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .p2align 2 ; -- Begin function rewrite _rewrite: ; @rewrite .cfi_startproc ; %bb.0: sub sp, sp, #80 .cfi_def_cfa_offset 80 stp x29, x30, [sp, #64] ; 16-byte Folded Spill add x29, sp, #64 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-16] stur x1, [x29, #-24] ldur x8, [x29, #-16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: ldur x8, [x29, #-16] stur x8, [x29, #-8] b LBB2_11 LBB2_2: stur wzr, [x29, #-28] b LBB2_3 LBB2_3: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-28] adrp x9, _nrRedirects@PAGE ldr w9, [x9, _nrRedirects@PAGEOFF] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_10 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_3 Depth=1 ldursw x9, [x29, #-28] adrp x8, _from@PAGE add x8, x8, _from@PAGEOFF str x8, [sp, #24] ; 8-byte Folded Spill ldr x0, [x8, x9, lsl #3] bl _strlen ldr x8, [sp, #24] ; 8-byte Folded Reload mov x9, x0 str w9, [sp, #32] ldur x0, [x29, #-16] ldursw x9, [x29, #-28] ldr x1, [x8, x9, lsl #3] ldrsw x2, [sp, #32] bl _strncmp subs w8, w0, #0 cset w8, eq tbnz w8, #0, LBB2_6 b LBB2_5 LBB2_5: ; in Loop: Header=BB2_3 Depth=1 b LBB2_9 LBB2_6: ldur x0, [x29, #-24] ldursw x9, [x29, #-28] adrp x8, _to@PAGE add x8, x8, _to@PAGEOFF ldr x10, [x8, x9, lsl #3] ldur x8, [x29, #-16] ldrsw x9, [sp, #32] add x8, x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] mov x1, #1024 mov w2, #0 mov x3, #-1 adrp x4, l_.str.13@PAGE add x4, x4, l_.str.13@PAGEOFF bl ___snprintf_chk subs w8, w0, #1024 cset w8, lt tbnz w8, #0, LBB2_8 b LBB2_7 LBB2_7: bl _abort LBB2_8: ldur x8, [x29, #-24] stur x8, [x29, #-8] b LBB2_11 LBB2_9: ; in Loop: Header=BB2_3 Depth=1 ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] b LBB2_3 LBB2_10: ldur x8, [x29, #-16] stur x8, [x29, #-8] b LBB2_11 LBB2_11: ldur x0, [x29, #-8] ldp x29, x30, [sp, #64] ; 16-byte Folded Reload add sp, sp, #80 ret .cfi_endproc ; -- End function .globl _open64 ; -- Begin function open64 .p2align 2 _open64: ; @open64 .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub sp, sp, #1088 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str x0, [sp, #48] str w1, [sp, #44] mov x0, #-1 adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _dlsym str x0, [sp, #32] strh wzr, [sp, #30] ldr w8, [sp, #44] ands w8, w8, #0x200 cset w8, eq tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: add x9, sp, #16 add x8, x29, #16 str x8, [x9] ldr x9, [sp, #16] ldrh w8, [x9] add x9, x9, #8 str x9, [sp, #16] strh w8, [sp, #14] ldrh w8, [sp, #14] strh w8, [sp, #30] b LBB3_2 LBB3_2: ldr x8, [sp, #32] str x8, [sp] ; 8-byte Folded Spill ldr x0, [sp, #48] add x1, sp, #56 bl _rewrite ldr x8, [sp] ; 8-byte Folded Reload ldr w1, [sp, #44] ldrh w2, [sp, #30] blr x8 str w0, [sp, #8] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: bl ___stack_chk_fail LBB3_4: ldr w0, [sp, #8] ; 4-byte Folded Reload add sp, sp, #1088 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _openat ; -- Begin function _openat .p2align 2 _openat: ; @"\01_openat" .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub sp, sp, #1104 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str w0, [sp, #68] str x1, [sp, #56] str w2, [sp, #52] mov x0, #-1 adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _dlsym str x0, [sp, #40] strh wzr, [sp, #38] ldr w8, [sp, #52] ands w8, w8, #0x200 cset w8, eq tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: add x9, sp, #24 add x8, x29, #16 str x8, [x9] ldr x9, [sp, #24] ldrh w8, [x9] add x9, x9, #8 str x9, [sp, #24] strh w8, [sp, #22] ldrh w8, [sp, #22] strh w8, [sp, #38] b LBB4_2 LBB4_2: ldr x8, [sp, #40] str x8, [sp] ; 8-byte Folded Spill ldr w8, [sp, #68] str w8, [sp, #12] ; 4-byte Folded Spill ldr x0, [sp, #56] add x1, sp, #72 bl _rewrite ldr x8, [sp] ; 8-byte Folded Reload mov x1, x0 ldr w0, [sp, #12] ; 4-byte Folded Reload ldr w2, [sp, #52] ldrh w3, [sp, #38] blr x8 str w0, [sp, #16] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB4_4 b LBB4_3 LBB4_3: bl ___stack_chk_fail LBB4_4: ldr w0, [sp, #16] ; 4-byte Folded Reload add sp, sp, #1104 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _fopen ; -- Begin function _fopen .p2align 2 _fopen: ; @"\01_fopen" .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub sp, sp, #1072 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str x0, [sp, #32] str x1, [sp, #24] mov x0, #-1 adrp x1, l_.str.4@PAGE add x1, x1, l_.str.4@PAGEOFF bl _dlsym str x0, [sp, #16] ldr x8, [sp, #16] str x8, [sp] ; 8-byte Folded Spill ldr x0, [sp, #32] add x1, sp, #40 bl _rewrite ldr x8, [sp] ; 8-byte Folded Reload ldr x1, [sp, #24] blr x8 str x0, [sp, #8] ; 8-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB5_2 b LBB5_1 LBB5_1: bl ___stack_chk_fail LBB5_2: ldr x0, [sp, #8] ; 8-byte Folded Reload add sp, sp, #1072 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _fopen64 ; -- Begin function fopen64 .p2align 2 _fopen64: ; @fopen64 .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub sp, sp, #1072 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str x0, [sp, #32] str x1, [sp, #24] mov x0, #-1 adrp x1, l_.str.5@PAGE add x1, x1, l_.str.5@PAGEOFF bl _dlsym str x0, [sp, #16] ldr x8, [sp, #16] str x8, [sp] ; 8-byte Folded Spill ldr x0, [sp, #32] add x1, sp, #40 bl _rewrite ldr x8, [sp] ; 8-byte Folded Reload ldr x1, [sp, #24] blr x8 str x0, [sp, #8] ; 8-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB6_2 b LBB6_1 LBB6_1: bl ___stack_chk_fail LBB6_2: ldr x0, [sp, #8] ; 8-byte Folded Reload add sp, sp, #1072 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl ___xstat ; -- Begin function __xstat .p2align 2 ___xstat: ; @__xstat .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub sp, sp, #1088 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str w0, [sp, #52] str x1, [sp, #40] str x2, [sp, #32] mov x0, #-1 adrp x1, l_.str.6@PAGE add x1, x1, l_.str.6@PAGEOFF bl _dlsym str x0, [sp, #24] ldr x8, [sp, #24] str x8, [sp, #8] ; 8-byte Folded Spill ldr w8, [sp, #52] str w8, [sp, #16] ; 4-byte Folded Spill ldr x0, [sp, #40] add x1, sp, #56 bl _rewrite ldr x8, [sp, #8] ; 8-byte Folded Reload mov x1, x0 ldr w0, [sp, #16] ; 4-byte Folded Reload ldr x2, [sp, #32] blr x8 str w0, [sp, #20] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB7_2 b LBB7_1 LBB7_1: bl ___stack_chk_fail LBB7_2: ldr w0, [sp, #20] ; 4-byte Folded Reload add sp, sp, #1088 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl ___xstat64 ; -- Begin function __xstat64 .p2align 2 ___xstat64: ; @__xstat64 .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub sp, sp, #1088 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str w0, [sp, #52] str x1, [sp, #40] str x2, [sp, #32] mov x0, #-1 adrp x1, l_.str.7@PAGE add x1, x1, l_.str.7@PAGEOFF bl _dlsym str x0, [sp, #24] ldr x8, [sp, #24] str x8, [sp, #8] ; 8-byte Folded Spill ldr w8, [sp, #52] str w8, [sp, #16] ; 4-byte Folded Spill ldr x0, [sp, #40] add x1, sp, #56 bl _rewrite ldr x8, [sp, #8] ; 8-byte Folded Reload mov x1, x0 ldr w0, [sp, #16] ; 4-byte Folded Reload ldr x2, [sp, #32] blr x8 str w0, [sp, #20] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB8_2 b LBB8_1 LBB8_1: bl ___stack_chk_fail LBB8_2: ldr w0, [sp, #20] ; 4-byte Folded Reload add sp, sp, #1088 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _stat ; -- Begin function _stat .p2align 2 _stat: ; @"\01_stat" .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub sp, sp, #1072 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str x0, [sp, #32] str x1, [sp, #24] mov x0, #-1 adrp x1, l_.str.8@PAGE add x1, x1, l_.str.8@PAGEOFF bl _dlsym str x0, [sp, #16] ldr x8, [sp, #16] str x8, [sp] ; 8-byte Folded Spill ldr x0, [sp, #32] add x1, sp, #40 bl _rewrite ldr x8, [sp] ; 8-byte Folded Reload ldr x1, [sp, #24] blr x8 str w0, [sp, #12] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB9_2 b LBB9_1 LBB9_1: bl ___stack_chk_fail LBB9_2: ldr w0, [sp, #12] ; 4-byte Folded Reload add sp, sp, #1072 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _access ; -- Begin function access .p2align 2 _access: ; @access .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub sp, sp, #1072 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str x0, [sp, #32] str w1, [sp, #28] mov x0, #-1 adrp x1, l_.str.9@PAGE add x1, x1, l_.str.9@PAGEOFF bl _dlsym str x0, [sp, #16] ldr x8, [sp, #16] str x8, [sp] ; 8-byte Folded Spill ldr x0, [sp, #32] add x1, sp, #40 bl _rewrite ldr x8, [sp] ; 8-byte Folded Reload ldr w1, [sp, #28] blr x8 str x0, [sp, #8] ; 8-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB10_2 b LBB10_1 LBB10_1: bl ___stack_chk_fail LBB10_2: ldr x0, [sp, #8] ; 8-byte Folded Reload add sp, sp, #1072 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _posix_spawn ; -- Begin function posix_spawn .p2align 2 _posix_spawn: ; @posix_spawn .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub sp, sp, #1120 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str x0, [sp, #80] str x1, [sp, #72] str x2, [sp, #64] str x3, [sp, #56] str x4, [sp, #48] str x5, [sp, #40] mov x0, #-1 adrp x1, l_.str.10@PAGE add x1, x1, l_.str.10@PAGEOFF bl _dlsym str x0, [sp, #32] ldr x8, [sp, #32] str x8, [sp, #8] ; 8-byte Folded Spill ldr x8, [sp, #80] str x8, [sp, #16] ; 8-byte Folded Spill ldr x0, [sp, #72] add x1, sp, #88 bl _rewrite ldr x8, [sp, #8] ; 8-byte Folded Reload mov x1, x0 ldr x0, [sp, #16] ; 8-byte Folded Reload ldr x2, [sp, #64] ldr x3, [sp, #56] ldr x4, [sp, #48] ldr x5, [sp, #40] blr x8 str w0, [sp, #28] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB11_2 b LBB11_1 LBB11_1: bl ___stack_chk_fail LBB11_2: ldr w0, [sp, #28] ; 4-byte Folded Reload add sp, sp, #1120 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _execv ; -- Begin function execv .p2align 2 _execv: ; @execv .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub sp, sp, #1072 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str x0, [sp, #32] str x1, [sp, #24] mov x0, #-1 adrp x1, l_.str.11@PAGE add x1, x1, l_.str.11@PAGEOFF bl _dlsym str x0, [sp, #16] ldr x8, [sp, #16] str x8, [sp] ; 8-byte Folded Spill ldr x0, [sp, #32] add x1, sp, #40 bl _rewrite ldr x8, [sp] ; 8-byte Folded Reload ldr x1, [sp, #24] blr x8 str w0, [sp, #12] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB12_2 b LBB12_1 LBB12_1: bl ___stack_chk_fail LBB12_2: ldr w0, [sp, #12] ; 4-byte Folded Reload add sp, sp, #1072 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _dlopen ; -- Begin function dlopen .p2align 2 _dlopen: ; @dlopen .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub sp, sp, #1072 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str x0, [sp, #32] str w1, [sp, #28] mov x0, #-1 adrp x1, l_.str.12@PAGE add x1, x1, l_.str.12@PAGEOFF bl _dlsym str x0, [sp, #16] ldr x8, [sp, #16] str x8, [sp] ; 8-byte Folded Spill ldr x0, [sp, #32] add x1, sp, #40 bl _rewrite ldr x8, [sp] ; 8-byte Folded Reload ldr w1, [sp, #28] blr x8 str x0, [sp, #8] ; 8-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB13_2 b LBB13_1 LBB13_1: bl ___stack_chk_fail LBB13_2: ldr x0, [sp, #8] ; 8-byte Folded Reload add sp, sp, #1072 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "NIX_REDIRECTS" .zerofill __DATA,__bss,_from,1024,3 ; @from .zerofill __DATA,__bss,_nrRedirects,4,2 ; @nrRedirects .zerofill __DATA,__bss,_to,1024,3 ; @to l_.str.1: ; @.str.1 .asciz "open" l_.str.2: ; @.str.2 .asciz "open64" l_.str.3: ; @.str.3 .asciz "openat" l_.str.4: ; @.str.4 .asciz "fopen" l_.str.5: ; @.str.5 .asciz "fopen64" l_.str.6: ; @.str.6 .asciz "__xstat" l_.str.7: ; @.str.7 .asciz "__xstat64" l_.str.8: ; @.str.8 .asciz "stat" l_.str.9: ; @.str.9 .asciz "access" l_.str.10: ; @.str.10 .asciz "posix_spawn" l_.str.11: ; @.str.11 .asciz "execv" l_.str.12: ; @.str.12 .asciz "dlopen" l_.str.13: ; @.str.13 .asciz "%s%s" .section __DATA,__mod_init_func,mod_init_funcs .p2align 3 .quad _init .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .p2align 4, 0x90 ## -- Begin function init _init: ## @init .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp leaq L_.str(%rip), %rdi callq _getenv movq %rax, -8(%rbp) cmpq $0, -8(%rbp) jne LBB0_2 ## %bb.1: jmp LBB0_9 LBB0_2: leaq L_.str(%rip), %rdi callq _unsetenv movq -8(%rbp), %rdi callq _strlen movq %rax, %rdi addq $1, %rdi callq _malloc movq %rax, -16(%rbp) movq -16(%rbp), %rdi movq -8(%rbp), %rsi movq $-1, %rdx callq ___strcpy_chk movq -16(%rbp), %rax movq %rax, -24(%rbp) LBB0_3: ## =>This Inner Loop Header: Depth=1 movq -24(%rbp), %rdi movl $61, %esi callq _strchr movq %rax, -32(%rbp) cmpq $0, %rax je LBB0_9 ## %bb.4: ## in Loop: Header=BB0_3 Depth=1 movq -32(%rbp), %rax movb $0, (%rax) movq -24(%rbp), %rdx movslq _nrRedirects(%rip), %rcx leaq _from(%rip), %rax movq %rdx, (%rax,%rcx,8) movq -32(%rbp), %rax addq $1, %rax movq %rax, -24(%rbp) movq -24(%rbp), %rdx movslq _nrRedirects(%rip), %rcx leaq _to(%rip), %rax movq %rdx, (%rax,%rcx,8) movl _nrRedirects(%rip), %eax addl $1, %eax movl %eax, _nrRedirects(%rip) cmpl $128, _nrRedirects(%rip) jne LBB0_6 ## %bb.5: jmp LBB0_9 LBB0_6: ## in Loop: Header=BB0_3 Depth=1 movq -24(%rbp), %rdi movl $58, %esi callq _strchr movq %rax, -40(%rbp) cmpq $0, -40(%rbp) jne LBB0_8 ## %bb.7: jmp LBB0_9 LBB0_8: ## in Loop: Header=BB0_3 Depth=1 movq -40(%rbp), %rax movb $0, (%rax) movq -40(%rbp), %rax addq $1, %rax movq %rax, -24(%rbp) jmp LBB0_3 LBB0_9: addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _open ## -- Begin function _open .p2align 4, 0x90 _open: ## @"\01_open" .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $1312, %rsp ## imm = 0x520 testb %al, %al je LBB1_9 ## %bb.8: movaps %xmm0, -1216(%rbp) movaps %xmm1, -1200(%rbp) movaps %xmm2, -1184(%rbp) movaps %xmm3, -1168(%rbp) movaps %xmm4, -1152(%rbp) movaps %xmm5, -1136(%rbp) movaps %xmm6, -1120(%rbp) movaps %xmm7, -1104(%rbp) LBB1_9: movq %r9, -1224(%rbp) movq %r8, -1232(%rbp) movq %rcx, -1240(%rbp) movq %rdx, -1248(%rbp) movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -1064(%rbp) movl %esi, -1068(%rbp) movq $-1, %rdi leaq L_.str.1(%rip), %rsi callq _dlsym movq %rax, -1080(%rbp) movw $0, -1082(%rbp) movl -1068(%rbp), %eax andl $512, %eax ## imm = 0x200 cmpl $0, %eax je LBB1_5 ## %bb.1: leaq -32(%rbp), %rax leaq -1264(%rbp), %rcx movq %rcx, 16(%rax) leaq 16(%rbp), %rcx movq %rcx, 8(%rax) movl $48, 4(%rax) movl $16, (%rax) leaq -32(%rbp), %rax movq %rax, -1280(%rbp) ## 8-byte Spill movl -32(%rbp), %eax movl %eax, -1268(%rbp) ## 4-byte Spill cmpl $40, %eax ja LBB1_3 ## %bb.2: movq -1280(%rbp), %rcx ## 8-byte Reload movl -1268(%rbp), %edx ## 4-byte Reload movslq %edx, %rax addq 16(%rcx), %rax addl $8, %edx movl %edx, (%rcx) movq %rax, -1288(%rbp) ## 8-byte Spill jmp LBB1_4 LBB1_3: movq -1280(%rbp), %rcx ## 8-byte Reload movq 8(%rcx), %rax movq %rax, %rdx addq $8, %rdx movq %rdx, 8(%rcx) movq %rax, -1288(%rbp) ## 8-byte Spill LBB1_4: movq -1288(%rbp), %rax ## 8-byte Reload movw (%rax), %ax movw %ax, -1082(%rbp) leaq -32(%rbp), %rax LBB1_5: movq -1080(%rbp), %rax movq %rax, -1304(%rbp) ## 8-byte Spill movq -1064(%rbp), %rdi leaq -1056(%rbp), %rsi callq _rewrite movq %rax, %rdi movq -1304(%rbp), %rax ## 8-byte Reload movl -1068(%rbp), %esi movzwl -1082(%rbp), %edx callq *%rax movl %eax, -1292(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_7 ## %bb.6: movl -1292(%rbp), %eax ## 4-byte Reload addq $1312, %rsp ## imm = 0x520 popq %rbp retq LBB1_7: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .p2align 4, 0x90 ## -- Begin function rewrite _rewrite: ## @rewrite .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -16(%rbp) movq %rsi, -24(%rbp) cmpq $0, -16(%rbp) jne LBB2_2 ## %bb.1: movq -16(%rbp), %rax movq %rax, -8(%rbp) jmp LBB2_11 LBB2_2: movl $0, -28(%rbp) LBB2_3: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax cmpl _nrRedirects(%rip), %eax jge LBB2_10 ## %bb.4: ## in Loop: Header=BB2_3 Depth=1 movslq -28(%rbp), %rcx leaq _from(%rip), %rax movq (%rax,%rcx,8), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -32(%rbp) movq -16(%rbp), %rdi movslq -28(%rbp), %rcx leaq _from(%rip), %rax movq (%rax,%rcx,8), %rsi movslq -32(%rbp), %rdx callq _strncmp cmpl $0, %eax je LBB2_6 ## %bb.5: ## in Loop: Header=BB2_3 Depth=1 jmp LBB2_9 LBB2_6: movq -24(%rbp), %rdi movslq -28(%rbp), %rcx leaq _to(%rip), %rax movq (%rax,%rcx,8), %r9 movq -16(%rbp), %rax movslq -32(%rbp), %rcx addq %rcx, %rax movl $1024, %esi ## imm = 0x400 xorl %edx, %edx movq $-1, %rcx leaq L_.str.13(%rip), %r8 movq %rax, (%rsp) movb $0, %al callq ___snprintf_chk cmpl $1024, %eax ## imm = 0x400 jl LBB2_8 ## %bb.7: callq _abort LBB2_8: movq -24(%rbp), %rax movq %rax, -8(%rbp) jmp LBB2_11 LBB2_9: ## in Loop: Header=BB2_3 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB2_3 LBB2_10: movq -16(%rbp), %rax movq %rax, -8(%rbp) LBB2_11: movq -8(%rbp), %rax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _open64 ## -- Begin function open64 .p2align 4, 0x90 _open64: ## @open64 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $1312, %rsp ## imm = 0x520 testb %al, %al je LBB3_9 ## %bb.8: movaps %xmm0, -1216(%rbp) movaps %xmm1, -1200(%rbp) movaps %xmm2, -1184(%rbp) movaps %xmm3, -1168(%rbp) movaps %xmm4, -1152(%rbp) movaps %xmm5, -1136(%rbp) movaps %xmm6, -1120(%rbp) movaps %xmm7, -1104(%rbp) LBB3_9: movq %r9, -1224(%rbp) movq %r8, -1232(%rbp) movq %rcx, -1240(%rbp) movq %rdx, -1248(%rbp) movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -1064(%rbp) movl %esi, -1068(%rbp) movq $-1, %rdi leaq L_.str.2(%rip), %rsi callq _dlsym movq %rax, -1080(%rbp) movw $0, -1082(%rbp) movl -1068(%rbp), %eax andl $512, %eax ## imm = 0x200 cmpl $0, %eax je LBB3_5 ## %bb.1: leaq -32(%rbp), %rax leaq -1264(%rbp), %rcx movq %rcx, 16(%rax) leaq 16(%rbp), %rcx movq %rcx, 8(%rax) movl $48, 4(%rax) movl $16, (%rax) leaq -32(%rbp), %rax movq %rax, -1280(%rbp) ## 8-byte Spill movl -32(%rbp), %eax movl %eax, -1268(%rbp) ## 4-byte Spill cmpl $40, %eax ja LBB3_3 ## %bb.2: movq -1280(%rbp), %rcx ## 8-byte Reload movl -1268(%rbp), %edx ## 4-byte Reload movslq %edx, %rax addq 16(%rcx), %rax addl $8, %edx movl %edx, (%rcx) movq %rax, -1288(%rbp) ## 8-byte Spill jmp LBB3_4 LBB3_3: movq -1280(%rbp), %rcx ## 8-byte Reload movq 8(%rcx), %rax movq %rax, %rdx addq $8, %rdx movq %rdx, 8(%rcx) movq %rax, -1288(%rbp) ## 8-byte Spill LBB3_4: movq -1288(%rbp), %rax ## 8-byte Reload movw (%rax), %ax movw %ax, -1082(%rbp) leaq -32(%rbp), %rax LBB3_5: movq -1080(%rbp), %rax movq %rax, -1304(%rbp) ## 8-byte Spill movq -1064(%rbp), %rdi leaq -1056(%rbp), %rsi callq _rewrite movq %rax, %rdi movq -1304(%rbp), %rax ## 8-byte Reload movl -1068(%rbp), %esi movzwl -1082(%rbp), %edx callq *%rax movl %eax, -1292(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB3_7 ## %bb.6: movl -1292(%rbp), %eax ## 4-byte Reload addq $1312, %rsp ## imm = 0x520 popq %rbp retq LBB3_7: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _openat ## -- Begin function _openat .p2align 4, 0x90 _openat: ## @"\01_openat" .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $1328, %rsp ## imm = 0x530 testb %al, %al je LBB4_9 ## %bb.8: movaps %xmm0, -1232(%rbp) movaps %xmm1, -1216(%rbp) movaps %xmm2, -1200(%rbp) movaps %xmm3, -1184(%rbp) movaps %xmm4, -1168(%rbp) movaps %xmm5, -1152(%rbp) movaps %xmm6, -1136(%rbp) movaps %xmm7, -1120(%rbp) LBB4_9: movq %r9, -1240(%rbp) movq %r8, -1248(%rbp) movq %rcx, -1256(%rbp) movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl %edi, -1060(%rbp) movq %rsi, -1072(%rbp) movl %edx, -1076(%rbp) movq $-1, %rdi leaq L_.str.3(%rip), %rsi callq _dlsym movq %rax, -1088(%rbp) movw $0, -1090(%rbp) movl -1076(%rbp), %eax andl $512, %eax ## imm = 0x200 cmpl $0, %eax je LBB4_5 ## %bb.1: leaq -32(%rbp), %rax leaq -1280(%rbp), %rcx movq %rcx, 16(%rax) leaq 16(%rbp), %rcx movq %rcx, 8(%rax) movl $48, 4(%rax) movl $24, (%rax) leaq -32(%rbp), %rax movq %rax, -1296(%rbp) ## 8-byte Spill movl -32(%rbp), %eax movl %eax, -1284(%rbp) ## 4-byte Spill cmpl $40, %eax ja LBB4_3 ## %bb.2: movq -1296(%rbp), %rcx ## 8-byte Reload movl -1284(%rbp), %edx ## 4-byte Reload movslq %edx, %rax addq 16(%rcx), %rax addl $8, %edx movl %edx, (%rcx) movq %rax, -1304(%rbp) ## 8-byte Spill jmp LBB4_4 LBB4_3: movq -1296(%rbp), %rcx ## 8-byte Reload movq 8(%rcx), %rax movq %rax, %rdx addq $8, %rdx movq %rdx, 8(%rcx) movq %rax, -1304(%rbp) ## 8-byte Spill LBB4_4: movq -1304(%rbp), %rax ## 8-byte Reload movw (%rax), %ax movw %ax, -1090(%rbp) leaq -32(%rbp), %rax LBB4_5: movq -1088(%rbp), %rax movq %rax, -1320(%rbp) ## 8-byte Spill movl -1060(%rbp), %eax movl %eax, -1324(%rbp) ## 4-byte Spill movq -1072(%rbp), %rdi leaq -1056(%rbp), %rsi callq _rewrite movl -1324(%rbp), %edi ## 4-byte Reload movq %rax, %rsi movq -1320(%rbp), %rax ## 8-byte Reload movl -1076(%rbp), %edx movzwl -1090(%rbp), %ecx callq *%rax movl %eax, -1308(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB4_7 ## %bb.6: movl -1308(%rbp), %eax ## 4-byte Reload addq $1328, %rsp ## imm = 0x530 popq %rbp retq LBB4_7: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _fopen ## -- Begin function _fopen .p2align 4, 0x90 _fopen: ## @"\01_fopen" .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $1088, %rsp ## imm = 0x440 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -1048(%rbp) movq %rsi, -1056(%rbp) movq $-1, %rdi leaq L_.str.4(%rip), %rsi callq _dlsym movq %rax, -1064(%rbp) movq -1064(%rbp), %rax movq %rax, -1080(%rbp) ## 8-byte Spill movq -1048(%rbp), %rdi leaq -1040(%rbp), %rsi callq _rewrite movq %rax, %rdi movq -1080(%rbp), %rax ## 8-byte Reload movq -1056(%rbp), %rsi callq *%rax movq %rax, -1072(%rbp) ## 8-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB5_2 ## %bb.1: movq -1072(%rbp), %rax ## 8-byte Reload addq $1088, %rsp ## imm = 0x440 popq %rbp retq LBB5_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _fopen64 ## -- Begin function fopen64 .p2align 4, 0x90 _fopen64: ## @fopen64 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $1088, %rsp ## imm = 0x440 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -1048(%rbp) movq %rsi, -1056(%rbp) movq $-1, %rdi leaq L_.str.5(%rip), %rsi callq _dlsym movq %rax, -1064(%rbp) movq -1064(%rbp), %rax movq %rax, -1080(%rbp) ## 8-byte Spill movq -1048(%rbp), %rdi leaq -1040(%rbp), %rsi callq _rewrite movq %rax, %rdi movq -1080(%rbp), %rax ## 8-byte Reload movq -1056(%rbp), %rsi callq *%rax movq %rax, -1072(%rbp) ## 8-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB6_2 ## %bb.1: movq -1072(%rbp), %rax ## 8-byte Reload addq $1088, %rsp ## imm = 0x440 popq %rbp retq LBB6_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl ___xstat ## -- Begin function __xstat .p2align 4, 0x90 ___xstat: ## @__xstat .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $1104, %rsp ## imm = 0x450 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl %edi, -1044(%rbp) movq %rsi, -1056(%rbp) movq %rdx, -1064(%rbp) movq $-1, %rdi leaq L_.str.6(%rip), %rsi callq _dlsym movq %rax, -1072(%rbp) movq -1072(%rbp), %rax movq %rax, -1088(%rbp) ## 8-byte Spill movl -1044(%rbp), %eax movl %eax, -1092(%rbp) ## 4-byte Spill movq -1056(%rbp), %rdi leaq -1040(%rbp), %rsi callq _rewrite movl -1092(%rbp), %edi ## 4-byte Reload movq %rax, %rsi movq -1088(%rbp), %rax ## 8-byte Reload movq -1064(%rbp), %rdx callq *%rax movl %eax, -1076(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB7_2 ## %bb.1: movl -1076(%rbp), %eax ## 4-byte Reload addq $1104, %rsp ## imm = 0x450 popq %rbp retq LBB7_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl ___xstat64 ## -- Begin function __xstat64 .p2align 4, 0x90 ___xstat64: ## @__xstat64 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $1104, %rsp ## imm = 0x450 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl %edi, -1044(%rbp) movq %rsi, -1056(%rbp) movq %rdx, -1064(%rbp) movq $-1, %rdi leaq L_.str.7(%rip), %rsi callq _dlsym movq %rax, -1072(%rbp) movq -1072(%rbp), %rax movq %rax, -1088(%rbp) ## 8-byte Spill movl -1044(%rbp), %eax movl %eax, -1092(%rbp) ## 4-byte Spill movq -1056(%rbp), %rdi leaq -1040(%rbp), %rsi callq _rewrite movl -1092(%rbp), %edi ## 4-byte Reload movq %rax, %rsi movq -1088(%rbp), %rax ## 8-byte Reload movq -1064(%rbp), %rdx callq *%rax movl %eax, -1076(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB8_2 ## %bb.1: movl -1076(%rbp), %eax ## 4-byte Reload addq $1104, %rsp ## imm = 0x450 popq %rbp retq LBB8_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _stat$INODE64 ## -- Begin function _stat$INODE64 .p2align 4, 0x90 _stat$INODE64: ## @"\01_stat$INODE64" .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $1088, %rsp ## imm = 0x440 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -1048(%rbp) movq %rsi, -1056(%rbp) movq $-1, %rdi leaq L_.str.8(%rip), %rsi callq _dlsym movq %rax, -1064(%rbp) movq -1064(%rbp), %rax movq %rax, -1080(%rbp) ## 8-byte Spill movq -1048(%rbp), %rdi leaq -1040(%rbp), %rsi callq _rewrite movq %rax, %rdi movq -1080(%rbp), %rax ## 8-byte Reload movq -1056(%rbp), %rsi callq *%rax movl %eax, -1068(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB9_2 ## %bb.1: movl -1068(%rbp), %eax ## 4-byte Reload addq $1088, %rsp ## imm = 0x440 popq %rbp retq LBB9_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _access ## -- Begin function access .p2align 4, 0x90 _access: ## @access .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $1088, %rsp ## imm = 0x440 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -1048(%rbp) movl %esi, -1052(%rbp) movq $-1, %rdi leaq L_.str.9(%rip), %rsi callq _dlsym movq %rax, -1064(%rbp) movq -1064(%rbp), %rax movq %rax, -1080(%rbp) ## 8-byte Spill movq -1048(%rbp), %rdi leaq -1040(%rbp), %rsi callq _rewrite movq %rax, %rdi movq -1080(%rbp), %rax ## 8-byte Reload movl -1052(%rbp), %esi callq *%rax movq %rax, -1072(%rbp) ## 8-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB10_2 ## %bb.1: movq -1072(%rbp), %rax ## 8-byte Reload addq $1088, %rsp ## imm = 0x440 popq %rbp retq LBB10_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _posix_spawn ## -- Begin function posix_spawn .p2align 4, 0x90 _posix_spawn: ## @posix_spawn .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $1120, %rsp ## imm = 0x460 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -1048(%rbp) movq %rsi, -1056(%rbp) movq %rdx, -1064(%rbp) movq %rcx, -1072(%rbp) movq %r8, -1080(%rbp) movq %r9, -1088(%rbp) movq $-1, %rdi leaq L_.str.10(%rip), %rsi callq _dlsym movq %rax, -1096(%rbp) movq -1096(%rbp), %rax movq %rax, -1112(%rbp) ## 8-byte Spill movq -1048(%rbp), %rax movq %rax, -1120(%rbp) ## 8-byte Spill movq -1056(%rbp), %rdi leaq -1040(%rbp), %rsi callq _rewrite movq -1120(%rbp), %rdi ## 8-byte Reload movq %rax, %rsi movq -1112(%rbp), %rax ## 8-byte Reload movq -1064(%rbp), %rdx movq -1072(%rbp), %rcx movq -1080(%rbp), %r8 movq -1088(%rbp), %r9 callq *%rax movl %eax, -1100(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB11_2 ## %bb.1: movl -1100(%rbp), %eax ## 4-byte Reload addq $1120, %rsp ## imm = 0x460 popq %rbp retq LBB11_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _execv ## -- Begin function execv .p2align 4, 0x90 _execv: ## @execv .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $1088, %rsp ## imm = 0x440 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -1048(%rbp) movq %rsi, -1056(%rbp) movq $-1, %rdi leaq L_.str.11(%rip), %rsi callq _dlsym movq %rax, -1064(%rbp) movq -1064(%rbp), %rax movq %rax, -1080(%rbp) ## 8-byte Spill movq -1048(%rbp), %rdi leaq -1040(%rbp), %rsi callq _rewrite movq %rax, %rdi movq -1080(%rbp), %rax ## 8-byte Reload movq -1056(%rbp), %rsi callq *%rax movl %eax, -1068(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB12_2 ## %bb.1: movl -1068(%rbp), %eax ## 4-byte Reload addq $1088, %rsp ## imm = 0x440 popq %rbp retq LBB12_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _dlopen ## -- Begin function dlopen .p2align 4, 0x90 _dlopen: ## @dlopen .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $1088, %rsp ## imm = 0x440 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq %rdi, -1048(%rbp) movl %esi, -1052(%rbp) movq $-1, %rdi leaq L_.str.12(%rip), %rsi callq _dlsym movq %rax, -1064(%rbp) movq -1064(%rbp), %rax movq %rax, -1080(%rbp) ## 8-byte Spill movq -1048(%rbp), %rdi leaq -1040(%rbp), %rsi callq _rewrite movq %rax, %rdi movq -1080(%rbp), %rax ## 8-byte Reload movl -1052(%rbp), %esi callq *%rax movq %rax, -1072(%rbp) ## 8-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB13_2 ## %bb.1: movq -1072(%rbp), %rax ## 8-byte Reload addq $1088, %rsp ## imm = 0x440 popq %rbp retq LBB13_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "NIX_REDIRECTS" .zerofill __DATA,__bss,_from,1024,4 ## @from .zerofill __DATA,__bss,_nrRedirects,4,2 ## @nrRedirects .zerofill __DATA,__bss,_to,1024,4 ## @to L_.str.1: ## @.str.1 .asciz "open" L_.str.2: ## @.str.2 .asciz "open64" L_.str.3: ## @.str.3 .asciz "openat" L_.str.4: ## @.str.4 .asciz "fopen" L_.str.5: ## @.str.5 .asciz "fopen64" L_.str.6: ## @.str.6 .asciz "__xstat" L_.str.7: ## @.str.7 .asciz "__xstat64" L_.str.8: ## @.str.8 .asciz "stat" L_.str.9: ## @.str.9 .asciz "access" L_.str.10: ## @.str.10 .asciz "posix_spawn" L_.str.11: ## @.str.11 .asciz "execv" L_.str.12: ## @.str.12 .asciz "dlopen" L_.str.13: ## @.str.13 .asciz "%s%s" .section __DATA,__mod_init_func,mod_init_funcs .p2align 3 .quad _init .subsections_via_symbols
the_stack_data/151241.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _getCheckSum ; -- Begin function getCheckSum .p2align 2 _getCheckSum: ; @getCheckSum .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp] ; 8-byte Folded Spill str wzr, [sp, #12] ldr w9, [x0] ldr w8, [sp, #12] add w8, w8, w9 str w8, [sp, #12] ldr w9, [x0, #4] ldr w8, [sp, #12] add w8, w8, w9 str w8, [sp, #12] str wzr, [sp, #8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] subs w8, w8, #20 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp] ; 8-byte Folded Reload add x8, x8, #12 ldrsw x9, [sp, #8] ldrsb w9, [x8, x9] ldr w8, [sp, #12] add w8, w8, w9 str w8, [sp, #12] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_1 LBB0_4: ldr w0, [sp, #12] add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _send_buffer ; -- Begin function send_buffer .p2align 2 _send_buffer: ; @send_buffer .cfi_startproc ; %bb.0: sub sp, sp, #144 .cfi_def_cfa_offset 144 stp x29, x30, [sp, #128] ; 16-byte Folded Spill add x29, sp, #128 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _A@GOTPAGE ldr x8, [x8, _A@GOTPAGEOFF] str x8, [sp, #32] ; 8-byte Folded Spill add x8, x8, #16 str x8, [sp, #40] ; 8-byte Folded Spill adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr x9, [sp, #32] ; 8-byte Folded Reload ldr w8, [x9, #4] ldr w9, [x9, #8] subs w8, w8, w9 cset w8, ge mov w9, #0 str w9, [sp, #28] ; 4-byte Folded Spill tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr x10, [sp, #32] ; 8-byte Folded Reload ldr w8, [x10, #4] ldr w9, [x10] ldr w10, [x10, #12] add w9, w9, w10 subs w8, w8, w9 cset w8, lt str w8, [sp, #28] ; 4-byte Folded Spill b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #28] ; 4-byte Folded Reload tbz w8, #0, LBB1_7 b LBB1_4 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 ldr x9, [sp, #32] ; 8-byte Folded Reload ldr x8, [sp, #40] ; 8-byte Folded Reload ldr w9, [x9, #4] mov w11, #64 sdiv w10, w9, w11 mul w10, w10, w11 subs w10, w9, w10 ; implicit-def: $x9 mov x9, x10 sxtw x9, w9 add x9, x8, x9, lsl #5 ldr q0, [x9] sub x8, x29, #48 stur q0, [x29, #-48] ldr q0, [x9, #16] stur q0, [x29, #-32] ldur w9, [x29, #-48] ; implicit-def: $x10 mov x10, x9 add x8, x8, #12 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf ldur q0, [x29, #-48] add x1, sp, #48 str q0, [sp, #48] ldur q0, [x29, #-32] str q0, [sp, #64] mov w0, #0 bl _tolayer3 ldr x9, [sp, #32] ; 8-byte Folded Reload ldr w8, [x9, #4] ldr w9, [x9] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #32] ; 8-byte Folded Reload ldr s0, [x8, #2064] mov w0, #0 bl _starttimer ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf b LBB1_6 LBB1_6: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w9, [x8, #4] add w9, w9, #1 str w9, [x8, #4] ldr w9, [x8] ; implicit-def: $x10 mov x10, x9 ldr w9, [x8, #4] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf b LBB1_1 LBB1_7: ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB1_9 b LBB1_8 LBB1_8: bl ___stack_chk_fail LBB1_9: ldp x29, x30, [sp, #128] ; 16-byte Folded Reload add sp, sp, #144 ret .cfi_endproc ; -- End function .globl _tolayer3 ; -- Begin function tolayer3 .p2align 2 _tolayer3: ; @tolayer3 .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x1, [sp, #40] ; 8-byte Folded Spill stur w0, [x29, #-4] adrp x9, _ntolayer3@GOTPAGE ldr x9, [x9, _ntolayer3@GOTPAGEOFF] ldr w8, [x9] add w8, w8, #1 str w8, [x9] bl _jimsrand adrp x8, _lossprob@GOTPAGE ldr x8, [x8, _lossprob@GOTPAGEOFF] ldr s1, [x8] fcmp s0, s1 cset w8, pl tbnz w8, #0, LBB2_4 b LBB2_1 LBB2_1: adrp x9, _nlost@GOTPAGE ldr x9, [x9, _nlost@GOTPAGEOFF] ldr w8, [x9] add w8, w8, #1 str w8, [x9] adrp x8, _TRACE@PAGE ldr w8, [x8, _TRACE@PAGEOFF] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB2_3 b LBB2_2 LBB2_2: adrp x0, l_.str.53@PAGE add x0, x0, l_.str.53@PAGEOFF bl _printf b LBB2_3 LBB2_3: b LBB2_34 LBB2_4: mov x0, #32 bl _malloc ldr x8, [sp, #40] ; 8-byte Folded Reload stur x0, [x29, #-16] ldr w9, [x8] ldur x10, [x29, #-16] str w9, [x10] ldr w9, [x8, #4] ldur x10, [x29, #-16] str w9, [x10, #4] ldr w8, [x8, #8] ldur x9, [x29, #-16] str w8, [x9, #8] stur wzr, [x29, #-44] b LBB2_5 LBB2_5: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-44] subs w8, w8, #20 cset w8, ge tbnz w8, #0, LBB2_8 b LBB2_6 LBB2_6: ; in Loop: Header=BB2_5 Depth=1 ldr x8, [sp, #40] ; 8-byte Folded Reload add x8, x8, #12 ldursw x9, [x29, #-44] add x8, x8, x9 ldrb w8, [x8] ldur x9, [x29, #-16] add x9, x9, #12 ldursw x10, [x29, #-44] add x9, x9, x10 strb w8, [x9] b LBB2_7 LBB2_7: ; in Loop: Header=BB2_5 Depth=1 ldur w8, [x29, #-44] add w8, w8, #1 stur w8, [x29, #-44] b LBB2_5 LBB2_8: adrp x8, _TRACE@PAGE ldr w8, [x8, _TRACE@PAGEOFF] subs w8, w8, #2 cset w8, le tbnz w8, #0, LBB2_14 b LBB2_9 LBB2_9: ldur x8, [x29, #-16] ldr w8, [x8] ; implicit-def: $x11 mov x11, x8 ldur x8, [x29, #-16] ldr w8, [x8, #4] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-16] ldr w9, [x8, #8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.54@PAGE add x0, x0, l_.str.54@PAGEOFF bl _printf stur wzr, [x29, #-44] b LBB2_10 LBB2_10: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-44] subs w8, w8, #20 cset w8, ge tbnz w8, #0, LBB2_13 b LBB2_11 LBB2_11: ; in Loop: Header=BB2_10 Depth=1 ldur x8, [x29, #-16] add x8, x8, #12 ldursw x9, [x29, #-44] ldrsb w10, [x8, x9] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.29@PAGE add x0, x0, l_.str.29@PAGEOFF bl _printf b LBB2_12 LBB2_12: ; in Loop: Header=BB2_10 Depth=1 ldur w8, [x29, #-44] add w8, w8, #1 stur w8, [x29, #-44] b LBB2_10 LBB2_13: adrp x0, l_.str.30@PAGE add x0, x0, l_.str.30@PAGEOFF bl _printf b LBB2_14 LBB2_14: mov x0, #40 bl _malloc stur x0, [x29, #-24] ldur x8, [x29, #-24] mov w10, #2 str w10, [x8, #4] ldur w8, [x29, #-4] add w8, w8, #1 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 ldur x9, [x29, #-24] str w8, [x9, #8] ldur x8, [x29, #-16] ldur x9, [x29, #-24] str x8, [x9, #16] adrp x8, _time@PAGE ldr s0, [x8, _time@PAGEOFF] stur s0, [x29, #-36] adrp x8, _evlist@PAGE ldr x8, [x8, _evlist@PAGEOFF] stur x8, [x29, #-32] b LBB2_15 LBB2_15: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-32] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB2_21 b LBB2_16 LBB2_16: ; in Loop: Header=BB2_15 Depth=1 ldur x8, [x29, #-32] ldr w8, [x8, #4] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB2_19 b LBB2_17 LBB2_17: ; in Loop: Header=BB2_15 Depth=1 ldur x8, [x29, #-32] ldr w8, [x8, #8] ldur x9, [x29, #-24] ldr w9, [x9, #8] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB2_19 b LBB2_18 LBB2_18: ; in Loop: Header=BB2_15 Depth=1 ldur x8, [x29, #-32] ldr s0, [x8] stur s0, [x29, #-36] b LBB2_19 LBB2_19: ; in Loop: Header=BB2_15 Depth=1 b LBB2_20 LBB2_20: ; in Loop: Header=BB2_15 Depth=1 ldur x8, [x29, #-32] ldr x8, [x8, #32] stur x8, [x29, #-32] b LBB2_15 LBB2_21: ldur s0, [x29, #-36] fmov s1, #1.00000000 fadd s0, s0, s1 str s0, [sp, #36] ; 4-byte Folded Spill bl _jimsrand ldr s2, [sp, #36] ; 4-byte Folded Reload fmov s1, s0 fmov s0, #9.00000000 fmadd s0, s0, s1, s2 ldur x8, [x29, #-24] str s0, [x8] bl _jimsrand adrp x8, _corruptprob@GOTPAGE ldr x8, [x8, _corruptprob@GOTPAGEOFF] ldr s1, [x8] fcmp s0, s1 cset w8, pl tbnz w8, #0, LBB2_31 b LBB2_22 LBB2_22: adrp x9, _ncorrupt@GOTPAGE ldr x9, [x9, _ncorrupt@GOTPAGEOFF] ldr w8, [x9] add w8, w8, #1 str w8, [x9] bl _jimsrand stur s0, [x29, #-40] fcvt d0, s0 fmov d1, #0.75000000 fcmp d0, d1 cset w8, pl tbnz w8, #0, LBB2_24 b LBB2_23 LBB2_23: ldur x9, [x29, #-16] mov w8, #90 strb w8, [x9, #12] b LBB2_28 LBB2_24: ldur s0, [x29, #-40] fcvt d0, s0 fmov d1, #0.87500000 fcmp d0, d1 cset w8, pl tbnz w8, #0, LBB2_26 b LBB2_25 LBB2_25: ldur x9, [x29, #-16] mov w8, #16959 movk w8, #15, lsl #16 str w8, [x9] b LBB2_27 LBB2_26: ldur x9, [x29, #-16] mov w8, #16959 movk w8, #15, lsl #16 str w8, [x9, #4] b LBB2_27 LBB2_27: b LBB2_28 LBB2_28: adrp x8, _TRACE@PAGE ldr w8, [x8, _TRACE@PAGEOFF] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB2_30 b LBB2_29 LBB2_29: adrp x0, l_.str.55@PAGE add x0, x0, l_.str.55@PAGEOFF bl _printf b LBB2_30 LBB2_30: b LBB2_31 LBB2_31: adrp x8, _TRACE@PAGE ldr w8, [x8, _TRACE@PAGEOFF] subs w8, w8, #2 cset w8, le tbnz w8, #0, LBB2_33 b LBB2_32 LBB2_32: adrp x0, l_.str.56@PAGE add x0, x0, l_.str.56@PAGEOFF bl _printf b LBB2_33 LBB2_33: ldur x0, [x29, #-24] bl _insertevent b LBB2_34 LBB2_34: ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .globl _starttimer ; -- Begin function starttimer .p2align 2 _starttimer: ; @starttimer .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] stur s0, [x29, #-8] adrp x8, _TRACE@PAGE ldr w8, [x8, _TRACE@PAGEOFF] subs w8, w8, #2 cset w8, le tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: adrp x8, _time@PAGE ldr s0, [x8, _time@PAGEOFF] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.51@PAGE add x0, x0, l_.str.51@PAGEOFF bl _printf b LBB3_2 LBB3_2: adrp x8, _evlist@PAGE ldr x8, [x8, _evlist@PAGEOFF] str x8, [sp, #16] b LBB3_3 LBB3_3: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB3_9 b LBB3_4 LBB3_4: ; in Loop: Header=BB3_3 Depth=1 ldr x8, [sp, #16] ldr w8, [x8, #4] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB3_7 b LBB3_5 LBB3_5: ; in Loop: Header=BB3_3 Depth=1 ldr x8, [sp, #16] ldr w8, [x8, #8] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB3_7 b LBB3_6 LBB3_6: adrp x0, l_.str.52@PAGE add x0, x0, l_.str.52@PAGEOFF bl _printf b LBB3_10 LBB3_7: ; in Loop: Header=BB3_3 Depth=1 b LBB3_8 LBB3_8: ; in Loop: Header=BB3_3 Depth=1 ldr x8, [sp, #16] ldr x8, [x8, #32] str x8, [sp, #16] b LBB3_3 LBB3_9: mov x0, #40 bl _malloc str x0, [sp, #8] adrp x8, _time@PAGE ldr s0, [x8, _time@PAGEOFF] ldur s1, [x29, #-8] fadd s0, s0, s1 ldr x8, [sp, #8] str s0, [x8] ldr x8, [sp, #8] str wzr, [x8, #4] ldur w8, [x29, #-4] ldr x9, [sp, #8] str w8, [x9, #8] ldr x0, [sp, #8] bl _insertevent b LBB3_10 LBB3_10: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _A_output ; -- Begin function A_output .p2align 2 _A_output: ; @A_output .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 str x0, [sp, #16] ; 8-byte Folded Spill adrp x9, _A@GOTPAGE ldr x9, [x9, _A@GOTPAGEOFF] str x9, [sp, #24] ; 8-byte Folded Spill add x8, x9, #16 str x8, [sp, #32] ; 8-byte Folded Spill adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] ldr w8, [x9, #8] ldr w9, [x9] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB4_2 b LBB4_1 LBB4_1: adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB4_5 LBB4_2: ldr x9, [sp, #24] ; 8-byte Folded Reload ldr w8, [x9, #8] ldr w9, [x9] add w9, w9, #64 subs w8, w8, w9 cset w8, lt tbnz w8, #0, LBB4_4 b LBB4_3 LBB4_3: ldr x8, [sp, #16] ; 8-byte Folded Reload mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB4_5 LBB4_4: ldr x9, [sp, #24] ; 8-byte Folded Reload ldr x8, [sp, #16] ; 8-byte Folded Reload ldr w9, [x9, #8] ; implicit-def: $x10 mov x10, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.5@PAGE add x0, x0, l_.str.5@PAGEOFF bl _printf ldr x9, [sp, #32] ; 8-byte Folded Reload ldr x1, [sp, #16] ; 8-byte Folded Reload ldr x8, [sp, #24] ; 8-byte Folded Reload ldr w10, [x8, #8] mov w12, #64 sdiv w11, w10, w12 mul w11, w11, w12 subs w11, w10, w11 ; implicit-def: $x10 mov x10, x11 sxtw x10, w10 add x9, x9, x10, lsl #5 str x9, [sp, #40] ldr w8, [x8, #8] ldr x9, [sp, #40] str w8, [x9] ldr x8, [sp, #40] add x0, x8, #12 mov x2, #20 mov x3, #-1 bl ___memmove_chk ldr x8, [sp, #40] ldr q0, [x8] add x0, sp, #48 str q0, [sp, #48] ldr q0, [x8, #16] str q0, [sp, #64] bl _getCheckSum ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x9, [sp, #40] str w0, [x9, #8] ldr w9, [x8, #8] add w9, w9, #1 str w9, [x8, #8] ldr w9, [x8, #8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.6@PAGE add x0, x0, l_.str.6@PAGEOFF bl _printf bl _send_buffer b LBB4_5 LBB4_5: ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB4_7 b LBB4_6 LBB4_6: bl ___stack_chk_fail LBB4_7: ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .globl _B_output ; -- Begin function B_output .p2align 2 _B_output: ; @B_output .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str.7@PAGE add x0, x0, l_.str.7@PAGEOFF bl _printf ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _retransmit_pkt ; -- Begin function retransmit_pkt .p2align 2 _retransmit_pkt: ; @retransmit_pkt .cfi_startproc ; %bb.0: sub sp, sp, #144 .cfi_def_cfa_offset 144 stp x29, x30, [sp, #128] ; 16-byte Folded Spill add x29, sp, #128 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _A@GOTPAGE ldr x8, [x8, _A@GOTPAGEOFF] str x8, [sp, #24] ; 8-byte Folded Spill add x9, x8, #16 str x9, [sp, #32] ; 8-byte Folded Spill adrp x9, ___stack_chk_guard@GOTPAGE ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF] ldr x9, [x9] stur x9, [x29, #-8] ldr w8, [x8] str w8, [sp, #44] b LBB6_1 LBB6_1: ; =>This Inner Loop Header: Depth=1 ldr x9, [sp, #24] ; 8-byte Folded Reload ldr w8, [sp, #44] ldr w9, [x9, #4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB6_4 b LBB6_2 LBB6_2: ; in Loop: Header=BB6_1 Depth=1 ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w9, [sp, #44] mov w11, #64 sdiv w10, w9, w11 mul w10, w10, w11 subs w10, w9, w10 ; implicit-def: $x9 mov x9, x10 sxtw x9, w9 add x9, x8, x9, lsl #5 ldr q0, [x9] sub x8, x29, #48 stur q0, [x29, #-48] ldr q0, [x9, #16] stur q0, [x29, #-32] ldur w9, [x29, #-48] ; implicit-def: $x10 mov x10, x9 add x8, x8, #12 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.8@PAGE add x0, x0, l_.str.8@PAGEOFF bl _printf ldur q0, [x29, #-48] add x1, sp, #48 str q0, [sp, #48] ldur q0, [x29, #-32] str q0, [sp, #64] mov w0, #0 bl _tolayer3 b LBB6_3 LBB6_3: ; in Loop: Header=BB6_1 Depth=1 ldr w8, [sp, #44] add w8, w8, #1 str w8, [sp, #44] b LBB6_1 LBB6_4: ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB6_6 b LBB6_5 LBB6_5: bl ___stack_chk_fail LBB6_6: ldp x29, x30, [sp, #128] ; 16-byte Folded Reload add sp, sp, #144 ret .cfi_endproc ; -- End function .globl _A_input ; -- Begin function A_input .p2align 2 _A_input: ; @A_input .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov x8, x0 str x8, [sp, #24] ; 8-byte Folded Spill adrp x9, _A@GOTPAGE ldr x9, [x9, _A@GOTPAGEOFF] str x9, [sp, #32] ; 8-byte Folded Spill adrp x9, ___stack_chk_guard@GOTPAGE ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF] ldr x9, [x9] stur x9, [x29, #-8] ldr w9, [x8, #8] str w9, [sp, #44] ; 4-byte Folded Spill ldr q0, [x8] add x0, sp, #48 str q0, [sp, #48] ldr q0, [x8, #16] str q0, [sp, #64] bl _getCheckSum ldr w8, [sp, #44] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB7_2 b LBB7_1 LBB7_1: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr w9, [x8, #4] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF bl _printf b LBB7_11 LBB7_2: ldr x9, [sp, #32] ; 8-byte Folded Reload ldr x8, [sp, #24] ; 8-byte Folded Reload ldr w8, [x8, #4] ldr w9, [x9] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB7_8 b LBB7_3 LBB7_3: ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w8, [x8] adrp x9, _nsimmax@PAGE ldr w9, [x9, _nsimmax@PAGEOFF] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB7_5 b LBB7_4 LBB7_4: b LBB7_11 LBB7_5: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr w9, [x8, #4] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.10@PAGE add x0, x0, l_.str.10@PAGEOFF bl _printf ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w8, [x8, #2068] subs w8, w8, #3 cset w8, ne tbnz w8, #0, LBB7_7 b LBB7_6 LBB7_6: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr w9, [x8, #4] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.11@PAGE add x0, x0, l_.str.11@PAGEOFF bl _printf bl _retransmit_pkt ldr x8, [sp, #32] ; 8-byte Folded Reload str wzr, [x8, #2068] b LBB7_7 LBB7_7: ldr x9, [sp, #32] ; 8-byte Folded Reload ldr w8, [x9, #2068] add w8, w8, #1 str w8, [x9, #2068] b LBB7_11 LBB7_8: ldr x8, [sp, #24] ; 8-byte Folded Reload ldr w9, [x8, #4] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.12@PAGE add x0, x0, l_.str.12@PAGEOFF bl _printf ldr x9, [sp, #24] ; 8-byte Folded Reload ldr x8, [sp, #32] ; 8-byte Folded Reload ldr w9, [x9, #4] add w9, w9, #1 str w9, [x8] ldr w9, [x8] ; implicit-def: $x10 mov x10, x9 ldr w9, [x8, #4] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.13@PAGE add x0, x0, l_.str.13@PAGEOFF bl _printf mov w0, #0 bl _stoptimer ldr x9, [sp, #32] ; 8-byte Folded Reload ldr w8, [x9] ldr w9, [x9, #4] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB7_10 b LBB7_9 LBB7_9: adrp x0, l_.str.14@PAGE add x0, x0, l_.str.14@PAGEOFF bl _printf bl _send_buffer b LBB7_11 LBB7_10: ldr x8, [sp, #32] ; 8-byte Folded Reload ldr s0, [x8, #2064] mov w0, #0 bl _starttimer ldr x8, [sp, #32] ; 8-byte Folded Reload ldr s0, [x8, #2064] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.15@PAGE add x0, x0, l_.str.15@PAGEOFF bl _printf b LBB7_11 LBB7_11: ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB7_13 b LBB7_12 LBB7_12: bl ___stack_chk_fail LBB7_13: ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .globl _stoptimer ; -- Begin function stoptimer .p2align 2 _stoptimer: ; @stoptimer .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] adrp x8, _TRACE@PAGE ldr w8, [x8, _TRACE@PAGEOFF] subs w8, w8, #2 cset w8, le tbnz w8, #0, LBB8_2 b LBB8_1 LBB8_1: adrp x8, _time@PAGE ldr s0, [x8, _time@PAGEOFF] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.49@PAGE add x0, x0, l_.str.49@PAGEOFF bl _printf b LBB8_2 LBB8_2: adrp x8, _evlist@PAGE ldr x8, [x8, _evlist@PAGEOFF] str x8, [sp, #16] b LBB8_3 LBB8_3: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #16] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB8_19 b LBB8_4 LBB8_4: ; in Loop: Header=BB8_3 Depth=1 ldr x8, [sp, #16] ldr w8, [x8, #4] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB8_17 b LBB8_5 LBB8_5: ; in Loop: Header=BB8_3 Depth=1 ldr x8, [sp, #16] ldr w8, [x8, #8] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB8_17 b LBB8_6 LBB8_6: ldr x8, [sp, #16] ldr x8, [x8, #32] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB8_9 b LBB8_7 LBB8_7: ldr x8, [sp, #16] ldr x8, [x8, #24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB8_9 b LBB8_8 LBB8_8: ; kill: def $x8 killed $xzr adrp x8, _evlist@PAGE str xzr, [x8, _evlist@PAGEOFF] b LBB8_16 LBB8_9: ldr x8, [sp, #16] ldr x8, [x8, #32] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB8_11 b LBB8_10 LBB8_10: ldr x8, [sp, #16] ldr x8, [x8, #24] ; kill: def $x9 killed $xzr str xzr, [x8, #32] b LBB8_15 LBB8_11: ldr x8, [sp, #16] adrp x9, _evlist@PAGE ldr x9, [x9, _evlist@PAGEOFF] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB8_13 b LBB8_12 LBB8_12: ldr x8, [sp, #16] ldr x8, [x8, #32] ; kill: def $x9 killed $xzr str xzr, [x8, #24] ldr x8, [sp, #16] ldr x8, [x8, #32] adrp x9, _evlist@PAGE str x8, [x9, _evlist@PAGEOFF] b LBB8_14 LBB8_13: ldr x8, [sp, #16] ldr x8, [x8, #24] ldr x9, [sp, #16] ldr x9, [x9, #32] str x8, [x9, #24] ldr x8, [sp, #16] ldr x8, [x8, #32] ldr x9, [sp, #16] ldr x9, [x9, #24] str x8, [x9, #32] b LBB8_14 LBB8_14: b LBB8_15 LBB8_15: b LBB8_16 LBB8_16: ldr x0, [sp, #16] bl _free b LBB8_20 LBB8_17: ; in Loop: Header=BB8_3 Depth=1 b LBB8_18 LBB8_18: ; in Loop: Header=BB8_3 Depth=1 ldr x8, [sp, #16] ldr x8, [x8, #32] str x8, [sp, #16] b LBB8_3 LBB8_19: adrp x0, l_.str.50@PAGE add x0, x0, l_.str.50@PAGEOFF bl _printf b LBB8_20 LBB8_20: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _A_timerinterrupt ; -- Begin function A_timerinterrupt .p2align 2 _A_timerinterrupt: ; @A_timerinterrupt .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _A@GOTPAGE ldr x8, [x8, _A@GOTPAGEOFF] str x8, [sp, #8] ; 8-byte Folded Spill bl _retransmit_pkt ldr x8, [sp, #8] ; 8-byte Folded Reload ldr s0, [x8, #2064] mov w0, #0 bl _starttimer ldr x8, [sp, #8] ; 8-byte Folded Reload ldr s0, [x8, #2064] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.16@PAGE add x0, x0, l_.str.16@PAGEOFF bl _printf ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _A_init ; -- Begin function A_init .p2align 2 _A_init: ; @A_init .cfi_startproc ; %bb.0: adrp x9, _A@GOTPAGE ldr x9, [x9, _A@GOTPAGEOFF] str wzr, [x9] str wzr, [x9, #4] str wzr, [x9, #8] fmov s0, #15.00000000 str s0, [x9, #2064] mov w8, #8 str w8, [x9, #12] ret .cfi_endproc ; -- End function .globl _send_ack ; -- Begin function send_ack .p2align 2 _send_ack: ; @send_ack .cfi_startproc ; %bb.0: sub sp, sp, #144 .cfi_def_cfa_offset 144 stp x29, x30, [sp, #128] ; 16-byte Folded Spill add x29, sp, #128 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-8] str w0, [sp, #12] str w1, [sp, #8] ldr w8, [sp, #8] stur w8, [x29, #-36] ldur q0, [x29, #-40] add x0, sp, #48 str q0, [sp, #48] ldur q0, [x29, #-24] str q0, [sp, #64] bl _getCheckSum stur w0, [x29, #-32] ldr w0, [sp, #12] ldur q0, [x29, #-40] add x1, sp, #16 str q0, [sp, #16] ldur q0, [x29, #-24] str q0, [sp, #32] bl _tolayer3 ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB11_2 b LBB11_1 LBB11_1: bl ___stack_chk_fail LBB11_2: ldp x29, x30, [sp, #128] ; 16-byte Folded Reload add sp, sp, #144 ret .cfi_endproc ; -- End function .globl _B_input ; -- Begin function B_input .p2align 2 _B_input: ; @B_input .cfi_startproc ; %bb.0: sub sp, sp, #128 .cfi_def_cfa_offset 128 stp x29, x30, [sp, #112] ; 16-byte Folded Spill add x29, sp, #112 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov x8, x0 str x8, [sp, #40] ; 8-byte Folded Spill adrp x9, _B@GOTPAGE ldr x9, [x9, _B@GOTPAGEOFF] str x9, [sp, #48] ; 8-byte Folded Spill adrp x9, ___stack_chk_guard@GOTPAGE ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF] ldr x9, [x9] stur x9, [x29, #-8] ldr w9, [x8, #8] stur w9, [x29, #-52] ; 4-byte Folded Spill ldr q0, [x8] sub x0, x29, #48 stur q0, [x29, #-48] ldr q0, [x8, #16] stur q0, [x29, #-32] bl _getCheckSum ldur w8, [x29, #-52] ; 4-byte Folded Reload subs w8, w8, w0 cset w8, eq tbnz w8, #0, LBB12_2 b LBB12_1 LBB12_1: ldr x8, [sp, #48] ; 8-byte Folded Reload ldr w8, [x8] mov w9, #1 str w9, [sp, #36] ; 4-byte Folded Spill subs w10, w8, #1 mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.17@PAGE add x0, x0, l_.str.17@PAGEOFF bl _printf ldr x8, [sp, #48] ; 8-byte Folded Reload ldr w0, [sp, #36] ; 4-byte Folded Reload ldr w8, [x8] subs w1, w8, #1 bl _send_ack b LBB12_5 LBB12_2: ldr x9, [sp, #48] ; 8-byte Folded Reload ldr x8, [sp, #40] ; 8-byte Folded Reload ldr w8, [x8] ldr w9, [x9] subs w8, w8, w9 cset w8, eq tbnz w8, #0, LBB12_4 b LBB12_3 LBB12_3: ldr x9, [sp, #48] ; 8-byte Folded Reload ldr x8, [sp, #40] ; 8-byte Folded Reload ldr w10, [x8] ; implicit-def: $x8 mov x8, x10 ldr w9, [x9] mov w10, #1 str w10, [sp, #32] ; 4-byte Folded Spill subs w10, w9, #1 mov x9, sp str x8, [x9] ; implicit-def: $x8 mov x8, x10 str x8, [x9, #8] adrp x0, l_.str.18@PAGE add x0, x0, l_.str.18@PAGEOFF bl _printf ldr x8, [sp, #48] ; 8-byte Folded Reload ldr w0, [sp, #32] ; 4-byte Folded Reload ldr w8, [x8] subs w1, w8, #1 bl _send_ack b LBB12_5 LBB12_4: ldr x8, [sp, #40] ; 8-byte Folded Reload ldr w9, [x8] ; implicit-def: $x10 mov x10, x9 add x8, x8, #12 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.19@PAGE add x0, x0, l_.str.19@PAGEOFF bl _printf ldr x8, [sp, #48] ; 8-byte Folded Reload ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.20@PAGE add x0, x0, l_.str.20@PAGEOFF bl _printf ldr x8, [sp, #48] ; 8-byte Folded Reload ldr w1, [x8] mov w0, #1 str w0, [sp, #28] ; 4-byte Folded Spill bl _send_ack ldr x8, [sp, #40] ; 8-byte Folded Reload ldr w0, [sp, #28] ; 4-byte Folded Reload add x1, x8, #12 bl _tolayer5 ldr x9, [sp, #48] ; 8-byte Folded Reload ldr w8, [x9] add w8, w8, #1 str w8, [x9] b LBB12_5 LBB12_5: ldur x9, [x29, #-8] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB12_7 b LBB12_6 LBB12_6: bl ___stack_chk_fail LBB12_7: ldp x29, x30, [sp, #112] ; 16-byte Folded Reload add sp, sp, #128 ret .cfi_endproc ; -- End function .globl _tolayer5 ; -- Begin function tolayer5 .p2align 2 _tolayer5: ; @tolayer5 .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] str x1, [sp, #16] adrp x8, _TRACE@PAGE ldr w8, [x8, _TRACE@PAGEOFF] subs w8, w8, #2 cset w8, le tbnz w8, #0, LBB13_6 b LBB13_1 LBB13_1: adrp x0, l_.str.57@PAGE add x0, x0, l_.str.57@PAGEOFF bl _printf str wzr, [sp, #12] b LBB13_2 LBB13_2: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #12] subs w8, w8, #20 cset w8, ge tbnz w8, #0, LBB13_5 b LBB13_3 LBB13_3: ; in Loop: Header=BB13_2 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp, #12] ldrsb w10, [x8, x9] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.29@PAGE add x0, x0, l_.str.29@PAGEOFF bl _printf b LBB13_4 LBB13_4: ; in Loop: Header=BB13_2 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB13_2 LBB13_5: adrp x0, l_.str.30@PAGE add x0, x0, l_.str.30@PAGEOFF bl _printf b LBB13_6 LBB13_6: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _B_timerinterrupt ; -- Begin function B_timerinterrupt .p2align 2 _B_timerinterrupt: ; @B_timerinterrupt .cfi_startproc ; %bb.0: stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill .cfi_def_cfa_offset 16 mov x29, sp .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str.21@PAGE add x0, x0, l_.str.21@PAGEOFF bl _printf ldp x29, x30, [sp], #16 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .globl _B_init ; -- Begin function B_init .p2align 2 _B_init: ; @B_init .cfi_startproc ; %bb.0: adrp x8, _B@GOTPAGE ldr x8, [x8, _B@GOTPAGEOFF] str wzr, [x8] ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #288 .cfi_def_cfa_offset 288 stp x28, x27, [sp, #256] ; 16-byte Folded Spill stp x29, x30, [sp, #272] ; 16-byte Folded Spill add x29, sp, #272 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 sub x8, x29, #96 str x8, [sp, #32] ; 8-byte Folded Spill adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] str wzr, [sp, #76] str w0, [sp, #72] str x1, [sp, #64] ldr w0, [sp, #72] ldr x1, [sp, #64] bl _init bl _A_init bl _B_init b LBB16_1 LBB16_1: ; =>This Loop Header: Depth=1 ; Child Loop BB16_34 Depth 2 ; Child Loop BB16_18 Depth 2 ; Child Loop BB16_23 Depth 2 adrp x8, _evlist@PAGE ldr x8, [x8, _evlist@PAGEOFF] str x8, [sp, #56] ldr x8, [sp, #56] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB16_3 b LBB16_2 LBB16_2: b LBB16_50 LBB16_3: ; in Loop: Header=BB16_1 Depth=1 adrp x8, _evlist@PAGE ldr x9, [x8, _evlist@PAGEOFF] ldr x9, [x9, #32] str x9, [x8, _evlist@PAGEOFF] ldr x8, [x8, _evlist@PAGEOFF] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB16_5 b LBB16_4 LBB16_4: ; in Loop: Header=BB16_1 Depth=1 adrp x8, _evlist@PAGE ldr x8, [x8, _evlist@PAGEOFF] ; kill: def $x9 killed $xzr str xzr, [x8, #24] b LBB16_5 LBB16_5: ; in Loop: Header=BB16_1 Depth=1 adrp x8, _TRACE@PAGE ldr w8, [x8, _TRACE@PAGEOFF] subs w8, w8, #2 cset w8, lt tbnz w8, #0, LBB16_13 b LBB16_6 LBB16_6: ; in Loop: Header=BB16_1 Depth=1 ldr x8, [sp, #56] ldr s0, [x8] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.22@PAGE add x0, x0, l_.str.22@PAGEOFF bl _printf ldr x8, [sp, #56] ldr w9, [x8, #4] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.23@PAGE add x0, x0, l_.str.23@PAGEOFF bl _printf ldr x8, [sp, #56] ldr w8, [x8, #4] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB16_8 b LBB16_7 LBB16_7: ; in Loop: Header=BB16_1 Depth=1 adrp x0, l_.str.24@PAGE add x0, x0, l_.str.24@PAGEOFF bl _printf b LBB16_12 LBB16_8: ; in Loop: Header=BB16_1 Depth=1 ldr x8, [sp, #56] ldr w8, [x8, #4] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB16_10 b LBB16_9 LBB16_9: ; in Loop: Header=BB16_1 Depth=1 adrp x0, l_.str.25@PAGE add x0, x0, l_.str.25@PAGEOFF bl _printf b LBB16_11 LBB16_10: ; in Loop: Header=BB16_1 Depth=1 adrp x0, l_.str.26@PAGE add x0, x0, l_.str.26@PAGEOFF bl _printf b LBB16_11 LBB16_11: ; in Loop: Header=BB16_1 Depth=1 b LBB16_12 LBB16_12: ; in Loop: Header=BB16_1 Depth=1 ldr x8, [sp, #56] ldr w9, [x8, #8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.27@PAGE add x0, x0, l_.str.27@PAGEOFF bl _printf b LBB16_13 LBB16_13: ; in Loop: Header=BB16_1 Depth=1 ldr x8, [sp, #56] ldr s0, [x8] adrp x8, _time@PAGE str s0, [x8, _time@PAGEOFF] ldr x8, [sp, #56] ldr w8, [x8, #4] subs w8, w8, #1 cset w8, ne tbnz w8, #0, LBB16_32 b LBB16_14 LBB16_14: ; in Loop: Header=BB16_1 Depth=1 adrp x8, _nsim@PAGE ldr w8, [x8, _nsim@PAGEOFF] adrp x9, _nsimmax@PAGE ldr w9, [x9, _nsimmax@PAGEOFF] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB16_31 b LBB16_15 LBB16_15: ; in Loop: Header=BB16_1 Depth=1 adrp x8, _nsim@PAGE ldr w8, [x8, _nsim@PAGEOFF] add w8, w8, #1 adrp x9, _nsimmax@PAGE ldr w9, [x9, _nsimmax@PAGEOFF] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB16_17 b LBB16_16 LBB16_16: ; in Loop: Header=BB16_1 Depth=1 bl _generate_next_arrival b LBB16_17 LBB16_17: ; in Loop: Header=BB16_1 Depth=1 adrp x8, _nsim@PAGE ldr w8, [x8, _nsim@PAGEOFF] mov w10, #26 sdiv w9, w8, w10 mul w9, w9, w10 subs w8, w8, w9 str w8, [sp, #48] str wzr, [sp, #52] b LBB16_18 LBB16_18: ; Parent Loop BB16_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #52] subs w8, w8, #20 cset w8, ge tbnz w8, #0, LBB16_21 b LBB16_19 LBB16_19: ; in Loop: Header=BB16_18 Depth=2 ldr w8, [sp, #48] add w8, w8, #97 ldrsw x10, [sp, #52] sub x9, x29, #44 strb w8, [x9, x10] b LBB16_20 LBB16_20: ; in Loop: Header=BB16_18 Depth=2 ldr w8, [sp, #52] add w8, w8, #1 str w8, [sp, #52] b LBB16_18 LBB16_21: ; in Loop: Header=BB16_1 Depth=1 sturb wzr, [x29, #-25] adrp x8, _TRACE@PAGE ldr w8, [x8, _TRACE@PAGEOFF] subs w8, w8, #2 cset w8, le tbnz w8, #0, LBB16_27 b LBB16_22 LBB16_22: ; in Loop: Header=BB16_1 Depth=1 adrp x0, l_.str.28@PAGE add x0, x0, l_.str.28@PAGEOFF bl _printf str wzr, [sp, #52] b LBB16_23 LBB16_23: ; Parent Loop BB16_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #52] subs w8, w8, #20 cset w8, ge tbnz w8, #0, LBB16_26 b LBB16_24 LBB16_24: ; in Loop: Header=BB16_23 Depth=2 ldrsw x9, [sp, #52] sub x8, x29, #44 ldrsb w10, [x8, x9] mov x9, sp ; implicit-def: $x8 mov x8, x10 str x8, [x9] adrp x0, l_.str.29@PAGE add x0, x0, l_.str.29@PAGEOFF bl _printf b LBB16_25 LBB16_25: ; in Loop: Header=BB16_23 Depth=2 ldr w8, [sp, #52] add w8, w8, #1 str w8, [sp, #52] b LBB16_23 LBB16_26: ; in Loop: Header=BB16_1 Depth=1 adrp x0, l_.str.30@PAGE add x0, x0, l_.str.30@PAGEOFF bl _printf b LBB16_27 LBB16_27: ; in Loop: Header=BB16_1 Depth=1 adrp x9, _nsim@PAGE ldr w8, [x9, _nsim@PAGEOFF] add w8, w8, #1 str w8, [x9, _nsim@PAGEOFF] ldr x8, [sp, #56] ldr w8, [x8, #8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB16_29 b LBB16_28 LBB16_28: ; in Loop: Header=BB16_1 Depth=1 ldr x9, [sp, #32] ; 8-byte Folded Reload ldur q0, [x9, #52] sub x0, x29, #96 str q0, [x9] ldr w8, [x9, #68] str w8, [x9, #16] bl _A_output b LBB16_30 LBB16_29: ; in Loop: Header=BB16_1 Depth=1 ldr x8, [sp, #32] ; 8-byte Folded Reload ldur q0, [x8, #52] sub x0, x29, #128 stur q0, [x29, #-128] ldr w8, [x8, #68] stur w8, [x29, #-112] bl _B_output b LBB16_30 LBB16_30: ; in Loop: Header=BB16_1 Depth=1 b LBB16_31 LBB16_31: ; in Loop: Header=BB16_1 Depth=1 b LBB16_49 LBB16_32: ; in Loop: Header=BB16_1 Depth=1 ldr x8, [sp, #56] ldr w8, [x8, #4] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB16_41 b LBB16_33 LBB16_33: ; in Loop: Header=BB16_1 Depth=1 ldr x9, [sp, #32] ; 8-byte Folded Reload ldr x8, [sp, #56] ldr x8, [x8, #16] ldr w8, [x8] str w8, [x9, #20] ldr x8, [sp, #56] ldr x8, [x8, #16] ldr w8, [x8, #4] str w8, [x9, #24] ldr x8, [sp, #56] ldr x8, [x8, #16] ldr w8, [x8, #8] str w8, [x9, #28] str wzr, [sp, #52] b LBB16_34 LBB16_34: ; Parent Loop BB16_1 Depth=1 ; => This Inner Loop Header: Depth=2 ldr w8, [sp, #52] subs w8, w8, #20 cset w8, ge tbnz w8, #0, LBB16_37 b LBB16_35 LBB16_35: ; in Loop: Header=BB16_34 Depth=2 ldr x8, [sp, #56] ldr x8, [x8, #16] add x8, x8, #12 ldrsw x9, [sp, #52] add x8, x8, x9 ldrb w8, [x8] sub x9, x29, #76 add x9, x9, #12 ldrsw x10, [sp, #52] add x9, x9, x10 strb w8, [x9] b LBB16_36 LBB16_36: ; in Loop: Header=BB16_34 Depth=2 ldr w8, [sp, #52] add w8, w8, #1 str w8, [sp, #52] b LBB16_34 LBB16_37: ; in Loop: Header=BB16_1 Depth=1 ldr x8, [sp, #56] ldr w8, [x8, #8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB16_39 b LBB16_38 LBB16_38: ; in Loop: Header=BB16_1 Depth=1 ldr x8, [sp, #32] ; 8-byte Folded Reload ldur q0, [x8, #20] add x0, sp, #112 str q0, [sp, #112] ldur q0, [x8, #36] str q0, [sp, #128] bl _A_input b LBB16_40 LBB16_39: ; in Loop: Header=BB16_1 Depth=1 ldr x8, [sp, #32] ; 8-byte Folded Reload ldur q0, [x8, #20] add x0, sp, #80 str q0, [sp, #80] ldur q0, [x8, #36] str q0, [sp, #96] bl _B_input b LBB16_40 LBB16_40: ; in Loop: Header=BB16_1 Depth=1 ldr x8, [sp, #56] ldr x0, [x8, #16] bl _free b LBB16_48 LBB16_41: ; in Loop: Header=BB16_1 Depth=1 ldr x8, [sp, #56] ldr w8, [x8, #4] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB16_46 b LBB16_42 LBB16_42: ; in Loop: Header=BB16_1 Depth=1 ldr x8, [sp, #56] ldr w8, [x8, #8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB16_44 b LBB16_43 LBB16_43: ; in Loop: Header=BB16_1 Depth=1 bl _A_timerinterrupt b LBB16_45 LBB16_44: ; in Loop: Header=BB16_1 Depth=1 bl _B_timerinterrupt b LBB16_45 LBB16_45: ; in Loop: Header=BB16_1 Depth=1 b LBB16_47 LBB16_46: ; in Loop: Header=BB16_1 Depth=1 adrp x0, l_.str.31@PAGE add x0, x0, l_.str.31@PAGEOFF bl _printf b LBB16_47 LBB16_47: ; in Loop: Header=BB16_1 Depth=1 b LBB16_48 LBB16_48: ; in Loop: Header=BB16_1 Depth=1 b LBB16_49 LBB16_49: ; in Loop: Header=BB16_1 Depth=1 ldr x0, [sp, #56] bl _free b LBB16_1 LBB16_50: adrp x8, _time@PAGE ldr s0, [x8, _time@PAGEOFF] fcvt d0, s0 adrp x8, _nsim@PAGE ldr w9, [x8, _nsim@PAGEOFF] ; implicit-def: $x8 mov x8, x9 mov x9, sp str d0, [x9] str x8, [x9, #8] adrp x0, l_.str.32@PAGE add x0, x0, l_.str.32@PAGEOFF bl _printf ldr w8, [sp, #76] str w8, [sp, #28] ; 4-byte Folded Spill ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB16_52 b LBB16_51 LBB16_51: bl ___stack_chk_fail LBB16_52: ldr w0, [sp, #28] ; 4-byte Folded Reload ldp x29, x30, [sp, #272] ; 16-byte Folded Reload ldp x28, x27, [sp, #256] ; 16-byte Folded Reload add sp, sp, #288 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function init lCPI17_0: .quad 0x408f400000000000 ; double 1000 .section __TEXT,__text,regular,pure_instructions .globl _init .p2align 2 _init: ; @init .cfi_startproc ; %bb.0: sub sp, sp, #112 .cfi_def_cfa_offset 112 stp x29, x30, [sp, #96] ; 16-byte Folded Spill add x29, sp, #96 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] stur x1, [x29, #-16] ldur w8, [x29, #-4] subs w8, w8, #6 cset w8, eq tbnz w8, #0, LBB17_2 b LBB17_1 LBB17_1: ldur x8, [x29, #-16] ldr x8, [x8] mov x9, sp str x8, [x9] adrp x0, l_.str.33@PAGE add x0, x0, l_.str.33@PAGEOFF bl _printf mov w0, #1 bl _exit LBB17_2: ldur x8, [x29, #-16] ldr x0, [x8, #8] bl _atoi adrp x8, _nsimmax@PAGE str x8, [sp, #24] ; 8-byte Folded Spill str w0, [x8, _nsimmax@PAGEOFF] ldur x8, [x29, #-16] ldr x0, [x8, #16] bl _atof fcvt s0, d0 adrp x8, _lossprob@GOTPAGE ldr x8, [x8, _lossprob@GOTPAGEOFF] str x8, [sp, #32] ; 8-byte Folded Spill str s0, [x8] ldur x8, [x29, #-16] ldr x0, [x8, #24] bl _atof fcvt s0, d0 adrp x8, _corruptprob@GOTPAGE ldr x8, [x8, _corruptprob@GOTPAGEOFF] str x8, [sp, #40] ; 8-byte Folded Spill str s0, [x8] ldur x8, [x29, #-16] ldr x0, [x8, #32] bl _atof fcvt s0, d0 adrp x8, _lambda@GOTPAGE ldr x8, [x8, _lambda@GOTPAGEOFF] str x8, [sp, #48] ; 8-byte Folded Spill str s0, [x8] ldur x8, [x29, #-16] ldr x0, [x8, #40] bl _atoi adrp x8, _TRACE@PAGE stur x8, [x29, #-40] ; 8-byte Folded Spill str w0, [x8, _TRACE@PAGEOFF] adrp x0, l_.str.34@PAGE add x0, x0, l_.str.34@PAGEOFF bl _printf ldr x8, [sp, #24] ; 8-byte Folded Reload ldr w9, [x8, _nsimmax@PAGEOFF] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.35@PAGE add x0, x0, l_.str.35@PAGEOFF bl _printf ldr x8, [sp, #32] ; 8-byte Folded Reload ldr s0, [x8] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.36@PAGE add x0, x0, l_.str.36@PAGEOFF bl _printf ldr x8, [sp, #40] ; 8-byte Folded Reload ldr s0, [x8] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.37@PAGE add x0, x0, l_.str.37@PAGEOFF bl _printf ldr x8, [sp, #48] ; 8-byte Folded Reload ldr s0, [x8] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.38@PAGE add x0, x0, l_.str.38@PAGEOFF bl _printf ldur x8, [x29, #-40] ; 8-byte Folded Reload ldr w9, [x8, _TRACE@PAGEOFF] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x8, [x9] adrp x0, l_.str.39@PAGE add x0, x0, l_.str.39@PAGEOFF bl _printf mov w0, #9999 bl _srand movi d0, #0000000000000000 stur s0, [x29, #-24] stur wzr, [x29, #-20] b LBB17_3 LBB17_3: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-20] subs w8, w8, #1000 cset w8, ge tbnz w8, #0, LBB17_6 b LBB17_4 LBB17_4: ; in Loop: Header=BB17_3 Depth=1 ldur s0, [x29, #-24] str s0, [sp, #20] ; 4-byte Folded Spill bl _jimsrand fmov s1, s0 ldr s0, [sp, #20] ; 4-byte Folded Reload fadd s0, s0, s1 stur s0, [x29, #-24] b LBB17_5 LBB17_5: ; in Loop: Header=BB17_3 Depth=1 ldur w8, [x29, #-20] add w8, w8, #1 stur w8, [x29, #-20] b LBB17_3 LBB17_6: ldur s0, [x29, #-24] fcvt d0, s0 adrp x8, lCPI17_0@PAGE ldr d1, [x8, lCPI17_0@PAGEOFF] fdiv d0, d0, d1 fcvt s0, d0 stur s0, [x29, #-28] ldur s0, [x29, #-28] fcvt d0, s0 fmov d1, #0.25000000 fcmp d0, d1 cset w8, mi tbnz w8, #0, LBB17_8 b LBB17_7 LBB17_7: ldur s0, [x29, #-28] fcvt d0, s0 fmov d1, #0.75000000 fcmp d0, d1 cset w8, le tbnz w8, #0, LBB17_9 b LBB17_8 LBB17_8: adrp x0, l_.str.40@PAGE add x0, x0, l_.str.40@PAGEOFF bl _printf adrp x0, l_.str.41@PAGE add x0, x0, l_.str.41@PAGEOFF bl _printf adrp x0, l_.str.42@PAGE add x0, x0, l_.str.42@PAGEOFF bl _printf mov w0, #1 bl _exit LBB17_9: adrp x8, _ntolayer3@GOTPAGE ldr x8, [x8, _ntolayer3@GOTPAGEOFF] str wzr, [x8] adrp x8, _nlost@GOTPAGE ldr x8, [x8, _nlost@GOTPAGEOFF] str wzr, [x8] adrp x8, _ncorrupt@GOTPAGE ldr x8, [x8, _ncorrupt@GOTPAGEOFF] str wzr, [x8] adrp x8, _time@PAGE movi d0, #0000000000000000 str s0, [x8, _time@PAGEOFF] bl _generate_next_arrival ldp x29, x30, [sp, #96] ; 16-byte Folded Reload add sp, sp, #112 ret .cfi_endproc ; -- End function .globl _generate_next_arrival ; -- Begin function generate_next_arrival .p2align 2 _generate_next_arrival: ; @generate_next_arrival .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _TRACE@PAGE ldr w8, [x8, _TRACE@PAGEOFF] subs w8, w8, #2 cset w8, le tbnz w8, #0, LBB18_2 b LBB18_1 LBB18_1: adrp x0, l_.str.43@PAGE add x0, x0, l_.str.43@PAGEOFF bl _printf b LBB18_2 LBB18_2: adrp x8, _lambda@GOTPAGE ldr x8, [x8, _lambda@GOTPAGEOFF] ldr s0, [x8] str s0, [sp, #4] ; 4-byte Folded Spill bl _jimsrand fmov s1, s0 ldr s0, [sp, #4] ; 4-byte Folded Reload fmul s0, s0, s1 fmov s1, #2.00000000 fmul s0, s0, s1 fcvt d0, s0 stur d0, [x29, #-8] mov x0, #40 bl _malloc str x0, [sp, #16] adrp x8, _time@PAGE ldr s0, [x8, _time@PAGEOFF] fcvt d0, s0 ldur d1, [x29, #-8] fadd d0, d0, d1 fcvt s0, d0 ldr x8, [sp, #16] str s0, [x8] ldr x9, [sp, #16] mov w8, #1 str w8, [x9, #4] ldr x8, [sp, #16] str wzr, [x8, #8] ldr x0, [sp, #16] bl _insertevent ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function jimsrand lCPI19_0: .quad 0x41dfffffffc00000 ; double 2147483647 .section __TEXT,__text,regular,pure_instructions .globl _jimsrand .p2align 2 _jimsrand: ; @jimsrand .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, lCPI19_0@PAGE ldr d0, [x8, lCPI19_0@PAGEOFF] str d0, [sp, #8] bl _rand scvtf d0, w0 ldr d1, [sp, #8] fdiv d0, d0, d1 fcvt s0, d0 str s0, [sp, #4] ldr s0, [sp, #4] ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _insertevent ; -- Begin function insertevent .p2align 2 _insertevent: ; @insertevent .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] adrp x8, _TRACE@PAGE ldr w8, [x8, _TRACE@PAGEOFF] subs w8, w8, #2 cset w8, le tbnz w8, #0, LBB20_2 b LBB20_1 LBB20_1: adrp x8, _time@PAGE ldr s0, [x8, _time@PAGEOFF] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.44@PAGE add x0, x0, l_.str.44@PAGEOFF bl _printf ldur x8, [x29, #-8] ldr s0, [x8] fcvt d0, s0 mov x8, sp str d0, [x8] adrp x0, l_.str.45@PAGE add x0, x0, l_.str.45@PAGEOFF bl _printf b LBB20_2 LBB20_2: adrp x8, _evlist@PAGE ldr x8, [x8, _evlist@PAGEOFF] stur x8, [x29, #-16] ldur x8, [x29, #-16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB20_4 b LBB20_3 LBB20_3: ldur x8, [x29, #-8] adrp x9, _evlist@PAGE str x8, [x9, _evlist@PAGEOFF] ldur x8, [x29, #-8] ; kill: def $x9 killed $xzr str xzr, [x8, #32] ldur x8, [x29, #-8] str xzr, [x8, #24] b LBB20_17 LBB20_4: ldur x8, [x29, #-16] str x8, [sp, #24] b LBB20_5 LBB20_5: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-16] subs x8, x8, #0 cset w8, eq mov w9, #0 str w9, [sp, #20] ; 4-byte Folded Spill tbnz w8, #0, LBB20_7 b LBB20_6 LBB20_6: ; in Loop: Header=BB20_5 Depth=1 ldur x8, [x29, #-8] ldr s0, [x8] ldur x8, [x29, #-16] ldr s1, [x8] fcmp s0, s1 cset w8, gt str w8, [sp, #20] ; 4-byte Folded Spill b LBB20_7 LBB20_7: ; in Loop: Header=BB20_5 Depth=1 ldr w8, [sp, #20] ; 4-byte Folded Reload tbz w8, #0, LBB20_10 b LBB20_8 LBB20_8: ; in Loop: Header=BB20_5 Depth=1 ldur x8, [x29, #-16] str x8, [sp, #24] b LBB20_9 LBB20_9: ; in Loop: Header=BB20_5 Depth=1 ldur x8, [x29, #-16] ldr x8, [x8, #32] stur x8, [x29, #-16] b LBB20_5 LBB20_10: ldur x8, [x29, #-16] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB20_12 b LBB20_11 LBB20_11: ldur x8, [x29, #-8] ldr x9, [sp, #24] str x8, [x9, #32] ldr x8, [sp, #24] ldur x9, [x29, #-8] str x8, [x9, #24] ldur x8, [x29, #-8] ; kill: def $x9 killed $xzr str xzr, [x8, #32] b LBB20_16 LBB20_12: ldur x8, [x29, #-16] adrp x9, _evlist@PAGE ldr x9, [x9, _evlist@PAGEOFF] subs x8, x8, x9 cset w8, ne tbnz w8, #0, LBB20_14 b LBB20_13 LBB20_13: adrp x9, _evlist@PAGE ldr x8, [x9, _evlist@PAGEOFF] ldur x10, [x29, #-8] str x8, [x10, #32] ldur x8, [x29, #-8] ; kill: def $x10 killed $xzr str xzr, [x8, #24] ldur x8, [x29, #-8] ldur x10, [x29, #-8] ldr x10, [x10, #32] str x8, [x10, #24] ldur x8, [x29, #-8] str x8, [x9, _evlist@PAGEOFF] b LBB20_15 LBB20_14: ldur x8, [x29, #-16] ldur x9, [x29, #-8] str x8, [x9, #32] ldur x8, [x29, #-16] ldr x8, [x8, #24] ldur x9, [x29, #-8] str x8, [x9, #24] ldur x8, [x29, #-8] ldur x9, [x29, #-16] ldr x9, [x9, #24] str x8, [x9, #32] ldur x8, [x29, #-8] ldur x9, [x29, #-16] str x8, [x9, #24] b LBB20_15 LBB20_15: b LBB20_16 LBB20_16: b LBB20_17 LBB20_17: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _printevlist ; -- Begin function printevlist .p2align 2 _printevlist: ; @printevlist .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x0, l_.str.46@PAGE add x0, x0, l_.str.46@PAGEOFF bl _printf adrp x8, _evlist@PAGE ldr x8, [x8, _evlist@PAGEOFF] stur x8, [x29, #-8] b LBB21_1 LBB21_1: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB21_4 b LBB21_2 LBB21_2: ; in Loop: Header=BB21_1 Depth=1 ldur x8, [x29, #-8] ldr s0, [x8] fcvt d0, s0 ldur x8, [x29, #-8] ldr w8, [x8, #4] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-8] ldr w9, [x8, #8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str d0, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x0, l_.str.47@PAGE add x0, x0, l_.str.47@PAGEOFF bl _printf b LBB21_3 LBB21_3: ; in Loop: Header=BB21_1 Depth=1 ldur x8, [x29, #-8] ldr x8, [x8, #32] stur x8, [x29, #-8] b LBB21_1 LBB21_4: adrp x0, l_.str.48@PAGE add x0, x0, l_.str.48@PAGEOFF bl _printf ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _nsimmax ; @nsimmax .zerofill __DATA,__common,_nsimmax,4,2 .comm _A,2072,2 ; @A .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "A_output: sent packet (seq=%d): %s\n" l_.str.1: ; @.str.1 .asciz " A_output: start timer for seq=%d\n" l_.str.2: ; @.str.2 .asciz " A_output: A.send_base: %d, A.next_seq: %d\n" l_.str.3: ; @.str.3 .asciz " A_output: Wrong seq number in GBN, aborted" l_.str.4: ; @.str.4 .asciz " A_output: buffer full. drop the message: %s\n" l_.str.5: ; @.str.5 .asciz " A_output: bufferred packet (seq=%d): %s\n" l_.str.6: ; @.str.6 .asciz "A buffer_next: %d\n" l_.str.7: ; @.str.7 .asciz " B_output: USED only when bi-directional.\n" l_.str.8: ; @.str.8 .asciz " A_timerinterrupt: resend packet (seq=%d): %s\n" l_.str.9: ; @.str.9 .asciz " A_input: corrupted NAK(ack=%d) drop packet.\n" l_.str.10: ; @.str.10 .asciz " A_input: duplicated ACK(ack=%d), drop packet.\n" l_.str.11: ; @.str.11 .asciz "A_input: fast retransmit ACK(ack=%d) \n" l_.str.12: ; @.str.12 .asciz "A_input: ACKed(ack=%d) from B.\n" l_.str.13: ; @.str.13 .asciz " A.send_base: %d, A.next_seq: %d\n" l_.str.14: ; @.str.14 .asciz " A_input: stop timer\n" l_.str.15: ; @.str.15 .asciz " A_input: restart timer + %f\n" l_.str.16: ; @.str.16 .asciz " A_timerinterrupt: restart timer + %f\n" l_.str.17: ; @.str.17 .asciz " B_input: packet from A is corrupted, send NAK(ack=%d)\n" .comm _B,4,2 ; @B l_.str.18: ; @.str.18 .asciz " B_input: packet seq:%d, send duplicated ACK(ack=%d)\n" l_.str.19: ; @.str.19 .asciz " B_input: recv packet (seq=%d): %s\n" l_.str.20: ; @.str.20 .asciz " B_input: send ACK(ack=%d)\n" l_.str.21: ; @.str.21 .asciz "B_timerinterrupt: USED only when bi-directional.\n" .globl _evlist ; @evlist .zerofill __DATA,__common,_evlist,8,3 .section __DATA,__data .globl _TRACE ; @TRACE .p2align 2 _TRACE: .long 1 ; 0x1 .globl _nsim ; @nsim .zerofill __DATA,__common,_nsim,4,2 .globl _time ; @time .zerofill __DATA,__common,_time,4,2 .section __TEXT,__cstring,cstring_literals l_.str.22: ; @.str.22 .asciz "\nEVENT time: %f," l_.str.23: ; @.str.23 .asciz " type: %d" l_.str.24: ; @.str.24 .asciz ", timerinterrupt " l_.str.25: ; @.str.25 .asciz ", fromlayer5 " l_.str.26: ; @.str.26 .asciz ", fromlayer3 " l_.str.27: ; @.str.27 .asciz " entity: %d\n" l_.str.28: ; @.str.28 .asciz " MAINLOOP: data given to student: " l_.str.29: ; @.str.29 .asciz "%c" l_.str.30: ; @.str.30 .asciz "\n" l_.str.31: ; @.str.31 .asciz "INTERNAL PANIC: unknown event type \n" l_.str.32: ; @.str.32 .asciz " Simulator terminated at time %f\n after sending %d msgs from layer5\n" l_.str.33: ; @.str.33 .asciz "usage: %s num_sim prob_loss prob_corrupt interval debug_level\n" .comm _lossprob,4,2 ; @lossprob .comm _corruptprob,4,2 ; @corruptprob .comm _lambda,4,2 ; @lambda l_.str.34: ; @.str.34 .asciz "----- Stop and Wait Network Simulator Version 1.1 -------- \n\n" l_.str.35: ; @.str.35 .asciz "the number of messages to simulate: %d\n" l_.str.36: ; @.str.36 .asciz "packet loss probability: %f\n" l_.str.37: ; @.str.37 .asciz "packet corruption probability: %f\n" l_.str.38: ; @.str.38 .asciz "average time between messages from sender's layer5: %f\n" l_.str.39: ; @.str.39 .asciz "TRACE: %d\n" l_.str.40: ; @.str.40 .asciz "It is likely that random number generation on your machine\n" l_.str.41: ; @.str.41 .asciz "is different from what this emulator expects. Please take\n" l_.str.42: ; @.str.42 .asciz "a look at the routine jimsrand() in the emulator code. Sorry. \n" .comm _ntolayer3,4,2 ; @ntolayer3 .comm _nlost,4,2 ; @nlost .comm _ncorrupt,4,2 ; @ncorrupt l_.str.43: ; @.str.43 .asciz " GENERATE NEXT ARRIVAL: creating new arrival\n" l_.str.44: ; @.str.44 .asciz " INSERTEVENT: time is %lf\n" l_.str.45: ; @.str.45 .asciz " INSERTEVENT: future time will be %lf\n" l_.str.46: ; @.str.46 .asciz "--------------\nEvent List Follows:\n" l_.str.47: ; @.str.47 .asciz "Event time: %f, type: %d entity: %d\n" l_.str.48: ; @.str.48 .asciz "--------------\n" l_.str.49: ; @.str.49 .asciz " STOP TIMER: stopping timer at %f\n" l_.str.50: ; @.str.50 .asciz "Warning: unable to cancel your timer. It wasn't running.\n" l_.str.51: ; @.str.51 .asciz " START TIMER: starting timer at %f\n" l_.str.52: ; @.str.52 .asciz "Warning: attempt to start a timer that is already started\n" l_.str.53: ; @.str.53 .asciz " TOLAYER3: packet being lost\n" l_.str.54: ; @.str.54 .asciz " TOLAYER3: seq: %d, ack %d, check: %d " l_.str.55: ; @.str.55 .asciz " TOLAYER3: packet being corrupted\n" l_.str.56: ; @.str.56 .asciz " TOLAYER3: scheduling arrival on other side\n" l_.str.57: ; @.str.57 .asciz " TOLAYER5: data received: " .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _getCheckSum ## -- Begin function getCheckSum .p2align 4, 0x90 _getCheckSum: ## @getCheckSum .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq 16(%rbp), %rax movq %rax, -16(%rbp) ## 8-byte Spill movl $0, -4(%rbp) movl (%rax), %ecx addl -4(%rbp), %ecx movl %ecx, -4(%rbp) movl 4(%rax), %eax addl -4(%rbp), %eax movl %eax, -4(%rbp) movl $0, -8(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $20, -8(%rbp) jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rax ## 8-byte Reload movslq -8(%rbp), %rcx movsbl 12(%rax,%rcx), %eax addl -4(%rbp), %eax movl %eax, -4(%rbp) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) jmp LBB0_1 LBB0_4: movl -4(%rbp), %eax popq %rbp retq .cfi_endproc ## -- End function .globl _send_buffer ## -- Begin function send_buffer .p2align 4, 0x90 _send_buffer: ## @send_buffer .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movq _A@GOTPCREL(%rip), %rax movl 4(%rax), %ecx xorl %eax, %eax ## kill: def $al killed $al killed $eax movq _A@GOTPCREL(%rip), %rdx cmpl 8(%rdx), %ecx movb %al, -41(%rbp) ## 1-byte Spill jge LBB1_3 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq _A@GOTPCREL(%rip), %rax movl 4(%rax), %eax movq _A@GOTPCREL(%rip), %rcx movl (%rcx), %ecx movq _A@GOTPCREL(%rip), %rdx addl 12(%rdx), %ecx cmpl %ecx, %eax setl %al movb %al, -41(%rbp) ## 1-byte Spill LBB1_3: ## in Loop: Header=BB1_1 Depth=1 movb -41(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB1_4 jmp LBB1_7 LBB1_4: ## in Loop: Header=BB1_1 Depth=1 movq _A@GOTPCREL(%rip), %rax movl 4(%rax), %eax movl $64, %ecx cltd idivl %ecx movslq %edx, %rcx movq _A@GOTPCREL(%rip), %rax addq $16, %rax shlq $5, %rcx addq %rcx, %rax movq (%rax), %rcx movq %rcx, -40(%rbp) movq 8(%rax), %rcx movq %rcx, -32(%rbp) movq 16(%rax), %rcx movq %rcx, -24(%rbp) movq 24(%rax), %rax movq %rax, -16(%rbp) movl -40(%rbp), %esi leaq -40(%rbp), %rdx addq $12, %rdx leaq L_.str(%rip), %rdi movb $0, %al callq _printf xorl %edi, %edi leaq -40(%rbp), %rax movq (%rax), %rcx movq %rcx, (%rsp) movq 8(%rax), %rcx movq %rcx, 8(%rsp) movq 16(%rax), %rcx movq %rcx, 16(%rsp) movq 24(%rax), %rax movq %rax, 24(%rsp) callq _tolayer3 movq _A@GOTPCREL(%rip), %rax movl 4(%rax), %eax movq _A@GOTPCREL(%rip), %rcx cmpl (%rcx), %eax jne LBB1_6 ## %bb.5: ## in Loop: Header=BB1_1 Depth=1 movq _A@GOTPCREL(%rip), %rax movss 2064(%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero xorl %edi, %edi callq _starttimer movq _A@GOTPCREL(%rip), %rax movl (%rax), %esi leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf LBB1_6: ## in Loop: Header=BB1_1 Depth=1 movq _A@GOTPCREL(%rip), %rax movl 4(%rax), %ecx addl $1, %ecx movq _A@GOTPCREL(%rip), %rax movl %ecx, 4(%rax) movq _A@GOTPCREL(%rip), %rax movl (%rax), %esi movq _A@GOTPCREL(%rip), %rax movl 4(%rax), %edx leaq L_.str.2(%rip), %rdi movb $0, %al callq _printf jmp LBB1_1 LBB1_7: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB1_9 ## %bb.8: addq $80, %rsp popq %rbp retq LBB1_9: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function tolayer3 LCPI2_0: .long 0x41100000 ## float 9 LCPI2_1: .long 0x3f800000 ## float 1 .section __TEXT,__literal8,8byte_literals .p2align 3 LCPI2_2: .quad 0x3fe8000000000000 ## double 0.75 LCPI2_3: .quad 0x3fec000000000000 ## double 0.875 .section __TEXT,__text,regular,pure_instructions .globl _tolayer3 .p2align 4, 0x90 _tolayer3: ## @tolayer3 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $64, %rsp leaq 16(%rbp), %rax movq %rax, -56(%rbp) ## 8-byte Spill movl %edi, -4(%rbp) movq _ntolayer3@GOTPCREL(%rip), %rax movl (%rax), %ecx addl $1, %ecx movq _ntolayer3@GOTPCREL(%rip), %rax movl %ecx, (%rax) callq _jimsrand movaps %xmm0, %xmm1 movq _lossprob@GOTPCREL(%rip), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero ucomiss %xmm1, %xmm0 jbe LBB2_4 ## %bb.1: movq _nlost@GOTPCREL(%rip), %rax movl (%rax), %ecx addl $1, %ecx movq _nlost@GOTPCREL(%rip), %rax movl %ecx, (%rax) cmpl $0, _TRACE(%rip) jle LBB2_3 ## %bb.2: leaq L_.str.53(%rip), %rdi movb $0, %al callq _printf LBB2_3: jmp LBB2_34 LBB2_4: movl $32, %edi callq _malloc movq %rax, %rcx movq -56(%rbp), %rax ## 8-byte Reload movq %rcx, -16(%rbp) movl (%rax), %edx movq -16(%rbp), %rcx movl %edx, (%rcx) movl 4(%rax), %edx movq -16(%rbp), %rcx movl %edx, 4(%rcx) movl 8(%rax), %ecx movq -16(%rbp), %rax movl %ecx, 8(%rax) movl $0, -44(%rbp) LBB2_5: ## =>This Inner Loop Header: Depth=1 cmpl $20, -44(%rbp) jge LBB2_8 ## %bb.6: ## in Loop: Header=BB2_5 Depth=1 movq -56(%rbp), %rax ## 8-byte Reload movslq -44(%rbp), %rcx movb 12(%rax,%rcx), %dl movq -16(%rbp), %rax movslq -44(%rbp), %rcx movb %dl, 12(%rax,%rcx) ## %bb.7: ## in Loop: Header=BB2_5 Depth=1 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB2_5 LBB2_8: cmpl $2, _TRACE(%rip) jle LBB2_14 ## %bb.9: movq -16(%rbp), %rax movl (%rax), %esi movq -16(%rbp), %rax movl 4(%rax), %edx movq -16(%rbp), %rax movl 8(%rax), %ecx leaq L_.str.54(%rip), %rdi movb $0, %al callq _printf movl $0, -44(%rbp) LBB2_10: ## =>This Inner Loop Header: Depth=1 cmpl $20, -44(%rbp) jge LBB2_13 ## %bb.11: ## in Loop: Header=BB2_10 Depth=1 movq -16(%rbp), %rax movslq -44(%rbp), %rcx movsbl 12(%rax,%rcx), %esi leaq L_.str.29(%rip), %rdi movb $0, %al callq _printf ## %bb.12: ## in Loop: Header=BB2_10 Depth=1 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB2_10 LBB2_13: leaq L_.str.30(%rip), %rdi movb $0, %al callq _printf LBB2_14: movl $40, %edi callq _malloc movq %rax, -24(%rbp) movq -24(%rbp), %rax movl $2, 4(%rax) movl -4(%rbp), %eax addl $1, %eax movl $2, %ecx cltd idivl %ecx movq -24(%rbp), %rax movl %edx, 8(%rax) movq -16(%rbp), %rcx movq -24(%rbp), %rax movq %rcx, 16(%rax) movss _time(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -36(%rbp) movq _evlist(%rip), %rax movq %rax, -32(%rbp) LBB2_15: ## =>This Inner Loop Header: Depth=1 cmpq $0, -32(%rbp) je LBB2_21 ## %bb.16: ## in Loop: Header=BB2_15 Depth=1 movq -32(%rbp), %rax cmpl $2, 4(%rax) jne LBB2_19 ## %bb.17: ## in Loop: Header=BB2_15 Depth=1 movq -32(%rbp), %rax movl 8(%rax), %eax movq -24(%rbp), %rcx cmpl 8(%rcx), %eax jne LBB2_19 ## %bb.18: ## in Loop: Header=BB2_15 Depth=1 movq -32(%rbp), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -36(%rbp) LBB2_19: ## in Loop: Header=BB2_15 Depth=1 jmp LBB2_20 LBB2_20: ## in Loop: Header=BB2_15 Depth=1 movq -32(%rbp), %rax movq 32(%rax), %rax movq %rax, -32(%rbp) jmp LBB2_15 LBB2_21: movss LCPI2_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -36(%rbp), %xmm0 movss %xmm0, -60(%rbp) ## 4-byte Spill callq _jimsrand movss -60(%rbp), %xmm1 ## 4-byte Reload ## xmm1 = mem[0],zero,zero,zero movss LCPI2_0(%rip), %xmm2 ## xmm2 = mem[0],zero,zero,zero mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movq -24(%rbp), %rax movss %xmm0, (%rax) callq _jimsrand movaps %xmm0, %xmm1 movq _corruptprob@GOTPCREL(%rip), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero ucomiss %xmm1, %xmm0 jbe LBB2_31 ## %bb.22: movq _ncorrupt@GOTPCREL(%rip), %rax movl (%rax), %ecx addl $1, %ecx movq _ncorrupt@GOTPCREL(%rip), %rax movl %ecx, (%rax) callq _jimsrand movss %xmm0, -40(%rbp) cvtss2sd %xmm0, %xmm1 movsd LCPI2_2(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 jbe LBB2_24 ## %bb.23: movq -16(%rbp), %rax movb $90, 12(%rax) jmp LBB2_28 LBB2_24: movss -40(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movsd LCPI2_3(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 jbe LBB2_26 ## %bb.25: movq -16(%rbp), %rax movl $999999, (%rax) ## imm = 0xF423F jmp LBB2_27 LBB2_26: movq -16(%rbp), %rax movl $999999, 4(%rax) ## imm = 0xF423F LBB2_27: jmp LBB2_28 LBB2_28: cmpl $0, _TRACE(%rip) jle LBB2_30 ## %bb.29: leaq L_.str.55(%rip), %rdi movb $0, %al callq _printf LBB2_30: jmp LBB2_31 LBB2_31: cmpl $2, _TRACE(%rip) jle LBB2_33 ## %bb.32: leaq L_.str.56(%rip), %rdi movb $0, %al callq _printf LBB2_33: movq -24(%rbp), %rdi callq _insertevent LBB2_34: addq $64, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _starttimer ## -- Begin function starttimer .p2align 4, 0x90 _starttimer: ## @starttimer .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) movss %xmm0, -8(%rbp) cmpl $2, _TRACE(%rip) jle LBB3_2 ## %bb.1: movss _time(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.51(%rip), %rdi movb $1, %al callq _printf LBB3_2: movq _evlist(%rip), %rax movq %rax, -16(%rbp) LBB3_3: ## =>This Inner Loop Header: Depth=1 cmpq $0, -16(%rbp) je LBB3_9 ## %bb.4: ## in Loop: Header=BB3_3 Depth=1 movq -16(%rbp), %rax cmpl $0, 4(%rax) jne LBB3_7 ## %bb.5: ## in Loop: Header=BB3_3 Depth=1 movq -16(%rbp), %rax movl 8(%rax), %eax cmpl -4(%rbp), %eax jne LBB3_7 ## %bb.6: leaq L_.str.52(%rip), %rdi movb $0, %al callq _printf jmp LBB3_10 LBB3_7: ## in Loop: Header=BB3_3 Depth=1 jmp LBB3_8 LBB3_8: ## in Loop: Header=BB3_3 Depth=1 movq -16(%rbp), %rax movq 32(%rax), %rax movq %rax, -16(%rbp) jmp LBB3_3 LBB3_9: movl $40, %edi callq _malloc movq %rax, -24(%rbp) movss _time(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero addss -8(%rbp), %xmm0 movq -24(%rbp), %rax movss %xmm0, (%rax) movq -24(%rbp), %rax movl $0, 4(%rax) movl -4(%rbp), %ecx movq -24(%rbp), %rax movl %ecx, 8(%rax) movq -24(%rbp), %rdi callq _insertevent LBB3_10: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _A_output ## -- Begin function A_output .p2align 4, 0x90 _A_output: ## @A_output .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $96, %rsp leaq 16(%rbp), %rax movq %rax, -56(%rbp) ## 8-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq _A@GOTPCREL(%rip), %rax movl 8(%rax), %eax movq _A@GOTPCREL(%rip), %rcx cmpl (%rcx), %eax jge LBB4_2 ## %bb.1: leaq L_.str.3(%rip), %rdi movb $0, %al callq _printf jmp LBB4_5 LBB4_2: movq _A@GOTPCREL(%rip), %rax movl 8(%rax), %eax movq _A@GOTPCREL(%rip), %rcx movl (%rcx), %ecx addl $64, %ecx cmpl %ecx, %eax jl LBB4_4 ## %bb.3: movq -56(%rbp), %rsi ## 8-byte Reload leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf jmp LBB4_5 LBB4_4: movq -56(%rbp), %rdx ## 8-byte Reload movq _A@GOTPCREL(%rip), %rax movl 8(%rax), %esi leaq L_.str.5(%rip), %rdi movb $0, %al callq _printf movq -56(%rbp), %rsi ## 8-byte Reload movq _A@GOTPCREL(%rip), %rax movl 8(%rax), %eax movl $64, %ecx cltd idivl %ecx movslq %edx, %rcx movq _A@GOTPCREL(%rip), %rax addq $16, %rax shlq $5, %rcx addq %rcx, %rax movq %rax, -48(%rbp) movq _A@GOTPCREL(%rip), %rax movl 8(%rax), %ecx movq -48(%rbp), %rax movl %ecx, (%rax) movq -48(%rbp), %rdi addq $12, %rdi movl $20, %edx movq $-1, %rcx callq ___memmove_chk movq -48(%rbp), %rax movq (%rax), %rcx movq %rcx, -40(%rbp) movq 8(%rax), %rcx movq %rcx, -32(%rbp) movq 16(%rax), %rcx movq %rcx, -24(%rbp) movq 24(%rax), %rax movq %rax, -16(%rbp) leaq -40(%rbp), %rax movq (%rax), %rcx movq %rcx, (%rsp) movq 8(%rax), %rcx movq %rcx, 8(%rsp) movq 16(%rax), %rcx movq %rcx, 16(%rsp) movq 24(%rax), %rax movq %rax, 24(%rsp) callq _getCheckSum movl %eax, %ecx movq -48(%rbp), %rax movl %ecx, 8(%rax) movq _A@GOTPCREL(%rip), %rax movl 8(%rax), %ecx addl $1, %ecx movq _A@GOTPCREL(%rip), %rax movl %ecx, 8(%rax) movq _A@GOTPCREL(%rip), %rax movl 8(%rax), %esi leaq L_.str.6(%rip), %rdi movb $0, %al callq _printf callq _send_buffer LBB4_5: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB4_7 ## %bb.6: addq $96, %rsp popq %rbp retq LBB4_7: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _B_output ## -- Begin function B_output .p2align 4, 0x90 _B_output: ## @B_output .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str.7(%rip), %rdi movb $0, %al callq _printf popq %rbp retq .cfi_endproc ## -- End function .globl _retransmit_pkt ## -- Begin function retransmit_pkt .p2align 4, 0x90 _retransmit_pkt: ## @retransmit_pkt .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movq _A@GOTPCREL(%rip), %rax movl (%rax), %eax movl %eax, -44(%rbp) LBB6_1: ## =>This Inner Loop Header: Depth=1 movl -44(%rbp), %eax movq _A@GOTPCREL(%rip), %rcx cmpl 4(%rcx), %eax jge LBB6_4 ## %bb.2: ## in Loop: Header=BB6_1 Depth=1 movl -44(%rbp), %eax movl $64, %ecx cltd idivl %ecx movslq %edx, %rcx movq _A@GOTPCREL(%rip), %rax addq $16, %rax shlq $5, %rcx addq %rcx, %rax movq (%rax), %rcx movq %rcx, -40(%rbp) movq 8(%rax), %rcx movq %rcx, -32(%rbp) movq 16(%rax), %rcx movq %rcx, -24(%rbp) movq 24(%rax), %rax movq %rax, -16(%rbp) movl -40(%rbp), %esi leaq -40(%rbp), %rdx addq $12, %rdx leaq L_.str.8(%rip), %rdi movb $0, %al callq _printf xorl %edi, %edi leaq -40(%rbp), %rax movq (%rax), %rcx movq %rcx, (%rsp) movq 8(%rax), %rcx movq %rcx, 8(%rsp) movq 16(%rax), %rcx movq %rcx, 16(%rsp) movq 24(%rax), %rax movq %rax, 24(%rsp) callq _tolayer3 ## %bb.3: ## in Loop: Header=BB6_1 Depth=1 movl -44(%rbp), %eax addl $1, %eax movl %eax, -44(%rbp) jmp LBB6_1 LBB6_4: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB6_6 ## %bb.5: addq $80, %rsp popq %rbp retq LBB6_6: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _A_input ## -- Begin function A_input .p2align 4, 0x90 _A_input: ## @A_input .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp leaq 16(%rbp), %rax movq %rax, -16(%rbp) ## 8-byte Spill movl 8(%rax), %ecx movl %ecx, -4(%rbp) ## 4-byte Spill movq (%rax), %rcx movq %rcx, (%rsp) movq 8(%rax), %rcx movq %rcx, 8(%rsp) movq 16(%rax), %rcx movq %rcx, 16(%rsp) movq 24(%rax), %rax movq %rax, 24(%rsp) callq _getCheckSum movl %eax, %ecx movl -4(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax je LBB7_2 ## %bb.1: movq -16(%rbp), %rax ## 8-byte Reload movl 4(%rax), %esi leaq L_.str.9(%rip), %rdi movb $0, %al callq _printf jmp LBB7_11 LBB7_2: movq -16(%rbp), %rax ## 8-byte Reload movl 4(%rax), %eax movq _A@GOTPCREL(%rip), %rcx cmpl (%rcx), %eax jge LBB7_8 ## %bb.3: movq _A@GOTPCREL(%rip), %rax movl (%rax), %eax cmpl _nsimmax(%rip), %eax jne LBB7_5 ## %bb.4: jmp LBB7_11 LBB7_5: movq -16(%rbp), %rax ## 8-byte Reload movl 4(%rax), %esi leaq L_.str.10(%rip), %rdi movb $0, %al callq _printf movq _A@GOTPCREL(%rip), %rax cmpl $3, 2068(%rax) jne LBB7_7 ## %bb.6: movq -16(%rbp), %rax ## 8-byte Reload movl 4(%rax), %esi leaq L_.str.11(%rip), %rdi movb $0, %al callq _printf callq _retransmit_pkt movq _A@GOTPCREL(%rip), %rax movl $0, 2068(%rax) LBB7_7: movq _A@GOTPCREL(%rip), %rax movl 2068(%rax), %ecx addl $1, %ecx movq _A@GOTPCREL(%rip), %rax movl %ecx, 2068(%rax) jmp LBB7_11 LBB7_8: movq -16(%rbp), %rax ## 8-byte Reload movl 4(%rax), %esi leaq L_.str.12(%rip), %rdi movb $0, %al callq _printf ## kill: def $ecx killed $eax movq -16(%rbp), %rax ## 8-byte Reload movl 4(%rax), %ecx addl $1, %ecx movq _A@GOTPCREL(%rip), %rax movl %ecx, (%rax) movq _A@GOTPCREL(%rip), %rax movl (%rax), %esi movq _A@GOTPCREL(%rip), %rax movl 4(%rax), %edx leaq L_.str.13(%rip), %rdi movb $0, %al callq _printf xorl %edi, %edi callq _stoptimer movq _A@GOTPCREL(%rip), %rax movl (%rax), %eax movq _A@GOTPCREL(%rip), %rcx cmpl 4(%rcx), %eax jne LBB7_10 ## %bb.9: leaq L_.str.14(%rip), %rdi movb $0, %al callq _printf callq _send_buffer jmp LBB7_11 LBB7_10: movq _A@GOTPCREL(%rip), %rax movss 2064(%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero xorl %edi, %edi callq _starttimer movq _A@GOTPCREL(%rip), %rax movss 2064(%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.15(%rip), %rdi movb $1, %al callq _printf LBB7_11: addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _stoptimer ## -- Begin function stoptimer .p2align 4, 0x90 _stoptimer: ## @stoptimer .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) cmpl $2, _TRACE(%rip) jle LBB8_2 ## %bb.1: movss _time(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.49(%rip), %rdi movb $1, %al callq _printf LBB8_2: movq _evlist(%rip), %rax movq %rax, -16(%rbp) LBB8_3: ## =>This Inner Loop Header: Depth=1 cmpq $0, -16(%rbp) je LBB8_19 ## %bb.4: ## in Loop: Header=BB8_3 Depth=1 movq -16(%rbp), %rax cmpl $0, 4(%rax) jne LBB8_17 ## %bb.5: ## in Loop: Header=BB8_3 Depth=1 movq -16(%rbp), %rax movl 8(%rax), %eax cmpl -4(%rbp), %eax jne LBB8_17 ## %bb.6: movq -16(%rbp), %rax cmpq $0, 32(%rax) jne LBB8_9 ## %bb.7: movq -16(%rbp), %rax cmpq $0, 24(%rax) jne LBB8_9 ## %bb.8: movq $0, _evlist(%rip) jmp LBB8_16 LBB8_9: movq -16(%rbp), %rax cmpq $0, 32(%rax) jne LBB8_11 ## %bb.10: movq -16(%rbp), %rax movq 24(%rax), %rax movq $0, 32(%rax) jmp LBB8_15 LBB8_11: movq -16(%rbp), %rax cmpq _evlist(%rip), %rax jne LBB8_13 ## %bb.12: movq -16(%rbp), %rax movq 32(%rax), %rax movq $0, 24(%rax) movq -16(%rbp), %rax movq 32(%rax), %rax movq %rax, _evlist(%rip) jmp LBB8_14 LBB8_13: movq -16(%rbp), %rax movq 24(%rax), %rcx movq -16(%rbp), %rax movq 32(%rax), %rax movq %rcx, 24(%rax) movq -16(%rbp), %rax movq 32(%rax), %rcx movq -16(%rbp), %rax movq 24(%rax), %rax movq %rcx, 32(%rax) LBB8_14: jmp LBB8_15 LBB8_15: jmp LBB8_16 LBB8_16: movq -16(%rbp), %rdi callq _free jmp LBB8_20 LBB8_17: ## in Loop: Header=BB8_3 Depth=1 jmp LBB8_18 LBB8_18: ## in Loop: Header=BB8_3 Depth=1 movq -16(%rbp), %rax movq 32(%rax), %rax movq %rax, -16(%rbp) jmp LBB8_3 LBB8_19: leaq L_.str.50(%rip), %rdi movb $0, %al callq _printf LBB8_20: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _A_timerinterrupt ## -- Begin function A_timerinterrupt .p2align 4, 0x90 _A_timerinterrupt: ## @A_timerinterrupt .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp callq _retransmit_pkt movq _A@GOTPCREL(%rip), %rax movss 2064(%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero xorl %edi, %edi callq _starttimer movq _A@GOTPCREL(%rip), %rax movss 2064(%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.16(%rip), %rdi movb $1, %al callq _printf popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function A_init LCPI10_0: .long 0x41700000 ## float 15 .section __TEXT,__text,regular,pure_instructions .globl _A_init .p2align 4, 0x90 _A_init: ## @A_init .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _A@GOTPCREL(%rip), %rax movl $0, (%rax) movq _A@GOTPCREL(%rip), %rax movl $0, 4(%rax) movq _A@GOTPCREL(%rip), %rax movl $0, 8(%rax) movq _A@GOTPCREL(%rip), %rax movss LCPI10_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, 2064(%rax) movq _A@GOTPCREL(%rip), %rax movl $8, 12(%rax) popq %rbp retq .cfi_endproc ## -- End function .globl _send_ack ## -- Begin function send_ack .p2align 4, 0x90 _send_ack: ## @send_ack .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $80, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl %edi, -44(%rbp) movl %esi, -48(%rbp) movl -48(%rbp), %eax movl %eax, -36(%rbp) leaq -40(%rbp), %rax movq (%rax), %rcx movq %rcx, (%rsp) movq 8(%rax), %rcx movq %rcx, 8(%rsp) movq 16(%rax), %rcx movq %rcx, 16(%rsp) movq 24(%rax), %rax movq %rax, 24(%rsp) callq _getCheckSum movl %eax, -32(%rbp) movl -44(%rbp), %edi leaq -40(%rbp), %rax movq (%rax), %rcx movq %rcx, (%rsp) movq 8(%rax), %rcx movq %rcx, 8(%rsp) movq 16(%rax), %rcx movq %rcx, 16(%rsp) movq 24(%rax), %rax movq %rax, 24(%rsp) callq _tolayer3 movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB11_2 ## %bb.1: addq $80, %rsp popq %rbp retq LBB11_2: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .globl _B_input ## -- Begin function B_input .p2align 4, 0x90 _B_input: ## @B_input .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp leaq 16(%rbp), %rax movq %rax, -16(%rbp) ## 8-byte Spill movl 8(%rax), %ecx movl %ecx, -4(%rbp) ## 4-byte Spill movq (%rax), %rcx movq %rcx, (%rsp) movq 8(%rax), %rcx movq %rcx, 8(%rsp) movq 16(%rax), %rcx movq %rcx, 16(%rsp) movq 24(%rax), %rax movq %rax, 24(%rsp) callq _getCheckSum movl %eax, %ecx movl -4(%rbp), %eax ## 4-byte Reload cmpl %ecx, %eax je LBB12_2 ## %bb.1: movq _B@GOTPCREL(%rip), %rax movl (%rax), %esi subl $1, %esi leaq L_.str.17(%rip), %rdi movb $0, %al callq _printf movq _B@GOTPCREL(%rip), %rax movl (%rax), %esi subl $1, %esi movl $1, %edi callq _send_ack jmp LBB12_5 LBB12_2: movq -16(%rbp), %rax ## 8-byte Reload movl (%rax), %eax movq _B@GOTPCREL(%rip), %rcx cmpl (%rcx), %eax je LBB12_4 ## %bb.3: movq -16(%rbp), %rax ## 8-byte Reload movl (%rax), %esi movq _B@GOTPCREL(%rip), %rax movl (%rax), %edx subl $1, %edx leaq L_.str.18(%rip), %rdi movb $0, %al callq _printf movq _B@GOTPCREL(%rip), %rax movl (%rax), %esi subl $1, %esi movl $1, %edi callq _send_ack jmp LBB12_5 LBB12_4: movq -16(%rbp), %rdx ## 8-byte Reload movl (%rdx), %esi addq $12, %rdx leaq L_.str.19(%rip), %rdi movb $0, %al callq _printf movq _B@GOTPCREL(%rip), %rax movl (%rax), %esi leaq L_.str.20(%rip), %rdi movb $0, %al callq _printf movq _B@GOTPCREL(%rip), %rax movl (%rax), %esi movl $1, %edi callq _send_ack movq -16(%rbp), %rsi ## 8-byte Reload addq $12, %rsi movl $1, %edi callq _tolayer5 movq _B@GOTPCREL(%rip), %rax movl (%rax), %ecx addl $1, %ecx movq _B@GOTPCREL(%rip), %rax movl %ecx, (%rax) LBB12_5: addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _tolayer5 ## -- Begin function tolayer5 .p2align 4, 0x90 _tolayer5: ## @tolayer5 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) cmpl $2, _TRACE(%rip) jle LBB13_6 ## %bb.1: leaq L_.str.57(%rip), %rdi movb $0, %al callq _printf movl $0, -20(%rbp) LBB13_2: ## =>This Inner Loop Header: Depth=1 cmpl $20, -20(%rbp) jge LBB13_5 ## %bb.3: ## in Loop: Header=BB13_2 Depth=1 movq -16(%rbp), %rax movslq -20(%rbp), %rcx movsbl (%rax,%rcx), %esi leaq L_.str.29(%rip), %rdi movb $0, %al callq _printf ## %bb.4: ## in Loop: Header=BB13_2 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB13_2 LBB13_5: leaq L_.str.30(%rip), %rdi movb $0, %al callq _printf LBB13_6: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _B_timerinterrupt ## -- Begin function B_timerinterrupt .p2align 4, 0x90 _B_timerinterrupt: ## @B_timerinterrupt .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str.21(%rip), %rdi movb $0, %al callq _printf popq %rbp retq .cfi_endproc ## -- End function .globl _B_init ## -- Begin function B_init .p2align 4, 0x90 _B_init: ## @B_init .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq _B@GOTPCREL(%rip), %rax movl $0, (%rax) popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $144, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) movl $0, -68(%rbp) movl %edi, -72(%rbp) movq %rsi, -80(%rbp) movl -72(%rbp), %edi movq -80(%rbp), %rsi callq _init callq _A_init callq _B_init LBB16_1: ## =>This Loop Header: Depth=1 ## Child Loop BB16_18 Depth 2 ## Child Loop BB16_23 Depth 2 ## Child Loop BB16_34 Depth 2 movq _evlist(%rip), %rax movq %rax, -88(%rbp) cmpq $0, -88(%rbp) jne LBB16_3 ## %bb.2: jmp LBB16_50 LBB16_3: ## in Loop: Header=BB16_1 Depth=1 movq _evlist(%rip), %rax movq 32(%rax), %rax movq %rax, _evlist(%rip) cmpq $0, _evlist(%rip) je LBB16_5 ## %bb.4: ## in Loop: Header=BB16_1 Depth=1 movq _evlist(%rip), %rax movq $0, 24(%rax) LBB16_5: ## in Loop: Header=BB16_1 Depth=1 cmpl $2, _TRACE(%rip) jl LBB16_13 ## %bb.6: ## in Loop: Header=BB16_1 Depth=1 movq -88(%rbp), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.22(%rip), %rdi movb $1, %al callq _printf movq -88(%rbp), %rax movl 4(%rax), %esi leaq L_.str.23(%rip), %rdi movb $0, %al callq _printf movq -88(%rbp), %rax cmpl $0, 4(%rax) jne LBB16_8 ## %bb.7: ## in Loop: Header=BB16_1 Depth=1 leaq L_.str.24(%rip), %rdi movb $0, %al callq _printf jmp LBB16_12 LBB16_8: ## in Loop: Header=BB16_1 Depth=1 movq -88(%rbp), %rax cmpl $1, 4(%rax) jne LBB16_10 ## %bb.9: ## in Loop: Header=BB16_1 Depth=1 leaq L_.str.25(%rip), %rdi movb $0, %al callq _printf jmp LBB16_11 LBB16_10: ## in Loop: Header=BB16_1 Depth=1 leaq L_.str.26(%rip), %rdi movb $0, %al callq _printf LBB16_11: ## in Loop: Header=BB16_1 Depth=1 jmp LBB16_12 LBB16_12: ## in Loop: Header=BB16_1 Depth=1 movq -88(%rbp), %rax movl 8(%rax), %esi leaq L_.str.27(%rip), %rdi movb $0, %al callq _printf LBB16_13: ## in Loop: Header=BB16_1 Depth=1 movq -88(%rbp), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, _time(%rip) movq -88(%rbp), %rax cmpl $1, 4(%rax) jne LBB16_32 ## %bb.14: ## in Loop: Header=BB16_1 Depth=1 movl _nsim(%rip), %eax cmpl _nsimmax(%rip), %eax jge LBB16_31 ## %bb.15: ## in Loop: Header=BB16_1 Depth=1 movl _nsim(%rip), %eax addl $1, %eax cmpl _nsimmax(%rip), %eax jge LBB16_17 ## %bb.16: ## in Loop: Header=BB16_1 Depth=1 callq _generate_next_arrival LBB16_17: ## in Loop: Header=BB16_1 Depth=1 movl _nsim(%rip), %eax movl $26, %ecx cltd idivl %ecx movl %edx, -96(%rbp) movl $0, -92(%rbp) LBB16_18: ## Parent Loop BB16_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $20, -92(%rbp) jge LBB16_21 ## %bb.19: ## in Loop: Header=BB16_18 Depth=2 movl -96(%rbp), %eax addl $97, %eax movb %al, %cl movslq -92(%rbp), %rax movb %cl, -32(%rbp,%rax) ## %bb.20: ## in Loop: Header=BB16_18 Depth=2 movl -92(%rbp), %eax addl $1, %eax movl %eax, -92(%rbp) jmp LBB16_18 LBB16_21: ## in Loop: Header=BB16_1 Depth=1 movb $0, -13(%rbp) cmpl $2, _TRACE(%rip) jle LBB16_27 ## %bb.22: ## in Loop: Header=BB16_1 Depth=1 leaq L_.str.28(%rip), %rdi movb $0, %al callq _printf movl $0, -92(%rbp) LBB16_23: ## Parent Loop BB16_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $20, -92(%rbp) jge LBB16_26 ## %bb.24: ## in Loop: Header=BB16_23 Depth=2 movslq -92(%rbp), %rax movsbl -32(%rbp,%rax), %esi leaq L_.str.29(%rip), %rdi movb $0, %al callq _printf ## %bb.25: ## in Loop: Header=BB16_23 Depth=2 movl -92(%rbp), %eax addl $1, %eax movl %eax, -92(%rbp) jmp LBB16_23 LBB16_26: ## in Loop: Header=BB16_1 Depth=1 leaq L_.str.30(%rip), %rdi movb $0, %al callq _printf LBB16_27: ## in Loop: Header=BB16_1 Depth=1 movl _nsim(%rip), %eax addl $1, %eax movl %eax, _nsim(%rip) movq -88(%rbp), %rax cmpl $0, 8(%rax) jne LBB16_29 ## %bb.28: ## in Loop: Header=BB16_1 Depth=1 leaq -32(%rbp), %rax movq (%rax), %rcx movq %rcx, (%rsp) movq 8(%rax), %rcx movq %rcx, 8(%rsp) movl 16(%rax), %eax movl %eax, 16(%rsp) callq _A_output jmp LBB16_30 LBB16_29: ## in Loop: Header=BB16_1 Depth=1 leaq -32(%rbp), %rax movq (%rax), %rcx movq %rcx, (%rsp) movq 8(%rax), %rcx movq %rcx, 8(%rsp) movl 16(%rax), %eax movl %eax, 16(%rsp) callq _B_output LBB16_30: ## in Loop: Header=BB16_1 Depth=1 jmp LBB16_31 LBB16_31: ## in Loop: Header=BB16_1 Depth=1 jmp LBB16_49 LBB16_32: ## in Loop: Header=BB16_1 Depth=1 movq -88(%rbp), %rax cmpl $2, 4(%rax) jne LBB16_41 ## %bb.33: ## in Loop: Header=BB16_1 Depth=1 movq -88(%rbp), %rax movq 16(%rax), %rax movl (%rax), %eax movl %eax, -64(%rbp) movq -88(%rbp), %rax movq 16(%rax), %rax movl 4(%rax), %eax movl %eax, -60(%rbp) movq -88(%rbp), %rax movq 16(%rax), %rax movl 8(%rax), %eax movl %eax, -56(%rbp) movl $0, -92(%rbp) LBB16_34: ## Parent Loop BB16_1 Depth=1 ## => This Inner Loop Header: Depth=2 cmpl $20, -92(%rbp) jge LBB16_37 ## %bb.35: ## in Loop: Header=BB16_34 Depth=2 movq -88(%rbp), %rax movq 16(%rax), %rax movslq -92(%rbp), %rcx movb 12(%rax,%rcx), %cl movslq -92(%rbp), %rax movb %cl, -52(%rbp,%rax) ## %bb.36: ## in Loop: Header=BB16_34 Depth=2 movl -92(%rbp), %eax addl $1, %eax movl %eax, -92(%rbp) jmp LBB16_34 LBB16_37: ## in Loop: Header=BB16_1 Depth=1 movq -88(%rbp), %rax cmpl $0, 8(%rax) jne LBB16_39 ## %bb.38: ## in Loop: Header=BB16_1 Depth=1 leaq -64(%rbp), %rax movq (%rax), %rcx movq %rcx, (%rsp) movq 8(%rax), %rcx movq %rcx, 8(%rsp) movq 16(%rax), %rcx movq %rcx, 16(%rsp) movq 24(%rax), %rax movq %rax, 24(%rsp) callq _A_input jmp LBB16_40 LBB16_39: ## in Loop: Header=BB16_1 Depth=1 leaq -64(%rbp), %rax movq (%rax), %rcx movq %rcx, (%rsp) movq 8(%rax), %rcx movq %rcx, 8(%rsp) movq 16(%rax), %rcx movq %rcx, 16(%rsp) movq 24(%rax), %rax movq %rax, 24(%rsp) callq _B_input LBB16_40: ## in Loop: Header=BB16_1 Depth=1 movq -88(%rbp), %rax movq 16(%rax), %rdi callq _free jmp LBB16_48 LBB16_41: ## in Loop: Header=BB16_1 Depth=1 movq -88(%rbp), %rax cmpl $0, 4(%rax) jne LBB16_46 ## %bb.42: ## in Loop: Header=BB16_1 Depth=1 movq -88(%rbp), %rax cmpl $0, 8(%rax) jne LBB16_44 ## %bb.43: ## in Loop: Header=BB16_1 Depth=1 callq _A_timerinterrupt jmp LBB16_45 LBB16_44: ## in Loop: Header=BB16_1 Depth=1 callq _B_timerinterrupt LBB16_45: ## in Loop: Header=BB16_1 Depth=1 jmp LBB16_47 LBB16_46: ## in Loop: Header=BB16_1 Depth=1 leaq L_.str.31(%rip), %rdi movb $0, %al callq _printf LBB16_47: ## in Loop: Header=BB16_1 Depth=1 jmp LBB16_48 LBB16_48: ## in Loop: Header=BB16_1 Depth=1 jmp LBB16_49 LBB16_49: ## in Loop: Header=BB16_1 Depth=1 movq -88(%rbp), %rdi callq _free jmp LBB16_1 LBB16_50: movss _time(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movl _nsim(%rip), %esi leaq L_.str.32(%rip), %rdi movb $1, %al callq _printf movl -68(%rbp), %eax movl %eax, -104(%rbp) ## 4-byte Spill movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB16_52 ## %bb.51: movl -104(%rbp), %eax ## 4-byte Reload addq $144, %rsp popq %rbp retq LBB16_52: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function init LCPI17_0: .quad 0x3fd0000000000000 ## double 0.25 LCPI17_1: .quad 0x408f400000000000 ## double 1000 LCPI17_2: .quad 0x3fe8000000000000 ## double 0.75 .section __TEXT,__text,regular,pure_instructions .globl _init .p2align 4, 0x90 _init: ## @init .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) cmpl $6, -4(%rbp) je LBB17_2 ## %bb.1: movq -16(%rbp), %rax movq (%rax), %rsi leaq L_.str.33(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _printf movl $1, %edi callq _exit LBB17_2: movq -16(%rbp), %rax movq 8(%rax), %rdi callq _atoi movl %eax, _nsimmax(%rip) movq -16(%rbp), %rax movq 16(%rax), %rdi callq _atof cvtsd2ss %xmm0, %xmm0 movq _lossprob@GOTPCREL(%rip), %rax movss %xmm0, (%rax) movq -16(%rbp), %rax movq 24(%rax), %rdi callq _atof cvtsd2ss %xmm0, %xmm0 movq _corruptprob@GOTPCREL(%rip), %rax movss %xmm0, (%rax) movq -16(%rbp), %rax movq 32(%rax), %rdi callq _atof cvtsd2ss %xmm0, %xmm0 movq _lambda@GOTPCREL(%rip), %rax movss %xmm0, (%rax) movq -16(%rbp), %rax movq 40(%rax), %rdi callq _atoi movl %eax, _TRACE(%rip) leaq L_.str.34(%rip), %rdi movb $0, %al callq _printf movl _nsimmax(%rip), %esi leaq L_.str.35(%rip), %rdi movb $0, %al callq _printf movq _lossprob@GOTPCREL(%rip), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.36(%rip), %rdi movb $1, %al callq _printf movq _corruptprob@GOTPCREL(%rip), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.37(%rip), %rdi movb $1, %al callq _printf movq _lambda@GOTPCREL(%rip), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.38(%rip), %rdi movb $1, %al callq _printf movl _TRACE(%rip), %esi leaq L_.str.39(%rip), %rdi movb $0, %al callq _printf movl $9999, %edi ## imm = 0x270F callq _srand xorps %xmm0, %xmm0 movss %xmm0, -24(%rbp) movl $0, -20(%rbp) LBB17_3: ## =>This Inner Loop Header: Depth=1 cmpl $1000, -20(%rbp) ## imm = 0x3E8 jge LBB17_6 ## %bb.4: ## in Loop: Header=BB17_3 Depth=1 movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -32(%rbp) ## 4-byte Spill callq _jimsrand movaps %xmm0, %xmm1 movss -32(%rbp), %xmm0 ## 4-byte Reload ## xmm0 = mem[0],zero,zero,zero addss %xmm1, %xmm0 movss %xmm0, -24(%rbp) ## %bb.5: ## in Loop: Header=BB17_3 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB17_3 LBB17_6: movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI17_1(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -28(%rbp) movss -28(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm1 movsd LCPI17_0(%rip), %xmm0 ## xmm0 = mem[0],zero ucomisd %xmm1, %xmm0 ja LBB17_8 ## %bb.7: movss -28(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movsd LCPI17_2(%rip), %xmm1 ## xmm1 = mem[0],zero ucomisd %xmm1, %xmm0 jbe LBB17_9 LBB17_8: leaq L_.str.40(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax movb %al, -33(%rbp) ## 1-byte Spill callq _printf ## kill: def $ecx killed $eax movb -33(%rbp), %al ## 1-byte Reload leaq L_.str.41(%rip), %rdi callq _printf ## kill: def $ecx killed $eax movb -33(%rbp), %al ## 1-byte Reload leaq L_.str.42(%rip), %rdi callq _printf movl $1, %edi callq _exit LBB17_9: movq _ntolayer3@GOTPCREL(%rip), %rax movl $0, (%rax) movq _nlost@GOTPCREL(%rip), %rax movl $0, (%rax) movq _ncorrupt@GOTPCREL(%rip), %rax movl $0, (%rax) xorps %xmm0, %xmm0 movss %xmm0, _time(%rip) callq _generate_next_arrival addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function generate_next_arrival LCPI18_0: .long 0x40000000 ## float 2 .section __TEXT,__text,regular,pure_instructions .globl _generate_next_arrival .p2align 4, 0x90 _generate_next_arrival: ## @generate_next_arrival .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp cmpl $2, _TRACE(%rip) jle LBB18_2 ## %bb.1: leaq L_.str.43(%rip), %rdi movb $0, %al callq _printf LBB18_2: movq _lambda@GOTPCREL(%rip), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -28(%rbp) ## 4-byte Spill callq _jimsrand movaps %xmm0, %xmm1 movss -28(%rbp), %xmm0 ## 4-byte Reload ## xmm0 = mem[0],zero,zero,zero mulss %xmm1, %xmm0 movss LCPI18_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero mulss %xmm1, %xmm0 cvtss2sd %xmm0, %xmm0 movsd %xmm0, -8(%rbp) movl $40, %edi callq _malloc movq %rax, -16(%rbp) movss _time(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 addsd -8(%rbp), %xmm0 cvtsd2ss %xmm0, %xmm0 movq -16(%rbp), %rax movss %xmm0, (%rax) movq -16(%rbp), %rax movl $1, 4(%rax) movq -16(%rbp), %rax movl $0, 8(%rax) movq -16(%rbp), %rdi callq _insertevent addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function jimsrand LCPI19_0: .quad 0x41dfffffffc00000 ## double 2147483647 .section __TEXT,__text,regular,pure_instructions .globl _jimsrand .p2align 4, 0x90 _jimsrand: ## @jimsrand .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movsd LCPI19_0(%rip), %xmm0 ## xmm0 = mem[0],zero movsd %xmm0, -8(%rbp) callq _rand cvtsi2sd %eax, %xmm0 divsd -8(%rbp), %xmm0 cvtsd2ss %xmm0, %xmm0 movss %xmm0, -12(%rbp) movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _insertevent ## -- Begin function insertevent .p2align 4, 0x90 _insertevent: ## @insertevent .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) cmpl $2, _TRACE(%rip) jle LBB20_2 ## %bb.1: movss _time(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.44(%rip), %rdi movb $1, %al callq _printf movq -8(%rbp), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.45(%rip), %rdi movb $1, %al callq _printf LBB20_2: movq _evlist(%rip), %rax movq %rax, -16(%rbp) cmpq $0, -16(%rbp) jne LBB20_4 ## %bb.3: movq -8(%rbp), %rax movq %rax, _evlist(%rip) movq -8(%rbp), %rax movq $0, 32(%rax) movq -8(%rbp), %rax movq $0, 24(%rax) jmp LBB20_17 LBB20_4: movq -16(%rbp), %rax movq %rax, -24(%rbp) LBB20_5: ## =>This Inner Loop Header: Depth=1 xorl %eax, %eax ## kill: def $al killed $al killed $eax cmpq $0, -16(%rbp) movb %al, -25(%rbp) ## 1-byte Spill je LBB20_7 ## %bb.6: ## in Loop: Header=BB20_5 Depth=1 movq -8(%rbp), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero movq -16(%rbp), %rax ucomiss (%rax), %xmm0 seta %al movb %al, -25(%rbp) ## 1-byte Spill LBB20_7: ## in Loop: Header=BB20_5 Depth=1 movb -25(%rbp), %al ## 1-byte Reload testb $1, %al jne LBB20_8 jmp LBB20_10 LBB20_8: ## in Loop: Header=BB20_5 Depth=1 movq -16(%rbp), %rax movq %rax, -24(%rbp) ## %bb.9: ## in Loop: Header=BB20_5 Depth=1 movq -16(%rbp), %rax movq 32(%rax), %rax movq %rax, -16(%rbp) jmp LBB20_5 LBB20_10: cmpq $0, -16(%rbp) jne LBB20_12 ## %bb.11: movq -8(%rbp), %rcx movq -24(%rbp), %rax movq %rcx, 32(%rax) movq -24(%rbp), %rcx movq -8(%rbp), %rax movq %rcx, 24(%rax) movq -8(%rbp), %rax movq $0, 32(%rax) jmp LBB20_16 LBB20_12: movq -16(%rbp), %rax cmpq _evlist(%rip), %rax jne LBB20_14 ## %bb.13: movq _evlist(%rip), %rcx movq -8(%rbp), %rax movq %rcx, 32(%rax) movq -8(%rbp), %rax movq $0, 24(%rax) movq -8(%rbp), %rcx movq -8(%rbp), %rax movq 32(%rax), %rax movq %rcx, 24(%rax) movq -8(%rbp), %rax movq %rax, _evlist(%rip) jmp LBB20_15 LBB20_14: movq -16(%rbp), %rcx movq -8(%rbp), %rax movq %rcx, 32(%rax) movq -16(%rbp), %rax movq 24(%rax), %rcx movq -8(%rbp), %rax movq %rcx, 24(%rax) movq -8(%rbp), %rcx movq -16(%rbp), %rax movq 24(%rax), %rax movq %rcx, 32(%rax) movq -8(%rbp), %rcx movq -16(%rbp), %rax movq %rcx, 24(%rax) LBB20_15: jmp LBB20_16 LBB20_16: jmp LBB20_17 LBB20_17: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _printevlist ## -- Begin function printevlist .p2align 4, 0x90 _printevlist: ## @printevlist .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp leaq L_.str.46(%rip), %rdi movb $0, %al callq _printf movq _evlist(%rip), %rax movq %rax, -8(%rbp) LBB21_1: ## =>This Inner Loop Header: Depth=1 cmpq $0, -8(%rbp) je LBB21_4 ## %bb.2: ## in Loop: Header=BB21_1 Depth=1 movq -8(%rbp), %rax movss (%rax), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 movq -8(%rbp), %rax movl 4(%rax), %esi movq -8(%rbp), %rax movl 8(%rax), %edx leaq L_.str.47(%rip), %rdi movb $1, %al callq _printf ## %bb.3: ## in Loop: Header=BB21_1 Depth=1 movq -8(%rbp), %rax movq 32(%rax), %rax movq %rax, -8(%rbp) jmp LBB21_1 LBB21_4: leaq L_.str.48(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _nsimmax ## @nsimmax .zerofill __DATA,__common,_nsimmax,4,2 .comm _A,2072,2 ## @A .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "A_output: sent packet (seq=%d): %s\n" L_.str.1: ## @.str.1 .asciz " A_output: start timer for seq=%d\n" L_.str.2: ## @.str.2 .asciz " A_output: A.send_base: %d, A.next_seq: %d\n" L_.str.3: ## @.str.3 .asciz " A_output: Wrong seq number in GBN, aborted" L_.str.4: ## @.str.4 .asciz " A_output: buffer full. drop the message: %s\n" L_.str.5: ## @.str.5 .asciz " A_output: bufferred packet (seq=%d): %s\n" L_.str.6: ## @.str.6 .asciz "A buffer_next: %d\n" L_.str.7: ## @.str.7 .asciz " B_output: USED only when bi-directional.\n" L_.str.8: ## @.str.8 .asciz " A_timerinterrupt: resend packet (seq=%d): %s\n" L_.str.9: ## @.str.9 .asciz " A_input: corrupted NAK(ack=%d) drop packet.\n" L_.str.10: ## @.str.10 .asciz " A_input: duplicated ACK(ack=%d), drop packet.\n" L_.str.11: ## @.str.11 .asciz "A_input: fast retransmit ACK(ack=%d) \n" L_.str.12: ## @.str.12 .asciz "A_input: ACKed(ack=%d) from B.\n" L_.str.13: ## @.str.13 .asciz " A.send_base: %d, A.next_seq: %d\n" L_.str.14: ## @.str.14 .asciz " A_input: stop timer\n" L_.str.15: ## @.str.15 .asciz " A_input: restart timer + %f\n" L_.str.16: ## @.str.16 .asciz " A_timerinterrupt: restart timer + %f\n" L_.str.17: ## @.str.17 .asciz " B_input: packet from A is corrupted, send NAK(ack=%d)\n" .comm _B,4,2 ## @B L_.str.18: ## @.str.18 .asciz " B_input: packet seq:%d, send duplicated ACK(ack=%d)\n" L_.str.19: ## @.str.19 .asciz " B_input: recv packet (seq=%d): %s\n" L_.str.20: ## @.str.20 .asciz " B_input: send ACK(ack=%d)\n" L_.str.21: ## @.str.21 .asciz "B_timerinterrupt: USED only when bi-directional.\n" .globl _evlist ## @evlist .zerofill __DATA,__common,_evlist,8,3 .section __DATA,__data .globl _TRACE ## @TRACE .p2align 2 _TRACE: .long 1 ## 0x1 .globl _nsim ## @nsim .zerofill __DATA,__common,_nsim,4,2 .globl _time ## @time .zerofill __DATA,__common,_time,4,2 .section __TEXT,__cstring,cstring_literals L_.str.22: ## @.str.22 .asciz "\nEVENT time: %f," L_.str.23: ## @.str.23 .asciz " type: %d" L_.str.24: ## @.str.24 .asciz ", timerinterrupt " L_.str.25: ## @.str.25 .asciz ", fromlayer5 " L_.str.26: ## @.str.26 .asciz ", fromlayer3 " L_.str.27: ## @.str.27 .asciz " entity: %d\n" L_.str.28: ## @.str.28 .asciz " MAINLOOP: data given to student: " L_.str.29: ## @.str.29 .asciz "%c" L_.str.30: ## @.str.30 .asciz "\n" L_.str.31: ## @.str.31 .asciz "INTERNAL PANIC: unknown event type \n" L_.str.32: ## @.str.32 .asciz " Simulator terminated at time %f\n after sending %d msgs from layer5\n" L_.str.33: ## @.str.33 .asciz "usage: %s num_sim prob_loss prob_corrupt interval debug_level\n" .comm _lossprob,4,2 ## @lossprob .comm _corruptprob,4,2 ## @corruptprob .comm _lambda,4,2 ## @lambda L_.str.34: ## @.str.34 .asciz "----- Stop and Wait Network Simulator Version 1.1 -------- \n\n" L_.str.35: ## @.str.35 .asciz "the number of messages to simulate: %d\n" L_.str.36: ## @.str.36 .asciz "packet loss probability: %f\n" L_.str.37: ## @.str.37 .asciz "packet corruption probability: %f\n" L_.str.38: ## @.str.38 .asciz "average time between messages from sender's layer5: %f\n" L_.str.39: ## @.str.39 .asciz "TRACE: %d\n" L_.str.40: ## @.str.40 .asciz "It is likely that random number generation on your machine\n" L_.str.41: ## @.str.41 .asciz "is different from what this emulator expects. Please take\n" L_.str.42: ## @.str.42 .asciz "a look at the routine jimsrand() in the emulator code. Sorry. \n" .comm _ntolayer3,4,2 ## @ntolayer3 .comm _nlost,4,2 ## @nlost .comm _ncorrupt,4,2 ## @ncorrupt L_.str.43: ## @.str.43 .asciz " GENERATE NEXT ARRIVAL: creating new arrival\n" L_.str.44: ## @.str.44 .asciz " INSERTEVENT: time is %lf\n" L_.str.45: ## @.str.45 .asciz " INSERTEVENT: future time will be %lf\n" L_.str.46: ## @.str.46 .asciz "--------------\nEvent List Follows:\n" L_.str.47: ## @.str.47 .asciz "Event time: %f, type: %d entity: %d\n" L_.str.48: ## @.str.48 .asciz "--------------\n" L_.str.49: ## @.str.49 .asciz " STOP TIMER: stopping timer at %f\n" L_.str.50: ## @.str.50 .asciz "Warning: unable to cancel your timer. It wasn't running.\n" L_.str.51: ## @.str.51 .asciz " START TIMER: starting timer at %f\n" L_.str.52: ## @.str.52 .asciz "Warning: attempt to start a timer that is already started\n" L_.str.53: ## @.str.53 .asciz " TOLAYER3: packet being lost\n" L_.str.54: ## @.str.54 .asciz " TOLAYER3: seq: %d, ack %d, check: %d " L_.str.55: ## @.str.55 .asciz " TOLAYER3: packet being corrupted\n" L_.str.56: ## @.str.56 .asciz " TOLAYER3: scheduling arrival on other side\n" L_.str.57: ## @.str.57 .asciz " TOLAYER5: data received: " .subsections_via_symbols
the_stack_data/218894433.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov x9, sp mov x8, #-1 str x8, [x9] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf mov w0, #0 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "EOF is %d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp leaq L_.str(%rip), %rdi movl $4294967295, %esi ## imm = 0xFFFFFFFF movb $0, %al callq _printf xorl %eax, %eax popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "EOF is %d\n" .subsections_via_symbols
the_stack_data/87637469.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fopen stur x0, [x29, #-16] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF adrp x1, l_.str.3@PAGE add x1, x1, l_.str.3@PAGEOFF bl _fopen str x0, [sp, #24] ldur x0, [x29, #-16] mov x1, #-1 mov w2, #2 bl _fseek ldur x0, [x29, #-16] bl _ftell str x0, [sp, #8] ldr x8, [sp, #8] mov x9, sp str x8, [x9] adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _printf b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr x8, [sp, #8] subs x8, x8, #0 cset w8, lt tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur x0, [x29, #-16] bl _getc str w0, [sp, #20] ldr w0, [sp, #20] ldr x1, [sp, #24] bl _putc ldr x8, [sp, #8] subs x8, x8, #1 str x8, [sp, #8] ldur x0, [x29, #-16] ldr x1, [sp, #8] mov w2, #0 bl _fseek b LBB0_1 LBB0_3: ldur x0, [x29, #-16] mov x1, #0 mov w2, #2 bl _fseek ldur x0, [x29, #-16] bl _fclose ldr x0, [sp, #24] bl _fclose mov w0, #0 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "q2a.c" l_.str.1: ; @.str.1 .asciz "r" l_.str.2: ; @.str.2 .asciz "q2b.c" l_.str.3: ; @.str.3 .asciz "w+" l_.str.4: ; @.str.4 .asciz "Size of File : %ld\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) leaq L_.str(%rip), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -16(%rbp) leaq L_.str.2(%rip), %rdi leaq L_.str.3(%rip), %rsi callq _fopen movq %rax, -24(%rbp) movq -16(%rbp), %rdi movq $-1, %rsi movl $2, %edx callq _fseek movq -16(%rbp), %rdi callq _ftell movq %rax, -40(%rbp) movq -40(%rbp), %rsi leaq L_.str.4(%rip), %rdi movb $0, %al callq _printf LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpq $0, -40(%rbp) jl LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -16(%rbp), %rdi callq _getc movl %eax, -28(%rbp) movl -28(%rbp), %edi movq -24(%rbp), %rsi callq _putc movq -40(%rbp), %rax addq $-1, %rax movq %rax, -40(%rbp) movq -16(%rbp), %rdi movq -40(%rbp), %rsi xorl %edx, %edx callq _fseek jmp LBB0_1 LBB0_3: movq -16(%rbp), %rdi xorl %eax, %eax movl %eax, %esi movl $2, %edx callq _fseek movq -16(%rbp), %rdi callq _fclose movq -24(%rbp), %rdi callq _fclose xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "q2a.c" L_.str.1: ## @.str.1 .asciz "r" L_.str.2: ## @.str.2 .asciz "q2b.c" L_.str.3: ## @.str.3 .asciz "w+" L_.str.4: ## @.str.4 .asciz "Size of File : %ld\n" .subsections_via_symbols
the_stack_data/211081820.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _init_vm ; -- Begin function init_vm .p2align 2 _init_vm: ; @init_vm .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 str x0, [sp, #24] str x1, [sp, #16] str w2, [sp, #12] str wzr, [sp, #8] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp, #8] ; kill: def $x8 killed $w8 mov x9, #30000 subs x8, x8, x9 cset w8, hs tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldr x8, [sp, #24] ldr w9, [sp, #8] ; kill: def $x9 killed $w9 add x8, x8, x9 strb wzr, [x8] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #8] add w8, w8, #1 str w8, [sp, #8] b LBB0_1 LBB0_4: ldr x8, [sp, #24] ldr x9, [sp, #24] str x8, [x9, #30000] ldr x8, [sp, #16] ldr x9, [sp, #24] str x8, [x9, #30008] ldr w8, [sp, #12] ldr x9, [sp, #24] mov x10, #30016 str w8, [x9, x10] ldr x9, [sp, #24] mov x10, #30020 mov w8, #0 str w8, [x9, x10] add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _step ; -- Begin function step .p2align 2 _step: ; @step .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x8, [x29, #-8] ldr x8, [x8, #30008] ldur x9, [x29, #-8] mov x10, #30020 ldr w9, [x9, x10] ; kill: def $x9 killed $w9 ldrsb w8, [x8, x9] subs w8, w8, #43 ; kill: def $x8 killed $w8 str x8, [sp] ; 8-byte Folded Spill subs x8, x8, #50 cset w8, hi tbnz w8, #0, LBB1_34 ; %bb.1: ldr x11, [sp] ; 8-byte Folded Reload adrp x10, lJTI1_0@PAGE add x10, x10, lJTI1_0@PAGEOFF Ltmp1: adr x8, Ltmp1 ldrsw x9, [x10, x11, lsl #2] add x8, x8, x9 br x8 LBB1_2: ldur x9, [x29, #-8] ldr x8, [x9, #30000] add x8, x8, #1 str x8, [x9, #30000] b LBB1_35 LBB1_3: ldur x9, [x29, #-8] ldr x8, [x9, #30000] subs x8, x8, #1 str x8, [x9, #30000] b LBB1_35 LBB1_4: ldur x8, [x29, #-8] ldr x9, [x8, #30000] ldrb w8, [x9] add w8, w8, #1 strb w8, [x9] b LBB1_35 LBB1_5: ldur x8, [x29, #-8] ldr x9, [x8, #30000] ldrb w10, [x9] mov w8, #-1 add w8, w8, w10, uxtb strb w8, [x9] b LBB1_35 LBB1_6: ldur x8, [x29, #-8] ldr x8, [x8, #30000] ldrb w0, [x8] bl _putchar b LBB1_35 LBB1_7: bl _getchar ldur x8, [x29, #-8] ldr x8, [x8, #30000] strb w0, [x8] b LBB1_35 LBB1_8: ldur x8, [x29, #-8] ldr x8, [x8, #30000] ldrb w8, [x8] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_20 b LBB1_9 LBB1_9: stur wzr, [x29, #-12] b LBB1_10 LBB1_10: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-8] mov x10, #30020 add x9, x8, x10 ldr w8, [x9] add w8, w8, #1 str w8, [x9] ldur x8, [x29, #-8] ldr x8, [x8, #30008] ldur x9, [x29, #-8] ldr w9, [x9, x10] ; kill: def $x9 killed $w9 ldrsb w8, [x8, x9] str w8, [sp, #16] ldr w8, [sp, #16] subs w8, w8, #91 cset w8, ne tbnz w8, #0, LBB1_12 b LBB1_11 LBB1_11: ; in Loop: Header=BB1_10 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB1_18 LBB1_12: ; in Loop: Header=BB1_10 Depth=1 ldr w8, [sp, #16] subs w8, w8, #93 cset w8, ne tbnz w8, #0, LBB1_17 b LBB1_13 LBB1_13: ; in Loop: Header=BB1_10 Depth=1 ldur w8, [x29, #-12] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_15 b LBB1_14 LBB1_14: b LBB1_19 LBB1_15: ; in Loop: Header=BB1_10 Depth=1 ldur w8, [x29, #-12] subs w8, w8, #1 stur w8, [x29, #-12] b LBB1_16 LBB1_16: ; in Loop: Header=BB1_10 Depth=1 b LBB1_17 LBB1_17: ; in Loop: Header=BB1_10 Depth=1 b LBB1_18 LBB1_18: ; in Loop: Header=BB1_10 Depth=1 b LBB1_10 LBB1_19: b LBB1_20 LBB1_20: b LBB1_35 LBB1_21: ldur x8, [x29, #-8] ldr x8, [x8, #30000] ldrb w8, [x8] subs w8, w8, #0 cset w8, eq tbnz w8, #0, LBB1_33 b LBB1_22 LBB1_22: str wzr, [sp, #12] b LBB1_23 LBB1_23: ; =>This Inner Loop Header: Depth=1 ldur x8, [x29, #-8] mov x10, #30020 add x9, x8, x10 ldr w8, [x9] subs w8, w8, #1 str w8, [x9] ldur x8, [x29, #-8] ldr x8, [x8, #30008] ldur x9, [x29, #-8] ldr w9, [x9, x10] ; kill: def $x9 killed $w9 ldrsb w8, [x8, x9] str w8, [sp, #8] ldr w8, [sp, #8] subs w8, w8, #93 cset w8, ne tbnz w8, #0, LBB1_25 b LBB1_24 LBB1_24: ; in Loop: Header=BB1_23 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB1_31 LBB1_25: ; in Loop: Header=BB1_23 Depth=1 ldr w8, [sp, #8] subs w8, w8, #91 cset w8, ne tbnz w8, #0, LBB1_30 b LBB1_26 LBB1_26: ; in Loop: Header=BB1_23 Depth=1 ldr w8, [sp, #12] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_28 b LBB1_27 LBB1_27: b LBB1_32 LBB1_28: ; in Loop: Header=BB1_23 Depth=1 ldr w8, [sp, #12] subs w8, w8, #1 str w8, [sp, #12] b LBB1_29 LBB1_29: ; in Loop: Header=BB1_23 Depth=1 b LBB1_30 LBB1_30: ; in Loop: Header=BB1_23 Depth=1 b LBB1_31 LBB1_31: ; in Loop: Header=BB1_23 Depth=1 b LBB1_23 LBB1_32: b LBB1_33 LBB1_33: b LBB1_35 LBB1_34: b LBB1_35 LBB1_35: ldur x8, [x29, #-8] mov x9, #30020 add x9, x8, x9 ldr w8, [x9] add w8, w8, #1 str w8, [x9] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc .p2align 2 lJTI1_0: .long LBB1_4-Ltmp1 .long LBB1_7-Ltmp1 .long LBB1_5-Ltmp1 .long LBB1_6-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_3-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_2-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_8-Ltmp1 .long LBB1_34-Ltmp1 .long LBB1_21-Ltmp1 ; -- End function .globl _done ; -- Begin function done .p2align 2 _done: ; @done .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr x8, [sp, #8] mov x9, #30020 ldr w8, [x8, x9] ldr x9, [sp, #8] mov x10, #30016 ldr w9, [x9, x10] subs w8, w8, w9 cset w8, hs and w0, w8, #0x1 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl __start ; -- Begin function _start .p2align 2 __start: ; @_start .cfi_startproc ; %bb.0: stp x28, x27, [sp, #-32]! ; 16-byte Folded Spill .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 .cfi_offset w27, -24 .cfi_offset w28, -32 mov w9, #30160 adrp x16, ___chkstk_darwin@GOTPAGE ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF] blr x16 sub sp, sp, #7, lsl #12 ; =28672 sub sp, sp, #1488 adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] stur x8, [x29, #-24] add x0, sp, #21 str x0, [sp, #8] ; 8-byte Folded Spill adrp x1, l___const._start.program@PAGE add x1, x1, l___const._start.program@PAGEOFF mov x2, #107 bl _memcpy ldr x1, [sp, #8] ; 8-byte Folded Reload mov w2, #107 str w2, [sp, #16] add x0, sp, #128 bl _init_vm b LBB3_1 LBB3_1: ; =>This Inner Loop Header: Depth=1 add x0, sp, #128 bl _done subs w8, w0, #0 cset w8, ne tbnz w8, #0, LBB3_3 b LBB3_2 LBB3_2: ; in Loop: Header=BB3_1 Depth=1 add x0, sp, #128 bl _step b LBB3_1 LBB3_3: ldur x9, [x29, #-24] adrp x8, ___stack_chk_guard@GOTPAGE ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF] ldr x8, [x8] subs x8, x8, x9 cset w8, eq tbnz w8, #0, LBB3_5 b LBB3_4 LBB3_4: bl ___stack_chk_fail LBB3_5: add sp, sp, #7, lsl #12 ; =28672 add sp, sp, #1488 ldp x29, x30, [sp, #16] ; 16-byte Folded Reload ldp x28, x27, [sp], #32 ; 16-byte Folded Reload ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l___const._start.program: ; @__const._start.program .asciz "++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++." .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _init_vm ## -- Begin function init_vm .p2align 4, 0x90 _init_vm: ## @init_vm .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movl %edx, -20(%rbp) movl $0, -24(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -24(%rbp), %eax ## kill: def $rax killed $eax cmpq $30000, %rax ## imm = 0x7530 jae LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movq -8(%rbp), %rax movl -24(%rbp), %ecx ## kill: def $rcx killed $ecx movb $0, (%rax,%rcx) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -24(%rbp), %eax addl $1, %eax movl %eax, -24(%rbp) jmp LBB0_1 LBB0_4: movq -8(%rbp), %rcx movq -8(%rbp), %rax movq %rcx, 30000(%rax) movq -16(%rbp), %rcx movq -8(%rbp), %rax movq %rcx, 30008(%rax) movl -20(%rbp), %ecx movq -8(%rbp), %rax movl %ecx, 30016(%rax) movq -8(%rbp), %rax movl $0, 30020(%rax) popq %rbp retq .cfi_endproc ## -- End function .globl _step ## -- Begin function step .p2align 4, 0x90 _step: ## @step .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rcx movq 30008(%rcx), %rax movl 30020(%rcx), %ecx ## kill: def $rcx killed $ecx movsbl (%rax,%rcx), %eax addl $-43, %eax movl %eax, %ecx movq %rcx, -32(%rbp) ## 8-byte Spill subl $50, %eax ja LBB1_33 ## %bb.35: movq -32(%rbp), %rax ## 8-byte Reload leaq LJTI1_0(%rip), %rcx movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax LBB1_1: movq -8(%rbp), %rax movq 30000(%rax), %rcx addq $1, %rcx movq %rcx, 30000(%rax) jmp LBB1_34 LBB1_2: movq -8(%rbp), %rax movq 30000(%rax), %rcx addq $-1, %rcx movq %rcx, 30000(%rax) jmp LBB1_34 LBB1_3: movq -8(%rbp), %rax movq 30000(%rax), %rax movb (%rax), %cl addb $1, %cl movb %cl, (%rax) jmp LBB1_34 LBB1_4: movq -8(%rbp), %rax movq 30000(%rax), %rax movb (%rax), %cl addb $-1, %cl movb %cl, (%rax) jmp LBB1_34 LBB1_5: movq -8(%rbp), %rax movq 30000(%rax), %rax movzbl (%rax), %edi callq _putchar jmp LBB1_34 LBB1_6: movb $0, %al callq _getchar movb %al, %cl movq -8(%rbp), %rax movq 30000(%rax), %rax movb %cl, (%rax) jmp LBB1_34 LBB1_7: movq -8(%rbp), %rax movq 30000(%rax), %rax movzbl (%rax), %eax cmpl $0, %eax jne LBB1_19 ## %bb.8: movl $0, -12(%rbp) LBB1_9: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax movl 30020(%rax), %ecx addl $1, %ecx movl %ecx, 30020(%rax) movq -8(%rbp), %rax movq 30008(%rax), %rax movq -8(%rbp), %rcx movl 30020(%rcx), %ecx ## kill: def $rcx killed $ecx movsbl (%rax,%rcx), %eax movl %eax, -16(%rbp) cmpl $91, -16(%rbp) jne LBB1_11 ## %bb.10: ## in Loop: Header=BB1_9 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB1_17 LBB1_11: ## in Loop: Header=BB1_9 Depth=1 cmpl $93, -16(%rbp) jne LBB1_16 ## %bb.12: ## in Loop: Header=BB1_9 Depth=1 cmpl $0, -12(%rbp) jne LBB1_14 ## %bb.13: jmp LBB1_18 LBB1_14: ## in Loop: Header=BB1_9 Depth=1 movl -12(%rbp), %eax addl $-1, %eax movl %eax, -12(%rbp) ## %bb.15: ## in Loop: Header=BB1_9 Depth=1 jmp LBB1_16 LBB1_16: ## in Loop: Header=BB1_9 Depth=1 jmp LBB1_17 LBB1_17: ## in Loop: Header=BB1_9 Depth=1 jmp LBB1_9 LBB1_18: jmp LBB1_19 LBB1_19: jmp LBB1_34 LBB1_20: movq -8(%rbp), %rax movq 30000(%rax), %rax movzbl (%rax), %eax cmpl $0, %eax je LBB1_32 ## %bb.21: movl $0, -20(%rbp) LBB1_22: ## =>This Inner Loop Header: Depth=1 movq -8(%rbp), %rax movl 30020(%rax), %ecx addl $-1, %ecx movl %ecx, 30020(%rax) movq -8(%rbp), %rax movq 30008(%rax), %rax movq -8(%rbp), %rcx movl 30020(%rcx), %ecx ## kill: def $rcx killed $ecx movsbl (%rax,%rcx), %eax movl %eax, -24(%rbp) cmpl $93, -24(%rbp) jne LBB1_24 ## %bb.23: ## in Loop: Header=BB1_22 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB1_30 LBB1_24: ## in Loop: Header=BB1_22 Depth=1 cmpl $91, -24(%rbp) jne LBB1_29 ## %bb.25: ## in Loop: Header=BB1_22 Depth=1 cmpl $0, -20(%rbp) jne LBB1_27 ## %bb.26: jmp LBB1_31 LBB1_27: ## in Loop: Header=BB1_22 Depth=1 movl -20(%rbp), %eax addl $-1, %eax movl %eax, -20(%rbp) ## %bb.28: ## in Loop: Header=BB1_22 Depth=1 jmp LBB1_29 LBB1_29: ## in Loop: Header=BB1_22 Depth=1 jmp LBB1_30 LBB1_30: ## in Loop: Header=BB1_22 Depth=1 jmp LBB1_22 LBB1_31: jmp LBB1_32 LBB1_32: jmp LBB1_34 LBB1_33: jmp LBB1_34 LBB1_34: movq -8(%rbp), %rax movl 30020(%rax), %ecx addl $1, %ecx movl %ecx, 30020(%rax) addq $32, %rsp popq %rbp retq .cfi_endproc .p2align 2, 0x90 .data_region jt32 .set L1_0_set_3, LBB1_3-LJTI1_0 .set L1_0_set_6, LBB1_6-LJTI1_0 .set L1_0_set_4, LBB1_4-LJTI1_0 .set L1_0_set_5, LBB1_5-LJTI1_0 .set L1_0_set_33, LBB1_33-LJTI1_0 .set L1_0_set_2, LBB1_2-LJTI1_0 .set L1_0_set_1, LBB1_1-LJTI1_0 .set L1_0_set_7, LBB1_7-LJTI1_0 .set L1_0_set_20, LBB1_20-LJTI1_0 LJTI1_0: .long L1_0_set_3 .long L1_0_set_6 .long L1_0_set_4 .long L1_0_set_5 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_2 .long L1_0_set_33 .long L1_0_set_1 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_33 .long L1_0_set_7 .long L1_0_set_33 .long L1_0_set_20 .end_data_region ## -- End function .globl _done ## -- Begin function done .p2align 4, 0x90 _done: ## @done .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movl 30020(%rax), %eax movq -8(%rbp), %rcx cmpl 30016(%rcx), %eax setae %al andb $1, %al movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .globl __start ## -- Begin function _start .p2align 4, 0x90 __start: ## @_start .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl $30160, %eax ## imm = 0x75D0 callq ____chkstk_darwin subq %rax, %rsp movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -8(%rbp) leaq -30144(%rbp), %rdi leaq L___const._start.program(%rip), %rsi movl $107, %edx callq _memcpy movl $107, -30148(%rbp) leaq -30144(%rbp), %rsi leaq -30032(%rbp), %rdi movl $107, %edx callq _init_vm LBB3_1: ## =>This Inner Loop Header: Depth=1 leaq -30032(%rbp), %rdi callq _done cmpl $0, %eax setne %al xorb $-1, %al testb $1, %al jne LBB3_2 jmp LBB3_3 LBB3_2: ## in Loop: Header=BB3_1 Depth=1 leaq -30032(%rbp), %rdi callq _step jmp LBB3_1 LBB3_3: movq ___stack_chk_guard@GOTPCREL(%rip), %rax movq (%rax), %rax movq -8(%rbp), %rcx cmpq %rcx, %rax jne LBB3_5 ## %bb.4: addq $30160, %rsp ## imm = 0x75D0 popq %rbp retq LBB3_5: callq ___stack_chk_fail ud2 .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals .p2align 4 ## @__const._start.program L___const._start.program: .asciz "++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++." .subsections_via_symbols
the_stack_data/843963.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ; -- Begin function main lCPI0_0: .quad 0x4059000000000000 ; double 100 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w0, #0 stur wzr, [x29, #-4] adrp x1, l_.str@PAGE add x1, x1, l_.str@PAGEOFF bl _setlocale mov x9, sp sub x8, x29, #16 str x8, [x9] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _scanf stur wzr, [x29, #-28] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-28] ldur w9, [x29, #-16] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 mov x9, sp sub x8, x29, #20 str x8, [x9] sub x8, x29, #8 str x8, [x9, #8] sub x8, x29, #24 str x8, [x9, #16] sub x8, x29, #12 str x8, [x9, #24] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _scanf ldur w8, [x29, #-12] ldur w9, [x29, #-8] subs w8, w8, w9 ucvtf d0, w8 ldur w8, [x29, #-24] ldur w9, [x29, #-20] subs w8, w8, w9 scvtf d1, w8 fdiv d0, d0, d1 str d0, [sp, #40] ldr d0, [sp, #40] adrp x8, lCPI0_0@PAGE ldr d1, [x8, lCPI0_0@PAGEOFF] fmul d0, d1, d0 frintz d0, d0 fdiv d0, d0, d1 mov x8, sp str d0, [x8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _printf b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 ldur w8, [x29, #-28] add w8, w8, #1 stur w8, [x29, #-28] b LBB0_1 LBB0_4: mov w0, #0 ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "portuguese_brazil" l_.str.1: ; @.str.1 .asciz "%d" l_.str.2: ; @.str.2 .asciz "%d%u%d%u" l_.str.3: ; @.str.3 .asciz "%.2f\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal8,8byte_literals .p2align 3 ## -- Begin function main LCPI0_0: .quad 0x4059000000000000 ## double 100 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) xorl %edi, %edi leaq L_.str(%rip), %rsi callq _setlocale leaq L_.str.1(%rip), %rdi leaq -16(%rbp), %rsi movb $0, %al callq _scanf movl $0, -28(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movl -28(%rbp), %eax cmpl -16(%rbp), %eax jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 leaq L_.str.2(%rip), %rdi xorl %eax, %eax ## kill: def $al killed $al killed $eax leaq -20(%rbp), %rsi leaq -8(%rbp), %rdx leaq -24(%rbp), %rcx leaq -12(%rbp), %r8 callq _scanf movl -12(%rbp), %eax movl -8(%rbp), %ecx subl %ecx, %eax ## kill: def $rax killed $eax cvtsi2sd %rax, %xmm0 movl -24(%rbp), %eax subl -20(%rbp), %eax cvtsi2sd %eax, %xmm1 divsd %xmm1, %xmm0 movsd %xmm0, -40(%rbp) movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero mulsd -40(%rbp), %xmm0 roundsd $11, %xmm0, %xmm0 movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero divsd %xmm1, %xmm0 leaq L_.str.3(%rip), %rdi movb $1, %al callq _printf ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) jmp LBB0_1 LBB0_4: xorl %eax, %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "portuguese_brazil" L_.str.1: ## @.str.1 .asciz "%d" L_.str.2: ## @.str.2 .asciz "%d%u%d%u" L_.str.3: ## @.str.3 .asciz "%.2f\n" .subsections_via_symbols
the_stack_data/150140427.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] mov w8, #49807 movk w8, #16725, lsl #16 fmov s0, w8 stur s0, [x29, #-8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF bl _printf adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf mov w8, #10 stur w8, [x29, #-12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] subs w8, w8, #100 cset w8, ge tbnz w8, #0, LBB0_3 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldur s0, [x29, #-8] ldur s1, [x29, #-12] scvtf s1, s1 fmul s0, s0, s1 str s0, [sp, #16] ldur w8, [x29, #-12] ; implicit-def: $x9 mov x9, x8 ldr s0, [sp, #16] fcvt d0, s0 mov x8, sp str x9, [x8] str d0, [x8, #8] adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _printf ldur w8, [x29, #-12] add w8, w8, #10 stur w8, [x29, #-12] b LBB0_1 LBB0_3: mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "Dolares Pesos\n" l_.str.1: ; @.str.1 .asciz "****************\n" l_.str.2: ; @.str.2 .asciz "%d %f\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .section __TEXT,__literal4,4byte_literals .p2align 2 ## -- Begin function main LCPI0_0: .long 0x4155c28f ## float 13.3599997 .section __TEXT,__text,regular,pure_instructions .globl _main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movss LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero movss %xmm0, -8(%rbp) leaq L_.str(%rip), %rdi movb $0, %al callq _printf leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf movl $10, -12(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $100, -12(%rbp) jge LBB0_3 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtsi2ssl -12(%rbp), %xmm1 mulss %xmm1, %xmm0 movss %xmm0, -16(%rbp) movl -12(%rbp), %esi movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero cvtss2sd %xmm0, %xmm0 leaq L_.str.2(%rip), %rdi movb $1, %al callq _printf movl -12(%rbp), %eax addl $10, %eax movl %eax, -12(%rbp) jmp LBB0_1 LBB0_3: xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "Dolares Pesos\n" L_.str.1: ## @.str.1 .asciz "****************\n" L_.str.2: ## @.str.2 .asciz "%d %f\n" .subsections_via_symbols
the_stack_data/148578544.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov w8, #0 stur w8, [x29, #-16] ; 4-byte Folded Spill stur wzr, [x29, #-4] mov w8, #5 stur w8, [x29, #-8] mov w8, #8 stur w8, [x29, #-12] ldur w8, [x29, #-8] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str@PAGE add x0, x0, l_.str@PAGEOFF str x0, [sp, #24] ; 8-byte Folded Spill bl _printf ldur w0, [x29, #-8] ldur w1, [x29, #-12] bl _value ldr x0, [sp, #24] ; 8-byte Folded Reload ldur w8, [x29, #-8] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-12] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] bl _printf ldur w0, [x29, #-16] ; 4-byte Folded Reload ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _value ; -- Begin function value .p2align 2 _value: ; @value .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] stur w1, [x29, #-8] ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] ldur w8, [x29, #-8] add w8, w8, #1 stur w8, [x29, #-8] ldur w8, [x29, #-4] ; implicit-def: $x10 mov x10, x8 ldur w9, [x29, #-8] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] adrp x0, l_.str.1@PAGE add x0, x0, l_.str.1@PAGEOFF bl _printf ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "a=%d,b=%d\n" l_.str.1: ; @.str.1 .asciz "x=%d,y=%d\n" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl $0, -4(%rbp) movl $5, -8(%rbp) movl $8, -12(%rbp) movl -8(%rbp), %esi movl -12(%rbp), %edx leaq L_.str(%rip), %rdi movb $0, %al callq _printf movl -8(%rbp), %edi movl -12(%rbp), %esi callq _value movl -8(%rbp), %esi movl -12(%rbp), %edx leaq L_.str(%rip), %rdi movb $0, %al callq _printf xorl %eax, %eax addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _value ## -- Begin function value .p2align 4, 0x90 _value: ## @value .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movl %edi, -4(%rbp) movl %esi, -8(%rbp) movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) movl -8(%rbp), %eax addl $1, %eax movl %eax, -8(%rbp) movl -4(%rbp), %esi movl -8(%rbp), %edx leaq L_.str.1(%rip), %rdi movb $0, %al callq _printf addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "a=%d,b=%d\n" L_.str.1: ## @.str.1 .asciz "x=%d,y=%d\n" .subsections_via_symbols
the_stack_data/75137450.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _sgenrand ; -- Begin function sgenrand .p2align 2 _sgenrand: ; @sgenrand .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str x0, [sp, #8] ldr w8, [sp, #8] ; kill: def $x8 killed $w8 adrp x9, _mt@PAGE str x8, [x9, _mt@PAGEOFF] adrp x9, _mti@PAGE mov w8, #1 str w8, [x9, _mti@PAGEOFF] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 adrp x8, _mti@PAGE ldr w8, [x8, _mti@PAGEOFF] subs w8, w8, #624 cset w8, ge tbnz w8, #0, LBB0_4 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 adrp x10, _mti@PAGE ldr w8, [x10, _mti@PAGEOFF] subs w8, w8, #1 adrp x9, _mt@PAGE add x9, x9, _mt@PAGEOFF ldr x11, [x9, w8, sxtw #3] mov x8, #3533 movk x8, #1, lsl #16 mul x8, x8, x11 and x8, x8, #0xffffffff ldrsw x10, [x10, _mti@PAGEOFF] str x8, [x9, x10, lsl #3] b LBB0_3 LBB0_3: ; in Loop: Header=BB0_1 Depth=1 adrp x9, _mti@PAGE ldr w8, [x9, _mti@PAGEOFF] add w8, w8, #1 str w8, [x9, _mti@PAGEOFF] b LBB0_1 LBB0_4: add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _genrand ; -- Begin function genrand .p2align 2 _genrand: ; @genrand .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _mt@PAGE add x8, x8, _mt@PAGEOFF str x8, [sp, #8] ; 8-byte Folded Spill adrp x8, _mti@PAGE ldr w8, [x8, _mti@PAGEOFF] subs w8, w8, #624 cset w8, lt tbnz w8, #0, LBB1_14 b LBB1_1 LBB1_1: adrp x8, _mti@PAGE ldr w8, [x8, _mti@PAGEOFF] subs w8, w8, #625 cset w8, ne tbnz w8, #0, LBB1_3 b LBB1_2 LBB1_2: mov x0, #4357 bl _sgenrand b LBB1_3 LBB1_3: stur wzr, [x29, #-12] b LBB1_4 LBB1_4: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] subs w8, w8, #227 cset w8, ge tbnz w8, #0, LBB1_9 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_4 Depth=1 ldursw x9, [x29, #-12] adrp x8, _mt@PAGE add x8, x8, _mt@PAGEOFF ldr x8, [x8, x9, lsl #3] subs x8, x8, #0 cset w8, eq mov w9, #0 str w9, [sp, #4] ; 4-byte Folded Spill tbnz w8, #0, LBB1_7 b LBB1_6 LBB1_6: ; in Loop: Header=BB1_4 Depth=1 mov w8, #1 str w8, [sp, #4] ; 4-byte Folded Spill b LBB1_7 LBB1_7: ; in Loop: Header=BB1_4 Depth=1 ldr w8, [sp, #4] ; 4-byte Folded Reload ; kill: def $x8 killed $w8 and x8, x8, #0x1 ldur w9, [x29, #-12] add w10, w9, #1 adrp x9, _mt@PAGE add x9, x9, _mt@PAGEOFF ldr x10, [x9, w10, sxtw #3] and x10, x10, #0x7fffffff orr x8, x8, x10 stur x8, [x29, #-8] ldur w8, [x29, #-12] add w8, w8, #397 ldr x8, [x9, w8, sxtw #3] ldur x10, [x29, #-8] eor x8, x8, x10, lsr #1 ldur x10, [x29, #-8] and x11, x10, #0x1 adrp x10, _genrand.mag01@PAGE add x10, x10, _genrand.mag01@PAGEOFF ldr x10, [x10, x11, lsl #3] eor x8, x8, x10 ldursw x10, [x29, #-12] str x8, [x9, x10, lsl #3] b LBB1_8 LBB1_8: ; in Loop: Header=BB1_4 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB1_4 LBB1_9: b LBB1_10 LBB1_10: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-12] subs w8, w8, #623 cset w8, ge tbnz w8, #0, LBB1_13 b LBB1_11 LBB1_11: ; in Loop: Header=BB1_10 Depth=1 ldursw x8, [x29, #-12] adrp x9, _mt@PAGE add x9, x9, _mt@PAGEOFF ldr x8, [x9, x8, lsl #3] and x8, x8, #0x80000000 ldur w10, [x29, #-12] add w10, w10, #1 ldr x10, [x9, w10, sxtw #3] and x10, x10, #0x7fffffff orr x8, x8, x10 stur x8, [x29, #-8] ldur w8, [x29, #-12] subs w8, w8, #227 ldr x8, [x9, w8, sxtw #3] ldur x10, [x29, #-8] eor x8, x8, x10, lsr #1 ldur x10, [x29, #-8] and x11, x10, #0x1 adrp x10, _genrand.mag01@PAGE add x10, x10, _genrand.mag01@PAGEOFF ldr x10, [x10, x11, lsl #3] eor x8, x8, x10 ldursw x10, [x29, #-12] str x8, [x9, x10, lsl #3] b LBB1_12 LBB1_12: ; in Loop: Header=BB1_10 Depth=1 ldur w8, [x29, #-12] add w8, w8, #1 stur w8, [x29, #-12] b LBB1_10 LBB1_13: ldr x9, [sp, #8] ; 8-byte Folded Reload ldr x8, [x9, #4984] and x8, x8, #0x80000000 adrp x10, _mt@PAGE ldr x10, [x10, _mt@PAGEOFF] and x10, x10, #0x7fffffff orr x8, x8, x10 stur x8, [x29, #-8] ldr x8, [x9, #3168] ldur x10, [x29, #-8] eor x8, x8, x10, lsr #1 ldur x10, [x29, #-8] and x11, x10, #0x1 adrp x10, _genrand.mag01@PAGE add x10, x10, _genrand.mag01@PAGEOFF ldr x10, [x10, x11, lsl #3] eor x8, x8, x10 str x8, [x9, #4984] adrp x8, _mti@PAGE str wzr, [x8, _mti@PAGEOFF] b LBB1_14 LBB1_14: adrp x10, _mti@PAGE ldrsw x9, [x10, _mti@PAGEOFF] mov x8, x9 add w8, w8, #1 str w8, [x10, _mti@PAGEOFF] adrp x8, _mt@PAGE add x8, x8, _mt@PAGEOFF ldr x8, [x8, x9, lsl #3] stur x8, [x29, #-8] ldur x9, [x29, #-8] ldur x8, [x29, #-8] eor x8, x8, x9, lsr #11 stur x8, [x29, #-8] ldur x9, [x29, #-8] mov x8, #22144 movk x8, #40236, lsl #16 and x9, x8, x9, lsl #7 ldur x8, [x29, #-8] eor x8, x8, x9 stur x8, [x29, #-8] ldur x9, [x29, #-8] mov x8, #4022730752 and x9, x8, x9, lsl #15 ldur x8, [x29, #-8] eor x8, x8, x9 stur x8, [x29, #-8] ldur x9, [x29, #-8] ldur x8, [x29, #-8] eor x8, x8, x9, lsr #18 stur x8, [x29, #-8] ldur x8, [x29, #-8] and x0, x8, #0x7fffffff ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _random_at_most ; -- Begin function random_at_most .p2align 2 _random_at_most: ; @random_at_most .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x8, [x29, #-8] add x8, x8, #1 stur x8, [x29, #-16] mov x8, #2147483648 str x8, [sp, #24] ldr x8, [sp, #24] ldur x9, [x29, #-16] udiv x8, x8, x9 str x8, [sp, #16] ldr x8, [sp, #24] ldur x10, [x29, #-16] udiv x9, x8, x10 mul x9, x9, x10 subs x8, x8, x9 str x8, [sp, #8] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 bl _genrand str x0, [sp] b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldr x8, [sp, #24] ldr x9, [sp, #8] subs x8, x8, x9 ldr x9, [sp] subs x8, x8, x9 cset w8, ls tbnz w8, #0, LBB2_1 b LBB2_3 LBB2_3: ldr x8, [sp] ldr x9, [sp, #16] udiv x0, x8, x9 ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .zerofill __DATA,__bss,_mt,4992,3 ; @mt .section __DATA,__data .p2align 2 ; @mti _mti: .long 625 ; 0x271 .p2align 3 ; @genrand.mag01 _genrand.mag01: .quad 0 ; 0x0 .quad 2567483615 ; 0x9908b0df .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _sgenrand ## -- Begin function sgenrand .p2align 4, 0x90 _sgenrand: ## @sgenrand .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movq %rdi, -8(%rbp) movabsq $4294967295, %rax ## imm = 0xFFFFFFFF andq -8(%rbp), %rax movq %rax, _mt(%rip) movl $1, _mti(%rip) LBB0_1: ## =>This Inner Loop Header: Depth=1 cmpl $624, _mti(%rip) ## imm = 0x270 jge LBB0_4 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movl _mti(%rip), %eax subl $1, %eax movslq %eax, %rcx leaq _mt(%rip), %rax imulq $69069, (%rax,%rcx,8), %rdx ## imm = 0x10DCD movabsq $4294967295, %rax ## imm = 0xFFFFFFFF andq %rax, %rdx movslq _mti(%rip), %rcx leaq _mt(%rip), %rax movq %rdx, (%rax,%rcx,8) ## %bb.3: ## in Loop: Header=BB0_1 Depth=1 movl _mti(%rip), %eax addl $1, %eax movl %eax, _mti(%rip) jmp LBB0_1 LBB0_4: popq %rbp retq .cfi_endproc ## -- End function .globl _genrand ## -- Begin function genrand .p2align 4, 0x90 _genrand: ## @genrand .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp cmpl $624, _mti(%rip) ## imm = 0x270 jl LBB1_14 ## %bb.1: cmpl $625, _mti(%rip) ## imm = 0x271 jne LBB1_3 ## %bb.2: movl $4357, %edi ## imm = 0x1105 callq _sgenrand LBB1_3: movl $0, -12(%rbp) LBB1_4: ## =>This Inner Loop Header: Depth=1 cmpl $227, -12(%rbp) jge LBB1_9 ## %bb.5: ## in Loop: Header=BB1_4 Depth=1 movslq -12(%rbp), %rdx xorl %eax, %eax ## kill: def $al killed $al killed $eax leaq _mt(%rip), %rcx cmpq $0, (%rcx,%rdx,8) movb %al, -13(%rbp) ## 1-byte Spill je LBB1_7 ## %bb.6: ## in Loop: Header=BB1_4 Depth=1 movb $1, %al movb %al, -13(%rbp) ## 1-byte Spill jmp LBB1_7 LBB1_7: ## in Loop: Header=BB1_4 Depth=1 movb -13(%rbp), %al ## 1-byte Reload andb $1, %al movzbl %al, %eax cltq movl -12(%rbp), %ecx addl $1, %ecx movslq %ecx, %rdx leaq _mt(%rip), %rcx movq (%rcx,%rdx,8), %rcx andq $2147483647, %rcx ## imm = 0x7FFFFFFF orq %rcx, %rax movq %rax, -8(%rbp) movl -12(%rbp), %eax addl $397, %eax ## imm = 0x18D movslq %eax, %rcx leaq _mt(%rip), %rax movq (%rax,%rcx,8), %rdx movq -8(%rbp), %rax shrq $1, %rax xorq %rax, %rdx movq -8(%rbp), %rcx andq $1, %rcx leaq _genrand.mag01(%rip), %rax xorq (%rax,%rcx,8), %rdx movslq -12(%rbp), %rcx leaq _mt(%rip), %rax movq %rdx, (%rax,%rcx,8) ## %bb.8: ## in Loop: Header=BB1_4 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB1_4 LBB1_9: jmp LBB1_10 LBB1_10: ## =>This Inner Loop Header: Depth=1 cmpl $623, -12(%rbp) ## imm = 0x26F jge LBB1_13 ## %bb.11: ## in Loop: Header=BB1_10 Depth=1 movslq -12(%rbp), %rdx leaq _mt(%rip), %rcx movabsq $2147483648, %rax ## imm = 0x80000000 andq (%rcx,%rdx,8), %rax movl -12(%rbp), %ecx addl $1, %ecx movslq %ecx, %rdx leaq _mt(%rip), %rcx movq (%rcx,%rdx,8), %rcx andq $2147483647, %rcx ## imm = 0x7FFFFFFF orq %rcx, %rax movq %rax, -8(%rbp) movl -12(%rbp), %eax addl $-227, %eax movslq %eax, %rcx leaq _mt(%rip), %rax movq (%rax,%rcx,8), %rdx movq -8(%rbp), %rax shrq $1, %rax xorq %rax, %rdx movq -8(%rbp), %rcx andq $1, %rcx leaq _genrand.mag01(%rip), %rax xorq (%rax,%rcx,8), %rdx movslq -12(%rbp), %rcx leaq _mt(%rip), %rax movq %rdx, (%rax,%rcx,8) ## %bb.12: ## in Loop: Header=BB1_10 Depth=1 movl -12(%rbp), %eax addl $1, %eax movl %eax, -12(%rbp) jmp LBB1_10 LBB1_13: movabsq $2147483648, %rax ## imm = 0x80000000 andq _mt+4984(%rip), %rax movq _mt(%rip), %rcx andq $2147483647, %rcx ## imm = 0x7FFFFFFF orq %rcx, %rax movq %rax, -8(%rbp) movq _mt+3168(%rip), %rax movq -8(%rbp), %rcx shrq $1, %rcx xorq %rcx, %rax movq -8(%rbp), %rdx andq $1, %rdx leaq _genrand.mag01(%rip), %rcx xorq (%rcx,%rdx,8), %rax movq %rax, _mt+4984(%rip) movl $0, _mti(%rip) LBB1_14: movl _mti(%rip), %eax movl %eax, %ecx addl $1, %ecx movl %ecx, _mti(%rip) movslq %eax, %rcx leaq _mt(%rip), %rax movq (%rax,%rcx,8), %rax movq %rax, -8(%rbp) movq -8(%rbp), %rax shrq $11, %rax xorq -8(%rbp), %rax movq %rax, -8(%rbp) movq -8(%rbp), %rax shlq $7, %rax movabsq $2636928640, %rcx ## imm = 0x9D2C5680 andq %rcx, %rax xorq -8(%rbp), %rax movq %rax, -8(%rbp) movq -8(%rbp), %rax shlq $15, %rax movabsq $4022730752, %rcx ## imm = 0xEFC60000 andq %rcx, %rax xorq -8(%rbp), %rax movq %rax, -8(%rbp) movq -8(%rbp), %rax shrq $18, %rax xorq -8(%rbp), %rax movq %rax, -8(%rbp) movq -8(%rbp), %rax andq $2147483647, %rax ## imm = 0x7FFFFFFF addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _random_at_most ## -- Begin function random_at_most .p2align 4, 0x90 _random_at_most: ## @random_at_most .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax addq $1, %rax movq %rax, -16(%rbp) movl $2147483648, %eax ## imm = 0x80000000 movq %rax, -24(%rbp) movq -24(%rbp), %rax xorl %ecx, %ecx movl %ecx, %edx divq -16(%rbp) movq %rax, -32(%rbp) movq -24(%rbp), %rax xorl %ecx, %ecx movl %ecx, %edx divq -16(%rbp) movq %rdx, -40(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 callq _genrand movq %rax, -48(%rbp) ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movq -24(%rbp), %rax subq -40(%rbp), %rax cmpq -48(%rbp), %rax jbe LBB2_1 ## %bb.3: movq -48(%rbp), %rax xorl %ecx, %ecx movl %ecx, %edx divq -32(%rbp) addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .zerofill __DATA,__bss,_mt,4992,4 ## @mt .section __DATA,__data .p2align 2 ## @mti _mti: .long 625 ## 0x271 .p2align 4 ## @genrand.mag01 _genrand.mag01: .quad 0 ## 0x0 .quad 2567483615 ## 0x9908b0df .subsections_via_symbols
the_stack_data/237642585.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _toEnd ; -- Begin function toEnd .p2align 2 _toEnd: ; @toEnd .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] stur x1, [x29, #-16] str x2, [sp, #24] adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldur w8, [x29, #-4] ; implicit-def: $x11 mov x11, x8 ldur x10, [x29, #-16] ldr x8, [sp, #24] mov x9, sp str x11, [x9] str x10, [x9, #8] str x8, [x9, #16] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fprintf ldur w0, [x29, #-4] bl _exit .cfi_endproc ; -- End function .globl _init ; -- Begin function init .p2align 2 _init: ; @init .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _LogFile@GOTPAGE ldr x8, [x8, _LogFile@GOTPAGEOFF] str x8, [sp, #24] ; 8-byte Folded Spill adrp x0, l_.str.2@PAGE add x0, x0, l_.str.2@PAGEOFF bl _getenv stur x0, [x29, #-8] ldur x8, [x29, #-8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB1_2 b LBB1_1 LBB1_1: ldur x0, [x29, #-8] bl _atoi adrp x8, _LogFileNum@PAGE str w0, [x8, _LogFileNum@PAGEOFF] b LBB1_2 LBB1_2: adrp x8, _LogFileNum@PAGE ldrsw x0, [x8, _LogFileNum@PAGEOFF] mov x1, #8 bl _calloc ldr x8, [sp, #24] ; 8-byte Folded Reload str x0, [x8] adrp x0, l_.str.3@PAGE add x0, x0, l_.str.3@PAGEOFF bl _getenv stur x0, [x29, #-8] ldur x8, [x29, #-8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB1_4 b LBB1_3 LBB1_3: ldur x8, [x29, #-8] adrp x9, _LogFile0@PAGE str x8, [x9, _LogFile0@PAGEOFF] b LBB1_4 LBB1_4: adrp x0, l_.str.4@PAGE add x0, x0, l_.str.4@PAGEOFF bl _getenv stur x0, [x29, #-8] ldur x8, [x29, #-8] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB1_6 b LBB1_5 LBB1_5: ldur x0, [x29, #-8] bl _atol adrp x8, _LogMaxSize@PAGE str x0, [x8, _LogMaxSize@PAGEOFF] b LBB1_6 LBB1_6: adrp x8, _LogFile0@PAGE ldr x0, [x8, _LogFile0@PAGEOFF] bl _strlen add x8, x0, #10 ; kill: def $w8 killed $w8 killed $x8 stur w8, [x29, #-12] stur wzr, [x29, #-16] b LBB1_7 LBB1_7: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-16] adrp x9, _LogFileNum@PAGE ldr w9, [x9, _LogFileNum@PAGEOFF] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_13 b LBB1_8 LBB1_8: ; in Loop: Header=BB1_7 Depth=1 ldursw x0, [x29, #-12] bl _malloc ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x8, [x8] ldursw x9, [x29, #-16] str x0, [x8, x9, lsl #3] ldur w8, [x29, #-16] subs w8, w8, #0 cset w8, ne tbnz w8, #0, LBB1_10 b LBB1_9 LBB1_9: ; in Loop: Header=BB1_7 Depth=1 ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x8, [x8] ldr x0, [x8] adrp x8, _LogFile0@PAGE ldr x8, [x8, _LogFile0@PAGEOFF] mov x9, sp str x8, [x9] mov w1, #0 mov x2, #-1 adrp x3, l_.str.5@PAGE add x3, x3, l_.str.5@PAGEOFF bl ___sprintf_chk b LBB1_11 LBB1_10: ; in Loop: Header=BB1_7 Depth=1 ldr x8, [sp, #24] ; 8-byte Folded Reload ldr x8, [x8] ldursw x9, [x29, #-16] ldr x0, [x8, x9, lsl #3] adrp x8, _LogFile0@PAGE ldr x10, [x8, _LogFile0@PAGEOFF] ldur w9, [x29, #-16] ; implicit-def: $x8 mov x8, x9 mov x9, sp str x10, [x9] str x8, [x9, #8] mov w1, #0 mov x2, #-1 adrp x3, l_.str.6@PAGE add x3, x3, l_.str.6@PAGEOFF bl ___sprintf_chk b LBB1_11 LBB1_11: ; in Loop: Header=BB1_7 Depth=1 b LBB1_12 LBB1_12: ; in Loop: Header=BB1_7 Depth=1 ldur w8, [x29, #-16] add w8, w8, #1 stur w8, [x29, #-16] b LBB1_7 LBB1_13: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .globl _toClose ; -- Begin function toClose .p2align 2 _toClose: ; @toClose .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _LogFp@PAGE ldr x8, [x8, _LogFp@PAGEOFF] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB2_2 b LBB2_1 LBB2_1: adrp x8, _LogFp@PAGE str x8, [sp] ; 8-byte Folded Spill ldr x0, [x8, _LogFp@PAGEOFF] bl _fclose ldr x8, [sp] ; 8-byte Folded Reload ; kill: def $x9 killed $xzr str xzr, [x8, _LogFp@PAGEOFF] b LBB2_2 LBB2_2: stur wzr, [x29, #-4] b LBB2_3 LBB2_3: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-4] adrp x9, _LogFileNum@PAGE ldr w9, [x9, _LogFileNum@PAGEOFF] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB2_6 b LBB2_4 LBB2_4: ; in Loop: Header=BB2_3 Depth=1 adrp x8, _LogFile@GOTPAGE ldr x8, [x8, _LogFile@GOTPAGEOFF] ldr x8, [x8] ldursw x9, [x29, #-4] ldr x0, [x8, x9, lsl #3] bl _free b LBB2_5 LBB2_5: ; in Loop: Header=BB2_3 Depth=1 ldur w8, [x29, #-4] add w8, w8, #1 stur w8, [x29, #-4] b LBB2_3 LBB2_6: ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _chkfilestat ; -- Begin function chkfilestat .p2align 2 _chkfilestat: ; @chkfilestat .cfi_startproc ; %bb.0: sub sp, sp, #32 .cfi_def_cfa_offset 32 stp x29, x30, [sp, #16] ; 16-byte Folded Spill add x29, sp, #16 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _LogFp@PAGE ldr x8, [x8, _LogFp@PAGEOFF] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB3_4 b LBB3_1 LBB3_1: adrp x8, _LogFile@GOTPAGE ldr x8, [x8, _LogFile@GOTPAGEOFF] ldr x8, [x8] ldr x0, [x8] adrp x1, l_.str.7@PAGE add x1, x1, l_.str.7@PAGEOFF bl _fopen adrp x8, _LogFp@PAGE str x0, [x8, _LogFp@PAGEOFF] ldr x8, [x8, _LogFp@PAGEOFF] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB3_3 b LBB3_2 LBB3_2: adrp x8, _LogFile@GOTPAGE ldr x8, [x8, _LogFile@GOTPAGEOFF] ldr x8, [x8] ldr x2, [x8] mov w0, #-2 adrp x1, l_.str.8@PAGE add x1, x1, l_.str.8@PAGEOFF bl _toEnd b LBB3_3 LBB3_3: b LBB3_4 LBB3_4: adrp x8, _LogFp@PAGE ldr x0, [x8, _LogFp@PAGEOFF] bl _ftell ldp x29, x30, [sp, #16] ; 16-byte Folded Reload add sp, sp, #32 ret .cfi_endproc ; -- End function .globl _rotate ; -- Begin function rotate .p2align 2 _rotate: ; @rotate .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 adrp x8, _LogFile@GOTPAGE ldr x8, [x8, _LogFile@GOTPAGEOFF] str x8, [sp, #8] ; 8-byte Folded Spill adrp x8, _LogFp@PAGE ldr x0, [x8, _LogFp@PAGEOFF] bl _fclose ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x8, [x8] adrp x9, _LogFileNum@PAGE str x9, [sp, #16] ; 8-byte Folded Spill ldr w9, [x9, _LogFileNum@PAGEOFF] subs w9, w9, #1 ldr x0, [x8, w9, sxtw #3] bl _remove ldr x8, [sp, #16] ; 8-byte Folded Reload ldr w8, [x8, _LogFileNum@PAGEOFF] subs w8, w8, #1 stur w8, [x29, #-4] b LBB4_1 LBB4_1: ; =>This Inner Loop Header: Depth=1 ldur w8, [x29, #-4] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB4_4 b LBB4_2 LBB4_2: ; in Loop: Header=BB4_1 Depth=1 ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x9, [x8] ldur w10, [x29, #-4] subs w10, w10, #1 ldr x0, [x9, w10, sxtw #3] ldr x8, [x8] ldursw x9, [x29, #-4] ldr x1, [x8, x9, lsl #3] bl _rename b LBB4_3 LBB4_3: ; in Loop: Header=BB4_1 Depth=1 ldur w8, [x29, #-4] subs w8, w8, #1 stur w8, [x29, #-4] b LBB4_1 LBB4_4: ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x8, [x8] ldr x0, [x8] adrp x1, l_.str.7@PAGE add x1, x1, l_.str.7@PAGEOFF bl _fopen adrp x8, _LogFp@PAGE str x0, [x8, _LogFp@PAGEOFF] ldr x8, [x8, _LogFp@PAGEOFF] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB4_6 b LBB4_5 LBB4_5: ldr x8, [sp, #8] ; 8-byte Folded Reload ldr x8, [x8] ldr x2, [x8] mov w0, #-3 adrp x1, l_.str.8@PAGE add x1, x1, l_.str.8@PAGEOFF bl _toEnd b LBB4_6 LBB4_6: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _appendMsg ; -- Begin function appendMsg .p2align 2 _appendMsg: ; @appendMsg .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] ldur x8, [x29, #-8] str x8, [sp] ; 8-byte Folded Spill ldur x0, [x29, #-8] bl _strlen mov x2, x0 ldr x0, [sp] ; 8-byte Folded Reload adrp x8, _LogFp@PAGE str x8, [sp, #16] ; 8-byte Folded Spill ldr x3, [x8, _LogFp@PAGEOFF] mov x1, #1 str x1, [sp, #8] ; 8-byte Folded Spill bl _fwrite ldr x2, [sp, #8] ; 8-byte Folded Reload ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x3, [x8, _LogFp@PAGEOFF] adrp x0, l_.str.9@PAGE add x0, x0, l_.str.9@PAGEOFF mov x1, x2 bl _fwrite ldr x8, [sp, #16] ; 8-byte Folded Reload ldr x0, [x8, _LogFp@PAGEOFF] bl _fflush ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _getTimeString ; -- Begin function getTimeString .p2align 2 _getTimeString: ; @getTimeString .cfi_startproc ; %bb.0: sub sp, sp, #96 .cfi_def_cfa_offset 96 stp x29, x30, [sp, #80] ; 16-byte Folded Spill add x29, sp, #80 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 mov x0, #0 bl _time mov x8, x0 sub x0, x29, #8 stur x8, [x29, #-8] bl _gmtime stur x0, [x29, #-16] ldur x8, [x29, #-16] ldr w8, [x8, #20] add w15, w8, #1900 ldur x8, [x29, #-16] ldr w8, [x8, #16] add w14, w8, #1 ldur x8, [x29, #-16] ldr w8, [x8, #12] ; implicit-def: $x12 mov x12, x8 ldur x8, [x29, #-16] ldr w8, [x8, #8] ; implicit-def: $x11 mov x11, x8 ldur x8, [x29, #-16] ldr w8, [x8, #4] ; implicit-def: $x10 mov x10, x8 ldur x8, [x29, #-16] ldr w9, [x8] ; implicit-def: $x8 mov x8, x9 mov x9, sp ; implicit-def: $x13 mov x13, x15 str x13, [x9] ; implicit-def: $x13 mov x13, x14 str x13, [x9, #8] str x12, [x9, #16] str x11, [x9, #24] str x10, [x9, #32] str x8, [x9, #40] adrp x0, _LogTimeStr@GOTPAGE ldr x0, [x0, _LogTimeStr@GOTPAGEOFF] stur x0, [x29, #-24] ; 8-byte Folded Spill mov w1, #0 mov x2, #40 adrp x3, l_.str.10@PAGE add x3, x3, l_.str.10@PAGEOFF bl ___sprintf_chk ldur x0, [x29, #-24] ; 8-byte Folded Reload ldp x29, x30, [sp, #80] ; 16-byte Folded Reload add sp, sp, #96 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #64 .cfi_def_cfa_offset 64 stp x29, x30, [sp, #48] ; 16-byte Folded Spill add x29, sp, #48 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] stur x1, [x29, #-16] bl _init ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, le tbnz w8, #0, LBB7_2 b LBB7_1 LBB7_1: adrp x8, ___stderrp@GOTPAGE ldr x8, [x8, ___stderrp@GOTPAGEOFF] ldr x0, [x8] ldur x8, [x29, #-16] ldr x8, [x8] mov x9, sp str x8, [x9] adrp x1, l_.str.11@PAGE add x1, x1, l_.str.11@PAGEOFF bl _fprintf bl _getTimeString mov x2, x0 mov w0, #-1 adrp x1, l_.str.12@PAGE add x1, x1, l_.str.12@PAGEOFF bl _toEnd b LBB7_2 LBB7_2: ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB7_8 b LBB7_3 LBB7_3: ldur x8, [x29, #-16] ldr x8, [x8, #8] str x8, [sp, #24] bl _chkfilestat adrp x8, _LogMaxSize@PAGE ldr x8, [x8, _LogMaxSize@PAGEOFF] subs x8, x0, x8 cset w8, le tbnz w8, #0, LBB7_5 b LBB7_4 LBB7_4: bl _rotate b LBB7_5 LBB7_5: ldr x8, [sp, #24] subs x8, x8, #0 cset w8, eq tbnz w8, #0, LBB7_7 b LBB7_6 LBB7_6: ldr x0, [sp, #24] bl _appendMsg b LBB7_7 LBB7_7: b LBB7_19 LBB7_8: mov x0, #65536 bl _malloc str x0, [sp, #16] b LBB7_9 LBB7_9: ; =>This Inner Loop Header: Depth=1 ldr x0, [sp, #16] adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x2, [x8] mov w1, #65536 bl _fgets str x0, [sp, #24] ldr x8, [sp, #24] subs x8, x8, #0 cset w8, ne tbnz w8, #0, LBB7_11 b LBB7_10 LBB7_10: b LBB7_18 LBB7_11: ; in Loop: Header=BB7_9 Depth=1 ldr x0, [sp, #24] bl _strlen mov x8, x0 str w8, [sp, #12] ldr w8, [sp, #12] subs w8, w8, #0 cset w8, le tbnz w8, #0, LBB7_14 b LBB7_12 LBB7_12: ; in Loop: Header=BB7_9 Depth=1 ldr x8, [sp, #24] ldr w9, [sp, #12] subs w9, w9, #1 ldrsb w8, [x8, w9, sxtw] subs w8, w8, #10 cset w8, ne tbnz w8, #0, LBB7_14 b LBB7_13 LBB7_13: ; in Loop: Header=BB7_9 Depth=1 ldr x8, [sp, #24] ldr w9, [sp, #12] subs w9, w9, #1 add x8, x8, w9, sxtw strb wzr, [x8] b LBB7_14 LBB7_14: ; in Loop: Header=BB7_9 Depth=1 bl _chkfilestat adrp x8, _LogMaxSize@PAGE ldr x8, [x8, _LogMaxSize@PAGEOFF] subs x8, x0, x8 cset w8, le tbnz w8, #0, LBB7_16 b LBB7_15 LBB7_15: ; in Loop: Header=BB7_9 Depth=1 bl _rotate b LBB7_16 LBB7_16: ; in Loop: Header=BB7_9 Depth=1 ldr x0, [sp, #24] bl _appendMsg b LBB7_17 LBB7_17: ; in Loop: Header=BB7_9 Depth=1 mov w8, #1 tbnz w8, #0, LBB7_9 b LBB7_18 LBB7_18: ldr x0, [sp, #16] bl _free b LBB7_19 LBB7_19: bl _toClose bl _getTimeString mov x2, x0 mov w0, #0 adrp x1, l_.str.13@PAGE add x1, x1, l_.str.13@PAGEOFF bl _toEnd ldur w0, [x29, #-4] ldp x29, x30, [sp, #48] ; 16-byte Folded Reload add sp, sp, #64 ret .cfi_endproc ; -- End function .section __DATA,__data .globl _LogFileNum ; @LogFileNum .p2align 2 _LogFileNum: .long 10 ; 0xa .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "mmlog" .section __DATA,__data .globl _LogFile0 ; @LogFile0 .p2align 3 _LogFile0: .quad l_.str .globl _LogFp ; @LogFp .zerofill __DATA,__common,_LogFp,8,3 .globl _LogFpX ; @LogFpX .zerofill __DATA,__common,_LogFpX,8,3 .globl _LogMaxSize ; @LogMaxSize .p2align 3 _LogMaxSize: .quad 10000000 ; 0x989680 .section __TEXT,__cstring,cstring_literals l_.str.1: ; @.str.1 .asciz "Quit: %d - %s %s\n" l_.str.2: ; @.str.2 .asciz "MM_LOGFILE_NUM" .comm _LogFile,8,3 ; @LogFile l_.str.3: ; @.str.3 .asciz "MM_LOGFILE" l_.str.4: ; @.str.4 .asciz "MM_LOGSIZE" l_.str.5: ; @.str.5 .asciz "%s.log" l_.str.6: ; @.str.6 .asciz "%s%d.log" l_.str.7: ; @.str.7 .asciz "a" l_.str.8: ; @.str.8 .asciz "Error open file:" l_.str.9: ; @.str.9 .asciz "\n" .comm _LogTimeStr,40,0 ; @LogTimeStr l_.str.10: ; @.str.10 .asciz "%04d-%02d-%02dT%02d:%02d:%02dZ" l_.str.11: ; @.str.11 .asciz "Syntax:\n %s [<log-message>]\n" l_.str.12: ; @.str.12 .asciz "arguments number must not greater than 2 @" l_.str.13: ; @.str.13 .asciz "Exit normally @" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _toEnd ## -- Begin function toEnd .p2align 4, 0x90 _toEnd: ## @toEnd .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movl -4(%rbp), %edx movq -16(%rbp), %rcx movq -24(%rbp), %r8 leaq L_.str.1(%rip), %rsi xorl %eax, %eax ## kill: def $al killed $al killed $eax callq _fprintf movl -4(%rbp), %edi callq _exit .cfi_endproc ## -- End function .globl _init ## -- Begin function init .p2align 4, 0x90 _init: ## @init .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp leaq L_.str.2(%rip), %rdi callq _getenv movq %rax, -8(%rbp) cmpq $0, -8(%rbp) je LBB1_2 ## %bb.1: movq -8(%rbp), %rdi callq _atoi movl %eax, _LogFileNum(%rip) LBB1_2: movslq _LogFileNum(%rip), %rdi movl $8, %esi callq _calloc movq %rax, %rcx movq _LogFile@GOTPCREL(%rip), %rax movq %rcx, (%rax) leaq L_.str.3(%rip), %rdi callq _getenv movq %rax, -8(%rbp) cmpq $0, -8(%rbp) je LBB1_4 ## %bb.3: movq -8(%rbp), %rax movq %rax, _LogFile0(%rip) LBB1_4: leaq L_.str.4(%rip), %rdi callq _getenv movq %rax, -8(%rbp) cmpq $0, -8(%rbp) je LBB1_6 ## %bb.5: movq -8(%rbp), %rdi callq _atol movq %rax, _LogMaxSize(%rip) LBB1_6: movq _LogFile0(%rip), %rdi callq _strlen addq $10, %rax ## kill: def $eax killed $eax killed $rax movl %eax, -12(%rbp) movl $0, -16(%rbp) LBB1_7: ## =>This Inner Loop Header: Depth=1 movl -16(%rbp), %eax cmpl _LogFileNum(%rip), %eax jge LBB1_13 ## %bb.8: ## in Loop: Header=BB1_7 Depth=1 movslq -12(%rbp), %rdi callq _malloc movq %rax, %rdx movq _LogFile@GOTPCREL(%rip), %rax movq (%rax), %rax movslq -16(%rbp), %rcx movq %rdx, (%rax,%rcx,8) cmpl $0, -16(%rbp) jne LBB1_10 ## %bb.9: ## in Loop: Header=BB1_7 Depth=1 movq _LogFile@GOTPCREL(%rip), %rax movq (%rax), %rax movq (%rax), %rdi movq _LogFile0(%rip), %r8 xorl %esi, %esi movq $-1, %rdx leaq L_.str.5(%rip), %rcx movb $0, %al callq ___sprintf_chk jmp LBB1_11 LBB1_10: ## in Loop: Header=BB1_7 Depth=1 movq _LogFile@GOTPCREL(%rip), %rax movq (%rax), %rax movslq -16(%rbp), %rcx movq (%rax,%rcx,8), %rdi movq _LogFile0(%rip), %r8 movl -16(%rbp), %r9d xorl %esi, %esi movq $-1, %rdx leaq L_.str.6(%rip), %rcx movb $0, %al callq ___sprintf_chk LBB1_11: ## in Loop: Header=BB1_7 Depth=1 jmp LBB1_12 LBB1_12: ## in Loop: Header=BB1_7 Depth=1 movl -16(%rbp), %eax addl $1, %eax movl %eax, -16(%rbp) jmp LBB1_7 LBB1_13: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _toClose ## -- Begin function toClose .p2align 4, 0x90 _toClose: ## @toClose .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp cmpq $0, _LogFp(%rip) je LBB2_2 ## %bb.1: movq _LogFp(%rip), %rdi callq _fclose movq $0, _LogFp(%rip) LBB2_2: movl $0, -4(%rbp) LBB2_3: ## =>This Inner Loop Header: Depth=1 movl -4(%rbp), %eax cmpl _LogFileNum(%rip), %eax jge LBB2_6 ## %bb.4: ## in Loop: Header=BB2_3 Depth=1 movq _LogFile@GOTPCREL(%rip), %rax movq (%rax), %rax movslq -4(%rbp), %rcx movq (%rax,%rcx,8), %rdi callq _free ## %bb.5: ## in Loop: Header=BB2_3 Depth=1 movl -4(%rbp), %eax addl $1, %eax movl %eax, -4(%rbp) jmp LBB2_3 LBB2_6: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _chkfilestat ## -- Begin function chkfilestat .p2align 4, 0x90 _chkfilestat: ## @chkfilestat .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp cmpq $0, _LogFp(%rip) jne LBB3_4 ## %bb.1: movq _LogFile@GOTPCREL(%rip), %rax movq (%rax), %rax movq (%rax), %rdi leaq L_.str.7(%rip), %rsi callq _fopen movq %rax, _LogFp(%rip) cmpq $0, _LogFp(%rip) jne LBB3_3 ## %bb.2: movq _LogFile@GOTPCREL(%rip), %rax movq (%rax), %rax movq (%rax), %rdx movl $4294967294, %edi ## imm = 0xFFFFFFFE leaq L_.str.8(%rip), %rsi callq _toEnd LBB3_3: jmp LBB3_4 LBB3_4: movq _LogFp(%rip), %rdi callq _ftell addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _rotate ## -- Begin function rotate .p2align 4, 0x90 _rotate: ## @rotate .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq _LogFp(%rip), %rdi callq _fclose movq _LogFile@GOTPCREL(%rip), %rax movq (%rax), %rax movl _LogFileNum(%rip), %ecx subl $1, %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rdi callq _remove movl _LogFileNum(%rip), %eax subl $1, %eax movl %eax, -4(%rbp) LBB4_1: ## =>This Inner Loop Header: Depth=1 cmpl $0, -4(%rbp) jle LBB4_4 ## %bb.2: ## in Loop: Header=BB4_1 Depth=1 movq _LogFile@GOTPCREL(%rip), %rax movq (%rax), %rax movl -4(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rdi movq _LogFile@GOTPCREL(%rip), %rax movq (%rax), %rax movslq -4(%rbp), %rcx movq (%rax,%rcx,8), %rsi callq _rename ## %bb.3: ## in Loop: Header=BB4_1 Depth=1 movl -4(%rbp), %eax addl $-1, %eax movl %eax, -4(%rbp) jmp LBB4_1 LBB4_4: movq _LogFile@GOTPCREL(%rip), %rax movq (%rax), %rax movq (%rax), %rdi leaq L_.str.7(%rip), %rsi callq _fopen movq %rax, _LogFp(%rip) cmpq $0, _LogFp(%rip) jne LBB4_6 ## %bb.5: movq _LogFile@GOTPCREL(%rip), %rax movq (%rax), %rax movq (%rax), %rdx movl $4294967293, %edi ## imm = 0xFFFFFFFD leaq L_.str.8(%rip), %rsi callq _toEnd LBB4_6: addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _appendMsg ## -- Begin function appendMsg .p2align 4, 0x90 _appendMsg: ## @appendMsg .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $16, %rsp movq %rdi, -8(%rbp) movq -8(%rbp), %rax movq %rax, -16(%rbp) ## 8-byte Spill movq -8(%rbp), %rdi callq _strlen movq -16(%rbp), %rdi ## 8-byte Reload movq %rax, %rdx movq _LogFp(%rip), %rcx movl $1, %esi callq _fwrite movq _LogFp(%rip), %rcx leaq L_.str.9(%rip), %rdi movl $1, %edx movq %rdx, %rsi callq _fwrite movq _LogFp(%rip), %rdi callq _fflush addq $16, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _getTimeString ## -- Begin function getTimeString .p2align 4, 0x90 _getTimeString: ## @getTimeString .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp pushq %rbx subq $56, %rsp .cfi_offset %rbx, -24 xorl %eax, %eax movl %eax, %edi callq _time movq %rax, -16(%rbp) leaq -16(%rbp), %rdi callq _gmtime movq %rax, -24(%rbp) movq -24(%rbp), %rax movl 20(%rax), %r8d addl $1900, %r8d ## imm = 0x76C movq -24(%rbp), %rax movl 16(%rax), %r9d addl $1, %r9d movq -24(%rbp), %rax movl 12(%rax), %ebx movq -24(%rbp), %rax movl 8(%rax), %r11d movq -24(%rbp), %rax movl 4(%rax), %r10d movq -24(%rbp), %rax movl (%rax), %eax movq _LogTimeStr@GOTPCREL(%rip), %rdi xorl %esi, %esi movl $40, %edx leaq L_.str.10(%rip), %rcx movl %ebx, (%rsp) movl %r11d, 8(%rsp) movl %r10d, 16(%rsp) movl %eax, 24(%rsp) movb $0, %al callq ___sprintf_chk movq _LogTimeStr@GOTPCREL(%rip), %rax addq $56, %rsp popq %rbx popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $48, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) callq _init cmpl $2, -8(%rbp) jle LBB7_2 ## %bb.1: movq ___stderrp@GOTPCREL(%rip), %rax movq (%rax), %rdi movq -16(%rbp), %rax movq (%rax), %rdx leaq L_.str.11(%rip), %rsi movb $0, %al callq _fprintf callq _getTimeString movq %rax, %rdx movl $4294967295, %edi ## imm = 0xFFFFFFFF leaq L_.str.12(%rip), %rsi callq _toEnd LBB7_2: cmpl $2, -8(%rbp) jne LBB7_8 ## %bb.3: movq -16(%rbp), %rax movq 8(%rax), %rax movq %rax, -24(%rbp) callq _chkfilestat cmpq _LogMaxSize(%rip), %rax jle LBB7_5 ## %bb.4: callq _rotate LBB7_5: cmpq $0, -24(%rbp) je LBB7_7 ## %bb.6: movq -24(%rbp), %rdi callq _appendMsg LBB7_7: jmp LBB7_19 LBB7_8: movl $65536, %edi ## imm = 0x10000 callq _malloc movq %rax, -32(%rbp) LBB7_9: ## =>This Inner Loop Header: Depth=1 movq -32(%rbp), %rdi movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rdx movl $65536, %esi ## imm = 0x10000 callq _fgets movq %rax, -24(%rbp) cmpq $0, -24(%rbp) jne LBB7_11 ## %bb.10: jmp LBB7_18 LBB7_11: ## in Loop: Header=BB7_9 Depth=1 movq -24(%rbp), %rdi callq _strlen ## kill: def $eax killed $eax killed $rax movl %eax, -36(%rbp) cmpl $0, -36(%rbp) jle LBB7_14 ## %bb.12: ## in Loop: Header=BB7_9 Depth=1 movq -24(%rbp), %rax movl -36(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movsbl (%rax,%rcx), %eax cmpl $10, %eax jne LBB7_14 ## %bb.13: ## in Loop: Header=BB7_9 Depth=1 movq -24(%rbp), %rax movl -36(%rbp), %ecx subl $1, %ecx movslq %ecx, %rcx movb $0, (%rax,%rcx) LBB7_14: ## in Loop: Header=BB7_9 Depth=1 callq _chkfilestat cmpq _LogMaxSize(%rip), %rax jle LBB7_16 ## %bb.15: ## in Loop: Header=BB7_9 Depth=1 callq _rotate LBB7_16: ## in Loop: Header=BB7_9 Depth=1 movq -24(%rbp), %rdi callq _appendMsg ## %bb.17: ## in Loop: Header=BB7_9 Depth=1 movb $1, %al testb $1, %al jne LBB7_9 jmp LBB7_18 LBB7_18: movq -32(%rbp), %rdi callq _free LBB7_19: callq _toClose callq _getTimeString movq %rax, %rdx xorl %edi, %edi leaq L_.str.13(%rip), %rsi callq _toEnd movl -4(%rbp), %eax addq $48, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __DATA,__data .globl _LogFileNum ## @LogFileNum .p2align 2 _LogFileNum: .long 10 ## 0xa .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "mmlog" .section __DATA,__data .globl _LogFile0 ## @LogFile0 .p2align 3 _LogFile0: .quad L_.str .globl _LogFp ## @LogFp .zerofill __DATA,__common,_LogFp,8,3 .globl _LogFpX ## @LogFpX .zerofill __DATA,__common,_LogFpX,8,3 .globl _LogMaxSize ## @LogMaxSize .p2align 3 _LogMaxSize: .quad 10000000 ## 0x989680 .section __TEXT,__cstring,cstring_literals L_.str.1: ## @.str.1 .asciz "Quit: %d - %s %s\n" L_.str.2: ## @.str.2 .asciz "MM_LOGFILE_NUM" .comm _LogFile,8,3 ## @LogFile L_.str.3: ## @.str.3 .asciz "MM_LOGFILE" L_.str.4: ## @.str.4 .asciz "MM_LOGSIZE" L_.str.5: ## @.str.5 .asciz "%s.log" L_.str.6: ## @.str.6 .asciz "%s%d.log" L_.str.7: ## @.str.7 .asciz "a" L_.str.8: ## @.str.8 .asciz "Error open file:" L_.str.9: ## @.str.9 .asciz "\n" .comm _LogTimeStr,40,4 ## @LogTimeStr L_.str.10: ## @.str.10 .asciz "%04d-%02d-%02dT%02d:%02d:%02dZ" L_.str.11: ## @.str.11 .asciz "Syntax:\n %s [<log-message>]\n" L_.str.12: ## @.str.12 .asciz "arguments number must not greater than 2 @" L_.str.13: ## @.str.13 .asciz "Exit normally @" .subsections_via_symbols
the_stack_data/48576428.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _implicitcast_0 ; -- Begin function implicitcast_0 .p2align 2 _implicitcast_0: ; @implicitcast_0 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] and w0, w8, #0xff add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _implicitcast_1 ; -- Begin function implicitcast_1 .p2align 2 _implicitcast_1: ; @implicitcast_1 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] sxtb w0, w8 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _implicitcast_2 ; -- Begin function implicitcast_2 .p2align 2 _implicitcast_2: ; @implicitcast_2 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] and w0, w8, #0xff add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _implicitcast_3 ; -- Begin function implicitcast_3 .p2align 2 _implicitcast_3: ; @implicitcast_3 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] sxtb w0, w8 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _cstylecast_0 ; -- Begin function cstylecast_0 .p2align 2 _cstylecast_0: ; @cstylecast_0 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] and w0, w8, #0xff add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _cstylecast_1 ; -- Begin function cstylecast_1 .p2align 2 _cstylecast_1: ; @cstylecast_1 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] sxtb w0, w8 add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _cstylecast_2 ; -- Begin function cstylecast_2 .p2align 2 _cstylecast_2: ; @cstylecast_2 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] and w0, w8, #0xff add sp, sp, #16 ret .cfi_endproc ; -- End function .globl _cstylecast_3 ; -- Begin function cstylecast_3 .p2align 2 _cstylecast_3: ; @cstylecast_3 .cfi_startproc ; %bb.0: sub sp, sp, #16 .cfi_def_cfa_offset 16 str w0, [sp, #12] ldr w8, [sp, #12] sxtb w0, w8 add sp, sp, #16 ret .cfi_endproc ; -- End function .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _implicitcast_0 ## -- Begin function implicitcast_0 .p2align 4, 0x90 _implicitcast_0: ## @implicitcast_0 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl -4(%rbp), %eax ## kill: def $al killed $al killed $eax movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _implicitcast_1 ## -- Begin function implicitcast_1 .p2align 4, 0x90 _implicitcast_1: ## @implicitcast_1 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl -4(%rbp), %eax ## kill: def $al killed $al killed $eax movsbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _implicitcast_2 ## -- Begin function implicitcast_2 .p2align 4, 0x90 _implicitcast_2: ## @implicitcast_2 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl -4(%rbp), %eax ## kill: def $al killed $al killed $eax movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _implicitcast_3 ## -- Begin function implicitcast_3 .p2align 4, 0x90 _implicitcast_3: ## @implicitcast_3 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl -4(%rbp), %eax ## kill: def $al killed $al killed $eax movsbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _cstylecast_0 ## -- Begin function cstylecast_0 .p2align 4, 0x90 _cstylecast_0: ## @cstylecast_0 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl -4(%rbp), %eax ## kill: def $al killed $al killed $eax movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _cstylecast_1 ## -- Begin function cstylecast_1 .p2align 4, 0x90 _cstylecast_1: ## @cstylecast_1 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl -4(%rbp), %eax ## kill: def $al killed $al killed $eax movsbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _cstylecast_2 ## -- Begin function cstylecast_2 .p2align 4, 0x90 _cstylecast_2: ## @cstylecast_2 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl -4(%rbp), %eax ## kill: def $al killed $al killed $eax movzbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .globl _cstylecast_3 ## -- Begin function cstylecast_3 .p2align 4, 0x90 _cstylecast_3: ## @cstylecast_3 .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp movl %edi, -4(%rbp) movl -4(%rbp), %eax ## kill: def $al killed $al killed $eax movsbl %al, %eax popq %rbp retq .cfi_endproc ## -- End function .subsections_via_symbols
the_stack_data/847949.c
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _isVowel ; -- Begin function isVowel .p2align 2 _isVowel: ; @isVowel .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 sturb w0, [x29, #-2] adrp x8, l_.str@PAGE add x8, x8, l_.str@PAGEOFF str x8, [sp, #16] str wzr, [sp, #12] b LBB0_1 LBB0_1: ; =>This Inner Loop Header: Depth=1 ldrsw x8, [sp, #12] str x8, [sp] ; 8-byte Folded Spill ldr x0, [sp, #16] bl _strlen ldr x8, [sp] ; 8-byte Folded Reload subs x8, x8, x0 cset w8, hs tbnz w8, #0, LBB0_6 b LBB0_2 LBB0_2: ; in Loop: Header=BB0_1 Depth=1 ldursb w8, [x29, #-2] ldr x9, [sp, #16] ldrsw x10, [sp, #12] ldrsb w9, [x9, x10] subs w8, w8, w9 cset w8, ne tbnz w8, #0, LBB0_4 b LBB0_3 LBB0_3: mov w8, #1 and w8, w8, #0x1 and w8, w8, #0x1 sturb w8, [x29, #-1] b LBB0_7 LBB0_4: ; in Loop: Header=BB0_1 Depth=1 b LBB0_5 LBB0_5: ; in Loop: Header=BB0_1 Depth=1 ldr w8, [sp, #12] add w8, w8, #1 str w8, [sp, #12] b LBB0_1 LBB0_6: mov w8, #0 and w8, w8, #0x1 and w8, w8, #0x1 sturb w8, [x29, #-1] b LBB0_7 LBB0_7: ldurb w8, [x29, #-1] and w0, w8, #0x1 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _copy_non_vowels ; -- Begin function copy_non_vowels .p2align 2 _copy_non_vowels: ; @copy_non_vowels .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur w0, [x29, #-4] str x1, [sp, #16] str x2, [sp, #8] str wzr, [sp, #4] str wzr, [sp] b LBB1_1 LBB1_1: ; =>This Inner Loop Header: Depth=1 ldr w8, [sp] ldur w9, [x29, #-4] subs w8, w8, w9 cset w8, ge tbnz w8, #0, LBB1_6 b LBB1_2 LBB1_2: ; in Loop: Header=BB1_1 Depth=1 ldr x8, [sp, #16] ldrsw x9, [sp] ldrsb w0, [x8, x9] bl _isVowel tbnz w0, #0, LBB1_4 b LBB1_3 LBB1_3: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp, #4] add w8, w8, #1 str w8, [sp, #4] ldr x8, [sp, #16] ldrsw x9, [sp] add x8, x8, x9 ldrb w8, [x8] ldr x9, [sp, #8] ldrsw x10, [sp, #4] add x9, x9, x10 strb w8, [x9] b LBB1_4 LBB1_4: ; in Loop: Header=BB1_1 Depth=1 b LBB1_5 LBB1_5: ; in Loop: Header=BB1_1 Depth=1 ldr w8, [sp] add w8, w8, #1 str w8, [sp] b LBB1_1 LBB1_6: ldr w0, [sp, #4] ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _disemvowel ; -- Begin function disemvowel .p2align 2 _disemvowel: ; @disemvowel .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur x0, [x29, #-8] str x1, [sp, #16] ldur x0, [x29, #-8] bl _fgetc strb w0, [sp, #15] b LBB2_1 LBB2_1: ; =>This Inner Loop Header: Depth=1 ldrsb w8, [sp, #15] adds w8, w8, #1 cset w8, eq tbnz w8, #0, LBB2_6 b LBB2_2 LBB2_2: ; in Loop: Header=BB2_1 Depth=1 ldrsb w0, [sp, #15] bl _isVowel tbnz w0, #0, LBB2_4 b LBB2_3 LBB2_3: ; in Loop: Header=BB2_1 Depth=1 ldrsb w0, [sp, #15] ldr x1, [sp, #16] bl _fputc ldur x0, [x29, #-8] bl _fgetc strb w0, [sp, #15] b LBB2_5 LBB2_4: ; in Loop: Header=BB2_1 Depth=1 ldur x0, [x29, #-8] bl _fgetc strb w0, [sp, #15] b LBB2_5 LBB2_5: ; in Loop: Header=BB2_1 Depth=1 b LBB2_1 LBB2_6: ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .globl _main ; -- Begin function main .p2align 2 _main: ; @main .cfi_startproc ; %bb.0: sub sp, sp, #48 .cfi_def_cfa_offset 48 stp x29, x30, [sp, #32] ; 16-byte Folded Spill add x29, sp, #32 .cfi_def_cfa w29, 16 .cfi_offset w30, -8 .cfi_offset w29, -16 stur wzr, [x29, #-4] stur w0, [x29, #-8] str x1, [sp, #16] adrp x8, ___stdinp@GOTPAGE ldr x8, [x8, ___stdinp@GOTPAGEOFF] ldr x8, [x8] str x8, [sp, #8] adrp x8, ___stdoutp@GOTPAGE ldr x8, [x8, ___stdoutp@GOTPAGEOFF] ldr x8, [x8] str x8, [sp] ldur w8, [x29, #-8] subs w8, w8, #2 cset w8, ne tbnz w8, #0, LBB3_2 b LBB3_1 LBB3_1: ldr x8, [sp, #16] ldr x0, [x8, #8] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fopen str x0, [sp, #8] b LBB3_2 LBB3_2: ldur w8, [x29, #-8] subs w8, w8, #3 cset w8, ne tbnz w8, #0, LBB3_4 b LBB3_3 LBB3_3: ldr x8, [sp, #16] ldr x0, [x8, #8] adrp x1, l_.str.1@PAGE add x1, x1, l_.str.1@PAGEOFF bl _fopen str x0, [sp, #8] ldr x8, [sp, #16] ldr x0, [x8, #16] adrp x1, l_.str.2@PAGE add x1, x1, l_.str.2@PAGEOFF bl _fopen str x0, [sp] b LBB3_4 LBB3_4: ldr x0, [sp, #8] ldr x1, [sp] bl _disemvowel ldr x0, [sp, #8] bl _fclose ldr x0, [sp] bl _fclose mov w0, #0 ldp x29, x30, [sp, #32] ; 16-byte Folded Reload add sp, sp, #48 ret .cfi_endproc ; -- End function .section __TEXT,__cstring,cstring_literals l_.str: ; @.str .asciz "aeiouAEIOU" l_.str.1: ; @.str.1 .asciz "r" l_.str.2: ; @.str.2 .asciz "w" .subsections_via_symbols
.section __TEXT,__text,regular,pure_instructions .build_version macos, 13, 0 sdk_version 13, 3 .globl _isVowel ## -- Begin function isVowel .p2align 4, 0x90 _isVowel: ## @isVowel .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movb %dil, %al movb %al, -2(%rbp) leaq L_.str(%rip), %rax movq %rax, -16(%rbp) movl $0, -20(%rbp) LBB0_1: ## =>This Inner Loop Header: Depth=1 movslq -20(%rbp), %rax movq %rax, -32(%rbp) ## 8-byte Spill movq -16(%rbp), %rdi callq _strlen movq %rax, %rcx movq -32(%rbp), %rax ## 8-byte Reload cmpq %rcx, %rax jae LBB0_6 ## %bb.2: ## in Loop: Header=BB0_1 Depth=1 movsbl -2(%rbp), %eax movq -16(%rbp), %rcx movslq -20(%rbp), %rdx movsbl (%rcx,%rdx), %ecx cmpl %ecx, %eax jne LBB0_4 ## %bb.3: movb $1, -1(%rbp) jmp LBB0_7 LBB0_4: ## in Loop: Header=BB0_1 Depth=1 jmp LBB0_5 LBB0_5: ## in Loop: Header=BB0_1 Depth=1 movl -20(%rbp), %eax addl $1, %eax movl %eax, -20(%rbp) jmp LBB0_1 LBB0_6: movb $0, -1(%rbp) LBB0_7: movb -1(%rbp), %al andb $1, %al movzbl %al, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _copy_non_vowels ## -- Begin function copy_non_vowels .p2align 4, 0x90 _copy_non_vowels: ## @copy_non_vowels .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl %edi, -4(%rbp) movq %rsi, -16(%rbp) movq %rdx, -24(%rbp) movl $0, -28(%rbp) movl $0, -32(%rbp) LBB1_1: ## =>This Inner Loop Header: Depth=1 movl -32(%rbp), %eax cmpl -4(%rbp), %eax jge LBB1_6 ## %bb.2: ## in Loop: Header=BB1_1 Depth=1 movq -16(%rbp), %rax movslq -32(%rbp), %rcx movsbl (%rax,%rcx), %edi callq _isVowel testb $1, %al jne LBB1_4 ## %bb.3: ## in Loop: Header=BB1_1 Depth=1 movl -28(%rbp), %eax addl $1, %eax movl %eax, -28(%rbp) movq -16(%rbp), %rax movslq -32(%rbp), %rcx movb (%rax,%rcx), %dl movq -24(%rbp), %rax movslq -28(%rbp), %rcx movb %dl, (%rax,%rcx) LBB1_4: ## in Loop: Header=BB1_1 Depth=1 jmp LBB1_5 LBB1_5: ## in Loop: Header=BB1_1 Depth=1 movl -32(%rbp), %eax addl $1, %eax movl %eax, -32(%rbp) jmp LBB1_1 LBB1_6: movl -28(%rbp), %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _disemvowel ## -- Begin function disemvowel .p2align 4, 0x90 _disemvowel: ## @disemvowel .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movq %rdi, -8(%rbp) movq %rsi, -16(%rbp) movq -8(%rbp), %rdi callq _fgetc ## kill: def $al killed $al killed $eax movb %al, -17(%rbp) LBB2_1: ## =>This Inner Loop Header: Depth=1 movsbl -17(%rbp), %eax cmpl $-1, %eax je LBB2_6 ## %bb.2: ## in Loop: Header=BB2_1 Depth=1 movsbl -17(%rbp), %edi callq _isVowel testb $1, %al jne LBB2_4 ## %bb.3: ## in Loop: Header=BB2_1 Depth=1 movsbl -17(%rbp), %edi movq -16(%rbp), %rsi callq _fputc movq -8(%rbp), %rdi callq _fgetc ## kill: def $al killed $al killed $eax movb %al, -17(%rbp) jmp LBB2_5 LBB2_4: ## in Loop: Header=BB2_1 Depth=1 movq -8(%rbp), %rdi callq _fgetc ## kill: def $al killed $al killed $eax movb %al, -17(%rbp) LBB2_5: ## in Loop: Header=BB2_1 Depth=1 jmp LBB2_1 LBB2_6: addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .globl _main ## -- Begin function main .p2align 4, 0x90 _main: ## @main .cfi_startproc ## %bb.0: pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset %rbp, -16 movq %rsp, %rbp .cfi_def_cfa_register %rbp subq $32, %rsp movl $0, -4(%rbp) movl %edi, -8(%rbp) movq %rsi, -16(%rbp) movq ___stdinp@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -24(%rbp) movq ___stdoutp@GOTPCREL(%rip), %rax movq (%rax), %rax movq %rax, -32(%rbp) cmpl $2, -8(%rbp) jne LBB3_2 ## %bb.1: movq -16(%rbp), %rax movq 8(%rax), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -24(%rbp) LBB3_2: cmpl $3, -8(%rbp) jne LBB3_4 ## %bb.3: movq -16(%rbp), %rax movq 8(%rax), %rdi leaq L_.str.1(%rip), %rsi callq _fopen movq %rax, -24(%rbp) movq -16(%rbp), %rax movq 16(%rax), %rdi leaq L_.str.2(%rip), %rsi callq _fopen movq %rax, -32(%rbp) LBB3_4: movq -24(%rbp), %rdi movq -32(%rbp), %rsi callq _disemvowel movq -24(%rbp), %rdi callq _fclose movq -32(%rbp), %rdi callq _fclose xorl %eax, %eax addq $32, %rsp popq %rbp retq .cfi_endproc ## -- End function .section __TEXT,__cstring,cstring_literals L_.str: ## @.str .asciz "aeiouAEIOU" L_.str.1: ## @.str.1 .asciz "r" L_.str.2: ## @.str.2 .asciz "w" .subsections_via_symbols
the_stack_data/930904.c