	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v8_0_cp_resume
_gfx_v8_0_cp_resume:                    ## @gfx_v8_0_cp_resume
	.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
	movq	%rdi, %rbx
	movq	_AMD_IS_APU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_gfx_v8_0_enable_gui_idle_interrupt
LBB0_2:
	movq	%rbx, %rdi
	callq	_gfx_v8_0_kiq_resume
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	%rbx, %rdi
	callq	_gfx_v8_0_cp_gfx_resume
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	callq	_gfx_v8_0_kcq_resume
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_gfx_v8_0_cp_test_all_rings
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_gfx_v8_0_enable_gui_idle_interrupt
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMD_IS_APU,4,2                 ## @AMD_IS_APU
	.no_dead_strip	_gfx_v8_0_cp_resume
.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_cp_resume
_gfx_v8_0_cp_resume:                    ; @gfx_v8_0_cp_resume
	.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
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _AMD_IS_APU@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AMD_IS_APU@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_gfx_v8_0_enable_gui_idle_interrupt
LBB0_2:
	mov	x0, x19
	bl	_gfx_v8_0_kiq_resume
	cbnz	w0, LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_gfx_v8_0_cp_gfx_resume
	cbnz	w0, LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_gfx_v8_0_kcq_resume
	cbnz	w0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_gfx_v8_0_cp_test_all_rings
	cbnz	w0, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	w1, #1
	bl	_gfx_v8_0_enable_gui_idle_interrupt
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AMD_IS_APU,4,2                 ; @AMD_IS_APU
	.no_dead_strip	_gfx_v8_0_cp_resume
.subsections_via_symbols
