	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function checkout_merged
_checkout_merged:                       ## @checkout_merged
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_active_cache@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %r12
	movq	(%rax,%r12,8), %r14
	movq	(%r14), %r15
	leaq	-64(%rbp), %rdi
	movl	$0, -68(%rbp)                   ## 4-byte Folded Spill
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_active_nr@GOTPCREL(%rip), %r13
	cmpl	%r12d, (%r13)
	jle	LBB0_7
## %bb.1:
	movl	$0, -68(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_active_cache@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax,%r12,8), %r14
	incq	%r12
	movslq	(%r13), %rax
	cmpq	%rax, %r12
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_ce_stage
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ebx
	movq	(%r14), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ebx, %rax
	leaq	-68(,%rax,4), %rdi
	addq	%rbp, %rdi
	leaq	12(%r14), %rsi
	callq	_oidcpy
	cmpl	$2, %ebx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r14), %edi
	callq	_create_ce_mode
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	jmp	LBB0_6
LBB0_7:
	leaq	-60(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_is_null_oid
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	leaq	-56(%rbp), %r14
	movq	%r14, %rdi
	callq	_is_null_oid
	testq	%rax, %rax
	je	LBB0_11
LBB0_9:
	leaq	L_.str(%rip), %rdi
LBB0_10:
	callq	__
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_error
	movl	%eax, %ebx
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	-112(%rbp), %r13
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	callq	_read_mmblob
	leaq	-104(%rbp), %r12
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_read_mmblob
	leaq	-96(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_read_mmblob
	movq	-128(%rbp), %r14                ## 8-byte Reload
	movl	(%r14), %eax
	leaq	L_.str.3(%rip), %r10
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str.2(%rip), %r9
	leaq	-80(%rbp), %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	movq	%r12, %r8
	pushq	$0
	pushq	%rax
	pushq	%r10
	pushq	%rbx
	callq	_ll_merge
	addq	$32, %rsp
	movl	%eax, %ebx
	movl	-112(%rbp), %edi
	callq	_free
	movl	-104(%rbp), %edi
	callq	_free
	movl	-96(%rbp), %edi
	callq	_free
	movl	-80(%rbp), %edi
	testl	%ebx, %ebx
	js	LBB0_13
## %bb.12:
	testl	%edi, %edi
	je	LBB0_13
## %bb.14:
	movq	%r14, %rbx
	movl	-76(%rbp), %esi
	movq	_blob_type@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-88(%rbp), %rcx
	callq	_write_object_file
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_die
LBB0_16:
	movl	-80(%rbp), %edi
	callq	_free
	leaq	-88(%rbp), %rsi
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rdx
	movl	$2, %ecx
	callq	_make_transient_cache_entry
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:
	leaq	L_.str.6(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_die
LBB0_18:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	callq	_checkout_entry
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_discard_cache_entry
	jmp	LBB0_19
LBB0_13:
	callq	_free
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_10
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_active_cache,8,3               ## @active_cache
	.comm	_active_nr,4,2                  ## @active_nr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"path '%s' does not have necessary versions"

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

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

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

L_.str.4:                               ## @.str.4
	.asciz	"path '%s': cannot merge"

	.comm	_blob_type,4,2                  ## @blob_type
L_.str.5:                               ## @.str.5
	.asciz	"Unable to add merge result for '%s'"

L_.str.6:                               ## @.str.6
	.asciz	"make_cache_entry failed for path '%s'"

	.no_dead_strip	_checkout_merged
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function checkout_merged
_checkout_merged:                       ; @checkout_merged
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x24, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
Lloh3:
	adrp	x26, _active_cache@GOTPAGE
Lloh4:
	ldr	x26, [x26, _active_cache@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	x23, [x8, w0, sxtw #3]
	ldr	x19, [x23]
	add	x25, sp, #56
	add	x0, sp, #56
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	mov	w22, #0
Lloh5:
	adrp	x27, _active_nr@GOTPAGE
Lloh6:
	ldr	x27, [x27, _active_nr@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, w24
	b.le	LBB0_7
; %bb.1:
	mov	w22, #0
	sxtw	x28, w24
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x26]
	add	x8, x8, x28, lsl #3
	add	x9, x28, #1
	ldr	x23, [x8, #8]
	ldrsw	x8, [x27]
	mov	x28, x9
	cmp	x9, x8
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_ce_stage
	cbz	w0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x0
	ldr	x1, [x23]
	mov	x0, x19
	bl	_strcmp
	cbnz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x25, w24, sxtw #2
	sub	x0, x8, #4
	add	x1, x23, #12
	bl	_oidcpy
	cmp	w24, #2
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x23, #8]
	bl	_create_ce_mode
	mov	x22, x0
	b	LBB0_2
LBB0_7:
	orr	x23, x25, #0x4
	mov	x0, x23
	bl	_is_null_oid
	cbnz	x0, LBB0_9
; %bb.8:
	add	x8, sp, #56
	add	x24, x8, #8
	mov	x0, x24
	bl	_is_null_oid
	cbz	x0, LBB0_13
LBB0_9:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
LBB0_10:
	bl	__
	mov	x1, x19
	bl	_error
	mov	x19, x0
LBB0_11:
	ldr	x8, [sp, #72]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.12:
	mov	x0, x19
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_13:
	add	x0, sp, #48
	add	x1, sp, #56
	bl	_read_mmblob
	add	x0, sp, #40
	mov	x1, x23
	bl	_read_mmblob
	add	x0, sp, #32
	mov	x1, x24
	bl	_read_mmblob
	ldr	w8, [x21]
	str	xzr, [sp, #8]
	str	w8, [sp]
Lloh12:
	adrp	x3, l_.str.1@PAGE
Lloh13:
	add	x3, x3, l_.str.1@PAGEOFF
Lloh14:
	adrp	x5, l_.str.2@PAGE
Lloh15:
	add	x5, x5, l_.str.2@PAGEOFF
Lloh16:
	adrp	x7, l_.str.3@PAGE
Lloh17:
	add	x7, x7, l_.str.3@PAGEOFF
	add	x0, sp, #16
	add	x2, sp, #48
	add	x4, sp, #40
	add	x6, sp, #32
	mov	x1, x19
	bl	_ll_merge
	mov	x23, x0
	ldr	w0, [sp, #48]
	bl	_free
	ldr	w0, [sp, #40]
	bl	_free
	ldr	w0, [sp, #32]
	bl	_free
	ldr	w0, [sp, #16]
	tbnz	w23, #31, LBB0_20
; %bb.14:
	cbz	w0, LBB0_20
; %bb.15:
	ldr	w1, [sp, #20]
Lloh18:
	adrp	x8, _blob_type@GOTPAGE
Lloh19:
	ldr	x8, [x8, _blob_type@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	add	x3, sp, #24
	bl	_write_object_file
	cbz	x0, LBB0_17
; %bb.16:
Lloh21:
	adrp	x0, l_.str.5@PAGE
Lloh22:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	mov	x1, x19
	bl	_die
LBB0_17:
	ldr	w0, [sp, #16]
	bl	_free
	add	x1, sp, #24
	mov	x0, x22
	mov	x2, x19
	mov	w3, #2
	bl	_make_transient_cache_entry
	mov	x22, x0
	cbnz	x0, LBB0_19
; %bb.18:
Lloh23:
	adrp	x0, l_.str.6@PAGE
Lloh24:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	mov	x1, x19
	bl	_die
LBB0_19:
	mov	x0, x22
	mov	x1, x21
	mov	x2, #0
	mov	x3, x20
	bl	_checkout_entry
	mov	x19, x0
	mov	x0, x22
	bl	_discard_cache_entry
	b	LBB0_11
LBB0_20:
	bl	_free
Lloh25:
	adrp	x0, l_.str.4@PAGE
Lloh26:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_10
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_active_cache,8,3               ; @active_cache
	.comm	_active_nr,4,2                  ; @active_nr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"path '%s' does not have necessary versions"

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

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

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

l_.str.4:                               ; @.str.4
	.asciz	"path '%s': cannot merge"

	.comm	_blob_type,4,2                  ; @blob_type
l_.str.5:                               ; @.str.5
	.asciz	"Unable to add merge result for '%s'"

l_.str.6:                               ; @.str.6
	.asciz	"make_cache_entry failed for path '%s'"

	.no_dead_strip	_checkout_merged
.subsections_via_symbols
