	.file	"973161.c"
	.intel_syntax noprefix
	.text
	.globl	wrongDepth
	.bss
	.align 8
	.type	wrongDepth, @object
	.size	wrongDepth, 8
wrongDepth:
	.zero	8
	.section	.rodata
	.align 8
.LC0:
	.string	"No source or output file specified"
.LC1:
	.string	"No output file specified"
	.align 8
.LC2:
	.string	"The specified file '%s' couldn't be read\n"
	.align 8
.LC3:
	.string	"Number of '[' doesn't match number of ']', %zd\n"
	.align 8
.LC4:
	.string	"Couldn't safe to temporary file 'tmp.asm'"
.LC5:
	.string	"r"
	.align 8
.LC6:
	.string	"nasm -f elf64 -o tmp.o tmp.asm"
.LC7:
	.string	"%s"
	.align 8
.LC8:
	.string	"ld -e main -dynamic-linker /lib64/ld-linux-x86-64.so.2 -lc tmp.o -o %s"
	.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, 576
	mov	DWORD PTR -564[rbp], edi
	mov	QWORD PTR -576[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -564[rbp], 1
	jg	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L12
.L2:
	cmp	DWORD PTR -564[rbp], 2
	jg	.L4
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 2
	jmp	.L12
.L4:
	mov	rax, QWORD PTR -576[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	getSrc
	mov	QWORD PTR -544[rbp], rax
	cmp	QWORD PTR -544[rbp], 0
	jne	.L5
	mov	rax, QWORD PTR -576[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 3
	jmp	.L12
.L5:
	mov	rax, QWORD PTR -544[rbp]
	mov	rdi, rax
	call	compile
	mov	DWORD PTR -548[rbp], eax
	cmp	DWORD PTR -548[rbp], 1
	jne	.L6
	mov	rax, QWORD PTR wrongDepth[rip]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 4
	jmp	.L12
.L6:
	cmp	DWORD PTR -548[rbp], 2
	jne	.L7
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 5
	jmp	.L12
.L7:
	mov	rax, QWORD PTR -544[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rsi, .LC5[rip]
	lea	rdi, .LC6[rip]
	call	popen@PLT
	mov	QWORD PTR -536[rbp], rax
	jmp	.L8
.L9:
	lea	rax, -528[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L8:
	mov	rdx, QWORD PTR -536[rbp]
	lea	rax, -528[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L9
	mov	rax, QWORD PTR -536[rbp]
	mov	rdi, rax
	call	pclose@PLT
	mov	rax, QWORD PTR -576[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	lea	rax, -528[rbp]
	mov	rcx, rdx
	lea	rdx, .LC8[rip]
	mov	esi, 512
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -528[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	popen@PLT
	mov	QWORD PTR -536[rbp], rax
	jmp	.L10
.L11:
	lea	rax, -528[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	mov	rdx, QWORD PTR -536[rbp]
	lea	rax, -528[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L11
	mov	rax, QWORD PTR -536[rbp]
	mov	rdi, rax
	call	pclose@PLT
	mov	eax, 0
.L12:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	getSrc
	.type	getSrc, @function
getSrc:
.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
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L15
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rcx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L16
.L15:
	mov	eax, 0
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	getSrc, .-getSrc
	.section	.rodata
.LC9:
	.string	"w"
.LC10:
	.string	"tmp.asm"
	.align 8
.LC11:
	.string	"extern putchar, getchar\nsection .bss\n\tdata resb 30000\n\nsection .text\n\tglobal main\nmain:\n\tmov rbx, data\n"
.LC12:
	.string	"\tinc rbx\n"
.LC13:
	.string	"\tdec rbx\n"
.LC14:
	.string	"\tinc byte [rbx]\n"
.LC15:
	.string	"\tdec byte [rbx]\n"
	.align 8
.LC16:
	.string	"\txor rdi, rdi\n\tmov dil, [rbx]\n\tcall putchar\n"
.LC17:
	.string	"\tcall getchar\n\tmov [rbx], al\n"
	.align 8
.LC18:
	.string	"\tcmp [rbx], byte 0\n\tjz .c_%zu\n.o_%zu:\n"
	.align 8
.LC19:
	.string	"\tcmp [rbx], byte 0\n\tjnz .o_%zu\n.c_%zu:\n"
	.align 8
.LC20:
	.string	"\tmov rdi, 0\n\tmov rax, 60\n\tsyscall\n"
	.text
	.globl	compile
	.type	compile, @function
compile:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	lea	rsi, .LC9[rip]
	lea	rdi, .LC10[rip]
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, rax
	mov	edx, 103
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	cmp	QWORD PTR -16[rbp], 0
	je	.L18
	mov	QWORD PTR -24[rbp], 0
	jmp	.L19
.L34:
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 43
	cmp	eax, 50
	ja	.L35
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L22[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L22[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L22:
	.long	.L29-.L22
	.long	.L28-.L22
	.long	.L27-.L22
	.long	.L26-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L25-.L22
	.long	.L35-.L22
	.long	.L24-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L35-.L22
	.long	.L23-.L22
	.long	.L35-.L22
	.long	.L21-.L22
	.text
.L24:
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, rax
	mov	edx, 9
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	jmp	.L30
.L25:
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, rax
	mov	edx, 9
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	jmp	.L30
.L29:
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	jmp	.L30
.L27:
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	jmp	.L30
.L26:
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, rax
	mov	edx, 44
	mov	esi, 1
	lea	rdi, .LC16[rip]
	call	fwrite@PLT
	jmp	.L30
.L28:
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	jmp	.L30
.L23:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	getMatchingClosing
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], -1
	jne	.L31
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L32
.L31:
	mov	rcx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L30
.L21:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	getMatchingOpening
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], -1
	jne	.L33
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L32
.L33:
	mov	rcx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L30
.L35:
	nop
.L30:
	add	QWORD PTR -24[rbp], 1
.L19:
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L34
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, rax
	mov	edx, 34
	mov	esi, 1
	lea	rdi, .LC20[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	jmp	.L32
.L18:
	mov	eax, 2
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	compile, .-compile
	.globl	getMatchingOpening
	.type	getMatchingOpening, @function
getMatchingOpening:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -8[rbp], 0
	jmp	.L37
.L44:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 91
	je	.L38
	cmp	eax, 93
	je	.L39
	jmp	.L43
.L38:
	sub	QWORD PTR -8[rbp], 1
	cmp	QWORD PTR -8[rbp], 0
	jne	.L45
	mov	rax, QWORD PTR -32[rbp]
	jmp	.L42
.L39:
	add	QWORD PTR -8[rbp], 1
	jmp	.L43
.L45:
	nop
.L43:
	sub	QWORD PTR -32[rbp], 1
.L37:
	cmp	QWORD PTR -32[rbp], -1
	jne	.L44
	mov	QWORD PTR wrongDepth[rip], 1
	mov	rax, -1
.L42:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	getMatchingOpening, .-getMatchingOpening
	.globl	getMatchingClosing
	.type	getMatchingClosing, @function
getMatchingClosing:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -8[rbp], 0
	jmp	.L47
.L54:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 91
	je	.L48
	cmp	eax, 93
	je	.L49
	jmp	.L51
.L48:
	add	QWORD PTR -8[rbp], 1
	jmp	.L51
.L49:
	sub	QWORD PTR -8[rbp], 1
	cmp	QWORD PTR -8[rbp], 0
	jne	.L55
	mov	rax, QWORD PTR -32[rbp]
	jmp	.L53
.L55:
	nop
.L51:
	add	QWORD PTR -32[rbp], 1
.L47:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L54
	mov	QWORD PTR wrongDepth[rip], -1
	mov	rax, -1
.L53:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	getMatchingClosing, .-getMatchingClosing
	.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	"973161.c"
	.text
	.global	wrongDepth
	.bss
	.align	2
	.type	wrongDepth, %object
	.size	wrongDepth, 4
wrongDepth:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"No source or output file specified\000"
	.align	2
.LC1:
	.ascii	"No output file specified\000"
	.align	2
.LC2:
	.ascii	"The specified file '%s' couldn't be read\012\000"
	.align	2
.LC3:
	.ascii	"Number of '[' doesn't match number of ']', %zd\012\000"
	.align	2
.LC4:
	.ascii	"Couldn't safe to temporary file 'tmp.asm'\000"
	.align	2
.LC5:
	.ascii	"r\000"
	.align	2
.LC6:
	.ascii	"nasm -f elf64 -o tmp.o tmp.asm\000"
	.align	2
.LC7:
	.ascii	"%s\000"
	.align	2
.LC8:
	.ascii	"ld -e main -dynamic-linker /lib64/ld-linux-x86-64.s"
	.ascii	"o.2 -lc tmp.o -o %s\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 = 536
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #536
	str	r0, [fp, #-536]
	str	r1, [fp, #-540]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-536]
	cmp	r3, #1
	bgt	.L2
	ldr	r0, .L14+4
	bl	puts
	mov	r3, #1
	b	.L12
.L2:
	ldr	r3, [fp, #-536]
	cmp	r3, #2
	bgt	.L4
	ldr	r0, .L14+8
	bl	puts
	mov	r3, #2
	b	.L12
.L4:
	ldr	r3, [fp, #-540]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	getSrc
	str	r0, [fp, #-532]
	ldr	r3, [fp, #-532]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-540]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L14+12
	bl	printf
	mov	r3, #3
	b	.L12
.L5:
	ldr	r0, [fp, #-532]
	bl	compile
	str	r0, [fp, #-528]
	ldr	r3, [fp, #-528]
	cmp	r3, #1
	bne	.L6
	ldr	r3, .L14+16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L14+20
	bl	printf
	mov	r3, #4
	b	.L12
.L6:
	ldr	r3, [fp, #-528]
	cmp	r3, #2
	bne	.L7
	ldr	r0, .L14+24
	bl	puts
	mov	r3, #5
	b	.L12
.L7:
	ldr	r0, [fp, #-532]
	bl	free
	ldr	r1, .L14+28
	ldr	r0, .L14+32
	bl	popen
	str	r0, [fp, #-524]
	b	.L8
.L9:
	sub	r3, fp, #520
	mov	r1, r3
	ldr	r0, .L14+36
	bl	printf
.L8:
	sub	r3, fp, #520
	ldr	r2, [fp, #-524]
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldr	r0, [fp, #-524]
	bl	pclose
	ldr	r3, [fp, #-540]
	add	r3, r3, #8
	ldr	r3, [r3]
	sub	r0, fp, #520
	ldr	r2, .L14+40
	mov	r1, #512
	bl	snprintf
	sub	r3, fp, #520
	ldr	r1, .L14+28
	mov	r0, r3
	bl	popen
	str	r0, [fp, #-524]
	b	.L10
.L11:
	sub	r3, fp, #520
	mov	r1, r3
	ldr	r0, .L14+36
	bl	printf
.L10:
	sub	r3, fp, #520
	ldr	r2, [fp, #-524]
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	ldr	r0, [fp, #-524]
	bl	pclose
	mov	r3, #0
.L12:
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	wrongDepth
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.align	2
	.global	getSrc
	.syntax unified
	.arm
	.fpu softvfp
	.type	getSrc, %function
getSrc:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r1, .L19
	ldr	r0, [fp, #-24]
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L17
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	fseek
	ldr	r0, [fp, #-16]
	bl	ftell
	mov	r3, r0
	str	r3, [fp, #-12]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	fseek
	ldr	r0, [fp, #-12]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	fread
	ldr	r0, [fp, #-16]
	bl	fclose
	ldr	r3, [fp, #-8]
	b	.L18
.L17:
	mov	r3, #0
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC5
	.size	getSrc, .-getSrc
	.section	.rodata
	.align	2
.LC10:
	.ascii	"w\000"
	.align	2
.LC11:
	.ascii	"tmp.asm\000"
	.align	2
.LC12:
	.ascii	"extern putchar, getchar\012section .bss\012\011data"
	.ascii	" resb 30000\012\012section .text\012\011global main"
	.ascii	"\012main:\012\011mov rbx, data\012\000"
	.align	2
.LC13:
	.ascii	"\011inc rbx\012\000"
	.align	2
.LC14:
	.ascii	"\011dec rbx\012\000"
	.align	2
.LC15:
	.ascii	"\011inc byte [rbx]\012\000"
	.align	2
.LC16:
	.ascii	"\011dec byte [rbx]\012\000"
	.align	2
.LC17:
	.ascii	"\011xor rdi, rdi\012\011mov dil, [rbx]\012\011call "
	.ascii	"putchar\012\000"
	.align	2
.LC18:
	.ascii	"\011call getchar\012\011mov [rbx], al\012\000"
	.align	2
.LC19:
	.ascii	"\011cmp [rbx], byte 0\012\011jz .c_%zu\012.o_%zu:\012"
	.ascii	"\000"
	.align	2
.LC20:
	.ascii	"\011cmp [rbx], byte 0\012\011jnz .o_%zu\012.c_%zu:\012"
	.ascii	"\000"
	.align	2
.LC21:
	.ascii	"\011mov rdi, 0\012\011mov rax, 60\012\011syscall\012"
	.ascii	"\000"
	.text
	.align	2
	.global	compile
	.syntax unified
	.arm
	.fpu softvfp
	.type	compile, %function
compile:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r1, .L40
	ldr	r0, .L40+4
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	mov	r2, #103
	mov	r1, #1
	ldr	r0, .L40+8
	bl	fwrite
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L22
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L23
.L38:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #43
	cmp	r3, #50
	ldrls	pc, [pc, r3, asl #2]
	b	.L39
.L26:
	.word	.L33
	.word	.L32
	.word	.L31
	.word	.L30
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L29
	.word	.L39
	.word	.L28
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L27
	.word	.L39
	.word	.L25
.L28:
	ldr	r3, [fp, #-12]
	mov	r2, #9
	mov	r1, #1
	ldr	r0, .L40+12
	bl	fwrite
	b	.L34
.L29:
	ldr	r3, [fp, #-12]
	mov	r2, #9
	mov	r1, #1
	ldr	r0, .L40+16
	bl	fwrite
	b	.L34
.L33:
	ldr	r3, [fp, #-12]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L40+20
	bl	fwrite
	b	.L34
.L31:
	ldr	r3, [fp, #-12]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L40+24
	bl	fwrite
	b	.L34
.L30:
	ldr	r3, [fp, #-12]
	mov	r2, #44
	mov	r1, #1
	ldr	r0, .L40+28
	bl	fwrite
	b	.L34
.L32:
	ldr	r3, [fp, #-12]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L40+32
	bl	fwrite
	b	.L34
.L27:
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	getMatchingClosing
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L35
	ldr	r0, [fp, #-12]
	bl	fclose
	mov	r3, #1
	b	.L36
.L35:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	ldr	r1, .L40+36
	ldr	r0, [fp, #-12]
	bl	fprintf
	b	.L34
.L25:
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	getMatchingOpening
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L37
	ldr	r0, [fp, #-12]
	bl	fclose
	mov	r3, #1
	b	.L36
.L37:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	ldr	r1, .L40+40
	ldr	r0, [fp, #-12]
	bl	fprintf
	b	.L34
.L39:
	nop
.L34:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L23:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L38
	ldr	r3, [fp, #-12]
	mov	r2, #34
	mov	r1, #1
	ldr	r0, .L40+44
	bl	fwrite
	ldr	r0, [fp, #-12]
	bl	fclose
	mov	r3, #0
	b	.L36
.L22:
	mov	r3, #2
.L36:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	compile, .-compile
	.align	2
	.global	getMatchingOpening
	.syntax unified
	.arm
	.fpu softvfp
	.type	getMatchingOpening, %function
getMatchingOpening:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L43
.L50:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #91
	beq	.L44
	cmp	r3, #93
	beq	.L45
	b	.L49
.L44:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L51
	ldr	r3, [fp, #-20]
	b	.L48
.L45:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L49
.L51:
	nop
.L49:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
.L43:
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L50
	ldr	r3, .L52
	mov	r2, #1
	str	r2, [r3]
	mvn	r3, #0
.L48:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L53:
	.align	2
.L52:
	.word	wrongDepth
	.size	getMatchingOpening, .-getMatchingOpening
	.align	2
	.global	getMatchingClosing
	.syntax unified
	.arm
	.fpu softvfp
	.type	getMatchingClosing, %function
getMatchingClosing:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L55
.L62:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #91
	beq	.L56
	cmp	r3, #93
	beq	.L57
	b	.L59
.L56:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L59
.L57:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L63
	ldr	r3, [fp, #-20]
	b	.L61
.L63:
	nop
.L59:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L55:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L62
	ldr	r3, .L64
	mvn	r2, #0
	str	r2, [r3]
	mvn	r3, #0
.L61:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L65:
	.align	2
.L64:
	.word	wrongDepth
	.size	getMatchingClosing, .-getMatchingClosing
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
