	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_re_handle_qp_async_event
_bnxt_re_handle_qp_async_event:         ## @bnxt_re_handle_qp_async_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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	24(%rsi), %rax
	movq	_CMDQ_MODIFY_QP_NEW_STATE_ERR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	24(%rbx), %r14
	movq	%rbx, %rdi
	callq	_bnxt_re_lock_cqs
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_bnxt_qplib_add_flush_qp
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_bnxt_re_unlock_cqs
LBB0_2:
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	cmpq	$0, 32(%rbx)
	je	LBB0_3
## %bb.4:
	movq	16(%rbx), %rax
	movq	%rax, -48(%rbp)
	movq	%rbx, -32(%rbp)
	movq	_IB_EVENT_QP_LAST_WQE_REACHED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -40(%rbp)
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_8
LBB0_3:
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_8
LBB0_6:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	(%rbx), %esi
	leaq	-48(%rbp), %rdi
	callq	*%rax
LBB0_8:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMDQ_MODIFY_QP_NEW_STATE_ERR,8,3 ## @CMDQ_MODIFY_QP_NEW_STATE_ERR
	.comm	_IB_EVENT_QP_LAST_WQE_REACHED,4,2 ## @IB_EVENT_QP_LAST_WQE_REACHED
	.no_dead_strip	_bnxt_re_handle_qp_async_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_re_handle_qp_async_event
_bnxt_re_handle_qp_async_event:         ; @bnxt_re_handle_qp_async_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	mov	x20, x1
	ldr	x8, [x20, #24]!
Lloh0:
	adrp	x9, _CMDQ_MODIFY_QP_NEW_STATE_ERR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CMDQ_MODIFY_QP_NEW_STATE_ERR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_bnxt_re_lock_cqs
	mov	x21, x0
	mov	x0, x20
	bl	_bnxt_qplib_add_flush_qp
	mov	x0, x19
	mov	x1, x21
	bl	_bnxt_re_unlock_cqs
LBB0_2:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x19, #16]
	str	x8, [sp, #8]
	str	x19, [sp, #24]
Lloh3:
	adrp	x9, _IB_EVENT_QP_LAST_WQE_REACHED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_EVENT_QP_LAST_WQE_REACHED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w9, [sp, #16]
	cbnz	x8, LBB0_5
	b	LBB0_7
LBB0_4:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_7
LBB0_5:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w1, [x19]
	add	x0, sp, #8
	blr	x8
LBB0_7:
	mov	w0, #0
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CMDQ_MODIFY_QP_NEW_STATE_ERR,8,3 ; @CMDQ_MODIFY_QP_NEW_STATE_ERR
	.comm	_IB_EVENT_QP_LAST_WQE_REACHED,4,2 ; @IB_EVENT_QP_LAST_WQE_REACHED
	.no_dead_strip	_bnxt_re_handle_qp_async_event
.subsections_via_symbols
