	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igc_config_fc_after_link_up    ## -- Begin function igc_config_fc_after_link_up
	.p2align	4, 0x90
_igc_config_fc_after_link_up:           ## @igc_config_fc_after_link_up
	.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	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpq	$0, 40(%rdi)
	je	LBB0_3
## %bb.1:
	movq	48(%rbx), %rax
	movq	_igc_media_type_copper@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_igc_force_mac_fc
	testq	%rax, %rax
	je	LBB0_3
LBB0_31:
	leaq	L_.str(%rip), %rdi
LBB0_32:
	callq	_hw_dbg
	jmp	LBB0_33
LBB0_3:
	movq	48(%rbx), %rax
	movq	_igc_media_type_copper@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_33
## %bb.4:
	cmpq	$0, 32(%rbx)
	je	LBB0_33
## %bb.5:
	movq	_PHY_STATUS@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*56(%rbx)
	testq	%rax, %rax
	jne	LBB0_33
## %bb.6:
	movl	(%r14), %esi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*56(%rbx)
	testq	%rax, %rax
	je	LBB0_7
LBB0_33:
	xorl	%eax, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	_MII_SR_AUTONEG_COMPLETE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, -32(%rbp)
	je	LBB0_8
## %bb.9:
	movq	_PHY_AUTONEG_ADV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*56(%rbx)
	testq	%rax, %rax
	jne	LBB0_33
## %bb.10:
	movq	_PHY_LP_ABILITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*56(%rbx)
	testq	%rax, %rax
	jne	LBB0_33
## %bb.11:
	movq	-48(%rbp), %rax
	movq	_NWAY_AR_PAUSE@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	je	LBB0_15
## %bb.12:
	movq	-24(%rbp), %rcx
	movq	_NWAY_LPAR_PAUSE@GOTPCREL(%rip), %rdx
	testq	%rcx, (%rdx)
	je	LBB0_19
## %bb.13:
	movq	(%rbx), %rax
	movq	_igc_fc_full@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_25
## %bb.14:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_26
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_32
LBB0_15:
	movq	_NWAY_AR_ASM_DIR@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	je	LBB0_21
## %bb.16:
	movq	-24(%rbp), %rax
	movq	_NWAY_LPAR_PAUSE@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	je	LBB0_21
## %bb.17:
	movq	_NWAY_LPAR_ASM_DIR@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	je	LBB0_21
## %bb.18:
	movq	_igc_fc_tx_pause@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_26
LBB0_19:
	movq	_NWAY_AR_ASM_DIR@GOTPCREL(%rip), %rdx
	testq	%rax, (%rdx)
	je	LBB0_21
## %bb.20:
	movq	_NWAY_LPAR_ASM_DIR@GOTPCREL(%rip), %rax
	testq	%rcx, (%rax)
	jne	LBB0_25
LBB0_21:
	movq	(%rbx), %rcx
	movq	_igc_fc_none@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	je	LBB0_24
## %bb.22:
	movq	_igc_fc_tx_pause@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_24
## %bb.23:
	cmpq	$0, 16(%rbx)
	je	LBB0_25
LBB0_24:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_26
LBB0_25:
	movq	_igc_fc_rx_pause@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	L_.str.3(%rip), %rdi
LBB0_26:
	movq	%rax, 8(%rbx)
	callq	_hw_dbg
	leaq	-56(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*24(%rbx)
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_32
LBB0_28:
	movq	-40(%rbp), %rax
	movq	_HALF_DUPLEX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_30
## %bb.29:
	movq	_igc_fc_none@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_30:
	movq	%rbx, %rdi
	callq	_igc_force_mac_fc
	testq	%rax, %rax
	jne	LBB0_31
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.comm	_igc_media_type_copper,8,3      ## @igc_media_type_copper
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error forcing flow control settings\n"

	.comm	_PHY_STATUS,4,2                 ## @PHY_STATUS
	.comm	_MII_SR_AUTONEG_COMPLETE,8,3    ## @MII_SR_AUTONEG_COMPLETE
L_.str.1:                               ## @.str.1
	.asciz	"Copper PHY and Auto Neg has not completed.\n"

	.comm	_PHY_AUTONEG_ADV,4,2            ## @PHY_AUTONEG_ADV
	.comm	_PHY_LP_ABILITY,4,2             ## @PHY_LP_ABILITY
	.comm	_NWAY_AR_PAUSE,8,3              ## @NWAY_AR_PAUSE
	.comm	_NWAY_LPAR_PAUSE,8,3            ## @NWAY_LPAR_PAUSE
	.comm	_igc_fc_full,8,3                ## @igc_fc_full
L_.str.2:                               ## @.str.2
	.asciz	"Flow Control = FULL.\n"

	.comm	_igc_fc_rx_pause,8,3            ## @igc_fc_rx_pause
L_.str.3:                               ## @.str.3
	.asciz	"Flow Control = RX PAUSE frames only.\n"

	.comm	_NWAY_AR_ASM_DIR,8,3            ## @NWAY_AR_ASM_DIR
	.comm	_NWAY_LPAR_ASM_DIR,8,3          ## @NWAY_LPAR_ASM_DIR
	.comm	_igc_fc_tx_pause,8,3            ## @igc_fc_tx_pause
L_.str.4:                               ## @.str.4
	.asciz	"Flow Control = TX PAUSE frames only.\n"

	.comm	_igc_fc_none,8,3                ## @igc_fc_none
L_.str.5:                               ## @.str.5
	.asciz	"Flow Control = NONE.\n"

L_.str.6:                               ## @.str.6
	.asciz	"Error getting link speed and duplex\n"

	.comm	_HALF_DUPLEX,8,3                ## @HALF_DUPLEX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igc_config_fc_after_link_up    ; -- Begin function igc_config_fc_after_link_up
	.p2align	2
_igc_config_fc_after_link_up:           ; @igc_config_fc_after_link_up
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, #40]
Lloh0:
	adrp	x20, _igc_media_type_copper@GOTPAGE
Lloh1:
	ldr	x20, [x20, _igc_media_type_copper@GOTPAGEOFF]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x8, [x19, #48]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_igc_force_mac_fc
	cbz	x0, LBB0_5
LBB0_3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	bl	_hw_dbg
	b	LBB0_9
LBB0_5:
	ldr	x8, [x19, #48]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.6:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	x8, [x19, #56]
Lloh4:
	adrp	x20, _PHY_STATUS@GOTPAGE
Lloh5:
	ldr	x20, [x20, _PHY_STATUS@GOTPAGEOFF]
	ldr	w1, [x20]
	sub	x2, x29, #24
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_9
; %bb.8:
	ldr	x8, [x19, #56]
	ldr	w1, [x20]
	sub	x2, x29, #24
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_10
LBB0_9:
	mov	x0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
	ldur	x8, [x29, #-24]
Lloh6:
	adrp	x9, _MII_SR_AUTONEG_COMPLETE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MII_SR_AUTONEG_COMPLETE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	tst	x9, x8
	b.eq	LBB0_17
; %bb.11:
	ldr	x8, [x19, #56]
Lloh9:
	adrp	x9, _PHY_AUTONEG_ADV@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PHY_AUTONEG_ADV@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	add	x2, sp, #32
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_9
; %bb.12:
	ldr	x8, [x19, #56]
Lloh12:
	adrp	x9, _PHY_LP_ABILITY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PHY_LP_ABILITY@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x9]
	add	x2, sp, #24
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_9
; %bb.13:
	ldr	x8, [sp, #32]
Lloh15:
	adrp	x9, _NWAY_AR_PAUSE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NWAY_AR_PAUSE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	tst	x9, x8
	b.eq	LBB0_18
; %bb.14:
	ldr	x9, [sp, #24]
Lloh18:
	adrp	x10, _NWAY_LPAR_PAUSE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _NWAY_LPAR_PAUSE@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	tst	x10, x9
	b.eq	LBB0_22
; %bb.15:
	ldr	x8, [x19]
Lloh21:
	adrp	x9, _igc_fc_full@GOTPAGE
Lloh22:
	ldr	x9, [x9, _igc_fc_full@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_28
; %bb.16:
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_29
LBB0_17:
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_18:
Lloh28:
	adrp	x9, _NWAY_AR_ASM_DIR@GOTPAGE
Lloh29:
	ldr	x9, [x9, _NWAY_AR_ASM_DIR@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	tst	x9, x8
	b.eq	LBB0_24
; %bb.19:
	ldr	x8, [sp, #24]
Lloh31:
	adrp	x9, _NWAY_LPAR_PAUSE@GOTPAGE
Lloh32:
	ldr	x9, [x9, _NWAY_LPAR_PAUSE@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	tst	x9, x8
	b.eq	LBB0_24
; %bb.20:
Lloh34:
	adrp	x9, _NWAY_LPAR_ASM_DIR@GOTPAGE
Lloh35:
	ldr	x9, [x9, _NWAY_LPAR_ASM_DIR@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	tst	x9, x8
	b.eq	LBB0_24
; %bb.21:
Lloh37:
	adrp	x8, _igc_fc_tx_pause@GOTPAGE
Lloh38:
	ldr	x8, [x8, _igc_fc_tx_pause@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
Lloh40:
	adrp	x0, l_.str.4@PAGE
Lloh41:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_29
LBB0_22:
Lloh42:
	adrp	x10, _NWAY_AR_ASM_DIR@GOTPAGE
Lloh43:
	ldr	x10, [x10, _NWAY_AR_ASM_DIR@GOTPAGEOFF]
Lloh44:
	ldr	x10, [x10]
	tst	x10, x8
	b.eq	LBB0_24
; %bb.23:
Lloh45:
	adrp	x8, _NWAY_LPAR_ASM_DIR@GOTPAGE
Lloh46:
	ldr	x8, [x8, _NWAY_LPAR_ASM_DIR@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
	tst	x8, x9
	b.ne	LBB0_28
LBB0_24:
	ldr	x9, [x19]
Lloh48:
	adrp	x8, _igc_fc_none@GOTPAGE
Lloh49:
	ldr	x8, [x8, _igc_fc_none@GOTPAGEOFF]
Lloh50:
	ldr	x8, [x8]
	cmp	x9, x8
	b.eq	LBB0_27
; %bb.25:
Lloh51:
	adrp	x10, _igc_fc_tx_pause@GOTPAGE
Lloh52:
	ldr	x10, [x10, _igc_fc_tx_pause@GOTPAGEOFF]
Lloh53:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_27
; %bb.26:
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_28
LBB0_27:
Lloh54:
	adrp	x0, l_.str.5@PAGE
Lloh55:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_29
LBB0_28:
Lloh56:
	adrp	x8, _igc_fc_rx_pause@GOTPAGE
Lloh57:
	ldr	x8, [x8, _igc_fc_rx_pause@GOTPAGEOFF]
Lloh58:
	ldr	x8, [x8]
Lloh59:
	adrp	x0, l_.str.3@PAGE
Lloh60:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_29:
	str	x8, [x19, #8]
	bl	_hw_dbg
	ldr	x8, [x19, #24]
	add	x1, sp, #16
	add	x2, sp, #8
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_31
; %bb.30:
Lloh61:
	adrp	x0, l_.str.6@PAGE
Lloh62:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_4
LBB0_31:
	ldr	x8, [sp, #8]
Lloh63:
	adrp	x9, _HALF_DUPLEX@GOTPAGE
Lloh64:
	ldr	x9, [x9, _HALF_DUPLEX@GOTPAGEOFF]
Lloh65:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_33
; %bb.32:
Lloh66:
	adrp	x8, _igc_fc_none@GOTPAGE
Lloh67:
	ldr	x8, [x8, _igc_fc_none@GOTPAGEOFF]
Lloh68:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_33:
	mov	x0, x19
	bl	_igc_force_mac_fc
	cbnz	x0, LBB0_3
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.cfi_endproc
                                        ; -- End function
	.comm	_igc_media_type_copper,8,3      ; @igc_media_type_copper
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error forcing flow control settings\n"

	.comm	_PHY_STATUS,4,2                 ; @PHY_STATUS
	.comm	_MII_SR_AUTONEG_COMPLETE,8,3    ; @MII_SR_AUTONEG_COMPLETE
l_.str.1:                               ; @.str.1
	.asciz	"Copper PHY and Auto Neg has not completed.\n"

	.comm	_PHY_AUTONEG_ADV,4,2            ; @PHY_AUTONEG_ADV
	.comm	_PHY_LP_ABILITY,4,2             ; @PHY_LP_ABILITY
	.comm	_NWAY_AR_PAUSE,8,3              ; @NWAY_AR_PAUSE
	.comm	_NWAY_LPAR_PAUSE,8,3            ; @NWAY_LPAR_PAUSE
	.comm	_igc_fc_full,8,3                ; @igc_fc_full
l_.str.2:                               ; @.str.2
	.asciz	"Flow Control = FULL.\n"

	.comm	_igc_fc_rx_pause,8,3            ; @igc_fc_rx_pause
l_.str.3:                               ; @.str.3
	.asciz	"Flow Control = RX PAUSE frames only.\n"

	.comm	_NWAY_AR_ASM_DIR,8,3            ; @NWAY_AR_ASM_DIR
	.comm	_NWAY_LPAR_ASM_DIR,8,3          ; @NWAY_LPAR_ASM_DIR
	.comm	_igc_fc_tx_pause,8,3            ; @igc_fc_tx_pause
l_.str.4:                               ; @.str.4
	.asciz	"Flow Control = TX PAUSE frames only.\n"

	.comm	_igc_fc_none,8,3                ; @igc_fc_none
l_.str.5:                               ; @.str.5
	.asciz	"Flow Control = NONE.\n"

l_.str.6:                               ; @.str.6
	.asciz	"Error getting link speed and duplex\n"

	.comm	_HALF_DUPLEX,8,3                ; @HALF_DUPLEX
.subsections_via_symbols
