	.file	"59513148.c"
	.intel_syntax noprefix
	.text
	.globl	file_orig
	.bss
	.align 32
	.type	file_orig, @object
	.size	file_orig, 4096
file_orig:
	.zero	4096
	.globl	file_dest
	.align 32
	.type	file_dest, @object
	.size	file_dest, 4096
file_dest:
	.zero	4096
	.globl	file_plane_dest
	.align 32
	.type	file_plane_dest, @object
	.size	file_plane_dest, 4096
file_plane_dest:
	.zero	4096
	.globl	tabla_conversion_colour_bmp
	.data
	.align 16
	.type	tabla_conversion_colour_bmp, @object
	.size	tabla_conversion_colour_bmp, 16
tabla_conversion_colour_bmp:
	.string	""
	.ascii	"\001\002\003\004\005\006\007\b\t\n\013\f\r\016\017"
	.globl	source_bmp
	.bss
	.align 32
	.type	source_bmp, @object
	.size	source_bmp, 24576
source_bmp:
	.zero	24576
	.globl	target_plane_zero
	.align 32
	.type	target_plane_zero, @object
	.size	target_plane_zero, 6144
target_plane_zero:
	.zero	6144
	.globl	target_plane_one
	.align 32
	.type	target_plane_one, @object
	.size	target_plane_one, 6144
target_plane_one:
	.zero	6144
	.globl	target_plane_two
	.align 32
	.type	target_plane_two, @object
	.size	target_plane_two, 6144
target_plane_two:
	.zero	6144
	.globl	target_plane_three
	.align 32
	.type	target_plane_three, @object
	.size	target_plane_three, 6144
target_plane_three:
	.zero	6144
	.text
	.globl	devuelve_direccion_pantalla_no_table
	.type	devuelve_direccion_pantalla_no_table, @function
devuelve_direccion_pantalla_no_table:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, edi
	mov	eax, esi
	mov	BYTE PTR -20[rbp], dl
	mov	BYTE PTR -24[rbp], al
	movzx	eax, BYTE PTR -24[rbp]
	shr	al, 3
	mov	BYTE PTR -3[rbp], al
	movzx	eax, BYTE PTR -3[rbp]
	sal	eax, 5
	mov	edx, eax
	movzx	eax, BYTE PTR -20[rbp]
	add	eax, edx
	mov	BYTE PTR -2[rbp], al
	movzx	eax, BYTE PTR -3[rbp]
	and	eax, 24
	mov	edx, eax
	movzx	eax, BYTE PTR -24[rbp]
	and	eax, 7
	or	eax, edx
	mov	BYTE PTR -1[rbp], al
	movzx	edx, BYTE PTR -2[rbp]
	movzx	eax, BYTE PTR -1[rbp]
	sal	eax, 8
	add	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	devuelve_direccion_pantalla_no_table, .-devuelve_direccion_pantalla_no_table
	.globl	putpixel
	.type	putpixel, @function
putpixel:
.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, 40
	mov	QWORD PTR -32[rbp], rdx
	mov	eax, ecx
	mov	edx, edi
	mov	BYTE PTR -20[rbp], dl
	mov	edx, esi
	mov	BYTE PTR -24[rbp], dl
	mov	BYTE PTR -36[rbp], al
	movzx	edx, BYTE PTR -24[rbp]
	movzx	eax, BYTE PTR -20[rbp]
	shr	al, 3
	movzx	eax, al
	mov	esi, edx
	mov	edi, eax
	call	devuelve_direccion_pantalla_no_table
	mov	DWORD PTR -4[rbp], eax
	movzx	eax, BYTE PTR -20[rbp]
	and	eax, 7
	mov	DWORD PTR -8[rbp], eax
	cmp	BYTE PTR -36[rbp], 0
	je	.L5
	mov	BYTE PTR -36[rbp], -128
	jmp	.L5
.L6:
	shr	BYTE PTR -36[rbp]
	sub	DWORD PTR -8[rbp], 1
.L5:
	cmp	DWORD PTR -8[rbp], 0
	jg	.L6
	movzx	eax, BYTE PTR -36[rbp]
	not	eax
	mov	BYTE PTR -10[rbp], al
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -9[rbp], al
	movzx	eax, BYTE PTR -10[rbp]
	and	BYTE PTR -9[rbp], al
	movzx	eax, BYTE PTR -36[rbp]
	or	BYTE PTR -9[rbp], al
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -9[rbp]
	mov	BYTE PTR [rdx], al
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	putpixel, .-putpixel
	.section	.rodata
.LC0:
	.string	"wb"
	.text
	.globl	write_file_plane
	.type	write_file_plane, @function
write_file_plane:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, rdx
	mov	edx, 6144
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	write_file_plane, .-write_file_plane
	.section	.rodata
.LC1:
	.string	"%s input output\n"
.LC2:
	.string	"%s"
	.align 8
.LC3:
	.string	";Converting file %s with size %dX%d\n"
.LC4:
	.string	"rb"
.LC5:
	.string	"Error opening %s\n"
.LC6:
	.string	"%s_palette"
.LC7:
	.string	"%s_0"
.LC8:
	.string	"%s_1"
.LC9:
	.string	"%s_2"
.LC10:
	.string	"%s_3"
	.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, 192
	mov	DWORD PTR -180[rbp], edi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -180[rbp], 3
	je	.L9
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	lea	rsi, .LC2[rip]
	lea	rdi, file_orig[rip]
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	lea	rsi, .LC2[rip]
	lea	rdi, file_dest[rip]
	mov	eax, 0
	call	sprintf@PLT
	mov	DWORD PTR -152[rbp], 256
	mov	DWORD PTR -148[rbp], 192
	mov	edx, DWORD PTR -148[rbp]
	mov	eax, DWORD PTR -152[rbp]
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, file_orig[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, .LC4[rip]
	lea	rdi, file_orig[rip]
	call	fopen@PLT
	mov	QWORD PTR -144[rbp], rax
	cmp	QWORD PTR -144[rbp], 0
	jne	.L10
	lea	rsi, file_orig[rip]
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	rdx, QWORD PTR -144[rbp]
	lea	rax, -128[rbp]
	mov	rcx, rdx
	mov	edx, 118
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -148[rbp]
	mov	DWORD PTR -164[rbp], eax
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -152[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cdqe
	mov	edx, DWORD PTR -164[rbp]
	sub	edx, 1
	movsx	rdx, edx
	mov	rcx, rdx
	sal	rcx, 7
	lea	rdx, source_bmp[rip]
	lea	rdi, [rcx+rdx]
	mov	rdx, QWORD PTR -144[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 1
	call	fread@PLT
	sub	DWORD PTR -164[rbp], 1
.L11:
	cmp	DWORD PTR -164[rbp], 0
	jg	.L12
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdx, file_dest[rip]
	lea	rsi, .LC6[rip]
	lea	rdi, file_plane_dest[rip]
	mov	eax, 0
	call	sprintf@PLT
	lea	rsi, .LC0[rip]
	lea	rdi, file_plane_dest[rip]
	call	fopen@PLT
	mov	QWORD PTR -136[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	lea	rdx, -128[rbp]
	lea	rdi, 54[rdx]
	mov	rcx, rax
	mov	edx, 64
	mov	esi, 1
	call	fwrite@PLT
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	DWORD PTR -156[rbp], 0
	jmp	.L13
.L16:
	mov	DWORD PTR -160[rbp], 0
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -160[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -156[rbp]
	cdqe
	sal	rax, 7
	add	rdx, rax
	lea	rax, source_bmp[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -167[rbp], al
	movzx	eax, BYTE PTR -167[rbp]
	shr	al, 4
	mov	BYTE PTR -166[rbp], al
	movzx	eax, BYTE PTR -167[rbp]
	and	eax, 15
	mov	BYTE PTR -165[rbp], al
	movzx	eax, BYTE PTR -166[rbp]
	and	eax, 1
	mov	edx, eax
	mov	eax, DWORD PTR -156[rbp]
	movzx	esi, al
	mov	eax, DWORD PTR -160[rbp]
	add	eax, eax
	movzx	eax, al
	mov	ecx, edx
	lea	rdx, target_plane_zero[rip]
	mov	edi, eax
	call	putpixel
	movzx	eax, BYTE PTR -166[rbp]
	and	eax, 2
	mov	edx, eax
	mov	eax, DWORD PTR -156[rbp]
	movzx	esi, al
	mov	eax, DWORD PTR -160[rbp]
	add	eax, eax
	movzx	eax, al
	mov	ecx, edx
	lea	rdx, target_plane_one[rip]
	mov	edi, eax
	call	putpixel
	movzx	eax, BYTE PTR -166[rbp]
	and	eax, 4
	mov	edx, eax
	mov	eax, DWORD PTR -156[rbp]
	movzx	esi, al
	mov	eax, DWORD PTR -160[rbp]
	add	eax, eax
	movzx	eax, al
	mov	ecx, edx
	lea	rdx, target_plane_two[rip]
	mov	edi, eax
	call	putpixel
	movzx	eax, BYTE PTR -166[rbp]
	and	eax, 8
	mov	edx, eax
	mov	eax, DWORD PTR -156[rbp]
	movzx	esi, al
	mov	eax, DWORD PTR -160[rbp]
	add	eax, eax
	movzx	eax, al
	mov	ecx, edx
	lea	rdx, target_plane_three[rip]
	mov	edi, eax
	call	putpixel
	movzx	eax, BYTE PTR -165[rbp]
	and	eax, 1
	mov	edx, eax
	mov	eax, DWORD PTR -156[rbp]
	movzx	esi, al
	mov	eax, DWORD PTR -160[rbp]
	add	eax, eax
	add	eax, 1
	movzx	eax, al
	mov	ecx, edx
	lea	rdx, target_plane_zero[rip]
	mov	edi, eax
	call	putpixel
	movzx	eax, BYTE PTR -165[rbp]
	and	eax, 2
	mov	edx, eax
	mov	eax, DWORD PTR -156[rbp]
	movzx	esi, al
	mov	eax, DWORD PTR -160[rbp]
	add	eax, eax
	add	eax, 1
	movzx	eax, al
	mov	ecx, edx
	lea	rdx, target_plane_one[rip]
	mov	edi, eax
	call	putpixel
	movzx	eax, BYTE PTR -165[rbp]
	and	eax, 4
	mov	edx, eax
	mov	eax, DWORD PTR -156[rbp]
	movzx	esi, al
	mov	eax, DWORD PTR -160[rbp]
	add	eax, eax
	add	eax, 1
	movzx	eax, al
	mov	ecx, edx
	lea	rdx, target_plane_two[rip]
	mov	edi, eax
	call	putpixel
	movzx	eax, BYTE PTR -165[rbp]
	and	eax, 8
	mov	edx, eax
	mov	eax, DWORD PTR -156[rbp]
	movzx	esi, al
	mov	eax, DWORD PTR -160[rbp]
	add	eax, eax
	add	eax, 1
	movzx	eax, al
	mov	ecx, edx
	lea	rdx, target_plane_three[rip]
	mov	edi, eax
	call	putpixel
	add	DWORD PTR -160[rbp], 1
.L14:
	mov	eax, DWORD PTR -152[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -160[rbp], eax
	jl	.L15
	add	DWORD PTR -156[rbp], 1
.L13:
	mov	eax, DWORD PTR -156[rbp]
	cmp	eax, DWORD PTR -148[rbp]
	jl	.L16
	lea	rdx, file_dest[rip]
	lea	rsi, .LC7[rip]
	lea	rdi, file_plane_dest[rip]
	mov	eax, 0
	call	sprintf@PLT
	lea	rsi, file_plane_dest[rip]
	lea	rdi, target_plane_zero[rip]
	call	write_file_plane
	lea	rdx, file_dest[rip]
	lea	rsi, .LC8[rip]
	lea	rdi, file_plane_dest[rip]
	mov	eax, 0
	call	sprintf@PLT
	lea	rsi, file_plane_dest[rip]
	lea	rdi, target_plane_one[rip]
	call	write_file_plane
	lea	rdx, file_dest[rip]
	lea	rsi, .LC9[rip]
	lea	rdi, file_plane_dest[rip]
	mov	eax, 0
	call	sprintf@PLT
	lea	rsi, file_plane_dest[rip]
	lea	rdi, target_plane_two[rip]
	call	write_file_plane
	lea	rdx, file_dest[rip]
	lea	rsi, .LC10[rip]
	lea	rdi, file_plane_dest[rip]
	mov	eax, 0
	call	sprintf@PLT
	lea	rsi, file_plane_dest[rip]
	lea	rdi, target_plane_three[rip]
	call	write_file_plane
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"59513148.c"
	.text
	.comm	file_orig,4096,4
	.comm	file_dest,4096,4
	.comm	file_plane_dest,4096,4
	.global	tabla_conversion_colour_bmp
	.data
	.align	2
	.type	tabla_conversion_colour_bmp, %object
	.size	tabla_conversion_colour_bmp, 16
tabla_conversion_colour_bmp:
	.ascii	"\000\001\002\003\004\005\006\007\010\011\012\013\014"
	.ascii	"\015\016\017"
	.comm	source_bmp,24576,4
	.comm	target_plane_zero,6144,4
	.comm	target_plane_one,6144,4
	.comm	target_plane_two,6144,4
	.comm	target_plane_three,6144,4
	.text
	.align	2
	.global	devuelve_direccion_pantalla_no_table
	.syntax unified
	.arm
	.fpu softvfp
	.type	devuelve_direccion_pantalla_no_table, %function
devuelve_direccion_pantalla_no_table:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	mov	r3, r0
	mov	r2, r1
	strb	r3, [fp, #-13]
	mov	r3, r2
	strb	r3, [fp, #-14]
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	lsr	r3, r3, #3
	strb	r3, [fp, #-7]
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	lsl	r3, r3, #5
	and	r2, r3, #255
	ldrb	r3, [fp, #-13]
	add	r3, r2, r3
	strb	r3, [fp, #-6]
	ldrsb	r3, [fp, #-7]
	and	r3, r3, #24
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldrsb	r3, [fp, #-14]
	and	r3, r3, #7
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	strb	r3, [fp, #-5]
	ldrb	r2, [fp, #-6]	@ zero_extendqisi2
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	lsl	r3, r3, #8
	add	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	devuelve_direccion_pantalla_no_table, .-devuelve_direccion_pantalla_no_table
	.align	2
	.global	putpixel
	.syntax unified
	.arm
	.fpu softvfp
	.type	putpixel, %function
putpixel:
	@ 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	r2, [fp, #-28]
	mov	r2, r3
	mov	r3, r0
	strb	r3, [fp, #-21]
	mov	r3, r1
	strb	r3, [fp, #-22]
	mov	r3, r2
	strb	r3, [fp, #-23]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	lsr	r3, r3, #3
	and	r3, r3, #255
	ldrb	r2, [fp, #-22]	@ zero_extendqisi2
	mov	r1, r2
	mov	r0, r3
	bl	devuelve_direccion_pantalla_no_table
	str	r0, [fp, #-8]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	and	r3, r3, #7
	str	r3, [fp, #-12]
	ldrb	r3, [fp, #-23]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L5
	mvn	r3, #127
	strb	r3, [fp, #-23]
	b	.L5
.L6:
	ldrb	r3, [fp, #-23]	@ zero_extendqisi2
	lsr	r3, r3, #1
	strb	r3, [fp, #-23]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L5:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bgt	.L6
	ldrb	r3, [fp, #-23]
	mvn	r3, r3
	strb	r3, [fp, #-14]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-13]
	ldrb	r2, [fp, #-13]
	ldrb	r3, [fp, #-14]
	and	r3, r3, r2
	strb	r3, [fp, #-13]
	ldrb	r2, [fp, #-13]
	ldrb	r3, [fp, #-23]
	orr	r3, r2, r3
	strb	r3, [fp, #-13]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldrb	r2, [fp, #-13]
	strb	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	putpixel, .-putpixel
	.section	.rodata
	.align	2
.LC0:
	.ascii	"wb\000"
	.text
	.align	2
	.global	write_file_plane
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_file_plane, %function
write_file_plane:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r1, .L8
	ldr	r0, [fp, #-20]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #6144
	mov	r1, #1
	ldr	r0, [fp, #-16]
	bl	fwrite
	ldr	r0, [fp, #-8]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.size	write_file_plane, .-write_file_plane
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%s input output\012\000"
	.align	2
.LC2:
	.ascii	"%s\000"
	.align	2
.LC3:
	.ascii	";Converting file %s with size %dX%d\012\000"
	.align	2
.LC4:
	.ascii	"rb\000"
	.align	2
.LC5:
	.ascii	"Error opening %s\012\000"
	.align	2
.LC6:
	.ascii	"%s_palette\000"
	.align	2
.LC7:
	.ascii	"%s_0\000"
	.align	2
.LC8:
	.ascii	"%s_1\000"
	.align	2
.LC9:
	.ascii	"%s_2\000"
	.align	2
.LC10:
	.ascii	"%s_3\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #168
	str	r0, [fp, #-168]
	str	r1, [fp, #-172]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-168]
	cmp	r3, #3
	beq	.L11
	ldr	r3, [fp, #-172]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L21+4
	bl	printf
	mov	r0, #1
	bl	exit
.L11:
	ldr	r3, [fp, #-172]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L21+8
	ldr	r0, .L21+12
	bl	sprintf
	ldr	r3, [fp, #-172]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L21+8
	ldr	r0, .L21+16
	bl	sprintf
	mov	r3, #256
	str	r3, [fp, #-144]
	mov	r3, #192
	str	r3, [fp, #-140]
	ldr	r3, [fp, #-140]
	ldr	r2, [fp, #-144]
	ldr	r1, .L21+12
	ldr	r0, .L21+20
	bl	printf
	ldr	r1, .L21+24
	ldr	r0, .L21+12
	bl	fopen
	str	r0, [fp, #-136]
	ldr	r3, [fp, #-136]
	cmp	r3, #0
	bne	.L12
	ldr	r1, .L21+12
	ldr	r0, .L21+28
	bl	printf
	mov	r0, #1
	bl	exit
.L12:
	sub	r0, fp, #128
	ldr	r3, [fp, #-136]
	mov	r2, #118
	mov	r1, #1
	bl	fread
	ldr	r3, [fp, #-140]
	str	r3, [fp, #-156]
	b	.L13
.L14:
	ldr	r3, [fp, #-156]
	sub	r3, r3, #1
	lsl	r3, r3, #7
	ldr	r2, .L21+32
	add	r0, r3, r2
	ldr	r3, [fp, #-144]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-136]
	mov	r1, #1
	bl	fread
	ldr	r3, [fp, #-156]
	sub	r3, r3, #1
	str	r3, [fp, #-156]
.L13:
	ldr	r3, [fp, #-156]
	cmp	r3, #0
	bgt	.L14
	ldr	r0, [fp, #-136]
	bl	fclose
	ldr	r2, .L21+16
	ldr	r1, .L21+36
	ldr	r0, .L21+40
	bl	sprintf
	ldr	r1, .L21+44
	ldr	r0, .L21+40
	bl	fopen
	str	r0, [fp, #-132]
	sub	r3, fp, #128
	add	r0, r3, #54
	ldr	r3, [fp, #-132]
	mov	r2, #64
	mov	r1, #1
	bl	fwrite
	ldr	r0, [fp, #-132]
	bl	fclose
	mov	r3, #0
	str	r3, [fp, #-148]
	b	.L15
.L18:
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L16
.L17:
	ldr	r2, .L21+32
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #7
	add	r2, r2, r3
	ldr	r3, [fp, #-152]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-159]
	ldrb	r3, [fp, #-159]	@ zero_extendqisi2
	lsr	r3, r3, #4
	strb	r3, [fp, #-158]
	ldrb	r3, [fp, #-159]
	and	r3, r3, #15
	strb	r3, [fp, #-157]
	ldr	r3, [fp, #-152]
	and	r3, r3, #255
	lsl	r3, r3, #1
	and	r0, r3, #255
	ldr	r3, [fp, #-148]
	and	r1, r3, #255
	ldrb	r3, [fp, #-158]
	and	r3, r3, #1
	and	r3, r3, #255
	ldr	r2, .L21+48
	bl	putpixel
	ldr	r3, [fp, #-152]
	and	r3, r3, #255
	lsl	r3, r3, #1
	and	r0, r3, #255
	ldr	r3, [fp, #-148]
	and	r1, r3, #255
	ldrb	r3, [fp, #-158]
	and	r3, r3, #2
	and	r3, r3, #255
	ldr	r2, .L21+52
	bl	putpixel
	ldr	r3, [fp, #-152]
	and	r3, r3, #255
	lsl	r3, r3, #1
	and	r0, r3, #255
	ldr	r3, [fp, #-148]
	and	r1, r3, #255
	ldrb	r3, [fp, #-158]
	and	r3, r3, #4
	and	r3, r3, #255
	ldr	r2, .L21+56
	bl	putpixel
	ldr	r3, [fp, #-152]
	and	r3, r3, #255
	lsl	r3, r3, #1
	and	r0, r3, #255
	ldr	r3, [fp, #-148]
	and	r1, r3, #255
	ldrb	r3, [fp, #-158]
	and	r3, r3, #8
	and	r3, r3, #255
	ldr	r2, .L21+60
	bl	putpixel
	ldr	r3, [fp, #-152]
	and	r3, r3, #255
	lsl	r3, r3, #1
	and	r3, r3, #255
	add	r3, r3, #1
	and	r0, r3, #255
	ldr	r3, [fp, #-148]
	and	r1, r3, #255
	ldrb	r3, [fp, #-157]
	and	r3, r3, #1
	and	r3, r3, #255
	ldr	r2, .L21+48
	bl	putpixel
	ldr	r3, [fp, #-152]
	and	r3, r3, #255
	lsl	r3, r3, #1
	and	r3, r3, #255
	add	r3, r3, #1
	and	r0, r3, #255
	ldr	r3, [fp, #-148]
	and	r1, r3, #255
	ldrb	r3, [fp, #-157]
	and	r3, r3, #2
	and	r3, r3, #255
	ldr	r2, .L21+52
	bl	putpixel
	ldr	r3, [fp, #-152]
	and	r3, r3, #255
	lsl	r3, r3, #1
	and	r3, r3, #255
	add	r3, r3, #1
	and	r0, r3, #255
	ldr	r3, [fp, #-148]
	and	r1, r3, #255
	ldrb	r3, [fp, #-157]
	and	r3, r3, #4
	and	r3, r3, #255
	ldr	r2, .L21+56
	bl	putpixel
	ldr	r3, [fp, #-152]
	and	r3, r3, #255
	lsl	r3, r3, #1
	and	r3, r3, #255
	add	r3, r3, #1
	and	r0, r3, #255
	ldr	r3, [fp, #-148]
	and	r1, r3, #255
	ldrb	r3, [fp, #-157]
	and	r3, r3, #8
	and	r3, r3, #255
	ldr	r2, .L21+60
	bl	putpixel
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L16:
	ldr	r3, [fp, #-144]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-152]
	cmp	r3, r2
	blt	.L17
	ldr	r3, [fp, #-148]
	add	r3, r3, #1
	str	r3, [fp, #-148]
.L15:
	ldr	r2, [fp, #-148]
	ldr	r3, [fp, #-140]
	cmp	r2, r3
	blt	.L18
	ldr	r2, .L21+16
	ldr	r1, .L21+64
	ldr	r0, .L21+40
	bl	sprintf
	ldr	r1, .L21+40
	ldr	r0, .L21+48
	bl	write_file_plane
	ldr	r2, .L21+16
	ldr	r1, .L21+68
	ldr	r0, .L21+40
	bl	sprintf
	ldr	r1, .L21+40
	ldr	r0, .L21+52
	bl	write_file_plane
	ldr	r2, .L21+16
	ldr	r1, .L21+72
	ldr	r0, .L21+40
	bl	sprintf
	ldr	r1, .L21+40
	ldr	r0, .L21+56
	bl	write_file_plane
	ldr	r2, .L21+16
	ldr	r1, .L21+76
	ldr	r0, .L21+40
	bl	sprintf
	ldr	r1, .L21+40
	ldr	r0, .L21+60
	bl	write_file_plane
	mov	r3, #0
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC11
	.word	.LC1
	.word	.LC2
	.word	file_orig
	.word	file_dest
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	source_bmp
	.word	.LC6
	.word	file_plane_dest
	.word	.LC0
	.word	target_plane_zero
	.word	target_plane_one
	.word	target_plane_two
	.word	target_plane_three
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
