	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_v1_qp_err_handle
_hns_roce_v1_qp_err_handle:             ## @hns_roce_v1_qp_err_handle
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %edi
	movq	_HNS_ROCE_AEQE_EVENT_QP_EVENT_QP_QPN_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNS_ROCE_AEQE_EVENT_QP_EVENT_QP_QPN_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_roce_get_field
	movl	%eax, %r12d
	movl	(%r13), %edi
	movq	_HNS_ROCE_AEQE_EVENT_QP_EVENT_PORT_NUM_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNS_ROCE_AEQE_EVENT_QP_EVENT_PORT_NUM_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_roce_get_field
	movq	_HNS_ROCE_MAX_PORTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	imull	%r12d, %ebx
	addl	%eax, %ebx
	cmpl	$2, %r12d
	cmovgel	%r12d, %ebx
	cmpl	$128, %r15d
	je	LBB0_4
## %bb.1:
	cmpl	$129, %r15d
	je	LBB0_5
## %bb.2:
	cmpl	$130, %r15d
	jne	LBB0_6
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_dev_warn
	jmp	LBB0_6
LBB0_4:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_hns_roce_v1_wq_catas_err_handle
	jmp	LBB0_6
LBB0_5:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_hns_roce_v1_local_wq_access_err_handle
LBB0_6:
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hns_roce_qp_event              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HNS_ROCE_AEQE_EVENT_QP_EVENT_QP_QPN_M,4,2 ## @HNS_ROCE_AEQE_EVENT_QP_EVENT_QP_QPN_M
	.comm	_HNS_ROCE_AEQE_EVENT_QP_EVENT_QP_QPN_S,4,2 ## @HNS_ROCE_AEQE_EVENT_QP_EVENT_QP_QPN_S
	.comm	_HNS_ROCE_AEQE_EVENT_QP_EVENT_PORT_NUM_M,4,2 ## @HNS_ROCE_AEQE_EVENT_QP_EVENT_PORT_NUM_M
	.comm	_HNS_ROCE_AEQE_EVENT_QP_EVENT_PORT_NUM_S,4,2 ## @HNS_ROCE_AEQE_EVENT_QP_EVENT_PORT_NUM_S
	.comm	_HNS_ROCE_MAX_PORTS,4,2         ## @HNS_ROCE_MAX_PORTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid Req Local Work Queue Error.\nQP %d, phy_port %d.\n"

	.no_dead_strip	_hns_roce_v1_qp_err_handle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_roce_v1_qp_err_handle
_hns_roce_v1_qp_err_handle:             ; @hns_roce_v1_qp_err_handle
	.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, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x21, [x0]
	ldr	w0, [x1]
Lloh0:
	adrp	x8, _HNS_ROCE_AEQE_EVENT_QP_EVENT_QP_QPN_M@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HNS_ROCE_AEQE_EVENT_QP_EVENT_QP_QPN_M@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _HNS_ROCE_AEQE_EVENT_QP_EVENT_QP_QPN_S@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HNS_ROCE_AEQE_EVENT_QP_EVENT_QP_QPN_S@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_roce_get_field
	mov	x23, x0
	ldr	w0, [x22]
Lloh6:
	adrp	x8, _HNS_ROCE_AEQE_EVENT_QP_EVENT_PORT_NUM_M@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HNS_ROCE_AEQE_EVENT_QP_EVENT_PORT_NUM_M@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _HNS_ROCE_AEQE_EVENT_QP_EVENT_PORT_NUM_S@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HNS_ROCE_AEQE_EVENT_QP_EVENT_PORT_NUM_S@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_roce_get_field
Lloh12:
	adrp	x8, _HNS_ROCE_MAX_PORTS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HNS_ROCE_MAX_PORTS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	madd	w8, w8, w23, w0
	cmp	w23, #2
	csel	w23, w8, w23, lt
	cmp	w19, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w19, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w19, #130
	b.ne	LBB0_6
; %bb.3:
	mov	x3, x0
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x23
	bl	_dev_warn
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	bl	_hns_roce_v1_wq_catas_err_handle
	b	LBB0_6
LBB0_5:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	bl	_hns_roce_v1_local_wq_access_err_handle
LBB0_6:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	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
	b	_hns_roce_qp_event
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_HNS_ROCE_AEQE_EVENT_QP_EVENT_QP_QPN_M,4,2 ; @HNS_ROCE_AEQE_EVENT_QP_EVENT_QP_QPN_M
	.comm	_HNS_ROCE_AEQE_EVENT_QP_EVENT_QP_QPN_S,4,2 ; @HNS_ROCE_AEQE_EVENT_QP_EVENT_QP_QPN_S
	.comm	_HNS_ROCE_AEQE_EVENT_QP_EVENT_PORT_NUM_M,4,2 ; @HNS_ROCE_AEQE_EVENT_QP_EVENT_PORT_NUM_M
	.comm	_HNS_ROCE_AEQE_EVENT_QP_EVENT_PORT_NUM_S,4,2 ; @HNS_ROCE_AEQE_EVENT_QP_EVENT_PORT_NUM_S
	.comm	_HNS_ROCE_MAX_PORTS,4,2         ; @HNS_ROCE_MAX_PORTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid Req Local Work Queue Error.\nQP %d, phy_port %d.\n"

	.no_dead_strip	_hns_roce_v1_qp_err_handle
.subsections_via_symbols
