	.file	"extr_bnx2.c_bnx2_ioctl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bnx2_ioctl, @function
bnx2_ioctl:
.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
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	if_mii@PLT
	mov	rdi, rbp
	mov	r13, rax
	call	netdev_priv@PLT
	mov	r12, rax
	cmp	ebx, 129
	je	.L2
	cmp	ebx, 130
	je	.L3
	cmp	ebx, 128
	je	.L20
.L16:
	mov	r12d, DWORD PTR EOPNOTSUPP[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L3:
	.cfi_restore_state
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR 12[r13], eax
.L2:
	mov	eax, DWORD PTR [r12]
	test	DWORD PTR BNX2_PHY_FLAG_REMOTE_PHY_CAP[rip], eax
	jne	.L16
	mov	rdi, rbp
	call	netif_running@PLT
	test	eax, eax
	jne	.L8
.L18:
	mov	r12d, DWORD PTR EAGAIN[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR BNX2_PHY_FLAG_REMOTE_PHY_CAP[rip], eax
	jne	.L16
	mov	rdi, rbp
	call	netif_running@PLT
	test	eax, eax
	je	.L18
	lea	rbp, 4[r12]
	mov	rdi, rbp
	call	spin_lock_bh@PLT
	mov	esi, DWORD PTR 0[r13]
	mov	edx, DWORD PTR 4[r13]
	mov	rdi, r12
	and	esi, 31
	call	bnx2_write_phy@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	spin_unlock_bh@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	lea	rbp, 4[r12]
	mov	rdi, rbp
	call	spin_lock_bh@PLT
	mov	esi, DWORD PTR 0[r13]
	mov	rdi, r12
	lea	rdx, 4[rsp]
	and	esi, 31
	call	bnx2_read_phy@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	spin_unlock_bh@PLT
	mov	eax, DWORD PTR 4[rsp]
	mov	DWORD PTR 8[r13], eax
	jmp	.L1
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bnx2_ioctl, .-bnx2_ioctl
	.comm	EOPNOTSUPP,4,4
	.comm	EAGAIN,4,4
	.comm	BNX2_PHY_FLAG_REMOTE_PHY_CAP,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_bnx2.c_bnx2_ioctl.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnx2_ioctl, %function
bnx2_ioctl:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L22
	sub	sp, sp, #12
	mov	r5, r0
	mov	r0, r1
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	if_mii
	mov	r7, r0
	mov	r0, r5
	bl	netdev_priv
	cmp	r4, #129
	mov	r6, r0
	beq	.L2
	cmp	r4, #130
	beq	.L3
	cmp	r4, #128
	beq	.L20
.L16:
	ldr	r3, .L22+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L3:
	ldr	r3, [r0, #8]
	str	r3, [r7, #12]
.L2:
	ldr	r3, .L22+8
	ldr	r2, [r6]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L16
	mov	r0, r5
	bl	netif_running
	cmp	r0, #0
	bne	.L8
.L18:
	ldr	r3, .L22+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L20:
	ldr	r3, .L22+8
	ldr	r2, [r0]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L16
	mov	r0, r5
	bl	netif_running
	cmp	r0, #0
	beq	.L18
	add	r5, r6, #4
	mov	r0, r5
	bl	spin_lock_bh
	ldr	r1, [r7]
	mov	r0, r6
	ldr	r2, [r7, #4]
	and	r1, r1, #31
	bl	bnx2_write_phy
	mov	r4, r0
	mov	r0, r5
	bl	spin_unlock_bh
	b	.L1
.L8:
	add	r5, r6, #4
	mov	r0, r5
	bl	spin_lock_bh
	ldr	r1, [r7]
	mov	r2, sp
	and	r1, r1, #31
	mov	r0, r6
	bl	bnx2_read_phy
	mov	r4, r0
	mov	r0, r5
	bl	spin_unlock_bh
	ldr	r3, [sp]
	str	r3, [r7, #8]
	b	.L1
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	EOPNOTSUPP
	.word	BNX2_PHY_FLAG_REMOTE_PHY_CAP
	.word	EAGAIN
	.size	bnx2_ioctl, .-bnx2_ioctl
	.comm	EOPNOTSUPP,4,4
	.comm	EAGAIN,4,4
	.comm	BNX2_PHY_FLAG_REMOTE_PHY_CAP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
