	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_notes_merge_commit             ## -- Begin function notes_merge_commit
	.p2align	4, 0x90
_notes_merge_commit:                    ## @notes_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%rdx, %rdi
	xorl	%esi, %esi
	callq	_get_commit_buffer
	leaq	L_.str(%rip), %rsi
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rax, %rdi
	callq	_strstr
	movq	%rax, %rbx
	movq	_NOTES_MERGE_WORKTREE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdi
	callq	_git_path_buf
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	cmpl	$3, (%r14)
	jl	LBB0_2
## %bb.1:
	movq	-64(%rbp), %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_2:
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	cmpb	$0, 2(%rbx)
	jne	LBB0_5
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
LBB0_5:
	movq	-64(%rbp), %rdi
	callq	_opendir
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	-64(%rbp), %rsi
	leaq	L_.str.3(%rip), %rdi
	callq	_die_errno
LBB0_7:
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	addq	$2, %rbx
	movq	%rbx, %r14
	leaq	-64(%rbp), %rdi
	movl	$47, %esi
	callq	_strbuf_addch
	movl	-56(%rbp), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_readdir
	testq	%rax, %rax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_23
## %bb.8:
	movq	%rax, %r15
	leaq	-136(%rbp), %r12
	jmp	LBB0_9
LBB0_21:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	-64(%rbp), %rdi
	movl	-84(%rbp), %esi                 ## 4-byte Reload
	callq	_strbuf_setlen
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r13, %rdi
	callq	_readdir
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_23
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_is_dot_or_dotdot
	testq	%rax, %rax
	jne	LBB0_22
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r15), %edi
	movq	%r12, %rsi
	callq	_get_oid_hex
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$3, (%rbx)
	jl	LBB0_22
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rsi
	movl	(%r15), %edx
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_22
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r15), %esi
	leaq	-64(%rbp), %rdi
	callq	_strbuf_addstr
	movq	-64(%rbp), %rdi
	leaq	-80(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rsi
	leaq	L_.str.5(%rip), %rdi
	callq	_die_errno
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rdx
	movq	_HASH_WRITE_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-128(%rbp), %r15
	movq	%r15, %rsi
	leaq	-80(%rbp), %rcx
	callq	_index_path
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rsi
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_add_note
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rsi
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$4, (%rbx)
	jl	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	callq	_oid_to_hex
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_oid_to_hex
	leaq	L_.str.8(%rip), %rdi
	movq	%rbx, %rsi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_21
LBB0_23:
	movq	8(%rbx), %r12
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movl	(%rbx), %r15d
	movq	%r14, %rdi
	callq	_strlen
	movq	%r12, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	movq	%r14, %rcx
	movl	%eax, %r8d
	movq	-120(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %r9
	callq	_create_notes_commit
	movq	%rbx, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	_unuse_commit_buffer
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpl	$4, (%rax)
	jl	LBB0_25
## %bb.24:
	movq	%r15, %rdi
	callq	_oid_to_hex
	leaq	L_.str.9(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_25:
	leaq	-64(%rbp), %rdi
	callq	_strbuf_release
	movq	%r13, %rdi
	callq	_closedir
	xorl	%eax, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,16,3               ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n\n"

	.comm	_NOTES_MERGE_WORKTREE,4,2       ## @NOTES_MERGE_WORKTREE
L_.str.1:                               ## @.str.1
	.asciz	"Committing notes in notes merge worktree at %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"partial notes commit has empty message"

L_.str.3:                               ## @.str.3
	.asciz	"could not open %s"

L_.str.4:                               ## @.str.4
	.asciz	"Skipping non-SHA1 entry '%s%s'\n"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to stat '%s'"

	.comm	_HASH_WRITE_OBJECT,4,2          ## @HASH_WRITE_OBJECT
L_.str.6:                               ## @.str.6
	.asciz	"Failed to write blob object from '%s'"

L_.str.7:                               ## @.str.7
	.asciz	"Failed to add resolved note '%s' to notes tree"

L_.str.8:                               ## @.str.8
	.asciz	"Added resolved note for object %s: %s\n"

L_.str.9:                               ## @.str.9
	.asciz	"Finalized notes merge commit: %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_notes_merge_commit             ; -- Begin function notes_merge_commit
	.p2align	2
_notes_merge_commit:                    ; @notes_merge_commit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
	str	q0, [sp, #48]
	mov	x0, x2
	mov	x1, #0
	bl	_get_commit_buffer
	mov	x23, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strstr
	mov	x24, x0
Lloh5:
	adrp	x8, _NOTES_MERGE_WORKTREE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NOTES_MERGE_WORKTREE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x0, sp, #48
	bl	_git_path_buf
	ldr	w8, [x20]
	cmp	w8, #3
	b.lt	LBB0_2
; %bb.1:
	ldr	x1, [sp, #48]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
LBB0_2:
	cbz	x24, LBB0_4
; %bb.3:
	ldrb	w8, [x24, #2]
	cbnz	w8, LBB0_5
LBB0_4:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_die
LBB0_5:
	str	x19, [sp, #16]                  ; 8-byte Folded Spill
	add	x25, x24, #2
	ldr	x0, [sp, #48]
	bl	_opendir
	mov	x24, x0
	cbnz	x0, LBB0_7
; %bb.6:
	ldr	x1, [sp, #48]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_die_errno
LBB0_7:
	add	x0, sp, #48
	mov	w1, #47
	bl	_strbuf_addch
	ldr	w26, [sp, #56]
	mov	x0, x24
	bl	_readdir
	cbz	x0, LBB0_23
; %bb.8:
	mov	x28, x0
Lloh14:
	adrp	x19, _HASH_WRITE_OBJECT@GOTPAGE
Lloh15:
	ldr	x19, [x19, _HASH_WRITE_OBJECT@GOTPAGEOFF]
Lloh16:
	adrp	x27, l_.str.4@PAGE
Lloh17:
	add	x27, x27, l_.str.4@PAGEOFF
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	add	x0, sp, #48
	mov	x1, x26
	bl	_strbuf_setlen
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x24
	bl	_readdir
	mov	x28, x0
	cbz	x0, LBB0_23
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x28]
	bl	_is_dot_or_dotdot
	cbnz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x28]
	add	x1, sp, #32
	bl	_get_oid_hex
	cbz	x0, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x20]
	cmp	w8, #3
	b.lt	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x1, [sp, #48]
	ldr	w8, [x28]
	str	x8, [sp]
	mov	x0, x27
	bl	_printf
	b	LBB0_10
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w1, [x28]
	add	x0, sp, #48
	bl	_strbuf_addstr
	ldr	x0, [sp, #48]
	add	x1, sp, #40
	bl	_stat
	cbz	x0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x1, [sp, #48]
Lloh18:
	adrp	x0, l_.str.5@PAGE
Lloh19:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_die_errno
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	ldr	x2, [sp, #48]
	ldr	w4, [x19]
	add	x1, sp, #24
	add	x3, sp, #40
	bl	_index_path
	cbz	x0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [sp, #48]
	str	x8, [sp]
Lloh20:
	adrp	x0, l_.str.6@PAGE
Lloh21:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_die
LBB0_19:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x1, sp, #32
	add	x2, sp, #24
	mov	x0, x22
	mov	x3, #0
	bl	_add_note
	cbz	x0, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [sp, #48]
	str	x8, [sp]
Lloh22:
	adrp	x0, l_.str.7@PAGE
Lloh23:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_die
LBB0_21:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x20]
	cmp	w8, #4
	b.lt	LBB0_9
; %bb.22:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x0, sp, #32
	bl	_oid_to_hex
	mov	x28, x0
	add	x0, sp, #24
	bl	_oid_to_hex
	str	x0, [sp]
Lloh24:
	adrp	x0, l_.str.8@PAGE
Lloh25:
	add	x0, x0, l_.str.8@PAGEOFF
	mov	x1, x28
	bl	_printf
	b	LBB0_9
LBB0_23:
	ldr	x26, [x20, #8]
	ldr	w27, [x21]
	mov	x0, x25
	bl	_strlen
	mov	x4, x0
	mov	x0, x26
	mov	x1, x22
	mov	x2, x27
	mov	x3, x25
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	mov	x5, x19
	bl	_create_notes_commit
	mov	x0, x21
	mov	x1, x23
	bl	_unuse_commit_buffer
	ldr	w8, [x20]
	cmp	w8, #4
	b.lt	LBB0_25
; %bb.24:
	mov	x0, x19
	bl	_oid_to_hex
	mov	x1, x0
Lloh26:
	adrp	x0, l_.str.9@PAGE
Lloh27:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_printf
LBB0_25:
	add	x0, sp, #48
	bl	_strbuf_release
	mov	x0, x24
	bl	_closedir
	mov	w0, #0
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n\n"

	.comm	_NOTES_MERGE_WORKTREE,4,2       ; @NOTES_MERGE_WORKTREE
l_.str.1:                               ; @.str.1
	.asciz	"Committing notes in notes merge worktree at %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"partial notes commit has empty message"

l_.str.3:                               ; @.str.3
	.asciz	"could not open %s"

l_.str.4:                               ; @.str.4
	.asciz	"Skipping non-SHA1 entry '%s%s'\n"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to stat '%s'"

	.comm	_HASH_WRITE_OBJECT,4,2          ; @HASH_WRITE_OBJECT
l_.str.6:                               ; @.str.6
	.asciz	"Failed to write blob object from '%s'"

l_.str.7:                               ; @.str.7
	.asciz	"Failed to add resolved note '%s' to notes tree"

l_.str.8:                               ; @.str.8
	.asciz	"Added resolved note for object %s: %s\n"

l_.str.9:                               ; @.str.9
	.asciz	"Finalized notes merge commit: %s\n"

.subsections_via_symbols
