	.file	"extr_main.c_bnxt_re_handle_qp_async_event.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bnxt_re_handle_qp_async_event, @function
bnxt_re_handle_qp_async_event:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR CMDQ_MODIFY_QP_NEW_STATE_ERR[rip]
	cmp	QWORD PTR 24[rsi], rax
	je	.L15
.L2:
	mov	rbp, rsp
	xor	esi, esi
	mov	edx, 24
	mov	rdi, rbp
	call	memset@PLT
	cmp	QWORD PTR 32[rbx], 0
	mov	rax, QWORD PTR [rsp]
	je	.L4
	mov	rax, QWORD PTR 16[rbx]
	mov	edx, DWORD PTR IB_EVENT_QP_LAST_WQE_REACHED[rip]
	mov	QWORD PTR 16[rsp], rbx
	mov	QWORD PTR [rsp], rax
	mov	DWORD PTR 8[rsp], edx
.L4:
	test	rax, rax
	je	.L5
	mov	rax, QWORD PTR 8[rbx]
	test	rax, rax
	je	.L5
	mov	esi, DWORD PTR [rbx]
	mov	rdi, rbp
	call	rax
.L5:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rdi, rsi
	call	bnxt_re_lock_cqs@PLT
	lea	rdi, 24[rbx]
	mov	ebp, eax
	call	bnxt_qplib_add_flush_qp@PLT
	mov	esi, ebp
	mov	rdi, rbx
	call	bnxt_re_unlock_cqs@PLT
	jmp	.L2
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bnxt_re_handle_qp_async_event, .-bnxt_re_handle_qp_async_event
	.comm	IB_EVENT_QP_LAST_WQE_REACHED,4,4
	.comm	CMDQ_MODIFY_QP_NEW_STATE_ERR,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_main.c_bnxt_re_handle_qp_async_event.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnxt_re_handle_qp_async_event, %function
bnxt_re_handle_qp_async_event:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L18
	ldr	r2, [r1, #12]
	ldr	r3, [r3]
	mov	r4, r1
	ldr	r1, .L18+4
	sub	sp, sp, #20
	cmp	r2, r3
	ldr	r1, [r1]
	str	r1, [sp, #12]
	mov	r1,#0
	beq	.L16
.L2:
	mov	r3, #0
	ldr	r2, [r4, #16]
	str	r3, [sp]
	cmp	r2, r3
	str	r3, [sp, #4]
	str	r3, [sp, #8]
	beq	.L3
	ldr	r2, .L18+8
	ldr	r3, [r4, #8]
	ldr	r2, [r2]
	cmp	r3, #0
	stmib	sp, {r2, r4}
	str	r3, [sp]
	beq	.L3
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L3
	mov	r0, sp
	ldr	r1, [r4]
	blx	r3
.L3:
	ldr	r3, .L18+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L16:
	mov	r0, r4
	bl	bnxt_re_lock_cqs
	mov	r5, r0
	add	r0, r4, #12
	bl	bnxt_qplib_add_flush_qp
	mov	r1, r5
	mov	r0, r4
	bl	bnxt_re_unlock_cqs
	b	.L2
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	CMDQ_MODIFY_QP_NEW_STATE_ERR
	.word	.LC0
	.word	IB_EVENT_QP_LAST_WQE_REACHED
	.size	bnxt_re_handle_qp_async_event, .-bnxt_re_handle_qp_async_event
	.comm	IB_EVENT_QP_LAST_WQE_REACHED,4,4
	.comm	CMDQ_MODIFY_QP_NEW_STATE_ERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
