	.file	"extr_bnx2x_link.c_bnx2x_init_bmac_loopback.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bnx2x_init_bmac_loopback, @function
bnx2x_init_bmac_loopback:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR SPEED_10000[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r12, QWORD PTR 8[rdi]
	mov	rbx, rdi
	mov	DWORD PTR 20[rsi], eax
	mov	eax, DWORD PTR DUPLEX_FULL[rip]
	mov	DWORD PTR [rsi], 1
	mov	DWORD PTR 16[rsi], eax
	mov	eax, DWORD PTR BNX2X_FLOW_CTRL_NONE[rip]
	mov	DWORD PTR 12[rsi], eax
	mov	eax, DWORD PTR MAC_TYPE_BMAC[rip]
	mov	DWORD PTR 8[rsi], eax
	mov	eax, DWORD PTR PHY_XGXS_FLAG[rip]
	mov	DWORD PTR 4[rsi], eax
	call	bnx2x_xgxs_deassert@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	mov	edx, 1
	mov	ecx, 1
	call	bnx2x_bmac_enable@PLT
	mov	esi, DWORD PTR [rbx]
	mov	rdi, r12
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	edx, edx
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	sal	esi, 2
	movsx	rsi, esi
	add	rsi, QWORD PTR NIG_REG_EGRESS_DRAIN0_MODE[rip]
	jmp	REG_WR@PLT
	.cfi_endproc
.LFE0:
	.size	bnx2x_init_bmac_loopback, .-bnx2x_init_bmac_loopback
	.comm	SPEED_10000,4,4
	.comm	PHY_XGXS_FLAG,4,4
	.comm	NIG_REG_EGRESS_DRAIN0_MODE,8,8
	.comm	MAC_TYPE_BMAC,4,4
	.comm	DUPLEX_FULL,4,4
	.comm	BNX2X_FLOW_CTRL_NONE,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_bnx2x_link.c_bnx2x_init_bmac_loopback.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnx2x_init_bmac_loopback, %function
bnx2x_init_bmac_loopback:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r6, #1
	mov	r5, r0
	ldr	r3, .L4
	ldr	r1, .L4+4
	ldr	r3, [r3]
	ldr	r2, .L4+8
	ldr	r7, [r0, #4]
	ldr	ip, [r1]
	str	r3, [r4, #20]
	ldr	r1, [r2]
	ldr	r3, .L4+12
	ldr	r2, .L4+16
	ldr	r3, [r3]
	ldr	r2, [r2]
	str	ip, [r4, #16]
	str	r1, [r4, #12]
	str	r2, [r4, #8]
	str	r3, [r4, #4]
	str	r6, [r4]
	bl	bnx2x_xgxs_deassert
	mov	r3, r6
	mov	r2, r6
	mov	r1, r4
	mov	r0, r5
	bl	bnx2x_bmac_enable
	ldr	r3, .L4+20
	ldr	r1, [r5]
	ldr	r3, [r3]
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r2, #0
	add	r1, r3, r1, lsl #2
	b	REG_WR
.L5:
	.align	2
.L4:
	.word	SPEED_10000
	.word	DUPLEX_FULL
	.word	BNX2X_FLOW_CTRL_NONE
	.word	PHY_XGXS_FLAG
	.word	MAC_TYPE_BMAC
	.word	NIG_REG_EGRESS_DRAIN0_MODE
	.size	bnx2x_init_bmac_loopback, .-bnx2x_init_bmac_loopback
	.comm	SPEED_10000,4,4
	.comm	PHY_XGXS_FLAG,4,4
	.comm	NIG_REG_EGRESS_DRAIN0_MODE,4,4
	.comm	MAC_TYPE_BMAC,4,4
	.comm	DUPLEX_FULL,4,4
	.comm	BNX2X_FLOW_CTRL_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
