	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igb_integrated_phy_loopback
_igb_integrated_phy_loopback:           ## @igb_integrated_phy_loopback
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$0, 16(%rdi)
	movq	(%rdi), %rax
	movq	_e1000_phy_m88@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_3
## %bb.1:
	movq	8(%rbx), %rax
	movq	_I210_I_PHY_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movl	$16704, %r14d                   ## imm = 0x4140
	xorl	%edx, %edx
	movq	_I347AT4_PAGE_SELECT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	_e1000_phy_82580@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.4:
	movl	$32833, %r14d                   ## imm = 0x8041
	movq	_I82580_PHY_LBK_CTRL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_M88E1000_PHY_SPEC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$2056, %edx                     ## imm = 0x808
	callq	_igb_write_phy_reg
	movl	$33088, %r14d                   ## imm = 0x8140
	movl	$37184, %edx                    ## imm = 0x9140
	movq	_PHY_CONTROL@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_igb_write_phy_reg
	movq	_PHY_CONTROL@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_igb_write_phy_reg
LBB0_8:
	movl	$50, %edi
	callq	_msleep
	movq	_PHY_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$16704, %edx                    ## imm = 0x4140
	callq	_igb_write_phy_reg
	movq	_E1000_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_rd32
	movq	_E1000_CTRL_SPD_SEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movq	_E1000_CTRL_FRCSPD@GOTPCREL(%rip), %rcx
	movq	_E1000_CTRL_FRCDPX@GOTPCREL(%rip), %rax
	movq	_E1000_CTRL_SPD_1000@GOTPCREL(%rip), %r10
	movq	_E1000_CTRL_FD@GOTPCREL(%rip), %r9
	movq	_E1000_CTRL_SLU@GOTPCREL(%rip), %r8
	movq	(%rbx), %rdx
	xorl	%edi, %edi
	cmpq	(%r15), %rdx
	jne	LBB0_10
## %bb.9:
	movq	_E1000_CTRL_ILOS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
LBB0_10:
	orl	(%rcx), %esi
	orl	(%rax), %esi
	orl	(%r10), %esi
	orl	(%r9), %esi
	orl	(%r8), %esi
	orl	%edi, %esi
	movl	(%r14), %edi
	callq	_wr32
	movq	(%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_igb_phy_disable_receiver
LBB0_12:
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_msleep
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_phy_m88,8,3              ## @e1000_phy_m88
	.comm	_I210_I_PHY_ID,8,3              ## @I210_I_PHY_ID
	.comm	_M88E1000_PHY_SPEC_CTRL,4,2     ## @M88E1000_PHY_SPEC_CTRL
	.comm	_PHY_CONTROL,4,2                ## @PHY_CONTROL
	.comm	_I347AT4_PAGE_SELECT,4,2        ## @I347AT4_PAGE_SELECT
	.comm	_e1000_phy_82580,8,3            ## @e1000_phy_82580
	.comm	_I82580_PHY_LBK_CTRL,4,2        ## @I82580_PHY_LBK_CTRL
	.comm	_E1000_CTRL,4,2                 ## @E1000_CTRL
	.comm	_E1000_CTRL_SPD_SEL,4,2         ## @E1000_CTRL_SPD_SEL
	.comm	_E1000_CTRL_FRCSPD,4,2          ## @E1000_CTRL_FRCSPD
	.comm	_E1000_CTRL_FRCDPX,4,2          ## @E1000_CTRL_FRCDPX
	.comm	_E1000_CTRL_SPD_1000,4,2        ## @E1000_CTRL_SPD_1000
	.comm	_E1000_CTRL_FD,4,2              ## @E1000_CTRL_FD
	.comm	_E1000_CTRL_SLU,4,2             ## @E1000_CTRL_SLU
	.comm	_E1000_CTRL_ILOS,4,2            ## @E1000_CTRL_ILOS
	.no_dead_strip	_igb_integrated_phy_loopback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igb_integrated_phy_loopback
_igb_integrated_phy_loopback:           ; @igb_integrated_phy_loopback
	.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
	mov	x19, x0
	str	wzr, [x0, #16]
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _e1000_phy_m88@GOTPAGE
Lloh1:
	ldr	x21, [x21, _e1000_phy_m88@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _I210_I_PHY_ID@GOTPAGE
Lloh3:
	ldr	x9, [x9, _I210_I_PHY_ID@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	mov	w2, #0
	mov	w20, #16704
Lloh5:
	adrp	x8, _I347AT4_PAGE_SELECT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I347AT4_PAGE_SELECT@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh7:
	adrp	x9, _e1000_phy_82580@GOTPAGE
Lloh8:
	ldr	x9, [x9, _e1000_phy_82580@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.4:
	mov	w20, #32833
Lloh10:
	adrp	x8, _I82580_PHY_LBK_CTRL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _I82580_PHY_LBK_CTRL@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh12:
	adrp	x8, _M88E1000_PHY_SPEC_CTRL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _M88E1000_PHY_SPEC_CTRL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #2056
	bl	_igb_write_phy_reg
	mov	w20, #33088
	mov	w2, #37184
Lloh15:
	adrp	x8, _PHY_CONTROL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PHY_CONTROL@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_igb_write_phy_reg
Lloh17:
	adrp	x8, _PHY_CONTROL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PHY_CONTROL@GOTPAGEOFF]
LBB0_7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_igb_write_phy_reg
LBB0_8:
	mov	w0, #50
	bl	_msleep
Lloh19:
	adrp	x8, _PHY_CONTROL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PHY_CONTROL@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #16704
	bl	_igb_write_phy_reg
Lloh22:
	adrp	x20, _E1000_CTRL@GOTPAGE
Lloh23:
	ldr	x20, [x20, _E1000_CTRL@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_rd32
Lloh24:
	adrp	x8, _E1000_CTRL_SPD_SEL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _E1000_CTRL_SPD_SEL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh27:
	adrp	x9, _E1000_CTRL_FRCSPD@GOTPAGE
Lloh28:
	ldr	x9, [x9, _E1000_CTRL_FRCSPD@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
Lloh30:
	adrp	x10, _E1000_CTRL_FRCDPX@GOTPAGE
Lloh31:
	ldr	x10, [x10, _E1000_CTRL_FRCDPX@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
Lloh33:
	adrp	x11, _E1000_CTRL_SPD_1000@GOTPAGE
Lloh34:
	ldr	x11, [x11, _E1000_CTRL_SPD_1000@GOTPAGEOFF]
Lloh35:
	ldr	w11, [x11]
Lloh36:
	adrp	x12, _E1000_CTRL_FD@GOTPAGE
Lloh37:
	ldr	x12, [x12, _E1000_CTRL_FD@GOTPAGEOFF]
Lloh38:
	ldr	w12, [x12]
Lloh39:
	adrp	x13, _E1000_CTRL_SLU@GOTPAGE
Lloh40:
	ldr	x13, [x13, _E1000_CTRL_SLU@GOTPAGEOFF]
Lloh41:
	ldr	w13, [x13]
	ldr	x14, [x19]
	ldr	x15, [x21]
Lloh42:
	adrp	x16, _E1000_CTRL_ILOS@GOTPAGE
Lloh43:
	ldr	x16, [x16, _E1000_CTRL_ILOS@GOTPAGEOFF]
Lloh44:
	ldr	w16, [x16]
	cmp	x14, x15
	csel	w14, w16, wzr, eq
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w8, w8, w12
	orr	w8, w8, w13
	orr	w1, w8, w14
	ldr	w0, [x20]
	bl	_wr32
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_igb_phy_disable_receiver
LBB0_10:
	mov	w0, #500
	bl	_msleep
	mov	w0, #0
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_phy_m88,8,3              ; @e1000_phy_m88
	.comm	_I210_I_PHY_ID,8,3              ; @I210_I_PHY_ID
	.comm	_M88E1000_PHY_SPEC_CTRL,4,2     ; @M88E1000_PHY_SPEC_CTRL
	.comm	_PHY_CONTROL,4,2                ; @PHY_CONTROL
	.comm	_I347AT4_PAGE_SELECT,4,2        ; @I347AT4_PAGE_SELECT
	.comm	_e1000_phy_82580,8,3            ; @e1000_phy_82580
	.comm	_I82580_PHY_LBK_CTRL,4,2        ; @I82580_PHY_LBK_CTRL
	.comm	_E1000_CTRL,4,2                 ; @E1000_CTRL
	.comm	_E1000_CTRL_SPD_SEL,4,2         ; @E1000_CTRL_SPD_SEL
	.comm	_E1000_CTRL_FRCSPD,4,2          ; @E1000_CTRL_FRCSPD
	.comm	_E1000_CTRL_FRCDPX,4,2          ; @E1000_CTRL_FRCDPX
	.comm	_E1000_CTRL_SPD_1000,4,2        ; @E1000_CTRL_SPD_1000
	.comm	_E1000_CTRL_FD,4,2              ; @E1000_CTRL_FD
	.comm	_E1000_CTRL_SLU,4,2             ; @E1000_CTRL_SLU
	.comm	_E1000_CTRL_ILOS,4,2            ; @E1000_CTRL_ILOS
	.no_dead_strip	_igb_integrated_phy_loopback
.subsections_via_symbols
