	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ehea_get_link_ksettings
_ehea_get_link_ksettings:               ## @ehea_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_ehea_sense_port_attr
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_21
## %bb.1:
	movq	%rbx, %rdi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movl	(%r12), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_3
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_13:
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_DUPLEX_UNKNOWN@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_3:
	movl	$-1, %eax
	cmpl	$1, 4(%r12)
	je	LBB0_12
LBB0_11:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_5:
	movq	_SPEED_10@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_SPEED_10000@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_SPEED_100@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	cmpl	$1, 4(%r12)
	jne	LBB0_11
LBB0_12:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
LBB0_14:
	movl	(%rcx), %ecx
	movl	%ecx, 20(%r15)
	movl	%eax, 8(%r15)
	movq	_SPEED_10000@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_16
## %bb.15:
	movq	_SUPPORTED_10000baseT_Full@GOTPCREL(%rip), %rax
	movq	_SUPPORTED_FIBRE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_ADVERTISED_FIBRE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_PORT_FIBRE@GOTPCREL(%rip), %rax
	movq	_ADVERTISED_10000baseT_Full@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_16:
	movq	_SUPPORTED_1000baseT_Full@GOTPCREL(%rip), %rax
	movq	_SUPPORTED_100baseT_Full@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_SUPPORTED_100baseT_Half@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_SUPPORTED_10baseT_Full@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_SUPPORTED_10baseT_Half@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_SUPPORTED_Autoneg@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_SUPPORTED_TP@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_ADVERTISED_1000baseT_Full@GOTPCREL(%rip), %rax
	movq	_ADVERTISED_Autoneg@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_PORT_TP@GOTPCREL(%rip), %rax
	movq	_ADVERTISED_TP@GOTPCREL(%rip), %rcx
LBB0_17:
	orl	(%rcx), %ebx
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	cmpl	$1, 8(%r12)
	jne	LBB0_18
## %bb.19:
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_18:
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movl	4(%r15), %edi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_ethtool_convert_legacy_u32_to_link_mode
LBB0_21:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_SPEED_10,4,2                   ## @SPEED_10
	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.comm	_SPEED_10000,4,2                ## @SPEED_10000
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
	.comm	_SPEED_UNKNOWN,4,2              ## @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,4,2             ## @DUPLEX_UNKNOWN
	.comm	_SUPPORTED_10000baseT_Full,4,2  ## @SUPPORTED_10000baseT_Full
	.comm	_SUPPORTED_FIBRE,4,2            ## @SUPPORTED_FIBRE
	.comm	_ADVERTISED_10000baseT_Full,4,2 ## @ADVERTISED_10000baseT_Full
	.comm	_ADVERTISED_FIBRE,4,2           ## @ADVERTISED_FIBRE
	.comm	_PORT_FIBRE,4,2                 ## @PORT_FIBRE
	.comm	_SUPPORTED_1000baseT_Full,4,2   ## @SUPPORTED_1000baseT_Full
	.comm	_SUPPORTED_100baseT_Full,4,2    ## @SUPPORTED_100baseT_Full
	.comm	_SUPPORTED_100baseT_Half,4,2    ## @SUPPORTED_100baseT_Half
	.comm	_SUPPORTED_10baseT_Full,4,2     ## @SUPPORTED_10baseT_Full
	.comm	_SUPPORTED_10baseT_Half,4,2     ## @SUPPORTED_10baseT_Half
	.comm	_SUPPORTED_Autoneg,4,2          ## @SUPPORTED_Autoneg
	.comm	_SUPPORTED_TP,4,2               ## @SUPPORTED_TP
	.comm	_ADVERTISED_1000baseT_Full,4,2  ## @ADVERTISED_1000baseT_Full
	.comm	_ADVERTISED_Autoneg,4,2         ## @ADVERTISED_Autoneg
	.comm	_ADVERTISED_TP,4,2              ## @ADVERTISED_TP
	.comm	_PORT_TP,4,2                    ## @PORT_TP
	.comm	_AUTONEG_ENABLE,4,2             ## @AUTONEG_ENABLE
	.comm	_AUTONEG_DISABLE,4,2            ## @AUTONEG_DISABLE
	.no_dead_strip	_ehea_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 ehea_get_link_ksettings
_ehea_get_link_ksettings:               ; @ehea_get_link_ksettings
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x22, x0
	bl	_netdev_priv
	mov	x21, x0
	bl	_ehea_sense_port_attr
	mov	x20, x0
	cbnz	w0, LBB0_16
; %bb.1:
	mov	x0, x22
	bl	_netif_carrier_ok
Lloh0:
	adrp	x8, _SPEED_10000@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPEED_10000@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w9, [x21]
	sub	w9, w9, #128
	cmp	w9, #3
	b.hi	LBB0_6
; %bb.3:
Lloh2:
	adrp	x10, lJTI0_0@PAGE
Lloh3:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_4
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_4:
Lloh4:
	adrp	x9, _SPEED_1000@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SPEED_1000@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
Lloh6:
	adrp	x9, _SPEED_UNKNOWN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SPEED_UNKNOWN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _DUPLEX_UNKNOWN@GOTPAGE
Lloh10:
	ldr	x10, [x10, _DUPLEX_UNKNOWN@GOTPAGEOFF]
	b	LBB0_12
LBB0_6:
	mov	w9, #-1
	b	LBB0_11
LBB0_7:
Lloh11:
	adrp	x9, _SPEED_10@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SPEED_10@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	ldr	w9, [x8]
	b	LBB0_11
LBB0_9:
Lloh13:
	adrp	x9, _SPEED_100@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SPEED_100@GOTPAGEOFF]
LBB0_10:
	ldr	w9, [x9]
LBB0_11:
Lloh15:
	adrp	x10, _DUPLEX_FULL@GOTPAGE
Lloh16:
	ldr	x10, [x10, _DUPLEX_FULL@GOTPAGEOFF]
	ldr	w11, [x21, #4]
Lloh17:
	adrp	x12, _DUPLEX_HALF@GOTPAGE
Lloh18:
	ldr	x12, [x12, _DUPLEX_HALF@GOTPAGEOFF]
	cmp	w11, #1
	csel	x10, x10, x12, eq
LBB0_12:
	ldr	w10, [x10]
	str	w10, [x19, #20]
	str	w9, [x19, #8]
	ldr	w8, [x8]
	cmp	w9, w8
	b.ne	LBB0_14
; %bb.13:
Lloh19:
	adrp	x8, _SUPPORTED_10000baseT_Full@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SUPPORTED_10000baseT_Full@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _SUPPORTED_FIBRE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SUPPORTED_FIBRE@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
Lloh25:
	adrp	x10, _ADVERTISED_FIBRE@GOTPAGE
Lloh26:
	ldr	x10, [x10, _ADVERTISED_FIBRE@GOTPAGEOFF]
	orr	w1, w9, w8
Lloh27:
	ldr	w8, [x10]
Lloh28:
	adrp	x9, _PORT_FIBRE@GOTPAGE
Lloh29:
	ldr	x9, [x9, _PORT_FIBRE@GOTPAGEOFF]
Lloh30:
	adrp	x10, _ADVERTISED_10000baseT_Full@GOTPAGE
Lloh31:
	ldr	x10, [x10, _ADVERTISED_10000baseT_Full@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh32:
	adrp	x8, _SUPPORTED_1000baseT_Full@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SUPPORTED_1000baseT_Full@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _SUPPORTED_100baseT_Full@GOTPAGE
Lloh36:
	ldr	x9, [x9, _SUPPORTED_100baseT_Full@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
Lloh38:
	adrp	x10, _SUPPORTED_100baseT_Half@GOTPAGE
Lloh39:
	ldr	x10, [x10, _SUPPORTED_100baseT_Half@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh40:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh41:
	adrp	x9, _SUPPORTED_10baseT_Full@GOTPAGE
Lloh42:
	ldr	x9, [x9, _SUPPORTED_10baseT_Full@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh44:
	adrp	x9, _SUPPORTED_10baseT_Half@GOTPAGE
Lloh45:
	ldr	x9, [x9, _SUPPORTED_10baseT_Half@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
Lloh47:
	adrp	x10, _SUPPORTED_Autoneg@GOTPAGE
Lloh48:
	ldr	x10, [x10, _SUPPORTED_Autoneg@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh49:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh50:
	adrp	x9, _SUPPORTED_TP@GOTPAGE
Lloh51:
	ldr	x9, [x9, _SUPPORTED_TP@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	orr	w1, w8, w9
Lloh53:
	adrp	x8, _ADVERTISED_1000baseT_Full@GOTPAGE
Lloh54:
	ldr	x8, [x8, _ADVERTISED_1000baseT_Full@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
Lloh56:
	adrp	x9, _ADVERTISED_Autoneg@GOTPAGE
Lloh57:
	ldr	x9, [x9, _ADVERTISED_Autoneg@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh59:
	adrp	x9, _PORT_TP@GOTPAGE
Lloh60:
	ldr	x9, [x9, _PORT_TP@GOTPAGEOFF]
Lloh61:
	adrp	x10, _ADVERTISED_TP@GOTPAGE
Lloh62:
	ldr	x10, [x10, _ADVERTISED_TP@GOTPAGEOFF]
LBB0_15:
	ldr	w10, [x10]
	orr	w22, w8, w10
	ldr	w8, [x9]
	str	w8, [x19, #16]
Lloh63:
	adrp	x8, _AUTONEG_ENABLE@GOTPAGE
Lloh64:
	ldr	x8, [x8, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh65:
	adrp	x9, _AUTONEG_DISABLE@GOTPAGE
Lloh66:
	ldr	x9, [x9, _AUTONEG_DISABLE@GOTPAGEOFF]
	ldr	w10, [x21, #8]
	cmp	w10, #1
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #12]
	ldr	w0, [x19, #4]
	bl	_ethtool_convert_legacy_u32_to_link_mode
	ldr	w0, [x19]
	mov	x1, x22
	bl	_ethtool_convert_legacy_u32_to_link_mode
LBB0_16:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh63, Lloh64
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
                                        ; -- End function
	.comm	_SPEED_10,4,2                   ; @SPEED_10
	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.comm	_SPEED_10000,4,2                ; @SPEED_10000
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
	.comm	_SPEED_UNKNOWN,4,2              ; @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,4,2             ; @DUPLEX_UNKNOWN
	.comm	_SUPPORTED_10000baseT_Full,4,2  ; @SUPPORTED_10000baseT_Full
	.comm	_SUPPORTED_FIBRE,4,2            ; @SUPPORTED_FIBRE
	.comm	_ADVERTISED_10000baseT_Full,4,2 ; @ADVERTISED_10000baseT_Full
	.comm	_ADVERTISED_FIBRE,4,2           ; @ADVERTISED_FIBRE
	.comm	_PORT_FIBRE,4,2                 ; @PORT_FIBRE
	.comm	_SUPPORTED_1000baseT_Full,4,2   ; @SUPPORTED_1000baseT_Full
	.comm	_SUPPORTED_100baseT_Full,4,2    ; @SUPPORTED_100baseT_Full
	.comm	_SUPPORTED_100baseT_Half,4,2    ; @SUPPORTED_100baseT_Half
	.comm	_SUPPORTED_10baseT_Full,4,2     ; @SUPPORTED_10baseT_Full
	.comm	_SUPPORTED_10baseT_Half,4,2     ; @SUPPORTED_10baseT_Half
	.comm	_SUPPORTED_Autoneg,4,2          ; @SUPPORTED_Autoneg
	.comm	_SUPPORTED_TP,4,2               ; @SUPPORTED_TP
	.comm	_ADVERTISED_1000baseT_Full,4,2  ; @ADVERTISED_1000baseT_Full
	.comm	_ADVERTISED_Autoneg,4,2         ; @ADVERTISED_Autoneg
	.comm	_ADVERTISED_TP,4,2              ; @ADVERTISED_TP
	.comm	_PORT_TP,4,2                    ; @PORT_TP
	.comm	_AUTONEG_ENABLE,4,2             ; @AUTONEG_ENABLE
	.comm	_AUTONEG_DISABLE,4,2            ; @AUTONEG_DISABLE
	.no_dead_strip	_ehea_get_link_ksettings
.subsections_via_symbols
