	.file	"extr_i40iw_ctrl.c_i40iw_sc_cq_create.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"CQ_CREATE WQE"
	.text
	.p2align 4
	.type	i40iw_sc_cq_create, @function
i40iw_sc_cq_create:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	eax, DWORD PTR I40IW_MAX_CQID[rip]
	mov	r14d, DWORD PTR I40IW_ERR_INVALID_CQ_ID[rip]
	cmp	DWORD PTR 48[rdi], eax
	jg	.L1
	mov	rax, QWORD PTR I40IW_MAX_CEQID[rip]
	mov	r14d, DWORD PTR I40IW_ERR_INVALID_CEQ_ID[rip]
	mov	rbx, rdi
	cmp	QWORD PTR [rdi], rax
	jle	.L20
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L20:
	.cfi_restore_state
	mov	rax, QWORD PTR 64[rdi]
	mov	r14d, edx
	mov	r12d, ecx
	mov	r13, QWORD PTR [rax]
	mov	rdi, r13
	call	i40iw_sc_cqp_get_next_send_wqe@PLT
	mov	r15, rax
	test	rax, rax
	je	.L21
	mov	edx, DWORD PTR 52[rbx]
	xor	esi, esi
	mov	rdi, rax
	call	set_64bit_val@PLT
	mov	esi, 1
	mov	rdi, rbx
	call	RS_64_1@PLT
	mov	esi, 8
	mov	rdi, r15
	mov	edx, eax
	call	set_64bit_val@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR I40IW_CQPSQ_CQ_SHADOW_READ_THRESHOLD[rip]
	call	LS_64@PLT
	mov	esi, 16
	mov	rdi, r15
	mov	edx, eax
	call	set_64bit_val@PLT
	mov	eax, DWORD PTR 12[rbx]
	xor	edx, edx
	test	eax, eax
	jne	.L6
	mov	edx, DWORD PTR 16[rbx]
.L6:
	mov	esi, 32
	mov	rdi, r15
	call	set_64bit_val@PLT
	mov	edx, DWORD PTR 20[rbx]
	mov	esi, 40
	mov	rdi, r15
	call	set_64bit_val@PLT
	mov	edx, DWORD PTR 12[rbx]
	test	edx, edx
	je	.L7
	mov	edx, DWORD PTR 24[rbx]
.L7:
	mov	esi, 48
	mov	rdi, r15
	call	set_64bit_val@PLT
	mov	edi, DWORD PTR 28[rbx]
	mov	esi, DWORD PTR I40IW_CQPSQ_TPHVAL[rip]
	call	LS_64@PLT
	mov	esi, 56
	mov	rdi, r15
	mov	edx, eax
	call	set_64bit_val@PLT
	mov	edi, DWORD PTR 32[rbx]
	mov	ebp, DWORD PTR 48[rbx]
	mov	esi, DWORD PTR I40IW_CQPSQ_CQ_CEQID[rip]
	test	edi, edi
	je	.L8
	mov	edi, DWORD PTR [rbx]
.L8:
	call	LS_64@PLT
	mov	esi, DWORD PTR I40IW_CQPSQ_OPCODE[rip]
	mov	edi, DWORD PTR I40IW_CQP_OP_CREATE_CQ[rip]
	mov	DWORD PTR 12[rsp], eax
	call	LS_64@PLT
	mov	edi, DWORD PTR 36[rbx]
	mov	esi, DWORD PTR I40IW_CQPSQ_CQ_LPBLSIZE[rip]
	or	eax, DWORD PTR 12[rsp]
	or	ebp, eax
	call	LS_64@PLT
	mov	esi, DWORD PTR I40IW_CQPSQ_CQ_CHKOVERFLOW[rip]
	mov	edi, r14d
	xor	r14d, r14d
	or	ebp, eax
	call	LS_64@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	esi, DWORD PTR I40IW_CQPSQ_CQ_VIRTMAP[rip]
	or	ebp, eax
	call	LS_64@PLT
	mov	edi, DWORD PTR 40[rbx]
	mov	esi, DWORD PTR I40IW_CQPSQ_CQ_ENCEQEMASK[rip]
	or	ebp, eax
	call	LS_64@PLT
	mov	edi, DWORD PTR 32[rbx]
	mov	esi, DWORD PTR I40IW_CQPSQ_CQ_CEQIDVALID[rip]
	or	ebp, eax
	call	LS_64@PLT
	mov	edi, DWORD PTR 44[rbx]
	mov	esi, DWORD PTR I40IW_CQPSQ_TPHEN[rip]
	or	ebp, eax
	call	LS_64@PLT
	mov	edi, DWORD PTR 56[rbx]
	mov	esi, DWORD PTR I40IW_CQPSQ_CQ_AVOIDMEMCNFLCT[rip]
	or	ebp, eax
	call	LS_64@PLT
	mov	esi, DWORD PTR I40IW_CQPSQ_WQEVALID[rip]
	mov	edi, DWORD PTR 0[r13]
	or	ebp, eax
	call	LS_64@PLT
	mov	esi, ebp
	mov	rdi, r15
	or	esi, eax
	call	i40iw_insert_wqe_hdr@PLT
	mov	r8d, DWORD PTR I40IW_CQP_WQE_SIZE[rip]
	mov	edi, DWORD PTR 4[r13]
	mov	rcx, r15
	mov	esi, DWORD PTR I40IW_DEBUG_WQE[rip]
	lea	rdx, .LC0[rip]
	sal	r8d, 3
	call	i40iw_debug_buf@PLT
	test	r12d, r12d
	je	.L1
	mov	rdi, r13
	call	i40iw_sc_cqp_post_sq@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	r14d, DWORD PTR I40IW_ERR_RING_FULL[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	i40iw_sc_cq_create, .-i40iw_sc_cq_create
	.comm	I40IW_MAX_CQID,4,4
	.comm	I40IW_MAX_CEQID,8,8
	.comm	I40IW_ERR_RING_FULL,4,4
	.comm	I40IW_ERR_INVALID_CQ_ID,4,4
	.comm	I40IW_ERR_INVALID_CEQ_ID,4,4
	.comm	I40IW_DEBUG_WQE,4,4
	.comm	I40IW_CQP_WQE_SIZE,4,4
	.comm	I40IW_CQP_OP_CREATE_CQ,4,4
	.comm	I40IW_CQPSQ_WQEVALID,4,4
	.comm	I40IW_CQPSQ_TPHVAL,4,4
	.comm	I40IW_CQPSQ_TPHEN,4,4
	.comm	I40IW_CQPSQ_OPCODE,4,4
	.comm	I40IW_CQPSQ_CQ_VIRTMAP,4,4
	.comm	I40IW_CQPSQ_CQ_SHADOW_READ_THRESHOLD,4,4
	.comm	I40IW_CQPSQ_CQ_LPBLSIZE,4,4
	.comm	I40IW_CQPSQ_CQ_ENCEQEMASK,4,4
	.comm	I40IW_CQPSQ_CQ_CHKOVERFLOW,4,4
	.comm	I40IW_CQPSQ_CQ_CEQIDVALID,4,4
	.comm	I40IW_CQPSQ_CQ_CEQID,4,4
	.comm	I40IW_CQPSQ_CQ_AVOIDMEMCNFLCT,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_i40iw_ctrl.c_i40iw_sc_cq_create.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CQ_CREATE WQE\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	i40iw_sc_cq_create, %function
i40iw_sc_cq_create:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r0, .L21
	ldr	ip, [r4, #44]
	ldr	r0, [r0]
	sub	sp, sp, #8
	cmp	ip, r0
	bgt	.L19
	mov	r5, r3
	ldr	r3, .L21+4
	mov	r9, r2
	ldr	r3, [r3]
	ldr	r2, [r4]
	cmp	r2, r3
	ble	.L4
	ldr	r3, .L21+8
	ldr	r0, [r3]
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	ldr	r3, [r4, #56]
	ldr	r8, [r3]
	mov	r0, r8
	bl	i40iw_sc_cqp_get_next_send_wqe
	subs	r7, r0, #0
	beq	.L20
	ldr	r2, [r4, #48]
	mov	r1, #0
	bl	set_64bit_val
	mov	r1, #1
	mov	r0, r4
	bl	RS_64_1
	mov	r1, #8
	mov	r2, r0
	mov	r0, r7
	bl	set_64bit_val
	ldr	r3, .L21+12
	ldr	r0, [r4, #4]
	ldr	r1, [r3]
	bl	LS_64
	mov	r1, #16
	mov	r2, r0
	mov	r0, r7
	bl	set_64bit_val
	ldr	r3, [r4, #8]
	mov	r1, #32
	cmp	r3, #0
	ldreq	r2, [r4, #12]
	movne	r2, #0
	mov	r0, r7
	bl	set_64bit_val
	ldr	r2, [r4, #16]
	mov	r1, #40
	mov	r0, r7
	bl	set_64bit_val
	ldr	r2, [r4, #8]
	mov	r1, #48
	cmp	r2, #0
	ldrne	r2, [r4, #20]
	mov	r0, r7
	bl	set_64bit_val
	ldr	r3, .L21+16
	ldr	r0, [r4, #24]
	ldr	r1, [r3]
	bl	LS_64
	mov	r1, #56
	mov	r2, r0
	mov	r0, r7
	bl	set_64bit_val
	ldr	r0, [r4, #28]
	ldr	r3, .L21+20
	cmp	r0, #0
	ldrne	r0, [r4]
	ldr	r1, [r3]
	ldr	r10, [r4, #44]
	bl	LS_64
	ldr	r2, .L21+24
	ldr	r3, .L21+28
	ldr	r1, [r2]
	mov	r6, r0
	ldr	r0, [r3]
	bl	LS_64
	ldr	r3, .L21+32
	orr	r6, r6, r0
	ldr	r1, [r3]
	ldr	r0, [r4, #32]
	bl	LS_64
	mov	r3, r0
	ldr	r2, .L21+36
	mov	r0, r9
	ldr	r1, [r2]
	orr	r6, r6, r10
	orr	r6, r6, r3
	bl	LS_64
	mov	r3, r0
	ldr	r2, .L21+40
	ldr	r0, [r4, #8]
	ldr	r1, [r2]
	orr	r6, r6, r3
	bl	LS_64
	mov	r3, r0
	ldr	r2, .L21+44
	ldr	r0, [r4, #36]
	ldr	r1, [r2]
	orr	r6, r6, r3
	bl	LS_64
	mov	r3, r0
	ldr	r2, .L21+48
	ldr	r0, [r4, #28]
	ldr	r1, [r2]
	orr	r6, r6, r3
	bl	LS_64
	mov	r3, r0
	ldr	r2, .L21+52
	ldr	r0, [r4, #40]
	ldr	r1, [r2]
	orr	r6, r6, r3
	bl	LS_64
	mov	r3, r0
	ldr	r2, .L21+56
	ldr	r0, [r4, #52]
	ldr	r1, [r2]
	orr	r4, r6, r3
	bl	LS_64
	mov	r3, r0
	ldr	r2, .L21+60
	ldr	r0, [r8]
	ldr	r1, [r2]
	orr	r4, r4, r3
	bl	LS_64
	mov	r1, r0
	mov	r0, r7
	orr	r1, r4, r1
	bl	i40iw_insert_wqe_hdr
	ldr	r3, .L21+64
	ldr	r1, .L21+68
	ldr	r2, [r3]
	ldr	r0, [r8, #4]
	lsl	r2, r2, #3
	str	r2, [sp]
	mov	r3, r7
	ldr	r1, [r1]
	ldr	r2, .L21+72
	bl	i40iw_debug_buf
	cmp	r5, #0
	moveq	r0, r5
	beq	.L1
	mov	r0, r8
	bl	i40iw_sc_cqp_post_sq
	mov	r0, #0
	b	.L1
.L19:
	ldr	r3, .L21+76
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L20:
	ldr	r3, .L21+80
	ldr	r0, [r3]
	b	.L1
.L22:
	.align	2
.L21:
	.word	I40IW_MAX_CQID
	.word	I40IW_MAX_CEQID
	.word	I40IW_ERR_INVALID_CEQ_ID
	.word	I40IW_CQPSQ_CQ_SHADOW_READ_THRESHOLD
	.word	I40IW_CQPSQ_TPHVAL
	.word	I40IW_CQPSQ_CQ_CEQID
	.word	I40IW_CQPSQ_OPCODE
	.word	I40IW_CQP_OP_CREATE_CQ
	.word	I40IW_CQPSQ_CQ_LPBLSIZE
	.word	I40IW_CQPSQ_CQ_CHKOVERFLOW
	.word	I40IW_CQPSQ_CQ_VIRTMAP
	.word	I40IW_CQPSQ_CQ_ENCEQEMASK
	.word	I40IW_CQPSQ_CQ_CEQIDVALID
	.word	I40IW_CQPSQ_TPHEN
	.word	I40IW_CQPSQ_CQ_AVOIDMEMCNFLCT
	.word	I40IW_CQPSQ_WQEVALID
	.word	I40IW_CQP_WQE_SIZE
	.word	I40IW_DEBUG_WQE
	.word	.LC0
	.word	I40IW_ERR_INVALID_CQ_ID
	.word	I40IW_ERR_RING_FULL
	.size	i40iw_sc_cq_create, .-i40iw_sc_cq_create
	.comm	I40IW_MAX_CQID,4,4
	.comm	I40IW_MAX_CEQID,4,4
	.comm	I40IW_ERR_RING_FULL,4,4
	.comm	I40IW_ERR_INVALID_CQ_ID,4,4
	.comm	I40IW_ERR_INVALID_CEQ_ID,4,4
	.comm	I40IW_DEBUG_WQE,4,4
	.comm	I40IW_CQP_WQE_SIZE,4,4
	.comm	I40IW_CQP_OP_CREATE_CQ,4,4
	.comm	I40IW_CQPSQ_WQEVALID,4,4
	.comm	I40IW_CQPSQ_TPHVAL,4,4
	.comm	I40IW_CQPSQ_TPHEN,4,4
	.comm	I40IW_CQPSQ_OPCODE,4,4
	.comm	I40IW_CQPSQ_CQ_VIRTMAP,4,4
	.comm	I40IW_CQPSQ_CQ_SHADOW_READ_THRESHOLD,4,4
	.comm	I40IW_CQPSQ_CQ_LPBLSIZE,4,4
	.comm	I40IW_CQPSQ_CQ_ENCEQEMASK,4,4
	.comm	I40IW_CQPSQ_CQ_CHKOVERFLOW,4,4
	.comm	I40IW_CQPSQ_CQ_CEQIDVALID,4,4
	.comm	I40IW_CQPSQ_CQ_CEQID,4,4
	.comm	I40IW_CQPSQ_CQ_AVOIDMEMCNFLCT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
