// File: /workspace/github_c_makefile_star2_O0/icebert[P]pblat/jkOwnLib/genoFind.c
// Function: gfDefaultRepMatch
int gfDefaultRepMatch(int tileSize, int stepSize, boolean protTiles)
/* Figure out appropriate step repMatch value. */
{
int repMatch = 1024;
if (protTiles)
    {
    if (tileSize == 3)
	repMatch = 600000;
    else if (tileSize == 4)
	repMatch = 30000;
    else if (tileSize == 5)
	repMatch = 1500;
    else if (tileSize == 6)
	repMatch = 75;
    else if (tileSize <= 7)
	repMatch = 10;
    else
        internalErr();
    }
else
    {
    if (tileSize == 18)
	repMatch = 2;
    else if (tileSize == 17)
	repMatch = 4;
    else if (tileSize == 16)
	repMatch = 8;
    else if (tileSize == 15)
	repMatch = 16;
    else if (tileSize == 14)
	repMatch = 32;
    else if (tileSize == 13)
	repMatch = 128;
    else if (tileSize == 12)
	repMatch = 256;
    else if (tileSize == 11)
	repMatch = 4*256;
    else if (tileSize == 10)
	repMatch = 16*256;
    else if (tileSize == 9)
	repMatch = 64*256;
    else if (tileSize == 8)
	repMatch = 256*256;
    else if (tileSize == 7)
	repMatch = 1024*256;
    else if (tileSize == 6)
	repMatch = 4*1024*256;
    else
        internalErr();
    }
repMatch *= tileSize;
repMatch /= stepSize;
return repMatch;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movl %edx, -0xc(%rbp)
movl $0x400, -0x10(%rbp)     # imm = 0x400
cmpl $0x0, -0xc(%rbp)
je 0xfcb0
cmpl $0x3, -0x4(%rbp)
jne 0xfc4d
movl $0x927c0, -0x10(%rbp)   # imm = 0x927C0
jmp 0xfcab
cmpl $0x4, -0x4(%rbp)
jne 0xfc5c
movl $0x7530, -0x10(%rbp)    # imm = 0x7530
jmp 0xfca9
cmpl $0x5, -0x4(%rbp)
jne 0xfc6b
movl $0x5dc, -0x10(%rbp)     # imm = 0x5DC
jmp 0xfca7
cmpl $0x6, -0x4(%rbp)
jne 0xfc7a
movl $0x4b, -0x10(%rbp)
jmp 0xfca5
cmpl $0x7, -0x4(%rbp)
jg 0xfc89
movl $0xa, -0x10(%rbp)
jmp 0xfca3
leaq 0xc7edd(%rip), %rdi     # 0xd7b6d
leaq 0xc7eeb(%rip), %rsi     # 0xd7b82
movl $0x8c7, %edx            # imm = 0x8C7
movb $0x0, %al
callq 0x35d40
jmp 0xfca5
jmp 0xfca7
jmp 0xfca9
jmp 0xfcab
jmp 0xfdbc
cmpl $0x12, -0x4(%rbp)
jne 0xfcc2
movl $0x2, -0x10(%rbp)
jmp 0xfdba
cmpl $0x11, -0x4(%rbp)
jne 0xfcd4
movl $0x4, -0x10(%rbp)
jmp 0xfdb8
cmpl $0x10, -0x4(%rbp)
jne 0xfce6
movl $0x8, -0x10(%rbp)
jmp 0xfdb6
cmpl $0xf, -0x4(%rbp)
jne 0xfcf8
movl $0x10, -0x10(%rbp)
jmp 0xfdb4
cmpl $0xe, -0x4(%rbp)
jne 0xfd0a
movl $0x20, -0x10(%rbp)
jmp 0xfdb2
cmpl $0xd, -0x4(%rbp)
jne 0xfd1c
movl $0x80, -0x10(%rbp)
jmp 0xfdb0
cmpl $0xc, -0x4(%rbp)
jne 0xfd2e
movl $0x100, -0x10(%rbp)     # imm = 0x100
jmp 0xfdae
cmpl $0xb, -0x4(%rbp)
jne 0xfd3d
movl $0x400, -0x10(%rbp)     # imm = 0x400
jmp 0xfdac
cmpl $0xa, -0x4(%rbp)
jne 0xfd4c
movl $0x1000, -0x10(%rbp)    # imm = 0x1000
jmp 0xfdaa
cmpl $0x9, -0x4(%rbp)
jne 0xfd5b
movl $0x4000, -0x10(%rbp)    # imm = 0x4000
jmp 0xfda8
cmpl $0x8, -0x4(%rbp)
jne 0xfd6a
movl $0x10000, -0x10(%rbp)   # imm = 0x10000
jmp 0xfda6
cmpl $0x7, -0x4(%rbp)
jne 0xfd79
movl $0x40000, -0x10(%rbp)   # imm = 0x40000
jmp 0xfda4
cmpl $0x6, -0x4(%rbp)
jne 0xfd88
movl $0x100000, -0x10(%rbp)  # imm = 0x100000
jmp 0xfda2
leaq 0xc7dde(%rip), %rdi     # 0xd7b6d
leaq 0xc7dec(%rip), %rsi     # 0xd7b82
movl $0x8e6, %edx            # imm = 0x8E6
movb $0x0, %al
callq 0x35d40
jmp 0xfda4
jmp 0xfda6
jmp 0xfda8
jmp 0xfdaa
jmp 0xfdac
jmp 0xfdae
jmp 0xfdb0
jmp 0xfdb2
jmp 0xfdb4
jmp 0xfdb6
jmp 0xfdb8
jmp 0xfdba
jmp 0xfdbc
movl -0x4(%rbp), %eax
imull -0x10(%rbp), %eax
movl %eax, -0x10(%rbp)
movl -0x8(%rbp), %ecx
movl -0x10(%rbp), %eax
cltd
idivl %ecx
movl %eax, -0x10(%rbp)
movl -0x10(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)