	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v7_0_soft_reset
_gfx_v7_0_soft_reset:                   ## @gfx_v7_0_soft_reset
	.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	%rdi, %r14
	movq	_mmGRBM_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movq	_GRBM_STATUS__PA_BUSY_MASK@GOTPCREL(%rip), %rdx
	movq	_GRBM_STATUS__SC_BUSY_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_GRBM_STATUS__BCI_BUSY_MASK@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_GRBM_STATUS__SX_BUSY_MASK@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_GRBM_STATUS__TA_BUSY_MASK@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_GRBM_STATUS__VGT_BUSY_MASK@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_GRBM_STATUS__DB_BUSY_MASK@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_GRBM_STATUS__CB_BUSY_MASK@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_GRBM_STATUS__GDS_BUSY_MASK@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_GRBM_STATUS__SPI_BUSY_MASK@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_GRBM_STATUS__IA_BUSY_MASK@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_GRBM_STATUS__IA_BUSY_NO_DMA_MASK@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_GRBM_SOFT_RESET__SOFT_RESET_CP_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_GRBM_SOFT_RESET__SOFT_RESET_GFX_MASK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r15d
	orl	%edx, %r15d
	movq	_GRBM_STATUS__CP_BUSY_MASK@GOTPCREL(%rip), %rsi
	movq	_GRBM_STATUS__CP_COHERENCY_BUSY_MASK@GOTPCREL(%rip), %rdi
	movl	(%rdi), %ebx
	orl	(%rsi), %ebx
	movq	_SRBM_SOFT_RESET__SOFT_RESET_GRBM_MASK@GOTPCREL(%rip), %r12
	andl	%eax, %ebx
	movl	%ebx, %esi
	je	LBB0_2
## %bb.1:
	movl	(%r12), %ebx
	movl	%edx, %esi
LBB0_2:
	testl	%eax, %ecx
	cmovel	%esi, %r15d
	movq	_mmGRBM_STATUS2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, %r13d
	movq	_GRBM_STATUS2__RLC_BUSY_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	je	LBB0_4
## %bb.3:
	movq	_GRBM_SOFT_RESET__SOFT_RESET_RLC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_4:
	orl	%r15d, %r13d
	movq	_mmSRBM_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, %r15d
	movq	_SRBM_STATUS__GRBM_RQ_PENDING_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	je	LBB0_6
## %bb.5:
	movl	(%r12), %r15d
LBB0_6:
	orl	%ebx, %r15d
	movl	%r13d, %eax
	orl	%r15d, %eax
	je	LBB0_12
## %bb.7:
	movq	%r14, %rdi
	callq	_gfx_v7_0_fini_pg
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_gfx_v7_0_update_cg
	movq	8(%r14), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	movq	_mmCP_ME_CNTL@GOTPCREL(%rip), %rax
	movq	_CP_ME_CNTL__ME_HALT_MASK@GOTPCREL(%rip), %rcx
	movq	_CP_ME_CNTL__PFP_HALT_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movl	(%rax), %edi
	movq	_CP_ME_CNTL__CE_HALT_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_WREG32
	movq	_mmCP_MEC_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CP_MEC_CNTL__MEC_ME1_HALT_MASK@GOTPCREL(%rip), %rax
	movq	_CP_MEC_CNTL__MEC_ME2_HALT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_WREG32
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.8:
	movq	_mmGRBM_SOFT_RESET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_RREG32
	movl	%eax, %r12d
	orl	%r13d, %r12d
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_dev_info
	movl	(%rbx), %edi
	movl	%r12d, %esi
	callq	_WREG32
	movl	(%rbx), %edi
	callq	_RREG32
	movl	%eax, %r12d
	movl	$50, %edi
	callq	_udelay
	notl	%r13d
	andl	%r12d, %r13d
	movl	(%rbx), %edi
	movl	%r13d, %esi
	callq	_WREG32
	movl	(%rbx), %edi
	callq	_RREG32
LBB0_9:
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.10:
	movq	_mmSRBM_SOFT_RESET@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_RREG32
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_info
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_WREG32
	movl	(%r12), %edi
	callq	_RREG32
	movl	%eax, %ebx
	movl	$50, %edi
	callq	_udelay
	notl	%r15d
	andl	%ebx, %r15d
	movl	(%r12), %edi
	movl	%r15d, %esi
	callq	_WREG32
	movl	(%r12), %edi
	callq	_RREG32
LBB0_11:
	movl	$50, %edi
	callq	_udelay
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	_mmGRBM_STATUS,4,2              ## @mmGRBM_STATUS
	.comm	_GRBM_STATUS__PA_BUSY_MASK,4,2  ## @GRBM_STATUS__PA_BUSY_MASK
	.comm	_GRBM_STATUS__SC_BUSY_MASK,4,2  ## @GRBM_STATUS__SC_BUSY_MASK
	.comm	_GRBM_STATUS__BCI_BUSY_MASK,4,2 ## @GRBM_STATUS__BCI_BUSY_MASK
	.comm	_GRBM_STATUS__SX_BUSY_MASK,4,2  ## @GRBM_STATUS__SX_BUSY_MASK
	.comm	_GRBM_STATUS__TA_BUSY_MASK,4,2  ## @GRBM_STATUS__TA_BUSY_MASK
	.comm	_GRBM_STATUS__VGT_BUSY_MASK,4,2 ## @GRBM_STATUS__VGT_BUSY_MASK
	.comm	_GRBM_STATUS__DB_BUSY_MASK,4,2  ## @GRBM_STATUS__DB_BUSY_MASK
	.comm	_GRBM_STATUS__CB_BUSY_MASK,4,2  ## @GRBM_STATUS__CB_BUSY_MASK
	.comm	_GRBM_STATUS__GDS_BUSY_MASK,4,2 ## @GRBM_STATUS__GDS_BUSY_MASK
	.comm	_GRBM_STATUS__SPI_BUSY_MASK,4,2 ## @GRBM_STATUS__SPI_BUSY_MASK
	.comm	_GRBM_STATUS__IA_BUSY_MASK,4,2  ## @GRBM_STATUS__IA_BUSY_MASK
	.comm	_GRBM_STATUS__IA_BUSY_NO_DMA_MASK,4,2 ## @GRBM_STATUS__IA_BUSY_NO_DMA_MASK
	.comm	_GRBM_SOFT_RESET__SOFT_RESET_CP_MASK,4,2 ## @GRBM_SOFT_RESET__SOFT_RESET_CP_MASK
	.comm	_GRBM_SOFT_RESET__SOFT_RESET_GFX_MASK,4,2 ## @GRBM_SOFT_RESET__SOFT_RESET_GFX_MASK
	.comm	_GRBM_STATUS__CP_BUSY_MASK,4,2  ## @GRBM_STATUS__CP_BUSY_MASK
	.comm	_GRBM_STATUS__CP_COHERENCY_BUSY_MASK,4,2 ## @GRBM_STATUS__CP_COHERENCY_BUSY_MASK
	.comm	_SRBM_SOFT_RESET__SOFT_RESET_GRBM_MASK,4,2 ## @SRBM_SOFT_RESET__SOFT_RESET_GRBM_MASK
	.comm	_mmGRBM_STATUS2,4,2             ## @mmGRBM_STATUS2
	.comm	_GRBM_STATUS2__RLC_BUSY_MASK,4,2 ## @GRBM_STATUS2__RLC_BUSY_MASK
	.comm	_GRBM_SOFT_RESET__SOFT_RESET_RLC_MASK,4,2 ## @GRBM_SOFT_RESET__SOFT_RESET_RLC_MASK
	.comm	_mmSRBM_STATUS,4,2              ## @mmSRBM_STATUS
	.comm	_SRBM_STATUS__GRBM_RQ_PENDING_MASK,4,2 ## @SRBM_STATUS__GRBM_RQ_PENDING_MASK
	.comm	_mmCP_ME_CNTL,4,2               ## @mmCP_ME_CNTL
	.comm	_CP_ME_CNTL__ME_HALT_MASK,4,2   ## @CP_ME_CNTL__ME_HALT_MASK
	.comm	_CP_ME_CNTL__PFP_HALT_MASK,4,2  ## @CP_ME_CNTL__PFP_HALT_MASK
	.comm	_CP_ME_CNTL__CE_HALT_MASK,4,2   ## @CP_ME_CNTL__CE_HALT_MASK
	.comm	_mmCP_MEC_CNTL,4,2              ## @mmCP_MEC_CNTL
	.comm	_CP_MEC_CNTL__MEC_ME1_HALT_MASK,4,2 ## @CP_MEC_CNTL__MEC_ME1_HALT_MASK
	.comm	_CP_MEC_CNTL__MEC_ME2_HALT_MASK,4,2 ## @CP_MEC_CNTL__MEC_ME2_HALT_MASK
	.comm	_mmGRBM_SOFT_RESET,4,2          ## @mmGRBM_SOFT_RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GRBM_SOFT_RESET=0x%08X\n"

	.comm	_mmSRBM_SOFT_RESET,4,2          ## @mmSRBM_SOFT_RESET
L_.str.1:                               ## @.str.1
	.asciz	"SRBM_SOFT_RESET=0x%08X\n"

	.no_dead_strip	_gfx_v7_0_soft_reset
.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_soft_reset
_gfx_v7_0_soft_reset:                   ; @gfx_v7_0_soft_reset
	.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, x0
Lloh0:
	adrp	x8, _mmGRBM_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mmGRBM_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_RREG32
Lloh3:
	adrp	x8, _GRBM_STATUS__PA_BUSY_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GRBM_STATUS__PA_BUSY_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _GRBM_STATUS__SC_BUSY_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GRBM_STATUS__SC_BUSY_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _GRBM_STATUS__BCI_BUSY_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GRBM_STATUS__BCI_BUSY_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _GRBM_STATUS__SX_BUSY_MASK@GOTPAGE
Lloh13:
	ldr	x10, [x10, _GRBM_STATUS__SX_BUSY_MASK@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh14:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _GRBM_STATUS__TA_BUSY_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _GRBM_STATUS__TA_BUSY_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _GRBM_STATUS__VGT_BUSY_MASK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _GRBM_STATUS__VGT_BUSY_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _GRBM_STATUS__DB_BUSY_MASK@GOTPAGE
Lloh22:
	ldr	x10, [x10, _GRBM_STATUS__DB_BUSY_MASK@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh23:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _GRBM_STATUS__CB_BUSY_MASK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _GRBM_STATUS__CB_BUSY_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh27:
	adrp	x9, _GRBM_STATUS__GDS_BUSY_MASK@GOTPAGE
Lloh28:
	ldr	x9, [x9, _GRBM_STATUS__GDS_BUSY_MASK@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
Lloh30:
	adrp	x10, _GRBM_STATUS__SPI_BUSY_MASK@GOTPAGE
Lloh31:
	ldr	x10, [x10, _GRBM_STATUS__SPI_BUSY_MASK@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh32:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh33:
	adrp	x9, _GRBM_STATUS__IA_BUSY_MASK@GOTPAGE
Lloh34:
	ldr	x9, [x9, _GRBM_STATUS__IA_BUSY_MASK@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh36:
	adrp	x9, _GRBM_STATUS__IA_BUSY_NO_DMA_MASK@GOTPAGE
Lloh37:
	ldr	x9, [x9, _GRBM_STATUS__IA_BUSY_NO_DMA_MASK@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
Lloh39:
	adrp	x10, _GRBM_SOFT_RESET__SOFT_RESET_CP_MASK@GOTPAGE
Lloh40:
	ldr	x10, [x10, _GRBM_SOFT_RESET__SOFT_RESET_CP_MASK@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh41:
	ldr	w9, [x10]
Lloh42:
	adrp	x10, _GRBM_SOFT_RESET__SOFT_RESET_GFX_MASK@GOTPAGE
Lloh43:
	ldr	x10, [x10, _GRBM_SOFT_RESET__SOFT_RESET_GFX_MASK@GOTPAGEOFF]
Lloh44:
	ldr	w10, [x10]
	orr	w10, w10, w9
Lloh45:
	adrp	x11, _GRBM_STATUS__CP_BUSY_MASK@GOTPAGE
Lloh46:
	ldr	x11, [x11, _GRBM_STATUS__CP_BUSY_MASK@GOTPAGEOFF]
Lloh47:
	ldr	w11, [x11]
Lloh48:
	adrp	x12, _GRBM_STATUS__CP_COHERENCY_BUSY_MASK@GOTPAGE
Lloh49:
	ldr	x12, [x12, _GRBM_STATUS__CP_COHERENCY_BUSY_MASK@GOTPAGEOFF]
Lloh50:
	ldr	w12, [x12]
	orr	w11, w12, w11
Lloh51:
	adrp	x20, _SRBM_SOFT_RESET__SOFT_RESET_GRBM_MASK@GOTPAGE
Lloh52:
	ldr	x20, [x20, _SRBM_SOFT_RESET__SOFT_RESET_GRBM_MASK@GOTPAGEOFF]
	ldr	w12, [x20]
	tst	w11, w0
	csel	w21, wzr, w12, eq
	csel	w9, wzr, w9, eq
	tst	w8, w0
	csel	w22, w9, w10, eq
Lloh53:
	adrp	x8, _mmGRBM_STATUS2@GOTPAGE
Lloh54:
	ldr	x8, [x8, _mmGRBM_STATUS2@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
	bl	_RREG32
Lloh56:
	adrp	x8, _GRBM_STATUS2__RLC_BUSY_MASK@GOTPAGE
Lloh57:
	ldr	x8, [x8, _GRBM_STATUS2__RLC_BUSY_MASK@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
Lloh59:
	adrp	x9, _GRBM_SOFT_RESET__SOFT_RESET_RLC_MASK@GOTPAGE
Lloh60:
	ldr	x9, [x9, _GRBM_SOFT_RESET__SOFT_RESET_RLC_MASK@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	tst	w8, w0
	csel	w8, wzr, w9, eq
	orr	w22, w8, w22
Lloh62:
	adrp	x8, _mmSRBM_STATUS@GOTPAGE
Lloh63:
	ldr	x8, [x8, _mmSRBM_STATUS@GOTPAGEOFF]
Lloh64:
	ldr	w0, [x8]
	bl	_RREG32
Lloh65:
	adrp	x8, _SRBM_STATUS__GRBM_RQ_PENDING_MASK@GOTPAGE
Lloh66:
	ldr	x8, [x8, _SRBM_STATUS__GRBM_RQ_PENDING_MASK@GOTPAGEOFF]
Lloh67:
	ldr	w8, [x8]
	ldr	w9, [x20]
	tst	w8, w0
	csel	w8, wzr, w9, eq
	orr	w21, w8, w21
	orr	w8, w22, w21
	cbz	w8, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_gfx_v7_0_fini_pg
	mov	x0, x19
	mov	w1, #0
	bl	_gfx_v7_0_update_cg
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
Lloh68:
	adrp	x8, _mmCP_ME_CNTL@GOTPAGE
Lloh69:
	ldr	x8, [x8, _mmCP_ME_CNTL@GOTPAGEOFF]
Lloh70:
	ldr	w0, [x8]
Lloh71:
	adrp	x8, _CP_ME_CNTL__ME_HALT_MASK@GOTPAGE
Lloh72:
	ldr	x8, [x8, _CP_ME_CNTL__ME_HALT_MASK@GOTPAGEOFF]
Lloh73:
	ldr	w8, [x8]
Lloh74:
	adrp	x9, _CP_ME_CNTL__PFP_HALT_MASK@GOTPAGE
Lloh75:
	ldr	x9, [x9, _CP_ME_CNTL__PFP_HALT_MASK@GOTPAGEOFF]
Lloh76:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh77:
	adrp	x9, _CP_ME_CNTL__CE_HALT_MASK@GOTPAGE
Lloh78:
	ldr	x9, [x9, _CP_ME_CNTL__CE_HALT_MASK@GOTPAGEOFF]
Lloh79:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_WREG32
Lloh80:
	adrp	x8, _mmCP_MEC_CNTL@GOTPAGE
Lloh81:
	ldr	x8, [x8, _mmCP_MEC_CNTL@GOTPAGEOFF]
Lloh82:
	adrp	x9, _CP_MEC_CNTL__MEC_ME1_HALT_MASK@GOTPAGE
Lloh83:
	ldr	x9, [x9, _CP_MEC_CNTL__MEC_ME1_HALT_MASK@GOTPAGEOFF]
Lloh84:
	ldr	w0, [x8]
Lloh85:
	ldr	w8, [x9]
Lloh86:
	adrp	x9, _CP_MEC_CNTL__MEC_ME2_HALT_MASK@GOTPAGE
Lloh87:
	ldr	x9, [x9, _CP_MEC_CNTL__MEC_ME2_HALT_MASK@GOTPAGEOFF]
Lloh88:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_WREG32
	cbz	w22, LBB0_3
; %bb.2:
Lloh89:
	adrp	x23, _mmGRBM_SOFT_RESET@GOTPAGE
Lloh90:
	ldr	x23, [x23, _mmGRBM_SOFT_RESET@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_RREG32
	orr	w20, w0, w22
	ldr	w0, [x19]
Lloh91:
	adrp	x1, l_.str@PAGE
Lloh92:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_info
	ldr	w0, [x23]
	mov	x1, x20
	bl	_WREG32
	ldr	w0, [x23]
	bl	_RREG32
	mov	x20, x0
	mov	w0, #50
	bl	_udelay
	bic	w1, w20, w22
	ldr	w0, [x23]
	bl	_WREG32
	ldr	w0, [x23]
	bl	_RREG32
LBB0_3:
	cbz	w21, LBB0_5
; %bb.4:
Lloh93:
	adrp	x22, _mmSRBM_SOFT_RESET@GOTPAGE
Lloh94:
	ldr	x22, [x22, _mmSRBM_SOFT_RESET@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_RREG32
	orr	w20, w0, w21
	ldr	w0, [x19]
Lloh95:
	adrp	x1, l_.str.1@PAGE
Lloh96:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_dev_info
	ldr	w0, [x22]
	mov	x1, x20
	bl	_WREG32
	ldr	w0, [x22]
	bl	_RREG32
	mov	x19, x0
	mov	w0, #50
	bl	_udelay
	bic	w1, w19, w21
	ldr	w0, [x22]
	bl	_WREG32
	ldr	w0, [x22]
	bl	_RREG32
LBB0_5:
	mov	w0, #50
	bl	_udelay
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 AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh84
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpAdd	Lloh91, Lloh92
	.loh AdrpLdrGot	Lloh89, Lloh90
	.loh AdrpAdd	Lloh95, Lloh96
	.loh AdrpLdrGot	Lloh93, Lloh94
	.cfi_endproc
                                        ; -- End function
	.comm	_mmGRBM_STATUS,4,2              ; @mmGRBM_STATUS
	.comm	_GRBM_STATUS__PA_BUSY_MASK,4,2  ; @GRBM_STATUS__PA_BUSY_MASK
	.comm	_GRBM_STATUS__SC_BUSY_MASK,4,2  ; @GRBM_STATUS__SC_BUSY_MASK
	.comm	_GRBM_STATUS__BCI_BUSY_MASK,4,2 ; @GRBM_STATUS__BCI_BUSY_MASK
	.comm	_GRBM_STATUS__SX_BUSY_MASK,4,2  ; @GRBM_STATUS__SX_BUSY_MASK
	.comm	_GRBM_STATUS__TA_BUSY_MASK,4,2  ; @GRBM_STATUS__TA_BUSY_MASK
	.comm	_GRBM_STATUS__VGT_BUSY_MASK,4,2 ; @GRBM_STATUS__VGT_BUSY_MASK
	.comm	_GRBM_STATUS__DB_BUSY_MASK,4,2  ; @GRBM_STATUS__DB_BUSY_MASK
	.comm	_GRBM_STATUS__CB_BUSY_MASK,4,2  ; @GRBM_STATUS__CB_BUSY_MASK
	.comm	_GRBM_STATUS__GDS_BUSY_MASK,4,2 ; @GRBM_STATUS__GDS_BUSY_MASK
	.comm	_GRBM_STATUS__SPI_BUSY_MASK,4,2 ; @GRBM_STATUS__SPI_BUSY_MASK
	.comm	_GRBM_STATUS__IA_BUSY_MASK,4,2  ; @GRBM_STATUS__IA_BUSY_MASK
	.comm	_GRBM_STATUS__IA_BUSY_NO_DMA_MASK,4,2 ; @GRBM_STATUS__IA_BUSY_NO_DMA_MASK
	.comm	_GRBM_SOFT_RESET__SOFT_RESET_CP_MASK,4,2 ; @GRBM_SOFT_RESET__SOFT_RESET_CP_MASK
	.comm	_GRBM_SOFT_RESET__SOFT_RESET_GFX_MASK,4,2 ; @GRBM_SOFT_RESET__SOFT_RESET_GFX_MASK
	.comm	_GRBM_STATUS__CP_BUSY_MASK,4,2  ; @GRBM_STATUS__CP_BUSY_MASK
	.comm	_GRBM_STATUS__CP_COHERENCY_BUSY_MASK,4,2 ; @GRBM_STATUS__CP_COHERENCY_BUSY_MASK
	.comm	_SRBM_SOFT_RESET__SOFT_RESET_GRBM_MASK,4,2 ; @SRBM_SOFT_RESET__SOFT_RESET_GRBM_MASK
	.comm	_mmGRBM_STATUS2,4,2             ; @mmGRBM_STATUS2
	.comm	_GRBM_STATUS2__RLC_BUSY_MASK,4,2 ; @GRBM_STATUS2__RLC_BUSY_MASK
	.comm	_GRBM_SOFT_RESET__SOFT_RESET_RLC_MASK,4,2 ; @GRBM_SOFT_RESET__SOFT_RESET_RLC_MASK
	.comm	_mmSRBM_STATUS,4,2              ; @mmSRBM_STATUS
	.comm	_SRBM_STATUS__GRBM_RQ_PENDING_MASK,4,2 ; @SRBM_STATUS__GRBM_RQ_PENDING_MASK
	.comm	_mmCP_ME_CNTL,4,2               ; @mmCP_ME_CNTL
	.comm	_CP_ME_CNTL__ME_HALT_MASK,4,2   ; @CP_ME_CNTL__ME_HALT_MASK
	.comm	_CP_ME_CNTL__PFP_HALT_MASK,4,2  ; @CP_ME_CNTL__PFP_HALT_MASK
	.comm	_CP_ME_CNTL__CE_HALT_MASK,4,2   ; @CP_ME_CNTL__CE_HALT_MASK
	.comm	_mmCP_MEC_CNTL,4,2              ; @mmCP_MEC_CNTL
	.comm	_CP_MEC_CNTL__MEC_ME1_HALT_MASK,4,2 ; @CP_MEC_CNTL__MEC_ME1_HALT_MASK
	.comm	_CP_MEC_CNTL__MEC_ME2_HALT_MASK,4,2 ; @CP_MEC_CNTL__MEC_ME2_HALT_MASK
	.comm	_mmGRBM_SOFT_RESET,4,2          ; @mmGRBM_SOFT_RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GRBM_SOFT_RESET=0x%08X\n"

	.comm	_mmSRBM_SOFT_RESET,4,2          ; @mmSRBM_SOFT_RESET
l_.str.1:                               ; @.str.1
	.asciz	"SRBM_SOFT_RESET=0x%08X\n"

	.no_dead_strip	_gfx_v7_0_soft_reset
.subsections_via_symbols
