	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hme_get_link_ksettings
_hme_get_link_ksettings:                ## @hme_get_link_ksettings
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_SUPPORTED_10baseT_Half@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_SUPPORTED_10baseT_Full@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_SUPPORTED_100baseT_Half@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_SUPPORTED_100baseT_Full@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_SUPPORTED_Autoneg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_SUPPORTED_TP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_SUPPORTED_MII@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_PORT_TP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r14)
	movq	$0, 32(%r14)
	leaq	8(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irq
	movl	12(%rbx), %esi
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_happy_meal_tcvr_read
	movl	%eax, (%rbx)
	movl	12(%rbx), %esi
	movq	_MII_LPA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_happy_meal_tcvr_read
	movl	%eax, 4(%rbx)
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	movl	(%rbx), %eax
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.1:
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movl	4(%rbx), %edx
	movq	_LPA_100HALF@GOTPCREL(%rip), %rcx
	movq	_LPA_100FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rcx), %edi
	orl	%eax, %edi
	movq	_SPEED_100@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, %rsi
	testl	%edx, %edi
	jne	LBB0_3
## %bb.2:
	movq	_SPEED_10@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
LBB0_3:
	cmpq	%rcx, %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%r13, %r8
	jne	LBB0_6
## %bb.4:
	andl	%edx, %eax
	jmp	LBB0_5
LBB0_7:
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%r14)
	movq	_BMCR_SPEED100@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%r13, %r8
	jne	LBB0_8
## %bb.9:
	movq	_SPEED_10@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_6:
	movq	_LPA_10FULL@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	movl	%edx, %eax
	movq	%rsi, %rcx
LBB0_5:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	testl	%eax, %eax
	jne	LBB0_12
LBB0_13:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_8:
	movq	_SPEED_100@GOTPCREL(%rip), %rcx
LBB0_10:
	movq	(%rcx), %rcx
	movq	_BMCR_FULLDPLX@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_13
LBB0_12:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
LBB0_14:
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	orq	%r13, %r15
	orq	%rdx, %r15
	orq	%rsi, %r15
	orq	%rdi, %r15
	orq	%rbx, %r15
	orq	%r8, %r15
	movq	%rcx, 8(%r14)
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUPPORTED_10baseT_Half,8,3     ## @SUPPORTED_10baseT_Half
	.comm	_SUPPORTED_10baseT_Full,8,3     ## @SUPPORTED_10baseT_Full
	.comm	_SUPPORTED_100baseT_Half,8,3    ## @SUPPORTED_100baseT_Half
	.comm	_SUPPORTED_100baseT_Full,8,3    ## @SUPPORTED_100baseT_Full
	.comm	_SUPPORTED_Autoneg,8,3          ## @SUPPORTED_Autoneg
	.comm	_SUPPORTED_TP,8,3               ## @SUPPORTED_TP
	.comm	_SUPPORTED_MII,8,3              ## @SUPPORTED_MII
	.comm	_PORT_TP,4,2                    ## @PORT_TP
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_MII_LPA,4,2                    ## @MII_LPA
	.comm	_BMCR_ANENABLE,4,2              ## @BMCR_ANENABLE
	.comm	_AUTONEG_ENABLE,4,2             ## @AUTONEG_ENABLE
	.comm	_LPA_100HALF,4,2                ## @LPA_100HALF
	.comm	_LPA_100FULL,4,2                ## @LPA_100FULL
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_SPEED_10,8,3                   ## @SPEED_10
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_DUPLEX_HALF,8,3                ## @DUPLEX_HALF
	.comm	_LPA_10FULL,4,2                 ## @LPA_10FULL
	.comm	_AUTONEG_DISABLE,4,2            ## @AUTONEG_DISABLE
	.comm	_BMCR_SPEED100,4,2              ## @BMCR_SPEED100
	.comm	_BMCR_FULLDPLX,4,2              ## @BMCR_FULLDPLX
	.no_dead_strip	_hme_get_link_ksettings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hme_get_link_ksettings
_hme_get_link_ksettings:                ; @hme_get_link_ksettings
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _SUPPORTED_10baseT_Half@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUPPORTED_10baseT_Half@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
Lloh3:
	adrp	x8, _SUPPORTED_10baseT_Full@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SUPPORTED_10baseT_Full@GOTPAGEOFF]
Lloh5:
	ldr	x23, [x8]
Lloh6:
	adrp	x8, _SUPPORTED_100baseT_Half@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SUPPORTED_100baseT_Half@GOTPAGEOFF]
Lloh8:
	ldr	x24, [x8]
Lloh9:
	adrp	x8, _SUPPORTED_100baseT_Full@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SUPPORTED_100baseT_Full@GOTPAGEOFF]
Lloh11:
	ldr	x25, [x8]
Lloh12:
	adrp	x8, _SUPPORTED_Autoneg@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SUPPORTED_Autoneg@GOTPAGEOFF]
Lloh14:
	ldr	x26, [x8]
Lloh15:
	adrp	x8, _SUPPORTED_TP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SUPPORTED_TP@GOTPAGEOFF]
Lloh17:
	ldr	x27, [x8]
Lloh18:
	adrp	x8, _SUPPORTED_MII@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SUPPORTED_MII@GOTPAGEOFF]
Lloh20:
	ldr	x28, [x8]
Lloh21:
	adrp	x8, _PORT_TP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PORT_TP@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	str	xzr, [x19, #32]
	add	x21, x0, #8
	mov	x0, x21
	bl	_spin_lock_irq
	ldr	w1, [x20, #12]
Lloh24:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_happy_meal_tcvr_read
	str	w0, [x20]
	ldr	w1, [x20, #12]
Lloh27:
	adrp	x8, _MII_LPA@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MII_LPA@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_happy_meal_tcvr_read
	str	w0, [x20, #4]
	mov	x0, x21
	bl	_spin_unlock_irq
	ldr	w9, [x20]
Lloh30:
	adrp	x8, _BMCR_ANENABLE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BMCR_ANENABLE@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_3
; %bb.1:
Lloh33:
	adrp	x8, _AUTONEG_ENABLE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	w9, [x20, #4]
Lloh36:
	adrp	x8, _LPA_100HALF@GOTPAGE
Lloh37:
	ldr	x8, [x8, _LPA_100HALF@GOTPAGEOFF]
Lloh38:
	adrp	x10, _LPA_100FULL@GOTPAGE
Lloh39:
	ldr	x10, [x10, _LPA_100FULL@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
Lloh41:
	ldr	w10, [x10]
	orr	w11, w10, w8
Lloh42:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh43:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
Lloh45:
	adrp	x12, _SPEED_10@GOTPAGE
Lloh46:
	ldr	x12, [x12, _SPEED_10@GOTPAGEOFF]
Lloh47:
	ldr	x12, [x12]
	tst	w11, w9
	csel	x11, x12, x8, eq
	cmp	x11, x8
	b.eq	LBB0_4
; %bb.2:
Lloh48:
	adrp	x8, _LPA_10FULL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _LPA_10FULL@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	and	w9, w8, w9
	mov	x8, x11
	b	LBB0_5
LBB0_3:
Lloh51:
	adrp	x8, _AUTONEG_DISABLE@GOTPAGE
Lloh52:
	ldr	x8, [x8, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh54:
	adrp	x8, _BMCR_SPEED100@GOTPAGE
Lloh55:
	ldr	x8, [x8, _BMCR_SPEED100@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
Lloh57:
	adrp	x10, _SPEED_100@GOTPAGE
Lloh58:
	ldr	x10, [x10, _SPEED_100@GOTPAGEOFF]
Lloh59:
	adrp	x11, _SPEED_10@GOTPAGE
Lloh60:
	ldr	x11, [x11, _SPEED_10@GOTPAGEOFF]
	tst	w8, w9
	csel	x8, x11, x10, eq
	ldr	x8, [x8]
Lloh61:
	adrp	x10, _BMCR_FULLDPLX@GOTPAGE
Lloh62:
	ldr	x10, [x10, _BMCR_FULLDPLX@GOTPAGEOFF]
Lloh63:
	ldr	w10, [x10]
LBB0_4:
	and	w9, w10, w9
LBB0_5:
Lloh64:
	adrp	x10, _DUPLEX_FULL@GOTPAGE
Lloh65:
	ldr	x10, [x10, _DUPLEX_FULL@GOTPAGEOFF]
Lloh66:
	adrp	x11, _DUPLEX_HALF@GOTPAGE
Lloh67:
	ldr	x11, [x11, _DUPLEX_HALF@GOTPAGEOFF]
	cmp	w9, #0
	csel	x9, x11, x10, eq
	ldr	x9, [x9]
	orr	x10, x23, x22
	orr	x10, x10, x24
	orr	x10, x10, x25
	orr	x10, x10, x26
	orr	x10, x10, x27
	orr	x1, x10, x28
	stp	x8, x9, [x19, #8]
	ldr	w0, [x19]
	bl	_ethtool_convert_legacy_u32_to_link_mode
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh40
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh64, Lloh65
	.cfi_endproc
                                        ; -- End function
	.comm	_SUPPORTED_10baseT_Half,8,3     ; @SUPPORTED_10baseT_Half
	.comm	_SUPPORTED_10baseT_Full,8,3     ; @SUPPORTED_10baseT_Full
	.comm	_SUPPORTED_100baseT_Half,8,3    ; @SUPPORTED_100baseT_Half
	.comm	_SUPPORTED_100baseT_Full,8,3    ; @SUPPORTED_100baseT_Full
	.comm	_SUPPORTED_Autoneg,8,3          ; @SUPPORTED_Autoneg
	.comm	_SUPPORTED_TP,8,3               ; @SUPPORTED_TP
	.comm	_SUPPORTED_MII,8,3              ; @SUPPORTED_MII
	.comm	_PORT_TP,4,2                    ; @PORT_TP
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_MII_LPA,4,2                    ; @MII_LPA
	.comm	_BMCR_ANENABLE,4,2              ; @BMCR_ANENABLE
	.comm	_AUTONEG_ENABLE,4,2             ; @AUTONEG_ENABLE
	.comm	_LPA_100HALF,4,2                ; @LPA_100HALF
	.comm	_LPA_100FULL,4,2                ; @LPA_100FULL
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_SPEED_10,8,3                   ; @SPEED_10
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_DUPLEX_HALF,8,3                ; @DUPLEX_HALF
	.comm	_LPA_10FULL,4,2                 ; @LPA_10FULL
	.comm	_AUTONEG_DISABLE,4,2            ; @AUTONEG_DISABLE
	.comm	_BMCR_SPEED100,4,2              ; @BMCR_SPEED100
	.comm	_BMCR_FULLDPLX,4,2              ; @BMCR_FULLDPLX
	.no_dead_strip	_hme_get_link_ksettings
.subsections_via_symbols
