	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __arm_lpae_init_pte
___arm_lpae_init_pte:                   ## @__arm_lpae_init_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movl	%esi, %r8d
	movq	%rdi, %rsi
	movl	8(%rdi), %r9d
	movq	_IO_PGTABLE_QUIRK_ARM_NS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ARM_LPAE_PTE_NS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%rsi), %r10
	movq	_ARM_MALI_LPAE@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	cmpq	%r11, %r10
	je	LBB0_3
## %bb.1:
	movq	_ARM_LPAE_MAX_LEVELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	cmpl	%ecx, %eax
	jne	LBB0_3
## %bb.2:
	movq	_ARM_LPAE_PTE_TYPE_PAGE@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_3:
	movq	_ARM_LPAE_PTE_TYPE_BLOCK@GOTPCREL(%rip), %rcx
LBB0_4:
	leaq	8(%rsi), %r15
	andl	%r9d, %edi
	cmovel	%edi, %ebx
	orl	%edx, %ebx
	orl	(%rcx), %ebx
	xorl	%ecx, %ecx
	cmpq	%r11, %r10
	je	LBB0_6
## %bb.5:
	movq	_ARM_LPAE_PTE_AF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_6:
	orl	%ecx, %ebx
	movq	_ARM_LPAE_PTE_SH_IS@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%r8d, %edi
	callq	_paddr_to_iopte
	orl	%eax, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___arm_lpae_set_pte             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IO_PGTABLE_QUIRK_ARM_NS,4,2    ## @IO_PGTABLE_QUIRK_ARM_NS
	.comm	_ARM_LPAE_PTE_NS,4,2            ## @ARM_LPAE_PTE_NS
	.comm	_ARM_MALI_LPAE,8,3              ## @ARM_MALI_LPAE
	.comm	_ARM_LPAE_MAX_LEVELS,4,2        ## @ARM_LPAE_MAX_LEVELS
	.comm	_ARM_LPAE_PTE_TYPE_PAGE,4,2     ## @ARM_LPAE_PTE_TYPE_PAGE
	.comm	_ARM_LPAE_PTE_TYPE_BLOCK,4,2    ## @ARM_LPAE_PTE_TYPE_BLOCK
	.comm	_ARM_LPAE_PTE_AF,4,2            ## @ARM_LPAE_PTE_AF
	.comm	_ARM_LPAE_PTE_SH_IS,4,2         ## @ARM_LPAE_PTE_SH_IS
	.no_dead_strip	___arm_lpae_init_pte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __arm_lpae_init_pte
___arm_lpae_init_pte:                   ; @__arm_lpae_init_pte
	.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	x19, x4
	mov	x8, x1
	mov	x1, x0
	mov	x20, x0
	ldr	w10, [x20, #8]!
Lloh0:
	adrp	x9, _IO_PGTABLE_QUIRK_ARM_NS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IO_PGTABLE_QUIRK_ARM_NS@GOTPAGEOFF]
Lloh2:
	ldr	w12, [x9]
Lloh3:
	adrp	x9, _ARM_LPAE_PTE_NS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ARM_LPAE_PTE_NS@GOTPAGEOFF]
Lloh5:
	ldr	w13, [x9]
	ldr	x9, [x0]
Lloh6:
	adrp	x11, _ARM_MALI_LPAE@GOTPAGE
Lloh7:
	ldr	x11, [x11, _ARM_MALI_LPAE@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x9, x11
	b.eq	LBB0_3
; %bb.1:
Lloh9:
	adrp	x14, _ARM_LPAE_MAX_LEVELS@GOTPAGE
Lloh10:
	ldr	x14, [x14, _ARM_LPAE_MAX_LEVELS@GOTPAGEOFF]
Lloh11:
	ldr	w14, [x14]
	sub	w14, w14, #1
	cmp	w14, w3
	b.ne	LBB0_3
; %bb.2:
Lloh12:
	adrp	x14, _ARM_LPAE_PTE_TYPE_PAGE@GOTPAGE
Lloh13:
	ldr	x14, [x14, _ARM_LPAE_PTE_TYPE_PAGE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh14:
	adrp	x14, _ARM_LPAE_PTE_TYPE_BLOCK@GOTPAGE
Lloh15:
	ldr	x14, [x14, _ARM_LPAE_PTE_TYPE_BLOCK@GOTPAGEOFF]
LBB0_4:
	tst	w12, w10
	csel	w10, wzr, w13, eq
	orr	w10, w10, w2
	ldr	w12, [x14]
	orr	w10, w10, w12
Lloh16:
	adrp	x12, _ARM_LPAE_PTE_AF@GOTPAGE
Lloh17:
	ldr	x12, [x12, _ARM_LPAE_PTE_AF@GOTPAGEOFF]
Lloh18:
	ldr	w12, [x12]
	cmp	x9, x11
	csel	w9, wzr, w12, eq
	orr	w9, w10, w9
Lloh19:
	adrp	x10, _ARM_LPAE_PTE_SH_IS@GOTPAGE
Lloh20:
	ldr	x10, [x10, _ARM_LPAE_PTE_SH_IS@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	orr	w21, w9, w10
	mov	x0, x8
	bl	_paddr_to_iopte
	orr	w1, w21, w0
	mov	x0, x19
	mov	x2, 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
	b	___arm_lpae_set_pte
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IO_PGTABLE_QUIRK_ARM_NS,4,2    ; @IO_PGTABLE_QUIRK_ARM_NS
	.comm	_ARM_LPAE_PTE_NS,4,2            ; @ARM_LPAE_PTE_NS
	.comm	_ARM_MALI_LPAE,8,3              ; @ARM_MALI_LPAE
	.comm	_ARM_LPAE_MAX_LEVELS,4,2        ; @ARM_LPAE_MAX_LEVELS
	.comm	_ARM_LPAE_PTE_TYPE_PAGE,4,2     ; @ARM_LPAE_PTE_TYPE_PAGE
	.comm	_ARM_LPAE_PTE_TYPE_BLOCK,4,2    ; @ARM_LPAE_PTE_TYPE_BLOCK
	.comm	_ARM_LPAE_PTE_AF,4,2            ; @ARM_LPAE_PTE_AF
	.comm	_ARM_LPAE_PTE_SH_IS,4,2         ; @ARM_LPAE_PTE_SH_IS
	.no_dead_strip	___arm_lpae_init_pte
.subsections_via_symbols
