	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_preimage
_load_preimage:                         ## @load_preimage
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, %r15
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	leaq	-52(%rbp), %rdx
	movq	%r13, %rsi
	callq	_previous_patch
	cmpl	$0, -52(%rbp)
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
	callq	__
	movl	4(%r13), %esi
	movl	%eax, %edi
	callq	_error
	jmp	LBB0_6
LBB0_3:
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movl	20(%rax), %edx
	movl	24(%rax), %esi
	leaq	-48(%rbp), %rdi
	callq	_strbuf_add
LBB0_5:
	leaq	-48(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	callq	_strbuf_detach
	movq	-64(%rbp), %rdx
	xorl	%ecx, %ecx
	cmpl	$0, (%r13)
	sete	%cl
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_prepare_image
	xorl	%eax, %eax
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	4(%r13), %r9d
	movl	16(%r13), %eax
	movl	%eax, (%rsp)
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	movq	%r15, %rcx
	movq	%r13, %r8
	callq	_load_patch_target
	movl	%eax, -52(%rbp)
	testl	%eax, %eax
	js	LBB0_6
## %bb.8:
	movq	_SUBMODULE_PATCH_WITHOUT_INDEX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.9:
	movq	8(%r13), %rdi
	callq	_free_fragment_list
	movq	$0, 8(%r13)
	jmp	LBB0_5
LBB0_10:
	testl	%eax, %eax
	je	LBB0_5
## %bb.11:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"path %s has been renamed/deleted"

	.comm	_SUBMODULE_PATCH_WITHOUT_INDEX,4,2 ## @SUBMODULE_PATCH_WITHOUT_INDEX
L_.str.1:                               ## @.str.1
	.asciz	"failed to read %s"

	.no_dead_strip	_load_preimage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_preimage
_load_preimage:                         ; @load_preimage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x4
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	add	x2, sp, #12
	mov	x1, x19
	bl	_previous_patch
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_3
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	bl	__
	ldr	w1, [x19, #4]
	bl	_error
	b	LBB0_6
LBB0_3:
	cbz	x0, LBB0_7
; %bb.4:
	ldp	w2, w1, [x0, #20]
	add	x0, sp, #24
	bl	_strbuf_add
LBB0_5:
	add	x0, sp, #24
	add	x1, sp, #16
	bl	_strbuf_detach
	mov	x1, x0
	ldr	x2, [sp, #16]
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w3, eq
	mov	x0, x20
	bl	_prepare_image
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	ldr	w5, [x19, #4]
	ldr	w6, [x19, #16]
	add	x1, sp, #24
	mov	x0, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x19
	bl	_load_patch_target
	str	w0, [sp, #12]
	tbnz	w0, #31, LBB0_6
; %bb.8:
Lloh5:
	adrp	x8, _SUBMODULE_PATCH_WITHOUT_INDEX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SUBMODULE_PATCH_WITHOUT_INDEX@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.9:
	ldr	x0, [x19, #8]
	bl	_free_fragment_list
	str	xzr, [x19, #8]
	b	LBB0_5
LBB0_10:
	cbz	w0, LBB0_5
; %bb.11:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"path %s has been renamed/deleted"

	.comm	_SUBMODULE_PATCH_WITHOUT_INDEX,4,2 ; @SUBMODULE_PATCH_WITHOUT_INDEX
l_.str.1:                               ; @.str.1
	.asciz	"failed to read %s"

	.no_dead_strip	_load_preimage
.subsections_via_symbols
