	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlv_suspend_complete
_vlv_suspend_complete:                  ## @vlv_suspend_complete
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%esi, %esi
	callq	_vlv_wait_for_gt_wells
	movq	_VLV_GTLC_RENDER_CTX_EXISTS@GOTPCREL(%rip), %rax
	movq	_VLV_GTLC_MEDIA_CTX_EXISTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_VLV_GTLC_WAKE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	notl	%eax
	xorl	%edi, %edi
	testl	%eax, %ebx
	setne	%dil
	callq	_WARN_ON
	movq	%r14, %rdi
	callq	_vlv_check_no_gt_access
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_vlv_force_gfx_clock
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_vlv_allow_gt_wake
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_vlv_save_gunit_s0ix_state
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_vlv_force_gfx_clock
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
LBB0_3:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_vlv_allow_gt_wake
LBB0_4:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_vlv_force_gfx_clock
	movl	%ebx, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VLV_GTLC_RENDER_CTX_EXISTS,4,2 ## @VLV_GTLC_RENDER_CTX_EXISTS
	.comm	_VLV_GTLC_MEDIA_CTX_EXISTS,4,2  ## @VLV_GTLC_MEDIA_CTX_EXISTS
	.comm	_VLV_GTLC_WAKE_CTRL,4,2         ## @VLV_GTLC_WAKE_CTRL
	.no_dead_strip	_vlv_suspend_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlv_suspend_complete
_vlv_suspend_complete:                  ; @vlv_suspend_complete
	.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
	mov	w1, #0
	bl	_vlv_wait_for_gt_wells
Lloh0:
	adrp	x8, _VLV_GTLC_RENDER_CTX_EXISTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VLV_GTLC_RENDER_CTX_EXISTS@GOTPAGEOFF]
Lloh2:
	adrp	x9, _VLV_GTLC_MEDIA_CTX_EXISTS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VLV_GTLC_MEDIA_CTX_EXISTS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w20, w9, w8
Lloh6:
	adrp	x8, _VLV_GTLC_WAKE_CTRL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VLV_GTLC_WAKE_CTRL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_I915_READ
	bics	wzr, w20, w0
	cset	w0, ne
	bl	_WARN_ON
	mov	x0, x19
	bl	_vlv_check_no_gt_access
	mov	x0, x19
	mov	w1, #1
	bl	_vlv_force_gfx_clock
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_vlv_allow_gt_wake
	mov	x20, x0
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_vlv_save_gunit_s0ix_state
	mov	x0, x19
	mov	w1, #0
	bl	_vlv_force_gfx_clock
	mov	x20, x0
	cbz	w0, LBB0_5
LBB0_3:
	mov	x0, x19
	mov	w1, #1
	bl	_vlv_allow_gt_wake
LBB0_4:
	mov	x0, x19
	mov	w1, #0
	bl	_vlv_force_gfx_clock
LBB0_5:
	mov	x0, x20
	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	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_VLV_GTLC_RENDER_CTX_EXISTS,4,2 ; @VLV_GTLC_RENDER_CTX_EXISTS
	.comm	_VLV_GTLC_MEDIA_CTX_EXISTS,4,2  ; @VLV_GTLC_MEDIA_CTX_EXISTS
	.comm	_VLV_GTLC_WAKE_CTRL,4,2         ; @VLV_GTLC_WAKE_CTRL
	.no_dead_strip	_vlv_suspend_complete
.subsections_via_symbols
