	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_v2_ceq_int
_hns_roce_v2_ceq_int:                   ## @hns_roce_v2_ceq_int
	.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
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_next_ceqe_sw_v2
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_HNS_ROCE_V2_CEQE_COMP_CQN_S@GOTPCREL(%rip), %r15
	movq	_EQ_DEPTH_COEFF@GOTPCREL(%rip), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_next_ceqe_sw_v2
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_dma_rmb
	movl	(%rbx), %edi
	movq	_HNS_ROCE_V2_CEQE_COMP_CQN_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	callq	_roce_get_field
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_hns_roce_cq_completion
	movl	(%r13), %eax
	movl	4(%r13), %ecx
	leal	1(%rax), %edx
	movl	%edx, (%r13)
	imull	(%r12), %ecx
	decl	%ecx
	cmpl	%ecx, %eax
	jl	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movl	$0, (%r13)
	jmp	LBB0_5
LBB0_6:
	movl	$1, %ebx
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%r13, %rdi
	callq	_set_eq_cons_index_v2
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HNS_ROCE_V2_CEQE_COMP_CQN_M,4,2 ## @HNS_ROCE_V2_CEQE_COMP_CQN_M
	.comm	_HNS_ROCE_V2_CEQE_COMP_CQN_S,4,2 ## @HNS_ROCE_V2_CEQE_COMP_CQN_S
	.comm	_EQ_DEPTH_COEFF,4,2             ## @EQ_DEPTH_COEFF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cons_index overflow, set back to 0.\n"

	.no_dead_strip	_hns_roce_v2_ceq_int
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_roce_v2_ceq_int
_hns_roce_v2_ceq_int:                   ; @hns_roce_v2_ceq_int
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0]
	mov	x0, x1
	bl	_next_ceqe_sw_v2
	cbz	x0, LBB0_6
; %bb.1:
	mov	x23, x0
Lloh0:
	adrp	x24, _HNS_ROCE_V2_CEQE_COMP_CQN_M@GOTPAGE
Lloh1:
	ldr	x24, [x24, _HNS_ROCE_V2_CEQE_COMP_CQN_M@GOTPAGEOFF]
Lloh2:
	adrp	x25, _HNS_ROCE_V2_CEQE_COMP_CQN_S@GOTPAGE
Lloh3:
	ldr	x25, [x25, _HNS_ROCE_V2_CEQE_COMP_CQN_S@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
Lloh6:
	adrp	x26, _EQ_DEPTH_COEFF@GOTPAGE
Lloh7:
	ldr	x26, [x26, _EQ_DEPTH_COEFF@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_next_ceqe_sw_v2
	mov	x23, x0
	cbz	x0, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_dma_rmb
	ldr	w0, [x23]
	ldr	w1, [x24]
	ldr	w2, [x25]
	bl	_roce_get_field
	mov	x1, x0
	mov	x0, x20
	bl	_hns_roce_cq_completion
	ldp	w8, w9, [x19]
	add	w10, w8, #1
	str	w10, [x19]
	ldr	w10, [x26]
	mul	w9, w9, w10
	sub	w9, w9, #1
	cmp	w8, w9
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_dev_warn
	str	wzr, [x19]
	b	LBB0_2
LBB0_5:
	mov	w20, #1
	b	LBB0_7
LBB0_6:
	mov	w20, #0
LBB0_7:
	mov	x0, x19
	bl	_set_eq_cons_index_v2
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HNS_ROCE_V2_CEQE_COMP_CQN_M,4,2 ; @HNS_ROCE_V2_CEQE_COMP_CQN_M
	.comm	_HNS_ROCE_V2_CEQE_COMP_CQN_S,4,2 ; @HNS_ROCE_V2_CEQE_COMP_CQN_S
	.comm	_EQ_DEPTH_COEFF,4,2             ; @EQ_DEPTH_COEFF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cons_index overflow, set back to 0.\n"

	.no_dead_strip	_hns_roce_v2_ceq_int
.subsections_via_symbols
