// File: /workspace/github_c_makefile_star2_O0/Matthias-Wandel[P]imgcomp/src/compare_util.c
// Function: ShowImgMap
void ShowImgMap(ImgMap_t * map, int divisor)
{
	int w = map->w;
    fprintf(Log," ");
	for (int c=0;c<map->w;c++) fprintf(Log,"%2d",c%10);
	fprintf(Log,"\n");
	for (int r=0;r<map->h;r++){
		fprintf(Log,"%c",r%10 == 0 ? '=' : '|');
		for (int c=0;c<map->w;c++){
			const char LowDigits[20] = "   - = 3 4~5~6~7=8=9";
			int v = map->values[r*w+c]/divisor;
            if (v < 10){
                fprintf(Log,"%c%c",LowDigits[v*2],LowDigits[v*2+1]);
            }else{
                fprintf(Log,"%2d",v <= 99 ? v : 99);
            }
		}
		fprintf(Log,"%c\n",r%10 == 0 ? '=' : '|');
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x10(%rbp)
leaq 0xcf99(%rip), %rax      # 0x15018
movq (%rax), %rdi
leaq 0x79b0(%rip), %rsi      # 0xfa39
movb $0x0, %al
callq 0x3290
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x80d0
leaq 0xcf6f(%rip), %rax      # 0x15018
movq (%rax), %rdi
movl -0x14(%rbp), %eax
movl $0xa, %ecx
cltd
idivl %ecx
leaq 0x791b(%rip), %rsi      # 0xf9d9
movb $0x0, %al
callq 0x3290
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x8097
leaq 0xcf41(%rip), %rax      # 0x15018
movq (%rax), %rdi
leaq 0x60da(%rip), %rsi      # 0xe1bb
movb $0x0, %al
callq 0x3290
movl $0x0, -0x18(%rbp)
movl -0x18(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jge 0x824e
leaq 0xcf12(%rip), %rax      # 0x15018
movq (%rax), %rdi
movl -0x18(%rbp), %eax
movl $0xa, %ecx
cltd
idivl %ecx
movl %edx, %ecx
movl $0x7c, %edx
movl $0x3d, %eax
cmpl $0x0, %ecx
cmovel %eax, %edx
leaq 0x78b2(%rip), %rsi      # 0xf9df
movb $0x0, %al
callq 0x3290
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x820b
movq 0x78ef(%rip), %rax      # 0xfa40
movq %rax, -0x30(%rbp)
movq 0x78ec(%rip), %rax      # 0xfa48
movq %rax, -0x28(%rbp)
movl 0x78ea(%rip), %eax      # 0xfa50
movl %eax, -0x20(%rbp)
movq -0x8(%rbp), %rax
movl -0x18(%rbp), %ecx
imull -0x10(%rbp), %ecx
addl -0x1c(%rbp), %ecx
movslq %ecx, %rcx
movl 0x8(%rax,%rcx,4), %eax
cltd
idivl -0xc(%rbp)
movl %eax, -0x34(%rbp)
cmpl $0xa, -0x34(%rbp)
jge 0x81c0
leaq 0xce86(%rip), %rax      # 0x15018
movq (%rax), %rdi
movl -0x34(%rbp), %eax
shll %eax
cltq
movsbl -0x30(%rbp,%rax), %edx
movl -0x34(%rbp), %eax
shll %eax
addl $0x1, %eax
cltq
movsbl -0x30(%rbp,%rax), %ecx
leaq 0x7826(%rip), %rsi      # 0xf9dd
movb $0x0, %al
callq 0x3290
jmp 0x81fb
leaq 0xce51(%rip), %rax      # 0x15018
movq (%rax), %rax
movq %rax, -0x40(%rbp)
cmpl $0x63, -0x34(%rbp)
jg 0x81dc
movl -0x34(%rbp), %eax
movl %eax, -0x44(%rbp)
jmp 0x81e6
movl $0x63, %eax
movl %eax, -0x44(%rbp)
jmp 0x81e6
movq -0x40(%rbp), %rdi
movl -0x44(%rbp), %edx
leaq 0x77e5(%rip), %rsi      # 0xf9d9
movb $0x0, %al
callq 0x3290
jmp 0x81fd
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x813b
leaq 0xce06(%rip), %rax      # 0x15018
movq (%rax), %rdi
movl -0x18(%rbp), %eax
movl $0xa, %ecx
cltd
idivl %ecx
movl %edx, %ecx
movl $0x7c, %edx
movl $0x3d, %eax
cmpl $0x0, %ecx
cmovel %eax, %edx
leaq 0x77a9(%rip), %rsi      # 0xf9e2
movb $0x0, %al
callq 0x3290
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x80ef
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)