	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_merge_recursive_generic        ## -- Begin function merge_recursive_generic
	.p2align	4, 0x90
_merge_recursive_generic:               ## @merge_recursive_generic
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, %rbx
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movq	%rdi, %r13
	movq	_LOCK_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	8(%rdi), %rdi
	movl	20(%r13), %edx
	callq	_get_ref
	movq	%rax, %r12
	movq	8(%r13), %rdi
	movl	16(%r13), %edx
	movq	%r14, %rsi
	callq	_get_ref
	movq	%rax, %r14
	movq	$0, -80(%rbp)
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_7
## %bb.1:
	testl	%r15d, %r15d
	jle	LBB0_7
## %bb.2:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movl	%r15d, %r12d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rbx
	movq	8(%r13), %r14
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,8), %r13
	movq	%r13, %rdi
	callq	_oid_to_hex
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_get_ref
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rdi
	leaq	-80(%rbp), %rsi
	callq	_commit_list_insert
	incq	%r15
	cmpq	%r15, %r12
	movq	%rbx, %r13
	jne	LBB0_3
## %bb.5:
	cmpl	$1, -52(%rbp)                   ## 4-byte Folded Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%r13)
LBB0_7:
	movq	8(%r13), %rdi
	movq	_LOCK_DIE_ON_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rsi
	callq	_repo_hold_locked_index
	movq	-80(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%rbx, %r8
	callq	_merge_recursive
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	8(%r13), %rax
	movl	(%rax), %edi
	movq	_COMMIT_LOCK@GOTPCREL(%rip), %rax
	movq	_SKIP_IF_UNCHANGED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	leaq	-48(%rbp), %rsi
	callq	_write_locked_index
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	%r13, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_12
LBB0_8:
	leaq	-48(%rbp), %rdi
	callq	_rollback_lock_file
	jmp	LBB0_13
LBB0_14:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %r14d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,8), %rdi
	callq	_oid_to_hex
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_12
LBB0_11:
	xorl	%eax, %eax
	testl	%ebx, %ebx
	sete	%al
LBB0_12:
	movl	%eax, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOCK_INIT,4,2                  ## @LOCK_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not parse object '%s'"

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

	.comm	_LOCK_DIE_ON_ERROR,4,2          ## @LOCK_DIE_ON_ERROR
	.comm	_COMMIT_LOCK,4,2                ## @COMMIT_LOCK
	.comm	_SKIP_IF_UNCHANGED,4,2          ## @SKIP_IF_UNCHANGED
L_.str.2:                               ## @.str.2
	.asciz	"Unable to write index."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_merge_recursive_generic        ; -- Begin function merge_recursive_generic
	.p2align	2
_merge_recursive_generic:               ; @merge_recursive_generic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _LOCK_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOCK_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	x0, [x0, #8]
	ldr	w2, [x19, #20]
	bl	_get_ref
	mov	x21, x0
	ldr	x0, [x19, #8]
	ldr	w2, [x19, #16]
	mov	x1, x24
	bl	_get_ref
	mov	x24, x0
	str	xzr, [sp, #16]
	cbz	x22, LBB0_7
; %bb.1:
	cmp	w23, #1
	b.lt	LBB0_7
; %bb.2:
	mov	w27, w23
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x19, #8]
	ldr	x26, [x22]
	mov	x0, x26
	bl	_oid_to_hex
	mov	x2, x0
	mov	x0, x25
	mov	x1, x26
	bl	_get_ref
	cbz	x0, LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #16
	bl	_commit_list_insert
	add	x22, x22, #8
	subs	x27, x27, #1
	b.ne	LBB0_3
; %bb.5:
	cmp	w23, #1
	b.ne	LBB0_7
; %bb.6:
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x19]
LBB0_7:
	ldr	x0, [x19, #8]
Lloh5:
	adrp	x8, _LOCK_DIE_ON_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LOCK_DIE_ON_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x1, sp, #24
	bl	_repo_hold_locked_index
	ldr	x3, [sp, #16]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x24
	mov	x4, x20
	bl	_merge_recursive
	mov	x20, x0
	tbnz	w0, #31, LBB0_10
; %bb.8:
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _COMMIT_LOCK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _COMMIT_LOCK@GOTPAGEOFF]
	ldr	w0, [x8]
Lloh10:
	ldr	w8, [x9]
Lloh11:
	adrp	x9, _SKIP_IF_UNCHANGED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SKIP_IF_UNCHANGED@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w9, w8
	add	x1, sp, #24
	bl	_write_locked_index
	cbz	x0, LBB0_13
; %bb.9:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x19
	b	LBB0_12
LBB0_10:
	add	x0, sp, #24
	bl	_rollback_lock_file
	b	LBB0_14
LBB0_11:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x20, x0
	ldr	x0, [x22]
	bl	_oid_to_hex
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x19
	mov	x1, x20
LBB0_12:
	bl	_err
	mov	x20, x0
	b	LBB0_14
LBB0_13:
	cmp	w20, #0
	cset	w20, eq
LBB0_14:
	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
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_LOCK_INIT,4,2                  ; @LOCK_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not parse object '%s'"

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

	.comm	_LOCK_DIE_ON_ERROR,4,2          ; @LOCK_DIE_ON_ERROR
	.comm	_COMMIT_LOCK,4,2                ; @COMMIT_LOCK
	.comm	_SKIP_IF_UNCHANGED,4,2          ; @SKIP_IF_UNCHANGED
l_.str.2:                               ; @.str.2
	.asciz	"Unable to write index."

.subsections_via_symbols
