	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_notes_tree               ## -- Begin function write_notes_tree
	.p2align	4, 0x90
_write_notes_tree:                      ## @write_notes_tree
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	movq	_default_notes_tree@GOTPCREL(%rip), %rbx
LBB0_2:
	movl	4(%rbx), %edi
	callq	_assert
	movq	$0, -32(%rbp)
	leaq	-40(%rbp), %r15
	movq	_the_hash_algo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	shll	$8, %esi
	addl	$8192, %esi                     ## imm = 0x2000
	movq	%r15, %rdi
	callq	_strbuf_init
	movq	-48(%rbp), %rax
	movb	$0, 1(%rax)
	movq	-48(%rbp), %rax
	movb	$0, (%rax)
	leaq	-48(%rbp), %rax
	movq	%rax, -56(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -64(%rbp)
	movq	_FOR_EACH_NOTE_DONT_UNPACK_SUBTREES@GOTPCREL(%rip), %rax
	movq	_FOR_EACH_NOTE_YIELD_SUBTREES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_write_each_note@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_for_each_note
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	leaq	-64(%rbp), %rsi
	xorl	%edi, %edi
	callq	_write_each_non_note_until
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	leaq	-48(%rbp), %rdi
	callq	_tree_write_stack_finish_subtree
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movl	-40(%rbp), %esi
	movl	-36(%rbp), %edi
	movq	_tree_type@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rcx
	callq	_write_object_file
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
LBB0_6:
	movq	%r15, %rdi
	callq	_strbuf_release
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_default_notes_tree,8,2         ## @default_notes_tree
	.comm	_the_hash_algo,8,3              ## @the_hash_algo
	.comm	_FOR_EACH_NOTE_DONT_UNPACK_SUBTREES,4,2 ## @FOR_EACH_NOTE_DONT_UNPACK_SUBTREES
	.comm	_FOR_EACH_NOTE_YIELD_SUBTREES,4,2 ## @FOR_EACH_NOTE_YIELD_SUBTREES
	.comm	_write_each_note,4,2            ## @write_each_note
	.comm	_tree_type,4,2                  ## @tree_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_notes_tree               ; -- Begin function write_notes_tree
	.p2align	2
_write_notes_tree:                      ; @write_notes_tree
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x1
Lloh0:
	adrp	x8, _default_notes_tree@GOTPAGE
Lloh1:
	ldr	x8, [x8, _default_notes_tree@GOTPAGEOFF]
	cmp	x0, #0
	csel	x21, x8, x0, eq
	ldr	w0, [x21, #4]
	bl	_assert
	str	xzr, [sp, #40]
	add	x22, sp, #24
	add	x19, x22, #8
Lloh2:
	adrp	x8, _the_hash_algo@GOTPAGE
Lloh3:
	ldr	x8, [x8, _the_hash_algo@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	w8, [x8]
	lsl	w8, w8, #8
	add	w1, w8, #2, lsl #12             ; =8192
	mov	x0, x19
	bl	_strbuf_init
	ldr	x8, [sp, #24]
	strb	wzr, [x8, #1]
	ldr	x8, [sp, #24]
	strb	wzr, [x8]
	str	x22, [sp, #16]
	ldr	w8, [x21]
	str	w8, [sp, #8]
Lloh5:
	adrp	x8, _FOR_EACH_NOTE_DONT_UNPACK_SUBTREES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FOR_EACH_NOTE_DONT_UNPACK_SUBTREES@GOTPAGEOFF]
Lloh7:
	adrp	x9, _FOR_EACH_NOTE_YIELD_SUBTREES@GOTPAGE
Lloh8:
	ldr	x9, [x9, _FOR_EACH_NOTE_YIELD_SUBTREES@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh11:
	adrp	x8, _write_each_note@GOTPAGE
Lloh12:
	ldr	x8, [x8, _write_each_note@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x21
	bl	_for_each_note
	cbnz	x0, LBB0_3
; %bb.1:
	add	x1, sp, #8
	bl	_write_each_non_note_until
	cbnz	x0, LBB0_3
; %bb.2:
	add	x0, sp, #24
	bl	_tree_write_stack_finish_subtree
	cbz	x0, LBB0_5
LBB0_3:
	mov	w20, #1
LBB0_4:
	mov	x0, x19
	bl	_strbuf_release
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
LBB0_5:
	ldp	w1, w0, [sp, #32]
Lloh14:
	adrp	x8, _tree_type@GOTPAGE
Lloh15:
	ldr	x8, [x8, _tree_type@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x3, x20
	bl	_write_object_file
	cmp	x0, #0
	cset	w20, ne
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_default_notes_tree,8,2         ; @default_notes_tree
	.comm	_the_hash_algo,8,3              ; @the_hash_algo
	.comm	_FOR_EACH_NOTE_DONT_UNPACK_SUBTREES,4,2 ; @FOR_EACH_NOTE_DONT_UNPACK_SUBTREES
	.comm	_FOR_EACH_NOTE_YIELD_SUBTREES,4,2 ; @FOR_EACH_NOTE_YIELD_SUBTREES
	.comm	_write_each_note,4,2            ; @write_each_note
	.comm	_tree_type,4,2                  ; @tree_type
.subsections_via_symbols
