	.file	"extr_ixgb_hw.c_ixgb_mac_reset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ixgb_mac_reset, @function
ixgb_mac_reset:
.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
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR CTRL0[rip]
	mov	edx, DWORD PTR IXGB_CTRL0_RST[rip]
	or	edx, DWORD PTR IXGB_CTRL0_SDP3_DIR[rip]
	or	edx, DWORD PTR IXGB_CTRL0_SDP2_DIR[rip]
	or	edx, DWORD PTR IXGB_CTRL0_SDP1_DIR[rip]
	or	edx, DWORD PTR IXGB_CTRL0_SDP0_DIR[rip]
	or	edx, DWORD PTR IXGB_CTRL0_SDP3[rip]
	or	edx, DWORD PTR IXGB_CTRL0_SDP2[rip]
	or	edx, DWORD PTR IXGB_CTRL0_SDP0[rip]
	call	IXGB_WRITE_REG@PLT
	mov	edi, DWORD PTR IXGB_DELAY_AFTER_RESET[rip]
	call	msleep@PLT
	mov	esi, DWORD PTR CTRL0[rip]
	mov	rdi, rbp
	call	IXGB_READ_REG@PLT
	mov	r12d, eax
	mov	rax, QWORD PTR SUN_SUBVENDOR_ID[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L6
	mov	rax, QWORD PTR ixgb_phy_type_txn17401[rip]
	cmp	QWORD PTR 8[rbp], rax
	je	.L7
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	r12d, DWORD PTR IXGB_CTRL1_GPI0_EN[rip]
	mov	esi, DWORD PTR CTRL1[rip]
	mov	rdi, rbp
	or	r12d, DWORD PTR IXGB_CTRL1_SDP6_DIR[rip]
	or	r12d, DWORD PTR IXGB_CTRL1_SDP7_DIR[rip]
	or	r12d, DWORD PTR IXGB_CTRL1_SDP6[rip]
	or	r12d, DWORD PTR IXGB_CTRL1_SDP7[rip]
	mov	edx, r12d
	call	IXGB_WRITE_REG@PLT
	mov	rdi, rbp
	call	ixgb_optics_reset_bcm@PLT
	mov	rax, QWORD PTR ixgb_phy_type_txn17401[rip]
	cmp	QWORD PTR 8[rbp], rax
	jne	.L1
.L7:
	mov	rdi, rbp
	call	ixgb_optics_reset@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ixgb_mac_reset, .-ixgb_mac_reset
	.comm	ixgb_phy_type_txn17401,8,8
	.comm	SUN_SUBVENDOR_ID,8,8
	.comm	IXGB_DELAY_AFTER_RESET,4,4
	.comm	IXGB_CTRL1_SDP7_DIR,4,4
	.comm	IXGB_CTRL1_SDP7,4,4
	.comm	IXGB_CTRL1_SDP6_DIR,4,4
	.comm	IXGB_CTRL1_SDP6,4,4
	.comm	IXGB_CTRL1_GPI0_EN,4,4
	.comm	IXGB_CTRL0_SDP3_DIR,4,4
	.comm	IXGB_CTRL0_SDP3,4,4
	.comm	IXGB_CTRL0_SDP2_DIR,4,4
	.comm	IXGB_CTRL0_SDP2,4,4
	.comm	IXGB_CTRL0_SDP1_DIR,4,4
	.comm	IXGB_CTRL0_SDP0_DIR,4,4
	.comm	IXGB_CTRL0_SDP0,4,4
	.comm	IXGB_CTRL0_RST,4,4
	.comm	CTRL1,4,4
	.comm	CTRL0,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_ixgb_hw.c_ixgb_mac_reset.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ixgb_mac_reset, %function
ixgb_mac_reset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r1, .L9
	ldr	r3, .L9+4
	ldr	ip, [r1]
	ldr	r3, [r3]
	ldr	r2, .L9+8
	ldr	r1, .L9+12
	ldr	r2, [r2]
	orr	r3, r3, ip
	ldr	ip, .L9+16
	ldr	r1, [r1]
	ldr	ip, [ip]
	orr	r3, r3, r2
	ldr	r2, .L9+20
	orr	r3, r3, r1
	ldr	r1, .L9+24
	ldr	r2, [r2]
	orr	r3, r3, ip
	ldr	ip, .L9+28
	ldr	r1, [r1]
	ldr	r5, .L9+32
	orr	r3, r3, r2
	ldr	r2, [ip]
	orr	r3, r3, r1
	orr	r2, r3, r2
	ldr	r1, [r5]
	bl	IXGB_WRITE_REG
	ldr	r3, .L9+36
	ldr	r0, [r3]
	bl	msleep
	ldr	r1, [r5]
	mov	r0, r4
	bl	IXGB_READ_REG
	ldr	r3, .L9+40
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	movne	r5, r0
	beq	.L7
.L2:
	ldr	r3, .L9+44
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L8
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r1, .L9+48
	ldr	r2, .L9+52
	ldr	r3, .L9+56
	ldr	r0, [r2]
	ldr	r5, [r1]
	ldr	r2, .L9+60
	ldr	r1, [r3]
	ldr	r3, .L9+64
	ldr	r2, [r2]
	orr	r5, r5, r0
	orr	r5, r5, r1
	ldr	r0, [r3]
	orr	r5, r5, r2
	ldr	r3, .L9+68
	orr	r5, r5, r0
	mov	r2, r5
	mov	r0, r4
	ldr	r1, [r3]
	bl	IXGB_WRITE_REG
	mov	r0, r4
	bl	ixgb_optics_reset_bcm
	b	.L2
.L8:
	mov	r0, r4
	bl	ixgb_optics_reset
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	IXGB_CTRL0_SDP3_DIR
	.word	IXGB_CTRL0_RST
	.word	IXGB_CTRL0_SDP2_DIR
	.word	IXGB_CTRL0_SDP1_DIR
	.word	IXGB_CTRL0_SDP0_DIR
	.word	IXGB_CTRL0_SDP3
	.word	IXGB_CTRL0_SDP2
	.word	IXGB_CTRL0_SDP0
	.word	CTRL0
	.word	IXGB_DELAY_AFTER_RESET
	.word	SUN_SUBVENDOR_ID
	.word	ixgb_phy_type_txn17401
	.word	IXGB_CTRL1_GPI0_EN
	.word	IXGB_CTRL1_SDP6_DIR
	.word	IXGB_CTRL1_SDP7_DIR
	.word	IXGB_CTRL1_SDP6
	.word	IXGB_CTRL1_SDP7
	.word	CTRL1
	.size	ixgb_mac_reset, .-ixgb_mac_reset
	.comm	ixgb_phy_type_txn17401,4,4
	.comm	SUN_SUBVENDOR_ID,4,4
	.comm	IXGB_DELAY_AFTER_RESET,4,4
	.comm	IXGB_CTRL1_SDP7_DIR,4,4
	.comm	IXGB_CTRL1_SDP7,4,4
	.comm	IXGB_CTRL1_SDP6_DIR,4,4
	.comm	IXGB_CTRL1_SDP6,4,4
	.comm	IXGB_CTRL1_GPI0_EN,4,4
	.comm	IXGB_CTRL0_SDP3_DIR,4,4
	.comm	IXGB_CTRL0_SDP3,4,4
	.comm	IXGB_CTRL0_SDP2_DIR,4,4
	.comm	IXGB_CTRL0_SDP2,4,4
	.comm	IXGB_CTRL0_SDP1_DIR,4,4
	.comm	IXGB_CTRL0_SDP0_DIR,4,4
	.comm	IXGB_CTRL0_SDP0,4,4
	.comm	IXGB_CTRL0_RST,4,4
	.comm	CTRL1,4,4
	.comm	CTRL0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
