	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vega10_enable_se_edc_force_stall_config
_vega10_enable_se_edc_force_stall_config: ## @vega10_enable_se_edc_force_stall_config
	.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, %r15
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_amdgpu_gfx_rlc_enter_safe_mode
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_GC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_mmGRBM_GFX_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movl	$-536870912, %ecx               ## imm = 0xE0000000
	callq	_WREG32_SOC15
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_SEEDCForceStallPatternConfig_Vega10@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VEGA10_CONFIGREG_DIDT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_vega10_program_didt_config_registers
	movl	%eax, %r12d
	movq	_SEEDCCtrlForceStallConfig_Vega10@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_vega10_program_didt_config_registers
	movl	%eax, %ebx
	orl	%r12d, %ebx
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_vega10_didt_set_mask
	movq	%r14, %rdi
	callq	_amdgpu_gfx_rlc_exit_safe_mode
LBB0_2:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GC,4,2                         ## @GC
	.comm	_mmGRBM_GFX_INDEX,4,2           ## @mmGRBM_GFX_INDEX
	.comm	_SEEDCForceStallPatternConfig_Vega10,4,2 ## @SEEDCForceStallPatternConfig_Vega10
	.comm	_VEGA10_CONFIGREG_DIDT,4,2      ## @VEGA10_CONFIGREG_DIDT
	.comm	_SEEDCCtrlForceStallConfig_Vega10,4,2 ## @SEEDCCtrlForceStallConfig_Vega10
	.no_dead_strip	_vega10_enable_se_edc_force_stall_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vega10_enable_se_edc_force_stall_config
_vega10_enable_se_edc_force_stall_config: ; @vega10_enable_se_edc_force_stall_config
	.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	x20, x0
	ldr	x19, [x0]
	mov	x0, x19
	bl	_amdgpu_gfx_rlc_enter_safe_mode
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _GC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _mmGRBM_GFX_INDEX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mmGRBM_GFX_INDEX@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #0
	mov	w3, #-536870912
	bl	_WREG32_SOC15
	mov	x0, x19
	bl	_mutex_unlock
Lloh6:
	adrp	x8, _SEEDCForceStallPatternConfig_Vega10@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SEEDCForceStallPatternConfig_Vega10@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x22, _VEGA10_CONFIGREG_DIDT@GOTPAGE
Lloh10:
	ldr	x22, [x22, _VEGA10_CONFIGREG_DIDT@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	bl	_vega10_program_didt_config_registers
	mov	x21, x0
Lloh11:
	adrp	x8, _SEEDCCtrlForceStallConfig_Vega10@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SEEDCCtrlForceStallConfig_Vega10@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w2, [x22]
	mov	x0, x20
	bl	_vega10_program_didt_config_registers
	orr	w21, w0, w21
	cbnz	w21, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	w1, #0
	bl	_vega10_didt_set_mask
	mov	x0, x19
	bl	_amdgpu_gfx_rlc_exit_safe_mode
LBB0_2:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GC,4,2                         ; @GC
	.comm	_mmGRBM_GFX_INDEX,4,2           ; @mmGRBM_GFX_INDEX
	.comm	_SEEDCForceStallPatternConfig_Vega10,4,2 ; @SEEDCForceStallPatternConfig_Vega10
	.comm	_VEGA10_CONFIGREG_DIDT,4,2      ; @VEGA10_CONFIGREG_DIDT
	.comm	_SEEDCCtrlForceStallConfig_Vega10,4,2 ; @SEEDCCtrlForceStallConfig_Vega10
	.no_dead_strip	_vega10_enable_se_edc_force_stall_config
.subsections_via_symbols
