	.file	"97013587.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"\"txt2bin\"  copyright (C) 2001 H.Kawai\nusage : >txt2bin source.txt font.bin\n"
.LC1:
	.string	"r"
.LC2:
	.string	"wb"
.LC3:
	.string	"can't open input file.\n"
.LC4:
	.string	"can't open output file.\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -52[rbp], 3
	je	.L2
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 75
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	eax, 2
	jmp	.L3
.L4:
	cmp	QWORD PTR -32[rbp], 0
	jne	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	eax, 3
	jmp	.L3
.L5:
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -20[rbp]
	mov	esi, 12
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	je	.L6
	movzx	eax, BYTE PTR -20[rbp]
	cmp	al, 32
	je	.L7
	movzx	eax, BYTE PTR -20[rbp]
	cmp	al, 42
	je	.L7
	movzx	eax, BYTE PTR -20[rbp]
	cmp	al, 46
	jne	.L6
.L7:
	movzx	eax, BYTE PTR -20[rbp]
	cmp	al, 42
	jne	.L8
	mov	eax, 128
	jmp	.L9
.L8:
	mov	eax, 0
.L9:
	mov	DWORD PTR -44[rbp], eax
	movzx	eax, BYTE PTR -19[rbp]
	cmp	al, 42
	jne	.L10
	mov	eax, 64
	jmp	.L11
.L10:
	mov	eax, 0
.L11:
	or	DWORD PTR -44[rbp], eax
	movzx	eax, BYTE PTR -18[rbp]
	cmp	al, 42
	jne	.L12
	mov	eax, 32
	jmp	.L13
.L12:
	mov	eax, 0
.L13:
	or	DWORD PTR -44[rbp], eax
	movzx	eax, BYTE PTR -17[rbp]
	cmp	al, 42
	jne	.L14
	mov	eax, 16
	jmp	.L15
.L14:
	mov	eax, 0
.L15:
	or	DWORD PTR -44[rbp], eax
	movzx	eax, BYTE PTR -16[rbp]
	cmp	al, 42
	jne	.L16
	mov	eax, 8
	jmp	.L17
.L16:
	mov	eax, 0
.L17:
	or	DWORD PTR -44[rbp], eax
	movzx	eax, BYTE PTR -15[rbp]
	cmp	al, 42
	jne	.L18
	mov	eax, 4
	jmp	.L19
.L18:
	mov	eax, 0
.L19:
	or	DWORD PTR -44[rbp], eax
	movzx	eax, BYTE PTR -14[rbp]
	cmp	al, 42
	jne	.L20
	mov	eax, 2
	jmp	.L21
.L20:
	mov	eax, 0
.L21:
	or	DWORD PTR -44[rbp], eax
	movzx	eax, BYTE PTR -13[rbp]
	cmp	al, 42
	sete	al
	movzx	eax, al
	or	DWORD PTR -44[rbp], eax
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
.L6:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L5
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L3:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"97013587.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\"txt2bin\"  copyright (C) 2001 H.Kawai\012usage : "
	.ascii	">txt2bin source.txt font.bin\012\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"wb\000"
	.align	2
.LC3:
	.ascii	"can't open input file.\012\000"
	.align	2
.LC4:
	.ascii	"can't open output file.\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-40]
	cmp	r3, #3
	beq	.L2
	ldr	r3, .L23+4
	ldr	r3, [r3]
	mov	r2, #75
	mov	r1, #1
	ldr	r0, .L23+8
	bl	fwrite
	mov	r3, #1
	b	.L3
.L2:
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L23+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-44]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L23+16
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L23+20
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L23+24
	bl	fwrite
	mov	r3, #2
	b	.L3
.L4:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L23+20
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L23+28
	bl	fwrite
	mov	r3, #3
	b	.L3
.L5:
	sub	r3, fp, #20
	ldr	r2, [fp, #-32]
	mov	r1, #12
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L6
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L7
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #42
	beq	.L7
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L6
.L7:
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L8
	mov	r3, #128
	b	.L9
.L8:
	mov	r3, #0
.L9:
	str	r3, [fp, #-24]
	ldrb	r3, [fp, #-19]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L10
	mov	r3, #64
	b	.L11
.L10:
	mov	r3, #0
.L11:
	ldr	r2, [fp, #-24]
	orr	r3, r2, r3
	str	r3, [fp, #-24]
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L12
	mov	r3, #32
	b	.L13
.L12:
	mov	r3, #0
.L13:
	ldr	r2, [fp, #-24]
	orr	r3, r2, r3
	str	r3, [fp, #-24]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L14
	mov	r3, #16
	b	.L15
.L14:
	mov	r3, #0
.L15:
	ldr	r2, [fp, #-24]
	orr	r3, r2, r3
	str	r3, [fp, #-24]
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L16
	mov	r3, #8
	b	.L17
.L16:
	mov	r3, #0
.L17:
	ldr	r2, [fp, #-24]
	orr	r3, r2, r3
	str	r3, [fp, #-24]
	ldrb	r3, [fp, #-15]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L18
	mov	r3, #4
	b	.L19
.L18:
	mov	r3, #0
.L19:
	ldr	r2, [fp, #-24]
	orr	r3, r2, r3
	str	r3, [fp, #-24]
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L20
	mov	r3, #2
	b	.L21
.L20:
	mov	r3, #0
.L21:
	ldr	r2, [fp, #-24]
	orr	r3, r2, r3
	str	r3, [fp, #-24]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #42
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-24]
	orr	r3, r3, r2
	str	r3, [fp, #-24]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	fputc
.L6:
	ldr	r0, [fp, #-32]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	ldr	r0, [fp, #-32]
	bl	fclose
	ldr	r0, [fp, #-28]
	bl	fclose
	mov	r3, #0
.L3:
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC5
	.word	stdout
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	stderr
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
