	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_notes_commit            ## -- Begin function create_notes_commit
	.p2align	4, 0x90
_create_notes_commit:                   ## @create_notes_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, %r15
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	%rdx, -64(%rbp)
	movl	4(%rsi), %edi
	callq	_assert
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_write_notes_tree
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
LBB0_2:
	testq	%rbx, %rbx
	jne	LBB0_8
## %bb.3:
	movl	(%r13), %edi
	leaq	-48(%rbp), %rsi
	callq	_read_ref
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_5:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_lookup_commit
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_parse_commit
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	(%r13), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
LBB0_7:
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_commit_list_insert
	movq	-64(%rbp), %rbx
LBB0_8:
	movq	$0, (%rsp)
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rcx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	xorl	%r9d, %r9d
	callq	_commit_tree
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to write notes tree to database"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to find/parse commit %s"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to commit notes tree to database"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_notes_commit            ; -- Begin function create_notes_commit
	.p2align	2
_create_notes_commit:                   ; @create_notes_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, x5
	mov	x20, x4
	mov	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x24, x0
	str	x2, [sp, #24]
	ldr	w0, [x1, #4]
	bl	_assert
	add	x1, sp, #16
	mov	x0, x22
	bl	_write_notes_tree
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
LBB0_2:
	cbnz	x23, LBB0_8
; %bb.3:
	ldr	w0, [x22]
	add	x1, sp, #8
	bl	_read_ref
	cbz	w0, LBB0_5
; %bb.4:
	mov	x23, #0
	b	LBB0_8
LBB0_5:
	add	x1, sp, #8
	mov	x0, x24
	bl	_lookup_commit
	mov	x23, x0
	bl	_parse_commit
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w8, [x22]
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_die
LBB0_7:
	add	x1, sp, #24
	mov	x0, x23
	bl	_commit_list_insert
	ldr	x23, [sp, #24]
LBB0_8:
	add	x2, sp, #16
	mov	x0, x21
	mov	x1, x20
	mov	x3, x23
	mov	x4, x19
	mov	x5, #0
	mov	x6, #0
	bl	_commit_tree
	cbz	x0, LBB0_10
; %bb.9:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_die
LBB0_10:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to write notes tree to database"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to find/parse commit %s"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to commit notes tree to database"

.subsections_via_symbols
