// File: /workspace/github_cpp_makefile_star2_O3/tomsmeding[P]MarioLANG/mariolang.cpp
// Function: Level::drawTape(mario*)
void drawTape(mario *m){
		static int minidx=-1,maxidx=-1;
		static bool inited=false;
		int i,intwidth;
		char printf_format[20];
		if(!inited){
			inited=true;
			minidx=0;
			maxidx=0;
		}
		if(m->memp<minidx)minidx=m->memp;
		if(m->memp>maxidx)maxidx=m->memp;
		intwidth=max(1+log10(minidx==0?0.1:-minidx),log10(maxidx==0?1:maxidx))+1;
		printf("\x1B[34m"); fflush(stdout); //blue
		snprintf(printf_format,20,"%%%dd%%c %%d",intwidth);
		// fprintf(stderr,"%s",printf_format);
		// exit(0);
		for(i=minidx;i<=maxidx;i++){
			moveto(tapex,i-minidx);
			printf("\x1B[0K"); fflush(stdout);
			printf(printf_format,i,m->memp==i?'#':'.',memory[i]); fflush(stdout);
		}
		printf("\x1B[0m"); fflush(stdout);
		moveto(outputx,outputy);
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
cmpb $0x1, 0x3b28(%rip)      # 0x8179
jne 0x465b
movl 0x3aef(%rip), %eax      # 0x8148
jmp 0x4670
movb $0x1, 0x3b17(%rip)      # 0x8179
xorl %eax, %eax
movl %eax, 0x3ade(%rip)      # 0x8148
movl %eax, 0x3adc(%rip)      # 0x814c
movl 0x8(%r14), %ecx
cmpl %eax, %ecx
jge 0x4680
movl %ecx, 0x3aca(%rip)      # 0x8148
movl %ecx, %eax
cmpl 0x3ac6(%rip), %ecx      # 0x814c
jle 0x468e
movl %ecx, 0x3abe(%rip)      # 0x814c
testl %eax, %eax
je 0x469a
negl %eax
cvtsi2sd %eax, %xmm0
jmp 0x46a2
movsd 0xa1e(%rip), %xmm0      # 0x50c0
callq 0x2090
addsd 0xa19(%rip), %xmm0      # 0x50c8
movsd %xmm0, 0x8(%rsp)
movl 0x3a91(%rip), %eax      # 0x814c
cmpl $0x1, %eax
adcl $0x0, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
callq 0x2090
maxsd 0x8(%rsp), %xmm0
addsd 0x9ed(%rip), %xmm0      # 0x50c8
cvttsd2si %xmm0, %ebp
leaq 0xf6c(%rip), %rdi       # 0x5652
xorl %eax, %eax
callq 0x2030
movq 0x38c4(%rip), %r12      # 0x7fb8
movq (%r12), %rdi
callq 0x2160
leaq 0xf54(%rip), %rdx       # 0x5658
leaq 0x10(%rsp), %rdi
movl $0x14, %esi
movl %ebp, %ecx
xorl %eax, %eax
callq 0x2220
movl 0x3a2a(%rip), %r15d     # 0x8148
cmpl 0x3a27(%rip), %r15d     # 0x814c
jg 0x47ca
movl %r15d, %r13d
notl %r13d
movl 0x54(%rbx), %edx
leal 0x1(%r15), %ebp
movl %ebp, %esi
subl 0x3a08(%rip), %esi      # 0x8148
incl %edx
leaq 0x9bd(%rip), %rdi       # 0x5106
xorl %eax, %eax
callq 0x2030
movq (%r12), %rdi
callq 0x2160
leaq 0xf05(%rip), %rdi       # 0x5665
xorl %eax, %eax
callq 0x2030
movq (%r12), %rdi
callq 0x2160
cmpl 0x8(%r14), %r15d
movl $0x2e, %edx
movl $0x23, %eax
cmovel %eax, %edx
movl %r13d, %eax
shlq $0x2, %rax
addq 0x18(%rbx), %rax
movl %r15d, %ecx
shlq $0x2, %rcx
addq (%rbx), %rcx
testl %r15d, %r15d
cmovsq %rax, %rcx
movl (%rcx), %ecx
leaq 0x10(%rsp), %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0x2030
movq (%r12), %rdi
callq 0x2160
decl %r13d
cmpl 0x398b(%rip), %r15d     # 0x814c
movl %ebp, %r15d
jl 0x4731
leaq 0xc07(%rip), %rdi       # 0x53d8
xorl %eax, %eax
callq 0x2030
movq (%r12), %rdi
callq 0x2160
movl 0x48(%rbx), %edx
movl 0x4c(%rbx), %esi
incl %esi
incl %edx
leaq 0x914(%rip), %rdi       # 0x5106
xorl %eax, %eax
callq 0x2030
movq (%r12), %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2160