	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tree_write_stack_finish_subtree
_tree_write_stack_finish_subtree:       ## @tree_write_stack_finish_subtree
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	16(%rdi), %rbx
	xorl	%eax, %eax
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	movq	%rdi, %r14
	movq	%rbx, %rdi
	callq	_tree_write_stack_finish_subtree
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movq	_tree_type@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %rcx
	callq	_write_object_file
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	8(%rbx), %rdi
	callq	_strbuf_release
	movq	%rbx, %rdi
	callq	_free
	movq	$0, 16(%r14)
	leaq	8(%r14), %rdi
	movq	(%r14), %rdx
	movl	-24(%rbp), %r8d
	movl	$16384, %esi                    ## imm = 0x4000
	movl	$2, %ecx
	callq	_write_tree_entry
	movq	(%r14), %rax
	movb	$0, 1(%rax)
	movq	(%r14), %rax
	movb	$0, (%rax)
	xorl	%eax, %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tree_type,4,2                  ## @tree_type
	.no_dead_strip	_tree_write_stack_finish_subtree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tree_write_stack_finish_subtree
_tree_write_stack_finish_subtree:       ; @tree_write_stack_finish_subtree
	.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
	ldr	x20, [x0, #16]
	cbz	x20, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	bl	_tree_write_stack_finish_subtree
	cbnz	w0, LBB0_5
; %bb.2:
	mov	x21, x20
	ldp	w1, w0, [x21, #8]!
Lloh0:
	adrp	x8, _tree_type@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tree_type@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x3, sp, #8
	bl	_write_object_file
	cbnz	w0, LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_strbuf_release
	mov	x0, x20
	bl	_free
	str	xzr, [x19, #16]
	add	x0, x19, #8
	ldr	x2, [x19]
	ldr	w4, [sp, #8]
	mov	w1, #16384
	mov	w3, #2
	bl	_write_tree_entry
	mov	w0, #0
	ldr	x8, [x19]
	strb	wzr, [x8, #1]
	ldr	x8, [x19]
	strb	wzr, [x8]
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_tree_type,4,2                  ; @tree_type
	.no_dead_strip	_tree_write_stack_finish_subtree
.subsections_via_symbols
