	.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, %r12
	movq	(%rdi), %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r13
	shlq	$5, %rbx
	movl	(%r13,%rbx), %r15d
	movl	4(%r13,%rbx), %r14d
	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	(%rbx,%r13), %rax
	addq	$16, %rax
	leaq	(%rbx,%r13), %rcx
	addq	$12, %rcx
LBB0_3:
	movl	(%rcx), %ecx
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movl	%ecx, 20(%r12)
	movq	_SUPPORTED_TP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %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, 16(%r12)
	movq	24(%r13,%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movl	8(%r13,%rbx), %eax
	movl	%eax, 8(%r12)
	movl	4(%r12), %edi
	movl	%r15d, %esi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	movl	(%r12), %edi
	movl	%r14d, %esi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldp	x9, x8, [x0]
	ldr	x8, [x8]
	add	x22, x8, x9, lsl #5
	ldp	w20, w21, [x22]
	bl	_netif_carrier_ok
	add	x8, x22, #16
	add	x9, x22, #12
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, #20]
Lloh4:
	adrp	x8, _SUPPORTED_TP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SUPPORTED_TP@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _PORT_TP@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PORT_TP@GOTPAGEOFF]
Lloh9:
	adrp	x10, _PORT_FIBRE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _PORT_FIBRE@GOTPAGEOFF]
	tst	w8, w20
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldr	x8, [x22, #24]
	ldr	w8, [x8]
	ldr	w9, [x22, #8]
	stp	w9, w8, [x19, #8]
	ldr	w0, [x19, #4]
	mov	x1, x20
	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, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.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
