	.file	"extr_addi_amcc_s5933.h_v_pci_card_list_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	v_pci_card_list_init
	.type	v_pci_card_list_init, @function
v_pci_card_list_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	edx, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	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, 8
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR PCI_ANY_ID[rip]
	mov	QWORD PTR amcc_devices[rip], 0
	mov	esi, edi
	call	pci_get_device@PLT
	test	rax, rax
	je	.L2
	mov	r12, rax
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L8:
	xor	ebx, ebx
.L7:
	mov	rax, QWORD PTR i_ADDIDATADeviceID[rip]
	movzx	eax, WORD PTR [rax+rbx]
	cmp	WORD PTR [r12], ax
	je	.L21
.L3:
	add	rbx, 2
	cmp	rbx, 4
	jne	.L7
	mov	edi, DWORD PTR PCI_ANY_ID[rip]
	mov	rdx, r12
	mov	esi, edi
	call	pci_get_device@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L8
.L2:
	test	r14b, r14b
	jne	.L22
	add	rsp, 8
	.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
.L21:
	.cfi_restore_state
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 48
	call	kmalloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L3
	mov	edx, 48
	xor	esi, esi
	mov	rdi, rax
	call	memset@PLT
	mov	QWORD PTR 40[r13], r12
	test	rbp, rbp
	je	.L4
	mov	QWORD PTR 32[rbp], r13
.L5:
	movzx	eax, WORD PTR [r12]
	mov	edi, DWORD PTR 8[r12]
	xor	ebp, ebp
	mov	WORD PTR 0[r13], ax
	mov	eax, DWORD PTR 24[r12]
	mov	DWORD PTR 28[r13], eax
	mov	rax, QWORD PTR 16[r12]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 24[r13], eax
	call	PCI_SLOT@PLT
	mov	edi, DWORD PTR 8[r12]
	mov	DWORD PTR 20[r13], eax
	call	PCI_FUNC@PLT
	mov	DWORD PTR 16[r13], eax
.L6:
	mov	rax, QWORD PTR 8[r13]
	mov	esi, ebp
	mov	rdi, r12
	lea	r15, [rax+rbp*4]
	add	rbp, 1
	call	pci_resource_start@PLT
	mov	DWORD PTR [r15], eax
	cmp	rbp, 5
	jne	.L6
	mov	eax, DWORD PTR 4[r12]
	mov	rbp, r13
	mov	DWORD PTR 4[r13], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	QWORD PTR amcc_devices[rip], r13
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L22:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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	v_pci_card_list_display@PLT
	.cfi_endproc
.LFE0:
	.size	v_pci_card_list_init, .-v_pci_card_list_init
	.comm	i_ADDIDATADeviceID,8,8
	.comm	amcc_devices,8,8
	.comm	PCI_ANY_ID,4,4
	.comm	GFP_KERNEL,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_addi_amcc_s5933.h_v_pci_card_list_init.c"
	.text
	.align	2
	.global	v_pci_card_list_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	v_pci_card_list_init, %function
v_pci_card_list_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, #0
	mov	r10, r1
	ldr	r7, .L22
	ldr	r3, .L22+4
	ldr	r1, [r7]
	sub	sp, sp, #12
	mov	r2, r8
	mov	r0, r1
	str	r10, [sp, #4]
	str	r8, [r3]
	bl	pci_get_device
	subs	r4, r0, #0
	beq	.L2
	ldr	r6, .L22+8
	ldr	r9, .L22+12
	b	.L8
.L3:
	add	r5, r5, #2
	cmp	r5, #4
	bne	.L7
	ldr	r1, [r7]
	mov	r2, r4
	mov	r0, r1
	bl	pci_get_device
	subs	r4, r0, #0
	beq	.L2
.L8:
	mov	r5, #0
.L7:
	ldr	r3, [r6]
	ldrh	r2, [r4]
	ldrh	r3, [r3, r5]
	cmp	r2, r3
	bne	.L3
	mov	r0, #36
	ldr	r1, [r9]
	bl	kmalloc
	subs	r10, r0, #0
	beq	.L3
	mov	r2, #36
	mov	r1, #0
	bl	memset
	ldr	r2, [r4, #12]
	cmp	r8, #0
	ldr	r1, [r2]
	ldrh	r0, [r4]
	ldr	r2, [r4, #16]
	ldreq	r3, .L22+4
	str	r4, [r10, #32]
	streq	r10, [r3]
	strne	r10, [r8, #28]
	strh	r0, [r10]	@ movhi
	str	r1, [r10, #20]
	str	r2, [r10, #24]
	ldr	r0, [r4, #8]
	bl	PCI_SLOT
	mov	r2, r0
	ldr	r0, [r4, #8]
	str	r2, [r10, #16]
	bl	PCI_FUNC
	mov	r8, #0
	str	r0, [r10, #12]
.L6:
	mov	r1, r8
	mov	r0, r4
	ldr	fp, [r10, #8]
	bl	pci_resource_start
	str	r0, [fp, r8, lsl #2]
	add	r8, r8, #1
	cmp	r8, #5
	bne	.L6
	ldr	r2, [r4, #4]
	mov	r8, r10
	str	r2, [r10, #4]
	b	.L3
.L2:
	ldr	r3, [sp, #4]
	cmp	r3, #0
	bne	.L21
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	v_pci_card_list_display
.L23:
	.align	2
.L22:
	.word	PCI_ANY_ID
	.word	amcc_devices
	.word	i_ADDIDATADeviceID
	.word	GFP_KERNEL
	.size	v_pci_card_list_init, .-v_pci_card_list_init
	.comm	i_ADDIDATADeviceID,4,4
	.comm	amcc_devices,4,4
	.comm	PCI_ANY_ID,4,4
	.comm	GFP_KERNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
