	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LoadImageFile                  ## -- Begin function LoadImageFile
	.p2align	4, 0x90
_LoadImageFile:                         ## @LoadImageFile
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	$0, -24(%rbp)
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsi)
	callq	_FileExists
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_LoadFileBlock
	movq	-24(%rbp), %rax
	testq	%rax, %rax
	jne	LBB0_7
LBB0_2:
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	movw	$28778, -3(%rax,%rbx)           ## imm = 0x706A
	movb	$103, -1(%rax,%rbx)
	movq	%rbx, %rdi
	callq	_FileExists
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_LoadFileBlock
LBB0_4:
	movq	-24(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	_qfalse@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r14)
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_qfalse,4,2                     ## @qfalse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LoadImageFile                  ; -- Begin function LoadImageFile
	.p2align	2
_LoadImageFile:                         ; @LoadImageFile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _qtrue@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1]
	bl	_FileExists
	cbz	x0, LBB0_2
; %bb.1:
	add	x1, sp, #8
	mov	x0, x20
	bl	_LoadFileBlock
	ldr	x0, [sp, #8]
	cbnz	x0, LBB0_6
LBB0_2:
	mov	x0, x20
	bl	_strlen
	add	x8, x20, w0, sxtw
	mov	w9, #28778
	sturh	w9, [x8, #-3]
	mov	w9, #103
	sturb	w9, [x8, #-1]
	mov	x0, x20
	bl	_FileExists
	cbz	x0, LBB0_4
; %bb.3:
	add	x1, sp, #8
	mov	x0, x20
	bl	_LoadFileBlock
LBB0_4:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_6
; %bb.5:
Lloh3:
	adrp	x8, _qfalse@GOTPAGE
Lloh4:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_qfalse,4,2                     ; @qfalse
.subsections_via_symbols
