	.file	"extr_ecore_sriov.c_ecore_iov_hw_info.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"No PCIe IOV support\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Can't support IOV due to lack of memory\n"
	.align 8
.LC2:
	.string	"IOV capabilities, but no VFs are published\n"
	.section	.rodata.str1.1
.LC3:
	.string	"First VF in hwfn 0x%08x\n"
	.text
	.p2align 4
	.globl	ecore_iov_hw_info
	.type	ecore_iov_hw_info, @function
ecore_iov_hw_info:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, QWORD PTR 8[rdi]
	mov	rdi, rbx
	call	IS_VF@PLT
	test	rax, rax
	je	.L2
.L11:
	mov	eax, DWORD PTR ECORE_SUCCESS[rip]
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR PCI_EXT_CAP_ID_SRIOV[rip]
	call	OSAL_PCI_FIND_EXT_CAPABILITY@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L13
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edx, 24
	mov	rdi, rbx
	call	OSAL_ZALLOC@PLT
	mov	QWORD PTR [rbx], rax
	test	rax, rax
	je	.L14
	mov	DWORD PTR [rax], r12d
	mov	rdi, rbx
	call	ecore_iov_pci_cfg_info@PLT
	test	eax, eax
	jne	.L1
	mov	rdx, QWORD PTR [rbx]
	mov	ecx, DWORD PTR 16[rdx]
	test	ecx, ecx
	je	.L15
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR 0[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, DWORD PTR 4[rax]
	mov	eax, 256
	sub	eax, edi
	lea	ecx, [rsi+rdi]
	cmp	esi, eax
	jl	.L16
	sub	ecx, 256
	movsx	rcx, ecx
	mov	QWORD PTR 8[rdx], rcx
.L9:
	mov	esi, DWORD PTR ECORE_MSG_IOV[rip]
	lea	rdx, .LC3[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	DP_VERBOSE@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L13:
	mov	esi, DWORD PTR ECORE_MSG_IOV[rip]
	mov	rdi, rbp
	lea	rdx, .LC0[rip]
	xor	eax, eax
	call	DP_VERBOSE@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR ECORE_SUCCESS[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	lea	rdx, .LC1[rip]
	xor	esi, esi
	mov	rdi, rbp
	call	DP_NOTICE@PLT
	mov	eax, DWORD PTR ECORE_NOMEM[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	sub	ecx, 16
	mov	rdi, rbp
	movsx	rcx, ecx
	mov	QWORD PTR 8[rdx], rcx
	call	ECORE_PATH_ID@PLT
	test	rax, rax
	mov	rax, QWORD PTR [rbx]
	mov	rcx, QWORD PTR 8[rax]
	je	.L9
	sub	rcx, QWORD PTR MAX_NUM_VFS_BB[rip]
	mov	QWORD PTR 8[rax], rcx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L15:
	mov	esi, DWORD PTR ECORE_MSG_IOV[rip]
	lea	rdx, .LC2[rip]
	mov	rdi, rbp
	call	DP_VERBOSE@PLT
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, rbx
	call	OSAL_FREE@PLT
	mov	rax, QWORD PTR OSAL_NULL[rip]
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR ECORE_SUCCESS[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ecore_iov_hw_info, .-ecore_iov_hw_info
	.comm	PCI_EXT_CAP_ID_SRIOV,4,4
	.comm	OSAL_NULL,8,8
	.comm	MAX_NUM_VFS_BB,8,8
	.comm	GFP_KERNEL,4,4
	.comm	ECORE_SUCCESS,4,4
	.comm	ECORE_NOMEM,4,4
	.comm	ECORE_MSG_IOV,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_ecore_sriov.c_ecore_iov_hw_info.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"No PCIe IOV support\012\000"
	.align	2
.LC1:
	.ascii	"Can't support IOV due to lack of memory\012\000"
	.align	2
.LC2:
	.ascii	"IOV capabilities, but no VFs are published\012\000"
	.align	2
.LC3:
	.ascii	"First VF in hwfn 0x%08x\012\000"
	.text
	.align	2
	.global	ecore_iov_hw_info
	.syntax unified
	.arm
	.fpu softvfp
	.type	ecore_iov_hw_info, %function
ecore_iov_hw_info:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r0, #4]
	mov	r4, r0
	mov	r0, r5
	bl	IS_VF
	cmp	r0, #0
	beq	.L2
.L11:
	ldr	r3, .L17
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L17+4
	ldr	r0, [r4, #4]
	ldr	r1, [r3]
	bl	OSAL_PCI_FIND_EXT_CAPABILITY
	subs	r6, r0, #0
	beq	.L13
	ldr	r3, .L17+8
	mov	r2, #16
	mov	r0, r5
	ldr	r1, [r3]
	bl	OSAL_ZALLOC
	cmp	r0, #0
	str	r0, [r5]
	beq	.L14
	str	r6, [r0]
	mov	r0, r5
	bl	ecore_iov_pci_cfg_info
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	ldr	r2, [r5]
	ldr	r3, [r2, #12]
	cmp	r3, #0
	beq	.L15
	ldm	r4, {r1, r3}
	ldr	r3, [r3]
	rsb	r0, r1, #256
	ldr	r3, [r3, #4]
	cmp	r3, r0
	add	r3, r3, r1
	subge	r3, r3, #256
	strge	r3, [r2, #8]
	blt	.L16
.L9:
	ldr	r2, .L17+12
	mov	r0, r4
	ldr	r1, [r2]
	ldr	r2, .L17+16
	bl	DP_VERBOSE
	b	.L11
.L13:
	ldr	r3, .L17+12
	mov	r0, r4
	ldr	r1, [r3]
	ldr	r2, .L17+20
	bl	DP_VERBOSE
	ldr	r3, .L17
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L14:
	mov	r1, r0
	ldr	r2, .L17+24
	mov	r0, r4
	bl	DP_NOTICE
	ldr	r3, .L17+28
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L16:
	sub	r3, r3, #16
	str	r3, [r2, #8]
	mov	r0, r4
	bl	ECORE_PATH_ID
	cmp	r0, #0
	ldrne	r2, [r5]
	ldrne	r1, .L17+32
	ldrne	r3, [r2, #8]
	ldrne	r1, [r1]
	ldreq	r3, [r5]
	subne	r3, r3, r1
	ldreq	r3, [r3, #8]
	strne	r3, [r2, #8]
	b	.L9
.L15:
	ldr	r3, .L17+12
	ldr	r2, .L17+36
	ldr	r1, [r3]
	mov	r0, r4
	bl	DP_VERBOSE
	mov	r0, r5
	ldr	r1, [r5]
	bl	OSAL_FREE
	ldr	r3, .L17+40
	ldr	r2, .L17
	ldr	r3, [r3]
	ldr	r0, [r2]
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L18:
	.align	2
.L17:
	.word	ECORE_SUCCESS
	.word	PCI_EXT_CAP_ID_SRIOV
	.word	GFP_KERNEL
	.word	ECORE_MSG_IOV
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	ECORE_NOMEM
	.word	MAX_NUM_VFS_BB
	.word	.LC2
	.word	OSAL_NULL
	.size	ecore_iov_hw_info, .-ecore_iov_hw_info
	.comm	PCI_EXT_CAP_ID_SRIOV,4,4
	.comm	OSAL_NULL,4,4
	.comm	MAX_NUM_VFS_BB,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ECORE_SUCCESS,4,4
	.comm	ECORE_NOMEM,4,4
	.comm	ECORE_MSG_IOV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
