/* chess-pgn.c generated by valac 0.30.0, the Vala compiler
 * generated from chess-pgn.vala, do not modify */

/* -*- Mode: vala; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
 *
 * Copyright (C) 2010-2013 Robert Ancell
 *
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 2 of the License, or (at your option) any later
 * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
 * license.
 */

#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <gio/gio.h>
#include <glib/gi18n-lib.h>
#include <stdio.h>


#define TYPE_PGN_GAME (pgn_game_get_type ())
#define PGN_GAME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PGN_GAME, PGNGame))
#define PGN_GAME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PGN_GAME, PGNGameClass))
#define IS_PGN_GAME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PGN_GAME))
#define IS_PGN_GAME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PGN_GAME))
#define PGN_GAME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PGN_GAME, PGNGameClass))

typedef struct _PGNGame PGNGame;
typedef struct _PGNGameClass PGNGameClass;
typedef struct _PGNGamePrivate PGNGamePrivate;
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
#define __g_list_free__g_free0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_free0_ (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))
#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))

#define TYPE_STATE (state_get_type ())

#define TYPE_PGN (pgn_get_type ())
#define PGN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PGN, PGN))
#define PGN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PGN, PGNClass))
#define IS_PGN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PGN))
#define IS_PGN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PGN))
#define PGN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PGN, PGNClass))

typedef struct _PGN PGN;
typedef struct _PGNClass PGNClass;
typedef struct _PGNPrivate PGNPrivate;
#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))

#define TYPE_CLOCK_TYPE (clock_type_get_type ())
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

typedef enum  {
	PGN_ERROR_LOAD_ERROR
} PGNError;
#define PGN_ERROR pgn_error_quark ()
struct _PGNGame {
	GObject parent_instance;
	PGNGamePrivate * priv;
	GHashTable* tags;
	GList* moves;
};

struct _PGNGameClass {
	GObjectClass parent_class;
};

typedef enum  {
	STATE_TAGS,
	STATE_MOVE_TEXT,
	STATE_LINE_COMMENT,
	STATE_BRACE_COMMENT,
	STATE_TAG_START,
	STATE_TAG_NAME,
	STATE_PRE_TAG_VALUE,
	STATE_TAG_VALUE,
	STATE_POST_TAG_VALUE,
	STATE_SYMBOL,
	STATE_PERIOD,
	STATE_NAG,
	STATE_ERROR
} State;

struct _PGN {
	GObject parent_instance;
	PGNPrivate * priv;
	GList* games;
};

struct _PGNClass {
	GObjectClass parent_class;
};

typedef enum  {
	CLOCK_TYPE_SIMPLE,
	CLOCK_TYPE_FISCHER,
	CLOCK_TYPE_BRONSTEIN,
	CLOCK_TYPE_INVALID
} ClockType;


static gpointer pgn_game_parent_class = NULL;
extern gchar* pgn_game_RESULT_IN_PROGRESS;
gchar* pgn_game_RESULT_IN_PROGRESS = NULL;
extern gchar* pgn_game_RESULT_DRAW;
gchar* pgn_game_RESULT_DRAW = NULL;
extern gchar* pgn_game_RESULT_WHITE;
gchar* pgn_game_RESULT_WHITE = NULL;
extern gchar* pgn_game_RESULT_BLACK;
gchar* pgn_game_RESULT_BLACK = NULL;
extern gchar* pgn_game_TERMINATE_ABANDONED;
gchar* pgn_game_TERMINATE_ABANDONED = NULL;
extern gchar* pgn_game_TERMINATE_ADJUDICATION;
gchar* pgn_game_TERMINATE_ADJUDICATION = NULL;
extern gchar* pgn_game_TERMINATE_DEATH;
gchar* pgn_game_TERMINATE_DEATH = NULL;
extern gchar* pgn_game_TERMINATE_EMERGENCY;
gchar* pgn_game_TERMINATE_EMERGENCY = NULL;
extern gchar* pgn_game_TERMINATE_NORMAL;
gchar* pgn_game_TERMINATE_NORMAL = NULL;
extern gchar* pgn_game_TERMINATE_RULES_INFRACTION;
gchar* pgn_game_TERMINATE_RULES_INFRACTION = NULL;
extern gchar* pgn_game_TERMINATE_TIME_FORFEIT;
gchar* pgn_game_TERMINATE_TIME_FORFEIT = NULL;
extern gchar* pgn_game_TERMINATE_UNTERMINATED;
gchar* pgn_game_TERMINATE_UNTERMINATED = NULL;
static gpointer pgn_parent_class = NULL;

gint str_index (const gchar* name);
gint compare_tag (const gchar* name0, const gchar* name1);
GQuark pgn_error_quark (void);
GType pgn_game_get_type (void) G_GNUC_CONST;
enum  {
	PGN_GAME_DUMMY_PROPERTY,
	PGN_GAME_EVENT,
	PGN_GAME_SITE,
	PGN_GAME_DATE,
	PGN_GAME_TIME,
	PGN_GAME_ROUND,
	PGN_GAME_WHITE,
	PGN_GAME_BLACK,
	PGN_GAME_RESULT,
	PGN_GAME_ANNOTATOR,
	PGN_GAME_TIME_CONTROL,
	PGN_GAME_WHITE_TIME_LEFT,
	PGN_GAME_BLACK_TIME_LEFT,
	PGN_GAME_CLOCK_TYPE,
	PGN_GAME_TIMER_INCREMENT,
	PGN_GAME_SET_UP,
	PGN_GAME_FEN,
	PGN_GAME_TERMINATION,
	PGN_GAME_WHITE_AI,
	PGN_GAME_WHITE_LEVEL,
	PGN_GAME_BLACK_AI,
	PGN_GAME_BLACK_LEVEL
};
static void _g_free0_ (gpointer var);
static void _g_list_free__g_free0_ (GList* self);
PGNGame* pgn_game_new (void);
PGNGame* pgn_game_construct (GType object_type);
gchar* pgn_game_escape (PGNGame* self, const gchar* value);
void pgn_game_write (PGNGame* self, GFile* file, GError** error);
const gchar* pgn_game_get_result (PGNGame* self);
const gchar* pgn_game_get_event (PGNGame* self);
void pgn_game_set_event (PGNGame* self, const gchar* value);
const gchar* pgn_game_get_site (PGNGame* self);
void pgn_game_set_site (PGNGame* self, const gchar* value);
const gchar* pgn_game_get_date (PGNGame* self);
void pgn_game_set_date (PGNGame* self, const gchar* value);
const gchar* pgn_game_get_time (PGNGame* self);
void pgn_game_set_time (PGNGame* self, const gchar* value);
const gchar* pgn_game_get_round (PGNGame* self);
void pgn_game_set_round (PGNGame* self, const gchar* value);
const gchar* pgn_game_get_white (PGNGame* self);
void pgn_game_set_white (PGNGame* self, const gchar* value);
const gchar* pgn_game_get_black (PGNGame* self);
void pgn_game_set_black (PGNGame* self, const gchar* value);
void pgn_game_set_result (PGNGame* self, const gchar* value);
const gchar* pgn_game_get_annotator (PGNGame* self);
void pgn_game_set_annotator (PGNGame* self, const gchar* value);
const gchar* pgn_game_get_time_control (PGNGame* self);
void pgn_game_set_time_control (PGNGame* self, const gchar* value);
const gchar* pgn_game_get_white_time_left (PGNGame* self);
void pgn_game_set_white_time_left (PGNGame* self, const gchar* value);
const gchar* pgn_game_get_black_time_left (PGNGame* self);
void pgn_game_set_black_time_left (PGNGame* self, const gchar* value);
const gchar* pgn_game_get_clock_type (PGNGame* self);
void pgn_game_set_clock_type (PGNGame* self, const gchar* value);
const gchar* pgn_game_get_timer_increment (PGNGame* self);
void pgn_game_set_timer_increment (PGNGame* self, const gchar* value);
gboolean pgn_game_get_set_up (PGNGame* self);
void pgn_game_set_set_up (PGNGame* self, gboolean value);
const gchar* pgn_game_get_fen (PGNGame* self);
void pgn_game_set_fen (PGNGame* self, const gchar* value);
const gchar* pgn_game_get_termination (PGNGame* self);
void pgn_game_set_termination (PGNGame* self, const gchar* value);
const gchar* pgn_game_get_white_ai (PGNGame* self);
void pgn_game_set_white_ai (PGNGame* self, const gchar* value);
const gchar* pgn_game_get_white_level (PGNGame* self);
void pgn_game_set_white_level (PGNGame* self, const gchar* value);
const gchar* pgn_game_get_black_ai (PGNGame* self);
void pgn_game_set_black_ai (PGNGame* self, const gchar* value);
const gchar* pgn_game_get_black_level (PGNGame* self);
void pgn_game_set_black_level (PGNGame* self, const gchar* value);
static void pgn_game_finalize (GObject* obj);
static void _vala_pgn_game_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_pgn_game_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
GType state_get_type (void) G_GNUC_CONST;
GType pgn_get_type (void) G_GNUC_CONST;
enum  {
	PGN_DUMMY_PROPERTY
};
static void _g_object_unref0_ (gpointer var);
static void _g_list_free__g_object_unref0_ (GList* self);
static void pgn_insert_tag (PGN* self, PGNGame* game, const gchar* tag_name, const gchar* tag_value);
GType clock_type_get_type (void) G_GNUC_CONST;
ClockType clock_type_string_to_enum (const gchar* s);
PGN* pgn_new_from_string (const gchar* data, GError** error);
PGN* pgn_construct_from_string (GType object_type, const gchar* data, GError** error);
PGN* pgn_new_from_file (GFile* file, GError** error);
PGN* pgn_construct_from_file (GType object_type, GFile* file, GError** error);
PGN* pgn_new (void);
PGN* pgn_construct (GType object_type);
static void pgn_finalize (GObject* obj);


gint str_index (const gchar* name) {
	gint result = 0;
	const gchar* _tmp0_ = NULL;
#line 12 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_val_if_fail (name != NULL, 0);
#line 14 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = name;
#line 14 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	if (g_strcmp0 (_tmp0_, "Event") == 0) {
#line 15 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		result = 0;
#line 15 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		return result;
#line 247 "chess-pgn.c"
	} else {
		const gchar* _tmp1_ = NULL;
#line 16 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		_tmp1_ = name;
#line 16 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		if (g_strcmp0 (_tmp1_, "Site") == 0) {
#line 17 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
			result = 1;
#line 17 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
			return result;
#line 258 "chess-pgn.c"
		} else {
			const gchar* _tmp2_ = NULL;
#line 18 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
			_tmp2_ = name;
#line 18 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
			if (g_strcmp0 (_tmp2_, "Date") == 0) {
#line 19 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				result = 2;
#line 19 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				return result;
#line 269 "chess-pgn.c"
			} else {
				const gchar* _tmp3_ = NULL;
#line 20 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp3_ = name;
#line 20 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				if (g_strcmp0 (_tmp3_, "Round") == 0) {
#line 21 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					result = 3;
#line 21 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					return result;
#line 280 "chess-pgn.c"
				} else {
					const gchar* _tmp4_ = NULL;
#line 22 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp4_ = name;
#line 22 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					if (g_strcmp0 (_tmp4_, "White") == 0) {
#line 23 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						result = 4;
#line 23 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						return result;
#line 291 "chess-pgn.c"
					} else {
						const gchar* _tmp5_ = NULL;
#line 24 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp5_ = name;
#line 24 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						if (g_strcmp0 (_tmp5_, "Black") == 0) {
#line 25 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							result = 5;
#line 25 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							return result;
#line 302 "chess-pgn.c"
						} else {
							const gchar* _tmp6_ = NULL;
#line 26 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp6_ = name;
#line 26 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							if (g_strcmp0 (_tmp6_, "Result") == 0) {
#line 27 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								result = 6;
#line 27 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								return result;
#line 313 "chess-pgn.c"
							} else {
#line 29 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								result = 7;
#line 29 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								return result;
#line 319 "chess-pgn.c"
							}
						}
					}
				}
			}
		}
	}
}


gint compare_tag (const gchar* name0, const gchar* name1) {
	gint result = 0;
	gint str_index0 = 0;
	const gchar* _tmp0_ = NULL;
	gint _tmp1_ = 0;
	gint str_index1 = 0;
	const gchar* _tmp2_ = NULL;
	gint _tmp3_ = 0;
	gboolean _tmp4_ = FALSE;
	gint _tmp5_ = 0;
#line 32 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_val_if_fail (name0 != NULL, 0);
#line 32 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_val_if_fail (name1 != NULL, 0);
#line 34 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = name0;
#line 34 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = str_index (_tmp0_);
#line 34 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	str_index0 = _tmp1_;
#line 35 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp2_ = name1;
#line 35 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp3_ = str_index (_tmp2_);
#line 35 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	str_index1 = _tmp3_;
#line 38 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp5_ = str_index0;
#line 38 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	if (_tmp5_ == 7) {
#line 360 "chess-pgn.c"
		gint _tmp6_ = 0;
#line 38 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		_tmp6_ = str_index1;
#line 38 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		_tmp4_ = _tmp6_ == 7;
#line 366 "chess-pgn.c"
	} else {
#line 38 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		_tmp4_ = FALSE;
#line 370 "chess-pgn.c"
	}
#line 38 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	if (_tmp4_) {
#line 374 "chess-pgn.c"
		GCompareFunc _tmp7_ = NULL;
		const gchar* _tmp8_ = NULL;
		const gchar* _tmp9_ = NULL;
		gint _tmp10_ = 0;
#line 39 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		_tmp7_ = g_strcmp0;
#line 39 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		_tmp8_ = name0;
#line 39 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		_tmp9_ = name1;
#line 39 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		_tmp10_ = _tmp7_ (_tmp8_, _tmp9_);
#line 39 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		result = _tmp10_;
#line 39 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		return result;
#line 391 "chess-pgn.c"
	} else {
		gint _tmp11_ = 0;
		gint _tmp12_ = 0;
#line 41 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		_tmp11_ = str_index0;
#line 41 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		_tmp12_ = str_index1;
#line 41 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		result = _tmp11_ - _tmp12_;
#line 41 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		return result;
#line 403 "chess-pgn.c"
	}
}


GQuark pgn_error_quark (void) {
	return g_quark_from_static_string ("pgn_error-quark");
}


static void _g_free0_ (gpointer var) {
#line 52 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	var = (g_free (var), NULL);
#line 416 "chess-pgn.c"
}


static void _g_list_free__g_free0_ (GList* self) {
#line 52 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_list_foreach (self, (GFunc) _g_free0_, NULL);
#line 52 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_list_free (self);
#line 425 "chess-pgn.c"
}


PGNGame* pgn_game_construct (GType object_type) {
	PGNGame * self = NULL;
	GHashFunc _tmp0_ = NULL;
	GEqualFunc _tmp1_ = NULL;
	GHashTable* _tmp2_ = NULL;
	GHashTable* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	GHashTable* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	GHashTable* _tmp9_ = NULL;
	gchar* _tmp10_ = NULL;
	gchar* _tmp11_ = NULL;
	GHashTable* _tmp12_ = NULL;
	gchar* _tmp13_ = NULL;
	gchar* _tmp14_ = NULL;
	GHashTable* _tmp15_ = NULL;
	gchar* _tmp16_ = NULL;
	gchar* _tmp17_ = NULL;
	GHashTable* _tmp18_ = NULL;
	gchar* _tmp19_ = NULL;
	gchar* _tmp20_ = NULL;
	GHashTable* _tmp21_ = NULL;
	gchar* _tmp22_ = NULL;
	const gchar* _tmp23_ = NULL;
	gchar* _tmp24_ = NULL;
#line 174 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	self = (PGNGame*) g_object_new (object_type, NULL);
#line 176 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = g_str_hash;
#line 176 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_str_equal;
#line 176 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp2_ = g_hash_table_new_full (_tmp0_, _tmp1_, _g_free0_, _g_free0_);
#line 176 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_g_hash_table_unref0 (self->tags);
#line 176 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	self->tags = _tmp2_;
#line 177 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp3_ = self->tags;
#line 177 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp4_ = g_strdup ("Event");
#line 177 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp5_ = g_strdup ("?");
#line 177 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_hash_table_insert (_tmp3_, _tmp4_, _tmp5_);
#line 178 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp6_ = self->tags;
#line 178 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp7_ = g_strdup ("Site");
#line 178 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp8_ = g_strdup ("?");
#line 178 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_hash_table_insert (_tmp6_, _tmp7_, _tmp8_);
#line 179 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp9_ = self->tags;
#line 179 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp10_ = g_strdup ("Date");
#line 179 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp11_ = g_strdup ("????.??.??");
#line 179 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_hash_table_insert (_tmp9_, _tmp10_, _tmp11_);
#line 180 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp12_ = self->tags;
#line 180 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp13_ = g_strdup ("Round");
#line 180 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp14_ = g_strdup ("?");
#line 180 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_hash_table_insert (_tmp12_, _tmp13_, _tmp14_);
#line 181 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp15_ = self->tags;
#line 181 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp16_ = g_strdup ("White");
#line 181 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp17_ = g_strdup ("?");
#line 181 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_hash_table_insert (_tmp15_, _tmp16_, _tmp17_);
#line 182 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp18_ = self->tags;
#line 182 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp19_ = g_strdup ("Black");
#line 182 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp20_ = g_strdup ("?");
#line 182 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_hash_table_insert (_tmp18_, _tmp19_, _tmp20_);
#line 183 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp21_ = self->tags;
#line 183 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp22_ = g_strdup ("Result");
#line 183 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp23_ = pgn_game_RESULT_IN_PROGRESS;
#line 183 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp24_ = g_strdup (_tmp23_);
#line 183 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_hash_table_insert (_tmp21_, _tmp22_, _tmp24_);
#line 174 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return self;
#line 528 "chess-pgn.c"
}


PGNGame* pgn_game_new (void) {
#line 174 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return pgn_game_construct (TYPE_PGN_GAME);
#line 535 "chess-pgn.c"
}


static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) {
	gchar* result = NULL;
	GError * _inner_error_ = NULL;
#line 1282 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1282 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	g_return_val_if_fail (old != NULL, NULL);
#line 1282 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	g_return_val_if_fail (replacement != NULL, NULL);
#line 548 "chess-pgn.c"
	{
		GRegex* regex = NULL;
		const gchar* _tmp0_ = NULL;
		gchar* _tmp1_ = NULL;
		gchar* _tmp2_ = NULL;
		GRegex* _tmp3_ = NULL;
		GRegex* _tmp4_ = NULL;
		gchar* _tmp5_ = NULL;
		GRegex* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
#line 1284 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		_tmp0_ = old;
#line 1284 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		_tmp1_ = g_regex_escape_string (_tmp0_, -1);
#line 1284 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		_tmp2_ = _tmp1_;
#line 1284 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		_tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_);
#line 1284 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		_tmp4_ = _tmp3_;
#line 1284 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		_g_free0 (_tmp2_);
#line 1284 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		regex = _tmp4_;
#line 1284 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1284 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
			if (_inner_error_->domain == G_REGEX_ERROR) {
#line 579 "chess-pgn.c"
				goto __catch0_g_regex_error;
			}
#line 1284 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1284 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
			g_clear_error (&_inner_error_);
#line 1284 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
			return NULL;
#line 588 "chess-pgn.c"
		}
#line 1285 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		_tmp6_ = regex;
#line 1285 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		_tmp7_ = replacement;
#line 1285 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		_tmp8_ = g_regex_replace_literal (_tmp6_, self, (gssize) -1, 0, _tmp7_, 0, &_inner_error_);
#line 1285 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		_tmp5_ = _tmp8_;
#line 1285 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1285 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
			_g_regex_unref0 (regex);
#line 1285 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
			if (_inner_error_->domain == G_REGEX_ERROR) {
#line 604 "chess-pgn.c"
				goto __catch0_g_regex_error;
			}
#line 1285 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
			_g_regex_unref0 (regex);
#line 1285 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1285 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
			g_clear_error (&_inner_error_);
#line 1285 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
			return NULL;
#line 615 "chess-pgn.c"
		}
#line 1285 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		_tmp9_ = _tmp5_;
#line 1285 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		_tmp5_ = NULL;
#line 1285 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		result = _tmp9_;
#line 1285 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		_g_free0 (_tmp5_);
#line 1285 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		_g_regex_unref0 (regex);
#line 1285 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		return result;
#line 629 "chess-pgn.c"
	}
	goto __finally0;
	__catch0_g_regex_error:
	{
		GError* e = NULL;
#line 1283 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		e = _inner_error_;
#line 1283 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		_inner_error_ = NULL;
#line 1287 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		g_assert_not_reached ();
#line 1283 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		_g_error_free0 (e);
#line 643 "chess-pgn.c"
	}
	__finally0:
#line 1283 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1283 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1283 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		g_clear_error (&_inner_error_);
#line 1283 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		return NULL;
#line 654 "chess-pgn.c"
	}
}


gchar* pgn_game_escape (PGNGame* self, const gchar* value) {
	gchar* result = NULL;
	gchar* a = NULL;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
#line 186 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 186 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_val_if_fail (value != NULL, NULL);
#line 188 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = value;
#line 188 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = string_replace (_tmp0_, "\\", "\\\\");
#line 188 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	a = _tmp1_;
#line 189 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp2_ = string_replace (a, "\"", "\\\"");
#line 189 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	result = _tmp2_;
#line 189 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_g_free0 (a);
#line 189 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return result;
#line 683 "chess-pgn.c"
}


static guint8* string_get_data (const gchar* self, int* result_length1) {
	guint8* result;
	guint8* res = NULL;
	gint res_length1 = 0;
	gint _res_size_ = 0;
	gint _tmp0_ = 0;
	gint _tmp1_ = 0;
	gint _tmp2_ = 0;
	guint8* _tmp3_ = NULL;
	gint _tmp3__length1 = 0;
	guint8* _tmp4_ = NULL;
	gint _tmp4__length1 = 0;
#line 1300 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1301 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	res = (guint8*) self;
#line 1301 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	res_length1 = -1;
#line 1301 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	_res_size_ = res_length1;
#line 1302 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	_tmp0_ = strlen (self);
#line 1302 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	_tmp1_ = _tmp0_;
#line 1302 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	res_length1 = (gint) _tmp1_;
#line 1302 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	_tmp2_ = res_length1;
#line 1303 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	_tmp3_ = res;
#line 1303 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	_tmp3__length1 = res_length1;
#line 1303 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	_tmp4_ = _tmp3_;
#line 1303 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	_tmp4__length1 = _tmp3__length1;
#line 1303 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	if (result_length1) {
#line 1303 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		*result_length1 = _tmp4__length1;
#line 727 "chess-pgn.c"
	}
#line 1303 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	result = _tmp4_;
#line 1303 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	return result;
#line 733 "chess-pgn.c"
}


void pgn_game_write (PGNGame* self, GFile* file, GError** error) {
	GString* data = NULL;
	GString* _tmp0_ = NULL;
	GList* keys = NULL;
	GHashTable* _tmp1_ = NULL;
	GList* _tmp2_ = NULL;
	GList* _tmp3_ = NULL;
	GString* _tmp13_ = NULL;
	gint i = 0;
	GList* _tmp14_ = NULL;
	GString* _tmp25_ = NULL;
	const gchar* _tmp26_ = NULL;
	const gchar* _tmp27_ = NULL;
	GString* _tmp28_ = NULL;
	GFile* _tmp29_ = NULL;
	GString* _tmp30_ = NULL;
	const gchar* _tmp31_ = NULL;
	guint8* _tmp32_ = NULL;
	gint _tmp32__length1 = 0;
	guint8* _tmp33_ = NULL;
	gint _tmp33__length1 = 0;
	GError * _inner_error_ = NULL;
#line 192 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_if_fail (self != NULL);
#line 192 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_if_fail (file != NULL);
#line 194 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = g_string_new ("");
#line 194 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	data = _tmp0_;
#line 196 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = self->tags;
#line 196 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp2_ = g_hash_table_get_keys (_tmp1_);
#line 196 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	keys = _tmp2_;
#line 197 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	keys = g_list_sort (keys, (GCompareFunc) compare_tag);
#line 198 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp3_ = keys;
#line 777 "chess-pgn.c"
	{
		GList* key_collection = NULL;
		GList* key_it = NULL;
#line 198 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		key_collection = _tmp3_;
#line 198 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		for (key_it = key_collection; key_it != NULL; key_it = key_it->next) {
#line 785 "chess-pgn.c"
			const gchar* key = NULL;
#line 198 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
			key = (const gchar*) key_it->data;
#line 789 "chess-pgn.c"
			{
				GString* _tmp4_ = NULL;
				const gchar* _tmp5_ = NULL;
				GHashTable* _tmp6_ = NULL;
				const gchar* _tmp7_ = NULL;
				gconstpointer _tmp8_ = NULL;
				gchar* _tmp9_ = NULL;
				gchar* _tmp10_ = NULL;
				gchar* _tmp11_ = NULL;
				gchar* _tmp12_ = NULL;
#line 199 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp4_ = data;
#line 199 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp5_ = key;
#line 199 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp6_ = self->tags;
#line 199 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp7_ = key;
#line 199 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp8_ = g_hash_table_lookup (_tmp6_, _tmp7_);
#line 199 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp9_ = pgn_game_escape (self, (const gchar*) _tmp8_);
#line 199 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp10_ = _tmp9_;
#line 199 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp11_ = g_strdup_printf ("[%s \"%s\"]\n", _tmp5_, _tmp10_);
#line 199 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp12_ = _tmp11_;
#line 199 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				g_string_append (_tmp4_, _tmp12_);
#line 199 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_g_free0 (_tmp12_);
#line 199 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_g_free0 (_tmp10_);
#line 824 "chess-pgn.c"
			}
		}
	}
#line 200 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp13_ = data;
#line 200 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_string_append (_tmp13_, "\n");
#line 202 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	i = 0;
#line 203 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp14_ = self->moves;
#line 836 "chess-pgn.c"
	{
		GList* move_collection = NULL;
		GList* move_it = NULL;
#line 203 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		move_collection = _tmp14_;
#line 203 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		for (move_it = move_collection; move_it != NULL; move_it = move_it->next) {
#line 844 "chess-pgn.c"
			gchar* _tmp15_ = NULL;
			gchar* move = NULL;
#line 203 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
			_tmp15_ = g_strdup ((const gchar*) move_it->data);
#line 203 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
			move = _tmp15_;
#line 851 "chess-pgn.c"
			{
				gint _tmp16_ = 0;
				GString* _tmp21_ = NULL;
				const gchar* _tmp22_ = NULL;
				GString* _tmp23_ = NULL;
				gint _tmp24_ = 0;
#line 205 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp16_ = i;
#line 205 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				if ((_tmp16_ % 2) == 0) {
#line 862 "chess-pgn.c"
					GString* _tmp17_ = NULL;
					gint _tmp18_ = 0;
					gchar* _tmp19_ = NULL;
					gchar* _tmp20_ = NULL;
#line 206 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp17_ = data;
#line 206 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp18_ = i;
#line 206 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp19_ = g_strdup_printf ("%d. ", (_tmp18_ / 2) + 1);
#line 206 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp20_ = _tmp19_;
#line 206 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					g_string_append (_tmp17_, _tmp20_);
#line 206 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_g_free0 (_tmp20_);
#line 879 "chess-pgn.c"
				}
#line 207 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp21_ = data;
#line 207 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp22_ = move;
#line 207 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				g_string_append (_tmp21_, _tmp22_);
#line 208 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp23_ = data;
#line 208 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				g_string_append (_tmp23_, " ");
#line 209 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp24_ = i;
#line 209 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				i = _tmp24_ + 1;
#line 203 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_g_free0 (move);
#line 897 "chess-pgn.c"
			}
		}
	}
#line 211 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp25_ = data;
#line 211 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp26_ = pgn_game_get_result (self);
#line 211 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp27_ = _tmp26_;
#line 211 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_string_append (_tmp25_, _tmp27_);
#line 212 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp28_ = data;
#line 212 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_string_append (_tmp28_, "\n");
#line 214 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp29_ = file;
#line 214 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp30_ = data;
#line 214 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp31_ = _tmp30_->str;
#line 214 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp32_ = string_get_data (_tmp31_, &_tmp32__length1);
#line 214 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp33_ = _tmp32_;
#line 214 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp33__length1 = _tmp32__length1;
#line 214 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_file_replace_contents (_tmp29_, _tmp33_, (gsize) _tmp33__length1, NULL, FALSE, G_FILE_CREATE_NONE, NULL, NULL, &_inner_error_);
#line 214 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 214 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		g_propagate_error (error, _inner_error_);
#line 214 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		_g_list_free0 (keys);
#line 214 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		_g_string_free0 (data);
#line 214 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		return;
#line 937 "chess-pgn.c"
	}
#line 192 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_g_list_free0 (keys);
#line 192 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_g_string_free0 (data);
#line 943 "chess-pgn.c"
}


const gchar* pgn_game_get_event (PGNGame* self) {
	const gchar* result;
	GHashTable* _tmp0_ = NULL;
	gconstpointer _tmp1_ = NULL;
#line 70 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 70 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 70 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_hash_table_lookup (_tmp0_, "Event");
#line 70 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	result = (const gchar*) _tmp1_;
#line 70 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return result;
#line 961 "chess-pgn.c"
}


void pgn_game_set_event (PGNGame* self, const gchar* value) {
	GHashTable* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 71 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_if_fail (self != NULL);
#line 71 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 71 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_strdup ("Event");
#line 71 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp2_ = value;
#line 71 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 71 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_hash_table_insert (_tmp0_, _tmp1_, _tmp3_);
#line 71 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_notify ((GObject *) self, "event");
#line 984 "chess-pgn.c"
}


const gchar* pgn_game_get_site (PGNGame* self) {
	const gchar* result;
	GHashTable* _tmp0_ = NULL;
	gconstpointer _tmp1_ = NULL;
#line 75 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 75 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 75 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_hash_table_lookup (_tmp0_, "Site");
#line 75 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	result = (const gchar*) _tmp1_;
#line 75 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return result;
#line 1002 "chess-pgn.c"
}


void pgn_game_set_site (PGNGame* self, const gchar* value) {
	GHashTable* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 76 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_if_fail (self != NULL);
#line 76 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 76 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_strdup ("Site");
#line 76 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp2_ = value;
#line 76 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 76 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_hash_table_insert (_tmp0_, _tmp1_, _tmp3_);
#line 76 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_notify ((GObject *) self, "site");
#line 1025 "chess-pgn.c"
}


const gchar* pgn_game_get_date (PGNGame* self) {
	const gchar* result;
	GHashTable* _tmp0_ = NULL;
	gconstpointer _tmp1_ = NULL;
#line 80 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 80 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 80 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_hash_table_lookup (_tmp0_, "Date");
#line 80 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	result = (const gchar*) _tmp1_;
#line 80 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return result;
#line 1043 "chess-pgn.c"
}


void pgn_game_set_date (PGNGame* self, const gchar* value) {
	GHashTable* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 81 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_if_fail (self != NULL);
#line 81 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 81 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_strdup ("Date");
#line 81 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp2_ = value;
#line 81 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 81 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_hash_table_insert (_tmp0_, _tmp1_, _tmp3_);
#line 81 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_notify ((GObject *) self, "date");
#line 1066 "chess-pgn.c"
}


const gchar* pgn_game_get_time (PGNGame* self) {
	const gchar* result;
	GHashTable* _tmp0_ = NULL;
	gconstpointer _tmp1_ = NULL;
#line 85 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 85 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 85 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_hash_table_lookup (_tmp0_, "Time");
#line 85 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	result = (const gchar*) _tmp1_;
#line 85 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return result;
#line 1084 "chess-pgn.c"
}


void pgn_game_set_time (PGNGame* self, const gchar* value) {
	GHashTable* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 86 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_if_fail (self != NULL);
#line 86 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 86 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_strdup ("Time");
#line 86 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp2_ = value;
#line 86 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 86 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_hash_table_insert (_tmp0_, _tmp1_, _tmp3_);
#line 86 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_notify ((GObject *) self, "time");
#line 1107 "chess-pgn.c"
}


const gchar* pgn_game_get_round (PGNGame* self) {
	const gchar* result;
	GHashTable* _tmp0_ = NULL;
	gconstpointer _tmp1_ = NULL;
#line 90 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 90 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 90 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_hash_table_lookup (_tmp0_, "Round");
#line 90 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	result = (const gchar*) _tmp1_;
#line 90 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return result;
#line 1125 "chess-pgn.c"
}


void pgn_game_set_round (PGNGame* self, const gchar* value) {
	GHashTable* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 91 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_if_fail (self != NULL);
#line 91 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 91 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_strdup ("Round");
#line 91 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp2_ = value;
#line 91 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 91 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_hash_table_insert (_tmp0_, _tmp1_, _tmp3_);
#line 91 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_notify ((GObject *) self, "round");
#line 1148 "chess-pgn.c"
}


const gchar* pgn_game_get_white (PGNGame* self) {
	const gchar* result;
	GHashTable* _tmp0_ = NULL;
	gconstpointer _tmp1_ = NULL;
#line 95 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 95 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 95 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_hash_table_lookup (_tmp0_, "White");
#line 95 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	result = (const gchar*) _tmp1_;
#line 95 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return result;
#line 1166 "chess-pgn.c"
}


void pgn_game_set_white (PGNGame* self, const gchar* value) {
	GHashTable* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 96 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_if_fail (self != NULL);
#line 96 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 96 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_strdup ("White");
#line 96 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp2_ = value;
#line 96 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 96 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_hash_table_insert (_tmp0_, _tmp1_, _tmp3_);
#line 96 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_notify ((GObject *) self, "white");
#line 1189 "chess-pgn.c"
}


const gchar* pgn_game_get_black (PGNGame* self) {
	const gchar* result;
	GHashTable* _tmp0_ = NULL;
	gconstpointer _tmp1_ = NULL;
#line 100 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 100 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 100 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_hash_table_lookup (_tmp0_, "Black");
#line 100 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	result = (const gchar*) _tmp1_;
#line 100 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return result;
#line 1207 "chess-pgn.c"
}


void pgn_game_set_black (PGNGame* self, const gchar* value) {
	GHashTable* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 101 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_if_fail (self != NULL);
#line 101 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 101 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_strdup ("Black");
#line 101 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp2_ = value;
#line 101 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 101 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_hash_table_insert (_tmp0_, _tmp1_, _tmp3_);
#line 101 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_notify ((GObject *) self, "black");
#line 1230 "chess-pgn.c"
}


const gchar* pgn_game_get_result (PGNGame* self) {
	const gchar* result;
	GHashTable* _tmp0_ = NULL;
	gconstpointer _tmp1_ = NULL;
#line 105 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 105 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 105 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_hash_table_lookup (_tmp0_, "Result");
#line 105 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	result = (const gchar*) _tmp1_;
#line 105 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return result;
#line 1248 "chess-pgn.c"
}


void pgn_game_set_result (PGNGame* self, const gchar* value) {
	GHashTable* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 106 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_if_fail (self != NULL);
#line 106 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 106 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_strdup ("Result");
#line 106 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp2_ = value;
#line 106 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 106 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_hash_table_insert (_tmp0_, _tmp1_, _tmp3_);
#line 106 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_notify ((GObject *) self, "result");
#line 1271 "chess-pgn.c"
}


const gchar* pgn_game_get_annotator (PGNGame* self) {
	const gchar* result;
	GHashTable* _tmp0_ = NULL;
	gconstpointer _tmp1_ = NULL;
#line 110 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 110 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 110 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_hash_table_lookup (_tmp0_, "Annotator");
#line 110 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	result = (const gchar*) _tmp1_;
#line 110 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return result;
#line 1289 "chess-pgn.c"
}


void pgn_game_set_annotator (PGNGame* self, const gchar* value) {
	GHashTable* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 111 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_if_fail (self != NULL);
#line 111 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 111 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_strdup ("Annotator");
#line 111 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp2_ = value;
#line 111 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 111 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_hash_table_insert (_tmp0_, _tmp1_, _tmp3_);
#line 111 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_notify ((GObject *) self, "annotator");
#line 1312 "chess-pgn.c"
}


const gchar* pgn_game_get_time_control (PGNGame* self) {
	const gchar* result;
	GHashTable* _tmp0_ = NULL;
	gconstpointer _tmp1_ = NULL;
#line 115 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 115 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 115 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_hash_table_lookup (_tmp0_, "TimeControl");
#line 115 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	result = (const gchar*) _tmp1_;
#line 115 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return result;
#line 1330 "chess-pgn.c"
}


void pgn_game_set_time_control (PGNGame* self, const gchar* value) {
	GHashTable* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 116 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_if_fail (self != NULL);
#line 116 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 116 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_strdup ("TimeControl");
#line 116 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp2_ = value;
#line 116 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 116 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_hash_table_insert (_tmp0_, _tmp1_, _tmp3_);
#line 116 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_notify ((GObject *) self, "time-control");
#line 1353 "chess-pgn.c"
}


const gchar* pgn_game_get_white_time_left (PGNGame* self) {
	const gchar* result;
	GHashTable* _tmp0_ = NULL;
	gconstpointer _tmp1_ = NULL;
#line 120 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 120 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 120 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_hash_table_lookup (_tmp0_, "WhiteTimeLeft");
#line 120 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	result = (const gchar*) _tmp1_;
#line 120 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return result;
#line 1371 "chess-pgn.c"
}


void pgn_game_set_white_time_left (PGNGame* self, const gchar* value) {
	GHashTable* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 121 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_if_fail (self != NULL);
#line 121 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 121 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_strdup ("WhiteTimeLeft");
#line 121 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp2_ = value;
#line 121 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 121 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_hash_table_insert (_tmp0_, _tmp1_, _tmp3_);
#line 121 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_notify ((GObject *) self, "white-time-left");
#line 1394 "chess-pgn.c"
}


const gchar* pgn_game_get_black_time_left (PGNGame* self) {
	const gchar* result;
	GHashTable* _tmp0_ = NULL;
	gconstpointer _tmp1_ = NULL;
#line 125 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 125 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 125 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_hash_table_lookup (_tmp0_, "BlackTimeLeft");
#line 125 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	result = (const gchar*) _tmp1_;
#line 125 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return result;
#line 1412 "chess-pgn.c"
}


void pgn_game_set_black_time_left (PGNGame* self, const gchar* value) {
	GHashTable* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 126 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_if_fail (self != NULL);
#line 126 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 126 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_strdup ("BlackTimeLeft");
#line 126 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp2_ = value;
#line 126 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 126 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_hash_table_insert (_tmp0_, _tmp1_, _tmp3_);
#line 126 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_notify ((GObject *) self, "black-time-left");
#line 1435 "chess-pgn.c"
}


const gchar* pgn_game_get_clock_type (PGNGame* self) {
	const gchar* result;
	GHashTable* _tmp0_ = NULL;
	gconstpointer _tmp1_ = NULL;
#line 130 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 130 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 130 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_hash_table_lookup (_tmp0_, "X-GNOME-ClockType");
#line 130 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	result = (const gchar*) _tmp1_;
#line 130 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return result;
#line 1453 "chess-pgn.c"
}


void pgn_game_set_clock_type (PGNGame* self, const gchar* value) {
	GHashTable* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 131 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_if_fail (self != NULL);
#line 131 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 131 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_strdup ("X-GNOME-ClockType");
#line 131 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp2_ = value;
#line 131 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 131 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_hash_table_insert (_tmp0_, _tmp1_, _tmp3_);
#line 131 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_notify ((GObject *) self, "clock-type");
#line 1476 "chess-pgn.c"
}


const gchar* pgn_game_get_timer_increment (PGNGame* self) {
	const gchar* result;
	GHashTable* _tmp0_ = NULL;
	gconstpointer _tmp1_ = NULL;
#line 135 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 135 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 135 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_hash_table_lookup (_tmp0_, "X-GNOME-TimerIncrement");
#line 135 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	result = (const gchar*) _tmp1_;
#line 135 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return result;
#line 1494 "chess-pgn.c"
}


void pgn_game_set_timer_increment (PGNGame* self, const gchar* value) {
	GHashTable* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 136 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_if_fail (self != NULL);
#line 136 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 136 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_strdup ("X-GNOME-TimerIncrement");
#line 136 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp2_ = value;
#line 136 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 136 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_hash_table_insert (_tmp0_, _tmp1_, _tmp3_);
#line 136 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_notify ((GObject *) self, "timer-increment");
#line 1517 "chess-pgn.c"
}


gboolean pgn_game_get_set_up (PGNGame* self) {
	gboolean result;
	gchar* v = NULL;
	GHashTable* _tmp0_ = NULL;
	gconstpointer _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
	gboolean _tmp4_ = FALSE;
	const gchar* _tmp5_ = NULL;
#line 140 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 140 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 140 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_hash_table_lookup (_tmp0_, "SetUp");
#line 140 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp2_ = g_strdup ((const gchar*) _tmp1_);
#line 140 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	v = _tmp2_;
#line 140 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp5_ = v;
#line 140 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	if (_tmp5_ != NULL) {
#line 1544 "chess-pgn.c"
		const gchar* _tmp6_ = NULL;
#line 140 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		_tmp6_ = v;
#line 140 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		_tmp4_ = g_strcmp0 (_tmp6_, "1") == 0;
#line 1550 "chess-pgn.c"
	} else {
#line 140 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		_tmp4_ = FALSE;
#line 1554 "chess-pgn.c"
	}
#line 140 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	if (_tmp4_) {
#line 140 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		_tmp3_ = TRUE;
#line 1560 "chess-pgn.c"
	} else {
#line 140 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		_tmp3_ = FALSE;
#line 1564 "chess-pgn.c"
	}
#line 140 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	result = _tmp3_;
#line 140 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_g_free0 (v);
#line 140 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return result;
#line 1572 "chess-pgn.c"
}


void pgn_game_set_set_up (PGNGame* self, gboolean value) {
	const gchar* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	GHashTable* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
#line 141 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_if_fail (self != NULL);
#line 141 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = value;
#line 141 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	if (_tmp1_) {
#line 141 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		_tmp0_ = "1";
#line 1590 "chess-pgn.c"
	} else {
#line 141 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		_tmp0_ = "0";
#line 1594 "chess-pgn.c"
	}
#line 141 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp2_ = self->tags;
#line 141 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp3_ = g_strdup ("SetUp");
#line 141 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp4_ = g_strdup (_tmp0_);
#line 141 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_hash_table_insert (_tmp2_, _tmp3_, _tmp4_);
#line 141 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_notify ((GObject *) self, "set-up");
#line 1606 "chess-pgn.c"
}


const gchar* pgn_game_get_fen (PGNGame* self) {
	const gchar* result;
	GHashTable* _tmp0_ = NULL;
	gconstpointer _tmp1_ = NULL;
#line 145 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 145 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 145 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_hash_table_lookup (_tmp0_, "FEN");
#line 145 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	result = (const gchar*) _tmp1_;
#line 145 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return result;
#line 1624 "chess-pgn.c"
}


void pgn_game_set_fen (PGNGame* self, const gchar* value) {
	GHashTable* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 146 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_if_fail (self != NULL);
#line 146 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 146 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_strdup ("FEN");
#line 146 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp2_ = value;
#line 146 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 146 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_hash_table_insert (_tmp0_, _tmp1_, _tmp3_);
#line 146 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_notify ((GObject *) self, "fen");
#line 1647 "chess-pgn.c"
}


const gchar* pgn_game_get_termination (PGNGame* self) {
	const gchar* result;
	GHashTable* _tmp0_ = NULL;
	gconstpointer _tmp1_ = NULL;
#line 150 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 150 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 150 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_hash_table_lookup (_tmp0_, "Termination");
#line 150 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	result = (const gchar*) _tmp1_;
#line 150 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return result;
#line 1665 "chess-pgn.c"
}


void pgn_game_set_termination (PGNGame* self, const gchar* value) {
	GHashTable* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 151 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_if_fail (self != NULL);
#line 151 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 151 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_strdup ("Termination");
#line 151 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp2_ = value;
#line 151 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 151 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_hash_table_insert (_tmp0_, _tmp1_, _tmp3_);
#line 151 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_notify ((GObject *) self, "termination");
#line 1688 "chess-pgn.c"
}


const gchar* pgn_game_get_white_ai (PGNGame* self) {
	const gchar* result;
	GHashTable* _tmp0_ = NULL;
	gconstpointer _tmp1_ = NULL;
#line 155 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 155 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 155 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_hash_table_lookup (_tmp0_, "WhiteAI");
#line 155 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	result = (const gchar*) _tmp1_;
#line 155 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return result;
#line 1706 "chess-pgn.c"
}


void pgn_game_set_white_ai (PGNGame* self, const gchar* value) {
	GHashTable* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 156 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_if_fail (self != NULL);
#line 156 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 156 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_strdup ("WhiteAI");
#line 156 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp2_ = value;
#line 156 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 156 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_hash_table_insert (_tmp0_, _tmp1_, _tmp3_);
#line 156 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_notify ((GObject *) self, "white-ai");
#line 1729 "chess-pgn.c"
}


const gchar* pgn_game_get_white_level (PGNGame* self) {
	const gchar* result;
	GHashTable* _tmp0_ = NULL;
	gconstpointer _tmp1_ = NULL;
#line 160 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 160 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 160 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_hash_table_lookup (_tmp0_, "WhiteLevel");
#line 160 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	result = (const gchar*) _tmp1_;
#line 160 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return result;
#line 1747 "chess-pgn.c"
}


void pgn_game_set_white_level (PGNGame* self, const gchar* value) {
	GHashTable* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 161 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_if_fail (self != NULL);
#line 161 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 161 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_strdup ("WhiteLevel");
#line 161 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp2_ = value;
#line 161 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 161 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_hash_table_insert (_tmp0_, _tmp1_, _tmp3_);
#line 161 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_notify ((GObject *) self, "white-level");
#line 1770 "chess-pgn.c"
}


const gchar* pgn_game_get_black_ai (PGNGame* self) {
	const gchar* result;
	GHashTable* _tmp0_ = NULL;
	gconstpointer _tmp1_ = NULL;
#line 165 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 165 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 165 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_hash_table_lookup (_tmp0_, "BlackAI");
#line 165 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	result = (const gchar*) _tmp1_;
#line 165 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return result;
#line 1788 "chess-pgn.c"
}


void pgn_game_set_black_ai (PGNGame* self, const gchar* value) {
	GHashTable* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 166 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_if_fail (self != NULL);
#line 166 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 166 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_strdup ("BlackAI");
#line 166 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp2_ = value;
#line 166 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 166 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_hash_table_insert (_tmp0_, _tmp1_, _tmp3_);
#line 166 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_notify ((GObject *) self, "black-ai");
#line 1811 "chess-pgn.c"
}


const gchar* pgn_game_get_black_level (PGNGame* self) {
	const gchar* result;
	GHashTable* _tmp0_ = NULL;
	gconstpointer _tmp1_ = NULL;
#line 170 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 170 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 170 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_hash_table_lookup (_tmp0_, "BlackLevel");
#line 170 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	result = (const gchar*) _tmp1_;
#line 170 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return result;
#line 1829 "chess-pgn.c"
}


void pgn_game_set_black_level (PGNGame* self, const gchar* value) {
	GHashTable* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 171 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_if_fail (self != NULL);
#line 171 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = self->tags;
#line 171 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_strdup ("BlackLevel");
#line 171 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp2_ = value;
#line 171 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 171 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_hash_table_insert (_tmp0_, _tmp1_, _tmp3_);
#line 171 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_notify ((GObject *) self, "black-level");
#line 1852 "chess-pgn.c"
}


static void pgn_game_class_init (PGNGameClass * klass) {
	gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	gchar* _tmp10_ = NULL;
	gchar* _tmp11_ = NULL;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	pgn_game_parent_class = g_type_class_peek_parent (klass);
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_pgn_game_get_property;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_pgn_game_set_property;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	G_OBJECT_CLASS (klass)->finalize = pgn_game_finalize;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), PGN_GAME_EVENT, g_param_spec_string ("event", "event", "event", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), PGN_GAME_SITE, g_param_spec_string ("site", "site", "site", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), PGN_GAME_DATE, g_param_spec_string ("date", "date", "date", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), PGN_GAME_TIME, g_param_spec_string ("time", "time", "time", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), PGN_GAME_ROUND, g_param_spec_string ("round", "round", "round", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), PGN_GAME_WHITE, g_param_spec_string ("white", "white", "white", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), PGN_GAME_BLACK, g_param_spec_string ("black", "black", "black", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), PGN_GAME_RESULT, g_param_spec_string ("result", "result", "result", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), PGN_GAME_ANNOTATOR, g_param_spec_string ("annotator", "annotator", "annotator", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), PGN_GAME_TIME_CONTROL, g_param_spec_string ("time-control", "time-control", "time-control", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), PGN_GAME_WHITE_TIME_LEFT, g_param_spec_string ("white-time-left", "white-time-left", "white-time-left", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), PGN_GAME_BLACK_TIME_LEFT, g_param_spec_string ("black-time-left", "black-time-left", "black-time-left", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), PGN_GAME_CLOCK_TYPE, g_param_spec_string ("clock-type", "clock-type", "clock-type", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), PGN_GAME_TIMER_INCREMENT, g_param_spec_string ("timer-increment", "timer-increment", "timer-increment", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), PGN_GAME_SET_UP, g_param_spec_boolean ("set-up", "set-up", "set-up", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), PGN_GAME_FEN, g_param_spec_string ("fen", "fen", "fen", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), PGN_GAME_TERMINATION, g_param_spec_string ("termination", "termination", "termination", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), PGN_GAME_WHITE_AI, g_param_spec_string ("white-ai", "white-ai", "white-ai", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), PGN_GAME_WHITE_LEVEL, g_param_spec_string ("white-level", "white-level", "white-level", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), PGN_GAME_BLACK_AI, g_param_spec_string ("black-ai", "black-ai", "black-ai", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), PGN_GAME_BLACK_LEVEL, g_param_spec_string ("black-level", "black-level", "black-level", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 54 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = g_strdup ("*");
#line 54 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	pgn_game_RESULT_IN_PROGRESS = _tmp0_;
#line 55 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_strdup ("1/2-1/2");
#line 55 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	pgn_game_RESULT_DRAW = _tmp1_;
#line 56 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp2_ = g_strdup ("1-0");
#line 56 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	pgn_game_RESULT_WHITE = _tmp2_;
#line 57 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp3_ = g_strdup ("0-1");
#line 57 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	pgn_game_RESULT_BLACK = _tmp3_;
#line 59 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp4_ = g_strdup ("abandoned");
#line 59 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	pgn_game_TERMINATE_ABANDONED = _tmp4_;
#line 60 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp5_ = g_strdup ("adjudication");
#line 60 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	pgn_game_TERMINATE_ADJUDICATION = _tmp5_;
#line 61 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp6_ = g_strdup ("death");
#line 61 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	pgn_game_TERMINATE_DEATH = _tmp6_;
#line 62 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp7_ = g_strdup ("emergency");
#line 62 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	pgn_game_TERMINATE_EMERGENCY = _tmp7_;
#line 63 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp8_ = g_strdup ("normal");
#line 63 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	pgn_game_TERMINATE_NORMAL = _tmp8_;
#line 64 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp9_ = g_strdup ("rules infraction");
#line 64 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	pgn_game_TERMINATE_RULES_INFRACTION = _tmp9_;
#line 65 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp10_ = g_strdup ("time forfeit");
#line 65 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	pgn_game_TERMINATE_TIME_FORFEIT = _tmp10_;
#line 66 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp11_ = g_strdup ("unterminated");
#line 66 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	pgn_game_TERMINATE_UNTERMINATED = _tmp11_;
#line 1967 "chess-pgn.c"
}


static void pgn_game_instance_init (PGNGame * self) {
}


static void pgn_game_finalize (GObject* obj) {
	PGNGame * self;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PGN_GAME, PGNGame);
#line 51 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_g_hash_table_unref0 (self->tags);
#line 52 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	__g_list_free__g_free0_0 (self->moves);
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	G_OBJECT_CLASS (pgn_game_parent_class)->finalize (obj);
#line 1985 "chess-pgn.c"
}


GType pgn_game_get_type (void) {
	static volatile gsize pgn_game_type_id__volatile = 0;
	if (g_once_init_enter (&pgn_game_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (PGNGameClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) pgn_game_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PGNGame), 0, (GInstanceInitFunc) pgn_game_instance_init, NULL };
		GType pgn_game_type_id;
		pgn_game_type_id = g_type_register_static (G_TYPE_OBJECT, "PGNGame", &g_define_type_info, 0);
		g_once_init_leave (&pgn_game_type_id__volatile, pgn_game_type_id);
	}
	return pgn_game_type_id__volatile;
}


static void _vala_pgn_game_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	PGNGame * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_PGN_GAME, PGNGame);
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	switch (property_id) {
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_EVENT:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		g_value_set_string (value, pgn_game_get_event (self));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_SITE:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		g_value_set_string (value, pgn_game_get_site (self));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_DATE:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		g_value_set_string (value, pgn_game_get_date (self));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_TIME:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		g_value_set_string (value, pgn_game_get_time (self));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_ROUND:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		g_value_set_string (value, pgn_game_get_round (self));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_WHITE:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		g_value_set_string (value, pgn_game_get_white (self));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_BLACK:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		g_value_set_string (value, pgn_game_get_black (self));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_RESULT:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		g_value_set_string (value, pgn_game_get_result (self));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_ANNOTATOR:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		g_value_set_string (value, pgn_game_get_annotator (self));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_TIME_CONTROL:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		g_value_set_string (value, pgn_game_get_time_control (self));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_WHITE_TIME_LEFT:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		g_value_set_string (value, pgn_game_get_white_time_left (self));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_BLACK_TIME_LEFT:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		g_value_set_string (value, pgn_game_get_black_time_left (self));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_CLOCK_TYPE:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		g_value_set_string (value, pgn_game_get_clock_type (self));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_TIMER_INCREMENT:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		g_value_set_string (value, pgn_game_get_timer_increment (self));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_SET_UP:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		g_value_set_boolean (value, pgn_game_get_set_up (self));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_FEN:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		g_value_set_string (value, pgn_game_get_fen (self));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_TERMINATION:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		g_value_set_string (value, pgn_game_get_termination (self));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_WHITE_AI:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		g_value_set_string (value, pgn_game_get_white_ai (self));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_WHITE_LEVEL:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		g_value_set_string (value, pgn_game_get_white_level (self));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_BLACK_AI:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		g_value_set_string (value, pgn_game_get_black_ai (self));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_BLACK_LEVEL:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		g_value_set_string (value, pgn_game_get_black_level (self));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 2132 "chess-pgn.c"
		default:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 2138 "chess-pgn.c"
	}
}


static void _vala_pgn_game_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	PGNGame * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_PGN_GAME, PGNGame);
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	switch (property_id) {
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_EVENT:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		pgn_game_set_event (self, g_value_get_string (value));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_SITE:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		pgn_game_set_site (self, g_value_get_string (value));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_DATE:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		pgn_game_set_date (self, g_value_get_string (value));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_TIME:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		pgn_game_set_time (self, g_value_get_string (value));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_ROUND:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		pgn_game_set_round (self, g_value_get_string (value));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_WHITE:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		pgn_game_set_white (self, g_value_get_string (value));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_BLACK:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		pgn_game_set_black (self, g_value_get_string (value));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_RESULT:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		pgn_game_set_result (self, g_value_get_string (value));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_ANNOTATOR:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		pgn_game_set_annotator (self, g_value_get_string (value));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_TIME_CONTROL:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		pgn_game_set_time_control (self, g_value_get_string (value));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_WHITE_TIME_LEFT:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		pgn_game_set_white_time_left (self, g_value_get_string (value));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_BLACK_TIME_LEFT:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		pgn_game_set_black_time_left (self, g_value_get_string (value));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_CLOCK_TYPE:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		pgn_game_set_clock_type (self, g_value_get_string (value));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_TIMER_INCREMENT:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		pgn_game_set_timer_increment (self, g_value_get_string (value));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_SET_UP:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		pgn_game_set_set_up (self, g_value_get_boolean (value));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_FEN:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		pgn_game_set_fen (self, g_value_get_string (value));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_TERMINATION:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		pgn_game_set_termination (self, g_value_get_string (value));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_WHITE_AI:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		pgn_game_set_white_ai (self, g_value_get_string (value));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_WHITE_LEVEL:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		pgn_game_set_white_level (self, g_value_get_string (value));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_BLACK_AI:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		pgn_game_set_black_ai (self, g_value_get_string (value));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		case PGN_GAME_BLACK_LEVEL:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		pgn_game_set_black_level (self, g_value_get_string (value));
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 2274 "chess-pgn.c"
		default:
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 49 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		break;
#line 2280 "chess-pgn.c"
	}
}


GType state_get_type (void) {
	static volatile gsize state_type_id__volatile = 0;
	if (g_once_init_enter (&state_type_id__volatile)) {
		static const GEnumValue values[] = {{STATE_TAGS, "STATE_TAGS", "tags"}, {STATE_MOVE_TEXT, "STATE_MOVE_TEXT", "move-text"}, {STATE_LINE_COMMENT, "STATE_LINE_COMMENT", "line-comment"}, {STATE_BRACE_COMMENT, "STATE_BRACE_COMMENT", "brace-comment"}, {STATE_TAG_START, "STATE_TAG_START", "tag-start"}, {STATE_TAG_NAME, "STATE_TAG_NAME", "tag-name"}, {STATE_PRE_TAG_VALUE, "STATE_PRE_TAG_VALUE", "pre-tag-value"}, {STATE_TAG_VALUE, "STATE_TAG_VALUE", "tag-value"}, {STATE_POST_TAG_VALUE, "STATE_POST_TAG_VALUE", "post-tag-value"}, {STATE_SYMBOL, "STATE_SYMBOL", "symbol"}, {STATE_PERIOD, "STATE_PERIOD", "period"}, {STATE_NAG, "STATE_NAG", "nag"}, {STATE_ERROR, "STATE_ERROR", "error"}, {0, NULL, NULL}};
		GType state_type_id;
		state_type_id = g_enum_register_static ("State", values);
		g_once_init_leave (&state_type_id__volatile, state_type_id);
	}
	return state_type_id__volatile;
}


static void _g_object_unref0_ (gpointer var) {
#line 237 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 2300 "chess-pgn.c"
}


static void _g_list_free__g_object_unref0_ (GList* self) {
#line 237 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_list_foreach (self, (GFunc) _g_object_unref0_, NULL);
#line 237 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_list_free (self);
#line 2309 "chess-pgn.c"
}


static gboolean int64_try_parse (const gchar* str, gint64* _result_) {
	gint64 _vala_result = 0LL;
	gboolean result = FALSE;
	gchar* endptr = NULL;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gint64 _tmp2_ = 0LL;
	gchar* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	gint _tmp6_ = 0;
	gint _tmp7_ = 0;
#line 608 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	g_return_val_if_fail (str != NULL, FALSE);
#line 610 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	_tmp0_ = str;
#line 610 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	_tmp2_ = g_ascii_strtoll (_tmp0_, &_tmp1_, (guint) 0);
#line 610 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	endptr = _tmp1_;
#line 610 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	_vala_result = _tmp2_;
#line 611 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	_tmp3_ = endptr;
#line 611 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	_tmp4_ = str;
#line 611 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	_tmp5_ = str;
#line 611 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	_tmp6_ = strlen (_tmp5_);
#line 611 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	_tmp7_ = _tmp6_;
#line 611 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	if (_tmp3_ == (((gchar*) _tmp4_) + _tmp7_)) {
#line 612 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		result = TRUE;
#line 612 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		if (_result_) {
#line 612 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
			*_result_ = _vala_result;
#line 2353 "chess-pgn.c"
		}
#line 612 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		return result;
#line 2357 "chess-pgn.c"
	} else {
#line 614 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		result = FALSE;
#line 614 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		if (_result_) {
#line 614 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
			*_result_ = _vala_result;
#line 2365 "chess-pgn.c"
		}
#line 614 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		return result;
#line 2369 "chess-pgn.c"
	}
#line 608 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	if (_result_) {
#line 608 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		*_result_ = _vala_result;
#line 2375 "chess-pgn.c"
	}
}


static void pgn_insert_tag (PGN* self, PGNGame* game, const gchar* tag_name, const gchar* tag_value) {
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	GQuark _tmp3_ = 0U;
#line 240 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	static GQuark _tmp2_label0 = 0;
#line 240 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	static GQuark _tmp2_label1 = 0;
#line 240 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	static GQuark _tmp2_label2 = 0;
#line 240 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	static GQuark _tmp2_label3 = 0;
#line 240 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	static GQuark _tmp2_label4 = 0;
#line 238 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_if_fail (self != NULL);
#line 238 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_if_fail (game != NULL);
#line 238 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_if_fail (tag_name != NULL);
#line 238 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_if_fail (tag_value != NULL);
#line 240 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = tag_name;
#line 240 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = _tmp0_;
#line 240 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp3_ = (NULL == _tmp1_) ? 0 : g_quark_from_string (_tmp1_);
#line 240 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	if (_tmp3_ == ((0 != _tmp2_label0) ? _tmp2_label0 : (_tmp2_label0 = g_quark_from_static_string ("WhiteTimeLeft")))) {
#line 240 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		switch (0) {
#line 2412 "chess-pgn.c"
			default:
			{
				const gchar* _tmp4_ = NULL;
				gboolean _tmp5_ = FALSE;
#line 243 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp4_ = tag_value;
#line 243 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp5_ = int64_try_parse (_tmp4_, NULL);
#line 243 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				if (_tmp5_ == FALSE) {
#line 2423 "chess-pgn.c"
					const gchar* _tmp6_ = NULL;
					const gchar* _tmp7_ = NULL;
					const gchar* _tmp8_ = NULL;
#line 244 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp6_ = _ ("Invalid %s : %s in PGN, setting timer to infinity.");
#line 244 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp7_ = tag_name;
#line 244 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp8_ = tag_value;
#line 244 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					g_warning (_tmp6_, _tmp7_, _tmp8_);
#line 2435 "chess-pgn.c"
				} else {
					PGNGame* _tmp9_ = NULL;
					GHashTable* _tmp10_ = NULL;
					const gchar* _tmp11_ = NULL;
					gchar* _tmp12_ = NULL;
					const gchar* _tmp13_ = NULL;
					gchar* _tmp14_ = NULL;
#line 246 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp9_ = game;
#line 246 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp10_ = _tmp9_->tags;
#line 246 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp11_ = tag_name;
#line 246 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp12_ = g_strdup (_tmp11_);
#line 246 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp13_ = tag_value;
#line 246 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp14_ = g_strdup (_tmp13_);
#line 246 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					g_hash_table_insert (_tmp10_, _tmp12_, _tmp14_);
#line 2457 "chess-pgn.c"
				}
#line 247 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				break;
#line 2461 "chess-pgn.c"
			}
		}
	} else if (_tmp3_ == ((0 != _tmp2_label1) ? _tmp2_label1 : (_tmp2_label1 = g_quark_from_static_string ("BlackTimeLeft")))) {
#line 240 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		switch (0) {
#line 2467 "chess-pgn.c"
			default:
			{
				const gchar* _tmp15_ = NULL;
				gboolean _tmp16_ = FALSE;
#line 249 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp15_ = tag_value;
#line 249 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp16_ = int64_try_parse (_tmp15_, NULL);
#line 249 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				if (_tmp16_ == FALSE) {
#line 2478 "chess-pgn.c"
					const gchar* _tmp17_ = NULL;
					const gchar* _tmp18_ = NULL;
					const gchar* _tmp19_ = NULL;
#line 250 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp17_ = _ ("Invalid %s : %s in PGN, setting timer to infinity.");
#line 250 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp18_ = tag_name;
#line 250 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp19_ = tag_value;
#line 250 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					g_warning (_tmp17_, _tmp18_, _tmp19_);
#line 2490 "chess-pgn.c"
				} else {
					PGNGame* _tmp20_ = NULL;
					GHashTable* _tmp21_ = NULL;
					const gchar* _tmp22_ = NULL;
					gchar* _tmp23_ = NULL;
					const gchar* _tmp24_ = NULL;
					gchar* _tmp25_ = NULL;
#line 252 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp20_ = game;
#line 252 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp21_ = _tmp20_->tags;
#line 252 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp22_ = tag_name;
#line 252 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp23_ = g_strdup (_tmp22_);
#line 252 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp24_ = tag_value;
#line 252 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp25_ = g_strdup (_tmp24_);
#line 252 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					g_hash_table_insert (_tmp21_, _tmp23_, _tmp25_);
#line 2512 "chess-pgn.c"
				}
#line 253 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				break;
#line 2516 "chess-pgn.c"
			}
		}
	} else if (_tmp3_ == ((0 != _tmp2_label2) ? _tmp2_label2 : (_tmp2_label2 = g_quark_from_static_string ("TimeControl")))) {
#line 240 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		switch (0) {
#line 2522 "chess-pgn.c"
			default:
			{
				const gchar* _tmp26_ = NULL;
				gboolean _tmp27_ = FALSE;
#line 255 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp26_ = tag_value;
#line 255 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp27_ = int64_try_parse (_tmp26_, NULL);
#line 255 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				if (_tmp27_ == TRUE) {
#line 2533 "chess-pgn.c"
					gboolean _tmp28_ = FALSE;
					PGNGame* _tmp29_ = NULL;
					GHashTable* _tmp30_ = NULL;
					gconstpointer _tmp31_ = NULL;
#line 257 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp29_ = game;
#line 257 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp30_ = _tmp29_->tags;
#line 257 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp31_ = g_hash_table_lookup (_tmp30_, "WhiteTimeLeft");
#line 257 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					if (((const gchar*) _tmp31_) != NULL) {
#line 2546 "chess-pgn.c"
						PGNGame* _tmp32_ = NULL;
						GHashTable* _tmp33_ = NULL;
						gconstpointer _tmp34_ = NULL;
#line 257 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp32_ = game;
#line 257 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp33_ = _tmp32_->tags;
#line 257 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp34_ = g_hash_table_lookup (_tmp33_, "BlackTimeLeft");
#line 257 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp28_ = ((const gchar*) _tmp34_) != NULL;
#line 2558 "chess-pgn.c"
					} else {
#line 257 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp28_ = FALSE;
#line 2562 "chess-pgn.c"
					}
#line 257 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					if (_tmp28_) {
#line 2566 "chess-pgn.c"
						PGNGame* _tmp35_ = NULL;
						GHashTable* _tmp36_ = NULL;
						const gchar* _tmp37_ = NULL;
						gchar* _tmp38_ = NULL;
						const gchar* _tmp39_ = NULL;
						gchar* _tmp40_ = NULL;
#line 258 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp35_ = game;
#line 258 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp36_ = _tmp35_->tags;
#line 258 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp37_ = tag_name;
#line 258 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp38_ = g_strdup (_tmp37_);
#line 258 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp39_ = tag_value;
#line 258 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp40_ = g_strdup (_tmp39_);
#line 258 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						g_hash_table_insert (_tmp36_, _tmp38_, _tmp40_);
#line 2587 "chess-pgn.c"
					}
				} else {
					const gchar* _tmp41_ = NULL;
					const gchar* _tmp42_ = NULL;
					const gchar* _tmp43_ = NULL;
#line 261 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp41_ = _ ("Invalid %s : %s in PGN, setting timer to infinity.");
#line 261 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp42_ = tag_name;
#line 261 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp43_ = tag_value;
#line 261 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					g_warning (_tmp41_, _tmp42_, _tmp43_);
#line 2601 "chess-pgn.c"
				}
#line 262 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				break;
#line 2605 "chess-pgn.c"
			}
		}
	} else if (_tmp3_ == ((0 != _tmp2_label3) ? _tmp2_label3 : (_tmp2_label3 = g_quark_from_static_string ("X-GNOME-ClockType")))) {
#line 240 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		switch (0) {
#line 2611 "chess-pgn.c"
			default:
			{
				const gchar* _tmp44_ = NULL;
				ClockType _tmp45_ = 0;
#line 264 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp44_ = tag_value;
#line 264 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp45_ = clock_type_string_to_enum (_tmp44_);
#line 264 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				if (_tmp45_ == CLOCK_TYPE_INVALID) {
#line 2622 "chess-pgn.c"
					const gchar* _tmp46_ = NULL;
					const gchar* _tmp47_ = NULL;
					PGNGame* _tmp48_ = NULL;
					GHashTable* _tmp49_ = NULL;
					const gchar* _tmp50_ = NULL;
					gchar* _tmp51_ = NULL;
					gchar* _tmp52_ = NULL;
#line 266 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp46_ = _ ("Invalid clock type in PGN: %s, using a simple clock.");
#line 266 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp47_ = tag_value;
#line 266 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					g_warning (_tmp46_, _tmp47_);
#line 267 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp48_ = game;
#line 267 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp49_ = _tmp48_->tags;
#line 267 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp50_ = tag_name;
#line 267 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp51_ = g_strdup (_tmp50_);
#line 267 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp52_ = g_strdup ("simple");
#line 267 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					g_hash_table_insert (_tmp49_, _tmp51_, _tmp52_);
#line 2648 "chess-pgn.c"
				}
#line 269 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				break;
#line 2652 "chess-pgn.c"
			}
		}
	} else if (_tmp3_ == ((0 != _tmp2_label4) ? _tmp2_label4 : (_tmp2_label4 = g_quark_from_static_string ("X-GNOME-TimerIncrement")))) {
#line 240 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		switch (0) {
#line 2658 "chess-pgn.c"
			default:
			{
				const gchar* _tmp53_ = NULL;
				gboolean _tmp54_ = FALSE;
#line 271 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp53_ = tag_value;
#line 271 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp54_ = int64_try_parse (_tmp53_, NULL);
#line 271 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				if (_tmp54_ == FALSE) {
#line 2669 "chess-pgn.c"
					const gchar* _tmp55_ = NULL;
					const gchar* _tmp56_ = NULL;
					PGNGame* _tmp57_ = NULL;
					GHashTable* _tmp58_ = NULL;
					gchar* _tmp59_ = NULL;
					gchar* _tmp60_ = NULL;
					PGNGame* _tmp61_ = NULL;
					GHashTable* _tmp62_ = NULL;
					const gchar* _tmp63_ = NULL;
					gchar* _tmp64_ = NULL;
					gchar* _tmp65_ = NULL;
#line 273 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp55_ = _ ("Invalid timer increment in PGN: %s, using a simple clock.");
#line 273 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp56_ = tag_value;
#line 273 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					g_warning (_tmp55_, _tmp56_);
#line 274 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp57_ = game;
#line 274 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp58_ = _tmp57_->tags;
#line 274 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp59_ = g_strdup ("X-GNOME-ClockType");
#line 274 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp60_ = g_strdup ("simple");
#line 274 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					g_hash_table_insert (_tmp58_, _tmp59_, _tmp60_);
#line 275 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp61_ = game;
#line 275 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp62_ = _tmp61_->tags;
#line 275 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp63_ = tag_name;
#line 275 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp64_ = g_strdup (_tmp63_);
#line 275 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp65_ = g_strdup ("0");
#line 275 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					g_hash_table_insert (_tmp62_, _tmp64_, _tmp65_);
#line 2709 "chess-pgn.c"
				}
#line 277 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				break;
#line 2713 "chess-pgn.c"
			}
		}
	} else {
#line 240 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		switch (0) {
#line 2719 "chess-pgn.c"
			default:
			{
				PGNGame* _tmp66_ = NULL;
				GHashTable* _tmp67_ = NULL;
				const gchar* _tmp68_ = NULL;
				gchar* _tmp69_ = NULL;
				const gchar* _tmp70_ = NULL;
				gchar* _tmp71_ = NULL;
#line 279 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp66_ = game;
#line 279 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp67_ = _tmp66_->tags;
#line 279 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp68_ = tag_name;
#line 279 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp69_ = g_strdup (_tmp68_);
#line 279 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp70_ = tag_value;
#line 279 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp71_ = g_strdup (_tmp70_);
#line 279 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				g_hash_table_insert (_tmp67_, _tmp69_, _tmp71_);
#line 280 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				break;
#line 2744 "chess-pgn.c"
			}
		}
	}
}


static gchar string_get (const gchar* self, glong index) {
	gchar result = '\0';
	glong _tmp0_ = 0L;
	gchar _tmp1_ = '\0';
#line 996 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, '\0');
#line 997 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	_tmp0_ = index;
#line 997 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	_tmp1_ = ((gchar*) self)[_tmp0_];
#line 997 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	result = _tmp1_;
#line 997 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	return result;
#line 2765 "chess-pgn.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 335 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return self ? g_object_ref (self) : NULL;
#line 2772 "chess-pgn.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 1230 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1231 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	_tmp0_ = strlen (self);
#line 1231 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	_tmp1_ = _tmp0_;
#line 1231 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	string_length = (glong) _tmp1_;
#line 1232 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	_tmp2_ = start;
#line 1232 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	if (_tmp2_ < ((glong) 0)) {
#line 2805 "chess-pgn.c"
		glong _tmp3_ = 0L;
		glong _tmp4_ = 0L;
#line 1233 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		_tmp3_ = string_length;
#line 1233 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		_tmp4_ = start;
#line 1233 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		start = _tmp3_ + _tmp4_;
#line 2814 "chess-pgn.c"
	}
#line 1235 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	_tmp5_ = end;
#line 1235 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	if (_tmp5_ < ((glong) 0)) {
#line 2820 "chess-pgn.c"
		glong _tmp6_ = 0L;
		glong _tmp7_ = 0L;
#line 1236 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		_tmp6_ = string_length;
#line 1236 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		_tmp7_ = end;
#line 1236 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		end = _tmp6_ + _tmp7_;
#line 2829 "chess-pgn.c"
	}
#line 1238 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	_tmp9_ = start;
#line 1238 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	if (_tmp9_ >= ((glong) 0)) {
#line 2835 "chess-pgn.c"
		glong _tmp10_ = 0L;
		glong _tmp11_ = 0L;
#line 1238 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		_tmp10_ = start;
#line 1238 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		_tmp11_ = string_length;
#line 1238 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		_tmp8_ = _tmp10_ <= _tmp11_;
#line 2844 "chess-pgn.c"
	} else {
#line 1238 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		_tmp8_ = FALSE;
#line 2848 "chess-pgn.c"
	}
#line 1238 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp8_, NULL);
#line 1239 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	_tmp13_ = end;
#line 1239 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	if (_tmp13_ >= ((glong) 0)) {
#line 2856 "chess-pgn.c"
		glong _tmp14_ = 0L;
		glong _tmp15_ = 0L;
#line 1239 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		_tmp14_ = end;
#line 1239 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		_tmp15_ = string_length;
#line 1239 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		_tmp12_ = _tmp14_ <= _tmp15_;
#line 2865 "chess-pgn.c"
	} else {
#line 1239 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
		_tmp12_ = FALSE;
#line 2869 "chess-pgn.c"
	}
#line 1239 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp12_, NULL);
#line 1240 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	_tmp16_ = start;
#line 1240 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	_tmp17_ = end;
#line 1240 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp16_ <= _tmp17_, NULL);
#line 1241 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	_tmp18_ = start;
#line 1241 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	_tmp19_ = end;
#line 1241 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	_tmp20_ = start;
#line 1241 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	_tmp21_ = g_strndup (((gchar*) self) + _tmp18_, (gsize) (_tmp19_ - _tmp20_));
#line 1241 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	result = _tmp21_;
#line 1241 "/home/mcatanzaro/jhbuild/install/share/vala-0.30/vapi/glib-2.0.vapi"
	return result;
#line 2891 "chess-pgn.c"
}


PGN* pgn_construct_from_string (GType object_type, const gchar* data, GError** error) {
	PGN * self = NULL;
	State state = 0;
	State home_state = 0;
	PGNGame* game = NULL;
	PGNGame* _tmp0_ = NULL;
	gboolean in_escape = FALSE;
	gsize token_start = 0UL;
	gsize line_offset = 0UL;
	gchar* tag_name = NULL;
	gchar* _tmp1_ = NULL;
	GString* tag_value = NULL;
	GString* _tmp2_ = NULL;
	gint line = 0;
	gint rav_level = 0;
	gboolean _tmp165_ = FALSE;
	PGNGame* _tmp166_ = NULL;
	GList* _tmp167_ = NULL;
	guint _tmp168_ = 0U;
	GList* _tmp174_ = NULL;
	GError * _inner_error_ = NULL;
#line 284 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_val_if_fail (data != NULL, NULL);
#line 284 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	self = (PGN*) g_object_new (object_type, NULL);
#line 288 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	state = STATE_TAGS;
#line 288 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	home_state = STATE_TAGS;
#line 289 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = pgn_game_new ();
#line 289 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	game = _tmp0_;
#line 290 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	in_escape = FALSE;
#line 291 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	token_start = (gsize) 0;
#line 291 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	line_offset = (gsize) 0;
#line 292 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp1_ = g_strdup ("");
#line 292 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	tag_name = _tmp1_;
#line 293 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp2_ = g_string_new ("");
#line 293 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	tag_value = _tmp2_;
#line 294 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	line = 1;
#line 295 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	rav_level = 0;
#line 2946 "chess-pgn.c"
	{
		gsize offset = 0UL;
#line 296 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		offset = (gsize) 0;
#line 2951 "chess-pgn.c"
		{
			gboolean _tmp3_ = FALSE;
#line 296 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
			_tmp3_ = TRUE;
#line 296 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
			while (TRUE) {
#line 2958 "chess-pgn.c"
				gsize _tmp5_ = 0UL;
				const gchar* _tmp6_ = NULL;
				gint _tmp7_ = 0;
				gint _tmp8_ = 0;
				gunichar c = 0U;
				const gchar* _tmp9_ = NULL;
				gsize _tmp10_ = 0UL;
				gchar _tmp11_ = '\0';
				gunichar _tmp12_ = 0U;
				State _tmp15_ = 0;
#line 296 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				if (!_tmp3_) {
#line 2971 "chess-pgn.c"
					gsize _tmp4_ = 0UL;
#line 296 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp4_ = offset;
#line 296 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					offset = _tmp4_ + 1;
#line 2977 "chess-pgn.c"
				}
#line 296 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp3_ = FALSE;
#line 296 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp5_ = offset;
#line 296 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp6_ = data;
#line 296 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp7_ = strlen (_tmp6_);
#line 296 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp8_ = _tmp7_;
#line 296 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				if (!(_tmp5_ <= ((gsize) _tmp8_))) {
#line 296 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					break;
#line 2993 "chess-pgn.c"
				}
#line 298 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp9_ = data;
#line 298 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp10_ = offset;
#line 298 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp11_ = string_get (_tmp9_, (glong) _tmp10_);
#line 298 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				c = (gunichar) _tmp11_;
#line 300 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp12_ = c;
#line 300 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				if (_tmp12_ == ((gunichar) '\n')) {
#line 3007 "chess-pgn.c"
					gint _tmp13_ = 0;
					gsize _tmp14_ = 0UL;
#line 302 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp13_ = line;
#line 302 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					line = _tmp13_ + 1;
#line 303 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					_tmp14_ = offset;
#line 303 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					line_offset = _tmp14_ + 1;
#line 3018 "chess-pgn.c"
				}
#line 306 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				_tmp15_ = state;
#line 306 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
				switch (_tmp15_) {
#line 306 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					case STATE_TAGS:
#line 3026 "chess-pgn.c"
					{
						gunichar _tmp16_ = 0U;
#line 309 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						home_state = STATE_TAGS;
#line 310 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp16_ = c;
#line 310 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						if (_tmp16_ == ((gunichar) ';')) {
#line 311 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							state = STATE_LINE_COMMENT;
#line 3037 "chess-pgn.c"
						} else {
							gunichar _tmp17_ = 0U;
#line 312 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp17_ = c;
#line 312 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							if (_tmp17_ == ((gunichar) '{')) {
#line 313 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								state = STATE_BRACE_COMMENT;
#line 3046 "chess-pgn.c"
							} else {
								gunichar _tmp18_ = 0U;
#line 314 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp18_ = c;
#line 314 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								if (_tmp18_ == ((gunichar) '[')) {
#line 315 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									state = STATE_TAG_START;
#line 3055 "chess-pgn.c"
								} else {
									gunichar _tmp19_ = 0U;
									gboolean _tmp20_ = FALSE;
#line 316 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									_tmp19_ = c;
#line 316 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									_tmp20_ = g_unichar_isspace (_tmp19_);
#line 316 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									if (!_tmp20_) {
#line 3065 "chess-pgn.c"
										gsize _tmp21_ = 0UL;
#line 318 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										_tmp21_ = offset;
#line 318 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										offset = _tmp21_ - 1;
#line 319 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										state = STATE_MOVE_TEXT;
#line 320 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										continue;
#line 3075 "chess-pgn.c"
									}
								}
							}
						}
#line 322 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						break;
#line 3082 "chess-pgn.c"
					}
#line 306 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					case STATE_MOVE_TEXT:
#line 3086 "chess-pgn.c"
					{
						gunichar _tmp22_ = 0U;
#line 325 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						home_state = STATE_MOVE_TEXT;
#line 326 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp22_ = c;
#line 326 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						if (_tmp22_ == ((gunichar) ';')) {
#line 327 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							state = STATE_LINE_COMMENT;
#line 3097 "chess-pgn.c"
						} else {
							gunichar _tmp23_ = 0U;
#line 328 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp23_ = c;
#line 328 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							if (_tmp23_ == ((gunichar) '{')) {
#line 329 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								state = STATE_BRACE_COMMENT;
#line 3106 "chess-pgn.c"
							} else {
								gunichar _tmp24_ = 0U;
#line 330 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp24_ = c;
#line 330 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								if (_tmp24_ == ((gunichar) '*')) {
#line 3113 "chess-pgn.c"
									gint _tmp25_ = 0;
#line 332 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									_tmp25_ = rav_level;
#line 332 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									if (_tmp25_ == 0) {
#line 3119 "chess-pgn.c"
										PGNGame* _tmp26_ = NULL;
										const gchar* _tmp27_ = NULL;
										PGNGame* _tmp28_ = NULL;
										PGNGame* _tmp29_ = NULL;
										PGNGame* _tmp30_ = NULL;
#line 334 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										_tmp26_ = game;
#line 334 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										_tmp27_ = pgn_game_RESULT_IN_PROGRESS;
#line 334 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										pgn_game_set_result (_tmp26_, _tmp27_);
#line 335 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										_tmp28_ = game;
#line 335 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										_tmp29_ = _g_object_ref0 (_tmp28_);
#line 335 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										self->games = g_list_append (self->games, _tmp29_);
#line 336 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										_tmp30_ = pgn_game_new ();
#line 336 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										_g_object_unref0 (game);
#line 336 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										game = _tmp30_;
#line 337 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										state = STATE_TAGS;
#line 3145 "chess-pgn.c"
									}
								} else {
									gunichar _tmp31_ = 0U;
#line 340 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									_tmp31_ = c;
#line 340 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									if (_tmp31_ == ((gunichar) '.')) {
#line 3153 "chess-pgn.c"
										gsize _tmp32_ = 0UL;
#line 342 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										_tmp32_ = offset;
#line 342 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										offset = _tmp32_ - 1;
#line 343 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										state = STATE_PERIOD;
#line 3161 "chess-pgn.c"
									} else {
										gunichar _tmp33_ = 0U;
										gboolean _tmp34_ = FALSE;
#line 345 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										_tmp33_ = c;
#line 345 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										_tmp34_ = g_unichar_isalnum (_tmp33_);
#line 345 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										if (_tmp34_) {
#line 3171 "chess-pgn.c"
											gsize _tmp35_ = 0UL;
#line 347 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
											_tmp35_ = offset;
#line 347 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
											token_start = _tmp35_;
#line 348 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
											state = STATE_SYMBOL;
#line 3179 "chess-pgn.c"
										} else {
											gunichar _tmp36_ = 0U;
#line 350 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
											_tmp36_ = c;
#line 350 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
											if (_tmp36_ == ((gunichar) '$')) {
#line 3186 "chess-pgn.c"
												gsize _tmp37_ = 0UL;
#line 352 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
												_tmp37_ = offset;
#line 352 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
												token_start = _tmp37_ + 1;
#line 353 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
												state = STATE_NAG;
#line 3194 "chess-pgn.c"
											} else {
												gunichar _tmp38_ = 0U;
#line 355 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
												_tmp38_ = c;
#line 355 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
												if (_tmp38_ == ((gunichar) '(')) {
#line 3201 "chess-pgn.c"
													gint _tmp39_ = 0;
#line 357 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
													_tmp39_ = rav_level;
#line 357 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
													rav_level = _tmp39_ + 1;
#line 358 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
													continue;
#line 3209 "chess-pgn.c"
												} else {
													gunichar _tmp40_ = 0U;
#line 360 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
													_tmp40_ = c;
#line 360 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
													if (_tmp40_ == ((gunichar) ')')) {
#line 3216 "chess-pgn.c"
														gint _tmp41_ = 0;
#line 362 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
														_tmp41_ = rav_level;
#line 362 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
														if (_tmp41_ == 0) {
#line 363 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
															state = STATE_ERROR;
#line 3224 "chess-pgn.c"
														} else {
															gint _tmp42_ = 0;
#line 365 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
															_tmp42_ = rav_level;
#line 365 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
															rav_level = _tmp42_ - 1;
#line 3231 "chess-pgn.c"
														}
													} else {
														gunichar _tmp43_ = 0U;
														gboolean _tmp44_ = FALSE;
#line 367 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
														_tmp43_ = c;
#line 367 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
														_tmp44_ = g_unichar_isspace (_tmp43_);
#line 367 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
														if (!_tmp44_) {
#line 368 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
															state = STATE_ERROR;
#line 3244 "chess-pgn.c"
														}
													}
												}
											}
										}
									}
								}
							}
						}
#line 369 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						break;
#line 3256 "chess-pgn.c"
					}
#line 306 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					case STATE_LINE_COMMENT:
#line 3260 "chess-pgn.c"
					{
						gunichar _tmp45_ = 0U;
#line 372 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp45_ = c;
#line 372 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						if (_tmp45_ == ((gunichar) '\n')) {
#line 3267 "chess-pgn.c"
							State _tmp46_ = 0;
#line 373 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp46_ = home_state;
#line 373 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							state = _tmp46_;
#line 3273 "chess-pgn.c"
						}
#line 374 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						break;
#line 3277 "chess-pgn.c"
					}
#line 306 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					case STATE_BRACE_COMMENT:
#line 3281 "chess-pgn.c"
					{
						gunichar _tmp47_ = 0U;
#line 377 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp47_ = c;
#line 377 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						if (_tmp47_ == ((gunichar) '}')) {
#line 3288 "chess-pgn.c"
							State _tmp48_ = 0;
#line 378 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp48_ = home_state;
#line 378 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							state = _tmp48_;
#line 3294 "chess-pgn.c"
						}
#line 379 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						break;
#line 3298 "chess-pgn.c"
					}
#line 306 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					case STATE_TAG_START:
#line 3302 "chess-pgn.c"
					{
						gunichar _tmp49_ = 0U;
						gboolean _tmp50_ = FALSE;
#line 382 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp49_ = c;
#line 382 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp50_ = g_unichar_isspace (_tmp49_);
#line 382 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						if (_tmp50_) {
#line 383 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							continue;
#line 3314 "chess-pgn.c"
						} else {
							gunichar _tmp51_ = 0U;
							gboolean _tmp52_ = FALSE;
#line 384 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp51_ = c;
#line 384 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp52_ = g_unichar_isalnum (_tmp51_);
#line 384 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							if (_tmp52_) {
#line 3324 "chess-pgn.c"
								gsize _tmp53_ = 0UL;
#line 386 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp53_ = offset;
#line 386 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								token_start = _tmp53_;
#line 387 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								state = STATE_TAG_NAME;
#line 3332 "chess-pgn.c"
							} else {
#line 390 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								state = STATE_ERROR;
#line 3336 "chess-pgn.c"
							}
						}
#line 391 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						break;
#line 3341 "chess-pgn.c"
					}
#line 306 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					case STATE_TAG_NAME:
#line 3345 "chess-pgn.c"
					{
						gunichar _tmp54_ = 0U;
						gboolean _tmp55_ = FALSE;
#line 394 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp54_ = c;
#line 394 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp55_ = g_unichar_isspace (_tmp54_);
#line 394 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						if (_tmp55_) {
#line 3355 "chess-pgn.c"
							const gchar* _tmp56_ = NULL;
							gsize _tmp57_ = 0UL;
							gsize _tmp58_ = 0UL;
							gchar* _tmp59_ = NULL;
#line 396 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp56_ = data;
#line 396 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp57_ = token_start;
#line 396 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp58_ = offset;
#line 396 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp59_ = string_slice (_tmp56_, (glong) _tmp57_, (glong) _tmp58_);
#line 396 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_g_free0 (tag_name);
#line 396 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							tag_name = _tmp59_;
#line 397 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							state = STATE_PRE_TAG_VALUE;
#line 3374 "chess-pgn.c"
						} else {
							gboolean _tmp60_ = FALSE;
							gboolean _tmp61_ = FALSE;
							gboolean _tmp62_ = FALSE;
							gboolean _tmp63_ = FALSE;
							gboolean _tmp64_ = FALSE;
							gboolean _tmp65_ = FALSE;
							gunichar _tmp66_ = 0U;
							gboolean _tmp67_ = FALSE;
#line 399 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp66_ = c;
#line 399 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp67_ = g_unichar_isalnum (_tmp66_);
#line 399 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							if (_tmp67_) {
#line 399 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp65_ = TRUE;
#line 3392 "chess-pgn.c"
							} else {
								gunichar _tmp68_ = 0U;
#line 399 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp68_ = c;
#line 399 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp65_ = _tmp68_ == ((gunichar) '_');
#line 3399 "chess-pgn.c"
							}
#line 399 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							if (_tmp65_) {
#line 399 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp64_ = TRUE;
#line 3405 "chess-pgn.c"
							} else {
								gunichar _tmp69_ = 0U;
#line 399 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp69_ = c;
#line 399 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp64_ = _tmp69_ == ((gunichar) '+');
#line 3412 "chess-pgn.c"
							}
#line 399 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							if (_tmp64_) {
#line 399 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp63_ = TRUE;
#line 3418 "chess-pgn.c"
							} else {
								gunichar _tmp70_ = 0U;
#line 399 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp70_ = c;
#line 399 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp63_ = _tmp70_ == ((gunichar) '#');
#line 3425 "chess-pgn.c"
							}
#line 399 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							if (_tmp63_) {
#line 399 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp62_ = TRUE;
#line 3431 "chess-pgn.c"
							} else {
								gunichar _tmp71_ = 0U;
#line 399 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp71_ = c;
#line 399 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp62_ = _tmp71_ == ((gunichar) '=');
#line 3438 "chess-pgn.c"
							}
#line 399 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							if (_tmp62_) {
#line 399 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp61_ = TRUE;
#line 3444 "chess-pgn.c"
							} else {
								gunichar _tmp72_ = 0U;
#line 399 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp72_ = c;
#line 399 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp61_ = _tmp72_ == ((gunichar) ':');
#line 3451 "chess-pgn.c"
							}
#line 399 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							if (_tmp61_) {
#line 399 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp60_ = TRUE;
#line 3457 "chess-pgn.c"
							} else {
								gunichar _tmp73_ = 0U;
#line 399 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp73_ = c;
#line 399 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp60_ = _tmp73_ == ((gunichar) '-');
#line 3464 "chess-pgn.c"
							}
#line 399 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							if (_tmp60_) {
#line 400 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								continue;
#line 3470 "chess-pgn.c"
							} else {
#line 402 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								state = STATE_ERROR;
#line 3474 "chess-pgn.c"
							}
						}
#line 403 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						break;
#line 3479 "chess-pgn.c"
					}
#line 306 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					case STATE_PRE_TAG_VALUE:
#line 3483 "chess-pgn.c"
					{
						gunichar _tmp74_ = 0U;
						gboolean _tmp75_ = FALSE;
#line 406 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp74_ = c;
#line 406 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp75_ = g_unichar_isspace (_tmp74_);
#line 406 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						if (_tmp75_) {
#line 407 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							continue;
#line 3495 "chess-pgn.c"
						} else {
							gunichar _tmp76_ = 0U;
#line 408 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp76_ = c;
#line 408 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							if (_tmp76_ == ((gunichar) '"')) {
#line 3502 "chess-pgn.c"
								GString* _tmp77_ = NULL;
#line 410 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								state = STATE_TAG_VALUE;
#line 411 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp77_ = tag_value;
#line 411 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								g_string_erase (_tmp77_, (gssize) 0, (gssize) -1);
#line 412 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								in_escape = FALSE;
#line 3512 "chess-pgn.c"
							} else {
#line 415 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								state = STATE_ERROR;
#line 3516 "chess-pgn.c"
							}
						}
#line 416 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						break;
#line 3521 "chess-pgn.c"
					}
#line 306 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					case STATE_TAG_VALUE:
#line 3525 "chess-pgn.c"
					{
						gboolean _tmp78_ = FALSE;
						gunichar _tmp79_ = 0U;
#line 419 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp79_ = c;
#line 419 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						if (_tmp79_ == ((gunichar) '\\')) {
#line 3533 "chess-pgn.c"
							gboolean _tmp80_ = FALSE;
#line 419 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp80_ = in_escape;
#line 419 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp78_ = !_tmp80_;
#line 3539 "chess-pgn.c"
						} else {
#line 419 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp78_ = FALSE;
#line 3543 "chess-pgn.c"
						}
#line 419 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						if (_tmp78_) {
#line 420 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							in_escape = TRUE;
#line 3549 "chess-pgn.c"
						} else {
							gboolean _tmp81_ = FALSE;
							gunichar _tmp82_ = 0U;
#line 421 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp82_ = c;
#line 421 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							if (_tmp82_ == ((gunichar) '"')) {
#line 3557 "chess-pgn.c"
								gboolean _tmp83_ = FALSE;
#line 421 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp83_ = in_escape;
#line 421 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp81_ = !_tmp83_;
#line 3563 "chess-pgn.c"
							} else {
#line 421 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp81_ = FALSE;
#line 3567 "chess-pgn.c"
							}
#line 421 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							if (_tmp81_) {
#line 422 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								state = STATE_POST_TAG_VALUE;
#line 3573 "chess-pgn.c"
							} else {
								gunichar _tmp84_ = 0U;
								gboolean _tmp85_ = FALSE;
#line 423 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp84_ = c;
#line 423 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp85_ = g_unichar_isprint (_tmp84_);
#line 423 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								if (_tmp85_) {
#line 3583 "chess-pgn.c"
									GString* _tmp86_ = NULL;
									gunichar _tmp87_ = 0U;
#line 425 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									_tmp86_ = tag_value;
#line 425 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									_tmp87_ = c;
#line 425 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									g_string_append_unichar (_tmp86_, _tmp87_);
#line 426 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									in_escape = FALSE;
#line 3594 "chess-pgn.c"
								} else {
#line 429 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									state = STATE_ERROR;
#line 3598 "chess-pgn.c"
								}
							}
						}
#line 430 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						break;
#line 3604 "chess-pgn.c"
					}
#line 306 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					case STATE_POST_TAG_VALUE:
#line 3608 "chess-pgn.c"
					{
						gunichar _tmp88_ = 0U;
						gboolean _tmp89_ = FALSE;
#line 433 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp88_ = c;
#line 433 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp89_ = g_unichar_isspace (_tmp88_);
#line 433 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						if (_tmp89_) {
#line 434 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							continue;
#line 3620 "chess-pgn.c"
						} else {
							gunichar _tmp90_ = 0U;
#line 435 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp90_ = c;
#line 435 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							if (_tmp90_ == ((gunichar) ']')) {
#line 3627 "chess-pgn.c"
								PGNGame* _tmp91_ = NULL;
								const gchar* _tmp92_ = NULL;
								GString* _tmp93_ = NULL;
								const gchar* _tmp94_ = NULL;
#line 437 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp91_ = game;
#line 437 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp92_ = tag_name;
#line 437 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp93_ = tag_value;
#line 437 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp94_ = _tmp93_->str;
#line 437 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								pgn_insert_tag (self, _tmp91_, _tmp92_, _tmp94_);
#line 438 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								state = STATE_TAGS;
#line 3644 "chess-pgn.c"
							} else {
#line 441 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								state = STATE_ERROR;
#line 3648 "chess-pgn.c"
							}
						}
#line 442 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						break;
#line 3653 "chess-pgn.c"
					}
#line 306 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					case STATE_SYMBOL:
#line 3657 "chess-pgn.c"
					{
						gboolean _tmp95_ = FALSE;
						gboolean _tmp96_ = FALSE;
						gboolean _tmp97_ = FALSE;
						gboolean _tmp98_ = FALSE;
						gboolean _tmp99_ = FALSE;
						gboolean _tmp100_ = FALSE;
						gboolean _tmp101_ = FALSE;
						gunichar _tmp102_ = 0U;
						gboolean _tmp103_ = FALSE;
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp102_ = c;
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp103_ = g_unichar_isalnum (_tmp102_);
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						if (_tmp103_) {
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp101_ = TRUE;
#line 3676 "chess-pgn.c"
						} else {
							gunichar _tmp104_ = 0U;
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp104_ = c;
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp101_ = _tmp104_ == ((gunichar) '_');
#line 3683 "chess-pgn.c"
						}
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						if (_tmp101_) {
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp100_ = TRUE;
#line 3689 "chess-pgn.c"
						} else {
							gunichar _tmp105_ = 0U;
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp105_ = c;
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp100_ = _tmp105_ == ((gunichar) '+');
#line 3696 "chess-pgn.c"
						}
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						if (_tmp100_) {
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp99_ = TRUE;
#line 3702 "chess-pgn.c"
						} else {
							gunichar _tmp106_ = 0U;
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp106_ = c;
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp99_ = _tmp106_ == ((gunichar) '#');
#line 3709 "chess-pgn.c"
						}
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						if (_tmp99_) {
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp98_ = TRUE;
#line 3715 "chess-pgn.c"
						} else {
							gunichar _tmp107_ = 0U;
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp107_ = c;
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp98_ = _tmp107_ == ((gunichar) '=');
#line 3722 "chess-pgn.c"
						}
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						if (_tmp98_) {
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp97_ = TRUE;
#line 3728 "chess-pgn.c"
						} else {
							gunichar _tmp108_ = 0U;
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp108_ = c;
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp97_ = _tmp108_ == ((gunichar) ':');
#line 3735 "chess-pgn.c"
						}
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						if (_tmp97_) {
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp96_ = TRUE;
#line 3741 "chess-pgn.c"
						} else {
							gunichar _tmp109_ = 0U;
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp109_ = c;
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp96_ = _tmp109_ == ((gunichar) '-');
#line 3748 "chess-pgn.c"
						}
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						if (_tmp96_) {
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp95_ = TRUE;
#line 3754 "chess-pgn.c"
						} else {
							gunichar _tmp110_ = 0U;
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp110_ = c;
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp95_ = _tmp110_ == ((gunichar) '/');
#line 3761 "chess-pgn.c"
						}
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						if (_tmp95_) {
#line 447 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							continue;
#line 3767 "chess-pgn.c"
						} else {
							gchar* symbol = NULL;
							const gchar* _tmp111_ = NULL;
							gsize _tmp112_ = 0UL;
							gsize _tmp113_ = 0UL;
							gchar* _tmp114_ = NULL;
							gboolean is_number = FALSE;
							gsize _tmp125_ = 0UL;
							gboolean _tmp126_ = FALSE;
							gboolean _tmp127_ = FALSE;
							const gchar* _tmp128_ = NULL;
							const gchar* _tmp129_ = NULL;
#line 450 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp111_ = data;
#line 450 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp112_ = token_start;
#line 450 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp113_ = offset;
#line 450 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp114_ = string_slice (_tmp111_, (glong) _tmp112_, (glong) _tmp113_);
#line 450 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							symbol = _tmp114_;
#line 452 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							is_number = TRUE;
#line 3792 "chess-pgn.c"
							{
								gint i = 0;
#line 453 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								i = 0;
#line 3797 "chess-pgn.c"
								{
									gboolean _tmp115_ = FALSE;
#line 453 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									_tmp115_ = TRUE;
#line 453 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									while (TRUE) {
#line 3804 "chess-pgn.c"
										gint _tmp117_ = 0;
										const gchar* _tmp118_ = NULL;
										gint _tmp119_ = 0;
										gint _tmp120_ = 0;
										const gchar* _tmp121_ = NULL;
										gint _tmp122_ = 0;
										gchar _tmp123_ = '\0';
										gboolean _tmp124_ = FALSE;
#line 453 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										if (!_tmp115_) {
#line 3815 "chess-pgn.c"
											gint _tmp116_ = 0;
#line 453 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
											_tmp116_ = i;
#line 453 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
											i = _tmp116_ + 1;
#line 3821 "chess-pgn.c"
										}
#line 453 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										_tmp115_ = FALSE;
#line 453 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										_tmp117_ = i;
#line 453 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										_tmp118_ = symbol;
#line 453 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										_tmp119_ = strlen (_tmp118_);
#line 453 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										_tmp120_ = _tmp119_;
#line 453 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										if (!(_tmp117_ < _tmp120_)) {
#line 453 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
											break;
#line 3837 "chess-pgn.c"
										}
#line 454 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										_tmp121_ = symbol;
#line 454 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										_tmp122_ = i;
#line 454 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										_tmp123_ = string_get (_tmp121_, (glong) _tmp122_);
#line 454 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										_tmp124_ = g_ascii_isdigit (_tmp123_);
#line 454 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										if (!_tmp124_) {
#line 455 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
											is_number = FALSE;
#line 3851 "chess-pgn.c"
										}
									}
								}
							}
#line 457 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							state = STATE_MOVE_TEXT;
#line 458 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp125_ = offset;
#line 458 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							offset = _tmp125_ - 1;
#line 461 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp128_ = symbol;
#line 461 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp129_ = pgn_game_RESULT_DRAW;
#line 461 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							if (g_strcmp0 (_tmp128_, _tmp129_) == 0) {
#line 461 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp127_ = TRUE;
#line 3870 "chess-pgn.c"
							} else {
								const gchar* _tmp130_ = NULL;
								const gchar* _tmp131_ = NULL;
#line 461 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp130_ = symbol;
#line 461 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp131_ = pgn_game_RESULT_WHITE;
#line 461 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp127_ = g_strcmp0 (_tmp130_, _tmp131_) == 0;
#line 3880 "chess-pgn.c"
							}
#line 461 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							if (_tmp127_) {
#line 461 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp126_ = TRUE;
#line 3886 "chess-pgn.c"
							} else {
								const gchar* _tmp132_ = NULL;
								const gchar* _tmp133_ = NULL;
#line 461 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp132_ = symbol;
#line 461 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp133_ = pgn_game_RESULT_BLACK;
#line 461 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp126_ = g_strcmp0 (_tmp132_, _tmp133_) == 0;
#line 3896 "chess-pgn.c"
							}
#line 461 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							if (_tmp126_) {
#line 3900 "chess-pgn.c"
								gint _tmp134_ = 0;
#line 463 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp134_ = rav_level;
#line 463 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								if (_tmp134_ == 0) {
#line 3906 "chess-pgn.c"
									PGNGame* _tmp135_ = NULL;
									const gchar* _tmp136_ = NULL;
									PGNGame* _tmp137_ = NULL;
									PGNGame* _tmp138_ = NULL;
									PGNGame* _tmp139_ = NULL;
#line 465 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									_tmp135_ = game;
#line 465 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									_tmp136_ = symbol;
#line 465 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									pgn_game_set_result (_tmp135_, _tmp136_);
#line 466 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									_tmp137_ = game;
#line 466 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									_tmp138_ = _g_object_ref0 (_tmp137_);
#line 466 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									self->games = g_list_append (self->games, _tmp138_);
#line 467 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									_tmp139_ = pgn_game_new ();
#line 467 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									_g_object_unref0 (game);
#line 467 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									game = _tmp139_;
#line 468 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									state = STATE_TAGS;
#line 3932 "chess-pgn.c"
								}
							} else {
								gboolean _tmp140_ = FALSE;
#line 471 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp140_ = is_number;
#line 471 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								if (!_tmp140_) {
#line 3940 "chess-pgn.c"
									gint _tmp141_ = 0;
#line 473 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									_tmp141_ = rav_level;
#line 473 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									if (_tmp141_ == 0) {
#line 3946 "chess-pgn.c"
										PGNGame* _tmp142_ = NULL;
										const gchar* _tmp143_ = NULL;
										gchar* _tmp144_ = NULL;
#line 474 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										_tmp142_ = game;
#line 474 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										_tmp143_ = symbol;
#line 474 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										_tmp144_ = g_strdup (_tmp143_);
#line 474 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										_tmp142_->moves = g_list_append (_tmp142_->moves, _tmp144_);
#line 3958 "chess-pgn.c"
									}
								}
							}
#line 446 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_g_free0 (symbol);
#line 3964 "chess-pgn.c"
						}
#line 477 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						break;
#line 3968 "chess-pgn.c"
					}
#line 306 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					case STATE_PERIOD:
#line 3972 "chess-pgn.c"
					{
#line 481 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						state = STATE_MOVE_TEXT;
#line 482 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						break;
#line 3978 "chess-pgn.c"
					}
#line 306 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					case STATE_NAG:
#line 3982 "chess-pgn.c"
					{
						gunichar _tmp145_ = 0U;
						gboolean _tmp146_ = FALSE;
#line 485 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp145_ = c;
#line 485 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp146_ = g_unichar_isdigit (_tmp145_);
#line 485 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						if (_tmp146_) {
#line 486 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							continue;
#line 3994 "chess-pgn.c"
						} else {
							gsize _tmp147_ = 0UL;
#line 489 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							state = STATE_MOVE_TEXT;
#line 490 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							_tmp147_ = offset;
#line 490 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							offset = _tmp147_ - 1;
#line 4003 "chess-pgn.c"
						}
#line 492 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						break;
#line 4007 "chess-pgn.c"
					}
#line 306 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					case STATE_ERROR:
#line 4011 "chess-pgn.c"
					{
						gsize char_offset = 0UL;
						gsize _tmp148_ = 0UL;
						gsize _tmp149_ = 0UL;
						FILE* _tmp150_ = NULL;
						gint _tmp151_ = 0;
						gsize _tmp152_ = 0UL;
						FILE* _tmp153_ = NULL;
						const gchar* _tmp154_ = NULL;
						gsize _tmp155_ = 0UL;
						gsize _tmp156_ = 0UL;
						gchar* _tmp157_ = NULL;
						gchar* _tmp158_ = NULL;
						FILE* _tmp164_ = NULL;
#line 495 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp148_ = offset;
#line 495 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp149_ = line_offset;
#line 495 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						char_offset = (_tmp148_ - _tmp149_) - 1;
#line 496 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp150_ = stderr;
#line 496 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp151_ = line;
#line 496 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp152_ = char_offset;
#line 496 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						fprintf (_tmp150_, "%d.%d: error: Unexpected character\n", _tmp151_, (gint) (_tmp152_ + 1));
#line 497 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp153_ = stderr;
#line 497 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp154_ = data;
#line 497 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp155_ = line_offset;
#line 497 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp156_ = offset;
#line 497 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp157_ = string_slice (_tmp154_, (glong) _tmp155_, (glong) _tmp156_);
#line 497 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp158_ = _tmp157_;
#line 497 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						fprintf (_tmp153_, "%s\n", _tmp158_);
#line 497 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_g_free0 (_tmp158_);
#line 4056 "chess-pgn.c"
						{
							gint i = 0;
#line 498 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
							i = 0;
#line 4061 "chess-pgn.c"
							{
								gboolean _tmp159_ = FALSE;
#line 498 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								_tmp159_ = TRUE;
#line 498 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
								while (TRUE) {
#line 4068 "chess-pgn.c"
									gint _tmp161_ = 0;
									gsize _tmp162_ = 0UL;
									FILE* _tmp163_ = NULL;
#line 498 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									if (!_tmp159_) {
#line 4074 "chess-pgn.c"
										gint _tmp160_ = 0;
#line 498 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										_tmp160_ = i;
#line 498 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										i = _tmp160_ + 1;
#line 4080 "chess-pgn.c"
									}
#line 498 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									_tmp159_ = FALSE;
#line 498 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									_tmp161_ = i;
#line 498 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									_tmp162_ = char_offset;
#line 498 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									if (!(((gsize) _tmp161_) < _tmp162_)) {
#line 498 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
										break;
#line 4092 "chess-pgn.c"
									}
#line 499 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									_tmp163_ = stderr;
#line 499 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
									fprintf (_tmp163_, " ");
#line 4098 "chess-pgn.c"
								}
							}
						}
#line 500 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_tmp164_ = stderr;
#line 500 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						fprintf (_tmp164_, "^\n");
#line 501 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_g_string_free0 (tag_value);
#line 501 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_g_free0 (tag_name);
#line 501 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						_g_object_unref0 (game);
#line 501 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
						return self;
#line 4114 "chess-pgn.c"
					}
					default:
#line 306 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
					break;
#line 4119 "chess-pgn.c"
				}
			}
		}
	}
#line 505 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp166_ = game;
#line 505 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp167_ = _tmp166_->moves;
#line 505 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp168_ = g_list_length (_tmp167_);
#line 505 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	if (_tmp168_ > ((guint) 0)) {
#line 505 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		_tmp165_ = TRUE;
#line 4134 "chess-pgn.c"
	} else {
		PGNGame* _tmp169_ = NULL;
		GHashTable* _tmp170_ = NULL;
		guint _tmp171_ = 0U;
#line 505 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		_tmp169_ = game;
#line 505 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		_tmp170_ = _tmp169_->tags;
#line 505 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		_tmp171_ = g_hash_table_size (_tmp170_);
#line 505 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		_tmp165_ = _tmp171_ > ((guint) 0);
#line 4147 "chess-pgn.c"
	}
#line 505 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	if (_tmp165_) {
#line 4151 "chess-pgn.c"
		PGNGame* _tmp172_ = NULL;
		PGNGame* _tmp173_ = NULL;
#line 506 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		_tmp172_ = game;
#line 506 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		_tmp173_ = _g_object_ref0 (_tmp172_);
#line 506 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		self->games = g_list_append (self->games, _tmp173_);
#line 4160 "chess-pgn.c"
	}
#line 509 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp174_ = self->games;
#line 509 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	if (_tmp174_ == NULL) {
#line 4166 "chess-pgn.c"
		GError* _tmp175_ = NULL;
#line 510 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		_tmp175_ = g_error_new_literal (PGN_ERROR, PGN_ERROR_LOAD_ERROR, "No games in PGN file");
#line 510 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		_inner_error_ = _tmp175_;
#line 510 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		if (_inner_error_->domain == PGN_ERROR) {
#line 510 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
			g_propagate_error (error, _inner_error_);
#line 510 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
			_g_string_free0 (tag_value);
#line 510 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
			_g_free0 (tag_name);
#line 510 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
			_g_object_unref0 (game);
#line 510 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
			_g_object_unref0 (self);
#line 510 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
			return NULL;
#line 4186 "chess-pgn.c"
		} else {
#line 510 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
			_g_string_free0 (tag_value);
#line 510 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
			_g_free0 (tag_name);
#line 510 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
			_g_object_unref0 (game);
#line 510 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.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 510 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
			g_clear_error (&_inner_error_);
#line 510 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
			return NULL;
#line 4200 "chess-pgn.c"
		}
	}
#line 284 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_g_string_free0 (tag_value);
#line 284 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_g_free0 (tag_name);
#line 284 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_g_object_unref0 (game);
#line 284 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return self;
#line 4211 "chess-pgn.c"
}


PGN* pgn_new_from_string (const gchar* data, GError** error) {
#line 284 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return pgn_construct_from_string (TYPE_PGN, data, error);
#line 4218 "chess-pgn.c"
}


PGN* pgn_construct_from_file (GType object_type, GFile* file, GError** error) {
	PGN * self = NULL;
	guint8* contents = NULL;
	gint contents_length1 = 0;
	gint _contents_size_ = 0;
	GFile* _tmp0_ = NULL;
	guint8* _tmp1_ = NULL;
	gsize _tmp2_;
	guint8* _tmp3_ = NULL;
	gint _tmp3__length1 = 0;
	GError * _inner_error_ = NULL;
#line 513 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_return_val_if_fail (file != NULL, NULL);
#line 516 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp0_ = file;
#line 516 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	g_file_load_contents (_tmp0_, NULL, &_tmp1_, &_tmp2_, NULL, &_inner_error_);
#line 516 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	contents = (g_free (contents), NULL);
#line 516 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	contents = _tmp1_;
#line 516 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	contents_length1 = _tmp2_;
#line 516 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_contents_size_ = contents_length1;
#line 516 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 516 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		g_propagate_error (error, _inner_error_);
#line 516 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		contents = (g_free (contents), NULL);
#line 516 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		_g_object_unref0 (self);
#line 516 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		return NULL;
#line 4257 "chess-pgn.c"
	}
#line 517 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp3_ = contents;
#line 517 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	_tmp3__length1 = contents_length1;
#line 517 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	self = (PGN*) pgn_construct_from_string (object_type, (const gchar*) _tmp3_, &_inner_error_);
#line 517 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 517 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		g_propagate_error (error, _inner_error_);
#line 517 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		contents = (g_free (contents), NULL);
#line 517 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		_g_object_unref0 (self);
#line 517 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
		return NULL;
#line 4275 "chess-pgn.c"
	}
#line 513 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	contents = (g_free (contents), NULL);
#line 513 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return self;
#line 4281 "chess-pgn.c"
}


PGN* pgn_new_from_file (GFile* file, GError** error) {
#line 513 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return pgn_construct_from_file (TYPE_PGN, file, error);
#line 4288 "chess-pgn.c"
}


PGN* pgn_construct (GType object_type) {
	PGN * self = NULL;
#line 235 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	self = (PGN*) g_object_new (object_type, NULL);
#line 235 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return self;
#line 4298 "chess-pgn.c"
}


PGN* pgn_new (void) {
#line 235 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	return pgn_construct (TYPE_PGN);
#line 4305 "chess-pgn.c"
}


static void pgn_class_init (PGNClass * klass) {
#line 235 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	pgn_parent_class = g_type_class_peek_parent (klass);
#line 235 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	G_OBJECT_CLASS (klass)->finalize = pgn_finalize;
#line 4314 "chess-pgn.c"
}


static void pgn_instance_init (PGN * self) {
}


static void pgn_finalize (GObject* obj) {
	PGN * self;
#line 235 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PGN, PGN);
#line 237 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	__g_list_free__g_object_unref0_0 (self->games);
#line 235 "/home/mcatanzaro/jhbuild/checkout/gnome-chess/lib/chess-pgn.vala"
	G_OBJECT_CLASS (pgn_parent_class)->finalize (obj);
#line 4330 "chess-pgn.c"
}


GType pgn_get_type (void) {
	static volatile gsize pgn_type_id__volatile = 0;
	if (g_once_init_enter (&pgn_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (PGNClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) pgn_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PGN), 0, (GInstanceInitFunc) pgn_instance_init, NULL };
		GType pgn_type_id;
		pgn_type_id = g_type_register_static (G_TYPE_OBJECT, "PGN", &g_define_type_info, 0);
		g_once_init_leave (&pgn_type_id__volatile, pgn_type_id);
	}
	return pgn_type_id__volatile;
}



