	.file	"extr_ecore_sriov.c_ecore_iov_vf_mbx_start_txq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ecore_iov_vf_mbx_start_txq, @function
ecore_iov_vf_mbx_start_txq:
.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
	mov	r13, rsi
	xor	esi, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	mov	edx, 32
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 168
	.cfi_def_cfa_offset 224
	mov	r15, QWORD PTR PFVF_STATUS_NO_RESOURCE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 152[rsp], rax
	xor	eax, eax
	lea	r14, 48[rsp]
	mov	rdi, r14
	call	OSAL_MEMSET@PLT
	mov	rbx, QWORD PTR 32[r12]
	mov	rsi, r12
	mov	rdi, rbp
	mov	ecx, DWORD PTR ECORE_IOV_VALIDATE_Q_NA[rip]
	mov	rdx, QWORD PTR [rbx]
	call	ecore_iov_validate_txq@PLT
	mov	r9d, eax
	test	eax, eax
	jne	.L16
.L2:
	mov	r8, r15
	mov	ecx, r9d
	mov	rdx, r12
	mov	rsi, r13
	mov	rdi, rbp
	call	ecore_iov_vf_mbx_start_txq_resp@PLT
	mov	rax, QWORD PTR 152[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 168
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L16:
	.cfi_restore_state
	mov	edx, DWORD PTR 20[rbx]
	mov	rsi, r12
	mov	rdi, rbp
	call	ecore_iov_validate_sb@PLT
	mov	r9d, eax
	test	eax, eax
	je	.L2
	mov	edx, 1
	mov	rsi, r12
	mov	rdi, rbp
	call	ecore_iov_vf_mbx_qid@PLT
	xor	r9d, r9d
	cmp	QWORD PTR ECORE_IOV_QID_INVALID[rip], rax
	mov	rdx, rax
	je	.L2
	mov	r10, QWORD PTR [rbx]
	mov	r11, rax
	sal	r11, 4
	sal	r10, 4
	add	r10, QWORD PTR 24[r12]
	mov	rax, QWORD PTR [r10]
	cmp	QWORD PTR 8[rax+r11], 0
	jne	.L2
	mov	rdi, r12
	mov	DWORD PTR 20[rsp], r9d
	mov	QWORD PTR 24[rsp], rdx
	mov	QWORD PTR 40[rsp], r11
	mov	QWORD PTR [rsp], r10
	call	ecore_vf_calculate_legacy@PLT
	mov	r10, QWORD PTR [rsp]
	lea	rdi, 112[rsp]
	mov	esi, 32
	mov	QWORD PTR 8[rsp], rax
	mov	eax, DWORD PTR 8[r10]
	mov	QWORD PTR 32[rsp], r10
	mov	QWORD PTR [rsp], rdi
	mov	DWORD PTR 76[rsp], eax
	mov	eax, DWORD PTR 16[r12]
	mov	DWORD PTR 72[rsp], eax
	mov	rax, QWORD PTR 8[r12]
	add	rax, 16
	mov	QWORD PTR 64[rsp], rax
	call	OSAL_MEM_ZERO@PLT
	mov	eax, DWORD PTR 20[rbx]
	mov	rdi, QWORD PTR [rsp]
	lea	r8, 80[rsp]
	mov	esi, 32
	mov	QWORD PTR [rsp], r8
	mov	DWORD PTR 140[rsp], eax
	mov	eax, DWORD PTR 16[rbx]
	mov	QWORD PTR 56[rsp], rdi
	mov	rdi, r8
	mov	DWORD PTR 48[rsp], eax
	call	OSAL_MEM_ZERO@PLT
	mov	eax, DWORD PTR [r12]
	mov	r8, QWORD PTR [rsp]
	mov	rdi, rbp
	mov	rcx, QWORD PTR 8[rsp]
	mov	rdx, QWORD PTR 24[rsp]
	mov	DWORD PTR 104[rsp], eax
	mov	esi, DWORD PTR 4[r12]
	mov	rax, QWORD PTR [rbx]
	mov	QWORD PTR 88[rsp], rcx
	xor	ecx, ecx
	mov	QWORD PTR 96[rsp], rdx
	mov	rdx, r14
	mov	QWORD PTR 80[rsp], rax
	call	ecore_eth_queue_to_cid@PLT
	cmp	QWORD PTR OSAL_NULL[rip], rax
	mov	r9d, DWORD PTR 20[rsp]
	mov	r14, rax
	je	.L2
	mov	esi, DWORD PTR [r12]
	mov	rdi, rbp
	mov	DWORD PTR [rsp], r9d
	call	ecore_get_cm_pq_idx_vf@PLT
	mov	ecx, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR 12[rbx]
	mov	rsi, r14
	mov	r8d, eax
	mov	rdi, rbp
	call	ecore_eth_txq_start_ramrod@PLT
	cmp	eax, DWORD PTR ECORE_SUCCESS[rip]
	mov	r10, QWORD PTR 32[rsp]
	mov	r11, QWORD PTR 40[rsp]
	je	.L3
	mov	rsi, r14
	mov	rdi, rbp
	mov	r15, QWORD PTR PFVF_STATUS_FAILURE[rip]
	call	ecore_eth_queue_cid_release@PLT
	mov	r9d, DWORD PTR [rsp]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	add	r11, QWORD PTR [r10]
	mov	r15, QWORD PTR PFVF_STATUS_SUCCESS[rip]
	mov	QWORD PTR 8[r11], r14
	mov	r9d, DWORD PTR [r14]
	mov	DWORD PTR [r11], 1
	jmp	.L2
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ecore_iov_vf_mbx_start_txq, .-ecore_iov_vf_mbx_start_txq
	.comm	PFVF_STATUS_SUCCESS,8,8
	.comm	PFVF_STATUS_NO_RESOURCE,8,8
	.comm	PFVF_STATUS_FAILURE,8,8
	.comm	OSAL_NULL,8,8
	.comm	ECORE_SUCCESS,4,4
	.comm	ECORE_IOV_VALIDATE_Q_NA,4,4
	.comm	ECORE_IOV_QID_INVALID,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_ecore_sriov.c_ecore_iov_vf_mbx_start_txq.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ecore_iov_vf_mbx_start_txq, %function
ecore_iov_vf_mbx_start_txq:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r2
	mov	r5, r0
	sub	sp, sp, #92
	ldr	r3, .L19
	ldr	ip, .L19+4
	mov	r2, #20
	mov	r6, r1
	add	r0, sp, #24
	mov	r1, #0
	ldr	ip, [ip]
	str	ip, [sp, #84]
	mov	ip,#0
	ldr	r8, [r3]
	bl	OSAL_MEMSET
	ldr	r7, [r4, #20]
	ldr	r3, .L19+8
	mov	r1, r4
	ldr	r3, [r3]
	mov	r0, r5
	ldr	r2, [r7]
	bl	ecore_iov_validate_txq
	subs	r3, r0, #0
	bne	.L16
.L2:
	mov	r2, r4
	mov	r1, r6
	mov	r0, r5
	str	r8, [sp]
	bl	ecore_iov_vf_mbx_start_txq_resp
	ldr	r3, .L19+4
	ldr	r2, [r3]
	ldr	r3, [sp, #84]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #92
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	mov	r1, r4
	mov	r0, r5
	ldr	r2, [r7, #16]
	bl	ecore_iov_validate_sb
	subs	r3, r0, #0
	beq	.L2
	mov	r2, #1
	mov	r1, r4
	mov	r0, r5
	bl	ecore_iov_vf_mbx_qid
	ldr	r3, .L19+12
	mov	r9, r0
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L6
	ldr	r10, [r7]
	ldr	fp, [r4, #16]
	ldr	r3, [fp, r10, lsl #3]
	add	r2, fp, r10, lsl #3
	add	r3, r3, r0, lsl #3
	ldr	r3, [r3, #4]
	cmp	r3, #0
	str	r3, [sp, #12]
	beq	.L18
.L6:
	mov	r3, #0
	b	.L2
.L18:
	mov	r0, r4
	str	r2, [sp, #20]
	bl	ecore_vf_calculate_legacy
	ldr	r2, [sp, #20]
	ldr	r3, [r4, #8]
	ldr	r1, [r2, #4]
	ldr	ip, [r4, #12]
	add	r2, sp, #64
	add	r3, r3, #16
	str	r0, [sp, #16]
	str	r1, [sp, #40]
	mov	r0, r2
	mov	r1, #20
	str	r3, [sp, #32]
	str	ip, [sp, #36]
	bl	OSAL_MEM_ZERO
	ldr	r1, [r7, #16]
	ldr	ip, [r7, #12]
	add	r3, sp, #44
	add	r2, sp, #64
	mov	r0, r3
	str	r1, [sp, #80]
	mov	r1, #20
	str	r2, [sp, #28]
	str	ip, [sp, #24]
	bl	OSAL_MEM_ZERO
	ldr	r0, [sp, #16]
	add	r3, sp, #44
	ldr	lr, [r7]
	ldr	ip, [r4]
	str	r3, [sp]
	str	r0, [sp, #48]
	ldr	r3, [sp, #12]
	mov	r0, r5
	ldr	r1, [r4, #4]
	add	r2, sp, #24
	str	lr, [sp, #44]
	str	r9, [sp, #52]
	str	ip, [sp, #56]
	bl	ecore_eth_queue_to_cid
	ldr	r3, .L19+16
	str	r0, [sp, #16]
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L7
	ldr	r1, [r4]
	mov	r0, r5
	bl	ecore_get_cm_pq_idx_vf
	ldr	r3, [r7, #4]
	ldr	r2, [r7, #8]
	ldr	r7, [sp, #16]
	str	r0, [sp]
	mov	r1, r7
	mov	r0, r5
	bl	ecore_eth_txq_start_ramrod
	ldr	r3, .L19+20
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L3
	ldr	r3, .L19+24
	mov	r1, r7
	mov	r0, r5
	ldr	r8, [r3]
	bl	ecore_eth_queue_cid_release
	ldr	r3, [sp, #12]
	b	.L2
.L7:
	ldr	r3, [sp, #12]
	b	.L2
.L3:
	mov	r1, #1
	ldr	r2, [fp, r10, lsl #3]
	ldr	ip, [sp, #16]
	ldr	r0, .L19+28
	lsl	r3, r9, #3
	add	r3, r2, r3
	str	ip, [r3, #4]
	ldr	r8, [r0]
	ldr	r3, [ip]
	str	r1, [r2, r9, lsl #3]
	b	.L2
.L17:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	PFVF_STATUS_NO_RESOURCE
	.word	.LC0
	.word	ECORE_IOV_VALIDATE_Q_NA
	.word	ECORE_IOV_QID_INVALID
	.word	OSAL_NULL
	.word	ECORE_SUCCESS
	.word	PFVF_STATUS_FAILURE
	.word	PFVF_STATUS_SUCCESS
	.size	ecore_iov_vf_mbx_start_txq, .-ecore_iov_vf_mbx_start_txq
	.comm	PFVF_STATUS_SUCCESS,4,4
	.comm	PFVF_STATUS_NO_RESOURCE,4,4
	.comm	PFVF_STATUS_FAILURE,4,4
	.comm	OSAL_NULL,4,4
	.comm	ECORE_SUCCESS,4,4
	.comm	ECORE_IOV_VALIDATE_Q_NA,4,4
	.comm	ECORE_IOV_QID_INVALID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
