#include <ADT/Dictionary/AddressKey/IntValue.d>
#include <__oo2c.h>
#include <setjmp.h>

void ADT_Dictionary_AddressKey_IntValue__Init(ADT_Dictionary_AddressKey_IntValue__Dictionary dict) {
  register OOC_INT64 i0;

  i0 = (OOC_INT64)dict;
  *(OOC_INT32*)((_check_pointer(i0, 4080))+8) = 0;
  *(OOC_INT32*)((_check_pointer(i0, 4101))+12) = 0;
  *(OOC_INT64*)((_check_pointer(i0, 4122))+16) = (OOC_INT64)0;
  *(OOC_INT32*)(_check_pointer(i0, 4146)) = 0;
  *(OOC_INT32*)((_check_pointer(i0, 4167))+4) = 0;
  return;
  ;
}

ADT_Dictionary_AddressKey_IntValue__Dictionary ADT_Dictionary_AddressKey_IntValue__New(void) {
  register OOC_INT64 i0;

  i0 = (OOC_INT64)RT0__NewObject(_td_ADT_Dictionary_AddressKey_IntValue__Dictionary.baseTypes[0]);
  ADT_Dictionary_AddressKey_IntValue__Init((ADT_Dictionary_AddressKey_IntValue__Dictionary)i0);
  return (ADT_Dictionary_AddressKey_IntValue__Dictionary)i0;
  ;
}

void ADT_Dictionary_AddressKey_IntValue__DictionaryDesc_Destroy(ADT_Dictionary_AddressKey_IntValue__Dictionary dict) {
  register OOC_INT64 i0,i1,i2,i3,i4;
  OOC_INT32 i;

  i0 = (OOC_INT64)dict;
  i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 4442))+16);
  i1 = i1!=(OOC_INT64)0;
  if (!i1) goto l11;
  i = 0;
  i1 = *(OOC_INT32*)((_check_pointer(i0, 4486))+8);
  i2 = 0<i1;
  if (!i2) goto l10;
  i2=0;
l5_loop:
  i3 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 4549))+16);
  i3 = _check_pointer(i3, 4556);
  i4 = OOC_ARRAY_LENGTH(i3, 0);
  *(OOC_INT64*)((i3+((_check_index(i2, i4, OOC_UINT32, 4556))*24))+8) = (OOC_INT64)0;
  i3 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 4585))+16);
  i3 = _check_pointer(i3, 4592);
  i4 = OOC_ARRAY_LENGTH(i3, 0);
  *(OOC_INT32*)((i3+((_check_index(i2, i4, OOC_UINT32, 4592))*24))+16) = 0;
  i3 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 4621))+16);
  i3 = _check_pointer(i3, 4628);
  i4 = OOC_ARRAY_LENGTH(i3, 0);
  *(OOC_INT32*)(i3+((_check_index(i2, i4, OOC_UINT32, 4628))*24)) = 0;
  i2 = i2+1;
  i = i2;
  i3 = i2<i1;
  if (i3) goto l5_loop;
l10:
  *(OOC_INT64*)((_check_pointer(i0, 4664))+16) = (OOC_INT64)0;
l11:
  return;
  ;
}

static OOC_CHAR8 ADT_Dictionary_AddressKey_IntValue__IsSet(Object__Object key) {
  register OOC_INT64 i0,i1;

  i0 = (OOC_INT64)key;
  i1 = i0!=(OOC_INT64)0;
  if (i1) goto l3;
  i0=0u;
  goto l4;
l3:
  i1 = (OOC_INT64)ADT_Dictionary_AddressKey_IntValue__dummy;
  i0 = i0!=i1;
  
l4:
  return i0;
  ;
}

static OOC_INT32 ADT_Dictionary_AddressKey_IntValue__Lookup(ADT_Dictionary_AddressKey_IntValue__Dictionary dict, Object__Object key, OOC_INT32 hash) {
  register OOC_INT64 i0,i1,i2,i3,i4,i5,i6,i7,i8,i9;
  ADT_Dictionary_AddressKey_IntValue__Table t;
  OOC_UINT32 mask;
  OOC_INT32 i;
  OOC_INT32 freeslot;
  OOC_INT32 incr;

  i0 = (OOC_INT64)dict;
  i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 6100))+16);
  t = (ADT_Dictionary_AddressKey_IntValue__Table)i1;
  i2 = *(OOC_INT32*)((_check_pointer(i0, 6137))+8);
  i3 = hash;
  i4 = _type_cast_fast(OOC_UINT32, OOC_INT32, i3);
  i2 = _type_cast_fast(OOC_UINT32, OOC_INT32, (i2-1));
  mask = i2;
  i5 = _type_cast_fast(OOC_INT32, OOC_UINT32, ((~i4)&i2));
  i = i5;
  i6 = _check_pointer(i1, 6210);
  i7 = OOC_ARRAY_LENGTH(i6, 0);
  i6 = (OOC_INT64)*(OOC_INT64*)((i6+((_check_index(i5, i7, OOC_UINT32, 6210))*24))+8);
  i6 = i6==(OOC_INT64)0;
  if (i6) goto l3;
  i6 = _check_pointer(i1, 6231);
  i7 = OOC_ARRAY_LENGTH(i6, 0);
  i6 = (OOC_INT64)*(OOC_INT64*)((i6+((_check_index(i5, i7, OOC_UINT32, 6231))*24))+8);
  i7 = (OOC_INT64)key;
  i6 = i6==i7;
  
  goto l4;
l3:
  i6=1u;
l4:
  i7 = (OOC_INT64)key;
  i8 = (OOC_INT64)ADT_Dictionary_AddressKey_IntValue__dummy;
  if (i6) goto l19;
  i6 = _check_pointer(i1, 6279);
  i9 = OOC_ARRAY_LENGTH(i6, 0);
  i6 = (OOC_INT64)*(OOC_INT64*)((i6+((_check_index(i5, i9, OOC_UINT32, 6279))*24))+8);
  i6 = i6==i8;
  if (i6) goto l17;
  i6 = _check_pointer(i1, 6334);
  i9 = OOC_ARRAY_LENGTH(i6, 0);
  i6 = *(OOC_INT32*)(i6+((_check_index(i5, i9, OOC_UINT32, 6334))*24));
  i6 = i6==i3;
  if (i6) goto l11;
  i6=0u;
  goto l13;
l11:
  i6 = _check_pointer(i1, 6362);
  i9 = OOC_ARRAY_LENGTH(i6, 0);
  i6 = (OOC_INT64)*(OOC_INT64*)((i6+((_check_index(i5, i9, OOC_UINT32, 6362))*24))+8);
  i6 = i7==i6;
  
l13:
  if (i6) goto l15;
  freeslot = (-1);
  goto l20;
l15:
  return i5;
  goto l20;
l17:
  freeslot = i5;
  goto l20;
l19:
  return i5;
l20:
  i4 = _type_cast_fast(OOC_INT32, OOC_UINT32, ((i4^(_type_cast_fast(OOC_UINT32, OOC_INT32, (_lsh(OOC_INT32, i3, (-3))))))&i2));
  incr = i4;
  i6 = i4==0;
  if (!i6) goto l24;
  i4 = *(OOC_INT32*)((_check_pointer(i0, 6564))+8);
  i4 = i4-1;
  incr = i4;
  
l24:
  {register OOC_INT64 h0=i4;i4=i5;i5=h0;}
l25_loop:
  i4 = _type_cast_fast(OOC_INT32, OOC_UINT32, ((_type_cast_fast(OOC_UINT32, OOC_INT32, (i4+i5)))&i2));
  i = i4;
  i6 = _check_pointer(i1, 6657);
  i9 = OOC_ARRAY_LENGTH(i6, 0);
  i6 = (OOC_INT64)*(OOC_INT64*)((i6+((_check_index(i4, i9, OOC_UINT32, 6657))*24))+8);
  i6 = i6==(OOC_INT64)0;
  if (i6) goto l42;
  i6 = _check_pointer(i1, 6794);
  i9 = OOC_ARRAY_LENGTH(i6, 0);
  i6 = (OOC_INT64)*(OOC_INT64*)((i6+((_check_index(i4, i9, OOC_UINT32, 6794))*24))+8);
  i6 = i6==i8;
  if (i6) goto l37;
  i6 = _check_pointer(i1, 6898);
  i9 = OOC_ARRAY_LENGTH(i6, 0);
  i6 = *(OOC_INT32*)(i6+((_check_index(i4, i9, OOC_UINT32, 6898))*24));
  i6 = i6==i3;
  if (i6) goto l32;
  i6=0u;
  goto l34;
l32:
  i6 = _check_pointer(i1, 6926);
  i9 = OOC_ARRAY_LENGTH(i6, 0);
  i6 = (OOC_INT64)*(OOC_INT64*)((i6+((_check_index(i4, i9, OOC_UINT32, 6926))*24))+8);
  i6 = i7==i6;
  
l34:
  if (!i6) goto l47;
  return i4;
  goto l47;
l37:
  i6 = freeslot;
  i6 = i6<0;
  if (!i6) goto l47;
  freeslot = i4;
  goto l47;
l42:
  i6 = freeslot;
  i9 = i6>=0;
  if (i9) goto l45;
  return i4;
  goto l47;
l45:
  return i6;
l47:
  i5 = i5*2;
  incr = i5;
  i6 = *(OOC_INT32*)((_check_pointer(i0, 7013))+8);
  i6 = i5>=i6;
  if (!i6) goto l25_loop;
  i6 = *(OOC_INT32*)((_check_pointer(i0, 7094))+12);
  i5 = _type_cast_fast(OOC_INT32, OOC_UINT32, ((_type_cast_fast(OOC_UINT32, OOC_INT32, i5))^(_type_cast_fast(OOC_UINT32, OOC_INT32, i6))));
  incr = i5;
  
  goto l25_loop;
l53:
  ;
}

static void ADT_Dictionary_AddressKey_IntValue__Insert(ADT_Dictionary_AddressKey_IntValue__Dictionary dict, Object__Object key, OOC_INT32 hash, OOC_INT32 value) {
  register OOC_INT64 i0,i1,i2,i3,i4,i5;
  OOC_INT32 i;

  i0 = (OOC_INT64)dict;
  i1 = (OOC_INT64)key;
  i2 = hash;
  i3 = ADT_Dictionary_AddressKey_IntValue__Lookup((ADT_Dictionary_AddressKey_IntValue__Dictionary)i0, (Object__Object)i1, i2);
  i = i3;
  i4 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 7489))+16);
  i4 = _check_pointer(i4, 7496);
  i5 = OOC_ARRAY_LENGTH(i4, 0);
  i4 = (OOC_INT64)*(OOC_INT64*)((i4+((_check_index(i3, i5, OOC_UINT32, 7496))*24))+8);
  i4 = ADT_Dictionary_AddressKey_IntValue__IsSet((Object__Object)i4);
  if (i4) goto l6;
  i4 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 7656))+16);
  i4 = _check_pointer(i4, 7663);
  i5 = OOC_ARRAY_LENGTH(i4, 0);
  i4 = (OOC_INT64)*(OOC_INT64*)((i4+((_check_index(i3, i5, OOC_UINT32, 7663))*24))+8);
  i4 = i4==(OOC_INT64)0;
  if (!i4) goto l5;
  i4 = *(OOC_INT32*)(_check_pointer(i0, 7701));
  *(OOC_INT32*)(_check_pointer(i0, 7701)) = (i4+1);
l5:
  i4 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 7730))+16);
  i4 = _check_pointer(i4, 7737);
  i5 = OOC_ARRAY_LENGTH(i4, 0);
  *(OOC_INT64*)((i4+((_check_index(i3, i5, OOC_UINT32, 7737))*24))+8) = i1;
  i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 7764))+16);
  i1 = _check_pointer(i1, 7771);
  i4 = OOC_ARRAY_LENGTH(i1, 0);
  *(OOC_INT32*)(i1+((_check_index(i3, i4, OOC_UINT32, 7771))*24)) = i2;
  i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 7800))+16);
  i1 = _check_pointer(i1, 7807);
  i2 = OOC_ARRAY_LENGTH(i1, 0);
  i4 = value;
  *(OOC_INT32*)((i1+((_check_index(i3, i2, OOC_UINT32, 7807))*24))+16) = i4;
  i1 = *(OOC_INT32*)((_check_pointer(i0, 7843))+4);
  *(OOC_INT32*)((_check_pointer(i0, 7843))+4) = (i1+1);
  goto l7;
l6:
  i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 7548))+16);
  i0 = _check_pointer(i0, 7555);
  i1 = OOC_ARRAY_LENGTH(i0, 0);
  i2 = value;
  *(OOC_INT32*)((i0+((_check_index(i3, i1, OOC_UINT32, 7555))*24))+16) = i2;
l7:
  return;
  ;
}

static void ADT_Dictionary_AddressKey_IntValue__Resize(ADT_Dictionary_AddressKey_IntValue__Dictionary dict, OOC_INT32 minUsed) {
  register OOC_INT64 i0,i1,i2,i3,i4,i5,i6,i7,i8,i9;
  OOC_INT32 oldSize;
  ADT_Dictionary_AddressKey_IntValue__Table oldTable;
  OOC_INT32 i;
  OOC_INT32 newSize;
  OOC_INT32 newPoly;
  ADT_Dictionary_AddressKey_IntValue__Table newTable;

  i0 = (OOC_INT64)dict;
  i1 = *(OOC_INT32*)((_check_pointer(i0, 8247))+8);
  oldSize = i1;
  i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 8275))+16);
  oldTable = (ADT_Dictionary_AddressKey_IntValue__Table)i2;
  newSize = 4;
  i3 = minUsed;
  i4 = 4<=i3;
  if (i4) goto l3;
  i3=0;i4=4;
  goto l9;
l3:
  i4=0;i5=4;
l4_loop:
  i5 = _ash(i5,1);
  newSize = i5;
  i4 = i4+1;
  i6 = i5<=i3;
  if (i6) goto l4_loop;
l8:
  i3=i4;i4=i5;
l9:
  i3 = *(OOC_INT32*)((OOC_INT64)ADT_Dictionary_AddressKey_IntValue__polys+(_check_index(i3, 29, OOC_UINT32, 8428))*4);
  newPoly = i3;
  i5 = (OOC_INT64)RT0__NewObject(_td_ADT_Dictionary_AddressKey_IntValue__Table.baseTypes[0], i4);
  newTable = (ADT_Dictionary_AddressKey_IntValue__Table)i5;
  i = 0;
  i6 = 0<i4;
  if (!i6) goto l17;
  i6=0;
l12_loop:
  i7 = _check_pointer(i5, 8567);
  i8 = OOC_ARRAY_LENGTH(i7, 0);
  *(OOC_INT64*)((i7+((_check_index(i6, i8, OOC_UINT32, 8567))*24))+8) = (OOC_INT64)0;
  i7 = _check_pointer(i5, 8598);
  i8 = OOC_ARRAY_LENGTH(i7, 0);
  *(OOC_INT32*)((i7+((_check_index(i6, i8, OOC_UINT32, 8598))*24))+16) = 0;
  i7 = _check_pointer(i5, 8629);
  i8 = OOC_ARRAY_LENGTH(i7, 0);
  *(OOC_INT32*)(i7+((_check_index(i6, i8, OOC_UINT32, 8629))*24)) = 0;
  i6 = i6+1;
  i = i6;
  i7 = i6<i4;
  if (i7) goto l12_loop;
l17:
  *(OOC_INT32*)((_check_pointer(i0, 8661))+8) = i4;
  *(OOC_INT32*)((_check_pointer(i0, 8688))+12) = i3;
  *(OOC_INT64*)((_check_pointer(i0, 8715))+16) = i5;
  *(OOC_INT32*)(_check_pointer(i0, 8744)) = 0;
  *(OOC_INT32*)((_check_pointer(i0, 8765))+4) = 0;
  i = 0;
  i3 = 0<i1;
  if (!i3) goto l28;
  i3=0;
l20_loop:
  i4 = _check_pointer(i2, 8838);
  i5 = OOC_ARRAY_LENGTH(i4, 0);
  i4 = (OOC_INT64)*(OOC_INT64*)((i4+((_check_index(i3, i5, OOC_UINT32, 8838))*24))+8);
  i4 = ADT_Dictionary_AddressKey_IntValue__IsSet((Object__Object)i4);
  if (!i4) goto l23;
  i4 = _check_pointer(i2, 8883);
  i5 = OOC_ARRAY_LENGTH(i4, 0);
  i6 = _check_pointer(i2, 8901);
  i7 = OOC_ARRAY_LENGTH(i6, 0);
  i8 = _check_pointer(i2, 8920);
  i9 = OOC_ARRAY_LENGTH(i8, 0);
  i4 = (OOC_INT64)*(OOC_INT64*)((i4+((_check_index(i3, i5, OOC_UINT32, 8883))*24))+8);
  i5 = *(OOC_INT32*)((i8+((_check_index(i3, i9, OOC_UINT32, 8920))*24))+16);
  i6 = *(OOC_INT32*)(i6+((_check_index(i3, i7, OOC_UINT32, 8901))*24));
  ADT_Dictionary_AddressKey_IntValue__Insert((ADT_Dictionary_AddressKey_IntValue__Dictionary)i0, (Object__Object)i4, i6, i5);
  i4 = _check_pointer(i2, 8949);
  i5 = OOC_ARRAY_LENGTH(i4, 0);
  *(OOC_INT64*)((i4+((_check_index(i3, i5, OOC_UINT32, 8949))*24))+8) = (OOC_INT64)0;
  i4 = _check_pointer(i2, 9010);
  i5 = OOC_ARRAY_LENGTH(i4, 0);
  *(OOC_INT32*)((i4+((_check_index(i3, i5, OOC_UINT32, 9010))*24))+16) = 0;
l23:
  i3 = i3+1;
  i = i3;
  i4 = i3<i1;
  if (i4) goto l20_loop;
l28:
  return;
  ;
}

OOC_CHAR8 ADT_Dictionary_AddressKey_IntValue__DictionaryDesc_HasKey(ADT_Dictionary_AddressKey_IntValue__Dictionary dict, Object__Object key) {
  register OOC_INT64 i0,i1,i2;
  OOC_INT32 index;

  i0 = (OOC_INT64)dict;
  i1 = *(OOC_INT32*)((_check_pointer(i0, 9304))+4);
  i1 = i1==0;
  if (i1) goto l3;
  i1 = (OOC_INT64)key;
  i2 = HashCode__Ptr((void*)i1);
  i1 = ADT_Dictionary_AddressKey_IntValue__Lookup((ADT_Dictionary_AddressKey_IntValue__Dictionary)i0, (Object__Object)i1, i2);
  index = i1;
  i0 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 9427))+16);
  i0 = _check_pointer(i0, 9434);
  i2 = OOC_ARRAY_LENGTH(i0, 0);
  i0 = (OOC_INT64)*(OOC_INT64*)((i0+((_check_index(i1, i2, OOC_UINT32, 9434))*24))+8);
  i0 = ADT_Dictionary_AddressKey_IntValue__IsSet((Object__Object)i0);
  return i0;
  goto l4;
l3:
  return 0u;
l4:
  _failed_function(9090); return 0;
  ;
}

OOC_INT32 ADT_Dictionary_AddressKey_IntValue__DictionaryDesc_Size(ADT_Dictionary_AddressKey_IntValue__Dictionary dict) {
  register OOC_INT64 i0;

  i0 = (OOC_INT64)dict;
  i0 = *(OOC_INT32*)((_check_pointer(i0, 9596))+4);
  return i0;
  ;
}

OOC_INT32 ADT_Dictionary_AddressKey_IntValue__DictionaryDesc_Get(ADT_Dictionary_AddressKey_IntValue__Dictionary dict, Object__Object key) {
  register OOC_INT64 i0,i1,i2,i3;
  OOC_INT32 i;

  i0 = (OOC_INT64)key;
  _assert((i0!=(OOC_INT64)0), 127, 9954);
  i1 = (OOC_INT64)dict;
  i2 = *(OOC_INT32*)((_check_pointer(i1, 9990))+4);
  _assert((i2!=0), 127, 9978);
  i2 = HashCode__Ptr((void*)i0);
  i0 = ADT_Dictionary_AddressKey_IntValue__Lookup((ADT_Dictionary_AddressKey_IntValue__Dictionary)i1, (Object__Object)i0, i2);
  i = i0;
  i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 10074))+16);
  i2 = _check_pointer(i2, 10081);
  i3 = OOC_ARRAY_LENGTH(i2, 0);
  i2 = (OOC_INT64)*(OOC_INT64*)((i2+((_check_index(i0, i3, OOC_UINT32, 10081))*24))+8);
  i2 = ADT_Dictionary_AddressKey_IntValue__IsSet((Object__Object)i2);
  _assert(i2, 127, 10055);
  i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 10108))+16);
  i1 = _check_pointer(i1, 10115);
  i2 = OOC_ARRAY_LENGTH(i1, 0);
  i0 = *(OOC_INT32*)((i1+((_check_index(i0, i2, OOC_UINT32, 10115))*24))+16);
  return i0;
  ;
}

void ADT_Dictionary_AddressKey_IntValue__DictionaryDesc_Set(ADT_Dictionary_AddressKey_IntValue__Dictionary dict, Object__Object key, OOC_INT32 value) {
  register OOC_INT64 i0,i1,i2,i3;

  i0 = (OOC_INT64)key;
  _assert((i0!=(OOC_INT64)0), 127, 10528);
  i1 = (OOC_INT64)dict;
  i2 = *(OOC_INT32*)(_check_pointer(i1, 10560));
  i3 = *(OOC_INT32*)((_check_pointer(i1, 10576))+8);
  i2 = (i2*3)>=(i3*2);
  if (!i2) goto l4;
  i2 = *(OOC_INT32*)((_check_pointer(i1, 10615))+4);
  ADT_Dictionary_AddressKey_IntValue__Resize((ADT_Dictionary_AddressKey_IntValue__Dictionary)i1, (i2*2));
l4:
  i2 = HashCode__Ptr((void*)i0);
  i3 = value;
  ADT_Dictionary_AddressKey_IntValue__Insert((ADT_Dictionary_AddressKey_IntValue__Dictionary)i1, (Object__Object)i0, i2, i3);
  return;
  ;
}

ADT_Dictionary_AddressKey_IntValue__Dictionary ADT_Dictionary_AddressKey_IntValue__DictionaryDesc_Copy(ADT_Dictionary_AddressKey_IntValue__Dictionary dict) {
  register OOC_INT64 i0,i1,i2,i3,i4,i5,i6,i7,i8,i9;
  ADT_Dictionary_AddressKey_IntValue__Dictionary copy;
  OOC_INT32 i;

  i0 = (OOC_INT64)ADT_Dictionary_AddressKey_IntValue__New();
  copy = (ADT_Dictionary_AddressKey_IntValue__Dictionary)i0;
  i1 = (OOC_INT64)dict;
  i2 = *(OOC_INT32*)((_check_pointer(i1, 10884))+4);
  i2 = i2>0;
  if (!i2) goto l14;
  i2 = *(OOC_INT32*)((_check_pointer(i1, 10926))+4);
  ADT_Dictionary_AddressKey_IntValue__Resize((ADT_Dictionary_AddressKey_IntValue__Dictionary)i0, ((i2*3)>>1));
  i2 = *(OOC_INT32*)((_check_pointer(i1, 10968))+8);
  i = 0;
  i3 = 0<i2;
  if (!i3) goto l14;
  i3=0;
l5_loop:
  i4 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 11002))+16);
  i4 = _check_pointer(i4, 11009);
  i5 = OOC_ARRAY_LENGTH(i4, 0);
  i4 = (OOC_INT64)*(OOC_INT64*)((i4+((_check_index(i3, i5, OOC_UINT32, 11009))*24))+8);
  i4 = ADT_Dictionary_AddressKey_IntValue__IsSet((Object__Object)i4);
  if (!i4) goto l8;
  i4 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 11052))+16);
  i4 = _check_pointer(i4, 11059);
  i5 = OOC_ARRAY_LENGTH(i4, 0);
  i6 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 11073))+16);
  i6 = _check_pointer(i6, 11080);
  i7 = OOC_ARRAY_LENGTH(i6, 0);
  i8 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 11113))+16);
  i8 = _check_pointer(i8, 11120);
  i9 = OOC_ARRAY_LENGTH(i8, 0);
  i4 = (OOC_INT64)*(OOC_INT64*)((i4+((_check_index(i3, i5, OOC_UINT32, 11059))*24))+8);
  i5 = *(OOC_INT32*)((i8+((_check_index(i3, i9, OOC_UINT32, 11120))*24))+16);
  i6 = *(OOC_INT32*)(i6+((_check_index(i3, i7, OOC_UINT32, 11080))*24));
  ADT_Dictionary_AddressKey_IntValue__Insert((ADT_Dictionary_AddressKey_IntValue__Dictionary)i0, (Object__Object)i4, i6, i5);
l8:
  i3 = i3+1;
  i = i3;
  i4 = i3<i2;
  if (i4) goto l5_loop;
l14:
  return (ADT_Dictionary_AddressKey_IntValue__Dictionary)i0;
  ;
}

void ADT_Dictionary_AddressKey_IntValue__DictionaryDesc_Delete(ADT_Dictionary_AddressKey_IntValue__Dictionary dict, Object__Object key) {
  register OOC_INT64 i0,i1,i2,i3,i4;
  OOC_INT32 i;

  i0 = (OOC_INT64)key;
  _assert((i0!=(OOC_INT64)0), 127, 11523);
  i1 = (OOC_INT64)dict;
  i2 = *(OOC_INT32*)((_check_pointer(i1, 11559))+4);
  _assert((i2!=0), 127, 11547);
  i2 = HashCode__Ptr((void*)i0);
  i0 = ADT_Dictionary_AddressKey_IntValue__Lookup((ADT_Dictionary_AddressKey_IntValue__Dictionary)i1, (Object__Object)i0, i2);
  i = i0;
  i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 11643))+16);
  i2 = _check_pointer(i2, 11650);
  i3 = OOC_ARRAY_LENGTH(i2, 0);
  i2 = (OOC_INT64)*(OOC_INT64*)((i2+((_check_index(i0, i3, OOC_UINT32, 11650))*24))+8);
  i2 = ADT_Dictionary_AddressKey_IntValue__IsSet((Object__Object)i2);
  _assert(i2, 127, 11624);
  i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 11670))+16);
  i2 = _check_pointer(i2, 11677);
  i3 = OOC_ARRAY_LENGTH(i2, 0);
  i4 = (OOC_INT64)ADT_Dictionary_AddressKey_IntValue__dummy;
  *(OOC_INT64*)((i2+((_check_index(i0, i3, OOC_UINT32, 11677))*24))+8) = i4;
  i2 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 11750))+16);
  i2 = _check_pointer(i2, 11757);
  i3 = OOC_ARRAY_LENGTH(i2, 0);
  *(OOC_INT32*)((i2+((_check_index(i0, i3, OOC_UINT32, 11757))*24))+16) = 0;
  i0 = *(OOC_INT32*)((_check_pointer(i1, 11787))+4);
  *(OOC_INT32*)((_check_pointer(i1, 11787))+4) = (i0-1);
  return;
  ;
}

void ADT_Dictionary_AddressKey_IntValue__DictionaryDesc_Clear(ADT_Dictionary_AddressKey_IntValue__Dictionary dict) {
  register OOC_INT64 i0,i1,i2,i3,i4;
  OOC_INT32 i;

  i0 = (OOC_INT64)dict;
  i1 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 11949))+16);
  i1 = i1!=(OOC_INT64)0;
  if (!i1) goto l11;
  i = 0;
  i1 = *(OOC_INT32*)((_check_pointer(i0, 11993))+8);
  i2 = 0<i1;
  if (!i2) goto l10;
  i2=0;
l5_loop:
  i3 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 12056))+16);
  i3 = _check_pointer(i3, 12063);
  i4 = OOC_ARRAY_LENGTH(i3, 0);
  *(OOC_INT64*)((i3+((_check_index(i2, i4, OOC_UINT32, 12063))*24))+8) = (OOC_INT64)0;
  i3 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 12092))+16);
  i3 = _check_pointer(i3, 12099);
  i4 = OOC_ARRAY_LENGTH(i3, 0);
  *(OOC_INT32*)((i3+((_check_index(i2, i4, OOC_UINT32, 12099))*24))+16) = 0;
  i3 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 12128))+16);
  i3 = _check_pointer(i3, 12135);
  i4 = OOC_ARRAY_LENGTH(i3, 0);
  *(OOC_INT32*)(i3+((_check_index(i2, i4, OOC_UINT32, 12135))*24)) = 0;
  i2 = i2+1;
  i = i2;
  i3 = i2<i1;
  if (i3) goto l5_loop;
l10:
  ADT_Dictionary_AddressKey_IntValue__Init((ADT_Dictionary_AddressKey_IntValue__Dictionary)i0);
l11:
  return;
  ;
}

Object__ObjectArrayPtr ADT_Dictionary_AddressKey_IntValue__DictionaryDesc_Keys(ADT_Dictionary_AddressKey_IntValue__Dictionary dict) {
  register OOC_INT64 i0,i1,i2,i3,i4,i5,i6,i7,i8;
  Object__ObjectArrayPtr list;
  OOC_INT32 j;
  OOC_INT32 i;

  i0 = (OOC_INT64)dict;
  i1 = *(OOC_INT32*)((_check_pointer(i0, 12462))+4);
  i1 = (OOC_INT64)RT0__NewObject(_td_Object__ObjectArrayPtr.baseTypes[0], i1);
  list = (Object__ObjectArrayPtr)i1;
  j = 0;
  i2 = *(OOC_INT32*)((_check_pointer(i0, 12505))+8);
  i = 0;
  i3 = 0<i2;
  if (i3) goto l3;
  i2=0;
  goto l13;
l3:
  i3=0;i4=0;
l4_loop:
  i5 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 12537))+16);
  i5 = _check_pointer(i5, 12544);
  i6 = OOC_ARRAY_LENGTH(i5, 0);
  i5 = (OOC_INT64)*(OOC_INT64*)((i5+((_check_index(i3, i6, OOC_UINT32, 12544))*24))+8);
  i5 = ADT_Dictionary_AddressKey_IntValue__IsSet((Object__Object)i5);
  if (!i5) goto l8;
  i5 = _check_pointer(i1, 12571);
  i6 = OOC_ARRAY_LENGTH(i5, 0);
  i7 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 12582))+16);
  i7 = _check_pointer(i7, 12589);
  i8 = OOC_ARRAY_LENGTH(i7, 0);
  i7 = (OOC_INT64)*(OOC_INT64*)((i7+((_check_index(i3, i8, OOC_UINT32, 12589))*24))+8);
  *(OOC_INT64*)(i5+(_check_index(i4, i6, OOC_UINT32, 12571))*8) = i7;
  i4 = i4+1;
  j = i4;
  
l8:
  i3 = i3+1;
  i = i3;
  i5 = i3<i2;
  if (i5) goto l4_loop;
l12:
  i2=i4;
l13:
  i0 = *(OOC_INT32*)((_check_pointer(i0, 12654))+4);
  _assert((i2==i0), 127, 12638);
  return (Object__ObjectArrayPtr)i1;
  ;
}

void ADT_Dictionary_AddressKey_IntValue__DictionaryDesc_Store(ADT_Dictionary_AddressKey_IntValue__Dictionary dict, ADT_Storable__Writer w) {
  register OOC_INT64 i0,i1,i2,i3,i4,i5;
  OOC_INT32 i;

  i0 = (OOC_INT64)w;
  i1 = (OOC_INT64)dict;
  i2 = *(OOC_INT32*)((_check_pointer(i1, 13334))+4);
  OOC_TBCALL(((OOC_INT64)OOC_TBPROC_ADR(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 13318)))), IO_BinaryRider__WriterDesc_WriteNum)),IO_BinaryRider__WriterDesc_WriteNum)((IO_BinaryRider__Writer)i0, i2);
  i2 = *(OOC_INT32*)((_check_pointer(i1, 13355))+4);
  i2 = i2!=0;
  if (!i2) goto l14;
  i2 = *(OOC_INT32*)((_check_pointer(i1, 13396))+8);
  i = 0;
  i3 = 0<i2;
  if (!i3) goto l14;
  i3=0;
l5_loop:
  i4 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 13430))+16);
  i4 = _check_pointer(i4, 13437);
  i5 = OOC_ARRAY_LENGTH(i4, 0);
  i4 = (OOC_INT64)*(OOC_INT64*)((i4+((_check_index(i3, i5, OOC_UINT32, 13437))*24))+8);
  i4 = ADT_Dictionary_AddressKey_IntValue__IsSet((Object__Object)i4);
  if (!i4) goto l8;
  i4 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 13482))+16);
  i4 = _check_pointer(i4, 13489);
  i5 = OOC_ARRAY_LENGTH(i4, 0);
  i4 = (OOC_INT64)*(OOC_INT64*)((i4+((_check_index(i3, i5, OOC_UINT32, 13489))*24))+8);
  OOC_TBCALL(((OOC_INT64)OOC_TBPROC_ADR(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 13463)))), ADT_Storable__WriterDesc_WriteObject)),ADT_Storable__WriterDesc_WriteObject)((ADT_Storable__Writer)i0, (Object__Object)i4);
  i4 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i1, 13527))+16);
  i4 = _check_pointer(i4, 13534);
  i5 = OOC_ARRAY_LENGTH(i4, 0);
  i4 = *(OOC_INT32*)((i4+((_check_index(i3, i5, OOC_UINT32, 13534))*24))+16);
  OOC_TBCALL(((OOC_INT64)OOC_TBPROC_ADR(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i0, 13511)))), IO_BinaryRider__WriterDesc_WriteNum)),IO_BinaryRider__WriterDesc_WriteNum)((IO_BinaryRider__Writer)i0, i4);
l8:
  i3 = i3+1;
  i = i3;
  i4 = i3<i2;
  if (i4) goto l5_loop;
l14:
  return;
  ;
}

void ADT_Dictionary_AddressKey_IntValue__DictionaryDesc_Load(ADT_Dictionary_AddressKey_IntValue__Dictionary dict, ADT_Storable__Reader r) {
  register OOC_INT64 i0,i1,i2,i3,i4,i5,i6,i7;
  OOC_INT32 i;
  Object__Object obj;

  i0 = (OOC_INT64)dict;
  ADT_Dictionary_AddressKey_IntValue__Init((ADT_Dictionary_AddressKey_IntValue__Dictionary)i0);
  i1 = (OOC_INT64)r;
  OOC_TBCALL(((OOC_INT64)OOC_TBPROC_ADR(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i1, 13739)))), IO_BinaryRider__ReaderDesc_ReadNum)),IO_BinaryRider__ReaderDesc_ReadNum)((IO_BinaryRider__Reader)i1, (void*)((_check_pointer(i0, 13754))+8));
  i2 = *(OOC_INT32*)((_check_pointer(i0, 13775))+8);
  i2 = i2!=0;
  if (!i2) goto l11;
  i2 = *(OOC_INT32*)((_check_pointer(i0, 13953))+8);
  *(OOC_INT64*)((_check_pointer(i0, 13940))+16) = ((OOC_INT64)RT0__NewObject(_td_ADT_Dictionary_AddressKey_IntValue__Table.baseTypes[0], i2));
  i = 0;
  i2 = *(OOC_INT32*)((_check_pointer(i0, 13986))+8);
  i3 = 0<i2;
  if (!i3) goto l10;
  i3=0;
l5_loop:
  OOC_TBCALL(((OOC_INT64)OOC_TBPROC_ADR(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i1, 14007)))), ADT_Storable__ReaderDesc_ReadObject)),ADT_Storable__ReaderDesc_ReadObject)((ADT_Storable__Reader)i1, (void*)(OOC_INT64)&obj);
  i4 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 14039))+16);
  i4 = _check_pointer(i4, 14046);
  i5 = OOC_ARRAY_LENGTH(i4, 0);
  i6 = (OOC_INT64)obj;
  *(OOC_INT64*)((i4+((_check_index(i3, i5, OOC_UINT32, 14046))*24))+8) = i6;
  i4 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 14087))+16);
  i4 = _check_pointer(i4, 14094);
  i5 = OOC_ARRAY_LENGTH(i4, 0);
  OOC_TBCALL(((OOC_INT64)OOC_TBPROC_ADR(((OOC_INT64)OOC_TYPE_TAG((_check_pointer(i1, 14072)))), IO_BinaryRider__ReaderDesc_ReadNum)),IO_BinaryRider__ReaderDesc_ReadNum)((IO_BinaryRider__Reader)i1, (void*)((i4+((_check_index(i3, i5, OOC_UINT32, 14094))*24))+16));
  i4 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 14119))+16);
  i4 = _check_pointer(i4, 14126);
  i5 = OOC_ARRAY_LENGTH(i4, 0);
  i6 = (OOC_INT64)*(OOC_INT64*)((_check_pointer(i0, 14156))+16);
  i6 = _check_pointer(i6, 14163);
  i7 = OOC_ARRAY_LENGTH(i6, 0);
  i6 = (OOC_INT64)*(OOC_INT64*)((i6+((_check_index(i3, i7, OOC_UINT32, 14163))*24))+8);
  i6 = HashCode__Ptr((void*)i6);
  *(OOC_INT32*)(i4+((_check_index(i3, i5, OOC_UINT32, 14126))*24)) = i6;
  i3 = i3+1;
  i = i3;
  i4 = i3<i2;
  if (i4) goto l5_loop;
l10:
  i1 = *(OOC_INT32*)((_check_pointer(i0, 14209))+8);
  ADT_Dictionary_AddressKey_IntValue__Resize((ADT_Dictionary_AddressKey_IntValue__Dictionary)i0, ((i1*3)>>1));
l11:
  return;
  ;
}

void OOC_ADT_Dictionary_AddressKey_IntValue_init(void) {

  ADT_Dictionary_AddressKey_IntValue__dummy = (ADT_Dictionary_AddressKey_IntValue__Dummy)((OOC_INT64)RT0__NewObject(_td_ADT_Dictionary_AddressKey_IntValue__Dummy.baseTypes[0]));
  *(OOC_INT32*)((OOC_INT64)ADT_Dictionary_AddressKey_IntValue__polys+(_check_index(0, 29, OOC_UINT8, 14278))*4) = 7;
  *(OOC_INT32*)((OOC_INT64)ADT_Dictionary_AddressKey_IntValue__polys+(_check_index(1, 29, OOC_UINT8, 14299))*4) = 11;
  *(OOC_INT32*)((OOC_INT64)ADT_Dictionary_AddressKey_IntValue__polys+(_check_index(2, 29, OOC_UINT8, 14320))*4) = 19;
  *(OOC_INT32*)((OOC_INT64)ADT_Dictionary_AddressKey_IntValue__polys+(_check_index(3, 29, OOC_UINT8, 14342))*4) = 37;
  *(OOC_INT32*)((OOC_INT64)ADT_Dictionary_AddressKey_IntValue__polys+(_check_index(4, 29, OOC_UINT8, 14364))*4) = 67;
  *(OOC_INT32*)((OOC_INT64)ADT_Dictionary_AddressKey_IntValue__polys+(_check_index(5, 29, OOC_UINT8, 14386))*4) = 131;
  *(OOC_INT32*)((OOC_INT64)ADT_Dictionary_AddressKey_IntValue__polys+(_check_index(6, 29, OOC_UINT8, 14409))*4) = 285;
  *(OOC_INT32*)((OOC_INT64)ADT_Dictionary_AddressKey_IntValue__polys+(_check_index(7, 29, OOC_UINT8, 14433))*4) = 529;
  *(OOC_INT32*)((OOC_INT64)ADT_Dictionary_AddressKey_IntValue__polys+(_check_index(8, 29, OOC_UINT8, 14457))*4) = 1033;
  *(OOC_INT32*)((OOC_INT64)ADT_Dictionary_AddressKey_IntValue__polys+(_check_index(9, 29, OOC_UINT8, 14481))*4) = 2053;
  *(OOC_INT32*)((OOC_INT64)ADT_Dictionary_AddressKey_IntValue__polys+(_check_index(10, 29, OOC_UINT8, 14505))*4) = 4179;
  *(OOC_INT32*)((OOC_INT64)ADT_Dictionary_AddressKey_IntValue__polys+(_check_index(11, 29, OOC_UINT8, 14531))*4) = 8219;
  *(OOC_INT32*)((OOC_INT64)ADT_Dictionary_AddressKey_IntValue__polys+(_check_index(12, 29, OOC_UINT8, 14557))*4) = 16427;
  *(OOC_INT32*)((OOC_INT64)ADT_Dictionary_AddressKey_IntValue__polys+(_check_index(13, 29, OOC_UINT8, 14584))*4) = 32771;
  *(OOC_INT32*)((OOC_INT64)ADT_Dictionary_AddressKey_IntValue__polys+(_check_index(14, 29, OOC_UINT8, 14610))*4) = 65581;
  *(OOC_INT32*)((OOC_INT64)ADT_Dictionary_AddressKey_IntValue__polys+(_check_index(15, 29, OOC_UINT8, 14637))*4) = 131081;
  *(OOC_INT32*)((OOC_INT64)ADT_Dictionary_AddressKey_IntValue__polys+(_check_index(16, 29, OOC_UINT8, 14664))*4) = 262183;
  *(OOC_INT32*)((OOC_INT64)ADT_Dictionary_AddressKey_IntValue__polys+(_check_index(17, 29, OOC_UINT8, 14692))*4) = 524327;
  *(OOC_INT32*)((OOC_INT64)ADT_Dictionary_AddressKey_IntValue__polys+(_check_index(18, 29, OOC_UINT8, 14720))*4) = 1048585;
  *(OOC_INT32*)((OOC_INT64)ADT_Dictionary_AddressKey_IntValue__polys+(_check_index(19, 29, OOC_UINT8, 14748))*4) = 2097157;
  *(OOC_INT32*)((OOC_INT64)ADT_Dictionary_AddressKey_IntValue__polys+(_check_index(20, 29, OOC_UINT8, 14776))*4) = 4194307;
  *(OOC_INT32*)((OOC_INT64)ADT_Dictionary_AddressKey_IntValue__polys+(_check_index(21, 29, OOC_UINT8, 14804))*4) = 8388641;
  *(OOC_INT32*)((OOC_INT64)ADT_Dictionary_AddressKey_IntValue__polys+(_check_index(22, 29, OOC_UINT8, 14833))*4) = 16777243;
  *(OOC_INT32*)((OOC_INT64)ADT_Dictionary_AddressKey_IntValue__polys+(_check_index(23, 29, OOC_UINT8, 14863))*4) = 33554441;
  *(OOC_INT32*)((OOC_INT64)ADT_Dictionary_AddressKey_IntValue__polys+(_check_index(24, 29, OOC_UINT8, 14892))*4) = 67108935;
  *(OOC_INT32*)((OOC_INT64)ADT_Dictionary_AddressKey_IntValue__polys+(_check_index(25, 29, OOC_UINT8, 14922))*4) = 134217767;
  *(OOC_INT32*)((OOC_INT64)ADT_Dictionary_AddressKey_IntValue__polys+(_check_index(26, 29, OOC_UINT8, 14953))*4) = 268435465;
  *(OOC_INT32*)((OOC_INT64)ADT_Dictionary_AddressKey_IntValue__polys+(_check_index(27, 29, OOC_UINT8, 14983))*4) = 536870917;
  *(OOC_INT32*)((OOC_INT64)ADT_Dictionary_AddressKey_IntValue__polys+(_check_index(28, 29, OOC_UINT8, 15013))*4) = 1073741907;
  return;
  ;
}

/* --- */
