	.file	"148303.c"
	.intel_syntax noprefix
	.text
	.globl	start_timer
	.type	start_timer, @function
start_timer:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 8
	mov	rsi, rax
	mov	edi, 3
	call	clock_gettime@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	start_timer, .-start_timer
	.globl	stop_timer
	.type	stop_timer, @function
stop_timer:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 3
	call	clock_gettime@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, rdx
	sub	rax, rcx
	imul	rcx, rax, 1000000000
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 16[rax]
	sub	rdx, rax
	add	rdx, rcx
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	stop_timer, .-stop_timer
	.section	.rodata
.LC0:
	.string	"rb"
	.text
	.globl	read_file
	.type	read_file, @function
read_file:
.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, 224
	mov	QWORD PTR -200[rbp], rdi
	mov	QWORD PTR -208[rbp], rsi
	mov	QWORD PTR -216[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	DWORD PTR -184[rbp], 1
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 0
	js	.L15
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -176[rbp], rax
	cmp	QWORD PTR -176[rbp], 0
	je	.L16
	mov	rax, QWORD PTR -200[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], 0
	je	.L17
	mov	rax, QWORD PTR -112[rbp]
	mov	rsi, rax
	mov	rdx, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR -176[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 1
	jne	.L18
	mov	rax, QWORD PTR -208[rbp]
	mov	rdx, QWORD PTR -176[rbp]
	mov	QWORD PTR [rax], rdx
	cmp	QWORD PTR -216[rbp], 0
	je	.L10
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -216[rbp]
	mov	QWORD PTR [rax], rdx
.L10:
	mov	DWORD PTR -184[rbp], 0
	jmp	.L6
.L15:
	nop
	jmp	.L6
.L16:
	nop
	jmp	.L6
.L17:
	nop
	jmp	.L6
.L18:
	nop
.L6:
	cmp	DWORD PTR -184[rbp], 0
	je	.L11
	cmp	QWORD PTR -176[rbp], 0
	je	.L11
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	free@PLT
.L11:
	cmp	QWORD PTR -168[rbp], 0
	je	.L12
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L12:
	mov	eax, DWORD PTR -184[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	read_file, .-read_file
	.section	.rodata
.LC1:
	.string	"data/test.Y"
.LC2:
	.string	"data/test.U"
.LC3:
	.string	"data/test.V"
.LC5:
	.string	"%10.2f msec\n"
.LC6:
	.string	"wb"
.LC7:
	.string	"test4.ppm"
.LC8:
	.string	"P6\n#test\n%d %d\n255\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.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
	lea	rax, -72[rbp]
	mov	edx, 0
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	call	read_file
	lea	rax, -64[rbp]
	mov	edx, 0
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	call	read_file
	lea	rax, -56[rbp]
	mov	edx, 0
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	call	read_file
	mov	edi, 76800
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	start_timer
	mov	DWORD PTR -76[rbp], 0
	jmp	.L20
.L21:
	mov	rdx, QWORD PTR -56[rbp]
	mov	rsi, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	r9, rcx
	mov	r8d, 160
	mov	ecx, 160
	mov	rdi, rax
	call	i420_to_rgb_270f@PLT
	add	DWORD PTR -76[rbp], 1
.L20:
	cmp	DWORD PTR -76[rbp], 199
	jle	.L21
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	stop_timer
	mov	rax, QWORD PTR -32[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR .LC4[rip]
	divsd	xmm0, xmm1
	movq	rdx, xmm0
	mov	rax, QWORD PTR stderr[rip]
	movq	xmm0, rdx
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	lea	rsi, .LC6[rip]
	lea	rdi, .LC7[rip]
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	ecx, 160
	mov	edx, 160
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 76800
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC4:
	.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	"148303.c"
	.text
	.align	2
	.global	start_timer
	.syntax unified
	.arm
	.fpu softvfp
	.type	start_timer, %function
start_timer:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #8
	mov	r1, r3
	mov	r0, #3
	bl	clock_gettime
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	start_timer, .-start_timer
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	stop_timer
	.syntax unified
	.arm
	.fpu softvfp
	.type	stop_timer, %function
stop_timer:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-32]
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r1, r3
	mov	r0, #3
	bl	clock_gettime
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	sub	r3, r2, r3
	mov	r0, r3
	asr	r1, r0, #31
	ldr	r3, .L4+4
	mul	r2, r3, r1
	mov	r3, #0
	mul	r3, r0, r3
	add	ip, r2, r3
	ldr	lr, .L4+4
	umull	r2, r3, r0, lr
	add	r1, ip, r3
	mov	r3, r1
	ldr	r0, [fp, #-20]
	ldr	r1, [fp, #-32]
	ldr	r1, [r1, #12]
	sub	r1, r0, r1
	mov	r0, r1
	asr	r1, r0, #31
	adds	r4, r2, r0
	adc	r5, r3, r1
	ldr	r3, [fp, #-32]
	stm	r3, {r4-r5}
	nop
	ldr	r3, .L4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	1000000000
	.size	stop_timer, .-stop_timer
	.section	.rodata
	.align	2
.LC1:
	.ascii	"rb\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_file, %function
read_file:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	str	r2, [fp, #-128]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-112]
	mov	r3, #0
	str	r3, [fp, #-108]
	mov	r3, #1
	str	r3, [fp, #-116]
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-120]
	bl	stat
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	blt	.L17
	ldr	r3, [fp, #-56]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L18
	ldr	r1, .L21+4
	ldr	r0, [fp, #-120]
	bl	fopen
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-56]
	mov	r1, r3
	ldr	r3, [fp, #-108]
	mov	r2, #1
	ldr	r0, [fp, #-112]
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #1
	bne	.L20
	ldr	r3, [fp, #-124]
	ldr	r2, [fp, #-112]
	str	r2, [r3]
	ldr	r3, [fp, #-128]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-56]
	mov	r2, r3
	ldr	r3, [fp, #-128]
	str	r2, [r3]
.L12:
	mov	r3, #0
	str	r3, [fp, #-116]
	b	.L8
.L17:
	nop
	b	.L8
.L18:
	nop
	b	.L8
.L19:
	nop
	b	.L8
.L20:
	nop
.L8:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L13
	ldr	r0, [fp, #-112]
	bl	free
.L13:
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	beq	.L14
	ldr	r0, [fp, #-108]
	bl	fclose
.L14:
	ldr	r3, [fp, #-116]
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC2
	.word	.LC1
	.size	read_file, .-read_file
	.section	.rodata
	.align	2
.LC3:
	.ascii	"data/test.Y\000"
	.align	2
.LC4:
	.ascii	"data/test.U\000"
	.align	2
.LC5:
	.ascii	"data/test.V\000"
	.global	__aeabi_l2d
	.global	__aeabi_ddiv
	.align	2
.LC6:
	.ascii	"%10.2f msec\012\000"
	.align	2
.LC7:
	.ascii	"wb\000"
	.align	2
.LC8:
	.ascii	"test4.ppm\000"
	.align	2
.LC9:
	.ascii	"P6\012#test\012%d %d\012255\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.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	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #60
	mov	r2, #0
	mov	r1, r3
	ldr	r0, .L28+4
	bl	read_file
	sub	r3, fp, #56
	mov	r2, #0
	mov	r1, r3
	ldr	r0, .L28+8
	bl	read_file
	sub	r3, fp, #52
	mov	r2, #0
	mov	r1, r3
	ldr	r0, .L28+12
	bl	read_file
	mov	r0, #76800
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-44]
	sub	r3, fp, #36
	mov	r0, r3
	bl	start_timer
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L24
.L25:
	ldr	r0, [fp, #-60]
	ldr	r1, [fp, #-56]
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-44]
	str	r3, [sp, #4]
	mov	r3, #160
	str	r3, [sp]
	mov	r3, #160
	bl	i420_to_rgb_270f
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L24:
	ldr	r3, [fp, #-48]
	cmp	r3, #199
	ble	.L25
	sub	r3, fp, #36
	mov	r0, r3
	bl	stop_timer
	ldr	r3, .L28+16
	ldr	r4, [r3]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_l2d
	mov	r2, #0
	ldr	r3, .L28+20
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L28+24
	mov	r0, r4
	bl	fprintf
	ldr	r1, .L28+28
	ldr	r0, .L28+32
	bl	fopen
	str	r0, [fp, #-40]
	mov	r3, #160
	mov	r2, #160
	ldr	r1, .L28+36
	ldr	r0, [fp, #-40]
	bl	fprintf
	ldr	r3, [fp, #-40]
	mov	r2, #1
	mov	r1, #76800
	ldr	r0, [fp, #-44]
	bl	fwrite
	ldr	r0, [fp, #-40]
	bl	fclose
	ldr	r0, [fp, #-44]
	bl	free
	ldr	r3, [fp, #-60]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-56]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-52]
	mov	r0, r3
	bl	free
	mov	r3, #0
	ldr	r2, .L28
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC10
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	stderr
	.word	1093567616
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
