	.file	"extr_qed_rdma.c_qed_rdma_create_cq.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"cq_handle = %08x%08x\n"
.LC1:
	.string	"Can't create CQ, rc = %d\n"
.LC2:
	.string	"Created CQ, rc = %d\n"
.LC3:
	.string	"Create CQ failed, rc = %d\n"
	.text
	.p2align 4
	.type	qed_rdma_create_cq, @function
qed_rdma_create_cq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	lea	rdx, .LC0[rip]
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rbp, QWORD PTR 8[rdi]
	mov	ecx, DWORD PTR 40[rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	r8d, DWORD PTR 36[rsi]
	mov	esi, DWORD PTR QED_MSG_RDMA[rip]
	lea	r13, 4[rbp]
	call	DP_VERBOSE@PLT
	mov	rdi, rbp
	call	spin_lock_bh@PLT
	mov	rdi, r14
	lea	rdx, 8[rsp]
	mov	rsi, r13
	call	qed_rdma_bmap_alloc_id@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	spin_unlock_bh@PLT
	test	r12d, r12d
	jne	.L9
	mov	esi, DWORD PTR 8[rbp]
	mov	rdi, r14
	call	qed_cxt_get_proto_cid_start@PLT
	add	rax, QWORD PTR 8[rsp]
	mov	esi, DWORD PTR QED_ELEM_CXT[rip]
	mov	rdi, r14
	mov	QWORD PTR [rbx], rax
	mov	rdx, rax
	call	qed_cxt_dynamic_ilt_alloc@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L10
.L4:
	mov	rdi, rbp
	call	spin_lock_bh@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	rsi, r13
	mov	rdi, r14
	call	qed_bmap_release_id@PLT
	mov	rdi, rbp
	call	spin_unlock_bh@PLT
	mov	edx, r12d
	lea	rsi, .LC3[rip]
	mov	rdi, r14
	call	DP_NOTICE@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	r12, 16[rsp]
	mov	edx, 16
	xor	esi, esi
	mov	rdi, r12
	call	memset@PLT
	mov	rax, QWORD PTR [rbx]
	mov	ecx, DWORD PTR 8[rbp]
	mov	r8, r12
	mov	edx, DWORD PTR RDMA_RAMROD_CREATE_CQ[rip]
	mov	rsi, rsp
	mov	rdi, r14
	mov	QWORD PTR 24[rsp], rax
	mov	eax, DWORD PTR [r14]
	mov	DWORD PTR 20[rsp], eax
	mov	eax, DWORD PTR QED_SPQ_MODE_EBLOCK[rip]
	mov	DWORD PTR 16[rsp], eax
	call	qed_sp_init_request@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L4
	mov	edi, DWORD PTR 40[r15]
	mov	r12, QWORD PTR [rsp]
	call	cpu_to_le32@PLT
	mov	edi, DWORD PTR 36[r15]
	mov	QWORD PTR 64[r12], rax
	call	cpu_to_le32@PLT
	mov	edi, DWORD PTR 32[r15]
	mov	QWORD PTR 56[r12], rax
	call	cpu_to_le16@PLT
	mov	edi, DWORD PTR 24[r15]
	mov	QWORD PTR 48[r12], rax
	mov	eax, DWORD PTR 28[r15]
	mov	DWORD PTR 40[r12], eax
	call	cpu_to_le32@PLT
	mov	esi, DWORD PTR 20[r15]
	mov	edi, DWORD PTR 24[r12]
	mov	QWORD PTR 32[r12], rax
	call	DMA_REGPAIR_LE@PLT
	mov	edi, DWORD PTR 16[r15]
	call	cpu_to_le16@PLT
	mov	esi, DWORD PTR QED_RDMA_CNQ_RAM[rip]
	mov	rdi, r14
	mov	QWORD PTR 16[r12], rax
	call	RESC_START@PLT
	add	rax, QWORD PTR 8[r15]
	mov	rdi, r14
	mov	QWORD PTR 8[r12], rax
	mov	eax, DWORD PTR [r15]
	mov	rsi, QWORD PTR [rbx]
	mov	DWORD PTR 4[r12], eax
	call	qed_rdma_toggle_bit_create_resize_cq@PLT
	mov	rsi, QWORD PTR [rsp]
	xor	edx, edx
	mov	rdi, r14
	mov	DWORD PTR [r12], eax
	call	qed_spq_post@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L12
	mov	esi, DWORD PTR QED_MSG_RDMA[rip]
	xor	ecx, ecx
	mov	rdi, r14
	xor	eax, eax
	lea	rdx, .LC2[rip]
	call	DP_VERBOSE@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edx, r12d
	lea	rsi, .LC1[rip]
	mov	rdi, r14
	call	DP_NOTICE@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, r14
	call	qed_rdma_toggle_bit_create_resize_cq@PLT
	jmp	.L4
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	qed_rdma_create_cq, .-qed_rdma_create_cq
	.comm	RDMA_RAMROD_CREATE_CQ,4,4
	.comm	QED_SPQ_MODE_EBLOCK,4,4
	.comm	QED_RDMA_CNQ_RAM,4,4
	.comm	QED_MSG_RDMA,4,4
	.comm	QED_ELEM_CXT,4,4
	.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_qed_rdma.c_qed_rdma_create_cq.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cq_handle = %08x%08x\012\000"
	.align	2
.LC1:
	.ascii	"Can't create CQ, rc = %d\012\000"
	.align	2
.LC2:
	.ascii	"Created CQ, rc = %d\012\000"
	.align	2
.LC3:
	.ascii	"Create CQ failed, rc = %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qed_rdma_create_cq, %function
qed_rdma_create_cq:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	ldr	r3, [r1, #28]
	sub	sp, sp, #36
	ldr	r10, .L13
	ldr	r7, [r0, #4]
	ldr	ip, .L13+4
	str	r3, [sp]
	ldr	r3, [r1, #32]
	mov	r6, r1
	mov	r8, r2
	ldr	r1, [r10]
	ldr	r2, .L13+8
	ldr	ip, [ip]
	str	ip, [sp, #28]
	mov	ip,#0
	add	r9, r7, #4
	bl	DP_VERBOSE
	mov	r0, r7
	bl	spin_lock_bh
	mov	r1, r9
	add	r2, sp, #12
	mov	r0, r5
	bl	qed_rdma_bmap_alloc_id
	mov	r4, r0
	mov	r0, r7
	bl	spin_unlock_bh
	cmp	r4, #0
	bne	.L9
	ldr	r1, [r7, #8]
	mov	r0, r5
	bl	qed_cxt_get_proto_cid_start
	ldr	r2, [sp, #12]
	ldr	r3, .L13+12
	add	r2, r0, r2
	ldr	r1, [r3]
	mov	r0, r5
	str	r2, [r8]
	bl	qed_cxt_dynamic_ilt_alloc
	subs	r4, r0, #0
	beq	.L10
.L4:
	mov	r0, r7
	bl	spin_lock_bh
	mov	r1, r9
	ldr	r2, [sp, #12]
	mov	r0, r5
	bl	qed_bmap_release_id
	mov	r0, r7
	bl	spin_unlock_bh
	mov	r2, r4
	mov	r0, r5
	ldr	r1, .L13+16
	bl	DP_NOTICE
.L1:
	ldr	r3, .L13+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r4
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	ldr	r1, .L13+20
	ldr	r0, [r8]
	ldr	r1, [r1]
	ldr	r2, .L13+24
	ldr	ip, [r5]
	str	r1, [sp, #16]
	add	r1, sp, #16
	ldr	r3, [r7, #8]
	ldr	r2, [r2]
	str	r0, [sp, #24]
	str	r1, [sp]
	mov	r0, r5
	add	r1, sp, #8
	str	ip, [sp, #20]
	bl	qed_sp_init_request
	subs	r4, r0, #0
	bne	.L4
	ldr	r0, [r6, #32]
	ldr	fp, [sp, #8]
	bl	cpu_to_le32
	mov	r3, r0
	ldr	r0, [r6, #28]
	str	r3, [fp, #36]
	bl	cpu_to_le32
	mov	r3, r0
	ldr	r0, [r6, #24]
	str	r3, [fp, #32]
	bl	cpu_to_le16
	ldr	r3, [r6, #20]
	str	r0, [fp, #28]
	str	r3, [fp, #24]
	ldr	r0, [r6, #16]
	bl	cpu_to_le32
	ldr	r1, [r6, #12]
	str	r0, [fp, #20]
	ldr	r0, [fp, #16]
	bl	DMA_REGPAIR_LE
	ldr	r0, [r6, #8]
	bl	cpu_to_le16
	ldr	r3, .L13+28
	str	r0, [fp, #12]
	ldr	r1, [r3]
	mov	r0, r5
	bl	RESC_START
	ldm	r6, {r2, r3}
	add	r3, r3, r0
	stmib	fp, {r2, r3}
	mov	r0, r5
	ldr	r1, [r8]
	bl	qed_rdma_toggle_bit_create_resize_cq
	mov	r2, r4
	str	r0, [fp]
	ldr	r1, [sp, #8]
	mov	r0, r5
	bl	qed_spq_post
	subs	r4, r0, #0
	bne	.L12
	mov	r0, r5
	mov	r3, r4
	ldr	r1, [r10]
	ldr	r2, .L13+32
	bl	DP_VERBOSE
	b	.L1
.L9:
	mov	r0, r5
	mov	r2, r4
	ldr	r1, .L13+36
	bl	DP_NOTICE
	b	.L1
.L12:
	mov	r0, r5
	ldr	r1, [r8]
	bl	qed_rdma_toggle_bit_create_resize_cq
	b	.L4
.L11:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	QED_MSG_RDMA
	.word	.LC4
	.word	.LC0
	.word	QED_ELEM_CXT
	.word	.LC3
	.word	QED_SPQ_MODE_EBLOCK
	.word	RDMA_RAMROD_CREATE_CQ
	.word	QED_RDMA_CNQ_RAM
	.word	.LC2
	.word	.LC1
	.size	qed_rdma_create_cq, .-qed_rdma_create_cq
	.comm	RDMA_RAMROD_CREATE_CQ,4,4
	.comm	QED_SPQ_MODE_EBLOCK,4,4
	.comm	QED_RDMA_CNQ_RAM,4,4
	.comm	QED_MSG_RDMA,4,4
	.comm	QED_ELEM_CXT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
