	.file	"extr_wm831x-ldo.c_wm831x_gp_ldo_set_mode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wm831x_gp_ldo_set_mode, @function
wm831x_gp_ldo_set_mode:
.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	ebx, esi
	call	rdev_get_drvdata@PLT
	mov	esi, DWORD PTR WM831X_LDO_CONTROL[rip]
	mov	r12, QWORD PTR 8[rax]
	mov	eax, DWORD PTR [rax]
	add	esi, eax
	add	eax, DWORD PTR WM831X_LDO_ON_CONTROL[rip]
	mov	ebp, eax
	cmp	ebx, 129
	je	.L2
	cmp	ebx, 130
	je	.L3
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	cmp	ebx, 128
	je	.L12
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edx, DWORD PTR WM831X_LDO1_ON_MODE[rip]
	xor	ecx, ecx
.L10:
	mov	esi, ebp
	mov	rdi, r12
	call	wm831x_set_bits@PLT
	mov	edx, 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	test	eax, eax
	pop	r12
	.cfi_def_cfa_offset 8
	cmovg	eax, edx
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edx, DWORD PTR WM831X_LDO1_LP_MODE[rip]
	mov	rdi, r12
	mov	ecx, edx
	call	wm831x_set_bits@PLT
	test	eax, eax
	js	.L1
	mov	edx, DWORD PTR WM831X_LDO1_ON_MODE[rip]
	mov	ecx, edx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, DWORD PTR WM831X_LDO1_LP_MODE[rip]
	xor	ecx, ecx
	mov	rdi, r12
	call	wm831x_set_bits@PLT
	test	eax, eax
	js	.L1
	mov	edx, DWORD PTR WM831X_LDO1_ON_MODE[rip]
	mov	ecx, edx
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	wm831x_gp_ldo_set_mode, .-wm831x_gp_ldo_set_mode
	.comm	WM831X_LDO_ON_CONTROL,4,4
	.comm	WM831X_LDO_CONTROL,4,4
	.comm	WM831X_LDO1_ON_MODE,4,4
	.comm	WM831X_LDO1_LP_MODE,4,4
	.comm	EINVAL,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_wm831x-ldo.c_wm831x_gp_ldo_set_mode.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wm831x_gp_ldo_set_mode, %function
wm831x_gp_ldo_set_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	bl	rdev_get_drvdata
	ldr	r1, .L12
	ldr	r2, .L12+4
	ldr	r3, [r0]
	ldr	r1, [r1]
	ldr	r6, [r2]
	cmp	r4, #129
	ldr	r5, [r0, #4]
	add	r1, r3, r1
	add	r6, r3, r6
	beq	.L2
	cmp	r4, #130
	beq	.L3
	cmp	r4, #128
	beq	.L11
	ldr	r3, .L12+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L12+12
	mov	r1, r6
	ldr	r2, [r3]
	mov	r0, r5
	mov	r3, #0
	bl	wm831x_set_bits
	and	r0, r0, r0, asr #31
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r3, .L12+16
	mov	r0, r5
	ldr	r3, [r3]
	mov	r2, r3
	bl	wm831x_set_bits
	cmp	r0, #0
	poplt	{r4, r5, r6, pc}
.L9:
	ldr	r3, .L12+12
	mov	r1, r6
	ldr	r3, [r3]
	mov	r0, r5
	mov	r2, r3
	bl	wm831x_set_bits
	and	r0, r0, r0, asr #31
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r3, .L12+16
	mov	r0, r5
	ldr	r2, [r3]
	mov	r3, #0
	bl	wm831x_set_bits
	cmp	r0, #0
	bge	.L9
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	WM831X_LDO_CONTROL
	.word	WM831X_LDO_ON_CONTROL
	.word	EINVAL
	.word	WM831X_LDO1_ON_MODE
	.word	WM831X_LDO1_LP_MODE
	.size	wm831x_gp_ldo_set_mode, .-wm831x_gp_ldo_set_mode
	.comm	WM831X_LDO_ON_CONTROL,4,4
	.comm	WM831X_LDO_CONTROL,4,4
	.comm	WM831X_LDO1_ON_MODE,4,4
	.comm	WM831X_LDO1_LP_MODE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
