	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_ib_handle_error_cqe
_mlx4_ib_handle_error_cqe:              ## @mlx4_ib_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	cmpl	$136, %eax
	jne	LBB0_2
## %bb.1:
	movl	16(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, %r15d
	movl	12(%rbx), %edi
	callq	_be16_to_cpu
	movl	8(%rbx), %ecx
	movq	_MLX4_CQE_OWNER_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	notl	%r8d
	andl	4(%rbx), %r8d
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_pr_debug
	movq	%rbx, %rdi
	callq	_dump_cqe
	movl	(%rbx), %eax
LBB0_2:
	addl	$-128, %eax
	cmpl	$12, %eax
	ja	LBB0_3
## %bb.4:
	cltq
	leaq	l_switch.table.mlx4_ib_handle_error_cqe(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_IB_WC_GENERAL_ERR@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movl	8(%rbx), %eax
	movl	%eax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"local QP operation err (QPN %06x, WQE index %x, vendor syndrome %02x, opcode = %02x)\n"

	.comm	_MLX4_CQE_OWNER_MASK,4,2        ## @MLX4_CQE_OWNER_MASK
	.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_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_REM_ABORT_ERR,4,2        ## @IB_WC_REM_ABORT_ERR
	.comm	_IB_WC_GENERAL_ERR,4,2          ## @IB_WC_GENERAL_ERR
	.no_dead_strip	_mlx4_ib_handle_error_cqe
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.mlx4_ib_handle_error_cqe
l_switch.table.mlx4_ib_handle_error_cqe:
	.quad	_IB_WC_WR_FLUSH_ERR
	.quad	_IB_WC_RETRY_EXC_ERR
	.quad	_IB_WC_RNR_RETRY_EXC_ERR
	.quad	_IB_WC_REM_OP_ERR
	.quad	_IB_WC_REM_INV_REQ_ERR
	.quad	_IB_WC_REM_ACCESS_ERR
	.quad	_IB_WC_REM_ABORT_ERR
	.quad	_IB_WC_MW_BIND_ERR
	.quad	_IB_WC_LOC_QP_OP_ERR
	.quad	_IB_WC_LOC_PROT_ERR
	.quad	_IB_WC_LOC_LEN_ERR
	.quad	_IB_WC_LOC_ACCESS_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 mlx4_ib_handle_error_cqe
_mlx4_ib_handle_error_cqe:              ; @mlx4_ib_handle_error_cqe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #136
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x20, #16]
	bl	_be32_to_cpu
	mov	x21, x0
	ldr	w0, [x20, #12]
	bl	_be16_to_cpu
	mov	x2, x0
	ldp	w8, w3, [x20, #4]
Lloh0:
	adrp	x9, _MLX4_CQE_OWNER_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX4_CQE_OWNER_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	bic	w4, w8, w9
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_pr_debug
	mov	x0, x20
	bl	_dump_cqe
	ldr	w8, [x20]
LBB0_2:
	sub	w8, w8, #128
	cmp	w8, #12
	b.hi	LBB0_4
; %bb.3:
Lloh5:
	adrp	x9, l_switch.table.mlx4_ib_handle_error_cqe@PAGE
Lloh6:
	add	x9, x9, l_switch.table.mlx4_ib_handle_error_cqe@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x8, _IB_WC_GENERAL_ERR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IB_WC_GENERAL_ERR@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	stp	w9, w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"local QP operation err (QPN %06x, WQE index %x, vendor syndrome %02x, opcode = %02x)\n"

	.comm	_MLX4_CQE_OWNER_MASK,4,2        ; @MLX4_CQE_OWNER_MASK
	.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_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_REM_ABORT_ERR,4,2        ; @IB_WC_REM_ABORT_ERR
	.comm	_IB_WC_GENERAL_ERR,4,2          ; @IB_WC_GENERAL_ERR
	.no_dead_strip	_mlx4_ib_handle_error_cqe
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.mlx4_ib_handle_error_cqe
l_switch.table.mlx4_ib_handle_error_cqe:
	.quad	_IB_WC_WR_FLUSH_ERR
	.quad	_IB_WC_RETRY_EXC_ERR
	.quad	_IB_WC_RNR_RETRY_EXC_ERR
	.quad	_IB_WC_REM_OP_ERR
	.quad	_IB_WC_REM_INV_REQ_ERR
	.quad	_IB_WC_REM_ACCESS_ERR
	.quad	_IB_WC_REM_ABORT_ERR
	.quad	_IB_WC_MW_BIND_ERR
	.quad	_IB_WC_LOC_QP_OP_ERR
	.quad	_IB_WC_LOC_PROT_ERR
	.quad	_IB_WC_LOC_LEN_ERR
	.quad	_IB_WC_LOC_ACCESS_ERR
	.quad	_IB_WC_BAD_RESP_ERR

.subsections_via_symbols
