	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_v2_aeq_int
_hns_roce_v2_aeq_int:                   ## @hns_roce_v2_aeq_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_next_aeqe_sw_v2
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	jmp	LBB0_3
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_hns_roce_cq_event
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%r12d, 4(%rbx)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 8(%rbx)
	movl	(%rbx), %eax
	movl	12(%rbx), %ecx
	leal	1(%rax), %edx
	addl	%ecx, %ecx
	decl	%ecx
	cmpl	%ecx, %eax
	movl	$0, %eax
	cmovgel	%eax, %edx
	movl	%edx, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_hns_roce_v2_init_irq_work
	movq	%rbx, %rdi
	callq	_next_aeqe_sw_v2
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_dma_rmb
	movl	24(%r15), %edi
	movq	_HNS_ROCE_V2_AEQE_EVENT_TYPE_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNS_ROCE_V2_AEQE_EVENT_TYPE_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_roce_get_field
	movq	%rax, %rbx
	movl	24(%r15), %edi
	movq	_HNS_ROCE_V2_AEQE_SUB_TYPE_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNS_ROCE_V2_AEQE_SUB_TYPE_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_roce_get_field
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	20(%r15), %edi
	movq	_HNS_ROCE_V2_AEQE_EVENT_QUEUE_NUM_M@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_HNS_ROCE_V2_AEQE_EVENT_QUEUE_NUM_S@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_roce_get_field
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	16(%r15), %edi
	movl	(%r12), %esi
	movl	(%r13), %edx
	callq	_roce_get_field
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	12(%r15), %edi
	movl	(%r12), %esi
	movq	%rbx, %r12
	movl	(%r13), %edx
	callq	_roce_get_field
	leal	-128(%rbx), %ecx
	cmpl	$15, %ecx
	ja	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmpq	*%rcx
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_hns_roce_qp_event
	jmp	LBB0_10
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	%r12d, %edx
	callq	_hns_roce_srq_event
	jmp	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r8d
	movl	16(%rax), %ecx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_dev_err
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r15), %edi
	callq	_le16_to_cpu
	movl	%eax, %ebx
	movl	(%r15), %edi
	movl	4(%r15), %r15d
	callq	_le64_to_cpu
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_hns_roce_cmd_event
	jmp	LBB0_10
LBB0_11:
	movl	$1, %r14d
	jmp	LBB0_12
LBB0_1:
	xorl	%r14d, %r14d
LBB0_12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_set_eq_cons_index_v2
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_HNS_ROCE_V2_AEQE_EVENT_TYPE_M,4,2 ## @HNS_ROCE_V2_AEQE_EVENT_TYPE_M
	.comm	_HNS_ROCE_V2_AEQE_EVENT_TYPE_S,4,2 ## @HNS_ROCE_V2_AEQE_EVENT_TYPE_S
	.comm	_HNS_ROCE_V2_AEQE_SUB_TYPE_M,4,2 ## @HNS_ROCE_V2_AEQE_SUB_TYPE_M
	.comm	_HNS_ROCE_V2_AEQE_SUB_TYPE_S,4,2 ## @HNS_ROCE_V2_AEQE_SUB_TYPE_S
	.comm	_HNS_ROCE_V2_AEQE_EVENT_QUEUE_NUM_M,4,2 ## @HNS_ROCE_V2_AEQE_EVENT_QUEUE_NUM_M
	.comm	_HNS_ROCE_V2_AEQE_EVENT_QUEUE_NUM_S,4,2 ## @HNS_ROCE_V2_AEQE_EVENT_QUEUE_NUM_S
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unhandled event %d on EQ %d at idx %u.\n"

	.no_dead_strip	_hns_roce_v2_aeq_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_aeq_int
_hns_roce_v2_aeq_int:                   ; @hns_roce_v2_aeq_int
	.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, x1
	mov	x20, x0
	ldr	x8, [x0]
	str	x8, [sp]                        ; 8-byte Folded Spill
	mov	x0, x1
	bl	_next_aeqe_sw_v2
	cbz	x0, LBB0_11
; %bb.1:
	mov	x27, x0
Lloh0:
	adrp	x28, _HNS_ROCE_V2_AEQE_EVENT_TYPE_M@GOTPAGE
Lloh1:
	ldr	x28, [x28, _HNS_ROCE_V2_AEQE_EVENT_TYPE_M@GOTPAGEOFF]
Lloh2:
	adrp	x21, _HNS_ROCE_V2_AEQE_EVENT_QUEUE_NUM_M@GOTPAGE
Lloh3:
	ldr	x21, [x21, _HNS_ROCE_V2_AEQE_EVENT_QUEUE_NUM_M@GOTPAGEOFF]
Lloh4:
	adrp	x22, _HNS_ROCE_V2_AEQE_EVENT_QUEUE_NUM_S@GOTPAGE
Lloh5:
	ldr	x22, [x22, _HNS_ROCE_V2_AEQE_EVENT_QUEUE_NUM_S@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x26
	mov	x2, x23
	bl	_hns_roce_cq_event
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	stp	w23, w25, [x19, #4]
	ldr	w8, [x19]
	ldr	w9, [x19, #12]
	lsl	w9, w9, #1
	sub	w9, w9, #1
	cmp	w8, w9
	csinc	w8, wzr, w8, ge
	str	w8, [x19]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	mov	x3, x26
	bl	_hns_roce_v2_init_irq_work
	mov	x0, x19
	bl	_next_aeqe_sw_v2
	mov	x27, x0
	cbz	x0, LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	bl	_dma_rmb
	ldr	w0, [x27, #24]
	ldr	w1, [x28]
Lloh6:
	adrp	x8, _HNS_ROCE_V2_AEQE_EVENT_TYPE_S@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HNS_ROCE_V2_AEQE_EVENT_TYPE_S@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_roce_get_field
	mov	x23, x0
	ldr	w0, [x27, #24]
Lloh9:
	adrp	x8, _HNS_ROCE_V2_AEQE_SUB_TYPE_M@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HNS_ROCE_V2_AEQE_SUB_TYPE_M@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _HNS_ROCE_V2_AEQE_SUB_TYPE_S@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HNS_ROCE_V2_AEQE_SUB_TYPE_S@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_roce_get_field
	mov	x25, x0
	ldr	w0, [x27, #20]
	ldr	w1, [x21]
	ldr	w2, [x22]
	bl	_roce_get_field
	mov	x24, x0
	ldr	w0, [x27, #16]
	ldr	w1, [x21]
	ldr	w2, [x22]
	bl	_roce_get_field
	mov	x26, x0
	ldr	w0, [x27, #12]
	ldr	w1, [x21]
	ldr	w2, [x22]
	bl	_roce_get_field
	sub	w8, w23, #128
	cmp	w8, #15
	b.hi	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh15:
	adrp	x11, lJTI0_0@PAGE
Lloh16:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_2
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	bl	_hns_roce_qp_event
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x0
	mov	x0, x20
	mov	x2, x23
	bl	_hns_roce_srq_event
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w3, [x19, #16]
	ldr	w4, [x19]
	ldr	x0, [sp]                        ; 8-byte Folded Reload
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_dev_err
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x27, #8]
	bl	_le16_to_cpu
	mov	x28, x0
	ldp	w0, w8, [x27]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	bl	_le64_to_cpu
	mov	x3, x0
	mov	x0, x20
	mov	x1, x28
Lloh19:
	adrp	x28, _HNS_ROCE_V2_AEQE_EVENT_TYPE_M@GOTPAGE
Lloh20:
	ldr	x28, [x28, _HNS_ROCE_V2_AEQE_EVENT_TYPE_M@GOTPAGEOFF]
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_hns_roce_cmd_event
	b	LBB0_3
LBB0_10:
	mov	w20, #1
	b	LBB0_12
LBB0_11:
	mov	w20, #0
LBB0_12:
	mov	x0, x19
	bl	_set_eq_cons_index_v2
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
                                        ; -- End function
	.comm	_HNS_ROCE_V2_AEQE_EVENT_TYPE_M,4,2 ; @HNS_ROCE_V2_AEQE_EVENT_TYPE_M
	.comm	_HNS_ROCE_V2_AEQE_EVENT_TYPE_S,4,2 ; @HNS_ROCE_V2_AEQE_EVENT_TYPE_S
	.comm	_HNS_ROCE_V2_AEQE_SUB_TYPE_M,4,2 ; @HNS_ROCE_V2_AEQE_SUB_TYPE_M
	.comm	_HNS_ROCE_V2_AEQE_SUB_TYPE_S,4,2 ; @HNS_ROCE_V2_AEQE_SUB_TYPE_S
	.comm	_HNS_ROCE_V2_AEQE_EVENT_QUEUE_NUM_M,4,2 ; @HNS_ROCE_V2_AEQE_EVENT_QUEUE_NUM_M
	.comm	_HNS_ROCE_V2_AEQE_EVENT_QUEUE_NUM_S,4,2 ; @HNS_ROCE_V2_AEQE_EVENT_QUEUE_NUM_S
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unhandled event %d on EQ %d at idx %u.\n"

	.no_dead_strip	_hns_roce_v2_aeq_int
.subsections_via_symbols
