	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxgb4vf_get_link_ksettings
_cxgb4vf_get_link_ksettings:            ## @cxgb4vf_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	_t4vf_update_port_info
LBB0_2:
	movq	_supported@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_ethtool_link_ksettings_zero_link_mode
	movq	_advertising@GOTPCREL(%rip), %r12
	movl	(%r12), %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
	movl	16(%rbx), %esi
	movl	8(%r14), %edx
	callq	_fw_caps_to_lmm
	movq	(%rbx), %rdi
	movl	20(%rbx), %esi
	movl	4(%r14), %edx
	callq	_fw_caps_to_lmm
	movq	(%rbx), %rdi
	movl	24(%rbx), %esi
	movl	(%r14), %edx
	callq	_fw_caps_to_lmm
	movq	%r15, %rdi
	callq	_netif_carrier_ok
	movq	%rbx, %rcx
	addq	$40, %rcx
	testq	%rax, %rax
	cmoveq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rcx
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	cmoveq	_DUPLEX_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rcx), %ecx
	movl	%ecx, 36(%r14)
	movl	%eax, 32(%r14)
	movq	32(%rbx), %rax
	movq	%rax, 24(%r14)
	movq	_FW_PORT_CAP32_ANEG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 16(%rbx)
	je	LBB0_10
## %bb.9:
	movl	(%r13), %esi
	movq	_Autoneg@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_ethtool_link_ksettings_add_link_mode
	movq	32(%rbx), %rax
LBB0_10:
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	(%r12), %esi
	movq	_Autoneg@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_ethtool_link_ksettings_add_link_mode
LBB0_12:
	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	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_SPEED_UNKNOWN,4,2              ## @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,4,2             ## @DUPLEX_UNKNOWN
	.comm	_FW_PORT_CAP32_ANEG,4,2         ## @FW_PORT_CAP32_ANEG
	.comm	_Autoneg,4,2                    ## @Autoneg
	.no_dead_strip	_cxgb4vf_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 cxgb4vf_get_link_ksettings
_cxgb4vf_get_link_ksettings:            ; @cxgb4vf_get_link_ksettings
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	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	_t4vf_update_port_info
LBB0_2:
Lloh0:
	adrp	x23, _supported@GOTPAGE
Lloh1:
	ldr	x23, [x23, _supported@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_ethtool_link_ksettings_zero_link_mode
Lloh2:
	adrp	x22, _advertising@GOTPAGE
Lloh3:
	ldr	x22, [x22, _advertising@GOTPAGEOFF]
	ldr	w1, [x22]
	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]
	ldr	w1, [x20, #16]
	ldr	w2, [x19, #8]
	bl	_fw_caps_to_lmm
	ldr	x0, [x20]
	ldr	w1, [x20, #20]
	ldr	w2, [x19, #4]
	bl	_fw_caps_to_lmm
	ldr	x0, [x20]
	ldr	w1, [x20, #24]
	ldr	w2, [x19]
	bl	_fw_caps_to_lmm
	mov	x0, x21
	bl	_netif_carrier_ok
	add	x8, x20, #40
Lloh14:
	adrp	x9, _SPEED_UNKNOWN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SPEED_UNKNOWN@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
Lloh16:
	adrp	x9, _DUPLEX_UNKNOWN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _DUPLEX_UNKNOWN@GOTPAGEOFF]
Lloh18:
	adrp	x10, _DUPLEX_FULL@GOTPAGE
Lloh19:
	ldr	x10, [x10, _DUPLEX_FULL@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	ldr	w8, [x8]
	stp	w9, w8, [x19, #32]
	ldr	x8, [x20, #32]
	str	x8, [x19, #24]
	ldr	w9, [x20, #16]
Lloh20:
	adrp	x10, _FW_PORT_CAP32_ANEG@GOTPAGE
Lloh21:
	ldr	x10, [x10, _FW_PORT_CAP32_ANEG@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
Lloh23:
	adrp	x21, _Autoneg@GOTPAGE
Lloh24:
	ldr	x21, [x21, _Autoneg@GOTPAGEOFF]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.6:
	ldr	w1, [x23]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ethtool_link_ksettings_add_link_mode
	ldr	x8, [x20, #32]
LBB0_7:
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w1, [x22]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ethtool_link_ksettings_add_link_mode
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 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	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.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	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_SPEED_UNKNOWN,4,2              ; @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,4,2             ; @DUPLEX_UNKNOWN
	.comm	_FW_PORT_CAP32_ANEG,4,2         ; @FW_PORT_CAP32_ANEG
	.comm	_Autoneg,4,2                    ; @Autoneg
	.no_dead_strip	_cxgb4vf_get_link_ksettings
.subsections_via_symbols
