	.file	"extr_wm8955.c_wm8955_set_bias_level.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to enable supplies: %d\n"
	.text
	.p2align 4
	.type	wm8955_set_bias_level, @function
wm8955_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
	cmp	ebx, 129
	je	.L2
	mov	r13, rax
	cmp	ebx, 131
	je	.L3
	cmp	ebx, 128
	je	.L4
.L9:
	xor	r12d, r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	mov	ecx, DWORD PTR WM8955_VMIDSEL_SHIFT[rip]
	mov	eax, 1
	mov	edx, DWORD PTR WM8955_VMIDSEL_MASK[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR WM8955_POWER_MANAGEMENT_1[rip]
	sal	eax, cl
	mov	ecx, eax
	call	snd_soc_component_update_bits@PLT
	mov	ecx, DWORD PTR WM8955_VSEL_SHIFT[rip]
	mov	eax, 2
	sal	eax, cl
	mov	ecx, eax
.L10:
	mov	edx, DWORD PTR WM8955_VSEL_MASK[rip]
	mov	esi, DWORD PTR WM8955_ADDITIONAL_CONTROL_1[rip]
	mov	rdi, rbp
	xor	r12d, r12d
	call	snd_soc_component_update_bits@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L4:
	.cfi_restore_state
	mov	rdi, rbp
	call	snd_soc_component_get_bias_level@PLT
	cmp	eax, 131
	je	.L12
.L6:
	mov	ecx, DWORD PTR WM8955_VMIDSEL_SHIFT[rip]
	mov	eax, 2
	mov	edx, DWORD PTR WM8955_VMIDSEL_MASK[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR WM8955_POWER_MANAGEMENT_1[rip]
	sal	eax, cl
	mov	ecx, eax
	call	snd_soc_component_update_bits@PLT
	xor	ecx, ecx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, DWORD PTR WM8955_VROI[rip]
	mov	esi, DWORD PTR WM8955_ADDITIONAL_CONTROL_3[rip]
	xor	ecx, ecx
	mov	rdi, rbp
	call	snd_soc_component_update_bits@PLT
	mov	esi, DWORD PTR WM8955_POWER_MANAGEMENT_1[rip]
	xor	ecx, ecx
	mov	rdi, rbp
	mov	edx, DWORD PTR WM8955_VREF[rip]
	or	edx, DWORD PTR WM8955_VMIDSEL_MASK[rip]
	call	snd_soc_component_update_bits@PLT
	mov	ebp, DWORD PTR 0[r13]
	mov	edi, ebp
	call	ARRAY_SIZE@PLT
	mov	esi, ebp
	mov	edi, eax
	call	regulator_bulk_disable@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r12d, DWORD PTR 0[r13]
	mov	edi, r12d
	call	ARRAY_SIZE@PLT
	mov	esi, r12d
	mov	edi, eax
	call	regulator_bulk_enable@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L13
	mov	edi, DWORD PTR 4[r13]
	call	regcache_sync@PLT
	mov	ecx, DWORD PTR WM8955_VREF_SHIFT[rip]
	mov	eax, 3
	mov	edx, DWORD PTR WM8955_VREF[rip]
	mov	esi, DWORD PTR WM8955_POWER_MANAGEMENT_1[rip]
	mov	rdi, rbp
	sal	eax, cl
	mov	ecx, eax
	or	ecx, edx
	or	edx, DWORD PTR WM8955_VMIDSEL_MASK[rip]
	call	snd_soc_component_update_bits@PLT
	mov	edi, 500
	call	msleep@PLT
	mov	edx, DWORD PTR WM8955_VROI[rip]
	mov	esi, DWORD PTR WM8955_ADDITIONAL_CONTROL_3[rip]
	mov	rdi, rbp
	mov	ecx, edx
	call	snd_soc_component_update_bits@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, DWORD PTR 0[rbp]
	mov	edx, eax
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	wm8955_set_bias_level, .-wm8955_set_bias_level
	.comm	WM8955_VSEL_SHIFT,4,4
	.comm	WM8955_VSEL_MASK,4,4
	.comm	WM8955_VROI,4,4
	.comm	WM8955_VREF_SHIFT,4,4
	.comm	WM8955_VREF,4,4
	.comm	WM8955_VMIDSEL_SHIFT,4,4
	.comm	WM8955_VMIDSEL_MASK,4,4
	.comm	WM8955_POWER_MANAGEMENT_1,4,4
	.comm	WM8955_ADDITIONAL_CONTROL_3,4,4
	.comm	WM8955_ADDITIONAL_CONTROL_1,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_wm8955.c_wm8955_set_bias_level.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to enable supplies: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wm8955_set_bias_level, %function
wm8955_set_bias_level:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r5, r0
	bl	snd_soc_component_get_drvdata
	cmp	r4, #129
	beq	.L2
	cmp	r4, #131
	mov	r6, r0
	beq	.L3
	cmp	r4, #128
	beq	.L4
.L11:
	mov	r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L2:
	mov	r0, #1
	ldr	r3, .L14
	ldr	r2, .L14+4
	ldr	r3, [r3]
	ldr	r1, .L14+8
	lsl	r3, r0, r3
	ldr	r2, [r2]
	mov	r0, r5
	ldr	r1, [r1]
	bl	snd_soc_component_update_bits
	mov	ip, #2
	mov	r4, #0
	ldr	r3, .L14+12
	ldr	r2, .L14+16
	ldr	r3, [r3]
	ldr	r1, .L14+20
	mov	r0, r5
	ldr	r2, [r2]
	ldr	r1, [r1]
	lsl	r3, ip, r3
	bl	snd_soc_component_update_bits
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L4:
	mov	r0, r5
	bl	snd_soc_component_get_bias_level
	cmp	r0, #131
	beq	.L9
	ldr	r6, .L14+4
	ldr	r4, .L14+8
.L6:
	mov	r0, #2
	ldr	r1, [r4]
	mov	r4, #0
	ldr	r3, .L14
	ldr	r2, [r6]
	ldr	r3, [r3]
	lsl	r3, r0, r3
	mov	r0, r5
	bl	snd_soc_component_update_bits
	ldr	r3, .L14+20
	ldr	r2, .L14+16
	ldr	r1, [r3]
	mov	r0, r5
	mov	r3, #0
	ldr	r2, [r2]
	bl	snd_soc_component_update_bits
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r3, .L14+24
	ldr	r2, .L14+28
	ldr	r1, [r3]
	mov	r0, r5
	mov	r3, #0
	ldr	r2, [r2]
	bl	snd_soc_component_update_bits
	ldr	r2, .L14+32
	ldr	r3, .L14+4
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L14+8
	orr	r2, r1, r2
	mov	r0, r5
	ldr	r1, [r3]
	mov	r3, #0
	bl	snd_soc_component_update_bits
	ldr	r0, [r6]
	bl	ARRAY_SIZE
	ldr	r1, [r6]
	bl	regulator_bulk_disable
	b	.L11
.L9:
	ldr	r0, [r6]
	bl	ARRAY_SIZE
	ldr	r1, [r6]
	bl	regulator_bulk_enable
	subs	r4, r0, #0
	bne	.L13
	ldr	r0, [r6, #4]
	bl	regcache_sync
	mov	r0, #3
	ldr	r6, .L14+4
	ldr	r2, .L14+32
	ldr	r3, .L14+36
	ldr	r1, [r6]
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r4, .L14+8
	orr	r3, r2, r0, lsl r3
	orr	r2, r2, r1
	mov	r0, r5
	ldr	r1, [r4]
	bl	snd_soc_component_update_bits
	mov	r0, #500
	bl	msleep
	ldr	r3, .L14+28
	ldr	r2, .L14+24
	ldr	r3, [r3]
	ldr	r1, [r2]
	mov	r0, r5
	mov	r2, r3
	bl	snd_soc_component_update_bits
	b	.L6
.L13:
	mov	r2, r4
	ldr	r0, [r5]
	ldr	r1, .L14+40
	bl	dev_err
	b	.L1
.L15:
	.align	2
.L14:
	.word	WM8955_VMIDSEL_SHIFT
	.word	WM8955_VMIDSEL_MASK
	.word	WM8955_POWER_MANAGEMENT_1
	.word	WM8955_VSEL_SHIFT
	.word	WM8955_VSEL_MASK
	.word	WM8955_ADDITIONAL_CONTROL_1
	.word	WM8955_ADDITIONAL_CONTROL_3
	.word	WM8955_VROI
	.word	WM8955_VREF
	.word	WM8955_VREF_SHIFT
	.word	.LC0
	.size	wm8955_set_bias_level, .-wm8955_set_bias_level
	.comm	WM8955_VSEL_SHIFT,4,4
	.comm	WM8955_VSEL_MASK,4,4
	.comm	WM8955_VROI,4,4
	.comm	WM8955_VREF_SHIFT,4,4
	.comm	WM8955_VREF,4,4
	.comm	WM8955_VMIDSEL_SHIFT,4,4
	.comm	WM8955_VMIDSEL_MASK,4,4
	.comm	WM8955_POWER_MANAGEMENT_1,4,4
	.comm	WM8955_ADDITIONAL_CONTROL_3,4,4
	.comm	WM8955_ADDITIONAL_CONTROL_1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
