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

/*
 * Copyright (C) 2011 Simon Busch <morphis@gravedo.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 <fsogsm.h>
#include <gio/gio.h>
#include <freesmartphone.h>
#include <fsotransport.h>
#include <radio.h>
#include <string.h>
#include <stdlib.h>


#define TYPE_SAMSUNG_NETWORK_REGISTER (samsung_network_register_get_type ())
#define SAMSUNG_NETWORK_REGISTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAMSUNG_NETWORK_REGISTER, SamsungNetworkRegister))
#define SAMSUNG_NETWORK_REGISTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAMSUNG_NETWORK_REGISTER, SamsungNetworkRegisterClass))
#define IS_SAMSUNG_NETWORK_REGISTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAMSUNG_NETWORK_REGISTER))
#define IS_SAMSUNG_NETWORK_REGISTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAMSUNG_NETWORK_REGISTER))
#define SAMSUNG_NETWORK_REGISTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAMSUNG_NETWORK_REGISTER, SamsungNetworkRegisterClass))

typedef struct _SamsungNetworkRegister SamsungNetworkRegister;
typedef struct _SamsungNetworkRegisterClass SamsungNetworkRegisterClass;
typedef struct _SamsungNetworkRegisterPrivate SamsungNetworkRegisterPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define SAMSUNG_TYPE_IPC_CHANNEL (samsung_ipc_channel_get_type ())
#define SAMSUNG_IPC_CHANNEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SAMSUNG_TYPE_IPC_CHANNEL, SamsungIpcChannel))
#define SAMSUNG_IPC_CHANNEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SAMSUNG_TYPE_IPC_CHANNEL, SamsungIpcChannelClass))
#define SAMSUNG_IS_IPC_CHANNEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SAMSUNG_TYPE_IPC_CHANNEL))
#define SAMSUNG_IS_IPC_CHANNEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SAMSUNG_TYPE_IPC_CHANNEL))
#define SAMSUNG_IPC_CHANNEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SAMSUNG_TYPE_IPC_CHANNEL, SamsungIpcChannelClass))

typedef struct _SamsungIpcChannel SamsungIpcChannel;
typedef struct _SamsungIpcChannelClass SamsungIpcChannelClass;
#define _0(var) ((var == NULL) ? NULL : (var = ( (var), NULL)))
typedef struct _SamsungNetworkRegisterRunData SamsungNetworkRegisterRunData;

#define TYPE_SAMSUNG_NETWORK_REGISTER_WITH_PROVIDER (samsung_network_register_with_provider_get_type ())
#define SAMSUNG_NETWORK_REGISTER_WITH_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAMSUNG_NETWORK_REGISTER_WITH_PROVIDER, SamsungNetworkRegisterWithProvider))
#define SAMSUNG_NETWORK_REGISTER_WITH_PROVIDER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAMSUNG_NETWORK_REGISTER_WITH_PROVIDER, SamsungNetworkRegisterWithProviderClass))
#define IS_SAMSUNG_NETWORK_REGISTER_WITH_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAMSUNG_NETWORK_REGISTER_WITH_PROVIDER))
#define IS_SAMSUNG_NETWORK_REGISTER_WITH_PROVIDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAMSUNG_NETWORK_REGISTER_WITH_PROVIDER))
#define SAMSUNG_NETWORK_REGISTER_WITH_PROVIDER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAMSUNG_NETWORK_REGISTER_WITH_PROVIDER, SamsungNetworkRegisterWithProviderClass))

typedef struct _SamsungNetworkRegisterWithProvider SamsungNetworkRegisterWithProvider;
typedef struct _SamsungNetworkRegisterWithProviderClass SamsungNetworkRegisterWithProviderClass;
typedef struct _SamsungNetworkRegisterWithProviderPrivate SamsungNetworkRegisterWithProviderPrivate;
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _SamsungNetworkRegisterWithProviderRunData SamsungNetworkRegisterWithProviderRunData;

#define TYPE_SAMSUNG_NETWORK_UNREGISTER (samsung_network_unregister_get_type ())
#define SAMSUNG_NETWORK_UNREGISTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAMSUNG_NETWORK_UNREGISTER, SamsungNetworkUnregister))
#define SAMSUNG_NETWORK_UNREGISTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAMSUNG_NETWORK_UNREGISTER, SamsungNetworkUnregisterClass))
#define IS_SAMSUNG_NETWORK_UNREGISTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAMSUNG_NETWORK_UNREGISTER))
#define IS_SAMSUNG_NETWORK_UNREGISTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAMSUNG_NETWORK_UNREGISTER))
#define SAMSUNG_NETWORK_UNREGISTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAMSUNG_NETWORK_UNREGISTER, SamsungNetworkUnregisterClass))

typedef struct _SamsungNetworkUnregister SamsungNetworkUnregister;
typedef struct _SamsungNetworkUnregisterClass SamsungNetworkUnregisterClass;
typedef struct _SamsungNetworkUnregisterPrivate SamsungNetworkUnregisterPrivate;
typedef struct _SamsungNetworkUnregisterRunData SamsungNetworkUnregisterRunData;

#define TYPE_SAMSUNG_NETWORK_GET_SIGNAL_STRENGTH (samsung_network_get_signal_strength_get_type ())
#define SAMSUNG_NETWORK_GET_SIGNAL_STRENGTH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAMSUNG_NETWORK_GET_SIGNAL_STRENGTH, SamsungNetworkGetSignalStrength))
#define SAMSUNG_NETWORK_GET_SIGNAL_STRENGTH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAMSUNG_NETWORK_GET_SIGNAL_STRENGTH, SamsungNetworkGetSignalStrengthClass))
#define IS_SAMSUNG_NETWORK_GET_SIGNAL_STRENGTH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAMSUNG_NETWORK_GET_SIGNAL_STRENGTH))
#define IS_SAMSUNG_NETWORK_GET_SIGNAL_STRENGTH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAMSUNG_NETWORK_GET_SIGNAL_STRENGTH))
#define SAMSUNG_NETWORK_GET_SIGNAL_STRENGTH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAMSUNG_NETWORK_GET_SIGNAL_STRENGTH, SamsungNetworkGetSignalStrengthClass))

typedef struct _SamsungNetworkGetSignalStrength SamsungNetworkGetSignalStrength;
typedef struct _SamsungNetworkGetSignalStrengthClass SamsungNetworkGetSignalStrengthClass;
typedef struct _SamsungNetworkGetSignalStrengthPrivate SamsungNetworkGetSignalStrengthPrivate;
typedef struct _SamsungNetworkGetSignalStrengthRunData SamsungNetworkGetSignalStrengthRunData;

#define TYPE_SAMSUNG_NETWORK_GET_STATUS (samsung_network_get_status_get_type ())
#define SAMSUNG_NETWORK_GET_STATUS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAMSUNG_NETWORK_GET_STATUS, SamsungNetworkGetStatus))
#define SAMSUNG_NETWORK_GET_STATUS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAMSUNG_NETWORK_GET_STATUS, SamsungNetworkGetStatusClass))
#define IS_SAMSUNG_NETWORK_GET_STATUS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAMSUNG_NETWORK_GET_STATUS))
#define IS_SAMSUNG_NETWORK_GET_STATUS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAMSUNG_NETWORK_GET_STATUS))
#define SAMSUNG_NETWORK_GET_STATUS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAMSUNG_NETWORK_GET_STATUS, SamsungNetworkGetStatusClass))

typedef struct _SamsungNetworkGetStatus SamsungNetworkGetStatus;
typedef struct _SamsungNetworkGetStatusClass SamsungNetworkGetStatusClass;
typedef struct _SamsungNetworkGetStatusPrivate SamsungNetworkGetStatusPrivate;
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
typedef struct _SamsungNetworkGetStatusRunData SamsungNetworkGetStatusRunData;

#define TYPE_SAMSUNG_NETWORK_LIST_PROVIDERS (samsung_network_list_providers_get_type ())
#define SAMSUNG_NETWORK_LIST_PROVIDERS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SAMSUNG_NETWORK_LIST_PROVIDERS, SamsungNetworkListProviders))
#define SAMSUNG_NETWORK_LIST_PROVIDERS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SAMSUNG_NETWORK_LIST_PROVIDERS, SamsungNetworkListProvidersClass))
#define IS_SAMSUNG_NETWORK_LIST_PROVIDERS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SAMSUNG_NETWORK_LIST_PROVIDERS))
#define IS_SAMSUNG_NETWORK_LIST_PROVIDERS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SAMSUNG_NETWORK_LIST_PROVIDERS))
#define SAMSUNG_NETWORK_LIST_PROVIDERS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SAMSUNG_NETWORK_LIST_PROVIDERS, SamsungNetworkListProvidersClass))

typedef struct _SamsungNetworkListProviders SamsungNetworkListProviders;
typedef struct _SamsungNetworkListProvidersClass SamsungNetworkListProvidersClass;
typedef struct _SamsungNetworkListProvidersPrivate SamsungNetworkListProvidersPrivate;
#define _fso_gsm_constants_unref0(var) ((var == NULL) ? NULL : (var = (fso_gsm_constants_unref (var), NULL)))
typedef struct _SamsungNetworkListProvidersRunData SamsungNetworkListProvidersRunData;

struct _SamsungNetworkRegister {
	FsoGsmNetworkRegister parent_instance;
	SamsungNetworkRegisterPrivate * priv;
};

struct _SamsungNetworkRegisterClass {
	FsoGsmNetworkRegisterClass parent_class;
};

struct _SamsungNetworkRegisterRunData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	SamsungNetworkRegister* self;
	FsoGsmModem* _tmp0_;
	FsoGsmChannel* _tmp1_;
	SamsungIpcChannel* channel;
	struct ipc_message_info* response;
	struct ipc_net_plmn_sel_set req;
	SamsungIpcChannel* _tmp2_;
	struct ipc_net_plmn_sel_set _tmp3_;
	guint8* _tmp4_;
	gint _tmp4__length1;
	guint8* _tmp5_;
	gint _tmp5__length1;
	struct ipc_message_info* _tmp6_;
	struct ipc_message_info* _tmp7_;
	struct ipc_message_info* _tmp8_;
	GError* _tmp9_;
	GError * _inner_error_;
};

struct _SamsungNetworkRegisterWithProvider {
	FsoGsmNetworkRegisterWithProvider parent_instance;
	SamsungNetworkRegisterWithProviderPrivate * priv;
};

struct _SamsungNetworkRegisterWithProviderClass {
	FsoGsmNetworkRegisterWithProviderClass parent_class;
};

struct _SamsungNetworkRegisterWithProviderRunData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	SamsungNetworkRegisterWithProvider* self;
	gchar* operator_code;
	FsoGsmModem* _tmp0_;
	FsoGsmChannel* _tmp1_;
	SamsungIpcChannel* channel;
	gboolean succeeded;
	struct ipc_message_info* response;
	const gchar* _tmp2_;
	gint _tmp3_;
	gint _tmp4_;
	const gchar* _tmp5_;
	const gchar* _tmp6_;
	gchar* _tmp7_;
	gchar* _tmp8_;
	GError* _tmp9_;
	GError* _tmp10_;
	struct ipc_net_plmn_sel_set req;
	const gchar* _tmp11_;
	SamsungIpcChannel* _tmp12_;
	struct ipc_net_plmn_sel_set _tmp13_;
	guint8* _tmp14_;
	gint _tmp14__length1;
	guint8* _tmp15_;
	gint _tmp15__length1;
	struct ipc_message_info* _tmp16_;
	struct ipc_message_info* _tmp17_;
	struct ipc_message_info* _tmp18_;
	struct ipc_message_info* _tmp19_;
	struct ipc_gen_phone_res* genresp;
	struct ipc_gen_phone_res* _tmp20_;
	guint16 _tmp21_;
	gboolean _tmp22_;
	const gchar* _tmp23_;
	const gchar* _tmp24_;
	gchar* _tmp25_;
	gchar* _tmp26_;
	GError* _tmp27_;
	GError* _tmp28_;
	GError * _inner_error_;
};

struct _SamsungNetworkUnregister {
	FsoGsmNetworkUnregister parent_instance;
	SamsungNetworkUnregisterPrivate * priv;
};

struct _SamsungNetworkUnregisterClass {
	FsoGsmNetworkUnregisterClass parent_class;
};

struct _SamsungNetworkUnregisterRunData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	SamsungNetworkUnregister* self;
	GError* _tmp0_;
	GError * _inner_error_;
};

struct _SamsungNetworkGetSignalStrength {
	FsoGsmNetworkGetSignalStrength parent_instance;
	SamsungNetworkGetSignalStrengthPrivate * priv;
};

struct _SamsungNetworkGetSignalStrengthClass {
	FsoGsmNetworkGetSignalStrengthClass parent_class;
};

struct _SamsungNetworkGetSignalStrengthRunData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	SamsungNetworkGetSignalStrength* self;
	gint32 _tmp0_;
};

struct _SamsungNetworkGetStatus {
	FsoGsmNetworkGetStatus parent_instance;
	SamsungNetworkGetStatusPrivate * priv;
};

struct _SamsungNetworkGetStatusClass {
	FsoGsmNetworkGetStatusClass parent_class;
};

struct _SamsungNetworkGetStatusRunData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	SamsungNetworkGetStatus* self;
	struct ipc_message_info* response;
	FsoGsmModem* _tmp0_;
	FsoGsmChannel* _tmp1_;
	SamsungIpcChannel* channel;
	GHashFunc _tmp2_;
	GEqualFunc _tmp3_;
	GHashTable* _tmp4_;
	GHashTable* _tmp5_;
	FsoGsmModem* _tmp6_;
	gpointer _tmp7_;
	FsoGsmNetworkGetSignalStrength* m;
	FsoGsmNetworkGetSignalStrength* _tmp8_;
	GHashTable* _tmp9_;
	GHashTable* _tmp10_;
	gchar* _tmp11_;
	FsoGsmNetworkGetSignalStrength* _tmp12_;
	gint _tmp13_;
	gint _tmp14_;
	GVariant* _tmp15_;
	struct ipc_net_regist_get req;
	SamsungIpcChannel* _tmp16_;
	struct ipc_net_regist_get _tmp17_;
	guint8* _tmp18_;
	gint _tmp18__length1;
	guint8* _tmp19_;
	gint _tmp19__length1;
	struct ipc_message_info* _tmp20_;
	struct ipc_message_info* _tmp21_;
	GError* _tmp22_;
	struct ipc_message_info* _tmp23_;
	guint8* _tmp24_;
	gint _tmp24__length1;
	struct ipc_net_regist* reginfo;
	GHashTable* _tmp25_;
	GHashTable* _tmp26_;
	gchar* _tmp27_;
	struct ipc_net_regist* _tmp28_;
	gint8 _tmp29_;
	gchar* _tmp30_;
	GVariant* _tmp31_;
	GHashTable* _tmp32_;
	GHashTable* _tmp33_;
	gchar* _tmp34_;
	GVariant* _tmp35_;
	GHashTable* _tmp36_;
	GHashTable* _tmp37_;
	gchar* _tmp38_;
	struct ipc_net_regist* _tmp39_;
	gint8 _tmp40_;
	gchar* _tmp41_;
	GVariant* _tmp42_;
	GHashTable* _tmp43_;
	GHashTable* _tmp44_;
	gchar* _tmp45_;
	struct ipc_net_regist* _tmp46_;
	guint16 _tmp47_;
	gchar* _tmp48_;
	GVariant* _tmp49_;
	GHashTable* _tmp50_;
	GHashTable* _tmp51_;
	gchar* _tmp52_;
	struct ipc_net_regist* _tmp53_;
	guint32 _tmp54_;
	gchar* _tmp55_;
	GVariant* _tmp56_;
	struct ipc_net_regist* _tmp57_;
	gint8 _tmp58_;
	gint8 reg_state;
	SamsungIpcChannel* _tmp59_;
	guint8* _tmp60_;
	guint8* _tmp61_;
	gint _tmp61__length1;
	struct ipc_message_info* _tmp62_;
	struct ipc_message_info* _tmp63_;
	GError* _tmp64_;
	struct ipc_message_info* _tmp65_;
	guint8* _tmp66_;
	gint _tmp66__length1;
	struct ipc_net_current_plmn* pr;
	gchar* _tmp67_;
	gchar* plmn;
	gint n;
	gboolean _tmp68_;
	gboolean _tmp69_;
	gint _tmp70_;
	gint _tmp71_;
	const gchar* _tmp72_;
	struct ipc_net_current_plmn* _tmp73_;
	guint8* _tmp74_;
	gint _tmp74__length1;
	gint _tmp75_;
	guint8 _tmp76_;
	gchar* _tmp77_;
	gchar* _tmp78_;
	gchar* _tmp79_;
	gboolean _tmp80_;
	gint8 _tmp81_;
	gint8 _tmp82_;
	gboolean _tmp83_;
	GHashTable* _tmp84_;
	GHashTable* _tmp85_;
	gchar* _tmp86_;
	const gchar* _tmp87_;
	GVariant* _tmp88_;
	const gchar* _tmp89_;
	gchar* _tmp90_;
	gchar* provider;
	GHashTable* _tmp91_;
	GHashTable* _tmp92_;
	gchar* _tmp93_;
	const gchar* _tmp94_;
	GVariant* _tmp95_;
	GHashTable* _tmp96_;
	GHashTable* _tmp97_;
	gchar* _tmp98_;
	const gchar* _tmp99_;
	GVariant* _tmp100_;
	struct ipc_net_regist_get _tmp101_;
	SamsungIpcChannel* _tmp102_;
	struct ipc_net_regist_get _tmp103_;
	guint8* _tmp104_;
	gint _tmp104__length1;
	guint8* _tmp105_;
	gint _tmp105__length1;
	struct ipc_message_info* _tmp106_;
	struct ipc_message_info* _tmp107_;
	GError* _tmp108_;
	struct ipc_message_info* _tmp109_;
	guint8* _tmp110_;
	gint _tmp110__length1;
	GHashTable* _tmp111_;
	GHashTable* _tmp112_;
	gchar* _tmp113_;
	struct ipc_net_regist* _tmp114_;
	gint8 _tmp115_;
	gchar* _tmp116_;
	GVariant* _tmp117_;
	GHashTable* _tmp118_;
	GHashTable* _tmp119_;
	gchar* _tmp120_;
	struct ipc_net_regist* _tmp121_;
	guint16 _tmp122_;
	gchar* _tmp123_;
	GVariant* _tmp124_;
	GHashTable* _tmp125_;
	GHashTable* _tmp126_;
	gchar* _tmp127_;
	struct ipc_net_regist* _tmp128_;
	guint32 _tmp129_;
	gchar* _tmp130_;
	GVariant* _tmp131_;
	GError * _inner_error_;
};

struct _SamsungNetworkListProviders {
	FsoGsmNetworkListProviders parent_instance;
	SamsungNetworkListProvidersPrivate * priv;
};

struct _SamsungNetworkListProvidersClass {
	FsoGsmNetworkListProvidersClass parent_class;
};

struct _SamsungNetworkListProvidersRunData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	SamsungNetworkListProviders* self;
	struct ipc_message_info* response;
	FsoGsmModem* _tmp0_;
	FsoGsmChannel* _tmp1_;
	SamsungIpcChannel* channel;
	FreeSmartphoneGSMNetworkProvider* _tmp2_;
	FreeSmartphoneGSMNetworkProvider* _providers;
	gint _providers_length1;
	gint __providers_size_;
	SamsungIpcChannel* _tmp3_;
	guint8* _tmp4_;
	guint8* _tmp5_;
	gint _tmp5__length1;
	struct ipc_message_info* _tmp6_;
	struct ipc_message_info* _tmp7_;
	GError* _tmp8_;
	struct ipc_message_info* _tmp9_;
	guint8* _tmp10_;
	gint _tmp10__length1;
	struct ipc_net_plmn_entries* pr;
	gint n;
	gboolean _tmp11_;
	gboolean _tmp12_;
	gint _tmp13_;
	gint _tmp14_;
	struct ipc_net_plmn_entries* _tmp15_;
	guint8 _tmp16_;
	struct ipc_net_plmn_entries* _tmp17_;
	struct ipc_message_info* _tmp18_;
	gint _tmp19_;
	struct ipc_net_plmn_entries _tmp20_;
	struct ipc_message_info _tmp21_;
	struct ipc_net_plmn_entry* _tmp22_;
	struct ipc_net_plmn_entry* currentNetwork;
	gchar* _tmp23_;
	gchar* mccmnc;
	struct ipc_net_plmn_entry* _tmp24_;
	guint8 _tmp25_;
	gint m;
	gboolean _tmp26_;
	gboolean _tmp27_;
	gint _tmp28_;
	gint _tmp29_;
	const gchar* _tmp30_;
	struct ipc_net_plmn_entry* _tmp31_;
	guint8* _tmp32_;
	gint _tmp32__length1;
	gint _tmp33_;
	guint8 _tmp34_;
	gchar* _tmp35_;
	gchar* _tmp36_;
	gchar* _tmp37_;
	const gchar* _tmp38_;
	gchar* _tmp39_;
	gchar* provider;
	FsoGsmConstants* _tmp40_;
	FsoGsmConstants* _tmp41_;
	struct ipc_net_plmn_entry* _tmp42_;
	gint8 _tmp43_;
	gchar* _tmp44_;
	gchar* _tmp45_;
	const gchar* _tmp46_;
	const gchar* _tmp47_;
	const gchar* _tmp48_;
	FreeSmartphoneGSMNetworkProvider p;
	FreeSmartphoneGSMNetworkProvider* _tmp49_;
	gint _tmp49__length1;
	FreeSmartphoneGSMNetworkProvider _tmp50_;
	FreeSmartphoneGSMNetworkProvider _tmp51_;
	FreeSmartphoneGSMNetworkProvider* _tmp52_;
	gint _tmp52__length1;
	GError * _inner_error_;
};


static gpointer samsung_network_register_parent_class = NULL;
static GType samsung_network_register_type_id = 0;
static gpointer samsung_network_register_with_provider_parent_class = NULL;
static GType samsung_network_register_with_provider_type_id = 0;
static gpointer samsung_network_unregister_parent_class = NULL;
static GType samsung_network_unregister_type_id = 0;
static gpointer samsung_network_get_signal_strength_parent_class = NULL;
extern gint32 samsung_modem_state_network_signal_strength;
static GType samsung_network_get_signal_strength_type_id = 0;
static gpointer samsung_network_get_status_parent_class = NULL;
static GType samsung_network_get_status_type_id = 0;
static gpointer samsung_network_list_providers_parent_class = NULL;
static GType samsung_network_list_providers_type_id = 0;

GType samsung_network_register_get_type (void) G_GNUC_CONST;
GType samsung_network_register_register_type (GTypeModule * module);
enum  {
	SAMSUNG_NETWORK_REGISTER_DUMMY_PROPERTY
};
static void samsung_network_register_real_run_data_free (gpointer _data);
static void samsung_network_register_real_run (FsoGsmNetworkRegister* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean samsung_network_register_real_run_co (SamsungNetworkRegisterRunData* _data_);
GType samsung_ipc_channel_get_type (void) G_GNUC_CONST;
GType samsung_ipc_channel_register_type (GTypeModule * module);
void samsung_ipc_channel_enqueue_async (SamsungIpcChannel* self, int type, unsigned short command, guint8* data, int data_length1, gint retry, gint timeout, GAsyncReadyCallback _callback_, gpointer _user_data_);
struct ipc_message_info* samsung_ipc_channel_enqueue_finish (SamsungIpcChannel* self, GAsyncResult* _res_);
static void samsung_network_register_run_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static struct ipc_message_info* _samsung_ipc_response_dup (struct ipc_message_info* self);
SamsungNetworkRegister* samsung_network_register_new (void);
SamsungNetworkRegister* samsung_network_register_construct (GType object_type);
GType samsung_network_register_with_provider_get_type (void) G_GNUC_CONST;
GType samsung_network_register_with_provider_register_type (GTypeModule * module);
enum  {
	SAMSUNG_NETWORK_REGISTER_WITH_PROVIDER_DUMMY_PROPERTY
};
static void samsung_network_register_with_provider_real_run_data_free (gpointer _data);
static void samsung_network_register_with_provider_real_run (FsoGsmNetworkRegisterWithProvider* base, const gchar* operator_code, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean samsung_network_register_with_provider_real_run_co (SamsungNetworkRegisterWithProviderRunData* _data_);
static void samsung_network_register_with_provider_run_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
SamsungNetworkRegisterWithProvider* samsung_network_register_with_provider_new (void);
SamsungNetworkRegisterWithProvider* samsung_network_register_with_provider_construct (GType object_type);
GType samsung_network_unregister_get_type (void) G_GNUC_CONST;
GType samsung_network_unregister_register_type (GTypeModule * module);
enum  {
	SAMSUNG_NETWORK_UNREGISTER_DUMMY_PROPERTY
};
static void samsung_network_unregister_real_run_data_free (gpointer _data);
static void samsung_network_unregister_real_run (FsoGsmNetworkUnregister* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean samsung_network_unregister_real_run_co (SamsungNetworkUnregisterRunData* _data_);
SamsungNetworkUnregister* samsung_network_unregister_new (void);
SamsungNetworkUnregister* samsung_network_unregister_construct (GType object_type);
GType samsung_network_get_signal_strength_get_type (void) G_GNUC_CONST;
GType samsung_network_get_signal_strength_register_type (GTypeModule * module);
enum  {
	SAMSUNG_NETWORK_GET_SIGNAL_STRENGTH_DUMMY_PROPERTY
};
static void samsung_network_get_signal_strength_real_run_data_free (gpointer _data);
static void samsung_network_get_signal_strength_real_run (FsoGsmNetworkGetSignalStrength* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean samsung_network_get_signal_strength_real_run_co (SamsungNetworkGetSignalStrengthRunData* _data_);
SamsungNetworkGetSignalStrength* samsung_network_get_signal_strength_new (void);
SamsungNetworkGetSignalStrength* samsung_network_get_signal_strength_construct (GType object_type);
GType samsung_network_get_status_get_type (void) G_GNUC_CONST;
GType samsung_network_get_status_register_type (GTypeModule * module);
enum  {
	SAMSUNG_NETWORK_GET_STATUS_DUMMY_PROPERTY
};
static void samsung_network_get_status_real_run_data_free (gpointer _data);
static void samsung_network_get_status_real_run (FsoGsmNetworkGetStatus* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean samsung_network_get_status_real_run_co (SamsungNetworkGetStatusRunData* _data_);
static void _g_free0_ (gpointer var);
static void _g_variant_unref0_ (gpointer var);
static void samsung_network_get_status_run_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static GVariant* _variant_new17 (gint value);
gchar* networkRegistrationStateToString (gint8 reg_state);
static GVariant* _variant_new18 (gchar* value);
static GVariant* _variant_new19 (const gchar* value);
gchar* networkAccessTechnologyToString (gint8 act);
static GVariant* _variant_new20 (gchar* value);
static GVariant* _variant_new21 (gchar* value);
static GVariant* _variant_new22 (gchar* value);
static GVariant* _variant_new23 (const gchar* value);
static GVariant* _variant_new24 (const gchar* value);
static GVariant* _variant_new25 (const gchar* value);
static GVariant* _variant_new26 (gchar* value);
static GVariant* _variant_new27 (gchar* value);
static GVariant* _variant_new28 (gchar* value);
SamsungNetworkGetStatus* samsung_network_get_status_new (void);
SamsungNetworkGetStatus* samsung_network_get_status_construct (GType object_type);
GType samsung_network_list_providers_get_type (void) G_GNUC_CONST;
GType samsung_network_list_providers_register_type (GTypeModule * module);
enum  {
	SAMSUNG_NETWORK_LIST_PROVIDERS_DUMMY_PROPERTY
};
static void samsung_network_list_providers_real_run_data_free (gpointer _data);
static void samsung_network_list_providers_real_run (FsoGsmNetworkListProviders* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean samsung_network_list_providers_real_run_co (SamsungNetworkListProvidersRunData* _data_);
static void samsung_network_list_providers_run_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _vala_FreeSmartphoneGSMNetworkProvider_array_free (FreeSmartphoneGSMNetworkProvider* array, gint array_length);
static void _vala_array_add1 (FreeSmartphoneGSMNetworkProvider** array, int* length, int* size, const FreeSmartphoneGSMNetworkProvider* value);
SamsungNetworkListProviders* samsung_network_list_providers_new (void);
SamsungNetworkListProviders* samsung_network_list_providers_construct (GType object_type);


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


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


static void samsung_network_register_real_run (FsoGsmNetworkRegister* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	SamsungNetworkRegister * self;
	SamsungNetworkRegisterRunData* _data_;
	SamsungNetworkRegister* _tmp0_;
	self = (SamsungNetworkRegister*) base;
	_data_ = g_slice_new0 (SamsungNetworkRegisterRunData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, samsung_network_register_real_run);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, samsung_network_register_real_run_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	samsung_network_register_real_run_co (_data_);
}


static void samsung_network_register_real_run_finish (FsoGsmNetworkRegister* base, GAsyncResult* _res_, GError** error) {
	SamsungNetworkRegisterRunData* _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 guint8* samsung_ipc_network_plmn_selection_set_message_get_data (struct ipc_net_plmn_sel_set* self, int* result_length1) {
	guint8* result;
	guint8* res;
	gint res_length1;
	gint _res_size_;
	gint _tmp0_;
	guint8* _tmp1_;
	gint _tmp1__length1;
	guint8* _tmp2_;
	gint _tmp2__length1;
	g_return_val_if_fail (self != NULL, NULL);
	res = (guint8*) (&(*self));
	res_length1 = -1;
	_res_size_ = res_length1;
	res_length1 = (gint) sizeof (struct ipc_net_plmn_sel_set);
	_tmp0_ = res_length1;
	_tmp1_ = res;
	_tmp1__length1 = res_length1;
	_tmp2_ = _tmp1_;
	_tmp2__length1 = _tmp1__length1;
	if (result_length1) {
		*result_length1 = _tmp2__length1;
	}
	result = _tmp2_;
	return result;
}


static void samsung_network_register_run_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	SamsungNetworkRegisterRunData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	samsung_network_register_real_run_co (_data_);
}


static struct ipc_message_info* _samsung_ipc_response_dup (struct ipc_message_info* self) {
	struct ipc_message_info* dup;
	dup = g_new0 (struct ipc_message_info, 1);
	 (self, dup);
	return dup;
}


static gpointer __samsung_ipc_response_dup0 (gpointer self) {
	return self ? _samsung_ipc_response_dup (self) : NULL;
}


static gboolean samsung_network_register_real_run_co (SamsungNetworkRegisterRunData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp0_ = fso_gsm_theModem;
	_data_->_tmp1_ = NULL;
	_data_->_tmp1_ = fso_gsm_modem_channel (_data_->_tmp0_, "main");
	_data_->channel = SAMSUNG_IS_IPC_CHANNEL (_data_->_tmp1_) ? ((SamsungIpcChannel*) _data_->_tmp1_) : NULL;
	_data_->response = NULL;
	memset (&_data_->req, 0, sizeof (struct ipc_net_plmn_sel_set));
	ipc_net_plmn_sel_setup (&_data_->req, (guint8) IPC_NET_PLMN_SEL_AUTO, NULL, IPC_NET_ACCESS_TECHNOLOGY_UMTS);
	_data_->_tmp2_ = _data_->channel;
	_data_->_tmp3_ = _data_->req;
	_data_->_tmp4_ = samsung_ipc_network_plmn_selection_set_message_get_data (&_data_->_tmp3_, &_data_->_tmp4__length1);
	_data_->_tmp5_ = _data_->_tmp4_;
	_data_->_tmp5__length1 = _data_->_tmp4__length1;
	_data_->_state_ = 1;
	samsung_ipc_channel_enqueue_async (_data_->_tmp2_, IPC_TYPE_SET, IPC_NET_PLMN_SEL, _data_->_tmp5_, _data_->_tmp5__length1, 0, 5, samsung_network_register_run_ready, _data_);
	return FALSE;
	_state_1:
	_data_->_tmp6_ = NULL;
	_data_->_tmp6_ = samsung_ipc_channel_enqueue_finish (_data_->_tmp2_, _data_->_res_);
	_data_->_tmp7_ = __samsung_ipc_response_dup0 (_data_->_tmp6_);
	_0 (_data_->response);
	_data_->response = _data_->_tmp7_;
	_data_->_tmp8_ = _data_->response;
	if (_data_->_tmp8_ == NULL) {
		_data_->_tmp9_ = g_error_new_literal (FREE_SMARTPHONE_ERROR, FREE_SMARTPHONE_ERROR_INTERNAL_ERROR, "Could set network selection mode!");
		_data_->_inner_error_ = _data_->_tmp9_;
		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_);
			 (&_data_->req);
			_0 (_data_->response);
			_g_object_unref0 (_data_->channel);
			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 {
			 (&_data_->req);
			_0 (_data_->response);
			_g_object_unref0 (_data_->channel);
			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_->req);
	_0 (_data_->response);
	_g_object_unref0 (_data_->channel);
	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;
}


SamsungNetworkRegister* samsung_network_register_construct (GType object_type) {
	SamsungNetworkRegister * self = NULL;
	self = (SamsungNetworkRegister*) fso_gsm_network_register_construct (object_type);
	return self;
}


SamsungNetworkRegister* samsung_network_register_new (void) {
	return samsung_network_register_construct (TYPE_SAMSUNG_NETWORK_REGISTER);
}


static void samsung_network_register_class_init (SamsungNetworkRegisterClass * klass) {
	samsung_network_register_parent_class = g_type_class_peek_parent (klass);
	FSO_GSM_NETWORK_REGISTER_CLASS (klass)->run = samsung_network_register_real_run;
	FSO_GSM_NETWORK_REGISTER_CLASS (klass)->run_finish = samsung_network_register_real_run_finish;
}


static void samsung_network_register_instance_init (SamsungNetworkRegister * self) {
}


GType samsung_network_register_get_type (void) {
	return samsung_network_register_type_id;
}


GType samsung_network_register_register_type (GTypeModule * module) {
	static const GTypeInfo g_define_type_info = { sizeof (SamsungNetworkRegisterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) samsung_network_register_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SamsungNetworkRegister), 0, (GInstanceInitFunc) samsung_network_register_instance_init, NULL };
	samsung_network_register_type_id = g_type_module_register_type (module, FSO_GSM_TYPE_NETWORK_REGISTER, "SamsungNetworkRegister", &g_define_type_info, 0);
	return samsung_network_register_type_id;
}


static void samsung_network_register_with_provider_real_run_data_free (gpointer _data) {
	SamsungNetworkRegisterWithProviderRunData* _data_;
	_data_ = _data;
	_g_free0 (_data_->operator_code);
	_g_object_unref0 (_data_->self);
	g_slice_free (SamsungNetworkRegisterWithProviderRunData, _data_);
}


static void samsung_network_register_with_provider_real_run (FsoGsmNetworkRegisterWithProvider* base, const gchar* operator_code, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	SamsungNetworkRegisterWithProvider * self;
	SamsungNetworkRegisterWithProviderRunData* _data_;
	SamsungNetworkRegisterWithProvider* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	self = (SamsungNetworkRegisterWithProvider*) base;
	_data_ = g_slice_new0 (SamsungNetworkRegisterWithProviderRunData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, samsung_network_register_with_provider_real_run);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, samsung_network_register_with_provider_real_run_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_tmp1_ = operator_code;
	_tmp2_ = g_strdup (_tmp1_);
	_data_->operator_code = _tmp2_;
	samsung_network_register_with_provider_real_run_co (_data_);
}


static void samsung_network_register_with_provider_real_run_finish (FsoGsmNetworkRegisterWithProvider* base, GAsyncResult* _res_, GError** error) {
	SamsungNetworkRegisterWithProviderRunData* _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 const gchar* string_to_string (const gchar* self) {
	const gchar* result = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	result = self;
	return result;
}


static void samsung_network_register_with_provider_run_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	SamsungNetworkRegisterWithProviderRunData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	samsung_network_register_with_provider_real_run_co (_data_);
}


static gboolean samsung_network_register_with_provider_real_run_co (SamsungNetworkRegisterWithProviderRunData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp0_ = fso_gsm_theModem;
	_data_->_tmp1_ = NULL;
	_data_->_tmp1_ = fso_gsm_modem_channel (_data_->_tmp0_, "main");
	_data_->channel = SAMSUNG_IS_IPC_CHANNEL (_data_->_tmp1_) ? ((SamsungIpcChannel*) _data_->_tmp1_) : NULL;
	_data_->succeeded = FALSE;
	_data_->response = NULL;
	_data_->_tmp2_ = _data_->operator_code;
	_data_->_tmp3_ = strlen (_data_->_tmp2_);
	_data_->_tmp4_ = _data_->_tmp3_;
	if (_data_->_tmp4_ != 5) {
		_data_->_tmp5_ = _data_->operator_code;
		_data_->_tmp6_ = NULL;
		_data_->_tmp6_ = string_to_string (_data_->_tmp5_);
		_data_->_tmp7_ = NULL;
		_data_->_tmp7_ = g_strconcat ("Got invalid operator code: ", _data_->_tmp6_, NULL);
		_data_->_tmp8_ = _data_->_tmp7_;
		_data_->_tmp9_ = g_error_new_literal (FREE_SMARTPHONE_ERROR, FREE_SMARTPHONE_ERROR_INVALID_PARAMETER, _data_->_tmp8_);
		_data_->_tmp10_ = _data_->_tmp9_;
		_g_free0 (_data_->_tmp8_);
		_data_->_inner_error_ = _data_->_tmp10_;
		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_);
			_0 (_data_->response);
			_g_object_unref0 (_data_->channel);
			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 {
			_0 (_data_->response);
			_g_object_unref0 (_data_->channel);
			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;
		}
	}
	memset (&_data_->req, 0, sizeof (struct ipc_net_plmn_sel_set));
	_data_->_tmp11_ = _data_->operator_code;
	ipc_net_plmn_sel_setup (&_data_->req, (guint8) IPC_NET_PLMN_SEL_MANUAL, _data_->_tmp11_, IPC_NET_ACCESS_TECHNOLOGY_UMTS);
	_data_->_tmp12_ = _data_->channel;
	_data_->_tmp13_ = _data_->req;
	_data_->_tmp14_ = samsung_ipc_network_plmn_selection_set_message_get_data (&_data_->_tmp13_, &_data_->_tmp14__length1);
	_data_->_tmp15_ = _data_->_tmp14_;
	_data_->_tmp15__length1 = _data_->_tmp14__length1;
	_data_->_state_ = 1;
	samsung_ipc_channel_enqueue_async (_data_->_tmp12_, IPC_TYPE_SET, IPC_NET_PLMN_SEL, _data_->_tmp15_, _data_->_tmp15__length1, 0, 5, samsung_network_register_with_provider_run_ready, _data_);
	return FALSE;
	_state_1:
	_data_->_tmp16_ = NULL;
	_data_->_tmp16_ = samsung_ipc_channel_enqueue_finish (_data_->_tmp12_, _data_->_res_);
	_data_->_tmp17_ = __samsung_ipc_response_dup0 (_data_->_tmp16_);
	_0 (_data_->response);
	_data_->response = _data_->_tmp17_;
	_data_->_tmp18_ = _data_->response;
	if (_data_->_tmp18_ != NULL) {
		_data_->_tmp19_ = _data_->response;
		_data_->genresp = (struct ipc_gen_phone_res*) _data_->_tmp19_;
		_data_->_tmp20_ = _data_->genresp;
		_data_->_tmp21_ = (*_data_->_tmp20_).code;
		_data_->succeeded = ((gint) _data_->_tmp21_) == 0x80;
	}
	_data_->_tmp22_ = _data_->succeeded;
	if (!_data_->_tmp22_) {
		_data_->_tmp23_ = _data_->operator_code;
		_data_->_tmp24_ = NULL;
		_data_->_tmp24_ = string_to_string (_data_->_tmp23_);
		_data_->_tmp25_ = NULL;
		_data_->_tmp25_ = g_strconcat ("Could not register with network ", _data_->_tmp24_, NULL);
		_data_->_tmp26_ = _data_->_tmp25_;
		_data_->_tmp27_ = g_error_new_literal (FREE_SMARTPHONE_ERROR, FREE_SMARTPHONE_ERROR_INTERNAL_ERROR, _data_->_tmp26_);
		_data_->_tmp28_ = _data_->_tmp27_;
		_g_free0 (_data_->_tmp26_);
		_data_->_inner_error_ = _data_->_tmp28_;
		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_);
			 (&_data_->req);
			_0 (_data_->response);
			_g_object_unref0 (_data_->channel);
			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 {
			 (&_data_->req);
			_0 (_data_->response);
			_g_object_unref0 (_data_->channel);
			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_->req);
	_0 (_data_->response);
	_g_object_unref0 (_data_->channel);
	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;
}


SamsungNetworkRegisterWithProvider* samsung_network_register_with_provider_construct (GType object_type) {
	SamsungNetworkRegisterWithProvider * self = NULL;
	self = (SamsungNetworkRegisterWithProvider*) fso_gsm_network_register_with_provider_construct (object_type);
	return self;
}


SamsungNetworkRegisterWithProvider* samsung_network_register_with_provider_new (void) {
	return samsung_network_register_with_provider_construct (TYPE_SAMSUNG_NETWORK_REGISTER_WITH_PROVIDER);
}


static void samsung_network_register_with_provider_class_init (SamsungNetworkRegisterWithProviderClass * klass) {
	samsung_network_register_with_provider_parent_class = g_type_class_peek_parent (klass);
	FSO_GSM_NETWORK_REGISTER_WITH_PROVIDER_CLASS (klass)->run = samsung_network_register_with_provider_real_run;
	FSO_GSM_NETWORK_REGISTER_WITH_PROVIDER_CLASS (klass)->run_finish = samsung_network_register_with_provider_real_run_finish;
}


static void samsung_network_register_with_provider_instance_init (SamsungNetworkRegisterWithProvider * self) {
}


GType samsung_network_register_with_provider_get_type (void) {
	return samsung_network_register_with_provider_type_id;
}


GType samsung_network_register_with_provider_register_type (GTypeModule * module) {
	static const GTypeInfo g_define_type_info = { sizeof (SamsungNetworkRegisterWithProviderClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) samsung_network_register_with_provider_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SamsungNetworkRegisterWithProvider), 0, (GInstanceInitFunc) samsung_network_register_with_provider_instance_init, NULL };
	samsung_network_register_with_provider_type_id = g_type_module_register_type (module, FSO_GSM_TYPE_NETWORK_REGISTER_WITH_PROVIDER, "SamsungNetworkRegisterWithProvider", &g_define_type_info, 0);
	return samsung_network_register_with_provider_type_id;
}


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


static void samsung_network_unregister_real_run (FsoGsmNetworkUnregister* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	SamsungNetworkUnregister * self;
	SamsungNetworkUnregisterRunData* _data_;
	SamsungNetworkUnregister* _tmp0_;
	self = (SamsungNetworkUnregister*) base;
	_data_ = g_slice_new0 (SamsungNetworkUnregisterRunData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, samsung_network_unregister_real_run);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, samsung_network_unregister_real_run_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	samsung_network_unregister_real_run_co (_data_);
}


static void samsung_network_unregister_real_run_finish (FsoGsmNetworkUnregister* base, GAsyncResult* _res_, GError** error) {
	SamsungNetworkUnregisterRunData* _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 gboolean samsung_network_unregister_real_run_co (SamsungNetworkUnregisterRunData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp0_ = g_error_new_literal (FREE_SMARTPHONE_ERROR, FREE_SMARTPHONE_ERROR_UNSUPPORTED, "Unregistering from a network is unsupported with this modem type!");
	_data_->_inner_error_ = _data_->_tmp0_;
	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_);
		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 {
		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;
	}
	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;
}


SamsungNetworkUnregister* samsung_network_unregister_construct (GType object_type) {
	SamsungNetworkUnregister * self = NULL;
	self = (SamsungNetworkUnregister*) fso_gsm_network_unregister_construct (object_type);
	return self;
}


SamsungNetworkUnregister* samsung_network_unregister_new (void) {
	return samsung_network_unregister_construct (TYPE_SAMSUNG_NETWORK_UNREGISTER);
}


static void samsung_network_unregister_class_init (SamsungNetworkUnregisterClass * klass) {
	samsung_network_unregister_parent_class = g_type_class_peek_parent (klass);
	FSO_GSM_NETWORK_UNREGISTER_CLASS (klass)->run = samsung_network_unregister_real_run;
	FSO_GSM_NETWORK_UNREGISTER_CLASS (klass)->run_finish = samsung_network_unregister_real_run_finish;
}


static void samsung_network_unregister_instance_init (SamsungNetworkUnregister * self) {
}


GType samsung_network_unregister_get_type (void) {
	return samsung_network_unregister_type_id;
}


GType samsung_network_unregister_register_type (GTypeModule * module) {
	static const GTypeInfo g_define_type_info = { sizeof (SamsungNetworkUnregisterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) samsung_network_unregister_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SamsungNetworkUnregister), 0, (GInstanceInitFunc) samsung_network_unregister_instance_init, NULL };
	samsung_network_unregister_type_id = g_type_module_register_type (module, FSO_GSM_TYPE_NETWORK_UNREGISTER, "SamsungNetworkUnregister", &g_define_type_info, 0);
	return samsung_network_unregister_type_id;
}


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


static void samsung_network_get_signal_strength_real_run (FsoGsmNetworkGetSignalStrength* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	SamsungNetworkGetSignalStrength * self;
	SamsungNetworkGetSignalStrengthRunData* _data_;
	SamsungNetworkGetSignalStrength* _tmp0_;
	self = (SamsungNetworkGetSignalStrength*) base;
	_data_ = g_slice_new0 (SamsungNetworkGetSignalStrengthRunData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, samsung_network_get_signal_strength_real_run);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, samsung_network_get_signal_strength_real_run_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	samsung_network_get_signal_strength_real_run_co (_data_);
}


static void samsung_network_get_signal_strength_real_run_finish (FsoGsmNetworkGetSignalStrength* base, GAsyncResult* _res_, GError** error) {
	SamsungNetworkGetSignalStrengthRunData* _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 gboolean samsung_network_get_signal_strength_real_run_co (SamsungNetworkGetSignalStrengthRunData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp0_ = samsung_modem_state_network_signal_strength;
	fso_gsm_network_get_signal_strength_set_signal ((FsoGsmNetworkGetSignalStrength*) _data_->self, (gint) _data_->_tmp0_);
	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;
}


SamsungNetworkGetSignalStrength* samsung_network_get_signal_strength_construct (GType object_type) {
	SamsungNetworkGetSignalStrength * self = NULL;
	self = (SamsungNetworkGetSignalStrength*) fso_gsm_network_get_signal_strength_construct (object_type);
	return self;
}


SamsungNetworkGetSignalStrength* samsung_network_get_signal_strength_new (void) {
	return samsung_network_get_signal_strength_construct (TYPE_SAMSUNG_NETWORK_GET_SIGNAL_STRENGTH);
}


static void samsung_network_get_signal_strength_class_init (SamsungNetworkGetSignalStrengthClass * klass) {
	samsung_network_get_signal_strength_parent_class = g_type_class_peek_parent (klass);
	FSO_GSM_NETWORK_GET_SIGNAL_STRENGTH_CLASS (klass)->run = samsung_network_get_signal_strength_real_run;
	FSO_GSM_NETWORK_GET_SIGNAL_STRENGTH_CLASS (klass)->run_finish = samsung_network_get_signal_strength_real_run_finish;
}


static void samsung_network_get_signal_strength_instance_init (SamsungNetworkGetSignalStrength * self) {
}


GType samsung_network_get_signal_strength_get_type (void) {
	return samsung_network_get_signal_strength_type_id;
}


GType samsung_network_get_signal_strength_register_type (GTypeModule * module) {
	static const GTypeInfo g_define_type_info = { sizeof (SamsungNetworkGetSignalStrengthClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) samsung_network_get_signal_strength_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SamsungNetworkGetSignalStrength), 0, (GInstanceInitFunc) samsung_network_get_signal_strength_instance_init, NULL };
	samsung_network_get_signal_strength_type_id = g_type_module_register_type (module, FSO_GSM_TYPE_NETWORK_GET_SIGNAL_STRENGTH, "SamsungNetworkGetSignalStrength", &g_define_type_info, 0);
	return samsung_network_get_signal_strength_type_id;
}


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


static void samsung_network_get_status_real_run (FsoGsmNetworkGetStatus* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	SamsungNetworkGetStatus * self;
	SamsungNetworkGetStatusRunData* _data_;
	SamsungNetworkGetStatus* _tmp0_;
	self = (SamsungNetworkGetStatus*) base;
	_data_ = g_slice_new0 (SamsungNetworkGetStatusRunData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, samsung_network_get_status_real_run);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, samsung_network_get_status_real_run_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	samsung_network_get_status_real_run_co (_data_);
}


static void samsung_network_get_status_real_run_finish (FsoGsmNetworkGetStatus* base, GAsyncResult* _res_, GError** error) {
	SamsungNetworkGetStatusRunData* _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 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 void samsung_network_get_status_run_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	SamsungNetworkGetStatusRunData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	samsung_network_get_status_real_run_co (_data_);
}


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


static guint8* samsung_ipc_network_registration_get_message_get_data (struct ipc_net_regist_get* self, int* result_length1) {
	guint8* result;
	guint8* res;
	gint res_length1;
	gint _res_size_;
	gint _tmp0_;
	guint8* _tmp1_;
	gint _tmp1__length1;
	guint8* _tmp2_;
	gint _tmp2__length1;
	g_return_val_if_fail (self != NULL, NULL);
	res = (guint8*) (&(*self));
	res_length1 = -1;
	_res_size_ = res_length1;
	res_length1 = (gint) sizeof (struct ipc_net_regist_get);
	_tmp0_ = res_length1;
	_tmp1_ = res;
	_tmp1__length1 = res_length1;
	_tmp2_ = _tmp1_;
	_tmp2__length1 = _tmp1__length1;
	if (result_length1) {
		*result_length1 = _tmp2__length1;
	}
	result = _tmp2_;
	return result;
}


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


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


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


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


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


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


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


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


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


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


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


static gboolean samsung_network_get_status_real_run_co (SamsungNetworkGetStatusRunData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		case 2:
		goto _state_2;
		case 3:
		goto _state_3;
		case 4:
		goto _state_4;
		case 5:
		goto _state_5;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp0_ = fso_gsm_theModem;
	_data_->_tmp1_ = NULL;
	_data_->_tmp1_ = fso_gsm_modem_channel (_data_->_tmp0_, "main");
	_data_->channel = SAMSUNG_IS_IPC_CHANNEL (_data_->_tmp1_) ? ((SamsungIpcChannel*) _data_->_tmp1_) : NULL;
	_data_->_tmp2_ = g_str_hash;
	_data_->_tmp3_ = g_str_equal;
	_data_->_tmp4_ = g_hash_table_new_full (_data_->_tmp2_, _data_->_tmp3_, _g_free0_, _g_variant_unref0_);
	_data_->_tmp5_ = _data_->_tmp4_;
	fso_gsm_network_get_status_set_status ((FsoGsmNetworkGetStatus*) _data_->self, _data_->_tmp5_);
	_g_hash_table_unref0 (_data_->_tmp5_);
	_data_->_tmp6_ = fso_gsm_theModem;
	_data_->_tmp7_ = NULL;
	_data_->_tmp7_ = fso_gsm_modem_createMediator (_data_->_tmp6_, FSO_GSM_TYPE_NETWORK_GET_SIGNAL_STRENGTH, (GBoxedCopyFunc) g_object_ref, g_object_unref, &_data_->_inner_error_);
	_data_->m = (FsoGsmNetworkGetSignalStrength*) _data_->_tmp7_;
	if (_data_->_inner_error_ != NULL) {
		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_);
			_g_object_unref0 (_data_->channel);
			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 {
			_g_object_unref0 (_data_->channel);
			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_->_tmp8_ = _data_->m;
	_data_->_state_ = 1;
	fso_gsm_network_get_signal_strength_run (_data_->_tmp8_, samsung_network_get_status_run_ready, _data_);
	return FALSE;
	_state_1:
	fso_gsm_network_get_signal_strength_run_finish (_data_->_tmp8_, _data_->_res_, &_data_->_inner_error_);
	if (_data_->_inner_error_ != NULL) {
		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_);
			_g_object_unref0 (_data_->m);
			_g_object_unref0 (_data_->channel);
			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 {
			_g_object_unref0 (_data_->m);
			_g_object_unref0 (_data_->channel);
			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_ = fso_gsm_network_get_status_get_status ((FsoGsmNetworkGetStatus*) _data_->self);
	_data_->_tmp10_ = _data_->_tmp9_;
	_data_->_tmp11_ = g_strdup ("strength");
	_data_->_tmp12_ = _data_->m;
	_data_->_tmp13_ = fso_gsm_network_get_signal_strength_get_signal (_data_->_tmp12_);
	_data_->_tmp14_ = _data_->_tmp13_;
	_data_->_tmp15_ = _variant_new17 (_data_->_tmp14_);
	g_hash_table_insert (_data_->_tmp10_, _data_->_tmp11_, _data_->_tmp15_);
	memset (&_data_->req, 0, sizeof (struct ipc_net_regist_get));
	ipc_net_regist_setup (&_data_->req, IPC_NET_SERVICE_DOMAIN_GSM);
	_data_->_tmp16_ = _data_->channel;
	_data_->_tmp17_ = _data_->req;
	_data_->_tmp18_ = samsung_ipc_network_registration_get_message_get_data (&_data_->_tmp17_, &_data_->_tmp18__length1);
	_data_->_tmp19_ = _data_->_tmp18_;
	_data_->_tmp19__length1 = _data_->_tmp18__length1;
	_data_->_state_ = 2;
	samsung_ipc_channel_enqueue_async (_data_->_tmp16_, IPC_TYPE_GET, IPC_NET_REGIST, _data_->_tmp19_, _data_->_tmp19__length1, 0, 5, samsung_network_get_status_run_ready, _data_);
	return FALSE;
	_state_2:
	_data_->_tmp20_ = NULL;
	_data_->_tmp20_ = samsung_ipc_channel_enqueue_finish (_data_->_tmp16_, _data_->_res_);
	_data_->response = _data_->_tmp20_;
	_data_->_tmp21_ = _data_->response;
	if (_data_->_tmp21_ == NULL) {
		_data_->_tmp22_ = g_error_new_literal (FREE_SMARTPHONE_ERROR, FREE_SMARTPHONE_ERROR_INTERNAL_ERROR, "Could not retrieve network status from modem");
		_data_->_inner_error_ = _data_->_tmp22_;
		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_);
			 (&_data_->req);
			_g_object_unref0 (_data_->m);
			_g_object_unref0 (_data_->channel);
			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 {
			 (&_data_->req);
			_g_object_unref0 (_data_->m);
			_g_object_unref0 (_data_->channel);
			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_->_tmp23_ = _data_->response;
	_data_->_tmp24_ = (*_data_->_tmp23_).data;
	_data_->_tmp24__length1 = (*_data_->_tmp23_).length;
	_data_->reginfo = (struct ipc_net_regist*) _data_->_tmp24_;
	_data_->_tmp25_ = fso_gsm_network_get_status_get_status ((FsoGsmNetworkGetStatus*) _data_->self);
	_data_->_tmp26_ = _data_->_tmp25_;
	_data_->_tmp27_ = g_strdup ("registration");
	_data_->_tmp28_ = _data_->reginfo;
	_data_->_tmp29_ = (*_data_->_tmp28_).reg_state;
	_data_->_tmp30_ = NULL;
	_data_->_tmp30_ = networkRegistrationStateToString (_data_->_tmp29_);
	_data_->_tmp31_ = _variant_new18 (_data_->_tmp30_);
	g_hash_table_insert (_data_->_tmp26_, _data_->_tmp27_, _data_->_tmp31_);
	_data_->_tmp32_ = fso_gsm_network_get_status_get_status ((FsoGsmNetworkGetStatus*) _data_->self);
	_data_->_tmp33_ = _data_->_tmp32_;
	_data_->_tmp34_ = g_strdup ("mode");
	_data_->_tmp35_ = _variant_new19 ("automatic");
	g_hash_table_insert (_data_->_tmp33_, _data_->_tmp34_, _data_->_tmp35_);
	_data_->_tmp36_ = fso_gsm_network_get_status_get_status ((FsoGsmNetworkGetStatus*) _data_->self);
	_data_->_tmp37_ = _data_->_tmp36_;
	_data_->_tmp38_ = g_strdup ("act");
	_data_->_tmp39_ = _data_->reginfo;
	_data_->_tmp40_ = (*_data_->_tmp39_).act;
	_data_->_tmp41_ = NULL;
	_data_->_tmp41_ = networkAccessTechnologyToString (_data_->_tmp40_);
	_data_->_tmp42_ = _variant_new20 (_data_->_tmp41_);
	g_hash_table_insert (_data_->_tmp37_, _data_->_tmp38_, _data_->_tmp42_);
	_data_->_tmp43_ = fso_gsm_network_get_status_get_status ((FsoGsmNetworkGetStatus*) _data_->self);
	_data_->_tmp44_ = _data_->_tmp43_;
	_data_->_tmp45_ = g_strdup ("lac");
	_data_->_tmp46_ = _data_->reginfo;
	_data_->_tmp47_ = (*_data_->_tmp46_).lac;
	_data_->_tmp48_ = NULL;
	_data_->_tmp48_ = g_strdup_printf ("%hu", _data_->_tmp47_);
	_data_->_tmp49_ = _variant_new21 (_data_->_tmp48_);
	g_hash_table_insert (_data_->_tmp44_, _data_->_tmp45_, _data_->_tmp49_);
	_data_->_tmp50_ = fso_gsm_network_get_status_get_status ((FsoGsmNetworkGetStatus*) _data_->self);
	_data_->_tmp51_ = _data_->_tmp50_;
	_data_->_tmp52_ = g_strdup ("cid");
	_data_->_tmp53_ = _data_->reginfo;
	_data_->_tmp54_ = (*_data_->_tmp53_).cid;
	_data_->_tmp55_ = NULL;
	_data_->_tmp55_ = g_strdup_printf ("%u", _data_->_tmp54_);
	_data_->_tmp56_ = _variant_new22 (_data_->_tmp55_);
	g_hash_table_insert (_data_->_tmp51_, _data_->_tmp52_, _data_->_tmp56_);
	_data_->_tmp57_ = _data_->reginfo;
	_data_->_tmp58_ = (*_data_->_tmp57_).reg_state;
	_data_->reg_state = _data_->_tmp58_;
	_data_->_tmp59_ = _data_->channel;
	_data_->_tmp60_ = NULL;
	_data_->_tmp60_ = g_new0 (guint8, 0);
	_data_->_tmp61_ = _data_->_tmp60_;
	_data_->_tmp61__length1 = 0;
	_data_->_state_ = 3;
	samsung_ipc_channel_enqueue_async (_data_->_tmp59_, IPC_TYPE_GET, IPC_NET_CURRENT_PLMN, _data_->_tmp61_, 0, 0, 5, samsung_network_get_status_run_ready, _data_);
	return FALSE;
	_state_3:
	_data_->_tmp62_ = NULL;
	_data_->_tmp62_ = samsung_ipc_channel_enqueue_finish (_data_->_tmp59_, _data_->_res_);
	_data_->response = _data_->_tmp62_;
	_data_->_tmp61_ = (g_free (_data_->_tmp61_), NULL);
	_data_->_tmp63_ = _data_->response;
	if (_data_->_tmp63_ == NULL) {
		_data_->_tmp64_ = g_error_new_literal (FREE_SMARTPHONE_ERROR, FREE_SMARTPHONE_ERROR_INTERNAL_ERROR, "Could not retrieve current network operator from modem");
		_data_->_inner_error_ = _data_->_tmp64_;
		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_);
			 (&_data_->req);
			_g_object_unref0 (_data_->m);
			_g_object_unref0 (_data_->channel);
			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 {
			 (&_data_->req);
			_g_object_unref0 (_data_->m);
			_g_object_unref0 (_data_->channel);
			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_->_tmp65_ = _data_->response;
	_data_->_tmp66_ = (*_data_->_tmp65_).data;
	_data_->_tmp66__length1 = (*_data_->_tmp65_).length;
	_data_->pr = (struct ipc_net_current_plmn*) _data_->_tmp66_;
	_data_->_tmp67_ = g_strdup ("");
	_data_->plmn = _data_->_tmp67_;
	{
		_data_->n = 0;
		{
			_data_->_tmp68_ = TRUE;
			while (TRUE) {
				_data_->_tmp69_ = _data_->_tmp68_;
				if (!_data_->_tmp69_) {
					_data_->_tmp70_ = _data_->n;
					_data_->n = _data_->_tmp70_ + 1;
				}
				_data_->_tmp68_ = FALSE;
				_data_->_tmp71_ = _data_->n;
				if (!(_data_->_tmp71_ < 5)) {
					break;
				}
				_data_->_tmp72_ = _data_->plmn;
				_data_->_tmp73_ = _data_->pr;
				_data_->_tmp74_ = (*_data_->_tmp73_).plmn;
				_data_->_tmp74__length1 = -1;
				_data_->_tmp75_ = _data_->n;
				_data_->_tmp76_ = _data_->_tmp74_[_data_->_tmp75_];
				_data_->_tmp77_ = NULL;
				_data_->_tmp77_ = g_strdup_printf ("%c", (gint) _data_->_tmp76_);
				_data_->_tmp78_ = _data_->_tmp77_;
				_data_->_tmp79_ = g_strconcat (_data_->_tmp72_, _data_->_tmp78_, NULL);
				_g_free0 (_data_->plmn);
				_data_->plmn = _data_->_tmp79_;
				_g_free0 (_data_->_tmp78_);
			}
		}
	}
	_data_->_tmp81_ = _data_->reg_state;
	if (_data_->_tmp81_ == IPC_NET_REGISTRATION_STATE_HOME) {
		_data_->_tmp80_ = TRUE;
	} else {
		_data_->_tmp82_ = _data_->reg_state;
		_data_->_tmp80_ = _data_->_tmp82_ == IPC_NET_REGISTRATION_STATE_ROAMING;
	}
	_data_->_tmp83_ = _data_->_tmp80_;
	if (_data_->_tmp83_) {
		_data_->_tmp84_ = fso_gsm_network_get_status_get_status ((FsoGsmNetworkGetStatus*) _data_->self);
		_data_->_tmp85_ = _data_->_tmp84_;
		_data_->_tmp86_ = g_strdup ("code");
		_data_->_tmp87_ = _data_->plmn;
		_data_->_tmp88_ = _variant_new23 (_data_->_tmp87_);
		g_hash_table_insert (_data_->_tmp85_, _data_->_tmp86_, _data_->_tmp88_);
		_data_->_tmp89_ = _data_->plmn;
		_data_->_state_ = 4;
		fso_gsm_findProviderNameForMccMnc (_data_->_tmp89_, samsung_network_get_status_run_ready, _data_);
		return FALSE;
		_state_4:
		_data_->_tmp90_ = NULL;
		_data_->_tmp90_ = fso_gsm_findProviderNameForMccMnc_finish (_data_->_res_);
		_data_->provider = _data_->_tmp90_;
		_data_->_tmp91_ = fso_gsm_network_get_status_get_status ((FsoGsmNetworkGetStatus*) _data_->self);
		_data_->_tmp92_ = _data_->_tmp91_;
		_data_->_tmp93_ = g_strdup ("provider");
		_data_->_tmp94_ = _data_->provider;
		_data_->_tmp95_ = _variant_new24 (_data_->_tmp94_);
		g_hash_table_insert (_data_->_tmp92_, _data_->_tmp93_, _data_->_tmp95_);
		_data_->_tmp96_ = fso_gsm_network_get_status_get_status ((FsoGsmNetworkGetStatus*) _data_->self);
		_data_->_tmp97_ = _data_->_tmp96_;
		_data_->_tmp98_ = g_strdup ("display");
		_data_->_tmp99_ = _data_->provider;
		_data_->_tmp100_ = _variant_new25 (_data_->_tmp99_);
		g_hash_table_insert (_data_->_tmp97_, _data_->_tmp98_, _data_->_tmp100_);
		_g_free0 (_data_->provider);
	}
	memset (&_data_->_tmp101_, 0, sizeof (struct ipc_net_regist_get));
	memset (&_data_->_tmp101_, 0, sizeof (struct ipc_net_regist_get));
	 (&_data_->req);
	_data_->req = _data_->_tmp101_;
	ipc_net_regist_setup (&_data_->req, IPC_NET_SERVICE_DOMAIN_GSM);
	_data_->_tmp102_ = _data_->channel;
	_data_->_tmp103_ = _data_->req;
	_data_->_tmp104_ = samsung_ipc_network_registration_get_message_get_data (&_data_->_tmp103_, &_data_->_tmp104__length1);
	_data_->_tmp105_ = _data_->_tmp104_;
	_data_->_tmp105__length1 = _data_->_tmp104__length1;
	_data_->_state_ = 5;
	samsung_ipc_channel_enqueue_async (_data_->_tmp102_, IPC_TYPE_GET, IPC_NET_REGIST, _data_->_tmp105_, _data_->_tmp105__length1, 0, 5, samsung_network_get_status_run_ready, _data_);
	return FALSE;
	_state_5:
	_data_->_tmp106_ = NULL;
	_data_->_tmp106_ = samsung_ipc_channel_enqueue_finish (_data_->_tmp102_, _data_->_res_);
	_data_->response = _data_->_tmp106_;
	_data_->_tmp107_ = _data_->response;
	if (_data_->_tmp107_ == NULL) {
		_data_->_tmp108_ = g_error_new_literal (FREE_SMARTPHONE_ERROR, FREE_SMARTPHONE_ERROR_INTERNAL_ERROR, "Could not retrieve PDP network status from modem");
		_data_->_inner_error_ = _data_->_tmp108_;
		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_);
			_g_free0 (_data_->plmn);
			 (&_data_->req);
			_g_object_unref0 (_data_->m);
			_g_object_unref0 (_data_->channel);
			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 {
			_g_free0 (_data_->plmn);
			 (&_data_->req);
			_g_object_unref0 (_data_->m);
			_g_object_unref0 (_data_->channel);
			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_->_tmp109_ = _data_->response;
	_data_->_tmp110_ = (*_data_->_tmp109_).data;
	_data_->_tmp110__length1 = (*_data_->_tmp109_).length;
	_data_->reginfo = (struct ipc_net_regist*) _data_->_tmp110_;
	_data_->_tmp111_ = fso_gsm_network_get_status_get_status ((FsoGsmNetworkGetStatus*) _data_->self);
	_data_->_tmp112_ = _data_->_tmp111_;
	_data_->_tmp113_ = g_strdup ("pdp.registration");
	_data_->_tmp114_ = _data_->reginfo;
	_data_->_tmp115_ = (*_data_->_tmp114_).reg_state;
	_data_->_tmp116_ = NULL;
	_data_->_tmp116_ = networkRegistrationStateToString (_data_->_tmp115_);
	_data_->_tmp117_ = _variant_new26 (_data_->_tmp116_);
	g_hash_table_insert (_data_->_tmp112_, _data_->_tmp113_, _data_->_tmp117_);
	_data_->_tmp118_ = fso_gsm_network_get_status_get_status ((FsoGsmNetworkGetStatus*) _data_->self);
	_data_->_tmp119_ = _data_->_tmp118_;
	_data_->_tmp120_ = g_strdup ("pdp.lac");
	_data_->_tmp121_ = _data_->reginfo;
	_data_->_tmp122_ = (*_data_->_tmp121_).lac;
	_data_->_tmp123_ = NULL;
	_data_->_tmp123_ = g_strdup_printf ("%hu", _data_->_tmp122_);
	_data_->_tmp124_ = _variant_new27 (_data_->_tmp123_);
	g_hash_table_insert (_data_->_tmp119_, _data_->_tmp120_, _data_->_tmp124_);
	_data_->_tmp125_ = fso_gsm_network_get_status_get_status ((FsoGsmNetworkGetStatus*) _data_->self);
	_data_->_tmp126_ = _data_->_tmp125_;
	_data_->_tmp127_ = g_strdup ("pdp.cid");
	_data_->_tmp128_ = _data_->reginfo;
	_data_->_tmp129_ = (*_data_->_tmp128_).cid;
	_data_->_tmp130_ = NULL;
	_data_->_tmp130_ = g_strdup_printf ("%u", _data_->_tmp129_);
	_data_->_tmp131_ = _variant_new28 (_data_->_tmp130_);
	g_hash_table_insert (_data_->_tmp126_, _data_->_tmp127_, _data_->_tmp131_);
	_g_free0 (_data_->plmn);
	 (&_data_->req);
	_g_object_unref0 (_data_->m);
	_g_object_unref0 (_data_->channel);
	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;
}


SamsungNetworkGetStatus* samsung_network_get_status_construct (GType object_type) {
	SamsungNetworkGetStatus * self = NULL;
	self = (SamsungNetworkGetStatus*) fso_gsm_network_get_status_construct (object_type);
	return self;
}


SamsungNetworkGetStatus* samsung_network_get_status_new (void) {
	return samsung_network_get_status_construct (TYPE_SAMSUNG_NETWORK_GET_STATUS);
}


static void samsung_network_get_status_class_init (SamsungNetworkGetStatusClass * klass) {
	samsung_network_get_status_parent_class = g_type_class_peek_parent (klass);
	FSO_GSM_NETWORK_GET_STATUS_CLASS (klass)->run = samsung_network_get_status_real_run;
	FSO_GSM_NETWORK_GET_STATUS_CLASS (klass)->run_finish = samsung_network_get_status_real_run_finish;
}


static void samsung_network_get_status_instance_init (SamsungNetworkGetStatus * self) {
}


GType samsung_network_get_status_get_type (void) {
	return samsung_network_get_status_type_id;
}


GType samsung_network_get_status_register_type (GTypeModule * module) {
	static const GTypeInfo g_define_type_info = { sizeof (SamsungNetworkGetStatusClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) samsung_network_get_status_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SamsungNetworkGetStatus), 0, (GInstanceInitFunc) samsung_network_get_status_instance_init, NULL };
	samsung_network_get_status_type_id = g_type_module_register_type (module, FSO_GSM_TYPE_NETWORK_GET_STATUS, "SamsungNetworkGetStatus", &g_define_type_info, 0);
	return samsung_network_get_status_type_id;
}


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


static void samsung_network_list_providers_real_run (FsoGsmNetworkListProviders* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	SamsungNetworkListProviders * self;
	SamsungNetworkListProvidersRunData* _data_;
	SamsungNetworkListProviders* _tmp0_;
	self = (SamsungNetworkListProviders*) base;
	_data_ = g_slice_new0 (SamsungNetworkListProvidersRunData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, samsung_network_list_providers_real_run);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, samsung_network_list_providers_real_run_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	samsung_network_list_providers_real_run_co (_data_);
}


static void samsung_network_list_providers_real_run_finish (FsoGsmNetworkListProviders* base, GAsyncResult* _res_, GError** error) {
	SamsungNetworkListProvidersRunData* _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 void samsung_network_list_providers_run_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	SamsungNetworkListProvidersRunData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	samsung_network_list_providers_real_run_co (_data_);
}


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 struct ipc_net_plmn_entry* samsung_ipc_network_plmn_entries_message_get_entry (struct ipc_net_plmn_entries *self, struct ipc_message_info* response, guint pos) {
	struct ipc_net_plmn_entry* result = NULL;
	struct ipc_net_plmn_entry* entry;
	guint _tmp0_;
	guint8 _tmp1_;
	struct ipc_message_info _tmp2_;
	guint8* _tmp3_;
	gint _tmp3__length1;
	guint8* p;
	guint8* _tmp4_;
	guint _tmp5_;
	struct ipc_net_plmn_entry* _tmp6_;
	g_return_val_if_fail (response != NULL, NULL);
	entry = NULL;
	_tmp0_ = pos;
	_tmp1_ = (*self).num;
	if (_tmp0_ >= ((guint) _tmp1_)) {
		result = NULL;
		return result;
	}
	_tmp2_ = *response;
	_tmp3_ = _tmp2_.data;
	_tmp3__length1 = _tmp2_.length;
	p = ((guint8*) _tmp3_) + sizeof (struct ipc_net_plmn_entries);
	_tmp4_ = p;
	_tmp5_ = pos;
	entry = (struct ipc_net_plmn_entry*) (_tmp4_ + (_tmp5_ * sizeof (struct ipc_net_plmn_entry)));
	_tmp6_ = entry;
	result = _tmp6_;
	return result;
}


static void _vala_array_add1 (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 gboolean samsung_network_list_providers_real_run_co (SamsungNetworkListProvidersRunData* _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_->_tmp0_ = fso_gsm_theModem;
	_data_->_tmp1_ = NULL;
	_data_->_tmp1_ = fso_gsm_modem_channel (_data_->_tmp0_, "main");
	_data_->channel = SAMSUNG_IS_IPC_CHANNEL (_data_->_tmp1_) ? ((SamsungIpcChannel*) _data_->_tmp1_) : NULL;
	_data_->_tmp2_ = NULL;
	_data_->_tmp2_ = g_new0 (FreeSmartphoneGSMNetworkProvider, 0);
	_data_->_providers = _data_->_tmp2_;
	_data_->_providers_length1 = 0;
	_data_->__providers_size_ = _data_->_providers_length1;
	_data_->_tmp3_ = _data_->channel;
	_data_->_tmp4_ = NULL;
	_data_->_tmp4_ = g_new0 (guint8, 0);
	_data_->_tmp5_ = _data_->_tmp4_;
	_data_->_tmp5__length1 = 0;
	_data_->_state_ = 1;
	samsung_ipc_channel_enqueue_async (_data_->_tmp3_, IPC_TYPE_GET, IPC_NET_PLMN_LIST, _data_->_tmp5_, 0, 0, -1, samsung_network_list_providers_run_ready, _data_);
	return FALSE;
	_state_1:
	_data_->_tmp6_ = NULL;
	_data_->_tmp6_ = samsung_ipc_channel_enqueue_finish (_data_->_tmp3_, _data_->_res_);
	_data_->response = _data_->_tmp6_;
	_data_->_tmp5_ = (g_free (_data_->_tmp5_), NULL);
	_data_->_tmp7_ = _data_->response;
	if (_data_->_tmp7_ == NULL) {
		_data_->_tmp8_ = g_error_new_literal (FREE_SMARTPHONE_ERROR, FREE_SMARTPHONE_ERROR_INTERNAL_ERROR, "Could not retrieve current network providers from modem!");
		_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_);
			_data_->_providers = (_vala_FreeSmartphoneGSMNetworkProvider_array_free (_data_->_providers, _data_->_providers_length1), NULL);
			_g_object_unref0 (_data_->channel);
			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 {
			_data_->_providers = (_vala_FreeSmartphoneGSMNetworkProvider_array_free (_data_->_providers, _data_->_providers_length1), NULL);
			_g_object_unref0 (_data_->channel);
			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_ = _data_->response;
	_data_->_tmp10_ = (*_data_->_tmp9_).data;
	_data_->_tmp10__length1 = (*_data_->_tmp9_).length;
	_data_->pr = (struct ipc_net_plmn_entries*) _data_->_tmp10_;
	{
		_data_->n = 0;
		{
			_data_->_tmp11_ = TRUE;
			while (TRUE) {
				_data_->_tmp12_ = _data_->_tmp11_;
				if (!_data_->_tmp12_) {
					_data_->_tmp13_ = _data_->n;
					_data_->n = _data_->_tmp13_ + 1;
				}
				_data_->_tmp11_ = FALSE;
				_data_->_tmp14_ = _data_->n;
				_data_->_tmp15_ = _data_->pr;
				_data_->_tmp16_ = (*_data_->_tmp15_).num;
				if (!(_data_->_tmp14_ < ((gint) _data_->_tmp16_))) {
					break;
				}
				_data_->_tmp17_ = _data_->pr;
				_data_->_tmp18_ = _data_->response;
				_data_->_tmp19_ = _data_->n;
				_data_->_tmp20_ = *_data_->_tmp17_;
				_data_->_tmp21_ = *_data_->_tmp18_;
				_data_->_tmp22_ = NULL;
				_data_->_tmp22_ = samsung_ipc_network_plmn_entries_message_get_entry (&_data_->_tmp20_, &_data_->_tmp21_, (guint) _data_->_tmp19_);
				_data_->currentNetwork = _data_->_tmp22_;
				_data_->_tmp23_ = g_strdup ("");
				_data_->mccmnc = _data_->_tmp23_;
				_data_->_tmp24_ = _data_->currentNetwork;
				_data_->_tmp25_ = (*_data_->_tmp24_).type;
				if (((gint) _data_->_tmp25_) == 0x01) {
					_g_free0 (_data_->mccmnc);
					continue;
				}
				{
					_data_->m = 0;
					{
						_data_->_tmp26_ = TRUE;
						while (TRUE) {
							_data_->_tmp27_ = _data_->_tmp26_;
							if (!_data_->_tmp27_) {
								_data_->_tmp28_ = _data_->m;
								_data_->m = _data_->_tmp28_ + 1;
							}
							_data_->_tmp26_ = FALSE;
							_data_->_tmp29_ = _data_->m;
							if (!(_data_->_tmp29_ < 5)) {
								break;
							}
							_data_->_tmp30_ = _data_->mccmnc;
							_data_->_tmp31_ = _data_->currentNetwork;
							_data_->_tmp32_ = (*_data_->_tmp31_).plmn;
							_data_->_tmp32__length1 = -1;
							_data_->_tmp33_ = _data_->m;
							_data_->_tmp34_ = _data_->_tmp32_[_data_->_tmp33_];
							_data_->_tmp35_ = NULL;
							_data_->_tmp35_ = g_strdup_printf ("%c", (gint) _data_->_tmp34_);
							_data_->_tmp36_ = _data_->_tmp35_;
							_data_->_tmp37_ = g_strconcat (_data_->_tmp30_, _data_->_tmp36_, NULL);
							_g_free0 (_data_->mccmnc);
							_data_->mccmnc = _data_->_tmp37_;
							_g_free0 (_data_->_tmp36_);
						}
					}
				}
				_data_->_tmp38_ = _data_->mccmnc;
				_data_->_state_ = 2;
				fso_gsm_findProviderNameForMccMnc (_data_->_tmp38_, samsung_network_list_providers_run_ready, _data_);
				return FALSE;
				_state_2:
				_data_->_tmp39_ = NULL;
				_data_->_tmp39_ = fso_gsm_findProviderNameForMccMnc_finish (_data_->_res_);
				_data_->provider = _data_->_tmp39_;
				_data_->_tmp40_ = NULL;
				_data_->_tmp40_ = fso_gsm_constants_instance ();
				_data_->_tmp41_ = _data_->_tmp40_;
				_data_->_tmp42_ = _data_->currentNetwork;
				_data_->_tmp43_ = (*_data_->_tmp42_).status;
				_data_->_tmp44_ = NULL;
				_data_->_tmp44_ = fso_gsm_constants_networkProviderStatusToString (_data_->_tmp41_, ((gint) _data_->_tmp43_) - 1);
				_data_->_tmp45_ = _data_->_tmp44_;
				_data_->_tmp46_ = _data_->provider;
				_data_->_tmp47_ = _data_->provider;
				_data_->_tmp48_ = _data_->mccmnc;
				free_smartphone_gsm_network_provider_init (&_data_->p, _data_->_tmp45_, _data_->_tmp46_, _data_->_tmp47_, _data_->_tmp48_, "GSM");
				_g_free0 (_data_->_tmp45_);
				_fso_gsm_constants_unref0 (_data_->_tmp41_);
				_data_->_tmp49_ = _data_->_providers;
				_data_->_tmp49__length1 = _data_->_providers_length1;
				_data_->_tmp50_ = _data_->p;
				memset (&_data_->_tmp51_, 0, sizeof (FreeSmartphoneGSMNetworkProvider));
				free_smartphone_gsm_network_provider_copy (&_data_->_tmp50_, &_data_->_tmp51_);
				_vala_array_add1 (&_data_->_providers, &_data_->_providers_length1, &_data_->__providers_size_, &_data_->_tmp51_);
				free_smartphone_gsm_network_provider_destroy (&_data_->p);
				_g_free0 (_data_->provider);
				_g_free0 (_data_->mccmnc);
			}
		}
	}
	_data_->_tmp52_ = _data_->_providers;
	_data_->_tmp52__length1 = _data_->_providers_length1;
	fso_gsm_network_list_providers_set_providers ((FsoGsmNetworkListProviders*) _data_->self, _data_->_tmp52_, _data_->_tmp52__length1);
	_data_->_providers = (_vala_FreeSmartphoneGSMNetworkProvider_array_free (_data_->_providers, _data_->_providers_length1), NULL);
	_g_object_unref0 (_data_->channel);
	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;
}


SamsungNetworkListProviders* samsung_network_list_providers_construct (GType object_type) {
	SamsungNetworkListProviders * self = NULL;
	self = (SamsungNetworkListProviders*) fso_gsm_network_list_providers_construct (object_type);
	return self;
}


SamsungNetworkListProviders* samsung_network_list_providers_new (void) {
	return samsung_network_list_providers_construct (TYPE_SAMSUNG_NETWORK_LIST_PROVIDERS);
}


static void samsung_network_list_providers_class_init (SamsungNetworkListProvidersClass * klass) {
	samsung_network_list_providers_parent_class = g_type_class_peek_parent (klass);
	FSO_GSM_NETWORK_LIST_PROVIDERS_CLASS (klass)->run = samsung_network_list_providers_real_run;
	FSO_GSM_NETWORK_LIST_PROVIDERS_CLASS (klass)->run_finish = samsung_network_list_providers_real_run_finish;
}


static void samsung_network_list_providers_instance_init (SamsungNetworkListProviders * self) {
}


GType samsung_network_list_providers_get_type (void) {
	return samsung_network_list_providers_type_id;
}


GType samsung_network_list_providers_register_type (GTypeModule * module) {
	static const GTypeInfo g_define_type_info = { sizeof (SamsungNetworkListProvidersClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) samsung_network_list_providers_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SamsungNetworkListProviders), 0, (GInstanceInitFunc) samsung_network_list_providers_instance_init, NULL };
	samsung_network_list_providers_type_id = g_type_module_register_type (module, FSO_GSM_TYPE_NETWORK_LIST_PROVIDERS, "SamsungNetworkListProviders", &g_define_type_info, 0);
	return samsung_network_list_providers_type_id;
}



