	.file	"406750.c"
	.intel_syntax noprefix
	.text
	.globl	ROM
	.bss
	.align 32
	.type	ROM, @object
	.size	ROM, 131072
ROM:
	.zero	131072
	.globl	RAM
	.align 32
	.type	RAM, @object
	.size	RAM, 32768
RAM:
	.zero	32768
	.globl	IN
	.data
	.type	IN, @object
	.size	IN, 1
IN:
	.byte	-1
	.text
	.globl	cpuCycle
	.type	cpuCycle, @function
cpuCycle:
.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, 112
	mov	rdx, rdi
	mov	eax, esi
	mov	QWORD PTR -96[rbp], rdx
	mov	WORD PTR -88[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -28[rbp], rax
	movzx	eax, WORD PTR -88[rbp]
	mov	WORD PTR -20[rbp], ax
	movzx	eax, WORD PTR -96[rbp]
	movzx	eax, ax
	cdqe
	lea	rdx, [rax+rax]
	lea	rax, ROM[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	mov	BYTE PTR -26[rbp], al
	movzx	eax, WORD PTR -96[rbp]
	movzx	eax, ax
	cdqe
	lea	rdx, [rax+rax]
	lea	rax, ROM[rip+1]
	movzx	eax, BYTE PTR [rdx+rax]
	mov	BYTE PTR -25[rbp], al
	movzx	eax, BYTE PTR -94[rbp]
	shr	al, 5
	movzx	eax, al
	mov	DWORD PTR -64[rbp], eax
	movzx	eax, BYTE PTR -94[rbp]
	shr	al, 2
	movzx	eax, al
	and	eax, 7
	mov	DWORD PTR -60[rbp], eax
	movzx	eax, BYTE PTR -94[rbp]
	movzx	eax, al
	and	eax, 3
	mov	DWORD PTR -56[rbp], eax
	cmp	DWORD PTR -64[rbp], 6
	sete	al
	movzx	eax, al
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -64[rbp], 7
	sete	al
	movzx	eax, al
	mov	DWORD PTR -48[rbp], eax
	movzx	eax, BYTE PTR -93[rbp]
	mov	BYTE PTR -77[rbp], al
	mov	BYTE PTR -76[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	DWORD PTR -72[rbp], 0
	cmp	DWORD PTR -48[rbp], 0
	jne	.L49
	cmp	DWORD PTR -60[rbp], 7
	ja	.L2
	mov	eax, DWORD PTR -60[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L4[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L4[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L11-.L4
	.long	.L10-.L4
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
.L11:
	cmp	DWORD PTR -52[rbp], 0
	jne	.L12
	lea	rax, -28[rbp]
	add	rax, 4
	jmp	.L13
.L12:
	mov	eax, 0
.L13:
	mov	QWORD PTR -40[rbp], rax
	jmp	.L2
.L10:
	cmp	DWORD PTR -52[rbp], 0
	jne	.L14
	lea	rax, -28[rbp]
	add	rax, 4
	jmp	.L15
.L14:
	mov	eax, 0
.L15:
	mov	QWORD PTR -40[rbp], rax
	movzx	eax, BYTE PTR -91[rbp]
	mov	BYTE PTR -77[rbp], al
	jmp	.L2
.L9:
	cmp	DWORD PTR -52[rbp], 0
	jne	.L16
	lea	rax, -28[rbp]
	add	rax, 4
	jmp	.L17
.L16:
	mov	eax, 0
.L17:
	mov	QWORD PTR -40[rbp], rax
	movzx	eax, BYTE PTR -90[rbp]
	mov	BYTE PTR -76[rbp], al
	jmp	.L2
.L8:
	cmp	DWORD PTR -52[rbp], 0
	jne	.L18
	lea	rax, -28[rbp]
	add	rax, 4
	jmp	.L19
.L18:
	mov	eax, 0
.L19:
	mov	QWORD PTR -40[rbp], rax
	movzx	eax, BYTE PTR -91[rbp]
	mov	BYTE PTR -77[rbp], al
	movzx	eax, BYTE PTR -90[rbp]
	mov	BYTE PTR -76[rbp], al
	jmp	.L2
.L7:
	lea	rax, -28[rbp]
	add	rax, 5
	mov	QWORD PTR -40[rbp], rax
	jmp	.L2
.L6:
	lea	rax, -28[rbp]
	add	rax, 6
	mov	QWORD PTR -40[rbp], rax
	jmp	.L2
.L5:
	cmp	DWORD PTR -52[rbp], 0
	jne	.L20
	lea	rax, -28[rbp]
	add	rax, 7
	jmp	.L21
.L20:
	mov	eax, 0
.L21:
	mov	QWORD PTR -40[rbp], rax
	jmp	.L2
.L3:
	cmp	DWORD PTR -52[rbp], 0
	jne	.L22
	lea	rax, -28[rbp]
	add	rax, 7
	jmp	.L23
.L22:
	mov	eax, 0
.L23:
	mov	QWORD PTR -40[rbp], rax
	movzx	eax, BYTE PTR -91[rbp]
	mov	BYTE PTR -77[rbp], al
	movzx	eax, BYTE PTR -90[rbp]
	mov	BYTE PTR -76[rbp], al
	mov	DWORD PTR -72[rbp], 1
	jmp	.L2
.L49:
	nop
.L2:
	movzx	eax, BYTE PTR -76[rbp]
	sal	eax, 8
	mov	edx, eax
	movzx	eax, BYTE PTR -77[rbp]
	or	eax, edx
	mov	WORD PTR -74[rbp], ax
	movzx	eax, BYTE PTR -88[rbp]
	movzx	eax, al
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -56[rbp], 3
	je	.L24
	cmp	DWORD PTR -56[rbp], 3
	jg	.L25
	cmp	DWORD PTR -56[rbp], 2
	je	.L26
	cmp	DWORD PTR -56[rbp], 2
	jg	.L25
	cmp	DWORD PTR -56[rbp], 0
	je	.L27
	cmp	DWORD PTR -56[rbp], 1
	je	.L28
	jmp	.L25
.L27:
	movzx	eax, BYTE PTR -93[rbp]
	movzx	eax, al
	mov	DWORD PTR -68[rbp], eax
	jmp	.L25
.L28:
	cmp	DWORD PTR -52[rbp], 0
	jne	.L50
	movzx	eax, WORD PTR -74[rbp]
	and	eax, 32767
	cdqe
	lea	rdx, RAM[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	mov	DWORD PTR -68[rbp], eax
	jmp	.L50
.L26:
	movzx	eax, BYTE PTR -92[rbp]
	movzx	eax, al
	mov	DWORD PTR -68[rbp], eax
	jmp	.L25
.L24:
	movzx	eax, BYTE PTR IN[rip]
	movzx	eax, al
	mov	DWORD PTR -68[rbp], eax
	jmp	.L25
.L50:
	nop
.L25:
	cmp	DWORD PTR -52[rbp], 0
	je	.L30
	movzx	eax, WORD PTR -74[rbp]
	and	eax, 32767
	mov	edx, DWORD PTR -68[rbp]
	mov	ecx, edx
	cdqe
	lea	rdx, RAM[rip]
	mov	BYTE PTR [rax+rdx], cl
.L30:
	cmp	DWORD PTR -64[rbp], 7
	ja	.L31
	mov	eax, DWORD PTR -64[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L33[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L33[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L33:
	.long	.L40-.L33
	.long	.L39-.L33
	.long	.L38-.L33
	.long	.L37-.L33
	.long	.L36-.L33
	.long	.L35-.L33
	.long	.L34-.L33
	.long	.L32-.L33
	.text
.L40:
	mov	eax, DWORD PTR -68[rbp]
	mov	BYTE PTR -75[rbp], al
	jmp	.L31
.L39:
	movzx	eax, BYTE PTR -92[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	and	eax, edx
	mov	BYTE PTR -75[rbp], al
	jmp	.L31
.L38:
	movzx	eax, BYTE PTR -92[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	or	eax, edx
	mov	BYTE PTR -75[rbp], al
	jmp	.L31
.L37:
	movzx	eax, BYTE PTR -92[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	xor	eax, edx
	mov	BYTE PTR -75[rbp], al
	jmp	.L31
.L36:
	movzx	eax, BYTE PTR -92[rbp]
	mov	edx, DWORD PTR -68[rbp]
	add	eax, edx
	mov	BYTE PTR -75[rbp], al
	jmp	.L31
.L35:
	movzx	eax, BYTE PTR -92[rbp]
	mov	edx, DWORD PTR -68[rbp]
	sub	eax, edx
	mov	BYTE PTR -75[rbp], al
	jmp	.L31
.L34:
	movzx	eax, BYTE PTR -92[rbp]
	mov	BYTE PTR -75[rbp], al
	jmp	.L31
.L32:
	movzx	eax, BYTE PTR -92[rbp]
	neg	eax
	mov	BYTE PTR -75[rbp], al
	nop
.L31:
	cmp	QWORD PTR -40[rbp], 0
	je	.L41
	mov	rax, QWORD PTR -40[rbp]
	movzx	edx, BYTE PTR -75[rbp]
	mov	BYTE PTR [rax], dl
.L41:
	cmp	DWORD PTR -72[rbp], 0
	je	.L42
	movzx	eax, BYTE PTR -91[rbp]
	add	eax, 1
	mov	BYTE PTR -23[rbp], al
.L42:
	movzx	eax, WORD PTR -96[rbp]
	add	eax, 1
	mov	WORD PTR -28[rbp], ax
	cmp	DWORD PTR -48[rbp], 0
	je	.L43
	cmp	DWORD PTR -60[rbp], 0
	je	.L44
	movzx	eax, BYTE PTR -92[rbp]
	shr	al, 7
	movzx	edx, al
	movzx	eax, BYTE PTR -92[rbp]
	test	al, al
	jne	.L45
	mov	eax, 2
	jmp	.L46
.L45:
	mov	eax, 0
.L46:
	add	eax, edx
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, DWORD PTR -60[rbp]
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	and	eax, 1
	test	eax, eax
	je	.L43
	movzx	eax, WORD PTR -96[rbp]
	mov	al, 0
	mov	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	or	eax, edx
	mov	WORD PTR -28[rbp], ax
	jmp	.L43
.L44:
	movzx	eax, BYTE PTR -90[rbp]
	movzx	eax, al
	sal	eax, 8
	mov	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	or	eax, edx
	mov	WORD PTR -28[rbp], ax
.L43:
	mov	rax, QWORD PTR -28[rbp]
	mov	QWORD PTR -18[rbp], rax
	movzx	eax, WORD PTR -20[rbp]
	mov	WORD PTR -10[rbp], ax
	mov	rax, QWORD PTR -18[rbp]
	movzx	ecx, WORD PTR -10[rbp]
	mov	rdx, rcx
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L48
	call	__stack_chk_fail@PLT
.L48:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cpuCycle, .-cpuCycle
	.globl	garble
	.type	garble, @function
garble:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L52
.L53:
	call	rand@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -4[rbp], 1
.L52:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L53
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	garble, .-garble
	.section	.rodata
.LC0:
	.string	"rb"
.LC1:
	.string	"theloop.2.rom"
	.align 8
.LC2:
	.string	"Error: failed to open ROM file\n"
.LC4:
	.string	"~"
.LC5:
	.string	""
	.align 8
.LC6:
	.string	"%s line %-3d xout %02x t %0.3f\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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	esi, 131072
	lea	rdi, ROM[rip]
	call	garble
	mov	esi, 32768
	lea	rdi, RAM[rip]
	call	garble
	lea	rax, -28[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	garble
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L55
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L55:
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rax
	mov	edx, 131072
	mov	esi, 1
	lea	rdi, ROM[rip]
	call	fread@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	DWORD PTR -64[rbp], 0
	mov	DWORD PTR -60[rbp], 0
	mov	QWORD PTR -48[rbp], -2
.L65:
	cmp	QWORD PTR -48[rbp], 0
	jns	.L56
	mov	WORD PTR -28[rbp], 0
.L56:
	mov	rdx, QWORD PTR -28[rbp]
	movzx	eax, WORD PTR -20[rbp]
	mov	rdi, rdx
	mov	esi, eax
	call	cpuCycle
	mov	QWORD PTR -18[rbp], rax
	movzx	eax, WORD PTR -10[rbp]
	and	eax, 0
	or	eax, edx
	mov	WORD PTR -10[rbp], ax
	movzx	eax, BYTE PTR -11[rbp]
	movzx	eax, al
	and	eax, 64
	mov	edx, eax
	movzx	eax, BYTE PTR -21[rbp]
	movzx	eax, al
	and	eax, 64
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -56[rbp], eax
	movzx	eax, BYTE PTR -11[rbp]
	movzx	eax, al
	and	eax, 128
	mov	edx, eax
	movzx	eax, BYTE PTR -21[rbp]
	movzx	eax, al
	and	eax, 128
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jns	.L57
	mov	DWORD PTR -60[rbp], -36
.L57:
	mov	eax, DWORD PTR -64[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -64[rbp], edx
	cmp	eax, 199
	jg	.L58
	cmp	DWORD PTR -56[rbp], 0
	je	.L59
	mov	edi, 124
	call	putchar@PLT
	jmp	.L58
.L59:
	cmp	DWORD PTR -64[rbp], 200
	jne	.L60
	mov	edi, 62
	call	putchar@PLT
	jmp	.L58
.L60:
	movzx	eax, BYTE PTR -21[rbp]
	test	al, al
	js	.L61
	mov	edi, 94
	call	putchar@PLT
	jmp	.L58
.L61:
	movzx	eax, BYTE PTR -21[rbp]
	movzx	eax, al
	and	eax, 63
	add	eax, 32
	mov	edi, eax
	call	putchar@PLT
.L58:
	cmp	DWORD PTR -56[rbp], 0
	jle	.L62
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -48[rbp]
	movsd	xmm1, QWORD PTR .LC3[rip]
	divsd	xmm0, xmm1
	movq	rsi, xmm0
	movzx	eax, BYTE PTR -14[rbp]
	movzx	ecx, al
	cmp	DWORD PTR -64[rbp], 200
	je	.L63
	lea	rax, .LC4[rip]
	jmp	.L64
.L63:
	lea	rax, .LC5[rip]
.L64:
	mov	edx, DWORD PTR -60[rbp]
	movq	xmm0, rsi
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 1
	call	printf@PLT
	mov	DWORD PTR -64[rbp], 0
	add	DWORD PTR -60[rbp], 1
	call	rand@PLT
	mov	BYTE PTR -10[rbp], al
.L62:
	mov	rax, QWORD PTR -18[rbp]
	mov	QWORD PTR -28[rbp], rax
	movzx	eax, WORD PTR -10[rbp]
	mov	WORD PTR -20[rbp], ax
	add	QWORD PTR -48[rbp], 1
	jmp	.L65
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC3:
	.long	0
	.long	1096275844
	.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	"406750.c"
	.text
	.comm	ROM,131072,4
	.comm	RAM,32768,4
	.global	IN
	.data
	.type	IN, %object
	.size	IN, 1
IN:
	.byte	-1
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cpuCycle
	.syntax unified
	.arm
	.fpu softvfp
	.type	cpuCycle, %function
cpuCycle:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-72]
	sub	r0, fp, #84
	stm	r0, {r1, r2, r3}
	ldr	r3, .L52
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #20
	sub	r2, fp, #84
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	ldrh	r3, [fp, #-84]
	mov	r2, r3
	ldr	r3, .L52+4
	ldrb	r3, [r3, r2, lsl #1]	@ zero_extendqisi2
	strb	r3, [fp, #-18]
	ldrh	r3, [fp, #-84]
	ldr	r2, .L52+4
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	strb	r3, [fp, #-17]
	ldrb	r3, [fp, #-82]	@ zero_extendqisi2
	lsr	r3, r3, #5
	and	r3, r3, #255
	str	r3, [fp, #-44]
	ldrb	r3, [fp, #-82]	@ zero_extendqisi2
	lsr	r3, r3, #2
	and	r3, r3, #255
	and	r3, r3, #7
	str	r3, [fp, #-40]
	ldrb	r3, [fp, #-82]	@ zero_extendqisi2
	and	r3, r3, #3
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-44]
	cmp	r3, #6
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-44]
	cmp	r3, #7
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-28]
	ldrb	r3, [fp, #-81]
	strb	r3, [fp, #-61]
	mov	r3, #0
	strb	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L50
	ldr	r3, [fp, #-40]
	cmp	r3, #7
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L11:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L12
	sub	r3, fp, #20
	add	r3, r3, #4
	b	.L13
.L12:
	mov	r3, #0
.L13:
	str	r3, [fp, #-56]
	b	.L2
.L10:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L14
	sub	r3, fp, #20
	add	r3, r3, #4
	b	.L15
.L14:
	mov	r3, #0
.L15:
	str	r3, [fp, #-56]
	ldrb	r3, [fp, #-79]
	strb	r3, [fp, #-61]
	b	.L2
.L9:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L16
	sub	r3, fp, #20
	add	r3, r3, #4
	b	.L17
.L16:
	mov	r3, #0
.L17:
	str	r3, [fp, #-56]
	ldrb	r3, [fp, #-78]
	strb	r3, [fp, #-60]
	b	.L2
.L8:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L18
	sub	r3, fp, #20
	add	r3, r3, #4
	b	.L19
.L18:
	mov	r3, #0
.L19:
	str	r3, [fp, #-56]
	ldrb	r3, [fp, #-79]
	strb	r3, [fp, #-61]
	ldrb	r3, [fp, #-78]
	strb	r3, [fp, #-60]
	b	.L2
.L7:
	sub	r3, fp, #20
	add	r3, r3, #5
	str	r3, [fp, #-56]
	b	.L2
.L6:
	sub	r3, fp, #20
	add	r3, r3, #6
	str	r3, [fp, #-56]
	b	.L2
.L5:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L20
	sub	r3, fp, #20
	add	r3, r3, #7
	b	.L21
.L20:
	mov	r3, #0
.L21:
	str	r3, [fp, #-56]
	b	.L2
.L3:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L22
	sub	r3, fp, #20
	add	r3, r3, #7
	b	.L23
.L22:
	mov	r3, #0
.L23:
	str	r3, [fp, #-56]
	ldrb	r3, [fp, #-79]
	strb	r3, [fp, #-61]
	ldrb	r3, [fp, #-78]
	strb	r3, [fp, #-60]
	mov	r3, #1
	str	r3, [fp, #-52]
	b	.L2
.L50:
	nop
.L2:
	ldrb	r3, [fp, #-60]	@ zero_extendqisi2
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldrb	r3, [fp, #-61]	@ zero_extendqisi2
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	strh	r3, [fp, #-58]	@ movhi
	ldrb	r3, [fp, #-76]	@ zero_extendqisi2
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-36]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L24
.L26:
	.word	.L29
	.word	.L28
	.word	.L27
	.word	.L25
.L29:
	ldrb	r3, [fp, #-81]	@ zero_extendqisi2
	str	r3, [fp, #-48]
	b	.L24
.L28:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L51
	ldrh	r3, [fp, #-58]
	lsl	r3, r3, #17
	lsr	r3, r3, #17
	ldr	r2, .L52+8
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	str	r3, [fp, #-48]
	b	.L51
.L27:
	ldrb	r3, [fp, #-80]	@ zero_extendqisi2
	str	r3, [fp, #-48]
	b	.L24
.L25:
	ldr	r3, .L52+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-48]
	b	.L24
.L51:
	nop
.L24:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L31
	ldrh	r3, [fp, #-58]
	lsl	r3, r3, #17
	lsr	r3, r3, #17
	ldr	r2, [fp, #-48]
	and	r1, r2, #255
	ldr	r2, .L52+8
	strb	r1, [r2, r3]
.L31:
	ldr	r3, [fp, #-44]
	cmp	r3, #7
	ldrls	pc, [pc, r3, asl #2]
	b	.L32
.L34:
	.word	.L41
	.word	.L40
	.word	.L39
	.word	.L38
	.word	.L37
	.word	.L36
	.word	.L35
	.word	.L33
.L41:
	ldr	r3, [fp, #-48]
	strb	r3, [fp, #-59]
	b	.L32
.L40:
	ldrb	r3, [fp, #-80]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, r2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	strb	r3, [fp, #-59]
	b	.L32
.L39:
	ldrb	r3, [fp, #-80]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	strb	r3, [fp, #-59]
	b	.L32
.L38:
	ldrb	r3, [fp, #-80]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #24
	asr	r3, r3, #24
	eor	r3, r3, r2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	strb	r3, [fp, #-59]
	b	.L32
.L37:
	ldrb	r2, [fp, #-80]	@ zero_extendqisi2
	ldr	r3, [fp, #-48]
	and	r3, r3, #255
	add	r3, r2, r3
	strb	r3, [fp, #-59]
	b	.L32
.L36:
	ldrb	r2, [fp, #-80]	@ zero_extendqisi2
	ldr	r3, [fp, #-48]
	and	r3, r3, #255
	sub	r3, r2, r3
	strb	r3, [fp, #-59]
	b	.L32
.L35:
	ldrb	r3, [fp, #-80]
	strb	r3, [fp, #-59]
	b	.L32
.L33:
	ldrb	r3, [fp, #-80]	@ zero_extendqisi2
	rsb	r3, r3, #0
	strb	r3, [fp, #-59]
	nop
.L32:
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L42
	ldr	r3, [fp, #-56]
	ldrb	r2, [fp, #-59]
	strb	r2, [r3]
.L42:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L43
	ldrb	r3, [fp, #-79]	@ zero_extendqisi2
	add	r3, r3, #1
	and	r3, r3, #255
	strb	r3, [fp, #-15]
.L43:
	ldrh	r3, [fp, #-84]
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-20]	@ movhi
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L44
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L45
	ldrb	r3, [fp, #-80]	@ zero_extendqisi2
	lsr	r3, r3, #7
	and	r3, r3, #255
	mov	r2, r3
	ldrb	r3, [fp, #-80]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L46
	mov	r3, #2
	b	.L47
.L46:
	mov	r3, #0
.L47:
	add	r3, r3, r2
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-24]
	asr	r3, r2, r3
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L44
	ldrh	r3, [fp, #-84]
	lsl	r3, r3, #16
	asr	r3, r3, #16
	bic	r3, r3, #255
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-20]	@ movhi
	b	.L44
.L45:
	ldrb	r3, [fp, #-78]	@ zero_extendqisi2
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-20]	@ movhi
.L44:
	ldr	r3, [fp, #-72]
	mov	r0, r3
	sub	r3, fp, #20
	mov	r2, #10
	mov	r1, r3
	bl	memcpy
	ldr	r3, .L52
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L49
	bl	__stack_chk_fail
.L49:
	ldr	r0, [fp, #-72]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	.LC0
	.word	ROM
	.word	RAM
	.word	IN
	.size	cpuCycle, .-cpuCycle
	.align	2
	.global	garble
	.syntax unified
	.arm
	.fpu softvfp
	.type	garble, %function
garble:
	@ 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]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L55
.L56:
	bl	rand
	mov	r1, r0
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	and	r2, r1, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L55:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L56
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	garble, .-garble
	.section	.rodata
	.align	2
.LC1:
	.ascii	"rb\000"
	.align	2
.LC2:
	.ascii	"theloop.2.rom\000"
	.align	2
.LC3:
	.ascii	"Error: failed to open ROM file\012\000"
	.align	2
.LC4:
	.ascii	"~\000"
	.align	2
.LC5:
	.ascii	"\000"
	.global	__aeabi_l2d
	.global	__aeabi_ddiv
	.align	2
.LC6:
	.ascii	"%s line %-3d xout %02x t %0.3f\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #72
	ldr	r3, .L70
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r1, #131072
	ldr	r0, .L70+4
	bl	garble
	mov	r1, #32768
	ldr	r0, .L70+8
	bl	garble
	sub	r3, fp, #48
	mov	r1, #10
	mov	r0, r3
	bl	garble
	ldr	r1, .L70+12
	ldr	r0, .L70+16
	bl	fopen
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	bne	.L58
	ldr	r3, .L70+20
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L70+24
	bl	fwrite
	mov	r0, #1
	bl	exit
.L58:
	ldr	r3, [fp, #-72]
	mov	r2, #131072
	mov	r1, #1
	ldr	r0, .L70+4
	bl	fread
	ldr	r0, [fp, #-72]
	bl	fclose
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-76]
	mvn	r2, #1
	mvn	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
.L68:
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	cmp	r2, #0
	sbcs	r3, r3, #0
	bge	.L59
	mov	r3, #0
	strh	r3, [fp, #-48]	@ movhi
.L59:
	sub	r0, fp, #36
	sub	r3, fp, #48
	ldm	r3, {r1, r2, r3}
	bl	cpuCycle
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	and	r2, r3, #64
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	and	r3, r3, #64
	sub	r3, r2, r3
	str	r3, [fp, #-68]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	and	r2, r3, #128
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	and	r3, r3, #128
	sub	r3, r2, r3
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bge	.L60
	mvn	r3, #35
	str	r3, [fp, #-76]
.L60:
	ldr	r3, [fp, #-80]
	add	r2, r3, #1
	str	r2, [fp, #-80]
	cmp	r3, #199
	bgt	.L61
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	beq	.L62
	mov	r0, #124
	bl	putchar
	b	.L61
.L62:
	ldr	r3, [fp, #-80]
	cmp	r3, #200
	bne	.L63
	mov	r0, #62
	bl	putchar
	b	.L61
.L63:
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	cmp	r3, #0
	blt	.L64
	mov	r0, #94
	bl	putchar
	b	.L61
.L64:
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	and	r3, r3, #63
	add	r3, r3, #32
	mov	r0, r3
	bl	putchar
.L61:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	ble	.L65
	ldr	r3, [fp, #-80]
	cmp	r3, #200
	beq	.L66
	ldr	r6, .L70+28
	b	.L67
.L66:
	ldr	r6, .L70+32
.L67:
	ldrb	r3, [fp, #-32]	@ zero_extendqisi2
	mov	r7, r3
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_l2d
	mov	r2, #0
	ldr	r3, .L70+36
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r3, r7
	ldr	r2, [fp, #-76]
	mov	r1, r6
	ldr	r0, .L70+40
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
	bl	rand
	mov	r3, r0
	and	r3, r3, #255
	strb	r3, [fp, #-28]
.L65:
	sub	r3, fp, #48
	sub	r2, fp, #36
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	str	r4, [fp, #-60]
	str	r5, [fp, #-56]
	b	.L68
.L71:
	.align	2
.L70:
	.word	.LC7
	.word	ROM
	.word	RAM
	.word	.LC1
	.word	.LC2
	.word	stderr
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	1096275844
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
