	.file	"190768401.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"usage: %s <filename> <filename>\n"
.LC1:
	.string	"rb"
.LC2:
	.string	"File open failure\n"
.LC3:
	.string	"File format violation\n"
.LC4:
	.string	"wb"
	.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, 416
	mov	DWORD PTR -404[rbp], edi
	mov	QWORD PTR -416[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -404[rbp], 2
	jg	.L2
	mov	rax, QWORD PTR -416[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L22
.L2:
	mov	rax, QWORD PTR -416[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -368[rbp], rax
	cmp	QWORD PTR -368[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L22
.L4:
	mov	DWORD PTR -388[rbp], 0
	mov	QWORD PTR -336[rbp], 0
	mov	QWORD PTR -328[rbp], 0
	mov	QWORD PTR -320[rbp], 0
	mov	QWORD PTR -312[rbp], 0
	mov	QWORD PTR -304[rbp], 0
	mov	QWORD PTR -296[rbp], 0
	mov	QWORD PTR -288[rbp], 0
	mov	QWORD PTR -280[rbp], 0
	mov	QWORD PTR -272[rbp], 0
	mov	QWORD PTR -264[rbp], 0
	mov	QWORD PTR -256[rbp], 0
	mov	QWORD PTR -248[rbp], 0
	mov	DWORD PTR -240[rbp], 0
	mov	QWORD PTR -224[rbp], 0
	mov	QWORD PTR -216[rbp], 0
	mov	QWORD PTR -208[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	DWORD PTR -128[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -384[rbp], 0
	jmp	.L5
.L20:
	mov	rax, QWORD PTR -368[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -384[rbp], eax
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 3
	ja	.L6
	mov	eax, DWORD PTR -384[rbp]
	mov	BYTE PTR -389[rbp], al
	lea	rcx, -389[rbp]
	lea	rax, -224[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
	lea	rcx, -389[rbp]
	lea	rax, -336[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
	jmp	.L5
.L6:
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	convert_ascii_to_binary
	mov	QWORD PTR -352[rbp], rax
	mov	rax, QWORD PTR -352[rbp]
	mov	rdi, rax
	call	find_parity
	mov	BYTE PTR -392[rbp], al
	mov	rax, QWORD PTR -352[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rcx, -392[rbp]
	lea	rax, -112[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -388[rbp]
	add	eax, edx
	mov	DWORD PTR -388[rbp], eax
	mov	BYTE PTR -224[rbp], 0
	mov	eax, DWORD PTR -384[rbp]
	mov	BYTE PTR -391[rbp], al
	lea	rcx, -391[rbp]
	lea	rax, -224[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 8
	jne	.L7
	mov	DWORD PTR -380[rbp], 0
	mov	DWORD PTR -376[rbp], 0
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	eax, 1
	mov	DWORD PTR -372[rbp], eax
	jmp	.L8
.L17:
	mov	eax, DWORD PTR -372[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	cmp	al, 49
	jne	.L9
	cmp	DWORD PTR -376[rbp], 0
	jne	.L10
	add	DWORD PTR -380[rbp], 1
	jmp	.L9
.L10:
	cmp	DWORD PTR -376[rbp], 1
	jne	.L11
	add	DWORD PTR -380[rbp], 2
	jmp	.L9
.L11:
	cmp	DWORD PTR -376[rbp], 2
	jne	.L12
	add	DWORD PTR -380[rbp], 4
	jmp	.L9
.L12:
	cmp	DWORD PTR -376[rbp], 3
	jne	.L13
	add	DWORD PTR -380[rbp], 8
	jmp	.L9
.L13:
	cmp	DWORD PTR -376[rbp], 4
	jne	.L14
	add	DWORD PTR -380[rbp], 16
	jmp	.L9
.L14:
	cmp	DWORD PTR -376[rbp], 5
	jne	.L15
	add	DWORD PTR -380[rbp], 32
	jmp	.L9
.L15:
	cmp	DWORD PTR -376[rbp], 6
	jne	.L16
	add	DWORD PTR -380[rbp], 64
	jmp	.L9
.L16:
	cmp	DWORD PTR -376[rbp], 7
	jne	.L9
	sub	DWORD PTR -380[rbp], -128
.L9:
	add	DWORD PTR -376[rbp], 1
	sub	DWORD PTR -372[rbp], 1
.L8:
	cmp	DWORD PTR -372[rbp], 0
	jns	.L17
	mov	eax, DWORD PTR -380[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -380[rbp], eax
	mov	eax, DWORD PTR -380[rbp]
	mov	BYTE PTR -390[rbp], al
	lea	rcx, -390[rbp]
	lea	rax, -336[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
	mov	BYTE PTR -112[rbp], 0
	mov	rax, QWORD PTR -368[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -344[rbp], rax
	mov	rax, QWORD PTR -368[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -368[rbp]
	mov	rdi, rax
	call	ftell@PLT
	cmp	QWORD PTR -344[rbp], rax
	je	.L5
	mov	BYTE PTR -389[rbp], 32
	lea	rcx, -389[rbp]
	lea	rax, -336[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
	mov	rcx, QWORD PTR -344[rbp]
	mov	rax, QWORD PTR -368[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	jmp	.L5
.L7:
	lea	rcx, -391[rbp]
	lea	rax, -336[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
.L5:
	cmp	DWORD PTR -384[rbp], -1
	jne	.L20
	mov	rax, QWORD PTR -368[rbp]
	mov	rdi, rax
	call	fclose@PLT
	cmp	DWORD PTR -388[rbp], 31
	jg	.L21
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L22
.L21:
	mov	rax, QWORD PTR -416[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -360[rbp], rax
	lea	rax, -336[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rsi, rax
	mov	rdx, QWORD PTR -360[rbp]
	lea	rax, -336[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -360[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L22:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	convert_ascii_to_binary
	.type	convert_ascii_to_binary, @function
convert_ascii_to_binary:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	cmp	QWORD PTR -40[rbp], 0
	jne	.L25
	mov	eax, 0
	jmp	.L26
.L25:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	sal	rax, 3
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 0
	mov	QWORD PTR -24[rbp], 0
	jmp	.L27
.L33:
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -29[rbp], al
	mov	DWORD PTR -28[rbp], 7
	jmp	.L28
.L31:
	movsx	edx, BYTE PTR -29[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	and	eax, 1
	test	eax, eax
	je	.L29
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 49
	jmp	.L30
.L29:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 48
.L30:
	sub	DWORD PTR -28[rbp], 1
.L28:
	cmp	DWORD PTR -28[rbp], 0
	jns	.L31
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, 1
	cmp	QWORD PTR -24[rbp], rax
	je	.L32
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 32
.L32:
	add	QWORD PTR -24[rbp], 1
.L27:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jb	.L33
	mov	rax, QWORD PTR -8[rbp]
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	convert_ascii_to_binary, .-convert_ascii_to_binary
	.globl	find_parity
	.type	find_parity, @function
find_parity:
.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
	cmp	QWORD PTR -24[rbp], 0
	jne	.L35
	mov	eax, 0
	jmp	.L36
.L35:
	mov	DWORD PTR -12[rbp], 0
	mov	QWORD PTR -8[rbp], 0
	jmp	.L37
.L39:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 49
	jne	.L38
	add	DWORD PTR -12[rbp], 1
.L38:
	add	QWORD PTR -8[rbp], 1
.L37:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	QWORD PTR -8[rbp], rax
	jb	.L39
	mov	eax, DWORD PTR -12[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L40
	mov	eax, 48
	jmp	.L36
.L40:
	mov	eax, 49
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	find_parity, .-find_parity
	.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	"190768401.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: %s <filename> <filename>\012\000"
	.align	2
.LC1:
	.ascii	"rb\000"
	.align	2
.LC2:
	.ascii	"File open failure\012\000"
	.align	2
.LC3:
	.ascii	"File format violation\012\000"
	.align	2
.LC4:
	.ascii	"wb\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 = 352
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #352
	str	r0, [fp, #-352]
	str	r1, [fp, #-356]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-352]
	cmp	r3, #2
	bgt	.L2
	ldr	r3, .L24+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-356]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L24+8
	bl	fprintf
	mov	r3, #1
	b	.L22
.L2:
	ldr	r3, [fp, #-356]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L24+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-324]
	ldr	r3, [fp, #-324]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L24+4
	ldr	r3, [r3]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L24+16
	bl	fwrite
	mov	r3, #1
	b	.L22
.L4:
	mov	r3, #0
	str	r3, [fp, #-344]
	mov	r3, #0
	str	r3, [fp, #-308]
	sub	r3, fp, #304
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-208]
	sub	r3, fp, #204
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-340]
	b	.L5
.L20:
	ldr	r0, [fp, #-324]
	bl	fgetc
	str	r0, [fp, #-340]
	sub	r3, fp, #208
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r3, #3
	bhi	.L6
	ldr	r3, [fp, #-340]
	and	r3, r3, #255
	strb	r3, [fp, #-345]
	sub	r3, fp, #344
	sub	r3, r3, #1
	sub	r0, fp, #208
	mov	r2, #1
	mov	r1, r3
	bl	strncat
	sub	r3, fp, #344
	sub	r3, r3, #1
	sub	r0, fp, #308
	mov	r2, #1
	mov	r1, r3
	bl	strncat
	b	.L5
.L6:
	sub	r3, fp, #208
	mov	r0, r3
	bl	convert_ascii_to_binary
	str	r0, [fp, #-316]
	ldr	r0, [fp, #-316]
	bl	find_parity
	mov	r3, r0
	strb	r3, [fp, #-348]
	ldr	r0, [fp, #-316]
	bl	free
	sub	r1, fp, #348
	sub	r3, fp, #108
	mov	r2, #1
	mov	r0, r3
	bl	strncat
	sub	r3, fp, #208
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-344]
	add	r3, r2, r3
	str	r3, [fp, #-344]
	mov	r3, #0
	strb	r3, [fp, #-208]
	ldr	r3, [fp, #-340]
	and	r3, r3, #255
	strb	r3, [fp, #-347]
	sub	r3, fp, #344
	sub	r3, r3, #3
	sub	r0, fp, #208
	mov	r2, #1
	mov	r1, r3
	bl	strncat
	sub	r3, fp, #108
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r3, #8
	bne	.L7
	mov	r3, #0
	str	r3, [fp, #-336]
	mov	r3, #0
	str	r3, [fp, #-332]
	sub	r3, fp, #108
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	str	r3, [fp, #-328]
	b	.L8
.L17:
	sub	r2, fp, #108
	ldr	r3, [fp, #-328]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #49
	bne	.L9
	ldr	r3, [fp, #-332]
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-336]
	add	r3, r3, #1
	str	r3, [fp, #-336]
	b	.L9
.L10:
	ldr	r3, [fp, #-332]
	cmp	r3, #1
	bne	.L11
	ldr	r3, [fp, #-336]
	add	r3, r3, #2
	str	r3, [fp, #-336]
	b	.L9
.L11:
	ldr	r3, [fp, #-332]
	cmp	r3, #2
	bne	.L12
	ldr	r3, [fp, #-336]
	add	r3, r3, #4
	str	r3, [fp, #-336]
	b	.L9
.L12:
	ldr	r3, [fp, #-332]
	cmp	r3, #3
	bne	.L13
	ldr	r3, [fp, #-336]
	add	r3, r3, #8
	str	r3, [fp, #-336]
	b	.L9
.L13:
	ldr	r3, [fp, #-332]
	cmp	r3, #4
	bne	.L14
	ldr	r3, [fp, #-336]
	add	r3, r3, #16
	str	r3, [fp, #-336]
	b	.L9
.L14:
	ldr	r3, [fp, #-332]
	cmp	r3, #5
	bne	.L15
	ldr	r3, [fp, #-336]
	add	r3, r3, #32
	str	r3, [fp, #-336]
	b	.L9
.L15:
	ldr	r3, [fp, #-332]
	cmp	r3, #6
	bne	.L16
	ldr	r3, [fp, #-336]
	add	r3, r3, #64
	str	r3, [fp, #-336]
	b	.L9
.L16:
	ldr	r3, [fp, #-332]
	cmp	r3, #7
	bne	.L9
	ldr	r3, [fp, #-336]
	add	r3, r3, #128
	str	r3, [fp, #-336]
.L9:
	ldr	r3, [fp, #-332]
	add	r3, r3, #1
	str	r3, [fp, #-332]
	ldr	r3, [fp, #-328]
	sub	r3, r3, #1
	str	r3, [fp, #-328]
.L8:
	ldr	r3, [fp, #-328]
	cmp	r3, #0
	bge	.L17
	ldr	r3, [fp, #-336]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-336]
	ldr	r3, [fp, #-336]
	and	r3, r3, #255
	strb	r3, [fp, #-346]
	sub	r3, fp, #344
	sub	r3, r3, #2
	sub	r0, fp, #308
	mov	r2, #1
	mov	r1, r3
	bl	strncat
	mov	r3, #0
	strb	r3, [fp, #-108]
	ldr	r0, [fp, #-324]
	bl	ftell
	str	r0, [fp, #-312]
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-324]
	bl	fseek
	ldr	r0, [fp, #-324]
	bl	ftell
	mov	r2, r0
	ldr	r3, [fp, #-312]
	cmp	r3, r2
	beq	.L5
	mov	r3, #32
	strb	r3, [fp, #-345]
	sub	r3, fp, #344
	sub	r3, r3, #1
	sub	r0, fp, #308
	mov	r2, #1
	mov	r1, r3
	bl	strncat
	mov	r2, #0
	ldr	r1, [fp, #-312]
	ldr	r0, [fp, #-324]
	bl	fseek
	b	.L5
.L7:
	sub	r3, fp, #344
	sub	r3, r3, #3
	sub	r0, fp, #308
	mov	r2, #1
	mov	r1, r3
	bl	strncat
.L5:
	ldr	r3, [fp, #-340]
	cmn	r3, #1
	bne	.L20
	ldr	r0, [fp, #-324]
	bl	fclose
	ldr	r3, [fp, #-344]
	cmp	r3, #31
	bgt	.L21
	ldr	r3, .L24+4
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L24+20
	bl	fwrite
	mov	r3, #1
	b	.L22
.L21:
	ldr	r3, [fp, #-356]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L24+24
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-320]
	sub	r3, fp, #308
	mov	r0, r3
	bl	strlen
	mov	r1, r0
	sub	r0, fp, #308
	ldr	r3, [fp, #-320]
	mov	r2, #1
	bl	fwrite
	ldr	r0, [fp, #-320]
	bl	fclose
	mov	r3, #0
.L22:
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC5
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.section	.rodata
	.align	2
.LC6:
	.ascii	"1\000"
	.align	2
.LC7:
	.ascii	"0\000"
	.align	2
.LC8:
	.ascii	" \000"
	.text
	.align	2
	.global	convert_ascii_to_binary
	.syntax unified
	.arm
	.fpu softvfp
	.type	convert_ascii_to_binary, %function
convert_ascii_to_binary:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L27
	mov	r3, #0
	b	.L28
.L27:
	ldr	r0, [fp, #-32]
	bl	strlen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L29
.L35:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-21]
	mov	r3, #7
	str	r3, [fp, #-16]
	b	.L30
.L33:
	ldrb	r2, [fp, #-21]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	asr	r3, r2, r3
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L31
	ldr	r0, [fp, #-8]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	ldr	r2, .L36
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	b	.L32
.L31:
	ldr	r0, [fp, #-8]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	ldr	r2, .L36+4
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
.L32:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L30:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L33
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	beq	.L34
	ldr	r0, [fp, #-8]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	ldr	r2, .L36+8
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
.L34:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L29:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bcc	.L35
	ldr	r3, [fp, #-8]
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	convert_ascii_to_binary, .-convert_ascii_to_binary
	.align	2
	.global	find_parity
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_parity, %function
find_parity:
	@ 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	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L39
	mov	r3, #0
	b	.L40
.L39:
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L41
.L43:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #49
	bne	.L42
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L42:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L41:
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	bcc	.L43
	ldr	r3, [fp, #-12]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L44
	mov	r3, #48
	b	.L40
.L44:
	mov	r3, #49
.L40:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	find_parity, .-find_parity
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
