	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gem_get_link_ksettings
_gem_get_link_ksettings:                ## @gem_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	(%rax), %rcx
	movq	_phy_mii_mdio0@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_2
## %bb.1:
	movq	_phy_mii_mdio1@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_2
## %bb.6:
	movq	_SUPPORTED_10baseT_Half@GOTPCREL(%rip), %rsi
	movq	_SUPPORTED_10baseT_Full@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rsi), %edx
	movq	_SUPPORTED_100baseT_Half@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	movq	_SUPPORTED_100baseT_Full@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	movq	_SUPPORTED_Autoneg@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	$0, 16(%r14)
	movq	$0, 8(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r14)
	movq	_phy_serdes@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rcx
	jne	LBB0_7
## %bb.8:
	leaq	24(%r14), %rcx
	movq	_PORT_FIBRE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, (%rcx)
	movq	_SUPPORTED_1000baseT_Half@GOTPCREL(%rip), %rdx
	movq	_SUPPORTED_1000baseT_Full@GOTPCREL(%rip), %rdi
	movq	_SUPPORTED_FIBRE@GOTPCREL(%rip), %rbx
	movq	_SUPPORTED_Pause@GOTPCREL(%rip), %rcx
	movq	_SUPPORTED_Asym_Pause@GOTPCREL(%rip), %r8
	orl	(%rdx), %esi
	orl	(%rdi), %esi
	orl	(%rbx), %esi
	orl	(%rcx), %esi
	movq	16(%rax), %rax
	movq	_link_up@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
LBB0_10:
	orl	(%r8), %esi
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movl	$1, 8(%r14)
	jmp	LBB0_11
LBB0_2:
	movq	40(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	movl	(%rcx), %esi
	jmp	LBB0_5
LBB0_7:
	orl	%edx, %esi
LBB0_11:
	movl	%esi, %ebx
	jmp	LBB0_12
LBB0_4:
	movq	_SUPPORTED_10baseT_Half@GOTPCREL(%rip), %rcx
	movq	_SUPPORTED_10baseT_Full@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
LBB0_5:
	movq	_PORT_MII@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 24(%r14)
	movq	$0, 32(%r14)
	movl	8(%rax), %ecx
	movl	%ecx, 8(%r14)
	movl	32(%rax), %ecx
	movl	%ecx, 16(%r14)
	movl	28(%rax), %ecx
	movl	%ecx, 12(%r14)
	movl	24(%rax), %ebx
	testl	%ebx, %ebx
	cmovel	%esi, %ebx
LBB0_12:
	movl	4(%r14), %edi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_phy_mii_mdio0,8,3              ## @phy_mii_mdio0
	.comm	_phy_mii_mdio1,8,3              ## @phy_mii_mdio1
	.comm	_SUPPORTED_10baseT_Half,4,2     ## @SUPPORTED_10baseT_Half
	.comm	_SUPPORTED_10baseT_Full,4,2     ## @SUPPORTED_10baseT_Full
	.comm	_PORT_MII,8,3                   ## @PORT_MII
	.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	_phy_serdes,8,3                 ## @phy_serdes
	.comm	_PORT_FIBRE,8,3                 ## @PORT_FIBRE
	.comm	_SUPPORTED_1000baseT_Half,4,2   ## @SUPPORTED_1000baseT_Half
	.comm	_SUPPORTED_1000baseT_Full,4,2   ## @SUPPORTED_1000baseT_Full
	.comm	_SUPPORTED_FIBRE,4,2            ## @SUPPORTED_FIBRE
	.comm	_SUPPORTED_Pause,4,2            ## @SUPPORTED_Pause
	.comm	_SUPPORTED_Asym_Pause,4,2       ## @SUPPORTED_Asym_Pause
	.comm	_link_up,8,3                    ## @link_up
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.no_dead_strip	_gem_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 gem_get_link_ksettings
_gem_get_link_ksettings:                ; @gem_get_link_ksettings
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_netdev_priv
	ldr	x9, [x0]
Lloh0:
	adrp	x8, _phy_mii_mdio0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _phy_mii_mdio0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x10, _phy_mii_mdio1@GOTPAGE
Lloh4:
	ldr	x10, [x10, _phy_mii_mdio1@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x8
	ccmp	x9, x10, #4, ne
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_9
; %bb.2:
	ldr	w1, [x8]
	b	LBB0_10
LBB0_3:
Lloh6:
	adrp	x8, _SUPPORTED_10baseT_Half@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SUPPORTED_10baseT_Half@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x8]
Lloh9:
	adrp	x8, _SUPPORTED_10baseT_Full@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SUPPORTED_10baseT_Full@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x8]
Lloh12:
	adrp	x8, _SUPPORTED_100baseT_Half@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SUPPORTED_100baseT_Half@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x8]
Lloh15:
	adrp	x8, _SUPPORTED_100baseT_Full@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SUPPORTED_100baseT_Full@GOTPAGEOFF]
Lloh17:
	ldr	w13, [x8]
Lloh18:
	adrp	x8, _SUPPORTED_Autoneg@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SUPPORTED_Autoneg@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	mov	x14, x19
	str	xzr, [x14, #24]!
	stur	xzr, [x14, #-12]
	stur	wzr, [x14, #-16]
	str	xzr, [x14, #8]
Lloh21:
	adrp	x15, _phy_serdes@GOTPAGE
Lloh22:
	ldr	x15, [x15, _phy_serdes@GOTPAGEOFF]
Lloh23:
	ldr	x15, [x15]
	cmp	x9, x15
	b.ne	LBB0_7
; %bb.4:
Lloh24:
	adrp	x9, _PORT_FIBRE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PORT_FIBRE@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
Lloh27:
	adrp	x10, _SUPPORTED_1000baseT_Half@GOTPAGE
Lloh28:
	ldr	x10, [x10, _SUPPORTED_1000baseT_Half@GOTPAGEOFF]
	str	x9, [x14]
Lloh29:
	ldr	w9, [x10]
Lloh30:
	adrp	x10, _SUPPORTED_1000baseT_Full@GOTPAGE
Lloh31:
	ldr	x10, [x10, _SUPPORTED_1000baseT_Full@GOTPAGEOFF]
Lloh32:
	adrp	x11, _SUPPORTED_FIBRE@GOTPAGE
Lloh33:
	ldr	x11, [x11, _SUPPORTED_FIBRE@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
Lloh35:
	ldr	w11, [x11]
Lloh36:
	adrp	x12, _SUPPORTED_Pause@GOTPAGE
Lloh37:
	ldr	x12, [x12, _SUPPORTED_Pause@GOTPAGEOFF]
Lloh38:
	adrp	x13, _SUPPORTED_Asym_Pause@GOTPAGE
Lloh39:
	ldr	x13, [x13, _SUPPORTED_Asym_Pause@GOTPAGEOFF]
Lloh40:
	ldr	w12, [x12]
Lloh41:
	ldr	w13, [x13]
	orr	w8, w9, w8
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w8, w8, w12
	orr	w1, w8, w13
	ldr	x8, [x0, #16]
Lloh42:
	adrp	x9, _link_up@GOTPAGE
Lloh43:
	ldr	x9, [x9, _link_up@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
Lloh45:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh46:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	str	w8, [x19, #16]
LBB0_6:
Lloh48:
	adrp	x8, _DUPLEX_FULL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _DUPLEX_FULL@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	mov	w9, #1
	stp	w9, w8, [x19, #8]
	b	LBB0_8
LBB0_7:
	orr	w9, w11, w10
	orr	w9, w9, w12
	orr	w9, w9, w13
	orr	w1, w9, w8
LBB0_8:
	mov	x20, x1
	b	LBB0_11
LBB0_9:
Lloh51:
	adrp	x8, _SUPPORTED_10baseT_Half@GOTPAGE
Lloh52:
	ldr	x8, [x8, _SUPPORTED_10baseT_Half@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
Lloh54:
	adrp	x9, _SUPPORTED_10baseT_Full@GOTPAGE
Lloh55:
	ldr	x9, [x9, _SUPPORTED_10baseT_Full@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
	orr	w1, w9, w8
LBB0_10:
Lloh57:
	adrp	x8, _PORT_MII@GOTPAGE
Lloh58:
	ldr	x8, [x8, _PORT_MII@GOTPAGEOFF]
Lloh59:
	ldr	x8, [x8]
	stp	x8, xzr, [x19, #24]
	ldr	w8, [x0, #8]
	str	w8, [x19, #8]
	ldur	d0, [x0, #28]
	stur	d0, [x19, #12]
	ldr	w8, [x0, #24]
	cmp	w8, #0
	csel	w20, w1, w8, eq
LBB0_11:
	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, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh40
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh34
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_phy_mii_mdio0,8,3              ; @phy_mii_mdio0
	.comm	_phy_mii_mdio1,8,3              ; @phy_mii_mdio1
	.comm	_SUPPORTED_10baseT_Half,4,2     ; @SUPPORTED_10baseT_Half
	.comm	_SUPPORTED_10baseT_Full,4,2     ; @SUPPORTED_10baseT_Full
	.comm	_PORT_MII,8,3                   ; @PORT_MII
	.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	_phy_serdes,8,3                 ; @phy_serdes
	.comm	_PORT_FIBRE,8,3                 ; @PORT_FIBRE
	.comm	_SUPPORTED_1000baseT_Half,4,2   ; @SUPPORTED_1000baseT_Half
	.comm	_SUPPORTED_1000baseT_Full,4,2   ; @SUPPORTED_1000baseT_Full
	.comm	_SUPPORTED_FIBRE,4,2            ; @SUPPORTED_FIBRE
	.comm	_SUPPORTED_Pause,4,2            ; @SUPPORTED_Pause
	.comm	_SUPPORTED_Asym_Pause,4,2       ; @SUPPORTED_Asym_Pause
	.comm	_link_up,8,3                    ; @link_up
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.no_dead_strip	_gem_get_link_ksettings
.subsections_via_symbols
