	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ring_doorbell_nop
_ring_doorbell_nop:                     ## @ring_doorbell_nop
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	___get_process_desc
	movq	%rax, %r15
	movl	$1, (%rbx)
	leaq	8(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irq
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_guc_wq_item_append
	movq	%rbx, %rdi
	callq	_guc_ring_doorbell
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	movl	$0, (%rbx)
	movl	12(%r15), %edi
	callq	_READ_ONCE
	movq	%rax, %r12
	movl	8(%r15), %edi
	callq	_READ_ONCE
	xorl	%edi, %edi
	cmpq	%rax, %r12
	sete	%dil
	movl	$10, %esi
	callq	_wait_for
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_4
LBB0_2:
	movq	(%r15), %rdx
	movq	_WQ_STATUS_ACTIVE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_5
## %bb.3:
	movl	4(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_pr_err
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"doorbell %u ring failed!\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_WQ_STATUS_ACTIVE,8,3           ## @WQ_STATUS_ACTIVE
L_.str.1:                               ## @.str.1
	.asciz	"doorbell %u ring put WQ in bad state (%u)!\n"

	.no_dead_strip	_ring_doorbell_nop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ring_doorbell_nop
_ring_doorbell_nop:                     ; @ring_doorbell_nop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	___get_process_desc
	mov	x20, x0
	mov	w8, #1
	str	w8, [x19]
	add	x21, x19, #8
	mov	x0, x21
	bl	_spin_lock_irq
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_guc_wq_item_append
	mov	x0, x19
	bl	_guc_ring_doorbell
	mov	x0, x21
	bl	_spin_unlock_irq
	str	wzr, [x19]
	ldr	w0, [x20, #12]
	bl	_READ_ONCE
	mov	x21, x0
	ldr	w0, [x20, #8]
	bl	_READ_ONCE
	cmp	x21, x0
	cset	w0, eq
	mov	w1, #10
	bl	_wait_for
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w1, [x19, #4]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_2:
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _WQ_STATUS_ACTIVE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _WQ_STATUS_ACTIVE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	ldr	w1, [x19, #4]
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	bl	_pr_err
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"doorbell %u ring failed!\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_WQ_STATUS_ACTIVE,8,3           ; @WQ_STATUS_ACTIVE
l_.str.1:                               ; @.str.1
	.asciz	"doorbell %u ring put WQ in bad state (%u)!\n"

	.no_dead_strip	_ring_doorbell_nop
.subsections_via_symbols
