	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_guc_init                 ## -- Begin function intel_guc_init
	.p2align	4, 0x90
_intel_guc_init:                        ## @intel_guc_init
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_guc_to_gt
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_intel_uc_fw_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.1:
	movq	%r15, %rdi
	callq	_guc_shared_data_create
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.2:
	xorl	%edi, %edi
	cmpl	$0, 16(%r15)
	sete	%dil
	callq	_GEM_BUG_ON
	leaq	4(%r15), %r12
	movq	%r12, %rdi
	callq	_intel_guc_log_create
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	movq	%r15, %rdi
	callq	_intel_guc_ads_create
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	xorl	%edi, %edi
	cmpl	$0, 12(%r15)
	sete	%dil
	callq	_GEM_BUG_ON
	leaq	8(%r15), %r13
	movq	%r13, %rdi
	callq	_intel_guc_ct_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movq	%r15, %rdi
	callq	_intel_guc_is_submission_supported
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_intel_guc_submission_init
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_intel_guc_ct_fini
LBB0_9:
	movq	%r15, %rdi
	callq	_intel_guc_ads_destroy
LBB0_10:
	movq	%r12, %rdi
	callq	_intel_guc_log_destroy
LBB0_11:
	movq	%r15, %rdi
	callq	_guc_shared_data_destroy
LBB0_12:
	movq	%r15, %rdi
	callq	_intel_uc_fw_fini
LBB0_13:
	movq	%r15, %rdi
	callq	_intel_uc_fw_cleanup_fetch
	movq	(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_DRM_DEV_DEBUG_DRIVER
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r15, %rdi
	callq	_guc_init_params
	movl	8(%r14), %edi
	callq	_i915_ggtt_enable_guc
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed with %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_guc_init                 ; -- Begin function intel_guc_init
	.p2align	2
_intel_guc_init:                        ; @intel_guc_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	bl	_guc_to_gt
	mov	x19, x0
	mov	x0, x20
	bl	_intel_uc_fw_init
	mov	x21, x0
	cbnz	w0, LBB0_12
; %bb.1:
	mov	x0, x20
	bl	_guc_shared_data_create
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.2:
	ldr	w8, [x20, #16]
	cmp	w8, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	add	x22, x20, #4
	mov	x0, x22
	bl	_intel_guc_log_create
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.3:
	mov	x0, x20
	bl	_intel_guc_ads_create
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.4:
	ldr	w8, [x20, #12]
	cmp	w8, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	add	x23, x20, #8
	mov	x0, x23
	bl	_intel_guc_ct_init
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.5:
	mov	x0, x20
	bl	_intel_guc_is_submission_supported
	cbz	x0, LBB0_14
; %bb.6:
	mov	x0, x20
	bl	_intel_guc_submission_init
	cbz	w0, LBB0_14
; %bb.7:
	mov	x21, x0
	mov	x0, x23
	bl	_intel_guc_ct_fini
LBB0_8:
	mov	x0, x20
	bl	_intel_guc_ads_destroy
LBB0_9:
	mov	x0, x22
	bl	_intel_guc_log_destroy
LBB0_10:
	mov	x0, x20
	bl	_guc_shared_data_destroy
LBB0_11:
	mov	x0, x20
	bl	_intel_uc_fw_fini
LBB0_12:
	mov	x0, x20
	bl	_intel_uc_fw_cleanup_fetch
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_DRM_DEV_DEBUG_DRIVER
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	x0, x20
	bl	_guc_init_params
	ldr	w0, [x19, #8]
	bl	_i915_ggtt_enable_guc
	mov	w21, #0
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed with %d\n"

.subsections_via_symbols
