	.file	"792086.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: ./puzzletxt2bin infile.txt outfile.bin\n"
.LC1:
	.string	"r"
.LC2:
	.string	"wb"
.LC3:
	.string	"Line: %s"
	.align 8
.LC4:
	.string	"line %d: Invalid input (line shorter than 81 bytes)\n"
.LC5:
	.string	"P: "
.LC6:
	.string	"%d"
	.align 8
.LC7:
	.string	"line %d: Invalid input (found non-digit character)\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, 320
	mov	DWORD PTR -308[rbp], edi
	mov	QWORD PTR -320[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -280[rbp], 0
	mov	QWORD PTR -288[rbp], 0
	mov	DWORD PTR -300[rbp], -1
	mov	DWORD PTR -292[rbp], 1
	cmp	DWORD PTR -308[rbp], 2
	jg	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 46
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L17
.L2:
	mov	rax, QWORD PTR -320[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -272[rbp], rax
	mov	rax, QWORD PTR -320[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -264[rbp], rax
	mov	rax, QWORD PTR -272[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -280[rbp], rax
	cmp	QWORD PTR -280[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR -272[rbp]
	mov	rdi, rax
	call	perror@PLT
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -264[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -288[rbp], rax
	cmp	QWORD PTR -288[rbp], 0
	jne	.L6
	mov	rax, QWORD PTR -264[rbp]
	mov	rdi, rax
	call	perror@PLT
	jmp	.L5
.L6:
	lea	rax, -144[rbp]
	mov	edx, 128
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	jmp	.L7
.L14:
	lea	rax, -256[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -256[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 80
	ja	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -292[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L5
.L8:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -296[rbp], 0
	jmp	.L9
.L13:
	mov	eax, DWORD PTR -296[rbp]
	cdqe
	movzx	eax, BYTE PTR -256[rbp+rax]
	cmp	al, 46
	jne	.L10
	mov	eax, DWORD PTR -296[rbp]
	cdqe
	mov	BYTE PTR -144[rbp+rax], 0
	jmp	.L11
.L10:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -296[rbp]
	cdqe
	movzx	eax, BYTE PTR -256[rbp+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	.L12
	mov	eax, DWORD PTR -296[rbp]
	cdqe
	movzx	eax, BYTE PTR -256[rbp+rax]
	lea	edx, -48[rax]
	mov	eax, DWORD PTR -296[rbp]
	cdqe
	mov	BYTE PTR -144[rbp+rax], dl
	mov	eax, DWORD PTR -296[rbp]
	cdqe
	movzx	eax, BYTE PTR -144[rbp+rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L11
.L12:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -292[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L11:
	add	DWORD PTR -296[rbp], 1
.L9:
	cmp	DWORD PTR -296[rbp], 80
	jle	.L13
	mov	edi, 10
	call	putchar@PLT
	mov	rdx, QWORD PTR -288[rbp]
	lea	rax, -144[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 128
	mov	rdi, rax
	call	fwrite@PLT
	add	DWORD PTR -292[rbp], 1
.L7:
	mov	rdx, QWORD PTR -280[rbp]
	lea	rax, -256[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L14
	mov	DWORD PTR -300[rbp], 0
.L5:
	cmp	QWORD PTR -288[rbp], 0
	je	.L15
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L15:
	cmp	QWORD PTR -280[rbp], 0
	je	.L16
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L16:
	mov	eax, DWORD PTR -300[rbp]
.L17:
	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
.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	"792086.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: ./puzzletxt2bin infile.txt outfile.bin\012\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"wb\000"
	.align	2
.LC3:
	.ascii	"Line: %s\000"
	.align	2
.LC4:
	.ascii	"line %d: Invalid input (line shorter than 81 bytes)"
	.ascii	"\012\000"
	.align	2
.LC5:
	.ascii	"P: \000"
	.align	2
.LC6:
	.ascii	"%d\000"
	.align	2
.LC7:
	.ascii	"line %d: Invalid input (found non-digit character)\012"
	.ascii	"\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #272
	str	r0, [fp, #-272]
	str	r1, [fp, #-276]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-248]
	mov	r3, #0
	str	r3, [fp, #-264]
	mvn	r3, #0
	str	r3, [fp, #-260]
	mov	r3, #1
	str	r3, [fp, #-252]
	ldr	r3, [fp, #-272]
	cmp	r3, #2
	bgt	.L2
	ldr	r3, .L19+4
	ldr	r3, [r3]
	mov	r2, #46
	mov	r1, #1
	ldr	r0, .L19+8
	bl	fwrite
	mov	r3, #1
	b	.L17
.L2:
	ldr	r3, [fp, #-276]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-244]
	ldr	r3, [fp, #-276]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-240]
	ldr	r1, .L19+12
	ldr	r0, [fp, #-244]
	bl	fopen
	str	r0, [fp, #-248]
	ldr	r3, [fp, #-248]
	cmp	r3, #0
	bne	.L4
	ldr	r0, [fp, #-244]
	bl	perror
	b	.L5
.L4:
	ldr	r1, .L19+16
	ldr	r0, [fp, #-240]
	bl	fopen
	str	r0, [fp, #-264]
	ldr	r3, [fp, #-264]
	cmp	r3, #0
	bne	.L6
	ldr	r0, [fp, #-240]
	bl	perror
	b	.L5
.L6:
	sub	r3, fp, #136
	mov	r2, #128
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L7
.L14:
	sub	r3, fp, #236
	mov	r1, r3
	ldr	r0, .L19+20
	bl	printf
	sub	r3, fp, #236
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r3, #80
	bhi	.L8
	ldr	r3, .L19+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-252]
	ldr	r1, .L19+24
	mov	r0, r3
	bl	fprintf
	b	.L5
.L8:
	ldr	r0, .L19+28
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-256]
	b	.L9
.L13:
	sub	r2, fp, #236
	ldr	r3, [fp, #-256]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L10
	sub	r2, fp, #136
	ldr	r3, [fp, #-256]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	b	.L11
.L10:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	sub	r1, fp, #236
	ldr	r3, [fp, #-256]
	add	r3, r1, 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	.L12
	sub	r2, fp, #236
	ldr	r3, [fp, #-256]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	and	r1, r3, #255
	sub	r2, fp, #136
	ldr	r3, [fp, #-256]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	sub	r2, fp, #136
	ldr	r3, [fp, #-256]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L19+32
	bl	printf
	b	.L11
.L12:
	ldr	r3, .L19+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-252]
	ldr	r1, .L19+36
	mov	r0, r3
	bl	fprintf
.L11:
	ldr	r3, [fp, #-256]
	add	r3, r3, #1
	str	r3, [fp, #-256]
.L9:
	ldr	r3, [fp, #-256]
	cmp	r3, #80
	ble	.L13
	mov	r0, #10
	bl	putchar
	sub	r0, fp, #136
	ldr	r3, [fp, #-264]
	mov	r2, #1
	mov	r1, #128
	bl	fwrite
	ldr	r3, [fp, #-252]
	add	r3, r3, #1
	str	r3, [fp, #-252]
.L7:
	sub	r3, fp, #236
	ldr	r2, [fp, #-248]
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	mov	r3, #0
	str	r3, [fp, #-260]
.L5:
	ldr	r3, [fp, #-264]
	cmp	r3, #0
	beq	.L15
	ldr	r0, [fp, #-264]
	bl	fclose
.L15:
	ldr	r3, [fp, #-248]
	cmp	r3, #0
	beq	.L16
	ldr	r0, [fp, #-248]
	bl	fclose
.L16:
	ldr	r3, [fp, #-260]
.L17:
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC8
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
