	.file	"extr_core.c_regulator_check_voltage.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"voltage operation not allowed\n"
	.align 8
.LC1:
	.string	"unsupportable voltage range: %d-%duV\n"
	.text
	.p2align 4
	.globl	regulator_check_voltage
	.type	regulator_check_voltage, @function
regulator_check_voltage:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	xor	edi, edi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	eax, DWORD PTR [rdx]
	mov	rbx, rdx
	cmp	DWORD PTR [rsi], eax
	setg	dil
	call	BUG_ON@PLT
	mov	esi, DWORD PTR REGULATOR_CHANGE_VOLTAGE[rip]
	mov	rdi, r12
	call	regulator_ops_is_valid@PLT
	test	eax, eax
	je	.L9
	mov	rax, QWORD PTR [r12]
	mov	edx, DWORD PTR [rax]
	cmp	DWORD PTR [rbx], edx
	jle	.L4
	mov	DWORD PTR [rbx], edx
.L4:
	mov	edx, DWORD PTR 0[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	jl	.L10
	mov	ecx, DWORD PTR [rbx]
	xor	eax, eax
	cmp	ecx, edx
	jl	.L11
.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
.L10:
	.cfi_restore_state
	mov	DWORD PTR 0[rbp], eax
	mov	ecx, DWORD PTR [rbx]
	mov	edx, eax
	xor	eax, eax
	cmp	ecx, edx
	jge	.L1
.L11:
	mov	rdi, r12
	lea	rsi, .LC1[rip]
	call	rdev_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, r12
	lea	rsi, .LC0[rip]
	call	rdev_err@PLT
	mov	eax, DWORD PTR EPERM[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	regulator_check_voltage, .-regulator_check_voltage
	.comm	REGULATOR_CHANGE_VOLTAGE,4,4
	.comm	EPERM,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_core.c_regulator_check_voltage.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"voltage operation not allowed\012\000"
	.align	2
.LC1:
	.ascii	"unsupportable voltage range: %d-%duV\012\000"
	.text
	.align	2
	.global	regulator_check_voltage
	.syntax unified
	.arm
	.fpu softvfp
	.type	regulator_check_voltage, %function
regulator_check_voltage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r0
	ldr	r3, [r2]
	ldr	r0, [r1]
	mov	r5, r1
	cmp	r0, r3
	movle	r0, #0
	movgt	r0, #1
	mov	r4, r2
	bl	BUG_ON
	ldr	r3, .L11
	mov	r0, r6
	ldr	r1, [r3]
	bl	regulator_ops_is_valid
	cmp	r0, #0
	beq	.L9
	ldr	r3, [r6]
	ldr	r1, [r4]
	ldr	r2, [r3]
	cmp	r1, r2
	strgt	r2, [r4]
	ldr	r3, [r3, #4]
	ldr	r2, [r5]
	cmp	r2, r3
	movlt	r2, r3
	strlt	r3, [r5]
	ldr	r3, [r4]
	cmp	r3, r2
	blt	.L10
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L9:
	mov	r0, r6
	ldr	r1, .L11+4
	bl	rdev_err
	ldr	r3, .L11+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L10:
	mov	r0, r6
	ldr	r1, .L11+12
	bl	rdev_err
	ldr	r3, .L11+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L12:
	.align	2
.L11:
	.word	REGULATOR_CHANGE_VOLTAGE
	.word	.LC0
	.word	EPERM
	.word	.LC1
	.word	EINVAL
	.size	regulator_check_voltage, .-regulator_check_voltage
	.comm	REGULATOR_CHANGE_VOLTAGE,4,4
	.comm	EPERM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
