	.file	"extr_wm9713.c_ac97_aux_prepare.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ac97_aux_prepare, @function
ac97_aux_prepare:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbp, QWORD PTR [rsi]
	mov	rbx, rdi
	mov	esi, DWORD PTR AC97_EXTENDED_STATUS[rip]
	mov	r12, QWORD PTR 8[rdi]
	mov	rdi, rbp
	call	ac97_read@PLT
	mov	esi, DWORD PTR AC97_EXTENDED_STATUS[rip]
	mov	rdi, rbp
	or	eax, 1
	mov	edx, eax
	call	ac97_write@PLT
	mov	esi, DWORD PTR AC97_PCI_SID[rip]
	mov	rdi, rbp
	call	ac97_read@PLT
	mov	esi, DWORD PTR AC97_PCI_SID[rip]
	mov	rdi, rbp
	or	ah, -128
	mov	edx, eax
	call	ac97_write@PLT
	mov	rax, QWORD PTR SNDRV_PCM_STREAM_PLAYBACK[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L2
	mov	eax, DWORD PTR ENODEV[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edx, DWORD PTR [r12]
	mov	esi, DWORD PTR AC97_PCM_SURR_DAC_RATE[rip]
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	ac97_write@PLT
	.cfi_endproc
.LFE0:
	.size	ac97_aux_prepare, .-ac97_aux_prepare
	.comm	SNDRV_PCM_STREAM_PLAYBACK,8,8
	.comm	ENODEV,4,4
	.comm	AC97_PCM_SURR_DAC_RATE,4,4
	.comm	AC97_PCI_SID,4,4
	.comm	AC97_EXTENDED_STATUS,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_wm9713.c_ac97_aux_prepare.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ac97_aux_prepare, %function
ac97_aux_prepare:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r4, [r1]
	ldr	r7, .L7
	mov	r0, r4
	ldr	r1, [r7]
	ldr	r8, [r5, #4]
	bl	ac97_read
	ldr	r6, .L7+4
	orr	r2, r0, #1
	ldr	r1, [r7]
	mov	r0, r4
	bl	ac97_write
	ldr	r1, [r6]
	mov	r0, r4
	bl	ac97_read
	ldr	r1, [r6]
	orr	r2, r0, #32768
	mov	r0, r4
	bl	ac97_write
	ldr	r3, .L7+8
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L2
	ldr	r3, .L7+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L7+16
	mov	r0, r4
	ldr	r2, [r8]
	ldr	r1, [r3]
	pop	{r4, r5, r6, r7, r8, lr}
	b	ac97_write
.L8:
	.align	2
.L7:
	.word	AC97_EXTENDED_STATUS
	.word	AC97_PCI_SID
	.word	SNDRV_PCM_STREAM_PLAYBACK
	.word	ENODEV
	.word	AC97_PCM_SURR_DAC_RATE
	.size	ac97_aux_prepare, .-ac97_aux_prepare
	.comm	SNDRV_PCM_STREAM_PLAYBACK,4,4
	.comm	ENODEV,4,4
	.comm	AC97_PCM_SURR_DAC_RATE,4,4
	.comm	AC97_PCI_SID,4,4
	.comm	AC97_EXTENDED_STATUS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
