	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function try_threeway
_try_threeway:                          ## @try_threeway
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	$-1, %ebx
	cmpq	$0, 56(%rdx)
	jne	LBB0_30
## %bb.1:
	movq	%r8, %r13
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	40(%rdx), %edi
	callq	_S_ISGITLINK
	testq	%rax, %rax
	jne	LBB0_30
## %bb.2:
	movl	48(%r15), %edi
	callq	_S_ISGITLINK
	testq	%rax, %rax
	je	LBB0_3
LBB0_30:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpq	$0, 32(%r15)
	je	LBB0_9
## %bb.4:
	movq	_blob_type@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	leaq	-48(%rbp), %rcx
	xorl	%esi, %esi
	callq	_write_object_file
LBB0_5:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_verbosity_silent@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_7
## %bb.6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	-100(%rbp), %edi                ## 4-byte Reload
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_7:
	leaq	-64(%rbp), %rdi
	leaq	-112(%rbp), %rsi
	callq	_strbuf_detach
	movq	-112(%rbp), %rdx
	leaq	-88(%rbp), %rdi
	movq	%rax, %rsi
	movl	$1, %ecx
	callq	_prepare_image
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	-88(%rbp), %rsi
	movq	%r15, %rdx
	callq	_apply_fragments
	testq	%rax, %rax
	js	LBB0_8
## %bb.12:
	movq	-88(%rbp), %rdi
	movl	-80(%rbp), %esi
	movq	_blob_type@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	-72(%rbp), %rcx
	callq	_write_object_file
	leaq	-88(%rbp), %rdi
	callq	_clear_image
	cmpq	$0, 32(%r15)
	je	LBB0_16
## %bb.13:
	leaq	-88(%rbp), %rsi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_load_current
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	(%r15), %rsi
	jmp	LBB0_15
LBB0_9:
	movl	44(%r15), %edi
	leaq	-48(%rbp), %rsi
	callq	_get_oid
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movl	40(%r15), %edx
	leaq	-64(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_read_blob_object
	testq	%rax, %rax
	je	LBB0_5
LBB0_11:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_error
	movl	%eax, %ebx
	jmp	LBB0_30
LBB0_8:
	leaq	-88(%rbp), %rdi
	callq	_clear_image
	jmp	LBB0_30
LBB0_16:
	leaq	-88(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%r14, %rcx
	movq	%rdi, %r14
	movq	%r13, %r8
	callq	_load_preimage
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	8(%r15), %rsi
LBB0_15:
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_error
	movl	%eax, %ebx
	jmp	LBB0_30
LBB0_18:
	movq	-88(%rbp), %rdi
	movl	-80(%rbp), %esi
	movl	(%rbx), %edx
	leaq	-96(%rbp), %rbx
	movq	%rbx, %rcx
	callq	_write_object_file
	leaq	-88(%rbp), %rdi
	callq	_clear_image
	movq	(%r15), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-72(%rbp), %r9
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rbx, %r8
	callq	_three_way_merge
	testl	%eax, %eax
	js	LBB0_19
## %bb.21:
	je	LBB0_27
## %bb.22:
	movl	$1, 16(%r15)
	cmpq	$0, 32(%r15)
	movq	24(%r15), %rdi
	je	LBB0_24
## %bb.23:
	callq	_oidclr
	jmp	LBB0_25
LBB0_19:
	movl	%eax, %ebx
	movq	(%r14), %rax
	movq	_verbosity_silent@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_30
## %bb.20:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movl	%r14d, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_30
LBB0_27:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	xorl	%ebx, %ebx
	movq	_verbosity_silent@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_30
## %bb.28:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_29
LBB0_24:
	leaq	-48(%rbp), %rsi
	callq	_oidcpy
LBB0_25:
	movq	_verbosity_silent@GOTPCREL(%rip), %r14
	movq	24(%r15), %rdi
	addq	$4, %rdi
	leaq	-96(%rbp), %rsi
	callq	_oidcpy
	movq	24(%r15), %rdi
	addq	$8, %rdi
	leaq	-72(%rbp), %rsi
	callq	_oidcpy
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	xorl	%ebx, %ebx
	cmpq	(%r14), %rax
	jle	LBB0_30
## %bb.26:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.5(%rip), %rdi
LBB0_29:
	callq	__
	movq	(%r15), %rdx
	xorl	%ebx, %ebx
	movl	%r14d, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_blob_type,4,2                  ## @blob_type
L_.str.1:                               ## @.str.1
	.asciz	"repository lacks the necessary blob to fall back on 3-way merge."

	.comm	_verbosity_silent,8,3           ## @verbosity_silent
	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"Falling back to three-way merge...\n"

L_.str.3:                               ## @.str.3
	.asciz	"cannot read the current contents of '%s'"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to fall back on three-way merge...\n"

L_.str.5:                               ## @.str.5
	.asciz	"Applied patch to '%s' with conflicts.\n"

L_.str.6:                               ## @.str.6
	.asciz	"Applied patch to '%s' cleanly.\n"

	.no_dead_strip	_try_threeway
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function try_threeway
_try_threeway:                          ; @try_threeway
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x8, [x2, #56]
Lloh0:
	adrp	x9, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [sp, #32]
	cbnz	x8, LBB0_3
; %bb.1:
	mov	x22, x4
	mov	x23, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x2, #40]
	bl	_S_ISGITLINK
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x19, #48]
	bl	_S_ISGITLINK
	cbz	x0, LBB0_5
LBB0_3:
	mov	w21, #-1
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_5:
	ldr	x8, [x19, #32]
Lloh3:
	adrp	x26, _blob_type@GOTPAGE
Lloh4:
	ldr	x26, [x26, _blob_type@GOTPAGEOFF]
	cbz	x8, LBB0_13
; %bb.6:
	ldr	w2, [x26]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	add	x3, sp, #56
	mov	w1, #0
	bl	_write_object_file
LBB0_7:
	ldr	x8, [x20]
Lloh7:
	adrp	x25, _verbosity_silent@GOTPAGE
Lloh8:
	ldr	x25, [x25, _verbosity_silent@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.le	LBB0_9
; %bb.8:
Lloh9:
	adrp	x8, _stderr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh11:
	ldr	w24, [x8]
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x24
	bl	_fprintf
LBB0_9:
	add	x0, sp, #32
	add	x1, sp, #24
	bl	_strbuf_detach
	mov	x1, x0
	ldr	x2, [sp, #24]
	add	x0, sp, #8
	mov	w3, #1
	bl	_prepare_image
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x19
	bl	_apply_fragments
	tbnz	x0, #63, LBB0_16
; %bb.10:
	ldr	x0, [sp, #8]
	ldr	w1, [sp, #16]
	ldr	w2, [x26]
	add	x3, sp, #48
	bl	_write_object_file
	add	x0, sp, #8
	bl	_clear_image
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_17
; %bb.11:
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x19
	bl	_load_current
	cbz	x0, LBB0_21
; %bb.12:
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	ldr	x8, [x19]
	b	LBB0_19
LBB0_13:
	ldr	w0, [x19, #44]
	add	x1, sp, #56
	bl	_get_oid
	cbnz	x0, LBB0_15
; %bb.14:
	ldr	w2, [x19, #40]
	add	x0, sp, #32
	add	x1, sp, #56
	bl	_read_blob_object
	cbz	x0, LBB0_7
LBB0_15:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	b	LBB0_20
LBB0_16:
	add	x0, sp, #8
	bl	_clear_image
	mov	w21, #-1
	b	LBB0_4
LBB0_17:
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x19
	mov	x3, x23
	mov	x4, x22
	bl	_load_preimage
	cbz	x0, LBB0_21
; %bb.18:
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	ldr	x8, [x19, #8]
LBB0_19:
	str	x8, [sp]
LBB0_20:
	bl	_error
	mov	x21, x0
	b	LBB0_4
LBB0_21:
	ldr	x0, [sp, #8]
	ldr	w1, [sp, #16]
	ldr	w2, [x26]
	add	x3, sp, #40
	bl	_write_object_file
	add	x0, sp, #8
	bl	_clear_image
	ldr	x2, [x19]
	add	x3, sp, #56
	add	x4, sp, #40
	add	x5, sp, #48
	mov	x0, x20
	mov	x1, x21
	bl	_three_way_merge
	mov	x21, x0
	tbnz	w0, #31, LBB0_25
; %bb.22:
	cbz	w21, LBB0_27
; %bb.23:
	mov	w8, #1
	str	w8, [x19, #16]
	ldp	x0, x8, [x19, #24]
	cbz	x8, LBB0_29
; %bb.24:
	bl	_oidclr
	b	LBB0_30
LBB0_25:
	ldr	x8, [x20]
	ldr	x9, [x25]
	cmp	x8, x9
	b.le	LBB0_4
; %bb.26:
Lloh20:
	adrp	x8, _stderr@GOTPAGE
Lloh21:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh22:
	ldr	w19, [x8]
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x19
	bl	_fprintf
	b	LBB0_4
LBB0_27:
	ldr	x8, [x20]
	ldr	x9, [x25]
	cmp	x8, x9
	b.le	LBB0_33
; %bb.28:
Lloh25:
	adrp	x8, _stderr@GOTPAGE
Lloh26:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh27:
	ldr	w20, [x8]
Lloh28:
	adrp	x0, l_.str.6@PAGE
Lloh29:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_32
LBB0_29:
	add	x1, sp, #56
	bl	_oidcpy
LBB0_30:
	ldr	x8, [x19, #24]
	add	x0, x8, #4
	add	x1, sp, #40
	bl	_oidcpy
	ldr	x8, [x19, #24]
	add	x0, x8, #8
	add	x1, sp, #48
	bl	_oidcpy
	ldr	x8, [x20]
	ldr	x9, [x25]
	cmp	x8, x9
	b.le	LBB0_33
; %bb.31:
Lloh30:
	adrp	x8, _stderr@GOTPAGE
Lloh31:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh32:
	ldr	w20, [x8]
Lloh33:
	adrp	x0, l_.str.5@PAGE
Lloh34:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_32:
	bl	__
	mov	x1, x0
	ldr	x8, [x19]
	str	x8, [sp]
	mov	x0, x20
	bl	_fprintf
LBB0_33:
	mov	w21, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_blob_type,4,2                  ; @blob_type
l_.str.1:                               ; @.str.1
	.asciz	"repository lacks the necessary blob to fall back on 3-way merge."

	.comm	_verbosity_silent,8,3           ; @verbosity_silent
	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"Falling back to three-way merge...\n"

l_.str.3:                               ; @.str.3
	.asciz	"cannot read the current contents of '%s'"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to fall back on three-way merge...\n"

l_.str.5:                               ; @.str.5
	.asciz	"Applied patch to '%s' with conflicts.\n"

l_.str.6:                               ; @.str.6
	.asciz	"Applied patch to '%s' cleanly.\n"

	.no_dead_strip	_try_threeway
.subsections_via_symbols
