	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_notes                     ## -- Begin function init_notes
	.p2align	4, 0x90
_init_notes:                            ## @init_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	%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
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	movq	_default_notes_tree@GOTPCREL(%rip), %rbx
LBB0_2:
	xorl	%edi, %edi
	cmpl	$0, (%rbx)
	sete	%dil
	callq	_assert
	testq	%r14, %r14
	je	LBB0_3
## %bb.4:
	testq	%r12, %r12
	jne	LBB0_6
LBB0_5:
	movq	_combine_notes_concatenate@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_6:
	movl	$1, %edi
	movl	$4, %esi
	callq	_xcalloc
	movq	%rax, 8(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rbx)
	movq	%r14, %rdi
	callq	_xstrdup_or_null
	movq	%rax, 32(%rbx)
	movq	_NOTES_INIT_WRITABLE@GOTPCREL(%rip), %r13
	xorl	%ecx, %ecx
	movl	(%r13), %edx
	andl	%r15d, %edx
	cmovneq	%rax, %rcx
	movq	%rcx, 40(%rbx)
	movq	%r12, 24(%rbx)
	movl	$1, (%rbx)
	movq	$0, 16(%rbx)
	movq	_NOTES_INIT_EMPTY@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_15
## %bb.7:
	testq	%r14, %r14
	je	LBB0_15
## %bb.8:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_get_oid_treeish
	testq	%rax, %rax
	jne	LBB0_15
## %bb.9:
	testl	%r15d, (%r13)
	je	LBB0_12
## %bb.10:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_read_ref
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_die
LBB0_12:
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rdx
	leaq	-48(%rbp), %rsi
	leaq	-56(%rbp), %rcx
	leaq	-58(%rbp), %r8
	callq	_get_tree_entry
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	-48(%rbp), %rdi
	callq	_oid_to_hex
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_die
LBB0_14:
	leaq	-68(%rbp), %rdi
	callq	_oidclr
	leaq	-72(%rbp), %r14
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_oidcpy
	movq	8(%rbx), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_load_subtree
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%eax, %eax
	callq	_default_notes_ref
	movq	%rax, %r14
	testq	%r12, %r12
	je	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_default_notes_tree,64,3        ## @default_notes_tree
	.comm	_combine_notes_concatenate,8,3  ## @combine_notes_concatenate
	.comm	_NOTES_INIT_WRITABLE,4,2        ## @NOTES_INIT_WRITABLE
	.comm	_NOTES_INIT_EMPTY,4,2           ## @NOTES_INIT_EMPTY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot use notes ref %s"

	.comm	_the_repository,4,2             ## @the_repository
L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	"Failed to read notes tree referenced by %s (%s)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_notes                     ; -- Begin function init_notes
	.p2align	2
_init_notes:                            ; @init_notes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x3
	mov	x22, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _default_notes_tree@GOTPAGE
Lloh1:
	ldr	x8, [x8, _default_notes_tree@GOTPAGEOFF]
	cmp	x0, #0
	csel	x19, x8, x0, eq
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
	cbnz	x20, LBB0_2
; %bb.1:
	bl	_default_notes_ref
	mov	x20, x0
LBB0_2:
Lloh2:
	adrp	x8, _combine_notes_concatenate@GOTPAGE
Lloh3:
	ldr	x8, [x8, _combine_notes_concatenate@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x22, #0
	csel	x23, x8, x22, eq
	mov	w24, #1
	mov	w0, #1
	mov	w1, #4
	bl	_xcalloc
	str	x0, [x19, #8]
	stp	xzr, xzr, [x19, #48]
	mov	x0, x20
	bl	_xstrdup_or_null
Lloh5:
	adrp	x22, _NOTES_INIT_WRITABLE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _NOTES_INIT_WRITABLE@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w21
	csel	x8, xzr, x0, eq
	stp	x0, x8, [x19, #32]
	str	w24, [x19]
	stp	xzr, x23, [x19, #16]
Lloh7:
	adrp	x8, _NOTES_INIT_EMPTY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NOTES_INIT_EMPTY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	and	w8, w8, w21
	cmp	w8, #0
	ccmp	x20, #0, #4, eq
	b.eq	LBB0_10
; %bb.3:
	add	x1, sp, #32
	mov	x0, x20
	bl	_get_oid_treeish
	cbnz	x0, LBB0_10
; %bb.4:
	ldr	w8, [x22]
	tst	w8, w21
	b.eq	LBB0_7
; %bb.5:
	add	x1, sp, #32
	mov	x0, x20
	bl	_read_ref
	cbz	x0, LBB0_7
; %bb.6:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_die
LBB0_7:
Lloh12:
	adrp	x8, _the_repository@GOTPAGE
Lloh13:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x1, sp, #32
	add	x3, sp, #40
	add	x4, sp, #30
	bl	_get_tree_entry
	cbz	x0, LBB0_9
; %bb.8:
	add	x0, sp, #32
	bl	_oid_to_hex
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_die
LBB0_9:
	add	x8, sp, #16
	orr	x0, x8, #0x4
	bl	_oidclr
	add	x0, sp, #16
	add	x1, sp, #40
	bl	_oidcpy
	ldr	x2, [x19, #8]
	add	x1, sp, #16
	mov	x0, x19
	mov	w3, #0
	bl	_load_subtree
LBB0_10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_default_notes_tree,64,3        ; @default_notes_tree
	.comm	_combine_notes_concatenate,8,3  ; @combine_notes_concatenate
	.comm	_NOTES_INIT_WRITABLE,4,2        ; @NOTES_INIT_WRITABLE
	.comm	_NOTES_INIT_EMPTY,4,2           ; @NOTES_INIT_EMPTY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot use notes ref %s"

	.comm	_the_repository,4,2             ; @the_repository
l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	"Failed to read notes tree referenced by %s (%s)"

.subsections_via_symbols
