	.file	"261858.c"
	.intel_syntax noprefix
	.text
	.globl	mem
	.bss
	.align 32
	.type	mem, @object
	.size	mem, 30000
mem:
	.zero	30000
	.globl	fp
	.align 8
	.type	fp, @object
	.size	fp, 8
fp:
	.zero	8
	.globl	ptr
	.align 8
	.type	ptr, @object
	.size	ptr, 8
ptr:
	.zero	8
	.section	.rodata
.LC0:
	.string	"Input a character: "
.LC1:
	.string	" %c"
	.text
	.globl	run
	.type	run, @function
run:
.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, 16
	mov	rax, QWORD PTR fp[rip]
	mov	rdi, rax
	call	fgetc@PLT
	cmp	eax, -1
	je	.L2
	cmp	eax, -1
	jl	.L3
	cmp	eax, 93
	jg	.L3
	cmp	eax, 43
	jl	.L3
	sub	eax, 43
	cmp	eax, 50
	ja	.L3
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L5[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L5[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L12-.L5
	.long	.L11-.L5
	.long	.L10-.L5
	.long	.L9-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L8-.L5
	.long	.L3-.L5
	.long	.L7-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L6-.L5
	.long	.L3-.L5
	.long	.L4-.L5
	.text
.L8:
	mov	rax, QWORD PTR ptr[rip]
	sub	rax, 1
	mov	QWORD PTR ptr[rip], rax
	jmp	.L3
.L7:
	mov	rax, QWORD PTR ptr[rip]
	add	rax, 1
	mov	QWORD PTR ptr[rip], rax
	jmp	.L3
.L12:
	mov	rax, QWORD PTR ptr[rip]
	movzx	edx, BYTE PTR [rax]
	add	edx, 1
	mov	BYTE PTR [rax], dl
	jmp	.L3
.L10:
	mov	rax, QWORD PTR ptr[rip]
	movzx	edx, BYTE PTR [rax]
	sub	edx, 1
	mov	BYTE PTR [rax], dl
	jmp	.L3
.L11:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR ptr[rip]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L3
.L9:
	mov	rax, QWORD PTR ptr[rip]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	jmp	.L3
.L6:
	mov	rax, QWORD PTR ptr[rip]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L26
	mov	DWORD PTR -8[rbp], 0
.L17:
	mov	rax, QWORD PTR fp[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -9[rbp], al
	cmp	BYTE PTR -9[rbp], 91
	jne	.L14
	add	DWORD PTR -8[rbp], 1
	jmp	.L17
.L14:
	cmp	BYTE PTR -9[rbp], 93
	jne	.L16
	cmp	DWORD PTR -8[rbp], 0
	jle	.L16
	sub	DWORD PTR -8[rbp], 1
	jmp	.L15
.L16:
	cmp	BYTE PTR -9[rbp], 93
	jne	.L17
	cmp	DWORD PTR -8[rbp], 0
	jne	.L17
	mov	rax, QWORD PTR fp[rip]
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fseek@PLT
	nop
	jmp	.L26
.L15:
	jmp	.L17
.L4:
	mov	rax, QWORD PTR ptr[rip]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L27
	mov	DWORD PTR -4[rbp], 0
.L23:
	mov	rax, QWORD PTR fp[rip]
	mov	edx, 1
	mov	rsi, -2
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR fp[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -10[rbp], al
	cmp	BYTE PTR -10[rbp], 93
	jne	.L19
	add	DWORD PTR -4[rbp], 1
	jmp	.L23
.L19:
	cmp	BYTE PTR -10[rbp], 91
	jne	.L21
	cmp	DWORD PTR -4[rbp], 0
	jle	.L21
	sub	DWORD PTR -4[rbp], 1
	jmp	.L20
.L21:
	cmp	BYTE PTR -10[rbp], 91
	jne	.L23
	cmp	DWORD PTR -4[rbp], 0
	je	.L28
.L20:
	jmp	.L23
.L28:
	nop
	mov	rax, QWORD PTR fp[rip]
	mov	edx, 1
	mov	rsi, -1
	mov	rdi, rax
	call	fseek@PLT
	jmp	.L27
.L2:
	mov	eax, -1
	jmp	.L24
.L26:
	nop
	jmp	.L3
.L27:
	nop
.L3:
	mov	eax, 0
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	run, .-run
	.section	.rodata
	.align 8
.LC2:
	.string	"Specify a Brainfuck file to interpret."
.LC3:
	.string	"r"
.LC4:
	.string	"Brainfuck file not found."
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	lea	rax, mem[rip]
	mov	QWORD PTR ptr[rip], rax
	cmp	DWORD PTR -4[rbp], 1
	jg	.L30
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L31
.L30:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR fp[rip], rax
	mov	rax, QWORD PTR fp[rip]
	test	rax, rax
	jne	.L33
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L31
.L34:
	nop
.L33:
	mov	eax, 0
	call	run
	cmp	eax, -1
	jne	.L34
	mov	rax, QWORD PTR fp[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	QWORD PTR fp[rip], 0
	mov	eax, 0
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"261858.c"
	.text
	.global	mem
	.bss
	.align	2
	.type	mem, %object
	.size	mem, 30000
mem:
	.space	30000
	.comm	fp,4,4
	.comm	ptr,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Input a character: \000"
	.align	2
.LC1:
	.ascii	" %c\000"
	.text
	.align	2
	.global	run
	.syntax unified
	.arm
	.fpu softvfp
	.type	run, %function
run:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L29
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	cmn	r3, #1
	beq	.L2
	cmn	r3, #1
	blt	.L3
	cmp	r3, #93
	bgt	.L3
	cmp	r3, #43
	blt	.L3
	sub	r3, r3, #43
	cmp	r3, #50
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L5:
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L8
	.word	.L3
	.word	.L7
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L6
	.word	.L3
	.word	.L4
.L8:
	ldr	r3, .L29+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L29+4
	str	r3, [r2]
	b	.L3
.L7:
	ldr	r3, .L29+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L29+4
	str	r3, [r2]
	b	.L3
.L12:
	ldr	r3, .L29+4
	ldr	r3, [r3]
	ldrb	r2, [r3]	@ zero_extendqisi2
	add	r2, r2, #1
	and	r2, r2, #255
	strb	r2, [r3]
	b	.L3
.L10:
	ldr	r3, .L29+4
	ldr	r3, [r3]
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r2, r2, #1
	and	r2, r2, #255
	strb	r2, [r3]
	b	.L3
.L11:
	ldr	r0, .L29+8
	bl	printf
	ldr	r3, .L29+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L29+12
	bl	__isoc99_scanf
	b	.L3
.L9:
	ldr	r3, .L29+4
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	b	.L3
.L6:
	ldr	r3, .L29+4
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L26
	mov	r3, #0
	str	r3, [fp, #-12]
.L17:
	ldr	r3, .L29
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #91
	bne	.L14
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L17
.L14:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #93
	bne	.L16
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L16
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L15
.L16:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #93
	bne	.L17
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L17
	ldr	r3, .L29
	ldr	r3, [r3]
	mov	r2, #1
	mov	r1, #1
	mov	r0, r3
	bl	fseek
	nop
	b	.L26
.L15:
	b	.L17
.L4:
	ldr	r3, .L29+4
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L27
	mov	r3, #0
	str	r3, [fp, #-8]
.L23:
	ldr	r3, .L29
	ldr	r3, [r3]
	mov	r2, #1
	mvn	r1, #1
	mov	r0, r3
	bl	fseek
	ldr	r3, .L29
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-14]
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	cmp	r3, #93
	bne	.L19
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L23
.L19:
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	cmp	r3, #91
	bne	.L21
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L21
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L20
.L21:
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	cmp	r3, #91
	bne	.L23
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L28
.L20:
	b	.L23
.L28:
	nop
	ldr	r3, .L29
	ldr	r3, [r3]
	mov	r2, #1
	mvn	r1, #0
	mov	r0, r3
	bl	fseek
	b	.L27
.L2:
	mvn	r3, #0
	b	.L24
.L26:
	nop
	b	.L3
.L27:
	nop
.L3:
	mov	r3, #0
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	fp
	.word	ptr
	.word	.LC0
	.word	.LC1
	.size	run, .-run
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Specify a Brainfuck file to interpret.\000"
	.align	2
.LC3:
	.ascii	"r\000"
	.align	2
.LC4:
	.ascii	"Brainfuck file not found.\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, .L37
	ldr	r2, .L37+4
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bgt	.L32
	ldr	r0, .L37+8
	bl	puts
	mvn	r3, #0
	b	.L33
.L32:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L37+12
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L37+16
	str	r3, [r2]
	ldr	r3, .L37+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L35
	ldr	r0, .L37+20
	bl	puts
	mvn	r3, #0
	b	.L33
.L36:
	nop
.L35:
	bl	run
	mov	r3, r0
	cmn	r3, #1
	bne	.L36
	ldr	r3, .L37+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r3, .L37+16
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
.L33:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	ptr
	.word	mem
	.word	.LC2
	.word	.LC3
	.word	fp
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
