	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function base_block_alloc
_base_block_alloc:                      ## @base_block_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, %r14
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	16(%rbp), %r12
	movq	24(%rbp), %rdi
	movq	_QUANTUM@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_ALIGNMENT_CEILING
	movq	%rax, %r13
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_ALIGNMENT_CEILING
	movq	%rax, %rbx
	movl	$24, %edi
	movq	%r13, %rsi
	movq	%r14, %r13
	callq	_ALIGNMENT_CEILING
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_sz_psz2u
	movl	%eax, %edi
	callq	_HUGEPAGE_CEILING
	movq	%rax, %r12
	movl	(%r14), %ebx
	incl	%ebx
	movq	_SC_LARGE_MAXCLASS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_sz_psz2ind
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	setl	%dil
	addl	(%r14), %edi
	callq	_sz_pind2sz
	movl	%eax, %edi
	callq	_HUGEPAGE_CEILING
	movq	%rax, %rbx
	cmpq	%rax, %r12
	cmovaq	%r12, %rbx
	movq	%r15, %r12
	movq	%r15, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	%rbx, %rcx
	callq	_base_map
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_metadata_thp_madvise
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	_HUGEPAGE_MASK@GOTPCREL(%rip), %rax
	movq	%r14, %rcx
	orq	%rbx, %rcx
	xorl	%edi, %edi
	andq	(%rax), %rcx
	sete	%dil
	callq	_assert
	movq	_opt_metadata_thp@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_metadata_thp_always@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_pages_huge
	jmp	LBB0_10
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_5:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_10
## %bb.6:
	movq	_metadata_thp_auto@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.7:
	movq	%r12, %rdi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_malloc_mutex_lock
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_base_auto_thp_switch
	cmpq	$0, 8(%r15)
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_pages_huge
LBB0_9:
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_malloc_mutex_unlock
LBB0_10:
	movq	%rbx, %rdi
	callq	_sz_psz2ind
	movl	%eax, (%r13)
	movq	%rbx, (%r14)
	movq	$0, 16(%r14)
	xorl	%edi, %edi
	cmpq	$24, %rbx
	setae	%dil
	callq	_assert
	leaq	8(%r14), %rsi
	movq	%r14, %rdx
	addq	$24, %rdx
	addq	$-24, %rbx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_base_extent_init
LBB0_11:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QUANTUM,8,3                    ## @QUANTUM
	.comm	_SC_LARGE_MAXCLASS,8,3          ## @SC_LARGE_MAXCLASS
	.comm	_HUGEPAGE_MASK,8,3              ## @HUGEPAGE_MASK
	.comm	_opt_metadata_thp,8,3           ## @opt_metadata_thp
	.comm	_metadata_thp_always,8,3        ## @metadata_thp_always
	.comm	_metadata_thp_auto,8,3          ## @metadata_thp_auto
	.no_dead_strip	_base_block_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function base_block_alloc
_base_block_alloc:                      ; @base_block_alloc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x6
	mov	x19, x5
	mov	x20, x4
	mov	x23, x3
	mov	x25, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _QUANTUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QUANTUM@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	mov	x0, x7
	bl	_ALIGNMENT_CEILING
	mov	x26, x0
	mov	x0, x24
	mov	x1, x26
	bl	_ALIGNMENT_CEILING
	mov	x24, x0
	mov	w0, #24
	mov	x1, x26
	bl	_ALIGNMENT_CEILING
	add	x0, x0, x24
	bl	_sz_psz2u
	bl	_HUGEPAGE_CEILING
	mov	x24, x0
	ldr	w8, [x20]
	add	w26, w8, #1
Lloh3:
	adrp	x8, _SC_LARGE_MAXCLASS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SC_LARGE_MAXCLASS@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	bl	_sz_psz2ind
	cmp	w26, w0
	ldr	w8, [x20]
	cinc	w0, w8, lt
	bl	_sz_pind2sz
	bl	_HUGEPAGE_CEILING
	cmp	x24, x0
	csel	x24, x24, x0, hi
	mov	x0, x22
	mov	x1, x25
	mov	x2, x23
	mov	x3, x24
	bl	_base_map
	mov	x23, x0
	cbz	x0, LBB0_10
; %bb.1:
	bl	_metadata_thp_madvise
	cbz	x0, LBB0_9
; %bb.2:
Lloh6:
	adrp	x8, _HUGEPAGE_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HUGEPAGE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	orr	x9, x23, x24
	tst	x8, x9
	cset	w0, eq
	bl	_assert
Lloh9:
	adrp	x8, _opt_metadata_thp@GOTPAGE
Lloh10:
	ldr	x8, [x8, _opt_metadata_thp@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _metadata_thp_always@GOTPAGE
Lloh13:
	ldr	x9, [x9, _metadata_thp_always@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x23
	mov	x1, x24
	bl	_pages_huge
	b	LBB0_9
LBB0_4:
	cbz	x21, LBB0_9
; %bb.5:
Lloh15:
	adrp	x9, _metadata_thp_auto@GOTPAGE
Lloh16:
	ldr	x9, [x9, _metadata_thp_auto@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.6:
	mov	x0, x22
	mov	x1, x21
	bl	_malloc_mutex_lock
	mov	x0, x22
	mov	x1, x21
	bl	_base_auto_thp_switch
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x23
	mov	x1, x24
	bl	_pages_huge
LBB0_8:
	mov	x0, x22
	mov	x1, x21
	bl	_malloc_mutex_unlock
LBB0_9:
	mov	x0, x24
	bl	_sz_psz2ind
	str	w0, [x20]
	str	x24, [x23]
	str	xzr, [x23, #16]
	cmp	x24, #23
	cset	w0, hi
	bl	_assert
	add	x1, x23, #8
	add	x2, x23, #24
	sub	x3, x24, #24
	mov	x0, x19
	bl	_base_extent_init
LBB0_10:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_QUANTUM,8,3                    ; @QUANTUM
	.comm	_SC_LARGE_MAXCLASS,8,3          ; @SC_LARGE_MAXCLASS
	.comm	_HUGEPAGE_MASK,8,3              ; @HUGEPAGE_MASK
	.comm	_opt_metadata_thp,8,3           ; @opt_metadata_thp
	.comm	_metadata_thp_always,8,3        ; @metadata_thp_always
	.comm	_metadata_thp_auto,8,3          ; @metadata_thp_auto
	.no_dead_strip	_base_block_alloc
.subsections_via_symbols
