	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gfx_v7_0_mqd_commit            ## -- Begin function gfx_v7_0_mqd_commit
	.p2align	4, 0x90
_gfx_v7_0_mqd_commit:                   ## @gfx_v7_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_mmCP_PQ_WPTR_POLL_CNTL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_RREG32
	movq	_CP_PQ_WPTR_POLL_CNTL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	callq	_REG_SET_FIELD
	movq	(%rbx), %rdi
	movq	%rax, %rsi
	callq	_WREG32
	movq	_mmCP_HQD_VMID@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_mmCP_MQD_CONTROL@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rbx
	jg	LBB0_3
## %bb.1:
	movq	_mmCP_MQD_BASE_ADDR@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	shlq	$3, %rax
	movq	%r14, %rcx
	subq	%rax, %rcx
	movq	(%rcx,%rbx,8), %rsi
	movq	%rbx, %rdi
	callq	_WREG32
	leaq	1(%rbx), %rax
	cmpq	(%r15), %rbx
	movq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	_mmCP_MQD_BASE_ADDR@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	movq	_mmCP_HQD_ACTIVE@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rbx
	jg	LBB0_7
## %bb.4:
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_WREG32
	cmpq	(%r12), %rbx
	jge	LBB0_7
## %bb.5:
	incq	%rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	shlq	$3, %rax
	movq	%r14, %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_6
LBB0_7:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mmCP_PQ_WPTR_POLL_CNTL,8,3     ## @mmCP_PQ_WPTR_POLL_CNTL
	.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_MQD_CONTROL,8,3           ## @mmCP_MQD_CONTROL
	.comm	_mmCP_MQD_BASE_ADDR,8,3         ## @mmCP_MQD_BASE_ADDR
	.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_v7_0_mqd_commit            ; -- Begin function gfx_v7_0_mqd_commit
	.p2align	2
_gfx_v7_0_mqd_commit:                   ; @gfx_v7_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
Lloh0:
	adrp	x20, _mmCP_PQ_WPTR_POLL_CNTL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _mmCP_PQ_WPTR_POLL_CNTL@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_RREG32
Lloh2:
	adrp	x8, _CP_PQ_WPTR_POLL_CNTL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CP_PQ_WPTR_POLL_CNTL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _EN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EN@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_REG_SET_FIELD
	mov	x1, x0
	ldr	x0, [x20]
	bl	_WREG32
Lloh8:
	adrp	x8, _mmCP_HQD_VMID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mmCP_HQD_VMID@GOTPAGEOFF]
Lloh10:
	ldr	x20, [x8]
Lloh11:
	adrp	x22, _mmCP_MQD_CONTROL@GOTPAGE
Lloh12:
	ldr	x22, [x22, _mmCP_MQD_CONTROL@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh13:
	adrp	x21, _mmCP_MQD_BASE_ADDR@GOTPAGE
Lloh14:
	ldr	x21, [x21, _mmCP_MQD_BASE_ADDR@GOTPAGEOFF]
	cmp	x20, x8
	b.gt	LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	sub	x8, x19, x8, lsl #3
	ldr	x1, [x8, x20, lsl #3]
	mov	x0, x20
	bl	_WREG32
	add	x8, x20, #1
	ldr	x9, [x22]
	cmp	x20, x9
	mov	x20, x8
	b.lt	LBB0_1
LBB0_2:
	ldr	x20, [x21]
Lloh15:
	adrp	x22, _mmCP_HQD_ACTIVE@GOTPAGE
Lloh16:
	ldr	x22, [x22, _mmCP_HQD_ACTIVE@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x20, x8
	b.gt	LBB0_6
; %bb.3:
	ldr	x1, [x19]
	mov	x0, x20
	bl	_WREG32
	ldr	x8, [x22]
	cmp	x20, x8
	b.ge	LBB0_6
; %bb.4:
	add	x23, x19, #8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x19, x20, #1
	ldr	x8, [x21]
	sub	x8, x23, x8, lsl #3
	ldr	x1, [x8, x20, lsl #3]
	mov	x0, x19
	bl	_WREG32
	ldr	x8, [x22]
	mov	x20, x19
	cmp	x19, x8
	b.lt	LBB0_5
LBB0_6:
	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	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_mmCP_PQ_WPTR_POLL_CNTL,8,3     ; @mmCP_PQ_WPTR_POLL_CNTL
	.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_MQD_CONTROL,8,3           ; @mmCP_MQD_CONTROL
	.comm	_mmCP_MQD_BASE_ADDR,8,3         ; @mmCP_MQD_BASE_ADDR
	.comm	_mmCP_HQD_ACTIVE,8,3            ; @mmCP_HQD_ACTIVE
.subsections_via_symbols
