	.file	"extr_e1000_hw.c_e1000_config_fc_after_link_up.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"e1000_config_fc_after_link_up"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Error forcing flow control settings\n"
	.section	.rodata.str1.1
.LC2:
	.string	"Flow Control = FULL.\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"Flow Control = RX PAUSE frames only.\n"
	.align 8
.LC4:
	.string	"Flow Control = TX PAUSE frames only.\n"
	.section	.rodata.str1.1
.LC5:
	.string	"Flow Control = NONE.\n"
	.section	.rodata.str1.8
	.align 8
.LC6:
	.string	"Error getting link speed and duplex\n"
	.align 8
.LC7:
	.string	"Copper PHY and Auto Neg has not completed.\n"
	.text
	.p2align 4
	.type	e1000_config_fc_after_link_up, @function
e1000_config_fc_after_link_up:
.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
	lea	rdi, .LC0[rip]
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	e_dbg@PLT
	mov	rax, QWORD PTR 0[rbp]
	cmp	rax, QWORD PTR e1000_media_type_fiber[rip]
	je	.L2
	cmp	rax, QWORD PTR e1000_media_type_internal_serdes[rip]
	je	.L2
.L3:
	cmp	rax, QWORD PTR e1000_media_type_copper[rip]
	je	.L39
.L6:
	mov	r12, QWORD PTR E1000_SUCCESS[rip]
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L40
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	cmp	QWORD PTR 40[rbp], 0
	je	.L3
.L4:
	mov	rdi, rbp
	call	e1000_force_mac_fc@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L37
	mov	rax, QWORD PTR e1000_media_type_copper[rip]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L6
	cmp	QWORD PTR 32[rbp], 0
	je	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, DWORD PTR PHY_STATUS[rip]
	lea	r13, 4[rsp]
	mov	rdi, rbp
	mov	rdx, r13
	call	e1000_read_phy_reg@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L1
	mov	esi, DWORD PTR PHY_STATUS[rip]
	mov	rdx, r13
	mov	rdi, rbp
	call	e1000_read_phy_reg@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L1
	mov	eax, DWORD PTR 4[rsp]
	test	DWORD PTR MII_SR_AUTONEG_COMPLETE[rip], eax
	je	.L11
	mov	esi, DWORD PTR PHY_AUTONEG_ADV[rip]
	lea	rdx, 8[rsp]
	mov	rdi, rbp
	call	e1000_read_phy_reg@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L1
	mov	esi, DWORD PTR PHY_LP_ABILITY[rip]
	lea	rdx, 12[rsp]
	mov	rdi, rbp
	call	e1000_read_phy_reg@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L1
	mov	eax, DWORD PTR 8[rsp]
	test	DWORD PTR NWAY_AR_PAUSE[rip], eax
	jne	.L41
	test	DWORD PTR NWAY_AR_ASM_DIR[rip], eax
	je	.L16
	mov	eax, DWORD PTR 12[rsp]
	test	DWORD PTR NWAY_LPAR_PAUSE[rip], eax
	je	.L16
	test	DWORD PTR NWAY_LPAR_ASM_DIR[rip], eax
	jne	.L42
.L16:
	mov	rdx, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR E1000_FC_NONE[rip]
	cmp	rdx, rax
	je	.L17
	cmp	rdx, QWORD PTR E1000_FC_TX_PAUSE[rip]
	je	.L17
	cmp	QWORD PTR 24[rbp], 0
	je	.L14
.L17:
	mov	QWORD PTR 16[rbp], rax
	lea	rdi, .LC5[rip]
	call	e_dbg@PLT
.L15:
	lea	rdx, 20[rsp]
	lea	rsi, 16[rsp]
	mov	rdi, rbp
	call	e1000_get_speed_and_duplex@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L43
	mov	eax, DWORD PTR HALF_DUPLEX[rip]
	cmp	DWORD PTR 20[rsp], eax
	jne	.L19
	mov	rax, QWORD PTR E1000_FC_NONE[rip]
	mov	QWORD PTR 16[rbp], rax
.L19:
	mov	rdi, rbp
	call	e1000_force_mac_fc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L6
	.p2align 4,,10
	.p2align 3
.L37:
	lea	rdi, .LC1[rip]
	call	e_dbg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L39:
	cmp	QWORD PTR 32[rbp], 0
	jne	.L7
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rdi, .LC7[rip]
	call	e_dbg@PLT
	jmp	.L6
.L41:
	mov	edx, DWORD PTR 12[rsp]
	test	DWORD PTR NWAY_LPAR_PAUSE[rip], edx
	je	.L13
	mov	rax, QWORD PTR E1000_FC_FULL[rip]
	cmp	QWORD PTR 8[rbp], rax
	je	.L44
.L14:
	mov	rax, QWORD PTR E1000_FC_RX_PAUSE[rip]
	lea	rdi, .LC3[rip]
	mov	QWORD PTR 16[rbp], rax
	call	e_dbg@PLT
	jmp	.L15
.L13:
	test	DWORD PTR NWAY_AR_ASM_DIR[rip], eax
	je	.L16
	test	DWORD PTR NWAY_LPAR_ASM_DIR[rip], edx
	je	.L16
	jmp	.L14
.L43:
	lea	rdi, .LC6[rip]
	call	e_dbg@PLT
	jmp	.L1
.L44:
	mov	QWORD PTR 16[rbp], rax
	lea	rdi, .LC2[rip]
	call	e_dbg@PLT
	jmp	.L15
.L40:
	call	__stack_chk_fail@PLT
.L42:
	mov	rax, QWORD PTR E1000_FC_TX_PAUSE[rip]
	lea	rdi, .LC4[rip]
	mov	QWORD PTR 16[rbp], rax
	call	e_dbg@PLT
	jmp	.L15
	.cfi_endproc
.LFE0:
	.size	e1000_config_fc_after_link_up, .-e1000_config_fc_after_link_up
	.comm	e1000_media_type_internal_serdes,8,8
	.comm	e1000_media_type_fiber,8,8
	.comm	e1000_media_type_copper,8,8
	.comm	PHY_STATUS,4,4
	.comm	PHY_LP_ABILITY,4,4
	.comm	PHY_AUTONEG_ADV,4,4
	.comm	NWAY_LPAR_PAUSE,4,4
	.comm	NWAY_LPAR_ASM_DIR,4,4
	.comm	NWAY_AR_PAUSE,4,4
	.comm	NWAY_AR_ASM_DIR,4,4
	.comm	MII_SR_AUTONEG_COMPLETE,4,4
	.comm	HALF_DUPLEX,4,4
	.comm	E1000_SUCCESS,8,8
	.comm	E1000_FC_TX_PAUSE,8,8
	.comm	E1000_FC_RX_PAUSE,8,8
	.comm	E1000_FC_NONE,8,8
	.comm	E1000_FC_FULL,8,8
	.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_e1000_hw.c_e1000_config_fc_after_link_up.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"e1000_config_fc_after_link_up\000"
	.align	2
.LC1:
	.ascii	"Error forcing flow control settings\012\000"
	.align	2
.LC2:
	.ascii	"Flow Control = FULL.\012\000"
	.align	2
.LC3:
	.ascii	"Flow Control = RX PAUSE frames only.\012\000"
	.align	2
.LC4:
	.ascii	"Flow Control = TX PAUSE frames only.\012\000"
	.align	2
.LC5:
	.ascii	"Flow Control = NONE.\012\000"
	.align	2
.LC6:
	.ascii	"Error getting link speed and duplex\012\000"
	.align	2
.LC7:
	.ascii	"Copper PHY and Auto Neg has not completed.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	e1000_config_fc_after_link_up, %function
e1000_config_fc_after_link_up:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, .L51
	sub	sp, sp, #24
	ldr	r0, .L51+4
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	e_dbg
	ldr	r2, .L51+8
	ldr	r3, [r4]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L2
	ldr	r2, .L51+12
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L2
.L3:
	ldr	r2, .L51+16
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L45
.L6:
	ldr	r3, .L51+20
	ldr	r5, [r3]
.L1:
	ldr	r3, .L51
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L46
	mov	r0, r5
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r2, [r4, #20]
	cmp	r2, #0
	beq	.L3
.L4:
	mov	r0, r4
	bl	e1000_force_mac_fc
	subs	r5, r0, #0
	bne	.L43
	ldr	r3, .L51+16
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L6
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L6
.L7:
	ldr	r6, .L51+24
	mov	r2, sp
	mov	r0, r4
	ldr	r1, [r6]
	bl	e1000_read_phy_reg
	subs	r5, r0, #0
	bne	.L1
	mov	r2, sp
	mov	r0, r4
	ldr	r1, [r6]
	bl	e1000_read_phy_reg
	subs	r5, r0, #0
	bne	.L1
	ldr	r3, .L51+28
	ldr	r2, [sp]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L11
	ldr	r3, .L51+32
	mov	r0, r4
	ldr	r1, [r3]
	add	r2, sp, #4
	bl	e1000_read_phy_reg
	subs	r5, r0, #0
	bne	.L1
	ldr	r3, .L51+36
	mov	r0, r4
	ldr	r1, [r3]
	add	r2, sp, #8
	bl	e1000_read_phy_reg
	subs	r5, r0, #0
	bne	.L1
	ldr	r2, .L51+40
	ldr	r3, [sp, #4]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L47
	ldr	r2, .L51+44
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L16
	ldr	r2, .L51+48
	ldr	r3, [sp, #8]
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L16
	ldr	r2, .L51+52
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L48
.L16:
	ldr	r3, .L51+56
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L17
	ldr	r1, .L51+60
	ldr	r1, [r1]
	cmp	r2, r1
	beq	.L17
	ldr	r2, [r4, #12]
	cmp	r2, #0
	beq	.L14
.L17:
	ldr	r0, .L51+64
	str	r3, [r4, #8]
	bl	e_dbg
.L15:
	mov	r0, r4
	add	r2, sp, #16
	add	r1, sp, #12
	bl	e1000_get_speed_and_duplex
	subs	r5, r0, #0
	bne	.L49
	ldr	r3, .L51+68
	ldr	r2, [sp, #16]
	ldr	r3, [r3]
	mov	r0, r4
	cmp	r2, r3
	ldreq	r3, .L51+56
	ldreq	r3, [r3]
	streq	r3, [r4, #8]
	bl	e1000_force_mac_fc
	subs	r5, r0, #0
	beq	.L6
.L43:
	ldr	r0, .L51+72
	bl	e_dbg
	b	.L1
.L45:
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L7
	b	.L4
.L11:
	ldr	r0, .L51+76
	bl	e_dbg
	b	.L6
.L47:
	ldr	r1, .L51+48
	ldr	r2, [sp, #8]
	ldr	r1, [r1]
	tst	r2, r1
	beq	.L13
	ldr	r2, .L51+80
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L50
.L14:
	ldr	r3, .L51+84
	ldr	r0, .L51+88
	ldr	r3, [r3]
	str	r3, [r4, #8]
	bl	e_dbg
	b	.L15
.L13:
	ldr	r1, .L51+44
	ldr	r1, [r1]
	tst	r3, r1
	beq	.L16
	ldr	r3, .L51+52
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L16
	b	.L14
.L49:
	ldr	r0, .L51+92
	bl	e_dbg
	b	.L1
.L50:
	str	r3, [r4, #8]
	ldr	r0, .L51+96
	bl	e_dbg
	b	.L15
.L46:
	bl	__stack_chk_fail
.L48:
	ldr	r3, .L51+60
	ldr	r0, .L51+100
	ldr	r3, [r3]
	str	r3, [r4, #8]
	bl	e_dbg
	b	.L15
.L52:
	.align	2
.L51:
	.word	.LC8
	.word	.LC0
	.word	e1000_media_type_fiber
	.word	e1000_media_type_internal_serdes
	.word	e1000_media_type_copper
	.word	E1000_SUCCESS
	.word	PHY_STATUS
	.word	MII_SR_AUTONEG_COMPLETE
	.word	PHY_AUTONEG_ADV
	.word	PHY_LP_ABILITY
	.word	NWAY_AR_PAUSE
	.word	NWAY_AR_ASM_DIR
	.word	NWAY_LPAR_PAUSE
	.word	NWAY_LPAR_ASM_DIR
	.word	E1000_FC_NONE
	.word	E1000_FC_TX_PAUSE
	.word	.LC5
	.word	HALF_DUPLEX
	.word	.LC1
	.word	.LC7
	.word	E1000_FC_FULL
	.word	E1000_FC_RX_PAUSE
	.word	.LC3
	.word	.LC6
	.word	.LC2
	.word	.LC4
	.size	e1000_config_fc_after_link_up, .-e1000_config_fc_after_link_up
	.comm	e1000_media_type_internal_serdes,4,4
	.comm	e1000_media_type_fiber,4,4
	.comm	e1000_media_type_copper,4,4
	.comm	PHY_STATUS,4,4
	.comm	PHY_LP_ABILITY,4,4
	.comm	PHY_AUTONEG_ADV,4,4
	.comm	NWAY_LPAR_PAUSE,4,4
	.comm	NWAY_LPAR_ASM_DIR,4,4
	.comm	NWAY_AR_PAUSE,4,4
	.comm	NWAY_AR_ASM_DIR,4,4
	.comm	MII_SR_AUTONEG_COMPLETE,4,4
	.comm	HALF_DUPLEX,4,4
	.comm	E1000_SUCCESS,4,4
	.comm	E1000_FC_TX_PAUSE,4,4
	.comm	E1000_FC_RX_PAUSE,4,4
	.comm	E1000_FC_NONE,4,4
	.comm	E1000_FC_FULL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
