	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function patch_vt2002P
_patch_vt2002P:                         ## @patch_vt2002P
	.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, %r14
	movl	$33, 24(%rax)
	movq	%r15, %rdi
	movl	$43, %esi
	xorl	%edx, %edx
	movl	$3, %ecx
	movl	$40, %r8d
	callq	_override_mic_boost
	movq	%r15, %rdi
	movl	$41, %esi
	xorl	%edx, %edx
	movl	$3, %ecx
	movl	$40, %r8d
	callq	_override_mic_boost
	movq	(%r14), %rax
	movq	_VT1802@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_fix_vt1802_connections
LBB0_4:
	movq	%r15, %rdi
	callq	_add_secret_dac_path
	movq	_vt2002p_fixups@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_via_fixups@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_snd_hda_pick_fixup
	movq	_HDA_FIXUP_ACT_PRE_PROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_snd_hda_apply_fixup
	movq	%r15, %rdi
	callq	_via_parse_auto_config
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	(%r14), %rcx
	movq	16(%r14), %rax
	cmpq	(%r12), %rcx
	jne	LBB0_7
## %bb.8:
	movq	_vt1802_init_verbs@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_5:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_via_free
	jmp	LBB0_10
LBB0_7:
	movq	_vt2002P_init_verbs@GOTPCREL(%rip), %rcx
LBB0_9:
	movl	(%rcx), %ecx
	movslq	12(%r14), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 12(%r14)
	movl	%ecx, (%rax,%rdx,4)
	movq	_via_patch_ops@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_set_widgets_power_state_vt2002P@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_VT1802,8,3                     ## @VT1802
	.comm	_vt2002p_fixups,4,2             ## @vt2002p_fixups
	.comm	_via_fixups,4,2                 ## @via_fixups
	.comm	_HDA_FIXUP_ACT_PRE_PROBE,4,2    ## @HDA_FIXUP_ACT_PRE_PROBE
	.comm	_vt1802_init_verbs,4,2          ## @vt1802_init_verbs
	.comm	_vt2002P_init_verbs,4,2         ## @vt2002P_init_verbs
	.comm	_via_patch_ops,4,2              ## @via_patch_ops
	.comm	_set_widgets_power_state_vt2002P,4,2 ## @set_widgets_power_state_vt2002P
	.no_dead_strip	_patch_vt2002P
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function patch_vt2002P
_patch_vt2002P:                         ; @patch_vt2002P
	.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_5
; %bb.1:
	mov	x20, x0
	mov	w8, #33
	str	w8, [x0, #24]
	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
	ldr	x8, [x20]
Lloh0:
	adrp	x22, _VT1802@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VT1802@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_fix_vt1802_connections
LBB0_3:
	mov	x0, x19
	bl	_add_secret_dac_path
Lloh2:
	adrp	x8, _vt2002p_fixups@GOTPAGE
Lloh3:
	ldr	x8, [x8, _vt2002p_fixups@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _via_fixups@GOTPAGE
Lloh6:
	ldr	x8, [x8, _via_fixups@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, #0
	bl	_snd_hda_pick_fixup
Lloh8:
	adrp	x8, _HDA_FIXUP_ACT_PRE_PROBE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HDA_FIXUP_ACT_PRE_PROBE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_hda_apply_fixup
	mov	x0, x19
	bl	_via_parse_auto_config
	tbnz	w0, #31, LBB0_6
; %bb.4:
	mov	w21, #0
	ldr	x8, [x20]
Lloh11:
	adrp	x9, _vt1802_init_verbs@GOTPAGE
Lloh12:
	ldr	x9, [x9, _vt1802_init_verbs@GOTPAGEOFF]
Lloh13:
	adrp	x10, _vt2002P_init_verbs@GOTPAGE
Lloh14:
	ldr	x10, [x10, _vt2002P_init_verbs@GOTPAGEOFF]
	ldr	x11, [x22]
	cmp	x8, x11
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	ldrsw	x9, [x20, #12]
	add	w10, w9, #1
	str	w10, [x20, #12]
	ldr	x10, [x20, #16]
	str	w8, [x10, x9, lsl #2]
Lloh15:
	adrp	x8, _via_patch_ops@GOTPAGE
Lloh16:
	ldr	x8, [x8, _via_patch_ops@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh18:
	adrp	x8, _set_widgets_power_state_vt2002P@GOTPAGE
Lloh19:
	ldr	x8, [x8, _set_widgets_power_state_vt2002P@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	b	LBB0_7
LBB0_5:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_6:
	mov	x21, x0
	mov	x0, x19
	bl	_via_free
LBB0_7:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_VT1802,8,3                     ; @VT1802
	.comm	_vt2002p_fixups,4,2             ; @vt2002p_fixups
	.comm	_via_fixups,4,2                 ; @via_fixups
	.comm	_HDA_FIXUP_ACT_PRE_PROBE,4,2    ; @HDA_FIXUP_ACT_PRE_PROBE
	.comm	_vt1802_init_verbs,4,2          ; @vt1802_init_verbs
	.comm	_vt2002P_init_verbs,4,2         ; @vt2002P_init_verbs
	.comm	_via_patch_ops,4,2              ; @via_patch_ops
	.comm	_set_widgets_power_state_vt2002P,4,2 ; @set_widgets_power_state_vt2002P
	.no_dead_strip	_patch_vt2002P
.subsections_via_symbols
