	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_current
_load_current:                          ## @load_current
	.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	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	(%rdx), %r14
	movl	8(%rdx), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	cmpl	$0, 20(%rdx)
	jne	LBB0_2
## %bb.1:
	movl	16(%r15), %esi
	leaq	L_.str(%rip), %rdi
	callq	_BUG
LBB0_2:
	movq	(%r12), %rax
	movq	(%rax), %rbx
	movq	%r14, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_index_name_pos
	testl	%eax, %eax
	js	LBB0_12
## %bb.3:
	movq	%r13, %rbx
	movq	(%r12), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %r13
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_lstat
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.5:
	movq	(%r12), %rax
	movq	(%rax), %rdi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rsi
	callq	_checkout_target
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_11
LBB0_6:
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_verify_index_match
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_error
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r14, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
LBB0_13:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error_errno                    ## TAILCALL
LBB0_8:
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rsp)
	leaq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r13, %rdx
	movq	%r15, %r8
	movq	%r14, %r9
	callq	_load_patch_target
	testl	%eax, %eax
	js	LBB0_11
## %bb.9:
	movl	$-1, %eax
	jne	LBB0_11
## %bb.10:
	leaq	-56(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	callq	_strbuf_detach
	movq	-72(%rbp), %rdx
	xorl	%ecx, %ecx
	cmpl	$0, 12(%r15)
	sete	%cl
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_prepare_image
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"patch to %s is not a creation"

L_.str.1:                               ## @.str.1
	.asciz	"%s: does not exist in index"

	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
L_.str.2:                               ## @.str.2
	.asciz	"%s"

L_.str.3:                               ## @.str.3
	.asciz	"%s: does not match index"

	.no_dead_strip	_load_current
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_current
_load_current:                          ; @load_current
	.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	x20, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	x21, [x2]
	ldr	w23, [x2, #8]
	ldr	w8, [x2, #20]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	w1, [x20, #16]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BUG
LBB0_2:
	ldr	x8, [x22]
	ldr	x24, [x8]
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	mov	x0, x24
	mov	x1, x21
	bl	_index_name_pos
	tbnz	w0, #31, LBB0_8
; %bb.3:
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x24, [x8, w0, uxtw #3]
	add	x1, sp, #8
	mov	x0, x21
	bl	_lstat
	cbz	x0, LBB0_6
; %bb.4:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _ENOENT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.5:
	ldr	x8, [x22]
	ldr	x0, [x8]
	add	x2, sp, #8
	mov	x1, x24
	bl	_checkout_target
	cbnz	x0, LBB0_12
LBB0_6:
	add	x2, sp, #8
	mov	x0, x22
	mov	x1, x24
	bl	_verify_index_match
	cbz	x0, LBB0_10
; %bb.7:
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	mov	x1, x21
	bl	_error
	b	LBB0_13
LBB0_8:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x21
	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
	b	_error
LBB0_9:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	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
	b	_error_errno
LBB0_10:
	add	x1, sp, #24
	add	x3, sp, #8
	mov	x0, x22
	mov	x2, x24
	mov	x4, x20
	mov	x5, x21
	mov	x6, x23
	bl	_load_patch_target
	tbnz	w0, #31, LBB0_13
; %bb.11:
	cbz	w0, LBB0_14
LBB0_12:
	mov	w0, #-1
LBB0_13:
	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_14:
	add	x0, sp, #24
	add	x1, sp, #16
	bl	_strbuf_detach
	mov	x1, x0
	ldr	x2, [sp, #16]
	ldr	w8, [x20, #12]
	cmp	w8, #0
	cset	w3, eq
	mov	x0, x19
	bl	_prepare_image
	mov	w0, #0
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"patch to %s is not a creation"

l_.str.1:                               ; @.str.1
	.asciz	"%s: does not exist in index"

	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
l_.str.2:                               ; @.str.2
	.asciz	"%s"

l_.str.3:                               ; @.str.3
	.asciz	"%s: does not match index"

	.no_dead_strip	_load_current
.subsections_via_symbols
