	.file	"extr_act8945a-regulator.c_act8945a_set_mode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	act8945a_set_mode, @function
act8945a_set_mode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	rdev_get_drvdata@PLT
	mov	rdi, rbp
	mov	r13, QWORD PTR 0[rbp]
	mov	r12, rax
	call	rdev_get_id@PLT
	movsx	rbp, eax
	lea	eax, -130[rbp]
	cmp	eax, 6
	ja	.L2
	lea	rdx, .L4[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L10-.L4
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	r15d, DWORD PTR ACT8945A_DCDC2_CTRL[rip]
.L11:
	cmp	ebx, 128
	je	.L16
.L36:
	cmp	ebx, 129
	jne	.L2
	cmp	ebp, 134
	jle	.L16
.L22:
	xor	r14d, r14d
.L15:
	mov	edi, 5
	call	BIT@PLT
	mov	ecx, r14d
	mov	esi, r15d
	mov	rdi, r13
	mov	edx, eax
	call	regmap_update_bits@PLT
	test	eax, eax
	jne	.L1
	mov	rdx, QWORD PTR [r12]
	mov	DWORD PTR [rdx+rbp*4], ebx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	r15d, DWORD PTR ACT8945A_DCDC1_CTRL[rip]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	mov	r15d, DWORD PTR ACT8945A_LDO4_CTRL[rip]
.L13:
	cmp	ebx, 128
	je	.L22
	cmp	ebx, 129
	jne	.L2
.L16:
	mov	edi, 5
	call	BIT@PLT
	mov	r14d, eax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r15d, DWORD PTR ACT8945A_LDO3_CTRL[rip]
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L8:
	mov	r15d, DWORD PTR ACT8945A_LDO2_CTRL[rip]
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L7:
	mov	r15d, DWORD PTR ACT8945A_LDO1_CTRL[rip]
.L12:
	xor	r14d, r14d
	cmp	ebx, 128
	je	.L15
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r15d, DWORD PTR ACT8945A_DCDC3_CTRL[rip]
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	act8945a_set_mode, .-act8945a_set_mode
	.comm	EINVAL,4,4
	.comm	ACT8945A_LDO4_CTRL,4,4
	.comm	ACT8945A_LDO3_CTRL,4,4
	.comm	ACT8945A_LDO2_CTRL,4,4
	.comm	ACT8945A_LDO1_CTRL,4,4
	.comm	ACT8945A_DCDC3_CTRL,4,4
	.comm	ACT8945A_DCDC2_CTRL,4,4
	.comm	ACT8945A_DCDC1_CTRL,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_act8945a-regulator.c_act8945a_set_mode.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	act8945a_set_mode, %function
act8945a_set_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	mov	r4, r1
	bl	rdev_get_drvdata
	mov	r6, r0
	mov	r0, r5
	ldr	r7, [r5]
	bl	rdev_get_id
	sub	r3, r0, #130
	mov	r5, r0
	cmp	r3, #6
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L2:
	ldr	r3, .L37
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	ldr	r3, .L37+4
	ldr	r9, [r3]
.L11:
	cmp	r4, #128
	beq	.L16
.L35:
	cmp	r4, #129
	bne	.L2
	cmp	r5, #134
	ble	.L16
.L22:
	mov	r8, #0
.L15:
	mov	r0, #5
	bl	BIT
	mov	r3, r8
	mov	r2, r0
	mov	r1, r9
	mov	r0, r7
	bl	regmap_update_bits
	cmp	r0, #0
	ldreq	r3, [r6]
	streq	r4, [r3, r5, lsl #2]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	ldr	r3, .L37+8
	ldr	r9, [r3]
.L13:
	cmp	r4, #128
	beq	.L22
	cmp	r4, #129
	bne	.L2
.L16:
	mov	r0, #5
	bl	BIT
	mov	r8, r0
	b	.L15
.L9:
	ldr	r3, .L37+12
	ldr	r9, [r3]
	b	.L13
.L8:
	ldr	r3, .L37+16
	ldr	r9, [r3]
	b	.L13
.L7:
	ldr	r3, .L37+20
	ldr	r9, [r3]
.L12:
	cmp	r4, #128
	beq	.L22
	b	.L35
.L6:
	ldr	r3, .L37+24
	ldr	r9, [r3]
	b	.L12
.L5:
	ldr	r3, .L37+28
	ldr	r9, [r3]
	b	.L11
.L38:
	.align	2
.L37:
	.word	EINVAL
	.word	ACT8945A_DCDC1_CTRL
	.word	ACT8945A_LDO4_CTRL
	.word	ACT8945A_LDO3_CTRL
	.word	ACT8945A_LDO2_CTRL
	.word	ACT8945A_LDO1_CTRL
	.word	ACT8945A_DCDC3_CTRL
	.word	ACT8945A_DCDC2_CTRL
	.size	act8945a_set_mode, .-act8945a_set_mode
	.comm	EINVAL,4,4
	.comm	ACT8945A_LDO4_CTRL,4,4
	.comm	ACT8945A_LDO3_CTRL,4,4
	.comm	ACT8945A_LDO2_CTRL,4,4
	.comm	ACT8945A_LDO1_CTRL,4,4
	.comm	ACT8945A_DCDC3_CTRL,4,4
	.comm	ACT8945A_DCDC2_CTRL,4,4
	.comm	ACT8945A_DCDC1_CTRL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
