	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function velocity_set_settings
_velocity_set_settings:                 ## @velocity_set_settings
	.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
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%rax), %edi
	callq	_check_connection_type
	xorl	%edx, %edx
	cmpq	$0, 16(%rbx)
	movq	_VELOCITY_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	%r8d, %edi
	cmovel	%edx, %edi
	movq	_SPEED_100@GOTPCREL(%rip), %r9
	movq	(%rbx), %rcx
	movl	$0, %esi
	cmpq	(%r9), %rcx
	jne	LBB0_2
## %bb.1:
	movq	_VELOCITY_SPEED_100@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
LBB0_2:
	movq	8(%rbx), %r9
	movq	_SPEED_10@GOTPCREL(%rip), %r10
	movl	$0, %ebx
	cmpq	(%r10), %rcx
	jne	LBB0_4
## %bb.3:
	movq	_VELOCITY_SPEED_10@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_4:
	orl	%edi, %esi
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r9
	jne	LBB0_6
## %bb.5:
	movq	_VELOCITY_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_6:
	orl	%edx, %ebx
	orl	%ebx, %esi
	testl	%r8d, %esi
	je	LBB0_9
## %bb.7:
	movq	_VELOCITY_LINK_FAIL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	orl	%r8d, %eax
	cmpl	%eax, %esi
	jne	LBB0_8
LBB0_9:
	movq	%r14, %rdi
	callq	_velocity_set_media_mode
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VELOCITY_LINK_FAIL,4,2         ## @VELOCITY_LINK_FAIL
	.comm	_VELOCITY_AUTONEG_ENABLE,4,2    ## @VELOCITY_AUTONEG_ENABLE
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_VELOCITY_SPEED_100,4,2         ## @VELOCITY_SPEED_100
	.comm	_SPEED_10,8,3                   ## @SPEED_10
	.comm	_VELOCITY_SPEED_10,4,2          ## @VELOCITY_SPEED_10
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_VELOCITY_DUPLEX_FULL,4,2       ## @VELOCITY_DUPLEX_FULL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_velocity_set_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function velocity_set_settings
_velocity_set_settings:                 ; @velocity_set_settings
	.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	x20, x1
	bl	_netdev_priv
	mov	x19, x0
	ldr	w0, [x0]
	bl	_check_connection_type
	ldp	x13, x9, [x20, #8]
Lloh0:
	adrp	x8, _VELOCITY_AUTONEG_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VELOCITY_AUTONEG_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	x9, #0
	csel	w9, wzr, w8, eq
Lloh3:
	adrp	x10, _SPEED_100@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SPEED_100@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _VELOCITY_SPEED_100@GOTPAGE
Lloh7:
	ldr	x11, [x11, _VELOCITY_SPEED_100@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	ldr	x12, [x20]
	cmp	x12, x10
	csel	w10, w11, wzr, eq
Lloh9:
	adrp	x11, _SPEED_10@GOTPAGE
Lloh10:
	ldr	x11, [x11, _SPEED_10@GOTPAGEOFF]
	orr	w9, w10, w9
Lloh11:
	ldr	x10, [x11]
Lloh12:
	adrp	x11, _VELOCITY_SPEED_10@GOTPAGE
Lloh13:
	ldr	x11, [x11, _VELOCITY_SPEED_10@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	cmp	x12, x10
	csel	w10, w11, wzr, eq
	orr	w9, w9, w10
Lloh15:
	adrp	x10, _DUPLEX_FULL@GOTPAGE
Lloh16:
	ldr	x10, [x10, _DUPLEX_FULL@GOTPAGEOFF]
Lloh17:
	adrp	x11, _VELOCITY_DUPLEX_FULL@GOTPAGE
Lloh18:
	ldr	x11, [x11, _VELOCITY_DUPLEX_FULL@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
Lloh20:
	ldr	w11, [x11]
	cmp	x13, x10
	csel	w10, w11, wzr, eq
	orr	w1, w9, w10
	tst	w1, w8
	b.eq	LBB0_2
; %bb.1:
Lloh21:
	adrp	x9, _VELOCITY_LINK_FAIL@GOTPAGE
Lloh22:
	ldr	x9, [x9, _VELOCITY_LINK_FAIL@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	bic	w9, w0, w9
	orr	w8, w9, w8
	cmp	w1, w8
	b.ne	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_velocity_set_media_mode
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_VELOCITY_LINK_FAIL,4,2         ; @VELOCITY_LINK_FAIL
	.comm	_VELOCITY_AUTONEG_ENABLE,4,2    ; @VELOCITY_AUTONEG_ENABLE
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_VELOCITY_SPEED_100,4,2         ; @VELOCITY_SPEED_100
	.comm	_SPEED_10,8,3                   ; @SPEED_10
	.comm	_VELOCITY_SPEED_10,4,2          ; @VELOCITY_SPEED_10
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_VELOCITY_DUPLEX_FULL,4,2       ; @VELOCITY_DUPLEX_FULL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_velocity_set_settings
.subsections_via_symbols
