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

/*
 * Copyright (C) 2010-2011 Michael 'Mickey' Lauer <mlauer@vanille-media.de>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.

 * This program 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 General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
 *
 */

#include <glib.h>
#include <glib-object.h>
#include <gisicomm.h>
#include <stdlib.h>
#include <string.h>
#include <network.h>
#include <fsogsm.h>
#include <gio/gio.h>
#include <freesmartphone.h>

#define _g_free0(var) (var = (g_free (var), NULL))
#define _fso_gsm_constants_unref0(var) ((var == NULL) ? NULL : (var = (fso_gsm_constants_unref (var), NULL)))
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))

#define NOKIA_ISI_TYPE_ISI_NETWORK_GET_STATUS (nokia_isi_isi_network_get_status_get_type ())
#define NOKIA_ISI_ISI_NETWORK_GET_STATUS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NOKIA_ISI_TYPE_ISI_NETWORK_GET_STATUS, NokiaIsiIsiNetworkGetStatus))
#define NOKIA_ISI_ISI_NETWORK_GET_STATUS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NOKIA_ISI_TYPE_ISI_NETWORK_GET_STATUS, NokiaIsiIsiNetworkGetStatusClass))
#define NOKIA_ISI_IS_ISI_NETWORK_GET_STATUS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NOKIA_ISI_TYPE_ISI_NETWORK_GET_STATUS))
#define NOKIA_ISI_IS_ISI_NETWORK_GET_STATUS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NOKIA_ISI_TYPE_ISI_NETWORK_GET_STATUS))
#define NOKIA_ISI_ISI_NETWORK_GET_STATUS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NOKIA_ISI_TYPE_ISI_NETWORK_GET_STATUS, NokiaIsiIsiNetworkGetStatusClass))

typedef struct _NokiaIsiIsiNetworkGetStatus NokiaIsiIsiNetworkGetStatus;
typedef struct _NokiaIsiIsiNetworkGetStatusClass NokiaIsiIsiNetworkGetStatusClass;
typedef struct _NokiaIsiIsiNetworkGetStatusPrivate NokiaIsiIsiNetworkGetStatusPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _Block8Data Block8Data;
typedef struct _NokiaIsiIsiNetworkGetStatusRunData NokiaIsiIsiNetworkGetStatusRunData;

#define NOKIA_ISI_TYPE_ISI_NETWORK_LIST_PROVIDERS (nokia_isi_isi_network_list_providers_get_type ())
#define NOKIA_ISI_ISI_NETWORK_LIST_PROVIDERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NOKIA_ISI_TYPE_ISI_NETWORK_LIST_PROVIDERS, NokiaIsiIsiNetworkListProviders))
#define NOKIA_ISI_ISI_NETWORK_LIST_PROVIDERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NOKIA_ISI_TYPE_ISI_NETWORK_LIST_PROVIDERS, NokiaIsiIsiNetworkListProvidersClass))
#define NOKIA_ISI_IS_ISI_NETWORK_LIST_PROVIDERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NOKIA_ISI_TYPE_ISI_NETWORK_LIST_PROVIDERS))
#define NOKIA_ISI_IS_ISI_NETWORK_LIST_PROVIDERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NOKIA_ISI_TYPE_ISI_NETWORK_LIST_PROVIDERS))
#define NOKIA_ISI_ISI_NETWORK_LIST_PROVIDERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NOKIA_ISI_TYPE_ISI_NETWORK_LIST_PROVIDERS, NokiaIsiIsiNetworkListProvidersClass))

typedef struct _NokiaIsiIsiNetworkListProviders NokiaIsiIsiNetworkListProviders;
typedef struct _NokiaIsiIsiNetworkListProvidersClass NokiaIsiIsiNetworkListProvidersClass;
typedef struct _NokiaIsiIsiNetworkListProvidersPrivate NokiaIsiIsiNetworkListProvidersPrivate;
typedef struct _Block9Data Block9Data;
typedef struct _NokiaIsiIsiNetworkListProvidersRunData NokiaIsiIsiNetworkListProvidersRunData;

#define NOKIA_ISI_TYPE_ISI_NETWORK_GET_SIGNAL_STRENGTH (nokia_isi_isi_network_get_signal_strength_get_type ())
#define NOKIA_ISI_ISI_NETWORK_GET_SIGNAL_STRENGTH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NOKIA_ISI_TYPE_ISI_NETWORK_GET_SIGNAL_STRENGTH, NokiaIsiIsiNetworkGetSignalStrength))
#define NOKIA_ISI_ISI_NETWORK_GET_SIGNAL_STRENGTH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NOKIA_ISI_TYPE_ISI_NETWORK_GET_SIGNAL_STRENGTH, NokiaIsiIsiNetworkGetSignalStrengthClass))
#define NOKIA_ISI_IS_ISI_NETWORK_GET_SIGNAL_STRENGTH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NOKIA_ISI_TYPE_ISI_NETWORK_GET_SIGNAL_STRENGTH))
#define NOKIA_ISI_IS_ISI_NETWORK_GET_SIGNAL_STRENGTH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NOKIA_ISI_TYPE_ISI_NETWORK_GET_SIGNAL_STRENGTH))
#define NOKIA_ISI_ISI_NETWORK_GET_SIGNAL_STRENGTH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NOKIA_ISI_TYPE_ISI_NETWORK_GET_SIGNAL_STRENGTH, NokiaIsiIsiNetworkGetSignalStrengthClass))

typedef struct _NokiaIsiIsiNetworkGetSignalStrength NokiaIsiIsiNetworkGetSignalStrength;
typedef struct _NokiaIsiIsiNetworkGetSignalStrengthClass NokiaIsiIsiNetworkGetSignalStrengthClass;
typedef struct _NokiaIsiIsiNetworkGetSignalStrengthPrivate NokiaIsiIsiNetworkGetSignalStrengthPrivate;
typedef struct _Block10Data Block10Data;
typedef struct _NokiaIsiIsiNetworkGetSignalStrengthRunData NokiaIsiIsiNetworkGetSignalStrengthRunData;

#define NOKIA_ISI_TYPE_ISI_NETWORK_REGISTER (nokia_isi_isi_network_register_get_type ())
#define NOKIA_ISI_ISI_NETWORK_REGISTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NOKIA_ISI_TYPE_ISI_NETWORK_REGISTER, NokiaIsiIsiNetworkRegister))
#define NOKIA_ISI_ISI_NETWORK_REGISTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NOKIA_ISI_TYPE_ISI_NETWORK_REGISTER, NokiaIsiIsiNetworkRegisterClass))
#define NOKIA_ISI_IS_ISI_NETWORK_REGISTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NOKIA_ISI_TYPE_ISI_NETWORK_REGISTER))
#define NOKIA_ISI_IS_ISI_NETWORK_REGISTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NOKIA_ISI_TYPE_ISI_NETWORK_REGISTER))
#define NOKIA_ISI_ISI_NETWORK_REGISTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NOKIA_ISI_TYPE_ISI_NETWORK_REGISTER, NokiaIsiIsiNetworkRegisterClass))

typedef struct _NokiaIsiIsiNetworkRegister NokiaIsiIsiNetworkRegister;
typedef struct _NokiaIsiIsiNetworkRegisterClass NokiaIsiIsiNetworkRegisterClass;
typedef struct _NokiaIsiIsiNetworkRegisterPrivate NokiaIsiIsiNetworkRegisterPrivate;
typedef struct _Block11Data Block11Data;
typedef struct _NokiaIsiIsiNetworkRegisterRunData NokiaIsiIsiNetworkRegisterRunData;

#define NOKIA_ISI_TYPE_ISI_NETWORK_REGISTER_WITH_PROVIDER (nokia_isi_isi_network_register_with_provider_get_type ())
#define NOKIA_ISI_ISI_NETWORK_REGISTER_WITH_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NOKIA_ISI_TYPE_ISI_NETWORK_REGISTER_WITH_PROVIDER, NokiaIsiIsiNetworkRegisterWithProvider))
#define NOKIA_ISI_ISI_NETWORK_REGISTER_WITH_PROVIDER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NOKIA_ISI_TYPE_ISI_NETWORK_REGISTER_WITH_PROVIDER, NokiaIsiIsiNetworkRegisterWithProviderClass))
#define NOKIA_ISI_IS_ISI_NETWORK_REGISTER_WITH_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NOKIA_ISI_TYPE_ISI_NETWORK_REGISTER_WITH_PROVIDER))
#define NOKIA_ISI_IS_ISI_NETWORK_REGISTER_WITH_PROVIDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NOKIA_ISI_TYPE_ISI_NETWORK_REGISTER_WITH_PROVIDER))
#define NOKIA_ISI_ISI_NETWORK_REGISTER_WITH_PROVIDER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NOKIA_ISI_TYPE_ISI_NETWORK_REGISTER_WITH_PROVIDER, NokiaIsiIsiNetworkRegisterWithProviderClass))

typedef struct _NokiaIsiIsiNetworkRegisterWithProvider NokiaIsiIsiNetworkRegisterWithProvider;
typedef struct _NokiaIsiIsiNetworkRegisterWithProviderClass NokiaIsiIsiNetworkRegisterWithProviderClass;
typedef struct _NokiaIsiIsiNetworkRegisterWithProviderPrivate NokiaIsiIsiNetworkRegisterWithProviderPrivate;
typedef struct _Block12Data Block12Data;
typedef struct _NokiaIsiIsiNetworkRegisterWithProviderRunData NokiaIsiIsiNetworkRegisterWithProviderRunData;

struct _NokiaIsiIsiNetworkGetStatus {
	FsoGsmNetworkGetStatus parent_instance;
	NokiaIsiIsiNetworkGetStatusPrivate * priv;
};

struct _NokiaIsiIsiNetworkGetStatusClass {
	FsoGsmNetworkGetStatusClass parent_class;
};

struct _Block8Data {
	int _ref_count_;
	NokiaIsiIsiNetworkGetStatus * self;
	GIsiCommNetworkISI_RegStatus istatus;
	gpointer _async_data_;
};

struct _NokiaIsiIsiNetworkGetStatusRunData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	NokiaIsiIsiNetworkGetStatus* self;
	Block8Data* _data8_;
	GIsiCommModemAccess* _tmp0_;
	GIsiCommNetwork* _tmp1_;
	GIsiCommNetworkISI_RegStatus _tmp2_;
	GHashTable* _tmp3_;
	GHashTable* _tmp4_;
	GIsiCommModemAccess* _tmp5_;
	GIsiCommNetwork* _tmp6_;
};

struct _NokiaIsiIsiNetworkListProviders {
	FsoGsmNetworkListProviders parent_instance;
	NokiaIsiIsiNetworkListProvidersPrivate * priv;
};

struct _NokiaIsiIsiNetworkListProvidersClass {
	FsoGsmNetworkListProvidersClass parent_class;
};

struct _Block9Data {
	int _ref_count_;
	NokiaIsiIsiNetworkListProviders * self;
	FreeSmartphoneGSMNetworkProvider* p;
	gint p_length1;
	gint _p_size_;
	gpointer _async_data_;
};

struct _NokiaIsiIsiNetworkListProvidersRunData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	NokiaIsiIsiNetworkListProviders* self;
	Block9Data* _data9_;
	FreeSmartphoneGSMNetworkProvider* _tmp0_;
	GIsiCommModemAccess* _tmp1_;
	GIsiCommNetwork* _tmp2_;
};

struct _NokiaIsiIsiNetworkGetSignalStrength {
	FsoGsmNetworkGetSignalStrength parent_instance;
	NokiaIsiIsiNetworkGetSignalStrengthPrivate * priv;
};

struct _NokiaIsiIsiNetworkGetSignalStrengthClass {
	FsoGsmNetworkGetSignalStrengthClass parent_class;
};

struct _Block10Data {
	int _ref_count_;
	NokiaIsiIsiNetworkGetSignalStrength * self;
	gpointer _async_data_;
};

struct _NokiaIsiIsiNetworkGetSignalStrengthRunData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	NokiaIsiIsiNetworkGetSignalStrength* self;
	Block10Data* _data10_;
	GIsiCommModemAccess* _tmp0_;
	GIsiCommNetwork* _tmp1_;
};

struct _NokiaIsiIsiNetworkRegister {
	FsoGsmNetworkRegister parent_instance;
	NokiaIsiIsiNetworkRegisterPrivate * priv;
};

struct _NokiaIsiIsiNetworkRegisterClass {
	FsoGsmNetworkRegisterClass parent_class;
};

struct _Block11Data {
	int _ref_count_;
	NokiaIsiIsiNetworkRegister * self;
	GIsiCommErrorCode e;
	gpointer _async_data_;
};

struct _NokiaIsiIsiNetworkRegisterRunData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	NokiaIsiIsiNetworkRegister* self;
	Block11Data* _data11_;
	GIsiCommModemAccess* _tmp0_;
	GIsiCommNetwork* _tmp1_;
	gboolean _tmp2_;
	GIsiCommErrorCode _tmp3_;
	GIsiCommErrorCode _tmp4_;
	gchar* _tmp5_;
	gchar* _tmp6_;
	GError* _tmp7_;
	GError* _tmp8_;
	gboolean _tmp9_;
	GError * _inner_error_;
};

struct _NokiaIsiIsiNetworkRegisterWithProvider {
	FsoGsmNetworkRegisterWithProvider parent_instance;
	NokiaIsiIsiNetworkRegisterWithProviderPrivate * priv;
};

struct _NokiaIsiIsiNetworkRegisterWithProviderClass {
	FsoGsmNetworkRegisterWithProviderClass parent_class;
};

struct _Block12Data {
	int _ref_count_;
	NokiaIsiIsiNetworkRegisterWithProvider * self;
	GIsiCommErrorCode e;
	gpointer _async_data_;
};

struct _NokiaIsiIsiNetworkRegisterWithProviderRunData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	NokiaIsiIsiNetworkRegisterWithProvider* self;
	gchar* mccmnc;
	Block12Data* _data12_;
	GIsiCommModemAccess* _tmp0_;
	GIsiCommNetwork* _tmp1_;
	const gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	const gchar* _tmp5_;
	gchar* _tmp6_;
	gchar* _tmp7_;
	GIsiCommErrorCode _tmp8_;
	GIsiCommErrorCode _tmp9_;
	gchar* _tmp10_;
	gchar* _tmp11_;
	GError* _tmp12_;
	GError* _tmp13_;
	GError * _inner_error_;
};


static gpointer nokia_isi_isi_network_get_status_parent_class = NULL;
extern GIsiCommModemAccess* nokia_isi_isimodem;
static GType nokia_isi_isi_network_get_status_type_id = 0;
static gpointer nokia_isi_isi_network_list_providers_parent_class = NULL;
static GType nokia_isi_isi_network_list_providers_type_id = 0;
static gpointer nokia_isi_isi_network_get_signal_strength_parent_class = NULL;
static GType nokia_isi_isi_network_get_signal_strength_type_id = 0;
static gpointer nokia_isi_isi_network_register_parent_class = NULL;
static gboolean nokia_isi_isi_network_register_force;
static gboolean nokia_isi_isi_network_register_force = FALSE;
static GType nokia_isi_isi_network_register_type_id = 0;
static gpointer nokia_isi_isi_network_register_with_provider_parent_class = NULL;
static GType nokia_isi_isi_network_register_with_provider_type_id = 0;

GHashTable* nokia_isi_isiRegStatusToFsoRegStatus (GIsiCommNetworkISI_RegStatus* istatus);
static void _g_free0_ (gpointer var);
static void _g_variant_unref0_ (gpointer var);
static GVariant* _variant_new9 (const gchar* value);
static GVariant* _variant_new10 (const gchar* value);
static GVariant* _variant_new11 (gchar* value);
static GVariant* _variant_new12 (const gchar* value);
static GVariant* _variant_new13 (const gchar* value);
static GVariant* _variant_new14 (const gchar* value);
static GVariant* _variant_new15 (const gchar* value);
static GVariant* _variant_new16 (const gchar* value);
static GVariant* _variant_new17 (guint value);
static GVariant* _variant_new18 (gchar* value);
GType nokia_isi_isi_network_get_status_get_type (void) G_GNUC_CONST;
GType nokia_isi_isi_network_get_status_register_type (GTypeModule * module);
enum  {
	NOKIA_ISI_ISI_NETWORK_GET_STATUS_DUMMY_PROPERTY
};
static void nokia_isi_isi_network_get_status_real_run_data_free (gpointer _data);
static void nokia_isi_isi_network_get_status_real_run (FsoGsmNetworkGetStatus* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean nokia_isi_isi_network_get_status_real_run_co (NokiaIsiIsiNetworkGetStatusRunData* _data_);
static Block8Data* block8_data_ref (Block8Data* _data8_);
static void block8_data_unref (Block8Data* _data8_);
static void __lambda16_ (Block8Data* _data8_, GIsiCommErrorCode _error_, GIsiCommNetworkISI_RegStatus* isistatus);
static void ___lambda16__gisi_comm_isi_reg_status_result_func (GIsiCommErrorCode _error_, GIsiCommNetworkISI_RegStatus* status, gpointer self);
static void __lambda17_ (Block8Data* _data8_, GIsiCommErrorCode _error_, gint strength);
static GVariant* _variant_new19 (gint value);
static void ___lambda17__gisi_comm_int_result_func (GIsiCommErrorCode _error_, gint _result_, gpointer self);
NokiaIsiIsiNetworkGetStatus* nokia_isi_isi_network_get_status_new (void);
NokiaIsiIsiNetworkGetStatus* nokia_isi_isi_network_get_status_construct (GType object_type);
GType nokia_isi_isi_network_list_providers_get_type (void) G_GNUC_CONST;
GType nokia_isi_isi_network_list_providers_register_type (GTypeModule * module);
enum  {
	NOKIA_ISI_ISI_NETWORK_LIST_PROVIDERS_DUMMY_PROPERTY
};
static void nokia_isi_isi_network_list_providers_real_run_data_free (gpointer _data);
static void nokia_isi_isi_network_list_providers_real_run (FsoGsmNetworkListProviders* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean nokia_isi_isi_network_list_providers_real_run_co (NokiaIsiIsiNetworkListProvidersRunData* _data_);
static Block9Data* block9_data_ref (Block9Data* _data9_);
static void _vala_FreeSmartphoneGSMNetworkProvider_array_free (FreeSmartphoneGSMNetworkProvider* array, gint array_length);
static void block9_data_unref (Block9Data* _data9_);
static void __lambda19_ (Block9Data* _data9_, GIsiCommErrorCode _error_, GIsiCommNetworkISI_Provider* operators, int operators_length1);
static void _vala_array_add3 (FreeSmartphoneGSMNetworkProvider** array, int* length, int* size, const FreeSmartphoneGSMNetworkProvider* value);
static void ___lambda19__gisi_comm_isi_provider_array_result_func (GIsiCommErrorCode _error_, GIsiCommNetworkISI_Provider* providers, int providers_length1, gpointer self);
NokiaIsiIsiNetworkListProviders* nokia_isi_isi_network_list_providers_new (void);
NokiaIsiIsiNetworkListProviders* nokia_isi_isi_network_list_providers_construct (GType object_type);
GType nokia_isi_isi_network_get_signal_strength_get_type (void) G_GNUC_CONST;
GType nokia_isi_isi_network_get_signal_strength_register_type (GTypeModule * module);
enum  {
	NOKIA_ISI_ISI_NETWORK_GET_SIGNAL_STRENGTH_DUMMY_PROPERTY
};
static void nokia_isi_isi_network_get_signal_strength_real_run_data_free (gpointer _data);
static void nokia_isi_isi_network_get_signal_strength_real_run (FsoGsmNetworkGetSignalStrength* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean nokia_isi_isi_network_get_signal_strength_real_run_co (NokiaIsiIsiNetworkGetSignalStrengthRunData* _data_);
static Block10Data* block10_data_ref (Block10Data* _data10_);
static void block10_data_unref (Block10Data* _data10_);
static void __lambda18_ (Block10Data* _data10_, GIsiCommErrorCode _error_, gint strength);
static void ___lambda18__gisi_comm_int_result_func (GIsiCommErrorCode _error_, gint _result_, gpointer self);
NokiaIsiIsiNetworkGetSignalStrength* nokia_isi_isi_network_get_signal_strength_new (void);
NokiaIsiIsiNetworkGetSignalStrength* nokia_isi_isi_network_get_signal_strength_construct (GType object_type);
GType nokia_isi_isi_network_register_get_type (void) G_GNUC_CONST;
GType nokia_isi_isi_network_register_register_type (GTypeModule * module);
enum  {
	NOKIA_ISI_ISI_NETWORK_REGISTER_DUMMY_PROPERTY
};
static void nokia_isi_isi_network_register_real_run_data_free (gpointer _data);
static void nokia_isi_isi_network_register_real_run (FsoGsmNetworkRegister* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean nokia_isi_isi_network_register_real_run_co (NokiaIsiIsiNetworkRegisterRunData* _data_);
static Block11Data* block11_data_ref (Block11Data* _data11_);
static void block11_data_unref (Block11Data* _data11_);
static void __lambda20_ (Block11Data* _data11_, GIsiCommErrorCode _error_);
static void ___lambda20__gisi_comm_void_result_func (GIsiCommErrorCode _error_, gpointer self);
NokiaIsiIsiNetworkRegister* nokia_isi_isi_network_register_new (void);
NokiaIsiIsiNetworkRegister* nokia_isi_isi_network_register_construct (GType object_type);
static void nokia_isi_isi_network_register_finalize (GObject* obj);
GType nokia_isi_isi_network_register_with_provider_get_type (void) G_GNUC_CONST;
GType nokia_isi_isi_network_register_with_provider_register_type (GTypeModule * module);
enum  {
	NOKIA_ISI_ISI_NETWORK_REGISTER_WITH_PROVIDER_DUMMY_PROPERTY
};
static void nokia_isi_isi_network_register_with_provider_real_run_data_free (gpointer _data);
static void nokia_isi_isi_network_register_with_provider_real_run (FsoGsmNetworkRegisterWithProvider* base, const gchar* mccmnc, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean nokia_isi_isi_network_register_with_provider_real_run_co (NokiaIsiIsiNetworkRegisterWithProviderRunData* _data_);
static Block12Data* block12_data_ref (Block12Data* _data12_);
static void block12_data_unref (Block12Data* _data12_);
static void __lambda21_ (Block12Data* _data12_, GIsiCommErrorCode _error_);
static void ___lambda21__gisi_comm_void_result_func (GIsiCommErrorCode _error_, gpointer self);
NokiaIsiIsiNetworkRegisterWithProvider* nokia_isi_isi_network_register_with_provider_new (void);
NokiaIsiIsiNetworkRegisterWithProvider* nokia_isi_isi_network_register_with_provider_construct (GType object_type);


static void _g_free0_ (gpointer var) {
	var = (g_free (var), NULL);
}


static void _g_variant_unref0_ (gpointer var) {
	(var == NULL) ? NULL : (var = (g_variant_unref (var), NULL));
}


static GVariant* _variant_new9 (const gchar* value) {
	return g_variant_ref_sink (g_variant_new_string (value));
}


static GVariant* _variant_new10 (const gchar* value) {
	return g_variant_ref_sink (g_variant_new_string (value));
}


static GVariant* _variant_new11 (gchar* value) {
	return g_variant_ref_sink (g_variant_new_string (value));
}


static GVariant* _variant_new12 (const gchar* value) {
	return g_variant_ref_sink (g_variant_new_string (value));
}


static GVariant* _variant_new13 (const gchar* value) {
	return g_variant_ref_sink (g_variant_new_string (value));
}


static GVariant* _variant_new14 (const gchar* value) {
	return g_variant_ref_sink (g_variant_new_string (value));
}


static GVariant* _variant_new15 (const gchar* value) {
	return g_variant_ref_sink (g_variant_new_string (value));
}


static GVariant* _variant_new16 (const gchar* value) {
	return g_variant_ref_sink (g_variant_new_string (value));
}


static GVariant* _variant_new17 (guint value) {
	return g_variant_ref_sink (g_variant_new_uint32 (value));
}


static GVariant* _variant_new18 (gchar* value) {
	return g_variant_ref_sink (g_variant_new_string (value));
}


GHashTable* nokia_isi_isiRegStatusToFsoRegStatus (GIsiCommNetworkISI_RegStatus* istatus) {
	GHashTable* result = NULL;
	GHashFunc _tmp0_;
	GEqualFunc _tmp1_;
	GHashTable* _tmp2_;
	GHashTable* status;
	gboolean _tmp3_ = FALSE;
	gboolean _tmp4_ = FALSE;
	GIsiCommNetworkISI_RegStatus _tmp5_;
	guint8 _tmp6_;
	gboolean _tmp9_;
	gboolean _tmp12_;
	gchar* _tmp72_;
	gchar* regstatus;
	GIsiCommNetworkISI_RegStatus _tmp73_;
	guint8 _tmp74_;
	gchar* regmode = NULL;
	GIsiCommNetworkISI_RegStatus _tmp80_;
	guint8 _tmp81_;
	GHashTable* _tmp85_;
	gchar* _tmp86_;
	const gchar* _tmp87_;
	GVariant* _tmp88_;
	GHashTable* _tmp89_;
	gchar* _tmp90_;
	const gchar* _tmp91_;
	GVariant* _tmp92_;
	GHashTable* _tmp93_;
	gchar* _tmp94_;
	GIsiCommNetworkISI_RegStatus _tmp95_;
	guint _tmp96_;
	GVariant* _tmp97_;
	gint technology;
	gboolean _tmp98_ = FALSE;
	GIsiCommNetworkISI_RegStatus _tmp99_;
	gboolean _tmp100_;
	gboolean _tmp103_;
	GHashTable* _tmp106_;
	gchar* _tmp107_;
	FsoGsmConstants* _tmp108_ = NULL;
	FsoGsmConstants* _tmp109_;
	gint _tmp110_;
	gchar* _tmp111_ = NULL;
	GVariant* _tmp112_;
	g_return_val_if_fail (istatus != NULL, NULL);
	_tmp0_ = g_str_hash;
	_tmp1_ = g_str_equal;
	_tmp2_ = g_hash_table_new_full (_tmp0_, _tmp1_, _g_free0_, _g_variant_unref0_);
	status = _tmp2_;
	_tmp5_ = *istatus;
	_tmp6_ = _tmp5_.status;
	if (_tmp6_ == NET_REG_STATUS_HOME) {
		_tmp4_ = TRUE;
	} else {
		GIsiCommNetworkISI_RegStatus _tmp7_;
		guint8 _tmp8_;
		_tmp7_ = *istatus;
		_tmp8_ = _tmp7_.status;
		_tmp4_ = _tmp8_ == NET_REG_STATUS_ROAM;
	}
	_tmp9_ = _tmp4_;
	if (_tmp9_) {
		_tmp3_ = TRUE;
	} else {
		GIsiCommNetworkISI_RegStatus _tmp10_;
		guint8 _tmp11_;
		_tmp10_ = *istatus;
		_tmp11_ = _tmp10_.status;
		_tmp3_ = _tmp11_ == NET_REG_STATUS_ROAM_BLINK;
	}
	_tmp12_ = _tmp3_;
	if (_tmp12_) {
		GHashTable* _tmp13_;
		gchar* _tmp14_;
		GIsiCommNetworkISI_RegStatus _tmp15_;
		const gchar* _tmp16_;
		GVariant* _tmp17_;
		GHashTable* _tmp18_;
		gchar* _tmp19_;
		GIsiCommNetworkISI_RegStatus _tmp20_;
		const gchar* _tmp21_;
		GVariant* _tmp22_;
		GHashTable* _tmp23_;
		gchar* _tmp24_;
		GIsiCommNetworkISI_RegStatus _tmp25_;
		const gchar* _tmp26_;
		GIsiCommNetworkISI_RegStatus _tmp27_;
		const gchar* _tmp28_;
		gchar* _tmp29_;
		GVariant* _tmp30_;
		GIsiCommNetworkISI_RegStatus _tmp31_;
		const gchar* _tmp32_;
		gchar* _tmp33_;
		gchar* _tmp34_;
		const gchar* _tmp35_;
		const gchar* _tmp37_;
		gchar* _tmp38_;
		gchar* name;
		GIsiCommNetworkISI_RegStatus _tmp39_;
		const gchar* _tmp40_;
		gchar* _tmp41_;
		gchar* _tmp42_;
		const gchar* _tmp43_;
		GHashTable* _tmp46_;
		gchar* _tmp47_;
		const gchar* _tmp48_;
		GVariant* _tmp49_;
		GIsiCommNetworkISI_RegStatus _tmp50_;
		const gchar* _tmp51_;
		gchar* _tmp52_;
		gchar* _tmp53_;
		const gchar* _tmp54_;
		GHashTable* _tmp57_;
		gchar* _tmp58_;
		const gchar* _tmp59_;
		GVariant* _tmp60_;
		GIsiCommNetworkISI_RegStatus _tmp61_;
		const gchar* _tmp62_;
		gchar* _tmp63_;
		gchar* _tmp64_;
		const gchar* _tmp65_;
		GHashTable* _tmp68_;
		gchar* _tmp69_;
		const gchar* _tmp70_;
		GVariant* _tmp71_;
		_tmp13_ = status;
		_tmp14_ = g_strdup ("lac");
		_tmp15_ = *istatus;
		_tmp16_ = _tmp15_.lac;
		_tmp17_ = _variant_new9 (_tmp16_);
		g_hash_table_insert (_tmp13_, _tmp14_, _tmp17_);
		_tmp18_ = status;
		_tmp19_ = g_strdup ("cid");
		_tmp20_ = *istatus;
		_tmp21_ = _tmp20_.cid;
		_tmp22_ = _variant_new10 (_tmp21_);
		g_hash_table_insert (_tmp18_, _tmp19_, _tmp22_);
		_tmp23_ = status;
		_tmp24_ = g_strdup ("code");
		_tmp25_ = *istatus;
		_tmp26_ = _tmp25_.mcc;
		_tmp27_ = *istatus;
		_tmp28_ = _tmp27_.mnc;
		_tmp29_ = g_strconcat (_tmp26_, _tmp28_, NULL);
		_tmp30_ = _variant_new11 (_tmp29_);
		g_hash_table_insert (_tmp23_, _tmp24_, _tmp30_);
		_tmp31_ = *istatus;
		_tmp32_ = _tmp31_.name;
		_tmp33_ = g_strdup (_tmp32_);
		_tmp34_ = _tmp33_;
		_tmp35_ = _tmp34_;
		if (_tmp35_ == NULL) {
			gchar* _tmp36_;
			_tmp36_ = g_strdup ("");
			_g_free0 (_tmp34_);
			_tmp34_ = _tmp36_;
		}
		_tmp37_ = _tmp34_;
		_tmp38_ = g_strdup (_tmp37_);
		name = _tmp38_;
		_tmp39_ = *istatus;
		_tmp40_ = _tmp39_.network;
		_tmp41_ = g_strdup (_tmp40_);
		_tmp42_ = _tmp41_;
		_tmp43_ = _tmp42_;
		if (_tmp43_ == NULL) {
			const gchar* _tmp44_;
			gchar* _tmp45_;
			_tmp44_ = name;
			_tmp45_ = g_strdup (_tmp44_);
			_g_free0 (_tmp42_);
			_tmp42_ = _tmp45_;
		}
		_tmp46_ = status;
		_tmp47_ = g_strdup ("network");
		_tmp48_ = _tmp42_;
		_tmp49_ = _variant_new12 (_tmp48_);
		g_hash_table_insert (_tmp46_, _tmp47_, _tmp49_);
		_tmp50_ = *istatus;
		_tmp51_ = _tmp50_.name;
		_tmp52_ = g_strdup (_tmp51_);
		_tmp53_ = _tmp52_;
		_tmp54_ = _tmp53_;
		if (_tmp54_ == NULL) {
			const gchar* _tmp55_;
			gchar* _tmp56_;
			_tmp55_ = name;
			_tmp56_ = g_strdup (_tmp55_);
			_g_free0 (_tmp53_);
			_tmp53_ = _tmp56_;
		}
		_tmp57_ = status;
		_tmp58_ = g_strdup ("provider");
		_tmp59_ = _tmp53_;
		_tmp60_ = _variant_new13 (_tmp59_);
		g_hash_table_insert (_tmp57_, _tmp58_, _tmp60_);
		_tmp61_ = *istatus;
		_tmp62_ = _tmp61_.name;
		_tmp63_ = g_strdup (_tmp62_);
		_tmp64_ = _tmp63_;
		_tmp65_ = _tmp64_;
		if (_tmp65_ == NULL) {
			const gchar* _tmp66_;
			gchar* _tmp67_;
			_tmp66_ = name;
			_tmp67_ = g_strdup (_tmp66_);
			_g_free0 (_tmp64_);
			_tmp64_ = _tmp67_;
		}
		_tmp68_ = status;
		_tmp69_ = g_strdup ("display");
		_tmp70_ = _tmp64_;
		_tmp71_ = _variant_new14 (_tmp70_);
		g_hash_table_insert (_tmp68_, _tmp69_, _tmp71_);
		_g_free0 (_tmp64_);
		_g_free0 (_tmp53_);
		_g_free0 (_tmp42_);
		_g_free0 (name);
		_g_free0 (_tmp34_);
	}
	_tmp72_ = g_strdup ("<unknown>");
	regstatus = _tmp72_;
	_tmp73_ = *istatus;
	_tmp74_ = _tmp73_.status;
	switch (_tmp74_) {
		case NET_REG_STATUS_HOME:
		{
			gchar* _tmp75_;
			_tmp75_ = g_strdup ("home");
			_g_free0 (regstatus);
			regstatus = _tmp75_;
			break;
		}
		case NET_REG_STATUS_ROAM:
		case NET_REG_STATUS_ROAM_BLINK:
		{
			gchar* _tmp76_;
			_tmp76_ = g_strdup ("roaming");
			_g_free0 (regstatus);
			regstatus = _tmp76_;
			break;
		}
		case NET_REG_STATUS_NOSERV:
		case NET_REG_STATUS_NOSERV_NOTSEARCHING:
		{
			gchar* _tmp77_;
			_tmp77_ = g_strdup ("unregistered");
			_g_free0 (regstatus);
			regstatus = _tmp77_;
			break;
		}
		case NET_REG_STATUS_NOSERV_SEARCHING:
		{
			gchar* _tmp78_;
			_tmp78_ = g_strdup ("searching");
			_g_free0 (regstatus);
			regstatus = _tmp78_;
			break;
		}
		case NET_REG_STATUS_NOSERV_NOSIM:
		case NET_REG_STATUS_NOSERV_SIM_REJECTED_BY_NW:
		{
			gchar* _tmp79_;
			_tmp79_ = g_strdup ("denied");
			_g_free0 (regstatus);
			regstatus = _tmp79_;
			break;
		}
		default:
		break;
	}
	_tmp80_ = *istatus;
	_tmp81_ = _tmp80_.mode;
	switch (_tmp81_) {
		case NET_SELECT_MODE_AUTOMATIC:
		{
			gchar* _tmp82_;
			_tmp82_ = g_strdup ("automatic");
			_g_free0 (regmode);
			regmode = _tmp82_;
			break;
		}
		case NET_SELECT_MODE_MANUAL:
		{
			gchar* _tmp83_;
			_tmp83_ = g_strdup ("manual");
			_g_free0 (regmode);
			regmode = _tmp83_;
			break;
		}
		default:
		{
			gchar* _tmp84_;
			_tmp84_ = g_strdup ("unknown");
			_g_free0 (regmode);
			regmode = _tmp84_;
			break;
		}
	}
	_tmp85_ = status;
	_tmp86_ = g_strdup ("mode");
	_tmp87_ = regmode;
	_tmp88_ = _variant_new15 (_tmp87_);
	g_hash_table_insert (_tmp85_, _tmp86_, _tmp88_);
	_tmp89_ = status;
	_tmp90_ = g_strdup ("registration");
	_tmp91_ = regstatus;
	_tmp92_ = _variant_new16 (_tmp91_);
	g_hash_table_insert (_tmp89_, _tmp90_, _tmp92_);
	_tmp93_ = status;
	_tmp94_ = g_strdup ("band");
	_tmp95_ = *istatus;
	_tmp96_ = _tmp95_.band;
	_tmp97_ = _variant_new17 (_tmp96_);
	g_hash_table_insert (_tmp93_, _tmp94_, _tmp97_);
	technology = 0;
	_tmp99_ = *istatus;
	_tmp100_ = _tmp99_.hsupa;
	if (_tmp100_) {
		_tmp98_ = TRUE;
	} else {
		GIsiCommNetworkISI_RegStatus _tmp101_;
		gboolean _tmp102_;
		_tmp101_ = *istatus;
		_tmp102_ = _tmp101_.hsdpa;
		_tmp98_ = _tmp102_;
	}
	_tmp103_ = _tmp98_;
	if (_tmp103_) {
		technology = 2;
	} else {
		GIsiCommNetworkISI_RegStatus _tmp104_;
		gboolean _tmp105_;
		_tmp104_ = *istatus;
		_tmp105_ = _tmp104_.egprs;
		if (_tmp105_) {
			technology = 3;
		}
	}
	_tmp106_ = status;
	_tmp107_ = g_strdup ("act");
	_tmp108_ = fso_gsm_constants_instance ();
	_tmp109_ = _tmp108_;
	_tmp110_ = technology;
	_tmp111_ = fso_gsm_constants_networkProviderActToString (_tmp109_, _tmp110_);
	_tmp112_ = _variant_new18 (_tmp111_);
	g_hash_table_insert (_tmp106_, _tmp107_, _tmp112_);
	_fso_gsm_constants_unref0 (_tmp109_);
	result = status;
	_g_free0 (regmode);
	_g_free0 (regstatus);
	return result;
}


static void nokia_isi_isi_network_get_status_real_run_data_free (gpointer _data) {
	NokiaIsiIsiNetworkGetStatusRunData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->self);
	g_slice_free (NokiaIsiIsiNetworkGetStatusRunData, _data_);
}


static gpointer _g_object_ref0 (gpointer self) {
	return self ? g_object_ref (self) : NULL;
}


static void nokia_isi_isi_network_get_status_real_run (FsoGsmNetworkGetStatus* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	NokiaIsiIsiNetworkGetStatus * self;
	NokiaIsiIsiNetworkGetStatusRunData* _data_;
	NokiaIsiIsiNetworkGetStatus* _tmp0_;
	self = (NokiaIsiIsiNetworkGetStatus*) base;
	_data_ = g_slice_new0 (NokiaIsiIsiNetworkGetStatusRunData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, nokia_isi_isi_network_get_status_real_run);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, nokia_isi_isi_network_get_status_real_run_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	nokia_isi_isi_network_get_status_real_run_co (_data_);
}


static void nokia_isi_isi_network_get_status_real_run_finish (FsoGsmNetworkGetStatus* base, GAsyncResult* _res_, GError** error) {
	NokiaIsiIsiNetworkGetStatusRunData* _data_;
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
		return;
	}
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
}


static Block8Data* block8_data_ref (Block8Data* _data8_) {
	g_atomic_int_inc (&_data8_->_ref_count_);
	return _data8_;
}


static void block8_data_unref (Block8Data* _data8_) {
	if (g_atomic_int_dec_and_test (&_data8_->_ref_count_)) {
		_g_object_unref0 (_data8_->self);
		gisi_comm_network_isi_regstatus_destroy (&_data8_->istatus);
		g_slice_free (Block8Data, _data8_);
	}
}


static void __lambda16_ (Block8Data* _data8_, GIsiCommErrorCode _error_, GIsiCommNetworkISI_RegStatus* isistatus) {
	NokiaIsiIsiNetworkGetStatus * self;
	GIsiCommErrorCode _tmp0_;
	self = _data8_->self;
	_tmp0_ = _error_;
	if (_tmp0_ == GISI_COMM_ERROR_CODE_OK) {
		GIsiCommNetworkISI_RegStatus* _tmp1_;
		GIsiCommNetworkISI_RegStatus _tmp2_ = {0};
		_tmp1_ = isistatus;
		gisi_comm_network_isi_regstatus_copy (_tmp1_, &_tmp2_);
		gisi_comm_network_isi_regstatus_destroy (&_data8_->istatus);
		_data8_->istatus = _tmp2_;
	}
	nokia_isi_isi_network_get_status_real_run_co (_data8_->_async_data_);
}


static void ___lambda16__gisi_comm_isi_reg_status_result_func (GIsiCommErrorCode _error_, GIsiCommNetworkISI_RegStatus* status, gpointer self) {
	__lambda16_ (self, _error_, status);
}


static GVariant* _variant_new19 (gint value) {
	return g_variant_ref_sink (g_variant_new_int32 (value));
}


static void __lambda17_ (Block8Data* _data8_, GIsiCommErrorCode _error_, gint strength) {
	NokiaIsiIsiNetworkGetStatus * self;
	GIsiCommErrorCode _tmp0_;
	self = _data8_->self;
	_tmp0_ = _error_;
	if (_tmp0_ == GISI_COMM_ERROR_CODE_OK) {
		GHashTable* _tmp1_;
		GHashTable* _tmp2_;
		gchar* _tmp3_;
		gint _tmp4_;
		GVariant* _tmp5_;
		_tmp1_ = fso_gsm_network_get_status_get_status ((FsoGsmNetworkGetStatus*) self);
		_tmp2_ = _tmp1_;
		_tmp3_ = g_strdup ("strength");
		_tmp4_ = strength;
		_tmp5_ = _variant_new19 (_tmp4_);
		g_hash_table_insert (_tmp2_, _tmp3_, _tmp5_);
	}
	nokia_isi_isi_network_get_status_real_run_co (_data8_->_async_data_);
}


static void ___lambda17__gisi_comm_int_result_func (GIsiCommErrorCode _error_, gint _result_, gpointer self) {
	__lambda17_ (self, _error_, _result_);
}


static gboolean nokia_isi_isi_network_get_status_real_run_co (NokiaIsiIsiNetworkGetStatusRunData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		case 2:
		goto _state_2;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_data8_ = g_slice_new0 (Block8Data);
	_data_->_data8_->_ref_count_ = 1;
	_data_->_data8_->self = g_object_ref (_data_->self);
	_data_->_data8_->_async_data_ = _data_;
	memset (&_data_->_data8_->istatus, 0, sizeof (GIsiCommNetworkISI_RegStatus));
	_data_->_tmp0_ = nokia_isi_isimodem;
	_data_->_tmp1_ = _data_->_tmp0_->net;
	gisi_comm_network_queryStatus (_data_->_tmp1_, ___lambda16__gisi_comm_isi_reg_status_result_func, block8_data_ref (_data_->_data8_), block8_data_unref);
	_data_->_state_ = 1;
	return FALSE;
	_state_1:
	;
	_data_->_tmp2_ = _data_->_data8_->istatus;
	_data_->_tmp3_ = NULL;
	_data_->_tmp3_ = nokia_isi_isiRegStatusToFsoRegStatus (&_data_->_tmp2_);
	_data_->_tmp4_ = _data_->_tmp3_;
	fso_gsm_network_get_status_set_status ((FsoGsmNetworkGetStatus*) _data_->self, _data_->_tmp4_);
	_g_hash_table_unref0 (_data_->_tmp4_);
	_data_->_tmp5_ = nokia_isi_isimodem;
	_data_->_tmp6_ = _data_->_tmp5_->net;
	gisi_comm_network_queryStrength (_data_->_tmp6_, ___lambda17__gisi_comm_int_result_func, block8_data_ref (_data_->_data8_), block8_data_unref);
	_data_->_state_ = 2;
	return FALSE;
	_state_2:
	;
	block8_data_unref (_data_->_data8_);
	_data_->_data8_ = NULL;
	if (_data_->_state_ == 0) {
		g_simple_async_result_complete_in_idle (_data_->_async_result);
	} else {
		g_simple_async_result_complete (_data_->_async_result);
	}
	g_object_unref (_data_->_async_result);
	return FALSE;
}


NokiaIsiIsiNetworkGetStatus* nokia_isi_isi_network_get_status_construct (GType object_type) {
	NokiaIsiIsiNetworkGetStatus * self = NULL;
	self = (NokiaIsiIsiNetworkGetStatus*) fso_gsm_network_get_status_construct (object_type);
	return self;
}


NokiaIsiIsiNetworkGetStatus* nokia_isi_isi_network_get_status_new (void) {
	return nokia_isi_isi_network_get_status_construct (NOKIA_ISI_TYPE_ISI_NETWORK_GET_STATUS);
}


static void nokia_isi_isi_network_get_status_class_init (NokiaIsiIsiNetworkGetStatusClass * klass) {
	nokia_isi_isi_network_get_status_parent_class = g_type_class_peek_parent (klass);
	FSO_GSM_NETWORK_GET_STATUS_CLASS (klass)->run = nokia_isi_isi_network_get_status_real_run;
	FSO_GSM_NETWORK_GET_STATUS_CLASS (klass)->run_finish = nokia_isi_isi_network_get_status_real_run_finish;
}


static void nokia_isi_isi_network_get_status_instance_init (NokiaIsiIsiNetworkGetStatus * self) {
}


GType nokia_isi_isi_network_get_status_get_type (void) {
	return nokia_isi_isi_network_get_status_type_id;
}


GType nokia_isi_isi_network_get_status_register_type (GTypeModule * module) {
	static const GTypeInfo g_define_type_info = { sizeof (NokiaIsiIsiNetworkGetStatusClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) nokia_isi_isi_network_get_status_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NokiaIsiIsiNetworkGetStatus), 0, (GInstanceInitFunc) nokia_isi_isi_network_get_status_instance_init, NULL };
	nokia_isi_isi_network_get_status_type_id = g_type_module_register_type (module, FSO_GSM_TYPE_NETWORK_GET_STATUS, "NokiaIsiIsiNetworkGetStatus", &g_define_type_info, 0);
	return nokia_isi_isi_network_get_status_type_id;
}


static void nokia_isi_isi_network_list_providers_real_run_data_free (gpointer _data) {
	NokiaIsiIsiNetworkListProvidersRunData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->self);
	g_slice_free (NokiaIsiIsiNetworkListProvidersRunData, _data_);
}


static void nokia_isi_isi_network_list_providers_real_run (FsoGsmNetworkListProviders* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	NokiaIsiIsiNetworkListProviders * self;
	NokiaIsiIsiNetworkListProvidersRunData* _data_;
	NokiaIsiIsiNetworkListProviders* _tmp0_;
	self = (NokiaIsiIsiNetworkListProviders*) base;
	_data_ = g_slice_new0 (NokiaIsiIsiNetworkListProvidersRunData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, nokia_isi_isi_network_list_providers_real_run);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, nokia_isi_isi_network_list_providers_real_run_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	nokia_isi_isi_network_list_providers_real_run_co (_data_);
}


static void nokia_isi_isi_network_list_providers_real_run_finish (FsoGsmNetworkListProviders* base, GAsyncResult* _res_, GError** error) {
	NokiaIsiIsiNetworkListProvidersRunData* _data_;
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
		return;
	}
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
}


static Block9Data* block9_data_ref (Block9Data* _data9_) {
	g_atomic_int_inc (&_data9_->_ref_count_);
	return _data9_;
}


static void _vala_FreeSmartphoneGSMNetworkProvider_array_free (FreeSmartphoneGSMNetworkProvider* array, gint array_length) {
	if (array != NULL) {
		int i;
		for (i = 0; i < array_length; i = i + 1) {
			free_smartphone_gsm_network_provider_destroy (&array[i]);
		}
	}
	g_free (array);
}


static void block9_data_unref (Block9Data* _data9_) {
	if (g_atomic_int_dec_and_test (&_data9_->_ref_count_)) {
		_g_object_unref0 (_data9_->self);
		_data9_->p = (_vala_FreeSmartphoneGSMNetworkProvider_array_free (_data9_->p, _data9_->p_length1), NULL);
		g_slice_free (Block9Data, _data9_);
	}
}


static void _vala_array_add3 (FreeSmartphoneGSMNetworkProvider** array, int* length, int* size, const FreeSmartphoneGSMNetworkProvider* value) {
	if ((*length) == (*size)) {
		*size = (*size) ? (2 * (*size)) : 4;
		*array = g_renew (FreeSmartphoneGSMNetworkProvider, *array, *size);
	}
	(*array)[(*length)++] = *value;
}


static void __lambda19_ (Block9Data* _data9_, GIsiCommErrorCode _error_, GIsiCommNetworkISI_Provider* operators, int operators_length1) {
	NokiaIsiIsiNetworkListProviders * self;
	GIsiCommErrorCode _tmp0_;
	self = _data9_->self;
	_tmp0_ = _error_;
	if (_tmp0_ == GISI_COMM_ERROR_CODE_OK) {
		{
			gint i;
			i = 0;
			{
				gboolean _tmp1_;
				_tmp1_ = TRUE;
				while (TRUE) {
					gboolean _tmp2_;
					gint _tmp4_;
					GIsiCommNetworkISI_Provider* _tmp5_;
					gint _tmp5__length1;
					FsoGsmConstants* _tmp6_ = NULL;
					FsoGsmConstants* _tmp7_;
					GIsiCommNetworkISI_Provider* _tmp8_;
					gint _tmp8__length1;
					gint _tmp9_;
					GIsiCommNetworkISI_Provider _tmp10_;
					guint8 _tmp11_;
					gchar* _tmp12_ = NULL;
					gchar* _tmp13_;
					GIsiCommNetworkISI_Provider* _tmp14_;
					gint _tmp14__length1;
					gint _tmp15_;
					GIsiCommNetworkISI_Provider _tmp16_;
					const gchar* _tmp17_;
					GIsiCommNetworkISI_Provider* _tmp18_;
					gint _tmp18__length1;
					gint _tmp19_;
					GIsiCommNetworkISI_Provider _tmp20_;
					const gchar* _tmp21_;
					GIsiCommNetworkISI_Provider* _tmp22_;
					gint _tmp22__length1;
					gint _tmp23_;
					GIsiCommNetworkISI_Provider _tmp24_;
					const gchar* _tmp25_;
					GIsiCommNetworkISI_Provider* _tmp26_;
					gint _tmp26__length1;
					gint _tmp27_;
					GIsiCommNetworkISI_Provider _tmp28_;
					const gchar* _tmp29_;
					gchar* _tmp30_;
					gchar* _tmp31_;
					FsoGsmConstants* _tmp32_ = NULL;
					FsoGsmConstants* _tmp33_;
					GIsiCommNetworkISI_Provider* _tmp34_;
					gint _tmp34__length1;
					gint _tmp35_;
					GIsiCommNetworkISI_Provider _tmp36_;
					gint _tmp37_;
					gchar* _tmp38_ = NULL;
					gchar* _tmp39_;
					FreeSmartphoneGSMNetworkProvider _tmp40_ = {0};
					_tmp2_ = _tmp1_;
					if (!_tmp2_) {
						gint _tmp3_;
						_tmp3_ = i;
						i = _tmp3_ + 1;
					}
					_tmp1_ = FALSE;
					_tmp4_ = i;
					_tmp5_ = operators;
					_tmp5__length1 = operators_length1;
					if (!(_tmp4_ < _tmp5__length1)) {
						break;
					}
					_tmp6_ = fso_gsm_constants_instance ();
					_tmp7_ = _tmp6_;
					_tmp8_ = operators;
					_tmp8__length1 = operators_length1;
					_tmp9_ = i;
					_tmp10_ = _tmp8_[_tmp9_];
					_tmp11_ = _tmp10_.status;
					_tmp12_ = fso_gsm_constants_networkProviderStatusToString (_tmp7_, (gint) _tmp11_);
					_tmp13_ = _tmp12_;
					_tmp14_ = operators;
					_tmp14__length1 = operators_length1;
					_tmp15_ = i;
					_tmp16_ = _tmp14_[_tmp15_];
					_tmp17_ = _tmp16_.name;
					_tmp18_ = operators;
					_tmp18__length1 = operators_length1;
					_tmp19_ = i;
					_tmp20_ = _tmp18_[_tmp19_];
					_tmp21_ = _tmp20_.name;
					_tmp22_ = operators;
					_tmp22__length1 = operators_length1;
					_tmp23_ = i;
					_tmp24_ = _tmp22_[_tmp23_];
					_tmp25_ = _tmp24_.mcc;
					_tmp26_ = operators;
					_tmp26__length1 = operators_length1;
					_tmp27_ = i;
					_tmp28_ = _tmp26_[_tmp27_];
					_tmp29_ = _tmp28_.mnc;
					_tmp30_ = g_strconcat (_tmp25_, _tmp29_, NULL);
					_tmp31_ = _tmp30_;
					_tmp32_ = fso_gsm_constants_instance ();
					_tmp33_ = _tmp32_;
					_tmp34_ = operators;
					_tmp34__length1 = operators_length1;
					_tmp35_ = i;
					_tmp36_ = _tmp34_[_tmp35_];
					_tmp37_ = _tmp36_.technology;
					_tmp38_ = fso_gsm_constants_networkProviderActToString (_tmp33_, _tmp37_);
					_tmp39_ = _tmp38_;
					free_smartphone_gsm_network_provider_init (&_tmp40_, _tmp13_, _tmp17_, _tmp21_, _tmp31_, _tmp39_);
					_vala_array_add3 (&_data9_->p, &_data9_->p_length1, &_data9_->_p_size_, &_tmp40_);
					_g_free0 (_tmp39_);
					_fso_gsm_constants_unref0 (_tmp33_);
					_g_free0 (_tmp31_);
					_g_free0 (_tmp13_);
					_fso_gsm_constants_unref0 (_tmp7_);
				}
			}
		}
	}
	nokia_isi_isi_network_list_providers_real_run_co (_data9_->_async_data_);
}


static void ___lambda19__gisi_comm_isi_provider_array_result_func (GIsiCommErrorCode _error_, GIsiCommNetworkISI_Provider* providers, int providers_length1, gpointer self) {
	__lambda19_ (self, _error_, providers, providers_length1);
}


static gboolean nokia_isi_isi_network_list_providers_real_run_co (NokiaIsiIsiNetworkListProvidersRunData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_data9_ = g_slice_new0 (Block9Data);
	_data_->_data9_->_ref_count_ = 1;
	_data_->_data9_->self = g_object_ref (_data_->self);
	_data_->_data9_->_async_data_ = _data_;
	_data_->_tmp0_ = NULL;
	_data_->_tmp0_ = g_new0 (FreeSmartphoneGSMNetworkProvider, 0);
	_data_->_data9_->p = _data_->_tmp0_;
	_data_->_data9_->p_length1 = 0;
	_data_->_data9_->_p_size_ = _data_->_data9_->p_length1;
	_data_->_tmp1_ = nokia_isi_isimodem;
	_data_->_tmp2_ = _data_->_tmp1_->net;
	gisi_comm_network_listProviders (_data_->_tmp2_, ___lambda19__gisi_comm_isi_provider_array_result_func, block9_data_ref (_data_->_data9_), block9_data_unref);
	_data_->_state_ = 1;
	return FALSE;
	_state_1:
	;
	fso_gsm_network_list_providers_set_providers ((FsoGsmNetworkListProviders*) _data_->self, _data_->_data9_->p, _data_->_data9_->p_length1);
	block9_data_unref (_data_->_data9_);
	_data_->_data9_ = NULL;
	if (_data_->_state_ == 0) {
		g_simple_async_result_complete_in_idle (_data_->_async_result);
	} else {
		g_simple_async_result_complete (_data_->_async_result);
	}
	g_object_unref (_data_->_async_result);
	return FALSE;
}


NokiaIsiIsiNetworkListProviders* nokia_isi_isi_network_list_providers_construct (GType object_type) {
	NokiaIsiIsiNetworkListProviders * self = NULL;
	self = (NokiaIsiIsiNetworkListProviders*) fso_gsm_network_list_providers_construct (object_type);
	return self;
}


NokiaIsiIsiNetworkListProviders* nokia_isi_isi_network_list_providers_new (void) {
	return nokia_isi_isi_network_list_providers_construct (NOKIA_ISI_TYPE_ISI_NETWORK_LIST_PROVIDERS);
}


static void nokia_isi_isi_network_list_providers_class_init (NokiaIsiIsiNetworkListProvidersClass * klass) {
	nokia_isi_isi_network_list_providers_parent_class = g_type_class_peek_parent (klass);
	FSO_GSM_NETWORK_LIST_PROVIDERS_CLASS (klass)->run = nokia_isi_isi_network_list_providers_real_run;
	FSO_GSM_NETWORK_LIST_PROVIDERS_CLASS (klass)->run_finish = nokia_isi_isi_network_list_providers_real_run_finish;
}


static void nokia_isi_isi_network_list_providers_instance_init (NokiaIsiIsiNetworkListProviders * self) {
}


GType nokia_isi_isi_network_list_providers_get_type (void) {
	return nokia_isi_isi_network_list_providers_type_id;
}


GType nokia_isi_isi_network_list_providers_register_type (GTypeModule * module) {
	static const GTypeInfo g_define_type_info = { sizeof (NokiaIsiIsiNetworkListProvidersClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) nokia_isi_isi_network_list_providers_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NokiaIsiIsiNetworkListProviders), 0, (GInstanceInitFunc) nokia_isi_isi_network_list_providers_instance_init, NULL };
	nokia_isi_isi_network_list_providers_type_id = g_type_module_register_type (module, FSO_GSM_TYPE_NETWORK_LIST_PROVIDERS, "NokiaIsiIsiNetworkListProviders", &g_define_type_info, 0);
	return nokia_isi_isi_network_list_providers_type_id;
}


static void nokia_isi_isi_network_get_signal_strength_real_run_data_free (gpointer _data) {
	NokiaIsiIsiNetworkGetSignalStrengthRunData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->self);
	g_slice_free (NokiaIsiIsiNetworkGetSignalStrengthRunData, _data_);
}


static void nokia_isi_isi_network_get_signal_strength_real_run (FsoGsmNetworkGetSignalStrength* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	NokiaIsiIsiNetworkGetSignalStrength * self;
	NokiaIsiIsiNetworkGetSignalStrengthRunData* _data_;
	NokiaIsiIsiNetworkGetSignalStrength* _tmp0_;
	self = (NokiaIsiIsiNetworkGetSignalStrength*) base;
	_data_ = g_slice_new0 (NokiaIsiIsiNetworkGetSignalStrengthRunData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, nokia_isi_isi_network_get_signal_strength_real_run);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, nokia_isi_isi_network_get_signal_strength_real_run_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	nokia_isi_isi_network_get_signal_strength_real_run_co (_data_);
}


static void nokia_isi_isi_network_get_signal_strength_real_run_finish (FsoGsmNetworkGetSignalStrength* base, GAsyncResult* _res_, GError** error) {
	NokiaIsiIsiNetworkGetSignalStrengthRunData* _data_;
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
		return;
	}
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
}


static Block10Data* block10_data_ref (Block10Data* _data10_) {
	g_atomic_int_inc (&_data10_->_ref_count_);
	return _data10_;
}


static void block10_data_unref (Block10Data* _data10_) {
	if (g_atomic_int_dec_and_test (&_data10_->_ref_count_)) {
		_g_object_unref0 (_data10_->self);
		g_slice_free (Block10Data, _data10_);
	}
}


static void __lambda18_ (Block10Data* _data10_, GIsiCommErrorCode _error_, gint strength) {
	NokiaIsiIsiNetworkGetSignalStrength * self;
	GIsiCommErrorCode _tmp0_;
	GError * _inner_error_ = NULL;
	self = _data10_->self;
	_tmp0_ = _error_;
	if (_tmp0_ == GISI_COMM_ERROR_CODE_OK) {
		gint _tmp1_;
		_tmp1_ = strength;
		fso_gsm_network_get_signal_strength_set_signal ((FsoGsmNetworkGetSignalStrength*) self, _tmp1_);
		nokia_isi_isi_network_get_signal_strength_real_run_co (_data10_->_async_data_);
	} else {
		GError* _tmp2_;
		_tmp2_ = g_error_new_literal (FREE_SMARTPHONE_GSM_ERROR, FREE_SMARTPHONE_GSM_ERROR_DEVICE_FAILED, "Unknown ISI Error");
		_inner_error_ = _tmp2_;
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
		g_clear_error (&_inner_error_);
		return;
	}
}


static void ___lambda18__gisi_comm_int_result_func (GIsiCommErrorCode _error_, gint _result_, gpointer self) {
	__lambda18_ (self, _error_, _result_);
}


static gboolean nokia_isi_isi_network_get_signal_strength_real_run_co (NokiaIsiIsiNetworkGetSignalStrengthRunData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_data10_ = g_slice_new0 (Block10Data);
	_data_->_data10_->_ref_count_ = 1;
	_data_->_data10_->self = g_object_ref (_data_->self);
	_data_->_data10_->_async_data_ = _data_;
	_data_->_tmp0_ = nokia_isi_isimodem;
	_data_->_tmp1_ = _data_->_tmp0_->net;
	gisi_comm_network_queryStrength (_data_->_tmp1_, ___lambda18__gisi_comm_int_result_func, block10_data_ref (_data_->_data10_), block10_data_unref);
	_data_->_state_ = 1;
	return FALSE;
	_state_1:
	;
	block10_data_unref (_data_->_data10_);
	_data_->_data10_ = NULL;
	if (_data_->_state_ == 0) {
		g_simple_async_result_complete_in_idle (_data_->_async_result);
	} else {
		g_simple_async_result_complete (_data_->_async_result);
	}
	g_object_unref (_data_->_async_result);
	return FALSE;
}


NokiaIsiIsiNetworkGetSignalStrength* nokia_isi_isi_network_get_signal_strength_construct (GType object_type) {
	NokiaIsiIsiNetworkGetSignalStrength * self = NULL;
	self = (NokiaIsiIsiNetworkGetSignalStrength*) fso_gsm_network_get_signal_strength_construct (object_type);
	return self;
}


NokiaIsiIsiNetworkGetSignalStrength* nokia_isi_isi_network_get_signal_strength_new (void) {
	return nokia_isi_isi_network_get_signal_strength_construct (NOKIA_ISI_TYPE_ISI_NETWORK_GET_SIGNAL_STRENGTH);
}


static void nokia_isi_isi_network_get_signal_strength_class_init (NokiaIsiIsiNetworkGetSignalStrengthClass * klass) {
	nokia_isi_isi_network_get_signal_strength_parent_class = g_type_class_peek_parent (klass);
	FSO_GSM_NETWORK_GET_SIGNAL_STRENGTH_CLASS (klass)->run = nokia_isi_isi_network_get_signal_strength_real_run;
	FSO_GSM_NETWORK_GET_SIGNAL_STRENGTH_CLASS (klass)->run_finish = nokia_isi_isi_network_get_signal_strength_real_run_finish;
}


static void nokia_isi_isi_network_get_signal_strength_instance_init (NokiaIsiIsiNetworkGetSignalStrength * self) {
}


GType nokia_isi_isi_network_get_signal_strength_get_type (void) {
	return nokia_isi_isi_network_get_signal_strength_type_id;
}


GType nokia_isi_isi_network_get_signal_strength_register_type (GTypeModule * module) {
	static const GTypeInfo g_define_type_info = { sizeof (NokiaIsiIsiNetworkGetSignalStrengthClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) nokia_isi_isi_network_get_signal_strength_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NokiaIsiIsiNetworkGetSignalStrength), 0, (GInstanceInitFunc) nokia_isi_isi_network_get_signal_strength_instance_init, NULL };
	nokia_isi_isi_network_get_signal_strength_type_id = g_type_module_register_type (module, FSO_GSM_TYPE_NETWORK_GET_SIGNAL_STRENGTH, "NokiaIsiIsiNetworkGetSignalStrength", &g_define_type_info, 0);
	return nokia_isi_isi_network_get_signal_strength_type_id;
}


static void nokia_isi_isi_network_register_real_run_data_free (gpointer _data) {
	NokiaIsiIsiNetworkRegisterRunData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->self);
	g_slice_free (NokiaIsiIsiNetworkRegisterRunData, _data_);
}


static void nokia_isi_isi_network_register_real_run (FsoGsmNetworkRegister* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	NokiaIsiIsiNetworkRegister * self;
	NokiaIsiIsiNetworkRegisterRunData* _data_;
	NokiaIsiIsiNetworkRegister* _tmp0_;
	self = (NokiaIsiIsiNetworkRegister*) base;
	_data_ = g_slice_new0 (NokiaIsiIsiNetworkRegisterRunData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, nokia_isi_isi_network_register_real_run);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, nokia_isi_isi_network_register_real_run_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	nokia_isi_isi_network_register_real_run_co (_data_);
}


static void nokia_isi_isi_network_register_real_run_finish (FsoGsmNetworkRegister* base, GAsyncResult* _res_, GError** error) {
	NokiaIsiIsiNetworkRegisterRunData* _data_;
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
		return;
	}
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
}


static Block11Data* block11_data_ref (Block11Data* _data11_) {
	g_atomic_int_inc (&_data11_->_ref_count_);
	return _data11_;
}


static void block11_data_unref (Block11Data* _data11_) {
	if (g_atomic_int_dec_and_test (&_data11_->_ref_count_)) {
		_g_object_unref0 (_data11_->self);
		g_slice_free (Block11Data, _data11_);
	}
}


static void __lambda20_ (Block11Data* _data11_, GIsiCommErrorCode _error_) {
	NokiaIsiIsiNetworkRegister * self;
	GIsiCommErrorCode _tmp0_;
	self = _data11_->self;
	_tmp0_ = _error_;
	_data11_->e = _tmp0_;
	nokia_isi_isi_network_register_real_run_co (_data11_->_async_data_);
}


static void ___lambda20__gisi_comm_void_result_func (GIsiCommErrorCode _error_, gpointer self) {
	__lambda20_ (self, _error_);
}


static gboolean nokia_isi_isi_network_register_real_run_co (NokiaIsiIsiNetworkRegisterRunData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_data11_ = g_slice_new0 (Block11Data);
	_data_->_data11_->_ref_count_ = 1;
	_data_->_data11_->self = g_object_ref (_data_->self);
	_data_->_data11_->_async_data_ = _data_;
	_data_->_data11_->e = GISI_COMM_ERROR_CODE_OK;
	_data_->_tmp0_ = nokia_isi_isimodem;
	_data_->_tmp1_ = _data_->_tmp0_->net;
	_data_->_tmp2_ = nokia_isi_isi_network_register_force;
	gisi_comm_network_registerAutomatic (_data_->_tmp1_, _data_->_tmp2_, ___lambda20__gisi_comm_void_result_func, block11_data_ref (_data_->_data11_), block11_data_unref);
	_data_->_state_ = 1;
	return FALSE;
	_state_1:
	;
	_data_->_tmp3_ = _data_->_data11_->e;
	if (_data_->_tmp3_ != GISI_COMM_ERROR_CODE_OK) {
		_data_->_tmp4_ = _data_->_data11_->e;
		_data_->_tmp5_ = NULL;
		_data_->_tmp5_ = g_strdup_printf ("ISI Error %d", (gint) _data_->_tmp4_);
		_data_->_tmp6_ = _data_->_tmp5_;
		_data_->_tmp7_ = g_error_new_literal (FREE_SMARTPHONE_GSM_ERROR, FREE_SMARTPHONE_GSM_ERROR_DEVICE_FAILED, _data_->_tmp6_);
		_data_->_tmp8_ = _data_->_tmp7_;
		_g_free0 (_data_->_tmp6_);
		_data_->_inner_error_ = _data_->_tmp8_;
		if ((_data_->_inner_error_->domain == FREE_SMARTPHONE_GSM_ERROR) || (_data_->_inner_error_->domain == FREE_SMARTPHONE_ERROR)) {
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
			g_error_free (_data_->_inner_error_);
			block11_data_unref (_data_->_data11_);
			_data_->_data11_ = NULL;
			if (_data_->_state_ == 0) {
				g_simple_async_result_complete_in_idle (_data_->_async_result);
			} else {
				g_simple_async_result_complete (_data_->_async_result);
			}
			g_object_unref (_data_->_async_result);
			return FALSE;
		} else {
			block11_data_unref (_data_->_data11_);
			_data_->_data11_ = NULL;
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
			g_clear_error (&_data_->_inner_error_);
			return FALSE;
		}
	}
	_data_->_tmp9_ = nokia_isi_isi_network_register_force;
	nokia_isi_isi_network_register_force = !_data_->_tmp9_;
	block11_data_unref (_data_->_data11_);
	_data_->_data11_ = NULL;
	if (_data_->_state_ == 0) {
		g_simple_async_result_complete_in_idle (_data_->_async_result);
	} else {
		g_simple_async_result_complete (_data_->_async_result);
	}
	g_object_unref (_data_->_async_result);
	return FALSE;
}


NokiaIsiIsiNetworkRegister* nokia_isi_isi_network_register_construct (GType object_type) {
	NokiaIsiIsiNetworkRegister * self = NULL;
	self = (NokiaIsiIsiNetworkRegister*) fso_gsm_network_register_construct (object_type);
	return self;
}


NokiaIsiIsiNetworkRegister* nokia_isi_isi_network_register_new (void) {
	return nokia_isi_isi_network_register_construct (NOKIA_ISI_TYPE_ISI_NETWORK_REGISTER);
}


static void nokia_isi_isi_network_register_class_init (NokiaIsiIsiNetworkRegisterClass * klass) {
	nokia_isi_isi_network_register_parent_class = g_type_class_peek_parent (klass);
	FSO_GSM_NETWORK_REGISTER_CLASS (klass)->run = nokia_isi_isi_network_register_real_run;
	FSO_GSM_NETWORK_REGISTER_CLASS (klass)->run_finish = nokia_isi_isi_network_register_real_run_finish;
	G_OBJECT_CLASS (klass)->finalize = nokia_isi_isi_network_register_finalize;
}


static void nokia_isi_isi_network_register_instance_init (NokiaIsiIsiNetworkRegister * self) {
}


static void nokia_isi_isi_network_register_finalize (GObject* obj) {
	NokiaIsiIsiNetworkRegister * self;
	self = NOKIA_ISI_ISI_NETWORK_REGISTER (obj);
	G_OBJECT_CLASS (nokia_isi_isi_network_register_parent_class)->finalize (obj);
}


GType nokia_isi_isi_network_register_get_type (void) {
	return nokia_isi_isi_network_register_type_id;
}


GType nokia_isi_isi_network_register_register_type (GTypeModule * module) {
	static const GTypeInfo g_define_type_info = { sizeof (NokiaIsiIsiNetworkRegisterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) nokia_isi_isi_network_register_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NokiaIsiIsiNetworkRegister), 0, (GInstanceInitFunc) nokia_isi_isi_network_register_instance_init, NULL };
	nokia_isi_isi_network_register_type_id = g_type_module_register_type (module, FSO_GSM_TYPE_NETWORK_REGISTER, "NokiaIsiIsiNetworkRegister", &g_define_type_info, 0);
	return nokia_isi_isi_network_register_type_id;
}


static void nokia_isi_isi_network_register_with_provider_real_run_data_free (gpointer _data) {
	NokiaIsiIsiNetworkRegisterWithProviderRunData* _data_;
	_data_ = _data;
	_g_free0 (_data_->mccmnc);
	_g_object_unref0 (_data_->self);
	g_slice_free (NokiaIsiIsiNetworkRegisterWithProviderRunData, _data_);
}


static void nokia_isi_isi_network_register_with_provider_real_run (FsoGsmNetworkRegisterWithProvider* base, const gchar* mccmnc, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	NokiaIsiIsiNetworkRegisterWithProvider * self;
	NokiaIsiIsiNetworkRegisterWithProviderRunData* _data_;
	NokiaIsiIsiNetworkRegisterWithProvider* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	self = (NokiaIsiIsiNetworkRegisterWithProvider*) base;
	_data_ = g_slice_new0 (NokiaIsiIsiNetworkRegisterWithProviderRunData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, nokia_isi_isi_network_register_with_provider_real_run);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, nokia_isi_isi_network_register_with_provider_real_run_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_tmp1_ = mccmnc;
	_tmp2_ = g_strdup (_tmp1_);
	_data_->mccmnc = _tmp2_;
	nokia_isi_isi_network_register_with_provider_real_run_co (_data_);
}


static void nokia_isi_isi_network_register_with_provider_real_run_finish (FsoGsmNetworkRegisterWithProvider* base, GAsyncResult* _res_, GError** error) {
	NokiaIsiIsiNetworkRegisterWithProviderRunData* _data_;
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
		return;
	}
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
}


static Block12Data* block12_data_ref (Block12Data* _data12_) {
	g_atomic_int_inc (&_data12_->_ref_count_);
	return _data12_;
}


static void block12_data_unref (Block12Data* _data12_) {
	if (g_atomic_int_dec_and_test (&_data12_->_ref_count_)) {
		_g_object_unref0 (_data12_->self);
		g_slice_free (Block12Data, _data12_);
	}
}


static gchar* string_slice (const gchar* self, glong start, glong end) {
	gchar* result = NULL;
	gint _tmp0_;
	gint _tmp1_;
	glong string_length;
	glong _tmp2_;
	glong _tmp5_;
	gboolean _tmp8_ = FALSE;
	glong _tmp9_;
	gboolean _tmp12_;
	gboolean _tmp13_ = FALSE;
	glong _tmp14_;
	gboolean _tmp17_;
	glong _tmp18_;
	glong _tmp19_;
	glong _tmp20_;
	glong _tmp21_;
	glong _tmp22_;
	gchar* _tmp23_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = strlen (self);
	_tmp1_ = _tmp0_;
	string_length = (glong) _tmp1_;
	_tmp2_ = start;
	if (_tmp2_ < ((glong) 0)) {
		glong _tmp3_;
		glong _tmp4_;
		_tmp3_ = string_length;
		_tmp4_ = start;
		start = _tmp3_ + _tmp4_;
	}
	_tmp5_ = end;
	if (_tmp5_ < ((glong) 0)) {
		glong _tmp6_;
		glong _tmp7_;
		_tmp6_ = string_length;
		_tmp7_ = end;
		end = _tmp6_ + _tmp7_;
	}
	_tmp9_ = start;
	if (_tmp9_ >= ((glong) 0)) {
		glong _tmp10_;
		glong _tmp11_;
		_tmp10_ = start;
		_tmp11_ = string_length;
		_tmp8_ = _tmp10_ <= _tmp11_;
	} else {
		_tmp8_ = FALSE;
	}
	_tmp12_ = _tmp8_;
	g_return_val_if_fail (_tmp12_, NULL);
	_tmp14_ = end;
	if (_tmp14_ >= ((glong) 0)) {
		glong _tmp15_;
		glong _tmp16_;
		_tmp15_ = end;
		_tmp16_ = string_length;
		_tmp13_ = _tmp15_ <= _tmp16_;
	} else {
		_tmp13_ = FALSE;
	}
	_tmp17_ = _tmp13_;
	g_return_val_if_fail (_tmp17_, NULL);
	_tmp18_ = start;
	_tmp19_ = end;
	g_return_val_if_fail (_tmp18_ <= _tmp19_, NULL);
	_tmp20_ = start;
	_tmp21_ = end;
	_tmp22_ = start;
	_tmp23_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) (_tmp21_ - _tmp22_));
	result = _tmp23_;
	return result;
}


static void __lambda21_ (Block12Data* _data12_, GIsiCommErrorCode _error_) {
	NokiaIsiIsiNetworkRegisterWithProvider * self;
	GIsiCommErrorCode _tmp0_;
	self = _data12_->self;
	_tmp0_ = _error_;
	_data12_->e = _tmp0_;
	nokia_isi_isi_network_register_with_provider_real_run_co (_data12_->_async_data_);
}


static void ___lambda21__gisi_comm_void_result_func (GIsiCommErrorCode _error_, gpointer self) {
	__lambda21_ (self, _error_);
}


static gboolean nokia_isi_isi_network_register_with_provider_real_run_co (NokiaIsiIsiNetworkRegisterWithProviderRunData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_data12_ = g_slice_new0 (Block12Data);
	_data_->_data12_->_ref_count_ = 1;
	_data_->_data12_->self = g_object_ref (_data_->self);
	_data_->_data12_->_async_data_ = _data_;
	_data_->_data12_->e = GISI_COMM_ERROR_CODE_OK;
	_data_->_tmp0_ = nokia_isi_isimodem;
	_data_->_tmp1_ = _data_->_tmp0_->net;
	_data_->_tmp2_ = _data_->mccmnc;
	_data_->_tmp3_ = NULL;
	_data_->_tmp3_ = string_slice (_data_->_tmp2_, (glong) 0, (glong) 3);
	_data_->_tmp4_ = _data_->_tmp3_;
	_data_->_tmp5_ = _data_->mccmnc;
	_data_->_tmp6_ = NULL;
	_data_->_tmp6_ = string_slice (_data_->_tmp5_, (glong) 3, (glong) 5);
	_data_->_tmp7_ = _data_->_tmp6_;
	gisi_comm_network_registerManual (_data_->_tmp1_, _data_->_tmp4_, _data_->_tmp7_, ___lambda21__gisi_comm_void_result_func, block12_data_ref (_data_->_data12_), block12_data_unref);
	_g_free0 (_data_->_tmp7_);
	_g_free0 (_data_->_tmp4_);
	_data_->_state_ = 1;
	return FALSE;
	_state_1:
	;
	_data_->_tmp8_ = _data_->_data12_->e;
	if (_data_->_tmp8_ != GISI_COMM_ERROR_CODE_OK) {
		_data_->_tmp9_ = _data_->_data12_->e;
		_data_->_tmp10_ = NULL;
		_data_->_tmp10_ = g_strdup_printf ("ISI Error %d", (gint) _data_->_tmp9_);
		_data_->_tmp11_ = _data_->_tmp10_;
		_data_->_tmp12_ = g_error_new_literal (FREE_SMARTPHONE_GSM_ERROR, FREE_SMARTPHONE_GSM_ERROR_DEVICE_FAILED, _data_->_tmp11_);
		_data_->_tmp13_ = _data_->_tmp12_;
		_g_free0 (_data_->_tmp11_);
		_data_->_inner_error_ = _data_->_tmp13_;
		if ((_data_->_inner_error_->domain == FREE_SMARTPHONE_GSM_ERROR) || (_data_->_inner_error_->domain == FREE_SMARTPHONE_ERROR)) {
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
			g_error_free (_data_->_inner_error_);
			block12_data_unref (_data_->_data12_);
			_data_->_data12_ = NULL;
			if (_data_->_state_ == 0) {
				g_simple_async_result_complete_in_idle (_data_->_async_result);
			} else {
				g_simple_async_result_complete (_data_->_async_result);
			}
			g_object_unref (_data_->_async_result);
			return FALSE;
		} else {
			block12_data_unref (_data_->_data12_);
			_data_->_data12_ = NULL;
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
			g_clear_error (&_data_->_inner_error_);
			return FALSE;
		}
	}
	block12_data_unref (_data_->_data12_);
	_data_->_data12_ = NULL;
	if (_data_->_state_ == 0) {
		g_simple_async_result_complete_in_idle (_data_->_async_result);
	} else {
		g_simple_async_result_complete (_data_->_async_result);
	}
	g_object_unref (_data_->_async_result);
	return FALSE;
}


NokiaIsiIsiNetworkRegisterWithProvider* nokia_isi_isi_network_register_with_provider_construct (GType object_type) {
	NokiaIsiIsiNetworkRegisterWithProvider * self = NULL;
	self = (NokiaIsiIsiNetworkRegisterWithProvider*) fso_gsm_network_register_with_provider_construct (object_type);
	return self;
}


NokiaIsiIsiNetworkRegisterWithProvider* nokia_isi_isi_network_register_with_provider_new (void) {
	return nokia_isi_isi_network_register_with_provider_construct (NOKIA_ISI_TYPE_ISI_NETWORK_REGISTER_WITH_PROVIDER);
}


static void nokia_isi_isi_network_register_with_provider_class_init (NokiaIsiIsiNetworkRegisterWithProviderClass * klass) {
	nokia_isi_isi_network_register_with_provider_parent_class = g_type_class_peek_parent (klass);
	FSO_GSM_NETWORK_REGISTER_WITH_PROVIDER_CLASS (klass)->run = nokia_isi_isi_network_register_with_provider_real_run;
	FSO_GSM_NETWORK_REGISTER_WITH_PROVIDER_CLASS (klass)->run_finish = nokia_isi_isi_network_register_with_provider_real_run_finish;
}


static void nokia_isi_isi_network_register_with_provider_instance_init (NokiaIsiIsiNetworkRegisterWithProvider * self) {
}


GType nokia_isi_isi_network_register_with_provider_get_type (void) {
	return nokia_isi_isi_network_register_with_provider_type_id;
}


GType nokia_isi_isi_network_register_with_provider_register_type (GTypeModule * module) {
	static const GTypeInfo g_define_type_info = { sizeof (NokiaIsiIsiNetworkRegisterWithProviderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) nokia_isi_isi_network_register_with_provider_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NokiaIsiIsiNetworkRegisterWithProvider), 0, (GInstanceInitFunc) nokia_isi_isi_network_register_with_provider_instance_init, NULL };
	nokia_isi_isi_network_register_with_provider_type_id = g_type_module_register_type (module, FSO_GSM_TYPE_NETWORK_REGISTER_WITH_PROVIDER, "NokiaIsiIsiNetworkRegisterWithProvider", &g_define_type_info, 0);
	return nokia_isi_isi_network_register_with_provider_type_id;
}



