	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl1_get_link_ksettings
_atl1_get_link_ksettings:               ## @atl1_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	$40, %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, %r12
	movq	_SUPPORTED_10baseT_Half@GOTPCREL(%rip), %r11
	movq	_SUPPORTED_10baseT_Full@GOTPCREL(%rip), %rsi
	movq	_SUPPORTED_100baseT_Half@GOTPCREL(%rip), %r13
	movq	_SUPPORTED_100baseT_Full@GOTPCREL(%rip), %rdi
	movq	_SUPPORTED_1000baseT_Full@GOTPCREL(%rip), %r8
	movq	_SUPPORTED_Autoneg@GOTPCREL(%rip), %r9
	movq	_SUPPORTED_TP@GOTPCREL(%rip), %r10
	movq	_ADVERTISED_TP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movq	8(%rax), %rbx
	movq	_MEDIA_TYPE_AUTO_SENSOR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_MEDIA_TYPE_1000M_FULL@GOTPCREL(%rip), %rdx
	cmpq	%rcx, %rbx
	je	LBB0_2
## %bb.1:
	cmpq	(%rdx), %rbx
	jne	LBB0_5
LBB0_2:
	movq	_ADVERTISED_Autoneg@GOTPCREL(%rip), %rdx
	orl	(%rdx), %r14d
	cmpq	%rcx, %rbx
	jne	LBB0_4
## %bb.3:
	movq	_ADVERTISED_10baseT_Half@GOTPCREL(%rip), %rcx
	movq	_ADVERTISED_10baseT_Full@GOTPCREL(%rip), %rdx
	movq	_ADVERTISED_100baseT_Half@GOTPCREL(%rip), %rbx
	movq	_ADVERTISED_100baseT_Full@GOTPCREL(%rip), %rsi
	orl	(%rcx), %r14d
	orl	(%rdx), %r14d
	orl	(%rbx), %r14d
	orl	(%rsi), %r14d
	movq	_SUPPORTED_10baseT_Full@GOTPCREL(%rip), %rsi
LBB0_4:
	movq	_ADVERTISED_1000baseT_Full@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r14d
LBB0_5:
	addq	$8, %r12
	movl	(%r11), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	(%rsi), %ebx
	movl	(%r13), %ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	(%rdi), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	(%r8), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	(%r9), %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	(%r10), %r13d
	movq	_PORT_TP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%r15)
	movq	$0, 24(%r15)
	movl	(%rax), %edi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	leaq	-80(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	movq	%r12, %rdi
	callq	_atl1_get_speed_and_duplex
	movq	-80(%rbp), %rax
	movq	%rax, 16(%r15)
	movq	-72(%rbp), %rax
	movq	_FULL_DUPLEX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.8:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_10:
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	movq	_DUPLEX_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	_MEDIA_TYPE_AUTO_SENSOR@GOTPCREL(%rip), %rsi
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	movl	-48(%rbp), %r10d                ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_11
LBB0_7:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rax
LBB0_9:
	movq	_MEDIA_TYPE_AUTO_SENSOR@GOTPCREL(%rip), %rsi
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	movl	-48(%rbp), %r10d                ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
LBB0_11:
	movq	(%r12), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %r11
	movq	%r11, %rdx
	movq	_MEDIA_TYPE_1000M_FULL@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rax
	je	LBB0_13
## %bb.12:
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rdx
LBB0_13:
	cmpq	(%rsi), %rax
	cmoveq	%r11, %rdx
	movl	(%rdx), %eax
	movl	%eax, 8(%r15)
	orl	%ecx, %ebx
	orl	-60(%rbp), %ebx                 ## 4-byte Folded Reload
	orl	%r10d, %ebx
	orl	%r9d, %ebx
	orl	%r8d, %ebx
	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	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUPPORTED_10baseT_Half,4,2     ## @SUPPORTED_10baseT_Half
	.comm	_SUPPORTED_10baseT_Full,4,2     ## @SUPPORTED_10baseT_Full
	.comm	_SUPPORTED_100baseT_Half,4,2    ## @SUPPORTED_100baseT_Half
	.comm	_SUPPORTED_100baseT_Full,4,2    ## @SUPPORTED_100baseT_Full
	.comm	_SUPPORTED_1000baseT_Full,4,2   ## @SUPPORTED_1000baseT_Full
	.comm	_SUPPORTED_Autoneg,4,2          ## @SUPPORTED_Autoneg
	.comm	_SUPPORTED_TP,4,2               ## @SUPPORTED_TP
	.comm	_ADVERTISED_TP,4,2              ## @ADVERTISED_TP
	.comm	_MEDIA_TYPE_AUTO_SENSOR,8,3     ## @MEDIA_TYPE_AUTO_SENSOR
	.comm	_MEDIA_TYPE_1000M_FULL,8,3      ## @MEDIA_TYPE_1000M_FULL
	.comm	_ADVERTISED_Autoneg,4,2         ## @ADVERTISED_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_1000baseT_Full,4,2  ## @ADVERTISED_1000baseT_Full
	.comm	_PORT_TP,4,2                    ## @PORT_TP
	.comm	_FULL_DUPLEX,8,3                ## @FULL_DUPLEX
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
	.comm	_SPEED_UNKNOWN,8,3              ## @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,4,2             ## @DUPLEX_UNKNOWN
	.comm	_AUTONEG_ENABLE,4,2             ## @AUTONEG_ENABLE
	.comm	_AUTONEG_DISABLE,4,2            ## @AUTONEG_DISABLE
	.no_dead_strip	_atl1_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 atl1_get_link_ksettings
_atl1_get_link_ksettings:               ; @atl1_get_link_ksettings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	x15, [x20, #8]!
Lloh0:
	adrp	x8, _SUPPORTED_10baseT_Half@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUPPORTED_10baseT_Half@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SUPPORTED_10baseT_Full@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SUPPORTED_10baseT_Full@GOTPAGEOFF]
Lloh4:
	adrp	x10, _SUPPORTED_100baseT_Half@GOTPAGE
Lloh5:
	ldr	x10, [x10, _SUPPORTED_100baseT_Half@GOTPAGEOFF]
Lloh6:
	adrp	x11, _SUPPORTED_100baseT_Full@GOTPAGE
Lloh7:
	ldr	x11, [x11, _SUPPORTED_100baseT_Full@GOTPAGEOFF]
Lloh8:
	adrp	x12, _SUPPORTED_1000baseT_Full@GOTPAGE
Lloh9:
	ldr	x12, [x12, _SUPPORTED_1000baseT_Full@GOTPAGEOFF]
Lloh10:
	adrp	x13, _SUPPORTED_Autoneg@GOTPAGE
Lloh11:
	ldr	x13, [x13, _SUPPORTED_Autoneg@GOTPAGEOFF]
Lloh12:
	adrp	x14, _SUPPORTED_TP@GOTPAGE
Lloh13:
	ldr	x14, [x14, _SUPPORTED_TP@GOTPAGEOFF]
Lloh14:
	adrp	x16, _ADVERTISED_TP@GOTPAGE
Lloh15:
	ldr	x16, [x16, _ADVERTISED_TP@GOTPAGEOFF]
Lloh16:
	ldr	w21, [x16]
Lloh17:
	adrp	x16, _MEDIA_TYPE_AUTO_SENSOR@GOTPAGE
Lloh18:
	ldr	x16, [x16, _MEDIA_TYPE_AUTO_SENSOR@GOTPAGEOFF]
Lloh19:
	ldr	x17, [x16]
Lloh20:
	adrp	x16, _MEDIA_TYPE_1000M_FULL@GOTPAGE
Lloh21:
	ldr	x16, [x16, _MEDIA_TYPE_1000M_FULL@GOTPAGEOFF]
	cmp	x15, x17
	b.eq	LBB0_2
; %bb.1:
	ldr	x16, [x16]
	cmp	x15, x16
	b.ne	LBB0_5
LBB0_2:
Lloh22:
	adrp	x16, _ADVERTISED_Autoneg@GOTPAGE
Lloh23:
	ldr	x16, [x16, _ADVERTISED_Autoneg@GOTPAGEOFF]
Lloh24:
	ldr	w16, [x16]
	orr	w16, w16, w21
	cmp	x15, x17
	b.ne	LBB0_4
; %bb.3:
Lloh25:
	adrp	x15, _ADVERTISED_10baseT_Half@GOTPAGE
Lloh26:
	ldr	x15, [x15, _ADVERTISED_10baseT_Half@GOTPAGEOFF]
Lloh27:
	ldr	w15, [x15]
Lloh28:
	adrp	x17, _ADVERTISED_10baseT_Full@GOTPAGE
Lloh29:
	ldr	x17, [x17, _ADVERTISED_10baseT_Full@GOTPAGEOFF]
Lloh30:
	ldr	w17, [x17]
Lloh31:
	adrp	x1, _ADVERTISED_100baseT_Half@GOTPAGE
Lloh32:
	ldr	x1, [x1, _ADVERTISED_100baseT_Half@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x1]
Lloh34:
	adrp	x2, _ADVERTISED_100baseT_Full@GOTPAGE
Lloh35:
	ldr	x2, [x2, _ADVERTISED_100baseT_Full@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x2]
Lloh37:
	adrp	x3, _ADVERTISED_1000baseT_Full@GOTPAGE
Lloh38:
	ldr	x3, [x3, _ADVERTISED_1000baseT_Full@GOTPAGEOFF]
Lloh39:
	ldr	w3, [x3]
	orr	w15, w15, w16
	orr	w15, w15, w17
	orr	w15, w15, w1
	orr	w15, w15, w2
	orr	w21, w15, w3
	b	LBB0_5
LBB0_4:
Lloh40:
	adrp	x15, _ADVERTISED_1000baseT_Full@GOTPAGE
Lloh41:
	ldr	x15, [x15, _ADVERTISED_1000baseT_Full@GOTPAGEOFF]
Lloh42:
	ldr	w15, [x15]
	orr	w21, w15, w16
LBB0_5:
	ldr	w24, [x8]
	ldr	w25, [x9]
	ldr	w26, [x10]
	ldr	w27, [x11]
	ldr	w28, [x12]
	ldr	w23, [x13]
	ldr	w22, [x14]
Lloh43:
	adrp	x8, _PORT_TP@GOTPAGE
Lloh44:
	ldr	x8, [x8, _PORT_TP@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	str	xzr, [x19, #24]
	ldr	w0, [x0]
	bl	_netif_carrier_ok
	cbz	x0, LBB0_7
; %bb.6:
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x20
	bl	_atl1_get_speed_and_duplex
	ldr	x8, [sp, #8]
	str	x8, [x19, #16]
	ldr	x8, [sp]
Lloh46:
	adrp	x9, _FULL_DUPLEX@GOTPAGE
Lloh47:
	ldr	x9, [x9, _FULL_DUPLEX@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
Lloh49:
	adrp	x10, _DUPLEX_FULL@GOTPAGE
Lloh50:
	ldr	x10, [x10, _DUPLEX_FULL@GOTPAGEOFF]
Lloh51:
	adrp	x11, _DUPLEX_HALF@GOTPAGE
Lloh52:
	ldr	x11, [x11, _DUPLEX_HALF@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	b	LBB0_8
LBB0_7:
Lloh53:
	adrp	x8, _SPEED_UNKNOWN@GOTPAGE
Lloh54:
	ldr	x8, [x8, _SPEED_UNKNOWN@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh56:
	adrp	x8, _DUPLEX_UNKNOWN@GOTPAGE
Lloh57:
	ldr	x8, [x8, _DUPLEX_UNKNOWN@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	str	w8, [x19, #12]
Lloh58:
	adrp	x9, _MEDIA_TYPE_AUTO_SENSOR@GOTPAGE
Lloh59:
	ldr	x9, [x9, _MEDIA_TYPE_AUTO_SENSOR@GOTPAGEOFF]
Lloh60:
	adrp	x10, _MEDIA_TYPE_1000M_FULL@GOTPAGE
Lloh61:
	ldr	x10, [x10, _MEDIA_TYPE_1000M_FULL@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh62:
	ldr	x9, [x9]
Lloh63:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
Lloh64:
	adrp	x8, _AUTONEG_ENABLE@GOTPAGE
Lloh65:
	ldr	x8, [x8, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh66:
	adrp	x9, _AUTONEG_DISABLE@GOTPAGE
Lloh67:
	ldr	x9, [x9, _AUTONEG_DISABLE@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #8]
	orr	w8, w25, w24
	orr	w8, w8, w26
	orr	w8, w8, w27
	orr	w8, w8, w28
	orr	w8, w8, w23
	orr	w1, w8, w22
	ldr	w0, [x19, #4]
	bl	_ethtool_convert_legacy_u32_to_link_mode
	ldr	w0, [x19]
	mov	x1, x21
	bl	_ethtool_convert_legacy_u32_to_link_mode
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh62
	.cfi_endproc
                                        ; -- End function
	.comm	_SUPPORTED_10baseT_Half,4,2     ; @SUPPORTED_10baseT_Half
	.comm	_SUPPORTED_10baseT_Full,4,2     ; @SUPPORTED_10baseT_Full
	.comm	_SUPPORTED_100baseT_Half,4,2    ; @SUPPORTED_100baseT_Half
	.comm	_SUPPORTED_100baseT_Full,4,2    ; @SUPPORTED_100baseT_Full
	.comm	_SUPPORTED_1000baseT_Full,4,2   ; @SUPPORTED_1000baseT_Full
	.comm	_SUPPORTED_Autoneg,4,2          ; @SUPPORTED_Autoneg
	.comm	_SUPPORTED_TP,4,2               ; @SUPPORTED_TP
	.comm	_ADVERTISED_TP,4,2              ; @ADVERTISED_TP
	.comm	_MEDIA_TYPE_AUTO_SENSOR,8,3     ; @MEDIA_TYPE_AUTO_SENSOR
	.comm	_MEDIA_TYPE_1000M_FULL,8,3      ; @MEDIA_TYPE_1000M_FULL
	.comm	_ADVERTISED_Autoneg,4,2         ; @ADVERTISED_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_1000baseT_Full,4,2  ; @ADVERTISED_1000baseT_Full
	.comm	_PORT_TP,4,2                    ; @PORT_TP
	.comm	_FULL_DUPLEX,8,3                ; @FULL_DUPLEX
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
	.comm	_SPEED_UNKNOWN,8,3              ; @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,4,2             ; @DUPLEX_UNKNOWN
	.comm	_AUTONEG_ENABLE,4,2             ; @AUTONEG_ENABLE
	.comm	_AUTONEG_DISABLE,4,2            ; @AUTONEG_DISABLE
	.no_dead_strip	_atl1_get_link_ksettings
.subsections_via_symbols
