	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_patch_target
_load_patch_target:                     ## @load_patch_target
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	cmpq	$0, 8(%rdi)
	jne	LBB0_2
## %bb.1:
	cmpq	$0, (%rdi)
	je	LBB0_6
LBB0_2:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_read_file_or_gitlink
	testl	%eax, %eax
	je	LBB0_3
LBB0_4:
	leaq	L_.str(%rip), %rdi
LBB0_5:
	callq	__
	movl	%eax, %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
LBB0_3:
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_13
## %bb.7:
	movq	%r8, %r12
	movq	%rcx, %r13
	movl	16(%rbp), %edi
	callq	_S_ISGITLINK
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	testq	%r15, %r15
	je	LBB0_9
## %bb.14:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_read_file_or_gitlink           ## TAILCALL
LBB0_10:
	movq	%r14, %rdi
	callq	_strlen
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_has_symlink_leading_path
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_5
LBB0_9:
	movq	_SUBMODULE_PATCH_WITHOUT_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_12:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_read_old_data
	testq	%rax, %rax
	movl	$0, %eax
	jne	LBB0_4
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read %s"

	.comm	_SUBMODULE_PATCH_WITHOUT_INDEX,4,2 ## @SUBMODULE_PATCH_WITHOUT_INDEX
L_.str.1:                               ## @.str.1
	.asciz	"reading from '%s' beyond a symbolic link"

	.no_dead_strip	_load_patch_target
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_patch_target
_load_patch_target:                     ; @load_patch_target
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	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
	.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	x19, x5
	mov	x23, x2
	mov	x20, x1
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x0]
	cbz	x8, LBB0_5
LBB0_2:
	mov	x0, x23
	mov	x1, x20
	bl	_read_file_or_gitlink
	cbz	w0, LBB0_14
LBB0_3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	bl	__
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_error
LBB0_5:
	cbz	x19, LBB0_9
; %bb.6:
	mov	x21, x4
	mov	x22, x3
	mov	x0, x6
	bl	_S_ISGITLINK
	cbz	x0, LBB0_10
; %bb.7:
	cbz	x23, LBB0_12
; %bb.8:
	mov	x0, x23
	mov	x1, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_read_file_or_gitlink
LBB0_9:
	mov	w0, #0
	b	LBB0_14
LBB0_10:
	mov	x0, x19
	bl	_strlen
	mov	x1, x0
	mov	x0, x19
	bl	_has_symlink_leading_path
	cbz	x0, LBB0_13
; %bb.11:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_12:
Lloh4:
	adrp	x8, _SUBMODULE_PATCH_WITHOUT_INDEX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SUBMODULE_PATCH_WITHOUT_INDEX@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_13:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	mov	x3, x20
	bl	_read_old_data
	cbnz	x0, LBB0_3
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read %s"

	.comm	_SUBMODULE_PATCH_WITHOUT_INDEX,4,2 ; @SUBMODULE_PATCH_WITHOUT_INDEX
l_.str.1:                               ; @.str.1
	.asciz	"reading from '%s' beyond a symbolic link"

	.no_dead_strip	_load_patch_target
.subsections_via_symbols
