Logo Search packages:      
Sourcecode: vala-0.14 version File versions  Download package

valagvariantmodule.c

/* valagvariantmodule.c generated by valac, the Vala compiler
 * generated from valagvariantmodule.vala, do not modify */

/* valagvariantmodule.vala
 *
 * Copyright (C) 2010-2011  Jürg Billeter
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.

 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.

 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
 *
 * Author:
 *    Jürg Billeter <j@bitron.ch>
 */

#include <glib.h>
#include <glib-object.h>
#include <vala.h>
#include <valaccode.h>
#include <valagee.h>
#include <stdlib.h>
#include <string.h>


#define VALA_TYPE_CCODE_BASE_MODULE (vala_ccode_base_module_get_type ())
#define VALA_CCODE_BASE_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CCODE_BASE_MODULE, ValaCCodeBaseModule))
#define VALA_CCODE_BASE_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CCODE_BASE_MODULE, ValaCCodeBaseModuleClass))
#define VALA_IS_CCODE_BASE_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CCODE_BASE_MODULE))
#define VALA_IS_CCODE_BASE_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CCODE_BASE_MODULE))
#define VALA_CCODE_BASE_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CCODE_BASE_MODULE, ValaCCodeBaseModuleClass))

typedef struct _ValaCCodeBaseModule ValaCCodeBaseModule;
typedef struct _ValaCCodeBaseModuleClass ValaCCodeBaseModuleClass;
typedef struct _ValaCCodeBaseModulePrivate ValaCCodeBaseModulePrivate;

#define VALA_CCODE_BASE_MODULE_TYPE_EMIT_CONTEXT (vala_ccode_base_module_emit_context_get_type ())
#define VALA_CCODE_BASE_MODULE_EMIT_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_CCODE_BASE_MODULE_TYPE_EMIT_CONTEXT, ValaCCodeBaseModuleEmitContext))
#define VALA_CCODE_BASE_MODULE_EMIT_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_CCODE_BASE_MODULE_TYPE_EMIT_CONTEXT, ValaCCodeBaseModuleEmitContextClass))
#define VALA_CCODE_BASE_MODULE_IS_EMIT_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_CCODE_BASE_MODULE_TYPE_EMIT_CONTEXT))
#define VALA_CCODE_BASE_MODULE_IS_EMIT_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_CCODE_BASE_MODULE_TYPE_EMIT_CONTEXT))
#define VALA_CCODE_BASE_MODULE_EMIT_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_CCODE_BASE_MODULE_TYPE_EMIT_CONTEXT, ValaCCodeBaseModuleEmitContextClass))

typedef struct _ValaCCodeBaseModuleEmitContext ValaCCodeBaseModuleEmitContext;
typedef struct _ValaCCodeBaseModuleEmitContextClass ValaCCodeBaseModuleEmitContextClass;

#define VALA_TYPE_CCODE_STRUCT_MODULE (vala_ccode_struct_module_get_type ())
#define VALA_CCODE_STRUCT_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CCODE_STRUCT_MODULE, ValaCCodeStructModule))
#define VALA_CCODE_STRUCT_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CCODE_STRUCT_MODULE, ValaCCodeStructModuleClass))
#define VALA_IS_CCODE_STRUCT_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CCODE_STRUCT_MODULE))
#define VALA_IS_CCODE_STRUCT_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CCODE_STRUCT_MODULE))
#define VALA_CCODE_STRUCT_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CCODE_STRUCT_MODULE, ValaCCodeStructModuleClass))

typedef struct _ValaCCodeStructModule ValaCCodeStructModule;
typedef struct _ValaCCodeStructModuleClass ValaCCodeStructModuleClass;
typedef struct _ValaCCodeStructModulePrivate ValaCCodeStructModulePrivate;

#define VALA_TYPE_CCODE_METHOD_MODULE (vala_ccode_method_module_get_type ())
#define VALA_CCODE_METHOD_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CCODE_METHOD_MODULE, ValaCCodeMethodModule))
#define VALA_CCODE_METHOD_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CCODE_METHOD_MODULE, ValaCCodeMethodModuleClass))
#define VALA_IS_CCODE_METHOD_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CCODE_METHOD_MODULE))
#define VALA_IS_CCODE_METHOD_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CCODE_METHOD_MODULE))
#define VALA_CCODE_METHOD_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CCODE_METHOD_MODULE, ValaCCodeMethodModuleClass))

typedef struct _ValaCCodeMethodModule ValaCCodeMethodModule;
typedef struct _ValaCCodeMethodModuleClass ValaCCodeMethodModuleClass;
typedef struct _ValaCCodeMethodModulePrivate ValaCCodeMethodModulePrivate;

#define VALA_TYPE_CCODE_CONTROL_FLOW_MODULE (vala_ccode_control_flow_module_get_type ())
#define VALA_CCODE_CONTROL_FLOW_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CCODE_CONTROL_FLOW_MODULE, ValaCCodeControlFlowModule))
#define VALA_CCODE_CONTROL_FLOW_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CCODE_CONTROL_FLOW_MODULE, ValaCCodeControlFlowModuleClass))
#define VALA_IS_CCODE_CONTROL_FLOW_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CCODE_CONTROL_FLOW_MODULE))
#define VALA_IS_CCODE_CONTROL_FLOW_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CCODE_CONTROL_FLOW_MODULE))
#define VALA_CCODE_CONTROL_FLOW_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CCODE_CONTROL_FLOW_MODULE, ValaCCodeControlFlowModuleClass))

typedef struct _ValaCCodeControlFlowModule ValaCCodeControlFlowModule;
typedef struct _ValaCCodeControlFlowModuleClass ValaCCodeControlFlowModuleClass;
typedef struct _ValaCCodeControlFlowModulePrivate ValaCCodeControlFlowModulePrivate;

#define VALA_TYPE_CCODE_MEMBER_ACCESS_MODULE (vala_ccode_member_access_module_get_type ())
#define VALA_CCODE_MEMBER_ACCESS_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CCODE_MEMBER_ACCESS_MODULE, ValaCCodeMemberAccessModule))
#define VALA_CCODE_MEMBER_ACCESS_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CCODE_MEMBER_ACCESS_MODULE, ValaCCodeMemberAccessModuleClass))
#define VALA_IS_CCODE_MEMBER_ACCESS_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CCODE_MEMBER_ACCESS_MODULE))
#define VALA_IS_CCODE_MEMBER_ACCESS_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CCODE_MEMBER_ACCESS_MODULE))
#define VALA_CCODE_MEMBER_ACCESS_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CCODE_MEMBER_ACCESS_MODULE, ValaCCodeMemberAccessModuleClass))

typedef struct _ValaCCodeMemberAccessModule ValaCCodeMemberAccessModule;
typedef struct _ValaCCodeMemberAccessModuleClass ValaCCodeMemberAccessModuleClass;
typedef struct _ValaCCodeMemberAccessModulePrivate ValaCCodeMemberAccessModulePrivate;

#define VALA_TYPE_CCODE_ASSIGNMENT_MODULE (vala_ccode_assignment_module_get_type ())
#define VALA_CCODE_ASSIGNMENT_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CCODE_ASSIGNMENT_MODULE, ValaCCodeAssignmentModule))
#define VALA_CCODE_ASSIGNMENT_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CCODE_ASSIGNMENT_MODULE, ValaCCodeAssignmentModuleClass))
#define VALA_IS_CCODE_ASSIGNMENT_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CCODE_ASSIGNMENT_MODULE))
#define VALA_IS_CCODE_ASSIGNMENT_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CCODE_ASSIGNMENT_MODULE))
#define VALA_CCODE_ASSIGNMENT_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CCODE_ASSIGNMENT_MODULE, ValaCCodeAssignmentModuleClass))

typedef struct _ValaCCodeAssignmentModule ValaCCodeAssignmentModule;
typedef struct _ValaCCodeAssignmentModuleClass ValaCCodeAssignmentModuleClass;
typedef struct _ValaCCodeAssignmentModulePrivate ValaCCodeAssignmentModulePrivate;

#define VALA_TYPE_CCODE_METHOD_CALL_MODULE (vala_ccode_method_call_module_get_type ())
#define VALA_CCODE_METHOD_CALL_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CCODE_METHOD_CALL_MODULE, ValaCCodeMethodCallModule))
#define VALA_CCODE_METHOD_CALL_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CCODE_METHOD_CALL_MODULE, ValaCCodeMethodCallModuleClass))
#define VALA_IS_CCODE_METHOD_CALL_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CCODE_METHOD_CALL_MODULE))
#define VALA_IS_CCODE_METHOD_CALL_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CCODE_METHOD_CALL_MODULE))
#define VALA_CCODE_METHOD_CALL_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CCODE_METHOD_CALL_MODULE, ValaCCodeMethodCallModuleClass))

typedef struct _ValaCCodeMethodCallModule ValaCCodeMethodCallModule;
typedef struct _ValaCCodeMethodCallModuleClass ValaCCodeMethodCallModuleClass;
typedef struct _ValaCCodeMethodCallModulePrivate ValaCCodeMethodCallModulePrivate;

#define VALA_TYPE_CCODE_ARRAY_MODULE (vala_ccode_array_module_get_type ())
#define VALA_CCODE_ARRAY_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CCODE_ARRAY_MODULE, ValaCCodeArrayModule))
#define VALA_CCODE_ARRAY_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CCODE_ARRAY_MODULE, ValaCCodeArrayModuleClass))
#define VALA_IS_CCODE_ARRAY_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CCODE_ARRAY_MODULE))
#define VALA_IS_CCODE_ARRAY_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CCODE_ARRAY_MODULE))
#define VALA_CCODE_ARRAY_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CCODE_ARRAY_MODULE, ValaCCodeArrayModuleClass))

typedef struct _ValaCCodeArrayModule ValaCCodeArrayModule;
typedef struct _ValaCCodeArrayModuleClass ValaCCodeArrayModuleClass;
typedef struct _ValaCCodeArrayModulePrivate ValaCCodeArrayModulePrivate;

#define VALA_TYPE_CCODE_DELEGATE_MODULE (vala_ccode_delegate_module_get_type ())
#define VALA_CCODE_DELEGATE_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CCODE_DELEGATE_MODULE, ValaCCodeDelegateModule))
#define VALA_CCODE_DELEGATE_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CCODE_DELEGATE_MODULE, ValaCCodeDelegateModuleClass))
#define VALA_IS_CCODE_DELEGATE_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CCODE_DELEGATE_MODULE))
#define VALA_IS_CCODE_DELEGATE_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CCODE_DELEGATE_MODULE))
#define VALA_CCODE_DELEGATE_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CCODE_DELEGATE_MODULE, ValaCCodeDelegateModuleClass))

typedef struct _ValaCCodeDelegateModule ValaCCodeDelegateModule;
typedef struct _ValaCCodeDelegateModuleClass ValaCCodeDelegateModuleClass;
typedef struct _ValaCCodeDelegateModulePrivate ValaCCodeDelegateModulePrivate;

#define VALA_TYPE_GERROR_MODULE (vala_gerror_module_get_type ())
#define VALA_GERROR_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_GERROR_MODULE, ValaGErrorModule))
#define VALA_GERROR_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_GERROR_MODULE, ValaGErrorModuleClass))
#define VALA_IS_GERROR_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_GERROR_MODULE))
#define VALA_IS_GERROR_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_GERROR_MODULE))
#define VALA_GERROR_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_GERROR_MODULE, ValaGErrorModuleClass))

typedef struct _ValaGErrorModule ValaGErrorModule;
typedef struct _ValaGErrorModuleClass ValaGErrorModuleClass;
typedef struct _ValaGErrorModulePrivate ValaGErrorModulePrivate;

#define VALA_TYPE_GTYPE_MODULE (vala_gtype_module_get_type ())
#define VALA_GTYPE_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_GTYPE_MODULE, ValaGTypeModule))
#define VALA_GTYPE_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_GTYPE_MODULE, ValaGTypeModuleClass))
#define VALA_IS_GTYPE_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_GTYPE_MODULE))
#define VALA_IS_GTYPE_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_GTYPE_MODULE))
#define VALA_GTYPE_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_GTYPE_MODULE, ValaGTypeModuleClass))

typedef struct _ValaGTypeModule ValaGTypeModule;
typedef struct _ValaGTypeModuleClass ValaGTypeModuleClass;
typedef struct _ValaGTypeModulePrivate ValaGTypeModulePrivate;

#define VALA_TYPE_GOBJECT_MODULE (vala_gobject_module_get_type ())
#define VALA_GOBJECT_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_GOBJECT_MODULE, ValaGObjectModule))
#define VALA_GOBJECT_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_GOBJECT_MODULE, ValaGObjectModuleClass))
#define VALA_IS_GOBJECT_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_GOBJECT_MODULE))
#define VALA_IS_GOBJECT_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_GOBJECT_MODULE))
#define VALA_GOBJECT_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_GOBJECT_MODULE, ValaGObjectModuleClass))

typedef struct _ValaGObjectModule ValaGObjectModule;
typedef struct _ValaGObjectModuleClass ValaGObjectModuleClass;
typedef struct _ValaGObjectModulePrivate ValaGObjectModulePrivate;

#define VALA_TYPE_GSIGNAL_MODULE (vala_gsignal_module_get_type ())
#define VALA_GSIGNAL_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_GSIGNAL_MODULE, ValaGSignalModule))
#define VALA_GSIGNAL_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_GSIGNAL_MODULE, ValaGSignalModuleClass))
#define VALA_IS_GSIGNAL_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_GSIGNAL_MODULE))
#define VALA_IS_GSIGNAL_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_GSIGNAL_MODULE))
#define VALA_GSIGNAL_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_GSIGNAL_MODULE, ValaGSignalModuleClass))

typedef struct _ValaGSignalModule ValaGSignalModule;
typedef struct _ValaGSignalModuleClass ValaGSignalModuleClass;
typedef struct _ValaGSignalModulePrivate ValaGSignalModulePrivate;

#define VALA_TYPE_GASYNC_MODULE (vala_gasync_module_get_type ())
#define VALA_GASYNC_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_GASYNC_MODULE, ValaGAsyncModule))
#define VALA_GASYNC_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_GASYNC_MODULE, ValaGAsyncModuleClass))
#define VALA_IS_GASYNC_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_GASYNC_MODULE))
#define VALA_IS_GASYNC_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_GASYNC_MODULE))
#define VALA_GASYNC_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_GASYNC_MODULE, ValaGAsyncModuleClass))

typedef struct _ValaGAsyncModule ValaGAsyncModule;
typedef struct _ValaGAsyncModuleClass ValaGAsyncModuleClass;
typedef struct _ValaGAsyncModulePrivate ValaGAsyncModulePrivate;

#define VALA_TYPE_GVARIANT_MODULE (vala_gvariant_module_get_type ())
#define VALA_GVARIANT_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_GVARIANT_MODULE, ValaGVariantModule))
#define VALA_GVARIANT_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_GVARIANT_MODULE, ValaGVariantModuleClass))
#define VALA_IS_GVARIANT_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_GVARIANT_MODULE))
#define VALA_IS_GVARIANT_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_GVARIANT_MODULE))
#define VALA_GVARIANT_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_GVARIANT_MODULE, ValaGVariantModuleClass))

typedef struct _ValaGVariantModule ValaGVariantModule;
typedef struct _ValaGVariantModuleClass ValaGVariantModuleClass;
typedef struct _ValaGVariantModulePrivate ValaGVariantModulePrivate;

#define VALA_GVARIANT_MODULE_TYPE_BASIC_TYPE_INFO (vala_gvariant_module_basic_type_info_get_type ())
typedef struct _ValaGVariantModuleBasicTypeInfo ValaGVariantModuleBasicTypeInfo;
#define _vala_code_node_unref0(var) ((var == NULL) ? NULL : (var = (vala_code_node_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _vala_iterable_unref0(var) ((var == NULL) ? NULL : (var = (vala_iterable_unref (var), NULL)))
#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))
#define _vala_ccode_node_unref0(var) ((var == NULL) ? NULL : (var = (vala_ccode_node_unref (var), NULL)))

struct _ValaCCodeBaseModule {
      ValaCodeGenerator parent_instance;
      ValaCCodeBaseModulePrivate * priv;
      ValaSymbol* root_symbol;
      ValaCCodeBaseModuleEmitContext* emit_context;
      ValaCCodeFile* header_file;
      ValaCCodeFile* internal_header_file;
      ValaCCodeFile* cfile;
      ValaCCodeBaseModuleEmitContext* class_init_context;
      ValaCCodeBaseModuleEmitContext* base_init_context;
      ValaCCodeBaseModuleEmitContext* class_finalize_context;
      ValaCCodeBaseModuleEmitContext* base_finalize_context;
      ValaCCodeBaseModuleEmitContext* instance_init_context;
      ValaCCodeBaseModuleEmitContext* instance_finalize_context;
      ValaCCodeStruct* param_spec_struct;
      ValaCCodeStruct* closure_struct;
      ValaCCodeEnum* prop_enum;
      ValaSet* user_marshal_set;
      ValaSet* predefined_marshal_set;
      gint next_regex_id;
      gboolean in_constructor;
      gboolean in_static_or_class_context;
      gint next_coroutine_state;
      ValaDataType* void_type;
      ValaDataType* bool_type;
      ValaDataType* char_type;
      ValaDataType* uchar_type;
      ValaDataType* unichar_type;
      ValaDataType* short_type;
      ValaDataType* ushort_type;
      ValaDataType* int_type;
      ValaDataType* uint_type;
      ValaDataType* long_type;
      ValaDataType* ulong_type;
      ValaDataType* int8_type;
      ValaDataType* uint8_type;
      ValaDataType* int16_type;
      ValaDataType* uint16_type;
      ValaDataType* int32_type;
      ValaDataType* uint32_type;
      ValaDataType* int64_type;
      ValaDataType* uint64_type;
      ValaDataType* string_type;
      ValaDataType* regex_type;
      ValaDataType* float_type;
      ValaDataType* double_type;
      ValaTypeSymbol* gtype_type;
      ValaTypeSymbol* gobject_type;
      ValaErrorType* gerror_type;
      ValaClass* glist_type;
      ValaClass* gslist_type;
      ValaClass* gnode_type;
      ValaClass* gvaluearray_type;
      ValaTypeSymbol* gstringbuilder_type;
      ValaTypeSymbol* garray_type;
      ValaTypeSymbol* gbytearray_type;
      ValaTypeSymbol* gptrarray_type;
      ValaTypeSymbol* gthreadpool_type;
      ValaDataType* gdestroynotify_type;
      ValaDataType* gquark_type;
      ValaStruct* gvalue_type;
      ValaClass* gvariant_type;
      ValaStruct* mutex_type;
      ValaTypeSymbol* type_module_type;
      ValaTypeSymbol* dbus_proxy_type;
      gboolean in_plugin;
      gchar* module_init_param_name;
      gboolean gvaluecollector_h_needed;
      gboolean requires_array_free;
      gboolean requires_array_move;
      gboolean requires_array_length;
      ValaSet* wrappers;
};

struct _ValaCCodeBaseModuleClass {
      ValaCodeGeneratorClass parent_class;
      void (*append_vala_array_free) (ValaCCodeBaseModule* self);
      void (*append_vala_array_move) (ValaCCodeBaseModule* self);
      void (*append_vala_array_length) (ValaCCodeBaseModule* self);
      gboolean (*generate_enum_declaration) (ValaCCodeBaseModule* self, ValaEnum* en, ValaCCodeFile* decl_space);
      void (*generate_class_struct_declaration) (ValaCCodeBaseModule* self, ValaClass* cl, ValaCCodeFile* decl_space);
      void (*generate_struct_declaration) (ValaCCodeBaseModule* self, ValaStruct* st, ValaCCodeFile* decl_space);
      void (*generate_delegate_declaration) (ValaCCodeBaseModule* self, ValaDelegate* d, ValaCCodeFile* decl_space);
      void (*generate_cparameters) (ValaCCodeBaseModule* self, ValaMethod* m, ValaCCodeFile* decl_space, ValaMap* cparam_map, ValaCCodeFunction* func, ValaCCodeFunctionDeclarator* vdeclarator, ValaMap* carg_map, ValaCCodeFunctionCall* vcall, gint direction);
      ValaCCodeExpression* (*get_dup_func_expression) (ValaCCodeBaseModule* self, ValaDataType* type, ValaSourceReference* source_reference, gboolean is_chainup);
      gchar* (*append_struct_array_free) (ValaCCodeBaseModule* self, ValaStruct* st);
      ValaCCodeExpression* (*destroy_value) (ValaCCodeBaseModule* self, ValaTargetValue* value, gboolean is_macro_definition);
      void (*append_scope_free) (ValaCCodeBaseModule* self, ValaSymbol* sym, ValaCodeNode* stop_at);
      ValaTargetValue* (*get_local_cvalue) (ValaCCodeBaseModule* self, ValaLocalVariable* local);
      ValaTargetValue* (*get_parameter_cvalue) (ValaCCodeBaseModule* self, ValaParameter* param);
      ValaTargetValue* (*get_field_cvalue) (ValaCCodeBaseModule* self, ValaField* field, ValaTargetValue* instance);
      ValaTargetValue* (*load_this_parameter) (ValaCCodeBaseModule* self, ValaTypeSymbol* sym);
      void (*store_value) (ValaCCodeBaseModule* self, ValaTargetValue* lvalue, ValaTargetValue* value);
      gchar* (*get_delegate_target_cname) (ValaCCodeBaseModule* self, const gchar* delegate_cname);
      ValaCCodeExpression* (*get_delegate_target_cexpression) (ValaCCodeBaseModule* self, ValaExpression* delegate_expr, ValaCCodeExpression** delegate_target_destroy_notify);
      ValaCCodeExpression* (*get_delegate_target_cvalue) (ValaCCodeBaseModule* self, ValaTargetValue* value);
      ValaCCodeExpression* (*get_delegate_target_destroy_notify_cvalue) (ValaCCodeBaseModule* self, ValaTargetValue* value);
      gchar* (*get_delegate_target_destroy_notify_cname) (ValaCCodeBaseModule* self, const gchar* delegate_cname);
      ValaTargetValue* (*copy_value) (ValaCCodeBaseModule* self, ValaTargetValue* value, ValaCodeNode* node);
      void (*generate_class_declaration) (ValaCCodeBaseModule* self, ValaClass* cl, ValaCCodeFile* decl_space);
      void (*generate_interface_declaration) (ValaCCodeBaseModule* self, ValaInterface* iface, ValaCCodeFile* decl_space);
      void (*generate_method_declaration) (ValaCCodeBaseModule* self, ValaMethod* m, ValaCCodeFile* decl_space);
      void (*generate_error_domain_declaration) (ValaCCodeBaseModule* self, ValaErrorDomain* edomain, ValaCCodeFile* decl_space);
      ValaCCodeExpression* (*deserialize_expression) (ValaCCodeBaseModule* self, ValaDataType* type, ValaCCodeExpression* variant_expr, ValaCCodeExpression* expr, ValaCCodeExpression* error_expr, gboolean* may_fail);
      ValaCCodeExpression* (*serialize_expression) (ValaCCodeBaseModule* self, ValaDataType* type, ValaCCodeExpression* expr);
      ValaCCodeExpression* (*get_implicit_cast_expression) (ValaCCodeBaseModule* self, ValaCCodeExpression* source_cexpr, ValaDataType* expression_type, ValaDataType* target_type, ValaCodeNode* node);
      gboolean (*is_gobject_property) (ValaCCodeBaseModule* self, ValaProperty* prop);
      gchar* (*get_custom_creturn_type) (ValaCCodeBaseModule* self, ValaMethod* m);
      void (*generate_dynamic_method_wrapper) (ValaCCodeBaseModule* self, ValaDynamicMethod* method);
      gboolean (*method_has_wrapper) (ValaCCodeBaseModule* self, ValaMethod* method);
      ValaCCodeFunctionCall* (*get_param_spec) (ValaCCodeBaseModule* self, ValaProperty* prop);
      ValaCCodeFunctionCall* (*get_signal_creation) (ValaCCodeBaseModule* self, ValaSignal* sig, ValaTypeSymbol* type);
      void (*register_dbus_info) (ValaCCodeBaseModule* self, ValaCCodeBlock* block, ValaObjectTypeSymbol* bindable);
      gchar* (*get_dynamic_property_getter_cname) (ValaCCodeBaseModule* self, ValaDynamicProperty* node);
      gchar* (*get_dynamic_property_setter_cname) (ValaCCodeBaseModule* self, ValaDynamicProperty* node);
      gchar* (*get_dynamic_signal_cname) (ValaCCodeBaseModule* self, ValaDynamicSignal* node);
      gchar* (*get_dynamic_signal_connect_wrapper_name) (ValaCCodeBaseModule* self, ValaDynamicSignal* node);
      gchar* (*get_dynamic_signal_connect_after_wrapper_name) (ValaCCodeBaseModule* self, ValaDynamicSignal* node);
      gchar* (*get_dynamic_signal_disconnect_wrapper_name) (ValaCCodeBaseModule* self, ValaDynamicSignal* node);
      gchar* (*get_array_length_cname) (ValaCCodeBaseModule* self, const gchar* array_cname, gint dim);
      gchar* (*get_parameter_array_length_cname) (ValaCCodeBaseModule* self, ValaParameter* param, gint dim);
      ValaCCodeExpression* (*get_array_length_cexpression) (ValaCCodeBaseModule* self, ValaExpression* array_expr, gint dim);
      ValaCCodeExpression* (*get_array_length_cvalue) (ValaCCodeBaseModule* self, ValaTargetValue* value, gint dim);
      gchar* (*get_array_size_cname) (ValaCCodeBaseModule* self, const gchar* array_cname);
      void (*add_simple_check) (ValaCCodeBaseModule* self, ValaCodeNode* node, gboolean always_fails);
      gchar* (*generate_ready_function) (ValaCCodeBaseModule* self, ValaMethod* m);
};

struct _ValaCCodeStructModule {
      ValaCCodeBaseModule parent_instance;
      ValaCCodeStructModulePrivate * priv;
};

struct _ValaCCodeStructModuleClass {
      ValaCCodeBaseModuleClass parent_class;
};

struct _ValaCCodeMethodModule {
      ValaCCodeStructModule parent_instance;
      ValaCCodeMethodModulePrivate * priv;
};

struct _ValaCCodeMethodModuleClass {
      ValaCCodeStructModuleClass parent_class;
      void (*generate_method_result_declaration) (ValaCCodeMethodModule* self, ValaMethod* m, ValaCCodeFile* decl_space, ValaCCodeFunction* cfunc, ValaMap* cparam_map, ValaMap* carg_map);
      ValaCCodeParameter* (*generate_parameter) (ValaCCodeMethodModule* self, ValaParameter* param, ValaCCodeFile* decl_space, ValaMap* cparam_map, ValaMap* carg_map);
};

struct _ValaCCodeControlFlowModule {
      ValaCCodeMethodModule parent_instance;
      ValaCCodeControlFlowModulePrivate * priv;
};

struct _ValaCCodeControlFlowModuleClass {
      ValaCCodeMethodModuleClass parent_class;
};

struct _ValaCCodeMemberAccessModule {
      ValaCCodeControlFlowModule parent_instance;
      ValaCCodeMemberAccessModulePrivate * priv;
};

struct _ValaCCodeMemberAccessModuleClass {
      ValaCCodeControlFlowModuleClass parent_class;
};

struct _ValaCCodeAssignmentModule {
      ValaCCodeMemberAccessModule parent_instance;
      ValaCCodeAssignmentModulePrivate * priv;
};

struct _ValaCCodeAssignmentModuleClass {
      ValaCCodeMemberAccessModuleClass parent_class;
};

struct _ValaCCodeMethodCallModule {
      ValaCCodeAssignmentModule parent_instance;
      ValaCCodeMethodCallModulePrivate * priv;
};

struct _ValaCCodeMethodCallModuleClass {
      ValaCCodeAssignmentModuleClass parent_class;
};

struct _ValaCCodeArrayModule {
      ValaCCodeMethodCallModule parent_instance;
      ValaCCodeArrayModulePrivate * priv;
};

struct _ValaCCodeArrayModuleClass {
      ValaCCodeMethodCallModuleClass parent_class;
};

struct _ValaCCodeDelegateModule {
      ValaCCodeArrayModule parent_instance;
      ValaCCodeDelegateModulePrivate * priv;
};

struct _ValaCCodeDelegateModuleClass {
      ValaCCodeArrayModuleClass parent_class;
};

struct _ValaGErrorModule {
      ValaCCodeDelegateModule parent_instance;
      ValaGErrorModulePrivate * priv;
};

struct _ValaGErrorModuleClass {
      ValaCCodeDelegateModuleClass parent_class;
      void (*return_with_exception) (ValaGErrorModule* self, ValaCCodeExpression* error_expr);
};

struct _ValaGTypeModule {
      ValaGErrorModule parent_instance;
      ValaGTypeModulePrivate * priv;
};

struct _ValaGTypeModuleClass {
      ValaGErrorModuleClass parent_class;
      void (*generate_virtual_method_declaration) (ValaGTypeModule* self, ValaMethod* m, ValaCCodeFile* decl_space, ValaCCodeStruct* type_struct);
      void (*generate_class_init) (ValaGTypeModule* self, ValaClass* cl);
};

struct _ValaGObjectModule {
      ValaGTypeModule parent_instance;
      ValaGObjectModulePrivate * priv;
};

struct _ValaGObjectModuleClass {
      ValaGTypeModuleClass parent_class;
};

struct _ValaGSignalModule {
      ValaGObjectModule parent_instance;
      ValaGSignalModulePrivate * priv;
};

struct _ValaGSignalModuleClass {
      ValaGObjectModuleClass parent_class;
};

struct _ValaGAsyncModule {
      ValaGSignalModule parent_instance;
      ValaGAsyncModulePrivate * priv;
};

struct _ValaGAsyncModuleClass {
      ValaGSignalModuleClass parent_class;
};

struct _ValaGVariantModule {
      ValaGAsyncModule parent_instance;
      ValaGVariantModulePrivate * priv;
};

struct _ValaGVariantModuleClass {
      ValaGAsyncModuleClass parent_class;
};

00477 struct _ValaGVariantModuleBasicTypeInfo {
      const gchar* signature;
      const gchar* type_name;
      gboolean is_string;
};


static gpointer vala_gvariant_module_parent_class = NULL;

GType vala_ccode_base_module_get_type (void) G_GNUC_CONST;
gpointer vala_ccode_base_module_emit_context_ref (gpointer instance);
void vala_ccode_base_module_emit_context_unref (gpointer instance);
GParamSpec* vala_ccode_base_module_param_spec_emit_context (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void vala_ccode_base_module_value_set_emit_context (GValue* value, gpointer v_object);
void vala_ccode_base_module_value_take_emit_context (GValue* value, gpointer v_object);
gpointer vala_ccode_base_module_value_get_emit_context (const GValue* value);
GType vala_ccode_base_module_emit_context_get_type (void) G_GNUC_CONST;
GType vala_ccode_struct_module_get_type (void) G_GNUC_CONST;
GType vala_ccode_method_module_get_type (void) G_GNUC_CONST;
GType vala_ccode_control_flow_module_get_type (void) G_GNUC_CONST;
GType vala_ccode_member_access_module_get_type (void) G_GNUC_CONST;
GType vala_ccode_assignment_module_get_type (void) G_GNUC_CONST;
GType vala_ccode_method_call_module_get_type (void) G_GNUC_CONST;
GType vala_ccode_array_module_get_type (void) G_GNUC_CONST;
GType vala_ccode_delegate_module_get_type (void) G_GNUC_CONST;
GType vala_gerror_module_get_type (void) G_GNUC_CONST;
GType vala_gtype_module_get_type (void) G_GNUC_CONST;
GType vala_gobject_module_get_type (void) G_GNUC_CONST;
GType vala_gsignal_module_get_type (void) G_GNUC_CONST;
GType vala_gasync_module_get_type (void) G_GNUC_CONST;
GType vala_gvariant_module_get_type (void) G_GNUC_CONST;
enum  {
      VALA_GVARIANT_MODULE_DUMMY_PROPERTY
};
static GType vala_gvariant_module_basic_type_info_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
static ValaGVariantModuleBasicTypeInfo* vala_gvariant_module_basic_type_info_dup (const ValaGVariantModuleBasicTypeInfo* self);
static void vala_gvariant_module_basic_type_info_free (ValaGVariantModuleBasicTypeInfo* self);
static gboolean vala_gvariant_module_is_string_marshalled_enum (ValaTypeSymbol* symbol);
static gchar* vala_gvariant_module_get_dbus_value (ValaGVariantModule* self, ValaEnumValue* value, const gchar* default_value);
gchar* vala_gvariant_module_get_dbus_signature (ValaSymbol* symbol);
static gboolean vala_gvariant_module_get_basic_type_info (ValaGVariantModule* self, const gchar* signature, ValaGVariantModuleBasicTypeInfo* basic_type);
gchar* vala_gvariant_module_get_type_signature (ValaDataType* datatype, ValaSymbol* symbol);
static void vala_gvariant_module_real_visit_enum (ValaCodeVisitor* base, ValaEnum* en);
ValaCCodeFunction* vala_gvariant_module_generate_enum_from_string_function (ValaGVariantModule* self, ValaEnum* en);
ValaCCodeFunction* vala_gvariant_module_generate_enum_to_string_function (ValaGVariantModule* self, ValaEnum* en);
static gboolean vala_gvariant_module_real_generate_enum_declaration (ValaCCodeBaseModule* base, ValaEnum* en, ValaCCodeFile* decl_space);
gboolean vala_ccode_base_module_generate_enum_declaration (ValaCCodeBaseModule* self, ValaEnum* en, ValaCCodeFile* decl_space);
ValaCCodeFunction* vala_gvariant_module_generate_enum_from_string_function_declaration (ValaGVariantModule* self, ValaEnum* en);
ValaCCodeFunction* vala_gvariant_module_generate_enum_to_string_function_declaration (ValaGVariantModule* self, ValaEnum* en);
static ValaCCodeExpression* vala_gvariant_module_get_array_length (ValaGVariantModule* self, ValaCCodeExpression* expr, gint dim);
static ValaCCodeExpression* vala_gvariant_module_generate_enum_value_from_string (ValaGVariantModule* self, ValaEnumValueType* type, ValaCCodeExpression* expr, ValaCCodeExpression* error_expr);
void vala_ccode_base_module_push_function (ValaCCodeBaseModule* self, ValaCCodeFunction* func);
ValaCCodeFunction* vala_ccode_base_module_get_ccode (ValaCCodeBaseModule* self);
void vala_ccode_base_module_pop_function (ValaCCodeBaseModule* self);
static ValaCCodeExpression* vala_gvariant_module_deserialize_basic (ValaGVariantModule* self, ValaGVariantModuleBasicTypeInfo* basic_type, ValaCCodeExpression* variant_expr, gboolean transfer);
static ValaCCodeExpression* vala_gvariant_module_deserialize_array (ValaGVariantModule* self, ValaArrayType* array_type, ValaCCodeExpression* variant_expr, ValaCCodeExpression* expr);
gint vala_ccode_base_module_get_next_temp_var_id (ValaCCodeBaseModule* self);
void vala_ccode_base_module_set_next_temp_var_id (ValaCCodeBaseModule* self, gint value);
static void vala_gvariant_module_deserialize_array_dim (ValaGVariantModule* self, ValaArrayType* array_type, gint dim, const gchar* temp_name, ValaCCodeExpression* variant_expr, ValaCCodeExpression* expr);
ValaCCodeExpression* vala_ccode_base_module_deserialize_expression (ValaCCodeBaseModule* self, ValaDataType* type, ValaCCodeExpression* variant_expr, ValaCCodeExpression* expr, ValaCCodeExpression* error_expr, gboolean* may_fail);
static ValaCCodeExpression* vala_gvariant_module_deserialize_struct (ValaGVariantModule* self, ValaStruct* st, ValaCCodeExpression* variant_expr);
void vala_gvariant_module_read_expression (ValaGVariantModule* self, ValaDataType* type, ValaCCodeExpression* iter_expr, ValaCCodeExpression* target_expr, ValaSymbol* sym, ValaCCodeExpression* error_expr, gboolean* may_fail);
static ValaCCodeExpression* vala_gvariant_module_deserialize_hash_table (ValaGVariantModule* self, ValaObjectType* type, ValaCCodeExpression* variant_expr);
ValaCCodeExpression* vala_ccode_base_module_convert_to_generic_pointer (ValaCCodeBaseModule* self, ValaCCodeExpression* cexpr, ValaDataType* actual_type);
static ValaCCodeExpression* vala_gvariant_module_real_deserialize_expression (ValaCCodeBaseModule* base, ValaDataType* type, ValaCCodeExpression* variant_expr, ValaCCodeExpression* expr, ValaCCodeExpression* error_expr, gboolean* may_fail);
static ValaCCodeExpression* vala_gvariant_module_generate_enum_value_to_string (ValaGVariantModule* self, ValaEnumValueType* type, ValaCCodeExpression* expr);
static ValaCCodeExpression* vala_gvariant_module_serialize_basic (ValaGVariantModule* self, ValaGVariantModuleBasicTypeInfo* basic_type, ValaCCodeExpression* expr);
static ValaCCodeExpression* vala_gvariant_module_serialize_array (ValaGVariantModule* self, ValaArrayType* array_type, ValaCCodeExpression* array_expr);
static ValaCCodeExpression* vala_gvariant_module_serialize_array_dim (ValaGVariantModule* self, ValaArrayType* array_type, gint dim, ValaCCodeExpression* array_expr, ValaCCodeExpression* array_iter_expr);
ValaCCodeExpression* vala_ccode_base_module_serialize_expression (ValaCCodeBaseModule* self, ValaDataType* type, ValaCCodeExpression* expr);
static ValaCCodeExpression* vala_gvariant_module_serialize_struct (ValaGVariantModule* self, ValaStruct* st, ValaCCodeExpression* struct_expr);
void vala_gvariant_module_write_expression (ValaGVariantModule* self, ValaDataType* type, ValaCCodeExpression* builder_expr, ValaCCodeExpression* expr, ValaSymbol* sym);
static ValaCCodeExpression* vala_gvariant_module_serialize_hash_table (ValaGVariantModule* self, ValaObjectType* type, ValaCCodeExpression* hash_table_expr);
ValaCCodeExpression* vala_ccode_base_module_convert_from_generic_pointer (ValaCCodeBaseModule* self, ValaCCodeExpression* cexpr, ValaDataType* actual_type);
static ValaCCodeExpression* vala_gvariant_module_real_serialize_expression (ValaCCodeBaseModule* base, ValaDataType* type, ValaCCodeExpression* expr);
ValaGVariantModule* vala_gvariant_module_new (void);
ValaGVariantModule* vala_gvariant_module_construct (GType object_type);
ValaGAsyncModule* vala_gasync_module_new (void);
ValaGAsyncModule* vala_gasync_module_construct (GType object_type);

static const ValaGVariantModuleBasicTypeInfo VALA_GVARIANT_MODULE_basic_types[12] = {{"y", "byte", FALSE}, {"b", "boolean", FALSE}, {"n", "int16", FALSE}, {"q", "uint16", FALSE}, {"i", "int32", FALSE}, {"u", "uint32", FALSE}, {"x", "int64", FALSE}, {"t", "uint64", FALSE}, {"d", "double", FALSE}, {"s", "string", TRUE}, {"o", "object_path", TRUE}, {"g", "signature", TRUE}};

static gboolean vala_gvariant_module_is_string_marshalled_enum (ValaTypeSymbol* symbol) {
      gboolean result = FALSE;
      gboolean _tmp0_ = FALSE;
      if (symbol != NULL) {
            _tmp0_ = VALA_IS_ENUM (symbol);
      } else {
            _tmp0_ = FALSE;
      }
      if (_tmp0_) {
            ValaAttribute* _tmp1_ = NULL;
            ValaAttribute* dbus;
            gboolean _tmp2_ = FALSE;
            _tmp1_ = vala_code_node_get_attribute ((ValaCodeNode*) symbol, "DBus");
            dbus = _tmp1_;
            if (dbus != NULL) {
                  gboolean _tmp3_;
                  _tmp3_ = vala_attribute_get_bool (dbus, "use_string_marshalling");
                  _tmp2_ = _tmp3_;
            } else {
                  _tmp2_ = FALSE;
            }
            result = _tmp2_;
            _vala_code_node_unref0 (dbus);
            return result;
      }
      result = FALSE;
      return result;
}


static gchar* vala_gvariant_module_get_dbus_value (ValaGVariantModule* self, ValaEnumValue* value, const gchar* default_value) {
      gchar* result = NULL;
      ValaAttribute* _tmp0_ = NULL;
      ValaAttribute* dbus;
      gchar* _tmp2_ = NULL;
      gchar* dbus_value;
      g_return_val_if_fail (self != NULL, NULL);
      g_return_val_if_fail (value != NULL, NULL);
      g_return_val_if_fail (default_value != NULL, NULL);
      _tmp0_ = vala_code_node_get_attribute ((ValaCodeNode*) value, "DBus");
      dbus = _tmp0_;
      if (dbus == NULL) {
            gchar* _tmp1_;
            _tmp1_ = g_strdup (default_value);
            result = _tmp1_;
            _vala_code_node_unref0 (dbus);
            return result;
      }
      _tmp2_ = vala_attribute_get_string (dbus, "value");
      dbus_value = _tmp2_;
      if (dbus_value == NULL) {
            gchar* _tmp3_;
            _tmp3_ = g_strdup (default_value);
            result = _tmp3_;
            _g_free0 (dbus_value);
            _vala_code_node_unref0 (dbus);
            return result;
      }
      result = dbus_value;
      _vala_code_node_unref0 (dbus);
      return result;
}


gchar* vala_gvariant_module_get_dbus_signature (ValaSymbol* symbol) {
      gchar* result = NULL;
      ValaAttribute* _tmp0_ = NULL;
      ValaAttribute* dbus;
      gchar* _tmp1_ = NULL;
      g_return_val_if_fail (symbol != NULL, NULL);
      _tmp0_ = vala_code_node_get_attribute ((ValaCodeNode*) symbol, "DBus");
      dbus = _tmp0_;
      if (dbus == NULL) {
            result = NULL;
            _vala_code_node_unref0 (dbus);
            return result;
      }
      _tmp1_ = vala_attribute_get_string (dbus, "signature");
      result = _tmp1_;
      _vala_code_node_unref0 (dbus);
      return result;
}


static gboolean vala_gvariant_module_get_basic_type_info (ValaGVariantModule* self, const gchar* signature, ValaGVariantModuleBasicTypeInfo* basic_type) {
      ValaGVariantModuleBasicTypeInfo _basic_type = {0};
      gboolean result = FALSE;
      g_return_val_if_fail (self != NULL, FALSE);
      g_return_val_if_fail (signature != NULL, FALSE);
      {
            ValaGVariantModuleBasicTypeInfo* info_collection = NULL;
            gint info_collection_length1 = 0;
            gint _info_collection_size_ = 0;
            gint info_it;
            info_collection = VALA_GVARIANT_MODULE_basic_types;
            info_collection_length1 = G_N_ELEMENTS (VALA_GVARIANT_MODULE_basic_types);
            for (info_it = 0; info_it < G_N_ELEMENTS (VALA_GVARIANT_MODULE_basic_types); info_it = info_it + 1) {
                  ValaGVariantModuleBasicTypeInfo info = {0};
                  info = info_collection[info_it];
                  {
                        if (g_strcmp0 (info.signature, signature) == 0) {
                              _basic_type = info;
                              result = TRUE;
                              if (basic_type) {
                                    *basic_type = _basic_type;
                              }
                              return result;
                        }
                  }
            }
      }
      result = FALSE;
      if (basic_type) {
            *basic_type = _basic_type;
      }
      return result;
}


static gpointer _vala_code_node_ref0 (gpointer self) {
      return self ? vala_code_node_ref (self) : NULL;
}


static gboolean string_contains (const gchar* self, const gchar* needle) {
      gboolean result = FALSE;
      gchar* _tmp0_ = NULL;
      g_return_val_if_fail (self != NULL, FALSE);
      g_return_val_if_fail (needle != NULL, FALSE);
      _tmp0_ = strstr ((gchar*) self, (gchar*) needle);
      result = _tmp0_ != NULL;
      return result;
}


static gpointer _vala_iterable_ref0 (gpointer self) {
      return self ? vala_iterable_ref (self) : NULL;
}


gchar* vala_gvariant_module_get_type_signature (ValaDataType* datatype, ValaSymbol* symbol) {
      gchar* result = NULL;
      ValaDataType* _tmp1_;
      ValaArrayType* _tmp2_;
      ValaArrayType* array_type;
      g_return_val_if_fail (datatype != NULL, NULL);
      if (symbol != NULL) {
            gchar* _tmp0_ = NULL;
            gchar* sig;
            _tmp0_ = vala_gvariant_module_get_dbus_signature (symbol);
            sig = _tmp0_;
            if (sig != NULL) {
                  result = sig;
                  return result;
            }
            _g_free0 (sig);
      }
      _tmp1_ = datatype;
      _tmp2_ = _vala_code_node_ref0 (VALA_IS_ARRAY_TYPE (_tmp1_) ? ((ValaArrayType*) _tmp1_) : NULL);
      array_type = _tmp2_;
      if (array_type != NULL) {
            ValaDataType* _tmp3_ = NULL;
            gchar* _tmp4_ = NULL;
            gchar* element_type_signature;
            gint _tmp5_;
            gchar* _tmp6_ = NULL;
            gchar* _tmp7_;
            gchar* _tmp8_;
            gchar* _tmp9_;
            _tmp3_ = vala_array_type_get_element_type (array_type);
            _tmp4_ = vala_gvariant_module_get_type_signature (_tmp3_, NULL);
            element_type_signature = _tmp4_;
            if (element_type_signature == NULL) {
                  result = NULL;
                  _g_free0 (element_type_signature);
                  _vala_code_node_unref0 (array_type);
                  return result;
            }
            _tmp5_ = vala_array_type_get_rank (array_type);
            _tmp6_ = g_strnfill ((gsize) _tmp5_, 'a');
            _tmp7_ = _tmp6_;
            _tmp8_ = g_strconcat (_tmp7_, element_type_signature, NULL);
            _tmp9_ = _tmp8_;
            _g_free0 (_tmp7_);
            result = _tmp9_;
            _g_free0 (element_type_signature);
            _vala_code_node_unref0 (array_type);
            return result;
      } else {
            ValaTypeSymbol* _tmp10_ = NULL;
            gboolean _tmp11_;
            _tmp10_ = vala_data_type_get_data_type (datatype);
            _tmp11_ = vala_gvariant_module_is_string_marshalled_enum (_tmp10_);
            if (_tmp11_) {
                  gchar* _tmp12_;
                  _tmp12_ = g_strdup ("s");
                  result = _tmp12_;
                  _vala_code_node_unref0 (array_type);
                  return result;
            } else {
                  ValaTypeSymbol* _tmp13_ = NULL;
                  _tmp13_ = vala_data_type_get_data_type (datatype);
                  if (_tmp13_ != NULL) {
                        gchar* sig;
                        ValaTypeSymbol* _tmp14_ = NULL;
                        ValaAttribute* _tmp15_ = NULL;
                        ValaAttribute* ccode;
                        ValaTypeSymbol* _tmp17_ = NULL;
                        ValaTypeSymbol* _tmp18_;
                        ValaStruct* _tmp19_;
                        ValaStruct* st;
                        ValaTypeSymbol* _tmp20_ = NULL;
                        ValaTypeSymbol* _tmp21_;
                        ValaEnum* _tmp22_;
                        ValaEnum* en;
                        gboolean _tmp23_ = FALSE;
                        ValaList* _tmp37_ = NULL;
                        ValaList* type_args;
                        gboolean _tmp38_ = FALSE;
                        gboolean _tmp39_ = FALSE;
                        gboolean _tmp49_ = FALSE;
                        sig = NULL;
                        _tmp14_ = vala_data_type_get_data_type (datatype);
                        _tmp15_ = vala_code_node_get_attribute ((ValaCodeNode*) _tmp14_, "CCode");
                        ccode = _tmp15_;
                        if (ccode != NULL) {
                              gchar* _tmp16_ = NULL;
                              _tmp16_ = vala_attribute_get_string (ccode, "type_signature");
                              _g_free0 (sig);
                              sig = _tmp16_;
                        }
                        _tmp17_ = vala_data_type_get_data_type (datatype);
                        _tmp18_ = _tmp17_;
                        _tmp19_ = _vala_code_node_ref0 (VALA_IS_STRUCT (_tmp18_) ? ((ValaStruct*) _tmp18_) : NULL);
                        st = _tmp19_;
                        _tmp20_ = vala_data_type_get_data_type (datatype);
                        _tmp21_ = _tmp20_;
                        _tmp22_ = _vala_code_node_ref0 (VALA_IS_ENUM (_tmp21_) ? ((ValaEnum*) _tmp21_) : NULL);
                        en = _tmp22_;
                        if (sig == NULL) {
                              _tmp23_ = st != NULL;
                        } else {
                              _tmp23_ = FALSE;
                        }
                        if (_tmp23_) {
                              GString* _tmp24_ = NULL;
                              GString* str;
                              gchar* _tmp32_;
                              _tmp24_ = g_string_new ("");
                              str = _tmp24_;
                              g_string_append_c (str, '(');
                              {
                                    ValaList* _tmp25_ = NULL;
                                    ValaList* _f_list;
                                    gint _tmp26_;
                                    gint _f_size;
                                    gint _f_index;
                                    _tmp25_ = vala_struct_get_fields (st);
                                    _f_list = _tmp25_;
                                    _tmp26_ = vala_collection_get_size ((ValaCollection*) _f_list);
                                    _f_size = _tmp26_;
                                    _f_index = -1;
                                    while (TRUE) {
                                          gpointer _tmp27_ = NULL;
                                          ValaField* f;
                                          ValaMemberBinding _tmp28_;
                                          _f_index = _f_index + 1;
                                          if (!(_f_index < _f_size)) {
                                                break;
                                          }
                                          _tmp27_ = vala_list_get (_f_list, _f_index);
                                          f = (ValaField*) _tmp27_;
                                          _tmp28_ = vala_field_get_binding (f);
                                          if (_tmp28_ == VALA_MEMBER_BINDING_INSTANCE) {
                                                ValaDataType* _tmp29_ = NULL;
                                                gchar* _tmp30_ = NULL;
                                                gchar* _tmp31_;
                                                _tmp29_ = vala_variable_get_variable_type ((ValaVariable*) f);
                                                _tmp30_ = vala_gvariant_module_get_type_signature (_tmp29_, (ValaSymbol*) f);
                                                _tmp31_ = _tmp30_;
                                                g_string_append (str, _tmp31_);
                                                _g_free0 (_tmp31_);
                                          }
                                          _vala_code_node_unref0 (f);
                                    }
                                    _vala_iterable_unref0 (_f_list);
                              }
                              g_string_append_c (str, ')');
                              _tmp32_ = g_strdup (str->str);
                              _g_free0 (sig);
                              sig = _tmp32_;
                              _g_string_free0 (str);
                        } else {
                              gboolean _tmp33_ = FALSE;
                              if (sig == NULL) {
                                    _tmp33_ = en != NULL;
                              } else {
                                    _tmp33_ = FALSE;
                              }
                              if (_tmp33_) {
                                    gboolean _tmp34_;
                                    _tmp34_ = vala_enum_get_is_flags (en);
                                    if (_tmp34_) {
                                          gchar* _tmp35_;
                                          _tmp35_ = g_strdup ("u");
                                          result = _tmp35_;
                                          _vala_code_node_unref0 (en);
                                          _vala_code_node_unref0 (st);
                                          _vala_code_node_unref0 (ccode);
                                          _g_free0 (sig);
                                          _vala_code_node_unref0 (array_type);
                                          return result;
                                    } else {
                                          gchar* _tmp36_;
                                          _tmp36_ = g_strdup ("i");
                                          result = _tmp36_;
                                          _vala_code_node_unref0 (en);
                                          _vala_code_node_unref0 (st);
                                          _vala_code_node_unref0 (ccode);
                                          _g_free0 (sig);
                                          _vala_code_node_unref0 (array_type);
                                          return result;
                                    }
                              }
                        }
                        _tmp37_ = vala_data_type_get_type_arguments (datatype);
                        type_args = _tmp37_;
                        if (sig != NULL) {
                              gboolean _tmp40_;
                              _tmp40_ = string_contains (sig, "%s");
                              _tmp39_ = _tmp40_;
                        } else {
                              _tmp39_ = FALSE;
                        }
                        if (_tmp39_) {
                              gint _tmp41_;
                              _tmp41_ = vala_collection_get_size ((ValaCollection*) type_args);
                              _tmp38_ = _tmp41_ > 0;
                        } else {
                              _tmp38_ = FALSE;
                        }
                        if (_tmp38_) {
                              gchar* _tmp42_;
                              gchar* element_sig;
                              gchar* _tmp48_ = NULL;
                              _tmp42_ = g_strdup ("");
                              element_sig = _tmp42_;
                              {
                                    ValaList* _tmp43_;
                                    ValaList* _type_arg_list;
                                    gint _tmp44_;
                                    gint _type_arg_size;
                                    gint _type_arg_index;
                                    _tmp43_ = _vala_iterable_ref0 (type_args);
                                    _type_arg_list = _tmp43_;
                                    _tmp44_ = vala_collection_get_size ((ValaCollection*) _type_arg_list);
                                    _type_arg_size = _tmp44_;
                                    _type_arg_index = -1;
                                    while (TRUE) {
                                          gpointer _tmp45_ = NULL;
                                          ValaDataType* type_arg;
                                          gchar* _tmp46_ = NULL;
                                          gchar* s;
                                          _type_arg_index = _type_arg_index + 1;
                                          if (!(_type_arg_index < _type_arg_size)) {
                                                break;
                                          }
                                          _tmp45_ = vala_list_get (_type_arg_list, _type_arg_index);
                                          type_arg = (ValaDataType*) _tmp45_;
                                          _tmp46_ = vala_gvariant_module_get_type_signature (type_arg, NULL);
                                          s = _tmp46_;
                                          if (s != NULL) {
                                                gchar* _tmp47_;
                                                _tmp47_ = g_strconcat (element_sig, s, NULL);
                                                _g_free0 (element_sig);
                                                element_sig = _tmp47_;
                                          }
                                          _g_free0 (s);
                                          _vala_code_node_unref0 (type_arg);
                                    }
                                    _vala_iterable_unref0 (_type_arg_list);
                              }
                              _tmp48_ = g_strdup_printf (sig, element_sig);
                              _g_free0 (sig);
                              sig = _tmp48_;
                              _g_free0 (element_sig);
                        }
                        if (sig == NULL) {
                              gboolean _tmp50_ = FALSE;
                              gboolean _tmp51_ = FALSE;
                              ValaTypeSymbol* _tmp52_ = NULL;
                              gchar* _tmp53_ = NULL;
                              gchar* _tmp54_;
                              gboolean _tmp55_;
                              _tmp52_ = vala_data_type_get_data_type (datatype);
                              _tmp53_ = vala_symbol_get_full_name ((ValaSymbol*) _tmp52_);
                              _tmp54_ = _tmp53_;
                              _tmp55_ = g_strcmp0 (_tmp54_, "GLib.UnixInputStream") == 0;
                              _g_free0 (_tmp54_);
                              if (_tmp55_) {
                                    _tmp51_ = TRUE;
                              } else {
                                    ValaTypeSymbol* _tmp56_ = NULL;
                                    gchar* _tmp57_ = NULL;
                                    gchar* _tmp58_;
                                    _tmp56_ = vala_data_type_get_data_type (datatype);
                                    _tmp57_ = vala_symbol_get_full_name ((ValaSymbol*) _tmp56_);
                                    _tmp58_ = _tmp57_;
                                    _tmp51_ = g_strcmp0 (_tmp58_, "GLib.UnixOutputStream") == 0;
                                    _g_free0 (_tmp58_);
                              }
                              if (_tmp51_) {
                                    _tmp50_ = TRUE;
                              } else {
                                    ValaTypeSymbol* _tmp59_ = NULL;
                                    gchar* _tmp60_ = NULL;
                                    gchar* _tmp61_;
                                    _tmp59_ = vala_data_type_get_data_type (datatype);
                                    _tmp60_ = vala_symbol_get_full_name ((ValaSymbol*) _tmp59_);
                                    _tmp61_ = _tmp60_;
                                    _tmp50_ = g_strcmp0 (_tmp61_, "GLib.Socket") == 0;
                                    _g_free0 (_tmp61_);
                              }
                              _tmp49_ = _tmp50_;
                        } else {
                              _tmp49_ = FALSE;
                        }
                        if (_tmp49_) {
                              gchar* _tmp62_;
                              _tmp62_ = g_strdup ("h");
                              result = _tmp62_;
                              _vala_iterable_unref0 (type_args);
                              _vala_code_node_unref0 (en);
                              _vala_code_node_unref0 (st);
                              _vala_code_node_unref0 (ccode);
                              _g_free0 (sig);
                              _vala_code_node_unref0 (array_type);
                              return result;
                        }
                        result = sig;
                        _vala_iterable_unref0 (type_args);
                        _vala_code_node_unref0 (en);
                        _vala_code_node_unref0 (st);
                        _vala_code_node_unref0 (ccode);
                        _vala_code_node_unref0 (array_type);
                        return result;
                  } else {
                        result = NULL;
                        _vala_code_node_unref0 (array_type);
                        return result;
                  }
            }
      }
      _vala_code_node_unref0 (array_type);
}


static void vala_gvariant_module_real_visit_enum (ValaCodeVisitor* base, ValaEnum* en) {
      ValaGVariantModule * self;
      gboolean _tmp0_;
      self = (ValaGVariantModule*) base;
      g_return_if_fail (en != NULL);
      VALA_CODE_VISITOR_CLASS (vala_gvariant_module_parent_class)->visit_enum ((ValaCodeVisitor*) VALA_GASYNC_MODULE (self), en);
      _tmp0_ = vala_gvariant_module_is_string_marshalled_enum ((ValaTypeSymbol*) en);
      if (_tmp0_) {
            ValaCCodeFunction* _tmp1_ = NULL;
            ValaCCodeFunction* _tmp2_;
            ValaCCodeFunction* _tmp3_ = NULL;
            ValaCCodeFunction* _tmp4_;
            vala_ccode_file_add_include (((ValaCCodeBaseModule*) self)->cfile, "string.h", FALSE);
            _tmp1_ = vala_gvariant_module_generate_enum_from_string_function (self, en);
            _tmp2_ = _tmp1_;
            vala_ccode_file_add_function (((ValaCCodeBaseModule*) self)->cfile, _tmp2_);
            _vala_ccode_node_unref0 (_tmp2_);
            _tmp3_ = vala_gvariant_module_generate_enum_to_string_function (self, en);
            _tmp4_ = _tmp3_;
            vala_ccode_file_add_function (((ValaCCodeBaseModule*) self)->cfile, _tmp4_);
            _vala_ccode_node_unref0 (_tmp4_);
      }
}


static gboolean vala_gvariant_module_real_generate_enum_declaration (ValaCCodeBaseModule* base, ValaEnum* en, ValaCCodeFile* decl_space) {
      ValaGVariantModule * self;
      gboolean result = FALSE;
      gboolean _tmp0_;
      self = (ValaGVariantModule*) base;
      g_return_val_if_fail (en != NULL, FALSE);
      g_return_val_if_fail (decl_space != NULL, FALSE);
      _tmp0_ = VALA_CCODE_BASE_MODULE_CLASS (vala_gvariant_module_parent_class)->generate_enum_declaration ((ValaCCodeBaseModule*) VALA_GASYNC_MODULE (self), en, decl_space);
      if (_tmp0_) {
            gboolean _tmp1_;
            _tmp1_ = vala_gvariant_module_is_string_marshalled_enum ((ValaTypeSymbol*) en);
            if (_tmp1_) {
                  ValaCCodeFunction* _tmp2_ = NULL;
                  ValaCCodeFunction* _tmp3_;
                  ValaCCodeFunction* _tmp4_ = NULL;
                  ValaCCodeFunction* _tmp5_;
                  _tmp2_ = vala_gvariant_module_generate_enum_from_string_function_declaration (self, en);
                  _tmp3_ = _tmp2_;
                  vala_ccode_file_add_function_declaration (decl_space, _tmp3_);
                  _vala_ccode_node_unref0 (_tmp3_);
                  _tmp4_ = vala_gvariant_module_generate_enum_to_string_function_declaration (self, en);
                  _tmp5_ = _tmp4_;
                  vala_ccode_file_add_function_declaration (decl_space, _tmp5_);
                  _vala_ccode_node_unref0 (_tmp5_);
            }
            result = TRUE;
            return result;
      }
      result = FALSE;
      return result;
}


static gpointer _vala_ccode_node_ref0 (gpointer self) {
      return self ? vala_ccode_node_ref (self) : NULL;
}


static ValaCCodeExpression* vala_gvariant_module_get_array_length (ValaGVariantModule* self, ValaCCodeExpression* expr, gint dim) {
      ValaCCodeExpression* result = NULL;
      ValaCCodeExpression* _tmp0_;
      ValaCCodeIdentifier* _tmp1_;
      ValaCCodeIdentifier* id;
      ValaCCodeExpression* _tmp2_;
      ValaCCodeMemberAccess* _tmp3_;
      ValaCCodeMemberAccess* ma;
      g_return_val_if_fail (self != NULL, NULL);
      g_return_val_if_fail (expr != NULL, NULL);
      _tmp0_ = expr;
      _tmp1_ = _vala_ccode_node_ref0 (VALA_IS_CCODE_IDENTIFIER (_tmp0_) ? ((ValaCCodeIdentifier*) _tmp0_) : NULL);
      id = _tmp1_;
      _tmp2_ = expr;
      _tmp3_ = _vala_ccode_node_ref0 (VALA_IS_CCODE_MEMBER_ACCESS (_tmp2_) ? ((ValaCCodeMemberAccess*) _tmp2_) : NULL);
      ma = _tmp3_;
      if (id != NULL) {
            const gchar* _tmp4_ = NULL;
            gchar* _tmp5_ = NULL;
            gchar* _tmp6_;
            ValaCCodeIdentifier* _tmp7_ = NULL;
            ValaCCodeExpression* _tmp8_;
            _tmp4_ = vala_ccode_identifier_get_name (id);
            _tmp5_ = g_strdup_printf ("%s_length%d", _tmp4_, dim);
            _tmp6_ = _tmp5_;
            _tmp7_ = vala_ccode_identifier_new (_tmp6_);
            _tmp8_ = (ValaCCodeExpression*) _tmp7_;
            _g_free0 (_tmp6_);
            result = _tmp8_;
            _vala_ccode_node_unref0 (ma);
            _vala_ccode_node_unref0 (id);
            return result;
      } else {
            if (ma != NULL) {
                  gboolean _tmp9_;
                  _tmp9_ = vala_ccode_member_access_get_is_pointer (ma);
                  if (_tmp9_) {
                        ValaCCodeExpression* _tmp10_ = NULL;
                        const gchar* _tmp11_ = NULL;
                        gchar* _tmp12_ = NULL;
                        gchar* _tmp13_;
                        ValaCCodeMemberAccess* _tmp14_ = NULL;
                        ValaCCodeExpression* _tmp15_;
                        _tmp10_ = vala_ccode_member_access_get_inner (ma);
                        _tmp11_ = vala_ccode_member_access_get_member_name (ma);
                        _tmp12_ = g_strdup_printf ("%s_length%d", _tmp11_, dim);
                        _tmp13_ = _tmp12_;
                        _tmp14_ = vala_ccode_member_access_new_pointer (_tmp10_, _tmp13_);
                        _tmp15_ = (ValaCCodeExpression*) _tmp14_;
                        _g_free0 (_tmp13_);
                        result = _tmp15_;
                        _vala_ccode_node_unref0 (ma);
                        _vala_ccode_node_unref0 (id);
                        return result;
                  } else {
                        ValaCCodeExpression* _tmp16_ = NULL;
                        const gchar* _tmp17_ = NULL;
                        gchar* _tmp18_ = NULL;
                        gchar* _tmp19_;
                        ValaCCodeMemberAccess* _tmp20_ = NULL;
                        ValaCCodeExpression* _tmp21_;
                        _tmp16_ = vala_ccode_member_access_get_inner (ma);
                        _tmp17_ = vala_ccode_member_access_get_member_name (ma);
                        _tmp18_ = g_strdup_printf ("%s_length%d", _tmp17_, dim);
                        _tmp19_ = _tmp18_;
                        _tmp20_ = vala_ccode_member_access_new (_tmp16_, _tmp19_, FALSE);
                        _tmp21_ = (ValaCCodeExpression*) _tmp20_;
                        _g_free0 (_tmp19_);
                        result = _tmp21_;
                        _vala_ccode_node_unref0 (ma);
                        _vala_ccode_node_unref0 (id);
                        return result;
                  }
            } else {
                  ValaCCodeIdentifier* _tmp22_ = NULL;
                  ValaCCodeIdentifier* _tmp23_;
                  ValaCCodeFunctionCall* _tmp24_ = NULL;
                  ValaCCodeFunctionCall* _tmp25_;
                  ValaCCodeFunctionCall* len_call;
                  _tmp22_ = vala_ccode_identifier_new ("g_strv_length");
                  _tmp23_ = _tmp22_;
                  _tmp24_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp23_);
                  _tmp25_ = _tmp24_;
                  _vala_ccode_node_unref0 (_tmp23_);
                  len_call = _tmp25_;
                  vala_ccode_function_call_add_argument (len_call, expr);
                  result = (ValaCCodeExpression*) len_call;
                  _vala_ccode_node_unref0 (ma);
                  _vala_ccode_node_unref0 (id);
                  return result;
            }
      }
      _vala_ccode_node_unref0 (ma);
      _vala_ccode_node_unref0 (id);
}


static ValaCCodeExpression* vala_gvariant_module_generate_enum_value_from_string (ValaGVariantModule* self, ValaEnumValueType* type, ValaCCodeExpression* expr, ValaCCodeExpression* error_expr) {
      ValaCCodeExpression* result = NULL;
      ValaTypeSymbol* _tmp0_ = NULL;
      ValaTypeSymbol* _tmp1_;
      ValaEnum* _tmp2_;
      ValaEnum* en;
      gchar* _tmp3_ = NULL;
      gchar* _tmp4_;
      gchar* _tmp5_ = NULL;
      gchar* _tmp6_;
      gchar* from_string_name;
      ValaCCodeIdentifier* _tmp7_ = NULL;
      ValaCCodeIdentifier* _tmp8_;
      ValaCCodeFunctionCall* _tmp9_ = NULL;
      ValaCCodeFunctionCall* _tmp10_;
      ValaCCodeFunctionCall* from_string_call;
      ValaCCodeExpression* _tmp11_ = NULL;
      g_return_val_if_fail (self != NULL, NULL);
      g_return_val_if_fail (type != NULL, NULL);
      _tmp0_ = vala_value_type_get_type_symbol ((ValaValueType*) type);
      _tmp1_ = _tmp0_;
      _tmp2_ = _vala_code_node_ref0 (VALA_IS_ENUM (_tmp1_) ? ((ValaEnum*) _tmp1_) : NULL);
      en = _tmp2_;
      _tmp3_ = vala_symbol_get_lower_case_cname ((ValaSymbol*) en, NULL);
      _tmp4_ = _tmp3_;
      _tmp5_ = g_strdup_printf ("%s_from_string", _tmp4_);
      _tmp6_ = _tmp5_;
      _g_free0 (_tmp4_);
      from_string_name = _tmp6_;
      _tmp7_ = vala_ccode_identifier_new (from_string_name);
      _tmp8_ = _tmp7_;
      _tmp9_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp8_);
      _tmp10_ = _tmp9_;
      _vala_ccode_node_unref0 (_tmp8_);
      from_string_call = _tmp10_;
      vala_ccode_function_call_add_argument (from_string_call, expr);
      if (error_expr != NULL) {
            ValaCCodeExpression* _tmp12_;
            _tmp12_ = _vala_ccode_node_ref0 (error_expr);
            _vala_ccode_node_unref0 (_tmp11_);
            _tmp11_ = _tmp12_;
      } else {
            ValaCCodeConstant* _tmp13_ = NULL;
            _tmp13_ = vala_ccode_constant_new ("NULL");
            _vala_ccode_node_unref0 (_tmp11_);
            _tmp11_ = (ValaCCodeExpression*) _tmp13_;
      }
      vala_ccode_function_call_add_argument (from_string_call, _tmp11_);
      result = (ValaCCodeExpression*) from_string_call;
      _vala_ccode_node_unref0 (_tmp11_);
      _g_free0 (from_string_name);
      _vala_code_node_unref0 (en);
      return result;
}


ValaCCodeFunction* vala_gvariant_module_generate_enum_from_string_function_declaration (ValaGVariantModule* self, ValaEnum* en) {
      ValaCCodeFunction* result = NULL;
      gchar* _tmp0_ = NULL;
      gchar* _tmp1_;
      gchar* _tmp2_ = NULL;
      gchar* _tmp3_;
      gchar* from_string_name;
      gchar* _tmp4_ = NULL;
      gchar* _tmp5_;
      ValaCCodeFunction* _tmp6_ = NULL;
      ValaCCodeFunction* _tmp7_;
      ValaCCodeFunction* from_string_func;
      ValaCCodeParameter* _tmp8_ = NULL;
      ValaCCodeParameter* _tmp9_;
      ValaCCodeParameter* _tmp10_ = NULL;
      ValaCCodeParameter* _tmp11_;
      g_return_val_if_fail (self != NULL, NULL);
      g_return_val_if_fail (en != NULL, NULL);
      _tmp0_ = vala_symbol_get_lower_case_cname ((ValaSymbol*) en, NULL);
      _tmp1_ = _tmp0_;
      _tmp2_ = g_strdup_printf ("%s_from_string", _tmp1_);
      _tmp3_ = _tmp2_;
      _g_free0 (_tmp1_);
      from_string_name = _tmp3_;
      _tmp4_ = vala_typesymbol_get_cname ((ValaTypeSymbol*) en, FALSE);
      _tmp5_ = _tmp4_;
      _tmp6_ = vala_ccode_function_new (from_string_name, _tmp5_);
      _tmp7_ = _tmp6_;
      _g_free0 (_tmp5_);
      from_string_func = _tmp7_;
      _tmp8_ = vala_ccode_parameter_new ("str", "const char*");
      _tmp9_ = _tmp8_;
      vala_ccode_function_add_parameter (from_string_func, _tmp9_);
      _vala_ccode_node_unref0 (_tmp9_);
      _tmp10_ = vala_ccode_parameter_new ("error", "GError**");
      _tmp11_ = _tmp10_;
      vala_ccode_function_add_parameter (from_string_func, _tmp11_);
      _vala_ccode_node_unref0 (_tmp11_);
      result = from_string_func;
      _g_free0 (from_string_name);
      return result;
}


ValaCCodeFunction* vala_gvariant_module_generate_enum_from_string_function (ValaGVariantModule* self, ValaEnum* en) {
      ValaCCodeFunction* result = NULL;
      gchar* _tmp0_ = NULL;
      gchar* _tmp1_;
      gchar* _tmp2_ = NULL;
      gchar* _tmp3_;
      gchar* from_string_name;
      gchar* _tmp4_ = NULL;
      gchar* _tmp5_;
      ValaCCodeFunction* _tmp6_ = NULL;
      ValaCCodeFunction* _tmp7_;
      ValaCCodeFunction* from_string_func;
      ValaCCodeParameter* _tmp8_ = NULL;
      ValaCCodeParameter* _tmp9_;
      ValaCCodeParameter* _tmp10_ = NULL;
      ValaCCodeParameter* _tmp11_;
      ValaCCodeFunction* _tmp12_ = NULL;
      gchar* _tmp13_ = NULL;
      gchar* _tmp14_;
      ValaCCodeConstant* _tmp15_ = NULL;
      ValaCCodeConstant* _tmp16_;
      ValaCCodeVariableDeclarator* _tmp17_ = NULL;
      ValaCCodeVariableDeclarator* _tmp18_;
      gboolean firstif;
      ValaCCodeFunction* _tmp47_ = NULL;
      ValaCCodeIdentifier* _tmp48_ = NULL;
      ValaCCodeIdentifier* _tmp49_;
      ValaCCodeFunctionCall* _tmp50_ = NULL;
      ValaCCodeFunctionCall* _tmp51_;
      ValaCCodeFunctionCall* set_error;
      ValaCCodeIdentifier* _tmp52_ = NULL;
      ValaCCodeIdentifier* _tmp53_;
      ValaCCodeIdentifier* _tmp54_ = NULL;
      ValaCCodeIdentifier* _tmp55_;
      ValaCCodeIdentifier* _tmp56_ = NULL;
      ValaCCodeIdentifier* _tmp57_;
      gchar* _tmp58_ = NULL;
      gchar* _tmp59_;
      gchar* _tmp60_ = NULL;
      gchar* _tmp61_;
      ValaCCodeConstant* _tmp62_ = NULL;
      ValaCCodeConstant* _tmp63_;
      ValaCCodeFunction* _tmp64_ = NULL;
      ValaCCodeFunction* _tmp65_ = NULL;
      ValaCCodeFunction* _tmp66_ = NULL;
      ValaCCodeIdentifier* _tmp67_ = NULL;
      ValaCCodeIdentifier* _tmp68_;
      g_return_val_if_fail (self != NULL, NULL);
      g_return_val_if_fail (en != NULL, NULL);
      _tmp0_ = vala_symbol_get_lower_case_cname ((ValaSymbol*) en, NULL);
      _tmp1_ = _tmp0_;
      _tmp2_ = g_strdup_printf ("%s_from_string", _tmp1_);
      _tmp3_ = _tmp2_;
      _g_free0 (_tmp1_);
      from_string_name = _tmp3_;
      _tmp4_ = vala_typesymbol_get_cname ((ValaTypeSymbol*) en, FALSE);
      _tmp5_ = _tmp4_;
      _tmp6_ = vala_ccode_function_new (from_string_name, _tmp5_);
      _tmp7_ = _tmp6_;
      _g_free0 (_tmp5_);
      from_string_func = _tmp7_;
      _tmp8_ = vala_ccode_parameter_new ("str", "const char*");
      _tmp9_ = _tmp8_;
      vala_ccode_function_add_parameter (from_string_func, _tmp9_);
      _vala_ccode_node_unref0 (_tmp9_);
      _tmp10_ = vala_ccode_parameter_new ("error", "GError**");
      _tmp11_ = _tmp10_;
      vala_ccode_function_add_parameter (from_string_func, _tmp11_);
      _vala_ccode_node_unref0 (_tmp11_);
      vala_ccode_base_module_push_function ((ValaCCodeBaseModule*) self, from_string_func);
      _tmp12_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp13_ = vala_typesymbol_get_cname ((ValaTypeSymbol*) en, FALSE);
      _tmp14_ = _tmp13_;
      _tmp15_ = vala_ccode_constant_new ("0");
      _tmp16_ = _tmp15_;
      _tmp17_ = vala_ccode_variable_declarator_new_zero ("value", (ValaCCodeExpression*) _tmp16_, NULL);
      _tmp18_ = _tmp17_;
      vala_ccode_function_add_declaration (_tmp12_, _tmp14_, (ValaCCodeDeclarator*) _tmp18_, 0);
      _vala_ccode_node_unref0 (_tmp18_);
      _vala_ccode_node_unref0 (_tmp16_);
      _g_free0 (_tmp14_);
      firstif = TRUE;
      {
            ValaList* _tmp19_ = NULL;
            ValaList* _enum_value_list;
            gint _tmp20_;
            gint _enum_value_size;
            gint _enum_value_index;
            _tmp19_ = vala_enum_get_values (en);
            _enum_value_list = _tmp19_;
            _tmp20_ = vala_collection_get_size ((ValaCollection*) _enum_value_list);
            _enum_value_size = _tmp20_;
            _enum_value_index = -1;
            while (TRUE) {
                  gpointer _tmp21_ = NULL;
                  ValaEnumValue* enum_value;
                  const gchar* _tmp22_ = NULL;
                  gchar* _tmp23_ = NULL;
                  gchar* dbus_value;
                  ValaCCodeIdentifier* _tmp24_ = NULL;
                  ValaCCodeIdentifier* _tmp25_;
                  ValaCCodeFunctionCall* _tmp26_ = NULL;
                  ValaCCodeFunctionCall* _tmp27_;
                  ValaCCodeFunctionCall* string_comparison;
                  ValaCCodeIdentifier* _tmp28_ = NULL;
                  ValaCCodeIdentifier* _tmp29_;
                  gchar* _tmp30_ = NULL;
                  gchar* _tmp31_;
                  ValaCCodeConstant* _tmp32_ = NULL;
                  ValaCCodeConstant* _tmp33_;
                  ValaCCodeConstant* _tmp34_ = NULL;
                  ValaCCodeConstant* _tmp35_;
                  ValaCCodeBinaryExpression* _tmp36_ = NULL;
                  ValaCCodeBinaryExpression* _tmp37_;
                  ValaCCodeBinaryExpression* cond;
                  ValaCCodeFunction* _tmp40_ = NULL;
                  ValaCCodeIdentifier* _tmp41_ = NULL;
                  ValaCCodeIdentifier* _tmp42_;
                  gchar* _tmp43_ = NULL;
                  gchar* _tmp44_;
                  ValaCCodeIdentifier* _tmp45_ = NULL;
                  ValaCCodeIdentifier* _tmp46_;
                  _enum_value_index = _enum_value_index + 1;
                  if (!(_enum_value_index < _enum_value_size)) {
                        break;
                  }
                  _tmp21_ = vala_list_get (_enum_value_list, _enum_value_index);
                  enum_value = (ValaEnumValue*) _tmp21_;
                  _tmp22_ = vala_symbol_get_name ((ValaSymbol*) enum_value);
                  _tmp23_ = vala_gvariant_module_get_dbus_value (self, enum_value, _tmp22_);
                  dbus_value = _tmp23_;
                  _tmp24_ = vala_ccode_identifier_new ("strcmp");
                  _tmp25_ = _tmp24_;
                  _tmp26_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp25_);
                  _tmp27_ = _tmp26_;
                  _vala_ccode_node_unref0 (_tmp25_);
                  string_comparison = _tmp27_;
                  _tmp28_ = vala_ccode_identifier_new ("str");
                  _tmp29_ = _tmp28_;
                  vala_ccode_function_call_add_argument (string_comparison, (ValaCCodeExpression*) _tmp29_);
                  _vala_ccode_node_unref0 (_tmp29_);
                  _tmp30_ = g_strdup_printf ("\"%s\"", dbus_value);
                  _tmp31_ = _tmp30_;
                  _tmp32_ = vala_ccode_constant_new (_tmp31_);
                  _tmp33_ = _tmp32_;
                  vala_ccode_function_call_add_argument (string_comparison, (ValaCCodeExpression*) _tmp33_);
                  _vala_ccode_node_unref0 (_tmp33_);
                  _g_free0 (_tmp31_);
                  _tmp34_ = vala_ccode_constant_new ("0");
                  _tmp35_ = _tmp34_;
                  _tmp36_ = vala_ccode_binary_expression_new (VALA_CCODE_BINARY_OPERATOR_EQUALITY, (ValaCCodeExpression*) string_comparison, (ValaCCodeExpression*) _tmp35_);
                  _tmp37_ = _tmp36_;
                  _vala_ccode_node_unref0 (_tmp35_);
                  cond = _tmp37_;
                  if (firstif) {
                        ValaCCodeFunction* _tmp38_ = NULL;
                        _tmp38_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
                        vala_ccode_function_open_if (_tmp38_, (ValaCCodeExpression*) cond);
                        firstif = FALSE;
                  } else {
                        ValaCCodeFunction* _tmp39_ = NULL;
                        _tmp39_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
                        vala_ccode_function_else_if (_tmp39_, (ValaCCodeExpression*) cond);
                  }
                  _tmp40_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
                  _tmp41_ = vala_ccode_identifier_new ("value");
                  _tmp42_ = _tmp41_;
                  _tmp43_ = vala_constant_get_cname ((ValaConstant*) enum_value);
                  _tmp44_ = _tmp43_;
                  _tmp45_ = vala_ccode_identifier_new (_tmp44_);
                  _tmp46_ = _tmp45_;
                  vala_ccode_function_add_assignment (_tmp40_, (ValaCCodeExpression*) _tmp42_, (ValaCCodeExpression*) _tmp46_);
                  _vala_ccode_node_unref0 (_tmp46_);
                  _g_free0 (_tmp44_);
                  _vala_ccode_node_unref0 (_tmp42_);
                  _vala_ccode_node_unref0 (cond);
                  _vala_ccode_node_unref0 (string_comparison);
                  _g_free0 (dbus_value);
                  _vala_code_node_unref0 (enum_value);
            }
            _vala_iterable_unref0 (_enum_value_list);
      }
      _tmp47_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      vala_ccode_function_add_else (_tmp47_);
      _tmp48_ = vala_ccode_identifier_new ("g_set_error");
      _tmp49_ = _tmp48_;
      _tmp50_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp49_);
      _tmp51_ = _tmp50_;
      _vala_ccode_node_unref0 (_tmp49_);
      set_error = _tmp51_;
      _tmp52_ = vala_ccode_identifier_new ("error");
      _tmp53_ = _tmp52_;
      vala_ccode_function_call_add_argument (set_error, (ValaCCodeExpression*) _tmp53_);
      _vala_ccode_node_unref0 (_tmp53_);
      _tmp54_ = vala_ccode_identifier_new ("G_DBUS_ERROR");
      _tmp55_ = _tmp54_;
      vala_ccode_function_call_add_argument (set_error, (ValaCCodeExpression*) _tmp55_);
      _vala_ccode_node_unref0 (_tmp55_);
      _tmp56_ = vala_ccode_identifier_new ("G_DBUS_ERROR_INVALID_ARGS");
      _tmp57_ = _tmp56_;
      vala_ccode_function_call_add_argument (set_error, (ValaCCodeExpression*) _tmp57_);
      _vala_ccode_node_unref0 (_tmp57_);
      _tmp58_ = vala_typesymbol_get_cname ((ValaTypeSymbol*) en, FALSE);
      _tmp59_ = _tmp58_;
      _tmp60_ = g_strdup_printf ("\"Invalid value for enum `%s'\"", _tmp59_);
      _tmp61_ = _tmp60_;
      _tmp62_ = vala_ccode_constant_new (_tmp61_);
      _tmp63_ = _tmp62_;
      vala_ccode_function_call_add_argument (set_error, (ValaCCodeExpression*) _tmp63_);
      _vala_ccode_node_unref0 (_tmp63_);
      _g_free0 (_tmp61_);
      _g_free0 (_tmp59_);
      _tmp64_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      vala_ccode_function_add_expression (_tmp64_, (ValaCCodeExpression*) set_error);
      _tmp65_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      vala_ccode_function_close (_tmp65_);
      _tmp66_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp67_ = vala_ccode_identifier_new ("value");
      _tmp68_ = _tmp67_;
      vala_ccode_function_add_return (_tmp66_, (ValaCCodeExpression*) _tmp68_);
      _vala_ccode_node_unref0 (_tmp68_);
      vala_ccode_base_module_pop_function ((ValaCCodeBaseModule*) self);
      result = from_string_func;
      _vala_ccode_node_unref0 (set_error);
      _g_free0 (from_string_name);
      return result;
}


static ValaCCodeExpression* vala_gvariant_module_deserialize_basic (ValaGVariantModule* self, ValaGVariantModuleBasicTypeInfo* basic_type, ValaCCodeExpression* variant_expr, gboolean transfer) {
      ValaCCodeExpression* result = NULL;
      gchar* _tmp0_;
      gchar* _tmp1_;
      ValaCCodeIdentifier* _tmp2_ = NULL;
      ValaCCodeIdentifier* _tmp3_;
      ValaCCodeFunctionCall* _tmp4_ = NULL;
      ValaCCodeFunctionCall* _tmp5_;
      ValaCCodeFunctionCall* get_call;
      g_return_val_if_fail (self != NULL, NULL);
      g_return_val_if_fail (variant_expr != NULL, NULL);
      _tmp0_ = g_strconcat ("g_variant_get_", (*basic_type).type_name, NULL);
      _tmp1_ = _tmp0_;
      _tmp2_ = vala_ccode_identifier_new (_tmp1_);
      _tmp3_ = _tmp2_;
      _tmp4_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp3_);
      _tmp5_ = _tmp4_;
      _vala_ccode_node_unref0 (_tmp3_);
      _g_free0 (_tmp1_);
      get_call = _tmp5_;
      vala_ccode_function_call_add_argument (get_call, variant_expr);
      if ((*basic_type).is_string) {
            ValaCCodeConstant* _tmp10_ = NULL;
            ValaCCodeConstant* _tmp11_;
            if (transfer) {
                  ValaCCodeIdentifier* _tmp6_ = NULL;
                  ValaCCodeIdentifier* _tmp7_;
                  _tmp6_ = vala_ccode_identifier_new ("g_variant_get_string");
                  _tmp7_ = _tmp6_;
                  vala_ccode_function_call_set_call (get_call, (ValaCCodeExpression*) _tmp7_);
                  _vala_ccode_node_unref0 (_tmp7_);
            } else {
                  ValaCCodeIdentifier* _tmp8_ = NULL;
                  ValaCCodeIdentifier* _tmp9_;
                  _tmp8_ = vala_ccode_identifier_new ("g_variant_dup_string");
                  _tmp9_ = _tmp8_;
                  vala_ccode_function_call_set_call (get_call, (ValaCCodeExpression*) _tmp9_);
                  _vala_ccode_node_unref0 (_tmp9_);
            }
            _tmp10_ = vala_ccode_constant_new ("NULL");
            _tmp11_ = _tmp10_;
            vala_ccode_function_call_add_argument (get_call, (ValaCCodeExpression*) _tmp11_);
            _vala_ccode_node_unref0 (_tmp11_);
      }
      result = (ValaCCodeExpression*) get_call;
      return result;
}


static ValaCCodeExpression* vala_gvariant_module_deserialize_array (ValaGVariantModule* self, ValaArrayType* array_type, ValaCCodeExpression* variant_expr, ValaCCodeExpression* expr) {
      ValaCCodeExpression* result = NULL;
      gint _tmp0_;
      gint _tmp1_;
      gchar* _tmp2_ = NULL;
      gchar* temp_name;
      ValaCCodeIdentifier* _tmp3_ = NULL;
      ValaCCodeIdentifier* _tmp4_;
      ValaCCodeFunctionCall* _tmp5_ = NULL;
      ValaCCodeFunctionCall* _tmp6_;
      ValaCCodeFunctionCall* new_call;
      ValaDataType* _tmp7_ = NULL;
      gchar* _tmp8_ = NULL;
      gchar* _tmp9_;
      ValaCCodeIdentifier* _tmp10_ = NULL;
      ValaCCodeIdentifier* _tmp11_;
      ValaCCodeConstant* _tmp12_ = NULL;
      ValaCCodeConstant* _tmp13_;
      ValaCCodeFunction* _tmp14_ = NULL;
      gchar* _tmp15_ = NULL;
      gchar* _tmp16_;
      ValaCCodeVariableDeclarator* _tmp17_ = NULL;
      ValaCCodeVariableDeclarator* _tmp18_;
      ValaCCodeFunction* _tmp19_ = NULL;
      gchar* _tmp20_;
      gchar* _tmp21_;
      ValaCCodeConstant* _tmp22_ = NULL;
      ValaCCodeConstant* _tmp23_;
      ValaCCodeVariableDeclarator* _tmp24_ = NULL;
      ValaCCodeVariableDeclarator* _tmp25_;
      ValaCCodeFunction* _tmp26_ = NULL;
      gchar* _tmp27_;
      gchar* _tmp28_;
      ValaCCodeConstant* _tmp29_ = NULL;
      ValaCCodeConstant* _tmp30_;
      ValaCCodeVariableDeclarator* _tmp31_ = NULL;
      ValaCCodeVariableDeclarator* _tmp32_;
      ValaDataType* _tmp33_ = NULL;
      gboolean _tmp34_;
      ValaCCodeIdentifier* _tmp46_ = NULL;
      g_return_val_if_fail (self != NULL, NULL);
      g_return_val_if_fail (array_type != NULL, NULL);
      g_return_val_if_fail (variant_expr != NULL, NULL);
      _tmp0_ = vala_ccode_base_module_get_next_temp_var_id ((ValaCCodeBaseModule*) self);
      _tmp1_ = _tmp0_;
      vala_ccode_base_module_set_next_temp_var_id ((ValaCCodeBaseModule*) self, _tmp1_ + 1);
      _tmp2_ = g_strdup_printf ("_tmp%d_", _tmp1_);
      temp_name = _tmp2_;
      _tmp3_ = vala_ccode_identifier_new ("g_new");
      _tmp4_ = _tmp3_;
      _tmp5_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp4_);
      _tmp6_ = _tmp5_;
      _vala_ccode_node_unref0 (_tmp4_);
      new_call = _tmp6_;
      _tmp7_ = vala_array_type_get_element_type (array_type);
      _tmp8_ = vala_data_type_get_cname (_tmp7_);
      _tmp9_ = _tmp8_;
      _tmp10_ = vala_ccode_identifier_new (_tmp9_);
      _tmp11_ = _tmp10_;
      vala_ccode_function_call_add_argument (new_call, (ValaCCodeExpression*) _tmp11_);
      _vala_ccode_node_unref0 (_tmp11_);
      _g_free0 (_tmp9_);
      _tmp12_ = vala_ccode_constant_new ("5");
      _tmp13_ = _tmp12_;
      vala_ccode_function_call_add_argument (new_call, (ValaCCodeExpression*) _tmp13_);
      _vala_ccode_node_unref0 (_tmp13_);
      _tmp14_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp15_ = vala_data_type_get_cname ((ValaDataType*) array_type);
      _tmp16_ = _tmp15_;
      _tmp17_ = vala_ccode_variable_declarator_new (temp_name, (ValaCCodeExpression*) new_call, NULL);
      _tmp18_ = _tmp17_;
      vala_ccode_function_add_declaration (_tmp14_, _tmp16_, (ValaCCodeDeclarator*) _tmp18_, 0);
      _vala_ccode_node_unref0 (_tmp18_);
      _g_free0 (_tmp16_);
      _tmp19_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp20_ = g_strconcat (temp_name, "_length", NULL);
      _tmp21_ = _tmp20_;
      _tmp22_ = vala_ccode_constant_new ("0");
      _tmp23_ = _tmp22_;
      _tmp24_ = vala_ccode_variable_declarator_new (_tmp21_, (ValaCCodeExpression*) _tmp23_, NULL);
      _tmp25_ = _tmp24_;
      vala_ccode_function_add_declaration (_tmp19_, "int", (ValaCCodeDeclarator*) _tmp25_, 0);
      _vala_ccode_node_unref0 (_tmp25_);
      _vala_ccode_node_unref0 (_tmp23_);
      _g_free0 (_tmp21_);
      _tmp26_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp27_ = g_strconcat (temp_name, "_size", NULL);
      _tmp28_ = _tmp27_;
      _tmp29_ = vala_ccode_constant_new ("4");
      _tmp30_ = _tmp29_;
      _tmp31_ = vala_ccode_variable_declarator_new (_tmp28_, (ValaCCodeExpression*) _tmp30_, NULL);
      _tmp32_ = _tmp31_;
      vala_ccode_function_add_declaration (_tmp26_, "int", (ValaCCodeDeclarator*) _tmp32_, 0);
      _vala_ccode_node_unref0 (_tmp32_);
      _vala_ccode_node_unref0 (_tmp30_);
      _g_free0 (_tmp28_);
      vala_gvariant_module_deserialize_array_dim (self, array_type, 1, temp_name, variant_expr, expr);
      _tmp33_ = vala_array_type_get_element_type (array_type);
      _tmp34_ = vala_data_type_is_reference_type_or_type_parameter (_tmp33_);
      if (_tmp34_) {
            gchar* _tmp35_;
            gchar* _tmp36_;
            ValaCCodeIdentifier* _tmp37_ = NULL;
            ValaCCodeIdentifier* _tmp38_;
            ValaCCodeIdentifier* length;
            ValaCCodeIdentifier* _tmp39_ = NULL;
            ValaCCodeIdentifier* _tmp40_;
            ValaCCodeElementAccess* _tmp41_ = NULL;
            ValaCCodeElementAccess* _tmp42_;
            ValaCCodeElementAccess* element_access;
            ValaCCodeFunction* _tmp43_ = NULL;
            ValaCCodeIdentifier* _tmp44_ = NULL;
            ValaCCodeIdentifier* _tmp45_;
            _tmp35_ = g_strconcat (temp_name, "_length", NULL);
            _tmp36_ = _tmp35_;
            _tmp37_ = vala_ccode_identifier_new (_tmp36_);
            _tmp38_ = _tmp37_;
            _g_free0 (_tmp36_);
            length = _tmp38_;
            _tmp39_ = vala_ccode_identifier_new (temp_name);
            _tmp40_ = _tmp39_;
            _tmp41_ = vala_ccode_element_access_new ((ValaCCodeExpression*) _tmp40_, (ValaCCodeExpression*) length);
            _tmp42_ = _tmp41_;
            _vala_ccode_node_unref0 (_tmp40_);
            element_access = _tmp42_;
            _tmp43_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
            _tmp44_ = vala_ccode_identifier_new ("NULL");
            _tmp45_ = _tmp44_;
            vala_ccode_function_add_assignment (_tmp43_, (ValaCCodeExpression*) element_access, (ValaCCodeExpression*) _tmp45_);
            _vala_ccode_node_unref0 (_tmp45_);
            _vala_ccode_node_unref0 (element_access);
            _vala_ccode_node_unref0 (length);
      }
      _tmp46_ = vala_ccode_identifier_new (temp_name);
      result = (ValaCCodeExpression*) _tmp46_;
      _vala_ccode_node_unref0 (new_call);
      _g_free0 (temp_name);
      return result;
}


static void vala_gvariant_module_deserialize_array_dim (ValaGVariantModule* self, ValaArrayType* array_type, gint dim, const gchar* temp_name, ValaCCodeExpression* variant_expr, ValaCCodeExpression* expr) {
      gint _tmp0_;
      gint _tmp1_;
      gchar* _tmp2_ = NULL;
      gchar* subiter_name;
      gint _tmp3_;
      gint _tmp4_;
      gchar* _tmp5_ = NULL;
      gchar* element_name;
      ValaCCodeFunction* _tmp6_ = NULL;
      gchar* _tmp7_ = NULL;
      gchar* _tmp8_;
      ValaCCodeConstant* _tmp9_ = NULL;
      ValaCCodeConstant* _tmp10_;
      ValaCCodeVariableDeclarator* _tmp11_ = NULL;
      ValaCCodeVariableDeclarator* _tmp12_;
      ValaCCodeFunction* _tmp13_ = NULL;
      ValaCCodeVariableDeclarator* _tmp14_ = NULL;
      ValaCCodeVariableDeclarator* _tmp15_;
      ValaCCodeFunction* _tmp16_ = NULL;
      ValaCCodeVariableDeclarator* _tmp17_ = NULL;
      ValaCCodeVariableDeclarator* _tmp18_;
      ValaCCodeIdentifier* _tmp19_ = NULL;
      ValaCCodeIdentifier* _tmp20_;
      ValaCCodeFunctionCall* _tmp21_ = NULL;
      ValaCCodeFunctionCall* _tmp22_;
      ValaCCodeFunctionCall* iter_call;
      ValaCCodeIdentifier* _tmp23_ = NULL;
      ValaCCodeIdentifier* _tmp24_;
      ValaCCodeUnaryExpression* _tmp25_ = NULL;
      ValaCCodeUnaryExpression* _tmp26_;
      ValaCCodeFunction* _tmp27_ = NULL;
      ValaCCodeIdentifier* _tmp28_ = NULL;
      ValaCCodeIdentifier* _tmp29_;
      ValaCCodeFunctionCall* _tmp30_ = NULL;
      ValaCCodeIdentifier* _tmp31_ = NULL;
      ValaCCodeIdentifier* _tmp32_;
      ValaCCodeUnaryExpression* _tmp33_ = NULL;
      ValaCCodeUnaryExpression* _tmp34_;
      ValaCCodeIdentifier* _tmp35_ = NULL;
      ValaCCodeIdentifier* _tmp36_;
      ValaCCodeAssignment* _tmp37_ = NULL;
      ValaCCodeAssignment* _tmp38_;
      ValaCCodeConstant* _tmp39_ = NULL;
      ValaCCodeConstant* _tmp40_;
      ValaCCodeBinaryExpression* _tmp41_ = NULL;
      ValaCCodeBinaryExpression* _tmp42_;
      ValaCCodeBinaryExpression* cforcond;
      gchar* _tmp43_ = NULL;
      gchar* _tmp44_;
      ValaCCodeIdentifier* _tmp45_ = NULL;
      ValaCCodeIdentifier* _tmp46_;
      ValaCCodeUnaryExpression* _tmp47_ = NULL;
      ValaCCodeUnaryExpression* _tmp48_;
      ValaCCodeUnaryExpression* cforiter;
      ValaCCodeFunction* _tmp49_ = NULL;
      gint _tmp50_;
      ValaCCodeIdentifier* _tmp116_ = NULL;
      ValaCCodeIdentifier* _tmp117_;
      ValaCCodeFunctionCall* _tmp118_ = NULL;
      ValaCCodeFunctionCall* _tmp119_;
      ValaCCodeFunctionCall* unref;
      ValaCCodeIdentifier* _tmp120_ = NULL;
      ValaCCodeIdentifier* _tmp121_;
      ValaCCodeFunction* _tmp122_ = NULL;
      ValaCCodeFunction* _tmp123_ = NULL;
      g_return_if_fail (self != NULL);
      g_return_if_fail (array_type != NULL);
      g_return_if_fail (temp_name != NULL);
      g_return_if_fail (variant_expr != NULL);
      _tmp0_ = vala_ccode_base_module_get_next_temp_var_id ((ValaCCodeBaseModule*) self);
      _tmp1_ = _tmp0_;
      vala_ccode_base_module_set_next_temp_var_id ((ValaCCodeBaseModule*) self, _tmp1_ + 1);
      _tmp2_ = g_strdup_printf ("_tmp%d_", _tmp1_);
      subiter_name = _tmp2_;
      _tmp3_ = vala_ccode_base_module_get_next_temp_var_id ((ValaCCodeBaseModule*) self);
      _tmp4_ = _tmp3_;
      vala_ccode_base_module_set_next_temp_var_id ((ValaCCodeBaseModule*) self, _tmp4_ + 1);
      _tmp5_ = g_strdup_printf ("_tmp%d_", _tmp4_);
      element_name = _tmp5_;
      _tmp6_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp7_ = g_strdup_printf ("%s_length%d", temp_name, dim);
      _tmp8_ = _tmp7_;
      _tmp9_ = vala_ccode_constant_new ("0");
      _tmp10_ = _tmp9_;
      _tmp11_ = vala_ccode_variable_declarator_new (_tmp8_, (ValaCCodeExpression*) _tmp10_, NULL);
      _tmp12_ = _tmp11_;
      vala_ccode_function_add_declaration (_tmp6_, "int", (ValaCCodeDeclarator*) _tmp12_, 0);
      _vala_ccode_node_unref0 (_tmp12_);
      _vala_ccode_node_unref0 (_tmp10_);
      _g_free0 (_tmp8_);
      _tmp13_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp14_ = vala_ccode_variable_declarator_new (subiter_name, NULL, NULL);
      _tmp15_ = _tmp14_;
      vala_ccode_function_add_declaration (_tmp13_, "GVariantIter", (ValaCCodeDeclarator*) _tmp15_, 0);
      _vala_ccode_node_unref0 (_tmp15_);
      _tmp16_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp17_ = vala_ccode_variable_declarator_new (element_name, NULL, NULL);
      _tmp18_ = _tmp17_;
      vala_ccode_function_add_declaration (_tmp16_, "GVariant*", (ValaCCodeDeclarator*) _tmp18_, 0);
      _vala_ccode_node_unref0 (_tmp18_);
      _tmp19_ = vala_ccode_identifier_new ("g_variant_iter_init");
      _tmp20_ = _tmp19_;
      _tmp21_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp20_);
      _tmp22_ = _tmp21_;
      _vala_ccode_node_unref0 (_tmp20_);
      iter_call = _tmp22_;
      _tmp23_ = vala_ccode_identifier_new (subiter_name);
      _tmp24_ = _tmp23_;
      _tmp25_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp24_);
      _tmp26_ = _tmp25_;
      vala_ccode_function_call_add_argument (iter_call, (ValaCCodeExpression*) _tmp26_);
      _vala_ccode_node_unref0 (_tmp26_);
      _vala_ccode_node_unref0 (_tmp24_);
      vala_ccode_function_call_add_argument (iter_call, variant_expr);
      _tmp27_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      vala_ccode_function_add_expression (_tmp27_, (ValaCCodeExpression*) iter_call);
      _tmp28_ = vala_ccode_identifier_new ("g_variant_iter_next_value");
      _tmp29_ = _tmp28_;
      _tmp30_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp29_);
      _vala_ccode_node_unref0 (iter_call);
      iter_call = _tmp30_;
      _vala_ccode_node_unref0 (_tmp29_);
      _tmp31_ = vala_ccode_identifier_new (subiter_name);
      _tmp32_ = _tmp31_;
      _tmp33_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp32_);
      _tmp34_ = _tmp33_;
      vala_ccode_function_call_add_argument (iter_call, (ValaCCodeExpression*) _tmp34_);
      _vala_ccode_node_unref0 (_tmp34_);
      _vala_ccode_node_unref0 (_tmp32_);
      _tmp35_ = vala_ccode_identifier_new (element_name);
      _tmp36_ = _tmp35_;
      _tmp37_ = vala_ccode_assignment_new ((ValaCCodeExpression*) _tmp36_, (ValaCCodeExpression*) iter_call, VALA_CCODE_ASSIGNMENT_OPERATOR_SIMPLE);
      _tmp38_ = _tmp37_;
      _tmp39_ = vala_ccode_constant_new ("NULL");
      _tmp40_ = _tmp39_;
      _tmp41_ = vala_ccode_binary_expression_new (VALA_CCODE_BINARY_OPERATOR_INEQUALITY, (ValaCCodeExpression*) _tmp38_, (ValaCCodeExpression*) _tmp40_);
      _tmp42_ = _tmp41_;
      _vala_ccode_node_unref0 (_tmp40_);
      _vala_ccode_node_unref0 (_tmp38_);
      _vala_ccode_node_unref0 (_tmp36_);
      cforcond = _tmp42_;
      _tmp43_ = g_strdup_printf ("%s_length%d", temp_name, dim);
      _tmp44_ = _tmp43_;
      _tmp45_ = vala_ccode_identifier_new (_tmp44_);
      _tmp46_ = _tmp45_;
      _tmp47_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_POSTFIX_INCREMENT, (ValaCCodeExpression*) _tmp46_);
      _tmp48_ = _tmp47_;
      _vala_ccode_node_unref0 (_tmp46_);
      _g_free0 (_tmp44_);
      cforiter = _tmp48_;
      _tmp49_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      vala_ccode_function_open_for (_tmp49_, NULL, (ValaCCodeExpression*) cforcond, (ValaCCodeExpression*) cforiter);
      _tmp50_ = vala_array_type_get_rank (array_type);
      if (dim < _tmp50_) {
            ValaCCodeIdentifier* _tmp51_ = NULL;
            ValaCCodeIdentifier* _tmp52_;
            _tmp51_ = vala_ccode_identifier_new (element_name);
            _tmp52_ = _tmp51_;
            vala_gvariant_module_deserialize_array_dim (self, array_type, dim + 1, temp_name, (ValaCCodeExpression*) _tmp52_, expr);
            _vala_ccode_node_unref0 (_tmp52_);
      } else {
            gchar* _tmp53_;
            gchar* _tmp54_;
            ValaCCodeIdentifier* _tmp55_ = NULL;
            ValaCCodeIdentifier* _tmp56_;
            gchar* _tmp57_;
            gchar* _tmp58_;
            ValaCCodeIdentifier* _tmp59_ = NULL;
            ValaCCodeIdentifier* _tmp60_;
            ValaCCodeBinaryExpression* _tmp61_ = NULL;
            ValaCCodeBinaryExpression* _tmp62_;
            ValaCCodeBinaryExpression* size_check;
            ValaCCodeFunction* _tmp63_ = NULL;
            ValaCCodeConstant* _tmp64_ = NULL;
            ValaCCodeConstant* _tmp65_;
            gchar* _tmp66_;
            gchar* _tmp67_;
            ValaCCodeIdentifier* _tmp68_ = NULL;
            ValaCCodeIdentifier* _tmp69_;
            ValaCCodeBinaryExpression* _tmp70_ = NULL;
            ValaCCodeBinaryExpression* _tmp71_;
            ValaCCodeBinaryExpression* new_size;
            ValaCCodeFunction* _tmp72_ = NULL;
            gchar* _tmp73_;
            gchar* _tmp74_;
            ValaCCodeIdentifier* _tmp75_ = NULL;
            ValaCCodeIdentifier* _tmp76_;
            ValaCCodeIdentifier* _tmp77_ = NULL;
            ValaCCodeIdentifier* _tmp78_;
            ValaCCodeFunctionCall* _tmp79_ = NULL;
            ValaCCodeFunctionCall* _tmp80_;
            ValaCCodeFunctionCall* renew_call;
            ValaDataType* _tmp81_ = NULL;
            gchar* _tmp82_ = NULL;
            gchar* _tmp83_;
            ValaCCodeIdentifier* _tmp84_ = NULL;
            ValaCCodeIdentifier* _tmp85_;
            ValaCCodeIdentifier* _tmp86_ = NULL;
            ValaCCodeIdentifier* _tmp87_;
            gchar* _tmp88_;
            gchar* _tmp89_;
            ValaCCodeIdentifier* _tmp90_ = NULL;
            ValaCCodeIdentifier* _tmp91_;
            ValaCCodeConstant* _tmp92_ = NULL;
            ValaCCodeConstant* _tmp93_;
            ValaCCodeBinaryExpression* _tmp94_ = NULL;
            ValaCCodeBinaryExpression* _tmp95_;
            ValaCCodeFunction* _tmp96_ = NULL;
            ValaCCodeIdentifier* _tmp97_ = NULL;
            ValaCCodeIdentifier* _tmp98_;
            ValaCCodeFunction* _tmp99_ = NULL;
            ValaCCodeIdentifier* _tmp100_ = NULL;
            ValaCCodeIdentifier* _tmp101_;
            gchar* _tmp102_;
            gchar* _tmp103_;
            ValaCCodeIdentifier* _tmp104_ = NULL;
            ValaCCodeIdentifier* _tmp105_;
            ValaCCodeUnaryExpression* _tmp106_ = NULL;
            ValaCCodeUnaryExpression* _tmp107_;
            ValaCCodeElementAccess* _tmp108_ = NULL;
            ValaCCodeElementAccess* _tmp109_;
            ValaCCodeElementAccess* element_access;
            ValaDataType* _tmp110_ = NULL;
            ValaCCodeIdentifier* _tmp111_ = NULL;
            ValaCCodeIdentifier* _tmp112_;
            ValaCCodeExpression* _tmp113_ = NULL;
            ValaCCodeExpression* _tmp114_;
            ValaCCodeExpression* element_expr;
            ValaCCodeFunction* _tmp115_ = NULL;
            _tmp53_ = g_strconcat (temp_name, "_size", NULL);
            _tmp54_ = _tmp53_;
            _tmp55_ = vala_ccode_identifier_new (_tmp54_);
            _tmp56_ = _tmp55_;
            _tmp57_ = g_strconcat (temp_name, "_length", NULL);
            _tmp58_ = _tmp57_;
            _tmp59_ = vala_ccode_identifier_new (_tmp58_);
            _tmp60_ = _tmp59_;
            _tmp61_ = vala_ccode_binary_expression_new (VALA_CCODE_BINARY_OPERATOR_EQUALITY, (ValaCCodeExpression*) _tmp56_, (ValaCCodeExpression*) _tmp60_);
            _tmp62_ = _tmp61_;
            _vala_ccode_node_unref0 (_tmp60_);
            _g_free0 (_tmp58_);
            _vala_ccode_node_unref0 (_tmp56_);
            _g_free0 (_tmp54_);
            size_check = _tmp62_;
            _tmp63_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
            vala_ccode_function_open_if (_tmp63_, (ValaCCodeExpression*) size_check);
            _tmp64_ = vala_ccode_constant_new ("2");
            _tmp65_ = _tmp64_;
            _tmp66_ = g_strconcat (temp_name, "_size", NULL);
            _tmp67_ = _tmp66_;
            _tmp68_ = vala_ccode_identifier_new (_tmp67_);
            _tmp69_ = _tmp68_;
            _tmp70_ = vala_ccode_binary_expression_new (VALA_CCODE_BINARY_OPERATOR_MUL, (ValaCCodeExpression*) _tmp65_, (ValaCCodeExpression*) _tmp69_);
            _tmp71_ = _tmp70_;
            _vala_ccode_node_unref0 (_tmp69_);
            _g_free0 (_tmp67_);
            _vala_ccode_node_unref0 (_tmp65_);
            new_size = _tmp71_;
            _tmp72_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
            _tmp73_ = g_strconcat (temp_name, "_size", NULL);
            _tmp74_ = _tmp73_;
            _tmp75_ = vala_ccode_identifier_new (_tmp74_);
            _tmp76_ = _tmp75_;
            vala_ccode_function_add_assignment (_tmp72_, (ValaCCodeExpression*) _tmp76_, (ValaCCodeExpression*) new_size);
            _vala_ccode_node_unref0 (_tmp76_);
            _g_free0 (_tmp74_);
            _tmp77_ = vala_ccode_identifier_new ("g_renew");
            _tmp78_ = _tmp77_;
            _tmp79_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp78_);
            _tmp80_ = _tmp79_;
            _vala_ccode_node_unref0 (_tmp78_);
            renew_call = _tmp80_;
            _tmp81_ = vala_array_type_get_element_type (array_type);
            _tmp82_ = vala_data_type_get_cname (_tmp81_);
            _tmp83_ = _tmp82_;
            _tmp84_ = vala_ccode_identifier_new (_tmp83_);
            _tmp85_ = _tmp84_;
            vala_ccode_function_call_add_argument (renew_call, (ValaCCodeExpression*) _tmp85_);
            _vala_ccode_node_unref0 (_tmp85_);
            _g_free0 (_tmp83_);
            _tmp86_ = vala_ccode_identifier_new (temp_name);
            _tmp87_ = _tmp86_;
            vala_ccode_function_call_add_argument (renew_call, (ValaCCodeExpression*) _tmp87_);
            _vala_ccode_node_unref0 (_tmp87_);
            _tmp88_ = g_strconcat (temp_name, "_size", NULL);
            _tmp89_ = _tmp88_;
            _tmp90_ = vala_ccode_identifier_new (_tmp89_);
            _tmp91_ = _tmp90_;
            _tmp92_ = vala_ccode_constant_new ("1");
            _tmp93_ = _tmp92_;
            _tmp94_ = vala_ccode_binary_expression_new (VALA_CCODE_BINARY_OPERATOR_PLUS, (ValaCCodeExpression*) _tmp91_, (ValaCCodeExpression*) _tmp93_);
            _tmp95_ = _tmp94_;
            vala_ccode_function_call_add_argument (renew_call, (ValaCCodeExpression*) _tmp95_);
            _vala_ccode_node_unref0 (_tmp95_);
            _vala_ccode_node_unref0 (_tmp93_);
            _vala_ccode_node_unref0 (_tmp91_);
            _g_free0 (_tmp89_);
            _tmp96_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
            _tmp97_ = vala_ccode_identifier_new (temp_name);
            _tmp98_ = _tmp97_;
            vala_ccode_function_add_assignment (_tmp96_, (ValaCCodeExpression*) _tmp98_, (ValaCCodeExpression*) renew_call);
            _vala_ccode_node_unref0 (_tmp98_);
            _tmp99_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
            vala_ccode_function_close (_tmp99_);
            _tmp100_ = vala_ccode_identifier_new (temp_name);
            _tmp101_ = _tmp100_;
            _tmp102_ = g_strconcat (temp_name, "_length", NULL);
            _tmp103_ = _tmp102_;
            _tmp104_ = vala_ccode_identifier_new (_tmp103_);
            _tmp105_ = _tmp104_;
            _tmp106_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_POSTFIX_INCREMENT, (ValaCCodeExpression*) _tmp105_);
            _tmp107_ = _tmp106_;
            _tmp108_ = vala_ccode_element_access_new ((ValaCCodeExpression*) _tmp101_, (ValaCCodeExpression*) _tmp107_);
            _tmp109_ = _tmp108_;
            _vala_ccode_node_unref0 (_tmp107_);
            _vala_ccode_node_unref0 (_tmp105_);
            _g_free0 (_tmp103_);
            _vala_ccode_node_unref0 (_tmp101_);
            element_access = _tmp109_;
            _tmp110_ = vala_array_type_get_element_type (array_type);
            _tmp111_ = vala_ccode_identifier_new (element_name);
            _tmp112_ = _tmp111_;
            _tmp113_ = vala_ccode_base_module_deserialize_expression ((ValaCCodeBaseModule*) self, _tmp110_, (ValaCCodeExpression*) _tmp112_, NULL, NULL, NULL);
            _tmp114_ = _tmp113_;
            _vala_ccode_node_unref0 (_tmp112_);
            element_expr = _tmp114_;
            _tmp115_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
            vala_ccode_function_add_assignment (_tmp115_, (ValaCCodeExpression*) element_access, element_expr);
            _vala_ccode_node_unref0 (element_expr);
            _vala_ccode_node_unref0 (element_access);
            _vala_ccode_node_unref0 (renew_call);
            _vala_ccode_node_unref0 (new_size);
            _vala_ccode_node_unref0 (size_check);
      }
      _tmp116_ = vala_ccode_identifier_new ("g_variant_unref");
      _tmp117_ = _tmp116_;
      _tmp118_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp117_);
      _tmp119_ = _tmp118_;
      _vala_ccode_node_unref0 (_tmp117_);
      unref = _tmp119_;
      _tmp120_ = vala_ccode_identifier_new (element_name);
      _tmp121_ = _tmp120_;
      vala_ccode_function_call_add_argument (unref, (ValaCCodeExpression*) _tmp121_);
      _vala_ccode_node_unref0 (_tmp121_);
      _tmp122_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      vala_ccode_function_add_expression (_tmp122_, (ValaCCodeExpression*) unref);
      _tmp123_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      vala_ccode_function_close (_tmp123_);
      if (expr != NULL) {
            ValaCCodeFunction* _tmp124_ = NULL;
            ValaCCodeExpression* _tmp125_ = NULL;
            ValaCCodeExpression* _tmp126_;
            gchar* _tmp127_ = NULL;
            gchar* _tmp128_;
            ValaCCodeIdentifier* _tmp129_ = NULL;
            ValaCCodeIdentifier* _tmp130_;
            _tmp124_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
            _tmp125_ = vala_gvariant_module_get_array_length (self, expr, dim);
            _tmp126_ = _tmp125_;
            _tmp127_ = g_strdup_printf ("%s_length%d", temp_name, dim);
            _tmp128_ = _tmp127_;
            _tmp129_ = vala_ccode_identifier_new (_tmp128_);
            _tmp130_ = _tmp129_;
            vala_ccode_function_add_assignment (_tmp124_, _tmp126_, (ValaCCodeExpression*) _tmp130_);
            _vala_ccode_node_unref0 (_tmp130_);
            _g_free0 (_tmp128_);
            _vala_ccode_node_unref0 (_tmp126_);
      }
      _vala_ccode_node_unref0 (unref);
      _vala_ccode_node_unref0 (cforiter);
      _vala_ccode_node_unref0 (cforcond);
      _vala_ccode_node_unref0 (iter_call);
      _g_free0 (element_name);
      _g_free0 (subiter_name);
}


static ValaCCodeExpression* vala_gvariant_module_deserialize_struct (ValaGVariantModule* self, ValaStruct* st, ValaCCodeExpression* variant_expr) {
      ValaCCodeExpression* result = NULL;
      gint _tmp0_;
      gint _tmp1_;
      gchar* _tmp2_ = NULL;
      gchar* temp_name;
      gint _tmp3_;
      gint _tmp4_;
      gchar* _tmp5_ = NULL;
      gchar* subiter_name;
      ValaCCodeFunction* _tmp6_ = NULL;
      gchar* _tmp7_ = NULL;
      gchar* _tmp8_;
      ValaCCodeVariableDeclarator* _tmp9_ = NULL;
      ValaCCodeVariableDeclarator* _tmp10_;
      ValaCCodeFunction* _tmp11_ = NULL;
      ValaCCodeVariableDeclarator* _tmp12_ = NULL;
      ValaCCodeVariableDeclarator* _tmp13_;
      ValaCCodeIdentifier* _tmp14_ = NULL;
      ValaCCodeIdentifier* _tmp15_;
      ValaCCodeFunctionCall* _tmp16_ = NULL;
      ValaCCodeFunctionCall* _tmp17_;
      ValaCCodeFunctionCall* iter_call;
      ValaCCodeIdentifier* _tmp18_ = NULL;
      ValaCCodeIdentifier* _tmp19_;
      ValaCCodeUnaryExpression* _tmp20_ = NULL;
      ValaCCodeUnaryExpression* _tmp21_;
      ValaCCodeFunction* _tmp22_ = NULL;
      gboolean field_found;
      ValaCCodeIdentifier* _tmp36_ = NULL;
      g_return_val_if_fail (self != NULL, NULL);
      g_return_val_if_fail (st != NULL, NULL);
      g_return_val_if_fail (variant_expr != NULL, NULL);
      _tmp0_ = vala_ccode_base_module_get_next_temp_var_id ((ValaCCodeBaseModule*) self);
      _tmp1_ = _tmp0_;
      vala_ccode_base_module_set_next_temp_var_id ((ValaCCodeBaseModule*) self, _tmp1_ + 1);
      _tmp2_ = g_strdup_printf ("_tmp%d_", _tmp1_);
      temp_name = _tmp2_;
      _tmp3_ = vala_ccode_base_module_get_next_temp_var_id ((ValaCCodeBaseModule*) self);
      _tmp4_ = _tmp3_;
      vala_ccode_base_module_set_next_temp_var_id ((ValaCCodeBaseModule*) self, _tmp4_ + 1);
      _tmp5_ = g_strdup_printf ("_tmp%d_", _tmp4_);
      subiter_name = _tmp5_;
      _tmp6_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp7_ = vala_typesymbol_get_cname ((ValaTypeSymbol*) st, FALSE);
      _tmp8_ = _tmp7_;
      _tmp9_ = vala_ccode_variable_declarator_new (temp_name, NULL, NULL);
      _tmp10_ = _tmp9_;
      vala_ccode_function_add_declaration (_tmp6_, _tmp8_, (ValaCCodeDeclarator*) _tmp10_, 0);
      _vala_ccode_node_unref0 (_tmp10_);
      _g_free0 (_tmp8_);
      _tmp11_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp12_ = vala_ccode_variable_declarator_new (subiter_name, NULL, NULL);
      _tmp13_ = _tmp12_;
      vala_ccode_function_add_declaration (_tmp11_, "GVariantIter", (ValaCCodeDeclarator*) _tmp13_, 0);
      _vala_ccode_node_unref0 (_tmp13_);
      _tmp14_ = vala_ccode_identifier_new ("g_variant_iter_init");
      _tmp15_ = _tmp14_;
      _tmp16_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp15_);
      _tmp17_ = _tmp16_;
      _vala_ccode_node_unref0 (_tmp15_);
      iter_call = _tmp17_;
      _tmp18_ = vala_ccode_identifier_new (subiter_name);
      _tmp19_ = _tmp18_;
      _tmp20_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp19_);
      _tmp21_ = _tmp20_;
      vala_ccode_function_call_add_argument (iter_call, (ValaCCodeExpression*) _tmp21_);
      _vala_ccode_node_unref0 (_tmp21_);
      _vala_ccode_node_unref0 (_tmp19_);
      vala_ccode_function_call_add_argument (iter_call, variant_expr);
      _tmp22_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      vala_ccode_function_add_expression (_tmp22_, (ValaCCodeExpression*) iter_call);
      field_found = FALSE;
      {
            ValaList* _tmp23_ = NULL;
            ValaList* _f_list;
            gint _tmp24_;
            gint _f_size;
            gint _f_index;
            _tmp23_ = vala_struct_get_fields (st);
            _f_list = _tmp23_;
            _tmp24_ = vala_collection_get_size ((ValaCollection*) _f_list);
            _f_size = _tmp24_;
            _f_index = -1;
            while (TRUE) {
                  gpointer _tmp25_ = NULL;
                  ValaField* f;
                  ValaMemberBinding _tmp26_;
                  ValaDataType* _tmp27_ = NULL;
                  ValaCCodeIdentifier* _tmp28_ = NULL;
                  ValaCCodeIdentifier* _tmp29_;
                  ValaCCodeIdentifier* _tmp30_ = NULL;
                  ValaCCodeIdentifier* _tmp31_;
                  gchar* _tmp32_ = NULL;
                  gchar* _tmp33_;
                  ValaCCodeMemberAccess* _tmp34_ = NULL;
                  ValaCCodeMemberAccess* _tmp35_;
                  _f_index = _f_index + 1;
                  if (!(_f_index < _f_size)) {
                        break;
                  }
                  _tmp25_ = vala_list_get (_f_list, _f_index);
                  f = (ValaField*) _tmp25_;
                  _tmp26_ = vala_field_get_binding (f);
                  if (_tmp26_ != VALA_MEMBER_BINDING_INSTANCE) {
                        _vala_code_node_unref0 (f);
                        continue;
                  }
                  field_found = TRUE;
                  _tmp27_ = vala_variable_get_variable_type ((ValaVariable*) f);
                  _tmp28_ = vala_ccode_identifier_new (subiter_name);
                  _tmp29_ = _tmp28_;
                  _tmp30_ = vala_ccode_identifier_new (temp_name);
                  _tmp31_ = _tmp30_;
                  _tmp32_ = vala_field_get_cname (f);
                  _tmp33_ = _tmp32_;
                  _tmp34_ = vala_ccode_member_access_new ((ValaCCodeExpression*) _tmp31_, _tmp33_, FALSE);
                  _tmp35_ = _tmp34_;
                  vala_gvariant_module_read_expression (self, _tmp27_, (ValaCCodeExpression*) _tmp29_, (ValaCCodeExpression*) _tmp35_, (ValaSymbol*) f, NULL, NULL);
                  _vala_ccode_node_unref0 (_tmp35_);
                  _g_free0 (_tmp33_);
                  _vala_ccode_node_unref0 (_tmp31_);
                  _vala_ccode_node_unref0 (_tmp29_);
                  _vala_code_node_unref0 (f);
            }
            _vala_iterable_unref0 (_f_list);
      }
      if (!field_found) {
            result = NULL;
            _vala_ccode_node_unref0 (iter_call);
            _g_free0 (subiter_name);
            _g_free0 (temp_name);
            return result;
      }
      _tmp36_ = vala_ccode_identifier_new (temp_name);
      result = (ValaCCodeExpression*) _tmp36_;
      _vala_ccode_node_unref0 (iter_call);
      _g_free0 (subiter_name);
      _g_free0 (temp_name);
      return result;
}


static ValaCCodeExpression* vala_gvariant_module_deserialize_hash_table (ValaGVariantModule* self, ValaObjectType* type, ValaCCodeExpression* variant_expr) {
      ValaCCodeExpression* result = NULL;
      gint _tmp0_;
      gint _tmp1_;
      gchar* _tmp2_ = NULL;
      gchar* temp_name;
      gint _tmp3_;
      gint _tmp4_;
      gchar* _tmp5_ = NULL;
      gchar* subiter_name;
      gint _tmp6_;
      gint _tmp7_;
      gchar* _tmp8_ = NULL;
      gchar* key_name;
      gint _tmp9_;
      gint _tmp10_;
      gchar* _tmp11_ = NULL;
      gchar* value_name;
      ValaList* _tmp12_ = NULL;
      ValaList* type_args;
      gint _tmp13_;
      gpointer _tmp14_ = NULL;
      ValaDataType* key_type;
      gpointer _tmp15_ = NULL;
      ValaDataType* value_type;
      ValaCCodeFunction* _tmp16_ = NULL;
      ValaCCodeVariableDeclarator* _tmp17_ = NULL;
      ValaCCodeVariableDeclarator* _tmp18_;
      ValaCCodeFunction* _tmp19_ = NULL;
      ValaCCodeVariableDeclarator* _tmp20_ = NULL;
      ValaCCodeVariableDeclarator* _tmp21_;
      ValaCCodeFunction* _tmp22_ = NULL;
      ValaCCodeVariableDeclarator* _tmp23_ = NULL;
      ValaCCodeVariableDeclarator* _tmp24_;
      ValaCCodeFunction* _tmp25_ = NULL;
      ValaCCodeVariableDeclarator* _tmp26_ = NULL;
      ValaCCodeVariableDeclarator* _tmp27_;
      ValaCCodeIdentifier* _tmp28_ = NULL;
      ValaCCodeIdentifier* _tmp29_;
      ValaCCodeFunctionCall* _tmp30_ = NULL;
      ValaCCodeFunctionCall* _tmp31_;
      ValaCCodeFunctionCall* hash_table_new;
      ValaTypeSymbol* _tmp32_ = NULL;
      ValaTypeSymbol* _tmp33_ = NULL;
      ValaTypeSymbol* _tmp42_ = NULL;
      ValaTypeSymbol* _tmp43_ = NULL;
      ValaTypeSymbol* _tmp48_ = NULL;
      ValaTypeSymbol* _tmp49_ = NULL;
      ValaCCodeFunction* _tmp54_ = NULL;
      ValaCCodeIdentifier* _tmp55_ = NULL;
      ValaCCodeIdentifier* _tmp56_;
      ValaCCodeIdentifier* _tmp57_ = NULL;
      ValaCCodeIdentifier* _tmp58_;
      ValaCCodeFunctionCall* _tmp59_ = NULL;
      ValaCCodeFunctionCall* _tmp60_;
      ValaCCodeFunctionCall* iter_call;
      ValaCCodeIdentifier* _tmp61_ = NULL;
      ValaCCodeIdentifier* _tmp62_;
      ValaCCodeUnaryExpression* _tmp63_ = NULL;
      ValaCCodeUnaryExpression* _tmp64_;
      ValaCCodeFunction* _tmp65_ = NULL;
      ValaCCodeIdentifier* _tmp66_ = NULL;
      ValaCCodeIdentifier* _tmp67_;
      ValaCCodeFunctionCall* _tmp68_ = NULL;
      ValaCCodeIdentifier* _tmp69_ = NULL;
      ValaCCodeIdentifier* _tmp70_;
      ValaCCodeUnaryExpression* _tmp71_ = NULL;
      ValaCCodeUnaryExpression* _tmp72_;
      ValaCCodeConstant* _tmp73_ = NULL;
      ValaCCodeConstant* _tmp74_;
      ValaCCodeIdentifier* _tmp75_ = NULL;
      ValaCCodeIdentifier* _tmp76_;
      ValaCCodeUnaryExpression* _tmp77_ = NULL;
      ValaCCodeUnaryExpression* _tmp78_;
      ValaCCodeIdentifier* _tmp79_ = NULL;
      ValaCCodeIdentifier* _tmp80_;
      ValaCCodeUnaryExpression* _tmp81_ = NULL;
      ValaCCodeUnaryExpression* _tmp82_;
      ValaCCodeFunction* _tmp83_ = NULL;
      ValaCCodeIdentifier* _tmp84_ = NULL;
      ValaCCodeIdentifier* _tmp85_;
      ValaCCodeExpression* _tmp86_ = NULL;
      ValaCCodeExpression* _tmp87_;
      ValaCCodeExpression* key_expr;
      ValaCCodeIdentifier* _tmp88_ = NULL;
      ValaCCodeIdentifier* _tmp89_;
      ValaCCodeExpression* _tmp90_ = NULL;
      ValaCCodeExpression* _tmp91_;
      ValaCCodeExpression* value_expr;
      gboolean _tmp92_ = FALSE;
      ValaCCodeIdentifier* _tmp93_ = NULL;
      ValaCCodeIdentifier* _tmp94_;
      ValaCCodeFunctionCall* _tmp95_ = NULL;
      ValaCCodeFunctionCall* _tmp96_;
      ValaCCodeFunctionCall* hash_table_insert;
      ValaCCodeIdentifier* _tmp97_ = NULL;
      ValaCCodeIdentifier* _tmp98_;
      ValaCCodeExpression* _tmp99_ = NULL;
      ValaCCodeExpression* _tmp100_;
      ValaCCodeExpression* _tmp101_ = NULL;
      ValaCCodeExpression* _tmp102_;
      ValaCCodeFunction* _tmp103_ = NULL;
      ValaCCodeFunction* _tmp104_ = NULL;
      ValaCCodeIdentifier* _tmp105_ = NULL;
      g_return_val_if_fail (self != NULL, NULL);
      g_return_val_if_fail (type != NULL, NULL);
      g_return_val_if_fail (variant_expr != NULL, NULL);
      _tmp0_ = vala_ccode_base_module_get_next_temp_var_id ((ValaCCodeBaseModule*) self);
      _tmp1_ = _tmp0_;
      vala_ccode_base_module_set_next_temp_var_id ((ValaCCodeBaseModule*) self, _tmp1_ + 1);
      _tmp2_ = g_strdup_printf ("_tmp%d_", _tmp1_);
      temp_name = _tmp2_;
      _tmp3_ = vala_ccode_base_module_get_next_temp_var_id ((ValaCCodeBaseModule*) self);
      _tmp4_ = _tmp3_;
      vala_ccode_base_module_set_next_temp_var_id ((ValaCCodeBaseModule*) self, _tmp4_ + 1);
      _tmp5_ = g_strdup_printf ("_tmp%d_", _tmp4_);
      subiter_name = _tmp5_;
      _tmp6_ = vala_ccode_base_module_get_next_temp_var_id ((ValaCCodeBaseModule*) self);
      _tmp7_ = _tmp6_;
      vala_ccode_base_module_set_next_temp_var_id ((ValaCCodeBaseModule*) self, _tmp7_ + 1);
      _tmp8_ = g_strdup_printf ("_tmp%d_", _tmp7_);
      key_name = _tmp8_;
      _tmp9_ = vala_ccode_base_module_get_next_temp_var_id ((ValaCCodeBaseModule*) self);
      _tmp10_ = _tmp9_;
      vala_ccode_base_module_set_next_temp_var_id ((ValaCCodeBaseModule*) self, _tmp10_ + 1);
      _tmp11_ = g_strdup_printf ("_tmp%d_", _tmp10_);
      value_name = _tmp11_;
      _tmp12_ = vala_data_type_get_type_arguments ((ValaDataType*) type);
      type_args = _tmp12_;
      _tmp13_ = vala_collection_get_size ((ValaCollection*) type_args);
      g_assert (_tmp13_ == 2);
      _tmp14_ = vala_list_get (type_args, 0);
      key_type = (ValaDataType*) _tmp14_;
      _tmp15_ = vala_list_get (type_args, 1);
      value_type = (ValaDataType*) _tmp15_;
      _tmp16_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp17_ = vala_ccode_variable_declarator_new (temp_name, NULL, NULL);
      _tmp18_ = _tmp17_;
      vala_ccode_function_add_declaration (_tmp16_, "GHashTable*", (ValaCCodeDeclarator*) _tmp18_, 0);
      _vala_ccode_node_unref0 (_tmp18_);
      _tmp19_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp20_ = vala_ccode_variable_declarator_new (subiter_name, NULL, NULL);
      _tmp21_ = _tmp20_;
      vala_ccode_function_add_declaration (_tmp19_, "GVariantIter", (ValaCCodeDeclarator*) _tmp21_, 0);
      _vala_ccode_node_unref0 (_tmp21_);
      _tmp22_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp23_ = vala_ccode_variable_declarator_new (key_name, NULL, NULL);
      _tmp24_ = _tmp23_;
      vala_ccode_function_add_declaration (_tmp22_, "GVariant*", (ValaCCodeDeclarator*) _tmp24_, 0);
      _vala_ccode_node_unref0 (_tmp24_);
      _tmp25_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp26_ = vala_ccode_variable_declarator_new (value_name, NULL, NULL);
      _tmp27_ = _tmp26_;
      vala_ccode_function_add_declaration (_tmp25_, "GVariant*", (ValaCCodeDeclarator*) _tmp27_, 0);
      _vala_ccode_node_unref0 (_tmp27_);
      _tmp28_ = vala_ccode_identifier_new ("g_hash_table_new_full");
      _tmp29_ = _tmp28_;
      _tmp30_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp29_);
      _tmp31_ = _tmp30_;
      _vala_ccode_node_unref0 (_tmp29_);
      hash_table_new = _tmp31_;
      _tmp32_ = vala_data_type_get_data_type (key_type);
      _tmp33_ = vala_data_type_get_data_type (((ValaCCodeBaseModule*) self)->string_type);
      if (_tmp32_ == _tmp33_) {
            ValaCCodeIdentifier* _tmp34_ = NULL;
            ValaCCodeIdentifier* _tmp35_;
            ValaCCodeIdentifier* _tmp36_ = NULL;
            ValaCCodeIdentifier* _tmp37_;
            _tmp34_ = vala_ccode_identifier_new ("g_str_hash");
            _tmp35_ = _tmp34_;
            vala_ccode_function_call_add_argument (hash_table_new, (ValaCCodeExpression*) _tmp35_);
            _vala_ccode_node_unref0 (_tmp35_);
            _tmp36_ = vala_ccode_identifier_new ("g_str_equal");
            _tmp37_ = _tmp36_;
            vala_ccode_function_call_add_argument (hash_table_new, (ValaCCodeExpression*) _tmp37_);
            _vala_ccode_node_unref0 (_tmp37_);
      } else {
            ValaCCodeIdentifier* _tmp38_ = NULL;
            ValaCCodeIdentifier* _tmp39_;
            ValaCCodeIdentifier* _tmp40_ = NULL;
            ValaCCodeIdentifier* _tmp41_;
            _tmp38_ = vala_ccode_identifier_new ("g_direct_hash");
            _tmp39_ = _tmp38_;
            vala_ccode_function_call_add_argument (hash_table_new, (ValaCCodeExpression*) _tmp39_);
            _vala_ccode_node_unref0 (_tmp39_);
            _tmp40_ = vala_ccode_identifier_new ("g_direct_equal");
            _tmp41_ = _tmp40_;
            vala_ccode_function_call_add_argument (hash_table_new, (ValaCCodeExpression*) _tmp41_);
            _vala_ccode_node_unref0 (_tmp41_);
      }
      _tmp42_ = vala_data_type_get_data_type (key_type);
      _tmp43_ = vala_data_type_get_data_type (((ValaCCodeBaseModule*) self)->string_type);
      if (_tmp42_ == _tmp43_) {
            ValaCCodeIdentifier* _tmp44_ = NULL;
            ValaCCodeIdentifier* _tmp45_;
            _tmp44_ = vala_ccode_identifier_new ("g_free");
            _tmp45_ = _tmp44_;
            vala_ccode_function_call_add_argument (hash_table_new, (ValaCCodeExpression*) _tmp45_);
            _vala_ccode_node_unref0 (_tmp45_);
      } else {
            ValaCCodeIdentifier* _tmp46_ = NULL;
            ValaCCodeIdentifier* _tmp47_;
            _tmp46_ = vala_ccode_identifier_new ("NULL");
            _tmp47_ = _tmp46_;
            vala_ccode_function_call_add_argument (hash_table_new, (ValaCCodeExpression*) _tmp47_);
            _vala_ccode_node_unref0 (_tmp47_);
      }
      _tmp48_ = vala_data_type_get_data_type (value_type);
      _tmp49_ = vala_data_type_get_data_type (((ValaCCodeBaseModule*) self)->string_type);
      if (_tmp48_ == _tmp49_) {
            ValaCCodeIdentifier* _tmp50_ = NULL;
            ValaCCodeIdentifier* _tmp51_;
            _tmp50_ = vala_ccode_identifier_new ("g_free");
            _tmp51_ = _tmp50_;
            vala_ccode_function_call_add_argument (hash_table_new, (ValaCCodeExpression*) _tmp51_);
            _vala_ccode_node_unref0 (_tmp51_);
      } else {
            ValaCCodeIdentifier* _tmp52_ = NULL;
            ValaCCodeIdentifier* _tmp53_;
            _tmp52_ = vala_ccode_identifier_new ("NULL");
            _tmp53_ = _tmp52_;
            vala_ccode_function_call_add_argument (hash_table_new, (ValaCCodeExpression*) _tmp53_);
            _vala_ccode_node_unref0 (_tmp53_);
      }
      _tmp54_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp55_ = vala_ccode_identifier_new (temp_name);
      _tmp56_ = _tmp55_;
      vala_ccode_function_add_assignment (_tmp54_, (ValaCCodeExpression*) _tmp56_, (ValaCCodeExpression*) hash_table_new);
      _vala_ccode_node_unref0 (_tmp56_);
      _tmp57_ = vala_ccode_identifier_new ("g_variant_iter_init");
      _tmp58_ = _tmp57_;
      _tmp59_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp58_);
      _tmp60_ = _tmp59_;
      _vala_ccode_node_unref0 (_tmp58_);
      iter_call = _tmp60_;
      _tmp61_ = vala_ccode_identifier_new (subiter_name);
      _tmp62_ = _tmp61_;
      _tmp63_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp62_);
      _tmp64_ = _tmp63_;
      vala_ccode_function_call_add_argument (iter_call, (ValaCCodeExpression*) _tmp64_);
      _vala_ccode_node_unref0 (_tmp64_);
      _vala_ccode_node_unref0 (_tmp62_);
      vala_ccode_function_call_add_argument (iter_call, variant_expr);
      _tmp65_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      vala_ccode_function_add_expression (_tmp65_, (ValaCCodeExpression*) iter_call);
      _tmp66_ = vala_ccode_identifier_new ("g_variant_iter_loop");
      _tmp67_ = _tmp66_;
      _tmp68_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp67_);
      _vala_ccode_node_unref0 (iter_call);
      iter_call = _tmp68_;
      _vala_ccode_node_unref0 (_tmp67_);
      _tmp69_ = vala_ccode_identifier_new (subiter_name);
      _tmp70_ = _tmp69_;
      _tmp71_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp70_);
      _tmp72_ = _tmp71_;
      vala_ccode_function_call_add_argument (iter_call, (ValaCCodeExpression*) _tmp72_);
      _vala_ccode_node_unref0 (_tmp72_);
      _vala_ccode_node_unref0 (_tmp70_);
      _tmp73_ = vala_ccode_constant_new ("\"{?*}\"");
      _tmp74_ = _tmp73_;
      vala_ccode_function_call_add_argument (iter_call, (ValaCCodeExpression*) _tmp74_);
      _vala_ccode_node_unref0 (_tmp74_);
      _tmp75_ = vala_ccode_identifier_new (key_name);
      _tmp76_ = _tmp75_;
      _tmp77_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp76_);
      _tmp78_ = _tmp77_;
      vala_ccode_function_call_add_argument (iter_call, (ValaCCodeExpression*) _tmp78_);
      _vala_ccode_node_unref0 (_tmp78_);
      _vala_ccode_node_unref0 (_tmp76_);
      _tmp79_ = vala_ccode_identifier_new (value_name);
      _tmp80_ = _tmp79_;
      _tmp81_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp80_);
      _tmp82_ = _tmp81_;
      vala_ccode_function_call_add_argument (iter_call, (ValaCCodeExpression*) _tmp82_);
      _vala_ccode_node_unref0 (_tmp82_);
      _vala_ccode_node_unref0 (_tmp80_);
      _tmp83_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      vala_ccode_function_open_while (_tmp83_, (ValaCCodeExpression*) iter_call);
      _tmp84_ = vala_ccode_identifier_new (key_name);
      _tmp85_ = _tmp84_;
      _tmp86_ = vala_ccode_base_module_deserialize_expression ((ValaCCodeBaseModule*) self, key_type, (ValaCCodeExpression*) _tmp85_, NULL, NULL, NULL);
      _tmp87_ = _tmp86_;
      _vala_ccode_node_unref0 (_tmp85_);
      key_expr = _tmp87_;
      _tmp88_ = vala_ccode_identifier_new (value_name);
      _tmp89_ = _tmp88_;
      _tmp90_ = vala_ccode_base_module_deserialize_expression ((ValaCCodeBaseModule*) self, value_type, (ValaCCodeExpression*) _tmp89_, NULL, NULL, NULL);
      _tmp91_ = _tmp90_;
      _vala_ccode_node_unref0 (_tmp89_);
      value_expr = _tmp91_;
      if (key_expr == NULL) {
            _tmp92_ = TRUE;
      } else {
            _tmp92_ = value_expr == NULL;
      }
      if (_tmp92_) {
            result = NULL;
            _vala_ccode_node_unref0 (value_expr);
            _vala_ccode_node_unref0 (key_expr);
            _vala_ccode_node_unref0 (iter_call);
            _vala_ccode_node_unref0 (hash_table_new);
            _vala_code_node_unref0 (value_type);
            _vala_code_node_unref0 (key_type);
            _vala_iterable_unref0 (type_args);
            _g_free0 (value_name);
            _g_free0 (key_name);
            _g_free0 (subiter_name);
            _g_free0 (temp_name);
            return result;
      }
      _tmp93_ = vala_ccode_identifier_new ("g_hash_table_insert");
      _tmp94_ = _tmp93_;
      _tmp95_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp94_);
      _tmp96_ = _tmp95_;
      _vala_ccode_node_unref0 (_tmp94_);
      hash_table_insert = _tmp96_;
      _tmp97_ = vala_ccode_identifier_new (temp_name);
      _tmp98_ = _tmp97_;
      vala_ccode_function_call_add_argument (hash_table_insert, (ValaCCodeExpression*) _tmp98_);
      _vala_ccode_node_unref0 (_tmp98_);
      _tmp99_ = vala_ccode_base_module_convert_to_generic_pointer ((ValaCCodeBaseModule*) self, key_expr, key_type);
      _tmp100_ = _tmp99_;
      vala_ccode_function_call_add_argument (hash_table_insert, _tmp100_);
      _vala_ccode_node_unref0 (_tmp100_);
      _tmp101_ = vala_ccode_base_module_convert_to_generic_pointer ((ValaCCodeBaseModule*) self, value_expr, value_type);
      _tmp102_ = _tmp101_;
      vala_ccode_function_call_add_argument (hash_table_insert, _tmp102_);
      _vala_ccode_node_unref0 (_tmp102_);
      _tmp103_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      vala_ccode_function_add_expression (_tmp103_, (ValaCCodeExpression*) hash_table_insert);
      _tmp104_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      vala_ccode_function_close (_tmp104_);
      _tmp105_ = vala_ccode_identifier_new (temp_name);
      result = (ValaCCodeExpression*) _tmp105_;
      _vala_ccode_node_unref0 (hash_table_insert);
      _vala_ccode_node_unref0 (value_expr);
      _vala_ccode_node_unref0 (key_expr);
      _vala_ccode_node_unref0 (iter_call);
      _vala_ccode_node_unref0 (hash_table_new);
      _vala_code_node_unref0 (value_type);
      _vala_code_node_unref0 (key_type);
      _vala_iterable_unref0 (type_args);
      _g_free0 (value_name);
      _g_free0 (key_name);
      _g_free0 (subiter_name);
      _g_free0 (temp_name);
      return result;
}


static ValaCCodeExpression* vala_gvariant_module_real_deserialize_expression (ValaCCodeBaseModule* base, ValaDataType* type, ValaCCodeExpression* variant_expr, ValaCCodeExpression* expr, ValaCCodeExpression* error_expr, gboolean* may_fail) {
      ValaGVariantModule * self;
      gboolean _may_fail = FALSE;
      ValaCCodeExpression* result = NULL;
      ValaGVariantModuleBasicTypeInfo basic_type = {0};
      ValaCCodeExpression* _result_;
      ValaTypeSymbol* _tmp0_ = NULL;
      gboolean _tmp1_;
      self = (ValaGVariantModule*) base;
      g_return_val_if_fail (type != NULL, NULL);
      g_return_val_if_fail (variant_expr != NULL, NULL);
      _result_ = NULL;
      _tmp0_ = vala_data_type_get_data_type (type);
      _tmp1_ = vala_gvariant_module_is_string_marshalled_enum (_tmp0_);
      if (_tmp1_) {
            ValaGVariantModuleBasicTypeInfo _tmp2_ = {0};
            ValaCCodeExpression* _tmp3_ = NULL;
            ValaDataType* _tmp4_;
            ValaCCodeExpression* _tmp5_ = NULL;
            vala_gvariant_module_get_basic_type_info (self, "s", &_tmp2_);
            basic_type = _tmp2_;
            _tmp3_ = vala_gvariant_module_deserialize_basic (self, &basic_type, variant_expr, TRUE);
            _vala_ccode_node_unref0 (_result_);
            _result_ = _tmp3_;
            _tmp4_ = type;
            _tmp5_ = vala_gvariant_module_generate_enum_value_from_string (self, VALA_IS_ENUM_VALUE_TYPE (_tmp4_) ? ((ValaEnumValueType*) _tmp4_) : NULL, _result_, error_expr);
            _vala_ccode_node_unref0 (_result_);
            _result_ = _tmp5_;
            _may_fail = TRUE;
      } else {
            gchar* _tmp6_ = NULL;
            gchar* _tmp7_;
            ValaGVariantModuleBasicTypeInfo _tmp8_ = {0};
            gboolean _tmp9_;
            gboolean _tmp10_;
            _tmp6_ = vala_gvariant_module_get_type_signature (type, NULL);
            _tmp7_ = _tmp6_;
            _tmp9_ = vala_gvariant_module_get_basic_type_info (self, _tmp7_, &_tmp8_);
            basic_type = _tmp8_;
            _tmp10_ = _tmp9_;
            _g_free0 (_tmp7_);
            if (_tmp10_) {
                  ValaCCodeExpression* _tmp11_ = NULL;
                  _tmp11_ = vala_gvariant_module_deserialize_basic (self, &basic_type, variant_expr, FALSE);
                  _vala_ccode_node_unref0 (_result_);
                  _result_ = _tmp11_;
            } else {
                  if (VALA_IS_ARRAY_TYPE (type)) {
                        ValaCCodeExpression* _tmp12_ = NULL;
                        _tmp12_ = vala_gvariant_module_deserialize_array (self, VALA_ARRAY_TYPE (type), variant_expr, expr);
                        _vala_ccode_node_unref0 (_result_);
                        _result_ = _tmp12_;
                  } else {
                        ValaTypeSymbol* _tmp13_ = NULL;
                        _tmp13_ = vala_data_type_get_data_type (type);
                        if (VALA_IS_STRUCT (_tmp13_)) {
                              ValaTypeSymbol* _tmp14_ = NULL;
                              ValaStruct* _tmp15_;
                              ValaStruct* st;
                              ValaCCodeExpression* _tmp16_ = NULL;
                              gboolean _tmp17_ = FALSE;
                              _tmp14_ = vala_data_type_get_data_type (type);
                              _tmp15_ = _vala_code_node_ref0 (VALA_STRUCT (_tmp14_));
                              st = _tmp15_;
                              _tmp16_ = vala_gvariant_module_deserialize_struct (self, st, variant_expr);
                              _vala_ccode_node_unref0 (_result_);
                              _result_ = _tmp16_;
                              if (_result_ != NULL) {
                                    gboolean _tmp18_;
                                    _tmp18_ = vala_data_type_get_nullable (type);
                                    _tmp17_ = _tmp18_;
                              } else {
                                    _tmp17_ = FALSE;
                              }
                              if (_tmp17_) {
                                    ValaCCodeIdentifier* _tmp19_ = NULL;
                                    ValaCCodeIdentifier* _tmp20_;
                                    ValaCCodeFunctionCall* _tmp21_ = NULL;
                                    ValaCCodeFunctionCall* _tmp22_;
                                    ValaCCodeFunctionCall* csizeof;
                                    gchar* _tmp23_ = NULL;
                                    gchar* _tmp24_;
                                    ValaCCodeIdentifier* _tmp25_ = NULL;
                                    ValaCCodeIdentifier* _tmp26_;
                                    ValaCCodeIdentifier* _tmp27_ = NULL;
                                    ValaCCodeIdentifier* _tmp28_;
                                    ValaCCodeFunctionCall* _tmp29_ = NULL;
                                    ValaCCodeFunctionCall* _tmp30_;
                                    ValaCCodeFunctionCall* cdup;
                                    ValaCCodeUnaryExpression* _tmp31_ = NULL;
                                    ValaCCodeUnaryExpression* _tmp32_;
                                    ValaCCodeExpression* _tmp33_;
                                    _tmp19_ = vala_ccode_identifier_new ("sizeof");
                                    _tmp20_ = _tmp19_;
                                    _tmp21_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp20_);
                                    _tmp22_ = _tmp21_;
                                    _vala_ccode_node_unref0 (_tmp20_);
                                    csizeof = _tmp22_;
                                    _tmp23_ = vala_typesymbol_get_cname ((ValaTypeSymbol*) st, FALSE);
                                    _tmp24_ = _tmp23_;
                                    _tmp25_ = vala_ccode_identifier_new (_tmp24_);
                                    _tmp26_ = _tmp25_;
                                    vala_ccode_function_call_add_argument (csizeof, (ValaCCodeExpression*) _tmp26_);
                                    _vala_ccode_node_unref0 (_tmp26_);
                                    _g_free0 (_tmp24_);
                                    _tmp27_ = vala_ccode_identifier_new ("g_memdup");
                                    _tmp28_ = _tmp27_;
                                    _tmp29_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp28_);
                                    _tmp30_ = _tmp29_;
                                    _vala_ccode_node_unref0 (_tmp28_);
                                    cdup = _tmp30_;
                                    _tmp31_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, _result_);
                                    _tmp32_ = _tmp31_;
                                    vala_ccode_function_call_add_argument (cdup, (ValaCCodeExpression*) _tmp32_);
                                    _vala_ccode_node_unref0 (_tmp32_);
                                    vala_ccode_function_call_add_argument (cdup, (ValaCCodeExpression*) csizeof);
                                    _tmp33_ = _vala_ccode_node_ref0 ((ValaCCodeExpression*) cdup);
                                    _vala_ccode_node_unref0 (_result_);
                                    _result_ = _tmp33_;
                                    _vala_ccode_node_unref0 (cdup);
                                    _vala_ccode_node_unref0 (csizeof);
                              }
                              _vala_code_node_unref0 (st);
                        } else {
                              if (VALA_IS_OBJECT_TYPE (type)) {
                                    ValaTypeSymbol* _tmp34_ = NULL;
                                    gchar* _tmp35_ = NULL;
                                    gchar* _tmp36_;
                                    gboolean _tmp37_;
                                    _tmp34_ = vala_data_type_get_data_type (type);
                                    _tmp35_ = vala_symbol_get_full_name ((ValaSymbol*) _tmp34_);
                                    _tmp36_ = _tmp35_;
                                    _tmp37_ = g_strcmp0 (_tmp36_, "GLib.Variant") == 0;
                                    _g_free0 (_tmp36_);
                                    if (_tmp37_) {
                                          ValaCCodeIdentifier* _tmp38_ = NULL;
                                          ValaCCodeIdentifier* _tmp39_;
                                          ValaCCodeFunctionCall* _tmp40_ = NULL;
                                          ValaCCodeFunctionCall* _tmp41_;
                                          ValaCCodeFunctionCall* variant_get;
                                          ValaCCodeExpression* _tmp42_;
                                          _tmp38_ = vala_ccode_identifier_new ("g_variant_get_variant");
                                          _tmp39_ = _tmp38_;
                                          _tmp40_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp39_);
                                          _tmp41_ = _tmp40_;
                                          _vala_ccode_node_unref0 (_tmp39_);
                                          variant_get = _tmp41_;
                                          vala_ccode_function_call_add_argument (variant_get, variant_expr);
                                          _tmp42_ = _vala_ccode_node_ref0 ((ValaCCodeExpression*) variant_get);
                                          _vala_ccode_node_unref0 (_result_);
                                          _result_ = _tmp42_;
                                          _vala_ccode_node_unref0 (variant_get);
                                    } else {
                                          ValaTypeSymbol* _tmp43_ = NULL;
                                          gchar* _tmp44_ = NULL;
                                          gchar* _tmp45_;
                                          gboolean _tmp46_;
                                          _tmp43_ = vala_data_type_get_data_type (type);
                                          _tmp44_ = vala_symbol_get_full_name ((ValaSymbol*) _tmp43_);
                                          _tmp45_ = _tmp44_;
                                          _tmp46_ = g_strcmp0 (_tmp45_, "GLib.HashTable") == 0;
                                          _g_free0 (_tmp45_);
                                          if (_tmp46_) {
                                                ValaCCodeExpression* _tmp47_ = NULL;
                                                _tmp47_ = vala_gvariant_module_deserialize_hash_table (self, VALA_OBJECT_TYPE (type), variant_expr);
                                                _vala_ccode_node_unref0 (_result_);
                                                _result_ = _tmp47_;
                                          }
                                    }
                              }
                        }
                  }
            }
      }
      if (_result_ == NULL) {
            ValaSourceReference* _tmp48_ = NULL;
            gchar* _tmp49_ = NULL;
            gchar* _tmp50_;
            gchar* _tmp51_ = NULL;
            gchar* _tmp52_;
            _tmp48_ = vala_code_node_get_source_reference ((ValaCodeNode*) type);
            _tmp49_ = vala_code_node_to_string ((ValaCodeNode*) type);
            _tmp50_ = _tmp49_;
            _tmp51_ = g_strdup_printf ("GVariant deserialization of type `%s' is not supported", _tmp50_);
            _tmp52_ = _tmp51_;
            vala_report_error (_tmp48_, _tmp52_);
            _g_free0 (_tmp52_);
            _g_free0 (_tmp50_);
      }
      result = _result_;
      if (may_fail) {
            *may_fail = _may_fail;
      }
      return result;
}


void vala_gvariant_module_read_expression (ValaGVariantModule* self, ValaDataType* type, ValaCCodeExpression* iter_expr, ValaCCodeExpression* target_expr, ValaSymbol* sym, ValaCCodeExpression* error_expr, gboolean* may_fail) {
      gboolean _may_fail = FALSE;
      ValaCCodeIdentifier* _tmp0_ = NULL;
      ValaCCodeIdentifier* _tmp1_;
      ValaCCodeFunctionCall* _tmp2_ = NULL;
      ValaCCodeFunctionCall* _tmp3_;
      ValaCCodeFunctionCall* iter_call;
      ValaCCodeUnaryExpression* _tmp4_ = NULL;
      ValaCCodeUnaryExpression* _tmp5_;
      gboolean _tmp6_ = FALSE;
      gint _tmp10_;
      gint _tmp11_;
      gchar* _tmp12_ = NULL;
      gchar* temp_name;
      ValaCCodeFunction* _tmp13_ = NULL;
      ValaCCodeVariableDeclarator* _tmp14_ = NULL;
      ValaCCodeVariableDeclarator* _tmp15_;
      ValaCCodeIdentifier* _tmp16_ = NULL;
      ValaCCodeIdentifier* variant_expr;
      ValaCCodeFunction* _tmp17_ = NULL;
      gboolean _tmp18_;
      ValaCCodeExpression* _tmp19_ = NULL;
      ValaCCodeExpression* _result_;
      ValaCCodeFunction* _tmp20_ = NULL;
      ValaCCodeIdentifier* _tmp21_ = NULL;
      ValaCCodeIdentifier* _tmp22_;
      ValaCCodeFunctionCall* _tmp23_ = NULL;
      ValaCCodeFunctionCall* _tmp24_;
      ValaCCodeFunctionCall* unref;
      ValaCCodeFunction* _tmp25_ = NULL;
      g_return_if_fail (self != NULL);
      g_return_if_fail (type != NULL);
      g_return_if_fail (iter_expr != NULL);
      g_return_if_fail (target_expr != NULL);
      _tmp0_ = vala_ccode_identifier_new ("g_variant_iter_next_value");
      _tmp1_ = _tmp0_;
      _tmp2_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp1_);
      _tmp3_ = _tmp2_;
      _vala_ccode_node_unref0 (_tmp1_);
      iter_call = _tmp3_;
      _tmp4_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, iter_expr);
      _tmp5_ = _tmp4_;
      vala_ccode_function_call_add_argument (iter_call, (ValaCCodeExpression*) _tmp5_);
      _vala_ccode_node_unref0 (_tmp5_);
      if (sym != NULL) {
            gchar* _tmp7_ = NULL;
            gchar* _tmp8_;
            _tmp7_ = vala_gvariant_module_get_dbus_signature (sym);
            _tmp8_ = _tmp7_;
            _tmp6_ = _tmp8_ != NULL;
            _g_free0 (_tmp8_);
      } else {
            _tmp6_ = FALSE;
      }
      if (_tmp6_) {
            ValaCCodeFunction* _tmp9_ = NULL;
            _tmp9_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
            vala_ccode_function_add_assignment (_tmp9_, target_expr, (ValaCCodeExpression*) iter_call);
            _vala_ccode_node_unref0 (iter_call);
            if (may_fail) {
                  *may_fail = _may_fail;
            }
            return;
      }
      _tmp10_ = vala_ccode_base_module_get_next_temp_var_id ((ValaCCodeBaseModule*) self);
      _tmp11_ = _tmp10_;
      vala_ccode_base_module_set_next_temp_var_id ((ValaCCodeBaseModule*) self, _tmp11_ + 1);
      _tmp12_ = g_strdup_printf ("_tmp%d_", _tmp11_);
      temp_name = _tmp12_;
      _tmp13_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp14_ = vala_ccode_variable_declarator_new (temp_name, NULL, NULL);
      _tmp15_ = _tmp14_;
      vala_ccode_function_add_declaration (_tmp13_, "GVariant*", (ValaCCodeDeclarator*) _tmp15_, 0);
      _vala_ccode_node_unref0 (_tmp15_);
      _tmp16_ = vala_ccode_identifier_new (temp_name);
      variant_expr = _tmp16_;
      _tmp17_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      vala_ccode_function_add_assignment (_tmp17_, (ValaCCodeExpression*) variant_expr, (ValaCCodeExpression*) iter_call);
      _tmp19_ = vala_ccode_base_module_deserialize_expression ((ValaCCodeBaseModule*) self, type, (ValaCCodeExpression*) variant_expr, target_expr, error_expr, &_tmp18_);
      _may_fail = _tmp18_;
      _result_ = _tmp19_;
      if (_result_ == NULL) {
            _vala_ccode_node_unref0 (_result_);
            _vala_ccode_node_unref0 (variant_expr);
            _g_free0 (temp_name);
            _vala_ccode_node_unref0 (iter_call);
            if (may_fail) {
                  *may_fail = _may_fail;
            }
            return;
      }
      _tmp20_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      vala_ccode_function_add_assignment (_tmp20_, target_expr, _result_);
      _tmp21_ = vala_ccode_identifier_new ("g_variant_unref");
      _tmp22_ = _tmp21_;
      _tmp23_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp22_);
      _tmp24_ = _tmp23_;
      _vala_ccode_node_unref0 (_tmp22_);
      unref = _tmp24_;
      vala_ccode_function_call_add_argument (unref, (ValaCCodeExpression*) variant_expr);
      _tmp25_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      vala_ccode_function_add_expression (_tmp25_, (ValaCCodeExpression*) unref);
      _vala_ccode_node_unref0 (unref);
      _vala_ccode_node_unref0 (_result_);
      _vala_ccode_node_unref0 (variant_expr);
      _g_free0 (temp_name);
      _vala_ccode_node_unref0 (iter_call);
      if (may_fail) {
            *may_fail = _may_fail;
      }
}


static ValaCCodeExpression* vala_gvariant_module_generate_enum_value_to_string (ValaGVariantModule* self, ValaEnumValueType* type, ValaCCodeExpression* expr) {
      ValaCCodeExpression* result = NULL;
      ValaTypeSymbol* _tmp0_ = NULL;
      ValaTypeSymbol* _tmp1_;
      ValaEnum* _tmp2_;
      ValaEnum* en;
      gchar* _tmp3_ = NULL;
      gchar* _tmp4_;
      gchar* _tmp5_ = NULL;
      gchar* _tmp6_;
      gchar* to_string_name;
      ValaCCodeIdentifier* _tmp7_ = NULL;
      ValaCCodeIdentifier* _tmp8_;
      ValaCCodeFunctionCall* _tmp9_ = NULL;
      ValaCCodeFunctionCall* _tmp10_;
      ValaCCodeFunctionCall* to_string_call;
      g_return_val_if_fail (self != NULL, NULL);
      g_return_val_if_fail (type != NULL, NULL);
      _tmp0_ = vala_value_type_get_type_symbol ((ValaValueType*) type);
      _tmp1_ = _tmp0_;
      _tmp2_ = _vala_code_node_ref0 (VALA_IS_ENUM (_tmp1_) ? ((ValaEnum*) _tmp1_) : NULL);
      en = _tmp2_;
      _tmp3_ = vala_symbol_get_lower_case_cname ((ValaSymbol*) en, NULL);
      _tmp4_ = _tmp3_;
      _tmp5_ = g_strdup_printf ("%s_to_string", _tmp4_);
      _tmp6_ = _tmp5_;
      _g_free0 (_tmp4_);
      to_string_name = _tmp6_;
      _tmp7_ = vala_ccode_identifier_new (to_string_name);
      _tmp8_ = _tmp7_;
      _tmp9_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp8_);
      _tmp10_ = _tmp9_;
      _vala_ccode_node_unref0 (_tmp8_);
      to_string_call = _tmp10_;
      vala_ccode_function_call_add_argument (to_string_call, expr);
      result = (ValaCCodeExpression*) to_string_call;
      _g_free0 (to_string_name);
      _vala_code_node_unref0 (en);
      return result;
}


ValaCCodeFunction* vala_gvariant_module_generate_enum_to_string_function_declaration (ValaGVariantModule* self, ValaEnum* en) {
      ValaCCodeFunction* result = NULL;
      gchar* _tmp0_ = NULL;
      gchar* _tmp1_;
      gchar* _tmp2_ = NULL;
      gchar* _tmp3_;
      gchar* to_string_name;
      ValaCCodeFunction* _tmp4_ = NULL;
      ValaCCodeFunction* to_string_func;
      gchar* _tmp5_ = NULL;
      gchar* _tmp6_;
      ValaCCodeParameter* _tmp7_ = NULL;
      ValaCCodeParameter* _tmp8_;
      g_return_val_if_fail (self != NULL, NULL);
      g_return_val_if_fail (en != NULL, NULL);
      _tmp0_ = vala_symbol_get_lower_case_cname ((ValaSymbol*) en, NULL);
      _tmp1_ = _tmp0_;
      _tmp2_ = g_strdup_printf ("%s_to_string", _tmp1_);
      _tmp3_ = _tmp2_;
      _g_free0 (_tmp1_);
      to_string_name = _tmp3_;
      _tmp4_ = vala_ccode_function_new (to_string_name, "const char*");
      to_string_func = _tmp4_;
      _tmp5_ = vala_typesymbol_get_cname ((ValaTypeSymbol*) en, FALSE);
      _tmp6_ = _tmp5_;
      _tmp7_ = vala_ccode_parameter_new ("value", _tmp6_);
      _tmp8_ = _tmp7_;
      vala_ccode_function_add_parameter (to_string_func, _tmp8_);
      _vala_ccode_node_unref0 (_tmp8_);
      _g_free0 (_tmp6_);
      result = to_string_func;
      _g_free0 (to_string_name);
      return result;
}


ValaCCodeFunction* vala_gvariant_module_generate_enum_to_string_function (ValaGVariantModule* self, ValaEnum* en) {
      ValaCCodeFunction* result = NULL;
      gchar* _tmp0_ = NULL;
      gchar* _tmp1_;
      gchar* _tmp2_ = NULL;
      gchar* _tmp3_;
      gchar* to_string_name;
      ValaCCodeFunction* _tmp4_ = NULL;
      ValaCCodeFunction* to_string_func;
      gchar* _tmp5_ = NULL;
      gchar* _tmp6_;
      ValaCCodeParameter* _tmp7_ = NULL;
      ValaCCodeParameter* _tmp8_;
      ValaCCodeFunction* _tmp9_ = NULL;
      ValaCCodeVariableDeclarator* _tmp10_ = NULL;
      ValaCCodeVariableDeclarator* _tmp11_;
      ValaCCodeFunction* _tmp12_ = NULL;
      ValaCCodeIdentifier* _tmp13_ = NULL;
      ValaCCodeIdentifier* _tmp14_;
      ValaCCodeFunction* _tmp33_ = NULL;
      ValaCCodeIdentifier* _tmp34_ = NULL;
      ValaCCodeIdentifier* _tmp35_;
      g_return_val_if_fail (self != NULL, NULL);
      g_return_val_if_fail (en != NULL, NULL);
      _tmp0_ = vala_symbol_get_lower_case_cname ((ValaSymbol*) en, NULL);
      _tmp1_ = _tmp0_;
      _tmp2_ = g_strdup_printf ("%s_to_string", _tmp1_);
      _tmp3_ = _tmp2_;
      _g_free0 (_tmp1_);
      to_string_name = _tmp3_;
      _tmp4_ = vala_ccode_function_new (to_string_name, "const char*");
      to_string_func = _tmp4_;
      _tmp5_ = vala_typesymbol_get_cname ((ValaTypeSymbol*) en, FALSE);
      _tmp6_ = _tmp5_;
      _tmp7_ = vala_ccode_parameter_new ("value", _tmp6_);
      _tmp8_ = _tmp7_;
      vala_ccode_function_add_parameter (to_string_func, _tmp8_);
      _vala_ccode_node_unref0 (_tmp8_);
      _g_free0 (_tmp6_);
      vala_ccode_base_module_push_function ((ValaCCodeBaseModule*) self, to_string_func);
      _tmp9_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp10_ = vala_ccode_variable_declarator_new ("str", NULL, NULL);
      _tmp11_ = _tmp10_;
      vala_ccode_function_add_declaration (_tmp9_, "const char *", (ValaCCodeDeclarator*) _tmp11_, 0);
      _vala_ccode_node_unref0 (_tmp11_);
      _tmp12_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp13_ = vala_ccode_identifier_new ("value");
      _tmp14_ = _tmp13_;
      vala_ccode_function_open_switch (_tmp12_, (ValaCCodeExpression*) _tmp14_);
      _vala_ccode_node_unref0 (_tmp14_);
      {
            ValaList* _tmp15_ = NULL;
            ValaList* _enum_value_list;
            gint _tmp16_;
            gint _enum_value_size;
            gint _enum_value_index;
            _tmp15_ = vala_enum_get_values (en);
            _enum_value_list = _tmp15_;
            _tmp16_ = vala_collection_get_size ((ValaCollection*) _enum_value_list);
            _enum_value_size = _tmp16_;
            _enum_value_index = -1;
            while (TRUE) {
                  gpointer _tmp17_ = NULL;
                  ValaEnumValue* enum_value;
                  const gchar* _tmp18_ = NULL;
                  gchar* _tmp19_ = NULL;
                  gchar* dbus_value;
                  ValaCCodeFunction* _tmp20_ = NULL;
                  gchar* _tmp21_ = NULL;
                  gchar* _tmp22_;
                  ValaCCodeIdentifier* _tmp23_ = NULL;
                  ValaCCodeIdentifier* _tmp24_;
                  ValaCCodeFunction* _tmp25_ = NULL;
                  ValaCCodeIdentifier* _tmp26_ = NULL;
                  ValaCCodeIdentifier* _tmp27_;
                  gchar* _tmp28_ = NULL;
                  gchar* _tmp29_;
                  ValaCCodeConstant* _tmp30_ = NULL;
                  ValaCCodeConstant* _tmp31_;
                  ValaCCodeFunction* _tmp32_ = NULL;
                  _enum_value_index = _enum_value_index + 1;
                  if (!(_enum_value_index < _enum_value_size)) {
                        break;
                  }
                  _tmp17_ = vala_list_get (_enum_value_list, _enum_value_index);
                  enum_value = (ValaEnumValue*) _tmp17_;
                  _tmp18_ = vala_symbol_get_name ((ValaSymbol*) enum_value);
                  _tmp19_ = vala_gvariant_module_get_dbus_value (self, enum_value, _tmp18_);
                  dbus_value = _tmp19_;
                  _tmp20_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
                  _tmp21_ = vala_constant_get_cname ((ValaConstant*) enum_value);
                  _tmp22_ = _tmp21_;
                  _tmp23_ = vala_ccode_identifier_new (_tmp22_);
                  _tmp24_ = _tmp23_;
                  vala_ccode_function_add_case (_tmp20_, (ValaCCodeExpression*) _tmp24_);
                  _vala_ccode_node_unref0 (_tmp24_);
                  _g_free0 (_tmp22_);
                  _tmp25_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
                  _tmp26_ = vala_ccode_identifier_new ("str");
                  _tmp27_ = _tmp26_;
                  _tmp28_ = g_strdup_printf ("\"%s\"", dbus_value);
                  _tmp29_ = _tmp28_;
                  _tmp30_ = vala_ccode_constant_new (_tmp29_);
                  _tmp31_ = _tmp30_;
                  vala_ccode_function_add_assignment (_tmp25_, (ValaCCodeExpression*) _tmp27_, (ValaCCodeExpression*) _tmp31_);
                  _vala_ccode_node_unref0 (_tmp31_);
                  _g_free0 (_tmp29_);
                  _vala_ccode_node_unref0 (_tmp27_);
                  _tmp32_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
                  vala_ccode_function_add_break (_tmp32_);
                  _g_free0 (dbus_value);
                  _vala_code_node_unref0 (enum_value);
            }
            _vala_iterable_unref0 (_enum_value_list);
      }
      _tmp33_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp34_ = vala_ccode_identifier_new ("str");
      _tmp35_ = _tmp34_;
      vala_ccode_function_add_return (_tmp33_, (ValaCCodeExpression*) _tmp35_);
      _vala_ccode_node_unref0 (_tmp35_);
      vala_ccode_base_module_pop_function ((ValaCCodeBaseModule*) self);
      result = to_string_func;
      _g_free0 (to_string_name);
      return result;
}


static ValaCCodeExpression* vala_gvariant_module_serialize_basic (ValaGVariantModule* self, ValaGVariantModuleBasicTypeInfo* basic_type, ValaCCodeExpression* expr) {
      ValaCCodeExpression* result = NULL;
      gchar* _tmp0_;
      gchar* _tmp1_;
      ValaCCodeIdentifier* _tmp2_ = NULL;
      ValaCCodeIdentifier* _tmp3_;
      ValaCCodeFunctionCall* _tmp4_ = NULL;
      ValaCCodeFunctionCall* _tmp5_;
      ValaCCodeFunctionCall* new_call;
      g_return_val_if_fail (self != NULL, NULL);
      g_return_val_if_fail (expr != NULL, NULL);
      _tmp0_ = g_strconcat ("g_variant_new_", (*basic_type).type_name, NULL);
      _tmp1_ = _tmp0_;
      _tmp2_ = vala_ccode_identifier_new (_tmp1_);
      _tmp3_ = _tmp2_;
      _tmp4_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp3_);
      _tmp5_ = _tmp4_;
      _vala_ccode_node_unref0 (_tmp3_);
      _g_free0 (_tmp1_);
      new_call = _tmp5_;
      vala_ccode_function_call_add_argument (new_call, expr);
      result = (ValaCCodeExpression*) new_call;
      return result;
}


static ValaCCodeExpression* vala_gvariant_module_serialize_array (ValaGVariantModule* self, ValaArrayType* array_type, ValaCCodeExpression* array_expr) {
      ValaCCodeExpression* result = NULL;
      gint _tmp0_;
      gint _tmp1_;
      gchar* _tmp2_ = NULL;
      gchar* array_iter_name;
      ValaCCodeFunction* _tmp3_ = NULL;
      gchar* _tmp4_ = NULL;
      gchar* _tmp5_;
      ValaCCodeVariableDeclarator* _tmp6_ = NULL;
      ValaCCodeVariableDeclarator* _tmp7_;
      ValaCCodeFunction* _tmp8_ = NULL;
      ValaCCodeIdentifier* _tmp9_ = NULL;
      ValaCCodeIdentifier* _tmp10_;
      ValaCCodeIdentifier* _tmp11_ = NULL;
      ValaCCodeIdentifier* _tmp12_;
      ValaCCodeExpression* _tmp13_ = NULL;
      ValaCCodeExpression* _tmp14_;
      g_return_val_if_fail (self != NULL, NULL);
      g_return_val_if_fail (array_type != NULL, NULL);
      g_return_val_if_fail (array_expr != NULL, NULL);
      _tmp0_ = vala_ccode_base_module_get_next_temp_var_id ((ValaCCodeBaseModule*) self);
      _tmp1_ = _tmp0_;
      vala_ccode_base_module_set_next_temp_var_id ((ValaCCodeBaseModule*) self, _tmp1_ + 1);
      _tmp2_ = g_strdup_printf ("_tmp%d_", _tmp1_);
      array_iter_name = _tmp2_;
      _tmp3_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp4_ = vala_data_type_get_cname ((ValaDataType*) array_type);
      _tmp5_ = _tmp4_;
      _tmp6_ = vala_ccode_variable_declarator_new (array_iter_name, NULL, NULL);
      _tmp7_ = _tmp6_;
      vala_ccode_function_add_declaration (_tmp3_, _tmp5_, (ValaCCodeDeclarator*) _tmp7_, 0);
      _vala_ccode_node_unref0 (_tmp7_);
      _g_free0 (_tmp5_);
      _tmp8_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp9_ = vala_ccode_identifier_new (array_iter_name);
      _tmp10_ = _tmp9_;
      vala_ccode_function_add_assignment (_tmp8_, (ValaCCodeExpression*) _tmp10_, array_expr);
      _vala_ccode_node_unref0 (_tmp10_);
      _tmp11_ = vala_ccode_identifier_new (array_iter_name);
      _tmp12_ = _tmp11_;
      _tmp13_ = vala_gvariant_module_serialize_array_dim (self, array_type, 1, array_expr, (ValaCCodeExpression*) _tmp12_);
      _tmp14_ = _tmp13_;
      _vala_ccode_node_unref0 (_tmp12_);
      result = _tmp14_;
      _g_free0 (array_iter_name);
      return result;
}


static ValaCCodeExpression* vala_gvariant_module_serialize_array_dim (ValaGVariantModule* self, ValaArrayType* array_type, gint dim, ValaCCodeExpression* array_expr, ValaCCodeExpression* array_iter_expr) {
      ValaCCodeExpression* result = NULL;
      gint _tmp0_;
      gint _tmp1_;
      gchar* _tmp2_ = NULL;
      gchar* builder_name;
      gint _tmp3_;
      gint _tmp4_;
      gchar* _tmp5_ = NULL;
      gchar* index_name;
      ValaCCodeFunction* _tmp6_ = NULL;
      ValaCCodeVariableDeclarator* _tmp7_ = NULL;
      ValaCCodeVariableDeclarator* _tmp8_;
      ValaCCodeFunction* _tmp9_ = NULL;
      ValaCCodeVariableDeclarator* _tmp10_ = NULL;
      ValaCCodeVariableDeclarator* _tmp11_;
      ValaCCodeIdentifier* _tmp12_ = NULL;
      ValaCCodeIdentifier* _tmp13_;
      ValaCCodeFunctionCall* _tmp14_ = NULL;
      ValaCCodeFunctionCall* _tmp15_;
      ValaCCodeFunctionCall* gvariant_type;
      gchar* _tmp16_ = NULL;
      gchar* _tmp17_;
      gchar* _tmp18_ = NULL;
      gchar* _tmp19_;
      ValaCCodeConstant* _tmp20_ = NULL;
      ValaCCodeConstant* _tmp21_;
      ValaCCodeIdentifier* _tmp22_ = NULL;
      ValaCCodeIdentifier* _tmp23_;
      ValaCCodeFunctionCall* _tmp24_ = NULL;
      ValaCCodeFunctionCall* _tmp25_;
      ValaCCodeFunctionCall* builder_init;
      ValaCCodeIdentifier* _tmp26_ = NULL;
      ValaCCodeIdentifier* _tmp27_;
      ValaCCodeUnaryExpression* _tmp28_ = NULL;
      ValaCCodeUnaryExpression* _tmp29_;
      ValaCCodeFunction* _tmp30_ = NULL;
      ValaCCodeIdentifier* _tmp31_ = NULL;
      ValaCCodeIdentifier* _tmp32_;
      ValaCCodeConstant* _tmp33_ = NULL;
      ValaCCodeConstant* _tmp34_;
      ValaCCodeAssignment* _tmp35_ = NULL;
      ValaCCodeAssignment* _tmp36_;
      ValaCCodeAssignment* cforinit;
      ValaCCodeIdentifier* _tmp37_ = NULL;
      ValaCCodeIdentifier* _tmp38_;
      ValaCCodeExpression* _tmp39_ = NULL;
      ValaCCodeExpression* _tmp40_;
      ValaCCodeBinaryExpression* _tmp41_ = NULL;
      ValaCCodeBinaryExpression* _tmp42_;
      ValaCCodeBinaryExpression* cforcond;
      ValaCCodeIdentifier* _tmp43_ = NULL;
      ValaCCodeIdentifier* _tmp44_;
      ValaCCodeUnaryExpression* _tmp45_ = NULL;
      ValaCCodeUnaryExpression* _tmp46_;
      ValaCCodeUnaryExpression* cforiter;
      ValaCCodeFunction* _tmp47_ = NULL;
      ValaCCodeExpression* element_variant = NULL;
      gint _tmp48_;
      ValaCCodeIdentifier* _tmp53_ = NULL;
      ValaCCodeIdentifier* _tmp54_;
      ValaCCodeFunctionCall* _tmp55_ = NULL;
      ValaCCodeFunctionCall* _tmp56_;
      ValaCCodeFunctionCall* builder_add;
      ValaCCodeIdentifier* _tmp57_ = NULL;
      ValaCCodeIdentifier* _tmp58_;
      ValaCCodeUnaryExpression* _tmp59_ = NULL;
      ValaCCodeUnaryExpression* _tmp60_;
      ValaCCodeFunction* _tmp61_ = NULL;
      gint _tmp62_;
      ValaCCodeFunction* _tmp65_ = NULL;
      ValaCCodeIdentifier* _tmp66_ = NULL;
      ValaCCodeIdentifier* _tmp67_;
      ValaCCodeFunctionCall* _tmp68_ = NULL;
      ValaCCodeFunctionCall* _tmp69_;
      ValaCCodeFunctionCall* builder_end;
      ValaCCodeIdentifier* _tmp70_ = NULL;
      ValaCCodeIdentifier* _tmp71_;
      ValaCCodeUnaryExpression* _tmp72_ = NULL;
      ValaCCodeUnaryExpression* _tmp73_;
      g_return_val_if_fail (self != NULL, NULL);
      g_return_val_if_fail (array_type != NULL, NULL);
      g_return_val_if_fail (array_expr != NULL, NULL);
      g_return_val_if_fail (array_iter_expr != NULL, NULL);
      _tmp0_ = vala_ccode_base_module_get_next_temp_var_id ((ValaCCodeBaseModule*) self);
      _tmp1_ = _tmp0_;
      vala_ccode_base_module_set_next_temp_var_id ((ValaCCodeBaseModule*) self, _tmp1_ + 1);
      _tmp2_ = g_strdup_printf ("_tmp%d_", _tmp1_);
      builder_name = _tmp2_;
      _tmp3_ = vala_ccode_base_module_get_next_temp_var_id ((ValaCCodeBaseModule*) self);
      _tmp4_ = _tmp3_;
      vala_ccode_base_module_set_next_temp_var_id ((ValaCCodeBaseModule*) self, _tmp4_ + 1);
      _tmp5_ = g_strdup_printf ("_tmp%d_", _tmp4_);
      index_name = _tmp5_;
      _tmp6_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp7_ = vala_ccode_variable_declarator_new (builder_name, NULL, NULL);
      _tmp8_ = _tmp7_;
      vala_ccode_function_add_declaration (_tmp6_, "GVariantBuilder", (ValaCCodeDeclarator*) _tmp8_, 0);
      _vala_ccode_node_unref0 (_tmp8_);
      _tmp9_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp10_ = vala_ccode_variable_declarator_new (index_name, NULL, NULL);
      _tmp11_ = _tmp10_;
      vala_ccode_function_add_declaration (_tmp9_, "int", (ValaCCodeDeclarator*) _tmp11_, 0);
      _vala_ccode_node_unref0 (_tmp11_);
      _tmp12_ = vala_ccode_identifier_new ("G_VARIANT_TYPE");
      _tmp13_ = _tmp12_;
      _tmp14_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp13_);
      _tmp15_ = _tmp14_;
      _vala_ccode_node_unref0 (_tmp13_);
      gvariant_type = _tmp15_;
      _tmp16_ = vala_gvariant_module_get_type_signature ((ValaDataType*) array_type, NULL);
      _tmp17_ = _tmp16_;
      _tmp18_ = g_strdup_printf ("\"%s\"", _tmp17_);
      _tmp19_ = _tmp18_;
      _tmp20_ = vala_ccode_constant_new (_tmp19_);
      _tmp21_ = _tmp20_;
      vala_ccode_function_call_add_argument (gvariant_type, (ValaCCodeExpression*) _tmp21_);
      _vala_ccode_node_unref0 (_tmp21_);
      _g_free0 (_tmp19_);
      _g_free0 (_tmp17_);
      _tmp22_ = vala_ccode_identifier_new ("g_variant_builder_init");
      _tmp23_ = _tmp22_;
      _tmp24_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp23_);
      _tmp25_ = _tmp24_;
      _vala_ccode_node_unref0 (_tmp23_);
      builder_init = _tmp25_;
      _tmp26_ = vala_ccode_identifier_new (builder_name);
      _tmp27_ = _tmp26_;
      _tmp28_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp27_);
      _tmp29_ = _tmp28_;
      vala_ccode_function_call_add_argument (builder_init, (ValaCCodeExpression*) _tmp29_);
      _vala_ccode_node_unref0 (_tmp29_);
      _vala_ccode_node_unref0 (_tmp27_);
      vala_ccode_function_call_add_argument (builder_init, (ValaCCodeExpression*) gvariant_type);
      _tmp30_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      vala_ccode_function_add_expression (_tmp30_, (ValaCCodeExpression*) builder_init);
      _tmp31_ = vala_ccode_identifier_new (index_name);
      _tmp32_ = _tmp31_;
      _tmp33_ = vala_ccode_constant_new ("0");
      _tmp34_ = _tmp33_;
      _tmp35_ = vala_ccode_assignment_new ((ValaCCodeExpression*) _tmp32_, (ValaCCodeExpression*) _tmp34_, VALA_CCODE_ASSIGNMENT_OPERATOR_SIMPLE);
      _tmp36_ = _tmp35_;
      _vala_ccode_node_unref0 (_tmp34_);
      _vala_ccode_node_unref0 (_tmp32_);
      cforinit = _tmp36_;
      _tmp37_ = vala_ccode_identifier_new (index_name);
      _tmp38_ = _tmp37_;
      _tmp39_ = vala_gvariant_module_get_array_length (self, array_expr, dim);
      _tmp40_ = _tmp39_;
      _tmp41_ = vala_ccode_binary_expression_new (VALA_CCODE_BINARY_OPERATOR_LESS_THAN, (ValaCCodeExpression*) _tmp38_, _tmp40_);
      _tmp42_ = _tmp41_;
      _vala_ccode_node_unref0 (_tmp40_);
      _vala_ccode_node_unref0 (_tmp38_);
      cforcond = _tmp42_;
      _tmp43_ = vala_ccode_identifier_new (index_name);
      _tmp44_ = _tmp43_;
      _tmp45_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_POSTFIX_INCREMENT, (ValaCCodeExpression*) _tmp44_);
      _tmp46_ = _tmp45_;
      _vala_ccode_node_unref0 (_tmp44_);
      cforiter = _tmp46_;
      _tmp47_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      vala_ccode_function_open_for (_tmp47_, (ValaCCodeExpression*) cforinit, (ValaCCodeExpression*) cforcond, (ValaCCodeExpression*) cforiter);
      _tmp48_ = vala_array_type_get_rank (array_type);
      if (dim < _tmp48_) {
            ValaCCodeExpression* _tmp49_ = NULL;
            _tmp49_ = vala_gvariant_module_serialize_array_dim (self, array_type, dim + 1, array_expr, array_iter_expr);
            _vala_ccode_node_unref0 (element_variant);
            element_variant = _tmp49_;
      } else {
            ValaCCodeUnaryExpression* _tmp50_ = NULL;
            ValaCCodeUnaryExpression* element_expr;
            ValaDataType* _tmp51_ = NULL;
            ValaCCodeExpression* _tmp52_ = NULL;
            _tmp50_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_POINTER_INDIRECTION, array_iter_expr);
            element_expr = _tmp50_;
            _tmp51_ = vala_array_type_get_element_type (array_type);
            _tmp52_ = vala_ccode_base_module_serialize_expression ((ValaCCodeBaseModule*) self, _tmp51_, (ValaCCodeExpression*) element_expr);
            _vala_ccode_node_unref0 (element_variant);
            element_variant = _tmp52_;
            _vala_ccode_node_unref0 (element_expr);
      }
      _tmp53_ = vala_ccode_identifier_new ("g_variant_builder_add_value");
      _tmp54_ = _tmp53_;
      _tmp55_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp54_);
      _tmp56_ = _tmp55_;
      _vala_ccode_node_unref0 (_tmp54_);
      builder_add = _tmp56_;
      _tmp57_ = vala_ccode_identifier_new (builder_name);
      _tmp58_ = _tmp57_;
      _tmp59_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp58_);
      _tmp60_ = _tmp59_;
      vala_ccode_function_call_add_argument (builder_add, (ValaCCodeExpression*) _tmp60_);
      _vala_ccode_node_unref0 (_tmp60_);
      _vala_ccode_node_unref0 (_tmp58_);
      vala_ccode_function_call_add_argument (builder_add, element_variant);
      _tmp61_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      vala_ccode_function_add_expression (_tmp61_, (ValaCCodeExpression*) builder_add);
      _tmp62_ = vala_array_type_get_rank (array_type);
      if (dim == _tmp62_) {
            ValaCCodeUnaryExpression* _tmp63_ = NULL;
            ValaCCodeUnaryExpression* array_iter_incr;
            ValaCCodeFunction* _tmp64_ = NULL;
            _tmp63_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_POSTFIX_INCREMENT, array_iter_expr);
            array_iter_incr = _tmp63_;
            _tmp64_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
            vala_ccode_function_add_expression (_tmp64_, (ValaCCodeExpression*) array_iter_incr);
            _vala_ccode_node_unref0 (array_iter_incr);
      }
      _tmp65_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      vala_ccode_function_close (_tmp65_);
      _tmp66_ = vala_ccode_identifier_new ("g_variant_builder_end");
      _tmp67_ = _tmp66_;
      _tmp68_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp67_);
      _tmp69_ = _tmp68_;
      _vala_ccode_node_unref0 (_tmp67_);
      builder_end = _tmp69_;
      _tmp70_ = vala_ccode_identifier_new (builder_name);
      _tmp71_ = _tmp70_;
      _tmp72_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp71_);
      _tmp73_ = _tmp72_;
      vala_ccode_function_call_add_argument (builder_end, (ValaCCodeExpression*) _tmp73_);
      _vala_ccode_node_unref0 (_tmp73_);
      _vala_ccode_node_unref0 (_tmp71_);
      result = (ValaCCodeExpression*) builder_end;
      _vala_ccode_node_unref0 (builder_add);
      _vala_ccode_node_unref0 (element_variant);
      _vala_ccode_node_unref0 (cforiter);
      _vala_ccode_node_unref0 (cforcond);
      _vala_ccode_node_unref0 (cforinit);
      _vala_ccode_node_unref0 (builder_init);
      _vala_ccode_node_unref0 (gvariant_type);
      _g_free0 (index_name);
      _g_free0 (builder_name);
      return result;
}


static ValaCCodeExpression* vala_gvariant_module_serialize_struct (ValaGVariantModule* self, ValaStruct* st, ValaCCodeExpression* struct_expr) {
      ValaCCodeExpression* result = NULL;
      gint _tmp0_;
      gint _tmp1_;
      gchar* _tmp2_ = NULL;
      gchar* builder_name;
      ValaCCodeFunction* _tmp3_ = NULL;
      ValaCCodeVariableDeclarator* _tmp4_ = NULL;
      ValaCCodeVariableDeclarator* _tmp5_;
      ValaCCodeIdentifier* _tmp6_ = NULL;
      ValaCCodeIdentifier* _tmp7_;
      ValaCCodeFunctionCall* _tmp8_ = NULL;
      ValaCCodeFunctionCall* _tmp9_;
      ValaCCodeFunctionCall* iter_call;
      ValaCCodeIdentifier* _tmp10_ = NULL;
      ValaCCodeIdentifier* _tmp11_;
      ValaCCodeUnaryExpression* _tmp12_ = NULL;
      ValaCCodeUnaryExpression* _tmp13_;
      ValaCCodeIdentifier* _tmp14_ = NULL;
      ValaCCodeIdentifier* _tmp15_;
      ValaCCodeFunction* _tmp16_ = NULL;
      gboolean field_found;
      ValaCCodeIdentifier* _tmp28_ = NULL;
      ValaCCodeIdentifier* _tmp29_;
      ValaCCodeFunctionCall* _tmp30_ = NULL;
      ValaCCodeFunctionCall* _tmp31_;
      ValaCCodeFunctionCall* builder_end;
      ValaCCodeIdentifier* _tmp32_ = NULL;
      ValaCCodeIdentifier* _tmp33_;
      ValaCCodeUnaryExpression* _tmp34_ = NULL;
      ValaCCodeUnaryExpression* _tmp35_;
      g_return_val_if_fail (self != NULL, NULL);
      g_return_val_if_fail (st != NULL, NULL);
      g_return_val_if_fail (struct_expr != NULL, NULL);
      _tmp0_ = vala_ccode_base_module_get_next_temp_var_id ((ValaCCodeBaseModule*) self);
      _tmp1_ = _tmp0_;
      vala_ccode_base_module_set_next_temp_var_id ((ValaCCodeBaseModule*) self, _tmp1_ + 1);
      _tmp2_ = g_strdup_printf ("_tmp%d_", _tmp1_);
      builder_name = _tmp2_;
      _tmp3_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp4_ = vala_ccode_variable_declarator_new (builder_name, NULL, NULL);
      _tmp5_ = _tmp4_;
      vala_ccode_function_add_declaration (_tmp3_, "GVariantBuilder", (ValaCCodeDeclarator*) _tmp5_, 0);
      _vala_ccode_node_unref0 (_tmp5_);
      _tmp6_ = vala_ccode_identifier_new ("g_variant_builder_init");
      _tmp7_ = _tmp6_;
      _tmp8_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp7_);
      _tmp9_ = _tmp8_;
      _vala_ccode_node_unref0 (_tmp7_);
      iter_call = _tmp9_;
      _tmp10_ = vala_ccode_identifier_new (builder_name);
      _tmp11_ = _tmp10_;
      _tmp12_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp11_);
      _tmp13_ = _tmp12_;
      vala_ccode_function_call_add_argument (iter_call, (ValaCCodeExpression*) _tmp13_);
      _vala_ccode_node_unref0 (_tmp13_);
      _vala_ccode_node_unref0 (_tmp11_);
      _tmp14_ = vala_ccode_identifier_new ("G_VARIANT_TYPE_TUPLE");
      _tmp15_ = _tmp14_;
      vala_ccode_function_call_add_argument (iter_call, (ValaCCodeExpression*) _tmp15_);
      _vala_ccode_node_unref0 (_tmp15_);
      _tmp16_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      vala_ccode_function_add_expression (_tmp16_, (ValaCCodeExpression*) iter_call);
      field_found = FALSE;
      {
            ValaList* _tmp17_ = NULL;
            ValaList* _f_list;
            gint _tmp18_;
            gint _f_size;
            gint _f_index;
            _tmp17_ = vala_struct_get_fields (st);
            _f_list = _tmp17_;
            _tmp18_ = vala_collection_get_size ((ValaCollection*) _f_list);
            _f_size = _tmp18_;
            _f_index = -1;
            while (TRUE) {
                  gpointer _tmp19_ = NULL;
                  ValaField* f;
                  ValaMemberBinding _tmp20_;
                  ValaDataType* _tmp21_ = NULL;
                  ValaCCodeIdentifier* _tmp22_ = NULL;
                  ValaCCodeIdentifier* _tmp23_;
                  gchar* _tmp24_ = NULL;
                  gchar* _tmp25_;
                  ValaCCodeMemberAccess* _tmp26_ = NULL;
                  ValaCCodeMemberAccess* _tmp27_;
                  _f_index = _f_index + 1;
                  if (!(_f_index < _f_size)) {
                        break;
                  }
                  _tmp19_ = vala_list_get (_f_list, _f_index);
                  f = (ValaField*) _tmp19_;
                  _tmp20_ = vala_field_get_binding (f);
                  if (_tmp20_ != VALA_MEMBER_BINDING_INSTANCE) {
                        _vala_code_node_unref0 (f);
                        continue;
                  }
                  field_found = TRUE;
                  _tmp21_ = vala_variable_get_variable_type ((ValaVariable*) f);
                  _tmp22_ = vala_ccode_identifier_new (builder_name);
                  _tmp23_ = _tmp22_;
                  _tmp24_ = vala_field_get_cname (f);
                  _tmp25_ = _tmp24_;
                  _tmp26_ = vala_ccode_member_access_new (struct_expr, _tmp25_, FALSE);
                  _tmp27_ = _tmp26_;
                  vala_gvariant_module_write_expression (self, _tmp21_, (ValaCCodeExpression*) _tmp23_, (ValaCCodeExpression*) _tmp27_, (ValaSymbol*) f);
                  _vala_ccode_node_unref0 (_tmp27_);
                  _g_free0 (_tmp25_);
                  _vala_ccode_node_unref0 (_tmp23_);
                  _vala_code_node_unref0 (f);
            }
            _vala_iterable_unref0 (_f_list);
      }
      if (!field_found) {
            result = NULL;
            _vala_ccode_node_unref0 (iter_call);
            _g_free0 (builder_name);
            return result;
      }
      _tmp28_ = vala_ccode_identifier_new ("g_variant_builder_end");
      _tmp29_ = _tmp28_;
      _tmp30_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp29_);
      _tmp31_ = _tmp30_;
      _vala_ccode_node_unref0 (_tmp29_);
      builder_end = _tmp31_;
      _tmp32_ = vala_ccode_identifier_new (builder_name);
      _tmp33_ = _tmp32_;
      _tmp34_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp33_);
      _tmp35_ = _tmp34_;
      vala_ccode_function_call_add_argument (builder_end, (ValaCCodeExpression*) _tmp35_);
      _vala_ccode_node_unref0 (_tmp35_);
      _vala_ccode_node_unref0 (_tmp33_);
      result = (ValaCCodeExpression*) builder_end;
      _vala_ccode_node_unref0 (iter_call);
      _g_free0 (builder_name);
      return result;
}


static ValaCCodeExpression* vala_gvariant_module_serialize_hash_table (ValaGVariantModule* self, ValaObjectType* type, ValaCCodeExpression* hash_table_expr) {
      ValaCCodeExpression* result = NULL;
      gint _tmp0_;
      gint _tmp1_;
      gchar* _tmp2_ = NULL;
      gchar* subiter_name;
      gint _tmp3_;
      gint _tmp4_;
      gchar* _tmp5_ = NULL;
      gchar* tableiter_name;
      gint _tmp6_;
      gint _tmp7_;
      gchar* _tmp8_ = NULL;
      gchar* key_name;
      gint _tmp9_;
      gint _tmp10_;
      gchar* _tmp11_ = NULL;
      gchar* value_name;
      ValaList* _tmp12_ = NULL;
      ValaList* type_args;
      gint _tmp13_;
      gpointer _tmp14_ = NULL;
      ValaDataType* key_type;
      gpointer _tmp15_ = NULL;
      ValaDataType* value_type;
      ValaCCodeFunction* _tmp16_ = NULL;
      ValaCCodeVariableDeclarator* _tmp17_ = NULL;
      ValaCCodeVariableDeclarator* _tmp18_;
      ValaCCodeFunction* _tmp19_ = NULL;
      ValaCCodeVariableDeclarator* _tmp20_ = NULL;
      ValaCCodeVariableDeclarator* _tmp21_;
      ValaCCodeFunction* _tmp22_ = NULL;
      ValaCCodeVariableDeclarator* _tmp23_ = NULL;
      ValaCCodeVariableDeclarator* _tmp24_;
      ValaCCodeFunction* _tmp25_ = NULL;
      ValaCCodeVariableDeclarator* _tmp26_ = NULL;
      ValaCCodeVariableDeclarator* _tmp27_;
      ValaCCodeIdentifier* _tmp28_ = NULL;
      ValaCCodeIdentifier* _tmp29_;
      ValaCCodeFunctionCall* _tmp30_ = NULL;
      ValaCCodeFunctionCall* _tmp31_;
      ValaCCodeFunctionCall* iter_init_call;
      ValaCCodeIdentifier* _tmp32_ = NULL;
      ValaCCodeIdentifier* _tmp33_;
      ValaCCodeUnaryExpression* _tmp34_ = NULL;
      ValaCCodeUnaryExpression* _tmp35_;
      ValaCCodeFunction* _tmp36_ = NULL;
      ValaCCodeIdentifier* _tmp37_ = NULL;
      ValaCCodeIdentifier* _tmp38_;
      ValaCCodeFunctionCall* _tmp39_ = NULL;
      ValaCCodeFunctionCall* _tmp40_;
      ValaCCodeFunctionCall* gvariant_type;
      gchar* _tmp41_ = NULL;
      gchar* _tmp42_;
      gchar* _tmp43_ = NULL;
      gchar* _tmp44_;
      ValaCCodeConstant* _tmp45_ = NULL;
      ValaCCodeConstant* _tmp46_;
      ValaCCodeIdentifier* _tmp47_ = NULL;
      ValaCCodeIdentifier* _tmp48_;
      ValaCCodeFunctionCall* _tmp49_ = NULL;
      ValaCCodeFunctionCall* _tmp50_;
      ValaCCodeFunctionCall* iter_call;
      ValaCCodeIdentifier* _tmp51_ = NULL;
      ValaCCodeIdentifier* _tmp52_;
      ValaCCodeUnaryExpression* _tmp53_ = NULL;
      ValaCCodeUnaryExpression* _tmp54_;
      ValaCCodeFunction* _tmp55_ = NULL;
      ValaCCodeIdentifier* _tmp56_ = NULL;
      ValaCCodeIdentifier* _tmp57_;
      ValaCCodeFunctionCall* _tmp58_ = NULL;
      ValaCCodeFunctionCall* _tmp59_;
      ValaCCodeFunctionCall* iter_next_call;
      ValaCCodeIdentifier* _tmp60_ = NULL;
      ValaCCodeIdentifier* _tmp61_;
      ValaCCodeUnaryExpression* _tmp62_ = NULL;
      ValaCCodeUnaryExpression* _tmp63_;
      ValaCCodeIdentifier* _tmp64_ = NULL;
      ValaCCodeIdentifier* _tmp65_;
      ValaCCodeUnaryExpression* _tmp66_ = NULL;
      ValaCCodeUnaryExpression* _tmp67_;
      ValaCCodeIdentifier* _tmp68_ = NULL;
      ValaCCodeIdentifier* _tmp69_;
      ValaCCodeUnaryExpression* _tmp70_ = NULL;
      ValaCCodeUnaryExpression* _tmp71_;
      ValaCCodeFunction* _tmp72_ = NULL;
      ValaCCodeFunction* _tmp73_ = NULL;
      gchar* _tmp74_ = NULL;
      gchar* _tmp75_;
      ValaCCodeVariableDeclarator* _tmp76_ = NULL;
      ValaCCodeVariableDeclarator* _tmp77_;
      ValaCCodeFunction* _tmp78_ = NULL;
      gchar* _tmp79_ = NULL;
      gchar* _tmp80_;
      ValaCCodeVariableDeclarator* _tmp81_ = NULL;
      ValaCCodeVariableDeclarator* _tmp82_;
      ValaCCodeFunction* _tmp83_ = NULL;
      ValaCCodeIdentifier* _tmp84_ = NULL;
      ValaCCodeIdentifier* _tmp85_;
      ValaCCodeIdentifier* _tmp86_ = NULL;
      ValaCCodeIdentifier* _tmp87_;
      ValaCCodeExpression* _tmp88_ = NULL;
      ValaCCodeExpression* _tmp89_;
      ValaCCodeFunction* _tmp90_ = NULL;
      ValaCCodeIdentifier* _tmp91_ = NULL;
      ValaCCodeIdentifier* _tmp92_;
      ValaCCodeIdentifier* _tmp93_ = NULL;
      ValaCCodeIdentifier* _tmp94_;
      ValaCCodeExpression* _tmp95_ = NULL;
      ValaCCodeExpression* _tmp96_;
      ValaCCodeIdentifier* _tmp97_ = NULL;
      ValaCCodeIdentifier* _tmp98_;
      ValaCCodeExpression* _tmp99_ = NULL;
      ValaCCodeExpression* _tmp100_;
      ValaCCodeExpression* serialized_key;
      ValaCCodeIdentifier* _tmp101_ = NULL;
      ValaCCodeIdentifier* _tmp102_;
      ValaCCodeExpression* _tmp103_ = NULL;
      ValaCCodeExpression* _tmp104_;
      ValaCCodeExpression* serialized_value;
      gboolean _tmp105_ = FALSE;
      ValaCCodeIdentifier* _tmp106_ = NULL;
      ValaCCodeIdentifier* _tmp107_;
      ValaCCodeFunctionCall* _tmp108_ = NULL;
      ValaCCodeIdentifier* _tmp109_ = NULL;
      ValaCCodeIdentifier* _tmp110_;
      ValaCCodeUnaryExpression* _tmp111_ = NULL;
      ValaCCodeUnaryExpression* _tmp112_;
      ValaCCodeConstant* _tmp113_ = NULL;
      ValaCCodeConstant* _tmp114_;
      ValaCCodeFunction* _tmp115_ = NULL;
      ValaCCodeFunction* _tmp116_ = NULL;
      ValaCCodeIdentifier* _tmp117_ = NULL;
      ValaCCodeIdentifier* _tmp118_;
      ValaCCodeFunctionCall* _tmp119_ = NULL;
      ValaCCodeIdentifier* _tmp120_ = NULL;
      ValaCCodeIdentifier* _tmp121_;
      ValaCCodeUnaryExpression* _tmp122_ = NULL;
      ValaCCodeUnaryExpression* _tmp123_;
      g_return_val_if_fail (self != NULL, NULL);
      g_return_val_if_fail (type != NULL, NULL);
      g_return_val_if_fail (hash_table_expr != NULL, NULL);
      _tmp0_ = vala_ccode_base_module_get_next_temp_var_id ((ValaCCodeBaseModule*) self);
      _tmp1_ = _tmp0_;
      vala_ccode_base_module_set_next_temp_var_id ((ValaCCodeBaseModule*) self, _tmp1_ + 1);
      _tmp2_ = g_strdup_printf ("_tmp%d_", _tmp1_);
      subiter_name = _tmp2_;
      _tmp3_ = vala_ccode_base_module_get_next_temp_var_id ((ValaCCodeBaseModule*) self);
      _tmp4_ = _tmp3_;
      vala_ccode_base_module_set_next_temp_var_id ((ValaCCodeBaseModule*) self, _tmp4_ + 1);
      _tmp5_ = g_strdup_printf ("_tmp%d_", _tmp4_);
      tableiter_name = _tmp5_;
      _tmp6_ = vala_ccode_base_module_get_next_temp_var_id ((ValaCCodeBaseModule*) self);
      _tmp7_ = _tmp6_;
      vala_ccode_base_module_set_next_temp_var_id ((ValaCCodeBaseModule*) self, _tmp7_ + 1);
      _tmp8_ = g_strdup_printf ("_tmp%d_", _tmp7_);
      key_name = _tmp8_;
      _tmp9_ = vala_ccode_base_module_get_next_temp_var_id ((ValaCCodeBaseModule*) self);
      _tmp10_ = _tmp9_;
      vala_ccode_base_module_set_next_temp_var_id ((ValaCCodeBaseModule*) self, _tmp10_ + 1);
      _tmp11_ = g_strdup_printf ("_tmp%d_", _tmp10_);
      value_name = _tmp11_;
      _tmp12_ = vala_data_type_get_type_arguments ((ValaDataType*) type);
      type_args = _tmp12_;
      _tmp13_ = vala_collection_get_size ((ValaCollection*) type_args);
      g_assert (_tmp13_ == 2);
      _tmp14_ = vala_list_get (type_args, 0);
      key_type = (ValaDataType*) _tmp14_;
      _tmp15_ = vala_list_get (type_args, 1);
      value_type = (ValaDataType*) _tmp15_;
      _tmp16_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp17_ = vala_ccode_variable_declarator_new (subiter_name, NULL, NULL);
      _tmp18_ = _tmp17_;
      vala_ccode_function_add_declaration (_tmp16_, "GVariantBuilder", (ValaCCodeDeclarator*) _tmp18_, 0);
      _vala_ccode_node_unref0 (_tmp18_);
      _tmp19_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp20_ = vala_ccode_variable_declarator_new (tableiter_name, NULL, NULL);
      _tmp21_ = _tmp20_;
      vala_ccode_function_add_declaration (_tmp19_, "GHashTableIter", (ValaCCodeDeclarator*) _tmp21_, 0);
      _vala_ccode_node_unref0 (_tmp21_);
      _tmp22_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp23_ = vala_ccode_variable_declarator_new (key_name, NULL, NULL);
      _tmp24_ = _tmp23_;
      vala_ccode_function_add_declaration (_tmp22_, "gpointer", (ValaCCodeDeclarator*) _tmp24_, 0);
      _vala_ccode_node_unref0 (_tmp24_);
      _tmp25_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp26_ = vala_ccode_variable_declarator_new (value_name, NULL, NULL);
      _tmp27_ = _tmp26_;
      vala_ccode_function_add_declaration (_tmp25_, "gpointer", (ValaCCodeDeclarator*) _tmp27_, 0);
      _vala_ccode_node_unref0 (_tmp27_);
      _tmp28_ = vala_ccode_identifier_new ("g_hash_table_iter_init");
      _tmp29_ = _tmp28_;
      _tmp30_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp29_);
      _tmp31_ = _tmp30_;
      _vala_ccode_node_unref0 (_tmp29_);
      iter_init_call = _tmp31_;
      _tmp32_ = vala_ccode_identifier_new (tableiter_name);
      _tmp33_ = _tmp32_;
      _tmp34_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp33_);
      _tmp35_ = _tmp34_;
      vala_ccode_function_call_add_argument (iter_init_call, (ValaCCodeExpression*) _tmp35_);
      _vala_ccode_node_unref0 (_tmp35_);
      _vala_ccode_node_unref0 (_tmp33_);
      vala_ccode_function_call_add_argument (iter_init_call, hash_table_expr);
      _tmp36_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      vala_ccode_function_add_expression (_tmp36_, (ValaCCodeExpression*) iter_init_call);
      _tmp37_ = vala_ccode_identifier_new ("G_VARIANT_TYPE");
      _tmp38_ = _tmp37_;
      _tmp39_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp38_);
      _tmp40_ = _tmp39_;
      _vala_ccode_node_unref0 (_tmp38_);
      gvariant_type = _tmp40_;
      _tmp41_ = vala_gvariant_module_get_type_signature ((ValaDataType*) type, NULL);
      _tmp42_ = _tmp41_;
      _tmp43_ = g_strdup_printf ("\"%s\"", _tmp42_);
      _tmp44_ = _tmp43_;
      _tmp45_ = vala_ccode_constant_new (_tmp44_);
      _tmp46_ = _tmp45_;
      vala_ccode_function_call_add_argument (gvariant_type, (ValaCCodeExpression*) _tmp46_);
      _vala_ccode_node_unref0 (_tmp46_);
      _g_free0 (_tmp44_);
      _g_free0 (_tmp42_);
      _tmp47_ = vala_ccode_identifier_new ("g_variant_builder_init");
      _tmp48_ = _tmp47_;
      _tmp49_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp48_);
      _tmp50_ = _tmp49_;
      _vala_ccode_node_unref0 (_tmp48_);
      iter_call = _tmp50_;
      _tmp51_ = vala_ccode_identifier_new (subiter_name);
      _tmp52_ = _tmp51_;
      _tmp53_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp52_);
      _tmp54_ = _tmp53_;
      vala_ccode_function_call_add_argument (iter_call, (ValaCCodeExpression*) _tmp54_);
      _vala_ccode_node_unref0 (_tmp54_);
      _vala_ccode_node_unref0 (_tmp52_);
      vala_ccode_function_call_add_argument (iter_call, (ValaCCodeExpression*) gvariant_type);
      _tmp55_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      vala_ccode_function_add_expression (_tmp55_, (ValaCCodeExpression*) iter_call);
      _tmp56_ = vala_ccode_identifier_new ("g_hash_table_iter_next");
      _tmp57_ = _tmp56_;
      _tmp58_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp57_);
      _tmp59_ = _tmp58_;
      _vala_ccode_node_unref0 (_tmp57_);
      iter_next_call = _tmp59_;
      _tmp60_ = vala_ccode_identifier_new (tableiter_name);
      _tmp61_ = _tmp60_;
      _tmp62_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp61_);
      _tmp63_ = _tmp62_;
      vala_ccode_function_call_add_argument (iter_next_call, (ValaCCodeExpression*) _tmp63_);
      _vala_ccode_node_unref0 (_tmp63_);
      _vala_ccode_node_unref0 (_tmp61_);
      _tmp64_ = vala_ccode_identifier_new (key_name);
      _tmp65_ = _tmp64_;
      _tmp66_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp65_);
      _tmp67_ = _tmp66_;
      vala_ccode_function_call_add_argument (iter_next_call, (ValaCCodeExpression*) _tmp67_);
      _vala_ccode_node_unref0 (_tmp67_);
      _vala_ccode_node_unref0 (_tmp65_);
      _tmp68_ = vala_ccode_identifier_new (value_name);
      _tmp69_ = _tmp68_;
      _tmp70_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp69_);
      _tmp71_ = _tmp70_;
      vala_ccode_function_call_add_argument (iter_next_call, (ValaCCodeExpression*) _tmp71_);
      _vala_ccode_node_unref0 (_tmp71_);
      _vala_ccode_node_unref0 (_tmp69_);
      _tmp72_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      vala_ccode_function_open_while (_tmp72_, (ValaCCodeExpression*) iter_next_call);
      _tmp73_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp74_ = vala_data_type_get_cname (key_type);
      _tmp75_ = _tmp74_;
      _tmp76_ = vala_ccode_variable_declarator_new ("_key", NULL, NULL);
      _tmp77_ = _tmp76_;
      vala_ccode_function_add_declaration (_tmp73_, _tmp75_, (ValaCCodeDeclarator*) _tmp77_, 0);
      _vala_ccode_node_unref0 (_tmp77_);
      _g_free0 (_tmp75_);
      _tmp78_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp79_ = vala_data_type_get_cname (value_type);
      _tmp80_ = _tmp79_;
      _tmp81_ = vala_ccode_variable_declarator_new ("_value", NULL, NULL);
      _tmp82_ = _tmp81_;
      vala_ccode_function_add_declaration (_tmp78_, _tmp80_, (ValaCCodeDeclarator*) _tmp82_, 0);
      _vala_ccode_node_unref0 (_tmp82_);
      _g_free0 (_tmp80_);
      _tmp83_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp84_ = vala_ccode_identifier_new ("_key");
      _tmp85_ = _tmp84_;
      _tmp86_ = vala_ccode_identifier_new (key_name);
      _tmp87_ = _tmp86_;
      _tmp88_ = vala_ccode_base_module_convert_from_generic_pointer ((ValaCCodeBaseModule*) self, (ValaCCodeExpression*) _tmp87_, key_type);
      _tmp89_ = _tmp88_;
      vala_ccode_function_add_assignment (_tmp83_, (ValaCCodeExpression*) _tmp85_, _tmp89_);
      _vala_ccode_node_unref0 (_tmp89_);
      _vala_ccode_node_unref0 (_tmp87_);
      _vala_ccode_node_unref0 (_tmp85_);
      _tmp90_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      _tmp91_ = vala_ccode_identifier_new ("_value");
      _tmp92_ = _tmp91_;
      _tmp93_ = vala_ccode_identifier_new (value_name);
      _tmp94_ = _tmp93_;
      _tmp95_ = vala_ccode_base_module_convert_from_generic_pointer ((ValaCCodeBaseModule*) self, (ValaCCodeExpression*) _tmp94_, value_type);
      _tmp96_ = _tmp95_;
      vala_ccode_function_add_assignment (_tmp90_, (ValaCCodeExpression*) _tmp92_, _tmp96_);
      _vala_ccode_node_unref0 (_tmp96_);
      _vala_ccode_node_unref0 (_tmp94_);
      _vala_ccode_node_unref0 (_tmp92_);
      _tmp97_ = vala_ccode_identifier_new ("_key");
      _tmp98_ = _tmp97_;
      _tmp99_ = vala_ccode_base_module_serialize_expression ((ValaCCodeBaseModule*) self, key_type, (ValaCCodeExpression*) _tmp98_);
      _tmp100_ = _tmp99_;
      _vala_ccode_node_unref0 (_tmp98_);
      serialized_key = _tmp100_;
      _tmp101_ = vala_ccode_identifier_new ("_value");
      _tmp102_ = _tmp101_;
      _tmp103_ = vala_ccode_base_module_serialize_expression ((ValaCCodeBaseModule*) self, value_type, (ValaCCodeExpression*) _tmp102_);
      _tmp104_ = _tmp103_;
      _vala_ccode_node_unref0 (_tmp102_);
      serialized_value = _tmp104_;
      if (serialized_key == NULL) {
            _tmp105_ = TRUE;
      } else {
            _tmp105_ = serialized_value == NULL;
      }
      if (_tmp105_) {
            result = NULL;
            _vala_ccode_node_unref0 (serialized_value);
            _vala_ccode_node_unref0 (serialized_key);
            _vala_ccode_node_unref0 (iter_next_call);
            _vala_ccode_node_unref0 (iter_call);
            _vala_ccode_node_unref0 (gvariant_type);
            _vala_ccode_node_unref0 (iter_init_call);
            _vala_code_node_unref0 (value_type);
            _vala_code_node_unref0 (key_type);
            _vala_iterable_unref0 (type_args);
            _g_free0 (value_name);
            _g_free0 (key_name);
            _g_free0 (tableiter_name);
            _g_free0 (subiter_name);
            return result;
      }
      _tmp106_ = vala_ccode_identifier_new ("g_variant_builder_add");
      _tmp107_ = _tmp106_;
      _tmp108_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp107_);
      _vala_ccode_node_unref0 (iter_call);
      iter_call = _tmp108_;
      _vala_ccode_node_unref0 (_tmp107_);
      _tmp109_ = vala_ccode_identifier_new (subiter_name);
      _tmp110_ = _tmp109_;
      _tmp111_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp110_);
      _tmp112_ = _tmp111_;
      vala_ccode_function_call_add_argument (iter_call, (ValaCCodeExpression*) _tmp112_);
      _vala_ccode_node_unref0 (_tmp112_);
      _vala_ccode_node_unref0 (_tmp110_);
      _tmp113_ = vala_ccode_constant_new ("\"{?*}\"");
      _tmp114_ = _tmp113_;
      vala_ccode_function_call_add_argument (iter_call, (ValaCCodeExpression*) _tmp114_);
      _vala_ccode_node_unref0 (_tmp114_);
      vala_ccode_function_call_add_argument (iter_call, serialized_key);
      vala_ccode_function_call_add_argument (iter_call, serialized_value);
      _tmp115_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      vala_ccode_function_add_expression (_tmp115_, (ValaCCodeExpression*) iter_call);
      _tmp116_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
      vala_ccode_function_close (_tmp116_);
      _tmp117_ = vala_ccode_identifier_new ("g_variant_builder_end");
      _tmp118_ = _tmp117_;
      _tmp119_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp118_);
      _vala_ccode_node_unref0 (iter_call);
      iter_call = _tmp119_;
      _vala_ccode_node_unref0 (_tmp118_);
      _tmp120_ = vala_ccode_identifier_new (subiter_name);
      _tmp121_ = _tmp120_;
      _tmp122_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, (ValaCCodeExpression*) _tmp121_);
      _tmp123_ = _tmp122_;
      vala_ccode_function_call_add_argument (iter_call, (ValaCCodeExpression*) _tmp123_);
      _vala_ccode_node_unref0 (_tmp123_);
      _vala_ccode_node_unref0 (_tmp121_);
      result = (ValaCCodeExpression*) iter_call;
      _vala_ccode_node_unref0 (serialized_value);
      _vala_ccode_node_unref0 (serialized_key);
      _vala_ccode_node_unref0 (iter_next_call);
      _vala_ccode_node_unref0 (gvariant_type);
      _vala_ccode_node_unref0 (iter_init_call);
      _vala_code_node_unref0 (value_type);
      _vala_code_node_unref0 (key_type);
      _vala_iterable_unref0 (type_args);
      _g_free0 (value_name);
      _g_free0 (key_name);
      _g_free0 (tableiter_name);
      _g_free0 (subiter_name);
      return result;
}


static ValaCCodeExpression* vala_gvariant_module_real_serialize_expression (ValaCCodeBaseModule* base, ValaDataType* type, ValaCCodeExpression* expr) {
      ValaGVariantModule * self;
      ValaCCodeExpression* result = NULL;
      ValaGVariantModuleBasicTypeInfo basic_type = {0};
      ValaCCodeExpression* _result_;
      ValaTypeSymbol* _tmp0_ = NULL;
      gboolean _tmp1_;
      self = (ValaGVariantModule*) base;
      g_return_val_if_fail (type != NULL, NULL);
      g_return_val_if_fail (expr != NULL, NULL);
      _result_ = NULL;
      _tmp0_ = vala_data_type_get_data_type (type);
      _tmp1_ = vala_gvariant_module_is_string_marshalled_enum (_tmp0_);
      if (_tmp1_) {
            ValaGVariantModuleBasicTypeInfo _tmp2_ = {0};
            ValaDataType* _tmp3_;
            ValaCCodeExpression* _tmp4_ = NULL;
            ValaCCodeExpression* _tmp5_ = NULL;
            vala_gvariant_module_get_basic_type_info (self, "s", &_tmp2_);
            basic_type = _tmp2_;
            _tmp3_ = type;
            _tmp4_ = vala_gvariant_module_generate_enum_value_to_string (self, VALA_IS_ENUM_VALUE_TYPE (_tmp3_) ? ((ValaEnumValueType*) _tmp3_) : NULL, expr);
            _vala_ccode_node_unref0 (_result_);
            _result_ = _tmp4_;
            _tmp5_ = vala_gvariant_module_serialize_basic (self, &basic_type, _result_);
            _vala_ccode_node_unref0 (_result_);
            _result_ = _tmp5_;
      } else {
            gchar* _tmp6_ = NULL;
            gchar* _tmp7_;
            ValaGVariantModuleBasicTypeInfo _tmp8_ = {0};
            gboolean _tmp9_;
            gboolean _tmp10_;
            _tmp6_ = vala_gvariant_module_get_type_signature (type, NULL);
            _tmp7_ = _tmp6_;
            _tmp9_ = vala_gvariant_module_get_basic_type_info (self, _tmp7_, &_tmp8_);
            basic_type = _tmp8_;
            _tmp10_ = _tmp9_;
            _g_free0 (_tmp7_);
            if (_tmp10_) {
                  ValaCCodeExpression* _tmp11_ = NULL;
                  _tmp11_ = vala_gvariant_module_serialize_basic (self, &basic_type, expr);
                  _vala_ccode_node_unref0 (_result_);
                  _result_ = _tmp11_;
            } else {
                  if (VALA_IS_ARRAY_TYPE (type)) {
                        ValaCCodeExpression* _tmp12_ = NULL;
                        _tmp12_ = vala_gvariant_module_serialize_array (self, VALA_ARRAY_TYPE (type), expr);
                        _vala_ccode_node_unref0 (_result_);
                        _result_ = _tmp12_;
                  } else {
                        ValaTypeSymbol* _tmp13_ = NULL;
                        _tmp13_ = vala_data_type_get_data_type (type);
                        if (VALA_IS_STRUCT (_tmp13_)) {
                              ValaCCodeExpression* _tmp14_;
                              ValaCCodeExpression* st_expr;
                              gboolean _tmp15_;
                              ValaTypeSymbol* _tmp17_ = NULL;
                              ValaCCodeExpression* _tmp18_ = NULL;
                              _tmp14_ = _vala_ccode_node_ref0 (expr);
                              st_expr = _tmp14_;
                              _tmp15_ = vala_data_type_get_nullable (type);
                              if (_tmp15_) {
                                    ValaCCodeUnaryExpression* _tmp16_ = NULL;
                                    _tmp16_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_POINTER_INDIRECTION, st_expr);
                                    _vala_ccode_node_unref0 (st_expr);
                                    st_expr = (ValaCCodeExpression*) _tmp16_;
                              }
                              _tmp17_ = vala_data_type_get_data_type (type);
                              _tmp18_ = vala_gvariant_module_serialize_struct (self, VALA_STRUCT (_tmp17_), st_expr);
                              _vala_ccode_node_unref0 (_result_);
                              _result_ = _tmp18_;
                              _vala_ccode_node_unref0 (st_expr);
                        } else {
                              if (VALA_IS_OBJECT_TYPE (type)) {
                                    ValaTypeSymbol* _tmp19_ = NULL;
                                    gchar* _tmp20_ = NULL;
                                    gchar* _tmp21_;
                                    gboolean _tmp22_;
                                    _tmp19_ = vala_data_type_get_data_type (type);
                                    _tmp20_ = vala_symbol_get_full_name ((ValaSymbol*) _tmp19_);
                                    _tmp21_ = _tmp20_;
                                    _tmp22_ = g_strcmp0 (_tmp21_, "GLib.Variant") == 0;
                                    _g_free0 (_tmp21_);
                                    if (_tmp22_) {
                                          ValaCCodeIdentifier* _tmp23_ = NULL;
                                          ValaCCodeIdentifier* _tmp24_;
                                          ValaCCodeFunctionCall* _tmp25_ = NULL;
                                          ValaCCodeFunctionCall* _tmp26_;
                                          ValaCCodeFunctionCall* variant_new;
                                          ValaCCodeExpression* _tmp27_;
                                          _tmp23_ = vala_ccode_identifier_new ("g_variant_new_variant");
                                          _tmp24_ = _tmp23_;
                                          _tmp25_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp24_);
                                          _tmp26_ = _tmp25_;
                                          _vala_ccode_node_unref0 (_tmp24_);
                                          variant_new = _tmp26_;
                                          vala_ccode_function_call_add_argument (variant_new, expr);
                                          _tmp27_ = _vala_ccode_node_ref0 ((ValaCCodeExpression*) variant_new);
                                          _vala_ccode_node_unref0 (_result_);
                                          _result_ = _tmp27_;
                                          _vala_ccode_node_unref0 (variant_new);
                                    } else {
                                          ValaTypeSymbol* _tmp28_ = NULL;
                                          gchar* _tmp29_ = NULL;
                                          gchar* _tmp30_;
                                          gboolean _tmp31_;
                                          _tmp28_ = vala_data_type_get_data_type (type);
                                          _tmp29_ = vala_symbol_get_full_name ((ValaSymbol*) _tmp28_);
                                          _tmp30_ = _tmp29_;
                                          _tmp31_ = g_strcmp0 (_tmp30_, "GLib.HashTable") == 0;
                                          _g_free0 (_tmp30_);
                                          if (_tmp31_) {
                                                ValaCCodeExpression* _tmp32_ = NULL;
                                                _tmp32_ = vala_gvariant_module_serialize_hash_table (self, VALA_OBJECT_TYPE (type), expr);
                                                _vala_ccode_node_unref0 (_result_);
                                                _result_ = _tmp32_;
                                          }
                                    }
                              }
                        }
                  }
            }
      }
      if (_result_ == NULL) {
            ValaSourceReference* _tmp33_ = NULL;
            gchar* _tmp34_ = NULL;
            gchar* _tmp35_;
            gchar* _tmp36_ = NULL;
            gchar* _tmp37_;
            _tmp33_ = vala_code_node_get_source_reference ((ValaCodeNode*) type);
            _tmp34_ = vala_code_node_to_string ((ValaCodeNode*) type);
            _tmp35_ = _tmp34_;
            _tmp36_ = g_strdup_printf ("GVariant serialization of type `%s' is not supported", _tmp35_);
            _tmp37_ = _tmp36_;
            vala_report_error (_tmp33_, _tmp37_);
            _g_free0 (_tmp37_);
            _g_free0 (_tmp35_);
      }
      result = _result_;
      return result;
}


void vala_gvariant_module_write_expression (ValaGVariantModule* self, ValaDataType* type, ValaCCodeExpression* builder_expr, ValaCCodeExpression* expr, ValaSymbol* sym) {
      ValaCCodeExpression* _tmp0_;
      ValaCCodeExpression* variant_expr;
      gboolean _tmp1_ = FALSE;
      g_return_if_fail (self != NULL);
      g_return_if_fail (type != NULL);
      g_return_if_fail (builder_expr != NULL);
      g_return_if_fail (expr != NULL);
      _tmp0_ = _vala_ccode_node_ref0 (expr);
      variant_expr = _tmp0_;
      if (sym == NULL) {
            _tmp1_ = TRUE;
      } else {
            gchar* _tmp2_ = NULL;
            gchar* _tmp3_;
            _tmp2_ = vala_gvariant_module_get_dbus_signature (sym);
            _tmp3_ = _tmp2_;
            _tmp1_ = _tmp3_ == NULL;
            _g_free0 (_tmp3_);
      }
      if (_tmp1_) {
            ValaCCodeExpression* _tmp4_ = NULL;
            _tmp4_ = vala_ccode_base_module_serialize_expression ((ValaCCodeBaseModule*) self, type, expr);
            _vala_ccode_node_unref0 (variant_expr);
            variant_expr = _tmp4_;
      }
      if (variant_expr != NULL) {
            ValaCCodeIdentifier* _tmp5_ = NULL;
            ValaCCodeIdentifier* _tmp6_;
            ValaCCodeFunctionCall* _tmp7_ = NULL;
            ValaCCodeFunctionCall* _tmp8_;
            ValaCCodeFunctionCall* builder_add;
            ValaCCodeUnaryExpression* _tmp9_ = NULL;
            ValaCCodeUnaryExpression* _tmp10_;
            ValaCCodeFunction* _tmp11_ = NULL;
            _tmp5_ = vala_ccode_identifier_new ("g_variant_builder_add_value");
            _tmp6_ = _tmp5_;
            _tmp7_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp6_);
            _tmp8_ = _tmp7_;
            _vala_ccode_node_unref0 (_tmp6_);
            builder_add = _tmp8_;
            _tmp9_ = vala_ccode_unary_expression_new (VALA_CCODE_UNARY_OPERATOR_ADDRESS_OF, builder_expr);
            _tmp10_ = _tmp9_;
            vala_ccode_function_call_add_argument (builder_add, (ValaCCodeExpression*) _tmp10_);
            _vala_ccode_node_unref0 (_tmp10_);
            vala_ccode_function_call_add_argument (builder_add, variant_expr);
            _tmp11_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
            vala_ccode_function_add_expression (_tmp11_, (ValaCCodeExpression*) builder_add);
            _vala_ccode_node_unref0 (builder_add);
      }
      _vala_ccode_node_unref0 (variant_expr);
}


ValaGVariantModule* vala_gvariant_module_construct (GType object_type) {
      ValaGVariantModule* self = NULL;
      self = (ValaGVariantModule*) vala_gasync_module_construct (object_type);
      return self;
}


ValaGVariantModule* vala_gvariant_module_new (void) {
      return vala_gvariant_module_construct (VALA_TYPE_GVARIANT_MODULE);
}


static ValaGVariantModuleBasicTypeInfo* vala_gvariant_module_basic_type_info_dup (const ValaGVariantModuleBasicTypeInfo* self) {
      ValaGVariantModuleBasicTypeInfo* dup;
      dup = g_new0 (ValaGVariantModuleBasicTypeInfo, 1);
      memcpy (dup, self, sizeof (ValaGVariantModuleBasicTypeInfo));
      return dup;
}


static void vala_gvariant_module_basic_type_info_free (ValaGVariantModuleBasicTypeInfo* self) {
      g_free (self);
}


static GType vala_gvariant_module_basic_type_info_get_type (void) {
      static volatile gsize vala_gvariant_module_basic_type_info_type_id__volatile = 0;
      if (g_once_init_enter (&vala_gvariant_module_basic_type_info_type_id__volatile)) {
            GType vala_gvariant_module_basic_type_info_type_id;
            vala_gvariant_module_basic_type_info_type_id = g_boxed_type_register_static ("ValaGVariantModuleBasicTypeInfo", (GBoxedCopyFunc) vala_gvariant_module_basic_type_info_dup, (GBoxedFreeFunc) vala_gvariant_module_basic_type_info_free);
            g_once_init_leave (&vala_gvariant_module_basic_type_info_type_id__volatile, vala_gvariant_module_basic_type_info_type_id);
      }
      return vala_gvariant_module_basic_type_info_type_id__volatile;
}


static void vala_gvariant_module_class_init (ValaGVariantModuleClass * klass) {
      vala_gvariant_module_parent_class = g_type_class_peek_parent (klass);
      VALA_CODE_VISITOR_CLASS (klass)->visit_enum = vala_gvariant_module_real_visit_enum;
      VALA_CCODE_BASE_MODULE_CLASS (klass)->generate_enum_declaration = vala_gvariant_module_real_generate_enum_declaration;
      VALA_CCODE_BASE_MODULE_CLASS (klass)->deserialize_expression = vala_gvariant_module_real_deserialize_expression;
      VALA_CCODE_BASE_MODULE_CLASS (klass)->serialize_expression = vala_gvariant_module_real_serialize_expression;
}


static void vala_gvariant_module_instance_init (ValaGVariantModule * self) {
}


GType vala_gvariant_module_get_type (void) {
      static volatile gsize vala_gvariant_module_type_id__volatile = 0;
      if (g_once_init_enter (&vala_gvariant_module_type_id__volatile)) {
            static const GTypeInfo g_define_type_info = { sizeof (ValaGVariantModuleClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) vala_gvariant_module_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ValaGVariantModule), 0, (GInstanceInitFunc) vala_gvariant_module_instance_init, NULL };
            GType vala_gvariant_module_type_id;
            vala_gvariant_module_type_id = g_type_register_static (VALA_TYPE_GASYNC_MODULE, "ValaGVariantModule", &g_define_type_info, 0);
            g_once_init_leave (&vala_gvariant_module_type_id__volatile, vala_gvariant_module_type_id);
      }
      return vala_gvariant_module_type_id__volatile;
}




Generated by  Doxygen 1.6.0   Back to index