	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gmc_v10_0_flush_vm_hub
_gmc_v10_0_flush_vm_hub:                ## @gmc_v10_0_flush_vm_hub
	.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	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	8(%rdi), %r14
	movl	%edx, %r13d
	movl	%esi, %edi
	movl	%ecx, %esi
	callq	_gmc_v10_0_get_invalidate_req
	shlq	$4, %r13
	movq	8(%r14,%r13), %rdi
	addq	$17, %rdi
	movl	%eax, %esi
	callq	_WREG32_NO_KIQ
	movq	_AMDGPU_GFXHUB_0@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	(%r14,%r13), %rax
	addq	$8, %rax
	movq	(%rax), %rdi
	addq	$17, %rdi
	callq	_RREG32_NO_KIQ
LBB0_2:
	cmpl	$0, (%r12)
	je	LBB0_9
## %bb.3:
	addq	%r13, %r14
	movl	$1, %r15d
	movl	%ebx, %ecx
	shll	%cl, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	addq	$17, %rdi
	callq	_RREG32_NO_KIQ
	testl	%r15d, %eax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edi
	callq	_udelay
	incl	%ebx
	movl	(%r12), %eax
	cmpl	%eax, %ebx
	jb	LBB0_4
## %bb.7:
	cmpl	%eax, %ebx
	jae	LBB0_9
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r12), %eax
	cmpl	%eax, %ebx
	jb	LBB0_8
LBB0_9:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AMDGPU_GFXHUB_0,4,2            ## @AMDGPU_GFXHUB_0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timeout waiting for VM flush ACK!\n"

	.no_dead_strip	_gmc_v10_0_flush_vm_hub
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gmc_v10_0_flush_vm_hub
_gmc_v10_0_flush_vm_hub:                ; @gmc_v10_0_flush_vm_hub
	.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, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x23, [x0, #8]
	mov	x0, x1
	mov	x1, x3
	bl	_gmc_v10_0_get_invalidate_req
	mov	x1, x0
	add	x22, x23, w21, uxtw #4
	ldr	x8, [x22, #8]!
	add	x0, x8, #17
	bl	_WREG32_NO_KIQ
Lloh0:
	adrp	x8, _AMDGPU_GFXHUB_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AMDGPU_GFXHUB_0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x22]
	add	x0, x8, #17
	bl	_RREG32_NO_KIQ
LBB0_2:
	ldr	w8, [x19]
	cbz	w8, LBB0_9
; %bb.3:
	mov	w22, #0
	mov	w8, w21
	add	x21, x23, x8, lsl #4
	mov	w8, #1
	lsl	w20, w8, w20
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x0, x8, #17
	bl	_RREG32_NO_KIQ
	tst	w0, w20
	b.ne	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	bl	_udelay
	add	w22, w22, #1
	ldr	w8, [x19]
	cmp	w22, w8
	b.lo	LBB0_4
; %bb.6:
	cmp	w22, w8
	b.hs	LBB0_9
LBB0_7:
	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
LBB0_8:
	ldr	w8, [x19]
	cmp	w22, w8
	b.lo	LBB0_7
LBB0_9:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	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	_DRM_ERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AMDGPU_GFXHUB_0,4,2            ; @AMDGPU_GFXHUB_0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timeout waiting for VM flush ACK!\n"

	.no_dead_strip	_gmc_v10_0_flush_vm_hub
.subsections_via_symbols
