	.file	"extr_ac97_patch.c_snd_ac97_ad1888_lohpsel_put.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_ac97_ad1888_lohpsel_put, @function
snd_ac97_ad1888_lohpsel_put:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rsi
	call	snd_kcontrol_chip@PLT
	mov	rdi, rax
	mov	rax, QWORD PTR [rbx]
	cmp	QWORD PTR [rdi], 0
	mov	eax, DWORD PTR [rax]
	jne	.L2
	test	eax, eax
	sete	al
.L3:
	movzx	edx, WORD PTR AC97_AD198X_LOSEL[rip]
	or	dx, WORD PTR AC97_AD198X_HPSEL[rip]
	mov	ecx, 0
	test	al, al
	movzx	edx, dx
	mov	esi, DWORD PTR AC97_AD_MISC[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	cmovne	ecx, edx
	jmp	snd_ac97_update_bits@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	test	eax, eax
	setne	al
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	snd_ac97_ad1888_lohpsel_put, .-snd_ac97_ad1888_lohpsel_put
	.comm	AC97_AD_MISC,4,4
	.comm	AC97_AD198X_LOSEL,2,2
	.comm	AC97_AD198X_HPSEL,2,2
	.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_snd_ac97_ad1888_lohpsel_put.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_ac97_ad1888_lohpsel_put, %function
snd_ac97_ad1888_lohpsel_put:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r1
	bl	snd_kcontrol_chip
	ldr	r3, [r4]
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, #0
	clzeq	r3, r3
	lsreq	r3, r3, #5
	beq	.L3
	subs	r3, r3, #0
	movne	r3, #1
.L3:
	pop	{r4, lr}
	ldr	r1, .L8
	ldr	r2, .L8+4
	ldrh	ip, [r1]
	ldrh	r2, [r2]
	ldr	r1, .L8+8
	cmp	r3, #0
	orr	r2, r2, ip
	movne	r3, r2
	moveq	r3, #0
	ldr	r1, [r1]
	b	snd_ac97_update_bits
.L9:
	.align	2
.L8:
	.word	AC97_AD198X_HPSEL
	.word	AC97_AD198X_LOSEL
	.word	AC97_AD_MISC
	.size	snd_ac97_ad1888_lohpsel_put, .-snd_ac97_ad1888_lohpsel_put
	.comm	AC97_AD_MISC,4,4
	.comm	AC97_AD198X_LOSEL,2,2
	.comm	AC97_AD198X_HPSEL,2,2
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
