mono_property_hash_new ()
{
  struct GHashTable * D.5502;
  struct MonoPropertyHash * D.5503;
  struct MonoPropertyHash * hash;

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


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

  D.5505 = hash->hashes;
  monoeg_g_hash_table_foreach (D.5505, free_hash, 0B);
  D.5505 = hash->hashes;
  monoeg_g_hash_table_destroy (D.5505);
  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)
{
  struct GHashTable * D.5506;
  long unsigned int D.5507;
  const void * D.5508;
  void * D.5511;
  struct GHashTable * prop_hash;

  D.5506 = hash->hashes;
  D.5507 = (long unsigned int) property;
  D.5508 = (const void *) D.5507;
  prop_hash = monoeg_g_hash_table_lookup (D.5506, D.5508);
  if (prop_hash == 0B) goto <D.5509>; else goto <D.5510>;
  <D.5509>:
  prop_hash = monoeg_g_hash_table_new (0B, 0B);
  D.5506 = hash->hashes;
  D.5507 = (long unsigned int) property;
  D.5511 = (void *) D.5507;
  monoeg_g_hash_table_insert_replace (D.5506, D.5511, prop_hash, 0);
  <D.5510>:
  monoeg_g_hash_table_insert_replace (prop_hash, object, value, 0);
}


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

  D.5512 = hash->hashes;
  monoeg_g_hash_table_foreach (D.5512, 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)
{
  struct GHashTable * D.5513;
  long unsigned int D.5514;
  const void * D.5515;
  void * D.5518;
  struct GHashTable * prop_hash;

  D.5513 = hash->hashes;
  D.5514 = (long unsigned int) property;
  D.5515 = (const void *) D.5514;
  prop_hash = monoeg_g_hash_table_lookup (D.5513, D.5515);
  if (prop_hash == 0B) goto <D.5516>; else goto <D.5517>;
  <D.5516>:
  D.5518 = 0B;
  return D.5518;
  <D.5517>:
  D.5518 = monoeg_g_hash_table_lookup (prop_hash, object);
  return D.5518;
}


