	.file	"485089.c"
	.intel_syntax noprefix
	.text
	.globl	RGBToYIQ
	.type	RGBToYIQ, @function
RGBToYIQ:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	mov	QWORD PTR -24[rbp], rcx
	mov	QWORD PTR -32[rbp], r8
	mov	QWORD PTR -40[rbp], r9
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -4[rbp]
	movss	xmm0, DWORD PTR .LC0[rip]
	mulss	xmm1, xmm0
	pxor	xmm2, xmm2
	cvtsi2ss	xmm2, DWORD PTR -8[rbp]
	movss	xmm0, DWORD PTR .LC1[rip]
	mulss	xmm0, xmm2
	addss	xmm1, xmm0
	pxor	xmm2, xmm2
	cvtsi2ss	xmm2, DWORD PTR -12[rbp]
	movss	xmm0, DWORD PTR .LC2[rip]
	mulss	xmm0, xmm2
	addss	xmm0, xmm1
	cvttss2si	edx, xmm0
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, edx
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	movss	xmm0, DWORD PTR .LC3[rip]
	mulss	xmm1, xmm0
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, edx
	pxor	xmm2, xmm2
	cvtsi2ss	xmm2, eax
	movss	xmm0, DWORD PTR .LC4[rip]
	mulss	xmm0, xmm2
	addss	xmm0, xmm1
	cvttss2si	edx, xmm0
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, edx
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	movss	xmm0, DWORD PTR .LC5[rip]
	mulss	xmm1, xmm0
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, edx
	pxor	xmm2, xmm2
	cvtsi2ss	xmm2, eax
	movss	xmm0, DWORD PTR .LC6[rip]
	mulss	xmm0, xmm2
	addss	xmm0, xmm1
	cvttss2si	edx, xmm0
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	RGBToYIQ, .-RGBToYIQ
	.globl	voltageToDACValue
	.type	voltageToDACValue, @function
voltageToDACValue:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movss	DWORD PTR -20[rbp], xmm0
	pxor	xmm0, xmm0
	comiss	xmm0, DWORD PTR -20[rbp]
	jbe	.L8
	mov	eax, 0
	jmp	.L5
.L8:
	movss	xmm0, DWORD PTR -20[rbp]
	movss	xmm2, DWORD PTR .LC8[rip]
	movaps	xmm1, xmm0
	divss	xmm1, xmm2
	movss	xmm0, DWORD PTR .LC9[rip]
	mulss	xmm0, xmm1
	cvttss2si	rax, xmm0
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 254
	jbe	.L6
	mov	eax, -1
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -4[rbp]
.L5:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	voltageToDACValue, .-voltageToDACValue
	.globl	NTSCYIQToSignal
	.type	NTSCYIQToSignal, @function
NTSCYIQToSignal:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	movss	DWORD PTR -20[rbp], xmm0
	movss	DWORD PTR -24[rbp], xmm1
	movss	DWORD PTR -28[rbp], xmm2
	movss	DWORD PTR -32[rbp], xmm3
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, DWORD PTR -32[rbp]
	movsd	xmm0, QWORD PTR .LC10[rip]
	mulsd	xmm0, xmm1
	addsd	xmm0, xmm0
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -12[rbp], xmm0
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, DWORD PTR -12[rbp]
	movsd	xmm0, QWORD PTR .LC11[rip]
	addsd	xmm0, xmm1
	pxor	xmm4, xmm4
	cvtsd2ss	xmm4, xmm0
	movd	eax, xmm4
	movd	xmm0, eax
	call	sinf@PLT
	movd	eax, xmm0
	mov	DWORD PTR -8[rbp], eax
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, DWORD PTR -12[rbp]
	movsd	xmm0, QWORD PTR .LC11[rip]
	addsd	xmm0, xmm1
	pxor	xmm5, xmm5
	cvtsd2ss	xmm5, xmm0
	movd	eax, xmm5
	movd	xmm0, eax
	call	cosf@PLT
	movd	eax, xmm0
	mov	DWORD PTR -4[rbp], eax
	movss	xmm0, DWORD PTR -28[rbp]
	mulss	xmm0, DWORD PTR -8[rbp]
	movaps	xmm1, xmm0
	addss	xmm1, DWORD PTR -20[rbp]
	movss	xmm0, DWORD PTR -24[rbp]
	mulss	xmm0, DWORD PTR -4[rbp]
	addss	xmm0, xmm1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	NTSCYIQToSignal, .-NTSCYIQToSignal
	.section	.rodata
.LC15:
	.string	"i = [%d, %d], q = [%d, %d]\n"
	.align 8
.LC16:
	.string	"signalMin = %f, signalMax = %f\n"
.LC17:
	.string	"i = %d, count %d\n"
.LC18:
	.string	"q = %d, count %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -56[rbp], 1000
	mov	DWORD PTR -52[rbp], -1000
	mov	DWORD PTR -48[rbp], 1000
	mov	DWORD PTR -44[rbp], -1000
	movss	xmm0, DWORD PTR .LC12[rip]
	movss	DWORD PTR -40[rbp], xmm0
	movss	xmm0, DWORD PTR .LC13[rip]
	movss	DWORD PTR -36[rbp], xmm0
	mov	DWORD PTR -32[rbp], 0
	jmp	.L12
.L27:
	mov	DWORD PTR -28[rbp], 0
	jmp	.L13
.L26:
	mov	DWORD PTR -24[rbp], 0
	jmp	.L14
.L25:
	lea	r8, -60[rbp]
	lea	rdi, -64[rbp]
	lea	rcx, -68[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	esi, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	r9, r8
	mov	r8, rdi
	mov	edi, eax
	call	RGBToYIQ
	mov	eax, DWORD PTR -64[rbp]
	add	eax, 200
	movsx	rdx, eax
	lea	rcx, 0[0+rdx*4]
	lea	rdx, ivalues.1[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	lea	ecx, 1[rdx]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ivalues.1[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -60[rbp]
	add	eax, 200
	movsx	rdx, eax
	lea	rcx, 0[0+rdx*4]
	lea	rdx, qvalues.0[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	lea	ecx, 1[rdx]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, qvalues.0[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -64[rbp]
	cmp	DWORD PTR -56[rbp], eax
	jle	.L15
	mov	eax, DWORD PTR -64[rbp]
	mov	DWORD PTR -56[rbp], eax
.L15:
	mov	eax, DWORD PTR -64[rbp]
	cmp	DWORD PTR -52[rbp], eax
	jge	.L16
	mov	eax, DWORD PTR -64[rbp]
	mov	DWORD PTR -52[rbp], eax
.L16:
	mov	eax, DWORD PTR -60[rbp]
	cmp	DWORD PTR -48[rbp], eax
	jle	.L17
	mov	eax, DWORD PTR -60[rbp]
	mov	DWORD PTR -48[rbp], eax
.L17:
	mov	eax, DWORD PTR -60[rbp]
	cmp	DWORD PTR -44[rbp], eax
	jge	.L18
	mov	eax, DWORD PTR -60[rbp]
	mov	DWORD PTR -44[rbp], eax
.L18:
	mov	eax, DWORD PTR -60[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC14[rip]
	divsd	xmm0, xmm1
	pxor	xmm2, xmm2
	cvtsd2ss	xmm2, xmm0
	mov	eax, DWORD PTR -64[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC14[rip]
	divsd	xmm0, xmm1
	pxor	xmm4, xmm4
	cvtsd2ss	xmm4, xmm0
	mov	eax, DWORD PTR -68[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC14[rip]
	divsd	xmm0, xmm1
	pxor	xmm5, xmm5
	cvtsd2ss	xmm5, xmm0
	movd	eax, xmm5
	pxor	xmm3, xmm3
	movaps	xmm1, xmm4
	movd	xmm0, eax
	call	NTSCYIQToSignal
	movd	eax, xmm0
	mov	DWORD PTR -12[rbp], eax
	movss	xmm0, DWORD PTR -12[rbp]
	comiss	xmm0, DWORD PTR -36[rbp]
	jbe	.L38
	movss	xmm0, DWORD PTR -12[rbp]
	jmp	.L21
.L38:
	movss	xmm0, DWORD PTR -36[rbp]
.L21:
	movss	DWORD PTR -36[rbp], xmm0
	movss	xmm0, DWORD PTR -40[rbp]
	comiss	xmm0, DWORD PTR -12[rbp]
	jbe	.L39
	movss	xmm0, DWORD PTR -12[rbp]
	jmp	.L24
.L39:
	movss	xmm0, DWORD PTR -40[rbp]
.L24:
	movss	DWORD PTR -40[rbp], xmm0
	add	DWORD PTR -24[rbp], 1
.L14:
	cmp	DWORD PTR -24[rbp], 255
	jle	.L25
	add	DWORD PTR -28[rbp], 1
.L13:
	cmp	DWORD PTR -28[rbp], 255
	jle	.L26
	add	DWORD PTR -32[rbp], 1
.L12:
	cmp	DWORD PTR -32[rbp], 255
	jle	.L27
	mov	esi, DWORD PTR -44[rbp]
	mov	ecx, DWORD PTR -48[rbp]
	mov	edx, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -36[rbp]
	pxor	xmm6, xmm6
	cvtss2sd	xmm6, DWORD PTR -40[rbp]
	movq	rax, xmm6
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC16[rip]
	mov	eax, 2
	call	printf@PLT
	mov	DWORD PTR -20[rbp], 0
	jmp	.L28
.L30:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ivalues.1[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jle	.L29
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ivalues.1[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -20[rbp]
	lea	ecx, -200[rdx]
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
.L29:
	add	DWORD PTR -20[rbp], 1
.L28:
	cmp	DWORD PTR -20[rbp], 399
	jle	.L30
	mov	DWORD PTR -16[rbp], 0
	jmp	.L31
.L33:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, qvalues.0[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jle	.L32
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, qvalues.0[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -16[rbp]
	lea	ecx, -200[rdx]
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
.L32:
	add	DWORD PTR -16[rbp], 1
.L31:
	cmp	DWORD PTR -16[rbp], 399
	jle	.L33
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	main, .-main
	.local	ivalues.1
	.comm	ivalues.1,1600,32
	.local	qvalues.0
	.comm	qvalues.0,1600,32
	.section	.rodata
	.align 4
.LC0:
	.long	1050253722
	.align 4
.LC1:
	.long	1058474557
	.align 4
.LC2:
	.long	1038174126
	.align 4
.LC3:
	.long	-1098236559
	.align 4
.LC4:
	.long	1060991140
	.align 4
.LC5:
	.long	1053944709
	.align 4
.LC6:
	.long	1056293519
	.align 4
.LC8:
	.long	1067198710
	.align 4
.LC9:
	.long	1132396544
	.align 8
.LC10:
	.long	1413754136
	.long	1074340347
	.align 8
.LC11:
	.long	-568791904
	.long	1071803968
	.align 4
.LC12:
	.long	1148846080
	.align 4
.LC13:
	.long	-998637568
	.align 8
.LC14:
	.long	0
	.long	1081073664
	.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	"485089.c"
	.text
	.global	__aeabi_i2f
	.global	__aeabi_fmul
	.global	__aeabi_fadd
	.global	__aeabi_f2iz
	.align	2
	.global	RGBToYIQ
	.syntax unified
	.arm
	.fpu softvfp
	.type	RGBToYIQ, %function
RGBToYIQ:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-16]
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, .L2
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r4, r3
	ldr	r0, [fp, #-20]
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, .L2+4
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r4, r3
	ldr	r0, [fp, #-24]
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, .L2+8
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2iz
	mov	r2, r0
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, .L2+12
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r4, r3
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, .L2+16
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2iz
	mov	r2, r0
	ldr	r3, [fp, #4]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, .L2+20
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r4, r3
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, .L2+24
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2iz
	mov	r2, r0
	ldr	r3, [fp, #8]
	str	r2, [r3]
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L3:
	.align	2
.L2:
	.word	1050253722
	.word	1058474557
	.word	1038174126
	.word	-1098236559
	.word	1060991140
	.word	1053944709
	.word	1056293519
	.size	RGBToYIQ, .-RGBToYIQ
	.global	__aeabi_fcmplt
	.global	__aeabi_fdiv
	.global	__aeabi_f2uiz
	.align	2
	.global	voltageToDACValue
	.syntax unified
	.arm
	.fpu softvfp
	.type	voltageToDACValue, %function
voltageToDACValue:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]	@ float
	mov	r1, #0
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	mov	r3, #0
	b	.L7
.L10:
	ldr	r1, .L11
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	ldr	r1, .L11+4
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2uiz
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #254
	bls	.L8
	mov	r3, #255
	b	.L7
.L8:
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	1067198710
	.word	1132396544
	.size	voltageToDACValue, .-voltageToDACValue
	.global	__aeabi_f2d
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_d2f
	.align	2
	.global	NTSCYIQToSignal
	.syntax unified
	.arm
	.fpu softvfp
	.type	NTSCYIQToSignal, %function
NTSCYIQToSignal:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]	@ float
	str	r1, [fp, #-36]	@ float
	str	r2, [fp, #-40]	@ float
	str	r3, [fp, #-44]	@ float
	ldr	r0, [fp, #-44]	@ float
	bl	__aeabi_f2d
	ldr	r2, .L15
	ldr	r3, .L15+4
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, r0
	mov	r3, r1
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-24]	@ float
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_f2d
	ldr	r2, .L15+8
	ldr	r3, .L15+12
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	mov	r0, r3
	bl	sinf
	str	r0, [fp, #-20]	@ float
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_f2d
	ldr	r2, .L15+8
	ldr	r3, .L15+12
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	mov	r0, r3
	bl	cosf
	str	r0, [fp, #-16]	@ float
	ldr	r1, [fp, #-20]	@ float
	ldr	r0, [fp, #-40]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	ldr	r1, [fp, #-32]	@ float
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r4, r3
	ldr	r1, [fp, #-16]	@ float
	ldr	r0, [fp, #-36]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L16:
	.align	2
.L15:
	.word	1413754136
	.word	1074340347
	.word	-568791904
	.word	1071803968
	.size	NTSCYIQToSignal, .-NTSCYIQToSignal
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_fcmpgt
	.section	.rodata
	.align	2
.LC0:
	.ascii	"i = [%d, %d], q = [%d, %d]\012\000"
	.align	2
.LC1:
	.ascii	"signalMin = %f, signalMax = %f\012\000"
	.align	2
.LC2:
	.ascii	"i = %d, count %d\012\000"
	.align	2
.LC3:
	.ascii	"q = %d, count %d\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #80
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	ldr	r3, .L46
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #1000
	str	r3, [fp, #-64]
	ldr	r3, .L46+4
	str	r3, [fp, #-60]
	mov	r3, #1000
	str	r3, [fp, #-56]
	ldr	r3, .L46+4
	str	r3, [fp, #-52]
	ldr	r3, .L46+8
	str	r3, [fp, #-48]	@ float
	ldr	r3, .L46+12
	str	r3, [fp, #-44]	@ float
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L18
.L33:
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L19
.L32:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L20
.L31:
	sub	r2, fp, #76
	sub	r3, fp, #68
	str	r3, [sp, #4]
	sub	r3, fp, #72
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	RGBToYIQ
	ldr	r3, [fp, #-72]
	add	r3, r3, #200
	ldr	r2, .L46+16
	ldr	r2, [r2, r3, lsl #2]
	add	r2, r2, #1
	ldr	r1, .L46+16
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-68]
	add	r3, r3, #200
	ldr	r2, .L46+20
	ldr	r2, [r2, r3, lsl #2]
	add	r2, r2, #1
	ldr	r1, .L46+20
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	ble	.L21
	ldr	r3, [fp, #-72]
	str	r3, [fp, #-64]
.L21:
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-60]
	cmp	r2, r3
	bge	.L22
	ldr	r3, [fp, #-72]
	str	r3, [fp, #-60]
.L22:
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	ble	.L23
	ldr	r3, [fp, #-68]
	str	r3, [fp, #-56]
.L23:
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	bge	.L24
	ldr	r3, [fp, #-68]
	str	r3, [fp, #-52]
.L24:
	ldr	r3, [fp, #-76]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L46+24
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r4, r0
	ldr	r3, [fp, #-72]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L46+24
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r5, r0
	ldr	r3, [fp, #-68]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L46+24
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r2, r0
	mov	r3, #0
	mov	r1, r5
	mov	r0, r4
	bl	NTSCYIQToSignal
	str	r0, [fp, #-20]	@ float
	ldr	r1, [fp, #-44]	@ float
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L44
	ldr	r3, [fp, #-20]	@ float
	b	.L27
.L44:
	ldr	r3, [fp, #-44]	@ float
.L27:
	str	r3, [fp, #-44]	@ float
	ldr	r1, [fp, #-48]	@ float
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L45
	ldr	r3, [fp, #-20]	@ float
	b	.L30
.L45:
	ldr	r3, [fp, #-48]	@ float
.L30:
	str	r3, [fp, #-48]	@ float
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L20:
	ldr	r3, [fp, #-32]
	cmp	r3, #255
	ble	.L31
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L19:
	ldr	r3, [fp, #-36]
	cmp	r3, #255
	ble	.L32
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L18:
	ldr	r3, [fp, #-40]
	cmp	r3, #255
	ble	.L33
	ldr	r3, [fp, #-52]
	str	r3, [sp]
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-60]
	ldr	r1, [fp, #-64]
	ldr	r0, .L46+28
	bl	printf
	ldr	r0, [fp, #-48]	@ float
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-44]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L46+32
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L34
.L36:
	ldr	r2, .L46+16
	ldr	r3, [fp, #-28]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	ble	.L35
	ldr	r3, [fp, #-28]
	sub	r1, r3, #200
	ldr	r2, .L46+16
	ldr	r3, [fp, #-28]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	ldr	r0, .L46+36
	bl	printf
.L35:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L34:
	ldr	r3, [fp, #-28]
	cmp	r3, #400
	blt	.L36
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L37
.L39:
	ldr	r2, .L46+20
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	ble	.L38
	ldr	r3, [fp, #-24]
	sub	r1, r3, #200
	ldr	r2, .L46+20
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	ldr	r0, .L46+40
	bl	printf
.L38:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L37:
	ldr	r3, [fp, #-24]
	cmp	r3, #400
	blt	.L39
	mov	r3, #0
	ldr	r2, .L46
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L41
	bl	__stack_chk_fail
.L41:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC4
	.word	-1000
	.word	1148846080
	.word	-998637568
	.word	ivalues.5693
	.word	qvalues.5694
	.word	1081073664
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.local	ivalues.5693
	.comm	ivalues.5693,1600,4
	.local	qvalues.5694
	.comm	qvalues.5694,1600,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
