	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_ib_cq_event
_hns_roce_ib_cq_event:                  ## @hns_roce_ib_cq_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	24(%rdi), %edi
	callq	_to_hr_dev
	movq	_HNS_ROCE_EVENT_TYPE_CQ_ID_INVALID@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	_HNS_ROCE_EVENT_TYPE_CQ_ACCESS_ERROR@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	_HNS_ROCE_EVENT_TYPE_CQ_OVERFLOW@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	je	LBB0_3
## %bb.6:
	movl	(%rax), %edi
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_3:
	movq	16(%r14), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	8(%r14), %rcx
	movl	24(%r14), %edx
	movl	%edx, -20(%rbp)
	movq	_IB_EVENT_CQ_ERR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -24(%rbp)
	movq	%rcx, -32(%rbp)
	movl	8(%r14), %esi
	leaq	-32(%rbp), %rdi
	callq	*%rax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HNS_ROCE_EVENT_TYPE_CQ_ID_INVALID,4,2 ## @HNS_ROCE_EVENT_TYPE_CQ_ID_INVALID
	.comm	_HNS_ROCE_EVENT_TYPE_CQ_ACCESS_ERROR,4,2 ## @HNS_ROCE_EVENT_TYPE_CQ_ACCESS_ERROR
	.comm	_HNS_ROCE_EVENT_TYPE_CQ_OVERFLOW,4,2 ## @HNS_ROCE_EVENT_TYPE_CQ_OVERFLOW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hns_roce_ib: Unexpected event type 0x%x on CQ %06lx\n"

	.comm	_IB_EVENT_CQ_ERR,4,2            ## @IB_EVENT_CQ_ERR
	.no_dead_strip	_hns_roce_ib_cq_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_roce_ib_cq_event
_hns_roce_ib_cq_event:                  ; @hns_roce_ib_cq_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #24]
	bl	_to_hr_dev
Lloh0:
	adrp	x8, _HNS_ROCE_EVENT_TYPE_CQ_ID_INVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HNS_ROCE_EVENT_TYPE_CQ_ID_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _HNS_ROCE_EVENT_TYPE_CQ_ACCESS_ERROR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HNS_ROCE_EVENT_TYPE_CQ_ACCESS_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _HNS_ROCE_EVENT_TYPE_CQ_OVERFLOW@GOTPAGE
Lloh7:
	ldr	x10, [x10, _HNS_ROCE_EVENT_TYPE_CQ_OVERFLOW@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w8, w20
	ccmp	w9, w20, #4, ne
	ccmp	w10, w20, #4, ne
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.2:
	add	x9, x19, #8
Lloh9:
	adrp	x10, _IB_EVENT_CQ_ERR@GOTPAGE
Lloh10:
	ldr	x10, [x10, _IB_EVENT_CQ_ERR@GOTPAGEOFF]
	ldr	w11, [x19, #24]
Lloh11:
	ldr	w10, [x10]
	stp	w10, w11, [sp, #8]
	str	x9, [sp]
	ldr	w1, [x19, #8]
	mov	x0, sp
	blr	x8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	ldr	w0, [x0]
	ldr	w3, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_dev_err
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HNS_ROCE_EVENT_TYPE_CQ_ID_INVALID,4,2 ; @HNS_ROCE_EVENT_TYPE_CQ_ID_INVALID
	.comm	_HNS_ROCE_EVENT_TYPE_CQ_ACCESS_ERROR,4,2 ; @HNS_ROCE_EVENT_TYPE_CQ_ACCESS_ERROR
	.comm	_HNS_ROCE_EVENT_TYPE_CQ_OVERFLOW,4,2 ; @HNS_ROCE_EVENT_TYPE_CQ_OVERFLOW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hns_roce_ib: Unexpected event type 0x%x on CQ %06lx\n"

	.comm	_IB_EVENT_CQ_ERR,4,2            ; @IB_EVENT_CQ_ERR
	.no_dead_strip	_hns_roce_ib_cq_event
.subsections_via_symbols
