	.file	"125819.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"-r"
.LC1:
	.string	"-"
.LC2:
	.string	"r"
	.align 8
.LC3:
	.string	"-- b2x: cannot open infile: %s\n"
.LC4:
	.string	"w"
	.align 8
.LC5:
	.string	"-- b2x: cannot open outfile: %s\n"
.LC6:
	.string	"-- b2x: '%s' -> '%s'\n"
.LC7:
	.string	"%X"
	.align 8
.LC8:
	.string	"-- b2x: broken input: %02X %02X %s\n"
.LC9:
	.string	"%02X"
	.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, 368
	mov	DWORD PTR -356[rbp], edi
	mov	QWORD PTR -368[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -340[rbp], 0
	mov	QWORD PTR -320[rbp], 0
	mov	QWORD PTR -312[rbp], 0
	mov	DWORD PTR -344[rbp], 1
	jmp	.L2
.L6:
	mov	eax, DWORD PTR -344[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L3
	mov	DWORD PTR -340[rbp], 1
	jmp	.L4
.L3:
	cmp	QWORD PTR -320[rbp], 0
	jne	.L5
	mov	eax, DWORD PTR -344[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -320[rbp], rax
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -344[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -368[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -312[rbp], rax
.L4:
	add	DWORD PTR -344[rbp], 1
.L2:
	mov	eax, DWORD PTR -344[rbp]
	cmp	eax, DWORD PTR -356[rbp]
	jl	.L6
	cmp	QWORD PTR -320[rbp], 0
	je	.L7
	mov	rax, QWORD PTR -320[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L8
.L7:
	mov	rax, QWORD PTR stdin[rip]
	mov	QWORD PTR -304[rbp], rax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -320[rbp], rax
	jmp	.L9
.L8:
	mov	rax, QWORD PTR -320[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -304[rbp], rax
	cmp	QWORD PTR -304[rbp], 0
	jne	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -320[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L28
.L9:
	cmp	QWORD PTR -312[rbp], 0
	je	.L11
	mov	rax, QWORD PTR -312[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L11
	mov	rax, QWORD PTR stdout[rip]
	mov	QWORD PTR -296[rbp], rax
	jmp	.L12
.L11:
	cmp	QWORD PTR -312[rbp], 0
	jne	.L13
	mov	rax, QWORD PTR -320[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L14
	lea	rax, .LC1[rip]
	mov	QWORD PTR -312[rbp], rax
	jmp	.L13
.L14:
	mov	rdx, QWORD PTR -320[rbp]
	lea	rax, -272[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -272[rbp]
	mov	esi, 46
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -288[rbp], rax
	cmp	QWORD PTR -288[rbp], 0
	jne	.L15
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -272[rbp]
	add	rax, rdx
	mov	QWORD PTR -288[rbp], rax
.L15:
	cmp	DWORD PTR -340[rbp], 0
	je	.L16
	mov	rax, QWORD PTR -288[rbp]
	mov	WORD PTR [rax], 28462
	mov	BYTE PTR 2[rax], 0
	jmp	.L17
.L16:
	mov	rax, QWORD PTR -288[rbp]
	mov	DWORD PTR [rax], 7892782
.L17:
	lea	rax, -272[rbp]
	mov	QWORD PTR -312[rbp], rax
.L13:
	mov	rax, QWORD PTR -312[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L18
	mov	rax, QWORD PTR stdout[rip]
	mov	QWORD PTR -296[rbp], rax
	jmp	.L12
.L18:
	mov	rax, QWORD PTR -312[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -296[rbp], rax
	cmp	QWORD PTR -296[rbp], 0
	jne	.L12
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -312[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L28
.L12:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -312[rbp]
	mov	rdx, QWORD PTR -320[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	DWORD PTR -340[rbp], 0
	je	.L19
	mov	BYTE PTR -273[rbp], 0
.L24:
	mov	rax, QWORD PTR -304[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -336[rbp], eax
	cmp	DWORD PTR -336[rbp], 10
	jne	.L20
	mov	rax, QWORD PTR -304[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -336[rbp], eax
.L20:
	mov	rax, QWORD PTR -304[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -324[rbp], eax
	cmp	DWORD PTR -336[rbp], -1
	je	.L25
	cmp	DWORD PTR -324[rbp], -1
	je	.L25
	mov	eax, DWORD PTR -336[rbp]
	mov	BYTE PTR -275[rbp], al
	mov	eax, DWORD PTR -324[rbp]
	mov	BYTE PTR -274[rbp], al
	mov	DWORD PTR -348[rbp], -1
	lea	rdx, -348[rbp]
	lea	rax, -275[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR -348[rbp]
	test	eax, eax
	js	.L22
	mov	eax, DWORD PTR -348[rbp]
	cmp	eax, 255
	jle	.L23
.L22:
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, QWORD PTR -320[rbp]
	mov	ecx, DWORD PTR -324[rbp]
	mov	edx, DWORD PTR -336[rbp]
	mov	r8, rsi
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L25
.L23:
	mov	eax, DWORD PTR -348[rbp]
	mov	rdx, QWORD PTR -296[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	putc@PLT
	jmp	.L24
.L19:
	mov	DWORD PTR -332[rbp], 0
	jmp	.L26
.L27:
	mov	edx, DWORD PTR -328[rbp]
	mov	rax, QWORD PTR -296[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -332[rbp], 2
	cmp	DWORD PTR -332[rbp], 72
	jle	.L26
	mov	rax, QWORD PTR -296[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	DWORD PTR -332[rbp], 0
.L26:
	mov	rax, QWORD PTR -304[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -328[rbp], eax
	cmp	DWORD PTR -328[rbp], -1
	jne	.L27
	mov	rax, QWORD PTR -296[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
.L25:
	mov	eax, 0
.L28:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	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	"125819.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"-r\000"
	.align	2
.LC1:
	.ascii	"-\000"
	.align	2
.LC2:
	.ascii	"r\000"
	.align	2
.LC3:
	.ascii	"-- b2x: cannot open infile: %s\012\000"
	.align	2
.LC4:
	.ascii	".o\000"
	.align	2
.LC5:
	.ascii	".ox\000"
	.align	2
.LC6:
	.ascii	"w\000"
	.align	2
.LC7:
	.ascii	"-- b2x: cannot open outfile: %s\012\000"
	.align	2
.LC8:
	.ascii	"-- b2x: '%s' -> '%s'\012\000"
	.align	2
.LC9:
	.ascii	"%X\000"
	.align	2
.LC10:
	.ascii	"-- b2x: broken input: %02X %02X %s\012\000"
	.align	2
.LC11:
	.ascii	"%02X\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 320
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #328
	str	r0, [fp, #-320]
	str	r1, [fp, #-324]
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-308]
	mov	r3, #0
	str	r3, [fp, #-304]
	mov	r3, #0
	str	r3, [fp, #-300]
	mov	r3, #1
	str	r3, [fp, #-312]
	b	.L2
.L6:
	ldr	r3, [fp, #-312]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-324]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L30+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	mov	r3, #1
	str	r3, [fp, #-308]
	b	.L4
.L3:
	ldr	r3, [fp, #-304]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-312]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-324]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-304]
	b	.L4
.L5:
	ldr	r3, [fp, #-312]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-324]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-300]
.L4:
	ldr	r3, [fp, #-312]
	add	r3, r3, #1
	str	r3, [fp, #-312]
.L2:
	ldr	r2, [fp, #-312]
	ldr	r3, [fp, #-320]
	cmp	r2, r3
	blt	.L6
	ldr	r3, [fp, #-304]
	cmp	r3, #0
	beq	.L7
	ldr	r1, .L30+8
	ldr	r0, [fp, #-304]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
.L7:
	ldr	r3, .L30+12
	ldr	r3, [r3]
	str	r3, [fp, #-296]
	ldr	r3, .L30+8
	str	r3, [fp, #-304]
	b	.L9
.L8:
	ldr	r1, .L30+16
	ldr	r0, [fp, #-304]
	bl	fopen
	str	r0, [fp, #-296]
	ldr	r3, [fp, #-296]
	cmp	r3, #0
	bne	.L9
	ldr	r3, .L30+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-304]
	ldr	r1, .L30+24
	mov	r0, r3
	bl	fprintf
	mvn	r3, #0
	b	.L28
.L9:
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	beq	.L11
	ldr	r1, .L30+8
	ldr	r0, [fp, #-300]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	ldr	r3, .L30+28
	ldr	r3, [r3]
	str	r3, [fp, #-292]
	b	.L12
.L11:
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	bne	.L13
	ldr	r1, .L30+8
	ldr	r0, [fp, #-304]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	ldr	r3, .L30+8
	str	r3, [fp, #-300]
	b	.L13
.L14:
	sub	r3, fp, #264
	ldr	r1, [fp, #-304]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #264
	mov	r1, #46
	mov	r0, r3
	bl	strrchr
	str	r0, [fp, #-288]
	ldr	r3, [fp, #-288]
	cmp	r3, #0
	bne	.L15
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #264
	add	r3, r3, r2
	str	r3, [fp, #-288]
.L15:
	ldr	r3, [fp, #-308]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-288]
	ldr	r2, .L30+32
	mov	r0, r3
	mov	r1, r2
	mov	r3, #3
	mov	r2, r3
	bl	memcpy
	b	.L17
.L16:
	ldr	r3, [fp, #-288]
	ldr	r2, .L30+36
	mov	r0, r3
	mov	r1, r2
	mov	r3, #4
	mov	r2, r3
	bl	memcpy
.L17:
	sub	r3, fp, #264
	str	r3, [fp, #-300]
.L13:
	ldr	r1, .L30+8
	ldr	r0, [fp, #-300]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	ldr	r3, .L30+28
	ldr	r3, [r3]
	str	r3, [fp, #-292]
	b	.L12
.L18:
	ldr	r1, .L30+40
	ldr	r0, [fp, #-300]
	bl	fopen
	str	r0, [fp, #-292]
	ldr	r3, [fp, #-292]
	cmp	r3, #0
	bne	.L12
	ldr	r3, .L30+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-300]
	ldr	r1, .L30+44
	mov	r0, r3
	bl	fprintf
	mvn	r3, #0
	b	.L28
.L12:
	ldr	r3, .L30+20
	ldr	r0, [r3]
	ldr	r3, [fp, #-300]
	ldr	r2, [fp, #-304]
	ldr	r1, .L30+48
	bl	fprintf
	ldr	r3, [fp, #-308]
	cmp	r3, #0
	beq	.L19
	mov	r3, #0
	strb	r3, [fp, #-266]
.L24:
	ldr	r0, [fp, #-296]
	bl	getc
	str	r0, [fp, #-284]
	ldr	r3, [fp, #-284]
	cmp	r3, #10
	bne	.L20
	ldr	r0, [fp, #-296]
	bl	getc
	str	r0, [fp, #-284]
.L20:
	ldr	r0, [fp, #-296]
	bl	getc
	str	r0, [fp, #-272]
	ldr	r3, [fp, #-284]
	cmn	r3, #1
	beq	.L25
	ldr	r3, [fp, #-272]
	cmn	r3, #1
	beq	.L25
	ldr	r3, [fp, #-284]
	and	r3, r3, #255
	strb	r3, [fp, #-268]
	ldr	r3, [fp, #-272]
	and	r3, r3, #255
	strb	r3, [fp, #-267]
	mvn	r3, #0
	str	r3, [fp, #-316]
	sub	r2, fp, #316
	sub	r3, fp, #268
	ldr	r1, .L30+52
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-316]
	cmp	r3, #0
	blt	.L22
	ldr	r3, [fp, #-316]
	cmp	r3, #255
	ble	.L23
.L22:
	ldr	r3, .L30+20
	ldr	r0, [r3]
	ldr	r3, [fp, #-304]
	str	r3, [sp]
	ldr	r3, [fp, #-272]
	ldr	r2, [fp, #-284]
	ldr	r1, .L30+56
	bl	fprintf
	b	.L25
.L23:
	ldr	r3, [fp, #-316]
	ldr	r1, [fp, #-292]
	mov	r0, r3
	bl	putc
	b	.L24
.L19:
	mov	r3, #0
	str	r3, [fp, #-280]
	b	.L26
.L27:
	ldr	r2, [fp, #-276]
	ldr	r1, .L30+60
	ldr	r0, [fp, #-292]
	bl	fprintf
	ldr	r3, [fp, #-280]
	add	r3, r3, #2
	str	r3, [fp, #-280]
	ldr	r3, [fp, #-280]
	cmp	r3, #72
	ble	.L26
	ldr	r1, [fp, #-292]
	mov	r0, #10
	bl	fputc
	mov	r3, #0
	str	r3, [fp, #-280]
.L26:
	ldr	r0, [fp, #-296]
	bl	getc
	str	r0, [fp, #-276]
	ldr	r3, [fp, #-276]
	cmn	r3, #1
	bne	.L27
	ldr	r1, [fp, #-292]
	mov	r0, #10
	bl	fputc
.L25:
	mov	r3, #0
.L28:
	ldr	r2, .L30
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC12
	.word	.LC0
	.word	.LC1
	.word	stdin
	.word	.LC2
	.word	stderr
	.word	.LC3
	.word	stdout
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
