	.file	"240450.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Input parameters: "
.LC1:
	.string	"%s  "
	.align 8
.LC2:
	.string	"\nUsage:YUV420toYUV444.exe inputfile outputfile width height\n"
.LC3:
	.string	"rb"
.LC4:
	.string	"ERROR: open %s fail\n"
.LC5:
	.string	"wb"
.LC6:
	.string	"malloc y1 fail"
.LC7:
	.string	"malloc y2 fail"
.LC8:
	.string	"%dth frame ok!!\n"
	.align 8
.LC9:
	.string	"[CSConvertKit] YUV420toYUV444 successfully!!,total frames: %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	DWORD PTR -80[rbp], 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -88[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -88[rbp], 1
.L2:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -100[rbp]
	jl	.L3
	cmp	DWORD PTR -100[rbp], 4
	jg	.L4
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	jne	.L6
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L5
.L6:
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L7
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L5
.L7:
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -76[rbp], eax
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	imul	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR -68[rbp], eax
	mov	edx, DWORD PTR -68[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	jne	.L8
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L5
.L8:
	mov	eax, DWORD PTR -76[rbp]
	imul	eax, DWORD PTR -72[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	QWORD PTR -40[rbp], rax
	mov	eax, DWORD PTR -76[rbp]
	imul	eax, DWORD PTR -72[rbp]
	lea	edx, 3[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 2
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR -32[rbp], rax
	mov	edx, DWORD PTR -68[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L9
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L5
.L9:
	mov	eax, DWORD PTR -76[rbp]
	imul	eax, DWORD PTR -72[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -76[rbp]
	imul	eax, DWORD PTR -72[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	jmp	.L10
.L15:
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	DWORD PTR -84[rbp], 0
	jmp	.L11
.L14:
	mov	DWORD PTR -88[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -84[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	imul	eax, DWORD PTR -76[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	ecx, eax
	mov	eax, DWORD PTR -88[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	add	eax, ecx
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -84[rbp]
	imul	eax, DWORD PTR -76[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -88[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR [rcx]
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -84[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	imul	eax, DWORD PTR -76[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	ecx, eax
	mov	eax, DWORD PTR -88[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	add	eax, ecx
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -84[rbp]
	imul	eax, DWORD PTR -76[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -88[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR [rcx]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -88[rbp], 1
.L12:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	jl	.L13
	add	DWORD PTR -84[rbp], 1
.L11:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -72[rbp]
	jl	.L14
	mov	edx, DWORD PTR -68[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	movsx	rdx, eax
	mov	rcx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR -80[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -80[rbp], 1
.L10:
	mov	edx, DWORD PTR -68[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	movsx	rdx, eax
	mov	rcx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rdx, rax
	mov	ecx, DWORD PTR -68[rbp]
	mov	eax, ecx
	add	eax, eax
	add	eax, ecx
	mov	ecx, eax
	shr	ecx, 31
	add	eax, ecx
	sar	eax
	cdqe
	cmp	rdx, rax
	je	.L15
	mov	eax, DWORD PTR -80[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -48[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.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	"240450.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Input parameters: \000"
	.align	2
.LC1:
	.ascii	"%s  \000"
	.align	2
.LC2:
	.ascii	"\012Usage:YUV420toYUV444.exe inputfile outputfile w"
	.ascii	"idth height\012\000"
	.align	2
.LC3:
	.ascii	"rb\000"
	.align	2
.LC4:
	.ascii	"ERROR: open %s fail\012\000"
	.align	2
.LC5:
	.ascii	"wb\000"
	.align	2
.LC6:
	.ascii	"malloc y1 fail\000"
	.align	2
.LC7:
	.ascii	"malloc y2 fail\000"
	.align	2
.LC8:
	.ascii	"%dth frame ok!!\012\000"
	.align	2
.LC9:
	.ascii	"[CSConvertKit] YUV420toYUV444 successfully!!,total "
	.ascii	"frames: %d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-52]
	ldr	r0, .L16
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L2
.L3:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L16+4
	bl	printf
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L2:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	blt	.L3
	ldr	r3, [fp, #-64]
	cmp	r3, #4
	bgt	.L4
	ldr	r0, .L16+8
	bl	puts
	mvn	r3, #0
	b	.L5
.L4:
	ldr	r3, [fp, #-68]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L16+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-68]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L16+16
	bl	printf
	mvn	r3, #0
	b	.L5
.L6:
	ldr	r3, [fp, #-68]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L16+20
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-68]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L16+16
	bl	printf
	mvn	r3, #0
	b	.L5
.L7:
	ldr	r3, [fp, #-68]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-68]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-36]
	mul	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L16+24
	bl	puts
	mvn	r3, #0
	b	.L5
.L8:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-36]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, r2
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-36]
	mul	r3, r2, r3
	add	r2, r3, #3
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L9
	ldr	r0, .L16+28
	bl	puts
	mvn	r3, #0
	b	.L5
.L9:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-36]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-36]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	b	.L10
.L15:
	ldr	r3, [fp, #-32]
	mov	r2, r3
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-16]
	bl	memcpy
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L11
.L14:
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L12
.L13:
	ldr	r3, [fp, #-56]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-40]
	mul	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r1, r3
	ldr	r3, [fp, #-60]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	add	r3, r1, r3
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r2, r3, r2
	ldr	r3, [fp, #-56]
	ldr	r1, [fp, #-40]
	mul	r1, r3, r1
	ldr	r3, [fp, #-60]
	add	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r3, r1
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-56]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-40]
	mul	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r1, r3
	ldr	r3, [fp, #-60]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	add	r3, r1, r3
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r2, r3, r2
	ldr	r3, [fp, #-56]
	ldr	r1, [fp, #-40]
	mul	r1, r3, r1
	ldr	r3, [fp, #-60]
	add	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r1
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L12:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L13
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L11:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L14
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	mov	r2, r3
	ldr	r3, [fp, #-44]
	mov	r1, #1
	ldr	r0, [fp, #-16]
	bl	fwrite
	ldr	r1, [fp, #-52]
	ldr	r0, .L16+32
	bl	printf
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L10:
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-48]
	mov	r1, #1
	ldr	r0, [fp, #-28]
	bl	fread
	mov	r1, r0
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	cmp	r1, r3
	beq	.L15
	ldr	r1, [fp, #-52]
	ldr	r0, .L16+36
	bl	printf
	ldr	r0, [fp, #-28]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-16]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-48]
	bl	fclose
	ldr	r0, [fp, #-44]
	bl	fclose
	mov	r3, #0
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.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
