	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function merge_commit
_merge_commit:                          ## @merge_commit
	.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	%rdi, %r12
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	leaq	L_.str(%rip), %rdi
	leaq	-48(%rbp), %rsi
	callq	_get_oid
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
                                        ## implicit-def: $r13
LBB0_6:
	callq	__
	movl	%eax, %edi
	callq	_die
LBB0_7:
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	(%rax), %rsi
	leaq	-56(%rbp), %rdi
	callq	_oidcpy
	jmp	LBB0_10
LBB0_2:
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	callq	_lookup_commit_reference
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_parse_commit
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_6
LBB0_9:
	leaq	-56(%rbp), %rdi
	callq	_oidclr
LBB0_10:
	movl	$1, %edi
	movl	$4, %esi
	callq	_xcalloc
	movq	%rax, %rbx
	movq	_combine_notes_overwrite@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_init_notes
	leaq	L_.str.4(%rip), %rdi
	leaq	-48(%rbp), %rdx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_resolve_refdup
	movq	%rax, (%r12)
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
LBB0_12:
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_notes_merge_commit
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.6(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
LBB0_14:
	leaq	-88(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	L_.str.7(%rip), %rsi
	leaq	-64(%rbp), %r15
	movq	%r13, %rdi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_format_commit_message
	movq	%r15, %rdi
	callq	_strbuf_trim
	leaq	L_.str.8(%rip), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$7, %ecx
	callq	_strbuf_insert
	movl	-64(%rbp), %ebx
	movq	(%r12), %r14
	movq	%r12, %r13
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	callq	_is_null_oid
	testq	%rax, %rax
	movl	$0, %eax
	cmovneq	%rax, %r12
	movq	_UPDATE_REFS_DIE_ON_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-48(%rbp), %rdx
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	callq	_update_ref
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_free_notes
	movq	%r15, %rdi
	callq	_strbuf_release
	movq	%r13, %rdi
	callq	_merge_abort
	movl	%eax, %ebx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NOTES_MERGE_PARTIAL"

L_.str.1:                               ## @.str.1
	.asciz	"failed to read ref NOTES_MERGE_PARTIAL"

	.comm	_the_repository,4,2             ## @the_repository
L_.str.2:                               ## @.str.2
	.asciz	"could not find commit from NOTES_MERGE_PARTIAL."

L_.str.3:                               ## @.str.3
	.asciz	"could not parse commit from NOTES_MERGE_PARTIAL."

	.comm	_combine_notes_overwrite,4,2    ## @combine_notes_overwrite
L_.str.4:                               ## @.str.4
	.asciz	"NOTES_MERGE_REF"

L_.str.5:                               ## @.str.5
	.asciz	"failed to resolve NOTES_MERGE_REF"

L_.str.6:                               ## @.str.6
	.asciz	"failed to finalize notes merge"

L_.str.7:                               ## @.str.7
	.asciz	"%s"

L_.str.8:                               ## @.str.8
	.asciz	"notes: "

	.comm	_UPDATE_REFS_DIE_ON_ERR,4,2     ## @UPDATE_REFS_DIE_ON_ERR
	.no_dead_strip	_merge_commit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function merge_commit
_merge_commit:                          ; @merge_commit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #16
	bl	_get_oid
	cbz	x0, LBB0_5
; %bb.1:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
                                        ; implicit-def: $x20
LBB0_2:
	bl	__
	bl	_die
LBB0_3:
	ldr	x8, [x20]
	cbz	x8, LBB0_8
; %bb.4:
	ldr	x1, [x8]
	add	x0, sp, #8
	bl	_oidcpy
	b	LBB0_9
LBB0_5:
Lloh7:
	adrp	x8, _the_repository@GOTPAGE
Lloh8:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	add	x1, sp, #16
	bl	_lookup_commit_reference
	mov	x20, x0
	cbz	x0, LBB0_14
; %bb.6:
	mov	x0, x20
	bl	_parse_commit
	cbz	x0, LBB0_3
; %bb.7:
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_2
LBB0_8:
	add	x0, sp, #8
	bl	_oidclr
LBB0_9:
	mov	w0, #1
	mov	w1, #4
	bl	_xcalloc
	mov	x21, x0
Lloh12:
	adrp	x8, _combine_notes_overwrite@GOTPAGE
Lloh13:
	ldr	x8, [x8, _combine_notes_overwrite@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	w3, #0
	bl	_init_notes
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	add	x2, sp, #16
	mov	w1, #0
	mov	x3, #0
	bl	_resolve_refdup
	mov	x22, x0
	str	x0, [x19]
	cbnz	x0, LBB0_11
; %bb.10:
Lloh19:
	adrp	x0, l_.str.5@PAGE
Lloh20:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	bl	_die
LBB0_11:
	add	x3, sp, #16
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_notes_merge_commit
	cbz	x0, LBB0_13
; %bb.12:
Lloh21:
	adrp	x0, l_.str.6@PAGE
Lloh22:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	bl	_die
LBB0_13:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh23:
	adrp	x1, l_.str.7@PAGE
Lloh24:
	add	x1, x1, l_.str.7@PAGEOFF
	add	x2, sp, #24
	mov	x3, sp
	mov	x0, x20
	bl	_format_commit_message
	add	x0, sp, #24
	bl	_strbuf_trim
Lloh25:
	adrp	x2, l_.str.8@PAGE
Lloh26:
	add	x2, x2, l_.str.8@PAGEOFF
	add	x0, sp, #24
	mov	w1, #0
	mov	w3, #7
	bl	_strbuf_insert
	ldr	w20, [sp, #24]
	ldr	x23, [x19]
	add	x24, sp, #8
	add	x0, sp, #8
	bl	_is_null_oid
	cmp	x0, #0
	csel	x3, x24, xzr, eq
Lloh27:
	adrp	x8, _UPDATE_REFS_DIE_ON_ERR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _UPDATE_REFS_DIE_ON_ERR@GOTPAGEOFF]
Lloh29:
	ldr	w5, [x8]
	add	x2, sp, #16
	mov	x0, x20
	mov	x1, x23
	mov	w4, #0
	bl	_update_ref
	mov	x0, x21
	bl	_free_notes
	add	x0, sp, #24
	bl	_strbuf_release
	mov	x0, x19
	bl	_merge_abort
	mov	x19, x0
	mov	x0, x22
	bl	_free
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_14:
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NOTES_MERGE_PARTIAL"

l_.str.1:                               ; @.str.1
	.asciz	"failed to read ref NOTES_MERGE_PARTIAL"

	.comm	_the_repository,4,2             ; @the_repository
l_.str.2:                               ; @.str.2
	.asciz	"could not find commit from NOTES_MERGE_PARTIAL."

l_.str.3:                               ; @.str.3
	.asciz	"could not parse commit from NOTES_MERGE_PARTIAL."

	.comm	_combine_notes_overwrite,4,2    ; @combine_notes_overwrite
l_.str.4:                               ; @.str.4
	.asciz	"NOTES_MERGE_REF"

l_.str.5:                               ; @.str.5
	.asciz	"failed to resolve NOTES_MERGE_REF"

l_.str.6:                               ; @.str.6
	.asciz	"failed to finalize notes merge"

l_.str.7:                               ; @.str.7
	.asciz	"%s"

l_.str.8:                               ; @.str.8
	.asciz	"notes: "

	.comm	_UPDATE_REFS_DIE_ON_ERR,4,2     ; @UPDATE_REFS_DIE_ON_ERR
	.no_dead_strip	_merge_commit
.subsections_via_symbols
