	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function moea_decode_kernel_ptr
_moea_decode_kernel_ptr:                ## @moea_decode_kernel_ptr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rcx, %r8
	movq	_ADDR_SR_SHFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%esi, %eax
	sarl	%cl, %eax
	movq	_USER_ADDR@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	sarl	%cl, %edi
	xorl	%r9d, %r9d
	cmpl	%edi, %eax
	jne	LBB0_2
## %bb.1:
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_ADDR_PIDX@GOTPCREL(%rip), %r9
	movq	_ADDR_POFF@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	(%r9), %edi
	movl	(%rax), %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	andl	%esi, %edi
	orl	%edi, %eax
	movl	$1, %r9d
	movl	%eax, %esi
LBB0_2:
	movl	%esi, (%r8)
	movl	%r9d, (%rdx)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADDR_SR_SHFT,4,2               ## @ADDR_SR_SHFT
	.comm	_USER_ADDR,4,2                  ## @USER_ADDR
	.comm	_curthread,8,3                  ## @curthread
	.comm	_ADDR_PIDX,4,2                  ## @ADDR_PIDX
	.comm	_ADDR_POFF,4,2                  ## @ADDR_POFF
	.no_dead_strip	_moea_decode_kernel_ptr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function moea_decode_kernel_ptr
_moea_decode_kernel_ptr:                ; @moea_decode_kernel_ptr
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ADDR_SR_SHFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADDR_SR_SHFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	asr	w9, w1, w8
Lloh3:
	adrp	x10, _USER_ADDR@GOTPAGE
Lloh4:
	ldr	x10, [x10, _USER_ADDR@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	asr	w10, w10, w8
	cmp	w9, w10
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x9, _curthread@GOTPAGE
Lloh7:
	ldr	x9, [x9, _curthread@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	x9, [x9]
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _ADDR_PIDX@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ADDR_PIDX@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _ADDR_POFF@GOTPAGE
Lloh13:
	ldr	x11, [x11, _ADDR_POFF@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	orr	w10, w11, w10
	and	w10, w10, w1
	lsl	w8, w9, w8
	orr	w1, w10, w8
	mov	w8, #1
	b	LBB0_3
LBB0_2:
	mov	w8, #0
LBB0_3:
	str	w1, [x3]
	str	w8, [x2]
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ADDR_SR_SHFT,4,2               ; @ADDR_SR_SHFT
	.comm	_USER_ADDR,4,2                  ; @USER_ADDR
	.comm	_curthread,8,3                  ; @curthread
	.comm	_ADDR_PIDX,4,2                  ; @ADDR_PIDX
	.comm	_ADDR_POFF,4,2                  ; @ADDR_POFF
	.no_dead_strip	_moea_decode_kernel_ptr
.subsections_via_symbols
