	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trim_tree
_trim_tree:                             ## @trim_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.1:
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	12(%rax), %eax
	cmpl	%r15d, %eax
	cmovgl	%eax, %r15d
LBB0_4:
	leaq	12(%r12), %rbx
	movq	%rbx, %rdi
	callq	_has_local_rule
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	cmpl	%r15d, (%rbx)
	jge	LBB0_6
## %bb.7:
	movq	_NO_SEQUENCE_NUMBER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_8
LBB0_6:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_8:
	movl	%r13d, %ebx
	leaq	8(%r12), %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_trim_subnode_hash
	movl	%eax, %r13d
	andl	%ebx, %r13d
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.9:
	movq	24(%rax), %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_trim_tree
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	(%r12), %rax
	movq	$0, 24(%rax)
	jmp	LBB0_12
LBB0_11:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	(%r12), %rax
LBB0_12:
	movq	16(%rax), %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_trim_tree
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movq	(%r12), %rdi
	movq	$0, 16(%rdi)
	jmp	LBB0_15
LBB0_14:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	(%r12), %rdi
LBB0_15:
	addq	$8, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_trim_subnode_array
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%r12), %rdi
	addq	$4, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_trim_subnode_array
	movl	%eax, %ebx
	andl	%r13d, %ebx
	andl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	(%r12), %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_trim_subnode_array
	movl	%eax, %r13d
	andl	%ebx, %r13d
	je	LBB0_16
## %bb.17:
	movq	$0, (%r12)
	jmp	LBB0_18
LBB0_16:
	xorl	%r13d, %r13d
LBB0_18:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_NO_SEQUENCE_NUMBER,4,2         ## @NO_SEQUENCE_NUMBER
	.no_dead_strip	_trim_tree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trim_tree
_trim_tree:                             ; @trim_tree
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	cbz	x0, LBB0_17
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w8, [x8, #12]
	cmp	w8, w21
	csel	w21, w8, w21, gt
LBB0_4:
	add	x23, x19, #12
	mov	x0, x23
	bl	_has_local_rule
	cbz	x0, LBB0_8
; %bb.5:
	ldr	w8, [x23]
	cmp	w8, w21
	b.ge	LBB0_7
; %bb.6:
Lloh3:
	adrp	x8, _NO_SEQUENCE_NUMBER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NO_SEQUENCE_NUMBER@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x23]
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x8, _FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
LBB0_8:
	add	x0, x19, #8
	mov	x1, x21
	mov	x2, x20
	bl	_trim_subnode_hash
	and	w22, w0, w22
	ldr	x8, [x19]
	cbz	x8, LBB0_17
; %bb.9:
	ldr	x0, [x8, #24]
	mov	x1, x21
	mov	x2, x20
	bl	_trim_tree
	cbz	w0, LBB0_11
; %bb.10:
	ldr	x8, [x19]
	str	xzr, [x8, #24]
	b	LBB0_12
LBB0_11:
Lloh9:
	adrp	x8, _FALSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
	ldr	x8, [x19]
LBB0_12:
	ldr	x0, [x8, #16]
	mov	x1, x21
	mov	x2, x20
	bl	_trim_tree
	cbz	w0, LBB0_14
; %bb.13:
	ldr	x8, [x19]
	str	xzr, [x8, #16]
	b	LBB0_15
LBB0_14:
Lloh12:
	adrp	x8, _FALSE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
	ldr	x8, [x19]
LBB0_15:
	add	x0, x8, #8
	mov	x1, x21
	mov	x2, x20
	bl	_trim_subnode_array
	and	w22, w0, w22
	ldr	x8, [x19]
	add	x0, x8, #4
	mov	x1, x21
	mov	x2, x20
	bl	_trim_subnode_array
	and	w22, w22, w0
	ldr	x0, [x19]
	mov	x1, x21
	mov	x2, x20
	bl	_trim_subnode_array
	ands	w22, w22, w0
	b.eq	LBB0_17
; %bb.16:
	str	xzr, [x19]
LBB0_17:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_NO_SEQUENCE_NUMBER,4,2         ; @NO_SEQUENCE_NUMBER
	.no_dead_strip	_trim_tree
.subsections_via_symbols
