	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_lpae_install_table
_arm_lpae_install_table:                ## @arm_lpae_install_table
	.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	%rcx, %r12
	movl	%edx, %r15d
	movq	%rsi, %r14
	callq	___pa
	movl	%eax, %ebx
	movq	_ARM_LPAE_PTE_TYPE_TABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_IO_PGTABLE_QUIRK_ARM_NS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r12), %eax
	je	LBB0_2
## %bb.1:
	movq	_ARM_LPAE_PTE_NSTABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	orl	%eax, %ebx
	xorl	%eax, %eax
	callq	_dma_wmb
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_cmpxchg64_relaxed
	movl	%eax, %r13d
	cmpq	$0, 8(%r12)
	jne	LBB0_6
## %bb.3:
	movq	_ARM_LPAE_PTE_SW_SYNC@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	jne	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rax, %r12
	callq	___arm_lpae_sync_pte
	cmpl	%r15d, %r13d
	jne	LBB0_6
## %bb.5:
	movl	(%r14), %edi
	orl	(%r12), %ebx
	movl	%ebx, %esi
	callq	_WRITE_ONCE
LBB0_6:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARM_LPAE_PTE_TYPE_TABLE,4,2    ## @ARM_LPAE_PTE_TYPE_TABLE
	.comm	_IO_PGTABLE_QUIRK_ARM_NS,4,2    ## @IO_PGTABLE_QUIRK_ARM_NS
	.comm	_ARM_LPAE_PTE_NSTABLE,4,2       ## @ARM_LPAE_PTE_NSTABLE
	.comm	_ARM_LPAE_PTE_SW_SYNC,4,2       ## @ARM_LPAE_PTE_SW_SYNC
	.no_dead_strip	_arm_lpae_install_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_lpae_install_table
_arm_lpae_install_table:                ; @arm_lpae_install_table
	.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	x21, x3
	mov	x20, x2
	mov	x19, x1
	bl	___pa
Lloh0:
	adrp	x8, _ARM_LPAE_PTE_TYPE_TABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARM_LPAE_PTE_TYPE_TABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w8, w8, w0
	ldr	w9, [x21]
Lloh3:
	adrp	x10, _IO_PGTABLE_QUIRK_ARM_NS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IO_PGTABLE_QUIRK_ARM_NS@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _ARM_LPAE_PTE_NSTABLE@GOTPAGE
Lloh7:
	ldr	x11, [x11, _ARM_LPAE_PTE_NSTABLE@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w9, wzr, w11, eq
	orr	w22, w8, w9
	bl	_dma_wmb
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_cmpxchg64_relaxed
	mov	x23, x0
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_4
; %bb.1:
Lloh9:
	adrp	x24, _ARM_LPAE_PTE_SW_SYNC@GOTPAGE
Lloh10:
	ldr	x24, [x24, _ARM_LPAE_PTE_SW_SYNC@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w23
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	bl	___arm_lpae_sync_pte
	cmp	w23, w20
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x19]
	ldr	w8, [x24]
	orr	w1, w8, w22
	bl	_WRITE_ONCE
LBB0_4:
	mov	x0, x23
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ARM_LPAE_PTE_TYPE_TABLE,4,2    ; @ARM_LPAE_PTE_TYPE_TABLE
	.comm	_IO_PGTABLE_QUIRK_ARM_NS,4,2    ; @IO_PGTABLE_QUIRK_ARM_NS
	.comm	_ARM_LPAE_PTE_NSTABLE,4,2       ; @ARM_LPAE_PTE_NSTABLE
	.comm	_ARM_LPAE_PTE_SW_SYNC,4,2       ; @ARM_LPAE_PTE_SW_SYNC
	.no_dead_strip	_arm_lpae_install_table
.subsections_via_symbols
