	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movl	20(%rbx), %edi
	movl	16(%rax), %esi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	movl	24(%rbx), %edi
	movl	12(%r14), %esi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	movq	%r15, %rdi
	callq	_netif_carrier_ok
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rax
	movq	_DUPLEX_UNKNOWN@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	leaq	8(%r14), %rax
	leaq	4(%r14), %rcx
LBB0_3:
	movl	(%rcx), %ecx
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	%ecx, 12(%rbx)
	movl	20(%rbx), %esi
	leaq	-28(%rbp), %rdi
	callq	_ethtool_convert_link_mode_to_legacy_u32
	movq	_SUPPORTED_TP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-28(%rbp), %eax
	jne	LBB0_4
## %bb.5:
	movq	_PORT_FIBRE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_PORT_TP@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	20(%r14), %eax
	movl	%eax, 4(%rbx)
	movl	(%r14), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPEED_UNKNOWN,4,2              ## @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,4,2             ## @DUPLEX_UNKNOWN
	.comm	_SUPPORTED_TP,4,2               ## @SUPPORTED_TP
	.comm	_PORT_TP,4,2                    ## @PORT_TP
	.comm	_PORT_FIBRE,4,2                 ## @PORT_FIBRE
	.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:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	w0, [x19, #20]
	ldr	w1, [x21, #16]
	bl	_ethtool_convert_legacy_u32_to_link_mode
	ldr	w0, [x19, #24]
	ldr	w1, [x21, #12]
	bl	_ethtool_convert_legacy_u32_to_link_mode
	mov	x0, x20
	bl	_netif_carrier_ok
	add	x8, x21, #8
	add	x9, x21, #4
Lloh0:
	adrp	x10, _SPEED_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SPEED_UNKNOWN@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x10, x8, eq
Lloh2:
	adrp	x10, _DUPLEX_UNKNOWN@GOTPAGE
Lloh3:
	ldr	x10, [x10, _DUPLEX_UNKNOWN@GOTPAGEOFF]
	csel	x9, x10, x9, eq
	ldr	w9, [x9]
	ldr	w8, [x8]
	stp	w9, w8, [x19, #12]
	ldr	w1, [x19, #20]
	add	x0, sp, #12
	bl	_ethtool_convert_link_mode_to_legacy_u32
	ldr	w8, [sp, #12]
Lloh4:
	adrp	x9, _SUPPORTED_TP@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SUPPORTED_TP@GOTPAGEOFF]
Lloh6:
	adrp	x10, _PORT_TP@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PORT_TP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x11, _PORT_FIBRE@GOTPAGE
Lloh10:
	ldr	x11, [x11, _PORT_FIBRE@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	w8, [x21, #20]
	ldr	w9, [x21]
	stp	w9, w8, [x19]
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SPEED_UNKNOWN,4,2              ; @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,4,2             ; @DUPLEX_UNKNOWN
	.comm	_SUPPORTED_TP,4,2               ; @SUPPORTED_TP
	.comm	_PORT_TP,4,2                    ; @PORT_TP
	.comm	_PORT_FIBRE,4,2                 ; @PORT_FIBRE
	.no_dead_strip	_get_link_ksettings
.subsections_via_symbols
