	.file	"extr_via82c686.c_viachan_setspeed.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	viachan_setspeed, @function
viachan_setspeed:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR 8[rsi]
	mov	ecx, DWORD PTR [rax]
	test	DWORD PTR AC97_EXTCAP_VRA[rip], ecx
	je	.L2
	mov	r8d, DWORD PTR AC97_REGEXT_LADCRATE[rip]
	mov	rdi, QWORD PTR PCMDIR_PLAY[rip]
	cmp	QWORD PTR [rsi], rdi
	je	.L6
	mov	edi, DWORD PTR 4[rax]
	mov	esi, r8d
	jmp	ac97_setrate@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r8d, DWORD PTR AC97_REGEXT_FDACRATE[rip]
	mov	edi, DWORD PTR 4[rax]
	mov	esi, r8d
	jmp	ac97_setrate@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, 48000
	ret
	.cfi_endproc
.LFE0:
	.size	viachan_setspeed, .-viachan_setspeed
	.comm	PCMDIR_PLAY,8,8
	.comm	AC97_REGEXT_LADCRATE,4,4
	.comm	AC97_REGEXT_FDACRATE,4,4
	.comm	AC97_EXTCAP_VRA,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_via82c686.c_viachan_setspeed.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	viachan_setspeed, %function
viachan_setspeed:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r3, [r1, #4]
	ldr	r0, .L6
	ldr	ip, [r3]
	ldr	r0, [r0]
	tst	ip, r0
	beq	.L2
	ldr	ip, .L6+4
	ldr	r0, [r1]
	ldr	r1, [ip]
	cmp	r0, r1
	ldreq	r1, .L6+8
	ldrne	r1, .L6+12
	ldr	r0, [r3, #4]
	ldr	r1, [r1]
	b	ac97_setrate
.L2:
	ldr	r0, .L6+16
	bx	lr
.L7:
	.align	2
.L6:
	.word	AC97_EXTCAP_VRA
	.word	PCMDIR_PLAY
	.word	AC97_REGEXT_FDACRATE
	.word	AC97_REGEXT_LADCRATE
	.word	48000
	.size	viachan_setspeed, .-viachan_setspeed
	.comm	PCMDIR_PLAY,4,4
	.comm	AC97_REGEXT_LADCRATE,4,4
	.comm	AC97_REGEXT_FDACRATE,4,4
	.comm	AC97_EXTCAP_VRA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
