// File: gpertea[P]gclib/./GHash.hh
// Function: old::GHash<int>::Remove(char const*)
OBJ* GHash<OBJ>::Remove(const char* ky){
	int p,x,h,n;
	if(!ky){ GError("GHash::remove: NULL key argument.\n"); }
	OBJ* removed=NULL;
	if(0<fCount){
		h=GSTR_HASH(ky);
		GASSERT(0<=h);
		p=HASH1(h,fCapacity);
		GASSERT(0<=p && p<fCapacity);
		x=HASH2(h,fCapacity);
		GASSERT(1<=x && x<fCapacity);
		GASSERT(fCount<fCapacity);
		n=fCapacity;
		while(n && hash[p].hash!=-1){
			if(hash[p].hash==h && strcmp(hash[p].key,ky)==0){
				GTRACE(("GHash::remove: %08x removing: \"%s\"\n",this,ky));
				hash[p].hash=-2;
				if (hash[p].keyalloc) GFREE((hash[p].key));
				if (FREEDATA) (*fFreeProc)(hash[p].data);
				else removed=(OBJ*)hash[p].data;
				hash[p].key=NULL;
				hash[p].data=NULL;
				fCount--;
				if((100*fCount)<=(MIN_LOAD*fCapacity)) Resize(fCount);
				GASSERT(fCount<fCapacity);
				return removed;
			}
			p=(p+x)%fCapacity;
			n--;
		}
	}
	return removed;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x1067d
leaq 0x41a5(%rip), %rdi      # 0x1481b
movb $0x0, %al
callq 0x2640
movq -0x38(%rbp), %rcx
movq $0x0, -0x30(%rbp)
xorl %eax, %eax
cmpl 0x14(%rcx), %eax
jge 0x10920
movq -0x18(%rbp), %rdi
callq 0x4a80
movl %eax, -0x24(%rbp)
xorl %eax, %eax
cmpl -0x24(%rbp), %eax
jg 0x106a9
jmp 0x106c1
leaq 0x40c5(%rip), %rdi      # 0x14775
leaq 0x40b3(%rip), %rsi      # 0x1476a
movl $0x18c, %edx            # imm = 0x18C
callq 0x25e0
movq -0x38(%rbp), %rcx
imull $0xd, -0x24(%rbp), %eax
xorl %edx, %edx
divl 0x10(%rcx)
movl %edx, -0x1c(%rbp)
xorl %eax, %eax
cmpl -0x1c(%rbp), %eax
jg 0x106e6
movq -0x38(%rbp), %rcx
movl -0x1c(%rbp), %eax
cmpl 0x10(%rcx), %eax
jge 0x106e6
jmp 0x106fe
leaq 0x408d(%rip), %rdi      # 0x1477a
leaq 0x4076(%rip), %rsi      # 0x1476a
movl $0x18e, %edx            # imm = 0x18E
callq 0x25e0
movq -0x38(%rbp), %rcx
imull $0x11, -0x24(%rbp), %eax
movl 0x10(%rcx), %ecx
subl $0x1, %ecx
xorl %edx, %edx
divl %ecx
orl $0x1, %edx
movl %edx, -0x20(%rbp)
movl $0x1, %eax
cmpl -0x20(%rbp), %eax
jg 0x1072e
movq -0x38(%rbp), %rcx
movl -0x20(%rbp), %eax
cmpl 0x10(%rcx), %eax
jge 0x1072e
jmp 0x10746
leaq 0x4059(%rip), %rdi      # 0x1478e
leaq 0x402e(%rip), %rsi      # 0x1476a
movl $0x190, %edx            # imm = 0x190
callq 0x25e0
movq -0x38(%rbp), %rcx
movl 0x14(%rcx), %eax
cmpl 0x10(%rcx), %eax
jge 0x10754
jmp 0x1076c
leaq 0x3ffe(%rip), %rdi      # 0x14759
leaq 0x4008(%rip), %rsi      # 0x1476a
movl $0x191, %edx            # imm = 0x191
callq 0x25e0
movq -0x38(%rbp), %rax
movl 0x10(%rax), %eax
movl %eax, -0x28(%rbp)
xorl %eax, %eax
cmpl $0x0, -0x28(%rbp)
movb %al, -0x39(%rbp)
je 0x1079e
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
cmpl $-0x1, 0xc(%rax)
setne %al
movb %al, -0x39(%rbp)
movb -0x39(%rbp), %al
testb $0x1, %al
jne 0x107aa
jmp 0x1091e
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
cmpl -0x24(%rbp), %eax
jne 0x108ff
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rdi
movq -0x18(%rbp), %rsi
callq 0x2350
cmpl $0x0, %eax
jne 0x108ff
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rcx
movslq -0x1c(%rbp), %rdx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
movl $0xfffffffe, 0xc(%rcx)  # imm = 0xFFFFFFFE
movq 0x8(%rax), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
testb $0x1, 0x8(%rax)
je 0x10838
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rdi
movslq -0x1c(%rbp), %rax
imulq $0x18, %rax, %rax
addq %rax, %rdi
callq 0x5a90
movq -0x38(%rbp), %rax
cmpq $0x0, 0x28(%rax)
je 0x10862
movq -0x38(%rbp), %rcx
movq 0x28(%rcx), %rax
movq 0x8(%rcx), %rcx
movslq -0x1c(%rbp), %rdx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
movq 0x10(%rcx), %rdi
callq *%rax
jmp 0x1087d
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x38(%rbp), %rcx
movq 0x8(%rcx), %rax
movslq -0x1c(%rbp), %rdx
imulq $0x18, %rdx, %rdx
addq %rdx, %rax
movq $0x0, (%rax)
movq 0x8(%rcx), %rax
movslq -0x1c(%rbp), %rdx
imulq $0x18, %rdx, %rdx
addq %rdx, %rax
movq $0x0, 0x10(%rax)
movl 0x14(%rcx), %eax
addl $-0x1, %eax
movl %eax, 0x14(%rcx)
imull $0x64, 0x14(%rcx), %eax
imull $0xa, 0x10(%rcx), %ecx
cmpl %ecx, %eax
jg 0x108cf
movq -0x38(%rbp), %rdi
movl 0x14(%rdi), %esi
callq 0x116b0
movq -0x38(%rbp), %rcx
movl 0x14(%rcx), %eax
cmpl 0x10(%rcx), %eax
jge 0x108dd
jmp 0x108f5
leaq 0x3e75(%rip), %rdi      # 0x14759
leaq 0x3e7f(%rip), %rsi      # 0x1476a
movl $0x19e, %edx            # imm = 0x19E
callq 0x25e0
movq -0x30(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x10928
movq -0x38(%rbp), %rcx
movl -0x1c(%rbp), %eax
addl -0x20(%rbp), %eax
cltd
idivl 0x10(%rcx)
movl %edx, -0x1c(%rbp)
movl -0x28(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x10776
jmp 0x10920
movq -0x30(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)