// File: /workspace/github_cpp_makefile_star2_O1/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 $0x0, 0x3f4c(%rip)      # 0x8181
jne 0x424c
movb $0x1, 0x3f43(%rip)      # 0x8181
xorl %eax, %eax
movl %eax, 0x3f0a(%rip)      # 0x8150
movl %eax, 0x3f08(%rip)      # 0x8154
movl 0x8(%r14), %eax
cmpl 0x3efa(%rip), %eax      # 0x8150
jge 0x425e
movl %eax, 0x3ef2(%rip)      # 0x8150
cmpl 0x3ef0(%rip), %eax      # 0x8154
jle 0x426c
movl %eax, 0x3ee8(%rip)      # 0x8154
movl 0x3ede(%rip), %eax      # 0x8150
testl %eax, %eax
je 0x427e
negl %eax
cvtsi2sd %eax, %xmm0
jmp 0x4286
movsd 0xe02(%rip), %xmm0      # 0x5088
callq 0x2090
addsd 0xdfd(%rip), %xmm0      # 0x5090
movsd %xmm0, 0x8(%rsp)
movl 0x3eb5(%rip), %eax      # 0x8154
cmpl $0x1, %eax
adcl $0x0, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
callq 0x2090
maxsd 0x8(%rsp), %xmm0
addsd 0xdd1(%rip), %xmm0      # 0x5090
cvttsd2si %xmm0, %ebp
leaq 0x1352(%rip), %rdi      # 0x561c
xorl %eax, %eax
callq 0x2030
movq 0x3ce0(%rip), %r12      # 0x7fb8
movq (%r12), %rdi
callq 0x2160
leaq 0x133a(%rip), %rdx      # 0x5622
leaq 0x10(%rsp), %rdi
movl $0x14, %esi
movl %ebp, %ecx
xorl %eax, %eax
callq 0x2230
movl 0x3e4e(%rip), %r15d     # 0x8150
cmpl 0x3e4b(%rip), %r15d     # 0x8154
jg 0x43ae
movl %r15d, %r13d
notl %r13d
movl 0x54(%rbx), %edx
leal 0x1(%r15), %ebp
movl %ebp, %esi
subl 0x3e2c(%rip), %esi      # 0x8150
incl %edx
leaq 0xda1(%rip), %rdi       # 0x50ce
xorl %eax, %eax
callq 0x2030
movq (%r12), %rdi
callq 0x2160
leaq 0x12eb(%rip), %rdi      # 0x562f
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 0x3daf(%rip), %r15d     # 0x8154
movl %ebp, %r15d
jl 0x4315
leaq 0xfed(%rip), %rdi       # 0x53a2
xorl %eax, %eax
callq 0x2030
movq (%r12), %rdi
callq 0x2160
movl 0x48(%rbx), %edx
movl 0x4c(%rbx), %esi
incl %esi
incl %edx
leaq 0xcf8(%rip), %rdi       # 0x50ce
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