	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_preferred_base
_add_preferred_base:                    ## @add_preferred_base
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rsi
	movq	_window@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_num_preferred_base@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdx
	leal	1(%rdx), %edi
	movl	%edi, (%rcx)
	cmpq	%rdx, %rax
	jle	LBB0_8
## %bb.1:
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_tree_type@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	leaq	-40(%rbp), %r8
	callq	_read_object_with_reference
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r14
	movq	_pbase_tree@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.3:
	leaq	-40(%rbp), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	16(%rbx), %rdi
	movq	%r12, %rsi
	callq	_oideq
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_5
LBB0_7:
	movl	$1, %edi
	movl	$32, %esi
	callq	_xcalloc
	movq	%rax, %rbx
	movq	(%r15), %rax
	movq	%rax, 24(%rbx)
	movq	%rbx, (%r15)
	leaq	16(%rbx), %rdi
	leaq	-40(%rbp), %rsi
	callq	_oidcpy
	movq	%r14, 8(%rbx)
	movq	-48(%rbp), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_8
LBB0_6:
	movq	%r14, %rdi
	callq	_free
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_window,8,3                     ## @window
	.comm	_num_preferred_base,4,2         ## @num_preferred_base
	.comm	_the_repository,4,2             ## @the_repository
	.comm	_tree_type,4,2                  ## @tree_type
	.comm	_pbase_tree,8,3                 ## @pbase_tree
	.no_dead_strip	_add_preferred_base
.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
_add_preferred_base:                    ; @add_preferred_base
	.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
Lloh0:
	adrp	x8, _window@GOTPAGE
Lloh1:
	ldr	x8, [x8, _window@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _num_preferred_base@GOTPAGE
Lloh4:
	ldr	x9, [x9, _num_preferred_base@GOTPAGEOFF]
	ldrsw	x10, [x9]
	add	w11, w10, #1
	str	w11, [x9]
	cmp	x8, x10
	b.le	LBB0_7
; %bb.1:
	mov	x1, x0
Lloh5:
	adrp	x8, _the_repository@GOTPAGE
Lloh6:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _tree_type@GOTPAGE
Lloh9:
	ldr	x8, [x8, _tree_type@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x4, sp
	bl	_read_object_with_reference
	cbz	x0, LBB0_7
; %bb.2:
	mov	x19, x0
Lloh11:
	adrp	x21, _pbase_tree@GOTPAGE
Lloh12:
	ldr	x21, [x21, _pbase_tree@GOTPAGEOFF]
	ldr	x20, [x21]
	cbz	x20, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x20, #16
	mov	x1, sp
	bl	_oideq
	cbnz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x20, [x20, #24]
	cbnz	x20, LBB0_3
LBB0_5:
	mov	w0, #1
	mov	w1, #32
	bl	_xcalloc
	mov	x20, x0
	ldr	x8, [x21]
	str	x8, [x0, #24]
	str	x0, [x21]
	add	x0, x0, #16
	mov	x1, sp
	bl	_oidcpy
	ldr	x8, [sp, #8]
	stp	x8, x19, [x20]
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_free
LBB0_7:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_window,8,3                     ; @window
	.comm	_num_preferred_base,4,2         ; @num_preferred_base
	.comm	_the_repository,4,2             ; @the_repository
	.comm	_tree_type,4,2                  ; @tree_type
	.comm	_pbase_tree,8,3                 ; @pbase_tree
	.no_dead_strip	_add_preferred_base
.subsections_via_symbols
