/* gitg-diff-view-file-renderer-text.c generated by valac 0.34.7, the Vala compiler
 * generated from gitg-diff-view-file-renderer-text.vala, do not modify */

/*
 * This file is part of gitg
 *
 * Copyright (C) 2016 - 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 <gtksourceview/gtksource.h>
#include <gtk/gtk.h>
#include <libgit2-glib/ggit.h>
#include <gee.h>
#include <gio/gio.h>
#include <cairo.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <gdk/gdk.h>
#include <float.h>
#include <math.h>


#define GITG_TYPE_DIFF_SELECTABLE (gitg_diff_selectable_get_type ())
#define GITG_DIFF_SELECTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIFF_SELECTABLE, GitgDiffSelectable))
#define GITG_IS_DIFF_SELECTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIFF_SELECTABLE))
#define GITG_DIFF_SELECTABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GITG_TYPE_DIFF_SELECTABLE, GitgDiffSelectableIface))

typedef struct _GitgDiffSelectable GitgDiffSelectable;
typedef struct _GitgDiffSelectableIface GitgDiffSelectableIface;

#define GITG_TYPE_PATCH_SET (gitg_patch_set_get_type ())
#define GITG_PATCH_SET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_PATCH_SET, GitgPatchSet))
#define GITG_PATCH_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_PATCH_SET, GitgPatchSetClass))
#define GITG_IS_PATCH_SET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_PATCH_SET))
#define GITG_IS_PATCH_SET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_PATCH_SET))
#define GITG_PATCH_SET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_PATCH_SET, GitgPatchSetClass))

typedef struct _GitgPatchSet GitgPatchSet;
typedef struct _GitgPatchSetClass GitgPatchSetClass;

#define GITG_TYPE_DIFF_VIEW_FILE_RENDERER (gitg_diff_view_file_renderer_get_type ())
#define GITG_DIFF_VIEW_FILE_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIFF_VIEW_FILE_RENDERER, GitgDiffViewFileRenderer))
#define GITG_IS_DIFF_VIEW_FILE_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIFF_VIEW_FILE_RENDERER))
#define GITG_DIFF_VIEW_FILE_RENDERER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GITG_TYPE_DIFF_VIEW_FILE_RENDERER, GitgDiffViewFileRendererIface))

typedef struct _GitgDiffViewFileRenderer GitgDiffViewFileRenderer;
typedef struct _GitgDiffViewFileRendererIface GitgDiffViewFileRendererIface;

#define GITG_TYPE_DIFF_VIEW_FILE_RENDERER_TEXT (gitg_diff_view_file_renderer_text_get_type ())
#define GITG_DIFF_VIEW_FILE_RENDERER_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIFF_VIEW_FILE_RENDERER_TEXT, GitgDiffViewFileRendererText))
#define GITG_DIFF_VIEW_FILE_RENDERER_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_DIFF_VIEW_FILE_RENDERER_TEXT, GitgDiffViewFileRendererTextClass))
#define GITG_IS_DIFF_VIEW_FILE_RENDERER_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIFF_VIEW_FILE_RENDERER_TEXT))
#define GITG_IS_DIFF_VIEW_FILE_RENDERER_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_DIFF_VIEW_FILE_RENDERER_TEXT))
#define GITG_DIFF_VIEW_FILE_RENDERER_TEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_DIFF_VIEW_FILE_RENDERER_TEXT, GitgDiffViewFileRendererTextClass))

typedef struct _GitgDiffViewFileRendererText GitgDiffViewFileRendererText;
typedef struct _GitgDiffViewFileRendererTextClass GitgDiffViewFileRendererTextClass;
typedef struct _GitgDiffViewFileRendererTextPrivate GitgDiffViewFileRendererTextPrivate;

#define GITG_PATCH_SET_TYPE_PATCH (gitg_patch_set_patch_get_type ())

#define GITG_PATCH_SET_TYPE_TYPE (gitg_patch_set_type_get_type ())
typedef struct _GitgPatchSetPatch GitgPatchSetPatch;

#define GITG_TYPE_DIFF_VIEW_FILE_SELECTABLE (gitg_diff_view_file_selectable_get_type ())
#define GITG_DIFF_VIEW_FILE_SELECTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIFF_VIEW_FILE_SELECTABLE, GitgDiffViewFileSelectable))
#define GITG_DIFF_VIEW_FILE_SELECTABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_DIFF_VIEW_FILE_SELECTABLE, GitgDiffViewFileSelectableClass))
#define GITG_IS_DIFF_VIEW_FILE_SELECTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIFF_VIEW_FILE_SELECTABLE))
#define GITG_IS_DIFF_VIEW_FILE_SELECTABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_DIFF_VIEW_FILE_SELECTABLE))
#define GITG_DIFF_VIEW_FILE_SELECTABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_DIFF_VIEW_FILE_SELECTABLE, GitgDiffViewFileSelectableClass))

typedef struct _GitgDiffViewFileSelectable GitgDiffViewFileSelectable;
typedef struct _GitgDiffViewFileSelectableClass GitgDiffViewFileSelectableClass;

#define GITG_TYPE_DIFF_VIEW_LINES_RENDERER (gitg_diff_view_lines_renderer_get_type ())
#define GITG_DIFF_VIEW_LINES_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIFF_VIEW_LINES_RENDERER, GitgDiffViewLinesRenderer))
#define GITG_DIFF_VIEW_LINES_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_DIFF_VIEW_LINES_RENDERER, GitgDiffViewLinesRendererClass))
#define GITG_IS_DIFF_VIEW_LINES_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIFF_VIEW_LINES_RENDERER))
#define GITG_IS_DIFF_VIEW_LINES_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_DIFF_VIEW_LINES_RENDERER))
#define GITG_DIFF_VIEW_LINES_RENDERER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_DIFF_VIEW_LINES_RENDERER, GitgDiffViewLinesRendererClass))

typedef struct _GitgDiffViewLinesRenderer GitgDiffViewLinesRenderer;
typedef struct _GitgDiffViewLinesRendererClass GitgDiffViewLinesRendererClass;

#define GITG_DIFF_VIEW_FILE_RENDERER_TEXT_TYPE_REGION (gitg_diff_view_file_renderer_text_region_get_type ())

#define GITG_DIFF_VIEW_FILE_RENDERER_TEXT_TYPE_REGION_TYPE (gitg_diff_view_file_renderer_text_region_type_get_type ())
typedef struct _GitgDiffViewFileRendererTextRegion GitgDiffViewFileRendererTextRegion;

#define GITG_TYPE_DIFF_VIEW_FILE_INFO (gitg_diff_view_file_info_get_type ())
#define GITG_DIFF_VIEW_FILE_INFO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_DIFF_VIEW_FILE_INFO, GitgDiffViewFileInfo))
#define GITG_DIFF_VIEW_FILE_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_DIFF_VIEW_FILE_INFO, GitgDiffViewFileInfoClass))
#define GITG_IS_DIFF_VIEW_FILE_INFO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_DIFF_VIEW_FILE_INFO))
#define GITG_IS_DIFF_VIEW_FILE_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_DIFF_VIEW_FILE_INFO))
#define GITG_DIFF_VIEW_FILE_INFO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_DIFF_VIEW_FILE_INFO, GitgDiffViewFileInfoClass))

typedef struct _GitgDiffViewFileInfo GitgDiffViewFileInfo;
typedef struct _GitgDiffViewFileInfoClass GitgDiffViewFileInfoClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define GITG_TYPE_REPOSITORY (gitg_repository_get_type ())
#define GITG_REPOSITORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_REPOSITORY, GitgRepository))
#define GITG_REPOSITORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_REPOSITORY, GitgRepositoryClass))
#define GITG_IS_REPOSITORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_REPOSITORY))
#define GITG_IS_REPOSITORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_REPOSITORY))
#define GITG_REPOSITORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_REPOSITORY, GitgRepositoryClass))

typedef struct _GitgRepository GitgRepository;
typedef struct _GitgRepositoryClass GitgRepositoryClass;
typedef struct _GitgDiffViewFileRendererTextInitHighlightingBufferOldData GitgDiffViewFileRendererTextInitHighlightingBufferOldData;
#define _g_free0(var) (var = (g_free (var), NULL))
#define _ggit_diff_file_unref0(var) ((var == NULL) ? NULL : (var = (ggit_diff_file_unref (var), NULL)))
typedef struct _GitgDiffViewFileRendererTextInitHighlightingBufferNewData GitgDiffViewFileRendererTextInitHighlightingBufferNewData;
#define __vala_GgitOId_free0(var) ((var == NULL) ? NULL : (var = (_vala_GgitOId_free (var), NULL)))
#define _g_bytes_unref0(var) ((var == NULL) ? NULL : (var = (g_bytes_unref (var), NULL)))
typedef struct _GitgDiffViewFileRendererTextInitHighlightingBufferData GitgDiffViewFileRendererTextInitHighlightingBufferData;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _GitgDiffViewFileRendererTextInitHighlightingBufferFromStreamData GitgDiffViewFileRendererTextInitHighlightingBufferFromStreamData;
#define _g_slist_free0(var) ((var == NULL) ? NULL : (var = (g_slist_free (var), NULL)))
#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
#define _ggit_diff_line_unref0(var) ((var == NULL) ? NULL : (var = (ggit_diff_line_unref (var), NULL)))
#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))
typedef struct _GitgPatchSetPrivate GitgPatchSetPrivate;
#define _gitg_patch_set_patch_free0(var) ((var == NULL) ? NULL : (var = (gitg_patch_set_patch_free (var), NULL)))
#define _gitg_patch_set_unref0(var) ((var == NULL) ? NULL : (var = (gitg_patch_set_unref (var), NULL)))

#define GITG_DIFF_VIEW_LINES_RENDERER_TYPE_STYLE (gitg_diff_view_lines_renderer_style_get_type ())

struct _GitgDiffSelectableIface {
	GTypeInterface parent_iface;
	gboolean (*get_has_selection) (GitgDiffSelectable* self);
	gboolean (*get_can_select) (GitgDiffSelectable* self);
	void (*set_can_select) (GitgDiffSelectable* self, gboolean value);
	GitgPatchSet* (*get_selection) (GitgDiffSelectable* self);
};

struct _GitgDiffViewFileRendererIface {
	GTypeInterface parent_iface;
	void (*add_hunk) (GitgDiffViewFileRenderer* self, GgitDiffHunk* hunk, GeeArrayList* lines);
};

struct _GitgDiffViewFileRendererText {
	GtkSourceView parent_instance;
	GitgDiffViewFileRendererTextPrivate * priv;
};

struct _GitgDiffViewFileRendererTextClass {
	GtkSourceViewClass parent_class;
};

typedef enum  {
	GITG_PATCH_SET_TYPE_ADD = 'a',
	GITG_PATCH_SET_TYPE_REMOVE = 'r'
} GitgPatchSetType;

struct _GitgPatchSetPatch {
	GitgPatchSetType type;
	gsize old_offset;
	gsize new_offset;
	gsize length;
};

typedef enum  {
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REGION_TYPE_ADDED,
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REGION_TYPE_REMOVED,
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REGION_TYPE_CONTEXT
} GitgDiffViewFileRendererTextRegionType;

struct _GitgDiffViewFileRendererTextRegion {
	GitgDiffViewFileRendererTextRegionType type;
	gint buffer_line_start;
	gint source_line_start;
	gint length;
};

struct _GitgDiffViewFileRendererTextPrivate {
	guint _added;
	guint _removed;
	gint64 d_doffset;
	GeeHashMap* d_lines;
	GitgDiffViewFileSelectable* d_selectable;
	GitgDiffViewLinesRenderer* d_old_lines;
	GitgDiffViewLinesRenderer* d_new_lines;
	GitgDiffViewLinesRenderer* d_sym_lines;
	gboolean d_highlight;
	GCancellable* d_higlight_cancellable;
	GtkSourceBuffer* d_old_highlight_buffer;
	GtkSourceBuffer* d_new_highlight_buffer;
	gboolean d_old_highlight_ready;
	gboolean d_new_highlight_ready;
	GitgDiffViewFileRendererTextRegion* d_regions;
	gint d_regions_length1;
	gint _d_regions_size_;
	gboolean d_constructed;
	gboolean _new_is_workdir;
	gint _maxlines;
	GitgDiffViewFileInfo* _info;
	gboolean d_has_selection;
	gboolean _can_select;
};

struct _GitgDiffViewFileRendererTextInitHighlightingBufferOldData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GitgDiffViewFileRendererText* self;
	GCancellable* cancellable;
	GtkSourceBuffer* buffer;
	GgitDiffDelta* _tmp0_;
	GgitDiffDelta* _tmp1_;
	GgitDiffFile* _tmp2_;
	GCancellable* _tmp3_;
	GtkSourceBuffer* _tmp4_;
	GCancellable* _tmp5_;
	gboolean _tmp6_;
	GtkSourceBuffer* _tmp7_;
	GtkSourceBuffer* _tmp8_;
};

struct _GitgDiffViewFileRendererTextInitHighlightingBufferNewData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GitgDiffViewFileRendererText* self;
	GCancellable* cancellable;
	GtkSourceBuffer* buffer;
	GgitDiffFile* file;
	GgitDiffDelta* _tmp0_;
	GgitDiffDelta* _tmp1_;
	GgitDiffFile* _tmp2_;
	GgitDiffFile* _tmp3_;
	GitgDiffViewFileInfo* _tmp4_;
	GInputStream* _tmp5_;
	GInputStream* _tmp6_;
	GInputStream* stream;
	GitgDiffViewFileInfo* _tmp7_;
	GInputStream* _tmp8_;
	GInputStream* _tmp9_;
	GInputStream* _tmp10_;
	GitgDiffViewFileInfo* _tmp11_;
	GgitDiffDelta* _tmp12_;
	GgitDiffDelta* _tmp13_;
	GgitDiffFile* _tmp14_;
	GgitDiffFile* _tmp15_;
	GFile* _tmp16_;
	GFile* _tmp17_;
	GInputStream* _tmp18_;
	GitgDiffViewFileInfo* _tmp19_;
	const gchar* _tmp20_;
	const gchar* _tmp21_;
	GCancellable* _tmp22_;
	GtkSourceBuffer* _tmp23_;
	GgitDiffDelta* _tmp24_;
	GgitDiffDelta* _tmp25_;
	GgitDiffFile* _tmp26_;
	GitgDiffViewFileInfo* _tmp27_;
	gboolean _tmp28_;
	gboolean _tmp29_;
	GCancellable* _tmp30_;
	GtkSourceBuffer* _tmp31_;
	GCancellable* _tmp32_;
	gboolean _tmp33_;
	GtkSourceBuffer* _tmp34_;
	GtkSourceBuffer* _tmp35_;
};

struct _GitgDiffViewFileRendererTextInitHighlightingBufferData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GitgDiffViewFileRendererText* self;
	GgitDiffFile* file;
	gboolean from_workdir;
	GCancellable* cancellable;
	GtkSourceBuffer* result;
	GgitOId* id;
	GgitDiffFile* _tmp0_;
	GgitOId* _tmp1_;
	GgitOId* _tmp2_;
	GFile* location;
	GgitDiffFile* _tmp3_;
	GFile* _tmp4_;
	gboolean _tmp5_;
	gboolean _tmp6_;
	GgitOId* _tmp7_;
	gboolean _tmp8_;
	gboolean _tmp9_;
	gboolean _tmp10_;
	GFile* _tmp11_;
	gboolean _tmp12_;
	guint8* content;
	gint content_length1;
	gint _content_size_;
	gboolean _tmp13_;
	GgitBlob* blob;
	GgitBlob* _tmp14_;
	GitgRepository* _tmp15_;
	GitgRepository* _tmp16_;
	GgitOId* _tmp17_;
	gpointer _tmp18_;
	GgitBlob* _tmp19_;
	GgitBlob* _tmp20_;
	gsize _tmp21_;
	guint8* _tmp22_;
	guint8* _tmp23_;
	gint _tmp23__length1;
	gchar* etag;
	GFile* _tmp24_;
	GCancellable* _tmp25_;
	guint8* _tmp26_;
	gsize _tmp27_;
	gchar* _tmp28_;
	gboolean uncertain;
	gchar* content_type;
	GFile* _tmp29_;
	gchar* _tmp30_;
	gchar* _tmp31_;
	guint8* _tmp32_;
	gint _tmp32__length1;
	gboolean _tmp33_;
	gchar* _tmp34_;
	gchar* _tmp35_;
	GMemoryInputStream* stream;
	guint8* _tmp36_;
	gint _tmp36__length1;
	GBytes* _tmp37_;
	GBytes* _tmp38_;
	GMemoryInputStream* _tmp39_;
	GMemoryInputStream* _tmp40_;
	GgitDiffFile* _tmp41_;
	GFile* _tmp42_;
	GMemoryInputStream* _tmp43_;
	const gchar* _tmp44_;
	GCancellable* _tmp45_;
	GtkSourceBuffer* _tmp46_;
	GError * _inner_error_;
};

struct _GitgDiffViewFileRendererTextInitHighlightingBufferFromStreamData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GitgDiffViewFileRendererText* self;
	GgitDiffFile* file;
	GFile* location;
	GInputStream* stream;
	gchar* content_type;
	GCancellable* cancellable;
	GtkSourceBuffer* result;
	GtkSourceLanguageManager* manager;
	GtkSourceLanguageManager* _tmp0_;
	GtkSourceLanguageManager* _tmp1_;
	gchar* _tmp2_;
	GFile* _tmp3_;
	GFile* _tmp4_;
	gchar* _tmp5_;
	GtkSourceLanguage* language;
	GtkSourceLanguageManager* _tmp6_;
	const gchar* _tmp7_;
	GtkSourceLanguage* _tmp8_;
	GtkSourceLanguage* _tmp9_;
	GtkSourceLanguage* _tmp10_;
	GtkSourceBuffer* buffer;
	GtkTextBuffer* _tmp11_;
	GtkTextBuffer* _tmp12_;
	GtkTextTagTable* _tmp13_;
	GtkTextTagTable* _tmp14_;
	GtkSourceBuffer* _tmp15_;
	GtkSourceStyleSchemeManager* style_scheme_manager;
	GtkSourceStyleSchemeManager* _tmp16_;
	GtkSourceStyleSchemeManager* _tmp17_;
	GtkSourceBuffer* _tmp18_;
	GtkSourceLanguage* _tmp19_;
	GtkSourceBuffer* _tmp20_;
	GtkSourceBuffer* _tmp21_;
	GtkSourceStyleSchemeManager* _tmp22_;
	GtkSourceStyleScheme* _tmp23_;
	GtkSourceFile* sfile;
	GtkSourceFile* _tmp24_;
	GtkSourceFile* _tmp25_;
	GFile* _tmp26_;
	GtkSourceFileLoader* loader;
	GtkSourceBuffer* _tmp27_;
	GtkSourceFile* _tmp28_;
	GInputStream* _tmp29_;
	GtkSourceFileLoader* _tmp30_;
	GtkSourceFileLoader* _tmp31_;
	GCancellable* _tmp32_;
	GtkSourceBuffer* _tmp33_;
	GError* e;
	GCancellable* _tmp34_;
	gboolean _tmp35_;
	FILE* _tmp36_;
	GgitDiffFile* _tmp37_;
	const gchar* _tmp38_;
	const gchar* _tmp39_;
	GError* _tmp40_;
	const gchar* _tmp41_;
	const gchar* _tmp42_;
	gchar* _tmp43_;
	gchar* _tmp44_;
	GError * _inner_error_;
};

struct _GitgPatchSet {
	GTypeInstance parent_instance;
	volatile int ref_count;
	GitgPatchSetPrivate * priv;
	gchar* filename;
	GitgPatchSetPatch* patches;
	gint patches_length1;
};

struct _GitgPatchSetClass {
	GTypeClass parent_class;
	void (*finalize) (GitgPatchSet *self);
};

typedef enum  {
	GITG_DIFF_VIEW_LINES_RENDERER_STYLE_OLD,
	GITG_DIFF_VIEW_LINES_RENDERER_STYLE_NEW,
	GITG_DIFF_VIEW_LINES_RENDERER_STYLE_SYMBOL
} GitgDiffViewLinesRendererStyle;


static gpointer gitg_diff_view_file_renderer_text_parent_class = NULL;
static GitgDiffSelectableIface* gitg_diff_view_file_renderer_text_gitg_diff_selectable_parent_iface = NULL;
static GitgDiffViewFileRendererIface* gitg_diff_view_file_renderer_text_gitg_diff_view_file_renderer_parent_iface = NULL;

gpointer gitg_patch_set_ref (gpointer instance);
void gitg_patch_set_unref (gpointer instance);
GParamSpec* gitg_param_spec_patch_set (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void gitg_value_set_patch_set (GValue* value, gpointer v_object);
void gitg_value_take_patch_set (GValue* value, gpointer v_object);
gpointer gitg_value_get_patch_set (const GValue* value);
GType gitg_patch_set_get_type (void) G_GNUC_CONST;
GType gitg_diff_selectable_get_type (void) G_GNUC_CONST;
GType gitg_diff_view_file_renderer_get_type (void) G_GNUC_CONST;
GType gitg_diff_view_file_renderer_text_get_type (void) G_GNUC_CONST;
GType gitg_patch_set_patch_get_type (void) G_GNUC_CONST;
GType gitg_patch_set_type_get_type (void) G_GNUC_CONST;
GitgPatchSetPatch* gitg_patch_set_patch_dup (const GitgPatchSetPatch* self);
void gitg_patch_set_patch_free (GitgPatchSetPatch* self);
GType gitg_diff_view_file_selectable_get_type (void) G_GNUC_CONST;
GType gitg_diff_view_lines_renderer_get_type (void) G_GNUC_CONST;
static GType gitg_diff_view_file_renderer_text_region_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
static GType gitg_diff_view_file_renderer_text_region_type_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
static GitgDiffViewFileRendererTextRegion* gitg_diff_view_file_renderer_text_region_dup (const GitgDiffViewFileRendererTextRegion* self);
static void gitg_diff_view_file_renderer_text_region_free (GitgDiffViewFileRendererTextRegion* self);
GType gitg_diff_view_file_info_get_type (void) G_GNUC_CONST;
#define GITG_DIFF_VIEW_FILE_RENDERER_TEXT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_DIFF_VIEW_FILE_RENDERER_TEXT, GitgDiffViewFileRendererTextPrivate))
enum  {
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_DUMMY_PROPERTY,
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_ADDED,
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REMOVED,
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_NEW_IS_WORKDIR,
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_WRAP_LINES,
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_TAB_WIDTH,
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_MAXLINES,
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_INFO,
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_DELTA,
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REPOSITORY,
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_HIGHLIGHT,
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_HAS_SELECTION,
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_CAN_SELECT,
	GITG_DIFF_VIEW_FILE_RENDERER_TEXT_SELECTION
};
GitgDiffViewFileRendererText* gitg_diff_view_file_renderer_text_new (GitgDiffViewFileInfo* info, gboolean can_select);
GitgDiffViewFileRendererText* gitg_diff_view_file_renderer_text_construct (GType object_type, GitgDiffViewFileInfo* info, gboolean can_select);
static void gitg_diff_view_file_renderer_text_real_dispose (GObject* base);
static void gitg_diff_view_file_renderer_text_update_highlight (GitgDiffViewFileRendererText* self);
gboolean gitg_diff_view_file_renderer_text_get_highlight (GitgDiffViewFileRendererText* self);
GType gitg_repository_get_type (void) G_GNUC_CONST;
GitgRepository* gitg_diff_view_file_renderer_text_get_repository (GitgDiffViewFileRendererText* self);
GgitDiffDelta* gitg_diff_view_file_renderer_text_get_delta (GitgDiffViewFileRendererText* self);
static void gitg_diff_view_file_renderer_text_init_highlighting_buffer_old (GitgDiffViewFileRendererText* self, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void gitg_diff_view_file_renderer_text_init_highlighting_buffer_old_finish (GitgDiffViewFileRendererText* self, GAsyncResult* _res_);
static void ___lambda51_ (GitgDiffViewFileRendererText* self, GObject* obj, GAsyncResult* res);
static void ____lambda51__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static void gitg_diff_view_file_renderer_text_init_highlighting_buffer_new (GitgDiffViewFileRendererText* self, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void gitg_diff_view_file_renderer_text_init_highlighting_buffer_new_finish (GitgDiffViewFileRendererText* self, GAsyncResult* _res_);
static void ___lambda52_ (GitgDiffViewFileRendererText* self, GObject* obj, GAsyncResult* res);
static void ____lambda52__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static void gitg_diff_view_file_renderer_text_update_highlighting_ready (GitgDiffViewFileRendererText* self);
static void gitg_diff_view_file_renderer_text_init_highlighting_buffer_old_data_free (gpointer _data);
static gboolean gitg_diff_view_file_renderer_text_init_highlighting_buffer_old_co (GitgDiffViewFileRendererTextInitHighlightingBufferOldData* _data_);
static void gitg_diff_view_file_renderer_text_init_highlighting_buffer (GitgDiffViewFileRendererText* self, GgitDiffFile* file, gboolean from_workdir, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
static GtkSourceBuffer* gitg_diff_view_file_renderer_text_init_highlighting_buffer_finish (GitgDiffViewFileRendererText* self, GAsyncResult* _res_);
static void gitg_diff_view_file_renderer_text_init_highlighting_buffer_old_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static GFile* gitg_diff_view_file_renderer_text_get_file_location (GitgDiffViewFileRendererText* self, GgitDiffFile* file);
static void gitg_diff_view_file_renderer_text_init_highlighting_buffer_new_data_free (gpointer _data);
static gboolean gitg_diff_view_file_renderer_text_init_highlighting_buffer_new_co (GitgDiffViewFileRendererTextInitHighlightingBufferNewData* _data_);
GitgDiffViewFileInfo* gitg_diff_view_file_renderer_text_get_info (GitgDiffViewFileRendererText* self);
GInputStream* gitg_diff_view_file_info_get_new_file_input_stream (GitgDiffViewFileInfo* self);
void gitg_diff_view_file_info_set_new_file_input_stream (GitgDiffViewFileInfo* self, GInputStream* value);
static void gitg_diff_view_file_renderer_text_init_highlighting_buffer_from_stream (GitgDiffViewFileRendererText* self, GgitDiffFile* file, GFile* location, GInputStream* stream, const gchar* content_type, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
static GtkSourceBuffer* gitg_diff_view_file_renderer_text_init_highlighting_buffer_from_stream_finish (GitgDiffViewFileRendererText* self, GAsyncResult* _res_);
const gchar* gitg_diff_view_file_info_get_new_file_content_type (GitgDiffViewFileInfo* self);
static void gitg_diff_view_file_renderer_text_init_highlighting_buffer_new_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
gboolean gitg_diff_view_file_info_get_from_workdir (GitgDiffViewFileInfo* self);
static void gitg_diff_view_file_renderer_text_init_highlighting_buffer_data_free (gpointer _data);
static gboolean gitg_diff_view_file_renderer_text_init_highlighting_buffer_co (GitgDiffViewFileRendererTextInitHighlightingBufferData* _data_);
static GgitOId* _vala_GgitOId_copy (GgitOId* self);
static void _vala_GgitOId_free (GgitOId* self);
gpointer gitg_repository_lookup (GitgRepository* self, GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, GgitOId* id, GError** error);
static guint8* _vala_array_dup9 (guint8* self, int length);
static void gitg_diff_view_file_renderer_text_init_highlighting_buffer_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void gitg_diff_view_file_renderer_text_init_highlighting_buffer_from_stream_data_free (gpointer _data);
static gboolean gitg_diff_view_file_renderer_text_init_highlighting_buffer_from_stream_co (GitgDiffViewFileRendererTextInitHighlightingBufferFromStreamData* _data_);
static void gitg_diff_view_file_renderer_text_init_highlighting_buffer_from_stream_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void gitg_diff_view_file_renderer_text_strip_carriage_returns (GitgDiffViewFileRendererText* self, GtkSourceBuffer* buffer);
static gboolean gitg_diff_view_file_renderer_text_real_draw (GtkWidget* base, cairo_t* cr);
static void gitg_diff_view_file_renderer_text_update_theme (GitgDiffViewFileRendererText* self);
static void gitg_diff_view_file_renderer_text_real_constructed (GObject* base);
static void gitg_diff_view_file_renderer_text_real_add_hunk (GitgDiffViewFileRenderer* base, GgitDiffHunk* hunk, GeeArrayList* lines);
guint gitg_diff_view_file_renderer_text_get_added (GitgDiffViewFileRendererText* self);
void gitg_diff_view_file_renderer_text_set_added (GitgDiffViewFileRendererText* self, guint value);
guint gitg_diff_view_file_renderer_text_get_removed (GitgDiffViewFileRendererText* self);
void gitg_diff_view_file_renderer_text_set_removed (GitgDiffViewFileRendererText* self, guint value);
static void _vala_array_add4 (GitgDiffViewFileRendererTextRegion** array, int* length, int* size, const GitgDiffViewFileRendererTextRegion* value);
static guint8* _vala_array_dup10 (guint8* self, int length);
static void _vala_array_add5 (GitgDiffViewFileRendererTextRegion** array, int* length, int* size, const GitgDiffViewFileRendererTextRegion* value);
void gitg_diff_view_lines_renderer_add_hunk (GitgDiffViewLinesRenderer* self, gint buffer_line_start, gint buffer_line_end, GgitDiffHunk* hunk, GeeArrayList* lines);
gboolean gitg_diff_view_file_renderer_text_get_new_is_workdir (GitgDiffViewFileRendererText* self);
void gitg_diff_view_file_renderer_text_set_new_is_workdir (GitgDiffViewFileRendererText* self, gboolean value);
gboolean gitg_diff_view_file_renderer_text_get_wrap_lines (GitgDiffViewFileRendererText* self);
void gitg_diff_view_file_renderer_text_set_wrap_lines (GitgDiffViewFileRendererText* self, gboolean value);
gint gitg_diff_view_file_renderer_text_get_tab_width (GitgDiffViewFileRendererText* self);
void gitg_diff_view_file_renderer_text_set_tab_width (GitgDiffViewFileRendererText* self, gint value);
gint gitg_diff_view_file_renderer_text_get_maxlines (GitgDiffViewFileRendererText* self);
void gitg_diff_view_file_renderer_text_set_maxlines (GitgDiffViewFileRendererText* self, gint value);
void gitg_diff_view_file_renderer_text_set_info (GitgDiffViewFileRendererText* self, GitgDiffViewFileInfo* value);
GgitDiffDelta* gitg_diff_view_file_info_get_delta (GitgDiffViewFileInfo* self);
GitgRepository* gitg_diff_view_file_info_get_repository (GitgDiffViewFileInfo* self);
void gitg_diff_view_file_renderer_text_set_highlight (GitgDiffViewFileRendererText* self, gboolean value);
GitgPatchSet* gitg_patch_set_new (void);
GitgPatchSet* gitg_patch_set_construct (GType object_type);
gboolean gitg_diff_selectable_get_can_select (GitgDiffSelectable* self);
gint* gitg_diff_view_file_selectable_get_selected_lines (GitgDiffViewFileSelectable* self, int* result_length1);
static void _vala_array_add6 (GitgPatchSetPatch** array, int* length, int* size, const GitgPatchSetPatch* value);
static void _vala_array_add7 (GitgPatchSetPatch** array, int* length, int* size, const GitgPatchSetPatch* value);
static GitgPatchSetPatch* _vala_array_dup11 (GitgPatchSetPatch* self, int length);
static GObject * gitg_diff_view_file_renderer_text_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
GType gitg_diff_view_lines_renderer_style_get_type (void) G_GNUC_CONST;
GitgDiffViewLinesRenderer* gitg_diff_view_lines_renderer_new (GitgDiffViewLinesRendererStyle style);
GitgDiffViewLinesRenderer* gitg_diff_view_lines_renderer_construct (GType object_type, GitgDiffViewLinesRendererStyle style);
static void _gitg_diff_view_file_renderer_text_update_theme_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
GitgDiffViewFileSelectable* gitg_diff_view_file_selectable_new (GtkSourceView* source_view);
GitgDiffViewFileSelectable* gitg_diff_view_file_selectable_construct (GType object_type, GtkSourceView* source_view);
static void _gitg_diff_view_file_renderer_text____lambda53_ (GitgDiffViewFileRendererText* self);
gboolean gitg_diff_view_file_selectable_get_has_selection (GitgDiffViewFileSelectable* self);
static void __gitg_diff_view_file_renderer_text____lambda53__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static void gitg_diff_view_file_renderer_text_finalize (GObject* obj);
gboolean gitg_diff_selectable_get_has_selection (GitgDiffSelectable* self);
GitgPatchSet* gitg_diff_selectable_get_selection (GitgDiffSelectable* self);
static void _vala_gitg_diff_view_file_renderer_text_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
void gitg_diff_selectable_set_can_select (GitgDiffSelectable* self, gboolean value);
static void _vala_gitg_diff_view_file_renderer_text_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


static GType gitg_diff_view_file_renderer_text_region_type_get_type (void) {
	static volatile gsize gitg_diff_view_file_renderer_text_region_type_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_diff_view_file_renderer_text_region_type_type_id__volatile)) {
		static const GEnumValue values[] = {{GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REGION_TYPE_ADDED, "GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REGION_TYPE_ADDED", "added"}, {GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REGION_TYPE_REMOVED, "GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REGION_TYPE_REMOVED", "removed"}, {GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REGION_TYPE_CONTEXT, "GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REGION_TYPE_CONTEXT", "context"}, {0, NULL, NULL}};
		GType gitg_diff_view_file_renderer_text_region_type_type_id;
		gitg_diff_view_file_renderer_text_region_type_type_id = g_enum_register_static ("GitgDiffViewFileRendererTextRegionType", values);
		g_once_init_leave (&gitg_diff_view_file_renderer_text_region_type_type_id__volatile, gitg_diff_view_file_renderer_text_region_type_type_id);
	}
	return gitg_diff_view_file_renderer_text_region_type_type_id__volatile;
}


GitgDiffViewFileRendererText* gitg_diff_view_file_renderer_text_construct (GType object_type, GitgDiffViewFileInfo* info, gboolean can_select) {
	GitgDiffViewFileRendererText * self = NULL;
	GitgDiffViewFileInfo* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
#line 171 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_val_if_fail (info != NULL, NULL);
#line 173 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = info;
#line 173 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = can_select;
#line 173 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self = (GitgDiffViewFileRendererText*) g_object_new (object_type, "info", _tmp0_, "can-select", _tmp1_, NULL);
#line 171 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return self;
#line 608 "gitg-diff-view-file-renderer-text.c"
}


GitgDiffViewFileRendererText* gitg_diff_view_file_renderer_text_new (GitgDiffViewFileInfo* info, gboolean can_select) {
#line 171 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return gitg_diff_view_file_renderer_text_construct (GITG_TYPE_DIFF_VIEW_FILE_RENDERER_TEXT, info, can_select);
#line 615 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_real_dispose (GObject* base) {
	GitgDiffViewFileRendererText * self;
	GCancellable* _tmp0_ = NULL;
#line 215 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self = (GitgDiffViewFileRendererText*) base;
#line 217 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	G_OBJECT_CLASS (gitg_diff_view_file_renderer_text_parent_class)->dispose ((GObject*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_source_view_get_type (), GtkSourceView));
#line 219 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = self->priv->d_higlight_cancellable;
#line 219 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_tmp0_ != NULL) {
#line 630 "gitg-diff-view-file-renderer-text.c"
		GCancellable* _tmp1_ = NULL;
#line 221 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp1_ = self->priv->d_higlight_cancellable;
#line 221 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_cancellable_cancel (_tmp1_);
#line 222 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (self->priv->d_higlight_cancellable);
#line 222 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		self->priv->d_higlight_cancellable = NULL;
#line 640 "gitg-diff-view-file-renderer-text.c"
	}
}


static gpointer _g_object_ref0 (gpointer self) {
#line 248 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return self ? g_object_ref (self) : NULL;
#line 648 "gitg-diff-view-file-renderer-text.c"
}


static void ___lambda51_ (GitgDiffViewFileRendererText* self, GObject* obj, GAsyncResult* res) {
	GAsyncResult* _tmp0_ = NULL;
#line 250 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (res != NULL);
#line 251 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = res;
#line 251 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_file_renderer_text_init_highlighting_buffer_old_finish (self, _tmp0_);
#line 660 "gitg-diff-view-file-renderer-text.c"
}


static void ____lambda51__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 250 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	___lambda51_ ((GitgDiffViewFileRendererText*) self, source_object, res);
#line 250 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_unref (self);
#line 669 "gitg-diff-view-file-renderer-text.c"
}


static void ___lambda52_ (GitgDiffViewFileRendererText* self, GObject* obj, GAsyncResult* res) {
	GAsyncResult* _tmp0_ = NULL;
#line 254 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (res != NULL);
#line 255 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = res;
#line 255 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_file_renderer_text_init_highlighting_buffer_new_finish (self, _tmp0_);
#line 681 "gitg-diff-view-file-renderer-text.c"
}


static void ____lambda52__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 254 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	___lambda52_ ((GitgDiffViewFileRendererText*) self, source_object, res);
#line 254 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_unref (self);
#line 690 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_update_highlight (GitgDiffViewFileRendererText* self) {
	gboolean _tmp0_ = FALSE;
	GCancellable* _tmp1_ = NULL;
	gboolean _tmp3_ = FALSE;
	gboolean _tmp4_ = FALSE;
	gboolean _tmp5_ = FALSE;
	gboolean _tmp6_ = FALSE;
#line 226 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (self != NULL);
#line 228 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = self->priv->d_constructed;
#line 228 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (!_tmp0_) {
#line 230 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		return;
#line 709 "gitg-diff-view-file-renderer-text.c"
	}
#line 233 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = self->priv->d_higlight_cancellable;
#line 233 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_tmp1_ != NULL) {
#line 715 "gitg-diff-view-file-renderer-text.c"
		GCancellable* _tmp2_ = NULL;
#line 235 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp2_ = self->priv->d_higlight_cancellable;
#line 235 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_cancellable_cancel (_tmp2_);
#line 236 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (self->priv->d_higlight_cancellable);
#line 236 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		self->priv->d_higlight_cancellable = NULL;
#line 725 "gitg-diff-view-file-renderer-text.c"
	}
#line 239 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->d_old_highlight_buffer);
#line 239 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->d_old_highlight_buffer = NULL;
#line 240 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->d_new_highlight_buffer);
#line 240 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->d_new_highlight_buffer = NULL;
#line 242 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->d_old_highlight_ready = FALSE;
#line 243 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->d_new_highlight_ready = FALSE;
#line 245 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp5_ = gitg_diff_view_file_renderer_text_get_highlight (self);
#line 245 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp6_ = _tmp5_;
#line 245 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_tmp6_) {
#line 745 "gitg-diff-view-file-renderer-text.c"
		GitgRepository* _tmp7_ = NULL;
		GitgRepository* _tmp8_ = NULL;
#line 245 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp7_ = gitg_diff_view_file_renderer_text_get_repository (self);
#line 245 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp8_ = _tmp7_;
#line 245 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp4_ = _tmp8_ != NULL;
#line 754 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 245 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp4_ = FALSE;
#line 758 "gitg-diff-view-file-renderer-text.c"
	}
#line 245 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_tmp4_) {
#line 762 "gitg-diff-view-file-renderer-text.c"
		GgitDiffDelta* _tmp9_ = NULL;
		GgitDiffDelta* _tmp10_ = NULL;
#line 245 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp9_ = gitg_diff_view_file_renderer_text_get_delta (self);
#line 245 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp10_ = _tmp9_;
#line 245 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp3_ = _tmp10_ != NULL;
#line 771 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 245 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp3_ = FALSE;
#line 775 "gitg-diff-view-file-renderer-text.c"
	}
#line 245 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_tmp3_) {
#line 779 "gitg-diff-view-file-renderer-text.c"
		GCancellable* cancellable = NULL;
		GCancellable* _tmp11_ = NULL;
		GCancellable* _tmp12_ = NULL;
		GCancellable* _tmp13_ = NULL;
		GCancellable* _tmp14_ = NULL;
		GCancellable* _tmp15_ = NULL;
#line 247 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp11_ = g_cancellable_new ();
#line 247 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		cancellable = _tmp11_;
#line 248 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp12_ = cancellable;
#line 248 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp13_ = _g_object_ref0 (_tmp12_);
#line 248 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (self->priv->d_higlight_cancellable);
#line 248 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		self->priv->d_higlight_cancellable = _tmp13_;
#line 250 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp14_ = cancellable;
#line 250 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_init_highlighting_buffer_old (self, _tmp14_, ____lambda51__gasync_ready_callback, g_object_ref (self));
#line 254 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp15_ = cancellable;
#line 254 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_init_highlighting_buffer_new (self, _tmp15_, ____lambda52__gasync_ready_callback, g_object_ref (self));
#line 245 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (cancellable);
#line 808 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 260 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_update_highlighting_ready (self);
#line 812 "gitg-diff-view-file-renderer-text.c"
	}
}


static void gitg_diff_view_file_renderer_text_init_highlighting_buffer_old_data_free (gpointer _data) {
	GitgDiffViewFileRendererTextInitHighlightingBufferOldData* _data_;
	_data_ = _data;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->cancellable);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->self);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_slice_free (GitgDiffViewFileRendererTextInitHighlightingBufferOldData, _data_);
#line 826 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_init_highlighting_buffer_old (GitgDiffViewFileRendererText* self, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GitgDiffViewFileRendererTextInitHighlightingBufferOldData* _data_;
	GitgDiffViewFileRendererText* _tmp0_ = NULL;
	GCancellable* _tmp1_ = NULL;
	GCancellable* _tmp2_ = NULL;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_ = g_slice_new0 (GitgDiffViewFileRendererTextInitHighlightingBufferOldData);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, gitg_diff_view_file_renderer_text_init_highlighting_buffer_old);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, gitg_diff_view_file_renderer_text_init_highlighting_buffer_old_data_free);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->self = _tmp0_;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = cancellable;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->cancellable);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->cancellable = _tmp2_;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_file_renderer_text_init_highlighting_buffer_old_co (_data_);
#line 855 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_init_highlighting_buffer_old_finish (GitgDiffViewFileRendererText* self, GAsyncResult* _res_) {
	GitgDiffViewFileRendererTextInitHighlightingBufferOldData* _data_;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 863 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_init_highlighting_buffer_old_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	GitgDiffViewFileRendererTextInitHighlightingBufferOldData* _data_;
#line 266 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_ = _user_data_;
#line 266 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_source_object_ = source_object;
#line 266 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_res_ = _res_;
#line 266 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_file_renderer_text_init_highlighting_buffer_old_co (_data_);
#line 877 "gitg-diff-view-file-renderer-text.c"
}


static gboolean gitg_diff_view_file_renderer_text_init_highlighting_buffer_old_co (GitgDiffViewFileRendererTextInitHighlightingBufferOldData* _data_) {
#line 264 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	switch (_data_->_state_) {
#line 264 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case 0:
#line 886 "gitg-diff-view-file-renderer-text.c"
		goto _state_0;
#line 264 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case 1:
#line 890 "gitg-diff-view-file-renderer-text.c"
		goto _state_1;
		default:
#line 264 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_assert_not_reached ();
#line 895 "gitg-diff-view-file-renderer-text.c"
	}
	_state_0:
#line 266 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp0_ = NULL;
#line 266 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp0_ = gitg_diff_view_file_renderer_text_get_delta (_data_->self);
#line 266 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp1_ = NULL;
#line 266 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp1_ = _data_->_tmp0_;
#line 266 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp2_ = NULL;
#line 266 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp2_ = ggit_diff_delta_get_old_file (_data_->_tmp1_);
#line 266 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp3_ = NULL;
#line 266 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp3_ = _data_->cancellable;
#line 266 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_state_ = 1;
#line 266 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_file_renderer_text_init_highlighting_buffer (_data_->self, _data_->_tmp2_, FALSE, _data_->_tmp3_, gitg_diff_view_file_renderer_text_init_highlighting_buffer_old_ready, _data_);
#line 266 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return FALSE;
#line 920 "gitg-diff-view-file-renderer-text.c"
	_state_1:
#line 266 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp4_ = NULL;
#line 266 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp4_ = gitg_diff_view_file_renderer_text_init_highlighting_buffer_finish (_data_->self, _data_->_res_);
#line 266 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->buffer = _data_->_tmp4_;
#line 268 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp5_ = NULL;
#line 268 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp5_ = _data_->cancellable;
#line 268 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp6_ = FALSE;
#line 268 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp6_ = g_cancellable_is_cancelled (_data_->_tmp5_);
#line 268 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (!_data_->_tmp6_) {
#line 270 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp7_ = NULL;
#line 270 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp7_ = _data_->buffer;
#line 270 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp8_ = NULL;
#line 270 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp8_ = _g_object_ref0 (_data_->_tmp7_);
#line 270 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->self->priv->d_old_highlight_buffer);
#line 270 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->self->priv->d_old_highlight_buffer = _data_->_tmp8_;
#line 271 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->self->priv->d_old_highlight_ready = TRUE;
#line 273 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_update_highlighting_ready (_data_->self);
#line 954 "gitg-diff-view-file-renderer-text.c"
	}
#line 264 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->buffer);
#line 264 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_data_->_state_ == 0) {
#line 264 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 962 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 264 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 966 "gitg-diff-view-file-renderer-text.c"
	}
#line 264 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_unref (_data_->_async_result);
#line 264 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return FALSE;
#line 972 "gitg-diff-view-file-renderer-text.c"
}


static GFile* gitg_diff_view_file_renderer_text_get_file_location (GitgDiffViewFileRendererText* self, GgitDiffFile* file) {
	GFile* result = NULL;
	gchar* path = NULL;
	GgitDiffFile* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	GFile* workdir = NULL;
	GitgRepository* _tmp4_ = NULL;
	GitgRepository* _tmp5_ = NULL;
	GFile* _tmp6_ = NULL;
	GFile* _tmp7_ = NULL;
	GFile* _tmp8_ = NULL;
	const gchar* _tmp9_ = NULL;
	GFile* _tmp10_ = NULL;
#line 277 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 277 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_val_if_fail (file != NULL, NULL);
#line 279 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = file;
#line 279 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = ggit_diff_file_get_path (_tmp0_);
#line 279 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp2_ = g_strdup (_tmp1_);
#line 279 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	path = _tmp2_;
#line 281 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp3_ = path;
#line 281 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_tmp3_ == NULL) {
#line 283 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		result = NULL;
#line 283 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_free0 (path);
#line 283 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		return result;
#line 1013 "gitg-diff-view-file-renderer-text.c"
	}
#line 286 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp4_ = gitg_diff_view_file_renderer_text_get_repository (self);
#line 286 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp5_ = _tmp4_;
#line 286 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp6_ = ggit_repository_get_workdir ((GgitRepository*) _tmp5_);
#line 286 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	workdir = _tmp6_;
#line 288 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp7_ = workdir;
#line 288 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_tmp7_ == NULL) {
#line 290 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		result = NULL;
#line 290 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (workdir);
#line 290 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_free0 (path);
#line 290 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		return result;
#line 1035 "gitg-diff-view-file-renderer-text.c"
	}
#line 293 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp8_ = workdir;
#line 293 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp9_ = path;
#line 293 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp10_ = g_file_get_child (_tmp8_, _tmp9_);
#line 293 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = _tmp10_;
#line 293 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (workdir);
#line 293 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (path);
#line 293 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 1051 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_init_highlighting_buffer_new_data_free (gpointer _data) {
	GitgDiffViewFileRendererTextInitHighlightingBufferNewData* _data_;
	_data_ = _data;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->cancellable);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->self);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_slice_free (GitgDiffViewFileRendererTextInitHighlightingBufferNewData, _data_);
#line 1064 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_init_highlighting_buffer_new (GitgDiffViewFileRendererText* self, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GitgDiffViewFileRendererTextInitHighlightingBufferNewData* _data_;
	GitgDiffViewFileRendererText* _tmp0_ = NULL;
	GCancellable* _tmp1_ = NULL;
	GCancellable* _tmp2_ = NULL;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_ = g_slice_new0 (GitgDiffViewFileRendererTextInitHighlightingBufferNewData);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, gitg_diff_view_file_renderer_text_init_highlighting_buffer_new);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, gitg_diff_view_file_renderer_text_init_highlighting_buffer_new_data_free);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->self = _tmp0_;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = cancellable;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->cancellable);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->cancellable = _tmp2_;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_file_renderer_text_init_highlighting_buffer_new_co (_data_);
#line 1093 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_init_highlighting_buffer_new_finish (GitgDiffViewFileRendererText* self, GAsyncResult* _res_) {
	GitgDiffViewFileRendererTextInitHighlightingBufferNewData* _data_;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1101 "gitg-diff-view-file-renderer-text.c"
}


static gpointer _ggit_diff_file_ref0 (gpointer self) {
#line 300 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return self ? ggit_diff_file_ref (self) : NULL;
#line 1108 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_init_highlighting_buffer_new_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	GitgDiffViewFileRendererTextInitHighlightingBufferNewData* _data_;
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_ = _user_data_;
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_source_object_ = source_object;
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_res_ = _res_;
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_file_renderer_text_init_highlighting_buffer_new_co (_data_);
#line 1122 "gitg-diff-view-file-renderer-text.c"
}


static gboolean gitg_diff_view_file_renderer_text_init_highlighting_buffer_new_co (GitgDiffViewFileRendererTextInitHighlightingBufferNewData* _data_) {
#line 296 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	switch (_data_->_state_) {
#line 296 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case 0:
#line 1131 "gitg-diff-view-file-renderer-text.c"
		goto _state_0;
#line 296 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case 1:
#line 1135 "gitg-diff-view-file-renderer-text.c"
		goto _state_1;
#line 296 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case 2:
#line 1139 "gitg-diff-view-file-renderer-text.c"
		goto _state_2;
		default:
#line 296 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_assert_not_reached ();
#line 1144 "gitg-diff-view-file-renderer-text.c"
	}
	_state_0:
#line 300 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp0_ = NULL;
#line 300 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp0_ = gitg_diff_view_file_renderer_text_get_delta (_data_->self);
#line 300 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp1_ = NULL;
#line 300 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp1_ = _data_->_tmp0_;
#line 300 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp2_ = NULL;
#line 300 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp2_ = ggit_diff_delta_get_new_file (_data_->_tmp1_);
#line 300 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp3_ = NULL;
#line 300 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp3_ = _ggit_diff_file_ref0 (_data_->_tmp2_);
#line 300 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->file = _data_->_tmp3_;
#line 302 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp4_ = NULL;
#line 302 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp4_ = _data_->self->priv->_info;
#line 302 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp5_ = NULL;
#line 302 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp5_ = gitg_diff_view_file_info_get_new_file_input_stream (_data_->_tmp4_);
#line 302 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp6_ = NULL;
#line 302 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp6_ = _data_->_tmp5_;
#line 302 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_data_->_tmp6_ != NULL) {
#line 305 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp7_ = NULL;
#line 305 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp7_ = _data_->self->priv->_info;
#line 305 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp8_ = NULL;
#line 305 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp8_ = gitg_diff_view_file_info_get_new_file_input_stream (_data_->_tmp7_);
#line 305 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp9_ = NULL;
#line 305 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp9_ = _data_->_tmp8_;
#line 305 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp10_ = NULL;
#line 305 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp10_ = _g_object_ref0 (_data_->_tmp9_);
#line 305 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->stream = _data_->_tmp10_;
#line 306 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp11_ = NULL;
#line 306 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp11_ = _data_->self->priv->_info;
#line 306 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_info_set_new_file_input_stream (_data_->_tmp11_, NULL);
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp12_ = NULL;
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp12_ = gitg_diff_view_file_renderer_text_get_delta (_data_->self);
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp13_ = NULL;
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp13_ = _data_->_tmp12_;
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp14_ = NULL;
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp14_ = ggit_diff_delta_get_new_file (_data_->_tmp13_);
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp15_ = NULL;
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp15_ = _data_->file;
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp16_ = NULL;
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp16_ = gitg_diff_view_file_renderer_text_get_file_location (_data_->self, _data_->_tmp15_);
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp17_ = NULL;
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp17_ = _data_->_tmp16_;
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp18_ = NULL;
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp18_ = _data_->stream;
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp19_ = NULL;
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp19_ = _data_->self->priv->_info;
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp20_ = NULL;
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp20_ = gitg_diff_view_file_info_get_new_file_content_type (_data_->_tmp19_);
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp21_ = NULL;
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp21_ = _data_->_tmp20_;
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp22_ = NULL;
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp22_ = _data_->cancellable;
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_state_ = 1;
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_init_highlighting_buffer_from_stream (_data_->self, _data_->_tmp14_, _data_->_tmp17_, _data_->_tmp18_, _data_->_tmp21_, _data_->_tmp22_, gitg_diff_view_file_renderer_text_init_highlighting_buffer_new_ready, _data_);
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		return FALSE;
#line 1253 "gitg-diff-view-file-renderer-text.c"
		_state_1:
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp23_ = NULL;
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp23_ = gitg_diff_view_file_renderer_text_init_highlighting_buffer_from_stream_finish (_data_->self, _data_->_res_);
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->buffer);
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->buffer = _data_->_tmp23_;
#line 308 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->_tmp17_);
#line 302 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->stream);
#line 1267 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp24_ = NULL;
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp24_ = gitg_diff_view_file_renderer_text_get_delta (_data_->self);
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp25_ = NULL;
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp25_ = _data_->_tmp24_;
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp26_ = NULL;
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp26_ = ggit_diff_delta_get_new_file (_data_->_tmp25_);
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp27_ = NULL;
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp27_ = _data_->self->priv->_info;
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp28_ = FALSE;
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp28_ = gitg_diff_view_file_info_get_from_workdir (_data_->_tmp27_);
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp29_ = FALSE;
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp29_ = _data_->_tmp28_;
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp30_ = NULL;
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp30_ = _data_->cancellable;
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_state_ = 2;
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_init_highlighting_buffer (_data_->self, _data_->_tmp26_, _data_->_tmp29_, _data_->_tmp30_, gitg_diff_view_file_renderer_text_init_highlighting_buffer_new_ready, _data_);
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		return FALSE;
#line 1303 "gitg-diff-view-file-renderer-text.c"
		_state_2:
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp31_ = NULL;
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp31_ = gitg_diff_view_file_renderer_text_init_highlighting_buffer_finish (_data_->self, _data_->_res_);
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->buffer);
#line 316 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->buffer = _data_->_tmp31_;
#line 1313 "gitg-diff-view-file-renderer-text.c"
	}
#line 319 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp32_ = NULL;
#line 319 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp32_ = _data_->cancellable;
#line 319 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp33_ = FALSE;
#line 319 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp33_ = g_cancellable_is_cancelled (_data_->_tmp32_);
#line 319 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (!_data_->_tmp33_) {
#line 321 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp34_ = NULL;
#line 321 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp34_ = _data_->buffer;
#line 321 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp35_ = NULL;
#line 321 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp35_ = _g_object_ref0 (_data_->_tmp34_);
#line 321 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->self->priv->d_new_highlight_buffer);
#line 321 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->self->priv->d_new_highlight_buffer = _data_->_tmp35_;
#line 322 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->self->priv->d_new_highlight_ready = TRUE;
#line 324 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_update_highlighting_ready (_data_->self);
#line 1341 "gitg-diff-view-file-renderer-text.c"
	}
#line 296 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_ggit_diff_file_unref0 (_data_->file);
#line 296 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->buffer);
#line 296 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_data_->_state_ == 0) {
#line 296 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1351 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 296 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1355 "gitg-diff-view-file-renderer-text.c"
	}
#line 296 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_unref (_data_->_async_result);
#line 296 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return FALSE;
#line 1361 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_init_highlighting_buffer_data_free (gpointer _data) {
	GitgDiffViewFileRendererTextInitHighlightingBufferData* _data_;
	_data_ = _data;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_ggit_diff_file_unref0 (_data_->file);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->cancellable);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->result);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->self);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_slice_free (GitgDiffViewFileRendererTextInitHighlightingBufferData, _data_);
#line 1378 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_init_highlighting_buffer (GitgDiffViewFileRendererText* self, GgitDiffFile* file, gboolean from_workdir, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GitgDiffViewFileRendererTextInitHighlightingBufferData* _data_;
	GitgDiffViewFileRendererText* _tmp0_ = NULL;
	GgitDiffFile* _tmp1_ = NULL;
	GgitDiffFile* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
	GCancellable* _tmp4_ = NULL;
	GCancellable* _tmp5_ = NULL;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_ = g_slice_new0 (GitgDiffViewFileRendererTextInitHighlightingBufferData);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, gitg_diff_view_file_renderer_text_init_highlighting_buffer);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, gitg_diff_view_file_renderer_text_init_highlighting_buffer_data_free);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->self = _tmp0_;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = file;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp2_ = _ggit_diff_file_ref0 (_tmp1_);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_ggit_diff_file_unref0 (_data_->file);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->file = _tmp2_;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp3_ = from_workdir;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->from_workdir = _tmp3_;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp4_ = cancellable;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp5_ = _g_object_ref0 (_tmp4_);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->cancellable);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->cancellable = _tmp5_;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_file_renderer_text_init_highlighting_buffer_co (_data_);
#line 1422 "gitg-diff-view-file-renderer-text.c"
}


static GtkSourceBuffer* gitg_diff_view_file_renderer_text_init_highlighting_buffer_finish (GitgDiffViewFileRendererText* self, GAsyncResult* _res_) {
	GtkSourceBuffer* result;
	GitgDiffViewFileRendererTextInitHighlightingBufferData* _data_;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = _data_->result;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->result = NULL;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 1437 "gitg-diff-view-file-renderer-text.c"
}


static GgitOId* _vala_GgitOId_copy (GgitOId* self) {
#line 330 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return g_boxed_copy (ggit_oid_get_type (), self);
#line 1444 "gitg-diff-view-file-renderer-text.c"
}


static gpointer __vala_GgitOId_copy0 (gpointer self) {
#line 330 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return self ? _vala_GgitOId_copy (self) : NULL;
#line 1451 "gitg-diff-view-file-renderer-text.c"
}


static void _vala_GgitOId_free (GgitOId* self) {
#line 335 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_boxed_free (ggit_oid_get_type (), self);
#line 1458 "gitg-diff-view-file-renderer-text.c"
}


static guint8* _vala_array_dup9 (guint8* self, int length) {
#line 353 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return g_memdup (self, length * sizeof (guint8));
#line 1465 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_init_highlighting_buffer_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	GitgDiffViewFileRendererTextInitHighlightingBufferData* _data_;
#line 364 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_ = _user_data_;
#line 364 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_source_object_ = source_object;
#line 364 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_res_ = _res_;
#line 364 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_file_renderer_text_init_highlighting_buffer_co (_data_);
#line 1479 "gitg-diff-view-file-renderer-text.c"
}


static gboolean gitg_diff_view_file_renderer_text_init_highlighting_buffer_co (GitgDiffViewFileRendererTextInitHighlightingBufferData* _data_) {
#line 328 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	switch (_data_->_state_) {
#line 328 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case 0:
#line 1488 "gitg-diff-view-file-renderer-text.c"
		goto _state_0;
#line 328 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case 1:
#line 1492 "gitg-diff-view-file-renderer-text.c"
		goto _state_1;
#line 328 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case 2:
#line 1496 "gitg-diff-view-file-renderer-text.c"
		goto _state_2;
		default:
#line 328 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_assert_not_reached ();
#line 1501 "gitg-diff-view-file-renderer-text.c"
	}
	_state_0:
#line 330 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp0_ = NULL;
#line 330 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp0_ = _data_->file;
#line 330 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp1_ = NULL;
#line 330 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp1_ = ggit_diff_file_get_oid (_data_->_tmp0_);
#line 330 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp2_ = NULL;
#line 330 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp2_ = __vala_GgitOId_copy0 (_data_->_tmp1_);
#line 330 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->id = _data_->_tmp2_;
#line 331 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp3_ = NULL;
#line 331 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp3_ = _data_->file;
#line 331 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp4_ = NULL;
#line 331 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp4_ = gitg_diff_view_file_renderer_text_get_file_location (_data_->self, _data_->_tmp3_);
#line 331 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->location = _data_->_tmp4_;
#line 333 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp7_ = NULL;
#line 333 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp7_ = _data_->id;
#line 333 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp8_ = FALSE;
#line 333 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp8_ = ggit_oid_is_zero (_data_->_tmp7_);
#line 333 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_data_->_tmp8_) {
#line 333 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp9_ = FALSE;
#line 333 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp9_ = _data_->from_workdir;
#line 333 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp6_ = !_data_->_tmp9_;
#line 1544 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 333 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp6_ = FALSE;
#line 1548 "gitg-diff-view-file-renderer-text.c"
	}
#line 333 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_data_->_tmp6_) {
#line 333 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp5_ = TRUE;
#line 1554 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 333 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp11_ = NULL;
#line 333 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp11_ = _data_->location;
#line 333 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		if (_data_->_tmp11_ == NULL) {
#line 333 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp12_ = FALSE;
#line 333 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp12_ = _data_->from_workdir;
#line 333 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp10_ = _data_->_tmp12_;
#line 1568 "gitg-diff-view-file-renderer-text.c"
		} else {
#line 333 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp10_ = FALSE;
#line 1572 "gitg-diff-view-file-renderer-text.c"
		}
#line 333 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp5_ = _data_->_tmp10_;
#line 1576 "gitg-diff-view-file-renderer-text.c"
	}
#line 333 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_data_->_tmp5_) {
#line 335 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->result = NULL;
#line 335 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->location);
#line 335 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		__vala_GgitOId_free0 (_data_->id);
#line 335 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		if (_data_->_state_ == 0) {
#line 335 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1590 "gitg-diff-view-file-renderer-text.c"
		} else {
#line 335 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1594 "gitg-diff-view-file-renderer-text.c"
		}
#line 335 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_object_unref (_data_->_async_result);
#line 335 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		return FALSE;
#line 1600 "gitg-diff-view-file-renderer-text.c"
	}
#line 338 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->content_length1 = 0;
#line 338 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_content_size_ = 0;
#line 340 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp13_ = FALSE;
#line 340 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp13_ = _data_->from_workdir;
#line 340 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (!_data_->_tmp13_) {
#line 1612 "gitg-diff-view-file-renderer-text.c"
		{
#line 346 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp15_ = NULL;
#line 346 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp15_ = gitg_diff_view_file_renderer_text_get_repository (_data_->self);
#line 346 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp16_ = NULL;
#line 346 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp16_ = _data_->_tmp15_;
#line 346 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp17_ = NULL;
#line 346 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp17_ = _data_->id;
#line 346 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp18_ = NULL;
#line 346 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp18_ = gitg_repository_lookup (_data_->_tmp16_, ggit_blob_get_type (), (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _data_->_tmp17_, &_data_->_inner_error_);
#line 346 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp14_ = (GgitBlob*) _data_->_tmp18_;
#line 346 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 1634 "gitg-diff-view-file-renderer-text.c"
				goto __catch41_g_error;
			}
#line 346 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp19_ = NULL;
#line 346 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp19_ = _data_->_tmp14_;
#line 346 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp14_ = NULL;
#line 346 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_g_object_unref0 (_data_->blob);
#line 346 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->blob = _data_->_tmp19_;
#line 344 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_g_object_unref0 (_data_->_tmp14_);
#line 1649 "gitg-diff-view-file-renderer-text.c"
		}
		goto __finally41;
		__catch41_g_error:
		{
#line 344 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			g_clear_error (&_data_->_inner_error_);
#line 344 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_inner_error_ = NULL;
#line 350 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->result = NULL;
#line 350 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_g_object_unref0 (_data_->blob);
#line 350 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->content = (g_free (_data_->content), NULL);
#line 350 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_g_object_unref0 (_data_->location);
#line 350 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			__vala_GgitOId_free0 (_data_->id);
#line 350 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			if (_data_->_state_ == 0) {
#line 350 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1672 "gitg-diff-view-file-renderer-text.c"
			} else {
#line 350 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 1676 "gitg-diff-view-file-renderer-text.c"
			}
#line 350 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			g_object_unref (_data_->_async_result);
#line 350 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			return FALSE;
#line 1682 "gitg-diff-view-file-renderer-text.c"
		}
		__finally41:
#line 344 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 344 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_g_object_unref0 (_data_->blob);
#line 344 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->content = (g_free (_data_->content), NULL);
#line 344 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_g_object_unref0 (_data_->location);
#line 344 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			__vala_GgitOId_free0 (_data_->id);
#line 344 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.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 344 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			g_clear_error (&_data_->_inner_error_);
#line 344 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			return FALSE;
#line 1701 "gitg-diff-view-file-renderer-text.c"
		}
#line 353 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp20_ = NULL;
#line 353 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp20_ = _data_->blob;
#line 353 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		memset (&_data_->_tmp21_, 0, sizeof (gsize));
#line 353 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp22_ = NULL;
#line 353 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp22_ = ggit_blob_get_raw_content (_data_->_tmp20_, &_data_->_tmp21_);
#line 353 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp23_ = NULL;
#line 353 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp23__length1 = 0;
#line 353 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp23_ = (_data_->_tmp22_ != NULL) ? _vala_array_dup9 (_data_->_tmp22_, _data_->_tmp21_) : ((gpointer) _data_->_tmp22_);
#line 353 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp23__length1 = _data_->_tmp21_;
#line 353 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->content = (g_free (_data_->content), NULL);
#line 353 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->content = _data_->_tmp23_;
#line 353 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->content_length1 = _data_->_tmp23__length1;
#line 353 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_content_size_ = _data_->content_length1;
#line 340 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->blob);
#line 1731 "gitg-diff-view-file-renderer-text.c"
	} else {
		{
#line 364 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp24_ = NULL;
#line 364 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp24_ = _data_->location;
#line 364 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp25_ = NULL;
#line 364 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp25_ = _data_->cancellable;
#line 364 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp26_ = NULL;
#line 364 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			memset (&_data_->_tmp27_, 0, sizeof (gsize));
#line 364 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp28_ = NULL;
#line 364 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_state_ = 1;
#line 364 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			g_file_load_contents_async (_data_->_tmp24_, _data_->_tmp25_, gitg_diff_view_file_renderer_text_init_highlighting_buffer_ready, _data_);
#line 364 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			return FALSE;
#line 1754 "gitg-diff-view-file-renderer-text.c"
			_state_1:
#line 364 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			g_file_load_contents_finish (_data_->_tmp24_, _data_->_res_, &_data_->_tmp26_, &_data_->_tmp27_, &_data_->_tmp28_, &_data_->_inner_error_);
#line 364 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->content = (g_free (_data_->content), NULL);
#line 364 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->content = _data_->_tmp26_;
#line 364 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->content_length1 = _data_->_tmp27_;
#line 364 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_content_size_ = _data_->content_length1;
#line 364 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_g_free0 (_data_->etag);
#line 364 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->etag = _data_->_tmp28_;
#line 364 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 364 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_g_free0 (_data_->etag);
#line 1774 "gitg-diff-view-file-renderer-text.c"
				goto __catch42_g_error;
			}
#line 358 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_g_free0 (_data_->etag);
#line 1779 "gitg-diff-view-file-renderer-text.c"
		}
		goto __finally42;
		__catch42_g_error:
		{
#line 358 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			g_clear_error (&_data_->_inner_error_);
#line 358 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_inner_error_ = NULL;
#line 368 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->result = NULL;
#line 368 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->content = (g_free (_data_->content), NULL);
#line 368 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_g_object_unref0 (_data_->location);
#line 368 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			__vala_GgitOId_free0 (_data_->id);
#line 368 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			if (_data_->_state_ == 0) {
#line 368 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1800 "gitg-diff-view-file-renderer-text.c"
			} else {
#line 368 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 1804 "gitg-diff-view-file-renderer-text.c"
			}
#line 368 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			g_object_unref (_data_->_async_result);
#line 368 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			return FALSE;
#line 1810 "gitg-diff-view-file-renderer-text.c"
		}
		__finally42:
#line 358 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 358 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->content = (g_free (_data_->content), NULL);
#line 358 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_g_object_unref0 (_data_->location);
#line 358 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			__vala_GgitOId_free0 (_data_->id);
#line 358 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.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 358 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			g_clear_error (&_data_->_inner_error_);
#line 358 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			return FALSE;
#line 1827 "gitg-diff-view-file-renderer-text.c"
		}
	}
#line 373 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp29_ = NULL;
#line 373 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp29_ = _data_->location;
#line 373 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp30_ = NULL;
#line 373 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp30_ = g_file_get_basename (_data_->_tmp29_);
#line 373 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp31_ = NULL;
#line 373 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp31_ = _data_->_tmp30_;
#line 373 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp32_ = NULL;
#line 373 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp32__length1 = 0;
#line 373 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp32_ = _data_->content;
#line 373 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp32__length1 = _data_->content_length1;
#line 373 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp33_ = FALSE;
#line 373 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp34_ = NULL;
#line 373 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp34_ = g_content_type_guess (_data_->_tmp31_, _data_->_tmp32_, (gsize) _data_->_tmp32__length1, &_data_->_tmp33_);
#line 373 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->uncertain = _data_->_tmp33_;
#line 373 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp35_ = NULL;
#line 373 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp35_ = _data_->_tmp34_;
#line 373 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (_data_->_tmp31_);
#line 373 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->content_type = _data_->_tmp35_;
#line 375 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp36_ = NULL;
#line 375 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp36__length1 = 0;
#line 375 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp36_ = _data_->content;
#line 375 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp36__length1 = _data_->content_length1;
#line 375 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp37_ = NULL;
#line 375 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp37_ = g_bytes_new (_data_->_tmp36_, _data_->_tmp36__length1);
#line 375 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp38_ = NULL;
#line 375 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp38_ = _data_->_tmp37_;
#line 375 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp39_ = NULL;
#line 375 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp39_ = (GMemoryInputStream*) g_memory_input_stream_new_from_bytes (_data_->_tmp38_);
#line 375 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp40_ = NULL;
#line 375 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp40_ = _data_->_tmp39_;
#line 375 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_bytes_unref0 (_data_->_tmp38_);
#line 375 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->stream = _data_->_tmp40_;
#line 377 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp41_ = NULL;
#line 377 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp41_ = _data_->file;
#line 377 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp42_ = NULL;
#line 377 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp42_ = _data_->location;
#line 377 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp43_ = NULL;
#line 377 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp43_ = _data_->stream;
#line 377 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp44_ = NULL;
#line 377 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp44_ = _data_->content_type;
#line 377 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp45_ = NULL;
#line 377 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp45_ = _data_->cancellable;
#line 377 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_state_ = 2;
#line 377 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_file_renderer_text_init_highlighting_buffer_from_stream (_data_->self, _data_->_tmp41_, _data_->_tmp42_, (GInputStream*) _data_->_tmp43_, _data_->_tmp44_, _data_->_tmp45_, gitg_diff_view_file_renderer_text_init_highlighting_buffer_ready, _data_);
#line 377 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return FALSE;
#line 1920 "gitg-diff-view-file-renderer-text.c"
	_state_2:
#line 377 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp46_ = NULL;
#line 377 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp46_ = gitg_diff_view_file_renderer_text_init_highlighting_buffer_from_stream_finish (_data_->self, _data_->_res_);
#line 377 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->result = _data_->_tmp46_;
#line 377 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->stream);
#line 377 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (_data_->content_type);
#line 377 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->content = (g_free (_data_->content), NULL);
#line 377 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->location);
#line 377 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	__vala_GgitOId_free0 (_data_->id);
#line 377 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_data_->_state_ == 0) {
#line 377 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1942 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 377 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1946 "gitg-diff-view-file-renderer-text.c"
	}
#line 377 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_unref (_data_->_async_result);
#line 377 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return FALSE;
#line 328 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->stream);
#line 328 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (_data_->content_type);
#line 328 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->content = (g_free (_data_->content), NULL);
#line 328 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->location);
#line 328 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	__vala_GgitOId_free0 (_data_->id);
#line 328 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_data_->_state_ == 0) {
#line 328 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1966 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 328 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1970 "gitg-diff-view-file-renderer-text.c"
	}
#line 328 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_unref (_data_->_async_result);
#line 328 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return FALSE;
#line 1976 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_init_highlighting_buffer_from_stream_data_free (gpointer _data) {
	GitgDiffViewFileRendererTextInitHighlightingBufferFromStreamData* _data_;
	_data_ = _data;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_ggit_diff_file_unref0 (_data_->file);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->location);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->stream);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (_data_->content_type);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->cancellable);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->result);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->self);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_slice_free (GitgDiffViewFileRendererTextInitHighlightingBufferFromStreamData, _data_);
#line 1999 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_init_highlighting_buffer_from_stream (GitgDiffViewFileRendererText* self, GgitDiffFile* file, GFile* location, GInputStream* stream, const gchar* content_type, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GitgDiffViewFileRendererTextInitHighlightingBufferFromStreamData* _data_;
	GitgDiffViewFileRendererText* _tmp0_ = NULL;
	GgitDiffFile* _tmp1_ = NULL;
	GgitDiffFile* _tmp2_ = NULL;
	GFile* _tmp3_ = NULL;
	GFile* _tmp4_ = NULL;
	GInputStream* _tmp5_ = NULL;
	GInputStream* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	GCancellable* _tmp9_ = NULL;
	GCancellable* _tmp10_ = NULL;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_ = g_slice_new0 (GitgDiffViewFileRendererTextInitHighlightingBufferFromStreamData);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, gitg_diff_view_file_renderer_text_init_highlighting_buffer_from_stream);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, gitg_diff_view_file_renderer_text_init_highlighting_buffer_from_stream_data_free);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->self = _tmp0_;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = file;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp2_ = _ggit_diff_file_ref0 (_tmp1_);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_ggit_diff_file_unref0 (_data_->file);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->file = _tmp2_;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp3_ = location;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->location);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->location = _tmp4_;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp5_ = stream;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp6_ = _g_object_ref0 (_tmp5_);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->stream);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->stream = _tmp6_;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp7_ = content_type;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp8_ = g_strdup (_tmp7_);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (_data_->content_type);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->content_type = _tmp8_;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp9_ = cancellable;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp10_ = _g_object_ref0 (_tmp9_);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->cancellable);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->cancellable = _tmp10_;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_file_renderer_text_init_highlighting_buffer_from_stream_co (_data_);
#line 2068 "gitg-diff-view-file-renderer-text.c"
}


static GtkSourceBuffer* gitg_diff_view_file_renderer_text_init_highlighting_buffer_from_stream_finish (GitgDiffViewFileRendererText* self, GAsyncResult* _res_) {
	GtkSourceBuffer* result;
	GitgDiffViewFileRendererTextInitHighlightingBufferFromStreamData* _data_;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = _data_->result;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->result = NULL;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 2083 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_init_highlighting_buffer_from_stream_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	GitgDiffViewFileRendererTextInitHighlightingBufferFromStreamData* _data_;
#line 405 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_ = _user_data_;
#line 405 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_source_object_ = source_object;
#line 405 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_res_ = _res_;
#line 405 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_file_renderer_text_init_highlighting_buffer_from_stream_co (_data_);
#line 2097 "gitg-diff-view-file-renderer-text.c"
}


static const gchar* string_to_string (const gchar* self) {
	const gchar* result = NULL;
#line 1412 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1413 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	result = self;
#line 1413 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	return result;
#line 2109 "gitg-diff-view-file-renderer-text.c"
}


static gboolean gitg_diff_view_file_renderer_text_init_highlighting_buffer_from_stream_co (GitgDiffViewFileRendererTextInitHighlightingBufferFromStreamData* _data_) {
#line 380 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	switch (_data_->_state_) {
#line 380 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case 0:
#line 2118 "gitg-diff-view-file-renderer-text.c"
		goto _state_0;
#line 380 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case 1:
#line 2122 "gitg-diff-view-file-renderer-text.c"
		goto _state_1;
		default:
#line 380 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_assert_not_reached ();
#line 2127 "gitg-diff-view-file-renderer-text.c"
	}
	_state_0:
#line 382 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp0_ = NULL;
#line 382 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp0_ = gtk_source_language_manager_get_default ();
#line 382 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp1_ = NULL;
#line 382 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp1_ = _g_object_ref0 (_data_->_tmp0_);
#line 382 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->manager = _data_->_tmp1_;
#line 383 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp3_ = NULL;
#line 383 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp3_ = _data_->location;
#line 383 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_data_->_tmp3_ != NULL) {
#line 383 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp4_ = NULL;
#line 383 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp4_ = _data_->location;
#line 383 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp5_ = NULL;
#line 383 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp5_ = g_file_get_basename (_data_->_tmp4_);
#line 383 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_free0 (_data_->_tmp2_);
#line 383 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp2_ = _data_->_tmp5_;
#line 2158 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 383 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_free0 (_data_->_tmp2_);
#line 383 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp2_ = NULL;
#line 2164 "gitg-diff-view-file-renderer-text.c"
	}
#line 383 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp6_ = NULL;
#line 383 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp6_ = _data_->manager;
#line 383 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp7_ = NULL;
#line 383 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp7_ = _data_->content_type;
#line 383 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp8_ = NULL;
#line 383 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp8_ = gtk_source_language_manager_guess_language (_data_->_tmp6_, _data_->_tmp2_, _data_->_tmp7_);
#line 383 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp9_ = NULL;
#line 383 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp9_ = _g_object_ref0 (_data_->_tmp8_);
#line 383 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->language = _data_->_tmp9_;
#line 385 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp10_ = NULL;
#line 385 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp10_ = _data_->language;
#line 385 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_data_->_tmp10_ == NULL) {
#line 387 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->result = NULL;
#line 387 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->language);
#line 387 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_free0 (_data_->_tmp2_);
#line 387 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->manager);
#line 387 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		if (_data_->_state_ == 0) {
#line 387 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2202 "gitg-diff-view-file-renderer-text.c"
		} else {
#line 387 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 2206 "gitg-diff-view-file-renderer-text.c"
		}
#line 387 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_object_unref (_data_->_async_result);
#line 387 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		return FALSE;
#line 2212 "gitg-diff-view-file-renderer-text.c"
	}
#line 390 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp11_ = NULL;
#line 390 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp11_ = gtk_text_view_get_buffer ((GtkTextView*) _data_->self);
#line 390 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp12_ = NULL;
#line 390 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp12_ = _data_->_tmp11_;
#line 390 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp13_ = NULL;
#line 390 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp13_ = gtk_text_buffer_get_tag_table (_data_->_tmp12_);
#line 390 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp14_ = NULL;
#line 390 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp14_ = _data_->_tmp13_;
#line 390 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp15_ = NULL;
#line 390 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp15_ = gtk_source_buffer_new (_data_->_tmp14_);
#line 390 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->buffer = _data_->_tmp15_;
#line 392 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp16_ = NULL;
#line 392 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp16_ = gtk_source_style_scheme_manager_get_default ();
#line 392 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp17_ = NULL;
#line 392 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp17_ = _g_object_ref0 (_data_->_tmp16_);
#line 392 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->style_scheme_manager = _data_->_tmp17_;
#line 394 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp18_ = NULL;
#line 394 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp18_ = _data_->buffer;
#line 394 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp19_ = NULL;
#line 394 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp19_ = _data_->language;
#line 394 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_source_buffer_set_language (_data_->_tmp18_, _data_->_tmp19_);
#line 395 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp20_ = NULL;
#line 395 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp20_ = _data_->buffer;
#line 395 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_source_buffer_set_highlight_syntax (_data_->_tmp20_, TRUE);
#line 396 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp21_ = NULL;
#line 396 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp21_ = _data_->buffer;
#line 396 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp22_ = NULL;
#line 396 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp22_ = _data_->style_scheme_manager;
#line 396 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp23_ = NULL;
#line 396 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp23_ = gtk_source_style_scheme_manager_get_scheme (_data_->_tmp22_, "classic");
#line 396 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_source_buffer_set_style_scheme (_data_->_tmp21_, _data_->_tmp23_);
#line 398 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp24_ = NULL;
#line 398 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp24_ = gtk_source_file_new ();
#line 398 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->sfile = _data_->_tmp24_;
#line 399 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp25_ = NULL;
#line 399 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp25_ = _data_->sfile;
#line 399 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp26_ = NULL;
#line 399 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp26_ = _data_->location;
#line 399 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_source_file_set_location (_data_->_tmp25_, _data_->_tmp26_);
#line 401 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp27_ = NULL;
#line 401 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp27_ = _data_->buffer;
#line 401 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp28_ = NULL;
#line 401 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp28_ = _data_->sfile;
#line 401 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp29_ = NULL;
#line 401 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp29_ = _data_->stream;
#line 401 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp30_ = NULL;
#line 401 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->_tmp30_ = gtk_source_file_loader_new_from_stream (_data_->_tmp27_, _data_->_tmp28_, _data_->_tmp29_);
#line 401 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->loader = _data_->_tmp30_;
#line 2310 "gitg-diff-view-file-renderer-text.c"
	{
#line 405 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp31_ = NULL;
#line 405 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp31_ = _data_->loader;
#line 405 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp32_ = NULL;
#line 405 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp32_ = _data_->cancellable;
#line 405 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_state_ = 1;
#line 405 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gtk_source_file_loader_load_async (_data_->_tmp31_, G_PRIORITY_LOW, _data_->_tmp32_, NULL, NULL, NULL, gitg_diff_view_file_renderer_text_init_highlighting_buffer_from_stream_ready, _data_);
#line 405 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		return FALSE;
#line 2326 "gitg-diff-view-file-renderer-text.c"
		_state_1:
#line 405 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gtk_source_file_loader_load_finish (_data_->_tmp31_, _data_->_res_, &_data_->_inner_error_);
#line 405 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 2332 "gitg-diff-view-file-renderer-text.c"
			goto __catch43_g_error;
		}
#line 406 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp33_ = NULL;
#line 406 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp33_ = _data_->buffer;
#line 406 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_strip_carriage_returns (_data_->self, _data_->_tmp33_);
#line 2341 "gitg-diff-view-file-renderer-text.c"
	}
	goto __finally43;
	__catch43_g_error:
	{
#line 403 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->e = _data_->_inner_error_;
#line 403 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_inner_error_ = NULL;
#line 410 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp34_ = NULL;
#line 410 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp34_ = _data_->cancellable;
#line 410 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp35_ = FALSE;
#line 410 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->_tmp35_ = g_cancellable_is_cancelled (_data_->_tmp34_);
#line 410 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		if (!_data_->_tmp35_) {
#line 412 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp36_ = NULL;
#line 412 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp36_ = stderr;
#line 412 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp37_ = NULL;
#line 412 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp37_ = _data_->file;
#line 412 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp38_ = NULL;
#line 412 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp38_ = ggit_diff_file_get_path (_data_->_tmp37_);
#line 412 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp39_ = NULL;
#line 412 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp39_ = string_to_string (_data_->_tmp38_);
#line 412 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp40_ = NULL;
#line 412 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp40_ = _data_->e;
#line 412 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp41_ = NULL;
#line 412 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp41_ = _data_->_tmp40_->message;
#line 412 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp42_ = NULL;
#line 412 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp42_ = string_to_string (_data_->_tmp41_);
#line 412 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp43_ = NULL;
#line 412 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp43_ = g_strconcat ("ERROR: failed to load ", _data_->_tmp39_, " for highlighting: ", _data_->_tmp42_, "\n", NULL);
#line 412 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp44_ = NULL;
#line 412 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_data_->_tmp44_ = _data_->_tmp43_;
#line 412 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			fprintf (_data_->_tmp36_, "%s", _data_->_tmp44_);
#line 412 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_g_free0 (_data_->_tmp44_);
#line 2400 "gitg-diff-view-file-renderer-text.c"
		}
#line 415 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_data_->result = NULL;
#line 415 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_error_free0 (_data_->e);
#line 415 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->loader);
#line 415 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->sfile);
#line 415 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->style_scheme_manager);
#line 415 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->buffer);
#line 415 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->language);
#line 415 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_free0 (_data_->_tmp2_);
#line 415 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->manager);
#line 415 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		if (_data_->_state_ == 0) {
#line 415 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2424 "gitg-diff-view-file-renderer-text.c"
		} else {
#line 415 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 2428 "gitg-diff-view-file-renderer-text.c"
		}
#line 415 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_object_unref (_data_->_async_result);
#line 415 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		return FALSE;
#line 2434 "gitg-diff-view-file-renderer-text.c"
	}
	__finally43:
#line 403 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 403 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->loader);
#line 403 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->sfile);
#line 403 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->style_scheme_manager);
#line 403 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->buffer);
#line 403 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->language);
#line 403 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_free0 (_data_->_tmp2_);
#line 403 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (_data_->manager);
#line 403 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.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 403 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_clear_error (&_data_->_inner_error_);
#line 403 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		return FALSE;
#line 2459 "gitg-diff-view-file-renderer-text.c"
	}
#line 418 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_data_->result = _data_->buffer;
#line 418 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->loader);
#line 418 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->sfile);
#line 418 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->style_scheme_manager);
#line 418 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->language);
#line 418 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (_data_->_tmp2_);
#line 418 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->manager);
#line 418 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_data_->_state_ == 0) {
#line 418 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2479 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 418 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2483 "gitg-diff-view-file-renderer-text.c"
	}
#line 418 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_unref (_data_->_async_result);
#line 418 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return FALSE;
#line 380 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->loader);
#line 380 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->sfile);
#line 380 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->style_scheme_manager);
#line 380 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->buffer);
#line 380 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->language);
#line 380 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (_data_->_tmp2_);
#line 380 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (_data_->manager);
#line 380 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_data_->_state_ == 0) {
#line 380 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2507 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 380 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2511 "gitg-diff-view-file-renderer-text.c"
	}
#line 380 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_unref (_data_->_async_result);
#line 380 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return FALSE;
#line 2517 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_strip_carriage_returns (GitgDiffViewFileRendererText* self, GtkSourceBuffer* buffer) {
	GtkSourceSearchSettings* search_settings = NULL;
	GtkSourceSearchSettings* _tmp0_ = NULL;
	GtkSourceSearchContext* search_context = NULL;
	GtkSourceBuffer* _tmp1_ = NULL;
	GtkSourceSearchContext* _tmp2_ = NULL;
	GError * _inner_error_ = NULL;
#line 421 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (self != NULL);
#line 421 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (buffer != NULL);
#line 423 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = gtk_source_search_settings_new ();
#line 423 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	search_settings = _tmp0_;
#line 425 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_source_search_settings_set_regex_enabled (search_settings, TRUE);
#line 426 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_source_search_settings_set_search_text (search_settings, "\\r");
#line 428 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = buffer;
#line 428 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp2_ = gtk_source_search_context_new (_tmp1_, search_settings);
#line 428 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	search_context = _tmp2_;
#line 2546 "gitg-diff-view-file-renderer-text.c"
	{
#line 432 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gtk_source_search_context_replace_all (search_context, "", 0, &_inner_error_);
#line 432 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2552 "gitg-diff-view-file-renderer-text.c"
			goto __catch44_g_error;
		}
	}
	goto __finally44;
	__catch44_g_error:
	{
		GError* e = NULL;
#line 430 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		e = _inner_error_;
#line 430 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_inner_error_ = NULL;
#line 430 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_error_free0 (e);
#line 2566 "gitg-diff-view-file-renderer-text.c"
	}
	__finally44:
#line 430 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 430 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (search_context);
#line 430 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (search_settings);
#line 430 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.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 430 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_clear_error (&_inner_error_);
#line 430 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		return;
#line 2581 "gitg-diff-view-file-renderer-text.c"
	}
#line 421 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (search_context);
#line 421 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (search_settings);
#line 2587 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_update_highlighting_ready (GitgDiffViewFileRendererText* self) {
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	GtkTextBuffer* buffer = NULL;
	GtkTextBuffer* _tmp6_ = NULL;
	GtkTextBuffer* _tmp7_ = NULL;
	GtkTextBuffer* _tmp8_ = NULL;
	GitgDiffViewFileRendererTextRegion* _tmp9_ = NULL;
	gint _tmp9__length1 = 0;
#line 436 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (self != NULL);
#line 438 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = self->priv->d_old_highlight_ready;
#line 438 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (!_tmp1_) {
#line 2606 "gitg-diff-view-file-renderer-text.c"
		gboolean _tmp2_ = FALSE;
#line 438 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp2_ = self->priv->d_new_highlight_ready;
#line 438 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp0_ = !_tmp2_;
#line 2612 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 438 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp0_ = FALSE;
#line 2616 "gitg-diff-view-file-renderer-text.c"
	}
#line 438 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_tmp0_) {
#line 441 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		return;
#line 2622 "gitg-diff-view-file-renderer-text.c"
	} else {
		gboolean _tmp3_ = FALSE;
		gboolean _tmp4_ = FALSE;
#line 443 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp4_ = self->priv->d_old_highlight_ready;
#line 443 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		if (!_tmp4_) {
#line 443 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_tmp3_ = TRUE;
#line 2632 "gitg-diff-view-file-renderer-text.c"
		} else {
			gboolean _tmp5_ = FALSE;
#line 443 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_tmp5_ = self->priv->d_new_highlight_ready;
#line 443 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_tmp3_ = !_tmp5_;
#line 2639 "gitg-diff-view-file-renderer-text.c"
		}
#line 443 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		if (_tmp3_) {
#line 446 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			return;
#line 2645 "gitg-diff-view-file-renderer-text.c"
		}
	}
#line 449 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp6_ = gtk_text_view_get_buffer ((GtkTextView*) self);
#line 449 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp7_ = _tmp6_;
#line 449 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp8_ = _g_object_ref0 (_tmp7_);
#line 449 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	buffer = _tmp8_;
#line 453 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp9_ = self->priv->d_regions;
#line 453 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp9__length1 = self->priv->d_regions_length1;
#line 2660 "gitg-diff-view-file-renderer-text.c"
	{
		GitgDiffViewFileRendererTextRegion* region_collection = NULL;
		gint region_collection_length1 = 0;
		gint _region_collection_size_ = 0;
		gint region_it = 0;
#line 453 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		region_collection = _tmp9_;
#line 453 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		region_collection_length1 = _tmp9__length1;
#line 453 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		for (region_it = 0; region_it < _tmp9__length1; region_it = region_it + 1) {
#line 2672 "gitg-diff-view-file-renderer-text.c"
			GitgDiffViewFileRendererTextRegion region = {0};
#line 453 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			region = region_collection[region_it];
#line 2676 "gitg-diff-view-file-renderer-text.c"
			{
				GtkSourceBuffer* source = NULL;
				GitgDiffViewFileRendererTextRegion _tmp10_ = {0};
				GitgDiffViewFileRendererTextRegionType _tmp11_ = 0;
				GtkSourceBuffer* _tmp16_ = NULL;
				GtkTextIter buffer_iter = {0};
				GtkTextIter source_iter = {0};
				GtkTextBuffer* _tmp17_ = NULL;
				GitgDiffViewFileRendererTextRegion _tmp18_ = {0};
				gint _tmp19_ = 0;
				GtkTextIter _tmp20_ = {0};
				GtkSourceBuffer* _tmp21_ = NULL;
				GitgDiffViewFileRendererTextRegion _tmp22_ = {0};
				gint _tmp23_ = 0;
				GtkTextIter _tmp24_ = {0};
				GtkTextIter source_end_iter = {0};
				GtkTextIter _tmp25_ = {0};
				GitgDiffViewFileRendererTextRegion _tmp26_ = {0};
				gint _tmp27_ = 0;
				GtkSourceBuffer* _tmp28_ = NULL;
				GtkTextIter _tmp29_ = {0};
				GtkTextIter _tmp30_ = {0};
				GtkTextIter buffer_end_iter = {0};
				GtkTextIter _tmp31_ = {0};
				GitgDiffViewFileRendererTextRegion _tmp32_ = {0};
				gint _tmp33_ = 0;
				GtkTextIter source_next_iter = {0};
				GtkTextIter _tmp34_ = {0};
				GSList* tags = NULL;
				GSList* _tmp35_ = NULL;
				GSList* _tmp51_ = NULL;
#line 457 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp10_ = region;
#line 457 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp11_ = _tmp10_.type;
#line 457 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (_tmp11_ == GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REGION_TYPE_REMOVED) {
#line 2714 "gitg-diff-view-file-renderer-text.c"
					GtkSourceBuffer* _tmp12_ = NULL;
					GtkSourceBuffer* _tmp13_ = NULL;
#line 459 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp12_ = self->priv->d_old_highlight_buffer;
#line 459 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp13_ = _g_object_ref0 (_tmp12_);
#line 459 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_g_object_unref0 (source);
#line 459 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					source = _tmp13_;
#line 2725 "gitg-diff-view-file-renderer-text.c"
				} else {
					GtkSourceBuffer* _tmp14_ = NULL;
					GtkSourceBuffer* _tmp15_ = NULL;
#line 463 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp14_ = self->priv->d_new_highlight_buffer;
#line 463 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp15_ = _g_object_ref0 (_tmp14_);
#line 463 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_g_object_unref0 (source);
#line 463 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					source = _tmp15_;
#line 2737 "gitg-diff-view-file-renderer-text.c"
				}
#line 466 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp16_ = source;
#line 466 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (_tmp16_ == NULL) {
#line 468 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_g_object_unref0 (source);
#line 468 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					continue;
#line 2747 "gitg-diff-view-file-renderer-text.c"
				}
#line 473 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp17_ = buffer;
#line 473 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp18_ = region;
#line 473 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp19_ = _tmp18_.buffer_line_start;
#line 473 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				gtk_text_buffer_get_iter_at_line (_tmp17_, &_tmp20_, _tmp19_);
#line 473 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				buffer_iter = _tmp20_;
#line 474 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp21_ = source;
#line 474 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp22_ = region;
#line 474 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp23_ = _tmp22_.source_line_start;
#line 474 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				gtk_text_buffer_get_iter_at_line ((GtkTextBuffer*) _tmp21_, &_tmp24_, _tmp23_);
#line 474 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				source_iter = _tmp24_;
#line 476 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp25_ = source_iter;
#line 476 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				source_end_iter = _tmp25_;
#line 477 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp26_ = region;
#line 477 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp27_ = _tmp26_.length;
#line 477 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				gtk_text_iter_forward_lines (&source_end_iter, _tmp27_);
#line 479 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp28_ = source;
#line 479 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp29_ = source_iter;
#line 479 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp30_ = source_end_iter;
#line 479 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				gtk_source_buffer_ensure_highlight (_tmp28_, &_tmp29_, &_tmp30_);
#line 481 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp31_ = buffer_iter;
#line 481 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				buffer_end_iter = _tmp31_;
#line 482 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp32_ = region;
#line 482 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp33_ = _tmp32_.length;
#line 482 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				gtk_text_iter_forward_lines (&buffer_end_iter, _tmp33_);
#line 484 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp34_ = source_iter;
#line 484 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				source_next_iter = _tmp34_;
#line 485 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp35_ = gtk_text_iter_get_tags (&source_iter);
#line 485 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				tags = _tmp35_;
#line 487 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				while (TRUE) {
#line 2807 "gitg-diff-view-file-renderer-text.c"
					gboolean _tmp36_ = FALSE;
					gboolean _tmp37_ = FALSE;
					GtkTextIter buffer_next_iter = {0};
					GtkTextIter _tmp40_ = {0};
					gint _tmp41_ = 0;
					gint _tmp42_ = 0;
					GSList* _tmp43_ = NULL;
					GtkTextIter _tmp48_ = {0};
					GtkTextIter _tmp49_ = {0};
					GSList* _tmp50_ = NULL;
#line 487 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp37_ = gtk_text_iter_forward_to_tag_toggle (&source_next_iter, NULL);
#line 487 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					if (_tmp37_) {
#line 2822 "gitg-diff-view-file-renderer-text.c"
						GtkTextIter _tmp38_ = {0};
						gint _tmp39_ = 0;
#line 487 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp38_ = source_end_iter;
#line 487 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp39_ = gtk_text_iter_compare (&source_next_iter, &_tmp38_);
#line 487 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp36_ = _tmp39_ < 0;
#line 2831 "gitg-diff-view-file-renderer-text.c"
					} else {
#line 487 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp36_ = FALSE;
#line 2835 "gitg-diff-view-file-renderer-text.c"
					}
#line 487 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					if (!_tmp36_) {
#line 487 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						break;
#line 2841 "gitg-diff-view-file-renderer-text.c"
					}
#line 489 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp40_ = buffer_iter;
#line 489 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					buffer_next_iter = _tmp40_;
#line 490 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp41_ = gtk_text_iter_get_offset (&source_next_iter);
#line 490 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp42_ = gtk_text_iter_get_offset (&source_iter);
#line 490 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					gtk_text_iter_forward_chars (&buffer_next_iter, _tmp41_ - _tmp42_);
#line 492 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp43_ = tags;
#line 2855 "gitg-diff-view-file-renderer-text.c"
					{
						GSList* tag_collection = NULL;
						GSList* tag_it = NULL;
#line 492 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						tag_collection = _tmp43_;
#line 492 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						for (tag_it = tag_collection; tag_it != NULL; tag_it = tag_it->next) {
#line 2863 "gitg-diff-view-file-renderer-text.c"
							GtkTextTag* tag = NULL;
#line 492 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
							tag = (GtkTextTag*) tag_it->data;
#line 2867 "gitg-diff-view-file-renderer-text.c"
							{
								GtkTextBuffer* _tmp44_ = NULL;
								GtkTextTag* _tmp45_ = NULL;
								GtkTextIter _tmp46_ = {0};
								GtkTextIter _tmp47_ = {0};
#line 494 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
								_tmp44_ = buffer;
#line 494 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
								_tmp45_ = tag;
#line 494 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
								_tmp46_ = buffer_iter;
#line 494 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
								_tmp47_ = buffer_next_iter;
#line 494 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
								gtk_text_buffer_apply_tag (_tmp44_, _tmp45_, &_tmp46_, &_tmp47_);
#line 2883 "gitg-diff-view-file-renderer-text.c"
							}
						}
					}
#line 497 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp48_ = source_next_iter;
#line 497 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					source_iter = _tmp48_;
#line 498 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp49_ = buffer_next_iter;
#line 498 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					buffer_iter = _tmp49_;
#line 500 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp50_ = gtk_text_iter_get_tags (&source_iter);
#line 500 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_g_slist_free0 (tags);
#line 500 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					tags = _tmp50_;
#line 2901 "gitg-diff-view-file-renderer-text.c"
				}
#line 503 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp51_ = tags;
#line 2905 "gitg-diff-view-file-renderer-text.c"
				{
					GSList* tag_collection = NULL;
					GSList* tag_it = NULL;
#line 503 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					tag_collection = _tmp51_;
#line 503 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					for (tag_it = tag_collection; tag_it != NULL; tag_it = tag_it->next) {
#line 2913 "gitg-diff-view-file-renderer-text.c"
						GtkTextTag* tag = NULL;
#line 503 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						tag = (GtkTextTag*) tag_it->data;
#line 2917 "gitg-diff-view-file-renderer-text.c"
						{
							GtkTextBuffer* _tmp52_ = NULL;
							GtkTextTag* _tmp53_ = NULL;
							GtkTextIter _tmp54_ = {0};
							GtkTextIter _tmp55_ = {0};
#line 505 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
							_tmp52_ = buffer;
#line 505 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
							_tmp53_ = tag;
#line 505 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
							_tmp54_ = buffer_iter;
#line 505 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
							_tmp55_ = buffer_end_iter;
#line 505 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
							gtk_text_buffer_apply_tag (_tmp52_, _tmp53_, &_tmp54_, &_tmp55_);
#line 2933 "gitg-diff-view-file-renderer-text.c"
						}
					}
				}
#line 453 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_g_slist_free0 (tags);
#line 453 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_g_object_unref0 (source);
#line 2941 "gitg-diff-view-file-renderer-text.c"
			}
		}
	}
#line 436 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (buffer);
#line 2947 "gitg-diff-view-file-renderer-text.c"
}


static gboolean gitg_diff_view_file_renderer_text_real_draw (GtkWidget* base, cairo_t* cr) {
	GitgDiffViewFileRendererText * self;
	gboolean result = FALSE;
	cairo_t* _tmp0_ = NULL;
	GdkWindow* win = NULL;
	GdkWindow* _tmp1_ = NULL;
	GdkWindow* _tmp2_ = NULL;
	cairo_t* _tmp3_ = NULL;
	GdkWindow* _tmp4_ = NULL;
	gboolean _tmp5_ = FALSE;
	GtkStyleContext* ctx = NULL;
	GtkStyleContext* _tmp6_ = NULL;
	GtkStyleContext* _tmp7_ = NULL;
	gint old_lines_width = 0;
	GitgDiffViewLinesRenderer* _tmp8_ = NULL;
	gint _tmp9_ = 0;
	gint _tmp10_ = 0;
	GitgDiffViewLinesRenderer* _tmp11_ = NULL;
	gint _tmp12_ = 0;
	gint _tmp13_ = 0;
	gint new_lines_width = 0;
	GitgDiffViewLinesRenderer* _tmp14_ = NULL;
	gint _tmp15_ = 0;
	gint _tmp16_ = 0;
	GitgDiffViewLinesRenderer* _tmp17_ = NULL;
	gint _tmp18_ = 0;
	gint _tmp19_ = 0;
	gint sym_lines_width = 0;
	GitgDiffViewLinesRenderer* _tmp20_ = NULL;
	gint _tmp21_ = 0;
	gint _tmp22_ = 0;
	GitgDiffViewLinesRenderer* _tmp23_ = NULL;
	gint _tmp24_ = 0;
	gint _tmp25_ = 0;
	GtkStyleContext* _tmp26_ = NULL;
	cairo_t* _tmp27_ = NULL;
	GdkWindow* _tmp28_ = NULL;
	GtkStyleContext* _tmp29_ = NULL;
	GtkStyleContext* _tmp30_ = NULL;
	cairo_t* _tmp31_ = NULL;
	gint _tmp32_ = 0;
	GdkWindow* _tmp33_ = NULL;
	gint _tmp34_ = 0;
	GtkStyleContext* _tmp35_ = NULL;
	GtkStyleContext* _tmp36_ = NULL;
	cairo_t* _tmp37_ = NULL;
	GdkWindow* _tmp38_ = NULL;
	GtkStyleContext* _tmp39_ = NULL;
	GtkStyleContext* _tmp40_ = NULL;
	cairo_t* _tmp41_ = NULL;
	gint _tmp42_ = 0;
	gint _tmp43_ = 0;
	gint _tmp44_ = 0;
	GdkWindow* _tmp45_ = NULL;
	gint _tmp46_ = 0;
	GtkStyleContext* _tmp47_ = NULL;
#line 510 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self = (GitgDiffViewFileRendererText*) base;
#line 510 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_val_if_fail (cr != NULL, FALSE);
#line 512 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = cr;
#line 512 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	GTK_WIDGET_CLASS (gitg_diff_view_file_renderer_text_parent_class)->draw ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_source_view_get_type (), GtkSourceView), _tmp0_);
#line 514 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = gtk_text_view_get_window ((GtkTextView*) self, GTK_TEXT_WINDOW_LEFT);
#line 514 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 514 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	win = _tmp2_;
#line 516 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp3_ = cr;
#line 516 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp4_ = win;
#line 516 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp5_ = gtk_cairo_should_draw_window (_tmp3_, _tmp4_);
#line 516 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (!_tmp5_) {
#line 518 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		result = FALSE;
#line 518 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (win);
#line 518 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		return result;
#line 3035 "gitg-diff-view-file-renderer-text.c"
	}
#line 521 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp6_ = gtk_widget_get_style_context ((GtkWidget*) self);
#line 521 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp7_ = _g_object_ref0 (_tmp6_);
#line 521 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	ctx = _tmp7_;
#line 523 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp8_ = self->priv->d_old_lines;
#line 523 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp9_ = gtk_source_gutter_renderer_get_size ((GtkSourceGutterRenderer*) _tmp8_);
#line 523 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp10_ = _tmp9_;
#line 523 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp11_ = self->priv->d_old_lines;
#line 523 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_get ((GtkSourceGutterRenderer*) _tmp11_, "xpad", &_tmp12_, NULL);
#line 523 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp13_ = _tmp12_;
#line 523 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	old_lines_width = _tmp10_ + (_tmp13_ * 2);
#line 524 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp14_ = self->priv->d_new_lines;
#line 524 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp15_ = gtk_source_gutter_renderer_get_size ((GtkSourceGutterRenderer*) _tmp14_);
#line 524 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp16_ = _tmp15_;
#line 524 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp17_ = self->priv->d_new_lines;
#line 524 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_get ((GtkSourceGutterRenderer*) _tmp17_, "xpad", &_tmp18_, NULL);
#line 524 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp19_ = _tmp18_;
#line 524 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	new_lines_width = _tmp16_ + (_tmp19_ * 2);
#line 525 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp20_ = self->priv->d_sym_lines;
#line 525 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp21_ = gtk_source_gutter_renderer_get_size ((GtkSourceGutterRenderer*) _tmp20_);
#line 525 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp22_ = _tmp21_;
#line 525 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp23_ = self->priv->d_sym_lines;
#line 525 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_get ((GtkSourceGutterRenderer*) _tmp23_, "xpad", &_tmp24_, NULL);
#line 525 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp25_ = _tmp24_;
#line 525 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	sym_lines_width = _tmp22_ + (_tmp25_ * 2);
#line 527 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp26_ = ctx;
#line 527 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_style_context_save (_tmp26_);
#line 528 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp27_ = cr;
#line 528 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp28_ = win;
#line 528 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_cairo_transform_to_window (_tmp27_, (GtkWidget*) self, _tmp28_);
#line 529 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp29_ = ctx;
#line 529 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_style_context_add_class (_tmp29_, "diff-lines-separator");
#line 530 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp30_ = ctx;
#line 530 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp31_ = cr;
#line 530 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp32_ = old_lines_width;
#line 530 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp33_ = win;
#line 530 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp34_ = gdk_window_get_height (_tmp33_);
#line 530 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_render_frame (_tmp30_, _tmp31_, (gdouble) 0, (gdouble) 0, (gdouble) _tmp32_, (gdouble) _tmp34_);
#line 531 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp35_ = ctx;
#line 531 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_style_context_restore (_tmp35_);
#line 533 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp36_ = ctx;
#line 533 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_style_context_save (_tmp36_);
#line 534 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp37_ = cr;
#line 534 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp38_ = win;
#line 534 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_cairo_transform_to_window (_tmp37_, (GtkWidget*) self, _tmp38_);
#line 535 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp39_ = ctx;
#line 535 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_style_context_add_class (_tmp39_, "diff-lines-gutter-border");
#line 536 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp40_ = ctx;
#line 536 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp41_ = cr;
#line 536 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp42_ = old_lines_width;
#line 536 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp43_ = new_lines_width;
#line 536 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp44_ = sym_lines_width;
#line 536 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp45_ = win;
#line 536 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp46_ = gdk_window_get_height (_tmp45_);
#line 536 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_render_frame (_tmp40_, _tmp41_, (gdouble) (_tmp42_ + _tmp43_), (gdouble) 0, (gdouble) _tmp44_, (gdouble) _tmp46_);
#line 537 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp47_ = ctx;
#line 537 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_style_context_restore (_tmp47_);
#line 539 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = FALSE;
#line 539 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (ctx);
#line 539 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (win);
#line 539 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 3157 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_update_theme (GitgDiffViewFileRendererText* self) {
	GtkSourceMarkAttributes* header_attributes = NULL;
	GtkSourceMarkAttributes* _tmp0_ = NULL;
	GtkSourceMarkAttributes* added_attributes = NULL;
	GtkSourceMarkAttributes* _tmp1_ = NULL;
	GtkSourceMarkAttributes* removed_attributes = NULL;
	GtkSourceMarkAttributes* _tmp2_ = NULL;
	GtkSettings* settings = NULL;
	GtkSettings* _tmp3_ = NULL;
	GtkSettings* _tmp4_ = NULL;
	gchar* theme = NULL;
	const gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	gboolean _tmp7_ = FALSE;
	GtkSettings* _tmp8_ = NULL;
	gboolean _tmp9_ = FALSE;
	gboolean _tmp10_ = FALSE;
	gboolean dark = FALSE;
	gboolean _tmp15_ = FALSE;
	GtkSourceMarkAttributes* _tmp28_ = NULL;
	GtkSourceMarkAttributes* _tmp29_ = NULL;
	GtkSourceMarkAttributes* _tmp30_ = NULL;
#line 542 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (self != NULL);
#line 544 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = gtk_source_mark_attributes_new ();
#line 544 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	header_attributes = _tmp0_;
#line 545 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = gtk_source_mark_attributes_new ();
#line 545 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	added_attributes = _tmp1_;
#line 546 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp2_ = gtk_source_mark_attributes_new ();
#line 546 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	removed_attributes = _tmp2_;
#line 548 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp3_ = gtk_settings_get_default ();
#line 548 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 548 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	settings = _tmp4_;
#line 549 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp5_ = g_getenv ("GTK_THEME");
#line 549 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp6_ = g_strdup (_tmp5_);
#line 549 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	theme = _tmp6_;
#line 551 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp8_ = settings;
#line 551 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_get (_tmp8_, "gtk-application-prefer-dark-theme", &_tmp9_, NULL);
#line 551 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp10_ = _tmp9_;
#line 551 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_tmp10_) {
#line 551 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp7_ = TRUE;
#line 3219 "gitg-diff-view-file-renderer-text.c"
	} else {
		gboolean _tmp11_ = FALSE;
		const gchar* _tmp12_ = NULL;
#line 551 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp12_ = theme;
#line 551 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		if (_tmp12_ != NULL) {
#line 3227 "gitg-diff-view-file-renderer-text.c"
			const gchar* _tmp13_ = NULL;
			gboolean _tmp14_ = FALSE;
#line 551 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_tmp13_ = theme;
#line 551 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_tmp14_ = g_str_has_suffix (_tmp13_, ":dark");
#line 551 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_tmp11_ = _tmp14_;
#line 3236 "gitg-diff-view-file-renderer-text.c"
		} else {
#line 551 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_tmp11_ = FALSE;
#line 3240 "gitg-diff-view-file-renderer-text.c"
		}
#line 551 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp7_ = _tmp11_;
#line 3244 "gitg-diff-view-file-renderer-text.c"
	}
#line 551 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	dark = _tmp7_;
#line 553 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp15_ = dark;
#line 553 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_tmp15_) {
#line 3252 "gitg-diff-view-file-renderer-text.c"
		GtkSourceMarkAttributes* _tmp16_ = NULL;
		GdkRGBA _tmp17_ = {0};
		GtkSourceMarkAttributes* _tmp18_ = NULL;
		GdkRGBA _tmp19_ = {0};
		GtkSourceMarkAttributes* _tmp20_ = NULL;
		GdkRGBA _tmp21_ = {0};
#line 555 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp16_ = header_attributes;
#line 555 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		memset (&_tmp17_, 0, sizeof (GdkRGBA));
#line 555 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp17_.red = 136.0 / 255.0;
#line 555 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp17_.green = 138.0 / 255.0;
#line 555 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp17_.blue = 133.0 / 255.0;
#line 555 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp17_.alpha = 1.0;
#line 555 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_object_set (_tmp16_, "background", &_tmp17_, NULL);
#line 556 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp18_ = added_attributes;
#line 556 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		memset (&_tmp19_, 0, sizeof (GdkRGBA));
#line 556 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp19_.red = 78.0 / 255.0;
#line 556 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp19_.green = 154.0 / 255.0;
#line 556 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp19_.blue = 6.0 / 255.0;
#line 556 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp19_.alpha = 1.0;
#line 556 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_object_set (_tmp18_, "background", &_tmp19_, NULL);
#line 557 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp20_ = removed_attributes;
#line 557 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		memset (&_tmp21_, 0, sizeof (GdkRGBA));
#line 557 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp21_.red = 164.0 / 255.0;
#line 557 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp21_.green = 0.0;
#line 557 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp21_.blue = 0.0;
#line 557 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp21_.alpha = 1.0;
#line 557 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_object_set (_tmp20_, "background", &_tmp21_, NULL);
#line 3301 "gitg-diff-view-file-renderer-text.c"
	} else {
		GtkSourceMarkAttributes* _tmp22_ = NULL;
		GdkRGBA _tmp23_ = {0};
		GtkSourceMarkAttributes* _tmp24_ = NULL;
		GdkRGBA _tmp25_ = {0};
		GtkSourceMarkAttributes* _tmp26_ = NULL;
		GdkRGBA _tmp27_ = {0};
#line 561 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp22_ = header_attributes;
#line 561 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		memset (&_tmp23_, 0, sizeof (GdkRGBA));
#line 561 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp23_.red = 244.0 / 255.0;
#line 561 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp23_.green = 247.0 / 255.0;
#line 561 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp23_.blue = 251.0 / 255.0;
#line 561 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp23_.alpha = 1.0;
#line 561 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_object_set (_tmp22_, "background", &_tmp23_, NULL);
#line 562 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp24_ = added_attributes;
#line 562 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		memset (&_tmp25_, 0, sizeof (GdkRGBA));
#line 562 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp25_.red = 220.0 / 255.0;
#line 562 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp25_.green = 1.0;
#line 562 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp25_.blue = 220.0 / 255.0;
#line 562 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp25_.alpha = 1.0;
#line 562 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_object_set (_tmp24_, "background", &_tmp25_, NULL);
#line 563 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp26_ = removed_attributes;
#line 563 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		memset (&_tmp27_, 0, sizeof (GdkRGBA));
#line 563 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp27_.red = 1.0;
#line 563 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp27_.green = 220.0 / 255.0;
#line 563 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp27_.blue = 220.0 / 255.0;
#line 563 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp27_.alpha = 1.0;
#line 563 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_object_set (_tmp26_, "background", &_tmp27_, NULL);
#line 3351 "gitg-diff-view-file-renderer-text.c"
	}
#line 566 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp28_ = header_attributes;
#line 566 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_source_view_set_mark_attributes ((GtkSourceView*) self, "header", _tmp28_, 0);
#line 567 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp29_ = added_attributes;
#line 567 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_source_view_set_mark_attributes ((GtkSourceView*) self, "added", _tmp29_, 0);
#line 568 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp30_ = removed_attributes;
#line 568 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_source_view_set_mark_attributes ((GtkSourceView*) self, "removed", _tmp30_, 0);
#line 542 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (theme);
#line 542 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (settings);
#line 542 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (removed_attributes);
#line 542 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (added_attributes);
#line 542 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (header_attributes);
#line 3375 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_real_constructed (GObject* base) {
	GitgDiffViewFileRendererText * self;
#line 571 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self = (GitgDiffViewFileRendererText*) base;
#line 573 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	G_OBJECT_CLASS (gitg_diff_view_file_renderer_text_parent_class)->constructed ((GObject*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_source_view_get_type (), GtkSourceView));
#line 575 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->d_constructed = TRUE;
#line 576 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_file_renderer_text_update_highlight (self);
#line 3389 "gitg-diff-view-file-renderer-text.c"
}


static gint string_last_index_of (const gchar* self, const gchar* needle, gint start_index) {
	gint result = 0;
	gchar* _result_ = NULL;
	gint _tmp0_ = 0;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 997 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, 0);
#line 997 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (needle != NULL, 0);
#line 998 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp0_ = start_index;
#line 998 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp1_ = needle;
#line 998 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp2_ = g_strrstr (((gchar*) self) + _tmp0_, (gchar*) _tmp1_);
#line 998 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_result_ = _tmp2_;
#line 1000 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp3_ = _result_;
#line 1000 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp3_ != NULL) {
#line 3416 "gitg-diff-view-file-renderer-text.c"
		gchar* _tmp4_ = NULL;
#line 1001 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp4_ = _result_;
#line 1001 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		result = (gint) (_tmp4_ - ((gchar*) self));
#line 1001 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		return result;
#line 3424 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 1003 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		result = -1;
#line 1003 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		return result;
#line 3430 "gitg-diff-view-file-renderer-text.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 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp0_ = str;
#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp1_ = maxlen;
#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_);
#line 1295 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	end = _tmp2_;
#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp3_ = end;
#line 1296 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp3_ == NULL) {
#line 3454 "gitg-diff-view-file-renderer-text.c"
		glong _tmp4_ = 0L;
#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp4_ = maxlen;
#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		result = _tmp4_;
#line 1297 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		return result;
#line 3462 "gitg-diff-view-file-renderer-text.c"
	} else {
		gchar* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp5_ = end;
#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp6_ = str;
#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		result = (glong) (_tmp5_ - _tmp6_);
#line 1299 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		return result;
#line 3474 "gitg-diff-view-file-renderer-text.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 1306 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp1_ = offset;
#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp1_ >= ((glong) 0)) {
#line 3498 "gitg-diff-view-file-renderer-text.c"
		glong _tmp2_ = 0L;
#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp2_ = len;
#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp0_ = _tmp2_ >= ((glong) 0);
#line 3504 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp0_ = FALSE;
#line 3508 "gitg-diff-view-file-renderer-text.c"
	}
#line 1308 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp0_) {
#line 3512 "gitg-diff-view-file-renderer-text.c"
		glong _tmp3_ = 0L;
		glong _tmp4_ = 0L;
		glong _tmp5_ = 0L;
#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp3_ = offset;
#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp4_ = len;
#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_);
#line 1310 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		string_length = _tmp5_;
#line 3524 "gitg-diff-view-file-renderer-text.c"
	} else {
		gint _tmp6_ = 0;
		gint _tmp7_ = 0;
#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp6_ = strlen (self);
#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp7_ = _tmp6_;
#line 1312 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		string_length = (glong) _tmp7_;
#line 3534 "gitg-diff-view-file-renderer-text.c"
	}
#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp8_ = offset;
#line 1315 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp8_ < ((glong) 0)) {
#line 3540 "gitg-diff-view-file-renderer-text.c"
		glong _tmp9_ = 0L;
		glong _tmp10_ = 0L;
		glong _tmp11_ = 0L;
#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp9_ = string_length;
#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp10_ = offset;
#line 1316 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		offset = _tmp9_ + _tmp10_;
#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp11_ = offset;
#line 1317 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL);
#line 3554 "gitg-diff-view-file-renderer-text.c"
	} else {
		glong _tmp12_ = 0L;
		glong _tmp13_ = 0L;
#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp12_ = offset;
#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp13_ = string_length;
#line 1319 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL);
#line 3564 "gitg-diff-view-file-renderer-text.c"
	}
#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp14_ = len;
#line 1321 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp14_ < ((glong) 0)) {
#line 3570 "gitg-diff-view-file-renderer-text.c"
		glong _tmp15_ = 0L;
		glong _tmp16_ = 0L;
#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp15_ = string_length;
#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp16_ = offset;
#line 1322 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		len = _tmp15_ - _tmp16_;
#line 3579 "gitg-diff-view-file-renderer-text.c"
	}
#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp17_ = offset;
#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp18_ = len;
#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp19_ = string_length;
#line 1324 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL);
#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp20_ = offset;
#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp21_ = len;
#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_);
#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	result = _tmp22_;
#line 1325 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	return result;
#line 3599 "gitg-diff-view-file-renderer-text.c"
}


static gchar* string_chug (const gchar* self) {
	gchar* result = NULL;
	gchar* _result_ = NULL;
	gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
#line 1199 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1200 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp0_ = g_strdup (self);
#line 1200 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_result_ = _tmp0_;
#line 1201 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp1_ = _result_;
#line 1201 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	g_strchug (_tmp1_);
#line 1202 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	result = _result_;
#line 1202 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	return result;
#line 3622 "gitg-diff-view-file-renderer-text.c"
}


static gchar* string_chomp (const gchar* self) {
	gchar* result = NULL;
	gchar* _result_ = NULL;
	gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
#line 1191 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1192 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp0_ = g_strdup (self);
#line 1192 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_result_ = _tmp0_;
#line 1193 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp1_ = _result_;
#line 1193 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	g_strchomp (_tmp1_);
#line 1194 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	result = _result_;
#line 1194 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	return result;
#line 3645 "gitg-diff-view-file-renderer-text.c"
}


static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) {
	gchar* result = NULL;
	GError * _inner_error_ = NULL;
#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (old != NULL, NULL);
#line 1380 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (replacement != NULL, NULL);
#line 3658 "gitg-diff-view-file-renderer-text.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 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp0_ = old;
#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp1_ = g_regex_escape_string (_tmp0_, -1);
#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp2_ = _tmp1_;
#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_);
#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp4_ = _tmp3_;
#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_g_free0 (_tmp2_);
#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		regex = _tmp4_;
#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			if (_inner_error_->domain == G_REGEX_ERROR) {
#line 3689 "gitg-diff-view-file-renderer-text.c"
				goto __catch45_g_regex_error;
			}
#line 1382 "/usr/share/vala-0.34/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 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			g_clear_error (&_inner_error_);
#line 1382 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			return NULL;
#line 3698 "gitg-diff-view-file-renderer-text.c"
		}
#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp6_ = regex;
#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp7_ = replacement;
#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp8_ = g_regex_replace_literal (_tmp6_, self, (gssize) -1, 0, _tmp7_, 0, &_inner_error_);
#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp5_ = _tmp8_;
#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			_g_regex_unref0 (regex);
#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			if (_inner_error_->domain == G_REGEX_ERROR) {
#line 3714 "gitg-diff-view-file-renderer-text.c"
				goto __catch45_g_regex_error;
			}
#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			_g_regex_unref0 (regex);
#line 1383 "/usr/share/vala-0.34/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 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			g_clear_error (&_inner_error_);
#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
			return NULL;
#line 3725 "gitg-diff-view-file-renderer-text.c"
		}
#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp9_ = _tmp5_;
#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp5_ = NULL;
#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		result = _tmp9_;
#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_g_free0 (_tmp5_);
#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_g_regex_unref0 (regex);
#line 1383 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		return result;
#line 3739 "gitg-diff-view-file-renderer-text.c"
	}
	goto __finally45;
	__catch45_g_regex_error:
	{
		GError* e = NULL;
#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		e = _inner_error_;
#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_inner_error_ = NULL;
#line 1385 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		g_assert_not_reached ();
#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_g_error_free0 (e);
#line 3753 "gitg-diff-view-file-renderer-text.c"
	}
	__finally45:
#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1381 "/usr/share/vala-0.34/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 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		g_clear_error (&_inner_error_);
#line 1381 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		return NULL;
#line 3764 "gitg-diff-view-file-renderer-text.c"
	}
}


static void _vala_array_add4 (GitgDiffViewFileRendererTextRegion** array, int* length, int* size, const GitgDiffViewFileRendererTextRegion* value) {
#line 657 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if ((*length) == (*size)) {
#line 657 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 657 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		*array = g_renew (GitgDiffViewFileRendererTextRegion, *array, *size);
#line 3776 "gitg-diff-view-file-renderer-text.c"
	}
#line 657 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	(*array)[(*length)++] = *value;
#line 3780 "gitg-diff-view-file-renderer-text.c"
}


static guint8* _vala_array_dup10 (guint8* self, int length) {
#line 684 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return g_memdup (self, length * sizeof (guint8));
#line 3787 "gitg-diff-view-file-renderer-text.c"
}


static gchar string_get (const gchar* self, glong index) {
	gchar result = '\0';
	glong _tmp0_ = 0L;
	gchar _tmp1_ = '\0';
#line 1086 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, '\0');
#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp0_ = index;
#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp1_ = ((gchar*) self)[_tmp0_];
#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	result = _tmp1_;
#line 1087 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	return result;
#line 3805 "gitg-diff-view-file-renderer-text.c"
}


static gchar* string_slice (const gchar* self, glong start, glong end) {
	gchar* result = NULL;
	glong string_length = 0L;
	gint _tmp0_ = 0;
	gint _tmp1_ = 0;
	glong _tmp2_ = 0L;
	glong _tmp5_ = 0L;
	gboolean _tmp8_ = FALSE;
	glong _tmp9_ = 0L;
	gboolean _tmp12_ = FALSE;
	glong _tmp13_ = 0L;
	glong _tmp16_ = 0L;
	glong _tmp17_ = 0L;
	glong _tmp18_ = 0L;
	glong _tmp19_ = 0L;
	glong _tmp20_ = 0L;
	gchar* _tmp21_ = NULL;
#line 1328 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1329 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp0_ = strlen (self);
#line 1329 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp1_ = _tmp0_;
#line 1329 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	string_length = (glong) _tmp1_;
#line 1330 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp2_ = start;
#line 1330 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp2_ < ((glong) 0)) {
#line 3838 "gitg-diff-view-file-renderer-text.c"
		glong _tmp3_ = 0L;
		glong _tmp4_ = 0L;
#line 1331 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp3_ = string_length;
#line 1331 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp4_ = start;
#line 1331 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		start = _tmp3_ + _tmp4_;
#line 3847 "gitg-diff-view-file-renderer-text.c"
	}
#line 1333 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp5_ = end;
#line 1333 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp5_ < ((glong) 0)) {
#line 3853 "gitg-diff-view-file-renderer-text.c"
		glong _tmp6_ = 0L;
		glong _tmp7_ = 0L;
#line 1334 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp6_ = string_length;
#line 1334 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp7_ = end;
#line 1334 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		end = _tmp6_ + _tmp7_;
#line 3862 "gitg-diff-view-file-renderer-text.c"
	}
#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp9_ = start;
#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp9_ >= ((glong) 0)) {
#line 3868 "gitg-diff-view-file-renderer-text.c"
		glong _tmp10_ = 0L;
		glong _tmp11_ = 0L;
#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp10_ = start;
#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp11_ = string_length;
#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp8_ = _tmp10_ <= _tmp11_;
#line 3877 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp8_ = FALSE;
#line 3881 "gitg-diff-view-file-renderer-text.c"
	}
#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp8_, NULL);
#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp13_ = end;
#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp13_ >= ((glong) 0)) {
#line 3889 "gitg-diff-view-file-renderer-text.c"
		glong _tmp14_ = 0L;
		glong _tmp15_ = 0L;
#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp14_ = end;
#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp15_ = string_length;
#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp12_ = _tmp14_ <= _tmp15_;
#line 3898 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp12_ = FALSE;
#line 3902 "gitg-diff-view-file-renderer-text.c"
	}
#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp12_, NULL);
#line 1338 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp16_ = start;
#line 1338 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp17_ = end;
#line 1338 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp16_ <= _tmp17_, NULL);
#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp18_ = start;
#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp19_ = end;
#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp20_ = start;
#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp21_ = g_strndup (((gchar*) self) + _tmp18_, (gsize) (_tmp19_ - _tmp20_));
#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	result = _tmp21_;
#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	return result;
#line 3924 "gitg-diff-view-file-renderer-text.c"
}


static void _vala_array_add5 (GitgDiffViewFileRendererTextRegion** array, int* length, int* size, const GitgDiffViewFileRendererTextRegion* value) {
#line 717 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if ((*length) == (*size)) {
#line 717 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 717 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		*array = g_renew (GitgDiffViewFileRendererTextRegion, *array, *size);
#line 3935 "gitg-diff-view-file-renderer-text.c"
	}
#line 717 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	(*array)[(*length)++] = *value;
#line 3939 "gitg-diff-view-file-renderer-text.c"
}


static guint8* g_string_get_data (GString* self, int* result_length1) {
	guint8* result;
	guint8* res = NULL;
	const gchar* _tmp0_ = NULL;
	gint res_length1 = 0;
	gint _res_size_ = 0;
	gssize _tmp1_ = 0L;
	gint _tmp2_ = 0;
	guint8* _tmp3_ = NULL;
	gint _tmp3__length1 = 0;
	guint8* _tmp4_ = NULL;
	gint _tmp4__length1 = 0;
#line 4762 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 4763 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp0_ = self->str;
#line 4763 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	res = (guint8*) _tmp0_;
#line 4763 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	res_length1 = -1;
#line 4763 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_res_size_ = res_length1;
#line 4764 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp1_ = self->len;
#line 4764 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	res_length1 = (gint) _tmp1_;
#line 4764 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp2_ = res_length1;
#line 4765 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp3_ = res;
#line 4765 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp3__length1 = res_length1;
#line 4765 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp4_ = _tmp3_;
#line 4765 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp4__length1 = _tmp3__length1;
#line 4765 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	if (result_length1) {
#line 4765 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		*result_length1 = _tmp4__length1;
#line 3983 "gitg-diff-view-file-renderer-text.c"
	}
#line 4765 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	result = _tmp4_;
#line 4765 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	return result;
#line 3989 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_real_add_hunk (GitgDiffViewFileRenderer* base, GgitDiffHunk* hunk, GeeArrayList* lines) {
	GitgDiffViewFileRendererText * self;
	GtkSourceBuffer* buffer = NULL;
	GtkTextBuffer* _tmp0_ = NULL;
	GtkTextBuffer* _tmp1_ = NULL;
	GtkSourceBuffer* _tmp2_ = NULL;
	gchar* h = NULL;
	GgitDiffHunk* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	gint pos = 0;
	const gchar* _tmp6_ = NULL;
	gint _tmp7_ = 0;
	gint _tmp8_ = 0;
	const gchar* _tmp14_ = NULL;
	gchar* _tmp15_ = NULL;
	GtkTextIter iter = {0};
	GtkSourceBuffer* _tmp16_ = NULL;
	GtkTextIter _tmp17_ = {0};
	gboolean _tmp18_ = FALSE;
	GtkSourceBuffer* _tmp20_ = NULL;
	GtkTextIter _tmp21_ = {0};
	gchar* header = NULL;
	GgitDiffHunk* _tmp22_ = NULL;
	gint _tmp23_ = 0;
	gchar* _tmp24_ = NULL;
	gchar* _tmp25_ = NULL;
	GgitDiffHunk* _tmp26_ = NULL;
	gint _tmp27_ = 0;
	gchar* _tmp28_ = NULL;
	gchar* _tmp29_ = NULL;
	GgitDiffHunk* _tmp30_ = NULL;
	gint _tmp31_ = 0;
	gchar* _tmp32_ = NULL;
	gchar* _tmp33_ = NULL;
	GgitDiffHunk* _tmp34_ = NULL;
	gint _tmp35_ = 0;
	gchar* _tmp36_ = NULL;
	gchar* _tmp37_ = NULL;
	const gchar* _tmp38_ = NULL;
	const gchar* _tmp39_ = NULL;
	gchar* _tmp40_ = NULL;
	gchar* _tmp41_ = NULL;
	GtkSourceBuffer* _tmp42_ = NULL;
	const gchar* _tmp43_ = NULL;
	gint buffer_line = 0;
	gint _tmp44_ = 0;
	GString* content = NULL;
	GString* _tmp45_ = NULL;
	GitgDiffViewFileRendererTextRegion region = {0};
	GitgDiffViewFileRendererTextRegion _tmp46_ = {0};
	GeeArrayList* _tmp137_ = NULL;
	gint _tmp138_ = 0;
	gint _tmp139_ = 0;
	gint line_hunk_start = 0;
	gint _tmp142_ = 0;
	GtkSourceBuffer* _tmp143_ = NULL;
	GString* _tmp144_ = NULL;
	guint8* _tmp145_ = NULL;
	gint _tmp145__length1 = 0;
	guint8* _tmp146_ = NULL;
	gint _tmp146__length1 = 0;
	GitgDiffViewLinesRenderer* _tmp147_ = NULL;
	gint _tmp148_ = 0;
	gint _tmp149_ = 0;
	GgitDiffHunk* _tmp150_ = NULL;
	GeeArrayList* _tmp151_ = NULL;
	GitgDiffViewLinesRenderer* _tmp152_ = NULL;
	gint _tmp153_ = 0;
	gint _tmp154_ = 0;
	GgitDiffHunk* _tmp155_ = NULL;
	GeeArrayList* _tmp156_ = NULL;
	GitgDiffViewLinesRenderer* _tmp157_ = NULL;
	gint _tmp158_ = 0;
	gint _tmp159_ = 0;
	GgitDiffHunk* _tmp160_ = NULL;
	GeeArrayList* _tmp161_ = NULL;
#line 579 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self = (GitgDiffViewFileRendererText*) base;
#line 579 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (hunk != NULL);
#line 579 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (lines != NULL);
#line 581 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = gtk_text_view_get_buffer ((GtkTextView*) self);
#line 581 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = _tmp0_;
#line 581 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, gtk_source_buffer_get_type ()) ? ((GtkSourceBuffer*) _tmp1_) : NULL);
#line 581 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	buffer = _tmp2_;
#line 584 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp3_ = hunk;
#line 584 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp4_ = ggit_diff_hunk_get_header (_tmp3_);
#line 584 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp5_ = g_strdup (_tmp4_);
#line 584 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	h = _tmp5_;
#line 585 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp6_ = h;
#line 585 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp7_ = string_last_index_of (_tmp6_, "@@", 0);
#line 585 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	pos = _tmp7_;
#line 587 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp8_ = pos;
#line 587 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_tmp8_ >= 0) {
#line 4102 "gitg-diff-view-file-renderer-text.c"
		const gchar* _tmp9_ = NULL;
		gint _tmp10_ = 0;
		gchar* _tmp11_ = NULL;
		gchar* _tmp12_ = NULL;
		gchar* _tmp13_ = NULL;
#line 589 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp9_ = h;
#line 589 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp10_ = pos;
#line 589 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp11_ = string_substring (_tmp9_, (glong) (_tmp10_ + 2), (glong) -1);
#line 589 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp12_ = _tmp11_;
#line 589 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp13_ = string_chug (_tmp12_);
#line 589 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_free0 (h);
#line 589 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		h = _tmp13_;
#line 589 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_free0 (_tmp12_);
#line 4124 "gitg-diff-view-file-renderer-text.c"
	}
#line 592 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp14_ = h;
#line 592 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp15_ = string_chomp (_tmp14_);
#line 592 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (h);
#line 592 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	h = _tmp15_;
#line 595 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp16_ = buffer;
#line 595 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_text_buffer_get_end_iter ((GtkTextBuffer*) _tmp16_, &_tmp17_);
#line 595 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	iter = _tmp17_;
#line 597 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp18_ = gtk_text_iter_is_start (&iter);
#line 597 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (!_tmp18_) {
#line 4144 "gitg-diff-view-file-renderer-text.c"
		GtkSourceBuffer* _tmp19_ = NULL;
#line 599 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp19_ = buffer;
#line 599 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gtk_text_buffer_insert ((GtkTextBuffer*) _tmp19_, &iter, "\n", 1);
#line 4150 "gitg-diff-view-file-renderer-text.c"
	}
#line 602 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_text_iter_set_line_offset (&iter, 0);
#line 603 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp20_ = buffer;
#line 603 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp21_ = iter;
#line 603 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_source_buffer_create_source_mark (_tmp20_, NULL, "header", &_tmp21_);
#line 605 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp22_ = hunk;
#line 605 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp23_ = ggit_diff_hunk_get_old_start (_tmp22_);
#line 605 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp24_ = g_strdup_printf ("%i", _tmp23_);
#line 605 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp25_ = _tmp24_;
#line 605 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp26_ = hunk;
#line 605 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp27_ = ggit_diff_hunk_get_old_lines (_tmp26_);
#line 605 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp28_ = g_strdup_printf ("%i", _tmp27_);
#line 605 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp29_ = _tmp28_;
#line 605 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp30_ = hunk;
#line 605 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp31_ = ggit_diff_hunk_get_new_start (_tmp30_);
#line 605 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp32_ = g_strdup_printf ("%i", _tmp31_);
#line 605 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp33_ = _tmp32_;
#line 605 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp34_ = hunk;
#line 605 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp35_ = ggit_diff_hunk_get_new_lines (_tmp34_);
#line 605 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp36_ = g_strdup_printf ("%i", _tmp35_);
#line 605 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp37_ = _tmp36_;
#line 605 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp38_ = h;
#line 605 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp39_ = string_to_string (_tmp38_);
#line 605 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp40_ = g_strconcat ("@@ -", _tmp25_, ",", _tmp29_, " +", _tmp33_, ",", _tmp37_, " @@ ", _tmp39_, "\n", NULL);
#line 605 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp41_ = _tmp40_;
#line 605 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (_tmp37_);
#line 605 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (_tmp33_);
#line 605 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (_tmp29_);
#line 605 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (_tmp25_);
#line 605 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	header = _tmp41_;
#line 606 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp42_ = buffer;
#line 606 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp43_ = header;
#line 606 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_text_buffer_insert ((GtkTextBuffer*) _tmp42_, &iter, _tmp43_, -1);
#line 608 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp44_ = gtk_text_iter_get_line (&iter);
#line 608 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	buffer_line = _tmp44_;
#line 611 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp45_ = g_string_new ("");
#line 611 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	content = _tmp45_;
#line 613 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	memset (&_tmp46_, 0, sizeof (GitgDiffViewFileRendererTextRegion));
#line 613 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp46_.type = GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REGION_TYPE_CONTEXT;
#line 613 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp46_.buffer_line_start = 0;
#line 613 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp46_.source_line_start = 0;
#line 613 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp46_.length = 0;
#line 613 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	region = _tmp46_;
#line 620 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_freeze_notify ((GObject*) self);
#line 4238 "gitg-diff-view-file-renderer-text.c"
	{
		gint i = 0;
#line 622 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		i = 0;
#line 4243 "gitg-diff-view-file-renderer-text.c"
		{
			gboolean _tmp47_ = FALSE;
#line 622 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_tmp47_ = TRUE;
#line 622 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			while (TRUE) {
#line 4250 "gitg-diff-view-file-renderer-text.c"
				gint _tmp49_ = 0;
				GeeArrayList* _tmp50_ = NULL;
				gint _tmp51_ = 0;
				gint _tmp52_ = 0;
				GgitDiffLine* line = NULL;
				GeeArrayList* _tmp53_ = NULL;
				gint _tmp54_ = 0;
				gpointer _tmp55_ = NULL;
				gchar* text = NULL;
				GgitDiffLine* _tmp56_ = NULL;
				const gchar* _tmp57_ = NULL;
				gchar* _tmp58_ = NULL;
				gboolean added = FALSE;
				gboolean removed = FALSE;
				GgitDiffLineType origin = 0;
				GgitDiffLine* _tmp59_ = NULL;
				GgitDiffLineType _tmp60_ = 0;
				GitgDiffViewFileRendererTextRegionType rtype = 0;
				GgitDiffLineType _tmp61_ = 0;
				gboolean _tmp66_ = FALSE;
				gint _tmp67_ = 0;
				gint _tmp84_ = 0;
				gboolean _tmp85_ = FALSE;
				gboolean _tmp86_ = FALSE;
				gboolean _tmp115_ = FALSE;
				gboolean _tmp116_ = FALSE;
				gint _tmp117_ = 0;
				GeeArrayList* _tmp118_ = NULL;
				gint _tmp119_ = 0;
				gint _tmp120_ = 0;
				GString* _tmp134_ = NULL;
				const gchar* _tmp135_ = NULL;
				gint _tmp136_ = 0;
#line 622 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (!_tmp47_) {
#line 4286 "gitg-diff-view-file-renderer-text.c"
					gint _tmp48_ = 0;
#line 622 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp48_ = i;
#line 622 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					i = _tmp48_ + 1;
#line 4292 "gitg-diff-view-file-renderer-text.c"
				}
#line 622 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp47_ = FALSE;
#line 622 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp49_ = i;
#line 622 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp50_ = lines;
#line 622 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp51_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _tmp50_);
#line 622 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp52_ = _tmp51_;
#line 622 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (!(_tmp49_ < _tmp52_)) {
#line 622 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					break;
#line 4308 "gitg-diff-view-file-renderer-text.c"
				}
#line 624 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp53_ = lines;
#line 624 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp54_ = i;
#line 624 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp55_ = gee_abstract_list_get ((GeeAbstractList*) _tmp53_, _tmp54_);
#line 624 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				line = (GgitDiffLine*) _tmp55_;
#line 625 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp56_ = line;
#line 625 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp57_ = ggit_diff_line_get_text (_tmp56_);
#line 625 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp58_ = string_replace (_tmp57_, "\r", "");
#line 625 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				text = _tmp58_;
#line 626 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				added = FALSE;
#line 627 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				removed = FALSE;
#line 628 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp59_ = line;
#line 628 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp60_ = ggit_diff_line_get_origin (_tmp59_);
#line 628 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				origin = _tmp60_;
#line 630 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				rtype = GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REGION_TYPE_CONTEXT;
#line 632 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp61_ = origin;
#line 632 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				switch (_tmp61_) {
#line 632 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					case GGIT_DIFF_LINE_ADDITION:
#line 4344 "gitg-diff-view-file-renderer-text.c"
					{
						guint _tmp62_ = 0U;
#line 635 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						added = TRUE;
#line 636 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp62_ = self->priv->_added;
#line 636 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						gitg_diff_view_file_renderer_text_set_added (self, _tmp62_ + 1);
#line 638 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						rtype = GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REGION_TYPE_ADDED;
#line 639 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						break;
#line 4357 "gitg-diff-view-file-renderer-text.c"
					}
#line 632 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					case GGIT_DIFF_LINE_DELETION:
#line 4361 "gitg-diff-view-file-renderer-text.c"
					{
						guint _tmp63_ = 0U;
#line 641 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						removed = TRUE;
#line 642 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp63_ = self->priv->_removed;
#line 642 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						gitg_diff_view_file_renderer_text_set_removed (self, _tmp63_ + 1);
#line 644 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						rtype = GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REGION_TYPE_REMOVED;
#line 645 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						break;
#line 4374 "gitg-diff-view-file-renderer-text.c"
					}
#line 632 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					case GGIT_DIFF_LINE_CONTEXT_EOFNL:
#line 632 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					case GGIT_DIFF_LINE_ADD_EOFNL:
#line 632 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					case GGIT_DIFF_LINE_DEL_EOFNL:
#line 4382 "gitg-diff-view-file-renderer-text.c"
					{
						const gchar* _tmp64_ = NULL;
						gchar* _tmp65_ = NULL;
#line 649 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp64_ = text;
#line 649 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp65_ = string_substring (_tmp64_, (glong) 1, (glong) -1);
#line 649 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_g_free0 (text);
#line 649 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						text = _tmp65_;
#line 650 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						break;
#line 4396 "gitg-diff-view-file-renderer-text.c"
					}
					default:
#line 632 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					break;
#line 4401 "gitg-diff-view-file-renderer-text.c"
				}
#line 653 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp67_ = i;
#line 653 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (_tmp67_ == 0) {
#line 653 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp66_ = TRUE;
#line 4409 "gitg-diff-view-file-renderer-text.c"
				} else {
					GitgDiffViewFileRendererTextRegionType _tmp68_ = 0;
					GitgDiffViewFileRendererTextRegion _tmp69_ = {0};
					GitgDiffViewFileRendererTextRegionType _tmp70_ = 0;
#line 653 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp68_ = rtype;
#line 653 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp69_ = region;
#line 653 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp70_ = _tmp69_.type;
#line 653 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp66_ = _tmp68_ != _tmp70_;
#line 4422 "gitg-diff-view-file-renderer-text.c"
				}
#line 653 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (_tmp66_) {
#line 4426 "gitg-diff-view-file-renderer-text.c"
					gint _tmp71_ = 0;
					gint source_line_start = 0;
					GitgDiffViewFileRendererTextRegionType _tmp74_ = 0;
					GitgDiffViewFileRendererTextRegionType _tmp79_ = 0;
					gint _tmp80_ = 0;
					gint _tmp81_ = 0;
					GitgDiffViewFileRendererTextRegion _tmp82_ = {0};
					GitgDiffViewFileRendererTextRegion _tmp83_ = {0};
#line 655 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp71_ = i;
#line 655 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					if (_tmp71_ != 0) {
#line 4439 "gitg-diff-view-file-renderer-text.c"
						GitgDiffViewFileRendererTextRegion* _tmp72_ = NULL;
						gint _tmp72__length1 = 0;
						GitgDiffViewFileRendererTextRegion _tmp73_ = {0};
#line 657 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp72_ = self->priv->d_regions;
#line 657 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp72__length1 = self->priv->d_regions_length1;
#line 657 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp73_ = region;
#line 657 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_vala_array_add4 (&self->priv->d_regions, &self->priv->d_regions_length1, &self->priv->_d_regions_size_, &_tmp73_);
#line 4451 "gitg-diff-view-file-renderer-text.c"
					}
#line 662 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp74_ = rtype;
#line 662 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					if (_tmp74_ == GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REGION_TYPE_REMOVED) {
#line 4457 "gitg-diff-view-file-renderer-text.c"
						GgitDiffLine* _tmp75_ = NULL;
						gint _tmp76_ = 0;
#line 664 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp75_ = line;
#line 664 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp76_ = ggit_diff_line_get_old_lineno (_tmp75_);
#line 664 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						source_line_start = _tmp76_ - 1;
#line 4466 "gitg-diff-view-file-renderer-text.c"
					} else {
						GgitDiffLine* _tmp77_ = NULL;
						gint _tmp78_ = 0;
#line 668 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp77_ = line;
#line 668 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp78_ = ggit_diff_line_get_new_lineno (_tmp77_);
#line 668 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						source_line_start = _tmp78_ - 1;
#line 4476 "gitg-diff-view-file-renderer-text.c"
					}
#line 671 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp79_ = rtype;
#line 671 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp80_ = buffer_line;
#line 671 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp81_ = source_line_start;
#line 671 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					memset (&_tmp82_, 0, sizeof (GitgDiffViewFileRendererTextRegion));
#line 671 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp82_.type = _tmp79_;
#line 671 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp82_.buffer_line_start = _tmp80_;
#line 671 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp82_.source_line_start = _tmp81_;
#line 671 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp82_.length = 0;
#line 671 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					region = _tmp82_;
#line 671 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp83_ = region;
#line 4498 "gitg-diff-view-file-renderer-text.c"
				}
#line 679 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp84_ = region.length;
#line 679 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				region.length = _tmp84_ + 1;
#line 681 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp86_ = added;
#line 681 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (_tmp86_) {
#line 681 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp85_ = TRUE;
#line 4510 "gitg-diff-view-file-renderer-text.c"
				} else {
					gboolean _tmp87_ = FALSE;
#line 681 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp87_ = removed;
#line 681 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp85_ = _tmp87_;
#line 4517 "gitg-diff-view-file-renderer-text.c"
				}
#line 681 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (_tmp85_) {
#line 4521 "gitg-diff-view-file-renderer-text.c"
					gsize offset = 0UL;
					GgitDiffLine* _tmp88_ = NULL;
					gint64 _tmp89_ = 0LL;
					guint8* bytes = NULL;
					GgitDiffLine* _tmp90_ = NULL;
					gsize _tmp91_;
					guint8* _tmp92_ = NULL;
					guint8* _tmp93_ = NULL;
					gint _tmp93__length1 = 0;
					gint bytes_length1 = 0;
					gint _bytes_size_ = 0;
					GitgPatchSetType _tmp94_ = 0;
					gboolean _tmp95_ = FALSE;
					GitgPatchSetPatch pset = {0};
					gsize _tmp96_ = 0UL;
					gsize _tmp97_ = 0UL;
					guint8* _tmp98_ = NULL;
					gint _tmp98__length1 = 0;
					GitgPatchSetPatch _tmp99_ = {0};
					gboolean _tmp100_ = FALSE;
					GeeHashMap* _tmp107_ = NULL;
					gint _tmp108_ = 0;
					GitgPatchSetPatch _tmp109_ = {0};
					gint64 _tmp110_ = 0LL;
					gboolean _tmp111_ = FALSE;
					gint64 _tmp114_ = 0LL;
#line 683 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp88_ = line;
#line 683 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp89_ = ggit_diff_line_get_content_offset (_tmp88_);
#line 683 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					offset = (gsize) _tmp89_;
#line 684 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp90_ = line;
#line 684 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp92_ = ggit_diff_line_get_content (_tmp90_, &_tmp91_);
#line 684 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp93_ = (_tmp92_ != NULL) ? _vala_array_dup10 (_tmp92_, _tmp91_) : ((gpointer) _tmp92_);
#line 684 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp93__length1 = _tmp91_;
#line 684 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					bytes = _tmp93_;
#line 684 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					bytes_length1 = _tmp93__length1;
#line 684 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_bytes_size_ = bytes_length1;
#line 687 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp95_ = added;
#line 687 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					if (_tmp95_) {
#line 687 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp94_ = GITG_PATCH_SET_TYPE_ADD;
#line 4574 "gitg-diff-view-file-renderer-text.c"
					} else {
#line 687 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp94_ = GITG_PATCH_SET_TYPE_REMOVE;
#line 4578 "gitg-diff-view-file-renderer-text.c"
					}
#line 686 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp96_ = offset;
#line 686 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp97_ = offset;
#line 686 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp98_ = bytes;
#line 686 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp98__length1 = bytes_length1;
#line 686 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					memset (&_tmp99_, 0, sizeof (GitgPatchSetPatch));
#line 686 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp99_.type = _tmp94_;
#line 686 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp99_.old_offset = _tmp96_;
#line 686 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp99_.new_offset = _tmp97_;
#line 686 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp99_.length = (gsize) _tmp98__length1;
#line 686 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					pset = _tmp99_;
#line 693 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp100_ = added;
#line 693 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					if (_tmp100_) {
#line 4604 "gitg-diff-view-file-renderer-text.c"
						GitgPatchSetPatch _tmp101_ = {0};
						gsize _tmp102_ = 0UL;
						gint64 _tmp103_ = 0LL;
#line 695 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp101_ = pset;
#line 695 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp102_ = _tmp101_.old_offset;
#line 695 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp103_ = self->priv->d_doffset;
#line 695 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						pset.old_offset = (gsize) (((gint64) _tmp102_) - _tmp103_);
#line 4616 "gitg-diff-view-file-renderer-text.c"
					} else {
						GitgPatchSetPatch _tmp104_ = {0};
						gsize _tmp105_ = 0UL;
						gint64 _tmp106_ = 0LL;
#line 699 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp104_ = pset;
#line 699 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp105_ = _tmp104_.new_offset;
#line 699 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp106_ = self->priv->d_doffset;
#line 699 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						pset.new_offset = (gsize) (((gint64) _tmp105_) + _tmp106_);
#line 4629 "gitg-diff-view-file-renderer-text.c"
					}
#line 702 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp107_ = self->priv->d_lines;
#line 702 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp108_ = buffer_line;
#line 702 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp109_ = pset;
#line 702 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					gee_abstract_map_set ((GeeAbstractMap*) _tmp107_, (gpointer) ((gintptr) _tmp108_), &_tmp109_);
#line 703 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp111_ = added;
#line 703 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					if (_tmp111_) {
#line 4643 "gitg-diff-view-file-renderer-text.c"
						guint8* _tmp112_ = NULL;
						gint _tmp112__length1 = 0;
#line 703 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp112_ = bytes;
#line 703 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp112__length1 = bytes_length1;
#line 703 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp110_ = (gint64) _tmp112__length1;
#line 4652 "gitg-diff-view-file-renderer-text.c"
					} else {
						guint8* _tmp113_ = NULL;
						gint _tmp113__length1 = 0;
#line 703 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp113_ = bytes;
#line 703 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp113__length1 = bytes_length1;
#line 703 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp110_ = -((gint64) _tmp113__length1);
#line 4662 "gitg-diff-view-file-renderer-text.c"
					}
#line 703 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp114_ = self->priv->d_doffset;
#line 703 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					self->priv->d_doffset = _tmp114_ + _tmp110_;
#line 681 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					bytes = (g_free (bytes), NULL);
#line 4670 "gitg-diff-view-file-renderer-text.c"
				}
#line 706 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp117_ = i;
#line 706 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp118_ = lines;
#line 706 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp119_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _tmp118_);
#line 706 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp120_ = _tmp119_;
#line 706 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (_tmp117_ == (_tmp120_ - 1)) {
#line 4682 "gitg-diff-view-file-renderer-text.c"
					const gchar* _tmp121_ = NULL;
					gint _tmp122_ = 0;
					gint _tmp123_ = 0;
#line 706 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp121_ = text;
#line 706 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp122_ = strlen (_tmp121_);
#line 706 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp123_ = _tmp122_;
#line 706 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp116_ = _tmp123_ > 0;
#line 4694 "gitg-diff-view-file-renderer-text.c"
				} else {
#line 706 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp116_ = FALSE;
#line 4698 "gitg-diff-view-file-renderer-text.c"
				}
#line 706 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (_tmp116_) {
#line 4702 "gitg-diff-view-file-renderer-text.c"
					const gchar* _tmp124_ = NULL;
					const gchar* _tmp125_ = NULL;
					gint _tmp126_ = 0;
					gint _tmp127_ = 0;
					gchar _tmp128_ = '\0';
#line 706 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp124_ = text;
#line 706 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp125_ = text;
#line 706 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp126_ = strlen (_tmp125_);
#line 706 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp127_ = _tmp126_;
#line 706 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp128_ = string_get (_tmp124_, (glong) (_tmp127_ - 1));
#line 706 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp115_ = _tmp128_ == '\n';
#line 4720 "gitg-diff-view-file-renderer-text.c"
				} else {
#line 706 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp115_ = FALSE;
#line 4724 "gitg-diff-view-file-renderer-text.c"
				}
#line 706 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (_tmp115_) {
#line 4728 "gitg-diff-view-file-renderer-text.c"
					const gchar* _tmp129_ = NULL;
					const gchar* _tmp130_ = NULL;
					gint _tmp131_ = 0;
					gint _tmp132_ = 0;
					gchar* _tmp133_ = NULL;
#line 708 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp129_ = text;
#line 708 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp130_ = text;
#line 708 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp131_ = strlen (_tmp130_);
#line 708 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp132_ = _tmp131_;
#line 708 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp133_ = string_slice (_tmp129_, (glong) 0, (glong) (_tmp132_ - 1));
#line 708 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_g_free0 (text);
#line 708 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					text = _tmp133_;
#line 4748 "gitg-diff-view-file-renderer-text.c"
				}
#line 711 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp134_ = content;
#line 711 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp135_ = text;
#line 711 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				g_string_append (_tmp134_, _tmp135_);
#line 712 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp136_ = buffer_line;
#line 712 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				buffer_line = _tmp136_ + 1;
#line 622 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_g_free0 (text);
#line 622 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_ggit_diff_line_unref0 (line);
#line 4764 "gitg-diff-view-file-renderer-text.c"
			}
		}
	}
#line 715 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp137_ = lines;
#line 715 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp138_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _tmp137_);
#line 715 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp139_ = _tmp138_;
#line 715 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_tmp139_ != 0) {
#line 4776 "gitg-diff-view-file-renderer-text.c"
		GitgDiffViewFileRendererTextRegion* _tmp140_ = NULL;
		gint _tmp140__length1 = 0;
		GitgDiffViewFileRendererTextRegion _tmp141_ = {0};
#line 717 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp140_ = self->priv->d_regions;
#line 717 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp140__length1 = self->priv->d_regions_length1;
#line 717 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp141_ = region;
#line 717 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_vala_array_add5 (&self->priv->d_regions, &self->priv->d_regions_length1, &self->priv->_d_regions_size_, &_tmp141_);
#line 4788 "gitg-diff-view-file-renderer-text.c"
	}
#line 720 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp142_ = gtk_text_iter_get_line (&iter);
#line 720 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	line_hunk_start = _tmp142_;
#line 722 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp143_ = buffer;
#line 722 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp144_ = content;
#line 722 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp145_ = g_string_get_data (_tmp144_, &_tmp145__length1);
#line 722 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp146_ = _tmp145_;
#line 722 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp146__length1 = _tmp145__length1;
#line 722 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_text_buffer_insert ((GtkTextBuffer*) _tmp143_, &iter, (const gchar*) _tmp146_, -1);
#line 724 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp147_ = self->priv->d_old_lines;
#line 724 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp148_ = line_hunk_start;
#line 724 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp149_ = gtk_text_iter_get_line (&iter);
#line 724 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp150_ = hunk;
#line 724 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp151_ = lines;
#line 724 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_lines_renderer_add_hunk (_tmp147_, _tmp148_, _tmp149_, _tmp150_, _tmp151_);
#line 725 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp152_ = self->priv->d_new_lines;
#line 725 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp153_ = line_hunk_start;
#line 725 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp154_ = gtk_text_iter_get_line (&iter);
#line 725 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp155_ = hunk;
#line 725 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp156_ = lines;
#line 725 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_lines_renderer_add_hunk (_tmp152_, _tmp153_, _tmp154_, _tmp155_, _tmp156_);
#line 726 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp157_ = self->priv->d_sym_lines;
#line 726 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp158_ = line_hunk_start;
#line 726 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp159_ = gtk_text_iter_get_line (&iter);
#line 726 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp160_ = hunk;
#line 726 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp161_ = lines;
#line 726 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_lines_renderer_add_hunk (_tmp157_, _tmp158_, _tmp159_, _tmp160_, _tmp161_);
#line 4842 "gitg-diff-view-file-renderer-text.c"
	{
		gint i = 0;
#line 728 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		i = 0;
#line 4847 "gitg-diff-view-file-renderer-text.c"
		{
			gboolean _tmp162_ = FALSE;
#line 728 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_tmp162_ = TRUE;
#line 728 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			while (TRUE) {
#line 4854 "gitg-diff-view-file-renderer-text.c"
				gint _tmp164_ = 0;
				GeeArrayList* _tmp165_ = NULL;
				gint _tmp166_ = 0;
				gint _tmp167_ = 0;
				GgitDiffLine* line = NULL;
				GeeArrayList* _tmp168_ = NULL;
				gint _tmp169_ = 0;
				gpointer _tmp170_ = NULL;
				gchar* category = NULL;
				GgitDiffLine* _tmp171_ = NULL;
				GgitDiffLineType _tmp172_ = 0;
				const gchar* _tmp175_ = NULL;
#line 728 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (!_tmp162_) {
#line 4869 "gitg-diff-view-file-renderer-text.c"
					gint _tmp163_ = 0;
#line 728 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp163_ = i;
#line 728 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					i = _tmp163_ + 1;
#line 4875 "gitg-diff-view-file-renderer-text.c"
				}
#line 728 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp162_ = FALSE;
#line 728 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp164_ = i;
#line 728 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp165_ = lines;
#line 728 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp166_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _tmp165_);
#line 728 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp167_ = _tmp166_;
#line 728 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (!(_tmp164_ < _tmp167_)) {
#line 728 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					break;
#line 4891 "gitg-diff-view-file-renderer-text.c"
				}
#line 730 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp168_ = lines;
#line 730 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp169_ = i;
#line 730 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp170_ = gee_abstract_list_get ((GeeAbstractList*) _tmp168_, _tmp169_);
#line 730 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				line = (GgitDiffLine*) _tmp170_;
#line 731 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				category = NULL;
#line 733 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp171_ = line;
#line 733 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp172_ = ggit_diff_line_get_origin (_tmp171_);
#line 733 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				switch (_tmp172_) {
#line 733 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					case GGIT_DIFF_LINE_ADDITION:
#line 4911 "gitg-diff-view-file-renderer-text.c"
					{
						gchar* _tmp173_ = NULL;
#line 736 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp173_ = g_strdup ("added");
#line 736 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_g_free0 (category);
#line 736 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						category = _tmp173_;
#line 737 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						break;
#line 4922 "gitg-diff-view-file-renderer-text.c"
					}
#line 733 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					case GGIT_DIFF_LINE_DELETION:
#line 4926 "gitg-diff-view-file-renderer-text.c"
					{
						gchar* _tmp174_ = NULL;
#line 739 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_tmp174_ = g_strdup ("removed");
#line 739 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						_g_free0 (category);
#line 739 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						category = _tmp174_;
#line 740 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
						break;
#line 4937 "gitg-diff-view-file-renderer-text.c"
					}
					default:
#line 733 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					break;
#line 4942 "gitg-diff-view-file-renderer-text.c"
				}
#line 743 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp175_ = category;
#line 743 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (_tmp175_ != NULL) {
#line 4948 "gitg-diff-view-file-renderer-text.c"
					GtkSourceBuffer* _tmp176_ = NULL;
					gint _tmp177_ = 0;
					gint _tmp178_ = 0;
					GtkTextIter _tmp179_ = {0};
					GtkSourceBuffer* _tmp180_ = NULL;
					const gchar* _tmp181_ = NULL;
					GtkTextIter _tmp182_ = {0};
#line 745 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp176_ = buffer;
#line 745 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp177_ = line_hunk_start;
#line 745 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp178_ = i;
#line 745 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					gtk_text_buffer_get_iter_at_line ((GtkTextBuffer*) _tmp176_, &_tmp179_, _tmp177_ + _tmp178_);
#line 745 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					iter = _tmp179_;
#line 746 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp180_ = buffer;
#line 746 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp181_ = category;
#line 746 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp182_ = iter;
#line 746 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					gtk_source_buffer_create_source_mark (_tmp180_, NULL, _tmp181_, &_tmp182_);
#line 4974 "gitg-diff-view-file-renderer-text.c"
				}
#line 728 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_g_free0 (category);
#line 728 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_ggit_diff_line_unref0 (line);
#line 4980 "gitg-diff-view-file-renderer-text.c"
			}
		}
	}
#line 750 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_thaw_notify ((GObject*) self);
#line 752 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_widget_set_sensitive ((GtkWidget*) self, TRUE);
#line 579 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_string_free0 (content);
#line 579 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (header);
#line 579 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (h);
#line 579 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (buffer);
#line 4996 "gitg-diff-view-file-renderer-text.c"
}


guint gitg_diff_view_file_renderer_text_get_added (GitgDiffViewFileRendererText* self) {
	guint result;
	guint _tmp0_ = 0U;
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_val_if_fail (self != NULL, 0U);
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = self->priv->_added;
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = _tmp0_;
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 5011 "gitg-diff-view-file-renderer-text.c"
}


void gitg_diff_view_file_renderer_text_set_added (GitgDiffViewFileRendererText* self, guint value) {
	guint _tmp0_ = 0U;
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (self != NULL);
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = value;
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->_added = _tmp0_;
#line 38 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_notify ((GObject *) self, "added");
#line 5025 "gitg-diff-view-file-renderer-text.c"
}


guint gitg_diff_view_file_renderer_text_get_removed (GitgDiffViewFileRendererText* self) {
	guint result;
	guint _tmp0_ = 0U;
#line 39 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_val_if_fail (self != NULL, 0U);
#line 39 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = self->priv->_removed;
#line 39 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = _tmp0_;
#line 39 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 5040 "gitg-diff-view-file-renderer-text.c"
}


void gitg_diff_view_file_renderer_text_set_removed (GitgDiffViewFileRendererText* self, guint value) {
	guint _tmp0_ = 0U;
#line 39 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (self != NULL);
#line 39 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = value;
#line 39 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->_removed = _tmp0_;
#line 39 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_notify ((GObject *) self, "removed");
#line 5054 "gitg-diff-view-file-renderer-text.c"
}


gboolean gitg_diff_view_file_renderer_text_get_new_is_workdir (GitgDiffViewFileRendererText* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
#line 61 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 61 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = self->priv->_new_is_workdir;
#line 61 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = _tmp0_;
#line 61 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 5069 "gitg-diff-view-file-renderer-text.c"
}


void gitg_diff_view_file_renderer_text_set_new_is_workdir (GitgDiffViewFileRendererText* self, gboolean value) {
	gboolean _tmp0_ = FALSE;
#line 61 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (self != NULL);
#line 61 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = value;
#line 61 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->_new_is_workdir = _tmp0_;
#line 61 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_notify ((GObject *) self, "new-is-workdir");
#line 5083 "gitg-diff-view-file-renderer-text.c"
}


gboolean gitg_diff_view_file_renderer_text_get_wrap_lines (GitgDiffViewFileRendererText* self) {
	gboolean result;
	GtkWrapMode _tmp0_ = 0;
	GtkWrapMode _tmp1_ = 0;
#line 65 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 65 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = gtk_text_view_get_wrap_mode ((GtkTextView*) self);
#line 65 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = _tmp0_;
#line 65 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = _tmp1_ != GTK_WRAP_NONE;
#line 65 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 5101 "gitg-diff-view-file-renderer-text.c"
}


void gitg_diff_view_file_renderer_text_set_wrap_lines (GitgDiffViewFileRendererText* self, gboolean value) {
	gboolean _tmp0_ = FALSE;
#line 66 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (self != NULL);
#line 68 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = value;
#line 68 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_tmp0_) {
#line 70 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gtk_text_view_set_wrap_mode ((GtkTextView*) self, GTK_WRAP_WORD_CHAR);
#line 5115 "gitg-diff-view-file-renderer-text.c"
	} else {
#line 74 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gtk_text_view_set_wrap_mode ((GtkTextView*) self, GTK_WRAP_NONE);
#line 5119 "gitg-diff-view-file-renderer-text.c"
	}
#line 66 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_notify ((GObject *) self, "wrap-lines");
#line 5123 "gitg-diff-view-file-renderer-text.c"
}


gint gitg_diff_view_file_renderer_text_get_tab_width (GitgDiffViewFileRendererText* self) {
	gint result;
	guint _tmp0_ = 0U;
#line 81 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 81 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = gtk_source_view_get_tab_width ((GtkSourceView*) self);
#line 81 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = (gint) _tmp0_;
#line 81 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 5138 "gitg-diff-view-file-renderer-text.c"
}


void gitg_diff_view_file_renderer_text_set_tab_width (GitgDiffViewFileRendererText* self, gint value) {
	gint _tmp0_ = 0;
#line 82 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (self != NULL);
#line 82 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = value;
#line 82 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_source_view_set_tab_width ((GtkSourceView*) self, (guint) _tmp0_);
#line 82 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_notify ((GObject *) self, "tab-width");
#line 5152 "gitg-diff-view-file-renderer-text.c"
}


gint gitg_diff_view_file_renderer_text_get_maxlines (GitgDiffViewFileRendererText* self) {
	gint result;
	gint _tmp0_ = 0;
#line 85 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 85 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = self->priv->_maxlines;
#line 85 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = _tmp0_;
#line 85 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 5167 "gitg-diff-view-file-renderer-text.c"
}


void gitg_diff_view_file_renderer_text_set_maxlines (GitgDiffViewFileRendererText* self, gint value) {
	gint _tmp0_ = 0;
#line 85 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (self != NULL);
#line 85 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = value;
#line 85 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->_maxlines = _tmp0_;
#line 85 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_notify ((GObject *) self, "maxlines");
#line 5181 "gitg-diff-view-file-renderer-text.c"
}


GitgDiffViewFileInfo* gitg_diff_view_file_renderer_text_get_info (GitgDiffViewFileRendererText* self) {
	GitgDiffViewFileInfo* result;
	GitgDiffViewFileInfo* _tmp0_ = NULL;
#line 87 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 87 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = self->priv->_info;
#line 87 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = _tmp0_;
#line 87 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 5196 "gitg-diff-view-file-renderer-text.c"
}


void gitg_diff_view_file_renderer_text_set_info (GitgDiffViewFileRendererText* self, GitgDiffViewFileInfo* value) {
	GitgDiffViewFileInfo* _tmp0_ = NULL;
	GitgDiffViewFileInfo* _tmp1_ = NULL;
#line 87 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (self != NULL);
#line 87 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = value;
#line 87 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 87 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->_info);
#line 87 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->_info = _tmp1_;
#line 87 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_notify ((GObject *) self, "info");
#line 5215 "gitg-diff-view-file-renderer-text.c"
}


GgitDiffDelta* gitg_diff_view_file_renderer_text_get_delta (GitgDiffViewFileRendererText* self) {
	GgitDiffDelta* result;
	GitgDiffViewFileInfo* _tmp0_ = NULL;
	GgitDiffDelta* _tmp1_ = NULL;
	GgitDiffDelta* _tmp2_ = NULL;
#line 91 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 91 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = self->priv->_info;
#line 91 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = gitg_diff_view_file_info_get_delta (_tmp0_);
#line 91 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp2_ = _tmp1_;
#line 91 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = _tmp2_;
#line 91 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 5236 "gitg-diff-view-file-renderer-text.c"
}


GitgRepository* gitg_diff_view_file_renderer_text_get_repository (GitgDiffViewFileRendererText* self) {
	GitgRepository* result;
	GitgDiffViewFileInfo* _tmp0_ = NULL;
	GitgRepository* _tmp1_ = NULL;
	GitgRepository* _tmp2_ = NULL;
#line 96 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 96 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = self->priv->_info;
#line 96 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = gitg_diff_view_file_info_get_repository (_tmp0_);
#line 96 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp2_ = _tmp1_;
#line 96 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = _tmp2_;
#line 96 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 5257 "gitg-diff-view-file-renderer-text.c"
}


gboolean gitg_diff_view_file_renderer_text_get_highlight (GitgDiffViewFileRendererText* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
#line 101 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 101 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = self->priv->d_highlight;
#line 101 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = _tmp0_;
#line 101 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 5272 "gitg-diff-view-file-renderer-text.c"
}


void gitg_diff_view_file_renderer_text_set_highlight (GitgDiffViewFileRendererText* self, gboolean value) {
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
#line 103 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_return_if_fail (self != NULL);
#line 105 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = self->priv->d_highlight;
#line 105 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = value;
#line 105 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_tmp0_ != _tmp1_) {
#line 5287 "gitg-diff-view-file-renderer-text.c"
		gboolean _tmp2_ = FALSE;
#line 107 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp2_ = value;
#line 107 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		self->priv->d_highlight = _tmp2_;
#line 108 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_update_highlight (self);
#line 5295 "gitg-diff-view-file-renderer-text.c"
	}
#line 103 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_notify ((GObject *) self, "highlight");
#line 5299 "gitg-diff-view-file-renderer-text.c"
}


static gboolean gitg_diff_view_file_renderer_text_real_get_has_selection (GitgDiffSelectable* base) {
	gboolean result;
	GitgDiffViewFileRendererText* self;
	gboolean _tmp0_ = FALSE;
#line 119 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self = (GitgDiffViewFileRendererText*) base;
#line 119 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = self->priv->d_has_selection;
#line 119 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = _tmp0_;
#line 119 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 5315 "gitg-diff-view-file-renderer-text.c"
}


static gboolean gitg_diff_view_file_renderer_text_real_get_can_select (GitgDiffSelectable* base) {
	gboolean result;
	GitgDiffViewFileRendererText* self;
	gboolean _tmp0_ = FALSE;
#line 122 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self = (GitgDiffViewFileRendererText*) base;
#line 122 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = self->priv->_can_select;
#line 122 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = _tmp0_;
#line 122 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 5331 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_real_set_can_select (GitgDiffSelectable* base, gboolean value) {
	GitgDiffViewFileRendererText* self;
	gboolean _tmp0_ = FALSE;
#line 122 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self = (GitgDiffViewFileRendererText*) base;
#line 122 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = value;
#line 122 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->_can_select = _tmp0_;
#line 122 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_notify ((GObject *) self, "can-select");
#line 5346 "gitg-diff-view-file-renderer-text.c"
}


static void _vala_array_add6 (GitgPatchSetPatch** array, int* length, int* size, const GitgPatchSetPatch* value) {
#line 148 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if ((*length) == (*size)) {
#line 148 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 148 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		*array = g_renew (GitgPatchSetPatch, *array, *size);
#line 5357 "gitg-diff-view-file-renderer-text.c"
	}
#line 148 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	(*array)[(*length)++] = *value;
#line 5361 "gitg-diff-view-file-renderer-text.c"
}


static void _vala_array_add7 (GitgPatchSetPatch** array, int* length, int* size, const GitgPatchSetPatch* value) {
#line 162 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if ((*length) == (*size)) {
#line 162 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 162 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		*array = g_renew (GitgPatchSetPatch, *array, *size);
#line 5372 "gitg-diff-view-file-renderer-text.c"
	}
#line 162 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	(*array)[(*length)++] = *value;
#line 5376 "gitg-diff-view-file-renderer-text.c"
}


static GitgPatchSetPatch* _vala_array_dup11 (GitgPatchSetPatch* self, int length) {
#line 166 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return g_memdup (self, length * sizeof (GitgPatchSetPatch));
#line 5383 "gitg-diff-view-file-renderer-text.c"
}


static GitgPatchSet* gitg_diff_view_file_renderer_text_real_get_selection (GitgDiffSelectable* base) {
	GitgPatchSet* result;
	GitgDiffViewFileRendererText* self;
	GitgPatchSet* ret = NULL;
	GitgPatchSet* _tmp0_ = NULL;
	GitgPatchSet* _tmp1_ = NULL;
	GgitDiffDelta* _tmp2_ = NULL;
	GgitDiffDelta* _tmp3_ = NULL;
	GgitDiffFile* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	GitgPatchSetPatch* patches = NULL;
	GitgPatchSetPatch* _tmp7_ = NULL;
	gint patches_length1 = 0;
	gint _patches_size_ = 0;
	gboolean _tmp8_ = FALSE;
	gboolean _tmp9_ = FALSE;
	gint* selected = NULL;
	GitgDiffViewFileSelectable* _tmp10_ = NULL;
	gint* _tmp11_ = NULL;
	gint _tmp11__length1 = 0;
	gint* _tmp12_ = NULL;
	gint _tmp12__length1 = 0;
	gint selected_length1 = 0;
	gint _selected_size_ = 0;
	GitgPatchSet* _tmp51_ = NULL;
	GitgPatchSetPatch* _tmp52_ = NULL;
	gint _tmp52__length1 = 0;
	GitgPatchSetPatch* _tmp53_ = NULL;
	gint _tmp53__length1 = 0;
#line 126 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self = (GitgDiffViewFileRendererText*) base;
#line 128 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = gitg_patch_set_new ();
#line 128 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	ret = _tmp0_;
#line 130 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = ret;
#line 130 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp2_ = gitg_diff_view_file_renderer_text_get_delta (self);
#line 130 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp3_ = _tmp2_;
#line 130 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp4_ = ggit_diff_delta_get_new_file (_tmp3_);
#line 130 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp5_ = ggit_diff_file_get_path (_tmp4_);
#line 130 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp6_ = g_strdup (_tmp5_);
#line 130 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_free0 (_tmp1_->filename);
#line 130 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_->filename = _tmp6_;
#line 132 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp7_ = g_new0 (GitgPatchSetPatch, 0);
#line 132 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	patches = _tmp7_;
#line 132 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	patches_length1 = 0;
#line 132 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_patches_size_ = patches_length1;
#line 134 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp8_ = gitg_diff_selectable_get_can_select ((GitgDiffSelectable*) self);
#line 134 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp9_ = _tmp8_;
#line 134 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (!_tmp9_) {
#line 136 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		result = ret;
#line 136 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		patches = (g_free (patches), NULL);
#line 136 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		return result;
#line 5459 "gitg-diff-view-file-renderer-text.c"
	}
#line 139 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp10_ = self->priv->d_selectable;
#line 139 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp11_ = gitg_diff_view_file_selectable_get_selected_lines (_tmp10_, &_tmp11__length1);
#line 139 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp12_ = _tmp11_;
#line 139 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp12__length1 = _tmp11__length1;
#line 139 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	selected = _tmp12_;
#line 139 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	selected_length1 = _tmp12__length1;
#line 139 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_selected_size_ = selected_length1;
#line 5475 "gitg-diff-view-file-renderer-text.c"
	{
		gint i = 0;
#line 141 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		i = 0;
#line 5480 "gitg-diff-view-file-renderer-text.c"
		{
			gboolean _tmp13_ = FALSE;
#line 141 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			_tmp13_ = TRUE;
#line 141 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
			while (TRUE) {
#line 5487 "gitg-diff-view-file-renderer-text.c"
				gint _tmp15_ = 0;
				gint* _tmp16_ = NULL;
				gint _tmp16__length1 = 0;
				gint line = 0;
				gint* _tmp17_ = NULL;
				gint _tmp17__length1 = 0;
				gint _tmp18_ = 0;
				gint _tmp19_ = 0;
				GitgPatchSetPatch* pset = NULL;
				GeeHashMap* _tmp20_ = NULL;
				gint _tmp21_ = 0;
				gpointer _tmp22_ = NULL;
				gint _tmp23_ = 0;
				GitgPatchSetPatch last = {0};
				GitgPatchSetPatch* _tmp27_ = NULL;
				gint _tmp27__length1 = 0;
				GitgPatchSetPatch* _tmp28_ = NULL;
				gint _tmp28__length1 = 0;
				GitgPatchSetPatch _tmp29_ = {0};
				gboolean _tmp30_ = FALSE;
				GitgPatchSetPatch _tmp31_ = {0};
				gsize _tmp32_ = 0UL;
				GitgPatchSetPatch _tmp33_ = {0};
				gsize _tmp34_ = 0UL;
				GitgPatchSetPatch* _tmp35_ = NULL;
				gsize _tmp36_ = 0UL;
#line 141 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (!_tmp13_) {
#line 5516 "gitg-diff-view-file-renderer-text.c"
					gint _tmp14_ = 0;
#line 141 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp14_ = i;
#line 141 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					i = _tmp14_ + 1;
#line 5522 "gitg-diff-view-file-renderer-text.c"
				}
#line 141 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp13_ = FALSE;
#line 141 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp15_ = i;
#line 141 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp16_ = selected;
#line 141 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp16__length1 = selected_length1;
#line 141 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (!(_tmp15_ < _tmp16__length1)) {
#line 141 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					break;
#line 5536 "gitg-diff-view-file-renderer-text.c"
				}
#line 143 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp17_ = selected;
#line 143 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp17__length1 = selected_length1;
#line 143 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp18_ = i;
#line 143 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp19_ = _tmp17_[_tmp18_];
#line 143 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				line = _tmp19_;
#line 144 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp20_ = self->priv->d_lines;
#line 144 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp21_ = line;
#line 144 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp22_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp20_, (gpointer) ((gintptr) _tmp21_));
#line 144 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				pset = (GitgPatchSetPatch*) _tmp22_;
#line 146 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp23_ = i;
#line 146 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (_tmp23_ == 0) {
#line 5560 "gitg-diff-view-file-renderer-text.c"
					GitgPatchSetPatch* _tmp24_ = NULL;
					gint _tmp24__length1 = 0;
					GitgPatchSetPatch* _tmp25_ = NULL;
					GitgPatchSetPatch _tmp26_ = {0};
#line 148 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp24_ = patches;
#line 148 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp24__length1 = patches_length1;
#line 148 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp25_ = pset;
#line 148 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp26_ = *_tmp25_;
#line 148 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_vala_array_add6 (&patches, &patches_length1, &_patches_size_, &_tmp26_);
#line 149 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_gitg_patch_set_patch_free0 (pset);
#line 149 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					continue;
#line 5579 "gitg-diff-view-file-renderer-text.c"
				}
#line 152 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp27_ = patches;
#line 152 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp27__length1 = patches_length1;
#line 152 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp28_ = patches;
#line 152 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp28__length1 = patches_length1;
#line 152 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp29_ = _tmp27_[_tmp28__length1 - 1];
#line 152 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				last = _tmp29_;
#line 154 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp31_ = last;
#line 154 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp32_ = _tmp31_.new_offset;
#line 154 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp33_ = last;
#line 154 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp34_ = _tmp33_.length;
#line 154 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp35_ = pset;
#line 154 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_tmp36_ = (*_tmp35_).new_offset;
#line 154 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if ((_tmp32_ + _tmp34_) == _tmp36_) {
#line 5607 "gitg-diff-view-file-renderer-text.c"
					GitgPatchSetPatch _tmp37_ = {0};
					GitgPatchSetType _tmp38_ = 0;
					GitgPatchSetPatch* _tmp39_ = NULL;
					GitgPatchSetType _tmp40_ = 0;
#line 155 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp37_ = last;
#line 155 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp38_ = _tmp37_.type;
#line 155 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp39_ = pset;
#line 155 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp40_ = (*_tmp39_).type;
#line 155 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp30_ = _tmp38_ == _tmp40_;
#line 5622 "gitg-diff-view-file-renderer-text.c"
				} else {
#line 154 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp30_ = FALSE;
#line 5626 "gitg-diff-view-file-renderer-text.c"
				}
#line 154 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				if (_tmp30_) {
#line 5630 "gitg-diff-view-file-renderer-text.c"
					gsize _tmp41_ = 0UL;
					GitgPatchSetPatch* _tmp42_ = NULL;
					gsize _tmp43_ = 0UL;
					GitgPatchSetPatch* _tmp44_ = NULL;
					gint _tmp44__length1 = 0;
					GitgPatchSetPatch* _tmp45_ = NULL;
					gint _tmp45__length1 = 0;
					GitgPatchSetPatch _tmp46_ = {0};
					GitgPatchSetPatch _tmp47_ = {0};
#line 157 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp41_ = last.length;
#line 157 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp42_ = pset;
#line 157 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp43_ = (*_tmp42_).length;
#line 157 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					last.length = _tmp41_ + _tmp43_;
#line 158 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp44_ = patches;
#line 158 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp44__length1 = patches_length1;
#line 158 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp45_ = patches;
#line 158 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp45__length1 = patches_length1;
#line 158 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp46_ = last;
#line 158 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp44_[_tmp45__length1 - 1] = _tmp46_;
#line 158 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp47_ = _tmp44_[_tmp45__length1 - 1];
#line 5662 "gitg-diff-view-file-renderer-text.c"
				} else {
					GitgPatchSetPatch* _tmp48_ = NULL;
					gint _tmp48__length1 = 0;
					GitgPatchSetPatch* _tmp49_ = NULL;
					GitgPatchSetPatch _tmp50_ = {0};
#line 162 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp48_ = patches;
#line 162 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp48__length1 = patches_length1;
#line 162 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp49_ = pset;
#line 162 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_tmp50_ = *_tmp49_;
#line 162 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
					_vala_array_add7 (&patches, &patches_length1, &_patches_size_, &_tmp50_);
#line 5678 "gitg-diff-view-file-renderer-text.c"
				}
#line 141 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
				_gitg_patch_set_patch_free0 (pset);
#line 5682 "gitg-diff-view-file-renderer-text.c"
			}
		}
	}
#line 166 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp51_ = ret;
#line 166 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp52_ = patches;
#line 166 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp52__length1 = patches_length1;
#line 166 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp53_ = (_tmp52_ != NULL) ? _vala_array_dup11 (_tmp52_, _tmp52__length1) : ((gpointer) _tmp52_);
#line 166 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp53__length1 = _tmp52__length1;
#line 166 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp51_->patches = (g_free (_tmp51_->patches), NULL);
#line 166 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp51_->patches = _tmp53_;
#line 166 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp51_->patches_length1 = _tmp53__length1;
#line 167 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	result = ret;
#line 167 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	selected = (g_free (selected), NULL);
#line 167 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	patches = (g_free (patches), NULL);
#line 167 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return result;
#line 5710 "gitg-diff-view-file-renderer-text.c"
}


static void _gitg_diff_view_file_renderer_text_update_theme_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 198 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_file_renderer_text_update_theme ((GitgDiffViewFileRendererText*) self);
#line 5717 "gitg-diff-view-file-renderer-text.c"
}


static void _gitg_diff_view_file_renderer_text____lambda53_ (GitgDiffViewFileRendererText* self) {
	GitgDiffViewFileSelectable* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
#line 207 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = self->priv->d_selectable;
#line 207 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = gitg_diff_view_file_selectable_get_has_selection (_tmp0_);
#line 207 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp2_ = _tmp1_;
#line 207 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->d_has_selection = _tmp2_;
#line 208 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_notify ((GObject*) self, "has-selection");
#line 5735 "gitg-diff-view-file-renderer-text.c"
}


static void __gitg_diff_view_file_renderer_text____lambda53__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 206 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_gitg_diff_view_file_renderer_text____lambda53_ ((GitgDiffViewFileRendererText*) self);
#line 5742 "gitg-diff-view-file-renderer-text.c"
}


static GObject * gitg_diff_view_file_renderer_text_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	GitgDiffViewFileRendererText * self;
	GtkSourceGutter* gutter = NULL;
	GtkSourceGutter* _tmp0_ = NULL;
	GtkSourceGutter* _tmp1_ = NULL;
	GitgDiffViewLinesRenderer* _tmp2_ = NULL;
	GitgDiffViewLinesRenderer* _tmp3_ = NULL;
	GitgDiffViewLinesRenderer* _tmp4_ = NULL;
	GitgDiffViewLinesRenderer* _tmp5_ = NULL;
	GitgDiffViewLinesRenderer* _tmp6_ = NULL;
	GitgDiffViewLinesRenderer* _tmp7_ = NULL;
	GitgDiffViewLinesRenderer* _tmp8_ = NULL;
	GitgDiffViewLinesRenderer* _tmp9_ = NULL;
	GtkSourceGutter* _tmp10_ = NULL;
	GitgDiffViewLinesRenderer* _tmp11_ = NULL;
	GtkSourceGutter* _tmp12_ = NULL;
	GitgDiffViewLinesRenderer* _tmp13_ = NULL;
	GtkSourceGutter* _tmp14_ = NULL;
	GitgDiffViewLinesRenderer* _tmp15_ = NULL;
	GtkSettings* settings = NULL;
	GtkSettings* _tmp16_ = NULL;
	GtkSettings* _tmp17_ = NULL;
	GtkSettings* _tmp18_ = NULL;
	gboolean _tmp19_ = FALSE;
	gboolean _tmp20_ = FALSE;
	GeeHashMap* _tmp23_ = NULL;
#line 176 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	parent_class = G_OBJECT_CLASS (gitg_diff_view_file_renderer_text_parent_class);
#line 176 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 176 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_DIFF_VIEW_FILE_RENDERER_TEXT, GitgDiffViewFileRendererText);
#line 178 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp0_ = gtk_source_view_get_gutter ((GtkSourceView*) self, GTK_TEXT_WINDOW_LEFT);
#line 178 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 178 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gutter = _tmp1_;
#line 180 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp2_ = gitg_diff_view_lines_renderer_new (GITG_DIFF_VIEW_LINES_RENDERER_STYLE_OLD);
#line 180 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_ref_sink (_tmp2_);
#line 180 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->d_old_lines);
#line 180 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->d_old_lines = _tmp2_;
#line 181 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp3_ = gitg_diff_view_lines_renderer_new (GITG_DIFF_VIEW_LINES_RENDERER_STYLE_NEW);
#line 181 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_ref_sink (_tmp3_);
#line 181 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->d_new_lines);
#line 181 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->d_new_lines = _tmp3_;
#line 182 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp4_ = gitg_diff_view_lines_renderer_new (GITG_DIFF_VIEW_LINES_RENDERER_STYLE_SYMBOL);
#line 182 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_ref_sink (_tmp4_);
#line 182 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->d_sym_lines);
#line 182 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->d_sym_lines = _tmp4_;
#line 184 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp5_ = self->priv->d_old_lines;
#line 184 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_bind_property_with_closures ((GObject*) self, "maxlines", (GObject*) _tmp5_, "maxlines", G_BINDING_DEFAULT | G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
#line 185 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp6_ = self->priv->d_new_lines;
#line 185 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_bind_property_with_closures ((GObject*) self, "maxlines", (GObject*) _tmp6_, "maxlines", G_BINDING_DEFAULT | G_BINDING_SYNC_CREATE, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
#line 187 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp7_ = self->priv->d_old_lines;
#line 187 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_set ((GtkSourceGutterRenderer*) _tmp7_, "xpad", 8, NULL);
#line 188 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp8_ = self->priv->d_new_lines;
#line 188 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_set ((GtkSourceGutterRenderer*) _tmp8_, "xpad", 8, NULL);
#line 189 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp9_ = self->priv->d_sym_lines;
#line 189 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_set ((GtkSourceGutterRenderer*) _tmp9_, "xpad", 6, NULL);
#line 191 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp10_ = gutter;
#line 191 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp11_ = self->priv->d_old_lines;
#line 191 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_source_gutter_insert (_tmp10_, (GtkSourceGutterRenderer*) _tmp11_, 0);
#line 192 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp12_ = gutter;
#line 192 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp13_ = self->priv->d_new_lines;
#line 192 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_source_gutter_insert (_tmp12_, (GtkSourceGutterRenderer*) _tmp13_, 1);
#line 193 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp14_ = gutter;
#line 193 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp15_ = self->priv->d_sym_lines;
#line 193 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_source_gutter_insert (_tmp14_, (GtkSourceGutterRenderer*) _tmp15_, 2);
#line 195 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_text_view_set_border_window_size ((GtkTextView*) self, GTK_TEXT_WINDOW_TOP, 1);
#line 197 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp16_ = gtk_settings_get_default ();
#line 197 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp17_ = _g_object_ref0 (_tmp16_);
#line 197 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	settings = _tmp17_;
#line 198 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp18_ = settings;
#line 198 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_signal_connect_object ((GObject*) _tmp18_, "notify::gtk-application-prefer-dark-theme", (GCallback) _gitg_diff_view_file_renderer_text_update_theme_g_object_notify, self, 0);
#line 200 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_file_renderer_text_update_theme (self);
#line 202 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp19_ = gitg_diff_selectable_get_can_select ((GitgDiffSelectable*) self);
#line 202 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp20_ = _tmp19_;
#line 202 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	if (_tmp20_) {
#line 5868 "gitg-diff-view-file-renderer-text.c"
		GitgDiffViewFileSelectable* _tmp21_ = NULL;
		GitgDiffViewFileSelectable* _tmp22_ = NULL;
#line 204 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp21_ = gitg_diff_view_file_selectable_new ((GtkSourceView*) self);
#line 204 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_g_object_unref0 (self->priv->d_selectable);
#line 204 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		self->priv->d_selectable = _tmp21_;
#line 206 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		_tmp22_ = self->priv->d_selectable;
#line 206 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_signal_connect_object ((GObject*) _tmp22_, "notify::has-selection", (GCallback) __gitg_diff_view_file_renderer_text____lambda53__g_object_notify, self, 0);
#line 5881 "gitg-diff-view-file-renderer-text.c"
	}
#line 212 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_tmp23_ = gee_hash_map_new (G_TYPE_INT, NULL, NULL, GITG_PATCH_SET_TYPE_PATCH, (GBoxedCopyFunc) gitg_patch_set_patch_dup, (GDestroyNotify) gitg_patch_set_patch_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 212 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->d_lines);
#line 212 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->d_lines = _tmp23_;
#line 176 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (settings);
#line 176 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (gutter);
#line 176 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return obj;
#line 5895 "gitg-diff-view-file-renderer-text.c"
}


static GitgDiffViewFileRendererTextRegion* gitg_diff_view_file_renderer_text_region_dup (const GitgDiffViewFileRendererTextRegion* self) {
	GitgDiffViewFileRendererTextRegion* dup;
#line 30 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	dup = g_new0 (GitgDiffViewFileRendererTextRegion, 1);
#line 30 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	memcpy (dup, self, sizeof (GitgDiffViewFileRendererTextRegion));
#line 30 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	return dup;
#line 5907 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_region_free (GitgDiffViewFileRendererTextRegion* self) {
#line 30 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_free (self);
#line 5914 "gitg-diff-view-file-renderer-text.c"
}


static GType gitg_diff_view_file_renderer_text_region_get_type (void) {
	static volatile gsize gitg_diff_view_file_renderer_text_region_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_diff_view_file_renderer_text_region_type_id__volatile)) {
		GType gitg_diff_view_file_renderer_text_region_type_id;
		gitg_diff_view_file_renderer_text_region_type_id = g_boxed_type_register_static ("GitgDiffViewFileRendererTextRegion", (GBoxedCopyFunc) gitg_diff_view_file_renderer_text_region_dup, (GBoxedFreeFunc) gitg_diff_view_file_renderer_text_region_free);
		g_once_init_leave (&gitg_diff_view_file_renderer_text_region_type_id__volatile, gitg_diff_view_file_renderer_text_region_type_id);
	}
	return gitg_diff_view_file_renderer_text_region_type_id__volatile;
}


static void gitg_diff_view_file_renderer_text_class_init (GitgDiffViewFileRendererTextClass * klass) {
	gint GitgDiffViewFileRendererText_private_offset;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_file_renderer_text_parent_class = g_type_class_peek_parent (klass);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_type_class_add_private (klass, sizeof (GitgDiffViewFileRendererTextPrivate));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	((GObjectClass *) klass)->dispose = (void (*)(GObject*)) gitg_diff_view_file_renderer_text_real_dispose;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	((GtkWidgetClass *) klass)->draw = (gboolean (*)(GtkWidget*, cairo_t*)) gitg_diff_view_file_renderer_text_real_draw;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	((GObjectClass *) klass)->constructed = (void (*)(GObject*)) gitg_diff_view_file_renderer_text_real_constructed;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_diff_view_file_renderer_text_get_property;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_diff_view_file_renderer_text_set_property;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	G_OBJECT_CLASS (klass)->constructor = gitg_diff_view_file_renderer_text_constructor;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_diff_view_file_renderer_text_finalize;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER_TEXT_ADDED, g_param_spec_uint ("added", "added", "added", 0, G_MAXUINT, 0U, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REMOVED, g_param_spec_uint ("removed", "removed", "removed", 0, G_MAXUINT, 0U, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER_TEXT_NEW_IS_WORKDIR, g_param_spec_boolean ("new-is-workdir", "new-is-workdir", "new-is-workdir", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER_TEXT_WRAP_LINES, g_param_spec_boolean ("wrap-lines", "wrap-lines", "wrap-lines", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER_TEXT_TAB_WIDTH, g_param_spec_int ("tab-width", "tab-width", "tab-width", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER_TEXT_MAXLINES, g_param_spec_int ("maxlines", "maxlines", "maxlines", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER_TEXT_INFO, g_param_spec_object ("info", "info", "info", GITG_TYPE_DIFF_VIEW_FILE_INFO, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER_TEXT_DELTA, g_param_spec_boxed ("delta", "delta", "delta", ggit_diff_delta_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REPOSITORY, g_param_spec_object ("repository", "repository", "repository", GITG_TYPE_REPOSITORY, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER_TEXT_HIGHLIGHT, g_param_spec_boolean ("highlight", "highlight", "highlight", TRUE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER_TEXT_HAS_SELECTION, g_param_spec_boolean ("has-selection", "has-selection", "has-selection", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER_TEXT_CAN_SELECT, g_param_spec_boolean ("can-select", "can-select", "can-select", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_DIFF_VIEW_FILE_RENDERER_TEXT_SELECTION, gitg_param_spec_patch_set ("selection", "selection", "selection", GITG_TYPE_PATCH_SET, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	GitgDiffViewFileRendererText_private_offset = g_type_class_get_instance_private_offset (klass);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/gitg/ui/gitg-diff-view-file-renderer-text.ui");
#line 5979 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_gitg_diff_selectable_interface_init (GitgDiffSelectableIface * iface) {
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_file_renderer_text_gitg_diff_selectable_parent_iface = g_type_interface_peek_parent (iface);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	iface->get_has_selection = gitg_diff_view_file_renderer_text_real_get_has_selection;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	iface->get_can_select = gitg_diff_view_file_renderer_text_real_get_can_select;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	iface->set_can_select = gitg_diff_view_file_renderer_text_real_set_can_select;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	iface->get_selection = gitg_diff_view_file_renderer_text_real_get_selection;
#line 5994 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_gitg_diff_view_file_renderer_interface_init (GitgDiffViewFileRendererIface * iface) {
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gitg_diff_view_file_renderer_text_gitg_diff_view_file_renderer_parent_iface = g_type_interface_peek_parent (iface);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	iface->add_hunk = (void (*)(GitgDiffViewFileRenderer*, GgitDiffHunk*, GeeArrayList*)) gitg_diff_view_file_renderer_text_real_add_hunk;
#line 6003 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_instance_init (GitgDiffViewFileRendererText * self) {
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv = GITG_DIFF_VIEW_FILE_RENDERER_TEXT_GET_PRIVATE (self);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 6012 "gitg-diff-view-file-renderer-text.c"
}


static void gitg_diff_view_file_renderer_text_finalize (GObject* obj) {
	GitgDiffViewFileRendererText * self;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_DIFF_VIEW_FILE_RENDERER_TEXT, GitgDiffViewFileRendererText);
#line 43 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->d_lines);
#line 45 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->d_selectable);
#line 46 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->d_old_lines);
#line 47 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->d_new_lines);
#line 48 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->d_sym_lines);
#line 52 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->d_higlight_cancellable);
#line 53 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->d_old_highlight_buffer);
#line 54 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->d_new_highlight_buffer);
#line 58 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	self->priv->d_regions = (g_free (self->priv->d_regions), NULL);
#line 87 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	_g_object_unref0 (self->priv->_info);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	G_OBJECT_CLASS (gitg_diff_view_file_renderer_text_parent_class)->finalize (obj);
#line 6042 "gitg-diff-view-file-renderer-text.c"
}


GType gitg_diff_view_file_renderer_text_get_type (void) {
	static volatile gsize gitg_diff_view_file_renderer_text_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_diff_view_file_renderer_text_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgDiffViewFileRendererTextClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_diff_view_file_renderer_text_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgDiffViewFileRendererText), 0, (GInstanceInitFunc) gitg_diff_view_file_renderer_text_instance_init, NULL };
		static const GInterfaceInfo gitg_diff_selectable_info = { (GInterfaceInitFunc) gitg_diff_view_file_renderer_text_gitg_diff_selectable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		static const GInterfaceInfo gitg_diff_view_file_renderer_info = { (GInterfaceInitFunc) gitg_diff_view_file_renderer_text_gitg_diff_view_file_renderer_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType gitg_diff_view_file_renderer_text_type_id;
		gitg_diff_view_file_renderer_text_type_id = g_type_register_static (gtk_source_view_get_type (), "GitgDiffViewFileRendererText", &g_define_type_info, 0);
		g_type_add_interface_static (gitg_diff_view_file_renderer_text_type_id, GITG_TYPE_DIFF_SELECTABLE, &gitg_diff_selectable_info);
		g_type_add_interface_static (gitg_diff_view_file_renderer_text_type_id, GITG_TYPE_DIFF_VIEW_FILE_RENDERER, &gitg_diff_view_file_renderer_info);
		g_once_init_leave (&gitg_diff_view_file_renderer_text_type_id__volatile, gitg_diff_view_file_renderer_text_type_id);
	}
	return gitg_diff_view_file_renderer_text_type_id__volatile;
}


static void _vala_gitg_diff_view_file_renderer_text_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgDiffViewFileRendererText * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_DIFF_VIEW_FILE_RENDERER_TEXT, GitgDiffViewFileRendererText);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	switch (property_id) {
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_ADDED:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_value_set_uint (value, gitg_diff_view_file_renderer_text_get_added (self));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REMOVED:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_value_set_uint (value, gitg_diff_view_file_renderer_text_get_removed (self));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_NEW_IS_WORKDIR:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_value_set_boolean (value, gitg_diff_view_file_renderer_text_get_new_is_workdir (self));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_WRAP_LINES:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_value_set_boolean (value, gitg_diff_view_file_renderer_text_get_wrap_lines (self));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_TAB_WIDTH:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_value_set_int (value, gitg_diff_view_file_renderer_text_get_tab_width (self));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_MAXLINES:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_value_set_int (value, gitg_diff_view_file_renderer_text_get_maxlines (self));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_INFO:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_value_set_object (value, gitg_diff_view_file_renderer_text_get_info (self));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_DELTA:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_value_set_boxed (value, gitg_diff_view_file_renderer_text_get_delta (self));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REPOSITORY:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_value_set_object (value, gitg_diff_view_file_renderer_text_get_repository (self));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_HIGHLIGHT:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_value_set_boolean (value, gitg_diff_view_file_renderer_text_get_highlight (self));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_HAS_SELECTION:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_value_set_boolean (value, gitg_diff_selectable_get_has_selection ((GitgDiffSelectable*) self));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_CAN_SELECT:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		g_value_set_boolean (value, gitg_diff_selectable_get_can_select ((GitgDiffSelectable*) self));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_SELECTION:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_value_take_patch_set (value, gitg_diff_selectable_get_selection ((GitgDiffSelectable*) self));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 6145 "gitg-diff-view-file-renderer-text.c"
		default:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 6151 "gitg-diff-view-file-renderer-text.c"
	}
}


static void _vala_gitg_diff_view_file_renderer_text_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgDiffViewFileRendererText * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_DIFF_VIEW_FILE_RENDERER_TEXT, GitgDiffViewFileRendererText);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
	switch (property_id) {
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_ADDED:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_set_added (self, g_value_get_uint (value));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_REMOVED:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_set_removed (self, g_value_get_uint (value));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_NEW_IS_WORKDIR:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_set_new_is_workdir (self, g_value_get_boolean (value));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_WRAP_LINES:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_set_wrap_lines (self, g_value_get_boolean (value));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_TAB_WIDTH:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_set_tab_width (self, g_value_get_int (value));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_MAXLINES:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_set_maxlines (self, g_value_get_int (value));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_INFO:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_set_info (self, g_value_get_object (value));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_HIGHLIGHT:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_view_file_renderer_text_set_highlight (self, g_value_get_boolean (value));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		case GITG_DIFF_VIEW_FILE_RENDERER_TEXT_CAN_SELECT:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		gitg_diff_selectable_set_can_select ((GitgDiffSelectable*) self, g_value_get_boolean (value));
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 6215 "gitg-diff-view-file-renderer-text.c"
		default:
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 21 "/home/jesse/dev/gitg/libgitg/gitg-diff-view-file-renderer-text.vala"
		break;
#line 6221 "gitg-diff-view-file-renderer-text.c"
	}
}



