	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function base_extent_alloc
_base_extent_alloc:                     ## @base_extent_alloc
	.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	%rcx, %r13
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	40(%rsi), %r12
	movq	%r12, %rsi
	callq	_malloc_mutex_assert_owner
	movq	%r15, %rdi
	callq	_base_extent_hooks_get
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_malloc_mutex_unlock
	movq	%r15, %rdi
	callq	_base_ind_get
	leaq	48(%r15), %r8
	leaq	44(%r15), %r9
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movl	%eax, %ecx
	pushq	%r13
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	callq	_base_block_alloc
	addq	$16, %rsp
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_malloc_mutex_lock
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	32(%r15), %rax
	movq	%rax, 16(%r14)
	movq	%r14, 32(%r15)
	movq	_config_stats@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.3:
	addq	$24, (%r15)
	movl	$24, %edi
	callq	_PAGE_CEILING
	addq	%rax, 8(%r15)
	movl	8(%r14), %eax
	addl	%eax, 16(%r15)
	xorl	%eax, %eax
	callq	_metadata_thp_madvise
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	_opt_metadata_thp@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_metadata_thp_auto@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	cmpl	$0, 24(%r15)
	je	LBB0_7
LBB0_6:
	xorl	%edi, %edi
	cmpl	$0, 20(%r15)
	setg	%dil
	callq	_assert
	movl	$24, %edi
	callq	_HUGEPAGE_CEILING
	movq	_LG_HUGEPAGE@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	addl	%eax, 20(%r15)
LBB0_7:
	movq	(%r15), %rax
	xorl	%edi, %edi
	cmpq	8(%r15), %rax
	setle	%dil
	callq	_assert
	movslq	16(%r15), %rax
	xorl	%edi, %edi
	cmpq	%rax, 8(%r15)
	setle	%dil
	callq	_assert
	movl	20(%r15), %eax
	movq	_LG_HUGEPAGE@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	xorl	%edi, %edi
	cmpl	16(%r15), %eax
	setle	%dil
	callq	_assert
	jmp	LBB0_8
LBB0_1:
	xorl	%r14d, %r14d
LBB0_8:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_config_stats,8,3               ## @config_stats
	.comm	_opt_metadata_thp,8,3           ## @opt_metadata_thp
	.comm	_metadata_thp_auto,8,3          ## @metadata_thp_auto
	.comm	_LG_HUGEPAGE,4,2                ## @LG_HUGEPAGE
	.no_dead_strip	_base_extent_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function base_extent_alloc
_base_extent_alloc:                     ; @base_extent_alloc
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	add	x23, x1, #40
	mov	x1, x23
	bl	_malloc_mutex_assert_owner
	mov	x0, x19
	bl	_base_extent_hooks_get
	mov	x24, x0
	mov	x0, x22
	mov	x1, x23
	bl	_malloc_mutex_unlock
	mov	x0, x19
	bl	_base_ind_get
	mov	x3, x0
	add	x4, x19, #48
	add	x5, x19, #44
	mov	x0, x22
	mov	x1, x19
	mov	x2, x24
	mov	x6, x21
	mov	x7, x20
	bl	_base_block_alloc
	mov	x20, x0
	mov	x0, x22
	mov	x1, x23
	bl	_malloc_mutex_lock
	cbz	x20, LBB0_7
; %bb.1:
	ldr	x8, [x19, #32]
	str	x8, [x20, #16]
	str	x20, [x19, #32]
Lloh0:
	adrp	x8, _config_stats@GOTPAGE
Lloh1:
	ldr	x8, [x8, _config_stats@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.2:
	ldr	x8, [x19]
	add	x8, x8, #24
	str	x8, [x19]
	mov	w0, #24
	bl	_PAGE_CEILING
	ldr	x8, [x19, #8]
	add	x8, x8, x0
	str	x8, [x19, #8]
	ldr	w8, [x20, #8]
	ldr	w9, [x19, #16]
	add	w8, w9, w8
	str	w8, [x19, #16]
	bl	_metadata_thp_madvise
Lloh3:
	adrp	x21, _LG_HUGEPAGE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _LG_HUGEPAGE@GOTPAGEOFF]
	cbz	x0, LBB0_6
; %bb.3:
Lloh5:
	adrp	x8, _opt_metadata_thp@GOTPAGE
Lloh6:
	ldr	x8, [x8, _opt_metadata_thp@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _metadata_thp_auto@GOTPAGE
Lloh9:
	ldr	x9, [x9, _metadata_thp_auto@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_6
LBB0_5:
	ldr	w8, [x19, #20]
	cmp	w8, #0
	cset	w0, gt
	bl	_assert
	mov	w0, #24
	bl	_HUGEPAGE_CEILING
	ldr	w8, [x21]
	asr	w8, w0, w8
	ldr	w9, [x19, #20]
	add	w8, w9, w8
	str	w8, [x19, #20]
LBB0_6:
	ldp	x8, x9, [x19]
	cmp	x8, x9
	cset	w0, le
	bl	_assert
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19, #16]
	cmp	x8, x9
	cset	w0, le
	bl	_assert
	ldr	w8, [x21]
	ldp	w10, w9, [x19, #16]
	lsl	w8, w9, w8
	cmp	w8, w10
	cset	w0, le
	bl	_assert
LBB0_7:
	mov	x0, x20
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_config_stats,8,3               ; @config_stats
	.comm	_opt_metadata_thp,8,3           ; @opt_metadata_thp
	.comm	_metadata_thp_auto,8,3          ; @metadata_thp_auto
	.comm	_LG_HUGEPAGE,4,2                ; @LG_HUGEPAGE
	.no_dead_strip	_base_extent_alloc
.subsections_via_symbols
