	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function patch_vt1718S
_patch_vt1718S:                         ## @patch_vt1718S
	.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, %rbx
	callq	_via_new_spec
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	$33, 16(%rax)
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	movl	$43, %esi
	xorl	%edx, %edx
	movl	$3, %ecx
	movl	$40, %r8d
	callq	_override_mic_boost
	movq	%rbx, %rdi
	movl	$41, %esi
	xorl	%edx, %edx
	movl	$3, %ecx
	movl	$40, %r8d
	callq	_override_mic_boost
	movq	%rbx, %rdi
	callq	_add_secret_dac_path
	movq	%rbx, %rdi
	callq	_via_parse_auto_config
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_vt1718S_init_verbs@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r15), %rcx
	movslq	4(%r15), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 4(%r15)
	movl	%eax, (%rcx,%rdx,4)
	movq	_via_patch_ops@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_set_widgets_power_state_vt1718S@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	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	%rbx, %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	_vt1718S_init_verbs,4,2         ## @vt1718S_init_verbs
	.comm	_via_patch_ops,4,2              ## @via_patch_ops
	.comm	_set_widgets_power_state_vt1718S,4,2 ## @set_widgets_power_state_vt1718S
	.no_dead_strip	_patch_vt1718S
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function patch_vt1718S
_patch_vt1718S:                         ; @patch_vt1718S
	.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, #33
	str	w8, [x0, #16]
	mov	x0, x19
	mov	w1, #43
	mov	w2, #0
	mov	w3, #3
	mov	w4, #40
	bl	_override_mic_boost
	mov	x0, x19
	mov	w1, #41
	mov	w2, #0
	mov	w3, #3
	mov	w4, #40
	bl	_override_mic_boost
	mov	x0, x19
	bl	_add_secret_dac_path
	mov	x0, x19
	bl	_via_parse_auto_config
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	w21, #0
Lloh0:
	adrp	x8, _vt1718S_init_verbs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vt1718S_init_verbs@GOTPAGEOFF]
Lloh2:
	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]
Lloh3:
	adrp	x8, _via_patch_ops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _via_patch_ops@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh6:
	adrp	x8, _set_widgets_power_state_vt1718S@GOTPAGE
Lloh7:
	ldr	x8, [x8, _set_widgets_power_state_vt1718S@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20]
	b	LBB0_5
LBB0_3:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_vt1718S_init_verbs,4,2         ; @vt1718S_init_verbs
	.comm	_via_patch_ops,4,2              ; @via_patch_ops
	.comm	_set_widgets_power_state_vt1718S,4,2 ; @set_widgets_power_state_vt1718S
	.no_dead_strip	_patch_vt1718S
.subsections_via_symbols
