	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kva_alloc                      ## -- Begin function kva_alloc
	.p2align	4, 0x90
_kva_alloc:                             ## @kva_alloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	callq	_round_page
	movq	_kernel_arena@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_M_BESTFIT@GOTPCREL(%rip), %rcx
	movq	_M_NOWAIT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	leaq	-4(%rbp), %rcx
	movl	%eax, %esi
	callq	_vmem_alloc
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_2
## %bb.1:
	movl	-4(%rbp), %eax
LBB0_2:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kernel_arena,4,2               ## @kernel_arena
	.comm	_M_BESTFIT,4,2                  ## @M_BESTFIT
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kva_alloc                      ; -- Begin function kva_alloc
	.p2align	2
_kva_alloc:                             ; @kva_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_round_page
	mov	x1, x0
Lloh0:
	adrp	x8, _kernel_arena@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kernel_arena@GOTPAGEOFF]
Lloh2:
	adrp	x9, _M_BESTFIT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _M_BESTFIT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _M_NOWAIT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _M_NOWAIT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	sub	x3, x29, #4
	bl	_vmem_alloc
	ldur	w8, [x29, #-4]
	cmp	x0, #0
	csel	w0, w8, wzr, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_kernel_arena,4,2               ; @kernel_arena
	.comm	_M_BESTFIT,4,2                  ; @M_BESTFIT
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
.subsections_via_symbols
