	.file	"782021.c"
	.intel_syntax noprefix
	.text
	.globl	fileptr
	.bss
	.align 8
	.type	fileptr, @object
	.size	fileptr, 8
fileptr:
	.zero	8
	.globl	banim
	.align 8
	.type	banim, @object
	.size	banim, 8
banim:
	.zero	8
	.globl	bkit
	.align 8
	.type	bkit, @object
	.size	bkit, 8
bkit:
	.zero	8
	.globl	cur_dir
	.align 32
	.type	cur_dir, @object
	.size	cur_dir, 4096
cur_dir:
	.zero	4096
	.globl	fifo_file_2m
	.align 32
	.type	fifo_file_2m, @object
	.size	fifo_file_2m, 50
fifo_file_2m:
	.zero	50
	.globl	fifo_file_2b
	.align 32
	.type	fifo_file_2b, @object
	.size	fifo_file_2b, 50
fifo_file_2b:
	.zero	50
	.globl	BSes_num
	.align 32
	.type	BSes_num, @object
	.size	BSes_num, 50
BSes_num:
	.zero	50
	.globl	tty_id
	.align 32
	.type	tty_id, @object
	.size	tty_id, 50
tty_id:
	.zero	50
	.globl	done
	.align 4
	.type	done, @object
	.size	done, 4
done:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	Bpim_num
	.align 16
	.type	Bpim_num, @object
	.size	Bpim_num, 25
Bpim_num:
	.zero	25
	.section	.rodata
.LC0:
	.string	"w"
.LC1:
	.string	"TMP/.BBcom"
	.align 8
.LC2:
	.string	"\n\n             Can't open \"TMP/.BBcom\" for writing\n"
.LC3:
	.string	"r"
.LC4:
	.string	".Bini"
	.align 8
.LC5:
	.string	"\n            $BKIT/BLIB/BMotif not yet running\n"
	.align 8
.LC6:
	.string	"\n               Waiting for BMotif ... (%2d)"
	.align 8
.LC7:
	.string	"\n\n\n              $BKIT/BLIB/BMotif didn't start\n\n\n"
.LC8:
	.string	" ... ok\n"
	.text
	.globl	read_Bini_load_strings
	.type	read_Bini_load_strings, @function
read_Bini_load_strings:
.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	DWORD PTR -28[rbp], 1
	mov	DWORD PTR -16[rbp], 152
	mov	DWORD PTR -12[rbp], 100000
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L3
.L15:
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	fopen@PLT
	mov	QWORD PTR fileptr[rip], rax
	mov	rax, QWORD PTR fileptr[rip]
	test	rax, rax
	je	.L4
	mov	DWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -20[rbp], eax
	jmp	.L5
.L7:
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, cur_dir[rip]
	mov	BYTE PTR [rax+rdx], cl
	add	DWORD PTR -24[rbp], 1
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -20[rbp], eax
.L5:
	cmp	DWORD PTR -20[rbp], -1
	je	.L6
	cmp	DWORD PTR -20[rbp], 124
	jne	.L7
.L6:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, cur_dir[rip]
	mov	BYTE PTR [rax+rdx], 0
	cmp	DWORD PTR -20[rbp], 124
	je	.L8
	mov	edi, 4
	mov	eax, 0
	call	err_exit
.L8:
	mov	DWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -20[rbp], eax
	jmp	.L9
.L11:
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, Bpim_num[rip]
	mov	BYTE PTR [rax+rdx], cl
	add	DWORD PTR -24[rbp], 1
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -20[rbp], eax
.L9:
	cmp	DWORD PTR -20[rbp], -1
	je	.L10
	cmp	DWORD PTR -20[rbp], 10
	jne	.L11
.L10:
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC4[rip]
	call	unlink@PLT
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -24[rbp], edx
	cdqe
	lea	rdx, Bpim_num[rip]
	mov	BYTE PTR [rax+rdx], 0
	mov	DWORD PTR -28[rbp], 0
	jmp	.L3
.L4:
	cmp	DWORD PTR -16[rbp], 0
	je	.L3
	cmp	DWORD PTR -16[rbp], 16
	jne	.L12
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L13
.L12:
	cmp	DWORD PTR -16[rbp], 15
	jg	.L13
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	usleep@PLT
	sub	DWORD PTR -16[rbp], 1
.L3:
	cmp	DWORD PTR -28[rbp], 0
	je	.L14
	cmp	DWORD PTR -16[rbp], 0
	jne	.L15
.L14:
	cmp	DWORD PTR -28[rbp], 0
	je	.L16
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edi, 11
	mov	eax, 0
	call	err_exit
	jmp	.L18
.L16:
	cmp	DWORD PTR -16[rbp], 15
	jg	.L18
	lea	rdi, .LC8[rip]
	call	puts@PLT
.L18:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	read_Bini_load_strings, .-read_Bini_load_strings
	.section	.rodata
.LC9:
	.string	".Bver"
.LC10:
	.string	"4.9"
.LC11:
	.string	".Bjob"
	.align 8
.LC12:
	.string	"?,(0:%d:0)|?|0|?|?|?|?|?|?|?|?|?|0|?|0|?|?|?|?"
	.align 8
.LC13:
	.string	"?|?|0|?|?|?|?|?|?|?|?|?|0|?|0|?|?|?|?"
	.text
	.globl	re_initialise
	.type	re_initialise, @function
re_initialise:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	WORD PTR BSes_num[rip], 49
	lea	rsi, .LC0[rip]
	lea	rdi, .LC9[rip]
	call	fopen@PLT
	mov	QWORD PTR fileptr[rip], rax
	mov	rax, QWORD PTR fileptr[rip]
	test	rax, rax
	jne	.L20
	mov	edi, 6
	mov	eax, 0
	call	err_exit
.L20:
	mov	rax, QWORD PTR fileptr[rip]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	fclose@PLT
	lea	rsi, .LC0[rip]
	lea	rdi, .LC11[rip]
	call	fopen@PLT
	mov	QWORD PTR fileptr[rip], rax
	mov	rax, QWORD PTR fileptr[rip]
	test	rax, rax
	jne	.L21
	mov	edi, 7
	mov	eax, 0
	call	err_exit
.L21:
	cmp	DWORD PTR -4[rbp], 0
	je	.L22
	mov	rax, QWORD PTR fileptr[rip]
	mov	edx, 194
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L23
.L22:
	mov	rax, QWORD PTR fileptr[rip]
	mov	rcx, rax
	mov	edx, 37
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
.L23:
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	re_initialise, .-re_initialise
	.globl	int_trap
	.type	int_trap, @function
int_trap:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 11
	mov	eax, 0
	call	err_exit
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	int_trap, .-int_trap
	.section	.rodata
.LC14:
	.string	".Bcom"
	.text
	.globl	get_new_dir_from_Bcom
	.type	get_new_dir_from_Bcom, @function
get_new_dir_from_Bcom:
.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, 16
	mov	DWORD PTR -4[rbp], 0
	lea	rsi, .LC3[rip]
	lea	rdi, .LC14[rip]
	call	fopen@PLT
	mov	QWORD PTR fileptr[rip], rax
	mov	rax, QWORD PTR fileptr[rip]
	test	rax, rax
	jne	.L26
	mov	edi, 8
	mov	eax, 0
	call	err_exit
.L26:
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -8[rbp], eax
	jmp	.L27
.L29:
	mov	eax, DWORD PTR -8[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, cur_dir[rip]
	mov	BYTE PTR [rax+rdx], cl
	add	DWORD PTR -4[rbp], 1
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -8[rbp], eax
.L27:
	cmp	DWORD PTR -8[rbp], -1
	je	.L28
	cmp	DWORD PTR -8[rbp], 10
	jne	.L29
.L28:
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, cur_dir[rip]
	mov	BYTE PTR [rax+rdx], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	get_new_dir_from_Bcom, .-get_new_dir_from_Bcom
	.section	.rodata
.LC15:
	.string	".Bxok"
.LC16:
	.string	".Btty"
	.text
	.globl	wait_Bxok_and_get_tty_id
	.type	wait_Bxok_and_get_tty_id, @function
wait_Bxok_and_get_tty_id:
.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, 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -164[rbp], 0
	jmp	.L31
.L33:
	lea	rax, -160[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	call	stat@PLT
	test	eax, eax
	jne	.L32
	mov	DWORD PTR -164[rbp], 1
	jmp	.L31
.L32:
	mov	edi, 1
	call	sleep@PLT
.L31:
	cmp	DWORD PTR -164[rbp], 0
	je	.L33
	mov	DWORD PTR -168[rbp], 0
	mov	DWORD PTR done[rip], 0
	jmp	.L34
.L37:
	lea	rsi, .LC3[rip]
	lea	rdi, .LC16[rip]
	call	fopen@PLT
	mov	QWORD PTR fileptr[rip], rax
	mov	rax, QWORD PTR fileptr[rip]
	test	rax, rax
	jne	.L35
	add	DWORD PTR -168[rbp], 1
	mov	edi, 1
	call	sleep@PLT
	jmp	.L34
.L35:
	mov	DWORD PTR done[rip], 1
.L34:
	mov	eax, DWORD PTR done[rip]
	test	eax, eax
	jne	.L36
	cmp	DWORD PTR -168[rbp], 9
	jle	.L37
.L36:
	mov	eax, DWORD PTR done[rip]
	test	eax, eax
	jne	.L38
	mov	edi, 5
	mov	eax, 0
	call	err_exit
.L38:
	mov	DWORD PTR i[rip], 0
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR c[rip], eax
	jmp	.L39
.L41:
	mov	edx, DWORD PTR c[rip]
	mov	eax, DWORD PTR i[rip]
	mov	ecx, edx
	cdqe
	lea	rdx, tty_id[rip]
	mov	BYTE PTR [rax+rdx], cl
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR c[rip], eax
.L39:
	mov	eax, DWORD PTR c[rip]
	cmp	eax, -1
	je	.L40
	mov	eax, DWORD PTR c[rip]
	cmp	eax, 10
	jne	.L41
.L40:
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, tty_id[rip]
	mov	BYTE PTR [rax+rdx], 0
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L42
	call	__stack_chk_fail@PLT
.L42:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	wait_Bxok_and_get_tty_id, .-wait_Bxok_and_get_tty_id
	.section	.rodata
.LC17:
	.string	"TMP/.Bpog"
	.text
	.globl	get_pog_flag
	.type	get_pog_flag, @function
get_pog_flag:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rsi, .LC3[rip]
	lea	rdi, .LC17[rip]
	call	fopen@PLT
	mov	QWORD PTR fileptr[rip], rax
	mov	rax, QWORD PTR fileptr[rip]
	test	rax, rax
	jne	.L44
	mov	edi, 13
	mov	eax, 0
	call	err_exit
.L44:
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR c[rip], eax
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR c[rip]
	sub	eax, 48
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	get_pog_flag, .-get_pog_flag
	.section	.rodata
.LC18:
	.string	"BKIT"
.LC19:
	.string	"BANIMATOR"
	.align 8
.LC20:
	.string	"%s/BPLAT/bplatform %s/BLIB/Toolkit"
.LC21:
	.string	"/tmp/.B_%s_2m"
.LC22:
	.string	"/tmp/.B_%s_2b"
.LC23:
	.string	".Berr"
.LC24:
	.string	"1"
	.align 8
.LC25:
	.string	"%s%s.bin %s %s 040 0 %s %s 2> .Berr"
.LC26:
	.string	".Bses"
.LC27:
	.string	"14"
.LC28:
	.string	"%s/BLIB/CheckAnnot 1 %s"
.LC29:
	.string	"15"
.LC30:
	.string	"%s/BLIB/CheckAnnot %s"
.LC31:
	.string	"999"
.LC32:
	.string	"997"
.LC33:
	.string	"998"
.LC34:
	.string	".BToolkitLock"
.LC35:
	.string	".Benv"
.LC36:
	.string	"0$toolkit$0$0"
.LC37:
	.string	"5"
.LC38:
	.string	"20"
.LC39:
	.string	"21"
	.align 8
.LC40:
	.string	"%s%s.bin %s %s 040 %d %s %s | tee -a .Blog > %s 2> .Berr"
	.align 8
.LC41:
	.string	"%s%s.bin %s %s 040 0 %s %s | tee -a .Blog > %s 2> .Berr"
.LC42:
	.string	"rm -f .Bses"
.LC43:
	.string	"0"
.LC44:
	.string	"999999"
	.align 8
.LC45:
	.string	"\n\n       THIS IS *NOT* THE WAY TO TERMINATE THE B-TOOLKIT;\n         DATA MAY BE LOST, OR THE SYSTEM LEFT HANGING\n\n            PLEASE USE THE UTILS->EXIT PULLDOWN\n\n\n\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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 208
	mov	DWORD PTR -12484[rbp], edi
	mov	QWORD PTR -12496[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12472[rbp], 0
	lea	rax, int_trap[rip]
	mov	QWORD PTR -12464[rbp], rax
	lea	rax, -12464[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -12464[rbp]
	add	rax, 8
	mov	esi, 2
	mov	rdi, rax
	call	sigaddset@PLT
	mov	DWORD PTR -12328[rbp], 0
	lea	rax, -12464[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigaction@PLT
	lea	rdi, .LC18[rip]
	call	getenv@PLT
	mov	QWORD PTR bkit[rip], rax
	mov	rax, QWORD PTR bkit[rip]
	test	rax, rax
	jne	.L47
	mov	edi, 1
	mov	eax, 0
	call	err_exit
.L47:
	lea	rdi, .LC19[rip]
	call	getenv@PLT
	mov	QWORD PTR banim[rip], rax
	mov	rax, QWORD PTR banim[rip]
	test	rax, rax
	jne	.L48
	mov	rax, QWORD PTR bkit[rip]
	mov	QWORD PTR banim[rip], rax
.L48:
	mov	rax, QWORD PTR -12496[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, cur_dir[rip]
	call	strcpy@PLT
	mov	rcx, QWORD PTR bkit[rip]
	mov	rdx, QWORD PTR bkit[rip]
	lea	rax, -12304[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, 0
	call	read_Bini_load_strings
	lea	rdx, Bpim_num[rip]
	lea	rsi, .LC21[rip]
	lea	rdi, fifo_file_2m[rip]
	mov	eax, 0
	call	sprintf@PLT
	mov	esi, 420
	lea	rdi, fifo_file_2m[rip]
	call	mkfifo@PLT
	test	eax, eax
	je	.L49
	mov	edi, 37
	mov	eax, 0
	call	err_exit
.L49:
	lea	rdx, Bpim_num[rip]
	lea	rsi, .LC22[rip]
	lea	rdi, fifo_file_2b[rip]
	mov	eax, 0
	call	sprintf@PLT
	mov	esi, 420
	lea	rdi, fifo_file_2b[rip]
	call	mkfifo@PLT
	test	eax, eax
	je	.L50
	mov	edi, 38
	mov	eax, 0
	call	err_exit
.L50:
	lea	rdi, .LC23[rip]
	call	unlink@PLT
	lea	rdx, -12304[rbp]
	lea	rax, -8208[rbp]
	lea	rcx, fifo_file_2b[rip]
	push	rcx
	lea	rcx, fifo_file_2m[rip]
	push	rcx
	lea	r9, cur_dir[rip]
	lea	r8, Bpim_num[rip]
	lea	rcx, .LC24[rip]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	add	rsp, 16
	lea	rax, -8208[rbp]
	mov	rdi, rax
	call	system@PLT
	lea	rsi, .LC3[rip]
	lea	rdi, .LC26[rip]
	call	fopen@PLT
	mov	QWORD PTR fileptr[rip], rax
	mov	rax, QWORD PTR fileptr[rip]
	test	rax, rax
	jne	.L51
	mov	edi, 2
	mov	eax, 0
	call	err_exit
.L51:
	mov	DWORD PTR i[rip], 0
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR c[rip], eax
	jmp	.L52
.L54:
	mov	ecx, DWORD PTR c[rip]
	mov	eax, DWORD PTR i[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR i[rip], edx
	cdqe
	lea	rdx, BSes_num[rip]
	mov	BYTE PTR [rax+rdx], cl
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR c[rip], eax
.L52:
	mov	eax, DWORD PTR c[rip]
	cmp	eax, -1
	je	.L53
	mov	eax, DWORD PTR c[rip]
	cmp	eax, 10
	jne	.L54
.L53:
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC26[rip]
	call	unlink@PLT
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, BSes_num[rip]
	mov	BYTE PTR [rax+rdx], 0
	jmp	.L55
.L80:
	lea	rdi, .LC23[rip]
	call	unlink@PLT
	lea	rsi, .LC24[rip]
	lea	rdi, BSes_num[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L56
	lea	rdx, -12304[rbp]
	lea	rax, -8208[rbp]
	lea	rcx, fifo_file_2b[rip]
	push	rcx
	lea	rcx, fifo_file_2m[rip]
	push	rcx
	lea	r9, cur_dir[rip]
	lea	r8, Bpim_num[rip]
	lea	rcx, BSes_num[rip]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	add	rsp, 16
	lea	rax, -8208[rbp]
	mov	rdi, rax
	call	system@PLT
	jmp	.L57
.L56:
	lea	rsi, .LC27[rip]
	lea	rdi, BSes_num[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L58
	mov	rcx, QWORD PTR bkit[rip]
	mov	rdx, QWORD PTR bkit[rip]
	lea	rax, -8208[rbp]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -8208[rbp]
	mov	rdi, rax
	call	system@PLT
	jmp	.L57
.L58:
	lea	rsi, .LC29[rip]
	lea	rdi, BSes_num[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L59
	mov	rcx, QWORD PTR bkit[rip]
	mov	rdx, QWORD PTR bkit[rip]
	lea	rax, -8208[rbp]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -8208[rbp]
	mov	rdi, rax
	call	system@PLT
	jmp	.L57
.L59:
	lea	rsi, .LC31[rip]
	lea	rdi, BSes_num[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L60
	mov	edi, 0
	mov	eax, 0
	call	re_initialise
	lea	rdx, -12304[rbp]
	lea	rax, -8208[rbp]
	lea	rcx, fifo_file_2b[rip]
	push	rcx
	lea	rcx, fifo_file_2m[rip]
	push	rcx
	lea	r9, cur_dir[rip]
	lea	r8, Bpim_num[rip]
	lea	rcx, .LC24[rip]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	add	rsp, 16
	lea	rax, -8208[rbp]
	mov	rdi, rax
	call	system@PLT
	jmp	.L57
.L60:
	lea	rsi, .LC32[rip]
	lea	rdi, BSes_num[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L61
	mov	edi, 0
	mov	eax, 0
	call	re_initialise
	lea	rdx, -12304[rbp]
	lea	rax, -8208[rbp]
	lea	rcx, fifo_file_2b[rip]
	push	rcx
	lea	rcx, fifo_file_2m[rip]
	push	rcx
	lea	r9, cur_dir[rip]
	lea	r8, Bpim_num[rip]
	lea	rcx, .LC24[rip]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	add	rsp, 16
	lea	rax, -8208[rbp]
	mov	rdi, rax
	call	system@PLT
	jmp	.L57
.L61:
	lea	rsi, .LC33[rip]
	lea	rdi, BSes_num[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L62
	mov	eax, 0
	call	get_new_dir_from_Bcom
	mov	edi, 0
	mov	eax, 0
	call	rm_files
	lea	rdi, .LC34[rip]
	call	unlink@PLT
	lea	rdi, cur_dir[rip]
	call	chdir@PLT
	cmp	eax, -1
	jne	.L63
	mov	edi, 9
	mov	eax, 0
	call	err_exit
.L63:
	mov	edi, 0
	mov	eax, 0
	call	re_initialise
	lea	rsi, .LC0[rip]
	lea	rdi, .LC35[rip]
	call	fopen@PLT
	mov	QWORD PTR fileptr[rip], rax
	mov	rax, QWORD PTR fileptr[rip]
	test	rax, rax
	jne	.L64
	mov	edi, 10
	mov	eax, 0
	call	err_exit
.L64:
	mov	rax, QWORD PTR fileptr[rip]
	mov	rcx, rax
	mov	edx, 13
	mov	esi, 1
	lea	rdi, .LC36[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdx, -12304[rbp]
	lea	rax, -8208[rbp]
	lea	rcx, fifo_file_2b[rip]
	push	rcx
	lea	rcx, fifo_file_2m[rip]
	push	rcx
	lea	r9, cur_dir[rip]
	lea	r8, Bpim_num[rip]
	lea	rcx, .LC24[rip]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	add	rsp, 16
	lea	rax, -8208[rbp]
	mov	rdi, rax
	call	system@PLT
	jmp	.L57
.L62:
	lea	rsi, .LC37[rip]
	lea	rdi, BSes_num[rip]
	call	strcmp@PLT
	test	eax, eax
	je	.L65
	lea	rsi, .LC38[rip]
	lea	rdi, BSes_num[rip]
	call	strcmp@PLT
	test	eax, eax
	je	.L65
	lea	rsi, .LC39[rip]
	lea	rdi, BSes_num[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L66
.L65:
	mov	eax, 0
	call	get_pog_flag
	mov	DWORD PTR -12468[rbp], eax
	mov	eax, 0
	call	wait_Bxok_and_get_tty_id
	lea	rdx, -12304[rbp]
	lea	rax, -8208[rbp]
	lea	rcx, tty_id[rip]
	push	rcx
	lea	rcx, fifo_file_2b[rip]
	push	rcx
	lea	rcx, fifo_file_2m[rip]
	push	rcx
	mov	ecx, DWORD PTR -12468[rbp]
	push	rcx
	lea	r9, cur_dir[rip]
	lea	r8, Bpim_num[rip]
	lea	rcx, BSes_num[rip]
	lea	rsi, .LC40[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	add	rsp, 32
	lea	rax, -8208[rbp]
	mov	rdi, rax
	call	system@PLT
	jmp	.L57
.L66:
	lea	rdi, BSes_num[rip]
	call	strlen@PLT
	cmp	rax, 4
	jne	.L67
	movzx	eax, BYTE PTR BSes_num[rip+2]
	cmp	al, 48
	jne	.L68
	mov	DWORD PTR i[rip], 3
	jmp	.L69
.L70:
	mov	eax, DWORD PTR i[rip]
	mov	edx, DWORD PTR i[rip]
	lea	ecx, -3[rdx]
	cdqe
	lea	rdx, BSes_num[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	movsx	rax, ecx
	lea	rcx, BSes_num[rip]
	mov	BYTE PTR [rax+rcx], dl
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L69:
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, BSes_num[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	jne	.L70
	mov	eax, DWORD PTR i[rip]
	sub	eax, 3
	cdqe
	lea	rdx, BSes_num[rip]
	mov	BYTE PTR [rax+rdx], 0
	jmp	.L71
.L68:
	mov	DWORD PTR i[rip], 2
	jmp	.L72
.L73:
	mov	eax, DWORD PTR i[rip]
	mov	edx, DWORD PTR i[rip]
	lea	ecx, -2[rdx]
	cdqe
	lea	rdx, BSes_num[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	movsx	rax, ecx
	lea	rcx, BSes_num[rip]
	mov	BYTE PTR [rax+rcx], dl
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L72:
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, BSes_num[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	jne	.L73
	mov	eax, DWORD PTR i[rip]
	sub	eax, 2
	cdqe
	lea	rdx, BSes_num[rip]
	mov	BYTE PTR [rax+rdx], 0
.L71:
	lea	rdx, -12304[rbp]
	lea	rax, -8208[rbp]
	lea	rcx, fifo_file_2b[rip]
	push	rcx
	lea	rcx, fifo_file_2m[rip]
	push	rcx
	lea	r9, cur_dir[rip]
	lea	r8, Bpim_num[rip]
	lea	rcx, BSes_num[rip]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	add	rsp, 16
	lea	rax, -8208[rbp]
	mov	rdi, rax
	call	system@PLT
	jmp	.L57
.L67:
	mov	eax, 0
	call	wait_Bxok_and_get_tty_id
	lea	rdx, -12304[rbp]
	lea	rax, -8208[rbp]
	sub	rsp, 8
	lea	rcx, tty_id[rip]
	push	rcx
	lea	rcx, fifo_file_2b[rip]
	push	rcx
	lea	rcx, fifo_file_2m[rip]
	push	rcx
	lea	r9, cur_dir[rip]
	lea	r8, Bpim_num[rip]
	lea	rcx, BSes_num[rip]
	lea	rsi, .LC41[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	add	rsp, 32
	lea	rax, -8208[rbp]
	mov	rdi, rax
	call	system@PLT
.L57:
	lea	rsi, .LC3[rip]
	lea	rdi, .LC26[rip]
	call	fopen@PLT
	mov	QWORD PTR fileptr[rip], rax
	mov	rax, QWORD PTR fileptr[rip]
	test	rax, rax
	jne	.L74
	cmp	DWORD PTR -12472[rbp], 0
	je	.L75
	mov	edi, 3
	mov	eax, 0
	call	err_exit
	jmp	.L55
.L75:
	mov	DWORD PTR -12472[rbp], 1
	mov	edi, 1
	mov	eax, 0
	call	print_warning
	mov	edi, 1
	mov	eax, 0
	call	re_initialise
	mov	WORD PTR BSes_num[rip], 49
	jmp	.L55
.L74:
	mov	DWORD PTR i[rip], 0
	mov	DWORD PTR -12472[rbp], 0
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR c[rip], eax
	jmp	.L76
.L78:
	mov	ecx, DWORD PTR c[rip]
	mov	eax, DWORD PTR i[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR i[rip], edx
	cdqe
	lea	rdx, BSes_num[rip]
	mov	BYTE PTR [rax+rdx], cl
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR c[rip], eax
.L76:
	mov	eax, DWORD PTR c[rip]
	cmp	eax, -1
	je	.L77
	mov	eax, DWORD PTR c[rip]
	cmp	eax, 10
	jne	.L78
.L77:
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC42[rip]
	call	system@PLT
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, BSes_num[rip]
	mov	BYTE PTR [rax+rdx], 0
.L55:
	lea	rsi, .LC43[rip]
	lea	rdi, BSes_num[rip]
	call	strcmp@PLT
	test	eax, eax
	je	.L79
	lea	rsi, .LC44[rip]
	lea	rdi, BSes_num[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L80
.L79:
	lea	rsi, .LC44[rip]
	lea	rdi, BSes_num[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L81
	lea	rdi, .LC45[rip]
	call	puts@PLT
	jmp	.L82
.L81:
	mov	eax, 0
	call	kill_BMotif
.L82:
	mov	eax, 0
	call	kill_XTerm
	mov	eax, 0
	call	kill_edit
	mov	eax, 0
	call	kill_bplatform
	mov	edi, 1
	mov	eax, 0
	call	rm_files
	mov	eax, 0
	call	chk_info_reqd
	lea	rdi, .LC34[rip]
	call	unlink@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L84
	call	__stack_chk_fail@PLT
.L84:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC46:
	.string	"\n\n               Problem with toolkit binary\n"
	.align 8
.LC47:
	.string	"\n  Contents of .Berr (may not be relevant):\n\n"
.LC48:
	.string	"cat .Berr"
	.text
	.globl	print_warning
	.type	print_warning, @function
print_warning:
.LFB13:
	.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
	cmp	DWORD PTR -4[rbp], 1
	jne	.L87
	lea	rdi, .LC46[rip]
	call	puts@PLT
	lea	rdi, .LC47[rip]
	call	puts@PLT
	lea	rdi, .LC48[rip]
	call	system@PLT
	nop
.L87:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	print_warning, .-print_warning
	.section	.rodata
	.align 8
.LC49:
	.string	"\n  Environment variable BKIT not set"
	.align 8
.LC50:
	.string	"\n         Execution problem ( insufficient memory? )"
	.align 8
.LC51:
	.string	"\n\n              B-Toolkit Session Terminated"
	.align 8
.LC52:
	.string	"\n\n             ( all data has been preserved )"
	.align 8
.LC53:
	.string	"\n\n               Problem running B-Toolkit"
	.align 8
.LC54:
	.string	"\n\n                 \".Bini\" format error"
	.align 8
.LC55:
	.string	"\n\n             Can't open \".Btty\" for reading"
	.align 8
.LC56:
	.string	"\n\n             Can't open \".Bver\" for writing"
	.align 8
.LC57:
	.string	"\n\n             Can't open \".Bjob\" for writing"
	.align 8
.LC58:
	.string	"\n\n             Can't open \".Bcom\" for reading"
.LC59:
	.string	"\n\n  Can't \"chdir\" to %s"
.LC60:
	.string	"\n\n              chdir"
	.align 8
.LC61:
	.string	"\n\n             Can't open \".Benv\" for writing"
	.align 8
.LC62:
	.string	"\n\n             Can't open \"TMP/.Bpog\" for reading"
	.align 8
.LC63:
	.string	"\n\n              Can't mkfifo in %s"
.LC64:
	.string	"\n\n\n"
	.text
	.globl	err_exit
	.type	err_exit, @function
err_exit:
.LFB14:
	.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
	cmp	DWORD PTR -4[rbp], 38
	ja	.L89
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L91[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L91[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L91:
	.long	.L89-.L91
	.long	.L104-.L91
	.long	.L103-.L91
	.long	.L102-.L91
	.long	.L89-.L91
	.long	.L101-.L91
	.long	.L100-.L91
	.long	.L99-.L91
	.long	.L98-.L91
	.long	.L97-.L91
	.long	.L96-.L91
	.long	.L89-.L91
	.long	.L94-.L91
	.long	.L93-.L91
	.long	.L89-.L91
	.long	.L89-.L91
	.long	.L89-.L91
	.long	.L89-.L91
	.long	.L89-.L91
	.long	.L89-.L91
	.long	.L89-.L91
	.long	.L89-.L91
	.long	.L89-.L91
	.long	.L89-.L91
	.long	.L89-.L91
	.long	.L89-.L91
	.long	.L89-.L91
	.long	.L89-.L91
	.long	.L89-.L91
	.long	.L89-.L91
	.long	.L89-.L91
	.long	.L89-.L91
	.long	.L89-.L91
	.long	.L89-.L91
	.long	.L89-.L91
	.long	.L89-.L91
	.long	.L89-.L91
	.long	.L92-.L91
	.long	.L90-.L91
	.text
.L104:
	lea	rdi, .LC49[rip]
	call	puts@PLT
	jmp	.L89
.L103:
	lea	rdi, .LC50[rip]
	call	puts@PLT
	lea	rdi, .LC51[rip]
	call	puts@PLT
	lea	rdi, .LC52[rip]
	call	puts@PLT
	jmp	.L89
.L102:
	lea	rdi, .LC48[rip]
	call	system@PLT
	lea	rdi, .LC53[rip]
	call	puts@PLT
	lea	rdi, .LC51[rip]
	call	puts@PLT
	lea	rdi, .LC52[rip]
	call	puts@PLT
	jmp	.L89
.L94:
	lea	rdi, .LC54[rip]
	call	puts@PLT
	lea	rdi, .LC51[rip]
	call	puts@PLT
	lea	rdi, .LC52[rip]
	call	puts@PLT
	jmp	.L89
.L101:
	lea	rdi, .LC55[rip]
	call	puts@PLT
	lea	rdi, .LC51[rip]
	call	puts@PLT
	lea	rdi, .LC52[rip]
	call	puts@PLT
	jmp	.L89
.L100:
	lea	rdi, .LC56[rip]
	call	puts@PLT
	lea	rdi, .LC51[rip]
	call	puts@PLT
	lea	rdi, .LC52[rip]
	call	puts@PLT
	jmp	.L89
.L99:
	lea	rdi, .LC57[rip]
	call	puts@PLT
	lea	rdi, .LC51[rip]
	call	puts@PLT
	lea	rdi, .LC52[rip]
	call	puts@PLT
	jmp	.L89
.L98:
	lea	rdi, .LC58[rip]
	call	puts@PLT
	lea	rdi, .LC51[rip]
	call	puts@PLT
	lea	rdi, .LC52[rip]
	call	puts@PLT
	jmp	.L89
.L97:
	lea	rsi, cur_dir[rip]
	lea	rdi, .LC59[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC60[rip]
	call	perror@PLT
	lea	rdi, .LC51[rip]
	call	puts@PLT
	lea	rdi, .LC52[rip]
	call	puts@PLT
	jmp	.L89
.L96:
	lea	rdi, .LC61[rip]
	call	puts@PLT
	lea	rdi, .LC51[rip]
	call	puts@PLT
	lea	rdi, .LC52[rip]
	call	puts@PLT
	jmp	.L89
.L93:
	lea	rdi, .LC62[rip]
	call	puts@PLT
	lea	rdi, .LC51[rip]
	call	puts@PLT
	lea	rdi, .LC52[rip]
	call	puts@PLT
	jmp	.L89
.L92:
	lea	rsi, fifo_file_2m[rip]
	lea	rdi, .LC63[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC51[rip]
	call	puts@PLT
	lea	rdi, .LC52[rip]
	call	puts@PLT
	jmp	.L89
.L90:
	lea	rsi, fifo_file_2b[rip]
	lea	rdi, .LC63[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC51[rip]
	call	puts@PLT
	lea	rdi, .LC52[rip]
	call	puts@PLT
	nop
.L89:
	lea	rdi, .LC64[rip]
	call	puts@PLT
	mov	eax, 0
	call	kill_BMotif
	mov	eax, 0
	call	kill_XTerm
	mov	eax, 0
	call	kill_edit
	mov	eax, 0
	call	kill_bplatform
	mov	edi, 1
	mov	eax, 0
	call	rm_files
	mov	eax, 0
	call	chk_info_reqd
	lea	rdi, .LC34[rip]
	call	unlink@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	exit@PLT
	.cfi_endproc
.LFE14:
	.size	err_exit, .-err_exit
	.section	.rodata
.LC65:
	.string	".Bpim"
.LC66:
	.string	"rm -f .Bcom ; touch .Bcom"
	.text
	.globl	kill_BMotif
	.type	kill_BMotif, @function
kill_BMotif:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -168[rbp], 0
	lea	rax, -160[rbp]
	mov	rsi, rax
	lea	rdi, .LC65[rip]
	call	stat@PLT
	mov	DWORD PTR -164[rbp], eax
	jmp	.L106
.L108:
	mov	edi, 1
	call	sleep@PLT
	lea	rax, -160[rbp]
	mov	rsi, rax
	lea	rdi, .LC65[rip]
	call	stat@PLT
	mov	DWORD PTR -164[rbp], eax
	add	DWORD PTR -168[rbp], 1
.L106:
	cmp	DWORD PTR -164[rbp], -1
	je	.L107
	cmp	DWORD PTR -168[rbp], 9
	jle	.L108
.L107:
	cmp	DWORD PTR -164[rbp], -1
	je	.L116
	lea	rsi, .LC3[rip]
	lea	rdi, .LC65[rip]
	call	fopen@PLT
	mov	QWORD PTR fileptr[rip], rax
	mov	rax, QWORD PTR fileptr[rip]
	test	rax, rax
	je	.L105
	mov	DWORD PTR i[rip], 0
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR c[rip], eax
	jmp	.L112
.L114:
	mov	edx, DWORD PTR i[rip]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	eax, DWORD PTR c[rip]
	add	eax, edx
	sub	eax, 48
	mov	DWORD PTR i[rip], eax
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR c[rip], eax
.L112:
	mov	eax, DWORD PTR c[rip]
	cmp	eax, -1
	je	.L113
	mov	eax, DWORD PTR c[rip]
	cmp	eax, 10
	jne	.L114
.L113:
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC66[rip]
	call	system@PLT
	mov	eax, DWORD PTR i[rip]
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
	jmp	.L105
.L116:
	nop
.L105:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L115
	call	__stack_chk_fail@PLT
.L115:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	kill_BMotif, .-kill_BMotif
	.section	.rodata
.LC67:
	.string	".Bpix"
	.text
	.globl	kill_XTerm
	.type	kill_XTerm, @function
kill_XTerm:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rsi, .LC3[rip]
	lea	rdi, .LC67[rip]
	call	fopen@PLT
	mov	QWORD PTR fileptr[rip], rax
	mov	rax, QWORD PTR fileptr[rip]
	test	rax, rax
	je	.L122
	mov	DWORD PTR i[rip], 0
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR c[rip], eax
	jmp	.L119
.L121:
	mov	edx, DWORD PTR i[rip]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	eax, DWORD PTR c[rip]
	add	eax, edx
	sub	eax, 48
	mov	DWORD PTR i[rip], eax
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR c[rip], eax
.L119:
	mov	eax, DWORD PTR c[rip]
	cmp	eax, -1
	je	.L120
	mov	eax, DWORD PTR c[rip]
	cmp	eax, 10
	jne	.L121
.L120:
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC66[rip]
	call	system@PLT
	mov	eax, DWORD PTR i[rip]
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
.L122:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	kill_XTerm, .-kill_XTerm
	.section	.rodata
.LC68:
	.string	".Bpib"
	.text
	.globl	kill_bplatform
	.type	kill_bplatform, @function
kill_bplatform:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rsi, .LC3[rip]
	lea	rdi, .LC68[rip]
	call	fopen@PLT
	mov	QWORD PTR fileptr[rip], rax
	mov	rax, QWORD PTR fileptr[rip]
	test	rax, rax
	je	.L128
	mov	DWORD PTR i[rip], 0
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR c[rip], eax
	jmp	.L125
.L127:
	mov	edx, DWORD PTR i[rip]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	eax, DWORD PTR c[rip]
	add	eax, edx
	sub	eax, 48
	mov	DWORD PTR i[rip], eax
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR c[rip], eax
.L125:
	mov	eax, DWORD PTR c[rip]
	cmp	eax, -1
	je	.L126
	mov	eax, DWORD PTR c[rip]
	cmp	eax, 10
	jne	.L127
.L126:
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR c[rip]
	cmp	eax, 10
	jne	.L128
	mov	eax, DWORD PTR i[rip]
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
.L128:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	kill_bplatform, .-kill_bplatform
	.section	.rodata
.LC69:
	.string	".Bed"
	.text
	.globl	kill_edit
	.type	kill_edit, @function
kill_edit:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rsi, .LC3[rip]
	lea	rdi, .LC69[rip]
	call	fopen@PLT
	mov	QWORD PTR fileptr[rip], rax
	mov	rax, QWORD PTR fileptr[rip]
	test	rax, rax
	je	.L134
	mov	DWORD PTR i[rip], 0
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR c[rip], eax
	jmp	.L131
.L133:
	mov	edx, DWORD PTR i[rip]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	eax, DWORD PTR c[rip]
	add	eax, edx
	sub	eax, 48
	mov	DWORD PTR i[rip], eax
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR c[rip], eax
.L131:
	mov	eax, DWORD PTR c[rip]
	cmp	eax, -1
	je	.L132
	mov	eax, DWORD PTR c[rip]
	cmp	eax, 10
	jne	.L133
.L132:
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC66[rip]
	call	system@PLT
	mov	eax, DWORD PTR i[rip]
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
.L134:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	kill_edit, .-kill_edit
	.section	.rodata
.LC70:
	.string	".Berc"
	.align 8
.LC71:
	.string	"           Run the script: $BKIT/BProcessInfo\n\n\n"
	.text
	.globl	chk_info_reqd
	.type	chk_info_reqd, @function
chk_info_reqd:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rsi, .LC3[rip]
	lea	rdi, .LC70[rip]
	call	fopen@PLT
	mov	QWORD PTR fileptr[rip], rax
	mov	rax, QWORD PTR fileptr[rip]
	test	rax, rax
	je	.L140
	mov	DWORD PTR i[rip], 0
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR c[rip], eax
	jmp	.L137
.L139:
	mov	edx, DWORD PTR i[rip]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	eax, DWORD PTR c[rip]
	add	eax, edx
	sub	eax, 48
	mov	DWORD PTR i[rip], eax
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR c[rip], eax
.L137:
	mov	eax, DWORD PTR c[rip]
	cmp	eax, -1
	je	.L138
	mov	eax, DWORD PTR c[rip]
	cmp	eax, 10
	je	.L138
	mov	eax, DWORD PTR c[rip]
	cmp	eax, 47
	jle	.L138
	mov	eax, DWORD PTR c[rip]
	cmp	eax, 57
	jg	.L138
	mov	eax, DWORD PTR i[rip]
	cmp	eax, 99999998
	jle	.L139
.L138:
	mov	rax, QWORD PTR fileptr[rip]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC70[rip]
	call	unlink@PLT
	mov	eax, DWORD PTR i[rip]
	cmp	eax, 15279
	jle	.L140
	mov	eax, DWORD PTR i[rip]
	cmp	eax, 15289
	jg	.L140
	mov	eax, DWORD PTR i[rip]
	cmp	eax, 15284
	je	.L140
	lea	rdi, .LC71[rip]
	call	puts@PLT
.L140:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	chk_info_reqd, .-chk_info_reqd
	.section	.rodata
	.align 8
.LC72:
	.string	" rm -f .BBBcom .BBcom .Bsid .Bver .Bmen .Benv .Berr .Bnum .Bprf .Bini btl_proof.dump"
	.align 8
.LC73:
	.string	" rm -f .Bls .Bipr .Bses .Bopn .Bcom .Bed .Bbw .Brec .Bplx B.tmp .Bbox"
	.align 8
.LC74:
	.string	" rm -f  BB.tmp .Bhw .Bpw tmp.b tmp.c tmpb tmpc .Bprv .Bpob* .Bbbb"
	.align 8
.LC75:
	.string	" rm -f .Bprs .Bpdu .Bsb1 .Bsb2 .Bsb3 .Btad .Bcjt .Btlb .Bxok"
	.align 8
.LC76:
	.string	" rm -f .Bcjm .Bdmf .Bjob .Bplf .Bpla .Bpi* .Blog .Btty .Bhlp"
	.align 8
.LC77:
	.string	" rm -f .Bini .Bcpp .Bler .Bter SRC/.BBcom SRC/.Bter .Bsta .Bpmd .Bipl"
	.align 8
.LC78:
	.string	" rm -f .B.bin .Blws .Bplt .Bpof .Bspo .Btac .Bthy .Btot .Bmvr .Bhtx"
.LC79:
	.string	" rm -fr TMP"
	.text
	.globl	rm_files
	.type	rm_files, @function
rm_files:
.LFB20:
	.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
	lea	rdi, .LC72[rip]
	call	system@PLT
	lea	rdi, .LC73[rip]
	call	system@PLT
	lea	rdi, .LC74[rip]
	call	system@PLT
	lea	rdi, .LC75[rip]
	call	system@PLT
	lea	rdi, .LC76[rip]
	call	system@PLT
	lea	rdi, .LC77[rip]
	call	system@PLT
	lea	rdi, .LC78[rip]
	call	system@PLT
	lea	rdi, .LC79[rip]
	call	system@PLT
	cmp	DWORD PTR -4[rbp], 0
	je	.L143
	lea	rdi, fifo_file_2m[rip]
	call	unlink@PLT
	lea	rdi, fifo_file_2b[rip]
	call	unlink@PLT
.L143:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	rm_files, .-rm_files
	.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	"782021.c"
	.text
	.comm	fileptr,4,4
	.comm	banim,4,4
	.comm	bkit,4,4
	.comm	cur_dir,4096,4
	.comm	fifo_file_2m,50,4
	.comm	fifo_file_2b,50,4
	.comm	BSes_num,50,4
	.comm	tty_id,50,4
	.comm	done,4,4
	.comm	i,4,4
	.comm	c,4,4
	.comm	Bpim_num,25,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"w\000"
	.align	2
.LC1:
	.ascii	"TMP/.BBcom\000"
	.align	2
.LC2:
	.ascii	"\012\012             Can't open \"TMP/.BBcom\" for "
	.ascii	"writing\012\000"
	.align	2
.LC3:
	.ascii	"r\000"
	.align	2
.LC4:
	.ascii	".Bini\000"
	.align	2
.LC5:
	.ascii	"\012            $BKIT/BLIB/BMotif not yet running\012"
	.ascii	"\000"
	.align	2
.LC6:
	.ascii	"\012               Waiting for BMotif ... (%2d)\000"
	.align	2
.LC7:
	.ascii	"\012\012\012              $BKIT/BLIB/BMotif didn't "
	.ascii	"start\012\012\012\000"
	.align	2
.LC8:
	.ascii	" ... ok\012\000"
	.text
	.align	2
	.global	read_Bini_load_strings
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_Bini_load_strings, %function
read_Bini_load_strings:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	mov	r3, #1
	str	r3, [fp, #-28]
	mov	r3, #152
	str	r3, [fp, #-16]
	ldr	r3, .L19
	str	r3, [fp, #-12]
	ldr	r1, .L19+4
	ldr	r0, .L19+8
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L19+12
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	ldr	r0, [fp, #-8]
	bl	fclose
	b	.L3
.L15:
	ldr	r1, .L19+16
	ldr	r0, .L19+20
	bl	fopen
	mov	r3, r0
	ldr	r2, .L19+24
	str	r3, [r2]
	ldr	r3, .L19+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L4
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, .L19+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	str	r0, [fp, #-20]
	b	.L5
.L7:
	ldr	r3, [fp, #-20]
	and	r1, r3, #255
	ldr	r2, .L19+28
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, .L19+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	str	r0, [fp, #-20]
.L5:
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	beq	.L6
	ldr	r3, [fp, #-20]
	cmp	r3, #124
	bne	.L7
.L6:
	ldr	r2, .L19+28
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	cmp	r3, #124
	beq	.L8
	mov	r0, #4
	bl	err_exit
.L8:
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, .L19+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	str	r0, [fp, #-20]
	b	.L9
.L11:
	ldr	r3, [fp, #-20]
	and	r1, r3, #255
	ldr	r2, .L19+32
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, .L19+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	str	r0, [fp, #-20]
.L9:
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	beq	.L10
	ldr	r3, [fp, #-20]
	cmp	r3, #10
	bne	.L11
.L10:
	ldr	r3, .L19+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r0, .L19+20
	bl	unlink
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldr	r2, .L19+32
	mov	r1, #0
	strb	r1, [r2, r3]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L3
.L4:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-16]
	cmp	r3, #16
	bne	.L12
	ldr	r0, .L19+36
	bl	puts
	b	.L13
.L12:
	ldr	r3, [fp, #-16]
	cmp	r3, #15
	bgt	.L13
	ldr	r1, [fp, #-16]
	ldr	r0, .L19+40
	bl	printf
.L13:
	ldr	r3, .L19+44
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r0, [fp, #-12]
	bl	usleep
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L3:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L15
.L14:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L16
	ldr	r0, .L19+48
	bl	puts
	mov	r0, #11
	bl	err_exit
	b	.L18
.L16:
	ldr	r3, [fp, #-16]
	cmp	r3, #15
	bgt	.L18
	ldr	r0, .L19+52
	bl	puts
.L18:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	100000
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	fileptr
	.word	cur_dir
	.word	Bpim_num
	.word	.LC5
	.word	.LC6
	.word	stdout
	.word	.LC7
	.word	.LC8
	.size	read_Bini_load_strings, .-read_Bini_load_strings
	.section	.rodata
	.align	2
.LC9:
	.ascii	"1\000"
	.align	2
.LC10:
	.ascii	".Bver\000"
	.align	2
.LC11:
	.ascii	"4.9\000"
	.align	2
.LC12:
	.ascii	".Bjob\000"
	.align	2
.LC13:
	.ascii	"?,(0:%d:0)|?|0|?|?|?|?|?|?|?|?|?|0|?|0|?|?|?|?\000"
	.align	2
.LC14:
	.ascii	"?|?|0|?|?|?|?|?|?|?|?|?|0|?|0|?|?|?|?\000"
	.text
	.align	2
	.global	re_initialise
	.syntax unified
	.arm
	.fpu softvfp
	.type	re_initialise, %function
re_initialise:
	@ 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]
	ldr	r2, .L26
	ldr	r3, .L26+4
	mov	r0, r2
	mov	r1, r3
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	ldr	r1, .L26+8
	ldr	r0, .L26+12
	bl	fopen
	mov	r3, r0
	ldr	r2, .L26+16
	str	r3, [r2]
	ldr	r3, .L26+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L22
	mov	r0, #6
	bl	err_exit
.L22:
	ldr	r3, .L26+16
	ldr	r3, [r3]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L26+20
	bl	fwrite
	ldr	r3, .L26+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r1, .L26+8
	ldr	r0, .L26+24
	bl	fopen
	mov	r3, r0
	ldr	r2, .L26+16
	str	r3, [r2]
	ldr	r3, .L26+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L23
	mov	r0, #7
	bl	err_exit
.L23:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L24
	ldr	r3, .L26+16
	ldr	r3, [r3]
	mov	r2, #194
	ldr	r1, .L26+28
	mov	r0, r3
	bl	fprintf
	b	.L25
.L24:
	ldr	r3, .L26+16
	ldr	r3, [r3]
	mov	r2, #37
	mov	r1, #1
	ldr	r0, .L26+32
	bl	fwrite
.L25:
	ldr	r3, .L26+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	BSes_num
	.word	.LC9
	.word	.LC0
	.word	.LC10
	.word	fileptr
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	re_initialise, .-re_initialise
	.align	2
	.global	int_trap
	.syntax unified
	.arm
	.fpu softvfp
	.type	int_trap, %function
int_trap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #11
	bl	err_exit
	nop
	pop	{fp, pc}
	.size	int_trap, .-int_trap
	.section	.rodata
	.align	2
.LC15:
	.ascii	".Bcom\000"
	.text
	.align	2
	.global	get_new_dir_from_Bcom
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_new_dir_from_Bcom, %function
get_new_dir_from_Bcom:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r1, .L34
	ldr	r0, .L34+4
	bl	fopen
	mov	r3, r0
	ldr	r2, .L34+8
	str	r3, [r2]
	ldr	r3, .L34+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L30
	mov	r0, #8
	bl	err_exit
.L30:
	ldr	r3, .L34+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	str	r0, [fp, #-12]
	b	.L31
.L33:
	ldr	r3, [fp, #-12]
	and	r1, r3, #255
	ldr	r2, .L34+12
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, .L34+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	str	r0, [fp, #-12]
.L31:
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	beq	.L32
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	bne	.L33
.L32:
	ldr	r3, .L34+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r2, .L34+12
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC3
	.word	.LC15
	.word	fileptr
	.word	cur_dir
	.size	get_new_dir_from_Bcom, .-get_new_dir_from_Bcom
	.section	.rodata
	.align	2
.LC16:
	.ascii	".Bxok\000"
	.align	2
.LC17:
	.ascii	".Btty\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	wait_Bxok_and_get_tty_id
	.syntax unified
	.arm
	.fpu softvfp
	.type	wait_Bxok_and_get_tty_id, %function
wait_Bxok_and_get_tty_id:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	ldr	r3, .L49
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L37
.L39:
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, .L49+4
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L38
	mov	r3, #1
	str	r3, [fp, #-104]
	b	.L37
.L38:
	mov	r0, #1
	bl	sleep
.L37:
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	beq	.L39
	mov	r3, #0
	str	r3, [fp, #-108]
	ldr	r3, .L49+8
	mov	r2, #0
	str	r2, [r3]
	b	.L40
.L43:
	ldr	r1, .L49+12
	ldr	r0, .L49+16
	bl	fopen
	mov	r3, r0
	ldr	r2, .L49+20
	str	r3, [r2]
	ldr	r3, .L49+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L41
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
	mov	r0, #1
	bl	sleep
	b	.L40
.L41:
	ldr	r3, .L49+8
	mov	r2, #1
	str	r2, [r3]
.L40:
	ldr	r3, .L49+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L42
	ldr	r3, [fp, #-108]
	cmp	r3, #9
	ble	.L43
.L42:
	ldr	r3, .L49+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L44
	mov	r0, #5
	bl	err_exit
.L44:
	ldr	r3, .L49+24
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L49+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	mov	r3, r0
	ldr	r2, .L49+28
	str	r3, [r2]
	b	.L45
.L47:
	ldr	r3, .L49+28
	ldr	r2, [r3]
	ldr	r3, .L49+24
	ldr	r3, [r3]
	and	r1, r2, #255
	ldr	r2, .L49+32
	strb	r1, [r2, r3]
	ldr	r3, .L49+24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L49+24
	str	r3, [r2]
	ldr	r3, .L49+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	mov	r3, r0
	ldr	r2, .L49+28
	str	r3, [r2]
.L45:
	ldr	r3, .L49+28
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L46
	ldr	r3, .L49+28
	ldr	r3, [r3]
	cmp	r3, #10
	bne	.L47
.L46:
	ldr	r3, .L49+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r3, .L49+24
	ldr	r3, [r3]
	ldr	r2, .L49+32
	mov	r1, #0
	strb	r1, [r2, r3]
	nop
	ldr	r3, .L49
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L48
	bl	__stack_chk_fail
.L48:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	.LC18
	.word	.LC16
	.word	done
	.word	.LC3
	.word	.LC17
	.word	fileptr
	.word	i
	.word	c
	.word	tty_id
	.size	wait_Bxok_and_get_tty_id, .-wait_Bxok_and_get_tty_id
	.section	.rodata
	.align	2
.LC19:
	.ascii	"TMP/.Bpog\000"
	.text
	.align	2
	.global	get_pog_flag
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_pog_flag, %function
get_pog_flag:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r1, .L54
	ldr	r0, .L54+4
	bl	fopen
	mov	r3, r0
	ldr	r2, .L54+8
	str	r3, [r2]
	ldr	r3, .L54+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L52
	mov	r0, #13
	bl	err_exit
.L52:
	ldr	r3, .L54+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	mov	r3, r0
	ldr	r2, .L54+12
	str	r3, [r2]
	ldr	r3, .L54+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r3, .L54+12
	ldr	r3, [r3]
	sub	r3, r3, #48
	mov	r0, r3
	pop	{fp, pc}
.L55:
	.align	2
.L54:
	.word	.LC3
	.word	.LC19
	.word	fileptr
	.word	c
	.size	get_pog_flag, .-get_pog_flag
	.section	.rodata
	.align	2
.LC20:
	.ascii	"BKIT\000"
	.align	2
.LC21:
	.ascii	"BANIMATOR\000"
	.align	2
.LC22:
	.ascii	"%s/BPLAT/bplatform %s/BLIB/Toolkit\000"
	.align	2
.LC23:
	.ascii	"/tmp/.B_%s_2m\000"
	.align	2
.LC24:
	.ascii	"/tmp/.B_%s_2b\000"
	.align	2
.LC25:
	.ascii	".Berr\000"
	.align	2
.LC26:
	.ascii	"%s%s.bin %s %s 040 0 %s %s 2> .Berr\000"
	.align	2
.LC27:
	.ascii	".Bses\000"
	.align	2
.LC28:
	.ascii	"14\000"
	.align	2
.LC29:
	.ascii	"%s/BLIB/CheckAnnot 1 %s\000"
	.align	2
.LC30:
	.ascii	"15\000"
	.align	2
.LC31:
	.ascii	"%s/BLIB/CheckAnnot %s\000"
	.align	2
.LC32:
	.ascii	"999\000"
	.align	2
.LC33:
	.ascii	"997\000"
	.align	2
.LC34:
	.ascii	"998\000"
	.align	2
.LC35:
	.ascii	".BToolkitLock\000"
	.align	2
.LC36:
	.ascii	".Benv\000"
	.align	2
.LC37:
	.ascii	"0$toolkit$0$0\000"
	.align	2
.LC38:
	.ascii	"5\000"
	.align	2
.LC39:
	.ascii	"20\000"
	.align	2
.LC40:
	.ascii	"21\000"
	.align	2
.LC41:
	.ascii	"%s%s.bin %s %s 040 %d %s %s | tee -a .Blog > %s 2> "
	.ascii	".Berr\000"
	.align	2
.LC42:
	.ascii	"%s%s.bin %s %s 040 0 %s %s | tee -a .Blog > %s 2> ."
	.ascii	"Berr\000"
	.align	2
.LC43:
	.ascii	"rm -f .Bses\000"
	.align	2
.LC44:
	.ascii	"0\000"
	.align	2
.LC45:
	.ascii	"999999\000"
	.align	2
.LC46:
	.ascii	"\012\012       THIS IS *NOT* THE WAY TO TERMINATE T"
	.ascii	"HE B-TOOLKIT;\012         DATA MAY BE LOST, OR THE "
	.ascii	"SYSTEM LEFT HANGING\012\012            PLEASE USE T"
	.ascii	"HE UTILS->EXIT PULLDOWN\012\012\012\012\000"
	.align	2
.LC47:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 12448
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12416
	sub	sp, sp, #60
	sub	r3, fp, #12288
	sub	r3, r3, #12
	str	r0, [r3, #-156]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	str	r1, [r3, #-160]
	ldr	r3, .L95
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-152]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L95+4
	str	r3, [r2, #-144]
	sub	r3, fp, #12416
	sub	r3, r3, #12
	sub	r3, r3, #16
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #12416
	sub	r3, r3, #12
	sub	r3, r3, #16
	add	r3, r3, #4
	mov	r1, #2
	mov	r0, r3
	bl	sigaddset
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-12]
	sub	r3, fp, #12416
	sub	r3, r3, #12
	sub	r3, r3, #16
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigaction
	ldr	r0, .L95+8
	bl	getenv
	mov	r3, r0
	ldr	r2, .L95+12
	str	r3, [r2]
	ldr	r3, .L95+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L57
	mov	r0, #1
	bl	err_exit
.L57:
	ldr	r0, .L95+16
	bl	getenv
	mov	r3, r0
	ldr	r2, .L95+20
	str	r3, [r2]
	ldr	r3, .L95+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L58
	ldr	r3, .L95+12
	ldr	r3, [r3]
	ldr	r2, .L95+20
	str	r3, [r2]
.L58:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-160]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L95+24
	bl	strcpy
	ldr	r3, .L95+12
	ldr	r2, [r3]
	ldr	r3, .L95+12
	ldr	r3, [r3]
	sub	r0, fp, #12288
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r1, .L95+28
	bl	sprintf
	bl	read_Bini_load_strings
	ldr	r2, .L95+32
	ldr	r1, .L95+36
	ldr	r0, .L95+40
	bl	sprintf
	mov	r1, #420
	ldr	r0, .L95+40
	bl	mkfifo
	mov	r3, r0
	cmp	r3, #0
	beq	.L59
	mov	r0, #37
	bl	err_exit
.L59:
	ldr	r2, .L95+32
	ldr	r1, .L95+44
	ldr	r0, .L95+48
	bl	sprintf
	mov	r1, #420
	ldr	r0, .L95+48
	bl	mkfifo
	mov	r3, r0
	cmp	r3, #0
	beq	.L60
	mov	r0, #38
	bl	err_exit
.L60:
	ldr	r0, .L95+52
	bl	unlink
	sub	r2, fp, #12288
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r0, fp, #8192
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, .L95+48
	str	r3, [sp, #12]
	ldr	r3, .L95+40
	str	r3, [sp, #8]
	ldr	r3, .L95+24
	str	r3, [sp, #4]
	ldr	r3, .L95+32
	str	r3, [sp]
	ldr	r3, .L95+56
	ldr	r1, .L95+60
	bl	sprintf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
	ldr	r1, .L95+64
	ldr	r0, .L95+68
	bl	fopen
	mov	r3, r0
	ldr	r2, .L95+72
	str	r3, [r2]
	ldr	r3, .L95+72
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L61
	mov	r0, #2
	bl	err_exit
.L61:
	ldr	r3, .L95+76
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L95+72
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	mov	r3, r0
	ldr	r2, .L95+80
	str	r3, [r2]
	b	.L62
.L64:
	ldr	r3, .L95+80
	ldr	r2, [r3]
	ldr	r3, .L95+76
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r0, .L95+76
	str	r1, [r0]
	and	r1, r2, #255
	ldr	r2, .L95+84
	strb	r1, [r2, r3]
	ldr	r3, .L95+72
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	mov	r3, r0
	ldr	r2, .L95+80
	str	r3, [r2]
.L62:
	ldr	r3, .L95+80
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L63
	ldr	r3, .L95+80
	ldr	r3, [r3]
	cmp	r3, #10
	bne	.L64
.L63:
	ldr	r3, .L95+72
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r0, .L95+68
	bl	unlink
	ldr	r3, .L95+76
	ldr	r3, [r3]
	ldr	r2, .L95+84
	mov	r1, #0
	strb	r1, [r2, r3]
	b	.L65
.L90:
	ldr	r0, .L95+52
	bl	unlink
	ldr	r1, .L95+56
	ldr	r0, .L95+84
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L66
	sub	r2, fp, #12288
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r0, fp, #8192
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, .L95+48
	str	r3, [sp, #12]
	ldr	r3, .L95+40
	str	r3, [sp, #8]
	ldr	r3, .L95+24
	str	r3, [sp, #4]
	ldr	r3, .L95+32
	str	r3, [sp]
	ldr	r3, .L95+84
	ldr	r1, .L95+60
	bl	sprintf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
	b	.L67
.L66:
	ldr	r1, .L95+88
	ldr	r0, .L95+84
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L68
	ldr	r3, .L95+12
	ldr	r2, [r3]
	ldr	r3, .L95+12
	ldr	r3, [r3]
	sub	r0, fp, #8192
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r1, .L95+92
	bl	sprintf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
	b	.L67
.L68:
	ldr	r1, .L95+96
	ldr	r0, .L95+84
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L69
	ldr	r3, .L95+12
	ldr	r2, [r3]
	ldr	r3, .L95+12
	ldr	r3, [r3]
	sub	r0, fp, #8192
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r1, .L95+100
	bl	sprintf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
	b	.L67
.L69:
	ldr	r1, .L95+104
	ldr	r0, .L95+84
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L70
	mov	r0, #0
	bl	re_initialise
	sub	r2, fp, #12288
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r0, fp, #8192
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, .L95+48
	str	r3, [sp, #12]
	ldr	r3, .L95+40
	str	r3, [sp, #8]
	ldr	r3, .L95+24
	str	r3, [sp, #4]
	ldr	r3, .L95+32
	str	r3, [sp]
	ldr	r3, .L95+56
	ldr	r1, .L95+60
	bl	sprintf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
	b	.L67
.L70:
	ldr	r1, .L95+108
	ldr	r0, .L95+84
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L71
	mov	r0, #0
	bl	re_initialise
	sub	r2, fp, #12288
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r0, fp, #8192
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, .L95+48
	str	r3, [sp, #12]
	ldr	r3, .L95+40
	str	r3, [sp, #8]
	ldr	r3, .L95+24
	str	r3, [sp, #4]
	ldr	r3, .L95+32
	str	r3, [sp]
	ldr	r3, .L95+56
	ldr	r1, .L95+60
	bl	sprintf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
	b	.L67
.L71:
	ldr	r1, .L95+112
	ldr	r0, .L95+84
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L72
	bl	get_new_dir_from_Bcom
	mov	r0, #0
	bl	rm_files
	ldr	r0, .L95+116
	bl	unlink
	ldr	r0, .L95+24
	bl	chdir
	mov	r3, r0
	cmn	r3, #1
	bne	.L73
	mov	r0, #9
	bl	err_exit
.L73:
	mov	r0, #0
	bl	re_initialise
	ldr	r1, .L95+120
	ldr	r0, .L95+124
	bl	fopen
	mov	r3, r0
	ldr	r2, .L95+72
	str	r3, [r2]
	ldr	r3, .L95+72
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L74
	mov	r0, #10
	bl	err_exit
.L74:
	ldr	r3, .L95+72
	ldr	r3, [r3]
	mov	r2, #13
	mov	r1, #1
	ldr	r0, .L95+128
	bl	fwrite
	ldr	r3, .L95+72
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	sub	r2, fp, #12288
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r0, fp, #8192
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, .L95+48
	str	r3, [sp, #12]
	ldr	r3, .L95+40
	str	r3, [sp, #8]
	ldr	r3, .L95+24
	str	r3, [sp, #4]
	ldr	r3, .L95+32
	str	r3, [sp]
	ldr	r3, .L95+56
	ldr	r1, .L95+60
	bl	sprintf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
	b	.L67
.L72:
	ldr	r1, .L95+132
	ldr	r0, .L95+84
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L75
	ldr	r1, .L95+136
	ldr	r0, .L95+84
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L75
	ldr	r1, .L95+140
	ldr	r0, .L95+84
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L76
.L75:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r4, r3
	bl	get_pog_flag
	str	r0, [r4, #-148]
	bl	wait_Bxok_and_get_tty_id
	sub	r2, fp, #12288
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r0, fp, #8192
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, .L95+144
	str	r3, [sp, #20]
	ldr	r3, .L95+48
	str	r3, [sp, #16]
	ldr	r3, .L95+40
	str	r3, [sp, #12]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-148]
	str	r3, [sp, #8]
	ldr	r3, .L95+24
	str	r3, [sp, #4]
	ldr	r3, .L95+32
	str	r3, [sp]
	ldr	r3, .L95+84
	ldr	r1, .L95+148
	bl	sprintf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
	b	.L67
.L76:
	ldr	r0, .L95+84
	bl	strlen
	mov	r3, r0
	cmp	r3, #4
	bne	.L77
	ldr	r3, .L95+84
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L78
	ldr	r3, .L95+76
	mov	r2, #3
	str	r2, [r3]
	b	.L79
.L80:
	ldr	r3, .L95+76
	ldr	r2, [r3]
	ldr	r3, .L95+76
	ldr	r3, [r3]
	sub	r3, r3, #3
	ldr	r1, .L95+84
	ldrb	r1, [r1, r2]	@ zero_extendqisi2
	ldr	r2, .L95+84
	strb	r1, [r2, r3]
	ldr	r3, .L95+76
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L95+76
	str	r3, [r2]
.L79:
	ldr	r3, .L95+76
	ldr	r3, [r3]
	ldr	r2, .L95+84
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L80
	ldr	r3, .L95+76
	ldr	r3, [r3]
	sub	r3, r3, #3
	ldr	r2, .L95+84
	mov	r1, #0
	strb	r1, [r2, r3]
	b	.L81
.L78:
	ldr	r3, .L95+76
	mov	r2, #2
	str	r2, [r3]
	b	.L82
.L83:
	ldr	r3, .L95+76
	ldr	r2, [r3]
	ldr	r3, .L95+76
	ldr	r3, [r3]
	sub	r3, r3, #2
	ldr	r1, .L95+84
	ldrb	r1, [r1, r2]	@ zero_extendqisi2
	ldr	r2, .L95+84
	strb	r1, [r2, r3]
	ldr	r3, .L95+76
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L95+76
	str	r3, [r2]
.L82:
	ldr	r3, .L95+76
	ldr	r3, [r3]
	ldr	r2, .L95+84
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L83
	ldr	r3, .L95+76
	ldr	r3, [r3]
	sub	r3, r3, #2
	ldr	r2, .L95+84
	mov	r1, #0
	strb	r1, [r2, r3]
.L81:
	sub	r2, fp, #12288
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r0, fp, #8192
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, .L95+48
	str	r3, [sp, #12]
	ldr	r3, .L95+40
	str	r3, [sp, #8]
	ldr	r3, .L95+24
	str	r3, [sp, #4]
	ldr	r3, .L95+32
	str	r3, [sp]
	ldr	r3, .L95+84
	ldr	r1, .L95+60
	bl	sprintf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
	b	.L67
.L77:
	bl	wait_Bxok_and_get_tty_id
	sub	r2, fp, #12288
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r0, fp, #8192
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, .L95+144
	str	r3, [sp, #16]
	ldr	r3, .L95+48
	str	r3, [sp, #12]
	ldr	r3, .L95+40
	str	r3, [sp, #8]
	ldr	r3, .L95+24
	str	r3, [sp, #4]
	ldr	r3, .L95+32
	str	r3, [sp]
	ldr	r3, .L95+84
	ldr	r1, .L95+152
	bl	sprintf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
.L67:
	ldr	r1, .L95+64
	ldr	r0, .L95+68
	bl	fopen
	mov	r3, r0
	ldr	r2, .L95+72
	str	r3, [r2]
	ldr	r3, .L95+72
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L84
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-152]
	cmp	r3, #0
	beq	.L85
	mov	r0, #3
	bl	err_exit
	b	.L65
.L85:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-152]
	mov	r0, #1
	bl	print_warning
	mov	r0, #1
	bl	re_initialise
	ldr	r2, .L95+84
	ldr	r3, .L95+56
	mov	r0, r2
	mov	r1, r3
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	b	.L65
.L84:
	ldr	r3, .L95+76
	mov	r2, #0
	str	r2, [r3]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-152]
	ldr	r3, .L95+72
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	mov	r3, r0
	ldr	r2, .L95+80
	str	r3, [r2]
	b	.L86
.L88:
	ldr	r3, .L95+80
	ldr	r2, [r3]
	ldr	r3, .L95+76
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r0, .L95+76
	str	r1, [r0]
	and	r1, r2, #255
	ldr	r2, .L95+84
	strb	r1, [r2, r3]
	ldr	r3, .L95+72
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	mov	r3, r0
	ldr	r2, .L95+80
	str	r3, [r2]
.L86:
	ldr	r3, .L95+80
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L87
	ldr	r3, .L95+80
	ldr	r3, [r3]
	cmp	r3, #10
	bne	.L88
.L87:
	ldr	r3, .L95+72
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r0, .L95+156
	bl	system
	ldr	r3, .L95+76
	ldr	r3, [r3]
	ldr	r2, .L95+84
	mov	r1, #0
	strb	r1, [r2, r3]
.L65:
	ldr	r1, .L95+160
	ldr	r0, .L95+84
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L89
	ldr	r1, .L95+164
	ldr	r0, .L95+84
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L90
.L89:
	ldr	r1, .L95+164
	ldr	r0, .L95+84
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L91
	ldr	r0, .L95+168
	bl	puts
	b	.L92
.L91:
	bl	kill_BMotif
.L92:
	bl	kill_XTerm
	bl	kill_edit
	bl	kill_bplatform
	mov	r0, #1
	bl	rm_files
	bl	chk_info_reqd
	ldr	r0, .L95+116
	bl	unlink
	mov	r3, #0
	ldr	r2, .L95
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L94
	bl	__stack_chk_fail
.L94:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L96:
	.align	2
.L95:
	.word	.LC47
	.word	int_trap
	.word	.LC20
	.word	bkit
	.word	.LC21
	.word	banim
	.word	cur_dir
	.word	.LC22
	.word	Bpim_num
	.word	.LC23
	.word	fifo_file_2m
	.word	.LC24
	.word	fifo_file_2b
	.word	.LC25
	.word	.LC9
	.word	.LC26
	.word	.LC3
	.word	.LC27
	.word	fileptr
	.word	i
	.word	c
	.word	BSes_num
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC0
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	tty_id
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.size	main, .-main
	.section	.rodata
	.align	2
.LC48:
	.ascii	"\012\012               Problem with toolkit binary\012"
	.ascii	"\000"
	.align	2
.LC49:
	.ascii	"\012  Contents of .Berr (may not be relevant):\012\012"
	.ascii	"\000"
	.align	2
.LC50:
	.ascii	"cat .Berr\000"
	.text
	.align	2
	.global	print_warning
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_warning, %function
print_warning:
	@ 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]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L99
	ldr	r0, .L100
	bl	puts
	ldr	r0, .L100+4
	bl	puts
	ldr	r0, .L100+8
	bl	system
	nop
.L99:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L101:
	.align	2
.L100:
	.word	.LC48
	.word	.LC49
	.word	.LC50
	.size	print_warning, .-print_warning
	.section	.rodata
	.align	2
.LC51:
	.ascii	"\012  Environment variable BKIT not set\000"
	.align	2
.LC52:
	.ascii	"\012         Execution problem ( insufficient memor"
	.ascii	"y? )\000"
	.align	2
.LC53:
	.ascii	"\012\012              B-Toolkit Session Terminated\000"
	.align	2
.LC54:
	.ascii	"\012\012             ( all data has been preserved "
	.ascii	")\000"
	.align	2
.LC55:
	.ascii	"\012\012               Problem running B-Toolkit\000"
	.align	2
.LC56:
	.ascii	"\012\012                 \".Bini\" format error\000"
	.align	2
.LC57:
	.ascii	"\012\012             Can't open \".Btty\" for readi"
	.ascii	"ng\000"
	.align	2
.LC58:
	.ascii	"\012\012             Can't open \".Bver\" for writi"
	.ascii	"ng\000"
	.align	2
.LC59:
	.ascii	"\012\012             Can't open \".Bjob\" for writi"
	.ascii	"ng\000"
	.align	2
.LC60:
	.ascii	"\012\012             Can't open \".Bcom\" for readi"
	.ascii	"ng\000"
	.align	2
.LC61:
	.ascii	"\012\012  Can't \"chdir\" to %s\000"
	.align	2
.LC62:
	.ascii	"\012\012              chdir\000"
	.align	2
.LC63:
	.ascii	"\012\012             Can't open \".Benv\" for writi"
	.ascii	"ng\000"
	.align	2
.LC64:
	.ascii	"\012\012             Can't open \"TMP/.Bpog\" for r"
	.ascii	"eading\000"
	.align	2
.LC65:
	.ascii	"\012\012              Can't mkfifo in %s\000"
	.align	2
.LC66:
	.ascii	"\012\012\012\000"
	.text
	.align	2
	.global	err_exit
	.syntax unified
	.arm
	.fpu softvfp
	.type	err_exit, %function
err_exit:
	@ 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]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	cmp	r3, #37
	ldrls	pc, [pc, r3, asl #2]
	b	.L103
.L105:
	.word	.L118
	.word	.L117
	.word	.L116
	.word	.L103
	.word	.L115
	.word	.L114
	.word	.L113
	.word	.L112
	.word	.L111
	.word	.L110
	.word	.L103
	.word	.L108
	.word	.L107
	.word	.L103
	.word	.L103
	.word	.L103
	.word	.L103
	.word	.L103
	.word	.L103
	.word	.L103
	.word	.L103
	.word	.L103
	.word	.L103
	.word	.L103
	.word	.L103
	.word	.L103
	.word	.L103
	.word	.L103
	.word	.L103
	.word	.L103
	.word	.L103
	.word	.L103
	.word	.L103
	.word	.L103
	.word	.L103
	.word	.L103
	.word	.L106
	.word	.L104
.L118:
	ldr	r0, .L119
	bl	puts
	b	.L103
.L117:
	ldr	r0, .L119+4
	bl	puts
	ldr	r0, .L119+8
	bl	puts
	ldr	r0, .L119+12
	bl	puts
	b	.L103
.L116:
	ldr	r0, .L119+16
	bl	system
	ldr	r0, .L119+20
	bl	puts
	ldr	r0, .L119+8
	bl	puts
	ldr	r0, .L119+12
	bl	puts
	b	.L103
.L108:
	ldr	r0, .L119+24
	bl	puts
	ldr	r0, .L119+8
	bl	puts
	ldr	r0, .L119+12
	bl	puts
	b	.L103
.L115:
	ldr	r0, .L119+28
	bl	puts
	ldr	r0, .L119+8
	bl	puts
	ldr	r0, .L119+12
	bl	puts
	b	.L103
.L114:
	ldr	r0, .L119+32
	bl	puts
	ldr	r0, .L119+8
	bl	puts
	ldr	r0, .L119+12
	bl	puts
	b	.L103
.L113:
	ldr	r0, .L119+36
	bl	puts
	ldr	r0, .L119+8
	bl	puts
	ldr	r0, .L119+12
	bl	puts
	b	.L103
.L112:
	ldr	r0, .L119+40
	bl	puts
	ldr	r0, .L119+8
	bl	puts
	ldr	r0, .L119+12
	bl	puts
	b	.L103
.L111:
	ldr	r1, .L119+44
	ldr	r0, .L119+48
	bl	printf
	ldr	r0, .L119+52
	bl	perror
	ldr	r0, .L119+8
	bl	puts
	ldr	r0, .L119+12
	bl	puts
	b	.L103
.L110:
	ldr	r0, .L119+56
	bl	puts
	ldr	r0, .L119+8
	bl	puts
	ldr	r0, .L119+12
	bl	puts
	b	.L103
.L107:
	ldr	r0, .L119+60
	bl	puts
	ldr	r0, .L119+8
	bl	puts
	ldr	r0, .L119+12
	bl	puts
	b	.L103
.L106:
	ldr	r1, .L119+64
	ldr	r0, .L119+68
	bl	printf
	ldr	r0, .L119+8
	bl	puts
	ldr	r0, .L119+12
	bl	puts
	b	.L103
.L104:
	ldr	r1, .L119+72
	ldr	r0, .L119+68
	bl	printf
	ldr	r0, .L119+8
	bl	puts
	ldr	r0, .L119+12
	bl	puts
	nop
.L103:
	ldr	r0, .L119+76
	bl	puts
	bl	kill_BMotif
	bl	kill_XTerm
	bl	kill_edit
	bl	kill_bplatform
	mov	r0, #1
	bl	rm_files
	bl	chk_info_reqd
	ldr	r0, .L119+80
	bl	unlink
	ldr	r0, [fp, #-8]
	bl	exit
.L120:
	.align	2
.L119:
	.word	.LC51
	.word	.LC52
	.word	.LC53
	.word	.LC54
	.word	.LC50
	.word	.LC55
	.word	.LC56
	.word	.LC57
	.word	.LC58
	.word	.LC59
	.word	.LC60
	.word	cur_dir
	.word	.LC61
	.word	.LC62
	.word	.LC63
	.word	.LC64
	.word	fifo_file_2m
	.word	.LC65
	.word	fifo_file_2b
	.word	.LC66
	.word	.LC35
	.size	err_exit, .-err_exit
	.section	.rodata
	.align	2
.LC67:
	.ascii	".Bpim\000"
	.align	2
.LC68:
	.ascii	"rm -f .Bcom ; touch .Bcom\000"
	.align	2
.LC69:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	kill_BMotif
	.syntax unified
	.arm
	.fpu softvfp
	.type	kill_BMotif, %function
kill_BMotif:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	ldr	r3, .L133
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, .L133+4
	bl	stat
	str	r0, [fp, #-104]
	b	.L122
.L124:
	mov	r0, #1
	bl	sleep
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, .L133+4
	bl	stat
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L122:
	ldr	r3, [fp, #-104]
	cmn	r3, #1
	beq	.L123
	ldr	r3, [fp, #-108]
	cmp	r3, #9
	ble	.L124
.L123:
	ldr	r3, [fp, #-104]
	cmn	r3, #1
	beq	.L132
	ldr	r1, .L133+8
	ldr	r0, .L133+4
	bl	fopen
	mov	r3, r0
	ldr	r2, .L133+12
	str	r3, [r2]
	ldr	r3, .L133+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L121
	ldr	r3, .L133+16
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L133+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	mov	r3, r0
	ldr	r2, .L133+20
	str	r3, [r2]
	b	.L128
.L130:
	ldr	r3, .L133+16
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, .L133+20
	ldr	r3, [r3]
	add	r3, r2, r3
	sub	r3, r3, #48
	ldr	r2, .L133+16
	str	r3, [r2]
	ldr	r3, .L133+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	mov	r3, r0
	ldr	r2, .L133+20
	str	r3, [r2]
.L128:
	ldr	r3, .L133+20
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L129
	ldr	r3, .L133+20
	ldr	r3, [r3]
	cmp	r3, #10
	bne	.L130
.L129:
	ldr	r3, .L133+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r0, .L133+24
	bl	system
	ldr	r3, .L133+16
	ldr	r3, [r3]
	mov	r1, #9
	mov	r0, r3
	bl	kill
	b	.L121
.L132:
	nop
.L121:
	ldr	r3, .L133
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L131
	bl	__stack_chk_fail
.L131:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L134:
	.align	2
.L133:
	.word	.LC69
	.word	.LC67
	.word	.LC3
	.word	fileptr
	.word	i
	.word	c
	.word	.LC68
	.size	kill_BMotif, .-kill_BMotif
	.section	.rodata
	.align	2
.LC70:
	.ascii	".Bpix\000"
	.text
	.align	2
	.global	kill_XTerm
	.syntax unified
	.arm
	.fpu softvfp
	.type	kill_XTerm, %function
kill_XTerm:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r1, .L141
	ldr	r0, .L141+4
	bl	fopen
	mov	r3, r0
	ldr	r2, .L141+8
	str	r3, [r2]
	ldr	r3, .L141+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L140
	ldr	r3, .L141+12
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L141+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	mov	r3, r0
	ldr	r2, .L141+16
	str	r3, [r2]
	b	.L137
.L139:
	ldr	r3, .L141+12
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, .L141+16
	ldr	r3, [r3]
	add	r3, r2, r3
	sub	r3, r3, #48
	ldr	r2, .L141+12
	str	r3, [r2]
	ldr	r3, .L141+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	mov	r3, r0
	ldr	r2, .L141+16
	str	r3, [r2]
.L137:
	ldr	r3, .L141+16
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L138
	ldr	r3, .L141+16
	ldr	r3, [r3]
	cmp	r3, #10
	bne	.L139
.L138:
	ldr	r3, .L141+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r0, .L141+20
	bl	system
	ldr	r3, .L141+12
	ldr	r3, [r3]
	mov	r1, #9
	mov	r0, r3
	bl	kill
.L140:
	nop
	pop	{fp, pc}
.L142:
	.align	2
.L141:
	.word	.LC3
	.word	.LC70
	.word	fileptr
	.word	i
	.word	c
	.word	.LC68
	.size	kill_XTerm, .-kill_XTerm
	.section	.rodata
	.align	2
.LC71:
	.ascii	".Bpib\000"
	.text
	.align	2
	.global	kill_bplatform
	.syntax unified
	.arm
	.fpu softvfp
	.type	kill_bplatform, %function
kill_bplatform:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r1, .L149
	ldr	r0, .L149+4
	bl	fopen
	mov	r3, r0
	ldr	r2, .L149+8
	str	r3, [r2]
	ldr	r3, .L149+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L148
	ldr	r3, .L149+12
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L149+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	mov	r3, r0
	ldr	r2, .L149+16
	str	r3, [r2]
	b	.L145
.L147:
	ldr	r3, .L149+12
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, .L149+16
	ldr	r3, [r3]
	add	r3, r2, r3
	sub	r3, r3, #48
	ldr	r2, .L149+12
	str	r3, [r2]
	ldr	r3, .L149+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	mov	r3, r0
	ldr	r2, .L149+16
	str	r3, [r2]
.L145:
	ldr	r3, .L149+16
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L146
	ldr	r3, .L149+16
	ldr	r3, [r3]
	cmp	r3, #10
	bne	.L147
.L146:
	ldr	r3, .L149+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r3, .L149+16
	ldr	r3, [r3]
	cmp	r3, #10
	bne	.L148
	ldr	r3, .L149+12
	ldr	r3, [r3]
	mov	r1, #9
	mov	r0, r3
	bl	kill
.L148:
	nop
	pop	{fp, pc}
.L150:
	.align	2
.L149:
	.word	.LC3
	.word	.LC71
	.word	fileptr
	.word	i
	.word	c
	.size	kill_bplatform, .-kill_bplatform
	.section	.rodata
	.align	2
.LC72:
	.ascii	".Bed\000"
	.text
	.align	2
	.global	kill_edit
	.syntax unified
	.arm
	.fpu softvfp
	.type	kill_edit, %function
kill_edit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r1, .L157
	ldr	r0, .L157+4
	bl	fopen
	mov	r3, r0
	ldr	r2, .L157+8
	str	r3, [r2]
	ldr	r3, .L157+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L156
	ldr	r3, .L157+12
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L157+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	mov	r3, r0
	ldr	r2, .L157+16
	str	r3, [r2]
	b	.L153
.L155:
	ldr	r3, .L157+12
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, .L157+16
	ldr	r3, [r3]
	add	r3, r2, r3
	sub	r3, r3, #48
	ldr	r2, .L157+12
	str	r3, [r2]
	ldr	r3, .L157+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	mov	r3, r0
	ldr	r2, .L157+16
	str	r3, [r2]
.L153:
	ldr	r3, .L157+16
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L154
	ldr	r3, .L157+16
	ldr	r3, [r3]
	cmp	r3, #10
	bne	.L155
.L154:
	ldr	r3, .L157+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r0, .L157+20
	bl	system
	ldr	r3, .L157+12
	ldr	r3, [r3]
	mov	r1, #9
	mov	r0, r3
	bl	kill
.L156:
	nop
	pop	{fp, pc}
.L158:
	.align	2
.L157:
	.word	.LC3
	.word	.LC72
	.word	fileptr
	.word	i
	.word	c
	.word	.LC68
	.size	kill_edit, .-kill_edit
	.section	.rodata
	.align	2
.LC73:
	.ascii	".Berc\000"
	.align	2
.LC74:
	.ascii	"           Run the script: $BKIT/BProcessInfo\012\012"
	.ascii	"\012\000"
	.text
	.align	2
	.global	chk_info_reqd
	.syntax unified
	.arm
	.fpu softvfp
	.type	chk_info_reqd, %function
chk_info_reqd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r1, .L165
	ldr	r0, .L165+4
	bl	fopen
	mov	r3, r0
	ldr	r2, .L165+8
	str	r3, [r2]
	ldr	r3, .L165+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L164
	ldr	r3, .L165+12
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L165+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	mov	r3, r0
	ldr	r2, .L165+16
	str	r3, [r2]
	b	.L161
.L163:
	ldr	r3, .L165+12
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, .L165+16
	ldr	r3, [r3]
	add	r3, r2, r3
	sub	r3, r3, #48
	ldr	r2, .L165+12
	str	r3, [r2]
	ldr	r3, .L165+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	mov	r3, r0
	ldr	r2, .L165+16
	str	r3, [r2]
.L161:
	ldr	r3, .L165+16
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L162
	ldr	r3, .L165+16
	ldr	r3, [r3]
	cmp	r3, #10
	beq	.L162
	ldr	r3, .L165+16
	ldr	r3, [r3]
	cmp	r3, #47
	ble	.L162
	ldr	r3, .L165+16
	ldr	r3, [r3]
	cmp	r3, #57
	bgt	.L162
	ldr	r3, .L165+12
	ldr	r3, [r3]
	ldr	r2, .L165+20
	cmp	r3, r2
	ble	.L163
.L162:
	ldr	r3, .L165+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r0, .L165+4
	bl	unlink
	ldr	r3, .L165+12
	ldr	r3, [r3]
	ldr	r2, .L165+24
	cmp	r3, r2
	ble	.L164
	ldr	r3, .L165+12
	ldr	r3, [r3]
	ldr	r2, .L165+28
	cmp	r3, r2
	bgt	.L164
	ldr	r3, .L165+12
	ldr	r3, [r3]
	ldr	r2, .L165+32
	cmp	r3, r2
	beq	.L164
	ldr	r0, .L165+36
	bl	puts
.L164:
	nop
	pop	{fp, pc}
.L166:
	.align	2
.L165:
	.word	.LC3
	.word	.LC73
	.word	fileptr
	.word	i
	.word	c
	.word	99999998
	.word	15279
	.word	15289
	.word	15284
	.word	.LC74
	.size	chk_info_reqd, .-chk_info_reqd
	.section	.rodata
	.align	2
.LC75:
	.ascii	" rm -f .BBBcom .BBcom .Bsid .Bver .Bmen .Benv .Berr"
	.ascii	" .Bnum .Bprf .Bini btl_proof.dump\000"
	.align	2
.LC76:
	.ascii	" rm -f .Bls .Bipr .Bses .Bopn .Bcom .Bed .Bbw .Brec"
	.ascii	" .Bplx B.tmp .Bbox\000"
	.align	2
.LC77:
	.ascii	" rm -f  BB.tmp .Bhw .Bpw tmp.b tmp.c tmpb tmpc .Bpr"
	.ascii	"v .Bpob* .Bbbb\000"
	.align	2
.LC78:
	.ascii	" rm -f .Bprs .Bpdu .Bsb1 .Bsb2 .Bsb3 .Btad .Bcjt .B"
	.ascii	"tlb .Bxok\000"
	.align	2
.LC79:
	.ascii	" rm -f .Bcjm .Bdmf .Bjob .Bplf .Bpla .Bpi* .Blog .B"
	.ascii	"tty .Bhlp\000"
	.align	2
.LC80:
	.ascii	" rm -f .Bini .Bcpp .Bler .Bter SRC/.BBcom SRC/.Bter"
	.ascii	" .Bsta .Bpmd .Bipl\000"
	.align	2
.LC81:
	.ascii	" rm -f .B.bin .Blws .Bplt .Bpof .Bspo .Btac .Bthy ."
	.ascii	"Btot .Bmvr .Bhtx\000"
	.align	2
.LC82:
	.ascii	" rm -fr TMP\000"
	.text
	.align	2
	.global	rm_files
	.syntax unified
	.arm
	.fpu softvfp
	.type	rm_files, %function
rm_files:
	@ 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]
	ldr	r0, .L170
	bl	system
	ldr	r0, .L170+4
	bl	system
	ldr	r0, .L170+8
	bl	system
	ldr	r0, .L170+12
	bl	system
	ldr	r0, .L170+16
	bl	system
	ldr	r0, .L170+20
	bl	system
	ldr	r0, .L170+24
	bl	system
	ldr	r0, .L170+28
	bl	system
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L169
	ldr	r0, .L170+32
	bl	unlink
	ldr	r0, .L170+36
	bl	unlink
.L169:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L171:
	.align	2
.L170:
	.word	.LC75
	.word	.LC76
	.word	.LC77
	.word	.LC78
	.word	.LC79
	.word	.LC80
	.word	.LC81
	.word	.LC82
	.word	fifo_file_2m
	.word	fifo_file_2b
	.size	rm_files, .-rm_files
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
