	.file	"extr_r8169_main.c_rtl8168d_2_hw_phy_config.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rtl8168d_2_hw_phy_config, @function
rtl8168d_2_hw_phy_config:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rsi, QWORD PTR rtl8168d_1_phy_reg_init_0[rip]
	call	rtl_writephy_batch@PLT
	mov	esi, 1
	mov	rdi, rbp
	call	rtl8168d_efuse_read@PLT
	cmp	eax, 177
	je	.L10
	lea	rsi, phy_reg_init.1961[rip]
	mov	rdi, rbp
	call	rtl_writephy_batch@PLT
.L4:
	mov	rdi, rbp
	mov	edx, 2
	mov	esi, 31
	call	rtl_writephy@PLT
	mov	rdi, rbp
	mov	ecx, 1536
	mov	edx, 256
	mov	esi, 2
	call	rtl_w0w1_phy@PLT
	mov	ecx, 57344
	mov	rdi, rbp
	xor	edx, edx
	mov	esi, 3
	call	rtl_w0w1_phy@PLT
	mov	rdi, rbp
	mov	edx, 2
	mov	esi, 31
	call	rtl_writephy@PLT
	mov	rdi, rbp
	mov	edx, 23
	mov	esi, 15
	call	rtl_patchphy@PLT
	mov	rdi, rbp
	mov	edx, 5
	mov	esi, 31
	call	rtl_writephy@PLT
	mov	rdi, rbp
	mov	edx, 27
	mov	esi, 5
	call	rtl_writephy@PLT
	mov	esi, DWORD PTR MII_EXPANSION[rip]
	mov	rdi, rbp
	mov	edx, 45824
	call	rtl_apply_firmware_cond@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	xor	edx, edx
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	esi, 31
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	rtl_writephy@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rsi, QWORD PTR rtl8168d_1_phy_reg_init_1[rip]
	mov	rdi, rbp
	call	rtl_writephy_batch@PLT
	mov	esi, 13
	mov	rdi, rbp
	call	rtl_readphy@PLT
	mov	r12d, eax
	cmp	al, 108
	je	.L4
	mov	edx, 2
	mov	esi, 31
	mov	rdi, rbp
	xor	ebx, ebx
	call	rtl_writephy@PLT
	and	r12d, 65280
	lea	r13, set.1956[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edx, DWORD PTR 0[r13+rbx*4]
	mov	esi, 13
	mov	rdi, rbp
	add	rbx, 1
	or	edx, r12d
	call	rtl_writephy@PLT
.L5:
	mov	rdi, r13
	call	ARRAY_SIZE@PLT
	cmp	eax, ebx
	jg	.L6
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	rtl8168d_2_hw_phy_config, .-rtl8168d_2_hw_phy_config
	.section	.rodata
	.align 32
	.type	phy_reg_init.1961, @object
	.size	phy_reg_init.1961, 40
phy_reg_init.1961:
	.long	31
	.long	2
	.long	5
	.long	9794
	.long	31
	.long	5
	.long	5
	.long	33584
	.long	6
	.long	9794
	.align 32
	.type	set.1956, @object
	.size	set.1956, 32
set.1956:
	.long	101
	.long	102
	.long	103
	.long	104
	.long	105
	.long	106
	.long	107
	.long	108
	.comm	rtl8168d_1_phy_reg_init_1,8,8
	.comm	rtl8168d_1_phy_reg_init_0,8,8
	.comm	MII_EXPANSION,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_r8169_main.c_rtl8168d_2_hw_phy_config.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtl8168d_2_hw_phy_config, %function
rtl8168d_2_hw_phy_config:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r3, .L11
	ldr	r1, [r3]
	bl	rtl_writephy_batch
	mov	r0, r4
	mov	r1, #1
	bl	rtl8168d_efuse_read
	cmp	r0, #177
	beq	.L10
	mov	r0, r4
	ldr	r1, .L11+4
	bl	rtl_writephy_batch
.L4:
	mov	r2, #2
	mov	r1, #31
	mov	r0, r4
	bl	rtl_writephy
	mov	r3, #1536
	mov	r2, #256
	mov	r1, #2
	mov	r0, r4
	bl	rtl_w0w1_phy
	mov	r3, #57344
	mov	r2, #0
	mov	r1, #3
	mov	r0, r4
	bl	rtl_w0w1_phy
	mov	r2, #2
	mov	r1, #31
	mov	r0, r4
	bl	rtl_writephy
	mov	r2, #23
	mov	r1, #15
	mov	r0, r4
	bl	rtl_patchphy
	mov	r2, #5
	mov	r1, #31
	mov	r0, r4
	bl	rtl_writephy
	mov	r2, #27
	mov	r1, #5
	mov	r0, r4
	bl	rtl_writephy
	ldr	r3, .L11+8
	mov	r2, #45824
	mov	r0, r4
	ldr	r1, [r3]
	bl	rtl_apply_firmware_cond
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r2, #0
	mov	r1, #31
	b	rtl_writephy
.L10:
	ldr	r3, .L11+12
	mov	r0, r4
	ldr	r1, [r3]
	bl	rtl_writephy_batch
	mov	r1, #13
	mov	r0, r4
	bl	rtl_readphy
	and	r3, r0, #255
	cmp	r3, #108
	mov	r6, r0
	beq	.L4
	ldr	r7, .L11+16
	mov	r2, #2
	mov	r1, #31
	mov	r0, r4
	bl	rtl_writephy
	mov	r5, #0
	and	r6, r6, #65280
	add	r8, r7, #4
	b	.L5
.L6:
	ldr	r2, [r7, #4]!
	mov	r1, #13
	mov	r0, r4
	orr	r2, r6, r2
	bl	rtl_writephy
	add	r5, r5, #1
.L5:
	mov	r0, r8
	bl	ARRAY_SIZE
	cmp	r0, r5
	bgt	.L6
	b	.L4
.L12:
	.align	2
.L11:
	.word	rtl8168d_1_phy_reg_init_0
	.word	.LANCHOR0+32
	.word	MII_EXPANSION
	.word	rtl8168d_1_phy_reg_init_1
	.word	.LANCHOR0-4
	.size	rtl8168d_2_hw_phy_config, .-rtl8168d_2_hw_phy_config
	.comm	rtl8168d_1_phy_reg_init_1,4,4
	.comm	rtl8168d_1_phy_reg_init_0,4,4
	.comm	MII_EXPANSION,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	set.4240, %object
	.size	set.4240, 32
set.4240:
	.word	101
	.word	102
	.word	103
	.word	104
	.word	105
	.word	106
	.word	107
	.word	108
	.type	phy_reg_init.4245, %object
	.size	phy_reg_init.4245, 40
phy_reg_init.4245:
	.word	31
	.word	2
	.word	5
	.word	9794
	.word	31
	.word	5
	.word	5
	.word	33584
	.word	6
	.word	9794
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
