	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function guc_enable_communication
_guc_enable_communication:              ## @guc_enable_communication
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_guc_to_gt
	movq	(%rax), %r14
	movq	%rbx, %rdi
	callq	_guc_communication_enabled
	movl	%eax, %edi
	callq	_GEM_BUG_ON
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	subl	(%rax), %esi
	movq	%r14, %rdi
	callq	_i915_inject_load_error
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	leaq	12(%rbx), %rdi
	callq	_intel_guc_ct_enable
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_intel_guc_send_ct@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_intel_guc_to_host_event_handler_ct@GOTPCREL(%rip), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_guc_get_mmio_msg
	movq	%rbx, %rdi
	callq	_guc_handle_mmio_msg
	movq	%rbx, %rdi
	callq	_guc_enable_interrupts
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movq	%rbx, %rdi
	callq	_intel_guc_to_host_event_handler_ct
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	leaq	L_.str(%rip), %rdi
	callq	_DRM_INFO
	xorl	%eax, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_intel_guc_send_ct,4,2          ## @intel_guc_send_ct
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GuC communication enabled\n"

	.no_dead_strip	_guc_enable_communication
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function guc_enable_communication
_guc_enable_communication:              ; @guc_enable_communication
	.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
	bl	_guc_to_gt
	ldr	x20, [x0]
	mov	x0, x19
	bl	_guc_communication_enabled
	bl	_GEM_BUG_ON
Lloh0:
	adrp	x8, _ENXIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w1, w8
	mov	x0, x20
	bl	_i915_inject_load_error
	cbnz	w0, LBB0_3
; %bb.1:
	add	x0, x19, #12
	bl	_intel_guc_ct_enable
	cbnz	w0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _intel_guc_send_ct@GOTPAGE
Lloh4:
	ldr	x8, [x8, _intel_guc_send_ct@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh6:
	adrp	x8, _intel_guc_to_host_event_handler_ct@GOTPAGE
Lloh7:
	ldr	x8, [x8, _intel_guc_to_host_event_handler_ct@GOTPAGEOFF]
	str	x8, [x19]
	mov	x0, x19
	bl	_guc_get_mmio_msg
	mov	x0, x19
	bl	_guc_handle_mmio_msg
	mov	x0, x19
	bl	_guc_enable_interrupts
	mov	x0, x20
	bl	_spin_lock_irq
	mov	x0, x19
	bl	_intel_guc_to_host_event_handler_ct
	mov	x0, x20
	bl	_spin_unlock_irq
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_INFO
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_intel_guc_send_ct,4,2          ; @intel_guc_send_ct
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GuC communication enabled\n"

	.no_dead_strip	_guc_enable_communication
.subsections_via_symbols
