	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function three_way_merge
_three_way_merge:                       ## @three_way_merge
	.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	%r9, %r12
	movq	%r8, %rbx
	movq	%rdx, %r15
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	leaq	-48(%rbp), %rdi
	movq	%rcx, %rsi
	callq	_read_mmblob
	leaq	-104(%rbp), %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_read_mmblob
	leaq	-96(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_read_mmblob
	movq	(%r13), %rax
	movl	(%rax), %eax
	leaq	L_.str.2(%rip), %r10
	leaq	L_.str(%rip), %rcx
	leaq	L_.str.1(%rip), %r9
	leaq	-80(%rbp), %rdi
	movq	%r15, %rsi
	leaq	-48(%rbp), %rdx
	movq	%r14, %r8
	pushq	$0
	pushq	%rax
	pushq	%r10
	pushq	%rbx
	callq	_ll_merge
	addq	$32, %rsp
	movl	%eax, %r14d
	movq	-48(%rbp), %rdi
	callq	_free
	movq	-104(%rbp), %rdi
	callq	_free
	movq	-96(%rbp), %rdi
	callq	_free
	movq	-72(%rbp), %rdi
	testl	%r14d, %r14d
	js	LBB0_2
## %bb.1:
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.3:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_clear_image
	movq	-72(%rbp), %rax
	movq	%rax, 8(%rbx)
	movl	-80(%rbp), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_4
LBB0_2:
	callq	_free
	movl	$-1, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"base"

L_.str.1:                               ## @.str.1
	.asciz	"ours"

L_.str.2:                               ## @.str.2
	.asciz	"theirs"

	.no_dead_strip	_three_way_merge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function three_way_merge
_three_way_merge:                       ; @three_way_merge
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x5
	mov	x21, x4
	mov	x22, x2
	mov	x19, x1
	mov	x23, x0
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #32]
	add	x0, sp, #56
	mov	x1, x3
	bl	_read_mmblob
	add	x0, sp, #48
	mov	x1, x21
	bl	_read_mmblob
	add	x0, sp, #40
	mov	x1, x20
	bl	_read_mmblob
	ldr	x8, [x23]
	ldr	w8, [x8]
	str	xzr, [sp, #8]
	str	w8, [sp]
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
Lloh2:
	adrp	x5, l_.str.1@PAGE
Lloh3:
	add	x5, x5, l_.str.1@PAGEOFF
Lloh4:
	adrp	x7, l_.str.2@PAGE
Lloh5:
	add	x7, x7, l_.str.2@PAGEOFF
	add	x0, sp, #16
	add	x2, sp, #56
	add	x4, sp, #48
	add	x6, sp, #40
	mov	x1, x22
	bl	_ll_merge
	mov	x20, x0
	ldr	x0, [sp, #56]
	bl	_free
	ldr	x0, [sp, #48]
	bl	_free
	ldr	x0, [sp, #40]
	bl	_free
	ldr	x0, [sp, #24]
	tbnz	w20, #31, LBB0_3
; %bb.1:
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_clear_image
	ldr	x8, [sp, #24]
	str	x8, [x19, #8]
	ldr	w8, [sp, #16]
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
	bl	_free
	mov	w20, #-1
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"base"

l_.str.1:                               ; @.str.1
	.asciz	"ours"

l_.str.2:                               ; @.str.2
	.asciz	"theirs"

	.no_dead_strip	_three_way_merge
.subsections_via_symbols
