	.file	"extr_ac97_patch.c_patch_sigmatel_stac97xx_specific.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	patch_sigmatel_stac97xx_specific, @function
patch_sigmatel_stac97xx_specific:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	esi, DWORD PTR AC97_SIGMATEL_ANALOG[rip]
	mov	rbp, rdi
	call	snd_ac97_read@PLT
	mov	esi, DWORD PTR AC97_SIGMATEL_ANALOG[rip]
	mov	rdi, rbp
	and	eax, -4
	mov	edx, eax
	call	snd_ac97_write_cache@PLT
	mov	esi, DWORD PTR AC97_SIGMATEL_ANALOG[rip]
	mov	edx, 1
	mov	rdi, rbp
	call	snd_ac97_try_bit@PLT
	test	rax, rax
	je	.L6
	mov	rsi, QWORD PTR snd_ac97_sigmatel_controls[rip]
	mov	edx, 1
	mov	rdi, rbp
	call	patch_build_controls@PLT
	test	eax, eax
	js	.L1
.L6:
	mov	esi, DWORD PTR AC97_SIGMATEL_ANALOG[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	snd_ac97_try_bit@PLT
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR snd_ac97_sigmatel_controls[rip]
	mov	edx, 1
	mov	rdi, rbp
	lea	rsi, 4[rax]
	call	patch_build_controls@PLT
	test	eax, eax
	js	.L1
.L4:
	mov	esi, DWORD PTR AC97_SIGMATEL_DAC2INVERT[rip]
	mov	edx, 2
	mov	rdi, rbp
	call	snd_ac97_try_bit@PLT
	test	rax, rax
	je	.L8
	mov	edx, 1
	lea	rsi, snd_ac97_sigmatel_4speaker[rip]
	mov	rdi, rbp
	call	patch_build_controls@PLT
	test	eax, eax
	js	.L1
.L8:
	mov	esi, DWORD PTR AC97_SIGMATEL_DAC2INVERT[rip]
	mov	edx, 3
	mov	rdi, rbp
	call	snd_ac97_try_bit@PLT
	test	rax, rax
	jne	.L9
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edx, 1
	mov	rdi, rbp
	lea	rsi, snd_ac97_sigmatel_phaseinvert[rip]
	call	patch_build_controls@PLT
	mov	edx, 0
	pop	rbp
	.cfi_def_cfa_offset 8
	test	eax, eax
	cmovg	eax, edx
	ret
	.cfi_endproc
.LFE0:
	.size	patch_sigmatel_stac97xx_specific, .-patch_sigmatel_stac97xx_specific
	.comm	snd_ac97_sigmatel_phaseinvert,4,4
	.comm	snd_ac97_sigmatel_controls,8,8
	.comm	snd_ac97_sigmatel_4speaker,4,4
	.comm	AC97_SIGMATEL_DAC2INVERT,4,4
	.comm	AC97_SIGMATEL_ANALOG,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_patch.c_patch_sigmatel_stac97xx_specific.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	patch_sigmatel_stac97xx_specific, %function
patch_sigmatel_stac97xx_specific:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L15
	mov	r4, r0
	ldr	r6, [r5]
	mov	r1, r6
	bl	snd_ac97_read
	mov	r1, r6
	bic	r2, r0, #3
	mov	r0, r4
	bl	snd_ac97_write_cache
	mov	r0, r4
	mov	r2, #1
	ldr	r1, [r5]
	bl	snd_ac97_try_bit
	cmp	r0, #0
	beq	.L6
	ldr	r3, .L15+4
	mov	r2, #1
	mov	r0, r4
	ldr	r1, [r3]
	bl	patch_build_controls
	cmp	r0, #0
	poplt	{r4, r5, r6, pc}
.L6:
	mov	r2, #0
	mov	r0, r4
	ldr	r1, [r5]
	bl	snd_ac97_try_bit
	cmp	r0, #0
	beq	.L4
	ldr	r3, .L15+4
	mov	r2, #1
	ldr	r1, [r3]
	mov	r0, r4
	add	r1, r1, #4
	bl	patch_build_controls
	cmp	r0, #0
	poplt	{r4, r5, r6, pc}
.L4:
	ldr	r5, .L15+8
	mov	r2, #2
	mov	r0, r4
	ldr	r1, [r5]
	bl	snd_ac97_try_bit
	cmp	r0, #0
	beq	.L8
	mov	r2, #1
	mov	r0, r4
	ldr	r1, .L15+12
	bl	patch_build_controls
	cmp	r0, #0
	poplt	{r4, r5, r6, pc}
.L8:
	mov	r2, #3
	mov	r0, r4
	ldr	r1, [r5]
	bl	snd_ac97_try_bit
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	mov	r0, r4
	mov	r2, #1
	ldr	r1, .L15+16
	bl	patch_build_controls
	and	r0, r0, r0, asr #31
	pop	{r4, r5, r6, pc}
.L16:
	.align	2
.L15:
	.word	AC97_SIGMATEL_ANALOG
	.word	snd_ac97_sigmatel_controls
	.word	AC97_SIGMATEL_DAC2INVERT
	.word	snd_ac97_sigmatel_4speaker
	.word	snd_ac97_sigmatel_phaseinvert
	.size	patch_sigmatel_stac97xx_specific, .-patch_sigmatel_stac97xx_specific
	.comm	snd_ac97_sigmatel_phaseinvert,4,4
	.comm	snd_ac97_sigmatel_controls,4,4
	.comm	snd_ac97_sigmatel_4speaker,4,4
	.comm	AC97_SIGMATEL_DAC2INVERT,4,4
	.comm	AC97_SIGMATEL_ANALOG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
