// File: ratulSharker[P]Havec/src/common.cpp
// Function: revhash[abi:cxx11](unsigned long long, unsigned short, unsigned int)
string _revhash(unsigned long long hashed,unsigned short hashFunc, unsigned int kSize){
	string ans="";
	for(int i=0;i< kSize ;i++){
		ans = rev_two_bit_repr((hashed) & 3,(hashFunc)) + ans;
		hashed = hashed >> 2;
	}
	return ans;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x60(%rbp)
movw %dx, %ax
movq %rdi, %rdx
movq %rdx, -0x68(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movw %ax, -0x12(%rbp)
movl %ecx, -0x18(%rbp)
movb $0x0, -0x19(%rbp)
leaq -0x1a(%rbp), %rdi
movq %rdi, -0x58(%rbp)
callq 0x3550
movq -0x60(%rbp), %rdi
movq -0x58(%rbp), %rdx
leaq 0x1316(%rip), %rsi      # 0x1172e
callq 0x7760
jmp 0x1041f
leaq -0x1a(%rbp), %rdi
callq 0x3380
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
cmpl -0x18(%rbp), %eax
jae 0x10729
movzwl -0x12(%rbp), %eax
cmpl $0x0, %eax
jne 0x1045c
movq -0x10(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1045c
movb $0x41, %al
movb %al, -0x69(%rbp)
jmp 0x106b6
movzwl -0x12(%rbp), %eax
cmpl $0x0, %eax
jne 0x1047d
movq -0x10(%rbp), %rax
andq $0x3, %rax
cmpq $0x1, %rax
jne 0x1047d
movb $0x54, %al
movb %al, -0x6a(%rbp)
jmp 0x106b0
movzwl -0x12(%rbp), %eax
cmpl $0x0, %eax
jne 0x1049e
movq -0x10(%rbp), %rax
andq $0x3, %rax
cmpq $0x2, %rax
jne 0x1049e
movb $0x47, %al
movb %al, -0x6b(%rbp)
jmp 0x106aa
movzwl -0x12(%rbp), %eax
cmpl $0x0, %eax
jne 0x104bf
movq -0x10(%rbp), %rax
andq $0x3, %rax
cmpq $0x3, %rax
jne 0x104bf
movb $0x43, %al
movb %al, -0x6c(%rbp)
jmp 0x106a4
movzwl -0x12(%rbp), %eax
cmpl $0x1, %eax
jne 0x104e0
movq -0x10(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x104e0
movb $0x43, %al
movb %al, -0x6d(%rbp)
jmp 0x1069e
movzwl -0x12(%rbp), %eax
cmpl $0x1, %eax
jne 0x10501
movq -0x10(%rbp), %rax
andq $0x3, %rax
cmpq $0x1, %rax
jne 0x10501
movb $0x41, %al
movb %al, -0x6e(%rbp)
jmp 0x10698
movzwl -0x12(%rbp), %eax
cmpl $0x1, %eax
jne 0x10522
movq -0x10(%rbp), %rax
andq $0x3, %rax
cmpq $0x2, %rax
jne 0x10522
movb $0x54, %al
movb %al, -0x6f(%rbp)
jmp 0x10692
movzwl -0x12(%rbp), %eax
cmpl $0x1, %eax
jne 0x10543
movq -0x10(%rbp), %rax
andq $0x3, %rax
cmpq $0x3, %rax
jne 0x10543
movb $0x47, %al
movb %al, -0x70(%rbp)
jmp 0x1068c
movzwl -0x12(%rbp), %eax
cmpl $0x2, %eax
jne 0x10564
movq -0x10(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x10564
movb $0x47, %al
movb %al, -0x71(%rbp)
jmp 0x10686
movzwl -0x12(%rbp), %eax
cmpl $0x2, %eax
jne 0x10585
movq -0x10(%rbp), %rax
andq $0x3, %rax
cmpq $0x1, %rax
jne 0x10585
movb $0x43, %al
movb %al, -0x72(%rbp)
jmp 0x10680
movzwl -0x12(%rbp), %eax
cmpl $0x2, %eax
jne 0x105a6
movq -0x10(%rbp), %rax
andq $0x3, %rax
cmpq $0x2, %rax
jne 0x105a6
movb $0x41, %al
movb %al, -0x73(%rbp)
jmp 0x1067a
movzwl -0x12(%rbp), %eax
cmpl $0x2, %eax
jne 0x105c7
movq -0x10(%rbp), %rax
andq $0x3, %rax
cmpq $0x3, %rax
jne 0x105c7
movb $0x54, %al
movb %al, -0x74(%rbp)
jmp 0x10674
movzwl -0x12(%rbp), %eax
cmpl $0x3, %eax
jne 0x105e8
movq -0x10(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x105e8
movb $0x54, %al
movb %al, -0x75(%rbp)
jmp 0x1066e
movzwl -0x12(%rbp), %eax
cmpl $0x3, %eax
jne 0x10606
movq -0x10(%rbp), %rax
andq $0x3, %rax
cmpq $0x1, %rax
jne 0x10606
movb $0x47, %al
movb %al, -0x76(%rbp)
jmp 0x10668
movzwl -0x12(%rbp), %eax
cmpl $0x3, %eax
jne 0x10624
movq -0x10(%rbp), %rax
andq $0x3, %rax
cmpq $0x2, %rax
jne 0x10624
movb $0x43, %al
movb %al, -0x77(%rbp)
jmp 0x10662
movzwl -0x12(%rbp), %ecx
xorl %eax, %eax
cmpl $0x3, %ecx
movb %al, -0x78(%rbp)
jne 0x10644
movq -0x10(%rbp), %rax
andq $0x3, %rax
cmpq $0x3, %rax
sete %al
movb %al, -0x78(%rbp)
movb -0x78(%rbp), %cl
movb $0x41, %al
movb $0x5a, %dl
movb %dl, -0x7a(%rbp)
testb $0x1, %cl
movb %al, -0x79(%rbp)
jne 0x1065c
movb -0x7a(%rbp), %al
movb %al, -0x79(%rbp)
movb -0x79(%rbp), %al
movb %al, -0x77(%rbp)
movb -0x77(%rbp), %al
movb %al, -0x76(%rbp)
movb -0x76(%rbp), %al
movb %al, -0x75(%rbp)
movb -0x75(%rbp), %al
movb %al, -0x74(%rbp)
movb -0x74(%rbp), %al
movb %al, -0x73(%rbp)
movb -0x73(%rbp), %al
movb %al, -0x72(%rbp)
movb -0x72(%rbp), %al
movb %al, -0x71(%rbp)
movb -0x71(%rbp), %al
movb %al, -0x70(%rbp)
movb -0x70(%rbp), %al
movb %al, -0x6f(%rbp)
movb -0x6f(%rbp), %al
movb %al, -0x6e(%rbp)
movb -0x6e(%rbp), %al
movb %al, -0x6d(%rbp)
movb -0x6d(%rbp), %al
movb %al, -0x6c(%rbp)
movb -0x6c(%rbp), %al
movb %al, -0x6b(%rbp)
movb -0x6b(%rbp), %al
movb %al, -0x6a(%rbp)
movb -0x6a(%rbp), %al
movb %al, -0x69(%rbp)
movq -0x60(%rbp), %rdx
movb -0x69(%rbp), %al
movsbl %al, %esi
leaq -0x50(%rbp), %rdi
callq 0x107d0
jmp 0x106cb
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x33e0
leaq -0x50(%rbp), %rdi
callq 0x31b0
movq -0x10(%rbp), %rax
shrq $0x2, %rax
movq %rax, -0x10(%rbp)
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x1042f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x1a(%rbp), %rdi
callq 0x3380
jmp 0x10749
movq -0x60(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x31b0
jmp 0x10749
movb $0x1, -0x19(%rbp)
testb $0x1, -0x19(%rbp)
jne 0x1073c
movq -0x60(%rbp), %rdi
callq 0x31b0
movq -0x68(%rbp), %rax
addq $0x80, %rsp
popq %rbp
retq
movq -0x28(%rbp), %rdi
callq 0x3540
nopw %cs:(%rax,%rax)