	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gfx_v8_0_mqd_commit            ## -- Begin function gfx_v8_0_mqd_commit
	.p2align	4, 0x90
_gfx_v8_0_mqd_commit:                   ## @gfx_v8_0_mqd_commit
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	_CP_PQ_WPTR_POLL_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_WREG32_FIELD
	movq	_mmCP_HQD_VMID@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_mmCP_HQD_EOP_CONTROL@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rbx
	jg	LBB0_3
## %bb.1:
	movq	_mmCP_MQD_BASE_ADDR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	shlq	$3, %rax
	movq	%r15, %rcx
	subq	%rax, %rcx
	movq	(%rcx,%rbx,8), %rsi
	movq	%rbx, %rdi
	callq	_WREG32
	leaq	1(%rbx), %rax
	cmpq	(%r12), %rbx
	movq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	(%r14), %rax
	movq	_CHIP_TONGA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	_mmCP_HQD_EOP_RPTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	8(%r15), %rsi
	callq	_WREG32
	movq	_mmCP_HQD_EOP_WPTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	16(%r15), %rsi
	callq	_WREG32
	movq	_mmCP_HQD_EOP_WPTR_MEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	24(%r15), %rsi
	callq	_WREG32
LBB0_5:
	movq	_mmCP_HQD_EOP_EVENTS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_mmCP_HQD_ERROR@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rbx
	jg	LBB0_8
## %bb.6:
	movq	_mmCP_MQD_BASE_ADDR@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	shlq	$3, %rax
	movq	%r15, %rcx
	subq	%rax, %rcx
	movq	(%rcx,%rbx,8), %rsi
	movq	%rbx, %rdi
	callq	_WREG32
	leaq	1(%rbx), %rax
	cmpq	(%r14), %rbx
	movq	%rax, %rbx
	jl	LBB0_7
LBB0_8:
	movq	_mmCP_MQD_BASE_ADDR@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	movq	_mmCP_HQD_ACTIVE@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rbx
	jg	LBB0_12
## %bb.9:
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_WREG32
	cmpq	(%r12), %rbx
	jge	LBB0_12
## %bb.10:
	incq	%rbx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	shlq	$3, %rax
	movq	%r15, %rcx
	subq	%rax, %rcx
	movq	(%rcx,%rbx,8), %rsi
	movq	%rbx, %rdi
	callq	_WREG32
	leaq	1(%rbx), %rax
	cmpq	(%r12), %rbx
	movq	%rax, %rbx
	jl	LBB0_11
LBB0_12:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CP_PQ_WPTR_POLL_CNTL,4,2       ## @CP_PQ_WPTR_POLL_CNTL
	.comm	_EN,4,2                         ## @EN
	.comm	_mmCP_HQD_VMID,8,3              ## @mmCP_HQD_VMID
	.comm	_mmCP_HQD_EOP_CONTROL,8,3       ## @mmCP_HQD_EOP_CONTROL
	.comm	_mmCP_MQD_BASE_ADDR,8,3         ## @mmCP_MQD_BASE_ADDR
	.comm	_CHIP_TONGA,8,3                 ## @CHIP_TONGA
	.comm	_mmCP_HQD_EOP_RPTR,8,3          ## @mmCP_HQD_EOP_RPTR
	.comm	_mmCP_HQD_EOP_WPTR,8,3          ## @mmCP_HQD_EOP_WPTR
	.comm	_mmCP_HQD_EOP_WPTR_MEM,8,3      ## @mmCP_HQD_EOP_WPTR_MEM
	.comm	_mmCP_HQD_EOP_EVENTS,8,3        ## @mmCP_HQD_EOP_EVENTS
	.comm	_mmCP_HQD_ERROR,8,3             ## @mmCP_HQD_ERROR
	.comm	_mmCP_HQD_ACTIVE,8,3            ## @mmCP_HQD_ACTIVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gfx_v8_0_mqd_commit            ; -- Begin function gfx_v8_0_mqd_commit
	.p2align	2
_gfx_v8_0_mqd_commit:                   ; @gfx_v8_0_mqd_commit
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _CP_PQ_WPTR_POLL_CNTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CP_PQ_WPTR_POLL_CNTL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_WREG32_FIELD
Lloh6:
	adrp	x8, _mmCP_HQD_VMID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mmCP_HQD_VMID@GOTPAGEOFF]
Lloh8:
	ldr	x21, [x8]
Lloh9:
	adrp	x23, _mmCP_HQD_EOP_CONTROL@GOTPAGE
Lloh10:
	ldr	x23, [x23, _mmCP_HQD_EOP_CONTROL@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh11:
	adrp	x22, _mmCP_MQD_BASE_ADDR@GOTPAGE
Lloh12:
	ldr	x22, [x22, _mmCP_MQD_BASE_ADDR@GOTPAGEOFF]
	cmp	x21, x8
	b.gt	LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	sub	x8, x19, x8, lsl #3
	ldr	x1, [x8, x21, lsl #3]
	mov	x0, x21
	bl	_WREG32
	add	x8, x21, #1
	ldr	x9, [x23]
	cmp	x21, x9
	mov	x21, x8
	b.lt	LBB0_1
LBB0_2:
	ldr	x8, [x20]
Lloh13:
	adrp	x9, _CHIP_TONGA@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CHIP_TONGA@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
Lloh16:
	adrp	x8, _mmCP_HQD_EOP_RPTR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _mmCP_HQD_EOP_RPTR@GOTPAGEOFF]
Lloh18:
	ldr	x0, [x8]
	ldr	x1, [x19, #8]
	bl	_WREG32
Lloh19:
	adrp	x8, _mmCP_HQD_EOP_WPTR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _mmCP_HQD_EOP_WPTR@GOTPAGEOFF]
Lloh21:
	ldr	x0, [x8]
	ldr	x1, [x19, #16]
	bl	_WREG32
Lloh22:
	adrp	x8, _mmCP_HQD_EOP_WPTR_MEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _mmCP_HQD_EOP_WPTR_MEM@GOTPAGEOFF]
Lloh24:
	ldr	x0, [x8]
	ldr	x1, [x19, #24]
	bl	_WREG32
LBB0_4:
Lloh25:
	adrp	x8, _mmCP_HQD_EOP_EVENTS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _mmCP_HQD_EOP_EVENTS@GOTPAGEOFF]
Lloh27:
	ldr	x20, [x8]
Lloh28:
	adrp	x21, _mmCP_HQD_ERROR@GOTPAGE
Lloh29:
	ldr	x21, [x21, _mmCP_HQD_ERROR@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x20, x8
	b.gt	LBB0_6
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	sub	x8, x19, x8, lsl #3
	ldr	x1, [x8, x20, lsl #3]
	mov	x0, x20
	bl	_WREG32
	add	x8, x20, #1
	ldr	x9, [x21]
	cmp	x20, x9
	mov	x20, x8
	b.lt	LBB0_5
LBB0_6:
	ldr	x20, [x22]
Lloh30:
	adrp	x21, _mmCP_HQD_ACTIVE@GOTPAGE
Lloh31:
	ldr	x21, [x21, _mmCP_HQD_ACTIVE@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x20, x8
	b.gt	LBB0_10
; %bb.7:
	ldr	x1, [x19]
	mov	x0, x20
	bl	_WREG32
	ldr	x8, [x21]
	cmp	x20, x8
	b.ge	LBB0_10
; %bb.8:
	add	x23, x19, #8
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x19, x20, #1
	ldr	x8, [x22]
	sub	x8, x23, x8, lsl #3
	ldr	x1, [x8, x20, lsl #3]
	mov	x0, x19
	bl	_WREG32
	ldr	x8, [x21]
	mov	x20, x19
	cmp	x19, x8
	b.lt	LBB0_9
LBB0_10:
	mov	w0, #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
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_CP_PQ_WPTR_POLL_CNTL,4,2       ; @CP_PQ_WPTR_POLL_CNTL
	.comm	_EN,4,2                         ; @EN
	.comm	_mmCP_HQD_VMID,8,3              ; @mmCP_HQD_VMID
	.comm	_mmCP_HQD_EOP_CONTROL,8,3       ; @mmCP_HQD_EOP_CONTROL
	.comm	_mmCP_MQD_BASE_ADDR,8,3         ; @mmCP_MQD_BASE_ADDR
	.comm	_CHIP_TONGA,8,3                 ; @CHIP_TONGA
	.comm	_mmCP_HQD_EOP_RPTR,8,3          ; @mmCP_HQD_EOP_RPTR
	.comm	_mmCP_HQD_EOP_WPTR,8,3          ; @mmCP_HQD_EOP_WPTR
	.comm	_mmCP_HQD_EOP_WPTR_MEM,8,3      ; @mmCP_HQD_EOP_WPTR_MEM
	.comm	_mmCP_HQD_EOP_EVENTS,8,3        ; @mmCP_HQD_EOP_EVENTS
	.comm	_mmCP_HQD_ERROR,8,3             ; @mmCP_HQD_ERROR
	.comm	_mmCP_HQD_ACTIVE,8,3            ; @mmCP_HQD_ACTIVE
.subsections_via_symbols
