	.file	"5009.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC1:
	.string	"%d %d"
.LC2:
	.string	"\nSTART OF FRAME: lc=%d ts=%d "
.LC4:
	.string	"[%02x] "
.LC5:
	.string	"te=%d dur=%d bc=%d\n"
.LC6:
	.string	"mA=%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -88[rbp], 0
	mov	DWORD PTR -96[rbp], 0
	mov	DWORD PTR -84[rbp], 0
	mov	DWORD PTR -92[rbp], 0
	mov	DWORD PTR -80[rbp], 0
	mov	DWORD PTR -76[rbp], 0
	mov	DWORD PTR -52[rbp], 0
	mov	DWORD PTR -72[rbp], 0
	mov	DWORD PTR -68[rbp], 0
	mov	DWORD PTR -64[rbp], 0
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -60[rbp], 0
	pxor	xmm0, xmm0
	movss	DWORD PTR -44[rbp], xmm0
	mov	DWORD PTR -56[rbp], 0
	jmp	.L2
.L18:
	mov	DWORD PTR -72[rbp], 0
	jmp	.L3
.L8:
	mov	rax, QWORD PTR stdin[rip]
	lea	rcx, -96[rbp]
	lea	rdx, -92[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	eax, DWORD PTR -96[rbp]
	cmp	DWORD PTR -84[rbp], eax
	jne	.L4
	add	DWORD PTR -72[rbp], 1
	jmp	.L5
.L4:
	cmp	DWORD PTR -72[rbp], 3000
	jg	.L21
	mov	DWORD PTR -72[rbp], 0
	mov	eax, DWORD PTR -96[rbp]
	mov	DWORD PTR -84[rbp], eax
.L5:
	add	DWORD PTR -88[rbp], 1
	mov	edx, DWORD PTR -88[rbp]
	movsx	rax, edx
	imul	rax, rax, 1759218605
	shr	rax, 32
	sar	eax, 12
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 10000
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L3
	mov	rax, QWORD PTR stdout[rip]
	mov	rsi, rax
	mov	edi, 42
	call	fputc@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L3:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L8
	jmp	.L7
.L21:
	nop
.L7:
	mov	ecx, DWORD PTR -92[rbp]
	mov	rax, QWORD PTR stdout[rip]
	mov	edx, DWORD PTR -72[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -80[rbp], 0
	mov	DWORD PTR -56[rbp], 0
	mov	DWORD PTR -76[rbp], 0
	mov	DWORD PTR -72[rbp], 0
	mov	eax, DWORD PTR -92[rbp]
	mov	DWORD PTR -40[rbp], eax
	jmp	.L9
.L17:
	mov	rax, QWORD PTR stdin[rip]
	lea	rcx, -96[rbp]
	lea	rdx, -92[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, 12
	jle	.L10
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, 17
	jg	.L10
	mov	DWORD PTR -68[rbp], 0
	jmp	.L11
.L10:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, 8
	jle	.L11
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, 12
	jg	.L11
	mov	DWORD PTR -68[rbp], 1
.L11:
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	jne	.L12
	add	DWORD PTR -72[rbp], 1
	jmp	.L9
.L12:
	mov	eax, DWORD PTR -72[rbp]
	add	eax, 45
	movsx	rdx, eax
	imul	rdx, rdx, -1240768329
	shr	rdx, 32
	add	edx, eax
	sar	edx, 6
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -60[rbp], eax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -72[rbp]
	movss	xmm1, DWORD PTR .LC3[rip]
	divss	xmm0, xmm1
	movss	DWORD PTR -44[rbp], xmm0
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L13
.L15:
	sal	DWORD PTR -76[rbp]
	mov	eax, DWORD PTR -64[rbp]
	or	DWORD PTR -76[rbp], eax
	add	DWORD PTR -80[rbp], 1
	mov	eax, DWORD PTR -80[rbp]
	and	eax, 7
	test	eax, eax
	jne	.L14
	mov	eax, DWORD PTR -76[rbp]
	movzx	edx, al
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -56[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -56[rbp], edx
	mov	edx, DWORD PTR -76[rbp]
	cdqe
	mov	BYTE PTR -32[rbp+rax], dl
.L14:
	sub	DWORD PTR -60[rbp], 1
.L13:
	cmp	DWORD PTR -60[rbp], 0
	jne	.L15
	mov	DWORD PTR -72[rbp], 0
	mov	eax, DWORD PTR -68[rbp]
	mov	DWORD PTR -64[rbp], eax
	mov	eax, DWORD PTR -92[rbp]
	mov	DWORD PTR -48[rbp], eax
	cmp	DWORD PTR -80[rbp], 95
	jle	.L9
	mov	eax, DWORD PTR -92[rbp]
	sub	eax, DWORD PTR -40[rbp]
	mov	ecx, eax
	mov	edx, DWORD PTR -92[rbp]
	mov	rax, QWORD PTR stdout[rip]
	mov	esi, DWORD PTR -80[rbp]
	mov	r8d, esi
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L16
.L9:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L17
.L16:
	movzx	eax, BYTE PTR -24[rbp]
	movzx	edx, al
	movzx	eax, BYTE PTR -25[rbp]
	movzx	eax, al
	sal	eax, 8
	and	eax, 3840
	or	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR stdout[rip]
	mov	edx, DWORD PTR -36[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L2:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L18
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC3:
	.long	1119092736
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"5009.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d %d\000"
	.align	2
.LC1:
	.ascii	"\012START OF FRAME: lc=%d ts=%d \000"
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.align	2
.LC2:
	.ascii	"[%02x] \000"
	.align	2
.LC3:
	.ascii	"te=%d dur=%d bc=%d\012\000"
	.align	2
.LC4:
	.ascii	"mA=%d\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-88]
	mov	r3, #0
	str	r3, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-84]
	mov	r3, #0
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-36]	@ float
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L2
.L18:
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L3
.L8:
	ldr	r3, .L22+4
	ldr	r0, [r3]
	sub	r3, fp, #88
	sub	r2, fp, #84
	ldr	r1, .L22+8
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	bne	.L4
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
	b	.L5
.L4:
	ldr	r3, [fp, #-64]
	ldr	r2, .L22+12
	cmp	r3, r2
	bgt	.L21
	mov	r3, #0
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-88]
	str	r3, [fp, #-76]
.L5:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
	ldr	r1, [fp, #-80]
	ldr	r3, .L22+16
	smull	r2, r3, r1, r3
	asr	r2, r3, #12
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L3
	ldr	r3, .L22+20
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #42
	bl	fputc
	ldr	r3, .L22+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L3:
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	b	.L7
.L21:
	nop
.L7:
	ldr	r3, .L22+20
	ldr	r0, [r3]
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-64]
	ldr	r1, .L22+24
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-84]
	str	r3, [fp, #-32]
	b	.L9
.L17:
	ldr	r3, .L22+4
	ldr	r0, [r3]
	sub	r3, fp, #88
	sub	r2, fp, #84
	ldr	r1, .L22+8
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-88]
	cmp	r3, #12
	ble	.L10
	ldr	r3, [fp, #-88]
	cmp	r3, #17
	bgt	.L10
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L11
.L10:
	ldr	r3, [fp, #-88]
	cmp	r3, #8
	ble	.L11
	ldr	r3, [fp, #-88]
	cmp	r3, #12
	bgt	.L11
	mov	r3, #1
	str	r3, [fp, #-60]
.L11:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	bne	.L12
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
	b	.L9
.L12:
	ldr	r3, [fp, #-64]
	add	r3, r3, #45
	ldr	r2, .L22+28
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #6
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-52]
	ldr	r0, [fp, #-64]
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, .L22+32
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-36]	@ float
	ldr	r3, .L22+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	b	.L13
.L15:
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #1
	str	r3, [fp, #-68]
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-56]
	orr	r3, r2, r3
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-72]
	and	r3, r3, #7
	cmp	r3, #0
	bne	.L14
	ldr	r3, .L22+20
	ldr	r0, [r3]
	ldr	r3, [fp, #-68]
	and	r3, r3, #255
	mov	r2, r3
	ldr	r1, .L22+36
	bl	fprintf
	ldr	r3, [fp, #-48]
	add	r2, r3, #1
	str	r2, [fp, #-48]
	ldr	r2, [fp, #-68]
	and	r2, r2, #255
	sub	r1, fp, #4
	add	r3, r1, r3
	strb	r2, [r3, #-20]
.L14:
	ldr	r3, [fp, #-52]
	sub	r3, r3, #1
	str	r3, [fp, #-52]
.L13:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L15
	mov	r3, #0
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-84]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-72]
	cmp	r3, #95
	ble	.L9
	ldr	r3, .L22+20
	ldr	r0, [r3]
	ldr	r1, [fp, #-84]
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-32]
	sub	r2, r2, r3
	ldr	r3, [fp, #-72]
	str	r3, [sp]
	mov	r3, r2
	mov	r2, r1
	ldr	r1, .L22+40
	bl	fprintf
	b	.L16
.L9:
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
.L16:
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	mov	r2, r3
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	lsl	r3, r3, #8
	and	r3, r3, #3840
	orr	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, .L22+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	ldr	r1, .L22+44
	mov	r0, r3
	bl	fprintf
.L2:
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	mov	r3, #0
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC5
	.word	stdin
	.word	.LC0
	.word	3000
	.word	1759218605
	.word	stdout
	.word	.LC1
	.word	-1240768329
	.word	1119092736
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
