	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_base_new                       ## -- Begin function base_new
	.p2align	4, 0x90
_base_new:                              ## @base_new
	.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	%rdx, %r12
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movl	$0, -44(%rbp)
	movq	$0, -64(%rbp)
	movq	_QUANTUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r15d, %r15d
	leaq	-44(%rbp), %r8
	leaq	-64(%rbp), %r9
	xorl	%esi, %esi
	movl	%r13d, %ecx
	pushq	%rax
	pushq	$72
	callq	_base_block_alloc
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %r14
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_CACHELINE@GOTPCREL(%rip), %rax
	movq	%r12, %r15
	movq	(%rax), %rbx
	movl	$72, %edi
	movq	%rbx, %rsi
	callq	_ALIGNMENT_CEILING
	movq	%r14, %r12
	addq	$4, %r12
	leaq	-80(%rbp), %rsi
	movq	%r12, %rdi
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdx
	movq	%rbx, %rcx
	movq	%r15, %rbx
	callq	_base_extent_bump_alloc_helper
	movq	%rax, %r15
	movl	%r13d, (%rax)
	leaq	64(%rax), %rdi
	movq	_ATOMIC_RELAXED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_atomic_store_p
	leaq	60(%r15), %rdi
	movq	_WITNESS_RANK_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_malloc_mutex_rank_exclusive@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_malloc_mutex_init
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%r14), %r8d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r13d, %edx
	movq	%r14, %rcx
	callq	_base_unmap
	xorl	%r15d, %r15d
	jmp	LBB0_12
LBB0_3:
	movl	-44(%rbp), %eax
	movl	%eax, 56(%r15)
	movq	-64(%rbp), %rax
	movq	%rax, 8(%r15)
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, 48(%r15)
	movl	$0, 16(%r15)
	movq	_SC_NSIZES@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_6
## %bb.4:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r15), %rdi
	addq	%r13, %rdi
	callq	_extent_heap_new
	incq	%rbx
	addq	$4, %r13
	cmpq	(%r14), %rbx
	jb	LBB0_5
LBB0_6:
	movq	_config_stats@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_11
## %bb.7:
	movl	$8, 20(%r15)
	movl	$8, %edi
	callq	_PAGE_CEILING
	movl	%eax, 24(%r15)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 28(%r15)
	movq	_opt_metadata_thp@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_metadata_thp_always@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.8:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_metadata_thp_madvise
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	$8, %edi
	callq	_HUGEPAGE_CEILING
	movl	%eax, %r14d
	movq	_LG_HUGEPAGE@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r14d
LBB0_10:
	movl	%r14d, 32(%r15)
	movl	20(%r15), %eax
	xorl	%edi, %edi
	cmpl	24(%r15), %eax
	setle	%dil
	callq	_assert
	movl	24(%r15), %eax
	xorl	%edi, %edi
	cmpl	28(%r15), %eax
	setle	%dil
	callq	_assert
	movl	32(%r15), %eax
	movq	_LG_HUGEPAGE@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	xorl	%edi, %edi
	cmpl	28(%r15), %eax
	setle	%dil
	callq	_assert
LBB0_11:
	movq	-80(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r15, %rcx
	movq	%r13, %r8
	callq	_base_extent_bump_alloc_post
LBB0_12:
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QUANTUM,4,2                    ## @QUANTUM
	.comm	_CACHELINE,8,3                  ## @CACHELINE
	.comm	_ATOMIC_RELAXED,4,2             ## @ATOMIC_RELAXED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"base"

	.comm	_WITNESS_RANK_BASE,4,2          ## @WITNESS_RANK_BASE
	.comm	_malloc_mutex_rank_exclusive,4,2 ## @malloc_mutex_rank_exclusive
	.comm	_SC_NSIZES,8,3                  ## @SC_NSIZES
	.comm	_config_stats,8,3               ## @config_stats
	.comm	_opt_metadata_thp,8,3           ## @opt_metadata_thp
	.comm	_metadata_thp_always,8,3        ## @metadata_thp_always
	.comm	_LG_HUGEPAGE,4,2                ## @LG_HUGEPAGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_base_new                       ; -- Begin function base_new
	.p2align	2
_base_new:                              ; @base_new
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x2
	mov	x23, x1
	mov	x25, x0
	str	wzr, [sp, #28]
	str	xzr, [sp, #16]
Lloh0:
	adrp	x8, _QUANTUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QUANTUM@GOTPAGEOFF]
Lloh2:
	ldr	w7, [x8]
	add	x4, sp, #28
	add	x5, sp, #16
	mov	x1, #0
	mov	x3, x23
	mov	w6, #72
	bl	_base_block_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
Lloh3:
	adrp	x8, _CACHELINE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CACHELINE@GOTPAGEOFF]
Lloh5:
	ldr	x19, [x8]
	mov	w0, #72
	mov	x1, x19
	bl	_ALIGNMENT_CEILING
	mov	x20, x0
	add	x21, x22, #4
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_base_extent_bump_alloc_helper
	mov	x19, x0
	mov	x26, x0
	str	w23, [x26], #60
	add	x0, x0, #64
Lloh6:
	adrp	x8, _ATOMIC_RELAXED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATOMIC_RELAXED@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, x24
	bl	_atomic_store_p
Lloh9:
	adrp	x8, _WITNESS_RANK_BASE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WITNESS_RANK_BASE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _malloc_mutex_rank_exclusive@GOTPAGE
Lloh13:
	ldr	x8, [x8, _malloc_mutex_rank_exclusive@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x26
	bl	_malloc_mutex_init
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w4, [x22]
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	bl	_base_unmap
LBB0_3:
	mov	x19, #0
	b	LBB0_14
LBB0_4:
	ldr	w8, [sp, #28]
	str	w8, [x19, #56]
	ldr	x8, [sp, #16]
	str	x8, [x19, #8]
	str	x22, [x19, #48]
	str	wzr, [x19, #16]
Lloh17:
	adrp	x23, _SC_NSIZES@GOTPAGE
Lloh18:
	ldr	x23, [x23, _SC_NSIZES@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_7
; %bb.5:
	mov	x24, #0
	mov	x25, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	add	x0, x8, x24
	bl	_extent_heap_new
	add	x25, x25, #1
	ldr	x8, [x23]
	add	x24, x24, #4
	cmp	x25, x8
	b.lo	LBB0_6
LBB0_7:
Lloh19:
	adrp	x8, _config_stats@GOTPAGE
Lloh20:
	ldr	x8, [x8, _config_stats@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.8:
	mov	w8, #8
	str	w8, [x19, #20]
	mov	w0, #8
	bl	_PAGE_CEILING
	str	w0, [x19, #24]
	ldr	w8, [x22]
	str	w8, [x19, #28]
Lloh22:
	adrp	x8, _opt_metadata_thp@GOTPAGE
Lloh23:
	ldr	x8, [x8, _opt_metadata_thp@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
Lloh25:
	adrp	x9, _metadata_thp_always@GOTPAGE
Lloh26:
	ldr	x9, [x9, _metadata_thp_always@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
Lloh28:
	adrp	x22, _LG_HUGEPAGE@GOTPAGE
Lloh29:
	ldr	x22, [x22, _LG_HUGEPAGE@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
	bl	_metadata_thp_madvise
	cbz	x0, LBB0_11
; %bb.10:
	mov	w0, #8
	bl	_HUGEPAGE_CEILING
	ldr	w8, [x22]
	asr	w8, w0, w8
	b	LBB0_12
LBB0_11:
	mov	w8, #0
LBB0_12:
	str	w8, [x19, #32]
	ldp	w8, w9, [x19, #20]
	cmp	w8, w9
	cset	w0, le
	bl	_assert
	ldp	w8, w9, [x19, #24]
	cmp	w8, w9
	cset	w0, le
	bl	_assert
	ldr	w8, [x22]
	ldp	w10, w9, [x19, #28]
	lsl	w8, w9, w8
	cmp	w8, w10
	cset	w0, le
	bl	_assert
LBB0_13:
	ldr	x2, [sp, #8]
	mov	x0, x19
	mov	x1, x21
	mov	x3, x19
	mov	x4, x20
	bl	_base_extent_bump_alloc_post
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_QUANTUM,4,2                    ; @QUANTUM
	.comm	_CACHELINE,8,3                  ; @CACHELINE
	.comm	_ATOMIC_RELAXED,4,2             ; @ATOMIC_RELAXED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"base"

	.comm	_WITNESS_RANK_BASE,4,2          ; @WITNESS_RANK_BASE
	.comm	_malloc_mutex_rank_exclusive,4,2 ; @malloc_mutex_rank_exclusive
	.comm	_SC_NSIZES,8,3                  ; @SC_NSIZES
	.comm	_config_stats,8,3               ; @config_stats
	.comm	_opt_metadata_thp,8,3           ; @opt_metadata_thp
	.comm	_metadata_thp_always,8,3        ; @metadata_thp_always
	.comm	_LG_HUGEPAGE,4,2                ; @LG_HUGEPAGE
.subsections_via_symbols
