	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_phy_force_speed_duplex_m88 ## -- Begin function igb_phy_force_speed_duplex_m88
	.p2align	4, 0x90
_igb_phy_force_speed_duplex_m88:        ## @igb_phy_force_speed_duplex_m88
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_e1000_phy_i210@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
LBB0_1:
	movq	_PHY_CONTROL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*24(%rbx)
	testq	%rax, %rax
	jne	LBB0_13
## %bb.2:
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_igb_phy_force_speed_duplex_setup
	movl	(%r14), %esi
	movl	-20(%rbp), %edx
	movq	%rbx, %rdi
	callq	*16(%rbx)
	testq	%rax, %rax
	jne	LBB0_13
## %bb.3:
	movq	%rbx, %rdi
	callq	_igb_phy_sw_reset
	testq	%rax, %rax
	jne	LBB0_13
## %bb.4:
	cmpq	$0, 32(%rbx)
	je	LBB0_17
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_hw_dbg
	movq	_PHY_FORCE_LIMIT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-24(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$100000, %edx                   ## imm = 0x186A0
	callq	_igb_phy_has_link
	testq	%rax, %rax
	jne	LBB0_13
## %bb.6:
	cmpl	$0, -24(%rbp)
	jne	LBB0_16
## %bb.7:
	movl	8(%rbx), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	jb	LBB0_15
## %bb.8:
	movq	(%rbx), %rax
	movq	_e1000_phy_m88@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.9:
	movq	_M88E1000_PHY_PAGE_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$29, %edx
	callq	*16(%rbx)
	testq	%rax, %rax
	jne	LBB0_13
## %bb.10:
	movq	%rbx, %rdi
	callq	_igb_phy_reset_dsp
	testq	%rax, %rax
	jne	LBB0_13
	jmp	LBB0_16
LBB0_11:
	movq	_M88E1000_PHY_SPEC_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*24(%rbx)
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movq	_M88E1000_PSCR_AUTO_X_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-20(%rbp), %edx
	movl	%edx, -20(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	*16(%rbx)
	testq	%rax, %rax
	je	LBB0_14
LBB0_13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_14:
	movl	-20(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_hw_dbg
	jmp	LBB0_1
LBB0_15:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_hw_dbg
LBB0_16:
	movl	(%r14), %esi
	leaq	-24(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$100000, %edx                   ## imm = 0x186A0
	callq	_igb_phy_has_link
	testq	%rax, %rax
	jne	LBB0_13
LBB0_17:
	movq	(%rbx), %rax
	movq	_e1000_phy_m88@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.18:
	movl	8(%rbx), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	jae	LBB0_21
LBB0_20:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_21:
	movq	_M88E1000_EXT_PHY_SPEC_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*24(%rbx)
	testq	%rax, %rax
	jne	LBB0_13
## %bb.22:
	movq	_M88E1000_EPSCR_TX_CLK_25@GOTPCREL(%rip), %rax
	movl	-20(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -20(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	*16(%rbx)
	testq	%rax, %rax
	jne	LBB0_13
## %bb.23:
	movq	_M88E1000_PHY_SPEC_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*24(%rbx)
	testq	%rax, %rax
	jne	LBB0_13
## %bb.24:
	movq	_M88E1000_PSCR_ASSERT_CRS_ON_TX@GOTPCREL(%rip), %rax
	movl	-20(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -20(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	*16(%rbx)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_phy_i210,8,3             ## @e1000_phy_i210
	.comm	_M88E1000_PHY_SPEC_CTRL,4,2     ## @M88E1000_PHY_SPEC_CTRL
	.comm	_M88E1000_PSCR_AUTO_X_MODE,4,2  ## @M88E1000_PSCR_AUTO_X_MODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"M88E1000 PSCR: %X\n"

	.comm	_PHY_CONTROL,4,2                ## @PHY_CONTROL
L_.str.1:                               ## @.str.1
	.asciz	"Waiting for forced speed/duplex link on M88 phy.\n"

	.comm	_PHY_FORCE_LIMIT,4,2            ## @PHY_FORCE_LIMIT
	.comm	_e1000_phy_m88,8,3              ## @e1000_phy_m88
L_.str.2:                               ## @.str.2
	.asciz	"Link taking longer than expected.\n"

	.comm	_M88E1000_PHY_PAGE_SELECT,4,2   ## @M88E1000_PHY_PAGE_SELECT
	.comm	_M88E1000_EXT_PHY_SPEC_CTRL,4,2 ## @M88E1000_EXT_PHY_SPEC_CTRL
	.comm	_M88E1000_EPSCR_TX_CLK_25,4,2   ## @M88E1000_EPSCR_TX_CLK_25
	.comm	_M88E1000_PSCR_ASSERT_CRS_ON_TX,4,2 ## @M88E1000_PSCR_ASSERT_CRS_ON_TX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_phy_force_speed_duplex_m88 ; -- Begin function igb_phy_force_speed_duplex_m88
	.p2align	2
_igb_phy_force_speed_duplex_m88:        ; @igb_phy_force_speed_duplex_m88
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _e1000_phy_i210@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_phy_i210@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
LBB0_1:
	ldr	x8, [x19, #24]
Lloh3:
	adrp	x20, _PHY_CONTROL@GOTPAGE
Lloh4:
	ldr	x20, [x20, _PHY_CONTROL@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_13
; %bb.2:
	add	x1, sp, #12
	mov	x0, x19
	bl	_igb_phy_force_speed_duplex_setup
	ldr	x8, [x19, #16]
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_13
; %bb.3:
	mov	x0, x19
	bl	_igb_phy_sw_reset
	cbnz	x0, LBB0_13
; %bb.4:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_17
; %bb.5:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_hw_dbg
Lloh7:
	adrp	x20, _PHY_FORCE_LIMIT@GOTPAGE
Lloh8:
	ldr	x20, [x20, _PHY_FORCE_LIMIT@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #34464
	movk	w2, #1, lsl #16
	bl	_igb_phy_has_link
	cbnz	x0, LBB0_13
; %bb.6:
	ldr	w8, [sp, #8]
	cbnz	w8, LBB0_16
; %bb.7:
	ldr	w8, [x19, #8]
	sub	w8, w8, #128
	cmp	w8, #5
	b.lo	LBB0_15
; %bb.8:
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _e1000_phy_m88@GOTPAGE
Lloh10:
	ldr	x9, [x9, _e1000_phy_m88@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.9:
	ldr	x8, [x19, #16]
Lloh12:
	adrp	x9, _M88E1000_PHY_PAGE_SELECT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _M88E1000_PHY_PAGE_SELECT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x9]
	mov	x0, x19
	mov	w2, #29
	blr	x8
	cbnz	x0, LBB0_13
; %bb.10:
	mov	x0, x19
	bl	_igb_phy_reset_dsp
	cbnz	x0, LBB0_13
	b	LBB0_16
LBB0_11:
	ldr	x8, [x19, #24]
Lloh15:
	adrp	x20, _M88E1000_PHY_SPEC_CTRL@GOTPAGE
Lloh16:
	ldr	x20, [x20, _M88E1000_PHY_SPEC_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_13
; %bb.12:
Lloh17:
	adrp	x8, _M88E1000_PSCR_AUTO_X_MODE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _M88E1000_PSCR_AUTO_X_MODE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	x8, [x19, #16]
	ldr	w1, [x20]
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_14
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_14:
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hw_dbg
	b	LBB0_1
LBB0_15:
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_hw_dbg
LBB0_16:
	ldr	w1, [x20]
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #34464
	movk	w2, #1, lsl #16
	bl	_igb_phy_has_link
	cbnz	x0, LBB0_13
LBB0_17:
	ldr	x8, [x19]
Lloh24:
	adrp	x9, _e1000_phy_m88@GOTPAGE
Lloh25:
	ldr	x9, [x9, _e1000_phy_m88@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.18:
	ldr	w8, [x19, #8]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hs	LBB0_20
LBB0_19:
	mov	x0, #0
	b	LBB0_13
LBB0_20:
	ldr	x8, [x19, #24]
Lloh27:
	adrp	x20, _M88E1000_EXT_PHY_SPEC_CTRL@GOTPAGE
Lloh28:
	ldr	x20, [x20, _M88E1000_EXT_PHY_SPEC_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_13
; %bb.21:
Lloh29:
	adrp	x8, _M88E1000_EPSCR_TX_CLK_25@GOTPAGE
Lloh30:
	ldr	x8, [x8, _M88E1000_EPSCR_TX_CLK_25@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	x8, [x19, #16]
	ldr	w1, [x20]
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_13
; %bb.22:
	ldr	x8, [x19, #24]
Lloh32:
	adrp	x20, _M88E1000_PHY_SPEC_CTRL@GOTPAGE
Lloh33:
	ldr	x20, [x20, _M88E1000_PHY_SPEC_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_13
; %bb.23:
Lloh34:
	adrp	x8, _M88E1000_PSCR_ASSERT_CRS_ON_TX@GOTPAGE
Lloh35:
	ldr	x8, [x8, _M88E1000_PSCR_ASSERT_CRS_ON_TX@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	x8, [x19, #16]
	ldr	w1, [x20]
	mov	x0, x19
	blr	x8
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_phy_i210,8,3             ; @e1000_phy_i210
	.comm	_M88E1000_PHY_SPEC_CTRL,4,2     ; @M88E1000_PHY_SPEC_CTRL
	.comm	_M88E1000_PSCR_AUTO_X_MODE,4,2  ; @M88E1000_PSCR_AUTO_X_MODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"M88E1000 PSCR: %X\n"

	.comm	_PHY_CONTROL,4,2                ; @PHY_CONTROL
l_.str.1:                               ; @.str.1
	.asciz	"Waiting for forced speed/duplex link on M88 phy.\n"

	.comm	_PHY_FORCE_LIMIT,4,2            ; @PHY_FORCE_LIMIT
	.comm	_e1000_phy_m88,8,3              ; @e1000_phy_m88
l_.str.2:                               ; @.str.2
	.asciz	"Link taking longer than expected.\n"

	.comm	_M88E1000_PHY_PAGE_SELECT,4,2   ; @M88E1000_PHY_PAGE_SELECT
	.comm	_M88E1000_EXT_PHY_SPEC_CTRL,4,2 ; @M88E1000_EXT_PHY_SPEC_CTRL
	.comm	_M88E1000_EPSCR_TX_CLK_25,4,2   ; @M88E1000_EPSCR_TX_CLK_25
	.comm	_M88E1000_PSCR_ASSERT_CRS_ON_TX,4,2 ; @M88E1000_PSCR_ASSERT_CRS_ON_TX
.subsections_via_symbols
