	.file	"extr_ael1002.c_ael2005_setup_twinax_edc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ael2005_setup_twinax_edc, @function
ael2005_setup_twinax_edc:
.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	ebx, esi
	lea	rsi, regs.1946[rip]
	call	set_phy_regs@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	cmp	DWORD PTR phy_modtype_twinax_long[rip], ebx
	je	.L3
.L6:
	mov	edi, 50
	call	msleep@PLT
	mov	rax, QWORD PTR edc_twinax[rip]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L22
	movsx	rdx, DWORD PTR EDC_TWX_AEL2005_SIZE[rip]
	shr	rdx, 2
	je	.L8
.L7:
	xor	ebx, ebx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L23:
	test	eax, eax
	jne	.L14
.L11:
	mov	rax, QWORD PTR 8[rbp]
	lea	rdx, 1[rbx]
	mov	esi, 128
	mov	rdi, rbp
	add	rbx, 2
	mov	ecx, DWORD PTR [rax+rdx*4]
	mov	edx, DWORD PTR -4[rax+rdx*4]
	call	t3_mdio_write@PLT
	movsx	rdx, DWORD PTR EDC_TWX_AEL2005_SIZE[rip]
	shr	rdx, 2
	cmp	rdx, rbx
	ja	.L23
	test	eax, eax
	jne	.L14
.L20:
	mov	rax, QWORD PTR edc_twinax[rip]
.L8:
	mov	QWORD PTR 0[rbp], rax
.L1:
	mov	eax, r12d
	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
.L22:
	.cfi_restore_state
	mov	edx, DWORD PTR EDC_TWX_AEL2005_SIZE[rip]
	mov	esi, DWORD PTR EDC_TWX_AEL2005[rip]
	mov	rdi, rbp
	call	t3_get_edc_fw@PLT
	test	eax, eax
	je	.L24
.L14:
	mov	r12d, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	lea	rsi, preemphasis.1947[rip]
	mov	rdi, rbp
	call	set_phy_regs@PLT
	test	eax, eax
	je	.L6
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L24:
	movsx	rax, DWORD PTR EDC_TWX_AEL2005_SIZE[rip]
	shr	rax, 2
	jne	.L7
	jmp	.L20
	.cfi_endproc
.LFE0:
	.size	ael2005_setup_twinax_edc, .-ael2005_setup_twinax_edc
	.section	.rodata
	.align 32
	.type	preemphasis.1947, @object
	.size	preemphasis.1947, 48
preemphasis.1947:
	.long	128
	.long	49172
	.long	65535
	.long	65046
	.long	128
	.long	49173
	.long	65535
	.long	40960
	.long	0
	.long	0
	.long	0
	.long	0
	.align 32
	.type	regs.1946, @object
	.size	regs.1946, 32
regs.1946:
	.long	128
	.long	49226
	.long	65535
	.long	23040
	.long	0
	.long	0
	.long	0
	.long	0
	.comm	phy_modtype_twinax_long,4,4
	.comm	edc_twinax,8,8
	.comm	EDC_TWX_AEL2005_SIZE,4,4
	.comm	EDC_TWX_AEL2005,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_ael1002.c_ael2005_setup_twinax_edc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ael2005_setup_twinax_edc, %function
ael2005_setup_twinax_edc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	ldr	r1, .L25
	mov	r5, r0
	bl	set_phy_regs
	subs	r7, r0, #0
	bne	.L1
	ldr	r3, .L25+4
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L3
.L6:
	ldr	r9, .L25+8
	mov	r0, #50
	bl	msleep
	ldr	r3, [r9]
	ldr	r2, [r5]
	cmp	r2, r3
	bne	.L22
	ldr	r8, .L25+12
	ldr	r2, [r8]
	lsrs	r2, r2, #2
	beq	.L8
.L7:
	mov	r6, #0
	mov	r4, r6
	b	.L11
.L23:
	cmp	r0, #0
	add	r4, r4, #8
	bne	.L14
.L11:
	ldr	r2, [r5, #4]
	mov	r1, #128
	add	r3, r2, r4
	ldr	r3, [r3, #4]
	mov	r0, r5
	ldr	r2, [r2, r4]
	bl	t3_mdio_write
	ldr	r3, [r8]
	add	r6, r6, #2
	cmp	r6, r3, lsr #2
	bcc	.L23
	cmp	r0, #0
	bne	.L14
.L20:
	ldr	r3, [r9]
.L8:
	str	r3, [r5]
.L1:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L22:
	ldr	r3, .L25+16
	ldr	r8, .L25+12
	mov	r0, r5
	ldr	r2, [r8]
	ldr	r1, [r3]
	bl	t3_get_edc_fw
	cmp	r0, #0
	beq	.L24
.L14:
	mov	r7, r0
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	mov	r0, r5
	ldr	r1, .L25+20
	bl	set_phy_regs
	cmp	r0, #0
	beq	.L6
	b	.L14
.L24:
	ldr	r3, [r8]
	lsrs	r3, r3, #2
	bne	.L7
	b	.L20
.L26:
	.align	2
.L25:
	.word	.LANCHOR0
	.word	phy_modtype_twinax_long
	.word	edc_twinax
	.word	EDC_TWX_AEL2005_SIZE
	.word	EDC_TWX_AEL2005
	.word	.LANCHOR0+32
	.size	ael2005_setup_twinax_edc, .-ael2005_setup_twinax_edc
	.comm	phy_modtype_twinax_long,4,4
	.comm	edc_twinax,4,4
	.comm	EDC_TWX_AEL2005_SIZE,4,4
	.comm	EDC_TWX_AEL2005,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	regs.4230, %object
	.size	regs.4230, 32
regs.4230:
	.word	128
	.word	49226
	.word	65535
	.word	23040
	.word	0
	.word	0
	.word	0
	.word	0
	.type	preemphasis.4231, %object
	.size	preemphasis.4231, 48
preemphasis.4231:
	.word	128
	.word	49172
	.word	65535
	.word	65046
	.word	128
	.word	49173
	.word	65535
	.word	40960
	.word	0
	.word	0
	.word	0
	.word	0
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
