	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function paddr_to_iopte
_paddr_to_iopte:                        ## @paddr_to_iopte
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%edi, %r14d
	movl	%esi, %edi
	callq	_ARM_V7S_LVL_MASK
	movl	%eax, %r15d
	andl	%r14d, %r15d
	movq	%rbx, %rdi
	callq	_arm_v7s_is_mtk_enabled
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	$32, %edi
	callq	_BIT_ULL
	movl	%eax, %ebx
	andl	%r14d, %ebx
	je	LBB0_3
## %bb.2:
	movq	_ARM_V7S_ATTR_MTK_PA_BIT32@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_3:
	orl	%r15d, %ebx
	movl	$33, %edi
	callq	_BIT_ULL
	andl	%r14d, %eax
	je	LBB0_5
## %bb.4:
	movq	_ARM_V7S_ATTR_MTK_PA_BIT33@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	orl	%eax, %ebx
	movl	%ebx, %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARM_V7S_ATTR_MTK_PA_BIT32,4,2  ## @ARM_V7S_ATTR_MTK_PA_BIT32
	.comm	_ARM_V7S_ATTR_MTK_PA_BIT33,4,2  ## @ARM_V7S_ATTR_MTK_PA_BIT33
	.no_dead_strip	_paddr_to_iopte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function paddr_to_iopte
_paddr_to_iopte:                        ; @paddr_to_iopte
	.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	x21, x2
	mov	x19, x0
	mov	x0, x1
	bl	_ARM_V7S_LVL_MASK
	and	w20, w0, w19
	mov	x0, x21
	bl	_arm_v7s_is_mtk_enabled
	cbz	w0, LBB0_2
; %bb.1:
	mov	w0, #32
	bl	_BIT_ULL
Lloh0:
	adrp	x8, _ARM_V7S_ATTR_MTK_PA_BIT32@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARM_V7S_ATTR_MTK_PA_BIT32@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w0, w19
	csel	w8, wzr, w8, eq
	orr	w20, w8, w20
	mov	w0, #33
	bl	_BIT_ULL
Lloh3:
	adrp	x8, _ARM_V7S_ATTR_MTK_PA_BIT33@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARM_V7S_ATTR_MTK_PA_BIT33@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w0, w19
	csel	w8, wzr, w8, eq
	orr	w20, w20, w8
LBB0_2:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ARM_V7S_ATTR_MTK_PA_BIT32,4,2  ; @ARM_V7S_ATTR_MTK_PA_BIT32
	.comm	_ARM_V7S_ATTR_MTK_PA_BIT33,4,2  ; @ARM_V7S_ATTR_MTK_PA_BIT33
	.no_dead_strip	_paddr_to_iopte
.subsections_via_symbols
