	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_notify_error_qp            ## -- Begin function qib_notify_error_qp
	.p2align	4, 0x90
_qib_notify_error_qp:                   ## @qib_notify_error_qp
	.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
	movq	32(%rdi), %r12
	movl	24(%rdi), %edi
	callq	_to_idev
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_spin_lock
	leaq	8(%r12), %r15
	movq	%r15, %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movl	(%rbx), %eax
	movq	_RVT_S_BUSY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_3
## %bb.2:
	movq	_RVT_S_ANY_WAIT_IO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx)
	movq	%r15, %rdi
	callq	_list_del_init
LBB0_3:
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	_RVT_S_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_8
## %bb.4:
	movq	$0, 16(%rbx)
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_rvt_put_mr
	movq	$0, 8(%rbx)
LBB0_6:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_qib_put_txreq
	movq	$0, (%r12)
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RVT_S_BUSY,4,2                 ## @RVT_S_BUSY
	.comm	_RVT_S_ANY_WAIT_IO,4,2          ## @RVT_S_ANY_WAIT_IO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_notify_error_qp            ; -- Begin function qib_notify_error_qp
	.p2align	2
_qib_notify_error_qp:                   ; @qib_notify_error_qp
	.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
	ldr	x22, [x0, #32]
	ldr	w0, [x0, #24]
	bl	_to_idev
	mov	x20, x0
	bl	_spin_lock
	add	x21, x22, #8
	mov	x0, x21
	bl	_list_empty
Lloh0:
	adrp	x23, _RVT_S_BUSY@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RVT_S_BUSY@GOTPAGEOFF]
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	w8, [x19]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.2:
Lloh2:
	adrp	x9, _RVT_S_ANY_WAIT_IO@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RVT_S_ANY_WAIT_IO@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x19]
	mov	x0, x21
	bl	_list_del_init
LBB0_3:
	mov	x0, x20
	bl	_spin_unlock
	ldr	w8, [x19]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.4:
	str	xzr, [x19, #16]
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_rvt_put_mr
	str	xzr, [x19, #8]
LBB0_6:
	ldr	x0, [x22]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_qib_put_txreq
	str	xzr, [x22]
LBB0_8:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_RVT_S_BUSY,4,2                 ; @RVT_S_BUSY
	.comm	_RVT_S_ANY_WAIT_IO,4,2          ; @RVT_S_ANY_WAIT_IO
.subsections_via_symbols
