	.file	"extr_atl1e_main.c_atl1e_sw_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Unable to allocate memory for queues\n"
	.text
	.p2align 4
	.type	atl1e_sw_init, @function
atl1e_sw_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rbp, 56[rdi]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	lea	rdx, 160[rbx]
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR SPEED_0[rip]
	mov	rdi, QWORD PTR 48[rdi]
	mov	QWORD PTR 40[rbx], 0
	mov	esi, DWORD PTR PCI_COMMAND[rip]
	mov	DWORD PTR 32[rbx], eax
	mov	eax, DWORD PTR FULL_DUPLEX[rip]
	mov	DWORD PTR [rbx], 1
	mov	DWORD PTR 28[rbx], eax
	mov	eax, DWORD PTR 16[rdi]
	mov	DWORD PTR 176[rbx], eax
	mov	eax, DWORD PTR 12[rdi]
	mov	DWORD PTR 172[rbx], eax
	mov	eax, DWORD PTR 8[rdi]
	mov	DWORD PTR 168[rbx], eax
	mov	eax, DWORD PTR 4[rdi]
	mov	DWORD PTR 164[rbx], eax
	mov	eax, DWORD PTR [rdi]
	mov	DWORD PTR 56[rbx], eax
	call	pci_read_config_word@PLT
	mov	esi, DWORD PTR REG_PHY_STATUS[rip]
	mov	rdi, rbp
	call	AT_READ_REG@PLT
	cmp	DWORD PTR 56[rbx], 239
	jle	.L2
	mov	eax, DWORD PTR athr_l2e_revB[rip]
	mov	DWORD PTR 156[rbx], eax
.L3:
	mov	esi, DWORD PTR REG_PHY_STATUS[rip]
	mov	rdi, rbp
	call	AT_READ_REG@PLT
	test	DWORD PTR PHY_STATUS_EMI_CA[rip], eax
	mov	edx, DWORD PTR 24[rbx]
	mov	rdi, rbx
	setne	al
	movzx	eax, al
	mov	DWORD PTR 60[rbx], eax
	movabs	rax, 30064771072
	mov	QWORD PTR 64[rbx], rax
	mov	rax, QWORD PTR 16[rbx]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 100[rbx], 4
	mov	QWORD PTR 144[rbx], 0
	mov	DWORD PTR 72[rbx], eax
	add	eax, DWORD PTR ETH_HLEN[rip]
	add	eax, DWORD PTR VLAN_HLEN[rip]
	add	eax, DWORD PTR ETH_FCS_LEN[rip]
	mov	QWORD PTR 136[rbx], 0
	add	eax, 7
	sar	eax, 3
	mov	DWORD PTR 76[rbx], eax
	mov	eax, DWORD PTR atl1e_rrs_disable[rip]
	mov	DWORD PTR 152[rbx], eax
	movabs	rax, 858993459250000
	mov	QWORD PTR 80[rbx], rax
	movabs	rax, 4294967301
	mov	QWORD PTR 88[rbx], rax
	mov	eax, edx
	shr	eax, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR 96[rbx], eax
	mov	eax, DWORD PTR 108[rbx]
	lea	edx, 0[0+rax*4]
	movsx	rax, edx
	sar	edx, 31
	imul	rax, rax, 1431655766
	shr	rax, 32
	sub	eax, edx
	mov	DWORD PTR 104[rbx], eax
	mov	rax, QWORD PTR atl1e_dma_req_1024[rip]
	mov	QWORD PTR 128[rbx], rax
	mov	QWORD PTR 120[rbx], rax
	movabs	rax, 17179869199
	mov	QWORD PTR 112[rbx], rax
	call	atl1e_alloc_queues@PLT
	test	rax, rax
	jne	.L9
	lea	rdi, 12[rbx]
	mov	esi, 1
	call	atomic_set@PLT
	lea	rdi, 8[rbx]
	call	spin_lock_init@PLT
	mov	edi, DWORD PTR __AT_DOWN[rip]
	lea	rsi, 4[rbx]
	call	set_bit@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	test	DWORD PTR PHY_STATUS_100M[rip], eax
	je	.L4
	mov	eax, DWORD PTR athr_l1e[rip]
	mov	DWORD PTR 156[rbx], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR athr_l2e_revA[rip]
	mov	DWORD PTR 156[rbx], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, QWORD PTR 16[rbx]
	lea	rsi, .LC0[rip]
	call	netdev_err@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	atl1e_sw_init, .-atl1e_sw_init
	.comm	atl1e_rrs_disable,4,4
	.comm	atl1e_dma_req_1024,8,8
	.comm	athr_l2e_revB,4,4
	.comm	athr_l2e_revA,4,4
	.comm	athr_l1e,4,4
	.comm	__AT_DOWN,4,4
	.comm	VLAN_HLEN,4,4
	.comm	SPEED_0,4,4
	.comm	REG_PHY_STATUS,4,4
	.comm	PHY_STATUS_EMI_CA,4,4
	.comm	PHY_STATUS_100M,4,4
	.comm	PCI_COMMAND,4,4
	.comm	FULL_DUPLEX,4,4
	.comm	ETH_HLEN,4,4
	.comm	ETH_FCS_LEN,4,4
	.comm	ENOMEM,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_atl1e_main.c_atl1e_sw_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unable to allocate memory for queues\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	atl1e_sw_init, %function
atl1e_sw_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r2, #0
	mov	r4, r0
	mov	r1, #1
	ldr	r3, .L10
	ldr	r0, [r0, #36]
	ldr	r3, [r3]
	ldr	ip, .L10+4
	str	r2, [r4, #32]
	ldr	ip, [ip]
	ldr	r2, [r0, #16]
	str	r3, [r4, #28]
	ldr	r3, [r0, #12]
	str	ip, [r4, #24]
	ldr	ip, [r0, #8]
	str	r1, [r4]
	ldr	r1, [r0, #4]
	str	r2, [r4, #144]
	ldr	r2, [r0]
	str	r3, [r4, #140]
	ldr	r3, .L10+8
	ldr	r6, .L10+12
	str	ip, [r4, #136]
	str	r1, [r4, #132]
	str	r2, [r4, #40]
	ldr	r1, [r3]
	add	r2, r4, #128
	add	r5, r4, #40
	bl	pci_read_config_word
	mov	r0, r5
	ldr	r1, [r6]
	bl	AT_READ_REG
	ldr	r3, [r4, #40]
	cmp	r3, #239
	ble	.L2
	ldr	r3, .L10+16
	ldr	r3, [r3]
	str	r3, [r4, #124]
.L3:
	ldr	r1, [r6]
	mov	r0, r5
	bl	AT_READ_REG
	mov	lr, #0
	ldr	r3, .L10+20
	mov	ip, #7
	ldr	r3, [r3]
	mov	r5, #1
	tst	r0, r3
	moveq	r7, lr
	movne	r7, #1
	mov	r2, #4
	mov	r0, #5
	mov	r1, #15
	ldr	r3, [r4, #16]
	ldr	r6, .L10+24
	ldr	r3, [r3]
	ldr	r6, [r6]
	str	r3, [r4, #56]
	add	r3, r3, r6
	ldr	r6, .L10+28
	str	r7, [r4, #44]
	ldr	r6, [r6]
	str	lr, [r4, #48]
	add	r3, r3, r6
	ldr	r6, .L10+32
	str	lr, [r4, #116]
	ldr	r7, [r6]
	ldr	r6, [r4, #92]
	add	r3, r3, r7
	add	r3, r3, ip
	asr	r3, r3, #3
	str	r3, [r4, #60]
	ldr	r3, [r4, #20]
	lsl	r7, r6, #2
	add	r3, r3, r3, lsr #31
	asr	r3, r3, r5
	ldr	r6, .L10+36
	str	r3, [r4, #80]
	ldr	r3, .L10+40
	smull	r8, r6, r7, r6
	ldr	r3, [r3]
	str	lr, [r4, #112]
	ldr	lr, .L10+44
	str	ip, [r4, #52]
	ldr	lr, [lr]
	ldr	ip, .L10+48
	str	r3, [r4, #108]
	str	r3, [r4, #104]
	ldr	r3, .L10+52
	sub	r6, r6, r7, asr #31
	str	r6, [r4, #88]
	str	r0, [r4, #72]
	str	lr, [r4, #120]
	mov	r0, r4
	str	r5, [r4, #76]
	str	r2, [r4, #84]
	str	r2, [r4, #100]
	str	r1, [r4, #96]
	str	ip, [r4, #64]
	str	r3, [r4, #68]
	bl	atl1e_alloc_queues
	subs	r6, r0, #0
	bne	.L9
	mov	r1, r5
	add	r0, r4, #12
	bl	atomic_set
	add	r0, r4, #8
	bl	spin_lock_init
	ldr	r3, .L10+56
	add	r1, r4, #4
	ldr	r0, [r3]
	bl	set_bit
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L10+60
	ldr	r3, [r3]
	tst	r0, r3
	ldrne	r3, .L10+64
	ldreq	r3, .L10+68
	ldr	r3, [r3]
	str	r3, [r4, #124]
	b	.L3
.L9:
	ldr	r0, [r4, #16]
	ldr	r1, .L10+72
	bl	netdev_err
	ldr	r3, .L10+76
	ldr	r0, [r3]
	rsb	r6, r0, #0
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	SPEED_0
	.word	FULL_DUPLEX
	.word	PCI_COMMAND
	.word	REG_PHY_STATUS
	.word	athr_l2e_revB
	.word	PHY_STATUS_EMI_CA
	.word	ETH_HLEN
	.word	VLAN_HLEN
	.word	ETH_FCS_LEN
	.word	1431655766
	.word	atl1e_dma_req_1024
	.word	atl1e_rrs_disable
	.word	50000
	.word	200000
	.word	__AT_DOWN
	.word	PHY_STATUS_100M
	.word	athr_l1e
	.word	athr_l2e_revA
	.word	.LC0
	.word	ENOMEM
	.size	atl1e_sw_init, .-atl1e_sw_init
	.comm	atl1e_rrs_disable,4,4
	.comm	atl1e_dma_req_1024,4,4
	.comm	athr_l2e_revB,4,4
	.comm	athr_l2e_revA,4,4
	.comm	athr_l1e,4,4
	.comm	__AT_DOWN,4,4
	.comm	VLAN_HLEN,4,4
	.comm	SPEED_0,4,4
	.comm	REG_PHY_STATUS,4,4
	.comm	PHY_STATUS_EMI_CA,4,4
	.comm	PHY_STATUS_100M,4,4
	.comm	PCI_COMMAND,4,4
	.comm	FULL_DUPLEX,4,4
	.comm	ETH_HLEN,4,4
	.comm	ETH_FCS_LEN,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
