	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_preferred_base_object
_add_preferred_base_object:             ## @add_preferred_base_object
	.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	%rdi, %r14
	callq	_pack_name_hash
	movq	_num_preferred_base@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_8
## %bb.1:
	movl	%eax, %edi
	callq	_check_pbase_path
	testq	%rax, %rax
	je	LBB0_2
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r14, %rdi
	callq	_name_cmp_len
	movl	%eax, %r12d
	movq	_pbase_tree@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.3:
	movq	_OBJ_TREE@GOTPCREL(%rip), %r13
	leaq	-48(%rbp), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%r15, %rdi
	callq	_init_tree_desc
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	movq	%r14, %rcx
	callq	_add_pbase_object
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r12d, %r12d
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	8(%rbx), %rdi
	movl	(%r13), %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_add_object_entry
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_num_preferred_base,4,2         ## @num_preferred_base
	.comm	_pbase_tree,8,3                 ## @pbase_tree
	.comm	_OBJ_TREE,4,2                   ## @OBJ_TREE
	.no_dead_strip	_add_preferred_base_object
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_preferred_base_object
_add_preferred_base_object:             ; @add_preferred_base_object
	.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
	mov	x19, x0
	bl	_pack_name_hash
Lloh0:
	adrp	x8, _num_preferred_base@GOTPAGE
Lloh1:
	ldr	x8, [x8, _num_preferred_base@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
	bl	_check_pbase_path
	cbz	x0, LBB0_3
LBB0_2:
	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
LBB0_3:
	mov	x0, x19
	bl	_name_cmp_len
Lloh3:
	adrp	x8, _pbase_tree@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pbase_tree@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
	cbz	x21, LBB0_2
; %bb.4:
	mov	x20, x0
Lloh6:
	adrp	x22, _OBJ_TREE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _OBJ_TREE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldp	w2, w1, [x21]
	add	x0, sp, #8
	bl	_init_tree_desc
	add	x0, sp, #8
	mov	x1, x19
	mov	x2, x20
	mov	x3, x19
	bl	_add_pbase_object
	ldr	x21, [x21, #16]
	cbz	x21, LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	w20, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, x21, #8
	ldr	w1, [x22]
	mov	x2, #0
	mov	w3, #1
	bl	_add_object_entry
	ldr	x21, [x21, #16]
	cbnz	x21, LBB0_6
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_num_preferred_base,4,2         ; @num_preferred_base
	.comm	_pbase_tree,8,3                 ; @pbase_tree
	.comm	_OBJ_TREE,4,2                   ; @OBJ_TREE
	.no_dead_strip	_add_preferred_base_object
.subsections_via_symbols
