	.file	"extr_tg3.c_tg3_aux_stat_to_speed_duplex.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tg3_aux_stat_to_speed_duplex, @function
tg3_aux_stat_to_speed_duplex:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR MII_TG3_AUX_STAT_SPDMASK[rip]
	and	eax, esi
	add	eax, -128
	cmp	eax, 5
	ja	.L2
	lea	rsi, .L4[rip]
	movsx	rax, DWORD PTR [rsi+rax*4]
	add	rax, rsi
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR SPEED_1000[rip]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR DUPLEX_HALF[rip]
	mov	DWORD PTR [rcx], eax
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR SPEED_1000[rip]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR DUPLEX_FULL[rip]
	mov	DWORD PTR [rcx], eax
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR SPEED_10[rip]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR DUPLEX_HALF[rip]
	mov	DWORD PTR [rcx], eax
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR SPEED_10[rip]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR DUPLEX_FULL[rip]
	mov	DWORD PTR [rcx], eax
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR SPEED_100[rip]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR DUPLEX_HALF[rip]
	mov	DWORD PTR [rcx], eax
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR SPEED_100[rip]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR DUPLEX_FULL[rip]
	mov	DWORD PTR [rcx], eax
	ret
.L2:
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR TG3_PHYFLG_IS_FET[rip], eax
	je	.L11
	test	DWORD PTR MII_TG3_AUX_STAT_100[rip], esi
	mov	eax, DWORD PTR SPEED_100[rip]
	cmove	eax, DWORD PTR SPEED_10[rip]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR DUPLEX_FULL[rip]
	test	DWORD PTR MII_TG3_AUX_STAT_FULL[rip], esi
	cmove	eax, DWORD PTR DUPLEX_HALF[rip]
	mov	DWORD PTR [rcx], eax
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR SPEED_UNKNOWN[rip]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR DUPLEX_UNKNOWN[rip]
	mov	DWORD PTR [rcx], eax
	ret
	.cfi_endproc
.LFE0:
	.size	tg3_aux_stat_to_speed_duplex, .-tg3_aux_stat_to_speed_duplex
	.comm	TG3_PHYFLG_IS_FET,4,4
	.comm	SPEED_UNKNOWN,4,4
	.comm	SPEED_1000,4,4
	.comm	SPEED_100,4,4
	.comm	SPEED_10,4,4
	.comm	MII_TG3_AUX_STAT_SPDMASK,4,4
	.comm	MII_TG3_AUX_STAT_FULL,4,4
	.comm	MII_TG3_AUX_STAT_100,4,4
	.comm	DUPLEX_UNKNOWN,4,4
	.comm	DUPLEX_HALF,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
	.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_tg3.c_tg3_aux_stat_to_speed_duplex.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tg3_aux_stat_to_speed_duplex, %function
tg3_aux_stat_to_speed_duplex:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L23
	ldr	ip, [ip]
	and	ip, ip, r1
	sub	ip, ip, #128
	cmp	ip, #5
	ldrls	pc, [pc, ip, asl #2]
	b	.L2
.L4:
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L3:
	ldr	r0, .L23+4
.L21:
	ldr	r0, [r0]
	ldr	r1, .L23+8
	str	r0, [r2]
	ldr	r2, [r1]
	str	r2, [r3]
	bx	lr
.L9:
	ldr	r0, .L23+12
.L19:
	ldr	r0, [r0]
	ldr	r1, .L23+16
	str	r0, [r2]
	ldr	r2, [r1]
	str	r2, [r3]
	bx	lr
.L8:
	ldr	r0, .L23+12
	b	.L21
.L7:
	ldr	r0, .L23+20
	b	.L19
.L6:
	ldr	r0, .L23+20
	b	.L21
.L5:
	ldr	r0, .L23+4
	b	.L19
.L2:
	str	lr, [sp, #-4]!
	ldr	lr, .L23+24
	ldr	ip, [r0]
	ldr	r0, [lr]
	tst	ip, r0
	beq	.L11
	ldr	r0, .L23+28
	ldr	ip, .L23+32
	ldr	r0, [r0]
	tst	r1, r0
	ldrne	r0, .L23+20
	ldreq	r0, .L23+12
	ldr	r0, [r0]
	str	r0, [r2]
	ldr	r2, [ip]
	tst	r1, r2
	ldrne	r2, .L23+8
	ldreq	r2, .L23+16
	ldr	r2, [r2]
.L20:
	str	r2, [r3]
	ldr	pc, [sp], #4
.L11:
	ldr	r0, .L23+36
	ldr	r1, .L23+40
	ldr	r0, [r0]
	str	r0, [r2]
	ldr	r2, [r1]
	b	.L20
.L24:
	.align	2
.L23:
	.word	MII_TG3_AUX_STAT_SPDMASK
	.word	SPEED_1000
	.word	DUPLEX_FULL
	.word	SPEED_10
	.word	DUPLEX_HALF
	.word	SPEED_100
	.word	TG3_PHYFLG_IS_FET
	.word	MII_TG3_AUX_STAT_100
	.word	MII_TG3_AUX_STAT_FULL
	.word	SPEED_UNKNOWN
	.word	DUPLEX_UNKNOWN
	.size	tg3_aux_stat_to_speed_duplex, .-tg3_aux_stat_to_speed_duplex
	.comm	TG3_PHYFLG_IS_FET,4,4
	.comm	SPEED_UNKNOWN,4,4
	.comm	SPEED_1000,4,4
	.comm	SPEED_100,4,4
	.comm	SPEED_10,4,4
	.comm	MII_TG3_AUX_STAT_SPDMASK,4,4
	.comm	MII_TG3_AUX_STAT_FULL,4,4
	.comm	MII_TG3_AUX_STAT_100,4,4
	.comm	DUPLEX_UNKNOWN,4,4
	.comm	DUPLEX_HALF,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
