	.file	"extr_ltc3589.c_ltc3589_set_ramp_delay.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ltc3589_set_ramp_delay, @function
ltc3589_set_ramp_delay:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, esi
	call	rdev_get_drvdata@PLT
	xor	edi, edi
	test	ebx, ebx
	setle	dil
	mov	r12, rax
	call	unlikely@PLT
	test	rax, rax
	jne	.L8
	mov	rax, QWORD PTR 0[rbp]
	mov	ecx, -1
	bsf	eax, DWORD PTR [rax]
	cmovne	ecx, eax
	cmp	ebx, 880
	jle	.L4
	cmp	ebx, 1760
	jle	.L12
	cmp	ebx, 3520
	jle	.L13
	mov	r8d, 3
	sal	r8d, cl
	mov	edx, r8d
	cmp	ebx, 7040
	jle	.L6
.L8:
	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
.L12:
	.cfi_restore_state
	mov	r8d, 1
	mov	edx, 3
	sal	r8d, cl
	sal	edx, cl
.L6:
	mov	edi, DWORD PTR [r12]
	mov	esi, DWORD PTR LTC3589_VRRCR[rip]
	mov	ecx, r8d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	regmap_update_bits@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	edx, 3
	xor	r8d, r8d
	sal	edx, cl
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L13:
	mov	r8d, 2
	mov	edx, 3
	sal	r8d, cl
	sal	edx, cl
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	ltc3589_set_ramp_delay, .-ltc3589_set_ramp_delay
	.comm	LTC3589_VRRCR,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_ltc3589.c_ltc3589_set_ramp_delay.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ltc3589_set_ramp_delay, %function
ltc3589_set_ramp_delay:
	@ 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
	cmp	r4, #0
	mov	r6, r0
	movgt	r0, #0
	movle	r0, #1
	bl	unlikely
	subs	r3, r0, #0
	bne	.L8
	ldr	r2, [r5]
	cmp	r4, #880
	ldr	r1, [r2]
	rsb	r2, r1, #0
	and	r2, r2, r1
	clz	r2, r2
	rsb	r2, r2, #31
	ble	.L4
	cmp	r4, #1760
	ble	.L12
	cmp	r4, #3520
	ble	.L13
	cmp	r4, #7040
	movle	r3, #3
	lslle	r3, r3, r2
	movle	r2, r3
	ble	.L6
.L8:
	ldr	r3, .L14
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L12:
	mov	r3, #1
	mov	r1, #3
	lsl	r3, r3, r2
	lsl	r2, r1, r2
.L6:
	ldr	r1, .L14+4
	ldr	r0, [r6]
	ldr	r1, [r1]
	pop	{r4, r5, r6, lr}
	b	regmap_update_bits
.L4:
	mov	r1, #3
	lsl	r2, r1, r2
	b	.L6
.L13:
	mov	r3, #2
	mov	r1, #3
	lsl	r3, r3, r2
	lsl	r2, r1, r2
	b	.L6
.L15:
	.align	2
.L14:
	.word	EINVAL
	.word	LTC3589_VRRCR
	.size	ltc3589_set_ramp_delay, .-ltc3589_set_ramp_delay
	.comm	LTC3589_VRRCR,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
