	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v8_0_check_soft_reset
_gfx_v8_0_check_soft_reset:             ## @gfx_v8_0_check_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_STATUS__CP_BUSY_MASK@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_GRBM_STATUS__CP_COHERENCY_BUSY_MASK@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%eax, %ecx
	je	LBB0_1
## %bb.2:
	movq	_GRBM_SOFT_RESET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_SOFT_RESET_CP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	movl	$1, %ecx
	callq	_REG_SET_FIELD
	movl	(%rbx), %esi
	movq	_SOFT_RESET_GFX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$1, %ecx
	callq	_REG_SET_FIELD
	movl	%eax, %r12d
	movq	_SRBM_SOFT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SOFT_RESET_GRBM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	movl	$1, %ecx
	callq	_REG_SET_FIELD
	movl	%eax, %r15d
	jmp	LBB0_3
LBB0_1:
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
LBB0_3:
	movq	_mmGRBM_STATUS2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, %ebx
	movq	_GRBM_STATUS2@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_RLC_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_REG_GET_FIELD
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_GRBM_SOFT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SOFT_RESET_RLC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	movl	$1, %ecx
	callq	_REG_SET_FIELD
	movl	%eax, %r12d
LBB0_5:
	movl	(%r13), %esi
	movq	_CPF_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_REG_GET_FIELD
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movl	(%r13), %esi
	movq	_CPC_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_REG_GET_FIELD
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movl	(%r13), %esi
	movq	_CPG_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_REG_GET_FIELD
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	movq	_GRBM_SOFT_RESET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_SOFT_RESET_CPF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	movl	$1, %ecx
	callq	_REG_SET_FIELD
	movl	(%rbx), %esi
	movq	_SOFT_RESET_CPC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$1, %ecx
	callq	_REG_SET_FIELD
	movl	(%rbx), %esi
	movq	_SOFT_RESET_CPG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$1, %ecx
	callq	_REG_SET_FIELD
	movl	%eax, %r12d
	movq	_SRBM_SOFT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SOFT_RESET_GRBM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movl	$1, %ecx
	callq	_REG_SET_FIELD
	movl	%eax, %r15d
LBB0_9:
	movq	_mmSRBM_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, %ebx
	movq	_SRBM_STATUS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_GRBM_RQ_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_REG_GET_FIELD
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_SRBM_SOFT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SOFT_RESET_GRBM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movl	$1, %ecx
	callq	_REG_SET_FIELD
	movl	%eax, %r15d
LBB0_11:
	movl	(%r13), %esi
	movq	_SEM_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_REG_GET_FIELD
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_SRBM_SOFT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SOFT_RESET_SEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movl	$1, %ecx
	callq	_REG_SET_FIELD
	movl	%eax, %r15d
LBB0_13:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	movl	%r12d, %edx
	orl	%r15d, %edx
	setne	%al
	cmovel	%ecx, %r12d
	cmovnel	%r15d, %ecx
	movl	%r12d, (%r14)
	movl	%ecx, 4(%r14)
	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_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	_GRBM_SOFT_RESET,4,2            ## @GRBM_SOFT_RESET
	.comm	_SOFT_RESET_CP,4,2              ## @SOFT_RESET_CP
	.comm	_SOFT_RESET_GFX,4,2             ## @SOFT_RESET_GFX
	.comm	_SRBM_SOFT_RESET,4,2            ## @SRBM_SOFT_RESET
	.comm	_SOFT_RESET_GRBM,4,2            ## @SOFT_RESET_GRBM
	.comm	_mmGRBM_STATUS2,4,2             ## @mmGRBM_STATUS2
	.comm	_GRBM_STATUS2,4,2               ## @GRBM_STATUS2
	.comm	_RLC_BUSY,4,2                   ## @RLC_BUSY
	.comm	_SOFT_RESET_RLC,4,2             ## @SOFT_RESET_RLC
	.comm	_CPF_BUSY,4,2                   ## @CPF_BUSY
	.comm	_CPC_BUSY,4,2                   ## @CPC_BUSY
	.comm	_CPG_BUSY,4,2                   ## @CPG_BUSY
	.comm	_SOFT_RESET_CPF,4,2             ## @SOFT_RESET_CPF
	.comm	_SOFT_RESET_CPC,4,2             ## @SOFT_RESET_CPC
	.comm	_SOFT_RESET_CPG,4,2             ## @SOFT_RESET_CPG
	.comm	_mmSRBM_STATUS,4,2              ## @mmSRBM_STATUS
	.comm	_SRBM_STATUS,4,2                ## @SRBM_STATUS
	.comm	_GRBM_RQ_PENDING,4,2            ## @GRBM_RQ_PENDING
	.comm	_SEM_BUSY,4,2                   ## @SEM_BUSY
	.comm	_SOFT_RESET_SEM,4,2             ## @SOFT_RESET_SEM
	.no_dead_strip	_gfx_v8_0_check_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_v8_0_check_soft_reset
_gfx_v8_0_check_soft_reset:             ; @gfx_v8_0_check_soft_reset
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	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]
Lloh9:
	adrp	x10, _GRBM_STATUS__BCI_BUSY_MASK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _GRBM_STATUS__BCI_BUSY_MASK@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh11:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _GRBM_STATUS__SX_BUSY_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _GRBM_STATUS__SX_BUSY_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	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]
Lloh18:
	adrp	x10, _GRBM_STATUS__VGT_BUSY_MASK@GOTPAGE
Lloh19:
	ldr	x10, [x10, _GRBM_STATUS__VGT_BUSY_MASK@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh20:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _GRBM_STATUS__DB_BUSY_MASK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _GRBM_STATUS__DB_BUSY_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	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]
Lloh27:
	adrp	x10, _GRBM_STATUS__GDS_BUSY_MASK@GOTPAGE
Lloh28:
	ldr	x10, [x10, _GRBM_STATUS__GDS_BUSY_MASK@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh29:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh30:
	adrp	x9, _GRBM_STATUS__SPI_BUSY_MASK@GOTPAGE
Lloh31:
	ldr	x9, [x9, _GRBM_STATUS__SPI_BUSY_MASK@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	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]
Lloh36:
	adrp	x10, _GRBM_STATUS__IA_BUSY_NO_DMA_MASK@GOTPAGE
Lloh37:
	ldr	x10, [x10, _GRBM_STATUS__IA_BUSY_NO_DMA_MASK@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh38:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh39:
	adrp	x9, _GRBM_STATUS__CP_BUSY_MASK@GOTPAGE
Lloh40:
	ldr	x9, [x9, _GRBM_STATUS__CP_BUSY_MASK@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh42:
	adrp	x9, _GRBM_STATUS__CP_COHERENCY_BUSY_MASK@GOTPAGE
Lloh43:
	ldr	x9, [x9, _GRBM_STATUS__CP_COHERENCY_BUSY_MASK@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
Lloh45:
	adrp	x25, _GRBM_SOFT_RESET@GOTPAGE
Lloh46:
	ldr	x25, [x25, _GRBM_SOFT_RESET@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh47:
	adrp	x23, _SRBM_SOFT_RESET@GOTPAGE
Lloh48:
	ldr	x23, [x23, _SRBM_SOFT_RESET@GOTPAGEOFF]
Lloh49:
	adrp	x24, _SOFT_RESET_GRBM@GOTPAGE
Lloh50:
	ldr	x24, [x24, _SOFT_RESET_GRBM@GOTPAGEOFF]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x25]
Lloh51:
	adrp	x8, _SOFT_RESET_CP@GOTPAGE
Lloh52:
	ldr	x8, [x8, _SOFT_RESET_CP@GOTPAGEOFF]
Lloh53:
	ldr	w2, [x8]
	mov	w0, #0
	mov	w3, #1
	bl	_REG_SET_FIELD
	ldr	w1, [x25]
Lloh54:
	adrp	x8, _SOFT_RESET_GFX@GOTPAGE
Lloh55:
	ldr	x8, [x8, _SOFT_RESET_GFX@GOTPAGEOFF]
Lloh56:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_REG_SET_FIELD
	mov	x21, x0
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	w0, #0
	mov	w3, #1
	bl	_REG_SET_FIELD
	mov	x20, x0
	b	LBB0_3
LBB0_2:
	mov	w21, #0
	mov	w20, #0
LBB0_3:
Lloh57:
	adrp	x8, _mmGRBM_STATUS2@GOTPAGE
Lloh58:
	ldr	x8, [x8, _mmGRBM_STATUS2@GOTPAGEOFF]
Lloh59:
	ldr	w0, [x8]
	bl	_RREG32
	mov	x22, x0
Lloh60:
	adrp	x26, _GRBM_STATUS2@GOTPAGE
Lloh61:
	ldr	x26, [x26, _GRBM_STATUS2@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh62:
	adrp	x8, _RLC_BUSY@GOTPAGE
Lloh63:
	ldr	x8, [x8, _RLC_BUSY@GOTPAGEOFF]
Lloh64:
	ldr	w2, [x8]
	bl	_REG_GET_FIELD
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w1, [x25]
Lloh65:
	adrp	x8, _SOFT_RESET_RLC@GOTPAGE
Lloh66:
	ldr	x8, [x8, _SOFT_RESET_RLC@GOTPAGEOFF]
Lloh67:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w3, #1
	bl	_REG_SET_FIELD
	mov	x21, x0
LBB0_5:
	ldr	w1, [x26]
Lloh68:
	adrp	x8, _CPF_BUSY@GOTPAGE
Lloh69:
	ldr	x8, [x8, _CPF_BUSY@GOTPAGEOFF]
Lloh70:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_REG_GET_FIELD
	cbnz	x0, LBB0_8
; %bb.6:
	ldr	w1, [x26]
Lloh71:
	adrp	x8, _CPC_BUSY@GOTPAGE
Lloh72:
	ldr	x8, [x8, _CPC_BUSY@GOTPAGEOFF]
Lloh73:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_REG_GET_FIELD
	cbnz	x0, LBB0_8
; %bb.7:
	ldr	w1, [x26]
Lloh74:
	adrp	x8, _CPG_BUSY@GOTPAGE
Lloh75:
	ldr	x8, [x8, _CPG_BUSY@GOTPAGEOFF]
Lloh76:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_REG_GET_FIELD
	cbz	x0, LBB0_9
LBB0_8:
	ldr	w1, [x25]
Lloh77:
	adrp	x8, _SOFT_RESET_CPF@GOTPAGE
Lloh78:
	ldr	x8, [x8, _SOFT_RESET_CPF@GOTPAGEOFF]
Lloh79:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w3, #1
	bl	_REG_SET_FIELD
	ldr	w1, [x25]
Lloh80:
	adrp	x8, _SOFT_RESET_CPC@GOTPAGE
Lloh81:
	ldr	x8, [x8, _SOFT_RESET_CPC@GOTPAGEOFF]
Lloh82:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_REG_SET_FIELD
	ldr	w1, [x25]
Lloh83:
	adrp	x8, _SOFT_RESET_CPG@GOTPAGE
Lloh84:
	ldr	x8, [x8, _SOFT_RESET_CPG@GOTPAGEOFF]
Lloh85:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_REG_SET_FIELD
	mov	x21, x0
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x0, x20
	mov	w3, #1
	bl	_REG_SET_FIELD
	mov	x20, x0
LBB0_9:
Lloh86:
	adrp	x8, _mmSRBM_STATUS@GOTPAGE
Lloh87:
	ldr	x8, [x8, _mmSRBM_STATUS@GOTPAGEOFF]
Lloh88:
	ldr	w0, [x8]
	bl	_RREG32
	mov	x22, x0
Lloh89:
	adrp	x25, _SRBM_STATUS@GOTPAGE
Lloh90:
	ldr	x25, [x25, _SRBM_STATUS@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh91:
	adrp	x8, _GRBM_RQ_PENDING@GOTPAGE
Lloh92:
	ldr	x8, [x8, _GRBM_RQ_PENDING@GOTPAGEOFF]
Lloh93:
	ldr	w2, [x8]
	bl	_REG_GET_FIELD
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w1, [x23]
	ldr	w2, [x24]
	mov	x0, x20
	mov	w3, #1
	bl	_REG_SET_FIELD
	mov	x20, x0
LBB0_11:
	ldr	w1, [x25]
Lloh94:
	adrp	x8, _SEM_BUSY@GOTPAGE
Lloh95:
	ldr	x8, [x8, _SEM_BUSY@GOTPAGEOFF]
Lloh96:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_REG_GET_FIELD
	cbz	x0, LBB0_13
; %bb.12:
	ldr	w1, [x23]
Lloh97:
	adrp	x8, _SOFT_RESET_SEM@GOTPAGE
Lloh98:
	ldr	x8, [x8, _SOFT_RESET_SEM@GOTPAGEOFF]
Lloh99:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #1
	bl	_REG_SET_FIELD
	mov	x20, x0
LBB0_13:
	orr	w8, w21, w20
	cmp	w8, #0
	csel	w8, w21, wzr, ne
	cset	w0, ne
	csel	w9, w20, wzr, ne
	stp	w8, w9, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.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	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGot	Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.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_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	_GRBM_SOFT_RESET,4,2            ; @GRBM_SOFT_RESET
	.comm	_SOFT_RESET_CP,4,2              ; @SOFT_RESET_CP
	.comm	_SOFT_RESET_GFX,4,2             ; @SOFT_RESET_GFX
	.comm	_SRBM_SOFT_RESET,4,2            ; @SRBM_SOFT_RESET
	.comm	_SOFT_RESET_GRBM,4,2            ; @SOFT_RESET_GRBM
	.comm	_mmGRBM_STATUS2,4,2             ; @mmGRBM_STATUS2
	.comm	_GRBM_STATUS2,4,2               ; @GRBM_STATUS2
	.comm	_RLC_BUSY,4,2                   ; @RLC_BUSY
	.comm	_SOFT_RESET_RLC,4,2             ; @SOFT_RESET_RLC
	.comm	_CPF_BUSY,4,2                   ; @CPF_BUSY
	.comm	_CPC_BUSY,4,2                   ; @CPC_BUSY
	.comm	_CPG_BUSY,4,2                   ; @CPG_BUSY
	.comm	_SOFT_RESET_CPF,4,2             ; @SOFT_RESET_CPF
	.comm	_SOFT_RESET_CPC,4,2             ; @SOFT_RESET_CPC
	.comm	_SOFT_RESET_CPG,4,2             ; @SOFT_RESET_CPG
	.comm	_mmSRBM_STATUS,4,2              ; @mmSRBM_STATUS
	.comm	_SRBM_STATUS,4,2                ; @SRBM_STATUS
	.comm	_GRBM_RQ_PENDING,4,2            ; @GRBM_RQ_PENDING
	.comm	_SEM_BUSY,4,2                   ; @SEM_BUSY
	.comm	_SOFT_RESET_SEM,4,2             ; @SOFT_RESET_SEM
	.no_dead_strip	_gfx_v8_0_check_soft_reset
.subsections_via_symbols
