	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_read_phy_reg_i2c           ## -- Begin function igb_read_phy_reg_i2c
	.p2align	4, 0x90
_igb_read_phy_reg_i2c:                  ## @igb_read_phy_reg_i2c
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_E1000_I2CCMD_REG_ADDR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %rsi
	movq	(%rdi), %r13
	movq	_E1000_I2CCMD_PHY_ADDR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %r13
	movq	%rdx, %rbx
	orq	%rsi, %r13
	movq	_E1000_I2CCMD_OPCODE_READ@GOTPCREL(%rip), %rax
	orq	(%rax), %r13
	movq	_E1000_I2CCMD@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	%r13, %rsi
	callq	_wr32
	movq	_E1000_I2CCMD_PHY_TIMEOUT@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	movq	_E1000_I2CCMD_READY@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$50, %edi
	callq	_udelay
	movl	(%r15), %edi
	callq	_rd32
	movq	%rax, %r13
	movq	(%r14), %rax
	testq	%r13, %rax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	cmpq	(%r12), %rbx
	jl	LBB0_4
LBB0_5:
	testq	%r13, %rax
	je	LBB0_6
LBB0_8:
	movq	_E1000_I2CCMD_ERROR@GOTPCREL(%rip), %rax
	testq	%r13, (%rax)
	je	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_7
LBB0_2:
	movq	_E1000_I2CCMD_READY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%r13, %rax
	jne	LBB0_8
LBB0_6:
	leaq	L_.str(%rip), %rdi
LBB0_7:
	callq	_hw_dbg
	movq	_E1000_ERR_PHY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_10:
	rolw	$8, %r13w
	movzwl	%r13w, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_I2CCMD_REG_ADDR_SHIFT,8,3 ## @E1000_I2CCMD_REG_ADDR_SHIFT
	.comm	_E1000_I2CCMD_PHY_ADDR_SHIFT,8,3 ## @E1000_I2CCMD_PHY_ADDR_SHIFT
	.comm	_E1000_I2CCMD_OPCODE_READ,8,3   ## @E1000_I2CCMD_OPCODE_READ
	.comm	_E1000_I2CCMD,4,2               ## @E1000_I2CCMD
	.comm	_E1000_I2CCMD_PHY_TIMEOUT,8,3   ## @E1000_I2CCMD_PHY_TIMEOUT
	.comm	_E1000_I2CCMD_READY,8,3         ## @E1000_I2CCMD_READY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I2CCMD Read did not complete\n"

	.comm	_E1000_ERR_PHY,4,2              ## @E1000_ERR_PHY
	.comm	_E1000_I2CCMD_ERROR,8,3         ## @E1000_I2CCMD_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"I2CCMD Error bit set\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_read_phy_reg_i2c           ; -- Begin function igb_read_phy_reg_i2c
	.p2align	2
_igb_read_phy_reg_i2c:                  ; @igb_read_phy_reg_i2c
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
Lloh0:
	adrp	x8, _E1000_I2CCMD_REG_ADDR_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E1000_I2CCMD_REG_ADDR_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsl	x8, x1, x8
	ldr	x9, [x0]
Lloh3:
	adrp	x10, _E1000_I2CCMD_PHY_ADDR_SHIFT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _E1000_I2CCMD_PHY_ADDR_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	lsl	x9, x9, x10
Lloh6:
	adrp	x10, _E1000_I2CCMD_OPCODE_READ@GOTPAGE
Lloh7:
	ldr	x10, [x10, _E1000_I2CCMD_OPCODE_READ@GOTPAGEOFF]
	orr	x8, x9, x8
Lloh8:
	ldr	x9, [x10]
	orr	x20, x8, x9
Lloh9:
	adrp	x21, _E1000_I2CCMD@GOTPAGE
Lloh10:
	ldr	x21, [x21, _E1000_I2CCMD@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x20
	bl	_wr32
Lloh11:
	adrp	x22, _E1000_I2CCMD_PHY_TIMEOUT@GOTPAGE
Lloh12:
	ldr	x22, [x22, _E1000_I2CCMD_PHY_TIMEOUT@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x23, #0
Lloh13:
	adrp	x24, _E1000_I2CCMD_READY@GOTPAGE
Lloh14:
	ldr	x24, [x24, _E1000_I2CCMD_READY@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #50
	bl	_udelay
	ldr	w0, [x21]
	bl	_rd32
	mov	x20, x0
	ldr	x8, [x24]
	tst	x8, x0
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	ldr	x9, [x22]
	cmp	x23, x9
	b.lt	LBB0_2
LBB0_4:
	tst	x8, x20
	b.eq	LBB0_8
LBB0_5:
Lloh15:
	adrp	x8, _E1000_I2CCMD_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _E1000_I2CCMD_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	tst	x8, x20
	b.eq	LBB0_10
; %bb.6:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh20:
	adrp	x8, _E1000_I2CCMD_READY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _E1000_I2CCMD_READY@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	tst	x8, x20
	b.ne	LBB0_5
LBB0_8:
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
LBB0_9:
	bl	_hw_dbg
Lloh25:
	adrp	x8, _E1000_ERR_PHY@GOTPAGE
Lloh26:
	ldr	x8, [x8, _E1000_ERR_PHY@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_10:
	mov	w0, #0
	rev	w8, w20
	lsr	w8, w8, #16
	str	x8, [x19]
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_I2CCMD_REG_ADDR_SHIFT,8,3 ; @E1000_I2CCMD_REG_ADDR_SHIFT
	.comm	_E1000_I2CCMD_PHY_ADDR_SHIFT,8,3 ; @E1000_I2CCMD_PHY_ADDR_SHIFT
	.comm	_E1000_I2CCMD_OPCODE_READ,8,3   ; @E1000_I2CCMD_OPCODE_READ
	.comm	_E1000_I2CCMD,4,2               ; @E1000_I2CCMD
	.comm	_E1000_I2CCMD_PHY_TIMEOUT,8,3   ; @E1000_I2CCMD_PHY_TIMEOUT
	.comm	_E1000_I2CCMD_READY,8,3         ; @E1000_I2CCMD_READY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I2CCMD Read did not complete\n"

	.comm	_E1000_ERR_PHY,4,2              ; @E1000_ERR_PHY
	.comm	_E1000_I2CCMD_ERROR,8,3         ; @E1000_I2CCMD_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"I2CCMD Error bit set\n"

.subsections_via_symbols
