	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_bl_tree
_build_bl_tree:                         ## @build_bl_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	40(%rdi), %rsi
	movl	32(%rdi), %edx
	callq	_scan_tree
	movq	24(%rbx), %rsi
	movl	20(%rbx), %edx
	movq	%rbx, %rdi
	callq	_scan_tree
	leaq	16(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_build_tree
	movq	_BL_CODES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_bl_order@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpl	$3, %eax
	movl	$3, %ecx
	cmovll	%eax, %ecx
	leal	-1(%rcx), %r14d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$4, %eax
	jl	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	decq	%rax
	movq	8(%rbx), %rsi
	movl	%eax, %edi
	movq	(%rdx,%rdi,8), %rdi
	cmpq	$0, (%rsi,%rdi,8)
	je	LBB0_1
## %bb.3:
	leal	1(%rax), %ecx
	movl	%eax, %r14d
LBB0_4:
	leal	(%rcx,%rcx,2), %eax
	movl	(%rbx), %ecx
	movl	4(%rbx), %edi
	addl	%ecx, %eax
	addl	$14, %eax
	movl	%eax, (%rbx)
	callq	_Tracev
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BL_CODES,4,2                   ## @BL_CODES
	.comm	_bl_order,8,3                   ## @bl_order
	.comm	_stderr,4,2                     ## @stderr
	.no_dead_strip	_build_bl_tree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_bl_tree
_build_bl_tree:                         ; @build_bl_tree
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x1, [x0, #40]
	ldr	w2, [x0, #32]
	bl	_scan_tree
	ldr	x1, [x19, #24]
	ldr	w2, [x19, #20]
	mov	x0, x19
	bl	_scan_tree
	add	x1, x19, #16
	mov	x0, x19
	bl	_build_tree
Lloh0:
	adrp	x8, _BL_CODES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BL_CODES@GOTPAGEOFF]
Lloh2:
	adrp	x10, _bl_order@GOTPAGE
Lloh3:
	ldr	x10, [x10, _bl_order@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x8]
Lloh5:
	ldr	x10, [x10]
	mov	w8, #3
	cmp	w9, #3
	csel	w8, w9, w8, lt
	sub	w20, w8, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, #4
	b.lt	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	x9, x9, #1
	ldr	x11, [x19, #8]
	ldr	x12, [x10, w9, uxtw #3]
	ldr	x11, [x11, x12, lsl #3]
	cbz	x11, LBB0_1
; %bb.3:
	add	w8, w9, #1
	mov	x20, x9
LBB0_4:
	add	w8, w8, w8, lsl #1
	ldp	w9, w0, [x19]
	add	w8, w8, w9
	add	w8, w8, #14
	str	w8, [x19]
	bl	_Tracev
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BL_CODES,4,2                   ; @BL_CODES
	.comm	_bl_order,8,3                   ; @bl_order
	.comm	_stderr,4,2                     ; @stderr
	.no_dead_strip	_build_bl_tree
.subsections_via_symbols
