	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alx_get_link_ksettings
_alx_get_link_ksettings:                ## @alx_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	$24, %rsp
	.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, %r14
	movq	_SUPPORTED_Autoneg@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_SUPPORTED_TP@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_SUPPORTED_Pause@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_SUPPORTED_Asym_Pause@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_alx_hw_giga
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_SUPPORTED_1000baseT_Full@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r14, %rdi
	callq	_alx_get_supported_speeds
	movq	_ADVERTISED_TP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%r14), %ebx
	movq	_ADVERTISED_Autoneg@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	%ebx, %esi
	orl	%edx, %ebx
	movq	_PORT_TP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%r15)
	movl	%ebx, %ecx
	movq	$0, 24(%r15)
	testl	%esi, %esi
	cmovel	%edx, %ecx
	je	LBB0_1
## %bb.2:
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 16(%r15)
	movl	4(%r14), %edx
	movq	_ALX_FC_ANEG@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	je	LBB0_3
## %bb.4:
	movq	_ALX_FC_RX@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	je	LBB0_8
## %bb.5:
	movq	_ADVERTISED_Pause@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movq	_ALX_FC_TX@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	jne	LBB0_6
## %bb.7:
	movq	_ADVERTISED_Asym_Pause@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
LBB0_6:
	movl	%ecx, %ebx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_10
LBB0_1:
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%r15)
	movl	%edx, %ebx
LBB0_3:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
LBB0_10:
	orl	%esi, %r12d
	orl	%edi, %r12d
	orl	%r8d, %r12d
	xorl	%ecx, %ecx
	testq	%r9, %r9
	cmovel	%ecx, %r13d
	orl	%r12d, %r13d
	orl	%eax, %r13d
	movl	12(%r14), %eax
	movl	%eax, 12(%r15)
	movl	8(%r14), %eax
	movl	%eax, 8(%r15)
	movl	4(%r15), %edi
	movl	%r13d, %esi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_ALX_FC_TX@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	je	LBB0_10
## %bb.9:
	movq	_ADVERTISED_Asym_Pause@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_SUPPORTED_Autoneg,4,2          ## @SUPPORTED_Autoneg
	.comm	_SUPPORTED_TP,4,2               ## @SUPPORTED_TP
	.comm	_SUPPORTED_Pause,4,2            ## @SUPPORTED_Pause
	.comm	_SUPPORTED_Asym_Pause,4,2       ## @SUPPORTED_Asym_Pause
	.comm	_SUPPORTED_1000baseT_Full,4,2   ## @SUPPORTED_1000baseT_Full
	.comm	_ADVERTISED_TP,4,2              ## @ADVERTISED_TP
	.comm	_ADVERTISED_Autoneg,4,2         ## @ADVERTISED_Autoneg
	.comm	_PORT_TP,4,2                    ## @PORT_TP
	.comm	_AUTONEG_ENABLE,4,2             ## @AUTONEG_ENABLE
	.comm	_AUTONEG_DISABLE,4,2            ## @AUTONEG_DISABLE
	.comm	_ALX_FC_ANEG,4,2                ## @ALX_FC_ANEG
	.comm	_ALX_FC_RX,4,2                  ## @ALX_FC_RX
	.comm	_ADVERTISED_Pause,4,2           ## @ADVERTISED_Pause
	.comm	_ALX_FC_TX,4,2                  ## @ALX_FC_TX
	.comm	_ADVERTISED_Asym_Pause,4,2      ## @ADVERTISED_Asym_Pause
	.no_dead_strip	_alx_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 alx_get_link_ksettings
_alx_get_link_ksettings:                ; @alx_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_Autoneg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUPPORTED_Autoneg@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _SUPPORTED_TP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SUPPORTED_TP@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
Lloh6:
	adrp	x8, _SUPPORTED_Pause@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SUPPORTED_Pause@GOTPAGEOFF]
Lloh8:
	ldr	w25, [x8]
Lloh9:
	adrp	x8, _SUPPORTED_Asym_Pause@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SUPPORTED_Asym_Pause@GOTPAGEOFF]
Lloh11:
	ldr	w26, [x8]
	bl	_alx_hw_giga
	mov	x21, x0
Lloh12:
	adrp	x8, _SUPPORTED_1000baseT_Full@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SUPPORTED_1000baseT_Full@GOTPAGEOFF]
Lloh14:
	ldr	w27, [x8]
	mov	x0, x20
	bl	_alx_get_supported_speeds
Lloh15:
	adrp	x8, _ADVERTISED_TP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ADVERTISED_TP@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x8]
	ldr	w8, [x20]
Lloh18:
	adrp	x10, _ADVERTISED_Autoneg@GOTPAGE
Lloh19:
	ldr	x10, [x10, _ADVERTISED_Autoneg@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	orr	w22, w8, w9
	ands	w10, w10, w8
	csel	w8, w9, w22, eq
Lloh21:
	adrp	x11, _PORT_TP@GOTPAGE
Lloh22:
	ldr	x11, [x11, _PORT_TP@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
	str	w11, [x19, #32]
	str	xzr, [x19, #24]
	cbz	w10, LBB0_5
; %bb.1:
Lloh24:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	str	w9, [x19, #16]
	ldr	w9, [x20, #4]
Lloh27:
	adrp	x10, _ALX_FC_ANEG@GOTPAGE
Lloh28:
	ldr	x10, [x10, _ALX_FC_ANEG@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.2:
Lloh30:
	adrp	x10, _ALX_FC_RX@GOTPAGE
Lloh31:
	ldr	x10, [x10, _ALX_FC_RX@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.3:
Lloh33:
	adrp	x10, _ADVERTISED_Pause@GOTPAGE
Lloh34:
	ldr	x10, [x10, _ADVERTISED_Pause@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	orr	w22, w10, w8
Lloh36:
	adrp	x8, _ALX_FC_TX@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ALX_FC_TX@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	tst	w8, w9
	b.ne	LBB0_8
; %bb.4:
Lloh39:
	adrp	x8, _ADVERTISED_Asym_Pause@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ADVERTISED_Asym_Pause@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	orr	w22, w8, w22
	b	LBB0_8
LBB0_5:
Lloh42:
	adrp	x8, _AUTONEG_DISABLE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	mov	x22, x9
	b	LBB0_8
LBB0_6:
Lloh45:
	adrp	x10, _ALX_FC_TX@GOTPAGE
Lloh46:
	ldr	x10, [x10, _ALX_FC_TX@GOTPAGEOFF]
Lloh47:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.7:
Lloh48:
	adrp	x9, _ADVERTISED_Asym_Pause@GOTPAGE
Lloh49:
	ldr	x9, [x9, _ADVERTISED_Asym_Pause@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	orr	w22, w9, w8
LBB0_8:
	orr	w8, w24, w23
	orr	w8, w8, w25
	orr	w8, w8, w26
	cmp	x21, #0
	csel	w9, wzr, w27, eq
	orr	w8, w8, w9
	orr	w1, w8, w0
	ldr	d0, [x20, #8]
	str	d0, [x19, #8]
	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
	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	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	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_SUPPORTED_Autoneg,4,2          ; @SUPPORTED_Autoneg
	.comm	_SUPPORTED_TP,4,2               ; @SUPPORTED_TP
	.comm	_SUPPORTED_Pause,4,2            ; @SUPPORTED_Pause
	.comm	_SUPPORTED_Asym_Pause,4,2       ; @SUPPORTED_Asym_Pause
	.comm	_SUPPORTED_1000baseT_Full,4,2   ; @SUPPORTED_1000baseT_Full
	.comm	_ADVERTISED_TP,4,2              ; @ADVERTISED_TP
	.comm	_ADVERTISED_Autoneg,4,2         ; @ADVERTISED_Autoneg
	.comm	_PORT_TP,4,2                    ; @PORT_TP
	.comm	_AUTONEG_ENABLE,4,2             ; @AUTONEG_ENABLE
	.comm	_AUTONEG_DISABLE,4,2            ; @AUTONEG_DISABLE
	.comm	_ALX_FC_ANEG,4,2                ; @ALX_FC_ANEG
	.comm	_ALX_FC_RX,4,2                  ; @ALX_FC_RX
	.comm	_ADVERTISED_Pause,4,2           ; @ADVERTISED_Pause
	.comm	_ALX_FC_TX,4,2                  ; @ALX_FC_TX
	.comm	_ADVERTISED_Asym_Pause,4,2      ; @ADVERTISED_Asym_Pause
	.no_dead_strip	_alx_get_link_ksettings
.subsections_via_symbols
