	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rk_mk_pte
_rk_mk_pte:                             ## @rk_mk_pte
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %eax
	movq	_IOMMU_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%esi, %ecx
	je	LBB0_2
## %bb.1:
	movq	_RK_PTE_PAGE_READABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	movq	_IOMMU_WRITE@GOTPCREL(%rip), %rdx
	andl	(%rdx), %esi
	je	LBB0_4
## %bb.3:
	movq	_RK_PTE_PAGE_WRITABLE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
LBB0_4:
	orl	%ecx, %esi
	movq	_RK_PTE_PAGE_ADDRESS_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	orl	%esi, %eax
	movq	_RK_PTE_PAGE_VALID@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IOMMU_READ,4,2                 ## @IOMMU_READ
	.comm	_RK_PTE_PAGE_READABLE,4,2       ## @RK_PTE_PAGE_READABLE
	.comm	_IOMMU_WRITE,4,2                ## @IOMMU_WRITE
	.comm	_RK_PTE_PAGE_WRITABLE,4,2       ## @RK_PTE_PAGE_WRITABLE
	.comm	_RK_PTE_PAGE_ADDRESS_MASK,4,2   ## @RK_PTE_PAGE_ADDRESS_MASK
	.comm	_RK_PTE_PAGE_VALID,4,2          ## @RK_PTE_PAGE_VALID
	.no_dead_strip	_rk_mk_pte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rk_mk_pte
_rk_mk_pte:                             ; @rk_mk_pte
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _IOMMU_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IOMMU_READ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _RK_PTE_PAGE_READABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RK_PTE_PAGE_READABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w8, w1
Lloh6:
	adrp	x8, _IOMMU_WRITE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IOMMU_WRITE@GOTPAGEOFF]
	csel	w9, wzr, w9, eq
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x10, _RK_PTE_PAGE_WRITABLE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _RK_PTE_PAGE_WRITABLE@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w8, w1
	csel	w8, wzr, w10, eq
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _RK_PTE_PAGE_ADDRESS_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RK_PTE_PAGE_ADDRESS_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w9, w9, w0
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _RK_PTE_PAGE_VALID@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RK_PTE_PAGE_VALID@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IOMMU_READ,4,2                 ; @IOMMU_READ
	.comm	_RK_PTE_PAGE_READABLE,4,2       ; @RK_PTE_PAGE_READABLE
	.comm	_IOMMU_WRITE,4,2                ; @IOMMU_WRITE
	.comm	_RK_PTE_PAGE_WRITABLE,4,2       ; @RK_PTE_PAGE_WRITABLE
	.comm	_RK_PTE_PAGE_ADDRESS_MASK,4,2   ; @RK_PTE_PAGE_ADDRESS_MASK
	.comm	_RK_PTE_PAGE_VALID,4,2          ; @RK_PTE_PAGE_VALID
	.no_dead_strip	_rk_mk_pte
.subsections_via_symbols
