	.file	"extr_wm8993.c_wm8993_set_bias_level.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wm8993_set_bias_level, @function
wm8993_set_bias_level:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	snd_soc_component_get_drvdata@PLT
	mov	esi, ebx
	mov	rdi, rbp
	mov	r12, rax
	call	wm_hubs_set_bias_level@PLT
	cmp	ebx, 130
	ja	.L2
	cmp	ebx, 128
	ja	.L3
	jne	.L11
	mov	rdi, rbp
	call	snd_soc_component_get_bias_level@PLT
	cmp	eax, 131
	je	.L13
.L7:
	mov	edx, DWORD PTR WM8993_VMID_SEL_MASK[rip]
	mov	esi, DWORD PTR WM8993_POWER_MANAGEMENT_1[rip]
	mov	rdi, rbp
	mov	ecx, 4
	call	snd_soc_component_update_bits@PLT
	mov	edx, DWORD PTR WM8993_TSHUT_ENA[rip]
	mov	rdi, rbp
	xor	ecx, ecx
	mov	esi, DWORD PTR WM8993_POWER_MANAGEMENT_2[rip]
	call	snd_soc_component_update_bits@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	cmp	ebx, 131
	jne	.L11
	mov	edx, DWORD PTR WM8993_LINEOUT_VMID_BUF_ENA[rip]
	mov	esi, DWORD PTR WM8993_ANTIPOP1[rip]
	mov	rdi, rbp
	xor	ecx, ecx
	call	snd_soc_component_update_bits@PLT
	mov	esi, DWORD PTR WM8993_POWER_MANAGEMENT_1[rip]
	mov	rdi, rbp
	xor	ecx, ecx
	mov	edx, DWORD PTR WM8993_VMID_SEL_MASK[rip]
	or	edx, DWORD PTR WM8993_BIAS_ENA[rip]
	call	snd_soc_component_update_bits@PLT
	mov	esi, DWORD PTR WM8993_ANTIPOP2[rip]
	xor	ecx, ecx
	mov	rdi, rbp
	mov	edx, DWORD PTR WM8993_STARTUP_BIAS_ENA[rip]
	or	edx, DWORD PTR WM8993_VMID_BUF_ENA[rip]
	or	edx, DWORD PTR WM8993_VMID_RAMP_MASK[rip]
	or	edx, DWORD PTR WM8993_BIAS_SRC[rip]
	call	snd_soc_component_update_bits@PLT
	mov	edi, DWORD PTR 4[r12]
	mov	esi, 1
	call	regcache_cache_only@PLT
	mov	edi, DWORD PTR 4[r12]
	call	regcache_mark_dirty@PLT
	mov	ebp, DWORD PTR [r12]
	mov	edi, ebp
	call	ARRAY_SIZE@PLT
	mov	esi, ebp
	mov	edi, eax
	call	regulator_bulk_disable@PLT
.L11:
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	edx, DWORD PTR WM8993_VMID_SEL_MASK[rip]
	mov	esi, DWORD PTR WM8993_POWER_MANAGEMENT_1[rip]
	mov	rdi, rbp
	mov	ecx, 2
	call	snd_soc_component_update_bits@PLT
	mov	edx, DWORD PTR WM8993_TSHUT_ENA[rip]
	mov	esi, DWORD PTR WM8993_POWER_MANAGEMENT_2[rip]
	mov	rdi, rbp
	mov	ecx, edx
	call	snd_soc_component_update_bits@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	r13d, DWORD PTR [r12]
	mov	edi, r13d
	call	ARRAY_SIZE@PLT
	mov	esi, r13d
	mov	edi, eax
	call	regulator_bulk_enable@PLT
	test	eax, eax
	jne	.L1
	mov	edi, DWORD PTR 4[r12]
	xor	esi, esi
	call	regcache_cache_only@PLT
	mov	edi, DWORD PTR 4[r12]
	call	regcache_sync@PLT
	mov	rdi, rbp
	call	wm_hubs_vmid_ena@PLT
	mov	edx, DWORD PTR WM8993_STARTUP_BIAS_ENA[rip]
	mov	esi, DWORD PTR WM8993_ANTIPOP2[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR WM8993_VMID_BUF_ENA[rip]
	or	edx, DWORD PTR WM8993_VMID_RAMP_MASK[rip]
	or	edx, DWORD PTR WM8993_BIAS_SRC[rip]
	mov	ecx, edx
	call	snd_soc_component_update_bits@PLT
	mov	edx, DWORD PTR 12[r12]
	test	edx, edx
	je	.L8
	mov	eax, DWORD PTR 8[r12]
	test	eax, eax
	jne	.L9
.L8:
	mov	edx, DWORD PTR WM8993_LINEOUT_VMID_BUF_ENA[rip]
	mov	esi, DWORD PTR WM8993_ANTIPOP1[rip]
	mov	rdi, rbp
	mov	ecx, edx
	call	snd_soc_component_update_bits@PLT
.L9:
	mov	edx, DWORD PTR WM8993_BIAS_ENA[rip]
	mov	esi, DWORD PTR WM8993_POWER_MANAGEMENT_1[rip]
	mov	rdi, rbp
	mov	ecx, edx
	or	edx, DWORD PTR WM8993_VMID_SEL_MASK[rip]
	or	ecx, 2
	call	snd_soc_component_update_bits@PLT
	mov	edi, 32
	call	msleep@PLT
	mov	esi, DWORD PTR WM8993_ANTIPOP2[rip]
	xor	ecx, ecx
	mov	rdi, rbp
	mov	edx, DWORD PTR WM8993_BIAS_SRC[rip]
	or	edx, DWORD PTR WM8993_STARTUP_BIAS_ENA[rip]
	call	snd_soc_component_update_bits@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	wm8993_set_bias_level, .-wm8993_set_bias_level
	.comm	WM8993_VMID_SEL_MASK,4,4
	.comm	WM8993_VMID_RAMP_MASK,4,4
	.comm	WM8993_VMID_BUF_ENA,4,4
	.comm	WM8993_TSHUT_ENA,4,4
	.comm	WM8993_STARTUP_BIAS_ENA,4,4
	.comm	WM8993_POWER_MANAGEMENT_2,4,4
	.comm	WM8993_POWER_MANAGEMENT_1,4,4
	.comm	WM8993_LINEOUT_VMID_BUF_ENA,4,4
	.comm	WM8993_BIAS_SRC,4,4
	.comm	WM8993_BIAS_ENA,4,4
	.comm	WM8993_ANTIPOP2,4,4
	.comm	WM8993_ANTIPOP1,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_wm8993.c_wm8993_set_bias_level.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wm8993_set_bias_level, %function
wm8993_set_bias_level:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	mov	r5, r0
	bl	snd_soc_component_get_drvdata
	mov	r1, r4
	mov	r6, r0
	mov	r0, r5
	bl	wm_hubs_set_bias_level
	cmp	r4, #130
	bhi	.L2
	cmp	r4, #128
	bhi	.L3
	bne	.L16
	mov	r0, r5
	bl	snd_soc_component_get_bias_level
	cmp	r0, #131
	beq	.L14
	ldr	r6, .L18
	ldr	r4, .L18+4
.L7:
	ldr	r2, [r6]
	ldr	r1, [r4]
	mov	r3, #4
	mov	r0, r5
	bl	snd_soc_component_update_bits
	ldr	r3, .L18+8
	ldr	r2, .L18+12
	ldr	r1, [r3]
	mov	r0, r5
	mov	r3, #0
	ldr	r2, [r2]
	bl	snd_soc_component_update_bits
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	cmp	r4, #131
	bne	.L16
	ldr	r3, .L18+16
	ldr	r2, .L18+20
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r3, #0
	mov	r0, r5
	bl	snd_soc_component_update_bits
	ldr	r2, .L18
	ldr	r3, .L18+24
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L18+4
	orr	r2, r1, r2
	mov	r0, r5
	ldr	r1, [r3]
	mov	r3, #0
	bl	snd_soc_component_update_bits
	ldr	r3, .L18+28
	ldr	r2, .L18+32
	ldr	r0, .L18+36
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, .L18+40
	ldr	r0, [r0]
	orr	r3, r3, r2
	ldr	r2, [r1]
	ldr	r1, .L18+44
	orr	r3, r3, r0
	orr	r2, r3, r2
	ldr	r1, [r1]
	mov	r3, #0
	mov	r0, r5
	bl	snd_soc_component_update_bits
	mov	r1, #1
	ldr	r0, [r6, #4]
	bl	regcache_cache_only
	ldr	r0, [r6, #4]
	bl	regcache_mark_dirty
	ldr	r0, [r6]
	bl	ARRAY_SIZE
	ldr	r1, [r6]
	bl	regulator_bulk_disable
.L16:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	ldr	r3, .L18+4
	ldr	r2, .L18
	ldr	r1, [r3]
	mov	r0, r5
	mov	r3, #2
	ldr	r2, [r2]
	bl	snd_soc_component_update_bits
	ldr	r3, .L18+12
	ldr	r1, .L18+8
	ldr	r3, [r3]
	mov	r0, r5
	mov	r2, r3
	ldr	r1, [r1]
	bl	snd_soc_component_update_bits
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	ldr	r0, [r6]
	bl	ARRAY_SIZE
	ldr	r1, [r6]
	bl	regulator_bulk_enable
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r1, r0
	ldr	r0, [r6, #4]
	bl	regcache_cache_only
	ldr	r0, [r6, #4]
	bl	regcache_sync
	mov	r0, r5
	bl	wm_hubs_vmid_ena
	ldr	r8, .L18+28
	ldr	r2, .L18+32
	ldr	r1, .L18+36
	ldr	r2, [r2]
	ldr	r3, [r8]
	ldr	r9, .L18+40
	ldr	r1, [r1]
	orr	r3, r3, r2
	ldr	r2, [r9]
	orr	r3, r3, r1
	ldr	r7, .L18+44
	orr	r3, r3, r2
	mov	r2, r3
	mov	r0, r5
	ldr	r1, [r7]
	bl	snd_soc_component_update_bits
	ldr	r3, [r6, #12]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [r6, #8]
	cmp	r3, #0
	bne	.L9
.L8:
	ldr	r3, .L18+20
	ldr	r2, .L18+16
	ldr	r3, [r3]
	ldr	r1, [r2]
	mov	r0, r5
	mov	r2, r3
	bl	snd_soc_component_update_bits
.L9:
	ldr	r3, .L18+24
	ldr	r6, .L18
	ldr	r2, [r3]
	ldr	r1, [r6]
	ldr	r4, .L18+4
	orr	r3, r2, #2
	mov	r0, r5
	orr	r2, r2, r1
	ldr	r1, [r4]
	bl	snd_soc_component_update_bits
	mov	r0, #32
	bl	msleep
	ldr	r3, [r8]
	ldr	r2, [r9]
	mov	r0, r5
	orr	r2, r2, r3
	ldr	r1, [r7]
	mov	r3, #0
	bl	snd_soc_component_update_bits
	b	.L7
.L19:
	.align	2
.L18:
	.word	WM8993_VMID_SEL_MASK
	.word	WM8993_POWER_MANAGEMENT_1
	.word	WM8993_POWER_MANAGEMENT_2
	.word	WM8993_TSHUT_ENA
	.word	WM8993_ANTIPOP1
	.word	WM8993_LINEOUT_VMID_BUF_ENA
	.word	WM8993_BIAS_ENA
	.word	WM8993_STARTUP_BIAS_ENA
	.word	WM8993_VMID_BUF_ENA
	.word	WM8993_VMID_RAMP_MASK
	.word	WM8993_BIAS_SRC
	.word	WM8993_ANTIPOP2
	.size	wm8993_set_bias_level, .-wm8993_set_bias_level
	.comm	WM8993_VMID_SEL_MASK,4,4
	.comm	WM8993_VMID_RAMP_MASK,4,4
	.comm	WM8993_VMID_BUF_ENA,4,4
	.comm	WM8993_TSHUT_ENA,4,4
	.comm	WM8993_STARTUP_BIAS_ENA,4,4
	.comm	WM8993_POWER_MANAGEMENT_2,4,4
	.comm	WM8993_POWER_MANAGEMENT_1,4,4
	.comm	WM8993_LINEOUT_VMID_BUF_ENA,4,4
	.comm	WM8993_BIAS_SRC,4,4
	.comm	WM8993_BIAS_ENA,4,4
	.comm	WM8993_ANTIPOP2,4,4
	.comm	WM8993_ANTIPOP1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
