	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __de_get_link_ksettings
___de_get_link_ksettings:               ## @__de_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, %rbx
	movq	%rdi, %r14
	movl	28(%rsi), %edi
	movl	20(%r14), %esi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	movq	$0, 16(%rbx)
	movl	24(%rbx), %edi
	movl	16(%r14), %esi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	movl	(%r14), %ecx
	cmpl	$128, %ecx
	jne	LBB0_1
## %bb.2:
	movq	_PORT_BNC@GOTPCREL(%rip), %rax
	cmpl	$129, %ecx
	je	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_PORT_TP@GOTPCREL(%rip), %rax
	cmpl	$129, %ecx
	jne	LBB0_5
LBB0_4:
	movq	_PORT_AUI@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	$10, (%rbx)
	movq	_MacMode@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dr32
	movq	_FullDuplex@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jne	LBB0_6
## %bb.7:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	cmpq	$0, 8(%r14)
	jne	LBB0_9
## %bb.10:
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_AUI,4,2                   ## @PORT_AUI
	.comm	_PORT_BNC,4,2                   ## @PORT_BNC
	.comm	_PORT_TP,4,2                    ## @PORT_TP
	.comm	_MacMode,4,2                    ## @MacMode
	.comm	_FullDuplex,4,2                 ## @FullDuplex
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
	.comm	_AUTONEG_DISABLE,4,2            ## @AUTONEG_DISABLE
	.comm	_AUTONEG_ENABLE,4,2             ## @AUTONEG_ENABLE
	.no_dead_strip	___de_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 __de_get_link_ksettings
___de_get_link_ksettings:               ; @__de_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
	mov	x20, x0
	ldr	w0, [x1, #28]
	ldr	w1, [x20, #20]
	bl	_ethtool_convert_legacy_u32_to_link_mode
	str	xzr, [x19, #16]
	ldr	w0, [x19, #24]
	ldr	w1, [x20, #16]
	bl	_ethtool_convert_legacy_u32_to_link_mode
Lloh0:
	adrp	x8, _PORT_AUI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORT_AUI@GOTPAGEOFF]
Lloh2:
	adrp	x9, _PORT_BNC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PORT_BNC@GOTPAGEOFF]
Lloh4:
	adrp	x10, _PORT_TP@GOTPAGE
Lloh5:
	ldr	x10, [x10, _PORT_TP@GOTPAGEOFF]
	ldr	w11, [x20]
	cmp	w11, #128
	csel	x9, x9, x10, eq
	cmp	w11, #129
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #12]
	mov	w8, #10
	str	w8, [x19]
Lloh6:
	adrp	x8, _MacMode@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MacMode@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_dr32
Lloh9:
	adrp	x8, _FullDuplex@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FullDuplex@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _DUPLEX_HALF@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DUPLEX_HALF@GOTPAGEOFF]
Lloh14:
	adrp	x10, _DUPLEX_FULL@GOTPAGE
Lloh15:
	ldr	x10, [x10, _DUPLEX_FULL@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	x8, [x20, #8]
Lloh16:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh18:
	adrp	x10, _AUTONEG_DISABLE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _AUTONEG_DISABLE@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_AUI,4,2                   ; @PORT_AUI
	.comm	_PORT_BNC,4,2                   ; @PORT_BNC
	.comm	_PORT_TP,4,2                    ; @PORT_TP
	.comm	_MacMode,4,2                    ; @MacMode
	.comm	_FullDuplex,4,2                 ; @FullDuplex
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
	.comm	_AUTONEG_DISABLE,4,2            ; @AUTONEG_DISABLE
	.comm	_AUTONEG_ENABLE,4,2             ; @AUTONEG_ENABLE
	.no_dead_strip	___de_get_link_ksettings
.subsections_via_symbols
