	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_v7s_prot_to_pte
_arm_v7s_prot_to_pte:                   ## @arm_v7s_prot_to_pte
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	_IO_PGTABLE_QUIRK_NO_PERMS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	andl	(%rdx), %r13d
	movq	_ARM_V7S_ATTR_NG@GOTPCREL(%rip), %rax
	movq	_ARM_V7S_ATTR_S@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movl	%esi, %r15d
	movl	%edi, %r12d
	movq	_IOMMU_MMIO@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_1
## %bb.2:
	testl	%r13d, %r13d
	jne	LBB0_7
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
	callq	_ARM_V7S_ATTR_TEX
	orl	%eax, %ebx
	testl	%r13d, %r13d
	jne	LBB0_7
LBB0_3:
	movq	_ARM_V7S_PTE_AF@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_IOMMU_PRIV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	testl	%r12d, (%rcx)
	jne	LBB0_5
## %bb.4:
	movq	_ARM_V7S_PTE_AP_UNPRIV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	orl	%eax, %ebx
	movq	_IOMMU_WRITE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_7
## %bb.6:
	movq	_ARM_V7S_PTE_AP_RDONLY@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_7:
	movl	%r15d, %edi
	callq	_ARM_V7S_ATTR_SHIFT
	movl	%eax, %ecx
	shll	%cl, %ebx
	movq	_IOMMU_NOEXEC@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_10
## %bb.8:
	testl	%r13d, %r13d
	jne	LBB0_10
## %bb.9:
	movl	%r15d, %edi
	callq	_ARM_V7S_ATTR_XN
	orl	%eax, %ebx
LBB0_10:
	movq	_IOMMU_MMIO@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_12
## %bb.11:
	movq	_ARM_V7S_ATTR_B@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_14
LBB0_12:
	movq	_IOMMU_CACHE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_14
## %bb.13:
	movq	_ARM_V7S_ATTR_B@GOTPCREL(%rip), %rax
	movq	_ARM_V7S_ATTR_C@GOTPCREL(%rip), %rcx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
LBB0_14:
	movq	_ARM_V7S_PTE_TYPE_PAGE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	cmpl	$1, %r15d
	jne	LBB0_17
## %bb.15:
	movq	_IO_PGTABLE_QUIRK_ARM_NS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_17
## %bb.16:
	movq	_ARM_V7S_ATTR_NS_SECTION@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IO_PGTABLE_QUIRK_NO_PERMS,4,2  ## @IO_PGTABLE_QUIRK_NO_PERMS
	.comm	_ARM_V7S_ATTR_NG,4,2            ## @ARM_V7S_ATTR_NG
	.comm	_ARM_V7S_ATTR_S,4,2             ## @ARM_V7S_ATTR_S
	.comm	_IOMMU_MMIO,4,2                 ## @IOMMU_MMIO
	.comm	_ARM_V7S_PTE_AF,4,2             ## @ARM_V7S_PTE_AF
	.comm	_IOMMU_PRIV,4,2                 ## @IOMMU_PRIV
	.comm	_ARM_V7S_PTE_AP_UNPRIV,4,2      ## @ARM_V7S_PTE_AP_UNPRIV
	.comm	_IOMMU_WRITE,4,2                ## @IOMMU_WRITE
	.comm	_ARM_V7S_PTE_AP_RDONLY,4,2      ## @ARM_V7S_PTE_AP_RDONLY
	.comm	_IOMMU_NOEXEC,4,2               ## @IOMMU_NOEXEC
	.comm	_ARM_V7S_ATTR_B,4,2             ## @ARM_V7S_ATTR_B
	.comm	_IOMMU_CACHE,4,2                ## @IOMMU_CACHE
	.comm	_ARM_V7S_ATTR_C,4,2             ## @ARM_V7S_ATTR_C
	.comm	_ARM_V7S_PTE_TYPE_PAGE,4,2      ## @ARM_V7S_PTE_TYPE_PAGE
	.comm	_IO_PGTABLE_QUIRK_ARM_NS,4,2    ## @IO_PGTABLE_QUIRK_ARM_NS
	.comm	_ARM_V7S_ATTR_NS_SECTION,4,2    ## @ARM_V7S_ATTR_NS_SECTION
	.no_dead_strip	_arm_v7s_prot_to_pte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_v7s_prot_to_pte
_arm_v7s_prot_to_pte:                   ; @arm_v7s_prot_to_pte
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w8, [x2]
Lloh0:
	adrp	x9, _IO_PGTABLE_QUIRK_NO_PERMS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IO_PGTABLE_QUIRK_NO_PERMS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w23, w9, w8
Lloh3:
	adrp	x8, _ARM_V7S_ATTR_NG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARM_V7S_ATTR_NG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ARM_V7S_ATTR_S@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ARM_V7S_ATTR_S@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w24, w9, w8
Lloh9:
	adrp	x22, _IOMMU_MMIO@GOTPAGE
Lloh10:
	ldr	x22, [x22, _IOMMU_MMIO@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	cbnz	w23, LBB0_5
	b	LBB0_3
LBB0_2:
	mov	w0, #1
	bl	_ARM_V7S_ATTR_TEX
	orr	w24, w0, w24
	cbnz	w23, LBB0_5
LBB0_3:
Lloh11:
	adrp	x8, _ARM_V7S_PTE_AF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ARM_V7S_PTE_AF@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _IOMMU_PRIV@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IOMMU_PRIV@GOTPAGEOFF]
	orr	w8, w8, w24
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _ARM_V7S_PTE_AP_UNPRIV@GOTPAGE
Lloh18:
	ldr	x10, [x10, _ARM_V7S_PTE_AP_UNPRIV@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	tst	w9, w21
	csel	w9, w10, wzr, eq
	orr	w24, w8, w9
Lloh20:
	adrp	x8, _IOMMU_WRITE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IOMMU_WRITE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w21
	b.ne	LBB0_5
; %bb.4:
Lloh23:
	adrp	x8, _ARM_V7S_PTE_AP_RDONLY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ARM_V7S_PTE_AP_RDONLY@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	orr	w24, w8, w24
LBB0_5:
	mov	x0, x20
	bl	_ARM_V7S_ATTR_SHIFT
	lsl	w24, w24, w0
Lloh26:
	adrp	x8, _IOMMU_NOEXEC@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IOMMU_NOEXEC@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	and	w8, w8, w21
	cmp	w8, #0
	ccmp	w23, #0, #0, ne
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_ARM_V7S_ATTR_XN
	orr	w24, w0, w24
LBB0_7:
	ldr	w8, [x22]
	tst	w8, w21
	b.eq	LBB0_9
; %bb.8:
Lloh29:
	adrp	x8, _ARM_V7S_ATTR_B@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ARM_V7S_ATTR_B@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	orr	w24, w8, w24
	b	LBB0_11
LBB0_9:
Lloh32:
	adrp	x8, _IOMMU_CACHE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IOMMU_CACHE@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_11
; %bb.10:
Lloh35:
	adrp	x8, _ARM_V7S_ATTR_B@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ARM_V7S_ATTR_B@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _ARM_V7S_ATTR_C@GOTPAGE
Lloh39:
	ldr	x9, [x9, _ARM_V7S_ATTR_C@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	orr	w8, w8, w24
	orr	w24, w8, w9
LBB0_11:
Lloh41:
	adrp	x8, _ARM_V7S_PTE_TYPE_PAGE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ARM_V7S_PTE_TYPE_PAGE@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	orr	w0, w8, w24
	cmp	w20, #1
	b.ne	LBB0_14
; %bb.12:
	ldr	w8, [x19]
Lloh44:
	adrp	x9, _IO_PGTABLE_QUIRK_ARM_NS@GOTPAGE
Lloh45:
	ldr	x9, [x9, _IO_PGTABLE_QUIRK_ARM_NS@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
Lloh47:
	adrp	x8, _ARM_V7S_ATTR_NS_SECTION@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ARM_V7S_ATTR_NS_SECTION@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	orr	w0, w8, w0
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_IO_PGTABLE_QUIRK_NO_PERMS,4,2  ; @IO_PGTABLE_QUIRK_NO_PERMS
	.comm	_ARM_V7S_ATTR_NG,4,2            ; @ARM_V7S_ATTR_NG
	.comm	_ARM_V7S_ATTR_S,4,2             ; @ARM_V7S_ATTR_S
	.comm	_IOMMU_MMIO,4,2                 ; @IOMMU_MMIO
	.comm	_ARM_V7S_PTE_AF,4,2             ; @ARM_V7S_PTE_AF
	.comm	_IOMMU_PRIV,4,2                 ; @IOMMU_PRIV
	.comm	_ARM_V7S_PTE_AP_UNPRIV,4,2      ; @ARM_V7S_PTE_AP_UNPRIV
	.comm	_IOMMU_WRITE,4,2                ; @IOMMU_WRITE
	.comm	_ARM_V7S_PTE_AP_RDONLY,4,2      ; @ARM_V7S_PTE_AP_RDONLY
	.comm	_IOMMU_NOEXEC,4,2               ; @IOMMU_NOEXEC
	.comm	_ARM_V7S_ATTR_B,4,2             ; @ARM_V7S_ATTR_B
	.comm	_IOMMU_CACHE,4,2                ; @IOMMU_CACHE
	.comm	_ARM_V7S_ATTR_C,4,2             ; @ARM_V7S_ATTR_C
	.comm	_ARM_V7S_PTE_TYPE_PAGE,4,2      ; @ARM_V7S_PTE_TYPE_PAGE
	.comm	_IO_PGTABLE_QUIRK_ARM_NS,4,2    ; @IO_PGTABLE_QUIRK_ARM_NS
	.comm	_ARM_V7S_ATTR_NS_SECTION,4,2    ; @ARM_V7S_ATTR_NS_SECTION
	.no_dead_strip	_arm_v7s_prot_to_pte
.subsections_via_symbols
