	.file	"extr_lan9303-core.c_lan9303_detect_phy_setup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"1-2-3"
.LC1:
	.string	"0-1-2"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Failed to detect phy config: %d\n"
	.section	.rodata.str1.1
.LC3:
	.string	"Phy setup '%s' detected\n"
	.text
	.p2align 4
	.type	lan9303_detect_phy_setup, @function
lan9303_detect_phy_setup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	esi, 3
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR 8[rdi]
	mov	edx, DWORD PTR MII_LAN911X_SPECIAL_MODES[rip]
	call	[QWORD PTR [rax]]
	mov	r12d, eax
	test	eax, eax
	js	.L8
	setne	al
	cmp	r12d, 65535
	mov	edi, DWORD PTR 4[rbx]
	lea	rsi, .LC3[rip]
	setne	dl
	and	eax, edx
	movzx	edx, al
	test	al, al
	lea	rax, .LC1[rip]
	mov	DWORD PTR [rbx], edx
	lea	rdx, .LC0[rip]
	cmove	rdx, rax
	xor	r12d, r12d
	call	dev_dbg@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbx]
	mov	edx, eax
	lea	rsi, .LC2[rip]
	call	dev_err@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	lan9303_detect_phy_setup, .-lan9303_detect_phy_setup
	.comm	MII_LAN911X_SPECIAL_MODES,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_lan9303-core.c_lan9303_detect_phy_setup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"1-2-3\000"
	.align	2
.LC1:
	.ascii	"0-1-2\000"
	.align	2
.LC2:
	.ascii	"Failed to detect phy config: %d\012\000"
	.align	2
.LC3:
	.ascii	"Phy setup '%s' detected\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lan9303_detect_phy_setup, %function
lan9303_detect_phy_setup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #8]
	ldr	r2, .L9
	push	{r4, r5, r6, lr}
	mov	r1, #3
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r5, r0
	blx	r3
	subs	r4, r0, #0
	blt	.L8
	movne	r0, #1
	moveq	r0, #0
	ldr	r3, .L9+4
	ldr	r2, .L9+8
	cmp	r4, r3
	moveq	r4, #0
	andne	r4, r0, #1
	cmp	r4, #0
	str	r4, [r5]
	mov	r4, #0
	ldr	r3, .L9+12
	ldr	r0, [r5, #4]
	moveq	r2, r3
	ldr	r1, .L9+16
	bl	dev_dbg
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L8:
	mov	r2, r4
	ldr	r0, [r5, #4]
	ldr	r1, .L9+20
	bl	dev_err
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	MII_LAN911X_SPECIAL_MODES
	.word	65535
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.word	.LC2
	.size	lan9303_detect_phy_setup, .-lan9303_detect_phy_setup
	.comm	MII_LAN911X_SPECIAL_MODES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
