	.file	"extr_backends.c_backend_calculate_value_from_stored_data.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"BACKEND: %s.%s.%s: aligned timeframe %lu to %lu is outside the chart's database range %lu to %lu"
	.align 8
.LC1:
	.string	"BACKEND: %s.%s.%s: no values stored in database for range %lu to %lu"
	.text
	.p2align 4
	.globl	backend_calculate_value_from_stored_data
	.type	backend_calculate_value_from_stored_data, @function
backend_calculate_value_from_stored_data:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, r9
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR 128[rsp]
	mov	DWORD PTR 36[rsp], r8d
	mov	QWORD PTR 8[rsp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	mov	QWORD PTR 24[rsp], rdi
	mov	rdi, rsi
	mov	QWORD PTR 40[rsp], rax
	mov	rax, QWORD PTR 8[rsi]
	call	[QWORD PTR [rax]]
	mov	rdi, rbx
	movsx	r13, eax
	mov	rax, QWORD PTR 8[rbx]
	call	[QWORD PTR 8[rax]]
	mov	rdi, QWORD PTR 24[rsp]
	movsx	r14, eax
	mov	ecx, DWORD PTR [rdi]
	xor	edi, edi
	lea	eax, [rcx+rcx]
	sub	ebp, eax
	sub	r12d, eax
	mov	eax, ebp
	cdq
	idiv	ecx
	mov	eax, r12d
	sub	ebp, edx
	cdq
	idiv	ecx
	sub	r12d, edx
	sub	r12d, ecx
	cmp	ebp, r12d
	setg	dil
	call	unlikely@PLT
	test	rax, rax
	cmovne	ebp, r12d
	xor	edi, edi
	cmp	ebp, r13d
	setl	dil
	call	unlikely@PLT
	test	rax, rax
	cmovne	ebp, r13d
	xor	edi, edi
	cmp	r14d, r12d
	setl	dil
	call	unlikely@PLT
	test	rax, rax
	cmovne	r12d, r14d
	cmp	r12d, r13d
	setl	dil
	cmp	ebp, r14d
	setg	al
	or	edi, eax
	movzx	edi, dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L21
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR [r15], ebp
	lea	r13, 48[rsp]
	mov	ecx, r12d
	mov	edx, ebp
	mov	rsi, r13
	lea	r15, 52[rsp]
	mov	rdi, rbx
	mov	DWORD PTR [rax], r12d
	mov	rax, QWORD PTR 8[rbx]
	call	[QWORD PTR 40[rax]]
	mov	DWORD PTR 8[rsp], 0
	mov	QWORD PTR 16[rsp], 0
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, r13
	call	[QWORD PTR 32[rax]]
	test	eax, eax
	mov	rax, QWORD PTR 8[rbx]
	jne	.L22
	mov	rsi, r15
	mov	rdi, r13
	call	[QWORD PTR 24[rax]]
	mov	edi, eax
	mov	r14d, eax
	call	does_storage_number_exist@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L7
	mov	edi, r14d
	call	unpack_storage_number@PLT
	add	QWORD PTR 16[rsp], 1
	add	DWORD PTR 8[rsp], eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, r13
	call	[QWORD PTR 16[rax]]
	xor	edi, edi
	cmp	QWORD PTR 16[rsp], 0
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L23
	mov	edi, DWORD PTR 36[rsp]
	call	BACKEND_OPTIONS_DATA_SOURCE@PLT
	xor	edi, edi
	cmp	QWORD PTR BACKEND_SOURCE_DATA_SUM[rip], rax
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L1
	mov	eax, DWORD PTR 8[rsp]
	cdq
	idiv	DWORD PTR 16[rsp]
	mov	DWORD PTR 8[rsp], eax
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	mov	eax, DWORD PTR 8[rsp]
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	rax, QWORD PTR 24[rsp]
	movsx	r12, r12d
	sub	rsp, 8
	.cfi_def_cfa_offset 136
	mov	r8d, DWORD PTR [rbx]
	mov	edi, DWORD PTR D_BACKEND[rip]
	movsx	r9, ebp
	lea	rsi, .LC1[rip]
	mov	ecx, DWORD PTR 4[rax]
	push	r12
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR 56[rsp]
	mov	edx, DWORD PTR [rax]
	xor	eax, eax
	call	debug@PLT
	mov	eax, DWORD PTR NAN[rip]
	mov	DWORD PTR 24[rsp], eax
	pop	rax
	.cfi_def_cfa_offset 136
	pop	rdx
	.cfi_def_cfa_offset 128
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rax, QWORD PTR 24[rsp]
	movsx	r12, r12d
	sub	rsp, 8
	.cfi_def_cfa_offset 136
	mov	r8d, DWORD PTR [rbx]
	mov	edi, DWORD PTR D_BACKEND[rip]
	movsx	r9, ebp
	lea	rsi, .LC0[rip]
	mov	ecx, DWORD PTR 4[rax]
	push	r14
	.cfi_def_cfa_offset 144
	push	r13
	.cfi_def_cfa_offset 152
	push	r12
	.cfi_def_cfa_offset 160
	mov	rax, QWORD PTR 72[rsp]
	mov	edx, DWORD PTR [rax]
	xor	eax, eax
	call	debug@PLT
	mov	eax, DWORD PTR NAN[rip]
	mov	DWORD PTR 40[rsp], eax
	add	rsp, 32
	.cfi_def_cfa_offset 128
	jmp	.L1
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	backend_calculate_value_from_stored_data, .-backend_calculate_value_from_stored_data
	.comm	NAN,4,4
	.comm	D_BACKEND,4,4
	.comm	BACKEND_SOURCE_DATA_SUM,8,8
	.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_backends.c_backend_calculate_value_from_stored_data.c"
	.text
	.global	__aeabi_idivmod
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"BACKEND: %s.%s.%s: aligned timeframe %lu to %lu is "
	.ascii	"outside the chart's database range %lu to %lu\000"
	.align	2
.LC1:
	.ascii	"BACKEND: %s.%s.%s: no values stored in database for"
	.ascii	" range %lu to %lu\000"
	.global	__aeabi_idiv
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	backend_calculate_value_from_stored_data
	.syntax unified
	.arm
	.fpu softvfp
	.type	backend_calculate_value_from_stored_data, %function
backend_calculate_value_from_stored_data:
	@ args = 12, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r10, r0
	mov	r4, r1
	mov	r7, r3
	ldr	r3, .L25
	sub	sp, sp, #52
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	ldr	r3, [r10, #8]
	ldr	r1, [r1, #4]
	str	r3, [sp, #28]
	ldr	r3, [sp, #96]
	ldr	r8, [r1]
	mov	r0, r4
	mov	r6, r2
	str	r3, [sp, #24]
	ldr	fp, [sp, #92]
	blx	r8
	ldr	r3, [r4, #4]
	mov	r8, r0
	ldr	r3, [r3, #4]
	mov	r0, r4
	blx	r3
	ldr	r5, [r10]
	mov	r9, r0
	sub	r6, r6, r5, lsl #1
	mov	r0, r6
	mov	r1, r5
	bl	__aeabi_idivmod
	sub	r7, r7, r5, lsl #1
	sub	r6, r6, r1
	mov	r0, r7
	mov	r1, r5
	bl	__aeabi_idivmod
	sub	r7, r7, r1
	sub	r5, r7, r5
	cmp	r6, r5
	movle	r0, #0
	movgt	r0, #1
	bl	unlikely
	cmp	r0, #0
	movne	r6, r5
	cmp	r6, r8
	movge	r0, #0
	movlt	r0, #1
	bl	unlikely
	mov	r3, r0
	cmp	r9, r5
	movge	r0, #0
	movlt	r0, #1
	cmp	r3, #0
	movne	r6, r8
	bl	unlikely
	cmp	r6, r9
	movle	r3, #0
	movgt	r3, #1
	cmp	r0, #0
	movne	r5, r9
	cmp	r5, r8
	movge	r0, r3
	orrlt	r0, r3, #1
	bl	unlikely
	subs	r7, r0, #0
	bne	.L21
	ldr	r3, [r4, #4]
	mov	r2, r6
	ldr	r8, [r3, #20]
	ldr	r3, [sp, #24]
	str	r6, [fp]
	mov	r0, r4
	str	r5, [r3]
	add	r1, sp, #36
	mov	r3, r5
	blx	r8
	mov	r9, r7
.L7:
	ldr	r3, [r4, #4]
	add	r0, sp, #36
	ldr	r3, [r3, #16]
	blx	r3
	cmp	r0, #0
	ldr	r3, [r4, #4]
	bne	.L22
	ldr	r3, [r3, #12]
	add	r1, sp, #40
	add	r0, sp, #36
	blx	r3
	mov	r8, r0
	bl	does_storage_number_exist
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	bne	.L7
	mov	r0, r8
	bl	unpack_storage_number
	add	r9, r9, #1
	add	r7, r7, r0
	b	.L7
.L22:
	ldr	r3, [r3, #8]
	add	r0, sp, #36
	blx	r3
	clz	r0, r9
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	bne	.L23
	ldr	r0, [sp, #88]
	bl	BACKEND_OPTIONS_DATA_SOURCE
	ldr	r3, .L25+4
	ldr	r3, [r3]
	sub	r0, r3, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	bne	.L1
	mov	r0, r7
	mov	r1, r9
	bl	__aeabi_idiv
	mov	r7, r0
.L1:
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	mov	r0, r7
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	ldr	r3, [sp, #28]
	ldr	r1, .L25+8
	ldr	r2, [r3]
	ldr	r3, [r4]
	str	r5, [sp, #8]
	str	r3, [sp]
	str	r6, [sp, #4]
	ldr	r3, [r10, #4]
	ldr	r0, [r1]
	ldr	r1, .L25+12
	bl	debug
	ldr	r3, .L25+16
	ldr	r7, [r3]
	b	.L1
.L21:
	ldr	r3, [sp, #28]
	ldr	r1, .L25+8
	ldr	r2, [r3]
	ldr	r3, [r4]
	str	r9, [sp, #16]
	str	r3, [sp]
	str	r8, [sp, #12]
	str	r5, [sp, #8]
	str	r6, [sp, #4]
	ldr	r3, [r10, #4]
	ldr	r0, [r1]
	ldr	r1, .L25+20
	bl	debug
	ldr	r3, .L25+16
	ldr	r7, [r3]
	b	.L1
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	.LC2
	.word	BACKEND_SOURCE_DATA_SUM
	.word	D_BACKEND
	.word	.LC1
	.word	NAN
	.word	.LC0
	.size	backend_calculate_value_from_stored_data, .-backend_calculate_value_from_stored_data
	.comm	NAN,4,4
	.comm	D_BACKEND,4,4
	.comm	BACKEND_SOURCE_DATA_SUM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
