	.file	"extr_status.c_status_get_cpt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"CUR:%d,%d,%d AVG:%d,%d,%d (Min,Hour,Day)"
	.align 8
.LC1:
	.string	"CUR:%d,%d,N/A AVG:%d,%d,%d (Min,Hour,Day)"
	.align 8
.LC2:
	.string	"CUR:%d,N/A,N/A AVG:%d,%d,%d (Min,Hour,Day)"
	.align 8
.LC3:
	.string	"CUR:N/A,N/A,N/A AVG:%d,%d,%d (Min,Hour,Day)"
	.text
	.p2align 4
	.globl	status_get_cpt
	.type	status_get_cpt, @function
status_get_cpt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	r15, QWORD PTR [rdi]
	xor	edi, edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	time@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	status_get_cpt_cur_min@PLT
	mov	rdi, rbp
	mov	r14d, eax
	call	status_get_cpt_cur_hour@PLT
	mov	rdi, rbp
	mov	DWORD PTR 8[rsp], eax
	call	status_get_cpt_cur_day@PLT
	mov	rdi, rbp
	mov	DWORD PTR 12[rsp], eax
	call	status_get_cpt_avg_min@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	status_get_cpt_avg_hour@PLT
	mov	rdi, rbp
	mov	r13d, eax
	call	status_get_cpt_avg_day@PLT
	mov	rsi, QWORD PTR [r15]
	lea	rcx, 86400[rsi]
	cmp	rcx, rbx
	jl	.L9
	lea	rcx, 3600[rsi]
	cmp	rcx, rbx
	jl	.L10
	add	rsi, 60
	lea	rdi, 16[rsp]
	cmp	rsi, rbx
	jge	.L5
	mov	r9d, eax
	mov	r8d, r13d
	mov	ecx, r12d
	mov	edx, r14d
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	hc_asprintf@PLT
.L3:
	mov	rdx, QWORD PTR 24[rsp]
	xor	rdx, QWORD PTR fs:40
	mov	rax, QWORD PTR 16[rsp]
	jne	.L11
	add	rsp, 40
	.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
.L10:
	.cfi_restore_state
	lea	rdi, 16[rsp]
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	edx, r14d
	mov	r9d, r13d
	push	rax
	.cfi_def_cfa_offset 112
	mov	ecx, DWORD PTR 24[rsp]
	mov	r8d, r12d
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	hc_asprintf@PLT
	pop	rax
	.cfi_def_cfa_offset 104
	pop	rdx
	.cfi_def_cfa_offset 96
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rdi, 16[rsp]
	push	rax
	.cfi_def_cfa_offset 104
	lea	rsi, .LC0[rip]
	mov	r9d, r12d
	push	r13
	.cfi_def_cfa_offset 112
	mov	r8d, DWORD PTR 28[rsp]
	mov	edx, r14d
	xor	eax, eax
	mov	ecx, DWORD PTR 24[rsp]
	call	hc_asprintf@PLT
	pop	rcx
	.cfi_def_cfa_offset 104
	pop	rsi
	.cfi_def_cfa_offset 96
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	r8d, eax
	mov	ecx, r13d
	mov	edx, r12d
	xor	eax, eax
	lea	rsi, .LC3[rip]
	call	hc_asprintf@PLT
	jmp	.L3
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	status_get_cpt, .-status_get_cpt
	.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_status.c_status_get_cpt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CUR:%d,%d,%d AVG:%d,%d,%d (Min,Hour,Day)\000"
	.align	2
.LC1:
	.ascii	"CUR:%d,%d,N/A AVG:%d,%d,%d (Min,Hour,Day)\000"
	.align	2
.LC2:
	.ascii	"CUR:%d,N/A,N/A AVG:%d,%d,%d (Min,Hour,Day)\000"
	.align	2
.LC3:
	.ascii	"CUR:N/A,N/A,N/A AVG:%d,%d,%d (Min,Hour,Day)\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	status_get_cpt
	.syntax unified
	.arm
	.fpu softvfp
	.type	status_get_cpt, %function
status_get_cpt:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r3, .L12
	sub	sp, sp, #24
	mov	r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r10, [r4]
	bl	time
	mov	r5, r0
	mov	r0, r4
	bl	status_get_cpt_cur_min
	mov	r7, r0
	mov	r0, r4
	bl	status_get_cpt_cur_hour
	mov	r9, r0
	mov	r0, r4
	bl	status_get_cpt_cur_day
	mov	r8, r0
	mov	r0, r4
	bl	status_get_cpt_avg_min
	mov	r6, r0
	mov	r0, r4
	bl	status_get_cpt_avg_hour
	mov	r3, r0
	mov	r0, r4
	mov	r4, r3
	bl	status_get_cpt_avg_day
	ldr	r1, [r10]
	add	ip, r1, #86016
	add	ip, ip, #384
	cmp	ip, r5
	blt	.L9
	add	r3, r1, #3600
	cmp	r3, r5
	blt	.L10
	add	r1, r1, #60
	cmp	r1, r5
	bge	.L5
	str	r0, [sp, #4]
	mov	r3, r6
	mov	r2, r7
	ldr	r1, .L12+4
	str	r4, [sp]
	add	r0, sp, #16
	bl	hc_asprintf
.L3:
	ldr	r3, .L12
	ldr	r0, [sp, #16]
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	str	r0, [sp, #8]
	mov	r3, r9
	mov	r2, r7
	ldr	r1, .L12+8
	str	r4, [sp, #4]
	str	r6, [sp]
	add	r0, sp, #16
	bl	hc_asprintf
	b	.L3
.L9:
	str	r0, [sp, #12]
	mov	r3, r9
	mov	r2, r7
	ldr	r1, .L12+12
	str	r4, [sp, #8]
	str	r6, [sp, #4]
	str	r8, [sp]
	add	r0, sp, #16
	bl	hc_asprintf
	b	.L3
.L5:
	str	r0, [sp]
	mov	r3, r4
	mov	r2, r6
	ldr	r1, .L12+16
	add	r0, sp, #16
	bl	hc_asprintf
	b	.L3
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC4
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.word	.LC3
	.size	status_get_cpt, .-status_get_cpt
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
