	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_phy_force_speed_duplex_igp ## -- Begin function igb_phy_force_speed_duplex_igp
	.p2align	4, 0x90
_igb_phy_force_speed_duplex_igp:        ## @igb_phy_force_speed_duplex_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_PHY_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	callq	*16(%rdi)
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	leaq	-28(%rbp), %rsi
	movq	%r14, %rdi
	callq	_igb_phy_force_speed_duplex_setup
	movl	(%r15), %esi
	movl	-28(%rbp), %edx
	movq	%r14, %rdi
	callq	*8(%r14)
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.2:
	movq	_IGP01E1000_PHY_PORT_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	callq	*16(%r14)
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.3:
	movq	_IGP01E1000_PSCR_AUTO_MDIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IGP01E1000_PSCR_FORCE_MDI_MDIX@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	notl	%edx
	andl	-28(%rbp), %edx
	movl	%edx, -28(%rbp)
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	*8(%r14)
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	-28(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_hw_dbg
	movl	$1, %edi
	callq	_udelay
	cmpq	$0, (%r14)
	je	LBB0_9
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_hw_dbg
	movq	_PHY_FORCE_LIMIT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-32(%rbp), %rcx
	movq	%r14, %rdi
	movl	$10000, %edx                    ## imm = 0x2710
	callq	_igb_phy_has_link
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:
	cmpl	$0, -32(%rbp)
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_hw_dbg
LBB0_8:
	movl	(%r15), %esi
	leaq	-32(%rbp), %rcx
	movq	%r14, %rdi
	movl	$10000, %edx                    ## imm = 0x2710
	callq	_igb_phy_has_link
	movq	%rax, %rbx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_CONTROL,4,2                ## @PHY_CONTROL
	.comm	_IGP01E1000_PHY_PORT_CTRL,4,2   ## @IGP01E1000_PHY_PORT_CTRL
	.comm	_IGP01E1000_PSCR_AUTO_MDIX,4,2  ## @IGP01E1000_PSCR_AUTO_MDIX
	.comm	_IGP01E1000_PSCR_FORCE_MDI_MDIX,4,2 ## @IGP01E1000_PSCR_FORCE_MDI_MDIX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IGP PSCR: %X\n"

L_.str.1:                               ## @.str.1
	.asciz	"Waiting for forced speed/duplex link on IGP phy.\n"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_phy_force_speed_duplex_igp ; -- Begin function igb_phy_force_speed_duplex_igp
	.p2align	2
_igb_phy_force_speed_duplex_igp:        ; @igb_phy_force_speed_duplex_igp
	.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, #16]
Lloh0:
	adrp	x20, _PHY_CONTROL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PHY_CONTROL@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	blr	x8
	cbnz	x0, LBB0_4
; %bb.1:
	add	x1, sp, #12
	mov	x0, x19
	bl	_igb_phy_force_speed_duplex_setup
	ldr	x8, [x19, #8]
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x19, #16]
Lloh2:
	adrp	x20, _IGP01E1000_PHY_PORT_CTRL@GOTPAGE
Lloh3:
	ldr	x20, [x20, _IGP01E1000_PHY_PORT_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_4
; %bb.3:
Lloh4:
	adrp	x8, _IGP01E1000_PSCR_AUTO_MDIX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IGP01E1000_PSCR_AUTO_MDIX@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
Lloh7:
	adrp	x10, _IGP01E1000_PSCR_FORCE_MDI_MDIX@GOTPAGE
Lloh8:
	ldr	x10, [x10, _IGP01E1000_PSCR_FORCE_MDI_MDIX@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	orr	w8, w8, w10
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	x8, [x19, #8]
	ldr	w1, [x20]
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hw_dbg
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x19]
	cbz	x8, LBB0_10
; %bb.6:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_hw_dbg
Lloh14:
	adrp	x20, _PHY_FORCE_LIMIT@GOTPAGE
Lloh15:
	ldr	x20, [x20, _PHY_FORCE_LIMIT@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #10000
	bl	_igb_phy_has_link
	cbnz	x0, LBB0_4
; %bb.7:
	ldr	w8, [sp, #8]
	cbnz	w8, LBB0_9
; %bb.8:
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_hw_dbg
LBB0_9:
	ldr	w1, [x20]
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #10000
	bl	_igb_phy_has_link
	b	LBB0_4
LBB0_10:
	mov	x0, #0
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_CONTROL,4,2                ; @PHY_CONTROL
	.comm	_IGP01E1000_PHY_PORT_CTRL,4,2   ; @IGP01E1000_PHY_PORT_CTRL
	.comm	_IGP01E1000_PSCR_AUTO_MDIX,4,2  ; @IGP01E1000_PSCR_AUTO_MDIX
	.comm	_IGP01E1000_PSCR_FORCE_MDI_MDIX,4,2 ; @IGP01E1000_PSCR_FORCE_MDI_MDIX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IGP PSCR: %X\n"

l_.str.1:                               ; @.str.1
	.asciz	"Waiting for forced speed/duplex link on IGP phy.\n"

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

.subsections_via_symbols
