	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmap_pkru_check_uargs
_pmap_pkru_check_uargs:                 ## @pmap_pkru_check_uargs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_PT_X86@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rax
	jne	LBB0_3
## %bb.1:
	movq	_PMAP_MAX_PKRU_IDX@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jl	LBB0_3
## %bb.2:
	movq	_AMD64_PKRU_PERSIST@GOTPCREL(%rip), %rax
	movq	_AMD64_PKRU_EXCL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	testl	%r8d, %ecx
	je	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
LBB0_10:
	popq	%rbp
	retq
LBB0_4:
	cmpq	%rsi, %rdx
	jle	LBB0_6
## %bb.5:
	movq	_VM_MAXUSER_ADDRESS@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jl	LBB0_6
## %bb.7:
	movq	_cpu_stdext_feature2@GOTPCREL(%rip), %rcx
	movq	_CPUID_STDEXT2_PKU@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	testl	%edx, (%rcx)
	jne	LBB0_10
## %bb.8:
	movq	_ENOTSUP@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_PT_X86,8,3                     ## @PT_X86
	.comm	_PMAP_MAX_PKRU_IDX,8,3          ## @PMAP_MAX_PKRU_IDX
	.comm	_AMD64_PKRU_PERSIST,4,2         ## @AMD64_PKRU_PERSIST
	.comm	_AMD64_PKRU_EXCL,4,2            ## @AMD64_PKRU_EXCL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VM_MAXUSER_ADDRESS,8,3         ## @VM_MAXUSER_ADDRESS
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_cpu_stdext_feature2,4,2        ## @cpu_stdext_feature2
	.comm	_CPUID_STDEXT2_PKU,4,2          ## @CPUID_STDEXT2_PKU
	.comm	_ENOTSUP,4,2                    ## @ENOTSUP
	.no_dead_strip	_pmap_pkru_check_uargs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmap_pkru_check_uargs
_pmap_pkru_check_uargs:                 ; @pmap_pkru_check_uargs
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PT_X86@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PT_X86@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _PMAP_MAX_PKRU_IDX@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PMAP_MAX_PKRU_IDX@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x10, x3, #8, eq
	b.lt	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _AMD64_PKRU_PERSIST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AMD64_PKRU_PERSIST@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _AMD64_PKRU_EXCL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AMD64_PKRU_EXCL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bics	wzr, w4, w8
	b.eq	LBB0_3
LBB0_2:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ret
LBB0_3:
	cmp	x2, x1
	b.le	LBB0_6
; %bb.4:
Lloh15:
	adrp	x8, _VM_MAXUSER_ADDRESS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VM_MAXUSER_ADDRESS@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x8, x2
	b.lt	LBB0_6
; %bb.5:
Lloh18:
	adrp	x8, _cpu_stdext_feature2@GOTPAGE
Lloh19:
	ldr	x8, [x8, _cpu_stdext_feature2@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _CPUID_STDEXT2_PKU@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CPUID_STDEXT2_PKU@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _ENOTSUP@GOTPAGE
Lloh25:
	ldr	x10, [x10, _ENOTSUP@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w0, w10, wzr, eq
	ret
LBB0_6:
Lloh27:
	adrp	x8, _EFAULT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_PT_X86,8,3                     ; @PT_X86
	.comm	_PMAP_MAX_PKRU_IDX,8,3          ; @PMAP_MAX_PKRU_IDX
	.comm	_AMD64_PKRU_PERSIST,4,2         ; @AMD64_PKRU_PERSIST
	.comm	_AMD64_PKRU_EXCL,4,2            ; @AMD64_PKRU_EXCL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VM_MAXUSER_ADDRESS,8,3         ; @VM_MAXUSER_ADDRESS
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_cpu_stdext_feature2,4,2        ; @cpu_stdext_feature2
	.comm	_CPUID_STDEXT2_PKU,4,2          ; @CPUID_STDEXT2_PKU
	.comm	_ENOTSUP,4,2                    ; @ENOTSUP
	.no_dead_strip	_pmap_pkru_check_uargs
.subsections_via_symbols
