	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_v1_aeq_int
_hns_roce_v1_aeq_int:                   ## @hns_roce_v1_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_next_aeqe_sw_v1
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_next_aeqe_sw_v1
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_21
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_dma_rmb
	movl	16(%r13), %edi
	movq	_HNS_ROCE_AEQE_U32_4_EVENT_TYPE_M@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_HNS_ROCE_AEQE_U32_4_EVENT_TYPE_S@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	callq	_roce_get_field
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	movl	%eax, %ecx
	callq	_dev_dbg
	movl	16(%r13), %edi
	movl	(%r12), %esi
	movl	(%r14), %edx
	callq	_roce_get_field
	movl	%eax, %ecx
	addl	$-128, %ecx
	cmpl	$16, %ecx
	ja	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_hns_roce_v1_qp_err_handle
	jmp	LBB0_18
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_6
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_hns_roce_v1_cq_err_handle
	jmp	LBB0_18
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %r8d
	movl	4(%r15), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.8(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_18
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_6
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_6
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_6
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	12(%r13), %edi
	callq	_le16_to_cpu
	movl	%eax, %r14d
	movl	4(%r13), %edi
	movl	8(%r13), %r13d
	callq	_le64_to_cpu
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_hns_roce_cmd_event
	jmp	LBB0_18
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_hns_roce_v1_db_overflow_handle
	jmp	LBB0_18
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rsi
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r15)
	movl	(%rbx), %ecx
	addl	%ecx, %ecx
	decl	%ecx
	cmpl	%ecx, %eax
	jl	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
	movl	$0, (%r15)
	jmp	LBB0_20
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %edi
	movq	_HNS_ROCE_AEQE_EVENT_CE_EVENT_CEQE_CEQN_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNS_ROCE_AEQE_EVENT_CE_EVENT_CEQE_CEQN_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_roce_get_field
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.7(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_18
LBB0_21:
	movl	$1, %r14d
	jmp	LBB0_22
LBB0_1:
	xorl	%r14d, %r14d
LBB0_22:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_set_eq_cons_index_v1
	movl	%r14d, %eax
	addq	$8, %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_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_8
	.long	L0_0_set_13
	.long	L0_0_set_9
	.long	L0_0_set_5
	.long	L0_0_set_14
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_15
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_7
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"aeqe = %pK, aeqe->asyn.event_type = 0x%lx\n"

	.comm	_HNS_ROCE_AEQE_U32_4_EVENT_TYPE_M,4,2 ## @HNS_ROCE_AEQE_U32_4_EVENT_TYPE_M
	.comm	_HNS_ROCE_AEQE_U32_4_EVENT_TYPE_S,4,2 ## @HNS_ROCE_AEQE_U32_4_EVENT_TYPE_S
L_.str.1:                               ## @.str.1
	.asciz	"PATH MIG not supported\n"

L_.str.2:                               ## @.str.2
	.asciz	"COMMUNICATION established\n"

L_.str.3:                               ## @.str.3
	.asciz	"SQ DRAINED not supported\n"

L_.str.4:                               ## @.str.4
	.asciz	"PATH MIG failed\n"

L_.str.5:                               ## @.str.5
	.asciz	"SRQ not support!\n"

L_.str.6:                               ## @.str.6
	.asciz	"port change.\n"

L_.str.7:                               ## @.str.7
	.asciz	"CEQ 0x%lx overflow.\n"

	.comm	_HNS_ROCE_AEQE_EVENT_CE_EVENT_CEQE_CEQN_M,4,2 ## @HNS_ROCE_AEQE_EVENT_CE_EVENT_CEQE_CEQN_M
	.comm	_HNS_ROCE_AEQE_EVENT_CE_EVENT_CEQE_CEQN_S,4,2 ## @HNS_ROCE_AEQE_EVENT_CE_EVENT_CEQE_CEQN_S
L_.str.8:                               ## @.str.8
	.asciz	"Unhandled event %d on EQ %d at idx %u.\n"

L_.str.9:                               ## @.str.9
	.asciz	"cons_index overflow, set back to 0.\n"

	.no_dead_strip	_hns_roce_v1_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_v1_aeq_int
_hns_roce_v1_aeq_int:                   ; @hns_roce_v1_aeq_int
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, [x0, #8]
	mov	x0, x1
	bl	_next_aeqe_sw_v1
	cbz	x0, LBB0_21
; %bb.1:
	mov	x28, x0
Lloh0:
	adrp	x27, _HNS_ROCE_AEQE_U32_4_EVENT_TYPE_M@GOTPAGE
Lloh1:
	ldr	x27, [x27, _HNS_ROCE_AEQE_U32_4_EVENT_TYPE_M@GOTPAGEOFF]
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
Lloh4:
	adrp	x25, _HNS_ROCE_AEQE_U32_4_EVENT_TYPE_S@GOTPAGE
Lloh5:
	ldr	x25, [x25, _HNS_ROCE_AEQE_U32_4_EVENT_TYPE_S@GOTPAGEOFF]
Lloh6:
	adrp	x23, l_.str.9@PAGE
Lloh7:
	add	x23, x23, l_.str.9@PAGEOFF
Lloh8:
	adrp	x24, lJTI0_0@PAGE
Lloh9:
	add	x24, x24, lJTI0_0@PAGEOFF
Lloh10:
	adrp	x26, l_.str.5@PAGE
Lloh11:
	add	x26, x26, l_.str.5@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_next_aeqe_sw_v1
	mov	x28, x0
	cbz	x0, LBB0_20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_dma_rmb
	ldr	w0, [x28, #16]
	ldr	w1, [x27]
	ldr	w2, [x25]
	bl	_roce_get_field
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x28
	bl	_dev_dbg
	ldr	w0, [x28, #16]
	ldr	w1, [x27]
	ldr	w2, [x25]
	bl	_roce_get_field
	mov	x2, x0
	sub	w8, w0, #128
	cmp	w8, #16
	b.hi	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	adr	x9, LBB0_5
	ldrb	w10, [x24, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x28
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_hns_roce_v1_qp_err_handle
	b	LBB0_18
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x26
	b	LBB0_17
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x28
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_hns_roce_v1_cq_err_handle
	b	LBB0_18
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldp	w9, w8, [x19]
	stp	x8, x9, [sp, #8]
	str	x2, [sp]
	mov	x0, x21
Lloh12:
	adrp	x1, l_.str.8@PAGE
Lloh13:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_17
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_17
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
Lloh16:
	adrp	x1, l_.str.6@PAGE
Lloh17:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_17
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_17
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x28, #12]
	bl	_le16_to_cpu
	mov	x22, x24
	mov	x24, x23
	mov	x23, x0
	ldp	w0, w26, [x28, #4]
	bl	_le64_to_cpu
	mov	x3, x0
	mov	x0, x20
	mov	x1, x23
	mov	x23, x24
	mov	x24, x22
Lloh22:
	adrp	x22, l_.str@PAGE
Lloh23:
	add	x22, x22, l_.str@PAGEOFF
	mov	x2, x26
Lloh24:
	adrp	x26, l_.str.5@PAGE
Lloh25:
	add	x26, x26, l_.str.5@PAGEOFF
	bl	_hns_roce_cmd_event
	b	LBB0_18
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x28
	bl	_hns_roce_v1_db_overflow_handle
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x28]
Lloh28:
	adrp	x8, _HNS_ROCE_AEQE_EVENT_CE_EVENT_CEQE_CEQN_M@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HNS_ROCE_AEQE_EVENT_CE_EVENT_CEQE_CEQN_M@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x8, _HNS_ROCE_AEQE_EVENT_CE_EVENT_CEQE_CEQN_S@GOTPAGE
Lloh32:
	ldr	x8, [x8, _HNS_ROCE_AEQE_EVENT_CE_EVENT_CEQE_CEQN_S@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	bl	_roce_get_field
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x21
Lloh34:
	adrp	x1, l_.str.7@PAGE
Lloh35:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_dev_warn
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19]
	add	w9, w8, #1
	str	w9, [x19]
	ldr	w9, [x20]
	lsl	w9, w9, #1
	sub	w9, w9, #1
	cmp	w8, w9
	b.lt	LBB0_2
; %bb.19:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_dev_warn
	str	wzr, [x19]
	b	LBB0_2
LBB0_20:
	mov	w20, #1
	b	LBB0_22
LBB0_21:
	mov	w20, #0
LBB0_22:
	mov	x0, x19
	mov	w1, #0
	bl	_set_eq_cons_index_v1
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
	.byte	(LBB0_13-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_14-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_15-LBB0_5)>>2
	.byte	(LBB0_16-LBB0_5)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"aeqe = %pK, aeqe->asyn.event_type = 0x%lx\n"

	.comm	_HNS_ROCE_AEQE_U32_4_EVENT_TYPE_M,4,2 ; @HNS_ROCE_AEQE_U32_4_EVENT_TYPE_M
	.comm	_HNS_ROCE_AEQE_U32_4_EVENT_TYPE_S,4,2 ; @HNS_ROCE_AEQE_U32_4_EVENT_TYPE_S
l_.str.1:                               ; @.str.1
	.asciz	"PATH MIG not supported\n"

l_.str.2:                               ; @.str.2
	.asciz	"COMMUNICATION established\n"

l_.str.3:                               ; @.str.3
	.asciz	"SQ DRAINED not supported\n"

l_.str.4:                               ; @.str.4
	.asciz	"PATH MIG failed\n"

l_.str.5:                               ; @.str.5
	.asciz	"SRQ not support!\n"

l_.str.6:                               ; @.str.6
	.asciz	"port change.\n"

l_.str.7:                               ; @.str.7
	.asciz	"CEQ 0x%lx overflow.\n"

	.comm	_HNS_ROCE_AEQE_EVENT_CE_EVENT_CEQE_CEQN_M,4,2 ; @HNS_ROCE_AEQE_EVENT_CE_EVENT_CEQE_CEQN_M
	.comm	_HNS_ROCE_AEQE_EVENT_CE_EVENT_CEQE_CEQN_S,4,2 ; @HNS_ROCE_AEQE_EVENT_CE_EVENT_CEQE_CEQN_S
l_.str.8:                               ; @.str.8
	.asciz	"Unhandled event %d on EQ %d at idx %u.\n"

l_.str.9:                               ; @.str.9
	.asciz	"cons_index overflow, set back to 0.\n"

	.no_dead_strip	_hns_roce_v1_aeq_int
.subsections_via_symbols
