	.file	"extr_patch_via.c_patch_vt1718S.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	patch_vt1718S, @function
patch_vt1718S:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	via_new_spec@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	test	rax, rax
	je	.L1
	mov	DWORD PTR 16[rax], 33
	xor	edx, edx
	mov	rdi, rbp
	mov	rbx, rax
	mov	r8d, 40
	mov	ecx, 3
	mov	esi, 43
	call	override_mic_boost@PLT
	mov	r8d, 40
	xor	edx, edx
	mov	rdi, rbp
	mov	ecx, 3
	mov	esi, 41
	call	override_mic_boost@PLT
	mov	rdi, rbp
	call	add_secret_dac_path@PLT
	mov	rdi, rbp
	call	via_parse_auto_config@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L7
	movsx	rax, DWORD PTR 4[rbx]
	mov	rdx, QWORD PTR 8[rbx]
	xor	r12d, r12d
	lea	ecx, 1[rax]
	mov	DWORD PTR 4[rbx], ecx
	mov	ecx, DWORD PTR vt1718S_init_verbs[rip]
	mov	DWORD PTR [rdx+rax*4], ecx
	mov	eax, DWORD PTR via_patch_ops[rip]
	mov	DWORD PTR 0[rbp], eax
	mov	eax, DWORD PTR set_widgets_power_state_vt1718S[rip]
	mov	DWORD PTR [rbx], eax
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, rbp
	call	via_free@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	patch_vt1718S, .-patch_vt1718S
	.comm	vt1718S_init_verbs,4,4
	.comm	via_patch_ops,4,4
	.comm	set_widgets_power_state_vt1718S,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_patch_via.c_patch_vt1718S.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	patch_vt1718S, %function
patch_vt1718S:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	sub	sp, sp, #8
	mov	r6, r0
	bl	via_new_spec
	subs	r4, r0, #0
	beq	.L7
	mov	r5, #40
	mov	r3, #33
	mov	r2, #0
	str	r3, [r4, #12]
	mov	r1, #43
	mov	r3, #3
	str	r5, [sp]
	mov	r0, r6
	bl	override_mic_boost
	mov	r3, #3
	mov	r2, #0
	mov	r1, #41
	str	r5, [sp]
	mov	r0, r6
	bl	override_mic_boost
	mov	r0, r6
	bl	add_secret_dac_path
	mov	r0, r6
	bl	via_parse_auto_config
	subs	r5, r0, #0
	blt	.L8
	mov	r5, #0
	ldr	r2, .L9
	ldr	r3, [r4, #4]
	ldr	r0, [r2]
	ldr	r1, [r4, #8]
	add	r2, r3, #1
	str	r2, [r4, #4]
	str	r0, [r1, r3, lsl #2]
	mov	r0, r5
	ldr	r2, .L9+4
	ldr	r3, .L9+8
	ldr	r2, [r2]
	str	r2, [r6]
	ldr	r3, [r3]
	str	r3, [r4]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r3, .L9+12
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L8:
	mov	r0, r6
	bl	via_free
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	vt1718S_init_verbs
	.word	via_patch_ops
	.word	set_widgets_power_state_vt1718S
	.word	ENOMEM
	.size	patch_vt1718S, .-patch_vt1718S
	.comm	vt1718S_init_verbs,4,4
	.comm	via_patch_ops,4,4
	.comm	set_widgets_power_state_vt1718S,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
