	.file	"775937.c"
	.intel_syntax noprefix
	.text
	.data
	.align 16
	.type	thehead, @object
	.size	thehead, 27
thehead:
	.string	"\032\377\003\001\006\361\016\371\t\231\t\031\b\031\b\231\t\371\t\361\b\001\b\377\017"
	.string	""
	.section	.rodata
.LC0:
	.string	"rb"
	.text
	.globl	getlength
	.type	getlength, @function
getlength:
.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L2
	mov	eax, 0
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -8[rbp]
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getlength, .-getlength
	.globl	randname
	.type	randname, @function
randname:
.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	BYTE PTR name.0[rip], 66
	mov	DWORD PTR -8[rbp], 1
	jmp	.L5
.L8:
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 954437177
	shr	rax, 32
	sar	eax, 3
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	mov	ecx, DWORD PTR -4[rbp]
	mov	eax, ecx
	sal	eax, 3
	add	eax, ecx
	sal	eax, 2
	sub	edx, eax
	mov	DWORD PTR -4[rbp], edx
	cmp	DWORD PTR -4[rbp], 9
	jg	.L6
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 48
	mov	ecx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, name.0[rip]
	mov	BYTE PTR [rax+rdx], cl
	jmp	.L7
.L6:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 55
	mov	ecx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, name.0[rip]
	mov	BYTE PTR [rax+rdx], cl
.L7:
	add	DWORD PTR -8[rbp], 1
.L5:
	cmp	DWORD PTR -8[rbp], 7
	jle	.L8
	mov	BYTE PTR name.0[rip+8], 0
	lea	rax, name.0[rip]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	randname, .-randname
	.section	.rodata
.LC1:
	.string	"%hu"
	.align 8
.LC2:
	.string	"makewzd [-ownerid] filename [Title [(\"Description\" | @descfile) [iconfile]]]\n\n  Creates filename.wzd from filename.bin, adding Title and\n  Description if specified, and loading in an iconfile if provided.\n  The default title is the filename.\n"
	.align 8
.LC3:
	.string	"File `%s' is either unaccessible or zero length.\n"
.LC4:
	.string	"wb"
	.align 8
.LC5:
	.string	"Cannot open `%s' for writing.\n"
	.align 8
.LC6:
	.string	"<SHARP WZD DATA>\r\n<DATA TYPE>\r\nMY PROGRAMS\r\n</DATA TYPE>\r\n<TITLE>\r\n%s\r\n</TITLE>\r\n<CATEGORY>\r\nPROGRAM\r\n</CATEGORY>\r\n<DESCRIPTION>\r\n"
.LC7:
	.string	"r"
.LC8:
	.string	"Cannot open %s.\n"
.LC9:
	.string	"\r\n"
.LC10:
	.string	"%s\r\n"
	.align 8
.LC11:
	.string	"</DESCRIPTION>\r\n<CONTENT>\r\nBIN_PROG_1\r\n</CONTENT>\r\n<DATA>\r\nPFILE:%s.BAS\r\n</DATA>\r\n<BIN>\r\n"
.LC12:
	.string	"Cannot open icon file.\n"
.LC13:
	.string	"Error reading!\n"
.LC14:
	.string	"BFILNAMEBAS"
	.align 8
.LC15:
	.string	"Warning: Old init code, no filename record.\n"
.LC16:
	.string	"BAS"
	.align 8
.LC17:
	.string	"Warning: No room for owner ID.\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 256
	mov	DWORD PTR -244[rbp], edi
	mov	QWORD PTR -256[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -216[rbp]
	mov	rdi, rax
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	rax, QWORD PTR -256[rbp]
	mov	QWORD PTR -208[rbp], rax
	cmp	DWORD PTR -244[rbp], 1
	jle	.L11
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L11
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rcx, 1[rax]
	lea	rax, -228[rbp]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	add	QWORD PTR -208[rbp], 8
	sub	DWORD PTR -244[rbp], 1
	jmp	.L12
.L11:
	mov	WORD PTR -228[rbp], -1
.L12:
	cmp	DWORD PTR -244[rbp], 2
	je	.L13
	cmp	DWORD PTR -244[rbp], 3
	je	.L13
	cmp	DWORD PTR -244[rbp], 4
	je	.L13
	cmp	DWORD PTR -244[rbp], 5
	je	.L13
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 242
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L46
.L13:
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -144[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -144[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1852400174
	mov	BYTE PTR 4[rax], 0
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	getlength
	test	rax, rax
	je	.L15
	lea	rax, -144[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -200[rbp], rax
	cmp	QWORD PTR -200[rbp], 0
	jne	.L16
.L15:
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -144[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 4
	jmp	.L46
.L16:
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -144[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -144[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1685747502
	mov	BYTE PTR 4[rax], 0
	lea	rax, -144[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -192[rbp], rax
	cmp	QWORD PTR -192[rbp], 0
	jne	.L17
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -144[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 5
	jmp	.L46
.L17:
	cmp	DWORD PTR -244[rbp], 2
	jne	.L18
	mov	rax, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR 8[rax]
	jmp	.L19
.L18:
	mov	rax, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR 16[rax]
.L19:
	mov	rcx, QWORD PTR -192[rbp]
	mov	rdx, rax
	lea	rsi, .LC6[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	fprintf@PLT
	cmp	DWORD PTR -244[rbp], 3
	jle	.L20
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 64
	jne	.L20
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -184[rbp], rax
	cmp	QWORD PTR -184[rbp], 0
	jne	.L22
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 6
	jmp	.L46
.L24:
	cmp	DWORD PTR -224[rbp], 10
	jne	.L23
	mov	rax, QWORD PTR -192[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	jmp	.L22
.L23:
	mov	rdx, QWORD PTR -192[rbp]
	mov	eax, DWORD PTR -224[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
.L22:
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -224[rbp], eax
	cmp	DWORD PTR -224[rbp], -1
	jne	.L24
	mov	rax, QWORD PTR -192[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L25
.L20:
	cmp	DWORD PTR -244[rbp], 2
	jne	.L26
	mov	rax, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR 8[rax]
	jmp	.L27
.L26:
	cmp	DWORD PTR -244[rbp], 3
	jne	.L28
	mov	rax, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR 16[rax]
	jmp	.L27
.L28:
	mov	rax, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR 24[rax]
.L27:
	mov	rcx, QWORD PTR -192[rbp]
	mov	rdx, rax
	lea	rsi, .LC10[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	fprintf@PLT
.L25:
	call	randname
	mov	QWORD PTR -176[rbp], rax
	mov	rdx, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR -192[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	DWORD PTR -244[rbp], 5
	jne	.L30
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], 0
	jne	.L32
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rax, -144[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	unlink@PLT
	mov	eax, 17
	jmp	.L46
.L33:
	mov	rdx, QWORD PTR -192[rbp]
	mov	eax, DWORD PTR -224[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
.L32:
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -224[rbp], eax
	cmp	DWORD PTR -224[rbp], -1
	jne	.L33
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L34
.L30:
	mov	DWORD PTR -220[rbp], 0
	jmp	.L35
.L36:
	mov	eax, DWORD PTR -220[rbp]
	lea	rdx, thehead[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	mov	rdx, QWORD PTR -192[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	add	DWORD PTR -220[rbp], 1
.L35:
	cmp	DWORD PTR -220[rbp], 26
	jbe	.L36
.L34:
	mov	DWORD PTR -220[rbp], 0
	jmp	.L37
.L39:
	mov	rdx, QWORD PTR -192[rbp]
	mov	eax, DWORD PTR -224[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	add	DWORD PTR -220[rbp], 1
.L37:
	cmp	DWORD PTR -220[rbp], 19
	ja	.L38
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -224[rbp], eax
	cmp	DWORD PTR -224[rbp], -1
	jne	.L39
.L38:
	cmp	DWORD PTR -224[rbp], -1
	jne	.L40
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rax, -144[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	unlink@PLT
.L40:
	mov	rdx, QWORD PTR -200[rbp]
	lea	rax, -156[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 12
	mov	rdi, rax
	call	fread@PLT
	lea	rax, -156[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L41
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 44
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	mov	rdx, QWORD PTR -192[rbp]
	lea	rax, -156[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 12
	mov	rdi, rax
	call	fwrite@PLT
	jmp	.L42
.L41:
	mov	rdx, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR -176[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 8
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4
	lea	rdi, .LC16[rip]
	call	fwrite@PLT
.L42:
	mov	rdx, QWORD PTR -200[rbp]
	lea	rax, -226[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 2
	mov	rdi, rax
	call	fread@PLT
	movzx	eax, WORD PTR -226[rbp]
	cmp	ax, -1
	je	.L43
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	movzx	eax, WORD PTR -226[rbp]
	mov	WORD PTR -228[rbp], ax
.L43:
	mov	rdx, QWORD PTR -192[rbp]
	lea	rax, -228[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 2
	mov	rdi, rax
	call	fwrite@PLT
	jmp	.L44
.L45:
	mov	rdx, QWORD PTR -192[rbp]
	mov	eax, DWORD PTR -224[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
.L44:
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -224[rbp], eax
	cmp	DWORD PTR -224[rbp], -1
	jne	.L45
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L46:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.local	name.0
	.comm	name.0,9,8
	.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	"775937.c"
	.text
	.data
	.align	2
	.type	thehead, %object
	.size	thehead, 27
thehead:
	.ascii	"\032\377\003\001\006\361\016\371\011\231\011\031\010"
	.ascii	"\031\010\231\011\371\011\361\010\001\010\377\017\000"
	.ascii	"\000"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"rb\000"
	.text
	.align	2
	.global	getlength
	.syntax unified
	.arm
	.fpu softvfp
	.type	getlength, %function
getlength:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r1, .L4
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L2
	mov	r3, #0
	b	.L3
.L2:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	fseek
	ldr	r0, [fp, #-12]
	bl	ftell
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	fclose
	ldr	r3, [fp, #-8]
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	getlength, .-getlength
	.align	2
	.global	randname
	.syntax unified
	.arm
	.fpu softvfp
	.type	randname, %function
randname:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L12
	mov	r2, #66
	strb	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L7
.L10:
	bl	rand
	mov	r2, r0
	ldr	r3, .L12+4
	smull	r1, r3, r2, r3
	asr	r1, r3, #3
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #2
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	bgt	.L8
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	add	r3, r3, #48
	and	r1, r3, #255
	ldr	r2, .L12
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	b	.L9
.L8:
	ldr	r3, [fp, #-8]
	and	r3, r3, #255
	add	r3, r3, #55
	and	r1, r3, #255
	ldr	r2, .L12
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
.L9:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L7:
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	ble	.L10
	ldr	r3, .L12
	mov	r2, #0
	strb	r2, [r3, #8]
	ldr	r3, .L12
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	name.5466
	.word	954437177
	.size	randname, .-randname
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%hu\000"
	.align	2
.LC2:
	.ascii	"makewzd [-ownerid] filename [Title [(\"Description\""
	.ascii	" | @descfile) [iconfile]]]\012\012  Creates filenam"
	.ascii	"e.wzd from filename.bin, adding Title and\012  Desc"
	.ascii	"ription if specified, and loading in an iconfile if"
	.ascii	" provided.\012  The default title is the filename.\012"
	.ascii	"\000"
	.align	2
.LC3:
	.ascii	".bin\000"
	.align	2
.LC4:
	.ascii	"File `%s' is either unaccessible or zero length.\012"
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	".wzd\000"
	.align	2
.LC6:
	.ascii	"wb\000"
	.align	2
.LC7:
	.ascii	"Cannot open `%s' for writing.\012\000"
	.align	2
.LC8:
	.ascii	"<SHARP WZD DATA>\015\012<DATA TYPE>\015\012MY PROGR"
	.ascii	"AMS\015\012</DATA TYPE>\015\012<TITLE>\015\012%s\015"
	.ascii	"\012</TITLE>\015\012<CATEGORY>\015\012PROGRAM\015\012"
	.ascii	"</CATEGORY>\015\012<DESCRIPTION>\015\012\000"
	.align	2
.LC9:
	.ascii	"r\000"
	.align	2
.LC10:
	.ascii	"Cannot open %s.\012\000"
	.align	2
.LC11:
	.ascii	"\015\012\000"
	.align	2
.LC12:
	.ascii	"%s\015\012\000"
	.align	2
.LC13:
	.ascii	"</DESCRIPTION>\015\012<CONTENT>\015\012BIN_PROG_1\015"
	.ascii	"\012</CONTENT>\015\012<DATA>\015\012PFILE:%s.BAS\015"
	.ascii	"\012</DATA>\015\012<BIN>\015\012\000"
	.align	2
.LC14:
	.ascii	"Cannot open icon file.\012\000"
	.align	2
.LC15:
	.ascii	"Error reading!\012\000"
	.align	2
.LC16:
	.ascii	"BFILNAMEBAS\000"
	.align	2
.LC17:
	.ascii	"Warning: Old init code, no filename record.\012\000"
	.align	2
.LC18:
	.ascii	"BAS\000"
	.align	2
.LC19:
	.ascii	"Warning: No room for owner ID.\012\000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 192
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #192
	str	r0, [fp, #-192]
	str	r1, [fp, #-196]
	ldr	r3, .L52
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #184
	mov	r0, r3
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	ldr	r3, [fp, #-196]
	str	r3, [fp, #-176]
	ldr	r3, [fp, #-192]
	cmp	r3, #1
	ble	.L15
	ldr	r3, [fp, #-176]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L15
	ldr	r3, [fp, #-176]
	add	r3, r3, #4
	ldr	r3, [r3]
	add	r3, r3, #1
	sub	r2, fp, #188
	ldr	r1, .L52+4
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-176]
	add	r3, r3, #4
	str	r3, [fp, #-176]
	ldr	r3, [fp, #-192]
	sub	r3, r3, #1
	str	r3, [fp, #-192]
	b	.L16
.L15:
	mvn	r3, #0
	strh	r3, [fp, #-188]	@ movhi
.L16:
	ldr	r3, [fp, #-192]
	cmp	r3, #2
	beq	.L17
	ldr	r3, [fp, #-192]
	cmp	r3, #3
	beq	.L17
	ldr	r3, [fp, #-192]
	cmp	r3, #4
	beq	.L17
	ldr	r3, [fp, #-192]
	cmp	r3, #5
	beq	.L17
	ldr	r3, .L52+8
	ldr	r3, [r3]
	mov	r2, #242
	mov	r1, #1
	ldr	r0, .L52+12
	bl	fwrite
	mov	r3, #1
	b	.L50
.L17:
	ldr	r3, [fp, #-176]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #136
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #136
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #136
	add	r3, r3, r2
	ldr	r2, .L52+16
	mov	r0, r3
	mov	r1, r2
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #136
	mov	r0, r3
	bl	getlength
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	sub	r3, fp, #136
	ldr	r1, .L52+20
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-168]
	ldr	r3, [fp, #-168]
	cmp	r3, #0
	bne	.L20
.L19:
	ldr	r3, .L52+8
	ldr	r3, [r3]
	sub	r2, fp, #136
	ldr	r1, .L52+24
	mov	r0, r3
	bl	fprintf
	mov	r3, #4
	b	.L50
.L20:
	ldr	r3, [fp, #-176]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #136
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #136
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #136
	add	r3, r3, r2
	ldr	r2, .L52+28
	mov	r0, r3
	mov	r1, r2
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #136
	ldr	r1, .L52+32
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-164]
	ldr	r3, [fp, #-164]
	cmp	r3, #0
	bne	.L21
	ldr	r3, .L52+8
	ldr	r3, [r3]
	sub	r2, fp, #136
	ldr	r1, .L52+36
	mov	r0, r3
	bl	fprintf
	mov	r3, #5
	b	.L50
.L21:
	ldr	r3, [fp, #-192]
	cmp	r3, #2
	bne	.L22
	ldr	r3, [fp, #-176]
	ldr	r3, [r3, #4]
	b	.L23
.L22:
	ldr	r3, [fp, #-176]
	ldr	r3, [r3, #8]
.L23:
	mov	r2, r3
	ldr	r1, .L52+40
	ldr	r0, [fp, #-164]
	bl	fprintf
	ldr	r3, [fp, #-192]
	cmp	r3, #3
	ble	.L24
	ldr	r3, [fp, #-176]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #64
	bne	.L24
	ldr	r3, [fp, #-176]
	add	r3, r3, #12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r1, .L52+44
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-160]
	ldr	r3, [fp, #-160]
	cmp	r3, #0
	bne	.L26
	ldr	r3, .L52+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-176]
	add	r3, r3, #12
	ldr	r3, [r3]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, .L52+48
	bl	fprintf
	mov	r3, #6
	b	.L50
.L28:
	ldr	r3, [fp, #-180]
	cmp	r3, #10
	bne	.L27
	ldr	r3, [fp, #-164]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L52+52
	bl	fwrite
	b	.L26
.L27:
	ldr	r1, [fp, #-164]
	ldr	r0, [fp, #-180]
	bl	fputc
.L26:
	ldr	r0, [fp, #-160]
	bl	fgetc
	str	r0, [fp, #-180]
	ldr	r3, [fp, #-180]
	cmn	r3, #1
	bne	.L28
	ldr	r3, [fp, #-164]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L52+52
	bl	fwrite
	ldr	r0, [fp, #-160]
	bl	fclose
	b	.L29
.L24:
	ldr	r3, [fp, #-192]
	cmp	r3, #2
	bne	.L30
	ldr	r3, [fp, #-176]
	ldr	r3, [r3, #4]
	b	.L31
.L30:
	ldr	r3, [fp, #-192]
	cmp	r3, #3
	bne	.L32
	ldr	r3, [fp, #-176]
	ldr	r3, [r3, #8]
	b	.L31
.L32:
	ldr	r3, [fp, #-176]
	ldr	r3, [r3, #12]
.L31:
	mov	r2, r3
	ldr	r1, .L52+56
	ldr	r0, [fp, #-164]
	bl	fprintf
.L29:
	bl	randname
	str	r0, [fp, #-156]
	ldr	r2, [fp, #-156]
	ldr	r1, .L52+60
	ldr	r0, [fp, #-164]
	bl	fprintf
	ldr	r3, [fp, #-192]
	cmp	r3, #5
	bne	.L34
	ldr	r3, [fp, #-176]
	add	r3, r3, #16
	ldr	r3, [r3]
	ldr	r1, .L52+20
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-152]
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	bne	.L36
	ldr	r3, .L52+8
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L52+64
	bl	fwrite
	ldr	r0, [fp, #-164]
	bl	fclose
	sub	r3, fp, #136
	mov	r0, r3
	bl	unlink
	mov	r3, #17
	b	.L50
.L37:
	ldr	r1, [fp, #-164]
	ldr	r0, [fp, #-180]
	bl	fputc
.L36:
	ldr	r0, [fp, #-152]
	bl	getc
	str	r0, [fp, #-180]
	ldr	r3, [fp, #-180]
	cmn	r3, #1
	bne	.L37
	ldr	r0, [fp, #-152]
	bl	fclose
	b	.L38
.L34:
	mov	r3, #0
	str	r3, [fp, #-172]
	b	.L39
.L40:
	ldr	r2, .L52+68
	ldr	r3, [fp, #-172]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r1, [fp, #-164]
	mov	r0, r3
	bl	fputc
	ldr	r3, [fp, #-172]
	add	r3, r3, #1
	str	r3, [fp, #-172]
.L39:
	ldr	r3, [fp, #-172]
	cmp	r3, #26
	bls	.L40
.L38:
	mov	r3, #0
	str	r3, [fp, #-172]
	b	.L41
.L43:
	ldr	r1, [fp, #-164]
	ldr	r0, [fp, #-180]
	bl	fputc
	ldr	r3, [fp, #-172]
	add	r3, r3, #1
	str	r3, [fp, #-172]
.L41:
	ldr	r3, [fp, #-172]
	cmp	r3, #19
	bhi	.L42
	ldr	r0, [fp, #-168]
	bl	fgetc
	str	r0, [fp, #-180]
	ldr	r3, [fp, #-180]
	cmn	r3, #1
	bne	.L43
.L42:
	ldr	r3, [fp, #-180]
	cmn	r3, #1
	bne	.L44
	ldr	r3, .L52+8
	ldr	r3, [r3]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L52+72
	bl	fwrite
	ldr	r0, [fp, #-164]
	bl	fclose
	sub	r3, fp, #136
	mov	r0, r3
	bl	unlink
.L44:
	sub	r0, fp, #148
	ldr	r3, [fp, #-168]
	mov	r2, #1
	mov	r1, #12
	bl	fread
	sub	r3, fp, #148
	ldr	r1, .L52+76
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L45
	ldr	r3, .L52+8
	ldr	r3, [r3]
	mov	r2, #44
	mov	r1, #1
	ldr	r0, .L52+80
	bl	fwrite
	sub	r0, fp, #148
	ldr	r3, [fp, #-164]
	mov	r2, #1
	mov	r1, #12
	bl	fwrite
	b	.L46
.L45:
	ldr	r3, [fp, #-164]
	mov	r2, #1
	mov	r1, #8
	ldr	r0, [fp, #-156]
	bl	fwrite
	ldr	r3, [fp, #-164]
	mov	r2, #1
	mov	r1, #4
	ldr	r0, .L52+84
	bl	fwrite
.L46:
	sub	r0, fp, #186
	ldr	r3, [fp, #-168]
	mov	r2, #1
	mov	r1, #2
	bl	fread
	ldrh	r3, [fp, #-186]
	ldr	r2, .L52+88
	cmp	r3, r2
	beq	.L47
	ldr	r3, .L52+8
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L52+92
	bl	fwrite
	ldrh	r3, [fp, #-186]
	strh	r3, [fp, #-188]	@ movhi
.L47:
	sub	r0, fp, #188
	ldr	r3, [fp, #-164]
	mov	r2, #1
	mov	r1, #2
	bl	fwrite
	b	.L48
.L49:
	ldr	r1, [fp, #-164]
	ldr	r0, [fp, #-180]
	bl	fputc
.L48:
	ldr	r0, [fp, #-168]
	bl	fgetc
	str	r0, [fp, #-180]
	ldr	r3, [fp, #-180]
	cmn	r3, #1
	bne	.L49
	ldr	r0, [fp, #-168]
	bl	fclose
	ldr	r0, [fp, #-164]
	bl	fclose
	mov	r3, #0
.L50:
	ldr	r2, .L52
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L51
	bl	__stack_chk_fail
.L51:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	.LC20
	.word	.LC1
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	.LC0
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	thehead
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	65535
	.word	.LC19
	.size	main, .-main
	.local	name.5466
	.comm	name.5466,9,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
