	.file	"extr_mt6323-regulator.c_mt6323_ldo_set_mode.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"regulator %s doesn't support set_mode\n"
	.text
	.p2align 4
	.type	mt6323_ldo_set_mode, @function
mt6323_ldo_set_mode:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	rdev_get_drvdata@PLT
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	je	.L11
	cmp	ebp, 128
	je	.L4
	cmp	ebp, 129
	je	.L5
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	esi, DWORD PTR MT6323_LDO_MODE_NORMAL[rip]
.L7:
	bsf	edi, edx
	mov	ecx, -1
	cmovne	ecx, edi
	mov	edi, DWORD PTR [rbx]
	sal	esi, cl
	mov	ecx, esi
	mov	esi, DWORD PTR 4[rax]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	regmap_update_bits@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	esi, DWORD PTR MT6323_LDO_MODE_LP[rip]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edx, DWORD PTR 8[rax]
	lea	rdi, 4[rbx]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	mt6323_ldo_set_mode, .-mt6323_ldo_set_mode
	.comm	MT6323_LDO_MODE_NORMAL,4,4
	.comm	MT6323_LDO_MODE_LP,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_mt6323-regulator.c_mt6323_ldo_set_mode.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"regulator %s doesn't support set_mode\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mt6323_ldo_set_mode, %function
mt6323_ldo_set_mode:
	@ 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	rdev_get_drvdata
	ldr	r2, [r0]
	cmp	r2, #0
	beq	.L11
	cmp	r4, #128
	beq	.L4
	cmp	r4, #129
	bne	.L12
	ldr	r3, .L13
	ldr	ip, [r3]
.L7:
	rsb	r3, r2, #0
	and	r3, r3, r2
	clz	r3, r3
	rsb	r3, r3, #31
	ldr	r1, [r0, #4]
	lsl	r3, ip, r3
	ldr	r0, [r5]
	pop	{r4, r5, r6, lr}
	b	regmap_update_bits
.L12:
	ldr	r3, .L13+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L4:
	ldr	r3, .L13+8
	ldr	ip, [r3]
	b	.L7
.L11:
	ldr	r2, [r0, #8]
	ldr	r1, .L13+12
	add	r0, r5, #4
	bl	dev_err
	ldr	r3, .L13+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L14:
	.align	2
.L13:
	.word	MT6323_LDO_MODE_NORMAL
	.word	EINVAL
	.word	MT6323_LDO_MODE_LP
	.word	.LC0
	.size	mt6323_ldo_set_mode, .-mt6323_ldo_set_mode
	.comm	MT6323_LDO_MODE_NORMAL,4,4
	.comm	MT6323_LDO_MODE_LP,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
