	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function typhoon_get_link_ksettings
_typhoon_get_link_ksettings:            ## @typhoon_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	callq	_netdev_priv
	movq	%rax, %r12
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_3
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_ADVERTISED_10baseT_Half@GOTPCREL(%rip), %rax
	movq	_ADVERTISED_10baseT_Full@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
	movq	_ADVERTISED_100baseT_Half@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_ADVERTISED_100baseT_Full@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_ADVERTISED_Autoneg@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	jmp	LBB0_9
LBB0_3:
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_4:
	movq	_ADVERTISED_10baseT_Half@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	_ADVERTISED_10baseT_Full@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_ADVERTISED_100baseT_Half@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_ADVERTISED_100baseT_Full@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %r14d
LBB0_9:
	movq	_SUPPORTED_100baseT_Half@GOTPCREL(%rip), %rax
	movq	_SUPPORTED_100baseT_Full@GOTPCREL(%rip), %rcx
	movq	_SUPPORTED_Autoneg@GOTPCREL(%rip), %rdx
	movq	_TYPHOON_FIBER@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, 4(%r12)
	je	LBB0_11
## %bb.10:
	movq	_SUPPORTED_FIBRE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r13d
	movq	_ADVERTISED_FIBRE@GOTPCREL(%rip), %rsi
	movq	_PORT_FIBRE@GOTPCREL(%rip), %rdi
	jmp	LBB0_12
LBB0_11:
	movq	_SUPPORTED_10baseT_Half@GOTPCREL(%rip), %rsi
	movq	_SUPPORTED_10baseT_Full@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r13d
	orl	(%rsi), %r13d
	movq	_SUPPORTED_TP@GOTPCREL(%rip), %rsi
	orl	(%rsi), %r13d
	movq	_ADVERTISED_TP@GOTPCREL(%rip), %rsi
	movq	_PORT_TP@GOTPCREL(%rip), %rdi
LBB0_12:
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%rcx), %ebx
	movl	(%rdx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%rdi), %eax
	orl	(%rsi), %r14d
	movl	%eax, 32(%r15)
	movq	%r12, %rdi
	callq	_typhoon_do_get_stats
	movl	12(%r12), %eax
	movl	%eax, 28(%r15)
	movl	8(%r12), %eax
	movl	%eax, 24(%r15)
	movq	$0, 16(%r15)
	cmpl	$128, (%r12)
	jne	LBB0_14
## %bb.13:
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	orl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	orl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	orl	%r13d, %ebx
	movl	4(%r15), %edi
	movl	%ebx, %esi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	movl	(%r15), %edi
	movl	%r14d, %esi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_SUPPORTED_100baseT_Half,4,2    ## @SUPPORTED_100baseT_Half
	.comm	_SUPPORTED_100baseT_Full,4,2    ## @SUPPORTED_100baseT_Full
	.comm	_SUPPORTED_Autoneg,4,2          ## @SUPPORTED_Autoneg
	.comm	_ADVERTISED_10baseT_Half,4,2    ## @ADVERTISED_10baseT_Half
	.comm	_ADVERTISED_10baseT_Full,4,2    ## @ADVERTISED_10baseT_Full
	.comm	_ADVERTISED_100baseT_Half,4,2   ## @ADVERTISED_100baseT_Half
	.comm	_ADVERTISED_100baseT_Full,4,2   ## @ADVERTISED_100baseT_Full
	.comm	_ADVERTISED_Autoneg,4,2         ## @ADVERTISED_Autoneg
	.comm	_TYPHOON_FIBER,4,2              ## @TYPHOON_FIBER
	.comm	_SUPPORTED_FIBRE,4,2            ## @SUPPORTED_FIBRE
	.comm	_ADVERTISED_FIBRE,4,2           ## @ADVERTISED_FIBRE
	.comm	_PORT_FIBRE,4,2                 ## @PORT_FIBRE
	.comm	_SUPPORTED_10baseT_Half,4,2     ## @SUPPORTED_10baseT_Half
	.comm	_SUPPORTED_10baseT_Full,4,2     ## @SUPPORTED_10baseT_Full
	.comm	_SUPPORTED_TP,4,2               ## @SUPPORTED_TP
	.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	_typhoon_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 typhoon_get_link_ksettings
_typhoon_get_link_ksettings:            ; @typhoon_get_link_ksettings
	.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, x1
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _SUPPORTED_100baseT_Half@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUPPORTED_100baseT_Half@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _SUPPORTED_100baseT_Full@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SUPPORTED_100baseT_Full@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
Lloh6:
	adrp	x8, _SUPPORTED_Autoneg@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SUPPORTED_Autoneg@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.1:
Lloh9:
	adrp	x9, lJTI0_0@PAGE
Lloh10:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh11:
	adrp	x8, _ADVERTISED_10baseT_Half@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ADVERTISED_10baseT_Half@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _ADVERTISED_10baseT_Full@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ADVERTISED_10baseT_Full@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _ADVERTISED_100baseT_Half@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ADVERTISED_100baseT_Half@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh20:
	adrp	x9, _ADVERTISED_100baseT_Full@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ADVERTISED_100baseT_Full@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh23:
	adrp	x9, _ADVERTISED_Autoneg@GOTPAGE
Lloh24:
	ldr	x9, [x9, _ADVERTISED_Autoneg@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w24, w8, w9
	b	LBB0_9
LBB0_3:
	mov	w24, #0
	b	LBB0_9
LBB0_4:
Lloh26:
	adrp	x8, _ADVERTISED_10baseT_Half@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ADVERTISED_10baseT_Half@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh28:
	adrp	x8, _ADVERTISED_10baseT_Full@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ADVERTISED_10baseT_Full@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh30:
	adrp	x8, _ADVERTISED_100baseT_Half@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ADVERTISED_100baseT_Half@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh32:
	adrp	x8, _ADVERTISED_100baseT_Full@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ADVERTISED_100baseT_Full@GOTPAGEOFF]
LBB0_8:
	ldr	w24, [x8]
LBB0_9:
	ldr	w8, [x20, #4]
Lloh34:
	adrp	x9, _TYPHOON_FIBER@GOTPAGE
Lloh35:
	ldr	x9, [x9, _TYPHOON_FIBER@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
Lloh37:
	adrp	x8, _SUPPORTED_FIBRE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SUPPORTED_FIBRE@GOTPAGEOFF]
Lloh39:
	ldr	w25, [x8]
Lloh40:
	adrp	x8, _ADVERTISED_FIBRE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ADVERTISED_FIBRE@GOTPAGEOFF]
Lloh42:
	adrp	x9, _PORT_FIBRE@GOTPAGE
Lloh43:
	ldr	x9, [x9, _PORT_FIBRE@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh44:
	adrp	x8, _SUPPORTED_10baseT_Half@GOTPAGE
Lloh45:
	ldr	x8, [x8, _SUPPORTED_10baseT_Half@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
Lloh47:
	adrp	x9, _SUPPORTED_10baseT_Full@GOTPAGE
Lloh48:
	ldr	x9, [x9, _SUPPORTED_10baseT_Full@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh50:
	adrp	x9, _SUPPORTED_TP@GOTPAGE
Lloh51:
	ldr	x9, [x9, _SUPPORTED_TP@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	orr	w25, w8, w9
Lloh53:
	adrp	x8, _ADVERTISED_TP@GOTPAGE
Lloh54:
	ldr	x8, [x8, _ADVERTISED_TP@GOTPAGEOFF]
Lloh55:
	adrp	x9, _PORT_TP@GOTPAGE
Lloh56:
	ldr	x9, [x9, _PORT_TP@GOTPAGEOFF]
LBB0_12:
	ldr	w26, [x8]
	ldr	w8, [x9]
	str	w8, [x19, #32]
	mov	x0, x20
	bl	_typhoon_do_get_stats
	ldr	d0, [x20, #8]
	str	d0, [x19, #24]
	str	xzr, [x19, #16]
Lloh57:
	adrp	x8, _AUTONEG_ENABLE@GOTPAGE
Lloh58:
	ldr	x8, [x8, _AUTONEG_ENABLE@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh59:
	adrp	x10, _AUTONEG_DISABLE@GOTPAGE
Lloh60:
	ldr	x10, [x10, _AUTONEG_DISABLE@GOTPAGEOFF]
	cmp	w9, #128
	csel	x8, x8, x10, eq
	ldr	w8, [x8]
	str	w8, [x19, #8]
	orr	w20, w26, w24
	orr	w8, w22, w21
	orr	w8, w8, w23
	orr	w1, w8, w25
	ldr	w0, [x19, #4]
	bl	_ethtool_convert_legacy_u32_to_link_mode
	ldr	w0, [x19]
	mov	x1, x20
	bl	_ethtool_convert_legacy_u32_to_link_mode
	mov	w0, #0
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh57, Lloh58
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_SUPPORTED_100baseT_Half,4,2    ; @SUPPORTED_100baseT_Half
	.comm	_SUPPORTED_100baseT_Full,4,2    ; @SUPPORTED_100baseT_Full
	.comm	_SUPPORTED_Autoneg,4,2          ; @SUPPORTED_Autoneg
	.comm	_ADVERTISED_10baseT_Half,4,2    ; @ADVERTISED_10baseT_Half
	.comm	_ADVERTISED_10baseT_Full,4,2    ; @ADVERTISED_10baseT_Full
	.comm	_ADVERTISED_100baseT_Half,4,2   ; @ADVERTISED_100baseT_Half
	.comm	_ADVERTISED_100baseT_Full,4,2   ; @ADVERTISED_100baseT_Full
	.comm	_ADVERTISED_Autoneg,4,2         ; @ADVERTISED_Autoneg
	.comm	_TYPHOON_FIBER,4,2              ; @TYPHOON_FIBER
	.comm	_SUPPORTED_FIBRE,4,2            ; @SUPPORTED_FIBRE
	.comm	_ADVERTISED_FIBRE,4,2           ; @ADVERTISED_FIBRE
	.comm	_PORT_FIBRE,4,2                 ; @PORT_FIBRE
	.comm	_SUPPORTED_10baseT_Half,4,2     ; @SUPPORTED_10baseT_Half
	.comm	_SUPPORTED_10baseT_Full,4,2     ; @SUPPORTED_10baseT_Full
	.comm	_SUPPORTED_TP,4,2               ; @SUPPORTED_TP
	.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	_typhoon_get_link_ksettings
.subsections_via_symbols
