	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lima_mmu_switch_vm             ## -- Begin function lima_mmu_switch_vm
	.p2align	4, 0x90
_lima_mmu_switch_vm:                    ## @lima_mmu_switch_vm
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	_LIMA_MMU_COMMAND_ENABLE_STALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LIMA_MMU_STATUS@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	xorl	%ecx, %ecx
	callq	_lima_mmu_send_command
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	_LIMA_MMU_DTE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_mmu_write
LBB0_2:
	movq	_LIMA_MMU_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LIMA_MMU_COMMAND_ZAP_CACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mmu_write
	movq	_LIMA_MMU_COMMAND_DISABLE_STALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	movl	$1, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_lima_mmu_send_command          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LIMA_MMU_COMMAND_ENABLE_STALL,4,2 ## @LIMA_MMU_COMMAND_ENABLE_STALL
	.comm	_LIMA_MMU_STATUS,4,2            ## @LIMA_MMU_STATUS
	.comm	_LIMA_MMU_STATUS_STALL_ACTIVE,4,2 ## @LIMA_MMU_STATUS_STALL_ACTIVE
	.comm	_LIMA_MMU_DTE_ADDR,4,2          ## @LIMA_MMU_DTE_ADDR
	.comm	_LIMA_MMU_COMMAND,4,2           ## @LIMA_MMU_COMMAND
	.comm	_LIMA_MMU_COMMAND_ZAP_CACHE,4,2 ## @LIMA_MMU_COMMAND_ZAP_CACHE
	.comm	_LIMA_MMU_COMMAND_DISABLE_STALL,4,2 ## @LIMA_MMU_COMMAND_DISABLE_STALL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lima_mmu_switch_vm             ; -- Begin function lima_mmu_switch_vm
	.p2align	2
_lima_mmu_switch_vm:                    ; @lima_mmu_switch_vm
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, _LIMA_MMU_COMMAND_ENABLE_STALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LIMA_MMU_COMMAND_ENABLE_STALL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x20, _LIMA_MMU_STATUS@GOTPAGE
Lloh4:
	ldr	x20, [x20, _LIMA_MMU_STATUS@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w3, #0
	bl	_lima_mmu_send_command
	cbz	x19, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _LIMA_MMU_DTE_ADDR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LIMA_MMU_DTE_ADDR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_mmu_write
LBB0_2:
Lloh8:
	adrp	x8, _LIMA_MMU_COMMAND@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LIMA_MMU_COMMAND@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _LIMA_MMU_COMMAND_ZAP_CACHE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LIMA_MMU_COMMAND_ZAP_CACHE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_mmu_write
Lloh14:
	adrp	x8, _LIMA_MMU_COMMAND_DISABLE_STALL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LIMA_MMU_COMMAND_DISABLE_STALL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	w1, [x20]
	mov	w3, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_lima_mmu_send_command
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_LIMA_MMU_COMMAND_ENABLE_STALL,4,2 ; @LIMA_MMU_COMMAND_ENABLE_STALL
	.comm	_LIMA_MMU_STATUS,4,2            ; @LIMA_MMU_STATUS
	.comm	_LIMA_MMU_STATUS_STALL_ACTIVE,4,2 ; @LIMA_MMU_STATUS_STALL_ACTIVE
	.comm	_LIMA_MMU_DTE_ADDR,4,2          ; @LIMA_MMU_DTE_ADDR
	.comm	_LIMA_MMU_COMMAND,4,2           ; @LIMA_MMU_COMMAND
	.comm	_LIMA_MMU_COMMAND_ZAP_CACHE,4,2 ; @LIMA_MMU_COMMAND_ZAP_CACHE
	.comm	_LIMA_MMU_COMMAND_DISABLE_STALL,4,2 ; @LIMA_MMU_COMMAND_DISABLE_STALL
.subsections_via_symbols
