	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function patch_vt1716S
_patch_vt1716S:                         ## @patch_vt1716S
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_via_new_spec
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	$22, 32(%rax)
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	movl	$26, %esi
	xorl	%edx, %edx
	movl	$3, %ecx
	movl	$40, %r8d
	callq	_override_mic_boost
	movq	%r15, %rdi
	movl	$30, %esi
	xorl	%edx, %edx
	movl	$3, %ecx
	movl	$40, %r8d
	callq	_override_mic_boost
	movq	%r15, %rdi
	callq	_via_parse_auto_config
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_vt1716S_init_verbs@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	24(%rbx), %rcx
	movslq	16(%rbx), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 16(%rbx)
	movl	%eax, (%rcx,%rdx,4)
	movq	_vt1716s_dmic_mixer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rcx
	movslq	4(%rbx), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 4(%rbx)
	movl	%eax, (%rcx,%rdx,4)
	movq	_vt1716S_mono_out_mixer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movslq	4(%rbx), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 4(%rbx)
	movl	%eax, (%rcx,%rdx,4)
	movq	_via_patch_ops@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_set_widgets_power_state_vt1716S@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_5
LBB0_3:
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_via_free
	movl	%r12d, %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_vt1716S_init_verbs,4,2         ## @vt1716S_init_verbs
	.comm	_vt1716s_dmic_mixer,4,2         ## @vt1716s_dmic_mixer
	.comm	_vt1716S_mono_out_mixer,4,2     ## @vt1716S_mono_out_mixer
	.comm	_via_patch_ops,4,2              ## @via_patch_ops
	.comm	_set_widgets_power_state_vt1716S,4,2 ## @set_widgets_power_state_vt1716S
	.no_dead_strip	_patch_vt1716S
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function patch_vt1716S
_patch_vt1716S:                         ; @patch_vt1716S
	.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, x0
	bl	_via_new_spec
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	w8, #22
	str	w8, [x0, #32]
	mov	x0, x19
	mov	w1, #26
	mov	w2, #0
	mov	w3, #3
	mov	w4, #40
	bl	_override_mic_boost
	mov	x0, x19
	mov	w1, #30
	mov	w2, #0
	mov	w3, #3
	mov	w4, #40
	bl	_override_mic_boost
	mov	x0, x19
	bl	_via_parse_auto_config
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	w21, #0
Lloh0:
	adrp	x8, _vt1716S_init_verbs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vt1716S_init_verbs@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x20, #24]
	ldrsw	x10, [x20, #16]
	add	w11, w10, #1
	str	w11, [x20, #16]
	str	w8, [x9, x10, lsl #2]
Lloh3:
	adrp	x8, _vt1716s_dmic_mixer@GOTPAGE
Lloh4:
	ldr	x8, [x8, _vt1716s_dmic_mixer@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x20, #8]
	ldrsw	x10, [x20, #4]
	add	w11, w10, #1
	str	w11, [x20, #4]
	str	w8, [x9, x10, lsl #2]
Lloh6:
	adrp	x8, _vt1716S_mono_out_mixer@GOTPAGE
Lloh7:
	ldr	x8, [x8, _vt1716S_mono_out_mixer@GOTPAGEOFF]
	ldrsw	x10, [x20, #4]
	add	w11, w10, #1
	str	w11, [x20, #4]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x9, x10, lsl #2]
Lloh9:
	adrp	x8, _via_patch_ops@GOTPAGE
Lloh10:
	ldr	x8, [x8, _via_patch_ops@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh12:
	adrp	x8, _set_widgets_power_state_vt1716S@GOTPAGE
Lloh13:
	ldr	x8, [x8, _set_widgets_power_state_vt1716S@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x20]
	b	LBB0_5
LBB0_3:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_5
LBB0_4:
	mov	x21, x0
	mov	x0, x19
	bl	_via_free
LBB0_5:
	mov	x0, x21
	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 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	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_vt1716S_init_verbs,4,2         ; @vt1716S_init_verbs
	.comm	_vt1716s_dmic_mixer,4,2         ; @vt1716s_dmic_mixer
	.comm	_vt1716S_mono_out_mixer,4,2     ; @vt1716S_mono_out_mixer
	.comm	_via_patch_ops,4,2              ; @via_patch_ops
	.comm	_set_widgets_power_state_vt1716S,4,2 ; @set_widgets_power_state_vt1716S
	.no_dead_strip	_patch_vt1716S
.subsections_via_symbols
