/* midori-uri.c generated by valac 0.26.2, the Vala compiler
 * generated from midori-uri.vala, do not modify */

/*
 Copyright (C) 2011 Christian Dywan <christian@twotoasts.de>

 This library is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public
 License as published by the Free Software Foundation; either
 version 2.1 of the License, or (at your option) any later version.

 See the file COPYING for the full license text.
*/

#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <libsoup/soup.h>
#include <glib/gstdio.h>
#include <glib/gi18n-lib.h>
#include <gio/gio.h>
#include "webkit/webkit.h"
#include <gdk-pixbuf/gdk-pixbuf.h>


#define MIDORI_TYPE_URI (midori_uri_get_type ())
#define MIDORI_URI(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MIDORI_TYPE_URI, MidoriURI))
#define MIDORI_URI_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MIDORI_TYPE_URI, MidoriURIClass))
#define MIDORI_IS_URI(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MIDORI_TYPE_URI))
#define MIDORI_IS_URI_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MIDORI_TYPE_URI))
#define MIDORI_URI_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MIDORI_TYPE_URI, MidoriURIClass))

typedef struct _MidoriURI MidoriURI;
typedef struct _MidoriURIClass MidoriURIClass;
typedef struct _MidoriURIPrivate MidoriURIPrivate;
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))
#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _MidoriUriGetIconData MidoriUriGetIconData;
typedef struct _MidoriUriGetIconFallbackData MidoriUriGetIconFallbackData;

#define MIDORI_URI_TYPE_ICON (midori_uri_icon_get_type ())
#define MIDORI_URI_ICON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MIDORI_URI_TYPE_ICON, MidoriURIIcon))
#define MIDORI_URI_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MIDORI_URI_TYPE_ICON, MidoriURIIconClass))
#define MIDORI_URI_IS_ICON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MIDORI_URI_TYPE_ICON))
#define MIDORI_URI_IS_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MIDORI_URI_TYPE_ICON))
#define MIDORI_URI_ICON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MIDORI_URI_TYPE_ICON, MidoriURIIconClass))

typedef struct _MidoriURIIcon MidoriURIIcon;
typedef struct _MidoriURIIconClass MidoriURIIconClass;
typedef struct _MidoriURIIconPrivate MidoriURIIconPrivate;
typedef struct _MidoriUriIconLoadAsyncData MidoriUriIconLoadAsyncData;

struct _MidoriURI {
	GObject parent_instance;
	MidoriURIPrivate * priv;
};

struct _MidoriURIClass {
	GObjectClass parent_class;
};

struct _MidoriUriGetIconData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	gchar* uri;
	GCancellable* cancellable;
	GIcon* result;
	WebKitFaviconDatabase* database;
	WebKitFaviconDatabase* _tmp0_;
	WebKitFaviconDatabase* _tmp1_;
	GdkPixbuf* pixbuf;
	const gchar* _tmp2_;
	GdkPixbuf* _tmp3_;
	GIcon* _tmp4_;
	GError * _inner_error_;
};

struct _MidoriUriGetIconFallbackData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	gchar* uri;
	GIcon* fallback;
	GCancellable* cancellable;
	GIcon* result;
	GIcon* _tmp0_;
	const gchar* _tmp1_;
	GCancellable* _tmp2_;
	GIcon* _tmp3_;
	GIcon* _tmp4_;
	GError* _error_;
	GError* _tmp5_;
	const gchar* _tmp6_;
	GIcon* _tmp7_;
	GIcon* _tmp8_;
	GError * _inner_error_;
};

struct _MidoriURIIcon {
	GInitiallyUnowned parent_instance;
	MidoriURIIconPrivate * priv;
};

struct _MidoriURIIconClass {
	GInitiallyUnownedClass parent_class;
};

struct _MidoriURIIconPrivate {
	gchar* _uri;
	GIcon* _fallback;
	GInputStream* stream;
};

struct _MidoriUriIconLoadAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	MidoriURIIcon* self;
	gint size;
	GCancellable* cancellable;
	gchar* type;
	GInputStream* result;
	gchar* _tmp0_;
	GInputStream* _tmp1_;
	GInputStream* _tmp2_;
	GInputStream* _tmp3_;
	GIcon* icon;
	const gchar* _tmp4_;
	GCancellable* _tmp5_;
	GIcon* _tmp6_;
	gboolean _tmp7_;
	GIcon* _tmp8_;
	GIcon* _tmp9_;
	GdkPixbuf* pixbuf;
	GIcon* _tmp10_;
	GdkPixbuf* _tmp11_;
	guint8* buffer;
	gint buffer_length1;
	gint _buffer_size_;
	GdkPixbuf* _tmp12_;
	guint8* _tmp13_;
	gsize _tmp14_;
	guint8* _tmp15_;
	gint _tmp15__length1;
	guint8* _tmp16_;
	gint _tmp16__length1;
	GMemoryInputStream* _tmp17_;
	GError* _tmp18_;
	GInputStream* _tmp19_;
	GInputStream* _tmp20_;
	GError * _inner_error_;
};


static gpointer midori_uri_parent_class = NULL;
static gchar* midori_uri_fork_uri;
static gchar* midori_uri_fork_uri = NULL;
static gpointer midori_uri_icon_parent_class = NULL;
static GIconIface* midori_uri_icon_g_icon_parent_iface = NULL;
static GLoadableIconIface* midori_uri_icon_g_loadable_icon_parent_iface = NULL;

gchar* g_hostname_to_unicode (const gchar* hostname);
gchar* g_hostname_to_ascii (const gchar* hostname);
GType midori_uri_get_type (void) G_GNUC_CONST;
enum  {
	MIDORI_URI_DUMMY_PROPERTY
};
gchar* midori_uri_parse_hostname (const gchar* uri, gchar** path);
gchar* midori_uri_parse (const gchar* uri, gchar** path);
gchar* midori_uri_to_ascii (const gchar* uri);
gchar* midori_uri_get_base_domain (const gchar* uri);
gchar* midori_uri_unescape (const gchar* uri_str);
static guint8* _vala_array_dup2 (guint8* self, int length);
gchar* midori_uri_strip_prefix_for_display (const gchar* uri);
gboolean midori_uri_is_http (const gchar* uri);
gchar* midori_uri_format_for_display (const gchar* uri);
gchar* midori_uri_for_search (const gchar* uri, const gchar* keywords);
gboolean midori_uri_is_blank (const gchar* uri);
gboolean midori_uri_is_resource (const gchar* uri);
gboolean midori_uri_is_location (const gchar* uri);
gboolean midori_uri_is_ip_address (const gchar* uri);
gboolean midori_uri_is_valid (const gchar* uri);
gchar* midori_uri_get_folder (const gchar* uri);
GChecksumType midori_uri_get_fingerprint (const gchar* uri, gchar** checksum, gchar** label);
gboolean midori_uri_recursive_fork_protection (const gchar* uri, gboolean set_uri);
static void midori_uri_get_icon_data_free (gpointer _data);
void midori_uri_get_icon (const gchar* uri, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
GIcon* midori_uri_get_icon_finish (GAsyncResult* _res_, GError** error);
static gboolean midori_uri_get_icon_co (MidoriUriGetIconData* _data_);
static void midori_uri_get_icon_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void midori_uri_get_icon_fallback_data_free (gpointer _data);
void midori_uri_get_icon_fallback (const gchar* uri, GIcon* fallback, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
GIcon* midori_uri_get_icon_fallback_finish (GAsyncResult* _res_);
static gboolean midori_uri_get_icon_fallback_co (MidoriUriGetIconFallbackData* _data_);
static void midori_uri_get_icon_fallback_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
MidoriURI* midori_uri_new (void);
MidoriURI* midori_uri_construct (GType object_type);
GType midori_uri_icon_get_type (void) G_GNUC_CONST;
#define MIDORI_URI_ICON_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), MIDORI_URI_TYPE_ICON, MidoriURIIconPrivate))
enum  {
	MIDORI_URI_ICON_DUMMY_PROPERTY,
	MIDORI_URI_ICON_URI,
	MIDORI_URI_ICON_FALLBACK
};
MidoriURIIcon* midori_uri_icon_new (const gchar* website_uri, GIcon* fallback);
MidoriURIIcon* midori_uri_icon_construct (GType object_type, const gchar* website_uri, GIcon* fallback);
static void midori_uri_icon_set_uri (MidoriURIIcon* self, const gchar* value);
static void midori_uri_icon_set_fallback (MidoriURIIcon* self, GIcon* value);
static gboolean midori_uri_icon_real_equal (GIcon* base, GIcon* other);
const gchar* midori_uri_icon_get_uri (MidoriURIIcon* self);
static guint midori_uri_icon_real_hash (GIcon* base);
static GInputStream* midori_uri_icon_real_load (GLoadableIcon* base, gint size, gchar** type, GCancellable* cancellable, GError** error);
static void __lambda4_ (MidoriURIIcon* self, GObject* obj, GAsyncResult* res);
static void ___lambda4__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static void midori_uri_icon_real_load_async_data_free (gpointer _data);
static void midori_uri_icon_real_load_async (GLoadableIcon* base, gint size, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean midori_uri_icon_real_load_async_co (MidoriUriIconLoadAsyncData* _data_);
static void midori_uri_icon_load_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static guint8* _vala_array_dup3 (guint8* self, int length);
GIcon* midori_uri_icon_get_fallback (MidoriURIIcon* self);
static void midori_uri_icon_finalize (GObject* obj);
static void _vala_midori_uri_icon_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_midori_uri_icon_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
static void midori_uri_finalize (GObject* obj);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
static gint _vala_array_length (gpointer array);


static gchar string_get (const gchar* self, glong index) {
	gchar result = '\0';
	glong _tmp0_ = 0L;
	gchar _tmp1_ = '\0';
#line 996 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, '\0');
#line 997 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp0_ = index;
#line 997 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp1_ = ((gchar*) self)[_tmp0_];
#line 997 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	result = _tmp1_;
#line 997 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	return result;
#line 253 "midori-uri.c"
}


static const gchar* string_offset (const gchar* self, glong offset) {
	const gchar* result = NULL;
	glong _tmp0_ = 0L;
#line 1035 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1036 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp0_ = offset;
#line 1036 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	result = (const gchar*) (((gchar*) self) + _tmp0_);
#line 1036 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	return result;
#line 268 "midori-uri.c"
}


gchar* midori_uri_parse_hostname (const gchar* uri, gchar** path) {
	gchar* _vala_path = NULL;
	gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
	const gchar* hostname = NULL;
	const gchar* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	gboolean _tmp5_ = FALSE;
	gboolean _tmp6_ = FALSE;
	const gchar* _tmp7_ = NULL;
	const gchar* _tmp12_ = NULL;
	const gchar* _tmp13_ = NULL;
	const gchar* _tmp14_ = NULL;
	const gchar* _tmp15_ = NULL;
	gchar* _tmp16_ = NULL;
	const gchar* _tmp17_ = NULL;
	const gchar* _tmp25_ = NULL;
	gchar* _tmp26_ = NULL;
#line 22 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_free0 (_vala_path);
#line 22 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_vala_path = NULL;
#line 23 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp0_ = uri;
#line 23 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp0_ == NULL) {
#line 298 "midori-uri.c"
		const gchar* _tmp1_ = NULL;
		gchar* _tmp2_ = NULL;
#line 24 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp1_ = uri;
#line 24 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp2_ = g_strdup (_tmp1_);
#line 24 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		result = _tmp2_;
#line 24 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (path) {
#line 24 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			*path = _vala_path;
#line 311 "midori-uri.c"
		} else {
#line 24 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_g_free0 (_vala_path);
#line 315 "midori-uri.c"
		}
#line 24 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		return result;
#line 319 "midori-uri.c"
	}
#line 25 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp3_ = uri;
#line 25 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp4_ = g_utf8_strchr (_tmp3_, (gssize) (-1), (gunichar) '/');
#line 25 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	hostname = _tmp4_;
#line 26 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp7_ = hostname;
#line 26 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp7_ == NULL) {
#line 26 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp6_ = TRUE;
#line 333 "midori-uri.c"
	} else {
		const gchar* _tmp8_ = NULL;
		gchar _tmp9_ = '\0';
#line 26 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp8_ = hostname;
#line 26 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp9_ = string_get (_tmp8_, (glong) 1);
#line 26 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp6_ = _tmp9_ != '/';
#line 343 "midori-uri.c"
	}
#line 26 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp6_) {
#line 26 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp5_ = TRUE;
#line 349 "midori-uri.c"
	} else {
		const gchar* _tmp10_ = NULL;
		const gchar* _tmp11_ = NULL;
#line 27 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp10_ = hostname;
#line 27 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp11_ = g_utf8_strchr (_tmp10_, (gssize) (-1), (gunichar) ' ');
#line 27 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp5_ = _tmp11_ != NULL;
#line 359 "midori-uri.c"
	}
#line 26 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp5_) {
#line 28 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		result = NULL;
#line 28 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (path) {
#line 28 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			*path = _vala_path;
#line 369 "midori-uri.c"
		} else {
#line 28 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_g_free0 (_vala_path);
#line 373 "midori-uri.c"
		}
#line 28 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		return result;
#line 377 "midori-uri.c"
	}
#line 29 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp12_ = hostname;
#line 29 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp13_ = string_offset (_tmp12_, (glong) 2);
#line 29 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	hostname = _tmp13_;
#line 30 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp14_ = hostname;
#line 30 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp15_ = g_utf8_strchr (_tmp14_, (gssize) (-1), (gunichar) '/');
#line 30 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp16_ = g_strdup (_tmp15_);
#line 30 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_free0 (_vala_path);
#line 30 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_vala_path = _tmp16_;
#line 30 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp17_ = _vala_path;
#line 30 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp17_ != NULL) {
#line 399 "midori-uri.c"
		const gchar* _tmp18_ = NULL;
		gchar** _tmp19_ = NULL;
		gchar** _tmp20_ = NULL;
		gchar** _tmp21_ = NULL;
		gint _tmp21__length1 = 0;
		const gchar* _tmp22_ = NULL;
		gchar* _tmp23_ = NULL;
		gchar* _tmp24_ = NULL;
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp18_ = hostname;
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp20_ = _tmp19_ = g_strsplit (_tmp18_, "/", 0);
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp21_ = _tmp20_;
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp21__length1 = _vala_array_length (_tmp19_);
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp22_ = _tmp21_[0];
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp23_ = g_strdup (_tmp22_);
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp24_ = _tmp23_;
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp21_ = (_vala_array_free (_tmp21_, _tmp21__length1, (GDestroyNotify) g_free), NULL);
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		result = _tmp24_;
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (path) {
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			*path = _vala_path;
#line 430 "midori-uri.c"
		} else {
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_g_free0 (_vala_path);
#line 434 "midori-uri.c"
		}
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		return result;
#line 438 "midori-uri.c"
	}
#line 32 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp25_ = hostname;
#line 32 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp26_ = g_strdup (_tmp25_);
#line 32 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	result = _tmp26_;
#line 32 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (path) {
#line 32 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		*path = _vala_path;
#line 450 "midori-uri.c"
	} else {
#line 32 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_free0 (_vala_path);
#line 454 "midori-uri.c"
	}
#line 32 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return result;
#line 458 "midori-uri.c"
}


gchar* midori_uri_parse (const gchar* uri, gchar** path) {
	gchar* _vala_path = NULL;
	gchar* result = NULL;
	gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar* _tmp6_ = NULL;
#line 35 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_return_val_if_fail (uri != NULL, NULL);
#line 36 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp1_ = uri;
#line 36 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp3_ = midori_uri_parse_hostname (_tmp1_, &_tmp2_);
#line 36 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_free0 (_vala_path);
#line 36 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_vala_path = _tmp2_;
#line 36 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp0_ = _tmp3_;
#line 36 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp0_ == NULL) {
#line 484 "midori-uri.c"
		const gchar* _tmp4_ = NULL;
		gchar* _tmp5_ = NULL;
#line 36 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp4_ = uri;
#line 36 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp5_ = g_strdup (_tmp4_);
#line 36 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_free0 (_tmp0_);
#line 36 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp0_ = _tmp5_;
#line 495 "midori-uri.c"
	}
#line 36 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp6_ = _tmp0_;
#line 36 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp0_ = NULL;
#line 36 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	result = _tmp6_;
#line 36 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_free0 (_tmp0_);
#line 36 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (path) {
#line 36 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		*path = _vala_path;
#line 509 "midori-uri.c"
	} else {
#line 36 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_free0 (_vala_path);
#line 513 "midori-uri.c"
	}
#line 36 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return result;
#line 517 "midori-uri.c"
}


gchar* midori_uri_to_ascii (const gchar* uri) {
	gchar* result = NULL;
	gchar* proto = NULL;
	gboolean _tmp0_ = FALSE;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* path = NULL;
	gchar* _tmp11_ = NULL;
	const gchar* _tmp12_ = NULL;
	gchar* _tmp13_ = NULL;
	gchar* _tmp14_ = NULL;
	gchar* hostname = NULL;
	gchar* _tmp17_ = NULL;
	gchar* encoded = NULL;
	const gchar* _tmp18_ = NULL;
	gchar* _tmp19_ = NULL;
	const gchar* _tmp20_ = NULL;
	const gchar* _tmp33_ = NULL;
	gchar* _tmp34_ = NULL;
#line 38 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_return_val_if_fail (uri != NULL, NULL);
#line 40 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	proto = NULL;
#line 41 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp1_ = uri;
#line 41 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp2_ = g_utf8_strchr (_tmp1_, (gssize) (-1), (gunichar) '/');
#line 41 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp2_ != NULL) {
#line 550 "midori-uri.c"
		const gchar* _tmp3_ = NULL;
		const gchar* _tmp4_ = NULL;
#line 41 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp3_ = uri;
#line 41 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp4_ = g_utf8_strchr (_tmp3_, (gssize) (-1), (gunichar) ':');
#line 41 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp0_ = _tmp4_ != NULL;
#line 559 "midori-uri.c"
	} else {
#line 41 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp0_ = FALSE;
#line 563 "midori-uri.c"
	}
#line 41 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp0_) {
#line 567 "midori-uri.c"
		const gchar* _tmp5_ = NULL;
		gchar** _tmp6_ = NULL;
		gchar** _tmp7_ = NULL;
		gchar** _tmp8_ = NULL;
		gint _tmp8__length1 = 0;
		const gchar* _tmp9_ = NULL;
		gchar* _tmp10_ = NULL;
#line 42 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp5_ = uri;
#line 42 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp7_ = _tmp6_ = g_strsplit (_tmp5_, "://", 0);
#line 42 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp8_ = _tmp7_;
#line 42 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp8__length1 = _vala_array_length (_tmp6_);
#line 42 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp9_ = _tmp8_[0];
#line 42 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp10_ = g_strdup (_tmp9_);
#line 42 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_free0 (proto);
#line 42 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		proto = _tmp10_;
#line 42 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp8_ = (_vala_array_free (_tmp8_, _tmp8__length1, (GDestroyNotify) g_free), NULL);
#line 593 "midori-uri.c"
	}
#line 43 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	path = NULL;
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp12_ = uri;
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp14_ = midori_uri_parse_hostname (_tmp12_, &_tmp13_);
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_free0 (path);
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	path = _tmp13_;
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp11_ = _tmp14_;
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp11_ == NULL) {
#line 609 "midori-uri.c"
		const gchar* _tmp15_ = NULL;
		gchar* _tmp16_ = NULL;
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp15_ = uri;
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp16_ = g_strdup (_tmp15_);
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_free0 (_tmp11_);
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp11_ = _tmp16_;
#line 620 "midori-uri.c"
	}
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp17_ = _tmp11_;
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp11_ = NULL;
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	hostname = _tmp17_;
#line 45 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp18_ = hostname;
#line 45 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp19_ = g_hostname_to_ascii (_tmp18_);
#line 45 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	encoded = _tmp19_;
#line 46 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp20_ = encoded;
#line 46 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp20_ != NULL) {
#line 638 "midori-uri.c"
		const gchar* _tmp21_ = NULL;
		const gchar* _tmp22_ = NULL;
		const gchar* _tmp23_ = NULL;
		const gchar* _tmp24_ = NULL;
		gchar* _tmp25_ = NULL;
		gchar* _tmp26_ = NULL;
		const gchar* _tmp27_ = NULL;
		gchar* _tmp28_ = NULL;
		gchar* _tmp29_ = NULL;
		const gchar* _tmp30_ = NULL;
		gchar* _tmp31_ = NULL;
		gchar* _tmp32_ = NULL;
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp22_ = proto;
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp21_ = _tmp22_;
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (_tmp21_ == NULL) {
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp21_ = "";
#line 659 "midori-uri.c"
		}
#line 48 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp24_ = proto;
#line 48 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (_tmp24_ != NULL) {
#line 48 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp23_ = "://";
#line 667 "midori-uri.c"
		} else {
#line 48 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp23_ = "";
#line 671 "midori-uri.c"
		}
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp25_ = g_strconcat (_tmp21_, _tmp23_, NULL);
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp26_ = _tmp25_;
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp27_ = encoded;
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp28_ = g_strconcat (_tmp26_, _tmp27_, NULL);
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp29_ = _tmp28_;
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp30_ = path;
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp31_ = g_strconcat (_tmp29_, _tmp30_, NULL);
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp32_ = _tmp31_;
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_free0 (_tmp29_);
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_free0 (_tmp26_);
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		result = _tmp32_;
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_free0 (encoded);
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_free0 (hostname);
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_free0 (_tmp11_);
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_free0 (path);
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_free0 (proto);
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		return result;
#line 707 "midori-uri.c"
	}
#line 51 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp33_ = uri;
#line 51 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp34_ = g_strdup (_tmp33_);
#line 51 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	result = _tmp34_;
#line 51 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_free0 (encoded);
#line 51 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_free0 (hostname);
#line 51 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_free0 (_tmp11_);
#line 51 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_free0 (path);
#line 51 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_free0 (proto);
#line 51 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return result;
#line 727 "midori-uri.c"
}


gchar* midori_uri_get_base_domain (const gchar* uri) {
	gchar* result = NULL;
	const gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	GError * _inner_error_ = NULL;
#line 53 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_return_val_if_fail (uri != NULL, NULL);
#line 738 "midori-uri.c"
	{
		gchar* ascii = NULL;
		const gchar* _tmp0_ = NULL;
		gchar* _tmp1_ = NULL;
		const gchar* _tmp2_ = NULL;
		const gchar* _tmp3_ = NULL;
		gchar* _tmp4_ = NULL;
#line 56 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp0_ = uri;
#line 56 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp1_ = midori_uri_to_ascii (_tmp0_);
#line 56 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		ascii = _tmp1_;
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp3_ = soup_tld_get_base_domain (ascii, &_inner_error_);
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp2_ = _tmp3_;
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_g_free0 (ascii);
#line 760 "midori-uri.c"
			goto __catch6_g_error;
		}
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp4_ = g_strdup (_tmp2_);
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		result = _tmp4_;
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_free0 (ascii);
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		return result;
#line 771 "midori-uri.c"
	}
	goto __finally6;
	__catch6_g_error:
	{
		GError* _error_ = NULL;
#line 55 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_error_ = _inner_error_;
#line 55 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_inner_error_ = NULL;
#line 55 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_error_free0 (_error_);
#line 783 "midori-uri.c"
	}
	__finally6:
#line 55 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 55 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		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);
#line 55 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_clear_error (&_inner_error_);
#line 55 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		return NULL;
#line 794 "midori-uri.c"
	}
#line 62 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp5_ = uri;
#line 62 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp6_ = midori_uri_parse_hostname (_tmp5_, NULL);
#line 62 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	result = _tmp6_;
#line 62 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return result;
#line 804 "midori-uri.c"
}


static guint8* string_get_data (const gchar* self, int* result_length1) {
	guint8* result;
	guint8* res = NULL;
	gint res_length1 = 0;
	gint _res_size_ = 0;
	gint _tmp0_ = 0;
	gint _tmp1_ = 0;
	gint _tmp2_ = 0;
	guint8* _tmp3_ = NULL;
	gint _tmp3__length1 = 0;
	guint8* _tmp4_ = NULL;
	gint _tmp4__length1 = 0;
#line 1300 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1301 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	res = (guint8*) self;
#line 1301 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	res_length1 = -1;
#line 1301 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_res_size_ = res_length1;
#line 1302 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp0_ = strlen (self);
#line 1302 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp1_ = _tmp0_;
#line 1302 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	res_length1 = (gint) _tmp1_;
#line 1302 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp2_ = res_length1;
#line 1303 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp3_ = res;
#line 1303 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp3__length1 = res_length1;
#line 1303 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp4_ = _tmp3_;
#line 1303 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp4__length1 = _tmp3__length1;
#line 1303 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	if (result_length1) {
#line 1303 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		*result_length1 = _tmp4__length1;
#line 848 "midori-uri.c"
	}
#line 1303 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	result = _tmp4_;
#line 1303 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	return result;
#line 854 "midori-uri.c"
}


static guint8* _vala_array_dup2 (guint8* self, int length) {
#line 70 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return g_memdup (self, length * sizeof (guint8));
#line 861 "midori-uri.c"
}


gchar* midori_uri_unescape (const gchar* uri_str) {
	gchar* result = NULL;
	gsize len = 0UL;
	const gchar* _tmp0_ = NULL;
	gint _tmp1_ = 0;
	gint _tmp2_ = 0;
	guint8* uri = NULL;
	const gchar* _tmp3_ = NULL;
	guint8* _tmp4_ = NULL;
	gint _tmp4__length1 = 0;
	guint8* _tmp5_ = NULL;
	gint _tmp5__length1 = 0;
	guint8* _tmp6_ = NULL;
	gint _tmp6__length1 = 0;
	gint uri_length1 = 0;
	gint _uri_size_ = 0;
	GString* escaped = NULL;
	GString* _tmp7_ = NULL;
	GString* _tmp45_ = NULL;
	const gchar* _tmp46_ = NULL;
	gchar* _tmp47_ = NULL;
#line 65 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_return_val_if_fail (uri_str != NULL, NULL);
#line 69 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp0_ = uri_str;
#line 69 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp1_ = strlen (_tmp0_);
#line 69 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp2_ = _tmp1_;
#line 69 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	len = (gsize) _tmp2_;
#line 70 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp3_ = uri_str;
#line 70 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp4_ = string_get_data (_tmp3_, &_tmp4__length1);
#line 70 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp5_ = _tmp4_;
#line 70 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp5__length1 = _tmp4__length1;
#line 70 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp6_ = (_tmp5_ != NULL) ? _vala_array_dup2 (_tmp5_, _tmp5__length1) : ((gpointer) _tmp5_);
#line 70 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp6__length1 = _tmp5__length1;
#line 70 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	uri = _tmp6_;
#line 70 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	uri_length1 = _tmp6__length1;
#line 70 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_uri_size_ = uri_length1;
#line 71 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp7_ = g_string_new ("");
#line 71 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	escaped = _tmp7_;
#line 918 "midori-uri.c"
	{
		gint i = 0;
#line 72 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		i = 0;
#line 923 "midori-uri.c"
		{
			gboolean _tmp8_ = FALSE;
#line 72 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp8_ = TRUE;
#line 72 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			while (TRUE) {
#line 930 "midori-uri.c"
				gint _tmp10_ = 0;
				gsize _tmp11_ = 0UL;
				guint8 c = 0U;
				guint8* _tmp12_ = NULL;
				gint _tmp12__length1 = 0;
				gint _tmp13_ = 0;
				guint8 _tmp14_ = 0U;
				guint8 _tmp15_ = 0U;
				GString* _tmp43_ = NULL;
				guint8 _tmp44_ = 0U;
#line 72 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				if (!_tmp8_) {
#line 943 "midori-uri.c"
					gint _tmp9_ = 0;
#line 72 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
					_tmp9_ = i;
#line 72 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
					i = _tmp9_ + 1;
#line 949 "midori-uri.c"
				}
#line 72 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp8_ = FALSE;
#line 72 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp10_ = i;
#line 72 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp11_ = len;
#line 72 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				if (!(((gsize) _tmp10_) < _tmp11_)) {
#line 72 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
					break;
#line 961 "midori-uri.c"
				}
#line 74 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp12_ = uri;
#line 74 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp12__length1 = uri_length1;
#line 74 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp13_ = i;
#line 74 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp14_ = _tmp12_[_tmp13_];
#line 74 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				c = _tmp14_;
#line 75 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp15_ = c;
#line 75 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				if (_tmp15_ == ((guint8) '%')) {
#line 977 "midori-uri.c"
					gint _tmp16_ = 0;
					gsize _tmp17_ = 0UL;
#line 78 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
					_tmp16_ = i;
#line 78 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
					_tmp17_ = len;
#line 78 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
					if (((gsize) (_tmp16_ + 2)) < _tmp17_) {
#line 986 "midori-uri.c"
						gint x1 = 0;
						guint8* _tmp18_ = NULL;
						gint _tmp18__length1 = 0;
						gint _tmp19_ = 0;
						guint8 _tmp20_ = 0U;
						gint _tmp21_ = 0;
						gint x2 = 0;
						guint8* _tmp22_ = NULL;
						gint _tmp22__length1 = 0;
						gint _tmp23_ = 0;
						guint8 _tmp24_ = 0U;
						gint _tmp25_ = 0;
						gint x = 0;
						gint _tmp26_ = 0;
						gint _tmp27_ = 0;
						gboolean _tmp28_ = FALSE;
						gboolean _tmp29_ = FALSE;
						gboolean _tmp30_ = FALSE;
						gboolean _tmp31_ = FALSE;
						gboolean _tmp32_ = FALSE;
						gboolean _tmp33_ = FALSE;
						gint _tmp34_ = 0;
#line 80 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
						_tmp18_ = uri;
#line 80 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
						_tmp18__length1 = uri_length1;
#line 80 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
						_tmp19_ = i;
#line 80 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
						_tmp20_ = _tmp18_[_tmp19_ + 1];
#line 80 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
						_tmp21_ = g_ascii_xdigit_value ((gchar) _tmp20_);
#line 80 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
						x1 = _tmp21_;
#line 81 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
						_tmp22_ = uri;
#line 81 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
						_tmp22__length1 = uri_length1;
#line 81 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
						_tmp23_ = i;
#line 81 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
						_tmp24_ = _tmp22_[_tmp23_ + 2];
#line 81 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
						_tmp25_ = g_ascii_xdigit_value ((gchar) _tmp24_);
#line 81 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
						x2 = _tmp25_;
#line 82 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
						_tmp26_ = x1;
#line 82 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
						_tmp27_ = x2;
#line 82 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
						x = (_tmp26_ << 4) + _tmp27_;
#line 84 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
						_tmp34_ = x1;
#line 84 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
						if (_tmp34_ >= 0) {
#line 1043 "midori-uri.c"
							gint _tmp35_ = 0;
#line 84 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
							_tmp35_ = x2;
#line 84 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
							_tmp33_ = _tmp35_ >= 0;
#line 1049 "midori-uri.c"
						} else {
#line 84 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
							_tmp33_ = FALSE;
#line 1053 "midori-uri.c"
						}
#line 84 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
						if (_tmp33_) {
#line 1057 "midori-uri.c"
							gint _tmp36_ = 0;
#line 84 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
							_tmp36_ = x;
#line 84 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
							_tmp32_ = _tmp36_ != ((gint) '\0');
#line 1063 "midori-uri.c"
						} else {
#line 84 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
							_tmp32_ = FALSE;
#line 1067 "midori-uri.c"
						}
#line 84 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
						if (_tmp32_) {
#line 1071 "midori-uri.c"
							gint _tmp37_ = 0;
#line 84 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
							_tmp37_ = x;
#line 84 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
							_tmp31_ = _tmp37_ != ((gint) '\n');
#line 1077 "midori-uri.c"
						} else {
#line 84 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
							_tmp31_ = FALSE;
#line 1081 "midori-uri.c"
						}
#line 84 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
						if (_tmp31_) {
#line 1085 "midori-uri.c"
							gint _tmp38_ = 0;
#line 84 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
							_tmp38_ = x;
#line 84 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
							_tmp30_ = _tmp38_ != ((gint) '\r');
#line 1091 "midori-uri.c"
						} else {
#line 84 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
							_tmp30_ = FALSE;
#line 1095 "midori-uri.c"
						}
#line 84 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
						if (_tmp30_) {
#line 1099 "midori-uri.c"
							gint _tmp39_ = 0;
#line 84 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
							_tmp39_ = x;
#line 84 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
							_tmp29_ = _tmp39_ != ((gint) ' ');
#line 1105 "midori-uri.c"
						} else {
#line 84 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
							_tmp29_ = FALSE;
#line 1109 "midori-uri.c"
						}
#line 84 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
						if (_tmp29_) {
#line 1113 "midori-uri.c"
							gint _tmp40_ = 0;
#line 84 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
							_tmp40_ = x;
#line 84 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
							_tmp28_ = _tmp40_ != ((gint) '%');
#line 1119 "midori-uri.c"
						} else {
#line 84 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
							_tmp28_ = FALSE;
#line 1123 "midori-uri.c"
						}
#line 84 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
						if (_tmp28_) {
#line 1127 "midori-uri.c"
							gint _tmp41_ = 0;
							gint _tmp42_ = 0;
#line 87 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
							_tmp41_ = x;
#line 87 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
							c = (guint8) _tmp41_;
#line 88 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
							_tmp42_ = i;
#line 88 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
							i = _tmp42_ + 2;
#line 1138 "midori-uri.c"
						}
					}
				}
#line 92 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp43_ = escaped;
#line 92 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp44_ = c;
#line 92 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				g_string_append_c (_tmp43_, (gchar) _tmp44_);
#line 1148 "midori-uri.c"
			}
		}
	}
#line 94 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp45_ = escaped;
#line 94 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp46_ = _tmp45_->str;
#line 94 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp47_ = g_strdup (_tmp46_);
#line 94 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	result = _tmp47_;
#line 94 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_string_free0 (escaped);
#line 94 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	uri = (g_free (uri), NULL);
#line 94 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return result;
#line 1166 "midori-uri.c"
}


static glong string_strnlen (gchar* str, glong maxlen) {
	glong result = 0L;
	gchar* end = NULL;
	gchar* _tmp0_ = NULL;
	glong _tmp1_ = 0L;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 1197 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp0_ = str;
#line 1197 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp1_ = maxlen;
#line 1197 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_);
#line 1197 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	end = _tmp2_;
#line 1198 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp3_ = end;
#line 1198 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	if (_tmp3_ == NULL) {
#line 1189 "midori-uri.c"
		glong _tmp4_ = 0L;
#line 1199 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp4_ = maxlen;
#line 1199 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		result = _tmp4_;
#line 1199 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		return result;
#line 1197 "midori-uri.c"
	} else {
		gchar* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
#line 1201 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp5_ = end;
#line 1201 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp6_ = str;
#line 1201 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		result = (glong) (_tmp5_ - _tmp6_);
#line 1201 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		return result;
#line 1209 "midori-uri.c"
	}
}


static gchar* string_substring (const gchar* self, glong offset, glong len) {
	gchar* result = NULL;
	glong string_length = 0L;
	gboolean _tmp0_ = FALSE;
	glong _tmp1_ = 0L;
	glong _tmp8_ = 0L;
	glong _tmp14_ = 0L;
	glong _tmp17_ = 0L;
	glong _tmp18_ = 0L;
	glong _tmp19_ = 0L;
	glong _tmp20_ = 0L;
	glong _tmp21_ = 0L;
	gchar* _tmp22_ = NULL;
#line 1208 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1210 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp1_ = offset;
#line 1210 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	if (_tmp1_ >= ((glong) 0)) {
#line 1233 "midori-uri.c"
		glong _tmp2_ = 0L;
#line 1210 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp2_ = len;
#line 1210 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp0_ = _tmp2_ >= ((glong) 0);
#line 1239 "midori-uri.c"
	} else {
#line 1210 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp0_ = FALSE;
#line 1243 "midori-uri.c"
	}
#line 1210 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	if (_tmp0_) {
#line 1247 "midori-uri.c"
		glong _tmp3_ = 0L;
		glong _tmp4_ = 0L;
		glong _tmp5_ = 0L;
#line 1212 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp3_ = offset;
#line 1212 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp4_ = len;
#line 1212 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_);
#line 1212 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		string_length = _tmp5_;
#line 1259 "midori-uri.c"
	} else {
		gint _tmp6_ = 0;
		gint _tmp7_ = 0;
#line 1214 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp6_ = strlen (self);
#line 1214 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp7_ = _tmp6_;
#line 1214 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		string_length = (glong) _tmp7_;
#line 1269 "midori-uri.c"
	}
#line 1217 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp8_ = offset;
#line 1217 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	if (_tmp8_ < ((glong) 0)) {
#line 1275 "midori-uri.c"
		glong _tmp9_ = 0L;
		glong _tmp10_ = 0L;
		glong _tmp11_ = 0L;
#line 1218 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp9_ = string_length;
#line 1218 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp10_ = offset;
#line 1218 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		offset = _tmp9_ + _tmp10_;
#line 1219 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp11_ = offset;
#line 1219 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL);
#line 1289 "midori-uri.c"
	} else {
		glong _tmp12_ = 0L;
		glong _tmp13_ = 0L;
#line 1221 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp12_ = offset;
#line 1221 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp13_ = string_length;
#line 1221 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL);
#line 1299 "midori-uri.c"
	}
#line 1223 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp14_ = len;
#line 1223 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	if (_tmp14_ < ((glong) 0)) {
#line 1305 "midori-uri.c"
		glong _tmp15_ = 0L;
		glong _tmp16_ = 0L;
#line 1224 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp15_ = string_length;
#line 1224 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp16_ = offset;
#line 1224 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		len = _tmp15_ - _tmp16_;
#line 1314 "midori-uri.c"
	}
#line 1226 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp17_ = offset;
#line 1226 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp18_ = len;
#line 1226 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp19_ = string_length;
#line 1226 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL);
#line 1227 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp20_ = offset;
#line 1227 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp21_ = len;
#line 1227 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_);
#line 1227 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	result = _tmp22_;
#line 1227 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	return result;
#line 1334 "midori-uri.c"
}


gchar* midori_uri_strip_prefix_for_display (const gchar* uri) {
	gchar* result = NULL;
	gboolean _tmp0_ = FALSE;
	const gchar* _tmp1_ = NULL;
	gboolean _tmp2_ = FALSE;
	const gchar* _tmp19_ = NULL;
	gchar* _tmp20_ = NULL;
#line 98 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_return_val_if_fail (uri != NULL, NULL);
#line 99 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp1_ = uri;
#line 99 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp2_ = midori_uri_is_http (_tmp1_);
#line 99 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp2_) {
#line 99 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp0_ = TRUE;
#line 1355 "midori-uri.c"
	} else {
		const gchar* _tmp3_ = NULL;
		gboolean _tmp4_ = FALSE;
#line 99 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp3_ = uri;
#line 99 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp4_ = g_str_has_prefix (_tmp3_, "file://");
#line 99 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp0_ = _tmp4_;
#line 1365 "midori-uri.c"
	}
#line 99 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp0_) {
#line 1369 "midori-uri.c"
		gchar* stripped_uri = NULL;
		const gchar* _tmp5_ = NULL;
		gchar** _tmp6_ = NULL;
		gchar** _tmp7_ = NULL;
		gchar** _tmp8_ = NULL;
		gint _tmp8__length1 = 0;
		const gchar* _tmp9_ = NULL;
		gchar* _tmp10_ = NULL;
		gchar* _tmp11_ = NULL;
		gboolean _tmp12_ = FALSE;
		const gchar* _tmp13_ = NULL;
		gboolean _tmp14_ = FALSE;
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp5_ = uri;
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp7_ = _tmp6_ = g_strsplit (_tmp5_, "://", 0);
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp8_ = _tmp7_;
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp8__length1 = _vala_array_length (_tmp6_);
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp9_ = _tmp8_[1];
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp10_ = g_strdup (_tmp9_);
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp11_ = _tmp10_;
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp8_ = (_vala_array_free (_tmp8_, _tmp8__length1, (GDestroyNotify) g_free), NULL);
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		stripped_uri = _tmp11_;
#line 101 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp13_ = uri;
#line 101 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp14_ = midori_uri_is_http (_tmp13_);
#line 101 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (_tmp14_) {
#line 1406 "midori-uri.c"
			const gchar* _tmp15_ = NULL;
			gboolean _tmp16_ = FALSE;
#line 101 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp15_ = stripped_uri;
#line 101 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp16_ = g_str_has_prefix (_tmp15_, "www.");
#line 101 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp12_ = _tmp16_;
#line 1415 "midori-uri.c"
		} else {
#line 101 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp12_ = FALSE;
#line 1419 "midori-uri.c"
		}
#line 101 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (_tmp12_) {
#line 1423 "midori-uri.c"
			const gchar* _tmp17_ = NULL;
			gchar* _tmp18_ = NULL;
#line 102 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp17_ = stripped_uri;
#line 102 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp18_ = string_substring (_tmp17_, (glong) 4, (glong) (-1));
#line 102 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			result = _tmp18_;
#line 102 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_g_free0 (stripped_uri);
#line 102 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			return result;
#line 1436 "midori-uri.c"
		}
#line 103 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		result = stripped_uri;
#line 103 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		return result;
#line 1442 "midori-uri.c"
	}
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp19_ = uri;
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp20_ = g_strdup (_tmp19_);
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	result = _tmp20_;
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return result;
#line 1452 "midori-uri.c"
}


static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) {
	gchar* result = NULL;
	GError * _inner_error_ = NULL;
#line 1282 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1282 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail (old != NULL, NULL);
#line 1282 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail (replacement != NULL, NULL);
#line 1465 "midori-uri.c"
	{
		GRegex* regex = NULL;
		const gchar* _tmp0_ = NULL;
		gchar* _tmp1_ = NULL;
		gchar* _tmp2_ = NULL;
		GRegex* _tmp3_ = NULL;
		GRegex* _tmp4_ = NULL;
		gchar* _tmp5_ = NULL;
		GRegex* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp0_ = old;
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp1_ = g_regex_escape_string (_tmp0_, -1);
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp2_ = _tmp1_;
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_);
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp4_ = _tmp3_;
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_g_free0 (_tmp2_);
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		regex = _tmp4_;
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			if (_inner_error_->domain == G_REGEX_ERROR) {
#line 1496 "midori-uri.c"
				goto __catch7_g_regex_error;
			}
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			g_clear_error (&_inner_error_);
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			return NULL;
#line 1505 "midori-uri.c"
		}
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp6_ = regex;
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp7_ = replacement;
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp8_ = g_regex_replace_literal (_tmp6_, self, (gssize) (-1), 0, _tmp7_, 0, &_inner_error_);
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp5_ = _tmp8_;
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			_g_regex_unref0 (regex);
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			if (_inner_error_->domain == G_REGEX_ERROR) {
#line 1521 "midori-uri.c"
				goto __catch7_g_regex_error;
			}
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			_g_regex_unref0 (regex);
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			g_clear_error (&_inner_error_);
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			return NULL;
#line 1532 "midori-uri.c"
		}
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp9_ = _tmp5_;
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp5_ = NULL;
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		result = _tmp9_;
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_g_free0 (_tmp5_);
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_g_regex_unref0 (regex);
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		return result;
#line 1546 "midori-uri.c"
	}
	goto __finally7;
	__catch7_g_regex_error:
	{
		GError* e = NULL;
#line 1283 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		e = _inner_error_;
#line 1283 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_inner_error_ = NULL;
#line 1287 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		g_assert_not_reached ();
#line 1283 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_g_error_free0 (e);
#line 1560 "midori-uri.c"
	}
	__finally7:
#line 1283 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1283 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		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);
#line 1283 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		g_clear_error (&_inner_error_);
#line 1283 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		return NULL;
#line 1571 "midori-uri.c"
	}
}


gchar* midori_uri_format_for_display (const gchar* uri) {
	gchar* result = NULL;
	gboolean _tmp0_ = FALSE;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp26_ = NULL;
	gchar* _tmp27_ = NULL;
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp1_ = uri;
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp1_ != NULL) {
#line 1586 "midori-uri.c"
		const gchar* _tmp2_ = NULL;
		gboolean _tmp3_ = FALSE;
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp2_ = uri;
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp3_ = g_str_has_prefix (_tmp2_, "http://");
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp0_ = _tmp3_;
#line 1595 "midori-uri.c"
	} else {
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp0_ = FALSE;
#line 1599 "midori-uri.c"
	}
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp0_) {
#line 1603 "midori-uri.c"
		gchar* unescaped = NULL;
		const gchar* _tmp4_ = NULL;
		gchar* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
		gchar* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		const gchar* _tmp9_ = NULL;
		gboolean _tmp10_ = FALSE;
		gchar* path = NULL;
		gchar* hostname = NULL;
		const gchar* _tmp13_ = NULL;
		gchar* _tmp14_ = NULL;
		gchar* _tmp15_ = NULL;
		const gchar* _tmp16_ = NULL;
#line 111 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp4_ = uri;
#line 111 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp5_ = midori_uri_unescape (_tmp4_);
#line 111 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp6_ = _tmp5_;
#line 111 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp7_ = string_replace (_tmp6_, " ", "%20");
#line 111 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp8_ = _tmp7_;
#line 111 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_free0 (_tmp6_);
#line 111 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		unescaped = _tmp8_;
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp9_ = unescaped;
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp10_ = g_utf8_validate (_tmp9_, (gssize) (-1), NULL);
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (!_tmp10_) {
#line 1638 "midori-uri.c"
			const gchar* _tmp11_ = NULL;
			gchar* _tmp12_ = NULL;
#line 113 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp11_ = uri;
#line 113 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp12_ = g_strdup (_tmp11_);
#line 113 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			result = _tmp12_;
#line 113 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_g_free0 (unescaped);
#line 113 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			return result;
#line 1651 "midori-uri.c"
		}
#line 115 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp13_ = unescaped;
#line 115 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp15_ = midori_uri_parse_hostname (_tmp13_, &_tmp14_);
#line 115 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_free0 (path);
#line 115 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		path = _tmp14_;
#line 115 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		hostname = _tmp15_;
#line 116 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp16_ = hostname;
#line 116 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (_tmp16_ != NULL) {
#line 1667 "midori-uri.c"
			gchar* decoded = NULL;
			const gchar* _tmp17_ = NULL;
			gchar* _tmp18_ = NULL;
			const gchar* _tmp19_ = NULL;
#line 117 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp17_ = hostname;
#line 117 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp18_ = g_hostname_to_unicode (_tmp17_);
#line 117 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			decoded = _tmp18_;
#line 118 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp19_ = decoded;
#line 118 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			if (_tmp19_ != NULL) {
#line 1682 "midori-uri.c"
				const gchar* _tmp20_ = NULL;
				gchar* _tmp21_ = NULL;
				gchar* _tmp22_ = NULL;
				const gchar* _tmp23_ = NULL;
				gchar* _tmp24_ = NULL;
				gchar* _tmp25_ = NULL;
#line 119 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp20_ = decoded;
#line 119 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp21_ = g_strconcat ("http://", _tmp20_, NULL);
#line 119 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp22_ = _tmp21_;
#line 119 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp23_ = path;
#line 119 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp24_ = g_strconcat (_tmp22_, _tmp23_, NULL);
#line 119 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp25_ = _tmp24_;
#line 119 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_g_free0 (_tmp22_);
#line 119 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				result = _tmp25_;
#line 119 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_g_free0 (decoded);
#line 119 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_g_free0 (hostname);
#line 119 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_g_free0 (path);
#line 119 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_g_free0 (unescaped);
#line 119 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				return result;
#line 1715 "midori-uri.c"
			}
#line 116 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_g_free0 (decoded);
#line 1719 "midori-uri.c"
		}
#line 121 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		result = unescaped;
#line 121 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_free0 (hostname);
#line 121 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_free0 (path);
#line 121 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		return result;
#line 1729 "midori-uri.c"
	}
#line 123 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp26_ = uri;
#line 123 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp27_ = g_strdup (_tmp26_);
#line 123 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	result = _tmp27_;
#line 123 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return result;
#line 1739 "midori-uri.c"
}


gchar* midori_uri_for_search (const gchar* uri, const gchar* keywords) {
	gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
	gchar* escaped = NULL;
	const gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	const gchar* _tmp8_ = NULL;
	const gchar* _tmp9_ = NULL;
	const gchar* _tmp13_ = NULL;
	const gchar* _tmp14_ = NULL;
	gchar* _tmp15_ = NULL;
#line 125 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_return_val_if_fail (keywords != NULL, NULL);
#line 129 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp0_ = uri;
#line 129 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp0_ == NULL) {
#line 1761 "midori-uri.c"
		const gchar* _tmp1_ = NULL;
		gchar* _tmp2_ = NULL;
#line 130 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp1_ = keywords;
#line 130 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp2_ = g_strdup (_tmp1_);
#line 130 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		result = _tmp2_;
#line 130 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		return result;
#line 1772 "midori-uri.c"
	}
#line 131 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp3_ = keywords;
#line 131 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp4_ = g_uri_escape_string (_tmp3_, ":/", TRUE);
#line 131 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	escaped = _tmp4_;
#line 133 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp5_ = uri;
#line 133 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (g_strcmp0 (_tmp5_, "https://duckduckgo.com/?q=%s") == 0) {
#line 1784 "midori-uri.c"
		const gchar* _tmp6_ = NULL;
		gchar* _tmp7_ = NULL;
#line 134 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp6_ = escaped;
#line 134 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp7_ = g_strdup_printf ("https://duckduckgo.com/?q=%s&t=midori", _tmp6_);
#line 134 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		result = _tmp7_;
#line 134 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_free0 (escaped);
#line 134 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		return result;
#line 1797 "midori-uri.c"
	}
#line 135 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp8_ = uri;
#line 135 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp9_ = strstr (_tmp8_, "%s");
#line 135 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp9_ != NULL) {
#line 1805 "midori-uri.c"
		const gchar* _tmp10_ = NULL;
		const gchar* _tmp11_ = NULL;
		gchar* _tmp12_ = NULL;
#line 136 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp10_ = uri;
#line 136 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp11_ = escaped;
#line 136 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp12_ = g_strdup_printf (_tmp10_, _tmp11_);
#line 136 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		result = _tmp12_;
#line 136 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_free0 (escaped);
#line 136 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		return result;
#line 1821 "midori-uri.c"
	}
#line 137 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp13_ = uri;
#line 137 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp14_ = escaped;
#line 137 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp15_ = g_strconcat (_tmp13_, _tmp14_, NULL);
#line 137 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	result = _tmp15_;
#line 137 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_free0 (escaped);
#line 137 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return result;
#line 1835 "midori-uri.c"
}


gboolean midori_uri_is_blank (const gchar* uri) {
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	const gchar* _tmp2_ = NULL;
#line 140 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp2_ = uri;
#line 140 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp2_ != NULL) {
#line 1848 "midori-uri.c"
		const gchar* _tmp3_ = NULL;
#line 140 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp3_ = uri;
#line 140 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp1_ = g_strcmp0 (_tmp3_, "") != 0;
#line 1854 "midori-uri.c"
	} else {
#line 140 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp1_ = FALSE;
#line 1858 "midori-uri.c"
	}
#line 140 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp1_) {
#line 1862 "midori-uri.c"
		const gchar* _tmp4_ = NULL;
		gboolean _tmp5_ = FALSE;
#line 140 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp4_ = uri;
#line 140 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp5_ = g_str_has_prefix (_tmp4_, "about:");
#line 140 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp0_ = !_tmp5_;
#line 1871 "midori-uri.c"
	} else {
#line 140 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp0_ = FALSE;
#line 1875 "midori-uri.c"
	}
#line 140 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	result = !_tmp0_;
#line 140 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return result;
#line 1881 "midori-uri.c"
}


gboolean midori_uri_is_http (const gchar* uri) {
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
	const gchar* _tmp1_ = NULL;
#line 143 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp1_ = uri;
#line 143 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp1_ != NULL) {
#line 1893 "midori-uri.c"
		gboolean _tmp2_ = FALSE;
		const gchar* _tmp3_ = NULL;
		gboolean _tmp4_ = FALSE;
#line 144 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp3_ = uri;
#line 144 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp4_ = g_str_has_prefix (_tmp3_, "http://");
#line 144 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (_tmp4_) {
#line 144 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp2_ = TRUE;
#line 1905 "midori-uri.c"
		} else {
			const gchar* _tmp5_ = NULL;
			gboolean _tmp6_ = FALSE;
#line 144 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp5_ = uri;
#line 144 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp6_ = g_str_has_prefix (_tmp5_, "https://");
#line 144 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp2_ = _tmp6_;
#line 1915 "midori-uri.c"
		}
#line 144 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp0_ = _tmp2_;
#line 1919 "midori-uri.c"
	} else {
#line 143 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp0_ = FALSE;
#line 1923 "midori-uri.c"
	}
#line 143 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	result = _tmp0_;
#line 143 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return result;
#line 1929 "midori-uri.c"
}


gboolean midori_uri_is_resource (const gchar* uri) {
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
	const gchar* _tmp1_ = NULL;
#line 147 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp1_ = uri;
#line 147 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp1_ != NULL) {
#line 1941 "midori-uri.c"
		gboolean _tmp2_ = FALSE;
		const gchar* _tmp3_ = NULL;
		gboolean _tmp4_ = FALSE;
#line 148 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp3_ = uri;
#line 148 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp4_ = midori_uri_is_http (_tmp3_);
#line 148 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (_tmp4_) {
#line 148 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp2_ = TRUE;
#line 1953 "midori-uri.c"
		} else {
			gboolean _tmp5_ = FALSE;
			const gchar* _tmp6_ = NULL;
			gboolean _tmp7_ = FALSE;
#line 149 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp6_ = uri;
#line 149 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp7_ = g_str_has_prefix (_tmp6_, "data:");
#line 149 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			if (_tmp7_) {
#line 1964 "midori-uri.c"
				const gchar* _tmp8_ = NULL;
				const gchar* _tmp9_ = NULL;
#line 149 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp8_ = uri;
#line 149 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp9_ = g_utf8_strchr (_tmp8_, (gssize) (-1), (gunichar) ';');
#line 149 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp5_ = _tmp9_ != NULL;
#line 1973 "midori-uri.c"
			} else {
#line 149 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp5_ = FALSE;
#line 1977 "midori-uri.c"
			}
#line 149 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp2_ = _tmp5_;
#line 1981 "midori-uri.c"
		}
#line 148 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp0_ = _tmp2_;
#line 1985 "midori-uri.c"
	} else {
#line 147 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp0_ = FALSE;
#line 1989 "midori-uri.c"
	}
#line 147 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	result = _tmp0_;
#line 147 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return result;
#line 1995 "midori-uri.c"
}


gboolean midori_uri_is_location (const gchar* uri) {
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
	const gchar* _tmp1_ = NULL;
#line 153 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp1_ = uri;
#line 153 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp1_ != NULL) {
#line 2007 "midori-uri.c"
		gboolean _tmp2_ = FALSE;
		gboolean _tmp3_ = FALSE;
		gboolean _tmp4_ = FALSE;
		gboolean _tmp5_ = FALSE;
		gboolean _tmp6_ = FALSE;
		gboolean _tmp7_ = FALSE;
		const gchar* _tmp8_ = NULL;
		const gchar* _tmp9_ = NULL;
#line 154 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp8_ = uri;
#line 154 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp9_ = strstr (_tmp8_, "://");
#line 154 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (_tmp9_ != NULL) {
#line 2022 "midori-uri.c"
			const gchar* _tmp10_ = NULL;
			const gchar* _tmp11_ = NULL;
#line 154 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp10_ = uri;
#line 154 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp11_ = g_utf8_strchr (_tmp10_, (gssize) (-1), (gunichar) ' ');
#line 154 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp7_ = _tmp11_ == NULL;
#line 2031 "midori-uri.c"
		} else {
#line 154 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp7_ = FALSE;
#line 2035 "midori-uri.c"
		}
#line 154 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (_tmp7_) {
#line 154 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp6_ = TRUE;
#line 2041 "midori-uri.c"
		} else {
			const gchar* _tmp12_ = NULL;
			gboolean _tmp13_ = FALSE;
#line 155 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp12_ = uri;
#line 155 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp13_ = midori_uri_is_http (_tmp12_);
#line 155 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp6_ = _tmp13_;
#line 2051 "midori-uri.c"
		}
#line 154 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (_tmp6_) {
#line 154 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp5_ = TRUE;
#line 2057 "midori-uri.c"
		} else {
			const gchar* _tmp14_ = NULL;
			gboolean _tmp15_ = FALSE;
#line 156 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp14_ = uri;
#line 156 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp15_ = g_str_has_prefix (_tmp14_, "about:");
#line 156 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp5_ = _tmp15_;
#line 2067 "midori-uri.c"
		}
#line 154 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (_tmp5_) {
#line 154 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp4_ = TRUE;
#line 2073 "midori-uri.c"
		} else {
			gboolean _tmp16_ = FALSE;
			const gchar* _tmp17_ = NULL;
			gboolean _tmp18_ = FALSE;
#line 157 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp17_ = uri;
#line 157 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp18_ = g_str_has_prefix (_tmp17_, "data:");
#line 157 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			if (_tmp18_) {
#line 2084 "midori-uri.c"
				const gchar* _tmp19_ = NULL;
				const gchar* _tmp20_ = NULL;
#line 157 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp19_ = uri;
#line 157 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp20_ = g_utf8_strchr (_tmp19_, (gssize) (-1), (gunichar) ';');
#line 157 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp16_ = _tmp20_ != NULL;
#line 2093 "midori-uri.c"
			} else {
#line 157 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp16_ = FALSE;
#line 2097 "midori-uri.c"
			}
#line 157 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp4_ = _tmp16_;
#line 2101 "midori-uri.c"
		}
#line 154 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (_tmp4_) {
#line 154 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp3_ = TRUE;
#line 2107 "midori-uri.c"
		} else {
			gboolean _tmp21_ = FALSE;
			const gchar* _tmp22_ = NULL;
			gboolean _tmp23_ = FALSE;
#line 158 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp22_ = uri;
#line 158 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp23_ = g_str_has_prefix (_tmp22_, "geo:");
#line 158 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			if (_tmp23_) {
#line 2118 "midori-uri.c"
				const gchar* _tmp24_ = NULL;
				const gchar* _tmp25_ = NULL;
#line 158 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp24_ = uri;
#line 158 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp25_ = g_utf8_strchr (_tmp24_, (gssize) (-1), (gunichar) ',');
#line 158 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp21_ = _tmp25_ != NULL;
#line 2127 "midori-uri.c"
			} else {
#line 158 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp21_ = FALSE;
#line 2131 "midori-uri.c"
			}
#line 158 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp3_ = _tmp21_;
#line 2135 "midori-uri.c"
		}
#line 154 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (_tmp3_) {
#line 154 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp2_ = TRUE;
#line 2141 "midori-uri.c"
		} else {
			const gchar* _tmp26_ = NULL;
			gboolean _tmp27_ = FALSE;
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp26_ = uri;
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp27_ = g_str_has_prefix (_tmp26_, "javascript:");
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp2_ = _tmp27_;
#line 2151 "midori-uri.c"
		}
#line 154 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp0_ = _tmp2_;
#line 2155 "midori-uri.c"
	} else {
#line 153 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp0_ = FALSE;
#line 2159 "midori-uri.c"
	}
#line 153 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	result = _tmp0_;
#line 153 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return result;
#line 2165 "midori-uri.c"
}


gboolean midori_uri_is_ip_address (const gchar* uri) {
	gboolean result = FALSE;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gboolean _tmp10_ = FALSE;
	gboolean _tmp11_ = FALSE;
	const gchar* _tmp12_ = NULL;
	gchar _tmp13_ = '\0';
	gboolean _tmp19_ = FALSE;
	gboolean _tmp20_ = FALSE;
	gboolean _tmp21_ = FALSE;
	gboolean _tmp22_ = FALSE;
	gboolean _tmp23_ = FALSE;
	const gchar* _tmp24_ = NULL;
	gchar _tmp25_ = '\0';
	gboolean _tmp26_ = FALSE;
#line 167 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp0_ = uri;
#line 167 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp0_ == NULL) {
#line 168 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		result = FALSE;
#line 168 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		return result;
#line 2194 "midori-uri.c"
	}
#line 170 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp1_ = uri;
#line 170 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp2_ = g_utf8_strchr (_tmp1_, (gssize) (-1), (gunichar) '@');
#line 170 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp2_ != NULL) {
#line 2202 "midori-uri.c"
		const gchar* _tmp3_ = NULL;
		gchar** _tmp4_ = NULL;
		gchar** _tmp5_ = NULL;
		gchar** _tmp6_ = NULL;
		gint _tmp6__length1 = 0;
		const gchar* _tmp7_ = NULL;
		gboolean _tmp8_ = FALSE;
		gboolean _tmp9_ = FALSE;
#line 171 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp3_ = uri;
#line 171 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp5_ = _tmp4_ = g_strsplit (_tmp3_, "@", 0);
#line 171 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp6_ = _tmp5_;
#line 171 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp6__length1 = _vala_array_length (_tmp4_);
#line 171 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp7_ = _tmp6_[1];
#line 171 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp8_ = midori_uri_is_ip_address (_tmp7_);
#line 171 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp9_ = _tmp8_;
#line 171 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp6_ = (_vala_array_free (_tmp6_, _tmp6__length1, (GDestroyNotify) g_free), NULL);
#line 171 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		result = _tmp9_;
#line 171 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		return result;
#line 2231 "midori-uri.c"
	}
#line 173 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp12_ = uri;
#line 173 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp13_ = string_get (_tmp12_, (glong) 0);
#line 173 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp13_ != '0') {
#line 2239 "midori-uri.c"
		const gchar* _tmp14_ = NULL;
		gchar _tmp15_ = '\0';
		gboolean _tmp16_ = FALSE;
#line 173 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp14_ = uri;
#line 173 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp15_ = string_get (_tmp14_, (glong) 0);
#line 173 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp16_ = g_ascii_isdigit (_tmp15_);
#line 173 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp11_ = _tmp16_;
#line 2251 "midori-uri.c"
	} else {
#line 173 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp11_ = FALSE;
#line 2255 "midori-uri.c"
	}
#line 173 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp11_) {
#line 2259 "midori-uri.c"
		const gchar* _tmp17_ = NULL;
		const gchar* _tmp18_ = NULL;
#line 173 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp17_ = uri;
#line 173 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp18_ = g_utf8_strchr (_tmp17_, (gssize) 4, (gunichar) '.');
#line 173 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp10_ = _tmp18_ != NULL;
#line 2268 "midori-uri.c"
	} else {
#line 173 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp10_ = FALSE;
#line 2272 "midori-uri.c"
	}
#line 173 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp10_) {
#line 174 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		result = TRUE;
#line 174 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		return result;
#line 2280 "midori-uri.c"
	}
#line 176 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp24_ = uri;
#line 176 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp25_ = string_get (_tmp24_, (glong) 0);
#line 176 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp26_ = g_ascii_isalnum (_tmp25_);
#line 176 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp26_) {
#line 2290 "midori-uri.c"
		const gchar* _tmp27_ = NULL;
		gchar _tmp28_ = '\0';
		gboolean _tmp29_ = FALSE;
#line 176 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp27_ = uri;
#line 176 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp28_ = string_get (_tmp27_, (glong) 1);
#line 176 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp29_ = g_ascii_isalnum (_tmp28_);
#line 176 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp23_ = _tmp29_;
#line 2302 "midori-uri.c"
	} else {
#line 176 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp23_ = FALSE;
#line 2306 "midori-uri.c"
	}
#line 176 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp23_) {
#line 2310 "midori-uri.c"
		const gchar* _tmp30_ = NULL;
		gchar _tmp31_ = '\0';
		gboolean _tmp32_ = FALSE;
#line 177 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp30_ = uri;
#line 177 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp31_ = string_get (_tmp30_, (glong) 2);
#line 177 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp32_ = g_ascii_isalnum (_tmp31_);
#line 177 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp22_ = _tmp32_;
#line 2322 "midori-uri.c"
	} else {
#line 176 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp22_ = FALSE;
#line 2326 "midori-uri.c"
	}
#line 176 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp22_) {
#line 2330 "midori-uri.c"
		const gchar* _tmp33_ = NULL;
		gchar _tmp34_ = '\0';
		gboolean _tmp35_ = FALSE;
#line 177 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp33_ = uri;
#line 177 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp34_ = string_get (_tmp33_, (glong) 3);
#line 177 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp35_ = g_ascii_isalnum (_tmp34_);
#line 177 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp21_ = _tmp35_;
#line 2342 "midori-uri.c"
	} else {
#line 176 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp21_ = FALSE;
#line 2346 "midori-uri.c"
	}
#line 176 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp21_) {
#line 2350 "midori-uri.c"
		const gchar* _tmp36_ = NULL;
		gchar _tmp37_ = '\0';
#line 177 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp36_ = uri;
#line 177 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp37_ = string_get (_tmp36_, (glong) 4);
#line 177 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp20_ = _tmp37_ == ':';
#line 2359 "midori-uri.c"
	} else {
#line 176 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp20_ = FALSE;
#line 2363 "midori-uri.c"
	}
#line 176 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp20_) {
#line 2367 "midori-uri.c"
		gboolean _tmp38_ = FALSE;
		const gchar* _tmp39_ = NULL;
		gchar _tmp40_ = '\0';
#line 178 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp39_ = uri;
#line 178 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp40_ = string_get (_tmp39_, (glong) 5);
#line 178 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (_tmp40_ == ':') {
#line 178 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp38_ = TRUE;
#line 2379 "midori-uri.c"
		} else {
			const gchar* _tmp41_ = NULL;
			gchar _tmp42_ = '\0';
			gboolean _tmp43_ = FALSE;
#line 178 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp41_ = uri;
#line 178 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp42_ = string_get (_tmp41_, (glong) 5);
#line 178 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp43_ = g_ascii_isalnum (_tmp42_);
#line 178 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp38_ = _tmp43_;
#line 2392 "midori-uri.c"
		}
#line 178 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp19_ = _tmp38_;
#line 2396 "midori-uri.c"
	} else {
#line 176 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp19_ = FALSE;
#line 2400 "midori-uri.c"
	}
#line 176 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp19_) {
#line 179 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		result = TRUE;
#line 179 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		return result;
#line 2408 "midori-uri.c"
	}
#line 180 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	result = FALSE;
#line 180 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return result;
#line 2414 "midori-uri.c"
}


gboolean midori_uri_is_valid (const gchar* uri) {
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	const gchar* _tmp2_ = NULL;
#line 183 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp2_ = uri;
#line 183 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp2_ != NULL) {
#line 2427 "midori-uri.c"
		const gchar* _tmp3_ = NULL;
		const gchar* _tmp4_ = NULL;
#line 184 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp3_ = uri;
#line 184 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp4_ = g_utf8_strchr (_tmp3_, (gssize) (-1), (gunichar) ' ');
#line 184 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp1_ = _tmp4_ == NULL;
#line 2436 "midori-uri.c"
	} else {
#line 183 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp1_ = FALSE;
#line 2440 "midori-uri.c"
	}
#line 183 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp1_) {
#line 2444 "midori-uri.c"
		gboolean _tmp5_ = FALSE;
		const gchar* _tmp6_ = NULL;
		gboolean _tmp7_ = FALSE;
#line 185 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp6_ = uri;
#line 185 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp7_ = midori_uri_is_location (_tmp6_);
#line 185 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (_tmp7_) {
#line 185 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp5_ = TRUE;
#line 2456 "midori-uri.c"
		} else {
			const gchar* _tmp8_ = NULL;
			const gchar* _tmp9_ = NULL;
#line 185 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp8_ = uri;
#line 185 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp9_ = g_utf8_strchr (_tmp8_, (gssize) (-1), (gunichar) '.');
#line 185 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp5_ = _tmp9_ != NULL;
#line 2466 "midori-uri.c"
		}
#line 185 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp0_ = _tmp5_;
#line 2470 "midori-uri.c"
	} else {
#line 183 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp0_ = FALSE;
#line 2474 "midori-uri.c"
	}
#line 183 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	result = _tmp0_;
#line 183 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return result;
#line 2480 "midori-uri.c"
}


gchar* midori_uri_get_folder (const gchar* uri) {
	gchar* result = NULL;
	GError * _inner_error_ = NULL;
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_return_val_if_fail (uri != NULL, NULL);
#line 2489 "midori-uri.c"
	{
		gchar* filename = NULL;
		const gchar* _tmp0_ = NULL;
		gchar* _tmp1_ = NULL;
		const gchar* _tmp2_ = NULL;
#line 191 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp0_ = uri;
#line 191 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp1_ = g_filename_from_uri (_tmp0_, NULL, &_inner_error_);
#line 191 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		filename = _tmp1_;
#line 191 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2503 "midori-uri.c"
			goto __catch8_g_error;
		}
#line 192 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp2_ = filename;
#line 192 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (_tmp2_ != NULL) {
#line 2510 "midori-uri.c"
			gchar* dirname = NULL;
			const gchar* _tmp3_ = NULL;
			gchar* _tmp4_ = NULL;
			gboolean _tmp5_ = FALSE;
			const gchar* _tmp6_ = NULL;
#line 193 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp3_ = filename;
#line 193 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp4_ = g_path_get_dirname (_tmp3_);
#line 193 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			dirname = _tmp4_;
#line 194 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_tmp6_ = dirname;
#line 194 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			if (_tmp6_ != NULL) {
#line 2526 "midori-uri.c"
				const gchar* _tmp7_ = NULL;
				gboolean _tmp8_ = FALSE;
#line 194 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp7_ = dirname;
#line 194 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp8_ = g_file_test (_tmp7_, G_FILE_TEST_IS_DIR);
#line 194 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp5_ = _tmp8_;
#line 2535 "midori-uri.c"
			} else {
#line 194 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_tmp5_ = FALSE;
#line 2539 "midori-uri.c"
			}
#line 194 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			if (_tmp5_) {
#line 195 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				result = dirname;
#line 195 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				_g_free0 (filename);
#line 195 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				return result;
#line 2549 "midori-uri.c"
			}
#line 192 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_g_free0 (dirname);
#line 2553 "midori-uri.c"
		}
#line 190 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_free0 (filename);
#line 2557 "midori-uri.c"
	}
	goto __finally8;
	__catch8_g_error:
	{
		GError* _error_ = NULL;
#line 190 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_error_ = _inner_error_;
#line 190 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_inner_error_ = NULL;
#line 190 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_error_free0 (_error_);
#line 2569 "midori-uri.c"
	}
	__finally8:
#line 190 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 190 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		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);
#line 190 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_clear_error (&_inner_error_);
#line 190 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		return NULL;
#line 2580 "midori-uri.c"
	}
#line 199 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	result = NULL;
#line 199 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return result;
#line 2586 "midori-uri.c"
}


GChecksumType midori_uri_get_fingerprint (const gchar* uri, gchar** checksum, gchar** label) {
	gchar* _vala_checksum = NULL;
	gchar* _vala_label = NULL;
	GChecksumType result = 0;
	const gchar* display = NULL;
	GChecksumType type = 0;
	const gchar* delimiter = NULL;
	const gchar* fragment = NULL;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	const gchar* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	const gchar* _tmp10_ = NULL;
	const gchar* _tmp11_ = NULL;
	gchar* _tmp17_ = NULL;
	const gchar* _tmp18_ = NULL;
	gchar* _tmp19_ = NULL;
#line 202 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_return_val_if_fail (uri != NULL, 0);
#line 206 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	display = NULL;
#line 207 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	type = (GChecksumType) G_MAXINT;
#line 209 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	delimiter = "#!md5!";
#line 210 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp0_ = uri;
#line 210 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp1_ = delimiter;
#line 210 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp2_ = strstr (_tmp0_, _tmp1_);
#line 210 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	fragment = _tmp2_;
#line 211 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp3_ = fragment;
#line 211 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp3_ != NULL) {
#line 2631 "midori-uri.c"
		const gchar* _tmp4_ = NULL;
#line 212 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp4_ = _ ("MD5-Checksum:");
#line 212 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		display = _tmp4_;
#line 213 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		type = G_CHECKSUM_MD5;
#line 2639 "midori-uri.c"
	}
#line 216 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	delimiter = "#!sha1!";
#line 217 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp5_ = uri;
#line 217 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp6_ = delimiter;
#line 217 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp7_ = strstr (_tmp5_, _tmp6_);
#line 217 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	fragment = _tmp7_;
#line 218 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp8_ = fragment;
#line 218 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp8_ != NULL) {
#line 2655 "midori-uri.c"
		const gchar* _tmp9_ = NULL;
#line 219 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp9_ = _ ("SHA1-Checksum:");
#line 219 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		display = _tmp9_;
#line 220 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		type = G_CHECKSUM_SHA1;
#line 2663 "midori-uri.c"
	}
#line 225 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp11_ = fragment;
#line 225 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp11_ != NULL) {
#line 2669 "midori-uri.c"
		const gchar* _tmp12_ = NULL;
		const gchar* _tmp13_ = NULL;
		gint _tmp14_ = 0;
		gint _tmp15_ = 0;
		const gchar* _tmp16_ = NULL;
#line 225 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp12_ = fragment;
#line 225 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp13_ = delimiter;
#line 225 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp14_ = strlen (_tmp13_);
#line 225 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp15_ = _tmp14_;
#line 225 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp16_ = string_offset (_tmp12_, (glong) _tmp15_);
#line 225 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp10_ = _tmp16_;
#line 2687 "midori-uri.c"
	} else {
#line 225 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp10_ = NULL;
#line 2691 "midori-uri.c"
	}
#line 225 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp17_ = g_strdup (_tmp10_);
#line 225 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_free0 (_vala_checksum);
#line 225 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_vala_checksum = _tmp17_;
#line 226 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp18_ = display;
#line 226 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp19_ = g_strdup (_tmp18_);
#line 226 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_free0 (_vala_label);
#line 226 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_vala_label = _tmp19_;
#line 227 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	result = type;
#line 227 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (checksum) {
#line 227 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		*checksum = _vala_checksum;
#line 2713 "midori-uri.c"
	} else {
#line 227 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_free0 (_vala_checksum);
#line 2717 "midori-uri.c"
	}
#line 227 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (label) {
#line 227 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		*label = _vala_label;
#line 2723 "midori-uri.c"
	} else {
#line 227 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_free0 (_vala_label);
#line 2727 "midori-uri.c"
	}
#line 227 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return result;
#line 2731 "midori-uri.c"
}


gboolean midori_uri_recursive_fork_protection (const gchar* uri, gboolean set_uri) {
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
	const gchar* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_return_val_if_fail (uri != NULL, FALSE);
#line 240 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp0_ = set_uri;
#line 240 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp0_) {
#line 2746 "midori-uri.c"
		const gchar* _tmp1_ = NULL;
		gchar* _tmp2_ = NULL;
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp1_ = uri;
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp2_ = g_strdup (_tmp1_);
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_free0 (midori_uri_fork_uri);
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		midori_uri_fork_uri = _tmp2_;
#line 2757 "midori-uri.c"
	}
#line 242 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp3_ = midori_uri_fork_uri;
#line 242 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp4_ = uri;
#line 242 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	result = g_strcmp0 (_tmp3_, _tmp4_) != 0;
#line 242 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return result;
#line 2767 "midori-uri.c"
}


static void midori_uri_get_icon_data_free (gpointer _data) {
	MidoriUriGetIconData* _data_;
	_data_ = _data;
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_free0 (_data_->uri);
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_object_unref0 (_data_->cancellable);
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_object_unref0 (_data_->result);
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_slice_free (MidoriUriGetIconData, _data_);
#line 2782 "midori-uri.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return self ? g_object_ref (self) : NULL;
#line 2789 "midori-uri.c"
}


void midori_uri_get_icon (const gchar* uri, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	MidoriUriGetIconData* _data_;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	GCancellable* _tmp2_ = NULL;
	GCancellable* _tmp3_ = NULL;
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_ = g_slice_new0 (MidoriUriGetIconData);
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_async_result = g_simple_async_result_new (NULL, _callback_, _user_data_, midori_uri_get_icon);
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, midori_uri_get_icon_data_free);
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp0_ = uri;
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_free0 (_data_->uri);
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->uri = _tmp1_;
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp2_ = cancellable;
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_object_unref0 (_data_->cancellable);
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->cancellable = _tmp3_;
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	midori_uri_get_icon_co (_data_);
#line 2823 "midori-uri.c"
}


GIcon* midori_uri_get_icon_finish (GAsyncResult* _res_, GError** error) {
	GIcon* result;
	MidoriUriGetIconData* _data_;
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		return NULL;
#line 2834 "midori-uri.c"
	}
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	result = _data_->result;
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->result = NULL;
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return result;
#line 2844 "midori-uri.c"
}


/**
         * Returns a Glib.Icon for the given @uri.
         *
         * Since: 0.5.8
         **/
static void midori_uri_get_icon_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	MidoriUriGetIconData* _data_;
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_ = _user_data_;
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_source_object_ = source_object;
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_res_ = _res_;
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	midori_uri_get_icon_co (_data_);
#line 2863 "midori-uri.c"
}


static gboolean midori_uri_get_icon_co (MidoriUriGetIconData* _data_) {
#line 250 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	switch (_data_->_state_) {
#line 250 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		case 0:
#line 2872 "midori-uri.c"
		goto _state_0;
#line 250 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		case 1:
#line 2876 "midori-uri.c"
		goto _state_1;
		default:
#line 250 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_assert_not_reached ();
#line 2881 "midori-uri.c"
	}
	_state_0:
#line 257 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_tmp0_ = NULL;
#line 257 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_tmp0_ = webkit_get_favicon_database ();
#line 257 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_tmp1_ = NULL;
#line 257 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_tmp1_ = _g_object_ref0 (_data_->_tmp0_);
#line 257 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->database = _data_->_tmp1_;
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_tmp2_ = NULL;
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_tmp2_ = _data_->uri;
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_state_ = 1;
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	webkit_favicon_database_get_favicon_pixbuf (_data_->database, _data_->_tmp2_, (guint) 0, (guint) 0, NULL, midori_uri_get_icon_ready, _data_);
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return FALSE;
#line 2904 "midori-uri.c"
	_state_1:
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_tmp3_ = NULL;
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_tmp3_ = webkit_favicon_database_get_favicon_pixbuf_finish (_data_->database, _data_->_res_, &_data_->_inner_error_);
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->pixbuf = _data_->_tmp3_;
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_error_free (_data_->_inner_error_);
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_object_unref0 (_data_->database);
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (_data_->_state_ == 0) {
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2924 "midori-uri.c"
		} else {
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 2928 "midori-uri.c"
		}
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_object_unref (_data_->_async_result);
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		return FALSE;
#line 2934 "midori-uri.c"
	}
#line 261 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_tmp4_ = NULL;
#line 261 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_data_->pixbuf, G_TYPE_ICON) ? ((GIcon*) _data_->pixbuf) : NULL);
#line 261 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->result = _data_->_tmp4_;
#line 261 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_object_unref0 (_data_->pixbuf);
#line 261 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_object_unref0 (_data_->database);
#line 261 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_data_->_state_ == 0) {
#line 261 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2950 "midori-uri.c"
	} else {
#line 261 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2954 "midori-uri.c"
	}
#line 261 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_object_unref (_data_->_async_result);
#line 261 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return FALSE;
#line 250 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_object_unref0 (_data_->pixbuf);
#line 250 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_object_unref0 (_data_->database);
#line 250 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_data_->_state_ == 0) {
#line 250 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2968 "midori-uri.c"
	} else {
#line 250 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2972 "midori-uri.c"
	}
#line 250 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_object_unref (_data_->_async_result);
#line 250 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return FALSE;
#line 2978 "midori-uri.c"
}


static void midori_uri_get_icon_fallback_data_free (gpointer _data) {
	MidoriUriGetIconFallbackData* _data_;
	_data_ = _data;
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_free0 (_data_->uri);
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_object_unref0 (_data_->fallback);
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_object_unref0 (_data_->cancellable);
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_object_unref0 (_data_->result);
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_slice_free (MidoriUriGetIconFallbackData, _data_);
#line 2995 "midori-uri.c"
}


void midori_uri_get_icon_fallback (const gchar* uri, GIcon* fallback, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	MidoriUriGetIconFallbackData* _data_;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	GIcon* _tmp2_ = NULL;
	GIcon* _tmp3_ = NULL;
	GCancellable* _tmp4_ = NULL;
	GCancellable* _tmp5_ = NULL;
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_ = g_slice_new0 (MidoriUriGetIconFallbackData);
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_async_result = g_simple_async_result_new (NULL, _callback_, _user_data_, midori_uri_get_icon_fallback);
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, midori_uri_get_icon_fallback_data_free);
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp0_ = uri;
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_free0 (_data_->uri);
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->uri = _tmp1_;
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp2_ = fallback;
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_object_unref0 (_data_->fallback);
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->fallback = _tmp3_;
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp4_ = cancellable;
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp5_ = _g_object_ref0 (_tmp4_);
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_object_unref0 (_data_->cancellable);
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->cancellable = _tmp5_;
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	midori_uri_get_icon_fallback_co (_data_);
#line 3039 "midori-uri.c"
}


GIcon* midori_uri_get_icon_fallback_finish (GAsyncResult* _res_) {
	GIcon* result;
	MidoriUriGetIconFallbackData* _data_;
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	result = _data_->result;
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->result = NULL;
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return result;
#line 3054 "midori-uri.c"
}


/**
         * Returns a Glib.Icon for the given @uri or falls back to @fallback.
         *
         * Since: 0.5.8
         **/
static void midori_uri_get_icon_fallback_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	MidoriUriGetIconFallbackData* _data_;
#line 271 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_ = _user_data_;
#line 271 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_source_object_ = source_object;
#line 271 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_res_ = _res_;
#line 271 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	midori_uri_get_icon_fallback_co (_data_);
#line 3073 "midori-uri.c"
}


static gboolean midori_uri_get_icon_fallback_co (MidoriUriGetIconFallbackData* _data_) {
#line 269 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	switch (_data_->_state_) {
#line 269 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		case 0:
#line 3082 "midori-uri.c"
		goto _state_0;
#line 269 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		case 1:
#line 3086 "midori-uri.c"
		goto _state_1;
		default:
#line 269 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_assert_not_reached ();
#line 3091 "midori-uri.c"
	}
	_state_0:
	{
#line 271 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp1_ = NULL;
#line 271 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp1_ = _data_->uri;
#line 271 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp2_ = NULL;
#line 271 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp2_ = _data_->cancellable;
#line 271 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_state_ = 1;
#line 271 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		midori_uri_get_icon (_data_->_tmp1_, _data_->_tmp2_, midori_uri_get_icon_fallback_ready, _data_);
#line 271 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		return FALSE;
#line 3109 "midori-uri.c"
		_state_1:
#line 271 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp3_ = NULL;
#line 271 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp3_ = midori_uri_get_icon_finish (_data_->_res_, &_data_->_inner_error_);
#line 271 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp0_ = _data_->_tmp3_;
#line 271 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 3119 "midori-uri.c"
			goto __catch9_g_error;
		}
#line 271 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp4_ = NULL;
#line 271 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp4_ = _data_->_tmp0_;
#line 271 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp0_ = NULL;
#line 271 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->result = _data_->_tmp4_;
#line 271 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_object_unref0 (_data_->_tmp0_);
#line 271 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (_data_->_state_ == 0) {
#line 271 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 3136 "midori-uri.c"
		} else {
#line 271 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 3140 "midori-uri.c"
		}
#line 271 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_object_unref (_data_->_async_result);
#line 271 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		return FALSE;
#line 3146 "midori-uri.c"
	}
	goto __finally9;
	__catch9_g_error:
	{
#line 270 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_error_ = _data_->_inner_error_;
#line 270 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_inner_error_ = NULL;
#line 273 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp5_ = NULL;
#line 273 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp5_ = _data_->_error_;
#line 273 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp6_ = NULL;
#line 273 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp6_ = _data_->_tmp5_->message;
#line 273 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_debug ("midori-uri.vala:273: Icon failed to load: %s", _data_->_tmp6_);
#line 274 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp7_ = NULL;
#line 274 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp7_ = _data_->fallback;
#line 274 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp8_ = NULL;
#line 274 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp8_ = _g_object_ref0 (_data_->_tmp7_);
#line 274 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->result = _data_->_tmp8_;
#line 274 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_error_free0 (_data_->_error_);
#line 274 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (_data_->_state_ == 0) {
#line 274 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 3181 "midori-uri.c"
		} else {
#line 274 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 3185 "midori-uri.c"
		}
#line 274 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_object_unref (_data_->_async_result);
#line 274 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		return FALSE;
#line 3191 "midori-uri.c"
	}
	__finally9:
#line 270 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	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);
#line 270 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_clear_error (&_data_->_inner_error_);
#line 270 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return FALSE;
#line 269 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_data_->_state_ == 0) {
#line 269 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 3204 "midori-uri.c"
	} else {
#line 269 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 3208 "midori-uri.c"
	}
#line 269 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_object_unref (_data_->_async_result);
#line 269 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return FALSE;
#line 3214 "midori-uri.c"
}


MidoriURI* midori_uri_construct (GType object_type) {
	MidoriURI * self = NULL;
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	self = (MidoriURI*) g_object_new (object_type, NULL);
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return self;
#line 3224 "midori-uri.c"
}


MidoriURI* midori_uri_new (void) {
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return midori_uri_construct (MIDORI_TYPE_URI);
#line 3231 "midori-uri.c"
}


MidoriURIIcon* midori_uri_icon_construct (GType object_type, const gchar* website_uri, GIcon* fallback) {
	MidoriURIIcon * self = NULL;
	const gchar* _tmp0_ = NULL;
	GIcon* _tmp1_ = NULL;
#line 288 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_return_val_if_fail (website_uri != NULL, NULL);
#line 288 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	self = (MidoriURIIcon*) g_object_new (object_type, NULL);
#line 289 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp0_ = website_uri;
#line 289 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	midori_uri_icon_set_uri (self, _tmp0_);
#line 291 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp1_ = fallback;
#line 291 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	midori_uri_icon_set_fallback (self, _tmp1_);
#line 288 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return self;
#line 3253 "midori-uri.c"
}


MidoriURIIcon* midori_uri_icon_new (const gchar* website_uri, GIcon* fallback) {
#line 288 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return midori_uri_icon_construct (MIDORI_URI_TYPE_ICON, website_uri, fallback);
#line 3260 "midori-uri.c"
}


static gboolean midori_uri_icon_real_equal (GIcon* base, GIcon* other) {
	MidoriURIIcon * self;
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
	GIcon* _tmp1_ = NULL;
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	self = (MidoriURIIcon*) base;
#line 294 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp1_ = other;
#line 294 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, MIDORI_URI_TYPE_ICON)) {
#line 3275 "midori-uri.c"
		GIcon* _tmp2_ = NULL;
		const gchar* _tmp3_ = NULL;
		const gchar* _tmp4_ = NULL;
#line 294 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp2_ = other;
#line 294 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp3_ = (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, MIDORI_URI_TYPE_ICON) ? ((MidoriURIIcon*) _tmp2_) : NULL)->priv->_uri;
#line 294 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp4_ = self->priv->_uri;
#line 294 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp0_ = g_strcmp0 (_tmp3_, _tmp4_) == 0;
#line 3287 "midori-uri.c"
	} else {
#line 294 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp0_ = FALSE;
#line 3291 "midori-uri.c"
	}
#line 294 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	result = _tmp0_;
#line 294 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return result;
#line 3297 "midori-uri.c"
}


static guint midori_uri_icon_real_hash (GIcon* base) {
	MidoriURIIcon * self;
	guint result = 0U;
	const gchar* _tmp0_ = NULL;
	guint _tmp1_ = 0U;
#line 296 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	self = (MidoriURIIcon*) base;
#line 297 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp0_ = self->priv->_uri;
#line 297 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp1_ = g_str_hash (_tmp0_);
#line 297 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	result = _tmp1_;
#line 297 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return result;
#line 3316 "midori-uri.c"
}


static void __lambda4_ (MidoriURIIcon* self, GObject* obj, GAsyncResult* res) {
	GError * _inner_error_ = NULL;
#line 309 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_return_if_fail (res != NULL);
#line 3324 "midori-uri.c"
	{
		GInputStream* _tmp0_ = NULL;
		GAsyncResult* _tmp1_ = NULL;
		GInputStream* _tmp2_ = NULL;
		GInputStream* _tmp3_ = NULL;
#line 311 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp1_ = res;
#line 311 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp2_ = g_loadable_icon_load_finish ((GLoadableIcon*) self, _tmp1_, NULL, &_inner_error_);
#line 311 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp0_ = _tmp2_;
#line 311 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3338 "midori-uri.c"
			goto __catch10_g_error;
		}
#line 311 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp3_ = _tmp0_;
#line 311 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp0_ = NULL;
#line 311 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_object_unref0 (self->priv->stream);
#line 311 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		self->priv->stream = _tmp3_;
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_object_unref0 (_tmp0_);
#line 3351 "midori-uri.c"
	}
	goto __finally10;
	__catch10_g_error:
	{
		GError* _error_ = NULL;
		GError* _tmp4_ = NULL;
		const gchar* _tmp5_ = NULL;
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_error_ = _inner_error_;
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_inner_error_ = NULL;
#line 314 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp4_ = _error_;
#line 314 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp5_ = _tmp4_->message;
#line 314 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_debug ("midori-uri.vala:314: Icon failed to load: %s", _tmp5_);
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_error_free0 (_error_);
#line 3371 "midori-uri.c"
	}
	__finally10:
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		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);
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_clear_error (&_inner_error_);
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		return;
#line 3382 "midori-uri.c"
	}
}


static void ___lambda4__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 309 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	__lambda4_ ((MidoriURIIcon*) self, source_object, res);
#line 309 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_object_unref (self);
#line 3392 "midori-uri.c"
}


static GInputStream* midori_uri_icon_real_load (GLoadableIcon* base, gint size, gchar** type, GCancellable* cancellable, GError** error) {
	MidoriURIIcon * self;
	gchar* _vala_type = NULL;
	GInputStream* result = NULL;
	GInputStream* _tmp0_ = NULL;
	gint _tmp4_ = 0;
	GCancellable* _tmp5_ = NULL;
	GError* _tmp6_ = NULL;
	GError * _inner_error_ = NULL;
#line 299 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	self = (MidoriURIIcon*) base;
#line 305 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp0_ = self->priv->stream;
#line 305 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_tmp0_ != NULL) {
#line 3411 "midori-uri.c"
		gchar* _tmp1_ = NULL;
		GInputStream* _tmp2_ = NULL;
		GInputStream* _tmp3_ = NULL;
#line 306 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp1_ = g_strdup ("image/png");
#line 306 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_free0 (_vala_type);
#line 306 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_vala_type = _tmp1_;
#line 307 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp2_ = self->priv->stream;
#line 307 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_tmp3_ = _g_object_ref0 (_tmp2_);
#line 307 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		result = _tmp3_;
#line 307 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (type) {
#line 307 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			*type = _vala_type;
#line 3431 "midori-uri.c"
		} else {
#line 307 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_g_free0 (_vala_type);
#line 3435 "midori-uri.c"
		}
#line 307 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		return result;
#line 3439 "midori-uri.c"
	}
#line 309 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp4_ = size;
#line 309 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp5_ = cancellable;
#line 309 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_loadable_icon_load_async ((GLoadableIcon*) self, _tmp4_, _tmp5_, ___lambda4__gasync_ready_callback, g_object_ref (self));
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp6_ = g_error_new_literal (G_FILE_ERROR, G_FILE_ERROR_EXIST, "Triggered load - no data yet");
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_inner_error_ = _tmp6_;
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_propagate_error (error, _inner_error_);
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return NULL;
#line 3455 "midori-uri.c"
}


static void midori_uri_icon_real_load_async_data_free (gpointer _data) {
	MidoriUriIconLoadAsyncData* _data_;
	_data_ = _data;
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_object_unref0 (_data_->cancellable);
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_object_unref0 (_data_->result);
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_object_unref0 (_data_->self);
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_slice_free (MidoriUriIconLoadAsyncData, _data_);
#line 3470 "midori-uri.c"
}


static void midori_uri_icon_real_load_async (GLoadableIcon* base, gint size, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	MidoriURIIcon * self;
	MidoriUriIconLoadAsyncData* _data_;
	MidoriURIIcon* _tmp0_ = NULL;
	gint _tmp1_ = 0;
	GCancellable* _tmp2_ = NULL;
	GCancellable* _tmp3_ = NULL;
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	self = (MidoriURIIcon*) base;
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_ = g_slice_new0 (MidoriUriIconLoadAsyncData);
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, midori_uri_icon_real_load_async);
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, midori_uri_icon_real_load_async_data_free);
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->self = _tmp0_;
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp1_ = size;
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->size = _tmp1_;
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp2_ = cancellable;
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_object_unref0 (_data_->cancellable);
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->cancellable = _tmp3_;
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	midori_uri_icon_real_load_async_co (_data_);
#line 3507 "midori-uri.c"
}


static GInputStream* midori_uri_icon_real_load_finish (GLoadableIcon* base, GAsyncResult* _res_, gchar** type, GError** error) {
	GInputStream* result;
	MidoriUriIconLoadAsyncData* _data_;
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		return NULL;
#line 3518 "midori-uri.c"
	}
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (type) {
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		*type = _data_->type;
#line 3526 "midori-uri.c"
	} else {
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_free0 (_data_->type);
#line 3530 "midori-uri.c"
	}
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->type = NULL;
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	result = _data_->result;
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->result = NULL;
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return result;
#line 3540 "midori-uri.c"
}


static void midori_uri_icon_load_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	MidoriUriIconLoadAsyncData* _data_;
#line 324 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_ = _user_data_;
#line 324 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_source_object_ = source_object;
#line 324 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_res_ = _res_;
#line 324 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	midori_uri_icon_real_load_async_co (_data_);
#line 3554 "midori-uri.c"
}


static guint8* _vala_array_dup3 (guint8* self, int length) {
#line 330 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return g_memdup (self, length * sizeof (guint8));
#line 3561 "midori-uri.c"
}


static gboolean midori_uri_icon_real_load_async_co (MidoriUriIconLoadAsyncData* _data_) {
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	switch (_data_->_state_) {
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		case 0:
#line 3570 "midori-uri.c"
		goto _state_0;
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		case 1:
#line 3574 "midori-uri.c"
		goto _state_1;
		default:
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_assert_not_reached ();
#line 3579 "midori-uri.c"
	}
	_state_0:
#line 321 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_tmp0_ = NULL;
#line 321 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_tmp0_ = g_strdup ("image/png");
#line 321 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_free0 (_data_->type);
#line 321 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->type = _data_->_tmp0_;
#line 322 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_tmp1_ = NULL;
#line 322 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_tmp1_ = _data_->self->priv->stream;
#line 322 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_data_->_tmp1_ != NULL) {
#line 323 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp2_ = NULL;
#line 323 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp2_ = _data_->self->priv->stream;
#line 323 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp3_ = NULL;
#line 323 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp3_ = _g_object_ref0 (_data_->_tmp2_);
#line 323 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->result = _data_->_tmp3_;
#line 323 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (_data_->_state_ == 0) {
#line 323 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 3610 "midori-uri.c"
		} else {
#line 323 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 3614 "midori-uri.c"
		}
#line 323 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_object_unref (_data_->_async_result);
#line 323 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		return FALSE;
#line 3620 "midori-uri.c"
	}
#line 324 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_tmp4_ = NULL;
#line 324 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_tmp4_ = _data_->self->priv->_uri;
#line 324 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_tmp5_ = NULL;
#line 324 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_tmp5_ = _data_->cancellable;
#line 324 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_state_ = 1;
#line 324 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	midori_uri_get_icon (_data_->_tmp4_, _data_->_tmp5_, midori_uri_icon_load_async_ready, _data_);
#line 324 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return FALSE;
#line 3636 "midori-uri.c"
	_state_1:
#line 324 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_tmp6_ = NULL;
#line 324 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_tmp6_ = midori_uri_get_icon_finish (_data_->_res_, &_data_->_inner_error_);
#line 324 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->icon = _data_->_tmp6_;
#line 324 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 324 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 324 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_error_free (_data_->_inner_error_);
#line 324 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (_data_->_state_ == 0) {
#line 324 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 3654 "midori-uri.c"
		} else {
#line 324 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 3658 "midori-uri.c"
		}
#line 324 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_object_unref (_data_->_async_result);
#line 324 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		return FALSE;
#line 3664 "midori-uri.c"
	}
#line 325 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_tmp8_ = NULL;
#line 325 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_tmp8_ = _data_->icon;
#line 325 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_data_->_tmp8_ != NULL) {
#line 325 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp9_ = NULL;
#line 325 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp9_ = _data_->icon;
#line 325 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp7_ = G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp9_, GDK_TYPE_PIXBUF);
#line 3678 "midori-uri.c"
	} else {
#line 325 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp7_ = FALSE;
#line 3682 "midori-uri.c"
	}
#line 325 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_data_->_tmp7_) {
#line 326 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp10_ = NULL;
#line 326 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp10_ = _data_->icon;
#line 326 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp11_ = NULL;
#line 326 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp11_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp10_, GDK_TYPE_PIXBUF) ? ((GdkPixbuf*) _data_->_tmp10_) : NULL);
#line 326 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->pixbuf = _data_->_tmp11_;
#line 328 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->buffer_length1 = 0;
#line 328 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_buffer_size_ = 0;
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp12_ = NULL;
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp12_ = _data_->pixbuf;
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp13_ = NULL;
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		memset (&_data_->_tmp14_, 0, sizeof (gsize));
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		gdk_pixbuf_save_to_buffer (_data_->_tmp12_, (gchar**) (&_data_->_tmp13_), &_data_->_tmp14_, "png", &_data_->_inner_error_, NULL);
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->buffer = (g_free (_data_->buffer), NULL);
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->buffer = _data_->_tmp13_;
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->buffer_length1 = _data_->_tmp14_;
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_buffer_size_ = _data_->buffer_length1;
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			g_error_free (_data_->_inner_error_);
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_data_->buffer = (g_free (_data_->buffer), NULL);
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_g_object_unref0 (_data_->pixbuf);
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			_g_object_unref0 (_data_->icon);
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			if (_data_->_state_ == 0) {
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 3734 "midori-uri.c"
			} else {
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 3738 "midori-uri.c"
			}
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			g_object_unref (_data_->_async_result);
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			return FALSE;
#line 3744 "midori-uri.c"
		}
#line 330 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp15_ = NULL;
#line 330 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp15__length1 = 0;
#line 330 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp15_ = _data_->buffer;
#line 330 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp15__length1 = _data_->buffer_length1;
#line 330 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp16_ = NULL;
#line 330 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp16__length1 = 0;
#line 330 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp16_ = (_data_->_tmp15_ != NULL) ? _vala_array_dup3 (_data_->_tmp15_, _data_->_tmp15__length1) : ((gpointer) _data_->_tmp15_);
#line 330 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp16__length1 = _data_->_tmp15__length1;
#line 330 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp17_ = NULL;
#line 330 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp17_ = (GMemoryInputStream*) g_memory_input_stream_new_from_data (_data_->_tmp16_, _data_->_tmp16__length1, NULL);
#line 330 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_object_unref0 (_data_->self->priv->stream);
#line 330 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->self->priv->stream = (GInputStream*) _data_->_tmp17_;
#line 325 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->buffer = (g_free (_data_->buffer), NULL);
#line 325 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_object_unref0 (_data_->pixbuf);
#line 3774 "midori-uri.c"
	} else {
#line 333 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp18_ = NULL;
#line 333 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_tmp18_ = g_error_new_literal (G_FILE_ERROR, G_FILE_ERROR_EXIST, "No icon available");
#line 333 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_data_->_inner_error_ = _data_->_tmp18_;
#line 333 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 333 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_error_free (_data_->_inner_error_);
#line 333 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		_g_object_unref0 (_data_->icon);
#line 333 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		if (_data_->_state_ == 0) {
#line 333 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 3792 "midori-uri.c"
		} else {
#line 333 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 3796 "midori-uri.c"
		}
#line 333 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_object_unref (_data_->_async_result);
#line 333 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		return FALSE;
#line 3802 "midori-uri.c"
	}
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_tmp19_ = NULL;
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_tmp19_ = _data_->self->priv->stream;
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_tmp20_ = NULL;
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->_tmp20_ = _g_object_ref0 (_data_->_tmp19_);
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_data_->result = _data_->_tmp20_;
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_object_unref0 (_data_->icon);
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_data_->_state_ == 0) {
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 3820 "midori-uri.c"
	} else {
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 3824 "midori-uri.c"
	}
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_object_unref (_data_->_async_result);
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return FALSE;
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_object_unref0 (_data_->icon);
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	if (_data_->_state_ == 0) {
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 3836 "midori-uri.c"
	} else {
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 3840 "midori-uri.c"
	}
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_object_unref (_data_->_async_result);
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return FALSE;
#line 3846 "midori-uri.c"
}


const gchar* midori_uri_icon_get_uri (MidoriURIIcon* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
#line 285 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 285 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp0_ = self->priv->_uri;
#line 285 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	result = _tmp0_;
#line 285 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return result;
#line 3861 "midori-uri.c"
}


static void midori_uri_icon_set_uri (MidoriURIIcon* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 285 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_return_if_fail (self != NULL);
#line 285 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp0_ = value;
#line 285 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 285 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_free0 (self->priv->_uri);
#line 285 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	self->priv->_uri = _tmp1_;
#line 285 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_object_notify ((GObject *) self, "uri");
#line 3880 "midori-uri.c"
}


GIcon* midori_uri_icon_get_fallback (MidoriURIIcon* self) {
	GIcon* result;
	GIcon* _tmp0_ = NULL;
#line 286 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 286 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp0_ = self->priv->_fallback;
#line 286 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	result = _tmp0_;
#line 286 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	return result;
#line 3895 "midori-uri.c"
}


static void midori_uri_icon_set_fallback (MidoriURIIcon* self, GIcon* value) {
	GIcon* _tmp0_ = NULL;
	GIcon* _tmp1_ = NULL;
#line 286 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_return_if_fail (self != NULL);
#line 286 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp0_ = value;
#line 286 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 286 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_object_unref0 (self->priv->_fallback);
#line 286 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	self->priv->_fallback = _tmp1_;
#line 286 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_object_notify ((GObject *) self, "fallback");
#line 3914 "midori-uri.c"
}


static void midori_uri_icon_class_init (MidoriURIIconClass * klass) {
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	midori_uri_icon_parent_class = g_type_class_peek_parent (klass);
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_type_class_add_private (klass, sizeof (MidoriURIIconPrivate));
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_midori_uri_icon_get_property;
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_midori_uri_icon_set_property;
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	G_OBJECT_CLASS (klass)->finalize = midori_uri_icon_finalize;
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), MIDORI_URI_ICON_URI, g_param_spec_string ("uri", "uri", "uri", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), MIDORI_URI_ICON_FALLBACK, g_param_spec_object ("fallback", "fallback", "fallback", G_TYPE_ICON, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 3933 "midori-uri.c"
}


static void midori_uri_icon_g_icon_interface_init (GIconIface * iface) {
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	midori_uri_icon_g_icon_parent_iface = g_type_interface_peek_parent (iface);
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	iface->equal = (gboolean (*)(GIcon*, GIcon*)) midori_uri_icon_real_equal;
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	iface->hash = (guint (*)(GIcon*)) midori_uri_icon_real_hash;
#line 3944 "midori-uri.c"
}


static void midori_uri_icon_g_loadable_icon_interface_init (GLoadableIconIface * iface) {
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	midori_uri_icon_g_loadable_icon_parent_iface = g_type_interface_peek_parent (iface);
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	iface->load = (GInputStream* (*)(GLoadableIcon*, gint, gchar**, GCancellable*, GError**)) midori_uri_icon_real_load;
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	iface->load_async = (GInputStream* (*)(GLoadableIcon*, gint, GCancellable*, gchar**, GError**)) midori_uri_icon_real_load_async;
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	iface->load_finish = midori_uri_icon_real_load_finish;
#line 3957 "midori-uri.c"
}


static void midori_uri_icon_instance_init (MidoriURIIcon * self) {
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	self->priv = MIDORI_URI_ICON_GET_PRIVATE (self);
#line 287 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	self->priv->stream = NULL;
#line 3966 "midori-uri.c"
}


static void midori_uri_icon_finalize (GObject* obj) {
	MidoriURIIcon * self;
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, MIDORI_URI_TYPE_ICON, MidoriURIIcon);
#line 285 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_free0 (self->priv->_uri);
#line 286 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_object_unref0 (self->priv->_fallback);
#line 287 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	_g_object_unref0 (self->priv->stream);
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	G_OBJECT_CLASS (midori_uri_icon_parent_class)->finalize (obj);
#line 3982 "midori-uri.c"
}


/**
         * A Glib.Icon subclass that loads the icon for a given URI.
         * In the case of an error @fallback will be used.
         *
         * Since: 0.5.8
         **/
GType midori_uri_icon_get_type (void) {
	static volatile gsize midori_uri_icon_type_id__volatile = 0;
	if (g_once_init_enter (&midori_uri_icon_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (MidoriURIIconClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) midori_uri_icon_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MidoriURIIcon), 0, (GInstanceInitFunc) midori_uri_icon_instance_init, NULL };
		static const GInterfaceInfo g_icon_info = { (GInterfaceInitFunc) midori_uri_icon_g_icon_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		static const GInterfaceInfo g_loadable_icon_info = { (GInterfaceInitFunc) midori_uri_icon_g_loadable_icon_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType midori_uri_icon_type_id;
		midori_uri_icon_type_id = g_type_register_static (G_TYPE_INITIALLY_UNOWNED, "MidoriURIIcon", &g_define_type_info, 0);
		g_type_add_interface_static (midori_uri_icon_type_id, G_TYPE_ICON, &g_icon_info);
		g_type_add_interface_static (midori_uri_icon_type_id, g_loadable_icon_get_type (), &g_loadable_icon_info);
		g_once_init_leave (&midori_uri_icon_type_id__volatile, midori_uri_icon_type_id);
	}
	return midori_uri_icon_type_id__volatile;
}


static void _vala_midori_uri_icon_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	MidoriURIIcon * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, MIDORI_URI_TYPE_ICON, MidoriURIIcon);
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	switch (property_id) {
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		case MIDORI_URI_ICON_URI:
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_value_set_string (value, midori_uri_icon_get_uri (self));
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		break;
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		case MIDORI_URI_ICON_FALLBACK:
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		g_value_set_object (value, midori_uri_icon_get_fallback (self));
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		break;
#line 4025 "midori-uri.c"
		default:
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		break;
#line 4031 "midori-uri.c"
	}
}


static void _vala_midori_uri_icon_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	MidoriURIIcon * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, MIDORI_URI_TYPE_ICON, MidoriURIIcon);
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	switch (property_id) {
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		case MIDORI_URI_ICON_URI:
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		midori_uri_icon_set_uri (self, g_value_get_string (value));
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		break;
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		case MIDORI_URI_ICON_FALLBACK:
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		midori_uri_icon_set_fallback (self, g_value_get_object (value));
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		break;
#line 4053 "midori-uri.c"
		default:
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
		break;
#line 4059 "midori-uri.c"
	}
}


static void midori_uri_class_init (MidoriURIClass * klass) {
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	midori_uri_parent_class = g_type_class_peek_parent (klass);
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	G_OBJECT_CLASS (klass)->finalize = midori_uri_finalize;
#line 4069 "midori-uri.c"
}


static void midori_uri_instance_init (MidoriURI * self) {
}


static void midori_uri_finalize (GObject* obj) {
	MidoriURI * self;
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, MIDORI_TYPE_URI, MidoriURI);
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/katze/midori-uri.vala"
	G_OBJECT_CLASS (midori_uri_parent_class)->finalize (obj);
#line 4083 "midori-uri.c"
}


GType midori_uri_get_type (void) {
	static volatile gsize midori_uri_type_id__volatile = 0;
	if (g_once_init_enter (&midori_uri_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (MidoriURIClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) midori_uri_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MidoriURI), 0, (GInstanceInitFunc) midori_uri_instance_init, NULL };
		GType midori_uri_type_id;
		midori_uri_type_id = g_type_register_static (G_TYPE_OBJECT, "MidoriURI", &g_define_type_info, 0);
		g_once_init_leave (&midori_uri_type_id__volatile, midori_uri_type_id);
	}
	return midori_uri_type_id__volatile;
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	if ((array != NULL) && (destroy_func != NULL)) {
		int i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}


static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}


static gint _vala_array_length (gpointer array) {
	int length;
	length = 0;
	if (array) {
		while (((gpointer*) array)[length]) {
			length++;
		}
	}
	return length;
}



