	.file	"917218.c"
	.intel_syntax noprefix
	.text
	.globl	ColorSpaceConvert
	.type	ColorSpaceConvert, @function
ColorSpaceConvert:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	ecx, esi
	mov	eax, edx
	mov	edx, edi
	mov	BYTE PTR -4[rbp], dl
	mov	edx, ecx
	mov	BYTE PTR -8[rbp], dl
	mov	BYTE PTR -12[rbp], al
	movzx	eax, BYTE PTR -4[rbp]
	imul	ecx, eax, 66
	movzx	eax, BYTE PTR -8[rbp]
	mov	edx, eax
	sal	edx, 7
	add	eax, edx
	add	ecx, eax
	movzx	edx, BYTE PTR -12[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	lea	edx, 0[0+rax*4]
	add	eax, edx
	add	eax, ecx
	sub	eax, -128
	sar	eax, 8
	add	eax, 16
	mov	BYTE PTR YUV.0[rip], al
	movzx	eax, BYTE PTR -4[rbp]
	imul	edx, eax, -38
	movzx	eax, BYTE PTR -8[rbp]
	imul	eax, eax, -74
	add	edx, eax
	movzx	eax, BYTE PTR -12[rbp]
	imul	eax, eax, 112
	add	eax, edx
	sub	eax, -128
	sar	eax, 8
	add	eax, -128
	mov	BYTE PTR YUV.0[rip+1], al
	movzx	eax, BYTE PTR -4[rbp]
	imul	edx, eax, 112
	movzx	eax, BYTE PTR -8[rbp]
	imul	eax, eax, -94
	add	edx, eax
	movzx	eax, BYTE PTR -12[rbp]
	imul	eax, eax, -18
	add	eax, edx
	sub	eax, -128
	sar	eax, 8
	add	eax, -128
	mov	BYTE PTR YUV.0[rip+2], al
	lea	rax, YUV.0[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	ColorSpaceConvert, .-ColorSpaceConvert
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"Error en apertura de archivo\n"
.LC2:
	.string	"w"
	.align 8
.LC3:
	.string	"Error en crear archivo de salida\n"
	.text
	.globl	rgb2yub
	.type	rgb2yub, @function
rgb2yub:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 296
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -184[rbp], rdi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -172[rbp], 0
	mov	rax, QWORD PTR -184[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -144[rbp], rax
	cmp	QWORD PTR -144[rbp], 0
	jne	.L5
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	add	DWORD PTR -172[rbp], 1
.L5:
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -173[rbp], al
	cmp	BYTE PTR -173[rbp], -1
	jne	.L6
	mov	edx, DWORD PTR -172[rbp]
	mov	rax, rsp
	mov	QWORD PTR -232[rbp], rax
	movsx	rax, edx
	sub	rax, 1
	mov	QWORD PTR -152[rbp], rax
	movsx	rax, edx
	mov	r12, rax
	mov	r13d, 0
	movsx	rax, edx
	mov	r14, rax
	mov	r15d, 0
	movsx	rdx, edx
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rdx, rax, 16
	mov	rax, rdx
	and	rax, -4096
	mov	rcx, rsp
	sub	rcx, rax
.L7:
	cmp	rsp, rcx
	je	.L8
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L7
.L8:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	mov	rax, rdx
	and	eax, 4095
	test	rax, rax
	je	.L9
	mov	rax, rdx
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L9:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -160[rbp], rax
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	DWORD PTR -172[rbp], 0
	jmp	.L10
.L11:
	movzx	ecx, BYTE PTR -173[rbp]
	mov	rdx, QWORD PTR -160[rbp]
	mov	eax, DWORD PTR -172[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], cl
	add	DWORD PTR -172[rbp], 1
.L10:
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -173[rbp], al
	cmp	BYTE PTR -173[rbp], -1
	jne	.L11
	mov	eax, DWORD PTR -172[rbp]
	lea	edx, [rax+rax]
	mov	rax, rsp
	mov	rbx, rax
	movsx	rax, edx
	sub	rax, 1
	mov	QWORD PTR -136[rbp], rax
	movsx	rax, edx
	mov	QWORD PTR -208[rbp], rax
	mov	QWORD PTR -200[rbp], 0
	movsx	rax, edx
	mov	QWORD PTR -224[rbp], rax
	mov	QWORD PTR -216[rbp], 0
	movsx	rdx, edx
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rdx, rax, 16
	mov	rax, rdx
	and	rax, -4096
	mov	rcx, rsp
	sub	rcx, rax
.L12:
	cmp	rsp, rcx
	je	.L13
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L12
.L13:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	mov	rax, rdx
	and	eax, 4095
	test	rax, rax
	je	.L14
	mov	rax, rdx
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L14:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -128[rbp], rax
	mov	edx, DWORD PTR -172[rbp]
	movsx	rax, edx
	imul	rax, rax, 1431655766
	shr	rax, 32
	mov	ecx, edx
	sar	ecx, 31
	mov	edx, eax
	sub	edx, ecx
	movsx	rax, edx
	sub	rax, 1
	mov	QWORD PTR -120[rbp], rax
	movsx	rax, edx
	mov	QWORD PTR -256[rbp], rax
	mov	QWORD PTR -248[rbp], 0
	movsx	rax, edx
	mov	QWORD PTR -272[rbp], rax
	mov	QWORD PTR -264[rbp], 0
	movsx	rax, edx
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L15:
	cmp	rsp, rdx
	je	.L16
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L15
.L16:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L17
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L17:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -112[rbp], rax
	mov	eax, DWORD PTR -172[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1431655766
	shr	rdx, 32
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -104[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -288[rbp], rdx
	mov	QWORD PTR -280[rbp], 0
	movsx	rdx, eax
	mov	QWORD PTR -304[rbp], rdx
	mov	QWORD PTR -296[rbp], 0
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L18:
	cmp	rsp, rdx
	je	.L19
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L18
.L19:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L20
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L20:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -96[rbp], rax
	mov	eax, DWORD PTR -172[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1431655766
	shr	rdx, 32
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -88[rbp], rdx
	movsx	rdx, eax
	mov	QWORD PTR -320[rbp], rdx
	mov	QWORD PTR -312[rbp], 0
	movsx	rdx, eax
	mov	QWORD PTR -336[rbp], rdx
	mov	QWORD PTR -328[rbp], 0
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L21:
	cmp	rsp, rdx
	je	.L22
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L21
.L22:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L23
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L23:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -80[rbp], rax
	mov	DWORD PTR -164[rbp], 0
	mov	DWORD PTR -168[rbp], 0
	jmp	.L24
.L25:
	mov	eax, DWORD PTR -168[rbp]
	add	eax, 2
	mov	rdx, QWORD PTR -160[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	edx, al
	mov	eax, DWORD PTR -168[rbp]
	add	eax, 1
	mov	rcx, QWORD PTR -160[rbp]
	cdqe
	movzx	eax, BYTE PTR [rcx+rax]
	movzx	ecx, al
	mov	rsi, QWORD PTR -160[rbp]
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	movzx	eax, BYTE PTR [rsi+rax]
	movzx	eax, al
	mov	esi, ecx
	mov	edi, eax
	call	ColorSpaceConvert
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	movzx	ecx, BYTE PTR [rax]
	mov	rdx, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], cl
	mov	rax, QWORD PTR -64[rbp]
	movzx	ecx, BYTE PTR 1[rax]
	mov	rdx, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], cl
	mov	rax, QWORD PTR -64[rbp]
	movzx	ecx, BYTE PTR 2[rax]
	mov	rdx, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], cl
	add	DWORD PTR -164[rbp], 1
	add	DWORD PTR -168[rbp], 3
.L24:
	mov	eax, DWORD PTR -172[rbp]
	sub	eax, 2
	cmp	DWORD PTR -168[rbp], eax
	jl	.L25
	mov	eax, DWORD PTR -172[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1431655766
	shr	rdx, 32
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	movsx	rdx, eax
	mov	rcx, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -128[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR -172[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1431655766
	shr	rdx, 32
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	movsx	rdx, eax
	mov	eax, DWORD PTR -172[rbp]
	movsx	rcx, eax
	imul	rcx, rcx, 1431655766
	shr	rcx, 32
	sar	eax, 31
	mov	esi, eax
	mov	eax, ecx
	sub	eax, esi
	movsx	rcx, eax
	mov	rax, QWORD PTR -128[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -96[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	eax, DWORD PTR -172[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1431655766
	shr	rdx, 32
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	movsx	rdx, eax
	mov	eax, DWORD PTR -172[rbp]
	add	eax, eax
	movsx	rcx, eax
	imul	rcx, rcx, 1431655766
	shr	rcx, 32
	sar	eax, 31
	mov	esi, eax
	mov	eax, ecx
	sub	eax, esi
	movsx	rcx, eax
	mov	rax, QWORD PTR -128[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rax, QWORD PTR -192[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	jne	.L26
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L26:
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	rsp, rbx
	mov	rsp, QWORD PTR -232[rbp]
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	rgb2yub, .-rgb2yub
	.section	.rodata
.LC4:
	.string	"initial_input"
.LC5:
	.string	"initial_output"
	.align 8
.LC6:
	.string	"Option -%c requires argument for output file \n"
	.align 8
.LC7:
	.string	"Option -%c requires argument for input file \n"
.LC8:
	.string	"unknown option `-%c \n"
.LC9:
	.string	"unknown character `\\x%x'.\n"
.LC10:
	.string	"unknown case "
.LC11:
	.string	"ahi:o:"
	.align 8
.LC12:
	.string	" Usage:\n ./rgb2yub -i <RGB file name> -o <YUV file name>"
	.align 8
.LC13:
	.string	" Authors:\n Jose Pablo Vernava \n Albert Hernandez \n Natalia Rodriguez \n Anthony Vega"
	.align 8
.LC15:
	.string	"\n\nrgb2yub execution time is: %f Seconds\n\n"
.LC16:
	.string	"Missing Paramenter "
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	lea	rax, .LC4[rip]
	mov	QWORD PTR -40[rbp], rax
	lea	rax, .LC5[rip]
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -60[rbp], 0
	mov	DWORD PTR -56[rbp], 0
	mov	DWORD PTR -52[rbp], 0
	mov	DWORD PTR -48[rbp], 0
	jmp	.L29
.L41:
	cmp	DWORD PTR -44[rbp], 111
	je	.L30
	cmp	DWORD PTR -44[rbp], 111
	jg	.L31
	cmp	DWORD PTR -44[rbp], 105
	je	.L32
	cmp	DWORD PTR -44[rbp], 105
	jg	.L31
	cmp	DWORD PTR -44[rbp], 104
	je	.L33
	cmp	DWORD PTR -44[rbp], 104
	jg	.L31
	cmp	DWORD PTR -44[rbp], 63
	je	.L34
	cmp	DWORD PTR -44[rbp], 97
	je	.L35
	jmp	.L31
.L32:
	mov	DWORD PTR -60[rbp], 1
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L29
.L30:
	mov	DWORD PTR -56[rbp], 1
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L29
.L35:
	mov	DWORD PTR -52[rbp], 1
	jmp	.L29
.L33:
	mov	DWORD PTR -48[rbp], 1
	jmp	.L29
.L34:
	mov	eax, DWORD PTR optopt[rip]
	cmp	eax, 111
	jne	.L36
	mov	edx, DWORD PTR optopt[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -56[rbp], 0
	jmp	.L37
.L36:
	mov	eax, DWORD PTR optopt[rip]
	cmp	eax, 105
	jne	.L38
	mov	edx, DWORD PTR optopt[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -60[rbp], 0
	jmp	.L37
.L38:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR optopt[rip]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 16384
	test	eax, eax
	je	.L39
	mov	edx, DWORD PTR optopt[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L37
.L39:
	mov	edx, DWORD PTR optopt[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L37:
	mov	eax, 1
	jmp	.L40
.L31:
	lea	rdi, .LC10[rip]
	call	puts@PLT
	nop
.L29:
	mov	rcx, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR -68[rbp]
	lea	rdx, .LC11[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], -1
	jne	.L41
	cmp	DWORD PTR -48[rbp], 0
	je	.L42
	lea	rdi, .LC12[rip]
	call	puts@PLT
	jmp	.L43
.L42:
	cmp	DWORD PTR -52[rbp], 0
	je	.L44
	lea	rdi, .LC13[rip]
	call	puts@PLT
	jmp	.L43
.L44:
	mov	eax, DWORD PTR -60[rbp]
	imul	eax, DWORD PTR -56[rbp]
	test	eax, eax
	je	.L45
	call	clock@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rgb2yub
	call	clock@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, QWORD PTR -24[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR .LC14[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rax
	lea	rdi, .LC15[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L43
.L45:
	lea	rdi, .LC16[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
.L43:
	mov	eax, 0
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.local	YUV.0
	.comm	YUV.0,3,1
	.section	.rodata
	.align 8
.LC14:
	.long	0
	.long	1093567616
	.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	"917218.c"
	.text
	.align	2
	.global	ColorSpaceConvert
	.syntax unified
	.arm
	.fpu softvfp
	.type	ColorSpaceConvert, %function
ColorSpaceConvert:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	strb	r3, [fp, #-5]
	mov	r3, r1
	strb	r3, [fp, #-6]
	mov	r3, r2
	strb	r3, [fp, #-7]
	ldrb	r2, [fp, #-5]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r1, r3
	ldrb	r2, [fp, #-6]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	add	r1, r1, r3
	ldrb	r2, [fp, #-7]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	add	r3, r1, r3
	add	r3, r3, #128
	asr	r3, r3, #8
	and	r3, r3, #255
	add	r3, r3, #16
	and	r2, r3, #255
	ldr	r3, .L3
	strb	r2, [r3]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mvn	r2, #37
	mul	r2, r3, r2
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	mvn	r1, #73
	mul	r3, r1, r3
	add	r1, r2, r3
	ldrb	r2, [fp, #-7]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r3, r3, #128
	asr	r3, r3, #8
	and	r3, r3, #255
	sub	r3, r3, #128
	and	r2, r3, #255
	ldr	r3, .L3
	strb	r2, [r3, #1]
	ldrb	r2, [fp, #-5]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	mov	r1, r3
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	mvn	r2, #93
	mul	r3, r2, r3
	add	r1, r1, r3
	ldrb	r2, [fp, #-7]	@ zero_extendqisi2
	mov	r3, r2
	lsl	r3, r3, #28
	sub	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r1, r3
	add	r3, r3, #128
	asr	r3, r3, #8
	and	r3, r3, #255
	sub	r3, r3, #128
	and	r2, r3, #255
	ldr	r3, .L3
	strb	r2, [r3, #2]
	ldr	r3, .L3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L4:
	.align	2
.L3:
	.word	YUV.6118
	.size	ColorSpaceConvert, .-ColorSpaceConvert
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"Error en apertura de archivo\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	rgb2yub
	.syntax unified
	.arm
	.fpu softvfp
	.type	rgb2yub, %function
rgb2yub:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r1, .L11+4
	ldr	r0, [fp, #-24]
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L11+8
	bl	puts
	mov	r0, #1
	bl	exit
.L10:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L7:
	ldr	r0, [fp, #-12]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-17]
	b	.L10
.L12:
	.align	2
.L11:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	rgb2yub, .-rgb2yub
	.section	.rodata
	.align	2
.LC3:
	.ascii	"initial_input\000"
	.align	2
.LC4:
	.ascii	"initial_output\000"
	.align	2
.LC5:
	.ascii	"Option -%c requires argument for output file \012\000"
	.align	2
.LC6:
	.ascii	"Option -%c requires argument for input file \012\000"
	.align	2
.LC7:
	.ascii	"unknown option `-%c \012\000"
	.align	2
.LC8:
	.ascii	"unknown character `\\x%x'.\012\000"
	.align	2
.LC9:
	.ascii	"unknown case \000"
	.align	2
.LC10:
	.ascii	"ahi:o:\000"
	.align	2
.LC11:
	.ascii	" Usage:\012 ./rgb2yub -i <RGB file name> -o <YUV fi"
	.ascii	"le name>\000"
	.align	2
.LC12:
	.ascii	" Authors:\012 Jose Pablo Vernava \012 Albert Hernan"
	.ascii	"dez \012 Natalia Rodriguez \012 Anthony Vega\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
.LC13:
	.ascii	"\012\012rgb2yub execution time is: %f Seconds\012\012"
	.ascii	"\000"
	.align	2
.LC14:
	.ascii	"Missing Paramenter \000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L32
	str	r3, [fp, #-48]
	ldr	r3, .L32+4
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L14
.L27:
	ldr	r3, [fp, #-24]
	cmp	r3, #63
	beq	.L15
	ldr	r3, [fp, #-24]
	cmp	r3, #63
	blt	.L16
	ldr	r3, [fp, #-24]
	cmp	r3, #111
	bgt	.L16
	ldr	r3, [fp, #-24]
	cmp	r3, #97
	blt	.L16
	ldr	r3, [fp, #-24]
	sub	r3, r3, #97
	cmp	r3, #14
	ldrls	pc, [pc, r3, asl #2]
	b	.L16
.L18:
	.word	.L21
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L20
	.word	.L19
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L17
.L19:
	mov	r3, #1
	str	r3, [fp, #-40]
	ldr	r3, .L32+8
	ldr	r3, [r3]
	str	r3, [fp, #-48]
	b	.L14
.L17:
	mov	r3, #1
	str	r3, [fp, #-36]
	ldr	r3, .L32+8
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	b	.L14
.L21:
	mov	r3, #1
	str	r3, [fp, #-32]
	b	.L14
.L20:
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L14
.L15:
	ldr	r3, .L32+12
	ldr	r3, [r3]
	cmp	r3, #111
	bne	.L22
	ldr	r3, .L32+16
	ldr	r3, [r3]
	ldr	r2, .L32+12
	ldr	r2, [r2]
	ldr	r1, .L32+20
	mov	r0, r3
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L23
.L22:
	ldr	r3, .L32+12
	ldr	r3, [r3]
	cmp	r3, #105
	bne	.L24
	ldr	r3, .L32+16
	ldr	r3, [r3]
	ldr	r2, .L32+12
	ldr	r2, [r2]
	ldr	r1, .L32+24
	mov	r0, r3
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L23
.L24:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, .L32+12
	ldr	r3, [r3]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #16384
	cmp	r3, #0
	beq	.L25
	ldr	r3, .L32+16
	ldr	r3, [r3]
	ldr	r2, .L32+12
	ldr	r2, [r2]
	ldr	r1, .L32+28
	mov	r0, r3
	bl	fprintf
	b	.L23
.L25:
	ldr	r3, .L32+16
	ldr	r3, [r3]
	ldr	r2, .L32+12
	ldr	r2, [r2]
	ldr	r1, .L32+32
	mov	r0, r3
	bl	fprintf
.L23:
	mov	r3, #1
	b	.L26
.L16:
	ldr	r0, .L32+36
	bl	puts
	nop
.L14:
	ldr	r2, .L32+40
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-56]
	bl	getopt
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L27
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L28
	ldr	r0, .L32+44
	bl	puts
	b	.L29
.L28:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L30
	ldr	r0, .L32+48
	bl	puts
	b	.L29
.L30:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-36]
	mul	r3, r2, r3
	cmp	r3, #0
	beq	.L31
	bl	clock
	str	r0, [fp, #-20]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-48]
	bl	rgb2yub
	bl	clock
	str	r0, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L32+52
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	ldr	r0, .L32+56
	bl	printf
	b	.L29
.L31:
	ldr	r0, .L32+60
	bl	puts
	ldr	r0, .L32+44
	bl	puts
.L29:
	mov	r3, #0
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC3
	.word	.LC4
	.word	optarg
	.word	optopt
	.word	stderr
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	1093567616
	.word	.LC13
	.word	.LC14
	.size	main, .-main
	.local	YUV.6118
	.comm	YUV.6118,3,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
