	.file	"extr_core.c_regulator_sync_voltage.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	regulator_sync_voltage
	.type	regulator_sync_voltage, @function
regulator_sync_voltage:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rbp, QWORD PTR 8[rdi]
	mov	rdx, QWORD PTR PM_SUSPEND_ON[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	mov	rdi, rbp
	lea	r12, [rax+rdx*8]
	call	regulator_lock@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR 4[rax]
	test	edx, edx
	jne	.L2
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L4
.L2:
	mov	edx, DWORD PTR [r12]
	mov	eax, DWORD PTR 4[r12]
	mov	ecx, edx
	or	ecx, eax
	je	.L4
	lea	r14, 4[rsp]
	mov	r13, rsp
	mov	DWORD PTR [rsp], edx
	mov	rdi, rbp
	mov	rdx, r14
	mov	rsi, r13
	mov	DWORD PTR 4[rsp], eax
	call	regulator_check_voltage@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L3
	xor	ecx, ecx
	mov	rdx, r14
	mov	rsi, r13
	mov	rdi, rbp
	call	regulator_check_consumers@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L3
	mov	edx, DWORD PTR 4[rsp]
	mov	esi, DWORD PTR [rsp]
	mov	rdi, rbp
	call	_regulator_do_set_voltage@PLT
	mov	r12d, eax
.L3:
	mov	rdi, rbp
	call	regulator_unlock@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L3
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	regulator_sync_voltage, .-regulator_sync_voltage
	.comm	PM_SUSPEND_ON,8,8
	.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_core.c_regulator_sync_voltage.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	regulator_sync_voltage
	.syntax unified
	.arm
	.fpu softvfp
	.type	regulator_sync_voltage, %function
regulator_sync_voltage:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	push	{r4, r5, r6, lr}
	ldr	r5, [r0, #4]
	ldr	r2, .L12
	ldr	r1, .L12+4
	sub	sp, sp, #16
	mov	r0, r5
	ldr	r4, [r3]
	ldr	r6, [r2]
	ldr	r1, [r1]
	str	r1, [sp, #12]
	mov	r1,#0
	bl	regulator_lock
	ldr	r3, [r5]
	add	r1, r4, r6, lsl #3
	ldr	r3, [r3]
	ldr	r2, [r3, #4]
	cmp	r2, #0
	bne	.L2
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L4
.L2:
	ldr	r0, [r4, r6, lsl #3]
	ldr	r3, [r1, #4]
	orrs	r2, r0, r3
	beq	.L4
	str	r0, [sp, #4]
	add	r2, sp, #8
	mov	r0, r5
	add	r1, sp, #4
	str	r3, [sp, #8]
	bl	regulator_check_voltage
	subs	r4, r0, #0
	blt	.L3
	mov	r3, #0
	mov	r0, r5
	add	r2, sp, #8
	add	r1, sp, #4
	bl	regulator_check_consumers
	subs	r4, r0, #0
	blt	.L3
	ldmib	sp, {r1, r2}
	mov	r0, r5
	bl	_regulator_do_set_voltage
	mov	r4, r0
.L3:
	mov	r0, r5
	bl	regulator_unlock
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L4:
	ldr	r3, .L12+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L3
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	PM_SUSPEND_ON
	.word	.LC0
	.word	EINVAL
	.size	regulator_sync_voltage, .-regulator_sync_voltage
	.comm	PM_SUSPEND_ON,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
