	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function base_alloc_impl
_base_alloc_impl:                       ## @base_alloc_impl
	.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	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	%rcx, %rdi
	callq	_QUANTUM_CEILING
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_ALIGNMENT_CEILING
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	addq	%rax, %rbx
	movq	_QUANTUM@GOTPCREL(%rip), %rax
	subq	(%rax), %rbx
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_malloc_mutex_lock
	movq	%rbx, %rdi
	callq	_sz_size2index
	movq	_SC_NSIZES@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jae	LBB0_7
## %bb.1:
	movq	%rax, %r12
	movq	%rax, %r15
	shlq	$2, %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdi
	addq	%r15, %rdi
	callq	_extent_heap_remove_first
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	addq	$4, %r15
	cmpq	(%rbx), %r12
	jb	LBB0_3
LBB0_7:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rcx
	callq	_base_extent_alloc
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_5
## %bb.8:
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_4:
	movq	%rax, %r14
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_5:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_base_extent_bump_alloc
	movq	%rax, %r15
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.6:
	movq	%r14, %rdi
	callq	_extent_sn_get
	movq	%rax, (%rbx)
LBB0_9:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_malloc_mutex_unlock
	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,8,3                    ## @QUANTUM
	.comm	_SC_NSIZES,8,3                  ## @SC_NSIZES
	.no_dead_strip	_base_alloc_impl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function base_alloc_impl
_base_alloc_impl:                       ; @base_alloc_impl
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x4
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x3
	bl	_QUANTUM_CEILING
	mov	x22, x0
	mov	x0, x23
	mov	x1, x22
	bl	_ALIGNMENT_CEILING
	mov	x23, x0
Lloh0:
	adrp	x8, _QUANTUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QUANTUM@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x9, x0, x22
	sub	x24, x9, x8
	mov	x0, x20
	mov	x1, x19
	bl	_malloc_mutex_lock
	mov	x0, x24
	bl	_sz_size2index
Lloh3:
	adrp	x26, _SC_NSIZES@GOTPAGE
Lloh4:
	ldr	x26, [x26, _SC_NSIZES@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	b.hs	LBB0_4
; %bb.1:
	mov	x24, x0
	lsl	x27, x0, #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x27
	bl	_extent_heap_remove_first
	cbnz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x24, x24, #1
	ldr	x8, [x26]
	add	x27, x27, #4
	cmp	x24, x8
	b.lo	LBB0_2
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	mov	x3, x22
	bl	_base_extent_alloc
	mov	x25, x0
	cbnz	x0, LBB0_7
; %bb.5:
	mov	x22, #0
	b	LBB0_9
LBB0_6:
	mov	x25, x0
LBB0_7:
	mov	x0, x19
	mov	x1, x25
	mov	x2, x23
	mov	x3, x22
	bl	_base_extent_bump_alloc
	mov	x22, x0
	cbz	x21, LBB0_9
; %bb.8:
	mov	x0, x25
	bl	_extent_sn_get
	str	x0, [x21]
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	bl	_malloc_mutex_unlock
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_QUANTUM,8,3                    ; @QUANTUM
	.comm	_SC_NSIZES,8,3                  ; @SC_NSIZES
	.no_dead_strip	_base_alloc_impl
.subsections_via_symbols
