	.file	"316572.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"w"
.LC2:
	.string	"{\n\"data\": \""
.LC3:
	.string	"\\n"
.LC4:
	.string	"\\b"
.LC5:
	.string	"\\f"
.LC6:
	.string	"\\r"
.LC7:
	.string	"\\t"
.LC8:
	.string	"\"\n}"
	.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, 160
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -148[rbp], 2
	je	.L2
	mov	eax, -1
	jmp	.L15
.L2:
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -128[rbp], rax
	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	rax, QWORD PTR -160[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -112[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1869834798
	mov	WORD PTR 4[rax], 110
	lea	rax, -112[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, rax
	mov	edx, 11
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	jmp	.L4
.L14:
	cmp	BYTE PTR -129[rbp], 10
	jne	.L5
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	jmp	.L4
.L5:
	cmp	BYTE PTR -129[rbp], 8
	jne	.L6
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	jmp	.L4
.L6:
	cmp	BYTE PTR -129[rbp], 12
	jne	.L7
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	jmp	.L4
.L7:
	cmp	BYTE PTR -129[rbp], 13
	jne	.L8
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	jmp	.L4
.L8:
	cmp	BYTE PTR -129[rbp], 9
	jne	.L9
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	jmp	.L4
.L9:
	cmp	BYTE PTR -129[rbp], 34
	jne	.L10
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rax
	mov	edi, 92
	call	fputc@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rax
	mov	edi, 34
	call	fputc@PLT
	jmp	.L4
.L10:
	cmp	BYTE PTR -129[rbp], 92
	jne	.L11
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rax
	mov	edi, 92
	call	fputc@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rax
	mov	edi, 92
	call	fputc@PLT
	jmp	.L4
.L11:
	cmp	BYTE PTR -129[rbp], 34
	je	.L12
	movsx	eax, BYTE PTR -129[rbp]
	jmp	.L13
.L12:
	mov	eax, 39
.L13:
	mov	rdx, QWORD PTR -120[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
.L4:
	mov	rax, QWORD PTR -128[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -129[rbp], al
	cmp	BYTE PTR -129[rbp], -1
	jne	.L14
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -128[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L15:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"316572.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	".json\000"
	.align	2
.LC2:
	.ascii	"w\000"
	.align	2
.LC3:
	.ascii	"{\012\"data\": \"\000"
	.align	2
.LC4:
	.ascii	"\\n\000"
	.align	2
.LC5:
	.ascii	"\\b\000"
	.align	2
.LC6:
	.ascii	"\\f\000"
	.align	2
.LC7:
	.ascii	"\\r\000"
	.align	2
.LC8:
	.ascii	"\\t\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-128]
	cmp	r3, #2
	beq	.L2
	mvn	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	b	.L16
.L2:
	ldr	r3, [fp, #-132]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L18+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-116]
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-132]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #108
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #108
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #108
	add	r3, r3, r2
	ldr	r2, .L18+8
	mov	r0, r3
	mov	r1, r2
	mov	r3, #6
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #108
	ldr	r1, .L18+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	mov	r2, #11
	mov	r1, #1
	ldr	r0, .L18+16
	bl	fwrite
	b	.L4
.L17:
	ldr	r3, [fp, #-112]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L18+20
	bl	fwrite
	b	.L4
.L5:
	ldrb	r3, [fp, #-117]	@ zero_extendqisi2
	cmp	r3, #8
	bne	.L6
	ldr	r3, [fp, #-112]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L18+24
	bl	fwrite
	b	.L4
.L6:
	ldrb	r3, [fp, #-117]	@ zero_extendqisi2
	cmp	r3, #12
	bne	.L7
	ldr	r3, [fp, #-112]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L18+28
	bl	fwrite
	b	.L4
.L7:
	ldrb	r3, [fp, #-117]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L8
	ldr	r3, [fp, #-112]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L18+32
	bl	fwrite
	b	.L4
.L8:
	ldrb	r3, [fp, #-117]	@ zero_extendqisi2
	cmp	r3, #9
	bne	.L9
	ldr	r3, [fp, #-112]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L18+36
	bl	fwrite
	b	.L4
.L9:
	ldrb	r3, [fp, #-117]	@ zero_extendqisi2
	cmp	r3, #34
	bne	.L10
	ldr	r1, [fp, #-112]
	mov	r0, #92
	bl	fputc
	ldr	r1, [fp, #-112]
	mov	r0, #34
	bl	fputc
	b	.L4
.L10:
	ldrb	r3, [fp, #-117]	@ zero_extendqisi2
	cmp	r3, #92
	bne	.L11
	ldr	r1, [fp, #-112]
	mov	r0, #92
	bl	fputc
	ldr	r1, [fp, #-112]
	mov	r0, #92
	bl	fputc
	b	.L4
.L11:
	ldrb	r3, [fp, #-117]	@ zero_extendqisi2
	cmp	r3, #34
	beq	.L12
	ldrb	r3, [fp, #-117]	@ zero_extendqisi2
	b	.L13
.L12:
	mov	r3, #39
.L13:
	ldr	r1, [fp, #-112]
	mov	r0, r3
	bl	fputc
.L4:
	ldr	r0, [fp, #-116]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-117]
	ldrb	r3, [fp, #-117]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L5
	b	.L17
.L16:
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
