	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_guc_suspend              ## -- Begin function intel_guc_suspend
	.p2align	4, 0x90
_intel_guc_suspend:                     ## @intel_guc_suspend
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_guc_to_gt
	movq	(%rax), %r14
	movq	_INTEL_GUC_ACTION_ENTER_S_STATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	_GUC_POWER_D1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movl	$14, %edi
	callq	_SOFT_SCRATCH
	movq	_INTEL_GUC_SLEEP_STATE_INVALID_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_intel_uncore_write
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_intel_guc_send
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	$14, %edi
	callq	_SOFT_SCRATCH
	movl	(%r12), %edx
	leaq	-72(%rbp), %rcx
	movq	%rcx, (%rsp)
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$10, %r9d
	callq	___intel_wait_for_register
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	-72(%rbp), %rdx
	movq	_INTEL_GUC_SLEEP_STATE_SUCCESS@GOTPCREL(%rip), %rcx
	movl	$0, %eax
	cmpq	(%rcx), %rdx
	je	LBB0_4
## %bb.3:
	movq	-64(%rbp), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_GUC_ACTION_ENTER_S_STATE,8,3 ## @INTEL_GUC_ACTION_ENTER_S_STATE
	.comm	_GUC_POWER_D1,8,3               ## @GUC_POWER_D1
	.comm	_INTEL_GUC_SLEEP_STATE_INVALID_MASK,4,2 ## @INTEL_GUC_SLEEP_STATE_INVALID_MASK
	.comm	_INTEL_GUC_SLEEP_STATE_SUCCESS,8,3 ## @INTEL_GUC_SLEEP_STATE_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GuC failed to change sleep state. action=0x%x, err=%u\n"

	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_guc_suspend              ; -- Begin function intel_guc_suspend
	.p2align	2
_intel_guc_suspend:                     ; @intel_guc_suspend
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_guc_to_gt
	ldr	x19, [x0]
Lloh3:
	adrp	x8, _INTEL_GUC_ACTION_ENTER_S_STATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INTEL_GUC_ACTION_ENTER_S_STATE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _GUC_POWER_D1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GUC_POWER_D1@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	stp	x8, x9, [sp, #8]
	mov	w0, #14
	bl	_SOFT_SCRATCH
	mov	x1, x0
Lloh9:
	adrp	x21, _INTEL_GUC_SLEEP_STATE_INVALID_MASK@GOTPAGE
Lloh10:
	ldr	x21, [x21, _INTEL_GUC_SLEEP_STATE_INVALID_MASK@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_intel_uncore_write
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x20
	bl	_intel_guc_send
	cbnz	w0, LBB0_5
; %bb.1:
	mov	w0, #14
	bl	_SOFT_SCRATCH
	mov	x1, x0
	ldr	w2, [x21]
	mov	x6, sp
	mov	x0, x19
	mov	w3, #0
	mov	w4, #0
	mov	w5, #10
	bl	___intel_wait_for_register
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	x2, [sp]
Lloh11:
	adrp	x8, _INTEL_GUC_SLEEP_STATE_SUCCESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _INTEL_GUC_SLEEP_STATE_SUCCESS@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	ldr	x1, [sp, #8]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldr	x8, [sp, #24]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	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
	add	sp, sp, #80
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_GUC_ACTION_ENTER_S_STATE,8,3 ; @INTEL_GUC_ACTION_ENTER_S_STATE
	.comm	_GUC_POWER_D1,8,3               ; @GUC_POWER_D1
	.comm	_INTEL_GUC_SLEEP_STATE_INVALID_MASK,4,2 ; @INTEL_GUC_SLEEP_STATE_INVALID_MASK
	.comm	_INTEL_GUC_SLEEP_STATE_SUCCESS,8,3 ; @INTEL_GUC_SLEEP_STATE_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GuC failed to change sleep state. action=0x%x, err=%u\n"

	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
