	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_si_vm_flush                    ## -- Begin function si_vm_flush
	.p2align	4, 0x90
_si_vm_flush:                           ## @si_vm_flush
	.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
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	_PACKET3_WRITE_DATA@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	$3, %esi
	callq	_PACKET3
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movl	$1, %edi
	callq	_WRITE_DATA_ENGINE_SEL
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_WRITE_DATA_DST_SEL
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_radeon_ring_write
	cmpl	$7, %r14d
	ja	LBB0_2
## %bb.1:
	movq	_VM_CONTEXT0_PAGE_TABLE_BASE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shrl	$2, %esi
	addl	%r14d, %esi
	andl	$1073741823, %esi               ## imm = 0x3FFFFFFF
	jmp	LBB0_3
LBB0_2:
	movq	_VM_CONTEXT8_PAGE_TABLE_BASE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%r14,4), %esi
	addl	$-32, %esi
	shrl	$2, %esi
LBB0_3:
	movq	%r12, %rdi
	callq	_radeon_ring_write
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_radeon_ring_write
	sarl	$12, %r15d
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_radeon_ring_write
	movl	(%r13), %edi
	movl	$3, %esi
	callq	_PACKET3
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movl	$1, %r15d
	movl	$1, %edi
	callq	_WRITE_DATA_ENGINE_SEL
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_WRITE_DATA_DST_SEL
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_radeon_ring_write
	movq	_HDP_MEM_COHERENCY_FLUSH_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	sarl	$2, %esi
	movq	%r12, %rdi
	callq	_radeon_ring_write
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_radeon_ring_write
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_radeon_ring_write
	movl	(%r13), %edi
	movl	$3, %esi
	callq	_PACKET3
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movl	$1, %edi
	callq	_WRITE_DATA_ENGINE_SEL
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_WRITE_DATA_DST_SEL
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_radeon_ring_write
	movq	_VM_INVALIDATE_REQUEST@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	sarl	$2, %esi
	movq	%r12, %rdi
	callq	_radeon_ring_write
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_radeon_ring_write
	movl	%r14d, %ecx
	shll	%cl, %r15d
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_radeon_ring_write
	movq	_PACKET3_WAIT_REG_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$5, %esi
	callq	_PACKET3
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	xorl	%edi, %edi
	callq	_WAIT_REG_MEM_FUNCTION
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_WAIT_REG_MEM_ENGINE
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_radeon_ring_write
	movl	(%r13), %esi
	sarl	$2, %esi
	movq	%r12, %rdi
	callq	_radeon_ring_write
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_radeon_ring_write
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_radeon_ring_write
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_radeon_ring_write
	movq	%r12, %rdi
	movl	$32, %esi
	callq	_radeon_ring_write
	movq	_PACKET3_PFP_SYNC_ME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_PACKET3
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movq	%r12, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_radeon_ring_write              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PACKET3_WRITE_DATA,4,2         ## @PACKET3_WRITE_DATA
	.comm	_VM_CONTEXT0_PAGE_TABLE_BASE_ADDR,4,2 ## @VM_CONTEXT0_PAGE_TABLE_BASE_ADDR
	.comm	_VM_CONTEXT8_PAGE_TABLE_BASE_ADDR,4,2 ## @VM_CONTEXT8_PAGE_TABLE_BASE_ADDR
	.comm	_HDP_MEM_COHERENCY_FLUSH_CNTL,4,2 ## @HDP_MEM_COHERENCY_FLUSH_CNTL
	.comm	_VM_INVALIDATE_REQUEST,4,2      ## @VM_INVALIDATE_REQUEST
	.comm	_PACKET3_WAIT_REG_MEM,4,2       ## @PACKET3_WAIT_REG_MEM
	.comm	_PACKET3_PFP_SYNC_ME,4,2        ## @PACKET3_PFP_SYNC_ME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_si_vm_flush                    ; -- Begin function si_vm_flush
	.p2align	2
_si_vm_flush:                           ; @si_vm_flush
	.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
Lloh0:
	adrp	x23, _PACKET3_WRITE_DATA@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PACKET3_WRITE_DATA@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	w1, #3
	bl	_PACKET3
	mov	x1, x0
	mov	x0, x19
	bl	_radeon_ring_write
	mov	w0, #1
	bl	_WRITE_DATA_ENGINE_SEL
	mov	x22, x0
	mov	w0, #0
	bl	_WRITE_DATA_DST_SEL
	orr	w1, w0, w22
	mov	x0, x19
	bl	_radeon_ring_write
	cmp	w20, #7
	b.hi	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _VM_CONTEXT0_PAGE_TABLE_BASE_ADDR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VM_CONTEXT0_PAGE_TABLE_BASE_ADDR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	add	w8, w20, w8, lsr #2
	and	w1, w8, #0x3fffffff
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _VM_CONTEXT8_PAGE_TABLE_BASE_ADDR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VM_CONTEXT8_PAGE_TABLE_BASE_ADDR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	add	w8, w8, w20, lsl #2
	sub	w8, w8, #32
	lsr	w1, w8, #2
LBB0_3:
	mov	x0, x19
	bl	_radeon_ring_write
	mov	x0, x19
	mov	w1, #0
	bl	_radeon_ring_write
	asr	w1, w21, #12
	mov	x0, x19
	bl	_radeon_ring_write
	ldr	w0, [x23]
	mov	w1, #3
	bl	_PACKET3
	mov	x1, x0
	mov	x0, x19
	bl	_radeon_ring_write
	mov	w22, #1
	mov	w0, #1
	bl	_WRITE_DATA_ENGINE_SEL
	mov	x21, x0
	mov	w0, #0
	bl	_WRITE_DATA_DST_SEL
	orr	w1, w0, w21
	mov	x0, x19
	bl	_radeon_ring_write
Lloh8:
	adrp	x8, _HDP_MEM_COHERENCY_FLUSH_CNTL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HDP_MEM_COHERENCY_FLUSH_CNTL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	asr	w1, w8, #2
	mov	x0, x19
	bl	_radeon_ring_write
	mov	x0, x19
	mov	w1, #0
	bl	_radeon_ring_write
	mov	x0, x19
	mov	w1, #1
	bl	_radeon_ring_write
	ldr	w0, [x23]
	mov	w1, #3
	bl	_PACKET3
	mov	x1, x0
	mov	x0, x19
	bl	_radeon_ring_write
	mov	w0, #1
	bl	_WRITE_DATA_ENGINE_SEL
	mov	x21, x0
	mov	w0, #0
	bl	_WRITE_DATA_DST_SEL
	orr	w1, w0, w21
	mov	x0, x19
	bl	_radeon_ring_write
Lloh11:
	adrp	x21, _VM_INVALIDATE_REQUEST@GOTPAGE
Lloh12:
	ldr	x21, [x21, _VM_INVALIDATE_REQUEST@GOTPAGEOFF]
	ldr	w8, [x21]
	asr	w1, w8, #2
	mov	x0, x19
	bl	_radeon_ring_write
	mov	x0, x19
	mov	w1, #0
	bl	_radeon_ring_write
	lsl	w1, w22, w20
	mov	x0, x19
	bl	_radeon_ring_write
Lloh13:
	adrp	x8, _PACKET3_WAIT_REG_MEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PACKET3_WAIT_REG_MEM@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	w1, #5
	bl	_PACKET3
	mov	x1, x0
	mov	x0, x19
	bl	_radeon_ring_write
	mov	w0, #0
	bl	_WAIT_REG_MEM_FUNCTION
	mov	x20, x0
	mov	w0, #0
	bl	_WAIT_REG_MEM_ENGINE
	orr	w1, w0, w20
	mov	x0, x19
	bl	_radeon_ring_write
	ldr	w8, [x21]
	asr	w1, w8, #2
	mov	x0, x19
	bl	_radeon_ring_write
	mov	x0, x19
	mov	w1, #0
	bl	_radeon_ring_write
	mov	x0, x19
	mov	w1, #0
	bl	_radeon_ring_write
	mov	x0, x19
	mov	w1, #0
	bl	_radeon_ring_write
	mov	x0, x19
	mov	w1, #32
	bl	_radeon_ring_write
Lloh16:
	adrp	x8, _PACKET3_PFP_SYNC_ME@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PACKET3_PFP_SYNC_ME@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_PACKET3
	mov	x1, x0
	mov	x0, x19
	bl	_radeon_ring_write
	mov	x0, x19
	mov	w1, #0
	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
	b	_radeon_ring_write
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PACKET3_WRITE_DATA,4,2         ; @PACKET3_WRITE_DATA
	.comm	_VM_CONTEXT0_PAGE_TABLE_BASE_ADDR,4,2 ; @VM_CONTEXT0_PAGE_TABLE_BASE_ADDR
	.comm	_VM_CONTEXT8_PAGE_TABLE_BASE_ADDR,4,2 ; @VM_CONTEXT8_PAGE_TABLE_BASE_ADDR
	.comm	_HDP_MEM_COHERENCY_FLUSH_CNTL,4,2 ; @HDP_MEM_COHERENCY_FLUSH_CNTL
	.comm	_VM_INVALIDATE_REQUEST,4,2      ; @VM_INVALIDATE_REQUEST
	.comm	_PACKET3_WAIT_REG_MEM,4,2       ; @PACKET3_WAIT_REG_MEM
	.comm	_PACKET3_PFP_SYNC_ME,4,2        ; @PACKET3_PFP_SYNC_ME
.subsections_via_symbols
