	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_arena
_alloc_arena:                           ## @alloc_arena
	.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, %r14
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$96, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	8(%r12), %rax
	movq	%rax, 88(%rbx)
	movl	16(%r12), %eax
	movl	%eax, 84(%rbx)
	movq	%rbx, %rdi
	addq	$80, %rdi
	callq	_mutex_init
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	movq	%r15, (%rbx)
	movq	%r13, 8(%rbx)
	movl	(%r12), %edi
	movl	%edi, 16(%rbx)
	movq	_INT_LBASIZE_ALIGNMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_roundup
	movq	%rax, 64(%rbx)
	movq	_BTT_DEFAULT_NFREE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 20(%rbx)
	movq	8(%r12), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 76(%rbx)
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	movq	_BTT_PG_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rax, %r12
	movl	%r15d, %eax
	cltd
	idivl	%esi
	subl	%edx, %r15d
	subl	%esi, %r15d
	subl	%esi, %r15d
	movq	_LOG_GRP_SIZE@GOTPCREL(%rip), %rax
	imull	(%rax), %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_roundup
	movl	%r15d, %r13d
	subl	%eax, %r13d
	movl	%r13d, %edi
	subl	(%r12), %edi
	movq	_MAP_ENT_SIZE@GOTPCREL(%rip), %r12
	movslq	(%r12), %rsi
	addq	64(%rbx), %rsi
	callq	_div_u64
	movl	%eax, 24(%rbx)
	subl	20(%rbx), %eax
	movl	%eax, 28(%rbx)
	imull	(%r12), %eax
	movq	_BTT_PG_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_roundup
	movl	%r13d, %ecx
	subl	%eax, %ecx
	movq	%r14, 32(%rbx)
	movq	_BTT_PG_SIZE@GOTPCREL(%rip), %rax
	addl	(%rax), %r14d
	movl	%r14d, 40(%rbx)
	addl	%r14d, %ecx
	movl	%ecx, 44(%rbx)
	addl	%r14d, %r13d
	movl	%r13d, 48(%rbx)
	addl	%r15d, %r14d
	movl	%r14d, 52(%rbx)
	movq	56(%rbx), %rax
	movabsq	$4294967296, %rcx               ## imm = 0x100000000
	movq	%rcx, (%rax)
LBB0_3:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_INT_LBASIZE_ALIGNMENT,4,2      ## @INT_LBASIZE_ALIGNMENT
	.comm	_BTT_DEFAULT_NFREE,4,2          ## @BTT_DEFAULT_NFREE
	.comm	_BTT_PG_SIZE,4,2                ## @BTT_PG_SIZE
	.comm	_LOG_GRP_SIZE,4,2               ## @LOG_GRP_SIZE
	.comm	_MAP_ENT_SIZE,4,2               ## @MAP_ENT_SIZE
	.no_dead_strip	_alloc_arena
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function alloc_arena
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_alloc_arena:                           ; @alloc_arena
	.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	x23, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #96
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x22, #8]
	str	x8, [x19, #88]
	ldr	w8, [x22, #16]
	str	w8, [x19, #84]
	add	x0, x19, #80
	bl	_mutex_init
	cbz	x21, LBB0_3
; %bb.2:
	stp	x21, x23, [x19]
	ldr	w0, [x22]
	str	w0, [x19, #16]
Lloh3:
	adrp	x8, _INT_LBASIZE_ALIGNMENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INT_LBASIZE_ALIGNMENT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_roundup
	str	x0, [x19, #64]
Lloh6:
	adrp	x8, _BTT_DEFAULT_NFREE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BTT_DEFAULT_NFREE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	ldr	x9, [x22, #8]
	ldr	d0, [x9]
	str	d0, [x19, #72]
Lloh9:
	adrp	x22, _BTT_PG_SIZE@GOTPAGE
Lloh10:
	ldr	x22, [x22, _BTT_PG_SIZE@GOTPAGEOFF]
	ldr	w1, [x22]
	sdiv	w9, w21, w1
	mul	w9, w9, w1
	sub	w21, w9, w1, lsl #1
Lloh11:
	adrp	x9, _LOG_GRP_SIZE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _LOG_GRP_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	mul	w0, w9, w8
	bl	_roundup
	ldr	w8, [x22]
	sub	w23, w21, w0
	sub	w0, w23, w8
	ldr	x8, [x19, #64]
Lloh14:
	adrp	x24, _MAP_ENT_SIZE@GOTPAGE
Lloh15:
	ldr	x24, [x24, _MAP_ENT_SIZE@GOTPAGEOFF]
	ldrsw	x9, [x24]
	add	x1, x8, x9
	bl	_div_u64
	ldr	w8, [x19, #20]
	sub	w8, w0, w8
	stp	w0, w8, [x19, #24]
	ldr	w9, [x24]
	mul	w0, w9, w8
	ldr	w1, [x22]
	bl	_roundup
	sub	w8, w23, w0
	str	x20, [x19, #32]
	ldr	w9, [x22]
	add	w9, w9, w20
	add	w8, w8, w9
	stp	w9, w8, [x19, #40]
	add	w8, w9, w23
	add	w9, w9, w21
	stp	w8, w9, [x19, #48]
	ldr	x8, [x19, #56]
Lloh16:
	adrp	x9, lCPI0_0@PAGE
Lloh17:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8]
LBB0_3:
	mov	x0, x19
	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 AdrpLdr	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_INT_LBASIZE_ALIGNMENT,4,2      ; @INT_LBASIZE_ALIGNMENT
	.comm	_BTT_DEFAULT_NFREE,4,2          ; @BTT_DEFAULT_NFREE
	.comm	_BTT_PG_SIZE,4,2                ; @BTT_PG_SIZE
	.comm	_LOG_GRP_SIZE,4,2               ; @LOG_GRP_SIZE
	.comm	_MAP_ENT_SIZE,4,2               ; @MAP_ENT_SIZE
	.no_dead_strip	_alloc_arena
.subsections_via_symbols
