	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_read_phy_reg_igp           ## -- Begin function igb_read_phy_reg_igp
	.p2align	4, 0x90
_igb_read_phy_reg_igp:                  ## @igb_read_phy_reg_igp
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	*%rax
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	movq	_MAX_PHY_MULTI_PAGE_REG@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jge	LBB0_5
## %bb.4:
	movq	_IGP01E1000_PHY_PAGE_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_igb_write_phy_reg_mdic
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
LBB0_5:
	movq	_MAX_PHY_REG_ADDRESS@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_igb_read_phy_reg_mdic
	movq	%rax, %rbx
LBB0_6:
	movq	%r12, %rdi
	callq	*(%r12)
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PHY_MULTI_PAGE_REG,4,2     ## @MAX_PHY_MULTI_PAGE_REG
	.comm	_IGP01E1000_PHY_PAGE_SELECT,4,2 ## @IGP01E1000_PHY_PAGE_SELECT
	.comm	_MAX_PHY_REG_ADDRESS,4,2        ## @MAX_PHY_REG_ADDRESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_read_phy_reg_igp           ; -- Begin function igb_read_phy_reg_igp
	.p2align	2
_igb_read_phy_reg_igp:                  ; @igb_read_phy_reg_igp
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	blr	x8
	mov	x22, x0
	cbnz	x0, LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _MAX_PHY_MULTI_PAGE_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_PHY_MULTI_PAGE_REG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ge	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _IGP01E1000_PHY_PAGE_SELECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IGP01E1000_PHY_PAGE_SELECT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_igb_write_phy_reg_mdic
	mov	x22, x0
	cbnz	x0, LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _MAX_PHY_REG_ADDRESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_PHY_REG_ADDRESS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w1, w8, w21
	mov	x0, x19
	mov	x2, x20
	bl	_igb_read_phy_reg_mdic
	mov	x22, x0
LBB0_5:
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
	b	LBB0_7
LBB0_6:
	mov	x22, #0
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PHY_MULTI_PAGE_REG,4,2     ; @MAX_PHY_MULTI_PAGE_REG
	.comm	_IGP01E1000_PHY_PAGE_SELECT,4,2 ; @IGP01E1000_PHY_PAGE_SELECT
	.comm	_MAX_PHY_REG_ADDRESS,4,2        ; @MAX_PHY_REG_ADDRESS
.subsections_via_symbols
