	.file	"extr_qcom_spmi-regulator.c_spmi_regulator_init_slew_rate_ftsmps426.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"spmi read failed, ret=%d\n"
	.text
	.p2align 4
	.type	spmi_regulator_init_slew_rate_ftsmps426, @function
spmi_regulator_init_slew_rate_ftsmps426:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	ecx, 1
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR SPMI_COMMON_REG_STEP_CTRL[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	lea	rdx, 4[rsp]
	mov	DWORD PTR 4[rsp], 0
	mov	r13, QWORD PTR [rax]
	call	spmi_vreg_read@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L7
	mov	ecx, DWORD PTR SPMI_FTSMPS426_STEP_CTRL_DELAY_SHIFT[rip]
	mov	eax, DWORD PTR 0[r13]
	mov	esi, 1
	mov	edx, DWORD PTR 4[rsp]
	and	edx, DWORD PTR SPMI_FTSMPS426_STEP_CTRL_DELAY_MASK[rip]
	imul	eax, ebx
	sar	edx, cl
	mov	ebx, DWORD PTR SPMI_FTSMPS426_STEP_DELAY[rip]
	mov	ecx, edx
	sal	ebx, cl
	imul	ecx, ebx, 1000
	cdq
	idiv	ecx
	imul	eax, DWORD PTR SPMI_FTSMPS426_STEP_MARGIN_NUM[rip]
	cdq
	idiv	DWORD PTR SPMI_FTSMPS426_STEP_MARGIN_DEN[rip]
	mov	edi, eax
	call	max@PLT
	mov	DWORD PTR 0[rbp], eax
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbp]
	mov	edx, eax
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	spmi_regulator_init_slew_rate_ftsmps426, .-spmi_regulator_init_slew_rate_ftsmps426
	.comm	SPMI_FTSMPS426_STEP_MARGIN_NUM,4,4
	.comm	SPMI_FTSMPS426_STEP_MARGIN_DEN,4,4
	.comm	SPMI_FTSMPS426_STEP_DELAY,4,4
	.comm	SPMI_FTSMPS426_STEP_CTRL_DELAY_SHIFT,4,4
	.comm	SPMI_FTSMPS426_STEP_CTRL_DELAY_MASK,4,4
	.comm	SPMI_COMMON_REG_STEP_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_qcom_spmi-regulator.c_spmi_regulator_init_slew_rate_ftsmps426.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"spmi read failed, ret=%d\012\000"
	.global	__aeabi_idiv
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	spmi_regulator_init_slew_rate_ftsmps426, %function
spmi_regulator_init_slew_rate_ftsmps426:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L9
	sub	sp, sp, #12
	ldr	lr, [r0, #8]
	ldr	r5, .L9+4
	mov	r6, r1
	mov	r2, sp
	ldr	r1, [r3]
	mov	r3, #1
	ldr	r5, [r5]
	str	r5, [sp, #4]
	mov	r5,#0
	ldr	r7, [lr]
	mov	r4, r0
	str	ip, [sp]
	bl	spmi_vreg_read
	subs	r5, r0, #0
	bne	.L7
	ldr	r3, .L9+8
	ldr	ip, [sp]
	ldr	r3, [r3]
	ldr	r2, .L9+12
	and	ip, ip, r3
	ldr	r3, .L9+16
	ldr	r1, [r2]
	ldr	r3, [r3]
	asr	ip, ip, r1
	lsl	r1, r3, ip
	rsb	r3, r1, r1, lsl #5
	ldr	r0, [r7]
	add	r1, r1, r3, lsl #2
	lsl	r1, r1, #3
	mul	r0, r6, r0
	bl	__aeabi_idiv
	ldr	r3, .L9+20
	ldr	r2, .L9+24
	ldr	r3, [r3]
	ldr	r1, [r2]
	mul	r0, r3, r0
	bl	__aeabi_idiv
	mov	r1, #1
	bl	max
	str	r0, [r4]
.L1:
	ldr	r3, .L9+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L7:
	mov	r2, r5
	ldr	r0, [r4, #4]
	ldr	r1, .L9+28
	bl	dev_err
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	SPMI_COMMON_REG_STEP_CTRL
	.word	.LC1
	.word	SPMI_FTSMPS426_STEP_CTRL_DELAY_MASK
	.word	SPMI_FTSMPS426_STEP_CTRL_DELAY_SHIFT
	.word	SPMI_FTSMPS426_STEP_DELAY
	.word	SPMI_FTSMPS426_STEP_MARGIN_NUM
	.word	SPMI_FTSMPS426_STEP_MARGIN_DEN
	.word	.LC0
	.size	spmi_regulator_init_slew_rate_ftsmps426, .-spmi_regulator_init_slew_rate_ftsmps426
	.comm	SPMI_FTSMPS426_STEP_MARGIN_NUM,4,4
	.comm	SPMI_FTSMPS426_STEP_MARGIN_DEN,4,4
	.comm	SPMI_FTSMPS426_STEP_DELAY,4,4
	.comm	SPMI_FTSMPS426_STEP_CTRL_DELAY_SHIFT,4,4
	.comm	SPMI_FTSMPS426_STEP_CTRL_DELAY_MASK,4,4
	.comm	SPMI_COMMON_REG_STEP_CTRL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
