	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_v7s_pte_to_prot
_arm_v7s_pte_to_prot:                   ## @arm_v7s_pte_to_prot
	.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
	movl	%esi, %r14d
	movl	%edi, %r15d
	movq	_IOMMU_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%esi, %edi
	callq	_ARM_V7S_ATTR_SHIFT
	movl	%r15d, %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movq	_ARM_V7S_PTE_AP_RDONLY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	movl	$0, %ebx
	testl	%edx, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	_IOMMU_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_2:
	orl	%r12d, %ebx
	movq	_ARM_V7S_PTE_AP_UNPRIV@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	_IOMMU_PRIV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	orl	%eax, %ebx
	movq	_ARM_V7S_TEX_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ARM_V7S_TEX_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	testl	%edx, %eax
	je	LBB0_5
## %bb.6:
	movq	_ARM_V7S_ATTR_C@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_9
## %bb.7:
	movq	_IOMMU_CACHE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	_IOMMU_MMIO@GOTPCREL(%rip), %rax
LBB0_8:
	orl	(%rax), %ebx
LBB0_9:
	movl	%r14d, %edi
	callq	_ARM_V7S_ATTR_XN
	andl	%r15d, %eax
	je	LBB0_11
## %bb.10:
	movq	_IOMMU_NOEXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	orl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IOMMU_READ,4,2                 ## @IOMMU_READ
	.comm	_ARM_V7S_PTE_AP_RDONLY,4,2      ## @ARM_V7S_PTE_AP_RDONLY
	.comm	_IOMMU_WRITE,4,2                ## @IOMMU_WRITE
	.comm	_ARM_V7S_PTE_AP_UNPRIV,4,2      ## @ARM_V7S_PTE_AP_UNPRIV
	.comm	_IOMMU_PRIV,4,2                 ## @IOMMU_PRIV
	.comm	_ARM_V7S_TEX_MASK,4,2           ## @ARM_V7S_TEX_MASK
	.comm	_ARM_V7S_TEX_SHIFT,4,2          ## @ARM_V7S_TEX_SHIFT
	.comm	_IOMMU_MMIO,4,2                 ## @IOMMU_MMIO
	.comm	_ARM_V7S_ATTR_C,4,2             ## @ARM_V7S_ATTR_C
	.comm	_IOMMU_CACHE,4,2                ## @IOMMU_CACHE
	.comm	_IOMMU_NOEXEC,4,2               ## @IOMMU_NOEXEC
	.no_dead_strip	_arm_v7s_pte_to_prot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_v7s_pte_to_prot
_arm_v7s_pte_to_prot:                   ; @arm_v7s_pte_to_prot
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _IOMMU_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IOMMU_READ@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x1
	bl	_ARM_V7S_ATTR_SHIFT
	asr	w8, w19, w0
Lloh3:
	adrp	x9, _ARM_V7S_PTE_AP_RDONLY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ARM_V7S_PTE_AP_RDONLY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _IOMMU_WRITE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IOMMU_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w8, w9
	csel	w9, w10, wzr, eq
	orr	w9, w9, w21
Lloh9:
	adrp	x10, _ARM_V7S_PTE_AP_UNPRIV@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ARM_V7S_PTE_AP_UNPRIV@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _IOMMU_PRIV@GOTPAGE
Lloh13:
	ldr	x11, [x11, _IOMMU_PRIV@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w10, w11, wzr, eq
	orr	w21, w9, w10
Lloh15:
	adrp	x9, _ARM_V7S_TEX_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ARM_V7S_TEX_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _ARM_V7S_TEX_SHIFT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _ARM_V7S_TEX_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh21:
	adrp	x8, _ARM_V7S_ATTR_C@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ARM_V7S_ATTR_C@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_5
; %bb.2:
Lloh24:
	adrp	x8, _IOMMU_CACHE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IOMMU_CACHE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh26:
	adrp	x8, _IOMMU_MMIO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IOMMU_MMIO@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_5:
	mov	x0, x20
	bl	_ARM_V7S_ATTR_XN
Lloh28:
	adrp	x8, _IOMMU_NOEXEC@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IOMMU_NOEXEC@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	tst	w0, w19
	csel	w8, wzr, w8, eq
	orr	w0, w8, w21
	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	Lloh18, Lloh19, Lloh20
	.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
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_IOMMU_READ,4,2                 ; @IOMMU_READ
	.comm	_ARM_V7S_PTE_AP_RDONLY,4,2      ; @ARM_V7S_PTE_AP_RDONLY
	.comm	_IOMMU_WRITE,4,2                ; @IOMMU_WRITE
	.comm	_ARM_V7S_PTE_AP_UNPRIV,4,2      ; @ARM_V7S_PTE_AP_UNPRIV
	.comm	_IOMMU_PRIV,4,2                 ; @IOMMU_PRIV
	.comm	_ARM_V7S_TEX_MASK,4,2           ; @ARM_V7S_TEX_MASK
	.comm	_ARM_V7S_TEX_SHIFT,4,2          ; @ARM_V7S_TEX_SHIFT
	.comm	_IOMMU_MMIO,4,2                 ; @IOMMU_MMIO
	.comm	_ARM_V7S_ATTR_C,4,2             ; @ARM_V7S_ATTR_C
	.comm	_IOMMU_CACHE,4,2                ; @IOMMU_CACHE
	.comm	_IOMMU_NOEXEC,4,2               ; @IOMMU_NOEXEC
	.no_dead_strip	_arm_v7s_pte_to_prot
.subsections_via_symbols
