	.file	"extr_qed_sriov.c_qed_iov_setup_vfdb.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"qed_iov_setup_vfdb called without allocating mem first\n"
	.text
	.p2align 4
	.type	qed_iov_setup_vfdb, @function
qed_iov_setup_vfdb:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	edx, 8
	xor	esi, esi
	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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rbp, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR 16[rdi]
	mov	rdi, QWORD PTR 0[rbp]
	mov	rbx, QWORD PTR [rax]
	call	memset@PLT
	mov	rax, QWORD PTR 48[rbp]
	mov	rcx, QWORD PTR 32[rbp]
	mov	rdi, QWORD PTR 16[rbp]
	test	rax, rax
	mov	QWORD PTR [rsp], rax
	sete	dl
	test	rcx, rcx
	mov	QWORD PTR 8[rsp], rcx
	sete	al
	mov	QWORD PTR 16[rsp], rdi
	or	dl, al
	jne	.L2
	test	rdi, rdi
	je	.L2
	cmp	QWORD PTR [rbx], 0
	je	.L1
	mov	rax, QWORD PTR 40[rbp]
	xor	r14d, r14d
	xor	r15d, r15d
	mov	QWORD PTR 24[rsp], rax
	mov	rax, QWORD PTR 24[rbp]
	mov	QWORD PTR 32[rsp], rax
	mov	rax, QWORD PTR 8[rbp]
	mov	QWORD PTR 40[rsp], rax
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR [rsp]
	lea	rdx, 0[0+r15*8]
	mov	esi, DWORD PTR 8[rbx]
	mov	rdi, r12
	sub	rdx, r15
	add	rax, r14
	sal	rdx, 4
	add	rdx, QWORD PTR 0[rbp]
	add	esi, r15d
	mov	QWORD PTR 104[rdx], rax
	mov	rax, QWORD PTR 24[rsp]
	mov	r13, rdx
	mov	QWORD PTR 8[rdx], r15
	add	r15, 1
	add	rax, r14
	mov	DWORD PTR 16[rdx], esi
	mov	QWORD PTR 96[rdx], rax
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR 48[rdx], 4
	add	rax, r14
	mov	QWORD PTR 88[rdx], rax
	mov	rax, QWORD PTR 32[rsp]
	add	rax, r14
	mov	QWORD PTR 80[rdx], rax
	mov	eax, DWORD PTR VF_STOPPED[rip]
	mov	DWORD PTR [rdx], 0
	mov	DWORD PTR 72[rdx], eax
	mov	rax, QWORD PTR 40[rsp]
	add	rax, r14
	mov	QWORD PTR 64[rdx], rax
	mov	rax, QWORD PTR 16[rsp]
	add	rax, r14
	add	r14, 4
	mov	QWORD PTR 56[rdx], rax
	call	qed_vfid_to_concrete@PLT
	mov	esi, DWORD PTR 16[r13]
	mov	DWORD PTR 40[r13], eax
	movzx	eax, BYTE PTR [r12]
	sal	esi, 8
	mov	QWORD PTR 24[r13], r15
	or	eax, esi
	mov	DWORD PTR 20[r13], eax
	mov	eax, DWORD PTR QED_ETH_VF_NUM_MAC_FILTERS[rip]
	mov	DWORD PTR 36[r13], eax
	mov	eax, DWORD PTR QED_ETH_VF_NUM_VLAN_FILTERS[rip]
	mov	DWORD PTR 32[r13], eax
	cmp	r15, QWORD PTR [rbx]
	jb	.L5
.L1:
	add	rsp, 56
	.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
.L2:
	.cfi_restore_state
	add	rsp, 56
	.cfi_def_cfa_offset 56
	mov	rdi, r12
	lea	rsi, .LC0[rip]
	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
	jmp	DP_ERR@PLT
	.cfi_endproc
.LFE0:
	.size	qed_iov_setup_vfdb, .-qed_iov_setup_vfdb
	.comm	VF_STOPPED,4,4
	.comm	QED_ETH_VF_NUM_VLAN_FILTERS,4,4
	.comm	QED_ETH_VF_NUM_MAC_FILTERS,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_sriov.c_qed_iov_setup_vfdb.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"qed_iov_setup_vfdb called without allocating mem fi"
	.ascii	"rst\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qed_iov_setup_vfdb, %function
qed_iov_setup_vfdb:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	lr, [r0, #4]
	ldr	r2, [r0, #8]
	ldr	r1, [lr]
	ldr	r2, [r2]
	strb	ip, [r1]
	strb	ip, [r1, #1]
	strb	ip, [r1, #2]
	strb	ip, [r1, #3]
	ldr	r7, [lr, #16]
	ldr	r8, [lr, #24]
	clz	r5, r7
	ldr	r6, [lr, #8]
	cmp	r8, ip
	lsr	r5, r5, #5
	moveq	r5, #1
	cmp	r6, ip
	moveq	r5, #1
	sub	sp, sp, #20
	cmp	r5, ip
	str	lr, [sp, #12]
	bne	.L2
	ldr	r1, [r2]
	cmp	r1, ip
	beq	.L1
	mov	r3, r0
	ldr	r1, [sp, #12]
	ldr	fp, [r1, #20]
	ldr	r10, [r1, #12]
	ldr	r9, [r1, #4]
.L5:
	ldr	r1, [sp, #12]
	str	r2, [sp, #8]
	ldr	r0, [r1]
	ldr	r1, [r2, #4]
	ldr	r2, .L9
	add	r4, r0, r5, lsl #6
	ldr	ip, [r2]
	mov	r2, #0
	str	r8, [r4, #60]
	str	fp, [r4, #56]
	str	r7, [r4, #52]
	str	r10, [r4, #48]
	str	ip, [r4, #44]
	str	r2, [r0, r5, lsl #6]
	mov	r2, #4
	add	r1, r5, r1
	mov	r0, r3
	str	r9, [r4, #40]
	str	r6, [r4, #36]
	str	r2, [r4, #32]
	str	r5, [r4, #4]
	str	r1, [r4, #8]
	str	r3, [sp, #4]
	bl	qed_vfid_to_concrete
	ldr	r3, [sp, #4]
	ldr	ip, [r4, #8]
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, [sp, #8]
	orr	r1, r1, ip, lsl #8
	ldr	ip, [r2]
	add	r5, r5, #1
	cmp	r5, ip
	str	r0, [r4, #28]
	ldr	ip, .L9+4
	ldr	r0, .L9+8
	ldr	ip, [ip]
	ldr	r0, [r0]
	add	r8, r8, #4
	add	fp, fp, #4
	add	r7, r7, #4
	add	r10, r10, #4
	add	r9, r9, #4
	add	r6, r6, #4
	str	r1, [r4, #12]
	str	r5, [r4, #16]
	str	ip, [r4, #24]
	str	r0, [r4, #20]
	bcc	.L5
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r1, .L9+12
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	DP_ERR
.L10:
	.align	2
.L9:
	.word	VF_STOPPED
	.word	QED_ETH_VF_NUM_MAC_FILTERS
	.word	QED_ETH_VF_NUM_VLAN_FILTERS
	.word	.LC0
	.size	qed_iov_setup_vfdb, .-qed_iov_setup_vfdb
	.comm	VF_STOPPED,4,4
	.comm	QED_ETH_VF_NUM_VLAN_FILTERS,4,4
	.comm	QED_ETH_VF_NUM_MAC_FILTERS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
