	.file	"602225.c"
	.intel_syntax noprefix
	.text
	.globl	ofile
	.bss
	.align 8
	.type	ofile, @object
	.size	ofile, 8
ofile:
	.zero	8
	.globl	as
	.align 4
	.type	as, @object
	.size	as, 4
as:
	.zero	4
	.globl	pos
	.align 4
	.type	pos, @object
	.size	pos, 4
pos:
	.zero	4
	.text
	.globl	err
	.type	err, @function
err:
.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, 224
	mov	QWORD PTR -216[rbp], rdi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L2
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L2:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -208[rbp], 8
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -208[rbp]
	mov	rcx, QWORD PTR -216[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	vfprintf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	err, .-err
	.section	.rodata
.LC0:
	.string	"Error reading font!"
	.text
	.globl	myfgetc
	.type	myfgetc, @function
myfgetc:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L5
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	err
.L5:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	myfgetc, .-myfgetc
	.section	.rodata
.LC1:
	.string	"\ndefb "
.LC2:
	.string	"\n "
.LC3:
	.string	"%u"
	.text
	.globl	writebyte
	.type	writebyte, @function
writebyte:
.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, 16
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	mov	eax, DWORD PTR pos[rip]
	test	eax, eax
	je	.L8
	mov	eax, DWORD PTR as[rip]
	test	eax, eax
	je	.L9
	mov	eax, DWORD PTR pos[rip]
	and	eax, 15
	test	eax, eax
	je	.L8
	mov	rax, QWORD PTR ofile[rip]
	mov	rsi, rax
	mov	edi, 44
	call	fputc@PLT
	jmp	.L8
.L9:
	mov	rax, QWORD PTR ofile[rip]
	mov	rsi, rax
	mov	edi, 44
	call	fputc@PLT
.L8:
	mov	eax, DWORD PTR pos[rip]
	and	eax, 15
	test	eax, eax
	jne	.L10
	mov	eax, DWORD PTR as[rip]
	test	eax, eax
	je	.L11
	mov	rax, QWORD PTR ofile[rip]
	mov	rcx, rax
	mov	edx, 6
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	jmp	.L10
.L11:
	mov	rax, QWORD PTR ofile[rip]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
.L10:
	movzx	edx, BYTE PTR -4[rbp]
	mov	rax, QWORD PTR ofile[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR pos[rip]
	add	eax, 1
	mov	DWORD PTR pos[rip], eax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	writebyte, .-writebyte
	.section	.rodata
	.align 8
.LC4:
	.string	"wzf2prog [-a] font\n  You must have font.wzf on your system.\n  Use -a to generate assembly format.\n"
.LC5:
	.string	"wzf2prog: unknown option\n"
.LC6:
	.string	"rb"
.LC7:
	.string	"Cannot open %s.\n"
.LC8:
	.string	"Error in header!"
.LC9:
	.string	".as"
.LC10:
	.string	".c"
.LC11:
	.string	"w"
	.align 8
.LC12:
	.string	"%s_length equ %d\n_%s_length equ %d\nglobal _%s_data\n%s_data:\n_%s_data:\n"
	.align 8
.LC13:
	.string	"#define %s_length %d\nunsigned char %s_data[]=\n{\n"
	.align 8
.LC14:
	.string	"\n};\n#ifdef LOAD_FONT\n#include <oz.h>\nmain(){static unsigned c;static byte slot;\nozputs(0,10,\"Put %s into slot 0/1 (or ESC to cancel)?\");\nc=ozgetch();if(c=='0' || c=='1') slot=c-'0'; else return;\nozwritecustomfontmem(slot,%s_data);ozdelay64hz(16);}\n#endif\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, 1104
	mov	DWORD PTR -1092[rbp], edi
	mov	QWORD PTR -1104[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -1092[rbp], 1
	jg	.L13
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	err
.L13:
	mov	DWORD PTR -1072[rbp], 1
	jmp	.L14
.L17:
	mov	eax, DWORD PTR -1072[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1104[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 97
	jne	.L15
	mov	DWORD PTR as[rip], 1
	jmp	.L16
.L15:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	err
.L16:
	add	DWORD PTR -1072[rbp], 1
.L14:
	mov	eax, DWORD PTR -1092[rbp]
	sub	eax, 1
	cmp	DWORD PTR -1072[rbp], eax
	jl	.L17
	mov	eax, DWORD PTR -1072[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1104[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -1040[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1719301934
	mov	BYTE PTR 4[rax], 0
	lea	rax, -1040[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1064[rbp], rax
	cmp	QWORD PTR -1064[rbp], 0
	jne	.L18
	mov	eax, DWORD PTR -1072[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1104[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	err
.L18:
	mov	rdx, QWORD PTR -1064[rbp]
	lea	rax, -1052[rbp]
	mov	rcx, rdx
	mov	edx, 12
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 12
	jne	.L19
	movzx	eax, BYTE PTR -1050[rbp]
	cmp	al, 111
	jne	.L19
	movzx	eax, BYTE PTR -1049[rbp]
	cmp	al, 70
	je	.L20
.L19:
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	err
.L20:
	movzx	eax, BYTE PTR -1048[rbp]
	movzx	edx, al
	movzx	eax, BYTE PTR -1047[rbp]
	movzx	eax, al
	sal	eax, 8
	add	eax, edx
	mov	DWORD PTR -1068[rbp], eax
	mov	eax, DWORD PTR -1072[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1104[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR as[rip]
	test	eax, eax
	je	.L21
	lea	rax, .LC9[rip]
	jmp	.L22
.L21:
	lea	rax, .LC10[rip]
.L22:
	lea	rdx, -1040[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcat@PLT
	lea	rax, -1040[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR ofile[rip], rax
	mov	rax, QWORD PTR ofile[rip]
	test	rax, rax
	jne	.L23
	lea	rax, -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	err
.L23:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -1072[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -1104[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L24
	mov	eax, DWORD PTR -1072[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1104[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	lea	rax, -1040[rbp]
	add	rax, 1
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	BYTE PTR -1040[rbp], 95
	jmp	.L25
.L24:
	mov	eax, DWORD PTR -1072[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1104[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L25:
	mov	eax, DWORD PTR as[rip]
	test	eax, eax
	je	.L26
	mov	rax, QWORD PTR ofile[rip]
	mov	r8d, DWORD PTR -1068[rbp]
	lea	rdi, -1040[rbp]
	mov	ecx, DWORD PTR -1068[rbp]
	lea	rdx, -1040[rbp]
	sub	rsp, 8
	lea	rsi, -1040[rbp]
	push	rsi
	lea	rsi, -1040[rbp]
	push	rsi
	lea	rsi, -1040[rbp]
	push	rsi
	mov	r9d, r8d
	mov	r8, rdi
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 32
	jmp	.L27
.L26:
	mov	rax, QWORD PTR ofile[rip]
	lea	rsi, -1040[rbp]
	mov	ecx, DWORD PTR -1068[rbp]
	lea	rdx, -1040[rbp]
	mov	r8, rsi
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L27:
	mov	DWORD PTR pos[rip], 0
	mov	DWORD PTR -1076[rbp], 0
	jmp	.L28
.L29:
	mov	eax, DWORD PTR -1076[rbp]
	cdqe
	movzx	eax, BYTE PTR -1052[rbp+rax]
	movzx	eax, al
	mov	edi, eax
	call	writebyte
	add	DWORD PTR -1076[rbp], 1
.L28:
	cmp	DWORD PTR -1076[rbp], 11
	jle	.L29
	mov	DWORD PTR -1076[rbp], 12
	jmp	.L30
.L31:
	mov	rax, QWORD PTR -1064[rbp]
	mov	rdi, rax
	call	myfgetc
	movzx	eax, al
	mov	edi, eax
	call	writebyte
	add	DWORD PTR -1076[rbp], 1
.L30:
	mov	eax, DWORD PTR -1076[rbp]
	cmp	eax, DWORD PTR -1068[rbp]
	jl	.L31
	mov	eax, DWORD PTR as[rip]
	test	eax, eax
	je	.L32
	mov	rax, QWORD PTR ofile[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	jmp	.L33
.L32:
	mov	rax, QWORD PTR ofile[rip]
	lea	rsi, -1040[rbp]
	lea	rcx, -1040[rbp]
	lea	rdx, -1040[rbp]
	mov	r8, rsi
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L33:
	mov	rax, QWORD PTR ofile[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -1064[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	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	"602225.c"
	.text
	.comm	ofile,4,4
	.global	as
	.bss
	.align	2
	.type	as, %object
	.size	as, 4
as:
	.space	4
	.comm	pos,4,4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	err
	.syntax unified
	.arm
	.fpu softvfp
	.type	err, %function
err:
	@ args = 4, pretend = 16, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, [fp, #4]
	str	r3, [fp, #-16]
	ldr	r3, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	add	r3, fp, #8
	str	r3, [fp, #-12]
	ldr	r3, .L3+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	vfprintf
	mov	r0, #1
	bl	exit
.L4:
	.align	2
.L3:
	.word	.LC0
	.word	stderr
	.size	err, .-err
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Error reading font!\000"
	.text
	.align	2
	.global	myfgetc
	.syntax unified
	.arm
	.fpu softvfp
	.type	myfgetc, %function
myfgetc:
	@ 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]
	ldr	r0, [fp, #-16]
	bl	fgetc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L6
	ldr	r0, .L8
	bl	err
.L6:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC1
	.size	myfgetc, .-myfgetc
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\012defb \000"
	.align	2
.LC3:
	.ascii	"\012 \000"
	.align	2
.LC4:
	.ascii	"%u\000"
	.text
	.align	2
	.global	writebyte
	.syntax unified
	.arm
	.fpu softvfp
	.type	writebyte, %function
writebyte:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldr	r3, .L15
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L15+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L15
	ldr	r3, [r3]
	and	r3, r3, #15
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L15+8
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #44
	bl	fputc
	b	.L11
.L12:
	ldr	r3, .L15+8
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #44
	bl	fputc
.L11:
	ldr	r3, .L15
	ldr	r3, [r3]
	and	r3, r3, #15
	cmp	r3, #0
	bne	.L13
	ldr	r3, .L15+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L14
	ldr	r3, .L15+8
	ldr	r3, [r3]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, .L15+12
	bl	fwrite
	b	.L13
.L14:
	ldr	r3, .L15+8
	ldr	r3, [r3]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L15+16
	bl	fwrite
.L13:
	ldr	r3, .L15+8
	ldr	r3, [r3]
	ldrb	r2, [fp, #-5]	@ zero_extendqisi2
	ldr	r1, .L15+20
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L15
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L15
	str	r3, [r2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	pos
	.word	as
	.word	ofile
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	writebyte, .-writebyte
	.section	.rodata
	.align	2
.LC5:
	.ascii	"wzf2prog [-a] font\012  You must have font.wzf on y"
	.ascii	"our system.\012  Use -a to generate assembly format"
	.ascii	".\012\000"
	.align	2
.LC6:
	.ascii	"wzf2prog: unknown option\012\000"
	.align	2
.LC7:
	.ascii	".wzf\000"
	.align	2
.LC8:
	.ascii	"rb\000"
	.align	2
.LC9:
	.ascii	"Cannot open %s.\012\000"
	.align	2
.LC10:
	.ascii	"Error in header!\000"
	.align	2
.LC11:
	.ascii	".as\000"
	.align	2
.LC12:
	.ascii	".c\000"
	.align	2
.LC13:
	.ascii	"w\000"
	.align	2
.LC14:
	.ascii	"%s_length equ %d\012_%s_length equ %d\012global _%s"
	.ascii	"_data\012%s_data:\012_%s_data:\012\000"
	.align	2
.LC15:
	.ascii	"#define %s_length %d\012unsigned char %s_data[]=\012"
	.ascii	"{\012\000"
	.align	2
.LC16:
	.ascii	"\012};\012#ifdef LOAD_FONT\012#include <oz.h>\012ma"
	.ascii	"in(){static unsigned c;static byte slot;\012ozputs("
	.ascii	"0,10,\"Put %s into slot 0/1 (or ESC to cancel)?\");"
	.ascii	"\012c=ozgetch();if(c=='0' || c=='1') slot=c-'0'; el"
	.ascii	"se return;\012ozwritecustomfontmem(slot,%s_data);oz"
	.ascii	"delay64hz(16);}\012#endif\012\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1064
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1088
	str	r0, [fp, #-1064]
	str	r1, [fp, #-1068]
	ldr	r3, .L41
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-1064]
	cmp	r3, #1
	bgt	.L18
	ldr	r0, .L41+4
	bl	err
.L18:
	mov	r3, #1
	str	r3, [fp, #-1056]
	b	.L19
.L22:
	ldr	r3, [fp, #-1056]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1068]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L20
	ldr	r3, .L41+8
	mov	r2, #1
	str	r2, [r3]
	b	.L21
.L20:
	ldr	r0, .L41+12
	bl	err
.L21:
	ldr	r3, [fp, #-1056]
	add	r3, r3, #1
	str	r3, [fp, #-1056]
.L19:
	ldr	r3, [fp, #-1064]
	sub	r3, r3, #1
	ldr	r2, [fp, #-1056]
	cmp	r2, r3
	blt	.L22
	ldr	r3, [fp, #-1056]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1068]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L41+16
	mov	r0, r3
	mov	r1, r2
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L41+20
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-1052]
	ldr	r3, [fp, #-1052]
	cmp	r3, #0
	bne	.L23
	ldr	r3, [fp, #-1056]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1068]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L41+24
	bl	err
.L23:
	sub	r0, fp, #1040
	sub	r0, r0, #4
	ldr	r3, [fp, #-1052]
	mov	r2, #12
	mov	r1, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #12
	bne	.L24
	ldrb	r3, [fp, #-1042]	@ zero_extendqisi2
	cmp	r3, #111
	bne	.L24
	ldrb	r3, [fp, #-1041]	@ zero_extendqisi2
	cmp	r3, #70
	beq	.L25
.L24:
	ldr	r0, .L41+28
	bl	err
.L25:
	ldrb	r3, [fp, #-1040]	@ zero_extendqisi2
	mov	r2, r3
	ldrb	r3, [fp, #-1039]	@ zero_extendqisi2
	lsl	r3, r3, #8
	add	r3, r2, r3
	str	r3, [fp, #-1048]
	ldr	r3, [fp, #-1056]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1068]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, .L41+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L26
	ldr	r2, .L41+32
	b	.L27
.L26:
	ldr	r2, .L41+36
.L27:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L41+40
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L41+44
	str	r3, [r2]
	ldr	r3, .L41+44
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L28
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L41+24
	bl	err
.L28:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-1056]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-1068]
	add	r3, r1, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L29
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #1
	ldr	r2, [fp, #-1056]
	lsl	r2, r2, #2
	ldr	r1, [fp, #-1068]
	add	r2, r1, r2
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	mov	r3, #95
	strb	r3, [fp, #-1032]
	b	.L30
.L29:
	ldr	r3, [fp, #-1056]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1068]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
.L30:
	ldr	r3, .L41+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L31
	ldr	r3, .L41+44
	ldr	r0, [r3]
	sub	r2, fp, #1024
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [sp, #16]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [sp, #12]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [sp, #8]
	ldr	r3, [fp, #-1048]
	str	r3, [sp, #4]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [sp]
	ldr	r3, [fp, #-1048]
	ldr	r1, .L41+48
	bl	fprintf
	b	.L32
.L31:
	ldr	r3, .L41+44
	ldr	r0, [r3]
	sub	r2, fp, #1024
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [sp]
	ldr	r3, [fp, #-1048]
	ldr	r1, .L41+52
	bl	fprintf
.L32:
	ldr	r3, .L41+56
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-1060]
	b	.L33
.L34:
	sub	r2, fp, #1040
	sub	r2, r2, #4
	ldr	r3, [fp, #-1060]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	writebyte
	ldr	r3, [fp, #-1060]
	add	r3, r3, #1
	str	r3, [fp, #-1060]
.L33:
	ldr	r3, [fp, #-1060]
	cmp	r3, #11
	ble	.L34
	mov	r3, #12
	str	r3, [fp, #-1060]
	b	.L35
.L36:
	ldr	r0, [fp, #-1052]
	bl	myfgetc
	mov	r3, r0
	and	r3, r3, #255
	mov	r0, r3
	bl	writebyte
	ldr	r3, [fp, #-1060]
	add	r3, r3, #1
	str	r3, [fp, #-1060]
.L35:
	ldr	r2, [fp, #-1060]
	ldr	r3, [fp, #-1048]
	cmp	r2, r3
	blt	.L36
	ldr	r3, .L41+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L37
	ldr	r3, .L41+44
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	b	.L38
.L37:
	ldr	r3, .L41+44
	ldr	r0, [r3]
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r2, fp, #1024
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L41+60
	bl	fprintf
.L38:
	ldr	r3, .L41+44
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r0, [fp, #-1052]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L41
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L40
	bl	__stack_chk_fail
.L40:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC17
	.word	.LC5
	.word	as
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	ofile
	.word	.LC14
	.word	.LC15
	.word	pos
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
