	.file	"680946.c"
	.intel_syntax noprefix
	.text
	.globl	prog_size
	.data
	.align 4
	.type	prog_size, @object
	.size	prog_size, 4
prog_size:
	.long	256
	.globl	tape_size
	.align 4
	.type	tape_size, @object
	.size	tape_size, 4
tape_size:
	.long	8
	.globl	debug_level
	.bss
	.align 4
	.type	debug_level, @object
	.size	debug_level, 4
debug_level:
	.zero	4
	.globl	state
	.align 8
	.type	state, @object
	.size	state, 8
state:
	.zero	8
	.text
	.globl	clear_state
	.type	clear_state, @function
clear_state:
.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, 32
	mov	rax, QWORD PTR state[rip]
	test	rax, rax
	jne	.L2
	mov	eax, DWORD PTR prog_size[rip]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR state[rip], rax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L3
.L4:
	mov	rdx, QWORD PTR state[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	add	DWORD PTR -20[rbp], 1
.L3:
	mov	eax, DWORD PTR prog_size[rip]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L4
.L2:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L5
.L8:
	mov	rdx, QWORD PTR state[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L6
.L7:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
.L6:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L7
	mov	rdx, QWORD PTR state[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	add	DWORD PTR -20[rbp], 1
.L5:
	mov	eax, DWORD PTR prog_size[rip]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L8
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	clear_state, .-clear_state
	.section	.rodata
.LC0:
	.string	"saving state (%d, %d, '%s')\n"
	.text
	.globl	save_state
	.type	save_state, @function
save_state:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	mov	eax, DWORD PTR debug_level[rip]
	cmp	eax, 1
	jle	.L10
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, QWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	r8, rsi
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L10:
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -24[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rdx, QWORD PTR state[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rdx, QWORD PTR state[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	save_state, .-save_state
	.globl	check_state
	.type	check_state, @function
check_state:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	mov	rdx, QWORD PTR state[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L12
.L15:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -24[rbp], eax
	jne	.L13
	mov	eax, DWORD PTR tape_size[rip]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	jne	.L13
	mov	eax, 1
	jmp	.L14
.L13:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
.L12:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L15
	mov	eax, 0
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	check_state, .-check_state
	.section	.rodata
.LC1:
	.string	"executing '%c'\n"
	.text
	.globl	run
	.type	run, @function
run:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	call	clear_state
.L39:
	mov	rdx, QWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	save_state
	mov	eax, DWORD PTR debug_level[rip]
	cmp	eax, 2
	jle	.L17
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L17
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L17:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 93
	je	.L18
	cmp	eax, 93
	jg	.L40
	cmp	eax, 91
	je	.L20
	cmp	eax, 91
	jg	.L40
	cmp	eax, 62
	je	.L21
	cmp	eax, 62
	jg	.L40
	cmp	eax, 60
	je	.L22
	cmp	eax, 60
	jg	.L40
	test	eax, eax
	je	.L23
	cmp	eax, 42
	je	.L24
	jmp	.L40
.L23:
	mov	eax, 0
	jmp	.L25
.L21:
	add	DWORD PTR -12[rbp], 1
	mov	eax, DWORD PTR tape_size[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L41
	mov	eax, 3
	jmp	.L25
.L22:
	sub	DWORD PTR -12[rbp], 1
	cmp	DWORD PTR -12[rbp], 0
	jns	.L42
	mov	eax, 2
	jmp	.L25
.L24:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L29
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 42
	jmp	.L27
.L29:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 32
	jmp	.L27
.L20:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L43
	mov	DWORD PTR -4[rbp], 1
	jmp	.L32
.L34:
	add	DWORD PTR -8[rbp], 1
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 91
	jne	.L33
	add	DWORD PTR -4[rbp], 1
	jmp	.L32
.L33:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 93
	jne	.L32
	sub	DWORD PTR -4[rbp], 1
.L32:
	cmp	DWORD PTR -4[rbp], 0
	jg	.L34
	jmp	.L43
.L18:
	mov	DWORD PTR -4[rbp], 1
	jmp	.L35
.L37:
	sub	DWORD PTR -8[rbp], 1
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 91
	jne	.L36
	sub	DWORD PTR -4[rbp], 1
	jmp	.L35
.L36:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 93
	jne	.L35
	add	DWORD PTR -4[rbp], 1
.L35:
	cmp	DWORD PTR -4[rbp], 0
	jg	.L37
	sub	DWORD PTR -8[rbp], 1
	jmp	.L27
.L40:
	nop
	jmp	.L27
.L41:
	nop
	jmp	.L27
.L42:
	nop
	jmp	.L27
.L43:
	nop
.L27:
	add	DWORD PTR -8[rbp], 1
	mov	rdx, QWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	check_state
	test	eax, eax
	je	.L39
	mov	eax, 1
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	run, .-run
	.section	.rodata
.LC2:
	.string	"r"
.LC3:
	.string	"Error: can't open '%s'\n"
.LC4:
	.string	"loaded program: '%s'\n"
	.text
	.globl	load
	.type	load, @function
load:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L45
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L45:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L46
	mov	eax, DWORD PTR prog_size[rip]
	sub	eax, 1
	cmp	DWORD PTR -12[rbp], eax
	je	.L46
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -13[rbp], al
	cmp	BYTE PTR -13[rbp], 42
	je	.L47
	cmp	BYTE PTR -13[rbp], 60
	je	.L47
	cmp	BYTE PTR -13[rbp], 62
	je	.L47
	cmp	BYTE PTR -13[rbp], 91
	je	.L47
	cmp	BYTE PTR -13[rbp], 93
	jne	.L45
.L47:
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -12[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -13[rbp]
	mov	BYTE PTR [rdx], al
	jmp	.L45
.L46:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR debug_level[rip]
	cmp	eax, 1
	jle	.L50
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -32[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L50:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	load, .-load
	.section	.rodata
	.align 8
.LC5:
	.string	"Usage: sf2tab [-d] [-p progsize] [-t tapesize] filename\n"
	.text
	.globl	usage
	.type	usage, @function
usage:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 56
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE11:
	.size	usage, .-usage
	.section	.rodata
.LC6:
	.string	"dp:t:"
.LC7:
	.string	"run #%d, using tape '%s'\n"
.LC8:
	.string	"{ \"%s\", %d, \"%s\" },\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -44[rbp], 1
	mov	DWORD PTR -36[rbp], 0
	jmp	.L53
.L58:
	mov	eax, DWORD PTR -32[rbp]
	movsx	eax, al
	cmp	eax, 116
	je	.L54
	cmp	eax, 116
	jg	.L55
	cmp	eax, 100
	je	.L56
	cmp	eax, 112
	je	.L57
	jmp	.L55
.L56:
	mov	eax, DWORD PTR debug_level[rip]
	add	eax, 1
	mov	DWORD PTR debug_level[rip], eax
	jmp	.L53
.L57:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR prog_size[rip], eax
	jmp	.L53
.L54:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR tape_size[rip], eax
	jmp	.L53
.L55:
	call	usage
.L53:
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -52[rbp]
	lea	rdx, .LC6[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], -1
	jne	.L58
	mov	eax, DWORD PTR optind[rip]
	cdqe
	sal	rax, 3
	add	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR optind[rip]
	sub	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jg	.L59
	call	usage
.L59:
	mov	eax, DWORD PTR prog_size[rip]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	load
	mov	eax, DWORD PTR tape_size[rip]
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR tape_size[rip]
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR tape_size[rip]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 32
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR tape_size[rip]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 32
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR tape_size[rip]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR tape_size[rip]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	jmp	.L60
.L66:
	mov	eax, DWORD PTR tape_size[rip]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR debug_level[rip]
	test	eax, eax
	jle	.L61
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -44[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L61:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	run
	mov	DWORD PTR -28[rbp], eax
	mov	rcx, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, DWORD PTR tape_size[rip]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR tape_size[rip]
	sub	eax, 1
	mov	DWORD PTR -40[rbp], eax
.L62:
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L63
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 42
	jmp	.L64
.L63:
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 32
	sub	DWORD PTR -40[rbp], 1
	cmp	DWORD PTR -40[rbp], 0
	js	.L65
	jmp	.L62
.L65:
	mov	DWORD PTR -36[rbp], 1
.L64:
	add	DWORD PTR -44[rbp], 1
.L60:
	cmp	DWORD PTR -36[rbp], 0
	je	.L66
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE12:
	.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	"680946.c"
	.text
	.global	prog_size
	.data
	.align	2
	.type	prog_size, %object
	.size	prog_size, 4
prog_size:
	.word	256
	.global	tape_size
	.align	2
	.type	tape_size, %object
	.size	tape_size, 4
tape_size:
	.word	8
	.global	debug_level
	.bss
	.align	2
	.type	debug_level, %object
	.size	debug_level, 4
debug_level:
	.space	4
	.global	state
	.align	2
	.type	state, %object
	.size	state, 4
state:
	.space	4
	.text
	.align	2
	.global	clear_state
	.syntax unified
	.arm
	.fpu softvfp
	.type	clear_state, %function
clear_state:
	@ 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, .L9
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L9+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L9
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L3
.L4:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L3:
	ldr	r3, .L9+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L4
.L2:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L5
.L8:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L6
.L7:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-8]
	bl	free
.L6:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L5:
	ldr	r3, .L9+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L8
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	state
	.word	prog_size
	.size	clear_state, .-clear_state
	.section	.rodata
	.align	2
.LC0:
	.ascii	"saving state (%d, %d, '%s')\012\000"
	.text
	.align	2
	.global	save_state
	.syntax unified
	.arm
	.fpu softvfp
	.type	save_state, %function
save_state:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, .L13
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L12
	ldr	r3, .L13+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r1, .L13+8
	bl	fprintf
.L12:
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #4]
	ldr	r0, [fp, #-24]
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, .L13+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, .L13+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	debug_level
	.word	stderr
	.word	.LC0
	.word	state
	.size	save_state, .-save_state
	.align	2
	.global	check_state
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_state, %function
check_state:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L16
.L19:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bne	.L17
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r2, .L20+4
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L17
	mov	r3, #1
	b	.L18
.L17:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
.L16:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L19
	mov	r3, #0
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	state
	.word	tape_size
	.size	check_state, .-check_state
	.section	.rodata
	.align	2
.LC1:
	.ascii	"executing '%c'\012\000"
	.text
	.align	2
	.global	run
	.syntax unified
	.arm
	.fpu softvfp
	.type	run, %function
run:
	@ 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]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	bl	clear_state
.L45:
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	save_state
	ldr	r3, .L50
	ldr	r3, [r3]
	cmp	r3, #2
	ble	.L23
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L23
	ldr	r3, .L50+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, .L50+8
	bl	fprintf
.L23:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #93
	beq	.L24
	cmp	r3, #93
	bgt	.L46
	cmp	r3, #91
	beq	.L26
	cmp	r3, #91
	bgt	.L46
	cmp	r3, #62
	beq	.L27
	cmp	r3, #62
	bgt	.L46
	cmp	r3, #60
	beq	.L28
	cmp	r3, #60
	bgt	.L46
	cmp	r3, #0
	beq	.L29
	cmp	r3, #42
	beq	.L30
	b	.L46
.L29:
	mov	r3, #0
	b	.L31
.L27:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, .L50+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L47
	mov	r3, #3
	b	.L31
.L28:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L48
	mov	r3, #2
	b	.L31
.L30:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L35
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #42
	strb	r2, [r3]
	b	.L33
.L35:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
	b	.L33
.L26:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L49
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L38
.L40:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #91
	bne	.L39
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L38
.L39:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #93
	bne	.L38
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L38:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L40
	b	.L49
.L24:
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L41
.L43:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #91
	bne	.L42
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L41
.L42:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #93
	bne	.L41
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L41:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L43
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L33
.L46:
	nop
	b	.L33
.L47:
	nop
	b	.L33
.L48:
	nop
	b	.L33
.L49:
	nop
.L33:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	check_state
	mov	r3, r0
	cmp	r3, #0
	beq	.L45
	mov	r3, #1
.L31:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	debug_level
	.word	stderr
	.word	.LC1
	.word	tape_size
	.size	run, .-run
	.section	.rodata
	.align	2
.LC2:
	.ascii	"r\000"
	.align	2
.LC3:
	.ascii	"Error: can't open '%s'\012\000"
	.align	2
.LC4:
	.ascii	"loaded program: '%s'\012\000"
	.text
	.align	2
	.global	load
	.syntax unified
	.arm
	.fpu softvfp
	.type	load, %function
load:
	@ 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]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r1, .L59
	ldr	r0, [fp, #-24]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L53
	ldr	r3, .L59+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r1, .L59+8
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L53:
	ldr	r0, [fp, #-8]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L54
	ldr	r3, .L59+12
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	beq	.L54
	ldr	r0, [fp, #-8]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #42
	beq	.L55
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #60
	beq	.L55
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #62
	beq	.L55
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #91
	beq	.L55
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #93
	bne	.L53
.L55:
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, r2
	ldrb	r2, [fp, #-13]
	strb	r2, [r3]
	b	.L53
.L54:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L59+16
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L58
	ldr	r3, .L59+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	ldr	r1, .L59+20
	mov	r0, r3
	bl	fprintf
.L58:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L60:
	.align	2
.L59:
	.word	.LC2
	.word	stderr
	.word	.LC3
	.word	prog_size
	.word	debug_level
	.word	.LC4
	.size	load, .-load
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Usage: sf2tab [-d] [-p progsize] [-t tapesize] file"
	.ascii	"name\012\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L62
	ldr	r3, [r3]
	mov	r2, #56
	mov	r1, #1
	ldr	r0, .L62+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L63:
	.align	2
.L62:
	.word	stderr
	.word	.LC5
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC6:
	.ascii	"dp:t:\000"
	.align	2
.LC7:
	.ascii	"run #%d, using tape '%s'\012\000"
	.align	2
.LC8:
	.ascii	"{ \"%s\", %d, \"%s\" },\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	mov	r3, #1
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L65
.L70:
	ldr	r3, [fp, #-24]
	and	r3, r3, #255
	cmp	r3, #116
	beq	.L66
	cmp	r3, #116
	bgt	.L67
	cmp	r3, #100
	beq	.L68
	cmp	r3, #112
	beq	.L69
	b	.L67
.L68:
	ldr	r3, .L79
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L79
	str	r3, [r2]
	b	.L65
.L69:
	ldr	r3, .L79+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L79+8
	str	r3, [r2]
	b	.L65
.L66:
	ldr	r3, .L79+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L79+12
	str	r3, [r2]
	b	.L65
.L67:
	bl	usage
.L65:
	ldr	r2, .L79+16
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	getopt
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L70
	ldr	r3, .L79+20
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-44]
	ldr	r3, .L79+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	sub	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bgt	.L71
	bl	usage
.L71:
	ldr	r3, .L79+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	load
	ldr	r3, .L79+12
	ldr	r3, [r3]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, .L79+12
	ldr	r3, [r3]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, .L79+12
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #32
	ldr	r0, [fp, #-16]
	bl	memset
	ldr	r3, .L79+12
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #32
	ldr	r0, [fp, #-12]
	bl	memset
	ldr	r3, .L79+12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L79+12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	b	.L72
.L78:
	ldr	r3, .L79+12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	memcpy
	ldr	r3, .L79
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L73
	ldr	r3, .L79+24
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-36]
	ldr	r1, .L79+28
	bl	fprintf
.L73:
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	run
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, .L79+32
	bl	printf
	ldr	r3, .L79+36
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, .L79+12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	memcpy
	ldr	r3, .L79+12
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
.L74:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L75
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #42
	strb	r2, [r3]
	b	.L76
.L75:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	blt	.L77
	b	.L74
.L77:
	mov	r3, #1
	str	r3, [fp, #-28]
.L76:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L72:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L78
	mov	r0, #0
	bl	exit
.L80:
	.align	2
.L79:
	.word	debug_level
	.word	optarg
	.word	prog_size
	.word	tape_size
	.word	.LC6
	.word	optind
	.word	stderr
	.word	.LC7
	.word	.LC8
	.word	stdout
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
