	.file	"extr_e1000_phy.c_igb_read_phy_reg_i2c.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"I2CCMD Read did not complete\n"
.LC1:
	.string	"I2CCMD Error bit set\n"
	.text
	.p2align 4
	.globl	igb_read_phy_reg_i2c
	.type	igb_read_phy_reg_i2c, @function
igb_read_phy_reg_i2c:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rcx, QWORD PTR E1000_I2CCMD_REG_ADDR_SHIFT[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, rdx
	sal	rsi, cl
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rcx, QWORD PTR E1000_I2CCMD_PHY_ADDR_SHIFT[rip]
	mov	rax, QWORD PTR [rdi]
	mov	rbx, QWORD PTR E1000_I2CCMD_OPCODE_READ[rip]
	mov	edi, DWORD PTR E1000_I2CCMD[rip]
	or	rbx, rsi
	sal	rax, cl
	or	rbx, rax
	mov	rsi, rbx
	call	wr32@PLT
	cmp	QWORD PTR E1000_I2CCMD_PHY_TIMEOUT[rip], 0
	jle	.L2
	xor	r12d, r12d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	add	r12, 1
	cmp	QWORD PTR E1000_I2CCMD_PHY_TIMEOUT[rip], r12
	jle	.L6
.L4:
	mov	edi, 50
	call	udelay@PLT
	mov	edi, DWORD PTR E1000_I2CCMD[rip]
	call	rd32@PLT
	mov	rbx, rax
	test	QWORD PTR E1000_I2CCMD_READY[rip], rax
	je	.L14
.L3:
	test	QWORD PTR E1000_I2CCMD_ERROR[rip], rbx
	jne	.L15
	movzx	eax, bh
	sal	rbx, 8
	movzx	ebx, bx
	or	rbx, rax
	xor	eax, eax
	mov	QWORD PTR 0[rbp], rbx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	test	QWORD PTR E1000_I2CCMD_READY[rip], rbx
	jne	.L3
.L6:
	lea	rdi, .LC0[rip]
	call	hw_dbg@PLT
	mov	eax, DWORD PTR E1000_ERR_PHY[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	hw_dbg@PLT
	mov	eax, DWORD PTR E1000_ERR_PHY[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	igb_read_phy_reg_i2c, .-igb_read_phy_reg_i2c
	.comm	E1000_I2CCMD_REG_ADDR_SHIFT,8,8
	.comm	E1000_I2CCMD_READY,8,8
	.comm	E1000_I2CCMD_PHY_TIMEOUT,8,8
	.comm	E1000_I2CCMD_PHY_ADDR_SHIFT,8,8
	.comm	E1000_I2CCMD_OPCODE_READ,8,8
	.comm	E1000_I2CCMD_ERROR,8,8
	.comm	E1000_I2CCMD,4,4
	.comm	E1000_ERR_PHY,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_e1000_phy.c_igb_read_phy_reg_i2c.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"I2CCMD Read did not complete\012\000"
	.align	2
.LC1:
	.ascii	"I2CCMD Error bit set\012\000"
	.text
	.align	2
	.global	igb_read_phy_reg_i2c
	.syntax unified
	.arm
	.fpu softvfp
	.type	igb_read_phy_reg_i2c, %function
igb_read_phy_reg_i2c:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L16
	ldr	r3, .L16+4
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	lr, .L16+8
	ldr	ip, [ip]
	ldr	r3, [r3]
	ldr	r4, [r0]
	ldr	r0, [lr]
	orr	r3, r3, r1, lsl ip
	ldr	r8, .L16+12
	orr	r4, r3, r4, lsl r0
	ldr	r9, .L16+16
	mov	r1, r4
	ldr	r0, [r8]
	mov	r7, r2
	bl	wr32
	ldr	r3, [r9]
	cmp	r3, #0
	ble	.L2
	mov	r5, #0
	ldr	r6, .L16+20
	b	.L4
.L14:
	ldr	r3, [r9]
	cmp	r3, r5
	ble	.L6
.L4:
	mov	r0, #50
	bl	udelay
	ldr	r0, [r8]
	bl	rd32
	ldr	r3, [r6]
	mov	r4, r0
	tst	r0, r3
	add	r5, r5, #1
	beq	.L14
.L3:
	ldr	r3, .L16+24
	ldr	r0, [r3]
	ands	r0, r4, r0
	bne	.L15
	ldr	r1, .L16+28
	lsl	r3, r4, #16
	and	r1, r1, r4, lsl #8
	orr	r1, r1, r3, lsr #24
	str	r1, [r7]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r3, .L16+20
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L3
.L6:
	ldr	r0, .L16+32
	bl	hw_dbg
	ldr	r3, .L16+36
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	ldr	r0, .L16+40
	bl	hw_dbg
	ldr	r3, .L16+36
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	.align	2
.L16:
	.word	E1000_I2CCMD_REG_ADDR_SHIFT
	.word	E1000_I2CCMD_OPCODE_READ
	.word	E1000_I2CCMD_PHY_ADDR_SHIFT
	.word	E1000_I2CCMD
	.word	E1000_I2CCMD_PHY_TIMEOUT
	.word	E1000_I2CCMD_READY
	.word	E1000_I2CCMD_ERROR
	.word	65535
	.word	.LC0
	.word	E1000_ERR_PHY
	.word	.LC1
	.size	igb_read_phy_reg_i2c, .-igb_read_phy_reg_i2c
	.comm	E1000_I2CCMD_REG_ADDR_SHIFT,4,4
	.comm	E1000_I2CCMD_READY,4,4
	.comm	E1000_I2CCMD_PHY_TIMEOUT,4,4
	.comm	E1000_I2CCMD_PHY_ADDR_SHIFT,4,4
	.comm	E1000_I2CCMD_OPCODE_READ,4,4
	.comm	E1000_I2CCMD_ERROR,4,4
	.comm	E1000_I2CCMD,4,4
	.comm	E1000_ERR_PHY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
