	.file	"extr_ltc4245.c_ltc4245_get_current.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ltc4245_get_current, @function
ltc4245_get_current:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	ebx, esi
	call	ltc4245_update_device@PLT
	movsx	rdx, ebx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR -64[rax+rdx*4]
	cmp	ebx, 130
	je	.L2
	jg	.L3
	cmp	ebx, 128
	je	.L4
	cmp	ebx, 129
	jne	.L6
	imul	eax, eax, 125
	mov	ecx, 3558687189
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	lea	edx, [rax+rax*4]
	lea	eax, [rdx+rdx]
	mov	rdx, rax
	imul	rax, rcx
	shr	rax, 32
	sub	edx, eax
	shr	edx
	add	eax, edx
	shr	eax, 5
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	cmp	ebx, 131
	jne	.L6
	imul	eax, eax, 250
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	imul	rax, rax, 1374389535
	shr	rax, 36
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	imul	eax, eax, 125
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	lea	eax, [rax+rax*4]
	add	eax, eax
	imul	rax, rax, 1374389535
	shr	rax, 35
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	imul	eax, eax, 250
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	imul	rax, rax, 1374389535
	shr	rax, 37
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edi, 1
	call	WARN_ON_ONCE@PLT
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ltc4245_get_current, .-ltc4245_get_current
	.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_ltc4245.c_ltc4245_get_current.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ltc4245_get_current, %function
ltc4245_get_current:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r1
	bl	ltc4245_update_device
	ldr	r3, [r0]
	sub	r2, r4, #-1073741808
	sub	r4, r4, #128
	ldr	r3, [r3, r2, lsl #2]
	cmp	r4, #3
	ldrls	pc, [pc, r4, asl #2]
	b	.L2
.L4:
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L3:
	rsb	r0, r3, r3, lsl #5
	add	r0, r3, r0, lsl #2
	ldr	r3, .L11
	lsl	r0, r0, #1
	umull	r2, r0, r3, r0
	lsr	r0, r0, #4
	pop	{r4, pc}
.L7:
	rsb	r0, r3, r3, lsl #5
	add	r0, r3, r0, lsl #2
	ldr	r3, .L11
	lsl	r0, r0, #1
	umull	r2, r0, r3, r0
	lsr	r0, r0, #5
	pop	{r4, pc}
.L6:
	rsb	r2, r3, r3, lsl #5
	add	r3, r3, r2, lsl #2
	ldr	r0, .L11+4
	add	r3, r3, r3, lsl #2
	lsl	r3, r3, #1
	umull	r2, r0, r3, r0
	sub	r3, r3, r0
	add	r0, r0, r3, lsr #1
	lsr	r0, r0, #5
	pop	{r4, pc}
.L5:
	rsb	r2, r3, r3, lsl #5
	add	r3, r3, r2, lsl #2
	add	r3, r3, r3, lsl #2
	ldr	r2, .L11
	lsl	r0, r3, #1
	umull	r3, r0, r2, r0
	lsr	r0, r0, #3
	pop	{r4, pc}
.L2:
	mov	r0, #1
	bl	WARN_ON_ONCE
	mov	r0, #0
	pop	{r4, pc}
.L12:
	.align	2
.L11:
	.word	1374389535
	.word	-736280107
	.size	ltc4245_get_current, .-ltc4245_get_current
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
