	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_error_cqe
_handle_error_cqe:                      ## @handle_error_cqe
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movl	%r8d, %r12d
	movl	%ecx, %r15d
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movl	(%r9), %ecx
	cmpl	$138, %ecx
	jne	LBB0_2
## %bb.1:
	movq	%rsi, %r14
	movl	4(%rbx), %edi
	callq	_be32_to_cpu
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movl	%r15d, %r12d
	movl	%eax, %r15d
	movl	8(%rbx), %edi
	callq	_be32_to_cpu
	movl	(%r14), %r9d
	movl	4(%r14), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%r15d, %edx
	movl	%r12d, %r15d
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	%eax, %ecx
	callq	_mthca_dbg
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_dump_cqe
	movl	(%rbx), %ecx
LBB0_2:
	movq	16(%rbp), %rax
	addl	$-128, %ecx
	cmpl	$17, %ecx
	ja	LBB0_3
## %bb.4:
	movslq	%ecx, %rcx
	leaq	l_switch.table.handle_error_cqe(%rip), %rdx
	movq	(%rdx,%rcx,8), %rcx
	jmp	LBB0_5
LBB0_3:
	movq	_IB_WC_GENERAL_ERR@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movl	16(%rbx), %ecx
	movl	%ecx, (%rax)
	movq	%r13, %rdi
	callq	_mthca_is_memfree
	testq	%rax, %rax
	je	LBB0_6
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	-52(%rbp), %r8
	leaq	-44(%rbp), %r9
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	_mthca_free_err_wqe
	movl	-44(%rbp), %r14d
	movl	$63, %edi
	callq	_cpu_to_be32
	testl	%r14d, %eax
	je	LBB0_10
## %bb.7:
	cmpl	$0, 12(%rbx)
	movl	-52(%rbp), %esi
	jne	LBB0_9
## %bb.8:
	testl	%esi, %esi
	jne	LBB0_10
LBB0_9:
	movq	24(%rbp), %r14
	leaq	12(%rbx), %rdi
	negl	%esi
	callq	_be16_add_cpu
	movl	-44(%rbp), %eax
	movl	%eax, 8(%rbx)
	movl	$128, (%rbx)
	movl	$0, (%r14)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"local QP operation err (QPN %06x, WQE @ %08x, CQN %06x, index %d)\n"

	.comm	_IB_WC_LOC_LEN_ERR,4,2          ## @IB_WC_LOC_LEN_ERR
	.comm	_IB_WC_LOC_QP_OP_ERR,4,2        ## @IB_WC_LOC_QP_OP_ERR
	.comm	_IB_WC_LOC_EEC_OP_ERR,4,2       ## @IB_WC_LOC_EEC_OP_ERR
	.comm	_IB_WC_LOC_PROT_ERR,4,2         ## @IB_WC_LOC_PROT_ERR
	.comm	_IB_WC_WR_FLUSH_ERR,4,2         ## @IB_WC_WR_FLUSH_ERR
	.comm	_IB_WC_MW_BIND_ERR,4,2          ## @IB_WC_MW_BIND_ERR
	.comm	_IB_WC_BAD_RESP_ERR,4,2         ## @IB_WC_BAD_RESP_ERR
	.comm	_IB_WC_LOC_ACCESS_ERR,4,2       ## @IB_WC_LOC_ACCESS_ERR
	.comm	_IB_WC_REM_INV_REQ_ERR,4,2      ## @IB_WC_REM_INV_REQ_ERR
	.comm	_IB_WC_REM_ACCESS_ERR,4,2       ## @IB_WC_REM_ACCESS_ERR
	.comm	_IB_WC_REM_OP_ERR,4,2           ## @IB_WC_REM_OP_ERR
	.comm	_IB_WC_RETRY_EXC_ERR,4,2        ## @IB_WC_RETRY_EXC_ERR
	.comm	_IB_WC_RNR_RETRY_EXC_ERR,4,2    ## @IB_WC_RNR_RETRY_EXC_ERR
	.comm	_IB_WC_LOC_RDD_VIOL_ERR,4,2     ## @IB_WC_LOC_RDD_VIOL_ERR
	.comm	_IB_WC_REM_INV_RD_REQ_ERR,4,2   ## @IB_WC_REM_INV_RD_REQ_ERR
	.comm	_IB_WC_REM_ABORT_ERR,4,2        ## @IB_WC_REM_ABORT_ERR
	.comm	_IB_WC_INV_EECN_ERR,4,2         ## @IB_WC_INV_EECN_ERR
	.comm	_IB_WC_INV_EEC_STATE_ERR,4,2    ## @IB_WC_INV_EEC_STATE_ERR
	.comm	_IB_WC_GENERAL_ERR,4,2          ## @IB_WC_GENERAL_ERR
	.no_dead_strip	_handle_error_cqe
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.handle_error_cqe
l_switch.table.handle_error_cqe:
	.quad	_IB_WC_WR_FLUSH_ERR
	.quad	_IB_WC_RNR_RETRY_EXC_ERR
	.quad	_IB_WC_RETRY_EXC_ERR
	.quad	_IB_WC_REM_OP_ERR
	.quad	_IB_WC_REM_INV_REQ_ERR
	.quad	_IB_WC_REM_INV_RD_REQ_ERR
	.quad	_IB_WC_REM_ACCESS_ERR
	.quad	_IB_WC_REM_ABORT_ERR
	.quad	_IB_WC_MW_BIND_ERR
	.quad	_IB_WC_LOC_RDD_VIOL_ERR
	.quad	_IB_WC_LOC_QP_OP_ERR
	.quad	_IB_WC_LOC_PROT_ERR
	.quad	_IB_WC_LOC_LEN_ERR
	.quad	_IB_WC_LOC_EEC_OP_ERR
	.quad	_IB_WC_LOC_ACCESS_ERR
	.quad	_IB_WC_INV_EEC_STATE_ERR
	.quad	_IB_WC_INV_EECN_ERR
	.quad	_IB_WC_BAD_RESP_ERR

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_error_cqe
_handle_error_cqe:                      ; @handle_error_cqe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x7
	mov	x25, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x0
	ldr	w8, [x5]
	cmp	w8, #138
	b.ne	LBB0_2
; %bb.1:
	mov	x26, x1
	ldr	w0, [x20, #4]
	bl	_be32_to_cpu
	mov	x27, x0
	ldr	w0, [x20, #8]
	bl	_be32_to_cpu
	mov	x3, x0
	ldp	w5, w4, [x26]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	mov	x2, x27
	bl	_mthca_dbg
	mov	x0, x24
	mov	x1, x20
	bl	_dump_cqe
	ldr	w8, [x20]
LBB0_2:
	sub	w8, w8, #128
	cmp	w8, #17
	b.hi	LBB0_4
; %bb.3:
Lloh2:
	adrp	x9, l_switch.table.handle_error_cqe@PAGE
Lloh3:
	add	x9, x9, l_switch.table.handle_error_cqe@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x8, _IB_WC_GENERAL_ERR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IB_WC_GENERAL_ERR@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	ldr	w9, [x20, #16]
	stp	w9, w8, [x25]
	mov	x0, x24
	bl	_mthca_is_memfree
	cbz	x0, LBB0_7
LBB0_6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	add	x4, sp, #12
	add	x5, sp, #8
	mov	x0, x24
	mov	x1, x23
	mov	x2, x21
	mov	x3, x22
	bl	_mthca_free_err_wqe
	ldr	w21, [sp, #8]
	mov	w0, #63
	bl	_cpu_to_be32
	tst	w0, w21
	b.eq	LBB0_6
; %bb.8:
	mov	x0, x20
	ldr	w9, [x0, #12]!
	ldr	w8, [sp, #12]
	cbnz	w9, LBB0_10
; %bb.9:
	cbnz	w8, LBB0_6
LBB0_10:
	neg	w1, w8
	bl	_be16_add_cpu
	ldr	w8, [sp, #8]
	str	w8, [x20, #8]
	mov	w8, #128
	str	w8, [x20]
	str	wzr, [x19]
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"local QP operation err (QPN %06x, WQE @ %08x, CQN %06x, index %d)\n"

	.comm	_IB_WC_LOC_LEN_ERR,4,2          ; @IB_WC_LOC_LEN_ERR
	.comm	_IB_WC_LOC_QP_OP_ERR,4,2        ; @IB_WC_LOC_QP_OP_ERR
	.comm	_IB_WC_LOC_EEC_OP_ERR,4,2       ; @IB_WC_LOC_EEC_OP_ERR
	.comm	_IB_WC_LOC_PROT_ERR,4,2         ; @IB_WC_LOC_PROT_ERR
	.comm	_IB_WC_WR_FLUSH_ERR,4,2         ; @IB_WC_WR_FLUSH_ERR
	.comm	_IB_WC_MW_BIND_ERR,4,2          ; @IB_WC_MW_BIND_ERR
	.comm	_IB_WC_BAD_RESP_ERR,4,2         ; @IB_WC_BAD_RESP_ERR
	.comm	_IB_WC_LOC_ACCESS_ERR,4,2       ; @IB_WC_LOC_ACCESS_ERR
	.comm	_IB_WC_REM_INV_REQ_ERR,4,2      ; @IB_WC_REM_INV_REQ_ERR
	.comm	_IB_WC_REM_ACCESS_ERR,4,2       ; @IB_WC_REM_ACCESS_ERR
	.comm	_IB_WC_REM_OP_ERR,4,2           ; @IB_WC_REM_OP_ERR
	.comm	_IB_WC_RETRY_EXC_ERR,4,2        ; @IB_WC_RETRY_EXC_ERR
	.comm	_IB_WC_RNR_RETRY_EXC_ERR,4,2    ; @IB_WC_RNR_RETRY_EXC_ERR
	.comm	_IB_WC_LOC_RDD_VIOL_ERR,4,2     ; @IB_WC_LOC_RDD_VIOL_ERR
	.comm	_IB_WC_REM_INV_RD_REQ_ERR,4,2   ; @IB_WC_REM_INV_RD_REQ_ERR
	.comm	_IB_WC_REM_ABORT_ERR,4,2        ; @IB_WC_REM_ABORT_ERR
	.comm	_IB_WC_INV_EECN_ERR,4,2         ; @IB_WC_INV_EECN_ERR
	.comm	_IB_WC_INV_EEC_STATE_ERR,4,2    ; @IB_WC_INV_EEC_STATE_ERR
	.comm	_IB_WC_GENERAL_ERR,4,2          ; @IB_WC_GENERAL_ERR
	.no_dead_strip	_handle_error_cqe
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.handle_error_cqe
l_switch.table.handle_error_cqe:
	.quad	_IB_WC_WR_FLUSH_ERR
	.quad	_IB_WC_RNR_RETRY_EXC_ERR
	.quad	_IB_WC_RETRY_EXC_ERR
	.quad	_IB_WC_REM_OP_ERR
	.quad	_IB_WC_REM_INV_REQ_ERR
	.quad	_IB_WC_REM_INV_RD_REQ_ERR
	.quad	_IB_WC_REM_ACCESS_ERR
	.quad	_IB_WC_REM_ABORT_ERR
	.quad	_IB_WC_MW_BIND_ERR
	.quad	_IB_WC_LOC_RDD_VIOL_ERR
	.quad	_IB_WC_LOC_QP_OP_ERR
	.quad	_IB_WC_LOC_PROT_ERR
	.quad	_IB_WC_LOC_LEN_ERR
	.quad	_IB_WC_LOC_EEC_OP_ERR
	.quad	_IB_WC_LOC_ACCESS_ERR
	.quad	_IB_WC_INV_EEC_STATE_ERR
	.quad	_IB_WC_INV_EECN_ERR
	.quad	_IB_WC_BAD_RESP_ERR

.subsections_via_symbols
