	.file	"extr_ac97.c_ac97_fix_auxout.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ac97_fix_auxout, @function
ac97_fix_auxout:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR AC97_MIX_AUXOUT[rip]
	call	ac97_rdcd@PLT
	and	eax, 32768
	mov	ebp, eax
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR AC97_EXTCAP_SDAC[rip], eax
	jne	.L9
.L2:
	test	ebp, ebp
	je	.L10
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	esi, DWORD PTR AC97_MIXEXT_SURROUND[rip]
	mov	rdi, rbx
	call	ac97_rdcd@PLT
	cmp	eax, 32896
	jne	.L2
	mov	rax, QWORD PTR 8[rbx]
	mov	ecx, DWORD PTR AC97_MIXEXT_SURROUND[rip]
	mov	rdx, QWORD PTR SOUND_MIXER_OGAIN[rip]
	mov	DWORD PTR [rax+rdx*4], ecx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR SOUND_MIXER_OGAIN[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	esi, 4
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	lea	rdi, [rax+rdx*4]
	jmp	bzero@PLT
	.cfi_endproc
.LFE0:
	.size	ac97_fix_auxout, .-ac97_fix_auxout
	.comm	SOUND_MIXER_OGAIN,8,8
	.comm	AC97_MIX_AUXOUT,4,4
	.comm	AC97_MIXEXT_SURROUND,4,4
	.comm	AC97_EXTCAP_SDAC,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_ac97.c_ac97_fix_auxout.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ac97_fix_auxout, %function
ac97_fix_auxout:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L10
	mov	r4, r0
	ldr	r1, [r3]
	bl	ac97_rdcd
	ldr	r3, .L10+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	and	r5, r0, #32768
	tst	r2, r3
	bne	.L9
.L2:
	cmp	r5, #0
	popne	{r4, r5, r6, pc}
	ldr	r2, .L10+8
	ldr	r3, [r4, #4]
	ldr	r0, [r2]
	mov	r1, #4
	pop	{r4, r5, r6, lr}
	add	r0, r3, r0, lsl #2
	b	bzero
.L9:
	ldr	r6, .L10+12
	mov	r0, r4
	ldr	r1, [r6]
	bl	ac97_rdcd
	ldr	r3, .L10+16
	cmp	r0, r3
	bne	.L2
	ldr	r2, .L10+8
	ldr	r1, [r6]
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	str	r1, [r3, r2, lsl #2]
	pop	{r4, r5, r6, pc}
.L11:
	.align	2
.L10:
	.word	AC97_MIX_AUXOUT
	.word	AC97_EXTCAP_SDAC
	.word	SOUND_MIXER_OGAIN
	.word	AC97_MIXEXT_SURROUND
	.word	32896
	.size	ac97_fix_auxout, .-ac97_fix_auxout
	.comm	SOUND_MIXER_OGAIN,4,4
	.comm	AC97_MIX_AUXOUT,4,4
	.comm	AC97_MIXEXT_SURROUND,4,4
	.comm	AC97_EXTCAP_SDAC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
