	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipath_error_qp                 ## -- Begin function ipath_error_qp
	.p2align	4, 0x90
_ipath_error_qp:                        ## @ipath_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	36(%rdi), %edi
	callq	_to_idev
	movq	%rax, %r13
	movq	_IB_QPS_ERR@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	cmpq	%rcx, (%r12)
	je	LBB0_17
## %bb.1:
	movq	%rcx, (%r12)
	movq	%r13, %rdi
	callq	_spin_lock
	leaq	76(%r12), %rbx
	movq	%rbx, %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_list_del_init
LBB0_3:
	leaq	72(%r12), %rbx
	movq	%rbx, %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_list_del_init
LBB0_5:
	leaq	24(%r12), %rbx
	movq	%r13, %rdi
	callq	_spin_unlock
	movq	8(%r12), %rax
	cmpq	16(%r12), %rax
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	callq	_ipath_schedule_send
LBB0_7:
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%rbx, -48(%rbp)
	movq	_IB_WC_RECV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_IPATH_R_WRID_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	68(%r12), %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	64(%r12), %eax
	movl	%eax, -60(%rbp)
	movl	%r14d, -64(%rbp)
	movl	32(%r12), %edi
	callq	_to_icq
	leaq	-64(%rbp), %rsi
	movl	%eax, %edi
	movl	$1, %edx
	callq	_ipath_cq_enter
LBB0_9:
	movq	_IB_WC_WR_FLUSH_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	cmpq	$0, 56(%r12)
	je	LBB0_16
## %bb.10:
	leaq	48(%r12), %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	movq	40(%r12), %rax
	movq	56(%r12), %rcx
	movq	(%rcx), %r15
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rcx), %rbx
	xorl	%ecx, %ecx
	cmpq	%rax, %r15
	cmovgeq	%rcx, %r15
	cmpq	%rax, %rbx
	cmovgeq	%rcx, %rbx
	cmpq	%r15, %rbx
	jne	LBB0_11
LBB0_15:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, 8(%rax)
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_16:
	xorl	%eax, %eax
	cmpq	$0, (%rbx)
	setne	%al
LBB0_17:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	40(%r12), %r13
	leaq	-64(%rbp), %r14
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	32(%r12), %edi
	callq	_to_icq
	movl	%eax, %edi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_ipath_cq_enter
	cmpq	%r15, %rbx
	je	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_get_rwqe_ptr
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	incq	%rbx
	cmpq	40(%r12), %rbx
	jl	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QPS_ERR,8,3                 ## @IB_QPS_ERR
	.comm	_IB_WC_RECV,4,2                 ## @IB_WC_RECV
	.comm	_IPATH_R_WRID_VALID,4,2         ## @IPATH_R_WRID_VALID
	.comm	_IB_WC_WR_FLUSH_ERR,4,2         ## @IB_WC_WR_FLUSH_ERR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipath_error_qp                 ; -- Begin function ipath_error_qp
	.p2align	2
_ipath_error_qp:                        ; @ipath_error_qp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x19, x0
	ldr	w0, [x0, #36]
	bl	_to_idev
	ldr	x9, [x19]
Lloh0:
	adrp	x8, _IB_QPS_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_QPS_ERR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_16
LBB0_2:
	mov	x21, x0
	mov	x22, x19
	str	x8, [x22], #76
	bl	_spin_lock
	mov	x0, x22
	bl	_list_empty
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_list_del_init
LBB0_4:
	add	x23, x19, #24
	add	x22, x19, #72
	mov	x0, x22
	bl	_list_empty
	cbnz	w0, LBB0_6
; %bb.5:
	mov	x0, x22
	bl	_list_del_init
LBB0_6:
	mov	x0, x21
	bl	_spin_unlock
	ldp	x8, x9, [x19, #8]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_ipath_schedule_send
LBB0_8:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	str	x23, [sp, #24]
Lloh3:
	adrp	x8, _IB_WC_RECV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_WC_RECV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #16]
Lloh6:
	adrp	x8, _IPATH_R_WRID_VALID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IPATH_R_WRID_VALID@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, x19, #68
	bl	_test_and_clear_bit
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w8, [x19, #64]
	stp	w20, w8, [sp, #8]
	ldr	w0, [x19, #32]
	bl	_to_icq
	add	x1, sp, #8
	mov	w2, #1
	bl	_ipath_cq_enter
LBB0_10:
Lloh9:
	adrp	x8, _IB_WC_WR_FLUSH_ERR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IB_WC_WR_FLUSH_ERR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_15
; %bb.11:
	add	x20, x19, #48
	mov	x0, x20
	bl	_spin_lock
	ldr	x23, [x19, #56]
	ldr	x8, [x19, #40]
	ldp	x9, x10, [x23]
	cmp	x9, x8
	csel	x24, x9, xzr, lt
	cmp	x10, x8
	csel	x21, x10, xzr, lt
	cmp	x21, x24
	b.eq	LBB0_14
; %bb.12:
	add	x22, x19, #40
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_get_rwqe_ptr
	ldr	w8, [x0]
	str	w8, [sp, #12]
	add	x8, x21, #1
	ldr	x9, [x19, #40]
	cmp	x8, x9
	csinc	x21, xzr, x21, ge
	ldr	w0, [x19, #32]
	bl	_to_icq
	add	x1, sp, #8
	mov	w2, #1
	bl	_ipath_cq_enter
	cmp	x21, x24
	b.ne	LBB0_13
LBB0_14:
	str	x24, [x23, #8]
	mov	x0, x20
	bl	_spin_unlock
	mov	w0, #0
	b	LBB0_16
LBB0_15:
	ldr	x8, [x23]
	cmp	x8, #0
	cset	w0, ne
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QPS_ERR,8,3                 ; @IB_QPS_ERR
	.comm	_IB_WC_RECV,4,2                 ; @IB_WC_RECV
	.comm	_IPATH_R_WRID_VALID,4,2         ; @IPATH_R_WRID_VALID
	.comm	_IB_WC_WR_FLUSH_ERR,4,2         ; @IB_WC_WR_FLUSH_ERR
.subsections_via_symbols
