	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iopte_to_paddr
_iopte_to_paddr:                        ## @iopte_to_paddr
	.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
	movq	%rdx, %r15
	movl	%esi, %ebx
	movl	%edi, %r14d
	callq	_ARM_V7S_PTE_IS_TABLE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ARM_V7S_TABLE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_4
LBB0_2:
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_arm_v7s_pte_is_cont
	movq	%rax, %r12
	movl	%ebx, %edi
	callq	_ARM_V7S_LVL_MASK
	movl	%eax, %ebx
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	movq	_ARM_V7S_CONT_PAGES@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
LBB0_4:
	andl	%r14d, %ebx
	movq	%r15, %rdi
	callq	_arm_v7s_is_mtk_enabled
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	movq	_ARM_V7S_ATTR_MTK_PA_BIT32@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_7
## %bb.6:
	movl	$32, %edi
	callq	_BIT_ULL
	orl	%eax, %ebx
LBB0_7:
	movq	_ARM_V7S_ATTR_MTK_PA_BIT33@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_9
## %bb.8:
	movl	$33, %edi
	callq	_BIT_ULL
	orl	%eax, %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARM_V7S_TABLE_MASK,4,2         ## @ARM_V7S_TABLE_MASK
	.comm	_ARM_V7S_CONT_PAGES,4,2         ## @ARM_V7S_CONT_PAGES
	.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	_iopte_to_paddr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iopte_to_paddr
_iopte_to_paddr:                        ; @iopte_to_paddr
	.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	x20, x1
	mov	x19, x0
	bl	_ARM_V7S_PTE_IS_TABLE
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ARM_V7S_TABLE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARM_V7S_TABLE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_arm_v7s_pte_is_cont
	mov	x22, x0
	mov	x0, x20
	bl	_ARM_V7S_LVL_MASK
	cbz	x22, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _ARM_V7S_CONT_PAGES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARM_V7S_CONT_PAGES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mul	w0, w8, w0
LBB0_4:
	and	w20, w0, w19
	mov	x0, x21
	bl	_arm_v7s_is_mtk_enabled
	cbz	w0, LBB0_9
; %bb.5:
Lloh6:
	adrp	x8, _ARM_V7S_ATTR_MTK_PA_BIT32@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ARM_V7S_ATTR_MTK_PA_BIT32@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_7
; %bb.6:
	mov	w0, #32
	bl	_BIT_ULL
	orr	w20, w0, w20
LBB0_7:
Lloh9:
	adrp	x8, _ARM_V7S_ATTR_MTK_PA_BIT33@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ARM_V7S_ATTR_MTK_PA_BIT33@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_9
; %bb.8:
	mov	w0, #33
	bl	_BIT_ULL
	orr	w20, w0, w20
LBB0_9:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ARM_V7S_TABLE_MASK,4,2         ; @ARM_V7S_TABLE_MASK
	.comm	_ARM_V7S_CONT_PAGES,4,2         ; @ARM_V7S_CONT_PAGES
	.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	_iopte_to_paddr
.subsections_via_symbols
