text: #region Local Var
  	var uLocal_0 = 0;
  	var uLocal_1 = 0;
  	int iLocal_2 = 0;
  	int iLocal_3 = 0;
  	int iLocal_4 = 0;
  	int iLocal_5 = 0;
  	int iLocal_6 = 0;
  	int iLocal_7 = 0;
  	int iLocal_8 = 0;
  	int iLocal_9 = 0;
  	int iLocal_10 = 0;
  	int iLocal_11 = 0;
  	var uLocal_12 = 0;
  	var uLocal_13 = 0;
  	float fLocal_14 = 0f;
  	var uLocal_15 = 0;
  	var uLocal_16 = 0;
  	int iLocal_17 = 0;
  	var uLocal_18 = 0;
  	var uLocal_19 = 0;
  	char* sLocal_20 = NULL;
  	float fLocal_21 = 0f;
  	var uLocal_22 = 0;
  	var uLocal_23 = 0;
  	var uLocal_24 = 0;
  	float fLocal_25 = 0f;
  	float fLocal_26 = 0f;
  	var uLocal_27 = 0;
  	int iLocal_28 = 0;
  	var uLocal_29 = 0;
  	var uLocal_30 = 0;
  	float fLocal_31 = 0f;
  	float fLocal_32 = 0f;
  	float fLocal_33 = 0f;
  	var uLocal_34 = 0;
  	var uLocal_35 = 0;
  	var uLocal_36 = 0;
  	var uLocal_37 = 0;
  	var uLocal_38 = 0;
  	int iLocal_39 = 0;
  	int iLocal_40 = 0;
  	int iLocal_41 = 0;
  	int iLocal_42 = 0;
  	int iLocal_43 = 0;
  	int iLocal_44 = 0;
  	struct<3> Local_45 = { 0, 0, 0 } ;
  	struct<3> Local_48 = { 0, 0, 0 } ;
  	int iLocal_51 = 0;
  	var uLocal_52 = 0;
  	int iLocal_53 = 0;
  	int iLocal_54 = 0;
  	var uLocal_55 = 0;
  	struct<2> ScriptParam_0 = { 0, 5 } ;
  	var uScriptParam_2 = 0;
  	var uScriptParam_3 = 0;
  	var uScriptParam_4 = 0;
  	var uScriptParam_5 = 0;
  	var uScriptParam_6 = 0;
  	var uScriptParam_7 = 0;
  	var uScriptParam_8 = 0;
  	var uScriptParam_9 = 0;
  	var uScriptParam_10 = 0;
  	var uScriptParam_11 = 0;
  	var uScriptParam_12 = 0;
  	var uScriptParam_13 = 0;
  	var uScriptParam_14 = 0;
  	var uScriptParam_15 = 0;
  	var uScriptParam_16 = 0;
  	var uScriptParam_17 = 5;
  	var uScriptParam_18 = 0;
  	var uScriptParam_19 = 0;
  	var uScriptParam_20 = 0;
  	var uScriptParam_21 = 0;
  	var uScriptParam_22 = 0;
  #endregion
  
  void __EntryFunction__()
  {
  	iLocal_2 = 1;
  	iLocal_3 = 134;
  	iLocal_4 = 134;
  	iLocal_5 = 1;
  	iLocal_6 = 1;
  	iLocal_7 = 1;
  	iLocal_8 = 134;
  	iLocal_9 = 1;
  	iLocal_10 = 12;
  	iLocal_11 = 12;
  	fLocal_14 = 0.001f;
  	iLocal_17 = -1;
  	sLocal_20 = "NULL";
  	fLocal_21 = 0f;
  	fLocal_25 = -0.0375f;
  	fLocal_26 = 0.17f;
  	iLocal_28 = 3;
  	fLocal_31 = 80f;
  	fLocal_32 = 140f;
  	fLocal_33 = 180f;
  	iLocal_39 = 1;
  	iLocal_40 = 65;
  	iLocal_41 = 49;
  	iLocal_42 = 64;
  	SYSTEM::WAIT(0);
  	Local_45 = { ScriptParam_0.f_1[0 /*3*/] };
  	if (unk_0x4210287E2833D44B(11))
  	{
  		func_23();
  	}
  	while (true)
  	{
  		SYSTEM::WAIT(0);
  		if (unk_0xCC7E6EA219FD8BAC())
  		{
  			if (func_3(3))
  			{
  				switch (iLocal_43)
  				{
  					case 0:
  						if (iLocal_44 == 1)
  						{
  							iLocal_43 = 1;
  						}
  						else
  						{
  							func_2();
  						}
  						break;
  					
  					case 1:
  						if (iLocal_51 == 0)
  						{
  							func_1();
  						}
  						break;
  				}
  			}
  			else
  			{
  				func_23();
  			}
  		}
  		else
  		{
  			func_23();
  		}
  	}
  }
  
  void func_1()
  {
  	if (SYSTEM::TIMERB() > 7000)
  	{
  		if (!unk_0xE50EB54E0F21BED0(uLocal_52, 0))
  		{
  			if (unk_0xD406352E21A7E1D0(unk_0x7D2B9E6A64637269(), uLocal_52, 10f, 10f, 10f, 0, 1, 0) && iLocal_54 == 0)
  			{
  				SYSTEM::SETTIMERB(0);
  				Local_48 = { unk_0xD6E677FAD7521410(unk_0x7D2B9E6A64637269(), 1) };
  				unk_0x5C679902079A7E80(&uLocal_55);
  				unk_0xFBF1F1BE9D437D22(0, Local_48, 0);
  				unk_0x4261814A9A26E86F(0, "amb@PREACHER", "PREACH", 8f, -8f, -1, 1, 0, 0, 0, 0);
  				unk_0x1BBD0A5729AB1226(uLocal_55);
  				if (!unk_0xE50EB54E0F21BED0(uLocal_52, 0))
  				{
  					unk_0x8A1AC8EBC73850C8(uLocal_52, uLocal_55);
  				}
  				unk_0x8D5B447F21217223(&uLocal_55);
  				iLocal_54 = 1;
  			}
  			if (unk_0xD406352E21A7E1D0(unk_0x7D2B9E6A64637269(), uLocal_52, 3f, 3f, 3f, 0, 1, 0) && iLocal_53 == 0)
  			{
  				Local_48 = { unk_0xD6E677FAD7521410(unk_0x7D2B9E6A64637269(), 1) };
  				SYSTEM::SETTIMERB(0);
  				unk_0x5C679902079A7E80(&uLocal_55);
  				unk_0xFBF1F1BE9D437D22(0, Local_48, 0);
  				unk_0x4261814A9A26E86F(0, "amb@PREACHER", "PREACH", 8f, -8f, -1, 1, 0, 0, 0, 0);
  				unk_0x1BBD0A5729AB1226(uLocal_55);
  				unk_0x8A1AC8EBC73850C8(uLocal_52, uLocal_55);
  			}
  			unk_0x8D5B447F21217223(&uLocal_55);
  			iLocal_53 = 1;
  		}
  	}
  }
  
  void func_2()
  {
  	unk_0x16E516CA9C88FF48(joaat("s_m_m_strpreach_01"));
  	unk_0x068BDE31F7D112BB("amb@PREACHER");
  	while (!unk_0xA9C0BBFB9CBB66F1(joaat("s_m_m_strpreach_01")) || !unk_0x0EC2B29D4172D225("amb@PREACHER"))
  	{
  		SYSTEM::WAIT(0);
  	}
  	Local_48.f_2 = (Local_45.f_2 - 1f);
  	uLocal_52 = unk_0x0FDCFECB2EF2BC1C(19, joaat("s_m_m_strpreach_01"), Local_45.x, Local_45.f_1, Local_48.f_2, 0f, 1, 1);
  	if (!unk_0xE50EB54E0F21BED0(uLocal_52, 0))
  	{
  		unk_0x5C679902079A7E80(&uLocal_55);
  		unk_0xFBF1F1BE9D437D22(0, Local_48, 0);
  		unk_0x4261814A9A26E86F(0, "amb@PREACHER", "PREACH", 8f, -8f, -1, 1, 0, 0, 0, 0);
  		unk_0x1BBD0A5729AB1226(uLocal_55);
  		unk_0x8A1AC8EBC73850C8(uLocal_52, uLocal_55);
  		unk_0x8D5B447F21217223(&uLocal_55);
  	}
  	iLocal_44 = 1;
  }
  
  int func_3(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return 1;
  			break;
  		
  		case 1:
  			if (func_22(6) || func_22(7))
  			{
  				return 1;
  			}
  			else
  			{
  				return func_3(3);
  			}
  			break;
  		
  		case 2:
  			return 1;
  			break;
  		
  		case 3:
  			if (func_20(5))
  			{
  				if (func_4(4))
  				{
  					return 1;
  				}
  			}
  			break;
  	}
  	return 0;
  }
  
  int func_4(int iParam0)
  {
  	int iVar0;
  	
  	if (unk_0xCAD1755E530A6012(unk_0x1146A9AE09CE2B14()))
  	{
  		if (unk_0x419E13582192CFEA(unk_0x7D2B9E6A64637269()))
  		{
  			if (!unk_0xECEC7528A52B4EE8(unk_0x7D2B9E6A64637269()))
  			{
  				iVar0 = func_15();
  				if (!func_14(iVar0))
  				{
  					return 0;
  				}
  				switch (iParam0)
  				{
  					case 9:
  					case 0:
  						if (((((((((((((((((!unk_0x0711D6B5B61B3EBC(unk_0x1146A9AE09CE2B14()) || unk_0x397C98A5552886EB(unk_0x7D2B9E6A64637269())) || unk_0x195733224245A760(unk_0x7D2B9E6A64637269())) || unk_0x6B9E71121F5B8154(unk_0x7D2B9E6A64637269())) || unk_0x480609C7D10E7F3E(unk_0x7D2B9E6A64637269())) || unk_0x4766CFEFD1C88C1A(unk_0x1146A9AE09CE2B14(), 1)) || unk_0xF4D8C7957C89929B(unk_0x1146A9AE09CE2B14())) || unk_0x3D28F4F0775C6C2A(unk_0x7D2B9E6A64637269(), 0)) || func_13()) || Global_111340) || Global_31348) || func_12()) || func_11(8, -1)) || func_10()) || func_9()) || func_8()) || func_7()) || Global_112293.f_7686.f_919[iVar0] == 5)
  						{
  							return 0;
  						}
  						break;
  					
  					case 1:
  						if (((((((((unk_0x4766CFEFD1C88C1A(unk_0x1146A9AE09CE2B14(), 1) || func_13()) || Global_31348) || func_12()) || func_11(8, -1)) || func_8()) || func_10()) || func_9()) || func_7()) || Global_112293.f_7686.f_919[iVar0] == 5)
  						{
  							return 0;
  						}
  						break;
  					
  					case 2:
  						if ((((((((((((((((((!unk_0x0711D6B5B61B3EBC(unk_0x1146A9AE09CE2B14()) || unk_0x397C98A5552886EB(unk_0x7D2B9E6A64637269())) || unk_0x195733224245A760(unk_0x7D2B9E6A64637269())) || unk_0x6B9E71121F5B8154(unk_0x7D2B9E6A64637269())) || unk_0x480609C7D10E7F3E(unk_0x7D2B9E6A64637269())) || unk_0x4766CFEFD1C88C1A(unk_0x1146A9AE09CE2B14(), 1)) || unk_0xF4D8C7957C89929B(unk_0x1146A9AE09CE2B14())) || unk_0x3D28F4F0775C6C2A(unk_0x7D2B9E6A64637269(), 0)) || func_13()) || Global_111340) || Global_31348) || func_12()) || func_11(8, -1)) || func_8()) || func_10()) || func_9()) || func_7()) || Global_112293.f_7686.f_919[iVar0] == 5) || Global_42556 != -1)
  						{
  							return 0;
  						}
  						break;
  					
  					case 3:
  						if ((((((((((((unk_0x6B9E71121F5B8154(unk_0x7D2B9E6A64637269()) || unk_0x480609C7D10E7F3E(unk_0x7D2B9E6A64637269())) || unk_0x4766CFEFD1C88C1A(unk_0x1146A9AE09CE2B14(), 1)) || unk_0x3D28F4F0775C6C2A(unk_0x7D2B9E6A64637269(), 0)) || func_13()) || Global_111340) || Global_31348) || func_12()) || func_11(8, -1)) || func_10()) || func_9()) || func_7()) || Global_112293.f_7686.f_919[iVar0] == 5)
  						{
  							return 0;
  						}
  						break;
  					
  					case 4:
  						if (((((func_13() || unk_0x6C9038EC46DA62DE(unk_0x1146A9AE09CE2B14()) > 0) || func_11(8, -1)) || func_7()) || func_6()) || Global_112293.f_7686.f_919[iVar0] == 5)
  						{
  							return 0;
  						}
  						break;
  					
  					case 5:
  						if ((((func_11(8, -1) || func_10()) || func_9()) || func_6()) || func_5())
  						{
  							return 0;
  						}
  						if ((unk_0xF471787D45ADC2C1() && unk_0xC50751593572DDAE() != 3) && unk_0xE544790FBAA57D4F() < 8)
  						{
  							return 0;
  						}
  						break;
  					
  					case 6:
  						if (unk_0x419E13582192CFEA(unk_0x7D2B9E6A64637269()))
  						{
  							if ((((((((((((((unk_0x3D28F4F0775C6C2A(unk_0x7D2B9E6A64637269(), 0) || unk_0x6C9038EC46DA62DE(unk_0x1146A9AE09CE2B14()) > 0) || unk_0x397C98A5552886EB(unk_0x7D2B9E6A64637269())) || unk_0x6B9E71121F5B8154(unk_0x7D2B9E6A64637269())) || unk_0x480609C7D10E7F3E(unk_0x7D2B9E6A64637269())) || unk_0x4766CFEFD1C88C1A(unk_0x1146A9AE09CE2B14(), 1)) || unk_0xF4D8C7957C89929B(unk_0x1146A9AE09CE2B14())) || func_13()) || Global_31348) || func_12()) || func_11(8, -1)) || func_9()) || func_8()) || func_7()) || Global_112293.f_7686.f_919[iVar0] == 5)
  							{
  								return 0;
  							}
  						}
  						break;
  					
  					case 7:
  						if ((((((((((((((((((unk_0x3D28F4F0775C6C2A(unk_0x7D2B9E6A64637269(), 0) || !unk_0xDF02DA324F934755(unk_0x1146A9AE09CE2B14())) || !unk_0x0711D6B5B61B3EBC(unk_0x1146A9AE09CE2B14())) || !unk_0xE0A6F16F546C8274()) || unk_0x397C98A5552886EB(unk_0x7D2B9E6A64637269())) || unk_0x6B9E71121F5B8154(unk_0x7D2B9E6A64637269())) || unk_0x480609C7D10E7F3E(unk_0x7D2B9E6A64637269())) || unk_0x4766CFEFD1C88C1A(unk_0x1146A9AE09CE2B14(), 1)) || func_13()) || func_9()) || Global_111340) || Global_31348) || func_12()) || Global_43182) || func_11(8, -1)) || func_8()) || func_6()) || func_7()) || Global_112293.f_7686.f_919[iVar0] == 5)
  						{
  							return 0;
  						}
  						break;
  					
  					case 8:
  						if (((((((((((((((((((((unk_0x3D28F4F0775C6C2A(unk_0x7D2B9E6A64637269(), 0) || !unk_0xDF02DA324F934755(unk_0x1146A9AE09CE2B14())) || !unk_0x0711D6B5B61B3EBC(unk_0x1146A9AE09CE2B14())) || !unk_0xE0A6F16F546C8274()) || unk_0xA12BCF836724905A(unk_0x1146A9AE09CE2B14(), 0)) || unk_0x397C98A5552886EB(unk_0x7D2B9E6A64637269())) || unk_0xC49311A2A500FF09(unk_0x7D2B9E6A64637269(), 1)) || unk_0x6B9E71121F5B8154(unk_0x7D2B9E6A64637269())) || unk_0x480609C7D10E7F3E(unk_0x7D2B9E6A64637269())) || unk_0x32FBDF1C2B7942F9(unk_0x7D2B9E6A64637269())) || unk_0x4766CFEFD1C88C1A(unk_0x1146A9AE09CE2B14(), 1)) || unk_0xF4D8C7957C89929B(unk_0x1146A9AE09CE2B14())) || func_13()) || Global_111340) || Global_31348) || func_12()) || func_11(8, -1)) || func_8()) || func_6()) || func_10()) || func_9()) || func_7())
  						{
  							return 0;
  						}
  						break;
  				}
  			}
  			else
  			{
  				return 0;
  			}
  		}
  		else
  		{
  			return 0;
  		}
  	}
  	else
  	{
  		return 0;
  	}
  	return 1;
  }
  
  var func_5()
  {
  	return Global_99409.f_1;
  }
  
  int func_6()
  {
  	if (Global_96292 != -1)
  	{
  		return unk_0x234B68AC2E35ED5A(Global_90158[Global_96292 /*34*/].f_15, 13);
  	}
  	return 0;
  }
  
  int func_7()
  {
  	if (unk_0x636F1F53CC61D2C9(joaat("player_timetable_scene")) > 0)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_8()
  {
  	if (Global_77508)
  	{
  		return 1;
  	}
  	else if (Global_62092 && !Global_62098)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  bool func_9()
  {
  	return Global_99422.f_364 > 0;
  }
  
  bool func_10()
  {
  	return Global_99422.f_363 > 0;
  }
  
  var func_11(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 5:
  			if (iParam1 > -1)
  			{
  				return Global_1379108.f_203[iParam1];
  			}
  			break;
  	}
  	return unk_0x234B68AC2E35ED5A(Global_1379108.f_1048, iParam0);
  }
  
  var func_12()
  {
  	return Global_1312902;
  }
  
  int func_13()
  {
  	if (!unk_0x02BFF15CAA701972())
  	{
  		return Global_96848.f_44 == 1;
  	}
  	return 0;
  }
  
  bool func_14(int iParam0)
  {
  	return iParam0 < 3;
  }
  
  var func_15()
  {
  	func_16();
  	return Global_112293.f_2361.f_539.f_4321;
  }
  
  void func_16()
  {
  	int iVar0;
  	
  	if (unk_0x419E13582192CFEA(unk_0x7D2B9E6A64637269()))
  	{
  		if (func_18(Global_112293.f_2361.f_539.f_4321) != unk_0x6471F4759775FCA4(unk_0x7D2B9E6A64637269()))
  		{
  			iVar0 = func_17(unk_0x7D2B9E6A64637269());
  			if (func_14(iVar0) && (!func_22(14) || Global_111244))
  			{
  				if (Global_112293.f_2361.f_539.f_4321 != iVar0 && func_14(Global_112293.f_2361.f_539.f_4321))
  				{
  					Global_112293.f_2361.f_539.f_4322 = Global_112293.f_2361.f_539.f_4321;
  				}
  				Global_112293.f_2361.f_539.f_4323 = iVar0;
  				Global_112293.f_2361.f_539.f_4321 = iVar0;
  				return;
  			}
  		}
  		else
  		{
  			if (Global_112293.f_2361.f_539.f_4321 != 145)
  			{
  				Global_112293.f_2361.f_539.f_4323 = Global_112293.f_2361.f_539.f_4321;
  			}
  			return;
  		}
  	}
  	Global_112293.f_2361.f_539.f_4321 = 145;
  }
  
  int func_17(var uParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (unk_0x419E13582192CFEA(uParam0))
  	{
  		iVar1 = unk_0x6471F4759775FCA4(uParam0);
  		iVar0 = 0;
  		while (iVar0 <= 2)
  		{
  			if (func_18(iVar0) == iVar1)
  			{
  				return iVar0;
  			}
  			iVar0++;
  		}
  	}
  	return 145;
  }
  
  int func_18(int iParam0)
  {
  	if (func_14(iParam0))
  	{
  		return func_19(iParam0);
  	}
  	else if (iParam0 != 145)
  	{
  	}
  	return 0;
  }
  
  var func_19(int iParam0)
  {
  	return Global_1878[iParam0 /*29*/];
  }
  
  bool func_20(int iParam0)
  {
  	return func_21(iParam0, Global_42009);
  }
  
  int func_21(int iParam0, int iParam1)
  {
  	if (iParam1 == 15)
  	{
  		return 1;
  	}
  	if (iParam0 == 15)
  	{
  		return 0;
  	}
  	switch (iParam0)
  	{
  		case 16:
  			switch (iParam1)
  			{
  				case 9:
  				case 10:
  				case 7:
  				case 13:
  				case 14:
  					return 0;
  					break;
  			}
  			return 1;
  			break;
  		
  		case 0:
  			switch (iParam1)
  			{
  				case 5:
  				case 17:
  					return 1;
  					break;
  			}
  			break;
  		
  		case 2:
  		case 3:
  			switch (iParam1)
  			{
  				case 5:
  				case 6:
  				case 8:
  				case 17:
  					return 1;
  					break;
  			}
  			break;
  		
  		case 4:
  			if (iParam1 == 17)
  			{
  				return 1;
  			}
  			break;
  		
  		case 5:
  			break;
  		
  		case 6:
  		case 8:
  			if (iParam1 == 5)
  			{
  				return 1;
  			}
  			break;
  		
  		case 7:
  			if (iParam1 == 6)
  			{
  				return 1;
  			}
  			break;
  		
  		case 9:
  			if (iParam1 == 5)
  			{
  				return 1;
  			}
  			break;
  		
  		case 10:
  			switch (iParam1)
  			{
  				case 5:
  				case 6:
  				case 17:
  					return 1;
  					break;
  			}
  			break;
  		
  		case 11:
  			if (iParam1 == 5)
  			{
  				return 1;
  			}
  			break;
  		
  		case 17:
  			switch (iParam1)
  			{
  				case 17:
  				case 12:
  				case 5:
  					return 1;
  					break;
  			}
  			break;
  		
  		case 18:
  		case 12:
  			switch (iParam1)
  			{
  				case 5:
  				case 6:
  				case 8:
  					return 1;
  					break;
  			}
  			break;
  		
  		case 13:
  			switch (iParam1)
  			{
  				case 5:
  					return 1;
  					break;
  			}
  			break;
  		
  		case 14:
  			switch (iParam1)
  			{
  				case 5:
  					return 1;
  					break;
  			}
  			break;
  	}
  	return 0;
  }
  
  bool func_22(int iParam0)
  {
  	return Global_42009 == iParam0;
  }
  
  void func_23()
  {
  	unk_0x4BFE89D21F9885DC();
  }
  
  