	.file	"extr_ab8500_fg.c_ab8500_fg_fill_cap_sample.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ab8500_fg_fill_cap_sample, @function
ab8500_fg_fill_cap_sample:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	eax, eax
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	ktime_get_boottime_seconds@PLT
	mov	ecx, DWORD PTR NBR_AVG_SAMPLES[rip]
	test	ecx, ecx
	jle	.L2
	mov	r8, QWORD PTR 0[rbp]
	mov	rsi, QWORD PTR 32[rbp]
	xor	edx, edx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	DWORD PTR [r8+rdx*4], ebx
	mov	DWORD PTR [rsi+rdx*4], eax
	mov	ecx, DWORD PTR NBR_AVG_SAMPLES[rip]
	add	rdx, 1
	cmp	ecx, edx
	jg	.L3
.L2:
	mov	DWORD PTR 8[rbp], ecx
	imul	ecx, ebx
	mov	DWORD PTR 16[rbp], ebx
	mov	QWORD PTR 24[rbp], 0
	mov	DWORD PTR 12[rbp], ecx
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ab8500_fg_fill_cap_sample, .-ab8500_fg_fill_cap_sample
	.comm	NBR_AVG_SAMPLES,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_ab8500_fg.c_ab8500_fg_fill_cap_sample.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ab8500_fg_fill_cap_sample, %function
ab8500_fg_fill_cap_sample:
	@ 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	ktime_get_boottime_seconds
	ldr	r1, .L7
	ldr	r2, [r1]
	cmp	r2, #0
	ble	.L2
	mov	r3, #0
	ldr	lr, [r5]
	ldr	ip, [r5, #20]
	sub	lr, lr, #4
	sub	ip, ip, #4
.L3:
	str	r4, [lr, #4]!
	str	r0, [ip, #4]!
	ldr	r2, [r1]
	add	r3, r3, #1
	cmp	r2, r3
	bgt	.L3
.L2:
	mov	r3, #0
	mul	r1, r2, r4
	str	r2, [r5, #4]
	str	r1, [r5, #8]
	str	r4, [r5, #12]
	str	r3, [r5, #16]
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	NBR_AVG_SAMPLES
	.size	ab8500_fg_fill_cap_sample, .-ab8500_fg_fill_cap_sample
	.comm	NBR_AVG_SAMPLES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
