	.file	"832216.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Usage: %s filename\n"
.LC1:
	.string	"_argb8888.bin"
	.align 8
.LC2:
	.string	"File must be named xxx_argb8888.bin"
.LC3:
	.string	"filename base: %s\n"
.LC4:
	.string	"Output file name: %s\n"
.LC5:
	.string	"r"
.LC6:
	.string	"Could not open %s\n"
.LC7:
	.string	"file size: %d\n"
.LC8:
	.string	"0x%02x "
	.align 8
.LC9:
	.string	"red: 0x%02x, green: 0x%02x, blue: 0x%02x, high: 0x%02x, low: 0x%02x\n"
.LC10:
	.string	"w"
.LC11:
	.string	"Could not open %s"
	.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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	cmp	DWORD PTR -84[rbp], 2
	je	.L2
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L3
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -40[rbp]
	movabs	rcx, 3329627102422463071
	mov	QWORD PTR [rax], rcx
	mov	DWORD PTR 8[rax], 7235938
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -68[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -68[rbp]
	movsx	rsi, eax
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	DWORD PTR -72[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -72[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -72[rbp], 1
.L5:
	cmp	DWORD PTR -72[rbp], 15
	jle	.L6
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	DWORD PTR -72[rbp], 0
	jmp	.L7
.L8:
	mov	rax, QWORD PTR -64[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -64[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -77[rbp], al
	mov	rax, QWORD PTR -64[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -64[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -76[rbp], al
	mov	rax, QWORD PTR -64[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -64[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -75[rbp], al
	add	QWORD PTR -64[rbp], 1
	and	BYTE PTR -75[rbp], -8
	and	BYTE PTR -76[rbp], -4
	and	BYTE PTR -77[rbp], -8
	movzx	eax, BYTE PTR -76[rbp]
	shr	al, 5
	or	al, BYTE PTR -75[rbp]
	mov	BYTE PTR -74[rbp], al
	movzx	eax, BYTE PTR -76[rbp]
	sal	eax, 3
	and	eax, -32
	mov	edx, eax
	movzx	eax, BYTE PTR -77[rbp]
	shr	al, 3
	or	eax, edx
	mov	BYTE PTR -73[rbp], al
	movzx	edi, BYTE PTR -73[rbp]
	movzx	esi, BYTE PTR -74[rbp]
	movzx	ecx, BYTE PTR -77[rbp]
	movzx	edx, BYTE PTR -76[rbp]
	movzx	eax, BYTE PTR -75[rbp]
	mov	r9d, edi
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -56[rbp], rdx
	movzx	edx, BYTE PTR -74[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -56[rbp], rdx
	movzx	edx, BYTE PTR -73[rbp]
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -72[rbp], 1
.L7:
	mov	eax, DWORD PTR -68[rbp]
	lea	edx, 3[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 2
	cmp	DWORD PTR -72[rbp], eax
	jl	.L8
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L9
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L9:
	mov	eax, DWORD PTR -68[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	movsx	rsi, eax
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	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	"832216.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: %s filename\012\000"
	.align	2
.LC1:
	.ascii	"_argb8888.bin\000"
	.align	2
.LC2:
	.ascii	"File must be named xxx_argb8888.bin\000"
	.align	2
.LC3:
	.ascii	"filename base: %s\012\000"
	.align	2
.LC4:
	.ascii	"_rgb565.bin\000"
	.align	2
.LC5:
	.ascii	"Output file name: %s\012\000"
	.align	2
.LC6:
	.ascii	"r\000"
	.align	2
.LC7:
	.ascii	"Could not open %s\012\000"
	.align	2
.LC8:
	.ascii	"file size: %d\012\000"
	.align	2
.LC9:
	.ascii	"0x%02x \000"
	.align	2
.LC10:
	.ascii	"red: 0x%02x, green: 0x%02x, blue: 0x%02x, high: 0x%"
	.ascii	"02x, low: 0x%02x\012\000"
	.align	2
.LC11:
	.ascii	"w\000"
	.align	2
.LC12:
	.ascii	"Could not open %s\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, #64
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, [fp, #-56]
	cmp	r3, #2
	beq	.L2
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L11
	bl	printf
	mvn	r0, #0
	bl	exit
.L2:
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	strcpy
	ldr	r1, .L11+4
	ldr	r0, [fp, #-32]
	bl	strstr
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L3
	ldr	r0, .L11+8
	bl	printf
	mvn	r0, #0
	bl	exit
.L3:
	ldr	r1, [fp, #-28]
	ldr	r0, .L11+12
	bl	printf
	ldr	r3, [fp, #-28]
	ldr	r2, .L11+16
	mov	r0, r3
	mov	r1, r2
	mov	r3, #12
	mov	r2, r3
	bl	memcpy
	ldr	r1, [fp, #-32]
	ldr	r0, .L11+20
	bl	printf
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L11+24
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L11+28
	bl	printf
	mvn	r0, #0
	bl	exit
.L4:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	fseek
	ldr	r0, [fp, #-24]
	bl	ftell
	str	r0, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, .L11+32
	bl	printf
	ldr	r0, [fp, #-24]
	bl	rewind
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-20]
	ldr	r3, [fp, #-24]
	mov	r2, #1
	ldr	r0, [fp, #-16]
	bl	fread
	ldr	r0, [fp, #-24]
	bl	fclose
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L5
.L6:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L11+36
	bl	printf
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L5:
	ldr	r3, [fp, #-36]
	cmp	r3, #15
	ble	.L6
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L7
.L8:
	ldr	r3, [fp, #-44]
	add	r2, r3, #1
	str	r2, [fp, #-44]
	ldrb	r3, [r3]
	strb	r3, [fp, #-49]
	ldr	r3, [fp, #-44]
	add	r2, r3, #1
	str	r2, [fp, #-44]
	ldrb	r3, [r3]
	strb	r3, [fp, #-48]
	ldr	r3, [fp, #-44]
	add	r2, r3, #1
	str	r2, [fp, #-44]
	ldrb	r3, [r3]
	strb	r3, [fp, #-47]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	ldrb	r3, [fp, #-47]
	bic	r3, r3, #7
	strb	r3, [fp, #-47]
	ldrb	r3, [fp, #-48]
	bic	r3, r3, #3
	strb	r3, [fp, #-48]
	ldrb	r3, [fp, #-49]
	bic	r3, r3, #7
	strb	r3, [fp, #-49]
	ldrb	r3, [fp, #-48]	@ zero_extendqisi2
	lsr	r3, r3, #5
	and	r2, r3, #255
	ldrb	r3, [fp, #-47]
	orr	r3, r2, r3
	strb	r3, [fp, #-46]
	ldrb	r3, [fp, #-48]	@ zero_extendqisi2
	lsl	r3, r3, #3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	bic	r3, r3, #31
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldrb	r3, [fp, #-49]	@ zero_extendqisi2
	lsr	r3, r3, #3
	and	r3, r3, #255
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	strb	r3, [fp, #-45]
	ldrb	r1, [fp, #-47]	@ zero_extendqisi2
	ldrb	r0, [fp, #-48]	@ zero_extendqisi2
	ldrb	ip, [fp, #-49]	@ zero_extendqisi2
	ldrb	r3, [fp, #-46]	@ zero_extendqisi2
	ldrb	r2, [fp, #-45]	@ zero_extendqisi2
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r0
	ldr	r0, .L11+40
	bl	printf
	ldr	r3, [fp, #-40]
	add	r2, r3, #1
	str	r2, [fp, #-40]
	ldrb	r2, [fp, #-46]
	strb	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r2, r3, #1
	str	r2, [fp, #-40]
	ldrb	r2, [fp, #-45]
	strb	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L7:
	ldr	r3, [fp, #-20]
	add	r2, r3, #3
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-36]
	cmp	r3, r2
	blt	.L8
	ldr	r1, .L11+44
	ldr	r0, [fp, #-32]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L9
	ldr	r1, [fp, #-32]
	ldr	r0, .L11+48
	bl	printf
	mvn	r0, #0
	bl	exit
.L9:
	ldr	r3, [fp, #-20]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r1, r3
	ldr	r3, [fp, #-8]
	mov	r2, #1
	ldr	r0, [fp, #-12]
	bl	fwrite
	ldr	r0, [fp, #-8]
	bl	fclose
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
