	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lima_mmu_page_fault_resume     ## -- Begin function lima_mmu_page_fault_resume
	.p2align	4, 0x90
_lima_mmu_page_fault_resume:            ## @lima_mmu_page_fault_resume
	.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	(%rdi), %rbx
	movq	_LIMA_MMU_STATUS@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_mmu_read
	movq	_LIMA_MMU_STATUS_PAGE_FAULT_ACTIVE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	_LIMA_MMU_INT_MASK@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_mmu_write
	movq	_LIMA_MMU_DTE_ADDR@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	$-889275714, %esi               ## imm = 0xCAFEBABE
	callq	_mmu_write
	movq	_LIMA_MMU_COMMAND_HARD_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	xorl	%ecx, %ecx
	callq	_lima_mmu_send_command
	movl	(%r15), %edi
	movq	_LIMA_MMU_INT_PAGE_FAULT@GOTPCREL(%rip), %rax
	movq	_LIMA_MMU_INT_READ_BUS_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_mmu_write
	movl	(%r12), %edi
	movq	(%rbx), %rax
	movl	(%rax), %esi
	callq	_mmu_write
	movq	_LIMA_MMU_COMMAND_ENABLE_PAGING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	xorl	%ecx, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lima_mmu_send_command          ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LIMA_MMU_STATUS,4,2            ## @LIMA_MMU_STATUS
	.comm	_LIMA_MMU_STATUS_PAGE_FAULT_ACTIVE,4,2 ## @LIMA_MMU_STATUS_PAGE_FAULT_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mmu resume\n"

	.comm	_LIMA_MMU_INT_MASK,4,2          ## @LIMA_MMU_INT_MASK
	.comm	_LIMA_MMU_DTE_ADDR,4,2          ## @LIMA_MMU_DTE_ADDR
	.comm	_LIMA_MMU_COMMAND_HARD_RESET,4,2 ## @LIMA_MMU_COMMAND_HARD_RESET
	.comm	_LIMA_MMU_INT_PAGE_FAULT,4,2    ## @LIMA_MMU_INT_PAGE_FAULT
	.comm	_LIMA_MMU_INT_READ_BUS_ERROR,4,2 ## @LIMA_MMU_INT_READ_BUS_ERROR
	.comm	_LIMA_MMU_COMMAND_ENABLE_PAGING,4,2 ## @LIMA_MMU_COMMAND_ENABLE_PAGING
	.comm	_LIMA_MMU_STATUS_PAGING_ENABLED,4,2 ## @LIMA_MMU_STATUS_PAGING_ENABLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lima_mmu_page_fault_resume     ; -- Begin function lima_mmu_page_fault_resume
	.p2align	2
_lima_mmu_page_fault_resume:            ; @lima_mmu_page_fault_resume
	.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
	ldr	x20, [x0]
Lloh0:
	adrp	x19, _LIMA_MMU_STATUS@GOTPAGE
Lloh1:
	ldr	x19, [x19, _LIMA_MMU_STATUS@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_mmu_read
Lloh2:
	adrp	x8, _LIMA_MMU_STATUS_PAGE_FAULT_ACTIVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LIMA_MMU_STATUS_PAGE_FAULT_ACTIVE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x20, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
Lloh7:
	adrp	x21, _LIMA_MMU_INT_MASK@GOTPAGE
Lloh8:
	ldr	x21, [x21, _LIMA_MMU_INT_MASK@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	w1, #0
	bl	_mmu_write
Lloh9:
	adrp	x22, _LIMA_MMU_DTE_ADDR@GOTPAGE
Lloh10:
	ldr	x22, [x22, _LIMA_MMU_DTE_ADDR@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	w1, #47806
	movk	w1, #51966, lsl #16
	bl	_mmu_write
Lloh11:
	adrp	x8, _LIMA_MMU_COMMAND_HARD_RESET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LIMA_MMU_COMMAND_HARD_RESET@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w1, [x22]
	mov	w3, #0
	bl	_lima_mmu_send_command
Lloh14:
	adrp	x8, _LIMA_MMU_INT_PAGE_FAULT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LIMA_MMU_INT_PAGE_FAULT@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _LIMA_MMU_INT_READ_BUS_ERROR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _LIMA_MMU_INT_READ_BUS_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_mmu_write
	ldr	w0, [x22]
	ldr	x8, [x20]
	ldr	w1, [x8]
	bl	_mmu_write
Lloh20:
	adrp	x8, _LIMA_MMU_COMMAND_ENABLE_PAGING@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LIMA_MMU_COMMAND_ENABLE_PAGING@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	w1, [x19]
	mov	w3, #0
	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	_lima_mmu_send_command
LBB0_2:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_LIMA_MMU_STATUS,4,2            ; @LIMA_MMU_STATUS
	.comm	_LIMA_MMU_STATUS_PAGE_FAULT_ACTIVE,4,2 ; @LIMA_MMU_STATUS_PAGE_FAULT_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mmu resume\n"

	.comm	_LIMA_MMU_INT_MASK,4,2          ; @LIMA_MMU_INT_MASK
	.comm	_LIMA_MMU_DTE_ADDR,4,2          ; @LIMA_MMU_DTE_ADDR
	.comm	_LIMA_MMU_COMMAND_HARD_RESET,4,2 ; @LIMA_MMU_COMMAND_HARD_RESET
	.comm	_LIMA_MMU_INT_PAGE_FAULT,4,2    ; @LIMA_MMU_INT_PAGE_FAULT
	.comm	_LIMA_MMU_INT_READ_BUS_ERROR,4,2 ; @LIMA_MMU_INT_READ_BUS_ERROR
	.comm	_LIMA_MMU_COMMAND_ENABLE_PAGING,4,2 ; @LIMA_MMU_COMMAND_ENABLE_PAGING
	.comm	_LIMA_MMU_STATUS_PAGING_ENABLED,4,2 ; @LIMA_MMU_STATUS_PAGING_ENABLED
.subsections_via_symbols
