	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function velocity_set_link_ksettings
_velocity_set_link_ksettings:           ## @velocity_set_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, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	(%r15), %rbx
	movl	4(%rax), %edi
	callq	_check_connection_type
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	movq	_VELOCITY_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r11
	cmovneq	%r11, %rdi
	movq	_SPEED_1000@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	(%rdx), %rbx
	movq	_VELOCITY_SPEED_1000@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r9
	movl	$0, %edx
	cmoveq	%r9, %rdx
	orq	%rdi, %rdx
	movq	_SPEED_100@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rbx
	movq	_VELOCITY_SPEED_100@GOTPCREL(%rip), %rdi
	movq	(%rdi), %r10
	movl	$0, %edi
	cmoveq	%r10, %rdi
	movq	_SPEED_10@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	movq	_VELOCITY_SPEED_10@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movl	$0, %ecx
	cmoveq	%r8, %rcx
	movq	8(%r15), %rbx
	orq	%rdi, %rcx
	orq	%rdx, %rcx
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rbx
	movq	_VELOCITY_DUPLEX_FULL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rbx
	cmoveq	%rbx, %rsi
	orq	%rcx, %rsi
	testq	%r11, %rsi
	je	LBB0_4
## %bb.1:
	movq	_VELOCITY_LINK_FAIL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	notq	%rcx
	andq	%rcx, %rax
	orq	%r11, %rax
	cmpq	%rax, %rsi
	jne	LBB0_2
## %bb.3:
	movq	_SPD_DPX_AUTO@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_4:
	testq	%r9, %rsi
	je	LBB0_7
## %bb.5:
	movq	%rsi, %rax
	andq	%rbx, %rax
	je	LBB0_7
## %bb.6:
	movq	_SPD_DPX_1000_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_17:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_18
LBB0_7:
	testq	%r10, %rsi
	je	LBB0_11
## %bb.8:
	testq	%rbx, %rsi
	jne	LBB0_9
## %bb.10:
	movq	_SPD_DPX_100_HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_11:
	testq	%r8, %rsi
	je	LBB0_16
## %bb.12:
	testq	%rbx, %rsi
	jne	LBB0_13
## %bb.14:
	movq	_SPD_DPX_10_HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_9:
	movq	_SPD_DPX_100_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_16:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_13:
	movq	_SPD_DPX_10_FULL@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_velocity_set_media_mode
	xorl	%eax, %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VELOCITY_LINK_FAIL,8,3         ## @VELOCITY_LINK_FAIL
	.comm	_VELOCITY_AUTONEG_ENABLE,8,3    ## @VELOCITY_AUTONEG_ENABLE
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_VELOCITY_SPEED_1000,8,3        ## @VELOCITY_SPEED_1000
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_VELOCITY_SPEED_100,8,3         ## @VELOCITY_SPEED_100
	.comm	_SPEED_10,8,3                   ## @SPEED_10
	.comm	_VELOCITY_SPEED_10,8,3          ## @VELOCITY_SPEED_10
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_VELOCITY_DUPLEX_FULL,8,3       ## @VELOCITY_DUPLEX_FULL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SPD_DPX_AUTO,4,2               ## @SPD_DPX_AUTO
	.comm	_SPD_DPX_1000_FULL,4,2          ## @SPD_DPX_1000_FULL
	.comm	_SPD_DPX_100_FULL,4,2           ## @SPD_DPX_100_FULL
	.comm	_SPD_DPX_100_HALF,4,2           ## @SPD_DPX_100_HALF
	.comm	_SPD_DPX_10_FULL,4,2            ## @SPD_DPX_10_FULL
	.comm	_SPD_DPX_10_HALF,4,2            ## @SPD_DPX_10_HALF
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_velocity_set_link_ksettings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function velocity_set_link_ksettings
_velocity_set_link_ksettings:           ; @velocity_set_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	x20, x1
	bl	_netdev_priv
	mov	x19, x0
	ldr	x21, [x20]
	ldr	w0, [x0, #4]
	bl	_check_connection_type
Lloh0:
	adrp	x8, _VELOCITY_AUTONEG_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VELOCITY_AUTONEG_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _SPEED_1000@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SPEED_1000@GOTPAGEOFF]
	ldp	x13, x10, [x20, #8]
	cmp	x10, #0
	csel	x10, xzr, x8, eq
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x11, _VELOCITY_SPEED_1000@GOTPAGE
Lloh7:
	ldr	x11, [x11, _VELOCITY_SPEED_1000@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x21, x9
	csel	x9, x11, xzr, eq
	orr	x9, x9, x10
Lloh9:
	adrp	x10, _SPEED_100@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SPEED_100@GOTPAGEOFF]
Lloh11:
	adrp	x12, _VELOCITY_SPEED_100@GOTPAGE
Lloh12:
	ldr	x12, [x12, _VELOCITY_SPEED_100@GOTPAGEOFF]
Lloh13:
	ldr	x14, [x10]
Lloh14:
	ldr	x10, [x12]
	cmp	x21, x14
	csel	x12, x10, xzr, eq
Lloh15:
	adrp	x14, _SPEED_10@GOTPAGE
Lloh16:
	ldr	x14, [x14, _SPEED_10@GOTPAGEOFF]
	orr	x12, x9, x12
Lloh17:
	ldr	x14, [x14]
Lloh18:
	adrp	x9, _VELOCITY_SPEED_10@GOTPAGE
Lloh19:
	ldr	x9, [x9, _VELOCITY_SPEED_10@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x21, x14
	csel	x14, x9, xzr, eq
	orr	x14, x12, x14
Lloh21:
	adrp	x12, _DUPLEX_FULL@GOTPAGE
Lloh22:
	ldr	x12, [x12, _DUPLEX_FULL@GOTPAGEOFF]
Lloh23:
	adrp	x15, _VELOCITY_DUPLEX_FULL@GOTPAGE
Lloh24:
	ldr	x15, [x15, _VELOCITY_DUPLEX_FULL@GOTPAGEOFF]
Lloh25:
	ldr	x16, [x12]
Lloh26:
	ldr	x12, [x15]
	cmp	x13, x16
	csel	x13, x12, xzr, eq
	orr	x1, x14, x13
	tst	x1, x8
	b.eq	LBB0_3
; %bb.1:
Lloh27:
	adrp	x9, _VELOCITY_LINK_FAIL@GOTPAGE
Lloh28:
	ldr	x9, [x9, _VELOCITY_LINK_FAIL@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	bic	x9, x0, x9
	orr	x8, x9, x8
	cmp	x1, x8
	b.ne	LBB0_6
; %bb.2:
Lloh30:
	adrp	x8, _SPD_DPX_AUTO@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SPD_DPX_AUTO@GOTPAGEOFF]
	b	LBB0_12
LBB0_3:
	and	x11, x1, x11
	and	x8, x1, x12
	cmp	x11, #0
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_8
; %bb.4:
	tst	x1, x10
	b.eq	LBB0_9
; %bb.5:
Lloh32:
	adrp	x9, _SPD_DPX_100_FULL@GOTPAGE
Lloh33:
	ldr	x9, [x9, _SPD_DPX_100_FULL@GOTPAGEOFF]
Lloh34:
	adrp	x10, _SPD_DPX_100_HALF@GOTPAGE
Lloh35:
	ldr	x10, [x10, _SPD_DPX_100_HALF@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
Lloh36:
	adrp	x8, _EINVAL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_8:
Lloh38:
	adrp	x8, _SPD_DPX_1000_FULL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _SPD_DPX_1000_FULL@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
	tst	x1, x9
	b.eq	LBB0_14
; %bb.10:
Lloh40:
	adrp	x9, _SPD_DPX_10_FULL@GOTPAGE
Lloh41:
	ldr	x9, [x9, _SPD_DPX_10_FULL@GOTPAGEOFF]
Lloh42:
	adrp	x10, _SPD_DPX_10_HALF@GOTPAGE
Lloh43:
	ldr	x10, [x10, _SPD_DPX_10_HALF@GOTPAGEOFF]
LBB0_11:
	cmp	x8, #0
	csel	x8, x10, x9, eq
LBB0_12:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x19
	bl	_velocity_set_media_mode
	mov	w0, #0
LBB0_13:
	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
LBB0_14:
Lloh44:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh25
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_VELOCITY_LINK_FAIL,8,3         ; @VELOCITY_LINK_FAIL
	.comm	_VELOCITY_AUTONEG_ENABLE,8,3    ; @VELOCITY_AUTONEG_ENABLE
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_VELOCITY_SPEED_1000,8,3        ; @VELOCITY_SPEED_1000
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_VELOCITY_SPEED_100,8,3         ; @VELOCITY_SPEED_100
	.comm	_SPEED_10,8,3                   ; @SPEED_10
	.comm	_VELOCITY_SPEED_10,8,3          ; @VELOCITY_SPEED_10
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_VELOCITY_DUPLEX_FULL,8,3       ; @VELOCITY_DUPLEX_FULL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SPD_DPX_AUTO,4,2               ; @SPD_DPX_AUTO
	.comm	_SPD_DPX_1000_FULL,4,2          ; @SPD_DPX_1000_FULL
	.comm	_SPD_DPX_100_FULL,4,2           ; @SPD_DPX_100_FULL
	.comm	_SPD_DPX_100_HALF,4,2           ; @SPD_DPX_100_HALF
	.comm	_SPD_DPX_10_FULL,4,2            ; @SPD_DPX_10_FULL
	.comm	_SPD_DPX_10_HALF,4,2            ; @SPD_DPX_10_HALF
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_velocity_set_link_ksettings
.subsections_via_symbols
