mono_property_hash_new ()
{
  struct GHashTable * D.4988;
  struct MonoPropertyHash * D.4989;
  struct MonoPropertyHash * hash;

  hash = monoeg_malloc0 (8);
  D.4988 = monoeg_g_hash_table_new (0B, 0B);
  hash->hashes = D.4988;
  D.4989 = hash;
  return D.4989;
}


mono_property_hash_destroy (struct MonoPropertyHash * hash)
{
  struct GHashTable * D.4991;

  D.4991 = hash->hashes;
  monoeg_g_hash_table_foreach (D.4991, free_hash, 0B);
  D.4991 = hash->hashes;
  monoeg_g_hash_table_destroy (D.4991);
  monoeg_g_free (hash);
}


free_hash (void * key, void * value, void * user_data)
{
  struct GHashTable * hash;

  hash = value;
  monoeg_g_hash_table_destroy (hash);
}


mono_property_hash_insert (struct MonoPropertyHash * hash, void * object, guint32 property, void * value)
{
  long unsigned int D.4992;
  const void * D.4993;
  struct GHashTable * D.4994;
  void * D.4997;
  struct GHashTable * prop_hash;

  D.4992 = (long unsigned int) property;
  D.4993 = (const void *) D.4992;
  D.4994 = hash->hashes;
  prop_hash = monoeg_g_hash_table_lookup (D.4994, D.4993);
  if (prop_hash == 0B) goto <D.4995>; else goto <D.4996>;
  <D.4995>:
  prop_hash = monoeg_g_hash_table_new (0B, 0B);
  D.4992 = (long unsigned int) property;
  D.4997 = (void *) D.4992;
  D.4994 = hash->hashes;
  monoeg_g_hash_table_insert_replace (D.4994, D.4997, prop_hash, 0);
  <D.4996>:
  monoeg_g_hash_table_insert_replace (prop_hash, object, value, 0);
}


mono_property_hash_remove_object (struct MonoPropertyHash * hash, void * object)
{
  struct GHashTable * D.4998;

  D.4998 = hash->hashes;
  monoeg_g_hash_table_foreach (D.4998, remove_object, object);
}


remove_object (void * key, void * value, void * user_data)
{
  struct GHashTable * prop_hash;

  prop_hash = value;
  monoeg_g_hash_table_remove (prop_hash, user_data);
}


mono_property_hash_lookup (struct MonoPropertyHash * hash, void * object, guint32 property)
{
  long unsigned int D.4999;
  const void * D.5000;
  struct GHashTable * D.5001;
  void * D.5004;
  struct GHashTable * prop_hash;

  D.4999 = (long unsigned int) property;
  D.5000 = (const void *) D.4999;
  D.5001 = hash->hashes;
  prop_hash = monoeg_g_hash_table_lookup (D.5001, D.5000);
  if (prop_hash == 0B) goto <D.5002>; else goto <D.5003>;
  <D.5002>:
  D.5004 = 0B;
  return D.5004;
  <D.5003>:
  D.5004 = monoeg_g_hash_table_lookup (prop_hash, object);
  return D.5004;
}


