	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sfx7101_check_bad_lp
_sfx7101_check_bad_lp:                  ## @sfx7101_check_bad_lp
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	testl	%esi, %esi
	je	LBB0_7
LBB0_1:
	xorl	%eax, %eax
LBB0_2:
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	je	LBB0_12
## %bb.3:
	movzbl	%al, %r13d
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.4:
	movq	_MAX_BAD_LP_TRIES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_12
LBB0_5:
	movq	_MDIO_MMD_PMAPMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PMA_PMD_LED_OVERR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ef4_mdio_read
	movq	_PMA_PMD_LED_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movq	_PMA_PMD_LED_RX_LBN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	%cl, %r14d
	notl	%r14d
	andl	%eax, %r14d
	testl	%r13d, %r13d
	je	LBB0_10
## %bb.6:
	movq	_PMA_PMD_LED_FLASH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	callq	_netif_err
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_11
LBB0_7:
	movq	_MDIO_MMD_AN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MDIO_STAT1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ef4_mdio_read
	movq	_MDIO_AN_STAT1_LPABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.8:
	movq	_MDIO_AN_STAT1_COMPLETE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_1
## %bb.13:
	incl	(%r12)
	movb	$1, %al
	jmp	LBB0_2
LBB0_10:
	movq	_PMA_PMD_LED_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_11:
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	orl	%r14d, %ebx
	movq	_MDIO_MMD_PMAPMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PMA_PMD_LED_OVERR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%ebx, %ecx
	callq	_ef4_mdio_write
	movl	%r13d, (%r12)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_MMD_AN,4,2                ## @MDIO_MMD_AN
	.comm	_MDIO_STAT1,4,2                 ## @MDIO_STAT1
	.comm	_MDIO_AN_STAT1_LPABLE,4,2       ## @MDIO_AN_STAT1_LPABLE
	.comm	_MDIO_AN_STAT1_COMPLETE,4,2     ## @MDIO_AN_STAT1_COMPLETE
	.comm	_MAX_BAD_LP_TRIES,4,2           ## @MAX_BAD_LP_TRIES
	.comm	_MDIO_MMD_PMAPMD,4,2            ## @MDIO_MMD_PMAPMD
	.comm	_PMA_PMD_LED_OVERR_REG,4,2      ## @PMA_PMD_LED_OVERR_REG
	.comm	_PMA_PMD_LED_MASK,4,2           ## @PMA_PMD_LED_MASK
	.comm	_PMA_PMD_LED_RX_LBN,4,2         ## @PMA_PMD_LED_RX_LBN
	.comm	_PMA_PMD_LED_OFF,4,2            ## @PMA_PMD_LED_OFF
	.comm	_PMA_PMD_LED_FLASH,4,2          ## @PMA_PMD_LED_FLASH
	.comm	_link,4,2                       ## @link
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"appears to be plugged into a port that is not 10GBASE-T capable. The PHY supports 10GBASE-T ONLY, so no link can be established\n"

	.no_dead_strip	_sfx7101_check_bad_lp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sfx7101_check_bad_lp
_sfx7101_check_bad_lp:                  ; @sfx7101_check_bad_lp
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x20, [x0, #8]
	cbz	w1, LBB0_6
LBB0_1:
	mov	w21, #0
	ldr	w8, [x20]
	cbz	w8, LBB0_11
LBB0_2:
	cbz	w21, LBB0_4
; %bb.3:
Lloh0:
	adrp	x9, _MAX_BAD_LP_TRIES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_BAD_LP_TRIES@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_11
LBB0_4:
Lloh3:
	adrp	x22, _MDIO_MMD_PMAPMD@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MDIO_MMD_PMAPMD@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh5:
	adrp	x23, _PMA_PMD_LED_OVERR_REG@GOTPAGE
Lloh6:
	ldr	x23, [x23, _PMA_PMD_LED_OVERR_REG@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_ef4_mdio_read
Lloh7:
	adrp	x8, _PMA_PMD_LED_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PMA_PMD_LED_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _PMA_PMD_LED_RX_LBN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PMA_PMD_LED_RX_LBN@GOTPAGEOFF]
Lloh12:
	ldr	w24, [x9]
	lsl	w8, w8, w24
	bic	w25, w0, w8
	tbz	w21, #0, LBB0_9
; %bb.5:
Lloh13:
	adrp	x8, _PMA_PMD_LED_FLASH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PMA_PMD_LED_FLASH@GOTPAGEOFF]
Lloh15:
	ldr	w26, [x8]
Lloh16:
	adrp	x8, _link@GOTPAGE
Lloh17:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh19:
	adrp	x3, l_.str@PAGE
Lloh20:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_err
	b	LBB0_10
LBB0_6:
Lloh21:
	adrp	x8, _MDIO_MMD_AN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MDIO_MMD_AN@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _MDIO_STAT1@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MDIO_STAT1@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ef4_mdio_read
Lloh27:
	adrp	x8, _MDIO_AN_STAT1_LPABLE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MDIO_AN_STAT1_LPABLE@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.7:
Lloh30:
	adrp	x8, _MDIO_AN_STAT1_COMPLETE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MDIO_AN_STAT1_COMPLETE@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_1
; %bb.8:
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	mov	w21, #1
	ldr	w8, [x20]
	cbnz	w8, LBB0_2
	b	LBB0_11
LBB0_9:
Lloh33:
	adrp	x8, _PMA_PMD_LED_OFF@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PMA_PMD_LED_OFF@GOTPAGEOFF]
Lloh35:
	ldr	w26, [x8]
LBB0_10:
	lsl	w8, w26, w24
	orr	w3, w8, w25
	ldr	w1, [x22]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_ef4_mdio_write
	str	w21, [x20]
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_MMD_AN,4,2                ; @MDIO_MMD_AN
	.comm	_MDIO_STAT1,4,2                 ; @MDIO_STAT1
	.comm	_MDIO_AN_STAT1_LPABLE,4,2       ; @MDIO_AN_STAT1_LPABLE
	.comm	_MDIO_AN_STAT1_COMPLETE,4,2     ; @MDIO_AN_STAT1_COMPLETE
	.comm	_MAX_BAD_LP_TRIES,4,2           ; @MAX_BAD_LP_TRIES
	.comm	_MDIO_MMD_PMAPMD,4,2            ; @MDIO_MMD_PMAPMD
	.comm	_PMA_PMD_LED_OVERR_REG,4,2      ; @PMA_PMD_LED_OVERR_REG
	.comm	_PMA_PMD_LED_MASK,4,2           ; @PMA_PMD_LED_MASK
	.comm	_PMA_PMD_LED_RX_LBN,4,2         ; @PMA_PMD_LED_RX_LBN
	.comm	_PMA_PMD_LED_OFF,4,2            ; @PMA_PMD_LED_OFF
	.comm	_PMA_PMD_LED_FLASH,4,2          ; @PMA_PMD_LED_FLASH
	.comm	_link,4,2                       ; @link
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"appears to be plugged into a port that is not 10GBASE-T capable. The PHY supports 10GBASE-T ONLY, so no link can be established\n"

	.no_dead_strip	_sfx7101_check_bad_lp
.subsections_via_symbols
