	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_recursive_merge
_do_recursive_merge:                    ## @do_recursive_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, %r15
	movq	%r8, %r14
	movq	%rcx, %r12
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	_LOCK_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_LOCK_REPORT_ON_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rsi
	callq	_repo_hold_locked_index
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	24(%rbp), %r15
	movq	%rbx, %rdi
	callq	_repo_read_index
	leaq	-112(%rbp), %rdi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_init_merge_options
	testq	%r13, %r13
	leaq	L_.str(%rip), %rax
	cmoveq	%rax, %r12
	movq	%r12, -112(%rbp)
	leaq	L_.str.1(%rip), %rcx
	movq	%rcx, -104(%rbp)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	cmoveq	%rax, %r14
	movq	%r14, -96(%rbp)
	movq	%r15, %rdi
	callq	_is_rebase_i
	testq	%rax, %rax
	movq	%r13, %r14
	je	LBB0_4
## %bb.3:
	movl	$2, -88(%rbp)
LBB0_4:
	movl	$1, -84(%rbp)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_parse_tree_indirect
	testq	%rbx, %rbx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_get_commit_tree
	jmp	LBB0_7
LBB0_1:
	movl	$-1, %eax
	jmp	LBB0_23
LBB0_6:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_empty_tree
LBB0_7:
	movq	%rax, %r13
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_get_commit_tree
	jmp	LBB0_10
LBB0_9:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_empty_tree
LBB0_10:
	movq	%rax, %r14
	cmpl	$0, 8(%r15)
	je	LBB0_13
## %bb.11:
	movq	(%r15), %r12
	leaq	-112(%rbp), %rbx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rsi
	movq	%rbx, %rdi
	callq	_parse_merge_opt
	addq	$8, %r12
	movslq	8(%r15), %rax
	shlq	$3, %rax
	addq	(%r15), %rax
	cmpq	%rax, %r12
	jne	LBB0_12
LBB0_13:
	leaq	-112(%rbp), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_merge_trees
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_is_rebase_i
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	testl	%ebx, %ebx
	jg	LBB0_16
## %bb.15:
	movl	-80(%rbp), %edi
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fputs
LBB0_16:
	leaq	-80(%rbp), %rdi
	callq	_strbuf_release
	testl	%ebx, %ebx
	js	LBB0_17
## %bb.18:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	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_20
## %bb.19:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_action_name
	movq	%rax, %rdi
	callq	__
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_error
	jmp	LBB0_23
LBB0_17:
	leaq	-48(%rbp), %rdi
	callq	_rollback_lock_file
	movl	%ebx, %eax
	jmp	LBB0_23
LBB0_20:
	testl	%ebx, %ebx
	jne	LBB0_22
## %bb.21:
	movq	16(%rbp), %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	12(%r15), %edx
	callq	_append_conflicts_hint
LBB0_22:
	xorl	%eax, %eax
	testl	%ebx, %ebx
	sete	%al
LBB0_23:
	addq	$72, %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
	.comm	_LOCK_REPORT_ON_ERROR,4,2       ## @LOCK_REPORT_ON_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(empty tree)"

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

	.comm	_stdout,4,2                     ## @stdout
	.comm	_COMMIT_LOCK,4,2                ## @COMMIT_LOCK
	.comm	_SKIP_IF_UNCHANGED,4,2          ## @SKIP_IF_UNCHANGED
L_.str.2:                               ## @.str.2
	.asciz	"%s: Unable to write new index file"

	.no_dead_strip	_do_recursive_merge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_recursive_merge
_do_recursive_merge:                    ; @do_recursive_merge
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x19, x7
	mov	x20, x6
	mov	x23, x5
	mov	x25, x4
	mov	x26, x3
	mov	x24, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _LOCK_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOCK_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp]
Lloh3:
	adrp	x8, _LOCK_REPORT_ON_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOCK_REPORT_ON_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, sp
	bl	_repo_hold_locked_index
	tbnz	x0, #63, LBB0_6
; %bb.1:
	mov	x0, x21
	bl	_repo_read_index
	add	x0, sp, #8
	mov	x1, x21
	bl	_init_merge_options
Lloh6:
	adrp	x8, l_.str@PAGE
Lloh7:
	add	x8, x8, l_.str@PAGEOFF
Lloh8:
	adrp	x9, l_.str.1@PAGE
Lloh9:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	x22, #0
	csel	x10, x8, x26, eq
	stp	x10, x9, [sp, #8]
	cmp	x24, #0
	csel	x8, x8, x25, eq
	str	x8, [sp, #24]
	mov	x0, x19
	bl	_is_rebase_i
	cbz	x0, LBB0_3
; %bb.2:
	mov	w8, #2
	str	w8, [sp, #32]
LBB0_3:
	mov	w8, #1
	str	w8, [sp, #36]
	mov	x0, x23
	bl	_parse_tree_indirect
	mov	x23, x0
	cbz	x24, LBB0_7
; %bb.4:
	mov	x0, x24
	bl	_get_commit_tree
	mov	x24, x0
	cbz	x22, LBB0_8
LBB0_5:
	mov	x0, x22
	bl	_get_commit_tree
	b	LBB0_9
LBB0_6:
	mov	w22, #-1
	b	LBB0_22
LBB0_7:
	mov	x0, x21
	bl	_empty_tree
	mov	x24, x0
	cbnz	x22, LBB0_5
LBB0_8:
	mov	x0, x21
	bl	_empty_tree
LBB0_9:
	mov	x22, x0
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_12
; %bb.10:
	ldr	x25, [x19]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x25], #8
	add	x0, sp, #8
	bl	_parse_merge_opt
	ldr	x8, [x19]
	ldrsw	x9, [x19, #8]
	add	x8, x8, x9, lsl #3
	cmp	x25, x8
	b.ne	LBB0_11
LBB0_12:
	add	x25, sp, #8
	add	x0, sp, #8
	mov	x1, x23
	mov	x2, x24
	mov	x3, x22
	bl	_merge_trees
	mov	x22, x0
	mov	x0, x19
	bl	_is_rebase_i
	cbz	x0, LBB0_15
; %bb.13:
	cmp	w22, #0
	b.gt	LBB0_15
; %bb.14:
	ldr	w0, [sp, #40]
Lloh10:
	adrp	x8, _stdout@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_fputs
LBB0_15:
	add	x0, x25, #32
	bl	_strbuf_release
	tbnz	w22, #31, LBB0_18
; %bb.16:
Lloh13:
	adrp	x8, _COMMIT_LOCK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _COMMIT_LOCK@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _SKIP_IF_UNCHANGED@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SKIP_IF_UNCHANGED@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x1, sp
	bl	_write_locked_index
	cbz	x0, LBB0_19
; %bb.17:
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x20, x0
	mov	x0, x19
	bl	_action_name
	bl	__
	mov	x1, x0
	mov	x0, x20
	bl	_error
	mov	x22, x0
	b	LBB0_22
LBB0_18:
	mov	x0, sp
	bl	_rollback_lock_file
	b	LBB0_22
LBB0_19:
	cbnz	w22, LBB0_21
; %bb.20:
	ldr	w0, [x21]
	ldr	w2, [x19, #12]
	mov	x1, x20
	bl	_append_conflicts_hint
LBB0_21:
	cmp	w22, #0
	cset	w22, eq
LBB0_22:
	mov	x0, x22
	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
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_LOCK_INIT,4,2                  ; @LOCK_INIT
	.comm	_LOCK_REPORT_ON_ERROR,4,2       ; @LOCK_REPORT_ON_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(empty tree)"

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

	.comm	_stdout,4,2                     ; @stdout
	.comm	_COMMIT_LOCK,4,2                ; @COMMIT_LOCK
	.comm	_SKIP_IF_UNCHANGED,4,2          ; @SKIP_IF_UNCHANGED
l_.str.2:                               ; @.str.2
	.asciz	"%s: Unable to write new index file"

	.no_dead_strip	_do_recursive_merge
.subsections_via_symbols
