	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kernacc                        ## -- Begin function kernacc
	.p2align	4, 0x90
_kernacc:                               ## @kernacc
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_VM_PROT_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	xorl	%edi, %edi
	testl	%edx, %eax
	sete	%dil
	movslq	%edx, %rsi
	callq	_KASSERT
	movq	_kernel_map@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_vm_map_max
	testl	%ebx, %ebx
	js	LBB0_2
## %bb.1:
	movslq	%ebx, %rbx
	addq	%r14, %rbx
	cmpq	%rax, %rbx
	jg	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	callq	_trunc_page
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_round_page
	movq	%rax, %rbx
	movl	(%r12), %edi
	callq	_vm_map_lock_read
	movl	(%r12), %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	callq	_vm_map_check_protection
	movq	%rax, %rbx
	movl	(%r12), %edi
	callq	_vm_map_unlock_read
	movq	_TRUE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	(%rcx), %rbx
	sete	%al
	jmp	LBB0_4
LBB0_2:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_PROT_ALL,4,2                ## @VM_PROT_ALL
	.comm	_kernel_map,4,2                 ## @kernel_map
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,8,3                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kernacc                        ; -- Begin function kernacc
	.p2align	2
_kernacc:                               ; @kernacc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _VM_PROT_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VM_PROT_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bics	wzr, w2, w8
	cset	w0, eq
	sxtw	x1, w19
	bl	_KASSERT
Lloh3:
	adrp	x22, _kernel_map@GOTPAGE
Lloh4:
	ldr	x22, [x22, _kernel_map@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_vm_map_max
	tbnz	w21, #31, LBB0_3
; %bb.1:
	add	x21, x20, w21, sxtw
	cmp	x21, x0
	b.gt	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_trunc_page
	mov	x20, x0
	mov	x0, x21
	bl	_round_page
	mov	x21, x0
	ldr	w0, [x22]
	bl	_vm_map_lock_read
	ldr	w0, [x22]
	mov	x1, x20
	mov	x2, x21
	mov	x3, x19
	bl	_vm_map_check_protection
	mov	x19, x0
	ldr	w0, [x22]
	bl	_vm_map_unlock_read
Lloh5:
	adrp	x8, _TRUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x19, x8
	cset	w0, eq
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_PROT_ALL,4,2                ; @VM_PROT_ALL
	.comm	_kernel_map,4,2                 ; @kernel_map
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,8,3                       ; @TRUE
.subsections_via_symbols
