/* gitg-avatar-cache.c generated by valac 0.27.1.26-9b1a5-dirty, the Vala compiler
 * generated from gitg-avatar-cache.vala, do not modify */

/*
 * This file is part of gitg
 *
 * Copyright (C) 2013 - Jesse van den Kieboom
 *
 * gitg is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * gitg is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with gitg. If not, see <http://www.gnu.org/licenses/>.
 */

#include <glib.h>
#include <glib-object.h>
#include <gee.h>
#include <stdlib.h>
#include <string.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <gio/gio.h>


#define GITG_TYPE_AVATAR_CACHE (gitg_avatar_cache_get_type ())
#define GITG_AVATAR_CACHE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_AVATAR_CACHE, GitgAvatarCache))
#define GITG_AVATAR_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_AVATAR_CACHE, GitgAvatarCacheClass))
#define GITG_IS_AVATAR_CACHE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_AVATAR_CACHE))
#define GITG_IS_AVATAR_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_AVATAR_CACHE))
#define GITG_AVATAR_CACHE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_AVATAR_CACHE, GitgAvatarCacheClass))

typedef struct _GitgAvatarCache GitgAvatarCache;
typedef struct _GitgAvatarCacheClass GitgAvatarCacheClass;
typedef struct _GitgAvatarCachePrivate GitgAvatarCachePrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _GitgAvatarCacheLoadData GitgAvatarCacheLoadData;
typedef struct _GitgAvatarCacheReadAvatarFromFileData GitgAvatarCacheReadAvatarFromFileData;
typedef struct _GitgAvatarCacheReadAvatarData GitgAvatarCacheReadAvatarData;

struct _GitgAvatarCache {
	GObject parent_instance;
	GitgAvatarCachePrivate * priv;
};

struct _GitgAvatarCacheClass {
	GObjectClass parent_class;
};

struct _GitgAvatarCachePrivate {
	GeeHashMap* d_cache;
};

struct _GitgAvatarCacheLoadData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GitgAvatarCache* self;
	gchar* email;
	GCancellable* cancellable;
	GdkPixbuf* result;
	gchar* id;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	GeeHashMap* _tmp5_;
	const gchar* _tmp6_;
	gboolean _tmp7_;
	GeeHashMap* _tmp8_;
	const gchar* _tmp9_;
	gpointer _tmp10_;
	gchar* gravatar;
	const gchar* _tmp11_;
	const gchar* _tmp12_;
	gchar* _tmp13_;
	GFile* gfile;
	const gchar* _tmp14_;
	GFile* _tmp15_;
	GdkPixbuf* pixbuf;
	const gchar* _tmp16_;
	GFile* _tmp17_;
	GCancellable* _tmp18_;
	GdkPixbuf* _tmp19_;
	GeeHashMap* _tmp20_;
	const gchar* _tmp21_;
	GdkPixbuf* _tmp22_;
};

struct _GitgAvatarCacheReadAvatarFromFileData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GitgAvatarCache* self;
	gchar* id;
	GFile* file;
	GCancellable* cancellable;
	GdkPixbuf* result;
	GInputStream* stream;
	GFileInputStream* _tmp0_;
	GFile* _tmp1_;
	GCancellable* _tmp2_;
	GFileInputStream* _tmp3_;
	GFileInputStream* _tmp4_;
	guint8* buffer;
	guint8* _tmp5_;
	gint buffer_length1;
	gint _buffer_size_;
	GdkPixbufLoader* loader;
	GdkPixbufLoader* _tmp6_;
	GdkPixbufLoader* _tmp7_;
	const gchar* _tmp8_;
	GInputStream* _tmp9_;
	guint8* _tmp10_;
	gint _tmp10__length1;
	GdkPixbufLoader* _tmp11_;
	GCancellable* _tmp12_;
	GdkPixbuf* _tmp13_;
	GError * _inner_error_;
};

struct _GitgAvatarCacheReadAvatarData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GitgAvatarCache* self;
	gchar* id;
	GInputStream* stream;
	guint8* buffer;
	gint buffer_length1;
	GdkPixbufLoader* loader;
	GCancellable* cancellable;
	GdkPixbuf* result;
	gssize n;
	gssize _tmp0_;
	GInputStream* _tmp1_;
	guint8* _tmp2_;
	gint _tmp2__length1;
	GCancellable* _tmp3_;
	gssize _tmp4_;
	gssize _tmp5_;
	GdkPixbufLoader* _tmp6_;
	guint8* _tmp7_;
	gint _tmp7__length1;
	gssize _tmp8_;
	const gchar* _tmp9_;
	GInputStream* _tmp10_;
	guint8* _tmp11_;
	gint _tmp11__length1;
	GdkPixbufLoader* _tmp12_;
	GCancellable* _tmp13_;
	GdkPixbuf* _tmp14_;
	GdkPixbufLoader* _tmp15_;
	GdkPixbufLoader* _tmp16_;
	GdkPixbuf* _tmp17_;
	GdkPixbuf* _tmp18_;
	GError * _inner_error_;
};


static gpointer gitg_avatar_cache_parent_class = NULL;
static GitgAvatarCache* gitg_avatar_cache_s_instance;
static GitgAvatarCache* gitg_avatar_cache_s_instance = NULL;

GType gitg_avatar_cache_get_type (void) G_GNUC_CONST;
#define GITG_AVATAR_CACHE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_AVATAR_CACHE, GitgAvatarCachePrivate))
enum  {
	GITG_AVATAR_CACHE_DUMMY_PROPERTY
};
static GitgAvatarCache* gitg_avatar_cache_new (void);
static GitgAvatarCache* gitg_avatar_cache_construct (GType object_type);
GitgAvatarCache* gitg_avatar_cache_default (void);
static void gitg_avatar_cache_load_data_free (gpointer _data);
void gitg_avatar_cache_load (GitgAvatarCache* self, const gchar* email, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
GdkPixbuf* gitg_avatar_cache_load_finish (GitgAvatarCache* self, GAsyncResult* _res_);
static gboolean gitg_avatar_cache_load_co (GitgAvatarCacheLoadData* _data_);
static void gitg_avatar_cache_read_avatar_from_file (GitgAvatarCache* self, const gchar* id, GFile* file, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
static GdkPixbuf* gitg_avatar_cache_read_avatar_from_file_finish (GitgAvatarCache* self, GAsyncResult* _res_);
static void gitg_avatar_cache_load_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void gitg_avatar_cache_read_avatar_from_file_data_free (gpointer _data);
static gboolean gitg_avatar_cache_read_avatar_from_file_co (GitgAvatarCacheReadAvatarFromFileData* _data_);
static void gitg_avatar_cache_read_avatar_from_file_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void gitg_avatar_cache_read_avatar (GitgAvatarCache* self, const gchar* id, GInputStream* stream, guint8* buffer, int buffer_length1, GdkPixbufLoader* loader, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
static GdkPixbuf* gitg_avatar_cache_read_avatar_finish (GitgAvatarCache* self, GAsyncResult* _res_);
static void gitg_avatar_cache_read_avatar_data_free (gpointer _data);
static gboolean gitg_avatar_cache_read_avatar_co (GitgAvatarCacheReadAvatarData* _data_);
static void gitg_avatar_cache_read_avatar_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static GObject * gitg_avatar_cache_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
static void gitg_avatar_cache_finalize (GObject* obj);


static GitgAvatarCache* gitg_avatar_cache_construct (GType object_type) {
	GitgAvatarCache * self = NULL;
#line 32 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	self = (GitgAvatarCache*) g_object_new (object_type, NULL);
#line 30 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	return self;
#line 210 "gitg-avatar-cache.c"
}


static GitgAvatarCache* gitg_avatar_cache_new (void) {
#line 30 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	return gitg_avatar_cache_construct (GITG_TYPE_AVATAR_CACHE);
#line 217 "gitg-avatar-cache.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 42 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	return self ? g_object_ref (self) : NULL;
#line 224 "gitg-avatar-cache.c"
}


GitgAvatarCache* gitg_avatar_cache_default (void) {
	GitgAvatarCache* result = NULL;
	GitgAvatarCache* _tmp0_ = NULL;
	GitgAvatarCache* _tmp2_ = NULL;
	GitgAvatarCache* _tmp3_ = NULL;
#line 37 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_tmp0_ = gitg_avatar_cache_s_instance;
#line 37 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	if (_tmp0_ == NULL) {
#line 237 "gitg-avatar-cache.c"
		GitgAvatarCache* _tmp1_ = NULL;
#line 39 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_tmp1_ = gitg_avatar_cache_new ();
#line 39 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_g_object_unref0 (gitg_avatar_cache_s_instance);
#line 39 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		gitg_avatar_cache_s_instance = _tmp1_;
#line 245 "gitg-avatar-cache.c"
	}
#line 42 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_tmp2_ = gitg_avatar_cache_s_instance;
#line 42 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 42 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	result = _tmp3_;
#line 42 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	return result;
#line 255 "gitg-avatar-cache.c"
}


static void gitg_avatar_cache_load_data_free (gpointer _data) {
	GitgAvatarCacheLoadData* _data_;
	_data_ = _data;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_free0 (_data_->email);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_object_unref0 (_data_->cancellable);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_object_unref0 (_data_->result);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_object_unref0 (_data_->self);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	g_slice_free (GitgAvatarCacheLoadData, _data_);
#line 272 "gitg-avatar-cache.c"
}


void gitg_avatar_cache_load (GitgAvatarCache* self, const gchar* email, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GitgAvatarCacheLoadData* _data_;
	GitgAvatarCache* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	GCancellable* _tmp3_ = NULL;
	GCancellable* _tmp4_ = NULL;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_ = g_slice_new0 (GitgAvatarCacheLoadData);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, gitg_avatar_cache_load);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, gitg_avatar_cache_load_data_free);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->self = _tmp0_;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_tmp1_ = email;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_tmp2_ = g_strdup (_tmp1_);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_free0 (_data_->email);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->email = _tmp2_;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_tmp3_ = cancellable;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_object_unref0 (_data_->cancellable);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->cancellable = _tmp4_;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	gitg_avatar_cache_load_co (_data_);
#line 311 "gitg-avatar-cache.c"
}


GdkPixbuf* gitg_avatar_cache_load_finish (GitgAvatarCache* self, GAsyncResult* _res_) {
	GdkPixbuf* result;
	GitgAvatarCacheLoadData* _data_;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	result = _data_->result;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->result = NULL;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	return result;
#line 326 "gitg-avatar-cache.c"
}


static const gchar* string_to_string (const gchar* self) {
	const gchar* result = NULL;
#line 1314 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1315 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	result = self;
#line 1315 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	return result;
#line 338 "gitg-avatar-cache.c"
}


static void gitg_avatar_cache_load_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	GitgAvatarCacheLoadData* _data_;
#line 57 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_ = _user_data_;
#line 57 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_source_object_ = source_object;
#line 57 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_res_ = _res_;
#line 57 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	gitg_avatar_cache_load_co (_data_);
#line 352 "gitg-avatar-cache.c"
}


static gboolean gitg_avatar_cache_load_co (GitgAvatarCacheLoadData* _data_) {
#line 45 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	switch (_data_->_state_) {
#line 45 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		case 0:
#line 361 "gitg-avatar-cache.c"
		goto _state_0;
#line 45 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		case 1:
#line 365 "gitg-avatar-cache.c"
		goto _state_1;
		default:
#line 45 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		g_assert_not_reached ();
#line 370 "gitg-avatar-cache.c"
	}
	_state_0:
#line 47 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp0_ = NULL;
#line 47 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp0_ = _data_->email;
#line 47 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp1_ = NULL;
#line 47 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp1_ = g_utf8_strdown (_data_->_tmp0_, (gssize) (-1));
#line 47 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp2_ = NULL;
#line 47 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp2_ = _data_->_tmp1_;
#line 47 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp3_ = NULL;
#line 47 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp3_ = g_compute_checksum_for_string (G_CHECKSUM_MD5, _data_->_tmp2_, (gsize) (-1));
#line 47 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp4_ = NULL;
#line 47 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 47 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_free0 (_data_->_tmp2_);
#line 47 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->id = _data_->_tmp4_;
#line 49 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp5_ = NULL;
#line 49 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp5_ = _data_->self->priv->d_cache;
#line 49 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp6_ = NULL;
#line 49 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp6_ = _data_->id;
#line 49 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp7_ = FALSE;
#line 49 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp7_ = gee_abstract_map_has_key ((GeeAbstractMap*) _data_->_tmp5_, _data_->_tmp6_);
#line 49 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	if (_data_->_tmp7_) {
#line 51 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp8_ = NULL;
#line 51 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp8_ = _data_->self->priv->d_cache;
#line 51 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp9_ = NULL;
#line 51 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp9_ = _data_->id;
#line 51 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp10_ = NULL;
#line 51 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp10_ = gee_abstract_map_get ((GeeAbstractMap*) _data_->_tmp8_, _data_->_tmp9_);
#line 51 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->result = (GdkPixbuf*) _data_->_tmp10_;
#line 51 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_g_free0 (_data_->id);
#line 51 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		if (_data_->_state_ == 0) {
#line 51 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 431 "gitg-avatar-cache.c"
		} else {
#line 51 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 435 "gitg-avatar-cache.c"
		}
#line 51 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		g_object_unref (_data_->_async_result);
#line 51 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		return FALSE;
#line 441 "gitg-avatar-cache.c"
	}
#line 54 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp11_ = NULL;
#line 54 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp11_ = _data_->id;
#line 54 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp12_ = NULL;
#line 54 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp12_ = string_to_string (_data_->_tmp11_);
#line 54 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp13_ = NULL;
#line 54 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp13_ = g_strconcat ("http://www.gravatar.com/avatar/", _data_->_tmp12_, "?d=404&s=50", NULL);
#line 54 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->gravatar = _data_->_tmp13_;
#line 55 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp14_ = NULL;
#line 55 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp14_ = _data_->gravatar;
#line 55 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp15_ = NULL;
#line 55 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp15_ = g_file_new_for_uri (_data_->_tmp14_);
#line 55 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->gfile = _data_->_tmp15_;
#line 57 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp16_ = NULL;
#line 57 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp16_ = _data_->id;
#line 57 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp17_ = NULL;
#line 57 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp17_ = _data_->gfile;
#line 57 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp18_ = NULL;
#line 57 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp18_ = _data_->cancellable;
#line 57 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_state_ = 1;
#line 57 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	gitg_avatar_cache_read_avatar_from_file (_data_->self, _data_->_tmp16_, _data_->_tmp17_, _data_->_tmp18_, gitg_avatar_cache_load_ready, _data_);
#line 57 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	return FALSE;
#line 485 "gitg-avatar-cache.c"
	_state_1:
#line 57 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp19_ = NULL;
#line 57 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp19_ = gitg_avatar_cache_read_avatar_from_file_finish (_data_->self, _data_->_res_);
#line 57 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->pixbuf = _data_->_tmp19_;
#line 59 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp20_ = NULL;
#line 59 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp20_ = _data_->self->priv->d_cache;
#line 59 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp21_ = NULL;
#line 59 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp21_ = _data_->id;
#line 59 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp22_ = NULL;
#line 59 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp22_ = _data_->pixbuf;
#line 59 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _data_->_tmp20_, _data_->_tmp21_, _data_->_tmp22_);
#line 60 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->result = _data_->pixbuf;
#line 60 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_object_unref0 (_data_->gfile);
#line 60 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_free0 (_data_->gravatar);
#line 60 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_free0 (_data_->id);
#line 60 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	if (_data_->_state_ == 0) {
#line 60 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 519 "gitg-avatar-cache.c"
	} else {
#line 60 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 523 "gitg-avatar-cache.c"
	}
#line 60 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	g_object_unref (_data_->_async_result);
#line 60 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	return FALSE;
#line 45 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_object_unref0 (_data_->pixbuf);
#line 45 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_object_unref0 (_data_->gfile);
#line 45 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_free0 (_data_->gravatar);
#line 45 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_free0 (_data_->id);
#line 45 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	if (_data_->_state_ == 0) {
#line 45 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 541 "gitg-avatar-cache.c"
	} else {
#line 45 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 545 "gitg-avatar-cache.c"
	}
#line 45 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	g_object_unref (_data_->_async_result);
#line 45 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	return FALSE;
#line 551 "gitg-avatar-cache.c"
}


static void gitg_avatar_cache_read_avatar_from_file_data_free (gpointer _data) {
	GitgAvatarCacheReadAvatarFromFileData* _data_;
	_data_ = _data;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_free0 (_data_->id);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_object_unref0 (_data_->file);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_object_unref0 (_data_->cancellable);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_object_unref0 (_data_->result);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_object_unref0 (_data_->self);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	g_slice_free (GitgAvatarCacheReadAvatarFromFileData, _data_);
#line 570 "gitg-avatar-cache.c"
}


static void gitg_avatar_cache_read_avatar_from_file (GitgAvatarCache* self, const gchar* id, GFile* file, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GitgAvatarCacheReadAvatarFromFileData* _data_;
	GitgAvatarCache* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	GFile* _tmp3_ = NULL;
	GFile* _tmp4_ = NULL;
	GCancellable* _tmp5_ = NULL;
	GCancellable* _tmp6_ = NULL;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_ = g_slice_new0 (GitgAvatarCacheReadAvatarFromFileData);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, gitg_avatar_cache_read_avatar_from_file);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, gitg_avatar_cache_read_avatar_from_file_data_free);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->self = _tmp0_;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_tmp1_ = id;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_tmp2_ = g_strdup (_tmp1_);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_free0 (_data_->id);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->id = _tmp2_;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_tmp3_ = file;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_object_unref0 (_data_->file);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->file = _tmp4_;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_tmp5_ = cancellable;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_tmp6_ = _g_object_ref0 (_tmp5_);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_object_unref0 (_data_->cancellable);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->cancellable = _tmp6_;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	gitg_avatar_cache_read_avatar_from_file_co (_data_);
#line 619 "gitg-avatar-cache.c"
}


static GdkPixbuf* gitg_avatar_cache_read_avatar_from_file_finish (GitgAvatarCache* self, GAsyncResult* _res_) {
	GdkPixbuf* result;
	GitgAvatarCacheReadAvatarFromFileData* _data_;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	result = _data_->result;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->result = NULL;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	return result;
#line 634 "gitg-avatar-cache.c"
}


static void gitg_avatar_cache_read_avatar_from_file_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	GitgAvatarCacheReadAvatarFromFileData* _data_;
#line 71 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_ = _user_data_;
#line 71 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_source_object_ = source_object;
#line 71 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_res_ = _res_;
#line 71 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	gitg_avatar_cache_read_avatar_from_file_co (_data_);
#line 648 "gitg-avatar-cache.c"
}


static gboolean gitg_avatar_cache_read_avatar_from_file_co (GitgAvatarCacheReadAvatarFromFileData* _data_) {
#line 63 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	switch (_data_->_state_) {
#line 63 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		case 0:
#line 657 "gitg-avatar-cache.c"
		goto _state_0;
#line 63 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		case 1:
#line 661 "gitg-avatar-cache.c"
		goto _state_1;
#line 63 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		case 2:
#line 665 "gitg-avatar-cache.c"
		goto _state_2;
		default:
#line 63 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		g_assert_not_reached ();
#line 670 "gitg-avatar-cache.c"
	}
	_state_0:
	{
#line 71 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp1_ = NULL;
#line 71 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp1_ = _data_->file;
#line 71 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp2_ = NULL;
#line 71 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp2_ = _data_->cancellable;
#line 71 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_state_ = 1;
#line 71 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		g_file_read_async (_data_->_tmp1_, G_PRIORITY_LOW, _data_->_tmp2_, gitg_avatar_cache_read_avatar_from_file_ready, _data_);
#line 71 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		return FALSE;
#line 688 "gitg-avatar-cache.c"
		_state_1:
#line 71 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp3_ = NULL;
#line 71 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp3_ = g_file_read_finish (_data_->_tmp1_, _data_->_res_, &_data_->_inner_error_);
#line 71 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp0_ = _data_->_tmp3_;
#line 71 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 698 "gitg-avatar-cache.c"
			goto __catch1_g_error;
		}
#line 71 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp4_ = NULL;
#line 71 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp4_ = _data_->_tmp0_;
#line 71 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp0_ = NULL;
#line 71 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_g_object_unref0 (_data_->stream);
#line 71 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->stream = (GInputStream*) _data_->_tmp4_;
#line 69 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_g_object_unref0 (_data_->_tmp0_);
#line 713 "gitg-avatar-cache.c"
	}
	goto __finally1;
	__catch1_g_error:
	{
#line 69 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		g_clear_error (&_data_->_inner_error_);
#line 69 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_inner_error_ = NULL;
#line 75 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->result = NULL;
#line 75 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_g_object_unref0 (_data_->stream);
#line 75 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		if (_data_->_state_ == 0) {
#line 75 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 730 "gitg-avatar-cache.c"
		} else {
#line 75 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 734 "gitg-avatar-cache.c"
		}
#line 75 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		g_object_unref (_data_->_async_result);
#line 75 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		return FALSE;
#line 740 "gitg-avatar-cache.c"
	}
	__finally1:
#line 69 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 69 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_g_object_unref0 (_data_->stream);
#line 69 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.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 69 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		g_clear_error (&_data_->_inner_error_);
#line 69 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		return FALSE;
#line 753 "gitg-avatar-cache.c"
	}
#line 78 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp5_ = NULL;
#line 78 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp5_ = g_new0 (guint8, 4096);
#line 78 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->buffer_length1 = 0;
#line 78 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_buffer_size_ = 0;
#line 78 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->buffer = _data_->_tmp5_;
#line 78 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->buffer_length1 = 4096;
#line 78 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_buffer_size_ = _data_->buffer_length1;
#line 79 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp6_ = NULL;
#line 79 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp6_ = gdk_pixbuf_loader_new ();
#line 79 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->loader = _data_->_tmp6_;
#line 81 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp7_ = NULL;
#line 81 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp7_ = _data_->loader;
#line 81 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	gdk_pixbuf_loader_set_size (_data_->_tmp7_, 50, 50);
#line 83 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp8_ = NULL;
#line 83 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp8_ = _data_->id;
#line 83 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp9_ = NULL;
#line 83 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp9_ = _data_->stream;
#line 83 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp10_ = NULL;
#line 83 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp10__length1 = 0;
#line 83 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp10_ = _data_->buffer;
#line 83 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp10__length1 = _data_->buffer_length1;
#line 83 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp11_ = NULL;
#line 83 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp11_ = _data_->loader;
#line 83 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp12_ = NULL;
#line 83 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp12_ = _data_->cancellable;
#line 83 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_state_ = 2;
#line 83 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	gitg_avatar_cache_read_avatar (_data_->self, _data_->_tmp8_, _data_->_tmp9_, _data_->_tmp10_, _data_->_tmp10__length1, _data_->_tmp11_, _data_->_tmp12_, gitg_avatar_cache_read_avatar_from_file_ready, _data_);
#line 83 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	return FALSE;
#line 811 "gitg-avatar-cache.c"
	_state_2:
#line 83 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp13_ = NULL;
#line 83 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp13_ = gitg_avatar_cache_read_avatar_finish (_data_->self, _data_->_res_);
#line 83 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->result = _data_->_tmp13_;
#line 83 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_object_unref0 (_data_->loader);
#line 83 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->buffer = (g_free (_data_->buffer), NULL);
#line 83 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_object_unref0 (_data_->stream);
#line 83 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	if (_data_->_state_ == 0) {
#line 83 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 829 "gitg-avatar-cache.c"
	} else {
#line 83 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 833 "gitg-avatar-cache.c"
	}
#line 83 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	g_object_unref (_data_->_async_result);
#line 83 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	return FALSE;
#line 63 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_object_unref0 (_data_->loader);
#line 63 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->buffer = (g_free (_data_->buffer), NULL);
#line 63 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_object_unref0 (_data_->stream);
#line 63 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	if (_data_->_state_ == 0) {
#line 63 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 849 "gitg-avatar-cache.c"
	} else {
#line 63 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 853 "gitg-avatar-cache.c"
	}
#line 63 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	g_object_unref (_data_->_async_result);
#line 63 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	return FALSE;
#line 859 "gitg-avatar-cache.c"
}


static void gitg_avatar_cache_read_avatar_data_free (gpointer _data) {
	GitgAvatarCacheReadAvatarData* _data_;
	_data_ = _data;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_free0 (_data_->id);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_object_unref0 (_data_->stream);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_object_unref0 (_data_->loader);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_object_unref0 (_data_->cancellable);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_object_unref0 (_data_->result);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_object_unref0 (_data_->self);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	g_slice_free (GitgAvatarCacheReadAvatarData, _data_);
#line 880 "gitg-avatar-cache.c"
}


static void gitg_avatar_cache_read_avatar (GitgAvatarCache* self, const gchar* id, GInputStream* stream, guint8* buffer, int buffer_length1, GdkPixbufLoader* loader, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GitgAvatarCacheReadAvatarData* _data_;
	GitgAvatarCache* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	GInputStream* _tmp3_ = NULL;
	GInputStream* _tmp4_ = NULL;
	guint8* _tmp5_ = NULL;
	gint _tmp5__length1 = 0;
	GdkPixbufLoader* _tmp6_ = NULL;
	GdkPixbufLoader* _tmp7_ = NULL;
	GCancellable* _tmp8_ = NULL;
	GCancellable* _tmp9_ = NULL;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_ = g_slice_new0 (GitgAvatarCacheReadAvatarData);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, gitg_avatar_cache_read_avatar);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, gitg_avatar_cache_read_avatar_data_free);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->self = _tmp0_;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_tmp1_ = id;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_tmp2_ = g_strdup (_tmp1_);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_free0 (_data_->id);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->id = _tmp2_;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_tmp3_ = stream;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_object_unref0 (_data_->stream);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->stream = _tmp4_;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_tmp5_ = buffer;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_tmp5__length1 = buffer_length1;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->buffer = _tmp5_;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->buffer_length1 = _tmp5__length1;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_tmp6_ = loader;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_tmp7_ = _g_object_ref0 (_tmp6_);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_object_unref0 (_data_->loader);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->loader = _tmp7_;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_tmp8_ = cancellable;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_tmp9_ = _g_object_ref0 (_tmp8_);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_object_unref0 (_data_->cancellable);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->cancellable = _tmp9_;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	gitg_avatar_cache_read_avatar_co (_data_);
#line 949 "gitg-avatar-cache.c"
}


static GdkPixbuf* gitg_avatar_cache_read_avatar_finish (GitgAvatarCache* self, GAsyncResult* _res_) {
	GdkPixbuf* result;
	GitgAvatarCacheReadAvatarData* _data_;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	result = _data_->result;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->result = NULL;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	return result;
#line 964 "gitg-avatar-cache.c"
}


static void gitg_avatar_cache_read_avatar_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	GitgAvatarCacheReadAvatarData* _data_;
#line 96 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_ = _user_data_;
#line 96 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_source_object_ = source_object;
#line 96 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_res_ = _res_;
#line 96 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	gitg_avatar_cache_read_avatar_co (_data_);
#line 978 "gitg-avatar-cache.c"
}


static gboolean gitg_avatar_cache_read_avatar_co (GitgAvatarCacheReadAvatarData* _data_) {
#line 86 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	switch (_data_->_state_) {
#line 86 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		case 0:
#line 987 "gitg-avatar-cache.c"
		goto _state_0;
#line 86 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		case 1:
#line 991 "gitg-avatar-cache.c"
		goto _state_1;
#line 86 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		case 2:
#line 995 "gitg-avatar-cache.c"
		goto _state_2;
		default:
#line 86 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		g_assert_not_reached ();
#line 1000 "gitg-avatar-cache.c"
	}
	_state_0:
	{
#line 96 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp1_ = NULL;
#line 96 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp1_ = _data_->stream;
#line 96 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp2_ = NULL;
#line 96 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp2__length1 = 0;
#line 96 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp2_ = _data_->buffer;
#line 96 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp2__length1 = _data_->buffer_length1;
#line 96 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp3_ = NULL;
#line 96 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp3_ = _data_->cancellable;
#line 96 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_state_ = 1;
#line 96 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		g_input_stream_read_async (_data_->_tmp1_, _data_->_tmp2_, (gsize) _data_->_tmp2__length1, G_PRIORITY_LOW, _data_->_tmp3_, gitg_avatar_cache_read_avatar_ready, _data_);
#line 96 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		return FALSE;
#line 1026 "gitg-avatar-cache.c"
		_state_1:
#line 96 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp4_ = 0L;
#line 96 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp4_ = g_input_stream_read_finish (_data_->_tmp1_, _data_->_res_, &_data_->_inner_error_);
#line 96 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp0_ = _data_->_tmp4_;
#line 96 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 1036 "gitg-avatar-cache.c"
			goto __catch2_g_error;
		}
#line 96 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->n = _data_->_tmp0_;
#line 1041 "gitg-avatar-cache.c"
	}
	goto __finally2;
	__catch2_g_error:
	{
#line 94 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		g_clear_error (&_data_->_inner_error_);
#line 94 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_inner_error_ = NULL;
#line 98 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->result = NULL;
#line 98 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		if (_data_->_state_ == 0) {
#line 98 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1056 "gitg-avatar-cache.c"
		} else {
#line 98 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1060 "gitg-avatar-cache.c"
		}
#line 98 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		g_object_unref (_data_->_async_result);
#line 98 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		return FALSE;
#line 1066 "gitg-avatar-cache.c"
	}
	__finally2:
#line 94 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 94 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.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 94 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		g_clear_error (&_data_->_inner_error_);
#line 94 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		return FALSE;
#line 1077 "gitg-avatar-cache.c"
	}
#line 100 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp5_ = 0L;
#line 100 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_data_->_tmp5_ = _data_->n;
#line 100 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	if (_data_->_tmp5_ != ((gssize) 0)) {
#line 1085 "gitg-avatar-cache.c"
		{
#line 104 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			_data_->_tmp6_ = NULL;
#line 104 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			_data_->_tmp6_ = _data_->loader;
#line 104 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			_data_->_tmp7_ = NULL;
#line 104 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			_data_->_tmp7__length1 = 0;
#line 104 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			_data_->_tmp7_ = _data_->buffer;
#line 104 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			_data_->_tmp7__length1 = _data_->buffer_length1;
#line 104 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			_data_->_tmp8_ = 0L;
#line 104 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			_data_->_tmp8_ = _data_->n;
#line 104 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			gdk_pixbuf_loader_write (_data_->_tmp6_, _data_->_tmp7_ + 0, (gsize) (((gint) _data_->_tmp8_) - 0), &_data_->_inner_error_);
#line 104 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 1107 "gitg-avatar-cache.c"
				goto __catch3_g_error;
			}
		}
		goto __finally3;
		__catch3_g_error:
		{
#line 102 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			g_clear_error (&_data_->_inner_error_);
#line 102 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			_data_->_inner_error_ = NULL;
#line 106 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			_data_->result = NULL;
#line 106 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			if (_data_->_state_ == 0) {
#line 106 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1124 "gitg-avatar-cache.c"
			} else {
#line 106 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 1128 "gitg-avatar-cache.c"
			}
#line 106 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			g_object_unref (_data_->_async_result);
#line 106 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			return FALSE;
#line 1134 "gitg-avatar-cache.c"
		}
		__finally3:
#line 102 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 102 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.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 102 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			g_clear_error (&_data_->_inner_error_);
#line 102 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			return FALSE;
#line 1145 "gitg-avatar-cache.c"
		}
#line 108 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp9_ = NULL;
#line 108 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp9_ = _data_->id;
#line 108 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp10_ = NULL;
#line 108 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp10_ = _data_->stream;
#line 108 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp11_ = NULL;
#line 108 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp11__length1 = 0;
#line 108 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp11_ = _data_->buffer;
#line 108 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp11__length1 = _data_->buffer_length1;
#line 108 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp12_ = NULL;
#line 108 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp12_ = _data_->loader;
#line 108 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp13_ = NULL;
#line 108 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp13_ = _data_->cancellable;
#line 108 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_state_ = 2;
#line 108 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		gitg_avatar_cache_read_avatar (_data_->self, _data_->_tmp9_, _data_->_tmp10_, _data_->_tmp11_, _data_->_tmp11__length1, _data_->_tmp12_, _data_->_tmp13_, gitg_avatar_cache_read_avatar_ready, _data_);
#line 108 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		return FALSE;
#line 1177 "gitg-avatar-cache.c"
		_state_2:
#line 108 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp14_ = NULL;
#line 108 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp14_ = gitg_avatar_cache_read_avatar_finish (_data_->self, _data_->_res_);
#line 108 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->result = _data_->_tmp14_;
#line 108 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		if (_data_->_state_ == 0) {
#line 108 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1189 "gitg-avatar-cache.c"
		} else {
#line 108 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1193 "gitg-avatar-cache.c"
		}
#line 108 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		g_object_unref (_data_->_async_result);
#line 108 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		return FALSE;
#line 1199 "gitg-avatar-cache.c"
	} else {
		{
#line 115 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			_data_->_tmp15_ = NULL;
#line 115 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			_data_->_tmp15_ = _data_->loader;
#line 115 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			gdk_pixbuf_loader_close (_data_->_tmp15_, &_data_->_inner_error_);
#line 115 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 1210 "gitg-avatar-cache.c"
				goto __catch4_g_error;
			}
		}
		goto __finally4;
		__catch4_g_error:
		{
#line 113 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			g_clear_error (&_data_->_inner_error_);
#line 113 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			_data_->_inner_error_ = NULL;
#line 116 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			_data_->result = NULL;
#line 116 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			if (_data_->_state_ == 0) {
#line 116 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1227 "gitg-avatar-cache.c"
			} else {
#line 116 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 1231 "gitg-avatar-cache.c"
			}
#line 116 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			g_object_unref (_data_->_async_result);
#line 116 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			return FALSE;
#line 1237 "gitg-avatar-cache.c"
		}
		__finally4:
#line 113 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 113 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.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 113 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			g_clear_error (&_data_->_inner_error_);
#line 113 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			return FALSE;
#line 1248 "gitg-avatar-cache.c"
		}
#line 118 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp16_ = NULL;
#line 118 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp16_ = _data_->loader;
#line 118 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp17_ = NULL;
#line 118 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp17_ = gdk_pixbuf_loader_get_pixbuf (_data_->_tmp16_);
#line 118 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp18_ = NULL;
#line 118 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->_tmp18_ = _g_object_ref0 (_data_->_tmp17_);
#line 118 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		_data_->result = _data_->_tmp18_;
#line 118 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		if (_data_->_state_ == 0) {
#line 118 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1268 "gitg-avatar-cache.c"
		} else {
#line 118 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1272 "gitg-avatar-cache.c"
		}
#line 118 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		g_object_unref (_data_->_async_result);
#line 118 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		return FALSE;
#line 1278 "gitg-avatar-cache.c"
	}
#line 86 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	if (_data_->_state_ == 0) {
#line 86 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1284 "gitg-avatar-cache.c"
	} else {
#line 86 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1288 "gitg-avatar-cache.c"
	}
#line 86 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	g_object_unref (_data_->_async_result);
#line 86 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	return FALSE;
#line 1294 "gitg-avatar-cache.c"
}


static GObject * gitg_avatar_cache_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	GitgAvatarCache * self;
	GeeHashMap* _tmp0_ = NULL;
#line 25 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	parent_class = G_OBJECT_CLASS (gitg_avatar_cache_parent_class);
#line 25 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 25 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_AVATAR_CACHE, GitgAvatarCache);
#line 27 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, GDK_TYPE_PIXBUF, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 27 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_object_unref0 (self->priv->d_cache);
#line 27 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	self->priv->d_cache = _tmp0_;
#line 25 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	return obj;
#line 1317 "gitg-avatar-cache.c"
}


static void gitg_avatar_cache_class_init (GitgAvatarCacheClass * klass) {
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	gitg_avatar_cache_parent_class = g_type_class_peek_parent (klass);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	g_type_class_add_private (klass, sizeof (GitgAvatarCachePrivate));
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	G_OBJECT_CLASS (klass)->constructor = gitg_avatar_cache_constructor;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_avatar_cache_finalize;
#line 1330 "gitg-avatar-cache.c"
}


static void gitg_avatar_cache_instance_init (GitgAvatarCache * self) {
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	self->priv = GITG_AVATAR_CACHE_GET_PRIVATE (self);
#line 1337 "gitg-avatar-cache.c"
}


static void gitg_avatar_cache_finalize (GObject* obj) {
	GitgAvatarCache * self;
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_AVATAR_CACHE, GitgAvatarCache);
#line 22 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	_g_object_unref0 (self->priv->d_cache);
#line 20 "/home/garrett/hacking/gnome/gitg/libgitg/gitg-avatar-cache.vala"
	G_OBJECT_CLASS (gitg_avatar_cache_parent_class)->finalize (obj);
#line 1349 "gitg-avatar-cache.c"
}


GType gitg_avatar_cache_get_type (void) {
	static volatile gsize gitg_avatar_cache_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_avatar_cache_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgAvatarCacheClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_avatar_cache_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgAvatarCache), 0, (GInstanceInitFunc) gitg_avatar_cache_instance_init, NULL };
		GType gitg_avatar_cache_type_id;
		gitg_avatar_cache_type_id = g_type_register_static (G_TYPE_OBJECT, "GitgAvatarCache", &g_define_type_info, 0);
		g_once_init_leave (&gitg_avatar_cache_type_id__volatile, gitg_avatar_cache_type_id);
	}
	return gitg_avatar_cache_type_id__volatile;
}



