	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v7_0_mqd_deactivate
_gfx_v7_0_mqd_deactivate:               ## @gfx_v7_0_mqd_deactivate
	.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	%rdi, %r12
	movq	_mmCP_HQD_ACTIVE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_RREG32
	xorl	%r14d, %r14d
	testb	$1, %al
	je	LBB0_8
## %bb.1:
	movq	_mmCP_HQD_DEQUEUE_REQUEST@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	$1, %esi
	callq	_WREG32
	movl	(%r12), %eax
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_RREG32
	testb	$1, %al
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	callq	_udelay
	incl	%ebx
	movl	(%r12), %eax
	cmpl	%eax, %ebx
	jl	LBB0_2
LBB0_5:
	cmpl	%eax, %ebx
	jne	LBB0_7
LBB0_6:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_8
LBB0_3:
	movl	(%r12), %eax
	cmpl	%eax, %ebx
	je	LBB0_6
LBB0_7:
	movl	(%r14), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_WREG32
	movq	_mmCP_HQD_PQ_RPTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_WREG32
	movq	_mmCP_HQD_PQ_WPTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_WREG32
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mmCP_HQD_ACTIVE,4,2            ## @mmCP_HQD_ACTIVE
	.comm	_mmCP_HQD_DEQUEUE_REQUEST,4,2   ## @mmCP_HQD_DEQUEUE_REQUEST
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_mmCP_HQD_PQ_RPTR,4,2           ## @mmCP_HQD_PQ_RPTR
	.comm	_mmCP_HQD_PQ_WPTR,4,2           ## @mmCP_HQD_PQ_WPTR
	.no_dead_strip	_gfx_v7_0_mqd_deactivate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_v7_0_mqd_deactivate
_gfx_v7_0_mqd_deactivate:               ; @gfx_v7_0_mqd_deactivate
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _mmCP_HQD_ACTIVE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _mmCP_HQD_ACTIVE@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_RREG32
	tbz	w0, #0, LBB0_10
; %bb.1:
Lloh2:
	adrp	x20, _mmCP_HQD_DEQUEUE_REQUEST@GOTPAGE
Lloh3:
	ldr	x20, [x20, _mmCP_HQD_DEQUEUE_REQUEST@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	w1, #1
	bl	_WREG32
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	w22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_RREG32
	tbz	w0, #0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	bl	_udelay
	add	w22, w22, #1
	ldr	w8, [x19]
	cmp	w22, w8
	b.lt	LBB0_3
	b	LBB0_6
LBB0_5:
	mov	w22, #0
LBB0_6:
	cmp	w22, w8
	b.ne	LBB0_9
LBB0_7:
Lloh4:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_8:
	ldr	w8, [x19]
	cmp	w22, w8
	b.eq	LBB0_7
LBB0_9:
	ldr	w0, [x20]
	mov	w1, #0
	bl	_WREG32
Lloh7:
	adrp	x8, _mmCP_HQD_PQ_RPTR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _mmCP_HQD_PQ_RPTR@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_WREG32
Lloh10:
	adrp	x8, _mmCP_HQD_PQ_WPTR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _mmCP_HQD_PQ_WPTR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_WREG32
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_mmCP_HQD_ACTIVE,4,2            ; @mmCP_HQD_ACTIVE
	.comm	_mmCP_HQD_DEQUEUE_REQUEST,4,2   ; @mmCP_HQD_DEQUEUE_REQUEST
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_mmCP_HQD_PQ_RPTR,4,2           ; @mmCP_HQD_PQ_RPTR
	.comm	_mmCP_HQD_PQ_WPTR,4,2           ; @mmCP_HQD_PQ_WPTR
	.no_dead_strip	_gfx_v7_0_mqd_deactivate
.subsections_via_symbols
