	.file	"76700757.c"
	.intel_syntax noprefix
	.text
	.globl	decode
	.type	decode, @function
decode:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 3500
	cmp	eax, -149
	jl	.L2
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 3500
	cmp	eax, 149
	jg	.L2
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 1750
	cmp	eax, -149
	jl	.L2
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 1750
	cmp	eax, 149
	jg	.L2
	mov	eax, 91
	jmp	.L1
.L2:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 880
	cmp	eax, -149
	jl	.L4
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 880
	cmp	eax, 149
	jg	.L4
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 880
	cmp	eax, -149
	jl	.L4
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 880
	cmp	eax, 149
	jg	.L4
	mov	eax, 48
	jmp	.L1
.L4:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 880
	cmp	eax, -149
	jl	.L5
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 880
	cmp	eax, 149
	jg	.L5
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 2590
	cmp	eax, -149
	jl	.L5
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 2590
	cmp	eax, 149
	jg	.L5
	mov	eax, 49
	jmp	.L1
.L5:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 880
	cmp	eax, -149
	jl	.L6
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 880
	cmp	eax, 149
	jg	.L6
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 13900
	cmp	eax, -149
	jl	.L6
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 13900
	cmp	eax, 149
	jg	.L6
	mov	eax, 93
	jmp	.L1
.L6:
.L1:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	decode, .-decode
	.globl	abs
	.type	abs, @function
abs:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	jns	.L8
	mov	eax, DWORD PTR -4[rbp]
	neg	eax
	jmp	.L9
.L8:
	mov	eax, DWORD PTR -4[rbp]
.L9:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	abs, .-abs
	.section	.rodata
.LC0:
	.string	"usage = %s fileName output\n"
.LC1:
	.string	"r"
.LC2:
	.string	"w"
.LC3:
	.string	"]\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 352
	mov	DWORD PTR -340[rbp], edi
	mov	QWORD PTR -352[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -340[rbp], 2
	jg	.L11
	mov	rax, QWORD PTR -352[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L11:
	mov	WORD PTR -274[rbp], 32
	mov	QWORD PTR -312[rbp], 0
	mov	rax, QWORD PTR -352[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -304[rbp], rax
	mov	rax, QWORD PTR -352[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -296[rbp], rax
	mov	DWORD PTR -320[rbp], 0
	mov	QWORD PTR -288[rbp], 0
	jmp	.L12
.L18:
	lea	rdx, -274[rbp]
	lea	rax, -272[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -312[rbp], rax
	mov	DWORD PTR -320[rbp], 0
	jmp	.L13
.L17:
	mov	eax, DWORD PTR -320[rbp]
	and	eax, 1
	test	eax, eax
	je	.L14
	mov	rax, QWORD PTR -312[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -288[rbp], rax
	cmp	QWORD PTR -288[rbp], 0
	je	.L15
	mov	rax, QWORD PTR -288[rbp]
	mov	BYTE PTR [rax], 0
.L15:
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -316[rbp], eax
	mov	edx, DWORD PTR -316[rbp]
	mov	eax, DWORD PTR -324[rbp]
	mov	esi, edx
	mov	edi, eax
	call	decode
	mov	BYTE PTR -325[rbp], al
	movsx	eax, BYTE PTR -325[rbp]
	mov	rdx, QWORD PTR -296[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	jmp	.L16
.L14:
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -324[rbp], eax
.L16:
	lea	rax, -274[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -312[rbp], rax
	add	DWORD PTR -320[rbp], 1
.L13:
	cmp	QWORD PTR -312[rbp], 0
	jne	.L17
.L12:
	mov	rdx, QWORD PTR -304[rbp]
	lea	rax, -272[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L18
	mov	rax, QWORD PTR -296[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -304[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -296[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"76700757.c"
	.text
	.align	2
	.global	decode
	.syntax unified
	.arm
	.fpu softvfp
	.type	decode, %function
decode:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #3488
	sub	r3, r3, #12
	cmn	r3, #149
	blt	.L2
	ldr	r3, [fp, #-8]
	sub	r3, r3, #3488
	sub	r3, r3, #12
	cmp	r3, #149
	bgt	.L2
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1744
	sub	r3, r3, #6
	cmn	r3, #149
	blt	.L2
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1744
	sub	r3, r3, #6
	cmp	r3, #149
	bgt	.L2
	mov	r3, #91
	b	.L1
.L2:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #880
	cmn	r3, #149
	blt	.L4
	ldr	r3, [fp, #-8]
	sub	r3, r3, #880
	cmp	r3, #149
	bgt	.L4
	ldr	r3, [fp, #-12]
	sub	r3, r3, #880
	cmn	r3, #149
	blt	.L4
	ldr	r3, [fp, #-12]
	sub	r3, r3, #880
	cmp	r3, #149
	bgt	.L4
	mov	r3, #48
	b	.L1
.L4:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #880
	cmn	r3, #149
	blt	.L5
	ldr	r3, [fp, #-8]
	sub	r3, r3, #880
	cmp	r3, #149
	bgt	.L5
	ldr	r3, [fp, #-12]
	sub	r3, r3, #2576
	sub	r3, r3, #14
	cmn	r3, #149
	blt	.L5
	ldr	r3, [fp, #-12]
	sub	r3, r3, #2576
	sub	r3, r3, #14
	cmp	r3, #149
	bgt	.L5
	mov	r3, #49
	b	.L1
.L5:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #880
	cmn	r3, #149
	blt	.L6
	ldr	r3, [fp, #-8]
	sub	r3, r3, #880
	cmp	r3, #149
	bgt	.L6
	ldr	r3, [fp, #-12]
	sub	r3, r3, #13888
	sub	r3, r3, #12
	cmn	r3, #149
	blt	.L6
	ldr	r3, [fp, #-12]
	sub	r3, r3, #13888
	sub	r3, r3, #12
	cmp	r3, #149
	bgt	.L6
	mov	r3, #93
	b	.L1
.L6:
.L1:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	decode, .-decode
	.align	2
	.global	abs
	.syntax unified
	.arm
	.fpu softvfp
	.type	abs, %function
abs:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L8
	ldr	r3, [fp, #-8]
	rsb	r3, r3, #0
	b	.L9
.L8:
	ldr	r3, [fp, #-8]
.L9:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	abs, .-abs
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage = %s fileName output\012\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"w\000"
	.align	2
.LC3:
	.ascii	"]\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 304
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #304
	str	r0, [fp, #-304]
	str	r1, [fp, #-308]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-304]
	cmp	r3, #2
	bgt	.L11
	ldr	r3, [fp, #-308]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L21+4
	bl	printf
	mov	r0, #0
	bl	exit
.L11:
	sub	r3, fp, #4
	sub	r3, r3, #264
	mov	r2, #32
	strh	r2, [r3]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-292]
	ldr	r3, [fp, #-308]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L21+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-284]
	ldr	r3, [fp, #-308]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L21+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-280]
	mov	r3, #0
	str	r3, [fp, #-288]
	mov	r3, #0
	str	r3, [fp, #-276]
	b	.L12
.L18:
	sub	r2, fp, #268
	sub	r3, fp, #264
	mov	r1, r2
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-292]
	mov	r3, #0
	str	r3, [fp, #-288]
	b	.L13
.L17:
	ldr	r3, [fp, #-288]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L14
	mov	r1, #10
	ldr	r0, [fp, #-292]
	bl	strchr
	str	r0, [fp, #-276]
	ldr	r3, [fp, #-276]
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-276]
	mov	r2, #0
	strb	r2, [r3]
.L15:
	ldr	r0, [fp, #-292]
	bl	atoi
	str	r0, [fp, #-272]
	ldr	r1, [fp, #-272]
	ldr	r0, [fp, #-296]
	bl	decode
	mov	r3, r0
	strb	r3, [fp, #-297]
	ldrb	r3, [fp, #-297]	@ zero_extendqisi2
	ldr	r1, [fp, #-280]
	mov	r0, r3
	bl	fputc
	b	.L16
.L14:
	ldr	r0, [fp, #-292]
	bl	atoi
	str	r0, [fp, #-296]
.L16:
	sub	r3, fp, #268
	mov	r1, r3
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-292]
	ldr	r3, [fp, #-288]
	add	r3, r3, #1
	str	r3, [fp, #-288]
.L13:
	ldr	r3, [fp, #-292]
	cmp	r3, #0
	bne	.L17
.L12:
	sub	r3, fp, #264
	ldr	r2, [fp, #-284]
	mov	r1, #256
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-280]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L21+16
	bl	fwrite
	ldr	r0, [fp, #-284]
	bl	fclose
	ldr	r0, [fp, #-280]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
