	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arena_slab_alloc
_arena_slab_alloc:                      ## @arena_slab_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_tsdn_witness_tsdp_get
	movq	_WITNESS_RANK_CORE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_witness_assert_depth_to_rank
	movq	_EXTENT_HOOKS_INITIALIZER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movl	12(%r13), %edi
	callq	_sz_size2index
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	$0, -48(%rbp)
	movl	$1, -44(%rbp)
	leaq	4(%r14), %rcx
	movl	8(%r13), %r9d
	movq	_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-44(%rbp), %rbx
	leaq	-48(%rbp), %r10
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	pushq	%rbx
	pushq	%r10
	movq	%r15, %rbx
	pushq	%r15
	pushq	$1
	pushq	%rax
	pushq	$0
	callq	_extents_alloc
	addq	$48, %rsp
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_1
LBB0_5:
	movq	%r15, %rdi
	callq	_extent_slab_get
	movl	%eax, %edi
	callq	_assert
	movq	%r15, %rdi
	callq	_extent_slab_data_get
	movq	%rax, %rbx
	movl	4(%r13), %esi
	movq	%r15, %rdi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	callq	_extent_nfree_binshard_set
	movl	(%rbx), %edi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_bitmap_init
	movq	%r15, %rdi
	callq	_extent_size_get
	movq	_LG_PAGE@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_arena_nactive_add
LBB0_6:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, %rdi
	callq	_arena_may_have_muzzy
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	8(%r13), %r9d
	movq	_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	leaq	-44(%rbp), %rax
	pushq	%rax
	leaq	-48(%rbp), %rax
	pushq	%rax
	pushq	%rbx
	pushq	$1
	pushq	%r10
	pushq	$0
	callq	_extents_alloc
	addq	$48, %rsp
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_5
LBB0_3:
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r13, %rcx
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	callq	_arena_slab_alloc_hard
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_WITNESS_RANK_CORE,4,2          ## @WITNESS_RANK_CORE
	.comm	_EXTENT_HOOKS_INITIALIZER,8,3   ## @EXTENT_HOOKS_INITIALIZER
	.comm	_PAGE,4,2                       ## @PAGE
	.comm	_LG_PAGE,4,2                    ## @LG_PAGE
	.no_dead_strip	_arena_slab_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arena_slab_alloc
_arena_slab_alloc:                      ; @arena_slab_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x4
	mov	x21, x3
	mov	x24, x2
	mov	x19, x1
	mov	x22, x0
	bl	_tsdn_witness_tsdp_get
Lloh0:
	adrp	x8, _WITNESS_RANK_CORE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WITNESS_RANK_CORE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_witness_assert_depth_to_rank
Lloh3:
	adrp	x8, _EXTENT_HOOKS_INITIALIZER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EXTENT_HOOKS_INITIALIZER@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	w0, [x20, #12]
	bl	_sz_size2index
	mov	x23, x0
	mov	w8, #1
	stp	w8, wzr, [sp, #32]
	add	x3, x19, #4
	ldr	w5, [x20, #8]
Lloh6:
	adrp	x26, _PAGE@GOTPAGE
Lloh7:
	ldr	x26, [x26, _PAGE@GOTPAGEOFF]
	ldr	w7, [x26]
	add	x9, sp, #32
	add	x10, sp, #36
	stp	x10, x9, [sp, #8]
	stp	w8, w24, [sp]
	add	x2, sp, #40
	mov	x0, x22
	mov	x1, x19
	mov	x4, #0
	mov	w6, #0
	bl	_extents_alloc
	mov	x25, x0
	cbz	x0, LBB0_3
LBB0_1:
	mov	x0, x25
	bl	_extent_slab_get
	bl	_assert
	mov	x0, x25
	bl	_extent_slab_data_get
	mov	x22, x0
	ldr	w1, [x20, #4]
	mov	x0, x25
	mov	x2, x21
	bl	_extent_nfree_binshard_set
	ldr	w0, [x22]
	mov	x1, x20
	mov	w2, #0
	bl	_bitmap_init
	mov	x0, x25
	bl	_extent_size_get
Lloh8:
	adrp	x8, _LG_PAGE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LG_PAGE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	asr	w1, w0, w8
	mov	x0, x19
	bl	_arena_nactive_add
LBB0_2:
	mov	x0, x25
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_3:
	mov	x0, x19
	bl	_arena_may_have_muzzy
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w5, [x20, #8]
	ldr	w7, [x26]
	add	x8, sp, #32
	add	x9, sp, #36
	stp	x9, x8, [sp, #8]
	mov	w8, #1
	stp	w8, w24, [sp]
	add	x2, sp, #40
	mov	x0, x22
	mov	x1, x19
	mov	x3, x19
	mov	x4, #0
	mov	w6, #0
	bl	_extents_alloc
	mov	x25, x0
	cbnz	x0, LBB0_1
LBB0_5:
	add	x2, sp, #40
	mov	x0, x22
	mov	x1, x19
	mov	x3, x20
	mov	x4, x23
	bl	_arena_slab_alloc_hard
	mov	x25, x0
	cbnz	x0, LBB0_1
	b	LBB0_2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_WITNESS_RANK_CORE,4,2          ; @WITNESS_RANK_CORE
	.comm	_EXTENT_HOOKS_INITIALIZER,8,3   ; @EXTENT_HOOKS_INITIALIZER
	.comm	_PAGE,4,2                       ; @PAGE
	.comm	_LG_PAGE,4,2                    ; @LG_PAGE
	.no_dead_strip	_arena_slab_alloc
.subsections_via_symbols
