	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igt_guc_clients
_igt_guc_clients:                       ## @igt_guc_clients
	.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, %r13
	callq	_HAS_GT_UC
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_GEM_BUG_ON
	movq	%r13, %rdi
	callq	_mutex_lock
	leaq	4(%r13), %r14
	movq	%r14, %rdi
	callq	_intel_runtime_pm_get
	movl	%eax, %r15d
	leaq	8(%r13), %r12
	movq	%r12, %rdi
	callq	_check_all_doorbells
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.1:
	movq	%r12, %rdi
	callq	_guc_clients_disable
	movq	%r12, %rdi
	callq	_guc_clients_destroy
	cmpq	$0, (%r12)
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_3:
	movq	%r12, %rdi
	callq	_guc_clients_create
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_14
LBB0_5:
	xorl	%edi, %edi
	cmpq	$0, (%r12)
	sete	%dil
	callq	_GEM_BUG_ON
	movq	(%r12), %rdi
	movq	_GUC_CLIENT_PRIORITY_KMD_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_validate_client
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_13
LBB0_7:
	movq	(%r12), %rdi
	callq	_has_doorbell
	testl	%eax, %eax
	je	LBB0_8
## %bb.10:
	movq	%r12, %rdi
	callq	_guc_clients_enable
	movq	(%r12), %rdi
	callq	_client_doorbell_in_sync
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movq	(%r12), %rdi
	callq	_create_doorbell
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_8:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_9
LBB0_11:
	leaq	L_.str.5(%rip), %rdi
LBB0_9:
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movq	%r12, %rdi
	callq	_guc_clients_disable
	movq	%r12, %rdi
	callq	_guc_clients_destroy
	movq	%r12, %rdi
	callq	_guc_clients_create
	movq	%r12, %rdi
	callq	_guc_clients_enable
LBB0_14:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_intel_runtime_pm_put
	movq	%r13, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"guc_clients_destroy lied!\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to create clients\n"

	.comm	_GUC_CLIENT_PRIORITY_KMD_NORMAL,4,2 ## @GUC_CLIENT_PRIORITY_KMD_NORMAL
L_.str.3:                               ## @.str.3
	.asciz	"execbug client validation failed\n"

L_.str.4:                               ## @.str.4
	.asciz	"guc_clients_create didn't reserve doorbells\n"

L_.str.5:                               ## @.str.5
	.asciz	"failed to initialize the doorbells\n"

	.no_dead_strip	_igt_guc_clients
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igt_guc_clients
_igt_guc_clients:                       ; @igt_guc_clients
	.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	x19, x0
	bl	_HAS_GT_UC
	cmp	w0, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	mov	x0, x19
	bl	_mutex_lock
	add	x20, x19, #4
	mov	x0, x20
	bl	_intel_runtime_pm_get
	mov	x21, x0
	add	x22, x19, #8
	mov	x0, x22
	bl	_check_all_doorbells
	mov	x23, x0
	cbnz	w0, LBB0_14
; %bb.1:
	mov	x0, x22
	bl	_guc_clients_disable
	mov	x0, x22
	bl	_guc_clients_destroy
	ldr	x8, [x22]
	cbz	x8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_14
LBB0_3:
	mov	x0, x22
	bl	_guc_clients_create
	cbz	w0, LBB0_5
; %bb.4:
	mov	x23, x0
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	b	LBB0_14
LBB0_5:
	ldr	x8, [x22]
	cmp	x8, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	ldr	x0, [x22]
Lloh7:
	adrp	x8, _GUC_CLIENT_PRIORITY_KMD_NORMAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GUC_CLIENT_PRIORITY_KMD_NORMAL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_validate_client
	cbz	w0, LBB0_7
; %bb.6:
	mov	x23, x0
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
	b	LBB0_13
LBB0_7:
	ldr	x0, [x22]
	bl	_has_doorbell
	cbz	w0, LBB0_10
; %bb.8:
	mov	x0, x22
	bl	_guc_clients_enable
	ldr	x0, [x22]
	bl	_client_doorbell_in_sync
	cbz	w0, LBB0_11
; %bb.9:
	ldr	x0, [x22]
	bl	_create_doorbell
	mov	x23, x0
	b	LBB0_13
LBB0_10:
Lloh12:
	adrp	x0, l_.str.4@PAGE
Lloh13:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh14:
	adrp	x0, l_.str.5@PAGE
Lloh15:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_12:
	bl	_pr_err
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_13:
	mov	x0, x22
	bl	_guc_clients_disable
	mov	x0, x22
	bl	_guc_clients_destroy
	mov	x0, x22
	bl	_guc_clients_create
	mov	x0, x22
	bl	_guc_clients_enable
LBB0_14:
	mov	x0, x20
	mov	x1, x21
	bl	_intel_runtime_pm_put
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x23
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"guc_clients_destroy lied!\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to create clients\n"

	.comm	_GUC_CLIENT_PRIORITY_KMD_NORMAL,4,2 ; @GUC_CLIENT_PRIORITY_KMD_NORMAL
l_.str.3:                               ; @.str.3
	.asciz	"execbug client validation failed\n"

l_.str.4:                               ; @.str.4
	.asciz	"guc_clients_create didn't reserve doorbells\n"

l_.str.5:                               ; @.str.5
	.asciz	"failed to initialize the doorbells\n"

	.no_dead_strip	_igt_guc_clients
.subsections_via_symbols
