	.file	"extr_max77693_charger.c_max77693_set_top_off_threshold_current.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	max77693_set_top_off_threshold_current, @function
max77693_set_top_off_threshold_current:
.LFB0:
	.cfi_startproc
	endbr64
	lea	rdx, -100000[rsi]
	cmp	rdx, 250000
	ja	.L8
	cmp	rsi, 200000
	jbe	.L9
	movabs	rdx, 1511157274518286469
	shr	rsi, 4
	mov	rax, rsi
	mul	rdx
	shr	rdx, 8
.L5:
	mov	ecx, DWORD PTR CHG_CNFG_03_TOITH_SHIFT[rip]
	mov	rax, QWORD PTR [rdi]
	mov	esi, DWORD PTR MAX77693_CHG_REG_CHG_CNFG_03[rip]
	sal	edx, cl
	mov	edi, DWORD PTR [rax]
	mov	ecx, edx
	mov	edx, DWORD PTR CHG_CNFG_03_TOITH_MASK[rip]
	jmp	regmap_update_bits@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rcx, rdx
	movabs	rdx, 1511157274518286469
	shr	rcx, 3
	mov	rax, rcx
	mul	rdx
	shr	rdx, 8
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	max77693_set_top_off_threshold_current, .-max77693_set_top_off_threshold_current
	.comm	MAX77693_CHG_REG_CHG_CNFG_03,4,4
	.comm	EINVAL,4,4
	.comm	CHG_CNFG_03_TOITH_SHIFT,4,4
	.comm	CHG_CNFG_03_TOITH_MASK,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_max77693_charger.c_max77693_set_top_off_threshold_current.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	max77693_set_top_off_threshold_current, %function
max77693_set_top_off_threshold_current:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r2, .L9
	sub	r3, r1, #99328
	sub	r3, r3, #672
	cmp	r3, r2
	bhi	.L8
	ldr	r2, .L9+4
	ldr	r0, [r0]
	cmp	r1, r2
	ldrls	r2, .L9+8
	ldrhi	r3, .L9+12
	lsrls	r1, r3, #3
	lsrhi	r1, r1, #4
	umullls	r3, r1, r2, r1
	umullhi	r2, r1, r3, r1
	ldr	r3, .L9+16
	ldr	r2, .L9+20
	ldr	r3, [r3]
	ldr	ip, .L9+24
	lsrls	r1, r1, #8
	lsrhi	r1, r1, #7
	lsl	r3, r1, r3
	ldr	r0, [r0]
	ldr	r2, [r2]
	ldr	r1, [ip]
	b	regmap_update_bits
.L8:
	ldr	r3, .L9+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L10:
	.align	2
.L9:
	.word	250000
	.word	200000
	.word	351843721
	.word	175921861
	.word	CHG_CNFG_03_TOITH_SHIFT
	.word	CHG_CNFG_03_TOITH_MASK
	.word	MAX77693_CHG_REG_CHG_CNFG_03
	.word	EINVAL
	.size	max77693_set_top_off_threshold_current, .-max77693_set_top_off_threshold_current
	.comm	MAX77693_CHG_REG_CHG_CNFG_03,4,4
	.comm	EINVAL,4,4
	.comm	CHG_CNFG_03_TOITH_SHIFT,4,4
	.comm	CHG_CNFG_03_TOITH_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
