	.file	"extr_bnx2x_link.c_bnx2x_initialize_sgmii_process.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Invalid line_speed 0x%x\n"
	.text
	.p2align 4
	.type	bnx2x_initialize_sgmii_process, @function
bnx2x_initialize_sgmii_process:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	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
	mov	rbx, rdx
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	r12, QWORD PTR [rsi]
	mov	ecx, DWORD PTR MDIO_SERDES_DIGITAL_A_1000X_CONTROL1[rip]
	mov	rsi, rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	edx, DWORD PTR MDIO_REG_BANK_SERDES_DIGITAL[rip]
	mov	r8, rsp
	mov	rdi, r12
	call	CL22_RD_OVER_CL45@PLT
	mov	eax, DWORD PTR [rsp]
	mov	r8d, DWORD PTR MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_FIBER_MODE[rip]
	mov	rsi, rbp
	or	r8d, DWORD PTR MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_AUTODET[rip]
	or	r8d, DWORD PTR MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_MSTR_MODE[rip]
	mov	rdi, r12
	or	eax, DWORD PTR MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_INVERT_SIGNAL_DETECT[rip]
	mov	ecx, DWORD PTR MDIO_SERDES_DIGITAL_A_1000X_CONTROL1[rip]
	not	r8d
	mov	edx, DWORD PTR MDIO_REG_BANK_SERDES_DIGITAL[rip]
	and	r8d, eax
	mov	DWORD PTR [rsp], r8d
	call	CL22_WR_OVER_CL45@PLT
	mov	eax, DWORD PTR SPEED_AUTO_NEG[rip]
	cmp	DWORD PTR [rbx], eax
	je	.L2
	mov	edx, DWORD PTR MDIO_REG_BANK_COMBO_IEEE0[rip]
	mov	ecx, DWORD PTR MDIO_COMBO_IEEE0_MII_CONTROL[rip]
	mov	rsi, rbp
	mov	rdi, r12
	lea	r8, 4[rsp]
	call	CL22_RD_OVER_CL45@PLT
	mov	r8d, DWORD PTR MDIO_COMBO_IEEO_MII_CONTROL_AN_EN[rip]
	mov	edx, DWORD PTR [rbx]
	or	r8d, DWORD PTR MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_MASK[rip]
	or	r8d, DWORD PTR MDIO_COMBO_IEEO_MII_CONTROL_FULL_DUPLEX[rip]
	not	r8d
	and	r8d, DWORD PTR 4[rsp]
	mov	DWORD PTR 4[rsp], r8d
	cmp	edx, 129
	je	.L3
	cmp	edx, 130
	je	.L4
	cmp	edx, 128
	je	.L16
	mov	edi, DWORD PTR NETIF_MSG_LINK[rip]
	lea	rsi, .LC0[rip]
	call	DP@PLT
	mov	r8d, DWORD PTR 4[rsp]
.L4:
	mov	rax, QWORD PTR DUPLEX_FULL[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L17
.L7:
	mov	ecx, DWORD PTR MDIO_COMBO_IEEE0_MII_CONTROL[rip]
	mov	edx, DWORD PTR MDIO_REG_BANK_COMBO_IEEE0[rip]
	mov	rsi, rbp
	mov	rdi, r12
	call	CL22_WR_OVER_CL45@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	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
.L17:
	.cfi_restore_state
	or	r8d, DWORD PTR MDIO_COMBO_IEEO_MII_CONTROL_FULL_DUPLEX[rip]
	mov	DWORD PTR 4[rsp], r8d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	xor	edx, edx
	mov	rsi, r13
	mov	rdi, rbp
	call	bnx2x_restart_autoneg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	or	r8d, DWORD PTR MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_1000[rip]
	mov	rax, QWORD PTR DUPLEX_FULL[rip]
	mov	DWORD PTR 4[rsp], r8d
	cmp	QWORD PTR 0[rbp], rax
	jne	.L7
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L3:
	or	r8d, DWORD PTR MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_100[rip]
	mov	rax, QWORD PTR DUPLEX_FULL[rip]
	mov	DWORD PTR 4[rsp], r8d
	cmp	QWORD PTR 0[rbp], rax
	jne	.L7
	jmp	.L17
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bnx2x_initialize_sgmii_process, .-bnx2x_initialize_sgmii_process
	.comm	SPEED_AUTO_NEG,4,4
	.comm	NETIF_MSG_LINK,4,4
	.comm	MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_MSTR_MODE,4,4
	.comm	MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_INVERT_SIGNAL_DETECT,4,4
	.comm	MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_FIBER_MODE,4,4
	.comm	MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_AUTODET,4,4
	.comm	MDIO_SERDES_DIGITAL_A_1000X_CONTROL1,4,4
	.comm	MDIO_REG_BANK_SERDES_DIGITAL,4,4
	.comm	MDIO_REG_BANK_COMBO_IEEE0,4,4
	.comm	MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_MASK,4,4
	.comm	MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_1000,4,4
	.comm	MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_100,4,4
	.comm	MDIO_COMBO_IEEO_MII_CONTROL_FULL_DUPLEX,4,4
	.comm	MDIO_COMBO_IEEO_MII_CONTROL_AN_EN,4,4
	.comm	MDIO_COMBO_IEEE0_MII_CONTROL,4,4
	.comm	DUPLEX_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_bnx2x_link.c_bnx2x_initialize_sgmii_process.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Invalid line_speed 0x%x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnx2x_initialize_sgmii_process, %function
bnx2x_initialize_sgmii_process:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r0
	mov	r5, r2
	sub	sp, sp, #28
	ldr	r9, .L18
	ldr	r8, .L18+4
	ldr	r7, [r1]
	add	ip, sp, #12
	ldr	r3, [r9]
	ldr	r2, [r8]
	str	ip, [sp]
	ldr	ip, .L18+8
	mov	r6, r1
	mov	r0, r7
	mov	r1, r4
	ldr	ip, [ip]
	str	ip, [sp, #20]
	mov	ip,#0
	bl	CL22_RD_OVER_CL45
	ldr	r3, .L18+12
	ldr	r0, .L18+16
	ldr	r1, .L18+20
	ldr	r2, .L18+24
	ldr	r0, [r0]
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	ip, [sp, #12]
	orr	r3, r3, r0
	orr	r3, r3, r1
	orr	ip, ip, r2
	bic	ip, ip, r3
	ldr	r2, [r8]
	ldr	r3, [r9]
	mov	r0, r7
	mov	r1, r4
	str	ip, [sp]
	str	ip, [sp, #12]
	bl	CL22_WR_OVER_CL45
	ldr	r3, .L18+28
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L2
	ldr	r8, .L18+32
	ldr	r6, .L18+36
	add	r1, sp, #16
	ldr	r3, [r8]
	ldr	r2, [r6]
	mov	r0, r7
	str	r1, [sp]
	mov	r1, r4
	bl	CL22_RD_OVER_CL45
	ldr	r2, .L18+40
	ldr	r3, .L18+44
	ldr	r9, .L18+48
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r0, [r9]
	orr	r3, r3, r1
	ldr	r2, [r5]
	ldr	r1, [sp, #16]
	orr	r3, r3, r0
	bic	r3, r1, r3
	cmp	r2, #129
	str	r3, [sp, #16]
	beq	.L3
	cmp	r2, #130
	beq	.L4
	cmp	r2, #128
	beq	.L16
	ldr	r3, .L18+52
	ldr	r1, .L18+56
	ldr	r0, [r3]
	bl	DP
	ldr	r3, [sp, #16]
.L4:
	ldr	r2, .L18+60
	ldr	r1, [r4]
	ldr	r2, [r2]
	mov	r0, r7
	cmp	r1, r2
	ldreq	r2, [r9]
	mov	r1, r4
	orreq	r3, r3, r2
	str	r3, [sp]
	streq	r3, [sp, #16]
	ldr	r2, [r6]
	ldr	r3, [r8]
	bl	CL22_WR_OVER_CL45
.L1:
	ldr	r3, .L18+8
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L2:
	mov	r1, r6
	mov	r0, r4
	mov	r2, #0
	bl	bnx2x_restart_autoneg
	b	.L1
.L16:
	ldr	r2, .L18+64
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [sp, #16]
	b	.L4
.L3:
	ldr	r2, .L18+68
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [sp, #16]
	b	.L4
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	MDIO_SERDES_DIGITAL_A_1000X_CONTROL1
	.word	MDIO_REG_BANK_SERDES_DIGITAL
	.word	.LC1
	.word	MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_FIBER_MODE
	.word	MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_AUTODET
	.word	MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_MSTR_MODE
	.word	MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_INVERT_SIGNAL_DETECT
	.word	SPEED_AUTO_NEG
	.word	MDIO_COMBO_IEEE0_MII_CONTROL
	.word	MDIO_REG_BANK_COMBO_IEEE0
	.word	MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_MASK
	.word	MDIO_COMBO_IEEO_MII_CONTROL_AN_EN
	.word	MDIO_COMBO_IEEO_MII_CONTROL_FULL_DUPLEX
	.word	NETIF_MSG_LINK
	.word	.LC0
	.word	DUPLEX_FULL
	.word	MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_1000
	.word	MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_100
	.size	bnx2x_initialize_sgmii_process, .-bnx2x_initialize_sgmii_process
	.comm	SPEED_AUTO_NEG,4,4
	.comm	NETIF_MSG_LINK,4,4
	.comm	MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_MSTR_MODE,4,4
	.comm	MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_INVERT_SIGNAL_DETECT,4,4
	.comm	MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_FIBER_MODE,4,4
	.comm	MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_AUTODET,4,4
	.comm	MDIO_SERDES_DIGITAL_A_1000X_CONTROL1,4,4
	.comm	MDIO_REG_BANK_SERDES_DIGITAL,4,4
	.comm	MDIO_REG_BANK_COMBO_IEEE0,4,4
	.comm	MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_MASK,4,4
	.comm	MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_1000,4,4
	.comm	MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_100,4,4
	.comm	MDIO_COMBO_IEEO_MII_CONTROL_FULL_DUPLEX,4,4
	.comm	MDIO_COMBO_IEEO_MII_CONTROL_AN_EN,4,4
	.comm	MDIO_COMBO_IEEE0_MII_CONTROL,4,4
	.comm	DUPLEX_FULL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
