	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_commit_notes                   ## -- Begin function commit_notes
	.p2align	4, 0x90
_commit_notes:                          ## @commit_notes
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	testq	%rsi, %rsi
	jne	LBB0_2
## %bb.1:
	movq	_default_notes_tree@GOTPCREL(%rip), %rbx
LBB0_2:
	cmpl	$0, 12(%rbx)
	je	LBB0_5
## %bb.3:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	cmpl	$0, (%rax)
	jne	LBB0_6
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
LBB0_6:
	cmpl	$0, 8(%rbx)
	je	LBB0_8
## %bb.7:
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_strbuf_addstr
	movq	%r15, %rdi
	callq	_strbuf_complete_line
	movl	-40(%rbp), %ecx
	movl	-36(%rbp), %r8d
	leaq	-48(%rbp), %r12
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	%r12, %r9
	callq	_create_notes_commit
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$7, %ecx
	callq	_strbuf_insert
	movl	-40(%rbp), %edi
	movq	(%rbx), %rsi
	movq	_UPDATE_REFS_DIE_ON_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_update_ref
	movq	%r15, %rdi
	callq	_strbuf_release
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,2                ## @STRBUF_INIT
	.comm	_default_notes_tree,16,3        ## @default_notes_tree
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot commit uninitialized/unreferenced notes tree"

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

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_commit_notes                   ; -- Begin function commit_notes
	.p2align	2
_commit_notes:                          ; @commit_notes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh3:
	adrp	x8, _default_notes_tree@GOTPAGE
Lloh4:
	ldr	x8, [x8, _default_notes_tree@GOTPAGEOFF]
	cmp	x1, #0
	csel	x19, x8, x1, eq
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w8, [x8]
	cbnz	w8, LBB0_4
LBB0_3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_die
LBB0_4:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_6
; %bb.5:
	add	x0, sp, #8
	mov	x1, x21
	bl	_strbuf_addstr
	add	x0, sp, #8
	bl	_strbuf_complete_line
	ldp	w3, w4, [sp, #8]
	mov	x5, sp
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	bl	_create_notes_commit
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w1, #0
	mov	w3, #7
	bl	_strbuf_insert
	ldr	w0, [sp, #8]
	ldr	x1, [x19]
Lloh9:
	adrp	x8, _UPDATE_REFS_DIE_ON_ERR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UPDATE_REFS_DIE_ON_ERR@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
	mov	x2, sp
	mov	x3, #0
	mov	w4, #0
	bl	_update_ref
	add	x0, sp, #8
	bl	_strbuf_release
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,2                ; @STRBUF_INIT
	.comm	_default_notes_tree,16,3        ; @default_notes_tree
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot commit uninitialized/unreferenced notes tree"

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

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