	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ax88179_chk_eee
_ax88179_chk_eee:                       ## @ax88179_chk_eee
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	movq	_ETHTOOL_GSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	8(%rdi), %r15
	leaq	-64(%rbp), %rsi
	callq	_mii_ethtool_gset
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -64(%rbp)
	je	LBB0_10
## %bb.1:
	movq	_MDIO_PCS_EEE_ABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MDIO_MMD_PCS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ax88179_phy_read_mmd_indirect
	testl	%eax, %eax
	js	LBB0_10
## %bb.2:
	movl	%eax, %edi
	callq	_mmd_eee_cap_to_ethtool_sup_t
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:
	movq	_MDIO_AN_EEE_LPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MDIO_MMD_AN@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_ax88179_phy_read_mmd_indirect
	testl	%eax, %eax
	js	LBB0_10
## %bb.4:
	movl	%eax, %r14d
	movq	_MDIO_AN_EEE_ADV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_ax88179_phy_read_mmd_indirect
	testl	%eax, %eax
	js	LBB0_10
## %bb.5:
	movl	%eax, %edi
	callq	_mmd_eee_adv_to_ethtool_adv_t
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_mmd_eee_adv_to_ethtool_adv_t
	movq	-56(%rbp), %rcx
	movq	_SPEED_1000@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.7:
	movq	_SUPPORTED_1000baseT_Full@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_6:
	movq	_SUPPORTED_100baseT_Full@GOTPCREL(%rip), %rcx
LBB0_8:
	andl	%ebx, %eax
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	movl	$1, (%r15)
	movl	$1, %eax
	jmp	LBB0_11
LBB0_10:
	movl	$0, (%r15)
	xorl	%eax, %eax
LBB0_11:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETHTOOL_GSET,4,2               ## @ETHTOOL_GSET
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_MDIO_PCS_EEE_ABLE,4,2          ## @MDIO_PCS_EEE_ABLE
	.comm	_MDIO_MMD_PCS,4,2               ## @MDIO_MMD_PCS
	.comm	_MDIO_AN_EEE_LPABLE,4,2         ## @MDIO_AN_EEE_LPABLE
	.comm	_MDIO_MMD_AN,4,2                ## @MDIO_MMD_AN
	.comm	_MDIO_AN_EEE_ADV,4,2            ## @MDIO_AN_EEE_ADV
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_SUPPORTED_1000baseT_Full,4,2   ## @SUPPORTED_1000baseT_Full
	.comm	_SUPPORTED_100baseT_Full,4,2    ## @SUPPORTED_100baseT_Full
	.no_dead_strip	_ax88179_chk_eee
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ax88179_chk_eee
_ax88179_chk_eee:                       ; @ax88179_chk_eee
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _ETHTOOL_GSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETHTOOL_GSET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	x21, [x0, #8]
	add	x1, sp, #8
	bl	_mii_ethtool_gset
	ldr	w8, [sp, #8]
Lloh3:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.1:
Lloh6:
	adrp	x8, _MDIO_PCS_EEE_ABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MDIO_PCS_EEE_ABLE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _MDIO_MMD_PCS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MDIO_MMD_PCS@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ax88179_phy_read_mmd_indirect
	tbnz	w0, #31, LBB0_7
; %bb.2:
	bl	_mmd_eee_cap_to_ethtool_sup_t
	cbz	w0, LBB0_8
; %bb.3:
Lloh12:
	adrp	x8, _MDIO_AN_EEE_LPABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MDIO_AN_EEE_LPABLE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x22, _MDIO_MMD_AN@GOTPAGE
Lloh16:
	ldr	x22, [x22, _MDIO_MMD_AN@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_ax88179_phy_read_mmd_indirect
	tbnz	w0, #31, LBB0_7
; %bb.4:
	mov	x20, x0
Lloh17:
	adrp	x8, _MDIO_AN_EEE_ADV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MDIO_AN_EEE_ADV@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_ax88179_phy_read_mmd_indirect
	tbnz	w0, #31, LBB0_7
; %bb.5:
	bl	_mmd_eee_adv_to_ethtool_adv_t
	mov	x19, x0
	mov	x0, x20
	bl	_mmd_eee_adv_to_ethtool_adv_t
	ldr	x8, [sp, #16]
Lloh20:
	adrp	x9, _SPEED_1000@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SPEED_1000@GOTPAGEOFF]
Lloh22:
	adrp	x10, _SUPPORTED_1000baseT_Full@GOTPAGE
Lloh23:
	ldr	x10, [x10, _SUPPORTED_1000baseT_Full@GOTPAGEOFF]
Lloh24:
	adrp	x11, _SUPPORTED_100baseT_Full@GOTPAGE
Lloh25:
	ldr	x11, [x11, _SUPPORTED_100baseT_Full@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	and	w9, w0, w19
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	mov	w0, #1
	str	w0, [x21]
	b	LBB0_9
LBB0_7:
	mov	w0, #0
LBB0_8:
	str	wzr, [x21]
LBB0_9:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ETHTOOL_GSET,4,2               ; @ETHTOOL_GSET
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_MDIO_PCS_EEE_ABLE,4,2          ; @MDIO_PCS_EEE_ABLE
	.comm	_MDIO_MMD_PCS,4,2               ; @MDIO_MMD_PCS
	.comm	_MDIO_AN_EEE_LPABLE,4,2         ; @MDIO_AN_EEE_LPABLE
	.comm	_MDIO_MMD_AN,4,2                ; @MDIO_MMD_AN
	.comm	_MDIO_AN_EEE_ADV,4,2            ; @MDIO_AN_EEE_ADV
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_SUPPORTED_1000baseT_Full,4,2   ; @SUPPORTED_1000baseT_Full
	.comm	_SUPPORTED_100baseT_Full,4,2    ; @SUPPORTED_100baseT_Full
	.no_dead_strip	_ax88179_chk_eee
.subsections_via_symbols
