arm
stringlengths 122
13.2M
| x86
stringlengths 122
12.4M
| 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:
mov w0, #0
ret
.cfi_endproc
; -- End function
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/1136579.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
.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
.subsections_via_symbols
| the_stack_data/40764038.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, #240
.cfi_def_cfa_offset 240
stp x29, x30, [sp, #224] ; 16-byte Folded Spill
add x29, sp, #224
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
stur x8, [x29, #-104] ; 8-byte Folded Spill
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-8]
stur wzr, [x29, #-44]
stur w0, [x29, #-48]
stur x1, [x29, #-56]
; kill: def $x8 killed $xzr
stur xzr, [x29, #-64]
stur xzr, [x29, #-72]
stur wzr, [x29, #-76]
stur wzr, [x29, #-84]
ldur w8, [x29, #-48]
subs w8, w8, #3
cset w8, eq
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldur x8, [x29, #-104] ; 8-byte Folded Reload
ldr x0, [x8]
ldur x8, [x29, #-56]
ldr x8, [x8]
mov x9, sp
str x8, [x9]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
bl _fprintf
mov w8, #1
stur w8, [x29, #-44]
b LBB0_27
LBB0_2:
ldur x8, [x29, #-56]
ldr x0, [x8, #8]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fopen
stur x0, [x29, #-64]
ldur x8, [x29, #-64]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldur x8, [x29, #-104] ; 8-byte Folded Reload
ldr x8, [x8]
str x8, [sp, #112] ; 8-byte Folded Spill
ldur x8, [x29, #-56]
ldr x8, [x8]
str x8, [sp, #96] ; 8-byte Folded Spill
ldur x8, [x29, #-56]
ldr x8, [x8, #8]
str x8, [sp, #104] ; 8-byte Folded Spill
bl ___error
ldr w0, [x0]
bl _strerror
ldr x11, [sp, #96] ; 8-byte Folded Reload
ldr x10, [sp, #104] ; 8-byte Folded Reload
mov x8, x0
ldr x0, [sp, #112] ; 8-byte Folded Reload
mov x9, sp
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fprintf
mov w8, #1
stur w8, [x29, #-84]
b LBB0_22
LBB0_4:
ldur x8, [x29, #-56]
ldr x0, [x8, #16]
adrp x1, l_.str.3@PAGE
add x1, x1, l_.str.3@PAGEOFF
bl _fopen
stur x0, [x29, #-72]
ldur x8, [x29, #-72]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_5
LBB0_5:
ldur x8, [x29, #-104] ; 8-byte Folded Reload
ldr x8, [x8]
str x8, [sp, #88] ; 8-byte Folded Spill
ldur x8, [x29, #-56]
ldr x8, [x8]
str x8, [sp, #72] ; 8-byte Folded Spill
ldur x8, [x29, #-56]
ldr x8, [x8, #16]
str x8, [sp, #80] ; 8-byte Folded Spill
bl ___error
ldr w0, [x0]
bl _strerror
ldr x11, [sp, #72] ; 8-byte Folded Reload
ldr x10, [sp, #80] ; 8-byte Folded Reload
mov x8, x0
ldr x0, [sp, #88] ; 8-byte Folded Reload
mov x9, sp
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _fprintf
mov w8, #1
stur w8, [x29, #-84]
b LBB0_22
LBB0_6:
mov x0, #0
bl _time
mov x8, x0
sub x0, x29, #96
stur x8, [x29, #-96]
ldur x8, [x29, #-72]
str x8, [sp, #64] ; 8-byte Folded Spill
ldur x8, [x29, #-56]
ldr x8, [x8]
str x8, [sp, #56] ; 8-byte Folded Spill
bl _ctime
ldr x10, [sp, #56] ; 8-byte Folded Reload
mov x8, x0
ldr x0, [sp, #64] ; 8-byte Folded Reload
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.4@PAGE
add x1, x1, l_.str.4@PAGEOFF
bl _fprintf
ldur x0, [x29, #-72]
adrp x1, l_.str.5@PAGE
add x1, x1, l_.str.5@PAGEOFF
bl _fprintf
ldur x0, [x29, #-72]
adrp x1, l_.str.6@PAGE
add x1, x1, l_.str.6@PAGEOFF
bl _fprintf
ldur x0, [x29, #-72]
adrp x1, l_.str.7@PAGE
add x1, x1, l_.str.7@PAGEOFF
bl _fprintf
b LBB0_7
LBB0_7: ; =>This Inner Loop Header: Depth=1
ldur x0, [x29, #-64]
mov x9, sp
sub x8, x29, #80
str x8, [x9]
sub x8, x29, #40
str x8, [x9, #8]
adrp x1, l_.str.8@PAGE
add x1, x1, l_.str.8@PAGEOFF
bl _fscanf
subs w8, w0, #2
cset w8, ne
tbnz w8, #0, LBB0_13
b LBB0_8
LBB0_8: ; in Loop: Header=BB0_7 Depth=1
ldur w8, [x29, #-80]
ldur w9, [x29, #-76]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB0_10
b LBB0_9
LBB0_9:
ldur x8, [x29, #-104] ; 8-byte Folded Reload
ldr x0, [x8]
ldur x8, [x29, #-56]
ldr x11, [x8]
ldur w8, [x29, #-80]
; implicit-def: $x10
mov x10, x8
ldur w9, [x29, #-76]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x11, [x9]
str x10, [x9, #8]
str x8, [x9, #16]
adrp x1, l_.str.9@PAGE
add x1, x1, l_.str.9@PAGEOFF
bl _fprintf
mov w8, #1
stur w8, [x29, #-84]
b LBB0_22
LBB0_10: ; in Loop: Header=BB0_7 Depth=1
ldur x0, [x29, #-72]
ldur w1, [x29, #-76]
sub x2, x29, #40
bl _write_rop3_func
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_12
b LBB0_11
LBB0_11:
b LBB0_22
LBB0_12: ; in Loop: Header=BB0_7 Depth=1
ldur w8, [x29, #-76]
add w8, w8, #1
stur w8, [x29, #-76]
b LBB0_7
LBB0_13:
ldur x0, [x29, #-72]
adrp x1, l_.str.10@PAGE
add x1, x1, l_.str.10@PAGEOFF
bl _fprintf
stur wzr, [x29, #-80]
b LBB0_14
LBB0_14: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-80]
ldur w9, [x29, #-76]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_17
b LBB0_15
LBB0_15: ; in Loop: Header=BB0_14 Depth=1
ldur x0, [x29, #-72]
ldur w8, [x29, #-80]
; implicit-def: $x13
mov x13, x8
ldur w8, [x29, #-80]
; implicit-def: $x12
mov x12, x8
ldur w8, [x29, #-80]
; implicit-def: $x11
mov x11, x8
ldur w8, [x29, #-80]
; implicit-def: $x10
mov x10, x8
ldur w8, [x29, #-80]
ldur w9, [x29, #-76]
subs w9, w9, #1
subs w8, w8, w9
cset w8, lt
and w14, w8, #0x1
adrp x9, l_.str.13@PAGE
add x9, x9, l_.str.13@PAGEOFF
adrp x8, l_.str.12@PAGE
add x8, x8, l_.str.12@PAGEOFF
ands w14, w14, #0x1
csel x8, x8, x9, ne
mov x9, sp
str x13, [x9]
str x12, [x9, #8]
str x11, [x9, #16]
str x10, [x9, #24]
str x8, [x9, #32]
adrp x1, l_.str.11@PAGE
add x1, x1, l_.str.11@PAGEOFF
bl _fprintf
b LBB0_16
LBB0_16: ; in Loop: Header=BB0_14 Depth=1
ldur w8, [x29, #-80]
add w8, w8, #1
stur w8, [x29, #-80]
b LBB0_14
LBB0_17:
ldur x0, [x29, #-72]
adrp x1, l_.str.14@PAGE
add x1, x1, l_.str.14@PAGEOFF
bl _fprintf
ldur x0, [x29, #-72]
ldur w9, [x29, #-76]
; 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
ldur x0, [x29, #-72]
adrp x1, l_.str.16@PAGE
add x1, x1, l_.str.16@PAGEOFF
bl _fprintf
stur wzr, [x29, #-80]
b LBB0_18
LBB0_18: ; =>This Inner Loop Header: Depth=1
ldur w8, [x29, #-80]
ldur w9, [x29, #-76]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_21
b LBB0_19
LBB0_19: ; in Loop: Header=BB0_18 Depth=1
ldur x0, [x29, #-72]
ldur w8, [x29, #-80]
; implicit-def: $x13
mov x13, x8
ldur w8, [x29, #-80]
; implicit-def: $x12
mov x12, x8
ldur w8, [x29, #-80]
; implicit-def: $x11
mov x11, x8
ldur w8, [x29, #-80]
; implicit-def: $x10
mov x10, x8
ldur w8, [x29, #-80]
ldur w9, [x29, #-76]
subs w9, w9, #1
subs w8, w8, w9
cset w8, lt
and w14, w8, #0x1
adrp x9, l_.str.13@PAGE
add x9, x9, l_.str.13@PAGEOFF
adrp x8, l_.str.12@PAGE
add x8, x8, l_.str.12@PAGEOFF
ands w14, w14, #0x1
csel x8, x8, x9, ne
mov x9, sp
str x13, [x9]
str x12, [x9, #8]
str x11, [x9, #16]
str x10, [x9, #24]
str x8, [x9, #32]
adrp x1, l_.str.17@PAGE
add x1, x1, l_.str.17@PAGEOFF
bl _fprintf
b LBB0_20
LBB0_20: ; in Loop: Header=BB0_18 Depth=1
ldur w8, [x29, #-80]
add w8, w8, #1
stur w8, [x29, #-80]
b LBB0_18
LBB0_21:
ldur x0, [x29, #-72]
adrp x1, l_.str.14@PAGE
add x1, x1, l_.str.14@PAGEOFF
bl _fprintf
ldur x0, [x29, #-72]
ldur w9, [x29, #-76]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x1, l_.str.18@PAGE
add x1, x1, l_.str.18@PAGEOFF
bl _fprintf
b LBB0_22
LBB0_22:
ldur x8, [x29, #-64]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_24
b LBB0_23
LBB0_23:
ldur x0, [x29, #-64]
bl _fclose
b LBB0_24
LBB0_24:
ldur x8, [x29, #-72]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_26
b LBB0_25
LBB0_25:
ldur x0, [x29, #-72]
bl _fclose
b LBB0_26
LBB0_26:
ldur w8, [x29, #-84]
stur w8, [x29, #-44]
b LBB0_27
LBB0_27:
ldur w8, [x29, #-44]
str w8, [sp, #52] ; 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_29
b LBB0_28
LBB0_28:
bl ___stack_chk_fail
LBB0_29:
ldr w0, [sp, #52] ; 4-byte Folded Reload
ldp x29, x30, [sp, #224] ; 16-byte Folded Reload
add sp, sp, #240
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function write_rop3_func
_write_rop3_func: ; @write_rop3_func
.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, #4432
adrp x16, ___chkstk_darwin@GOTPAGE
ldr x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
blr x16
sub sp, sp, #1, lsl #12 ; =4096
sub sp, sp, #336
sub x8, x29, #56
str x8, [sp, #128] ; 8-byte Folded Spill
adrp x8, ___stderrp@GOTPAGE
ldr x8, [x8, ___stderrp@GOTPAGEOFF]
str x8, [sp, #136] ; 8-byte Folded Spill
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str x0, [sp, #216]
str w1, [sp, #212]
str x2, [sp, #200]
str wzr, [sp, #196]
str wzr, [sp, #192]
str wzr, [sp, #180]
str wzr, [sp, #176]
str wzr, [sp, #172]
str xzr, [sp, #160]
str xzr, [sp, #152]
strb wzr, [sp, #2280]
strb wzr, [sp, #232]
ldr x8, [sp, #200]
str x8, [sp, #184]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr x8, [sp, #184]
ldrb w8, [x8]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB1_43
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #184]
ldrsb w8, [x8]
subs w8, w8, #48
; kill: def $x8 killed $w8
str x8, [sp, #120] ; 8-byte Folded Spill
subs x8, x8, #72
cset w8, hi
tbnz w8, #0, LBB1_40
; %bb.3: ; in Loop: Header=BB1_1 Depth=1
ldr x11, [sp, #120] ; 8-byte Folded Reload
adrp x10, lJTI1_0@PAGE
add x10, x10, lJTI1_0@PAGEOFF
Ltmp0:
adr x8, Ltmp0
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB1_4: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #184]
ldrsb w8, [x8]
subs w8, w8, #48
cset w8, eq
and w10, w8, #0x1
mov w9, #255
mov w8, #0
ands w10, w10, #0x1
csel w8, w8, w9, ne
str w8, [sp, #148]
mov w8, #1
str w8, [sp, #196]
str w8, [sp, #192]
ldr x8, [sp, #184]
ldr x9, [sp, #200]
subs x8, x8, x9
cset w8, ne
tbnz w8, #0, LBB1_6
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #184]
ldrsb w8, [x8, #1]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB1_7
b LBB1_6
LBB1_6:
ldr x8, [sp, #136] ; 8-byte Folded Reload
ldr x0, [x8]
ldr x8, [sp, #184]
ldrsb w11, [x8]
ldr x8, [sp, #200]
mov x9, sp
; implicit-def: $x10
mov x10, x11
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.19@PAGE
add x1, x1, l_.str.19@PAGEOFF
bl _fprintf
mov w8, #-1
str w8, [sp, #228]
b LBB1_88
LBB1_7: ; in Loop: Header=BB1_1 Depth=1
ldr w9, [sp, #148]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
add x0, sp, #2280
mov x1, #2048
add x2, sp, #160
adrp x3, l_.str.20@PAGE
add x3, x3, l_.str.20@PAGEOFF
bl _apprintf
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_9
b LBB1_8
LBB1_8:
mov w8, #-1
str w8, [sp, #228]
b LBB1_88
LBB1_9: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #184]
ldrsb w8, [x8]
subs w8, w8, #48
cset w8, eq
and w10, w8, #0x1
adrp x9, l_.str.23@PAGE
add x9, x9, l_.str.23@PAGEOFF
adrp x8, l_.str.22@PAGE
add x8, x8, l_.str.22@PAGEOFF
ands w10, w10, #0x1
csel x8, x8, x9, ne
mov x9, sp
str x8, [x9]
add x0, sp, #232
mov x1, #2048
add x2, sp, #152
adrp x3, l_.str.21@PAGE
add x3, x3, l_.str.21@PAGEOFF
bl _apprintf
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_11
b LBB1_10
LBB1_10:
mov w8, #-1
str w8, [sp, #228]
b LBB1_88
LBB1_11: ; in Loop: Header=BB1_1 Depth=1
b LBB1_41
LBB1_12: ; in Loop: Header=BB1_1 Depth=1
ldrsw x8, [sp, #196]
subs x8, x8, #31
cset w8, lo
tbnz w8, #0, LBB1_14
b LBB1_13
LBB1_13:
ldr x8, [sp, #136] ; 8-byte Folded Reload
ldr x0, [x8]
ldr x8, [sp, #200]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.24@PAGE
add x1, x1, l_.str.24@PAGEOFF
bl _fprintf
mov w8, #-1
str w8, [sp, #228]
b LBB1_88
LBB1_14: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #184]
ldrb w8, [x8]
ldrsw x10, [sp, #196]
sub x9, x29, #56
add x9, x9, x10
strb w8, [x9]
ldr w8, [sp, #196]
add w8, w8, #1
str w8, [sp, #196]
ldr x8, [sp, #184]
ldrsb w8, [x8]
subs w8, w8, #68
cset w8, ne
tbnz w8, #0, LBB1_16
b LBB1_15
LBB1_15: ; in Loop: Header=BB1_1 Depth=1
mov w8, #1
str w8, [sp, #180]
b LBB1_16
LBB1_16: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #184]
ldrsb w8, [x8]
subs w8, w8, #84
cset w8, ne
tbnz w8, #0, LBB1_18
b LBB1_17
LBB1_17: ; in Loop: Header=BB1_1 Depth=1
mov w8, #1
str w8, [sp, #172]
b LBB1_18
LBB1_18: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #184]
ldrsb w8, [x8]
subs w8, w8, #83
cset w8, ne
tbnz w8, #0, LBB1_20
b LBB1_19
LBB1_19: ; in Loop: Header=BB1_1 Depth=1
mov w8, #1
str w8, [sp, #176]
b LBB1_20
LBB1_20: ; in Loop: Header=BB1_1 Depth=1
b LBB1_41
LBB1_21: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #196]
subs w8, w8, #1
cset w8, ge
tbnz w8, #0, LBB1_23
b LBB1_22
LBB1_22:
ldr x8, [sp, #136] ; 8-byte Folded Reload
ldr x0, [x8]
ldr x8, [sp, #200]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.25@PAGE
add x1, x1, l_.str.25@PAGEOFF
bl _fprintf
mov w8, #-1
str w8, [sp, #228]
b LBB1_88
LBB1_23: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #196]
subs w3, w8, #2
sub x0, x29, #88
mov x1, #32
str x1, [sp, #104] ; 8-byte Folded Spill
sub x2, x29, #56
str x2, [sp, #112] ; 8-byte Folded Spill
bl _mk_operand
ldr x1, [sp, #104] ; 8-byte Folded Reload
ldr x2, [sp, #112] ; 8-byte Folded Reload
ldr w8, [sp, #196]
subs w3, w8, #1
sub x0, x29, #120
bl _mk_operand
ldr x8, [sp, #184]
ldrsb w8, [x8]
subs w8, w8, #111
cset w8, ne
tbnz w8, #0, LBB1_25
b LBB1_24
LBB1_24: ; in Loop: Header=BB1_1 Depth=1
mov w8, #124
str w8, [sp, #100] ; 4-byte Folded Spill
b LBB1_26
LBB1_25: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #184]
ldrsb w8, [x8]
subs w8, w8, #97
cset w8, eq
and w10, w8, #0x1
mov w9, #94
mov w8, #38
ands w10, w10, #0x1
csel w8, w8, w9, ne
str w8, [sp, #100] ; 4-byte Folded Spill
b LBB1_26
LBB1_26: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #100] ; 4-byte Folded Reload
strb w8, [sp, #171]
ldr w8, [sp, #196]
subs w11, w8, #1
ldrsb w10, [sp, #171]
mov x9, sp
; implicit-def: $x8
mov x8, x11
str x8, [x9]
sub x8, x29, #88
str x8, [x9, #8]
; implicit-def: $x8
mov x8, x10
str x8, [x9, #16]
sub x8, x29, #120
str x8, [x9, #24]
add x0, sp, #2280
mov x1, #2048
add x2, sp, #160
adrp x3, l_.str.26@PAGE
add x3, x3, l_.str.26@PAGEOFF
bl _apprintf
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_28
b LBB1_27
LBB1_27:
mov w8, #-1
str w8, [sp, #228]
b LBB1_88
LBB1_28: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #196]
subs w3, w8, #2
sub x0, x29, #88
str x0, [sp, #80] ; 8-byte Folded Spill
mov x1, #32
str x1, [sp, #64] ; 8-byte Folded Spill
sub x2, x29, #56
str x2, [sp, #72] ; 8-byte Folded Spill
bl _mk_xoperand
ldr x1, [sp, #64] ; 8-byte Folded Reload
ldr x2, [sp, #72] ; 8-byte Folded Reload
ldr w8, [sp, #196]
subs w3, w8, #1
sub x0, x29, #120
str x0, [sp, #88] ; 8-byte Folded Spill
bl _mk_xoperand
ldr x10, [sp, #80] ; 8-byte Folded Reload
ldr x8, [sp, #88] ; 8-byte Folded Reload
ldr w9, [sp, #196]
subs w13, w9, #1
ldrsb w11, [sp, #171]
mov x9, sp
; implicit-def: $x12
mov x12, x13
str x12, [x9]
str x10, [x9, #8]
; implicit-def: $x10
mov x10, x11
str x10, [x9, #16]
str x8, [x9, #24]
add x0, sp, #232
mov x1, #2048
add x2, sp, #152
adrp x3, l_.str.26@PAGE
add x3, x3, l_.str.26@PAGEOFF
bl _apprintf
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_30
b LBB1_29
LBB1_29:
mov w8, #-1
str w8, [sp, #228]
b LBB1_88
LBB1_30: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #196]
subs w8, w8, #1
str w8, [sp, #196]
ldr w8, [sp, #196]
ldr w9, [sp, #192]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB1_32
b LBB1_31
LBB1_31: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #196]
str w8, [sp, #192]
b LBB1_32
LBB1_32: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #196]
subs w9, w8, #1
sub x8, x29, #56
add x8, x8, w9, sxtw
strb wzr, [x8]
b LBB1_41
LBB1_33: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #196]
subs w3, w8, #1
sub x0, x29, #88
str x0, [sp, #56] ; 8-byte Folded Spill
mov x1, #32
sub x2, x29, #56
bl _mk_operand
ldr x8, [sp, #56] ; 8-byte Folded Reload
ldr w9, [sp, #196]
; implicit-def: $x10
mov x10, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
add x0, sp, #2280
mov x1, #2048
add x2, sp, #160
adrp x3, l_.str.27@PAGE
add x3, x3, l_.str.27@PAGEOFF
bl _apprintf
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_35
b LBB1_34
LBB1_34:
mov w8, #-1
str w8, [sp, #228]
b LBB1_88
LBB1_35: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #196]
subs w3, w8, #1
sub x0, x29, #88
str x0, [sp, #48] ; 8-byte Folded Spill
mov x1, #32
sub x2, x29, #56
bl _mk_xoperand
ldr x8, [sp, #48] ; 8-byte Folded Reload
ldr w9, [sp, #196]
; implicit-def: $x10
mov x10, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
add x0, sp, #232
mov x1, #2048
add x2, sp, #152
adrp x3, l_.str.27@PAGE
add x3, x3, l_.str.27@PAGEOFF
bl _apprintf
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_37
b LBB1_36
LBB1_36:
mov w8, #-1
str w8, [sp, #228]
b LBB1_88
LBB1_37: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #196]
ldr w9, [sp, #192]
subs w8, w8, w9
cset w8, le
tbnz w8, #0, LBB1_39
b LBB1_38
LBB1_38: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #196]
str w8, [sp, #192]
b LBB1_39
LBB1_39: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #196]
subs w9, w8, #1
sub x8, x29, #56
add x8, x8, w9, sxtw
strb wzr, [x8]
b LBB1_41
LBB1_40:
ldr x8, [sp, #136] ; 8-byte Folded Reload
ldr x0, [x8]
ldr x8, [sp, #184]
ldrsb w11, [x8]
ldr x8, [sp, #200]
mov x9, sp
; implicit-def: $x10
mov x10, x11
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.28@PAGE
add x1, x1, l_.str.28@PAGEOFF
bl _fprintf
mov w8, #-1
str w8, [sp, #228]
b LBB1_88
LBB1_41: ; in Loop: Header=BB1_1 Depth=1
b LBB1_42
LBB1_42: ; in Loop: Header=BB1_1 Depth=1
ldr x8, [sp, #184]
add x8, x8, #1
str x8, [sp, #184]
b LBB1_1
LBB1_43:
ldr w8, [sp, #196]
subs w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB1_45
b LBB1_44
LBB1_44:
ldr x8, [sp, #136] ; 8-byte Folded Reload
ldr x0, [x8]
ldr x8, [sp, #200]
mov x9, sp
str x8, [x9]
adrp x1, l_.str.29@PAGE
add x1, x1, l_.str.29@PAGEOFF
bl _fprintf
mov w8, #-1
str w8, [sp, #228]
b LBB1_88
LBB1_45:
sub x0, x29, #88
mov x1, #32
sub x2, x29, #56
mov w3, #0
bl _mk_operand
ldr x0, [sp, #216]
ldr x10, [sp, #200]
ldr w9, [sp, #212]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.30@PAGE
add x1, x1, l_.str.30@PAGEOFF
bl _fprintf
mov w8, #1
str w8, [sp, #148]
b LBB1_46
LBB1_46: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #148]
ldr w9, [sp, #192]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB1_49
b LBB1_47
LBB1_47: ; in Loop: Header=BB1_46 Depth=1
ldr x0, [sp, #216]
ldr w9, [sp, #148]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x1, l_.str.31@PAGE
add x1, x1, l_.str.31@PAGEOFF
bl _fprintf
b LBB1_48
LBB1_48: ; in Loop: Header=BB1_46 Depth=1
ldr w8, [sp, #148]
add w8, w8, #1
str w8, [sp, #148]
b LBB1_46
LBB1_49:
ldr x1, [sp, #216]
add x0, sp, #2280
bl _fputs
ldr x8, [sp, #128] ; 8-byte Folded Reload
ldrsb w8, [x8]
subs w8, w8, #68
cset w8, eq
tbnz w8, #0, LBB1_51
b LBB1_50
LBB1_50:
ldr x0, [sp, #216]
mov x9, sp
sub x8, x29, #88
str x8, [x9]
adrp x1, l_.str.32@PAGE
add x1, x1, l_.str.32@PAGEOFF
bl _fprintf
b LBB1_51
LBB1_51:
ldr x0, [sp, #216]
adrp x1, l_.str.33@PAGE
add x1, x1, l_.str.33@PAGEOFF
bl _fprintf
ldr x0, [sp, #216]
ldr x10, [sp, #200]
ldr w9, [sp, #212]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.34@PAGE
add x1, x1, l_.str.34@PAGEOFF
bl _fprintf
mov w8, #1
str w8, [sp, #148]
b LBB1_52
LBB1_52: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #148]
ldr w9, [sp, #192]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB1_55
b LBB1_53
LBB1_53: ; in Loop: Header=BB1_52 Depth=1
ldr x0, [sp, #216]
ldr w9, [sp, #148]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x1, l_.str.31@PAGE
add x1, x1, l_.str.31@PAGEOFF
bl _fprintf
b LBB1_54
LBB1_54: ; in Loop: Header=BB1_52 Depth=1
ldr w8, [sp, #148]
add w8, w8, #1
str w8, [sp, #148]
b LBB1_52
LBB1_55:
ldr x1, [sp, #216]
add x0, sp, #2280
bl _fputs
ldr x0, [sp, #216]
mov x9, sp
sub x8, x29, #88
mov x10, x8
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.35@PAGE
add x1, x1, l_.str.35@PAGEOFF
bl _fprintf
ldr x0, [sp, #216]
adrp x1, l_.str.33@PAGE
add x1, x1, l_.str.33@PAGEOFF
bl _fprintf
ldr x0, [sp, #216]
ldr x10, [sp, #200]
ldr w9, [sp, #212]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.36@PAGE
add x1, x1, l_.str.36@PAGEOFF
bl _fprintf
mov w8, #1
str w8, [sp, #148]
b LBB1_56
LBB1_56: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #148]
ldr w9, [sp, #192]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB1_59
b LBB1_57
LBB1_57: ; in Loop: Header=BB1_56 Depth=1
ldr x0, [sp, #216]
ldr w9, [sp, #148]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x1, l_.str.31@PAGE
add x1, x1, l_.str.31@PAGEOFF
bl _fprintf
b LBB1_58
LBB1_58: ; in Loop: Header=BB1_56 Depth=1
ldr w8, [sp, #148]
add w8, w8, #1
str w8, [sp, #148]
b LBB1_56
LBB1_59:
ldr x1, [sp, #216]
add x0, sp, #2280
bl _fputs
ldr x0, [sp, #216]
mov x9, sp
sub x8, x29, #88
str x8, [x9]
adrp x1, l_.str.37@PAGE
add x1, x1, l_.str.37@PAGEOFF
bl _fprintf
ldr x0, [sp, #216]
adrp x1, l_.str.33@PAGE
add x1, x1, l_.str.33@PAGEOFF
bl _fprintf
ldr x0, [sp, #216]
ldr x10, [sp, #200]
ldr w9, [sp, #212]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.38@PAGE
add x1, x1, l_.str.38@PAGEOFF
bl _fprintf
mov w8, #1
str w8, [sp, #148]
b LBB1_60
LBB1_60: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #148]
ldr w9, [sp, #192]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB1_63
b LBB1_61
LBB1_61: ; in Loop: Header=BB1_60 Depth=1
ldr x0, [sp, #216]
ldr w9, [sp, #148]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x1, l_.str.31@PAGE
add x1, x1, l_.str.31@PAGEOFF
bl _fprintf
b LBB1_62
LBB1_62: ; in Loop: Header=BB1_60 Depth=1
ldr w8, [sp, #148]
add w8, w8, #1
str w8, [sp, #148]
b LBB1_60
LBB1_63:
ldr x1, [sp, #216]
add x0, sp, #2280
bl _fputs
ldr x0, [sp, #216]
mov x9, sp
sub x8, x29, #88
str x8, [sp, #40] ; 8-byte Folded Spill
str x8, [x9]
adrp x1, l_.str.39@PAGE
add x1, x1, l_.str.39@PAGEOFF
bl _fprintf
ldr x0, [sp, #216]
adrp x1, l_.str.33@PAGE
add x1, x1, l_.str.33@PAGEOFF
bl _fprintf
ldr x0, [sp, #40] ; 8-byte Folded Reload
mov x1, #32
sub x2, x29, #56
mov w3, #0
bl _mk_xoperand
ldr x0, [sp, #216]
ldr x10, [sp, #200]
ldr w9, [sp, #212]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.40@PAGE
add x1, x1, l_.str.40@PAGEOFF
bl _fprintf
ldr w8, [sp, #180]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB1_65
b LBB1_64
LBB1_64:
ldr x0, [sp, #216]
adrp x1, l_.str.41@PAGE
add x1, x1, l_.str.41@PAGEOFF
bl _fprintf
b LBB1_65
LBB1_65:
ldr w8, [sp, #176]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB1_67
b LBB1_66
LBB1_66:
ldr x0, [sp, #216]
adrp x1, l_.str.42@PAGE
add x1, x1, l_.str.42@PAGEOFF
bl _fprintf
b LBB1_67
LBB1_67:
ldr w8, [sp, #172]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB1_69
b LBB1_68
LBB1_68:
ldr x0, [sp, #216]
adrp x1, l_.str.43@PAGE
add x1, x1, l_.str.43@PAGEOFF
bl _fprintf
b LBB1_69
LBB1_69:
mov w8, #1
str w8, [sp, #148]
b LBB1_70
LBB1_70: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #148]
ldr w9, [sp, #192]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB1_73
b LBB1_71
LBB1_71: ; in Loop: Header=BB1_70 Depth=1
ldr x0, [sp, #216]
ldr w9, [sp, #148]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x1, l_.str.44@PAGE
add x1, x1, l_.str.44@PAGEOFF
bl _fprintf
b LBB1_72
LBB1_72: ; in Loop: Header=BB1_70 Depth=1
ldr w8, [sp, #148]
add w8, w8, #1
str w8, [sp, #148]
b LBB1_70
LBB1_73:
ldr x1, [sp, #216]
add x0, sp, #232
bl _fputs
ldr x0, [sp, #216]
mov x9, sp
sub x8, x29, #88
str x8, [x9]
adrp x1, l_.str.45@PAGE
add x1, x1, l_.str.45@PAGEOFF
bl _fprintf
ldr x0, [sp, #216]
adrp x1, l_.str.33@PAGE
add x1, x1, l_.str.33@PAGEOFF
bl _fprintf
ldr x0, [sp, #216]
ldr x10, [sp, #200]
ldr w9, [sp, #212]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.46@PAGE
add x1, x1, l_.str.46@PAGEOFF
bl _fprintf
ldr x0, [sp, #216]
adrp x1, l_.str.41@PAGE
add x1, x1, l_.str.41@PAGEOFF
bl _fprintf
ldr x0, [sp, #216]
adrp x1, l_.str.42@PAGE
add x1, x1, l_.str.42@PAGEOFF
bl _fprintf
ldr x0, [sp, #216]
adrp x1, l_.str.43@PAGE
add x1, x1, l_.str.43@PAGEOFF
bl _fprintf
mov w8, #1
str w8, [sp, #148]
b LBB1_74
LBB1_74: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #148]
ldr w9, [sp, #192]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB1_77
b LBB1_75
LBB1_75: ; in Loop: Header=BB1_74 Depth=1
ldr x0, [sp, #216]
ldr w9, [sp, #148]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x1, l_.str.44@PAGE
add x1, x1, l_.str.44@PAGEOFF
bl _fprintf
b LBB1_76
LBB1_76: ; in Loop: Header=BB1_74 Depth=1
ldr w8, [sp, #148]
add w8, w8, #1
str w8, [sp, #148]
b LBB1_74
LBB1_77:
ldr x1, [sp, #216]
add x0, sp, #232
bl _fputs
ldr x0, [sp, #216]
mov x9, sp
sub x8, x29, #88
mov x10, x8
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.47@PAGE
add x1, x1, l_.str.47@PAGEOFF
bl _fprintf
ldr x0, [sp, #216]
adrp x1, l_.str.33@PAGE
add x1, x1, l_.str.33@PAGEOFF
bl _fprintf
ldr x0, [sp, #216]
ldr x10, [sp, #200]
ldr w9, [sp, #212]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.48@PAGE
add x1, x1, l_.str.48@PAGEOFF
bl _fprintf
ldr x0, [sp, #216]
adrp x1, l_.str.41@PAGE
add x1, x1, l_.str.41@PAGEOFF
bl _fprintf
ldr x0, [sp, #216]
adrp x1, l_.str.42@PAGE
add x1, x1, l_.str.42@PAGEOFF
bl _fprintf
ldr w8, [sp, #172]
subs w8, w8, #0
cset w8, eq
tbnz w8, #0, LBB1_79
b LBB1_78
LBB1_78:
ldr x0, [sp, #216]
adrp x1, l_.str.43@PAGE
add x1, x1, l_.str.43@PAGEOFF
bl _fprintf
b LBB1_79
LBB1_79:
mov w8, #1
str w8, [sp, #148]
b LBB1_80
LBB1_80: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #148]
ldr w9, [sp, #192]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB1_83
b LBB1_81
LBB1_81: ; in Loop: Header=BB1_80 Depth=1
ldr x0, [sp, #216]
ldr w9, [sp, #148]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x1, l_.str.44@PAGE
add x1, x1, l_.str.44@PAGEOFF
bl _fprintf
b LBB1_82
LBB1_82: ; in Loop: Header=BB1_80 Depth=1
ldr w8, [sp, #148]
add w8, w8, #1
str w8, [sp, #148]
b LBB1_80
LBB1_83:
ldr x1, [sp, #216]
add x0, sp, #232
bl _fputs
ldr x0, [sp, #216]
mov x9, sp
sub x8, x29, #88
str x8, [x9]
adrp x1, l_.str.49@PAGE
add x1, x1, l_.str.49@PAGEOFF
bl _fprintf
ldr x0, [sp, #216]
adrp x1, l_.str.33@PAGE
add x1, x1, l_.str.33@PAGEOFF
bl _fprintf
ldr x0, [sp, #216]
ldr x10, [sp, #200]
ldr w9, [sp, #212]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x10, [x9]
str x8, [x9, #8]
adrp x1, l_.str.50@PAGE
add x1, x1, l_.str.50@PAGEOFF
bl _fprintf
ldr x0, [sp, #216]
adrp x1, l_.str.41@PAGE
add x1, x1, l_.str.41@PAGEOFF
bl _fprintf
ldr x0, [sp, #216]
adrp x1, l_.str.42@PAGE
add x1, x1, l_.str.42@PAGEOFF
bl _fprintf
ldr x0, [sp, #216]
adrp x1, l_.str.43@PAGE
add x1, x1, l_.str.43@PAGEOFF
bl _fprintf
mov w8, #1
str w8, [sp, #148]
b LBB1_84
LBB1_84: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #148]
ldr w9, [sp, #192]
subs w8, w8, w9
cset w8, gt
tbnz w8, #0, LBB1_87
b LBB1_85
LBB1_85: ; in Loop: Header=BB1_84 Depth=1
ldr x0, [sp, #216]
ldr w9, [sp, #148]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x1, l_.str.44@PAGE
add x1, x1, l_.str.44@PAGEOFF
bl _fprintf
b LBB1_86
LBB1_86: ; in Loop: Header=BB1_84 Depth=1
ldr w8, [sp, #148]
add w8, w8, #1
str w8, [sp, #148]
b LBB1_84
LBB1_87:
ldr x1, [sp, #216]
add x0, sp, #232
bl _fputs
ldr x0, [sp, #216]
mov x9, sp
sub x8, x29, #88
str x8, [x9]
adrp x1, l_.str.51@PAGE
add x1, x1, l_.str.51@PAGEOFF
bl _fprintf
ldr x0, [sp, #216]
adrp x1, l_.str.33@PAGE
add x1, x1, l_.str.33@PAGEOFF
bl _fprintf
str wzr, [sp, #228]
b LBB1_88
LBB1_88:
ldr w8, [sp, #228]
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, LBB1_90
b LBB1_89
LBB1_89:
bl ___stack_chk_fail
LBB1_90:
ldr w0, [sp, #36] ; 4-byte Folded Reload
add sp, sp, #1, lsl #12 ; =4096
add sp, sp, #336
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
.p2align 2
lJTI1_0:
.long LBB1_4-Ltmp0
.long LBB1_4-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_12-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_12-Ltmp0
.long LBB1_12-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_21-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_33-Ltmp0
.long LBB1_21-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_40-Ltmp0
.long LBB1_21-Ltmp0
; -- End function
.p2align 2 ; -- Begin function apprintf
_apprintf: ; @apprintf
.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]
add x9, sp, #8
add x8, x29, #16
str x8, [x9]
ldur x8, [x29, #-16]
ldr x9, [sp, #32]
ldr x9, [x9]
ldur x10, [x29, #-24]
ldr x11, [sp, #32]
ldr x11, [x11]
subs x1, x10, x11
ldr x4, [sp, #24]
ldr x5, [sp, #8]
add x0, x8, x9
mov w2, #0
mov x3, #-1
bl ___vsnprintf_chk
str w0, [sp, #20]
ldr w8, [sp, #20]
subs w8, w8, #0
cset w8, ge
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
adrp x0, l_.str.52@PAGE
add x0, x0, l_.str.52@PAGEOFF
bl _perror
mov w8, #-1
stur w8, [x29, #-4]
b LBB2_3
LBB2_2:
ldrsw x10, [sp, #20]
ldr x9, [sp, #32]
ldr x8, [x9]
add x8, x8, x10
str x8, [x9]
stur wzr, [x29, #-4]
b LBB2_3
LBB2_3:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function mk_operand
_mk_operand: ; @mk_operand
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
str x2, [sp, #24]
str w3, [sp, #20]
ldr x8, [sp, #24]
ldrsw x9, [sp, #20]
ldrsb w8, [x8, x9]
str w8, [sp, #16] ; 4-byte Folded Spill
subs w8, w8, #68
cset w8, eq
tbnz w8, #0, LBB3_2
b LBB3_1
LBB3_1:
ldr w8, [sp, #16] ; 4-byte Folded Reload
subs w8, w8, #83
subs w8, w8, #1
cset w8, ls
tbnz w8, #0, LBB3_3
b LBB3_4
LBB3_2:
ldur x0, [x29, #-8]
adrp x1, l_.str.53@PAGE
add x1, x1, l_.str.53@PAGEOFF
mov x2, #-1
bl ___strcpy_chk
b LBB3_5
LBB3_3:
ldr x8, [sp, #24]
ldrsw x9, [sp, #20]
add x8, x8, x9
ldrb w8, [x8]
ldur x9, [x29, #-8]
strb w8, [x9]
ldur x8, [x29, #-8]
strb wzr, [x8, #1]
b LBB3_5
LBB3_4:
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
ldr w8, [sp, #20]
add w10, w8, #1
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
mov w2, #0
mov x3, #-1
adrp x4, l_.str.54@PAGE
add x4, x4, l_.str.54@PAGEOFF
bl ___snprintf_chk
b LBB3_5
LBB3_5:
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.p2align 2 ; -- Begin function mk_xoperand
_mk_xoperand: ; @mk_xoperand
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur x1, [x29, #-16]
str x2, [sp, #24]
str w3, [sp, #20]
ldr x8, [sp, #24]
ldrsw x9, [sp, #20]
ldrsb w8, [x8, x9]
str w8, [sp, #16] ; 4-byte Folded Spill
subs w8, w8, #68
cset w8, eq
tbnz w8, #0, LBB4_2
b LBB4_1
LBB4_1:
ldr w8, [sp, #16] ; 4-byte Folded Reload
subs w8, w8, #83
subs w8, w8, #1
cset w8, ls
tbnz w8, #0, LBB4_3
b LBB4_4
LBB4_2:
ldur x0, [x29, #-8]
adrp x1, l_.str.55@PAGE
add x1, x1, l_.str.55@PAGEOFF
mov x2, #-1
bl ___strcpy_chk
b LBB4_5
LBB4_3:
ldr x8, [sp, #24]
ldrsw x9, [sp, #20]
add x8, x8, x9
ldrb w8, [x8]
ldur x9, [x29, #-8]
strb w8, [x9]
ldur x8, [x29, #-8]
strb wzr, [x8, #1]
b LBB4_5
LBB4_4:
ldur x0, [x29, #-8]
ldur x1, [x29, #-16]
ldr w8, [sp, #20]
add w10, w8, #1
mov x9, sp
; implicit-def: $x8
mov x8, x10
str x8, [x9]
mov w2, #0
mov x3, #-1
adrp x4, l_.str.54@PAGE
add x4, x4, l_.str.54@PAGEOFF
bl ___snprintf_chk
b LBB4_5
LBB4_5:
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: %s <in> <out>.\n"
l_.str.1: ; @.str.1
.asciz "rb"
l_.str.2: ; @.str.2
.asciz "%s: Error opening file <%s>: %s.\n"
l_.str.3: ; @.str.3
.asciz "wb"
l_.str.4: ; @.str.4
.asciz "/* Generated automatically by %s at %.24s.\n"
l_.str.5: ; @.str.5
.asciz " Do not edit!\n"
l_.str.6: ; @.str.6
.asciz " */\n"
l_.str.7: ; @.str.7
.asciz "#include <hpgs.h>\n\n"
l_.str.8: ; @.str.8
.asciz "%d %31s"
l_.str.9: ; @.str.9
.asciz "%s: Illegal count %d in stanza %d.\n"
l_.str.10: ; @.str.10
.asciz "static hpgs_rop3_func_t rop3_table[][2][2] = {\n"
l_.str.11: ; @.str.11
.asciz " {{rop3_%d_0_0,rop3_%d_0_1},{rop3_%d_1_0,rop3_%d_1_1}}%s\n"
l_.str.12: ; @.str.12
.asciz ","
l_.str.13: ; @.str.13
.space 1
l_.str.14: ; @.str.14
.asciz "};\n\n"
l_.str.15: ; @.str.15
.asciz "hpgs_rop3_func_t hpgs_rop3_func(int rop3,\n hpgs_bool src_transparency,\n hpgs_bool pattern_transparency)\n{\n if (rop3 < 0 || rop3 >= %d) return 0;\n return rop3_table[rop3][src_transparency!=0][pattern_transparency!=0];\n}\n"
l_.str.16: ; @.str.16
.asciz "static hpgs_xrop3_func_t xrop3_table[][2][2] = {\n"
l_.str.17: ; @.str.17
.asciz " {{xrop3_%d_0_0,xrop3_%d_0_1},{xrop3_%d_1_0,xrop3_%d_1_1}}%s\n"
l_.str.18: ; @.str.18
.asciz "hpgs_xrop3_func_t hpgs_xrop3_func(int rop3,\n hpgs_bool src_transparency,\n hpgs_bool pattern_transparency)\n{\n if (rop3 < 0 || rop3 >= %d) return 0;\n return xrop3_table[rop3][src_transparency!=0][pattern_transparency!=0];\n}\n"
l_.str.19: ; @.str.19
.asciz "Misplaced %c in rop string %s.\n"
l_.str.20: ; @.str.20
.asciz " stk1 = %d;\n"
l_.str.21: ; @.str.21
.asciz " stk1 = %s;\n"
l_.str.22: ; @.str.22
.asciz "0x0000"
l_.str.23: ; @.str.23
.asciz "0xffff"
l_.str.24: ; @.str.24
.asciz "Stack overflow in rop string %s.\n"
l_.str.25: ; @.str.25
.asciz "Stack underflow in rop string %s.\n"
l_.str.26: ; @.str.26
.asciz " stk%d = %s %c %s;\n"
l_.str.27: ; @.str.27
.asciz " stk%d = ~%s;\n"
l_.str.28: ; @.str.28
.asciz "Illegal character %c in rop string %s.\n"
l_.str.29: ; @.str.29
.asciz "Unbalanced shift/reduce in rop string %s.\n"
l_.str.30: ; @.str.30
.asciz "/* %s source/pattern opaque. */\nstatic void rop3_%d_0_0 (unsigned char *D, unsigned char S, unsigned char T)\n{\n"
l_.str.31: ; @.str.31
.asciz " unsigned char stk%d;\n"
l_.str.32: ; @.str.32
.asciz " *D = %s;\n"
l_.str.33: ; @.str.33
.asciz "}\n\n"
l_.str.34: ; @.str.34
.asciz "/* %s source opaque/pattern transparent. */\nstatic void rop3_%d_0_1 (unsigned char *D, unsigned char S, unsigned char T)\n{\n"
l_.str.35: ; @.str.35
.asciz " *D = (%s & S) | (%s & (~T)) | (T & (~S) & *D);\n"
l_.str.36: ; @.str.36
.asciz "/* %s source transparent/pattern opaque. */\nstatic void rop3_%d_1_0 (unsigned char *D, unsigned char S, unsigned char T)\n{\n"
l_.str.37: ; @.str.37
.asciz " *D = (%s & (~S)) | (*D & S);\n"
l_.str.38: ; @.str.38
.asciz "/* %s source/pattern transparent. */\nstatic void rop3_%d_1_1 (unsigned char *D, unsigned char S, unsigned char T)\n{\n"
l_.str.39: ; @.str.39
.asciz " *D = (%s & (~S) & (~T)) | (*D & S) | (*D & T);\n"
l_.str.40: ; @.str.40
.asciz "/* %s source/pattern opaque. */\nstatic unsigned xrop3_%d_0_0 (unsigned char s, unsigned char t)\n{\n"
l_.str.41: ; @.str.41
.asciz " unsigned D = 0x00ff;\n"
l_.str.42: ; @.str.42
.asciz " unsigned S = ((unsigned)s << 8) | s;\n"
l_.str.43: ; @.str.43
.asciz " unsigned T = ((unsigned)t << 8) | t;\n"
l_.str.44: ; @.str.44
.asciz " unsigned stk%d;\n"
l_.str.45: ; @.str.45
.asciz " return %s;\n"
l_.str.46: ; @.str.46
.asciz "/* %s source opaque/pattern transparent. */\nstatic unsigned xrop3_%d_0_1 (unsigned char s, unsigned char t)\n{\n"
l_.str.47: ; @.str.47
.asciz " return (%s & S) | (%s & (~T)) | (T & (~S) & D);\n"
l_.str.48: ; @.str.48
.asciz "/* %s source transparent/pattern opaque. */\nstatic unsigned xrop3_%d_1_0 (unsigned char s, unsigned char t)\n{\n"
l_.str.49: ; @.str.49
.asciz " return (%s & (~S)) | (D & S);\n"
l_.str.50: ; @.str.50
.asciz "/* %s source/pattern transparent. */\nstatic unsigned xrop3_%d_1_1 (unsigned char s, unsigned char t)\n{\n"
l_.str.51: ; @.str.51
.asciz " return (%s & (~S) & (~T)) | (D & S) | (D & T);\n"
l_.str.52: ; @.str.52
.asciz "snprintf"
l_.str.53: ; @.str.53
.asciz "*D"
l_.str.54: ; @.str.54
.asciz "stk%d"
l_.str.55: ; @.str.55
.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 $192, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -52(%rbp)
movl %edi, -56(%rbp)
movq %rsi, -64(%rbp)
movq $0, -72(%rbp)
movq $0, -80(%rbp)
movl $0, -84(%rbp)
movl $0, -92(%rbp)
cmpl $3, -56(%rbp)
je LBB0_2
## %bb.1:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -64(%rbp), %rax
movq (%rax), %rdx
leaq L_.str(%rip), %rsi
movb $0, %al
callq _fprintf
movl $1, -52(%rbp)
jmp LBB0_27
LBB0_2:
movq -64(%rbp), %rax
movq 8(%rax), %rdi
leaq L_.str.1(%rip), %rsi
callq _fopen
movq %rax, -72(%rbp)
cmpq $0, -72(%rbp)
jne LBB0_4
## %bb.3:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -128(%rbp) ## 8-byte Spill
movq -64(%rbp), %rax
movq (%rax), %rax
movq %rax, -120(%rbp) ## 8-byte Spill
movq -64(%rbp), %rax
movq 8(%rax), %rax
movq %rax, -112(%rbp) ## 8-byte Spill
callq ___error
movl (%rax), %edi
callq _strerror
movq -128(%rbp), %rdi ## 8-byte Reload
movq -120(%rbp), %rdx ## 8-byte Reload
movq -112(%rbp), %rcx ## 8-byte Reload
movq %rax, %r8
leaq L_.str.2(%rip), %rsi
movb $0, %al
callq _fprintf
movl $1, -92(%rbp)
jmp LBB0_22
LBB0_4:
movq -64(%rbp), %rax
movq 16(%rax), %rdi
leaq L_.str.3(%rip), %rsi
callq _fopen
movq %rax, -80(%rbp)
cmpq $0, -80(%rbp)
jne LBB0_6
## %bb.5:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -152(%rbp) ## 8-byte Spill
movq -64(%rbp), %rax
movq (%rax), %rax
movq %rax, -144(%rbp) ## 8-byte Spill
movq -64(%rbp), %rax
movq 16(%rax), %rax
movq %rax, -136(%rbp) ## 8-byte Spill
callq ___error
movl (%rax), %edi
callq _strerror
movq -152(%rbp), %rdi ## 8-byte Reload
movq -144(%rbp), %rdx ## 8-byte Reload
movq -136(%rbp), %rcx ## 8-byte Reload
movq %rax, %r8
leaq L_.str.2(%rip), %rsi
movb $0, %al
callq _fprintf
movl $1, -92(%rbp)
jmp LBB0_22
LBB0_6:
xorl %eax, %eax
movl %eax, %edi
callq _time
movq %rax, -104(%rbp)
movq -80(%rbp), %rax
movq %rax, -168(%rbp) ## 8-byte Spill
movq -64(%rbp), %rax
movq (%rax), %rax
movq %rax, -160(%rbp) ## 8-byte Spill
leaq -104(%rbp), %rdi
callq _ctime
movq -168(%rbp), %rdi ## 8-byte Reload
movq -160(%rbp), %rdx ## 8-byte Reload
movq %rax, %rcx
leaq L_.str.4(%rip), %rsi
movb $0, %al
callq _fprintf
movq -80(%rbp), %rdi
leaq L_.str.5(%rip), %rsi
movb $0, %al
callq _fprintf
movq -80(%rbp), %rdi
leaq L_.str.6(%rip), %rsi
movb $0, %al
callq _fprintf
movq -80(%rbp), %rdi
leaq L_.str.7(%rip), %rsi
movb $0, %al
callq _fprintf
LBB0_7: ## =>This Inner Loop Header: Depth=1
movq -72(%rbp), %rdi
leaq -48(%rbp), %rcx
leaq L_.str.8(%rip), %rsi
leaq -88(%rbp), %rdx
movb $0, %al
callq _fscanf
cmpl $2, %eax
jne LBB0_13
## %bb.8: ## in Loop: Header=BB0_7 Depth=1
movl -88(%rbp), %eax
cmpl -84(%rbp), %eax
je LBB0_10
## %bb.9:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -64(%rbp), %rax
movq (%rax), %rdx
movl -88(%rbp), %ecx
movl -84(%rbp), %r8d
leaq L_.str.9(%rip), %rsi
movb $0, %al
callq _fprintf
movl $1, -92(%rbp)
jmp LBB0_22
LBB0_10: ## in Loop: Header=BB0_7 Depth=1
movq -80(%rbp), %rdi
movl -84(%rbp), %esi
leaq -48(%rbp), %rdx
callq _write_rop3_func
cmpl $0, %eax
je LBB0_12
## %bb.11:
jmp LBB0_22
LBB0_12: ## in Loop: Header=BB0_7 Depth=1
movl -84(%rbp), %eax
addl $1, %eax
movl %eax, -84(%rbp)
jmp LBB0_7
LBB0_13:
movq -80(%rbp), %rdi
leaq L_.str.10(%rip), %rsi
movb $0, %al
callq _fprintf
movl $0, -88(%rbp)
LBB0_14: ## =>This Inner Loop Header: Depth=1
movl -88(%rbp), %eax
cmpl -84(%rbp), %eax
jge LBB0_17
## %bb.15: ## in Loop: Header=BB0_14 Depth=1
movq -80(%rbp), %rdi
movl -88(%rbp), %edx
movl -88(%rbp), %ecx
movl -88(%rbp), %r8d
movl -88(%rbp), %r9d
movl -88(%rbp), %r10d
movl -84(%rbp), %r11d
subl $1, %r11d
leaq L_.str.13(%rip), %rax
leaq L_.str.12(%rip), %rsi
cmpl %r11d, %r10d
cmovlq %rsi, %rax
leaq L_.str.11(%rip), %rsi
movq %rax, (%rsp)
movb $0, %al
callq _fprintf
## %bb.16: ## in Loop: Header=BB0_14 Depth=1
movl -88(%rbp), %eax
addl $1, %eax
movl %eax, -88(%rbp)
jmp LBB0_14
LBB0_17:
movq -80(%rbp), %rdi
leaq L_.str.14(%rip), %rsi
movb $0, %al
callq _fprintf
movq -80(%rbp), %rdi
movl -84(%rbp), %edx
leaq L_.str.15(%rip), %rsi
movb $0, %al
callq _fprintf
movq -80(%rbp), %rdi
leaq L_.str.16(%rip), %rsi
movb $0, %al
callq _fprintf
movl $0, -88(%rbp)
LBB0_18: ## =>This Inner Loop Header: Depth=1
movl -88(%rbp), %eax
cmpl -84(%rbp), %eax
jge LBB0_21
## %bb.19: ## in Loop: Header=BB0_18 Depth=1
movq -80(%rbp), %rdi
movl -88(%rbp), %edx
movl -88(%rbp), %ecx
movl -88(%rbp), %r8d
movl -88(%rbp), %r9d
movl -88(%rbp), %r10d
movl -84(%rbp), %r11d
subl $1, %r11d
leaq L_.str.13(%rip), %rax
leaq L_.str.12(%rip), %rsi
cmpl %r11d, %r10d
cmovlq %rsi, %rax
leaq L_.str.17(%rip), %rsi
movq %rax, (%rsp)
movb $0, %al
callq _fprintf
## %bb.20: ## in Loop: Header=BB0_18 Depth=1
movl -88(%rbp), %eax
addl $1, %eax
movl %eax, -88(%rbp)
jmp LBB0_18
LBB0_21:
movq -80(%rbp), %rdi
leaq L_.str.14(%rip), %rsi
movb $0, %al
callq _fprintf
movq -80(%rbp), %rdi
movl -84(%rbp), %edx
leaq L_.str.18(%rip), %rsi
movb $0, %al
callq _fprintf
LBB0_22:
cmpq $0, -72(%rbp)
je LBB0_24
## %bb.23:
movq -72(%rbp), %rdi
callq _fclose
LBB0_24:
cmpq $0, -80(%rbp)
je LBB0_26
## %bb.25:
movq -80(%rbp), %rdi
callq _fclose
LBB0_26:
movl -92(%rbp), %eax
movl %eax, -52(%rbp)
LBB0_27:
movl -52(%rbp), %eax
movl %eax, -172(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_29
## %bb.28:
movl -172(%rbp), %eax ## 4-byte Reload
addq $192, %rsp
popq %rbp
retq
LBB0_29:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function write_rop3_func
_write_rop3_func: ## @write_rop3_func
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movl $4336, %eax ## imm = 0x10F0
callq ____chkstk_darwin
subq %rax, %rsp
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -4224(%rbp)
movl %esi, -4228(%rbp)
movq %rdx, -4240(%rbp)
movl $0, -4244(%rbp)
movl $0, -4248(%rbp)
movl $0, -4260(%rbp)
movl $0, -4264(%rbp)
movl $0, -4268(%rbp)
movq $0, -4280(%rbp)
movq $0, -4288(%rbp)
movb $0, -2160(%rbp)
movb $0, -4208(%rbp)
movq -4240(%rbp), %rax
movq %rax, -4256(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movq -4256(%rbp), %rax
cmpb $0, (%rax)
je LBB1_42
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movq -4256(%rbp), %rax
movsbl (%rax), %eax
addl $-48, %eax
movl %eax, %ecx
movq %rcx, -4304(%rbp) ## 8-byte Spill
subl $72, %eax
ja LBB1_39
## %bb.90: ## in Loop: Header=BB1_1 Depth=1
movq -4304(%rbp), %rax ## 8-byte Reload
leaq LJTI1_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB1_3: ## in Loop: Header=BB1_1 Depth=1
movq -4256(%rbp), %rax
movsbl (%rax), %edx
movl $255, %eax
xorl %ecx, %ecx
cmpl $48, %edx
cmovel %ecx, %eax
movl %eax, -4292(%rbp)
movl $1, -4244(%rbp)
movl $1, -4248(%rbp)
movq -4256(%rbp), %rax
cmpq -4240(%rbp), %rax
jne LBB1_5
## %bb.4: ## in Loop: Header=BB1_1 Depth=1
movq -4256(%rbp), %rax
movsbl 1(%rax), %eax
cmpl $0, %eax
je LBB1_6
LBB1_5:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -4256(%rbp), %rax
movsbl (%rax), %edx
movq -4240(%rbp), %rcx
leaq L_.str.19(%rip), %rsi
movb $0, %al
callq _fprintf
movl $-1, -4212(%rbp)
jmp LBB1_87
LBB1_6: ## in Loop: Header=BB1_1 Depth=1
leaq -2160(%rbp), %rdi
movl -4292(%rbp), %r8d
movl $2048, %esi ## imm = 0x800
leaq -4280(%rbp), %rdx
leaq L_.str.20(%rip), %rcx
movb $0, %al
callq _apprintf
cmpl $0, %eax
je LBB1_8
## %bb.7:
movl $-1, -4212(%rbp)
jmp LBB1_87
LBB1_8: ## in Loop: Header=BB1_1 Depth=1
leaq -4208(%rbp), %rdi
movq -4256(%rbp), %rax
movsbl (%rax), %ecx
leaq L_.str.23(%rip), %r8
leaq L_.str.22(%rip), %rax
cmpl $48, %ecx
cmoveq %rax, %r8
movl $2048, %esi ## imm = 0x800
leaq -4288(%rbp), %rdx
leaq L_.str.21(%rip), %rcx
movb $0, %al
callq _apprintf
cmpl $0, %eax
je LBB1_10
## %bb.9:
movl $-1, -4212(%rbp)
jmp LBB1_87
LBB1_10: ## in Loop: Header=BB1_1 Depth=1
jmp LBB1_40
LBB1_11: ## in Loop: Header=BB1_1 Depth=1
movslq -4244(%rbp), %rax
cmpq $31, %rax
jb LBB1_13
## %bb.12:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -4240(%rbp), %rdx
leaq L_.str.24(%rip), %rsi
movb $0, %al
callq _fprintf
movl $-1, -4212(%rbp)
jmp LBB1_87
LBB1_13: ## in Loop: Header=BB1_1 Depth=1
movq -4256(%rbp), %rax
movb (%rax), %cl
movslq -4244(%rbp), %rax
movb %cl, -48(%rbp,%rax)
movl -4244(%rbp), %eax
addl $1, %eax
movl %eax, -4244(%rbp)
movq -4256(%rbp), %rax
movsbl (%rax), %eax
cmpl $68, %eax
jne LBB1_15
## %bb.14: ## in Loop: Header=BB1_1 Depth=1
movl $1, -4260(%rbp)
LBB1_15: ## in Loop: Header=BB1_1 Depth=1
movq -4256(%rbp), %rax
movsbl (%rax), %eax
cmpl $84, %eax
jne LBB1_17
## %bb.16: ## in Loop: Header=BB1_1 Depth=1
movl $1, -4268(%rbp)
LBB1_17: ## in Loop: Header=BB1_1 Depth=1
movq -4256(%rbp), %rax
movsbl (%rax), %eax
cmpl $83, %eax
jne LBB1_19
## %bb.18: ## in Loop: Header=BB1_1 Depth=1
movl $1, -4264(%rbp)
LBB1_19: ## in Loop: Header=BB1_1 Depth=1
jmp LBB1_40
LBB1_20: ## in Loop: Header=BB1_1 Depth=1
cmpl $1, -4244(%rbp)
jge LBB1_22
## %bb.21:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -4240(%rbp), %rdx
leaq L_.str.25(%rip), %rsi
movb $0, %al
callq _fprintf
movl $-1, -4212(%rbp)
jmp LBB1_87
LBB1_22: ## in Loop: Header=BB1_1 Depth=1
leaq -80(%rbp), %rdi
leaq -48(%rbp), %rdx
movl -4244(%rbp), %ecx
subl $2, %ecx
movl $32, %esi
callq _mk_operand
leaq -112(%rbp), %rdi
leaq -48(%rbp), %rdx
movl -4244(%rbp), %ecx
subl $1, %ecx
movl $32, %esi
callq _mk_operand
movq -4256(%rbp), %rax
movsbl (%rax), %eax
cmpl $111, %eax
jne LBB1_24
## %bb.23: ## in Loop: Header=BB1_1 Depth=1
movl $124, %eax
movl %eax, -4308(%rbp) ## 4-byte Spill
jmp LBB1_25
LBB1_24: ## in Loop: Header=BB1_1 Depth=1
movq -4256(%rbp), %rax
movsbl (%rax), %edx
movl $94, %eax
movl $38, %ecx
cmpl $97, %edx
cmovel %ecx, %eax
movl %eax, -4308(%rbp) ## 4-byte Spill
LBB1_25: ## in Loop: Header=BB1_1 Depth=1
movl -4308(%rbp), %eax ## 4-byte Reload
## kill: def $al killed $al killed $eax
movb %al, -4269(%rbp)
leaq -2160(%rbp), %rdi
movl -4244(%rbp), %r8d
subl $1, %r8d
leaq -80(%rbp), %r9
movsbl -4269(%rbp), %r10d
leaq -112(%rbp), %rax
movl $2048, %esi ## imm = 0x800
leaq -4280(%rbp), %rdx
leaq L_.str.26(%rip), %rcx
movl %r10d, (%rsp)
movq %rax, 8(%rsp)
movb $0, %al
callq _apprintf
cmpl $0, %eax
je LBB1_27
## %bb.26:
movl $-1, -4212(%rbp)
jmp LBB1_87
LBB1_27: ## in Loop: Header=BB1_1 Depth=1
leaq -80(%rbp), %rdi
leaq -48(%rbp), %rdx
movl -4244(%rbp), %ecx
subl $2, %ecx
movl $32, %esi
callq _mk_xoperand
leaq -112(%rbp), %rdi
leaq -48(%rbp), %rdx
movl -4244(%rbp), %ecx
subl $1, %ecx
movl $32, %esi
callq _mk_xoperand
leaq -4208(%rbp), %rdi
movl -4244(%rbp), %r8d
subl $1, %r8d
leaq -80(%rbp), %r9
movsbl -4269(%rbp), %r10d
leaq -112(%rbp), %rax
movl $2048, %esi ## imm = 0x800
leaq -4288(%rbp), %rdx
leaq L_.str.26(%rip), %rcx
movl %r10d, (%rsp)
movq %rax, 8(%rsp)
movb $0, %al
callq _apprintf
cmpl $0, %eax
je LBB1_29
## %bb.28:
movl $-1, -4212(%rbp)
jmp LBB1_87
LBB1_29: ## in Loop: Header=BB1_1 Depth=1
movl -4244(%rbp), %eax
addl $-1, %eax
movl %eax, -4244(%rbp)
movl -4244(%rbp), %eax
cmpl -4248(%rbp), %eax
jle LBB1_31
## %bb.30: ## in Loop: Header=BB1_1 Depth=1
movl -4244(%rbp), %eax
movl %eax, -4248(%rbp)
LBB1_31: ## in Loop: Header=BB1_1 Depth=1
movl -4244(%rbp), %eax
subl $1, %eax
cltq
movb $0, -48(%rbp,%rax)
jmp LBB1_40
LBB1_32: ## in Loop: Header=BB1_1 Depth=1
leaq -80(%rbp), %rdi
leaq -48(%rbp), %rdx
movl -4244(%rbp), %ecx
subl $1, %ecx
movl $32, %esi
callq _mk_operand
leaq -2160(%rbp), %rdi
movl -4244(%rbp), %r8d
leaq -80(%rbp), %r9
movl $2048, %esi ## imm = 0x800
leaq -4280(%rbp), %rdx
leaq L_.str.27(%rip), %rcx
movb $0, %al
callq _apprintf
cmpl $0, %eax
je LBB1_34
## %bb.33:
movl $-1, -4212(%rbp)
jmp LBB1_87
LBB1_34: ## in Loop: Header=BB1_1 Depth=1
leaq -80(%rbp), %rdi
leaq -48(%rbp), %rdx
movl -4244(%rbp), %ecx
subl $1, %ecx
movl $32, %esi
callq _mk_xoperand
leaq -4208(%rbp), %rdi
movl -4244(%rbp), %r8d
leaq -80(%rbp), %r9
movl $2048, %esi ## imm = 0x800
leaq -4288(%rbp), %rdx
leaq L_.str.27(%rip), %rcx
movb $0, %al
callq _apprintf
cmpl $0, %eax
je LBB1_36
## %bb.35:
movl $-1, -4212(%rbp)
jmp LBB1_87
LBB1_36: ## in Loop: Header=BB1_1 Depth=1
movl -4244(%rbp), %eax
cmpl -4248(%rbp), %eax
jle LBB1_38
## %bb.37: ## in Loop: Header=BB1_1 Depth=1
movl -4244(%rbp), %eax
movl %eax, -4248(%rbp)
LBB1_38: ## in Loop: Header=BB1_1 Depth=1
movl -4244(%rbp), %eax
subl $1, %eax
cltq
movb $0, -48(%rbp,%rax)
jmp LBB1_40
LBB1_39:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -4256(%rbp), %rax
movsbl (%rax), %edx
movq -4240(%rbp), %rcx
leaq L_.str.28(%rip), %rsi
movb $0, %al
callq _fprintf
movl $-1, -4212(%rbp)
jmp LBB1_87
LBB1_40: ## in Loop: Header=BB1_1 Depth=1
jmp LBB1_41
LBB1_41: ## in Loop: Header=BB1_1 Depth=1
movq -4256(%rbp), %rax
addq $1, %rax
movq %rax, -4256(%rbp)
jmp LBB1_1
LBB1_42:
cmpl $1, -4244(%rbp)
je LBB1_44
## %bb.43:
movq ___stderrp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
movq -4240(%rbp), %rdx
leaq L_.str.29(%rip), %rsi
movb $0, %al
callq _fprintf
movl $-1, -4212(%rbp)
jmp LBB1_87
LBB1_44:
leaq -80(%rbp), %rdi
leaq -48(%rbp), %rdx
movl $32, %esi
xorl %ecx, %ecx
callq _mk_operand
movq -4224(%rbp), %rdi
movq -4240(%rbp), %rdx
movl -4228(%rbp), %ecx
leaq L_.str.30(%rip), %rsi
movb $0, %al
callq _fprintf
movl $1, -4292(%rbp)
LBB1_45: ## =>This Inner Loop Header: Depth=1
movl -4292(%rbp), %eax
cmpl -4248(%rbp), %eax
jg LBB1_48
## %bb.46: ## in Loop: Header=BB1_45 Depth=1
movq -4224(%rbp), %rdi
movl -4292(%rbp), %edx
leaq L_.str.31(%rip), %rsi
movb $0, %al
callq _fprintf
## %bb.47: ## in Loop: Header=BB1_45 Depth=1
movl -4292(%rbp), %eax
addl $1, %eax
movl %eax, -4292(%rbp)
jmp LBB1_45
LBB1_48:
leaq -2160(%rbp), %rdi
movq -4224(%rbp), %rsi
callq _fputs
movsbl -48(%rbp), %eax
cmpl $68, %eax
je LBB1_50
## %bb.49:
movq -4224(%rbp), %rdi
leaq -80(%rbp), %rdx
leaq L_.str.32(%rip), %rsi
movb $0, %al
callq _fprintf
LBB1_50:
movq -4224(%rbp), %rdi
leaq L_.str.33(%rip), %rsi
movb $0, %al
callq _fprintf
movq -4224(%rbp), %rdi
movq -4240(%rbp), %rdx
movl -4228(%rbp), %ecx
leaq L_.str.34(%rip), %rsi
movb $0, %al
callq _fprintf
movl $1, -4292(%rbp)
LBB1_51: ## =>This Inner Loop Header: Depth=1
movl -4292(%rbp), %eax
cmpl -4248(%rbp), %eax
jg LBB1_54
## %bb.52: ## in Loop: Header=BB1_51 Depth=1
movq -4224(%rbp), %rdi
movl -4292(%rbp), %edx
leaq L_.str.31(%rip), %rsi
movb $0, %al
callq _fprintf
## %bb.53: ## in Loop: Header=BB1_51 Depth=1
movl -4292(%rbp), %eax
addl $1, %eax
movl %eax, -4292(%rbp)
jmp LBB1_51
LBB1_54:
leaq -2160(%rbp), %rdi
movq -4224(%rbp), %rsi
callq _fputs
movq -4224(%rbp), %rdi
leaq -80(%rbp), %rdx
leaq -80(%rbp), %rcx
leaq L_.str.35(%rip), %rsi
movb $0, %al
callq _fprintf
movq -4224(%rbp), %rdi
leaq L_.str.33(%rip), %rsi
movb $0, %al
callq _fprintf
movq -4224(%rbp), %rdi
movq -4240(%rbp), %rdx
movl -4228(%rbp), %ecx
leaq L_.str.36(%rip), %rsi
movb $0, %al
callq _fprintf
movl $1, -4292(%rbp)
LBB1_55: ## =>This Inner Loop Header: Depth=1
movl -4292(%rbp), %eax
cmpl -4248(%rbp), %eax
jg LBB1_58
## %bb.56: ## in Loop: Header=BB1_55 Depth=1
movq -4224(%rbp), %rdi
movl -4292(%rbp), %edx
leaq L_.str.31(%rip), %rsi
movb $0, %al
callq _fprintf
## %bb.57: ## in Loop: Header=BB1_55 Depth=1
movl -4292(%rbp), %eax
addl $1, %eax
movl %eax, -4292(%rbp)
jmp LBB1_55
LBB1_58:
leaq -2160(%rbp), %rdi
movq -4224(%rbp), %rsi
callq _fputs
movq -4224(%rbp), %rdi
leaq -80(%rbp), %rdx
leaq L_.str.37(%rip), %rsi
movb $0, %al
callq _fprintf
movq -4224(%rbp), %rdi
leaq L_.str.33(%rip), %rsi
movb $0, %al
callq _fprintf
movq -4224(%rbp), %rdi
movq -4240(%rbp), %rdx
movl -4228(%rbp), %ecx
leaq L_.str.38(%rip), %rsi
movb $0, %al
callq _fprintf
movl $1, -4292(%rbp)
LBB1_59: ## =>This Inner Loop Header: Depth=1
movl -4292(%rbp), %eax
cmpl -4248(%rbp), %eax
jg LBB1_62
## %bb.60: ## in Loop: Header=BB1_59 Depth=1
movq -4224(%rbp), %rdi
movl -4292(%rbp), %edx
leaq L_.str.31(%rip), %rsi
movb $0, %al
callq _fprintf
## %bb.61: ## in Loop: Header=BB1_59 Depth=1
movl -4292(%rbp), %eax
addl $1, %eax
movl %eax, -4292(%rbp)
jmp LBB1_59
LBB1_62:
leaq -2160(%rbp), %rdi
movq -4224(%rbp), %rsi
callq _fputs
movq -4224(%rbp), %rdi
leaq -80(%rbp), %rdx
leaq L_.str.39(%rip), %rsi
movb $0, %al
callq _fprintf
movq -4224(%rbp), %rdi
leaq L_.str.33(%rip), %rsi
movb $0, %al
callq _fprintf
leaq -80(%rbp), %rdi
leaq -48(%rbp), %rdx
movl $32, %esi
xorl %ecx, %ecx
callq _mk_xoperand
movq -4224(%rbp), %rdi
movq -4240(%rbp), %rdx
movl -4228(%rbp), %ecx
leaq L_.str.40(%rip), %rsi
movb $0, %al
callq _fprintf
cmpl $0, -4260(%rbp)
je LBB1_64
## %bb.63:
movq -4224(%rbp), %rdi
leaq L_.str.41(%rip), %rsi
movb $0, %al
callq _fprintf
LBB1_64:
cmpl $0, -4264(%rbp)
je LBB1_66
## %bb.65:
movq -4224(%rbp), %rdi
leaq L_.str.42(%rip), %rsi
movb $0, %al
callq _fprintf
LBB1_66:
cmpl $0, -4268(%rbp)
je LBB1_68
## %bb.67:
movq -4224(%rbp), %rdi
leaq L_.str.43(%rip), %rsi
movb $0, %al
callq _fprintf
LBB1_68:
movl $1, -4292(%rbp)
LBB1_69: ## =>This Inner Loop Header: Depth=1
movl -4292(%rbp), %eax
cmpl -4248(%rbp), %eax
jg LBB1_72
## %bb.70: ## in Loop: Header=BB1_69 Depth=1
movq -4224(%rbp), %rdi
movl -4292(%rbp), %edx
leaq L_.str.44(%rip), %rsi
movb $0, %al
callq _fprintf
## %bb.71: ## in Loop: Header=BB1_69 Depth=1
movl -4292(%rbp), %eax
addl $1, %eax
movl %eax, -4292(%rbp)
jmp LBB1_69
LBB1_72:
leaq -4208(%rbp), %rdi
movq -4224(%rbp), %rsi
callq _fputs
movq -4224(%rbp), %rdi
leaq -80(%rbp), %rdx
leaq L_.str.45(%rip), %rsi
movb $0, %al
callq _fprintf
movq -4224(%rbp), %rdi
leaq L_.str.33(%rip), %rsi
movb $0, %al
callq _fprintf
movq -4224(%rbp), %rdi
movq -4240(%rbp), %rdx
movl -4228(%rbp), %ecx
leaq L_.str.46(%rip), %rsi
movb $0, %al
callq _fprintf
movq -4224(%rbp), %rdi
leaq L_.str.41(%rip), %rsi
movb $0, %al
callq _fprintf
movq -4224(%rbp), %rdi
leaq L_.str.42(%rip), %rsi
movb $0, %al
callq _fprintf
movq -4224(%rbp), %rdi
leaq L_.str.43(%rip), %rsi
movb $0, %al
callq _fprintf
movl $1, -4292(%rbp)
LBB1_73: ## =>This Inner Loop Header: Depth=1
movl -4292(%rbp), %eax
cmpl -4248(%rbp), %eax
jg LBB1_76
## %bb.74: ## in Loop: Header=BB1_73 Depth=1
movq -4224(%rbp), %rdi
movl -4292(%rbp), %edx
leaq L_.str.44(%rip), %rsi
movb $0, %al
callq _fprintf
## %bb.75: ## in Loop: Header=BB1_73 Depth=1
movl -4292(%rbp), %eax
addl $1, %eax
movl %eax, -4292(%rbp)
jmp LBB1_73
LBB1_76:
leaq -4208(%rbp), %rdi
movq -4224(%rbp), %rsi
callq _fputs
movq -4224(%rbp), %rdi
leaq -80(%rbp), %rdx
leaq -80(%rbp), %rcx
leaq L_.str.47(%rip), %rsi
movb $0, %al
callq _fprintf
movq -4224(%rbp), %rdi
leaq L_.str.33(%rip), %rsi
movb $0, %al
callq _fprintf
movq -4224(%rbp), %rdi
movq -4240(%rbp), %rdx
movl -4228(%rbp), %ecx
leaq L_.str.48(%rip), %rsi
movb $0, %al
callq _fprintf
movq -4224(%rbp), %rdi
leaq L_.str.41(%rip), %rsi
movb $0, %al
callq _fprintf
movq -4224(%rbp), %rdi
leaq L_.str.42(%rip), %rsi
movb $0, %al
callq _fprintf
cmpl $0, -4268(%rbp)
je LBB1_78
## %bb.77:
movq -4224(%rbp), %rdi
leaq L_.str.43(%rip), %rsi
movb $0, %al
callq _fprintf
LBB1_78:
movl $1, -4292(%rbp)
LBB1_79: ## =>This Inner Loop Header: Depth=1
movl -4292(%rbp), %eax
cmpl -4248(%rbp), %eax
jg LBB1_82
## %bb.80: ## in Loop: Header=BB1_79 Depth=1
movq -4224(%rbp), %rdi
movl -4292(%rbp), %edx
leaq L_.str.44(%rip), %rsi
movb $0, %al
callq _fprintf
## %bb.81: ## in Loop: Header=BB1_79 Depth=1
movl -4292(%rbp), %eax
addl $1, %eax
movl %eax, -4292(%rbp)
jmp LBB1_79
LBB1_82:
leaq -4208(%rbp), %rdi
movq -4224(%rbp), %rsi
callq _fputs
movq -4224(%rbp), %rdi
leaq -80(%rbp), %rdx
leaq L_.str.49(%rip), %rsi
movb $0, %al
callq _fprintf
movq -4224(%rbp), %rdi
leaq L_.str.33(%rip), %rsi
movb $0, %al
callq _fprintf
movq -4224(%rbp), %rdi
movq -4240(%rbp), %rdx
movl -4228(%rbp), %ecx
leaq L_.str.50(%rip), %rsi
movb $0, %al
callq _fprintf
movq -4224(%rbp), %rdi
leaq L_.str.41(%rip), %rsi
movb $0, %al
callq _fprintf
movq -4224(%rbp), %rdi
leaq L_.str.42(%rip), %rsi
movb $0, %al
callq _fprintf
movq -4224(%rbp), %rdi
leaq L_.str.43(%rip), %rsi
movb $0, %al
callq _fprintf
movl $1, -4292(%rbp)
LBB1_83: ## =>This Inner Loop Header: Depth=1
movl -4292(%rbp), %eax
cmpl -4248(%rbp), %eax
jg LBB1_86
## %bb.84: ## in Loop: Header=BB1_83 Depth=1
movq -4224(%rbp), %rdi
movl -4292(%rbp), %edx
leaq L_.str.44(%rip), %rsi
movb $0, %al
callq _fprintf
## %bb.85: ## in Loop: Header=BB1_83 Depth=1
movl -4292(%rbp), %eax
addl $1, %eax
movl %eax, -4292(%rbp)
jmp LBB1_83
LBB1_86:
leaq -4208(%rbp), %rdi
movq -4224(%rbp), %rsi
callq _fputs
movq -4224(%rbp), %rdi
leaq -80(%rbp), %rdx
leaq L_.str.51(%rip), %rsi
movb $0, %al
callq _fprintf
movq -4224(%rbp), %rdi
leaq L_.str.33(%rip), %rsi
movb $0, %al
callq _fprintf
movl $0, -4212(%rbp)
LBB1_87:
movl -4212(%rbp), %eax
movl %eax, -4312(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB1_89
## %bb.88:
movl -4312(%rbp), %eax ## 4-byte Reload
addq $4336, %rsp ## imm = 0x10F0
popq %rbp
retq
LBB1_89:
callq ___stack_chk_fail
ud2
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L1_0_set_3, LBB1_3-LJTI1_0
.set L1_0_set_39, LBB1_39-LJTI1_0
.set L1_0_set_11, LBB1_11-LJTI1_0
.set L1_0_set_20, LBB1_20-LJTI1_0
.set L1_0_set_32, LBB1_32-LJTI1_0
LJTI1_0:
.long L1_0_set_3
.long L1_0_set_3
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_11
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_11
.long L1_0_set_11
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_20
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_32
.long L1_0_set_20
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_39
.long L1_0_set_20
.end_data_region
## -- End function
.p2align 4, 0x90 ## -- Begin function apprintf
_apprintf: ## @apprintf
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $272, %rsp ## imm = 0x110
testb %al, %al
je LBB2_7
## %bb.6:
movaps %xmm0, -208(%rbp)
movaps %xmm1, -192(%rbp)
movaps %xmm2, -176(%rbp)
movaps %xmm3, -160(%rbp)
movaps %xmm4, -144(%rbp)
movaps %xmm5, -128(%rbp)
movaps %xmm6, -112(%rbp)
movaps %xmm7, -96(%rbp)
LBB2_7:
movq %r9, -216(%rbp)
movq %r8, -224(%rbp)
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movq %rdi, -48(%rbp)
movq %rsi, -56(%rbp)
movq %rdx, -64(%rbp)
movq %rcx, -72(%rbp)
leaq -32(%rbp), %rax
leaq -256(%rbp), %rcx
movq %rcx, 16(%rax)
leaq 16(%rbp), %rcx
movq %rcx, 8(%rax)
movl $48, 4(%rax)
movl $32, (%rax)
movq -48(%rbp), %rdi
movq -64(%rbp), %rax
addq (%rax), %rdi
movq -56(%rbp), %rsi
movq -64(%rbp), %rax
subq (%rax), %rsi
movq -72(%rbp), %r8
leaq -32(%rbp), %r9
xorl %edx, %edx
movq $-1, %rcx
callq ___vsnprintf_chk
movl %eax, -76(%rbp)
leaq -32(%rbp), %rax
cmpl $0, -76(%rbp)
jge LBB2_2
## %bb.1:
leaq L_.str.52(%rip), %rdi
callq _perror
movl $-1, -36(%rbp)
jmp LBB2_3
LBB2_2:
movslq -76(%rbp), %rcx
movq -64(%rbp), %rax
addq (%rax), %rcx
movq %rcx, (%rax)
movl $0, -36(%rbp)
LBB2_3:
movl -36(%rbp), %eax
movl %eax, -260(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB2_5
## %bb.4:
movl -260(%rbp), %eax ## 4-byte Reload
addq $272, %rsp ## imm = 0x110
popq %rbp
retq
LBB2_5:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function mk_operand
_mk_operand: ## @mk_operand
.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)
movl %ecx, -28(%rbp)
movq -24(%rbp), %rax
movslq -28(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movl %eax, -32(%rbp) ## 4-byte Spill
subl $68, %eax
je LBB3_1
jmp LBB3_5
LBB3_5:
movl -32(%rbp), %eax ## 4-byte Reload
addl $-83, %eax
subl $2, %eax
jb LBB3_2
jmp LBB3_3
LBB3_1:
movq -8(%rbp), %rdi
leaq L_.str.53(%rip), %rsi
movq $-1, %rdx
callq ___strcpy_chk
jmp LBB3_4
LBB3_2:
movq -24(%rbp), %rax
movslq -28(%rbp), %rcx
movb (%rax,%rcx), %cl
movq -8(%rbp), %rax
movb %cl, (%rax)
movq -8(%rbp), %rax
movb $0, 1(%rax)
jmp LBB3_4
LBB3_3:
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
movl -28(%rbp), %r9d
addl $1, %r9d
xorl %edx, %edx
movq $-1, %rcx
leaq L_.str.54(%rip), %r8
movb $0, %al
callq ___snprintf_chk
LBB3_4:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.p2align 4, 0x90 ## -- Begin function mk_xoperand
_mk_xoperand: ## @mk_xoperand
.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)
movl %ecx, -28(%rbp)
movq -24(%rbp), %rax
movslq -28(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movl %eax, -32(%rbp) ## 4-byte Spill
subl $68, %eax
je LBB4_1
jmp LBB4_5
LBB4_5:
movl -32(%rbp), %eax ## 4-byte Reload
addl $-83, %eax
subl $2, %eax
jb LBB4_2
jmp LBB4_3
LBB4_1:
movq -8(%rbp), %rdi
leaq L_.str.55(%rip), %rsi
movq $-1, %rdx
callq ___strcpy_chk
jmp LBB4_4
LBB4_2:
movq -24(%rbp), %rax
movslq -28(%rbp), %rcx
movb (%rax,%rcx), %cl
movq -8(%rbp), %rax
movb %cl, (%rax)
movq -8(%rbp), %rax
movb $0, 1(%rax)
jmp LBB4_4
LBB4_3:
movq -8(%rbp), %rdi
movq -16(%rbp), %rsi
movl -28(%rbp), %r9d
addl $1, %r9d
xorl %edx, %edx
movq $-1, %rcx
leaq L_.str.54(%rip), %r8
movb $0, %al
callq ___snprintf_chk
LBB4_4:
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "usage: %s <in> <out>.\n"
L_.str.1: ## @.str.1
.asciz "rb"
L_.str.2: ## @.str.2
.asciz "%s: Error opening file <%s>: %s.\n"
L_.str.3: ## @.str.3
.asciz "wb"
L_.str.4: ## @.str.4
.asciz "/* Generated automatically by %s at %.24s.\n"
L_.str.5: ## @.str.5
.asciz " Do not edit!\n"
L_.str.6: ## @.str.6
.asciz " */\n"
L_.str.7: ## @.str.7
.asciz "#include <hpgs.h>\n\n"
L_.str.8: ## @.str.8
.asciz "%d %31s"
L_.str.9: ## @.str.9
.asciz "%s: Illegal count %d in stanza %d.\n"
L_.str.10: ## @.str.10
.asciz "static hpgs_rop3_func_t rop3_table[][2][2] = {\n"
L_.str.11: ## @.str.11
.asciz " {{rop3_%d_0_0,rop3_%d_0_1},{rop3_%d_1_0,rop3_%d_1_1}}%s\n"
L_.str.12: ## @.str.12
.asciz ","
L_.str.13: ## @.str.13
.space 1
L_.str.14: ## @.str.14
.asciz "};\n\n"
L_.str.15: ## @.str.15
.asciz "hpgs_rop3_func_t hpgs_rop3_func(int rop3,\n hpgs_bool src_transparency,\n hpgs_bool pattern_transparency)\n{\n if (rop3 < 0 || rop3 >= %d) return 0;\n return rop3_table[rop3][src_transparency!=0][pattern_transparency!=0];\n}\n"
L_.str.16: ## @.str.16
.asciz "static hpgs_xrop3_func_t xrop3_table[][2][2] = {\n"
L_.str.17: ## @.str.17
.asciz " {{xrop3_%d_0_0,xrop3_%d_0_1},{xrop3_%d_1_0,xrop3_%d_1_1}}%s\n"
L_.str.18: ## @.str.18
.asciz "hpgs_xrop3_func_t hpgs_xrop3_func(int rop3,\n hpgs_bool src_transparency,\n hpgs_bool pattern_transparency)\n{\n if (rop3 < 0 || rop3 >= %d) return 0;\n return xrop3_table[rop3][src_transparency!=0][pattern_transparency!=0];\n}\n"
L_.str.19: ## @.str.19
.asciz "Misplaced %c in rop string %s.\n"
L_.str.20: ## @.str.20
.asciz " stk1 = %d;\n"
L_.str.21: ## @.str.21
.asciz " stk1 = %s;\n"
L_.str.22: ## @.str.22
.asciz "0x0000"
L_.str.23: ## @.str.23
.asciz "0xffff"
L_.str.24: ## @.str.24
.asciz "Stack overflow in rop string %s.\n"
L_.str.25: ## @.str.25
.asciz "Stack underflow in rop string %s.\n"
L_.str.26: ## @.str.26
.asciz " stk%d = %s %c %s;\n"
L_.str.27: ## @.str.27
.asciz " stk%d = ~%s;\n"
L_.str.28: ## @.str.28
.asciz "Illegal character %c in rop string %s.\n"
L_.str.29: ## @.str.29
.asciz "Unbalanced shift/reduce in rop string %s.\n"
L_.str.30: ## @.str.30
.asciz "/* %s source/pattern opaque. */\nstatic void rop3_%d_0_0 (unsigned char *D, unsigned char S, unsigned char T)\n{\n"
L_.str.31: ## @.str.31
.asciz " unsigned char stk%d;\n"
L_.str.32: ## @.str.32
.asciz " *D = %s;\n"
L_.str.33: ## @.str.33
.asciz "}\n\n"
L_.str.34: ## @.str.34
.asciz "/* %s source opaque/pattern transparent. */\nstatic void rop3_%d_0_1 (unsigned char *D, unsigned char S, unsigned char T)\n{\n"
L_.str.35: ## @.str.35
.asciz " *D = (%s & S) | (%s & (~T)) | (T & (~S) & *D);\n"
L_.str.36: ## @.str.36
.asciz "/* %s source transparent/pattern opaque. */\nstatic void rop3_%d_1_0 (unsigned char *D, unsigned char S, unsigned char T)\n{\n"
L_.str.37: ## @.str.37
.asciz " *D = (%s & (~S)) | (*D & S);\n"
L_.str.38: ## @.str.38
.asciz "/* %s source/pattern transparent. */\nstatic void rop3_%d_1_1 (unsigned char *D, unsigned char S, unsigned char T)\n{\n"
L_.str.39: ## @.str.39
.asciz " *D = (%s & (~S) & (~T)) | (*D & S) | (*D & T);\n"
L_.str.40: ## @.str.40
.asciz "/* %s source/pattern opaque. */\nstatic unsigned xrop3_%d_0_0 (unsigned char s, unsigned char t)\n{\n"
L_.str.41: ## @.str.41
.asciz " unsigned D = 0x00ff;\n"
L_.str.42: ## @.str.42
.asciz " unsigned S = ((unsigned)s << 8) | s;\n"
L_.str.43: ## @.str.43
.asciz " unsigned T = ((unsigned)t << 8) | t;\n"
L_.str.44: ## @.str.44
.asciz " unsigned stk%d;\n"
L_.str.45: ## @.str.45
.asciz " return %s;\n"
L_.str.46: ## @.str.46
.asciz "/* %s source opaque/pattern transparent. */\nstatic unsigned xrop3_%d_0_1 (unsigned char s, unsigned char t)\n{\n"
L_.str.47: ## @.str.47
.asciz " return (%s & S) | (%s & (~T)) | (T & (~S) & D);\n"
L_.str.48: ## @.str.48
.asciz "/* %s source transparent/pattern opaque. */\nstatic unsigned xrop3_%d_1_0 (unsigned char s, unsigned char t)\n{\n"
L_.str.49: ## @.str.49
.asciz " return (%s & (~S)) | (D & S);\n"
L_.str.50: ## @.str.50
.asciz "/* %s source/pattern transparent. */\nstatic unsigned xrop3_%d_1_1 (unsigned char s, unsigned char t)\n{\n"
L_.str.51: ## @.str.51
.asciz " return (%s & (~S) & (~T)) | (D & S) | (D & T);\n"
L_.str.52: ## @.str.52
.asciz "snprintf"
L_.str.53: ## @.str.53
.asciz "*D"
L_.str.54: ## @.str.54
.asciz "stk%d"
L_.str.55: ## @.str.55
.asciz "D"
.subsections_via_symbols
| the_stack_data/38801.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/134812.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, #2
cset w8, ne
tbnz w8, #0, LBB0_2
b LBB0_1
LBB0_1:
ldr x8, [sp, #16]
ldr x0, [x8, #8]
bl _atoi
scvtf s0, w0
str s0, [sp, #12]
mov x9, sp
add x8, sp, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldr s0, [sp, #8]
ldr s1, [sp, #12]
bl _powf
fcvt d0, s0
mov x8, sp
str d0, [x8]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
stur wzr, [x29, #-4]
b LBB0_8
LBB0_2:
ldur w8, [x29, #-8]
subs w8, w8, #3
cset w8, ne
tbnz w8, #0, LBB0_7
b LBB0_3
LBB0_3:
ldr x8, [sp, #16]
ldr x0, [x8, #8]
adrp x1, l_.str.2@PAGE
add x1, x1, l_.str.2@PAGEOFF
bl _strcmp
subs w8, w0, #0
cset w8, ne
tbnz w8, #0, LBB0_6
b LBB0_4
LBB0_4:
ldr x8, [sp, #16]
ldr x0, [x8, #16]
bl _atoi
scvtf s0, w0
str s0, [sp, #12]
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
mov x9, sp
add x8, sp, #8
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
ldr s0, [sp, #8]
ldr s1, [sp, #12]
bl _powf
fcvt d0, s0
mov x8, sp
str d0, [x8]
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
b LBB0_5
LBB0_6:
b LBB0_7
LBB0_7:
mov w8, #-1
stur w8, [x29, #-4]
b LBB0_8
LBB0_8:
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 "%f"
l_.str.1: ; @.str.1
.asciz "%f\n"
l_.str.2: ; @.str.2
.asciz "-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)
cmpl $2, -8(%rbp)
jne LBB0_2
## %bb.1:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
callq _atoi
cvtsi2ss %eax, %xmm0
movss %xmm0, -20(%rbp)
leaq L_.str(%rip), %rdi
leaq -24(%rbp), %rsi
movb $0, %al
callq _scanf
movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss -20(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
callq _powf
cvtss2sd %xmm0, %xmm0
leaq L_.str.1(%rip), %rdi
movb $1, %al
callq _printf
movl $0, -4(%rbp)
jmp LBB0_8
LBB0_2:
cmpl $3, -8(%rbp)
jne LBB0_7
## %bb.3:
movq -16(%rbp), %rax
movq 8(%rax), %rdi
leaq L_.str.2(%rip), %rsi
callq _strcmp
cmpl $0, %eax
jne LBB0_6
## %bb.4:
movq -16(%rbp), %rax
movq 16(%rax), %rdi
callq _atoi
cvtsi2ss %eax, %xmm0
movss %xmm0, -20(%rbp)
LBB0_5: ## =>This Inner Loop Header: Depth=1
leaq L_.str(%rip), %rdi
leaq -24(%rbp), %rsi
movb $0, %al
callq _scanf
movss -24(%rbp), %xmm0 ## xmm0 = mem[0],zero,zero,zero
movss -20(%rbp), %xmm1 ## xmm1 = mem[0],zero,zero,zero
callq _powf
cvtss2sd %xmm0, %xmm0
leaq L_.str.1(%rip), %rdi
movb $1, %al
callq _printf
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _fflush
jmp LBB0_5
LBB0_6:
jmp LBB0_7
LBB0_7:
movl $-1, -4(%rbp)
LBB0_8:
movl -4(%rbp), %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%f"
L_.str.1: ## @.str.1
.asciz "%f\n"
L_.str.2: ## @.str.2
.asciz "-c"
.subsections_via_symbols
| the_stack_data/31388962.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _reach_error ; -- Begin function reach_error
.p2align 2
_reach_error: ; @reach_error
.cfi_startproc
; %bb.0:
ret
.cfi_endproc
; -- End function
.globl _fibo ; -- Begin function fibo
.p2align 2
_fibo: ; @fibo
.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, #1
cset w8, ge
tbnz w8, #0, LBB1_2
b LBB1_1
LBB1_1:
stur wzr, [x29, #-4]
b LBB1_5
LBB1_2:
ldr w8, [sp, #8]
subs w8, w8, #1
cset w8, ne
tbnz w8, #0, LBB1_4
b LBB1_3
LBB1_3:
mov w8, #1
stur w8, [x29, #-4]
b LBB1_5
LBB1_4:
ldr w8, [sp, #8]
subs w0, w8, #1
bl _fibo
str w0, [sp, #4] ; 4-byte Folded Spill
ldr w8, [sp, #8]
subs w0, w8, #2
bl _fibo
mov x8, x0
ldr w0, [sp, #4] ; 4-byte Folded Reload
add w8, w0, w8
stur w8, [x29, #-4]
b LBB1_5
LBB1_5:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur wzr, [x29, #-4]
mov w8, #10
str w8, [sp, #8]
ldr w0, [sp, #8]
bl _fibo
str w0, [sp, #4]
ldr w8, [sp, #4]
subs w8, w8, #55
cset w8, ne
tbnz w8, #0, LBB2_3
b LBB2_1
LBB2_1:
b LBB2_2
LBB2_2:
bl _reach_error
bl _abort
LBB2_3:
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 _reach_error ## -- Begin function reach_error
.p2align 4, 0x90
_reach_error: ## @reach_error
.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
.globl _fibo ## -- Begin function fibo
.p2align 4, 0x90
_fibo: ## @fibo
.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 $1, -8(%rbp)
jge LBB1_2
## %bb.1:
movl $0, -4(%rbp)
jmp LBB1_5
LBB1_2:
cmpl $1, -8(%rbp)
jne LBB1_4
## %bb.3:
movl $1, -4(%rbp)
jmp LBB1_5
LBB1_4:
movl -8(%rbp), %edi
subl $1, %edi
callq _fibo
movl %eax, -12(%rbp) ## 4-byte Spill
movl -8(%rbp), %edi
subl $2, %edi
callq _fibo
movl %eax, %ecx
movl -12(%rbp), %eax ## 4-byte Reload
addl %ecx, %eax
movl %eax, -4(%rbp)
LBB1_5:
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 $16, %rsp
movl $0, -4(%rbp)
movl $10, -8(%rbp)
movl -8(%rbp), %edi
callq _fibo
movl %eax, -12(%rbp)
cmpl $55, -12(%rbp)
jne LBB2_3
## %bb.1:
jmp LBB2_2
LBB2_2:
callq _reach_error
callq _abort
LBB2_3:
xorl %eax, %eax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/31387974.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __DATA,__data
.globl _EXP_CHARS ; @EXP_CHARS
_EXP_CHARS:
.asciz "eE"
.globl _FLT_CHARS ; @FLT_CHARS
_FLT_CHARS:
.asciz "rRsSfFdDxXpP"
.section __TEXT,__const
.globl _comment_chars ; @comment_chars
_comment_chars:
.asciz "#"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.section __DATA,__data
.globl _EXP_CHARS ## @EXP_CHARS
_EXP_CHARS:
.asciz "eE"
.globl _FLT_CHARS ## @FLT_CHARS
_FLT_CHARS:
.asciz "rRsSfFdDxXpP"
.section __TEXT,__const
.globl _comment_chars ## @comment_chars
_comment_chars:
.asciz "#"
.subsections_via_symbols
| the_stack_data/146536.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _consoleLog ; -- Begin function consoleLog
.p2align 2
_consoleLog: ; @consoleLog
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
stp x29, x30, [sp, #16] ; 16-byte Folded Spill
add x29, sp, #16
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
str x0, [sp, #8]
ldr x8, [sp, #8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _printf
adrp x8, ___stdoutp@GOTPAGE
ldr x8, [x8, ___stdoutp@GOTPAGEOFF]
ldr x0, [x8]
bl _fflush
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _thread1 ; -- Begin function thread1
.p2align 2
_thread1: ; @thread1
.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]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _consoleLog
mov w0, #2000
bl _usleep
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _consoleLog
adrp x0, _lock2@GOTPAGE
ldr x0, [x0, _lock2@GOTPAGEOFF]
str x0, [sp] ; 8-byte Folded Spill
bl _pthread_mutex_lock
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _consoleLog
ldr x0, [sp] ; 8-byte Folded Reload
bl _pthread_mutex_unlock
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _consoleLog
adrp x0, l_.str.5@PAGE
add x0, x0, l_.str.5@PAGEOFF
bl _consoleLog
mov x0, #0
bl _pthread_exit
.cfi_endproc
; -- End function
.globl _thread2 ; -- Begin function thread2
.p2align 2
_thread2: ; @thread2
.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]
adrp x0, l_.str.6@PAGE
add x0, x0, l_.str.6@PAGEOFF
bl _consoleLog
mov w0, #2000
bl _usleep
adrp x0, l_.str.7@PAGE
add x0, x0, l_.str.7@PAGEOFF
bl _consoleLog
adrp x0, _lock1@GOTPAGE
ldr x0, [x0, _lock1@GOTPAGEOFF]
str x0, [sp] ; 8-byte Folded Spill
bl _pthread_mutex_lock
adrp x0, l_.str.8@PAGE
add x0, x0, l_.str.8@PAGEOFF
bl _consoleLog
ldr x0, [sp] ; 8-byte Folded Reload
bl _pthread_mutex_unlock
adrp x0, l_.str.9@PAGE
add x0, x0, l_.str.9@PAGEOFF
bl _consoleLog
adrp x0, l_.str.10@PAGE
add x0, x0, l_.str.10@PAGEOFF
bl _consoleLog
mov x0, #0
bl _pthread_exit
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #64
.cfi_def_cfa_offset 64
stp x29, x30, [sp, #48] ; 16-byte Folded Spill
add x29, sp, #48
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
mov w8, #0
str w8, [sp, #12] ; 4-byte Folded Spill
stur wzr, [x29, #-4]
stur w0, [x29, #-8]
stur x1, [x29, #-16]
adrp x0, l_.str.11@PAGE
add x0, x0, l_.str.11@PAGEOFF
bl _consoleLog
adrp x0, _lock1@GOTPAGE
ldr x0, [x0, _lock1@GOTPAGEOFF]
mov x1, #0
str x1, [sp] ; 8-byte Folded Spill
bl _pthread_mutex_init
ldr x1, [sp] ; 8-byte Folded Reload
adrp x0, _lock2@GOTPAGE
ldr x0, [x0, _lock2@GOTPAGEOFF]
bl _pthread_mutex_init
ldr x3, [sp] ; 8-byte Folded Reload
add x0, sp, #24
mov x1, x3
adrp x2, _thread1@PAGE
add x2, x2, _thread1@PAGEOFF
bl _pthread_create
ldr x3, [sp] ; 8-byte Folded Reload
add x0, sp, #16
mov x1, x3
adrp x2, _thread2@PAGE
add x2, x2, _thread2@PAGEOFF
bl _pthread_create
ldr x1, [sp] ; 8-byte Folded Reload
ldr x0, [sp, #24]
bl _pthread_join
ldr x1, [sp] ; 8-byte Folded Reload
ldr x0, [sp, #16]
bl _pthread_join
adrp x0, l_.str.12@PAGE
add x0, x0, l_.str.12@PAGEOFF
bl _consoleLog
ldr w0, [sp, #12] ; 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 "%s"
l_.str.1: ; @.str.1
.asciz "T1: Started\n"
l_.str.2: ; @.str.2
.asciz "T1: Trying to get resource2\n"
.comm _lock2,64,3 ; @lock2
l_.str.3: ; @.str.3
.asciz "T1: Aquired resource2\n"
l_.str.4: ; @.str.4
.asciz "T1: Job finished in resource2..\n"
l_.str.5: ; @.str.5
.asciz "T1: Finished\n"
l_.str.6: ; @.str.6
.asciz "T2: Started\n"
l_.str.7: ; @.str.7
.asciz "T2: Trying to get resource1\n"
.comm _lock1,64,3 ; @lock1
l_.str.8: ; @.str.8
.asciz "T2: Aquired resource1\n"
l_.str.9: ; @.str.9
.asciz "T2: Job finished in resource1..\n"
l_.str.10: ; @.str.10
.asciz "T2: Finished\n"
l_.str.11: ; @.str.11
.asciz "Main: Started\n"
l_.str.12: ; @.str.12
.asciz "Main: Finished\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _consoleLog ## -- Begin function consoleLog
.p2align 4, 0x90
_consoleLog: ## @consoleLog
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movq -8(%rbp), %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _printf
movq ___stdoutp@GOTPCREL(%rip), %rax
movq (%rax), %rdi
callq _fflush
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _thread1 ## -- Begin function thread1
.p2align 4, 0x90
_thread1: ## @thread1
.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)
leaq L_.str.1(%rip), %rdi
callq _consoleLog
movl $2000, %edi ## imm = 0x7D0
callq _usleep
leaq L_.str.2(%rip), %rdi
callq _consoleLog
movq _lock2@GOTPCREL(%rip), %rdi
movq %rdi, -16(%rbp) ## 8-byte Spill
callq _pthread_mutex_lock
leaq L_.str.3(%rip), %rdi
callq _consoleLog
movq -16(%rbp), %rdi ## 8-byte Reload
callq _pthread_mutex_unlock
leaq L_.str.4(%rip), %rdi
callq _consoleLog
leaq L_.str.5(%rip), %rdi
callq _consoleLog
xorl %eax, %eax
movl %eax, %edi
callq _pthread_exit
.cfi_endproc
## -- End function
.globl _thread2 ## -- Begin function thread2
.p2align 4, 0x90
_thread2: ## @thread2
.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)
leaq L_.str.6(%rip), %rdi
callq _consoleLog
movl $2000, %edi ## imm = 0x7D0
callq _usleep
leaq L_.str.7(%rip), %rdi
callq _consoleLog
movq _lock1@GOTPCREL(%rip), %rdi
movq %rdi, -16(%rbp) ## 8-byte Spill
callq _pthread_mutex_lock
leaq L_.str.8(%rip), %rdi
callq _consoleLog
movq -16(%rbp), %rdi ## 8-byte Reload
callq _pthread_mutex_unlock
leaq L_.str.9(%rip), %rdi
callq _consoleLog
leaq L_.str.10(%rip), %rdi
callq _consoleLog
xorl %eax, %eax
movl %eax, %edi
callq _pthread_exit
.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)
leaq L_.str.11(%rip), %rdi
callq _consoleLog
movq _lock1@GOTPCREL(%rip), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _pthread_mutex_init
movq _lock2@GOTPCREL(%rip), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _pthread_mutex_init
leaq -24(%rbp), %rdi
xorl %eax, %eax
movl %eax, %ecx
leaq _thread1(%rip), %rdx
movq %rcx, %rsi
callq _pthread_create
leaq -32(%rbp), %rdi
xorl %eax, %eax
movl %eax, %ecx
leaq _thread2(%rip), %rdx
movq %rcx, %rsi
callq _pthread_create
movq -24(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _pthread_join
movq -32(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq _pthread_join
leaq L_.str.12(%rip), %rdi
callq _consoleLog
xorl %eax, %eax
addq $32, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "%s"
L_.str.1: ## @.str.1
.asciz "T1: Started\n"
L_.str.2: ## @.str.2
.asciz "T1: Trying to get resource2\n"
.comm _lock2,64,3 ## @lock2
L_.str.3: ## @.str.3
.asciz "T1: Aquired resource2\n"
L_.str.4: ## @.str.4
.asciz "T1: Job finished in resource2..\n"
L_.str.5: ## @.str.5
.asciz "T1: Finished\n"
L_.str.6: ## @.str.6
.asciz "T2: Started\n"
L_.str.7: ## @.str.7
.asciz "T2: Trying to get resource1\n"
.comm _lock1,64,3 ## @lock1
L_.str.8: ## @.str.8
.asciz "T2: Aquired resource1\n"
L_.str.9: ## @.str.9
.asciz "T2: Job finished in resource1..\n"
L_.str.10: ## @.str.10
.asciz "T2: Finished\n"
L_.str.11: ## @.str.11
.asciz "Main: Started\n"
L_.str.12: ## @.str.12
.asciz "Main: Finished\n"
.subsections_via_symbols
| the_stack_data/141319.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _foo_alloc ; -- Begin function foo_alloc
.p2align 2
_foo_alloc: ; @foo_alloc
.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 x0, #72
bl _malloc
mov x8, x0
str x8, [sp]
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_4
b LBB0_1
LBB0_1:
ldr x9, [sp]
mov w8, #1
str w8, [x9]
ldr x8, [sp]
add x0, x8, #8
mov x1, #0
bl _pthread_mutex_init
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
ldr x0, [sp]
bl _free
; kill: def $x8 killed $xzr
str xzr, [sp, #8]
b LBB0_5
LBB0_3:
b LBB0_4
LBB0_4:
ldr x8, [sp]
str x8, [sp, #8]
b LBB0_5
LBB0_5:
ldr x0, [sp, #8]
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _foo_hold ; -- Begin function foo_hold
.p2align 2
_foo_hold: ; @foo_hold
.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]
add x0, x8, #8
bl _pthread_mutex_lock
ldr x9, [sp, #8]
ldr w8, [x9]
add w8, w8, #1
str w8, [x9]
ldr x8, [sp, #8]
add x0, x8, #8
bl _pthread_mutex_unlock
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
add sp, sp, #32
ret
.cfi_endproc
; -- End function
.globl _foo_rele ; -- Begin function foo_rele
.p2align 2
_foo_rele: ; @foo_rele
.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]
add x0, x8, #8
bl _pthread_mutex_lock
ldr x9, [sp, #8]
ldr w8, [x9]
subs w8, w8, #1
str w8, [x9]
subs w8, w8, #0
cset w8, ne
tbnz w8, #0, LBB2_2
b LBB2_1
LBB2_1:
ldr x8, [sp, #8]
add x0, x8, #8
bl _pthread_mutex_unlock
ldr x8, [sp, #8]
add x0, x8, #8
bl _pthread_mutex_destroy
ldr x0, [sp, #8]
bl _free
b LBB2_3
LBB2_2:
ldr x8, [sp, #8]
add x0, x8, #8
bl _pthread_mutex_unlock
b LBB2_3
LBB2_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 _foo_alloc ## -- Begin function foo_alloc
.p2align 4, 0x90
_foo_alloc: ## @foo_alloc
.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 $72, %edi
callq _malloc
movq %rax, -16(%rbp)
cmpq $0, %rax
je LBB0_4
## %bb.1:
movq -16(%rbp), %rax
movl $1, (%rax)
movq -16(%rbp), %rdi
addq $8, %rdi
xorl %eax, %eax
movl %eax, %esi
callq _pthread_mutex_init
cmpl $0, %eax
je LBB0_3
## %bb.2:
movq -16(%rbp), %rdi
callq _free
movq $0, -8(%rbp)
jmp LBB0_5
LBB0_3:
jmp LBB0_4
LBB0_4:
movq -16(%rbp), %rax
movq %rax, -8(%rbp)
LBB0_5:
movq -8(%rbp), %rax
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _foo_hold ## -- Begin function foo_hold
.p2align 4, 0x90
_foo_hold: ## @foo_hold
.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
addq $8, %rdi
callq _pthread_mutex_lock
movq -8(%rbp), %rax
movl (%rax), %ecx
addl $1, %ecx
movl %ecx, (%rax)
movq -8(%rbp), %rdi
addq $8, %rdi
callq _pthread_mutex_unlock
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _foo_rele ## -- Begin function foo_rele
.p2align 4, 0x90
_foo_rele: ## @foo_rele
.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
addq $8, %rdi
callq _pthread_mutex_lock
movq -8(%rbp), %rcx
movl (%rcx), %eax
addl $-1, %eax
movl %eax, (%rcx)
cmpl $0, %eax
jne LBB2_2
## %bb.1:
movq -8(%rbp), %rdi
addq $8, %rdi
callq _pthread_mutex_unlock
movq -8(%rbp), %rdi
addq $8, %rdi
callq _pthread_mutex_destroy
movq -8(%rbp), %rdi
callq _free
jmp LBB2_3
LBB2_2:
movq -8(%rbp), %rdi
addq $8, %rdi
callq _pthread_mutex_unlock
LBB2_3:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/97108.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, #2000
adrp x8, ___stack_chk_guard@GOTPAGE
ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
ldr x8, [x8]
stur x8, [x29, #-24]
str wzr, [sp, #92]
add x0, sp, #1744
str x0, [sp, #80] ; 8-byte Folded Spill
adrp x1, l___const.main.words@PAGE
add x1, x1, l___const.main.words@PAGEOFF
mov x2, #248
bl _memcpy
add x0, sp, #844
str x0, [sp, #72] ; 8-byte Folded Spill
adrp x1, l___const.main.game@PAGE
add x1, x1, l___const.main.game@PAGEOFF
mov x2, #900
bl _memcpy
ldr x0, [sp, #72] ; 8-byte Folded Reload
ldr x1, [sp, #80] ; 8-byte Folded Reload
add x2, sp, #96
bl _solve
str wzr, [sp, #88]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #88]
subs w8, w8, #31
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldrsw x8, [sp, #88]
mov x10, #24
mul x9, x8, x10
add x8, sp, #96
ldr x9, [x8, x9]
str x9, [sp, #48] ; 8-byte Folded Spill
ldrsw x9, [sp, #88]
mul x11, x9, x10
mov x9, x8
add x9, x9, x11
ldr w11, [x9, #8]
; implicit-def: $x9
mov x9, x11
str x9, [sp, #56] ; 8-byte Folded Spill
ldrsw x9, [sp, #88]
mul x11, x9, x10
mov x9, x8
add x9, x9, x11
ldr w11, [x9, #12]
; implicit-def: $x9
mov x9, x11
str x9, [sp, #64] ; 8-byte Folded Spill
ldrsw x9, [sp, #88]
mul x9, x9, x10
add x8, x8, x9
ldr w0, [x8, #16]
bl _orientationString
ldr x11, [sp, #48] ; 8-byte Folded Reload
ldr x10, [sp, #56] ; 8-byte Folded Reload
ldr x9, [sp, #64] ; 8-byte Folded Reload
mov x8, sp
str x11, [x8]
str x10, [x8, #8]
str x9, [x8, #16]
str x0, [x8, #24]
adrp x0, l_.str.31@PAGE
add x0, x0, l_.str.31@PAGEOFF
bl _printf
b LBB0_3
LBB0_3: ; in Loop: Header=BB0_1 Depth=1
ldr w8, [sp, #88]
add w8, w8, #1
str w8, [sp, #88]
b LBB0_1
LBB0_4:
ldr w8, [sp, #92]
str w8, [sp, #44] ; 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_6
b LBB0_5
LBB0_5:
bl ___stack_chk_fail
LBB0_6:
ldr w0, [sp, #44] ; 4-byte Folded Reload
add sp, sp, #2000
ldp x29, x30, [sp, #16] ; 16-byte Folded Reload
ldp x28, x27, [sp], #32 ; 16-byte Folded Reload
ret
.cfi_endproc
; -- End function
.globl _solve ; -- Begin function solve
.p2align 2
_solve: ; @solve
.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]
stur wzr, [x29, #-28]
stur wzr, [x29, #-32]
b LBB1_1
LBB1_1: ; =>This Loop Header: Depth=1
; Child Loop BB1_3 Depth 2
; Child Loop BB1_7 Depth 3
; Child Loop BB1_12 Depth 4
ldur w8, [x29, #-32]
subs w8, w8, #31
cset w8, ge
tbnz w8, #0, LBB1_26
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
stur wzr, [x29, #-36]
str wzr, [sp, #40]
b LBB1_3
LBB1_3: ; Parent Loop BB1_1 Depth=1
; => This Loop Header: Depth=2
; Child Loop BB1_7 Depth 3
; Child Loop BB1_12 Depth 4
ldr w8, [sp, #40]
subs w8, w8, #30
cset w8, ge
mov w9, #0
str w9, [sp, #28] ; 4-byte Folded Spill
tbnz w8, #0, LBB1_5
b LBB1_4
LBB1_4: ; in Loop: Header=BB1_3 Depth=2
ldur w8, [x29, #-36]
subs w8, w8, #0
cset w8, eq
str w8, [sp, #28] ; 4-byte Folded Spill
b LBB1_5
LBB1_5: ; in Loop: Header=BB1_3 Depth=2
ldr w8, [sp, #28] ; 4-byte Folded Reload
tbz w8, #0, LBB1_24
b LBB1_6
LBB1_6: ; in Loop: Header=BB1_3 Depth=2
str wzr, [sp, #36]
b LBB1_7
LBB1_7: ; Parent Loop BB1_1 Depth=1
; Parent Loop BB1_3 Depth=2
; => This Loop Header: Depth=3
; Child Loop BB1_12 Depth 4
ldr w8, [sp, #36]
subs w8, w8, #30
cset w8, ge
mov w9, #0
str w9, [sp, #24] ; 4-byte Folded Spill
tbnz w8, #0, LBB1_9
b LBB1_8
LBB1_8: ; in Loop: Header=BB1_7 Depth=3
ldur w8, [x29, #-36]
subs w8, w8, #0
cset w8, eq
str w8, [sp, #24] ; 4-byte Folded Spill
b LBB1_9
LBB1_9: ; in Loop: Header=BB1_7 Depth=3
ldr w8, [sp, #24] ; 4-byte Folded Reload
tbz w8, #0, LBB1_22
b LBB1_10
LBB1_10: ; in Loop: Header=BB1_7 Depth=3
ldur x8, [x29, #-8]
ldrsw x9, [sp, #40]
mov x10, #30
mul x9, x9, x10
add x8, x8, x9
ldrsw x9, [sp, #36]
ldrsb w8, [x8, x9]
ldur x9, [x29, #-16]
ldursw x10, [x29, #-32]
ldr x9, [x9, x10, lsl #3]
ldrsb w9, [x9]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB1_20
b LBB1_11
LBB1_11: ; in Loop: Header=BB1_7 Depth=3
str wzr, [sp, #32]
b LBB1_12
LBB1_12: ; Parent Loop BB1_1 Depth=1
; Parent Loop BB1_3 Depth=2
; Parent Loop BB1_7 Depth=3
; => This Inner Loop Header: Depth=4
ldr w8, [sp, #32]
subs w8, w8, #7
cset w8, hi
mov w9, #0
str w9, [sp, #20] ; 4-byte Folded Spill
tbnz w8, #0, LBB1_14
b LBB1_13
LBB1_13: ; in Loop: Header=BB1_12 Depth=4
ldur w8, [x29, #-36]
subs w8, w8, #0
cset w8, eq
str w8, [sp, #20] ; 4-byte Folded Spill
b LBB1_14
LBB1_14: ; in Loop: Header=BB1_12 Depth=4
ldr w8, [sp, #20] ; 4-byte Folded Reload
tbz w8, #0, LBB1_19
b LBB1_15
LBB1_15: ; in Loop: Header=BB1_12 Depth=4
ldur x8, [x29, #-8]
str x8, [sp, #8] ; 8-byte Folded Spill
ldur x8, [x29, #-16]
ldursw x9, [x29, #-32]
ldr x8, [x8, x9, lsl #3]
str x8, [sp] ; 8-byte Folded Spill
ldur x8, [x29, #-16]
ldursw x9, [x29, #-32]
ldr x0, [x8, x9, lsl #3]
bl _strlen
ldr x1, [sp] ; 8-byte Folded Reload
mov x8, x0
ldr x0, [sp, #8] ; 8-byte Folded Reload
mov x2, x8
ldr w3, [sp, #40]
ldr w4, [sp, #36]
ldr w5, [sp, #32]
bl _checkOrientation
subs w8, w0, #0
cset w8, eq
tbnz w8, #0, LBB1_17
b LBB1_16
LBB1_16: ; in Loop: Header=BB1_12 Depth=4
mov w8, #1
stur w8, [x29, #-36]
ldur x8, [x29, #-16]
ldursw x9, [x29, #-32]
ldr x8, [x8, x9, lsl #3]
ldur x9, [x29, #-24]
ldursw x10, [x29, #-28]
mov x11, #24
mul x10, x10, x11
str x8, [x9, x10]
ldr w8, [sp, #40]
ldur x9, [x29, #-24]
ldursw x10, [x29, #-28]
mul x10, x10, x11
add x9, x9, x10
str w8, [x9, #8]
ldr w8, [sp, #36]
ldur x9, [x29, #-24]
ldursw x10, [x29, #-28]
mul x10, x10, x11
add x9, x9, x10
str w8, [x9, #12]
ldr w8, [sp, #32]
ldur x9, [x29, #-24]
ldursw x10, [x29, #-28]
mul x10, x10, x11
add x9, x9, x10
str w8, [x9, #16]
ldur w8, [x29, #-28]
add w8, w8, #1
stur w8, [x29, #-28]
b LBB1_17
LBB1_17: ; in Loop: Header=BB1_12 Depth=4
b LBB1_18
LBB1_18: ; in Loop: Header=BB1_12 Depth=4
ldr w8, [sp, #32]
add w8, w8, #1
str w8, [sp, #32]
b LBB1_12
LBB1_19: ; in Loop: Header=BB1_7 Depth=3
b LBB1_20
LBB1_20: ; in Loop: Header=BB1_7 Depth=3
b LBB1_21
LBB1_21: ; in Loop: Header=BB1_7 Depth=3
ldr w8, [sp, #36]
add w8, w8, #1
str w8, [sp, #36]
b LBB1_7
LBB1_22: ; in Loop: Header=BB1_3 Depth=2
b LBB1_23
LBB1_23: ; in Loop: Header=BB1_3 Depth=2
ldr w8, [sp, #40]
add w8, w8, #1
str w8, [sp, #40]
b LBB1_3
LBB1_24: ; in Loop: Header=BB1_1 Depth=1
b LBB1_25
LBB1_25: ; in Loop: Header=BB1_1 Depth=1
ldur w8, [x29, #-32]
add w8, w8, #1
stur w8, [x29, #-32]
b LBB1_1
LBB1_26:
ldp x29, x30, [sp, #80] ; 16-byte Folded Reload
add sp, sp, #96
ret
.cfi_endproc
; -- End function
.globl _orientationString ; -- Begin function orientationString
.p2align 2
_orientationString: ; @orientationString
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str w0, [sp, #20]
ldr w8, [sp, #20]
subs w8, w8, #0
; kill: def $x8 killed $w8
str x8, [sp, #8] ; 8-byte Folded Spill
subs x8, x8, #7
cset w8, hi
tbnz w8, #0, LBB2_10
; %bb.1:
ldr x11, [sp, #8] ; 8-byte Folded Reload
adrp x10, lJTI2_0@PAGE
add x10, x10, lJTI2_0@PAGEOFF
Ltmp1:
adr x8, Ltmp1
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB2_2:
adrp x8, l_.str.32@PAGE
add x8, x8, l_.str.32@PAGEOFF
str x8, [sp, #24]
b LBB2_11
LBB2_3:
adrp x8, l_.str.33@PAGE
add x8, x8, l_.str.33@PAGEOFF
str x8, [sp, #24]
b LBB2_11
LBB2_4:
adrp x8, l_.str.34@PAGE
add x8, x8, l_.str.34@PAGEOFF
str x8, [sp, #24]
b LBB2_11
LBB2_5:
adrp x8, l_.str.35@PAGE
add x8, x8, l_.str.35@PAGEOFF
str x8, [sp, #24]
b LBB2_11
LBB2_6:
adrp x8, l_.str.36@PAGE
add x8, x8, l_.str.36@PAGEOFF
str x8, [sp, #24]
b LBB2_11
LBB2_7:
adrp x8, l_.str.37@PAGE
add x8, x8, l_.str.37@PAGEOFF
str x8, [sp, #24]
b LBB2_11
LBB2_8:
adrp x8, l_.str.38@PAGE
add x8, x8, l_.str.38@PAGEOFF
str x8, [sp, #24]
b LBB2_11
LBB2_9:
adrp x8, l_.str.39@PAGE
add x8, x8, l_.str.39@PAGEOFF
str x8, [sp, #24]
b LBB2_11
LBB2_10:
; kill: def $x8 killed $xzr
str xzr, [sp, #24]
b LBB2_11
LBB2_11:
ldr x0, [sp, #24]
add sp, sp, #32
ret
.cfi_endproc
.p2align 2
lJTI2_0:
.long LBB2_2-Ltmp1
.long LBB2_3-Ltmp1
.long LBB2_4-Ltmp1
.long LBB2_5-Ltmp1
.long LBB2_6-Ltmp1
.long LBB2_7-Ltmp1
.long LBB2_8-Ltmp1
.long LBB2_9-Ltmp1
; -- End function
.globl _checkOrientation ; -- Begin function checkOrientation
.p2align 2
_checkOrientation: ; @checkOrientation
.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]
stur w2, [x29, #-28]
str w3, [sp, #32]
str w4, [sp, #28]
str w5, [sp, #24]
ldr w0, [sp, #24]
bl _getRowIncrement
str w0, [sp, #20]
ldr w0, [sp, #24]
bl _getColumnIncrement
str w0, [sp, #16]
str wzr, [sp, #12]
b LBB3_1
LBB3_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #12]
ldur w9, [x29, #-28]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB3_12
b LBB3_2
LBB3_2: ; in Loop: Header=BB3_1 Depth=1
ldr w8, [sp, #12]
ldr w9, [sp, #20]
mul w8, w8, w9
ldr w9, [sp, #32]
add w8, w8, w9
subs w8, w8, #0
cset w8, lt
tbnz w8, #0, LBB3_9
b LBB3_3
LBB3_3: ; in Loop: Header=BB3_1 Depth=1
ldr w8, [sp, #12]
ldr w9, [sp, #20]
mul w8, w8, w9
ldr w9, [sp, #32]
add w8, w8, w9
subs w8, w8, #30
cset w8, ge
tbnz w8, #0, LBB3_9
b LBB3_4
LBB3_4: ; in Loop: Header=BB3_1 Depth=1
ldr w8, [sp, #12]
ldr w9, [sp, #16]
mul w8, w8, w9
ldr w9, [sp, #28]
add w8, w8, w9
subs w8, w8, #0
cset w8, lt
tbnz w8, #0, LBB3_9
b LBB3_5
LBB3_5: ; in Loop: Header=BB3_1 Depth=1
ldr w8, [sp, #12]
ldr w9, [sp, #16]
mul w8, w8, w9
ldr w9, [sp, #28]
add w8, w8, w9
subs w8, w8, #30
cset w8, ge
tbnz w8, #0, LBB3_9
b LBB3_6
LBB3_6: ; in Loop: Header=BB3_1 Depth=1
ldur x8, [x29, #-24]
ldrsw x9, [sp, #12]
ldrsb w8, [x8, x9]
ldur x11, [x29, #-16]
ldr w9, [sp, #12]
ldr w10, [sp, #20]
mul w9, w9, w10
ldr w10, [sp, #32]
add w9, w9, w10
mov w10, #30
smaddl x9, w9, w10, x11
ldr w10, [sp, #12]
ldr w11, [sp, #16]
mul w10, w10, w11
ldr w11, [sp, #28]
add w10, w10, w11
ldrsb w9, [x9, w10, sxtw]
subs w8, w8, w9
cset w8, eq
tbnz w8, #0, LBB3_8
b LBB3_7
LBB3_7:
stur wzr, [x29, #-4]
b LBB3_13
LBB3_8: ; in Loop: Header=BB3_1 Depth=1
b LBB3_10
LBB3_9:
stur wzr, [x29, #-4]
b LBB3_13
LBB3_10: ; in Loop: Header=BB3_1 Depth=1
b LBB3_11
LBB3_11: ; in Loop: Header=BB3_1 Depth=1
ldr w8, [sp, #12]
add w8, w8, #1
str w8, [sp, #12]
b LBB3_1
LBB3_12:
mov w8, #1
stur w8, [x29, #-4]
b LBB3_13
LBB3_13:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #64] ; 16-byte Folded Reload
add sp, sp, #80
ret
.cfi_endproc
; -- End function
.globl _getRowIncrement ; -- Begin function getRowIncrement
.p2align 2
_getRowIncrement: ; @getRowIncrement
.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
; kill: def $x8 killed $w8
str x8, [sp] ; 8-byte Folded Spill
subs x8, x8, #7
cset w8, hi
tbnz w8, #0, LBB4_10
; %bb.1:
ldr x11, [sp] ; 8-byte Folded Reload
adrp x10, lJTI4_0@PAGE
add x10, x10, lJTI4_0@PAGEOFF
Ltmp3:
adr x8, Ltmp3
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB4_2:
str wzr, [sp, #12]
b LBB4_11
LBB4_3:
str wzr, [sp, #12]
b LBB4_11
LBB4_4:
mov w8, #-1
str w8, [sp, #12]
b LBB4_11
LBB4_5:
mov w8, #1
str w8, [sp, #12]
b LBB4_11
LBB4_6:
mov w8, #-1
str w8, [sp, #12]
b LBB4_11
LBB4_7:
mov w8, #-1
str w8, [sp, #12]
b LBB4_11
LBB4_8:
mov w8, #1
str w8, [sp, #12]
b LBB4_11
LBB4_9:
mov w8, #1
str w8, [sp, #12]
b LBB4_11
LBB4_10:
str wzr, [sp, #12]
b LBB4_11
LBB4_11:
ldr w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
.p2align 2
lJTI4_0:
.long LBB4_2-Ltmp3
.long LBB4_3-Ltmp3
.long LBB4_4-Ltmp3
.long LBB4_5-Ltmp3
.long LBB4_6-Ltmp3
.long LBB4_7-Ltmp3
.long LBB4_8-Ltmp3
.long LBB4_9-Ltmp3
; -- End function
.globl _getColumnIncrement ; -- Begin function getColumnIncrement
.p2align 2
_getColumnIncrement: ; @getColumnIncrement
.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
; kill: def $x8 killed $w8
str x8, [sp] ; 8-byte Folded Spill
subs x8, x8, #7
cset w8, hi
tbnz w8, #0, LBB5_10
; %bb.1:
ldr x11, [sp] ; 8-byte Folded Reload
adrp x10, lJTI5_0@PAGE
add x10, x10, lJTI5_0@PAGEOFF
Ltmp5:
adr x8, Ltmp5
ldrsw x9, [x10, x11, lsl #2]
add x8, x8, x9
br x8
LBB5_2:
mov w8, #1
str w8, [sp, #12]
b LBB5_11
LBB5_3:
mov w8, #-1
str w8, [sp, #12]
b LBB5_11
LBB5_4:
str wzr, [sp, #12]
b LBB5_11
LBB5_5:
str wzr, [sp, #12]
b LBB5_11
LBB5_6:
mov w8, #1
str w8, [sp, #12]
b LBB5_11
LBB5_7:
mov w8, #-1
str w8, [sp, #12]
b LBB5_11
LBB5_8:
mov w8, #1
str w8, [sp, #12]
b LBB5_11
LBB5_9:
mov w8, #-1
str w8, [sp, #12]
b LBB5_11
LBB5_10:
str wzr, [sp, #12]
b LBB5_11
LBB5_11:
ldr w0, [sp, #12]
add sp, sp, #16
ret
.cfi_endproc
.p2align 2
lJTI5_0:
.long LBB5_2-Ltmp5
.long LBB5_3-Ltmp5
.long LBB5_4-Ltmp5
.long LBB5_5-Ltmp5
.long LBB5_6-Ltmp5
.long LBB5_7-Ltmp5
.long LBB5_8-Ltmp5
.long LBB5_9-Ltmp5
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "ALMONDS"
l_.str.1: ; @.str.1
.asciz "APPLES"
l_.str.2: ; @.str.2
.asciz "BANANAS"
l_.str.3: ; @.str.3
.asciz "BEANS"
l_.str.4: ; @.str.4
.asciz "BLUEBERRIES"
l_.str.5: ; @.str.5
.asciz "BROCCOLI"
l_.str.6: ; @.str.6
.asciz "BROWNRICE"
l_.str.7: ; @.str.7
.asciz "CARROTS"
l_.str.8: ; @.str.8
.asciz "CASHEWS"
l_.str.9: ; @.str.9
.asciz "CELERY"
l_.str.10: ; @.str.10
.asciz "CHEESE"
l_.str.11: ; @.str.11
.asciz "CHICKEN"
l_.str.12: ; @.str.12
.asciz "CORN"
l_.str.13: ; @.str.13
.asciz "CRANBERRIES"
l_.str.14: ; @.str.14
.asciz "CUCUMBERS"
l_.str.15: ; @.str.15
.asciz "EGGS"
l_.str.16: ; @.str.16
.asciz "LEMONS"
l_.str.17: ; @.str.17
.asciz "LETTUCE"
l_.str.18: ; @.str.18
.asciz "OATMEAL"
l_.str.19: ; @.str.19
.asciz "ORANGES"
l_.str.20: ; @.str.20
.asciz "POTATOES"
l_.str.21: ; @.str.21
.asciz "SALMON"
l_.str.22: ; @.str.22
.asciz "SPINACH"
l_.str.23: ; @.str.23
.asciz "TOFU"
l_.str.24: ; @.str.24
.asciz "TOMATOES"
l_.str.25: ; @.str.25
.asciz "WALNUTS"
l_.str.26: ; @.str.26
.asciz "WATER"
l_.str.27: ; @.str.27
.asciz "WATERMELON"
l_.str.28: ; @.str.28
.asciz "WHOLEGRAINS"
l_.str.29: ; @.str.29
.asciz "YOGURT"
l_.str.30: ; @.str.30
.asciz "ZUCCHINI"
.section __DATA,__const
.p2align 3 ; @__const.main.words
l___const.main.words:
.quad l_.str
.quad l_.str.1
.quad l_.str.2
.quad l_.str.3
.quad l_.str.4
.quad l_.str.5
.quad l_.str.6
.quad l_.str.7
.quad l_.str.8
.quad l_.str.9
.quad l_.str.10
.quad l_.str.11
.quad l_.str.12
.quad l_.str.13
.quad l_.str.14
.quad l_.str.15
.quad l_.str.16
.quad l_.str.17
.quad l_.str.18
.quad l_.str.19
.quad l_.str.20
.quad l_.str.21
.quad l_.str.22
.quad l_.str.23
.quad l_.str.24
.quad l_.str.25
.quad l_.str.26
.quad l_.str.27
.quad l_.str.28
.quad l_.str.29
.quad l_.str.30
.section __TEXT,__const
l___const.main.game: ; @__const.main.game
.ascii "SXXDLLQTSBWNOQBQOECSBZCIBXPMSW"
.ascii "ZRDYQKOCTRPBASNICJEGRIRUQXCEQC"
.ascii "UBEHPMCBUOSKVVYUIIITOEAAMVLROV"
.ascii "VKHBAHWLNWWQYCTORUZWCZNWBPWRXT"
.ascii "NLLTMANMLNSPYTSRBKCVCIBFPYTLNM"
.ascii "TROBHUMJARVPEREGKXOEOWEAMZELKN"
.ascii "XENQXTCKWIELIBBLZMRDLCRKCQXMYN"
.ascii "SKSFWAHUQCOQENTMHQAHIMRXDXKWIJ"
.ascii "GAGVNPSCCEVUMPAZUVNDAAIQUFJXAE"
.ascii "BITYSETLGULREGUCNXGQQFEFRXUTMG"
.ascii "EJUTAPRLZBYSONWXHUEOTXSIQPBVQG"
.ascii "APKNGHAEWTEYQDLUSCSXJKCFAYHLCS"
.ascii "NPACOLRLBEVLQBFBQQVLBEGMIIHEZS"
.ascii "SMNAALOBHULLPZQVSWMDQWNFBVAVYN"
.ascii "CSMFLSECYSGZYYXRZAOQEKTNQYQORI"
.ascii "TTWGAMHMICPBIGEDPDMQOBMOQPCVRA"
.ascii "RKGEAXOERIOBXTKKXXVCGEQDXOOBPR"
.ascii "VHOKQOGNWEHJAIFTDQLPGANAHTRXEG"
.ascii "NSFQFOIWDSTWDFEAMNVSNZRKXANUWE"
.ascii "OATMEALGFSSALIXROYESWYKLYTTPNL"
.ascii "XCSVLPEVLAWEWXMMOFZTRVTRVOYTYO"
.ascii "OJPXIQPENFEQCHLGQUNOCVDZWETUCH"
.ascii "SBQKERZABLLJDAUWCLORCEPSQSQDAW"
.ascii "EQIEBMNOEBPGSRECACORAILXHRFABL"
.ascii "UXXSAALEMONSTLHUSDVASWCEWWYPLA"
.ascii "WYLIBNNMGXGNQIQQBKUCKNDARYSGRF"
.ascii "CHICKENLQGUDNRYKOFXXXFUELYREYV"
.ascii "TPYCHHGMQZBINFICONHIXBBCQZAXZO"
.ascii "PNKUVONBMJVCOZUTAPMUXSJUDNMYOR"
.ascii "VPOFDLHMZZOHYGOCITBSQTSAXNXEPG"
.section __TEXT,__cstring,cstring_literals
l_.str.31: ; @.str.31
.asciz "%s:\n\tRow: %d\n\tColumn: %d\n\tOrientation: %s\n"
l_.str.32: ; @.str.32
.asciz "Right"
l_.str.33: ; @.str.33
.asciz "Left"
l_.str.34: ; @.str.34
.asciz "Up"
l_.str.35: ; @.str.35
.asciz "Down"
l_.str.36: ; @.str.36
.asciz "Up & Right"
l_.str.37: ; @.str.37
.asciz "Up & Left"
l_.str.38: ; @.str.38
.asciz "Down & Right"
l_.str.39: ; @.str.39
.asciz "Down & Left"
.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 $1952, %rsp ## imm = 0x7A0
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq %rax, -8(%rbp)
movl $0, -1924(%rbp)
leaq -256(%rbp), %rdi
leaq l___const.main.words(%rip), %rsi
movl $248, %edx
callq _memcpy
leaq -1168(%rbp), %rdi
leaq l___const.main.game(%rip), %rsi
movl $900, %edx ## imm = 0x384
callq _memcpy
leaq -1168(%rbp), %rdi
leaq -256(%rbp), %rsi
leaq -1920(%rbp), %rdx
callq _solve
movl $0, -1928(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
cmpl $31, -1928(%rbp)
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movslq -1928(%rbp), %rcx
leaq -1920(%rbp), %rax
imulq $24, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq %rax, -1944(%rbp) ## 8-byte Spill
movslq -1928(%rbp), %rcx
leaq -1920(%rbp), %rax
imulq $24, %rcx, %rcx
addq %rcx, %rax
movl 8(%rax), %eax
movl %eax, -1936(%rbp) ## 4-byte Spill
movslq -1928(%rbp), %rcx
leaq -1920(%rbp), %rax
imulq $24, %rcx, %rcx
addq %rcx, %rax
movl 12(%rax), %eax
movl %eax, -1932(%rbp) ## 4-byte Spill
movslq -1928(%rbp), %rcx
leaq -1920(%rbp), %rax
imulq $24, %rcx, %rcx
addq %rcx, %rax
movl 16(%rax), %edi
callq _orientationString
movq -1944(%rbp), %rsi ## 8-byte Reload
movl -1936(%rbp), %edx ## 4-byte Reload
movl -1932(%rbp), %ecx ## 4-byte Reload
movq %rax, %r8
leaq L_.str.31(%rip), %rdi
movb $0, %al
callq _printf
## %bb.3: ## in Loop: Header=BB0_1 Depth=1
movl -1928(%rbp), %eax
addl $1, %eax
movl %eax, -1928(%rbp)
jmp LBB0_1
LBB0_4:
movl -1924(%rbp), %eax
movl %eax, -1948(%rbp) ## 4-byte Spill
movq ___stack_chk_guard@GOTPCREL(%rip), %rax
movq (%rax), %rax
movq -8(%rbp), %rcx
cmpq %rcx, %rax
jne LBB0_6
## %bb.5:
movl -1948(%rbp), %eax ## 4-byte Reload
addq $1952, %rsp ## imm = 0x7A0
popq %rbp
retq
LBB0_6:
callq ___stack_chk_fail
ud2
.cfi_endproc
## -- End function
.globl _solve ## -- Begin function solve
.p2align 4, 0x90
_solve: ## @solve
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $80, %rsp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq %rdx, -24(%rbp)
movl $0, -28(%rbp)
movl $0, -32(%rbp)
LBB1_1: ## =>This Loop Header: Depth=1
## Child Loop BB1_3 Depth 2
## Child Loop BB1_7 Depth 3
## Child Loop BB1_12 Depth 4
cmpl $31, -32(%rbp)
jge LBB1_26
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movl $0, -36(%rbp)
movl $0, -40(%rbp)
LBB1_3: ## Parent Loop BB1_1 Depth=1
## => This Loop Header: Depth=2
## Child Loop BB1_7 Depth 3
## Child Loop BB1_12 Depth 4
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $30, -40(%rbp)
movb %al, -49(%rbp) ## 1-byte Spill
jge LBB1_5
## %bb.4: ## in Loop: Header=BB1_3 Depth=2
cmpl $0, -36(%rbp)
setne %al
xorb $-1, %al
movb %al, -49(%rbp) ## 1-byte Spill
LBB1_5: ## in Loop: Header=BB1_3 Depth=2
movb -49(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB1_6
jmp LBB1_24
LBB1_6: ## in Loop: Header=BB1_3 Depth=2
movl $0, -44(%rbp)
LBB1_7: ## Parent Loop BB1_1 Depth=1
## Parent Loop BB1_3 Depth=2
## => This Loop Header: Depth=3
## Child Loop BB1_12 Depth 4
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $30, -44(%rbp)
movb %al, -50(%rbp) ## 1-byte Spill
jge LBB1_9
## %bb.8: ## in Loop: Header=BB1_7 Depth=3
cmpl $0, -36(%rbp)
setne %al
xorb $-1, %al
movb %al, -50(%rbp) ## 1-byte Spill
LBB1_9: ## in Loop: Header=BB1_7 Depth=3
movb -50(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB1_10
jmp LBB1_22
LBB1_10: ## in Loop: Header=BB1_7 Depth=3
movq -8(%rbp), %rax
movslq -40(%rbp), %rcx
imulq $30, %rcx, %rcx
addq %rcx, %rax
movslq -44(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movq -16(%rbp), %rcx
movslq -32(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movsbl (%rcx), %ecx
cmpl %ecx, %eax
jne LBB1_20
## %bb.11: ## in Loop: Header=BB1_7 Depth=3
movl $0, -48(%rbp)
LBB1_12: ## Parent Loop BB1_1 Depth=1
## Parent Loop BB1_3 Depth=2
## Parent Loop BB1_7 Depth=3
## => This Inner Loop Header: Depth=4
xorl %eax, %eax
## kill: def $al killed $al killed $eax
cmpl $7, -48(%rbp)
movb %al, -51(%rbp) ## 1-byte Spill
ja LBB1_14
## %bb.13: ## in Loop: Header=BB1_12 Depth=4
cmpl $0, -36(%rbp)
setne %al
xorb $-1, %al
movb %al, -51(%rbp) ## 1-byte Spill
LBB1_14: ## in Loop: Header=BB1_12 Depth=4
movb -51(%rbp), %al ## 1-byte Reload
testb $1, %al
jne LBB1_15
jmp LBB1_19
LBB1_15: ## in Loop: Header=BB1_12 Depth=4
movq -8(%rbp), %rax
movq %rax, -72(%rbp) ## 8-byte Spill
movq -16(%rbp), %rax
movslq -32(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -64(%rbp) ## 8-byte Spill
movq -16(%rbp), %rax
movslq -32(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq _strlen
movq -72(%rbp), %rdi ## 8-byte Reload
movq -64(%rbp), %rsi ## 8-byte Reload
movl %eax, %edx
movl -40(%rbp), %ecx
movl -44(%rbp), %r8d
movl -48(%rbp), %r9d
callq _checkOrientation
cmpl $0, %eax
je LBB1_17
## %bb.16: ## in Loop: Header=BB1_12 Depth=4
movl $1, -36(%rbp)
movq -16(%rbp), %rax
movslq -32(%rbp), %rcx
movq (%rax,%rcx,8), %rcx
movq -24(%rbp), %rax
movslq -28(%rbp), %rdx
imulq $24, %rdx, %rdx
addq %rdx, %rax
movq %rcx, (%rax)
movl -40(%rbp), %ecx
movq -24(%rbp), %rax
movslq -28(%rbp), %rdx
imulq $24, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 8(%rax)
movl -44(%rbp), %ecx
movq -24(%rbp), %rax
movslq -28(%rbp), %rdx
imulq $24, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 12(%rax)
movl -48(%rbp), %ecx
movq -24(%rbp), %rax
movslq -28(%rbp), %rdx
imulq $24, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 16(%rax)
movl -28(%rbp), %eax
addl $1, %eax
movl %eax, -28(%rbp)
LBB1_17: ## in Loop: Header=BB1_12 Depth=4
jmp LBB1_18
LBB1_18: ## in Loop: Header=BB1_12 Depth=4
movl -48(%rbp), %eax
addl $1, %eax
movl %eax, -48(%rbp)
jmp LBB1_12
LBB1_19: ## in Loop: Header=BB1_7 Depth=3
jmp LBB1_20
LBB1_20: ## in Loop: Header=BB1_7 Depth=3
jmp LBB1_21
LBB1_21: ## in Loop: Header=BB1_7 Depth=3
movl -44(%rbp), %eax
addl $1, %eax
movl %eax, -44(%rbp)
jmp LBB1_7
LBB1_22: ## in Loop: Header=BB1_3 Depth=2
jmp LBB1_23
LBB1_23: ## in Loop: Header=BB1_3 Depth=2
movl -40(%rbp), %eax
addl $1, %eax
movl %eax, -40(%rbp)
jmp LBB1_3
LBB1_24: ## in Loop: Header=BB1_1 Depth=1
jmp LBB1_25
LBB1_25: ## in Loop: Header=BB1_1 Depth=1
movl -32(%rbp), %eax
addl $1, %eax
movl %eax, -32(%rbp)
jmp LBB1_1
LBB1_26:
addq $80, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _orientationString ## -- Begin function orientationString
.p2align 4, 0x90
_orientationString: ## @orientationString
.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)
movl -12(%rbp), %eax
## kill: def $rax killed $eax
movq %rax, -24(%rbp) ## 8-byte Spill
subq $7, %rax
ja LBB2_9
## %bb.11:
movq -24(%rbp), %rax ## 8-byte Reload
leaq LJTI2_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB2_1:
leaq L_.str.32(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB2_10
LBB2_2:
leaq L_.str.33(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB2_10
LBB2_3:
leaq L_.str.34(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB2_10
LBB2_4:
leaq L_.str.35(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB2_10
LBB2_5:
leaq L_.str.36(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB2_10
LBB2_6:
leaq L_.str.37(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB2_10
LBB2_7:
leaq L_.str.38(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB2_10
LBB2_8:
leaq L_.str.39(%rip), %rax
movq %rax, -8(%rbp)
jmp LBB2_10
LBB2_9:
movq $0, -8(%rbp)
LBB2_10:
movq -8(%rbp), %rax
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L2_0_set_1, LBB2_1-LJTI2_0
.set L2_0_set_2, LBB2_2-LJTI2_0
.set L2_0_set_3, LBB2_3-LJTI2_0
.set L2_0_set_4, LBB2_4-LJTI2_0
.set L2_0_set_5, LBB2_5-LJTI2_0
.set L2_0_set_6, LBB2_6-LJTI2_0
.set L2_0_set_7, LBB2_7-LJTI2_0
.set L2_0_set_8, LBB2_8-LJTI2_0
LJTI2_0:
.long L2_0_set_1
.long L2_0_set_2
.long L2_0_set_3
.long L2_0_set_4
.long L2_0_set_5
.long L2_0_set_6
.long L2_0_set_7
.long L2_0_set_8
.end_data_region
## -- End function
.globl _checkOrientation ## -- Begin function checkOrientation
.p2align 4, 0x90
_checkOrientation: ## @checkOrientation
.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)
movl %edx, -28(%rbp)
movl %ecx, -32(%rbp)
movl %r8d, -36(%rbp)
movl %r9d, -40(%rbp)
movl -40(%rbp), %edi
callq _getRowIncrement
movl %eax, -44(%rbp)
movl -40(%rbp), %edi
callq _getColumnIncrement
movl %eax, -48(%rbp)
movl $0, -52(%rbp)
LBB3_1: ## =>This Inner Loop Header: Depth=1
movl -52(%rbp), %eax
cmpl -28(%rbp), %eax
jge LBB3_12
## %bb.2: ## in Loop: Header=BB3_1 Depth=1
movl -52(%rbp), %eax
imull -44(%rbp), %eax
addl -32(%rbp), %eax
cmpl $0, %eax
jl LBB3_9
## %bb.3: ## in Loop: Header=BB3_1 Depth=1
movl -52(%rbp), %eax
imull -44(%rbp), %eax
addl -32(%rbp), %eax
cmpl $30, %eax
jge LBB3_9
## %bb.4: ## in Loop: Header=BB3_1 Depth=1
movl -52(%rbp), %eax
imull -48(%rbp), %eax
addl -36(%rbp), %eax
cmpl $0, %eax
jl LBB3_9
## %bb.5: ## in Loop: Header=BB3_1 Depth=1
movl -52(%rbp), %eax
imull -48(%rbp), %eax
addl -36(%rbp), %eax
cmpl $30, %eax
jge LBB3_9
## %bb.6: ## in Loop: Header=BB3_1 Depth=1
movq -24(%rbp), %rax
movslq -52(%rbp), %rcx
movsbl (%rax,%rcx), %eax
movq -16(%rbp), %rcx
movl -52(%rbp), %edx
imull -44(%rbp), %edx
addl -32(%rbp), %edx
movslq %edx, %rdx
imulq $30, %rdx, %rdx
addq %rdx, %rcx
movl -52(%rbp), %edx
imull -48(%rbp), %edx
addl -36(%rbp), %edx
movslq %edx, %rdx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
je LBB3_8
## %bb.7:
movl $0, -4(%rbp)
jmp LBB3_13
LBB3_8: ## in Loop: Header=BB3_1 Depth=1
jmp LBB3_10
LBB3_9:
movl $0, -4(%rbp)
jmp LBB3_13
LBB3_10: ## in Loop: Header=BB3_1 Depth=1
jmp LBB3_11
LBB3_11: ## in Loop: Header=BB3_1 Depth=1
movl -52(%rbp), %eax
addl $1, %eax
movl %eax, -52(%rbp)
jmp LBB3_1
LBB3_12:
movl $1, -4(%rbp)
LBB3_13:
movl -4(%rbp), %eax
addq $64, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _getRowIncrement ## -- Begin function getRowIncrement
.p2align 4, 0x90
_getRowIncrement: ## @getRowIncrement
.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 -8(%rbp), %eax
## kill: def $rax killed $eax
movq %rax, -16(%rbp) ## 8-byte Spill
subq $7, %rax
ja LBB4_9
## %bb.11:
movq -16(%rbp), %rax ## 8-byte Reload
leaq LJTI4_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB4_1:
movl $0, -4(%rbp)
jmp LBB4_10
LBB4_2:
movl $0, -4(%rbp)
jmp LBB4_10
LBB4_3:
movl $-1, -4(%rbp)
jmp LBB4_10
LBB4_4:
movl $1, -4(%rbp)
jmp LBB4_10
LBB4_5:
movl $-1, -4(%rbp)
jmp LBB4_10
LBB4_6:
movl $-1, -4(%rbp)
jmp LBB4_10
LBB4_7:
movl $1, -4(%rbp)
jmp LBB4_10
LBB4_8:
movl $1, -4(%rbp)
jmp LBB4_10
LBB4_9:
movl $0, -4(%rbp)
LBB4_10:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L4_0_set_1, LBB4_1-LJTI4_0
.set L4_0_set_2, LBB4_2-LJTI4_0
.set L4_0_set_3, LBB4_3-LJTI4_0
.set L4_0_set_4, LBB4_4-LJTI4_0
.set L4_0_set_5, LBB4_5-LJTI4_0
.set L4_0_set_6, LBB4_6-LJTI4_0
.set L4_0_set_7, LBB4_7-LJTI4_0
.set L4_0_set_8, LBB4_8-LJTI4_0
LJTI4_0:
.long L4_0_set_1
.long L4_0_set_2
.long L4_0_set_3
.long L4_0_set_4
.long L4_0_set_5
.long L4_0_set_6
.long L4_0_set_7
.long L4_0_set_8
.end_data_region
## -- End function
.globl _getColumnIncrement ## -- Begin function getColumnIncrement
.p2align 4, 0x90
_getColumnIncrement: ## @getColumnIncrement
.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 -8(%rbp), %eax
## kill: def $rax killed $eax
movq %rax, -16(%rbp) ## 8-byte Spill
subq $7, %rax
ja LBB5_9
## %bb.11:
movq -16(%rbp), %rax ## 8-byte Reload
leaq LJTI5_0(%rip), %rcx
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
LBB5_1:
movl $1, -4(%rbp)
jmp LBB5_10
LBB5_2:
movl $-1, -4(%rbp)
jmp LBB5_10
LBB5_3:
movl $0, -4(%rbp)
jmp LBB5_10
LBB5_4:
movl $0, -4(%rbp)
jmp LBB5_10
LBB5_5:
movl $1, -4(%rbp)
jmp LBB5_10
LBB5_6:
movl $-1, -4(%rbp)
jmp LBB5_10
LBB5_7:
movl $1, -4(%rbp)
jmp LBB5_10
LBB5_8:
movl $-1, -4(%rbp)
jmp LBB5_10
LBB5_9:
movl $0, -4(%rbp)
LBB5_10:
movl -4(%rbp), %eax
popq %rbp
retq
.cfi_endproc
.p2align 2, 0x90
.data_region jt32
.set L5_0_set_1, LBB5_1-LJTI5_0
.set L5_0_set_2, LBB5_2-LJTI5_0
.set L5_0_set_3, LBB5_3-LJTI5_0
.set L5_0_set_4, LBB5_4-LJTI5_0
.set L5_0_set_5, LBB5_5-LJTI5_0
.set L5_0_set_6, LBB5_6-LJTI5_0
.set L5_0_set_7, LBB5_7-LJTI5_0
.set L5_0_set_8, LBB5_8-LJTI5_0
LJTI5_0:
.long L5_0_set_1
.long L5_0_set_2
.long L5_0_set_3
.long L5_0_set_4
.long L5_0_set_5
.long L5_0_set_6
.long L5_0_set_7
.long L5_0_set_8
.end_data_region
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "ALMONDS"
L_.str.1: ## @.str.1
.asciz "APPLES"
L_.str.2: ## @.str.2
.asciz "BANANAS"
L_.str.3: ## @.str.3
.asciz "BEANS"
L_.str.4: ## @.str.4
.asciz "BLUEBERRIES"
L_.str.5: ## @.str.5
.asciz "BROCCOLI"
L_.str.6: ## @.str.6
.asciz "BROWNRICE"
L_.str.7: ## @.str.7
.asciz "CARROTS"
L_.str.8: ## @.str.8
.asciz "CASHEWS"
L_.str.9: ## @.str.9
.asciz "CELERY"
L_.str.10: ## @.str.10
.asciz "CHEESE"
L_.str.11: ## @.str.11
.asciz "CHICKEN"
L_.str.12: ## @.str.12
.asciz "CORN"
L_.str.13: ## @.str.13
.asciz "CRANBERRIES"
L_.str.14: ## @.str.14
.asciz "CUCUMBERS"
L_.str.15: ## @.str.15
.asciz "EGGS"
L_.str.16: ## @.str.16
.asciz "LEMONS"
L_.str.17: ## @.str.17
.asciz "LETTUCE"
L_.str.18: ## @.str.18
.asciz "OATMEAL"
L_.str.19: ## @.str.19
.asciz "ORANGES"
L_.str.20: ## @.str.20
.asciz "POTATOES"
L_.str.21: ## @.str.21
.asciz "SALMON"
L_.str.22: ## @.str.22
.asciz "SPINACH"
L_.str.23: ## @.str.23
.asciz "TOFU"
L_.str.24: ## @.str.24
.asciz "TOMATOES"
L_.str.25: ## @.str.25
.asciz "WALNUTS"
L_.str.26: ## @.str.26
.asciz "WATER"
L_.str.27: ## @.str.27
.asciz "WATERMELON"
L_.str.28: ## @.str.28
.asciz "WHOLEGRAINS"
L_.str.29: ## @.str.29
.asciz "YOGURT"
L_.str.30: ## @.str.30
.asciz "ZUCCHINI"
.section __DATA,__const
.p2align 4 ## @__const.main.words
l___const.main.words:
.quad L_.str
.quad L_.str.1
.quad L_.str.2
.quad L_.str.3
.quad L_.str.4
.quad L_.str.5
.quad L_.str.6
.quad L_.str.7
.quad L_.str.8
.quad L_.str.9
.quad L_.str.10
.quad L_.str.11
.quad L_.str.12
.quad L_.str.13
.quad L_.str.14
.quad L_.str.15
.quad L_.str.16
.quad L_.str.17
.quad L_.str.18
.quad L_.str.19
.quad L_.str.20
.quad L_.str.21
.quad L_.str.22
.quad L_.str.23
.quad L_.str.24
.quad L_.str.25
.quad L_.str.26
.quad L_.str.27
.quad L_.str.28
.quad L_.str.29
.quad L_.str.30
.section __TEXT,__const
.p2align 4 ## @__const.main.game
l___const.main.game:
.ascii "SXXDLLQTSBWNOQBQOECSBZCIBXPMSW"
.ascii "ZRDYQKOCTRPBASNICJEGRIRUQXCEQC"
.ascii "UBEHPMCBUOSKVVYUIIITOEAAMVLROV"
.ascii "VKHBAHWLNWWQYCTORUZWCZNWBPWRXT"
.ascii "NLLTMANMLNSPYTSRBKCVCIBFPYTLNM"
.ascii "TROBHUMJARVPEREGKXOEOWEAMZELKN"
.ascii "XENQXTCKWIELIBBLZMRDLCRKCQXMYN"
.ascii "SKSFWAHUQCOQENTMHQAHIMRXDXKWIJ"
.ascii "GAGVNPSCCEVUMPAZUVNDAAIQUFJXAE"
.ascii "BITYSETLGULREGUCNXGQQFEFRXUTMG"
.ascii "EJUTAPRLZBYSONWXHUEOTXSIQPBVQG"
.ascii "APKNGHAEWTEYQDLUSCSXJKCFAYHLCS"
.ascii "NPACOLRLBEVLQBFBQQVLBEGMIIHEZS"
.ascii "SMNAALOBHULLPZQVSWMDQWNFBVAVYN"
.ascii "CSMFLSECYSGZYYXRZAOQEKTNQYQORI"
.ascii "TTWGAMHMICPBIGEDPDMQOBMOQPCVRA"
.ascii "RKGEAXOERIOBXTKKXXVCGEQDXOOBPR"
.ascii "VHOKQOGNWEHJAIFTDQLPGANAHTRXEG"
.ascii "NSFQFOIWDSTWDFEAMNVSNZRKXANUWE"
.ascii "OATMEALGFSSALIXROYESWYKLYTTPNL"
.ascii "XCSVLPEVLAWEWXMMOFZTRVTRVOYTYO"
.ascii "OJPXIQPENFEQCHLGQUNOCVDZWETUCH"
.ascii "SBQKERZABLLJDAUWCLORCEPSQSQDAW"
.ascii "EQIEBMNOEBPGSRECACORAILXHRFABL"
.ascii "UXXSAALEMONSTLHUSDVASWCEWWYPLA"
.ascii "WYLIBNNMGXGNQIQQBKUCKNDARYSGRF"
.ascii "CHICKENLQGUDNRYKOFXXXFUELYREYV"
.ascii "TPYCHHGMQZBINFICONHIXBBCQZAXZO"
.ascii "PNKUVONBMJVCOZUTAPMUXSJUDNMYOR"
.ascii "VPOFDLHMZZOHYGOCITBSQTSAXNXEPG"
.section __TEXT,__cstring,cstring_literals
L_.str.31: ## @.str.31
.asciz "%s:\n\tRow: %d\n\tColumn: %d\n\tOrientation: %s\n"
L_.str.32: ## @.str.32
.asciz "Right"
L_.str.33: ## @.str.33
.asciz "Left"
L_.str.34: ## @.str.34
.asciz "Up"
L_.str.35: ## @.str.35
.asciz "Down"
L_.str.36: ## @.str.36
.asciz "Up & Right"
L_.str.37: ## @.str.37
.asciz "Up & Left"
L_.str.38: ## @.str.38
.asciz "Down & Right"
L_.str.39: ## @.str.39
.asciz "Down & Left"
.subsections_via_symbols
| the_stack_data/34787.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]
ldur w8, [x29, #-8]
subs w8, w8, #4
cset w8, ne
tbnz w8, #0, LBB0_8
b LBB0_1
LBB0_1:
ldur x8, [x29, #-16]
ldr x0, [x8, #8]
adrp x1, l_.str@PAGE
add x1, x1, l_.str@PAGEOFF
str x1, [sp, #24] ; 8-byte Folded Spill
bl _fopen
stur x0, [x29, #-24]
ldur x8, [x29, #-16]
ldr x0, [x8, #16]
adrp x1, l_.str.1@PAGE
add x1, x1, l_.str.1@PAGEOFF
bl _fopen
ldr x1, [sp, #24] ; 8-byte Folded Reload
stur x0, [x29, #-32]
ldur x8, [x29, #-16]
ldr x0, [x8, #24]
bl _fopen
str x0, [sp, #40]
ldur x8, [x29, #-24]
subs x8, x8, #0
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
ldr x8, [sp, #40]
subs x8, x8, #0
cset w8, ne
tbnz w8, #0, LBB0_4
b LBB0_3
LBB0_3:
ldur x8, [x29, #-16]
ldr x8, [x8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.2@PAGE
add x0, x0, l_.str.2@PAGEOFF
bl _printf
stur wzr, [x29, #-4]
b LBB0_9
LBB0_4:
b LBB0_5
LBB0_5: ; =>This Inner Loop Header: Depth=1
ldr x3, [sp, #40]
add x0, sp, #39
mov x2, #1
mov x1, x2
bl _fread
subs x8, x0, #0
cset w8, eq
tbnz w8, #0, LBB0_7
b LBB0_6
LBB0_6: ; in Loop: Header=BB0_5 Depth=1
ldur x3, [x29, #-24]
add x0, sp, #37
str x0, [sp, #16] ; 8-byte Folded Spill
mov x2, #1
str x2, [sp, #8] ; 8-byte Folded Spill
mov x1, x2
bl _fread
ldr x2, [sp, #8] ; 8-byte Folded Reload
ldr x0, [sp, #16] ; 8-byte Folded Reload
ldrb w9, [sp, #39]
ldrb w8, [sp, #37]
eor w8, w8, w9
strb w8, [sp, #37]
ldur x3, [x29, #-32]
mov x1, x2
bl _fwrite
b LBB0_5
LBB0_7:
stur wzr, [x29, #-4]
b LBB0_9
LBB0_8:
ldur x8, [x29, #-16]
ldr x8, [x8]
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
stur wzr, [x29, #-4]
b LBB0_9
LBB0_9:
ldur w0, [x29, #-4]
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 "rb"
l_.str.1: ; @.str.1
.asciz "wb"
l_.str.2: ; @.str.2
.asciz "Could not open one of the files\n Usage: %s <source> <destinatio> <key>"
l_.str.3: ; @.str.3
.asciz "Usage: %s <source> <destinatio> <key>"
.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 $4, -8(%rbp)
jne LBB0_8
## %bb.1:
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 -16(%rbp), %rax
movq 24(%rax), %rdi
leaq L_.str(%rip), %rsi
callq _fopen
movq %rax, -40(%rbp)
cmpq $0, -24(%rbp)
je LBB0_3
## %bb.2:
cmpq $0, -40(%rbp)
jne LBB0_4
LBB0_3:
movq -16(%rbp), %rax
movq (%rax), %rsi
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -4(%rbp)
jmp LBB0_9
LBB0_4:
jmp LBB0_5
LBB0_5: ## =>This Inner Loop Header: Depth=1
leaq -41(%rbp), %rdi
movq -40(%rbp), %rcx
movl $1, %edx
movq %rdx, %rsi
callq _fread
cmpq $0, %rax
je LBB0_7
## %bb.6: ## in Loop: Header=BB0_5 Depth=1
leaq -43(%rbp), %rdi
movq -24(%rbp), %rcx
movl $1, %edx
movq %rdx, %rsi
callq _fread
movzbl -41(%rbp), %ecx
movzbl -43(%rbp), %eax
xorl %ecx, %eax
## kill: def $al killed $al killed $eax
movb %al, -43(%rbp)
leaq -43(%rbp), %rdi
movq -32(%rbp), %rcx
movl $1, %edx
movq %rdx, %rsi
callq _fwrite
jmp LBB0_5
LBB0_7:
movl $0, -4(%rbp)
jmp LBB0_9
LBB0_8:
movq -16(%rbp), %rax
movq (%rax), %rsi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
movl $0, -4(%rbp)
LBB0_9:
movl -4(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.section __TEXT,__cstring,cstring_literals
L_.str: ## @.str
.asciz "rb"
L_.str.1: ## @.str.1
.asciz "wb"
L_.str.2: ## @.str.2
.asciz "Could not open one of the files\n Usage: %s <source> <destinatio> <key>"
L_.str.3: ## @.str.3
.asciz "Usage: %s <source> <destinatio> <key>"
.subsections_via_symbols
| the_stack_data/103358.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _dcombssq_ ; -- Begin function dcombssq_
.p2align 2
_dcombssq_: ; @dcombssq_
.cfi_startproc
; %bb.0:
sub sp, sp, #32
.cfi_def_cfa_offset 32
str x0, [sp, #24]
str x1, [sp, #16]
ldr x8, [sp, #16]
subs x8, x8, #8
str x8, [sp, #16]
ldr x8, [sp, #24]
subs x8, x8, #8
str x8, [sp, #24]
ldr x8, [sp, #24]
ldr d0, [x8, #8]
ldr x8, [sp, #16]
ldr d1, [x8, #8]
fcmp d0, d1
cset w8, lt
tbnz w8, #0, LBB0_5
b LBB0_1
LBB0_1:
ldr x8, [sp, #24]
ldr d0, [x8, #8]
fcmp d0, #0.0
cset w8, eq
tbnz w8, #0, LBB0_3
b LBB0_2
LBB0_2:
ldr x8, [sp, #16]
ldr d0, [x8, #8]
ldr x8, [sp, #24]
ldr d1, [x8, #8]
fdiv d0, d0, d1
str d0, [sp, #8]
ldr d0, [sp, #8]
ldr d1, [sp, #8]
fmul d0, d0, d1
ldr x8, [sp, #16]
ldr d1, [x8, #16]
ldr x8, [sp, #24]
ldr d2, [x8, #16]
fmadd d0, d0, d1, d2
str d0, [x8, #16]
b LBB0_4
LBB0_3:
ldr x8, [sp, #16]
ldr d1, [x8, #16]
ldr x8, [sp, #24]
ldr d0, [x8, #16]
fadd d0, d0, d1
str d0, [x8, #16]
b LBB0_4
LBB0_4:
b LBB0_6
LBB0_5:
ldr x8, [sp, #24]
ldr d0, [x8, #8]
ldr x8, [sp, #16]
ldr d1, [x8, #8]
fdiv d0, d0, d1
str d0, [sp, #8]
ldr x8, [sp, #16]
ldr d2, [x8, #16]
ldr d0, [sp, #8]
ldr d1, [sp, #8]
fmul d0, d0, d1
ldr x8, [sp, #24]
ldr d1, [x8, #16]
fmadd d0, d0, d1, d2
ldr x8, [sp, #24]
str d0, [x8, #16]
ldr x8, [sp, #16]
ldr d0, [x8, #8]
ldr x8, [sp, #24]
str d0, [x8, #8]
b LBB0_6
LBB0_6:
mov w0, #0
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 _dcombssq_ ## -- Begin function dcombssq_
.p2align 4, 0x90
_dcombssq_: ## @dcombssq_
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
movq %rdi, -8(%rbp)
movq %rsi, -16(%rbp)
movq -16(%rbp), %rax
addq $-8, %rax
movq %rax, -16(%rbp)
movq -8(%rbp), %rax
addq $-8, %rax
movq %rax, -8(%rbp)
movq -8(%rbp), %rax
movsd 8(%rax), %xmm0 ## xmm0 = mem[0],zero
movq -16(%rbp), %rax
ucomisd 8(%rax), %xmm0
jb LBB0_5
## %bb.1:
movq -8(%rbp), %rax
movsd 8(%rax), %xmm0 ## xmm0 = mem[0],zero
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne LBB0_2
jp LBB0_2
jmp LBB0_3
LBB0_2:
movq -16(%rbp), %rax
movsd 8(%rax), %xmm0 ## xmm0 = mem[0],zero
movq -8(%rbp), %rax
divsd 8(%rax), %xmm0
movsd %xmm0, -24(%rbp)
movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero
mulsd -24(%rbp), %xmm0
movq -16(%rbp), %rax
movsd 16(%rax), %xmm2 ## xmm2 = mem[0],zero
movq -8(%rbp), %rax
movsd 16(%rax), %xmm1 ## xmm1 = mem[0],zero
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 16(%rax)
jmp LBB0_4
LBB0_3:
movq -16(%rbp), %rax
movsd 16(%rax), %xmm0 ## xmm0 = mem[0],zero
movq -8(%rbp), %rax
addsd 16(%rax), %xmm0
movsd %xmm0, 16(%rax)
LBB0_4:
jmp LBB0_6
LBB0_5:
movq -8(%rbp), %rax
movsd 8(%rax), %xmm0 ## xmm0 = mem[0],zero
movq -16(%rbp), %rax
divsd 8(%rax), %xmm0
movsd %xmm0, -24(%rbp)
movq -16(%rbp), %rax
movsd 16(%rax), %xmm1 ## xmm1 = mem[0],zero
movsd -24(%rbp), %xmm0 ## xmm0 = mem[0],zero
mulsd -24(%rbp), %xmm0
movq -8(%rbp), %rax
movsd 16(%rax), %xmm2 ## xmm2 = mem[0],zero
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq -8(%rbp), %rax
movsd %xmm0, 16(%rax)
movq -16(%rbp), %rax
movsd 8(%rax), %xmm0 ## xmm0 = mem[0],zero
movq -8(%rbp), %rax
movsd %xmm0, 8(%rax)
LBB0_6:
xorl %eax, %eax
popq %rbp
retq
.cfi_endproc
## -- End function
.subsections_via_symbols
| the_stack_data/97043.c |
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _input_array ; -- Begin function input_array
.p2align 2
_input_array: ; @input_array
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur w1, [x29, #-12]
str wzr, [sp, #16]
b LBB0_1
LBB0_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #16]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB0_4
b LBB0_2
LBB0_2: ; in Loop: Header=BB0_1 Depth=1
ldur x8, [x29, #-8]
ldrsw x9, [sp, #16]
add x8, x8, x9, lsl #2
mov x9, sp
str x8, [x9]
adrp x0, l_.str@PAGE
add x0, x0, l_.str@PAGEOFF
bl _scanf
b LBB0_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:
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.globl _print_array ; -- Begin function print_array
.p2align 2
_print_array: ; @print_array
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
stur x0, [x29, #-8]
stur w1, [x29, #-12]
str wzr, [sp, #16]
b LBB1_1
LBB1_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #16]
ldur w9, [x29, #-12]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB1_4
b LBB1_2
LBB1_2: ; in Loop: Header=BB1_1 Depth=1
ldur x8, [x29, #-8]
ldrsw x9, [sp, #16]
ldr w9, [x8, x9, lsl #2]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.1@PAGE
add x0, x0, l_.str.1@PAGEOFF
bl _printf
b LBB1_3
LBB1_3: ; in Loop: Header=BB1_1 Depth=1
ldr w8, [sp, #16]
add w8, w8, #1
str w8, [sp, #16]
b LBB1_1
LBB1_4:
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 _get_equilibrium_index ; -- Begin function get_equilibrium_index
.p2align 2
_get_equilibrium_index: ; @get_equilibrium_index
.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 w8, [x29, #-20]
mov w9, #1
str w9, [sp, #4] ; 4-byte Folded Spill
add w9, w8, #1
; implicit-def: $x8
mov x8, x9
sxtw x8, w8
lsl x0, x8, #2
bl _malloc
str x0, [sp, #16]
ldur w8, [x29, #-20]
add w9, w8, #1
; implicit-def: $x8
mov x8, x9
sxtw x8, w8
lsl x0, x8, #2
bl _malloc
ldr w8, [sp, #4] ; 4-byte Folded Reload
str x0, [sp, #8]
ldur x9, [x29, #-16]
ldr w9, [x9]
ldr x10, [sp, #16]
str w9, [x10]
ldur x9, [x29, #-16]
ldur w10, [x29, #-20]
subs w10, w10, #1
ldr w9, [x9, w10, sxtw #2]
ldr x10, [sp, #8]
str w9, [x10]
str w8, [sp, #24]
b LBB2_1
LBB2_1: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #24]
ldur w9, [x29, #-20]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_4
b LBB2_2
LBB2_2: ; in Loop: Header=BB2_1 Depth=1
ldr x8, [sp, #16]
ldr w9, [sp, #24]
subs w9, w9, #1
ldr w8, [x8, w9, sxtw #2]
ldur x9, [x29, #-16]
ldrsw x10, [sp, #24]
ldr w9, [x9, x10, lsl #2]
add w8, w8, w9
ldr x9, [sp, #16]
ldrsw x10, [sp, #24]
str w8, [x9, x10, lsl #2]
b LBB2_3
LBB2_3: ; in Loop: Header=BB2_1 Depth=1
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
b LBB2_1
LBB2_4:
mov w8, #1
str w8, [sp, #24]
b LBB2_5
LBB2_5: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #24]
ldur w9, [x29, #-20]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_8
b LBB2_6
LBB2_6: ; in Loop: Header=BB2_5 Depth=1
ldr x8, [sp, #8]
ldr w9, [sp, #24]
subs w9, w9, #1
ldr w8, [x8, w9, sxtw #2]
ldur x9, [x29, #-16]
ldur w10, [x29, #-20]
ldr w11, [sp, #24]
subs w10, w10, w11
subs w10, w10, #1
ldr w9, [x9, w10, sxtw #2]
add w8, w8, w9
ldr x9, [sp, #8]
ldrsw x10, [sp, #24]
str w8, [x9, x10, lsl #2]
b LBB2_7
LBB2_7: ; in Loop: Header=BB2_5 Depth=1
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
b LBB2_5
LBB2_8:
str wzr, [sp, #24]
b LBB2_9
LBB2_9: ; =>This Inner Loop Header: Depth=1
ldr w8, [sp, #24]
ldur w9, [x29, #-20]
subs w8, w8, w9
cset w8, ge
tbnz w8, #0, LBB2_14
b LBB2_10
LBB2_10: ; in Loop: Header=BB2_9 Depth=1
ldr x8, [sp, #16]
ldrsw x9, [sp, #24]
ldr w8, [x8, x9, lsl #2]
ldr x9, [sp, #8]
ldr w10, [sp, #24]
add w10, w10, #1
ldr w9, [x9, w10, sxtw #2]
subs w8, w8, w9
cset w8, ne
tbnz w8, #0, LBB2_12
b LBB2_11
LBB2_11:
ldr w8, [sp, #24]
stur w8, [x29, #-4]
b LBB2_15
LBB2_12: ; in Loop: Header=BB2_9 Depth=1
b LBB2_13
LBB2_13: ; in Loop: Header=BB2_9 Depth=1
ldr w8, [sp, #24]
add w8, w8, #1
str w8, [sp, #24]
b LBB2_9
LBB2_14:
mov w8, #-1
stur w8, [x29, #-4]
b LBB2_15
LBB2_15:
ldur w0, [x29, #-4]
ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
add sp, sp, #64
ret
.cfi_endproc
; -- End function
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.cfi_startproc
; %bb.0:
sub sp, sp, #48
.cfi_def_cfa_offset 48
stp x29, x30, [sp, #32] ; 16-byte Folded Spill
add x29, sp, #32
.cfi_def_cfa w29, 16
.cfi_offset w30, -8
.cfi_offset w29, -16
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
ldursw x8, [x29, #-8]
lsl x0, x8, #2
bl _malloc
str x0, [sp, #16]
ldr x0, [sp, #16]
ldur w1, [x29, #-8]
bl _input_array
ldr x0, [sp, #16]
ldur w1, [x29, #-8]
bl _get_equilibrium_index
str w0, [sp, #12]
ldr w8, [sp, #12]
adds w8, w8, #1
cset w8, eq
tbnz w8, #0, LBB3_2
b LBB3_1
LBB3_1:
ldr w9, [sp, #12]
; implicit-def: $x8
mov x8, x9
mov x9, sp
str x8, [x9]
adrp x0, l_.str.3@PAGE
add x0, x0, l_.str.3@PAGEOFF
bl _printf
b LBB3_3
LBB3_2:
adrp x0, l_.str.4@PAGE
add x0, x0, l_.str.4@PAGEOFF
bl _printf
b LBB3_3
LBB3_3:
mov w0, #0
ldp x29, x30, [sp, #32] ; 16-byte Folded Reload
add sp, sp, #48
ret
.cfi_endproc
; -- End function
.section __TEXT,__cstring,cstring_literals
l_.str: ; @.str
.asciz "%d"
l_.str.1: ; @.str.1
.asciz "%d "
l_.str.2: ; @.str.2
.asciz "\n"
l_.str.3: ; @.str.3
.asciz "\n%d is the equilibrium index\n"
l_.str.4: ; @.str.4
.asciz "\nThere is no equilibrium index\n"
.subsections_via_symbols
| .section __TEXT,__text,regular,pure_instructions
.build_version macos, 13, 0 sdk_version 13, 3
.globl _input_array ## -- Begin function input_array
.p2align 4, 0x90
_input_array: ## @input_array
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movl $0, -16(%rbp)
LBB0_1: ## =>This Inner Loop Header: Depth=1
movl -16(%rbp), %eax
cmpl -12(%rbp), %eax
jge LBB0_4
## %bb.2: ## in Loop: Header=BB0_1 Depth=1
movq -8(%rbp), %rsi
movslq -16(%rbp), %rax
shlq $2, %rax
addq %rax, %rsi
leaq L_.str(%rip), %rdi
movb $0, %al
callq _scanf
## %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:
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _print_array ## -- Begin function print_array
.p2align 4, 0x90
_print_array: ## @print_array
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $16, %rsp
movq %rdi, -8(%rbp)
movl %esi, -12(%rbp)
movl $0, -16(%rbp)
LBB1_1: ## =>This Inner Loop Header: Depth=1
movl -16(%rbp), %eax
cmpl -12(%rbp), %eax
jge LBB1_4
## %bb.2: ## in Loop: Header=BB1_1 Depth=1
movq -8(%rbp), %rax
movslq -16(%rbp), %rcx
movl (%rax,%rcx,4), %esi
leaq L_.str.1(%rip), %rdi
movb $0, %al
callq _printf
## %bb.3: ## in Loop: Header=BB1_1 Depth=1
movl -16(%rbp), %eax
addl $1, %eax
movl %eax, -16(%rbp)
jmp LBB1_1
LBB1_4:
leaq L_.str.2(%rip), %rdi
movb $0, %al
callq _printf
addq $16, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _get_equilibrium_index ## -- Begin function get_equilibrium_index
.p2align 4, 0x90
_get_equilibrium_index: ## @get_equilibrium_index
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $48, %rsp
movq %rdi, -16(%rbp)
movl %esi, -20(%rbp)
movl -20(%rbp), %eax
addl $1, %eax
movslq %eax, %rdi
shlq $2, %rdi
callq _malloc
movq %rax, -32(%rbp)
movl -20(%rbp), %eax
addl $1, %eax
movslq %eax, %rdi
shlq $2, %rdi
callq _malloc
movq %rax, -40(%rbp)
movq -16(%rbp), %rax
movl (%rax), %ecx
movq -32(%rbp), %rax
movl %ecx, (%rax)
movq -16(%rbp), %rax
movl -20(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %ecx
movq -40(%rbp), %rax
movl %ecx, (%rax)
movl $1, -24(%rbp)
LBB2_1: ## =>This Inner Loop Header: Depth=1
movl -24(%rbp), %eax
cmpl -20(%rbp), %eax
jge LBB2_4
## %bb.2: ## in Loop: Header=BB2_1 Depth=1
movq -32(%rbp), %rax
movl -24(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %edx
movq -16(%rbp), %rax
movslq -24(%rbp), %rcx
addl (%rax,%rcx,4), %edx
movq -32(%rbp), %rax
movslq -24(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
## %bb.3: ## in Loop: Header=BB2_1 Depth=1
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
jmp LBB2_1
LBB2_4:
movl $1, -24(%rbp)
LBB2_5: ## =>This Inner Loop Header: Depth=1
movl -24(%rbp), %eax
cmpl -20(%rbp), %eax
jge LBB2_8
## %bb.6: ## in Loop: Header=BB2_5 Depth=1
movq -40(%rbp), %rax
movl -24(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %edx
movq -16(%rbp), %rax
movl -20(%rbp), %ecx
subl -24(%rbp), %ecx
subl $1, %ecx
movslq %ecx, %rcx
addl (%rax,%rcx,4), %edx
movq -40(%rbp), %rax
movslq -24(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
## %bb.7: ## in Loop: Header=BB2_5 Depth=1
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
jmp LBB2_5
LBB2_8:
movl $0, -24(%rbp)
LBB2_9: ## =>This Inner Loop Header: Depth=1
movl -24(%rbp), %eax
cmpl -20(%rbp), %eax
jge LBB2_14
## %bb.10: ## in Loop: Header=BB2_9 Depth=1
movq -32(%rbp), %rax
movslq -24(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movq -40(%rbp), %rcx
movl -24(%rbp), %edx
addl $1, %edx
movslq %edx, %rdx
cmpl (%rcx,%rdx,4), %eax
jne LBB2_12
## %bb.11:
movl -24(%rbp), %eax
movl %eax, -4(%rbp)
jmp LBB2_15
LBB2_12: ## in Loop: Header=BB2_9 Depth=1
jmp LBB2_13
LBB2_13: ## in Loop: Header=BB2_9 Depth=1
movl -24(%rbp), %eax
addl $1, %eax
movl %eax, -24(%rbp)
jmp LBB2_9
LBB2_14:
movl $-1, -4(%rbp)
LBB2_15:
movl -4(%rbp), %eax
addq $48, %rsp
popq %rbp
retq
.cfi_endproc
## -- End function
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset %rbp, -16
movq %rsp, %rbp
.cfi_def_cfa_register %rbp
subq $32, %rsp
movl $0, -4(%rbp)
leaq L_.str(%rip), %rdi
leaq -8(%rbp), %rsi
movb $0, %al
callq _scanf
movslq -8(%rbp), %rdi
shlq $2, %rdi
callq _malloc
movq %rax, -16(%rbp)
movq -16(%rbp), %rdi
movl -8(%rbp), %esi
callq _input_array
movq -16(%rbp), %rdi
movl -8(%rbp), %esi
callq _get_equilibrium_index
movl %eax, -20(%rbp)
cmpl $-1, -20(%rbp)
je LBB3_2
## %bb.1:
movl -20(%rbp), %esi
leaq L_.str.3(%rip), %rdi
movb $0, %al
callq _printf
jmp LBB3_3
LBB3_2:
leaq L_.str.4(%rip), %rdi
movb $0, %al
callq _printf
LBB3_3:
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 "
L_.str.2: ## @.str.2
.asciz "\n"
L_.str.3: ## @.str.3
.asciz "\n%d is the equilibrium index\n"
L_.str.4: ## @.str.4
.asciz "\nThere is no equilibrium index\n"
.subsections_via_symbols
| the_stack_data/142094.c |
End of preview. Expand
in Dataset Viewer.
README.md exists but content is empty.
- Downloads last month
- 30