	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function patch_vt1708S
_patch_vt1708S:                         ## @patch_vt1708S
	.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	%rdi, %r15
	callq	_via_new_spec
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	$22, 16(%rax)
	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	_get_codec_type
	movq	_VT1708BCE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	(%r15), %rdi
	callq	_kfree
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_kstrdup
	movq	%rax, (%r15)
	movq	8(%r15), %rcx
	movq	24(%r15), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx), %edi
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %esi
	movq	%rax, %r8
	callq	_snprintf
LBB0_4:
	cmpl	$285623191, 16(%r15)            ## imm = 0x11064397
	jne	LBB0_6
## %bb.5:
	movq	(%r15), %rdi
	callq	_kfree
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_kstrdup
	movq	%rax, (%r15)
	movq	8(%r15), %rcx
	movq	24(%r15), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx), %edi
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %esi
	movq	%rax, %r8
	callq	_snprintf
LBB0_6:
	movq	%r15, %rdi
	callq	_via_parse_auto_config
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	_vt1708S_init_verbs@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r14), %rcx
	movslq	4(%r14), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 4(%r14)
	movl	%eax, (%rcx,%rdx,4)
	movq	_via_patch_ops@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	_set_widgets_power_state_vt1708B@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_7:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_via_free
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_VT1708BCE,8,3                  ## @VT1708BCE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VT1708BCE"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"%s %s"

L_.str.2:                               ## @.str.2
	.asciz	"VT1705"

	.comm	_vt1708S_init_verbs,4,2         ## @vt1708S_init_verbs
	.comm	_via_patch_ops,4,2              ## @via_patch_ops
	.comm	_set_widgets_power_state_vt1708B,4,2 ## @set_widgets_power_state_vt1708B
	.no_dead_strip	_patch_vt1708S
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function patch_vt1708S
_patch_vt1708S:                         ; @patch_vt1708S
	.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_7
; %bb.1:
	mov	x20, x0
	mov	w8, #22
	str	w8, [x0, #16]
	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	_get_codec_type
Lloh0:
	adrp	x8, _VT1708BCE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VT1708BCE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
	ldr	x0, [x19]
	bl	_kfree
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_kstrdup
	mov	x4, x0
	str	x0, [x19]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	w0, [x8]
	ldr	x3, [x19, #8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #4
	bl	_snprintf
LBB0_3:
	ldr	w8, [x19, #16]
	mov	w9, #17303
	movk	w9, #4358, lsl #16
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.4:
	ldr	x0, [x19]
	bl	_kfree
Lloh10:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_kstrdup
	mov	x4, x0
	str	x0, [x19]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	w0, [x8]
	ldr	x3, [x19, #8]
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #4
	bl	_snprintf
LBB0_5:
	mov	x0, x19
	bl	_via_parse_auto_config
	tbnz	w0, #31, LBB0_8
; %bb.6:
	mov	w21, #0
Lloh17:
	adrp	x8, _vt1708S_init_verbs@GOTPAGE
Lloh18:
	ldr	x8, [x8, _vt1708S_init_verbs@GOTPAGEOFF]
Lloh19:
	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]
Lloh20:
	adrp	x8, _via_patch_ops@GOTPAGE
Lloh21:
	ldr	x8, [x8, _via_patch_ops@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x19, #20]
Lloh23:
	adrp	x8, _set_widgets_power_state_vt1708B@GOTPAGE
Lloh24:
	ldr	x8, [x8, _set_widgets_power_state_vt1708B@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x20]
	b	LBB0_9
LBB0_7:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_8:
	mov	x21, x0
	mov	x0, x19
	bl	_via_free
LBB0_9:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_VT1708BCE,8,3                  ; @VT1708BCE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VT1708BCE"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"%s %s"

l_.str.2:                               ; @.str.2
	.asciz	"VT1705"

	.comm	_vt1708S_init_verbs,4,2         ; @vt1708S_init_verbs
	.comm	_via_patch_ops,4,2              ; @via_patch_ops
	.comm	_set_widgets_power_state_vt1708B,4,2 ; @set_widgets_power_state_vt1708B
	.no_dead_strip	_patch_vt1708S
.subsections_via_symbols
