	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_gfx_rlc_exit_safe_mode  ## -- Begin function amdgpu_gfx_rlc_exit_safe_mode
	.p2align	4, 0x90
_amdgpu_gfx_rlc_exit_safe_mode:         ## @amdgpu_gfx_rlc_exit_safe_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$0, 8(%rdi)
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	callq	*8(%rax)
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movq	_AMD_CG_SUPPORT_GFX_CGCG@GOTPCREL(%rip), %rax
	movq	_AMD_CG_SUPPORT_GFX_MGCG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_AMD_CG_SUPPORT_GFX_3D_CGCG@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	$0, 8(%rbx)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMD_CG_SUPPORT_GFX_CGCG,4,2    ## @AMD_CG_SUPPORT_GFX_CGCG
	.comm	_AMD_CG_SUPPORT_GFX_MGCG,4,2    ## @AMD_CG_SUPPORT_GFX_MGCG
	.comm	_AMD_CG_SUPPORT_GFX_3D_CGCG,4,2 ## @AMD_CG_SUPPORT_GFX_3D_CGCG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_gfx_rlc_exit_safe_mode  ; -- Begin function amdgpu_gfx_rlc_exit_safe_mode
	.p2align	2
_amdgpu_gfx_rlc_exit_safe_mode:         ; @amdgpu_gfx_rlc_exit_safe_mode
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8, #8]
	blr	x8
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _AMD_CG_SUPPORT_GFX_CGCG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AMD_CG_SUPPORT_GFX_CGCG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _AMD_CG_SUPPORT_GFX_MGCG@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AMD_CG_SUPPORT_GFX_MGCG@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh6:
	adrp	x10, _AMD_CG_SUPPORT_GFX_3D_CGCG@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AMD_CG_SUPPORT_GFX_3D_CGCG@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w9, w10
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	str	wzr, [x19, #8]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AMD_CG_SUPPORT_GFX_CGCG,4,2    ; @AMD_CG_SUPPORT_GFX_CGCG
	.comm	_AMD_CG_SUPPORT_GFX_MGCG,4,2    ; @AMD_CG_SUPPORT_GFX_MGCG
	.comm	_AMD_CG_SUPPORT_GFX_3D_CGCG,4,2 ; @AMD_CG_SUPPORT_GFX_3D_CGCG
.subsections_via_symbols
