	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_link_ksettings
_get_link_ksettings:                    ## @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, %r14
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_netif_running
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_t4_update_port_info
LBB0_2:
	movq	_supported@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ethtool_link_ksettings_zero_link_mode
	movq	_advertising@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ethtool_link_ksettings_zero_link_mode
	movq	_lp_advertising@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ethtool_link_ksettings_zero_link_mode
	movq	(%rbx), %rdi
	movl	48(%rbx), %esi
	callq	_from_fw_port_mod_type
	movl	%eax, 48(%r14)
	movq	8(%rbx), %rax
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movq	(%rbx), %rcx
	movq	_FW_PORT_TYPE_BT_SGMII@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.6:
	movq	_ETH_MDIO_SUPPORTS_C22@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_3:
	movl	$255, %eax
	xorl	%ecx, %ecx
	jmp	LBB0_8
LBB0_5:
	movq	_ETH_MDIO_SUPPORTS_C45@GOTPCREL(%rip), %rcx
LBB0_7:
	movq	(%rcx), %rcx
LBB0_8:
	movl	%eax, 16(%r14)
	movq	%rcx, 40(%r14)
	movq	(%rbx), %rdi
	leaq	16(%rbx), %r12
	movl	16(%rbx), %esi
	movl	8(%r14), %edx
	callq	_fw_caps_to_lmm
	movq	(%rbx), %r13
	movl	44(%rbx), %edi
	movl	40(%rbx), %esi
	movq	%r12, %rdx
	callq	_t4_link_acaps
	movl	4(%r14), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_fw_caps_to_lmm
	movq	(%rbx), %rdi
	movl	20(%rbx), %esi
	movl	(%r14), %edx
	callq	_fw_caps_to_lmm
	movq	%r15, %rdi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	jne	LBB0_9
## %bb.10:
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	%rbx, %rax
	addq	$32, %rax
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, 36(%r14)
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	24(%rbx), %rax
	movq	%rax, 24(%r14)
	movq	_FW_PORT_CAP32_ANEG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 16(%rbx)
	je	LBB0_13
## %bb.12:
	movq	_supported@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_Autoneg@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_ethtool_link_ksettings_add_link_mode
	movq	24(%rbx), %rax
LBB0_13:
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_advertising@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_Autoneg@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_ethtool_link_ksettings_add_link_mode
LBB0_15:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_supported,4,2                  ## @supported
	.comm	_advertising,4,2                ## @advertising
	.comm	_lp_advertising,4,2             ## @lp_advertising
	.comm	_FW_PORT_TYPE_BT_SGMII,8,3      ## @FW_PORT_TYPE_BT_SGMII
	.comm	_ETH_MDIO_SUPPORTS_C22,8,3      ## @ETH_MDIO_SUPPORTS_C22
	.comm	_ETH_MDIO_SUPPORTS_C45,8,3      ## @ETH_MDIO_SUPPORTS_C45
	.comm	_SPEED_UNKNOWN,4,2              ## @SPEED_UNKNOWN
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_FW_PORT_CAP32_ANEG,4,2         ## @FW_PORT_CAP32_ANEG
	.comm	_Autoneg,4,2                    ## @Autoneg
	.no_dead_strip	_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 get_link_ksettings
_get_link_ksettings:                    ; @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
	mov	x21, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x21
	bl	_netif_running
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_t4_update_port_info
LBB0_2:
Lloh0:
	adrp	x25, _supported@GOTPAGE
Lloh1:
	ldr	x25, [x25, _supported@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_ethtool_link_ksettings_zero_link_mode
Lloh2:
	adrp	x24, _advertising@GOTPAGE
Lloh3:
	ldr	x24, [x24, _advertising@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_ethtool_link_ksettings_zero_link_mode
Lloh4:
	adrp	x8, _lp_advertising@GOTPAGE
Lloh5:
	ldr	x8, [x8, _lp_advertising@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ethtool_link_ksettings_zero_link_mode
	ldr	x0, [x20]
	ldr	w1, [x20, #48]
	bl	_from_fw_port_mod_type
	str	w0, [x19, #48]
	ldr	x8, [x20, #8]
	tbnz	x8, #63, LBB0_4
; %bb.3:
	ldr	x9, [x20]
Lloh7:
	adrp	x10, _FW_PORT_TYPE_BT_SGMII@GOTPAGE
Lloh8:
	ldr	x10, [x10, _FW_PORT_TYPE_BT_SGMII@GOTPAGEOFF]
Lloh9:
	adrp	x11, _ETH_MDIO_SUPPORTS_C22@GOTPAGE
Lloh10:
	ldr	x11, [x11, _ETH_MDIO_SUPPORTS_C22@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
Lloh12:
	adrp	x12, _ETH_MDIO_SUPPORTS_C45@GOTPAGE
Lloh13:
	ldr	x12, [x12, _ETH_MDIO_SUPPORTS_C45@GOTPAGEOFF]
	cmp	x9, x10
	csel	x9, x11, x12, eq
	ldr	x9, [x9]
	b	LBB0_5
LBB0_4:
	mov	x9, #0
	mov	w8, #255
LBB0_5:
	str	w8, [x19, #16]
	str	x9, [x19, #40]
	ldr	x0, [x20]
	mov	x22, x20
	ldr	w1, [x22, #16]!
	ldr	w2, [x19, #8]
	bl	_fw_caps_to_lmm
	ldr	x23, [x20]
	ldp	w1, w0, [x20, #40]
	mov	x2, x22
	bl	_t4_link_acaps
	mov	x1, x0
	ldr	w2, [x19, #4]
	mov	x0, x23
	bl	_fw_caps_to_lmm
	ldr	x0, [x20]
	ldr	w1, [x20, #20]
	ldr	w2, [x19]
	bl	_fw_caps_to_lmm
	mov	x0, x21
	bl	_netif_carrier_ok
Lloh14:
	adrp	x8, _SPEED_UNKNOWN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SPEED_UNKNOWN@GOTPAGEOFF]
	add	x9, x20, #32
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh17:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
	ldr	x8, [x20, #24]
	str	x8, [x19, #24]
	ldr	w9, [x22]
Lloh19:
	adrp	x10, _FW_PORT_CAP32_ANEG@GOTPAGE
Lloh20:
	ldr	x10, [x10, _FW_PORT_CAP32_ANEG@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
Lloh22:
	adrp	x21, _Autoneg@GOTPAGE
Lloh23:
	ldr	x21, [x21, _Autoneg@GOTPAGEOFF]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.6:
	ldr	w1, [x25]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ethtool_link_ksettings_add_link_mode
	ldr	x8, [x20, #24]
LBB0_7:
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w1, [x24]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ethtool_link_ksettings_add_link_mode
LBB0_9:
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_supported,4,2                  ; @supported
	.comm	_advertising,4,2                ; @advertising
	.comm	_lp_advertising,4,2             ; @lp_advertising
	.comm	_FW_PORT_TYPE_BT_SGMII,8,3      ; @FW_PORT_TYPE_BT_SGMII
	.comm	_ETH_MDIO_SUPPORTS_C22,8,3      ; @ETH_MDIO_SUPPORTS_C22
	.comm	_ETH_MDIO_SUPPORTS_C45,8,3      ; @ETH_MDIO_SUPPORTS_C45
	.comm	_SPEED_UNKNOWN,4,2              ; @SPEED_UNKNOWN
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_FW_PORT_CAP32_ANEG,4,2         ; @FW_PORT_CAP32_ANEG
	.comm	_Autoneg,4,2                    ; @Autoneg
	.no_dead_strip	_get_link_ksettings
.subsections_via_symbols
